@opengis/admin 0.3.7 → 0.3.9

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.
@@ -328,11 +328,11 @@ function Wy(n, e, t) {
328
328
  if (Le.endsWith(z, "{}"))
329
329
  z = i ? z : z.slice(0, -2), D = JSON.stringify(D);
330
330
  else if (Le.isArray(D) && _L(D) || (Le.isFileList(D) || Le.endsWith(z, "[]")) && (F = Le.toArray(D)))
331
- return z = vT(z), F.forEach(function(Q, Z) {
332
- !(Le.isUndefined(Q) || Q === null) && e.append(
331
+ return z = vT(z), F.forEach(function(J, Z) {
332
+ !(Le.isUndefined(J) || J === null) && e.append(
333
333
  // eslint-disable-next-line no-nested-ternary
334
334
  a === !0 ? lk([z], Z, s) : a === null ? z : z + "[]",
335
- m(Q)
335
+ m(J)
336
336
  );
337
337
  }), !1;
338
338
  }
@@ -1040,13 +1040,13 @@ const CT = (n) => {
1040
1040
  function F() {
1041
1041
  if (!O)
1042
1042
  return;
1043
- const Q = ys.from(
1043
+ const J = ys.from(
1044
1044
  "getAllResponseHeaders" in O && O.getAllResponseHeaders()
1045
- ), Ee = {
1045
+ ), Se = {
1046
1046
  data: !o || o === "text" || o === "json" ? O.responseText : O.response,
1047
1047
  status: O.status,
1048
1048
  statusText: O.statusText,
1049
- headers: Q,
1049
+ headers: J,
1050
1050
  config: n,
1051
1051
  request: O
1052
1052
  };
@@ -1054,7 +1054,7 @@ const CT = (n) => {
1054
1054
  t(Ae), z();
1055
1055
  }, function(Ae) {
1056
1056
  i(Ae), z();
1057
- }, Ee), O = null;
1057
+ }, Se), O = null;
1058
1058
  }
1059
1059
  "onloadend" in O ? O.onloadend = F : O.onreadystatechange = function() {
1060
1060
  !O || O.readyState !== 4 || O.status === 0 && !(O.responseURL && O.responseURL.indexOf("file:") === 0) || setTimeout(F);
@@ -1064,17 +1064,17 @@ const CT = (n) => {
1064
1064
  i(new dn("Network Error", dn.ERR_NETWORK, n, O)), O = null;
1065
1065
  }, O.ontimeout = function() {
1066
1066
  let Z = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
1067
- const Ee = r.transitional || xT;
1067
+ const Se = r.transitional || xT;
1068
1068
  r.timeoutErrorMessage && (Z = r.timeoutErrorMessage), i(new dn(
1069
1069
  Z,
1070
- Ee.clarifyTimeoutError ? dn.ETIMEDOUT : dn.ECONNABORTED,
1070
+ Se.clarifyTimeoutError ? dn.ETIMEDOUT : dn.ECONNABORTED,
1071
1071
  n,
1072
1072
  O
1073
1073
  )), O = null;
1074
- }, s === void 0 && a.setContentType(null), "setRequestHeader" in O && Le.forEach(a.toJSON(), function(Z, Ee) {
1075
- O.setRequestHeader(Ee, Z);
1076
- }), Le.isUndefined(r.withCredentials) || (O.withCredentials = !!r.withCredentials), o && o !== "json" && (O.responseType = r.responseType), m && ([k, D] = Kg(m, !0), O.addEventListener("progress", k)), f && O.upload && ([_, C] = Kg(f), O.upload.addEventListener("progress", _), O.upload.addEventListener("loadend", C)), (r.cancelToken || r.signal) && (g = (Q) => {
1077
- O && (i(!Q || Q.type ? new gh(null, n, O) : Q), O.abort(), O = null);
1074
+ }, s === void 0 && a.setContentType(null), "setRequestHeader" in O && Le.forEach(a.toJSON(), function(Z, Se) {
1075
+ O.setRequestHeader(Se, Z);
1076
+ }), Le.isUndefined(r.withCredentials) || (O.withCredentials = !!r.withCredentials), o && o !== "json" && (O.responseType = r.responseType), m && ([k, D] = Kg(m, !0), O.addEventListener("progress", k)), f && O.upload && ([_, C] = Kg(f), O.upload.addEventListener("progress", _), O.upload.addEventListener("loadend", C)), (r.cancelToken || r.signal) && (g = (J) => {
1077
+ O && (i(!J || J.type ? new gh(null, n, O) : J), O.abort(), O = null);
1078
1078
  }, r.cancelToken && r.cancelToken.subscribe(g), r.signal && (r.signal.aborted ? g() : r.signal.addEventListener("abort", g)));
1079
1079
  const U = VL(r.url);
1080
1080
  if (U && gs.protocols.indexOf(U) === -1) {
@@ -1229,17 +1229,17 @@ const nN = async (n) => {
1229
1229
  let O;
1230
1230
  try {
1231
1231
  if (f && tN && t !== "get" && t !== "head" && (O = await iN(g, i)) !== 0) {
1232
- let Ee = new Request(e, {
1232
+ let Se = new Request(e, {
1233
1233
  method: "POST",
1234
1234
  body: i,
1235
1235
  duplex: "half"
1236
- }), be;
1237
- if (Le.isFormData(i) && (be = Ee.headers.get("content-type")) && g.setContentType(be), Ee.body) {
1236
+ }), ve;
1237
+ if (Le.isFormData(i) && (ve = Se.headers.get("content-type")) && g.setContentType(ve), Se.body) {
1238
1238
  const [Ae, $e] = hk(
1239
1239
  O,
1240
1240
  Kg(fk(f))
1241
1241
  );
1242
- i = mk(Ee.body, gk, Ae, $e);
1242
+ i = mk(Se.body, gk, Ae, $e);
1243
1243
  }
1244
1244
  }
1245
1245
  Le.isString(_) || (_ = _ ? "include" : "omit");
@@ -1254,27 +1254,27 @@ const nN = async (n) => {
1254
1254
  credentials: F ? _ : void 0
1255
1255
  });
1256
1256
  let U = await fetch(D);
1257
- const Q = f_ && (m === "stream" || m === "response");
1258
- if (f_ && (o || Q && z)) {
1259
- const Ee = {};
1257
+ const J = f_ && (m === "stream" || m === "response");
1258
+ if (f_ && (o || J && z)) {
1259
+ const Se = {};
1260
1260
  ["status", "statusText", "headers"].forEach((Oe) => {
1261
- Ee[Oe] = U[Oe];
1261
+ Se[Oe] = U[Oe];
1262
1262
  });
1263
- const be = Le.toFiniteNumber(U.headers.get("content-length")), [Ae, $e] = o && hk(
1264
- be,
1263
+ const ve = Le.toFiniteNumber(U.headers.get("content-length")), [Ae, $e] = o && hk(
1264
+ ve,
1265
1265
  Kg(fk(o), !0)
1266
1266
  ) || [];
1267
1267
  U = new Response(
1268
1268
  mk(U.body, gk, Ae, () => {
1269
1269
  $e && $e(), z && z();
1270
1270
  }),
1271
- Ee
1271
+ Se
1272
1272
  );
1273
1273
  }
1274
1274
  m = m || "text";
1275
1275
  let Z = await Jg[Le.findKey(Jg, m) || "text"](U, n);
1276
- return !Q && z && z(), await new Promise((Ee, be) => {
1277
- kT(Ee, be, {
1276
+ return !J && z && z(), await new Promise((Se, ve) => {
1277
+ kT(Se, ve, {
1278
1278
  data: Z,
1279
1279
  headers: ys.from(U.headers),
1280
1280
  status: U.status,
@@ -1723,8 +1723,8 @@ const ci = vt({}), cN = () => {
1723
1723
  var k, C, D, z, O, F;
1724
1724
  try {
1725
1725
  if ((k = o.value) != null && k.token) {
1726
- const Q = await st.get(`/api/table/${(C = o.value) == null ? void 0 : C.token}`);
1727
- s.value = Q.data;
1726
+ const J = await st.get(`/api/table/${(C = o.value) == null ? void 0 : C.token}`);
1727
+ s.value = J.data;
1728
1728
  }
1729
1729
  (D = o.value) != null && D.init && (s.value = (z = o.value) == null ? void 0 : z.init);
1730
1730
  const { data: U } = await st.get(
@@ -2344,10 +2344,10 @@ function sB(n, e) {
2344
2344
  throw new Error(`Invalid custom RegExp for param "${D}" (${U}): ` + Z.message);
2345
2345
  }
2346
2346
  }
2347
- let Q = z ? `((?:${U})(?:/(?:${U}))*)` : `(${U})`;
2348
- _ || (Q = // avoid an optional / if there are more segments e.g. /:p?-static
2347
+ let J = z ? `((?:${U})(?:/(?:${U}))*)` : `(${U})`;
2348
+ _ || (J = // avoid an optional / if there are more segments e.g. /:p?-static
2349
2349
  // or /:p?-:p2
2350
- O && m.length < 2 ? `(?:/${Q})` : "/" + Q), O && (Q += "?"), r += Q, C += 20, O && (C += -8), z && (C += -20), U === ".*" && (C += -50);
2350
+ O && m.length < 2 ? `(?:/${J})` : "/" + J), O && (J += "?"), r += J, C += 20, O && (C += -8), z && (C += -20), U === ".*" && (C += -50);
2351
2351
  }
2352
2352
  g.push(C);
2353
2353
  }
@@ -2524,37 +2524,37 @@ function dB(n, e) {
2524
2524
  ];
2525
2525
  if ("alias" in _) {
2526
2526
  const Z = typeof _.alias == "string" ? [_.alias] : _.alias;
2527
- for (const Ee of Z)
2527
+ for (const Se of Z)
2528
2528
  F.push(Zn({}, z, {
2529
2529
  // this allows us to hold a copy of the `components` option
2530
2530
  // so that async components cache is hold on the original record
2531
2531
  components: C ? C.record.components : z.components,
2532
- path: Ee,
2532
+ path: Se,
2533
2533
  // we might be the child of an alias
2534
2534
  aliasOf: C ? C.record : z
2535
2535
  // the aliases are always of the same kind as the original since they
2536
2536
  // are defined on the same record
2537
2537
  }));
2538
2538
  }
2539
- let U, Q;
2539
+ let U, J;
2540
2540
  for (const Z of F) {
2541
- const { path: Ee } = Z;
2542
- if (k && Ee[0] !== "/") {
2543
- const be = k.record.path, Ae = be[be.length - 1] === "/" ? "" : "/";
2544
- Z.path = k.record.path + (Ee && Ae + Ee);
2541
+ const { path: Se } = Z;
2542
+ if (k && Se[0] !== "/") {
2543
+ const ve = k.record.path, Ae = ve[ve.length - 1] === "/" ? "" : "/";
2544
+ Z.path = k.record.path + (Se && Ae + Se);
2545
2545
  }
2546
2546
  if (on.NODE_ENV !== "production" && Z.path === "*")
2547
2547
  throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
2548
2548
  See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
2549
- if (U = uB(Z, k, O), on.NODE_ENV !== "production" && k && Ee[0] === "/" && yB(U, k), C ? (C.alias.push(U), on.NODE_ENV !== "production" && mB(C, U)) : (Q = Q || U, Q !== U && Q.alias.push(U), D && _.name && !Mk(U) && a(_.name)), HT(U) && f(U), z.children) {
2550
- const be = z.children;
2551
- for (let Ae = 0; Ae < be.length; Ae++)
2552
- s(be[Ae], U, C && C.children[Ae]);
2549
+ if (U = uB(Z, k, O), on.NODE_ENV !== "production" && k && Se[0] === "/" && yB(U, k), C ? (C.alias.push(U), on.NODE_ENV !== "production" && mB(C, U)) : (J = J || U, J !== U && J.alias.push(U), D && _.name && !Mk(U) && a(_.name)), HT(U) && f(U), z.children) {
2550
+ const ve = z.children;
2551
+ for (let Ae = 0; Ae < ve.length; Ae++)
2552
+ s(ve[Ae], U, C && C.children[Ae]);
2553
2553
  }
2554
2554
  C = C || U;
2555
2555
  }
2556
- return Q ? () => {
2557
- a(Q);
2556
+ return J ? () => {
2557
+ a(J);
2558
2558
  } : Xf;
2559
2559
  }
2560
2560
  function a(_) {
@@ -2581,8 +2581,8 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
2581
2581
  location: _
2582
2582
  });
2583
2583
  if (on.NODE_ENV !== "production") {
2584
- const Q = Object.keys(_.params || {}).filter((Z) => !C.keys.find((Ee) => Ee.name === Z));
2585
- Q.length && wn(`Discarded invalid param(s) "${Q.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
2584
+ const J = Object.keys(_.params || {}).filter((Z) => !C.keys.find((Se) => Se.name === Z));
2585
+ J.length && wn(`Discarded invalid param(s) "${J.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
2586
2586
  }
2587
2587
  O = C.record.name, D = Zn(
2588
2588
  // paramsFromLocation is a new object
@@ -2590,16 +2590,16 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
2590
2590
  k.params,
2591
2591
  // only keep params that exist in the resolved location
2592
2592
  // only keep optional params coming from a parent record
2593
- C.keys.filter((Q) => !Q.optional).concat(C.parent ? C.parent.keys.filter((Q) => Q.optional) : []).map((Q) => Q.name)
2593
+ C.keys.filter((J) => !J.optional).concat(C.parent ? C.parent.keys.filter((J) => J.optional) : []).map((J) => J.name)
2594
2594
  ),
2595
2595
  // discard any existing params in the current location that do not exist here
2596
2596
  // #1497 this ensures better active/exact matching
2597
- _.params && Ak(_.params, C.keys.map((Q) => Q.name))
2597
+ _.params && Ak(_.params, C.keys.map((J) => J.name))
2598
2598
  ), z = C.stringify(D);
2599
2599
  } else if (_.path != null)
2600
- z = _.path, on.NODE_ENV !== "production" && !z.startsWith("/") && wn(`The Matcher cannot resolve relative paths but received "${z}". Unless you directly called \`matcher.resolve("${z}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), C = t.find((Q) => Q.re.test(z)), C && (D = C.parse(z), O = C.record.name);
2600
+ z = _.path, on.NODE_ENV !== "production" && !z.startsWith("/") && wn(`The Matcher cannot resolve relative paths but received "${z}". Unless you directly called \`matcher.resolve("${z}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), C = t.find((J) => J.re.test(z)), C && (D = C.parse(z), O = C.record.name);
2601
2601
  else {
2602
- if (C = k.name ? i.get(k.name) : t.find((Q) => Q.re.test(k.path)), !C)
2602
+ if (C = k.name ? i.get(k.name) : t.find((J) => J.re.test(k.path)), !C)
2603
2603
  throw Qd(1, {
2604
2604
  location: _,
2605
2605
  currentLocation: k
@@ -3012,8 +3012,8 @@ const zk = (n, e, t) => n ?? e ?? t, AB = /* @__PURE__ */ Us({
3012
3012
  path: _.path,
3013
3013
  meta: _.meta
3014
3014
  };
3015
- (js(O.ref) ? O.ref.map((Q) => Q.i) : [O.ref.i]).forEach((Q) => {
3016
- Q.__vrv_devtools = F;
3015
+ (js(O.ref) ? O.ref.map((J) => J.i) : [O.ref.i]).forEach((J) => {
3016
+ J.__vrv_devtools = F;
3017
3017
  });
3018
3018
  }
3019
3019
  return (
@@ -3392,7 +3392,7 @@ function jB(n) {
3392
3392
  function U(Ie) {
3393
3393
  return typeof Ie == "string" ? Qv(t, Ie, f.value.path) : Zn({}, Ie);
3394
3394
  }
3395
- function Q(Ie, Ze) {
3395
+ function J(Ie, Ze) {
3396
3396
  if (m !== Ie)
3397
3397
  return Qd(8, {
3398
3398
  from: Ze,
@@ -3402,10 +3402,10 @@ function jB(n) {
3402
3402
  function Z(Ie) {
3403
3403
  return Ae(Ie);
3404
3404
  }
3405
- function Ee(Ie) {
3405
+ function Se(Ie) {
3406
3406
  return Z(Zn(U(Ie), { replace: !0 }));
3407
3407
  }
3408
- function be(Ie) {
3408
+ function ve(Ie) {
3409
3409
  const Ze = Ie.matched[Ie.matched.length - 1];
3410
3410
  if (Ze && Ze.redirect) {
3411
3411
  const { redirect: it } = Ze;
@@ -3426,7 +3426,7 @@ ${JSON.stringify(bt, null, 2)}
3426
3426
  }
3427
3427
  }
3428
3428
  function Ae(Ie, Ze) {
3429
- const it = m = F(Ie), bt = f.value, nn = Ie.state, En = Ie.force, qt = Ie.replace === !0, Ht = be(it);
3429
+ const it = m = F(Ie), bt = f.value, nn = Ie.state, En = Ie.force, qt = Ie.replace === !0, Ht = ve(it);
3430
3430
  if (Ht)
3431
3431
  return Ae(
3432
3432
  Zn(U(Ht), {
@@ -3491,7 +3491,7 @@ ${JSON.stringify(bt, null, 2)}
3491
3491
  });
3492
3492
  }
3493
3493
  function $e(Ie, Ze) {
3494
- const it = Q(Ie, Ze);
3494
+ const it = J(Ie, Ze);
3495
3495
  return it ? Promise.reject(it) : Promise.resolve();
3496
3496
  }
3497
3497
  function Oe(Ie) {
@@ -3544,7 +3544,7 @@ ${JSON.stringify(bt, null, 2)}
3544
3544
  o.list().forEach((bt) => Oe(() => bt(Ie, Ze, it)));
3545
3545
  }
3546
3546
  function me(Ie, Ze, it, bt, nn) {
3547
- const En = Q(Ie, Ze);
3547
+ const En = J(Ie, Ze);
3548
3548
  if (En)
3549
3549
  return En;
3550
3550
  const qt = Ze === Nl, Ht = La ? history.state : {};
@@ -3557,7 +3557,7 @@ ${JSON.stringify(bt, null, 2)}
3557
3557
  ct || (ct = r.listen((Ie, Ze, it) => {
3558
3558
  if (!An.listening)
3559
3559
  return;
3560
- const bt = F(Ie), nn = be(bt);
3560
+ const bt = F(Ie), nn = ve(bt);
3561
3561
  if (nn) {
3562
3562
  Ae(Zn(nn, { replace: !0 }), bt).catch(Xf);
3563
3563
  return;
@@ -3636,7 +3636,7 @@ ${JSON.stringify(bt, null, 2)}
3636
3636
  resolve: F,
3637
3637
  options: n,
3638
3638
  push: Z,
3639
- replace: Ee,
3639
+ replace: Se,
3640
3640
  go: fn,
3641
3641
  back: () => fn(-1),
3642
3642
  forward: () => fn(1),
@@ -3694,27 +3694,27 @@ const WB = [
3694
3694
  {
3695
3695
  name: "edit",
3696
3696
  path: "/edit",
3697
- component: () => import("./edit-page-CMWN-PzD.js")
3697
+ component: () => import("./edit-page-TTlOepi_.js")
3698
3698
  },
3699
3699
  {
3700
3700
  name: "add",
3701
3701
  path: "/add",
3702
- component: () => import("./add-page-i3ZTPwFT.js")
3702
+ component: () => import("./add-page-gRyZm0JC.js")
3703
3703
  },
3704
3704
  {
3705
3705
  path: "/profile",
3706
3706
  name: "profile",
3707
- component: () => import("./profile-page-DebNblRZ.js")
3707
+ component: () => import("./profile-page-Bl6zzoIA.js")
3708
3708
  },
3709
3709
  {
3710
3710
  name: "card-view",
3711
3711
  path: "/card",
3712
- component: () => import("./card-view-DRjzckF0.js"),
3712
+ component: () => import("./card-view-BjkpFcAx.js"),
3713
3713
  children: [
3714
3714
  {
3715
3715
  name: "table",
3716
3716
  path: ":table",
3717
- component: () => import("./card-view-DRjzckF0.js"),
3717
+ component: () => import("./card-view-BjkpFcAx.js"),
3718
3718
  children: [
3719
3719
  {
3720
3720
  name: "card",
@@ -3775,14 +3775,14 @@ const XB = /* @__PURE__ */ mt(qB, [["render", ZB]]), KB = (n) => {
3775
3775
  {
3776
3776
  path: "/",
3777
3777
  name: "home",
3778
- component: () => import("./admin-view-CtP2Odsd.js"),
3778
+ component: () => import("./admin-view-Bl78Kfwl.js"),
3779
3779
  children: [
3780
3780
  ...e,
3781
3781
  ...n,
3782
3782
  // { path: '/', redirect: '/home' },
3783
3783
  {
3784
3784
  path: "/:catchAll(.*)",
3785
- component: () => import("./admin-interface-D4WmyK_a.js")
3785
+ component: () => import("./admin-interface-BHtCxXnV.js")
3786
3786
  }
3787
3787
  ]
3788
3788
  }
@@ -7185,15 +7185,15 @@ var XA = { exports: {} };
7185
7185
  }
7186
7186
  return O || !1;
7187
7187
  }
7188
- function Q(u, c, d, p) {
7188
+ function J(u, c, d, p) {
7189
7189
  const b = new D(u, c, d, p);
7190
7190
  return (S) => b.solve(S);
7191
7191
  }
7192
- const Z = Q(0.25, 0.1, 0.25, 1);
7193
- function Ee(u, c, d) {
7192
+ const Z = J(0.25, 0.1, 0.25, 1);
7193
+ function Se(u, c, d) {
7194
7194
  return Math.min(d, Math.max(c, u));
7195
7195
  }
7196
- function be(u, c, d) {
7196
+ function ve(u, c, d) {
7197
7197
  const p = d - c, b = ((u - c) % p + p) % p + c;
7198
7198
  return b === c ? d : b;
7199
7199
  }
@@ -7239,8 +7239,8 @@ var XA = { exports: {} };
7239
7239
  if (!E || !E.startsWith("BGR") && !E.startsWith("RGB")) throw new Error(`Unrecognized format ${E}`);
7240
7240
  const T = E.startsWith("BGR"), M = new Uint8ClampedArray(p * b * 4);
7241
7241
  if (yield S.copyTo(M, function(R, N, $, H, G) {
7242
- const X = 4 * Math.max(-N, 0), ee = (Math.max(0, $) - $) * H * 4 + X, oe = 4 * H, ce = Math.max(0, N), ke = Math.max(0, $);
7243
- return { rect: { x: ce, y: ke, width: Math.min(R.width, N + H) - ce, height: Math.min(R.height, $ + G) - ke }, layout: [{ offset: ee, stride: oe }] };
7242
+ const X = 4 * Math.max(-N, 0), ee = (Math.max(0, $) - $) * H * 4 + X, oe = 4 * H, ce = Math.max(0, N), Ee = Math.max(0, $);
7243
+ return { rect: { x: ce, y: Ee, width: Math.min(R.width, N + H) - ce, height: Math.min(R.height, $ + G) - Ee }, layout: [{ offset: ee, stride: oe }] };
7244
7244
  }(u, c, d, p, b)), T) for (let R = 0; R < M.length; R += 4) {
7245
7245
  const N = M[R];
7246
7246
  M[R] = M[R + 2], M[R + 2] = N;
@@ -7467,7 +7467,7 @@ var XA = { exports: {} };
7467
7467
  }
7468
7468
  return u.kind;
7469
7469
  }
7470
- const J = [Zs, Qe, Te, Ve, Pt, _i, cn, q(at), fr, $r, le];
7470
+ const Q = [Zs, Qe, Te, Ve, Pt, _i, cn, q(at), fr, $r, le];
7471
7471
  function se(u, c) {
7472
7472
  if (c.kind === "error") return null;
7473
7473
  if (u.kind === "array") {
@@ -7475,7 +7475,7 @@ var XA = { exports: {} };
7475
7475
  } else {
7476
7476
  if (u.kind === c.kind) return null;
7477
7477
  if (u.kind === "value") {
7478
- for (const d of J) if (!se(d, c)) return null;
7478
+ for (const d of Q) if (!se(d, c)) return null;
7479
7479
  }
7480
7480
  }
7481
7481
  return `Expected ${W(u)} but found ${W(c)} instead.`;
@@ -7483,10 +7483,10 @@ var XA = { exports: {} };
7483
7483
  function ge(u, c) {
7484
7484
  return c.some((d) => d.kind === u.kind);
7485
7485
  }
7486
- function ve(u, c) {
7486
+ function be(u, c) {
7487
7487
  return c.some((d) => d === "null" ? u === null : d === "array" ? Array.isArray(u) : d === "object" ? u && !Array.isArray(u) && typeof u == "object" : d === typeof u);
7488
7488
  }
7489
- function Se(u, c) {
7489
+ function ke(u, c) {
7490
7490
  return u.kind === "array" && c.kind === "array" ? u.itemType.kind === c.itemType.kind && typeof u.N == "number" : u.kind === c.kind;
7491
7491
  }
7492
7492
  const fe = 0.96422, ze = 0.82521, Fe = 4 / 29, De = 6 / 29, Xe = 3 * De * De, It = De * De * De, Lt = Math.PI / 180, Cn = 180 / Math.PI;
@@ -7551,11 +7551,11 @@ var XA = { exports: {} };
7551
7551
  if (p.startsWith("rgb")) {
7552
7552
  const E = p.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);
7553
7553
  if (E) {
7554
- const [T, M, R, N, $, H, G, X, ee, oe, ce, ke] = E, ye = [N || " ", G || " ", oe].join("");
7554
+ const [T, M, R, N, $, H, G, X, ee, oe, ce, Ee] = E, ye = [N || " ", G || " ", oe].join("");
7555
7555
  if (ye === " " || ye === " /" || ye === ",," || ye === ",,,") {
7556
7556
  const we = [R, H, ee].join(""), Pe = we === "%%%" ? 100 : we === "" ? 255 : 0;
7557
7557
  if (Pe) {
7558
- const He = [Gi(+M / Pe, 0, 1), Gi(+$ / Pe, 0, 1), Gi(+X / Pe, 0, 1), ce ? Li(+ce, ke) : 1];
7558
+ const He = [Gi(+M / Pe, 0, 1), Gi(+$ / Pe, 0, 1), Gi(+X / Pe, 0, 1), ce ? Li(+ce, Ee) : 1];
7559
7559
  if (pr(He)) return He;
7560
7560
  }
7561
7561
  }
@@ -7567,12 +7567,12 @@ var XA = { exports: {} };
7567
7567
  const [E, T, M, R, N, $, H, G, X] = S, ee = [M || " ", N || " ", H].join("");
7568
7568
  if (ee === " " || ee === " /" || ee === ",," || ee === ",,,") {
7569
7569
  const oe = [+T, Gi(+R, 0, 100), Gi(+$, 0, 100), G ? Li(+G, X) : 1];
7570
- if (pr(oe)) return function([ce, ke, ye, we]) {
7570
+ if (pr(oe)) return function([ce, Ee, ye, we]) {
7571
7571
  function Pe(He) {
7572
- const dt = (He + ce / 30) % 12, Nt = ke * Math.min(ye, 1 - ye);
7572
+ const dt = (He + ce / 30) % 12, Nt = Ee * Math.min(ye, 1 - ye);
7573
7573
  return ye - Nt * Math.max(-1, Math.min(dt - 3, 9 - dt, 1));
7574
7574
  }
7575
- return ce = tn(ce), ke /= 100, ye /= 100, [Pe(0), Pe(8), Pe(4), we];
7575
+ return ce = tn(ce), Ee /= 100, ye /= 100, [Pe(0), Pe(8), Pe(4), we];
7576
7576
  }(oe);
7577
7577
  }
7578
7578
  }
@@ -8050,8 +8050,8 @@ var XA = { exports: {} };
8050
8050
  evaluate(c) {
8051
8051
  const d = this.needle.evaluate(c), p = this.haystack.evaluate(c);
8052
8052
  if (!p) return !1;
8053
- if (!ve(d, ["boolean", "string", "number", "null"])) throw new Ci(`Expected first argument to be of type boolean, string, number or null, but found ${W(Mi(d))} instead.`);
8054
- if (!ve(p, ["string", "array"])) throw new Ci(`Expected second argument to be of type array or string, but found ${W(Mi(p))} instead.`);
8053
+ if (!be(d, ["boolean", "string", "number", "null"])) throw new Ci(`Expected first argument to be of type boolean, string, number or null, but found ${W(Mi(d))} instead.`);
8054
+ if (!be(p, ["string", "array"])) throw new Ci(`Expected second argument to be of type array or string, but found ${W(Mi(p))} instead.`);
8055
8055
  return p.indexOf(d) >= 0;
8056
8056
  }
8057
8057
  eachChild(c) {
@@ -8078,13 +8078,13 @@ var XA = { exports: {} };
8078
8078
  }
8079
8079
  evaluate(c) {
8080
8080
  const d = this.needle.evaluate(c), p = this.haystack.evaluate(c);
8081
- if (!ve(d, ["boolean", "string", "number", "null"])) throw new Ci(`Expected first argument to be of type boolean, string, number or null, but found ${W(Mi(d))} instead.`);
8081
+ if (!be(d, ["boolean", "string", "number", "null"])) throw new Ci(`Expected first argument to be of type boolean, string, number or null, but found ${W(Mi(d))} instead.`);
8082
8082
  let b;
8083
- if (this.fromIndex && (b = this.fromIndex.evaluate(c)), ve(p, ["string"])) {
8083
+ if (this.fromIndex && (b = this.fromIndex.evaluate(c)), be(p, ["string"])) {
8084
8084
  const S = p.indexOf(d, b);
8085
8085
  return S === -1 ? -1 : [...p.slice(0, S)].length;
8086
8086
  }
8087
- if (ve(p, ["array"])) return p.indexOf(d, b);
8087
+ if (be(p, ["array"])) return p.indexOf(d, b);
8088
8088
  throw new Ci(`Expected second argument to be of type array or string, but found ${W(Mi(p))} instead.`);
8089
8089
  }
8090
8090
  eachChild(c) {
@@ -8192,8 +8192,8 @@ var XA = { exports: {} };
8192
8192
  evaluate(c) {
8193
8193
  const d = this.input.evaluate(c), p = this.beginIndex.evaluate(c);
8194
8194
  let b;
8195
- if (this.endIndex && (b = this.endIndex.evaluate(c)), ve(d, ["string"])) return [...d].slice(p, b).join("");
8196
- if (ve(d, ["array"])) return d.slice(p, b);
8195
+ if (this.endIndex && (b = this.endIndex.evaluate(c)), be(d, ["string"])) return [...d].slice(p, b).join("");
8196
+ if (be(d, ["array"])) return d.slice(p, b);
8197
8197
  throw new Ci(`Expected first argument to be of type array or string, but found ${W(Mi(d))} instead.`);
8198
8198
  }
8199
8199
  eachChild(c) {
@@ -8301,11 +8301,11 @@ var XA = { exports: {} };
8301
8301
  let H, G;
8302
8302
  if (isNaN(b) || isNaN(M)) isNaN(b) ? isNaN(M) ? H = NaN : (H = M, E !== 1 && E !== 0 || (G = R)) : (H = b, N !== 1 && N !== 0 || (G = S));
8303
8303
  else {
8304
- let ke = M - b;
8305
- M > b && ke > 180 ? ke -= 360 : M < b && b - M > 180 && (ke += 360), H = b + d * ke;
8304
+ let Ee = M - b;
8305
+ M > b && Ee > 180 ? Ee -= 360 : M < b && b - M > 180 && (Ee += 360), H = b + d * Ee;
8306
8306
  }
8307
- const [X, ee, oe, ce] = function([ke, ye, we, Pe]) {
8308
- return ke = isNaN(ke) ? 0 : ke * Lt, mi([we, Math.cos(ke) * ye, Math.sin(ke) * ye, Pe]);
8307
+ const [X, ee, oe, ce] = function([Ee, ye, we, Pe]) {
8308
+ return Ee = isNaN(Ee) ? 0 : Ee * Lt, mi([we, Math.cos(Ee) * ye, Math.sin(Ee) * ye, Pe]);
8309
8309
  }([H, G ?? fa(S, R, d), fa(E, N, d), fa(T, $, d)]);
8310
8310
  return new Vn(X, ee, oe, ce, !1);
8311
8311
  }
@@ -8373,7 +8373,7 @@ var XA = { exports: {} };
8373
8373
  if (!X) return null;
8374
8374
  M = M || X.type, T.push([N, X]);
8375
8375
  }
8376
- return Se(M, Qe) || Se(M, Pt) || Se(M, fr) || Se(M, le) || Se(M, q(Qe)) ? new Cr(M, p, b, S, T) : d.error(`Type ${W(M)} is not interpolatable.`);
8376
+ return ke(M, Qe) || ke(M, Pt) || ke(M, fr) || ke(M, le) || ke(M, q(Qe)) ? new Cr(M, p, b, S, T) : d.error(`Type ${W(M)} is not interpolatable.`);
8377
8377
  }
8378
8378
  evaluate(c) {
8379
8379
  const d = this.labels, p = this.outputs;
@@ -9027,9 +9027,9 @@ var XA = { exports: {} };
9027
9027
  for (const T of u) for (let M = 0, R = T.length, N = R - 1; M < R; N = M++) {
9028
9028
  const $ = T[N], H = T[M];
9029
9029
  for (const G of c) for (let X = 0, ee = G.length, oe = ee - 1; X < ee; oe = X++) {
9030
- const ce = G[oe], ke = G[X];
9031
- if (zu($, H, ce, ke)) return 0;
9032
- E = Math.min(E, Vh($, H, ce, ke, d));
9030
+ const ce = G[oe], Ee = G[X];
9031
+ if (zu($, H, ce, Ee)) return 0;
9032
+ E = Math.min(E, Vh($, H, ce, Ee, d));
9033
9033
  }
9034
9034
  }
9035
9035
  return E;
@@ -9734,8 +9734,8 @@ var XA = { exports: {} };
9734
9734
  } else p = ee;
9735
9735
  if (ee !== "number" && ee !== "string" && ee !== "boolean") return [new qe(G.key, ce, "stop domain value must be a number, string, or boolean")];
9736
9736
  if (ee !== "number" && d !== "categorical") {
9737
- let ke = `number expected, ${ee} found`;
9738
- return dl(c) && d === void 0 && (ke += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new qe(G.key, ce, ke)];
9737
+ let Ee = `number expected, ${ee} found`;
9738
+ return dl(c) && d === void 0 && (Ee += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new qe(G.key, ce, Ee)];
9739
9739
  }
9740
9740
  return d !== "categorical" || ee !== "number" || isFinite(oe) && Math.floor(oe) === oe ? d !== "categorical" && ee === "number" && b !== void 0 && oe < b ? [new qe(G.key, ce, "stop domain values must appear in ascending order")] : (b = oe, d === "categorical" && oe in E ? [new qe(G.key, ce, "stop domain values must be unique")] : (E[oe] = !0, [])) : [new qe(G.key, ce, `integer expected, found ${oe}`)];
9741
9741
  }
@@ -9865,8 +9865,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9865
9865
  const oe = Dn($);
9866
9866
  if ($ === void 0) return ee;
9867
9867
  if (oe !== "object") return ee.push(new qe("source_raster_dem", $, `object expected, ${oe} found`)), ee;
9868
- const ce = wi($.encoding) === "custom", ke = ["redFactor", "greenFactor", "blueFactor", "baseShift"], ye = M.value.encoding ? `"${M.value.encoding}"` : "Default";
9869
- for (const we in $) !ce && ke.includes(we) ? ee.push(new qe(we, $[we], `In "${N}": "${we}" is only valid when "encoding" is set to "custom". ${ye} encoding found`)) : G[we] ? ee = ee.concat(M.validateSpec({ key: we, value: $[we], valueSpec: G[we], validateSpec: M.validateSpec, style: X, styleSpec: H })) : ee.push(new qe(we, $[we], `unknown property "${we}"`));
9868
+ const ce = wi($.encoding) === "custom", Ee = ["redFactor", "greenFactor", "blueFactor", "baseShift"], ye = M.value.encoding ? `"${M.value.encoding}"` : "Default";
9869
+ for (const we in $) !ce && Ee.includes(we) ? ee.push(new qe(we, $[we], `In "${N}": "${we}" is only valid when "encoding" is set to "custom". ${ye} encoding found`)) : G[we] ? ee = ee.concat(M.validateSpec({ key: we, value: $[we], valueSpec: G[we], validateSpec: M.validateSpec, style: X, styleSpec: H })) : ee.push(new qe(we, $[we], `unknown property "${we}"`));
9870
9870
  return ee;
9871
9871
  }({ sourceName: d, value: c, style: u.style, styleSpec: p, validateSpec: S }), T;
9872
9872
  case "geojson":
@@ -10828,12 +10828,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10828
10828
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
10829
10829
  }
10830
10830
  emplaceBack(c, d, p, b, S, E, T, M, R, N, $, H, G, X, ee, oe, ce) {
10831
- const ke = this.length;
10832
- return this.resize(ke + 1), this.emplace(ke, c, d, p, b, S, E, T, M, R, N, $, H, G, X, ee, oe, ce);
10831
+ const Ee = this.length;
10832
+ return this.resize(Ee + 1), this.emplace(Ee, c, d, p, b, S, E, T, M, R, N, $, H, G, X, ee, oe, ce);
10833
10833
  }
10834
- emplace(c, d, p, b, S, E, T, M, R, N, $, H, G, X, ee, oe, ce, ke) {
10834
+ emplace(c, d, p, b, S, E, T, M, R, N, $, H, G, X, ee, oe, ce, Ee) {
10835
10835
  const ye = 24 * c, we = 12 * c, Pe = 48 * c;
10836
- return this.int16[ye + 0] = d, this.int16[ye + 1] = p, this.uint16[ye + 2] = b, this.uint16[ye + 3] = S, this.uint32[we + 2] = E, this.uint32[we + 3] = T, this.uint32[we + 4] = M, this.uint16[ye + 10] = R, this.uint16[ye + 11] = N, this.uint16[ye + 12] = $, this.float32[we + 7] = H, this.float32[we + 8] = G, this.uint8[Pe + 36] = X, this.uint8[Pe + 37] = ee, this.uint8[Pe + 38] = oe, this.uint32[we + 10] = ce, this.int16[ye + 22] = ke, c;
10836
+ return this.int16[ye + 0] = d, this.int16[ye + 1] = p, this.uint16[ye + 2] = b, this.uint16[ye + 3] = S, this.uint32[we + 2] = E, this.uint32[we + 3] = T, this.uint32[we + 4] = M, this.uint16[ye + 10] = R, this.uint16[ye + 11] = N, this.uint16[ye + 12] = $, this.float32[we + 7] = H, this.float32[we + 8] = G, this.uint8[Pe + 36] = X, this.uint8[Pe + 37] = ee, this.uint8[Pe + 38] = oe, this.uint32[we + 10] = ce, this.int16[ye + 22] = Ee, c;
10837
10837
  }
10838
10838
  }
10839
10839
  Be.prototype.bytesPerElement = 48, gt("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", Be);
@@ -10841,13 +10841,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10841
10841
  _refreshViews() {
10842
10842
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
10843
10843
  }
10844
- emplaceBack(c, d, p, b, S, E, T, M, R, N, $, H, G, X, ee, oe, ce, ke, ye, we, Pe, He, dt, Nt, lt, nt, Tt, _t) {
10844
+ emplaceBack(c, d, p, b, S, E, T, M, R, N, $, H, G, X, ee, oe, ce, Ee, ye, we, Pe, He, dt, Nt, lt, nt, Tt, _t) {
10845
10845
  const pt = this.length;
10846
- return this.resize(pt + 1), this.emplace(pt, c, d, p, b, S, E, T, M, R, N, $, H, G, X, ee, oe, ce, ke, ye, we, Pe, He, dt, Nt, lt, nt, Tt, _t);
10846
+ return this.resize(pt + 1), this.emplace(pt, c, d, p, b, S, E, T, M, R, N, $, H, G, X, ee, oe, ce, Ee, ye, we, Pe, He, dt, Nt, lt, nt, Tt, _t);
10847
10847
  }
10848
- emplace(c, d, p, b, S, E, T, M, R, N, $, H, G, X, ee, oe, ce, ke, ye, we, Pe, He, dt, Nt, lt, nt, Tt, _t, pt) {
10848
+ emplace(c, d, p, b, S, E, T, M, R, N, $, H, G, X, ee, oe, ce, Ee, ye, we, Pe, He, dt, Nt, lt, nt, Tt, _t, pt) {
10849
10849
  const Ne = 32 * c, Mt = 16 * c;
10850
- return this.int16[Ne + 0] = d, this.int16[Ne + 1] = p, this.int16[Ne + 2] = b, this.int16[Ne + 3] = S, this.int16[Ne + 4] = E, this.int16[Ne + 5] = T, this.int16[Ne + 6] = M, this.int16[Ne + 7] = R, this.uint16[Ne + 8] = N, this.uint16[Ne + 9] = $, this.uint16[Ne + 10] = H, this.uint16[Ne + 11] = G, this.uint16[Ne + 12] = X, this.uint16[Ne + 13] = ee, this.uint16[Ne + 14] = oe, this.uint16[Ne + 15] = ce, this.uint16[Ne + 16] = ke, this.uint16[Ne + 17] = ye, this.uint16[Ne + 18] = we, this.uint16[Ne + 19] = Pe, this.uint16[Ne + 20] = He, this.uint16[Ne + 21] = dt, this.uint16[Ne + 22] = Nt, this.uint32[Mt + 12] = lt, this.float32[Mt + 13] = nt, this.float32[Mt + 14] = Tt, this.uint16[Ne + 30] = _t, this.uint16[Ne + 31] = pt, c;
10850
+ return this.int16[Ne + 0] = d, this.int16[Ne + 1] = p, this.int16[Ne + 2] = b, this.int16[Ne + 3] = S, this.int16[Ne + 4] = E, this.int16[Ne + 5] = T, this.int16[Ne + 6] = M, this.int16[Ne + 7] = R, this.uint16[Ne + 8] = N, this.uint16[Ne + 9] = $, this.uint16[Ne + 10] = H, this.uint16[Ne + 11] = G, this.uint16[Ne + 12] = X, this.uint16[Ne + 13] = ee, this.uint16[Ne + 14] = oe, this.uint16[Ne + 15] = ce, this.uint16[Ne + 16] = Ee, this.uint16[Ne + 17] = ye, this.uint16[Ne + 18] = we, this.uint16[Ne + 19] = Pe, this.uint16[Ne + 20] = He, this.uint16[Ne + 21] = dt, this.uint16[Ne + 22] = Nt, this.uint32[Mt + 12] = lt, this.float32[Mt + 13] = nt, this.float32[Mt + 14] = Tt, this.uint16[Ne + 30] = _t, this.uint16[Ne + 31] = pt, c;
10851
10851
  }
10852
10852
  }
10853
10853
  Ge.prototype.bytesPerElement = 64, gt("StructArrayLayout8i15ui1ul2f2ui64", Ge);
@@ -11239,7 +11239,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11239
11239
  }
11240
11240
  }
11241
11241
  function Sa(u, c) {
11242
- return 256 * (u = Ee(Math.floor(u), 0, 255)) + Ee(Math.floor(c), 0, 255);
11242
+ return 256 * (u = Se(Math.floor(u), 0, 255)) + Se(Math.floor(c), 0, 255);
11243
11243
  }
11244
11244
  _n.MAX_VERTEX_ARRAY_LENGTH = Math.pow(2, 16) - 1, gt("SegmentVector", _n);
11245
11245
  const Cl = A([{ name: "a_pattern_from", components: 4, type: "Uint16" }, { name: "a_pattern_to", components: 4, type: "Uint16" }, { name: "a_pixel_ratio_from", components: 1, type: "Uint16" }, { name: "a_pixel_ratio_to", components: 1, type: "Uint16" }]);
@@ -11442,7 +11442,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11442
11442
  this.paintVertexBuffer && this.paintVertexBuffer.destroy();
11443
11443
  }
11444
11444
  setUniform(c, d) {
11445
- const p = this.useIntegerZoom ? Math.floor(d.zoom) : d.zoom, b = Ee(this.expression.interpolationFactor(p, this.zoom, this.zoom + 1), 0, 1);
11445
+ const p = this.useIntegerZoom ? Math.floor(d.zoom) : d.zoom, b = Se(this.expression.interpolationFactor(p, this.zoom, this.zoom + 1), 0, 1);
11446
11446
  c.set(b);
11447
11447
  }
11448
11448
  getBinding(c, d, p) {
@@ -11636,7 +11636,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11636
11636
  const b = d[p];
11637
11637
  for (let S = 0; S < b.length; S++) {
11638
11638
  const E = b[S], T = Math.round(E.x * c), M = Math.round(E.y * c);
11639
- E.x = Ee(T, T1, ov), E.y = Ee(M, T1, ov), (T < E.x || T > E.x + 1 || M < E.y || M > E.y + 1) && ct("Geometry exceeds allowed extent, reduce your vector tile buffer size");
11639
+ E.x = Se(T, T1, ov), E.y = Se(M, T1, ov), (T < E.x || T > E.x + 1 || M < E.y || M > E.y + 1) && ct("Geometry exceeds allowed extent, reduce your vector tile buffer size");
11640
11640
  }
11641
11641
  }
11642
11642
  return d;
@@ -11789,8 +11789,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11789
11789
  return u[0] = 1, u[1] = 0, u[2] = 0, u[3] = 0, u[4] = 0, u[5] = 1, u[6] = 0, u[7] = 0, u[8] = 0, u[9] = 0, u[10] = 1, u[11] = 0, u[12] = 0, u[13] = 0, u[14] = 0, u[15] = 1, u;
11790
11790
  }
11791
11791
  function O1(u, c, d) {
11792
- var p = c[0], b = c[1], S = c[2], E = c[3], T = c[4], M = c[5], R = c[6], N = c[7], $ = c[8], H = c[9], G = c[10], X = c[11], ee = c[12], oe = c[13], ce = c[14], ke = c[15], ye = d[0], we = d[1], Pe = d[2], He = d[3];
11793
- return u[0] = ye * p + we * T + Pe * $ + He * ee, u[1] = ye * b + we * M + Pe * H + He * oe, u[2] = ye * S + we * R + Pe * G + He * ce, u[3] = ye * E + we * N + Pe * X + He * ke, u[4] = (ye = d[4]) * p + (we = d[5]) * T + (Pe = d[6]) * $ + (He = d[7]) * ee, u[5] = ye * b + we * M + Pe * H + He * oe, u[6] = ye * S + we * R + Pe * G + He * ce, u[7] = ye * E + we * N + Pe * X + He * ke, u[8] = (ye = d[8]) * p + (we = d[9]) * T + (Pe = d[10]) * $ + (He = d[11]) * ee, u[9] = ye * b + we * M + Pe * H + He * oe, u[10] = ye * S + we * R + Pe * G + He * ce, u[11] = ye * E + we * N + Pe * X + He * ke, u[12] = (ye = d[12]) * p + (we = d[13]) * T + (Pe = d[14]) * $ + (He = d[15]) * ee, u[13] = ye * b + we * M + Pe * H + He * oe, u[14] = ye * S + we * R + Pe * G + He * ce, u[15] = ye * E + we * N + Pe * X + He * ke, u;
11792
+ var p = c[0], b = c[1], S = c[2], E = c[3], T = c[4], M = c[5], R = c[6], N = c[7], $ = c[8], H = c[9], G = c[10], X = c[11], ee = c[12], oe = c[13], ce = c[14], Ee = c[15], ye = d[0], we = d[1], Pe = d[2], He = d[3];
11793
+ return u[0] = ye * p + we * T + Pe * $ + He * ee, u[1] = ye * b + we * M + Pe * H + He * oe, u[2] = ye * S + we * R + Pe * G + He * ce, u[3] = ye * E + we * N + Pe * X + He * Ee, u[4] = (ye = d[4]) * p + (we = d[5]) * T + (Pe = d[6]) * $ + (He = d[7]) * ee, u[5] = ye * b + we * M + Pe * H + He * oe, u[6] = ye * S + we * R + Pe * G + He * ce, u[7] = ye * E + we * N + Pe * X + He * Ee, u[8] = (ye = d[8]) * p + (we = d[9]) * T + (Pe = d[10]) * $ + (He = d[11]) * ee, u[9] = ye * b + we * M + Pe * H + He * oe, u[10] = ye * S + we * R + Pe * G + He * ce, u[11] = ye * E + we * N + Pe * X + He * Ee, u[12] = (ye = d[12]) * p + (we = d[13]) * T + (Pe = d[14]) * $ + (He = d[15]) * ee, u[13] = ye * b + we * M + Pe * H + He * oe, u[14] = ye * S + we * R + Pe * G + He * ce, u[15] = ye * E + we * N + Pe * X + He * Ee, u;
11794
11794
  }
11795
11795
  Math.hypot || (Math.hypot = function() {
11796
11796
  for (var u = 0, c = arguments.length; c--; ) u += arguments[c] * arguments[c];
@@ -11820,8 +11820,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11820
11820
  for (const X of b) for (const ee of X) {
11821
11821
  const oe = $ ? ee : z1(ee, M);
11822
11822
  let ce = G;
11823
- const ke = $m([], [ee.x, ee.y, 0, 1], M);
11824
- if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? ce *= ke[3] / E.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (ce *= E.cameraToCenterDistance / ke[3]), LR(H, oe, ce)) return !0;
11823
+ const Ee = $m([], [ee.x, ee.y, 0, 1], M);
11824
+ if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? ce *= Ee[3] / E.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (ce *= E.cameraToCenterDistance / Ee[3]), LR(H, oe, ce)) return !0;
11825
11825
  }
11826
11826
  return !1;
11827
11827
  }
@@ -12009,16 +12009,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12009
12009
  do {
12010
12010
  let oe, ce = G;
12011
12011
  G = null;
12012
- let ke = null;
12012
+ let Ee = null;
12013
12013
  for (X = 0; ce; ) {
12014
12014
  X++;
12015
12015
  let ye = ce, we = 0;
12016
12016
  for (let He = 0; He < ee && (we++, ye = ye.nextZ, ye); He++) ;
12017
12017
  let Pe = ee;
12018
- for (; we > 0 || Pe > 0 && ye; ) we !== 0 && (Pe === 0 || !ye || ce.z <= ye.z) ? (oe = ce, ce = ce.nextZ, we--) : (oe = ye, ye = ye.nextZ, Pe--), ke ? ke.nextZ = oe : G = oe, oe.prevZ = ke, ke = oe;
12018
+ for (; we > 0 || Pe > 0 && ye; ) we !== 0 && (Pe === 0 || !ye || ce.z <= ye.z) ? (oe = ce, ce = ce.nextZ, we--) : (oe = ye, ye = ye.nextZ, Pe--), Ee ? Ee.nextZ = oe : G = oe, oe.prevZ = Ee, Ee = oe;
12019
12019
  ce = ye;
12020
12020
  }
12021
- ke.nextZ = null, ee *= 2;
12021
+ Ee.nextZ = null, ee *= 2;
12022
12022
  } while (X > 1);
12023
12023
  }(H);
12024
12024
  }(u, p, b, S);
@@ -12046,9 +12046,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12046
12046
  function XR(u, c, d, p) {
12047
12047
  const b = u.prev, S = u, E = u.next;
12048
12048
  if (Ti(b, S, E) >= 0) return !1;
12049
- const T = b.x, M = S.x, R = E.x, N = b.y, $ = S.y, H = E.y, G = T < M ? T < R ? T : R : M < R ? M : R, X = N < $ ? N < H ? N : H : $ < H ? $ : H, ee = T > M ? T > R ? T : R : M > R ? M : R, oe = N > $ ? N > H ? N : H : $ > H ? $ : H, ce = pv(G, X, c, d, p), ke = pv(ee, oe, c, d, p);
12049
+ const T = b.x, M = S.x, R = E.x, N = b.y, $ = S.y, H = E.y, G = T < M ? T < R ? T : R : M < R ? M : R, X = N < $ ? N < H ? N : H : $ < H ? $ : H, ee = T > M ? T > R ? T : R : M > R ? M : R, oe = N > $ ? N > H ? N : H : $ > H ? $ : H, ce = pv(G, X, c, d, p), Ee = pv(ee, oe, c, d, p);
12050
12050
  let ye = u.prevZ, we = u.nextZ;
12051
- for (; ye && ye.z >= ce && we && we.z <= ke; ) {
12051
+ for (; ye && ye.z >= ce && we && we.z <= Ee; ) {
12052
12052
  if (ye.x >= G && ye.x <= ee && ye.y >= X && ye.y <= oe && ye !== b && ye !== E && hd(T, N, M, $, R, H, ye.x, ye.y) && Ti(ye.prev, ye, ye.next) >= 0 || (ye = ye.prevZ, we.x >= G && we.x <= ee && we.y >= X && we.y <= oe && we !== b && we !== E && hd(T, N, M, $, R, H, we.x, we.y) && Ti(we.prev, we, we.next) >= 0)) return !1;
12053
12053
  we = we.nextZ;
12054
12054
  }
@@ -12056,7 +12056,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12056
12056
  if (ye.x >= G && ye.x <= ee && ye.y >= X && ye.y <= oe && ye !== b && ye !== E && hd(T, N, M, $, R, H, ye.x, ye.y) && Ti(ye.prev, ye, ye.next) >= 0) return !1;
12057
12057
  ye = ye.prevZ;
12058
12058
  }
12059
- for (; we && we.z <= ke; ) {
12059
+ for (; we && we.z <= Ee; ) {
12060
12060
  if (we.x >= G && we.x <= ee && we.y >= X && we.y <= oe && we !== b && we !== E && hd(T, N, M, $, R, H, we.x, we.y) && Ti(we.prev, we, we.next) >= 0) return !1;
12061
12061
  we = we.nextZ;
12062
12062
  }
@@ -12359,9 +12359,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12359
12359
  for (M = function(G) {
12360
12360
  var X = G.length;
12361
12361
  if (X <= 1) return [G];
12362
- for (var ee, oe, ce = [], ke = 0; ke < X; ke++) {
12363
- var ye = dO(G[ke]);
12364
- ye !== 0 && (oe === void 0 && (oe = ye < 0), oe === ye < 0 ? (ee && ce.push(ee), ee = [G[ke]]) : ee.push(G[ke]));
12362
+ for (var ee, oe, ce = [], Ee = 0; Ee < X; Ee++) {
12363
+ var ye = dO(G[Ee]);
12364
+ ye !== 0 && (oe === void 0 && (oe = ye < 0), oe === ye < 0 ? (ee && ce.push(ee), ee = [G[Ee]]) : ee.push(G[Ee]));
12365
12365
  }
12366
12366
  return ee && ce.push(ee), ce;
12367
12367
  }(M), p = 0; p < M.length; p++) for (b = 0; b < M[p].length; b++) N(M[p][b]);
@@ -12449,11 +12449,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12449
12449
  for (let oe = 0; oe < X.length; oe++) {
12450
12450
  const ce = X[oe];
12451
12451
  if (oe >= 1) {
12452
- const ke = X[oe - 1];
12453
- if (!yO(ce, ke)) {
12452
+ const Ee = X[oe - 1];
12453
+ if (!yO(ce, Ee)) {
12454
12454
  R.vertexLength + 4 > _n.MAX_VERTEX_ARRAY_LENGTH && (R = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray));
12455
- const ye = ce.sub(ke)._perp()._unit(), we = ke.dist(ce);
12456
- ee + we > 32768 && (ee = 0), Sf(this.layoutVertexArray, ce.x, ce.y, ye.x, ye.y, 0, 0, ee), Sf(this.layoutVertexArray, ce.x, ce.y, ye.x, ye.y, 0, 1, ee), T.x += 2 * ce.x, T.y += 2 * ce.y, T.vertexCount += 2, ee += we, Sf(this.layoutVertexArray, ke.x, ke.y, ye.x, ye.y, 0, 0, ee), Sf(this.layoutVertexArray, ke.x, ke.y, ye.x, ye.y, 0, 1, ee), T.x += 2 * ke.x, T.y += 2 * ke.y, T.vertexCount += 2;
12455
+ const ye = ce.sub(Ee)._perp()._unit(), we = Ee.dist(ce);
12456
+ ee + we > 32768 && (ee = 0), Sf(this.layoutVertexArray, ce.x, ce.y, ye.x, ye.y, 0, 0, ee), Sf(this.layoutVertexArray, ce.x, ce.y, ye.x, ye.y, 0, 1, ee), T.x += 2 * ce.x, T.y += 2 * ce.y, T.vertexCount += 2, ee += we, Sf(this.layoutVertexArray, Ee.x, Ee.y, ye.x, ye.y, 0, 0, ee), Sf(this.layoutVertexArray, Ee.x, Ee.y, ye.x, ye.y, 0, 1, ee), T.x += 2 * Ee.x, T.y += 2 * Ee.y, T.vertexCount += 2;
12457
12457
  const Pe = R.vertexLength;
12458
12458
  this.indexArray.emplaceBack(Pe, Pe + 2, Pe + 1), this.indexArray.emplaceBack(Pe + 1, Pe + 2, Pe + 3), R.vertexLength += 4, R.primitiveLength += 2;
12459
12459
  }
@@ -12506,14 +12506,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12506
12506
  }
12507
12507
  queryIntersectsFeature(c, d, p, b, S, E, T, M) {
12508
12508
  const R = Fm(c, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), E.angle, T), N = this.paint.get("fill-extrusion-height").evaluate(d, p), $ = this.paint.get("fill-extrusion-base").evaluate(d, p), H = function(X, ee, oe, ce) {
12509
- const ke = [];
12509
+ const Ee = [];
12510
12510
  for (const ye of X) {
12511
12511
  const we = [ye.x, ye.y, 0, 1];
12512
- $m(we, we, ee), ke.push(new _(we[0] / we[3], we[1] / we[3]));
12512
+ $m(we, we, ee), Ee.push(new _(we[0] / we[3], we[1] / we[3]));
12513
12513
  }
12514
- return ke;
12514
+ return Ee;
12515
12515
  }(R, M), G = function(X, ee, oe, ce) {
12516
- const ke = [], ye = [], we = ce[8] * ee, Pe = ce[9] * ee, He = ce[10] * ee, dt = ce[11] * ee, Nt = ce[8] * oe, lt = ce[9] * oe, nt = ce[10] * oe, Tt = ce[11] * oe;
12516
+ const Ee = [], ye = [], we = ce[8] * ee, Pe = ce[9] * ee, He = ce[10] * ee, dt = ce[11] * ee, Nt = ce[8] * oe, lt = ce[9] * oe, nt = ce[10] * oe, Tt = ce[11] * oe;
12517
12517
  for (const _t of X) {
12518
12518
  const pt = [], Ne = [];
12519
12519
  for (const Mt of _t) {
@@ -12522,15 +12522,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12522
12522
  const yr = new _(Mr / Si, Dr / Si);
12523
12523
  yr.z = Ir / Si, Ne.push(yr);
12524
12524
  }
12525
- ke.push(pt), ye.push(Ne);
12525
+ Ee.push(pt), ye.push(Ne);
12526
12526
  }
12527
- return [ke, ye];
12527
+ return [Ee, ye];
12528
12528
  }(b, $, N, M);
12529
12529
  return function(X, ee, oe) {
12530
12530
  let ce = 1 / 0;
12531
12531
  M1(oe, ee) && (ce = J1(oe, ee[0]));
12532
- for (let ke = 0; ke < ee.length; ke++) {
12533
- const ye = ee[ke], we = X[ke];
12532
+ for (let Ee = 0; Ee < ee.length; Ee++) {
12533
+ const ye = ee[Ee], we = X[Ee];
12534
12534
  for (let Pe = 0; Pe < ye.length - 1; Pe++) {
12535
12535
  const He = ye[Pe], dt = [He, ye[Pe + 1], we[Pe + 1], we[Pe], He];
12536
12536
  A1(oe, dt) && (ce = Math.min(ce, J1(oe, dt)));
@@ -12550,8 +12550,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12550
12550
  let b;
12551
12551
  for (; !b || p.equals(b); ) if (b = c[d++], !b) return 1 / 0;
12552
12552
  for (; d < c.length; d++) {
12553
- const S = c[d], E = u[0], T = b.sub(p), M = S.sub(p), R = E.sub(p), N = kf(T, T), $ = kf(T, M), H = kf(M, M), G = kf(R, T), X = kf(R, M), ee = N * H - $ * $, oe = (H * G - $ * X) / ee, ce = (N * X - $ * G) / ee, ke = p.z * (1 - oe - ce) + b.z * oe + S.z * ce;
12554
- if (isFinite(ke)) return ke;
12553
+ const S = c[d], E = u[0], T = b.sub(p), M = S.sub(p), R = E.sub(p), N = kf(T, T), $ = kf(T, M), H = kf(M, M), G = kf(R, T), X = kf(R, M), ee = N * H - $ * $, oe = (H * G - $ * X) / ee, ce = (N * X - $ * G) / ee, Ee = p.z * (1 - oe - ce) + b.z * oe + S.z * ce;
12554
+ if (isFinite(Ee)) return Ee;
12555
12555
  }
12556
12556
  return 1 / 0;
12557
12557
  }
@@ -12633,9 +12633,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12633
12633
  for (let ce = R; ce < M; ce++) {
12634
12634
  if (X = ce === M - 1 ? T ? c[R + 1] : void 0 : c[ce + 1], X && c[ce].equals(X)) continue;
12635
12635
  oe && (ee = oe), H && (G = H), H = c[ce], oe = X ? X.sub(H)._unit()._perp() : ee, ee = ee || oe;
12636
- let ke = ee.add(oe);
12637
- ke.x === 0 && ke.y === 0 || ke._unit();
12638
- const ye = ee.x * oe.x + ee.y * oe.y, we = ke.x * oe.x + ke.y * oe.y, Pe = we !== 0 ? 1 / we : 1 / 0, He = 2 * Math.sqrt(2 - 2 * we), dt = we < CO && G && X, Nt = ee.x * oe.y - ee.y * oe.x > 0;
12636
+ let Ee = ee.add(oe);
12637
+ Ee.x === 0 && Ee.y === 0 || Ee._unit();
12638
+ const ye = ee.x * oe.x + ee.y * oe.y, we = Ee.x * oe.x + Ee.y * oe.y, Pe = we !== 0 ? 1 / we : 1 / 0, He = 2 * Math.sqrt(2 - 2 * we), dt = we < CO && G && X, Nt = ee.x * oe.y - ee.y * oe.x > 0;
12639
12639
  if (dt && ce > R) {
12640
12640
  const Tt = H.dist(G);
12641
12641
  if (Tt > 2 * N) {
@@ -12645,14 +12645,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12645
12645
  }
12646
12646
  const lt = G && X;
12647
12647
  let nt = lt ? p : T ? "butt" : b;
12648
- if (lt && nt === "round" && (Pe < E ? nt = "miter" : Pe <= 2 && (nt = "fakeround")), nt === "miter" && Pe > S && (nt = "bevel"), nt === "bevel" && (Pe > 2 && (nt = "flipbevel"), Pe < S && (nt = "miter")), G && this.updateDistance(G, H), nt === "miter") ke._mult(Pe), this.addCurrentVertex(H, ke, 0, 0, $);
12648
+ if (lt && nt === "round" && (Pe < E ? nt = "miter" : Pe <= 2 && (nt = "fakeround")), nt === "miter" && Pe > S && (nt = "bevel"), nt === "bevel" && (Pe > 2 && (nt = "flipbevel"), Pe < S && (nt = "miter")), G && this.updateDistance(G, H), nt === "miter") Ee._mult(Pe), this.addCurrentVertex(H, Ee, 0, 0, $);
12649
12649
  else if (nt === "flipbevel") {
12650
- if (Pe > 100) ke = oe.mult(-1);
12650
+ if (Pe > 100) Ee = oe.mult(-1);
12651
12651
  else {
12652
12652
  const Tt = Pe * ee.add(oe).mag() / ee.sub(oe).mag();
12653
- ke._perp()._mult(Tt * (Nt ? -1 : 1));
12653
+ Ee._perp()._mult(Tt * (Nt ? -1 : 1));
12654
12654
  }
12655
- this.addCurrentVertex(H, ke, 0, 0, $), this.addCurrentVertex(H, ke.mult(-1), 0, 0, $);
12655
+ this.addCurrentVertex(H, Ee, 0, 0, $), this.addCurrentVertex(H, Ee.mult(-1), 0, 0, $);
12656
12656
  } else if (nt === "bevel" || nt === "fakeround") {
12657
12657
  const Tt = -Math.sqrt(Pe * Pe - 1), _t = Nt ? Tt : 0, pt = Nt ? 0 : Tt;
12658
12658
  if (G && this.addCurrentVertex(H, ee, _t, pt, $), nt === "fakeround") {
@@ -12668,10 +12668,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12668
12668
  }
12669
12669
  }
12670
12670
  X && this.addCurrentVertex(H, oe, -_t, -pt, $);
12671
- } else if (nt === "butt") this.addCurrentVertex(H, ke, 0, 0, $);
12671
+ } else if (nt === "butt") this.addCurrentVertex(H, Ee, 0, 0, $);
12672
12672
  else if (nt === "square") {
12673
12673
  const Tt = G ? 1 : -1;
12674
- this.addCurrentVertex(H, ke, Tt, Tt, $);
12674
+ this.addCurrentVertex(H, Ee, Tt, Tt, $);
12675
12675
  } else nt === "round" && (G && (this.addCurrentVertex(H, ee, 0, 0, $), this.addCurrentVertex(H, ee, 1, 1, $, !0)), X && (this.addCurrentVertex(H, oe, -1, -1, $, !0), this.addCurrentVertex(H, oe, 0, 0, $)));
12676
12676
  if (dt && ce < M - 1) {
12677
12677
  const Tt = H.dist(X);
@@ -12747,7 +12747,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12747
12747
  for (let X = 0; X < $.length; X++) {
12748
12748
  const ee = $[X], oe = [];
12749
12749
  for (let ce = 0; ce < ee.length; ce++) {
12750
- const ke = ee[ce - 1], ye = ee[ce], we = ee[ce + 1], Pe = ce === 0 ? new _(0, 0) : ye.sub(ke)._unit()._perp(), He = ce === ee.length - 1 ? new _(0, 0) : we.sub(ye)._unit()._perp(), dt = Pe._add(He)._unit(), Nt = dt.x * He.x + dt.y * He.y;
12750
+ const Ee = ee[ce - 1], ye = ee[ce], we = ee[ce + 1], Pe = ce === 0 ? new _(0, 0) : ye.sub(Ee)._unit()._perp(), He = ce === ee.length - 1 ? new _(0, 0) : we.sub(ye)._unit()._perp(), dt = Pe._add(He)._unit(), Nt = dt.x * He.x + dt.y * He.y;
12751
12751
  Nt !== 0 && dt._mult(1 / Nt), oe.push(dt._mult(H)._add(ye));
12752
12752
  }
12753
12753
  G.push(oe);
@@ -13248,7 +13248,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13248
13248
  const ee = gd.fromFeature(u, b);
13249
13249
  let oe;
13250
13250
  $ === a.ah.vertical && ee.verticalizePunctuation();
13251
- const { processBidirectionalText: ce, processStyledBidirectionalText: ke } = Wr;
13251
+ const { processBidirectionalText: ce, processStyledBidirectionalText: Ee } = Wr;
13252
13252
  if (ce && ee.sections.length === 1) {
13253
13253
  oe = [];
13254
13254
  const Pe = ce(ee.toString(), Cv(ee, R, S, c, p, G));
@@ -13258,9 +13258,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13258
13258
  for (let Nt = 0; Nt < He.length; Nt++) dt.sectionIndex.push(0);
13259
13259
  oe.push(dt);
13260
13260
  }
13261
- } else if (ke) {
13261
+ } else if (Ee) {
13262
13262
  oe = [];
13263
- const Pe = ke(ee.text, ee.sectionIndex, Cv(ee, R, S, c, p, G));
13263
+ const Pe = Ee(ee.text, ee.sectionIndex, Cv(ee, R, S, c, p, G));
13264
13264
  for (const He of Pe) {
13265
13265
  const dt = new gd();
13266
13266
  dt.text = He[0], dt.sectionIndex = He[1], dt.sections = ee.sections, oe.push(dt);
@@ -13361,9 +13361,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13361
13361
  if (!u) return [];
13362
13362
  const E = [], T = function($, H, G, X, ee, oe) {
13363
13363
  let ce = 0;
13364
- for (let ke = 0; ke < $.length(); ke++) {
13365
- const ye = $.getSection(ke);
13366
- ce += mS($.getCharCode(ke), ye, X, ee, H, oe);
13364
+ for (let Ee = 0; Ee < $.length(); Ee++) {
13365
+ const ye = $.getSection(Ee);
13366
+ ce += mS($.getCharCode(Ee), ye, X, ee, H, oe);
13367
13367
  }
13368
13368
  return ce / Math.max(1, Math.ceil(ce / G));
13369
13369
  }(u, c, d, p, b, S), M = u.text.indexOf("​") >= 0;
@@ -13523,7 +13523,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13523
13523
  const b = this.layers[0], S = b.layout, E = S.get("text-font"), T = S.get("text-field"), M = S.get("icon-image"), R = (T.value.kind !== "constant" || T.value.value instanceof Vr && !T.value.value.isEmpty() || T.value.value.toString().length > 0) && (E.value.kind !== "constant" || E.value.value.length > 0), N = M.value.kind !== "constant" || !!M.value.value || Object.keys(M.parameters).length > 0, $ = S.get("symbol-sort-key");
13524
13524
  if (this.features = [], !R && !N) return;
13525
13525
  const H = d.iconDependencies, G = d.glyphDependencies, X = d.availableImages, ee = new ri(this.zoom);
13526
- for (const { feature: oe, id: ce, index: ke, sourceLayerIndex: ye } of c) {
13526
+ for (const { feature: oe, id: ce, index: Ee, sourceLayerIndex: ye } of c) {
13527
13527
  const we = b._featureFilter.needGeometry, Pe = Nc(oe, we);
13528
13528
  if (!b._featureFilter.filter(ee, Pe, p)) continue;
13529
13529
  let He, dt;
@@ -13537,7 +13537,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13537
13537
  }
13538
13538
  if (!He && !dt) continue;
13539
13539
  const Nt = this.sortFeaturesByKey ? $.evaluate(Pe, {}, p) : void 0;
13540
- if (this.features.push({ id: ce, text: He, icon: dt, index: ke, sourceLayerIndex: ye, geometry: Pe.geometry, properties: oe.properties, type: KO[oe.type], sortKey: Nt }), dt && (H[dt.name] = !0), He) {
13540
+ if (this.features.push({ id: ce, text: He, icon: dt, index: Ee, sourceLayerIndex: ye, geometry: Pe.geometry, properties: oe.properties, type: KO[oe.type], sortKey: Nt }), dt && (H[dt.name] = !0), He) {
13541
13541
  const lt = E.evaluate(Pe, {}, p).join(","), nt = S.get("text-rotation-alignment") !== "viewport" && S.get("symbol-placement") !== "point";
13542
13542
  this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(a.ah.vertical) >= 0;
13543
13543
  for (const Tt of He.sections) if (Tt.image) H[Tt.image.name] = !0;
@@ -13548,14 +13548,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13548
13548
  }
13549
13549
  }
13550
13550
  S.get("symbol-placement") === "line" && (this.features = function(oe) {
13551
- const ce = {}, ke = {}, ye = [];
13551
+ const ce = {}, Ee = {}, ye = [];
13552
13552
  let we = 0;
13553
13553
  function Pe(lt) {
13554
13554
  ye.push(oe[lt]), we++;
13555
13555
  }
13556
13556
  function He(lt, nt, Tt) {
13557
- const _t = ke[lt];
13558
- return delete ke[lt], ke[nt] = _t, ye[_t].geometry[0].pop(), ye[_t].geometry[0] = ye[_t].geometry[0].concat(Tt[0]), _t;
13557
+ const _t = Ee[lt];
13558
+ return delete Ee[lt], Ee[nt] = _t, ye[_t].geometry[0].pop(), ye[_t].geometry[0] = ye[_t].geometry[0].concat(Tt[0]), _t;
13559
13559
  }
13560
13560
  function dt(lt, nt, Tt) {
13561
13561
  const _t = ce[nt];
@@ -13572,10 +13572,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13572
13572
  continue;
13573
13573
  }
13574
13574
  const pt = Nt(_t, Tt), Ne = Nt(_t, Tt, !0);
13575
- if (pt in ke && Ne in ce && ke[pt] !== ce[Ne]) {
13575
+ if (pt in Ee && Ne in ce && Ee[pt] !== ce[Ne]) {
13576
13576
  const Mt = dt(pt, Ne, Tt), Ct = He(pt, Ne, ye[Mt].geometry);
13577
- delete ce[pt], delete ke[Ne], ke[Nt(_t, ye[Ct].geometry, !0)] = Ct, ye[Mt].geometry = null;
13578
- } else pt in ke ? He(pt, Ne, Tt) : Ne in ce ? dt(pt, Ne, Tt) : (Pe(lt), ce[pt] = we - 1, ke[Ne] = we - 1);
13577
+ delete ce[pt], delete Ee[Ne], Ee[Nt(_t, ye[Ct].geometry, !0)] = Ct, ye[Mt].geometry = null;
13578
+ } else pt in Ee ? He(pt, Ne, Tt) : Ne in ce ? dt(pt, Ne, Tt) : (Pe(lt), ce[pt] = we - 1, Ee[Ne] = we - 1);
13579
13579
  }
13580
13580
  return ye.filter((lt) => lt.geometry);
13581
13581
  }(this.features)), this.sortFeaturesByKey && this.features.sort((oe, ce) => oe.sortKey - ce.sortKey);
@@ -13613,10 +13613,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13613
13613
  return { lineStartIndex: p, lineLength: this.lineVertexArray.length - p };
13614
13614
  }
13615
13615
  addSymbols(c, d, p, b, S, E, T, M, R, N, $, H) {
13616
- const G = c.indexArray, X = c.layoutVertexArray, ee = c.segments.prepareSegment(4 * d.length, X, G, this.canOverlap ? E.sortKey : void 0), oe = this.glyphOffsetArray.length, ce = ee.vertexLength, ke = this.allowVerticalPlacement && T === a.ah.vertical ? Math.PI / 2 : 0, ye = E.text && E.text.sections;
13616
+ const G = c.indexArray, X = c.layoutVertexArray, ee = c.segments.prepareSegment(4 * d.length, X, G, this.canOverlap ? E.sortKey : void 0), oe = this.glyphOffsetArray.length, ce = ee.vertexLength, Ee = this.allowVerticalPlacement && T === a.ah.vertical ? Math.PI / 2 : 0, ye = E.text && E.text.sections;
13617
13617
  for (let we = 0; we < d.length; we++) {
13618
13618
  const { tl: Pe, tr: He, bl: dt, br: Nt, tex: lt, pixelOffsetTL: nt, pixelOffsetBR: Tt, minFontScaleX: _t, minFontScaleY: pt, glyphOffset: Ne, isSDF: Mt, sectionIndex: Ct } = d[we], Wt = ee.vertexLength, Kn = Ne[1];
13619
- Ym(X, M.x, M.y, Pe.x, Kn + Pe.y, lt.x, lt.y, p, Mt, nt.x, nt.y, _t, pt), Ym(X, M.x, M.y, He.x, Kn + He.y, lt.x + lt.w, lt.y, p, Mt, Tt.x, nt.y, _t, pt), Ym(X, M.x, M.y, dt.x, Kn + dt.y, lt.x, lt.y + lt.h, p, Mt, nt.x, Tt.y, _t, pt), Ym(X, M.x, M.y, Nt.x, Kn + Nt.y, lt.x + lt.w, lt.y + lt.h, p, Mt, Tt.x, Tt.y, _t, pt), Mv(c.dynamicLayoutVertexArray, M, ke), G.emplaceBack(Wt, Wt + 1, Wt + 2), G.emplaceBack(Wt + 1, Wt + 2, Wt + 3), ee.vertexLength += 4, ee.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(Ne[0]), we !== d.length - 1 && Ct === d[we + 1].sectionIndex || c.programConfigurations.populatePaintArrays(X.length, E, E.index, {}, H, ye && ye[Ct]);
13619
+ Ym(X, M.x, M.y, Pe.x, Kn + Pe.y, lt.x, lt.y, p, Mt, nt.x, nt.y, _t, pt), Ym(X, M.x, M.y, He.x, Kn + He.y, lt.x + lt.w, lt.y, p, Mt, Tt.x, nt.y, _t, pt), Ym(X, M.x, M.y, dt.x, Kn + dt.y, lt.x, lt.y + lt.h, p, Mt, nt.x, Tt.y, _t, pt), Ym(X, M.x, M.y, Nt.x, Kn + Nt.y, lt.x + lt.w, lt.y + lt.h, p, Mt, Tt.x, Tt.y, _t, pt), Mv(c.dynamicLayoutVertexArray, M, Ee), G.emplaceBack(Wt, Wt + 1, Wt + 2), G.emplaceBack(Wt + 1, Wt + 2, Wt + 3), ee.vertexLength += 4, ee.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(Ne[0]), we !== d.length - 1 && Ct === d[we + 1].sectionIndex || c.programConfigurations.populatePaintArrays(X.length, E, E.index, {}, H, ye && ye[Ct]);
13620
13620
  }
13621
13621
  c.placedSymbolArray.emplaceBack(M.x, M.y, oe, this.glyphOffsetArray.length - oe, ce, R, N, M.segment, p ? p[0] : 0, p ? p[1] : 0, b[0], b[1], T, 0, !1, 0, $);
13622
13622
  }
@@ -13872,7 +13872,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13872
13872
  if (this.lng = +c, this.lat = +d, this.lat > 90 || this.lat < -90) throw new Error("Invalid LngLat latitude value: must be between -90 and 90");
13873
13873
  }
13874
13874
  wrap() {
13875
- return new Rl(be(this.lng, -180, 180), this.lat);
13875
+ return new Rl(ve(this.lng, -180, 180), this.lat);
13876
13876
  }
13877
13877
  toArray() {
13878
13878
  return [this.lng, this.lat];
@@ -14142,7 +14142,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14142
14142
  }
14143
14143
  query(c, d, p, b) {
14144
14144
  this.loadVTLayers();
14145
- const S = c.params || {}, E = Di / c.tileSize / c.scale, T = Yh(S.filter), M = c.queryGeometry, R = c.queryPadding * E, N = FS(M), $ = this.grid.query(N.minX - R, N.minY - R, N.maxX + R, N.maxY + R), H = FS(c.cameraQueryGeometry), G = this.grid3D.query(H.minX - R, H.minY - R, H.maxX + R, H.maxY + R, (oe, ce, ke, ye) => function(we, Pe, He, dt, Nt) {
14145
+ const S = c.params || {}, E = Di / c.tileSize / c.scale, T = Yh(S.filter), M = c.queryGeometry, R = c.queryPadding * E, N = FS(M), $ = this.grid.query(N.minX - R, N.minY - R, N.maxX + R, N.maxY + R), H = FS(c.cameraQueryGeometry), G = this.grid3D.query(H.minX - R, H.minY - R, H.maxX + R, H.maxY + R, (oe, ce, Ee, ye) => function(we, Pe, He, dt, Nt) {
14146
14146
  for (const nt of we) if (Pe <= nt.x && He <= nt.y && dt >= nt.x && Nt >= nt.y) return !0;
14147
14147
  const lt = [new _(Pe, He), new _(Pe, Nt), new _(dt, Nt), new _(dt, He)];
14148
14148
  if (we.length > 2) {
@@ -14150,7 +14150,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14150
14150
  }
14151
14151
  for (let nt = 0; nt < we.length - 1; nt++) if (FR(we[nt], we[nt + 1], lt)) return !0;
14152
14152
  return !1;
14153
- }(c.cameraQueryGeometry, oe - R, ce - R, ke + R, ye + R));
14153
+ }(c.cameraQueryGeometry, oe - R, ce - R, Ee + R, ye + R));
14154
14154
  for (const oe of G) $.push(oe);
14155
14155
  $.sort(oz);
14156
14156
  const X = {};
@@ -14159,16 +14159,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14159
14159
  const ce = $[oe];
14160
14160
  if (ce === ee) continue;
14161
14161
  ee = ce;
14162
- const ke = this.featureIndexArray.get(ce);
14162
+ const Ee = this.featureIndexArray.get(ce);
14163
14163
  let ye = null;
14164
- this.loadMatchingFeature(X, ke.bucketIndex, ke.sourceLayerIndex, ke.featureIndex, T, S.layers, S.availableImages, d, p, b, (we, Pe, He) => (ye || (ye = Lc(we)), Pe.queryIntersectsFeature(M, we, He, ye, this.z, c.transform, E, c.pixelPosMatrix)));
14164
+ this.loadMatchingFeature(X, Ee.bucketIndex, Ee.sourceLayerIndex, Ee.featureIndex, T, S.layers, S.availableImages, d, p, b, (we, Pe, He) => (ye || (ye = Lc(we)), Pe.queryIntersectsFeature(M, we, He, ye, this.z, c.transform, E, c.pixelPosMatrix)));
14165
14165
  }
14166
14166
  return X;
14167
14167
  }
14168
14168
  loadMatchingFeature(c, d, p, b, S, E, T, M, R, N, $) {
14169
14169
  const H = this.bucketLayerIDs[d];
14170
14170
  if (E && !function(oe, ce) {
14171
- for (let ke = 0; ke < oe.length; ke++) if (ce.indexOf(oe[ke]) >= 0) return !0;
14171
+ for (let Ee = 0; Ee < oe.length; Ee++) if (ce.indexOf(oe[Ee]) >= 0) return !0;
14172
14172
  return !1;
14173
14173
  }(E, H)) return;
14174
14174
  const G = this.sourceLayerCoder.decode(p), X = this.vtLayers[G].feature(b);
@@ -14180,13 +14180,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14180
14180
  for (let oe = 0; oe < H.length; oe++) {
14181
14181
  const ce = H[oe];
14182
14182
  if (E && E.indexOf(ce) < 0) continue;
14183
- const ke = M[ce];
14184
- if (!ke) continue;
14183
+ const Ee = M[ce];
14184
+ if (!Ee) continue;
14185
14185
  let ye = {};
14186
- ee && N && (ye = N.getState(ke.sourceLayer || "_geojsonTileLayer", ee));
14186
+ ee && N && (ye = N.getState(Ee.sourceLayer || "_geojsonTileLayer", ee));
14187
14187
  const we = Ae({}, R[ce]);
14188
- we.paint = BS(we.paint, ke.paint, X, ye, T), we.layout = BS(we.layout, ke.layout, X, ye, T);
14189
- const Pe = !$ || $(X, ke, ye);
14188
+ we.paint = BS(we.paint, Ee.paint, X, ye, T), we.layout = BS(we.layout, Ee.layout, X, ye, T);
14189
+ const Pe = !$ || $(X, Ee, ye);
14190
14190
  if (!Pe) continue;
14191
14191
  const He = new LS(X, this.z, this.x, this.y, ee);
14192
14192
  He.layer = we;
@@ -14297,12 +14297,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14297
14297
  const R = S / 2, N = jS(u);
14298
14298
  let $ = 0, H = c - d, G = [];
14299
14299
  for (let X = 0; X < u.length - 1; X++) {
14300
- const ee = u[X], oe = u[X + 1], ce = ee.dist(oe), ke = oe.angleTo(ee);
14300
+ const ee = u[X], oe = u[X + 1], ce = ee.dist(oe), Ee = oe.angleTo(ee);
14301
14301
  for (; H + d < $ + ce; ) {
14302
14302
  H += d;
14303
14303
  const ye = (H - $) / ce, we = Er.number(ee.x, oe.x, ye), Pe = Er.number(ee.y, oe.y, ye);
14304
14304
  if (we >= 0 && we < M && Pe >= 0 && Pe < M && H - R >= 0 && H + R <= N) {
14305
- const He = new Ol(we, Pe, ke, X);
14305
+ const He = new Ol(we, Pe, Ee, X);
14306
14306
  He._round(), p && !VS(u, He, S, p, b) || G.push(He);
14307
14307
  }
14308
14308
  }
@@ -14316,13 +14316,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14316
14316
  const b = [], S = u.image, E = S.pixelRatio, T = S.paddedRect.w - 2 * vd, M = S.paddedRect.h - 2 * vd;
14317
14317
  let R = { x1: u.left, y1: u.top, x2: u.right, y2: u.bottom };
14318
14318
  const N = S.stretchX || [[0, T]], $ = S.stretchY || [[0, M]], H = (Ne, Mt) => Ne + Mt[1] - Mt[0], G = N.reduce(H, 0), X = $.reduce(H, 0), ee = T - G, oe = M - X;
14319
- let ce = 0, ke = G, ye = 0, we = X, Pe = 0, He = ee, dt = 0, Nt = oe;
14319
+ let ce = 0, Ee = G, ye = 0, we = X, Pe = 0, He = ee, dt = 0, Nt = oe;
14320
14320
  if (S.content && p) {
14321
14321
  const Ne = S.content, Mt = Ne[2] - Ne[0], Ct = Ne[3] - Ne[1];
14322
- (S.textFitWidth || S.textFitHeight) && (R = bS(u)), ce = Xm(N, 0, Ne[0]), ye = Xm($, 0, Ne[1]), ke = Xm(N, Ne[0], Ne[2]), we = Xm($, Ne[1], Ne[3]), Pe = Ne[0] - ce, dt = Ne[1] - ye, He = Mt - ke, Nt = Ct - we;
14322
+ (S.textFitWidth || S.textFitHeight) && (R = bS(u)), ce = Xm(N, 0, Ne[0]), ye = Xm($, 0, Ne[1]), Ee = Xm(N, Ne[0], Ne[2]), we = Xm($, Ne[1], Ne[3]), Pe = Ne[0] - ce, dt = Ne[1] - ye, He = Mt - Ee, Nt = Ct - we;
14323
14323
  }
14324
14324
  const lt = R.x1, nt = R.y1, Tt = R.x2 - lt, _t = R.y2 - nt, pt = (Ne, Mt, Ct, Wt) => {
14325
- const Kn = Km(Ne.stretch - ce, ke, Tt, lt), Yn = Jm(Ne.fixed - Pe, He, Ne.stretch, G), Ni = Km(Mt.stretch - ye, we, _t, nt), eo = Jm(Mt.fixed - dt, Nt, Mt.stretch, X), nr = Km(Ct.stretch - ce, ke, Tt, lt), Bi = Jm(Ct.fixed - Pe, He, Ct.stretch, G), Mr = Km(Wt.stretch - ye, we, _t, nt), Dr = Jm(Wt.fixed - dt, Nt, Wt.stretch, X), Ir = new _(Kn, Ni), Si = new _(nr, Ni), Fi = new _(nr, Mr), yr = new _(Kn, Mr), ir = new _(Yn / E, eo / E), Pr = new _(Bi / E, Dr / E), rr = c * Math.PI / 180;
14325
+ const Kn = Km(Ne.stretch - ce, Ee, Tt, lt), Yn = Jm(Ne.fixed - Pe, He, Ne.stretch, G), Ni = Km(Mt.stretch - ye, we, _t, nt), eo = Jm(Mt.fixed - dt, Nt, Mt.stretch, X), nr = Km(Ct.stretch - ce, Ee, Tt, lt), Bi = Jm(Ct.fixed - Pe, He, Ct.stretch, G), Mr = Km(Wt.stretch - ye, we, _t, nt), Dr = Jm(Wt.fixed - dt, Nt, Wt.stretch, X), Ir = new _(Kn, Ni), Si = new _(nr, Ni), Fi = new _(nr, Mr), yr = new _(Kn, Mr), ir = new _(Yn / E, eo / E), Pr = new _(Bi / E, Dr / E), rr = c * Math.PI / 180;
14326
14326
  if (rr) {
14327
14327
  const In = Math.sin(rr), ti = Math.cos(rr), li = [ti, -In, In, ti];
14328
14328
  Ir._matMult(li), Si._matMult(li), yr._matMult(li), Fi._matMult(li);
@@ -14372,8 +14372,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14372
14372
  H.y1 = H.y1 * T - M[0], H.y2 = H.y2 * T + M[2], H.x1 = H.x1 * T - M[3], H.x2 = H.x2 * T + M[1];
14373
14373
  const G = E.collisionPadding;
14374
14374
  if (G && (H.x1 -= G[0] * T, H.y1 -= G[1] * T, H.x2 += G[2] * T, H.y2 += G[3] * T), N) {
14375
- const X = new _(H.x1, H.y1), ee = new _(H.x2, H.y1), oe = new _(H.x1, H.y2), ce = new _(H.x2, H.y2), ke = N * Math.PI / 180;
14376
- X._rotate(ke), ee._rotate(ke), oe._rotate(ke), ce._rotate(ke), H.x1 = Math.min(X.x, ee.x, oe.x, ce.x), H.x2 = Math.max(X.x, ee.x, oe.x, ce.x), H.y1 = Math.min(X.y, ee.y, oe.y, ce.y), H.y2 = Math.max(X.y, ee.y, oe.y, ce.y);
14375
+ const X = new _(H.x1, H.y1), ee = new _(H.x2, H.y1), oe = new _(H.x1, H.y2), ce = new _(H.x2, H.y2), Ee = N * Math.PI / 180;
14376
+ X._rotate(Ee), ee._rotate(Ee), oe._rotate(Ee), ce._rotate(Ee), H.x1 = Math.min(X.x, ee.x, oe.x, ce.x), H.x2 = Math.max(X.x, ee.x, oe.x, ce.x), H.y1 = Math.min(X.y, ee.y, oe.y, ce.y), H.y2 = Math.max(X.y, ee.y, oe.y, ce.y);
14377
14377
  }
14378
14378
  c.emplaceBack(d.x, d.y, H.x1, H.y1, H.x2, H.y2, p, b, S);
14379
14379
  }
@@ -14430,8 +14430,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14430
14430
  let $ = function(G) {
14431
14431
  let X = 0, ee = 0, oe = 0;
14432
14432
  const ce = G[0];
14433
- for (let ke = 0, ye = ce.length, we = ye - 1; ke < ye; we = ke++) {
14434
- const Pe = ce[ke], He = ce[we], dt = Pe.x * He.y - He.x * Pe.y;
14433
+ for (let Ee = 0, ye = ce.length, we = ye - 1; Ee < ye; we = Ee++) {
14434
+ const Pe = ce[Ee], He = ce[we], dt = Pe.x * He.y - He.x * Pe.y;
14435
14435
  ee += (Pe.x + He.x) * dt, oe += (Pe.y + He.y) * dt, X += 3 * dt;
14436
14436
  }
14437
14437
  return new bd(ee / X, oe / X, 0, G);
@@ -14561,7 +14561,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14561
14561
  function hz(u, c, d, p, b, S, E, T, M, R, N) {
14562
14562
  let $ = S.textMaxSize.evaluate(c, {});
14563
14563
  $ === void 0 && ($ = E);
14564
- const H = u.layers[0].layout, G = H.get("icon-offset").evaluate(c, {}, N), X = KS(d.horizontal), ee = E / 24, oe = u.tilePixelRatio * ee, ce = u.tilePixelRatio * $ / 24, ke = u.tilePixelRatio * T, ye = u.tilePixelRatio * H.get("symbol-spacing"), we = H.get("text-padding") * u.tilePixelRatio, Pe = function(Ne, Mt, Ct, Wt = 1) {
14564
+ const H = u.layers[0].layout, G = H.get("icon-offset").evaluate(c, {}, N), X = KS(d.horizontal), ee = E / 24, oe = u.tilePixelRatio * ee, ce = u.tilePixelRatio * $ / 24, Ee = u.tilePixelRatio * T, ye = u.tilePixelRatio * H.get("symbol-spacing"), we = H.get("text-padding") * u.tilePixelRatio, Pe = function(Ne, Mt, Ct, Wt = 1) {
14565
14565
  const Kn = Ne.get("icon-padding").evaluate(Mt, {}, Ct), Yn = Kn && Kn.values;
14566
14566
  return [Yn[0] * Wt, Yn[1] * Wt, Yn[2] * Wt, Yn[3] * Wt];
14567
14567
  }(H, c, N, u.tilePixelRatio), He = H.get("text-max-angle") / 180 * Math.PI, dt = H.get("text-rotation-alignment") !== "viewport" && H.get("symbol-placement") !== "point", Nt = H.get("icon-rotation-alignment") === "map" && H.get("symbol-placement") !== "point", lt = H.get("symbol-placement"), nt = ye / 2, Tt = H.get("icon-text-fit");
@@ -14611,7 +14611,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14611
14611
  return [Fc, vr.length];
14612
14612
  }(Ct.textAnchorOffsets, Sz);
14613
14613
  Ct.symbolInstances.emplaceBack(Wt.x, Wt.y, Ta.right >= 0 ? Ta.right : -1, Ta.center >= 0 ? Ta.center : -1, Ta.left >= 0 ? Ta.left : -1, Ta.vertical || -1, Wv, qv, ik, mz, gz, yz, vz, bz, _z, xz, wz, Dr, tk, nk, Ca, Rf, sk, 0, Fi, xo, kz, Ez);
14614
- }(u, Mt, Ne, d, p, b, _t, u.layers[0], u.collisionBoxArray, c.index, c.sourceLayerIndex, u.index, oe, [we, we, we, we], dt, M, ke, Pe, Nt, G, c, S, R, N, E);
14614
+ }(u, Mt, Ne, d, p, b, _t, u.layers[0], u.collisionBoxArray, c.index, c.sourceLayerIndex, u.index, oe, [we, we, we, we], dt, M, Ee, Pe, Nt, G, c, S, R, N, E);
14615
14615
  };
14616
14616
  if (lt === "line") for (const Ne of $S(c.geometry, 0, 0, Di, Di)) {
14617
14617
  const Mt = lz(Ne, ye, He, d.vertical || X, p, 24, ce, u.overscaling, Di);
@@ -14630,7 +14630,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14630
14630
  else if (c.type === "Point") for (const Ne of c.geometry) for (const Mt of Ne) pt([Mt], new Ol(Mt.x, Mt.y, 0));
14631
14631
  }
14632
14632
  function XS(u, c, d, p, b, S, E, T, M, R, N, $, H, G, X) {
14633
- const ee = function(ke, ye, we, Pe, He, dt, Nt, lt) {
14633
+ const ee = function(Ee, ye, we, Pe, He, dt, Nt, lt) {
14634
14634
  const nt = Pe.layout.get("text-rotate").evaluate(dt, {}) * Math.PI / 180, Tt = [];
14635
14635
  for (const _t of ye.positionedLines) for (const pt of _t.positionedGlyphs) {
14636
14636
  if (!pt.rect) continue;
@@ -14660,7 +14660,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14660
14660
  }(0, d, T, b, S, E, p, u.allowVerticalPlacement), oe = u.textSizeData;
14661
14661
  let ce = null;
14662
14662
  oe.kind === "source" ? (ce = [jo * b.layout.get("text-size").evaluate(E, {})], ce[0] > Pl && ct(`${u.layerIds[0]}: Value for "text-size" is >= ${Af}. Reduce your "text-size".`)) : oe.kind === "composite" && (ce = [jo * G.compositeTextSizes[0].evaluate(E, {}, X), jo * G.compositeTextSizes[1].evaluate(E, {}, X)], (ce[0] > Pl || ce[1] > Pl) && ct(`${u.layerIds[0]}: Value for "text-size" is >= ${Af}. Reduce your "text-size".`)), u.addSymbols(u.text, ee, ce, T, S, E, R, c, M.lineStartIndex, M.lineLength, H, X);
14663
- for (const ke of N) $[ke] = u.text.placedSymbolArray.length - 1;
14663
+ for (const Ee of N) $[Ee] = u.text.placedSymbolArray.length - 1;
14664
14664
  return 4 * ee.length;
14665
14665
  }
14666
14666
  function KS(u) {
@@ -14711,8 +14711,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14711
14711
  const N = M.pop() || 0, $ = M.pop() || 0, H = M.pop() || 0;
14712
14712
  if ($ - H <= T) {
14713
14713
  for (let oe = H; oe <= $; oe++) {
14714
- const ce = E[2 * oe], ke = E[2 * oe + 1];
14715
- ce >= c && ce <= p && ke >= d && ke <= b && R.push(S[oe]);
14714
+ const ce = E[2 * oe], Ee = E[2 * oe + 1];
14715
+ ce >= c && ce <= p && Ee >= d && Ee <= b && R.push(S[oe]);
14716
14716
  }
14717
14717
  continue;
14718
14718
  }
@@ -14873,8 +14873,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14873
14873
  }
14874
14874
  return d;
14875
14875
  }, a.N = Rl, a.O = MS, a.P = _, a.Q = DS, a.R = Ms, a.S = Ds, a.T = td, a.U = F, a.V = U, a.W = kn, a.X = Di, a.Y = A, a.Z = Mf, a._ = o, a.a = Ln, a.a$ = function(u, c) {
14876
- var d = u[0], p = u[1], b = u[2], S = u[3], E = u[4], T = u[5], M = u[6], R = u[7], N = u[8], $ = u[9], H = u[10], G = u[11], X = u[12], ee = u[13], oe = u[14], ce = u[15], ke = c[0], ye = c[1], we = c[2], Pe = c[3], He = c[4], dt = c[5], Nt = c[6], lt = c[7], nt = c[8], Tt = c[9], _t = c[10], pt = c[11], Ne = c[12], Mt = c[13], Ct = c[14], Wt = c[15];
14877
- return Math.abs(d - ke) <= Ar * Math.max(1, Math.abs(d), Math.abs(ke)) && Math.abs(p - ye) <= Ar * Math.max(1, Math.abs(p), Math.abs(ye)) && Math.abs(b - we) <= Ar * Math.max(1, Math.abs(b), Math.abs(we)) && Math.abs(S - Pe) <= Ar * Math.max(1, Math.abs(S), Math.abs(Pe)) && Math.abs(E - He) <= Ar * Math.max(1, Math.abs(E), Math.abs(He)) && Math.abs(T - dt) <= Ar * Math.max(1, Math.abs(T), Math.abs(dt)) && Math.abs(M - Nt) <= Ar * Math.max(1, Math.abs(M), Math.abs(Nt)) && Math.abs(R - lt) <= Ar * Math.max(1, Math.abs(R), Math.abs(lt)) && Math.abs(N - nt) <= Ar * Math.max(1, Math.abs(N), Math.abs(nt)) && Math.abs($ - Tt) <= Ar * Math.max(1, Math.abs($), Math.abs(Tt)) && Math.abs(H - _t) <= Ar * Math.max(1, Math.abs(H), Math.abs(_t)) && Math.abs(G - pt) <= Ar * Math.max(1, Math.abs(G), Math.abs(pt)) && Math.abs(X - Ne) <= Ar * Math.max(1, Math.abs(X), Math.abs(Ne)) && Math.abs(ee - Mt) <= Ar * Math.max(1, Math.abs(ee), Math.abs(Mt)) && Math.abs(oe - Ct) <= Ar * Math.max(1, Math.abs(oe), Math.abs(Ct)) && Math.abs(ce - Wt) <= Ar * Math.max(1, Math.abs(ce), Math.abs(Wt));
14876
+ var d = u[0], p = u[1], b = u[2], S = u[3], E = u[4], T = u[5], M = u[6], R = u[7], N = u[8], $ = u[9], H = u[10], G = u[11], X = u[12], ee = u[13], oe = u[14], ce = u[15], Ee = c[0], ye = c[1], we = c[2], Pe = c[3], He = c[4], dt = c[5], Nt = c[6], lt = c[7], nt = c[8], Tt = c[9], _t = c[10], pt = c[11], Ne = c[12], Mt = c[13], Ct = c[14], Wt = c[15];
14877
+ return Math.abs(d - Ee) <= Ar * Math.max(1, Math.abs(d), Math.abs(Ee)) && Math.abs(p - ye) <= Ar * Math.max(1, Math.abs(p), Math.abs(ye)) && Math.abs(b - we) <= Ar * Math.max(1, Math.abs(b), Math.abs(we)) && Math.abs(S - Pe) <= Ar * Math.max(1, Math.abs(S), Math.abs(Pe)) && Math.abs(E - He) <= Ar * Math.max(1, Math.abs(E), Math.abs(He)) && Math.abs(T - dt) <= Ar * Math.max(1, Math.abs(T), Math.abs(dt)) && Math.abs(M - Nt) <= Ar * Math.max(1, Math.abs(M), Math.abs(Nt)) && Math.abs(R - lt) <= Ar * Math.max(1, Math.abs(R), Math.abs(lt)) && Math.abs(N - nt) <= Ar * Math.max(1, Math.abs(N), Math.abs(nt)) && Math.abs($ - Tt) <= Ar * Math.max(1, Math.abs($), Math.abs(Tt)) && Math.abs(H - _t) <= Ar * Math.max(1, Math.abs(H), Math.abs(_t)) && Math.abs(G - pt) <= Ar * Math.max(1, Math.abs(G), Math.abs(pt)) && Math.abs(X - Ne) <= Ar * Math.max(1, Math.abs(X), Math.abs(Ne)) && Math.abs(ee - Mt) <= Ar * Math.max(1, Math.abs(ee), Math.abs(Mt)) && Math.abs(oe - Ct) <= Ar * Math.max(1, Math.abs(oe), Math.abs(Ct)) && Math.abs(ce - Wt) <= Ar * Math.max(1, Math.abs(ce), Math.abs(Wt));
14878
14878
  }, a.a0 = _n, a.a1 = zv, a.a2 = qe, a.a3 = (u) => {
14879
14879
  const c = window.document.createElement("video");
14880
14880
  return c.muted = !0, new Promise((d) => {
@@ -14928,13 +14928,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14928
14928
  }), d = d.concat(b), function(E, T, M) {
14929
14929
  T = T || [];
14930
14930
  const R = (E = E || []).map(Gs), N = T.map(Gs), $ = E.reduce(Ys, {}), H = T.reduce(Ys, {}), G = R.slice(), X = /* @__PURE__ */ Object.create(null);
14931
- let ee, oe, ce, ke, ye;
14931
+ let ee, oe, ce, Ee, ye;
14932
14932
  for (let we = 0, Pe = 0; we < R.length; we++) ee = R[we], Object.prototype.hasOwnProperty.call(H, ee) ? Pe++ : (Rn(M, { command: "removeLayer", args: [ee] }), G.splice(G.indexOf(ee, Pe), 1));
14933
- for (let we = 0, Pe = 0; we < N.length; we++) ee = N[N.length - 1 - we], G[G.length - 1 - we] !== ee && (Object.prototype.hasOwnProperty.call($, ee) ? (Rn(M, { command: "removeLayer", args: [ee] }), G.splice(G.lastIndexOf(ee, G.length - Pe), 1)) : Pe++, ke = G[G.length - we], Rn(M, { command: "addLayer", args: [H[ee], ke] }), G.splice(G.length - we, 0, ee), X[ee] = !0);
14933
+ for (let we = 0, Pe = 0; we < N.length; we++) ee = N[N.length - 1 - we], G[G.length - 1 - we] !== ee && (Object.prototype.hasOwnProperty.call($, ee) ? (Rn(M, { command: "removeLayer", args: [ee] }), G.splice(G.lastIndexOf(ee, G.length - Pe), 1)) : Pe++, Ee = G[G.length - we], Rn(M, { command: "addLayer", args: [H[ee], Ee] }), G.splice(G.length - we, 0, ee), X[ee] = !0);
14934
14934
  for (let we = 0; we < N.length; we++) if (ee = N[we], oe = $[ee], ce = H[ee], !X[ee] && !vn(oe, ce)) if (vn(oe.source, ce.source) && vn(oe["source-layer"], ce["source-layer"]) && vn(oe.type, ce.type)) {
14935
14935
  for (ye in Wi(oe.layout, ce.layout, M, ee, null, "setLayoutProperty"), Wi(oe.paint, ce.paint, M, ee, null, "setPaintProperty"), vn(oe.filter, ce.filter) || Rn(M, { command: "setFilter", args: [ee, ce.filter] }), vn(oe.minzoom, ce.minzoom) && vn(oe.maxzoom, ce.maxzoom) || Rn(M, { command: "setLayerZoomRange", args: [ee, ce.minzoom, ce.maxzoom] }), oe) Object.prototype.hasOwnProperty.call(oe, ye) && ye !== "layout" && ye !== "paint" && ye !== "filter" && ye !== "metadata" && ye !== "minzoom" && ye !== "maxzoom" && (ye.indexOf("paint.") === 0 ? Wi(oe[ye], ce[ye], M, ee, ye.slice(6), "setPaintProperty") : vn(oe[ye], ce[ye]) || Rn(M, { command: "setLayerProperty", args: [ee, ye, ce[ye]] }));
14936
14936
  for (ye in ce) Object.prototype.hasOwnProperty.call(ce, ye) && !Object.prototype.hasOwnProperty.call(oe, ye) && ye !== "layout" && ye !== "paint" && ye !== "filter" && ye !== "metadata" && ye !== "minzoom" && ye !== "maxzoom" && (ye.indexOf("paint.") === 0 ? Wi(oe[ye], ce[ye], M, ee, ye.slice(6), "setPaintProperty") : vn(oe[ye], ce[ye]) || Rn(M, { command: "setLayerProperty", args: [ee, ye, ce[ye]] }));
14937
- } else Rn(M, { command: "removeLayer", args: [ee] }), ke = G[G.lastIndexOf(ee) + 1], Rn(M, { command: "addLayer", args: [ce, ke] });
14937
+ } else Rn(M, { command: "removeLayer", args: [ee] }), Ee = G[G.lastIndexOf(ee) + 1], Rn(M, { command: "addLayer", args: [ce, Ee] });
14938
14938
  }(S, c.layers, d);
14939
14939
  } catch (p) {
14940
14940
  console.warn("Unable to compute style diff:", p), d = [{ command: "setStyle", args: [c] }];
@@ -15011,7 +15011,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15011
15011
  const d = [];
15012
15012
  for (const p in u) p in c || d.push(p);
15013
15013
  return d;
15014
- }, a.ac = Ee, a.ad = function(u, c, d) {
15014
+ }, a.ac = Se, a.ad = function(u, c, d) {
15015
15015
  var p = Math.sin(d), b = Math.cos(d), S = c[0], E = c[1], T = c[2], M = c[3], R = c[4], N = c[5], $ = c[6], H = c[7];
15016
15016
  return c !== u && (u[8] = c[8], u[9] = c[9], u[10] = c[10], u[11] = c[11], u[12] = c[12], u[13] = c[13], u[14] = c[14], u[15] = c[15]), u[0] = S * b + R * p, u[1] = E * b + N * p, u[2] = T * b + $ * p, u[3] = M * b + H * p, u[4] = R * b - S * p, u[5] = N * b - E * p, u[6] = $ * b - T * p, u[7] = H * b - M * p, u;
15017
15017
  }, a.ae = function(u) {
@@ -15021,7 +15021,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15021
15021
  let d = 0, p = 0;
15022
15022
  if (u.kind === "constant") p = u.layoutSize;
15023
15023
  else if (u.kind !== "source") {
15024
- const { interpolationType: b, minZoom: S, maxZoom: E } = u, T = b ? Ee(Cr.interpolationFactor(b, c, S, E), 0, 1) : 0;
15024
+ const { interpolationType: b, minZoom: S, maxZoom: E } = u, T = b ? Se(Cr.interpolationFactor(b, c, S, E), 0, 1) : 0;
15025
15025
  u.kind === "camera" ? p = Er.number(u.minSize, u.maxSize, T) : d = T;
15026
15026
  }
15027
15027
  return { uSizeT: d, uSize: p };
@@ -15037,8 +15037,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15037
15037
  for (const S of u) c = Math.min(c, S.x), d = Math.min(d, S.y), p = Math.max(p, S.x), b = Math.max(b, S.y);
15038
15038
  return [c, d, p, b];
15039
15039
  }, a.ap = Pi, a.ar = Av, a.as = function(u, c) {
15040
- var d = c[0], p = c[1], b = c[2], S = c[3], E = c[4], T = c[5], M = c[6], R = c[7], N = c[8], $ = c[9], H = c[10], G = c[11], X = c[12], ee = c[13], oe = c[14], ce = c[15], ke = d * T - p * E, ye = d * M - b * E, we = d * R - S * E, Pe = p * M - b * T, He = p * R - S * T, dt = b * R - S * M, Nt = N * ee - $ * X, lt = N * oe - H * X, nt = N * ce - G * X, Tt = $ * oe - H * ee, _t = $ * ce - G * ee, pt = H * ce - G * oe, Ne = ke * pt - ye * _t + we * Tt + Pe * nt - He * lt + dt * Nt;
15041
- return Ne ? (u[0] = (T * pt - M * _t + R * Tt) * (Ne = 1 / Ne), u[1] = (b * _t - p * pt - S * Tt) * Ne, u[2] = (ee * dt - oe * He + ce * Pe) * Ne, u[3] = (H * He - $ * dt - G * Pe) * Ne, u[4] = (M * nt - E * pt - R * lt) * Ne, u[5] = (d * pt - b * nt + S * lt) * Ne, u[6] = (oe * we - X * dt - ce * ye) * Ne, u[7] = (N * dt - H * we + G * ye) * Ne, u[8] = (E * _t - T * nt + R * Nt) * Ne, u[9] = (p * nt - d * _t - S * Nt) * Ne, u[10] = (X * He - ee * we + ce * ke) * Ne, u[11] = ($ * we - N * He - G * ke) * Ne, u[12] = (T * lt - E * Tt - M * Nt) * Ne, u[13] = (d * Tt - p * lt + b * Nt) * Ne, u[14] = (ee * ye - X * Pe - oe * ke) * Ne, u[15] = (N * Pe - $ * ye + H * ke) * Ne, u) : null;
15040
+ var d = c[0], p = c[1], b = c[2], S = c[3], E = c[4], T = c[5], M = c[6], R = c[7], N = c[8], $ = c[9], H = c[10], G = c[11], X = c[12], ee = c[13], oe = c[14], ce = c[15], Ee = d * T - p * E, ye = d * M - b * E, we = d * R - S * E, Pe = p * M - b * T, He = p * R - S * T, dt = b * R - S * M, Nt = N * ee - $ * X, lt = N * oe - H * X, nt = N * ce - G * X, Tt = $ * oe - H * ee, _t = $ * ce - G * ee, pt = H * ce - G * oe, Ne = Ee * pt - ye * _t + we * Tt + Pe * nt - He * lt + dt * Nt;
15041
+ return Ne ? (u[0] = (T * pt - M * _t + R * Tt) * (Ne = 1 / Ne), u[1] = (b * _t - p * pt - S * Tt) * Ne, u[2] = (ee * dt - oe * He + ce * Pe) * Ne, u[3] = (H * He - $ * dt - G * Pe) * Ne, u[4] = (M * nt - E * pt - R * lt) * Ne, u[5] = (d * pt - b * nt + S * lt) * Ne, u[6] = (oe * we - X * dt - ce * ye) * Ne, u[7] = (N * dt - H * we + G * ye) * Ne, u[8] = (E * _t - T * nt + R * Nt) * Ne, u[9] = (p * nt - d * _t - S * Nt) * Ne, u[10] = (X * He - ee * we + ce * Ee) * Ne, u[11] = ($ * we - N * He - G * Ee) * Ne, u[12] = (T * lt - E * Tt - M * Nt) * Ne, u[13] = (d * Tt - p * lt + b * Nt) * Ne, u[14] = (ee * ye - X * Pe - oe * Ee) * Ne, u[15] = (N * Pe - $ * ye + H * Ee) * Ne, u) : null;
15042
15042
  }, a.at = Nv, a.au = Tv, a.av = Bv, a.aw = function() {
15043
15043
  const u = {}, c = Me.$version;
15044
15044
  for (const d in Me.$root) {
@@ -15061,13 +15061,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15061
15061
  return u[0] = c[0] * d[0], u[1] = c[1] * d[1], u[2] = c[2] * d[2], u[3] = c[3] * d[3], u;
15062
15062
  }, a.b2 = function(u, c) {
15063
15063
  return u[0] * c[0] + u[1] * c[1] + u[2] * c[2] + u[3] * c[3];
15064
- }, a.b3 = be, a.b4 = RS, a.b5 = IS, a.b6 = function(u, c, d, p, b) {
15064
+ }, a.b3 = ve, a.b4 = RS, a.b5 = IS, a.b6 = function(u, c, d, p, b) {
15065
15065
  var S, E = 1 / Math.tan(c / 2);
15066
15066
  return u[0] = E / d, u[1] = 0, u[2] = 0, u[3] = 0, u[4] = 0, u[5] = E, u[6] = 0, u[7] = 0, u[8] = 0, u[9] = 0, u[11] = -1, u[12] = 0, u[13] = 0, u[15] = 0, b != null && b !== 1 / 0 ? (u[10] = (b + p) * (S = 1 / (p - b)), u[14] = 2 * b * p * S) : (u[10] = -1, u[14] = -2 * p), u;
15067
15067
  }, a.b7 = function(u, c, d) {
15068
15068
  var p = Math.sin(d), b = Math.cos(d), S = c[4], E = c[5], T = c[6], M = c[7], R = c[8], N = c[9], $ = c[10], H = c[11];
15069
15069
  return c !== u && (u[0] = c[0], u[1] = c[1], u[2] = c[2], u[3] = c[3], u[12] = c[12], u[13] = c[13], u[14] = c[14], u[15] = c[15]), u[4] = S * b + R * p, u[5] = E * b + N * p, u[6] = T * b + $ * p, u[7] = M * b + H * p, u[8] = R * b - S * p, u[9] = N * b - E * p, u[10] = $ * b - T * p, u[11] = H * b - M * p, u;
15070
- }, a.b8 = Q, a.b9 = Z, a.bA = sS, a.bB = function(u) {
15070
+ }, a.b8 = J, a.b9 = Z, a.bA = sS, a.bB = function(u) {
15071
15071
  return u.message === fn;
15072
15072
  }, a.bC = fl, a.bD = Wr, a.ba = function(u) {
15073
15073
  return u * Math.PI / 180;
@@ -15134,13 +15134,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15134
15134
  _t && (X.horizontal[lt] = _t), Tt(), uf(we) && E && T && (X.vertical = qm(ee, u.glyphMap, u.glyphPositions, u.imagePositions, N, nt, S, dt, lt, He, ce, a.ah.vertical, !1, H, $));
15135
15135
  }
15136
15136
  }
15137
- let ke = !1;
15137
+ let Ee = !1;
15138
15138
  if (R.icon && R.icon.name) {
15139
15139
  const we = u.imageMap[R.icon.name];
15140
- we && (oe = XO(u.imagePositions[R.icon.name], d.get("icon-offset").evaluate(R, {}, u.canonical), d.get("icon-anchor").evaluate(R, {}, u.canonical)), ke = !!we.sdf, u.bucket.sdfIcons === void 0 ? u.bucket.sdfIcons = ke : u.bucket.sdfIcons !== ke && ct("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (we.pixelRatio !== u.bucket.pixelRatio || d.get("icon-rotate").constantOr(1) !== 0) && (u.bucket.iconsNeedLinear = !0));
15140
+ we && (oe = XO(u.imagePositions[R.icon.name], d.get("icon-offset").evaluate(R, {}, u.canonical), d.get("icon-anchor").evaluate(R, {}, u.canonical)), Ee = !!we.sdf, u.bucket.sdfIcons === void 0 ? u.bucket.sdfIcons = Ee : u.bucket.sdfIcons !== Ee && ct("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (we.pixelRatio !== u.bucket.pixelRatio || d.get("icon-rotate").constantOr(1) !== 0) && (u.bucket.iconsNeedLinear = !0));
15141
15141
  }
15142
15142
  const ye = KS(X.horizontal) || X.vertical;
15143
- u.bucket.iconsInText = !!ye && ye.iconsInText, (ye || oe) && hz(u.bucket, R, X, oe, u.imageMap, b, H, G, ce, ke, u.canonical);
15143
+ u.bucket.iconsInText = !!ye && ye.iconsInText, (ye || oe) && hz(u.bucket, R, X, oe, u.imageMap, b, H, G, ce, Ee, u.canonical);
15144
15144
  }
15145
15145
  u.showCollisionBoxes && u.bucket.generateCollisionDebugBuffers();
15146
15146
  }, a.bq = xv, a.br = vv, a.bs = _v, a.bt = Dl, a.bu = Sv, a.bv = class {
@@ -15203,14 +15203,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15203
15203
  }
15204
15204
  for (const se of W) delete this.keyCache[se], delete this._layerConfigs[se], delete this._layers[se];
15205
15205
  this.familiesBySource = {};
15206
- const J = a.bk(Object.values(this._layerConfigs), this.keyCache);
15207
- for (const se of J) {
15208
- const ge = se.map((De) => this._layers[De.id]), ve = ge[0];
15209
- if (ve.visibility === "none") continue;
15210
- const Se = ve.source || "";
15211
- let fe = this.familiesBySource[Se];
15212
- fe || (fe = this.familiesBySource[Se] = {});
15213
- const ze = ve.sourceLayer || "_geojsonTileLayer";
15206
+ const Q = a.bk(Object.values(this._layerConfigs), this.keyCache);
15207
+ for (const se of Q) {
15208
+ const ge = se.map((De) => this._layers[De.id]), be = ge[0];
15209
+ if (be.visibility === "none") continue;
15210
+ const ke = be.source || "";
15211
+ let fe = this.familiesBySource[ke];
15212
+ fe || (fe = this.familiesBySource[ke] = {});
15213
+ const ze = be.sourceLayer || "_geojsonTileLayer";
15214
15214
  let Fe = fe[ze];
15215
15215
  Fe || (Fe = fe[ze] = []), Fe.push(ge);
15216
15216
  }
@@ -15218,27 +15218,27 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15218
15218
  }
15219
15219
  class f {
15220
15220
  constructor(q) {
15221
- const W = {}, J = [];
15222
- for (const Se in q) {
15223
- const fe = q[Se], ze = W[Se] = {};
15221
+ const W = {}, Q = [];
15222
+ for (const ke in q) {
15223
+ const fe = q[ke], ze = W[ke] = {};
15224
15224
  for (const Fe in fe) {
15225
15225
  const De = fe[+Fe];
15226
15226
  if (!De || De.bitmap.width === 0 || De.bitmap.height === 0) continue;
15227
15227
  const Xe = { x: 0, y: 0, w: De.bitmap.width + 2, h: De.bitmap.height + 2 };
15228
- J.push(Xe), ze[Fe] = { rect: Xe, metrics: De.metrics };
15228
+ Q.push(Xe), ze[Fe] = { rect: Xe, metrics: De.metrics };
15229
15229
  }
15230
15230
  }
15231
- const { w: se, h: ge } = a.p(J), ve = new a.o({ width: se || 1, height: ge || 1 });
15232
- for (const Se in q) {
15233
- const fe = q[Se];
15231
+ const { w: se, h: ge } = a.p(Q), be = new a.o({ width: se || 1, height: ge || 1 });
15232
+ for (const ke in q) {
15233
+ const fe = q[ke];
15234
15234
  for (const ze in fe) {
15235
15235
  const Fe = fe[+ze];
15236
15236
  if (!Fe || Fe.bitmap.width === 0 || Fe.bitmap.height === 0) continue;
15237
- const De = W[Se][ze].rect;
15238
- a.o.copy(Fe.bitmap, ve, { x: 0, y: 0 }, { x: De.x + 1, y: De.y + 1 }, Fe.bitmap);
15237
+ const De = W[ke][ze].rect;
15238
+ a.o.copy(Fe.bitmap, be, { x: 0, y: 0 }, { x: De.x + 1, y: De.y + 1 }, Fe.bitmap);
15239
15239
  }
15240
15240
  }
15241
- this.image = ve, this.positions = W;
15241
+ this.image = be, this.positions = W;
15242
15242
  }
15243
15243
  }
15244
15244
  a.bl("GlyphAtlas", f);
@@ -15246,24 +15246,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15246
15246
  constructor(q) {
15247
15247
  this.tileID = new a.S(q.tileID.overscaledZ, q.tileID.wrap, q.tileID.canonical.z, q.tileID.canonical.x, q.tileID.canonical.y), this.uid = q.uid, this.zoom = q.zoom, this.pixelRatio = q.pixelRatio, this.tileSize = q.tileSize, this.source = q.source, this.overscaling = this.tileID.overscaleFactor(), this.showCollisionBoxes = q.showCollisionBoxes, this.collectResourceTiming = !!q.collectResourceTiming, this.returnDependencies = !!q.returnDependencies, this.promoteId = q.promoteId, this.inFlightDependencies = [];
15248
15248
  }
15249
- parse(q, W, J, se) {
15249
+ parse(q, W, Q, se) {
15250
15250
  return a._(this, void 0, void 0, function* () {
15251
15251
  this.status = "parsing", this.data = q, this.collisionBoxArray = new a.a5();
15252
- const ge = new a.bm(Object.keys(q.layers).sort()), ve = new a.bn(this.tileID, this.promoteId);
15253
- ve.bucketLayerIDs = [];
15254
- const Se = {}, fe = { featureIndex: ve, iconDependencies: {}, patternDependencies: {}, glyphDependencies: {}, availableImages: J }, ze = W.familiesBySource[this.source];
15252
+ const ge = new a.bm(Object.keys(q.layers).sort()), be = new a.bn(this.tileID, this.promoteId);
15253
+ be.bucketLayerIDs = [];
15254
+ const ke = {}, fe = { featureIndex: be, iconDependencies: {}, patternDependencies: {}, glyphDependencies: {}, availableImages: Q }, ze = W.familiesBySource[this.source];
15255
15255
  for (const sn in ze) {
15256
15256
  const $n = q.layers[sn];
15257
15257
  if (!$n) continue;
15258
15258
  $n.version === 1 && a.w(`Vector tile source "${this.source}" layer "${sn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
15259
15259
  const di = ge.encode(sn), Li = [];
15260
15260
  for (let Gi = 0; Gi < $n.length; Gi++) {
15261
- const pr = $n.feature(Gi), nl = ve.getId(pr, sn);
15261
+ const pr = $n.feature(Gi), nl = be.getId(pr, sn);
15262
15262
  Li.push({ feature: pr, id: nl, index: Gi, sourceLayerIndex: di });
15263
15263
  }
15264
15264
  for (const Gi of ze[sn]) {
15265
15265
  const pr = Gi[0];
15266
- pr.source !== this.source && a.w(`layer.source = ${pr.source} does not equal this.source = ${this.source}`), pr.minzoom && this.zoom < Math.floor(pr.minzoom) || pr.maxzoom && this.zoom >= pr.maxzoom || pr.visibility !== "none" && (g(Gi, this.zoom, J), (Se[pr.id] = pr.createBucket({ index: ve.bucketLayerIDs.length, layers: Gi, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: di, sourceID: this.source })).populate(Li, fe, this.tileID.canonical), ve.bucketLayerIDs.push(Gi.map((nl) => nl.id)));
15266
+ pr.source !== this.source && a.w(`layer.source = ${pr.source} does not equal this.source = ${this.source}`), pr.minzoom && this.zoom < Math.floor(pr.minzoom) || pr.maxzoom && this.zoom >= pr.maxzoom || pr.visibility !== "none" && (g(Gi, this.zoom, Q), (ke[pr.id] = pr.createBucket({ index: be.bucketLayerIDs.length, layers: Gi, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: di, sourceID: this.source })).populate(Li, fe, this.tileID.canonical), be.bucketLayerIDs.push(Gi.map((nl) => nl.id)));
15267
15267
  }
15268
15268
  }
15269
15269
  const Fe = a.aF(fe.glyphDependencies, (sn) => Object.keys(sn).map(Number));
@@ -15286,61 +15286,61 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15286
15286
  this.inFlightDependencies.push(sn), Cn = se.sendAsync({ type: "GI", data: { icons: Lt, source: this.source, tileID: this.tileID, type: "patterns" } }, sn);
15287
15287
  }
15288
15288
  const [tn, Tn, pn] = yield Promise.all([De, It, Cn]), Ai = new f(tn), mi = new a.bo(Tn, pn);
15289
- for (const sn in Se) {
15290
- const $n = Se[sn];
15291
- $n instanceof a.a6 ? (g($n.layers, this.zoom, J), a.bp({ bucket: $n, glyphMap: tn, glyphPositions: Ai.positions, imageMap: Tn, imagePositions: mi.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : $n.hasPattern && ($n instanceof a.bq || $n instanceof a.br || $n instanceof a.bs) && (g($n.layers, this.zoom, J), $n.addFeatures(fe, this.tileID.canonical, mi.patternPositions));
15289
+ for (const sn in ke) {
15290
+ const $n = ke[sn];
15291
+ $n instanceof a.a6 ? (g($n.layers, this.zoom, Q), a.bp({ bucket: $n, glyphMap: tn, glyphPositions: Ai.positions, imageMap: Tn, imagePositions: mi.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : $n.hasPattern && ($n instanceof a.bq || $n instanceof a.br || $n instanceof a.bs) && (g($n.layers, this.zoom, Q), $n.addFeatures(fe, this.tileID.canonical, mi.patternPositions));
15292
15292
  }
15293
- return this.status = "done", { buckets: Object.values(Se).filter((sn) => !sn.isEmpty()), featureIndex: ve, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Ai.image, imageAtlas: mi, glyphMap: this.returnDependencies ? tn : null, iconMap: this.returnDependencies ? Tn : null, glyphPositions: this.returnDependencies ? Ai.positions : null };
15293
+ return this.status = "done", { buckets: Object.values(ke).filter((sn) => !sn.isEmpty()), featureIndex: be, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Ai.image, imageAtlas: mi, glyphMap: this.returnDependencies ? tn : null, iconMap: this.returnDependencies ? Tn : null, glyphPositions: this.returnDependencies ? Ai.positions : null };
15294
15294
  });
15295
15295
  }
15296
15296
  }
15297
15297
  function g(le, q, W) {
15298
- const J = new a.z(q);
15299
- for (const se of le) se.recalculate(J, W);
15298
+ const Q = new a.z(q);
15299
+ for (const se of le) se.recalculate(Q, W);
15300
15300
  }
15301
15301
  class _ {
15302
- constructor(q, W, J) {
15303
- this.actor = q, this.layerIndex = W, this.availableImages = J, this.fetching = {}, this.loading = {}, this.loaded = {};
15302
+ constructor(q, W, Q) {
15303
+ this.actor = q, this.layerIndex = W, this.availableImages = Q, this.fetching = {}, this.loading = {}, this.loaded = {};
15304
15304
  }
15305
15305
  loadVectorTile(q, W) {
15306
15306
  return a._(this, void 0, void 0, function* () {
15307
- const J = yield a.l(q.request, W);
15307
+ const Q = yield a.l(q.request, W);
15308
15308
  try {
15309
- return { vectorTile: new a.bt.VectorTile(new a.bu(J.data)), rawData: J.data, cacheControl: J.cacheControl, expires: J.expires };
15309
+ return { vectorTile: new a.bt.VectorTile(new a.bu(Q.data)), rawData: Q.data, cacheControl: Q.cacheControl, expires: Q.expires };
15310
15310
  } catch (se) {
15311
- const ge = new Uint8Array(J.data);
15312
- let ve = `Unable to parse the tile at ${q.request.url}, `;
15313
- throw ve += ge[0] === 31 && ge[1] === 139 ? "please make sure the data is not gzipped and that you have configured the relevant header in the server" : `got error: ${se.message}`, new Error(ve);
15311
+ const ge = new Uint8Array(Q.data);
15312
+ let be = `Unable to parse the tile at ${q.request.url}, `;
15313
+ throw be += ge[0] === 31 && ge[1] === 139 ? "please make sure the data is not gzipped and that you have configured the relevant header in the server" : `got error: ${se.message}`, new Error(be);
15314
15314
  }
15315
15315
  });
15316
15316
  }
15317
15317
  loadTile(q) {
15318
15318
  return a._(this, void 0, void 0, function* () {
15319
- const W = q.uid, J = !!(q && q.request && q.request.collectResourceTiming) && new a.bv(q.request), se = new m(q);
15319
+ const W = q.uid, Q = !!(q && q.request && q.request.collectResourceTiming) && new a.bv(q.request), se = new m(q);
15320
15320
  this.loading[W] = se;
15321
15321
  const ge = new AbortController();
15322
15322
  se.abort = ge;
15323
15323
  try {
15324
- const ve = yield this.loadVectorTile(q, ge);
15325
- if (delete this.loading[W], !ve) return null;
15326
- const Se = ve.rawData, fe = {};
15327
- ve.expires && (fe.expires = ve.expires), ve.cacheControl && (fe.cacheControl = ve.cacheControl);
15324
+ const be = yield this.loadVectorTile(q, ge);
15325
+ if (delete this.loading[W], !be) return null;
15326
+ const ke = be.rawData, fe = {};
15327
+ be.expires && (fe.expires = be.expires), be.cacheControl && (fe.cacheControl = be.cacheControl);
15328
15328
  const ze = {};
15329
- if (J) {
15330
- const De = J.finish();
15329
+ if (Q) {
15330
+ const De = Q.finish();
15331
15331
  De && (ze.resourceTiming = JSON.parse(JSON.stringify(De)));
15332
15332
  }
15333
- se.vectorTile = ve.vectorTile;
15334
- const Fe = se.parse(ve.vectorTile, this.layerIndex, this.availableImages, this.actor);
15335
- this.loaded[W] = se, this.fetching[W] = { rawTileData: Se, cacheControl: fe, resourceTiming: ze };
15333
+ se.vectorTile = be.vectorTile;
15334
+ const Fe = se.parse(be.vectorTile, this.layerIndex, this.availableImages, this.actor);
15335
+ this.loaded[W] = se, this.fetching[W] = { rawTileData: ke, cacheControl: fe, resourceTiming: ze };
15336
15336
  try {
15337
15337
  const De = yield Fe;
15338
- return a.e({ rawTileData: Se.slice(0) }, De, fe, ze);
15338
+ return a.e({ rawTileData: ke.slice(0) }, De, fe, ze);
15339
15339
  } finally {
15340
15340
  delete this.fetching[W];
15341
15341
  }
15342
- } catch (ve) {
15343
- throw delete this.loading[W], se.status = "done", this.loaded[W] = se, ve;
15342
+ } catch (be) {
15343
+ throw delete this.loading[W], se.status = "done", this.loaded[W] = se, be;
15344
15344
  }
15345
15345
  });
15346
15346
  }
@@ -15348,23 +15348,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15348
15348
  return a._(this, void 0, void 0, function* () {
15349
15349
  const W = q.uid;
15350
15350
  if (!this.loaded || !this.loaded[W]) throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");
15351
- const J = this.loaded[W];
15352
- if (J.showCollisionBoxes = q.showCollisionBoxes, J.status === "parsing") {
15353
- const se = yield J.parse(J.vectorTile, this.layerIndex, this.availableImages, this.actor);
15351
+ const Q = this.loaded[W];
15352
+ if (Q.showCollisionBoxes = q.showCollisionBoxes, Q.status === "parsing") {
15353
+ const se = yield Q.parse(Q.vectorTile, this.layerIndex, this.availableImages, this.actor);
15354
15354
  let ge;
15355
15355
  if (this.fetching[W]) {
15356
- const { rawTileData: ve, cacheControl: Se, resourceTiming: fe } = this.fetching[W];
15357
- delete this.fetching[W], ge = a.e({ rawTileData: ve.slice(0) }, se, Se, fe);
15356
+ const { rawTileData: be, cacheControl: ke, resourceTiming: fe } = this.fetching[W];
15357
+ delete this.fetching[W], ge = a.e({ rawTileData: be.slice(0) }, se, ke, fe);
15358
15358
  } else ge = se;
15359
15359
  return ge;
15360
15360
  }
15361
- if (J.status === "done" && J.vectorTile) return J.parse(J.vectorTile, this.layerIndex, this.availableImages, this.actor);
15361
+ if (Q.status === "done" && Q.vectorTile) return Q.parse(Q.vectorTile, this.layerIndex, this.availableImages, this.actor);
15362
15362
  });
15363
15363
  }
15364
15364
  abortTile(q) {
15365
15365
  return a._(this, void 0, void 0, function* () {
15366
- const W = this.loading, J = q.uid;
15367
- W && W[J] && W[J].abort && (W[J].abort.abort(), delete W[J]);
15366
+ const W = this.loading, Q = q.uid;
15367
+ W && W[Q] && W[Q].abort && (W[Q].abort.abort(), delete W[Q]);
15368
15368
  });
15369
15369
  }
15370
15370
  removeTile(q) {
@@ -15379,13 +15379,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15379
15379
  }
15380
15380
  loadTile(q) {
15381
15381
  return a._(this, void 0, void 0, function* () {
15382
- const { uid: W, encoding: J, rawImageData: se, redFactor: ge, greenFactor: ve, blueFactor: Se, baseShift: fe } = q, ze = se.width + 2, Fe = se.height + 2, De = a.b(se) ? new a.R({ width: ze, height: Fe }, yield a.bw(se, -1, -1, ze, Fe)) : se, Xe = new a.bx(W, De, J, ge, ve, Se, fe);
15382
+ const { uid: W, encoding: Q, rawImageData: se, redFactor: ge, greenFactor: be, blueFactor: ke, baseShift: fe } = q, ze = se.width + 2, Fe = se.height + 2, De = a.b(se) ? new a.R({ width: ze, height: Fe }, yield a.bw(se, -1, -1, ze, Fe)) : se, Xe = new a.bx(W, De, Q, ge, be, ke, fe);
15383
15383
  return this.loaded = this.loaded || {}, this.loaded[W] = Xe, Xe;
15384
15384
  });
15385
15385
  }
15386
15386
  removeTile(q) {
15387
- const W = this.loaded, J = q.uid;
15388
- W && W[J] && delete W[J];
15387
+ const W = this.loaded, Q = q.uid;
15388
+ W && W[Q] && delete W[Q];
15389
15389
  }
15390
15390
  }
15391
15391
  function C(le, q) {
@@ -15395,62 +15395,62 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15395
15395
  }
15396
15396
  }
15397
15397
  function D(le, q) {
15398
- for (var W = 0, J = 0, se = 0, ge = le.length, ve = ge - 1; se < ge; ve = se++) {
15399
- var Se = (le[se][0] - le[ve][0]) * (le[ve][1] + le[se][1]), fe = W + Se;
15400
- J += Math.abs(W) >= Math.abs(Se) ? W - fe + Se : Se - fe + W, W = fe;
15398
+ for (var W = 0, Q = 0, se = 0, ge = le.length, be = ge - 1; se < ge; be = se++) {
15399
+ var ke = (le[se][0] - le[be][0]) * (le[be][1] + le[se][1]), fe = W + ke;
15400
+ Q += Math.abs(W) >= Math.abs(ke) ? W - fe + ke : ke - fe + W, W = fe;
15401
15401
  }
15402
- W + J >= 0 != !!q && le.reverse();
15402
+ W + Q >= 0 != !!q && le.reverse();
15403
15403
  }
15404
15404
  var z = a.by(function le(q, W) {
15405
- var J, se = q && q.type;
15406
- if (se === "FeatureCollection") for (J = 0; J < q.features.length; J++) le(q.features[J], W);
15407
- else if (se === "GeometryCollection") for (J = 0; J < q.geometries.length; J++) le(q.geometries[J], W);
15405
+ var Q, se = q && q.type;
15406
+ if (se === "FeatureCollection") for (Q = 0; Q < q.features.length; Q++) le(q.features[Q], W);
15407
+ else if (se === "GeometryCollection") for (Q = 0; Q < q.geometries.length; Q++) le(q.geometries[Q], W);
15408
15408
  else if (se === "Feature") le(q.geometry, W);
15409
15409
  else if (se === "Polygon") C(q.coordinates, W);
15410
- else if (se === "MultiPolygon") for (J = 0; J < q.coordinates.length; J++) C(q.coordinates[J], W);
15410
+ else if (se === "MultiPolygon") for (Q = 0; Q < q.coordinates.length; Q++) C(q.coordinates[Q], W);
15411
15411
  return q;
15412
15412
  });
15413
15413
  const O = a.bt.VectorTileFeature.prototype.toGeoJSON;
15414
- var F = { exports: {} }, U = a.bz, Q = a.bt.VectorTileFeature, Z = Ee;
15415
- function Ee(le, q) {
15414
+ var F = { exports: {} }, U = a.bz, J = a.bt.VectorTileFeature, Z = Se;
15415
+ function Se(le, q) {
15416
15416
  this.options = q || {}, this.features = le, this.length = le.length;
15417
15417
  }
15418
- function be(le, q) {
15418
+ function ve(le, q) {
15419
15419
  this.id = typeof le.id == "number" ? le.id : void 0, this.type = le.type, this.rawGeometry = le.type === 1 ? [le.geometry] : le.geometry, this.properties = le.tags, this.extent = q || 4096;
15420
15420
  }
15421
- Ee.prototype.feature = function(le) {
15422
- return new be(this.features[le], this.options.extent);
15423
- }, be.prototype.loadGeometry = function() {
15421
+ Se.prototype.feature = function(le) {
15422
+ return new ve(this.features[le], this.options.extent);
15423
+ }, ve.prototype.loadGeometry = function() {
15424
15424
  var le = this.rawGeometry;
15425
15425
  this.geometry = [];
15426
15426
  for (var q = 0; q < le.length; q++) {
15427
- for (var W = le[q], J = [], se = 0; se < W.length; se++) J.push(new U(W[se][0], W[se][1]));
15428
- this.geometry.push(J);
15427
+ for (var W = le[q], Q = [], se = 0; se < W.length; se++) Q.push(new U(W[se][0], W[se][1]));
15428
+ this.geometry.push(Q);
15429
15429
  }
15430
15430
  return this.geometry;
15431
- }, be.prototype.bbox = function() {
15431
+ }, ve.prototype.bbox = function() {
15432
15432
  this.geometry || this.loadGeometry();
15433
- for (var le = this.geometry, q = 1 / 0, W = -1 / 0, J = 1 / 0, se = -1 / 0, ge = 0; ge < le.length; ge++) for (var ve = le[ge], Se = 0; Se < ve.length; Se++) {
15434
- var fe = ve[Se];
15435
- q = Math.min(q, fe.x), W = Math.max(W, fe.x), J = Math.min(J, fe.y), se = Math.max(se, fe.y);
15433
+ for (var le = this.geometry, q = 1 / 0, W = -1 / 0, Q = 1 / 0, se = -1 / 0, ge = 0; ge < le.length; ge++) for (var be = le[ge], ke = 0; ke < be.length; ke++) {
15434
+ var fe = be[ke];
15435
+ q = Math.min(q, fe.x), W = Math.max(W, fe.x), Q = Math.min(Q, fe.y), se = Math.max(se, fe.y);
15436
15436
  }
15437
- return [q, J, W, se];
15438
- }, be.prototype.toGeoJSON = Q.prototype.toGeoJSON;
15437
+ return [q, Q, W, se];
15438
+ }, ve.prototype.toGeoJSON = J.prototype.toGeoJSON;
15439
15439
  var Ae = a.bA, $e = Z;
15440
15440
  function Oe(le) {
15441
15441
  var q = new Ae();
15442
- return function(W, J) {
15443
- for (var se in W.layers) J.writeMessage(3, ft, W.layers[se]);
15442
+ return function(W, Q) {
15443
+ for (var se in W.layers) Q.writeMessage(3, ft, W.layers[se]);
15444
15444
  }(le, q), q.finish();
15445
15445
  }
15446
15446
  function ft(le, q) {
15447
15447
  var W;
15448
15448
  q.writeVarintField(15, le.version || 1), q.writeStringField(1, le.name || ""), q.writeVarintField(5, le.extent || 4096);
15449
- var J = { keys: [], values: [], keycache: {}, valuecache: {} };
15450
- for (W = 0; W < le.length; W++) J.feature = le.feature(W), q.writeMessage(2, ot, J);
15451
- var se = J.keys;
15449
+ var Q = { keys: [], values: [], keycache: {}, valuecache: {} };
15450
+ for (W = 0; W < le.length; W++) Q.feature = le.feature(W), q.writeMessage(2, ot, Q);
15451
+ var se = Q.keys;
15452
15452
  for (W = 0; W < se.length; W++) q.writeStringField(3, se[W]);
15453
- var ge = J.values;
15453
+ var ge = Q.values;
15454
15454
  for (W = 0; W < ge.length; W++) q.writeMessage(4, Qt, ge[W]);
15455
15455
  }
15456
15456
  function ot(le, q) {
@@ -15458,15 +15458,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15458
15458
  W.id !== void 0 && q.writeVarintField(1, W.id), q.writeMessage(2, me, le), q.writeVarintField(3, W.type), q.writeMessage(4, Yt, W);
15459
15459
  }
15460
15460
  function me(le, q) {
15461
- var W = le.feature, J = le.keys, se = le.values, ge = le.keycache, ve = le.valuecache;
15462
- for (var Se in W.properties) {
15463
- var fe = W.properties[Se], ze = ge[Se];
15461
+ var W = le.feature, Q = le.keys, se = le.values, ge = le.keycache, be = le.valuecache;
15462
+ for (var ke in W.properties) {
15463
+ var fe = W.properties[ke], ze = ge[ke];
15464
15464
  if (fe !== null) {
15465
- ze === void 0 && (J.push(Se), ge[Se] = ze = J.length - 1), q.writeVarint(ze);
15465
+ ze === void 0 && (Q.push(ke), ge[ke] = ze = Q.length - 1), q.writeVarint(ze);
15466
15466
  var Fe = typeof fe;
15467
15467
  Fe !== "string" && Fe !== "boolean" && Fe !== "number" && (fe = JSON.stringify(fe));
15468
- var De = Fe + ":" + fe, Xe = ve[De];
15469
- Xe === void 0 && (se.push(fe), ve[De] = Xe = se.length - 1), q.writeVarint(Xe);
15468
+ var De = Fe + ":" + fe, Xe = be[De];
15469
+ Xe === void 0 && (se.push(fe), be[De] = Xe = se.length - 1), q.writeVarint(Xe);
15470
15470
  }
15471
15471
  }
15472
15472
  }
@@ -15477,15 +15477,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15477
15477
  return le << 1 ^ le >> 31;
15478
15478
  }
15479
15479
  function Yt(le, q) {
15480
- for (var W = le.loadGeometry(), J = le.type, se = 0, ge = 0, ve = W.length, Se = 0; Se < ve; Se++) {
15481
- var fe = W[Se], ze = 1;
15482
- J === 1 && (ze = fe.length), q.writeVarint(ct(1, ze));
15483
- for (var Fe = J === 3 ? fe.length - 1 : fe.length, De = 0; De < Fe; De++) {
15484
- De === 1 && J !== 1 && q.writeVarint(ct(2, Fe - 1));
15480
+ for (var W = le.loadGeometry(), Q = le.type, se = 0, ge = 0, be = W.length, ke = 0; ke < be; ke++) {
15481
+ var fe = W[ke], ze = 1;
15482
+ Q === 1 && (ze = fe.length), q.writeVarint(ct(1, ze));
15483
+ for (var Fe = Q === 3 ? fe.length - 1 : fe.length, De = 0; De < Fe; De++) {
15484
+ De === 1 && Q !== 1 && q.writeVarint(ct(2, Fe - 1));
15485
15485
  var Xe = fe[De].x - se, It = fe[De].y - ge;
15486
15486
  q.writeVarint(zt(Xe)), q.writeVarint(zt(It)), se += Xe, ge += It;
15487
15487
  }
15488
- J === 3 && q.writeVarint(ct(7, 1));
15488
+ Q === 3 && q.writeVarint(ct(7, 1));
15489
15489
  }
15490
15490
  }
15491
15491
  function Qt(le, q) {
@@ -15495,7 +15495,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15495
15495
  F.exports = Oe, F.exports.fromVectorTileJs = Oe, F.exports.fromGeojsonVt = function(le, q) {
15496
15496
  q = q || {};
15497
15497
  var W = {};
15498
- for (var J in le) W[J] = new $e(le[J].features, q), W[J].name = J, W[J].version = q.version, W[J].extent = q.extent;
15498
+ for (var Q in le) W[Q] = new $e(le[Q].features, q), W[Q].name = Q, W[Q].version = q.version, W[Q].extent = q.extent;
15499
15499
  return Oe({ layers: W });
15500
15500
  }, F.exports.GeoJSONWrapper = $e;
15501
15501
  var jt = a.by(F.exports);
@@ -15507,36 +15507,36 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15507
15507
  this.options = Object.assign(Object.create(Jt), q), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
15508
15508
  }
15509
15509
  load(q) {
15510
- const { log: W, minZoom: J, maxZoom: se } = this.options;
15510
+ const { log: W, minZoom: Q, maxZoom: se } = this.options;
15511
15511
  W && console.time("total time");
15512
15512
  const ge = `prepare ${q.length} points`;
15513
15513
  W && console.time(ge), this.points = q;
15514
- const ve = [];
15514
+ const be = [];
15515
15515
  for (let fe = 0; fe < q.length; fe++) {
15516
15516
  const ze = q[fe];
15517
15517
  if (!ze.geometry) continue;
15518
15518
  const [Fe, De] = ze.geometry.coordinates, Xe = kn(Ie(Fe)), It = kn(Ze(De));
15519
- ve.push(Xe, It, 1 / 0, fe, -1, 1), this.options.reduce && ve.push(0);
15519
+ be.push(Xe, It, 1 / 0, fe, -1, 1), this.options.reduce && be.push(0);
15520
15520
  }
15521
- let Se = this.trees[se + 1] = this._createTree(ve);
15521
+ let ke = this.trees[se + 1] = this._createTree(be);
15522
15522
  W && console.timeEnd(ge);
15523
- for (let fe = se; fe >= J; fe--) {
15523
+ for (let fe = se; fe >= Q; fe--) {
15524
15524
  const ze = +Date.now();
15525
- Se = this.trees[fe] = this._createTree(this._cluster(Se, fe)), W && console.log("z%d: %d clusters in %dms", fe, Se.numItems, +Date.now() - ze);
15525
+ ke = this.trees[fe] = this._createTree(this._cluster(ke, fe)), W && console.log("z%d: %d clusters in %dms", fe, ke.numItems, +Date.now() - ze);
15526
15526
  }
15527
15527
  return W && console.timeEnd("total time"), this;
15528
15528
  }
15529
15529
  getClusters(q, W) {
15530
- let J = ((q[0] + 180) % 360 + 360) % 360 - 180;
15530
+ let Q = ((q[0] + 180) % 360 + 360) % 360 - 180;
15531
15531
  const se = Math.max(-90, Math.min(90, q[1]));
15532
15532
  let ge = q[2] === 180 ? 180 : ((q[2] + 180) % 360 + 360) % 360 - 180;
15533
- const ve = Math.max(-90, Math.min(90, q[3]));
15534
- if (q[2] - q[0] >= 360) J = -180, ge = 180;
15535
- else if (J > ge) {
15536
- const De = this.getClusters([J, se, 180, ve], W), Xe = this.getClusters([-180, se, ge, ve], W);
15533
+ const be = Math.max(-90, Math.min(90, q[3]));
15534
+ if (q[2] - q[0] >= 360) Q = -180, ge = 180;
15535
+ else if (Q > ge) {
15536
+ const De = this.getClusters([Q, se, 180, be], W), Xe = this.getClusters([-180, se, ge, be], W);
15537
15537
  return De.concat(Xe);
15538
15538
  }
15539
- const Se = this.trees[this._limitZoom(W)], fe = Se.range(Ie(J), Ze(ve), Ie(ge), Ze(se)), ze = Se.data, Fe = [];
15539
+ const ke = this.trees[this._limitZoom(W)], fe = ke.range(Ie(Q), Ze(be), Ie(ge), Ze(se)), ze = ke.data, Fe = [];
15540
15540
  for (const De of fe) {
15541
15541
  const Xe = this.stride * De;
15542
15542
  Fe.push(ze[Xe + fn] > 1 ? An(ze, Xe, this.clusterProps) : this.points[ze[Xe + Sn]]);
@@ -15544,51 +15544,51 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15544
15544
  return Fe;
15545
15545
  }
15546
15546
  getChildren(q) {
15547
- const W = this._getOriginId(q), J = this._getOriginZoom(q), se = "No cluster with the specified id.", ge = this.trees[J];
15547
+ const W = this._getOriginId(q), Q = this._getOriginZoom(q), se = "No cluster with the specified id.", ge = this.trees[Q];
15548
15548
  if (!ge) throw new Error(se);
15549
- const ve = ge.data;
15550
- if (W * this.stride >= ve.length) throw new Error(se);
15551
- const Se = this.options.radius / (this.options.extent * Math.pow(2, J - 1)), fe = ge.within(ve[W * this.stride], ve[W * this.stride + 1], Se), ze = [];
15549
+ const be = ge.data;
15550
+ if (W * this.stride >= be.length) throw new Error(se);
15551
+ const ke = this.options.radius / (this.options.extent * Math.pow(2, Q - 1)), fe = ge.within(be[W * this.stride], be[W * this.stride + 1], ke), ze = [];
15552
15552
  for (const Fe of fe) {
15553
15553
  const De = Fe * this.stride;
15554
- ve[De + 4] === q && ze.push(ve[De + fn] > 1 ? An(ve, De, this.clusterProps) : this.points[ve[De + Sn]]);
15554
+ be[De + 4] === q && ze.push(be[De + fn] > 1 ? An(be, De, this.clusterProps) : this.points[be[De + Sn]]);
15555
15555
  }
15556
15556
  if (ze.length === 0) throw new Error(se);
15557
15557
  return ze;
15558
15558
  }
15559
- getLeaves(q, W, J) {
15559
+ getLeaves(q, W, Q) {
15560
15560
  const se = [];
15561
- return this._appendLeaves(se, q, W = W || 10, J = J || 0, 0), se;
15561
+ return this._appendLeaves(se, q, W = W || 10, Q = Q || 0, 0), se;
15562
15562
  }
15563
- getTile(q, W, J) {
15564
- const se = this.trees[this._limitZoom(q)], ge = Math.pow(2, q), { extent: ve, radius: Se } = this.options, fe = Se / ve, ze = (J - fe) / ge, Fe = (J + 1 + fe) / ge, De = { features: [] };
15565
- return this._addTileFeatures(se.range((W - fe) / ge, ze, (W + 1 + fe) / ge, Fe), se.data, W, J, ge, De), W === 0 && this._addTileFeatures(se.range(1 - fe / ge, ze, 1, Fe), se.data, ge, J, ge, De), W === ge - 1 && this._addTileFeatures(se.range(0, ze, fe / ge, Fe), se.data, -1, J, ge, De), De.features.length ? De : null;
15563
+ getTile(q, W, Q) {
15564
+ const se = this.trees[this._limitZoom(q)], ge = Math.pow(2, q), { extent: be, radius: ke } = this.options, fe = ke / be, ze = (Q - fe) / ge, Fe = (Q + 1 + fe) / ge, De = { features: [] };
15565
+ return this._addTileFeatures(se.range((W - fe) / ge, ze, (W + 1 + fe) / ge, Fe), se.data, W, Q, ge, De), W === 0 && this._addTileFeatures(se.range(1 - fe / ge, ze, 1, Fe), se.data, ge, Q, ge, De), W === ge - 1 && this._addTileFeatures(se.range(0, ze, fe / ge, Fe), se.data, -1, Q, ge, De), De.features.length ? De : null;
15566
15566
  }
15567
15567
  getClusterExpansionZoom(q) {
15568
15568
  let W = this._getOriginZoom(q) - 1;
15569
15569
  for (; W <= this.options.maxZoom; ) {
15570
- const J = this.getChildren(q);
15571
- if (W++, J.length !== 1) break;
15572
- q = J[0].properties.cluster_id;
15570
+ const Q = this.getChildren(q);
15571
+ if (W++, Q.length !== 1) break;
15572
+ q = Q[0].properties.cluster_id;
15573
15573
  }
15574
15574
  return W;
15575
15575
  }
15576
- _appendLeaves(q, W, J, se, ge) {
15577
- const ve = this.getChildren(W);
15578
- for (const Se of ve) {
15579
- const fe = Se.properties;
15580
- if (fe && fe.cluster ? ge + fe.point_count <= se ? ge += fe.point_count : ge = this._appendLeaves(q, fe.cluster_id, J, se, ge) : ge < se ? ge++ : q.push(Se), q.length === J) break;
15576
+ _appendLeaves(q, W, Q, se, ge) {
15577
+ const be = this.getChildren(W);
15578
+ for (const ke of be) {
15579
+ const fe = ke.properties;
15580
+ if (fe && fe.cluster ? ge + fe.point_count <= se ? ge += fe.point_count : ge = this._appendLeaves(q, fe.cluster_id, Q, se, ge) : ge < se ? ge++ : q.push(ke), q.length === Q) break;
15581
15581
  }
15582
15582
  return ge;
15583
15583
  }
15584
15584
  _createTree(q) {
15585
15585
  const W = new a.av(q.length / this.stride | 0, this.options.nodeSize, Float32Array);
15586
- for (let J = 0; J < q.length; J += this.stride) W.add(q[J], q[J + 1]);
15586
+ for (let Q = 0; Q < q.length; Q += this.stride) W.add(q[Q], q[Q + 1]);
15587
15587
  return W.finish(), W.data = q, W;
15588
15588
  }
15589
- _addTileFeatures(q, W, J, se, ge, ve) {
15590
- for (const Se of q) {
15591
- const fe = Se * this.stride, ze = W[fe + fn] > 1;
15589
+ _addTileFeatures(q, W, Q, se, ge, be) {
15590
+ for (const ke of q) {
15591
+ const fe = ke * this.stride, ze = W[fe + fn] > 1;
15592
15592
  let Fe, De, Xe;
15593
15593
  if (ze) Fe = ni(W, fe, this.clusterProps), De = W[fe], Xe = W[fe + 1];
15594
15594
  else {
@@ -15597,26 +15597,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15597
15597
  const [tn, Tn] = Cn.geometry.coordinates;
15598
15598
  De = Ie(tn), Xe = Ze(Tn);
15599
15599
  }
15600
- const It = { type: 1, geometry: [[Math.round(this.options.extent * (De * ge - J)), Math.round(this.options.extent * (Xe * ge - se))]], tags: Fe };
15600
+ const It = { type: 1, geometry: [[Math.round(this.options.extent * (De * ge - Q)), Math.round(this.options.extent * (Xe * ge - se))]], tags: Fe };
15601
15601
  let Lt;
15602
- Lt = ze || this.options.generateId ? W[fe + Sn] : this.points[W[fe + Sn]].id, Lt !== void 0 && (It.id = Lt), ve.features.push(It);
15602
+ Lt = ze || this.options.generateId ? W[fe + Sn] : this.points[W[fe + Sn]].id, Lt !== void 0 && (It.id = Lt), be.features.push(It);
15603
15603
  }
15604
15604
  }
15605
15605
  _limitZoom(q) {
15606
15606
  return Math.max(this.options.minZoom, Math.min(Math.floor(+q), this.options.maxZoom + 1));
15607
15607
  }
15608
15608
  _cluster(q, W) {
15609
- const { radius: J, extent: se, reduce: ge, minPoints: ve } = this.options, Se = J / (se * Math.pow(2, W)), fe = q.data, ze = [], Fe = this.stride;
15609
+ const { radius: Q, extent: se, reduce: ge, minPoints: be } = this.options, ke = Q / (se * Math.pow(2, W)), fe = q.data, ze = [], Fe = this.stride;
15610
15610
  for (let De = 0; De < fe.length; De += Fe) {
15611
15611
  if (fe[De + 2] <= W) continue;
15612
15612
  fe[De + 2] = W;
15613
- const Xe = fe[De], It = fe[De + 1], Lt = q.within(fe[De], fe[De + 1], Se), Cn = fe[De + fn];
15613
+ const Xe = fe[De], It = fe[De + 1], Lt = q.within(fe[De], fe[De + 1], ke), Cn = fe[De + fn];
15614
15614
  let tn = Cn;
15615
15615
  for (const Tn of Lt) {
15616
15616
  const pn = Tn * Fe;
15617
15617
  fe[pn + 2] > W && (tn += fe[pn + fn]);
15618
15618
  }
15619
- if (tn > Cn && tn >= ve) {
15619
+ if (tn > Cn && tn >= be) {
15620
15620
  let Tn, pn = Xe * Cn, Ai = It * Cn, mi = -1;
15621
15621
  const sn = ((De / Fe | 0) << 5) + (W + 1) + this.points.length;
15622
15622
  for (const $n of Lt) {
@@ -15646,22 +15646,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15646
15646
  _getOriginZoom(q) {
15647
15647
  return (q - this.points.length) % 32;
15648
15648
  }
15649
- _map(q, W, J) {
15649
+ _map(q, W, Q) {
15650
15650
  if (q[W + fn] > 1) {
15651
- const ve = this.clusterProps[q[W + Qn]];
15652
- return J ? Object.assign({}, ve) : ve;
15651
+ const be = this.clusterProps[q[W + Qn]];
15652
+ return Q ? Object.assign({}, be) : be;
15653
15653
  }
15654
15654
  const se = this.points[q[W + Sn]].properties, ge = this.options.map(se);
15655
- return J && ge === se ? Object.assign({}, ge) : ge;
15655
+ return Q && ge === se ? Object.assign({}, ge) : ge;
15656
15656
  }
15657
15657
  }
15658
15658
  function An(le, q, W) {
15659
- return { type: "Feature", id: le[q + Sn], properties: ni(le, q, W), geometry: { type: "Point", coordinates: [(J = le[q], 360 * (J - 0.5)), it(le[q + 1])] } };
15660
- var J;
15659
+ return { type: "Feature", id: le[q + Sn], properties: ni(le, q, W), geometry: { type: "Point", coordinates: [(Q = le[q], 360 * (Q - 0.5)), it(le[q + 1])] } };
15660
+ var Q;
15661
15661
  }
15662
15662
  function ni(le, q, W) {
15663
- const J = le[q + fn], se = J >= 1e4 ? `${Math.round(J / 1e3)}k` : J >= 1e3 ? Math.round(J / 100) / 10 + "k" : J, ge = le[q + Qn], ve = ge === -1 ? {} : Object.assign({}, W[ge]);
15664
- return Object.assign(ve, { cluster: !0, cluster_id: le[q + Sn], point_count: J, point_count_abbreviated: se });
15663
+ const Q = le[q + fn], se = Q >= 1e4 ? `${Math.round(Q / 1e3)}k` : Q >= 1e3 ? Math.round(Q / 100) / 10 + "k" : Q, ge = le[q + Qn], be = ge === -1 ? {} : Object.assign({}, W[ge]);
15664
+ return Object.assign(be, { cluster: !0, cluster_id: le[q + Sn], point_count: Q, point_count_abbreviated: se });
15665
15665
  }
15666
15666
  function Ie(le) {
15667
15667
  return le / 360 + 0.5;
@@ -15674,31 +15674,31 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15674
15674
  const q = (180 - 360 * le) * Math.PI / 180;
15675
15675
  return 360 * Math.atan(Math.exp(q)) / Math.PI - 90;
15676
15676
  }
15677
- function bt(le, q, W, J) {
15678
- let se = J;
15677
+ function bt(le, q, W, Q) {
15678
+ let se = Q;
15679
15679
  const ge = q + (W - q >> 1);
15680
- let ve, Se = W - q;
15680
+ let be, ke = W - q;
15681
15681
  const fe = le[q], ze = le[q + 1], Fe = le[W], De = le[W + 1];
15682
15682
  for (let Xe = q + 3; Xe < W; Xe += 3) {
15683
15683
  const It = nn(le[Xe], le[Xe + 1], fe, ze, Fe, De);
15684
- if (It > se) ve = Xe, se = It;
15684
+ if (It > se) be = Xe, se = It;
15685
15685
  else if (It === se) {
15686
15686
  const Lt = Math.abs(Xe - ge);
15687
- Lt < Se && (ve = Xe, Se = Lt);
15687
+ Lt < ke && (be = Xe, ke = Lt);
15688
15688
  }
15689
15689
  }
15690
- se > J && (ve - q > 3 && bt(le, q, ve, J), le[ve + 2] = se, W - ve > 3 && bt(le, ve, W, J));
15690
+ se > Q && (be - q > 3 && bt(le, q, be, Q), le[be + 2] = se, W - be > 3 && bt(le, be, W, Q));
15691
15691
  }
15692
- function nn(le, q, W, J, se, ge) {
15693
- let ve = se - W, Se = ge - J;
15694
- if (ve !== 0 || Se !== 0) {
15695
- const fe = ((le - W) * ve + (q - J) * Se) / (ve * ve + Se * Se);
15696
- fe > 1 ? (W = se, J = ge) : fe > 0 && (W += ve * fe, J += Se * fe);
15692
+ function nn(le, q, W, Q, se, ge) {
15693
+ let be = se - W, ke = ge - Q;
15694
+ if (be !== 0 || ke !== 0) {
15695
+ const fe = ((le - W) * be + (q - Q) * ke) / (be * be + ke * ke);
15696
+ fe > 1 ? (W = se, Q = ge) : fe > 0 && (W += be * fe, Q += ke * fe);
15697
15697
  }
15698
- return ve = le - W, Se = q - J, ve * ve + Se * Se;
15698
+ return be = le - W, ke = q - Q, be * be + ke * ke;
15699
15699
  }
15700
- function En(le, q, W, J) {
15701
- const se = { id: le ?? null, type: q, geometry: W, tags: J, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
15700
+ function En(le, q, W, Q) {
15701
+ const se = { id: le ?? null, type: q, geometry: W, tags: Q, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
15702
15702
  if (q === "Point" || q === "MultiPoint" || q === "LineString") qt(se, W);
15703
15703
  else if (q === "Polygon") qt(se, W[0]);
15704
15704
  else if (q === "MultiLineString") for (const ge of W) qt(se, ge);
@@ -15708,53 +15708,53 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15708
15708
  function qt(le, q) {
15709
15709
  for (let W = 0; W < q.length; W += 3) le.minX = Math.min(le.minX, q[W]), le.minY = Math.min(le.minY, q[W + 1]), le.maxX = Math.max(le.maxX, q[W]), le.maxY = Math.max(le.maxY, q[W + 1]);
15710
15710
  }
15711
- function Ht(le, q, W, J) {
15711
+ function Ht(le, q, W, Q) {
15712
15712
  if (!q.geometry) return;
15713
15713
  const se = q.geometry.coordinates;
15714
15714
  if (se && se.length === 0) return;
15715
- const ge = q.geometry.type, ve = Math.pow(W.tolerance / ((1 << W.maxZoom) * W.extent), 2);
15716
- let Se = [], fe = q.id;
15717
- if (W.promoteId ? fe = q.properties[W.promoteId] : W.generateId && (fe = J || 0), ge === "Point") Mn(se, Se);
15718
- else if (ge === "MultiPoint") for (const ze of se) Mn(ze, Se);
15719
- else if (ge === "LineString") Me(se, Se, ve, !1);
15715
+ const ge = q.geometry.type, be = Math.pow(W.tolerance / ((1 << W.maxZoom) * W.extent), 2);
15716
+ let ke = [], fe = q.id;
15717
+ if (W.promoteId ? fe = q.properties[W.promoteId] : W.generateId && (fe = Q || 0), ge === "Point") Mn(se, ke);
15718
+ else if (ge === "MultiPoint") for (const ze of se) Mn(ze, ke);
15719
+ else if (ge === "LineString") Me(se, ke, be, !1);
15720
15720
  else if (ge === "MultiLineString") {
15721
15721
  if (W.lineMetrics) {
15722
- for (const ze of se) Se = [], Me(ze, Se, ve, !1), le.push(En(fe, "LineString", Se, q.properties));
15722
+ for (const ze of se) ke = [], Me(ze, ke, be, !1), le.push(En(fe, "LineString", ke, q.properties));
15723
15723
  return;
15724
15724
  }
15725
- Wn(se, Se, ve, !1);
15726
- } else if (ge === "Polygon") Wn(se, Se, ve, !0);
15725
+ Wn(se, ke, be, !1);
15726
+ } else if (ge === "Polygon") Wn(se, ke, be, !0);
15727
15727
  else {
15728
15728
  if (ge !== "MultiPolygon") {
15729
15729
  if (ge === "GeometryCollection") {
15730
- for (const ze of q.geometry.geometries) Ht(le, { id: fe, geometry: ze, properties: q.properties }, W, J);
15730
+ for (const ze of q.geometry.geometries) Ht(le, { id: fe, geometry: ze, properties: q.properties }, W, Q);
15731
15731
  return;
15732
15732
  }
15733
15733
  throw new Error("Input data is not a valid GeoJSON object.");
15734
15734
  }
15735
15735
  for (const ze of se) {
15736
15736
  const Fe = [];
15737
- Wn(ze, Fe, ve, !0), Se.push(Fe);
15737
+ Wn(ze, Fe, be, !0), ke.push(Fe);
15738
15738
  }
15739
15739
  }
15740
- le.push(En(fe, ge, Se, q.properties));
15740
+ le.push(En(fe, ge, ke, q.properties));
15741
15741
  }
15742
15742
  function Mn(le, q) {
15743
15743
  q.push(qs(le[0]), vn(le[1]), 0);
15744
15744
  }
15745
- function Me(le, q, W, J) {
15746
- let se, ge, ve = 0;
15745
+ function Me(le, q, W, Q) {
15746
+ let se, ge, be = 0;
15747
15747
  for (let fe = 0; fe < le.length; fe++) {
15748
15748
  const ze = qs(le[fe][0]), Fe = vn(le[fe][1]);
15749
- q.push(ze, Fe, 0), fe > 0 && (ve += J ? (se * Fe - ze * ge) / 2 : Math.sqrt(Math.pow(ze - se, 2) + Math.pow(Fe - ge, 2))), se = ze, ge = Fe;
15749
+ q.push(ze, Fe, 0), fe > 0 && (be += Q ? (se * Fe - ze * ge) / 2 : Math.sqrt(Math.pow(ze - se, 2) + Math.pow(Fe - ge, 2))), se = ze, ge = Fe;
15750
15750
  }
15751
- const Se = q.length - 3;
15752
- q[2] = 1, bt(q, 0, Se, W), q[Se + 2] = 1, q.size = Math.abs(ve), q.start = 0, q.end = q.size;
15751
+ const ke = q.length - 3;
15752
+ q[2] = 1, bt(q, 0, ke, W), q[ke + 2] = 1, q.size = Math.abs(be), q.start = 0, q.end = q.size;
15753
15753
  }
15754
- function Wn(le, q, W, J) {
15754
+ function Wn(le, q, W, Q) {
15755
15755
  for (let se = 0; se < le.length; se++) {
15756
15756
  const ge = [];
15757
- Me(le[se], ge, W, J), q.push(ge);
15757
+ Me(le[se], ge, W, Q), q.push(ge);
15758
15758
  }
15759
15759
  }
15760
15760
  function qs(le) {
@@ -15764,30 +15764,30 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15764
15764
  const q = Math.sin(le * Math.PI / 180), W = 0.5 - 0.25 * Math.log((1 + q) / (1 - q)) / Math.PI;
15765
15765
  return W < 0 ? 0 : W > 1 ? 1 : W;
15766
15766
  }
15767
- function Rn(le, q, W, J, se, ge, ve, Se) {
15768
- if (J /= q, ge >= (W /= q) && ve < J) return le;
15769
- if (ve < W || ge >= J) return null;
15767
+ function Rn(le, q, W, Q, se, ge, be, ke) {
15768
+ if (Q /= q, ge >= (W /= q) && be < Q) return le;
15769
+ if (be < W || ge >= Q) return null;
15770
15770
  const fe = [];
15771
15771
  for (const ze of le) {
15772
15772
  const Fe = ze.geometry;
15773
15773
  let De = ze.type;
15774
15774
  const Xe = se === 0 ? ze.minX : ze.minY, It = se === 0 ? ze.maxX : ze.maxY;
15775
- if (Xe >= W && It < J) {
15775
+ if (Xe >= W && It < Q) {
15776
15776
  fe.push(ze);
15777
15777
  continue;
15778
15778
  }
15779
- if (It < W || Xe >= J) continue;
15779
+ if (It < W || Xe >= Q) continue;
15780
15780
  let Lt = [];
15781
- if (De === "Point" || De === "MultiPoint") Sr(Fe, Lt, W, J, se);
15782
- else if (De === "LineString") kr(Fe, Lt, W, J, se, !1, Se.lineMetrics);
15783
- else if (De === "MultiLineString") Qr(Fe, Lt, W, J, se, !1);
15784
- else if (De === "Polygon") Qr(Fe, Lt, W, J, se, !0);
15781
+ if (De === "Point" || De === "MultiPoint") Sr(Fe, Lt, W, Q, se);
15782
+ else if (De === "LineString") kr(Fe, Lt, W, Q, se, !1, ke.lineMetrics);
15783
+ else if (De === "MultiLineString") Qr(Fe, Lt, W, Q, se, !1);
15784
+ else if (De === "Polygon") Qr(Fe, Lt, W, Q, se, !0);
15785
15785
  else if (De === "MultiPolygon") for (const Cn of Fe) {
15786
15786
  const tn = [];
15787
- Qr(Cn, tn, W, J, se, !0), tn.length && Lt.push(tn);
15787
+ Qr(Cn, tn, W, Q, se, !0), tn.length && Lt.push(tn);
15788
15788
  }
15789
15789
  if (Lt.length) {
15790
- if (Se.lineMetrics && De === "LineString") {
15790
+ if (ke.lineMetrics && De === "LineString") {
15791
15791
  for (const Cn of Lt) fe.push(En(ze.id, De, Cn, ze.tags));
15792
15792
  continue;
15793
15793
  }
@@ -15796,117 +15796,117 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15796
15796
  }
15797
15797
  return fe.length ? fe : null;
15798
15798
  }
15799
- function Sr(le, q, W, J, se) {
15799
+ function Sr(le, q, W, Q, se) {
15800
15800
  for (let ge = 0; ge < le.length; ge += 3) {
15801
- const ve = le[ge + se];
15802
- ve >= W && ve <= J && Wi(q, le[ge], le[ge + 1], le[ge + 2]);
15801
+ const be = le[ge + se];
15802
+ be >= W && be <= Q && Wi(q, le[ge], le[ge + 1], le[ge + 2]);
15803
15803
  }
15804
15804
  }
15805
- function kr(le, q, W, J, se, ge, ve) {
15806
- let Se = Ui(le);
15805
+ function kr(le, q, W, Q, se, ge, be) {
15806
+ let ke = Ui(le);
15807
15807
  const fe = se === 0 ? Gs : Ys;
15808
15808
  let ze, Fe, De = le.start;
15809
15809
  for (let tn = 0; tn < le.length - 3; tn += 3) {
15810
15810
  const Tn = le[tn], pn = le[tn + 1], Ai = le[tn + 2], mi = le[tn + 3], sn = le[tn + 4], $n = se === 0 ? Tn : pn, di = se === 0 ? mi : sn;
15811
15811
  let Li = !1;
15812
- ve && (ze = Math.sqrt(Math.pow(Tn - mi, 2) + Math.pow(pn - sn, 2))), $n < W ? di > W && (Fe = fe(Se, Tn, pn, mi, sn, W), ve && (Se.start = De + ze * Fe)) : $n > J ? di < J && (Fe = fe(Se, Tn, pn, mi, sn, J), ve && (Se.start = De + ze * Fe)) : Wi(Se, Tn, pn, Ai), di < W && $n >= W && (Fe = fe(Se, Tn, pn, mi, sn, W), Li = !0), di > J && $n <= J && (Fe = fe(Se, Tn, pn, mi, sn, J), Li = !0), !ge && Li && (ve && (Se.end = De + ze * Fe), q.push(Se), Se = Ui(le)), ve && (De += ze);
15812
+ be && (ze = Math.sqrt(Math.pow(Tn - mi, 2) + Math.pow(pn - sn, 2))), $n < W ? di > W && (Fe = fe(ke, Tn, pn, mi, sn, W), be && (ke.start = De + ze * Fe)) : $n > Q ? di < Q && (Fe = fe(ke, Tn, pn, mi, sn, Q), be && (ke.start = De + ze * Fe)) : Wi(ke, Tn, pn, Ai), di < W && $n >= W && (Fe = fe(ke, Tn, pn, mi, sn, W), Li = !0), di > Q && $n <= Q && (Fe = fe(ke, Tn, pn, mi, sn, Q), Li = !0), !ge && Li && (be && (ke.end = De + ze * Fe), q.push(ke), ke = Ui(le)), be && (De += ze);
15813
15813
  }
15814
15814
  let Xe = le.length - 3;
15815
15815
  const It = le[Xe], Lt = le[Xe + 1], Cn = se === 0 ? It : Lt;
15816
- Cn >= W && Cn <= J && Wi(Se, It, Lt, le[Xe + 2]), Xe = Se.length - 3, ge && Xe >= 3 && (Se[Xe] !== Se[0] || Se[Xe + 1] !== Se[1]) && Wi(Se, Se[0], Se[1], Se[2]), Se.length && q.push(Se);
15816
+ Cn >= W && Cn <= Q && Wi(ke, It, Lt, le[Xe + 2]), Xe = ke.length - 3, ge && Xe >= 3 && (ke[Xe] !== ke[0] || ke[Xe + 1] !== ke[1]) && Wi(ke, ke[0], ke[1], ke[2]), ke.length && q.push(ke);
15817
15817
  }
15818
15818
  function Ui(le) {
15819
15819
  const q = [];
15820
15820
  return q.size = le.size, q.start = le.start, q.end = le.end, q;
15821
15821
  }
15822
- function Qr(le, q, W, J, se, ge) {
15823
- for (const ve of le) kr(ve, q, W, J, se, ge, !1);
15822
+ function Qr(le, q, W, Q, se, ge) {
15823
+ for (const be of le) kr(be, q, W, Q, se, ge, !1);
15824
15824
  }
15825
- function Wi(le, q, W, J) {
15826
- le.push(q, W, J);
15825
+ function Wi(le, q, W, Q) {
15826
+ le.push(q, W, Q);
15827
15827
  }
15828
- function Gs(le, q, W, J, se, ge) {
15829
- const ve = (ge - q) / (J - q);
15830
- return Wi(le, ge, W + (se - W) * ve, 1), ve;
15828
+ function Gs(le, q, W, Q, se, ge) {
15829
+ const be = (ge - q) / (Q - q);
15830
+ return Wi(le, ge, W + (se - W) * be, 1), be;
15831
15831
  }
15832
- function Ys(le, q, W, J, se, ge) {
15833
- const ve = (ge - W) / (se - W);
15834
- return Wi(le, q + (J - q) * ve, ge, 1), ve;
15832
+ function Ys(le, q, W, Q, se, ge) {
15833
+ const be = (ge - W) / (se - W);
15834
+ return Wi(le, q + (Q - q) * be, ge, 1), be;
15835
15835
  }
15836
15836
  function qe(le, q) {
15837
15837
  const W = [];
15838
- for (let J = 0; J < le.length; J++) {
15839
- const se = le[J], ge = se.type;
15840
- let ve;
15841
- if (ge === "Point" || ge === "MultiPoint" || ge === "LineString") ve = es(se.geometry, q);
15838
+ for (let Q = 0; Q < le.length; Q++) {
15839
+ const se = le[Q], ge = se.type;
15840
+ let be;
15841
+ if (ge === "Point" || ge === "MultiPoint" || ge === "LineString") be = es(se.geometry, q);
15842
15842
  else if (ge === "MultiLineString" || ge === "Polygon") {
15843
- ve = [];
15844
- for (const Se of se.geometry) ve.push(es(Se, q));
15843
+ be = [];
15844
+ for (const ke of se.geometry) be.push(es(ke, q));
15845
15845
  } else if (ge === "MultiPolygon") {
15846
- ve = [];
15847
- for (const Se of se.geometry) {
15846
+ be = [];
15847
+ for (const ke of se.geometry) {
15848
15848
  const fe = [];
15849
- for (const ze of Se) fe.push(es(ze, q));
15850
- ve.push(fe);
15849
+ for (const ze of ke) fe.push(es(ze, q));
15850
+ be.push(fe);
15851
15851
  }
15852
15852
  }
15853
- W.push(En(se.id, ge, ve, se.tags));
15853
+ W.push(En(se.id, ge, be, se.tags));
15854
15854
  }
15855
15855
  return W;
15856
15856
  }
15857
15857
  function es(le, q) {
15858
15858
  const W = [];
15859
15859
  W.size = le.size, le.start !== void 0 && (W.start = le.start, W.end = le.end);
15860
- for (let J = 0; J < le.length; J += 3) W.push(le[J] + q, le[J + 1], le[J + 2]);
15860
+ for (let Q = 0; Q < le.length; Q += 3) W.push(le[Q] + q, le[Q + 1], le[Q + 2]);
15861
15861
  return W;
15862
15862
  }
15863
15863
  function qi(le, q) {
15864
15864
  if (le.transformed) return le;
15865
- const W = 1 << le.z, J = le.x, se = le.y;
15865
+ const W = 1 << le.z, Q = le.x, se = le.y;
15866
15866
  for (const ge of le.features) {
15867
- const ve = ge.geometry, Se = ge.type;
15868
- if (ge.geometry = [], Se === 1) for (let fe = 0; fe < ve.length; fe += 2) ge.geometry.push(ts(ve[fe], ve[fe + 1], q, W, J, se));
15869
- else for (let fe = 0; fe < ve.length; fe++) {
15867
+ const be = ge.geometry, ke = ge.type;
15868
+ if (ge.geometry = [], ke === 1) for (let fe = 0; fe < be.length; fe += 2) ge.geometry.push(ts(be[fe], be[fe + 1], q, W, Q, se));
15869
+ else for (let fe = 0; fe < be.length; fe++) {
15870
15870
  const ze = [];
15871
- for (let Fe = 0; Fe < ve[fe].length; Fe += 2) ze.push(ts(ve[fe][Fe], ve[fe][Fe + 1], q, W, J, se));
15871
+ for (let Fe = 0; Fe < be[fe].length; Fe += 2) ze.push(ts(be[fe][Fe], be[fe][Fe + 1], q, W, Q, se));
15872
15872
  ge.geometry.push(ze);
15873
15873
  }
15874
15874
  }
15875
15875
  return le.transformed = !0, le;
15876
15876
  }
15877
- function ts(le, q, W, J, se, ge) {
15878
- return [Math.round(W * (le * J - se)), Math.round(W * (q * J - ge))];
15879
- }
15880
- function Zs(le, q, W, J, se) {
15881
- const ge = q === se.maxZoom ? 0 : se.tolerance / ((1 << q) * se.extent), ve = { features: [], numPoints: 0, numSimplified: 0, numFeatures: le.length, source: null, x: W, y: J, z: q, transformed: !1, minX: 2, minY: 1, maxX: -1, maxY: 0 };
15882
- for (const Se of le) Qe(ve, Se, ge, se);
15883
- return ve;
15884
- }
15885
- function Qe(le, q, W, J) {
15886
- const se = q.geometry, ge = q.type, ve = [];
15887
- if (le.minX = Math.min(le.minX, q.minX), le.minY = Math.min(le.minY, q.minY), le.maxX = Math.max(le.maxX, q.maxX), le.maxY = Math.max(le.maxY, q.maxY), ge === "Point" || ge === "MultiPoint") for (let Se = 0; Se < se.length; Se += 3) ve.push(se[Se], se[Se + 1]), le.numPoints++, le.numSimplified++;
15888
- else if (ge === "LineString") Te(ve, se, le, W, !1, !1);
15889
- else if (ge === "MultiLineString" || ge === "Polygon") for (let Se = 0; Se < se.length; Se++) Te(ve, se[Se], le, W, ge === "Polygon", Se === 0);
15890
- else if (ge === "MultiPolygon") for (let Se = 0; Se < se.length; Se++) {
15891
- const fe = se[Se];
15892
- for (let ze = 0; ze < fe.length; ze++) Te(ve, fe[ze], le, W, !0, ze === 0);
15893
- }
15894
- if (ve.length) {
15895
- let Se = q.tags || null;
15896
- if (ge === "LineString" && J.lineMetrics) {
15897
- Se = {};
15898
- for (const ze in q.tags) Se[ze] = q.tags[ze];
15899
- Se.mapbox_clip_start = se.start / se.size, Se.mapbox_clip_end = se.end / se.size;
15900
- }
15901
- const fe = { geometry: ve, type: ge === "Polygon" || ge === "MultiPolygon" ? 3 : ge === "LineString" || ge === "MultiLineString" ? 2 : 1, tags: Se };
15877
+ function ts(le, q, W, Q, se, ge) {
15878
+ return [Math.round(W * (le * Q - se)), Math.round(W * (q * Q - ge))];
15879
+ }
15880
+ function Zs(le, q, W, Q, se) {
15881
+ const ge = q === se.maxZoom ? 0 : se.tolerance / ((1 << q) * se.extent), be = { features: [], numPoints: 0, numSimplified: 0, numFeatures: le.length, source: null, x: W, y: Q, z: q, transformed: !1, minX: 2, minY: 1, maxX: -1, maxY: 0 };
15882
+ for (const ke of le) Qe(be, ke, ge, se);
15883
+ return be;
15884
+ }
15885
+ function Qe(le, q, W, Q) {
15886
+ const se = q.geometry, ge = q.type, be = [];
15887
+ if (le.minX = Math.min(le.minX, q.minX), le.minY = Math.min(le.minY, q.minY), le.maxX = Math.max(le.maxX, q.maxX), le.maxY = Math.max(le.maxY, q.maxY), ge === "Point" || ge === "MultiPoint") for (let ke = 0; ke < se.length; ke += 3) be.push(se[ke], se[ke + 1]), le.numPoints++, le.numSimplified++;
15888
+ else if (ge === "LineString") Te(be, se, le, W, !1, !1);
15889
+ else if (ge === "MultiLineString" || ge === "Polygon") for (let ke = 0; ke < se.length; ke++) Te(be, se[ke], le, W, ge === "Polygon", ke === 0);
15890
+ else if (ge === "MultiPolygon") for (let ke = 0; ke < se.length; ke++) {
15891
+ const fe = se[ke];
15892
+ for (let ze = 0; ze < fe.length; ze++) Te(be, fe[ze], le, W, !0, ze === 0);
15893
+ }
15894
+ if (be.length) {
15895
+ let ke = q.tags || null;
15896
+ if (ge === "LineString" && Q.lineMetrics) {
15897
+ ke = {};
15898
+ for (const ze in q.tags) ke[ze] = q.tags[ze];
15899
+ ke.mapbox_clip_start = se.start / se.size, ke.mapbox_clip_end = se.end / se.size;
15900
+ }
15901
+ const fe = { geometry: be, type: ge === "Polygon" || ge === "MultiPolygon" ? 3 : ge === "LineString" || ge === "MultiLineString" ? 2 : 1, tags: ke };
15902
15902
  q.id !== null && (fe.id = q.id), le.features.push(fe);
15903
15903
  }
15904
15904
  }
15905
- function Te(le, q, W, J, se, ge) {
15906
- const ve = J * J;
15907
- if (J > 0 && q.size < (se ? ve : J)) return void (W.numPoints += q.length / 3);
15908
- const Se = [];
15909
- for (let fe = 0; fe < q.length; fe += 3) (J === 0 || q[fe + 2] > ve) && (W.numSimplified++, Se.push(q[fe], q[fe + 1])), W.numPoints++;
15905
+ function Te(le, q, W, Q, se, ge) {
15906
+ const be = Q * Q;
15907
+ if (Q > 0 && q.size < (se ? be : Q)) return void (W.numPoints += q.length / 3);
15908
+ const ke = [];
15909
+ for (let fe = 0; fe < q.length; fe += 3) (Q === 0 || q[fe + 2] > be) && (W.numSimplified++, ke.push(q[fe], q[fe + 1])), W.numPoints++;
15910
15910
  se && function(fe, ze) {
15911
15911
  let Fe = 0;
15912
15912
  for (let De = 0, Xe = fe.length, It = Xe - 2; De < Xe; It = De, De += 2) Fe += (fe[De] - fe[It]) * (fe[De + 1] + fe[It + 1]);
@@ -15914,38 +15914,38 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15914
15914
  const It = fe[De], Lt = fe[De + 1];
15915
15915
  fe[De] = fe[Xe - 2 - De], fe[De + 1] = fe[Xe - 1 - De], fe[Xe - 2 - De] = It, fe[Xe - 1 - De] = Lt;
15916
15916
  }
15917
- }(Se, ge), le.push(Se);
15917
+ }(ke, ge), le.push(ke);
15918
15918
  }
15919
15919
  const Ve = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: !1, promoteId: null, generateId: !1, debug: 0 };
15920
15920
  class Pt {
15921
15921
  constructor(q, W) {
15922
- const J = (W = this.options = function(ge, ve) {
15923
- for (const Se in ve) ge[Se] = ve[Se];
15922
+ const Q = (W = this.options = function(ge, be) {
15923
+ for (const ke in be) ge[ke] = be[ke];
15924
15924
  return ge;
15925
15925
  }(Object.create(Ve), W)).debug;
15926
- if (J && console.time("preprocess data"), W.maxZoom < 0 || W.maxZoom > 24) throw new Error("maxZoom should be in the 0-24 range");
15926
+ if (Q && console.time("preprocess data"), W.maxZoom < 0 || W.maxZoom > 24) throw new Error("maxZoom should be in the 0-24 range");
15927
15927
  if (W.promoteId && W.generateId) throw new Error("promoteId and generateId cannot be used together.");
15928
- let se = function(ge, ve) {
15929
- const Se = [];
15930
- if (ge.type === "FeatureCollection") for (let fe = 0; fe < ge.features.length; fe++) Ht(Se, ge.features[fe], ve, fe);
15931
- else Ht(Se, ge.type === "Feature" ? ge : { geometry: ge }, ve);
15932
- return Se;
15928
+ let se = function(ge, be) {
15929
+ const ke = [];
15930
+ if (ge.type === "FeatureCollection") for (let fe = 0; fe < ge.features.length; fe++) Ht(ke, ge.features[fe], be, fe);
15931
+ else Ht(ke, ge.type === "Feature" ? ge : { geometry: ge }, be);
15932
+ return ke;
15933
15933
  }(q, W);
15934
- this.tiles = {}, this.tileCoords = [], J && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", W.indexMaxZoom, W.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), se = function(ge, ve) {
15935
- const Se = ve.buffer / ve.extent;
15934
+ this.tiles = {}, this.tileCoords = [], Q && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", W.indexMaxZoom, W.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), se = function(ge, be) {
15935
+ const ke = be.buffer / be.extent;
15936
15936
  let fe = ge;
15937
- const ze = Rn(ge, 1, -1 - Se, Se, 0, -1, 2, ve), Fe = Rn(ge, 1, 1 - Se, 2 + Se, 0, -1, 2, ve);
15938
- return (ze || Fe) && (fe = Rn(ge, 1, -Se, 1 + Se, 0, -1, 2, ve) || [], ze && (fe = qe(ze, 1).concat(fe)), Fe && (fe = fe.concat(qe(Fe, -1)))), fe;
15939
- }(se, W), se.length && this.splitTile(se, 0, 0, 0), J && (se.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats)));
15937
+ const ze = Rn(ge, 1, -1 - ke, ke, 0, -1, 2, be), Fe = Rn(ge, 1, 1 - ke, 2 + ke, 0, -1, 2, be);
15938
+ return (ze || Fe) && (fe = Rn(ge, 1, -ke, 1 + ke, 0, -1, 2, be) || [], ze && (fe = qe(ze, 1).concat(fe)), Fe && (fe = fe.concat(qe(Fe, -1)))), fe;
15939
+ }(se, W), se.length && this.splitTile(se, 0, 0, 0), Q && (se.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats)));
15940
15940
  }
15941
- splitTile(q, W, J, se, ge, ve, Se) {
15942
- const fe = [q, W, J, se], ze = this.options, Fe = ze.debug;
15941
+ splitTile(q, W, Q, se, ge, be, ke) {
15942
+ const fe = [q, W, Q, se], ze = this.options, Fe = ze.debug;
15943
15943
  for (; fe.length; ) {
15944
- se = fe.pop(), J = fe.pop(), W = fe.pop(), q = fe.pop();
15945
- const De = 1 << W, Xe = cn(W, J, se);
15944
+ se = fe.pop(), Q = fe.pop(), W = fe.pop(), q = fe.pop();
15945
+ const De = 1 << W, Xe = cn(W, Q, se);
15946
15946
  let It = this.tiles[Xe];
15947
- if (!It && (Fe > 1 && console.time("creation"), It = this.tiles[Xe] = Zs(q, W, J, se, ze), this.tileCoords.push({ z: W, x: J, y: se }), Fe)) {
15948
- Fe > 1 && (console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)", W, J, se, It.numFeatures, It.numPoints, It.numSimplified), console.timeEnd("creation"));
15947
+ if (!It && (Fe > 1 && console.time("creation"), It = this.tiles[Xe] = Zs(q, W, Q, se, ze), this.tileCoords.push({ z: W, x: Q, y: se }), Fe)) {
15948
+ Fe > 1 && (console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)", W, Q, se, It.numFeatures, It.numPoints, It.numSimplified), console.timeEnd("creation"));
15949
15949
  const Li = `z${W}`;
15950
15950
  this.stats[Li] = (this.stats[Li] || 0) + 1, this.total++;
15951
15951
  }
@@ -15955,26 +15955,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15955
15955
  if (W === ze.maxZoom || W === ge) continue;
15956
15956
  if (ge != null) {
15957
15957
  const Li = ge - W;
15958
- if (J !== ve >> Li || se !== Se >> Li) continue;
15958
+ if (Q !== be >> Li || se !== ke >> Li) continue;
15959
15959
  }
15960
15960
  }
15961
15961
  if (It.source = null, q.length === 0) continue;
15962
15962
  Fe > 1 && console.time("clipping");
15963
15963
  const Lt = 0.5 * ze.buffer / ze.extent, Cn = 0.5 - Lt, tn = 0.5 + Lt, Tn = 1 + Lt;
15964
- let pn = null, Ai = null, mi = null, sn = null, $n = Rn(q, De, J - Lt, J + tn, 0, It.minX, It.maxX, ze), di = Rn(q, De, J + Cn, J + Tn, 0, It.minX, It.maxX, ze);
15965
- q = null, $n && (pn = Rn($n, De, se - Lt, se + tn, 1, It.minY, It.maxY, ze), Ai = Rn($n, De, se + Cn, se + Tn, 1, It.minY, It.maxY, ze), $n = null), di && (mi = Rn(di, De, se - Lt, se + tn, 1, It.minY, It.maxY, ze), sn = Rn(di, De, se + Cn, se + Tn, 1, It.minY, It.maxY, ze), di = null), Fe > 1 && console.timeEnd("clipping"), fe.push(pn || [], W + 1, 2 * J, 2 * se), fe.push(Ai || [], W + 1, 2 * J, 2 * se + 1), fe.push(mi || [], W + 1, 2 * J + 1, 2 * se), fe.push(sn || [], W + 1, 2 * J + 1, 2 * se + 1);
15964
+ let pn = null, Ai = null, mi = null, sn = null, $n = Rn(q, De, Q - Lt, Q + tn, 0, It.minX, It.maxX, ze), di = Rn(q, De, Q + Cn, Q + Tn, 0, It.minX, It.maxX, ze);
15965
+ q = null, $n && (pn = Rn($n, De, se - Lt, se + tn, 1, It.minY, It.maxY, ze), Ai = Rn($n, De, se + Cn, se + Tn, 1, It.minY, It.maxY, ze), $n = null), di && (mi = Rn(di, De, se - Lt, se + tn, 1, It.minY, It.maxY, ze), sn = Rn(di, De, se + Cn, se + Tn, 1, It.minY, It.maxY, ze), di = null), Fe > 1 && console.timeEnd("clipping"), fe.push(pn || [], W + 1, 2 * Q, 2 * se), fe.push(Ai || [], W + 1, 2 * Q, 2 * se + 1), fe.push(mi || [], W + 1, 2 * Q + 1, 2 * se), fe.push(sn || [], W + 1, 2 * Q + 1, 2 * se + 1);
15966
15966
  }
15967
15967
  }
15968
- getTile(q, W, J) {
15969
- q = +q, W = +W, J = +J;
15970
- const se = this.options, { extent: ge, debug: ve } = se;
15968
+ getTile(q, W, Q) {
15969
+ q = +q, W = +W, Q = +Q;
15970
+ const se = this.options, { extent: ge, debug: be } = se;
15971
15971
  if (q < 0 || q > 24) return null;
15972
- const Se = 1 << q, fe = cn(q, W = W + Se & Se - 1, J);
15972
+ const ke = 1 << q, fe = cn(q, W = W + ke & ke - 1, Q);
15973
15973
  if (this.tiles[fe]) return qi(this.tiles[fe], ge);
15974
- ve > 1 && console.log("drilling down to z%d-%d-%d", q, W, J);
15975
- let ze, Fe = q, De = W, Xe = J;
15974
+ be > 1 && console.log("drilling down to z%d-%d-%d", q, W, Q);
15975
+ let ze, Fe = q, De = W, Xe = Q;
15976
15976
  for (; !ze && Fe > 0; ) Fe--, De >>= 1, Xe >>= 1, ze = this.tiles[cn(Fe, De, Xe)];
15977
- return ze && ze.source ? (ve > 1 && (console.log("found parent tile z%d-%d-%d", Fe, De, Xe), console.time("drilling down")), this.splitTile(ze.source, Fe, De, Xe, q, W, J), ve > 1 && console.timeEnd("drilling down"), this.tiles[fe] ? qi(this.tiles[fe], ge) : null) : null;
15977
+ return ze && ze.source ? (be > 1 && (console.log("found parent tile z%d-%d-%d", Fe, De, Xe), console.time("drilling down")), this.splitTile(ze.source, Fe, De, Xe, q, W, Q), be > 1 && console.timeEnd("drilling down"), this.tiles[fe] ? qi(this.tiles[fe], ge) : null) : null;
15978
15978
  }
15979
15979
  }
15980
15980
  function cn(le, q, W) {
@@ -15988,8 +15988,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15988
15988
  if (le.type === "Feature") return at(le, q) != null;
15989
15989
  if (le.type === "FeatureCollection") {
15990
15990
  const W = /* @__PURE__ */ new Set();
15991
- for (const J of le.features) {
15992
- const se = at(J, q);
15991
+ for (const Q of le.features) {
15992
+ const se = at(Q, q);
15993
15993
  if (se == null || W.has(se)) return !1;
15994
15994
  W.add(se);
15995
15995
  }
@@ -16000,7 +16000,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16000
16000
  function _i(le, q) {
16001
16001
  const W = /* @__PURE__ */ new Map();
16002
16002
  if (le != null) if (le.type === "Feature") W.set(at(le, q), le);
16003
- else for (const J of le.features) W.set(at(J, q), J);
16003
+ else for (const Q of le.features) W.set(at(Q, q), Q);
16004
16004
  return W;
16005
16005
  }
16006
16006
  class fr extends _ {
@@ -16009,15 +16009,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16009
16009
  }
16010
16010
  loadVectorTile(q, W) {
16011
16011
  return a._(this, void 0, void 0, function* () {
16012
- const J = q.tileID.canonical;
16012
+ const Q = q.tileID.canonical;
16013
16013
  if (!this._geoJSONIndex) throw new Error("Unable to parse the data into a cluster or geojson");
16014
- const se = this._geoJSONIndex.getTile(J.z, J.x, J.y);
16014
+ const se = this._geoJSONIndex.getTile(Q.z, Q.x, Q.y);
16015
16015
  if (!se) return null;
16016
16016
  const ge = new class {
16017
- constructor(Se) {
16018
- this.layers = { _geojsonTileLayer: this }, this.name = "_geojsonTileLayer", this.extent = a.X, this.length = Se.length, this._features = Se;
16017
+ constructor(ke) {
16018
+ this.layers = { _geojsonTileLayer: this }, this.name = "_geojsonTileLayer", this.extent = a.X, this.length = ke.length, this._features = ke;
16019
16019
  }
16020
- feature(Se) {
16020
+ feature(ke) {
16021
16021
  return new class {
16022
16022
  constructor(fe) {
16023
16023
  this._feature = fe, this.extent = a.X, this.type = fe.type, this.properties = fe.tags, "id" in fe && !isNaN(fe.id) && (this.id = parseInt(fe.id, 10));
@@ -16041,41 +16041,41 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16041
16041
  toGeoJSON(fe, ze, Fe) {
16042
16042
  return O.call(this, fe, ze, Fe);
16043
16043
  }
16044
- }(this._features[Se]);
16044
+ }(this._features[ke]);
16045
16045
  }
16046
16046
  }(se.features);
16047
- let ve = jt(ge);
16048
- return ve.byteOffset === 0 && ve.byteLength === ve.buffer.byteLength || (ve = new Uint8Array(ve)), { vectorTile: ge, rawData: ve.buffer };
16047
+ let be = jt(ge);
16048
+ return be.byteOffset === 0 && be.byteLength === be.buffer.byteLength || (be = new Uint8Array(be)), { vectorTile: ge, rawData: be.buffer };
16049
16049
  });
16050
16050
  }
16051
16051
  loadData(q) {
16052
16052
  return a._(this, void 0, void 0, function* () {
16053
16053
  var W;
16054
16054
  (W = this._pendingRequest) === null || W === void 0 || W.abort();
16055
- const J = !!(q && q.request && q.request.collectResourceTiming) && new a.bv(q.request);
16055
+ const Q = !!(q && q.request && q.request.collectResourceTiming) && new a.bv(q.request);
16056
16056
  this._pendingRequest = new AbortController();
16057
16057
  try {
16058
- this._pendingData = this.loadAndProcessGeoJSON(q, this._pendingRequest), this._geoJSONIndex = q.cluster ? new Ln(function({ superclusterOptions: ve, clusterProperties: Se }) {
16059
- if (!Se || !ve) return ve;
16060
- const fe = {}, ze = {}, Fe = { accumulated: null, zoom: 0 }, De = { properties: null }, Xe = Object.keys(Se);
16058
+ this._pendingData = this.loadAndProcessGeoJSON(q, this._pendingRequest), this._geoJSONIndex = q.cluster ? new Ln(function({ superclusterOptions: be, clusterProperties: ke }) {
16059
+ if (!ke || !be) return be;
16060
+ const fe = {}, ze = {}, Fe = { accumulated: null, zoom: 0 }, De = { properties: null }, Xe = Object.keys(ke);
16061
16061
  for (const It of Xe) {
16062
- const [Lt, Cn] = Se[It], tn = a.bC(Cn), Tn = a.bC(typeof Lt == "string" ? [Lt, ["accumulated"], ["get", It]] : Lt);
16062
+ const [Lt, Cn] = ke[It], tn = a.bC(Cn), Tn = a.bC(typeof Lt == "string" ? [Lt, ["accumulated"], ["get", It]] : Lt);
16063
16063
  fe[It] = tn.value, ze[It] = Tn.value;
16064
16064
  }
16065
- return ve.map = (It) => {
16065
+ return be.map = (It) => {
16066
16066
  De.properties = It;
16067
16067
  const Lt = {};
16068
16068
  for (const Cn of Xe) Lt[Cn] = fe[Cn].evaluate(Fe, De);
16069
16069
  return Lt;
16070
- }, ve.reduce = (It, Lt) => {
16070
+ }, be.reduce = (It, Lt) => {
16071
16071
  De.properties = Lt;
16072
16072
  for (const Cn of Xe) Fe.accumulated = It[Cn], It[Cn] = ze[Cn].evaluate(Fe, De);
16073
- }, ve;
16073
+ }, be;
16074
16074
  }(q)).load((yield this._pendingData).features) : (se = yield this._pendingData, new Pt(se, q.geojsonVtOptions)), this.loaded = {};
16075
16075
  const ge = {};
16076
- if (J) {
16077
- const ve = J.finish();
16078
- ve && (ge.resourceTiming = {}, ge.resourceTiming[q.source] = JSON.parse(JSON.stringify(ve)));
16076
+ if (Q) {
16077
+ const be = Q.finish();
16078
+ be && (ge.resourceTiming = {}, ge.resourceTiming[q.source] = JSON.parse(JSON.stringify(be)));
16079
16079
  }
16080
16080
  return ge;
16081
16081
  } catch (ge) {
@@ -16096,47 +16096,47 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16096
16096
  }
16097
16097
  loadAndProcessGeoJSON(q, W) {
16098
16098
  return a._(this, void 0, void 0, function* () {
16099
- let J = yield this.loadGeoJSON(q, W);
16100
- if (delete this._pendingRequest, typeof J != "object") throw new Error(`Input data given to '${q.source}' is not a valid GeoJSON object.`);
16101
- if (z(J, !0), q.filter) {
16099
+ let Q = yield this.loadGeoJSON(q, W);
16100
+ if (delete this._pendingRequest, typeof Q != "object") throw new Error(`Input data given to '${q.source}' is not a valid GeoJSON object.`);
16101
+ if (z(Q, !0), q.filter) {
16102
16102
  const se = a.bC(q.filter, { type: "boolean", "property-type": "data-driven", overridable: !1, transition: !1 });
16103
- if (se.result === "error") throw new Error(se.value.map((ve) => `${ve.key}: ${ve.message}`).join(", "));
16104
- J = { type: "FeatureCollection", features: J.features.filter((ve) => se.value.evaluate({ zoom: 0 }, ve)) };
16103
+ if (se.result === "error") throw new Error(se.value.map((be) => `${be.key}: ${be.message}`).join(", "));
16104
+ Q = { type: "FeatureCollection", features: Q.features.filter((be) => se.value.evaluate({ zoom: 0 }, be)) };
16105
16105
  }
16106
- return J;
16106
+ return Q;
16107
16107
  });
16108
16108
  }
16109
16109
  loadGeoJSON(q, W) {
16110
16110
  return a._(this, void 0, void 0, function* () {
16111
- const { promoteId: J } = q;
16111
+ const { promoteId: Q } = q;
16112
16112
  if (q.request) {
16113
16113
  const se = yield a.h(q.request, W);
16114
- return this._dataUpdateable = ii(se.data, J) ? _i(se.data, J) : void 0, se.data;
16114
+ return this._dataUpdateable = ii(se.data, Q) ? _i(se.data, Q) : void 0, se.data;
16115
16115
  }
16116
16116
  if (typeof q.data == "string") try {
16117
16117
  const se = JSON.parse(q.data);
16118
- return this._dataUpdateable = ii(se, J) ? _i(se, J) : void 0, se;
16118
+ return this._dataUpdateable = ii(se, Q) ? _i(se, Q) : void 0, se;
16119
16119
  } catch {
16120
16120
  throw new Error(`Input data given to '${q.source}' is not a valid GeoJSON object.`);
16121
16121
  }
16122
16122
  if (!q.dataDiff) throw new Error(`Input data given to '${q.source}' is not a valid GeoJSON object.`);
16123
16123
  if (!this._dataUpdateable) throw new Error(`Cannot update existing geojson data in ${q.source}`);
16124
- return function(se, ge, ve) {
16125
- var Se, fe, ze, Fe;
16124
+ return function(se, ge, be) {
16125
+ var ke, fe, ze, Fe;
16126
16126
  if (ge.removeAll && se.clear(), ge.remove) for (const De of ge.remove) se.delete(De);
16127
16127
  if (ge.add) for (const De of ge.add) {
16128
- const Xe = at(De, ve);
16128
+ const Xe = at(De, be);
16129
16129
  Xe != null && se.set(Xe, De);
16130
16130
  }
16131
16131
  if (ge.update) for (const De of ge.update) {
16132
16132
  let Xe = se.get(De.id);
16133
16133
  if (Xe == null) continue;
16134
- const It = !De.removeAllProperties && (((Se = De.removeProperties) === null || Se === void 0 ? void 0 : Se.length) > 0 || ((fe = De.addOrUpdateProperties) === null || fe === void 0 ? void 0 : fe.length) > 0);
16134
+ const It = !De.removeAllProperties && (((ke = De.removeProperties) === null || ke === void 0 ? void 0 : ke.length) > 0 || ((fe = De.addOrUpdateProperties) === null || fe === void 0 ? void 0 : fe.length) > 0);
16135
16135
  if ((De.newGeometry || De.removeAllProperties || It) && (Xe = Object.assign({}, Xe), se.set(De.id, Xe), It && (Xe.properties = Object.assign({}, Xe.properties))), De.newGeometry && (Xe.geometry = De.newGeometry), De.removeAllProperties) Xe.properties = {};
16136
16136
  else if (((ze = De.removeProperties) === null || ze === void 0 ? void 0 : ze.length) > 0) for (const Lt of De.removeProperties) Object.prototype.hasOwnProperty.call(Xe.properties, Lt) && delete Xe.properties[Lt];
16137
16137
  if (((Fe = De.addOrUpdateProperties) === null || Fe === void 0 ? void 0 : Fe.length) > 0) for (const { key: Lt, value: Cn } of De.addOrUpdateProperties) Xe.properties[Lt] = Cn;
16138
16138
  }
16139
- }(this._dataUpdateable, q.dataDiff, J), { type: "FeatureCollection", features: Array.from(this._dataUpdateable.values()) };
16139
+ }(this._dataUpdateable, q.dataDiff, Q), { type: "FeatureCollection", features: Array.from(this._dataUpdateable.values()) };
16140
16140
  });
16141
16141
  }
16142
16142
  removeSource(q) {
@@ -16156,41 +16156,41 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16156
16156
  }
16157
16157
  class $r {
16158
16158
  constructor(q) {
16159
- this.self = q, this.actor = new a.F(q), this.layerIndexes = {}, this.availableImages = {}, this.workerSources = {}, this.demWorkerSources = {}, this.externalWorkerSourceTypes = {}, this.self.registerWorkerSource = (W, J) => {
16159
+ this.self = q, this.actor = new a.F(q), this.layerIndexes = {}, this.availableImages = {}, this.workerSources = {}, this.demWorkerSources = {}, this.externalWorkerSourceTypes = {}, this.self.registerWorkerSource = (W, Q) => {
16160
16160
  if (this.externalWorkerSourceTypes[W]) throw new Error(`Worker source with name "${W}" already registered.`);
16161
- this.externalWorkerSourceTypes[W] = J;
16161
+ this.externalWorkerSourceTypes[W] = Q;
16162
16162
  }, this.self.addProtocol = a.bi, this.self.removeProtocol = a.bj, this.self.registerRTLTextPlugin = (W) => {
16163
16163
  if (a.bD.isParsed()) throw new Error("RTL text plugin already registered.");
16164
16164
  a.bD.setMethods(W);
16165
- }, this.actor.registerMessageHandler("LDT", (W, J) => this._getDEMWorkerSource(W, J.source).loadTile(J)), this.actor.registerMessageHandler("RDT", (W, J) => a._(this, void 0, void 0, function* () {
16166
- this._getDEMWorkerSource(W, J.source).removeTile(J);
16167
- })), this.actor.registerMessageHandler("GCEZ", (W, J) => a._(this, void 0, void 0, function* () {
16168
- return this._getWorkerSource(W, J.type, J.source).getClusterExpansionZoom(J);
16169
- })), this.actor.registerMessageHandler("GCC", (W, J) => a._(this, void 0, void 0, function* () {
16170
- return this._getWorkerSource(W, J.type, J.source).getClusterChildren(J);
16171
- })), this.actor.registerMessageHandler("GCL", (W, J) => a._(this, void 0, void 0, function* () {
16172
- return this._getWorkerSource(W, J.type, J.source).getClusterLeaves(J);
16173
- })), this.actor.registerMessageHandler("LD", (W, J) => this._getWorkerSource(W, J.type, J.source).loadData(J)), this.actor.registerMessageHandler("GD", (W, J) => this._getWorkerSource(W, J.type, J.source).getData()), this.actor.registerMessageHandler("LT", (W, J) => this._getWorkerSource(W, J.type, J.source).loadTile(J)), this.actor.registerMessageHandler("RT", (W, J) => this._getWorkerSource(W, J.type, J.source).reloadTile(J)), this.actor.registerMessageHandler("AT", (W, J) => this._getWorkerSource(W, J.type, J.source).abortTile(J)), this.actor.registerMessageHandler("RMT", (W, J) => this._getWorkerSource(W, J.type, J.source).removeTile(J)), this.actor.registerMessageHandler("RS", (W, J) => a._(this, void 0, void 0, function* () {
16174
- if (!this.workerSources[W] || !this.workerSources[W][J.type] || !this.workerSources[W][J.type][J.source]) return;
16175
- const se = this.workerSources[W][J.type][J.source];
16176
- delete this.workerSources[W][J.type][J.source], se.removeSource !== void 0 && se.removeSource(J);
16165
+ }, this.actor.registerMessageHandler("LDT", (W, Q) => this._getDEMWorkerSource(W, Q.source).loadTile(Q)), this.actor.registerMessageHandler("RDT", (W, Q) => a._(this, void 0, void 0, function* () {
16166
+ this._getDEMWorkerSource(W, Q.source).removeTile(Q);
16167
+ })), this.actor.registerMessageHandler("GCEZ", (W, Q) => a._(this, void 0, void 0, function* () {
16168
+ return this._getWorkerSource(W, Q.type, Q.source).getClusterExpansionZoom(Q);
16169
+ })), this.actor.registerMessageHandler("GCC", (W, Q) => a._(this, void 0, void 0, function* () {
16170
+ return this._getWorkerSource(W, Q.type, Q.source).getClusterChildren(Q);
16171
+ })), this.actor.registerMessageHandler("GCL", (W, Q) => a._(this, void 0, void 0, function* () {
16172
+ return this._getWorkerSource(W, Q.type, Q.source).getClusterLeaves(Q);
16173
+ })), this.actor.registerMessageHandler("LD", (W, Q) => this._getWorkerSource(W, Q.type, Q.source).loadData(Q)), this.actor.registerMessageHandler("GD", (W, Q) => this._getWorkerSource(W, Q.type, Q.source).getData()), this.actor.registerMessageHandler("LT", (W, Q) => this._getWorkerSource(W, Q.type, Q.source).loadTile(Q)), this.actor.registerMessageHandler("RT", (W, Q) => this._getWorkerSource(W, Q.type, Q.source).reloadTile(Q)), this.actor.registerMessageHandler("AT", (W, Q) => this._getWorkerSource(W, Q.type, Q.source).abortTile(Q)), this.actor.registerMessageHandler("RMT", (W, Q) => this._getWorkerSource(W, Q.type, Q.source).removeTile(Q)), this.actor.registerMessageHandler("RS", (W, Q) => a._(this, void 0, void 0, function* () {
16174
+ if (!this.workerSources[W] || !this.workerSources[W][Q.type] || !this.workerSources[W][Q.type][Q.source]) return;
16175
+ const se = this.workerSources[W][Q.type][Q.source];
16176
+ delete this.workerSources[W][Q.type][Q.source], se.removeSource !== void 0 && se.removeSource(Q);
16177
16177
  })), this.actor.registerMessageHandler("RM", (W) => a._(this, void 0, void 0, function* () {
16178
16178
  delete this.layerIndexes[W], delete this.availableImages[W], delete this.workerSources[W], delete this.demWorkerSources[W];
16179
- })), this.actor.registerMessageHandler("SR", (W, J) => a._(this, void 0, void 0, function* () {
16180
- this.referrer = J;
16181
- })), this.actor.registerMessageHandler("SRPS", (W, J) => this._syncRTLPluginState(W, J)), this.actor.registerMessageHandler("IS", (W, J) => a._(this, void 0, void 0, function* () {
16182
- this.self.importScripts(J);
16183
- })), this.actor.registerMessageHandler("SI", (W, J) => this._setImages(W, J)), this.actor.registerMessageHandler("UL", (W, J) => a._(this, void 0, void 0, function* () {
16184
- this._getLayerIndex(W).update(J.layers, J.removedIds);
16185
- })), this.actor.registerMessageHandler("SL", (W, J) => a._(this, void 0, void 0, function* () {
16186
- this._getLayerIndex(W).replace(J);
16179
+ })), this.actor.registerMessageHandler("SR", (W, Q) => a._(this, void 0, void 0, function* () {
16180
+ this.referrer = Q;
16181
+ })), this.actor.registerMessageHandler("SRPS", (W, Q) => this._syncRTLPluginState(W, Q)), this.actor.registerMessageHandler("IS", (W, Q) => a._(this, void 0, void 0, function* () {
16182
+ this.self.importScripts(Q);
16183
+ })), this.actor.registerMessageHandler("SI", (W, Q) => this._setImages(W, Q)), this.actor.registerMessageHandler("UL", (W, Q) => a._(this, void 0, void 0, function* () {
16184
+ this._getLayerIndex(W).update(Q.layers, Q.removedIds);
16185
+ })), this.actor.registerMessageHandler("SL", (W, Q) => a._(this, void 0, void 0, function* () {
16186
+ this._getLayerIndex(W).replace(Q);
16187
16187
  }));
16188
16188
  }
16189
16189
  _setImages(q, W) {
16190
16190
  return a._(this, void 0, void 0, function* () {
16191
16191
  this.availableImages[q] = W;
16192
- for (const J in this.workerSources[q]) {
16193
- const se = this.workerSources[q][J];
16192
+ for (const Q in this.workerSources[q]) {
16193
+ const se = this.workerSources[q][Q];
16194
16194
  for (const ge in se) se[ge].availableImages = W;
16195
16195
  }
16196
16196
  });
@@ -16199,12 +16199,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16199
16199
  return a._(this, void 0, void 0, function* () {
16200
16200
  if (a.bD.isParsed()) return a.bD.getState();
16201
16201
  if (W.pluginStatus !== "loading") return a.bD.setState(W), W;
16202
- const J = W.pluginURL;
16203
- if (this.self.importScripts(J), a.bD.isParsed()) {
16204
- const se = { pluginStatus: "loaded", pluginURL: J };
16202
+ const Q = W.pluginURL;
16203
+ if (this.self.importScripts(Q), a.bD.isParsed()) {
16204
+ const se = { pluginStatus: "loaded", pluginURL: Q };
16205
16205
  return a.bD.setState(se), se;
16206
16206
  }
16207
- throw a.bD.setState({ pluginStatus: "error", pluginURL: "" }), new Error(`RTL Text Plugin failed to import scripts from ${J}`);
16207
+ throw a.bD.setState({ pluginStatus: "error", pluginURL: "" }), new Error(`RTL Text Plugin failed to import scripts from ${Q}`);
16208
16208
  });
16209
16209
  }
16210
16210
  _getAvailableImages(q) {
@@ -16215,21 +16215,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16215
16215
  let W = this.layerIndexes[q];
16216
16216
  return W || (W = this.layerIndexes[q] = new o()), W;
16217
16217
  }
16218
- _getWorkerSource(q, W, J) {
16219
- if (this.workerSources[q] || (this.workerSources[q] = {}), this.workerSources[q][W] || (this.workerSources[q][W] = {}), !this.workerSources[q][W][J]) {
16220
- const se = { sendAsync: (ge, ve) => (ge.targetMapId = q, this.actor.sendAsync(ge, ve)) };
16218
+ _getWorkerSource(q, W, Q) {
16219
+ if (this.workerSources[q] || (this.workerSources[q] = {}), this.workerSources[q][W] || (this.workerSources[q][W] = {}), !this.workerSources[q][W][Q]) {
16220
+ const se = { sendAsync: (ge, be) => (ge.targetMapId = q, this.actor.sendAsync(ge, be)) };
16221
16221
  switch (W) {
16222
16222
  case "vector":
16223
- this.workerSources[q][W][J] = new _(se, this._getLayerIndex(q), this._getAvailableImages(q));
16223
+ this.workerSources[q][W][Q] = new _(se, this._getLayerIndex(q), this._getAvailableImages(q));
16224
16224
  break;
16225
16225
  case "geojson":
16226
- this.workerSources[q][W][J] = new fr(se, this._getLayerIndex(q), this._getAvailableImages(q));
16226
+ this.workerSources[q][W][Q] = new fr(se, this._getLayerIndex(q), this._getAvailableImages(q));
16227
16227
  break;
16228
16228
  default:
16229
- this.workerSources[q][W][J] = new this.externalWorkerSourceTypes[W](se, this._getLayerIndex(q), this._getAvailableImages(q));
16229
+ this.workerSources[q][W][Q] = new this.externalWorkerSourceTypes[W](se, this._getLayerIndex(q), this._getAvailableImages(q));
16230
16230
  }
16231
16231
  }
16232
- return this.workerSources[q][W][J];
16232
+ return this.workerSources[q][W][Q];
16233
16233
  }
16234
16234
  _getDEMWorkerSource(q, W) {
16235
16235
  return this.demWorkerSources[q] || (this.demWorkerSources[q] = {}), this.demWorkerSources[q][W] || (this.demWorkerSources[q][W] = new k()), this.demWorkerSources[q][W];
@@ -16328,7 +16328,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16328
16328
  }
16329
16329
  w.deleteTexture(l), O = !0;
16330
16330
  }
16331
- var Q;
16331
+ var J;
16332
16332
  typeof document < "u" && (z = document.createElement("img"), z.onload = () => {
16333
16333
  D && U(D), D = null, F = !0;
16334
16334
  }, z.onerror = () => {
@@ -16382,7 +16382,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16382
16382
  Y.onerror = Y.onload = null, B.signal.aborted || j(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
16383
16383
  }, Y.src = te;
16384
16384
  });
16385
- }(Q || (Q = {})), Q.resetRequestQueue();
16385
+ }(J || (J = {})), J.resetRequestQueue();
16386
16386
  class Z {
16387
16387
  constructor(l) {
16388
16388
  this._transformRequestFn = l;
@@ -16394,14 +16394,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16394
16394
  this._transformRequestFn = l;
16395
16395
  }
16396
16396
  }
16397
- function Ee(w) {
16397
+ function Se(w) {
16398
16398
  var l = new o.A(3);
16399
16399
  return l[0] = w[0], l[1] = w[1], l[2] = w[2], l;
16400
16400
  }
16401
- var be, Ae = function(w, l, h) {
16401
+ var ve, Ae = function(w, l, h) {
16402
16402
  return w[0] = l[0] - h[0], w[1] = l[1] - h[1], w[2] = l[2] - h[2], w;
16403
16403
  };
16404
- be = new o.A(3), o.A != Float32Array && (be[0] = 0, be[1] = 0, be[2] = 0);
16404
+ ve = new o.A(3), o.A != Float32Array && (ve[0] = 0, ve[1] = 0, ve[2] = 0);
16405
16405
  var $e = function(w) {
16406
16406
  var l = w[0], h = w[1];
16407
16407
  return l * l + h * h;
@@ -17150,7 +17150,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
17150
17150
  const h = l.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme);
17151
17151
  l.abortController = new AbortController();
17152
17152
  try {
17153
- const y = yield Q.getImage(this.map._requestManager.transformRequest(h, "Tile"), l.abortController, this.map._refreshExpiredTiles);
17153
+ const y = yield J.getImage(this.map._requestManager.transformRequest(h, "Tile"), l.abortController, this.map._refreshExpiredTiles);
17154
17154
  if (delete l.abortController, l.aborted) return void (l.state = "unloaded");
17155
17155
  if (y && y.data) {
17156
17156
  this.map._refreshExpiredTiles && y.cacheControl && y.expires && l.setExpiryData({ cacheControl: y.cacheControl, expires: y.expires });
@@ -17186,7 +17186,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
17186
17186
  const h = l.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme), y = this.map._requestManager.transformRequest(h, "Tile");
17187
17187
  l.neighboringTiles = this._getNeighboringTiles(l.tileID), l.abortController = new AbortController();
17188
17188
  try {
17189
- const v = yield Q.getImage(y, l.abortController, this.map._refreshExpiredTiles);
17189
+ const v = yield J.getImage(y, l.abortController, this.map._refreshExpiredTiles);
17190
17190
  if (delete l.abortController, l.aborted) return void (l.state = "unloaded");
17191
17191
  if (v && v.data) {
17192
17192
  const x = v.data;
@@ -17323,7 +17323,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
17323
17323
  return o._(this, void 0, void 0, function* () {
17324
17324
  this._loaded = !1, this.fire(new o.k("dataloading", { dataType: "source" })), this.url = this.options.url, this._request = new AbortController();
17325
17325
  try {
17326
- const h = yield Q.getImage(this.map._requestManager.transformRequest(this.url, "Image"), this._request);
17326
+ const h = yield J.getImage(this.map._requestManager.transformRequest(this.url, "Image"), this._request);
17327
17327
  this._request = null, this._loaded = !0, h && h.data && (this.image = h.data, l && (this.coordinates = l), this._finishLoading());
17328
17328
  } catch (h) {
17329
17329
  this._request = null, this._loaded = !0, this.fire(new o.j(h));
@@ -18337,7 +18337,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18337
18337
  function W(w, l) {
18338
18338
  return w.x >= -l[0] && w.x <= l[0] && w.y >= -l[1] && w.y <= l[1];
18339
18339
  }
18340
- function J(w, l, h, y, v, x, A, I, P, B, V, j, Y, te, ne) {
18340
+ function Q(w, l, h, y, v, x, A, I, P, B, V, j, Y, te, ne) {
18341
18341
  const ae = y ? w.textSizeData : w.iconSizeData, ue = o.ag(ae, h.transform.zoom), he = [256 / h.width * 2 + 1, 256 / h.height * 2 + 1], pe = y ? w.text.dynamicLayoutVertexArray : w.icon.dynamicLayoutVertexArray;
18342
18342
  pe.clear();
18343
18343
  const re = w.lineVertexArray, _e = y ? w.text.placedSymbolArray : w.icon.placedSymbolArray, xe = h.transform.width / h.transform.height;
@@ -18354,8 +18354,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18354
18354
  Lt(Ge.numGlyphs, pe);
18355
18355
  continue;
18356
18356
  }
18357
- const ht = q(h.transform.cameraToCenterDistance, rt.signedDistanceFromCamera), et = o.ai(ae, ue, Ge), Ke = A ? et / ht : et * ht, kt = { getElevation: ne, labelPlaneMatrix: v, lineVertexArray: re, pitchWithMap: A, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: B, tileAnchorPoint: new o.P(Ge.anchorX, Ge.anchorY), unwrappedTileID: V, width: j, height: Y, translation: te }, Gt = ve(kt, Ge, Ke, !1, I, l, x, w.glyphOffsetArray, pe, xe, P);
18358
- Ce = Gt.useVertical, (Gt.notEnoughRoom || Ce || Gt.needsFlipping && ve(kt, Ge, Ke, !0, I, l, x, w.glyphOffsetArray, pe, xe, P).notEnoughRoom) && Lt(Ge.numGlyphs, pe);
18357
+ const ht = q(h.transform.cameraToCenterDistance, rt.signedDistanceFromCamera), et = o.ai(ae, ue, Ge), Ke = A ? et / ht : et * ht, kt = { getElevation: ne, labelPlaneMatrix: v, lineVertexArray: re, pitchWithMap: A, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: B, tileAnchorPoint: new o.P(Ge.anchorX, Ge.anchorY), unwrappedTileID: V, width: j, height: Y, translation: te }, Gt = be(kt, Ge, Ke, !1, I, l, x, w.glyphOffsetArray, pe, xe, P);
18358
+ Ce = Gt.useVertical, (Gt.notEnoughRoom || Ce || Gt.needsFlipping && be(kt, Ge, Ke, !0, I, l, x, w.glyphOffsetArray, pe, xe, P).notEnoughRoom) && Lt(Ge.numGlyphs, pe);
18359
18359
  }
18360
18360
  y ? w.text.dynamicLayoutVertexBuffer.updateData(pe) : w.icon.dynamicLayoutVertexBuffer.updateData(pe);
18361
18361
  }
@@ -18368,7 +18368,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18368
18368
  function ge(w, l, h, y) {
18369
18369
  return w === o.ah.horizontal && Math.abs(h.y - l.y) > Math.abs(h.x - l.x) * y ? { useVertical: !0 } : (w === o.ah.vertical ? l.y < h.y : l.x > h.x) ? { needsFlipping: !0 } : null;
18370
18370
  }
18371
- function ve(w, l, h, y, v, x, A, I, P, B, V) {
18371
+ function be(w, l, h, y, v, x, A, I, P, B, V) {
18372
18372
  const j = h / 24, Y = l.lineOffsetX * j, te = l.lineOffsetY * j;
18373
18373
  let ne;
18374
18374
  if (l.numGlyphs > 1) {
@@ -18385,7 +18385,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18385
18385
  } else {
18386
18386
  if (v && !y) {
18387
18387
  const ue = le(w.tileAnchorPoint.x, w.tileAnchorPoint.y, x, w.getElevation).point, he = l.lineStartIndex + l.segment + 1, pe = new o.P(w.lineVertexArray.getx(he), w.lineVertexArray.gety(he)), re = le(pe.x, pe.y, x, w.getElevation), _e = re.signedDistanceFromCamera > 0 ? re.point : function(Ce, Be, Ge, rt, ht, et) {
18388
- return Se(Ce, Be, Ge, 1, ht, et);
18388
+ return ke(Ce, Be, Ge, 1, ht, et);
18389
18389
  }(w.tileAnchorPoint, pe, ue, 0, x, w), xe = ge(l.writingMode, ue, _e, B);
18390
18390
  if (xe) return xe;
18391
18391
  }
@@ -18396,7 +18396,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18396
18396
  for (const ae of ne) o.aj(P, ae.point, ae.angle);
18397
18397
  return {};
18398
18398
  }
18399
- function Se(w, l, h, y, v, x) {
18399
+ function ke(w, l, h, y, v, x) {
18400
18400
  const A = w.add(w.sub(l)._unit()), I = v !== void 0 ? le(A.x, A.y, v, x.getElevation).point : ze(A.x, A.y, x).point, P = h.sub(I);
18401
18401
  return h.add(P._mult(y / P.mag()));
18402
18402
  }
@@ -18407,7 +18407,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18407
18407
  if (x.signedDistanceFromCamera > 0) return y.projections[w] = x.point, y.anyProjectionOccluded = y.anyProjectionOccluded || x.isOccluded, x.point;
18408
18408
  const A = w - h.direction;
18409
18409
  return function(I, P, B, V, j) {
18410
- return Se(I, P, B, V, void 0, j);
18410
+ return ke(I, P, B, V, void 0, j);
18411
18411
  }(h.distanceFromAnchor === 0 ? l.tileAnchorPoint : new o.P(l.lineVertexArray.getx(A), l.lineVertexArray.gety(A)), v, h.previousVertex, h.absOffsetX - h.distanceFromAnchor + 1, l);
18412
18412
  }
18413
18413
  function ze(w, l, h) {
@@ -19150,7 +19150,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19150
19150
  const ae = A.transformRequest(ft(ne, V, ".json"), "SpriteJSON");
19151
19151
  j[te] = o.h(ae, P);
19152
19152
  const ue = A.transformRequest(ft(ne, V, ".png"), "SpriteImage");
19153
- Y[te] = Q.getImage(ue, P);
19153
+ Y[te] = J.getImage(ue, P);
19154
19154
  }
19155
19155
  return yield Promise.all([...Object.values(j), ...Object.values(Y)]), function(te, ne) {
19156
19156
  return o._(this, void 0, void 0, function* () {
@@ -21057,7 +21057,7 @@ uniform ${V} ${j} u_${Y};
21057
21057
  const gr = pn(Ke, 1, w.transform.zoom), Qs = _e ? et.posMatrix : xc, kl = fr(Qs, he, ue, w.transform, gr), rd = $r(Qs, he, ue, w.transform, gr), El = $r(et.posMatrix, he, ue, w.transform, gr), as = ae.translatePosition(w.transform, Ke, x, A), sd = Ge && kt.hasTextData(), mf = h.layout.get("icon-text-fit") !== "none" && sd && kt.hasIconData();
21058
21058
  if (pe) {
21059
21059
  const _n = w.style.map.terrain ? (Cl, Tl) => w.style.map.terrain.getElevation(et, Cl, Tl) : null, Sa = h.layout.get("text-rotation-alignment") === "map";
21060
- J(kt, et.posMatrix, w, v, kl, El, he, B, Sa, ae, et.toUnwrapped(), ne.width, ne.height, as, _n);
21060
+ Q(kt, et.posMatrix, w, v, kl, El, he, B, Sa, ae, et.toUnwrapped(), ne.width, ne.height, as, _n);
21061
21061
  }
21062
21062
  const ls = et.posMatrix, cs = v && Ge || mf, $o = pe || cs ? xc : kl, As = rd, Yi = ut && h.paint.get(v ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
21063
21063
  let er;
@@ -21665,7 +21665,7 @@ uniform ${V} ${j} u_${Y};
21665
21665
  }([], this.min, this.max));
21666
21666
  }
21667
21667
  quadrant(l) {
21668
- const h = [l % 2 == 0, l < 2], y = Ee(this.min), v = Ee(this.max);
21668
+ const h = [l % 2 == 0, l < 2], y = Se(this.min), v = Se(this.max);
21669
21669
  for (let x = 0; x < h.length; x++) y[x] = h[x] ? this.min[x] : this.center[x], v[x] = h[x] ? this.center[x] : this.max[x];
21670
21670
  return v[2] = this.max[2], new pl(y, v);
21671
21671
  }
@@ -24266,7 +24266,7 @@ uniform ${V} ${j} u_${Y};
24266
24266
  if (h.target === this._container) return this._container.scrollTop = 0, this._container.scrollLeft = 0, !1;
24267
24267
  }, this._onWindowOnline = () => {
24268
24268
  this._update();
24269
- }, this._interactive = l.interactive, this._maxTileCacheSize = l.maxTileCacheSize, this._maxTileCacheZoomLevels = l.maxTileCacheZoomLevels, this._failIfMajorPerformanceCaveat = l.failIfMajorPerformanceCaveat === !0, this._preserveDrawingBuffer = l.preserveDrawingBuffer === !0, this._antialias = l.antialias === !0, this._trackResize = l.trackResize === !0, this._bearingSnap = l.bearingSnap, this._refreshExpiredTiles = l.refreshExpiredTiles === !0, this._fadeDuration = l.fadeDuration, this._crossSourceCollisions = l.crossSourceCollisions === !0, this._collectResourceTiming = l.collectResourceTiming === !0, this._locale = Object.assign(Object.assign({}, hf), l.locale), this._clickTolerance = l.clickTolerance, this._overridePixelRatio = l.pixelRatio, this._maxCanvasSize = l.maxCanvasSize, this.transformCameraUpdate = l.transformCameraUpdate, this.cancelPendingTileRequestsWhileZooming = l.cancelPendingTileRequestsWhileZooming === !0, this._imageQueueHandle = Q.addThrottleControl(() => this.isMoving()), this._requestManager = new Z(l.transformRequest), typeof l.container == "string") {
24269
+ }, this._interactive = l.interactive, this._maxTileCacheSize = l.maxTileCacheSize, this._maxTileCacheZoomLevels = l.maxTileCacheZoomLevels, this._failIfMajorPerformanceCaveat = l.failIfMajorPerformanceCaveat === !0, this._preserveDrawingBuffer = l.preserveDrawingBuffer === !0, this._antialias = l.antialias === !0, this._trackResize = l.trackResize === !0, this._bearingSnap = l.bearingSnap, this._refreshExpiredTiles = l.refreshExpiredTiles === !0, this._fadeDuration = l.fadeDuration, this._crossSourceCollisions = l.crossSourceCollisions === !0, this._collectResourceTiming = l.collectResourceTiming === !0, this._locale = Object.assign(Object.assign({}, hf), l.locale), this._clickTolerance = l.clickTolerance, this._overridePixelRatio = l.pixelRatio, this._maxCanvasSize = l.maxCanvasSize, this.transformCameraUpdate = l.transformCameraUpdate, this.cancelPendingTileRequestsWhileZooming = l.cancelPendingTileRequestsWhileZooming === !0, this._imageQueueHandle = J.addThrottleControl(() => this.isMoving()), this._requestManager = new Z(l.transformRequest), typeof l.container == "string") {
24270
24270
  if (this._container = document.getElementById(l.container), !this._container) throw new Error(`Container '${l.container}' not found.`);
24271
24271
  } else {
24272
24272
  if (!(l.container instanceof HTMLElement)) throw new Error("Invalid type: 'container' must be a String or HTMLElement.");
@@ -24601,7 +24601,7 @@ uniform ${V} ${j} u_${Y};
24601
24601
  this.style.removeImage(w);
24602
24602
  }
24603
24603
  loadImage(w) {
24604
- return Q.getImage(this._requestManager.transformRequest(w, "Image"), new AbortController());
24604
+ return J.getImage(this._requestManager.transformRequest(w, "Image"), new AbortController());
24605
24605
  }
24606
24606
  listImages() {
24607
24607
  return this.style.listImages();
@@ -24760,7 +24760,7 @@ uniform ${V} ${j} u_${Y};
24760
24760
  var w;
24761
24761
  this._hash && this._hash.remove();
24762
24762
  for (const h of this._controls) h.onRemove(this);
24763
- this._controls = [], this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._renderTaskQueue.clear(), this.painter.destroy(), this.handlers.destroy(), delete this.handlers, this.setStyle(null), typeof window < "u" && removeEventListener("online", this._onWindowOnline, !1), Q.removeThrottleControl(this._imageQueueHandle), (w = this._resizeObserver) === null || w === void 0 || w.disconnect();
24763
+ this._controls = [], this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._renderTaskQueue.clear(), this.painter.destroy(), this.handlers.destroy(), delete this.handlers, this.setStyle(null), typeof window < "u" && removeEventListener("online", this._onWindowOnline, !1), J.removeThrottleControl(this._imageQueueHandle), (w = this._resizeObserver) === null || w === void 0 || w.disconnect();
24764
24764
  const l = this.painter.context.gl.getExtension("WEBGL_lose_context");
24765
24765
  l != null && l.loseContext && l.loseContext(), this._canvas.removeEventListener("webglcontextrestored", this._contextRestored, !1), this._canvas.removeEventListener("webglcontextlost", this._contextLost, !1), k.remove(this._canvasContainer), k.remove(this._controlContainer), this._container.classList.remove("maplibregl-map"), o.bf.clearMetrics(), this._removed = !0, this.fire(new o.k("remove"));
24766
24766
  }
@@ -25004,11 +25004,11 @@ function JA(n, e, t) {
25004
25004
  for (var i, r, s, a, o, f, m, g = 0, _ = 0, k, C = n.type, D = C === "FeatureCollection", z = C === "Feature", O = D ? n.features.length : 1, F = 0; F < O; F++) {
25005
25005
  m = D ? n.features[F].geometry : z ? n.geometry : n, k = m ? m.type === "GeometryCollection" : !1, o = k ? m.geometries.length : 1;
25006
25006
  for (var U = 0; U < o; U++) {
25007
- var Q = 0, Z = 0;
25007
+ var J = 0, Z = 0;
25008
25008
  if (a = k ? m.geometries[U] : m, a !== null) {
25009
25009
  f = a.coordinates;
25010
- var Ee = a.type;
25011
- switch (g = 0, Ee) {
25010
+ var Se = a.type;
25011
+ switch (g = 0, Se) {
25012
25012
  case null:
25013
25013
  break;
25014
25014
  case "Point":
@@ -25016,11 +25016,11 @@ function JA(n, e, t) {
25016
25016
  f,
25017
25017
  _,
25018
25018
  F,
25019
- Q,
25019
+ J,
25020
25020
  Z
25021
25021
  ) === !1)
25022
25022
  return !1;
25023
- _++, Q++;
25023
+ _++, J++;
25024
25024
  break;
25025
25025
  case "LineString":
25026
25026
  case "MultiPoint":
@@ -25029,13 +25029,13 @@ function JA(n, e, t) {
25029
25029
  f[i],
25030
25030
  _,
25031
25031
  F,
25032
- Q,
25032
+ J,
25033
25033
  Z
25034
25034
  ) === !1)
25035
25035
  return !1;
25036
- _++, Ee === "MultiPoint" && Q++;
25036
+ _++, Se === "MultiPoint" && J++;
25037
25037
  }
25038
- Ee === "LineString" && Q++;
25038
+ Se === "LineString" && J++;
25039
25039
  break;
25040
25040
  case "Polygon":
25041
25041
  case "MultiLineString":
@@ -25045,15 +25045,15 @@ function JA(n, e, t) {
25045
25045
  f[i][r],
25046
25046
  _,
25047
25047
  F,
25048
- Q,
25048
+ J,
25049
25049
  Z
25050
25050
  ) === !1)
25051
25051
  return !1;
25052
25052
  _++;
25053
25053
  }
25054
- Ee === "MultiLineString" && Q++, Ee === "Polygon" && Z++;
25054
+ Se === "MultiLineString" && J++, Se === "Polygon" && Z++;
25055
25055
  }
25056
- Ee === "Polygon" && Q++;
25056
+ Se === "Polygon" && J++;
25057
25057
  break;
25058
25058
  case "MultiPolygon":
25059
25059
  for (i = 0; i < f.length; i++) {
@@ -25063,7 +25063,7 @@ function JA(n, e, t) {
25063
25063
  f[i][r][s],
25064
25064
  _,
25065
25065
  F,
25066
- Q,
25066
+ J,
25067
25067
  Z
25068
25068
  ) === !1)
25069
25069
  return !1;
@@ -25071,7 +25071,7 @@ function JA(n, e, t) {
25071
25071
  }
25072
25072
  Z++;
25073
25073
  }
25074
- Q++;
25074
+ J++;
25075
25075
  }
25076
25076
  break;
25077
25077
  case "GeometryCollection":
@@ -26101,8 +26101,8 @@ let ab = null, lb = null, eh = class tM extends aw {
26101
26101
  const { content: t, contentRect: i } = this, { fitWidth: r, fitHeight: s, fullWidth: a, fullHeight: o } = i;
26102
26102
  let f = a, m = o;
26103
26103
  if (this.option("zoom") || this.angle !== 0) {
26104
- const g = !(t instanceof HTMLImageElement) && (window.getComputedStyle(t).maxWidth === "none" || window.getComputedStyle(t).maxHeight === "none"), _ = g ? a : r, k = g ? o : s, C = this.getMatrix(e), D = new DOMPoint(0, 0).matrixTransform(C), z = new DOMPoint(0 + _, 0).matrixTransform(C), O = new DOMPoint(0 + _, 0 + k).matrixTransform(C), F = new DOMPoint(0, 0 + k).matrixTransform(C), U = Math.abs(O.x - D.x), Q = Math.abs(O.y - D.y), Z = Math.abs(F.x - z.x), Ee = Math.abs(F.y - z.y);
26105
- f = Math.max(U, Z), m = Math.max(Q, Ee);
26104
+ const g = !(t instanceof HTMLImageElement) && (window.getComputedStyle(t).maxWidth === "none" || window.getComputedStyle(t).maxHeight === "none"), _ = g ? a : r, k = g ? o : s, C = this.getMatrix(e), D = new DOMPoint(0, 0).matrixTransform(C), z = new DOMPoint(0 + _, 0).matrixTransform(C), O = new DOMPoint(0 + _, 0 + k).matrixTransform(C), F = new DOMPoint(0, 0 + k).matrixTransform(C), U = Math.abs(O.x - D.x), J = Math.abs(O.y - D.y), Z = Math.abs(F.x - z.x), Se = Math.abs(F.y - z.y);
26105
+ f = Math.max(U, Z), m = Math.max(J, Se);
26106
26106
  }
26107
26107
  return { contentWidth: f, contentHeight: m };
26108
26108
  }
@@ -26179,8 +26179,8 @@ let ab = null, lb = null, eh = class tM extends aw {
26179
26179
  const { content: r } = this, s = Gk(i[0], i[1]), a = Gk(t[0], t[1]);
26180
26180
  let o = 0, f = 0;
26181
26181
  if (t.length > 1) {
26182
- const Q = r.getBoundingClientRect();
26183
- o = s.clientX - Q.left - 0.5 * Q.width, f = s.clientY - Q.top - 0.5 * Q.height;
26182
+ const J = r.getBoundingClientRect();
26183
+ o = s.clientX - J.left - 0.5 * J.width, f = s.clientY - J.top - 0.5 * J.height;
26184
26184
  }
26185
26185
  const m = qk(i[0], i[1]), g = qk(t[0], t[1]);
26186
26186
  let _ = m ? g / m : 1, k = a.clientX - s.clientX, C = a.clientY - s.clientY;
@@ -26188,8 +26188,8 @@ let ab = null, lb = null, eh = class tM extends aw {
26188
26188
  let D = yt(this.targetScale) === yt(this.minScale) && this.option("lockAxis");
26189
26189
  if (D && !this.lockedAxis) if (D === "xy" || D === "y" || e.type === "touchmove") {
26190
26190
  if (Math.abs(this.dragOffset.x) < 6 && Math.abs(this.dragOffset.y) < 6) return void e.preventDefault();
26191
- const Q = Math.abs(180 * Math.atan2(this.dragOffset.y, this.dragOffset.x) / Math.PI);
26192
- this.lockedAxis = Q > 45 && Q < 135 ? "y" : "x", this.dragOffset.x = 0, this.dragOffset.y = 0, k = 0, C = 0;
26191
+ const J = Math.abs(180 * Math.atan2(this.dragOffset.y, this.dragOffset.x) / Math.PI);
26192
+ this.lockedAxis = J > 45 && J < 135 ? "y" : "x", this.dragOffset.x = 0, this.dragOffset.y = 0, k = 0, C = 0;
26193
26193
  } else this.lockedAxis = D;
26194
26194
  if (oy(e.target, this.content) && (D = "x", this.dragOffset.y = 0), D && D !== "xy" && this.lockedAxis !== D && yt(this.targetScale) === yt(this.minScale)) return;
26195
26195
  e.cancelable && e.preventDefault(), this.container.classList.add(this.cn("isDragging"));
@@ -26206,7 +26206,7 @@ let ab = null, lb = null, eh = class tM extends aw {
26206
26206
  var e;
26207
26207
  const t = this.isScaling;
26208
26208
  this.rAF && (cancelAnimationFrame(this.rAF), this.rAF = null), this.isBouncingX = !1, this.isBouncingY = !1;
26209
- for (const Q of Da) this.velocity[Q] = 0;
26209
+ for (const J of Da) this.velocity[J] = 0;
26210
26210
  this.target.e = this.current.e, this.target.f = this.current.f, Xn(this.container, "is-scaling"), Xn(this.container, "is-animating"), this.isTicking = !1;
26211
26211
  const { trackingPoints: i } = this, r = i[0], s = i[i.length - 1];
26212
26212
  let a = 0, o = 0, f = 0;
@@ -26217,8 +26217,8 @@ let ab = null, lb = null, eh = class tM extends aw {
26217
26217
  const z = this.targetScale;
26218
26218
  if (f > 0) {
26219
26219
  k = Math.abs(a) > 3 ? a / (f / 30) : 0, C = Math.abs(o) > 3 ? o / (f / 30) : 0;
26220
- const Q = this.option("maxVelocity");
26221
- Q && (k = Math.max(Math.min(k, Q), -1 * Q), C = Math.max(Math.min(C, Q), -1 * Q));
26220
+ const J = this.option("maxVelocity");
26221
+ J && (k = Math.max(Math.min(k, J), -1 * J), C = Math.max(Math.min(C, J), -1 * J));
26222
26222
  }
26223
26223
  k && (g = k / (1 / (1 - D) - 1)), C && (_ = C / (1 / (1 - D) - 1)), (this.option("lockAxis") === "y" || this.option("lockAxis") === "xy" && this.lockedAxis === "y" && yt(z) === this.minScale) && (g = k = 0), (this.option("lockAxis") === "x" || this.option("lockAxis") === "xy" && this.lockedAxis === "x" && yt(z) === this.minScale) && (_ = C = 0);
26224
26224
  const O = this.dragOffset.x, F = this.dragOffset.y, U = this.option("dragMinThreshold") || 0;
@@ -26270,20 +26270,20 @@ let ab = null, lb = null, eh = class tM extends aw {
26270
26270
  return zt = ct instanceof HTMLImageElement ? ct.naturalHeight : ct instanceof SVGElement ? ct.height.baseVal.value : Math.max(ct.offsetHeight, ct.scrollHeight), zt || 0;
26271
26271
  })(s);
26272
26272
  let O = this.option("width", D) || io, F = this.option("height", z) || io;
26273
- const U = O === io, Q = F === io;
26274
- typeof O != "number" && (O = D), typeof F != "number" && (F = z), U && (O = D * (F / z)), Q && (F = z / (D / O));
26273
+ const U = O === io, J = F === io;
26274
+ typeof O != "number" && (O = D), typeof F != "number" && (F = z), U && (O = D * (F / z)), J && (F = z / (D / O));
26275
26275
  let Z = s.parentElement instanceof HTMLPictureElement ? s.parentElement : s;
26276
26276
  this.option("transformParent") && (Z = Z.parentElement || Z);
26277
- const Ee = Z.getAttribute("style") || "";
26277
+ const Se = Z.getAttribute("style") || "";
26278
26278
  Z.style.setProperty("transform", "none", "important"), a && (Z.style.width = "", Z.style.height = ""), Z.offsetHeight;
26279
- const be = s.getBoundingClientRect();
26280
- let Ae = be.width * i, $e = be.height * i, Oe = Ae, ft = $e;
26279
+ const ve = s.getBoundingClientRect();
26280
+ let Ae = ve.width * i, $e = ve.height * i, Oe = Ae, ft = $e;
26281
26281
  Ae = Math.min(Ae, O), $e = Math.min($e, F), a ? { width: Ae, height: $e } = ((ct, zt, Yt, Qt) => {
26282
26282
  const jt = Yt / ct, Jt = Qt / zt, kn = Math.min(jt, Jt);
26283
26283
  return { width: ct *= kn, height: zt *= kn };
26284
26284
  })(O, F, Ae, $e) : (Ae = Math.min(Ae, O), $e = Math.min($e, F));
26285
26285
  let ot = 0.5 * (ft - $e), me = 0.5 * (Oe - Ae);
26286
- this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: be.top - o.top + ot, bottom: o.bottom - be.bottom + ot, left: be.left - o.left + me, right: o.right - be.right + me, fitWidth: Ae, fitHeight: $e, width: Ae, height: $e, fullWidth: O, fullHeight: F }), Z.style.cssText = Ee, a && (Z.style.width = `${Ae}px`, Z.style.height = `${$e}px`), this.setTransform(), e !== !0 && this.emit("refresh"), this.ignoreBounds || (yt(this.targetScale) < yt(this.minScale) ? this.zoomTo(this.minScale, { friction: 0 }) : this.targetScale > this.maxScale ? this.zoomTo(this.maxScale, { friction: 0 }) : this.state === Jn.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
26286
+ this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: ve.top - o.top + ot, bottom: o.bottom - ve.bottom + ot, left: ve.left - o.left + me, right: o.right - ve.right + me, fitWidth: Ae, fitHeight: $e, width: Ae, height: $e, fullWidth: O, fullHeight: F }), Z.style.cssText = Se, a && (Z.style.width = `${Ae}px`, Z.style.height = `${$e}px`), this.setTransform(), e !== !0 && this.emit("refresh"), this.ignoreBounds || (yt(this.targetScale) < yt(this.minScale) ? this.zoomTo(this.minScale, { friction: 0 }) : this.targetScale > this.maxScale ? this.zoomTo(this.maxScale, { friction: 0 }) : this.state === Jn.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
26287
26287
  }
26288
26288
  calculateBounds() {
26289
26289
  const { contentWidth: e, contentHeight: t } = this.calculateContentDim(this.target), { targetScale: i, lockedAxis: r } = this, { fitWidth: s, fitHeight: a } = this.contentRect;
@@ -26347,8 +26347,8 @@ let ab = null, lb = null, eh = class tM extends aw {
26347
26347
  let F = new DOMMatrix().translate(D, z).translate(s, a).translate(e, t);
26348
26348
  if (this.option("zoom")) {
26349
26349
  if (!g) {
26350
- const U = this.targetScale, Q = this.minScale, Z = this.maxScale;
26351
- U * i < Q && (i = Q / U), U * i > Z && (i = Z / U);
26350
+ const U = this.targetScale, J = this.minScale, Z = this.maxScale;
26351
+ U * i < J && (i = J / U), U * i > Z && (i = Z / U);
26352
26352
  }
26353
26353
  F = F.scale(i);
26354
26354
  }
@@ -26814,19 +26814,19 @@ let Qf = class O_ extends aw {
26814
26814
  repositionSlides() {
26815
26815
  let e, { isHorizontal: t, isRTL: i, isInfinite: r, viewport: s, viewportDim: a, contentDim: o, page: f, pages: m, slides: g, panzoom: _ } = this, k = 0, C = 0, D = 0, z = 0;
26816
26816
  _ ? z = -1 * _.current[this.axis] : m[f] && (z = m[f].pos || 0), e = t ? i ? "right" : "left" : "top", i && t && (z *= -1);
26817
- for (const Q of g) {
26818
- const Z = Q.el;
26819
- Z ? (e === "top" ? (Z.style.right = "", Z.style.left = "") : Z.style.top = "", Q.index !== k ? Z.style[e] = C === 0 ? "" : `${yt(C, 1e3)}px` : Z.style[e] = "", D += Q.dim + Q.gap, k++) : C += Q.dim + Q.gap;
26817
+ for (const J of g) {
26818
+ const Z = J.el;
26819
+ Z ? (e === "top" ? (Z.style.right = "", Z.style.left = "") : Z.style.top = "", J.index !== k ? Z.style[e] = C === 0 ? "" : `${yt(C, 1e3)}px` : Z.style[e] = "", D += J.dim + J.gap, k++) : C += J.dim + J.gap;
26820
26820
  }
26821
26821
  if (r && D && s) {
26822
- let Q = getComputedStyle(s), Z = "padding", Ee = t ? "Right" : "Bottom", be = parseFloat(Q[Z + (t ? "Left" : "Top")]);
26823
- z -= be, a += be, a += parseFloat(Q[Z + Ee]);
26822
+ let J = getComputedStyle(s), Z = "padding", Se = t ? "Right" : "Bottom", ve = parseFloat(J[Z + (t ? "Left" : "Top")]);
26823
+ z -= ve, a += ve, a += parseFloat(J[Z + Se]);
26824
26824
  for (const Ae of g) Ae.el && (yt(Ae.pos) < yt(a) && yt(Ae.pos + Ae.dim + Ae.gap) < yt(z) && yt(z) > yt(o - a) && (Ae.el.style[e] = `${yt(C + D, 1e3)}px`), yt(Ae.pos + Ae.gap) >= yt(o - a) && yt(Ae.pos) > yt(z + a) && yt(z) < yt(a) && (Ae.el.style[e] = `-${yt(D, 1e3)}px`));
26825
26825
  }
26826
26826
  let O, F, U = [...this.inTransition];
26827
26827
  if (U.length > 1 && (O = m[U[0]], F = m[U[1]]), O && F) {
26828
- let Q = 0;
26829
- for (const Z of g) Z.el ? this.inTransition.has(Z.index) && O.slides.indexOf(Z) < 0 && (Z.el.style[e] = `${yt(Q + (O.pos - F.pos), 1e3)}px`) : Q += Z.dim + Z.gap;
26828
+ let J = 0;
26829
+ for (const Z of g) Z.el ? this.inTransition.has(Z.index) && O.slides.indexOf(Z) < 0 && (Z.el.style[e] = `${yt(J + (O.pos - F.pos), 1e3)}px`) : J += Z.dim + Z.gap;
26830
26830
  }
26831
26831
  }
26832
26832
  createSlideEl(e) {
@@ -26873,8 +26873,8 @@ let Qf = class O_ extends aw {
26873
26873
  this.inTransition.add(z.index), this.createSlideEl(z);
26874
26874
  let O = D.el, F = z.el;
26875
26875
  C || t === ug || (t = "fadeFast", O = null);
26876
- const U = this.isRTL ? "next" : "prev", Q = this.isRTL ? "prev" : "next";
26877
- return O && (this.inTransition.add(D.index), D.transition = t, O.addEventListener(cg, this.onAnimationEnd), O.classList.add(`f-${t}Out`, `to-${_ > 0 ? Q : U}`)), F && (z.transition = t, F.addEventListener(cg, this.onAnimationEnd), F.classList.add(`f-${t}In`, `from-${_ > 0 ? U : Q}`)), m.current[this.axis] = k, m.target[this.axis] = k, m.requestTick(), this.onChange(g), !0;
26876
+ const U = this.isRTL ? "next" : "prev", J = this.isRTL ? "prev" : "next";
26877
+ return O && (this.inTransition.add(D.index), D.transition = t, O.addEventListener(cg, this.onAnimationEnd), O.classList.add(`f-${t}Out`, `to-${_ > 0 ? J : U}`)), F && (z.transition = t, F.addEventListener(cg, this.onAnimationEnd), F.classList.add(`f-${t}In`, `from-${_ > 0 ? U : J}`)), m.current[this.axis] = k, m.target[this.axis] = k, m.requestTick(), this.onChange(g), !0;
26878
26878
  }
26879
26879
  manageSlideVisiblity() {
26880
26880
  const e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set(), i = this.getVisibleSlides(parseFloat(this.option("preload", 0) + "") || 0);
@@ -27110,8 +27110,8 @@ let Qf = class O_ extends aw {
27110
27110
  let k = 0, C = 0, D = 0, z = e === void 0 ? -1 * ((a == null ? void 0 : a.target[this.axis]) || 0) : e;
27111
27111
  _ && (z += 0.5 * t), this.isInfinite ? (z < m.pos - 0.5 * g.gap && (z -= i, D = -1), z > g.pos + g.dim + 0.5 * g.gap && (z -= i, D = 1)) : z = Math.max(m.pos || 0, Math.min(z, g.pos));
27112
27112
  let O = g, F = r.find((U) => {
27113
- const Q = U.pos - 0.5 * O.gap, Z = U.pos + U.dim + 0.5 * U.gap;
27114
- return O = U, z >= Q && z < Z;
27113
+ const J = U.pos - 0.5 * O.gap, Z = U.pos + U.dim + 0.5 * U.gap;
27114
+ return O = U, z >= J && z < Z;
27115
27115
  });
27116
27116
  return F || (F = g), C = this.getPageForSlide(F.index), k = C + D * o, { page: k, pageIndex: C };
27117
27117
  }
@@ -27247,9 +27247,9 @@ class dM extends Lo {
27247
27247
  (((e = window.visualViewport) === null || e === void 0 ? void 0 : e.scale) || 1) === 1 && Object.assign(i.style, { position: "absolute", top: `${i.offsetTop + window.scrollY}px`, left: `${i.offsetLeft + window.scrollX}px`, bottom: "auto", right: "auto", width: `${g.width}px`, height: `${g.height}px`, overflow: "hidden" });
27248
27248
  const { x: _, y: k, scale: C, opacity: D } = m;
27249
27249
  if (D) {
27250
- const z = ((O, F, U, Q) => {
27251
- const Z = F - O, Ee = Q - U;
27252
- return (be) => U + ((be - O) / Z * Ee || 0);
27250
+ const z = ((O, F, U, J) => {
27251
+ const Z = F - O, Se = J - U;
27252
+ return (ve) => U + ((ve - O) / Z * Se || 0);
27253
27253
  })(o.scale, C, 1, 0);
27254
27254
  o.on("afterTransform", () => {
27255
27255
  a.style.opacity = z(o.scale) + "";
@@ -27366,9 +27366,9 @@ class dM extends Lo {
27366
27366
  if (!(_ && k && z && O)) return !1;
27367
27367
  const F = s.container.getBoundingClientRect();
27368
27368
  D += F.left, C += F.top;
27369
- const U = -1 * (D + 0.5 * z - (g + 0.5 * _)), Q = -1 * (C + 0.5 * O - (m + 0.5 * k)), Z = _ / z;
27370
- let Ee = this.option("zoomOpacity") || !1;
27371
- return Ee === "auto" && (Ee = Math.abs(_ / k - z / O) > 0.1), { x: U, y: Q, scale: Z, opacity: Ee };
27369
+ const U = -1 * (D + 0.5 * z - (g + 0.5 * _)), J = -1 * (C + 0.5 * O - (m + 0.5 * k)), Z = _ / z;
27370
+ let Se = this.option("zoomOpacity") || !1;
27371
+ return Se === "auto" && (Se = Math.abs(_ / k - z / O) > 0.1), { x: U, y: J, scale: Z, opacity: Se };
27372
27372
  }
27373
27373
  attach() {
27374
27374
  const e = this, t = e.instance;
@@ -29227,10 +29227,10 @@ const Lj = /* @__PURE__ */ mt(wj, [["render", zj]]), Nj = { class: "flex flex-co
29227
29227
  const O = Array.from((F = z.target) == null ? void 0 : F.files);
29228
29228
  await Promise.all(
29229
29229
  O.map(async (U) => {
29230
- const Q = new FormData();
29231
- Q.append("file", U);
29230
+ const J = new FormData();
29231
+ J.append("file", U);
29232
29232
  try {
29233
- await st.post(`/api/widget/file/${t == null ? void 0 : t.id}`, Q);
29233
+ await st.post(`/api/widget/file/${t == null ? void 0 : t.id}`, J);
29234
29234
  } catch (Z) {
29235
29235
  console.error(Z);
29236
29236
  }
@@ -29271,8 +29271,8 @@ const Lj = /* @__PURE__ */ mt(wj, [["render", zj]]), Nj = { class: "flex flex-co
29271
29271
  }
29272
29272
  }, C = (z, O = 2) => {
29273
29273
  if (z === 0) return "0 Bytes";
29274
- const F = 1024, U = O < 0 ? 0 : O, Q = ["Bytes", "KB", "MB", "GB", "TB"], Z = Math.floor(Math.log(z) / Math.log(F));
29275
- return `${parseFloat((z / F ** Z).toFixed(U))} ${Q[Z]}`;
29274
+ const F = 1024, U = O < 0 ? 0 : O, J = ["Bytes", "KB", "MB", "GB", "TB"], Z = Math.floor(Math.log(z) / Math.log(F));
29275
+ return `${parseFloat((z / F ** Z).toFixed(U))} ${J[Z]}`;
29276
29276
  }, D = (z) => {
29277
29277
  const O = {
29278
29278
  day: "numeric",
@@ -29334,13 +29334,13 @@ const Lj = /* @__PURE__ */ mt(wj, [["render", zj]]), Nj = { class: "flex flex-co
29334
29334
  U != null && U.ismain ? wt("", !0) : (K(), ie("div", {
29335
29335
  key: 0,
29336
29336
  class: "text-xs underline",
29337
- onClick: zg((Q) => g(U == null ? void 0 : U.entity_id, U == null ? void 0 : U.file_id), ["prevent"])
29337
+ onClick: zg((J) => g(U == null ? void 0 : U.entity_id, U == null ? void 0 : U.file_id), ["prevent"])
29338
29338
  }, "Зробити головним", 8, Kj))
29339
29339
  ]),
29340
29340
  L("div", null, [
29341
29341
  L("div", {
29342
29342
  class: "flex items-center justify-center gap-2 hover:bg-gray-200 p-[6px] rounded",
29343
- onClick: zg((Q) => m(U), ["prevent"])
29343
+ onClick: zg((J) => m(U), ["prevent"])
29344
29344
  }, [
29345
29345
  je(_M, {
29346
29346
  height: "14",
@@ -29349,7 +29349,7 @@ const Lj = /* @__PURE__ */ mt(wj, [["render", zj]]), Nj = { class: "flex flex-co
29349
29349
  ], 8, Jj),
29350
29350
  L("div", {
29351
29351
  class: "flex items-center gap-2 hover:bg-gray-200 p-[6px] rounded hover:cursor-pointer",
29352
- onClick: zg((Q) => _(U), ["prevent"])
29352
+ onClick: zg((J) => _(U), ["prevent"])
29353
29353
  }, [
29354
29354
  je(xM, {
29355
29355
  height: "14",
@@ -33342,8 +33342,8 @@ function q6(n, e, t, i) {
33342
33342
  for (let z = 0; z < a.length; z++) {
33343
33343
  let O = a[(z + f) % a.length], F = !0;
33344
33344
  O < 0 && (F = !1, O = -O);
33345
- let U = r.node(O - 1), Q = r.index(O - 1);
33346
- if (U.canReplaceWith(Q, Q, D.type, D.marks))
33345
+ let U = r.node(O - 1), J = r.index(O - 1);
33346
+ if (U.canReplaceWith(J, J, D.type, D.marks))
33347
33347
  return n.replace(r.before(O), F ? s.after(O) : t, new Et(QM(i.content, 0, i.openStart, C), C, i.openEnd));
33348
33348
  }
33349
33349
  }
@@ -37329,8 +37329,8 @@ function mU(n, e, t, i, r, s, a) {
37329
37329
  let U = o[F + 1];
37330
37330
  if (U < 0 || k > U + g - _)
37331
37331
  continue;
37332
- let Q = o[F] + g - _;
37333
- C >= Q ? o[F + 1] = k <= Q ? -2 : -1 : k >= g && O && (o[F] += O, o[F + 1] += O);
37332
+ let J = o[F] + g - _;
37333
+ C >= J ? o[F + 1] = k <= J ? -2 : -1 : k >= g && O && (o[F] += O, o[F + 1] += O);
37334
37334
  }
37335
37335
  _ += O;
37336
37336
  }), g = t.maps[m].map(g, -1);
@@ -37728,8 +37728,8 @@ function TU(n, e, t, i, r) {
37728
37728
  return;
37729
37729
  }
37730
37730
  n.state.selection.from < n.state.selection.to && D.start == D.endB && n.state.selection instanceof ln && (D.start > n.state.selection.from && D.start <= n.state.selection.from + 2 && n.state.selection.from >= m.from ? D.start = n.state.selection.from : D.endA < n.state.selection.to && D.endA >= n.state.selection.to - 2 && n.state.selection.to <= m.to && (D.endB += n.state.selection.to - D.endA, D.endA = n.state.selection.to)), vs && ec <= 11 && D.endB == D.start + 1 && D.endA == D.start && D.start > m.from && m.doc.textBetween(D.start - m.from - 1, D.start - m.from + 1) == "  " && (D.start--, D.endA--, D.endB--);
37731
- let z = m.doc.resolveNoCache(D.start - m.from), O = m.doc.resolveNoCache(D.endB - m.from), F = g.resolve(D.start), U = z.sameParent(O) && z.parent.inlineContent && F.end() >= D.endA, Q;
37732
- if ((ih && n.input.lastIOSEnter > Date.now() - 225 && (!U || r.some((Oe) => Oe.nodeName == "DIV" || Oe.nodeName == "P")) || !U && z.pos < m.doc.content.size && !z.sameParent(O) && (Q = yn.findFrom(m.doc.resolve(z.pos + 1), 1, !0)) && Q.head == O.pos) && n.someProp("handleKeyDown", (Oe) => Oe(n, Zc(13, "Enter")))) {
37731
+ let z = m.doc.resolveNoCache(D.start - m.from), O = m.doc.resolveNoCache(D.endB - m.from), F = g.resolve(D.start), U = z.sameParent(O) && z.parent.inlineContent && F.end() >= D.endA, J;
37732
+ if ((ih && n.input.lastIOSEnter > Date.now() - 225 && (!U || r.some((Oe) => Oe.nodeName == "DIV" || Oe.nodeName == "P")) || !U && z.pos < m.doc.content.size && !z.sameParent(O) && (J = yn.findFrom(m.doc.resolve(z.pos + 1), 1, !0)) && J.head == O.pos) && n.someProp("handleKeyDown", (Oe) => Oe(n, Zc(13, "Enter")))) {
37733
37733
  n.input.lastIOSEnter = 0;
37734
37734
  return;
37735
37735
  }
@@ -37742,27 +37742,27 @@ function TU(n, e, t, i, r) {
37742
37742
  return Oe(n, Zc(13, "Enter"));
37743
37743
  });
37744
37744
  }, 20));
37745
- let Z = D.start, Ee = D.endA, be, Ae, $e;
37745
+ let Z = D.start, Se = D.endA, ve, Ae, $e;
37746
37746
  if (U) {
37747
37747
  if (z.pos == O.pos)
37748
- vs && ec <= 11 && z.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Ua(n), 20)), be = n.state.tr.delete(Z, Ee), Ae = g.resolve(D.start).marksAcross(g.resolve(D.endA));
37748
+ vs && ec <= 11 && z.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Ua(n), 20)), ve = n.state.tr.delete(Z, Se), Ae = g.resolve(D.start).marksAcross(g.resolve(D.endA));
37749
37749
  else if (
37750
37750
  // Adding or removing a mark
37751
37751
  D.endA == D.endB && ($e = AU(z.parent.content.cut(z.parentOffset, O.parentOffset), F.parent.content.cut(F.parentOffset, D.endA - F.start())))
37752
37752
  )
37753
- be = n.state.tr, $e.type == "add" ? be.addMark(Z, Ee, $e.mark) : be.removeMark(Z, Ee, $e.mark);
37753
+ ve = n.state.tr, $e.type == "add" ? ve.addMark(Z, Se, $e.mark) : ve.removeMark(Z, Se, $e.mark);
37754
37754
  else if (z.parent.child(z.index()).isText && z.index() == O.index() - (O.textOffset ? 0 : 1)) {
37755
37755
  let Oe = z.parent.textBetween(z.parentOffset, O.parentOffset);
37756
- if (n.someProp("handleTextInput", (ft) => ft(n, Z, Ee, Oe)))
37756
+ if (n.someProp("handleTextInput", (ft) => ft(n, Z, Se, Oe)))
37757
37757
  return;
37758
- be = n.state.tr.insertText(Oe, Z, Ee);
37758
+ ve = n.state.tr.insertText(Oe, Z, Se);
37759
37759
  }
37760
37760
  }
37761
- if (be || (be = n.state.tr.replace(Z, Ee, m.doc.slice(D.start - m.from, D.endB - m.from))), m.sel) {
37762
- let Oe = hC(n, be.doc, m.sel);
37763
- Oe && !(Lr && So && n.composing && Oe.empty && (D.start != D.endB || n.input.lastAndroidDelete < Date.now() - 100) && (Oe.head == Z || Oe.head == be.mapping.map(Ee) - 1) || vs && Oe.empty && Oe.head == Z) && be.setSelection(Oe);
37761
+ if (ve || (ve = n.state.tr.replace(Z, Se, m.doc.slice(D.start - m.from, D.endB - m.from))), m.sel) {
37762
+ let Oe = hC(n, ve.doc, m.sel);
37763
+ Oe && !(Lr && So && n.composing && Oe.empty && (D.start != D.endB || n.input.lastAndroidDelete < Date.now() - 100) && (Oe.head == Z || Oe.head == ve.mapping.map(Se) - 1) || vs && Oe.empty && Oe.head == Z) && ve.setSelection(Oe);
37764
37764
  }
37765
- Ae && be.ensureMarks(Ae), s && be.setMeta("composition", s), n.dispatch(be.scrollIntoView());
37765
+ Ae && ve.ensureMarks(Ae), s && ve.setMeta("composition", s), n.dispatch(ve.scrollIntoView());
37766
37766
  }
37767
37767
  function hC(n, e, t) {
37768
37768
  return Math.max(t.anchor, t.head) > e.content.size ? null : mw(n, e.resolve(t.anchor), e.resolve(t.head));
@@ -38618,8 +38618,8 @@ function jD(n, e, t, i) {
38618
38618
  if (C.canReplace(C.childCount, C.childCount, z.content)) {
38619
38619
  if (t) {
38620
38620
  let F = Ye.empty;
38621
- for (let Q = D.length - 1; Q >= 0; Q--)
38622
- F = Ye.from(D[Q].copy(F));
38621
+ for (let J = D.length - 1; J >= 0; J--)
38622
+ F = Ye.from(D[J].copy(F));
38623
38623
  let U = n.tr.step(new lr(e.pos - D.length, e.pos + s.nodeSize, e.pos + O, e.pos + s.nodeSize - O, new Et(F, D.length, 0), 0, !0));
38624
38624
  t(U.scrollIntoView());
38625
38625
  }
@@ -39013,10 +39013,10 @@ function m8(n, e) {
39013
39013
  storage: m.storage,
39014
39014
  editor: e
39015
39015
  }, k = n.reduce((F, U) => {
39016
- const Q = Rt(U, "extendNodeSchema", _);
39016
+ const J = Rt(U, "extendNodeSchema", _);
39017
39017
  return {
39018
39018
  ...F,
39019
- ...Q ? Q(m) : {}
39019
+ ...J ? J(m) : {}
39020
39020
  };
39021
39021
  }, {}), C = xC({
39022
39022
  ...k,
@@ -39148,7 +39148,7 @@ function xg(n) {
39148
39148
  }), O = {
39149
39149
  from: i - (C[0].length - s.length),
39150
39150
  to: r
39151
- }, { commands: F, chain: U, can: Q } = new g0({
39151
+ }, { commands: F, chain: U, can: J } = new g0({
39152
39152
  editor: t,
39153
39153
  state: z
39154
39154
  });
@@ -39158,7 +39158,7 @@ function xg(n) {
39158
39158
  match: C,
39159
39159
  commands: F,
39160
39160
  chain: U,
39161
- can: Q
39161
+ can: J
39162
39162
  }) === null || !D.steps.length || (D.setMeta(o, {
39163
39163
  transform: D,
39164
39164
  from: i,
@@ -39323,16 +39323,16 @@ function S8(n) {
39323
39323
  if (!C.isTextblock || C.type.spec.code)
39324
39324
  return;
39325
39325
  const z = Math.max(i, D), O = Math.min(r, D + C.content.size), F = C.textBetween(z - D, O - D, void 0, "");
39326
- w8(F, s.find, a).forEach((Q) => {
39327
- if (Q.index === void 0)
39326
+ w8(F, s.find, a).forEach((J) => {
39327
+ if (J.index === void 0)
39328
39328
  return;
39329
- const Z = z + Q.index + 1, Ee = Z + Q[0].length, be = {
39329
+ const Z = z + J.index + 1, Se = Z + J[0].length, ve = {
39330
39330
  from: t.tr.mapping.map(Z),
39331
- to: t.tr.mapping.map(Ee)
39331
+ to: t.tr.mapping.map(Se)
39332
39332
  }, Ae = s.handler({
39333
39333
  state: t,
39334
- range: be,
39335
- match: Q,
39334
+ range: ve,
39335
+ match: J,
39336
39336
  commands: f,
39337
39337
  chain: m,
39338
39338
  can: g,
@@ -39408,23 +39408,23 @@ function E8(n) {
39408
39408
  if (!z && !O && !U)
39409
39409
  return;
39410
39410
  if (U) {
39411
- let { text: Ee } = F;
39412
- typeof Ee == "string" ? Ee = Ee : Ee = Sw(Ye.from(Ee), C.schema);
39413
- const { from: be } = F, Ae = be + Ee.length, $e = k8(Ee);
39411
+ let { text: Se } = F;
39412
+ typeof Se == "string" ? Se = Se : Se = Sw(Ye.from(Se), C.schema);
39413
+ const { from: ve } = F, Ae = ve + Se.length, $e = k8(Se);
39414
39414
  return f({
39415
39415
  rule: g,
39416
39416
  state: C,
39417
- from: be,
39417
+ from: ve,
39418
39418
  to: { b: Ae },
39419
39419
  pasteEvt: $e
39420
39420
  });
39421
39421
  }
39422
- const Q = k.doc.content.findDiffStart(C.doc.content), Z = k.doc.content.findDiffEnd(C.doc.content);
39423
- if (!(!_8(Q) || !Z || Q === Z.b))
39422
+ const J = k.doc.content.findDiffStart(C.doc.content), Z = k.doc.content.findDiffEnd(C.doc.content);
39423
+ if (!(!_8(J) || !Z || J === Z.b))
39424
39424
  return f({
39425
39425
  rule: g,
39426
39426
  state: C,
39427
- from: Q,
39427
+ from: J,
39428
39428
  to: Z,
39429
39429
  pasteEvt: a
39430
39430
  });
@@ -40162,8 +40162,8 @@ function tx(n, e, t = {}) {
40162
40162
  n.doc.nodesBetween(C, D, (z, O) => {
40163
40163
  if (!z.isText && !z.marks.length)
40164
40164
  return;
40165
- const F = Math.max(C, O), U = Math.min(D, O + z.nodeSize), Q = U - F;
40166
- a += Q, o.push(...z.marks.map((Z) => ({
40165
+ const F = Math.max(C, O), U = Math.min(D, O + z.nodeSize), J = U - F;
40166
+ a += J, o.push(...z.marks.map((Z) => ({
40167
40167
  mark: Z,
40168
40168
  from: F,
40169
40169
  to: U
@@ -40347,15 +40347,15 @@ const DW = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: i, edit
40347
40347
  const U = f.index(-1) ? 1 : f.index(-2) ? 2 : 3;
40348
40348
  for (let $e = f.depth - U; $e >= f.depth - 3; $e -= 1)
40349
40349
  F = Ye.from(f.node($e).copy(F));
40350
- const Q = f.indexAfter(-1) < f.node(-2).childCount ? 1 : f.indexAfter(-2) < f.node(-3).childCount ? 2 : 3, Z = {
40350
+ const J = f.indexAfter(-1) < f.node(-2).childCount ? 1 : f.indexAfter(-2) < f.node(-3).childCount ? 2 : 3, Z = {
40351
40351
  ...Hg(k, f.node().type.name, f.node().attrs),
40352
40352
  ...e
40353
- }, Ee = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(Z)) || void 0;
40354
- F = F.append(Ye.from(o.createAndFill(null, Ee) || void 0));
40355
- const be = f.before(f.depth - (U - 1));
40356
- t.replace(be, f.after(-Q), new Et(F, 4 - U, 0));
40353
+ }, Se = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(Z)) || void 0;
40354
+ F = F.append(Ye.from(o.createAndFill(null, Se) || void 0));
40355
+ const ve = f.before(f.depth - (U - 1));
40356
+ t.replace(ve, f.after(-J), new Et(F, 4 - U, 0));
40357
40357
  let Ae = -1;
40358
- t.doc.nodesBetween(be, t.doc.content.size, ($e, Oe) => {
40358
+ t.doc.nodesBetween(ve, t.doc.content.size, ($e, Oe) => {
40359
40359
  if (Ae > -1)
40360
40360
  return !1;
40361
40361
  $e.isTextblock && $e.content.size === 0 && (Ae = Oe + 1);
@@ -40378,11 +40378,11 @@ const DW = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: i, edit
40378
40378
  if (!qd(t.doc, f.pos, 2))
40379
40379
  return !1;
40380
40380
  if (r) {
40381
- const { selection: F, storedMarks: U } = i, { splittableMarks: Q } = s.extensionManager, Z = U || F.$to.parentOffset && F.$from.marks();
40381
+ const { selection: F, storedMarks: U } = i, { splittableMarks: J } = s.extensionManager, Z = U || F.$to.parentOffset && F.$from.marks();
40382
40382
  if (t.split(f.pos, 2, O).scrollIntoView(), !Z || !r)
40383
40383
  return !0;
40384
- const Ee = Z.filter((be) => Q.includes(be.type.name));
40385
- t.ensureMarks(Ee);
40384
+ const Se = Z.filter((ve) => J.includes(ve.type.name));
40385
+ t.ensureMarks(Se);
40386
40386
  }
40387
40387
  return !0;
40388
40388
  }, Bb = (n, e) => {
@@ -40404,19 +40404,19 @@ const DW = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: i, edit
40404
40404
  const r = n.doc.nodeAt(i);
40405
40405
  return t.node.type === (r == null ? void 0 : r.type) && cc(n.doc, i) && n.join(i), !0;
40406
40406
  }, PW = (n, e, t, i = {}) => ({ editor: r, tr: s, state: a, dispatch: o, chain: f, commands: m, can: g }) => {
40407
- const { extensions: _, splittableMarks: k } = r.extensionManager, C = dr(n, a.schema), D = dr(e, a.schema), { selection: z, storedMarks: O } = a, { $from: F, $to: U } = z, Q = F.blockRange(U), Z = O || z.$to.parentOffset && z.$from.marks();
40408
- if (!Q)
40407
+ const { extensions: _, splittableMarks: k } = r.extensionManager, C = dr(n, a.schema), D = dr(e, a.schema), { selection: z, storedMarks: O } = a, { $from: F, $to: U } = z, J = F.blockRange(U), Z = O || z.$to.parentOffset && z.$from.marks();
40408
+ if (!J)
40409
40409
  return !1;
40410
- const Ee = Mw((be) => EC(be.type.name, _))(z);
40411
- if (Q.depth >= 1 && Ee && Q.depth - Ee.depth <= 1) {
40412
- if (Ee.node.type === C)
40410
+ const Se = Mw((ve) => EC(ve.type.name, _))(z);
40411
+ if (J.depth >= 1 && Se && J.depth - Se.depth <= 1) {
40412
+ if (Se.node.type === C)
40413
40413
  return m.liftListItem(D);
40414
- if (EC(Ee.node.type.name, _) && C.validContent(Ee.node.content) && o)
40415
- return f().command(() => (s.setNodeMarkup(Ee.pos, C), !0)).command(() => Bb(s, C)).command(() => Fb(s, C)).run();
40414
+ if (EC(Se.node.type.name, _) && C.validContent(Se.node.content) && o)
40415
+ return f().command(() => (s.setNodeMarkup(Se.pos, C), !0)).command(() => Bb(s, C)).command(() => Fb(s, C)).run();
40416
40416
  }
40417
40417
  return !t || !Z || !o ? f().command(() => g().wrapInList(C, i) ? !0 : m.clearNodes()).wrapInList(C, i).command(() => Bb(s, C)).command(() => Fb(s, C)).run() : f().command(() => {
40418
- const be = g().wrapInList(C, i), Ae = Z.filter(($e) => k.includes($e.type.name));
40419
- return s.ensureMarks(Ae), be ? !0 : m.clearNodes();
40418
+ const ve = g().wrapInList(C, i), Ae = Z.filter(($e) => k.includes($e.type.name));
40419
+ return s.ensureMarks(Ae), ve ? !0 : m.clearNodes();
40420
40420
  }).wrapInList(C, i).command(() => Bb(s, C)).command(() => Fb(s, C)).run();
40421
40421
  }, RW = (n, e = {}, t = {}) => ({ state: i, commands: r }) => {
40422
40422
  const { extendEmptyMarkRange: s = !1 } = t, a = dc(n, i.schema);
@@ -40481,8 +40481,8 @@ const DW = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: i, edit
40481
40481
  ...e
40482
40482
  }), a && z.marks.length && z.marks.forEach((F) => {
40483
40483
  if (a === F.type) {
40484
- const U = Math.max(O, m), Q = Math.min(O + z.nodeSize, g);
40485
- t.addMark(U, Q, a.create({
40484
+ const U = Math.max(O, m), J = Math.min(O + z.nodeSize, g);
40485
+ t.addMark(U, J, a.create({
40486
40486
  ...F.attrs,
40487
40487
  ...e
40488
40488
  }));
@@ -41624,8 +41624,8 @@ var vq = function(e, t) {
41624
41624
  function bq(n) {
41625
41625
  var e, t = n.state, i = n.name, r = n.options, s = t.elements.arrow, a = t.modifiersData.popperOffsets, o = ea(t.placement), f = Ow(o), m = [_s, po].indexOf(o) >= 0, g = m ? "height" : "width";
41626
41626
  if (!(!s || !a)) {
41627
- var _ = vq(r.padding, t), k = Rw(s), C = f === "y" ? bs : _s, D = f === "y" ? fo : po, z = t.rects.reference[g] + t.rects.reference[f] - a[f] - t.rects.popper[g], O = a[f] - t.rects.reference[f], F = Yp(s), U = F ? f === "y" ? F.clientHeight || 0 : F.clientWidth || 0 : 0, Q = z / 2 - O / 2, Z = _[C], Ee = U - k[g] - _[D], be = U / 2 - k[g] / 2 + Q, Ae = op(Z, be, Ee), $e = f;
41628
- t.modifiersData[i] = (e = {}, e[$e] = Ae, e.centerOffset = Ae - be, e);
41627
+ var _ = vq(r.padding, t), k = Rw(s), C = f === "y" ? bs : _s, D = f === "y" ? fo : po, z = t.rects.reference[g] + t.rects.reference[f] - a[f] - t.rects.popper[g], O = a[f] - t.rects.reference[f], F = Yp(s), U = F ? f === "y" ? F.clientHeight || 0 : F.clientWidth || 0 : 0, J = z / 2 - O / 2, Z = _[C], Se = U - k[g] - _[D], ve = U / 2 - k[g] / 2 + J, Ae = op(Z, ve, Se), $e = f;
41628
+ t.modifiersData[i] = (e = {}, e[$e] = Ae, e.centerOffset = Ae - ve, e);
41629
41629
  }
41630
41630
  }
41631
41631
  function _q(n) {
@@ -41666,22 +41666,22 @@ function MC(n) {
41666
41666
  y: z
41667
41667
  };
41668
41668
  C = O.x, z = O.y;
41669
- var F = a.hasOwnProperty("x"), U = a.hasOwnProperty("y"), Q = _s, Z = bs, Ee = window;
41669
+ var F = a.hasOwnProperty("x"), U = a.hasOwnProperty("y"), J = _s, Z = bs, Se = window;
41670
41670
  if (m) {
41671
- var be = Yp(t), Ae = "clientHeight", $e = "clientWidth";
41672
- if (be === Hs(t) && (be = hc(t), Xa(be).position !== "static" && o === "absolute" && (Ae = "scrollHeight", $e = "scrollWidth")), be = be, r === bs || (r === _s || r === po) && s === Ap) {
41671
+ var ve = Yp(t), Ae = "clientHeight", $e = "clientWidth";
41672
+ if (ve === Hs(t) && (ve = hc(t), Xa(ve).position !== "static" && o === "absolute" && (Ae = "scrollHeight", $e = "scrollWidth")), ve = ve, r === bs || (r === _s || r === po) && s === Ap) {
41673
41673
  Z = fo;
41674
- var Oe = _ && be === Ee && Ee.visualViewport ? Ee.visualViewport.height : (
41674
+ var Oe = _ && ve === Se && Se.visualViewport ? Se.visualViewport.height : (
41675
41675
  // $FlowFixMe[prop-missing]
41676
- be[Ae]
41676
+ ve[Ae]
41677
41677
  );
41678
41678
  z -= Oe - i.height, z *= f ? 1 : -1;
41679
41679
  }
41680
41680
  if (r === _s || (r === bs || r === fo) && s === Ap) {
41681
- Q = po;
41682
- var ft = _ && be === Ee && Ee.visualViewport ? Ee.visualViewport.width : (
41681
+ J = po;
41682
+ var ft = _ && ve === Se && Se.visualViewport ? Se.visualViewport.width : (
41683
41683
  // $FlowFixMe[prop-missing]
41684
- be[$e]
41684
+ ve[$e]
41685
41685
  );
41686
41686
  C -= ft - i.width, C *= f ? 1 : -1;
41687
41687
  }
@@ -41697,9 +41697,9 @@ function MC(n) {
41697
41697
  };
41698
41698
  if (C = me.x, z = me.y, f) {
41699
41699
  var ct;
41700
- return Object.assign({}, ot, (ct = {}, ct[Z] = U ? "0" : "", ct[Q] = F ? "0" : "", ct.transform = (Ee.devicePixelRatio || 1) <= 1 ? "translate(" + C + "px, " + z + "px)" : "translate3d(" + C + "px, " + z + "px, 0)", ct));
41700
+ return Object.assign({}, ot, (ct = {}, ct[Z] = U ? "0" : "", ct[J] = F ? "0" : "", ct.transform = (Se.devicePixelRatio || 1) <= 1 ? "translate(" + C + "px, " + z + "px)" : "translate3d(" + C + "px, " + z + "px, 0)", ct));
41701
41701
  }
41702
- return Object.assign({}, ot, (e = {}, e[Z] = U ? z + "px" : "", e[Q] = F ? C + "px" : "", e.transform = "", e));
41702
+ return Object.assign({}, ot, (e = {}, e[Z] = U ? z + "px" : "", e[J] = F ? C + "px" : "", e.transform = "", e));
41703
41703
  }
41704
41704
  function kq(n) {
41705
41705
  var e = n.state, t = n.options, i = t.gpuAcceleration, r = i === void 0 ? !0 : i, s = t.adaptive, a = s === void 0 ? !0 : s, o = t.roundOffsets, f = o === void 0 ? !0 : o, m = {
@@ -41899,16 +41899,16 @@ function uI(n) {
41899
41899
  }
41900
41900
  function Mp(n, e) {
41901
41901
  e === void 0 && (e = {});
41902
- var t = e, i = t.placement, r = i === void 0 ? n.placement : i, s = t.strategy, a = s === void 0 ? n.strategy : s, o = t.boundary, f = o === void 0 ? tq : o, m = t.rootBoundary, g = m === void 0 ? tI : m, _ = t.elementContext, k = _ === void 0 ? jf : _, C = t.altBoundary, D = C === void 0 ? !1 : C, z = t.padding, O = z === void 0 ? 0 : z, F = aI(typeof O != "number" ? O : lI(O, Gp)), U = k === jf ? nq : jf, Q = n.rects.popper, Z = n.elements[D ? U : k], Ee = Oq(_u(Z) ? Z : Z.contextElement || hc(n.elements.popper), f, g, a), be = ch(n.elements.reference), Ae = uI({
41903
- reference: be,
41904
- element: Q,
41902
+ var t = e, i = t.placement, r = i === void 0 ? n.placement : i, s = t.strategy, a = s === void 0 ? n.strategy : s, o = t.boundary, f = o === void 0 ? tq : o, m = t.rootBoundary, g = m === void 0 ? tI : m, _ = t.elementContext, k = _ === void 0 ? jf : _, C = t.altBoundary, D = C === void 0 ? !1 : C, z = t.padding, O = z === void 0 ? 0 : z, F = aI(typeof O != "number" ? O : lI(O, Gp)), U = k === jf ? nq : jf, J = n.rects.popper, Z = n.elements[D ? U : k], Se = Oq(_u(Z) ? Z : Z.contextElement || hc(n.elements.popper), f, g, a), ve = ch(n.elements.reference), Ae = uI({
41903
+ reference: ve,
41904
+ element: J,
41905
41905
  strategy: "absolute",
41906
41906
  placement: r
41907
- }), $e = sx(Object.assign({}, Q, Ae)), Oe = k === jf ? $e : be, ft = {
41908
- top: Ee.top - Oe.top + F.top,
41909
- bottom: Oe.bottom - Ee.bottom + F.bottom,
41910
- left: Ee.left - Oe.left + F.left,
41911
- right: Oe.right - Ee.right + F.right
41907
+ }), $e = sx(Object.assign({}, J, Ae)), Oe = k === jf ? $e : ve, ft = {
41908
+ top: Se.top - Oe.top + F.top,
41909
+ bottom: Oe.bottom - Se.bottom + F.bottom,
41910
+ left: Se.left - Oe.left + F.left,
41911
+ right: Oe.right - Se.right + F.right
41912
41912
  }, ot = n.modifiersData.offset;
41913
41913
  if (k === jf && ot) {
41914
41914
  var me = ot[r];
@@ -41948,7 +41948,7 @@ function Lq(n) {
41948
41948
  function Nq(n) {
41949
41949
  var e = n.state, t = n.options, i = n.name;
41950
41950
  if (!e.modifiersData[i]._skip) {
41951
- for (var r = t.mainAxis, s = r === void 0 ? !0 : r, a = t.altAxis, o = a === void 0 ? !0 : a, f = t.fallbackPlacements, m = t.padding, g = t.boundary, _ = t.rootBoundary, k = t.altBoundary, C = t.flipVariations, D = C === void 0 ? !0 : C, z = t.allowedAutoPlacements, O = e.options.placement, F = ea(O), U = F === O, Q = f || (U || !D ? [Ug(O)] : Lq(O)), Z = [O].concat(Q).reduce(function(Ln, An) {
41951
+ for (var r = t.mainAxis, s = r === void 0 ? !0 : r, a = t.altAxis, o = a === void 0 ? !0 : a, f = t.fallbackPlacements, m = t.padding, g = t.boundary, _ = t.rootBoundary, k = t.altBoundary, C = t.flipVariations, D = C === void 0 ? !0 : C, z = t.allowedAutoPlacements, O = e.options.placement, F = ea(O), U = F === O, J = f || (U || !D ? [Ug(O)] : Lq(O)), Z = [O].concat(J).reduce(function(Ln, An) {
41952
41952
  return Ln.concat(ea(An) === Iw ? zq(e, {
41953
41953
  placement: An,
41954
41954
  boundary: g,
@@ -41957,7 +41957,7 @@ function Nq(n) {
41957
41957
  flipVariations: D,
41958
41958
  allowedAutoPlacements: z
41959
41959
  }) : An);
41960
- }, []), Ee = e.rects.reference, be = e.rects.popper, Ae = /* @__PURE__ */ new Map(), $e = !0, Oe = Z[0], ft = 0; ft < Z.length; ft++) {
41960
+ }, []), Se = e.rects.reference, ve = e.rects.popper, Ae = /* @__PURE__ */ new Map(), $e = !0, Oe = Z[0], ft = 0; ft < Z.length; ft++) {
41961
41961
  var ot = Z[ft], me = ea(ot), ct = uh(ot) === ah, zt = [bs, fo].indexOf(me) >= 0, Yt = zt ? "width" : "height", Qt = Mp(e, {
41962
41962
  placement: ot,
41963
41963
  boundary: g,
@@ -41965,7 +41965,7 @@ function Nq(n) {
41965
41965
  altBoundary: k,
41966
41966
  padding: m
41967
41967
  }), jt = zt ? ct ? po : _s : ct ? fo : bs;
41968
- Ee[Yt] > be[Yt] && (jt = Ug(jt));
41968
+ Se[Yt] > ve[Yt] && (jt = Ug(jt));
41969
41969
  var Jt = Ug(jt), kn = [];
41970
41970
  if (s && kn.push(Qt[me] <= 0), o && kn.push(Qt[jt] <= 0, Qt[Jt] <= 0), kn.every(function(Ln) {
41971
41971
  return Ln;
@@ -42092,7 +42092,7 @@ function Gq(n) {
42092
42092
  rootBoundary: m,
42093
42093
  padding: _,
42094
42094
  altBoundary: g
42095
- }), F = ea(e.placement), U = uh(e.placement), Q = !U, Z = Ow(F), Ee = qq(Z), be = e.modifiersData.popperOffsets, Ae = e.rects.reference, $e = e.rects.popper, Oe = typeof z == "function" ? z(Object.assign({}, e.rects, {
42095
+ }), F = ea(e.placement), U = uh(e.placement), J = !U, Z = Ow(F), Se = qq(Z), ve = e.modifiersData.popperOffsets, Ae = e.rects.reference, $e = e.rects.popper, Oe = typeof z == "function" ? z(Object.assign({}, e.rects, {
42096
42096
  placement: e.placement
42097
42097
  })) : z, ft = typeof Oe == "number" ? {
42098
42098
  mainAxis: Oe,
@@ -42104,17 +42104,17 @@ function Gq(n) {
42104
42104
  x: 0,
42105
42105
  y: 0
42106
42106
  };
42107
- if (be) {
42107
+ if (ve) {
42108
42108
  if (s) {
42109
- var ct, zt = Z === "y" ? bs : _s, Yt = Z === "y" ? fo : po, Qt = Z === "y" ? "height" : "width", jt = be[Z], Jt = jt + O[zt], kn = jt - O[Yt], hn = C ? -$e[Qt] / 2 : 0, Sn = U === ah ? Ae[Qt] : $e[Qt], fn = U === ah ? -$e[Qt] : -Ae[Qt], Qn = e.elements.arrow, Ln = C && Qn ? Rw(Qn) : {
42109
+ var ct, zt = Z === "y" ? bs : _s, Yt = Z === "y" ? fo : po, Qt = Z === "y" ? "height" : "width", jt = ve[Z], Jt = jt + O[zt], kn = jt - O[Yt], hn = C ? -$e[Qt] / 2 : 0, Sn = U === ah ? Ae[Qt] : $e[Qt], fn = U === ah ? -$e[Qt] : -Ae[Qt], Qn = e.elements.arrow, Ln = C && Qn ? Rw(Qn) : {
42110
42110
  width: 0,
42111
42111
  height: 0
42112
- }, An = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : oI(), ni = An[zt], Ie = An[Yt], Ze = op(0, Ae[Qt], Ln[Qt]), it = Q ? Ae[Qt] / 2 - hn - Ze - ni - ft.mainAxis : Sn - Ze - ni - ft.mainAxis, bt = Q ? -Ae[Qt] / 2 + hn + Ze + Ie + ft.mainAxis : fn + Ze + Ie + ft.mainAxis, nn = e.elements.arrow && Yp(e.elements.arrow), En = nn ? Z === "y" ? nn.clientTop || 0 : nn.clientLeft || 0 : 0, qt = (ct = ot == null ? void 0 : ot[Z]) != null ? ct : 0, Ht = jt + it - qt - En, Mn = jt + bt - qt, Me = op(C ? wy(Jt, Ht) : Jt, jt, C ? uu(kn, Mn) : kn);
42113
- be[Z] = Me, me[Z] = Me - jt;
42112
+ }, An = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : oI(), ni = An[zt], Ie = An[Yt], Ze = op(0, Ae[Qt], Ln[Qt]), it = J ? Ae[Qt] / 2 - hn - Ze - ni - ft.mainAxis : Sn - Ze - ni - ft.mainAxis, bt = J ? -Ae[Qt] / 2 + hn + Ze + Ie + ft.mainAxis : fn + Ze + Ie + ft.mainAxis, nn = e.elements.arrow && Yp(e.elements.arrow), En = nn ? Z === "y" ? nn.clientTop || 0 : nn.clientLeft || 0 : 0, qt = (ct = ot == null ? void 0 : ot[Z]) != null ? ct : 0, Ht = jt + it - qt - En, Mn = jt + bt - qt, Me = op(C ? wy(Jt, Ht) : Jt, jt, C ? uu(kn, Mn) : kn);
42113
+ ve[Z] = Me, me[Z] = Me - jt;
42114
42114
  }
42115
42115
  if (o) {
42116
- var Wn, qs = Z === "x" ? bs : _s, vn = Z === "x" ? fo : po, Rn = be[Ee], Sr = Ee === "y" ? "height" : "width", kr = Rn + O[qs], Ui = Rn - O[vn], Qr = [bs, _s].indexOf(F) !== -1, Wi = (Wn = ot == null ? void 0 : ot[Ee]) != null ? Wn : 0, Gs = Qr ? kr : Rn - Ae[Sr] - $e[Sr] - Wi + ft.altAxis, Ys = Qr ? Rn + Ae[Sr] + $e[Sr] - Wi - ft.altAxis : Ui, qe = C && Qr ? yq(Gs, Rn, Ys) : op(C ? Gs : kr, Rn, C ? Ys : Ui);
42117
- be[Ee] = qe, me[Ee] = qe - Rn;
42116
+ var Wn, qs = Z === "x" ? bs : _s, vn = Z === "x" ? fo : po, Rn = ve[Se], Sr = Se === "y" ? "height" : "width", kr = Rn + O[qs], Ui = Rn - O[vn], Qr = [bs, _s].indexOf(F) !== -1, Wi = (Wn = ot == null ? void 0 : ot[Se]) != null ? Wn : 0, Gs = Qr ? kr : Rn - Ae[Sr] - $e[Sr] - Wi + ft.altAxis, Ys = Qr ? Rn + Ae[Sr] + $e[Sr] - Wi - ft.altAxis : Ui, qe = C && Qr ? yq(Gs, Rn, Ys) : op(C ? Gs : kr, Rn, C ? Ys : Ui);
42117
+ ve[Se] = qe, me[Se] = qe - Rn;
42118
42118
  }
42119
42119
  e.modifiersData[i] = me;
42120
42120
  }
@@ -42241,8 +42241,8 @@ function i7(n) {
42241
42241
  reference: _u(o) ? ap(o) : o.contextElement ? ap(o.contextElement) : [],
42242
42242
  popper: ap(f)
42243
42243
  };
42244
- var Q = e7(n7([].concat(i, g.options.modifiers)));
42245
- return g.orderedModifiers = Q.filter(function(Z) {
42244
+ var J = e7(n7([].concat(i, g.options.modifiers)));
42245
+ return g.orderedModifiers = J.filter(function(Z) {
42246
42246
  return Z.enabled;
42247
42247
  }), D(), C.update();
42248
42248
  },
@@ -42253,11 +42253,11 @@ function i7(n) {
42253
42253
  // prefer the async Popper#update method
42254
42254
  forceUpdate: function() {
42255
42255
  if (!k) {
42256
- var F = g.elements, U = F.reference, Q = F.popper;
42257
- if (zC(U, Q)) {
42256
+ var F = g.elements, U = F.reference, J = F.popper;
42257
+ if (zC(U, J)) {
42258
42258
  g.rects = {
42259
- reference: Jq(U, Yp(Q), g.options.strategy === "fixed"),
42260
- popper: Rw(Q)
42259
+ reference: Jq(U, Yp(J), g.options.strategy === "fixed"),
42260
+ popper: Rw(J)
42261
42261
  }, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(ft) {
42262
42262
  return g.modifiersData[ft.name] = Object.assign({}, ft.data);
42263
42263
  });
@@ -42266,8 +42266,8 @@ function i7(n) {
42266
42266
  g.reset = !1, Z = -1;
42267
42267
  continue;
42268
42268
  }
42269
- var Ee = g.orderedModifiers[Z], be = Ee.fn, Ae = Ee.options, $e = Ae === void 0 ? {} : Ae, Oe = Ee.name;
42270
- typeof be == "function" && (g = be({
42269
+ var Se = g.orderedModifiers[Z], ve = Se.fn, Ae = Se.options, $e = Ae === void 0 ? {} : Ae, Oe = Se.name;
42270
+ typeof ve == "function" && (g = ve({
42271
42271
  state: g,
42272
42272
  options: $e,
42273
42273
  name: Oe,
@@ -42295,16 +42295,16 @@ function i7(n) {
42295
42295
  });
42296
42296
  function D() {
42297
42297
  g.orderedModifiers.forEach(function(O) {
42298
- var F = O.name, U = O.options, Q = U === void 0 ? {} : U, Z = O.effect;
42298
+ var F = O.name, U = O.options, J = U === void 0 ? {} : U, Z = O.effect;
42299
42299
  if (typeof Z == "function") {
42300
- var Ee = Z({
42300
+ var Se = Z({
42301
42301
  state: g,
42302
42302
  name: F,
42303
42303
  instance: C,
42304
- options: Q
42305
- }), be = function() {
42304
+ options: J
42305
+ }), ve = function() {
42306
42306
  };
42307
- _.push(Ee || be);
42307
+ _.push(Se || ve);
42308
42308
  }
42309
42309
  });
42310
42310
  }
@@ -42681,7 +42681,7 @@ function xI(n) {
42681
42681
  xI.$$tippy = !0;
42682
42682
  var P7 = 1, Eg = [], Hb = [];
42683
42683
  function R7(n, e) {
42684
- var t = HC(n, Object.assign({}, zs, bI(BC(e)))), i, r, s, a = !1, o = !1, f = !1, m = !1, g, _, k, C = [], D = LC(Ht, t.interactiveDebounce), z, O = P7++, F = null, U = d7(t.plugins), Q = {
42684
+ var t = HC(n, Object.assign({}, zs, bI(BC(e)))), i, r, s, a = !1, o = !1, f = !1, m = !1, g, _, k, C = [], D = LC(Ht, t.interactiveDebounce), z, O = P7++, F = null, U = d7(t.plugins), J = {
42685
42685
  // Is the instance currently enabled?
42686
42686
  isEnabled: !0,
42687
42687
  // Is the tippy currently showing and not transitioning out?
@@ -42699,7 +42699,7 @@ function R7(n, e) {
42699
42699
  popper: lp(),
42700
42700
  popperInstance: F,
42701
42701
  props: t,
42702
- state: Q,
42702
+ state: J,
42703
42703
  plugins: U,
42704
42704
  // methods
42705
42705
  clearDelayTimeouts: Gs,
@@ -42715,14 +42715,14 @@ function R7(n, e) {
42715
42715
  };
42716
42716
  if (!t.render)
42717
42717
  return oo.NODE_ENV !== "production" && ox(!0, "render() function has not been supplied."), Z;
42718
- var Ee = t.render(Z), be = Ee.popper, Ae = Ee.onUpdate;
42719
- be.setAttribute("data-tippy-root", ""), be.id = "tippy-" + Z.id, Z.popper = be, n._tippy = Z, be._tippy = Z;
42718
+ var Se = t.render(Z), ve = Se.popper, Ae = Se.onUpdate;
42719
+ ve.setAttribute("data-tippy-root", ""), ve.id = "tippy-" + Z.id, Z.popper = ve, n._tippy = Z, ve._tippy = Z;
42720
42720
  var $e = U.map(function(Te) {
42721
42721
  return Te.fn(Z);
42722
42722
  }), Oe = n.hasAttribute("aria-expanded");
42723
- return nn(), hn(), jt(), Jt("onCreate", [Z]), t.showOnCreate && kr(), be.addEventListener("mouseenter", function() {
42723
+ return nn(), hn(), jt(), Jt("onCreate", [Z]), t.showOnCreate && kr(), ve.addEventListener("mouseenter", function() {
42724
42724
  Z.props.interactive && Z.state.isVisible && Z.clearDelayTimeouts();
42725
- }), be.addEventListener("mouseleave", function() {
42725
+ }), ve.addEventListener("mouseleave", function() {
42726
42726
  Z.props.interactive && Z.props.trigger.indexOf("mouseenter") >= 0 && zt().addEventListener("mousemove", D);
42727
42727
  }), Z;
42728
42728
  function ft() {
@@ -42744,13 +42744,13 @@ function R7(n, e) {
42744
42744
  return Te ? y7(Te) : document;
42745
42745
  }
42746
42746
  function Yt() {
42747
- return lx(be);
42747
+ return lx(ve);
42748
42748
  }
42749
42749
  function Qt(Te) {
42750
42750
  return Z.state.isMounted && !Z.state.isVisible || Yo.isTouch || g && g.type === "focus" ? 0 : $b(Z.props.delay, Te ? 0 : 1, zs.delay);
42751
42751
  }
42752
42752
  function jt(Te) {
42753
- Te === void 0 && (Te = !1), be.style.pointerEvents = Z.props.interactive && !Te ? "" : "none", be.style.zIndex = "" + Z.props.zIndex;
42753
+ Te === void 0 && (Te = !1), ve.style.pointerEvents = Z.props.interactive && !Te ? "" : "none", ve.style.zIndex = "" + Z.props.zIndex;
42754
42754
  }
42755
42755
  function Jt(Te, Ve, Pt) {
42756
42756
  if (Pt === void 0 && (Pt = !0), $e.forEach(function(at) {
@@ -42763,7 +42763,7 @@ function R7(n, e) {
42763
42763
  function kn() {
42764
42764
  var Te = Z.props.aria;
42765
42765
  if (Te.content) {
42766
- var Ve = "aria-" + Te.content, Pt = be.id, cn = Ld(Z.props.triggerTarget || n);
42766
+ var Ve = "aria-" + Te.content, Pt = ve.id, cn = Ld(Z.props.triggerTarget || n);
42767
42767
  cn.forEach(function(at) {
42768
42768
  var ii = at.getAttribute(Ve);
42769
42769
  if (Z.state.isVisible)
@@ -42791,7 +42791,7 @@ function R7(n, e) {
42791
42791
  function fn(Te) {
42792
42792
  if (!(Yo.isTouch && (f || Te.type === "mousedown"))) {
42793
42793
  var Ve = Te.composedPath && Te.composedPath()[0] || Te.target;
42794
- if (!(Z.props.interactive && $C(be, Ve))) {
42794
+ if (!(Z.props.interactive && $C(ve, Ve))) {
42795
42795
  if (Ld(Z.props.triggerTarget || n).some(function(Pt) {
42796
42796
  return $C(Pt, Ve);
42797
42797
  })) {
@@ -42821,7 +42821,7 @@ function R7(n, e) {
42821
42821
  }
42822
42822
  function Ie(Te, Ve) {
42823
42823
  it(Te, function() {
42824
- !Z.state.isVisible && be.parentNode && be.parentNode.contains(be) && Ve();
42824
+ !Z.state.isVisible && ve.parentNode && ve.parentNode.contains(ve) && Ve();
42825
42825
  });
42826
42826
  }
42827
42827
  function Ze(Te, Ve) {
@@ -42884,9 +42884,9 @@ function R7(n, e) {
42884
42884
  }
42885
42885
  }
42886
42886
  function Ht(Te) {
42887
- var Ve = Te.target, Pt = ct().contains(Ve) || be.contains(Ve);
42887
+ var Ve = Te.target, Pt = ct().contains(Ve) || ve.contains(Ve);
42888
42888
  if (!(Te.type === "mousemove" && Pt)) {
42889
- var cn = Sr().concat(be).map(function(at) {
42889
+ var cn = Sr().concat(ve).map(function(at) {
42890
42890
  var ii, _i = at._tippy, fr = (ii = _i.popperInstance) == null ? void 0 : ii.state;
42891
42891
  return fr ? {
42892
42892
  popperRect: at.getBoundingClientRect(),
@@ -42908,14 +42908,14 @@ function R7(n, e) {
42908
42908
  }
42909
42909
  }
42910
42910
  function Me(Te) {
42911
- Z.props.trigger.indexOf("focusin") < 0 && Te.target !== ct() || Z.props.interactive && Te.relatedTarget && be.contains(Te.relatedTarget) || Ui(Te);
42911
+ Z.props.trigger.indexOf("focusin") < 0 && Te.target !== ct() || Z.props.interactive && Te.relatedTarget && ve.contains(Te.relatedTarget) || Ui(Te);
42912
42912
  }
42913
42913
  function Wn(Te) {
42914
42914
  return Yo.isTouch ? ot() !== Te.type.indexOf("touch") >= 0 : !1;
42915
42915
  }
42916
42916
  function qs() {
42917
42917
  vn();
42918
- var Te = Z.props, Ve = Te.popperOptions, Pt = Te.placement, cn = Te.offset, at = Te.getReferenceClientRect, ii = Te.moveTransition, _i = me() ? lx(be).arrow : null, fr = at ? {
42918
+ var Te = Z.props, Ve = Te.popperOptions, Pt = Te.placement, cn = Te.offset, at = Te.getReferenceClientRect, ii = Te.moveTransition, _i = me() ? lx(ve).arrow : null, fr = at ? {
42919
42919
  getBoundingClientRect: at,
42920
42920
  contextElement: at.contextElement || ct()
42921
42921
  } : n, $r = {
@@ -42924,12 +42924,12 @@ function R7(n, e) {
42924
42924
  phase: "beforeWrite",
42925
42925
  requires: ["computeStyles"],
42926
42926
  fn: function(W) {
42927
- var J = W.state;
42927
+ var Q = W.state;
42928
42928
  if (me()) {
42929
42929
  var se = Yt(), ge = se.box;
42930
- ["placement", "reference-hidden", "escaped"].forEach(function(ve) {
42931
- ve === "placement" ? ge.setAttribute("data-placement", J.placement) : J.attributes.popper["data-popper-" + ve] ? ge.setAttribute("data-" + ve, "") : ge.removeAttribute("data-" + ve);
42932
- }), J.attributes.popper = {};
42930
+ ["placement", "reference-hidden", "escaped"].forEach(function(be) {
42931
+ be === "placement" ? ge.setAttribute("data-placement", Q.placement) : Q.attributes.popper["data-popper-" + be] ? ge.setAttribute("data-" + be, "") : ge.removeAttribute("data-" + be);
42932
+ }), Q.attributes.popper = {};
42933
42933
  }
42934
42934
  }
42935
42935
  }, le = [{
@@ -42964,7 +42964,7 @@ function R7(n, e) {
42964
42964
  element: _i,
42965
42965
  padding: 3
42966
42966
  }
42967
- }), le.push.apply(le, (Ve == null ? void 0 : Ve.modifiers) || []), Z.popperInstance = s7(fr, be, Object.assign({}, Ve, {
42967
+ }), le.push.apply(le, (Ve == null ? void 0 : Ve.modifiers) || []), Z.popperInstance = s7(fr, ve, Object.assign({}, Ve, {
42968
42968
  placement: Pt,
42969
42969
  onFirstUpdate: k,
42970
42970
  modifiers: le
@@ -42975,7 +42975,7 @@ function R7(n, e) {
42975
42975
  }
42976
42976
  function Rn() {
42977
42977
  var Te = Z.props.appendTo, Ve, Pt = ct();
42978
- Z.props.interactive && Te === pI || Te === "parent" ? Ve = Pt.parentNode : Ve = mI(Te, [Pt]), Ve.contains(be) || Ve.appendChild(be), Z.state.isMounted = !0, qs(), oo.NODE_ENV !== "production" && za(Z.props.interactive && Te === zs.appendTo && Pt.nextElementSibling !== be, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
42978
+ Z.props.interactive && Te === pI || Te === "parent" ? Ve = Pt.parentNode : Ve = mI(Te, [Pt]), Ve.contains(ve) || Ve.appendChild(ve), Z.state.isMounted = !0, qs(), oo.NODE_ENV !== "production" && za(Z.props.interactive && Te === zs.appendTo && Pt.nextElementSibling !== ve, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
42979
42979
 
42980
42980
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
42981
42981
 
@@ -42984,7 +42984,7 @@ function R7(n, e) {
42984
42984
  `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
42985
42985
  }
42986
42986
  function Sr() {
42987
- return Sy(be.querySelectorAll("[data-tippy-root]"));
42987
+ return Sy(ve.querySelectorAll("[data-tippy-root]"));
42988
42988
  }
42989
42989
  function kr(Te) {
42990
42990
  Z.clearDelayTimeouts(), Te && Jt("onTrigger", [Z, Te]), An();
@@ -43038,16 +43038,16 @@ function R7(n, e) {
43038
43038
  oo.NODE_ENV !== "production" && za(Z.state.isDestroyed, Pd("show"));
43039
43039
  var Te = Z.state.isVisible, Ve = Z.state.isDestroyed, Pt = !Z.state.isEnabled, cn = Yo.isTouch && !Z.props.touch, at = $b(Z.props.duration, 0, zs.duration);
43040
43040
  if (!(Te || Ve || Pt || cn) && !ct().hasAttribute("disabled") && (Jt("onShow", [Z], !1), Z.props.onShow(Z) !== !1)) {
43041
- if (Z.state.isVisible = !0, me() && (be.style.visibility = "visible"), jt(), An(), Z.state.isMounted || (be.style.transition = "none"), me()) {
43041
+ if (Z.state.isVisible = !0, me() && (ve.style.visibility = "visible"), jt(), An(), Z.state.isMounted || (ve.style.transition = "none"), me()) {
43042
43042
  var ii = Yt(), _i = ii.box, fr = ii.content;
43043
43043
  Vb([_i, fr], 0);
43044
43044
  }
43045
43045
  k = function() {
43046
43046
  var le;
43047
43047
  if (!(!Z.state.isVisible || m)) {
43048
- if (m = !0, be.offsetHeight, be.style.transition = Z.props.moveTransition, me() && Z.props.animation) {
43049
- var q = Yt(), W = q.box, J = q.content;
43050
- Vb([W, J], at), FC([W, J], "visible");
43048
+ if (m = !0, ve.offsetHeight, ve.style.transition = Z.props.moveTransition, me() && Z.props.animation) {
43049
+ var q = Yt(), W = q.box, Q = q.content;
43050
+ Vb([W, Q], at), FC([W, Q], "visible");
43051
43051
  }
43052
43052
  kn(), hn(), NC(Hb, Z), (le = Z.popperInstance) == null || le.forceUpdate(), Jt("onMount", [Z]), Z.props.animation && me() && Ze(at, function() {
43053
43053
  Z.state.isShown = !0, Jt("onShown", [Z]);
@@ -43060,7 +43060,7 @@ function R7(n, e) {
43060
43060
  oo.NODE_ENV !== "production" && za(Z.state.isDestroyed, Pd("hide"));
43061
43061
  var Te = !Z.state.isVisible, Ve = Z.state.isDestroyed, Pt = !Z.state.isEnabled, cn = $b(Z.props.duration, 1, zs.duration);
43062
43062
  if (!(Te || Ve || Pt) && (Jt("onHide", [Z], !1), Z.props.onHide(Z) !== !1)) {
43063
- if (Z.state.isVisible = !1, Z.state.isShown = !1, m = !1, a = !1, me() && (be.style.visibility = "hidden"), Sn(), ni(), jt(!0), me()) {
43063
+ if (Z.state.isVisible = !1, Z.state.isShown = !1, m = !1, a = !1, me() && (ve.style.visibility = "hidden"), Sn(), ni(), jt(!0), me()) {
43064
43064
  var at = Yt(), ii = at.box, _i = at.content;
43065
43065
  Z.props.animation && (Vb([ii, _i], cn), FC([ii, _i], "hidden"));
43066
43066
  }
@@ -43073,7 +43073,7 @@ function R7(n, e) {
43073
43073
  function Zs() {
43074
43074
  oo.NODE_ENV !== "production" && za(Z.state.isDestroyed, Pd("unmount")), Z.state.isVisible && Z.hide(), Z.state.isMounted && (vn(), Sr().forEach(function(Te) {
43075
43075
  Te._tippy.unmount();
43076
- }), be.parentNode && be.parentNode.removeChild(be), Hb = Hb.filter(function(Te) {
43076
+ }), ve.parentNode && ve.parentNode.removeChild(ve), Hb = Hb.filter(function(Te) {
43077
43077
  return Te !== Z;
43078
43078
  }), Z.state.isMounted = !1, Jt("onHidden", [Z]));
43079
43079
  }
@@ -43157,14 +43157,14 @@ class O7 {
43157
43157
  if (z || !f && !m)
43158
43158
  return;
43159
43159
  this.createTooltip();
43160
- const { ranges: U } = O, Q = Math.min(...U.map((be) => be.$from.pos)), Z = Math.max(...U.map((be) => be.$to.pos));
43160
+ const { ranges: U } = O, J = Math.min(...U.map((ve) => ve.$from.pos)), Z = Math.max(...U.map((ve) => ve.$to.pos));
43161
43161
  if (!((_ = this.shouldShow) === null || _ === void 0 ? void 0 : _.call(this, {
43162
43162
  editor: this.editor,
43163
43163
  element: this.element,
43164
43164
  view: o,
43165
43165
  state: D,
43166
43166
  oldState: g,
43167
- from: Q,
43167
+ from: J,
43168
43168
  to: Z
43169
43169
  }))) {
43170
43170
  this.hide();
@@ -43173,14 +43173,14 @@ class O7 {
43173
43173
  (k = this.tippy) === null || k === void 0 || k.setProps({
43174
43174
  getReferenceClientRect: ((C = this.tippyOptions) === null || C === void 0 ? void 0 : C.getReferenceClientRect) || (() => {
43175
43175
  if (QD(D.selection)) {
43176
- let be = o.nodeDOM(Q);
43177
- if (be) {
43178
- const Ae = be.dataset.nodeViewWrapper ? be : be.querySelector("[data-node-view-wrapper]");
43179
- if (Ae && (be = Ae.firstChild), be)
43180
- return be.getBoundingClientRect();
43176
+ let ve = o.nodeDOM(J);
43177
+ if (ve) {
43178
+ const Ae = ve.dataset.nodeViewWrapper ? ve : ve.querySelector("[data-node-view-wrapper]");
43179
+ if (Ae && (ve = Ae.firstChild), ve)
43180
+ return ve.getBoundingClientRect();
43181
43181
  }
43182
43182
  }
43183
- return eI(o, Q, Z);
43183
+ return eI(o, J, Z);
43184
43184
  })
43185
43185
  }), this.show();
43186
43186
  }, this.editor = e, this.element = t, this.view = i, this.updateDelay = s, a && (this.shouldShow = a), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = r, this.element.remove(), this.element.style.visibility = "visible";
@@ -45038,8 +45038,8 @@ function $G({ pluginKey: n = FG, editor: e, char: t = "@", allowSpaces: i = !1,
45038
45038
  view() {
45039
45039
  return {
45040
45040
  update: async (O, F) => {
45041
- var U, Q, Z, Ee, be, Ae, $e;
45042
- const Oe = (U = this.key) === null || U === void 0 ? void 0 : U.getState(F), ft = (Q = this.key) === null || Q === void 0 ? void 0 : Q.getState(O.state), ot = Oe.active && ft.active && Oe.range.from !== ft.range.from, me = !Oe.active && ft.active, ct = Oe.active && !ft.active, zt = !me && !ct && Oe.query !== ft.query, Yt = me || ot && zt, Qt = zt || ot, jt = ct || ot && zt;
45041
+ var U, J, Z, Se, ve, Ae, $e;
45042
+ const Oe = (U = this.key) === null || U === void 0 ? void 0 : U.getState(F), ft = (J = this.key) === null || J === void 0 ? void 0 : J.getState(O.state), ot = Oe.active && ft.active && Oe.range.from !== ft.range.from, me = !Oe.active && ft.active, ct = Oe.active && !ft.active, zt = !me && !ct && Oe.query !== ft.query, Yt = me || ot && zt, Qt = zt || ot, jt = ct || ot && zt;
45043
45043
  if (!Yt && !Qt && !jt)
45044
45044
  return;
45045
45045
  const Jt = jt && !Yt ? Oe : ft, kn = O.dom.querySelector(`[data-decoration-id="${Jt.decorationId}"]`);
@@ -45062,10 +45062,10 @@ function $G({ pluginKey: n = FG, editor: e, char: t = "@", allowSpaces: i = !1,
45062
45062
  const { decorationId: Sn } = (hn = this.key) === null || hn === void 0 ? void 0 : hn.getState(e.state), fn = O.dom.querySelector(`[data-decoration-id="${Sn}"]`);
45063
45063
  return (fn == null ? void 0 : fn.getBoundingClientRect()) || null;
45064
45064
  } : null
45065
- }, Yt && ((Z = D == null ? void 0 : D.onBeforeStart) === null || Z === void 0 || Z.call(D, C)), Qt && ((Ee = D == null ? void 0 : D.onBeforeUpdate) === null || Ee === void 0 || Ee.call(D, C)), (Qt || Yt) && (C.items = await m({
45065
+ }, Yt && ((Z = D == null ? void 0 : D.onBeforeStart) === null || Z === void 0 || Z.call(D, C)), Qt && ((Se = D == null ? void 0 : D.onBeforeUpdate) === null || Se === void 0 || Se.call(D, C)), (Qt || Yt) && (C.items = await m({
45066
45066
  editor: e,
45067
45067
  query: Jt.query
45068
- })), jt && ((be = D == null ? void 0 : D.onExit) === null || be === void 0 || be.call(D, C)), Qt && ((Ae = D == null ? void 0 : D.onUpdate) === null || Ae === void 0 || Ae.call(D, C)), Yt && (($e = D == null ? void 0 : D.onStart) === null || $e === void 0 || $e.call(D, C));
45068
+ })), jt && ((ve = D == null ? void 0 : D.onExit) === null || ve === void 0 || ve.call(D, C)), Qt && ((Ae = D == null ? void 0 : D.onUpdate) === null || Ae === void 0 || Ae.call(D, C)), Yt && (($e = D == null ? void 0 : D.onStart) === null || $e === void 0 || $e.call(D, C));
45069
45069
  },
45070
45070
  destroy: () => {
45071
45071
  var O;
@@ -45088,20 +45088,20 @@ function $G({ pluginKey: n = FG, editor: e, char: t = "@", allowSpaces: i = !1,
45088
45088
  };
45089
45089
  },
45090
45090
  // Apply changes to the plugin state from a view transaction.
45091
- apply(O, F, U, Q) {
45092
- const { isEditable: Z } = e, { composing: Ee } = e.view, { selection: be } = O, { empty: Ae, from: $e } = be, Oe = { ...F };
45093
- if (Oe.composing = Ee, Z && (Ae || e.view.composing)) {
45094
- ($e < F.range.from || $e > F.range.to) && !Ee && !F.composing && (Oe.active = !1);
45091
+ apply(O, F, U, J) {
45092
+ const { isEditable: Z } = e, { composing: Se } = e.view, { selection: ve } = O, { empty: Ae, from: $e } = ve, Oe = { ...F };
45093
+ if (Oe.composing = Se, Z && (Ae || e.view.composing)) {
45094
+ ($e < F.range.from || $e > F.range.to) && !Se && !F.composing && (Oe.active = !1);
45095
45095
  const ft = k({
45096
45096
  char: t,
45097
45097
  allowSpaces: i,
45098
45098
  allowedPrefixes: r,
45099
45099
  startOfLine: s,
45100
- $position: be.$from
45100
+ $position: ve.$from
45101
45101
  }), ot = `id_${Math.floor(Math.random() * 4294967295)}`;
45102
45102
  ft && _({
45103
45103
  editor: e,
45104
- state: Q,
45104
+ state: J,
45105
45105
  range: ft.range,
45106
45106
  isActive: F.active
45107
45107
  }) ? (Oe.active = !0, Oe.decorationId = F.decorationId ? F.decorationId : ot, Oe.range = ft.range, Oe.query = ft.query, Oe.text = ft.text) : Oe.active = !1;
@@ -45114,17 +45114,17 @@ function $G({ pluginKey: n = FG, editor: e, char: t = "@", allowSpaces: i = !1,
45114
45114
  // Call the keydown hook if suggestion is active.
45115
45115
  handleKeyDown(O, F) {
45116
45116
  var U;
45117
- const { active: Q, range: Z } = z.getState(O.state);
45118
- return Q && ((U = D == null ? void 0 : D.onKeyDown) === null || U === void 0 ? void 0 : U.call(D, { view: O, event: F, range: Z })) || !1;
45117
+ const { active: J, range: Z } = z.getState(O.state);
45118
+ return J && ((U = D == null ? void 0 : D.onKeyDown) === null || U === void 0 ? void 0 : U.call(D, { view: O, event: F, range: Z })) || !1;
45119
45119
  },
45120
45120
  // Setup decorator on the currently active suggestion.
45121
45121
  decorations(O) {
45122
- const { active: F, range: U, decorationId: Q } = z.getState(O);
45122
+ const { active: F, range: U, decorationId: J } = z.getState(O);
45123
45123
  return F ? ji.create(O.doc, [
45124
45124
  Ns.inline(U.from, U.to, {
45125
45125
  nodeName: a,
45126
45126
  class: o,
45127
- "data-decoration-id": Q
45127
+ "data-decoration-id": J
45128
45128
  })
45129
45129
  ]) : null;
45130
45130
  }
@@ -47104,7 +47104,7 @@ const QZ = /* @__PURE__ */ mt(ZZ, [["render", JZ]]), eX = { class: "h-full" }, t
47104
47104
  return Ro(s, m), aa(() => {
47105
47105
  m();
47106
47106
  }), (k, C) => {
47107
- var O, F, U, Q, Z, Ee, be, Ae, $e, Oe, ft, ot;
47107
+ var O, F, U, J, Z, Se, ve, Ae, $e, Oe, ft, ot;
47108
47108
  const D = We("VsText"), z = We("VsPagination");
47109
47109
  return K(), ie("div", eX, [
47110
47110
  L("div", tX, [
@@ -47126,18 +47126,18 @@ const QZ = /* @__PURE__ */ mt(ZZ, [["render", JZ]]), eX = { class: "h-full" }, t
47126
47126
  }, null, 8, ["scheme", "table", "onFilters", "filter", "data"])) : wt("", !0),
47127
47127
  je(jZ, {
47128
47128
  token: (U = t.value) == null ? void 0 : U.addToken,
47129
- form: (Q = t.value) == null ? void 0 : Q.form
47129
+ form: (J = t.value) == null ? void 0 : J.form
47130
47130
  }, null, 8, ["token", "form"])
47131
47131
  ])
47132
47132
  ]),
47133
47133
  L("div", {
47134
47134
  class: an(["overflow-x-auto w-full admin-widget-table [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500", [
47135
- ((Ee = (Z = t.value) == null ? void 0 : Z.rows) == null ? void 0 : Ee.length) > k.limit ? "h-[calc(100%-60px)]" : "h-[100%]"
47135
+ ((Se = (Z = t.value) == null ? void 0 : Z.rows) == null ? void 0 : Se.length) > k.limit ? "h-[calc(100%-60px)]" : "h-[100%]"
47136
47136
  ]])
47137
47137
  }, [
47138
47138
  L("div", iX, [
47139
47139
  L("table", rX, [
47140
- (be = i.value) != null && be.length ? (K(), ie(At, { key: 0 }, [
47140
+ (ve = i.value) != null && ve.length ? (K(), ie(At, { key: 0 }, [
47141
47141
  L("thead", sX, [
47142
47142
  L("tr", null, [
47143
47143
  (K(!0), ie(At, null, en(i.value, (me, ct) => (K(), ie("th", {
@@ -47632,7 +47632,7 @@ function WI(n) {
47632
47632
  return null;
47633
47633
  }
47634
47634
  function jw(n, e, t, i, r, s, a, o, f) {
47635
- var m, g, _, k, C, D, z, O, F, U, Q, Z, Ee, be, Ae, $e = e.type;
47635
+ var m, g, _, k, C, D, z, O, F, U, J, Z, Se, ve, Ae, $e = e.type;
47636
47636
  if (e.constructor !== void 0) return null;
47637
47637
  t.__h != null && (f = t.__h, o = e.__e = t.__e, e.__h = null, s = [o]), (m = Xt.__b) && m(e);
47638
47638
  try {
@@ -47642,7 +47642,7 @@ function jw(n, e, t, i, r, s, a, o, f) {
47642
47642
  if ($e.getDerivedStateFromProps == null && O !== k && g.componentWillReceiveProps != null && g.componentWillReceiveProps(O, U), !g.__e && g.shouldComponentUpdate != null && g.shouldComponentUpdate(O, g.__s, U) === !1 || e.__v === t.__v) {
47643
47643
  for (e.__v !== t.__v && (g.props = O, g.state = g.__s, g.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(Oe) {
47644
47644
  Oe && (Oe.__ = e);
47645
- }), Q = 0; Q < g._sb.length; Q++) g.__h.push(g._sb[Q]);
47645
+ }), J = 0; J < g._sb.length; J++) g.__h.push(g._sb[J]);
47646
47646
  g._sb = [], g.__h.length && a.push(g);
47647
47647
  break e;
47648
47648
  }
@@ -47650,12 +47650,12 @@ function jw(n, e, t, i, r, s, a, o, f) {
47650
47650
  g.componentDidUpdate(k, C, D);
47651
47651
  });
47652
47652
  }
47653
- if (g.context = U, g.props = O, g.__P = n, Z = Xt.__r, Ee = 0, "prototype" in $e && $e.prototype.render) {
47654
- for (g.state = g.__s, g.__d = !1, Z && Z(e), m = g.render(g.props, g.state, g.context), be = 0; be < g._sb.length; be++) g.__h.push(g._sb[be]);
47653
+ if (g.context = U, g.props = O, g.__P = n, Z = Xt.__r, Se = 0, "prototype" in $e && $e.prototype.render) {
47654
+ for (g.state = g.__s, g.__d = !1, Z && Z(e), m = g.render(g.props, g.state, g.context), ve = 0; ve < g._sb.length; ve++) g.__h.push(g._sb[ve]);
47655
47655
  g._sb = [];
47656
47656
  } else do
47657
47657
  g.__d = !1, Z && Z(e), m = g.render(g.props, g.state, g.context), g.state = g.__s;
47658
- while (g.__d && ++Ee < 25);
47658
+ while (g.__d && ++Se < 25);
47659
47659
  g.state = g.__s, g.getChildContext != null && (i = Zl(Zl({}, i), g.getChildContext())), _ || g.getSnapshotBeforeUpdate == null || (D = g.getSnapshotBeforeUpdate(k, C)), Ae = m != null && m.type === fi && m.key == null ? m.props.children : m, jI(n, Array.isArray(Ae) ? Ae : [Ae], e, t, i, r, s, a, o, f), g.base = e.__e, e.__h = null, g.__h.length && a.push(g), z && (g.__E = g.__ = null), g.__e = !1;
47660
47660
  } else s == null && e.__v === t.__v ? (e.__k = t.__k, e.__e = t.__e) : e.__e = oK(t.__e, e, t, i, r, s, a, f);
47661
47661
  (m = Xt.diffed) && m(e);
@@ -51548,15 +51548,15 @@ class zP {
51548
51548
  const z = t[D];
51549
51549
  if (!r && z >= o + this.getEntryThickness(e))
51550
51550
  break;
51551
- let O = i[D], F, U = wx(O, e.span.start, xx), Q = U[0] + U[1];
51551
+ let O = i[D], F, U = wx(O, e.span.start, xx), J = U[0] + U[1];
51552
51552
  for (
51553
51553
  ;
51554
51554
  // loop through entries that horizontally intersect
51555
- (F = O[Q]) && // but not past the whole entry list
51555
+ (F = O[J]) && // but not past the whole entry list
51556
51556
  F.span.start < e.span.end;
51557
51557
  ) {
51558
51558
  let Z = z + this.getEntryThickness(F);
51559
- Z > o && (o = Z, g = F, f = D, m = Q), Z === o && (_ = Math.max(_, s[fu(F)] + 1)), Q += 1;
51559
+ Z > o && (o = Z, g = F, f = D, m = J), Z === o && (_ = Math.max(_, s[fu(F)] + 1)), J += 1;
51560
51560
  }
51561
51561
  }
51562
51562
  let k = 0;
@@ -51954,9 +51954,9 @@ function gee(n, e, t, i) {
51954
51954
  let z = f[D], O = z.range, F = m[z.defId], U = o[z.defId];
51955
51955
  if (!UP(F.constraints, O, g, n.businessHours, e))
51956
51956
  return !1;
51957
- let { eventOverlap: Q } = e.options, Z = typeof Q == "function" ? Q : null;
51958
- for (let be in k) {
51959
- let Ae = k[be];
51957
+ let { eventOverlap: J } = e.options, Z = typeof J == "function" ? J : null;
51958
+ for (let ve in k) {
51959
+ let Ae = k[ve];
51960
51960
  if (Qw(O, Ae.range) && (C[Ae.defId].overlap === !1 && s.isEvent || F.overlap === !1 || Z && !Z(
51961
51961
  new Ei(e, _[Ae.defId], Ae),
51962
51962
  // still event
@@ -51964,10 +51964,10 @@ function gee(n, e, t, i) {
51964
51964
  )))
51965
51965
  return !1;
51966
51966
  }
51967
- let Ee = r.eventStore;
51968
- for (let be of F.allows) {
51969
- let Ae = Object.assign(Object.assign({}, t), { range: z.range, allDay: U.allDay }), $e = Ee.defs[U.defId], Oe = Ee.instances[D], ft;
51970
- if ($e ? ft = new Ei(e, $e, Oe) : ft = new Ei(e, U), !be(s1(Ae, e), ft))
51967
+ let Se = r.eventStore;
51968
+ for (let ve of F.allows) {
51969
+ let Ae = Object.assign(Object.assign({}, t), { range: z.range, allDay: U.allDay }), $e = Se.defs[U.defId], Oe = Se.instances[D], ft;
51970
+ if ($e ? ft = new Ei(e, $e, Oe) : ft = new Ei(e, U), !ve(s1(Ae, e), ft))
51971
51971
  return !1;
51972
51972
  }
51973
51973
  }
@@ -53130,18 +53130,18 @@ function bte(n, e, t, i, r, s) {
53130
53130
  return { widgets: k.map((O) => O.split(",").map((F) => {
53131
53131
  if (F === "title")
53132
53132
  return D = !0, { buttonName: F };
53133
- let U, Q, Z, Ee, be, Ae;
53133
+ let U, J, Z, Se, ve, Ae;
53134
53134
  if (U = o[F])
53135
53135
  Z = ($e) => {
53136
53136
  U.click && U.click.call($e.target, $e, $e.target);
53137
- }, (Ee = i.getCustomButtonIconClass(U)) || (Ee = i.getIconClass(F, a)) || (be = U.text), Ae = U.hint || U.text;
53138
- else if (Q = r[F]) {
53137
+ }, (Se = i.getCustomButtonIconClass(U)) || (Se = i.getIconClass(F, a)) || (ve = U.text), Ae = U.hint || U.text;
53138
+ else if (J = r[F]) {
53139
53139
  C.push(F), Z = () => {
53140
53140
  s.changeView(F);
53141
- }, (be = Q.buttonTextOverride) || (Ee = i.getIconClass(F, a)) || (be = Q.buttonTextDefault);
53142
- let $e = Q.buttonTextOverride || Q.buttonTextDefault;
53141
+ }, (ve = J.buttonTextOverride) || (Se = i.getIconClass(F, a)) || (ve = J.buttonTextDefault);
53142
+ let $e = J.buttonTextOverride || J.buttonTextDefault;
53143
53143
  Ae = up(
53144
- Q.buttonTitleOverride || Q.buttonTitleDefault || e.viewHint,
53144
+ J.buttonTitleOverride || J.buttonTitleDefault || e.viewHint,
53145
53145
  [$e, F],
53146
53146
  // view-name = buttonName
53147
53147
  $e
@@ -53149,7 +53149,7 @@ function bte(n, e, t, i, r, s) {
53149
53149
  } else if (s[F])
53150
53150
  if (Z = () => {
53151
53151
  s[F]();
53152
- }, (be = f[F]) || (Ee = i.getIconClass(F, a)) || (be = m[F]), F === "prevYear" || F === "nextYear") {
53152
+ }, (ve = f[F]) || (Se = i.getIconClass(F, a)) || (ve = m[F]), F === "prevYear" || F === "nextYear") {
53153
53153
  let $e = F === "prevYear" ? "prev" : "next";
53154
53154
  Ae = up(g[$e] || _[$e], [
53155
53155
  m.year || "year",
@@ -53160,7 +53160,7 @@ function bte(n, e, t, i, r, s) {
53160
53160
  m[$e] || $e,
53161
53161
  $e
53162
53162
  ], m[F]);
53163
- return { buttonName: F, buttonClick: Z, buttonIcon: Ee, buttonText: be, buttonHint: Ae };
53163
+ return { buttonName: F, buttonClick: Z, buttonIcon: Se, buttonText: ve, buttonHint: Ae };
53164
53164
  })), viewsWithButtons: C, hasTitle: D };
53165
53165
  }
53166
53166
  class _te {
@@ -53463,7 +53463,7 @@ class $te {
53463
53463
  this.data && this.data.dateProfileGenerator !== f.dateProfileGenerator && (_ = f.dateProfileGenerator.build(g)), g = XJ(g, e), _ = ste(_, e, g, f.dateProfileGenerator), (e.type === "PREV" || // TODO: move this logic into DateProfileGenerator
53464
53464
  e.type === "NEXT" || // "
53465
53465
  !Wa(_.currentRange, g)) && (g = _.currentRange.start);
53466
- let k = ate(i.eventSources, e, _, m), C = uQ(i.eventStore, e, k, _, m), z = rR(k) && !f.options.progressiveEventRendering && i.renderableEventStore || C, { eventUiSingleBase: O, selectionConfig: F } = this.buildViewUiProps(m), U = this.buildEventUiBySource(k), Q = this.buildEventUiBases(z.defs, O, U), Z = {
53466
+ let k = ate(i.eventSources, e, _, m), C = uQ(i.eventStore, e, k, _, m), z = rR(k) && !f.options.progressiveEventRendering && i.renderableEventStore || C, { eventUiSingleBase: O, selectionConfig: F } = this.buildViewUiProps(m), U = this.buildEventUiBySource(k), J = this.buildEventUiBases(z.defs, O, U), Z = {
53467
53467
  dynamicOptionOverrides: s,
53468
53468
  currentViewType: o,
53469
53469
  currentDate: g,
@@ -53472,17 +53472,17 @@ class $te {
53472
53472
  eventStore: C,
53473
53473
  renderableEventStore: z,
53474
53474
  selectionConfig: F,
53475
- eventUiBases: Q,
53475
+ eventUiBases: J,
53476
53476
  businessHours: this.parseContextBusinessHours(m),
53477
53477
  dateSelection: pte(i.dateSelection, e),
53478
53478
  eventSelection: mte(i.eventSelection, e),
53479
53479
  eventDrag: gte(i.eventDrag, e),
53480
53480
  eventResize: yte(i.eventResize, e)
53481
- }, Ee = Object.assign(Object.assign({}, m), Z);
53481
+ }, Se = Object.assign(Object.assign({}, m), Z);
53482
53482
  for (let $e of a.pluginHooks.reducers)
53483
- Object.assign(Z, $e(i, e, Ee));
53484
- let be = o_(i, m), Ae = o_(Z, m);
53485
- !be && Ae ? r.trigger("loading", !0) : be && !Ae && r.trigger("loading", !1), this.state = Z, t.onAction && t.onAction(e);
53483
+ Object.assign(Z, $e(i, e, Se));
53484
+ let ve = o_(i, m), Ae = o_(Z, m);
53485
+ !ve && Ae ? r.trigger("loading", !0) : ve && !Ae && r.trigger("loading", !1), this.state = Z, t.onAction && t.onAction(e);
53486
53486
  }
53487
53487
  updateData() {
53488
53488
  let { props: e, state: t } = this, i = this.data, r = this.computeOptionsData(e.optionOverrides, t.dynamicOptionOverrides, e.calendarApi), s = this.computeCurrentViewData(t.currentViewType, r, e.optionOverrides, t.dynamicOptionOverrides), a = this.data = Object.assign(Object.assign(Object.assign({ viewTitle: this.buildTitle(t.dateProfile, s.options, r.dateEnv), calendarApi: e.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, r), s), t), o = r.pluginHooks.optionChangeHandlers, f = i && i.calendarOptions, m = r.calendarOptions;
@@ -54284,8 +54284,8 @@ function vne(n, e, t, i, r, s, a) {
54284
54284
  o.allowReslicing = !0, o.strictOrder = i, e === !0 || t === !0 ? (o.maxCoord = s, o.hiddenConsumes = !0) : typeof e == "number" ? o.maxStackCnt = e : typeof t == "number" && (o.maxStackCnt = t, o.hiddenConsumes = !0);
54285
54285
  let f = [], m = [];
54286
54286
  for (let F = 0; F < n.length; F += 1) {
54287
- let U = n[F], Q = pR(U);
54288
- r[Q] != null ? f.push({
54287
+ let U = n[F], J = pR(U);
54288
+ r[J] != null ? f.push({
54289
54289
  index: F,
54290
54290
  span: {
54291
54291
  start: U.firstCol,
@@ -54314,15 +54314,15 @@ function vne(n, e, t, i, r, s, a) {
54314
54314
  for (let F = 0; F < a.length; F += 1)
54315
54315
  z.push(0);
54316
54316
  for (let F of g) {
54317
- let U = n[F.index], Q = F.span;
54318
- C[Q.start].push({
54319
- seg: Kd(U, Q.start, Q.end, a),
54317
+ let U = n[F.index], J = F.span;
54318
+ C[J.start].push({
54319
+ seg: Kd(U, J.start, J.end, a),
54320
54320
  isVisible: !1,
54321
54321
  isAbsolute: !0,
54322
54322
  absoluteTop: 0,
54323
54323
  marginTop: 0
54324
54324
  });
54325
- for (let Z = Q.start; Z < Q.end; Z += 1)
54325
+ for (let Z = J.start; Z < J.end; Z += 1)
54326
54326
  z[Z] += 1, k[Z].push({
54327
54327
  seg: Kd(U, Z, Z + 1, a),
54328
54328
  isVisible: !1,
@@ -54483,12 +54483,12 @@ class mR extends No {
54483
54483
  let { context: f } = this, { eventSelection: m } = this.props, { framePositions: g } = this.state, _ = this.props.cells.length === 1, k = s || a || o, C = [];
54484
54484
  if (g)
54485
54485
  for (let D of t) {
54486
- let { seg: z } = D, { instanceId: O } = z.eventRange.instance, F = D.isVisible && !r[O], U = D.isAbsolute, Q = "", Z = "";
54487
- U && (f.isRtl ? (Z = 0, Q = g.lefts[z.lastCol] - g.lefts[z.firstCol]) : (Q = 0, Z = g.rights[z.firstCol] - g.rights[z.lastCol])), C.push(de("div", { className: "fc-daygrid-event-harness" + (U ? " fc-daygrid-event-harness-abs" : ""), key: fR(z), ref: k ? null : this.segHarnessRefs.createRef(pR(z)), style: {
54486
+ let { seg: z } = D, { instanceId: O } = z.eventRange.instance, F = D.isVisible && !r[O], U = D.isAbsolute, J = "", Z = "";
54487
+ U && (f.isRtl ? (Z = 0, J = g.lefts[z.lastCol] - g.lefts[z.firstCol]) : (J = 0, Z = g.rights[z.firstCol] - g.rights[z.lastCol])), C.push(de("div", { className: "fc-daygrid-event-harness" + (U ? " fc-daygrid-event-harness-abs" : ""), key: fR(z), ref: k ? null : this.segHarnessRefs.createRef(pR(z)), style: {
54488
54488
  visibility: F ? "" : "hidden",
54489
54489
  marginTop: U ? "" : D.marginTop,
54490
54490
  top: U ? D.absoluteTop : "",
54491
- left: Q,
54491
+ left: J,
54492
54492
  right: Z
54493
54493
  } }, uR(z) ? de(hR, Object.assign({ seg: z, isDragging: s, isSelected: O === m, defaultDisplayEventEnd: _ }, qa(z, i))) : de(dR, Object.assign({ seg: z, isDragging: s, isResizing: a, isDateSelecting: o, isSelected: O === m, defaultDisplayEventEnd: _ }, qa(z, i)))));
54494
54494
  }
@@ -55424,17 +55424,17 @@ class rie extends Un {
55424
55424
  return o.forPrint ? bR(e, o) : this.renderPositionedFgSegs(e, t, i, r, s, a);
55425
55425
  }
55426
55426
  renderPositionedFgSegs(e, t, i, r, s, a) {
55427
- let { eventMaxStack: o, eventShortHeight: f, eventOrderStrict: m, eventMinHeight: g } = this.context.options, { date: _, slatCoords: k, eventSelection: C, todayRange: D, nowDate: z } = this.props, O = i || r || s, F = Q2(e, _, k, g), { segPlacements: U, hiddenGroups: Q } = nie(e, F, m, o);
55427
+ let { eventMaxStack: o, eventShortHeight: f, eventOrderStrict: m, eventMinHeight: g } = this.context.options, { date: _, slatCoords: k, eventSelection: C, todayRange: D, nowDate: z } = this.props, O = i || r || s, F = Q2(e, _, k, g), { segPlacements: U, hiddenGroups: J } = nie(e, F, m, o);
55428
55428
  return de(
55429
55429
  fi,
55430
55430
  null,
55431
- this.renderHiddenGroups(Q, e),
55431
+ this.renderHiddenGroups(J, e),
55432
55432
  U.map((Z) => {
55433
- let { seg: Ee, rect: be } = Z, Ae = Ee.eventRange.instance.instanceId, $e = O || !!(!t[Ae] && be), Oe = a_(be && be.span), ft = !O && be ? this.computeSegHStyle(be) : { left: 0, right: 0 }, ot = !!be && be.stackForward > 0, me = !!be && be.span.end - be.span.start < f;
55433
+ let { seg: Se, rect: ve } = Z, Ae = Se.eventRange.instance.instanceId, $e = O || !!(!t[Ae] && ve), Oe = a_(ve && ve.span), ft = !O && ve ? this.computeSegHStyle(ve) : { left: 0, right: 0 }, ot = !!ve && ve.stackForward > 0, me = !!ve && ve.span.end - ve.span.start < f;
55434
55434
  return de(
55435
55435
  "div",
55436
55436
  { className: "fc-timegrid-event-harness" + (ot ? " fc-timegrid-event-harness-inset" : ""), key: a || Ae, style: Object.assign(Object.assign({ visibility: $e ? "" : "hidden" }, Oe), ft) },
55437
- de(vR, Object.assign({ seg: Ee, isDragging: i, isResizing: r, isDateSelecting: s, isSelected: Ae === C, isShort: me }, qa(Ee, D, z)))
55437
+ de(vR, Object.assign({ seg: Se, isDragging: i, isResizing: r, isDateSelecting: s, isSelected: Ae === C, isShort: me }, qa(Se, D, z)))
55438
55438
  );
55439
55439
  })
55440
55440
  );
@@ -55609,10 +55609,10 @@ class lie extends No {
55609
55609
  queryHit(e, t) {
55610
55610
  let { dateEnv: i, options: r } = this.context, { colCoords: s } = this, { dateProfile: a } = this.props, { slatCoords: o } = this.state, { snapDuration: f, snapsPerSlot: m } = this.processSlotOptions(this.props.slotDuration, r.snapDuration), g = s.leftToIndex(e), _ = o.positions.topToIndex(t);
55611
55611
  if (g != null && _ != null) {
55612
- let k = this.props.cells[g], C = o.positions.tops[_], D = o.positions.getHeight(_), z = (t - C) / D, O = Math.floor(z * m), F = _ * m + O, U = this.props.cells[g].date, Q = fx(a.slotMinTime, YK(f, F)), Z = i.add(U, Q), Ee = i.add(Z, f);
55612
+ let k = this.props.cells[g], C = o.positions.tops[_], D = o.positions.getHeight(_), z = (t - C) / D, O = Math.floor(z * m), F = _ * m + O, U = this.props.cells[g].date, J = fx(a.slotMinTime, YK(f, F)), Z = i.add(U, J), Se = i.add(Z, f);
55613
55613
  return {
55614
55614
  dateProfile: a,
55615
- dateSpan: Object.assign({ range: { start: Z, end: Ee }, allDay: !1 }, k.extraDateSpan),
55615
+ dateSpan: Object.assign({ range: { start: Z, end: Se }, allDay: !1 }, k.extraDateSpan),
55616
55616
  dayEl: s.els[g],
55617
55617
  rect: {
55618
55618
  left: s.lefts[g],
@@ -56604,10 +56604,10 @@ class Qp extends wh {
56604
56604
  // the pre-change data
56605
56605
  });
56606
56606
  }
56607
- }, Q = {};
56607
+ }, J = {};
56608
56608
  for (let Z of o.getCurrentData().pluginHooks.eventDropTransformers)
56609
- Object.assign(Q, Z(g, o));
56610
- o.emitter.trigger("eventDrop", Object.assign(Object.assign(Object.assign({}, U), Q), { el: a.subjectEl, delta: g.datesDelta, jsEvent: a.origEvent, view: f })), o.emitter.trigger("eventChange", U);
56609
+ Object.assign(J, Z(g, o));
56610
+ o.emitter.trigger("eventDrop", Object.assign(Object.assign(Object.assign({}, U), J), { el: a.subjectEl, delta: g.datesDelta, jsEvent: a.origEvent, view: f })), o.emitter.trigger("eventChange", U);
56611
56611
  } else if (m) {
56612
56612
  let F = {
56613
56613
  event: C,
@@ -56623,14 +56623,14 @@ class Qp extends wh {
56623
56623
  type: "REMOVE_EVENTS",
56624
56624
  eventStore: D
56625
56625
  }), o.emitter.trigger("eventRemove", F);
56626
- let U = z.defs[_.defId], Q = z.instances[k.instanceId], Z = new Ei(m, U, Q);
56626
+ let U = z.defs[_.defId], J = z.instances[k.instanceId], Z = new Ei(m, U, J);
56627
56627
  m.dispatch({
56628
56628
  type: "MERGE_EVENTS",
56629
56629
  eventStore: z
56630
56630
  });
56631
- let Ee = {
56631
+ let Se = {
56632
56632
  event: Z,
56633
- relatedEvents: hu(z, m, Q),
56633
+ relatedEvents: hu(z, m, J),
56634
56634
  revert() {
56635
56635
  m.dispatch({
56636
56636
  type: "REMOVE_EVENTS",
@@ -56638,10 +56638,10 @@ class Qp extends wh {
56638
56638
  });
56639
56639
  }
56640
56640
  };
56641
- m.emitter.trigger("eventAdd", Ee), a.isTouch && m.dispatch({
56641
+ m.emitter.trigger("eventAdd", Se), a.isTouch && m.dispatch({
56642
56642
  type: "SELECT_EVENT",
56643
56643
  eventInstanceId: k.instanceId
56644
- }), m.emitter.trigger("drop", Object.assign(Object.assign({}, kR(O.dateSpan, m)), { draggedEl: a.subjectEl, jsEvent: a.origEvent, view: O.context.viewApi })), m.emitter.trigger("eventReceive", Object.assign(Object.assign({}, Ee), { draggedEl: a.subjectEl, view: O.context.viewApi }));
56644
+ }), m.emitter.trigger("drop", Object.assign(Object.assign({}, kR(O.dateSpan, m)), { draggedEl: a.subjectEl, jsEvent: a.origEvent, view: O.context.viewApi })), m.emitter.trigger("eventReceive", Object.assign(Object.assign({}, Se), { draggedEl: a.subjectEl, view: O.context.viewApi }));
56645
56645
  }
56646
56646
  } else
56647
56647
  o.emitter.trigger("_noEventDrop");
@@ -58266,7 +58266,7 @@ const Xse = /* @__PURE__ */ mt(Gse, [["render", Zse]]), Kse = { class: "h-[76px]
58266
58266
  return `/edit?table=${t.getRoute}&id=${(O = r == null ? void 0 : r.params) == null ? void 0 : O.id}`;
58267
58267
  }
58268
58268
  ), m = () => {
58269
- var O, F, U, Q;
58269
+ var O, F, U, J;
58270
58270
  if (!((O = t.slots) != null && O.panelLeft)) return "div";
58271
58271
  if ((F = t.slots) != null && F.panelLeft.includes("<")) {
58272
58272
  const Z = e("PanelLeft", (U = t.slots) == null ? void 0 : U.panelLeft, [
@@ -58274,9 +58274,9 @@ const Xse = /* @__PURE__ */ mt(Gse, [["render", Zse]]), Kse = { class: "h-[76px]
58274
58274
  ]);
58275
58275
  a.value = Z;
58276
58276
  } else
58277
- a.value = (Q = t.slots) == null ? void 0 : Q.panelLeft;
58277
+ a.value = (J = t.slots) == null ? void 0 : J.panelLeft;
58278
58278
  }, g = () => {
58279
- var O, F, U, Q;
58279
+ var O, F, U, J;
58280
58280
  if (!((O = t.slots) != null && O.panelRight)) return "div";
58281
58281
  if ((F = t.slots) != null && F.panelRight.includes("<")) {
58282
58282
  const Z = e("PanelRight", (U = t.slots) == null ? void 0 : U.panelRight, [
@@ -58284,7 +58284,7 @@ const Xse = /* @__PURE__ */ mt(Gse, [["render", Zse]]), Kse = { class: "h-[76px]
58284
58284
  ]);
58285
58285
  s.value = Z;
58286
58286
  } else
58287
- s.value = (Q = t.slots) == null ? void 0 : Q.panelRight;
58287
+ s.value = (J = t.slots) == null ? void 0 : J.panelRight;
58288
58288
  };
58289
58289
  return m(), g(), (O, F) => {
58290
58290
  const U = We("router-link");
@@ -58595,38 +58595,38 @@ function Noe(n, e, t, i, r, s) {
58595
58595
  key: U,
58596
58596
  class: an(["col-span-12 shrink-0", s.columnClass(F.col)])
58597
58597
  }, [
58598
- (K(!0), ie(At, null, en(F.items, (Q, Z) => {
58599
- var Ee, be, Ae, $e, Oe, ft, ot, me, ct, zt, Yt, Qt, jt, Jt;
58598
+ (K(!0), ie(At, null, en(F.items, (J, Z) => {
58599
+ var Se, ve, Ae, $e, Oe, ft, ot, me, ct, zt, Yt, Qt, jt, Jt;
58600
58600
  return K(), ie("div", {
58601
58601
  key: Z,
58602
58602
  class: an([{ "mb-[20px]": F.items.length > 1 }, "bg-white border rounded-xl"])
58603
58603
  }, [
58604
- Q != null && Q.title ? (K(), ie("h2", poe, Ue((Q == null ? void 0 : Q.title) || "Панель"), 1)) : wt("", !0),
58605
- Q != null && Q.component ? (K(), ie("div", {
58604
+ J != null && J.title ? (K(), ie("h2", poe, Ue((J == null ? void 0 : J.title) || "Панель"), 1)) : wt("", !0),
58605
+ J != null && J.component ? (K(), ie("div", {
58606
58606
  key: 1,
58607
- class: an(["p-[20px]", { "border-t": Q == null ? void 0 : Q.title }])
58607
+ class: an(["p-[20px]", { "border-t": J == null ? void 0 : J.title }])
58608
58608
  }, [
58609
- (K(), Ot(Ls(Q.component), Uf({
58610
- geometry: (be = (Ee = r.objectData) == null ? void 0 : Ee.rows[0]) == null ? void 0 : be.geom,
58611
- columns: Q == null ? void 0 : Q.columns,
58612
- token: ($e = (Ae = r.objectData) == null ? void 0 : Ae.tokens) == null ? void 0 : $e[Q == null ? void 0 : Q.token],
58609
+ (K(), Ot(Ls(J.component), Uf({
58610
+ geometry: (ve = (Se = r.objectData) == null ? void 0 : Se.rows[0]) == null ? void 0 : ve.geom,
58611
+ columns: J == null ? void 0 : J.columns,
58612
+ token: ($e = (Ae = r.objectData) == null ? void 0 : Ae.tokens) == null ? void 0 : $e[J == null ? void 0 : J.token],
58613
58613
  zoom: 16,
58614
58614
  ref_for: !0
58615
- }, s.getProps(Q), {
58615
+ }, s.getProps(J), {
58616
58616
  data: r.objectData,
58617
58617
  id: (ft = (Oe = n.$route) == null ? void 0 : Oe.params) == null ? void 0 : ft.id
58618
58618
  }), null, 16, ["geometry", "columns", "token", "data", "id"]))
58619
58619
  ], 2)) : wt("", !0),
58620
- Q != null && Q.name ? (K(), ie("div", {
58620
+ J != null && J.name ? (K(), ie("div", {
58621
58621
  key: 2,
58622
- class: an(["p-[20px]", { "border-t": Q == null ? void 0 : Q.title }])
58622
+ class: an(["p-[20px]", { "border-t": J == null ? void 0 : J.title }])
58623
58623
  }, [
58624
- (me = (ot = r.objectData) == null ? void 0 : ot.html) != null && me[Q == null ? void 0 : Q.name] ? (K(), ie("div", {
58624
+ (me = (ot = r.objectData) == null ? void 0 : ot.html) != null && me[J == null ? void 0 : J.name] ? (K(), ie("div", {
58625
58625
  key: 0,
58626
- innerHTML: (zt = (ct = r.objectData) == null ? void 0 : ct.html) == null ? void 0 : zt[Q == null ? void 0 : Q.name]
58626
+ innerHTML: (zt = (ct = r.objectData) == null ? void 0 : ct.html) == null ? void 0 : zt[J == null ? void 0 : J.name]
58627
58627
  }, null, 8, moe)) : (K(), Ot(o, {
58628
58628
  key: 1,
58629
- slot: (Qt = (Yt = r.objectData) == null ? void 0 : Yt.vue) == null ? void 0 : Qt[Q == null ? void 0 : Q.name],
58629
+ slot: (Qt = (Yt = r.objectData) == null ? void 0 : Yt.vue) == null ? void 0 : Qt[J == null ? void 0 : J.name],
58630
58630
  data: (Jt = (jt = r.objectData) == null ? void 0 : jt.rows) == null ? void 0 : Jt[0],
58631
58631
  objectData: r.objectData
58632
58632
  }, null, 8, ["slot", "data", "objectData"]))
@@ -58640,21 +58640,21 @@ function Noe(n, e, t, i, r, s) {
58640
58640
  (K(!0), ie(At, null, en((O = (z = r.objectData) == null ? void 0 : z.panels) == null ? void 0 : O.filter(
58641
58641
  (F) => (F == null ? void 0 : F.type) !== "pin"
58642
58642
  ), (F, U) => {
58643
- var Q, Z, Ee, be, Ae, $e, Oe, ft, ot;
58643
+ var J, Z, Se, ve, Ae, $e, Oe, ft, ot;
58644
58644
  return K(), ie("div", {
58645
58645
  key: U,
58646
58646
  class: an(["col-span-12", s.getColClass(F.col)])
58647
58647
  }, [
58648
58648
  F != null && F.name ? (K(), ie("div", goe, [
58649
58649
  L("h2", yoe, Ue((F == null ? void 0 : F.title) || "Панель"), 1),
58650
- (Q = r.objectData) != null && Q.html[F == null ? void 0 : F.name] ? (K(), ie("div", {
58650
+ (J = r.objectData) != null && J.html[F == null ? void 0 : F.name] ? (K(), ie("div", {
58651
58651
  key: 0,
58652
58652
  class: "p-[20px] border-t",
58653
58653
  innerHTML: (Z = r.objectData) == null ? void 0 : Z.html[F == null ? void 0 : F.name]
58654
58654
  }, null, 8, voe)) : (K(), Ot(o, {
58655
58655
  key: 1,
58656
- slot: (Ee = r.objectData) == null ? void 0 : Ee.vue[F == null ? void 0 : F.name],
58657
- data: (Ae = (be = r.objectData) == null ? void 0 : be.rows) == null ? void 0 : Ae[0],
58656
+ slot: (Se = r.objectData) == null ? void 0 : Se.vue[F == null ? void 0 : F.name],
58657
+ data: (Ae = (ve = r.objectData) == null ? void 0 : ve.rows) == null ? void 0 : Ae[0],
58658
58658
  objectData: r.objectData
58659
58659
  }, null, 8, ["slot", "data", "objectData"]))
58660
58660
  ])) : F.type === "container" ? (K(), ie("div", boe, [
@@ -58995,8 +58995,11 @@ const w1 = /* @__PURE__ */ mt(doe, [["render", Noe], ["__scopeId", "data-v-33219
58995
58995
  type: "radio",
58996
58996
  ua: "Тип колонки",
58997
58997
  view: "buttons",
58998
+ style: {
58999
+ class: "!w-[calc(50%-5px)]"
59000
+ },
58998
59001
  slots: {
58999
- label: '<div class="flex w-[450px] items-center gap-4"><img class="block" height="24" width="30" :src="`https://cdn.softpro.ua/data/npm/admin/column-types/icon-${id}.svg`"/><div class="flex flex-col items-start gap-1"><span class="text-black text-[14px]">{{text}}</span><span class="text-[12px]">{{description}}</span></div></div>'
59002
+ label: '<div class="flex items-center justify-start w-full gap-4"><img class="block" height="24" width="30" :src="`https://cdn.softpro.ua/data/npm/admin/column-types/icon-${id}.svg`"/><div class="flex flex-col items-start gap-1"><span class="text-black text-[14px]">{{text}}</span><span class="text-[12px]">{{description}}</span></div></div>'
59000
59003
  },
59001
59004
  options: [
59002
59005
  {
@@ -59412,8 +59415,8 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59412
59415
  try {
59413
59416
  const U = document.createElement("textarea");
59414
59417
  U.value = F, document.body.appendChild(U), U.select(), U.setSelectionRange(0, F.length);
59415
- const Q = document.execCommand("copy");
59416
- document.body.removeChild(U), t(Q ? {
59418
+ const J = document.execCommand("copy");
59419
+ document.body.removeChild(U), t(J ? {
59417
59420
  type: "success",
59418
59421
  title: "Успішно!",
59419
59422
  message: "Ключ успішно скопійовано"
@@ -59481,8 +59484,8 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59481
59484
  }
59482
59485
  };
59483
59486
  return (O, F) => {
59484
- var be;
59485
- const U = We("VsTiptapEditor"), Q = We("VsPopover"), Z = We("VsForm"), Ee = We("VsDialog");
59487
+ var ve;
59488
+ const U = We("VsTiptapEditor"), J = We("VsPopover"), Z = We("VsForm"), Se = We("VsDialog");
59486
59489
  return K(), ie(At, null, [
59487
59490
  L("div", Aae, [
59488
59491
  L("div", Mae, [
@@ -59505,14 +59508,14 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59505
59508
  L("div", Iae, [
59506
59509
  F[6] || (F[6] = L("h2", { class: "block font-semibold mb-[20px] text-gray-800 truncate dark:text-neutral-200" }, " Список колонок ", -1)),
59507
59510
  L("dl", Pae, [
59508
- (K(!0), ie(At, null, en((be = n.templateData) == null ? void 0 : be.columns, (Ae) => (K(), ie("div", {
59511
+ (K(!0), ie(At, null, en((ve = n.templateData) == null ? void 0 : ve.columns, (Ae) => (K(), ie("div", {
59509
59512
  key: Ae == null ? void 0 : Ae.name,
59510
59513
  class: "flex items-center justify-between w-full"
59511
59514
  }, [
59512
59515
  L("dt", Rae, Ue(Ae == null ? void 0 : Ae.title) + ": ", 1),
59513
59516
  L("dd", Oae, [
59514
59517
  or(Ue(Ae == null ? void 0 : Ae.name) + " ", 1),
59515
- je(Q, {
59518
+ je(J, {
59516
59519
  trigger: "hover",
59517
59520
  placement: "left"
59518
59521
  }, {
@@ -59534,7 +59537,7 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59534
59537
  ])
59535
59538
  ])
59536
59539
  ]),
59537
- je(Ee, {
59540
+ je(Se, {
59538
59541
  visible: m.value,
59539
59542
  "onUpdate:visible": F[4] || (F[4] = (Ae) => m.value = Ae),
59540
59543
  title: "Створти шаблон"
@@ -59587,7 +59590,7 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59587
59590
  }), i = n, r = vt(null), s = vt(null), a = vt(""), o = vt([]), f = vt(null), m = vt([]), g = async (U = null) => {
59588
59591
  r.value = null;
59589
59592
  try {
59590
- const { data: Q } = await st.get(
59593
+ const { data: J } = await st.get(
59591
59594
  `/api/table-data/${i.templateData.alias}`,
59592
59595
  {
59593
59596
  params: {
@@ -59596,7 +59599,7 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59596
59599
  }
59597
59600
  }
59598
59601
  );
59599
- r.value = Q;
59602
+ r.value = J;
59600
59603
  } catch {
59601
59604
  }
59602
59605
  }, _ = async () => {
@@ -59604,31 +59607,31 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59604
59607
  const {
59605
59608
  data: { list: U }
59606
59609
  } = await st.get(`/api/table-filter/${i.templateData.alias}`);
59607
- s.value = U == null ? void 0 : U.map((Q) => ({
59608
- ...Q,
59609
- label: (Q == null ? void 0 : Q.label) || (Q == null ? void 0 : Q.ua)
59610
+ s.value = U == null ? void 0 : U.map((J) => ({
59611
+ ...J,
59612
+ label: (J == null ? void 0 : J.label) || (J == null ? void 0 : J.ua)
59610
59613
  }));
59611
59614
  } catch {
59612
59615
  }
59613
59616
  }, k = ({ url: U }) => {
59614
59617
  U === "no-url" ? f.value = null : f.value = U;
59615
59618
  }, C = ({ target: U }) => {
59616
- var Q, Z;
59619
+ var J, Z;
59617
59620
  if (U.checked) {
59618
- const Ee = (Q = r.value.rows) == null ? void 0 : Q.find((be) => (be == null ? void 0 : be.id) == U.value);
59619
- o.value = [...o.value, Ee];
59621
+ const Se = (J = r.value.rows) == null ? void 0 : J.find((ve) => (ve == null ? void 0 : ve.id) == U.value);
59622
+ o.value = [...o.value, Se];
59620
59623
  } else
59621
- o.value = (Z = o.value) == null ? void 0 : Z.filter((Ee) => (Ee == null ? void 0 : Ee.id) != (U == null ? void 0 : U.value));
59624
+ o.value = (Z = o.value) == null ? void 0 : Z.filter((Se) => (Se == null ? void 0 : Se.id) != (U == null ? void 0 : U.value));
59622
59625
  }, D = () => {
59623
59626
  var U;
59624
- (U = r.value.rows) == null || U.forEach((Q) => {
59627
+ (U = r.value.rows) == null || U.forEach((J) => {
59625
59628
  var Z;
59626
- (Z = m.value) != null && Z.includes(Q == null ? void 0 : Q.id) || (m.value = [...m.value, Q == null ? void 0 : Q.id], o.value = [...o.value, Q]);
59629
+ (Z = m.value) != null && Z.includes(J == null ? void 0 : J.id) || (m.value = [...m.value, J == null ? void 0 : J.id], o.value = [...o.value, J]);
59627
59630
  });
59628
59631
  }, z = () => {
59629
- var Q, Z;
59630
- const U = (Q = o.value) == null ? void 0 : Q.map((Ee) => Ee == null ? void 0 : Ee.id);
59631
- m.value = (Z = m.value) == null ? void 0 : Z.filter((Ee) => !(U != null && U.includes(Ee))), o.value = [];
59632
+ var J, Z;
59633
+ const U = (J = o.value) == null ? void 0 : J.map((Se) => Se == null ? void 0 : Se.id);
59634
+ m.value = (Z = m.value) == null ? void 0 : Z.filter((Se) => !(U != null && U.includes(Se))), o.value = [];
59632
59635
  }, O = async () => {
59633
59636
  if (m.value.length === 0)
59634
59637
  return;
@@ -59637,9 +59640,9 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59637
59640
  }, F = IR(g, 300);
59638
59641
  return Ro(f, () => g()), aa(async () => {
59639
59642
  await g(), await _();
59640
- }), (U, Q) => {
59641
- var be, Ae, $e;
59642
- const Z = We("VsFilterList"), Ee = We("VsPopover");
59643
+ }), (U, J) => {
59644
+ var ve, Ae, $e;
59645
+ const Z = We("VsFilterList"), Se = We("VsPopover");
59643
59646
  return K(), ie("div", Bae, [
59644
59647
  L("div", Fae, [
59645
59648
  L("div", $ae, [
@@ -59647,7 +59650,7 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59647
59650
  type: "text",
59648
59651
  class: "w-[200px] h-[38px] px-[10px] placeholder:text-[14px] placeholder:text-gray-600 rounded-lg bg-gray-100 focus:outline-blue-500",
59649
59652
  placeholder: "Пошук...",
59650
- onInput: Q[0] || (Q[0] = ({ target: Oe }) => Eo(F)(Oe.value))
59653
+ onInput: J[0] || (J[0] = ({ target: Oe }) => Eo(F)(Oe.value))
59651
59654
  }, null, 32),
59652
59655
  s.value ? (K(), Ot(Z, {
59653
59656
  key: 0,
@@ -59671,13 +59674,13 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59671
59674
  L("div", Hae, [
59672
59675
  L("div", Uae, [
59673
59676
  L("div", Wae, [
59674
- L("span", qae, " Знайдено " + Ue((be = r.value) == null ? void 0 : be.filtered), 1),
59677
+ L("span", qae, " Знайдено " + Ue((ve = r.value) == null ? void 0 : ve.filtered), 1),
59675
59678
  L("button", {
59676
59679
  onClick: D,
59677
59680
  class: "relative py-1 ps-1.5 pe-7 inline-flex shrink-0 justify-center items-center gap-x-1.5 border border-transparent text-sm text-gray-500 rounded-lg underline-offset-4 hover:underline hover:text-gray-600 focus:outline-none focus:underline focus:text-gray-600"
59678
59681
  }, " Обрати всі ")
59679
59682
  ]),
59680
- (Ae = o.value) != null && Ae.length ? (K(), Ot(Ee, {
59683
+ (Ae = o.value) != null && Ae.length ? (K(), Ot(Se, {
59681
59684
  key: 0,
59682
59685
  placement: "bottom"
59683
59686
  }, {
@@ -59707,7 +59710,7 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59707
59710
  type: "checkbox",
59708
59711
  class: "hidden",
59709
59712
  onChange: C,
59710
- "onUpdate:modelValue": Q[1] || (Q[1] = (me) => m.value = me),
59713
+ "onUpdate:modelValue": J[1] || (J[1] = (me) => m.value = me),
59711
59714
  value: Oe == null ? void 0 : Oe.id
59712
59715
  }, null, 40, Kae), [
59713
59716
  [mu, m.value]
@@ -59749,7 +59752,7 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59749
59752
  type: "checkbox",
59750
59753
  class: "hidden",
59751
59754
  onChange: C,
59752
- "onUpdate:modelValue": Q[2] || (Q[2] = (me) => m.value = me),
59755
+ "onUpdate:modelValue": J[2] || (J[2] = (me) => m.value = me),
59753
59756
  value: Oe == null ? void 0 : Oe.id
59754
59757
  }, null, 40, ele), [
59755
59758
  [mu, m.value]
@@ -59926,14 +59929,14 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
59926
59929
  ]),
59927
59930
  (F = f.value) != null && F.length ? (K(), ie("ul", ple, [
59928
59931
  (K(!0), ie(At, null, en(f.value, (U) => {
59929
- var Q, Z;
59932
+ var J, Z;
59930
59933
  return K(), ie("li", {
59931
59934
  key: U == null ? void 0 : U.name,
59932
59935
  "data-index": _.index,
59933
59936
  class: "w-full"
59934
59937
  }, [
59935
59938
  je(D, {
59936
- class: an(["flex items-center gap-x-2.5 py-1.5 px-2 text-[13px] text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none", { "bg-gray-100": ((Z = (Q = _.$route) == null ? void 0 : Q.query) == null ? void 0 : Z.name) === (U == null ? void 0 : U.name) }]),
59939
+ class: an(["flex items-center gap-x-2.5 py-1.5 px-2 text-[13px] text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none", { "bg-gray-100": ((Z = (J = _.$route) == null ? void 0 : J.query) == null ? void 0 : Z.name) === (U == null ? void 0 : U.name) }]),
59937
59940
  to: vle + "?name=" + (U == null ? void 0 : U.name)
59938
59941
  }, {
59939
59942
  default: Ft(() => [
@@ -60104,7 +60107,7 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
60104
60107
  return Ro(f, () => {
60105
60108
  o.value = !1, setTimeout(() => o.value = !0), s.value = null, a.value = null;
60106
60109
  }), (C, D) => {
60107
- var F, U, Q;
60110
+ var F, U, J;
60108
60111
  const z = We("VsText"), O = We("VsFilterList");
60109
60112
  return K(), ie("div", Dle, [
60110
60113
  D[0] || (D[0] = L("div", { class: "mb-4 xl:mb-8" }, [
@@ -60161,11 +60164,11 @@ const Tae = /* @__PURE__ */ mt(kae, [["render", Cae]]), Aae = { class: "h-full w
60161
60164
  ])
60162
60165
  ]),
60163
60166
  L("tbody", Ule, [
60164
- (K(!0), ie(At, null, en((Q = r.value) == null ? void 0 : Q.rows, (Z) => {
60165
- var Ee;
60167
+ (K(!0), ie(At, null, en((J = r.value) == null ? void 0 : J.rows, (Z) => {
60168
+ var Se;
60166
60169
  return K(), ie("tr", null, [
60167
- (K(!0), ie(At, null, en((Ee = r.value) == null ? void 0 : Ee.columns, (be) => (K(), ie("td", Wle, [
60168
- L("span", qle, Ue((Z == null ? void 0 : Z[be == null ? void 0 : be.name]) || "-"), 1)
60170
+ (K(!0), ie(At, null, en((Se = r.value) == null ? void 0 : Se.columns, (ve) => (K(), ie("td", Wle, [
60171
+ L("span", qle, Ue((Z == null ? void 0 : Z[ve == null ? void 0 : ve.name]) || "-"), 1)
60169
60172
  ]))), 256))
60170
60173
  ]);
60171
60174
  }), 256))
@@ -60462,17 +60465,17 @@ function mce(n) {
60462
60465
  const e = typeof n;
60463
60466
  return e === "object" ? n : { title: "Підтвердити операцію", text: e === "string" ? n : "Ви впевнені що хочете виконати операцію?", cancel: "Скасувати", confirm: "Виконати" };
60464
60467
  }
60465
- const gce = ({ api: n, confirm: e, method: t, isId: i, id: r }) => new Promise((s) => {
60466
- var _, k, C, D;
60467
- const { VsDialog: a } = (k = (_ = window.app) == null ? void 0 : _._context) == null ? void 0 : k.components, { $notify: o } = (D = (C = window.app) == null ? void 0 : C.config) == null ? void 0 : D.globalProperties, f = document.querySelector("#modal");
60468
- if (!f) {
60468
+ const gce = ({ api: n, confirm: e, method: t, isId: i, id: r, redirect: s }) => new Promise((a) => {
60469
+ var k, C, D, z;
60470
+ const { VsDialog: o } = (C = (k = window.app) == null ? void 0 : k._context) == null ? void 0 : C.components, { $notify: f } = (z = (D = window.app) == null ? void 0 : D.config) == null ? void 0 : z.globalProperties, m = document.querySelector("#modal");
60471
+ if (!m) {
60469
60472
  console.error('Modal root element with id "#modal" not found!');
60470
60473
  return;
60471
60474
  }
60472
- const m = document.createElement("div");
60473
- f.appendChild(m);
60474
- const g = Mx({
60475
- components: { VsDialog: a },
60475
+ const g = document.createElement("div");
60476
+ m.appendChild(g);
60477
+ const _ = Mx({
60478
+ components: { VsDialog: o },
60476
60479
  data() {
60477
60480
  return {
60478
60481
  visible: !1,
@@ -60480,26 +60483,26 @@ const gce = ({ api: n, confirm: e, method: t, isId: i, id: r }) => new Promise((
60480
60483
  };
60481
60484
  },
60482
60485
  methods: {
60483
- close(z) {
60484
- this.visible = !1, this.$el.remove(), g.unmount(), s(z || "Success");
60486
+ close(O) {
60487
+ this.visible = !1, this.$el.remove(), _.unmount(), a(O || "Success");
60485
60488
  },
60486
60489
  async doRequest() {
60487
- var z;
60490
+ var O, F, U, J, Z, Se;
60488
60491
  try {
60489
- const { data: O } = await st({
60492
+ const { data: ve } = await st({
60490
60493
  url: n + (i ? `/${r}` : ""),
60491
60494
  method: t || "POST"
60492
60495
  });
60493
- this.close(O), await o({
60496
+ this.close(ve), await f({
60494
60497
  title: "Успішно!",
60495
60498
  type: "success",
60496
60499
  message: "Операція виконана успішно"
60497
- }), await Gy();
60498
- } catch (O) {
60499
- o({
60500
+ }), s && ((Z = (J = (U = (F = (O = window.app) == null ? void 0 : O._context) == null ? void 0 : F.config) == null ? void 0 : U.globalProperties) == null ? void 0 : J.$router) == null || Z.back()), await Gy();
60501
+ } catch (ve) {
60502
+ f({
60500
60503
  title: "Помилка!",
60501
60504
  type: "error",
60502
- message: ((z = O == null ? void 0 : O.response) == null ? void 0 : z.data) || "Сталася помилка"
60505
+ message: ((Se = ve == null ? void 0 : ve.response) == null ? void 0 : Se.data) || "Сталася помилка"
60503
60506
  });
60504
60507
  }
60505
60508
  }
@@ -60536,7 +60539,7 @@ const gce = ({ api: n, confirm: e, method: t, isId: i, id: r }) => new Promise((
60536
60539
  </div>
60537
60540
  `
60538
60541
  });
60539
- g.mount(m);
60542
+ _.mount(g);
60540
60543
  }), yce = ({ title: n, geom: e, zoom: t, height: i }) => {
60541
60544
  var f, m;
60542
60545
  const { VsDialog: r } = (m = (f = window.app) == null ? void 0 : f._context) == null ? void 0 : m.components, s = document.querySelector("#app");