@antv/aimapui 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2670,13 +2670,13 @@ function Y2() {
2670
2670
  r.push(c.serialize());
2671
2671
  })), r;
2672
2672
  };
2673
- var Zr = ["Unknown", "Point", "LineString", "Polygon"], ai = function() {
2673
+ var Nr = ["Unknown", "Point", "LineString", "Polygon"], ai = function() {
2674
2674
  this.globals = null, this.feature = null, this.featureState = null, this.formattedSection = null, this._parseColorCache = {}, this.availableImages = null, this.canonical = null;
2675
2675
  };
2676
2676
  ai.prototype.id = function() {
2677
2677
  return this.feature && "id" in this.feature ? this.feature.id : null;
2678
2678
  }, ai.prototype.geometryType = function() {
2679
- return this.feature ? typeof this.feature.type == "number" ? Zr[this.feature.type] : this.feature.type : null;
2679
+ return this.feature ? typeof this.feature.type == "number" ? Nr[this.feature.type] : this.feature.type : null;
2680
2680
  }, ai.prototype.geometry = function() {
2681
2681
  return this.feature && "geometry" in this.feature ? this.feature.geometry : null;
2682
2682
  }, ai.prototype.canonicalID = function() {
@@ -2732,9 +2732,9 @@ function Y2() {
2732
2732
  var Hr;
2733
2733
  return Hr = pi[0], Array.isArray(Hr) ? "(" + Hr.map(Ii).join(", ") + ")" : "(" + Ii(Hr.type) + "...)";
2734
2734
  })).join(" | "), wr = [], li = 1; li < r.length; li++) {
2735
- var Nr = c.parse(r[li], 1 + wr.length);
2736
- if (!Nr) return null;
2737
- wr.push(Ii(Nr.type));
2735
+ var Ur = c.parse(r[li], 1 + wr.length);
2736
+ if (!Ur) return null;
2737
+ wr.push(Ii(Ur.type));
2738
2738
  }
2739
2739
  c.error("Expected arguments of type " + hr + ", but found (" + wr.join(", ") + ") instead.");
2740
2740
  }
@@ -3879,8 +3879,8 @@ function Y2() {
3879
3879
  var ll = function(r, c) {
3880
3880
  this._parameters = r, this._specification = c, he(this, (function g(M, z) {
3881
3881
  var R, Z, W, ie = z.type === "color", Ae = M.stops && typeof M.stops[0][0] == "object", ye = Ae || !(Ae || M.property !== void 0), be = M.type || (Ml(z) ? "exponential" : "interval");
3882
- if (ie && ((M = he({}, M)).stops && (M.stops = M.stops.map((function(Nr) {
3883
- return [Nr[0], bi.parse(Nr[1])];
3882
+ if (ie && ((M = he({}, M)).stops && (M.stops = M.stops.map((function(Ur) {
3883
+ return [Ur[0], bi.parse(Ur[1])];
3884
3884
  }))), M.default = bi.parse(M.default ? M.default : z.default)), M.colorSpace && M.colorSpace !== "rgb" && !Kc[M.colorSpace]) throw new Error("Unknown color space: " + M.colorSpace);
3885
3885
  if (be === "exponential") R = Hl;
3886
3886
  else if (be === "interval") R = kl;
@@ -3905,22 +3905,22 @@ function Y2() {
3905
3905
  Pt.push([$e[hr].zoom, g($e[hr], z)]);
3906
3906
  }
3907
3907
  var wr = { name: "linear" };
3908
- return { kind: "composite", interpolationType: wr, interpolationFactor: to.interpolationFactor.bind(void 0, wr), zoomStops: Pt.map((function(Nr) {
3909
- return Nr[0];
3910
- })), evaluate: function(Nr, pi) {
3911
- var Hr = Nr.zoom;
3908
+ return { kind: "composite", interpolationType: wr, interpolationFactor: to.interpolationFactor.bind(void 0, wr), zoomStops: Pt.map((function(Ur) {
3909
+ return Ur[0];
3910
+ })), evaluate: function(Ur, pi) {
3911
+ var Hr = Ur.zoom;
3912
3912
  return Hl({ stops: Pt, base: M.base }, z, Hr).evaluate(Hr, pi);
3913
3913
  } };
3914
3914
  }
3915
3915
  if (ye) {
3916
3916
  var li = be === "exponential" ? { name: "exponential", base: M.base !== void 0 ? M.base : 1 } : null;
3917
- return { kind: "camera", interpolationType: li, interpolationFactor: to.interpolationFactor.bind(void 0, li), zoomStops: M.stops.map((function(Nr) {
3918
- return Nr[0];
3919
- })), evaluate: function(Nr) {
3920
- return R(M, z, Nr.zoom, Z, W);
3917
+ return { kind: "camera", interpolationType: li, interpolationFactor: to.interpolationFactor.bind(void 0, li), zoomStops: M.stops.map((function(Ur) {
3918
+ return Ur[0];
3919
+ })), evaluate: function(Ur) {
3920
+ return R(M, z, Ur.zoom, Z, W);
3921
3921
  } };
3922
3922
  }
3923
- return { kind: "source", evaluate: function(Nr, pi) {
3923
+ return { kind: "source", evaluate: function(Ur, pi) {
3924
3924
  var Hr = pi && pi.properties ? pi.properties[M.property] : void 0;
3925
3925
  return Hr === void 0 ? la(M.default, z.default) : R(M, z, Hr, Z, W);
3926
3926
  } };
@@ -5107,12 +5107,12 @@ function Y2() {
5107
5107
  }
5108
5108
  return r && (c.__proto__ = r), (c.prototype = Object.create(r && r.prototype)).constructor = c, c.prototype._refreshViews = function() {
5109
5109
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
5110
- }, c.prototype.emplaceBack = function(g, M, z, R, Z, W, ie, Ae, ye, be, Pe, Fe, Ge, $e, st, tt, Ct, St, Pt, Ft, Qt, hr, wr, li, Nr, pi, Hr, Bi) {
5110
+ }, c.prototype.emplaceBack = function(g, M, z, R, Z, W, ie, Ae, ye, be, Pe, Fe, Ge, $e, st, tt, Ct, St, Pt, Ft, Qt, hr, wr, li, Ur, pi, Hr, Bi) {
5111
5111
  var yi = this.length;
5112
- return this.resize(yi + 1), this.emplace(yi, g, M, z, R, Z, W, ie, Ae, ye, be, Pe, Fe, Ge, $e, st, tt, Ct, St, Pt, Ft, Qt, hr, wr, li, Nr, pi, Hr, Bi);
5113
- }, c.prototype.emplace = function(g, M, z, R, Z, W, ie, Ae, ye, be, Pe, Fe, Ge, $e, st, tt, Ct, St, Pt, Ft, Qt, hr, wr, li, Nr, pi, Hr, Bi, yi) {
5112
+ return this.resize(yi + 1), this.emplace(yi, g, M, z, R, Z, W, ie, Ae, ye, be, Pe, Fe, Ge, $e, st, tt, Ct, St, Pt, Ft, Qt, hr, wr, li, Ur, pi, Hr, Bi);
5113
+ }, c.prototype.emplace = function(g, M, z, R, Z, W, ie, Ae, ye, be, Pe, Fe, Ge, $e, st, tt, Ct, St, Pt, Ft, Qt, hr, wr, li, Ur, pi, Hr, Bi, yi) {
5114
5114
  var ti = 34 * g, Ki = 17 * g;
5115
- return this.int16[ti + 0] = M, this.int16[ti + 1] = z, this.int16[ti + 2] = R, this.int16[ti + 3] = Z, this.int16[ti + 4] = W, this.int16[ti + 5] = ie, this.int16[ti + 6] = Ae, this.int16[ti + 7] = ye, this.uint16[ti + 8] = be, this.uint16[ti + 9] = Pe, this.uint16[ti + 10] = Fe, this.uint16[ti + 11] = Ge, this.uint16[ti + 12] = $e, this.uint16[ti + 13] = st, this.uint16[ti + 14] = tt, this.uint16[ti + 15] = Ct, this.uint16[ti + 16] = St, this.uint16[ti + 17] = Pt, this.uint16[ti + 18] = Ft, this.uint16[ti + 19] = Qt, this.uint16[ti + 20] = hr, this.uint16[ti + 21] = wr, this.uint16[ti + 22] = li, this.uint32[Ki + 12] = Nr, this.float32[Ki + 13] = pi, this.float32[Ki + 14] = Hr, this.float32[Ki + 15] = Bi, this.float32[Ki + 16] = yi, g;
5115
+ return this.int16[ti + 0] = M, this.int16[ti + 1] = z, this.int16[ti + 2] = R, this.int16[ti + 3] = Z, this.int16[ti + 4] = W, this.int16[ti + 5] = ie, this.int16[ti + 6] = Ae, this.int16[ti + 7] = ye, this.uint16[ti + 8] = be, this.uint16[ti + 9] = Pe, this.uint16[ti + 10] = Fe, this.uint16[ti + 11] = Ge, this.uint16[ti + 12] = $e, this.uint16[ti + 13] = st, this.uint16[ti + 14] = tt, this.uint16[ti + 15] = Ct, this.uint16[ti + 16] = St, this.uint16[ti + 17] = Pt, this.uint16[ti + 18] = Ft, this.uint16[ti + 19] = Qt, this.uint16[ti + 20] = hr, this.uint16[ti + 21] = wr, this.uint16[ti + 22] = li, this.uint32[Ki + 12] = Ur, this.float32[Ki + 13] = pi, this.float32[Ki + 14] = Hr, this.float32[Ki + 15] = Bi, this.float32[Ki + 16] = yi, g;
5116
5116
  }, c;
5117
5117
  })(Pi);
5118
5118
  S.prototype.bytesPerElement = 68, jr("StructArrayLayout8i15ui1ul4f68", S);
@@ -6614,8 +6614,8 @@ function Y2() {
6614
6614
  }
6615
6615
  }
6616
6616
  if (be.vertexLength + ie > Q.MAX_VERTEX_ARRAY_LENGTH && (be = this.segments.prepareSegment(ie, this.layoutVertexArray, this.indexArray)), Wp[r.type] === "Polygon") {
6617
- for (var Qt = [], hr = [], wr = be.vertexLength, li = 0, Nr = W; li < Nr.length; li += 1) {
6618
- var pi = Nr[li];
6617
+ for (var Qt = [], hr = [], wr = be.vertexLength, li = 0, Ur = W; li < Ur.length; li += 1) {
6618
+ var pi = Ur[li];
6619
6619
  if (pi.length !== 0) {
6620
6620
  pi !== W[0] && hr.push(Qt.length / 2);
6621
6621
  for (var Hr = 0; Hr < pi.length; Hr++) {
@@ -6649,9 +6649,9 @@ function Y2() {
6649
6649
  }
6650
6650
  return St;
6651
6651
  })(ye, Ae), Ge = (function($e, st, tt, Ct) {
6652
- for (var St = [], Pt = [], Ft = Ct[8] * st, Qt = Ct[9] * st, hr = Ct[10] * st, wr = Ct[11] * st, li = Ct[8] * tt, Nr = Ct[9] * tt, pi = Ct[10] * tt, Hr = Ct[11] * tt, Bi = 0, yi = $e; Bi < yi.length; Bi += 1) {
6652
+ for (var St = [], Pt = [], Ft = Ct[8] * st, Qt = Ct[9] * st, hr = Ct[10] * st, wr = Ct[11] * st, li = Ct[8] * tt, Ur = Ct[9] * tt, pi = Ct[10] * tt, Hr = Ct[11] * tt, Bi = 0, yi = $e; Bi < yi.length; Bi += 1) {
6653
6653
  for (var ti = [], Ki = [], Ri = 0, un = yi[Bi]; Ri < un.length; Ri += 1) {
6654
- var ci = un[Ri], Ti = ci.x, Sn = ci.y, lo = Ct[0] * Ti + Ct[4] * Sn + Ct[12], co = Ct[1] * Ti + Ct[5] * Sn + Ct[13], Jn = Ct[2] * Ti + Ct[6] * Sn + Ct[14], uo = Ct[3] * Ti + Ct[7] * Sn + Ct[15], na = Jn + hr, jo = uo + wr, Na = lo + li, ma = co + Nr, Ua = Jn + pi, go = uo + Hr, Ho = new re((lo + Ft) / jo, (co + Qt) / jo);
6654
+ var ci = un[Ri], Ti = ci.x, Sn = ci.y, lo = Ct[0] * Ti + Ct[4] * Sn + Ct[12], co = Ct[1] * Ti + Ct[5] * Sn + Ct[13], Jn = Ct[2] * Ti + Ct[6] * Sn + Ct[14], uo = Ct[3] * Ti + Ct[7] * Sn + Ct[15], na = Jn + hr, jo = uo + wr, Na = lo + li, ma = co + Ur, Ua = Jn + pi, go = uo + Hr, Ho = new re((lo + Ft) / jo, (co + Qt) / jo);
6655
6655
  Ho.z = na / jo, ti.push(Ho);
6656
6656
  var tn = new re(Na / go, ma / go);
6657
6657
  tn.z = Ua / go, Ki.push(tn);
@@ -6760,8 +6760,8 @@ function Y2() {
6760
6760
  if (hr && tt > Ae) {
6761
6761
  var li = ye.dist(Fe);
6762
6762
  if (li > 2 * be) {
6763
- var Nr = ye.sub(ye.sub(Fe)._mult(be / li)._round());
6764
- this.updateDistance(Fe, Nr), this.addCurrentVertex(Nr, $e, 0, 0, Pe), Fe = Nr;
6763
+ var Ur = ye.sub(ye.sub(Fe)._mult(be / li)._round());
6764
+ this.updateDistance(Fe, Ur), this.addCurrentVertex(Ur, $e, 0, 0, Pe), Fe = Ur;
6765
6765
  }
6766
6766
  }
6767
6767
  var pi = Fe && Ge, Hr = pi ? g : W ? "butt" : M;
@@ -7270,8 +7270,8 @@ function Y2() {
7270
7270
  }
7271
7271
  } else if (St) {
7272
7272
  st = [];
7273
- for (var li = 0, Nr = St(tt.text, tt.sectionIndex, rp(tt, Ae, R, c, M, Fe, Ge)); li < Nr.length; li += 1) {
7274
- var pi = Nr[li], Hr = new fa();
7273
+ for (var li = 0, Ur = St(tt.text, tt.sectionIndex, rp(tt, Ae, R, c, M, Fe, Ge)); li < Ur.length; li += 1) {
7274
+ var pi = Ur[li], Hr = new fa();
7275
7275
  Hr.text = pi[0], Hr.sectionIndex = pi[1], Hr.sections = tt.sections, st.push(Hr);
7276
7276
  }
7277
7277
  } else st = (function(ti, Ki) {
@@ -7318,9 +7318,9 @@ function Y2() {
7318
7318
  } else Na += Ti, ++Ho;
7319
7319
  }
7320
7320
  var qe, Ke = Na - -17, it = Vu(Sn), Mt = it.horizontalAlign, At = it.verticalAlign;
7321
- (function(kt, Dt, tr, Xr, ui, $r, Ur, Pr, ri) {
7321
+ (function(kt, Dt, tr, Xr, ui, $r, Zr, Pr, ri) {
7322
7322
  var Br, Ar = (Dt - tr) * ui;
7323
- Br = $r !== Ur ? -Pr * Xr - -17 : (-Xr * ri + 0.5) * Ur;
7323
+ Br = $r !== Zr ? -Pr * Xr - -17 : (-Xr * ri + 0.5) * Zr;
7324
7324
  for (var fi = 0, hi = kt; fi < hi.length; fi += 1) for (var Oi = 0, On = hi[fi].positionedGlyphs; Oi < On.length; Oi += 1) {
7325
7325
  var Nn = On[Oi];
7326
7326
  Nn.x += Ar, Nn.y += Br;
@@ -7537,10 +7537,10 @@ function Y2() {
7537
7537
  function yd(r, c, g, M, z, R, Z, W, ie) {
7538
7538
  var Ae = Nu(M, R, Z), ye = op(M, z), be = ye * Z, Pe = r[0].x === 0 || r[0].x === ie || r[0].y === 0 || r[0].y === ie;
7539
7539
  return c - be < c / 4 && (c = be + c / 4), (function Fe(Ge, $e, st, tt, Ct, St, Pt, Ft, Qt) {
7540
- for (var hr = St / 2, wr = Uc(Ge), li = 0, Nr = $e - st, pi = [], Hr = 0; Hr < Ge.length - 1; Hr++) {
7541
- for (var Bi = Ge[Hr], yi = Ge[Hr + 1], ti = Bi.dist(yi), Ki = yi.angleTo(Bi); Nr + st < li + ti; ) {
7542
- var Ri = ((Nr += st) - li) / ti, un = mi(Bi.x, yi.x, Ri), ci = mi(Bi.y, yi.y, Ri);
7543
- if (un >= 0 && un < Qt && ci >= 0 && ci < Qt && Nr - hr >= 0 && Nr + hr <= wr) {
7540
+ for (var hr = St / 2, wr = Uc(Ge), li = 0, Ur = $e - st, pi = [], Hr = 0; Hr < Ge.length - 1; Hr++) {
7541
+ for (var Bi = Ge[Hr], yi = Ge[Hr + 1], ti = Bi.dist(yi), Ki = yi.angleTo(Bi); Ur + st < li + ti; ) {
7542
+ var Ri = ((Ur += st) - li) / ti, un = mi(Bi.x, yi.x, Ri), ci = mi(Bi.y, yi.y, Ri);
7543
+ if (un >= 0 && un < Qt && ci >= 0 && ci < Qt && Ur - hr >= 0 && Ur + hr <= wr) {
7544
7544
  var Ti = new Ou(un, ci, Ki, Hr);
7545
7545
  Ti._round(), tt && !np(Ge, Ti, St, tt, Ct) || pi.push(Ti);
7546
7546
  }
@@ -7562,8 +7562,8 @@ function Y2() {
7562
7562
  return un + ci[1] - ci[0];
7563
7563
  }, Ge = be.reduce(Fe, 0), $e = Pe.reduce(Fe, 0), st = W - Ge, tt = ie - $e, Ct = 0, St = Ge, Pt = 0, Ft = $e, Qt = 0, hr = st, wr = 0, li = tt;
7564
7564
  if (R.content && M) {
7565
- var Nr = R.content;
7566
- Ct = yh(be, 0, Nr[0]), Pt = yh(Pe, 0, Nr[1]), St = yh(be, Nr[0], Nr[2]), Ft = yh(Pe, Nr[1], Nr[3]), Qt = Nr[0] - Ct, wr = Nr[1] - Pt, hr = Nr[2] - Nr[0] - St, li = Nr[3] - Nr[1] - Ft;
7565
+ var Ur = R.content;
7566
+ Ct = yh(be, 0, Ur[0]), Pt = yh(Pe, 0, Ur[1]), St = yh(be, Ur[0], Ur[2]), Ft = yh(Pe, Ur[1], Ur[3]), Qt = Ur[0] - Ct, wr = Ur[1] - Pt, hr = Ur[2] - Ur[0] - St, li = Ur[3] - Ur[1] - Ft;
7567
7567
  }
7568
7568
  var pi = function(un, ci, Ti, Sn) {
7569
7569
  var lo = vh(un.stretch - Ct, St, Ae, r.left), co = _h(un.fixed - Qt, hr, un.stretch, Ge), Jn = vh(ci.stretch - Pt, Ft, ye, r.top), uo = _h(ci.fixed - wr, li, ci.stretch, $e), na = vh(Ti.stretch - Ct, St, Ae, r.left), jo = _h(Ti.fixed - Qt, hr, Ti.stretch, Ge), Na = vh(Sn.stretch - Pt, Ft, ye, r.top), ma = _h(Sn.fixed - wr, li, Sn.stretch, $e), Ua = new re(lo, Jn), go = new re(na, Jn), Ho = new re(na, Na), tn = new re(lo, Na), kn = new re(co / Z, uo / Z), En = new re(jo / Z, ma / Z), hn = c * Math.PI / 180;
@@ -7630,8 +7630,8 @@ function Y2() {
7630
7630
  for (var Fe = M; Fe < R; Fe += ye) for (var Ge = z; Ge < Z; Ge += ye) Pe.push(new gu(Fe + be, Ge + be, be, r));
7631
7631
  for (var $e = (function(Ct) {
7632
7632
  for (var St = 0, Pt = 0, Ft = 0, Qt = Ct[0], hr = 0, wr = Qt.length, li = wr - 1; hr < wr; li = hr++) {
7633
- var Nr = Qt[hr], pi = Qt[li], Hr = Nr.x * pi.y - pi.x * Nr.y;
7634
- Pt += (Nr.x + pi.x) * Hr, Ft += (Nr.y + pi.y) * Hr, St += 3 * Hr;
7633
+ var Ur = Qt[hr], pi = Qt[li], Hr = Ur.x * pi.y - pi.x * Ur.y;
7634
+ Pt += (Ur.x + pi.x) * Hr, Ft += (Ur.y + pi.y) * Hr, St += 3 * Hr;
7635
7635
  }
7636
7636
  return new gu(Pt / St, Ft / St, 0, Ct);
7637
7637
  })(r), st = Pe.length; Pe.length; ) {
@@ -7754,13 +7754,13 @@ function Y2() {
7754
7754
  return "center";
7755
7755
  }
7756
7756
  function cp(r, c, g, M, z, R, Z, W, ie, Ae, ye, be, Pe, Fe, Ge) {
7757
- var $e = (function(Pt, Ft, Qt, hr, wr, li, Nr, pi) {
7757
+ var $e = (function(Pt, Ft, Qt, hr, wr, li, Ur, pi) {
7758
7758
  for (var Hr = hr.layout.get("text-rotate").evaluate(li, {}) * Math.PI / 180, Bi = [], yi = 0, ti = Ft.positionedLines; yi < ti.length; yi += 1) for (var Ki = ti[yi], Ri = 0, un = Ki.positionedGlyphs; Ri < un.length; Ri += 1) {
7759
7759
  var ci = un[Ri];
7760
7760
  if (ci.rect) {
7761
7761
  var Ti = ci.rect || {}, Sn = 4, lo = !0, co = 1, Jn = 0, uo = (wr || pi) && ci.vertical, na = ci.metrics.advance * ci.scale / 2;
7762
7762
  if (pi && Ft.verticalizable && (Jn = Ki.lineOffset / 2 - (ci.imageName ? -(24 - ci.metrics.width * ci.scale) / 2 : 24 * (ci.scale - 1))), ci.imageName) {
7763
- var jo = Nr[ci.imageName];
7763
+ var jo = Ur[ci.imageName];
7764
7764
  lo = jo.sdf, Sn = 1 / (co = jo.pixelRatio);
7765
7765
  }
7766
7766
  var Na = wr ? [ci.x + na, ci.y] : [0, 0], ma = wr ? [0, 0] : [ci.x + na + Qt[0], ci.y + Qt[1] - Jn], Ua = [0, 0];
@@ -7860,8 +7860,8 @@ function Y2() {
7860
7860
  Qt || (hr.geometry = Yi(Ct));
7861
7861
  var wr = void 0;
7862
7862
  if (ie) {
7863
- var li = M.getValueAndResolveTokens("text-field", hr, g, Fe), Nr = pn.factory(li);
7864
- N0(Nr) && (this.hasRTLText = !0), (!this.hasRTLText || dc() === "unavailable" || this.hasRTLText && ea.isParsed()) && (wr = cd(Nr, M, hr));
7863
+ var li = M.getValueAndResolveTokens("text-field", hr, g, Fe), Ur = pn.factory(li);
7864
+ N0(Ur) && (this.hasRTLText = !0), (!this.hasRTLText || dc() === "unavailable" || this.hasRTLText && ea.isParsed()) && (wr = cd(Ur, M, hr));
7865
7865
  }
7866
7866
  var pi = void 0;
7867
7867
  if (Ae) {
@@ -7944,8 +7944,8 @@ function Y2() {
7944
7944
  return { lineStartIndex: g, lineLength: this.lineVertexArray.length - g };
7945
7945
  }, Mn.prototype.addSymbols = function(r, c, g, M, z, R, Z, W, ie, Ae, ye, be) {
7946
7946
  for (var Pe = r.indexArray, Fe = r.layoutVertexArray, Ge = r.segments.prepareSegment(4 * c.length, Fe, Pe, this.canOverlap ? R.sortKey : void 0), $e = this.glyphOffsetArray.length, st = Ge.vertexLength, tt = this.allowVerticalPlacement && Z === Qs.vertical ? Math.PI / 2 : 0, Ct = R.text && R.text.sections, St = 0; St < c.length; St++) {
7947
- var Pt = c[St], Ft = Pt.tl, Qt = Pt.tr, hr = Pt.bl, wr = Pt.br, li = Pt.tex, Nr = Pt.pixelOffsetTL, pi = Pt.pixelOffsetBR, Hr = Pt.minFontScaleX, Bi = Pt.minFontScaleY, yi = Pt.glyphOffset, ti = Pt.isSDF, Ki = Pt.sectionIndex, Ri = Ge.vertexLength, un = yi[1];
7948
- vc(Fe, W.x, W.y, Ft.x, un + Ft.y, li.x, li.y, g, ti, Nr.x, Nr.y, Hr, Bi), vc(Fe, W.x, W.y, Qt.x, un + Qt.y, li.x + li.w, li.y, g, ti, pi.x, Nr.y, Hr, Bi), vc(Fe, W.x, W.y, hr.x, un + hr.y, li.x, li.y + li.h, g, ti, Nr.x, pi.y, Hr, Bi), vc(Fe, W.x, W.y, wr.x, un + wr.y, li.x + li.w, li.y + li.h, g, ti, pi.x, pi.y, Hr, Bi), Uu(r.dynamicLayoutVertexArray, W, tt), Pe.emplaceBack(Ri, Ri + 1, Ri + 2), Pe.emplaceBack(Ri + 1, Ri + 2, Ri + 3), Ge.vertexLength += 4, Ge.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(yi[0]), St !== c.length - 1 && Ki === c[St + 1].sectionIndex || r.programConfigurations.populatePaintArrays(Fe.length, R, R.index, {}, be, Ct && Ct[Ki]);
7947
+ var Pt = c[St], Ft = Pt.tl, Qt = Pt.tr, hr = Pt.bl, wr = Pt.br, li = Pt.tex, Ur = Pt.pixelOffsetTL, pi = Pt.pixelOffsetBR, Hr = Pt.minFontScaleX, Bi = Pt.minFontScaleY, yi = Pt.glyphOffset, ti = Pt.isSDF, Ki = Pt.sectionIndex, Ri = Ge.vertexLength, un = yi[1];
7948
+ vc(Fe, W.x, W.y, Ft.x, un + Ft.y, li.x, li.y, g, ti, Ur.x, Ur.y, Hr, Bi), vc(Fe, W.x, W.y, Qt.x, un + Qt.y, li.x + li.w, li.y, g, ti, pi.x, Ur.y, Hr, Bi), vc(Fe, W.x, W.y, hr.x, un + hr.y, li.x, li.y + li.h, g, ti, Ur.x, pi.y, Hr, Bi), vc(Fe, W.x, W.y, wr.x, un + wr.y, li.x + li.w, li.y + li.h, g, ti, pi.x, pi.y, Hr, Bi), Uu(r.dynamicLayoutVertexArray, W, tt), Pe.emplaceBack(Ri, Ri + 1, Ri + 2), Pe.emplaceBack(Ri + 1, Ri + 2, Ri + 3), Ge.vertexLength += 4, Ge.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(yi[0]), St !== c.length - 1 && Ki === c[St + 1].sectionIndex || r.programConfigurations.populatePaintArrays(Fe.length, R, R.index, {}, be, Ct && Ct[Ki]);
7949
7949
  }
7950
7950
  r.placedSymbolArray.emplaceBack(W.x, W.y, $e, this.glyphOffsetArray.length - $e, st, ie, Ae, W.segment, g ? g[0] : 0, g ? g[1] : 0, M[0], M[1], Z, 0, !1, 0, ye);
7951
7951
  }, Mn.prototype._addCollisionDebugVertex = function(r, c, g, M, z, R) {
@@ -8520,12 +8520,12 @@ function Y2() {
8520
8520
  var z = this;
8521
8521
  this.loadVTLayers();
8522
8522
  for (var R = r.params || {}, Z = 8192 / r.tileSize / r.scale, W = fo(R.filter), ie = r.queryGeometry, Ae = r.queryPadding * Z, ye = _p(ie), be = this.grid.query(ye.minX - Ae, ye.minY - Ae, ye.maxX + Ae, ye.maxY + Ae), Pe = _p(r.cameraQueryGeometry), Fe = this.grid3D.query(Pe.minX - Ae, Pe.minY - Ae, Pe.maxX + Ae, Pe.maxY + Ae, (function(Pt, Ft, Qt, hr) {
8523
- return (function(wr, li, Nr, pi, Hr) {
8523
+ return (function(wr, li, Ur, pi, Hr) {
8524
8524
  for (var Bi = 0, yi = wr; Bi < yi.length; Bi += 1) {
8525
8525
  var ti = yi[Bi];
8526
- if (li <= ti.x && Nr <= ti.y && pi >= ti.x && Hr >= ti.y) return !0;
8526
+ if (li <= ti.x && Ur <= ti.y && pi >= ti.x && Hr >= ti.y) return !0;
8527
8527
  }
8528
- var Ki = [new re(li, Nr), new re(li, Hr), new re(pi, Hr), new re(pi, Nr)];
8528
+ var Ki = [new re(li, Ur), new re(li, Hr), new re(pi, Hr), new re(pi, Ur)];
8529
8529
  if (wr.length > 2) {
8530
8530
  for (var Ri = 0, un = Ki; Ri < un.length; Ri += 1) if (Oo(wr, un[Ri])) return !0;
8531
8531
  }
@@ -8539,8 +8539,8 @@ function Y2() {
8539
8539
  if (Ft !== st) {
8540
8540
  st = Ft;
8541
8541
  var Qt = z.featureIndexArray.get(Ft), hr = null;
8542
- z.loadMatchingFeature(tt, Qt.bucketIndex, Qt.sourceLayerIndex, Qt.featureIndex, W, R.layers, R.availableImages, c, g, M, (function(wr, li, Nr) {
8543
- return hr || (hr = Yi(wr)), li.queryIntersectsFeature(ie, wr, Nr, hr, z.z, r.transform, Z, r.pixelPosMatrix);
8542
+ z.loadMatchingFeature(tt, Qt.bucketIndex, Qt.sourceLayerIndex, Qt.featureIndex, W, R.layers, R.availableImages, c, g, M, (function(wr, li, Ur) {
8543
+ return hr || (hr = Yi(wr)), li.queryIntersectsFeature(ie, wr, Ur, hr, z.z, r.transform, Z, r.pixelPosMatrix);
8544
8544
  }));
8545
8545
  }
8546
8546
  }, St = 0; St < be.length; St++) Ct(St);
@@ -8548,7 +8548,7 @@ function Y2() {
8548
8548
  }, bc.prototype.loadMatchingFeature = function(r, c, g, M, z, R, Z, W, ie, Ae, ye) {
8549
8549
  var be = this.bucketLayerIDs[c];
8550
8550
  if (!R || (function(wr, li) {
8551
- for (var Nr = 0; Nr < wr.length; Nr++) if (li.indexOf(wr[Nr]) >= 0) return !0;
8551
+ for (var Ur = 0; Ur < wr.length; Ur++) if (li.indexOf(wr[Ur]) >= 0) return !0;
8552
8552
  return !1;
8553
8553
  })(R, be)) {
8554
8554
  var Pe = this.sourceLayerCoder.decode(g), Fe = this.vtLayers[Pe].feature(M);
@@ -8803,8 +8803,8 @@ function Y2() {
8803
8803
  return { cancel: function() {
8804
8804
  } };
8805
8805
  }, y.identity = da, y.invert = function(r, c) {
8806
- var g = c[0], M = c[1], z = c[2], R = c[3], Z = c[4], W = c[5], ie = c[6], Ae = c[7], ye = c[8], be = c[9], Pe = c[10], Fe = c[11], Ge = c[12], $e = c[13], st = c[14], tt = c[15], Ct = g * W - M * Z, St = g * ie - z * Z, Pt = g * Ae - R * Z, Ft = M * ie - z * W, Qt = M * Ae - R * W, hr = z * Ae - R * ie, wr = ye * $e - be * Ge, li = ye * st - Pe * Ge, Nr = ye * tt - Fe * Ge, pi = be * st - Pe * $e, Hr = be * tt - Fe * $e, Bi = Pe * tt - Fe * st, yi = Ct * Bi - St * Hr + Pt * pi + Ft * Nr - Qt * li + hr * wr;
8807
- return yi ? (r[0] = (W * Bi - ie * Hr + Ae * pi) * (yi = 1 / yi), r[1] = (z * Hr - M * Bi - R * pi) * yi, r[2] = ($e * hr - st * Qt + tt * Ft) * yi, r[3] = (Pe * Qt - be * hr - Fe * Ft) * yi, r[4] = (ie * Nr - Z * Bi - Ae * li) * yi, r[5] = (g * Bi - z * Nr + R * li) * yi, r[6] = (st * Pt - Ge * hr - tt * St) * yi, r[7] = (ye * hr - Pe * Pt + Fe * St) * yi, r[8] = (Z * Hr - W * Nr + Ae * wr) * yi, r[9] = (M * Nr - g * Hr - R * wr) * yi, r[10] = (Ge * Qt - $e * Pt + tt * Ct) * yi, r[11] = (be * Pt - ye * Qt - Fe * Ct) * yi, r[12] = (W * li - Z * pi - ie * wr) * yi, r[13] = (g * pi - M * li + z * wr) * yi, r[14] = ($e * St - Ge * Ft - st * Ct) * yi, r[15] = (ye * Ft - be * St + Pe * Ct) * yi, r) : null;
8806
+ var g = c[0], M = c[1], z = c[2], R = c[3], Z = c[4], W = c[5], ie = c[6], Ae = c[7], ye = c[8], be = c[9], Pe = c[10], Fe = c[11], Ge = c[12], $e = c[13], st = c[14], tt = c[15], Ct = g * W - M * Z, St = g * ie - z * Z, Pt = g * Ae - R * Z, Ft = M * ie - z * W, Qt = M * Ae - R * W, hr = z * Ae - R * ie, wr = ye * $e - be * Ge, li = ye * st - Pe * Ge, Ur = ye * tt - Fe * Ge, pi = be * st - Pe * $e, Hr = be * tt - Fe * $e, Bi = Pe * tt - Fe * st, yi = Ct * Bi - St * Hr + Pt * pi + Ft * Ur - Qt * li + hr * wr;
8807
+ return yi ? (r[0] = (W * Bi - ie * Hr + Ae * pi) * (yi = 1 / yi), r[1] = (z * Hr - M * Bi - R * pi) * yi, r[2] = ($e * hr - st * Qt + tt * Ft) * yi, r[3] = (Pe * Qt - be * hr - Fe * Ft) * yi, r[4] = (ie * Ur - Z * Bi - Ae * li) * yi, r[5] = (g * Bi - z * Ur + R * li) * yi, r[6] = (st * Pt - Ge * hr - tt * St) * yi, r[7] = (ye * hr - Pe * Pt + Fe * St) * yi, r[8] = (Z * Hr - W * Ur + Ae * wr) * yi, r[9] = (M * Ur - g * Hr - R * wr) * yi, r[10] = (Ge * Qt - $e * Pt + tt * Ct) * yi, r[11] = (be * Pt - ye * Qt - Fe * Ct) * yi, r[12] = (W * li - Z * pi - ie * wr) * yi, r[13] = (g * pi - M * li + z * wr) * yi, r[14] = ($e * St - Ge * Ft - st * Ct) * yi, r[15] = (ye * Ft - be * St + Pe * Ct) * yi, r) : null;
8808
8808
  }, y.isChar = Tr, y.isMapboxURL = $t, y.keysDifference = function(r, c) {
8809
8809
  var g = [];
8810
8810
  for (var M in r) M in c || g.push(M);
@@ -8832,7 +8832,7 @@ function Y2() {
8832
8832
  }
8833
8833
  Ae.layoutTextSize = ie["text-size"].possiblyEvaluate(new zi(r.zoom + 1), Z), Ae.layoutIconSize = ie["icon-size"].possiblyEvaluate(new zi(r.zoom + 1), Z), Ae.textMaxSize = ie["text-size"].possiblyEvaluate(new zi(18));
8834
8834
  for (var Ge = 24 * W.get("text-line-height"), $e = W.get("text-rotation-alignment") === "map" && W.get("symbol-placement") !== "point", st = W.get("text-keep-upright"), tt = W.get("text-size"), Ct = function() {
8835
- var Ft = Pt[St], Qt = W.get("text-font").evaluate(Ft, {}, Z).join(","), hr = tt.evaluate(Ft, {}, Z), wr = Ae.layoutTextSize.evaluate(Ft, {}, Z), li = Ae.layoutIconSize.evaluate(Ft, {}, Z), Nr = { horizontal: {}, vertical: void 0 }, pi = Ft.text, Hr = [0, 0];
8835
+ var Ft = Pt[St], Qt = W.get("text-font").evaluate(Ft, {}, Z).join(","), hr = tt.evaluate(Ft, {}, Z), wr = Ae.layoutTextSize.evaluate(Ft, {}, Z), li = Ae.layoutIconSize.evaluate(Ft, {}, Z), Ur = { horizontal: {}, vertical: void 0 }, pi = Ft.text, Hr = [0, 0];
8836
8836
  if (pi) {
8837
8837
  var Bi = pi.toString(), yi = 24 * W.get("text-letter-spacing").evaluate(Ft, {}, Z), ti = (function(tn) {
8838
8838
  for (var kn = 0, En = tn; kn < En.length; kn += 1) if (hn = En[kn].charCodeAt(0), Tr.Arabic(hn) || Tr["Arabic Supplement"](hn) || Tr["Arabic Extended-A"](hn) || Tr["Arabic Presentation Forms-A"](hn) || Tr["Arabic Presentation Forms-B"](hn)) return !1;
@@ -8846,24 +8846,24 @@ function Y2() {
8846
8846
  }));
8847
8847
  }
8848
8848
  var ci = $e ? "center" : W.get("text-justify").evaluate(Ft, {}, Z), Ti = W.get("symbol-placement"), Sn = Ti === "point" ? 24 * W.get("text-max-width").evaluate(Ft, {}, Z) : 0, lo = function() {
8849
- r.allowVerticalPlacement && hc(Bi) && (Nr.vertical = Ah(pi, c, g, z, Qt, Sn, Ge, Ki, "left", ti, Hr, Qs.vertical, !0, Ti, wr, hr));
8849
+ r.allowVerticalPlacement && hc(Bi) && (Ur.vertical = Ah(pi, c, g, z, Qt, Sn, Ge, Ki, "left", ti, Hr, Qs.vertical, !0, Ti, wr, hr));
8850
8850
  };
8851
8851
  if (!$e && Ri) {
8852
8852
  for (var co = ci === "auto" ? Ri.map((function(tn) {
8853
8853
  return lp(tn);
8854
8854
  })) : [ci], Jn = !1, uo = 0; uo < co.length; uo++) {
8855
8855
  var na = co[uo];
8856
- if (!Nr.horizontal[na]) if (Jn) Nr.horizontal[na] = Nr.horizontal[0];
8856
+ if (!Ur.horizontal[na]) if (Jn) Ur.horizontal[na] = Ur.horizontal[0];
8857
8857
  else {
8858
8858
  var jo = Ah(pi, c, g, z, Qt, Sn, Ge, "center", na, ti, Hr, Qs.horizontal, !1, Ti, wr, hr);
8859
- jo && (Nr.horizontal[na] = jo, Jn = jo.positionedLines.length === 1);
8859
+ jo && (Ur.horizontal[na] = jo, Jn = jo.positionedLines.length === 1);
8860
8860
  }
8861
8861
  }
8862
8862
  lo();
8863
8863
  } else {
8864
8864
  ci === "auto" && (ci = lp(Ki));
8865
8865
  var Na = Ah(pi, c, g, z, Qt, Sn, Ge, Ki, ci, ti, Hr, Qs.horizontal, !1, Ti, wr, hr);
8866
- Na && (Nr.horizontal[ci] = Na), lo(), hc(Bi) && $e && st && (Nr.vertical = Ah(pi, c, g, z, Qt, Sn, Ge, Ki, ci, ti, Hr, Qs.vertical, !1, Ti, wr, hr));
8866
+ Na && (Ur.horizontal[ci] = Na), lo(), hc(Bi) && $e && st && (Ur.vertical = Ah(pi, c, g, z, Qt, Sn, Ge, Ki, ci, ti, Hr, Qs.vertical, !1, Ti, wr, hr));
8867
8867
  }
8868
8868
  }
8869
8869
  var ma = void 0, Ua = !1;
@@ -8874,7 +8874,7 @@ function Y2() {
8874
8874
  return { image: tn, top: oa, bottom: oa + tn.displaySize[1], left: Za, right: Za + tn.displaySize[0] };
8875
8875
  })(z[Ft.icon.name], W.get("icon-offset").evaluate(Ft, {}, Z), W.get("icon-anchor").evaluate(Ft, {}, Z)), Ua = go.sdf, r.sdfIcons === void 0 ? r.sdfIcons = go.sdf : r.sdfIcons !== go.sdf && ht("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (go.pixelRatio !== r.pixelRatio || W.get("icon-rotate").constantOr(1) !== 0) && (r.iconsNeedLinear = !0));
8876
8876
  }
8877
- var Ho = up(Nr.horizontal) || Nr.vertical;
8877
+ var Ho = up(Ur.horizontal) || Ur.vertical;
8878
8878
  r.iconsInText = !!Ho && Ho.iconsInText, (Ho || ma) && (function(tn, kn, En, hn, Za, oa, Pn, wo, ga, dn, Hc) {
8879
8879
  var h = oa.textMaxSize.evaluate(kn, {});
8880
8880
  h === void 0 && (h = Pn);
@@ -8918,8 +8918,8 @@ function Y2() {
8918
8918
  var ui = Xr[tr];
8919
8919
  L && Ys(tn, L.text, Ke, ui) || Mt(Dt, ui);
8920
8920
  }
8921
- else if (qe === "line-center") for (var $r = 0, Ur = kn.geometry; $r < Ur.length; $r += 1) {
8922
- var Pr = Ur[$r];
8921
+ else if (qe === "line-center") for (var $r = 0, Zr = kn.geometry; $r < Zr.length; $r += 1) {
8922
+ var Pr = Zr[$r];
8923
8923
  if (Pr.length > 1) {
8924
8924
  var ri = gd(Pr, ze, En.vertical || L, hn, 24, G);
8925
8925
  ri && Mt(Pr, ri);
@@ -8937,7 +8937,7 @@ function Y2() {
8937
8937
  var ya = Go[rs];
8938
8938
  Mt([ya], new Ou(ya.x, ya.y, 0));
8939
8939
  }
8940
- })(r, Ft, Nr, ma, M, Ae, wr, li, Hr, Ua, Z);
8940
+ })(r, Ft, Ur, ma, M, Ae, wr, li, Hr, Ua, Z);
8941
8941
  }, St = 0, Pt = r.features; St < Pt.length; St += 1) Ct();
8942
8942
  R && r.generateCollisionDebugBuffers();
8943
8943
  }, y.perspective = function(r, c, g, M, z) {
@@ -11902,7 +11902,7 @@ function Y2() {
11902
11902
  this.text = e, this.icon = t, this.skipFade = i;
11903
11903
  }, Nt = function() {
11904
11904
  this.invProjMatrix = y.create(), this.viewportMatrix = y.create(), this.circles = [];
11905
- }, Zr = function(e, t, i, s, m) {
11905
+ }, Nr = function(e, t, i, s, m) {
11906
11906
  this.bucketInstanceId = e, this.featureIndex = t, this.sourceLayerIndex = i, this.bucketIndex = s, this.tileID = m;
11907
11907
  }, ai = function(e) {
11908
11908
  this.crossSourceCollisions = e, this.maxGroupID = 0, this.collisionGroups = {};
@@ -11939,7 +11939,7 @@ function Y2() {
11939
11939
  var se = Se(H, Q, K, this.transform, le);
11940
11940
  fe = y.multiply([], this.transform.labelPlaneMatrix, se);
11941
11941
  }
11942
- this.retainedQueryData[m.bucketInstanceId] = new Zr(m.bucketInstanceId, x, m.sourceLayerIndex, m.index, i.tileID);
11942
+ this.retainedQueryData[m.bucketInstanceId] = new Nr(m.bucketInstanceId, x, m.sourceLayerIndex, m.index, i.tileID);
11943
11943
  var Ce = { bucket: m, layout: P, posMatrix: H, textLabelPlaneMatrix: J, labelToScreenMatrix: fe, scale: O, textPixelRatio: N, holdingForFade: i.holdingForFade(), collisionBoxArray: k, partiallyEvaluatedTextSize: y.evaluateSizeForZoom(m.textSizeData, this.transform.zoom), collisionGroup: this.collisionGroups.get(m.sourceID) };
11944
11944
  if (s) for (var De = 0, Ee = m.sortKeyRanges; De < Ee.length; De += 1) {
11945
11945
  var Ie = Ee[De];
@@ -18845,7 +18845,7 @@ function Eg() {
18845
18845
  return f || (f = this._parseColorCache[n] = br.parse(n)), f;
18846
18846
  }
18847
18847
  }
18848
- class Zr {
18848
+ class Nr {
18849
18849
  constructor(n, f, C = [], L, V = new vo(), U = []) {
18850
18850
  this.registry = n, this.path = C, this.key = C.map(((G) => `[${G}]`)).join(""), this.scope = V, this.errors = U, this.expectedType = L, this._isConstant = f;
18851
18851
  }
@@ -18889,7 +18889,7 @@ function Eg() {
18889
18889
  }
18890
18890
  concat(n, f, C) {
18891
18891
  const L = typeof n == "number" ? this.path.concat(n) : this.path, V = C ? this.scope.concat(C) : this.scope;
18892
- return new Zr(this.registry, this._isConstant, L, f || null, V, this.errors);
18892
+ return new Nr(this.registry, this._isConstant, L, f || null, V, this.errors);
18893
18893
  }
18894
18894
  error(n, ...f) {
18895
18895
  const C = `${this.key}${f.map(((L) => `[${L}]`)).join("")}`;
@@ -19122,7 +19122,7 @@ function Eg() {
19122
19122
  const V = Array.isArray(L) ? L[0] : L.type, U = Array.isArray(L) ? [[L[1], L[2]]] : L.overloads, G = U.filter((([ne]) => !Array.isArray(ne) || ne.length === n.length - 1));
19123
19123
  let X = null;
19124
19124
  for (const [ne, me] of G) {
19125
- X = new Zr(f.registry, ls, f.path, null, f.scope);
19125
+ X = new Nr(f.registry, ls, f.path, null, f.scope);
19126
19126
  const ve = [];
19127
19127
  let ze = !1;
19128
19128
  for (let Be = 1; Be < n.length; Be++) {
@@ -20009,7 +20009,7 @@ function Eg() {
20009
20009
  return Array.isArray(h) && h.length > 0 && typeof h[0] == "string" && h[0] in Qa;
20010
20010
  }
20011
20011
  function _o(h, n) {
20012
- const f = new Zr(Qa, ls, [], n ? (function(L) {
20012
+ const f = new Nr(Qa, ls, [], n ? (function(L) {
20013
20013
  const V = { color: $n, string: Ei, number: vr, enum: Ei, boolean: Rt, formatted: We, padding: we, resolvedImage: $, variableAnchorOffsetCollection: ee };
20014
20014
  return L.type === "array" ? te(V[L.value] || vi, L.length) : V[L.type];
20015
20015
  })(n) : void 0), C = f.parse(h, void 0, void 0, void 0, n && n.type === "string" ? { typeAnnotation: "coerce" } : void 0);
@@ -21346,13 +21346,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
21346
21346
  _refreshViews() {
21347
21347
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
21348
21348
  }
21349
- emplaceBack(n, f, C, L, V, U, G, X, ne, me, ve, ze, Be, Ve, qe, Ke, it, Mt, At, kt, Dt, tr, Xr, ui, $r, Ur, Pr, ri) {
21349
+ emplaceBack(n, f, C, L, V, U, G, X, ne, me, ve, ze, Be, Ve, qe, Ke, it, Mt, At, kt, Dt, tr, Xr, ui, $r, Zr, Pr, ri) {
21350
21350
  const Br = this.length;
21351
- return this.resize(Br + 1), this.emplace(Br, n, f, C, L, V, U, G, X, ne, me, ve, ze, Be, Ve, qe, Ke, it, Mt, At, kt, Dt, tr, Xr, ui, $r, Ur, Pr, ri);
21351
+ return this.resize(Br + 1), this.emplace(Br, n, f, C, L, V, U, G, X, ne, me, ve, ze, Be, Ve, qe, Ke, it, Mt, At, kt, Dt, tr, Xr, ui, $r, Zr, Pr, ri);
21352
21352
  }
21353
- emplace(n, f, C, L, V, U, G, X, ne, me, ve, ze, Be, Ve, qe, Ke, it, Mt, At, kt, Dt, tr, Xr, ui, $r, Ur, Pr, ri, Br) {
21353
+ emplace(n, f, C, L, V, U, G, X, ne, me, ve, ze, Be, Ve, qe, Ke, it, Mt, At, kt, Dt, tr, Xr, ui, $r, Zr, Pr, ri, Br) {
21354
21354
  const Ar = 32 * n, fi = 16 * n;
21355
- return this.int16[Ar + 0] = f, this.int16[Ar + 1] = C, this.int16[Ar + 2] = L, this.int16[Ar + 3] = V, this.int16[Ar + 4] = U, this.int16[Ar + 5] = G, this.int16[Ar + 6] = X, this.int16[Ar + 7] = ne, this.uint16[Ar + 8] = me, this.uint16[Ar + 9] = ve, this.uint16[Ar + 10] = ze, this.uint16[Ar + 11] = Be, this.uint16[Ar + 12] = Ve, this.uint16[Ar + 13] = qe, this.uint16[Ar + 14] = Ke, this.uint16[Ar + 15] = it, this.uint16[Ar + 16] = Mt, this.uint16[Ar + 17] = At, this.uint16[Ar + 18] = kt, this.uint16[Ar + 19] = Dt, this.uint16[Ar + 20] = tr, this.uint16[Ar + 21] = Xr, this.uint16[Ar + 22] = ui, this.uint32[fi + 12] = $r, this.float32[fi + 13] = Ur, this.float32[fi + 14] = Pr, this.uint16[Ar + 30] = ri, this.uint16[Ar + 31] = Br, n;
21355
+ return this.int16[Ar + 0] = f, this.int16[Ar + 1] = C, this.int16[Ar + 2] = L, this.int16[Ar + 3] = V, this.int16[Ar + 4] = U, this.int16[Ar + 5] = G, this.int16[Ar + 6] = X, this.int16[Ar + 7] = ne, this.uint16[Ar + 8] = me, this.uint16[Ar + 9] = ve, this.uint16[Ar + 10] = ze, this.uint16[Ar + 11] = Be, this.uint16[Ar + 12] = Ve, this.uint16[Ar + 13] = qe, this.uint16[Ar + 14] = Ke, this.uint16[Ar + 15] = it, this.uint16[Ar + 16] = Mt, this.uint16[Ar + 17] = At, this.uint16[Ar + 18] = kt, this.uint16[Ar + 19] = Dt, this.uint16[Ar + 20] = tr, this.uint16[Ar + 21] = Xr, this.uint16[Ar + 22] = ui, this.uint32[fi + 12] = $r, this.float32[fi + 13] = Zr, this.float32[fi + 14] = Pr, this.uint16[Ar + 30] = ri, this.uint16[Ar + 31] = Br, n;
21356
21356
  }
21357
21357
  }
21358
21358
  u.prototype.bytesPerElement = 64, _r("StructArrayLayout8i15ui1ul2f2ui64", u);
@@ -23039,11 +23039,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
23039
23039
  }
23040
23040
  return Mt;
23041
23041
  })(ne, X), Be = (function(Ve, qe, Ke, it) {
23042
- const Mt = [], At = [], kt = it[8] * qe, Dt = it[9] * qe, tr = it[10] * qe, Xr = it[11] * qe, ui = it[8] * Ke, $r = it[9] * Ke, Ur = it[10] * Ke, Pr = it[11] * Ke;
23042
+ const Mt = [], At = [], kt = it[8] * qe, Dt = it[9] * qe, tr = it[10] * qe, Xr = it[11] * qe, ui = it[8] * Ke, $r = it[9] * Ke, Zr = it[10] * Ke, Pr = it[11] * Ke;
23043
23043
  for (const ri of Ve) {
23044
23044
  const Br = [], Ar = [];
23045
23045
  for (const fi of ri) {
23046
- const hi = fi.x, Oi = fi.y, On = it[0] * hi + it[4] * Oi + it[12], Nn = it[1] * hi + it[5] * Oi + it[13], qo = it[2] * hi + it[6] * Oi + it[14], Ks = it[3] * hi + it[7] * Oi + it[15], rs = qo + tr, Go = Ks + Xr, ya = On + ui, is = Nn + $r, La = qo + Ur, gn = Ks + Pr, Hn = new ae((On + kt) / Go, (Nn + Dt) / Go);
23046
+ const hi = fi.x, Oi = fi.y, On = it[0] * hi + it[4] * Oi + it[12], Nn = it[1] * hi + it[5] * Oi + it[13], qo = it[2] * hi + it[6] * Oi + it[14], Ks = it[3] * hi + it[7] * Oi + it[15], rs = qo + tr, Go = Ks + Xr, ya = On + ui, is = Nn + $r, La = qo + Zr, gn = Ks + Pr, Hn = new ae((On + kt) / Go, (Nn + Dt) / Go);
23047
23047
  Hn.z = rs / Go, Br.push(Hn);
23048
23048
  const va = new ae(ya / gn, is / gn);
23049
23049
  va.z = La / gn, Ar.push(va);
@@ -23170,18 +23170,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
23170
23170
  }
23171
23171
  }
23172
23172
  const $r = Be && Ve;
23173
- let Ur = $r ? C : G ? "butt" : L;
23174
- if ($r && Ur === "round" && (Dt < U ? Ur = "miter" : Dt <= 2 && (Ur = "fakeround")), Ur === "miter" && Dt > V && (Ur = "bevel"), Ur === "bevel" && (Dt > 2 && (Ur = "flipbevel"), Dt < V && (Ur = "miter")), Be && this.updateDistance(Be, ze), Ur === "miter") Mt._mult(Dt), this.addCurrentVertex(ze, Mt, 0, 0, ve);
23175
- else if (Ur === "flipbevel") {
23173
+ let Zr = $r ? C : G ? "butt" : L;
23174
+ if ($r && Zr === "round" && (Dt < U ? Zr = "miter" : Dt <= 2 && (Zr = "fakeround")), Zr === "miter" && Dt > V && (Zr = "bevel"), Zr === "bevel" && (Dt > 2 && (Zr = "flipbevel"), Dt < V && (Zr = "miter")), Be && this.updateDistance(Be, ze), Zr === "miter") Mt._mult(Dt), this.addCurrentVertex(ze, Mt, 0, 0, ve);
23175
+ else if (Zr === "flipbevel") {
23176
23176
  if (Dt > 100) Mt = Ke.mult(-1);
23177
23177
  else {
23178
23178
  const Pr = Dt * qe.add(Ke).mag() / qe.sub(Ke).mag();
23179
23179
  Mt._perp()._mult(Pr * (ui ? -1 : 1));
23180
23180
  }
23181
23181
  this.addCurrentVertex(ze, Mt, 0, 0, ve), this.addCurrentVertex(ze, Mt.mult(-1), 0, 0, ve);
23182
- } else if (Ur === "bevel" || Ur === "fakeround") {
23182
+ } else if (Zr === "bevel" || Zr === "fakeround") {
23183
23183
  const Pr = -Math.sqrt(Dt * Dt - 1), ri = ui ? Pr : 0, Br = ui ? 0 : Pr;
23184
- if (Be && this.addCurrentVertex(ze, qe, ri, Br, ve), Ur === "fakeround") {
23184
+ if (Be && this.addCurrentVertex(ze, qe, ri, Br, ve), Zr === "fakeround") {
23185
23185
  const Ar = Math.round(180 * tr / Math.PI / 20);
23186
23186
  for (let fi = 1; fi < Ar; fi++) {
23187
23187
  let hi = fi / Ar;
@@ -23194,11 +23194,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
23194
23194
  }
23195
23195
  }
23196
23196
  Ve && this.addCurrentVertex(ze, Ke, -ri, -Br, ve);
23197
- } else if (Ur === "butt") this.addCurrentVertex(ze, Mt, 0, 0, ve);
23198
- else if (Ur === "square") {
23197
+ } else if (Zr === "butt") this.addCurrentVertex(ze, Mt, 0, 0, ve);
23198
+ else if (Zr === "square") {
23199
23199
  const Pr = Be ? 1 : -1;
23200
23200
  this.addCurrentVertex(ze, Mt, Pr, Pr, ve);
23201
- } else Ur === "round" && (Be && (this.addCurrentVertex(ze, qe, 0, 0, ve), this.addCurrentVertex(ze, qe, 1, 1, ve, !0)), Ve && (this.addCurrentVertex(ze, Ke, -1, -1, ve, !0), this.addCurrentVertex(ze, Ke, 0, 0, ve)));
23201
+ } else Zr === "round" && (Be && (this.addCurrentVertex(ze, qe, 0, 0, ve), this.addCurrentVertex(ze, qe, 1, 1, ve, !0)), Ve && (this.addCurrentVertex(ze, Ke, -1, -1, ve, !0), this.addCurrentVertex(ze, Ke, 0, 0, ve)));
23202
23202
  if (Xr && it < X - 1) {
23203
23203
  const Pr = ze.dist(Ve);
23204
23204
  if (Pr > 2 * me) {
@@ -23793,16 +23793,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
23793
23793
  }
23794
23794
  } else it = (function(tr, Xr) {
23795
23795
  const ui = [], $r = tr.text;
23796
- let Ur = 0;
23797
- for (const Pr of Xr) ui.push(tr.substring(Ur, Pr)), Ur = Pr;
23798
- return Ur < $r.length && ui.push(tr.substring(Ur, $r.length)), ui;
23796
+ let Zr = 0;
23797
+ for (const Pr of Xr) ui.push(tr.substring(Zr, Pr)), Zr = Pr;
23798
+ return Zr < $r.length && ui.push(tr.substring(Zr, $r.length)), ui;
23799
23799
  })(Ke, pp(Ke, ne, V, n, C, Be, Ve));
23800
23800
  const kt = [], Dt = { positionedLines: kt, text: Ke.toString(), top: me[1], bottom: me[1], left: me[0], right: me[0], writingMode: ve, iconsInText: !1, verticalizable: !1 };
23801
- return (function(tr, Xr, ui, $r, Ur, Pr, ri, Br, Ar, fi, hi, Oi) {
23801
+ return (function(tr, Xr, ui, $r, Zr, Pr, ri, Br, Ar, fi, hi, Oi) {
23802
23802
  let On = 0, Nn = Uu, qo = 0, Ks = 0;
23803
23803
  const rs = Br === "right" ? 1 : Br === "left" ? 0 : 0.5;
23804
23804
  let Go = 0;
23805
- for (const Hn of Ur) {
23805
+ for (const Hn of Zr) {
23806
23806
  Hn.trim();
23807
23807
  const va = Hn.getMaxScale(), Io = (va - 1) * Aa, ns = { positionedGlyphs: [], lineOffset: 0 };
23808
23808
  tr.positionedLines[Go] = ns;
@@ -23847,7 +23847,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
23847
23847
  let _a = 0;
23848
23848
  _a = as !== Po ? -Do * ns - Uu : (-ns * nn + 0.5) * Po;
23849
23849
  for (const $o of Hn) for (const Dl of $o.positionedGlyphs) Dl.x += za, Dl.y += _a;
23850
- })(tr.positionedLines, rs, La, gn, qo, Ks, Pr, is, Ur.length), tr.top += -gn * is, tr.bottom = tr.top + is, tr.left += -La * qo, tr.right = tr.left + qo;
23850
+ })(tr.positionedLines, rs, La, gn, qo, Ks, Pr, is, Zr.length), tr.top += -gn * is, tr.bottom = tr.top + is, tr.left += -La * qo, tr.right = tr.left + qo;
23851
23851
  })(Dt, n, f, C, it, U, G, X, ve, ne, ze, qe), !(function(tr) {
23852
23852
  for (const Xr of tr) if (Xr.positionedGlyphs.length !== 0) return !1;
23853
23853
  return !0;
@@ -24040,8 +24040,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
24040
24040
  if (!L._featureFilter.filter(qe, Dt, C)) continue;
24041
24041
  let tr, Xr;
24042
24042
  if (kt || (Dt.geometry = da(Ke)), ne) {
24043
- const $r = L.getValueAndResolveTokens("text-field", Dt, C, Ve), Ur = bi.factory($r);
24044
- no(Ur) && (this.hasRTLText = !0), (!this.hasRTLText || ea() === "unavailable" || this.hasRTLText && Yn.isParsed()) && (tr = rp(Ur, L, Dt));
24043
+ const $r = L.getValueAndResolveTokens("text-field", Dt, C, Ve), Zr = bi.factory($r);
24044
+ no(Zr) && (this.hasRTLText = !0), (!this.hasRTLText || ea() === "unavailable" || this.hasRTLText && Yn.isParsed()) && (tr = rp(Zr, L, Dt));
24045
24045
  }
24046
24046
  if (me) {
24047
24047
  const $r = L.getValueAndResolveTokens("icon-image", Dt, C, Ve);
@@ -24050,12 +24050,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
24050
24050
  if (!tr && !Xr) continue;
24051
24051
  const ui = this.sortFeaturesByKey ? ve.evaluate(Dt, {}, C) : void 0;
24052
24052
  if (this.features.push({ id: it, text: tr, icon: Xr, index: Mt, sourceLayerIndex: At, geometry: Dt.geometry, properties: Ke.properties, type: Ap[Ke.type], sortKey: ui }), Xr && (ze[Xr.name] = !0), tr) {
24053
- const $r = U.evaluate(Dt, {}, C).join(","), Ur = V.get("text-rotation-alignment") !== "viewport" && V.get("symbol-placement") !== "point";
24053
+ const $r = U.evaluate(Dt, {}, C).join(","), Zr = V.get("text-rotation-alignment") !== "viewport" && V.get("symbol-placement") !== "point";
24054
24054
  this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(v.ai.vertical) >= 0;
24055
24055
  for (const Pr of tr.sections) if (Pr.image) ze[Pr.image.name] = !0;
24056
24056
  else {
24057
24057
  const ri = Ko(tr.toString()), Br = Pr.fontStack || $r, Ar = Be[Br] = Be[Br] || {};
24058
- this.calculateGlyphDependencies(Pr.text, Ar, Ur, this.allowVerticalPlacement, ri);
24058
+ this.calculateGlyphDependencies(Pr.text, Ar, Zr, this.allowVerticalPlacement, ri);
24059
24059
  }
24060
24060
  }
24061
24061
  }
@@ -24065,20 +24065,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
24065
24065
  function Dt($r) {
24066
24066
  At.push(Ke[$r]), kt++;
24067
24067
  }
24068
- function tr($r, Ur, Pr) {
24068
+ function tr($r, Zr, Pr) {
24069
24069
  const ri = Mt[$r];
24070
- return delete Mt[$r], Mt[Ur] = ri, At[ri].geometry[0].pop(), At[ri].geometry[0] = At[ri].geometry[0].concat(Pr[0]), ri;
24070
+ return delete Mt[$r], Mt[Zr] = ri, At[ri].geometry[0].pop(), At[ri].geometry[0] = At[ri].geometry[0].concat(Pr[0]), ri;
24071
24071
  }
24072
- function Xr($r, Ur, Pr) {
24073
- const ri = it[Ur];
24074
- return delete it[Ur], it[$r] = ri, At[ri].geometry[0].shift(), At[ri].geometry[0] = Pr[0].concat(At[ri].geometry[0]), ri;
24072
+ function Xr($r, Zr, Pr) {
24073
+ const ri = it[Zr];
24074
+ return delete it[Zr], it[$r] = ri, At[ri].geometry[0].shift(), At[ri].geometry[0] = Pr[0].concat(At[ri].geometry[0]), ri;
24075
24075
  }
24076
- function ui($r, Ur, Pr) {
24077
- const ri = Pr ? Ur[0][Ur[0].length - 1] : Ur[0][0];
24076
+ function ui($r, Zr, Pr) {
24077
+ const ri = Pr ? Zr[0][Zr[0].length - 1] : Zr[0][0];
24078
24078
  return `${$r}:${ri.x}:${ri.y}`;
24079
24079
  }
24080
24080
  for (let $r = 0; $r < Ke.length; $r++) {
24081
- const Ur = Ke[$r], Pr = Ur.geometry, ri = Ur.text ? Ur.text.toString() : null;
24081
+ const Zr = Ke[$r], Pr = Zr.geometry, ri = Zr.text ? Zr.text.toString() : null;
24082
24082
  if (!ri) {
24083
24083
  Dt($r);
24084
24084
  continue;
@@ -24127,8 +24127,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
24127
24127
  addSymbols(n, f, C, L, V, U, G, X, ne, me, ve, ze) {
24128
24128
  const Be = n.indexArray, Ve = n.layoutVertexArray, qe = n.segments.prepareSegment(4 * f.length, Ve, Be, this.canOverlap ? U.sortKey : void 0), Ke = this.glyphOffsetArray.length, it = qe.vertexLength, Mt = this.allowVerticalPlacement && G === v.ai.vertical ? Math.PI / 2 : 0, At = U.text && U.text.sections;
24129
24129
  for (let kt = 0; kt < f.length; kt++) {
24130
- const { tl: Dt, tr, bl: Xr, br: ui, tex: $r, pixelOffsetTL: Ur, pixelOffsetBR: Pr, minFontScaleX: ri, minFontScaleY: Br, glyphOffset: Ar, isSDF: fi, sectionIndex: hi } = f[kt], Oi = qe.vertexLength, On = Ar[1];
24131
- Z0(Ve, X.x, X.y, Dt.x, On + Dt.y, $r.x, $r.y, C, fi, Ur.x, Ur.y, ri, Br), Z0(Ve, X.x, X.y, tr.x, On + tr.y, $r.x + $r.w, $r.y, C, fi, Pr.x, Ur.y, ri, Br), Z0(Ve, X.x, X.y, Xr.x, On + Xr.y, $r.x, $r.y + $r.h, C, fi, Ur.x, Pr.y, ri, Br), Z0(Ve, X.x, X.y, ui.x, On + ui.y, $r.x + $r.w, $r.y + $r.h, C, fi, Pr.x, Pr.y, ri, Br), So(n.dynamicLayoutVertexArray, X, Mt), Be.emplaceBack(Oi, Oi + 1, Oi + 2), Be.emplaceBack(Oi + 1, Oi + 2, Oi + 3), qe.vertexLength += 4, qe.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(Ar[0]), kt !== f.length - 1 && hi === f[kt + 1].sectionIndex || n.programConfigurations.populatePaintArrays(Ve.length, U, U.index, {}, ze, At && At[hi]);
24130
+ const { tl: Dt, tr, bl: Xr, br: ui, tex: $r, pixelOffsetTL: Zr, pixelOffsetBR: Pr, minFontScaleX: ri, minFontScaleY: Br, glyphOffset: Ar, isSDF: fi, sectionIndex: hi } = f[kt], Oi = qe.vertexLength, On = Ar[1];
24131
+ Z0(Ve, X.x, X.y, Dt.x, On + Dt.y, $r.x, $r.y, C, fi, Zr.x, Zr.y, ri, Br), Z0(Ve, X.x, X.y, tr.x, On + tr.y, $r.x + $r.w, $r.y, C, fi, Pr.x, Zr.y, ri, Br), Z0(Ve, X.x, X.y, Xr.x, On + Xr.y, $r.x, $r.y + $r.h, C, fi, Zr.x, Pr.y, ri, Br), Z0(Ve, X.x, X.y, ui.x, On + ui.y, $r.x + $r.w, $r.y + $r.h, C, fi, Pr.x, Pr.y, ri, Br), So(n.dynamicLayoutVertexArray, X, Mt), Be.emplaceBack(Oi, Oi + 1, Oi + 2), Be.emplaceBack(Oi + 1, Oi + 2, Oi + 3), qe.vertexLength += 4, qe.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(Ar[0]), kt !== f.length - 1 && hi === f[kt + 1].sectionIndex || n.programConfigurations.populatePaintArrays(Ve.length, U, U.index, {}, ze, At && At[hi]);
24132
24132
  }
24133
24133
  n.placedSymbolArray.emplaceBack(X.x, X.y, Ke, this.glyphOffsetArray.length - Ke, it, ne, me, X.segment, C ? C[0] : 0, C ? C[1] : 0, L[0], L[1], G, 0, !1, 0, ve);
24134
24134
  }
@@ -24656,12 +24656,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
24656
24656
  query(n, f, C, L) {
24657
24657
  this.loadVTLayers();
24658
24658
  const V = n.params || {}, U = Zn / n.tileSize / n.scale, G = Us(V.filter), X = n.queryGeometry, ne = n.queryPadding * U, me = Fe(X), ve = this.grid.query(me.minX - ne, me.minY - ne, me.maxX + ne, me.maxY + ne), ze = Fe(n.cameraQueryGeometry), Be = this.grid3D.query(ze.minX - ne, ze.minY - ne, ze.maxX + ne, ze.maxY + ne, ((Ke, it, Mt, At) => (function(kt, Dt, tr, Xr, ui) {
24659
- for (const Ur of kt) if (Dt <= Ur.x && tr <= Ur.y && Xr >= Ur.x && ui >= Ur.y) return !0;
24659
+ for (const Zr of kt) if (Dt <= Zr.x && tr <= Zr.y && Xr >= Zr.x && ui >= Zr.y) return !0;
24660
24660
  const $r = [new ae(Dt, tr), new ae(Dt, ui), new ae(Xr, ui), new ae(Xr, tr)];
24661
24661
  if (kt.length > 2) {
24662
- for (const Ur of $r) if (Ju(kt, Ur)) return !0;
24662
+ for (const Zr of $r) if (Ju(kt, Zr)) return !0;
24663
24663
  }
24664
- for (let Ur = 0; Ur < kt.length - 1; Ur++) if (Np(kt[Ur], kt[Ur + 1], $r)) return !0;
24664
+ for (let Zr = 0; Zr < kt.length - 1; Zr++) if (Np(kt[Zr], kt[Zr + 1], $r)) return !0;
24665
24665
  return !1;
24666
24666
  })(n.cameraQueryGeometry, Ke - ne, it - ne, Mt + ne, At + ne)));
24667
24667
  for (const Ke of Be) ve.push(Ke);
@@ -24830,9 +24830,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
24830
24830
  let Mt = 0, At = Ve, kt = 0, Dt = qe, tr = 0, Xr = Ke, ui = 0, $r = it;
24831
24831
  if (V.content && C) {
24832
24832
  const Pr = V.content;
24833
- Mt = Nr(ve, 0, Pr[0]), kt = Nr(ze, 0, Pr[1]), At = Nr(ve, Pr[0], Pr[2]), Dt = Nr(ze, Pr[1], Pr[3]), tr = Pr[0] - Mt, ui = Pr[1] - kt, Xr = Pr[2] - Pr[0] - At, $r = Pr[3] - Pr[1] - Dt;
24833
+ Mt = Ur(ve, 0, Pr[0]), kt = Ur(ze, 0, Pr[1]), At = Ur(ve, Pr[0], Pr[2]), Dt = Ur(ze, Pr[1], Pr[3]), tr = Pr[0] - Mt, ui = Pr[1] - kt, Xr = Pr[2] - Pr[0] - At, $r = Pr[3] - Pr[1] - Dt;
24834
24834
  }
24835
- const Ur = (Pr, ri, Br, Ar) => {
24835
+ const Zr = (Pr, ri, Br, Ar) => {
24836
24836
  const fi = Hr(Pr.stretch - Mt, At, ne, h.left), hi = Bi(Pr.fixed - tr, Xr, Pr.stretch, Ve), Oi = Hr(ri.stretch - kt, Dt, me, h.top), On = Bi(ri.fixed - ui, $r, ri.stretch, qe), Nn = Hr(Br.stretch - Mt, At, ne, h.left), qo = Bi(Br.fixed - tr, Xr, Br.stretch, Ve), Ks = Hr(Ar.stretch - kt, Dt, me, h.top), rs = Bi(Ar.fixed - ui, $r, Ar.stretch, qe), Go = new ae(fi, Oi), ya = new ae(Nn, Oi), is = new ae(Nn, Ks), La = new ae(fi, Ks), gn = new ae(hi / U, On / U), Hn = new ae(qo / U, rs / U), va = n * Math.PI / 180;
24837
24837
  if (va) {
24838
24838
  const os = Math.sin(va), as = Math.cos(va), Po = [as, -os, os, as];
@@ -24845,12 +24845,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
24845
24845
  const Pr = pi(ve, Ke, Ve), ri = pi(ze, it, qe);
24846
24846
  for (let Br = 0; Br < Pr.length - 1; Br++) {
24847
24847
  const Ar = Pr[Br], fi = Pr[Br + 1];
24848
- for (let hi = 0; hi < ri.length - 1; hi++) L.push(Ur(Ar, ri[hi], fi, ri[hi + 1]));
24848
+ for (let hi = 0; hi < ri.length - 1; hi++) L.push(Zr(Ar, ri[hi], fi, ri[hi + 1]));
24849
24849
  }
24850
- } else L.push(Ur({ fixed: 0, stretch: -1 }, { fixed: 0, stretch: -1 }, { fixed: 0, stretch: G + 1 }, { fixed: 0, stretch: X + 1 }));
24850
+ } else L.push(Zr({ fixed: 0, stretch: -1 }, { fixed: 0, stretch: -1 }, { fixed: 0, stretch: G + 1 }, { fixed: 0, stretch: X + 1 }));
24851
24851
  return L;
24852
24852
  }
24853
- function Nr(h, n, f) {
24853
+ function Ur(h, n, f) {
24854
24854
  let C = 0;
24855
24855
  for (const L of h) C += Math.max(n, Math.min(f, L[1])) - Math.max(n, Math.min(f, L[0]));
24856
24856
  return C;
@@ -25076,7 +25076,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25076
25076
  const ze = h.layers[0].layout, Be = ze.get("icon-offset").evaluate(n, {}, me), Ve = Na(f.horizontal), qe = U / 24, Ke = h.tilePixelRatio * qe, it = h.tilePixelRatio * ve / 24, Mt = h.tilePixelRatio * G, At = h.tilePixelRatio * ze.get("symbol-spacing"), kt = ze.get("text-padding") * h.tilePixelRatio, Dt = (function(Ar, fi, hi, Oi = 1) {
25077
25077
  const On = Ar.get("icon-padding").evaluate(fi, {}, hi), Nn = On && On.values;
25078
25078
  return [Nn[0] * Oi, Nn[1] * Oi, Nn[2] * Oi, Nn[3] * Oi];
25079
- })(ze, n, me, h.tilePixelRatio), tr = ze.get("text-max-angle") / 180 * Math.PI, Xr = ze.get("text-rotation-alignment") !== "viewport" && ze.get("symbol-placement") !== "point", ui = ze.get("icon-rotation-alignment") === "map" && ze.get("symbol-placement") !== "point", $r = ze.get("symbol-placement"), Ur = At / 2, Pr = ze.get("icon-text-fit");
25079
+ })(ze, n, me, h.tilePixelRatio), tr = ze.get("text-max-angle") / 180 * Math.PI, Xr = ze.get("text-rotation-alignment") !== "viewport" && ze.get("symbol-placement") !== "point", ui = ze.get("icon-rotation-alignment") === "map" && ze.get("symbol-placement") !== "point", $r = ze.get("symbol-placement"), Zr = At / 2, Pr = ze.get("icon-text-fit");
25080
25080
  let ri;
25081
25081
  C && Pr !== "none" && (h.allowVerticalPlacement && f.vertical && (ri = fp(C, f.vertical, Pr, ze.get("icon-text-fit-padding"), Be, qe)), Ve && (C = fp(C, Ve, Pr, ze.get("icon-text-fit-padding"), Be, qe)));
25082
25082
  const Br = (Ar, fi) => {
@@ -25127,7 +25127,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25127
25127
  };
25128
25128
  if ($r === "line") for (const Ar of $e(n.geometry, 0, 0, Zn, Zn)) {
25129
25129
  const fi = Qt(Ar, At, tr, f.vertical || Ve, C, 24, it, h.overscaling, Zn);
25130
- for (const hi of fi) Ve && ma(h, Ve.text, Ur, hi) || Br(Ar, hi);
25130
+ for (const hi of fi) Ve && ma(h, Ve.text, Zr, hi) || Br(Ar, hi);
25131
25131
  }
25132
25132
  else if ($r === "line-center") {
25133
25133
  for (const Ar of n.geometry) if (Ar.length > 1) {
@@ -25143,7 +25143,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25143
25143
  }
25144
25144
  function jo(h, n, f, C, L, V, U, G, X, ne, me, ve, ze, Be, Ve) {
25145
25145
  const qe = (function(Mt, At, kt, Dt, tr, Xr, ui, $r) {
25146
- const Ur = Dt.layout.get("text-rotate").evaluate(Xr, {}) * Math.PI / 180, Pr = [];
25146
+ const Zr = Dt.layout.get("text-rotate").evaluate(Xr, {}) * Math.PI / 180, Pr = [];
25147
25147
  for (const ri of At.positionedLines) for (const Br of ri.positionedGlyphs) {
25148
25148
  if (!Br.rect) continue;
25149
25149
  const Ar = Br.rect || {};
@@ -25161,8 +25161,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25161
25161
  const Do = new ae(-qo, qo - Uu), nn = -Math.PI / 2, za = Aa / 2 - qo, _a = new ae(5 - Uu - za, -(Br.imageName ? za : 0)), $o = new ae(...Go);
25162
25162
  va._rotateAround(nn, Do)._add(_a)._add($o), Io._rotateAround(nn, Do)._add(_a)._add($o), ns._rotateAround(nn, Do)._add(_a)._add($o), os._rotateAround(nn, Do)._add(_a)._add($o);
25163
25163
  }
25164
- if (Ur) {
25165
- const Do = Math.sin(Ur), nn = Math.cos(Ur), za = [nn, -Do, Do, nn];
25164
+ if (Zr) {
25165
+ const Do = Math.sin(Zr), nn = Math.cos(Zr), za = [nn, -Do, Do, nn];
25166
25166
  va._matMult(za), Io._matMult(za), ns._matMult(za), os._matMult(za);
25167
25167
  }
25168
25168
  const as = new ae(0, 0), Po = new ae(0, 0);
@@ -25533,8 +25533,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25533
25533
  const ne = (G * (h.y - f.y) - U * (h.x - f.x)) / X;
25534
25534
  return new ae(h.x + ne * V, h.y + ne * L);
25535
25535
  }, v.am = $e, v.an = zu, v.ao = Nc, v.ap = Aa, v.ar = nu, v.as = function(h, n) {
25536
- var f = n[0], C = n[1], L = n[2], V = n[3], U = n[4], G = n[5], X = n[6], ne = n[7], me = n[8], ve = n[9], ze = n[10], Be = n[11], Ve = n[12], qe = n[13], Ke = n[14], it = n[15], Mt = f * G - C * U, At = f * X - L * U, kt = f * ne - V * U, Dt = C * X - L * G, tr = C * ne - V * G, Xr = L * ne - V * X, ui = me * qe - ve * Ve, $r = me * Ke - ze * Ve, Ur = me * it - Be * Ve, Pr = ve * Ke - ze * qe, ri = ve * it - Be * qe, Br = ze * it - Be * Ke, Ar = Mt * Br - At * ri + kt * Pr + Dt * Ur - tr * $r + Xr * ui;
25537
- return Ar ? (h[0] = (G * Br - X * ri + ne * Pr) * (Ar = 1 / Ar), h[1] = (L * ri - C * Br - V * Pr) * Ar, h[2] = (qe * Xr - Ke * tr + it * Dt) * Ar, h[3] = (ze * tr - ve * Xr - Be * Dt) * Ar, h[4] = (X * Ur - U * Br - ne * $r) * Ar, h[5] = (f * Br - L * Ur + V * $r) * Ar, h[6] = (Ke * kt - Ve * Xr - it * At) * Ar, h[7] = (me * Xr - ze * kt + Be * At) * Ar, h[8] = (U * ri - G * Ur + ne * ui) * Ar, h[9] = (C * Ur - f * ri - V * ui) * Ar, h[10] = (Ve * tr - qe * kt + it * Mt) * Ar, h[11] = (ve * kt - me * tr - Be * Mt) * Ar, h[12] = (G * $r - U * Pr - X * ui) * Ar, h[13] = (f * Pr - C * $r + L * ui) * Ar, h[14] = (qe * At - Ve * Dt - Ke * Mt) * Ar, h[15] = (me * Dt - ve * At + ze * Mt) * Ar, h) : null;
25536
+ var f = n[0], C = n[1], L = n[2], V = n[3], U = n[4], G = n[5], X = n[6], ne = n[7], me = n[8], ve = n[9], ze = n[10], Be = n[11], Ve = n[12], qe = n[13], Ke = n[14], it = n[15], Mt = f * G - C * U, At = f * X - L * U, kt = f * ne - V * U, Dt = C * X - L * G, tr = C * ne - V * G, Xr = L * ne - V * X, ui = me * qe - ve * Ve, $r = me * Ke - ze * Ve, Zr = me * it - Be * Ve, Pr = ve * Ke - ze * qe, ri = ve * it - Be * qe, Br = ze * it - Be * Ke, Ar = Mt * Br - At * ri + kt * Pr + Dt * Zr - tr * $r + Xr * ui;
25537
+ return Ar ? (h[0] = (G * Br - X * ri + ne * Pr) * (Ar = 1 / Ar), h[1] = (L * ri - C * Br - V * Pr) * Ar, h[2] = (qe * Xr - Ke * tr + it * Dt) * Ar, h[3] = (ze * tr - ve * Xr - Be * Dt) * Ar, h[4] = (X * Zr - U * Br - ne * $r) * Ar, h[5] = (f * Br - L * Zr + V * $r) * Ar, h[6] = (Ke * kt - Ve * Xr - it * At) * Ar, h[7] = (me * Xr - ze * kt + Be * At) * Ar, h[8] = (U * ri - G * Zr + ne * ui) * Ar, h[9] = (C * Zr - f * ri - V * ui) * Ar, h[10] = (Ve * tr - qe * kt + it * Mt) * Ar, h[11] = (ve * kt - me * tr - Be * Mt) * Ar, h[12] = (G * $r - U * Pr - X * ui) * Ar, h[13] = (f * Pr - C * $r + L * ui) * Ar, h[14] = (qe * At - Ve * Dt - Ke * Mt) * Ar, h[15] = (me * Dt - ve * At + ze * Mt) * Ar, h) : null;
25538
25538
  }, v.at = uo, v.au = dp, v.av = go, v.aw = function() {
25539
25539
  const h = {}, n = nt.$version;
25540
25540
  for (const f in nt.$root) {
@@ -25553,8 +25553,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25553
25553
  n(new Error(`Could not load image because of ${C.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`));
25554
25554
  }));
25555
25555
  }, v.b0 = kr, v.b1 = function(h, n) {
25556
- var f = h[0], C = h[1], L = h[2], V = h[3], U = h[4], G = h[5], X = h[6], ne = h[7], me = h[8], ve = h[9], ze = h[10], Be = h[11], Ve = h[12], qe = h[13], Ke = h[14], it = h[15], Mt = n[0], At = n[1], kt = n[2], Dt = n[3], tr = n[4], Xr = n[5], ui = n[6], $r = n[7], Ur = n[8], Pr = n[9], ri = n[10], Br = n[11], Ar = n[12], fi = n[13], hi = n[14], Oi = n[15];
25557
- return Math.abs(f - Mt) <= Oa * Math.max(1, Math.abs(f), Math.abs(Mt)) && Math.abs(C - At) <= Oa * Math.max(1, Math.abs(C), Math.abs(At)) && Math.abs(L - kt) <= Oa * Math.max(1, Math.abs(L), Math.abs(kt)) && Math.abs(V - Dt) <= Oa * Math.max(1, Math.abs(V), Math.abs(Dt)) && Math.abs(U - tr) <= Oa * Math.max(1, Math.abs(U), Math.abs(tr)) && Math.abs(G - Xr) <= Oa * Math.max(1, Math.abs(G), Math.abs(Xr)) && Math.abs(X - ui) <= Oa * Math.max(1, Math.abs(X), Math.abs(ui)) && Math.abs(ne - $r) <= Oa * Math.max(1, Math.abs(ne), Math.abs($r)) && Math.abs(me - Ur) <= Oa * Math.max(1, Math.abs(me), Math.abs(Ur)) && Math.abs(ve - Pr) <= Oa * Math.max(1, Math.abs(ve), Math.abs(Pr)) && Math.abs(ze - ri) <= Oa * Math.max(1, Math.abs(ze), Math.abs(ri)) && Math.abs(Be - Br) <= Oa * Math.max(1, Math.abs(Be), Math.abs(Br)) && Math.abs(Ve - Ar) <= Oa * Math.max(1, Math.abs(Ve), Math.abs(Ar)) && Math.abs(qe - fi) <= Oa * Math.max(1, Math.abs(qe), Math.abs(fi)) && Math.abs(Ke - hi) <= Oa * Math.max(1, Math.abs(Ke), Math.abs(hi)) && Math.abs(it - Oi) <= Oa * Math.max(1, Math.abs(it), Math.abs(Oi));
25556
+ var f = h[0], C = h[1], L = h[2], V = h[3], U = h[4], G = h[5], X = h[6], ne = h[7], me = h[8], ve = h[9], ze = h[10], Be = h[11], Ve = h[12], qe = h[13], Ke = h[14], it = h[15], Mt = n[0], At = n[1], kt = n[2], Dt = n[3], tr = n[4], Xr = n[5], ui = n[6], $r = n[7], Zr = n[8], Pr = n[9], ri = n[10], Br = n[11], Ar = n[12], fi = n[13], hi = n[14], Oi = n[15];
25557
+ return Math.abs(f - Mt) <= Oa * Math.max(1, Math.abs(f), Math.abs(Mt)) && Math.abs(C - At) <= Oa * Math.max(1, Math.abs(C), Math.abs(At)) && Math.abs(L - kt) <= Oa * Math.max(1, Math.abs(L), Math.abs(kt)) && Math.abs(V - Dt) <= Oa * Math.max(1, Math.abs(V), Math.abs(Dt)) && Math.abs(U - tr) <= Oa * Math.max(1, Math.abs(U), Math.abs(tr)) && Math.abs(G - Xr) <= Oa * Math.max(1, Math.abs(G), Math.abs(Xr)) && Math.abs(X - ui) <= Oa * Math.max(1, Math.abs(X), Math.abs(ui)) && Math.abs(ne - $r) <= Oa * Math.max(1, Math.abs(ne), Math.abs($r)) && Math.abs(me - Zr) <= Oa * Math.max(1, Math.abs(me), Math.abs(Zr)) && Math.abs(ve - Pr) <= Oa * Math.max(1, Math.abs(ve), Math.abs(Pr)) && Math.abs(ze - ri) <= Oa * Math.max(1, Math.abs(ze), Math.abs(ri)) && Math.abs(Be - Br) <= Oa * Math.max(1, Math.abs(Be), Math.abs(Br)) && Math.abs(Ve - Ar) <= Oa * Math.max(1, Math.abs(Ve), Math.abs(Ar)) && Math.abs(qe - fi) <= Oa * Math.max(1, Math.abs(qe), Math.abs(fi)) && Math.abs(Ke - hi) <= Oa * Math.max(1, Math.abs(Ke), Math.abs(hi)) && Math.abs(it - Oi) <= Oa * Math.max(1, Math.abs(it), Math.abs(Oi));
25558
25558
  }, v.b2 = function(h, n) {
25559
25559
  return h[0] = n[0], h[1] = n[1], h[2] = n[2], h[3] = n[3], h[4] = n[4], h[5] = n[5], h[6] = n[6], h[7] = n[7], h[8] = n[8], h[9] = n[9], h[10] = n[10], h[11] = n[11], h[12] = n[12], h[13] = n[13], h[14] = n[14], h[15] = n[15], h;
25560
25560
  }, v.b3 = function(h, n, f) {
@@ -25606,8 +25606,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25606
25606
  it = Br ? co(Xr, [Br * Aa, lo]) : f.get("text-offset").evaluate(ne, {}, h.canonical).map(((Ar) => Ar * Aa));
25607
25607
  }
25608
25608
  let $r = U ? "center" : f.get("text-justify").evaluate(ne, {}, h.canonical);
25609
- const Ur = f.get("symbol-placement"), Pr = Ur === "point" ? f.get("text-max-width").evaluate(ne, {}, h.canonical) * Aa : 0, ri = () => {
25610
- h.bucket.allowVerticalPlacement && Ko(kt) && (Ve.vertical = yu(qe, h.glyphMap, h.glyphPositions, h.imagePositions, me, Pr, V, Xr, "left", tr, it, v.ai.vertical, !0, Ur, ze, ve));
25609
+ const Zr = f.get("symbol-placement"), Pr = Zr === "point" ? f.get("text-max-width").evaluate(ne, {}, h.canonical) * Aa : 0, ri = () => {
25610
+ h.bucket.allowVerticalPlacement && Ko(kt) && (Ve.vertical = yu(qe, h.glyphMap, h.glyphPositions, h.imagePositions, me, Pr, V, Xr, "left", tr, it, v.ai.vertical, !0, Zr, ze, ve));
25611
25611
  };
25612
25612
  if (!U && ui) {
25613
25613
  const Br = /* @__PURE__ */ new Set();
@@ -25616,14 +25616,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25616
25616
  let Ar = !1;
25617
25617
  for (const fi of Br) if (!Ve.horizontal[fi]) if (Ar) Ve.horizontal[fi] = Ve.horizontal[0];
25618
25618
  else {
25619
- const hi = yu(qe, h.glyphMap, h.glyphPositions, h.imagePositions, me, Pr, V, "center", fi, tr, it, v.ai.horizontal, !1, Ur, ze, ve);
25619
+ const hi = yu(qe, h.glyphMap, h.glyphPositions, h.imagePositions, me, Pr, V, "center", fi, tr, it, v.ai.horizontal, !1, Zr, ze, ve);
25620
25620
  hi && (Ve.horizontal[fi] = hi, Ar = hi.positionedLines.length === 1);
25621
25621
  }
25622
25622
  ri();
25623
25623
  } else {
25624
25624
  $r === "auto" && ($r = uo(Xr));
25625
- const Br = yu(qe, h.glyphMap, h.glyphPositions, h.imagePositions, me, Pr, V, Xr, $r, tr, it, v.ai.horizontal, !1, Ur, ze, ve);
25626
- Br && (Ve.horizontal[$r] = Br), ri(), Ko(kt) && U && G && (Ve.vertical = yu(qe, h.glyphMap, h.glyphPositions, h.imagePositions, me, Pr, V, Xr, $r, tr, it, v.ai.vertical, !1, Ur, ze, ve));
25625
+ const Br = yu(qe, h.glyphMap, h.glyphPositions, h.imagePositions, me, Pr, V, Xr, $r, tr, it, v.ai.horizontal, !1, Zr, ze, ve);
25626
+ Br && (Ve.horizontal[$r] = Br), ri(), Ko(kt) && U && G && (Ve.vertical = yu(qe, h.glyphMap, h.glyphPositions, h.imagePositions, me, Pr, V, Xr, $r, tr, it, v.ai.vertical, !1, Zr, ze, ve));
25627
25627
  }
25628
25628
  }
25629
25629
  let Mt = !1;
@@ -30470,7 +30470,7 @@ uniform ${e} ${t} u_${i};
30470
30470
  })(l, l, u);
30471
30471
  const d = I.properties.get("color");
30472
30472
  return { u_matrix: B, u_lightpos: l, u_lightintensity: I.properties.get("intensity"), u_lightcolor: [d.r, d.g, d.b], u_vertical_gradient: +_, u_opacity: S };
30473
- }, Qn = (B, a, _, S, I, F, l) => v.e(Xo(B, a, _, S), ji(F, a, l), { u_height_factor: -Math.pow(2, I.overscaledZ) / l.tileSize / 8 }), gt = (B) => ({ u_matrix: B }), Nt = (B, a, _, S) => v.e(gt(B), ji(_, a, S)), Zr = (B, a) => ({ u_matrix: B, u_world: a }), ai = (B, a, _, S, I) => v.e(Nt(B, a, _, S), { u_world: I }), Fr = (B, a, _, S) => {
30473
+ }, Qn = (B, a, _, S, I, F, l) => v.e(Xo(B, a, _, S), ji(F, a, l), { u_height_factor: -Math.pow(2, I.overscaledZ) / l.tileSize / 8 }), gt = (B) => ({ u_matrix: B }), Nt = (B, a, _, S) => v.e(gt(B), ji(_, a, S)), Nr = (B, a) => ({ u_matrix: B, u_world: a }), ai = (B, a, _, S, I) => v.e(Nt(B, a, _, S), { u_world: I }), Fr = (B, a, _, S) => {
30474
30474
  const I = B.transform;
30475
30475
  let F, l;
30476
30476
  if (S.paint.get("circle-pitch-alignment") === "map") {
@@ -31168,7 +31168,7 @@ uniform ${e} ${t} u_${i};
31168
31168
  if (l) {
31169
31169
  x = H.indexBuffer2, k = H.segments2;
31170
31170
  const se = [u.drawingBufferWidth, u.drawingBufferHeight];
31171
- m = s === "fillOutlinePattern" && e ? ai(fe, B, t, N, se) : Zr(fe, se);
31171
+ m = s === "fillOutlinePattern" && e ? ai(fe, B, t, N, se) : Nr(fe, se);
31172
31172
  } else x = H.indexBuffer, k = H.segments, m = e ? Nt(fe, B, t, N) : gt(fe);
31173
31173
  K.draw(B.context, i, I, B.stencilModeForClipping(O), F, bn.disabled, m, le, _.id, H.layoutVertexBuffer, x, k, _.paint, B.transform.zoom, Q);
31174
31174
  }
@@ -41240,34 +41240,34 @@ const um = $1(
41240
41240
  Rr(() => {
41241
41241
  if (!at) return;
41242
41242
  const gt = Sr.current, Nt = /* @__PURE__ */ new Set();
41243
- Er.forEach((Zr) => {
41244
- if (Zr.id === gt || !Zr.corners && Zr.phase === "idle") return;
41245
- Nt.add(Zr.id);
41246
- const ai = lr.current.get(Zr.id);
41243
+ Er.forEach((Nr) => {
41244
+ if (Nr.id === gt || !Nr.corners && Nr.phase === "idle" || !Nr.corners) return;
41245
+ Nt.add(Nr.id);
41246
+ const ai = lr.current.get(Nr.id);
41247
41247
  if (ai) {
41248
- ai.style({ opacity: Zr.opacity });
41248
+ ai.style({ opacity: Nr.opacity });
41249
41249
  return;
41250
41250
  }
41251
41251
  try {
41252
41252
  const Fr = [
41253
- Zr.corners[0],
41254
- Zr.corners[1],
41255
- Zr.corners[2],
41256
- Zr.corners[3]
41253
+ Nr.corners[0],
41254
+ Nr.corners[1],
41255
+ Nr.corners[2],
41256
+ Nr.corners[3]
41257
41257
  ], _i = new Wo.ImageLayer({
41258
41258
  zIndex: 9,
41259
- name: `__calibration_static_${Zr.id}__`
41259
+ name: `__calibration_static_${Nr.id}__`
41260
41260
  });
41261
- _i.source(Zr.thumbnailUrl, {
41261
+ _i.source(Nr.thumbnailUrl, {
41262
41262
  parser: { type: "image", coordinates: Fr }
41263
- }), _i.style({ opacity: Zr.opacity }), at.addLayer(_i), lr.current.set(Zr.id, _i);
41263
+ }), _i.style({ opacity: Nr.opacity }), at.addLayer(_i), lr.current.set(Nr.id, _i);
41264
41264
  } catch (Fr) {
41265
41265
  console.error("Failed to create static layer:", Fr);
41266
41266
  }
41267
- }), lr.current.forEach((Zr, ai) => {
41267
+ }), lr.current.forEach((Nr, ai) => {
41268
41268
  if (!Nt.has(ai)) {
41269
41269
  try {
41270
- at.removeLayer(Zr);
41270
+ at.removeLayer(Nr);
41271
41271
  } catch {
41272
41272
  }
41273
41273
  lr.current.delete(ai);
@@ -41306,7 +41306,7 @@ const um = $1(
41306
41306
  Co.current = pr;
41307
41307
  const vr = Gt(
41308
41308
  (gt, Nt) => {
41309
- qt((Zr) => Zr.map((ai) => ai.id === gt ? { ...ai, ...Nt } : ai));
41309
+ qt((Nr) => Nr.map((ai) => ai.id === gt ? { ...ai, ...Nt } : ai));
41310
41310
  },
41311
41311
  []
41312
41312
  );
@@ -41324,11 +41324,11 @@ const um = $1(
41324
41324
  const Ei = Gt(() => {
41325
41325
  const gt = Sr.current;
41326
41326
  gt && qt(
41327
- (Nt) => Nt.map((Zr) => {
41328
- if (Zr.id !== gt) return Zr;
41327
+ (Nt) => Nt.map((Nr) => {
41328
+ if (Nr.id !== gt) return Nr;
41329
41329
  const ai = fn.current, Fr = ai === "calibrating" ? Dn.current() ? "confirmed" : "idle" : ai;
41330
41330
  return {
41331
- ...Zr,
41331
+ ...Nr,
41332
41332
  corners: Dn.current(),
41333
41333
  phase: Fr,
41334
41334
  opacity: vo.current
@@ -41348,29 +41348,29 @@ const um = $1(
41348
41348
  (gt) => {
41349
41349
  const Nt = Number(gt.target.value);
41350
41350
  Tn(Nt);
41351
- const Zr = Sr.current;
41352
- Zr && vr(Zr, { opacity: Nt });
41351
+ const Nr = Sr.current;
41352
+ Nr && vr(Nr, { opacity: Nt });
41353
41353
  },
41354
41354
  [Tn, vr]
41355
41355
  ), vi = Gt(() => {
41356
41356
  if (!ht || Co.current.phase === "idle") return;
41357
41357
  const gt = ht.getBounds();
41358
41358
  if (!gt) return;
41359
- const [[Nt, Zr], [ai, Fr]] = gt, _i = (ai - Nt) * 0.1, Si = (Fr - Zr) * 0.1, an = [
41359
+ const [[Nt, Nr], [ai, Fr]] = gt, _i = (ai - Nt) * 0.1, Si = (Fr - Nr) * 0.1, an = [
41360
41360
  [Nt + _i, Fr - Si],
41361
41361
  [ai - _i, Fr - Si],
41362
- [ai - _i, Zr + Si],
41363
- [Nt + _i, Zr + Si]
41362
+ [ai - _i, Nr + Si],
41363
+ [Nt + _i, Nr + Si]
41364
41364
  ];
41365
41365
  Ln(an);
41366
41366
  }, [ht, Ln]), Ro = Gt(
41367
41367
  (gt) => {
41368
41368
  const Nt = yr.current.find((ai) => ai.id === gt);
41369
41369
  if (!(Nt != null && Nt.corners) || !ht) return;
41370
- const Zr = Gf(Nt.corners);
41370
+ const Nr = Gf(Nt.corners);
41371
41371
  ht.fitBounds([
41372
- [Zr[0], Zr[1]],
41373
- [Zr[2], Zr[3]]
41372
+ [Nr[0], Nr[1]],
41373
+ [Nr[2], Nr[3]]
41374
41374
  ]);
41375
41375
  },
41376
41376
  [ht]
@@ -41431,8 +41431,8 @@ const um = $1(
41431
41431
  corners: _i.corners
41432
41432
  }))
41433
41433
  }, null, 2));
41434
- const Nt = gt.generate(), Zr = URL.createObjectURL(Nt), ai = document.createElement("a");
41435
- ai.href = Zr, ai.download = "calibrated-tiles.zip", ai.click(), URL.revokeObjectURL(Zr);
41434
+ const Nt = gt.generate(), Nr = URL.createObjectURL(Nt), ai = document.createElement("a");
41435
+ ai.href = Nr, ai.download = "calibrated-tiles.zip", ai.click(), URL.revokeObjectURL(Nr);
41436
41436
  const Fr = Sr.current;
41437
41437
  Me == null || Me(Fr ?? "", te);
41438
41438
  }, [te, Me]), yt = Gt(() => {
@@ -41442,13 +41442,13 @@ const um = $1(
41442
41442
  qn(), gt && (vr(gt, { phase: "idle", corners: null }), Ne == null || Ne(gt));
41443
41443
  }, [qn, vr, Ne]), Ot = Gt(
41444
41444
  (gt, Nt = !1) => {
41445
- Ei(), qt((Zr) => Zr.find((Fr) => Fr.id === gt.id) ? Zr : (Nt && (lt == null || lt(gt)), [...Zr, gt])), gr(gt.id), Ue == null || Ue(gt.id), gt.corners ? Ai(gt.source, gt.corners) : Ai(gt.source);
41445
+ Ei(), qt((Nr) => Nr.find((Fr) => Fr.id === gt.id) ? Nr : (Nt && (lt == null || lt(gt)), [...Nr, gt])), gr(gt.id), Ue == null || Ue(gt.id), gt.corners ? Ai(gt.source, gt.corners) : Ai(gt.source);
41446
41446
  },
41447
41447
  [Ei, Ai, Ue, lt]
41448
41448
  ), Ht = Gt(
41449
41449
  (gt) => {
41450
41450
  if (gt === Sr.current) return;
41451
- const Nt = yr.current.find((Zr) => Zr.id === gt);
41451
+ const Nt = yr.current.find((Nr) => Nr.id === gt);
41452
41452
  Nt && Ot(Nt);
41453
41453
  },
41454
41454
  [Ot]
@@ -41457,10 +41457,10 @@ const um = $1(
41457
41457
  var Fr, _i;
41458
41458
  const Nt = yr.current.find((Si) => Si.id === gt);
41459
41459
  Nt && ((Fr = Nt.revokeUrl) == null || Fr.call(Nt), (_i = Nt.croppedRevokeUrl) == null || _i.call(Nt));
41460
- const Zr = lr.current.get(gt);
41461
- if (Zr && at) {
41460
+ const Nr = lr.current.get(gt);
41461
+ if (Nr && at) {
41462
41462
  try {
41463
- at.removeLayer(Zr);
41463
+ at.removeLayer(Nr);
41464
41464
  } catch {
41465
41465
  }
41466
41466
  lr.current.delete(gt);
@@ -41541,13 +41541,13 @@ const um = $1(
41541
41541
  ), xi = Gt((gt, Nt) => {
41542
41542
  Dr(gt), ft(Nt);
41543
41543
  }, []), ni = Gt((gt) => {
41544
- const Nt = yr.current.find((Fr) => Fr.id === gt), Zr = xt.trim();
41545
- if (!Zr || !Nt || Zr === Nt.name) {
41544
+ const Nt = yr.current.find((Fr) => Fr.id === gt), Nr = xt.trim();
41545
+ if (!Nr || !Nt || Nr === Nt.name) {
41546
41546
  Dr(null);
41547
41547
  return;
41548
41548
  }
41549
41549
  const ai = Nt.name;
41550
- qt((Fr) => Fr.map((_i) => _i.id === gt ? { ..._i, name: Zr } : _i)), Ye == null || Ye(gt, ai, Zr), Dr(null);
41550
+ qt((Fr) => Fr.map((_i) => _i.id === gt ? { ..._i, name: Nr } : _i)), Ye == null || Ye(gt, ai, Nr), Dr(null);
41551
41551
  }, [xt, Ye]), $i = Gt(() => {
41552
41552
  Dr(null);
41553
41553
  }, []), Ii = Gt((gt, Nt) => {
@@ -41558,13 +41558,13 @@ const um = $1(
41558
41558
  Qe(null);
41559
41559
  }, []), br = Gt((gt, Nt) => {
41560
41560
  gt.preventDefault();
41561
- const Zr = gt.dataTransfer.getData("text/plain");
41562
- if (!Zr || Zr === Nt) {
41561
+ const Nr = gt.dataTransfer.getData("text/plain");
41562
+ if (!Nr || Nr === Nt) {
41563
41563
  Qe(null);
41564
41564
  return;
41565
41565
  }
41566
41566
  qt((ai) => {
41567
- const Fr = ai.findIndex((Ga) => Ga.id === Zr), _i = ai.findIndex((Ga) => Ga.id === Nt);
41567
+ const Fr = ai.findIndex((Ga) => Ga.id === Nr), _i = ai.findIndex((Ga) => Ga.id === Nt);
41568
41568
  if (Fr === -1 || _i === -1) return ai;
41569
41569
  const Si = [...ai], [an] = Si.splice(Fr, 1);
41570
41570
  return Si.splice(_i, 0, an), Si;
@@ -41577,27 +41577,27 @@ const um = $1(
41577
41577
  const Nt = (ai = gt.target.files) == null ? void 0 : ai[0];
41578
41578
  if (!Nt) return;
41579
41579
  gt.target.value = "";
41580
- let Zr;
41580
+ let Nr;
41581
41581
  if (rt)
41582
41582
  try {
41583
41583
  const Fr = await rt(Nt);
41584
- Zr = Pd(Fr);
41584
+ Nr = Pd(Fr);
41585
41585
  } catch (Fr) {
41586
41586
  console.error("Image upload to CDN failed:", Fr);
41587
41587
  return;
41588
41588
  }
41589
41589
  if (q || Y)
41590
41590
  try {
41591
- const Fr = await Wd(Zr ?? Nt);
41592
- pn({ url: Fr.url, dimensions: { width: Fr.width, height: Fr.height }, revokeUrl: Fr.revokeUrl ?? null, file: Nt, cdnUrl: Zr ?? null });
41591
+ const Fr = await Wd(Nr ?? Nt);
41592
+ pn({ url: Fr.url, dimensions: { width: Fr.width, height: Fr.height }, revokeUrl: Fr.revokeUrl ?? null, file: Nt, cdnUrl: Nr ?? null });
41593
41593
  } catch (Fr) {
41594
41594
  console.error("Failed to load image for crop:", Fr);
41595
41595
  }
41596
41596
  else {
41597
- const Fr = Zr ?? URL.createObjectURL(Nt), _i = Zr ? null : () => URL.revokeObjectURL(Fr), Si = {
41597
+ const Fr = Nr ?? URL.createObjectURL(Nt), _i = Nr ? null : () => URL.revokeObjectURL(Fr), Si = {
41598
41598
  id: `calib-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`,
41599
41599
  name: Nt.name,
41600
- source: Zr ?? Nt,
41600
+ source: Nr ?? Nt,
41601
41601
  thumbnailUrl: Fr,
41602
41602
  dimensions: null,
41603
41603
  phase: "idle",
@@ -41616,8 +41616,8 @@ const um = $1(
41616
41616
  const Nt = (Fr = gt.target.files) == null ? void 0 : Fr[0];
41617
41617
  if (!Nt || !Wt) return;
41618
41618
  gt.target.value = "";
41619
- const Zr = yr.current.find((an) => an.id === Wt);
41620
- Zr && ((_i = Zr.revokeUrl) == null || _i.call(Zr), (Si = Zr.croppedRevokeUrl) == null || Si.call(Zr));
41619
+ const Nr = yr.current.find((an) => an.id === Wt);
41620
+ Nr && ((_i = Nr.revokeUrl) == null || _i.call(Nr), (Si = Nr.croppedRevokeUrl) == null || Si.call(Nr));
41621
41621
  let ai;
41622
41622
  if (rt)
41623
41623
  try {
@@ -41658,10 +41658,10 @@ const um = $1(
41658
41658
  async (gt, Nt) => {
41659
41659
  var _i, Si;
41660
41660
  if (!Un) return;
41661
- const Zr = Un.file, ai = Un.cdnUrl, Fr = ai ?? URL.createObjectURL(Zr);
41661
+ const Nr = Un.file, ai = Un.cdnUrl, Fr = ai ?? URL.createObjectURL(Nr);
41662
41662
  try {
41663
41663
  const an = gt.x !== 0 || gt.y !== 0 || gt.width !== Un.dimensions.width || gt.height !== Un.dimensions.height;
41664
- let Ga = null, bs = ai ?? Zr, eo = Un.dimensions;
41664
+ let Ga = null, bs = ai ?? Nr, eo = Un.dimensions;
41665
41665
  if (an) {
41666
41666
  const xa = await X5(Un.url, gt);
41667
41667
  if ((_i = Un.revokeUrl) == null || _i.call(Un), bs = xa.url, eo = { width: xa.width, height: xa.height }, wt)
@@ -41677,7 +41677,7 @@ const um = $1(
41677
41677
  }
41678
41678
  const _l = an || ai ? null : (() => URL.revokeObjectURL(Fr)), tc = {
41679
41679
  id: cn && Wt ? Wt : `calib-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`,
41680
- name: Zr.name,
41680
+ name: Nr.name,
41681
41681
  source: bs,
41682
41682
  thumbnailUrl: Fr,
41683
41683
  dimensions: eo,
@@ -41784,7 +41784,7 @@ const um = $1(
41784
41784
  /* @__PURE__ */ Vt("div", { style: { padding: "12px", overflowY: "auto", flex: 1, display: "flex", flexDirection: "column", gap: 8 }, children: [
41785
41785
  Er.length === 0 && /* @__PURE__ */ xe("div", { style: { fontSize: 12, color: "#999", textAlign: "center", padding: "20px 0" }, children: "暂无校准图片,请先上传" }),
41786
41786
  Er.map((gt) => {
41787
- const Nt = gt.id === Bt, Zr = gt.phase === "idle", ai = gt.phase === "confirmed";
41787
+ const Nt = gt.id === Bt, Nr = gt.phase === "idle", ai = gt.phase === "confirmed";
41788
41788
  return /* @__PURE__ */ Vt(
41789
41789
  "div",
41790
41790
  {
@@ -41840,7 +41840,7 @@ const um = $1(
41840
41840
  )
41841
41841
  ] }),
41842
41842
  /* @__PURE__ */ xe("div", { className: "l7-calibration-list-item__phase", children: Zi(gt.phase) }),
41843
- gi === gt.id && Nt && !Zr && /* @__PURE__ */ Vt(
41843
+ gi === gt.id && Nt && !Nr && /* @__PURE__ */ Vt(
41844
41844
  "div",
41845
41845
  {
41846
41846
  style: { display: "flex", alignItems: "center", gap: 4, marginTop: 4, fontSize: 10 },
@@ -41872,7 +41872,7 @@ const um = $1(
41872
41872
  {
41873
41873
  className: "l7-calibration-list-item__action-btn",
41874
41874
  title: "透明度",
41875
- disabled: Zr,
41875
+ disabled: Nr,
41876
41876
  onClick: () => Yr(gt.id, "opacity"),
41877
41877
  children: /* @__PURE__ */ xe("span", { className: "material-symbols-outlined", children: "opacity" })
41878
41878
  }
@@ -41882,7 +41882,7 @@ const um = $1(
41882
41882
  {
41883
41883
  className: "l7-calibration-list-item__action-btn",
41884
41884
  title: "放置到当前位置",
41885
- disabled: Zr,
41885
+ disabled: Nr,
41886
41886
  onClick: () => Yr(gt.id, "place-to-view"),
41887
41887
  children: /* @__PURE__ */ xe("span", { className: "material-symbols-outlined", children: "filter_center_focus" })
41888
41888
  }
@@ -41892,7 +41892,7 @@ const um = $1(
41892
41892
  {
41893
41893
  className: "l7-calibration-list-item__action-btn",
41894
41894
  title: "缩放到图片范围",
41895
- disabled: Zr || !gt.corners,
41895
+ disabled: Nr || !gt.corners,
41896
41896
  onClick: () => Yr(gt.id, "scale-to"),
41897
41897
  children: /* @__PURE__ */ xe("span", { className: "material-symbols-outlined", children: "zoom_in" })
41898
41898
  }
@@ -41902,7 +41902,7 @@ const um = $1(
41902
41902
  {
41903
41903
  className: "l7-calibration-list-item__action-btn",
41904
41904
  title: ai ? "重新校准" : "确认配准",
41905
- disabled: Zr,
41905
+ disabled: Nr,
41906
41906
  onClick: () => Yr(gt.id, ai ? "re-edit" : "calibrate"),
41907
41907
  children: /* @__PURE__ */ xe("span", { className: "material-symbols-outlined", children: ai ? "edit" : "my_location" })
41908
41908
  }
@@ -41912,7 +41912,7 @@ const um = $1(
41912
41912
  {
41913
41913
  className: "l7-calibration-list-item__action-btn",
41914
41914
  title: "导出",
41915
- disabled: Zr,
41915
+ disabled: Nr,
41916
41916
  onClick: () => Yr(gt.id, "export"),
41917
41917
  children: /* @__PURE__ */ xe("span", { className: "material-symbols-outlined", children: "download" })
41918
41918
  }
@@ -47200,7 +47200,7 @@ var Lu = (function(b) {
47200
47200
  while (!1);
47201
47201
  return o[A >> 2] = ((o[A >> 2] | 0) + d | 0) % 6 | 0, H = e, o[H >> 2] = l, o[H + 4 >> 2] = u, H = 0, H | 0;
47202
47202
  }
47203
- function Zr(l, u, d, A) {
47203
+ function Nr(l, u, d, A) {
47204
47204
  return l = l | 0, u = u | 0, d = d | 0, A = A | 0, ai(l, u, d, A) | 0 ? (B(A | 0, 0, d * 48 | 0) | 0, A = Fr(l, u, d, A) | 0, A | 0) : (A = 0, A | 0);
47205
47205
  }
47206
47206
  function ai(l, u, d, A) {
@@ -52438,7 +52438,7 @@ var Lu = (function(b) {
52438
52438
  _gridDistance: on,
52439
52439
  _gridPathCells: Yo,
52440
52440
  _gridPathCellsSize: Ca,
52441
- _gridRing: Zr,
52441
+ _gridRing: Nr,
52442
52442
  _gridRingUnsafe: ai,
52443
52443
  _i64Add: fr,
52444
52444
  _i64Subtract: Qi,