@opengis/admin 0.4.19 → 0.4.20

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.
@@ -3598,7 +3598,7 @@ ${JSON.stringify(Tt, null, 2)}
3598
3598
  }, ai)) : o.push(De.fullPath, ai)), x.value = De, Ai(De, it, rt, qt), zi();
3599
3599
  }
3600
3600
  let ft;
3601
- function pe() {
3601
+ function fe() {
3602
3602
  ft || (ft = o.listen((De, it, rt) => {
3603
3603
  if (!an.listening)
3604
3604
  return;
@@ -3661,7 +3661,7 @@ ${JSON.stringify(Tt, null, 2)}
3661
3661
  });
3662
3662
  }
3663
3663
  function zi(De) {
3664
- return ei || (ei = !De, pe(), ri.list().forEach(([it, rt]) => De ? rt(De) : it()), ri.reset()), De;
3664
+ return ei || (ei = !De, fe(), ri.list().forEach(([it, rt]) => De ? rt(De) : it()), ri.reset()), De;
3665
3665
  }
3666
3666
  function Ai(De, it, rt, Tt) {
3667
3667
  const { scrollBehavior: ai } = t;
@@ -3741,27 +3741,27 @@ const sM = [
3741
3741
  {
3742
3742
  name: "edit",
3743
3743
  path: "/edit",
3744
- component: () => import("./edit-page-B9VzTSad.js")
3744
+ component: () => import("./edit-page-Bl2hVM7c.js")
3745
3745
  },
3746
3746
  {
3747
3747
  name: "add",
3748
3748
  path: "/add",
3749
- component: () => import("./add-page-Bj0sCUCJ.js")
3749
+ component: () => import("./add-page-CZ8yTZl0.js")
3750
3750
  },
3751
3751
  {
3752
3752
  path: "/profile",
3753
3753
  name: "profile",
3754
- component: () => import("./profile-page-Dho5yi_d.js")
3754
+ component: () => import("./profile-page-BbDjmQ2x.js")
3755
3755
  },
3756
3756
  {
3757
3757
  name: "card-view",
3758
3758
  path: "/card",
3759
- component: () => import("./card-view-DNPH8MRs.js"),
3759
+ component: () => import("./card-view-B-YTREQO.js"),
3760
3760
  children: [
3761
3761
  {
3762
3762
  name: "table",
3763
3763
  path: ":table",
3764
- component: () => import("./card-view-DNPH8MRs.js"),
3764
+ component: () => import("./card-view-B-YTREQO.js"),
3765
3765
  children: [
3766
3766
  {
3767
3767
  name: "card",
@@ -3822,14 +3822,14 @@ const uM = /* @__PURE__ */ gt(oM, [["render", cM]]), dM = (t) => {
3822
3822
  {
3823
3823
  path: "/",
3824
3824
  name: "home",
3825
- component: () => import("./admin-view-CAnyWsJL.js"),
3825
+ component: () => import("./admin-view-B7bQjLDg.js"),
3826
3826
  children: [
3827
3827
  ...t,
3828
3828
  ...e,
3829
3829
  // { path: '/', redirect: '/home' },
3830
3830
  {
3831
3831
  path: "/:catchAll(.*)",
3832
- component: () => import("./admin-interface-DHnkWema.js")
3832
+ component: () => import("./admin-interface-BFCrcs5B.js")
3833
3833
  }
3834
3834
  ]
3835
3835
  }
@@ -7266,7 +7266,7 @@ var f2 = { exports: {} };
7266
7266
  function ft(a) {
7267
7267
  tt[a] || (typeof console < "u" && console.warn(a), tt[a] = !0);
7268
7268
  }
7269
- function pe(a, s, l) {
7269
+ function fe(a, s, l) {
7270
7270
  return (l.y - a.y) * (s.x - a.x) > (s.y - a.y) * (l.x - a.x);
7271
7271
  }
7272
7272
  function ri(a) {
@@ -10800,7 +10800,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10800
10800
  }
10801
10801
  }
10802
10802
  de.prototype.bytesPerElement = 4, pt("StructArrayLayout1ul4", de);
10803
- class fe extends y {
10803
+ class pe extends y {
10804
10804
  _refreshViews() {
10805
10805
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
10806
10806
  }
@@ -10813,7 +10813,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10813
10813
  return this.int16[F + 0] = l, this.int16[F + 1] = f, this.int16[F + 2] = g, this.int16[F + 3] = v, this.int16[F + 4] = b, this.int16[F + 5] = k, this.uint32[$ + 3] = A, this.uint16[F + 8] = P, this.uint16[F + 9] = z, s;
10814
10814
  }
10815
10815
  }
10816
- fe.prototype.bytesPerElement = 20, pt("StructArrayLayout6i1ul2ui20", fe);
10816
+ pe.prototype.bytesPerElement = 20, pt("StructArrayLayout6i1ul2ui20", pe);
10817
10817
  class ne extends y {
10818
10818
  _refreshViews() {
10819
10819
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
@@ -11013,7 +11013,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11013
11013
  }
11014
11014
  }
11015
11015
  Ke.prototype.size = 20;
11016
- class st extends fe {
11016
+ class st extends pe {
11017
11017
  get(s) {
11018
11018
  return new Ke(this, s);
11019
11019
  }
@@ -11774,7 +11774,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11774
11774
  return !1;
11775
11775
  }
11776
11776
  function Gk(a, s, l, f) {
11777
- return pe(a, l, f) !== pe(s, l, f) && pe(a, s, l) !== pe(a, s, f);
11777
+ return fe(a, l, f) !== fe(s, l, f) && fe(a, s, l) !== fe(a, s, f);
11778
11778
  }
11779
11779
  function Fm(a, s, l) {
11780
11780
  const f = l * l;
@@ -11807,8 +11807,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11807
11807
  function Zk(a, s, l) {
11808
11808
  const f = l[0], g = l[2];
11809
11809
  if (a.x < f.x && s.x < f.x || a.x > g.x && s.x > g.x || a.y < f.y && s.y < f.y || a.y > g.y && s.y > g.y) return !1;
11810
- const v = pe(a, s, l[0]);
11811
- return v !== pe(a, s, l[1]) || v !== pe(a, s, l[2]) || v !== pe(a, s, l[3]);
11810
+ const v = fe(a, s, l[0]);
11811
+ return v !== fe(a, s, l[1]) || v !== fe(a, s, l[2]) || v !== fe(a, s, l[3]);
11812
11812
  }
11813
11813
  function ad(a, s, l) {
11814
11814
  const f = s.paint.get(a).value;
@@ -15520,7 +15520,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15520
15520
  function ft(ae, H) {
15521
15521
  return (H << 3) + (7 & ae);
15522
15522
  }
15523
- function pe(ae) {
15523
+ function fe(ae) {
15524
15524
  return ae << 1 ^ ae >> 31;
15525
15525
  }
15526
15526
  function ri(ae, H) {
@@ -15530,7 +15530,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15530
15530
  for (var Be = K === 3 ? he.length - 1 : he.length, Te = 0; Te < Be; Te++) {
15531
15531
  Te === 1 && K !== 1 && H.writeVarint(ft(2, Be - 1));
15532
15532
  var We = he[Te].x - se, At = he[Te].y - ge;
15533
- H.writeVarint(pe(We)), H.writeVarint(pe(At)), se += We, ge += At;
15533
+ H.writeVarint(fe(We)), H.writeVarint(fe(At)), se += We, ge += At;
15534
15534
  }
15535
15535
  K === 3 && H.writeVarint(ft(7, 1));
15536
15536
  }
@@ -16398,7 +16398,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16398
16398
  });
16399
16399
  const y = (I) => c._(this, void 0, void 0, function* () {
16400
16400
  I.state = "running";
16401
- const { requestParameters: O, supportImageRefresh: B, onError: N, onSuccess: q, abortController: J } = I, Q = B === !1 && !c.i(self) && !c.g(O.url) && (!O.headers || Object.keys(O.headers).reduce((de, fe) => de && fe === "accept", !0));
16401
+ const { requestParameters: O, supportImageRefresh: B, onError: N, onSuccess: q, abortController: J } = I, Q = B === !1 && !c.i(self) && !c.g(O.url) && (!O.headers || Object.keys(O.headers).reduce((de, pe) => de && pe === "accept", !0));
16402
16402
  d++;
16403
16403
  const oe = Q ? D(O, J) : c.m(O, J);
16404
16404
  try {
@@ -16616,13 +16616,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16616
16616
  }
16617
16617
  }
16618
16618
  }
16619
- const pe = 1e20;
16619
+ const fe = 1e20;
16620
16620
  function ri(_, r, d, p, m, y, C, D, I) {
16621
16621
  for (let O = r; O < r + p; O++) Mt(_, d * y + O, y, m, C, D, I);
16622
16622
  for (let O = d; O < d + m; O++) Mt(_, O * y + r, 1, p, C, D, I);
16623
16623
  }
16624
16624
  function Mt(_, r, d, p, m, y, C) {
16625
- y[0] = 0, C[0] = -pe, C[1] = pe, m[0] = _[r];
16625
+ y[0] = 0, C[0] = -fe, C[1] = fe, m[0] = _[r];
16626
16626
  for (let D = 1, I = 0, O = 0; D < p; D++) {
16627
16627
  m[D] = _[r + D * d];
16628
16628
  const B = D * D;
@@ -16630,7 +16630,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16630
16630
  const N = y[I];
16631
16631
  O = (m[D] - m[N] + B - N * N) / (D - N) / 2;
16632
16632
  } while (O <= C[I] && --I > -1);
16633
- I++, y[I] = D, C[I] = O, C[I + 1] = pe;
16633
+ I++, y[I] = D, C[I] = O, C[I + 1] = fe;
16634
16634
  }
16635
16635
  for (let D = 0, I = 0; D < p; D++) {
16636
16636
  for (; C[I + 1] < D; ) I++;
@@ -16712,13 +16712,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16712
16712
  if (D === 0 || I === 0) return J;
16713
16713
  const { ctx: Q, buffer: oe, gridInner: ce, gridOuter: de } = this;
16714
16714
  Q.clearRect(oe, oe, D, I), Q.fillText(_, oe, oe + C);
16715
- const fe = Q.getImageData(oe, oe, D, I);
16716
- de.fill(pe, 0, N), ce.fill(0, 0, N);
16715
+ const pe = Q.getImageData(oe, oe, D, I);
16716
+ de.fill(fe, 0, N), ce.fill(0, 0, N);
16717
16717
  for (let ne = 0; ne < I; ne++) for (let ye = 0; ye < D; ye++) {
16718
- const ve = fe.data[4 * (ne * D + ye) + 3] / 255;
16718
+ const ve = pe.data[4 * (ne * D + ye) + 3] / 255;
16719
16719
  if (ve === 0) continue;
16720
16720
  const ke = (ne + oe) * O + ye + oe;
16721
- if (ve === 1) de[ke] = 0, ce[ke] = pe;
16721
+ if (ve === 1) de[ke] = 0, ce[ke] = fe;
16722
16722
  else {
16723
16723
  const Le = 0.5 - ve;
16724
16724
  de[ke] = Le > 0 ? Le * Le : 0, ce[ke] = Le < 0 ? Le * Le : 0;
@@ -16953,8 +16953,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16953
16953
  const q = {}, J = {};
16954
16954
  for (const Q of N) {
16955
16955
  const oe = Q.queryResults, ce = Q.wrappedTileID, de = J[ce] = J[ce] || {};
16956
- for (const fe in oe) {
16957
- const ne = oe[fe], ye = de[fe] = de[fe] || {}, ve = q[fe] = q[fe] || [];
16956
+ for (const pe in oe) {
16957
+ const ne = oe[pe], ye = de[pe] = de[pe] || {}, ve = q[pe] = q[pe] || [];
16958
16958
  for (const ke of ne) ye[ke.featureIndex] || (ye[ke.featureIndex] = !0, ve.push(ke));
16959
16959
  }
16960
16960
  }
@@ -18046,7 +18046,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18046
18046
  const Q = q[J], oe = this.findLoadedParent(Q, this._source.minzoom), ce = this.findLoadedSibling(Q), de = oe || ce || null;
18047
18047
  if (de) {
18048
18048
  N[de.tileID.key] = r[de.tileID.key] = de.tileID;
18049
- for (const fe in N) N[fe].isChildOf(de.tileID) && delete N[fe];
18049
+ for (const pe in N) N[pe].isChildOf(de.tileID) && delete N[pe];
18050
18050
  }
18051
18051
  }
18052
18052
  for (const J in this._tiles) N[J] || (this._coveredTiles[J] = !0);
@@ -18176,8 +18176,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18176
18176
  for (let Q = 0; Q < O.length; Q++) {
18177
18177
  const oe = this._tiles[O[Q]];
18178
18178
  if (oe.holdingForFade()) continue;
18179
- const ce = oe.tileID, de = Math.pow(2, y.zoom - oe.tileID.overscaledZ), fe = d * oe.queryPadding * c.X / oe.tileSize / de, ne = [ce.getTilePoint(new c.Z(B, N)), ce.getTilePoint(new c.Z(q, J))];
18180
- if (ne[0].x - fe < c.X && ne[0].y - fe < c.X && ne[1].x + fe >= 0 && ne[1].y + fe >= 0) {
18179
+ const ce = oe.tileID, de = Math.pow(2, y.zoom - oe.tileID.overscaledZ), pe = d * oe.queryPadding * c.X / oe.tileSize / de, ne = [ce.getTilePoint(new c.Z(B, N)), ce.getTilePoint(new c.Z(q, J))];
18180
+ if (ne[0].x - pe < c.X && ne[0].y - pe < c.X && ne[1].x + pe >= 0 && ne[1].y + pe >= 0) {
18181
18181
  const ye = D.map((ke) => ce.getTilePoint(ke)), ve = I.map((ke) => ce.getTilePoint(ke));
18182
18182
  m.push({ tile: oe, tileID: ce, queryGeometry: ye, cameraQueryGeometry: ve, scale: de });
18183
18183
  }
@@ -18310,8 +18310,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18310
18310
  O.circle[oe] = !0;
18311
18311
  const ce = 3 * oe, de = this.circleKeys[oe];
18312
18312
  if (this._circleAndRectCollide(Q[ce], Q[ce + 1], Q[ce + 2], r, d, p, m) && (!I || I(de)) && (!B || !is(N, de.overlapMode))) {
18313
- const fe = Q[ce], ne = Q[ce + 1], ye = Q[ce + 2];
18314
- if (C.push({ key: de, x1: fe - ye, y1: ne - ye, x2: fe + ye, y2: ne + ye }), B) return !0;
18313
+ const pe = Q[ce], ne = Q[ce + 1], ye = Q[ce + 2];
18314
+ if (C.push({ key: de, x1: pe - ye, y1: ne - ye, x2: pe + ye, y2: ne + ye }), B) return !0;
18315
18315
  }
18316
18316
  }
18317
18317
  }
@@ -18385,26 +18385,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18385
18385
  return _.x >= -r[0] && _.x <= r[0] && _.y >= -r[1] && _.y <= r[1];
18386
18386
  }
18387
18387
  function K(_, r, d, p, m, y, C, D, I, O, B, N, q, J, Q) {
18388
- const oe = p ? _.textSizeData : _.iconSizeData, ce = c.ag(oe, d.transform.zoom), de = [256 / d.width * 2 + 1, 256 / d.height * 2 + 1], fe = p ? _.text.dynamicLayoutVertexArray : _.icon.dynamicLayoutVertexArray;
18389
- fe.clear();
18388
+ const oe = p ? _.textSizeData : _.iconSizeData, ce = c.ag(oe, d.transform.zoom), de = [256 / d.width * 2 + 1, 256 / d.height * 2 + 1], pe = p ? _.text.dynamicLayoutVertexArray : _.icon.dynamicLayoutVertexArray;
18389
+ pe.clear();
18390
18390
  const ne = _.lineVertexArray, ye = p ? _.text.placedSymbolArray : _.icon.placedSymbolArray, ve = d.transform.width / d.transform.height;
18391
18391
  let ke = !1;
18392
18392
  for (let Le = 0; Le < ye.length; Le++) {
18393
18393
  const Ue = ye.get(Le);
18394
18394
  if (Ue.hidden || Ue.writingMode === c.ah.vertical && !ke) {
18395
- It(Ue.numGlyphs, fe);
18395
+ It(Ue.numGlyphs, pe);
18396
18396
  continue;
18397
18397
  }
18398
18398
  ke = !1;
18399
18399
  const Qe = ae(Ue.anchorX, Ue.anchorY, r, Q);
18400
18400
  if (!U(Qe.point, de)) {
18401
- It(Ue.numGlyphs, fe);
18401
+ It(Ue.numGlyphs, pe);
18402
18402
  continue;
18403
18403
  }
18404
- const ct = H(d.transform.cameraToCenterDistance, Qe.signedDistanceFromCamera), Ze = c.ai(oe, ce, Ue), qe = C ? Ze / ct : Ze * ct, xt = { getElevation: Q, labelPlaneMatrix: m, lineVertexArray: ne, pitchWithMap: C, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: O, tileAnchorPoint: new c.P(Ue.anchorX, Ue.anchorY), unwrappedTileID: B, width: N, height: q, translation: J }, Nt = _e(xt, Ue, qe, !1, D, r, y, _.glyphOffsetArray, fe, ve, I);
18405
- ke = Nt.useVertical, (Nt.notEnoughRoom || ke || Nt.needsFlipping && _e(xt, Ue, qe, !0, D, r, y, _.glyphOffsetArray, fe, ve, I).notEnoughRoom) && It(Ue.numGlyphs, fe);
18404
+ const ct = H(d.transform.cameraToCenterDistance, Qe.signedDistanceFromCamera), Ze = c.ai(oe, ce, Ue), qe = C ? Ze / ct : Ze * ct, xt = { getElevation: Q, labelPlaneMatrix: m, lineVertexArray: ne, pitchWithMap: C, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: O, tileAnchorPoint: new c.P(Ue.anchorX, Ue.anchorY), unwrappedTileID: B, width: N, height: q, translation: J }, Nt = _e(xt, Ue, qe, !1, D, r, y, _.glyphOffsetArray, pe, ve, I);
18405
+ ke = Nt.useVertical, (Nt.notEnoughRoom || ke || Nt.needsFlipping && _e(xt, Ue, qe, !0, D, r, y, _.glyphOffsetArray, pe, ve, I).notEnoughRoom) && It(Ue.numGlyphs, pe);
18406
18406
  }
18407
- p ? _.text.dynamicLayoutVertexBuffer.updateData(fe) : _.icon.dynamicLayoutVertexBuffer.updateData(fe);
18407
+ p ? _.text.dynamicLayoutVertexBuffer.updateData(pe) : _.icon.dynamicLayoutVertexBuffer.updateData(pe);
18408
18408
  }
18409
18409
  function se(_, r, d, p, m, y, C, D) {
18410
18410
  const I = y.glyphStartIndex + y.numGlyphs, O = y.lineStartIndex, B = y.lineStartIndex + y.lineLength, N = r.getoffsetX(y.glyphStartIndex), q = r.getoffsetX(I - 1), J = We(_ * N, d, p, m, y.segment, O, B, D, C);
@@ -18419,21 +18419,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18419
18419
  const N = d / 24, q = r.lineOffsetX * N, J = r.lineOffsetY * N;
18420
18420
  let Q;
18421
18421
  if (r.numGlyphs > 1) {
18422
- const oe = r.glyphStartIndex + r.numGlyphs, ce = r.lineStartIndex, de = r.lineStartIndex + r.lineLength, fe = se(N, D, q, J, p, r, B, _);
18423
- if (!fe) return { notEnoughRoom: !0 };
18424
- const ne = ae(fe.first.point.x, fe.first.point.y, C, _.getElevation).point, ye = ae(fe.last.point.x, fe.last.point.y, C, _.getElevation).point;
18422
+ const oe = r.glyphStartIndex + r.numGlyphs, ce = r.lineStartIndex, de = r.lineStartIndex + r.lineLength, pe = se(N, D, q, J, p, r, B, _);
18423
+ if (!pe) return { notEnoughRoom: !0 };
18424
+ const ne = ae(pe.first.point.x, pe.first.point.y, C, _.getElevation).point, ye = ae(pe.last.point.x, pe.last.point.y, C, _.getElevation).point;
18425
18425
  if (m && !p) {
18426
18426
  const ve = ge(r.writingMode, ne, ye, O);
18427
18427
  if (ve) return ve;
18428
18428
  }
18429
- Q = [fe.first];
18429
+ Q = [pe.first];
18430
18430
  for (let ve = r.glyphStartIndex + 1; ve < oe - 1; ve++) Q.push(We(N * D.getoffsetX(ve), q, J, p, r.segment, ce, de, _, B));
18431
- Q.push(fe.last);
18431
+ Q.push(pe.last);
18432
18432
  } else {
18433
18433
  if (m && !p) {
18434
- const ce = ae(_.tileAnchorPoint.x, _.tileAnchorPoint.y, y, _.getElevation).point, de = r.lineStartIndex + r.segment + 1, fe = new c.P(_.lineVertexArray.getx(de), _.lineVertexArray.gety(de)), ne = ae(fe.x, fe.y, y, _.getElevation), ye = ne.signedDistanceFromCamera > 0 ? ne.point : function(ke, Le, Ue, Qe, ct, Ze) {
18434
+ const ce = ae(_.tileAnchorPoint.x, _.tileAnchorPoint.y, y, _.getElevation).point, de = r.lineStartIndex + r.segment + 1, pe = new c.P(_.lineVertexArray.getx(de), _.lineVertexArray.gety(de)), ne = ae(pe.x, pe.y, y, _.getElevation), ye = ne.signedDistanceFromCamera > 0 ? ne.point : function(ke, Le, Ue, Qe, ct, Ze) {
18435
18435
  return we(ke, Le, Ue, 1, ct, Ze);
18436
- }(_.tileAnchorPoint, fe, ce, 0, y, _), ve = ge(r.writingMode, ce, ye, O);
18436
+ }(_.tileAnchorPoint, pe, ce, 0, y, _), ve = ge(r.writingMode, ce, ye, O);
18437
18437
  if (ve) return ve;
18438
18438
  }
18439
18439
  const oe = We(N * D.getoffsetX(r.glyphStartIndex), q, J, p, r.segment, r.lineStartIndex, r.lineStartIndex + r.lineLength, _, B);
@@ -18478,13 +18478,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18478
18478
  p && (B *= -1, N = Math.PI), B < 0 && (N += Math.PI);
18479
18479
  let q, J = B > 0 ? y + m : y + m + 1;
18480
18480
  D.projectionCache.cachedAnchorPoint ? q = D.projectionCache.cachedAnchorPoint : (q = Ie(D.tileAnchorPoint.x, D.tileAnchorPoint.y, D).point, D.projectionCache.cachedAnchorPoint = q);
18481
- let Q, oe, ce = q, de = q, fe = 0, ne = 0;
18481
+ let Q, oe, ce = q, de = q, pe = 0, ne = 0;
18482
18482
  const ye = Math.abs(O), ve = [];
18483
18483
  let ke;
18484
- for (; fe + ne <= ye; ) {
18484
+ for (; pe + ne <= ye; ) {
18485
18485
  if (J += B, J < y || J >= C) return null;
18486
- fe += ne, de = ce, oe = Q;
18487
- const Qe = { absOffsetX: ye, direction: B, distanceFromAnchor: fe, previousVertex: de };
18486
+ pe += ne, de = ce, oe = Q;
18487
+ const Qe = { absOffsetX: ye, direction: B, distanceFromAnchor: pe, previousVertex: de };
18488
18488
  if (ce = he(J, D, Qe), d === 0) ve.push(de), ke = ce.sub(de);
18489
18489
  else {
18490
18490
  let ct;
@@ -18493,7 +18493,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18493
18493
  }
18494
18494
  ne = ke.mag();
18495
18495
  }
18496
- const Le = ke._mult((ye - fe) / ne)._add(oe || de), Ue = N + Math.atan2(ce.y - de.y, ce.x - de.x);
18496
+ const Le = ke._mult((ye - pe) / ne)._add(oe || de), Ue = N + Math.atan2(ce.y - de.y, ce.x - de.x);
18497
18497
  return ve.push(Le), { point: Le, angle: I ? Ue : 0, path: ve };
18498
18498
  }
18499
18499
  const At = new Float32Array([-1 / 0, -1 / 0, 0, -1 / 0, -1 / 0, 0, -1 / 0, -1 / 0, 0, -1 / 0, -1 / 0, 0]);
@@ -18520,11 +18520,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18520
18520
  const ve = Q.point.x + (N ? N.x * oe : 0), ke = Q.point.y + (N ? N.y * oe : 0);
18521
18521
  ce = { allPointsOccluded: !1, box: [ve + r.x1 * oe, ke + r.y1 * oe, ve + r.x2 * oe, ke + r.y2 * oe] };
18522
18522
  }
18523
- const [de, fe, ne, ye] = ce.box;
18524
- return this.mapProjection.useSpecialProjectionForSymbols && (C ? ce.allPointsOccluded : this.mapProjection.isOccluded(q, J, y)) || Q.perspectiveRatio < this.perspectiveRatioCutoff || !this.isInsideGrid(de, fe, ne, ye) || d !== "always" && this.grid.hitTest(de, fe, ne, ye, d, O) ? { box: [de, fe, ne, ye], placeable: !1, offscreen: !1 } : { box: [de, fe, ne, ye], placeable: !0, offscreen: this.isOffscreen(de, fe, ne, ye) };
18523
+ const [de, pe, ne, ye] = ce.box;
18524
+ return this.mapProjection.useSpecialProjectionForSymbols && (C ? ce.allPointsOccluded : this.mapProjection.isOccluded(q, J, y)) || Q.perspectiveRatio < this.perspectiveRatioCutoff || !this.isInsideGrid(de, pe, ne, ye) || d !== "always" && this.grid.hitTest(de, pe, ne, ye, d, O) ? { box: [de, pe, ne, ye], placeable: !1, offscreen: !1 } : { box: [de, pe, ne, ye], placeable: !0, offscreen: this.isOffscreen(de, pe, ne, ye) };
18525
18525
  }
18526
18526
  placeCollisionCircles(r, d, p, m, y, C, D, I, O, B, N, q, J, Q, oe, ce) {
18527
- const de = [], fe = new c.P(d.anchorX, d.anchorY), ne = this.getPerspectiveRatio(C, fe.x, fe.y, D, ce), ye = (N ? y / ne : y * ne) / c.ap, ve = { getElevation: ce, labelPlaneMatrix: I, lineVertexArray: p, pitchWithMap: N, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: this.mapProjection, tileAnchorPoint: fe, unwrappedTileID: D, width: this.transform.width, height: this.transform.height, translation: oe }, ke = se(ye, m, d.lineOffsetX * ye, d.lineOffsetY * ye, !1, d, !1, ve);
18527
+ const de = [], pe = new c.P(d.anchorX, d.anchorY), ne = this.getPerspectiveRatio(C, pe.x, pe.y, D, ce), ye = (N ? y / ne : y * ne) / c.ap, ve = { getElevation: ce, labelPlaneMatrix: I, lineVertexArray: p, pitchWithMap: N, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: this.mapProjection, tileAnchorPoint: pe, unwrappedTileID: D, width: this.transform.width, height: this.transform.height, translation: oe }, ke = se(ye, m, d.lineOffsetX * ye, d.lineOffsetY * ye, !1, d, !1, ve);
18528
18528
  let Le = !1, Ue = !1, Qe = !0;
18529
18529
  if (ke) {
18530
18530
  const ct = 0.5 * J * ne + Q, Ze = new c.P(-100, -100), qe = new c.P(this.screenRightBoundary, this.screenBottomBoundary), xt = new Ut(), Nt = ke.first, Ke = ke.last;
@@ -18620,7 +18620,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18620
18620
  oe = Math.pow(2, -Qe), oe *= this.mapProjection.getPitchedTextCorrection(this.transform, J, m), B || (oe *= c.ac(0.5 + I.signedDistanceFromCamera / this.transform.cameraToCenterDistance * 0.5, 0, 4));
18621
18621
  }
18622
18622
  B && (Q = Q.add(N.mult(B.x * oe)).add(q.mult(B.y * oe)));
18623
- const ce = r.x1 * oe, de = r.x2 * oe, fe = (ce + de) / 2, ne = r.y1 * oe, ye = r.y2 * oe, ve = (ne + ye) / 2, ke = [{ offsetX: ce, offsetY: ne }, { offsetX: fe, offsetY: ne }, { offsetX: de, offsetY: ne }, { offsetX: de, offsetY: ve }, { offsetX: de, offsetY: ye }, { offsetX: fe, offsetY: ye }, { offsetX: ce, offsetY: ye }, { offsetX: ce, offsetY: ve }];
18623
+ const ce = r.x1 * oe, de = r.x2 * oe, pe = (ce + de) / 2, ne = r.y1 * oe, ye = r.y2 * oe, ve = (ne + ye) / 2, ke = [{ offsetX: ce, offsetY: ne }, { offsetX: pe, offsetY: ne }, { offsetX: de, offsetY: ne }, { offsetX: de, offsetY: ve }, { offsetX: de, offsetY: ye }, { offsetX: pe, offsetY: ye }, { offsetX: ce, offsetY: ye }, { offsetX: ce, offsetY: ve }];
18624
18624
  let Le = [];
18625
18625
  for (const { offsetX: Qe, offsetY: ct } of ke) Le.push(new c.P(Q.x + N.x * Qe + q.x * ct, Q.y + N.y * Qe + q.y * ct));
18626
18626
  let Ue = !1;
@@ -18693,30 +18693,30 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18693
18693
  getBucketParts(r, d, p, m) {
18694
18694
  const y = p.getBucket(d), C = p.latestFeatureIndex;
18695
18695
  if (!y || !C || d.id !== y.layerIds[0]) return;
18696
- const D = p.collisionBoxArray, I = y.layers[0].layout, O = y.layers[0].paint, B = Math.pow(2, this.transform.zoom - p.tileID.overscaledZ), N = p.tileSize / c.X, q = p.tileID.toUnwrapped(), J = this.transform.calculatePosMatrix(q), Q = I.get("text-pitch-alignment") === "map", oe = I.get("text-rotation-alignment") === "map", ce = ti(p, 1, this.transform.zoom), de = this.collisionIndex.mapProjection.translatePosition(this.transform, p, O.get("text-translate"), O.get("text-translate-anchor")), fe = this.collisionIndex.mapProjection.translatePosition(this.transform, p, O.get("icon-translate"), O.get("icon-translate-anchor")), ne = Ls(J, Q, oe, this.transform, ce);
18696
+ const D = p.collisionBoxArray, I = y.layers[0].layout, O = y.layers[0].paint, B = Math.pow(2, this.transform.zoom - p.tileID.overscaledZ), N = p.tileSize / c.X, q = p.tileID.toUnwrapped(), J = this.transform.calculatePosMatrix(q), Q = I.get("text-pitch-alignment") === "map", oe = I.get("text-rotation-alignment") === "map", ce = ti(p, 1, this.transform.zoom), de = this.collisionIndex.mapProjection.translatePosition(this.transform, p, O.get("text-translate"), O.get("text-translate-anchor")), pe = this.collisionIndex.mapProjection.translatePosition(this.transform, p, O.get("icon-translate"), O.get("icon-translate-anchor")), ne = Ls(J, Q, oe, this.transform, ce);
18697
18697
  let ye = null;
18698
18698
  if (Q) {
18699
18699
  const ke = ns(J, Q, oe, this.transform, ce);
18700
18700
  ye = c.L([], this.transform.labelPlaneMatrix, ke);
18701
18701
  }
18702
18702
  this.retainedQueryData[y.bucketInstanceId] = new Xi(y.bucketInstanceId, C, y.sourceLayerIndex, y.index, p.tileID);
18703
- const ve = { bucket: y, layout: I, translationText: de, translationIcon: fe, posMatrix: J, unwrappedTileID: q, textLabelPlaneMatrix: ne, labelToScreenMatrix: ye, scale: B, textPixelRatio: N, holdingForFade: p.holdingForFade(), collisionBoxArray: D, partiallyEvaluatedTextSize: c.ag(y.textSizeData, this.transform.zoom), collisionGroup: this.collisionGroups.get(y.sourceID) };
18703
+ const ve = { bucket: y, layout: I, translationText: de, translationIcon: pe, posMatrix: J, unwrappedTileID: q, textLabelPlaneMatrix: ne, labelToScreenMatrix: ye, scale: B, textPixelRatio: N, holdingForFade: p.holdingForFade(), collisionBoxArray: D, partiallyEvaluatedTextSize: c.ag(y.textSizeData, this.transform.zoom), collisionGroup: this.collisionGroups.get(y.sourceID) };
18704
18704
  if (m) for (const ke of y.sortKeyRanges) {
18705
18705
  const { sortKey: Le, symbolInstanceStart: Ue, symbolInstanceEnd: Qe } = ke;
18706
18706
  r.push({ sortKey: Le, symbolInstanceStart: Ue, symbolInstanceEnd: Qe, parameters: ve });
18707
18707
  }
18708
18708
  else r.push({ symbolInstanceStart: 0, symbolInstanceEnd: y.symbolInstances.length, parameters: ve });
18709
18709
  }
18710
- attemptAnchorPlacement(r, d, p, m, y, C, D, I, O, B, N, q, J, Q, oe, ce, de, fe, ne) {
18710
+ attemptAnchorPlacement(r, d, p, m, y, C, D, I, O, B, N, q, J, Q, oe, ce, de, pe, ne) {
18711
18711
  const ye = c.aq[r.textAnchor], ve = [r.textOffset0, r.textOffset1], ke = Dn(ye, p, m, ve, y), Le = this.collisionIndex.placeCollisionBox(d, q, I, O, B, D, C, ce, N.predicate, ne, ke);
18712
- if ((!fe || this.collisionIndex.placeCollisionBox(fe, q, I, O, B, D, C, de, N.predicate, ne, ke).placeable) && Le.placeable) {
18712
+ if ((!pe || this.collisionIndex.placeCollisionBox(pe, q, I, O, B, D, C, de, N.predicate, ne, ke).placeable) && Le.placeable) {
18713
18713
  let Ue;
18714
18714
  if (this.prevPlacement && this.prevPlacement.variableOffsets[J.crossTileID] && this.prevPlacement.placements[J.crossTileID] && this.prevPlacement.placements[J.crossTileID].text && (Ue = this.prevPlacement.variableOffsets[J.crossTileID].anchor), J.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
18715
18715
  return this.variableOffsets[J.crossTileID] = { textOffset: ve, width: p, height: m, anchor: ye, textBoxScale: y, prevAnchor: Ue }, this.markUsedJustification(Q, ye, J, oe), Q.allowVerticalPlacement && (this.markUsedOrientation(Q, oe, J), this.placedOrientations[J.crossTileID] = oe), { shift: ke, placedGlyphBoxes: Le };
18716
18716
  }
18717
18717
  }
18718
18718
  placeLayerBucketPart(r, d, p) {
18719
- const { bucket: m, layout: y, translationText: C, translationIcon: D, posMatrix: I, unwrappedTileID: O, textLabelPlaneMatrix: B, labelToScreenMatrix: N, textPixelRatio: q, holdingForFade: J, collisionBoxArray: Q, partiallyEvaluatedTextSize: oe, collisionGroup: ce } = r.parameters, de = y.get("text-optional"), fe = y.get("icon-optional"), ne = c.ar(y, "text-overlap", "text-allow-overlap"), ye = ne === "always", ve = c.ar(y, "icon-overlap", "icon-allow-overlap"), ke = ve === "always", Le = y.get("text-rotation-alignment") === "map", Ue = y.get("text-pitch-alignment") === "map", Qe = y.get("icon-text-fit") !== "none", ct = y.get("symbol-z-order") === "viewport-y", Ze = ye && (ke || !m.hasIconData() || fe), qe = ke && (ye || !m.hasTextData() || de);
18719
+ const { bucket: m, layout: y, translationText: C, translationIcon: D, posMatrix: I, unwrappedTileID: O, textLabelPlaneMatrix: B, labelToScreenMatrix: N, textPixelRatio: q, holdingForFade: J, collisionBoxArray: Q, partiallyEvaluatedTextSize: oe, collisionGroup: ce } = r.parameters, de = y.get("text-optional"), pe = y.get("icon-optional"), ne = c.ar(y, "text-overlap", "text-allow-overlap"), ye = ne === "always", ve = c.ar(y, "icon-overlap", "icon-allow-overlap"), ke = ve === "always", Le = y.get("text-rotation-alignment") === "map", Ue = y.get("text-pitch-alignment") === "map", Qe = y.get("icon-text-fit") !== "none", ct = y.get("symbol-z-order") === "viewport-y", Ze = ye && (ke || !m.hasIconData() || pe), qe = ke && (ye || !m.hasTextData() || de);
18720
18720
  !m.collisionArrays && Q && m.deserializeCollisionBoxes(Q);
18721
18721
  const xt = this._getTerrainElevationFunc(this.retainedQueryData[m.bucketInstanceId].tileID), Nt = (Ke, st, Ft) => {
18722
18722
  var ji, Zt;
@@ -18783,7 +18783,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18783
18783
  const Cr = (Tr) => this.collisionIndex.placeCollisionBox(Tr, ve, q, I, O, Ue, Le, D, ce.predicate, xt, Qe && Vr ? Vr : void 0);
18784
18784
  Qn && Qn.placeable && st.verticalIconBox ? (qn = Cr(st.verticalIconBox), Ui = qn.placeable) : (qn = Cr(st.iconBox), Ui = qn.placeable), zn = zn && qn.offscreen;
18785
18785
  }
18786
- const Er = de || Ke.numHorizontalGlyphVertices === 0 && Ke.numVerticalGlyphVertices === 0, bc = fe || Ke.numIconVertices === 0;
18786
+ const Er = de || Ke.numHorizontalGlyphVertices === 0 && Ke.numVerticalGlyphVertices === 0, bc = pe || Ke.numIconVertices === 0;
18787
18787
  Er || bc ? bc ? Er || (Ui = Ui && ii) : ii = Ui && ii : Ui = ii = Ui && ii;
18788
18788
  const sd = Ui && qn.placeable;
18789
18789
  if (ii && Wn.placeable && this.collisionIndex.insertCollisionBox(Wn.box, ne, y.get("text-ignore-placement"), m.bucketInstanceId, Qn && Qn.placeable && ca ? ca : as, ce.ID), sd && this.collisionIndex.insertCollisionBox(qn.box, ve, y.get("icon-ignore-placement"), m.bucketInstanceId, vc, ce.ID), On && ii && this.collisionIndex.insertCollisionCircles(On.circles, ne, y.get("text-ignore-placement"), m.bucketInstanceId, as, ce.ID), p && this.storeCollisionData(m.bucketInstanceId, Ft, st, Wn, qn, On), Ke.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
@@ -18859,30 +18859,30 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18859
18859
  r.hasTextData() && (r.text.opacityVertexArray.clear(), r.text.hasVisibleVertices = !1), r.hasIconData() && (r.icon.opacityVertexArray.clear(), r.icon.hasVisibleVertices = !1), r.hasIconCollisionBoxData() && r.iconCollisionBox.collisionVertexArray.clear(), r.hasTextCollisionBoxData() && r.textCollisionBox.collisionVertexArray.clear();
18860
18860
  const y = r.layers[0], C = y.layout, D = new tn(null, 0, !1, !1, !0), I = C.get("text-allow-overlap"), O = C.get("icon-allow-overlap"), B = y._unevaluatedLayout.hasValue("text-variable-anchor") || y._unevaluatedLayout.hasValue("text-variable-anchor-offset"), N = C.get("text-rotation-alignment") === "map", q = C.get("text-pitch-alignment") === "map", J = C.get("icon-text-fit") !== "none", Q = new tn(null, 0, I && (O || !r.hasIconData() || C.get("icon-optional")), O && (I || !r.hasTextData() || C.get("text-optional")), !0);
18861
18861
  !r.collisionArrays && m && (r.hasIconCollisionBoxData() || r.hasTextCollisionBoxData()) && r.deserializeCollisionBoxes(m);
18862
- const oe = (de, fe, ne) => {
18863
- for (let ye = 0; ye < fe / 4; ye++) de.opacityVertexArray.emplaceBack(ne);
18862
+ const oe = (de, pe, ne) => {
18863
+ for (let ye = 0; ye < pe / 4; ye++) de.opacityVertexArray.emplaceBack(ne);
18864
18864
  de.hasVisibleVertices = de.hasVisibleVertices || ne !== Uo;
18865
18865
  }, ce = this.collisionBoxArrays.get(r.bucketInstanceId);
18866
18866
  for (let de = 0; de < r.symbolInstances.length; de++) {
18867
- const fe = r.symbolInstances.get(de), { numHorizontalGlyphVertices: ne, numVerticalGlyphVertices: ye, crossTileID: ve } = fe;
18867
+ const pe = r.symbolInstances.get(de), { numHorizontalGlyphVertices: ne, numVerticalGlyphVertices: ye, crossTileID: ve } = pe;
18868
18868
  let ke = this.opacities[ve];
18869
18869
  p[ve] ? ke = D : ke || (ke = Q, this.opacities[ve] = ke), p[ve] = !0;
18870
- const Le = fe.numIconVertices > 0, Ue = this.placedOrientations[fe.crossTileID], Qe = Ue === c.ah.vertical, ct = Ue === c.ah.horizontal || Ue === c.ah.horizontalOnly;
18870
+ const Le = pe.numIconVertices > 0, Ue = this.placedOrientations[pe.crossTileID], Qe = Ue === c.ah.vertical, ct = Ue === c.ah.horizontal || Ue === c.ah.horizontalOnly;
18871
18871
  if (ne > 0 || ye > 0) {
18872
18872
  const qe = fr(ke.text);
18873
18873
  oe(r.text, ne, Qe ? Uo : qe), oe(r.text, ye, ct ? Uo : qe);
18874
18874
  const xt = ke.text.isHidden();
18875
- [fe.rightJustifiedTextSymbolIndex, fe.centerJustifiedTextSymbolIndex, fe.leftJustifiedTextSymbolIndex].forEach((st) => {
18875
+ [pe.rightJustifiedTextSymbolIndex, pe.centerJustifiedTextSymbolIndex, pe.leftJustifiedTextSymbolIndex].forEach((st) => {
18876
18876
  st >= 0 && (r.text.placedSymbolArray.get(st).hidden = xt || Qe ? 1 : 0);
18877
- }), fe.verticalPlacedTextSymbolIndex >= 0 && (r.text.placedSymbolArray.get(fe.verticalPlacedTextSymbolIndex).hidden = xt || ct ? 1 : 0);
18878
- const Nt = this.variableOffsets[fe.crossTileID];
18879
- Nt && this.markUsedJustification(r, Nt.anchor, fe, Ue);
18880
- const Ke = this.placedOrientations[fe.crossTileID];
18881
- Ke && (this.markUsedJustification(r, "left", fe, Ke), this.markUsedOrientation(r, Ke, fe));
18877
+ }), pe.verticalPlacedTextSymbolIndex >= 0 && (r.text.placedSymbolArray.get(pe.verticalPlacedTextSymbolIndex).hidden = xt || ct ? 1 : 0);
18878
+ const Nt = this.variableOffsets[pe.crossTileID];
18879
+ Nt && this.markUsedJustification(r, Nt.anchor, pe, Ue);
18880
+ const Ke = this.placedOrientations[pe.crossTileID];
18881
+ Ke && (this.markUsedJustification(r, "left", pe, Ke), this.markUsedOrientation(r, Ke, pe));
18882
18882
  }
18883
18883
  if (Le) {
18884
- const qe = fr(ke.icon), xt = !(J && fe.verticalPlacedIconSymbolIndex && Qe);
18885
- fe.placedIconSymbolIndex >= 0 && (oe(r.icon, fe.numIconVertices, xt ? qe : Uo), r.icon.placedSymbolArray.get(fe.placedIconSymbolIndex).hidden = ke.icon.isHidden()), fe.verticalPlacedIconSymbolIndex >= 0 && (oe(r.icon, fe.numVerticalIconVertices, xt ? Uo : qe), r.icon.placedSymbolArray.get(fe.verticalPlacedIconSymbolIndex).hidden = ke.icon.isHidden());
18884
+ const qe = fr(ke.icon), xt = !(J && pe.verticalPlacedIconSymbolIndex && Qe);
18885
+ pe.placedIconSymbolIndex >= 0 && (oe(r.icon, pe.numIconVertices, xt ? qe : Uo), r.icon.placedSymbolArray.get(pe.placedIconSymbolIndex).hidden = ke.icon.isHidden()), pe.verticalPlacedIconSymbolIndex >= 0 && (oe(r.icon, pe.numVerticalIconVertices, xt ? Uo : qe), r.icon.placedSymbolArray.get(pe.verticalPlacedIconSymbolIndex).hidden = ke.icon.isHidden());
18886
18886
  }
18887
18887
  const Ze = ce && ce.has(de) ? ce.get(de) : { text: null, icon: null };
18888
18888
  if (r.hasIconCollisionBoxData() || r.hasTextCollisionBoxData()) {
@@ -19204,9 +19204,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19204
19204
  const oe = {};
19205
19205
  for (const ce in J) {
19206
19206
  oe[ce] = {};
19207
- const de = E.getImageCanvasContext((yield Q[ce]).data), fe = (yield J[ce]).data;
19208
- for (const ne in fe) {
19209
- const { width: ye, height: ve, x: ke, y: Le, sdf: Ue, pixelRatio: Qe, stretchX: ct, stretchY: Ze, content: qe, textFitWidth: xt, textFitHeight: Nt } = fe[ne];
19207
+ const de = E.getImageCanvasContext((yield Q[ce]).data), pe = (yield J[ce]).data;
19208
+ for (const ne in pe) {
19209
+ const { width: ye, height: ve, x: ke, y: Le, sdf: Ue, pixelRatio: Qe, stretchX: ct, stretchY: Ze, content: qe, textFitWidth: xt, textFitHeight: Nt } = pe[ne];
19210
19210
  oe[ce][ne] = { data: null, pixelRatio: Qe, sdf: Ue, stretchX: ct, stretchY: Ze, content: qe, textFitWidth: xt, textFitHeight: Nt, spriteData: { width: ye, height: ve, x: ke, y: Le, context: de } };
19211
19211
  }
19212
19212
  }
@@ -19602,9 +19602,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19602
19602
  for (const de of Object.keys(oe).map(Number)) ce.push(J[de]);
19603
19603
  ce.sort(Ht);
19604
19604
  for (const de of ce) {
19605
- const fe = de.featureIndex.lookupSymbolFeatures(oe[de.bucketInstanceId], I, de.bucketIndex, de.sourceLayerIndex, N.filter, N.layers, N.availableImages, D);
19606
- for (const ne in fe) {
19607
- const ye = Q[ne] = Q[ne] || [], ve = fe[ne];
19605
+ const pe = de.featureIndex.lookupSymbolFeatures(oe[de.bucketInstanceId], I, de.bucketIndex, de.sourceLayerIndex, N.filter, N.layers, N.availableImages, D);
19606
+ for (const ne in pe) {
19607
+ const ye = Q[ne] = Q[ne] || [], ve = pe[ne];
19608
19608
  ve.sort((ke, Le) => {
19609
19609
  const Ue = de.featureSortOrder;
19610
19610
  if (Ue) {
@@ -19616,8 +19616,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19616
19616
  for (const ke of ve) ye.push(ke);
19617
19617
  }
19618
19618
  }
19619
- for (const de in Q) Q[de].forEach((fe) => {
19620
- const ne = fe.feature, ye = O[D[de].source].getFeatureState(ne.layer["source-layer"], ne.id);
19619
+ for (const de in Q) Q[de].forEach((pe) => {
19620
+ const ne = pe.feature, ye = O[D[de].source].getFeatureState(ne.layer["source-layer"], ne.id);
19621
19621
  ne.source = ne.layer.source, ne.layer["source-layer"] && (ne.sourceLayer = ne.layer["source-layer"]), ne.state = ye;
19622
19622
  });
19623
19623
  return Q;
@@ -20377,14 +20377,14 @@ uniform ${B} ${N} u_${q};
20377
20377
  const ce = p ? p.defines() : [];
20378
20378
  y && ce.push("#define OVERDRAW_INSPECTOR;"), C && ce.push("#define TERRAIN3D;");
20379
20379
  const de = ce.concat(Fs.prelude.fragmentSource, d.fragmentSource).join(`
20380
- `), fe = ce.concat(Fs.prelude.vertexSource, d.vertexSource).join(`
20380
+ `), pe = ce.concat(Fs.prelude.vertexSource, d.vertexSource).join(`
20381
20381
  `), ne = D.createShader(D.FRAGMENT_SHADER);
20382
20382
  if (D.isContextLost()) return void (this.failedToCreate = !0);
20383
20383
  if (D.shaderSource(ne, de), D.compileShader(ne), !D.getShaderParameter(ne, D.COMPILE_STATUS)) throw new Error(`Could not compile fragment shader: ${D.getShaderInfoLog(ne)}`);
20384
20384
  D.attachShader(this.program, ne);
20385
20385
  const ye = D.createShader(D.VERTEX_SHADER);
20386
20386
  if (D.isContextLost()) return void (this.failedToCreate = !0);
20387
- if (D.shaderSource(ye, fe), D.compileShader(ye), !D.getShaderParameter(ye, D.COMPILE_STATUS)) throw new Error(`Could not compile vertex shader: ${D.getShaderInfoLog(ye)}`);
20387
+ if (D.shaderSource(ye, pe), D.compileShader(ye), !D.getShaderParameter(ye, D.COMPILE_STATUS)) throw new Error(`Could not compile vertex shader: ${D.getShaderInfoLog(ye)}`);
20388
20388
  D.attachShader(this.program, ye), this.attributes = {};
20389
20389
  const ve = {};
20390
20390
  this.numAttributes = B.length;
@@ -20400,7 +20400,7 @@ uniform ${B} ${N} u_${q};
20400
20400
  }
20401
20401
  this.fixedUniforms = m(r, ve), this.terrainUniforms = ((ke, Le) => ({ u_depth: new c.aH(ke, Le.u_depth), u_terrain: new c.aH(ke, Le.u_terrain), u_terrain_dim: new c.aI(ke, Le.u_terrain_dim), u_terrain_matrix: new c.aJ(ke, Le.u_terrain_matrix), u_terrain_unpack: new c.aK(ke, Le.u_terrain_unpack), u_terrain_exaggeration: new c.aI(ke, Le.u_terrain_exaggeration) }))(r, ve), this.binderUniforms = p ? p.getUniforms(r, ve) : [];
20402
20402
  }
20403
- draw(r, d, p, m, y, C, D, I, O, B, N, q, J, Q, oe, ce, de, fe) {
20403
+ draw(r, d, p, m, y, C, D, I, O, B, N, q, J, Q, oe, ce, de, pe) {
20404
20404
  const ne = r.gl;
20405
20405
  if (this.failedToCreate) return;
20406
20406
  if (r.program.set(this.program), r.setDepthMode(p), r.setStencilMode(m), r.setColorMode(y), r.setCullFace(C), I) {
@@ -20422,7 +20422,7 @@ uniform ${B} ${N} u_${q};
20422
20422
  }
20423
20423
  for (const ve of q.get()) {
20424
20424
  const ke = ve.vaos || (ve.vaos = {});
20425
- (ke[O] || (ke[O] = new vu())).bind(r, this, B, oe ? oe.getPaintVertexBuffers() : [], N, ve.vertexOffset, ce, de, fe), ne.drawElements(d, ve.primitiveLength * ye, ne.UNSIGNED_SHORT, ve.primitiveOffset * ye * 2);
20425
+ (ke[O] || (ke[O] = new vu())).bind(r, this, B, oe ? oe.getPaintVertexBuffers() : [], N, ve.vertexOffset, ce, de, pe), ne.drawElements(d, ve.primitiveLength * ye, ne.UNSIGNED_SHORT, ve.primitiveOffset * ye * 2);
20426
20426
  }
20427
20427
  }
20428
20428
  }
@@ -20998,28 +20998,28 @@ uniform ${B} ${N} u_${q};
20998
20998
  const y = _.context, C = y.gl, D = _.useProgram("collisionBox"), I = [];
20999
20999
  let O = 0, B = 0;
21000
21000
  for (let de = 0; de < p.length; de++) {
21001
- const fe = p[de], ne = r.getTile(fe).getBucket(d);
21001
+ const pe = p[de], ne = r.getTile(pe).getBucket(d);
21002
21002
  if (!ne) continue;
21003
21003
  const ye = m ? ne.textCollisionBox : ne.iconCollisionBox, ve = ne.collisionCircleArray;
21004
21004
  if (ve.length > 0) {
21005
21005
  const ke = c.H();
21006
- c.aQ(ke, ne.placementInvProjMatrix, _.transform.glCoordMatrix), c.aQ(ke, ke, ne.placementViewportMatrix), I.push({ circleArray: ve, circleOffset: B, transform: fe.posMatrix, invTransform: ke, coord: fe }), O += ve.length / 4, B = O;
21006
+ c.aQ(ke, ne.placementInvProjMatrix, _.transform.glCoordMatrix), c.aQ(ke, ke, ne.placementViewportMatrix), I.push({ circleArray: ve, circleOffset: B, transform: pe.posMatrix, invTransform: ke, coord: pe }), O += ve.length / 4, B = O;
21007
21007
  }
21008
- ye && D.draw(y, C.LINES, Jt.disabled, Ni.disabled, _.colorModeForRenderPass(), Mi.disabled, { u_matrix: fe.posMatrix, u_pixel_extrude_scale: [1 / (N = _.transform).width, 1 / N.height] }, _.style.map.terrain && _.style.map.terrain.getTerrainData(fe), d.id, ye.layoutVertexBuffer, ye.indexBuffer, ye.segments, null, _.transform.zoom, null, null, ye.collisionVertexBuffer);
21008
+ ye && D.draw(y, C.LINES, Jt.disabled, Ni.disabled, _.colorModeForRenderPass(), Mi.disabled, { u_matrix: pe.posMatrix, u_pixel_extrude_scale: [1 / (N = _.transform).width, 1 / N.height] }, _.style.map.terrain && _.style.map.terrain.getTerrainData(pe), d.id, ye.layoutVertexBuffer, ye.indexBuffer, ye.segments, null, _.transform.zoom, null, null, ye.collisionVertexBuffer);
21009
21009
  }
21010
21010
  var N;
21011
21011
  if (!m || !I.length) return;
21012
21012
  const q = _.useProgram("collisionCircle"), J = new c.aR();
21013
21013
  J.resize(4 * O), J._trim();
21014
21014
  let Q = 0;
21015
- for (const de of I) for (let fe = 0; fe < de.circleArray.length / 4; fe++) {
21016
- const ne = 4 * fe, ye = de.circleArray[ne + 0], ve = de.circleArray[ne + 1], ke = de.circleArray[ne + 2], Le = de.circleArray[ne + 3];
21015
+ for (const de of I) for (let pe = 0; pe < de.circleArray.length / 4; pe++) {
21016
+ const ne = 4 * pe, ye = de.circleArray[ne + 0], ve = de.circleArray[ne + 1], ke = de.circleArray[ne + 2], Le = de.circleArray[ne + 3];
21017
21017
  J.emplace(Q++, ye, ve, ke, Le, 0), J.emplace(Q++, ye, ve, ke, Le, 1), J.emplace(Q++, ye, ve, ke, Le, 2), J.emplace(Q++, ye, ve, ke, Le, 3);
21018
21018
  }
21019
21019
  (!co || co.length < 2 * O) && (co = function(de) {
21020
- const fe = 2 * de, ne = new c.aT();
21021
- ne.resize(fe), ne._trim();
21022
- for (let ye = 0; ye < fe; ye++) {
21020
+ const pe = 2 * de, ne = new c.aT();
21021
+ ne.resize(pe), ne._trim();
21022
+ for (let ye = 0; ye < pe; ye++) {
21023
21023
  const ve = 6 * ye;
21024
21024
  ne.uint16[ve + 0] = 4 * ye + 0, ne.uint16[ve + 1] = 4 * ye + 1, ne.uint16[ve + 2] = 4 * ye + 2, ne.uint16[ve + 3] = 4 * ye + 2, ne.uint16[ve + 4] = 4 * ye + 3, ne.uint16[ve + 5] = 4 * ye + 0;
21025
21025
  }
@@ -21027,8 +21027,8 @@ uniform ${B} ${N} u_${q};
21027
21027
  }(O));
21028
21028
  const oe = y.createIndexBuffer(co, !0), ce = y.createVertexBuffer(J, c.aS.members, !0);
21029
21029
  for (const de of I) {
21030
- const fe = so(de.transform, de.invTransform, _.transform);
21031
- q.draw(y, C.TRIANGLES, Jt.disabled, Ni.disabled, _.colorModeForRenderPass(), Mi.disabled, fe, _.style.map.terrain && _.style.map.terrain.getTerrainData(de.coord), d.id, ce, oe, c.a0.simpleSegment(0, 2 * de.circleOffset, de.circleArray.length, de.circleArray.length / 2), null, _.transform.zoom, null, null, null);
21030
+ const pe = so(de.transform, de.invTransform, _.transform);
21031
+ q.draw(y, C.TRIANGLES, Jt.disabled, Ni.disabled, _.colorModeForRenderPass(), Mi.disabled, pe, _.style.map.terrain && _.style.map.terrain.getTerrainData(de.coord), d.id, ce, oe, c.a0.simpleSegment(0, 2 * de.circleOffset, de.circleArray.length, de.circleArray.length / 2), null, _.transform.zoom, null, null, null);
21032
21032
  }
21033
21033
  ce.destroy(), oe.destroy();
21034
21034
  }
@@ -21055,8 +21055,8 @@ uniform ${B} ${N} u_${q};
21055
21055
  function Zo(_, r, d, p, m, y, C, D, I, O, B, N, q, J) {
21056
21056
  const Q = _.text.placedSymbolArray, oe = _.text.dynamicLayoutVertexArray, ce = _.icon.dynamicLayoutVertexArray, de = {};
21057
21057
  oe.clear();
21058
- for (let fe = 0; fe < Q.length; fe++) {
21059
- const ne = Q.get(fe), ye = ne.hidden || !ne.crossTileID || _.allowVerticalPlacement && !ne.placedOrientation ? null : p[ne.crossTileID];
21058
+ for (let pe = 0; pe < Q.length; pe++) {
21059
+ const ne = Q.get(pe), ye = ne.hidden || !ne.crossTileID || _.allowVerticalPlacement && !ne.placedOrientation ? null : p[ne.crossTileID];
21060
21060
  if (ye) {
21061
21061
  const ve = new c.P(ne.anchorX, ne.anchorY), ke = { getElevation: J, width: m.width, height: m.height, labelPlaneMatrix: y, pitchWithMap: d, projection: B, tileAnchorPoint: ve, translation: N, unwrappedTileID: q }, Le = d ? ae(ve.x, ve.y, C, J) : Ie(ve.x, ve.y, ke), Ue = H(m.cameraToCenterDistance, Le.signedDistanceFromCamera);
21062
21062
  let Qe = c.ai(_.textSizeData, I, ne) * Ue / c.ap;
@@ -21068,9 +21068,9 @@ uniform ${B} ${N} u_${q};
21068
21068
  }
21069
21069
  if (O) {
21070
21070
  ce.clear();
21071
- const fe = _.icon.placedSymbolArray;
21072
- for (let ne = 0; ne < fe.length; ne++) {
21073
- const ye = fe.get(ne);
21071
+ const pe = _.icon.placedSymbolArray;
21072
+ for (let ne = 0; ne < pe.length; ne++) {
21073
+ const ye = pe.get(ne);
21074
21074
  if (ye.hidden) It(ye.numGlyphs, ce);
21075
21075
  else {
21076
21076
  const ve = de[ne];
@@ -21086,7 +21086,7 @@ uniform ${B} ${N} u_${q};
21086
21086
  return d.iconsInText && r ? "symbolTextAndIcon" : _ ? "symbolSDF" : "symbolIcon";
21087
21087
  }
21088
21088
  function zu(_, r, d, p, m, y, C, D, I, O, B, N) {
21089
- const q = _.context, J = q.gl, Q = _.transform, oe = no(), ce = D === "map", de = I === "map", fe = D !== "viewport" && d.layout.get("symbol-placement") !== "point", ne = ce && !de && !fe, ye = !de && fe, ve = !d.layout.get("symbol-sort-key").isConstant();
21089
+ const q = _.context, J = q.gl, Q = _.transform, oe = no(), ce = D === "map", de = I === "map", pe = D !== "viewport" && d.layout.get("symbol-placement") !== "point", ne = ce && !de && !pe, ye = !de && pe, ve = !d.layout.get("symbol-sort-key").isConstant();
21090
21090
  let ke = !1;
21091
21091
  const Le = _.depthModeForSublayer(0, Jt.ReadOnly), Ue = d._unevaluatedLayout.hasValue("text-variable-anchor") || d._unevaluatedLayout.hasValue("text-variable-anchor-offset"), Qe = [], ct = oe.getCircleRadiusCorrection(Q);
21092
21092
  for (const Ze of p) {
@@ -21102,13 +21102,13 @@ uniform ${B} ${N} u_${q};
21102
21102
  Vr = qe.imageAtlasTexture, Hi = st || _.options.rotating || _.options.zooming || oi || ji ? J.LINEAR : J.NEAREST, zn = qe.imageAtlasTexture.size;
21103
21103
  }
21104
21104
  const qn = ti(qe, 1, _.transform.zoom), as = ye ? Ze.posMatrix : Ka, ca = Ls(as, de, ce, _.transform, qn), vc = ns(as, de, ce, _.transform, qn), ua = ns(Ze.posMatrix, de, ce, _.transform, qn), Er = oe.translatePosition(_.transform, qe, y, C), bc = Ue && xt.hasTextData(), sd = d.layout.get("icon-text-fit") !== "none" && bc && xt.hasIconData();
21105
- if (fe) {
21105
+ if (pe) {
21106
21106
  const oi = _.style.map.terrain ? (da, ha) => _.style.map.terrain.getElevation(Ze, da, ha) : null, go = d.layout.get("text-rotation-alignment") === "map";
21107
21107
  K(xt, Ze.posMatrix, _, m, ca, ua, de, O, go, oe, Ze.toUnwrapped(), Q.width, Q.height, Er, oi);
21108
21108
  }
21109
- const Cr = Ze.posMatrix, Tr = m && Ue || sd, Ns = fe || Tr ? Ka : ca, jr = vc, Mn = st && d.paint.get(m ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
21109
+ const Cr = Ze.posMatrix, Tr = m && Ue || sd, Ns = pe || Tr ? Ka : ca, jr = vc, Mn = st && d.paint.get(m ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
21110
21110
  let Ln;
21111
- Ln = st ? xt.iconsInText ? wu(Ft.kind, ii, ne, de, fe, Tr, _, Cr, Ns, jr, Er, zn, Wn, ct) : Za(Ft.kind, ii, ne, de, fe, Tr, _, Cr, Ns, jr, Er, m, zn, !0, ct) : wh(Ft.kind, ii, ne, de, fe, Tr, _, Cr, Ns, jr, Er, m, zn, ct);
21111
+ Ln = st ? xt.iconsInText ? wu(Ft.kind, ii, ne, de, pe, Tr, _, Cr, Ns, jr, Er, zn, Wn, ct) : Za(Ft.kind, ii, ne, de, pe, Tr, _, Cr, Ns, jr, Er, m, zn, !0, ct) : wh(Ft.kind, ii, ne, de, pe, Tr, _, Cr, Ns, jr, Er, m, zn, ct);
21112
21112
  const gr = { program: Zt, buffers: Nt, uniformValues: Ln, atlasTexture: Vr, atlasTextureIcon: On, atlasInterpolation: Hi, atlasInterpolationIcon: Qn, isSDF: st, hasHalo: Mn };
21113
21113
  if (ve && xt.canOverlap) {
21114
21114
  ke = !0;
@@ -21172,20 +21172,20 @@ uniform ${B} ${N} u_${q};
21172
21172
  let q, J, Q, oe, ce;
21173
21173
  C ? (J = B && !d.getPaintProperty("fill-outline-color") ? "fillOutlinePattern" : "fillOutline", q = D.LINES) : (J = B ? "fillPattern" : "fill", q = D.TRIANGLES);
21174
21174
  const de = O.constantOr(null);
21175
- for (const fe of p) {
21176
- const ne = r.getTile(fe);
21175
+ for (const pe of p) {
21176
+ const ne = r.getTile(pe);
21177
21177
  if (B && !ne.patternsLoaded()) continue;
21178
21178
  const ye = ne.getBucket(d);
21179
21179
  if (!ye) continue;
21180
- const ve = ye.programConfigurations.get(d.id), ke = _.useProgram(J, ve), Le = _.style.map.terrain && _.style.map.terrain.getTerrainData(fe);
21180
+ const ve = ye.programConfigurations.get(d.id), ke = _.useProgram(J, ve), Le = _.style.map.terrain && _.style.map.terrain.getTerrainData(pe);
21181
21181
  B && (_.context.activeTexture.set(D.TEXTURE0), ne.imageAtlasTexture.bind(D.LINEAR, D.CLAMP_TO_EDGE), ve.updatePaintBuffers(N)), Yo(ve, I, de, ne, d);
21182
- const Ue = Le ? fe : null, Qe = _.translatePosMatrix(Ue ? Ue.posMatrix : fe.posMatrix, ne, d.paint.get("fill-translate"), d.paint.get("fill-translate-anchor"));
21182
+ const Ue = Le ? pe : null, Qe = _.translatePosMatrix(Ue ? Ue.posMatrix : pe.posMatrix, ne, d.paint.get("fill-translate"), d.paint.get("fill-translate-anchor"));
21183
21183
  if (C) {
21184
21184
  oe = ye.indexBuffer2, ce = ye.segments2;
21185
21185
  const ct = [D.drawingBufferWidth, D.drawingBufferHeight];
21186
21186
  Q = J === "fillOutlinePattern" && B ? _h(Qe, _, N, ne, ct) : lm(Qe, ct);
21187
21187
  } else oe = ye.indexBuffer, ce = ye.segments, Q = B ? yh(Qe, _, N, ne) : Wo(Qe);
21188
- ke.draw(_.context, q, m, _.stencilModeForClipping(fe), y, Mi.disabled, Q, Le, d.id, ye.layoutVertexBuffer, oe, ce, d.paint, _.transform.zoom, ve);
21188
+ ke.draw(_.context, q, m, _.stencilModeForClipping(pe), y, Mi.disabled, Q, Le, d.id, ye.layoutVertexBuffer, oe, ce, d.paint, _.transform.zoom, ve);
21189
21189
  }
21190
21190
  }
21191
21191
  function tc(_, r, d, p, m, y, C) {
@@ -21193,10 +21193,10 @@ uniform ${B} ${N} u_${q};
21193
21193
  for (const oe of p) {
21194
21194
  const ce = r.getTile(oe), de = ce.getBucket(d);
21195
21195
  if (!de) continue;
21196
- const fe = _.style.map.terrain && _.style.map.terrain.getTerrainData(oe), ne = de.programConfigurations.get(d.id), ye = _.useProgram(N ? "fillExtrusionPattern" : "fillExtrusion", ne);
21196
+ const pe = _.style.map.terrain && _.style.map.terrain.getTerrainData(oe), ne = de.programConfigurations.get(d.id), ye = _.useProgram(N ? "fillExtrusionPattern" : "fillExtrusion", ne);
21197
21197
  N && (_.context.activeTexture.set(I.TEXTURE0), ce.imageAtlasTexture.bind(I.LINEAR, I.CLAMP_TO_EDGE), ne.updatePaintBuffers(q)), Yo(ne, O, Q, ce, d);
21198
21198
  const ve = _.translatePosMatrix(oe.posMatrix, ce, d.paint.get("fill-extrusion-translate"), d.paint.get("fill-extrusion-translate-anchor")), ke = d.paint.get("fill-extrusion-vertical-gradient"), Le = N ? Wl(ve, _, ke, J, oe, q, ce) : qa(ve, _, ke, J);
21199
- ye.draw(D, D.gl.TRIANGLES, m, y, C, Mi.backCCW, Le, fe, d.id, de.layoutVertexBuffer, de.indexBuffer, de.segments, d.paint, _.transform.zoom, ne, _.style.map.terrain && de.centroidVertexBuffer);
21199
+ ye.draw(D, D.gl.TRIANGLES, m, y, C, Mi.backCCW, Le, pe, d.id, de.layoutVertexBuffer, de.indexBuffer, de.segments, d.paint, _.transform.zoom, ne, _.style.map.terrain && de.centroidVertexBuffer);
21200
21200
  }
21201
21201
  }
21202
21202
  function Xo(_, r, d, p, m, y, C) {
@@ -21204,11 +21204,11 @@ uniform ${B} ${N} u_${q};
21204
21204
  if (!O) return;
21205
21205
  const B = _.useProgram("hillshade"), N = _.style.map.terrain && _.style.map.terrain.getTerrainData(r);
21206
21206
  D.activeTexture.set(I.TEXTURE0), I.bindTexture(I.TEXTURE_2D, O.colorAttachment.get()), B.draw(D, I.TRIANGLES, m, y, C, Mi.disabled, ((q, J, Q, oe) => {
21207
- const ce = Q.paint.get("hillshade-shadow-color"), de = Q.paint.get("hillshade-highlight-color"), fe = Q.paint.get("hillshade-accent-color");
21207
+ const ce = Q.paint.get("hillshade-shadow-color"), de = Q.paint.get("hillshade-highlight-color"), pe = Q.paint.get("hillshade-accent-color");
21208
21208
  let ne = Q.paint.get("hillshade-illumination-direction") * (Math.PI / 180);
21209
21209
  Q.paint.get("hillshade-illumination-anchor") === "viewport" && (ne -= q.transform.angle);
21210
21210
  const ye = !q.options.moving;
21211
- return { u_matrix: oe ? oe.posMatrix : q.transform.calculatePosMatrix(J.tileID.toUnwrapped(), ye), u_image: 0, u_latrange: Gl(0, J.tileID), u_light: [Q.paint.get("hillshade-exaggeration"), ne], u_shadow: ce, u_highlight: de, u_accent: fe };
21211
+ return { u_matrix: oe ? oe.posMatrix : q.transform.calculatePosMatrix(J.tileID.toUnwrapped(), ye), u_image: 0, u_latrange: Gl(0, J.tileID), u_light: [Q.paint.get("hillshade-exaggeration"), ne], u_shadow: ce, u_highlight: de, u_accent: pe };
21212
21212
  })(_, d, p, N ? r : null), N, p.id, _.rasterBoundsBuffer, _.quadTriangleIndexBuffer, _.rasterBoundsSegments);
21213
21213
  }
21214
21214
  function Ko(_, r, d, p, m, y) {
@@ -21255,10 +21255,10 @@ uniform ${B} ${N} u_${q};
21255
21255
  p.activeTexture.set(m.TEXTURE0);
21256
21256
  const q = r.getTileByID(d.key).latestRawTileData, J = Math.floor((q && q.byteLength || 0) / 1024), Q = r.getTile(d).tileSize, oe = 512 / Math.min(Q, 512) * (d.overscaledZ / _.transform.zoom) * 0.5;
21257
21257
  let ce = d.canonical.toString();
21258
- d.overscaledZ !== d.canonical.z && (ce += ` => ${d.overscaledZ}`), function(de, fe) {
21258
+ d.overscaledZ !== d.canonical.z && (ce += ` => ${d.overscaledZ}`), function(de, pe) {
21259
21259
  de.initDebugOverlayCanvas();
21260
21260
  const ne = de.debugOverlayCanvas, ye = de.context.gl, ve = de.debugOverlayCanvas.getContext("2d");
21261
- ve.clearRect(0, 0, ne.width, ne.height), ve.shadowColor = "white", ve.shadowBlur = 2, ve.lineWidth = 1.5, ve.strokeStyle = "white", ve.textBaseline = "top", ve.font = "bold 36px Open Sans, sans-serif", ve.fillText(fe, 5, 5), ve.strokeText(fe, 5, 5), de.debugOverlayTexture.update(ne), de.debugOverlayTexture.bind(ye.LINEAR, ye.CLAMP_TO_EDGE);
21261
+ ve.clearRect(0, 0, ne.width, ne.height), ve.shadowColor = "white", ve.shadowBlur = 2, ve.lineWidth = 1.5, ve.strokeStyle = "white", ve.textBaseline = "top", ve.font = "bold 36px Open Sans, sans-serif", ve.fillText(pe, 5, 5), ve.strokeText(pe, 5, 5), de.debugOverlayTexture.update(ne), de.debugOverlayTexture.bind(ye.LINEAR, ye.CLAMP_TO_EDGE);
21262
21262
  }(_, `${ce} ${J}kB`), C.draw(p, m.TRIANGLES, D, I, cn.alphaBlended, Mi.disabled, Ga(y, c.aM.transparent, oe), null, B, _.debugBuffer, _.quadTriangleIndexBuffer, _.debugSegments), C.draw(p, m.LINE_STRIP, D, I, O, Mi.disabled, Ga(y, c.aM.red), N, B, _.debugBuffer, _.tileBorderIndexBuffer, _.debugSegments);
21263
21263
  }
21264
21264
  function Nh(_, r, d) {
@@ -21371,12 +21371,12 @@ uniform ${B} ${N} u_${q};
21371
21371
  (O.type === "custom" || B.length) && this.renderLayer(this, m[O.source], O, B);
21372
21372
  }
21373
21373
  if (this.context.bindFramebuffer.set(null), this.context.clear({ color: d.showOverdrawInspector ? c.aM.black : c.aM.transparent, depth: 1 }), this.clearStencil(), this.style.sky && function(I, O) {
21374
- const B = I.context, N = B.gl, q = ((de, fe, ne) => ({ u_sky_color: de.properties.get("sky-color"), u_horizon_color: de.properties.get("horizon-color"), u_horizon: (fe.height / 2 + fe.getHorizon()) * ne, u_sky_horizon_blend: de.properties.get("sky-horizon-blend") * fe.height / 2 * ne }))(O, I.style.map.transform, I.pixelRatio), J = new Jt(N.LEQUAL, Jt.ReadWrite, [0, 1]), Q = Ni.disabled, oe = I.colorModeForRenderPass(), ce = I.useProgram("sky");
21374
+ const B = I.context, N = B.gl, q = ((de, pe, ne) => ({ u_sky_color: de.properties.get("sky-color"), u_horizon_color: de.properties.get("horizon-color"), u_horizon: (pe.height / 2 + pe.getHorizon()) * ne, u_sky_horizon_blend: de.properties.get("sky-horizon-blend") * pe.height / 2 * ne }))(O, I.style.map.transform, I.pixelRatio), J = new Jt(N.LEQUAL, Jt.ReadWrite, [0, 1]), Q = Ni.disabled, oe = I.colorModeForRenderPass(), ce = I.useProgram("sky");
21375
21375
  if (!O.mesh) {
21376
21376
  const de = new c.aX();
21377
21377
  de.emplaceBack(-1, -1), de.emplaceBack(1, -1), de.emplaceBack(1, 1), de.emplaceBack(-1, 1);
21378
- const fe = new c.aY();
21379
- fe.emplaceBack(0, 1, 2), fe.emplaceBack(0, 2, 3), O.mesh = new rc(B.createVertexBuffer(de, ro.members), B.createIndexBuffer(fe), c.a0.simpleSegment(0, 0, de.length, fe.length));
21378
+ const pe = new c.aY();
21379
+ pe.emplaceBack(0, 1, 2), pe.emplaceBack(0, 2, 3), O.mesh = new rc(B.createVertexBuffer(de, ro.members), B.createIndexBuffer(pe), c.a0.simpleSegment(0, 0, de.length, pe.length));
21380
21380
  }
21381
21381
  ce.draw(B, N.TRIANGLES, J, Q, oe, Mi.disabled, q, void 0, "sky", O.mesh.vertexBuffer, O.mesh.indexBuffer, O.mesh.segments);
21382
21382
  }(this, this.style.sky), this._showOverdrawInspector = d.showOverdrawInspector, this.depthRangeFor3D = [0, 1 - (r._order.length + 2) * this.numSublayers * this.depthEpsilon], !this.renderToTexture) for (this.renderPass = "opaque", this.currentLayer = p.length - 1; this.currentLayer >= 0; this.currentLayer--) {
@@ -21440,14 +21440,14 @@ uniform ${B} ${N} u_${q};
21440
21440
  (function(y, C, D, I, O) {
21441
21441
  if (y.renderPass !== "translucent") return;
21442
21442
  const B = Ni.disabled, N = y.colorModeForRenderPass();
21443
- (D._unevaluatedLayout.hasValue("text-variable-anchor") || D._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && function(q, J, Q, oe, ce, de, fe, ne, ye) {
21443
+ (D._unevaluatedLayout.hasValue("text-variable-anchor") || D._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && function(q, J, Q, oe, ce, de, pe, ne, ye) {
21444
21444
  const ve = J.transform, ke = no(), Le = ce === "map", Ue = de === "map";
21445
21445
  for (const Qe of q) {
21446
21446
  const ct = oe.getTile(Qe), Ze = ct.getBucket(Q);
21447
21447
  if (!Ze || !Ze.text || !Ze.text.segments.get().length) continue;
21448
21448
  const qe = c.ag(Ze.textSizeData, ve.zoom), xt = ti(ct, 1, J.transform.zoom), Nt = Ls(Qe.posMatrix, Ue, Le, J.transform, xt), Ke = Q.layout.get("icon-text-fit") !== "none" && Ze.hasIconData();
21449
21449
  if (qe) {
21450
- const st = Math.pow(2, ve.zoom - ct.tileID.overscaledZ), Ft = J.style.map.terrain ? (Zt, ii) => J.style.map.terrain.getElevation(Qe, Zt, ii) : null, ji = ke.translatePosition(ve, ct, fe, ne);
21450
+ const st = Math.pow(2, ve.zoom - ct.tileID.overscaledZ), Ft = J.style.map.terrain ? (Zt, ii) => J.style.map.terrain.getElevation(Qe, Zt, ii) : null, ji = ke.translatePosition(ve, ct, pe, ne);
21451
21451
  Zo(Ze, Le, Ue, ye, ve, Nt, Qe.posMatrix, st, qe, Ke, ke, ji, Qe.toUnwrapped(), Ft);
21452
21452
  }
21453
21453
  }
@@ -21459,18 +21459,18 @@ uniform ${B} ${N} u_${q};
21459
21459
  if (y.renderPass !== "translucent") return;
21460
21460
  const O = D.paint.get("circle-opacity"), B = D.paint.get("circle-stroke-width"), N = D.paint.get("circle-stroke-opacity"), q = !D.layout.get("circle-sort-key").isConstant();
21461
21461
  if (O.constantOr(1) === 0 && (B.constantOr(1) === 0 || N.constantOr(1) === 0)) return;
21462
- const J = y.context, Q = J.gl, oe = y.depthModeForSublayer(0, Jt.ReadOnly), ce = Ni.disabled, de = y.colorModeForRenderPass(), fe = [];
21462
+ const J = y.context, Q = J.gl, oe = y.depthModeForSublayer(0, Jt.ReadOnly), ce = Ni.disabled, de = y.colorModeForRenderPass(), pe = [];
21463
21463
  for (let ne = 0; ne < I.length; ne++) {
21464
21464
  const ye = I[ne], ve = C.getTile(ye), ke = ve.getBucket(D);
21465
21465
  if (!ke) continue;
21466
21466
  const Le = ke.programConfigurations.get(D.id), Ue = y.useProgram("circle", Le), Qe = ke.layoutVertexBuffer, ct = ke.indexBuffer, Ze = y.style.map.terrain && y.style.map.terrain.getTerrainData(ye), qe = { programConfiguration: Le, program: Ue, layoutVertexBuffer: Qe, indexBuffer: ct, uniformValues: cm(y, ye, ve, D), terrainData: Ze };
21467
21467
  if (q) {
21468
21468
  const xt = ke.segments.get();
21469
- for (const Nt of xt) fe.push({ segments: new c.a0([Nt]), sortKey: Nt.sortKey, state: qe });
21470
- } else fe.push({ segments: ke.segments, sortKey: 0, state: qe });
21469
+ for (const Nt of xt) pe.push({ segments: new c.a0([Nt]), sortKey: Nt.sortKey, state: qe });
21470
+ } else pe.push({ segments: ke.segments, sortKey: 0, state: qe });
21471
21471
  }
21472
- q && fe.sort((ne, ye) => ne.sortKey - ye.sortKey);
21473
- for (const ne of fe) {
21472
+ q && pe.sort((ne, ye) => ne.sortKey - ye.sortKey);
21473
+ for (const ne of pe) {
21474
21474
  const { programConfiguration: ye, program: ve, layoutVertexBuffer: ke, indexBuffer: Le, uniformValues: Ue, terrainData: Qe } = ne.state;
21475
21475
  ve.draw(J, Q.TRIANGLES, oe, ce, de, Mi.disabled, Ue, Qe, D.id, ke, Le, ne.segments, D.paint, y.transform.zoom, ye);
21476
21476
  }
@@ -21488,14 +21488,14 @@ uniform ${B} ${N} u_${q};
21488
21488
  O.viewport.set([0, 0, y.width, y.height]);
21489
21489
  } else y.renderPass === "offscreen" ? function(B, N, q, J) {
21490
21490
  const Q = B.context, oe = Q.gl, ce = Ni.disabled, de = new cn([oe.ONE, oe.ONE], c.aM.transparent, [!0, !0, !0, !0]);
21491
- (function(fe, ne, ye) {
21492
- const ve = fe.gl;
21493
- fe.activeTexture.set(ve.TEXTURE1), fe.viewport.set([0, 0, ne.width / 4, ne.height / 4]);
21491
+ (function(pe, ne, ye) {
21492
+ const ve = pe.gl;
21493
+ pe.activeTexture.set(ve.TEXTURE1), pe.viewport.set([0, 0, ne.width / 4, ne.height / 4]);
21494
21494
  let ke = ye.heatmapFbos.get(c.aU);
21495
- ke ? (ve.bindTexture(ve.TEXTURE_2D, ke.colorAttachment.get()), fe.bindFramebuffer.set(ke.framebuffer)) : (ke = Ja(fe, ne.width / 4, ne.height / 4), ye.heatmapFbos.set(c.aU, ke));
21495
+ ke ? (ve.bindTexture(ve.TEXTURE_2D, ke.colorAttachment.get()), pe.bindFramebuffer.set(ke.framebuffer)) : (ke = Ja(pe, ne.width / 4, ne.height / 4), ye.heatmapFbos.set(c.aU, ke));
21496
21496
  })(Q, B, q), Q.clear({ color: c.aM.transparent });
21497
- for (let fe = 0; fe < J.length; fe++) {
21498
- const ne = J[fe];
21497
+ for (let pe = 0; pe < J.length; pe++) {
21498
+ const ne = J[pe];
21499
21499
  if (N.hasRenderableParent(ne)) continue;
21500
21500
  const ye = N.getTile(ne), ve = ye.getBucket(q);
21501
21501
  if (!ve) continue;
@@ -21516,14 +21516,14 @@ uniform ${B} ${N} u_${q};
21516
21516
  if (y.renderPass !== "translucent") return;
21517
21517
  const O = D.paint.get("line-opacity"), B = D.paint.get("line-width");
21518
21518
  if (O.constantOr(1) === 0 || B.constantOr(1) === 0) return;
21519
- const N = y.depthModeForSublayer(0, Jt.ReadOnly), q = y.colorModeForRenderPass(), J = D.paint.get("line-dasharray"), Q = D.paint.get("line-pattern"), oe = Q.constantOr(1), ce = D.paint.get("line-gradient"), de = D.getCrossfadeParameters(), fe = oe ? "linePattern" : J ? "lineSDF" : ce ? "lineGradient" : "line", ne = y.context, ye = ne.gl;
21519
+ const N = y.depthModeForSublayer(0, Jt.ReadOnly), q = y.colorModeForRenderPass(), J = D.paint.get("line-dasharray"), Q = D.paint.get("line-pattern"), oe = Q.constantOr(1), ce = D.paint.get("line-gradient"), de = D.getCrossfadeParameters(), pe = oe ? "linePattern" : J ? "lineSDF" : ce ? "lineGradient" : "line", ne = y.context, ye = ne.gl;
21520
21520
  let ve = !0;
21521
21521
  for (const ke of I) {
21522
21522
  const Le = C.getTile(ke);
21523
21523
  if (oe && !Le.patternsLoaded()) continue;
21524
21524
  const Ue = Le.getBucket(D);
21525
21525
  if (!Ue) continue;
21526
- const Qe = Ue.programConfigurations.get(D.id), ct = y.context.program.get(), Ze = y.useProgram(fe, Qe), qe = ve || Ze.program !== ct, xt = y.style.map.terrain && y.style.map.terrain.getTerrainData(ke), Nt = Q.constantOr(null);
21526
+ const Qe = Ue.programConfigurations.get(D.id), ct = y.context.program.get(), Ze = y.useProgram(pe, Qe), qe = ve || Ze.program !== ct, xt = y.style.map.terrain && y.style.map.terrain.getTerrainData(ke), Nt = Q.constantOr(null);
21527
21527
  if (Nt && Le.imageAtlas) {
21528
21528
  const Ft = Le.imageAtlas, ji = Ft.patternPositions[Nt.to.toString()], Zt = Ft.patternPositions[Nt.from.toString()];
21529
21529
  ji && Zt && Qe.setConstantPatternPositions(ji, Zt);
@@ -21591,15 +21591,15 @@ uniform ${B} ${N} u_${q};
21591
21591
  (function(y, C, D, I) {
21592
21592
  if (y.renderPass !== "translucent" || D.paint.get("raster-opacity") === 0 || !I.length) return;
21593
21593
  const O = y.context, B = O.gl, N = C.getSource(), q = y.useProgram("raster"), J = y.colorModeForRenderPass(), [Q, oe] = N instanceof _s ? [{}, I] : y.stencilConfigForOverlap(I), ce = oe[oe.length - 1].overscaledZ, de = !y.options.moving;
21594
- for (const fe of oe) {
21595
- const ne = y.depthModeForSublayer(fe.overscaledZ - ce, D.paint.get("raster-opacity") === 1 ? Jt.ReadWrite : Jt.ReadOnly, B.LESS), ye = C.getTile(fe);
21594
+ for (const pe of oe) {
21595
+ const ne = y.depthModeForSublayer(pe.overscaledZ - ce, D.paint.get("raster-opacity") === 1 ? Jt.ReadWrite : Jt.ReadOnly, B.LESS), ye = C.getTile(pe);
21596
21596
  ye.registerFadeDuration(D.paint.get("raster-fade-duration"));
21597
- const ve = C.findLoadedParent(fe, 0), ke = C.findLoadedSibling(fe), Le = Oh(ye, ve || ke || null, C, D, y.transform, y.style.map.terrain);
21597
+ const ve = C.findLoadedParent(pe, 0), ke = C.findLoadedSibling(pe), Le = Oh(ye, ve || ke || null, C, D, y.transform, y.style.map.terrain);
21598
21598
  let Ue, Qe;
21599
21599
  const ct = D.paint.get("raster-resampling") === "nearest" ? B.NEAREST : B.LINEAR;
21600
21600
  O.activeTexture.set(B.TEXTURE0), ye.texture.bind(ct, B.CLAMP_TO_EDGE, B.LINEAR_MIPMAP_NEAREST), O.activeTexture.set(B.TEXTURE1), ve ? (ve.texture.bind(ct, B.CLAMP_TO_EDGE, B.LINEAR_MIPMAP_NEAREST), Ue = Math.pow(2, ve.tileID.overscaledZ - ye.tileID.overscaledZ), Qe = [ye.tileID.canonical.x * Ue % 1, ye.tileID.canonical.y * Ue % 1]) : ye.texture.bind(ct, B.CLAMP_TO_EDGE, B.LINEAR_MIPMAP_NEAREST), ye.texture.useMipmap && O.extTextureFilterAnisotropic && y.transform.pitch > 20 && B.texParameterf(B.TEXTURE_2D, O.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, O.extTextureFilterAnisotropicMax);
21601
- const Ze = y.style.map.terrain && y.style.map.terrain.getTerrainData(fe), qe = Ze ? fe : null, xt = qe ? qe.posMatrix : y.transform.calculatePosMatrix(fe.toUnwrapped(), de), Nt = dm(xt, Qe || [0, 0], Ue || 1, Le, D);
21602
- N instanceof _s ? q.draw(O, B.TRIANGLES, ne, Ni.disabled, J, Mi.disabled, Nt, Ze, D.id, N.boundsBuffer, y.quadTriangleIndexBuffer, N.boundsSegments) : q.draw(O, B.TRIANGLES, ne, Q[fe.overscaledZ], J, Mi.disabled, Nt, Ze, D.id, y.rasterBoundsBuffer, y.quadTriangleIndexBuffer, y.rasterBoundsSegments);
21601
+ const Ze = y.style.map.terrain && y.style.map.terrain.getTerrainData(pe), qe = Ze ? pe : null, xt = qe ? qe.posMatrix : y.transform.calculatePosMatrix(pe.toUnwrapped(), de), Nt = dm(xt, Qe || [0, 0], Ue || 1, Le, D);
21602
+ N instanceof _s ? q.draw(O, B.TRIANGLES, ne, Ni.disabled, J, Mi.disabled, Nt, Ze, D.id, N.boundsBuffer, y.quadTriangleIndexBuffer, N.boundsSegments) : q.draw(O, B.TRIANGLES, ne, Q[pe.overscaledZ], J, Mi.disabled, Nt, Ze, D.id, y.rasterBoundsBuffer, y.quadTriangleIndexBuffer, y.rasterBoundsSegments);
21603
21603
  }
21604
21604
  })(r, d, p, m);
21605
21605
  break;
@@ -21611,12 +21611,12 @@ uniform ${B} ${N} u_${q};
21611
21611
  if (y.isPatternMissing(oe)) return;
21612
21612
  const ce = !oe && O.a === 1 && B === 1 && y.opaquePassEnabledForLayer() ? "opaque" : "translucent";
21613
21613
  if (y.renderPass !== ce) return;
21614
- const de = Ni.disabled, fe = y.depthModeForSublayer(0, ce === "opaque" ? Jt.ReadWrite : Jt.ReadOnly), ne = y.colorModeForRenderPass(), ye = y.useProgram(oe ? "backgroundPattern" : "background"), ve = I || J.coveringTiles({ tileSize: Q, terrain: y.style.map.terrain });
21614
+ const de = Ni.disabled, pe = y.depthModeForSublayer(0, ce === "opaque" ? Jt.ReadWrite : Jt.ReadOnly), ne = y.colorModeForRenderPass(), ye = y.useProgram(oe ? "backgroundPattern" : "background"), ve = I || J.coveringTiles({ tileSize: Q, terrain: y.style.map.terrain });
21615
21615
  oe && (N.activeTexture.set(q.TEXTURE0), y.imageManager.bind(y.context));
21616
21616
  const ke = D.getCrossfadeParameters();
21617
21617
  for (const Le of ve) {
21618
21618
  const Ue = I ? Le.posMatrix : y.transform.calculatePosMatrix(Le.toUnwrapped()), Qe = oe ? Su(Ue, B, y, oe, { tileID: Le, tileSize: Q }, ke) : Yl(Ue, B, O), ct = y.style.map.terrain && y.style.map.terrain.getTerrainData(Le);
21619
- ye.draw(N, q.TRIANGLES, fe, de, ne, Mi.disabled, Qe, ct, D.id, y.tileExtentBuffer, y.quadTriangleIndexBuffer, y.tileExtentSegments);
21619
+ ye.draw(N, q.TRIANGLES, pe, de, ne, Mi.disabled, Qe, ct, D.id, y.tileExtentBuffer, y.quadTriangleIndexBuffer, y.tileExtentSegments);
21620
21620
  }
21621
21621
  })(r, 0, p, m);
21622
21622
  break;
@@ -21694,8 +21694,8 @@ uniform ${B} ${N} u_${q};
21694
21694
  var Q = J[0], oe = J[1], ce = J[2], de = Q * Q + oe * oe + ce * ce;
21695
21695
  return de > 0 && (de = 1 / Math.sqrt(de)), q[0] = J[0] * de, q[1] = J[1] * de, q[2] = J[2] * de, q;
21696
21696
  }([], function(q, J, Q) {
21697
- var oe = J[0], ce = J[1], de = J[2], fe = Q[0], ne = Q[1], ye = Q[2];
21698
- return q[0] = ce * ye - de * ne, q[1] = de * fe - oe * ye, q[2] = oe * ne - ce * fe, q;
21697
+ var oe = J[0], ce = J[1], de = J[2], pe = Q[0], ne = Q[1], ye = Q[2];
21698
+ return q[0] = ce * ye - de * ne, q[1] = de * pe - oe * ye, q[2] = oe * ne - ce * pe, q;
21699
21699
  }([], Re([], y[D[0]], y[D[1]]), Re([], y[D[2]], y[D[1]]))), O = -((B = I)[0] * (N = y[D[1]])[0] + B[1] * N[1] + B[2] * N[2]);
21700
21700
  var B, N;
21701
21701
  return I.concat(O);
@@ -21898,7 +21898,7 @@ uniform ${B} ${N} u_${q};
21898
21898
  const C = this.pointCoordinate(this.getCameraPoint()), D = c.Z.fromLngLat(this.center), I = Math.pow(2, m), O = [I * C.x, I * C.y, 0], B = [I * D.x, I * D.y, 0], N = Qo.fromInvProjectionMatrix(this.invModelViewProjectionMatrix, this.worldSize, m);
21899
21899
  let q = r.minzoom || 0;
21900
21900
  !r.terrain && this.pitch <= 60 && this._edgeInsets.top < 0.1 && (q = m);
21901
- const J = r.terrain ? 2 / Math.min(this.tileSize, r.tileSize) * this.tileSize : 3, Q = (ne) => ({ aabb: new ea([ne * I, 0, 0], [(ne + 1) * I, I, 0]), zoom: 0, x: 0, y: 0, wrap: ne, fullyVisible: !1 }), oe = [], ce = [], de = m, fe = r.reparseOverscaled ? y : m;
21901
+ const J = r.terrain ? 2 / Math.min(this.tileSize, r.tileSize) * this.tileSize : 3, Q = (ne) => ({ aabb: new ea([ne * I, 0, 0], [(ne + 1) * I, I, 0]), zoom: 0, x: 0, y: 0, wrap: ne, fullyVisible: !1 }), oe = [], ce = [], de = m, pe = r.reparseOverscaled ? y : m;
21902
21902
  if (this._renderWorldCopies) for (let ne = 1; ne <= 3; ne++) oe.push(Q(-ne)), oe.push(Q(ne));
21903
21903
  for (oe.push(Q(0)); oe.length > 0; ) {
21904
21904
  const ne = oe.pop(), ye = ne.x, ve = ne.y;
@@ -21911,7 +21911,7 @@ uniform ${B} ${N} u_${q};
21911
21911
  const Le = r.terrain ? O : B, Ue = ne.aabb.distanceX(Le), Qe = ne.aabb.distanceY(Le), ct = Math.max(Math.abs(Ue), Math.abs(Qe));
21912
21912
  if (ne.zoom === de || ct > J + (1 << de - ne.zoom) - 2 && ne.zoom >= q) {
21913
21913
  const Ze = de - ne.zoom, qe = O[0] - 0.5 - (ye << Ze), xt = O[1] - 0.5 - (ve << Ze);
21914
- ce.push({ tileID: new c.S(ne.zoom === de ? fe : ne.zoom, ne.wrap, ne.zoom, ye, ve), distanceSq: at([B[0] - 0.5 - ye, B[1] - 0.5 - ve]), tileDistanceToCamera: Math.sqrt(qe * qe + xt * xt) });
21914
+ ce.push({ tileID: new c.S(ne.zoom === de ? pe : ne.zoom, ne.wrap, ne.zoom, ye, ve), distanceSq: at([B[0] - 0.5 - ye, B[1] - 0.5 - ve]), tileDistanceToCamera: Math.sqrt(qe * qe + xt * xt) });
21915
21915
  } else for (let Ze = 0; Ze < 4; Ze++) {
21916
21916
  const qe = (ye << 1) + Ze % 2, xt = (ve << 1) + (Ze >> 1), Nt = ne.zoom + 1;
21917
21917
  let Ke = ne.aabb.quadrant(Ze);
@@ -22035,10 +22035,10 @@ uniform ${B} ${N} u_${q};
22035
22035
  m && (I = c.b3(c.O(m[0]) * y, 0, y), O = c.b3(c.O(m[1]) * y, 0, y), O < I && (O += y), O - I < q && (N = q / (O - I)));
22036
22036
  const { x: Q, y: oe } = this.project.call({ worldSize: y }, r);
22037
22037
  let ce, de;
22038
- const fe = Math.max(N || 0, B || 0);
22039
- if (fe) {
22038
+ const pe = Math.max(N || 0, B || 0);
22039
+ if (pe) {
22040
22040
  const ne = new c.P(N ? (O + I) / 2 : Q, B ? (D + C) / 2 : oe);
22041
- return p.center = this.unproject.call({ worldSize: y }, ne).wrap(), p.zoom += this.scaleZoom(fe), p;
22041
+ return p.center = this.unproject.call({ worldSize: y }, ne).wrap(), p.zoom += this.scaleZoom(pe), p;
22042
22042
  }
22043
22043
  if (this.latRange) {
22044
22044
  const ne = J / 2;
@@ -22071,7 +22071,7 @@ uniform ${B} ${N} u_${q};
22071
22071
  c.K(m, m, [this.width / 2, -this.height / 2, 1]), c.J(m, m, [1, -1, 0]), this.labelPlaneMatrix = m, m = c.an(new Float64Array(16)), c.K(m, m, [1, -1, 1]), c.J(m, m, [-1, -1, 0]), c.K(m, m, [2 / this.width, 2 / this.height, 1]), this.glCoordMatrix = m;
22072
22072
  const y = this.cameraToCenterDistance + this._elevation * this._pixelPerMeter / Math.cos(this._pitch), C = Math.min(this.elevation, this.minElevationForCurrentTile), D = y - C * this._pixelPerMeter / Math.cos(this._pitch), I = C < 0 ? D : y, O = Math.PI / 2 + this._pitch, B = this._fov * (0.5 + r.y / this.height), N = Math.sin(B) * I / Math.sin(c.ac(Math.PI - O - B, 0.01, Math.PI - 0.01)), q = this.getHorizon(), J = 2 * Math.atan(q / this.cameraToCenterDistance) * (0.5 + r.y / (2 * q)), Q = Math.sin(J) * I / Math.sin(c.ac(Math.PI - O - J, 0.01, Math.PI - 0.01)), oe = Math.min(N, Q);
22073
22073
  this.farZ = 1.01 * (Math.cos(Math.PI / 2 - this._pitch) * oe + I), this.nearZ = this.height / 50, m = new Float64Array(16), c.b6(m, this._fov, this.width / this.height, this.nearZ, this.farZ), m[8] = 2 * -r.x / this.width, m[9] = 2 * r.y / this.height, this.projectionMatrix = c.ae(m), c.K(m, m, [1, -1, 1]), c.J(m, m, [0, 0, -this.cameraToCenterDistance]), c.b7(m, m, this._pitch), c.ad(m, m, this.angle), c.J(m, m, [-d, -p, 0]), this.mercatorMatrix = c.K([], m, [this.worldSize, this.worldSize, this.worldSize]), c.K(m, m, [1, 1, this._pixelPerMeter]), this.pixelMatrix = c.L(new Float64Array(16), this.labelPlaneMatrix, m), c.J(m, m, [0, 0, -this.elevation]), this.modelViewProjectionMatrix = m, this.invModelViewProjectionMatrix = c.as([], m), this.fogMatrix = new Float64Array(16), c.b6(this.fogMatrix, this._fov, this.width / this.height, y, this.farZ), this.fogMatrix[8] = 2 * -r.x / this.width, this.fogMatrix[9] = 2 * r.y / this.height, c.K(this.fogMatrix, this.fogMatrix, [1, -1, 1]), c.J(this.fogMatrix, this.fogMatrix, [0, 0, -this.cameraToCenterDistance]), c.b7(this.fogMatrix, this.fogMatrix, this._pitch), c.ad(this.fogMatrix, this.fogMatrix, this.angle), c.J(this.fogMatrix, this.fogMatrix, [-d, -p, 0]), c.K(this.fogMatrix, this.fogMatrix, [1, 1, this._pixelPerMeter]), c.J(this.fogMatrix, this.fogMatrix, [0, 0, -this.elevation]), this.pixelMatrix3D = c.L(new Float64Array(16), this.labelPlaneMatrix, m);
22074
- const ce = this.width % 2 / 2, de = this.height % 2 / 2, fe = Math.cos(this.angle), ne = Math.sin(this.angle), ye = d - Math.round(d) + fe * ce + ne * de, ve = p - Math.round(p) + fe * de + ne * ce, ke = new Float64Array(m);
22074
+ const ce = this.width % 2 / 2, de = this.height % 2 / 2, pe = Math.cos(this.angle), ne = Math.sin(this.angle), ye = d - Math.round(d) + pe * ce + ne * de, ve = p - Math.round(p) + pe * de + ne * ce, ke = new Float64Array(m);
22075
22075
  if (c.J(ke, ke, [ye > 0.5 ? ye - 1 : ye, ve > 0.5 ? ve - 1 : ve, 0]), this.alignedModelViewProjectionMatrix = ke, m = c.as(new Float64Array(16), this.pixelMatrix), !m) throw new Error("failed to invert matrix");
22076
22076
  this.pixelMatrixInverse = m, this._posMatrixCache = {}, this._alignedPosMatrixCache = {}, this._fogMatrixCache = {};
22077
22077
  }
@@ -23089,8 +23089,8 @@ uniform ${B} ${N} u_${q};
23089
23089
  const C = m.type === "renderFrame" ? void 0 : m, D = { needsRenderFrame: !1 }, I = {}, O = {}, B = m.touches, N = B ? this._getMapTouches(B) : void 0, q = N ? T.touchPos(this._map.getCanvas(), N) : T.mousePos(this._map.getCanvas(), m);
23090
23090
  for (const { handlerName: oe, handler: ce, allowed: de } of this._handlers) {
23091
23091
  if (!ce.isEnabled()) continue;
23092
- let fe;
23093
- this._blockedByActive(O, de, oe) ? ce.reset() : ce[y || m.type] && (fe = ce[y || m.type](m, q, N), this.mergeHandlerResult(D, I, fe, oe, C), fe && fe.needsRenderFrame && this._triggerRenderFrame()), (fe || ce.isActive()) && (O[oe] = ce);
23092
+ let pe;
23093
+ this._blockedByActive(O, de, oe) ? ce.reset() : ce[y || m.type] && (pe = ce[y || m.type](m, q, N), this.mergeHandlerResult(D, I, pe, oe, C), pe && pe.needsRenderFrame && this._triggerRenderFrame()), (pe || ce.isActive()) && (O[oe] = ce);
23094
23094
  }
23095
23095
  const J = {};
23096
23096
  for (const oe in this._previousActiveHandlers) O[oe] || (J[oe] = C);
@@ -23120,9 +23120,9 @@ uniform ${B} ${N} u_${q};
23120
23120
  this._add("touchPitch", O), r.interactive && r.touchPitch && d.touchPitch.enable(r.touchPitch);
23121
23121
  const B = Hu(r), N = Wu(r);
23122
23122
  d.dragRotate = new Wh(r, B, N), this._add("mouseRotate", B, ["mousePitch"]), this._add("mousePitch", N, ["mouseRotate"]), r.interactive && r.dragRotate && d.dragRotate.enable();
23123
- const q = (({ enable: fe, clickTolerance: ne }) => {
23123
+ const q = (({ enable: pe, clickTolerance: ne }) => {
23124
23124
  const ye = new uc({ checkCorrectEvent: (ve) => T.mouseButton(ve) === 0 && !ve.ctrlKey });
23125
- return new xs({ clickTolerance: ne, move: (ve, ke) => ({ around: ke, panDelta: ke.sub(ve) }), activateOnStart: !0, moveStateManager: ye, enable: fe, assignEvents: dc });
23125
+ return new xs({ clickTolerance: ne, move: (ve, ke) => ({ around: ke, panDelta: ke.sub(ve) }), activateOnStart: !0, moveStateManager: ye, enable: pe, assignEvents: dc });
23126
23126
  })(r), J = new po(r, d);
23127
23127
  d.dragPan = new Hh(p, q, J), this._add("mousePan", q), this._add("touchPan", J, ["touchZoom", "touchRotate"]), r.interactive && r.dragPan && d.dragPan.enable(r.dragPan);
23128
23128
  const Q = new Yu(), oe = new Gu();
@@ -23304,7 +23304,7 @@ uniform ${B} ${N} u_${q};
23304
23304
  m.padding = { top: Ze, bottom: Ze, right: Ze, left: Ze };
23305
23305
  }
23306
23306
  m.padding = c.e(y, m.padding);
23307
- const C = this.transform, D = C.padding, I = new Ee(r, d), O = C.project(I.getNorthWest()), B = C.project(I.getNorthEast()), N = C.project(I.getSouthEast()), q = C.project(I.getSouthWest()), J = c.ba(-p), Q = O.rotate(J), oe = B.rotate(J), ce = N.rotate(J), de = q.rotate(J), fe = new c.P(Math.max(Q.x, oe.x, de.x, ce.x), Math.max(Q.y, oe.y, de.y, ce.y)), ne = new c.P(Math.min(Q.x, oe.x, de.x, ce.x), Math.min(Q.y, oe.y, de.y, ce.y)), ye = fe.sub(ne), ve = (C.width - (D.left + D.right + m.padding.left + m.padding.right)) / ye.x, ke = (C.height - (D.top + D.bottom + m.padding.top + m.padding.bottom)) / ye.y;
23307
+ const C = this.transform, D = C.padding, I = new Ee(r, d), O = C.project(I.getNorthWest()), B = C.project(I.getNorthEast()), N = C.project(I.getSouthEast()), q = C.project(I.getSouthWest()), J = c.ba(-p), Q = O.rotate(J), oe = B.rotate(J), ce = N.rotate(J), de = q.rotate(J), pe = new c.P(Math.max(Q.x, oe.x, de.x, ce.x), Math.max(Q.y, oe.y, de.y, ce.y)), ne = new c.P(Math.min(Q.x, oe.x, de.x, ce.x), Math.min(Q.y, oe.y, de.y, ce.y)), ye = pe.sub(ne), ve = (C.width - (D.left + D.right + m.padding.left + m.padding.right)) / ye.x, ke = (C.height - (D.top + D.bottom + m.padding.top + m.padding.bottom)) / ye.y;
23308
23308
  if (ke < 0 || ve < 0) return void c.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");
23309
23309
  const Le = Math.min(C.scaleZoom(C.scale * Math.min(ve, ke)), m.maxZoom), Ue = c.P.convert(m.offset), Qe = new c.P((m.padding.left - m.padding.right) / 2, (m.padding.top - m.padding.bottom) / 2).rotate(c.ba(p)), ct = Ue.add(Qe).mult(C.scale / C.zoomScale(Le));
23310
23310
  return { center: C.unproject(O.add(N).div(2).sub(ct)), zoom: Le, bearing: p };
@@ -23338,14 +23338,14 @@ uniform ${B} ${N} u_${q};
23338
23338
  let J = m.centerPoint.add(q);
23339
23339
  const Q = m.pointLocation(J), { center: oe, zoom: ce } = m.getConstrained(c.N.convert(r.center || Q), (p = r.zoom) !== null && p !== void 0 ? p : y);
23340
23340
  this._normalizeCenter(oe, m);
23341
- const de = m.project(Q), fe = m.project(oe).sub(de), ne = m.zoomScale(ce - y);
23341
+ const de = m.project(Q), pe = m.project(oe).sub(de), ne = m.zoomScale(ce - y);
23342
23342
  let ye, ve;
23343
23343
  r.around && (ye = c.N.convert(r.around), ve = m.locationPoint(ye));
23344
23344
  const ke = { moving: this._moving, zooming: this._zooming, rotating: this._rotating, pitching: this._pitching };
23345
23345
  return this._zooming = this._zooming || ce !== y, this._rotating = this._rotating || C !== O, this._pitching = this._pitching || B !== D, this._padding = !m.isPaddingEqual(N), this._easeId = r.easeId, this._prepareEase(d, r.noMoveStart, ke), this.terrain && this._prepareElevation(oe), this._ease((Le) => {
23346
23346
  if (this._zooming && (m.zoom = c.y.number(y, ce, Le)), this._rotating && (m.bearing = c.y.number(C, O, Le)), this._pitching && (m.pitch = c.y.number(D, B, Le)), this._padding && (m.interpolatePadding(I, N, Le), J = m.centerPoint.add(q)), this.terrain && !r.freezeElevation && this._updateElevation(Le), ye) m.setLocationAtPoint(ye, ve);
23347
23347
  else {
23348
- const Ue = m.zoomScale(m.zoom - y), Qe = ce > y ? Math.min(2, ne) : Math.max(0.5, ne), ct = Math.pow(Qe, 1 - Le), Ze = m.unproject(de.add(fe.mult(Le * ct)).mult(Ue));
23348
+ const Ue = m.zoomScale(m.zoom - y), Qe = ce > y ? Math.min(2, ne) : Math.max(0.5, ne), ct = Math.pow(Qe, 1 - Le), Ze = m.unproject(de.add(pe.mult(Le * ct)).mult(Ue));
23349
23349
  m.setLocationAtPoint(m.renderWorldCopies ? Ze.wrap() : Ze, J);
23350
23350
  }
23351
23351
  this._applyUpdatedTransform(m), this._fireMoveEvents(d);
@@ -23412,7 +23412,7 @@ uniform ${B} ${N} u_${q};
23412
23412
  let J = m.centerPoint.add(q);
23413
23413
  const Q = m.pointLocation(J), { center: oe, zoom: ce } = m.getConstrained(c.N.convert(r.center || Q), (p = r.zoom) !== null && p !== void 0 ? p : y);
23414
23414
  this._normalizeCenter(oe, m);
23415
- const de = m.zoomScale(ce - y), fe = m.project(Q), ne = m.project(oe).sub(fe);
23415
+ const de = m.zoomScale(ce - y), pe = m.project(Q), ne = m.project(oe).sub(pe);
23416
23416
  let ye = r.curve;
23417
23417
  const ve = Math.max(m.width, m.height), ke = ve / de, Le = ne.mag();
23418
23418
  if ("minZoom" in r) {
@@ -23445,7 +23445,7 @@ uniform ${B} ${N} u_${q};
23445
23445
  return r.duration = "duration" in r ? +r.duration : 1e3 * Ke / ("screenSpeed" in r ? +r.screenSpeed / ye : +r.speed), r.maxDuration && r.duration > r.maxDuration && (r.duration = 0), this._zooming = !0, this._rotating = C !== O, this._pitching = B !== D, this._padding = !m.isPaddingEqual(N), this._prepareEase(d, !1), this.terrain && this._prepareElevation(oe), this._ease((st) => {
23446
23446
  const Ft = st * Ke, ji = 1 / xt(Ft);
23447
23447
  m.zoom = st === 1 ? ce : y + m.scaleZoom(ji), this._rotating && (m.bearing = c.y.number(C, O, st)), this._pitching && (m.pitch = c.y.number(D, B, st)), this._padding && (m.interpolatePadding(I, N, st), J = m.centerPoint.add(q)), this.terrain && !r.freezeElevation && this._updateElevation(st);
23448
- const Zt = st === 1 ? oe : m.unproject(fe.add(ne.mult(Nt(Ft))).mult(ji));
23448
+ const Zt = st === 1 ? oe : m.unproject(pe.add(ne.mult(Nt(Ft))).mult(ji));
23449
23449
  m.setLocationAtPoint(m.renderWorldCopies ? Zt.wrap() : Zt, J), this._applyUpdatedTransform(m), this._fireMoveEvents(d);
23450
23450
  }, () => {
23451
23451
  this.terrain && r.freezeElevation && this._finalizeElevation(), this._afterEase(d);
@@ -23646,8 +23646,8 @@ uniform ${B} ${N} u_${q};
23646
23646
  const C = this.getTerrainData(r), D = (y = C.tile) === null || y === void 0 ? void 0 : y.dem;
23647
23647
  if (!D) return 0;
23648
23648
  const I = function(Q, oe, ce) {
23649
- var de = oe[0], fe = oe[1];
23650
- return Q[0] = ce[0] * de + ce[4] * fe + ce[12], Q[1] = ce[1] * de + ce[5] * fe + ce[13], Q;
23649
+ var de = oe[0], pe = oe[1];
23650
+ return Q[0] = ce[0] * de + ce[4] * pe + ce[12], Q[1] = ce[1] * de + ce[5] * pe + ce[13], Q;
23651
23651
  }([], [d / m * c.X, p / m * c.X], C.u_terrain_matrix), O = [I[0] * D.dim, I[1] * D.dim], B = Math.floor(O[0]), N = Math.floor(O[1]), q = O[0] - B, J = O[1] - N;
23652
23652
  return D.get(B, N) * (1 - q) * (1 - J) + D.get(B + 1, N) * q * (1 - J) + D.get(B, N + 1) * (1 - q) * J + D.get(B + 1, N + 1) * q * J;
23653
23653
  }
@@ -23951,8 +23951,8 @@ uniform ${B} ${N} u_${q};
23951
23951
  D.setAttributeNS(null, "transform", "translate(3.0, 29.0)"), D.setAttributeNS(null, "fill", "#000000");
23952
23952
  const I = [{ rx: "10.5", ry: "5.25002273" }, { rx: "10.5", ry: "5.25002273" }, { rx: "9.5", ry: "4.77275007" }, { rx: "8.5", ry: "4.29549936" }, { rx: "7.5", ry: "3.81822308" }, { rx: "6.5", ry: "3.34094679" }, { rx: "5.5", ry: "2.86367051" }, { rx: "4.5", ry: "2.38636864" }];
23953
23953
  for (const de of I) {
23954
- const fe = T.createNS("http://www.w3.org/2000/svg", "ellipse");
23955
- fe.setAttributeNS(null, "opacity", "0.04"), fe.setAttributeNS(null, "cx", "10.5"), fe.setAttributeNS(null, "cy", "5.80029008"), fe.setAttributeNS(null, "rx", de.rx), fe.setAttributeNS(null, "ry", de.ry), D.appendChild(fe);
23954
+ const pe = T.createNS("http://www.w3.org/2000/svg", "ellipse");
23955
+ pe.setAttributeNS(null, "opacity", "0.04"), pe.setAttributeNS(null, "cx", "10.5"), pe.setAttributeNS(null, "cy", "5.80029008"), pe.setAttributeNS(null, "rx", de.rx), pe.setAttributeNS(null, "ry", de.ry), D.appendChild(pe);
23956
23956
  }
23957
23957
  const O = T.createNS("http://www.w3.org/2000/svg", "g");
23958
23958
  O.setAttributeNS(null, "fill", this._color);
@@ -26501,11 +26501,11 @@ let zg = null, Og = null, ru = class _2 extends z_ {
26501
26501
  const E = parseFloat(x.paddingTop) + parseFloat(x.paddingBottom), T = w - (parseFloat(x.paddingLeft) + parseFloat(x.paddingRight)), M = S - E;
26502
26502
  this.containerRect = { width: w, height: S, innerWidth: T, innerHeight: M };
26503
26503
  const L = parseFloat(u.dataset.width || "") || ((ft) => {
26504
- let pe = 0;
26505
- return pe = ft instanceof HTMLImageElement ? ft.naturalWidth : ft instanceof SVGElement ? ft.width.baseVal.value : Math.max(ft.offsetWidth, ft.scrollWidth), pe || 0;
26504
+ let fe = 0;
26505
+ return fe = ft instanceof HTMLImageElement ? ft.naturalWidth : ft instanceof SVGElement ? ft.width.baseVal.value : Math.max(ft.offsetWidth, ft.scrollWidth), fe || 0;
26506
26506
  })(u), j = parseFloat(u.dataset.height || "") || ((ft) => {
26507
- let pe = 0;
26508
- return pe = ft instanceof HTMLImageElement ? ft.naturalHeight : ft instanceof SVGElement ? ft.height.baseVal.value : Math.max(ft.offsetHeight, ft.scrollHeight), pe || 0;
26507
+ let fe = 0;
26508
+ return fe = ft instanceof HTMLImageElement ? ft.naturalHeight : ft instanceof SVGElement ? ft.height.baseVal.value : Math.max(ft.offsetHeight, ft.scrollHeight), fe || 0;
26509
26509
  })(u);
26510
26510
  let V = this.option("width", L) || ds, G = this.option("height", j) || ds;
26511
26511
  const te = V === ds, ie = G === ds;
@@ -26516,9 +26516,9 @@ let zg = null, Og = null, ru = class _2 extends z_ {
26516
26516
  xe.style.setProperty("transform", "none", "important"), h && (xe.style.width = "", xe.style.height = ""), xe.offsetHeight;
26517
26517
  const Ne = u.getBoundingClientRect();
26518
26518
  let Re = Ne.width * n, at = Ne.height * n, $e = Re, lt = at;
26519
- Re = Math.min(Re, V), at = Math.min(at, G), h ? { width: Re, height: at } = ((ft, pe, ri, Mt) => {
26520
- const ei = ri / ft, bi = Mt / pe, Fi = Math.min(ei, bi);
26521
- return { width: ft *= Fi, height: pe *= Fi };
26519
+ Re = Math.min(Re, V), at = Math.min(at, G), h ? { width: Re, height: at } = ((ft, fe, ri, Mt) => {
26520
+ const ei = ri / ft, bi = Mt / fe, Fi = Math.min(ei, bi);
26521
+ return { width: ft *= Fi, height: fe *= Fi };
26522
26522
  })(V, G, Re, at) : (Re = Math.min(Re, V), at = Math.min(at, G));
26523
26523
  let ht = 0.5 * (lt - at), tt = 0.5 * ($e - Re);
26524
26524
  this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: Ne.top - c.top + ht, bottom: c.bottom - Ne.bottom + ht, left: Ne.left - c.left + tt, right: c.right - Ne.right + tt, fitWidth: Re, fitHeight: at, width: Re, height: at, fullWidth: V, fullHeight: G }), xe.style.cssText = Ce, h && (xe.style.width = `${Re}px`, xe.style.height = `${at}px`), this.setTransform(), e !== !0 && this.emit("refresh"), this.ignoreBounds || (mt(this.targetScale) < mt(this.minScale) ? this.zoomTo(this.minScale, { friction: 0 }) : this.targetScale > this.maxScale ? this.zoomTo(this.maxScale, { friction: 0 }) : this.state === Li.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
@@ -29567,8 +29567,8 @@ const i5 = /* @__PURE__ */ gt(QL, [["render", t5]]), n5 = { class: "cursor-point
29567
29567
  console.error(tt);
29568
29568
  }
29569
29569
  }, S = async ($e) => {
29570
- var tt, ft, pe, ri;
29571
- if (((tt = o.value) == null ? void 0 : tt.length) + ((pe = Array.from((ft = $e.target) == null ? void 0 : ft.files)) == null ? void 0 : pe.length) > n.limit) {
29570
+ var tt, ft, fe, ri;
29571
+ if (((tt = o.value) == null ? void 0 : tt.length) + ((fe = Array.from((ft = $e.target) == null ? void 0 : ft.files)) == null ? void 0 : fe.length) > n.limit) {
29572
29572
  i({
29573
29573
  type: "error",
29574
29574
  title: "Помилка!",
@@ -29625,8 +29625,8 @@ const i5 = /* @__PURE__ */ gt(QL, [["render", t5]]), n5 = { class: "cursor-point
29625
29625
  var lt, ht, tt;
29626
29626
  await L(), u.value = !1, await w(), (lt = o.value) != null && lt[0] && !((tt = (ht = o.value) == null ? void 0 : ht[0]) != null && tt.ismain) && setTimeout(
29627
29627
  () => {
29628
- var ft, pe, ri, Mt;
29629
- return T((pe = (ft = o.value) == null ? void 0 : ft[0]) == null ? void 0 : pe.entity_id, (Mt = (ri = o.value) == null ? void 0 : ri[0]) == null ? void 0 : Mt.file_id);
29628
+ var ft, fe, ri, Mt;
29629
+ return T((fe = (ft = o.value) == null ? void 0 : ft[0]) == null ? void 0 : fe.entity_id, (Mt = (ri = o.value) == null ? void 0 : ri[0]) == null ? void 0 : Mt.file_id);
29630
29630
  }
29631
29631
  );
29632
29632
  },
@@ -29645,8 +29645,8 @@ const i5 = /* @__PURE__ */ gt(QL, [["render", t5]]), n5 = { class: "cursor-point
29645
29645
  }
29646
29646
  }, j = ($e, lt = 2) => {
29647
29647
  if ($e === 0) return "0 Bytes";
29648
- const ht = 1024, tt = lt < 0 ? 0 : lt, ft = ["Bytes", "KB", "MB", "GB", "TB"], pe = Math.floor(Math.log($e) / Math.log(ht));
29649
- return `${parseFloat(($e / ht ** pe).toFixed(tt))} ${ft[pe]}`;
29648
+ const ht = 1024, tt = lt < 0 ? 0 : lt, ft = ["Bytes", "KB", "MB", "GB", "TB"], fe = Math.floor(Math.log($e) / Math.log(ht));
29649
+ return `${parseFloat(($e / ht ** fe).toFixed(tt))} ${ft[fe]}`;
29650
29650
  }, V = ($e) => {
29651
29651
  const lt = {
29652
29652
  day: "numeric",
@@ -29674,8 +29674,8 @@ const i5 = /* @__PURE__ */ gt(QL, [["render", t5]]), n5 = { class: "cursor-point
29674
29674
  if (!tt) return;
29675
29675
  o.value.splice(lt, 1), o.value.splice($e, 0, tt), Ce.value = null, setTimeout(
29676
29676
  () => {
29677
- var ft, pe, ri, Mt;
29678
- return T((pe = (ft = o.value) == null ? void 0 : ft[0]) == null ? void 0 : pe.entity_id, (Mt = (ri = o.value) == null ? void 0 : ri[0]) == null ? void 0 : Mt.file_id);
29677
+ var ft, fe, ri, Mt;
29678
+ return T((fe = (ft = o.value) == null ? void 0 : ft[0]) == null ? void 0 : fe.entity_id, (Mt = (ri = o.value) == null ? void 0 : ri[0]) == null ? void 0 : Mt.file_id);
29679
29679
  }
29680
29680
  );
29681
29681
  }
@@ -29721,10 +29721,10 @@ const i5 = /* @__PURE__ */ gt(QL, [["render", t5]]), n5 = { class: "cursor-point
29721
29721
  (Y(!0), ee(_t, null, Vt(o.value, (tt, ft) => (Y(), ee("div", {
29722
29722
  key: tt.file_path || "dz-" + ft,
29723
29723
  draggable: "true",
29724
- onDragstart: (pe) => Ne(Re(tt)),
29724
+ onDragstart: (fe) => Ne(Re(tt)),
29725
29725
  onDragover: lt[1] || (lt[1] = ka(() => {
29726
29726
  }, ["prevent"])),
29727
- onDrop: (pe) => at(Re(tt)),
29727
+ onDrop: (fe) => at(Re(tt)),
29728
29728
  class: "relative cursor-pointer rounded-b-lg item hover:shadow-lg shrink-0 h-[200px] w-[300px]"
29729
29729
  }, [
29730
29730
  tt != null && tt.ismain ? (Y(), ee("span", p5, "Головне")) : ut("", !0),
@@ -29750,13 +29750,13 @@ const i5 = /* @__PURE__ */ gt(QL, [["render", t5]]), n5 = { class: "cursor-point
29750
29750
  tt != null && tt.ismain ? ut("", !0) : (Y(), ee("div", {
29751
29751
  key: 0,
29752
29752
  class: "text-xs underline",
29753
- onClick: ka((pe) => T(tt == null ? void 0 : tt.entity_id, tt == null ? void 0 : tt.file_id), ["prevent"])
29753
+ onClick: ka((fe) => T(tt == null ? void 0 : tt.entity_id, tt == null ? void 0 : tt.file_id), ["prevent"])
29754
29754
  }, " Зробити головним ", 8, w5))
29755
29755
  ]),
29756
29756
  R("div", null, [
29757
29757
  R("div", {
29758
29758
  class: "flex items-center justify-center gap-2 hover:bg-gray-200 p-[6px] rounded",
29759
- onClick: ka((pe) => E(tt), ["prevent"])
29759
+ onClick: ka((fe) => E(tt), ["prevent"])
29760
29760
  }, [
29761
29761
  Oe(F2, {
29762
29762
  height: "14",
@@ -29765,7 +29765,7 @@ const i5 = /* @__PURE__ */ gt(QL, [["render", t5]]), n5 = { class: "cursor-point
29765
29765
  ], 8, S5),
29766
29766
  R("div", {
29767
29767
  class: "flex items-center gap-2 hover:bg-gray-200 p-[6px] rounded hover:cursor-pointer",
29768
- onClick: ka((pe) => M(tt), ["prevent"])
29768
+ onClick: ka((fe) => M(tt), ["prevent"])
29769
29769
  }, [
29770
29770
  Oe(B2, {
29771
29771
  height: "14",
@@ -31414,7 +31414,7 @@ const bF = /* @__PURE__ */ gt(fF, [["render", vF]]), xF = { class: "h-full" }, w
31414
31414
  return Kr(u, w), Fo(() => {
31415
31415
  w();
31416
31416
  }), (T, M) => {
31417
- var V, G, te, ie, xe, Ce, Ne, Re, at, $e, lt, ht, tt, ft, pe, ri;
31417
+ var V, G, te, ie, xe, Ce, Ne, Re, at, $e, lt, ht, tt, ft, fe, ri;
31418
31418
  const L = je("VsText"), j = je("VsPagination");
31419
31419
  return Y(), ee("div", xF, [
31420
31420
  R("div", wF, [
@@ -31504,7 +31504,7 @@ const bF = /* @__PURE__ */ gt(fF, [["render", vF]]), xF = { class: "h-full" }, w
31504
31504
  ])
31505
31505
  ])
31506
31506
  ], 2),
31507
- ((pe = i.value) == null ? void 0 : pe.filtered) > t.limit ? (Y(), ee("div", IF, [
31507
+ ((fe = i.value) == null ? void 0 : fe.filtered) > t.limit ? (Y(), ee("div", IF, [
31508
31508
  Oe(j, {
31509
31509
  goTo: !1,
31510
31510
  "default-page": o.value,
@@ -43261,7 +43261,7 @@ function E7(t, e, i, n, o, u) {
43261
43261
  class: Gt(["col-span-12 shrink-0", u.columnClass(ie.col)])
43262
43262
  }, [
43263
43263
  (Y(!0), ee(_t, null, Vt(ie.items, (Ce, Ne) => {
43264
- var Re, at, $e, lt, ht, tt, ft, pe, ri, Mt, ei, bi, Fi, zi;
43264
+ var Re, at, $e, lt, ht, tt, ft, fe, ri, Mt, ei, bi, Fi, zi;
43265
43265
  return Y(), ee("div", {
43266
43266
  key: Ne,
43267
43267
  class: Gt([{ "mb-[20px]": ie.items.length > 1 }, "bg-white rounded-xl"])
@@ -43285,7 +43285,7 @@ function E7(t, e, i, n, o, u) {
43285
43285
  key: 2,
43286
43286
  class: Gt(["p-[20px]", { "border-t": Ce == null ? void 0 : Ce.title }])
43287
43287
  }, [
43288
- (pe = (ft = o.objectData) == null ? void 0 : ft.html) != null && pe[Ce == null ? void 0 : Ce.name] ? (Y(), ee("div", {
43288
+ (fe = (ft = o.objectData) == null ? void 0 : ft.html) != null && fe[Ce == null ? void 0 : Ce.name] ? (Y(), ee("div", {
43289
43289
  key: 0,
43290
43290
  innerHTML: (Mt = (ri = o.objectData) == null ? void 0 : ri.html) == null ? void 0 : Mt[Ce == null ? void 0 : Ce.name]
43291
43291
  }, null, 8, e7)) : (Y(), Dt(c, {
@@ -43322,34 +43322,34 @@ function E7(t, e, i, n, o, u) {
43322
43322
  objectData: o.objectData
43323
43323
  }, null, 8, ["slot", "data", "objectData"]))
43324
43324
  ])) : ie.type === "container" ? (Y(), ee("div", r7, [
43325
- (Y(!0), ee(_t, null, Vt(ie.items, (pe, ri) => {
43325
+ (Y(!0), ee(_t, null, Vt(ie.items, (fe, ri) => {
43326
43326
  var Mt, ei, bi, Fi, zi, Ai, Bi, Yi, Ji, an, ln, De, it, rt;
43327
43327
  return Y(), ee("div", {
43328
43328
  key: ri,
43329
43329
  class: Gt([{ "mb-[20px]": ie.items.length > 1 }, "bg-white rounded-xl"])
43330
43330
  }, [
43331
- pe != null && pe.title ? (Y(), ee("h2", s7, Fe((pe == null ? void 0 : pe.title) || "Панель"), 1)) : ut("", !0),
43332
- pe != null && pe.component ? (Y(), ee("div", {
43331
+ fe != null && fe.title ? (Y(), ee("h2", s7, Fe((fe == null ? void 0 : fe.title) || "Панель"), 1)) : ut("", !0),
43332
+ fe != null && fe.component ? (Y(), ee("div", {
43333
43333
  key: 1,
43334
- class: Gt(["p-[20px]", { "border-t": pe == null ? void 0 : pe.title }])
43334
+ class: Gt(["p-[20px]", { "border-t": fe == null ? void 0 : fe.title }])
43335
43335
  }, [
43336
- (Y(), Dt(Zr(pe.component), Pd({
43336
+ (Y(), Dt(Zr(fe.component), Pd({
43337
43337
  geometry: (ei = (Mt = o.objectData) == null ? void 0 : Mt.rows[0]) == null ? void 0 : ei.geom,
43338
- columns: pe == null ? void 0 : pe.columns,
43339
- token: (Fi = (bi = o.objectData) == null ? void 0 : bi.tokens) == null ? void 0 : Fi[pe == null ? void 0 : pe.token],
43338
+ columns: fe == null ? void 0 : fe.columns,
43339
+ token: (Fi = (bi = o.objectData) == null ? void 0 : bi.tokens) == null ? void 0 : Fi[fe == null ? void 0 : fe.token],
43340
43340
  zoom: 16
43341
- }, { ref_for: !0 }, u.getProps(pe), {
43341
+ }, { ref_for: !0 }, u.getProps(fe), {
43342
43342
  data: o.objectData,
43343
43343
  id: (Ai = (zi = t.$route) == null ? void 0 : zi.params) == null ? void 0 : Ai.id
43344
43344
  }), null, 16, ["geometry", "columns", "token", "data", "id"]))
43345
43345
  ], 2)) : ut("", !0),
43346
- pe != null && pe.name ? (Y(), ee("div", o7, [
43347
- (Yi = (Bi = o.objectData) == null ? void 0 : Bi.html) != null && Yi[pe == null ? void 0 : pe.name] ? (Y(), ee("div", {
43346
+ fe != null && fe.name ? (Y(), ee("div", o7, [
43347
+ (Yi = (Bi = o.objectData) == null ? void 0 : Bi.html) != null && Yi[fe == null ? void 0 : fe.name] ? (Y(), ee("div", {
43348
43348
  key: 0,
43349
- innerHTML: (an = (Ji = o.objectData) == null ? void 0 : Ji.html) == null ? void 0 : an[pe == null ? void 0 : pe.name]
43349
+ innerHTML: (an = (Ji = o.objectData) == null ? void 0 : Ji.html) == null ? void 0 : an[fe == null ? void 0 : fe.name]
43350
43350
  }, null, 8, a7)) : (Y(), Dt(c, {
43351
43351
  key: 1,
43352
- slot: (De = (ln = o.objectData) == null ? void 0 : ln.vue) == null ? void 0 : De[pe == null ? void 0 : pe.name],
43352
+ slot: (De = (ln = o.objectData) == null ? void 0 : ln.vue) == null ? void 0 : De[fe == null ? void 0 : fe.name],
43353
43353
  data: (rt = (it = o.objectData) == null ? void 0 : it.rows) == null ? void 0 : rt[0],
43354
43354
  objectData: o.objectData
43355
43355
  }, null, 8, ["slot", "data", "objectData"]))
@@ -43359,59 +43359,59 @@ function E7(t, e, i, n, o, u) {
43359
43359
  ])) : ut("", !0),
43360
43360
  (ie == null ? void 0 : ie.type) === "tabs" ? (Y(), ee(_t, { key: 2 }, [
43361
43361
  R("nav", l7, [
43362
- (Y(!0), ee(_t, null, Vt((lt = ie == null ? void 0 : ie.items) == null ? void 0 : lt.slice(0, ie == null ? void 0 : ie.limit), (pe) => (Y(), ee("button", {
43363
- key: (pe == null ? void 0 : pe.name) || (pe == null ? void 0 : pe.component),
43364
- onClick: (ri) => o.component = (pe == null ? void 0 : pe.component) || (pe == null ? void 0 : pe.name),
43362
+ (Y(!0), ee(_t, null, Vt((lt = ie == null ? void 0 : ie.items) == null ? void 0 : lt.slice(0, ie == null ? void 0 : ie.limit), (fe) => (Y(), ee("button", {
43363
+ key: (fe == null ? void 0 : fe.name) || (fe == null ? void 0 : fe.component),
43364
+ onClick: (ri) => o.component = (fe == null ? void 0 : fe.component) || (fe == null ? void 0 : fe.name),
43365
43365
  class: Gt(["px-2.5 h-[30px] py-1.5 relative inline-flex items-center gap-x-2 text-gray-500 hover:bg-gray-100 focus:bg-gray-100 hover:text-gray-800 text-sm whitespace-nowrap rounded-lg focus:outline-none", {
43366
- "bg-gray-100": o.component === (pe == null ? void 0 : pe.component) || o.component === (pe == null ? void 0 : pe.name),
43367
- "": o.component !== (pe == null ? void 0 : pe.component) && o.component !== (pe == null ? void 0 : pe.name)
43366
+ "bg-gray-100": o.component === (fe == null ? void 0 : fe.component) || o.component === (fe == null ? void 0 : fe.name),
43367
+ "": o.component !== (fe == null ? void 0 : fe.component) && o.component !== (fe == null ? void 0 : fe.name)
43368
43368
  }])
43369
43369
  }, [
43370
- pe != null && pe.info ? (Y(), Dt(x, {
43370
+ fe != null && fe.info ? (Y(), Dt(x, {
43371
43371
  key: 0,
43372
43372
  trigger: "hover",
43373
43373
  placement: "top"
43374
43374
  }, {
43375
43375
  reference: kt(() => [
43376
- Sn(Fe(pe == null ? void 0 : pe.title), 1)
43376
+ Sn(Fe(fe == null ? void 0 : fe.title), 1)
43377
43377
  ]),
43378
43378
  default: kt(() => [
43379
- R("span", u7, Fe(pe == null ? void 0 : pe.info), 1)
43379
+ R("span", u7, Fe(fe == null ? void 0 : fe.info), 1)
43380
43380
  ]),
43381
43381
  _: 2
43382
- }, 1024)) : (Y(), ee("div", d7, Fe(pe == null ? void 0 : pe.title), 1)),
43383
- (pe == null ? void 0 : pe.component) === "vs-widget-comments" && (pe != null && pe.count) ? (Y(), ee("div", h7, Fe(pe == null ? void 0 : pe.count), 1)) : ut("", !0)
43382
+ }, 1024)) : (Y(), ee("div", d7, Fe(fe == null ? void 0 : fe.title), 1)),
43383
+ (fe == null ? void 0 : fe.component) === "vs-widget-comments" && (fe != null && fe.count) && (fe == null ? void 0 : fe.count) > 0 ? (Y(), ee("div", h7, Fe(fe == null ? void 0 : fe.count), 1)) : ut("", !0)
43384
43384
  ], 10, c7))), 128)),
43385
43385
  ie != null && ie.limit && ((tt = (ht = ie == null ? void 0 : ie.items) == null ? void 0 : ht.slice(ie == null ? void 0 : ie.limit)) != null && tt.length) ? (Y(), ee("div", f7, [
43386
43386
  Oe(w, {
43387
43387
  options: (ft = ie == null ? void 0 : ie.items) == null ? void 0 : ft.slice(ie == null ? void 0 : ie.limit),
43388
43388
  "active-tab": o.component,
43389
- "onUpdate:activeTab": e[0] || (e[0] = (pe) => o.component = pe)
43389
+ "onUpdate:activeTab": e[0] || (e[0] = (fe) => o.component = fe)
43390
43390
  }, null, 8, ["options", "active-tab"])
43391
43391
  ])) : ut("", !0)
43392
43392
  ]),
43393
- (Y(!0), ee(_t, null, Vt(ie.items, (pe, ri) => {
43393
+ (Y(!0), ee(_t, null, Vt(ie.items, (fe, ri) => {
43394
43394
  var Mt, ei, bi, Fi, zi, Ai, Bi, Yi, Ji, an, ln, De;
43395
43395
  return Y(), ee(_t, { key: ri }, [
43396
- o.component === (pe == null ? void 0 : pe.component) || o.component === (pe == null ? void 0 : pe.name) ? (Y(), ee("div", p7, [
43397
- pe != null && pe.component ? (Y(), ee("div", m7, [
43398
- (Y(), Dt(Zr(pe.component), Pd({
43396
+ o.component === (fe == null ? void 0 : fe.component) || o.component === (fe == null ? void 0 : fe.name) ? (Y(), ee("div", p7, [
43397
+ fe != null && fe.component ? (Y(), ee("div", m7, [
43398
+ (Y(), Dt(Zr(fe.component), Pd({
43399
43399
  data: o.objectData,
43400
- token: (ei = (Mt = o.objectData) == null ? void 0 : Mt.tokens) == null ? void 0 : ei[pe == null ? void 0 : pe.token],
43401
- columns: pe == null ? void 0 : pe.columns,
43400
+ token: (ei = (Mt = o.objectData) == null ? void 0 : Mt.tokens) == null ? void 0 : ei[fe == null ? void 0 : fe.token],
43401
+ columns: fe == null ? void 0 : fe.columns,
43402
43402
  geometry: (Fi = (bi = o.objectData) == null ? void 0 : bi.rows[0]) == null ? void 0 : Fi.geom
43403
- }, { ref_for: !0 }, u.getProps(pe), {
43403
+ }, { ref_for: !0 }, u.getProps(fe), {
43404
43404
  zoom: 16,
43405
43405
  id: (Ai = (zi = t.$route) == null ? void 0 : zi.params) == null ? void 0 : Ai.id
43406
43406
  }), null, 16, ["data", "token", "columns", "geometry", "id"]))
43407
43407
  ])) : ut("", !0),
43408
- pe != null && pe.name ? (Y(), ee("div", g7, [
43409
- (Yi = (Bi = o.objectData) == null ? void 0 : Bi.html) != null && Yi[pe == null ? void 0 : pe.name] ? (Y(), ee("div", {
43408
+ fe != null && fe.name ? (Y(), ee("div", g7, [
43409
+ (Yi = (Bi = o.objectData) == null ? void 0 : Bi.html) != null && Yi[fe == null ? void 0 : fe.name] ? (Y(), ee("div", {
43410
43410
  key: 0,
43411
- innerHTML: (Ji = o.objectData) == null ? void 0 : Ji.html[pe == null ? void 0 : pe.name]
43411
+ innerHTML: (Ji = o.objectData) == null ? void 0 : Ji.html[fe == null ? void 0 : fe.name]
43412
43412
  }, null, 8, y7)) : (Y(), Dt(c, {
43413
43413
  key: 1,
43414
- slot: (an = o.objectData) == null ? void 0 : an.vue[pe == null ? void 0 : pe.name],
43414
+ slot: (an = o.objectData) == null ? void 0 : an.vue[fe == null ? void 0 : fe.name],
43415
43415
  data: (De = (ln = o.objectData) == null ? void 0 : ln.rows) == null ? void 0 : De[0],
43416
43416
  objectData: o.objectData
43417
43417
  }, null, 8, ["slot", "data", "objectData"]))
@@ -43423,7 +43423,7 @@ function E7(t, e, i, n, o, u) {
43423
43423
  (ie == null ? void 0 : ie.type) === "vertical-tabs" ? (Y(), ee("div", _7, [
43424
43424
  R("div", {
43425
43425
  class: Gt(["p-[5px] bg-white absolute left-0 rounded-lg rounded-tl-[0] rounded-bl-[0]", [{ "left-[260px]": o.showTabs }]]),
43426
- onClick: e[1] || (e[1] = (pe) => o.showTabs = !o.showTabs)
43426
+ onClick: e[1] || (e[1] = (fe) => o.showTabs = !o.showTabs)
43427
43427
  }, [
43428
43428
  Oe(S, {
43429
43429
  height: "16",
@@ -43434,37 +43434,37 @@ function E7(t, e, i, n, o, u) {
43434
43434
  R("nav", {
43435
43435
  class: Gt(["lg:relative lg:left-0 flex flex-col space-y-2 max-w-[260px] w-full rounded-xl mr-4 items-start pl-[10px] z-[2] lg:z-0 bg-white py-[20px] absolute left-[-100%]", [{ "left-0 rounded-tr-[0]": o.showTabs }]])
43436
43436
  }, [
43437
- (Y(!0), ee(_t, null, Vt(ie == null ? void 0 : ie.items, (pe) => (Y(), ee("button", {
43438
- key: (pe == null ? void 0 : pe.name) || (pe == null ? void 0 : pe.component),
43439
- onClick: (ri) => o.component = (pe == null ? void 0 : pe.component) || (pe == null ? void 0 : pe.name),
43437
+ (Y(!0), ee(_t, null, Vt(ie == null ? void 0 : ie.items, (fe) => (Y(), ee("button", {
43438
+ key: (fe == null ? void 0 : fe.name) || (fe == null ? void 0 : fe.component),
43439
+ onClick: (ri) => o.component = (fe == null ? void 0 : fe.component) || (fe == null ? void 0 : fe.name),
43440
43440
  class: Gt(["relative inline-flex items-center w-full py-1 text-sm text-left whitespace-pre-wrap border-transparent pe-4 gap-x-2 border-e-2 hover:text-blue-600 focus:outline-none focus:text-blue-600", {
43441
- "font-semibold after:absolute after:top-[0] after:right-[-1px] after:h-full text-blue-600 after:w-[2px] after:bg-blue-600 ": o.component === (pe == null ? void 0 : pe.component) || o.component === (pe == null ? void 0 : pe.name),
43442
- "text-gray-500": o.component !== (pe == null ? void 0 : pe.component) && o.component !== (pe == null ? void 0 : pe.name)
43441
+ "font-semibold after:absolute after:top-[0] after:right-[-1px] after:h-full text-blue-600 after:w-[2px] after:bg-blue-600 ": o.component === (fe == null ? void 0 : fe.component) || o.component === (fe == null ? void 0 : fe.name),
43442
+ "text-gray-500": o.component !== (fe == null ? void 0 : fe.component) && o.component !== (fe == null ? void 0 : fe.name)
43443
43443
  }])
43444
- }, Fe(pe == null ? void 0 : pe.title), 11, v7))), 128))
43444
+ }, Fe(fe == null ? void 0 : fe.title), 11, v7))), 128))
43445
43445
  ], 2),
43446
43446
  R("div", b7, [
43447
- (Y(!0), ee(_t, null, Vt(ie.items, (pe, ri) => {
43447
+ (Y(!0), ee(_t, null, Vt(ie.items, (fe, ri) => {
43448
43448
  var Mt, ei, bi, Fi, zi, Ai, Bi, Yi, Ji, an, ln, De;
43449
43449
  return Y(), ee(_t, { key: ri }, [
43450
- o.component === (pe == null ? void 0 : pe.component) || o.component === (pe == null ? void 0 : pe.name) ? (Y(), ee("div", x7, [
43451
- pe != null && pe.component ? (Y(), ee("div", w7, [
43452
- (Y(), Dt(Zr(pe.component), Pd({
43453
- token: (ei = (Mt = o.objectData) == null ? void 0 : Mt.tokens) == null ? void 0 : ei[pe == null ? void 0 : pe.token],
43450
+ o.component === (fe == null ? void 0 : fe.component) || o.component === (fe == null ? void 0 : fe.name) ? (Y(), ee("div", x7, [
43451
+ fe != null && fe.component ? (Y(), ee("div", w7, [
43452
+ (Y(), Dt(Zr(fe.component), Pd({
43453
+ token: (ei = (Mt = o.objectData) == null ? void 0 : Mt.tokens) == null ? void 0 : ei[fe == null ? void 0 : fe.token],
43454
43454
  data: o.objectData,
43455
- columns: pe == null ? void 0 : pe.columns,
43455
+ columns: fe == null ? void 0 : fe.columns,
43456
43456
  geometry: (Fi = (bi = o.objectData) == null ? void 0 : bi.rows[0]) == null ? void 0 : Fi.geom
43457
- }, { ref_for: !0 }, u.getProps(pe), {
43457
+ }, { ref_for: !0 }, u.getProps(fe), {
43458
43458
  id: (Ai = (zi = t.$route) == null ? void 0 : zi.params) == null ? void 0 : Ai.id
43459
43459
  }), null, 16, ["token", "data", "columns", "geometry", "id"]))
43460
43460
  ])) : ut("", !0),
43461
- pe != null && pe.name ? (Y(), ee("div", S7, [
43462
- (Yi = (Bi = o.objectData) == null ? void 0 : Bi.html) != null && Yi[pe == null ? void 0 : pe.name] ? (Y(), ee("div", {
43461
+ fe != null && fe.name ? (Y(), ee("div", S7, [
43462
+ (Yi = (Bi = o.objectData) == null ? void 0 : Bi.html) != null && Yi[fe == null ? void 0 : fe.name] ? (Y(), ee("div", {
43463
43463
  key: 0,
43464
- innerHTML: (Ji = o.objectData) == null ? void 0 : Ji.html[pe == null ? void 0 : pe.name]
43464
+ innerHTML: (Ji = o.objectData) == null ? void 0 : Ji.html[fe == null ? void 0 : fe.name]
43465
43465
  }, null, 8, k7)) : (Y(), Dt(c, {
43466
43466
  key: 1,
43467
- slot: (an = o.objectData) == null ? void 0 : an.vue[pe == null ? void 0 : pe.name],
43467
+ slot: (an = o.objectData) == null ? void 0 : an.vue[fe == null ? void 0 : fe.name],
43468
43468
  data: (De = (ln = o.objectData) == null ? void 0 : ln.rows) == null ? void 0 : De[0],
43469
43469
  objectData: o.objectData
43470
43470
  }, null, 8, ["slot", "data", "objectData"]))
@@ -43480,7 +43480,7 @@ function E7(t, e, i, n, o, u) {
43480
43480
  ])
43481
43481
  ], 4);
43482
43482
  }
43483
- const _v = /* @__PURE__ */ gt(KW, [["render", E7], ["__scopeId", "data-v-8cb630cb"]]), C7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43483
+ const _v = /* @__PURE__ */ gt(KW, [["render", E7], ["__scopeId", "data-v-0cba3c4e"]]), C7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43484
43484
  __proto__: null,
43485
43485
  default: _v
43486
43486
  }, Symbol.toStringTag, { value: "Module" })), T7 = {