@opengis/admin 0.3.6 → 0.3.8

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 Uy(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 ? ak([z], Z, s) : a === null ? z : z + "[]",
335
- m(Q)
335
+ m(J)
336
336
  );
337
337
  }), !1;
338
338
  }
@@ -1016,13 +1016,13 @@ const CT = (n) => {
1016
1016
  function F() {
1017
1017
  if (!O)
1018
1018
  return;
1019
- const Q = ms.from(
1019
+ const J = ms.from(
1020
1020
  "getAllResponseHeaders" in O && O.getAllResponseHeaders()
1021
- ), Ee = {
1021
+ ), Se = {
1022
1022
  data: !o || o === "text" || o === "json" ? O.responseText : O.response,
1023
1023
  status: O.status,
1024
1024
  statusText: O.statusText,
1025
- headers: Q,
1025
+ headers: J,
1026
1026
  config: n,
1027
1027
  request: O
1028
1028
  };
@@ -1030,7 +1030,7 @@ const CT = (n) => {
1030
1030
  t(Ae), z();
1031
1031
  }, function(Ae) {
1032
1032
  i(Ae), z();
1033
- }, Ee), O = null;
1033
+ }, Se), O = null;
1034
1034
  }
1035
1035
  "onloadend" in O ? O.onloadend = F : O.onreadystatechange = function() {
1036
1036
  !O || O.readyState !== 4 || O.status === 0 && !(O.responseURL && O.responseURL.indexOf("file:") === 0) || setTimeout(F);
@@ -1040,17 +1040,17 @@ const CT = (n) => {
1040
1040
  i(new dn("Network Error", dn.ERR_NETWORK, n, O)), O = null;
1041
1041
  }, O.ontimeout = function() {
1042
1042
  let Z = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
1043
- const Ee = r.transitional || xT;
1043
+ const Se = r.transitional || xT;
1044
1044
  r.timeoutErrorMessage && (Z = r.timeoutErrorMessage), i(new dn(
1045
1045
  Z,
1046
- Ee.clarifyTimeoutError ? dn.ETIMEDOUT : dn.ECONNABORTED,
1046
+ Se.clarifyTimeoutError ? dn.ETIMEDOUT : dn.ECONNABORTED,
1047
1047
  n,
1048
1048
  O
1049
1049
  )), O = null;
1050
- }, s === void 0 && a.setContentType(null), "setRequestHeader" in O && Le.forEach(a.toJSON(), function(Z, Ee) {
1051
- O.setRequestHeader(Ee, Z);
1052
- }), Le.isUndefined(r.withCredentials) || (O.withCredentials = !!r.withCredentials), o && o !== "json" && (O.responseType = r.responseType), m && ([S, D] = Xg(m, !0), O.addEventListener("progress", S)), f && O.upload && ([_, C] = Xg(f), O.upload.addEventListener("progress", _), O.upload.addEventListener("loadend", C)), (r.cancelToken || r.signal) && (g = (Q) => {
1053
- O && (i(!Q || Q.type ? new mh(null, n, O) : Q), O.abort(), O = null);
1050
+ }, s === void 0 && a.setContentType(null), "setRequestHeader" in O && Le.forEach(a.toJSON(), function(Z, Se) {
1051
+ O.setRequestHeader(Se, Z);
1052
+ }), Le.isUndefined(r.withCredentials) || (O.withCredentials = !!r.withCredentials), o && o !== "json" && (O.responseType = r.responseType), m && ([S, D] = Xg(m, !0), O.addEventListener("progress", S)), f && O.upload && ([_, C] = Xg(f), O.upload.addEventListener("progress", _), O.upload.addEventListener("loadend", C)), (r.cancelToken || r.signal) && (g = (J) => {
1053
+ O && (i(!J || J.type ? new mh(null, n, O) : J), O.abort(), O = null);
1054
1054
  }, r.cancelToken && r.cancelToken.subscribe(g), r.signal && (r.signal.aborted ? g() : r.signal.addEventListener("abort", g)));
1055
1055
  const U = VL(r.url);
1056
1056
  if (U && Fr.protocols.indexOf(U) === -1) {
@@ -1205,17 +1205,17 @@ const nN = async (n) => {
1205
1205
  let O;
1206
1206
  try {
1207
1207
  if (f && tN && t !== "get" && t !== "head" && (O = await iN(g, i)) !== 0) {
1208
- let Ee = new Request(e, {
1208
+ let Se = new Request(e, {
1209
1209
  method: "POST",
1210
1210
  body: i,
1211
1211
  duplex: "half"
1212
- }), be;
1213
- if (Le.isFormData(i) && (be = Ee.headers.get("content-type")) && g.setContentType(be), Ee.body) {
1212
+ }), ve;
1213
+ if (Le.isFormData(i) && (ve = Se.headers.get("content-type")) && g.setContentType(ve), Se.body) {
1214
1214
  const [Ae, $e] = dk(
1215
1215
  O,
1216
1216
  Xg(hk(f))
1217
1217
  );
1218
- i = pk(Ee.body, mk, Ae, $e);
1218
+ i = pk(Se.body, mk, Ae, $e);
1219
1219
  }
1220
1220
  }
1221
1221
  Le.isString(_) || (_ = _ ? "include" : "omit");
@@ -1230,27 +1230,27 @@ const nN = async (n) => {
1230
1230
  credentials: F ? _ : void 0
1231
1231
  });
1232
1232
  let U = await fetch(D);
1233
- const Q = p_ && (m === "stream" || m === "response");
1234
- if (p_ && (o || Q && z)) {
1235
- const Ee = {};
1233
+ const J = p_ && (m === "stream" || m === "response");
1234
+ if (p_ && (o || J && z)) {
1235
+ const Se = {};
1236
1236
  ["status", "statusText", "headers"].forEach((Oe) => {
1237
- Ee[Oe] = U[Oe];
1237
+ Se[Oe] = U[Oe];
1238
1238
  });
1239
- const be = Le.toFiniteNumber(U.headers.get("content-length")), [Ae, $e] = o && dk(
1240
- be,
1239
+ const ve = Le.toFiniteNumber(U.headers.get("content-length")), [Ae, $e] = o && dk(
1240
+ ve,
1241
1241
  Xg(hk(o), !0)
1242
1242
  ) || [];
1243
1243
  U = new Response(
1244
1244
  pk(U.body, mk, Ae, () => {
1245
1245
  $e && $e(), z && z();
1246
1246
  }),
1247
- Ee
1247
+ Se
1248
1248
  );
1249
1249
  }
1250
1250
  m = m || "text";
1251
1251
  let Z = await Kg[Le.findKey(Kg, m) || "text"](U, n);
1252
- return !Q && z && z(), await new Promise((Ee, be) => {
1253
- kT(Ee, be, {
1252
+ return !J && z && z(), await new Promise((Se, ve) => {
1253
+ kT(Se, ve, {
1254
1254
  data: Z,
1255
1255
  headers: ms.from(U.headers),
1256
1256
  status: U.status,
@@ -1705,8 +1705,8 @@ const ci = vt({}), cN = () => {
1705
1705
  var S, C, D, z, O, F;
1706
1706
  try {
1707
1707
  if ((S = o.value) != null && S.token) {
1708
- const Q = await rt.get(`/api/table/${(C = o.value) == null ? void 0 : C.token}`);
1709
- s.value = Q.data;
1708
+ const J = await rt.get(`/api/table/${(C = o.value) == null ? void 0 : C.token}`);
1709
+ s.value = J.data;
1710
1710
  }
1711
1711
  (D = o.value) != null && D.init && (s.value = (z = o.value) == null ? void 0 : z.init);
1712
1712
  const { data: U } = await rt.get(
@@ -2326,10 +2326,10 @@ function sB(n, e) {
2326
2326
  throw new Error(`Invalid custom RegExp for param "${D}" (${U}): ` + Z.message);
2327
2327
  }
2328
2328
  }
2329
- let Q = z ? `((?:${U})(?:/(?:${U}))*)` : `(${U})`;
2330
- _ || (Q = // avoid an optional / if there are more segments e.g. /:p?-static
2329
+ let J = z ? `((?:${U})(?:/(?:${U}))*)` : `(${U})`;
2330
+ _ || (J = // avoid an optional / if there are more segments e.g. /:p?-static
2331
2331
  // or /:p?-:p2
2332
- O && m.length < 2 ? `(?:/${Q})` : "/" + Q), O && (Q += "?"), r += Q, C += 20, O && (C += -8), z && (C += -20), U === ".*" && (C += -50);
2332
+ O && m.length < 2 ? `(?:/${J})` : "/" + J), O && (J += "?"), r += J, C += 20, O && (C += -8), z && (C += -20), U === ".*" && (C += -50);
2333
2333
  }
2334
2334
  g.push(C);
2335
2335
  }
@@ -2504,7 +2504,7 @@ function dB(n, e) {
2504
2504
  const O = Dk(e, _), F = [z];
2505
2505
  if ("alias" in _) {
2506
2506
  const Z = typeof _.alias == "string" ? [_.alias] : _.alias;
2507
- for (const Ee of Z)
2507
+ for (const Se of Z)
2508
2508
  F.push(
2509
2509
  // we need to normalize again to ensure the `mods` property
2510
2510
  // being non enumerable
@@ -2512,7 +2512,7 @@ function dB(n, e) {
2512
2512
  // this allows us to hold a copy of the `components` option
2513
2513
  // so that async components cache is hold on the original record
2514
2514
  components: C ? C.record.components : z.components,
2515
- path: Ee,
2515
+ path: Se,
2516
2516
  // we might be the child of an alias
2517
2517
  aliasOf: C ? C.record : z
2518
2518
  // the aliases are always of the same kind as the original since they
@@ -2520,25 +2520,25 @@ function dB(n, e) {
2520
2520
  }))
2521
2521
  );
2522
2522
  }
2523
- let U, Q;
2523
+ let U, J;
2524
2524
  for (const Z of F) {
2525
- const { path: Ee } = Z;
2526
- if (S && Ee[0] !== "/") {
2527
- const be = S.record.path, Ae = be[be.length - 1] === "/" ? "" : "/";
2528
- Z.path = S.record.path + (Ee && Ae + Ee);
2525
+ const { path: Se } = Z;
2526
+ if (S && Se[0] !== "/") {
2527
+ const ve = S.record.path, Ae = ve[ve.length - 1] === "/" ? "" : "/";
2528
+ Z.path = S.record.path + (Se && Ae + Se);
2529
2529
  }
2530
2530
  if (sn.NODE_ENV !== "production" && Z.path === "*")
2531
2531
  throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
2532
2532
  See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
2533
- if (U = uB(Z, S, O), sn.NODE_ENV !== "production" && S && Ee[0] === "/" && yB(U, S), C ? (C.alias.push(U), sn.NODE_ENV !== "production" && pB(C, U)) : (Q = Q || U, Q !== U && Q.alias.push(U), D && _.name && !Mk(U) && (sn.NODE_ENV !== "production" && gB(_, S), a(_.name))), HT(U) && f(U), z.children) {
2534
- const be = z.children;
2535
- for (let Ae = 0; Ae < be.length; Ae++)
2536
- s(be[Ae], U, C && C.children[Ae]);
2533
+ if (U = uB(Z, S, O), sn.NODE_ENV !== "production" && S && Se[0] === "/" && yB(U, S), C ? (C.alias.push(U), sn.NODE_ENV !== "production" && pB(C, U)) : (J = J || U, J !== U && J.alias.push(U), D && _.name && !Mk(U) && (sn.NODE_ENV !== "production" && gB(_, S), a(_.name))), HT(U) && f(U), z.children) {
2534
+ const ve = z.children;
2535
+ for (let Ae = 0; Ae < ve.length; Ae++)
2536
+ s(ve[Ae], U, C && C.children[Ae]);
2537
2537
  }
2538
2538
  C = C || U;
2539
2539
  }
2540
- return Q ? () => {
2541
- a(Q);
2540
+ return J ? () => {
2541
+ a(J);
2542
2542
  } : Hf;
2543
2543
  }
2544
2544
  function a(_) {
@@ -2565,8 +2565,8 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
2565
2565
  location: _
2566
2566
  });
2567
2567
  if (sn.NODE_ENV !== "production") {
2568
- const Q = Object.keys(_.params || {}).filter((Z) => !C.keys.find((Ee) => Ee.name === Z));
2569
- Q.length && xn(`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.`);
2568
+ const J = Object.keys(_.params || {}).filter((Z) => !C.keys.find((Se) => Se.name === Z));
2569
+ J.length && xn(`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.`);
2570
2570
  }
2571
2571
  O = C.record.name, D = Hn(
2572
2572
  // paramsFromLocation is a new object
@@ -2574,16 +2574,16 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
2574
2574
  S.params,
2575
2575
  // only keep params that exist in the resolved location
2576
2576
  // only keep optional params coming from a parent record
2577
- C.keys.filter((Q) => !Q.optional).concat(C.parent ? C.parent.keys.filter((Q) => Q.optional) : []).map((Q) => Q.name)
2577
+ C.keys.filter((J) => !J.optional).concat(C.parent ? C.parent.keys.filter((J) => J.optional) : []).map((J) => J.name)
2578
2578
  ),
2579
2579
  // discard any existing params in the current location that do not exist here
2580
2580
  // #1497 this ensures better active/exact matching
2581
- _.params && Tk(_.params, C.keys.map((Q) => Q.name))
2581
+ _.params && Tk(_.params, C.keys.map((J) => J.name))
2582
2582
  ), z = C.stringify(D);
2583
2583
  } else if (_.path != null)
2584
- z = _.path, sn.NODE_ENV !== "production" && !z.startsWith("/") && xn(`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);
2584
+ z = _.path, sn.NODE_ENV !== "production" && !z.startsWith("/") && xn(`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);
2585
2585
  else {
2586
- if (C = S.name ? i.get(S.name) : t.find((Q) => Q.re.test(S.path)), !C)
2586
+ if (C = S.name ? i.get(S.name) : t.find((J) => J.re.test(S.path)), !C)
2587
2587
  throw Jd(1, {
2588
2588
  location: _,
2589
2589
  currentLocation: S
@@ -3012,8 +3012,8 @@ const zk = (n, e, t) => n ?? e ?? t, MB = /* @__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 HB(n) {
3392
3392
  function U(Ie) {
3393
3393
  return typeof Ie == "string" ? eb(t, Ie, f.value.path) : Hn({}, Ie);
3394
3394
  }
3395
- function Q(Ie, Ze) {
3395
+ function J(Ie, Ze) {
3396
3396
  if (m !== Ie)
3397
3397
  return Jd(8, {
3398
3398
  from: Ze,
@@ -3402,10 +3402,10 @@ function HB(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(Hn(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, kn = Ie.force, qt = Ie.replace === !0, Ht = be(it);
3429
+ const it = m = F(Ie), bt = f.value, nn = Ie.state, kn = Ie.force, qt = Ie.replace === !0, Ht = ve(it);
3430
3430
  if (Ht)
3431
3431
  return Ae(
3432
3432
  Hn(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 kn = Q(Ie, Ze);
3547
+ const kn = J(Ie, Ze);
3548
3548
  if (kn)
3549
3549
  return kn;
3550
3550
  const qt = Ze === Rl, Ht = Ha ? history.state : {};
@@ -3557,7 +3557,7 @@ ${JSON.stringify(bt, null, 2)}
3557
3557
  ct || (ct = r.listen((Ie, Ze, it) => {
3558
3558
  if (!Tn.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(Hn(nn, { replace: !0, force: !0 }), bt).catch(Hf);
3563
3563
  return;
@@ -3638,7 +3638,7 @@ ${JSON.stringify(bt, null, 2)}
3638
3638
  resolve: F,
3639
3639
  options: n,
3640
3640
  push: Z,
3641
- replace: Ee,
3641
+ replace: Se,
3642
3642
  go: fn,
3643
3643
  back: () => fn(-1),
3644
3644
  forward: () => fn(1),
@@ -3696,27 +3696,27 @@ const qB = [
3696
3696
  {
3697
3697
  name: "edit",
3698
3698
  path: "/edit",
3699
- component: () => import("./edit-page-Bi0SAwg4.js")
3699
+ component: () => import("./edit-page-B5Az0o6m.js")
3700
3700
  },
3701
3701
  {
3702
3702
  name: "add",
3703
3703
  path: "/add",
3704
- component: () => import("./add-page-9gw1IEJq.js")
3704
+ component: () => import("./add-page-DMsSz4BX.js")
3705
3705
  },
3706
3706
  {
3707
3707
  path: "/profile",
3708
3708
  name: "profile",
3709
- component: () => import("./profile-page-B5wuXFar.js")
3709
+ component: () => import("./profile-page-V4LrOFzf.js")
3710
3710
  },
3711
3711
  {
3712
3712
  name: "card-view",
3713
3713
  path: "/card",
3714
- component: () => import("./card-view-D5yuMek_.js"),
3714
+ component: () => import("./card-view-C4bA9n9d.js"),
3715
3715
  children: [
3716
3716
  {
3717
3717
  name: "table",
3718
3718
  path: ":table",
3719
- component: () => import("./card-view-D5yuMek_.js"),
3719
+ component: () => import("./card-view-C4bA9n9d.js"),
3720
3720
  children: [
3721
3721
  {
3722
3722
  name: "card",
@@ -3777,14 +3777,14 @@ const KB = /* @__PURE__ */ gt(GB, [["render", XB]]), JB = (n) => {
3777
3777
  {
3778
3778
  path: "/",
3779
3779
  name: "home",
3780
- component: () => import("./admin-view-COaw6ELQ.js"),
3780
+ component: () => import("./admin-view-OtkR46LJ.js"),
3781
3781
  children: [
3782
3782
  ...e,
3783
3783
  ...n,
3784
3784
  // { path: '/', redirect: '/home' },
3785
3785
  {
3786
3786
  path: "/:catchAll(.*)",
3787
- component: () => import("./admin-interface-hcHf2Go-.js")
3787
+ component: () => import("./admin-interface-C6JnkqkU.js")
3788
3788
  }
3789
3789
  ]
3790
3790
  }
@@ -7187,15 +7187,15 @@ var XA = { exports: {} };
7187
7187
  }
7188
7188
  return O || !1;
7189
7189
  }
7190
- function Q(u, c, d, p) {
7190
+ function J(u, c, d, p) {
7191
7191
  const b = new D(u, c, d, p);
7192
7192
  return (k) => b.solve(k);
7193
7193
  }
7194
- const Z = Q(0.25, 0.1, 0.25, 1);
7195
- function Ee(u, c, d) {
7194
+ const Z = J(0.25, 0.1, 0.25, 1);
7195
+ function Se(u, c, d) {
7196
7196
  return Math.min(d, Math.max(c, u));
7197
7197
  }
7198
- function be(u, c, d) {
7198
+ function ve(u, c, d) {
7199
7199
  const p = d - c, b = ((u - c) % p + p) % p + c;
7200
7200
  return b === c ? d : b;
7201
7201
  }
@@ -7241,8 +7241,8 @@ var XA = { exports: {} };
7241
7241
  if (!E || !E.startsWith("BGR") && !E.startsWith("RGB")) throw new Error(`Unrecognized format ${E}`);
7242
7242
  const T = E.startsWith("BGR"), M = new Uint8ClampedArray(p * b * 4);
7243
7243
  if (yield k.copyTo(M, function(R, N, $, H, G) {
7244
- 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, $);
7245
- 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 }] };
7244
+ 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, $);
7245
+ 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 }] };
7246
7246
  }(u, c, d, p, b)), T) for (let R = 0; R < M.length; R += 4) {
7247
7247
  const N = M[R];
7248
7248
  M[R] = M[R + 2], M[R + 2] = N;
@@ -7469,7 +7469,7 @@ var XA = { exports: {} };
7469
7469
  }
7470
7470
  return u.kind;
7471
7471
  }
7472
- const J = [Zs, Qe, Te, Ve, Pt, xi, un, q(at), hr, Wr, le];
7472
+ const Q = [Zs, Qe, Te, Ve, Pt, xi, un, q(at), hr, Wr, le];
7473
7473
  function se(u, c) {
7474
7474
  if (c.kind === "error") return null;
7475
7475
  if (u.kind === "array") {
@@ -7477,7 +7477,7 @@ var XA = { exports: {} };
7477
7477
  } else {
7478
7478
  if (u.kind === c.kind) return null;
7479
7479
  if (u.kind === "value") {
7480
- for (const d of J) if (!se(d, c)) return null;
7480
+ for (const d of Q) if (!se(d, c)) return null;
7481
7481
  }
7482
7482
  }
7483
7483
  return `Expected ${W(u)} but found ${W(c)} instead.`;
@@ -7485,10 +7485,10 @@ var XA = { exports: {} };
7485
7485
  function ge(u, c) {
7486
7486
  return c.some((d) => d.kind === u.kind);
7487
7487
  }
7488
- function ve(u, c) {
7488
+ function be(u, c) {
7489
7489
  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);
7490
7490
  }
7491
- function Se(u, c) {
7491
+ function ke(u, c) {
7492
7492
  return u.kind === "array" && c.kind === "array" ? u.itemType.kind === c.itemType.kind && typeof u.N == "number" : u.kind === c.kind;
7493
7493
  }
7494
7494
  const fe = 0.96422, ze = 0.82521, Fe = 4 / 29, De = 6 / 29, Xe = 3 * De * De, It = De * De * De, Nt = Math.PI / 180, En = 180 / Math.PI;
@@ -7553,11 +7553,11 @@ var XA = { exports: {} };
7553
7553
  if (p.startsWith("rgb")) {
7554
7554
  const E = p.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);
7555
7555
  if (E) {
7556
- const [T, M, R, N, $, H, G, X, ee, oe, ce, ke] = E, ye = [N || " ", G || " ", oe].join("");
7556
+ const [T, M, R, N, $, H, G, X, ee, oe, ce, Ee] = E, ye = [N || " ", G || " ", oe].join("");
7557
7557
  if (ye === " " || ye === " /" || ye === ",," || ye === ",,,") {
7558
7558
  const we = [R, H, ee].join(""), Pe = we === "%%%" ? 100 : we === "" ? 255 : 0;
7559
7559
  if (Pe) {
7560
- const He = [Yi(+M / Pe, 0, 1), Yi(+$ / Pe, 0, 1), Yi(+X / Pe, 0, 1), ce ? Ni(+ce, ke) : 1];
7560
+ const He = [Yi(+M / Pe, 0, 1), Yi(+$ / Pe, 0, 1), Yi(+X / Pe, 0, 1), ce ? Ni(+ce, Ee) : 1];
7561
7561
  if (fr(He)) return He;
7562
7562
  }
7563
7563
  }
@@ -7569,12 +7569,12 @@ var XA = { exports: {} };
7569
7569
  const [E, T, M, R, N, $, H, G, X] = k, ee = [M || " ", N || " ", H].join("");
7570
7570
  if (ee === " " || ee === " /" || ee === ",," || ee === ",,,") {
7571
7571
  const oe = [+T, Yi(+R, 0, 100), Yi(+$, 0, 100), G ? Ni(+G, X) : 1];
7572
- if (fr(oe)) return function([ce, ke, ye, we]) {
7572
+ if (fr(oe)) return function([ce, Ee, ye, we]) {
7573
7573
  function Pe(He) {
7574
- const dt = (He + ce / 30) % 12, Bt = ke * Math.min(ye, 1 - ye);
7574
+ const dt = (He + ce / 30) % 12, Bt = Ee * Math.min(ye, 1 - ye);
7575
7575
  return ye - Bt * Math.max(-1, Math.min(dt - 3, 9 - dt, 1));
7576
7576
  }
7577
- return ce = tn(ce), ke /= 100, ye /= 100, [Pe(0), Pe(8), Pe(4), we];
7577
+ return ce = tn(ce), Ee /= 100, ye /= 100, [Pe(0), Pe(8), Pe(4), we];
7578
7578
  }(oe);
7579
7579
  }
7580
7580
  }
@@ -8052,8 +8052,8 @@ var XA = { exports: {} };
8052
8052
  evaluate(c) {
8053
8053
  const d = this.needle.evaluate(c), p = this.haystack.evaluate(c);
8054
8054
  if (!p) return !1;
8055
- if (!ve(d, ["boolean", "string", "number", "null"])) throw new Ti(`Expected first argument to be of type boolean, string, number or null, but found ${W(Di(d))} instead.`);
8056
- if (!ve(p, ["string", "array"])) throw new Ti(`Expected second argument to be of type array or string, but found ${W(Di(p))} instead.`);
8055
+ if (!be(d, ["boolean", "string", "number", "null"])) throw new Ti(`Expected first argument to be of type boolean, string, number or null, but found ${W(Di(d))} instead.`);
8056
+ if (!be(p, ["string", "array"])) throw new Ti(`Expected second argument to be of type array or string, but found ${W(Di(p))} instead.`);
8057
8057
  return p.indexOf(d) >= 0;
8058
8058
  }
8059
8059
  eachChild(c) {
@@ -8080,13 +8080,13 @@ var XA = { exports: {} };
8080
8080
  }
8081
8081
  evaluate(c) {
8082
8082
  const d = this.needle.evaluate(c), p = this.haystack.evaluate(c);
8083
- if (!ve(d, ["boolean", "string", "number", "null"])) throw new Ti(`Expected first argument to be of type boolean, string, number or null, but found ${W(Di(d))} instead.`);
8083
+ if (!be(d, ["boolean", "string", "number", "null"])) throw new Ti(`Expected first argument to be of type boolean, string, number or null, but found ${W(Di(d))} instead.`);
8084
8084
  let b;
8085
- if (this.fromIndex && (b = this.fromIndex.evaluate(c)), ve(p, ["string"])) {
8085
+ if (this.fromIndex && (b = this.fromIndex.evaluate(c)), be(p, ["string"])) {
8086
8086
  const k = p.indexOf(d, b);
8087
8087
  return k === -1 ? -1 : [...p.slice(0, k)].length;
8088
8088
  }
8089
- if (ve(p, ["array"])) return p.indexOf(d, b);
8089
+ if (be(p, ["array"])) return p.indexOf(d, b);
8090
8090
  throw new Ti(`Expected second argument to be of type array or string, but found ${W(Di(p))} instead.`);
8091
8091
  }
8092
8092
  eachChild(c) {
@@ -8194,8 +8194,8 @@ var XA = { exports: {} };
8194
8194
  evaluate(c) {
8195
8195
  const d = this.input.evaluate(c), p = this.beginIndex.evaluate(c);
8196
8196
  let b;
8197
- if (this.endIndex && (b = this.endIndex.evaluate(c)), ve(d, ["string"])) return [...d].slice(p, b).join("");
8198
- if (ve(d, ["array"])) return d.slice(p, b);
8197
+ if (this.endIndex && (b = this.endIndex.evaluate(c)), be(d, ["string"])) return [...d].slice(p, b).join("");
8198
+ if (be(d, ["array"])) return d.slice(p, b);
8199
8199
  throw new Ti(`Expected first argument to be of type array or string, but found ${W(Di(d))} instead.`);
8200
8200
  }
8201
8201
  eachChild(c) {
@@ -8303,11 +8303,11 @@ var XA = { exports: {} };
8303
8303
  let H, G;
8304
8304
  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 = k));
8305
8305
  else {
8306
- let ke = M - b;
8307
- M > b && ke > 180 ? ke -= 360 : M < b && b - M > 180 && (ke += 360), H = b + d * ke;
8306
+ let Ee = M - b;
8307
+ M > b && Ee > 180 ? Ee -= 360 : M < b && b - M > 180 && (Ee += 360), H = b + d * Ee;
8308
8308
  }
8309
- const [X, ee, oe, ce] = function([ke, ye, we, Pe]) {
8310
- return ke = isNaN(ke) ? 0 : ke * Nt, mi([we, Math.cos(ke) * ye, Math.sin(ke) * ye, Pe]);
8309
+ const [X, ee, oe, ce] = function([Ee, ye, we, Pe]) {
8310
+ return Ee = isNaN(Ee) ? 0 : Ee * Nt, mi([we, Math.cos(Ee) * ye, Math.sin(Ee) * ye, Pe]);
8311
8311
  }([H, G ?? ma(k, R, d), ma(E, N, d), ma(T, $, d)]);
8312
8312
  return new jn(X, ee, oe, ce, !1);
8313
8313
  }
@@ -8375,7 +8375,7 @@ var XA = { exports: {} };
8375
8375
  if (!X) return null;
8376
8376
  M = M || X.type, T.push([N, X]);
8377
8377
  }
8378
- return Se(M, Qe) || Se(M, Pt) || Se(M, hr) || Se(M, le) || Se(M, q(Qe)) ? new Ar(M, p, b, k, T) : d.error(`Type ${W(M)} is not interpolatable.`);
8378
+ return ke(M, Qe) || ke(M, Pt) || ke(M, hr) || ke(M, le) || ke(M, q(Qe)) ? new Ar(M, p, b, k, T) : d.error(`Type ${W(M)} is not interpolatable.`);
8379
8379
  }
8380
8380
  evaluate(c) {
8381
8381
  const d = this.labels, p = this.outputs;
@@ -9026,9 +9026,9 @@ var XA = { exports: {} };
9026
9026
  for (const T of u) for (let M = 0, R = T.length, N = R - 1; M < R; N = M++) {
9027
9027
  const $ = T[N], H = T[M];
9028
9028
  for (const G of c) for (let X = 0, ee = G.length, oe = ee - 1; X < ee; oe = X++) {
9029
- const ce = G[oe], ke = G[X];
9030
- if (Bu($, H, ce, ke)) return 0;
9031
- E = Math.min(E, Fh($, H, ce, ke, d));
9029
+ const ce = G[oe], Ee = G[X];
9030
+ if (Bu($, H, ce, Ee)) return 0;
9031
+ E = Math.min(E, Fh($, H, ce, Ee, d));
9032
9032
  }
9033
9033
  }
9034
9034
  return E;
@@ -9733,8 +9733,8 @@ var XA = { exports: {} };
9733
9733
  } else p = ee;
9734
9734
  if (ee !== "number" && ee !== "string" && ee !== "boolean") return [new Ge(G.key, ce, "stop domain value must be a number, string, or boolean")];
9735
9735
  if (ee !== "number" && d !== "categorical") {
9736
- let ke = `number expected, ${ee} found`;
9737
- return vl(c) && d === void 0 && (ke += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new Ge(G.key, ce, ke)];
9736
+ let Ee = `number expected, ${ee} found`;
9737
+ return vl(c) && d === void 0 && (Ee += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new Ge(G.key, ce, Ee)];
9738
9738
  }
9739
9739
  return d !== "categorical" || ee !== "number" || isFinite(oe) && Math.floor(oe) === oe ? d !== "categorical" && ee === "number" && b !== void 0 && oe < b ? [new Ge(G.key, ce, "stop domain values must appear in ascending order")] : (b = oe, d === "categorical" && oe in E ? [new Ge(G.key, ce, "stop domain values must be unique")] : (E[oe] = !0, [])) : [new Ge(G.key, ce, `integer expected, found ${oe}`)];
9740
9740
  }
@@ -9864,8 +9864,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9864
9864
  const oe = Mn($);
9865
9865
  if ($ === void 0) return ee;
9866
9866
  if (oe !== "object") return ee.push(new Ge("source_raster_dem", $, `object expected, ${oe} found`)), ee;
9867
- const ce = Si($.encoding) === "custom", ke = ["redFactor", "greenFactor", "blueFactor", "baseShift"], ye = M.value.encoding ? `"${M.value.encoding}"` : "Default";
9868
- for (const we in $) !ce && ke.includes(we) ? ee.push(new Ge(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 Ge(we, $[we], `unknown property "${we}"`));
9867
+ const ce = Si($.encoding) === "custom", Ee = ["redFactor", "greenFactor", "blueFactor", "baseShift"], ye = M.value.encoding ? `"${M.value.encoding}"` : "Default";
9868
+ for (const we in $) !ce && Ee.includes(we) ? ee.push(new Ge(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 Ge(we, $[we], `unknown property "${we}"`));
9869
9869
  return ee;
9870
9870
  }({ sourceName: d, value: c, style: u.style, styleSpec: p, validateSpec: k }), T;
9871
9871
  case "geojson":
@@ -10827,12 +10827,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10827
10827
  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);
10828
10828
  }
10829
10829
  emplaceBack(c, d, p, b, k, E, T, M, R, N, $, H, G, X, ee, oe, ce) {
10830
- const ke = this.length;
10831
- return this.resize(ke + 1), this.emplace(ke, c, d, p, b, k, E, T, M, R, N, $, H, G, X, ee, oe, ce);
10830
+ const Ee = this.length;
10831
+ return this.resize(Ee + 1), this.emplace(Ee, c, d, p, b, k, E, T, M, R, N, $, H, G, X, ee, oe, ce);
10832
10832
  }
10833
- emplace(c, d, p, b, k, E, T, M, R, N, $, H, G, X, ee, oe, ce, ke) {
10833
+ emplace(c, d, p, b, k, E, T, M, R, N, $, H, G, X, ee, oe, ce, Ee) {
10834
10834
  const ye = 24 * c, we = 12 * c, Pe = 48 * c;
10835
- return this.int16[ye + 0] = d, this.int16[ye + 1] = p, this.uint16[ye + 2] = b, this.uint16[ye + 3] = k, 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;
10835
+ return this.int16[ye + 0] = d, this.int16[ye + 1] = p, this.uint16[ye + 2] = b, this.uint16[ye + 3] = k, 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;
10836
10836
  }
10837
10837
  }
10838
10838
  Ce.prototype.bytesPerElement = 48, ht("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", Ce);
@@ -10840,13 +10840,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10840
10840
  _refreshViews() {
10841
10841
  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);
10842
10842
  }
10843
- emplaceBack(c, d, p, b, k, E, T, M, R, N, $, H, G, X, ee, oe, ce, ke, ye, we, Pe, He, dt, Bt, lt, nt, Ct, _t) {
10843
+ emplaceBack(c, d, p, b, k, E, T, M, R, N, $, H, G, X, ee, oe, ce, Ee, ye, we, Pe, He, dt, Bt, lt, nt, Ct, _t) {
10844
10844
  const mt = this.length;
10845
- return this.resize(mt + 1), this.emplace(mt, c, d, p, b, k, E, T, M, R, N, $, H, G, X, ee, oe, ce, ke, ye, we, Pe, He, dt, Bt, lt, nt, Ct, _t);
10845
+ return this.resize(mt + 1), this.emplace(mt, c, d, p, b, k, E, T, M, R, N, $, H, G, X, ee, oe, ce, Ee, ye, we, Pe, He, dt, Bt, lt, nt, Ct, _t);
10846
10846
  }
10847
- emplace(c, d, p, b, k, E, T, M, R, N, $, H, G, X, ee, oe, ce, ke, ye, we, Pe, He, dt, Bt, lt, nt, Ct, _t, mt) {
10847
+ emplace(c, d, p, b, k, E, T, M, R, N, $, H, G, X, ee, oe, ce, Ee, ye, we, Pe, He, dt, Bt, lt, nt, Ct, _t, mt) {
10848
10848
  const Ne = 32 * c, Mt = 16 * c;
10849
- return this.int16[Ne + 0] = d, this.int16[Ne + 1] = p, this.int16[Ne + 2] = b, this.int16[Ne + 3] = k, 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] = Bt, this.uint32[Mt + 12] = lt, this.float32[Mt + 13] = nt, this.float32[Mt + 14] = Ct, this.uint16[Ne + 30] = _t, this.uint16[Ne + 31] = mt, c;
10849
+ return this.int16[Ne + 0] = d, this.int16[Ne + 1] = p, this.int16[Ne + 2] = b, this.int16[Ne + 3] = k, 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] = Bt, this.uint32[Mt + 12] = lt, this.float32[Mt + 13] = nt, this.float32[Mt + 14] = Ct, this.uint16[Ne + 30] = _t, this.uint16[Ne + 31] = mt, c;
10850
10850
  }
10851
10851
  }
10852
10852
  Be.prototype.bytesPerElement = 64, ht("StructArrayLayout8i15ui1ul2f2ui64", Be);
@@ -11238,7 +11238,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11238
11238
  }
11239
11239
  }
11240
11240
  function gi(u, c) {
11241
- return 256 * (u = Ee(Math.floor(u), 0, 255)) + Ee(Math.floor(c), 0, 255);
11241
+ return 256 * (u = Se(Math.floor(u), 0, 255)) + Se(Math.floor(c), 0, 255);
11242
11242
  }
11243
11243
  Yn.MAX_VERTEX_ARRAY_LENGTH = Math.pow(2, 16) - 1, ht("SegmentVector", Yn);
11244
11244
  const vo = x([{ 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" }]);
@@ -11441,7 +11441,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11441
11441
  this.paintVertexBuffer && this.paintVertexBuffer.destroy();
11442
11442
  }
11443
11443
  setUniform(c, d) {
11444
- const p = this.useIntegerZoom ? Math.floor(d.zoom) : d.zoom, b = Ee(this.expression.interpolationFactor(p, this.zoom, this.zoom + 1), 0, 1);
11444
+ const p = this.useIntegerZoom ? Math.floor(d.zoom) : d.zoom, b = Se(this.expression.interpolationFactor(p, this.zoom, this.zoom + 1), 0, 1);
11445
11445
  c.set(b);
11446
11446
  }
11447
11447
  getBinding(c, d, p) {
@@ -11635,7 +11635,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11635
11635
  const b = d[p];
11636
11636
  for (let k = 0; k < b.length; k++) {
11637
11637
  const E = b[k], T = Math.round(E.x * c), M = Math.round(E.y * c);
11638
- E.x = Ee(T, C1, av), E.y = Ee(M, C1, av), (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");
11638
+ E.x = Se(T, C1, av), E.y = Se(M, C1, av), (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
11639
  }
11640
11640
  }
11641
11641
  return d;
@@ -11788,8 +11788,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11788
11788
  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;
11789
11789
  }
11790
11790
  function R1(u, c, d) {
11791
- var p = c[0], b = c[1], k = 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];
11792
- return u[0] = ye * p + we * T + Pe * $ + He * ee, u[1] = ye * b + we * M + Pe * H + He * oe, u[2] = ye * k + 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 * k + 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 * k + 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 * k + we * R + Pe * G + He * ce, u[15] = ye * E + we * N + Pe * X + He * ke, u;
11791
+ var p = c[0], b = c[1], k = 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];
11792
+ return u[0] = ye * p + we * T + Pe * $ + He * ee, u[1] = ye * b + we * M + Pe * H + He * oe, u[2] = ye * k + 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 * k + 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 * k + 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 * k + we * R + Pe * G + He * ce, u[15] = ye * E + we * N + Pe * X + He * Ee, u;
11793
11793
  }
11794
11794
  Math.hypot || (Math.hypot = function() {
11795
11795
  for (var u = 0, c = arguments.length; c--; ) u += arguments[c] * arguments[c];
@@ -11819,8 +11819,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11819
11819
  for (const X of b) for (const ee of X) {
11820
11820
  const oe = $ ? ee : O1(ee, M);
11821
11821
  let ce = G;
11822
- const ke = Bm([], [ee.x, ee.y, 0, 1], M);
11823
- 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;
11822
+ const Ee = Bm([], [ee.x, ee.y, 0, 1], M);
11823
+ 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;
11824
11824
  }
11825
11825
  return !1;
11826
11826
  }
@@ -12008,16 +12008,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12008
12008
  do {
12009
12009
  let oe, ce = G;
12010
12010
  G = null;
12011
- let ke = null;
12011
+ let Ee = null;
12012
12012
  for (X = 0; ce; ) {
12013
12013
  X++;
12014
12014
  let ye = ce, we = 0;
12015
12015
  for (let He = 0; He < ee && (we++, ye = ye.nextZ, ye); He++) ;
12016
12016
  let Pe = ee;
12017
- 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;
12017
+ 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;
12018
12018
  ce = ye;
12019
12019
  }
12020
- ke.nextZ = null, ee *= 2;
12020
+ Ee.nextZ = null, ee *= 2;
12021
12021
  } while (X > 1);
12022
12022
  }(H);
12023
12023
  }(u, p, b, k);
@@ -12045,9 +12045,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12045
12045
  function XR(u, c, d, p) {
12046
12046
  const b = u.prev, k = u, E = u.next;
12047
12047
  if (Ai(b, k, E) >= 0) return !1;
12048
- const T = b.x, M = k.x, R = E.x, N = b.y, $ = k.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 = mv(G, X, c, d, p), ke = mv(ee, oe, c, d, p);
12048
+ const T = b.x, M = k.x, R = E.x, N = b.y, $ = k.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 = mv(G, X, c, d, p), Ee = mv(ee, oe, c, d, p);
12049
12049
  let ye = u.prevZ, we = u.nextZ;
12050
- for (; ye && ye.z >= ce && we && we.z <= ke; ) {
12050
+ for (; ye && ye.z >= ce && we && we.z <= Ee; ) {
12051
12051
  if (ye.x >= G && ye.x <= ee && ye.y >= X && ye.y <= oe && ye !== b && ye !== E && dd(T, N, M, $, R, H, ye.x, ye.y) && Ai(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 && dd(T, N, M, $, R, H, we.x, we.y) && Ai(we.prev, we, we.next) >= 0)) return !1;
12052
12052
  we = we.nextZ;
12053
12053
  }
@@ -12055,7 +12055,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12055
12055
  if (ye.x >= G && ye.x <= ee && ye.y >= X && ye.y <= oe && ye !== b && ye !== E && dd(T, N, M, $, R, H, ye.x, ye.y) && Ai(ye.prev, ye, ye.next) >= 0) return !1;
12056
12056
  ye = ye.prevZ;
12057
12057
  }
12058
- for (; we && we.z <= ke; ) {
12058
+ for (; we && we.z <= Ee; ) {
12059
12059
  if (we.x >= G && we.x <= ee && we.y >= X && we.y <= oe && we !== b && we !== E && dd(T, N, M, $, R, H, we.x, we.y) && Ai(we.prev, we, we.next) >= 0) return !1;
12060
12060
  we = we.nextZ;
12061
12061
  }
@@ -12358,9 +12358,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12358
12358
  for (M = function(G) {
12359
12359
  var X = G.length;
12360
12360
  if (X <= 1) return [G];
12361
- for (var ee, oe, ce = [], ke = 0; ke < X; ke++) {
12362
- var ye = dO(G[ke]);
12363
- ye !== 0 && (oe === void 0 && (oe = ye < 0), oe === ye < 0 ? (ee && ce.push(ee), ee = [G[ke]]) : ee.push(G[ke]));
12361
+ for (var ee, oe, ce = [], Ee = 0; Ee < X; Ee++) {
12362
+ var ye = dO(G[Ee]);
12363
+ ye !== 0 && (oe === void 0 && (oe = ye < 0), oe === ye < 0 ? (ee && ce.push(ee), ee = [G[Ee]]) : ee.push(G[Ee]));
12364
12364
  }
12365
12365
  return ee && ce.push(ee), ce;
12366
12366
  }(M), p = 0; p < M.length; p++) for (b = 0; b < M[p].length; b++) N(M[p][b]);
@@ -12448,11 +12448,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12448
12448
  for (let oe = 0; oe < X.length; oe++) {
12449
12449
  const ce = X[oe];
12450
12450
  if (oe >= 1) {
12451
- const ke = X[oe - 1];
12452
- if (!yO(ce, ke)) {
12451
+ const Ee = X[oe - 1];
12452
+ if (!yO(ce, Ee)) {
12453
12453
  R.vertexLength + 4 > Yn.MAX_VERTEX_ARRAY_LENGTH && (R = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray));
12454
- const ye = ce.sub(ke)._perp()._unit(), we = ke.dist(ce);
12455
- ee + we > 32768 && (ee = 0), gf(this.layoutVertexArray, ce.x, ce.y, ye.x, ye.y, 0, 0, ee), gf(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, gf(this.layoutVertexArray, ke.x, ke.y, ye.x, ye.y, 0, 0, ee), gf(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;
12454
+ const ye = ce.sub(Ee)._perp()._unit(), we = Ee.dist(ce);
12455
+ ee + we > 32768 && (ee = 0), gf(this.layoutVertexArray, ce.x, ce.y, ye.x, ye.y, 0, 0, ee), gf(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, gf(this.layoutVertexArray, Ee.x, Ee.y, ye.x, ye.y, 0, 0, ee), gf(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;
12456
12456
  const Pe = R.vertexLength;
12457
12457
  this.indexArray.emplaceBack(Pe, Pe + 2, Pe + 1), this.indexArray.emplaceBack(Pe + 1, Pe + 2, Pe + 3), R.vertexLength += 4, R.primitiveLength += 2;
12458
12458
  }
@@ -12505,14 +12505,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12505
12505
  }
12506
12506
  queryIntersectsFeature(c, d, p, b, k, E, T, M) {
12507
12507
  const R = Nm(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) {
12508
- const ke = [];
12508
+ const Ee = [];
12509
12509
  for (const ye of X) {
12510
12510
  const we = [ye.x, ye.y, 0, 1];
12511
- Bm(we, we, ee), ke.push(new _(we[0] / we[3], we[1] / we[3]));
12511
+ Bm(we, we, ee), Ee.push(new _(we[0] / we[3], we[1] / we[3]));
12512
12512
  }
12513
- return ke;
12513
+ return Ee;
12514
12514
  }(R, M), G = function(X, ee, oe, ce) {
12515
- const ke = [], ye = [], we = ce[8] * ee, Pe = ce[9] * ee, He = ce[10] * ee, dt = ce[11] * ee, Bt = ce[8] * oe, lt = ce[9] * oe, nt = ce[10] * oe, Ct = ce[11] * oe;
12515
+ const Ee = [], ye = [], we = ce[8] * ee, Pe = ce[9] * ee, He = ce[10] * ee, dt = ce[11] * ee, Bt = ce[8] * oe, lt = ce[9] * oe, nt = ce[10] * oe, Ct = ce[11] * oe;
12516
12516
  for (const _t of X) {
12517
12517
  const mt = [], Ne = [];
12518
12518
  for (const Mt of _t) {
@@ -12521,15 +12521,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12521
12521
  const br = new _(Rr / ki, Or / ki);
12522
12522
  br.z = zr / ki, Ne.push(br);
12523
12523
  }
12524
- ke.push(mt), ye.push(Ne);
12524
+ Ee.push(mt), ye.push(Ne);
12525
12525
  }
12526
- return [ke, ye];
12526
+ return [Ee, ye];
12527
12527
  }(b, $, N, M);
12528
12528
  return function(X, ee, oe) {
12529
12529
  let ce = 1 / 0;
12530
12530
  A1(oe, ee) && (ce = K1(oe, ee[0]));
12531
- for (let ke = 0; ke < ee.length; ke++) {
12532
- const ye = ee[ke], we = X[ke];
12531
+ for (let Ee = 0; Ee < ee.length; Ee++) {
12532
+ const ye = ee[Ee], we = X[Ee];
12533
12533
  for (let Pe = 0; Pe < ye.length - 1; Pe++) {
12534
12534
  const He = ye[Pe], dt = [He, ye[Pe + 1], we[Pe + 1], we[Pe], He];
12535
12535
  T1(oe, dt) && (ce = Math.min(ce, K1(oe, dt)));
@@ -12549,8 +12549,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12549
12549
  let b;
12550
12550
  for (; !b || p.equals(b); ) if (b = c[d++], !b) return 1 / 0;
12551
12551
  for (; d < c.length; d++) {
12552
- const k = c[d], E = u[0], T = b.sub(p), M = k.sub(p), R = E.sub(p), N = yf(T, T), $ = yf(T, M), H = yf(M, M), G = yf(R, T), X = yf(R, M), ee = N * H - $ * $, oe = (H * G - $ * X) / ee, ce = (N * X - $ * G) / ee, ke = p.z * (1 - oe - ce) + b.z * oe + k.z * ce;
12553
- if (isFinite(ke)) return ke;
12552
+ const k = c[d], E = u[0], T = b.sub(p), M = k.sub(p), R = E.sub(p), N = yf(T, T), $ = yf(T, M), H = yf(M, M), G = yf(R, T), X = yf(R, M), ee = N * H - $ * $, oe = (H * G - $ * X) / ee, ce = (N * X - $ * G) / ee, Ee = p.z * (1 - oe - ce) + b.z * oe + k.z * ce;
12553
+ if (isFinite(Ee)) return Ee;
12554
12554
  }
12555
12555
  return 1 / 0;
12556
12556
  }
@@ -12632,9 +12632,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12632
12632
  for (let ce = R; ce < M; ce++) {
12633
12633
  if (X = ce === M - 1 ? T ? c[R + 1] : void 0 : c[ce + 1], X && c[ce].equals(X)) continue;
12634
12634
  oe && (ee = oe), H && (G = H), H = c[ce], oe = X ? X.sub(H)._unit()._perp() : ee, ee = ee || oe;
12635
- let ke = ee.add(oe);
12636
- ke.x === 0 && ke.y === 0 || ke._unit();
12637
- 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, Bt = ee.x * oe.y - ee.y * oe.x > 0;
12635
+ let Ee = ee.add(oe);
12636
+ Ee.x === 0 && Ee.y === 0 || Ee._unit();
12637
+ 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, Bt = ee.x * oe.y - ee.y * oe.x > 0;
12638
12638
  if (dt && ce > R) {
12639
12639
  const Ct = H.dist(G);
12640
12640
  if (Ct > 2 * N) {
@@ -12644,14 +12644,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12644
12644
  }
12645
12645
  const lt = G && X;
12646
12646
  let nt = lt ? p : T ? "butt" : b;
12647
- if (lt && nt === "round" && (Pe < E ? nt = "miter" : Pe <= 2 && (nt = "fakeround")), nt === "miter" && Pe > k && (nt = "bevel"), nt === "bevel" && (Pe > 2 && (nt = "flipbevel"), Pe < k && (nt = "miter")), G && this.updateDistance(G, H), nt === "miter") ke._mult(Pe), this.addCurrentVertex(H, ke, 0, 0, $);
12647
+ if (lt && nt === "round" && (Pe < E ? nt = "miter" : Pe <= 2 && (nt = "fakeround")), nt === "miter" && Pe > k && (nt = "bevel"), nt === "bevel" && (Pe > 2 && (nt = "flipbevel"), Pe < k && (nt = "miter")), G && this.updateDistance(G, H), nt === "miter") Ee._mult(Pe), this.addCurrentVertex(H, Ee, 0, 0, $);
12648
12648
  else if (nt === "flipbevel") {
12649
- if (Pe > 100) ke = oe.mult(-1);
12649
+ if (Pe > 100) Ee = oe.mult(-1);
12650
12650
  else {
12651
12651
  const Ct = Pe * ee.add(oe).mag() / ee.sub(oe).mag();
12652
- ke._perp()._mult(Ct * (Bt ? -1 : 1));
12652
+ Ee._perp()._mult(Ct * (Bt ? -1 : 1));
12653
12653
  }
12654
- this.addCurrentVertex(H, ke, 0, 0, $), this.addCurrentVertex(H, ke.mult(-1), 0, 0, $);
12654
+ this.addCurrentVertex(H, Ee, 0, 0, $), this.addCurrentVertex(H, Ee.mult(-1), 0, 0, $);
12655
12655
  } else if (nt === "bevel" || nt === "fakeround") {
12656
12656
  const Ct = -Math.sqrt(Pe * Pe - 1), _t = Bt ? Ct : 0, mt = Bt ? 0 : Ct;
12657
12657
  if (G && this.addCurrentVertex(H, ee, _t, mt, $), nt === "fakeround") {
@@ -12667,10 +12667,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12667
12667
  }
12668
12668
  }
12669
12669
  X && this.addCurrentVertex(H, oe, -_t, -mt, $);
12670
- } else if (nt === "butt") this.addCurrentVertex(H, ke, 0, 0, $);
12670
+ } else if (nt === "butt") this.addCurrentVertex(H, Ee, 0, 0, $);
12671
12671
  else if (nt === "square") {
12672
12672
  const Ct = G ? 1 : -1;
12673
- this.addCurrentVertex(H, ke, Ct, Ct, $);
12673
+ this.addCurrentVertex(H, Ee, Ct, Ct, $);
12674
12674
  } 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, $)));
12675
12675
  if (dt && ce < M - 1) {
12676
12676
  const Ct = H.dist(X);
@@ -12746,7 +12746,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12746
12746
  for (let X = 0; X < $.length; X++) {
12747
12747
  const ee = $[X], oe = [];
12748
12748
  for (let ce = 0; ce < ee.length; ce++) {
12749
- 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(), Bt = dt.x * He.x + dt.y * He.y;
12749
+ 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(), Bt = dt.x * He.x + dt.y * He.y;
12750
12750
  Bt !== 0 && dt._mult(1 / Bt), oe.push(dt._mult(H)._add(ye));
12751
12751
  }
12752
12752
  G.push(oe);
@@ -13247,7 +13247,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13247
13247
  const ee = md.fromFeature(u, b);
13248
13248
  let oe;
13249
13249
  $ === a.ah.vertical && ee.verticalizePunctuation();
13250
- const { processBidirectionalText: ce, processStyledBidirectionalText: ke } = Aa;
13250
+ const { processBidirectionalText: ce, processStyledBidirectionalText: Ee } = Aa;
13251
13251
  if (ce && ee.sections.length === 1) {
13252
13252
  oe = [];
13253
13253
  const Pe = ce(ee.toString(), Tv(ee, R, k, c, p, G));
@@ -13257,9 +13257,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13257
13257
  for (let Bt = 0; Bt < He.length; Bt++) dt.sectionIndex.push(0);
13258
13258
  oe.push(dt);
13259
13259
  }
13260
- } else if (ke) {
13260
+ } else if (Ee) {
13261
13261
  oe = [];
13262
- const Pe = ke(ee.text, ee.sectionIndex, Tv(ee, R, k, c, p, G));
13262
+ const Pe = Ee(ee.text, ee.sectionIndex, Tv(ee, R, k, c, p, G));
13263
13263
  for (const He of Pe) {
13264
13264
  const dt = new md();
13265
13265
  dt.text = He[0], dt.sectionIndex = He[1], dt.sections = ee.sections, oe.push(dt);
@@ -13360,9 +13360,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13360
13360
  if (!u) return [];
13361
13361
  const E = [], T = function($, H, G, X, ee, oe) {
13362
13362
  let ce = 0;
13363
- for (let ke = 0; ke < $.length(); ke++) {
13364
- const ye = $.getSection(ke);
13365
- ce += pS($.getCharCode(ke), ye, X, ee, H, oe);
13363
+ for (let Ee = 0; Ee < $.length(); Ee++) {
13364
+ const ye = $.getSection(Ee);
13365
+ ce += pS($.getCharCode(Ee), ye, X, ee, H, oe);
13366
13366
  }
13367
13367
  return ce / Math.max(1, Math.ceil(ce / G));
13368
13368
  }(u, c, d, p, b, k), M = u.text.indexOf("​") >= 0;
@@ -13522,7 +13522,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13522
13522
  const b = this.layers[0], k = b.layout, E = k.get("text-font"), T = k.get("text-field"), M = k.get("icon-image"), R = (T.value.kind !== "constant" || T.value.value instanceof qr && !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, $ = k.get("symbol-sort-key");
13523
13523
  if (this.features = [], !R && !N) return;
13524
13524
  const H = d.iconDependencies, G = d.glyphDependencies, X = d.availableImages, ee = new $n(this.zoom);
13525
- for (const { feature: oe, id: ce, index: ke, sourceLayerIndex: ye } of c) {
13525
+ for (const { feature: oe, id: ce, index: Ee, sourceLayerIndex: ye } of c) {
13526
13526
  const we = b._featureFilter.needGeometry, Pe = $c(oe, we);
13527
13527
  if (!b._featureFilter.filter(ee, Pe, p)) continue;
13528
13528
  let He, dt;
@@ -13536,7 +13536,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13536
13536
  }
13537
13537
  if (!He && !dt) continue;
13538
13538
  const Bt = this.sortFeaturesByKey ? $.evaluate(Pe, {}, p) : void 0;
13539
- 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: Bt }), dt && (H[dt.name] = !0), He) {
13539
+ 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: Bt }), dt && (H[dt.name] = !0), He) {
13540
13540
  const lt = E.evaluate(Pe, {}, p).join(","), nt = k.get("text-rotation-alignment") !== "viewport" && k.get("symbol-placement") !== "point";
13541
13541
  this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(a.ah.vertical) >= 0;
13542
13542
  for (const Ct of He.sections) if (Ct.image) H[Ct.image.name] = !0;
@@ -13547,14 +13547,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13547
13547
  }
13548
13548
  }
13549
13549
  k.get("symbol-placement") === "line" && (this.features = function(oe) {
13550
- const ce = {}, ke = {}, ye = [];
13550
+ const ce = {}, Ee = {}, ye = [];
13551
13551
  let we = 0;
13552
13552
  function Pe(lt) {
13553
13553
  ye.push(oe[lt]), we++;
13554
13554
  }
13555
13555
  function He(lt, nt, Ct) {
13556
- const _t = ke[lt];
13557
- return delete ke[lt], ke[nt] = _t, ye[_t].geometry[0].pop(), ye[_t].geometry[0] = ye[_t].geometry[0].concat(Ct[0]), _t;
13556
+ const _t = Ee[lt];
13557
+ return delete Ee[lt], Ee[nt] = _t, ye[_t].geometry[0].pop(), ye[_t].geometry[0] = ye[_t].geometry[0].concat(Ct[0]), _t;
13558
13558
  }
13559
13559
  function dt(lt, nt, Ct) {
13560
13560
  const _t = ce[nt];
@@ -13571,10 +13571,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13571
13571
  continue;
13572
13572
  }
13573
13573
  const mt = Bt(_t, Ct), Ne = Bt(_t, Ct, !0);
13574
- if (mt in ke && Ne in ce && ke[mt] !== ce[Ne]) {
13574
+ if (mt in Ee && Ne in ce && Ee[mt] !== ce[Ne]) {
13575
13575
  const Mt = dt(mt, Ne, Ct), Et = He(mt, Ne, ye[Mt].geometry);
13576
- delete ce[mt], delete ke[Ne], ke[Bt(_t, ye[Et].geometry, !0)] = Et, ye[Mt].geometry = null;
13577
- } else mt in ke ? He(mt, Ne, Ct) : Ne in ce ? dt(mt, Ne, Ct) : (Pe(lt), ce[mt] = we - 1, ke[Ne] = we - 1);
13576
+ delete ce[mt], delete Ee[Ne], Ee[Bt(_t, ye[Et].geometry, !0)] = Et, ye[Mt].geometry = null;
13577
+ } else mt in Ee ? He(mt, Ne, Ct) : Ne in ce ? dt(mt, Ne, Ct) : (Pe(lt), ce[mt] = we - 1, Ee[Ne] = we - 1);
13578
13578
  }
13579
13579
  return ye.filter((lt) => lt.geometry);
13580
13580
  }(this.features)), this.sortFeaturesByKey && this.features.sort((oe, ce) => oe.sortKey - ce.sortKey);
@@ -13612,10 +13612,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13612
13612
  return { lineStartIndex: p, lineLength: this.lineVertexArray.length - p };
13613
13613
  }
13614
13614
  addSymbols(c, d, p, b, k, E, T, M, R, N, $, H) {
13615
- 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;
13615
+ 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;
13616
13616
  for (let we = 0; we < d.length; we++) {
13617
13617
  const { tl: Pe, tr: He, bl: dt, br: Bt, tex: lt, pixelOffsetTL: nt, pixelOffsetBR: Ct, minFontScaleX: _t, minFontScaleY: mt, glyphOffset: Ne, isSDF: Mt, sectionIndex: Et } = d[we], Wt = ee.vertexLength, Qn = Ne[1];
13618
- qm(X, M.x, M.y, Pe.x, Qn + Pe.y, lt.x, lt.y, p, Mt, nt.x, nt.y, _t, mt), qm(X, M.x, M.y, He.x, Qn + He.y, lt.x + lt.w, lt.y, p, Mt, Ct.x, nt.y, _t, mt), qm(X, M.x, M.y, dt.x, Qn + dt.y, lt.x, lt.y + lt.h, p, Mt, nt.x, Ct.y, _t, mt), qm(X, M.x, M.y, Bt.x, Qn + Bt.y, lt.x + lt.w, lt.y + lt.h, p, Mt, Ct.x, Ct.y, _t, mt), Dv(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 && Et === d[we + 1].sectionIndex || c.programConfigurations.populatePaintArrays(X.length, E, E.index, {}, H, ye && ye[Et]);
13618
+ qm(X, M.x, M.y, Pe.x, Qn + Pe.y, lt.x, lt.y, p, Mt, nt.x, nt.y, _t, mt), qm(X, M.x, M.y, He.x, Qn + He.y, lt.x + lt.w, lt.y, p, Mt, Ct.x, nt.y, _t, mt), qm(X, M.x, M.y, dt.x, Qn + dt.y, lt.x, lt.y + lt.h, p, Mt, nt.x, Ct.y, _t, mt), qm(X, M.x, M.y, Bt.x, Qn + Bt.y, lt.x + lt.w, lt.y + lt.h, p, Mt, Ct.x, Ct.y, _t, mt), Dv(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 && Et === d[we + 1].sectionIndex || c.programConfigurations.populatePaintArrays(X.length, E, E.index, {}, H, ye && ye[Et]);
13619
13619
  }
13620
13620
  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, $);
13621
13621
  }
@@ -13871,7 +13871,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13871
13871
  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");
13872
13872
  }
13873
13873
  wrap() {
13874
- return new Dl(be(this.lng, -180, 180), this.lat);
13874
+ return new Dl(ve(this.lng, -180, 180), this.lat);
13875
13875
  }
13876
13876
  toArray() {
13877
13877
  return [this.lng, this.lat];
@@ -14141,7 +14141,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14141
14141
  }
14142
14142
  query(c, d, p, b) {
14143
14143
  this.loadVTLayers();
14144
- const k = c.params || {}, E = Ii / c.tileSize / c.scale, T = xl(k.filter), M = c.queryGeometry, R = c.queryPadding * E, N = BS(M), $ = this.grid.query(N.minX - R, N.minY - R, N.maxX + R, N.maxY + R), H = BS(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, Bt) {
14144
+ const k = c.params || {}, E = Ii / c.tileSize / c.scale, T = xl(k.filter), M = c.queryGeometry, R = c.queryPadding * E, N = BS(M), $ = this.grid.query(N.minX - R, N.minY - R, N.maxX + R, N.maxY + R), H = BS(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, Bt) {
14145
14145
  for (const nt of we) if (Pe <= nt.x && He <= nt.y && dt >= nt.x && Bt >= nt.y) return !0;
14146
14146
  const lt = [new _(Pe, He), new _(Pe, Bt), new _(dt, Bt), new _(dt, He)];
14147
14147
  if (we.length > 2) {
@@ -14149,7 +14149,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14149
14149
  }
14150
14150
  for (let nt = 0; nt < we.length - 1; nt++) if (FR(we[nt], we[nt + 1], lt)) return !0;
14151
14151
  return !1;
14152
- }(c.cameraQueryGeometry, oe - R, ce - R, ke + R, ye + R));
14152
+ }(c.cameraQueryGeometry, oe - R, ce - R, Ee + R, ye + R));
14153
14153
  for (const oe of G) $.push(oe);
14154
14154
  $.sort(oz);
14155
14155
  const X = {};
@@ -14158,16 +14158,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14158
14158
  const ce = $[oe];
14159
14159
  if (ce === ee) continue;
14160
14160
  ee = ce;
14161
- const ke = this.featureIndexArray.get(ce);
14161
+ const Ee = this.featureIndexArray.get(ce);
14162
14162
  let ye = null;
14163
- this.loadMatchingFeature(X, ke.bucketIndex, ke.sourceLayerIndex, ke.featureIndex, T, k.layers, k.availableImages, d, p, b, (we, Pe, He) => (ye || (ye = Fc(we)), Pe.queryIntersectsFeature(M, we, He, ye, this.z, c.transform, E, c.pixelPosMatrix)));
14163
+ this.loadMatchingFeature(X, Ee.bucketIndex, Ee.sourceLayerIndex, Ee.featureIndex, T, k.layers, k.availableImages, d, p, b, (we, Pe, He) => (ye || (ye = Fc(we)), Pe.queryIntersectsFeature(M, we, He, ye, this.z, c.transform, E, c.pixelPosMatrix)));
14164
14164
  }
14165
14165
  return X;
14166
14166
  }
14167
14167
  loadMatchingFeature(c, d, p, b, k, E, T, M, R, N, $) {
14168
14168
  const H = this.bucketLayerIDs[d];
14169
14169
  if (E && !function(oe, ce) {
14170
- for (let ke = 0; ke < oe.length; ke++) if (ce.indexOf(oe[ke]) >= 0) return !0;
14170
+ for (let Ee = 0; Ee < oe.length; Ee++) if (ce.indexOf(oe[Ee]) >= 0) return !0;
14171
14171
  return !1;
14172
14172
  }(E, H)) return;
14173
14173
  const G = this.sourceLayerCoder.decode(p), X = this.vtLayers[G].feature(b);
@@ -14179,13 +14179,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14179
14179
  for (let oe = 0; oe < H.length; oe++) {
14180
14180
  const ce = H[oe];
14181
14181
  if (E && E.indexOf(ce) < 0) continue;
14182
- const ke = M[ce];
14183
- if (!ke) continue;
14182
+ const Ee = M[ce];
14183
+ if (!Ee) continue;
14184
14184
  let ye = {};
14185
- ee && N && (ye = N.getState(ke.sourceLayer || "_geojsonTileLayer", ee));
14185
+ ee && N && (ye = N.getState(Ee.sourceLayer || "_geojsonTileLayer", ee));
14186
14186
  const we = Ae({}, R[ce]);
14187
- we.paint = NS(we.paint, ke.paint, X, ye, T), we.layout = NS(we.layout, ke.layout, X, ye, T);
14188
- const Pe = !$ || $(X, ke, ye);
14187
+ we.paint = NS(we.paint, Ee.paint, X, ye, T), we.layout = NS(we.layout, Ee.layout, X, ye, T);
14188
+ const Pe = !$ || $(X, Ee, ye);
14189
14189
  if (!Pe) continue;
14190
14190
  const He = new zS(X, this.z, this.x, this.y, ee);
14191
14191
  He.layer = we;
@@ -14296,12 +14296,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14296
14296
  const R = k / 2, N = VS(u);
14297
14297
  let $ = 0, H = c - d, G = [];
14298
14298
  for (let X = 0; X < u.length - 1; X++) {
14299
- const ee = u[X], oe = u[X + 1], ce = ee.dist(oe), ke = oe.angleTo(ee);
14299
+ const ee = u[X], oe = u[X + 1], ce = ee.dist(oe), Ee = oe.angleTo(ee);
14300
14300
  for (; H + d < $ + ce; ) {
14301
14301
  H += d;
14302
14302
  const ye = (H - $) / ce, we = Tr.number(ee.x, oe.x, ye), Pe = Tr.number(ee.y, oe.y, ye);
14303
14303
  if (we >= 0 && we < M && Pe >= 0 && Pe < M && H - R >= 0 && H + R <= N) {
14304
- const He = new Il(we, Pe, ke, X);
14304
+ const He = new Il(we, Pe, Ee, X);
14305
14305
  He._round(), p && !$S(u, He, k, p, b) || G.push(He);
14306
14306
  }
14307
14307
  }
@@ -14315,13 +14315,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14315
14315
  const b = [], k = u.image, E = k.pixelRatio, T = k.paddedRect.w - 2 * yd, M = k.paddedRect.h - 2 * yd;
14316
14316
  let R = { x1: u.left, y1: u.top, x2: u.right, y2: u.bottom };
14317
14317
  const N = k.stretchX || [[0, T]], $ = k.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;
14318
- let ce = 0, ke = G, ye = 0, we = X, Pe = 0, He = ee, dt = 0, Bt = oe;
14318
+ let ce = 0, Ee = G, ye = 0, we = X, Pe = 0, He = ee, dt = 0, Bt = oe;
14319
14319
  if (k.content && p) {
14320
14320
  const Ne = k.content, Mt = Ne[2] - Ne[0], Et = Ne[3] - Ne[1];
14321
- (k.textFitWidth || k.textFitHeight) && (R = vS(u)), ce = Ym(N, 0, Ne[0]), ye = Ym($, 0, Ne[1]), ke = Ym(N, Ne[0], Ne[2]), we = Ym($, Ne[1], Ne[3]), Pe = Ne[0] - ce, dt = Ne[1] - ye, He = Mt - ke, Bt = Et - we;
14321
+ (k.textFitWidth || k.textFitHeight) && (R = vS(u)), ce = Ym(N, 0, Ne[0]), ye = Ym($, 0, Ne[1]), Ee = Ym(N, Ne[0], Ne[2]), we = Ym($, Ne[1], Ne[3]), Pe = Ne[0] - ce, dt = Ne[1] - ye, He = Mt - Ee, Bt = Et - we;
14322
14322
  }
14323
14323
  const lt = R.x1, nt = R.y1, Ct = R.x2 - lt, _t = R.y2 - nt, mt = (Ne, Mt, Et, Wt) => {
14324
- const Qn = Zm(Ne.stretch - ce, ke, Ct, lt), Xn = Xm(Ne.fixed - Pe, He, Ne.stretch, G), Bi = Zm(Mt.stretch - ye, we, _t, nt), Qs = Xm(Mt.fixed - dt, Bt, Mt.stretch, X), tr = Zm(Et.stretch - ce, ke, Ct, lt), Fi = Xm(Et.fixed - Pe, He, Et.stretch, G), Rr = Zm(Wt.stretch - ye, we, _t, nt), Or = Xm(Wt.fixed - dt, Bt, Wt.stretch, X), zr = new _(Qn, Bi), ki = new _(tr, Bi), $i = new _(tr, Rr), br = new _(Qn, Rr), nr = new _(Xn / E, Qs / E), Lr = new _(Fi / E, Or / E), ir = c * Math.PI / 180;
14324
+ const Qn = Zm(Ne.stretch - ce, Ee, Ct, lt), Xn = Xm(Ne.fixed - Pe, He, Ne.stretch, G), Bi = Zm(Mt.stretch - ye, we, _t, nt), Qs = Xm(Mt.fixed - dt, Bt, Mt.stretch, X), tr = Zm(Et.stretch - ce, Ee, Ct, lt), Fi = Xm(Et.fixed - Pe, He, Et.stretch, G), Rr = Zm(Wt.stretch - ye, we, _t, nt), Or = Xm(Wt.fixed - dt, Bt, Wt.stretch, X), zr = new _(Qn, Bi), ki = new _(tr, Bi), $i = new _(tr, Rr), br = new _(Qn, Rr), nr = new _(Xn / E, Qs / E), Lr = new _(Fi / E, Or / E), ir = c * Math.PI / 180;
14325
14325
  if (ir) {
14326
14326
  const Dn = Math.sin(ir), ni = Math.cos(ir), li = [ni, -Dn, Dn, ni];
14327
14327
  zr._matMult(li), ki._matMult(li), br._matMult(li), $i._matMult(li);
@@ -14371,8 +14371,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14371
14371
  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];
14372
14372
  const G = E.collisionPadding;
14373
14373
  if (G && (H.x1 -= G[0] * T, H.y1 -= G[1] * T, H.x2 += G[2] * T, H.y2 += G[3] * T), N) {
14374
- 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;
14375
- 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);
14374
+ 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;
14375
+ 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);
14376
14376
  }
14377
14377
  c.emplaceBack(d.x, d.y, H.x1, H.y1, H.x2, H.y2, p, b, k);
14378
14378
  }
@@ -14429,8 +14429,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14429
14429
  let $ = function(G) {
14430
14430
  let X = 0, ee = 0, oe = 0;
14431
14431
  const ce = G[0];
14432
- for (let ke = 0, ye = ce.length, we = ye - 1; ke < ye; we = ke++) {
14433
- const Pe = ce[ke], He = ce[we], dt = Pe.x * He.y - He.x * Pe.y;
14432
+ for (let Ee = 0, ye = ce.length, we = ye - 1; Ee < ye; we = Ee++) {
14433
+ const Pe = ce[Ee], He = ce[we], dt = Pe.x * He.y - He.x * Pe.y;
14434
14434
  ee += (Pe.x + He.x) * dt, oe += (Pe.y + He.y) * dt, X += 3 * dt;
14435
14435
  }
14436
14436
  return new vd(ee / X, oe / X, 0, G);
@@ -14560,7 +14560,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14560
14560
  function hz(u, c, d, p, b, k, E, T, M, R, N) {
14561
14561
  let $ = k.textMaxSize.evaluate(c, {});
14562
14562
  $ === void 0 && ($ = E);
14563
- const H = u.layers[0].layout, G = H.get("icon-offset").evaluate(c, {}, N), X = XS(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, Et, Wt = 1) {
14563
+ const H = u.layers[0].layout, G = H.get("icon-offset").evaluate(c, {}, N), X = XS(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, Et, Wt = 1) {
14564
14564
  const Qn = Ne.get("icon-padding").evaluate(Mt, {}, Et), Xn = Qn && Qn.values;
14565
14565
  return [Xn[0] * Wt, Xn[1] * Wt, Xn[2] * Wt, Xn[3] * Wt];
14566
14566
  }(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", Bt = H.get("icon-rotation-alignment") === "map" && H.get("symbol-placement") !== "point", lt = H.get("symbol-placement"), nt = ye / 2, Ct = H.get("icon-text-fit");
@@ -14610,7 +14610,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14610
14610
  return [jc, _r.length];
14611
14611
  }(Et.textAnchorOffsets, Sz);
14612
14612
  Et.symbolInstances.emplaceBack(Wt.x, Wt.y, Oa.right >= 0 ? Oa.right : -1, Oa.center >= 0 ? Oa.center : -1, Oa.left >= 0 ? Oa.left : -1, Oa.vertical || -1, qv, Gv, nk, mz, gz, yz, vz, bz, _z, xz, wz, Or, ek, tk, Ra, Cf, rk, 0, $i, xo, kz, Ez);
14613
- }(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, Bt, G, c, k, R, N, E);
14613
+ }(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, Bt, G, c, k, R, N, E);
14614
14614
  };
14615
14615
  if (lt === "line") for (const Ne of FS(c.geometry, 0, 0, Ii, Ii)) {
14616
14616
  const Mt = lz(Ne, ye, He, d.vertical || X, p, 24, ce, u.overscaling, Ii);
@@ -14629,7 +14629,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14629
14629
  else if (c.type === "Point") for (const Ne of c.geometry) for (const Mt of Ne) mt([Mt], new Il(Mt.x, Mt.y, 0));
14630
14630
  }
14631
14631
  function ZS(u, c, d, p, b, k, E, T, M, R, N, $, H, G, X) {
14632
- const ee = function(ke, ye, we, Pe, He, dt, Bt, lt) {
14632
+ const ee = function(Ee, ye, we, Pe, He, dt, Bt, lt) {
14633
14633
  const nt = Pe.layout.get("text-rotate").evaluate(dt, {}) * Math.PI / 180, Ct = [];
14634
14634
  for (const _t of ye.positionedLines) for (const mt of _t.positionedGlyphs) {
14635
14635
  if (!mt.rect) continue;
@@ -14659,7 +14659,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14659
14659
  }(0, d, T, b, k, E, p, u.allowVerticalPlacement), oe = u.textSizeData;
14660
14660
  let ce = null;
14661
14661
  oe.kind === "source" ? (ce = [Ho * b.layout.get("text-size").evaluate(E, {})], ce[0] > Ml && ct(`${u.layerIds[0]}: Value for "text-size" is >= ${xf}. Reduce your "text-size".`)) : oe.kind === "composite" && (ce = [Ho * G.compositeTextSizes[0].evaluate(E, {}, X), Ho * G.compositeTextSizes[1].evaluate(E, {}, X)], (ce[0] > Ml || ce[1] > Ml) && ct(`${u.layerIds[0]}: Value for "text-size" is >= ${xf}. Reduce your "text-size".`)), u.addSymbols(u.text, ee, ce, T, k, E, R, c, M.lineStartIndex, M.lineLength, H, X);
14662
- for (const ke of N) $[ke] = u.text.placedSymbolArray.length - 1;
14662
+ for (const Ee of N) $[Ee] = u.text.placedSymbolArray.length - 1;
14663
14663
  return 4 * ee.length;
14664
14664
  }
14665
14665
  function XS(u) {
@@ -14710,8 +14710,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14710
14710
  const N = M.pop() || 0, $ = M.pop() || 0, H = M.pop() || 0;
14711
14711
  if ($ - H <= T) {
14712
14712
  for (let oe = H; oe <= $; oe++) {
14713
- const ce = E[2 * oe], ke = E[2 * oe + 1];
14714
- ce >= c && ce <= p && ke >= d && ke <= b && R.push(k[oe]);
14713
+ const ce = E[2 * oe], Ee = E[2 * oe + 1];
14714
+ ce >= c && ce <= p && Ee >= d && Ee <= b && R.push(k[oe]);
14715
14715
  }
14716
14716
  continue;
14717
14717
  }
@@ -14872,8 +14872,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14872
14872
  }
14873
14873
  return d;
14874
14874
  }, a.N = Dl, a.O = AS, a.P = _, a.Q = MS, a.R = Ms, a.S = Ds, a.T = sf, a.U = F, a.V = U, a.W = Sn, a.X = Ii, a.Y = x, a.Z = wf, a._ = o, a.a = zn, a.a$ = function(u, c) {
14875
- var d = u[0], p = u[1], b = u[2], k = 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], Bt = c[6], lt = c[7], nt = c[8], Ct = c[9], _t = c[10], mt = c[11], Ne = c[12], Mt = c[13], Et = c[14], Wt = c[15];
14876
- return Math.abs(d - ke) <= Pr * Math.max(1, Math.abs(d), Math.abs(ke)) && Math.abs(p - ye) <= Pr * Math.max(1, Math.abs(p), Math.abs(ye)) && Math.abs(b - we) <= Pr * Math.max(1, Math.abs(b), Math.abs(we)) && Math.abs(k - Pe) <= Pr * Math.max(1, Math.abs(k), Math.abs(Pe)) && Math.abs(E - He) <= Pr * Math.max(1, Math.abs(E), Math.abs(He)) && Math.abs(T - dt) <= Pr * Math.max(1, Math.abs(T), Math.abs(dt)) && Math.abs(M - Bt) <= Pr * Math.max(1, Math.abs(M), Math.abs(Bt)) && Math.abs(R - lt) <= Pr * Math.max(1, Math.abs(R), Math.abs(lt)) && Math.abs(N - nt) <= Pr * Math.max(1, Math.abs(N), Math.abs(nt)) && Math.abs($ - Ct) <= Pr * Math.max(1, Math.abs($), Math.abs(Ct)) && Math.abs(H - _t) <= Pr * Math.max(1, Math.abs(H), Math.abs(_t)) && Math.abs(G - mt) <= Pr * Math.max(1, Math.abs(G), Math.abs(mt)) && Math.abs(X - Ne) <= Pr * Math.max(1, Math.abs(X), Math.abs(Ne)) && Math.abs(ee - Mt) <= Pr * Math.max(1, Math.abs(ee), Math.abs(Mt)) && Math.abs(oe - Et) <= Pr * Math.max(1, Math.abs(oe), Math.abs(Et)) && Math.abs(ce - Wt) <= Pr * Math.max(1, Math.abs(ce), Math.abs(Wt));
14875
+ var d = u[0], p = u[1], b = u[2], k = 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], Bt = c[6], lt = c[7], nt = c[8], Ct = c[9], _t = c[10], mt = c[11], Ne = c[12], Mt = c[13], Et = c[14], Wt = c[15];
14876
+ return Math.abs(d - Ee) <= Pr * Math.max(1, Math.abs(d), Math.abs(Ee)) && Math.abs(p - ye) <= Pr * Math.max(1, Math.abs(p), Math.abs(ye)) && Math.abs(b - we) <= Pr * Math.max(1, Math.abs(b), Math.abs(we)) && Math.abs(k - Pe) <= Pr * Math.max(1, Math.abs(k), Math.abs(Pe)) && Math.abs(E - He) <= Pr * Math.max(1, Math.abs(E), Math.abs(He)) && Math.abs(T - dt) <= Pr * Math.max(1, Math.abs(T), Math.abs(dt)) && Math.abs(M - Bt) <= Pr * Math.max(1, Math.abs(M), Math.abs(Bt)) && Math.abs(R - lt) <= Pr * Math.max(1, Math.abs(R), Math.abs(lt)) && Math.abs(N - nt) <= Pr * Math.max(1, Math.abs(N), Math.abs(nt)) && Math.abs($ - Ct) <= Pr * Math.max(1, Math.abs($), Math.abs(Ct)) && Math.abs(H - _t) <= Pr * Math.max(1, Math.abs(H), Math.abs(_t)) && Math.abs(G - mt) <= Pr * Math.max(1, Math.abs(G), Math.abs(mt)) && Math.abs(X - Ne) <= Pr * Math.max(1, Math.abs(X), Math.abs(Ne)) && Math.abs(ee - Mt) <= Pr * Math.max(1, Math.abs(ee), Math.abs(Mt)) && Math.abs(oe - Et) <= Pr * Math.max(1, Math.abs(oe), Math.abs(Et)) && Math.abs(ce - Wt) <= Pr * Math.max(1, Math.abs(ce), Math.abs(Wt));
14877
14877
  }, a.a0 = Yn, a.a1 = Lv, a.a2 = Ge, a.a3 = (u) => {
14878
14878
  const c = window.document.createElement("video");
14879
14879
  return c.muted = !0, new Promise((d) => {
@@ -14927,13 +14927,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14927
14927
  }), d = d.concat(b), function(E, T, M) {
14928
14928
  T = T || [];
14929
14929
  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);
14930
- let ee, oe, ce, ke, ye;
14930
+ let ee, oe, ce, Ee, ye;
14931
14931
  for (let we = 0, Pe = 0; we < R.length; we++) ee = R[we], Object.prototype.hasOwnProperty.call(H, ee) ? Pe++ : (Pn(M, { command: "removeLayer", args: [ee] }), G.splice(G.indexOf(ee, Pe), 1));
14932
- 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) ? (Pn(M, { command: "removeLayer", args: [ee] }), G.splice(G.lastIndexOf(ee, G.length - Pe), 1)) : Pe++, ke = G[G.length - we], Pn(M, { command: "addLayer", args: [H[ee], ke] }), G.splice(G.length - we, 0, ee), X[ee] = !0);
14932
+ 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) ? (Pn(M, { command: "removeLayer", args: [ee] }), G.splice(G.lastIndexOf(ee, G.length - Pe), 1)) : Pe++, Ee = G[G.length - we], Pn(M, { command: "addLayer", args: [H[ee], Ee] }), G.splice(G.length - we, 0, ee), X[ee] = !0);
14933
14933
  for (let we = 0; we < N.length; we++) if (ee = N[we], oe = $[ee], ce = H[ee], !X[ee] && !bn(oe, ce)) if (bn(oe.source, ce.source) && bn(oe["source-layer"], ce["source-layer"]) && bn(oe.type, ce.type)) {
14934
14934
  for (ye in qi(oe.layout, ce.layout, M, ee, null, "setLayoutProperty"), qi(oe.paint, ce.paint, M, ee, null, "setPaintProperty"), bn(oe.filter, ce.filter) || Pn(M, { command: "setFilter", args: [ee, ce.filter] }), bn(oe.minzoom, ce.minzoom) && bn(oe.maxzoom, ce.maxzoom) || Pn(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 ? qi(oe[ye], ce[ye], M, ee, ye.slice(6), "setPaintProperty") : bn(oe[ye], ce[ye]) || Pn(M, { command: "setLayerProperty", args: [ee, ye, ce[ye]] }));
14935
14935
  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 ? qi(oe[ye], ce[ye], M, ee, ye.slice(6), "setPaintProperty") : bn(oe[ye], ce[ye]) || Pn(M, { command: "setLayerProperty", args: [ee, ye, ce[ye]] }));
14936
- } else Pn(M, { command: "removeLayer", args: [ee] }), ke = G[G.lastIndexOf(ee) + 1], Pn(M, { command: "addLayer", args: [ce, ke] });
14936
+ } else Pn(M, { command: "removeLayer", args: [ee] }), Ee = G[G.lastIndexOf(ee) + 1], Pn(M, { command: "addLayer", args: [ce, Ee] });
14937
14937
  }(k, c.layers, d);
14938
14938
  } catch (p) {
14939
14939
  console.warn("Unable to compute style diff:", p), d = [{ command: "setStyle", args: [c] }];
@@ -15010,7 +15010,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15010
15010
  const d = [];
15011
15011
  for (const p in u) p in c || d.push(p);
15012
15012
  return d;
15013
- }, a.ac = Ee, a.ad = function(u, c, d) {
15013
+ }, a.ac = Se, a.ad = function(u, c, d) {
15014
15014
  var p = Math.sin(d), b = Math.cos(d), k = c[0], E = c[1], T = c[2], M = c[3], R = c[4], N = c[5], $ = c[6], H = c[7];
15015
15015
  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] = k * b + R * p, u[1] = E * b + N * p, u[2] = T * b + $ * p, u[3] = M * b + H * p, u[4] = R * b - k * p, u[5] = N * b - E * p, u[6] = $ * b - T * p, u[7] = H * b - M * p, u;
15016
15016
  }, a.ae = function(u) {
@@ -15020,7 +15020,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15020
15020
  let d = 0, p = 0;
15021
15021
  if (u.kind === "constant") p = u.layoutSize;
15022
15022
  else if (u.kind !== "source") {
15023
- const { interpolationType: b, minZoom: k, maxZoom: E } = u, T = b ? Ee(Ar.interpolationFactor(b, c, k, E), 0, 1) : 0;
15023
+ const { interpolationType: b, minZoom: k, maxZoom: E } = u, T = b ? Se(Ar.interpolationFactor(b, c, k, E), 0, 1) : 0;
15024
15024
  u.kind === "camera" ? p = Tr.number(u.minSize, u.maxSize, T) : d = T;
15025
15025
  }
15026
15026
  return { uSizeT: d, uSize: p };
@@ -15036,8 +15036,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15036
15036
  for (const k of u) c = Math.min(c, k.x), d = Math.min(d, k.y), p = Math.max(p, k.x), b = Math.max(b, k.y);
15037
15037
  return [c, d, p, b];
15038
15038
  }, a.ap = Ri, a.ar = Mv, a.as = function(u, c) {
15039
- var d = c[0], p = c[1], b = c[2], k = 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 - k * E, Pe = p * M - b * T, He = p * R - k * T, dt = b * R - k * M, Bt = N * ee - $ * X, lt = N * oe - H * X, nt = N * ce - G * X, Ct = $ * oe - H * ee, _t = $ * ce - G * ee, mt = H * ce - G * oe, Ne = ke * mt - ye * _t + we * Ct + Pe * nt - He * lt + dt * Bt;
15040
- return Ne ? (u[0] = (T * mt - M * _t + R * Ct) * (Ne = 1 / Ne), u[1] = (b * _t - p * mt - k * Ct) * Ne, u[2] = (ee * dt - oe * He + ce * Pe) * Ne, u[3] = (H * He - $ * dt - G * Pe) * Ne, u[4] = (M * nt - E * mt - R * lt) * Ne, u[5] = (d * mt - b * nt + k * 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 * Bt) * Ne, u[9] = (p * nt - d * _t - k * Bt) * Ne, u[10] = (X * He - ee * we + ce * ke) * Ne, u[11] = ($ * we - N * He - G * ke) * Ne, u[12] = (T * lt - E * Ct - M * Bt) * Ne, u[13] = (d * Ct - p * lt + b * Bt) * Ne, u[14] = (ee * ye - X * Pe - oe * ke) * Ne, u[15] = (N * Pe - $ * ye + H * ke) * Ne, u) : null;
15039
+ var d = c[0], p = c[1], b = c[2], k = 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 - k * E, Pe = p * M - b * T, He = p * R - k * T, dt = b * R - k * M, Bt = N * ee - $ * X, lt = N * oe - H * X, nt = N * ce - G * X, Ct = $ * oe - H * ee, _t = $ * ce - G * ee, mt = H * ce - G * oe, Ne = Ee * mt - ye * _t + we * Ct + Pe * nt - He * lt + dt * Bt;
15040
+ return Ne ? (u[0] = (T * mt - M * _t + R * Ct) * (Ne = 1 / Ne), u[1] = (b * _t - p * mt - k * Ct) * Ne, u[2] = (ee * dt - oe * He + ce * Pe) * Ne, u[3] = (H * He - $ * dt - G * Pe) * Ne, u[4] = (M * nt - E * mt - R * lt) * Ne, u[5] = (d * mt - b * nt + k * 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 * Bt) * Ne, u[9] = (p * nt - d * _t - k * Bt) * Ne, u[10] = (X * He - ee * we + ce * Ee) * Ne, u[11] = ($ * we - N * He - G * Ee) * Ne, u[12] = (T * lt - E * Ct - M * Bt) * Ne, u[13] = (d * Ct - p * lt + b * Bt) * Ne, u[14] = (ee * ye - X * Pe - oe * Ee) * Ne, u[15] = (N * Pe - $ * ye + H * Ee) * Ne, u) : null;
15041
15041
  }, a.at = Bv, a.au = Av, a.av = Fv, a.aw = function() {
15042
15042
  const u = {}, c = Me.$version;
15043
15043
  for (const d in Me.$root) {
@@ -15060,13 +15060,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15060
15060
  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;
15061
15061
  }, a.b2 = function(u, c) {
15062
15062
  return u[0] * c[0] + u[1] * c[1] + u[2] * c[2] + u[3] * c[3];
15063
- }, a.b3 = be, a.b4 = PS, a.b5 = DS, a.b6 = function(u, c, d, p, b) {
15063
+ }, a.b3 = ve, a.b4 = PS, a.b5 = DS, a.b6 = function(u, c, d, p, b) {
15064
15064
  var k, E = 1 / Math.tan(c / 2);
15065
15065
  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) * (k = 1 / (p - b)), u[14] = 2 * b * p * k) : (u[10] = -1, u[14] = -2 * p), u;
15066
15066
  }, a.b7 = function(u, c, d) {
15067
15067
  var p = Math.sin(d), b = Math.cos(d), k = c[4], E = c[5], T = c[6], M = c[7], R = c[8], N = c[9], $ = c[10], H = c[11];
15068
15068
  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] = k * b + R * p, u[5] = E * b + N * p, u[6] = T * b + $ * p, u[7] = M * b + H * p, u[8] = R * b - k * p, u[9] = N * b - E * p, u[10] = $ * b - T * p, u[11] = H * b - M * p, u;
15069
- }, a.b8 = Q, a.b9 = Z, a.bA = rS, a.bB = function(u) {
15069
+ }, a.b8 = J, a.b9 = Z, a.bA = rS, a.bB = function(u) {
15070
15070
  return u.message === fn;
15071
15071
  }, a.bC = qu, a.bD = Aa, a.ba = function(u) {
15072
15072
  return u * Math.PI / 180;
@@ -15133,13 +15133,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15133
15133
  _t && (X.horizontal[lt] = _t), Ct(), tf(we) && E && T && (X.vertical = Um(ee, u.glyphMap, u.glyphPositions, u.imagePositions, N, nt, k, dt, lt, He, ce, a.ah.vertical, !1, H, $));
15134
15134
  }
15135
15135
  }
15136
- let ke = !1;
15136
+ let Ee = !1;
15137
15137
  if (R.icon && R.icon.name) {
15138
15138
  const we = u.imageMap[R.icon.name];
15139
- 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));
15139
+ 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));
15140
15140
  }
15141
15141
  const ye = XS(X.horizontal) || X.vertical;
15142
- u.bucket.iconsInText = !!ye && ye.iconsInText, (ye || oe) && hz(u.bucket, R, X, oe, u.imageMap, b, H, G, ce, ke, u.canonical);
15142
+ u.bucket.iconsInText = !!ye && ye.iconsInText, (ye || oe) && hz(u.bucket, R, X, oe, u.imageMap, b, H, G, ce, Ee, u.canonical);
15143
15143
  }
15144
15144
  u.showCollisionBoxes && u.bucket.generateCollisionDebugBuffers();
15145
15145
  }, a.bq = wv, a.br = bv, a.bs = xv, a.bt = Tl, a.bu = kv, a.bv = class {
@@ -15202,14 +15202,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15202
15202
  }
15203
15203
  for (const se of W) delete this.keyCache[se], delete this._layerConfigs[se], delete this._layers[se];
15204
15204
  this.familiesBySource = {};
15205
- const J = a.bk(Object.values(this._layerConfigs), this.keyCache);
15206
- for (const se of J) {
15207
- const ge = se.map((De) => this._layers[De.id]), ve = ge[0];
15208
- if (ve.visibility === "none") continue;
15209
- const Se = ve.source || "";
15210
- let fe = this.familiesBySource[Se];
15211
- fe || (fe = this.familiesBySource[Se] = {});
15212
- const ze = ve.sourceLayer || "_geojsonTileLayer";
15205
+ const Q = a.bk(Object.values(this._layerConfigs), this.keyCache);
15206
+ for (const se of Q) {
15207
+ const ge = se.map((De) => this._layers[De.id]), be = ge[0];
15208
+ if (be.visibility === "none") continue;
15209
+ const ke = be.source || "";
15210
+ let fe = this.familiesBySource[ke];
15211
+ fe || (fe = this.familiesBySource[ke] = {});
15212
+ const ze = be.sourceLayer || "_geojsonTileLayer";
15213
15213
  let Fe = fe[ze];
15214
15214
  Fe || (Fe = fe[ze] = []), Fe.push(ge);
15215
15215
  }
@@ -15217,27 +15217,27 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15217
15217
  }
15218
15218
  class f {
15219
15219
  constructor(q) {
15220
- const W = {}, J = [];
15221
- for (const Se in q) {
15222
- const fe = q[Se], ze = W[Se] = {};
15220
+ const W = {}, Q = [];
15221
+ for (const ke in q) {
15222
+ const fe = q[ke], ze = W[ke] = {};
15223
15223
  for (const Fe in fe) {
15224
15224
  const De = fe[+Fe];
15225
15225
  if (!De || De.bitmap.width === 0 || De.bitmap.height === 0) continue;
15226
15226
  const Xe = { x: 0, y: 0, w: De.bitmap.width + 2, h: De.bitmap.height + 2 };
15227
- J.push(Xe), ze[Fe] = { rect: Xe, metrics: De.metrics };
15227
+ Q.push(Xe), ze[Fe] = { rect: Xe, metrics: De.metrics };
15228
15228
  }
15229
15229
  }
15230
- const { w: se, h: ge } = a.p(J), ve = new a.o({ width: se || 1, height: ge || 1 });
15231
- for (const Se in q) {
15232
- const fe = q[Se];
15230
+ const { w: se, h: ge } = a.p(Q), be = new a.o({ width: se || 1, height: ge || 1 });
15231
+ for (const ke in q) {
15232
+ const fe = q[ke];
15233
15233
  for (const ze in fe) {
15234
15234
  const Fe = fe[+ze];
15235
15235
  if (!Fe || Fe.bitmap.width === 0 || Fe.bitmap.height === 0) continue;
15236
- const De = W[Se][ze].rect;
15237
- a.o.copy(Fe.bitmap, ve, { x: 0, y: 0 }, { x: De.x + 1, y: De.y + 1 }, Fe.bitmap);
15236
+ const De = W[ke][ze].rect;
15237
+ a.o.copy(Fe.bitmap, be, { x: 0, y: 0 }, { x: De.x + 1, y: De.y + 1 }, Fe.bitmap);
15238
15238
  }
15239
15239
  }
15240
- this.image = ve, this.positions = W;
15240
+ this.image = be, this.positions = W;
15241
15241
  }
15242
15242
  }
15243
15243
  a.bl("GlyphAtlas", f);
@@ -15245,24 +15245,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15245
15245
  constructor(q) {
15246
15246
  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 = [];
15247
15247
  }
15248
- parse(q, W, J, se) {
15248
+ parse(q, W, Q, se) {
15249
15249
  return a._(this, void 0, void 0, function* () {
15250
15250
  this.status = "parsing", this.data = q, this.collisionBoxArray = new a.a5();
15251
- const ge = new a.bm(Object.keys(q.layers).sort()), ve = new a.bn(this.tileID, this.promoteId);
15252
- ve.bucketLayerIDs = [];
15253
- const Se = {}, fe = { featureIndex: ve, iconDependencies: {}, patternDependencies: {}, glyphDependencies: {}, availableImages: J }, ze = W.familiesBySource[this.source];
15251
+ const ge = new a.bm(Object.keys(q.layers).sort()), be = new a.bn(this.tileID, this.promoteId);
15252
+ be.bucketLayerIDs = [];
15253
+ const ke = {}, fe = { featureIndex: be, iconDependencies: {}, patternDependencies: {}, glyphDependencies: {}, availableImages: Q }, ze = W.familiesBySource[this.source];
15254
15254
  for (const on in ze) {
15255
15255
  const Vn = q.layers[on];
15256
15256
  if (!Vn) continue;
15257
15257
  Vn.version === 1 && a.w(`Vector tile source "${this.source}" layer "${on}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
15258
15258
  const di = ge.encode(on), Ni = [];
15259
15259
  for (let Yi = 0; Yi < Vn.length; Yi++) {
15260
- const fr = Vn.feature(Yi), ul = ve.getId(fr, on);
15260
+ const fr = Vn.feature(Yi), ul = be.getId(fr, on);
15261
15261
  Ni.push({ feature: fr, id: ul, index: Yi, sourceLayerIndex: di });
15262
15262
  }
15263
15263
  for (const Yi of ze[on]) {
15264
15264
  const fr = Yi[0];
15265
- fr.source !== this.source && a.w(`layer.source = ${fr.source} does not equal this.source = ${this.source}`), fr.minzoom && this.zoom < Math.floor(fr.minzoom) || fr.maxzoom && this.zoom >= fr.maxzoom || fr.visibility !== "none" && (g(Yi, this.zoom, J), (Se[fr.id] = fr.createBucket({ index: ve.bucketLayerIDs.length, layers: Yi, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: di, sourceID: this.source })).populate(Ni, fe, this.tileID.canonical), ve.bucketLayerIDs.push(Yi.map((ul) => ul.id)));
15265
+ fr.source !== this.source && a.w(`layer.source = ${fr.source} does not equal this.source = ${this.source}`), fr.minzoom && this.zoom < Math.floor(fr.minzoom) || fr.maxzoom && this.zoom >= fr.maxzoom || fr.visibility !== "none" && (g(Yi, this.zoom, Q), (ke[fr.id] = fr.createBucket({ index: be.bucketLayerIDs.length, layers: Yi, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: di, sourceID: this.source })).populate(Ni, fe, this.tileID.canonical), be.bucketLayerIDs.push(Yi.map((ul) => ul.id)));
15266
15266
  }
15267
15267
  }
15268
15268
  const Fe = a.aF(fe.glyphDependencies, (on) => Object.keys(on).map(Number));
@@ -15285,61 +15285,61 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15285
15285
  this.inFlightDependencies.push(on), En = se.sendAsync({ type: "GI", data: { icons: Nt, source: this.source, tileID: this.tileID, type: "patterns" } }, on);
15286
15286
  }
15287
15287
  const [tn, Cn, pn] = yield Promise.all([De, It, En]), Mi = new f(tn), mi = new a.bo(Cn, pn);
15288
- for (const on in Se) {
15289
- const Vn = Se[on];
15290
- Vn instanceof a.a6 ? (g(Vn.layers, this.zoom, J), a.bp({ bucket: Vn, glyphMap: tn, glyphPositions: Mi.positions, imageMap: Cn, imagePositions: mi.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : Vn.hasPattern && (Vn instanceof a.bq || Vn instanceof a.br || Vn instanceof a.bs) && (g(Vn.layers, this.zoom, J), Vn.addFeatures(fe, this.tileID.canonical, mi.patternPositions));
15288
+ for (const on in ke) {
15289
+ const Vn = ke[on];
15290
+ Vn instanceof a.a6 ? (g(Vn.layers, this.zoom, Q), a.bp({ bucket: Vn, glyphMap: tn, glyphPositions: Mi.positions, imageMap: Cn, imagePositions: mi.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : Vn.hasPattern && (Vn instanceof a.bq || Vn instanceof a.br || Vn instanceof a.bs) && (g(Vn.layers, this.zoom, Q), Vn.addFeatures(fe, this.tileID.canonical, mi.patternPositions));
15291
15291
  }
15292
- return this.status = "done", { buckets: Object.values(Se).filter((on) => !on.isEmpty()), featureIndex: ve, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Mi.image, imageAtlas: mi, glyphMap: this.returnDependencies ? tn : null, iconMap: this.returnDependencies ? Cn : null, glyphPositions: this.returnDependencies ? Mi.positions : null };
15292
+ return this.status = "done", { buckets: Object.values(ke).filter((on) => !on.isEmpty()), featureIndex: be, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Mi.image, imageAtlas: mi, glyphMap: this.returnDependencies ? tn : null, iconMap: this.returnDependencies ? Cn : null, glyphPositions: this.returnDependencies ? Mi.positions : null };
15293
15293
  });
15294
15294
  }
15295
15295
  }
15296
15296
  function g(le, q, W) {
15297
- const J = new a.z(q);
15298
- for (const se of le) se.recalculate(J, W);
15297
+ const Q = new a.z(q);
15298
+ for (const se of le) se.recalculate(Q, W);
15299
15299
  }
15300
15300
  class _ {
15301
- constructor(q, W, J) {
15302
- this.actor = q, this.layerIndex = W, this.availableImages = J, this.fetching = {}, this.loading = {}, this.loaded = {};
15301
+ constructor(q, W, Q) {
15302
+ this.actor = q, this.layerIndex = W, this.availableImages = Q, this.fetching = {}, this.loading = {}, this.loaded = {};
15303
15303
  }
15304
15304
  loadVectorTile(q, W) {
15305
15305
  return a._(this, void 0, void 0, function* () {
15306
- const J = yield a.l(q.request, W);
15306
+ const Q = yield a.l(q.request, W);
15307
15307
  try {
15308
- return { vectorTile: new a.bt.VectorTile(new a.bu(J.data)), rawData: J.data, cacheControl: J.cacheControl, expires: J.expires };
15308
+ return { vectorTile: new a.bt.VectorTile(new a.bu(Q.data)), rawData: Q.data, cacheControl: Q.cacheControl, expires: Q.expires };
15309
15309
  } catch (se) {
15310
- const ge = new Uint8Array(J.data);
15311
- let ve = `Unable to parse the tile at ${q.request.url}, `;
15312
- 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);
15310
+ const ge = new Uint8Array(Q.data);
15311
+ let be = `Unable to parse the tile at ${q.request.url}, `;
15312
+ 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);
15313
15313
  }
15314
15314
  });
15315
15315
  }
15316
15316
  loadTile(q) {
15317
15317
  return a._(this, void 0, void 0, function* () {
15318
- const W = q.uid, J = !!(q && q.request && q.request.collectResourceTiming) && new a.bv(q.request), se = new m(q);
15318
+ const W = q.uid, Q = !!(q && q.request && q.request.collectResourceTiming) && new a.bv(q.request), se = new m(q);
15319
15319
  this.loading[W] = se;
15320
15320
  const ge = new AbortController();
15321
15321
  se.abort = ge;
15322
15322
  try {
15323
- const ve = yield this.loadVectorTile(q, ge);
15324
- if (delete this.loading[W], !ve) return null;
15325
- const Se = ve.rawData, fe = {};
15326
- ve.expires && (fe.expires = ve.expires), ve.cacheControl && (fe.cacheControl = ve.cacheControl);
15323
+ const be = yield this.loadVectorTile(q, ge);
15324
+ if (delete this.loading[W], !be) return null;
15325
+ const ke = be.rawData, fe = {};
15326
+ be.expires && (fe.expires = be.expires), be.cacheControl && (fe.cacheControl = be.cacheControl);
15327
15327
  const ze = {};
15328
- if (J) {
15329
- const De = J.finish();
15328
+ if (Q) {
15329
+ const De = Q.finish();
15330
15330
  De && (ze.resourceTiming = JSON.parse(JSON.stringify(De)));
15331
15331
  }
15332
- se.vectorTile = ve.vectorTile;
15333
- const Fe = se.parse(ve.vectorTile, this.layerIndex, this.availableImages, this.actor);
15334
- this.loaded[W] = se, this.fetching[W] = { rawTileData: Se, cacheControl: fe, resourceTiming: ze };
15332
+ se.vectorTile = be.vectorTile;
15333
+ const Fe = se.parse(be.vectorTile, this.layerIndex, this.availableImages, this.actor);
15334
+ this.loaded[W] = se, this.fetching[W] = { rawTileData: ke, cacheControl: fe, resourceTiming: ze };
15335
15335
  try {
15336
15336
  const De = yield Fe;
15337
- return a.e({ rawTileData: Se.slice(0) }, De, fe, ze);
15337
+ return a.e({ rawTileData: ke.slice(0) }, De, fe, ze);
15338
15338
  } finally {
15339
15339
  delete this.fetching[W];
15340
15340
  }
15341
- } catch (ve) {
15342
- throw delete this.loading[W], se.status = "done", this.loaded[W] = se, ve;
15341
+ } catch (be) {
15342
+ throw delete this.loading[W], se.status = "done", this.loaded[W] = se, be;
15343
15343
  }
15344
15344
  });
15345
15345
  }
@@ -15347,23 +15347,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15347
15347
  return a._(this, void 0, void 0, function* () {
15348
15348
  const W = q.uid;
15349
15349
  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");
15350
- const J = this.loaded[W];
15351
- if (J.showCollisionBoxes = q.showCollisionBoxes, J.status === "parsing") {
15352
- const se = yield J.parse(J.vectorTile, this.layerIndex, this.availableImages, this.actor);
15350
+ const Q = this.loaded[W];
15351
+ if (Q.showCollisionBoxes = q.showCollisionBoxes, Q.status === "parsing") {
15352
+ const se = yield Q.parse(Q.vectorTile, this.layerIndex, this.availableImages, this.actor);
15353
15353
  let ge;
15354
15354
  if (this.fetching[W]) {
15355
- const { rawTileData: ve, cacheControl: Se, resourceTiming: fe } = this.fetching[W];
15356
- delete this.fetching[W], ge = a.e({ rawTileData: ve.slice(0) }, se, Se, fe);
15355
+ const { rawTileData: be, cacheControl: ke, resourceTiming: fe } = this.fetching[W];
15356
+ delete this.fetching[W], ge = a.e({ rawTileData: be.slice(0) }, se, ke, fe);
15357
15357
  } else ge = se;
15358
15358
  return ge;
15359
15359
  }
15360
- if (J.status === "done" && J.vectorTile) return J.parse(J.vectorTile, this.layerIndex, this.availableImages, this.actor);
15360
+ if (Q.status === "done" && Q.vectorTile) return Q.parse(Q.vectorTile, this.layerIndex, this.availableImages, this.actor);
15361
15361
  });
15362
15362
  }
15363
15363
  abortTile(q) {
15364
15364
  return a._(this, void 0, void 0, function* () {
15365
- const W = this.loading, J = q.uid;
15366
- W && W[J] && W[J].abort && (W[J].abort.abort(), delete W[J]);
15365
+ const W = this.loading, Q = q.uid;
15366
+ W && W[Q] && W[Q].abort && (W[Q].abort.abort(), delete W[Q]);
15367
15367
  });
15368
15368
  }
15369
15369
  removeTile(q) {
@@ -15378,13 +15378,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15378
15378
  }
15379
15379
  loadTile(q) {
15380
15380
  return a._(this, void 0, void 0, function* () {
15381
- 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);
15381
+ 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);
15382
15382
  return this.loaded = this.loaded || {}, this.loaded[W] = Xe, Xe;
15383
15383
  });
15384
15384
  }
15385
15385
  removeTile(q) {
15386
- const W = this.loaded, J = q.uid;
15387
- W && W[J] && delete W[J];
15386
+ const W = this.loaded, Q = q.uid;
15387
+ W && W[Q] && delete W[Q];
15388
15388
  }
15389
15389
  }
15390
15390
  function C(le, q) {
@@ -15394,62 +15394,62 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15394
15394
  }
15395
15395
  }
15396
15396
  function D(le, q) {
15397
- for (var W = 0, J = 0, se = 0, ge = le.length, ve = ge - 1; se < ge; ve = se++) {
15398
- var Se = (le[se][0] - le[ve][0]) * (le[ve][1] + le[se][1]), fe = W + Se;
15399
- J += Math.abs(W) >= Math.abs(Se) ? W - fe + Se : Se - fe + W, W = fe;
15397
+ for (var W = 0, Q = 0, se = 0, ge = le.length, be = ge - 1; se < ge; be = se++) {
15398
+ var ke = (le[se][0] - le[be][0]) * (le[be][1] + le[se][1]), fe = W + ke;
15399
+ Q += Math.abs(W) >= Math.abs(ke) ? W - fe + ke : ke - fe + W, W = fe;
15400
15400
  }
15401
- W + J >= 0 != !!q && le.reverse();
15401
+ W + Q >= 0 != !!q && le.reverse();
15402
15402
  }
15403
15403
  var z = a.by(function le(q, W) {
15404
- var J, se = q && q.type;
15405
- if (se === "FeatureCollection") for (J = 0; J < q.features.length; J++) le(q.features[J], W);
15406
- else if (se === "GeometryCollection") for (J = 0; J < q.geometries.length; J++) le(q.geometries[J], W);
15404
+ var Q, se = q && q.type;
15405
+ if (se === "FeatureCollection") for (Q = 0; Q < q.features.length; Q++) le(q.features[Q], W);
15406
+ else if (se === "GeometryCollection") for (Q = 0; Q < q.geometries.length; Q++) le(q.geometries[Q], W);
15407
15407
  else if (se === "Feature") le(q.geometry, W);
15408
15408
  else if (se === "Polygon") C(q.coordinates, W);
15409
- else if (se === "MultiPolygon") for (J = 0; J < q.coordinates.length; J++) C(q.coordinates[J], W);
15409
+ else if (se === "MultiPolygon") for (Q = 0; Q < q.coordinates.length; Q++) C(q.coordinates[Q], W);
15410
15410
  return q;
15411
15411
  });
15412
15412
  const O = a.bt.VectorTileFeature.prototype.toGeoJSON;
15413
- var F = { exports: {} }, U = a.bz, Q = a.bt.VectorTileFeature, Z = Ee;
15414
- function Ee(le, q) {
15413
+ var F = { exports: {} }, U = a.bz, J = a.bt.VectorTileFeature, Z = Se;
15414
+ function Se(le, q) {
15415
15415
  this.options = q || {}, this.features = le, this.length = le.length;
15416
15416
  }
15417
- function be(le, q) {
15417
+ function ve(le, q) {
15418
15418
  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;
15419
15419
  }
15420
- Ee.prototype.feature = function(le) {
15421
- return new be(this.features[le], this.options.extent);
15422
- }, be.prototype.loadGeometry = function() {
15420
+ Se.prototype.feature = function(le) {
15421
+ return new ve(this.features[le], this.options.extent);
15422
+ }, ve.prototype.loadGeometry = function() {
15423
15423
  var le = this.rawGeometry;
15424
15424
  this.geometry = [];
15425
15425
  for (var q = 0; q < le.length; q++) {
15426
- for (var W = le[q], J = [], se = 0; se < W.length; se++) J.push(new U(W[se][0], W[se][1]));
15427
- this.geometry.push(J);
15426
+ for (var W = le[q], Q = [], se = 0; se < W.length; se++) Q.push(new U(W[se][0], W[se][1]));
15427
+ this.geometry.push(Q);
15428
15428
  }
15429
15429
  return this.geometry;
15430
- }, be.prototype.bbox = function() {
15430
+ }, ve.prototype.bbox = function() {
15431
15431
  this.geometry || this.loadGeometry();
15432
- 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++) {
15433
- var fe = ve[Se];
15434
- q = Math.min(q, fe.x), W = Math.max(W, fe.x), J = Math.min(J, fe.y), se = Math.max(se, fe.y);
15432
+ 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++) {
15433
+ var fe = be[ke];
15434
+ q = Math.min(q, fe.x), W = Math.max(W, fe.x), Q = Math.min(Q, fe.y), se = Math.max(se, fe.y);
15435
15435
  }
15436
- return [q, J, W, se];
15437
- }, be.prototype.toGeoJSON = Q.prototype.toGeoJSON;
15436
+ return [q, Q, W, se];
15437
+ }, ve.prototype.toGeoJSON = J.prototype.toGeoJSON;
15438
15438
  var Ae = a.bA, $e = Z;
15439
15439
  function Oe(le) {
15440
15440
  var q = new Ae();
15441
- return function(W, J) {
15442
- for (var se in W.layers) J.writeMessage(3, pt, W.layers[se]);
15441
+ return function(W, Q) {
15442
+ for (var se in W.layers) Q.writeMessage(3, pt, W.layers[se]);
15443
15443
  }(le, q), q.finish();
15444
15444
  }
15445
15445
  function pt(le, q) {
15446
15446
  var W;
15447
15447
  q.writeVarintField(15, le.version || 1), q.writeStringField(1, le.name || ""), q.writeVarintField(5, le.extent || 4096);
15448
- var J = { keys: [], values: [], keycache: {}, valuecache: {} };
15449
- for (W = 0; W < le.length; W++) J.feature = le.feature(W), q.writeMessage(2, ot, J);
15450
- var se = J.keys;
15448
+ var Q = { keys: [], values: [], keycache: {}, valuecache: {} };
15449
+ for (W = 0; W < le.length; W++) Q.feature = le.feature(W), q.writeMessage(2, ot, Q);
15450
+ var se = Q.keys;
15451
15451
  for (W = 0; W < se.length; W++) q.writeStringField(3, se[W]);
15452
- var ge = J.values;
15452
+ var ge = Q.values;
15453
15453
  for (W = 0; W < ge.length; W++) q.writeMessage(4, Qt, ge[W]);
15454
15454
  }
15455
15455
  function ot(le, q) {
@@ -15457,15 +15457,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15457
15457
  W.id !== void 0 && q.writeVarintField(1, W.id), q.writeMessage(2, me, le), q.writeVarintField(3, W.type), q.writeMessage(4, Gt, W);
15458
15458
  }
15459
15459
  function me(le, q) {
15460
- var W = le.feature, J = le.keys, se = le.values, ge = le.keycache, ve = le.valuecache;
15461
- for (var Se in W.properties) {
15462
- var fe = W.properties[Se], ze = ge[Se];
15460
+ var W = le.feature, Q = le.keys, se = le.values, ge = le.keycache, be = le.valuecache;
15461
+ for (var ke in W.properties) {
15462
+ var fe = W.properties[ke], ze = ge[ke];
15463
15463
  if (fe !== null) {
15464
- ze === void 0 && (J.push(Se), ge[Se] = ze = J.length - 1), q.writeVarint(ze);
15464
+ ze === void 0 && (Q.push(ke), ge[ke] = ze = Q.length - 1), q.writeVarint(ze);
15465
15465
  var Fe = typeof fe;
15466
15466
  Fe !== "string" && Fe !== "boolean" && Fe !== "number" && (fe = JSON.stringify(fe));
15467
- var De = Fe + ":" + fe, Xe = ve[De];
15468
- Xe === void 0 && (se.push(fe), ve[De] = Xe = se.length - 1), q.writeVarint(Xe);
15467
+ var De = Fe + ":" + fe, Xe = be[De];
15468
+ Xe === void 0 && (se.push(fe), be[De] = Xe = se.length - 1), q.writeVarint(Xe);
15469
15469
  }
15470
15470
  }
15471
15471
  }
@@ -15476,15 +15476,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15476
15476
  return le << 1 ^ le >> 31;
15477
15477
  }
15478
15478
  function Gt(le, q) {
15479
- for (var W = le.loadGeometry(), J = le.type, se = 0, ge = 0, ve = W.length, Se = 0; Se < ve; Se++) {
15480
- var fe = W[Se], ze = 1;
15481
- J === 1 && (ze = fe.length), q.writeVarint(ct(1, ze));
15482
- for (var Fe = J === 3 ? fe.length - 1 : fe.length, De = 0; De < Fe; De++) {
15483
- De === 1 && J !== 1 && q.writeVarint(ct(2, Fe - 1));
15479
+ for (var W = le.loadGeometry(), Q = le.type, se = 0, ge = 0, be = W.length, ke = 0; ke < be; ke++) {
15480
+ var fe = W[ke], ze = 1;
15481
+ Q === 1 && (ze = fe.length), q.writeVarint(ct(1, ze));
15482
+ for (var Fe = Q === 3 ? fe.length - 1 : fe.length, De = 0; De < Fe; De++) {
15483
+ De === 1 && Q !== 1 && q.writeVarint(ct(2, Fe - 1));
15484
15484
  var Xe = fe[De].x - se, It = fe[De].y - ge;
15485
15485
  q.writeVarint(Lt(Xe)), q.writeVarint(Lt(It)), se += Xe, ge += It;
15486
15486
  }
15487
- J === 3 && q.writeVarint(ct(7, 1));
15487
+ Q === 3 && q.writeVarint(ct(7, 1));
15488
15488
  }
15489
15489
  }
15490
15490
  function Qt(le, q) {
@@ -15494,7 +15494,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15494
15494
  F.exports = Oe, F.exports.fromVectorTileJs = Oe, F.exports.fromGeojsonVt = function(le, q) {
15495
15495
  q = q || {};
15496
15496
  var W = {};
15497
- 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;
15497
+ 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;
15498
15498
  return Oe({ layers: W });
15499
15499
  }, F.exports.GeoJSONWrapper = $e;
15500
15500
  var jt = a.by(F.exports);
@@ -15506,36 +15506,36 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15506
15506
  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 = [];
15507
15507
  }
15508
15508
  load(q) {
15509
- const { log: W, minZoom: J, maxZoom: se } = this.options;
15509
+ const { log: W, minZoom: Q, maxZoom: se } = this.options;
15510
15510
  W && console.time("total time");
15511
15511
  const ge = `prepare ${q.length} points`;
15512
15512
  W && console.time(ge), this.points = q;
15513
- const ve = [];
15513
+ const be = [];
15514
15514
  for (let fe = 0; fe < q.length; fe++) {
15515
15515
  const ze = q[fe];
15516
15516
  if (!ze.geometry) continue;
15517
15517
  const [Fe, De] = ze.geometry.coordinates, Xe = Sn(Ie(Fe)), It = Sn(Ze(De));
15518
- ve.push(Xe, It, 1 / 0, fe, -1, 1), this.options.reduce && ve.push(0);
15518
+ be.push(Xe, It, 1 / 0, fe, -1, 1), this.options.reduce && be.push(0);
15519
15519
  }
15520
- let Se = this.trees[se + 1] = this._createTree(ve);
15520
+ let ke = this.trees[se + 1] = this._createTree(be);
15521
15521
  W && console.timeEnd(ge);
15522
- for (let fe = se; fe >= J; fe--) {
15522
+ for (let fe = se; fe >= Q; fe--) {
15523
15523
  const ze = +Date.now();
15524
- 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);
15524
+ 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);
15525
15525
  }
15526
15526
  return W && console.timeEnd("total time"), this;
15527
15527
  }
15528
15528
  getClusters(q, W) {
15529
- let J = ((q[0] + 180) % 360 + 360) % 360 - 180;
15529
+ let Q = ((q[0] + 180) % 360 + 360) % 360 - 180;
15530
15530
  const se = Math.max(-90, Math.min(90, q[1]));
15531
15531
  let ge = q[2] === 180 ? 180 : ((q[2] + 180) % 360 + 360) % 360 - 180;
15532
- const ve = Math.max(-90, Math.min(90, q[3]));
15533
- if (q[2] - q[0] >= 360) J = -180, ge = 180;
15534
- else if (J > ge) {
15535
- const De = this.getClusters([J, se, 180, ve], W), Xe = this.getClusters([-180, se, ge, ve], W);
15532
+ const be = Math.max(-90, Math.min(90, q[3]));
15533
+ if (q[2] - q[0] >= 360) Q = -180, ge = 180;
15534
+ else if (Q > ge) {
15535
+ const De = this.getClusters([Q, se, 180, be], W), Xe = this.getClusters([-180, se, ge, be], W);
15536
15536
  return De.concat(Xe);
15537
15537
  }
15538
- const Se = this.trees[this._limitZoom(W)], fe = Se.range(Ie(J), Ze(ve), Ie(ge), Ze(se)), ze = Se.data, Fe = [];
15538
+ const ke = this.trees[this._limitZoom(W)], fe = ke.range(Ie(Q), Ze(be), Ie(ge), Ze(se)), ze = ke.data, Fe = [];
15539
15539
  for (const De of fe) {
15540
15540
  const Xe = this.stride * De;
15541
15541
  Fe.push(ze[Xe + fn] > 1 ? Tn(ze, Xe, this.clusterProps) : this.points[ze[Xe + wn]]);
@@ -15543,51 +15543,51 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15543
15543
  return Fe;
15544
15544
  }
15545
15545
  getChildren(q) {
15546
- const W = this._getOriginId(q), J = this._getOriginZoom(q), se = "No cluster with the specified id.", ge = this.trees[J];
15546
+ const W = this._getOriginId(q), Q = this._getOriginZoom(q), se = "No cluster with the specified id.", ge = this.trees[Q];
15547
15547
  if (!ge) throw new Error(se);
15548
- const ve = ge.data;
15549
- if (W * this.stride >= ve.length) throw new Error(se);
15550
- 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 = [];
15548
+ const be = ge.data;
15549
+ if (W * this.stride >= be.length) throw new Error(se);
15550
+ 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 = [];
15551
15551
  for (const Fe of fe) {
15552
15552
  const De = Fe * this.stride;
15553
- ve[De + 4] === q && ze.push(ve[De + fn] > 1 ? Tn(ve, De, this.clusterProps) : this.points[ve[De + wn]]);
15553
+ be[De + 4] === q && ze.push(be[De + fn] > 1 ? Tn(be, De, this.clusterProps) : this.points[be[De + wn]]);
15554
15554
  }
15555
15555
  if (ze.length === 0) throw new Error(se);
15556
15556
  return ze;
15557
15557
  }
15558
- getLeaves(q, W, J) {
15558
+ getLeaves(q, W, Q) {
15559
15559
  const se = [];
15560
- return this._appendLeaves(se, q, W = W || 10, J = J || 0, 0), se;
15560
+ return this._appendLeaves(se, q, W = W || 10, Q = Q || 0, 0), se;
15561
15561
  }
15562
- getTile(q, W, J) {
15563
- 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: [] };
15564
- 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;
15562
+ getTile(q, W, Q) {
15563
+ 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: [] };
15564
+ 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;
15565
15565
  }
15566
15566
  getClusterExpansionZoom(q) {
15567
15567
  let W = this._getOriginZoom(q) - 1;
15568
15568
  for (; W <= this.options.maxZoom; ) {
15569
- const J = this.getChildren(q);
15570
- if (W++, J.length !== 1) break;
15571
- q = J[0].properties.cluster_id;
15569
+ const Q = this.getChildren(q);
15570
+ if (W++, Q.length !== 1) break;
15571
+ q = Q[0].properties.cluster_id;
15572
15572
  }
15573
15573
  return W;
15574
15574
  }
15575
- _appendLeaves(q, W, J, se, ge) {
15576
- const ve = this.getChildren(W);
15577
- for (const Se of ve) {
15578
- const fe = Se.properties;
15579
- 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;
15575
+ _appendLeaves(q, W, Q, se, ge) {
15576
+ const be = this.getChildren(W);
15577
+ for (const ke of be) {
15578
+ const fe = ke.properties;
15579
+ 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;
15580
15580
  }
15581
15581
  return ge;
15582
15582
  }
15583
15583
  _createTree(q) {
15584
15584
  const W = new a.av(q.length / this.stride | 0, this.options.nodeSize, Float32Array);
15585
- for (let J = 0; J < q.length; J += this.stride) W.add(q[J], q[J + 1]);
15585
+ for (let Q = 0; Q < q.length; Q += this.stride) W.add(q[Q], q[Q + 1]);
15586
15586
  return W.finish(), W.data = q, W;
15587
15587
  }
15588
- _addTileFeatures(q, W, J, se, ge, ve) {
15589
- for (const Se of q) {
15590
- const fe = Se * this.stride, ze = W[fe + fn] > 1;
15588
+ _addTileFeatures(q, W, Q, se, ge, be) {
15589
+ for (const ke of q) {
15590
+ const fe = ke * this.stride, ze = W[fe + fn] > 1;
15591
15591
  let Fe, De, Xe;
15592
15592
  if (ze) Fe = ii(W, fe, this.clusterProps), De = W[fe], Xe = W[fe + 1];
15593
15593
  else {
@@ -15596,26 +15596,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15596
15596
  const [tn, Cn] = En.geometry.coordinates;
15597
15597
  De = Ie(tn), Xe = Ze(Cn);
15598
15598
  }
15599
- const It = { type: 1, geometry: [[Math.round(this.options.extent * (De * ge - J)), Math.round(this.options.extent * (Xe * ge - se))]], tags: Fe };
15599
+ const It = { type: 1, geometry: [[Math.round(this.options.extent * (De * ge - Q)), Math.round(this.options.extent * (Xe * ge - se))]], tags: Fe };
15600
15600
  let Nt;
15601
- Nt = ze || this.options.generateId ? W[fe + wn] : this.points[W[fe + wn]].id, Nt !== void 0 && (It.id = Nt), ve.features.push(It);
15601
+ Nt = ze || this.options.generateId ? W[fe + wn] : this.points[W[fe + wn]].id, Nt !== void 0 && (It.id = Nt), be.features.push(It);
15602
15602
  }
15603
15603
  }
15604
15604
  _limitZoom(q) {
15605
15605
  return Math.max(this.options.minZoom, Math.min(Math.floor(+q), this.options.maxZoom + 1));
15606
15606
  }
15607
15607
  _cluster(q, W) {
15608
- 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;
15608
+ 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;
15609
15609
  for (let De = 0; De < fe.length; De += Fe) {
15610
15610
  if (fe[De + 2] <= W) continue;
15611
15611
  fe[De + 2] = W;
15612
- const Xe = fe[De], It = fe[De + 1], Nt = q.within(fe[De], fe[De + 1], Se), En = fe[De + fn];
15612
+ const Xe = fe[De], It = fe[De + 1], Nt = q.within(fe[De], fe[De + 1], ke), En = fe[De + fn];
15613
15613
  let tn = En;
15614
15614
  for (const Cn of Nt) {
15615
15615
  const pn = Cn * Fe;
15616
15616
  fe[pn + 2] > W && (tn += fe[pn + fn]);
15617
15617
  }
15618
- if (tn > En && tn >= ve) {
15618
+ if (tn > En && tn >= be) {
15619
15619
  let Cn, pn = Xe * En, Mi = It * En, mi = -1;
15620
15620
  const on = ((De / Fe | 0) << 5) + (W + 1) + this.points.length;
15621
15621
  for (const Vn of Nt) {
@@ -15645,22 +15645,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15645
15645
  _getOriginZoom(q) {
15646
15646
  return (q - this.points.length) % 32;
15647
15647
  }
15648
- _map(q, W, J) {
15648
+ _map(q, W, Q) {
15649
15649
  if (q[W + fn] > 1) {
15650
- const ve = this.clusterProps[q[W + ti]];
15651
- return J ? Object.assign({}, ve) : ve;
15650
+ const be = this.clusterProps[q[W + ti]];
15651
+ return Q ? Object.assign({}, be) : be;
15652
15652
  }
15653
15653
  const se = this.points[q[W + wn]].properties, ge = this.options.map(se);
15654
- return J && ge === se ? Object.assign({}, ge) : ge;
15654
+ return Q && ge === se ? Object.assign({}, ge) : ge;
15655
15655
  }
15656
15656
  }
15657
15657
  function Tn(le, q, W) {
15658
- return { type: "Feature", id: le[q + wn], properties: ii(le, q, W), geometry: { type: "Point", coordinates: [(J = le[q], 360 * (J - 0.5)), it(le[q + 1])] } };
15659
- var J;
15658
+ return { type: "Feature", id: le[q + wn], properties: ii(le, q, W), geometry: { type: "Point", coordinates: [(Q = le[q], 360 * (Q - 0.5)), it(le[q + 1])] } };
15659
+ var Q;
15660
15660
  }
15661
15661
  function ii(le, q, W) {
15662
- 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 + ti], ve = ge === -1 ? {} : Object.assign({}, W[ge]);
15663
- return Object.assign(ve, { cluster: !0, cluster_id: le[q + wn], point_count: J, point_count_abbreviated: se });
15662
+ 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 + ti], be = ge === -1 ? {} : Object.assign({}, W[ge]);
15663
+ return Object.assign(be, { cluster: !0, cluster_id: le[q + wn], point_count: Q, point_count_abbreviated: se });
15664
15664
  }
15665
15665
  function Ie(le) {
15666
15666
  return le / 360 + 0.5;
@@ -15673,31 +15673,31 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15673
15673
  const q = (180 - 360 * le) * Math.PI / 180;
15674
15674
  return 360 * Math.atan(Math.exp(q)) / Math.PI - 90;
15675
15675
  }
15676
- function bt(le, q, W, J) {
15677
- let se = J;
15676
+ function bt(le, q, W, Q) {
15677
+ let se = Q;
15678
15678
  const ge = q + (W - q >> 1);
15679
- let ve, Se = W - q;
15679
+ let be, ke = W - q;
15680
15680
  const fe = le[q], ze = le[q + 1], Fe = le[W], De = le[W + 1];
15681
15681
  for (let Xe = q + 3; Xe < W; Xe += 3) {
15682
15682
  const It = nn(le[Xe], le[Xe + 1], fe, ze, Fe, De);
15683
- if (It > se) ve = Xe, se = It;
15683
+ if (It > se) be = Xe, se = It;
15684
15684
  else if (It === se) {
15685
15685
  const Nt = Math.abs(Xe - ge);
15686
- Nt < Se && (ve = Xe, Se = Nt);
15686
+ Nt < ke && (be = Xe, ke = Nt);
15687
15687
  }
15688
15688
  }
15689
- se > J && (ve - q > 3 && bt(le, q, ve, J), le[ve + 2] = se, W - ve > 3 && bt(le, ve, W, J));
15689
+ se > Q && (be - q > 3 && bt(le, q, be, Q), le[be + 2] = se, W - be > 3 && bt(le, be, W, Q));
15690
15690
  }
15691
- function nn(le, q, W, J, se, ge) {
15692
- let ve = se - W, Se = ge - J;
15693
- if (ve !== 0 || Se !== 0) {
15694
- const fe = ((le - W) * ve + (q - J) * Se) / (ve * ve + Se * Se);
15695
- fe > 1 ? (W = se, J = ge) : fe > 0 && (W += ve * fe, J += Se * fe);
15691
+ function nn(le, q, W, Q, se, ge) {
15692
+ let be = se - W, ke = ge - Q;
15693
+ if (be !== 0 || ke !== 0) {
15694
+ const fe = ((le - W) * be + (q - Q) * ke) / (be * be + ke * ke);
15695
+ fe > 1 ? (W = se, Q = ge) : fe > 0 && (W += be * fe, Q += ke * fe);
15696
15696
  }
15697
- return ve = le - W, Se = q - J, ve * ve + Se * Se;
15697
+ return be = le - W, ke = q - Q, be * be + ke * ke;
15698
15698
  }
15699
- function kn(le, q, W, J) {
15700
- const se = { id: le ?? null, type: q, geometry: W, tags: J, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
15699
+ function kn(le, q, W, Q) {
15700
+ const se = { id: le ?? null, type: q, geometry: W, tags: Q, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
15701
15701
  if (q === "Point" || q === "MultiPoint" || q === "LineString") qt(se, W);
15702
15702
  else if (q === "Polygon") qt(se, W[0]);
15703
15703
  else if (q === "MultiLineString") for (const ge of W) qt(se, ge);
@@ -15707,53 +15707,53 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15707
15707
  function qt(le, q) {
15708
15708
  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]);
15709
15709
  }
15710
- function Ht(le, q, W, J) {
15710
+ function Ht(le, q, W, Q) {
15711
15711
  if (!q.geometry) return;
15712
15712
  const se = q.geometry.coordinates;
15713
15713
  if (se && se.length === 0) return;
15714
- const ge = q.geometry.type, ve = Math.pow(W.tolerance / ((1 << W.maxZoom) * W.extent), 2);
15715
- let Se = [], fe = q.id;
15716
- if (W.promoteId ? fe = q.properties[W.promoteId] : W.generateId && (fe = J || 0), ge === "Point") An(se, Se);
15717
- else if (ge === "MultiPoint") for (const ze of se) An(ze, Se);
15718
- else if (ge === "LineString") Me(se, Se, ve, !1);
15714
+ const ge = q.geometry.type, be = Math.pow(W.tolerance / ((1 << W.maxZoom) * W.extent), 2);
15715
+ let ke = [], fe = q.id;
15716
+ if (W.promoteId ? fe = q.properties[W.promoteId] : W.generateId && (fe = Q || 0), ge === "Point") An(se, ke);
15717
+ else if (ge === "MultiPoint") for (const ze of se) An(ze, ke);
15718
+ else if (ge === "LineString") Me(se, ke, be, !1);
15719
15719
  else if (ge === "MultiLineString") {
15720
15720
  if (W.lineMetrics) {
15721
- for (const ze of se) Se = [], Me(ze, Se, ve, !1), le.push(kn(fe, "LineString", Se, q.properties));
15721
+ for (const ze of se) ke = [], Me(ze, ke, be, !1), le.push(kn(fe, "LineString", ke, q.properties));
15722
15722
  return;
15723
15723
  }
15724
- Gn(se, Se, ve, !1);
15725
- } else if (ge === "Polygon") Gn(se, Se, ve, !0);
15724
+ Gn(se, ke, be, !1);
15725
+ } else if (ge === "Polygon") Gn(se, ke, be, !0);
15726
15726
  else {
15727
15727
  if (ge !== "MultiPolygon") {
15728
15728
  if (ge === "GeometryCollection") {
15729
- for (const ze of q.geometry.geometries) Ht(le, { id: fe, geometry: ze, properties: q.properties }, W, J);
15729
+ for (const ze of q.geometry.geometries) Ht(le, { id: fe, geometry: ze, properties: q.properties }, W, Q);
15730
15730
  return;
15731
15731
  }
15732
15732
  throw new Error("Input data is not a valid GeoJSON object.");
15733
15733
  }
15734
15734
  for (const ze of se) {
15735
15735
  const Fe = [];
15736
- Gn(ze, Fe, ve, !0), Se.push(Fe);
15736
+ Gn(ze, Fe, be, !0), ke.push(Fe);
15737
15737
  }
15738
15738
  }
15739
- le.push(kn(fe, ge, Se, q.properties));
15739
+ le.push(kn(fe, ge, ke, q.properties));
15740
15740
  }
15741
15741
  function An(le, q) {
15742
15742
  q.push(qs(le[0]), bn(le[1]), 0);
15743
15743
  }
15744
- function Me(le, q, W, J) {
15745
- let se, ge, ve = 0;
15744
+ function Me(le, q, W, Q) {
15745
+ let se, ge, be = 0;
15746
15746
  for (let fe = 0; fe < le.length; fe++) {
15747
15747
  const ze = qs(le[fe][0]), Fe = bn(le[fe][1]);
15748
- 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;
15748
+ 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;
15749
15749
  }
15750
- const Se = q.length - 3;
15751
- q[2] = 1, bt(q, 0, Se, W), q[Se + 2] = 1, q.size = Math.abs(ve), q.start = 0, q.end = q.size;
15750
+ const ke = q.length - 3;
15751
+ q[2] = 1, bt(q, 0, ke, W), q[ke + 2] = 1, q.size = Math.abs(be), q.start = 0, q.end = q.size;
15752
15752
  }
15753
- function Gn(le, q, W, J) {
15753
+ function Gn(le, q, W, Q) {
15754
15754
  for (let se = 0; se < le.length; se++) {
15755
15755
  const ge = [];
15756
- Me(le[se], ge, W, J), q.push(ge);
15756
+ Me(le[se], ge, W, Q), q.push(ge);
15757
15757
  }
15758
15758
  }
15759
15759
  function qs(le) {
@@ -15763,30 +15763,30 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15763
15763
  const q = Math.sin(le * Math.PI / 180), W = 0.5 - 0.25 * Math.log((1 + q) / (1 - q)) / Math.PI;
15764
15764
  return W < 0 ? 0 : W > 1 ? 1 : W;
15765
15765
  }
15766
- function Pn(le, q, W, J, se, ge, ve, Se) {
15767
- if (J /= q, ge >= (W /= q) && ve < J) return le;
15768
- if (ve < W || ge >= J) return null;
15766
+ function Pn(le, q, W, Q, se, ge, be, ke) {
15767
+ if (Q /= q, ge >= (W /= q) && be < Q) return le;
15768
+ if (be < W || ge >= Q) return null;
15769
15769
  const fe = [];
15770
15770
  for (const ze of le) {
15771
15771
  const Fe = ze.geometry;
15772
15772
  let De = ze.type;
15773
15773
  const Xe = se === 0 ? ze.minX : ze.minY, It = se === 0 ? ze.maxX : ze.maxY;
15774
- if (Xe >= W && It < J) {
15774
+ if (Xe >= W && It < Q) {
15775
15775
  fe.push(ze);
15776
15776
  continue;
15777
15777
  }
15778
- if (It < W || Xe >= J) continue;
15778
+ if (It < W || Xe >= Q) continue;
15779
15779
  let Nt = [];
15780
- if (De === "Point" || De === "MultiPoint") Er(Fe, Nt, W, J, se);
15781
- else if (De === "LineString") Cr(Fe, Nt, W, J, se, !1, Se.lineMetrics);
15782
- else if (De === "MultiLineString") is(Fe, Nt, W, J, se, !1);
15783
- else if (De === "Polygon") is(Fe, Nt, W, J, se, !0);
15780
+ if (De === "Point" || De === "MultiPoint") Er(Fe, Nt, W, Q, se);
15781
+ else if (De === "LineString") Cr(Fe, Nt, W, Q, se, !1, ke.lineMetrics);
15782
+ else if (De === "MultiLineString") is(Fe, Nt, W, Q, se, !1);
15783
+ else if (De === "Polygon") is(Fe, Nt, W, Q, se, !0);
15784
15784
  else if (De === "MultiPolygon") for (const En of Fe) {
15785
15785
  const tn = [];
15786
- is(En, tn, W, J, se, !0), tn.length && Nt.push(tn);
15786
+ is(En, tn, W, Q, se, !0), tn.length && Nt.push(tn);
15787
15787
  }
15788
15788
  if (Nt.length) {
15789
- if (Se.lineMetrics && De === "LineString") {
15789
+ if (ke.lineMetrics && De === "LineString") {
15790
15790
  for (const En of Nt) fe.push(kn(ze.id, De, En, ze.tags));
15791
15791
  continue;
15792
15792
  }
@@ -15795,117 +15795,117 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15795
15795
  }
15796
15796
  return fe.length ? fe : null;
15797
15797
  }
15798
- function Er(le, q, W, J, se) {
15798
+ function Er(le, q, W, Q, se) {
15799
15799
  for (let ge = 0; ge < le.length; ge += 3) {
15800
- const ve = le[ge + se];
15801
- ve >= W && ve <= J && qi(q, le[ge], le[ge + 1], le[ge + 2]);
15800
+ const be = le[ge + se];
15801
+ be >= W && be <= Q && qi(q, le[ge], le[ge + 1], le[ge + 2]);
15802
15802
  }
15803
15803
  }
15804
- function Cr(le, q, W, J, se, ge, ve) {
15805
- let Se = Wi(le);
15804
+ function Cr(le, q, W, Q, se, ge, be) {
15805
+ let ke = Wi(le);
15806
15806
  const fe = se === 0 ? Gs : Ys;
15807
15807
  let ze, Fe, De = le.start;
15808
15808
  for (let tn = 0; tn < le.length - 3; tn += 3) {
15809
15809
  const Cn = le[tn], pn = le[tn + 1], Mi = le[tn + 2], mi = le[tn + 3], on = le[tn + 4], Vn = se === 0 ? Cn : pn, di = se === 0 ? mi : on;
15810
15810
  let Ni = !1;
15811
- ve && (ze = Math.sqrt(Math.pow(Cn - mi, 2) + Math.pow(pn - on, 2))), Vn < W ? di > W && (Fe = fe(Se, Cn, pn, mi, on, W), ve && (Se.start = De + ze * Fe)) : Vn > J ? di < J && (Fe = fe(Se, Cn, pn, mi, on, J), ve && (Se.start = De + ze * Fe)) : qi(Se, Cn, pn, Mi), di < W && Vn >= W && (Fe = fe(Se, Cn, pn, mi, on, W), Ni = !0), di > J && Vn <= J && (Fe = fe(Se, Cn, pn, mi, on, J), Ni = !0), !ge && Ni && (ve && (Se.end = De + ze * Fe), q.push(Se), Se = Wi(le)), ve && (De += ze);
15811
+ be && (ze = Math.sqrt(Math.pow(Cn - mi, 2) + Math.pow(pn - on, 2))), Vn < W ? di > W && (Fe = fe(ke, Cn, pn, mi, on, W), be && (ke.start = De + ze * Fe)) : Vn > Q ? di < Q && (Fe = fe(ke, Cn, pn, mi, on, Q), be && (ke.start = De + ze * Fe)) : qi(ke, Cn, pn, Mi), di < W && Vn >= W && (Fe = fe(ke, Cn, pn, mi, on, W), Ni = !0), di > Q && Vn <= Q && (Fe = fe(ke, Cn, pn, mi, on, Q), Ni = !0), !ge && Ni && (be && (ke.end = De + ze * Fe), q.push(ke), ke = Wi(le)), be && (De += ze);
15812
15812
  }
15813
15813
  let Xe = le.length - 3;
15814
15814
  const It = le[Xe], Nt = le[Xe + 1], En = se === 0 ? It : Nt;
15815
- En >= W && En <= J && qi(Se, It, Nt, le[Xe + 2]), Xe = Se.length - 3, ge && Xe >= 3 && (Se[Xe] !== Se[0] || Se[Xe + 1] !== Se[1]) && qi(Se, Se[0], Se[1], Se[2]), Se.length && q.push(Se);
15815
+ En >= W && En <= Q && qi(ke, It, Nt, le[Xe + 2]), Xe = ke.length - 3, ge && Xe >= 3 && (ke[Xe] !== ke[0] || ke[Xe + 1] !== ke[1]) && qi(ke, ke[0], ke[1], ke[2]), ke.length && q.push(ke);
15816
15816
  }
15817
15817
  function Wi(le) {
15818
15818
  const q = [];
15819
15819
  return q.size = le.size, q.start = le.start, q.end = le.end, q;
15820
15820
  }
15821
- function is(le, q, W, J, se, ge) {
15822
- for (const ve of le) Cr(ve, q, W, J, se, ge, !1);
15821
+ function is(le, q, W, Q, se, ge) {
15822
+ for (const be of le) Cr(be, q, W, Q, se, ge, !1);
15823
15823
  }
15824
- function qi(le, q, W, J) {
15825
- le.push(q, W, J);
15824
+ function qi(le, q, W, Q) {
15825
+ le.push(q, W, Q);
15826
15826
  }
15827
- function Gs(le, q, W, J, se, ge) {
15828
- const ve = (ge - q) / (J - q);
15829
- return qi(le, ge, W + (se - W) * ve, 1), ve;
15827
+ function Gs(le, q, W, Q, se, ge) {
15828
+ const be = (ge - q) / (Q - q);
15829
+ return qi(le, ge, W + (se - W) * be, 1), be;
15830
15830
  }
15831
- function Ys(le, q, W, J, se, ge) {
15832
- const ve = (ge - W) / (se - W);
15833
- return qi(le, q + (J - q) * ve, ge, 1), ve;
15831
+ function Ys(le, q, W, Q, se, ge) {
15832
+ const be = (ge - W) / (se - W);
15833
+ return qi(le, q + (Q - q) * be, ge, 1), be;
15834
15834
  }
15835
15835
  function Ge(le, q) {
15836
15836
  const W = [];
15837
- for (let J = 0; J < le.length; J++) {
15838
- const se = le[J], ge = se.type;
15839
- let ve;
15840
- if (ge === "Point" || ge === "MultiPoint" || ge === "LineString") ve = rs(se.geometry, q);
15837
+ for (let Q = 0; Q < le.length; Q++) {
15838
+ const se = le[Q], ge = se.type;
15839
+ let be;
15840
+ if (ge === "Point" || ge === "MultiPoint" || ge === "LineString") be = rs(se.geometry, q);
15841
15841
  else if (ge === "MultiLineString" || ge === "Polygon") {
15842
- ve = [];
15843
- for (const Se of se.geometry) ve.push(rs(Se, q));
15842
+ be = [];
15843
+ for (const ke of se.geometry) be.push(rs(ke, q));
15844
15844
  } else if (ge === "MultiPolygon") {
15845
- ve = [];
15846
- for (const Se of se.geometry) {
15845
+ be = [];
15846
+ for (const ke of se.geometry) {
15847
15847
  const fe = [];
15848
- for (const ze of Se) fe.push(rs(ze, q));
15849
- ve.push(fe);
15848
+ for (const ze of ke) fe.push(rs(ze, q));
15849
+ be.push(fe);
15850
15850
  }
15851
15851
  }
15852
- W.push(kn(se.id, ge, ve, se.tags));
15852
+ W.push(kn(se.id, ge, be, se.tags));
15853
15853
  }
15854
15854
  return W;
15855
15855
  }
15856
15856
  function rs(le, q) {
15857
15857
  const W = [];
15858
15858
  W.size = le.size, le.start !== void 0 && (W.start = le.start, W.end = le.end);
15859
- for (let J = 0; J < le.length; J += 3) W.push(le[J] + q, le[J + 1], le[J + 2]);
15859
+ for (let Q = 0; Q < le.length; Q += 3) W.push(le[Q] + q, le[Q + 1], le[Q + 2]);
15860
15860
  return W;
15861
15861
  }
15862
15862
  function Gi(le, q) {
15863
15863
  if (le.transformed) return le;
15864
- const W = 1 << le.z, J = le.x, se = le.y;
15864
+ const W = 1 << le.z, Q = le.x, se = le.y;
15865
15865
  for (const ge of le.features) {
15866
- const ve = ge.geometry, Se = ge.type;
15867
- if (ge.geometry = [], Se === 1) for (let fe = 0; fe < ve.length; fe += 2) ge.geometry.push(ss(ve[fe], ve[fe + 1], q, W, J, se));
15868
- else for (let fe = 0; fe < ve.length; fe++) {
15866
+ const be = ge.geometry, ke = ge.type;
15867
+ if (ge.geometry = [], ke === 1) for (let fe = 0; fe < be.length; fe += 2) ge.geometry.push(ss(be[fe], be[fe + 1], q, W, Q, se));
15868
+ else for (let fe = 0; fe < be.length; fe++) {
15869
15869
  const ze = [];
15870
- for (let Fe = 0; Fe < ve[fe].length; Fe += 2) ze.push(ss(ve[fe][Fe], ve[fe][Fe + 1], q, W, J, se));
15870
+ for (let Fe = 0; Fe < be[fe].length; Fe += 2) ze.push(ss(be[fe][Fe], be[fe][Fe + 1], q, W, Q, se));
15871
15871
  ge.geometry.push(ze);
15872
15872
  }
15873
15873
  }
15874
15874
  return le.transformed = !0, le;
15875
15875
  }
15876
- function ss(le, q, W, J, se, ge) {
15877
- return [Math.round(W * (le * J - se)), Math.round(W * (q * J - ge))];
15878
- }
15879
- function Zs(le, q, W, J, se) {
15880
- 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 };
15881
- for (const Se of le) Qe(ve, Se, ge, se);
15882
- return ve;
15883
- }
15884
- function Qe(le, q, W, J) {
15885
- const se = q.geometry, ge = q.type, ve = [];
15886
- 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++;
15887
- else if (ge === "LineString") Te(ve, se, le, W, !1, !1);
15888
- else if (ge === "MultiLineString" || ge === "Polygon") for (let Se = 0; Se < se.length; Se++) Te(ve, se[Se], le, W, ge === "Polygon", Se === 0);
15889
- else if (ge === "MultiPolygon") for (let Se = 0; Se < se.length; Se++) {
15890
- const fe = se[Se];
15891
- for (let ze = 0; ze < fe.length; ze++) Te(ve, fe[ze], le, W, !0, ze === 0);
15892
- }
15893
- if (ve.length) {
15894
- let Se = q.tags || null;
15895
- if (ge === "LineString" && J.lineMetrics) {
15896
- Se = {};
15897
- for (const ze in q.tags) Se[ze] = q.tags[ze];
15898
- Se.mapbox_clip_start = se.start / se.size, Se.mapbox_clip_end = se.end / se.size;
15899
- }
15900
- const fe = { geometry: ve, type: ge === "Polygon" || ge === "MultiPolygon" ? 3 : ge === "LineString" || ge === "MultiLineString" ? 2 : 1, tags: Se };
15876
+ function ss(le, q, W, Q, se, ge) {
15877
+ return [Math.round(W * (le * Q - se)), Math.round(W * (q * Q - ge))];
15878
+ }
15879
+ function Zs(le, q, W, Q, se) {
15880
+ 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 };
15881
+ for (const ke of le) Qe(be, ke, ge, se);
15882
+ return be;
15883
+ }
15884
+ function Qe(le, q, W, Q) {
15885
+ const se = q.geometry, ge = q.type, be = [];
15886
+ 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++;
15887
+ else if (ge === "LineString") Te(be, se, le, W, !1, !1);
15888
+ else if (ge === "MultiLineString" || ge === "Polygon") for (let ke = 0; ke < se.length; ke++) Te(be, se[ke], le, W, ge === "Polygon", ke === 0);
15889
+ else if (ge === "MultiPolygon") for (let ke = 0; ke < se.length; ke++) {
15890
+ const fe = se[ke];
15891
+ for (let ze = 0; ze < fe.length; ze++) Te(be, fe[ze], le, W, !0, ze === 0);
15892
+ }
15893
+ if (be.length) {
15894
+ let ke = q.tags || null;
15895
+ if (ge === "LineString" && Q.lineMetrics) {
15896
+ ke = {};
15897
+ for (const ze in q.tags) ke[ze] = q.tags[ze];
15898
+ ke.mapbox_clip_start = se.start / se.size, ke.mapbox_clip_end = se.end / se.size;
15899
+ }
15900
+ const fe = { geometry: be, type: ge === "Polygon" || ge === "MultiPolygon" ? 3 : ge === "LineString" || ge === "MultiLineString" ? 2 : 1, tags: ke };
15901
15901
  q.id !== null && (fe.id = q.id), le.features.push(fe);
15902
15902
  }
15903
15903
  }
15904
- function Te(le, q, W, J, se, ge) {
15905
- const ve = J * J;
15906
- if (J > 0 && q.size < (se ? ve : J)) return void (W.numPoints += q.length / 3);
15907
- const Se = [];
15908
- 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++;
15904
+ function Te(le, q, W, Q, se, ge) {
15905
+ const be = Q * Q;
15906
+ if (Q > 0 && q.size < (se ? be : Q)) return void (W.numPoints += q.length / 3);
15907
+ const ke = [];
15908
+ 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++;
15909
15909
  se && function(fe, ze) {
15910
15910
  let Fe = 0;
15911
15911
  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]);
@@ -15913,38 +15913,38 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15913
15913
  const It = fe[De], Nt = fe[De + 1];
15914
15914
  fe[De] = fe[Xe - 2 - De], fe[De + 1] = fe[Xe - 1 - De], fe[Xe - 2 - De] = It, fe[Xe - 1 - De] = Nt;
15915
15915
  }
15916
- }(Se, ge), le.push(Se);
15916
+ }(ke, ge), le.push(ke);
15917
15917
  }
15918
15918
  const Ve = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: !1, promoteId: null, generateId: !1, debug: 0 };
15919
15919
  class Pt {
15920
15920
  constructor(q, W) {
15921
- const J = (W = this.options = function(ge, ve) {
15922
- for (const Se in ve) ge[Se] = ve[Se];
15921
+ const Q = (W = this.options = function(ge, be) {
15922
+ for (const ke in be) ge[ke] = be[ke];
15923
15923
  return ge;
15924
15924
  }(Object.create(Ve), W)).debug;
15925
- if (J && console.time("preprocess data"), W.maxZoom < 0 || W.maxZoom > 24) throw new Error("maxZoom should be in the 0-24 range");
15925
+ if (Q && console.time("preprocess data"), W.maxZoom < 0 || W.maxZoom > 24) throw new Error("maxZoom should be in the 0-24 range");
15926
15926
  if (W.promoteId && W.generateId) throw new Error("promoteId and generateId cannot be used together.");
15927
- let se = function(ge, ve) {
15928
- const Se = [];
15929
- if (ge.type === "FeatureCollection") for (let fe = 0; fe < ge.features.length; fe++) Ht(Se, ge.features[fe], ve, fe);
15930
- else Ht(Se, ge.type === "Feature" ? ge : { geometry: ge }, ve);
15931
- return Se;
15927
+ let se = function(ge, be) {
15928
+ const ke = [];
15929
+ if (ge.type === "FeatureCollection") for (let fe = 0; fe < ge.features.length; fe++) Ht(ke, ge.features[fe], be, fe);
15930
+ else Ht(ke, ge.type === "Feature" ? ge : { geometry: ge }, be);
15931
+ return ke;
15932
15932
  }(q, W);
15933
- 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) {
15934
- const Se = ve.buffer / ve.extent;
15933
+ 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) {
15934
+ const ke = be.buffer / be.extent;
15935
15935
  let fe = ge;
15936
- const ze = Pn(ge, 1, -1 - Se, Se, 0, -1, 2, ve), Fe = Pn(ge, 1, 1 - Se, 2 + Se, 0, -1, 2, ve);
15937
- return (ze || Fe) && (fe = Pn(ge, 1, -Se, 1 + Se, 0, -1, 2, ve) || [], ze && (fe = Ge(ze, 1).concat(fe)), Fe && (fe = fe.concat(Ge(Fe, -1)))), fe;
15938
- }(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)));
15936
+ const ze = Pn(ge, 1, -1 - ke, ke, 0, -1, 2, be), Fe = Pn(ge, 1, 1 - ke, 2 + ke, 0, -1, 2, be);
15937
+ return (ze || Fe) && (fe = Pn(ge, 1, -ke, 1 + ke, 0, -1, 2, be) || [], ze && (fe = Ge(ze, 1).concat(fe)), Fe && (fe = fe.concat(Ge(Fe, -1)))), fe;
15938
+ }(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)));
15939
15939
  }
15940
- splitTile(q, W, J, se, ge, ve, Se) {
15941
- const fe = [q, W, J, se], ze = this.options, Fe = ze.debug;
15940
+ splitTile(q, W, Q, se, ge, be, ke) {
15941
+ const fe = [q, W, Q, se], ze = this.options, Fe = ze.debug;
15942
15942
  for (; fe.length; ) {
15943
- se = fe.pop(), J = fe.pop(), W = fe.pop(), q = fe.pop();
15944
- const De = 1 << W, Xe = un(W, J, se);
15943
+ se = fe.pop(), Q = fe.pop(), W = fe.pop(), q = fe.pop();
15944
+ const De = 1 << W, Xe = un(W, Q, se);
15945
15945
  let It = this.tiles[Xe];
15946
- 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)) {
15947
- 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"));
15946
+ 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)) {
15947
+ 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"));
15948
15948
  const Ni = `z${W}`;
15949
15949
  this.stats[Ni] = (this.stats[Ni] || 0) + 1, this.total++;
15950
15950
  }
@@ -15954,26 +15954,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15954
15954
  if (W === ze.maxZoom || W === ge) continue;
15955
15955
  if (ge != null) {
15956
15956
  const Ni = ge - W;
15957
- if (J !== ve >> Ni || se !== Se >> Ni) continue;
15957
+ if (Q !== be >> Ni || se !== ke >> Ni) continue;
15958
15958
  }
15959
15959
  }
15960
15960
  if (It.source = null, q.length === 0) continue;
15961
15961
  Fe > 1 && console.time("clipping");
15962
15962
  const Nt = 0.5 * ze.buffer / ze.extent, En = 0.5 - Nt, tn = 0.5 + Nt, Cn = 1 + Nt;
15963
- let pn = null, Mi = null, mi = null, on = null, Vn = Pn(q, De, J - Nt, J + tn, 0, It.minX, It.maxX, ze), di = Pn(q, De, J + En, J + Cn, 0, It.minX, It.maxX, ze);
15964
- q = null, Vn && (pn = Pn(Vn, De, se - Nt, se + tn, 1, It.minY, It.maxY, ze), Mi = Pn(Vn, De, se + En, se + Cn, 1, It.minY, It.maxY, ze), Vn = null), di && (mi = Pn(di, De, se - Nt, se + tn, 1, It.minY, It.maxY, ze), on = Pn(di, De, se + En, se + Cn, 1, It.minY, It.maxY, ze), di = null), Fe > 1 && console.timeEnd("clipping"), fe.push(pn || [], W + 1, 2 * J, 2 * se), fe.push(Mi || [], W + 1, 2 * J, 2 * se + 1), fe.push(mi || [], W + 1, 2 * J + 1, 2 * se), fe.push(on || [], W + 1, 2 * J + 1, 2 * se + 1);
15963
+ let pn = null, Mi = null, mi = null, on = null, Vn = Pn(q, De, Q - Nt, Q + tn, 0, It.minX, It.maxX, ze), di = Pn(q, De, Q + En, Q + Cn, 0, It.minX, It.maxX, ze);
15964
+ q = null, Vn && (pn = Pn(Vn, De, se - Nt, se + tn, 1, It.minY, It.maxY, ze), Mi = Pn(Vn, De, se + En, se + Cn, 1, It.minY, It.maxY, ze), Vn = null), di && (mi = Pn(di, De, se - Nt, se + tn, 1, It.minY, It.maxY, ze), on = Pn(di, De, se + En, se + Cn, 1, It.minY, It.maxY, ze), di = null), Fe > 1 && console.timeEnd("clipping"), fe.push(pn || [], W + 1, 2 * Q, 2 * se), fe.push(Mi || [], W + 1, 2 * Q, 2 * se + 1), fe.push(mi || [], W + 1, 2 * Q + 1, 2 * se), fe.push(on || [], W + 1, 2 * Q + 1, 2 * se + 1);
15965
15965
  }
15966
15966
  }
15967
- getTile(q, W, J) {
15968
- q = +q, W = +W, J = +J;
15969
- const se = this.options, { extent: ge, debug: ve } = se;
15967
+ getTile(q, W, Q) {
15968
+ q = +q, W = +W, Q = +Q;
15969
+ const se = this.options, { extent: ge, debug: be } = se;
15970
15970
  if (q < 0 || q > 24) return null;
15971
- const Se = 1 << q, fe = un(q, W = W + Se & Se - 1, J);
15971
+ const ke = 1 << q, fe = un(q, W = W + ke & ke - 1, Q);
15972
15972
  if (this.tiles[fe]) return Gi(this.tiles[fe], ge);
15973
- ve > 1 && console.log("drilling down to z%d-%d-%d", q, W, J);
15974
- let ze, Fe = q, De = W, Xe = J;
15973
+ be > 1 && console.log("drilling down to z%d-%d-%d", q, W, Q);
15974
+ let ze, Fe = q, De = W, Xe = Q;
15975
15975
  for (; !ze && Fe > 0; ) Fe--, De >>= 1, Xe >>= 1, ze = this.tiles[un(Fe, De, Xe)];
15976
- 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] ? Gi(this.tiles[fe], ge) : null) : null;
15976
+ 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] ? Gi(this.tiles[fe], ge) : null) : null;
15977
15977
  }
15978
15978
  }
15979
15979
  function un(le, q, W) {
@@ -15987,8 +15987,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15987
15987
  if (le.type === "Feature") return at(le, q) != null;
15988
15988
  if (le.type === "FeatureCollection") {
15989
15989
  const W = /* @__PURE__ */ new Set();
15990
- for (const J of le.features) {
15991
- const se = at(J, q);
15990
+ for (const Q of le.features) {
15991
+ const se = at(Q, q);
15992
15992
  if (se == null || W.has(se)) return !1;
15993
15993
  W.add(se);
15994
15994
  }
@@ -15999,7 +15999,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15999
15999
  function xi(le, q) {
16000
16000
  const W = /* @__PURE__ */ new Map();
16001
16001
  if (le != null) if (le.type === "Feature") W.set(at(le, q), le);
16002
- else for (const J of le.features) W.set(at(J, q), J);
16002
+ else for (const Q of le.features) W.set(at(Q, q), Q);
16003
16003
  return W;
16004
16004
  }
16005
16005
  class hr extends _ {
@@ -16008,15 +16008,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16008
16008
  }
16009
16009
  loadVectorTile(q, W) {
16010
16010
  return a._(this, void 0, void 0, function* () {
16011
- const J = q.tileID.canonical;
16011
+ const Q = q.tileID.canonical;
16012
16012
  if (!this._geoJSONIndex) throw new Error("Unable to parse the data into a cluster or geojson");
16013
- const se = this._geoJSONIndex.getTile(J.z, J.x, J.y);
16013
+ const se = this._geoJSONIndex.getTile(Q.z, Q.x, Q.y);
16014
16014
  if (!se) return null;
16015
16015
  const ge = new class {
16016
- constructor(Se) {
16017
- this.layers = { _geojsonTileLayer: this }, this.name = "_geojsonTileLayer", this.extent = a.X, this.length = Se.length, this._features = Se;
16016
+ constructor(ke) {
16017
+ this.layers = { _geojsonTileLayer: this }, this.name = "_geojsonTileLayer", this.extent = a.X, this.length = ke.length, this._features = ke;
16018
16018
  }
16019
- feature(Se) {
16019
+ feature(ke) {
16020
16020
  return new class {
16021
16021
  constructor(fe) {
16022
16022
  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));
@@ -16040,41 +16040,41 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16040
16040
  toGeoJSON(fe, ze, Fe) {
16041
16041
  return O.call(this, fe, ze, Fe);
16042
16042
  }
16043
- }(this._features[Se]);
16043
+ }(this._features[ke]);
16044
16044
  }
16045
16045
  }(se.features);
16046
- let ve = jt(ge);
16047
- return ve.byteOffset === 0 && ve.byteLength === ve.buffer.byteLength || (ve = new Uint8Array(ve)), { vectorTile: ge, rawData: ve.buffer };
16046
+ let be = jt(ge);
16047
+ return be.byteOffset === 0 && be.byteLength === be.buffer.byteLength || (be = new Uint8Array(be)), { vectorTile: ge, rawData: be.buffer };
16048
16048
  });
16049
16049
  }
16050
16050
  loadData(q) {
16051
16051
  return a._(this, void 0, void 0, function* () {
16052
16052
  var W;
16053
16053
  (W = this._pendingRequest) === null || W === void 0 || W.abort();
16054
- const J = !!(q && q.request && q.request.collectResourceTiming) && new a.bv(q.request);
16054
+ const Q = !!(q && q.request && q.request.collectResourceTiming) && new a.bv(q.request);
16055
16055
  this._pendingRequest = new AbortController();
16056
16056
  try {
16057
- this._pendingData = this.loadAndProcessGeoJSON(q, this._pendingRequest), this._geoJSONIndex = q.cluster ? new zn(function({ superclusterOptions: ve, clusterProperties: Se }) {
16058
- if (!Se || !ve) return ve;
16059
- const fe = {}, ze = {}, Fe = { accumulated: null, zoom: 0 }, De = { properties: null }, Xe = Object.keys(Se);
16057
+ this._pendingData = this.loadAndProcessGeoJSON(q, this._pendingRequest), this._geoJSONIndex = q.cluster ? new zn(function({ superclusterOptions: be, clusterProperties: ke }) {
16058
+ if (!ke || !be) return be;
16059
+ const fe = {}, ze = {}, Fe = { accumulated: null, zoom: 0 }, De = { properties: null }, Xe = Object.keys(ke);
16060
16060
  for (const It of Xe) {
16061
- const [Nt, En] = Se[It], tn = a.bC(En), Cn = a.bC(typeof Nt == "string" ? [Nt, ["accumulated"], ["get", It]] : Nt);
16061
+ const [Nt, En] = ke[It], tn = a.bC(En), Cn = a.bC(typeof Nt == "string" ? [Nt, ["accumulated"], ["get", It]] : Nt);
16062
16062
  fe[It] = tn.value, ze[It] = Cn.value;
16063
16063
  }
16064
- return ve.map = (It) => {
16064
+ return be.map = (It) => {
16065
16065
  De.properties = It;
16066
16066
  const Nt = {};
16067
16067
  for (const En of Xe) Nt[En] = fe[En].evaluate(Fe, De);
16068
16068
  return Nt;
16069
- }, ve.reduce = (It, Nt) => {
16069
+ }, be.reduce = (It, Nt) => {
16070
16070
  De.properties = Nt;
16071
16071
  for (const En of Xe) Fe.accumulated = It[En], It[En] = ze[En].evaluate(Fe, De);
16072
- }, ve;
16072
+ }, be;
16073
16073
  }(q)).load((yield this._pendingData).features) : (se = yield this._pendingData, new Pt(se, q.geojsonVtOptions)), this.loaded = {};
16074
16074
  const ge = {};
16075
- if (J) {
16076
- const ve = J.finish();
16077
- ve && (ge.resourceTiming = {}, ge.resourceTiming[q.source] = JSON.parse(JSON.stringify(ve)));
16075
+ if (Q) {
16076
+ const be = Q.finish();
16077
+ be && (ge.resourceTiming = {}, ge.resourceTiming[q.source] = JSON.parse(JSON.stringify(be)));
16078
16078
  }
16079
16079
  return ge;
16080
16080
  } catch (ge) {
@@ -16095,47 +16095,47 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16095
16095
  }
16096
16096
  loadAndProcessGeoJSON(q, W) {
16097
16097
  return a._(this, void 0, void 0, function* () {
16098
- let J = yield this.loadGeoJSON(q, W);
16099
- if (delete this._pendingRequest, typeof J != "object") throw new Error(`Input data given to '${q.source}' is not a valid GeoJSON object.`);
16100
- if (z(J, !0), q.filter) {
16098
+ let Q = yield this.loadGeoJSON(q, W);
16099
+ if (delete this._pendingRequest, typeof Q != "object") throw new Error(`Input data given to '${q.source}' is not a valid GeoJSON object.`);
16100
+ if (z(Q, !0), q.filter) {
16101
16101
  const se = a.bC(q.filter, { type: "boolean", "property-type": "data-driven", overridable: !1, transition: !1 });
16102
- if (se.result === "error") throw new Error(se.value.map((ve) => `${ve.key}: ${ve.message}`).join(", "));
16103
- J = { type: "FeatureCollection", features: J.features.filter((ve) => se.value.evaluate({ zoom: 0 }, ve)) };
16102
+ if (se.result === "error") throw new Error(se.value.map((be) => `${be.key}: ${be.message}`).join(", "));
16103
+ Q = { type: "FeatureCollection", features: Q.features.filter((be) => se.value.evaluate({ zoom: 0 }, be)) };
16104
16104
  }
16105
- return J;
16105
+ return Q;
16106
16106
  });
16107
16107
  }
16108
16108
  loadGeoJSON(q, W) {
16109
16109
  return a._(this, void 0, void 0, function* () {
16110
- const { promoteId: J } = q;
16110
+ const { promoteId: Q } = q;
16111
16111
  if (q.request) {
16112
16112
  const se = yield a.h(q.request, W);
16113
- return this._dataUpdateable = ri(se.data, J) ? xi(se.data, J) : void 0, se.data;
16113
+ return this._dataUpdateable = ri(se.data, Q) ? xi(se.data, Q) : void 0, se.data;
16114
16114
  }
16115
16115
  if (typeof q.data == "string") try {
16116
16116
  const se = JSON.parse(q.data);
16117
- return this._dataUpdateable = ri(se, J) ? xi(se, J) : void 0, se;
16117
+ return this._dataUpdateable = ri(se, Q) ? xi(se, Q) : void 0, se;
16118
16118
  } catch {
16119
16119
  throw new Error(`Input data given to '${q.source}' is not a valid GeoJSON object.`);
16120
16120
  }
16121
16121
  if (!q.dataDiff) throw new Error(`Input data given to '${q.source}' is not a valid GeoJSON object.`);
16122
16122
  if (!this._dataUpdateable) throw new Error(`Cannot update existing geojson data in ${q.source}`);
16123
- return function(se, ge, ve) {
16124
- var Se, fe, ze, Fe;
16123
+ return function(se, ge, be) {
16124
+ var ke, fe, ze, Fe;
16125
16125
  if (ge.removeAll && se.clear(), ge.remove) for (const De of ge.remove) se.delete(De);
16126
16126
  if (ge.add) for (const De of ge.add) {
16127
- const Xe = at(De, ve);
16127
+ const Xe = at(De, be);
16128
16128
  Xe != null && se.set(Xe, De);
16129
16129
  }
16130
16130
  if (ge.update) for (const De of ge.update) {
16131
16131
  let Xe = se.get(De.id);
16132
16132
  if (Xe == null) continue;
16133
- 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);
16133
+ 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);
16134
16134
  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 = {};
16135
16135
  else if (((ze = De.removeProperties) === null || ze === void 0 ? void 0 : ze.length) > 0) for (const Nt of De.removeProperties) Object.prototype.hasOwnProperty.call(Xe.properties, Nt) && delete Xe.properties[Nt];
16136
16136
  if (((Fe = De.addOrUpdateProperties) === null || Fe === void 0 ? void 0 : Fe.length) > 0) for (const { key: Nt, value: En } of De.addOrUpdateProperties) Xe.properties[Nt] = En;
16137
16137
  }
16138
- }(this._dataUpdateable, q.dataDiff, J), { type: "FeatureCollection", features: Array.from(this._dataUpdateable.values()) };
16138
+ }(this._dataUpdateable, q.dataDiff, Q), { type: "FeatureCollection", features: Array.from(this._dataUpdateable.values()) };
16139
16139
  });
16140
16140
  }
16141
16141
  removeSource(q) {
@@ -16155,41 +16155,41 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16155
16155
  }
16156
16156
  class Wr {
16157
16157
  constructor(q) {
16158
- this.self = q, this.actor = new a.F(q), this.layerIndexes = {}, this.availableImages = {}, this.workerSources = {}, this.demWorkerSources = {}, this.externalWorkerSourceTypes = {}, this.self.registerWorkerSource = (W, J) => {
16158
+ this.self = q, this.actor = new a.F(q), this.layerIndexes = {}, this.availableImages = {}, this.workerSources = {}, this.demWorkerSources = {}, this.externalWorkerSourceTypes = {}, this.self.registerWorkerSource = (W, Q) => {
16159
16159
  if (this.externalWorkerSourceTypes[W]) throw new Error(`Worker source with name "${W}" already registered.`);
16160
- this.externalWorkerSourceTypes[W] = J;
16160
+ this.externalWorkerSourceTypes[W] = Q;
16161
16161
  }, this.self.addProtocol = a.bi, this.self.removeProtocol = a.bj, this.self.registerRTLTextPlugin = (W) => {
16162
16162
  if (a.bD.isParsed()) throw new Error("RTL text plugin already registered.");
16163
16163
  a.bD.setMethods(W);
16164
- }, 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* () {
16165
- this._getDEMWorkerSource(W, J.source).removeTile(J);
16166
- })), this.actor.registerMessageHandler("GCEZ", (W, J) => a._(this, void 0, void 0, function* () {
16167
- return this._getWorkerSource(W, J.type, J.source).getClusterExpansionZoom(J);
16168
- })), this.actor.registerMessageHandler("GCC", (W, J) => a._(this, void 0, void 0, function* () {
16169
- return this._getWorkerSource(W, J.type, J.source).getClusterChildren(J);
16170
- })), this.actor.registerMessageHandler("GCL", (W, J) => a._(this, void 0, void 0, function* () {
16171
- return this._getWorkerSource(W, J.type, J.source).getClusterLeaves(J);
16172
- })), 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* () {
16173
- if (!this.workerSources[W] || !this.workerSources[W][J.type] || !this.workerSources[W][J.type][J.source]) return;
16174
- const se = this.workerSources[W][J.type][J.source];
16175
- delete this.workerSources[W][J.type][J.source], se.removeSource !== void 0 && se.removeSource(J);
16164
+ }, 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* () {
16165
+ this._getDEMWorkerSource(W, Q.source).removeTile(Q);
16166
+ })), this.actor.registerMessageHandler("GCEZ", (W, Q) => a._(this, void 0, void 0, function* () {
16167
+ return this._getWorkerSource(W, Q.type, Q.source).getClusterExpansionZoom(Q);
16168
+ })), this.actor.registerMessageHandler("GCC", (W, Q) => a._(this, void 0, void 0, function* () {
16169
+ return this._getWorkerSource(W, Q.type, Q.source).getClusterChildren(Q);
16170
+ })), this.actor.registerMessageHandler("GCL", (W, Q) => a._(this, void 0, void 0, function* () {
16171
+ return this._getWorkerSource(W, Q.type, Q.source).getClusterLeaves(Q);
16172
+ })), 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* () {
16173
+ if (!this.workerSources[W] || !this.workerSources[W][Q.type] || !this.workerSources[W][Q.type][Q.source]) return;
16174
+ const se = this.workerSources[W][Q.type][Q.source];
16175
+ delete this.workerSources[W][Q.type][Q.source], se.removeSource !== void 0 && se.removeSource(Q);
16176
16176
  })), this.actor.registerMessageHandler("RM", (W) => a._(this, void 0, void 0, function* () {
16177
16177
  delete this.layerIndexes[W], delete this.availableImages[W], delete this.workerSources[W], delete this.demWorkerSources[W];
16178
- })), this.actor.registerMessageHandler("SR", (W, J) => a._(this, void 0, void 0, function* () {
16179
- this.referrer = J;
16180
- })), this.actor.registerMessageHandler("SRPS", (W, J) => this._syncRTLPluginState(W, J)), this.actor.registerMessageHandler("IS", (W, J) => a._(this, void 0, void 0, function* () {
16181
- this.self.importScripts(J);
16182
- })), this.actor.registerMessageHandler("SI", (W, J) => this._setImages(W, J)), this.actor.registerMessageHandler("UL", (W, J) => a._(this, void 0, void 0, function* () {
16183
- this._getLayerIndex(W).update(J.layers, J.removedIds);
16184
- })), this.actor.registerMessageHandler("SL", (W, J) => a._(this, void 0, void 0, function* () {
16185
- this._getLayerIndex(W).replace(J);
16178
+ })), this.actor.registerMessageHandler("SR", (W, Q) => a._(this, void 0, void 0, function* () {
16179
+ this.referrer = Q;
16180
+ })), this.actor.registerMessageHandler("SRPS", (W, Q) => this._syncRTLPluginState(W, Q)), this.actor.registerMessageHandler("IS", (W, Q) => a._(this, void 0, void 0, function* () {
16181
+ this.self.importScripts(Q);
16182
+ })), this.actor.registerMessageHandler("SI", (W, Q) => this._setImages(W, Q)), this.actor.registerMessageHandler("UL", (W, Q) => a._(this, void 0, void 0, function* () {
16183
+ this._getLayerIndex(W).update(Q.layers, Q.removedIds);
16184
+ })), this.actor.registerMessageHandler("SL", (W, Q) => a._(this, void 0, void 0, function* () {
16185
+ this._getLayerIndex(W).replace(Q);
16186
16186
  }));
16187
16187
  }
16188
16188
  _setImages(q, W) {
16189
16189
  return a._(this, void 0, void 0, function* () {
16190
16190
  this.availableImages[q] = W;
16191
- for (const J in this.workerSources[q]) {
16192
- const se = this.workerSources[q][J];
16191
+ for (const Q in this.workerSources[q]) {
16192
+ const se = this.workerSources[q][Q];
16193
16193
  for (const ge in se) se[ge].availableImages = W;
16194
16194
  }
16195
16195
  });
@@ -16198,12 +16198,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16198
16198
  return a._(this, void 0, void 0, function* () {
16199
16199
  if (a.bD.isParsed()) return a.bD.getState();
16200
16200
  if (W.pluginStatus !== "loading") return a.bD.setState(W), W;
16201
- const J = W.pluginURL;
16202
- if (this.self.importScripts(J), a.bD.isParsed()) {
16203
- const se = { pluginStatus: "loaded", pluginURL: J };
16201
+ const Q = W.pluginURL;
16202
+ if (this.self.importScripts(Q), a.bD.isParsed()) {
16203
+ const se = { pluginStatus: "loaded", pluginURL: Q };
16204
16204
  return a.bD.setState(se), se;
16205
16205
  }
16206
- throw a.bD.setState({ pluginStatus: "error", pluginURL: "" }), new Error(`RTL Text Plugin failed to import scripts from ${J}`);
16206
+ throw a.bD.setState({ pluginStatus: "error", pluginURL: "" }), new Error(`RTL Text Plugin failed to import scripts from ${Q}`);
16207
16207
  });
16208
16208
  }
16209
16209
  _getAvailableImages(q) {
@@ -16214,21 +16214,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16214
16214
  let W = this.layerIndexes[q];
16215
16215
  return W || (W = this.layerIndexes[q] = new o()), W;
16216
16216
  }
16217
- _getWorkerSource(q, W, J) {
16218
- if (this.workerSources[q] || (this.workerSources[q] = {}), this.workerSources[q][W] || (this.workerSources[q][W] = {}), !this.workerSources[q][W][J]) {
16219
- const se = { sendAsync: (ge, ve) => (ge.targetMapId = q, this.actor.sendAsync(ge, ve)) };
16217
+ _getWorkerSource(q, W, Q) {
16218
+ if (this.workerSources[q] || (this.workerSources[q] = {}), this.workerSources[q][W] || (this.workerSources[q][W] = {}), !this.workerSources[q][W][Q]) {
16219
+ const se = { sendAsync: (ge, be) => (ge.targetMapId = q, this.actor.sendAsync(ge, be)) };
16220
16220
  switch (W) {
16221
16221
  case "vector":
16222
- this.workerSources[q][W][J] = new _(se, this._getLayerIndex(q), this._getAvailableImages(q));
16222
+ this.workerSources[q][W][Q] = new _(se, this._getLayerIndex(q), this._getAvailableImages(q));
16223
16223
  break;
16224
16224
  case "geojson":
16225
- this.workerSources[q][W][J] = new hr(se, this._getLayerIndex(q), this._getAvailableImages(q));
16225
+ this.workerSources[q][W][Q] = new hr(se, this._getLayerIndex(q), this._getAvailableImages(q));
16226
16226
  break;
16227
16227
  default:
16228
- this.workerSources[q][W][J] = new this.externalWorkerSourceTypes[W](se, this._getLayerIndex(q), this._getAvailableImages(q));
16228
+ this.workerSources[q][W][Q] = new this.externalWorkerSourceTypes[W](se, this._getLayerIndex(q), this._getAvailableImages(q));
16229
16229
  }
16230
16230
  }
16231
- return this.workerSources[q][W][J];
16231
+ return this.workerSources[q][W][Q];
16232
16232
  }
16233
16233
  _getDEMWorkerSource(q, W) {
16234
16234
  return this.demWorkerSources[q] || (this.demWorkerSources[q] = {}), this.demWorkerSources[q][W] || (this.demWorkerSources[q][W] = new S()), this.demWorkerSources[q][W];
@@ -16327,7 +16327,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16327
16327
  }
16328
16328
  w.deleteTexture(l), O = !0;
16329
16329
  }
16330
- var Q;
16330
+ var J;
16331
16331
  typeof document < "u" && (z = document.createElement("img"), z.onload = () => {
16332
16332
  D && U(D), D = null, F = !0;
16333
16333
  }, z.onerror = () => {
@@ -16381,7 +16381,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16381
16381
  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."));
16382
16382
  }, Y.src = te;
16383
16383
  });
16384
- }(Q || (Q = {})), Q.resetRequestQueue();
16384
+ }(J || (J = {})), J.resetRequestQueue();
16385
16385
  class Z {
16386
16386
  constructor(l) {
16387
16387
  this._transformRequestFn = l;
@@ -16393,14 +16393,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16393
16393
  this._transformRequestFn = l;
16394
16394
  }
16395
16395
  }
16396
- function Ee(w) {
16396
+ function Se(w) {
16397
16397
  var l = new o.A(3);
16398
16398
  return l[0] = w[0], l[1] = w[1], l[2] = w[2], l;
16399
16399
  }
16400
- var be, Ae = function(w, l, h) {
16400
+ var ve, Ae = function(w, l, h) {
16401
16401
  return w[0] = l[0] - h[0], w[1] = l[1] - h[1], w[2] = l[2] - h[2], w;
16402
16402
  };
16403
- be = new o.A(3), o.A != Float32Array && (be[0] = 0, be[1] = 0, be[2] = 0);
16403
+ ve = new o.A(3), o.A != Float32Array && (ve[0] = 0, ve[1] = 0, ve[2] = 0);
16404
16404
  var $e = function(w) {
16405
16405
  var l = w[0], h = w[1];
16406
16406
  return l * l + h * h;
@@ -17149,7 +17149,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
17149
17149
  const h = l.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme);
17150
17150
  l.abortController = new AbortController();
17151
17151
  try {
17152
- const y = yield Q.getImage(this.map._requestManager.transformRequest(h, "Tile"), l.abortController, this.map._refreshExpiredTiles);
17152
+ const y = yield J.getImage(this.map._requestManager.transformRequest(h, "Tile"), l.abortController, this.map._refreshExpiredTiles);
17153
17153
  if (delete l.abortController, l.aborted) return void (l.state = "unloaded");
17154
17154
  if (y && y.data) {
17155
17155
  this.map._refreshExpiredTiles && y.cacheControl && y.expires && l.setExpiryData({ cacheControl: y.cacheControl, expires: y.expires });
@@ -17185,7 +17185,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
17185
17185
  const h = l.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme), y = this.map._requestManager.transformRequest(h, "Tile");
17186
17186
  l.neighboringTiles = this._getNeighboringTiles(l.tileID), l.abortController = new AbortController();
17187
17187
  try {
17188
- const v = yield Q.getImage(y, l.abortController, this.map._refreshExpiredTiles);
17188
+ const v = yield J.getImage(y, l.abortController, this.map._refreshExpiredTiles);
17189
17189
  if (delete l.abortController, l.aborted) return void (l.state = "unloaded");
17190
17190
  if (v && v.data) {
17191
17191
  const x = v.data;
@@ -17322,7 +17322,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
17322
17322
  return o._(this, void 0, void 0, function* () {
17323
17323
  this._loaded = !1, this.fire(new o.k("dataloading", { dataType: "source" })), this.url = this.options.url, this._request = new AbortController();
17324
17324
  try {
17325
- const h = yield Q.getImage(this.map._requestManager.transformRequest(this.url, "Image"), this._request);
17325
+ const h = yield J.getImage(this.map._requestManager.transformRequest(this.url, "Image"), this._request);
17326
17326
  this._request = null, this._loaded = !0, h && h.data && (this.image = h.data, l && (this.coordinates = l), this._finishLoading());
17327
17327
  } catch (h) {
17328
17328
  this._request = null, this._loaded = !0, this.fire(new o.j(h));
@@ -18336,7 +18336,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18336
18336
  function W(w, l) {
18337
18337
  return w.x >= -l[0] && w.x <= l[0] && w.y >= -l[1] && w.y <= l[1];
18338
18338
  }
18339
- function J(w, l, h, y, v, x, A, I, P, B, V, j, Y, te, ne) {
18339
+ function Q(w, l, h, y, v, x, A, I, P, B, V, j, Y, te, ne) {
18340
18340
  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;
18341
18341
  pe.clear();
18342
18342
  const re = w.lineVertexArray, _e = y ? w.text.placedSymbolArray : w.icon.placedSymbolArray, xe = h.transform.width / h.transform.height;
@@ -18353,8 +18353,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18353
18353
  Nt(qe.numGlyphs, pe);
18354
18354
  continue;
18355
18355
  }
18356
- const ft = q(h.transform.cameraToCenterDistance, st.signedDistanceFromCamera), et = o.ai(ae, ue, qe), Ke = A ? et / ft : et * ft, St = { getElevation: ne, labelPlaneMatrix: v, lineVertexArray: re, pitchWithMap: A, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: B, tileAnchorPoint: new o.P(qe.anchorX, qe.anchorY), unwrappedTileID: V, width: j, height: Y, translation: te }, Yt = ve(St, qe, Ke, !1, I, l, x, w.glyphOffsetArray, pe, xe, P);
18357
- Ce = Yt.useVertical, (Yt.notEnoughRoom || Ce || Yt.needsFlipping && ve(St, qe, Ke, !0, I, l, x, w.glyphOffsetArray, pe, xe, P).notEnoughRoom) && Nt(qe.numGlyphs, pe);
18356
+ const ft = q(h.transform.cameraToCenterDistance, st.signedDistanceFromCamera), et = o.ai(ae, ue, qe), Ke = A ? et / ft : et * ft, St = { getElevation: ne, labelPlaneMatrix: v, lineVertexArray: re, pitchWithMap: A, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: B, tileAnchorPoint: new o.P(qe.anchorX, qe.anchorY), unwrappedTileID: V, width: j, height: Y, translation: te }, Yt = be(St, qe, Ke, !1, I, l, x, w.glyphOffsetArray, pe, xe, P);
18357
+ Ce = Yt.useVertical, (Yt.notEnoughRoom || Ce || Yt.needsFlipping && be(St, qe, Ke, !0, I, l, x, w.glyphOffsetArray, pe, xe, P).notEnoughRoom) && Nt(qe.numGlyphs, pe);
18358
18358
  }
18359
18359
  y ? w.text.dynamicLayoutVertexBuffer.updateData(pe) : w.icon.dynamicLayoutVertexBuffer.updateData(pe);
18360
18360
  }
@@ -18367,7 +18367,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18367
18367
  function ge(w, l, h, y) {
18368
18368
  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;
18369
18369
  }
18370
- function ve(w, l, h, y, v, x, A, I, P, B, V) {
18370
+ function be(w, l, h, y, v, x, A, I, P, B, V) {
18371
18371
  const j = h / 24, Y = l.lineOffsetX * j, te = l.lineOffsetY * j;
18372
18372
  let ne;
18373
18373
  if (l.numGlyphs > 1) {
@@ -18384,7 +18384,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18384
18384
  } else {
18385
18385
  if (v && !y) {
18386
18386
  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, qe, st, ft, et) {
18387
- return Se(Ce, Be, qe, 1, ft, et);
18387
+ return ke(Ce, Be, qe, 1, ft, et);
18388
18388
  }(w.tileAnchorPoint, pe, ue, 0, x, w), xe = ge(l.writingMode, ue, _e, B);
18389
18389
  if (xe) return xe;
18390
18390
  }
@@ -18395,7 +18395,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18395
18395
  for (const ae of ne) o.aj(P, ae.point, ae.angle);
18396
18396
  return {};
18397
18397
  }
18398
- function Se(w, l, h, y, v, x) {
18398
+ function ke(w, l, h, y, v, x) {
18399
18399
  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);
18400
18400
  return h.add(P._mult(y / P.mag()));
18401
18401
  }
@@ -18406,7 +18406,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18406
18406
  if (x.signedDistanceFromCamera > 0) return y.projections[w] = x.point, y.anyProjectionOccluded = y.anyProjectionOccluded || x.isOccluded, x.point;
18407
18407
  const A = w - h.direction;
18408
18408
  return function(I, P, B, V, j) {
18409
- return Se(I, P, B, V, void 0, j);
18409
+ return ke(I, P, B, V, void 0, j);
18410
18410
  }(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);
18411
18411
  }
18412
18412
  function ze(w, l, h) {
@@ -19149,7 +19149,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19149
19149
  const ae = A.transformRequest(pt(ne, V, ".json"), "SpriteJSON");
19150
19150
  j[te] = o.h(ae, P);
19151
19151
  const ue = A.transformRequest(pt(ne, V, ".png"), "SpriteImage");
19152
- Y[te] = Q.getImage(ue, P);
19152
+ Y[te] = J.getImage(ue, P);
19153
19153
  }
19154
19154
  return yield Promise.all([...Object.values(j), ...Object.values(Y)]), function(te, ne) {
19155
19155
  return o._(this, void 0, void 0, function* () {
@@ -21056,7 +21056,7 @@ uniform ${V} ${j} u_${Y};
21056
21056
  const yr = pn(Ke, 1, w.transform.zoom), Js = _e ? et.posMatrix : Vu, kl = hr(Js, he, ue, w.transform, yr), rd = Wr(Js, he, ue, w.transform, yr), Ts = Wr(et.posMatrix, he, ue, w.transform, yr), Ma = ae.translatePosition(w.transform, Ke, x, A), sd = qe && St.hasTextData(), af = h.layout.get("icon-text-fit") !== "none" && sd && St.hasIconData();
21057
21057
  if (pe) {
21058
21058
  const gi = w.style.map.terrain ? (El, od) => w.style.map.terrain.getElevation(et, El, od) : null, vo = h.layout.get("text-rotation-alignment") === "map";
21059
- J(St, et.posMatrix, w, v, kl, Ts, he, B, vo, ae, et.toUnwrapped(), ne.width, ne.height, Ma, gi);
21059
+ Q(St, et.posMatrix, w, v, kl, Ts, he, B, vo, ae, et.toUnwrapped(), ne.width, ne.height, Ma, gi);
21060
21060
  }
21061
21061
  const Zr = et.posMatrix, As = v && qe || af, Xr = pe || As ? Vu : kl, jo = rd, vr = ut && h.paint.get(v ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
21062
21062
  let Qi;
@@ -21664,7 +21664,7 @@ uniform ${V} ${j} u_${Y};
21664
21664
  }([], this.min, this.max));
21665
21665
  }
21666
21666
  quadrant(l) {
21667
- const h = [l % 2 == 0, l < 2], y = Ee(this.min), v = Ee(this.max);
21667
+ const h = [l % 2 == 0, l < 2], y = Se(this.min), v = Se(this.max);
21668
21668
  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];
21669
21669
  return v[2] = this.max[2], new bl(y, v);
21670
21670
  }
@@ -24265,7 +24265,7 @@ uniform ${V} ${j} u_${Y};
24265
24265
  if (h.target === this._container) return this._container.scrollTop = 0, this._container.scrollLeft = 0, !1;
24266
24266
  }, this._onWindowOnline = () => {
24267
24267
  this._update();
24268
- }, 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({}, Am), 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") {
24268
+ }, 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({}, Am), 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") {
24269
24269
  if (this._container = document.getElementById(l.container), !this._container) throw new Error(`Container '${l.container}' not found.`);
24270
24270
  } else {
24271
24271
  if (!(l.container instanceof HTMLElement)) throw new Error("Invalid type: 'container' must be a String or HTMLElement.");
@@ -24600,7 +24600,7 @@ uniform ${V} ${j} u_${Y};
24600
24600
  this.style.removeImage(w);
24601
24601
  }
24602
24602
  loadImage(w) {
24603
- return Q.getImage(this._requestManager.transformRequest(w, "Image"), new AbortController());
24603
+ return J.getImage(this._requestManager.transformRequest(w, "Image"), new AbortController());
24604
24604
  }
24605
24605
  listImages() {
24606
24606
  return this.style.listImages();
@@ -24759,7 +24759,7 @@ uniform ${V} ${j} u_${Y};
24759
24759
  var w;
24760
24760
  this._hash && this._hash.remove();
24761
24761
  for (const h of this._controls) h.onRemove(this);
24762
- 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();
24762
+ 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();
24763
24763
  const l = this.painter.context.gl.getExtension("WEBGL_lose_context");
24764
24764
  l != null && l.loseContext && l.loseContext(), this._canvas.removeEventListener("webglcontextrestored", this._contextRestored, !1), this._canvas.removeEventListener("webglcontextlost", this._contextLost, !1), S.remove(this._canvasContainer), S.remove(this._controlContainer), this._container.classList.remove("maplibregl-map"), o.bf.clearMetrics(), this._removed = !0, this.fire(new o.k("remove"));
24765
24765
  }
@@ -25003,11 +25003,11 @@ function JA(n, e, t) {
25003
25003
  for (var i, r, s, a, o, f, m, g = 0, _ = 0, S, C = n.type, D = C === "FeatureCollection", z = C === "Feature", O = D ? n.features.length : 1, F = 0; F < O; F++) {
25004
25004
  m = D ? n.features[F].geometry : z ? n.geometry : n, S = m ? m.type === "GeometryCollection" : !1, o = S ? m.geometries.length : 1;
25005
25005
  for (var U = 0; U < o; U++) {
25006
- var Q = 0, Z = 0;
25006
+ var J = 0, Z = 0;
25007
25007
  if (a = S ? m.geometries[U] : m, a !== null) {
25008
25008
  f = a.coordinates;
25009
- var Ee = a.type;
25010
- switch (g = 0, Ee) {
25009
+ var Se = a.type;
25010
+ switch (g = 0, Se) {
25011
25011
  case null:
25012
25012
  break;
25013
25013
  case "Point":
@@ -25015,11 +25015,11 @@ function JA(n, e, t) {
25015
25015
  f,
25016
25016
  _,
25017
25017
  F,
25018
- Q,
25018
+ J,
25019
25019
  Z
25020
25020
  ) === !1)
25021
25021
  return !1;
25022
- _++, Q++;
25022
+ _++, J++;
25023
25023
  break;
25024
25024
  case "LineString":
25025
25025
  case "MultiPoint":
@@ -25028,13 +25028,13 @@ function JA(n, e, t) {
25028
25028
  f[i],
25029
25029
  _,
25030
25030
  F,
25031
- Q,
25031
+ J,
25032
25032
  Z
25033
25033
  ) === !1)
25034
25034
  return !1;
25035
- _++, Ee === "MultiPoint" && Q++;
25035
+ _++, Se === "MultiPoint" && J++;
25036
25036
  }
25037
- Ee === "LineString" && Q++;
25037
+ Se === "LineString" && J++;
25038
25038
  break;
25039
25039
  case "Polygon":
25040
25040
  case "MultiLineString":
@@ -25044,15 +25044,15 @@ function JA(n, e, t) {
25044
25044
  f[i][r],
25045
25045
  _,
25046
25046
  F,
25047
- Q,
25047
+ J,
25048
25048
  Z
25049
25049
  ) === !1)
25050
25050
  return !1;
25051
25051
  _++;
25052
25052
  }
25053
- Ee === "MultiLineString" && Q++, Ee === "Polygon" && Z++;
25053
+ Se === "MultiLineString" && J++, Se === "Polygon" && Z++;
25054
25054
  }
25055
- Ee === "Polygon" && Q++;
25055
+ Se === "Polygon" && J++;
25056
25056
  break;
25057
25057
  case "MultiPolygon":
25058
25058
  for (i = 0; i < f.length; i++) {
@@ -25062,7 +25062,7 @@ function JA(n, e, t) {
25062
25062
  f[i][r][s],
25063
25063
  _,
25064
25064
  F,
25065
- Q,
25065
+ J,
25066
25066
  Z
25067
25067
  ) === !1)
25068
25068
  return !1;
@@ -25070,7 +25070,7 @@ function JA(n, e, t) {
25070
25070
  }
25071
25071
  Z++;
25072
25072
  }
25073
- Q++;
25073
+ J++;
25074
25074
  }
25075
25075
  break;
25076
25076
  case "GeometryCollection":
@@ -26100,8 +26100,8 @@ let lb = null, cb = null, Qd = class tM extends ow {
26100
26100
  const { content: t, contentRect: i } = this, { fitWidth: r, fitHeight: s, fullWidth: a, fullHeight: o } = i;
26101
26101
  let f = a, m = o;
26102
26102
  if (this.option("zoom") || this.angle !== 0) {
26103
- const g = !(t instanceof HTMLImageElement) && (window.getComputedStyle(t).maxWidth === "none" || window.getComputedStyle(t).maxHeight === "none"), _ = g ? a : r, S = 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 + S).matrixTransform(C), F = new DOMPoint(0, 0 + S).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);
26104
- f = Math.max(U, Z), m = Math.max(Q, Ee);
26103
+ const g = !(t instanceof HTMLImageElement) && (window.getComputedStyle(t).maxWidth === "none" || window.getComputedStyle(t).maxHeight === "none"), _ = g ? a : r, S = 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 + S).matrixTransform(C), F = new DOMPoint(0, 0 + S).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);
26104
+ f = Math.max(U, Z), m = Math.max(J, Se);
26105
26105
  }
26106
26106
  return { contentWidth: f, contentHeight: m };
26107
26107
  }
@@ -26178,8 +26178,8 @@ let lb = null, cb = null, Qd = class tM extends ow {
26178
26178
  const { content: r } = this, s = Gk(i[0], i[1]), a = Gk(t[0], t[1]);
26179
26179
  let o = 0, f = 0;
26180
26180
  if (t.length > 1) {
26181
- const Q = r.getBoundingClientRect();
26182
- o = s.clientX - Q.left - 0.5 * Q.width, f = s.clientY - Q.top - 0.5 * Q.height;
26181
+ const J = r.getBoundingClientRect();
26182
+ o = s.clientX - J.left - 0.5 * J.width, f = s.clientY - J.top - 0.5 * J.height;
26183
26183
  }
26184
26184
  const m = qk(i[0], i[1]), g = qk(t[0], t[1]);
26185
26185
  let _ = m ? g / m : 1, S = a.clientX - s.clientX, C = a.clientY - s.clientY;
@@ -26187,8 +26187,8 @@ let lb = null, cb = null, Qd = class tM extends ow {
26187
26187
  let D = yt(this.targetScale) === yt(this.minScale) && this.option("lockAxis");
26188
26188
  if (D && !this.lockedAxis) if (D === "xy" || D === "y" || e.type === "touchmove") {
26189
26189
  if (Math.abs(this.dragOffset.x) < 6 && Math.abs(this.dragOffset.y) < 6) return void e.preventDefault();
26190
- const Q = Math.abs(180 * Math.atan2(this.dragOffset.y, this.dragOffset.x) / Math.PI);
26191
- this.lockedAxis = Q > 45 && Q < 135 ? "y" : "x", this.dragOffset.x = 0, this.dragOffset.y = 0, S = 0, C = 0;
26190
+ const J = Math.abs(180 * Math.atan2(this.dragOffset.y, this.dragOffset.x) / Math.PI);
26191
+ this.lockedAxis = J > 45 && J < 135 ? "y" : "x", this.dragOffset.x = 0, this.dragOffset.y = 0, S = 0, C = 0;
26192
26192
  } else this.lockedAxis = D;
26193
26193
  if (sy(e.target, this.content) && (D = "x", this.dragOffset.y = 0), D && D !== "xy" && this.lockedAxis !== D && yt(this.targetScale) === yt(this.minScale)) return;
26194
26194
  e.cancelable && e.preventDefault(), this.container.classList.add(this.cn("isDragging"));
@@ -26205,7 +26205,7 @@ let lb = null, cb = null, Qd = class tM extends ow {
26205
26205
  var e;
26206
26206
  const t = this.isScaling;
26207
26207
  this.rAF && (cancelAnimationFrame(this.rAF), this.rAF = null), this.isBouncingX = !1, this.isBouncingY = !1;
26208
- for (const Q of Na) this.velocity[Q] = 0;
26208
+ for (const J of Na) this.velocity[J] = 0;
26209
26209
  this.target.e = this.current.e, this.target.f = this.current.f, Kn(this.container, "is-scaling"), Kn(this.container, "is-animating"), this.isTicking = !1;
26210
26210
  const { trackingPoints: i } = this, r = i[0], s = i[i.length - 1];
26211
26211
  let a = 0, o = 0, f = 0;
@@ -26216,8 +26216,8 @@ let lb = null, cb = null, Qd = class tM extends ow {
26216
26216
  const z = this.targetScale;
26217
26217
  if (f > 0) {
26218
26218
  S = Math.abs(a) > 3 ? a / (f / 30) : 0, C = Math.abs(o) > 3 ? o / (f / 30) : 0;
26219
- const Q = this.option("maxVelocity");
26220
- Q && (S = Math.max(Math.min(S, Q), -1 * Q), C = Math.max(Math.min(C, Q), -1 * Q));
26219
+ const J = this.option("maxVelocity");
26220
+ J && (S = Math.max(Math.min(S, J), -1 * J), C = Math.max(Math.min(C, J), -1 * J));
26221
26221
  }
26222
26222
  S && (g = S / (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 = S = 0), (this.option("lockAxis") === "x" || this.option("lockAxis") === "xy" && this.lockedAxis === "x" && yt(z) === this.minScale) && (_ = C = 0);
26223
26223
  const O = this.dragOffset.x, F = this.dragOffset.y, U = this.option("dragMinThreshold") || 0;
@@ -26269,20 +26269,20 @@ let lb = null, cb = null, Qd = class tM extends ow {
26269
26269
  return Lt = ct instanceof HTMLImageElement ? ct.naturalHeight : ct instanceof SVGElement ? ct.height.baseVal.value : Math.max(ct.offsetHeight, ct.scrollHeight), Lt || 0;
26270
26270
  })(s);
26271
26271
  let O = this.option("width", D) || no, F = this.option("height", z) || no;
26272
- const U = O === no, Q = F === no;
26273
- typeof O != "number" && (O = D), typeof F != "number" && (F = z), U && (O = D * (F / z)), Q && (F = z / (D / O));
26272
+ const U = O === no, J = F === no;
26273
+ typeof O != "number" && (O = D), typeof F != "number" && (F = z), U && (O = D * (F / z)), J && (F = z / (D / O));
26274
26274
  let Z = s.parentElement instanceof HTMLPictureElement ? s.parentElement : s;
26275
26275
  this.option("transformParent") && (Z = Z.parentElement || Z);
26276
- const Ee = Z.getAttribute("style") || "";
26276
+ const Se = Z.getAttribute("style") || "";
26277
26277
  Z.style.setProperty("transform", "none", "important"), a && (Z.style.width = "", Z.style.height = ""), Z.offsetHeight;
26278
- const be = s.getBoundingClientRect();
26279
- let Ae = be.width * i, $e = be.height * i, Oe = Ae, pt = $e;
26278
+ const ve = s.getBoundingClientRect();
26279
+ let Ae = ve.width * i, $e = ve.height * i, Oe = Ae, pt = $e;
26280
26280
  Ae = Math.min(Ae, O), $e = Math.min($e, F), a ? { width: Ae, height: $e } = ((ct, Lt, Gt, Qt) => {
26281
26281
  const jt = Gt / ct, Jt = Qt / Lt, Sn = Math.min(jt, Jt);
26282
26282
  return { width: ct *= Sn, height: Lt *= Sn };
26283
26283
  })(O, F, Ae, $e) : (Ae = Math.min(Ae, O), $e = Math.min($e, F));
26284
26284
  let ot = 0.5 * (pt - $e), me = 0.5 * (Oe - Ae);
26285
- 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 === ei.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
26285
+ 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 === ei.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
26286
26286
  }
26287
26287
  calculateBounds() {
26288
26288
  const { contentWidth: e, contentHeight: t } = this.calculateContentDim(this.target), { targetScale: i, lockedAxis: r } = this, { fitWidth: s, fitHeight: a } = this.contentRect;
@@ -26346,8 +26346,8 @@ let lb = null, cb = null, Qd = class tM extends ow {
26346
26346
  let F = new DOMMatrix().translate(D, z).translate(s, a).translate(e, t);
26347
26347
  if (this.option("zoom")) {
26348
26348
  if (!g) {
26349
- const U = this.targetScale, Q = this.minScale, Z = this.maxScale;
26350
- U * i < Q && (i = Q / U), U * i > Z && (i = Z / U);
26349
+ const U = this.targetScale, J = this.minScale, Z = this.maxScale;
26350
+ U * i < J && (i = J / U), U * i > Z && (i = Z / U);
26351
26351
  }
26352
26352
  F = F.scale(i);
26353
26353
  }
@@ -26813,19 +26813,19 @@ let qf = class O_ extends ow {
26813
26813
  repositionSlides() {
26814
26814
  let e, { isHorizontal: t, isRTL: i, isInfinite: r, viewport: s, viewportDim: a, contentDim: o, page: f, pages: m, slides: g, panzoom: _ } = this, S = 0, C = 0, D = 0, z = 0;
26815
26815
  _ ? z = -1 * _.current[this.axis] : m[f] && (z = m[f].pos || 0), e = t ? i ? "right" : "left" : "top", i && t && (z *= -1);
26816
- for (const Q of g) {
26817
- const Z = Q.el;
26818
- Z ? (e === "top" ? (Z.style.right = "", Z.style.left = "") : Z.style.top = "", Q.index !== S ? Z.style[e] = C === 0 ? "" : `${yt(C, 1e3)}px` : Z.style[e] = "", D += Q.dim + Q.gap, S++) : C += Q.dim + Q.gap;
26816
+ for (const J of g) {
26817
+ const Z = J.el;
26818
+ Z ? (e === "top" ? (Z.style.right = "", Z.style.left = "") : Z.style.top = "", J.index !== S ? Z.style[e] = C === 0 ? "" : `${yt(C, 1e3)}px` : Z.style[e] = "", D += J.dim + J.gap, S++) : C += J.dim + J.gap;
26819
26819
  }
26820
26820
  if (r && D && s) {
26821
- let Q = getComputedStyle(s), Z = "padding", Ee = t ? "Right" : "Bottom", be = parseFloat(Q[Z + (t ? "Left" : "Top")]);
26822
- z -= be, a += be, a += parseFloat(Q[Z + Ee]);
26821
+ let J = getComputedStyle(s), Z = "padding", Se = t ? "Right" : "Bottom", ve = parseFloat(J[Z + (t ? "Left" : "Top")]);
26822
+ z -= ve, a += ve, a += parseFloat(J[Z + Se]);
26823
26823
  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`));
26824
26824
  }
26825
26825
  let O, F, U = [...this.inTransition];
26826
26826
  if (U.length > 1 && (O = m[U[0]], F = m[U[1]]), O && F) {
26827
- let Q = 0;
26828
- 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;
26827
+ let J = 0;
26828
+ 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;
26829
26829
  }
26830
26830
  }
26831
26831
  createSlideEl(e) {
@@ -26872,8 +26872,8 @@ let qf = class O_ extends ow {
26872
26872
  this.inTransition.add(z.index), this.createSlideEl(z);
26873
26873
  let O = D.el, F = z.el;
26874
26874
  C || t === lg || (t = "fadeFast", O = null);
26875
- const U = this.isRTL ? "next" : "prev", Q = this.isRTL ? "prev" : "next";
26876
- return O && (this.inTransition.add(D.index), D.transition = t, O.addEventListener(ag, this.onAnimationEnd), O.classList.add(`f-${t}Out`, `to-${_ > 0 ? Q : U}`)), F && (z.transition = t, F.addEventListener(ag, this.onAnimationEnd), F.classList.add(`f-${t}In`, `from-${_ > 0 ? U : Q}`)), m.current[this.axis] = S, m.target[this.axis] = S, m.requestTick(), this.onChange(g), !0;
26875
+ const U = this.isRTL ? "next" : "prev", J = this.isRTL ? "prev" : "next";
26876
+ return O && (this.inTransition.add(D.index), D.transition = t, O.addEventListener(ag, this.onAnimationEnd), O.classList.add(`f-${t}Out`, `to-${_ > 0 ? J : U}`)), F && (z.transition = t, F.addEventListener(ag, this.onAnimationEnd), F.classList.add(`f-${t}In`, `from-${_ > 0 ? U : J}`)), m.current[this.axis] = S, m.target[this.axis] = S, m.requestTick(), this.onChange(g), !0;
26877
26877
  }
26878
26878
  manageSlideVisiblity() {
26879
26879
  const e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set(), i = this.getVisibleSlides(parseFloat(this.option("preload", 0) + "") || 0);
@@ -27109,8 +27109,8 @@ let qf = class O_ extends ow {
27109
27109
  let S = 0, C = 0, D = 0, z = e === void 0 ? -1 * ((a == null ? void 0 : a.target[this.axis]) || 0) : e;
27110
27110
  _ && (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));
27111
27111
  let O = g, F = r.find((U) => {
27112
- const Q = U.pos - 0.5 * O.gap, Z = U.pos + U.dim + 0.5 * U.gap;
27113
- return O = U, z >= Q && z < Z;
27112
+ const J = U.pos - 0.5 * O.gap, Z = U.pos + U.dim + 0.5 * U.gap;
27113
+ return O = U, z >= J && z < Z;
27114
27114
  });
27115
27115
  return F || (F = g), C = this.getPageForSlide(F.index), S = C + D * o, { page: S, pageIndex: C };
27116
27116
  }
@@ -27246,9 +27246,9 @@ class dM extends zo {
27246
27246
  (((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" });
27247
27247
  const { x: _, y: S, scale: C, opacity: D } = m;
27248
27248
  if (D) {
27249
- const z = ((O, F, U, Q) => {
27250
- const Z = F - O, Ee = Q - U;
27251
- return (be) => U + ((be - O) / Z * Ee || 0);
27249
+ const z = ((O, F, U, J) => {
27250
+ const Z = F - O, Se = J - U;
27251
+ return (ve) => U + ((ve - O) / Z * Se || 0);
27252
27252
  })(o.scale, C, 1, 0);
27253
27253
  o.on("afterTransform", () => {
27254
27254
  a.style.opacity = z(o.scale) + "";
@@ -27365,9 +27365,9 @@ class dM extends zo {
27365
27365
  if (!(_ && S && z && O)) return !1;
27366
27366
  const F = s.container.getBoundingClientRect();
27367
27367
  D += F.left, C += F.top;
27368
- const U = -1 * (D + 0.5 * z - (g + 0.5 * _)), Q = -1 * (C + 0.5 * O - (m + 0.5 * S)), Z = _ / z;
27369
- let Ee = this.option("zoomOpacity") || !1;
27370
- return Ee === "auto" && (Ee = Math.abs(_ / S - z / O) > 0.1), { x: U, y: Q, scale: Z, opacity: Ee };
27368
+ const U = -1 * (D + 0.5 * z - (g + 0.5 * _)), J = -1 * (C + 0.5 * O - (m + 0.5 * S)), Z = _ / z;
27369
+ let Se = this.option("zoomOpacity") || !1;
27370
+ return Se === "auto" && (Se = Math.abs(_ / S - z / O) > 0.1), { x: U, y: J, scale: Z, opacity: Se };
27371
27371
  }
27372
27372
  attach() {
27373
27373
  const e = this, t = e.instance;
@@ -29226,10 +29226,10 @@ const Nj = /* @__PURE__ */ gt(Sj, [["render", Lj]]), Bj = { class: "flex flex-co
29226
29226
  const O = Array.from((F = z.target) == null ? void 0 : F.files);
29227
29227
  await Promise.all(
29228
29228
  O.map(async (U) => {
29229
- const Q = new FormData();
29230
- Q.append("file", U);
29229
+ const J = new FormData();
29230
+ J.append("file", U);
29231
29231
  try {
29232
- await rt.post(`/api/widget/file/${t == null ? void 0 : t.id}`, Q);
29232
+ await rt.post(`/api/widget/file/${t == null ? void 0 : t.id}`, J);
29233
29233
  } catch (Z) {
29234
29234
  console.error(Z);
29235
29235
  }
@@ -29270,8 +29270,8 @@ const Nj = /* @__PURE__ */ gt(Sj, [["render", Lj]]), Bj = { class: "flex flex-co
29270
29270
  }
29271
29271
  }, C = (z, O = 2) => {
29272
29272
  if (z === 0) return "0 Bytes";
29273
- const F = 1024, U = O < 0 ? 0 : O, Q = ["Bytes", "KB", "MB", "GB", "TB"], Z = Math.floor(Math.log(z) / Math.log(F));
29274
- return `${parseFloat((z / F ** Z).toFixed(U))} ${Q[Z]}`;
29273
+ const F = 1024, U = O < 0 ? 0 : O, J = ["Bytes", "KB", "MB", "GB", "TB"], Z = Math.floor(Math.log(z) / Math.log(F));
29274
+ return `${parseFloat((z / F ** Z).toFixed(U))} ${J[Z]}`;
29275
29275
  }, D = (z) => {
29276
29276
  const O = {
29277
29277
  day: "numeric",
@@ -29333,13 +29333,13 @@ const Nj = /* @__PURE__ */ gt(Sj, [["render", Lj]]), Bj = { class: "flex flex-co
29333
29333
  U != null && U.ismain ? wt("", !0) : (K(), ie("div", {
29334
29334
  key: 0,
29335
29335
  class: "text-xs underline",
29336
- onClick: Rg((Q) => g(U == null ? void 0 : U.entity_id, U == null ? void 0 : U.file_id), ["prevent"])
29336
+ onClick: Rg((J) => g(U == null ? void 0 : U.entity_id, U == null ? void 0 : U.file_id), ["prevent"])
29337
29337
  }, "Зробити головним", 8, Jj))
29338
29338
  ]),
29339
29339
  L("div", null, [
29340
29340
  L("div", {
29341
29341
  class: "flex items-center justify-center gap-2 hover:bg-gray-200 p-[6px] rounded",
29342
- onClick: Rg((Q) => m(U), ["prevent"])
29342
+ onClick: Rg((J) => m(U), ["prevent"])
29343
29343
  }, [
29344
29344
  je(_M, {
29345
29345
  height: "14",
@@ -29348,7 +29348,7 @@ const Nj = /* @__PURE__ */ gt(Sj, [["render", Lj]]), Bj = { class: "flex flex-co
29348
29348
  ], 8, Qj),
29349
29349
  L("div", {
29350
29350
  class: "flex items-center gap-2 hover:bg-gray-200 p-[6px] rounded hover:cursor-pointer",
29351
- onClick: Rg((Q) => _(U), ["prevent"])
29351
+ onClick: Rg((J) => _(U), ["prevent"])
29352
29352
  }, [
29353
29353
  je(xM, {
29354
29354
  height: "14",
@@ -33341,8 +33341,8 @@ function G6(n, e, t, i) {
33341
33341
  for (let z = 0; z < a.length; z++) {
33342
33342
  let O = a[(z + f) % a.length], F = !0;
33343
33343
  O < 0 && (F = !1, O = -O);
33344
- let U = r.node(O - 1), Q = r.index(O - 1);
33345
- if (U.canReplaceWith(Q, Q, D.type, D.marks))
33344
+ let U = r.node(O - 1), J = r.index(O - 1);
33345
+ if (U.canReplaceWith(J, J, D.type, D.marks))
33346
33346
  return n.replace(r.before(O), F ? s.after(O) : t, new kt(QM(i.content, 0, i.openStart, C), C, i.openEnd));
33347
33347
  }
33348
33348
  }
@@ -37326,8 +37326,8 @@ function gU(n, e, t, i, r, s, a) {
37326
37326
  let U = o[F + 1];
37327
37327
  if (U < 0 || S > U + g - _)
37328
37328
  continue;
37329
- let Q = o[F] + g - _;
37330
- C >= Q ? o[F + 1] = S <= Q ? -2 : -1 : S >= g && O && (o[F] += O, o[F + 1] += O);
37329
+ let J = o[F] + g - _;
37330
+ C >= J ? o[F + 1] = S <= J ? -2 : -1 : S >= g && O && (o[F] += O, o[F + 1] += O);
37331
37331
  }
37332
37332
  _ += O;
37333
37333
  }), g = t.maps[m].map(g, -1);
@@ -37725,8 +37725,8 @@ function AU(n, e, t, i, r) {
37725
37725
  return;
37726
37726
  }
37727
37727
  n.state.selection.from < n.state.selection.to && D.start == D.endB && n.state.selection instanceof cn && (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)), gs && Xl <= 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--);
37728
- 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;
37729
- if ((nh && 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 = vn.findFrom(m.doc.resolve(z.pos + 1), 1, !0)) && Q.head == O.pos) && n.someProp("handleKeyDown", (Oe) => Oe(n, Jc(13, "Enter")))) {
37728
+ 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;
37729
+ if ((nh && 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 = vn.findFrom(m.doc.resolve(z.pos + 1), 1, !0)) && J.head == O.pos) && n.someProp("handleKeyDown", (Oe) => Oe(n, Jc(13, "Enter")))) {
37730
37730
  n.input.lastIOSEnter = 0;
37731
37731
  return;
37732
37732
  }
@@ -37739,27 +37739,27 @@ function AU(n, e, t, i, r) {
37739
37739
  return Oe(n, Jc(13, "Enter"));
37740
37740
  });
37741
37741
  }, 20));
37742
- let Z = D.start, Ee = D.endA, be, Ae, $e;
37742
+ let Z = D.start, Se = D.endA, ve, Ae, $e;
37743
37743
  if (U) {
37744
37744
  if (z.pos == O.pos)
37745
- gs && Xl <= 11 && z.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Ja(n), 20)), be = n.state.tr.delete(Z, Ee), Ae = g.resolve(D.start).marksAcross(g.resolve(D.endA));
37745
+ gs && Xl <= 11 && z.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Ja(n), 20)), ve = n.state.tr.delete(Z, Se), Ae = g.resolve(D.start).marksAcross(g.resolve(D.endA));
37746
37746
  else if (
37747
37747
  // Adding or removing a mark
37748
37748
  D.endA == D.endB && ($e = MU(z.parent.content.cut(z.parentOffset, O.parentOffset), F.parent.content.cut(F.parentOffset, D.endA - F.start())))
37749
37749
  )
37750
- be = n.state.tr, $e.type == "add" ? be.addMark(Z, Ee, $e.mark) : be.removeMark(Z, Ee, $e.mark);
37750
+ ve = n.state.tr, $e.type == "add" ? ve.addMark(Z, Se, $e.mark) : ve.removeMark(Z, Se, $e.mark);
37751
37751
  else if (z.parent.child(z.index()).isText && z.index() == O.index() - (O.textOffset ? 0 : 1)) {
37752
37752
  let Oe = z.parent.textBetween(z.parentOffset, O.parentOffset);
37753
- if (n.someProp("handleTextInput", (pt) => pt(n, Z, Ee, Oe)))
37753
+ if (n.someProp("handleTextInput", (pt) => pt(n, Z, Se, Oe)))
37754
37754
  return;
37755
- be = n.state.tr.insertText(Oe, Z, Ee);
37755
+ ve = n.state.tr.insertText(Oe, Z, Se);
37756
37756
  }
37757
37757
  }
37758
- if (be || (be = n.state.tr.replace(Z, Ee, m.doc.slice(D.start - m.from, D.endB - m.from))), m.sel) {
37759
- let Oe = hC(n, be.doc, m.sel);
37760
- Oe && !(Vr && n.composing && Oe.empty && (D.start != D.endB || n.input.lastChromeDelete < Date.now() - 100) && (Oe.head == Z || Oe.head == be.mapping.map(Ee) - 1) || gs && Oe.empty && Oe.head == Z) && be.setSelection(Oe);
37758
+ if (ve || (ve = n.state.tr.replace(Z, Se, m.doc.slice(D.start - m.from, D.endB - m.from))), m.sel) {
37759
+ let Oe = hC(n, ve.doc, m.sel);
37760
+ Oe && !(Vr && n.composing && Oe.empty && (D.start != D.endB || n.input.lastChromeDelete < Date.now() - 100) && (Oe.head == Z || Oe.head == ve.mapping.map(Se) - 1) || gs && Oe.empty && Oe.head == Z) && ve.setSelection(Oe);
37761
37761
  }
37762
- Ae && be.ensureMarks(Ae), s && be.setMeta("composition", s), n.dispatch(be.scrollIntoView());
37762
+ Ae && ve.ensureMarks(Ae), s && ve.setMeta("composition", s), n.dispatch(ve.scrollIntoView());
37763
37763
  }
37764
37764
  function hC(n, e, t) {
37765
37765
  return Math.max(t.anchor, t.head) > e.content.size ? null : pw(n, e.resolve(t.anchor), e.resolve(t.head));
@@ -38615,8 +38615,8 @@ function jD(n, e, t, i) {
38615
38615
  if (C.canReplace(C.childCount, C.childCount, z.content)) {
38616
38616
  if (t) {
38617
38617
  let F = Ye.empty;
38618
- for (let Q = D.length - 1; Q >= 0; Q--)
38619
- F = Ye.from(D[Q].copy(F));
38618
+ for (let J = D.length - 1; J >= 0; J--)
38619
+ F = Ye.from(D[J].copy(F));
38620
38620
  let U = n.tr.step(new ar(e.pos - D.length, e.pos + s.nodeSize, e.pos + O, e.pos + s.nodeSize - O, new kt(F, D.length, 0), 0, !0));
38621
38621
  t(U.scrollIntoView());
38622
38622
  }
@@ -39015,10 +39015,10 @@ function y8(n, e) {
39015
39015
  storage: m.storage,
39016
39016
  editor: e
39017
39017
  }, S = n.reduce((F, U) => {
39018
- const Q = Ot(U, "extendNodeSchema", _);
39018
+ const J = Ot(U, "extendNodeSchema", _);
39019
39019
  return {
39020
39020
  ...F,
39021
- ...Q ? Q(m) : {}
39021
+ ...J ? J(m) : {}
39022
39022
  };
39023
39023
  }, {}), C = xC({
39024
39024
  ...S,
@@ -39150,7 +39150,7 @@ function bg(n) {
39150
39150
  }), O = {
39151
39151
  from: i - (C[0].length - s.length),
39152
39152
  to: r
39153
- }, { commands: F, chain: U, can: Q } = new g0({
39153
+ }, { commands: F, chain: U, can: J } = new g0({
39154
39154
  editor: t,
39155
39155
  state: z
39156
39156
  });
@@ -39160,7 +39160,7 @@ function bg(n) {
39160
39160
  match: C,
39161
39161
  commands: F,
39162
39162
  chain: U,
39163
- can: Q
39163
+ can: J
39164
39164
  }) === null || !D.steps.length || (D.setMeta(o, {
39165
39165
  transform: D,
39166
39166
  from: i,
@@ -39325,16 +39325,16 @@ function E8(n) {
39325
39325
  if (!C.isTextblock || C.type.spec.code)
39326
39326
  return;
39327
39327
  const z = Math.max(i, D), O = Math.min(r, D + C.content.size), F = C.textBetween(z - D, O - D, void 0, "");
39328
- k8(F, s.find, a).forEach((Q) => {
39329
- if (Q.index === void 0)
39328
+ k8(F, s.find, a).forEach((J) => {
39329
+ if (J.index === void 0)
39330
39330
  return;
39331
- const Z = z + Q.index + 1, Ee = Z + Q[0].length, be = {
39331
+ const Z = z + J.index + 1, Se = Z + J[0].length, ve = {
39332
39332
  from: t.tr.mapping.map(Z),
39333
- to: t.tr.mapping.map(Ee)
39333
+ to: t.tr.mapping.map(Se)
39334
39334
  }, Ae = s.handler({
39335
39335
  state: t,
39336
- range: be,
39337
- match: Q,
39336
+ range: ve,
39337
+ match: J,
39338
39338
  commands: f,
39339
39339
  chain: m,
39340
39340
  can: g,
@@ -39410,23 +39410,23 @@ function T8(n) {
39410
39410
  if (!z && !O && !U)
39411
39411
  return;
39412
39412
  if (U) {
39413
- let { text: Ee } = F;
39414
- typeof Ee == "string" ? Ee = Ee : Ee = ww(Ye.from(Ee), C.schema);
39415
- const { from: be } = F, Ae = be + Ee.length, $e = C8(Ee);
39413
+ let { text: Se } = F;
39414
+ typeof Se == "string" ? Se = Se : Se = ww(Ye.from(Se), C.schema);
39415
+ const { from: ve } = F, Ae = ve + Se.length, $e = C8(Se);
39416
39416
  return f({
39417
39417
  rule: g,
39418
39418
  state: C,
39419
- from: be,
39419
+ from: ve,
39420
39420
  to: { b: Ae },
39421
39421
  pasteEvt: $e
39422
39422
  });
39423
39423
  }
39424
- const Q = S.doc.content.findDiffStart(C.doc.content), Z = S.doc.content.findDiffEnd(C.doc.content);
39425
- if (!(!w8(Q) || !Z || Q === Z.b))
39424
+ const J = S.doc.content.findDiffStart(C.doc.content), Z = S.doc.content.findDiffEnd(C.doc.content);
39425
+ if (!(!w8(J) || !Z || J === Z.b))
39426
39426
  return f({
39427
39427
  rule: g,
39428
39428
  state: C,
39429
- from: Q,
39429
+ from: J,
39430
39430
  to: Z,
39431
39431
  pasteEvt: a
39432
39432
  });
@@ -40164,8 +40164,8 @@ function tx(n, e, t = {}) {
40164
40164
  n.doc.nodesBetween(C, D, (z, O) => {
40165
40165
  if (!z.isText && !z.marks.length)
40166
40166
  return;
40167
- const F = Math.max(C, O), U = Math.min(D, O + z.nodeSize), Q = U - F;
40168
- a += Q, o.push(...z.marks.map((Z) => ({
40167
+ const F = Math.max(C, O), U = Math.min(D, O + z.nodeSize), J = U - F;
40168
+ a += J, o.push(...z.marks.map((Z) => ({
40169
40169
  mark: Z,
40170
40170
  from: F,
40171
40171
  to: U
@@ -40349,15 +40349,15 @@ const PW = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: i, edit
40349
40349
  const U = f.index(-1) ? 1 : f.index(-2) ? 2 : 3;
40350
40350
  for (let $e = f.depth - U; $e >= f.depth - 3; $e -= 1)
40351
40351
  F = Ye.from(f.node($e).copy(F));
40352
- const Q = f.indexAfter(-1) < f.node(-2).childCount ? 1 : f.indexAfter(-2) < f.node(-3).childCount ? 2 : 3, Z = {
40352
+ const J = f.indexAfter(-1) < f.node(-2).childCount ? 1 : f.indexAfter(-2) < f.node(-3).childCount ? 2 : 3, Z = {
40353
40353
  ...jg(S, f.node().type.name, f.node().attrs),
40354
40354
  ...e
40355
- }, Ee = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(Z)) || void 0;
40356
- F = F.append(Ye.from(o.createAndFill(null, Ee) || void 0));
40357
- const be = f.before(f.depth - (U - 1));
40358
- t.replace(be, f.after(-Q), new kt(F, 4 - U, 0));
40355
+ }, Se = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(Z)) || void 0;
40356
+ F = F.append(Ye.from(o.createAndFill(null, Se) || void 0));
40357
+ const ve = f.before(f.depth - (U - 1));
40358
+ t.replace(ve, f.after(-J), new kt(F, 4 - U, 0));
40359
40359
  let Ae = -1;
40360
- t.doc.nodesBetween(be, t.doc.content.size, ($e, Oe) => {
40360
+ t.doc.nodesBetween(ve, t.doc.content.size, ($e, Oe) => {
40361
40361
  if (Ae > -1)
40362
40362
  return !1;
40363
40363
  $e.isTextblock && $e.content.size === 0 && (Ae = Oe + 1);
@@ -40380,11 +40380,11 @@ const PW = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: i, edit
40380
40380
  if (!Wd(t.doc, f.pos, 2))
40381
40381
  return !1;
40382
40382
  if (r) {
40383
- const { selection: F, storedMarks: U } = i, { splittableMarks: Q } = s.extensionManager, Z = U || F.$to.parentOffset && F.$from.marks();
40383
+ const { selection: F, storedMarks: U } = i, { splittableMarks: J } = s.extensionManager, Z = U || F.$to.parentOffset && F.$from.marks();
40384
40384
  if (t.split(f.pos, 2, O).scrollIntoView(), !Z || !r)
40385
40385
  return !0;
40386
- const Ee = Z.filter((be) => Q.includes(be.type.name));
40387
- t.ensureMarks(Ee);
40386
+ const Se = Z.filter((ve) => J.includes(ve.type.name));
40387
+ t.ensureMarks(Se);
40388
40388
  }
40389
40389
  return !0;
40390
40390
  }, Fb = (n, e) => {
@@ -40406,19 +40406,19 @@ const PW = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: i, edit
40406
40406
  const r = n.doc.nodeAt(i);
40407
40407
  return t.node.type === (r == null ? void 0 : r.type) && sc(n.doc, i) && n.join(i), !0;
40408
40408
  }, OW = (n, e, t, i = {}) => ({ editor: r, tr: s, state: a, dispatch: o, chain: f, commands: m, can: g }) => {
40409
- const { extensions: _, splittableMarks: S } = r.extensionManager, C = ur(n, a.schema), D = ur(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();
40410
- if (!Q)
40409
+ const { extensions: _, splittableMarks: S } = r.extensionManager, C = ur(n, a.schema), D = ur(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();
40410
+ if (!J)
40411
40411
  return !1;
40412
- const Ee = Aw((be) => EC(be.type.name, _))(z);
40413
- if (Q.depth >= 1 && Ee && Q.depth - Ee.depth <= 1) {
40414
- if (Ee.node.type === C)
40412
+ const Se = Aw((ve) => EC(ve.type.name, _))(z);
40413
+ if (J.depth >= 1 && Se && J.depth - Se.depth <= 1) {
40414
+ if (Se.node.type === C)
40415
40415
  return m.liftListItem(D);
40416
- if (EC(Ee.node.type.name, _) && C.validContent(Ee.node.content) && o)
40417
- return f().command(() => (s.setNodeMarkup(Ee.pos, C), !0)).command(() => Fb(s, C)).command(() => $b(s, C)).run();
40416
+ if (EC(Se.node.type.name, _) && C.validContent(Se.node.content) && o)
40417
+ return f().command(() => (s.setNodeMarkup(Se.pos, C), !0)).command(() => Fb(s, C)).command(() => $b(s, C)).run();
40418
40418
  }
40419
40419
  return !t || !Z || !o ? f().command(() => g().wrapInList(C, i) ? !0 : m.clearNodes()).wrapInList(C, i).command(() => Fb(s, C)).command(() => $b(s, C)).run() : f().command(() => {
40420
- const be = g().wrapInList(C, i), Ae = Z.filter(($e) => S.includes($e.type.name));
40421
- return s.ensureMarks(Ae), be ? !0 : m.clearNodes();
40420
+ const ve = g().wrapInList(C, i), Ae = Z.filter(($e) => S.includes($e.type.name));
40421
+ return s.ensureMarks(Ae), ve ? !0 : m.clearNodes();
40422
40422
  }).wrapInList(C, i).command(() => Fb(s, C)).command(() => $b(s, C)).run();
40423
40423
  }, zW = (n, e = {}, t = {}) => ({ state: i, commands: r }) => {
40424
40424
  const { extendEmptyMarkRange: s = !1 } = t, a = ac(n, i.schema);
@@ -40483,8 +40483,8 @@ const PW = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: i, edit
40483
40483
  ...e
40484
40484
  }), a && z.marks.length && z.marks.forEach((F) => {
40485
40485
  if (a === F.type) {
40486
- const U = Math.max(O, m), Q = Math.min(O + z.nodeSize, g);
40487
- t.addMark(U, Q, a.create({
40486
+ const U = Math.max(O, m), J = Math.min(O + z.nodeSize, g);
40487
+ t.addMark(U, J, a.create({
40488
40488
  ...F.attrs,
40489
40489
  ...e
40490
40490
  }));
@@ -41626,8 +41626,8 @@ var _q = function(e, t) {
41626
41626
  function xq(n) {
41627
41627
  var e, t = n.state, i = n.name, r = n.options, s = t.elements.arrow, a = t.modifiersData.popperOffsets, o = na(t.placement), f = Rw(o), m = [vs, fo].indexOf(o) >= 0, g = m ? "height" : "width";
41628
41628
  if (!(!s || !a)) {
41629
- var _ = _q(r.padding, t), S = Pw(s), C = f === "y" ? ys : vs, D = f === "y" ? ho : fo, z = t.rects.reference[g] + t.rects.reference[f] - a[f] - t.rects.popper[g], O = a[f] - t.rects.reference[f], F = Vp(s), U = F ? f === "y" ? F.clientHeight || 0 : F.clientWidth || 0 : 0, Q = z / 2 - O / 2, Z = _[C], Ee = U - S[g] - _[D], be = U / 2 - S[g] / 2 + Q, Ae = Qf(Z, be, Ee), $e = f;
41630
- t.modifiersData[i] = (e = {}, e[$e] = Ae, e.centerOffset = Ae - be, e);
41629
+ var _ = _q(r.padding, t), S = Pw(s), C = f === "y" ? ys : vs, D = f === "y" ? ho : fo, z = t.rects.reference[g] + t.rects.reference[f] - a[f] - t.rects.popper[g], O = a[f] - t.rects.reference[f], F = Vp(s), U = F ? f === "y" ? F.clientHeight || 0 : F.clientWidth || 0 : 0, J = z / 2 - O / 2, Z = _[C], Se = U - S[g] - _[D], ve = U / 2 - S[g] / 2 + J, Ae = Qf(Z, ve, Se), $e = f;
41630
+ t.modifiersData[i] = (e = {}, e[$e] = Ae, e.centerOffset = Ae - ve, e);
41631
41631
  }
41632
41632
  }
41633
41633
  function wq(n) {
@@ -41668,22 +41668,22 @@ function MC(n) {
41668
41668
  y: z
41669
41669
  };
41670
41670
  C = O.x, z = O.y;
41671
- var F = a.hasOwnProperty("x"), U = a.hasOwnProperty("y"), Q = vs, Z = ys, Ee = window;
41671
+ var F = a.hasOwnProperty("x"), U = a.hasOwnProperty("y"), J = vs, Z = ys, Se = window;
41672
41672
  if (m) {
41673
- var be = Vp(t), Ae = "clientHeight", $e = "clientWidth";
41674
- if (be === Hs(t) && (be = lc(t), rl(be).position !== "static" && o === "absolute" && (Ae = "scrollHeight", $e = "scrollWidth")), be = be, r === ys || (r === vs || r === fo) && s === xp) {
41673
+ var ve = Vp(t), Ae = "clientHeight", $e = "clientWidth";
41674
+ if (ve === Hs(t) && (ve = lc(t), rl(ve).position !== "static" && o === "absolute" && (Ae = "scrollHeight", $e = "scrollWidth")), ve = ve, r === ys || (r === vs || r === fo) && s === xp) {
41675
41675
  Z = ho;
41676
- var Oe = _ && be === Ee && Ee.visualViewport ? Ee.visualViewport.height : (
41676
+ var Oe = _ && ve === Se && Se.visualViewport ? Se.visualViewport.height : (
41677
41677
  // $FlowFixMe[prop-missing]
41678
- be[Ae]
41678
+ ve[Ae]
41679
41679
  );
41680
41680
  z -= Oe - i.height, z *= f ? 1 : -1;
41681
41681
  }
41682
41682
  if (r === vs || (r === ys || r === ho) && s === xp) {
41683
- Q = fo;
41684
- var pt = _ && be === Ee && Ee.visualViewport ? Ee.visualViewport.width : (
41683
+ J = fo;
41684
+ var pt = _ && ve === Se && Se.visualViewport ? Se.visualViewport.width : (
41685
41685
  // $FlowFixMe[prop-missing]
41686
- be[$e]
41686
+ ve[$e]
41687
41687
  );
41688
41688
  C -= pt - i.width, C *= f ? 1 : -1;
41689
41689
  }
@@ -41699,9 +41699,9 @@ function MC(n) {
41699
41699
  };
41700
41700
  if (C = me.x, z = me.y, f) {
41701
41701
  var ct;
41702
- 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));
41702
+ 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));
41703
41703
  }
41704
- return Object.assign({}, ot, (e = {}, e[Z] = U ? z + "px" : "", e[Q] = F ? C + "px" : "", e.transform = "", e));
41704
+ return Object.assign({}, ot, (e = {}, e[Z] = U ? z + "px" : "", e[J] = F ? C + "px" : "", e.transform = "", e));
41705
41705
  }
41706
41706
  function Cq(n) {
41707
41707
  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 = {
@@ -41901,16 +41901,16 @@ function uI(n) {
41901
41901
  }
41902
41902
  function wp(n, e) {
41903
41903
  e === void 0 && (e = {});
41904
- 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 ? iq : o, m = t.rootBoundary, g = m === void 0 ? tI : m, _ = t.elementContext, S = _ === void 0 ? zf : _, 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, $p)), U = S === zf ? rq : zf, Q = n.rects.popper, Z = n.elements[D ? U : S], Ee = Lq(Su(Z) ? Z : Z.contextElement || lc(n.elements.popper), f, g, a), be = lh(n.elements.reference), Ae = uI({
41905
- reference: be,
41906
- element: Q,
41904
+ 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 ? iq : o, m = t.rootBoundary, g = m === void 0 ? tI : m, _ = t.elementContext, S = _ === void 0 ? zf : _, 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, $p)), U = S === zf ? rq : zf, J = n.rects.popper, Z = n.elements[D ? U : S], Se = Lq(Su(Z) ? Z : Z.contextElement || lc(n.elements.popper), f, g, a), ve = lh(n.elements.reference), Ae = uI({
41905
+ reference: ve,
41906
+ element: J,
41907
41907
  strategy: "absolute",
41908
41908
  placement: r
41909
- }), $e = sx(Object.assign({}, Q, Ae)), Oe = S === zf ? $e : be, pt = {
41910
- top: Ee.top - Oe.top + F.top,
41911
- bottom: Oe.bottom - Ee.bottom + F.bottom,
41912
- left: Ee.left - Oe.left + F.left,
41913
- right: Oe.right - Ee.right + F.right
41909
+ }), $e = sx(Object.assign({}, J, Ae)), Oe = S === zf ? $e : ve, pt = {
41910
+ top: Se.top - Oe.top + F.top,
41911
+ bottom: Oe.bottom - Se.bottom + F.bottom,
41912
+ left: Se.left - Oe.left + F.left,
41913
+ right: Oe.right - Se.right + F.right
41914
41914
  }, ot = n.modifiersData.offset;
41915
41915
  if (S === zf && ot) {
41916
41916
  var me = ot[r];
@@ -41950,7 +41950,7 @@ function Bq(n) {
41950
41950
  function Fq(n) {
41951
41951
  var e = n.state, t = n.options, i = n.name;
41952
41952
  if (!e.modifiersData[i]._skip) {
41953
- 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, S = t.altBoundary, C = t.flipVariations, D = C === void 0 ? !0 : C, z = t.allowedAutoPlacements, O = e.options.placement, F = na(O), U = F === O, Q = f || (U || !D ? [Hg(O)] : Bq(O)), Z = [O].concat(Q).reduce(function(zn, Tn) {
41953
+ 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, S = t.altBoundary, C = t.flipVariations, D = C === void 0 ? !0 : C, z = t.allowedAutoPlacements, O = e.options.placement, F = na(O), U = F === O, J = f || (U || !D ? [Hg(O)] : Bq(O)), Z = [O].concat(J).reduce(function(zn, Tn) {
41954
41954
  return zn.concat(na(Tn) === Dw ? Nq(e, {
41955
41955
  placement: Tn,
41956
41956
  boundary: g,
@@ -41959,7 +41959,7 @@ function Fq(n) {
41959
41959
  flipVariations: D,
41960
41960
  allowedAutoPlacements: z
41961
41961
  }) : Tn);
41962
- }, []), Ee = e.rects.reference, be = e.rects.popper, Ae = /* @__PURE__ */ new Map(), $e = !0, Oe = Z[0], pt = 0; pt < Z.length; pt++) {
41962
+ }, []), Se = e.rects.reference, ve = e.rects.popper, Ae = /* @__PURE__ */ new Map(), $e = !0, Oe = Z[0], pt = 0; pt < Z.length; pt++) {
41963
41963
  var ot = Z[pt], me = na(ot), ct = ch(ot) === oh, Lt = [ys, ho].indexOf(me) >= 0, Gt = Lt ? "width" : "height", Qt = wp(e, {
41964
41964
  placement: ot,
41965
41965
  boundary: g,
@@ -41967,7 +41967,7 @@ function Fq(n) {
41967
41967
  altBoundary: S,
41968
41968
  padding: m
41969
41969
  }), jt = Lt ? ct ? fo : vs : ct ? ho : ys;
41970
- Ee[Gt] > be[Gt] && (jt = Hg(jt));
41970
+ Se[Gt] > ve[Gt] && (jt = Hg(jt));
41971
41971
  var Jt = Hg(jt), Sn = [];
41972
41972
  if (s && Sn.push(Qt[me] <= 0), o && Sn.push(Qt[jt] <= 0, Qt[Jt] <= 0), Sn.every(function(zn) {
41973
41973
  return zn;
@@ -42094,7 +42094,7 @@ function Zq(n) {
42094
42094
  rootBoundary: m,
42095
42095
  padding: _,
42096
42096
  altBoundary: g
42097
- }), F = na(e.placement), U = ch(e.placement), Q = !U, Z = Rw(F), Ee = Yq(Z), be = e.modifiersData.popperOffsets, Ae = e.rects.reference, $e = e.rects.popper, Oe = typeof z == "function" ? z(Object.assign({}, e.rects, {
42097
+ }), F = na(e.placement), U = ch(e.placement), J = !U, Z = Rw(F), Se = Yq(Z), ve = e.modifiersData.popperOffsets, Ae = e.rects.reference, $e = e.rects.popper, Oe = typeof z == "function" ? z(Object.assign({}, e.rects, {
42098
42098
  placement: e.placement
42099
42099
  })) : z, pt = typeof Oe == "number" ? {
42100
42100
  mainAxis: Oe,
@@ -42106,17 +42106,17 @@ function Zq(n) {
42106
42106
  x: 0,
42107
42107
  y: 0
42108
42108
  };
42109
- if (be) {
42109
+ if (ve) {
42110
42110
  if (s) {
42111
- var ct, Lt = Z === "y" ? ys : vs, Gt = Z === "y" ? ho : fo, Qt = Z === "y" ? "height" : "width", jt = be[Z], Jt = jt + O[Lt], Sn = jt - O[Gt], hn = C ? -$e[Qt] / 2 : 0, wn = U === oh ? Ae[Qt] : $e[Qt], fn = U === oh ? -$e[Qt] : -Ae[Qt], ti = e.elements.arrow, zn = C && ti ? Pw(ti) : {
42111
+ var ct, Lt = Z === "y" ? ys : vs, Gt = Z === "y" ? ho : fo, Qt = Z === "y" ? "height" : "width", jt = ve[Z], Jt = jt + O[Lt], Sn = jt - O[Gt], hn = C ? -$e[Qt] / 2 : 0, wn = U === oh ? Ae[Qt] : $e[Qt], fn = U === oh ? -$e[Qt] : -Ae[Qt], ti = e.elements.arrow, zn = C && ti ? Pw(ti) : {
42112
42112
  width: 0,
42113
42113
  height: 0
42114
- }, Tn = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : oI(), ii = Tn[Lt], Ie = Tn[Gt], Ze = Qf(0, Ae[Qt], zn[Qt]), it = Q ? Ae[Qt] / 2 - hn - Ze - ii - pt.mainAxis : wn - Ze - ii - pt.mainAxis, bt = Q ? -Ae[Qt] / 2 + hn + Ze + Ie + pt.mainAxis : fn + Ze + Ie + pt.mainAxis, nn = e.elements.arrow && Vp(e.elements.arrow), kn = 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 - kn, An = jt + bt - qt, Me = Qf(C ? xy(Jt, Ht) : Jt, jt, C ? fu(Sn, An) : Sn);
42115
- be[Z] = Me, me[Z] = Me - jt;
42114
+ }, Tn = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : oI(), ii = Tn[Lt], Ie = Tn[Gt], Ze = Qf(0, Ae[Qt], zn[Qt]), it = J ? Ae[Qt] / 2 - hn - Ze - ii - pt.mainAxis : wn - Ze - ii - pt.mainAxis, bt = J ? -Ae[Qt] / 2 + hn + Ze + Ie + pt.mainAxis : fn + Ze + Ie + pt.mainAxis, nn = e.elements.arrow && Vp(e.elements.arrow), kn = 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 - kn, An = jt + bt - qt, Me = Qf(C ? xy(Jt, Ht) : Jt, jt, C ? fu(Sn, An) : Sn);
42115
+ ve[Z] = Me, me[Z] = Me - jt;
42116
42116
  }
42117
42117
  if (o) {
42118
- var Gn, qs = Z === "x" ? ys : vs, bn = Z === "x" ? ho : fo, Pn = be[Ee], Er = Ee === "y" ? "height" : "width", Cr = Pn + O[qs], Wi = Pn - O[bn], is = [ys, vs].indexOf(F) !== -1, qi = (Gn = ot == null ? void 0 : ot[Ee]) != null ? Gn : 0, Gs = is ? Cr : Pn - Ae[Er] - $e[Er] - qi + pt.altAxis, Ys = is ? Pn + Ae[Er] + $e[Er] - qi - pt.altAxis : Wi, Ge = C && is ? bq(Gs, Pn, Ys) : Qf(C ? Gs : Cr, Pn, C ? Ys : Wi);
42119
- be[Ee] = Ge, me[Ee] = Ge - Pn;
42118
+ var Gn, qs = Z === "x" ? ys : vs, bn = Z === "x" ? ho : fo, Pn = ve[Se], Er = Se === "y" ? "height" : "width", Cr = Pn + O[qs], Wi = Pn - O[bn], is = [ys, vs].indexOf(F) !== -1, qi = (Gn = ot == null ? void 0 : ot[Se]) != null ? Gn : 0, Gs = is ? Cr : Pn - Ae[Er] - $e[Er] - qi + pt.altAxis, Ys = is ? Pn + Ae[Er] + $e[Er] - qi - pt.altAxis : Wi, Ge = C && is ? bq(Gs, Pn, Ys) : Qf(C ? Gs : Cr, Pn, C ? Ys : Wi);
42119
+ ve[Se] = Ge, me[Se] = Ge - Pn;
42120
42120
  }
42121
42121
  e.modifiersData[i] = me;
42122
42122
  }
@@ -42243,8 +42243,8 @@ function s7(n) {
42243
42243
  reference: Su(o) ? ep(o) : o.contextElement ? ep(o.contextElement) : [],
42244
42244
  popper: ep(f)
42245
42245
  };
42246
- var Q = n7(r7([].concat(i, g.options.modifiers)));
42247
- return g.orderedModifiers = Q.filter(function(Z) {
42246
+ var J = n7(r7([].concat(i, g.options.modifiers)));
42247
+ return g.orderedModifiers = J.filter(function(Z) {
42248
42248
  return Z.enabled;
42249
42249
  }), D(), C.update();
42250
42250
  },
@@ -42255,11 +42255,11 @@ function s7(n) {
42255
42255
  // prefer the async Popper#update method
42256
42256
  forceUpdate: function() {
42257
42257
  if (!S) {
42258
- var F = g.elements, U = F.reference, Q = F.popper;
42259
- if (zC(U, Q)) {
42258
+ var F = g.elements, U = F.reference, J = F.popper;
42259
+ if (zC(U, J)) {
42260
42260
  g.rects = {
42261
- reference: e7(U, Vp(Q), g.options.strategy === "fixed"),
42262
- popper: Pw(Q)
42261
+ reference: e7(U, Vp(J), g.options.strategy === "fixed"),
42262
+ popper: Pw(J)
42263
42263
  }, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(pt) {
42264
42264
  return g.modifiersData[pt.name] = Object.assign({}, pt.data);
42265
42265
  });
@@ -42268,8 +42268,8 @@ function s7(n) {
42268
42268
  g.reset = !1, Z = -1;
42269
42269
  continue;
42270
42270
  }
42271
- var Ee = g.orderedModifiers[Z], be = Ee.fn, Ae = Ee.options, $e = Ae === void 0 ? {} : Ae, Oe = Ee.name;
42272
- typeof be == "function" && (g = be({
42271
+ var Se = g.orderedModifiers[Z], ve = Se.fn, Ae = Se.options, $e = Ae === void 0 ? {} : Ae, Oe = Se.name;
42272
+ typeof ve == "function" && (g = ve({
42273
42273
  state: g,
42274
42274
  options: $e,
42275
42275
  name: Oe,
@@ -42297,16 +42297,16 @@ function s7(n) {
42297
42297
  });
42298
42298
  function D() {
42299
42299
  g.orderedModifiers.forEach(function(O) {
42300
- var F = O.name, U = O.options, Q = U === void 0 ? {} : U, Z = O.effect;
42300
+ var F = O.name, U = O.options, J = U === void 0 ? {} : U, Z = O.effect;
42301
42301
  if (typeof Z == "function") {
42302
- var Ee = Z({
42302
+ var Se = Z({
42303
42303
  state: g,
42304
42304
  name: F,
42305
42305
  instance: C,
42306
- options: Q
42307
- }), be = function() {
42306
+ options: J
42307
+ }), ve = function() {
42308
42308
  };
42309
- _.push(Ee || be);
42309
+ _.push(Se || ve);
42310
42310
  }
42311
42311
  });
42312
42312
  }
@@ -42683,7 +42683,7 @@ function xI(n) {
42683
42683
  xI.$$tippy = !0;
42684
42684
  var O7 = 1, Sg = [], Ub = [];
42685
42685
  function z7(n, e) {
42686
- var t = HC(n, Object.assign({}, zs, bI(BC(e)))), i, r, s, a = !1, o = !1, f = !1, m = !1, g, _, S, C = [], D = LC(Ht, t.interactiveDebounce), z, O = O7++, F = null, U = f7(t.plugins), Q = {
42686
+ var t = HC(n, Object.assign({}, zs, bI(BC(e)))), i, r, s, a = !1, o = !1, f = !1, m = !1, g, _, S, C = [], D = LC(Ht, t.interactiveDebounce), z, O = O7++, F = null, U = f7(t.plugins), J = {
42687
42687
  // Is the instance currently enabled?
42688
42688
  isEnabled: !0,
42689
42689
  // Is the tippy currently showing and not transitioning out?
@@ -42701,7 +42701,7 @@ function z7(n, e) {
42701
42701
  popper: tp(),
42702
42702
  popperInstance: F,
42703
42703
  props: t,
42704
- state: Q,
42704
+ state: J,
42705
42705
  plugins: U,
42706
42706
  // methods
42707
42707
  clearDelayTimeouts: Gs,
@@ -42717,14 +42717,14 @@ function z7(n, e) {
42717
42717
  };
42718
42718
  if (!t.render)
42719
42719
  return so.NODE_ENV !== "production" && ox(!0, "render() function has not been supplied."), Z;
42720
- var Ee = t.render(Z), be = Ee.popper, Ae = Ee.onUpdate;
42721
- be.setAttribute("data-tippy-root", ""), be.id = "tippy-" + Z.id, Z.popper = be, n._tippy = Z, be._tippy = Z;
42720
+ var Se = t.render(Z), ve = Se.popper, Ae = Se.onUpdate;
42721
+ ve.setAttribute("data-tippy-root", ""), ve.id = "tippy-" + Z.id, Z.popper = ve, n._tippy = Z, ve._tippy = Z;
42722
42722
  var $e = U.map(function(Te) {
42723
42723
  return Te.fn(Z);
42724
42724
  }), Oe = n.hasAttribute("aria-expanded");
42725
- return nn(), hn(), jt(), Jt("onCreate", [Z]), t.showOnCreate && Cr(), be.addEventListener("mouseenter", function() {
42725
+ return nn(), hn(), jt(), Jt("onCreate", [Z]), t.showOnCreate && Cr(), ve.addEventListener("mouseenter", function() {
42726
42726
  Z.props.interactive && Z.state.isVisible && Z.clearDelayTimeouts();
42727
- }), be.addEventListener("mouseleave", function() {
42727
+ }), ve.addEventListener("mouseleave", function() {
42728
42728
  Z.props.interactive && Z.props.trigger.indexOf("mouseenter") >= 0 && Lt().addEventListener("mousemove", D);
42729
42729
  }), Z;
42730
42730
  function pt() {
@@ -42746,13 +42746,13 @@ function z7(n, e) {
42746
42746
  return Te ? b7(Te) : document;
42747
42747
  }
42748
42748
  function Gt() {
42749
- return lx(be);
42749
+ return lx(ve);
42750
42750
  }
42751
42751
  function Qt(Te) {
42752
42752
  return Z.state.isMounted && !Z.state.isVisible || Xo.isTouch || g && g.type === "focus" ? 0 : Vb(Z.props.delay, Te ? 0 : 1, zs.delay);
42753
42753
  }
42754
42754
  function jt(Te) {
42755
- Te === void 0 && (Te = !1), be.style.pointerEvents = Z.props.interactive && !Te ? "" : "none", be.style.zIndex = "" + Z.props.zIndex;
42755
+ Te === void 0 && (Te = !1), ve.style.pointerEvents = Z.props.interactive && !Te ? "" : "none", ve.style.zIndex = "" + Z.props.zIndex;
42756
42756
  }
42757
42757
  function Jt(Te, Ve, Pt) {
42758
42758
  if (Pt === void 0 && (Pt = !0), $e.forEach(function(at) {
@@ -42765,7 +42765,7 @@ function z7(n, e) {
42765
42765
  function Sn() {
42766
42766
  var Te = Z.props.aria;
42767
42767
  if (Te.content) {
42768
- var Ve = "aria-" + Te.content, Pt = be.id, un = zd(Z.props.triggerTarget || n);
42768
+ var Ve = "aria-" + Te.content, Pt = ve.id, un = zd(Z.props.triggerTarget || n);
42769
42769
  un.forEach(function(at) {
42770
42770
  var ri = at.getAttribute(Ve);
42771
42771
  if (Z.state.isVisible)
@@ -42793,7 +42793,7 @@ function z7(n, e) {
42793
42793
  function fn(Te) {
42794
42794
  if (!(Xo.isTouch && (f || Te.type === "mousedown"))) {
42795
42795
  var Ve = Te.composedPath && Te.composedPath()[0] || Te.target;
42796
- if (!(Z.props.interactive && $C(be, Ve))) {
42796
+ if (!(Z.props.interactive && $C(ve, Ve))) {
42797
42797
  if (zd(Z.props.triggerTarget || n).some(function(Pt) {
42798
42798
  return $C(Pt, Ve);
42799
42799
  })) {
@@ -42823,7 +42823,7 @@ function z7(n, e) {
42823
42823
  }
42824
42824
  function Ie(Te, Ve) {
42825
42825
  it(Te, function() {
42826
- !Z.state.isVisible && be.parentNode && be.parentNode.contains(be) && Ve();
42826
+ !Z.state.isVisible && ve.parentNode && ve.parentNode.contains(ve) && Ve();
42827
42827
  });
42828
42828
  }
42829
42829
  function Ze(Te, Ve) {
@@ -42886,9 +42886,9 @@ function z7(n, e) {
42886
42886
  }
42887
42887
  }
42888
42888
  function Ht(Te) {
42889
- var Ve = Te.target, Pt = ct().contains(Ve) || be.contains(Ve);
42889
+ var Ve = Te.target, Pt = ct().contains(Ve) || ve.contains(Ve);
42890
42890
  if (!(Te.type === "mousemove" && Pt)) {
42891
- var un = Er().concat(be).map(function(at) {
42891
+ var un = Er().concat(ve).map(function(at) {
42892
42892
  var ri, xi = at._tippy, hr = (ri = xi.popperInstance) == null ? void 0 : ri.state;
42893
42893
  return hr ? {
42894
42894
  popperRect: at.getBoundingClientRect(),
@@ -42910,14 +42910,14 @@ function z7(n, e) {
42910
42910
  }
42911
42911
  }
42912
42912
  function Me(Te) {
42913
- Z.props.trigger.indexOf("focusin") < 0 && Te.target !== ct() || Z.props.interactive && Te.relatedTarget && be.contains(Te.relatedTarget) || Wi(Te);
42913
+ Z.props.trigger.indexOf("focusin") < 0 && Te.target !== ct() || Z.props.interactive && Te.relatedTarget && ve.contains(Te.relatedTarget) || Wi(Te);
42914
42914
  }
42915
42915
  function Gn(Te) {
42916
42916
  return Xo.isTouch ? ot() !== Te.type.indexOf("touch") >= 0 : !1;
42917
42917
  }
42918
42918
  function qs() {
42919
42919
  bn();
42920
- var Te = Z.props, Ve = Te.popperOptions, Pt = Te.placement, un = Te.offset, at = Te.getReferenceClientRect, ri = Te.moveTransition, xi = me() ? lx(be).arrow : null, hr = at ? {
42920
+ var Te = Z.props, Ve = Te.popperOptions, Pt = Te.placement, un = Te.offset, at = Te.getReferenceClientRect, ri = Te.moveTransition, xi = me() ? lx(ve).arrow : null, hr = at ? {
42921
42921
  getBoundingClientRect: at,
42922
42922
  contextElement: at.contextElement || ct()
42923
42923
  } : n, Wr = {
@@ -42926,12 +42926,12 @@ function z7(n, e) {
42926
42926
  phase: "beforeWrite",
42927
42927
  requires: ["computeStyles"],
42928
42928
  fn: function(W) {
42929
- var J = W.state;
42929
+ var Q = W.state;
42930
42930
  if (me()) {
42931
42931
  var se = Gt(), ge = se.box;
42932
- ["placement", "reference-hidden", "escaped"].forEach(function(ve) {
42933
- ve === "placement" ? ge.setAttribute("data-placement", J.placement) : J.attributes.popper["data-popper-" + ve] ? ge.setAttribute("data-" + ve, "") : ge.removeAttribute("data-" + ve);
42934
- }), J.attributes.popper = {};
42932
+ ["placement", "reference-hidden", "escaped"].forEach(function(be) {
42933
+ be === "placement" ? ge.setAttribute("data-placement", Q.placement) : Q.attributes.popper["data-popper-" + be] ? ge.setAttribute("data-" + be, "") : ge.removeAttribute("data-" + be);
42934
+ }), Q.attributes.popper = {};
42935
42935
  }
42936
42936
  }
42937
42937
  }, le = [{
@@ -42966,7 +42966,7 @@ function z7(n, e) {
42966
42966
  element: xi,
42967
42967
  padding: 3
42968
42968
  }
42969
- }), le.push.apply(le, (Ve == null ? void 0 : Ve.modifiers) || []), Z.popperInstance = a7(hr, be, Object.assign({}, Ve, {
42969
+ }), le.push.apply(le, (Ve == null ? void 0 : Ve.modifiers) || []), Z.popperInstance = a7(hr, ve, Object.assign({}, Ve, {
42970
42970
  placement: Pt,
42971
42971
  onFirstUpdate: S,
42972
42972
  modifiers: le
@@ -42977,7 +42977,7 @@ function z7(n, e) {
42977
42977
  }
42978
42978
  function Pn() {
42979
42979
  var Te = Z.props.appendTo, Ve, Pt = ct();
42980
- 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(), so.NODE_ENV !== "production" && ja(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.", `
42980
+ 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(), so.NODE_ENV !== "production" && ja(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.", `
42981
42981
 
42982
42982
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
42983
42983
 
@@ -42986,7 +42986,7 @@ function z7(n, e) {
42986
42986
  `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
42987
42987
  }
42988
42988
  function Er() {
42989
- return wy(be.querySelectorAll("[data-tippy-root]"));
42989
+ return wy(ve.querySelectorAll("[data-tippy-root]"));
42990
42990
  }
42991
42991
  function Cr(Te) {
42992
42992
  Z.clearDelayTimeouts(), Te && Jt("onTrigger", [Z, Te]), Tn();
@@ -43040,16 +43040,16 @@ function z7(n, e) {
43040
43040
  so.NODE_ENV !== "production" && ja(Z.state.isDestroyed, Id("show"));
43041
43041
  var Te = Z.state.isVisible, Ve = Z.state.isDestroyed, Pt = !Z.state.isEnabled, un = Xo.isTouch && !Z.props.touch, at = Vb(Z.props.duration, 0, zs.duration);
43042
43042
  if (!(Te || Ve || Pt || un) && !ct().hasAttribute("disabled") && (Jt("onShow", [Z], !1), Z.props.onShow(Z) !== !1)) {
43043
- if (Z.state.isVisible = !0, me() && (be.style.visibility = "visible"), jt(), Tn(), Z.state.isMounted || (be.style.transition = "none"), me()) {
43043
+ if (Z.state.isVisible = !0, me() && (ve.style.visibility = "visible"), jt(), Tn(), Z.state.isMounted || (ve.style.transition = "none"), me()) {
43044
43044
  var ri = Gt(), xi = ri.box, hr = ri.content;
43045
43045
  jb([xi, hr], 0);
43046
43046
  }
43047
43047
  S = function() {
43048
43048
  var le;
43049
43049
  if (!(!Z.state.isVisible || m)) {
43050
- if (m = !0, be.offsetHeight, be.style.transition = Z.props.moveTransition, me() && Z.props.animation) {
43051
- var q = Gt(), W = q.box, J = q.content;
43052
- jb([W, J], at), FC([W, J], "visible");
43050
+ if (m = !0, ve.offsetHeight, ve.style.transition = Z.props.moveTransition, me() && Z.props.animation) {
43051
+ var q = Gt(), W = q.box, Q = q.content;
43052
+ jb([W, Q], at), FC([W, Q], "visible");
43053
43053
  }
43054
43054
  Sn(), hn(), NC(Ub, Z), (le = Z.popperInstance) == null || le.forceUpdate(), Jt("onMount", [Z]), Z.props.animation && me() && Ze(at, function() {
43055
43055
  Z.state.isShown = !0, Jt("onShown", [Z]);
@@ -43062,7 +43062,7 @@ function z7(n, e) {
43062
43062
  so.NODE_ENV !== "production" && ja(Z.state.isDestroyed, Id("hide"));
43063
43063
  var Te = !Z.state.isVisible, Ve = Z.state.isDestroyed, Pt = !Z.state.isEnabled, un = Vb(Z.props.duration, 1, zs.duration);
43064
43064
  if (!(Te || Ve || Pt) && (Jt("onHide", [Z], !1), Z.props.onHide(Z) !== !1)) {
43065
- if (Z.state.isVisible = !1, Z.state.isShown = !1, m = !1, a = !1, me() && (be.style.visibility = "hidden"), wn(), ii(), jt(!0), me()) {
43065
+ if (Z.state.isVisible = !1, Z.state.isShown = !1, m = !1, a = !1, me() && (ve.style.visibility = "hidden"), wn(), ii(), jt(!0), me()) {
43066
43066
  var at = Gt(), ri = at.box, xi = at.content;
43067
43067
  Z.props.animation && (jb([ri, xi], un), FC([ri, xi], "hidden"));
43068
43068
  }
@@ -43075,7 +43075,7 @@ function z7(n, e) {
43075
43075
  function Zs() {
43076
43076
  so.NODE_ENV !== "production" && ja(Z.state.isDestroyed, Id("unmount")), Z.state.isVisible && Z.hide(), Z.state.isMounted && (bn(), Er().forEach(function(Te) {
43077
43077
  Te._tippy.unmount();
43078
- }), be.parentNode && be.parentNode.removeChild(be), Ub = Ub.filter(function(Te) {
43078
+ }), ve.parentNode && ve.parentNode.removeChild(ve), Ub = Ub.filter(function(Te) {
43079
43079
  return Te !== Z;
43080
43080
  }), Z.state.isMounted = !1, Jt("onHidden", [Z]));
43081
43081
  }
@@ -43159,14 +43159,14 @@ class L7 {
43159
43159
  if (z || !f && !m)
43160
43160
  return;
43161
43161
  this.createTooltip();
43162
- const { ranges: U } = O, Q = Math.min(...U.map((be) => be.$from.pos)), Z = Math.max(...U.map((be) => be.$to.pos));
43162
+ const { ranges: U } = O, J = Math.min(...U.map((ve) => ve.$from.pos)), Z = Math.max(...U.map((ve) => ve.$to.pos));
43163
43163
  if (!((_ = this.shouldShow) === null || _ === void 0 ? void 0 : _.call(this, {
43164
43164
  editor: this.editor,
43165
43165
  element: this.element,
43166
43166
  view: o,
43167
43167
  state: D,
43168
43168
  oldState: g,
43169
- from: Q,
43169
+ from: J,
43170
43170
  to: Z
43171
43171
  }))) {
43172
43172
  this.hide();
@@ -43175,14 +43175,14 @@ class L7 {
43175
43175
  (S = this.tippy) === null || S === void 0 || S.setProps({
43176
43176
  getReferenceClientRect: ((C = this.tippyOptions) === null || C === void 0 ? void 0 : C.getReferenceClientRect) || (() => {
43177
43177
  if (QD(D.selection)) {
43178
- let be = o.nodeDOM(Q);
43179
- if (be) {
43180
- const Ae = be.dataset.nodeViewWrapper ? be : be.querySelector("[data-node-view-wrapper]");
43181
- if (Ae && (be = Ae.firstChild), be)
43182
- return be.getBoundingClientRect();
43178
+ let ve = o.nodeDOM(J);
43179
+ if (ve) {
43180
+ const Ae = ve.dataset.nodeViewWrapper ? ve : ve.querySelector("[data-node-view-wrapper]");
43181
+ if (Ae && (ve = Ae.firstChild), ve)
43182
+ return ve.getBoundingClientRect();
43183
43183
  }
43184
43184
  }
43185
- return eI(o, Q, Z);
43185
+ return eI(o, J, Z);
43186
43186
  })
43187
43187
  }), this.show();
43188
43188
  }, 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";
@@ -45040,8 +45040,8 @@ function jG({ pluginKey: n = VG, editor: e, char: t = "@", allowSpaces: i = !1,
45040
45040
  view() {
45041
45041
  return {
45042
45042
  update: async (O, F) => {
45043
- var U, Q, Z, Ee, be, Ae, $e;
45044
- const Oe = (U = this.key) === null || U === void 0 ? void 0 : U.getState(F), pt = (Q = this.key) === null || Q === void 0 ? void 0 : Q.getState(O.state), ot = Oe.active && pt.active && Oe.range.from !== pt.range.from, me = !Oe.active && pt.active, ct = Oe.active && !pt.active, Lt = !me && !ct && Oe.query !== pt.query, Gt = me || ot && Lt, Qt = Lt || ot, jt = ct || ot && Lt;
45043
+ var U, J, Z, Se, ve, Ae, $e;
45044
+ const Oe = (U = this.key) === null || U === void 0 ? void 0 : U.getState(F), pt = (J = this.key) === null || J === void 0 ? void 0 : J.getState(O.state), ot = Oe.active && pt.active && Oe.range.from !== pt.range.from, me = !Oe.active && pt.active, ct = Oe.active && !pt.active, Lt = !me && !ct && Oe.query !== pt.query, Gt = me || ot && Lt, Qt = Lt || ot, jt = ct || ot && Lt;
45045
45045
  if (!Gt && !Qt && !jt)
45046
45046
  return;
45047
45047
  const Jt = jt && !Gt ? Oe : pt, Sn = O.dom.querySelector(`[data-decoration-id="${Jt.decorationId}"]`);
@@ -45064,10 +45064,10 @@ function jG({ pluginKey: n = VG, editor: e, char: t = "@", allowSpaces: i = !1,
45064
45064
  const { decorationId: wn } = (hn = this.key) === null || hn === void 0 ? void 0 : hn.getState(e.state), fn = O.dom.querySelector(`[data-decoration-id="${wn}"]`);
45065
45065
  return (fn == null ? void 0 : fn.getBoundingClientRect()) || null;
45066
45066
  } : null
45067
- }, Gt && ((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 || Gt) && (C.items = await m({
45067
+ }, Gt && ((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 || Gt) && (C.items = await m({
45068
45068
  editor: e,
45069
45069
  query: Jt.query
45070
- })), 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)), Gt && (($e = D == null ? void 0 : D.onStart) === null || $e === void 0 || $e.call(D, C));
45070
+ })), 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)), Gt && (($e = D == null ? void 0 : D.onStart) === null || $e === void 0 || $e.call(D, C));
45071
45071
  },
45072
45072
  destroy: () => {
45073
45073
  var O;
@@ -45090,20 +45090,20 @@ function jG({ pluginKey: n = VG, editor: e, char: t = "@", allowSpaces: i = !1,
45090
45090
  };
45091
45091
  },
45092
45092
  // Apply changes to the plugin state from a view transaction.
45093
- apply(O, F, U, Q) {
45094
- const { isEditable: Z } = e, { composing: Ee } = e.view, { selection: be } = O, { empty: Ae, from: $e } = be, Oe = { ...F };
45095
- if (Oe.composing = Ee, Z && (Ae || e.view.composing)) {
45096
- ($e < F.range.from || $e > F.range.to) && !Ee && !F.composing && (Oe.active = !1);
45093
+ apply(O, F, U, J) {
45094
+ const { isEditable: Z } = e, { composing: Se } = e.view, { selection: ve } = O, { empty: Ae, from: $e } = ve, Oe = { ...F };
45095
+ if (Oe.composing = Se, Z && (Ae || e.view.composing)) {
45096
+ ($e < F.range.from || $e > F.range.to) && !Se && !F.composing && (Oe.active = !1);
45097
45097
  const pt = S({
45098
45098
  char: t,
45099
45099
  allowSpaces: i,
45100
45100
  allowedPrefixes: r,
45101
45101
  startOfLine: s,
45102
- $position: be.$from
45102
+ $position: ve.$from
45103
45103
  }), ot = `id_${Math.floor(Math.random() * 4294967295)}`;
45104
45104
  pt && _({
45105
45105
  editor: e,
45106
- state: Q,
45106
+ state: J,
45107
45107
  range: pt.range,
45108
45108
  isActive: F.active
45109
45109
  }) ? (Oe.active = !0, Oe.decorationId = F.decorationId ? F.decorationId : ot, Oe.range = pt.range, Oe.query = pt.query, Oe.text = pt.text) : Oe.active = !1;
@@ -45116,17 +45116,17 @@ function jG({ pluginKey: n = VG, editor: e, char: t = "@", allowSpaces: i = !1,
45116
45116
  // Call the keydown hook if suggestion is active.
45117
45117
  handleKeyDown(O, F) {
45118
45118
  var U;
45119
- const { active: Q, range: Z } = z.getState(O.state);
45120
- 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;
45119
+ const { active: J, range: Z } = z.getState(O.state);
45120
+ 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;
45121
45121
  },
45122
45122
  // Setup decorator on the currently active suggestion.
45123
45123
  decorations(O) {
45124
- const { active: F, range: U, decorationId: Q } = z.getState(O);
45124
+ const { active: F, range: U, decorationId: J } = z.getState(O);
45125
45125
  return F ? Hi.create(O.doc, [
45126
45126
  Ns.inline(U.from, U.to, {
45127
45127
  nodeName: a,
45128
45128
  class: o,
45129
- "data-decoration-id": Q
45129
+ "data-decoration-id": J
45130
45130
  })
45131
45131
  ]) : null;
45132
45132
  }
@@ -47115,7 +47115,7 @@ const tX = /* @__PURE__ */ gt(KZ, [["render", eX]]), nX = { class: "h-full" }, i
47115
47115
  return Po(s, m), ca(() => {
47116
47116
  m();
47117
47117
  }), (S, C) => {
47118
- var O, F, U, Q, Z, Ee, be, Ae, $e, Oe, pt, ot;
47118
+ var O, F, U, J, Z, Se, ve, Ae, $e, Oe, pt, ot;
47119
47119
  const D = We("VsText"), z = We("VsPagination");
47120
47120
  return K(), ie("div", nX, [
47121
47121
  L("div", iX, [
@@ -47137,18 +47137,18 @@ const tX = /* @__PURE__ */ gt(KZ, [["render", eX]]), nX = { class: "h-full" }, i
47137
47137
  }, null, 8, ["scheme", "table", "onFilters", "filter", "data"])) : wt("", !0),
47138
47138
  je(UZ, {
47139
47139
  token: (U = t.value) == null ? void 0 : U.addToken,
47140
- form: (Q = t.value) == null ? void 0 : Q.form
47140
+ form: (J = t.value) == null ? void 0 : J.form
47141
47141
  }, null, 8, ["token", "form"])
47142
47142
  ])
47143
47143
  ]),
47144
47144
  L("div", {
47145
47145
  class: ln(["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", [
47146
- ((Ee = (Z = t.value) == null ? void 0 : Z.rows) == null ? void 0 : Ee.length) > S.limit ? "h-[calc(100%-60px)]" : "h-[100%]"
47146
+ ((Se = (Z = t.value) == null ? void 0 : Z.rows) == null ? void 0 : Se.length) > S.limit ? "h-[calc(100%-60px)]" : "h-[100%]"
47147
47147
  ]])
47148
47148
  }, [
47149
47149
  L("div", sX, [
47150
47150
  L("table", oX, [
47151
- (be = i.value) != null && be.length ? (K(), ie(Tt, { key: 0 }, [
47151
+ (ve = i.value) != null && ve.length ? (K(), ie(Tt, { key: 0 }, [
47152
47152
  L("thead", aX, [
47153
47153
  L("tr", null, [
47154
47154
  (K(!0), ie(Tt, null, en(i.value, (me, ct) => (K(), ie("th", {
@@ -47643,7 +47643,7 @@ function WI(n) {
47643
47643
  return null;
47644
47644
  }
47645
47645
  function Vw(n, e, t, i, r, s, a, o, f) {
47646
- var m, g, _, S, C, D, z, O, F, U, Q, Z, Ee, be, Ae, $e = e.type;
47646
+ var m, g, _, S, C, D, z, O, F, U, J, Z, Se, ve, Ae, $e = e.type;
47647
47647
  if (e.constructor !== void 0) return null;
47648
47648
  t.__h != null && (f = t.__h, o = e.__e = t.__e, e.__h = null, s = [o]), (m = Xt.__b) && m(e);
47649
47649
  try {
@@ -47653,7 +47653,7 @@ function Vw(n, e, t, i, r, s, a, o, f) {
47653
47653
  if ($e.getDerivedStateFromProps == null && O !== S && g.componentWillReceiveProps != null && g.componentWillReceiveProps(O, U), !g.__e && g.shouldComponentUpdate != null && g.shouldComponentUpdate(O, g.__s, U) === !1 || e.__v === t.__v) {
47654
47654
  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) {
47655
47655
  Oe && (Oe.__ = e);
47656
- }), Q = 0; Q < g._sb.length; Q++) g.__h.push(g._sb[Q]);
47656
+ }), J = 0; J < g._sb.length; J++) g.__h.push(g._sb[J]);
47657
47657
  g._sb = [], g.__h.length && a.push(g);
47658
47658
  break e;
47659
47659
  }
@@ -47661,12 +47661,12 @@ function Vw(n, e, t, i, r, s, a, o, f) {
47661
47661
  g.componentDidUpdate(S, C, D);
47662
47662
  });
47663
47663
  }
47664
- if (g.context = U, g.props = O, g.__P = n, Z = Xt.__r, Ee = 0, "prototype" in $e && $e.prototype.render) {
47665
- 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]);
47664
+ if (g.context = U, g.props = O, g.__P = n, Z = Xt.__r, Se = 0, "prototype" in $e && $e.prototype.render) {
47665
+ 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]);
47666
47666
  g._sb = [];
47667
47667
  } else do
47668
47668
  g.__d = !1, Z && Z(e), m = g.render(g.props, g.state, g.context), g.state = g.__s;
47669
- while (g.__d && ++Ee < 25);
47669
+ while (g.__d && ++Se < 25);
47670
47670
  g.state = g.__s, g.getChildContext != null && (i = Wl(Wl({}, i), g.getChildContext())), _ || g.getSnapshotBeforeUpdate == null || (D = g.getSnapshotBeforeUpdate(S, 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;
47671
47671
  } else s == null && e.__v === t.__v ? (e.__k = t.__k, e.__e = t.__e) : e.__e = lK(t.__e, e, t, i, r, s, a, f);
47672
47672
  (m = Xt.diffed) && m(e);
@@ -51559,15 +51559,15 @@ class zP {
51559
51559
  const z = t[D];
51560
51560
  if (!r && z >= o + this.getEntryThickness(e))
51561
51561
  break;
51562
- let O = i[D], F, U = wx(O, e.span.start, xx), Q = U[0] + U[1];
51562
+ let O = i[D], F, U = wx(O, e.span.start, xx), J = U[0] + U[1];
51563
51563
  for (
51564
51564
  ;
51565
51565
  // loop through entries that horizontally intersect
51566
- (F = O[Q]) && // but not past the whole entry list
51566
+ (F = O[J]) && // but not past the whole entry list
51567
51567
  F.span.start < e.span.end;
51568
51568
  ) {
51569
51569
  let Z = z + this.getEntryThickness(F);
51570
- Z > o && (o = Z, g = F, f = D, m = Q), Z === o && (_ = Math.max(_, s[gu(F)] + 1)), Q += 1;
51570
+ Z > o && (o = Z, g = F, f = D, m = J), Z === o && (_ = Math.max(_, s[gu(F)] + 1)), J += 1;
51571
51571
  }
51572
51572
  }
51573
51573
  let S = 0;
@@ -51965,9 +51965,9 @@ function vee(n, e, t, i) {
51965
51965
  let z = f[D], O = z.range, F = m[z.defId], U = o[z.defId];
51966
51966
  if (!UP(F.constraints, O, g, n.businessHours, e))
51967
51967
  return !1;
51968
- let { eventOverlap: Q } = e.options, Z = typeof Q == "function" ? Q : null;
51969
- for (let be in S) {
51970
- let Ae = S[be];
51968
+ let { eventOverlap: J } = e.options, Z = typeof J == "function" ? J : null;
51969
+ for (let ve in S) {
51970
+ let Ae = S[ve];
51971
51971
  if (Jw(O, Ae.range) && (C[Ae.defId].overlap === !1 && s.isEvent || F.overlap === !1 || Z && !Z(
51972
51972
  new Ci(e, _[Ae.defId], Ae),
51973
51973
  // still event
@@ -51975,10 +51975,10 @@ function vee(n, e, t, i) {
51975
51975
  )))
51976
51976
  return !1;
51977
51977
  }
51978
- let Ee = r.eventStore;
51979
- for (let be of F.allows) {
51980
- let Ae = Object.assign(Object.assign({}, t), { range: z.range, allDay: U.allDay }), $e = Ee.defs[U.defId], Oe = Ee.instances[D], pt;
51981
- if ($e ? pt = new Ci(e, $e, Oe) : pt = new Ci(e, U), !be(r1(Ae, e), pt))
51978
+ let Se = r.eventStore;
51979
+ for (let ve of F.allows) {
51980
+ let Ae = Object.assign(Object.assign({}, t), { range: z.range, allDay: U.allDay }), $e = Se.defs[U.defId], Oe = Se.instances[D], pt;
51981
+ if ($e ? pt = new Ci(e, $e, Oe) : pt = new Ci(e, U), !ve(r1(Ae, e), pt))
51982
51982
  return !1;
51983
51983
  }
51984
51984
  }
@@ -53141,18 +53141,18 @@ function xte(n, e, t, i, r, s) {
53141
53141
  return { widgets: S.map((O) => O.split(",").map((F) => {
53142
53142
  if (F === "title")
53143
53143
  return D = !0, { buttonName: F };
53144
- let U, Q, Z, Ee, be, Ae;
53144
+ let U, J, Z, Se, ve, Ae;
53145
53145
  if (U = o[F])
53146
53146
  Z = ($e) => {
53147
53147
  U.click && U.click.call($e.target, $e, $e.target);
53148
- }, (Ee = i.getCustomButtonIconClass(U)) || (Ee = i.getIconClass(F, a)) || (be = U.text), Ae = U.hint || U.text;
53149
- else if (Q = r[F]) {
53148
+ }, (Se = i.getCustomButtonIconClass(U)) || (Se = i.getIconClass(F, a)) || (ve = U.text), Ae = U.hint || U.text;
53149
+ else if (J = r[F]) {
53150
53150
  C.push(F), Z = () => {
53151
53151
  s.changeView(F);
53152
- }, (be = Q.buttonTextOverride) || (Ee = i.getIconClass(F, a)) || (be = Q.buttonTextDefault);
53153
- let $e = Q.buttonTextOverride || Q.buttonTextDefault;
53152
+ }, (ve = J.buttonTextOverride) || (Se = i.getIconClass(F, a)) || (ve = J.buttonTextDefault);
53153
+ let $e = J.buttonTextOverride || J.buttonTextDefault;
53154
53154
  Ae = ip(
53155
- Q.buttonTitleOverride || Q.buttonTitleDefault || e.viewHint,
53155
+ J.buttonTitleOverride || J.buttonTitleDefault || e.viewHint,
53156
53156
  [$e, F],
53157
53157
  // view-name = buttonName
53158
53158
  $e
@@ -53160,7 +53160,7 @@ function xte(n, e, t, i, r, s) {
53160
53160
  } else if (s[F])
53161
53161
  if (Z = () => {
53162
53162
  s[F]();
53163
- }, (be = f[F]) || (Ee = i.getIconClass(F, a)) || (be = m[F]), F === "prevYear" || F === "nextYear") {
53163
+ }, (ve = f[F]) || (Se = i.getIconClass(F, a)) || (ve = m[F]), F === "prevYear" || F === "nextYear") {
53164
53164
  let $e = F === "prevYear" ? "prev" : "next";
53165
53165
  Ae = ip(g[$e] || _[$e], [
53166
53166
  m.year || "year",
@@ -53171,7 +53171,7 @@ function xte(n, e, t, i, r, s) {
53171
53171
  m[$e] || $e,
53172
53172
  $e
53173
53173
  ], m[F]);
53174
- return { buttonName: F, buttonClick: Z, buttonIcon: Ee, buttonText: be, buttonHint: Ae };
53174
+ return { buttonName: F, buttonClick: Z, buttonIcon: Se, buttonText: ve, buttonHint: Ae };
53175
53175
  })), viewsWithButtons: C, hasTitle: D };
53176
53176
  }
53177
53177
  class wte {
@@ -53474,7 +53474,7 @@ class jte {
53474
53474
  this.data && this.data.dateProfileGenerator !== f.dateProfileGenerator && (_ = f.dateProfileGenerator.build(g)), g = JJ(g, e), _ = ate(_, e, g, f.dateProfileGenerator), (e.type === "PREV" || // TODO: move this logic into DateProfileGenerator
53475
53475
  e.type === "NEXT" || // "
53476
53476
  !Qa(_.currentRange, g)) && (g = _.currentRange.start);
53477
- let S = cte(i.eventSources, e, _, m), C = hQ(i.eventStore, e, S, _, m), z = rR(S) && !f.options.progressiveEventRendering && i.renderableEventStore || C, { eventUiSingleBase: O, selectionConfig: F } = this.buildViewUiProps(m), U = this.buildEventUiBySource(S), Q = this.buildEventUiBases(z.defs, O, U), Z = {
53477
+ let S = cte(i.eventSources, e, _, m), C = hQ(i.eventStore, e, S, _, m), z = rR(S) && !f.options.progressiveEventRendering && i.renderableEventStore || C, { eventUiSingleBase: O, selectionConfig: F } = this.buildViewUiProps(m), U = this.buildEventUiBySource(S), J = this.buildEventUiBases(z.defs, O, U), Z = {
53478
53478
  dynamicOptionOverrides: s,
53479
53479
  currentViewType: o,
53480
53480
  currentDate: g,
@@ -53483,17 +53483,17 @@ class jte {
53483
53483
  eventStore: C,
53484
53484
  renderableEventStore: z,
53485
53485
  selectionConfig: F,
53486
- eventUiBases: Q,
53486
+ eventUiBases: J,
53487
53487
  businessHours: this.parseContextBusinessHours(m),
53488
53488
  dateSelection: gte(i.dateSelection, e),
53489
53489
  eventSelection: yte(i.eventSelection, e),
53490
53490
  eventDrag: vte(i.eventDrag, e),
53491
53491
  eventResize: bte(i.eventResize, e)
53492
- }, Ee = Object.assign(Object.assign({}, m), Z);
53492
+ }, Se = Object.assign(Object.assign({}, m), Z);
53493
53493
  for (let $e of a.pluginHooks.reducers)
53494
- Object.assign(Z, $e(i, e, Ee));
53495
- let be = a_(i, m), Ae = a_(Z, m);
53496
- !be && Ae ? r.trigger("loading", !0) : be && !Ae && r.trigger("loading", !1), this.state = Z, t.onAction && t.onAction(e);
53494
+ Object.assign(Z, $e(i, e, Se));
53495
+ let ve = a_(i, m), Ae = a_(Z, m);
53496
+ !ve && Ae ? r.trigger("loading", !0) : ve && !Ae && r.trigger("loading", !1), this.state = Z, t.onAction && t.onAction(e);
53497
53497
  }
53498
53498
  updateData() {
53499
53499
  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;
@@ -54295,8 +54295,8 @@ function _ne(n, e, t, i, r, s, a) {
54295
54295
  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);
54296
54296
  let f = [], m = [];
54297
54297
  for (let F = 0; F < n.length; F += 1) {
54298
- let U = n[F], Q = pR(U);
54299
- r[Q] != null ? f.push({
54298
+ let U = n[F], J = pR(U);
54299
+ r[J] != null ? f.push({
54300
54300
  index: F,
54301
54301
  span: {
54302
54302
  start: U.firstCol,
@@ -54325,15 +54325,15 @@ function _ne(n, e, t, i, r, s, a) {
54325
54325
  for (let F = 0; F < a.length; F += 1)
54326
54326
  z.push(0);
54327
54327
  for (let F of g) {
54328
- let U = n[F.index], Q = F.span;
54329
- C[Q.start].push({
54330
- seg: Xd(U, Q.start, Q.end, a),
54328
+ let U = n[F.index], J = F.span;
54329
+ C[J.start].push({
54330
+ seg: Xd(U, J.start, J.end, a),
54331
54331
  isVisible: !1,
54332
54332
  isAbsolute: !0,
54333
54333
  absoluteTop: 0,
54334
54334
  marginTop: 0
54335
54335
  });
54336
- for (let Z = Q.start; Z < Q.end; Z += 1)
54336
+ for (let Z = J.start; Z < J.end; Z += 1)
54337
54337
  z[Z] += 1, S[Z].push({
54338
54338
  seg: Xd(U, Z, Z + 1, a),
54339
54339
  isVisible: !1,
@@ -54494,12 +54494,12 @@ class mR extends Lo {
54494
54494
  let { context: f } = this, { eventSelection: m } = this.props, { framePositions: g } = this.state, _ = this.props.cells.length === 1, S = s || a || o, C = [];
54495
54495
  if (g)
54496
54496
  for (let D of t) {
54497
- let { seg: z } = D, { instanceId: O } = z.eventRange.instance, F = D.isVisible && !r[O], U = D.isAbsolute, Q = "", Z = "";
54498
- 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: S ? null : this.segHarnessRefs.createRef(pR(z)), style: {
54497
+ let { seg: z } = D, { instanceId: O } = z.eventRange.instance, F = D.isVisible && !r[O], U = D.isAbsolute, J = "", Z = "";
54498
+ 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: S ? null : this.segHarnessRefs.createRef(pR(z)), style: {
54499
54499
  visibility: F ? "" : "hidden",
54500
54500
  marginTop: U ? "" : D.marginTop,
54501
54501
  top: U ? D.absoluteTop : "",
54502
- left: Q,
54502
+ left: J,
54503
54503
  right: Z
54504
54504
  } }, uR(z) ? de(hR, Object.assign({ seg: z, isDragging: s, isSelected: O === m, defaultDisplayEventEnd: _ }, el(z, i))) : de(dR, Object.assign({ seg: z, isDragging: s, isResizing: a, isDateSelecting: o, isSelected: O === m, defaultDisplayEventEnd: _ }, el(z, i)))));
54505
54505
  }
@@ -55435,17 +55435,17 @@ class oie extends qn {
55435
55435
  return o.forPrint ? bR(e, o) : this.renderPositionedFgSegs(e, t, i, r, s, a);
55436
55436
  }
55437
55437
  renderPositionedFgSegs(e, t, i, r, s, a) {
55438
- let { eventMaxStack: o, eventShortHeight: f, eventOrderStrict: m, eventMinHeight: g } = this.context.options, { date: _, slatCoords: S, eventSelection: C, todayRange: D, nowDate: z } = this.props, O = i || r || s, F = Q2(e, _, S, g), { segPlacements: U, hiddenGroups: Q } = rie(e, F, m, o);
55438
+ let { eventMaxStack: o, eventShortHeight: f, eventOrderStrict: m, eventMinHeight: g } = this.context.options, { date: _, slatCoords: S, eventSelection: C, todayRange: D, nowDate: z } = this.props, O = i || r || s, F = Q2(e, _, S, g), { segPlacements: U, hiddenGroups: J } = rie(e, F, m, o);
55439
55439
  return de(
55440
55440
  fi,
55441
55441
  null,
55442
- this.renderHiddenGroups(Q, e),
55442
+ this.renderHiddenGroups(J, e),
55443
55443
  U.map((Z) => {
55444
- let { seg: Ee, rect: be } = Z, Ae = Ee.eventRange.instance.instanceId, $e = O || !!(!t[Ae] && be), Oe = l_(be && be.span), pt = !O && be ? this.computeSegHStyle(be) : { left: 0, right: 0 }, ot = !!be && be.stackForward > 0, me = !!be && be.span.end - be.span.start < f;
55444
+ let { seg: Se, rect: ve } = Z, Ae = Se.eventRange.instance.instanceId, $e = O || !!(!t[Ae] && ve), Oe = l_(ve && ve.span), pt = !O && ve ? this.computeSegHStyle(ve) : { left: 0, right: 0 }, ot = !!ve && ve.stackForward > 0, me = !!ve && ve.span.end - ve.span.start < f;
55445
55445
  return de(
55446
55446
  "div",
55447
55447
  { className: "fc-timegrid-event-harness" + (ot ? " fc-timegrid-event-harness-inset" : ""), key: a || Ae, style: Object.assign(Object.assign({ visibility: $e ? "" : "hidden" }, Oe), pt) },
55448
- de(vR, Object.assign({ seg: Ee, isDragging: i, isResizing: r, isDateSelecting: s, isSelected: Ae === C, isShort: me }, el(Ee, D, z)))
55448
+ de(vR, Object.assign({ seg: Se, isDragging: i, isResizing: r, isDateSelecting: s, isSelected: Ae === C, isShort: me }, el(Se, D, z)))
55449
55449
  );
55450
55450
  })
55451
55451
  );
@@ -55620,10 +55620,10 @@ class uie extends Lo {
55620
55620
  queryHit(e, t) {
55621
55621
  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);
55622
55622
  if (g != null && _ != null) {
55623
- let S = 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, XK(f, F)), Z = i.add(U, Q), Ee = i.add(Z, f);
55623
+ let S = 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, XK(f, F)), Z = i.add(U, J), Se = i.add(Z, f);
55624
55624
  return {
55625
55625
  dateProfile: a,
55626
- dateSpan: Object.assign({ range: { start: Z, end: Ee }, allDay: !1 }, S.extraDateSpan),
55626
+ dateSpan: Object.assign({ range: { start: Z, end: Se }, allDay: !1 }, S.extraDateSpan),
55627
55627
  dayEl: s.els[g],
55628
55628
  rect: {
55629
55629
  left: s.lefts[g],
@@ -56615,10 +56615,10 @@ class qp extends xh {
56615
56615
  // the pre-change data
56616
56616
  });
56617
56617
  }
56618
- }, Q = {};
56618
+ }, J = {};
56619
56619
  for (let Z of o.getCurrentData().pluginHooks.eventDropTransformers)
56620
- Object.assign(Q, Z(g, o));
56621
- 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);
56620
+ Object.assign(J, Z(g, o));
56621
+ 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);
56622
56622
  } else if (m) {
56623
56623
  let F = {
56624
56624
  event: C,
@@ -56634,14 +56634,14 @@ class qp extends xh {
56634
56634
  type: "REMOVE_EVENTS",
56635
56635
  eventStore: D
56636
56636
  }), o.emitter.trigger("eventRemove", F);
56637
- let U = z.defs[_.defId], Q = z.instances[S.instanceId], Z = new Ci(m, U, Q);
56637
+ let U = z.defs[_.defId], J = z.instances[S.instanceId], Z = new Ci(m, U, J);
56638
56638
  m.dispatch({
56639
56639
  type: "MERGE_EVENTS",
56640
56640
  eventStore: z
56641
56641
  });
56642
- let Ee = {
56642
+ let Se = {
56643
56643
  event: Z,
56644
- relatedEvents: mu(z, m, Q),
56644
+ relatedEvents: mu(z, m, J),
56645
56645
  revert() {
56646
56646
  m.dispatch({
56647
56647
  type: "REMOVE_EVENTS",
@@ -56649,10 +56649,10 @@ class qp extends xh {
56649
56649
  });
56650
56650
  }
56651
56651
  };
56652
- m.emitter.trigger("eventAdd", Ee), a.isTouch && m.dispatch({
56652
+ m.emitter.trigger("eventAdd", Se), a.isTouch && m.dispatch({
56653
56653
  type: "SELECT_EVENT",
56654
56654
  eventInstanceId: S.instanceId
56655
- }), 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 }));
56655
+ }), 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 }));
56656
56656
  }
56657
56657
  } else
56658
56658
  o.emitter.trigger("_noEventDrop");
@@ -58277,7 +58277,7 @@ const Jse = /* @__PURE__ */ gt(Zse, [["render", Kse]]), Qse = { class: "h-[76px]
58277
58277
  return `/edit?table=${t.getRoute}&id=${(O = r == null ? void 0 : r.params) == null ? void 0 : O.id}`;
58278
58278
  }
58279
58279
  ), m = () => {
58280
- var O, F, U, Q;
58280
+ var O, F, U, J;
58281
58281
  if (!((O = t.slots) != null && O.panelLeft)) return "div";
58282
58282
  if ((F = t.slots) != null && F.panelLeft.includes("<")) {
58283
58283
  const Z = e("PanelLeft", (U = t.slots) == null ? void 0 : U.panelLeft, [
@@ -58285,9 +58285,9 @@ const Jse = /* @__PURE__ */ gt(Zse, [["render", Kse]]), Qse = { class: "h-[76px]
58285
58285
  ]);
58286
58286
  a.value = Z;
58287
58287
  } else
58288
- a.value = (Q = t.slots) == null ? void 0 : Q.panelLeft;
58288
+ a.value = (J = t.slots) == null ? void 0 : J.panelLeft;
58289
58289
  }, g = () => {
58290
- var O, F, U, Q;
58290
+ var O, F, U, J;
58291
58291
  if (!((O = t.slots) != null && O.panelRight)) return "div";
58292
58292
  if ((F = t.slots) != null && F.panelRight.includes("<")) {
58293
58293
  const Z = e("PanelRight", (U = t.slots) == null ? void 0 : U.panelRight, [
@@ -58295,7 +58295,7 @@ const Jse = /* @__PURE__ */ gt(Zse, [["render", Kse]]), Qse = { class: "h-[76px]
58295
58295
  ]);
58296
58296
  s.value = Z;
58297
58297
  } else
58298
- s.value = (Q = t.slots) == null ? void 0 : Q.panelRight;
58298
+ s.value = (J = t.slots) == null ? void 0 : J.panelRight;
58299
58299
  };
58300
58300
  return m(), g(), (O, F) => {
58301
58301
  const U = We("router-link");
@@ -58606,38 +58606,38 @@ function Foe(n, e, t, i, r, s) {
58606
58606
  key: U,
58607
58607
  class: ln(["col-span-12 shrink-0", s.columnClass(F.col)])
58608
58608
  }, [
58609
- (K(!0), ie(Tt, null, en(F.items, (Q, Z) => {
58610
- var Ee, be, Ae, $e, Oe, pt, ot, me, ct, Lt, Gt, Qt, jt, Jt;
58609
+ (K(!0), ie(Tt, null, en(F.items, (J, Z) => {
58610
+ var Se, ve, Ae, $e, Oe, pt, ot, me, ct, Lt, Gt, Qt, jt, Jt;
58611
58611
  return K(), ie("div", {
58612
58612
  key: Z,
58613
58613
  class: ln([{ "mb-[20px]": F.items.length > 1 }, "bg-white border rounded-xl"])
58614
58614
  }, [
58615
- Q != null && Q.title ? (K(), ie("h2", goe, Ue((Q == null ? void 0 : Q.title) || "Панель"), 1)) : wt("", !0),
58616
- Q != null && Q.component ? (K(), ie("div", {
58615
+ J != null && J.title ? (K(), ie("h2", goe, Ue((J == null ? void 0 : J.title) || "Панель"), 1)) : wt("", !0),
58616
+ J != null && J.component ? (K(), ie("div", {
58617
58617
  key: 1,
58618
- class: ln(["p-[20px]", { "border-t": Q == null ? void 0 : Q.title }])
58618
+ class: ln(["p-[20px]", { "border-t": J == null ? void 0 : J.title }])
58619
58619
  }, [
58620
- (K(), zt(Ls(Q.component), Nf({
58621
- geometry: (be = (Ee = r.objectData) == null ? void 0 : Ee.rows[0]) == null ? void 0 : be.geom,
58622
- columns: Q == null ? void 0 : Q.columns,
58623
- token: ($e = (Ae = r.objectData) == null ? void 0 : Ae.tokens) == null ? void 0 : $e[Q == null ? void 0 : Q.token],
58620
+ (K(), zt(Ls(J.component), Nf({
58621
+ geometry: (ve = (Se = r.objectData) == null ? void 0 : Se.rows[0]) == null ? void 0 : ve.geom,
58622
+ columns: J == null ? void 0 : J.columns,
58623
+ token: ($e = (Ae = r.objectData) == null ? void 0 : Ae.tokens) == null ? void 0 : $e[J == null ? void 0 : J.token],
58624
58624
  zoom: 16,
58625
58625
  ref_for: !0
58626
- }, s.getProps(Q), {
58626
+ }, s.getProps(J), {
58627
58627
  data: r.objectData,
58628
58628
  id: (pt = (Oe = n.$route) == null ? void 0 : Oe.params) == null ? void 0 : pt.id
58629
58629
  }), null, 16, ["geometry", "columns", "token", "data", "id"]))
58630
58630
  ], 2)) : wt("", !0),
58631
- Q != null && Q.name ? (K(), ie("div", {
58631
+ J != null && J.name ? (K(), ie("div", {
58632
58632
  key: 2,
58633
- class: ln(["p-[20px]", { "border-t": Q == null ? void 0 : Q.title }])
58633
+ class: ln(["p-[20px]", { "border-t": J == null ? void 0 : J.title }])
58634
58634
  }, [
58635
- (me = (ot = r.objectData) == null ? void 0 : ot.html) != null && me[Q == null ? void 0 : Q.name] ? (K(), ie("div", {
58635
+ (me = (ot = r.objectData) == null ? void 0 : ot.html) != null && me[J == null ? void 0 : J.name] ? (K(), ie("div", {
58636
58636
  key: 0,
58637
- innerHTML: (Lt = (ct = r.objectData) == null ? void 0 : ct.html) == null ? void 0 : Lt[Q == null ? void 0 : Q.name]
58637
+ innerHTML: (Lt = (ct = r.objectData) == null ? void 0 : ct.html) == null ? void 0 : Lt[J == null ? void 0 : J.name]
58638
58638
  }, null, 8, yoe)) : (K(), zt(o, {
58639
58639
  key: 1,
58640
- slot: (Qt = (Gt = r.objectData) == null ? void 0 : Gt.vue) == null ? void 0 : Qt[Q == null ? void 0 : Q.name],
58640
+ slot: (Qt = (Gt = r.objectData) == null ? void 0 : Gt.vue) == null ? void 0 : Qt[J == null ? void 0 : J.name],
58641
58641
  data: (Jt = (jt = r.objectData) == null ? void 0 : jt.rows) == null ? void 0 : Jt[0],
58642
58642
  objectData: r.objectData
58643
58643
  }, null, 8, ["slot", "data", "objectData"]))
@@ -58651,21 +58651,21 @@ function Foe(n, e, t, i, r, s) {
58651
58651
  (K(!0), ie(Tt, null, en((O = (z = r.objectData) == null ? void 0 : z.panels) == null ? void 0 : O.filter(
58652
58652
  (F) => (F == null ? void 0 : F.type) !== "pin"
58653
58653
  ), (F, U) => {
58654
- var Q, Z, Ee, be, Ae, $e, Oe, pt, ot;
58654
+ var J, Z, Se, ve, Ae, $e, Oe, pt, ot;
58655
58655
  return K(), ie("div", {
58656
58656
  key: U,
58657
58657
  class: ln(["col-span-12", s.getColClass(F.col)])
58658
58658
  }, [
58659
58659
  F != null && F.name ? (K(), ie("div", voe, [
58660
58660
  L("h2", boe, Ue((F == null ? void 0 : F.title) || "Панель"), 1),
58661
- (Q = r.objectData) != null && Q.html[F == null ? void 0 : F.name] ? (K(), ie("div", {
58661
+ (J = r.objectData) != null && J.html[F == null ? void 0 : F.name] ? (K(), ie("div", {
58662
58662
  key: 0,
58663
58663
  class: "p-[20px] border-t",
58664
58664
  innerHTML: (Z = r.objectData) == null ? void 0 : Z.html[F == null ? void 0 : F.name]
58665
58665
  }, null, 8, _oe)) : (K(), zt(o, {
58666
58666
  key: 1,
58667
- slot: (Ee = r.objectData) == null ? void 0 : Ee.vue[F == null ? void 0 : F.name],
58668
- data: (Ae = (be = r.objectData) == null ? void 0 : be.rows) == null ? void 0 : Ae[0],
58667
+ slot: (Se = r.objectData) == null ? void 0 : Se.vue[F == null ? void 0 : F.name],
58668
+ data: (Ae = (ve = r.objectData) == null ? void 0 : ve.rows) == null ? void 0 : Ae[0],
58669
58669
  objectData: r.objectData
58670
58670
  }, null, 8, ["slot", "data", "objectData"]))
58671
58671
  ])) : F.type === "container" ? (K(), ie("div", xoe, [
@@ -59423,8 +59423,8 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59423
59423
  try {
59424
59424
  const U = document.createElement("textarea");
59425
59425
  U.value = F, document.body.appendChild(U), U.select(), U.setSelectionRange(0, F.length);
59426
- const Q = document.execCommand("copy");
59427
- document.body.removeChild(U), t(Q ? {
59426
+ const J = document.execCommand("copy");
59427
+ document.body.removeChild(U), t(J ? {
59428
59428
  type: "success",
59429
59429
  title: "Успішно!",
59430
59430
  message: "Ключ успішно скопійовано"
@@ -59492,8 +59492,8 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59492
59492
  }
59493
59493
  };
59494
59494
  return (O, F) => {
59495
- var be;
59496
- const U = We("VsTiptapEditor"), Q = We("VsPopover"), Z = We("VsForm"), Ee = We("VsDialog");
59495
+ var ve;
59496
+ const U = We("VsTiptapEditor"), J = We("VsPopover"), Z = We("VsForm"), Se = We("VsDialog");
59497
59497
  return K(), ie(Tt, null, [
59498
59498
  L("div", Dae, [
59499
59499
  L("div", Iae, [
@@ -59516,14 +59516,14 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59516
59516
  L("div", Rae, [
59517
59517
  F[6] || (F[6] = L("h2", { class: "block font-semibold mb-[20px] text-gray-800 truncate dark:text-neutral-200" }, " Список колонок ", -1)),
59518
59518
  L("dl", Oae, [
59519
- (K(!0), ie(Tt, null, en((be = n.templateData) == null ? void 0 : be.columns, (Ae) => (K(), ie("div", {
59519
+ (K(!0), ie(Tt, null, en((ve = n.templateData) == null ? void 0 : ve.columns, (Ae) => (K(), ie("div", {
59520
59520
  key: Ae == null ? void 0 : Ae.name,
59521
59521
  class: "flex items-center justify-between w-full"
59522
59522
  }, [
59523
59523
  L("dt", zae, Ue(Ae == null ? void 0 : Ae.title) + ": ", 1),
59524
59524
  L("dd", Lae, [
59525
59525
  sr(Ue(Ae == null ? void 0 : Ae.name) + " ", 1),
59526
- je(Q, {
59526
+ je(J, {
59527
59527
  trigger: "hover",
59528
59528
  placement: "left"
59529
59529
  }, {
@@ -59545,7 +59545,7 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59545
59545
  ])
59546
59546
  ])
59547
59547
  ]),
59548
- je(Ee, {
59548
+ je(Se, {
59549
59549
  visible: m.value,
59550
59550
  "onUpdate:visible": F[4] || (F[4] = (Ae) => m.value = Ae),
59551
59551
  title: "Створти шаблон"
@@ -59598,7 +59598,7 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59598
59598
  }), i = n, r = vt(null), s = vt(null), a = vt(""), o = vt([]), f = vt(null), m = vt([]), g = async (U = null) => {
59599
59599
  r.value = null;
59600
59600
  try {
59601
- const { data: Q } = await rt.get(
59601
+ const { data: J } = await rt.get(
59602
59602
  `/api/table-data/${i.templateData.alias}`,
59603
59603
  {
59604
59604
  params: {
@@ -59607,7 +59607,7 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59607
59607
  }
59608
59608
  }
59609
59609
  );
59610
- r.value = Q;
59610
+ r.value = J;
59611
59611
  } catch {
59612
59612
  }
59613
59613
  }, _ = async () => {
@@ -59615,31 +59615,31 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59615
59615
  const {
59616
59616
  data: { list: U }
59617
59617
  } = await rt.get(`/api/table-filter/${i.templateData.alias}`);
59618
- s.value = U == null ? void 0 : U.map((Q) => ({
59619
- ...Q,
59620
- label: (Q == null ? void 0 : Q.label) || (Q == null ? void 0 : Q.ua)
59618
+ s.value = U == null ? void 0 : U.map((J) => ({
59619
+ ...J,
59620
+ label: (J == null ? void 0 : J.label) || (J == null ? void 0 : J.ua)
59621
59621
  }));
59622
59622
  } catch {
59623
59623
  }
59624
59624
  }, S = ({ url: U }) => {
59625
59625
  U === "no-url" ? f.value = null : f.value = U;
59626
59626
  }, C = ({ target: U }) => {
59627
- var Q, Z;
59627
+ var J, Z;
59628
59628
  if (U.checked) {
59629
- const Ee = (Q = r.value.rows) == null ? void 0 : Q.find((be) => (be == null ? void 0 : be.id) == U.value);
59630
- o.value = [...o.value, Ee];
59629
+ const Se = (J = r.value.rows) == null ? void 0 : J.find((ve) => (ve == null ? void 0 : ve.id) == U.value);
59630
+ o.value = [...o.value, Se];
59631
59631
  } else
59632
- o.value = (Z = o.value) == null ? void 0 : Z.filter((Ee) => (Ee == null ? void 0 : Ee.id) != (U == null ? void 0 : U.value));
59632
+ o.value = (Z = o.value) == null ? void 0 : Z.filter((Se) => (Se == null ? void 0 : Se.id) != (U == null ? void 0 : U.value));
59633
59633
  }, D = () => {
59634
59634
  var U;
59635
- (U = r.value.rows) == null || U.forEach((Q) => {
59635
+ (U = r.value.rows) == null || U.forEach((J) => {
59636
59636
  var Z;
59637
- (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]);
59637
+ (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]);
59638
59638
  });
59639
59639
  }, z = () => {
59640
- var Q, Z;
59641
- const U = (Q = o.value) == null ? void 0 : Q.map((Ee) => Ee == null ? void 0 : Ee.id);
59642
- m.value = (Z = m.value) == null ? void 0 : Z.filter((Ee) => !(U != null && U.includes(Ee))), o.value = [];
59640
+ var J, Z;
59641
+ const U = (J = o.value) == null ? void 0 : J.map((Se) => Se == null ? void 0 : Se.id);
59642
+ m.value = (Z = m.value) == null ? void 0 : Z.filter((Se) => !(U != null && U.includes(Se))), o.value = [];
59643
59643
  }, O = async () => {
59644
59644
  if (m.value.length === 0)
59645
59645
  return;
@@ -59648,9 +59648,9 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59648
59648
  }, F = IR(g, 300);
59649
59649
  return Po(f, () => g()), ca(async () => {
59650
59650
  await g(), await _();
59651
- }), (U, Q) => {
59652
- var be, Ae, $e;
59653
- const Z = We("VsFilterList"), Ee = We("VsPopover");
59651
+ }), (U, J) => {
59652
+ var ve, Ae, $e;
59653
+ const Z = We("VsFilterList"), Se = We("VsPopover");
59654
59654
  return K(), ie("div", $ae, [
59655
59655
  L("div", Vae, [
59656
59656
  L("div", jae, [
@@ -59658,7 +59658,7 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59658
59658
  type: "text",
59659
59659
  class: "w-[200px] h-[38px] px-[10px] placeholder:text-[14px] placeholder:text-gray-600 rounded-lg bg-gray-100 focus:outline-blue-500",
59660
59660
  placeholder: "Пошук...",
59661
- onInput: Q[0] || (Q[0] = ({ target: Oe }) => ko(F)(Oe.value))
59661
+ onInput: J[0] || (J[0] = ({ target: Oe }) => ko(F)(Oe.value))
59662
59662
  }, null, 32),
59663
59663
  s.value ? (K(), zt(Z, {
59664
59664
  key: 0,
@@ -59682,13 +59682,13 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59682
59682
  L("div", Wae, [
59683
59683
  L("div", qae, [
59684
59684
  L("div", Gae, [
59685
- L("span", Yae, " Знайдено " + Ue((be = r.value) == null ? void 0 : be.filtered), 1),
59685
+ L("span", Yae, " Знайдено " + Ue((ve = r.value) == null ? void 0 : ve.filtered), 1),
59686
59686
  L("button", {
59687
59687
  onClick: D,
59688
59688
  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"
59689
59689
  }, " Обрати всі ")
59690
59690
  ]),
59691
- (Ae = o.value) != null && Ae.length ? (K(), zt(Ee, {
59691
+ (Ae = o.value) != null && Ae.length ? (K(), zt(Se, {
59692
59692
  key: 0,
59693
59693
  placement: "bottom"
59694
59694
  }, {
@@ -59718,7 +59718,7 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59718
59718
  type: "checkbox",
59719
59719
  class: "hidden",
59720
59720
  onChange: C,
59721
- "onUpdate:modelValue": Q[1] || (Q[1] = (me) => m.value = me),
59721
+ "onUpdate:modelValue": J[1] || (J[1] = (me) => m.value = me),
59722
59722
  value: Oe == null ? void 0 : Oe.id
59723
59723
  }, null, 40, Qae), [
59724
59724
  [vu, m.value]
@@ -59760,7 +59760,7 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59760
59760
  type: "checkbox",
59761
59761
  class: "hidden",
59762
59762
  onChange: C,
59763
- "onUpdate:modelValue": Q[2] || (Q[2] = (me) => m.value = me),
59763
+ "onUpdate:modelValue": J[2] || (J[2] = (me) => m.value = me),
59764
59764
  value: Oe == null ? void 0 : Oe.id
59765
59765
  }, null, 40, nle), [
59766
59766
  [vu, m.value]
@@ -59937,14 +59937,14 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
59937
59937
  ]),
59938
59938
  (F = f.value) != null && F.length ? (K(), ie("ul", gle, [
59939
59939
  (K(!0), ie(Tt, null, en(f.value, (U) => {
59940
- var Q, Z;
59940
+ var J, Z;
59941
59941
  return K(), ie("li", {
59942
59942
  key: U == null ? void 0 : U.name,
59943
59943
  "data-index": _.index,
59944
59944
  class: "w-full"
59945
59945
  }, [
59946
59946
  je(D, {
59947
- class: ln(["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) }]),
59947
+ class: ln(["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) }]),
59948
59948
  to: _le + "?name=" + (U == null ? void 0 : U.name)
59949
59949
  }, {
59950
59950
  default: Ft(() => [
@@ -60115,7 +60115,7 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
60115
60115
  return Po(f, () => {
60116
60116
  o.value = !1, setTimeout(() => o.value = !0), s.value = null, a.value = null;
60117
60117
  }), (C, D) => {
60118
- var F, U, Q;
60118
+ var F, U, J;
60119
60119
  const z = We("VsText"), O = We("VsFilterList");
60120
60120
  return K(), ie("div", Ple, [
60121
60121
  D[0] || (D[0] = L("div", { class: "mb-4 xl:mb-8" }, [
@@ -60172,11 +60172,11 @@ const Mae = /* @__PURE__ */ gt(Cae, [["render", Aae]]), Dae = { class: "h-full w
60172
60172
  ])
60173
60173
  ]),
60174
60174
  L("tbody", qle, [
60175
- (K(!0), ie(Tt, null, en((Q = r.value) == null ? void 0 : Q.rows, (Z) => {
60176
- var Ee;
60175
+ (K(!0), ie(Tt, null, en((J = r.value) == null ? void 0 : J.rows, (Z) => {
60176
+ var Se;
60177
60177
  return K(), ie("tr", null, [
60178
- (K(!0), ie(Tt, null, en((Ee = r.value) == null ? void 0 : Ee.columns, (be) => (K(), ie("td", Gle, [
60179
- L("span", Yle, Ue((Z == null ? void 0 : Z[be == null ? void 0 : be.name]) || "-"), 1)
60178
+ (K(!0), ie(Tt, null, en((Se = r.value) == null ? void 0 : Se.columns, (ve) => (K(), ie("td", Gle, [
60179
+ L("span", Yle, Ue((Z == null ? void 0 : Z[ve == null ? void 0 : ve.name]) || "-"), 1)
60180
60180
  ]))), 256))
60181
60181
  ]);
60182
60182
  }), 256))
@@ -60473,17 +60473,17 @@ function yce(n) {
60473
60473
  const e = typeof n;
60474
60474
  return e === "object" ? n : { title: "Підтвердити операцію", text: e === "string" ? n : "Ви впевнені що хочете виконати операцію?", cancel: "Скасувати", confirm: "Виконати" };
60475
60475
  }
60476
- const vce = ({ api: n, confirm: e, method: t, isId: i, id: r }) => new Promise((s) => {
60477
- var _, S, C, D;
60478
- const { VsDialog: a } = (S = (_ = window.app) == null ? void 0 : _._context) == null ? void 0 : S.components, { $notify: o } = (D = (C = window.app) == null ? void 0 : C.config) == null ? void 0 : D.globalProperties, f = document.querySelector("#modal");
60479
- if (!f) {
60476
+ const vce = ({ api: n, confirm: e, method: t, isId: i, id: r, redirect: s }) => new Promise((a) => {
60477
+ var S, C, D, z;
60478
+ const { VsDialog: o } = (C = (S = window.app) == null ? void 0 : S._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");
60479
+ if (!m) {
60480
60480
  console.error('Modal root element with id "#modal" not found!');
60481
60481
  return;
60482
60482
  }
60483
- const m = document.createElement("div");
60484
- f.appendChild(m);
60485
- const g = Mx({
60486
- components: { VsDialog: a },
60483
+ const g = document.createElement("div");
60484
+ m.appendChild(g);
60485
+ const _ = Mx({
60486
+ components: { VsDialog: o },
60487
60487
  data() {
60488
60488
  return {
60489
60489
  visible: !1,
@@ -60491,26 +60491,26 @@ const vce = ({ api: n, confirm: e, method: t, isId: i, id: r }) => new Promise((
60491
60491
  };
60492
60492
  },
60493
60493
  methods: {
60494
- close(z) {
60495
- this.visible = !1, this.$el.remove(), g.unmount(), s(z || "Success");
60494
+ close(O) {
60495
+ this.visible = !1, this.$el.remove(), _.unmount(), a(O || "Success");
60496
60496
  },
60497
60497
  async doRequest() {
60498
- var z;
60498
+ var O, F, U, J, Z, Se;
60499
60499
  try {
60500
- const { data: O } = await rt({
60500
+ const { data: ve } = await rt({
60501
60501
  url: n + (i ? `/${r}` : ""),
60502
60502
  method: t || "POST"
60503
60503
  });
60504
- this.close(O), await o({
60504
+ this.close(ve), await f({
60505
60505
  title: "Успішно!",
60506
60506
  type: "success",
60507
60507
  message: "Операція виконана успішно"
60508
- }), await Gy();
60509
- } catch (O) {
60510
- o({
60508
+ }), 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();
60509
+ } catch (ve) {
60510
+ f({
60511
60511
  title: "Помилка!",
60512
60512
  type: "error",
60513
- message: ((z = O == null ? void 0 : O.response) == null ? void 0 : z.data) || "Сталася помилка"
60513
+ message: ((Se = ve == null ? void 0 : ve.response) == null ? void 0 : Se.data) || "Сталася помилка"
60514
60514
  });
60515
60515
  }
60516
60516
  }
@@ -60547,7 +60547,7 @@ const vce = ({ api: n, confirm: e, method: t, isId: i, id: r }) => new Promise((
60547
60547
  </div>
60548
60548
  `
60549
60549
  });
60550
- g.mount(m);
60550
+ _.mount(g);
60551
60551
  }), bce = ({ title: n, geom: e, zoom: t, height: i }) => {
60552
60552
  var f, m;
60553
60553
  const { VsDialog: r } = (m = (f = window.app) == null ? void 0 : f._context) == null ? void 0 : m.components, s = document.querySelector("#app");