@idmwx/idmui-gl4 2.9.7 → 2.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9331,7 +9331,7 @@ function Cm(e, t, a, i, o, r) {
9331
9331
  r.showTipMenu ? (_(), A("div", Vc, [
9332
9332
  n("div", {
9333
9333
  class: ge(["menu-bar-box pa-1 rounded", a.simple ? "simple" : ""]),
9334
- style: he({ right: o.right + "px", top: a.simple ? "354px" : "450px" })
9334
+ style: he({ right: o.right + "px", top: a.simple ? "394px" : "490px" })
9335
9335
  }, [
9336
9336
  b(c, {
9337
9337
  text: e.$t("weather.legend"),
@@ -15286,7 +15286,7 @@ function Kp(e, t, a, i, o, r) {
15286
15286
  default: x(() => {
15287
15287
  var v;
15288
15288
  return [
15289
- n("span", Lp, y((v = a.editLayer) != null && v.id ? e.$t("actions.edit") : e.$t("marker.addMarker")), 1),
15289
+ n("span", Lp, y((v = a.editLayer) != null && v.id ? e.$t("actions.edit") : e.$t("actions.addMarker")), 1),
15290
15290
  b(l, {
15291
15291
  icon: "",
15292
15292
  density: "compact",
@@ -15944,6 +15944,7 @@ const Qp = {
15944
15944
  },
15945
15945
  isDragOver: !1,
15946
15946
  uploading: !1,
15947
+ fileError: "",
15947
15948
  previewSourceId: "__import_preview__",
15948
15949
  previewMarkers: []
15949
15950
  };
@@ -15966,7 +15967,7 @@ const Qp = {
15966
15967
  file: null,
15967
15968
  format: "",
15968
15969
  extend: void 0
15969
- };
15970
+ }, this.fileError = "";
15970
15971
  },
15971
15972
  handleSelectFile() {
15972
15973
  this.$refs.fileInput.click();
@@ -15986,7 +15987,7 @@ const Qp = {
15986
15987
  this.$emit("error", this.$t("marker.fileTooLarge"));
15987
15988
  return;
15988
15989
  }
15989
- this.form.file = e, this.form.name = (o = e.name.split(".")) == null ? void 0 : o[0];
15990
+ this.form.file = e, this.fileError = "", this.form.name = (o = e.name.split(".")) == null ? void 0 : o[0];
15990
15991
  const a = (r = e.name.split(".").pop()) == null ? void 0 : r.toLowerCase(), i = new FileReader();
15991
15992
  i.onload = (l) => {
15992
15993
  const c = new Uint8Array(l.target.result);
@@ -15997,7 +15998,7 @@ const Qp = {
15997
15998
  const g = await zr(h.target.result), w = Array.isArray(g) ? { type: "FeatureCollection", features: g.flatMap((u) => u.features || []) } : g;
15998
15999
  this.form.extend = w, this.form.format = "geojson", this.handleDrawLayers();
15999
16000
  } catch (g) {
16000
- console.error("Shapefile parse error", g), this.$emit("error", "Failed to parse shapefile"), this.form.file = null;
16001
+ console.error("Shapefile parse error", g), this.$emit("error", "Failed to parse shapefile"), this.fileError = "Failed to parse shapefile", this.form.file = null;
16001
16002
  }
16002
16003
  }, d.readAsArrayBuffer(e);
16003
16004
  return;
@@ -16015,7 +16016,7 @@ const Qp = {
16015
16016
  this.$emit("error", "Unsupported format: " + a);
16016
16017
  this.handleDrawLayers();
16017
16018
  } catch (h) {
16018
- console.error("File parse error", h), this.$emit("error", "Failed to parse file");
16019
+ console.error("File parse error", h), this.$emit("error", "Failed to parse file"), this.fileError = "Failed to parse file";
16019
16020
  }
16020
16021
  }, m.readAsText(e);
16021
16022
  }, i.readAsArrayBuffer(e.slice(0, 4));
@@ -16052,7 +16053,7 @@ const Qp = {
16052
16053
  if (!e)
16053
16054
  return;
16054
16055
  if (!this.form.file) {
16055
- this.$emit("error", this.$t("marker.fileRequired"));
16056
+ this.fileError = this.$t("marker.fileRequired");
16056
16057
  return;
16057
16058
  }
16058
16059
  this.uploading = !0;
@@ -16154,9 +16155,12 @@ const Qp = {
16154
16155
  }
16155
16156
  }, eu = { class: "text-h6 font-weight-600" }, tu = { class: "mb-4" }, au = { class: "text-label mb-1" }, ou = { class: "text-body-2 text-center text-label" }, iu = { class: "text-body-1 text-primary mt-2 cursor-pointer" }, ru = { class: "text-body-2 text-left text-label mt-1" }, lu = {
16156
16157
  key: 0,
16158
+ class: "text-body-2 text-left text-danger mt-1"
16159
+ }, nu = {
16160
+ key: 1,
16157
16161
  class: "d-flex align-center justify-space-between mt-2 px-2"
16158
- }, nu = { class: "text-body-2 text-truncate" };
16159
- function su(e, t, a, i, o, r) {
16162
+ }, su = { class: "text-body-2 text-truncate" };
16163
+ function cu(e, t, a, i, o, r) {
16160
16164
  const l = M("VBtn"), c = M("v-card-title"), s = M("v-divider"), m = M("v-text-field"), d = M("v-icon"), h = M("v-card-text"), g = M("VDivider"), w = M("v-btn"), u = M("VCardActions"), p = M("VForm"), f = M("v-card");
16161
16165
  return _(), B(f, {
16162
16166
  class: "idm-gl4-import-dialog-card",
@@ -16207,7 +16211,7 @@ function su(e, t, a, i, o, r) {
16207
16211
  }, null, 8, ["modelValue"])
16208
16212
  ]),
16209
16213
  n("div", {
16210
- class: ge(["upload-area d-flex flex-column justify-center align-center pa-4", { "drag-over": o.isDragOver }]),
16214
+ class: ge(["upload-area d-flex flex-column justify-center align-center pa-4", { "drag-over": o.isDragOver, "upload-error": o.fileError }]),
16211
16215
  onDragenter: t[2] || (t[2] = Le((L) => o.isDragOver = !0, ["prevent"])),
16212
16216
  onDragleave: t[3] || (t[3] = Le((L) => o.isDragOver = !1, ["prevent"])),
16213
16217
  onDragover: t[4] || (t[4] = Le(() => {
@@ -16237,8 +16241,9 @@ function su(e, t, a, i, o, r) {
16237
16241
  }, null, 544)
16238
16242
  ], 34),
16239
16243
  n("div", ru, y(e.$t("marker.uploadLimit")), 1),
16240
- o.form.file ? (_(), A("div", lu, [
16241
- n("span", nu, y(o.form.file.name), 1),
16244
+ o.fileError ? (_(), A("div", lu, y(o.fileError), 1)) : E("", !0),
16245
+ o.form.file ? (_(), A("div", nu, [
16246
+ n("span", su, y(o.form.file.name), 1),
16242
16247
  b(l, {
16243
16248
  icon: "",
16244
16249
  density: "compact",
@@ -16298,8 +16303,8 @@ function su(e, t, a, i, o, r) {
16298
16303
  _: 1
16299
16304
  });
16300
16305
  }
16301
- const cu = /* @__PURE__ */ ie(Qp, [["render", su]]);
16302
- const mu = {
16306
+ const mu = /* @__PURE__ */ ie(Qp, [["render", cu]]);
16307
+ const du = {
16303
16308
  name: "IdmGroupDialog",
16304
16309
  props: {
16305
16310
  modelValue: {
@@ -16359,8 +16364,8 @@ const mu = {
16359
16364
  }));
16360
16365
  }
16361
16366
  }
16362
- }, du = { class: "text-h6 font-weight-600" }, hu = { class: "text-label mb-2" };
16363
- function pu(e, t, a, i, o, r) {
16367
+ }, hu = { class: "text-h6 font-weight-600" }, pu = { class: "text-label mb-2" };
16368
+ function uu(e, t, a, i, o, r) {
16364
16369
  const l = M("VBtn"), c = M("v-card-title"), s = M("v-divider"), m = M("v-text-field"), d = M("v-card-text"), h = M("VDivider"), g = M("v-btn"), w = M("VCardActions"), u = M("v-card"), p = M("v-dialog");
16365
16370
  return _(), B(p, {
16366
16371
  "model-value": a.modelValue,
@@ -16376,7 +16381,7 @@ function pu(e, t, a, i, o, r) {
16376
16381
  default: x(() => [
16377
16382
  b(c, { class: "d-flex justify-space-between align-center" }, {
16378
16383
  default: x(() => [
16379
- n("span", du, y(e.$t("actions.editGroup")), 1),
16384
+ n("span", hu, y(e.$t("actions.editGroup")), 1),
16380
16385
  b(l, {
16381
16386
  icon: "",
16382
16387
  density: "compact",
@@ -16396,7 +16401,7 @@ function pu(e, t, a, i, o, r) {
16396
16401
  b(s),
16397
16402
  b(d, { class: "px-4 text-body-1" }, {
16398
16403
  default: x(() => [
16399
- n("div", hu, [
16404
+ n("div", pu, [
16400
16405
  Z(y(e.$t("marker.groupName")), 1),
16401
16406
  t[3] || (t[3] = n("span", { class: "text-danger" }, "*", -1))
16402
16407
  ]),
@@ -16451,7 +16456,7 @@ function pu(e, t, a, i, o, r) {
16451
16456
  _: 1
16452
16457
  }, 8, ["model-value"]);
16453
16458
  }
16454
- const uu = /* @__PURE__ */ ie(mu, [["render", pu]]), gu = {
16459
+ const gu = /* @__PURE__ */ ie(du, [["render", uu]]), fu = {
16455
16460
  name: "DeleteDialog",
16456
16461
  props: {
16457
16462
  title: {
@@ -16487,8 +16492,8 @@ const uu = /* @__PURE__ */ ie(mu, [["render", pu]]), gu = {
16487
16492
  this.showDialog = !0;
16488
16493
  }
16489
16494
  }
16490
- }, fu = { class: "text-body-1 pb-1" }, yu = { class: "text-body-1" };
16491
- function bu(e, t, a, i, o, r) {
16495
+ }, yu = { class: "text-body-1 pb-1" }, bu = { class: "text-body-1" };
16496
+ function wu(e, t, a, i, o, r) {
16492
16497
  const l = M("v-icon"), c = M("VBtn"), s = M("v-card-title"), m = M("v-card-text"), d = M("v-card-actions"), h = M("v-card"), g = M("v-dialog");
16493
16498
  return _(), B(g, {
16494
16499
  modelValue: o.showDialog,
@@ -16527,8 +16532,8 @@ function bu(e, t, a, i, o, r) {
16527
16532
  }),
16528
16533
  b(m, { class: "py-4 text-center" }, {
16529
16534
  default: x(() => [
16530
- n("p", fu, y(a.tips), 1),
16531
- n("p", yu, y(e.$t("tips.doYouWantToContinue")), 1)
16535
+ n("p", yu, y(a.tips), 1),
16536
+ n("p", bu, y(e.$t("tips.doYouWantToContinue")), 1)
16532
16537
  ]),
16533
16538
  _: 1
16534
16539
  }),
@@ -16568,10 +16573,10 @@ function bu(e, t, a, i, o, r) {
16568
16573
  _: 1
16569
16574
  }, 8, ["modelValue"]);
16570
16575
  }
16571
- const wu = /* @__PURE__ */ ie(gu, [["render", bu]]);
16572
- const xu = {
16576
+ const xu = /* @__PURE__ */ ie(fu, [["render", wu]]);
16577
+ const vu = {
16573
16578
  name: "IdmMarker",
16574
- components: { IdmDrawMarker: qp, IdmImportMarker: cu, IdmGroupDialog: uu, DeleteDialog: wu },
16579
+ components: { IdmDrawMarker: qp, IdmImportMarker: mu, IdmGroupDialog: gu, DeleteDialog: xu },
16575
16580
  props: {
16576
16581
  simple: {
16577
16582
  type: Boolean,
@@ -16642,6 +16647,11 @@ const xu = {
16642
16647
  currentGroupName: ""
16643
16648
  };
16644
16649
  },
16650
+ computed: {
16651
+ listStyle() {
16652
+ return this.simple ? { top: this.top + "px", left: this.toggle ? "0px" : "-280px" } : { top: this.top + "px", right: this.toggle ? "0px" : "-280px" };
16653
+ }
16654
+ },
16645
16655
  watch: {
16646
16656
  "menuToggle.v": {
16647
16657
  handler() {
@@ -16880,18 +16890,24 @@ const xu = {
16880
16890
  t && (t.forEach((a) => a.remove()), delete this.layerMarkers[e]);
16881
16891
  }
16882
16892
  }
16883
- }, vu = { class: "idm-gl4-marker" }, ku = { class: "w-100 px-4 d-flex flex-column justify-start align-start" }, _u = { class: "w-100 header-box d-flex justify-space-between align-center pr-4" }, Lu = { class: "d-flex justify-start align-center ga-3" }, zu = { class: "text-h5 font-weight-medium" }, Cu = { class: "search-box w-100 mb-3" }, Mu = {
16893
+ }, ku = { class: "idm-gl4-marker" }, _u = { class: "w-100 px-4 d-flex flex-column justify-start align-start" }, Lu = { class: "w-100 header-box d-flex justify-space-between align-center pr-4" }, zu = { class: "d-flex justify-start align-center ga-3" }, Cu = { class: "text-h5 font-weight-medium" }, Mu = { class: "search-box w-100 mb-3" }, Pu = {
16884
16894
  class: "multi-color-icon",
16885
16895
  style: { height: "20px", width: "20px" },
16886
16896
  "aria-hidden": "true"
16887
- }, Pu = { class: "w-100 d-flex justify-space-between align-center ga-4" }, Su = { class: "list-box w-100 flex-1-1-0 px-4 pb-2 scroll overflow-y-auto" }, Tu = { class: "group-label text-body-1 d-flex justify-space-between align-center py-4" }, Ru = { class: "d-flex justify-start align-center pl-2 cursor-pointer" }, Du = ["onClick"], Iu = { key: 0 }, Au = {
16897
+ }, Su = {
16898
+ key: 0,
16899
+ class: "w-100 d-flex justify-space-between align-center ga-4"
16900
+ }, Tu = { class: "list-box w-100 flex-1-1-0 px-4 pb-2 scroll overflow-y-auto" }, Ru = { class: "group-label text-body-1 d-flex justify-space-between align-center py-4" }, Du = { class: "d-flex justify-start align-center pl-2 cursor-pointer" }, Iu = ["onClick"], Au = { key: 0 }, Fu = {
16888
16901
  key: 0,
16889
16902
  class: "layer-list flex-1-1-0 overflow-y-hidden pb-2"
16890
- }, Fu = { class: "d-flex align-center justify-start ga-2" }, Gu = { class: "font-weight-600" }, Nu = { class: "layer-actions d-flex align-center justify-end ga-2" };
16891
- function Wu(e, t, a, i, o, r) {
16903
+ }, Gu = { class: "d-flex align-center justify-start ga-2" }, Nu = { class: "font-weight-600" }, Wu = {
16904
+ key: 0,
16905
+ class: "layer-actions d-flex align-center justify-end ga-2"
16906
+ };
16907
+ function Eu(e, t, a, i, o, r) {
16892
16908
  var D;
16893
16909
  const l = M("VBtn"), c = M("VTooltip"), s = M("VSwitch"), m = M("v-icon"), d = M("v-text-field"), h = M("v-chip"), g = M("v-progress-circular"), w = M("VListItemTitle"), u = M("VListItem"), p = M("VList"), f = M("v-card"), L = M("VMenu"), P = M("v-btn"), k = M("v-divider"), v = M("IdmDrawMarker"), T = M("IdmImportMarker"), C = M("IdmGroupDialog"), S = M("DeleteDialog");
16894
- return _(), A("div", vu, [
16910
+ return _(), A("div", ku, [
16895
16911
  n("div", {
16896
16912
  class: "menu-bar-box transition pa-1",
16897
16913
  style: he({ top: a.top + a.paddingTop + 206 + "px", right: o.right + "px" })
@@ -16924,12 +16940,12 @@ function Wu(e, t, a, i, o, r) {
16924
16940
  ], 4),
16925
16941
  n("div", {
16926
16942
  class: ge(["main-box transition d-flex flex-column justify-start align-start", o.toggle ? "right-bar" : ""]),
16927
- style: he({ top: a.top + "px", right: o.toggle ? "0px" : "-300px" })
16943
+ style: he(r.listStyle)
16928
16944
  }, [
16929
- n("div", ku, [
16930
- n("div", _u, [
16931
- n("div", Lu, [
16932
- n("div", zu, y(e.$t("marker.markers")), 1),
16945
+ n("div", _u, [
16946
+ n("div", Lu, [
16947
+ n("div", zu, [
16948
+ n("div", Cu, y(e.$t("marker.markers")), 1),
16933
16949
  b(s, {
16934
16950
  modelValue: o.autoActive,
16935
16951
  "onUpdate:modelValue": t[0] || (t[0] = (I) => o.autoActive = I),
@@ -16966,7 +16982,7 @@ function Wu(e, t, a, i, o, r) {
16966
16982
  __: [8]
16967
16983
  }, 8, ["onClick"])
16968
16984
  ]),
16969
- n("div", Cu, [
16985
+ n("div", Mu, [
16970
16986
  b(d, {
16971
16987
  modelValue: o.keyword,
16972
16988
  "onUpdate:modelValue": t[1] || (t[1] = (I) => o.keyword = I),
@@ -16979,14 +16995,14 @@ function Wu(e, t, a, i, o, r) {
16979
16995
  class: "input-btn-bg-1"
16980
16996
  }, {
16981
16997
  "prepend-inner": x(() => [
16982
- (_(), A("svg", Mu, t[9] || (t[9] = [
16998
+ (_(), A("svg", Pu, t[9] || (t[9] = [
16983
16999
  n("use", { "xlink:href": "#icon-search" }, null, -1)
16984
17000
  ])))
16985
17001
  ]),
16986
17002
  _: 1
16987
17003
  }, 8, ["modelValue"])
16988
17004
  ]),
16989
- n("div", Pu, [
17005
+ a.simple ? E("", !0) : (_(), A("div", Su, [
16990
17006
  b(l, {
16991
17007
  class: "flex-1-1-0 text-none mb-3 text-body-1 font-weight-600",
16992
17008
  color: "primary",
@@ -17017,15 +17033,15 @@ function Wu(e, t, a, i, o, r) {
17017
17033
  ]),
17018
17034
  _: 1
17019
17035
  }, 8, ["onClick"])
17020
- ])
17036
+ ]))
17021
17037
  ]),
17022
- n("div", Su, [
17038
+ n("div", Tu, [
17023
17039
  (_(!0), A(Te, null, De(o.layerGroup, (I) => (_(), A("div", {
17024
17040
  key: I.name,
17025
17041
  class: ge(["btn-bg-1", I.index === o.layerGroup.length ? "rounded-b" : I.index === 1 ? "rounded-t" : ""])
17026
17042
  }, [
17027
- n("div", Tu, [
17028
- n("div", Ru, [
17043
+ n("div", Ru, [
17044
+ n("div", Du, [
17029
17045
  I.show ? (_(), B(m, {
17030
17046
  key: 0,
17031
17047
  icon: "mdi-chevron-down",
@@ -17061,9 +17077,9 @@ function Wu(e, t, a, i, o, r) {
17061
17077
  n("div", {
17062
17078
  class: "",
17063
17079
  onClick: (W) => I.show = !I.show
17064
- }, y(I.name), 9, Du)
17080
+ }, y(I.name), 9, Iu)
17065
17081
  ]),
17066
- I.name !== "Custom Layers" ? (_(), A("div", Iu, [
17082
+ I.name !== "Custom Layers" && !a.simple ? (_(), A("div", Au, [
17067
17083
  b(P, {
17068
17084
  icon: "",
17069
17085
  density: "compact",
@@ -17099,7 +17115,7 @@ function Wu(e, t, a, i, o, r) {
17099
17115
  icon: "mdi-plus-circle-outline mr-4",
17100
17116
  size: "16"
17101
17117
  }),
17102
- n("span", null, y(e.$t("marker.addMarker")), 1)
17118
+ n("span", null, y(e.$t("actions.addMarker")), 1)
17103
17119
  ]),
17104
17120
  _: 2
17105
17121
  }, 1032, ["onClick"])
@@ -17169,17 +17185,17 @@ function Wu(e, t, a, i, o, r) {
17169
17185
  }, 1024)
17170
17186
  ])) : E("", !0)
17171
17187
  ]),
17172
- I.show ? (_(), A("div", Au, [
17188
+ I.show ? (_(), A("div", Fu, [
17173
17189
  (_(!0), A(Te, null, De(I.layers, (W) => {
17174
17190
  var V;
17175
17191
  return _(), A("div", {
17176
17192
  key: W.id,
17177
17193
  class: ge(["layer-item py-4 px-2 mx-2 rounded cursor-pointer d-flex align-center justify-space-between", ((V = o.currentLayer) == null ? void 0 : V.id) === W.id ? "active" : ""])
17178
17194
  }, [
17179
- n("div", Fu, [
17180
- n("span", Gu, y(W == null ? void 0 : W.name), 1)
17195
+ n("div", Gu, [
17196
+ n("span", Nu, y(W == null ? void 0 : W.name), 1)
17181
17197
  ]),
17182
- n("div", Nu, [
17198
+ a.simple ? E("", !0) : (_(), A("div", Wu, [
17183
17199
  b(l, {
17184
17200
  class: "",
17185
17201
  density: "compact",
@@ -17211,7 +17227,7 @@ function Wu(e, t, a, i, o, r) {
17211
17227
  ]),
17212
17228
  _: 2
17213
17229
  }, 1032, ["loading", "onClick"])
17214
- ])
17230
+ ]))
17215
17231
  ], 2);
17216
17232
  }), 128))
17217
17233
  ])) : E("", !0),
@@ -17264,9 +17280,9 @@ function Wu(e, t, a, i, o, r) {
17264
17280
  }, null, 8, ["title", "tips", "loading"])
17265
17281
  ]);
17266
17282
  }
17267
- const Eu = /* @__PURE__ */ ie(xu, [["render", Wu]]);
17283
+ const Bu = /* @__PURE__ */ ie(vu, [["render", Eu]]);
17268
17284
  var O = { image: /* @__PURE__ */ new Map(), background: /* @__PURE__ */ new Map(), resource: /* @__PURE__ */ new Map(), defaultStyle: /* @__PURE__ */ new Map(), baseStyle: /* @__PURE__ */ new Map(), computedStyle: /* @__PURE__ */ new WeakMap(), font: /* @__PURE__ */ new Set(), session: { styleMap: /* @__PURE__ */ new Map(), styleCache: /* @__PURE__ */ new WeakMap(), nodeMap: /* @__PURE__ */ new Map() } };
17269
- function Bu(e = "soft") {
17285
+ function Zu(e = "soft") {
17270
17286
  switch (O.session.__counterEpoch = (O.session.__counterEpoch || 0) + 1, e) {
17271
17287
  case "auto": {
17272
17288
  O.session.styleMap = /* @__PURE__ */ new Map(), O.session.nodeMap = /* @__PURE__ */ new Map();
@@ -17295,7 +17311,7 @@ function fo(e) {
17295
17311
  let a = t[2].trim();
17296
17312
  return a.startsWith("#") ? null : a;
17297
17313
  }
17298
- function Zu(e) {
17314
+ function Ou(e) {
17299
17315
  if (!e || e === "none")
17300
17316
  return "";
17301
17317
  let t = e.replace(/translate[XY]?\([^)]*\)/g, "");
@@ -17316,7 +17332,7 @@ function Ka(e) {
17316
17332
  return e;
17317
17333
  }
17318
17334
  }
17319
- function Ou(e = "[snapDOM]", { ttlMs: t = 5 * 6e4, maxEntries: a = 12 } = {}) {
17335
+ function Vu(e = "[snapDOM]", { ttlMs: t = 5 * 6e4, maxEntries: a = 12 } = {}) {
17320
17336
  let i = /* @__PURE__ */ new Map(), o = 0;
17321
17337
  function r(l, c, s) {
17322
17338
  if (o >= a)
@@ -17332,11 +17348,11 @@ function Ou(e = "[snapDOM]", { ttlMs: t = 5 * 6e4, maxEntries: a = 12 } = {}) {
17332
17348
  i.clear(), o = 0;
17333
17349
  } };
17334
17350
  }
17335
- var Ii = Ou("[snapDOM]", { ttlMs: 3 * 6e4, maxEntries: 10 }), to = /* @__PURE__ */ new Map(), Xa = /* @__PURE__ */ new Map();
17336
- function Vu(e) {
17351
+ var Ii = Vu("[snapDOM]", { ttlMs: 3 * 6e4, maxEntries: 10 }), to = /* @__PURE__ */ new Map(), Xa = /* @__PURE__ */ new Map();
17352
+ function ju(e) {
17337
17353
  return /^data:|^blob:|^about:blank$/i.test(e);
17338
17354
  }
17339
- function ju(e, t) {
17355
+ function Xu(e, t) {
17340
17356
  try {
17341
17357
  let a = typeof location < "u" && location.href ? location.href : "http://localhost/", i = t.includes("{url}") ? t.split("{url}")[0] : t, o = new URL(i || ".", a), r = new URL(e, a);
17342
17358
  if (r.origin === o.origin)
@@ -17348,8 +17364,8 @@ function ju(e, t) {
17348
17364
  }
17349
17365
  return !1;
17350
17366
  }
17351
- function Xu(e, t) {
17352
- if (!t || Vu(e) || ju(e, t))
17367
+ function Hu(e, t) {
17368
+ if (!t || ju(e) || Xu(e, t))
17353
17369
  return !1;
17354
17370
  try {
17355
17371
  let a = typeof location < "u" && location.href ? location.href : "http://localhost/", i = new URL(e, a);
@@ -17358,7 +17374,7 @@ function Xu(e, t) {
17358
17374
  return !!t;
17359
17375
  }
17360
17376
  }
17361
- function Hu(e, t) {
17377
+ function Yu(e, t) {
17362
17378
  if (!t)
17363
17379
  return e;
17364
17380
  if (t.includes("{url}"))
@@ -17378,7 +17394,7 @@ function Ai(e) {
17378
17394
  i.onload = () => t(String(i.result || "")), i.onerror = () => a(new Error("read_failed")), i.readAsDataURL(e);
17379
17395
  });
17380
17396
  }
17381
- function Yu(e, t) {
17397
+ function Uu(e, t) {
17382
17398
  return [t.as || "blob", t.timeout ?? 3e3, t.useProxy || "", t.errorTTL ?? 8e3, e].join("|");
17383
17399
  }
17384
17400
  async function $e(e, t = {}) {
@@ -17406,14 +17422,14 @@ async function $e(e, t = {}) {
17406
17422
  }
17407
17423
  if (/^about:blank$/i.test(e))
17408
17424
  return a === "dataURL" ? { ok: !0, data: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==", status: 200, url: e, fromCache: !1, mime: "image/png" } : { ok: !0, data: a === "text" ? "" : new Blob([]), status: 200, url: e, fromCache: !1 };
17409
- let s = Yu(e, { as: a, timeout: i, useProxy: o, errorTTL: r }), m = Xa.get(s);
17425
+ let s = Uu(e, { as: a, timeout: i, useProxy: o, errorTTL: r }), m = Xa.get(s);
17410
17426
  if (m && m.until > Date.now())
17411
17427
  return { ...m.result, fromCache: !0 };
17412
17428
  m && Xa.delete(s);
17413
17429
  let d = to.get(s);
17414
17430
  if (d)
17415
17431
  return d;
17416
- let h = Xu(e, o) ? Hu(e, o) : e, g = t.credentials;
17432
+ let h = Hu(e, o) ? Yu(e, o) : e, g = t.credentials;
17417
17433
  if (!g)
17418
17434
  try {
17419
17435
  let f = typeof location < "u" && location.href ? location.href : "http://localhost/", L = new URL(e, f);
@@ -17467,8 +17483,8 @@ async function ar(e, t = {}) {
17467
17483
  return O.background.set(i, null), "none";
17468
17484
  }
17469
17485
  }
17470
- var Uu = /* @__PURE__ */ new Set(["meta", "script", "noscript", "title", "link", "template"]), yo = /* @__PURE__ */ new Set(["meta", "link", "style", "title", "noscript", "script", "template", "g", "defs", "use", "marker", "mask", "clipPath", "pattern", "path", "polygon", "polyline", "line", "circle", "ellipse", "rect", "filter", "lineargradient", "radialgradient", "stop"]);
17471
- function $u(e) {
17486
+ var $u = /* @__PURE__ */ new Set(["meta", "script", "noscript", "title", "link", "template"]), yo = /* @__PURE__ */ new Set(["meta", "link", "style", "title", "noscript", "script", "template", "g", "defs", "use", "marker", "mask", "clipPath", "pattern", "path", "polygon", "polyline", "line", "circle", "ellipse", "rect", "filter", "lineargradient", "radialgradient", "stop"]);
17487
+ function Ju(e) {
17472
17488
  if (e = String(e).toLowerCase(), yo.has(e)) {
17473
17489
  let r = {};
17474
17490
  return O.defaultStyle.set(e, r), r;
@@ -17488,15 +17504,15 @@ function $u(e) {
17488
17504
  }
17489
17505
  return t.removeChild(a), O.defaultStyle.set(e, o), o;
17490
17506
  }
17491
- var Ju = /(?:^|-)(animation|transition)(?:-|$)/i, Ku = /^(--|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i, qu = /* @__PURE__ */ new Set(["cursor", "pointer-events", "touch-action", "user-select", "print-color-adjust", "speak", "reading-flow", "reading-order", "anchor-name", "anchor-scope", "container-name", "container-type", "timeline-scope"]);
17507
+ var Ku = /(?:^|-)(animation|transition)(?:-|$)/i, qu = /^(--|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i, Qu = /* @__PURE__ */ new Set(["cursor", "pointer-events", "touch-action", "user-select", "print-color-adjust", "speak", "reading-flow", "reading-order", "anchor-name", "anchor-scope", "container-name", "container-type", "timeline-scope"]);
17492
17508
  function or(e) {
17493
17509
  let t = String(e).toLowerCase();
17494
- return !!(qu.has(t) || Ku.test(t) || Ju.test(t));
17510
+ return !!(Qu.has(t) || qu.test(t) || Ku.test(t));
17495
17511
  }
17496
17512
  function io(e, t) {
17497
17513
  if (t = String(t || "").toLowerCase(), yo.has(t))
17498
17514
  return "";
17499
- let a = [], i = $u(t);
17515
+ let a = [], i = Ju(t);
17500
17516
  for (let [o, r] of Object.entries(e)) {
17501
17517
  if (or(o))
17502
17518
  continue;
@@ -17505,11 +17521,11 @@ function io(e, t) {
17505
17521
  }
17506
17522
  return a.sort(), a.join(";");
17507
17523
  }
17508
- function Qu(e) {
17524
+ function eg(e) {
17509
17525
  let t = /* @__PURE__ */ new Set();
17510
17526
  return e.nodeType !== Node.ELEMENT_NODE && e.nodeType !== Node.DOCUMENT_FRAGMENT_NODE ? [] : (e.tagName && t.add(e.tagName.toLowerCase()), typeof e.querySelectorAll == "function" && e.querySelectorAll("*").forEach((a) => t.add(a.tagName.toLowerCase())), Array.from(t));
17511
17527
  }
17512
- function eg(e) {
17528
+ function tg(e) {
17513
17529
  let t = /* @__PURE__ */ new Map();
17514
17530
  for (let i of e) {
17515
17531
  let o = O.defaultStyle.get(i);
@@ -17524,7 +17540,7 @@ function eg(e) {
17524
17540
  `;
17525
17541
  return a;
17526
17542
  }
17527
- function tg(e) {
17543
+ function ag(e) {
17528
17544
  let t = Array.from(new Set(e.values())).filter(Boolean).sort(), a = /* @__PURE__ */ new Map(), i = 1;
17529
17545
  for (let o of t)
17530
17546
  a.set(o, `c${i++}`);
@@ -17554,31 +17570,31 @@ function rr(e) {
17554
17570
  }
17555
17571
  return t.push(e.slice(i).trim()), t;
17556
17572
  }
17557
- var ag = [/font\s*awesome/i, /material\s*icons/i, /ionicons/i, /glyphicons/i, /feather/i, /bootstrap\s*icons/i, /remix\s*icons/i, /heroicons/i, /layui/i, /lucide/i], it = Object.assign({ materialIconsFilled: "https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2", materialIconsOutlined: "https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUcel5euIg.woff2", materialIconsRound: "https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmPq_HTTw.woff2", materialIconsSharp: "https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2" }, typeof window < "u" && window.__SNAPDOM_ICON_FONTS__ || {}), ro = [];
17558
- function og(e) {
17573
+ var og = [/font\s*awesome/i, /material\s*icons/i, /ionicons/i, /glyphicons/i, /feather/i, /bootstrap\s*icons/i, /remix\s*icons/i, /heroicons/i, /layui/i, /lucide/i], it = Object.assign({ materialIconsFilled: "https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2", materialIconsOutlined: "https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUcel5euIg.woff2", materialIconsRound: "https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmPq_HTTw.woff2", materialIconsSharp: "https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2" }, typeof window < "u" && window.__SNAPDOM_ICON_FONTS__ || {}), ro = [];
17574
+ function ig(e) {
17559
17575
  let t = Array.isArray(e) ? e : [e];
17560
17576
  for (let a of t)
17561
17577
  a instanceof RegExp ? ro.push(a) : typeof a == "string" ? ro.push(new RegExp(a, "i")) : console.warn("[snapdom] Ignored invalid iconFont value:", a);
17562
17578
  }
17563
17579
  function Je(e) {
17564
- let t = typeof e == "string" ? e : "", a = [...ag, ...ro];
17580
+ let t = typeof e == "string" ? e : "", a = [...og, ...ro];
17565
17581
  for (let i of a)
17566
17582
  if (i instanceof RegExp && i.test(t))
17567
17583
  return !0;
17568
17584
  return !!(/icon/i.test(t) || /glyph/i.test(t) || /symbols/i.test(t) || /feather/i.test(t) || /fontawesome/i.test(t));
17569
17585
  }
17570
- function ig(e = "") {
17586
+ function rg(e = "") {
17571
17587
  let t = String(e).toLowerCase();
17572
17588
  return /\bmaterial\s*icons\b/.test(t) || /\bmaterial\s*symbols\b/.test(t);
17573
17589
  }
17574
17590
  var Gi = /* @__PURE__ */ new Map();
17575
- function rg(e = "") {
17591
+ function lg(e = "") {
17576
17592
  let t = /* @__PURE__ */ Object.create(null), a = String(e || ""), i = /['"]?\s*([A-Za-z]{3,4})\s*['"]?\s*([+-]?\d+(?:\.\d+)?)\s*/g, o;
17577
17593
  for (; o = i.exec(a); )
17578
17594
  t[o[1].toUpperCase()] = Number(o[2]);
17579
17595
  return t;
17580
17596
  }
17581
- async function lg(e, t, a) {
17597
+ async function ng(e, t, a) {
17582
17598
  let i = String(e || ""), o = i.toLowerCase(), r = String(t || "").toLowerCase();
17583
17599
  if (/\bmaterial\s*icons\b/.test(o) && !/\bsymbols\b/.test(o))
17584
17600
  return { familyForMeasure: i, familyForCanvas: i };
@@ -17599,13 +17615,13 @@ async function lg(e, t, a) {
17599
17615
  let d = `"${m.alias}"`;
17600
17616
  return { familyForMeasure: d, familyForCanvas: d };
17601
17617
  }
17602
- async function ng(e = "Material Icons", t = 24) {
17618
+ async function sg(e = "Material Icons", t = 24) {
17603
17619
  try {
17604
17620
  await Promise.all([document.fonts.load(`400 ${t}px "${String(e).replace(/["']/g, "")}"`), document.fonts.ready]);
17605
17621
  } catch {
17606
17622
  }
17607
17623
  }
17608
- function sg(e) {
17624
+ function cg(e) {
17609
17625
  var o, r;
17610
17626
  let t = ((o = e.getPropertyValue("-webkit-text-fill-color")) == null ? void 0 : o.trim()) || "", a = /^transparent$/i.test(t) || /rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(t);
17611
17627
  if (t && !a && t.toLowerCase() !== "currentcolor")
@@ -17613,9 +17629,9 @@ function sg(e) {
17613
17629
  let i = (r = e.color) == null ? void 0 : r.trim();
17614
17630
  return i && i !== "inherit" ? i : "#000";
17615
17631
  }
17616
- async function cg(e, { family: t = "Material Icons", weight: a = "normal", fontSize: i = 32, color: o = "#000", variation: r = "", className: l = "" } = {}) {
17617
- let c = String(t || "").replace(/^['"]+|['"]+$/g, ""), s = window.devicePixelRatio || 1, m = rg(r), { familyForMeasure: d, familyForCanvas: h } = await lg(c, l, m);
17618
- await ng(h.replace(/^["']+|["']+$/g, ""), i);
17632
+ async function mg(e, { family: t = "Material Icons", weight: a = "normal", fontSize: i = 32, color: o = "#000", variation: r = "", className: l = "" } = {}) {
17633
+ let c = String(t || "").replace(/^['"]+|['"]+$/g, ""), s = window.devicePixelRatio || 1, m = lg(r), { familyForMeasure: d, familyForCanvas: h } = await ng(c, l, m);
17634
+ await sg(h.replace(/^["']+|["']+$/g, ""), i);
17619
17635
  let g = document.createElement("span");
17620
17636
  g.textContent = e, g.style.position = "absolute", g.style.visibility = "hidden", g.style.left = "-99999px", g.style.whiteSpace = "nowrap", g.style.fontFamily = d, g.style.fontWeight = String(a || "normal"), g.style.fontSize = `${i}px`, g.style.lineHeight = "1", g.style.margin = "0", g.style.padding = "0", g.style.fontFeatureSettings = "'liga' 1", g.style.fontVariantLigatures = "normal", g.style.color = o, document.body.appendChild(g);
17621
17637
  let w = g.getBoundingClientRect(), u = Math.max(1, Math.ceil(w.width)), p = Math.max(1, Math.ceil(w.height));
@@ -17630,7 +17646,7 @@ async function cg(e, { family: t = "Material Icons", weight: a = "normal", fontS
17630
17646
  }
17631
17647
  return L.fillText(e, 0, 0), { dataUrl: f.toDataURL(), width: u, height: p };
17632
17648
  }
17633
- async function mg(e, t) {
17649
+ async function dg(e, t) {
17634
17650
  if (!(e instanceof Element))
17635
17651
  return 0;
17636
17652
  let a = '.material-icons, [class*="material-symbols"]', i = Array.from(e.querySelectorAll(a)).filter((l) => l && l.textContent && l.textContent.trim());
@@ -17641,12 +17657,12 @@ async function mg(e, t) {
17641
17657
  let c = i[l], s = o[l] || null;
17642
17658
  try {
17643
17659
  let m = getComputedStyle(s || c), d = m.fontFamily || "Material Icons";
17644
- if (!ig(d))
17660
+ if (!rg(d))
17645
17661
  continue;
17646
17662
  let h = (s || c).textContent.trim();
17647
17663
  if (!h)
17648
17664
  continue;
17649
- let g = parseInt(m.fontSize, 10) || 24, w = m.fontWeight && m.fontWeight !== "normal" ? m.fontWeight : "normal", u = sg(m), p = m.fontVariationSettings && m.fontVariationSettings !== "normal" ? m.fontVariationSettings : "", f = (s || c).className || "", { dataUrl: L, width: P, height: k } = await cg(h, { family: d, weight: w, fontSize: g, color: u, variation: p, className: f });
17665
+ let g = parseInt(m.fontSize, 10) || 24, w = m.fontWeight && m.fontWeight !== "normal" ? m.fontWeight : "normal", u = cg(m), p = m.fontVariationSettings && m.fontVariationSettings !== "normal" ? m.fontVariationSettings : "", f = (s || c).className || "", { dataUrl: L, width: P, height: k } = await mg(h, { family: d, weight: w, fontSize: g, color: u, variation: p, className: f });
17650
17666
  c.textContent = "";
17651
17667
  let v = c.ownerDocument.createElement("img");
17652
17668
  v.src = L, v.alt = h, v.style.height = `${g}px`, v.style.width = `${Math.max(1, Math.round(P / k * g))}px`, v.style.objectFit = "contain", v.style.verticalAlign = getComputedStyle(c).verticalAlign || "baseline", c.appendChild(v), r++;
@@ -17655,7 +17671,7 @@ async function mg(e, t) {
17655
17671
  }
17656
17672
  return r;
17657
17673
  }
17658
- async function dg(e, t, a, i = 32, o = "#000") {
17674
+ async function hg(e, t, a, i = 32, o = "#000") {
17659
17675
  t = t.replace(/^['"]+|['"]+$/g, "");
17660
17676
  let r = window.devicePixelRatio || 1;
17661
17677
  try {
@@ -17671,13 +17687,13 @@ async function dg(e, t, a, i = 32, o = "#000") {
17671
17687
  let h = d.getContext("2d");
17672
17688
  return h.scale(r, r), h.font = a ? `${a} ${i}px "${t}"` : `${i}px "${t}"`, h.textAlign = "left", h.textBaseline = "top", h.fillStyle = o, h.fillText(e, 0, 0), { dataUrl: d.toDataURL(), width: s, height: m };
17673
17689
  }
17674
- var hg = /* @__PURE__ */ new Set(["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "emoji", "math", "fangsong", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded"]);
17690
+ var pg = /* @__PURE__ */ new Set(["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "emoji", "math", "fangsong", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded"]);
17675
17691
  function eo(e) {
17676
17692
  if (!e)
17677
17693
  return "";
17678
17694
  for (let t of e.split(",")) {
17679
17695
  let a = t.trim().replace(/^['"]+|['"]+$/g, "");
17680
- if (a && !hg.has(a.toLowerCase()))
17696
+ if (a && !pg.has(a.toLowerCase()))
17681
17697
  return a;
17682
17698
  }
17683
17699
  return "";
@@ -17695,11 +17711,11 @@ function Ua(e) {
17695
17711
  let t = String(e ?? "normal").trim().toLowerCase();
17696
17712
  return t.startsWith("italic") ? "italic" : t.startsWith("oblique") ? "oblique" : "normal";
17697
17713
  }
17698
- function pg(e) {
17714
+ function ug(e) {
17699
17715
  let t = String(e ?? "100%").match(/(\d+(?:\.\d+)?)\s*%/);
17700
17716
  return t ? Math.max(50, Math.min(200, parseFloat(t[1]))) : 100;
17701
17717
  }
17702
- function ug(e) {
17718
+ function gg(e) {
17703
17719
  let t = String(e || "400").trim(), a = t.match(/^(\d{2,3})\s+(\d{2,3})$/);
17704
17720
  if (a) {
17705
17721
  let o = Ya(a[1]), r = Ya(a[2]);
@@ -17708,11 +17724,11 @@ function ug(e) {
17708
17724
  let i = Ya(t);
17709
17725
  return { min: i, max: i };
17710
17726
  }
17711
- function gg(e) {
17727
+ function fg(e) {
17712
17728
  let t = String(e || "normal").trim().toLowerCase();
17713
17729
  return t === "italic" ? { kind: "italic" } : t.startsWith("oblique") ? { kind: "oblique" } : { kind: "normal" };
17714
17730
  }
17715
- function fg(e) {
17731
+ function yg(e) {
17716
17732
  let t = String(e || "100%").trim(), a = t.match(/(\d+(?:\.\d+)?)\s*%\s+(\d+(?:\.\d+)?)\s*%/);
17717
17733
  if (a) {
17718
17734
  let r = parseFloat(a[1]), l = parseFloat(a[2]);
@@ -17721,7 +17737,7 @@ function fg(e) {
17721
17737
  let i = t.match(/(\d+(?:\.\d+)?)\s*%/), o = i ? parseFloat(i[1]) : 100;
17722
17738
  return { min: o, max: o };
17723
17739
  }
17724
- function yg(e, t) {
17740
+ function bg(e, t) {
17725
17741
  if (!e)
17726
17742
  return !1;
17727
17743
  try {
@@ -17744,7 +17760,7 @@ function yg(e, t) {
17744
17760
  return !1;
17745
17761
  }
17746
17762
  }
17747
- function bg(e) {
17763
+ function wg(e) {
17748
17764
  var a;
17749
17765
  let t = /* @__PURE__ */ new Set();
17750
17766
  for (let i of e || []) {
@@ -17767,7 +17783,7 @@ function Ni(e, t) {
17767
17783
  });
17768
17784
  }
17769
17785
  var lo = /@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g, qa = 4;
17770
- async function wg(e, t, a) {
17786
+ async function xg(e, t, a) {
17771
17787
  if (!e)
17772
17788
  return e;
17773
17789
  let i = /* @__PURE__ */ new Set();
@@ -17806,7 +17822,7 @@ ${p}
17806
17822
  let l = Ni(e, t || location.href);
17807
17823
  return l = await r(l, t || location.href, 0), l;
17808
17824
  }
17809
- var lr = /url\((["']?)([^"')]+)\1\)/g, xg = /@font-face[^{}]*\{[^}]*\}/g;
17825
+ var lr = /url\((["']?)([^"')]+)\1\)/g, vg = /@font-face[^{}]*\{[^}]*\}/g;
17810
17826
  function nr(e) {
17811
17827
  if (!e)
17812
17828
  return [];
@@ -17889,7 +17905,7 @@ async function cr(e, t, a = "") {
17889
17905
  }
17890
17906
  return i;
17891
17907
  }
17892
- function vg(e) {
17908
+ function kg(e) {
17893
17909
  if (!e.length)
17894
17910
  return null;
17895
17911
  let t = (l, c) => e.some(([s, m]) => !(m < l || s > c)), a = t(0, 255) || t(305, 305), i = t(256, 591) || t(7680, 7935), o = t(880, 1023), r = t(1024, 1279);
@@ -17908,14 +17924,14 @@ function Wi(e = {}) {
17908
17924
  } catch {
17909
17925
  }
17910
17926
  if (i.size) {
17911
- let l = vg(r);
17927
+ let l = kg(r);
17912
17928
  if (l && i.has(l))
17913
17929
  return !0;
17914
17930
  }
17915
17931
  return !1;
17916
17932
  };
17917
17933
  }
17918
- function kg(e) {
17934
+ function _g(e) {
17919
17935
  var r, l, c, s, m, d;
17920
17936
  if (!e)
17921
17937
  return e;
@@ -17929,7 +17945,7 @@ function kg(e) {
17929
17945
  let o = 0;
17930
17946
  return e.replace(t, () => i[o++] || "");
17931
17947
  }
17932
- function _g(e, t, a, i) {
17948
+ function Lg(e, t, a, i) {
17933
17949
  let o = Array.from(e || []).sort().join("|"), r = t ? JSON.stringify({ families: (t.families || []).map((c) => String(c).toLowerCase()).sort(), domains: (t.domains || []).map((c) => String(c).toLowerCase()).sort(), subsets: (t.subsets || []).map((c) => String(c).toLowerCase()).sort() }) : "", l = (a || []).map((c) => `${(c.family || "").toLowerCase()}::${c.weight || "normal"}::${c.style || "normal"}::${c.src || ""}`).sort().join("|");
17934
17950
  return `fonts-embed-css::req=${o}::ex=${r}::lf=${l}::px=${i || ""}`;
17935
17951
  }
@@ -17984,7 +18000,7 @@ async function mr(e, t, a, i) {
17984
18000
  }
17985
18001
  }
17986
18002
  }
17987
- async function Lg({ required: e, usedCodepoints: t, exclude: a = void 0, localFonts: i = [], useProxy: o = "" } = {}) {
18003
+ async function zg({ required: e, usedCodepoints: t, exclude: a = void 0, localFonts: i = [], useProxy: o = "" } = {}) {
17988
18004
  var p, f, L, P, k, v, T, C, S, D, I, W, V, J, te, ae, re, pe;
17989
18005
  e instanceof Set || (e = /* @__PURE__ */ new Set()), t instanceof Set || (t = /* @__PURE__ */ new Set());
17990
18006
  let r = /* @__PURE__ */ new Map();
@@ -17998,7 +18014,7 @@ async function Lg({ required: e, usedCodepoints: t, exclude: a = void 0, localFo
17998
18014
  function l(F, $, K, oe) {
17999
18015
  if (!r.has(F))
18000
18016
  return !1;
18001
- let H = r.get(F), j = ug(K), Q = gg($), G = fg(oe), ne = j.min !== j.max, fe = j.min, ke = (me) => Q.kind === "normal" && me === "normal" || Q.kind !== "normal" && (me === "italic" || me === "oblique"), ze = !1;
18017
+ let H = r.get(F), j = gg(K), Q = fg($), G = yg(oe), ne = j.min !== j.max, fe = j.min, ke = (me) => Q.kind === "normal" && me === "normal" || Q.kind !== "normal" && (me === "italic" || me === "oblique"), ze = !1;
18002
18018
  for (let me of H) {
18003
18019
  let ye = ne ? me.w >= j.min && me.w <= j.max : me.w === fe, _e = ke(Ua(me.s)), Re = me.st >= G.min && me.st <= G.max;
18004
18020
  if (ye && _e && Re) {
@@ -18022,10 +18038,10 @@ async function Lg({ required: e, usedCodepoints: t, exclude: a = void 0, localFo
18022
18038
  }
18023
18039
  return !1;
18024
18040
  }
18025
- let c = Wi(a), s = _g(e, a, i, o);
18041
+ let c = Wi(a), s = Lg(e, a, i, o);
18026
18042
  if ((p = O.resource) != null && p.has(s))
18027
18043
  return O.resource.get(s);
18028
- let m = bg(e), d = [], h = lo;
18044
+ let m = wg(e), d = [], h = lo;
18029
18045
  for (let F of document.querySelectorAll("style")) {
18030
18046
  let $ = F.textContent || "";
18031
18047
  for (let K of $.matchAll(h)) {
@@ -18049,7 +18065,7 @@ async function Lg({ required: e, usedCodepoints: t, exclude: a = void 0, localFo
18049
18065
  K = new URL(F.href, location.href).origin === location.origin;
18050
18066
  } catch {
18051
18067
  }
18052
- if (!K && !yg(F.href, m))
18068
+ if (!K && !bg(F.href, m))
18053
18069
  continue;
18054
18070
  if (K) {
18055
18071
  let H = Array.from(document.styleSheets).find((j) => j.href === F.href);
@@ -18062,9 +18078,9 @@ async function Lg({ required: e, usedCodepoints: t, exclude: a = void 0, localFo
18062
18078
  }
18063
18079
  if (!$ && ($ = (await $e(F.href, { as: "text", useProxy: o })).data, Je(F.href)))
18064
18080
  continue;
18065
- $ = await wg($, F.href, o);
18081
+ $ = await xg($, F.href, o);
18066
18082
  let oe = "";
18067
- for (let H of $.match(xg) || []) {
18083
+ for (let H of $.match(vg) || []) {
18068
18084
  let j = (((f = H.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : f[1]) || "").trim(), Q = eo(j);
18069
18085
  if (!Q || Je(Q))
18070
18086
  continue;
@@ -18145,9 +18161,9 @@ async function Lg({ required: e, usedCodepoints: t, exclude: a = void 0, localFo
18145
18161
  }
18146
18162
  g += `@font-face{font-family:'${$}';src:url(${Q});font-style:${oe};font-weight:${K};font-stretch:${H};}`;
18147
18163
  }
18148
- return g && (g = kg(g), (pe = O.resource) == null || pe.set(s, g)), g;
18164
+ return g && (g = _g(g), (pe = O.resource) == null || pe.set(s, g)), g;
18149
18165
  }
18150
- function zg(e) {
18166
+ function Cg(e) {
18151
18167
  let t = /* @__PURE__ */ new Set();
18152
18168
  if (!e)
18153
18169
  return t;
@@ -18155,7 +18171,7 @@ function zg(e) {
18155
18171
  let c = eo(l.fontFamily);
18156
18172
  if (!c)
18157
18173
  return;
18158
- let s = (m, d, h) => `${c}__${Ya(m)}__${Ua(d)}__${pg(h)}`;
18174
+ let s = (m, d, h) => `${c}__${Ya(m)}__${Ua(d)}__${ug(h)}`;
18159
18175
  t.add(s(l.fontWeight, l.fontStyle, l.fontStretch));
18160
18176
  };
18161
18177
  i(getComputedStyle(e));
@@ -18172,7 +18188,7 @@ function zg(e) {
18172
18188
  }
18173
18189
  return t;
18174
18190
  }
18175
- function Cg(e) {
18191
+ function Mg(e) {
18176
18192
  var o;
18177
18193
  let t = /* @__PURE__ */ new Set(), a = (r) => {
18178
18194
  if (r)
@@ -18204,7 +18220,7 @@ function Cg(e) {
18204
18220
  }
18205
18221
  return t;
18206
18222
  }
18207
- async function Mg(e, t = 2) {
18223
+ async function Pg(e, t = 2) {
18208
18224
  try {
18209
18225
  await document.fonts.ready;
18210
18226
  } catch {
@@ -18224,7 +18240,7 @@ async function Mg(e, t = 2) {
18224
18240
  for (let o = 0; o < Math.max(1, t); o++)
18225
18241
  i(), await new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r)));
18226
18242
  }
18227
- async function Pg(e, t, a, i = {}) {
18243
+ async function Sg(e, t, a, i = {}) {
18228
18244
  let o = [[e, t]], r = ["background-image", "mask", "mask-image", "-webkit-mask", "-webkit-mask-image", "mask-source", "mask-box-image-source", "mask-border-source", "-webkit-mask-box-image-source", "border-image", "border-image-source"], l = ["mask-position", "mask-size", "mask-repeat", "-webkit-mask-position", "-webkit-mask-size", "-webkit-mask-repeat", "mask-origin", "mask-clip", "-webkit-mask-origin", "-webkit-mask-clip", "-webkit-mask-position-x", "-webkit-mask-position-y"], c = ["background-position", "background-position-x", "background-position-y", "background-size", "background-repeat", "background-origin", "background-clip", "background-attachment", "background-blend-mode"], s = ["border-image-slice", "border-image-width", "border-image-outset", "border-image-repeat"];
18229
18245
  for (; o.length; ) {
18230
18246
  let [m, d] = o.shift(), h = a.get(m) || ir(m);
@@ -18283,7 +18299,7 @@ function dr(e) {
18283
18299
  }
18284
18300
  return typeof e == "function" ? e() : e;
18285
18301
  }
18286
- function Sg(...e) {
18302
+ function Tg(...e) {
18287
18303
  let t = e.flat();
18288
18304
  for (let a of t) {
18289
18305
  let i = dr(a);
@@ -18304,7 +18320,7 @@ async function qe(e, t, a) {
18304
18320
  }
18305
18321
  return i;
18306
18322
  }
18307
- async function Tg(e, t, a) {
18323
+ async function Rg(e, t, a) {
18308
18324
  let i = [], o = hr(t);
18309
18325
  for (let r of o) {
18310
18326
  let l = r && typeof r[e] == "function" ? r[e] : null;
@@ -18315,7 +18331,7 @@ async function Tg(e, t, a) {
18315
18331
  }
18316
18332
  return i;
18317
18333
  }
18318
- function Rg(e) {
18334
+ function Dg(e) {
18319
18335
  let t = [];
18320
18336
  if (Array.isArray(e))
18321
18337
  for (let a of e) {
@@ -18329,15 +18345,15 @@ function Rg(e) {
18329
18345
  a && a.name && !t.some((i) => i.name === a.name) && t.push(a);
18330
18346
  return Object.freeze(t);
18331
18347
  }
18332
- function Dg(e, t, a = !1) {
18333
- return !e || e.plugins && !a || (e.plugins = Rg(t)), e;
18348
+ function Ig(e, t, a = !1) {
18349
+ return !e || e.plugins && !a || (e.plugins = Dg(t)), e;
18334
18350
  }
18335
18351
  var Ei = /* @__PURE__ */ new WeakMap(), no = /* @__PURE__ */ new Map(), so = 0;
18336
18352
  function Ba() {
18337
18353
  so++;
18338
18354
  }
18339
18355
  var Bi = !1;
18340
- function Ig(e = document.documentElement) {
18356
+ function Ag(e = document.documentElement) {
18341
18357
  var t, a;
18342
18358
  if (!Bi) {
18343
18359
  Bi = !0;
@@ -18357,7 +18373,7 @@ function Ig(e = document.documentElement) {
18357
18373
  }
18358
18374
  }
18359
18375
  }
18360
- function Ag(e, t = {}) {
18376
+ function Fg(e, t = {}) {
18361
18377
  let a = {}, i = e.getPropertyValue("visibility");
18362
18378
  for (let r = 0; r < e.length; r++) {
18363
18379
  let l = e[r], c = e.getPropertyValue(l);
@@ -18384,52 +18400,52 @@ function Ag(e, t = {}) {
18384
18400
  return i === "hidden" && (a.opacity = "0"), a;
18385
18401
  }
18386
18402
  var Zi = /* @__PURE__ */ new WeakMap();
18387
- function Fg(e) {
18403
+ function Gg(e) {
18388
18404
  let t = Zi.get(e);
18389
18405
  return t || (t = Object.entries(e).sort((a, i) => a[0] < i[0] ? -1 : a[0] > i[0] ? 1 : 0).map(([a, i]) => `${a}:${i}`).join(";"), Zi.set(e, t), t);
18390
18406
  }
18391
- function Gg(e, t = null, a = {}) {
18407
+ function Ng(e, t = null, a = {}) {
18392
18408
  let i = Ei.get(e);
18393
18409
  if (i && i.epoch === so)
18394
18410
  return i.snapshot;
18395
- let o = t || getComputedStyle(e), r = Ag(o, a);
18396
- return Og(e, o, r), Ei.set(e, { epoch: so, snapshot: r }), r;
18411
+ let o = t || getComputedStyle(e), r = Fg(o, a);
18412
+ return Vg(e, o, r), Ei.set(e, { epoch: so, snapshot: r }), r;
18397
18413
  }
18398
- function Ng(e, t) {
18414
+ function Wg(e, t) {
18399
18415
  return e && e.session && e.persist ? e : e && (e.styleMap || e.styleCache || e.nodeMap) ? { session: e, persist: { snapshotKeyCache: no, defaultStyle: O.defaultStyle, baseStyle: O.baseStyle, image: O.image, resource: O.resource, background: O.background, font: O.font }, options: t || {} } : { session: O.session, persist: { snapshotKeyCache: no, defaultStyle: O.defaultStyle, baseStyle: O.baseStyle, image: O.image, resource: O.resource, background: O.background, font: O.font }, options: e || t || {} };
18400
18416
  }
18401
18417
  async function nt(e, t, a, i) {
18402
18418
  var g, w, u;
18403
18419
  if (e.tagName === "STYLE")
18404
18420
  return;
18405
- let o = Ng(a, i), r = o.options && o.options.cache || "auto";
18406
- if (r !== "disabled" && Ig(document.documentElement), r === "disabled" && !o.session.__bumpedForDisabled && (Ba(), no.clear(), o.session.__bumpedForDisabled = !0), yo.has((g = e.tagName) == null ? void 0 : g.toLowerCase())) {
18421
+ let o = Wg(a, i), r = o.options && o.options.cache || "auto";
18422
+ if (r !== "disabled" && Ag(document.documentElement), r === "disabled" && !o.session.__bumpedForDisabled && (Ba(), no.clear(), o.session.__bumpedForDisabled = !0), yo.has((g = e.tagName) == null ? void 0 : g.toLowerCase())) {
18407
18423
  let p = (w = e.getAttribute) == null ? void 0 : w.call(e, "style");
18408
18424
  p && t.setAttribute("style", p);
18409
18425
  }
18410
18426
  let { session: l, persist: c } = o;
18411
18427
  l.styleCache.has(e) || l.styleCache.set(e, getComputedStyle(e));
18412
- let s = l.styleCache.get(e), m = Gg(e, s, o.options), d = Fg(m), h = c.snapshotKeyCache.get(d);
18428
+ let s = l.styleCache.get(e), m = Ng(e, s, o.options), d = Gg(m), h = c.snapshotKeyCache.get(d);
18413
18429
  if (!h) {
18414
18430
  let p = ((u = e.tagName) == null ? void 0 : u.toLowerCase()) || "div";
18415
18431
  h = io(m, p), c.snapshotKeyCache.set(d, h);
18416
18432
  }
18417
18433
  l.styleMap.set(t, h);
18418
18434
  }
18419
- function Wg(e) {
18435
+ function Eg(e) {
18420
18436
  return e instanceof HTMLImageElement || e instanceof HTMLCanvasElement || e instanceof HTMLVideoElement || e instanceof HTMLIFrameElement || e instanceof SVGElement || e instanceof HTMLObjectElement || e instanceof HTMLEmbedElement;
18421
18437
  }
18422
- function Eg(e) {
18438
+ function Bg(e) {
18423
18439
  return e.backgroundImage && e.backgroundImage !== "none" || e.backgroundColor && e.backgroundColor !== "rgba(0, 0, 0, 0)" && e.backgroundColor !== "transparent" || (parseFloat(e.borderTopWidth) || 0) > 0 || (parseFloat(e.borderBottomWidth) || 0) > 0 || (parseFloat(e.paddingTop) || 0) > 0 || (parseFloat(e.paddingBottom) || 0) > 0 ? !0 : (e.overflowBlock || e.overflowY || "visible") !== "visible";
18424
18440
  }
18425
- function Bg(e) {
18441
+ function Zg(e) {
18426
18442
  let t = e.parentElement;
18427
18443
  if (!t)
18428
18444
  return !1;
18429
18445
  let a = getComputedStyle(t).display || "";
18430
18446
  return a.includes("flex") || a.includes("grid");
18431
18447
  }
18432
- function Zg(e, t) {
18448
+ function Og(e, t) {
18433
18449
  if (e.textContent && /\S/.test(e.textContent))
18434
18450
  return !0;
18435
18451
  let a = e.firstElementChild, i = e.lastElementChild;
@@ -18441,26 +18457,26 @@ function Zg(e, t) {
18441
18457
  let r = parseFloat(t.paddingTop) || 0, l = parseFloat(t.paddingBottom) || 0;
18442
18458
  return o > r + l;
18443
18459
  }
18444
- function Og(e, t, a) {
18460
+ function Vg(e, t, a) {
18445
18461
  if (e instanceof HTMLElement && e.style && e.style.height)
18446
18462
  return;
18447
18463
  let i = e.tagName && e.tagName.toLowerCase();
18448
18464
  if (!i || i !== "div" && i !== "section" && i !== "article" && i !== "main" && i !== "aside" && i !== "header" && i !== "footer" && i !== "nav" && i !== "ol" && i !== "ul" && i !== "li")
18449
18465
  return;
18450
18466
  let o = t.display || "";
18451
- if (o.includes("flex") || o.includes("grid") || Wg(e))
18467
+ if (o.includes("flex") || o.includes("grid") || Eg(e))
18452
18468
  return;
18453
18469
  let r = t.position;
18454
- if (r === "absolute" || r === "fixed" || r === "sticky" || t.transform !== "none" || Eg(t) || Bg(e))
18470
+ if (r === "absolute" || r === "fixed" || r === "sticky" || t.transform !== "none" || Bg(t) || Zg(e))
18455
18471
  return;
18456
18472
  let l = t.overflowX || t.overflow || "visible", c = t.overflowY || t.overflow || "visible";
18457
18473
  if (l !== "visible" || c !== "visible")
18458
18474
  return;
18459
18475
  let s = t.clip;
18460
- s && s !== "auto" && s !== "rect(auto, auto, auto, auto)" || t.visibility === "hidden" || t.opacity === "0" || Zg(e, t) && (delete a.height, delete a["block-size"]);
18476
+ s && s !== "auto" && s !== "rect(auto, auto, auto, auto)" || t.visibility === "hidden" || t.opacity === "0" || Og(e, t) && (delete a.height, delete a["block-size"]);
18461
18477
  }
18462
18478
  var pr = ["fill", "stroke", "color", "background-color", "stop-color"], Oi = /* @__PURE__ */ new Map();
18463
- function Vg(e, t) {
18479
+ function jg(e, t) {
18464
18480
  let a = t + "::" + e.toLowerCase(), i = Oi.get(a);
18465
18481
  if (i)
18466
18482
  return i;
@@ -18471,7 +18487,7 @@ function Vg(e, t) {
18471
18487
  s[m] = c.getPropertyValue(m) || "";
18472
18488
  return l.remove(), Oi.set(a, s), s;
18473
18489
  }
18474
- function jg(e, t) {
18490
+ function Xg(e, t) {
18475
18491
  var r, l, c;
18476
18492
  if (!(e instanceof Element) || !(t instanceof Element))
18477
18493
  return;
@@ -18530,7 +18546,7 @@ function jg(e, t) {
18530
18546
  }
18531
18547
  if (!o)
18532
18548
  return;
18533
- let s = e.namespaceURI || "html", m = Vg(e.tagName, s);
18549
+ let s = e.namespaceURI || "html", m = jg(e.tagName, s);
18534
18550
  for (let d of pr) {
18535
18551
  let h = o.getPropertyValue(d) || "", g = m[d] || "";
18536
18552
  if (h && h !== g)
@@ -18551,27 +18567,27 @@ function ao(e, t, a) {
18551
18567
  r();
18552
18568
  })));
18553
18569
  }
18554
- function Xg(e) {
18570
+ function Hg(e) {
18555
18571
  return e = e.trim(), !e || /:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(e) ? e : `${e}:not([data-sd-slotted])`;
18556
18572
  }
18557
- function Hg(e, t, a = !0) {
18573
+ function Yg(e, t, a = !0) {
18558
18574
  return e.split(",").map((i) => i.trim()).filter(Boolean).map((i) => {
18559
18575
  if (i.startsWith(":where(") || i.startsWith("@"))
18560
18576
  return i;
18561
- let o = a ? Xg(i) : i;
18577
+ let o = a ? Hg(i) : i;
18562
18578
  return `:where(${t} ${o})`;
18563
18579
  }).join(", ");
18564
18580
  }
18565
- function Yg(e, t) {
18581
+ function Ug(e, t) {
18566
18582
  return e ? (e = e.replace(/:host\(([^)]+)\)/g, (a, i) => `:where(${t}:is(${i.trim()}))`), e = e.replace(/:host\b/g, `:where(${t})`), e = e.replace(/:host-context\(([^)]+)\)/g, (a, i) => `:where(:where(${i.trim()}) ${t})`), e = e.replace(/::slotted\(([^)]+)\)/g, (a, i) => `:where(${t} ${i.trim()})`), e = e.replace(/(^|})(\s*)([^@}{]+){/g, (a, i, o, r) => {
18567
- let l = Hg(r, t, !0);
18583
+ let l = Yg(r, t, !0);
18568
18584
  return `${i}${o}${l}{`;
18569
18585
  }), e) : "";
18570
18586
  }
18571
- function Ug(e) {
18587
+ function $g(e) {
18572
18588
  return e.shadowScopeSeq = (e.shadowScopeSeq || 0) + 1, `s${e.shadowScopeSeq}`;
18573
18589
  }
18574
- function $g(e) {
18590
+ function Jg(e) {
18575
18591
  let t = "";
18576
18592
  try {
18577
18593
  e.querySelectorAll("style").forEach((i) => {
@@ -18591,13 +18607,13 @@ function $g(e) {
18591
18607
  }
18592
18608
  return t;
18593
18609
  }
18594
- function Jg(e, t, a) {
18610
+ function Kg(e, t, a) {
18595
18611
  if (!t)
18596
18612
  return;
18597
18613
  let i = document.createElement("style");
18598
18614
  i.setAttribute("data-sd", a), i.textContent = t, e.insertBefore(i, e.firstChild || null);
18599
18615
  }
18600
- function Kg(e, t) {
18616
+ function qg(e, t) {
18601
18617
  try {
18602
18618
  let a = e.currentSrc || e.src || "";
18603
18619
  if (!a)
@@ -18606,7 +18622,7 @@ function Kg(e, t) {
18606
18622
  } catch {
18607
18623
  }
18608
18624
  }
18609
- function qg(e) {
18625
+ function Qg(e) {
18610
18626
  let t = /* @__PURE__ */ new Set();
18611
18627
  if (!e)
18612
18628
  return t;
@@ -18615,7 +18631,7 @@ function qg(e) {
18615
18631
  t.add(i[1]);
18616
18632
  return t;
18617
18633
  }
18618
- function Qg(e, t) {
18634
+ function e0(e, t) {
18619
18635
  try {
18620
18636
  let a = getComputedStyle(e).getPropertyValue(t).trim();
18621
18637
  if (a)
@@ -18630,19 +18646,19 @@ function Qg(e, t) {
18630
18646
  }
18631
18647
  return "";
18632
18648
  }
18633
- function e0(e, t, a) {
18649
+ function t0(e, t, a) {
18634
18650
  let i = [];
18635
18651
  for (let o of t) {
18636
- let r = Qg(e, o);
18652
+ let r = e0(e, o);
18637
18653
  r && i.push(`${o}: ${r};`);
18638
18654
  }
18639
18655
  return i.length ? `${a}{${i.join("")}}
18640
18656
  ` : "";
18641
18657
  }
18642
- function t0(e) {
18658
+ function a0(e) {
18643
18659
  e && (e.nodeType === Node.ELEMENT_NODE && e.setAttribute("data-sd-slotted", ""), e.querySelectorAll && e.querySelectorAll("*").forEach((t) => t.setAttribute("data-sd-slotted", "")));
18644
18660
  }
18645
- async function a0(e, t = 3) {
18661
+ async function o0(e, t = 3) {
18646
18662
  let a = () => {
18647
18663
  var r;
18648
18664
  try {
@@ -18655,7 +18671,7 @@ async function a0(e, t = 3) {
18655
18671
  await new Promise((r) => setTimeout(r, 0)), i = a(), o++;
18656
18672
  return i && (i.body || i.documentElement) ? i : null;
18657
18673
  }
18658
- function o0(e) {
18674
+ function i0(e) {
18659
18675
  let t = e.getBoundingClientRect(), a = 0, i = 0, o = 0, r = 0;
18660
18676
  try {
18661
18677
  let s = getComputedStyle(e);
@@ -18665,7 +18681,7 @@ function o0(e) {
18665
18681
  let l = Math.max(0, Math.round(t.width - (a + i))), c = Math.max(0, Math.round(t.height - (o + r)));
18666
18682
  return { contentWidth: l, contentHeight: c, rect: t };
18667
18683
  }
18668
- function i0(e, t, a) {
18684
+ function r0(e, t, a) {
18669
18685
  let i = e.createElement("style");
18670
18686
  return i.setAttribute("data-sd-iframe-pin", ""), i.textContent = `html, body {margin: 0 !important;padding: 0 !important;width: ${t}px !important;height: ${a}px !important;min-width: ${t}px !important;min-height: ${a}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}`, (e.head || e.documentElement).appendChild(i), () => {
18671
18687
  try {
@@ -18674,14 +18690,14 @@ function i0(e, t, a) {
18674
18690
  }
18675
18691
  };
18676
18692
  }
18677
- async function r0(e, t, a) {
18678
- let i = await a0(e, 3);
18693
+ async function l0(e, t, a) {
18694
+ let i = await o0(e, 3);
18679
18695
  if (!i)
18680
18696
  throw new Error("iframe document not accessible/ready");
18681
- let { contentWidth: o, contentHeight: r, rect: l } = o0(e), c = a == null ? void 0 : a.snap;
18697
+ let { contentWidth: o, contentHeight: r, rect: l } = i0(e), c = a == null ? void 0 : a.snap;
18682
18698
  if (!c || typeof c.toPng != "function")
18683
18699
  throw new Error("snapdom.toPng not available in iframe or window");
18684
- let s = { ...a, scale: 1 }, m = i0(i, o, r), d;
18700
+ let s = { ...a, scale: 1 }, m = r0(i, o, r), d;
18685
18701
  try {
18686
18702
  d = await c.toPng(i.documentElement, s);
18687
18703
  } finally {
@@ -18713,11 +18729,11 @@ async function Za(e) {
18713
18729
  throw Wa.delete(e), i;
18714
18730
  }
18715
18731
  }
18716
- var l0 = /\bblob:[^)"'\s]+/g;
18732
+ var n0 = /\bblob:[^)"'\s]+/g;
18717
18733
  async function Vi(e) {
18718
18734
  if (!e || e.indexOf("blob:") === -1)
18719
18735
  return e;
18720
- let t = Array.from(new Set(e.match(l0) || []));
18736
+ let t = Array.from(new Set(e.match(n0) || []));
18721
18737
  if (t.length === 0)
18722
18738
  return e;
18723
18739
  let a = e;
@@ -18732,16 +18748,16 @@ async function Vi(e) {
18732
18748
  function Ha(e) {
18733
18749
  return typeof e == "string" && e.startsWith("blob:");
18734
18750
  }
18735
- function n0(e) {
18751
+ function s0(e) {
18736
18752
  return (e || "").split(",").map((t) => t.trim()).filter(Boolean).map((t) => {
18737
18753
  let a = t.match(/^(\S+)(\s+.+)?$/);
18738
18754
  return a ? { url: a[1], desc: a[2] || "" } : null;
18739
18755
  }).filter(Boolean);
18740
18756
  }
18741
- function s0(e) {
18757
+ function c0(e) {
18742
18758
  return e.map((t) => t.desc ? `${t.url} ${t.desc.trim()}` : t.url).join(", ");
18743
18759
  }
18744
- async function c0(e) {
18760
+ async function m0(e) {
18745
18761
  var l, c;
18746
18762
  if (!e)
18747
18763
  return;
@@ -18755,14 +18771,14 @@ async function c0(e) {
18755
18771
  }
18756
18772
  let d = s.getAttribute("srcset");
18757
18773
  if (d && d.includes("blob:")) {
18758
- let h = n0(d), g = !1;
18774
+ let h = s0(d), g = !1;
18759
18775
  for (let w of h)
18760
18776
  if (Ha(w.url))
18761
18777
  try {
18762
18778
  w.url = await Za(w.url), g = !0;
18763
18779
  } catch {
18764
18780
  }
18765
- g && s.setAttribute("srcset", s0(h));
18781
+ g && s.setAttribute("srcset", c0(h));
18766
18782
  }
18767
18783
  } catch {
18768
18784
  }
@@ -18811,7 +18827,7 @@ async function $a(e, t, a) {
18811
18827
  let i = /* @__PURE__ */ new Set(), o = null, r = null;
18812
18828
  if (e.nodeType === Node.ELEMENT_NODE) {
18813
18829
  let p = (e.localName || e.tagName || "").toLowerCase();
18814
- if (e.id === "snapdom-sandbox" || e.hasAttribute("data-snapdom-sandbox") || Uu.has(p))
18830
+ if (e.id === "snapdom-sandbox" || e.hasAttribute("data-snapdom-sandbox") || $u.has(p))
18815
18831
  return null;
18816
18832
  }
18817
18833
  if (e.nodeType === Node.TEXT_NODE || e.nodeType !== Node.ELEMENT_NODE)
@@ -18857,7 +18873,7 @@ async function $a(e, t, a) {
18857
18873
  }
18858
18874
  if (p)
18859
18875
  try {
18860
- return await r0(e, t, a);
18876
+ return await l0(e, t, a);
18861
18877
  } catch (f) {
18862
18878
  console.warn("[SnapDOM] iframe rasterization failed, fallback:", f);
18863
18879
  }
@@ -18912,8 +18928,8 @@ async function $a(e, t, a) {
18912
18928
  }
18913
18929
  let l;
18914
18930
  try {
18915
- if (l = e.cloneNode(!1), jg(e, l), t.nodeMap.set(l, e), e.tagName === "IMG") {
18916
- Kg(e, l);
18931
+ if (l = e.cloneNode(!1), Xg(e, l), t.nodeMap.set(l, e), e.tagName === "IMG") {
18932
+ qg(e, l);
18917
18933
  try {
18918
18934
  let p = e.getBoundingClientRect(), f = Math.round(p.width || 0), L = Math.round(p.height || 0);
18919
18935
  if (!f || !L) {
@@ -18963,20 +18979,20 @@ async function $a(e, t, a) {
18963
18979
  }
18964
18980
  } catch {
18965
18981
  }
18966
- let f = Ug(t), L = `[data-sd="${f}"]`;
18982
+ let f = $g(t), L = `[data-sd="${f}"]`;
18967
18983
  try {
18968
18984
  l.setAttribute("data-sd", f);
18969
18985
  } catch {
18970
18986
  }
18971
- let P = $g(e.shadowRoot), k = Yg(P, L), v = qg(P), T = e0(e, v, L);
18972
- Jg(l, T + k, f);
18987
+ let P = Jg(e.shadowRoot), k = Ug(P, L), v = Qg(P), T = t0(e, v, L);
18988
+ Kg(l, T + k, f);
18973
18989
  let C = document.createDocumentFragment(), S = await ao(Array.from(e.shadowRoot.childNodes), p, a.fast);
18974
18990
  C.append(...S.filter((D) => !!D)), l.appendChild(C);
18975
18991
  }
18976
18992
  if (e.tagName === "SLOT") {
18977
18993
  let p = function(v, T) {
18978
18994
  $a(v, t, a).then((C) => {
18979
- C && t0(C), T(C || null);
18995
+ C && a0(C), T(C || null);
18980
18996
  }).catch(() => {
18981
18997
  T(null);
18982
18998
  });
@@ -19000,10 +19016,10 @@ async function $a(e, t, a) {
19000
19016
  }
19001
19017
  return r !== null && l instanceof HTMLTextAreaElement && (l.textContent = r), l;
19002
19018
  }
19003
- function m0(e) {
19019
+ function d0(e) {
19004
19020
  return /\bcounter\s*\(|\bcounters\s*\(/.test(e || "");
19005
19021
  }
19006
- function d0(e) {
19022
+ function h0(e) {
19007
19023
  return (e || "").replace(/"([^"]*)"/g, "$1");
19008
19024
  }
19009
19025
  function ji(e, t = !1) {
@@ -19037,7 +19053,7 @@ function Hi(e, t) {
19037
19053
  return String(Math.max(0, e));
19038
19054
  }
19039
19055
  }
19040
- function h0(e) {
19056
+ function p0(e) {
19041
19057
  let t = () => {
19042
19058
  var g;
19043
19059
  return ((g = O == null ? void 0 : O.session) == null ? void 0 : g.__counterEpoch) ?? 0;
@@ -19131,7 +19147,7 @@ function h0(e) {
19131
19147
  return u ? u.slice() : [];
19132
19148
  } };
19133
19149
  }
19134
- function p0(e, t, a) {
19150
+ function u0(e, t, a) {
19135
19151
  if (!e || e === "none")
19136
19152
  return e;
19137
19153
  try {
@@ -19146,13 +19162,13 @@ function p0(e, t, a) {
19146
19162
  return p.length ? p.map((f) => Hi(f, u)).join(w) : "";
19147
19163
  }
19148
19164
  });
19149
- return d0(o);
19165
+ return h0(o);
19150
19166
  } catch {
19151
19167
  return "- ";
19152
19168
  }
19153
19169
  }
19154
19170
  var rt = /* @__PURE__ */ new WeakMap(), Yi = 300;
19155
- function u0(e, t) {
19171
+ function g0(e, t) {
19156
19172
  let a = ur(e);
19157
19173
  return t ? (t.__pseudoPreflightFp !== a && (t.__pseudoPreflight = $i(e), t.__pseudoPreflightFp = a), !!t.__pseudoPreflight) : $i(e);
19158
19174
  }
@@ -19239,16 +19255,16 @@ function $i(e = document) {
19239
19255
  return e.querySelector('[style*="counter("], [style*="counters("]') ? (rt.set(e, { fingerprint: t, result: !0 }), !0) : (rt.set(e, { fingerprint: t, result: !1 }), !1);
19240
19256
  }
19241
19257
  var st = /* @__PURE__ */ new WeakMap(), Ji = -1;
19242
- function g0(e) {
19258
+ function f0(e) {
19243
19259
  return (e || "").replace(/"([^"]*)"/g, "$1");
19244
19260
  }
19245
- function f0(e) {
19261
+ function y0(e) {
19246
19262
  if (!e)
19247
19263
  return "";
19248
19264
  let t = [], a = /"([^"]*)"/g, i;
19249
19265
  for (; i = a.exec(e); )
19250
19266
  t.push(i[1]);
19251
- return t.length ? t.join("") : g0(e);
19267
+ return t.length ? t.join("") : f0(e);
19252
19268
  }
19253
19269
  function mo(e, t) {
19254
19270
  let a = e.parentElement, i = a ? st.get(a) : null;
@@ -19304,7 +19320,7 @@ function ho(e, t, a) {
19304
19320
  return c(m);
19305
19321
  }, __incs: l };
19306
19322
  }
19307
- function y0(e, t, a) {
19323
+ function b0(e, t, a) {
19308
19324
  let i;
19309
19325
  try {
19310
19326
  i = getComputedStyle(e, t);
@@ -19313,20 +19329,20 @@ function y0(e, t, a) {
19313
19329
  let o = i == null ? void 0 : i.content;
19314
19330
  if (!o || o === "none" || o === "normal")
19315
19331
  return { text: "", incs: [] };
19316
- let r = mo(e, a), l = ho(e, i, r), c = m0(o) ? p0(o, e, l) : o;
19317
- return { text: f0(c), incs: l.__incs || [] };
19332
+ let r = mo(e, a), l = ho(e, i, r), c = d0(o) ? u0(o, e, l) : o;
19333
+ return { text: y0(c), incs: l.__incs || [] };
19318
19334
  }
19319
19335
  async function gr(e, t, a, i) {
19320
19336
  var m, d, h;
19321
19337
  if (!(e instanceof Element) || !(t instanceof Element))
19322
19338
  return;
19323
19339
  let o = e.ownerDocument || document;
19324
- if (!u0(o, a))
19340
+ if (!g0(o, a))
19325
19341
  return;
19326
19342
  let r = ((m = O == null ? void 0 : O.session) == null ? void 0 : m.__counterEpoch) ?? 0;
19327
19343
  if (Ji !== r && (st = /* @__PURE__ */ new WeakMap(), a && (a.__counterCtx = null), Ji = r), !a.__counterCtx)
19328
19344
  try {
19329
- a.__counterCtx = h0(e.ownerDocument || document);
19345
+ a.__counterCtx = p0(e.ownerDocument || document);
19330
19346
  } catch {
19331
19347
  }
19332
19348
  let l = a.__counterCtx;
@@ -19356,7 +19372,7 @@ async function gr(e, t, a, i) {
19356
19372
  t.replaceChild(me, j), t.insertBefore(fe, me);
19357
19373
  continue;
19358
19374
  }
19359
- let u = w.content ?? "", p = u === "" || u === "none" || u === "normal", { text: f, incs: L } = y0(e, g, l), P = w.backgroundImage, k = w.backgroundColor, v = w.fontFamily, T = parseInt(w.fontSize) || 32, C = parseInt(w.fontWeight) || !1, S = w.color || "#000", D = w.borderStyle, I = parseFloat(w.borderWidth), W = w.transform, V = Je(v), J = !p && f !== "", te = P && P !== "none", ae = k && k !== "transparent" && k !== "rgba(0, 0, 0, 0)", re = D && D !== "none" && I > 0, pe = W && W !== "none";
19375
+ let u = w.content ?? "", p = u === "" || u === "none" || u === "normal", { text: f, incs: L } = b0(e, g, l), P = w.backgroundImage, k = w.backgroundColor, v = w.fontFamily, T = parseInt(w.fontSize) || 32, C = parseInt(w.fontWeight) || !1, S = w.color || "#000", D = w.borderStyle, I = parseFloat(w.borderWidth), W = w.transform, V = Je(v), J = !p && f !== "", te = P && P !== "none", ae = k && k !== "transparent" && k !== "rgba(0, 0, 0, 0)", re = D && D !== "none" && I > 0, pe = W && W !== "none";
19360
19376
  if (!(J || te || ae || re || pe)) {
19361
19377
  if (L && L.length && e.parentElement) {
19362
19378
  let H = st.get(e.parentElement) || /* @__PURE__ */ new Map();
@@ -19374,7 +19390,7 @@ async function gr(e, t, a, i) {
19374
19390
  F.dataset.snapdomPseudo = g, F.style.pointerEvents = "none";
19375
19391
  let $ = Fi(w), K = io($, "span");
19376
19392
  if (a.styleMap.set(F, K), V && f && f.length === 1) {
19377
- let { dataUrl: H, width: j, height: Q } = await dg(f, v, C, T, S), G = document.createElement("img");
19393
+ let { dataUrl: H, width: j, height: Q } = await hg(f, v, C, T, S), G = document.createElement("img");
19378
19394
  G.src = H, G.style = `height:${T}px;width:${j / Q * T}px;object-fit:contain;`, F.appendChild(G), t.dataset.snapdomHasIcon = "true";
19379
19395
  } else if (f && f.startsWith("url(")) {
19380
19396
  let H = fo(f);
@@ -19421,7 +19437,7 @@ async function gr(e, t, a, i) {
19421
19437
  for (let g = 0; g < Math.min(c.length, s.length); g++)
19422
19438
  await gr(c[g], s[g], a, i);
19423
19439
  }
19424
- function b0(e, t) {
19440
+ function w0(e, t) {
19425
19441
  var v, T;
19426
19442
  if (!e || !(e instanceof Element))
19427
19443
  return;
@@ -19521,7 +19537,7 @@ function b0(e, t) {
19521
19537
  }
19522
19538
  }
19523
19539
  }
19524
- function w0(e, t) {
19540
+ function x0(e, t) {
19525
19541
  var c;
19526
19542
  if (!e || !t)
19527
19543
  return;
@@ -19537,7 +19553,7 @@ function w0(e, t) {
19537
19553
  let h = Ki(m.top), g = Ki(m.bottom);
19538
19554
  if (h == null && g == null)
19539
19555
  continue;
19540
- let w = x0(s, e), u = v0(t, w, r);
19556
+ let w = v0(s, e), u = k0(t, w, r);
19541
19557
  if (!u)
19542
19558
  continue;
19543
19559
  let p = s.getBoundingClientRect(), f = p.width, L = p.height, P = p.left - i.left;
@@ -19556,7 +19572,7 @@ function Ki(e) {
19556
19572
  let t = Number.parseFloat(e);
19557
19573
  return Number.isFinite(t) ? t : null;
19558
19574
  }
19559
- function x0(e, t) {
19575
+ function v0(e, t) {
19560
19576
  let a = [];
19561
19577
  for (let i = e; i && i !== t; ) {
19562
19578
  let o = i.parentElement;
@@ -19566,14 +19582,14 @@ function x0(e, t) {
19566
19582
  }
19567
19583
  return a.reverse();
19568
19584
  }
19569
- function v0(e, t, a) {
19585
+ function k0(e, t, a) {
19570
19586
  let i = e;
19571
19587
  for (let o = 0; o < t.length; o++)
19572
- if (i = k0(i, a)[t[o]], !i)
19588
+ if (i = _0(i, a)[t[o]], !i)
19573
19589
  return null;
19574
19590
  return i instanceof HTMLElement ? i : null;
19575
19591
  }
19576
- function k0(e, t) {
19592
+ function _0(e, t) {
19577
19593
  let a = [], i = e.children;
19578
19594
  for (let o = 0; o < i.length; o++) {
19579
19595
  let r = i[o];
@@ -19581,16 +19597,16 @@ function k0(e, t) {
19581
19597
  }
19582
19598
  return a;
19583
19599
  }
19584
- function _0(e) {
19600
+ function L0(e) {
19585
19601
  let t = getComputedStyle(e), a = t.outlineStyle, i = t.outlineWidth, o = t.borderStyle, r = t.borderWidth, l = a !== "none" && parseFloat(i) > 0, c = o === "none" || parseFloat(r) === 0;
19586
19602
  l && c && (e.style.border = `${i} solid transparent`);
19587
19603
  }
19588
- async function L0(e, t = {}) {
19604
+ async function z0(e, t = {}) {
19589
19605
  var s, m;
19590
19606
  let a = { styleMap: O.session.styleMap, styleCache: O.session.styleCache, nodeMap: O.session.nodeMap }, i, o = "", r = "";
19591
- _0(e);
19607
+ L0(e);
19592
19608
  try {
19593
- b0(e);
19609
+ w0(e);
19594
19610
  } catch (d) {
19595
19611
  console.warn("inlineExternal defs or symbol failed:", d);
19596
19612
  }
@@ -19604,14 +19620,14 @@ async function L0(e, t = {}) {
19604
19620
  } catch (d) {
19605
19621
  console.warn("inlinePseudoElements failed:", d);
19606
19622
  }
19607
- await c0(i);
19623
+ await m0(i);
19608
19624
  try {
19609
19625
  let d = i.querySelectorAll("style[data-sd]");
19610
19626
  for (let h of d)
19611
19627
  r += h.textContent || "", h.remove();
19612
19628
  } catch {
19613
19629
  }
19614
- let l = tg(a.styleMap);
19630
+ let l = ag(a.styleMap);
19615
19631
  o = Array.from(l.entries()).map(([d, h]) => `.${h}{${d}}`).join(""), o = r + o;
19616
19632
  for (let [d, h] of a.styleMap.entries()) {
19617
19633
  if (d.tagName === "STYLE")
@@ -19636,22 +19652,22 @@ async function L0(e, t = {}) {
19636
19652
  }
19637
19653
  }
19638
19654
  let c = i instanceof HTMLElement && i.firstElementChild instanceof HTMLElement ? i.firstElementChild : i;
19639
- if (w0(e, c), e === a.nodeMap.get(i)) {
19655
+ if (x0(e, c), e === a.nodeMap.get(i)) {
19640
19656
  let d = a.styleCache.get(e) || window.getComputedStyle(e);
19641
19657
  a.styleCache.set(e, d);
19642
- let h = Zu(d.transform);
19658
+ let h = Ou(d.transform);
19643
19659
  i.style.margin = "0", i.style.top = "auto", i.style.left = "auto", i.style.right = "auto", i.style.bottom = "auto", i.style.animation = "none", i.style.transition = "none", i.style.willChange = "auto", i.style.float = "none", i.style.clear = "none", i.style.transform = h || "";
19644
19660
  }
19645
19661
  for (let [d, h] of a.nodeMap.entries())
19646
19662
  h.tagName === "PRE" && (d.style.marginTop = "0", d.style.marginBlockStart = "0");
19647
19663
  return { clone: i, classCSS: o, styleCache: a.styleCache };
19648
19664
  }
19649
- function z0(e) {
19665
+ function C0(e) {
19650
19666
  var m, d, h, g;
19651
19667
  let t = parseInt(((m = e.dataset) == null ? void 0 : m.snapdomWidth) || "", 10) || 0, a = parseInt(((d = e.dataset) == null ? void 0 : d.snapdomHeight) || "", 10) || 0, i = parseInt(e.getAttribute("width") || "", 10) || 0, o = parseInt(e.getAttribute("height") || "", 10) || 0, r = parseFloat(((h = e.style) == null ? void 0 : h.width) || "") || 0, l = parseFloat(((g = e.style) == null ? void 0 : g.height) || "") || 0, c = t || r || i || e.width || e.naturalWidth || 100, s = a || l || o || e.height || e.naturalHeight || 100;
19652
19668
  return { width: c, height: s };
19653
19669
  }
19654
- async function C0(e, t = {}) {
19670
+ async function M0(e, t = {}) {
19655
19671
  let a = Array.from(e.querySelectorAll("img")), i = async (o) => {
19656
19672
  if (!o.getAttribute("src")) {
19657
19673
  let d = o.currentSrc || o.src || "";
@@ -19666,7 +19682,7 @@ async function C0(e, t = {}) {
19666
19682
  o.src = l.data, o.width || (o.width = o.naturalWidth || 100), o.height || (o.height = o.naturalHeight || 100);
19667
19683
  return;
19668
19684
  }
19669
- let { width: c, height: s } = z0(o), { fallbackURL: m } = t || {};
19685
+ let { width: c, height: s } = C0(o), { fallbackURL: m } = t || {};
19670
19686
  if (m)
19671
19687
  try {
19672
19688
  let d = typeof m == "function" ? await m({ width: c, height: s, src: r, element: o }) : m;
@@ -19690,18 +19706,18 @@ async function C0(e, t = {}) {
19690
19706
  await Promise.allSettled(r);
19691
19707
  }
19692
19708
  }
19693
- function M0(e) {
19709
+ function P0(e) {
19694
19710
  if (!e)
19695
19711
  return () => {
19696
19712
  };
19697
- let t = P0(e);
19713
+ let t = S0(e);
19698
19714
  if (t <= 0)
19699
19715
  return () => {
19700
19716
  };
19701
- if (!R0(e))
19717
+ if (!D0(e))
19702
19718
  return () => {
19703
19719
  };
19704
- let a = getComputedStyle(e), i = Math.round(S0(a) * t + T0(a)), o = e.textContent ?? "", r = o;
19720
+ let a = getComputedStyle(e), i = Math.round(T0(a) * t + R0(a)), o = e.textContent ?? "", r = o;
19705
19721
  if (e.scrollHeight <= i + 0.5)
19706
19722
  return () => {
19707
19723
  };
@@ -19714,23 +19730,23 @@ function M0(e) {
19714
19730
  e.textContent = r;
19715
19731
  };
19716
19732
  }
19717
- function P0(e) {
19733
+ function S0(e) {
19718
19734
  let t = getComputedStyle(e), a = t.getPropertyValue("-webkit-line-clamp") || t.getPropertyValue("line-clamp");
19719
19735
  a = (a || "").trim();
19720
19736
  let i = parseInt(a, 10);
19721
19737
  return Number.isFinite(i) && i > 0 ? i : 0;
19722
19738
  }
19723
- function S0(e) {
19739
+ function T0(e) {
19724
19740
  let t = (e.lineHeight || "").trim(), a = parseFloat(e.fontSize) || 16;
19725
19741
  return !t || t === "normal" ? Math.round(a * 1.2) : t.endsWith("px") ? parseFloat(t) : /^\d+(\.\d+)?$/.test(t) ? Math.round(parseFloat(t) * a) : t.endsWith("%") ? Math.round(parseFloat(t) / 100 * a) : Math.round(a * 1.2);
19726
19742
  }
19727
- function T0(e) {
19743
+ function R0(e) {
19728
19744
  return (parseFloat(e.paddingTop) || 0) + (parseFloat(e.paddingBottom) || 0);
19729
19745
  }
19730
- function R0(e) {
19746
+ function D0(e) {
19731
19747
  return e.childElementCount > 0 ? !1 : Array.from(e.childNodes).some((t) => t.nodeType === Node.TEXT_NODE);
19732
19748
  }
19733
- function D0(e, t) {
19749
+ function I0(e, t) {
19734
19750
  if (!e || !t || !t.style)
19735
19751
  return;
19736
19752
  let a = getComputedStyle(e);
@@ -19752,14 +19768,14 @@ function D0(e, t) {
19752
19768
  } catch {
19753
19769
  }
19754
19770
  }
19755
- function I0(e) {
19771
+ function A0(e) {
19756
19772
  let t = document.createTreeWalker(e, NodeFilter.SHOW_COMMENT), a = [];
19757
19773
  for (; t.nextNode(); )
19758
19774
  a.push(t.currentNode);
19759
19775
  for (let i of a)
19760
19776
  i.remove();
19761
19777
  }
19762
- function A0(e, t = {}) {
19778
+ function F0(e, t = {}) {
19763
19779
  let { stripFrameworkDirectives: a = !0 } = t, i = /* @__PURE__ */ new Set(["xml", "xlink"]), o = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT);
19764
19780
  for (; o.nextNode(); ) {
19765
19781
  let r = o.currentNode;
@@ -19783,10 +19799,10 @@ function A0(e, t = {}) {
19783
19799
  }
19784
19800
  }
19785
19801
  }
19786
- function F0(e, t = {}) {
19787
- e && (A0(e, t), I0(e));
19802
+ function G0(e, t = {}) {
19803
+ e && (F0(e, t), A0(e));
19788
19804
  }
19789
- function G0(e) {
19805
+ function N0(e) {
19790
19806
  var t;
19791
19807
  try {
19792
19808
  let a = ((t = e.getAttribute) == null ? void 0 : t.call(e, "style")) || "";
@@ -19795,11 +19811,11 @@ function G0(e) {
19795
19811
  return !1;
19796
19812
  }
19797
19813
  }
19798
- function N0(e) {
19814
+ function W0(e) {
19799
19815
  return e instanceof HTMLImageElement || e instanceof HTMLCanvasElement || e instanceof HTMLVideoElement || e instanceof HTMLIFrameElement || e instanceof SVGElement || e instanceof HTMLObjectElement || e instanceof HTMLEmbedElement;
19800
19816
  }
19801
- function W0(e, t) {
19802
- if (!(e instanceof Element) || G0(e) || N0(e))
19817
+ function E0(e, t) {
19818
+ if (!(e instanceof Element) || N0(e) || W0(e))
19803
19819
  return !1;
19804
19820
  let a = t.position;
19805
19821
  if (a === "absolute" || a === "fixed" || a === "sticky")
@@ -19807,12 +19823,12 @@ function W0(e, t) {
19807
19823
  let i = t.display || "";
19808
19824
  return !(i.includes("flex") || i.includes("grid") || i.startsWith("table") || t.transform && t.transform !== "none");
19809
19825
  }
19810
- function E0(e, t, a = /* @__PURE__ */ new Map()) {
19826
+ function B0(e, t, a = /* @__PURE__ */ new Map()) {
19811
19827
  function i(o, r) {
19812
19828
  if (!(o instanceof Element) || !(r instanceof Element))
19813
19829
  return;
19814
19830
  let l = o.childElementCount > r.childElementCount, c = a.get(o) || getComputedStyle(o);
19815
- if (a.has(o) || a.set(o, c), l && W0(o, c)) {
19831
+ if (a.has(o) || a.set(o, c), l && E0(o, c)) {
19816
19832
  r.style.height || (r.style.height = "auto"), r.style.width || (r.style.width = "auto"), r.style.removeProperty("block-size"), r.style.removeProperty("inline-size"), r.style.minHeight || (r.style.minHeight = "0"), r.style.minWidth || (r.style.minWidth = "0"), r.style.maxHeight || (r.style.maxHeight = "none"), r.style.maxWidth || (r.style.maxWidth = "none");
19817
19833
  let d = c.overflowY || c.overflowBlock || "visible", h = c.overflowX || c.overflowInline || "visible";
19818
19834
  (d !== "visible" || h !== "visible") && (r.style.overflow = "visible");
@@ -19823,11 +19839,11 @@ function E0(e, t, a = /* @__PURE__ */ new Map()) {
19823
19839
  }
19824
19840
  i(e, t);
19825
19841
  }
19826
- function B0(e) {
19842
+ function Z0(e) {
19827
19843
  let t = getComputedStyle(e);
19828
19844
  return !(t.display === "none" || t.position === "absolute" || t.position === "fixed" || t.position === "sticky" || (t.cssFloat || t.float || "none") !== "none" || t.transform && t.transform !== "none");
19829
19845
  }
19830
- function Z0(e, t) {
19846
+ function O0(e, t) {
19831
19847
  if (!(e instanceof Element))
19832
19848
  return !1;
19833
19849
  if (e.getAttribute("data-capture") === "exclude" && (t == null ? void 0 : t.excludeMode) === "remove")
@@ -19841,10 +19857,10 @@ function Z0(e, t) {
19841
19857
  }
19842
19858
  return !1;
19843
19859
  }
19844
- function O0(e, t) {
19860
+ function V0(e, t) {
19845
19861
  let a = getComputedStyle(e), i = e.getBoundingClientRect(), o = 1 / 0, r = -1 / 0, l = !1, c = Array.from(e.children);
19846
19862
  for (let w of c) {
19847
- if (Z0(w, t) || !B0(w))
19863
+ if (O0(w, t) || !Z0(w))
19848
19864
  continue;
19849
19865
  let u = w.getBoundingClientRect(), p = u.top - i.top, f = u.bottom - i.top;
19850
19866
  f <= p || (p < o && (o = p), f > r && (r = f), l = !0);
@@ -19853,7 +19869,7 @@ function O0(e, t) {
19853
19869
  return m + d + h + g + s;
19854
19870
  }
19855
19871
  var ce = (e, t = 3) => Number.isFinite(e) ? Math.round(e * 10 ** t) / 10 ** t : e;
19856
- function V0(e) {
19872
+ function j0(e) {
19857
19873
  var c;
19858
19874
  let t = e.boxShadow || "";
19859
19875
  if (!t || t === "none")
@@ -19868,17 +19884,17 @@ function V0(e) {
19868
19884
  }
19869
19885
  return { top: Math.ceil(i), right: Math.ceil(o), bottom: Math.ceil(r), left: Math.ceil(l) };
19870
19886
  }
19871
- function j0(e) {
19887
+ function X0(e) {
19872
19888
  let t = (e.filter || "").match(/blur\(\s*([0-9.]+)px\s*\)/), a = t ? Math.ceil(parseFloat(t[1]) || 0) : 0;
19873
19889
  return { top: a, right: a, bottom: a, left: a };
19874
19890
  }
19875
- function X0(e) {
19891
+ function H0(e) {
19876
19892
  if ((e.outlineStyle || "none") === "none")
19877
19893
  return { top: 0, right: 0, bottom: 0, left: 0 };
19878
19894
  let t = Math.ceil(parseFloat(e.outlineWidth || "0") || 0);
19879
19895
  return { top: t, right: t, bottom: t, left: t };
19880
19896
  }
19881
- function H0(e) {
19897
+ function Y0(e) {
19882
19898
  var s;
19883
19899
  let t = `${e.filter || ""} ${e.webkitFilter || ""}`.trim();
19884
19900
  if (!t || t === "none")
@@ -19891,7 +19907,7 @@ function H0(e) {
19891
19907
  }
19892
19908
  return { bleed: { top: ce(i), right: ce(o), bottom: ce(r), left: ce(l) }, has: c };
19893
19909
  }
19894
- function Y0(e, t) {
19910
+ function U0(e, t) {
19895
19911
  if (!e || !t || !t.style)
19896
19912
  return null;
19897
19913
  let a = getComputedStyle(e);
@@ -19943,14 +19959,14 @@ function qi(e, t, a, i, o) {
19943
19959
  L < w && (w = L), P < u && (u = P), L > p && (p = L), P > f && (f = P);
19944
19960
  return { minX: w, minY: u, maxX: p, maxY: f, width: p - w, height: f - u };
19945
19961
  }
19946
- function U0(e, t, a) {
19962
+ function $0(e, t, a) {
19947
19963
  let i = (e.transformOrigin || "0 0").trim().split(/\s+/), [o, r] = [i[0] || "0", i[1] || "0"], l = (c, s) => {
19948
19964
  let m = c.toLowerCase();
19949
19965
  return m === "left" || m === "top" ? 0 : m === "center" ? s / 2 : m === "right" || m === "bottom" ? s : m.endsWith("px") ? parseFloat(m) || 0 : m.endsWith("%") ? (parseFloat(m) || 0) * s / 100 : /^-?\d+(\.\d+)?$/.test(m) && parseFloat(m) || 0;
19950
19966
  };
19951
19967
  return { ox: l(o, t), oy: l(r, a) };
19952
19968
  }
19953
- function $0(e) {
19969
+ function J0(e) {
19954
19970
  var o, r, l, c, s, m, d, h;
19955
19971
  let t = { rotate: "0deg", scale: null, translate: null }, a = typeof e.computedStyleMap == "function" ? e.computedStyleMap() : null;
19956
19972
  if (a) {
@@ -19993,19 +20009,19 @@ function $0(e) {
19993
20009
  return t.rotate = i.rotate && i.rotate !== "none" ? i.rotate : "0deg", t.scale = i.scale && i.scale !== "none" ? i.scale : null, t.translate = i.translate && i.translate !== "none" ? i.translate : null, t;
19994
20010
  }
19995
20011
  var oo = null;
19996
- function J0() {
20012
+ function K0() {
19997
20013
  if (oo)
19998
20014
  return oo;
19999
20015
  let e = document.createElement("div");
20000
20016
  return e.id = "snapdom-measure-slot", e.setAttribute("aria-hidden", "true"), Object.assign(e.style, { position: "absolute", left: "-99999px", top: "0px", width: "0px", height: "0px", overflow: "hidden", opacity: "0", pointerEvents: "none", contain: "size layout style" }), document.documentElement.appendChild(e), oo = e, e;
20001
20017
  }
20002
- function K0(e) {
20003
- let t = J0(), a = document.createElement("div");
20018
+ function q0(e) {
20019
+ let t = K0(), a = document.createElement("div");
20004
20020
  a.style.transformOrigin = "0 0", e.baseTransform && (a.style.transform = e.baseTransform), e.rotate && (a.style.rotate = e.rotate), e.scale && (a.style.scale = e.scale), e.translate && (a.style.translate = e.translate), t.appendChild(a);
20005
20021
  let i = fr(a);
20006
20022
  return t.removeChild(a), i;
20007
20023
  }
20008
- function q0(e) {
20024
+ function Q0(e) {
20009
20025
  let t = getComputedStyle(e), a = t.transform || "none";
20010
20026
  if (a !== "none" && !/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(a))
20011
20027
  return !0;
@@ -20026,54 +20042,54 @@ async function yr(e, t) {
20026
20042
  var P;
20027
20043
  if (!e)
20028
20044
  throw new Error("Element cannot be null or undefined");
20029
- Bu(t.cache);
20045
+ Zu(t.cache);
20030
20046
  let a = t.fast, i = t.outerTransforms !== !1, o = !!t.outerShadows, r = { element: e, options: t, plugins: t.plugins }, l, c, s, m = "", d = "", h, g, w = null;
20031
20047
  await qe("beforeSnap", r), await qe("beforeClone", r);
20032
- let u = M0(r.element);
20048
+ let u = P0(r.element);
20033
20049
  try {
20034
- ({ clone: l, classCSS: c, styleCache: s } = await L0(r.element, r.options)), !i && l && (w = Y0(r.element, l)), !o && l && D0(r.element, l);
20050
+ ({ clone: l, classCSS: c, styleCache: s } = await z0(r.element, r.options)), !i && l && (w = U0(r.element, l)), !o && l && I0(r.element, l);
20035
20051
  } finally {
20036
20052
  u();
20037
20053
  }
20038
- if (r = { clone: l, classCSS: c, styleCache: s, ...r }, await qe("afterClone", r), F0(r.clone), ((P = r.options) == null ? void 0 : P.excludeMode) === "remove")
20054
+ if (r = { clone: l, classCSS: c, styleCache: s, ...r }, await qe("afterClone", r), G0(r.clone), ((P = r.options) == null ? void 0 : P.excludeMode) === "remove")
20039
20055
  try {
20040
- E0(r.element, r.clone, r.styleCache);
20056
+ B0(r.element, r.clone, r.styleCache);
20041
20057
  } catch (k) {
20042
20058
  console.warn("[snapdom] shrink pass failed:", k);
20043
20059
  }
20044
20060
  try {
20045
- await mg(r.clone, r.element);
20061
+ await dg(r.clone, r.element);
20046
20062
  } catch {
20047
20063
  }
20048
20064
  await new Promise((k) => {
20049
20065
  lt(async () => {
20050
- await C0(r.clone, r.options), k();
20066
+ await M0(r.clone, r.options), k();
20051
20067
  }, { fast: a });
20052
20068
  }), await new Promise((k) => {
20053
20069
  lt(async () => {
20054
- await Pg(r.element, r.clone, r.styleCache, r.options), k();
20070
+ await Sg(r.element, r.clone, r.styleCache, r.options), k();
20055
20071
  }, { fast: a });
20056
20072
  }), t.embedFonts && await new Promise((k) => {
20057
20073
  lt(async () => {
20058
- let v = zg(r.element), T = Cg(r.element);
20074
+ let v = Cg(r.element), T = Mg(r.element);
20059
20075
  if (Ea()) {
20060
20076
  let C = new Set(Array.from(v).map((S) => String(S).split("__")[0]).filter(Boolean));
20061
- await Mg(C, 1);
20077
+ await Pg(C, 1);
20062
20078
  }
20063
- m = await Lg({ required: v, usedCodepoints: T, preCached: !1, exclude: r.options.excludeFonts, useProxy: r.options.useProxy }), k();
20079
+ m = await zg({ required: v, usedCodepoints: T, preCached: !1, exclude: r.options.excludeFonts, useProxy: r.options.useProxy }), k();
20064
20080
  }, { fast: a });
20065
20081
  });
20066
- let p = Qu(r.clone).sort(), f = p.join(",");
20082
+ let p = eg(r.clone).sort(), f = p.join(",");
20067
20083
  O.baseStyle.has(f) ? d = O.baseStyle.get(f) : await new Promise((k) => {
20068
20084
  lt(() => {
20069
- d = eg(p), O.baseStyle.set(f, d), k();
20085
+ d = tg(p), O.baseStyle.set(f, d), k();
20070
20086
  }, { fast: a });
20071
20087
  }), r = { fontsCSS: m, baseCSS: d, ...r }, await qe("beforeRender", r), await new Promise((k) => {
20072
20088
  lt(() => {
20073
20089
  var He;
20074
20090
  let v = getComputedStyle(r.element), T = r.element.getBoundingClientRect(), C = Math.max(1, ce(r.element.offsetWidth || parseFloat(v.width) || T.width || 1)), S = Math.max(1, ce(r.element.offsetHeight || parseFloat(v.height) || T.height || 1));
20075
20091
  if (((He = r.options) == null ? void 0 : He.excludeMode) === "remove") {
20076
- let Y = O0(r.element, r.options);
20092
+ let Y = V0(r.element, r.options);
20077
20093
  Number.isFinite(Y) && Y > 0 && (S = Math.max(1, Math.min(S, ce(Y + 1))));
20078
20094
  }
20079
20095
  let D = (Y, xe = NaN) => {
@@ -20085,11 +20101,11 @@ async function yr(e, t) {
20085
20101
  if (!i && w && Number.isFinite(w.a)) {
20086
20102
  let Y = { a: w.a, b: w.b || 0, c: w.c || 0, d: w.d || 1, e: 0, f: 0 }, xe = qi(C, S, Y, 0, 0);
20087
20103
  pe = ce(xe.minX), F = ce(xe.minY), $ = ce(xe.maxX), K = ce(xe.maxY);
20088
- } else if (i && Q0(r.element)) {
20089
- let Y = v.transform && v.transform !== "none" ? v.transform : "", xe = $0(r.element), Fe = K0({ baseTransform: Y, rotate: xe.rotate || "0deg", scale: xe.scale, translate: xe.translate }), { ox: Ve, oy: je } = U0(v, C, S), ee = Fe.is2D ? Fe : new DOMMatrix(Fe.toString()), Ze = qi(C, S, ee, Ve, je);
20104
+ } else if (i && ef(r.element)) {
20105
+ let Y = v.transform && v.transform !== "none" ? v.transform : "", xe = J0(r.element), Fe = q0({ baseTransform: Y, rotate: xe.rotate || "0deg", scale: xe.scale, translate: xe.translate }), { ox: Ve, oy: je } = $0(v, C, S), ee = Fe.is2D ? Fe : new DOMMatrix(Fe.toString()), Ze = qi(C, S, ee, Ve, je);
20090
20106
  pe = ce(Ze.minX), F = ce(Ze.minY), $ = ce(Ze.maxX), K = ce(Ze.maxY);
20091
20107
  }
20092
- let oe = V0(v), H = j0(v), j = X0(v), Q = H0(v), G = o ? { top: ce(oe.top + H.top + j.top + Q.bleed.top), right: ce(oe.right + H.right + j.right + Q.bleed.right), bottom: ce(oe.bottom + H.bottom + j.bottom + Q.bleed.bottom), left: ce(oe.left + H.left + j.left + Q.bleed.left) } : { top: 0, right: 0, bottom: 0, left: 0 };
20108
+ let oe = j0(v), H = X0(v), j = H0(v), Q = Y0(v), G = o ? { top: ce(oe.top + H.top + j.top + Q.bleed.top), right: ce(oe.right + H.right + j.right + Q.bleed.right), bottom: ce(oe.bottom + H.bottom + j.bottom + Q.bleed.bottom), left: ce(oe.left + H.left + j.left + Q.bleed.left) } : { top: 0, right: 0, bottom: 0, left: 0 };
20093
20109
  pe = ce(pe - G.left), F = ce(F - G.top), $ = ce($ + G.right), K = ce(K + G.bottom);
20094
20110
  let ne = Math.max(1, ce($ - pe)), fe = Math.max(1, ce(K - F)), ke = te || ae ? ce(V / C) : 1, ze = ae || te ? ce(J / S) : 1, me = Math.max(1, ce(ne * ke)), ye = Math.max(1, ce(fe * ze)), _e = "http://www.w3.org/2000/svg", Re = Ea() ? 1 : 0, q = ce(Re + (i ? 0 : 1)), de = document.createElementNS(_e, "foreignObject"), Xe = ce(pe), Be = ce(F);
20095
20111
  de.setAttribute("x", String(ce(-(Xe - q)))), de.setAttribute("y", String(ce(-(Be - q)))), de.setAttribute("width", String(ce(C + q * 2))), de.setAttribute("height", String(ce(S + q * 2))), de.style.overflow = "visible";
@@ -20106,10 +20122,10 @@ async function yr(e, t) {
20106
20122
  let L = document.getElementById("snapdom-sandbox");
20107
20123
  return L && L.style.position === "absolute" && L.remove(), r.dataURL;
20108
20124
  }
20109
- function Q0(e) {
20110
- return q0(e);
20111
- }
20112
20125
  function ef(e) {
20126
+ return Q0(e);
20127
+ }
20128
+ function tf(e) {
20113
20129
  if (typeof e == "string") {
20114
20130
  let t = e.toLowerCase().trim();
20115
20131
  if (t === "disabled" || t === "full" || t === "auto" || t === "soft")
@@ -20117,80 +20133,80 @@ function ef(e) {
20117
20133
  }
20118
20134
  return "soft";
20119
20135
  }
20120
- function tf(e = {}) {
20136
+ function af(e = {}) {
20121
20137
  let t = e.format ?? "png";
20122
20138
  t === "jpg" && (t = "jpeg");
20123
- let a = ef(e.cache);
20139
+ let a = tf(e.cache);
20124
20140
  return { debug: e.debug ?? !1, fast: e.fast ?? !0, scale: e.scale ?? 1, exclude: e.exclude ?? [], excludeMode: e.excludeMode ?? "hide", filter: e.filter ?? null, filterMode: e.filterMode ?? "hide", placeholders: e.placeholders !== !1, embedFonts: e.embedFonts ?? !1, iconFonts: Array.isArray(e.iconFonts) ? e.iconFonts : e.iconFonts ? [e.iconFonts] : [], localFonts: Array.isArray(e.localFonts) ? e.localFonts : [], excludeFonts: e.excludeFonts ?? void 0, fallbackURL: e.fallbackURL ?? void 0, cache: a, useProxy: typeof e.useProxy == "string" ? e.useProxy : "", width: e.width ?? null, height: e.height ?? null, format: t, type: e.type ?? "svg", quality: e.quality ?? 0.92, dpr: e.dpr ?? (window.devicePixelRatio || 1), backgroundColor: e.backgroundColor ?? (["jpeg", "webp"].includes(t) ? "#ffffff" : null), filename: e.filename ?? "snapDOM", outerTransforms: e.outerTransforms ?? !0, outerShadows: e.outerShadows ?? !1 };
20125
20141
  }
20126
- function af(...e) {
20127
- return Sg(...e), Se;
20142
+ function of(...e) {
20143
+ return Tg(...e), Se;
20128
20144
  }
20129
- var Se = Object.assign(of, { plugins: af }), br = Symbol("snapdom.internal"), Ke = Symbol("snapdom.internal.silent"), po = !1;
20130
- async function of(e, t) {
20145
+ var Se = Object.assign(rf, { plugins: of }), br = Symbol("snapdom.internal"), Ke = Symbol("snapdom.internal.silent"), po = !1;
20146
+ async function rf(e, t) {
20131
20147
  if (!e)
20132
20148
  throw new Error("Element cannot be null or undefined");
20133
- let a = tf(t);
20134
- if (Dg(a, t && t.plugins), Ea() && (a.embedFonts === !0 || lf(e)))
20149
+ let a = af(t);
20150
+ if (Ig(a, t && t.plugins), Ea() && (a.embedFonts === !0 || nf(e)))
20135
20151
  for (let i = 0; i < 3; i++)
20136
20152
  try {
20137
- await rf(e, t), po = !1;
20153
+ await lf(e, t), po = !1;
20138
20154
  } catch {
20139
20155
  }
20140
- return a.iconFonts && a.iconFonts.length > 0 && og(a.iconFonts), a.snap || (a.snap = { toPng: (i, o) => Se.toPng(i, o), toSvg: (i, o) => Se.toSvg(i, o) }), Se.capture(e, a, br);
20156
+ return a.iconFonts && a.iconFonts.length > 0 && ig(a.iconFonts), a.snap || (a.snap = { toPng: (i, o) => Se.toPng(i, o), toSvg: (i, o) => Se.toSvg(i, o) }), Se.capture(e, a, br);
20141
20157
  }
20142
20158
  Se.capture = async (e, t, a) => {
20143
20159
  if (a !== br)
20144
20160
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
20145
20161
  let i = await yr(e, t), o = { img: async (u, p) => {
20146
- let { toImg: f } = await import("./toImg-4c2a5772.js");
20162
+ let { toImg: f } = await import("./toImg-70c5b30e.js");
20147
20163
  return f(i, { ...u, ...p || {} });
20148
20164
  }, svg: async (u, p) => {
20149
- let { toSvg: f } = await import("./toImg-4c2a5772.js");
20165
+ let { toSvg: f } = await import("./toImg-70c5b30e.js");
20150
20166
  return f(i, { ...u, ...p || {} });
20151
20167
  }, canvas: async (u, p) => {
20152
- let { toCanvas: f } = await import("./toCanvas-40b86645.js");
20168
+ let { toCanvas: f } = await import("./toCanvas-9b1c3749.js");
20153
20169
  return f(i, { ...u, ...p || {} });
20154
20170
  }, blob: async (u, p) => {
20155
- let { toBlob: f } = await import("./toBlob-9b2b385f.js");
20171
+ let { toBlob: f } = await import("./toBlob-69b265f3.js");
20156
20172
  return f(i, { ...u, ...p || {} });
20157
20173
  }, png: async (u, p) => {
20158
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-08321933.js");
20174
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-17d38e87.js");
20159
20175
  return f(i, { ...u, ...p || {}, format: "png" });
20160
20176
  }, jpeg: async (u, p) => {
20161
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-08321933.js");
20177
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-17d38e87.js");
20162
20178
  return f(i, { ...u, ...p || {}, format: "jpeg" });
20163
20179
  }, webp: async (u, p) => {
20164
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-08321933.js");
20180
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-17d38e87.js");
20165
20181
  return f(i, { ...u, ...p || {}, format: "webp" });
20166
20182
  }, download: async (u, p) => {
20167
- let { download: f } = await import("./download-fe8391ab.js");
20183
+ let { download: f } = await import("./download-80ebe621.js");
20168
20184
  return f(i, { ...u, ...p || {} });
20169
20185
  } }, r = { ...t, export: { url: i }, exports: { svg: async (u) => {
20170
- let { toSvg: p } = await import("./toImg-4c2a5772.js");
20186
+ let { toSvg: p } = await import("./toImg-70c5b30e.js");
20171
20187
  return p(i, { ...t, ...u || {}, [Ke]: !0 });
20172
20188
  }, canvas: async (u) => {
20173
- let { toCanvas: p } = await import("./toCanvas-40b86645.js");
20189
+ let { toCanvas: p } = await import("./toCanvas-9b1c3749.js");
20174
20190
  return p(i, { ...t, ...u || {}, [Ke]: !0 });
20175
20191
  }, png: async (u) => {
20176
- let { rasterize: p } = await import("./rasterize-JS5G2XHH-08321933.js");
20192
+ let { rasterize: p } = await import("./rasterize-JS5G2XHH-17d38e87.js");
20177
20193
  return p(i, { ...t, ...u || {}, format: "png", [Ke]: !0 });
20178
20194
  }, jpeg: async (u) => {
20179
- let { rasterize: p } = await import("./rasterize-JS5G2XHH-08321933.js");
20195
+ let { rasterize: p } = await import("./rasterize-JS5G2XHH-17d38e87.js");
20180
20196
  return p(i, { ...t, ...u || {}, format: "jpeg", [Ke]: !0 });
20181
20197
  }, jpg: async (u) => {
20182
- let { rasterize: p } = await import("./rasterize-JS5G2XHH-08321933.js");
20198
+ let { rasterize: p } = await import("./rasterize-JS5G2XHH-17d38e87.js");
20183
20199
  return p(i, { ...t, ...u || {}, format: "jpeg", [Ke]: !0 });
20184
20200
  }, webp: async (u) => {
20185
- let { rasterize: p } = await import("./rasterize-JS5G2XHH-08321933.js");
20201
+ let { rasterize: p } = await import("./rasterize-JS5G2XHH-17d38e87.js");
20186
20202
  return p(i, { ...t, ...u || {}, format: "webp", [Ke]: !0 });
20187
20203
  }, blob: async (u) => {
20188
- let { toBlob: p } = await import("./toBlob-9b2b385f.js");
20204
+ let { toBlob: p } = await import("./toBlob-69b265f3.js");
20189
20205
  return p(i, { ...t, ...u || {}, [Ke]: !0 });
20190
20206
  }, img: async (u) => {
20191
- let { toImg: p } = await import("./toImg-4c2a5772.js");
20207
+ let { toImg: p } = await import("./toImg-70c5b30e.js");
20192
20208
  return p(i, { ...t, ...u || {}, [Ke]: !0 });
20193
- } } }, l = await Tg("defineExports", r), c = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), s = { ...o, ...c };
20209
+ } } }, l = await Rg("defineExports", r), c = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), s = { ...o, ...c };
20194
20210
  s.jpeg && !s.jpg && (s.jpg = (u, p) => s.jpeg(u, p));
20195
20211
  function m(u, p) {
20196
20212
  let f = { ...t, ...p || {} };
@@ -20225,7 +20241,7 @@ Se.toPng = (e, t) => Se(e, { ...t, format: "png" }).then((a) => a.toPng());
20225
20241
  Se.toJpg = (e, t) => Se(e, { ...t, format: "jpeg" }).then((a) => a.toJpg());
20226
20242
  Se.toWebp = (e, t) => Se(e, { ...t, format: "webp" }).then((a) => a.toWebp());
20227
20243
  Se.download = (e, t) => Se(e, t).then((a) => a.download());
20228
- async function rf(e, t) {
20244
+ async function lf(e, t) {
20229
20245
  if (po)
20230
20246
  return;
20231
20247
  let a = { ...t, fast: !0, embedFonts: !0, scale: 0.2 }, i;
@@ -20262,7 +20278,7 @@ async function rf(e, t) {
20262
20278
  }
20263
20279
  }), po = !0;
20264
20280
  }
20265
- function lf(e) {
20281
+ function nf(e) {
20266
20282
  let t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT);
20267
20283
  for (; t.nextNode(); ) {
20268
20284
  let a = t.currentNode, i = getComputedStyle(a), o = i.backgroundImage && i.backgroundImage !== "none", r = i.maskImage && i.maskImage !== "none" || i.webkitMaskImage && i.webkitMaskImage !== "none";
@@ -20271,7 +20287,7 @@ function lf(e) {
20271
20287
  }
20272
20288
  return !1;
20273
20289
  }
20274
- class nf {
20290
+ class sf {
20275
20291
  constructor() {
20276
20292
  ve(this, "frames", []);
20277
20293
  ve(this, "captureRect", null);
@@ -20444,7 +20460,7 @@ class nf {
20444
20460
  return this._frameDelay;
20445
20461
  }
20446
20462
  }
20447
- const sf = {
20463
+ const cf = {
20448
20464
  name: "IdmCapture",
20449
20465
  props: {
20450
20466
  isPlaying: {
@@ -20550,7 +20566,7 @@ const sf = {
20550
20566
  },
20551
20567
  startRecord() {
20552
20568
  var e, t, a;
20553
- this.frameCount = 0, this.recorder = new nf(), (e = this.recorder) == null || e.setArea(this.selection), (t = this.recorder) == null || t.setFrameDelay(this.frequency), (a = this.recorder) == null || a.startRecording(), console.log("[BottomBar] 录制准备就绪");
20569
+ this.frameCount = 0, this.recorder = new sf(), (e = this.recorder) == null || e.setArea(this.selection), (t = this.recorder) == null || t.setFrameDelay(this.frequency), (a = this.recorder) == null || a.startRecording(), console.log("[BottomBar] 录制准备就绪");
20554
20570
  },
20555
20571
  async captureCurrentFrame() {
20556
20572
  var e, t, a;
@@ -20595,19 +20611,19 @@ const sf = {
20595
20611
  this.recorder.download(this.blob, t);
20596
20612
  }
20597
20613
  }
20598
- }, cf = { class: "capture-container" }, mf = {
20614
+ }, mf = { class: "capture-container" }, df = {
20599
20615
  key: 0,
20600
20616
  class: "drag-tips text-h4"
20601
- }, df = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, hf = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, pf = { class: "text-body-2" }, uf = {
20617
+ }, hf = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, pf = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, uf = { class: "text-body-2" }, gf = {
20602
20618
  key: 0,
20603
20619
  class: "py-1 px-2 d-flex align-center justify-center ga-2"
20604
- }, gf = { class: "text-body-2" }, ff = {
20620
+ }, ff = { class: "text-body-2" }, yf = {
20605
20621
  key: 1,
20606
20622
  class: "py-1 px-2 d-flex align-center justify-center ga-2"
20607
- }, yf = { class: "text-body-2" };
20608
- function bf(e, t, a, i, o, r) {
20623
+ }, bf = { class: "text-body-2" };
20624
+ function wf(e, t, a, i, o, r) {
20609
20625
  const l = M("VBtn");
20610
- return _(), A("div", cf, [
20626
+ return _(), A("div", mf, [
20611
20627
  o.actionStatus > 0 && o.actionStatus < 4 ? (_(), A("div", {
20612
20628
  key: 0,
20613
20629
  class: "capture-selector",
@@ -20615,13 +20631,13 @@ function bf(e, t, a, i, o, r) {
20615
20631
  onMousemove: t[3] || (t[3] = (...c) => r.handleMouseMove && r.handleMouseMove(...c)),
20616
20632
  onMouseup: t[4] || (t[4] = (...c) => r.handleMouseUp && r.handleMouseUp(...c))
20617
20633
  }, [
20618
- o.actionStatus === 1 ? (_(), A("div", mf, y(e.$t("tips.crossHairText")), 1)) : E("", !0),
20634
+ o.actionStatus === 1 ? (_(), A("div", df, y(e.$t("tips.crossHairText")), 1)) : E("", !0),
20619
20635
  o.actionStatus >= 2 ? (_(), A("div", {
20620
20636
  key: 1,
20621
20637
  class: "selection-box",
20622
20638
  style: he(r.selectionStyle)
20623
20639
  }, [
20624
- n("div", df, y(Math.round(o.selection.width)) + " × " + y(Math.round(o.selection.height)), 1),
20640
+ n("div", hf, y(Math.round(o.selection.width)) + " × " + y(Math.round(o.selection.height)), 1),
20625
20641
  o.actionStatus === 3 ? (_(), A("div", {
20626
20642
  key: 0,
20627
20643
  class: "action-buttons px-2 rounded font-weight-bold bg-background d-flex justify-end ga-4",
@@ -20652,8 +20668,8 @@ function bf(e, t, a, i, o, r) {
20652
20668
  class: ge(["capture-frame", { recording: o.actionStatus === 5 }]),
20653
20669
  style: he(r.selectionStyle)
20654
20670
  }, [
20655
- n("div", hf, [
20656
- n("div", pf, y(o.selection.width) + " × " + y(o.selection.height), 1)
20671
+ n("div", pf, [
20672
+ n("div", uf, y(o.selection.width) + " × " + y(o.selection.height), 1)
20657
20673
  ]),
20658
20674
  n("div", {
20659
20675
  class: "action-status mt-2 px-2 rounded font-weight-bold bg-background d-flex align-center justify-end ga-4",
@@ -20662,22 +20678,22 @@ function bf(e, t, a, i, o, r) {
20662
20678
  onMouseup: t[6] || (t[6] = Le(() => {
20663
20679
  }, ["stop"]))
20664
20680
  }, [
20665
- o.actionStatus === 4 ? (_(), A("div", uf, [
20681
+ o.actionStatus === 4 ? (_(), A("div", gf, [
20666
20682
  t[7] || (t[7] = n("div", { class: "dot bg-danger" }, null, -1)),
20667
- n("div", gf, y(e.$t("tips.recordingText")), 1)
20683
+ n("div", ff, y(e.$t("tips.recordingText")), 1)
20668
20684
  ])) : E("", !0),
20669
- o.actionStatus === 5 || o.actionStatus === 6 ? (_(), A("div", ff, [
20685
+ o.actionStatus === 5 || o.actionStatus === 6 ? (_(), A("div", yf, [
20670
20686
  t[8] || (t[8] = n("div", { class: "dot bg-success" }, null, -1)),
20671
- n("div", yf, y(e.$t("tips.savingText")), 1)
20687
+ n("div", bf, y(e.$t("tips.savingText")), 1)
20672
20688
  ])) : E("", !0)
20673
20689
  ], 32)
20674
20690
  ], 6)) : E("", !0)
20675
20691
  ]);
20676
20692
  }
20677
- const wf = /* @__PURE__ */ ie(sf, [["render", bf], ["__scopeId", "data-v-b2dd8527"]]);
20678
- const xf = {
20693
+ const xf = /* @__PURE__ */ ie(cf, [["render", wf], ["__scopeId", "data-v-b2dd8527"]]);
20694
+ const vf = {
20679
20695
  name: "IdmBottomBar",
20680
- components: { DateTimePicker: Qa, IdmCapture: wf },
20696
+ components: { DateTimePicker: Qa, IdmCapture: xf },
20681
20697
  props: {
20682
20698
  menuToggle: {
20683
20699
  type: Object,
@@ -20808,19 +20824,19 @@ const xf = {
20808
20824
  this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
20809
20825
  }
20810
20826
  }
20811
- }, vf = { class: "idm-bottom-bar-gl4" }, kf = { class: "date-box d-flex ga-2 mr-2" }, _f = { class: "play-btns-box d-flex justify-center align-center cursor-pointer ga-1" }, Lf = {
20827
+ }, kf = { class: "idm-bottom-bar-gl4" }, _f = { class: "date-box d-flex ga-2 mr-2" }, Lf = { class: "play-btns-box d-flex justify-center align-center cursor-pointer ga-1" }, zf = {
20812
20828
  key: 0,
20813
20829
  class: "iconfont icon-record"
20814
- }, zf = {
20830
+ }, Cf = {
20815
20831
  key: 1,
20816
20832
  class: "iconfont icon-stop-record text-danger"
20817
- }, Cf = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, Mf = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, Pf = {
20833
+ }, Mf = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, Pf = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, Sf = {
20818
20834
  key: 0,
20819
20835
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
20820
- }, Sf = ["onClick"], Tf = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Rf = { class: "text-body-1" };
20821
- function Df(e, t, a, i, o, r) {
20836
+ }, Tf = ["onClick"], Rf = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Df = { class: "text-body-1" };
20837
+ function If(e, t, a, i, o, r) {
20822
20838
  const l = M("IdmCapture"), c = M("DateTimePicker"), s = M("VListItemTitle"), m = M("VListItem"), d = M("VList"), h = M("VMenu"), g = M("VBtn"), w = M("VDivider"), u = M("VTooltip");
20823
- return _(), A("div", vf, [
20839
+ return _(), A("div", kf, [
20824
20840
  b(l, U({
20825
20841
  ref: "capture",
20826
20842
  isPlaying: !o.paused,
@@ -20835,7 +20851,7 @@ function Df(e, t, a, i, o, r) {
20835
20851
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
20836
20852
  style: he({ right: o.right + 146 + "px", bottom: Object.values(o.show).includes(!0) ? "10px" : "-100px" })
20837
20853
  }, [
20838
- n("div", kf, [
20854
+ n("div", _f, [
20839
20855
  b(c, U({
20840
20856
  ref: "dateTimePicker",
20841
20857
  "date-time": o.currentDateTimeZ,
@@ -20900,7 +20916,7 @@ function Df(e, t, a, i, o, r) {
20900
20916
  class: "mx-2 my-3",
20901
20917
  style: { height: "16px" }
20902
20918
  }),
20903
- n("div", _f, [
20919
+ n("div", Lf, [
20904
20920
  b(u, {
20905
20921
  text: e.$t("actions.record"),
20906
20922
  location: "top",
@@ -20916,7 +20932,7 @@ function Df(e, t, a, i, o, r) {
20916
20932
  onClick: t[5] || (t[5] = (f) => o.gifEnabled = !o.gifEnabled)
20917
20933
  }), {
20918
20934
  default: x(() => [
20919
- o.gifEnabled ? (_(), A("i", zf)) : (_(), A("i", Lf))
20935
+ o.gifEnabled ? (_(), A("i", Cf)) : (_(), A("i", zf))
20920
20936
  ]),
20921
20937
  _: 2
20922
20938
  }, 1040)
@@ -21044,7 +21060,7 @@ function Df(e, t, a, i, o, r) {
21044
21060
  class: "mx-2 my-3",
21045
21061
  style: { height: "16px" }
21046
21062
  }),
21047
- n("div", Cf, [
21063
+ n("div", Mf, [
21048
21064
  b(u, {
21049
21065
  text: e.$t("weather.windBarbs"),
21050
21066
  location: "top"
@@ -21148,7 +21164,7 @@ function Df(e, t, a, i, o, r) {
21148
21164
  class: "mx-2 mr-3 my-3",
21149
21165
  style: { height: "16px" }
21150
21166
  }),
21151
- n("div", Mf, [
21167
+ n("div", Pf, [
21152
21168
  b(g, {
21153
21169
  text: "",
21154
21170
  height: "30",
@@ -21181,14 +21197,14 @@ function Df(e, t, a, i, o, r) {
21181
21197
  class: "timezone-box d-flex flex-column justify-space-between align-end",
21182
21198
  style: he({ right: o.right + "px" })
21183
21199
  }, [
21184
- o.showTimezone ? (_(), A("div", Pf, [
21200
+ o.showTimezone ? (_(), A("div", Sf, [
21185
21201
  (_(!0), A(Te, null, De(o.offsets, (p) => (_(), A("div", {
21186
21202
  key: p,
21187
21203
  class: "item rounded text-body-2 hover-active",
21188
21204
  onClick: (f) => o.timeZone = p
21189
- }, y(p < 0 ? p : "+" + p), 9, Sf))), 128))
21205
+ }, y(p < 0 ? p : "+" + p), 9, Tf))), 128))
21190
21206
  ])) : E("", !0),
21191
- n("div", Tf, [
21207
+ n("div", Rf, [
21192
21208
  b(g, {
21193
21209
  text: "",
21194
21210
  variant: "flat",
@@ -21202,13 +21218,13 @@ function Df(e, t, a, i, o, r) {
21202
21218
  ]),
21203
21219
  _: 1
21204
21220
  }),
21205
- n("span", Rf, y(o.currentRealTime), 1)
21221
+ n("span", Df, y(o.currentRealTime), 1)
21206
21222
  ])
21207
21223
  ], 4)
21208
21224
  ]);
21209
21225
  }
21210
- const If = /* @__PURE__ */ ie(xf, [["render", Df]]);
21211
- const Af = {
21226
+ const Af = /* @__PURE__ */ ie(vf, [["render", If]]);
21227
+ const Ff = {
21212
21228
  name: "IdmTimePlayer",
21213
21229
  components: { DateTimePicker: Qa },
21214
21230
  props: {
@@ -21316,14 +21332,14 @@ const Af = {
21316
21332
  this.step = Math.floor(t / this.frequency), this.animation = requestAnimationFrame(this.animateSpeeds);
21317
21333
  }
21318
21334
  }
21319
- }, Ff = { class: "w-100 timeline-box d-flex justify-space-around align-center rounded px-2" };
21320
- function Gf(e, t, a, i, o, r) {
21335
+ }, Gf = { class: "w-100 timeline-box d-flex justify-space-around align-center rounded px-2" };
21336
+ function Nf(e, t, a, i, o, r) {
21321
21337
  const l = M("VBtn"), c = M("DateTimePicker");
21322
21338
  return _(), A("div", {
21323
21339
  class: "idm-time-player-gl4 d-flex justify-center align-center",
21324
21340
  style: he({ bottom: Object.values(o.show).includes(!0) ? a.playerBottom + "px" : "-100px" })
21325
21341
  }, [
21326
- n("div", Ff, [
21342
+ n("div", Gf, [
21327
21343
  b(l, {
21328
21344
  size: "small",
21329
21345
  density: "compact",
@@ -21416,7 +21432,7 @@ function Gf(e, t, a, i, o, r) {
21416
21432
  ])
21417
21433
  ], 4);
21418
21434
  }
21419
- const wr = /* @__PURE__ */ ie(Af, [["render", Gf]]), Nf = {
21435
+ const wr = /* @__PURE__ */ ie(Ff, [["render", Nf]]), Wf = {
21420
21436
  name: "IdmGL4",
21421
21437
  components: {
21422
21438
  IdmOtherLayer: Ns,
@@ -21424,8 +21440,8 @@ const wr = /* @__PURE__ */ ie(Af, [["render", Gf]]), Nf = {
21424
21440
  IdmTropicals: tr,
21425
21441
  IdmMeasure: kp,
21426
21442
  IdmSpot: bp,
21427
- IdmMarker: Eu,
21428
- IdmBottomBar: If,
21443
+ IdmMarker: Bu,
21444
+ IdmBottomBar: Af,
21429
21445
  IdmTimePlayer: wr
21430
21446
  },
21431
21447
  props: {
@@ -21482,14 +21498,14 @@ const wr = /* @__PURE__ */ ie(Af, [["render", Gf]]), Nf = {
21482
21498
  }
21483
21499
  },
21484
21500
  methods: {}
21485
- }, Wf = {
21501
+ }, Ef = {
21486
21502
  ref: "mapHomeGl4",
21487
21503
  class: "map-gl4-home",
21488
21504
  id: "map-gl4-home"
21489
21505
  };
21490
- function Ef(e, t, a, i, o, r) {
21506
+ function Bf(e, t, a, i, o, r) {
21491
21507
  const l = M("IdmOtherLayer"), c = M("IdmWeatherLayer"), s = M("IdmTropicals"), m = M("IdmSpot"), d = M("IdmMeasure"), h = M("IdmMarker"), g = M("IdmBottomBar"), w = M("IdmTimePlayer");
21492
- return _(), A("div", Wf, [
21508
+ return _(), A("div", Ef, [
21493
21509
  b(l, U({
21494
21510
  ref: "idmOtherLayers",
21495
21511
  simple: a.simple,
@@ -21582,8 +21598,8 @@ function Ef(e, t, a, i, o, r) {
21582
21598
  }, e.$attrs), null, 16, ["playerBottom", "bgClass", "weather-check-list", "map-feather"])) : E("", !0)
21583
21599
  ], 512);
21584
21600
  }
21585
- const Bf = /* @__PURE__ */ ie(Nf, [["render", Ef]]);
21586
- class Zf {
21601
+ const Zf = /* @__PURE__ */ ie(Wf, [["render", Bf]]);
21602
+ class Of {
21587
21603
  constructor(t = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
21588
21604
  ve(this, "originStyle");
21589
21605
  ve(this, "mapboxStyle");
@@ -40341,7 +40357,7 @@ class Zf {
40341
40357
  };
40342
40358
  }
40343
40359
  }
40344
- const Of = {
40360
+ const Vf = {
40345
40361
  name: "MapInitial",
40346
40362
  props: {
40347
40363
  token: {
@@ -40414,7 +40430,7 @@ const Of = {
40414
40430
  },
40415
40431
  methods: {
40416
40432
  async initOnlineMap() {
40417
- this.helper = new Zf(this.token), be.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
40433
+ this.helper = new Of(this.token), be.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
40418
40434
  const e = new be.Map({
40419
40435
  container: "map",
40420
40436
  // style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
@@ -40457,24 +40473,24 @@ const Of = {
40457
40473
  this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (e = this.map) == null || e.flyTo({ zoom: this.zoom, duration: 500 }));
40458
40474
  }
40459
40475
  }
40460
- }, Vf = { class: "v-btn--variant-elevated rounded" }, jf = { class: "v-btn--variant-elevated rounded" }, Xf = { class: "zoom" }, Hf = {
40476
+ }, jf = { class: "v-btn--variant-elevated rounded" }, Xf = { class: "v-btn--variant-elevated rounded" }, Hf = { class: "zoom" }, Yf = {
40461
40477
  key: 2,
40462
40478
  class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
40463
40479
  };
40464
- function Yf(e, t, a, i, o, r) {
40480
+ function Uf(e, t, a, i, o, r) {
40465
40481
  const l = M("VBtn");
40466
40482
  return _(), A("div", {
40467
- class: "mapbox-initial-gl4 gif-container",
40468
40483
  id: "mapbox-initial-gl4",
40484
+ class: "mapbox-initial-gl4 gif-container",
40469
40485
  style: he({ height: a.height, width: a.width })
40470
40486
  }, [
40471
40487
  t[6] || (t[6] = n("div", { id: "map" }, null, -1)),
40472
40488
  a.simple ? (_(), A("div", {
40473
40489
  key: 0,
40474
40490
  class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1 simple",
40475
- style: he({ top: a.top + 254 + "px", right: o.right + "px", height: "40px" })
40491
+ style: he({ top: a.top + 294 + "px", right: o.right + "px", height: "40px" })
40476
40492
  }, [
40477
- n("div", Vf, [
40493
+ n("div", jf, [
40478
40494
  b(l, {
40479
40495
  "min-width": "32",
40480
40496
  width: "32",
@@ -40495,7 +40511,7 @@ function Yf(e, t, a, i, o, r) {
40495
40511
  class: "menu-bar-box transition px-1 rounded d-flex flex-column",
40496
40512
  style: he({ top: a.top + 308 + "px", right: o.right + "px", height: "112px" })
40497
40513
  }, [
40498
- n("div", jf, [
40514
+ n("div", Xf, [
40499
40515
  b(l, {
40500
40516
  "min-width": "32",
40501
40517
  width: "32",
@@ -40509,7 +40525,7 @@ function Yf(e, t, a, i, o, r) {
40509
40525
  _: 1,
40510
40526
  __: [1]
40511
40527
  }, 8, ["onClick"]),
40512
- n("div", Xf, y(o.zoom ? Math.floor(o.zoom) : 0), 1),
40528
+ n("div", Hf, y(o.zoom ? Math.floor(o.zoom) : 0), 1),
40513
40529
  b(l, {
40514
40530
  "min-width": "32",
40515
40531
  width: "32",
@@ -40525,7 +40541,7 @@ function Yf(e, t, a, i, o, r) {
40525
40541
  }, 8, ["onClick"])
40526
40542
  ])
40527
40543
  ], 4)),
40528
- a.simple ? E("", !0) : (_(), A("div", Hf, [
40544
+ a.simple ? E("", !0) : (_(), A("div", Yf, [
40529
40545
  t[3] || (t[3] = n("span", null, "© 2023", -1)),
40530
40546
  n("span", null, "-" + y(r.computeYear), 1),
40531
40547
  t[4] || (t[4] = n("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
@@ -40537,8 +40553,8 @@ function Yf(e, t, a, i, o, r) {
40537
40553
  ]))
40538
40554
  ], 4);
40539
40555
  }
40540
- const Uf = /* @__PURE__ */ ie(Of, [["render", Yf]]);
40541
- const $f = {
40556
+ const $f = /* @__PURE__ */ ie(Vf, [["render", Uf]]);
40557
+ const Jf = {
40542
40558
  name: "DateRangePicker",
40543
40559
  props: {
40544
40560
  width: {
@@ -40774,22 +40790,22 @@ const $f = {
40774
40790
  this.dateRange = [], this.dateRangeStr = "", this.$emit("dateRange", []);
40775
40791
  }
40776
40792
  }
40777
- }, Jf = {
40793
+ }, Kf = {
40778
40794
  class: "idm-gl4-date-picker",
40779
40795
  ref: "idmGl4DatePicker"
40780
- }, Kf = { class: "flex-1-1-0" }, qf = { class: "pa-0 w-100 d-flex justify-space-between align-center ga-4" }, Qf = {
40796
+ }, qf = { class: "flex-1-1-0" }, Qf = { class: "pa-0 w-100 d-flex justify-space-between align-center ga-4" }, e1 = {
40781
40797
  key: 0,
40782
40798
  class: "d-flex justify-start align-center flex-wrap ga-3 ml-n2"
40783
- }, e1 = { class: "flex-1-1-0 d-flex justify-end align-center ga-4" };
40784
- function t1(e, t, a, i, o, r) {
40799
+ }, t1 = { class: "flex-1-1-0 d-flex justify-end align-center ga-4" };
40800
+ function a1(e, t, a, i, o, r) {
40785
40801
  const l = M("VIcon"), c = M("VDatePicker"), s = M("v-divider"), m = M("VCardText"), d = M("VDivider"), h = M("VBtn"), g = M("VCardActions"), w = M("VCard");
40786
- return _(), A("div", Jf, [
40802
+ return _(), A("div", Kf, [
40787
40803
  n("div", {
40788
40804
  style: he({ height: a.height + "px", width: a.width ? a.width + "px" : "auto" }),
40789
40805
  class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
40790
40806
  onClick: t[0] || (t[0] = (...u) => r.handleOpenDatePicker && r.handleOpenDatePicker(...u))
40791
40807
  }, [
40792
- n("span", Kf, y(o.dateRangeStr), 1),
40808
+ n("span", qf, y(o.dateRangeStr), 1),
40793
40809
  o.dateRangeStr ? (_(), B(l, {
40794
40810
  key: 0,
40795
40811
  class: "text-h5",
@@ -40806,7 +40822,7 @@ function t1(e, t, a, i, o, r) {
40806
40822
  default: x(() => [
40807
40823
  b(m, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
40808
40824
  default: x(() => [
40809
- n("div", qf, [
40825
+ n("div", Qf, [
40810
40826
  b(c, {
40811
40827
  modelValue: o.dateRange[0],
40812
40828
  "onUpdate:modelValue": [
@@ -40857,7 +40873,7 @@ function t1(e, t, a, i, o, r) {
40857
40873
  default: x(() => {
40858
40874
  var u, p;
40859
40875
  return [
40860
- (u = a.fastPick) != null && u.show ? (_(), A("div", Qf, [
40876
+ (u = a.fastPick) != null && u.show ? (_(), A("div", e1, [
40861
40877
  (_(!0), A(Te, null, De((p = o.fastPickOptions) == null ? void 0 : p.filter((f) => a.fastPick.allows.some((L) => L === f)), (f) => (_(), B(h, {
40862
40878
  size: "small",
40863
40879
  color: o.activeFastPick === f ? "primary" : "",
@@ -40871,7 +40887,7 @@ function t1(e, t, a, i, o, r) {
40871
40887
  _: 2
40872
40888
  }, 1032, ["color", "variant", "onClick"]))), 256))
40873
40889
  ])) : E("", !0),
40874
- n("div", e1, [
40890
+ n("div", t1, [
40875
40891
  b(h, {
40876
40892
  size: "small",
40877
40893
  variant: "tonal",
@@ -40905,25 +40921,25 @@ function t1(e, t, a, i, o, r) {
40905
40921
  }, 8, ["style"])) : E("", !0)
40906
40922
  ], 512);
40907
40923
  }
40908
- const a1 = /* @__PURE__ */ ie($f, [["render", t1]]), b1 = {
40924
+ const o1 = /* @__PURE__ */ ie(Jf, [["render", a1]]), w1 = {
40909
40925
  install(e) {
40910
- e.component("MapInitial", Uf), e.component("MapboxGL", Bf), e.component("TropicalGL", tr), e.component("LatLngGL", er), e.component("DateTimePicker", Qa), e.component("DateRangePicker", a1), e.component("PortDetail", uo), e.component("TimePlayer", wr);
40926
+ e.component("MapInitial", $f), e.component("MapboxGL", Zf), e.component("TropicalGL", tr), e.component("LatLngGL", er), e.component("DateTimePicker", Qa), e.component("DateRangePicker", o1), e.component("PortDetail", uo), e.component("TimePlayer", wr);
40911
40927
  }
40912
40928
  };
40913
40929
  export {
40914
40930
  Qa as D,
40915
40931
  er as L,
40916
- b1 as M,
40932
+ w1 as M,
40917
40933
  uo as P,
40918
40934
  tr as T,
40919
40935
  go as V,
40920
40936
  Ue as W,
40921
- Uf as a,
40922
- Bf as b,
40923
- a1 as c,
40937
+ $f as a,
40938
+ Zf as b,
40939
+ o1 as c,
40924
40940
  wr as d,
40925
40941
  Ce as e,
40926
40942
  Ee as f,
40927
- Zf as g,
40943
+ Of as g,
40928
40944
  Ea as l
40929
40945
  };