@eox/itemfilter 0.13.0 → 0.14.0

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.
@@ -42,10 +42,10 @@ const il = (t) => new rl(typeof t == "string" ? t : t + "", void 0, rs), nl = (t
42
42
  * Copyright 2017 Google LLC
43
43
  * SPDX-License-Identifier: BSD-3-Clause
44
44
  */
45
- const { is: sl, defineProperty: ol, getOwnPropertyDescriptor: ll, getOwnPropertyNames: al, getOwnPropertySymbols: cl, getPrototypeOf: ul } = Object, ot = globalThis, Sn = ot.trustedTypes, hl = Sn ? Sn.emptyScript : "", ci = ot.reactiveElementPolyfillSupport, Xt = (t, e) => t, _r = { toAttribute(t, e) {
45
+ const { is: sl, defineProperty: ol, getOwnPropertyDescriptor: ll, getOwnPropertyNames: al, getOwnPropertySymbols: cl, getPrototypeOf: hl } = Object, ot = globalThis, Sn = ot.trustedTypes, ul = Sn ? Sn.emptyScript : "", ci = ot.reactiveElementPolyfillSupport, Xt = (t, e) => t, _r = { toAttribute(t, e) {
46
46
  switch (e) {
47
47
  case Boolean:
48
- t = t ? hl : null;
48
+ t = t ? ul : null;
49
49
  break;
50
50
  case Object:
51
51
  case Array:
@@ -104,7 +104,7 @@ class Pt extends HTMLElement {
104
104
  static _$Ei() {
105
105
  if (this.hasOwnProperty(Xt("elementProperties")))
106
106
  return;
107
- const e = ul(this);
107
+ const e = hl(this);
108
108
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
109
109
  }
110
110
  static finalize() {
@@ -289,9 +289,9 @@ Pt.elementStyles = [], Pt.shadowRootOptions = { mode: "open" }, Pt[Xt("elementPr
289
289
  * Copyright 2017 Google LLC
290
290
  * SPDX-License-Identifier: BSD-3-Clause
291
291
  */
292
- const Vt = globalThis, Er = Vt.trustedTypes, Mn = Er ? Er.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ki = "$lit$", Ze = `lit$${(Math.random() + "").slice(9)}$`, Ri = "?" + Ze, dl = `<${Ri}>`, xt = document, Gt = () => xt.createComment(""), Jt = (t) => t === null || typeof t != "object" && typeof t != "function", is = Array.isArray, ns = (t) => is(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", ui = `[
293
- \f\r]`, Yt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, On = /-->/g, Pn = />/g, mt = RegExp(`>|${ui}(?:([^\\s"'>=/]+)(${ui}*=${ui}*(?:[^
294
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ln = /'/g, Cn = /"/g, ss = /^(?:script|style|textarea|title)$/i, fl = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), V = fl(1), lt = Symbol.for("lit-noChange"), oe = Symbol.for("lit-nothing"), kn = /* @__PURE__ */ new WeakMap(), bt = xt.createTreeWalker(xt, 129);
292
+ const Vt = globalThis, Er = Vt.trustedTypes, Mn = Er ? Er.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ki = "$lit$", Ze = `lit$${(Math.random() + "").slice(9)}$`, Ri = "?" + Ze, dl = `<${Ri}>`, xt = document, Gt = () => xt.createComment(""), Jt = (t) => t === null || typeof t != "object" && typeof t != "function", is = Array.isArray, ns = (t) => is(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", hi = `[
293
+ \f\r]`, Yt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, On = /-->/g, Pn = />/g, mt = RegExp(`>|${hi}(?:([^\\s"'>=/]+)(${hi}*=${hi}*(?:[^
294
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ln = /'/g, Cn = /"/g, ss = /^(?:script|style|textarea|title)$/i, fl = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), U = fl(1), lt = Symbol.for("lit-noChange"), oe = Symbol.for("lit-nothing"), kn = /* @__PURE__ */ new WeakMap(), bt = xt.createTreeWalker(xt, 129);
295
295
  function os(t, e) {
296
296
  if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
297
297
  throw Error("invalid template strings array");
@@ -326,7 +326,7 @@ class Zt {
326
326
  for (const p of n.getAttributeNames())
327
327
  if (p.endsWith(ki)) {
328
328
  const b = f[o++], y = n.getAttribute(p).split(Ze), E = /([.?@])?(.*)/.exec(b);
329
- l.push({ type: 1, index: s, name: E[2], strings: y, ctor: E[1] === "." ? cs : E[1] === "?" ? us : E[1] === "@" ? hs : nr }), n.removeAttribute(p);
329
+ l.push({ type: 1, index: s, name: E[2], strings: y, ctor: E[1] === "." ? cs : E[1] === "?" ? hs : E[1] === "@" ? us : nr }), n.removeAttribute(p);
330
330
  } else
331
331
  p.startsWith(Ze) && (l.push({ type: 6, index: s }), n.removeAttribute(p));
332
332
  if (ss.test(n.tagName)) {
@@ -491,7 +491,7 @@ class cs extends nr {
491
491
  this.element[this.name] = e === oe ? void 0 : e;
492
492
  }
493
493
  }
494
- class us extends nr {
494
+ class hs extends nr {
495
495
  constructor() {
496
496
  super(...arguments), this.type = 4;
497
497
  }
@@ -499,7 +499,7 @@ class us extends nr {
499
499
  this.element.toggleAttribute(this.name, !!e && e !== oe);
500
500
  }
501
501
  }
502
- class hs extends nr {
502
+ class us extends nr {
503
503
  constructor(e, r, i, n, s) {
504
504
  super(e, r, i, n, s), this.type = 5;
505
505
  }
@@ -525,8 +525,8 @@ class ds {
525
525
  wt(this, e);
526
526
  }
527
527
  }
528
- const pl = { P: ki, A: Ze, C: Ri, M: 1, L: ls, R: as, D: ns, V: wt, I: Nt, H: nr, N: us, U: hs, B: cs, F: ds }, hi = Vt.litHtmlPolyfillSupport;
529
- hi == null || hi(Zt, Nt), (Vt.litHtmlVersions ?? (Vt.litHtmlVersions = [])).push("3.1.2");
528
+ const pl = { P: ki, A: Ze, C: Ri, M: 1, L: ls, R: as, D: ns, V: wt, I: Nt, H: nr, N: hs, U: us, B: cs, F: ds }, ui = Vt.litHtmlPolyfillSupport;
529
+ ui == null || ui(Zt, Nt), (Vt.litHtmlVersions ?? (Vt.litHtmlVersions = [])).push("3.1.2");
530
530
  const gl = (t, e, r) => {
531
531
  const i = (r == null ? void 0 : r.renderBefore) ?? e;
532
532
  let n = i._$litPart$;
@@ -747,12 +747,12 @@ const Tn = (t, e, r) => {
747
747
  l[y] = yt(n[b], s[y]), Wt(t, n[p], n[b]), b--, y++;
748
748
  else if (c === void 0 && (c = Tn(o, y, E), f = Tn(a, p, b)), c.has(a[p]))
749
749
  if (c.has(a[b])) {
750
- const O = f.get(o[y]), U = O !== void 0 ? n[O] : null;
751
- if (U === null) {
750
+ const O = f.get(o[y]), z = O !== void 0 ? n[O] : null;
751
+ if (z === null) {
752
752
  const B = Wt(t, n[p]);
753
753
  yt(B, s[y]), l[y] = B;
754
754
  } else
755
- l[y] = yt(U, s[y]), Wt(t, n[p], U), n[O] = null;
755
+ l[y] = yt(z, s[y]), Wt(t, n[p], z), n[O] = null;
756
756
  y++;
757
757
  } else
758
758
  fi(n[b]), b--;
@@ -818,187 +818,187 @@ const ys = Symbol.for(""), $l = (t) => {
818
818
  (e = Dn.get(p)) === void 0 && (o.raw = o, Dn.set(p, e = o)), r = a;
819
819
  }
820
820
  return t(e, ...r);
821
- }, $r = _l(V);
821
+ }, $r = _l(U);
822
822
  (() => {
823
- var t = Object.defineProperty, e = Math.pow, r = (u, d, x) => d in u ? t(u, d, { enumerable: !0, configurable: !0, writable: !0, value: x }) : u[d] = x, i = (u, d, x) => (r(u, typeof d != "symbol" ? d + "" : d, x), x), n = (u, d) => ` ${d && d.length > 0 ? d.map((x) => `<link rel="stylesheet" href="${x}" />`).join("") : ""} <style> ${u} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`, s = ":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}", o = "pointers-overlap", a = "pointers-min-distance", l = "pointers-max-distance", c = "range-dragging", f = "data", p = "min", b = "max", y = "step", E = "round", O = "type", U = "theme", B = "rtl", g = "btt", m = "disabled", w = "keyboard-disabled", S = "mousewheel-disabled", _ = "slider-width", A = "slider-height", k = "slider-radius", F = "slider-bg", H = "slider-bg-hover", I = "slider-bg-fill", te = "pointer-width", le = "pointer-height", P = "pointer-radius", L = "pointer-bg", M = "pointer-bg-hover", j = "pointer-bg-focus", C = "pointer-shadow", K = "pointer-shadow-hover", z = "pointer-shadow-focus", se = "pointer-border", re = "pointer-border-hover", ye = "pointer-border-focus", ve = "animate-onclick", Ae = "css-links", xe = "vertical", Me = "horizontal", Je = (u, d, x, v, R) => {
824
- let Y = d - u;
825
- return Y === 0 ? x : (v - x) * (R - u) / Y + x;
826
- }, $e = (u) => !isNaN(parseFloat(u)) && isFinite(u), ie = (u, d) => $e(u) ? Number(u) : d, Ne = (u, d) => d === 0 ? 0 : Math.round(u / d) * d, ft = (u, d = 1 / 0) => {
823
+ var t = Object.defineProperty, e = Math.pow, r = (h, d, x) => d in h ? t(h, d, { enumerable: !0, configurable: !0, writable: !0, value: x }) : h[d] = x, i = (h, d, x) => (r(h, typeof d != "symbol" ? d + "" : d, x), x), n = (h, d) => ` ${d && d.length > 0 ? d.map((x) => `<link rel="stylesheet" href="${x}" />`).join("") : ""} <style> ${h} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`, s = ":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}", o = "pointers-overlap", a = "pointers-min-distance", l = "pointers-max-distance", c = "range-dragging", f = "data", p = "min", b = "max", y = "step", E = "round", O = "type", z = "theme", B = "rtl", g = "btt", m = "disabled", w = "keyboard-disabled", S = "mousewheel-disabled", _ = "slider-width", A = "slider-height", k = "slider-radius", F = "slider-bg", H = "slider-bg-hover", I = "slider-bg-fill", te = "pointer-width", le = "pointer-height", P = "pointer-radius", L = "pointer-bg", M = "pointer-bg-hover", j = "pointer-bg-focus", C = "pointer-shadow", K = "pointer-shadow-hover", Y = "pointer-shadow-focus", se = "pointer-border", re = "pointer-border-hover", ye = "pointer-border-focus", ve = "animate-onclick", Ae = "css-links", xe = "vertical", Me = "horizontal", Je = (h, d, x, v, R) => {
824
+ let W = d - h;
825
+ return W === 0 ? x : (v - x) * (R - h) / W + x;
826
+ }, $e = (h) => !isNaN(parseFloat(h)) && isFinite(h), ie = (h, d) => $e(h) ? Number(h) : d, Ne = (h, d) => d === 0 ? 0 : Math.round(h / d) * d, ft = (h, d = 1 / 0) => {
827
827
  if (d === 1 / 0)
828
- return u;
828
+ return h;
829
829
  let x = e(10, d);
830
- return Math.round(u * x) / x;
831
- }, fe = (u) => u == null ? !1 : typeof u == "boolean" ? u : u.trim().toLowerCase() === "true", no = (u, d) => {
832
- u.dispatchEvent(new CustomEvent("onPointerClicked", { detail: { $pointer: d } }));
833
- }, so = (u, d) => {
834
- u.dispatchEvent(new CustomEvent("onMouseDown", { detail: { nativeEvent: d } }));
835
- }, oo = (u, d) => {
836
- u.dispatchEvent(new CustomEvent("onMouseUp", { detail: { nativeEvent: d } }));
837
- }, lo = (u, d) => {
838
- u.dispatchEvent(new CustomEvent("onKeyDown", { detail: { nativeEvent: d } }));
839
- }, ao = (u, d) => {
830
+ return Math.round(h * x) / x;
831
+ }, fe = (h) => h == null ? !1 : typeof h == "boolean" ? h : h.trim().toLowerCase() === "true", no = (h, d) => {
832
+ h.dispatchEvent(new CustomEvent("onPointerClicked", { detail: { $pointer: d } }));
833
+ }, so = (h, d) => {
834
+ h.dispatchEvent(new CustomEvent("onMouseDown", { detail: { nativeEvent: d } }));
835
+ }, oo = (h, d) => {
836
+ h.dispatchEvent(new CustomEvent("onMouseUp", { detail: { nativeEvent: d } }));
837
+ }, lo = (h, d) => {
838
+ h.dispatchEvent(new CustomEvent("onKeyDown", { detail: { nativeEvent: d } }));
839
+ }, ao = (h, d) => {
840
840
  if (!d || d.length <= 0)
841
841
  return;
842
842
  let x = d.map((R) => $e(R) ? ie(R, R) : R), v = { values: x || [] };
843
843
  v.value = x[0], v.value0 = x[0], v.value1 = x[0];
844
844
  for (let R = 1; R < x.length; R++)
845
845
  v[`value${R + 1}`] = x[R];
846
- u.dispatchEvent(new CustomEvent("change", { detail: v }));
847
- }, Nr = (u, d, x) => {
848
- let v = 0, R, Y, Z, T, D = !1, Q = (X, he, we, be, pe, ge) => {
846
+ h.dispatchEvent(new CustomEvent("change", { detail: v }));
847
+ }, Nr = (h, d, x) => {
848
+ let v = 0, R, W, Z, T, D = !1, Q = (V, ue, we, be, pe, ge) => {
849
849
  let Oe = v;
850
- we !== void 0 && X > we && (X = we), he !== void 0 && X < he && (X = he), v = X;
850
+ we !== void 0 && V > we && (V = we), ue !== void 0 && V < ue && (V = ue), v = V;
851
851
  let Pe = v;
852
852
  return (be === xe && ge || be === Me && pe) && (Pe = 100 - Pe), be === xe ? d.style.top = `${Pe}%` : d.style.left = `${Pe}%`, Oe !== v;
853
- }, ne = (X) => X === d || d.contains(X), q = (X, he, we, be) => {
854
- R = X, Y = he, Z = we, T = be;
855
- }, ce = (X) => {
856
- D = X, d.classList.toggle("disabled", D), D ? d.setAttribute("aria-disabled", "true") : d.hasAttribute("aria-disabled") && d.removeAttribute("aria-disabled");
857
- }, Te = (X, he) => {
858
- he == null ? d.removeAttribute(X) : d.setAttribute(X, he);
859
- }, Ee = (X) => d.getAttribute(X), W = (X) => {
853
+ }, ne = (V) => V === d || d.contains(V), q = (V, ue, we, be) => {
854
+ R = V, W = ue, Z = we, T = be;
855
+ }, ce = (V) => {
856
+ D = V, d.classList.toggle("disabled", D), D ? d.setAttribute("aria-disabled", "true") : d.hasAttribute("aria-disabled") && d.removeAttribute("aria-disabled");
857
+ }, Te = (V, ue) => {
858
+ ue == null ? d.removeAttribute(V) : d.setAttribute(V, ue);
859
+ }, Ee = (V) => d.getAttribute(V), X = (V) => {
860
860
  if (!D) {
861
- switch (X.key) {
861
+ switch (V.key) {
862
862
  case "ArrowLeft": {
863
- X.preventDefault(), typeof R == "function" && R(x);
863
+ V.preventDefault(), typeof R == "function" && R(x);
864
864
  break;
865
865
  }
866
866
  case "ArrowRight": {
867
- X.preventDefault(), typeof Y == "function" && Y(x);
867
+ V.preventDefault(), typeof W == "function" && W(x);
868
868
  break;
869
869
  }
870
870
  case "ArrowUp": {
871
- X.preventDefault(), typeof Z == "function" && Z(x);
871
+ V.preventDefault(), typeof Z == "function" && Z(x);
872
872
  break;
873
873
  }
874
874
  case "ArrowDown": {
875
- X.preventDefault(), typeof T == "function" && T(x);
875
+ V.preventDefault(), typeof T == "function" && T(x);
876
876
  break;
877
877
  }
878
878
  }
879
- lo(u, X);
879
+ lo(h, V);
880
880
  }
881
881
  }, ee = () => {
882
- D || no(u, d);
882
+ D || no(h, d);
883
883
  };
884
- return d.className = `pointer pointer-${x}`, d.addEventListener("keydown", W), d.addEventListener("click", ee), { $pointer: d, get percent() {
884
+ return d.className = `pointer pointer-${x}`, d.addEventListener("keydown", X), d.addEventListener("click", ee), { $pointer: d, get percent() {
885
885
  return v;
886
886
  }, get disabled() {
887
887
  return D;
888
- }, set disabled(X) {
889
- ce(X);
888
+ }, set disabled(V) {
889
+ ce(V);
890
890
  }, updatePosition: Q, isClicked: ne, setCallbacks: q, setAttr: Te, getAttr: Ee, destroy: () => {
891
- d.removeEventListener("keydown", W), d.removeEventListener("click", ee), d.remove();
891
+ d.removeEventListener("keydown", X), d.removeEventListener("click", ee), d.remove();
892
892
  } };
893
- }, co = (u) => {
894
- if (u == null)
893
+ }, co = (h) => {
894
+ if (h == null)
895
895
  return;
896
- if (Array.isArray(u))
897
- return u;
898
- if (u.trim() === "")
896
+ if (Array.isArray(h))
897
+ return h;
898
+ if (h.trim() === "")
899
899
  return;
900
- let d = u.split(","), x = [], v = !0;
900
+ let d = h.split(","), x = [], v = !0;
901
901
  for (let R = 0; R < d.length; R++) {
902
- let Y = d[R].trim();
903
- Y !== "" && (x.push(Y), $e(Y) || (v = !1));
902
+ let W = d[R].trim();
903
+ W !== "" && (x.push(W), $e(W) || (v = !1));
904
904
  }
905
905
  return v ? x.map((R) => Number(R)) : x;
906
- }, uo = (u, d) => d ? d.findIndex((x) => x === u || x.toString().trim() === u.toString().trim()) : -1, ho = (u) => ({ updatePosition: (d, x, v, R) => {
906
+ }, ho = (h, d) => d ? d.findIndex((x) => x === h || x.toString().trim() === h.toString().trim()) : -1, uo = (h) => ({ updatePosition: (d, x, v, R) => {
907
907
  if (x.length <= 0)
908
908
  return;
909
- let Y = x.length === 1, Z = x[0], T = x[x.length - 1];
910
- d === xe ? (u.style.removeProperty("width"), u.style.removeProperty("right"), u.style.removeProperty("left"), Y ? u.style.height = `${Z}%` : u.style.height = `${Math.abs(Z - T)}%`, R ? (u.style.bottom = "0%", Y ? u.style.top = "auto" : u.style.top = `${Math.min(100 - T, 100 - Z)}%`) : (u.style.bottom = "auto", Y ? u.style.top = "0%" : u.style.top = `${Math.min(Z, T)}%`)) : (u.style.removeProperty("height"), u.style.removeProperty("top"), u.style.removeProperty("bottom"), Y ? u.style.width = `${Z}%` : u.style.width = `${Math.abs(Z - T)}%`, v ? (u.style.right = "0%", Y ? u.style.left = "auto" : u.style.left = `${Math.min(100 - T, 100 - Z)}%`) : (u.style.right = "auto", Y ? u.style.left = "0%" : u.style.left = `${Math.min(Z, T)}%`));
911
- } }), Zi = "--animate-onclick", fo = "--width", po = "--height", go = "--panel-bg-border-radius", mo = "--panel-bg", yo = "--panel-bg-hover", vo = "--panel-bg-fill", bo = "--pointer-width", xo = "--pointer-height", wo = "--pointer-border-radius", $o = "--pointer-bg", _o = "--pointer-bg-hover", Eo = "--pointer-bg-focus", So = "--pointer-shadow", Ao = "--pointer-shadow-hover", Mo = "--pointer-shadow-focus", Oo = "--pointer-border", Po = "--pointer-border-hover", Lo = "--pointer-border-focus", lr = (u, d, x) => {
909
+ let W = x.length === 1, Z = x[0], T = x[x.length - 1];
910
+ d === xe ? (h.style.removeProperty("width"), h.style.removeProperty("right"), h.style.removeProperty("left"), W ? h.style.height = `${Z}%` : h.style.height = `${Math.abs(Z - T)}%`, R ? (h.style.bottom = "0%", W ? h.style.top = "auto" : h.style.top = `${Math.min(100 - T, 100 - Z)}%`) : (h.style.bottom = "auto", W ? h.style.top = "0%" : h.style.top = `${Math.min(Z, T)}%`)) : (h.style.removeProperty("height"), h.style.removeProperty("top"), h.style.removeProperty("bottom"), W ? h.style.width = `${Z}%` : h.style.width = `${Math.abs(Z - T)}%`, v ? (h.style.right = "0%", W ? h.style.left = "auto" : h.style.left = `${Math.min(100 - T, 100 - Z)}%`) : (h.style.right = "auto", W ? h.style.left = "0%" : h.style.left = `${Math.min(Z, T)}%`));
911
+ } }), Zi = "--animate-onclick", fo = "--width", po = "--height", go = "--panel-bg-border-radius", mo = "--panel-bg", yo = "--panel-bg-hover", vo = "--panel-bg-fill", bo = "--pointer-width", xo = "--pointer-height", wo = "--pointer-border-radius", $o = "--pointer-bg", _o = "--pointer-bg-hover", Eo = "--pointer-bg-focus", So = "--pointer-shadow", Ao = "--pointer-shadow-hover", Mo = "--pointer-shadow-focus", Oo = "--pointer-border", Po = "--pointer-border-hover", Lo = "--pointer-border-focus", lr = (h, d, x) => {
912
912
  let v = /* @__PURE__ */ new Map();
913
- for (let R of u.attributes) {
914
- let Y = R.nodeName.trim().toLowerCase();
915
- if (!d.test(Y))
913
+ for (let R of h.attributes) {
914
+ let W = R.nodeName.trim().toLowerCase();
915
+ if (!d.test(W))
916
916
  continue;
917
- let Z = Y.replace(/\D/g, "").trim(), T = Z === "" || Z === "0" || Z === "1" ? 0 : ie(Z, 0) - 1, D = x && typeof x == "function" ? x(R.value) : R.value;
917
+ let Z = W.replace(/\D/g, "").trim(), T = Z === "" || Z === "0" || Z === "1" ? 0 : ie(Z, 0) - 1, D = x && typeof x == "function" ? x(R.value) : R.value;
918
918
  v.set(T, D);
919
919
  }
920
920
  return v;
921
- }, Co = (u) => {
922
- if (!u)
921
+ }, Co = (h) => {
922
+ if (!h)
923
923
  return null;
924
- let d = u.getAttribute(Ae);
924
+ let d = h.getAttribute(Ae);
925
925
  if (!d)
926
926
  return null;
927
927
  let x = d.split(";"), v = [];
928
928
  for (let R of x)
929
929
  R.trim() !== "" && v.push(R.trim());
930
930
  return v;
931
- }, Qi = [[fo, _, "sliderWidth", null], [po, A, "sliderHeight", null], [go, k, "sliderRadius", null], [mo, F, "sliderBg", null], [yo, H, "sliderBgHover", null], [vo, I, "sliderBgFill", null], [bo, te, "pointer#Width", /^pointer([0-9]*)-width$/], [xo, le, "pointer#Height", /^pointer([0-9]*)-height$/], [wo, P, "pointer#Radius", /^pointer([0-9]*)-radius$/], [$o, L, "pointer#Bg", /^pointer([0-9]*)-bg$/], [_o, M, "pointer#BgHover", /^pointer([0-9]*)-bg-hover$/], [Eo, j, "pointer#BgFocus", /^pointer([0-9]*)-bg-focus$/], [So, C, "pointer#Shadow", /^pointer([0-9]*)-shadow$/], [Ao, K, "pointer#ShadowHover", /^pointer([0-9]*)-shadow-hover$/], [Mo, z, "pointer#ShadowFocus", /^pointer([0-9]*)-shadow-focus$/], [Oo, se, "pointer#Border", /^pointer([0-9]*)-border$/], [Po, re, "pointer#BorderHover", /^pointer([0-9]*)-border-hover$/], [Lo, ye, "pointer#BorderFocus", /^pointer([0-9]*)-border-focus$/]], ko = (u, d, x) => {
932
- let v = null, R = [], Y = /* @__PURE__ */ new Map(), Z = (W, ee = d) => {
933
- let X = [...ee.classList];
934
- for (let he of X)
935
- he.startsWith(W) && d.classList.remove(he);
931
+ }, Qi = [[fo, _, "sliderWidth", null], [po, A, "sliderHeight", null], [go, k, "sliderRadius", null], [mo, F, "sliderBg", null], [yo, H, "sliderBgHover", null], [vo, I, "sliderBgFill", null], [bo, te, "pointer#Width", /^pointer([0-9]*)-width$/], [xo, le, "pointer#Height", /^pointer([0-9]*)-height$/], [wo, P, "pointer#Radius", /^pointer([0-9]*)-radius$/], [$o, L, "pointer#Bg", /^pointer([0-9]*)-bg$/], [_o, M, "pointer#BgHover", /^pointer([0-9]*)-bg-hover$/], [Eo, j, "pointer#BgFocus", /^pointer([0-9]*)-bg-focus$/], [So, C, "pointer#Shadow", /^pointer([0-9]*)-shadow$/], [Ao, K, "pointer#ShadowHover", /^pointer([0-9]*)-shadow-hover$/], [Mo, Y, "pointer#ShadowFocus", /^pointer([0-9]*)-shadow-focus$/], [Oo, se, "pointer#Border", /^pointer([0-9]*)-border$/], [Po, re, "pointer#BorderHover", /^pointer([0-9]*)-border-hover$/], [Lo, ye, "pointer#BorderFocus", /^pointer([0-9]*)-border-focus$/]], ko = (h, d, x) => {
932
+ let v = null, R = [], W = /* @__PURE__ */ new Map(), Z = (X, ee = d) => {
933
+ let V = [...ee.classList];
934
+ for (let ue of V)
935
+ ue.startsWith(X) && d.classList.remove(ue);
936
936
  }, T = () => {
937
937
  Z("shape");
938
- let W = d.querySelectorAll(".pointer");
939
- for (let ee of W)
938
+ let X = d.querySelectorAll(".pointer");
939
+ for (let ee of X)
940
940
  Z("shape", ee);
941
- }, D = (W) => {
942
- v = W, Z("theme-"), typeof W == "string" && d.classList.add(`theme-${W}`);
941
+ }, D = (X) => {
942
+ v = X, Z("theme-"), typeof X == "string" && d.classList.add(`theme-${X}`);
943
943
  }, Q = () => {
944
944
  if (T(), !(R.length <= 0)) {
945
945
  d.classList.add("shape", `shape-${R[0]}`);
946
- for (let W = 1; W < R.length; W++) {
947
- let ee = R[W];
946
+ for (let X = 1; X < R.length; X++) {
947
+ let ee = R[X];
948
948
  if (!ee)
949
949
  continue;
950
- let X = d.querySelector(`.pointer-${W}`);
951
- !X || X.classList.add("shape", `shape-${ee}`);
950
+ let V = d.querySelector(`.pointer-${X}`);
951
+ !V || V.classList.add("shape", `shape-${ee}`);
952
952
  }
953
953
  }
954
- }, ne = (W, ee) => {
955
- R[W] = ee, Q();
954
+ }, ne = (X, ee) => {
955
+ R[X] = ee, Q();
956
956
  }, q = () => {
957
957
  T();
958
- let W = lr(u, /^pointer([0-9]*)-shape$/);
959
- if (!(W.size <= 0)) {
960
- for (let ee of W) {
961
- let X = ee[0];
962
- R[X] = ee[1];
958
+ let X = lr(h, /^pointer([0-9]*)-shape$/);
959
+ if (!(X.size <= 0)) {
960
+ for (let ee of X) {
961
+ let V = ee[0];
962
+ R[V] = ee[1];
963
963
  }
964
964
  Q();
965
965
  }
966
- }, ce = (W, ee) => `${W}-${ee}`, Te = (W, ee, X) => {
967
- let he = x[X];
968
- if (!he)
966
+ }, ce = (X, ee) => `${X}-${ee}`, Te = (X, ee, V) => {
967
+ let ue = x[V];
968
+ if (!ue)
969
969
  return;
970
- let we = X === 0 ? d : he.$pointer;
970
+ let we = V === 0 ? d : ue.$pointer;
971
971
  if (ee == null) {
972
- Y.has(ce(W, X)) && Y.delete(ce(W, X)), we.style.removeProperty(W);
972
+ W.has(ce(X, V)) && W.delete(ce(X, V)), we.style.removeProperty(X);
973
973
  return;
974
974
  }
975
- Y.set(ce(W, X), ee), we.style.setProperty(W, ee);
976
- }, Ee = (W, ee) => Y.get(ce(W, ee));
975
+ W.set(ce(X, V), ee), we.style.setProperty(X, ee);
976
+ }, Ee = (X, ee) => W.get(ce(X, ee));
977
977
  return (() => {
978
- for (let W of Qi) {
979
- let [ee, X, he, we] = W;
978
+ for (let X of Qi) {
979
+ let [ee, V, ue, we] = X;
980
980
  if (we) {
981
- let pe = lr(u, we);
981
+ let pe = lr(h, we);
982
982
  for (let ge of pe) {
983
983
  let Oe = ge[0], Pe = ge[1];
984
984
  Te(ee, Pe, Oe);
985
985
  }
986
986
  } else {
987
- let pe = u.getAttribute(X);
987
+ let pe = h.getAttribute(V);
988
988
  Te(ee, pe, 0);
989
989
  }
990
990
  let be = [];
991
- if (he.indexOf("#") === -1)
992
- be.push([he, 0]);
991
+ if (ue.indexOf("#") === -1)
992
+ be.push([ue, 0]);
993
993
  else {
994
- be.push([he.replace("#", ""), 0]), be.push([he.replace("#", "0"), 0]), be.push([he.replace("#", "1"), 0]);
994
+ be.push([ue.replace("#", ""), 0]), be.push([ue.replace("#", "0"), 0]), be.push([ue.replace("#", "1"), 0]);
995
995
  for (let pe = 1; pe < x.length; pe++)
996
- be.push([he.replace("#", (pe + 1).toString()), pe]);
996
+ be.push([ue.replace("#", (pe + 1).toString()), pe]);
997
997
  }
998
998
  for (let pe of be)
999
999
  try {
1000
1000
  let ge = pe[0], Oe = pe[1];
1001
- Object.prototype.hasOwnProperty.call(u, ge) || Object.defineProperty(u, ge, { get() {
1001
+ Object.prototype.hasOwnProperty.call(h, ge) || Object.defineProperty(h, ge, { get() {
1002
1002
  return Ee(ee, Oe);
1003
1003
  }, set: (Pe) => {
1004
1004
  Te(ee, Pe, Oe);
@@ -1007,16 +1007,16 @@ const ys = Symbol.for(""), $l = (t) => {
1007
1007
  console.error(ge);
1008
1008
  }
1009
1009
  }
1010
- D(u.getAttribute(U)), q();
1010
+ D(h.getAttribute(z)), q();
1011
1011
  })(), { setStyle: Te, getStyle: Ee, get theme() {
1012
1012
  return v;
1013
- }, set theme(W) {
1014
- D(W);
1013
+ }, set theme(X) {
1014
+ D(X);
1015
1015
  }, get pointerShapes() {
1016
1016
  return R;
1017
1017
  }, setPointerShape: ne };
1018
- }, St = "animate-on-click", en = "range-dragging", Ro = (u, d, x, v) => {
1019
- let R = [], Y = (ne) => {
1018
+ }, St = "animate-on-click", en = "range-dragging", Ro = (h, d, x, v) => {
1019
+ let R = [], W = (ne) => {
1020
1020
  for (let q of R)
1021
1021
  q.update && typeof q.update == "function" && q.update(ne);
1022
1022
  }, Z = () => {
@@ -1030,7 +1030,7 @@ const ys = Symbol.for(""), $l = (t) => {
1030
1030
  for (let q of ne.gettersAndSetters)
1031
1031
  if (!(!q.name || !q.attributes))
1032
1032
  try {
1033
- Object.prototype.hasOwnProperty.call(u, q.name) || Object.defineProperty(u, q.name, q.attributes);
1033
+ Object.prototype.hasOwnProperty.call(h, q.name) || Object.defineProperty(h, q.name, q.attributes);
1034
1034
  } catch (ce) {
1035
1035
  console.error("defineSettersGetters error:", ce);
1036
1036
  }
@@ -1039,36 +1039,36 @@ const ys = Symbol.for(""), $l = (t) => {
1039
1039
  var q;
1040
1040
  if (!ne.css)
1041
1041
  return;
1042
- let ce = (q = u.shadowRoot) == null ? void 0 : q.querySelector("style");
1042
+ let ce = (q = h.shadowRoot) == null ? void 0 : q.querySelector("style");
1043
1043
  !ce || (ce.innerHTML += ne.css);
1044
1044
  };
1045
1045
  return { init: () => {
1046
1046
  if (window.tcRangeSliderPlugins)
1047
1047
  for (let ne of window.tcRangeSliderPlugins) {
1048
1048
  let q = ne();
1049
- R.push(q), q.init && typeof q.init == "function" && (q.init(u, d, x, v), D(q), Q(q));
1049
+ R.push(q), q.init && typeof q.init == "function" && (q.init(h, d, x, v), D(q), Q(q));
1050
1050
  }
1051
- }, update: Y, onAttrChange: T, destroy: Z };
1052
- }, To = 10, tn = 20, Io = (u, d) => {
1051
+ }, update: W, onAttrChange: T, destroy: Z };
1052
+ }, To = 10, tn = 20, Io = (h, d) => {
1053
1053
  let x = /* @__PURE__ */ new Map(), v = /^value([0-9]*)$/;
1054
- for (let T of u.attributes) {
1054
+ for (let T of h.attributes) {
1055
1055
  let D = T.nodeName.trim().toLowerCase();
1056
1056
  if (!v.test(D))
1057
1057
  continue;
1058
1058
  let Q = D.replace("value", "").trim(), ne = Q === "" || Q === "0" || Q === "1" ? 0 : ie(Q, 0) - 1, q = $e(T.value) ? ie(T.value, 0) : T.value;
1059
1059
  x.set(ne, q);
1060
1060
  }
1061
- let R = Math.max(...Array.from(x.keys())), Y = [];
1062
- Y.push([Nr(u, d, 0), x.get(0)]);
1061
+ let R = Math.max(...Array.from(x.keys())), W = [];
1062
+ W.push([Nr(h, d, 0), x.get(0)]);
1063
1063
  let Z = d;
1064
1064
  for (let T = 1; T <= R; T++) {
1065
1065
  let D = d.cloneNode(!0);
1066
- Z.after(D), Z = D, Y.push([Nr(u, D, T), x.get(T)]);
1066
+ Z.after(D), Z = D, W.push([Nr(h, D, T), x.get(T)]);
1067
1067
  }
1068
- return Y;
1069
- }, rn = (u, d, x, v, R, Y, Z) => {
1068
+ return W;
1069
+ }, rn = (h, d, x, v, R, W, Z) => {
1070
1070
  try {
1071
- Object.defineProperty(u, v, { configurable: !0, get() {
1071
+ Object.defineProperty(h, v, { configurable: !0, get() {
1072
1072
  if (!d)
1073
1073
  return;
1074
1074
  let T = d.pointers[x];
@@ -1078,17 +1078,17 @@ const ys = Symbol.for(""), $l = (t) => {
1078
1078
  return $e(D) ? ie(D, D) : D;
1079
1079
  }, set: (T) => {
1080
1080
  d.pointers[x] ? d == null || d.setValue(T, x) : d == null || d.addPointer(T);
1081
- } }), Object.defineProperty(u, R, { configurable: !0, get() {
1081
+ } }), Object.defineProperty(h, R, { configurable: !0, get() {
1082
1082
  var T, D;
1083
1083
  return (D = (T = d == null ? void 0 : d.pointers[x]) == null ? void 0 : T.getAttr("aria-label")) != null ? D : void 0;
1084
1084
  }, set: (T) => {
1085
1085
  !d || d.setAriaLabel(x, T);
1086
- } }), Object.defineProperty(u, Y, { configurable: !0, get() {
1086
+ } }), Object.defineProperty(h, W, { configurable: !0, get() {
1087
1087
  var T, D;
1088
1088
  return (D = (T = d == null ? void 0 : d.styles) == null ? void 0 : T.pointerShapes[x]) != null ? D : null;
1089
1089
  }, set: (T) => {
1090
1090
  !d || !d.styles || d.styles.setPointerShape(x, T);
1091
- } }), Object.defineProperty(u, Z, { configurable: !0, get() {
1091
+ } }), Object.defineProperty(h, Z, { configurable: !0, get() {
1092
1092
  var T;
1093
1093
  return (T = d == null ? void 0 : d.pointers[x].disabled) != null ? T : !1;
1094
1094
  }, set: (T) => {
@@ -1100,66 +1100,66 @@ const ys = Symbol.for(""), $l = (t) => {
1100
1100
  } catch (T) {
1101
1101
  console.error(T);
1102
1102
  }
1103
- }, Do = (u, d) => {
1103
+ }, Do = (h, d) => {
1104
1104
  let x = [["value", "ariaLabel", "pointerShape", "pointerDisabled", 0], ["value0", "ariaLabel0", "pointerShape0", "pointer0Disabled", 0], ["value1", "ariaLabel1", "pointerShape1", "pointer1Disabled", 0]];
1105
1105
  for (let v = 2; v < To; v++)
1106
1106
  x.push([`value${v}`, `ariaLabel${v}`, `pointer${v}Shape`, `pointer${v}Disabled`, v - 1]);
1107
1107
  for (let v of x)
1108
- rn(u, d, v[4], v[0], v[1], v[2], v[3]);
1109
- }, nn = (u, d, x) => {
1108
+ rn(h, d, v[4], v[0], v[1], v[2], v[3]);
1109
+ }, nn = (h, d, x) => {
1110
1110
  var v;
1111
1111
  let R = (v = x.shadowRoot) == null ? void 0 : v.querySelector(".container");
1112
1112
  if (R)
1113
- for (let Y of u)
1114
- d ? R.prepend(Y.$pointer) : R.append(Y.$pointer);
1115
- }, jo = (u, d) => {
1116
- if (!(!d || u.length <= 1)) {
1117
- for (let x of u)
1113
+ for (let W of h)
1114
+ d ? R.prepend(W.$pointer) : R.append(W.$pointer);
1115
+ }, jo = (h, d) => {
1116
+ if (!(!d || h.length <= 1)) {
1117
+ for (let x of h)
1118
1118
  x.$pointer.style.zIndex = tn.toString();
1119
1119
  d.$pointer.style.zIndex = (tn * 2).toString();
1120
1120
  }
1121
- }, Br = 0, qt = 100, At = 2, sn = "0.3s", No = (u, d, x) => {
1122
- let v = x.map((h) => h[0]), R = null, Y = null, Z = null, T = null, D = Br, Q = qt, ne, q, ce = Me, Te = At, Ee = !1, W = !1, ee = !1, X = 0, he = 1 / 0, we = !1, be, pe, ge = !1, Oe = !1, Pe = !1, st = sn, on = [], ln = (h) => {
1123
- ge || (h.preventDefault && h.preventDefault(), pt(h), window.addEventListener("mousemove", pt), window.addEventListener("mouseup", ar), so(u, h));
1124
- }, ar = (h) => {
1125
- ge || (be = void 0, pe = void 0, window.removeEventListener("mousemove", pt), window.removeEventListener("mouseup", ar), st && d.classList.add(St), oo(u, h));
1126
- }, Ho = (h, $) => {
1121
+ }, Br = 0, qt = 100, At = 2, sn = "0.3s", No = (h, d, x) => {
1122
+ let v = x.map((u) => u[0]), R = null, W = null, Z = null, T = null, D = Br, Q = qt, ne, q, ce = Me, Te = At, Ee = !1, X = !1, ee = !1, V = 0, ue = 1 / 0, we = !1, be, pe, ge = !1, Oe = !1, Pe = !1, st = sn, on = [], ln = (u) => {
1123
+ ge || (u.preventDefault && u.preventDefault(), pt(u), window.addEventListener("mousemove", pt), window.addEventListener("mouseup", ar), so(h, u));
1124
+ }, ar = (u) => {
1125
+ ge || (be = void 0, pe = void 0, window.removeEventListener("mousemove", pt), window.removeEventListener("mouseup", ar), st && d.classList.add(St), oo(h, u));
1126
+ }, Ho = (u, $) => {
1127
1127
  if (v.length <= 0)
1128
1128
  return;
1129
1129
  if (v.length === 1)
1130
- return v[0].isClicked(h) && st && d.classList.remove(St), v[0];
1131
- let N = Uo(h);
1130
+ return v[0].isClicked(u) && st && d.classList.remove(St), v[0];
1131
+ let N = Uo(u);
1132
1132
  if (we) {
1133
- let ae = $, Be = ur(ae);
1133
+ let ae = $, Be = hr(ae);
1134
1134
  Be !== void 0 && (ae = Ne(ae, Be)), N ? (be = ae, pe = 0, st && d.classList.remove(St)) : be !== void 0 && (pe = ae - be, be = ae);
1135
1135
  }
1136
- if (!qo(h) && !N) {
1136
+ if (!qo(u) && !N) {
1137
1137
  for (let ae of v)
1138
- if (!(!ae.isClicked(h) || ae.disabled))
1138
+ if (!(!ae.isClicked(u) || ae.disabled))
1139
1139
  return st && d.classList.remove(St), ae;
1140
1140
  for (let ae of v)
1141
1141
  if (R === ae)
1142
1142
  return ae;
1143
1143
  }
1144
- let ue = 1 / 0, me = null;
1144
+ let he = 1 / 0, me = null;
1145
1145
  for (let ae of v) {
1146
1146
  if (ae.disabled)
1147
1147
  continue;
1148
1148
  let Be = Math.abs($ - ae.percent);
1149
- Be < ue && (ue = Be, me = ae);
1149
+ Be < he && (he = Be, me = ae);
1150
1150
  }
1151
1151
  return me;
1152
- }, an = () => v.findIndex((h) => R === h && !h.disabled), pt = (h) => {
1152
+ }, an = () => v.findIndex((u) => R === u && !u.disabled), pt = (u) => {
1153
1153
  let $;
1154
1154
  if (ce === xe) {
1155
- let { height: ue, top: me } = d.getBoundingClientRect(), ae = h.type.indexOf("mouse") !== -1 ? h.clientY : h.touches[0].clientY;
1156
- $ = Math.min(Math.max(0, ae - me), ue) * 100 / ue;
1155
+ let { height: he, top: me } = d.getBoundingClientRect(), ae = u.type.indexOf("mouse") !== -1 ? u.clientY : u.touches[0].clientY;
1156
+ $ = Math.min(Math.max(0, ae - me), he) * 100 / he;
1157
1157
  } else {
1158
- let { width: ue, left: me } = d.getBoundingClientRect(), ae = h.type.indexOf("mouse") !== -1 ? h.clientX : h.touches[0].clientX;
1159
- $ = Math.min(Math.max(0, ae - me), ue) * 100 / ue;
1158
+ let { width: he, left: me } = d.getBoundingClientRect(), ae = u.type.indexOf("mouse") !== -1 ? u.clientX : u.touches[0].clientX;
1159
+ $ = Math.min(Math.max(0, ae - me), he) * 100 / he;
1160
1160
  }
1161
- if ((Ee || W) && ($ = 100 - $), R = Ho(h.target, $), R && jo(v, R), we && v.length > 1 && pe !== void 0) {
1162
- let ue = v[0], me = v[v.length - 1], ae = ue.percent + pe < 0, Be = me.percent + pe > 100;
1161
+ if ((Ee || X) && ($ = 100 - $), R = Ho(u.target, $), R && jo(v, R), we && v.length > 1 && pe !== void 0) {
1162
+ let he = v[0], me = v[v.length - 1], ae = he.percent + pe < 0, Be = me.percent + pe > 100;
1163
1163
  if (ae || Be)
1164
1164
  return;
1165
1165
  for (let vr = 0; vr < v.length; vr++)
@@ -1168,209 +1168,209 @@ const ys = Symbol.for(""), $l = (t) => {
1168
1168
  }
1169
1169
  let N = an();
1170
1170
  N !== -1 && (Le(N, $), R == null || R.$pointer.focus());
1171
- }, cr = (h) => {
1172
- if (ge || document.activeElement !== u || R != null && R.disabled)
1171
+ }, cr = (u) => {
1172
+ if (ge || document.activeElement !== h || R != null && R.disabled)
1173
1173
  return;
1174
- h.stopPropagation(), h.preventDefault();
1175
- let $ = h.deltaY < 0, N = Ee || W, ue = $ ? !N : N, me = an();
1176
- me !== -1 && (ue ? Ut(me, v[me].percent) : zt(me, v[me].percent));
1177
- }, cn = (h) => {
1178
- ge || Oe || (ce === xe ? W ? Le(h, 100) : Le(h, 0) : Ee ? zt(h, v[h].percent) : Ut(h, v[h].percent));
1179
- }, un = (h) => {
1180
- ge || Oe || (ce === xe ? W ? Le(h, 0) : Le(h, 100) : Ee ? Ut(h, v[h].percent) : zt(h, v[h].percent));
1181
- }, hn = (h) => {
1182
- ge || Oe || (ce === xe ? W ? zt(h, v[h].percent) : Ut(h, v[h].percent) : Ee ? Le(h, 100) : Le(h, 0));
1183
- }, dn = (h) => {
1184
- ge || Oe || (ce === xe ? W ? Ut(h, v[h].percent) : zt(h, v[h].percent) : Ee ? Le(h, 0) : Le(h, 100));
1185
- }, qo = (h) => h.classList.contains("panel"), Uo = (h) => h.classList.contains("panel-fill"), Ut = (h, $) => {
1174
+ u.stopPropagation(), u.preventDefault();
1175
+ let $ = u.deltaY < 0, N = Ee || X, he = $ ? !N : N, me = an();
1176
+ me !== -1 && (he ? Ut(me, v[me].percent) : zt(me, v[me].percent));
1177
+ }, cn = (u) => {
1178
+ ge || Oe || (ce === xe ? X ? Le(u, 100) : Le(u, 0) : Ee ? zt(u, v[u].percent) : Ut(u, v[u].percent));
1179
+ }, hn = (u) => {
1180
+ ge || Oe || (ce === xe ? X ? Le(u, 0) : Le(u, 100) : Ee ? Ut(u, v[u].percent) : zt(u, v[u].percent));
1181
+ }, un = (u) => {
1182
+ ge || Oe || (ce === xe ? X ? zt(u, v[u].percent) : Ut(u, v[u].percent) : Ee ? Le(u, 100) : Le(u, 0));
1183
+ }, dn = (u) => {
1184
+ ge || Oe || (ce === xe ? X ? Ut(u, v[u].percent) : zt(u, v[u].percent) : Ee ? Le(u, 0) : Le(u, 100));
1185
+ }, qo = (u) => u.classList.contains("panel"), Uo = (u) => u.classList.contains("panel-fill"), Ut = (u, $) => {
1186
1186
  if ($ === void 0)
1187
1187
  return;
1188
- let N = ur($);
1189
- N == null && (N = 1), $ -= N, $ < 0 && ($ = 0), Le(h, $);
1190
- }, zt = (h, $) => {
1188
+ let N = hr($);
1189
+ N == null && (N = 1), $ -= N, $ < 0 && ($ = 0), Le(u, $);
1190
+ }, zt = (u, $) => {
1191
1191
  if ($ === void 0)
1192
1192
  return;
1193
- let N = ur($);
1194
- N == null && (N = 1), $ += N, $ > 100 && ($ = 100), Le(h, $);
1193
+ let N = hr($);
1194
+ N == null && (N = 1), $ += N, $ > 100 && ($ = 100), Le(u, $);
1195
1195
  }, gt = () => {
1196
- !T || T.update({ percents: fn(), values: pn(), $pointers: gn(), min: mn(), max: yn(), data: qr(), step: Hr(), round: zr(), type: Ur(), textMin: hr(), textMax: dr(), rightToLeft: Xr(), bottomToTop: Vr(), pointersOverlap: Zr(), pointersMinDistance: Yr(), pointersMaxDistance: Wr(), rangeDragging: Qr(), disabled: Kr(), keyboardDisabled: Gr(), mousewheelDisabled: Jr() });
1196
+ !T || T.update({ percents: fn(), values: pn(), $pointers: gn(), min: mn(), max: yn(), data: qr(), step: Hr(), round: zr(), type: Ur(), textMin: ur(), textMax: dr(), rightToLeft: Xr(), bottomToTop: Vr(), pointersOverlap: Zr(), pointersMinDistance: Yr(), pointersMaxDistance: Wr(), rangeDragging: Qr(), disabled: Kr(), keyboardDisabled: Gr(), mousewheelDisabled: Jr() });
1197
1197
  }, zo = () => {
1198
1198
  gt();
1199
- }, Yo = (h) => {
1199
+ }, Yo = (u) => {
1200
1200
  if (!(ee || v.length <= 1 || Q === D))
1201
- if (h === 0) {
1202
- let $ = he * 100 / (Q - D);
1203
- return Math.max(0, v[h + 1].percent - $);
1201
+ if (u === 0) {
1202
+ let $ = ue * 100 / (Q - D);
1203
+ return Math.max(0, v[u + 1].percent - $);
1204
1204
  } else {
1205
- let $ = X * 100 / (Q - D);
1206
- return Math.min(v[h - 1].percent + $, 100);
1205
+ let $ = V * 100 / (Q - D);
1206
+ return Math.min(v[u - 1].percent + $, 100);
1207
1207
  }
1208
- }, Wo = (h) => {
1208
+ }, Wo = (u) => {
1209
1209
  if (!(ee || v.length <= 1 || Q === D))
1210
- if (h === v.length - 1) {
1211
- let $ = he * 100 / (Q - D);
1212
- return Math.min(v[h - 1].percent + $, 100);
1210
+ if (u === v.length - 1) {
1211
+ let $ = ue * 100 / (Q - D);
1212
+ return Math.min(v[u - 1].percent + $, 100);
1213
1213
  } else {
1214
- let $ = X * 100 / (Q - D);
1215
- return Math.max(0, v[h + 1].percent - $);
1214
+ let $ = V * 100 / (Q - D);
1215
+ return Math.max(0, v[u + 1].percent - $);
1216
1216
  }
1217
- }, ur = (h) => {
1217
+ }, hr = (u) => {
1218
1218
  let $;
1219
1219
  if (typeof ne == "function") {
1220
- let N = Je(0, 100, D, Q, h);
1221
- $ = ne(N, h);
1220
+ let N = Je(0, 100, D, Q, u);
1221
+ $ = ne(N, u);
1222
1222
  } else
1223
1223
  $ = ne;
1224
1224
  if ($e($)) {
1225
1225
  let N = Q - D;
1226
1226
  return $ = N === 0 ? 0 : $ * 100 / N, $;
1227
1227
  }
1228
- }, Mt = (h) => {
1229
- if (h === void 0)
1228
+ }, Mt = (u) => {
1229
+ if (u === void 0)
1230
1230
  return;
1231
- let $ = Je(0, 100, D, Q, h);
1231
+ let $ = Je(0, 100, D, Q, u);
1232
1232
  return q !== void 0 ? q[Math.round($)] : ft($, Te);
1233
- }, hr = () => q !== void 0 ? q[D] : D, dr = () => q !== void 0 ? q[Q] : Q, Hr = () => ne, Xo = (h) => {
1233
+ }, ur = () => q !== void 0 ? q[D] : D, dr = () => q !== void 0 ? q[Q] : Q, Hr = () => ne, Xo = (u) => {
1234
1234
  var $;
1235
- return h <= 0 || ee ? hr() : ($ = Mt(v[h - 1].percent)) != null ? $ : "";
1236
- }, Vo = (h) => {
1235
+ return u <= 0 || ee ? ur() : ($ = Mt(v[u - 1].percent)) != null ? $ : "";
1236
+ }, Vo = (u) => {
1237
1237
  var $;
1238
- return v.length <= 1 || h >= v.length - 1 || ee ? dr() : ($ = Mt(v[h + 1].percent)) != null ? $ : "";
1239
- }, fn = () => v.map((h) => h.percent), pn = () => v.map((h) => Mt(h.percent)), gn = () => v.map((h) => h.$pointer), mn = () => D, yn = () => Q, qr = () => q, Ur = () => ce, zr = () => Te, Yr = () => X, Wr = () => he, Ko = (h) => on[h], Xr = () => Ee, Vr = () => W, Kr = () => ge, Gr = () => Oe, Jr = () => Pe, Zr = () => ee, Qr = () => we, Le = (h, $) => {
1238
+ return v.length <= 1 || u >= v.length - 1 || ee ? dr() : ($ = Mt(v[u + 1].percent)) != null ? $ : "";
1239
+ }, fn = () => v.map((u) => u.percent), pn = () => v.map((u) => Mt(u.percent)), gn = () => v.map((u) => u.$pointer), mn = () => D, yn = () => Q, qr = () => q, Ur = () => ce, zr = () => Te, Yr = () => V, Wr = () => ue, Ko = (u) => on[u], Xr = () => Ee, Vr = () => X, Kr = () => ge, Gr = () => Oe, Jr = () => Pe, Zr = () => ee, Qr = () => we, Le = (u, $) => {
1240
1240
  if ($ === void 0)
1241
1241
  return;
1242
- let N = ur($);
1242
+ let N = hr($);
1243
1243
  N !== void 0 && ($ = Ne($, N));
1244
- let ue = v[h];
1245
- if (!ue)
1244
+ let he = v[u];
1245
+ if (!he)
1246
1246
  return;
1247
- let me = ue.updatePosition($, Yo(h), Wo(h), ce, Ee, W);
1248
- Y == null || Y.updatePosition(ce, v.map((ae) => ae.percent), Ee, W), gt();
1247
+ let me = he.updatePosition($, Yo(u), Wo(u), ce, Ee, X);
1248
+ W == null || W.updatePosition(ce, v.map((ae) => ae.percent), Ee, X), gt();
1249
1249
  for (let ae of v) {
1250
1250
  let Be = Mt(ae.percent);
1251
1251
  Be !== void 0 && (ae.setAttr("aria-valuenow", Be.toString()), ae.setAttr("aria-valuetext", Be.toString()));
1252
1252
  }
1253
- Jo(), me && ao(u, v.map((ae) => Mt(ae.percent)));
1253
+ Jo(), me && ao(h, v.map((ae) => Mt(ae.percent)));
1254
1254
  }, Ue = () => {
1255
- for (let h = 0; h < v.length; h++)
1256
- Le(h, v[h].percent);
1257
- }, Go = (h, $) => {
1258
- D = q !== void 0 ? 0 : ie(h, Br), Q = q !== void 0 ? q.length - 1 : ie($, qt), fr(D), pr(Q);
1255
+ for (let u = 0; u < v.length; u++)
1256
+ Le(u, v[u].percent);
1257
+ }, Go = (u, $) => {
1258
+ D = q !== void 0 ? 0 : ie(u, Br), Q = q !== void 0 ? q.length - 1 : ie($, qt), fr(D), pr(Q);
1259
1259
  }, Jo = () => {
1260
- var h, $;
1260
+ var u, $;
1261
1261
  for (let N = 0; N < v.length; N++) {
1262
- let ue = v[N];
1263
- ue.setAttr("aria-valuemin", ((h = Xo(N)) != null ? h : "").toString()), ue.setAttr("aria-valuemax", (($ = Vo(N)) != null ? $ : "").toString());
1262
+ let he = v[N];
1263
+ he.setAttr("aria-valuemin", ((u = Xo(N)) != null ? u : "").toString()), he.setAttr("aria-valuemax", (($ = Vo(N)) != null ? $ : "").toString());
1264
1264
  }
1265
- }, fr = (h) => {
1266
- D = ie(h, Br), D > Q && (Q = D + qt), Ue();
1267
- }, pr = (h) => {
1268
- Q = ie(h, qt), Q < D && (Q = D + qt), Ue();
1269
- }, vn = (h) => {
1265
+ }, fr = (u) => {
1266
+ D = ie(u, Br), D > Q && (Q = D + qt), Ue();
1267
+ }, pr = (u) => {
1268
+ Q = ie(u, qt), Q < D && (Q = D + qt), Ue();
1269
+ }, vn = (u) => {
1270
1270
  ee = !0;
1271
- for (let $ = 0; $ < h.length; $++)
1272
- gr(h[$], $);
1271
+ for (let $ = 0; $ < u.length; $++)
1272
+ gr(u[$], $);
1273
1273
  ee = !1;
1274
- for (let $ = 0; $ < h.length; $++)
1275
- gr(h[$], $);
1276
- }, gr = (h, $) => {
1274
+ for (let $ = 0; $ < u.length; $++)
1275
+ gr(u[$], $);
1276
+ }, gr = (u, $) => {
1277
1277
  let N;
1278
- q !== void 0 ? (N = h == null ? 0 : uo(h, q), N === -1 && (N = 0)) : (N = ie(h, D), N < D && (N = D), N > Q && (N = Q));
1279
- let ue = Je(D, Q, 0, 100, N);
1280
- Le($, ue);
1281
- }, mr = (h) => {
1282
- if (h == null) {
1278
+ q !== void 0 ? (N = u == null ? 0 : ho(u, q), N === -1 && (N = 0)) : (N = ie(u, D), N < D && (N = D), N > Q && (N = Q));
1279
+ let he = Je(D, Q, 0, 100, N);
1280
+ Le($, he);
1281
+ }, mr = (u) => {
1282
+ if (u == null) {
1283
1283
  ne = void 0;
1284
1284
  return;
1285
1285
  }
1286
- if (typeof h == "function") {
1287
- ne = h, Ue();
1286
+ if (typeof u == "function") {
1287
+ ne = u, Ue();
1288
1288
  return;
1289
1289
  }
1290
- if ($e(h)) {
1291
- ne = ie(h, 1);
1290
+ if ($e(u)) {
1291
+ ne = ie(u, 1);
1292
1292
  let $ = Math.abs(Q - D);
1293
1293
  ne > $ && (ne = void 0), Ue();
1294
1294
  return;
1295
1295
  }
1296
1296
  ne = void 0;
1297
- }, ei = (h) => {
1298
- ee = h, Ue();
1299
- }, ti = (h) => {
1300
- (!$e(h) || h < 0) && (h = 0), X = h;
1301
- }, ri = (h) => {
1302
- (!$e(h) || h < 0) && (h = 1 / 0), he = h;
1303
- }, ii = (h) => {
1304
- ge = h, d.classList.toggle("disabled", ge), ge ? d.setAttribute("aria-disabled", "true") : d.hasAttribute("aria-disabled") && d.removeAttribute("aria-disabled");
1305
- }, bn = (h) => {
1306
- Oe = h;
1307
- }, xn = (h) => {
1308
- Pe = h, Pe ? document.removeEventListener("wheel", cr) : document.addEventListener("wheel", cr, { passive: !1 });
1309
- }, ni = (h) => {
1310
- if (h == null) {
1297
+ }, ei = (u) => {
1298
+ ee = u, Ue();
1299
+ }, ti = (u) => {
1300
+ (!$e(u) || u < 0) && (u = 0), V = u;
1301
+ }, ri = (u) => {
1302
+ (!$e(u) || u < 0) && (u = 1 / 0), ue = u;
1303
+ }, ii = (u) => {
1304
+ ge = u, d.classList.toggle("disabled", ge), ge ? d.setAttribute("aria-disabled", "true") : d.hasAttribute("aria-disabled") && d.removeAttribute("aria-disabled");
1305
+ }, bn = (u) => {
1306
+ Oe = u;
1307
+ }, xn = (u) => {
1308
+ Pe = u, Pe ? document.removeEventListener("wheel", cr) : document.addEventListener("wheel", cr, { passive: !1 });
1309
+ }, ni = (u) => {
1310
+ if (u == null) {
1311
1311
  q = void 0;
1312
1312
  return;
1313
1313
  }
1314
- if (q = co(h), q === void 0 || q.length <= 0) {
1314
+ if (q = co(u), q === void 0 || q.length <= 0) {
1315
1315
  q = void 0;
1316
1316
  return;
1317
1317
  }
1318
1318
  fr(0), pr(q.length - 1), ne === void 0 && mr(1);
1319
- }, si = (h) => {
1319
+ }, si = (u) => {
1320
1320
  var $;
1321
- typeof h == "string" ? ce = h.trim().toLowerCase() === xe ? xe : Me : ce = Me;
1322
- let N = ($ = u.shadowRoot) == null ? void 0 : $.querySelector(".range-slider-box");
1321
+ typeof u == "string" ? ce = u.trim().toLowerCase() === xe ? xe : Me : ce = Me;
1322
+ let N = ($ = h.shadowRoot) == null ? void 0 : $.querySelector(".range-slider-box");
1323
1323
  if (!N)
1324
1324
  return;
1325
1325
  N.className = `range-slider-box type-${ce}`, Ue();
1326
- let ue = ce === xe ? "vertical" : "horizontal";
1326
+ let he = ce === xe ? "vertical" : "horizontal";
1327
1327
  for (let me of v)
1328
- me.setAttr("aria-orientation", ue);
1329
- }, oi = (h) => {
1330
- Ee = h, v.length > 1 && nn(v, Ee, u), Ue(), gt();
1331
- }, li = (h) => {
1332
- W = h, v.length > 1 && nn(v, W, u), Ue(), gt();
1333
- }, ai = (h) => {
1334
- Te = ie(h, At), Te < 0 && (Te = At), gt();
1335
- }, wn = (h) => {
1336
- h == null || h.toString().trim().toLowerCase() === "false" ? (st = void 0, d.style.removeProperty(Zi), d.classList.remove(St)) : (st = h.toString(), d.style.setProperty(Zi, st), d.classList.add(St));
1337
- }, $n = (h, $) => {
1338
- let N = v[h];
1339
- !N || (N.setAttr("aria-label", $), on[h] = $);
1340
- }, yr = (h) => {
1328
+ me.setAttr("aria-orientation", he);
1329
+ }, oi = (u) => {
1330
+ Ee = u, v.length > 1 && nn(v, Ee, h), Ue(), gt();
1331
+ }, li = (u) => {
1332
+ X = u, v.length > 1 && nn(v, X, h), Ue(), gt();
1333
+ }, ai = (u) => {
1334
+ Te = ie(u, At), Te < 0 && (Te = At), gt();
1335
+ }, wn = (u) => {
1336
+ u == null || u.toString().trim().toLowerCase() === "false" ? (st = void 0, d.style.removeProperty(Zi), d.classList.remove(St)) : (st = u.toString(), d.style.setProperty(Zi, st), d.classList.add(St));
1337
+ }, $n = (u, $) => {
1338
+ let N = v[u];
1339
+ !N || (N.setAttr("aria-label", $), on[u] = $);
1340
+ }, yr = (u) => {
1341
1341
  if (be = void 0, v.length <= 1) {
1342
1342
  we = !1, d.classList.remove(en);
1343
1343
  return;
1344
1344
  }
1345
- we = h, d.classList.toggle(en, we);
1345
+ we = u, d.classList.toggle(en, we);
1346
1346
  }, Zo = () => {
1347
- ii(fe(u.getAttribute(m))), Oe = fe(u.getAttribute(w)), Pe = fe(u.getAttribute(S));
1348
- let h = lr(u, /^pointer([0-9]*)-disabled$/, ($) => fe($));
1349
- for (let $ of h) {
1347
+ ii(fe(h.getAttribute(m))), Oe = fe(h.getAttribute(w)), Pe = fe(h.getAttribute(S));
1348
+ let u = lr(h, /^pointer([0-9]*)-disabled$/, ($) => fe($));
1349
+ for (let $ of u) {
1350
1350
  let N = $[0];
1351
1351
  !v[N] || (v[N].disabled = $[1]);
1352
1352
  }
1353
1353
  }, Qo = () => {
1354
- let h = lr(u, /^aria-label([0-9]*)$/);
1355
- for (let $ of h) {
1354
+ let u = lr(h, /^aria-label([0-9]*)$/);
1355
+ for (let $ of u) {
1356
1356
  let N = $[0];
1357
1357
  $n(N, $[1]);
1358
1358
  }
1359
- }, el = (h) => {
1360
- let $ = v.length, N = v[$ - 1].$pointer, ue = N.cloneNode(!0);
1361
- N.after(ue);
1362
- let me = Nr(u, ue, $);
1363
- return me.setCallbacks(cn, un, hn, dn), v.push(me), gr(h, $), Ue(), gt(), $;
1359
+ }, el = (u) => {
1360
+ let $ = v.length, N = v[$ - 1].$pointer, he = N.cloneNode(!0);
1361
+ N.after(he);
1362
+ let me = Nr(h, he, $);
1363
+ return me.setCallbacks(cn, hn, un, dn), v.push(me), gr(u, $), Ue(), gt(), $;
1364
1364
  }, tl = () => {
1365
- let h = v.length, $ = v[h - 1];
1366
- return $ ? ($.destroy(), v.pop(), v.length <= 1 && yr(!1), Ue(), gt(), h - 1) : -1;
1365
+ let u = v.length, $ = v[u - 1];
1366
+ return $ ? ($.destroy(), v.pop(), v.length <= 1 && yr(!1), Ue(), gt(), u - 1) : -1;
1367
1367
  };
1368
1368
  return (() => {
1369
- var h, $;
1370
- for (let ue of v)
1371
- ue.setCallbacks(cn, un, hn, dn);
1372
- let N = (h = u.shadowRoot) == null ? void 0 : h.querySelector(".panel-fill");
1373
- N && (Y = ho(N)), si(u.getAttribute(O)), oi(fe(u.getAttribute(B))), li(fe(u.getAttribute(g))), Go(u.getAttribute(p), u.getAttribute(b)), mr(u.getAttribute(y)), ni(u.getAttribute(f)), vn(x.map((ue) => ue[1])), ei(fe(u.getAttribute(o))), ti(ie(u.getAttribute(a), 0)), ri(ie(u.getAttribute(l), 1 / 0)), yr(fe(u.getAttribute(c))), ai(ie(u.getAttribute(E), At)), Zo(), Qo(), Z = ko(u, d, v), wn(($ = u.getAttribute(ve)) != null ? $ : sn), d.addEventListener("mousedown", ln), d.addEventListener("mouseup", ar), d.addEventListener("touchmove", pt), d.addEventListener("touchstart", pt), Pe || document.addEventListener("wheel", cr, { passive: !1 }), T = Ro(u, zo, { setValues: vn, setMin: fr, setMax: pr, setStep: mr, setPointersOverlap: ei, setPointersMinDistance: ti, setPointersMaxDistance: ri, setDisabled: ii, setType: si, setRightToLeft: oi, setBottomToTop: li, setRound: ai, setKeyboardDisabled: bn, setMousewheelDisabled: xn, setRangeDragging: yr, setData: ni }, { getPercents: fn, getValues: pn, getPointerElements: gn, getMin: mn, getMax: yn, getStep: Hr, getData: qr, getType: Ur, getRound: zr, getTextMin: hr, getTextMax: dr, isRightToLeft: Xr, isBottomToTop: Vr, isDisabled: Kr, isKeyboardDisabled: Gr, isMousewheelDisabled: Jr, isPointersOverlap: Zr, isRangeDraggingEnabled: Qr, getPointersMinDistance: Yr, getPointersMaxDistance: Wr }), T.init();
1369
+ var u, $;
1370
+ for (let he of v)
1371
+ he.setCallbacks(cn, hn, un, dn);
1372
+ let N = (u = h.shadowRoot) == null ? void 0 : u.querySelector(".panel-fill");
1373
+ N && (W = uo(N)), si(h.getAttribute(O)), oi(fe(h.getAttribute(B))), li(fe(h.getAttribute(g))), Go(h.getAttribute(p), h.getAttribute(b)), mr(h.getAttribute(y)), ni(h.getAttribute(f)), vn(x.map((he) => he[1])), ei(fe(h.getAttribute(o))), ti(ie(h.getAttribute(a), 0)), ri(ie(h.getAttribute(l), 1 / 0)), yr(fe(h.getAttribute(c))), ai(ie(h.getAttribute(E), At)), Zo(), Qo(), Z = ko(h, d, v), wn(($ = h.getAttribute(ve)) != null ? $ : sn), d.addEventListener("mousedown", ln), d.addEventListener("mouseup", ar), d.addEventListener("touchmove", pt), d.addEventListener("touchstart", pt), Pe || document.addEventListener("wheel", cr, { passive: !1 }), T = Ro(h, zo, { setValues: vn, setMin: fr, setMax: pr, setStep: mr, setPointersOverlap: ei, setPointersMinDistance: ti, setPointersMaxDistance: ri, setDisabled: ii, setType: si, setRightToLeft: oi, setBottomToTop: li, setRound: ai, setKeyboardDisabled: bn, setMousewheelDisabled: xn, setRangeDragging: yr, setData: ni }, { getPercents: fn, getValues: pn, getPointerElements: gn, getMin: mn, getMax: yn, getStep: Hr, getData: qr, getType: Ur, getRound: zr, getTextMin: ur, getTextMax: dr, isRightToLeft: Xr, isBottomToTop: Vr, isDisabled: Kr, isKeyboardDisabled: Gr, isMousewheelDisabled: Jr, isPointersOverlap: Zr, isRangeDraggingEnabled: Qr, getPointersMinDistance: Yr, getPointersMaxDistance: Wr }), T.init();
1374
1374
  })(), { get pointers() {
1375
1375
  return v;
1376
1376
  }, get styles() {
@@ -1378,166 +1378,166 @@ const ys = Symbol.for(""), $l = (t) => {
1378
1378
  }, get pluginsManager() {
1379
1379
  return T;
1380
1380
  }, get min() {
1381
- return hr();
1381
+ return ur();
1382
1382
  }, get max() {
1383
1383
  return dr();
1384
1384
  }, get step() {
1385
1385
  return Hr();
1386
1386
  }, get pointersOverlap() {
1387
1387
  return Zr();
1388
- }, set pointersOverlap(h) {
1389
- ei(h);
1388
+ }, set pointersOverlap(u) {
1389
+ ei(u);
1390
1390
  }, get pointersMinDistance() {
1391
1391
  return Yr();
1392
- }, set pointersMinDistance(h) {
1393
- ti(h);
1392
+ }, set pointersMinDistance(u) {
1393
+ ti(u);
1394
1394
  }, get pointersMaxDistance() {
1395
1395
  return Wr();
1396
- }, set pointersMaxDistance(h) {
1397
- ri(h);
1396
+ }, set pointersMaxDistance(u) {
1397
+ ri(u);
1398
1398
  }, get disabled() {
1399
1399
  return Kr();
1400
- }, set disabled(h) {
1401
- ii(h);
1400
+ }, set disabled(u) {
1401
+ ii(u);
1402
1402
  }, get data() {
1403
1403
  return qr();
1404
1404
  }, get type() {
1405
1405
  return Ur();
1406
- }, set type(h) {
1407
- si(h);
1406
+ }, set type(u) {
1407
+ si(u);
1408
1408
  }, get rightToLeft() {
1409
1409
  return Xr();
1410
- }, set rightToLeft(h) {
1411
- oi(h);
1410
+ }, set rightToLeft(u) {
1411
+ oi(u);
1412
1412
  }, get bottomToTop() {
1413
1413
  return Vr();
1414
- }, set bottomToTop(h) {
1415
- li(h);
1414
+ }, set bottomToTop(u) {
1415
+ li(u);
1416
1416
  }, get round() {
1417
1417
  return zr();
1418
- }, set round(h) {
1419
- ai(h);
1418
+ }, set round(u) {
1419
+ ai(u);
1420
1420
  }, get animateOnClick() {
1421
1421
  return st;
1422
- }, set animateOnClick(h) {
1423
- wn(h);
1422
+ }, set animateOnClick(u) {
1423
+ wn(u);
1424
1424
  }, get keyboardDisabled() {
1425
1425
  return Gr();
1426
- }, set keyboardDisabled(h) {
1427
- bn(h);
1426
+ }, set keyboardDisabled(u) {
1427
+ bn(u);
1428
1428
  }, get mousewheelDisabled() {
1429
1429
  return Jr();
1430
- }, set mousewheelDisabled(h) {
1431
- xn(h);
1430
+ }, set mousewheelDisabled(u) {
1431
+ xn(u);
1432
1432
  }, get rangeDragging() {
1433
1433
  return Qr();
1434
- }, set rangeDragging(h) {
1435
- yr(h);
1434
+ }, set rangeDragging(u) {
1435
+ yr(u);
1436
1436
  }, setMin: fr, setMax: pr, setValue: gr, setStep: mr, setData: ni, getTextValue: Mt, setAriaLabel: $n, getAriaLabel: Ko, addPointer: el, removePointer: tl, destroy: () => {
1437
1437
  d.removeEventListener("mousedown", ln), d.removeEventListener("mouseup", ar), d.removeEventListener("touchmove", pt), d.removeEventListener("touchstart", pt), document.removeEventListener("wheel", cr);
1438
- for (let h of v)
1439
- h.destroy();
1438
+ for (let u of v)
1439
+ u.destroy();
1440
1440
  T == null || T.destroy();
1441
1441
  } };
1442
- }, Bo = (u, d, x) => {
1442
+ }, Bo = (h, d, x) => {
1443
1443
  let v = Qi.find(([T, D, Q, ne]) => D.replace("#", "") === d.replace(/\d+/g, ""));
1444
- if (v && u.styles) {
1444
+ if (v && h.styles) {
1445
1445
  let [T, D, Q, ne] = v, q = d.replace(/\D/g, "").trim(), ce = q === "" || q === "0" || q === "1" ? 0 : ie(q, 0) - 1;
1446
- u.styles.setStyle(T, x, ce);
1446
+ h.styles.setStyle(T, x, ce);
1447
1447
  return;
1448
1448
  }
1449
- switch (u && u.pluginsManager && u.pluginsManager.onAttrChange(d, x), d) {
1449
+ switch (h && h.pluginsManager && h.pluginsManager.onAttrChange(d, x), d) {
1450
1450
  case p: {
1451
- u.setMin(x);
1451
+ h.setMin(x);
1452
1452
  break;
1453
1453
  }
1454
1454
  case b: {
1455
- u.setMax(x);
1455
+ h.setMax(x);
1456
1456
  break;
1457
1457
  }
1458
1458
  case y: {
1459
- u.setStep(x);
1459
+ h.setStep(x);
1460
1460
  break;
1461
1461
  }
1462
1462
  case o: {
1463
- u.pointersOverlap = fe(x);
1463
+ h.pointersOverlap = fe(x);
1464
1464
  break;
1465
1465
  }
1466
1466
  case a: {
1467
- u.pointersMinDistance = ie(x, 0);
1467
+ h.pointersMinDistance = ie(x, 0);
1468
1468
  break;
1469
1469
  }
1470
1470
  case c: {
1471
- u.rangeDragging = fe(x);
1471
+ h.rangeDragging = fe(x);
1472
1472
  break;
1473
1473
  }
1474
1474
  case l: {
1475
- u.pointersMaxDistance = ie(x, 1 / 0);
1475
+ h.pointersMaxDistance = ie(x, 1 / 0);
1476
1476
  break;
1477
1477
  }
1478
1478
  case m: {
1479
- u.disabled = fe(x);
1479
+ h.disabled = fe(x);
1480
1480
  break;
1481
1481
  }
1482
1482
  case w: {
1483
- u.keyboardDisabled = fe(x);
1483
+ h.keyboardDisabled = fe(x);
1484
1484
  break;
1485
1485
  }
1486
1486
  case S: {
1487
- u.mousewheelDisabled = fe(x);
1487
+ h.mousewheelDisabled = fe(x);
1488
1488
  break;
1489
1489
  }
1490
1490
  case f: {
1491
- u.setData(x);
1491
+ h.setData(x);
1492
1492
  break;
1493
1493
  }
1494
1494
  case O: {
1495
- u.type = x;
1495
+ h.type = x;
1496
1496
  break;
1497
1497
  }
1498
1498
  case B: {
1499
- u.rightToLeft = fe(x);
1499
+ h.rightToLeft = fe(x);
1500
1500
  break;
1501
1501
  }
1502
1502
  case g: {
1503
- u.bottomToTop = fe(x);
1503
+ h.bottomToTop = fe(x);
1504
1504
  break;
1505
1505
  }
1506
1506
  case E: {
1507
- u.round = ie(x, At);
1507
+ h.round = ie(x, At);
1508
1508
  break;
1509
1509
  }
1510
- case U: {
1511
- u.styles && (u.styles.theme = x);
1510
+ case z: {
1511
+ h.styles && (h.styles.theme = x);
1512
1512
  break;
1513
1513
  }
1514
1514
  case ve: {
1515
- u.animateOnClick = x;
1515
+ h.animateOnClick = x;
1516
1516
  break;
1517
1517
  }
1518
1518
  }
1519
1519
  let R = null;
1520
1520
  if (/^value([0-9]*)$/.test(d) && (R = "value"), /^pointer([0-9]*)-disabled$/.test(d) && (R = "pointer-disabled"), /^aria-label([0-9]*)$/.test(d) && (R = "aria-label"), /^pointer([0-9]*)-shape$/.test(d) && (R = "pointer-shape"), !R)
1521
1521
  return;
1522
- let Y = d.replace(/\D/g, "").trim(), Z = Y === "" || Y === "0" || Y === "1" ? 0 : ie(Y, 0) - 1;
1522
+ let W = d.replace(/\D/g, "").trim(), Z = W === "" || W === "0" || W === "1" ? 0 : ie(W, 0) - 1;
1523
1523
  switch (R) {
1524
1524
  case "value": {
1525
- u.setValue(x, Z);
1525
+ h.setValue(x, Z);
1526
1526
  break;
1527
1527
  }
1528
1528
  case "pointer-disabled": {
1529
- let T = u == null ? void 0 : u.pointers[Z];
1529
+ let T = h == null ? void 0 : h.pointers[Z];
1530
1530
  if (!T)
1531
1531
  return;
1532
1532
  T.disabled = fe(x);
1533
1533
  break;
1534
1534
  }
1535
1535
  case "aria-label": {
1536
- u.setAriaLabel(Z, x);
1536
+ h.setAriaLabel(Z, x);
1537
1537
  break;
1538
1538
  }
1539
1539
  case "pointer-shape": {
1540
- u.styles && u.styles.setPointerShape(Z, x);
1540
+ h.styles && h.styles.setPointerShape(Z, x);
1541
1541
  break;
1542
1542
  }
1543
1543
  }
@@ -1545,162 +1545,162 @@ const ys = Symbol.for(""), $l = (t) => {
1545
1545
  constructor() {
1546
1546
  super(), i(this, "slider"), i(this, "_externalCSSList", []), i(this, "_observer", null), this.attachShadow({ mode: "open" });
1547
1547
  }
1548
- set step(u) {
1549
- this.slider && this.slider.setStep(u);
1548
+ set step(h) {
1549
+ this.slider && this.slider.setStep(h);
1550
1550
  }
1551
1551
  get step() {
1552
- var u;
1553
- return (u = this.slider) == null ? void 0 : u.step;
1552
+ var h;
1553
+ return (h = this.slider) == null ? void 0 : h.step;
1554
1554
  }
1555
- set disabled(u) {
1556
- this.slider && (this.slider.disabled = u);
1555
+ set disabled(h) {
1556
+ this.slider && (this.slider.disabled = h);
1557
1557
  }
1558
1558
  get disabled() {
1559
- var u, d;
1560
- return (d = (u = this.slider) == null ? void 0 : u.disabled) != null ? d : !1;
1559
+ var h, d;
1560
+ return (d = (h = this.slider) == null ? void 0 : h.disabled) != null ? d : !1;
1561
1561
  }
1562
- set data(u) {
1562
+ set data(h) {
1563
1563
  var d;
1564
- (d = this.slider) == null || d.setData(u);
1564
+ (d = this.slider) == null || d.setData(h);
1565
1565
  }
1566
1566
  get data() {
1567
- var u;
1568
- return (u = this.slider) == null ? void 0 : u.data;
1567
+ var h;
1568
+ return (h = this.slider) == null ? void 0 : h.data;
1569
1569
  }
1570
- set min(u) {
1570
+ set min(h) {
1571
1571
  var d;
1572
- (d = this.slider) == null || d.setMin(u);
1572
+ (d = this.slider) == null || d.setMin(h);
1573
1573
  }
1574
1574
  get min() {
1575
- var u;
1576
- return (u = this.slider) == null ? void 0 : u.min;
1575
+ var h;
1576
+ return (h = this.slider) == null ? void 0 : h.min;
1577
1577
  }
1578
- set max(u) {
1578
+ set max(h) {
1579
1579
  var d;
1580
- (d = this.slider) == null || d.setMax(u);
1580
+ (d = this.slider) == null || d.setMax(h);
1581
1581
  }
1582
1582
  get max() {
1583
- var u;
1584
- return (u = this.slider) == null ? void 0 : u.max;
1583
+ var h;
1584
+ return (h = this.slider) == null ? void 0 : h.max;
1585
1585
  }
1586
- set round(u) {
1587
- !this.slider || (this.slider.round = u);
1586
+ set round(h) {
1587
+ !this.slider || (this.slider.round = h);
1588
1588
  }
1589
1589
  get round() {
1590
- var u, d;
1591
- return (d = (u = this.slider) == null ? void 0 : u.round) != null ? d : At;
1590
+ var h, d;
1591
+ return (d = (h = this.slider) == null ? void 0 : h.round) != null ? d : At;
1592
1592
  }
1593
- set type(u) {
1594
- !this.slider || (this.slider.type = u ?? Me);
1593
+ set type(h) {
1594
+ !this.slider || (this.slider.type = h ?? Me);
1595
1595
  }
1596
1596
  get type() {
1597
- var u;
1598
- return ((u = this.slider) == null ? void 0 : u.type) || Me;
1597
+ var h;
1598
+ return ((h = this.slider) == null ? void 0 : h.type) || Me;
1599
1599
  }
1600
- set pointersOverlap(u) {
1601
- !this.slider || (this.slider.pointersOverlap = u);
1600
+ set pointersOverlap(h) {
1601
+ !this.slider || (this.slider.pointersOverlap = h);
1602
1602
  }
1603
1603
  get pointersOverlap() {
1604
- var u, d;
1605
- return (d = (u = this.slider) == null ? void 0 : u.pointersOverlap) != null ? d : !1;
1604
+ var h, d;
1605
+ return (d = (h = this.slider) == null ? void 0 : h.pointersOverlap) != null ? d : !1;
1606
1606
  }
1607
- set pointersMinDistance(u) {
1608
- !this.slider || (this.slider.pointersMinDistance = u);
1607
+ set pointersMinDistance(h) {
1608
+ !this.slider || (this.slider.pointersMinDistance = h);
1609
1609
  }
1610
1610
  get pointersMinDistance() {
1611
- var u, d;
1612
- return (d = (u = this.slider) == null ? void 0 : u.pointersMinDistance) != null ? d : 0;
1611
+ var h, d;
1612
+ return (d = (h = this.slider) == null ? void 0 : h.pointersMinDistance) != null ? d : 0;
1613
1613
  }
1614
- set pointersMaxDistance(u) {
1615
- !this.slider || (this.slider.pointersMaxDistance = u);
1614
+ set pointersMaxDistance(h) {
1615
+ !this.slider || (this.slider.pointersMaxDistance = h);
1616
1616
  }
1617
1617
  get pointersMaxDistance() {
1618
- var u, d;
1619
- return (d = (u = this.slider) == null ? void 0 : u.pointersMaxDistance) != null ? d : 1 / 0;
1618
+ var h, d;
1619
+ return (d = (h = this.slider) == null ? void 0 : h.pointersMaxDistance) != null ? d : 1 / 0;
1620
1620
  }
1621
- set theme(u) {
1622
- !this.slider || !this.slider.styles || (this.slider.styles.theme = u);
1621
+ set theme(h) {
1622
+ !this.slider || !this.slider.styles || (this.slider.styles.theme = h);
1623
1623
  }
1624
1624
  get theme() {
1625
- var u, d, x;
1626
- return (x = (d = (u = this.slider) == null ? void 0 : u.styles) == null ? void 0 : d.theme) != null ? x : null;
1625
+ var h, d, x;
1626
+ return (x = (d = (h = this.slider) == null ? void 0 : h.styles) == null ? void 0 : d.theme) != null ? x : null;
1627
1627
  }
1628
- set rtl(u) {
1629
- !this.slider || (this.slider.rightToLeft = u);
1628
+ set rtl(h) {
1629
+ !this.slider || (this.slider.rightToLeft = h);
1630
1630
  }
1631
1631
  get rtl() {
1632
- var u, d;
1633
- return (d = (u = this.slider) == null ? void 0 : u.rightToLeft) != null ? d : !1;
1632
+ var h, d;
1633
+ return (d = (h = this.slider) == null ? void 0 : h.rightToLeft) != null ? d : !1;
1634
1634
  }
1635
- set btt(u) {
1636
- !this.slider || (this.slider.bottomToTop = u);
1635
+ set btt(h) {
1636
+ !this.slider || (this.slider.bottomToTop = h);
1637
1637
  }
1638
1638
  get btt() {
1639
- var u, d;
1640
- return (d = (u = this.slider) == null ? void 0 : u.bottomToTop) != null ? d : !1;
1639
+ var h, d;
1640
+ return (d = (h = this.slider) == null ? void 0 : h.bottomToTop) != null ? d : !1;
1641
1641
  }
1642
- set keyboardDisabled(u) {
1643
- !this.slider || (this.slider.keyboardDisabled = u);
1642
+ set keyboardDisabled(h) {
1643
+ !this.slider || (this.slider.keyboardDisabled = h);
1644
1644
  }
1645
1645
  get keyboardDisabled() {
1646
- var u, d;
1647
- return (d = (u = this.slider) == null ? void 0 : u.keyboardDisabled) != null ? d : !1;
1646
+ var h, d;
1647
+ return (d = (h = this.slider) == null ? void 0 : h.keyboardDisabled) != null ? d : !1;
1648
1648
  }
1649
- set mousewheelDisabled(u) {
1650
- !this.slider || (this.slider.mousewheelDisabled = u);
1649
+ set mousewheelDisabled(h) {
1650
+ !this.slider || (this.slider.mousewheelDisabled = h);
1651
1651
  }
1652
1652
  get mousewheelDisabled() {
1653
- var u, d;
1654
- return (d = (u = this.slider) == null ? void 0 : u.mousewheelDisabled) != null ? d : !1;
1653
+ var h, d;
1654
+ return (d = (h = this.slider) == null ? void 0 : h.mousewheelDisabled) != null ? d : !1;
1655
1655
  }
1656
- set animateOnClick(u) {
1657
- !this.slider || (this.slider.animateOnClick = u);
1656
+ set animateOnClick(h) {
1657
+ !this.slider || (this.slider.animateOnClick = h);
1658
1658
  }
1659
1659
  get animateOnClick() {
1660
- var u;
1661
- return (u = this.slider) == null ? void 0 : u.animateOnClick;
1660
+ var h;
1661
+ return (h = this.slider) == null ? void 0 : h.animateOnClick;
1662
1662
  }
1663
1663
  get rangeDragging() {
1664
- var u, d;
1665
- return (d = (u = this.slider) == null ? void 0 : u.rangeDragging) != null ? d : !1;
1664
+ var h, d;
1665
+ return (d = (h = this.slider) == null ? void 0 : h.rangeDragging) != null ? d : !1;
1666
1666
  }
1667
- set rangeDragging(u) {
1668
- this.slider && (this.slider.rangeDragging = fe(u));
1667
+ set rangeDragging(h) {
1668
+ this.slider && (this.slider.rangeDragging = fe(h));
1669
1669
  }
1670
1670
  get externalCSSList() {
1671
1671
  return this._externalCSSList;
1672
1672
  }
1673
- addPointer(u) {
1673
+ addPointer(h) {
1674
1674
  var d, x;
1675
1675
  if (!this.slider)
1676
1676
  return;
1677
- let v = (x = (d = this.slider) == null ? void 0 : d.addPointer(u)) != null ? x : 0;
1677
+ let v = (x = (d = this.slider) == null ? void 0 : d.addPointer(h)) != null ? x : 0;
1678
1678
  rn(this, this.slider, v, `value${v + 1}`, `ariaLabel${v + 1}`, `pointerShape${v + 1}`, `pointer${v + 1}Disabled`);
1679
1679
  }
1680
1680
  removePointer() {
1681
- var u;
1682
- !this.slider || (u = this.slider) == null || u.removePointer();
1681
+ var h;
1682
+ !this.slider || (h = this.slider) == null || h.removePointer();
1683
1683
  }
1684
- addCSS(u) {
1684
+ addCSS(h) {
1685
1685
  if (!this.shadowRoot)
1686
1686
  return;
1687
1687
  let d = document.createElement("style");
1688
- d.textContent = u, this.shadowRoot.appendChild(d);
1688
+ d.textContent = h, this.shadowRoot.appendChild(d);
1689
1689
  }
1690
1690
  connectedCallback() {
1691
- var u, d;
1691
+ var h, d;
1692
1692
  if (!this.shadowRoot)
1693
1693
  return;
1694
1694
  this._externalCSSList = Co(this), this.shadowRoot.innerHTML = n(s, this._externalCSSList);
1695
- let x = (u = this.shadowRoot) == null ? void 0 : u.querySelector(".pointer");
1695
+ let x = (h = this.shadowRoot) == null ? void 0 : h.querySelector(".pointer");
1696
1696
  if (!x)
1697
1697
  return;
1698
1698
  let v = (d = this.shadowRoot) == null ? void 0 : d.getElementById("range-slider");
1699
1699
  if (!v)
1700
1700
  return;
1701
1701
  let R = Io(this, x);
1702
- this.slider = No(this, v, R), Do(this, this.slider), this._observer = new MutationObserver((Y) => {
1703
- Y.forEach((Z) => {
1702
+ this.slider = No(this, v, R), Do(this, this.slider), this._observer = new MutationObserver((W) => {
1703
+ W.forEach((Z) => {
1704
1704
  var T;
1705
1705
  if (!this.slider || Z.type !== "attributes")
1706
1706
  return;
@@ -1746,7 +1746,7 @@ var vs = { exports: {} };
1746
1746
  (function(r, i) {
1747
1747
  t.exports = i();
1748
1748
  })(Ct, function() {
1749
- var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second", a = "minute", l = "hour", c = "day", f = "week", p = "month", b = "quarter", y = "year", E = "date", O = "Invalid Date", U = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
1749
+ var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second", a = "minute", l = "hour", c = "day", f = "week", p = "month", b = "quarter", y = "year", E = "date", O = "Invalid Date", z = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
1750
1750
  var L = ["th", "st", "nd", "rd"], M = P % 100;
1751
1751
  return "[" + P + (L[(M - 20) % 10] || L[M] || L[0]) + "]";
1752
1752
  } }, m = function(P, L, M) {
@@ -1758,8 +1758,8 @@ var vs = { exports: {} };
1758
1758
  }, m: function P(L, M) {
1759
1759
  if (L.date() < M.date())
1760
1760
  return -P(M, L);
1761
- var j = 12 * (M.year() - L.year()) + (M.month() - L.month()), C = L.clone().add(j, p), K = M - C < 0, z = L.clone().add(j + (K ? -1 : 1), p);
1762
- return +(-(j + (M - C) / (K ? C - z : z - C)) || 0);
1761
+ var j = 12 * (M.year() - L.year()) + (M.month() - L.month()), C = L.clone().add(j, p), K = M - C < 0, Y = L.clone().add(j + (K ? -1 : 1), p);
1762
+ return +(-(j + (M - C) / (K ? C - Y : Y - C)) || 0);
1763
1763
  }, a: function(P) {
1764
1764
  return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
1765
1765
  }, p: function(P) {
@@ -1777,9 +1777,9 @@ var vs = { exports: {} };
1777
1777
  if (typeof L == "string") {
1778
1778
  var K = L.toLowerCase();
1779
1779
  _[K] && (C = K), M && (_[K] = M, C = K);
1780
- var z = L.split("-");
1781
- if (!C && z.length > 1)
1782
- return P(z[0]);
1780
+ var Y = L.split("-");
1781
+ if (!C && Y.length > 1)
1782
+ return P(Y[0]);
1783
1783
  } else {
1784
1784
  var se = L.name;
1785
1785
  _[se] = L, C = se;
@@ -1809,10 +1809,10 @@ var vs = { exports: {} };
1809
1809
  if (C instanceof Date)
1810
1810
  return new Date(C);
1811
1811
  if (typeof C == "string" && !/Z$/i.test(C)) {
1812
- var z = C.match(U);
1813
- if (z) {
1814
- var se = z[2] - 1 || 0, re = (z[7] || "0").substring(0, 3);
1815
- return K ? new Date(Date.UTC(z[1], se, z[3] || 1, z[4] || 0, z[5] || 0, z[6] || 0, re)) : new Date(z[1], se, z[3] || 1, z[4] || 0, z[5] || 0, z[6] || 0, re);
1812
+ var Y = C.match(z);
1813
+ if (Y) {
1814
+ var se = Y[2] - 1 || 0, re = (Y[7] || "0").substring(0, 3);
1815
+ return K ? new Date(Date.UTC(Y[1], se, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, re)) : new Date(Y[1], se, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, re);
1816
1816
  }
1817
1817
  }
1818
1818
  return new Date(C);
@@ -1838,13 +1838,13 @@ var vs = { exports: {} };
1838
1838
  }, L.valueOf = function() {
1839
1839
  return this.$d.getTime();
1840
1840
  }, L.startOf = function(M, j) {
1841
- var C = this, K = !!I.u(j) || j, z = I.p(M), se = function($e, ie) {
1841
+ var C = this, K = !!I.u(j) || j, Y = I.p(M), se = function($e, ie) {
1842
1842
  var Ne = I.w(C.$u ? Date.UTC(C.$y, ie, $e) : new Date(C.$y, ie, $e), C);
1843
1843
  return K ? Ne : Ne.endOf(c);
1844
1844
  }, re = function($e, ie) {
1845
1845
  return I.w(C.toDate()[$e].apply(C.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), C);
1846
1846
  }, ye = this.$W, ve = this.$M, Ae = this.$D, xe = "set" + (this.$u ? "UTC" : "");
1847
- switch (z) {
1847
+ switch (Y) {
1848
1848
  case y:
1849
1849
  return K ? se(1, 0) : se(31, 11);
1850
1850
  case p:
@@ -1867,7 +1867,7 @@ var vs = { exports: {} };
1867
1867
  }, L.endOf = function(M) {
1868
1868
  return this.startOf(M, !1);
1869
1869
  }, L.$set = function(M, j) {
1870
- var C, K = I.p(M), z = "set" + (this.$u ? "UTC" : ""), se = (C = {}, C[c] = z + "Date", C[E] = z + "Date", C[p] = z + "Month", C[y] = z + "FullYear", C[l] = z + "Hours", C[a] = z + "Minutes", C[o] = z + "Seconds", C[s] = z + "Milliseconds", C)[K], re = K === c ? this.$D + (j - this.$W) : j;
1870
+ var C, K = I.p(M), Y = "set" + (this.$u ? "UTC" : ""), se = (C = {}, C[c] = Y + "Date", C[E] = Y + "Date", C[p] = Y + "Month", C[y] = Y + "FullYear", C[l] = Y + "Hours", C[a] = Y + "Minutes", C[o] = Y + "Seconds", C[s] = Y + "Milliseconds", C)[K], re = K === c ? this.$D + (j - this.$W) : j;
1871
1871
  if (K === p || K === y) {
1872
1872
  var ye = this.clone().set(E, 1);
1873
1873
  ye.$d[se](re), ye.init(), this.$d = ye.set(E, Math.min(this.$D, ye.daysInMonth())).$d;
@@ -1881,19 +1881,19 @@ var vs = { exports: {} };
1881
1881
  }, L.add = function(M, j) {
1882
1882
  var C, K = this;
1883
1883
  M = Number(M);
1884
- var z = I.p(j), se = function(ve) {
1884
+ var Y = I.p(j), se = function(ve) {
1885
1885
  var Ae = H(K);
1886
1886
  return I.w(Ae.date(Ae.date() + Math.round(ve * M)), K);
1887
1887
  };
1888
- if (z === p)
1888
+ if (Y === p)
1889
1889
  return this.set(p, this.$M + M);
1890
- if (z === y)
1890
+ if (Y === y)
1891
1891
  return this.set(y, this.$y + M);
1892
- if (z === c)
1892
+ if (Y === c)
1893
1893
  return se(1);
1894
- if (z === f)
1894
+ if (Y === f)
1895
1895
  return se(7);
1896
- var re = (C = {}, C[a] = i, C[l] = n, C[o] = r, C)[z] || 1, ye = this.$d.getTime() + M * re;
1896
+ var re = (C = {}, C[a] = i, C[l] = n, C[o] = r, C)[Y] || 1, ye = this.$d.getTime() + M * re;
1897
1897
  return I.w(ye, this);
1898
1898
  }, L.subtract = function(M, j) {
1899
1899
  return this.add(-1 * M, j);
@@ -1901,7 +1901,7 @@ var vs = { exports: {} };
1901
1901
  var j = this, C = this.$locale();
1902
1902
  if (!this.isValid())
1903
1903
  return C.invalidDate || O;
1904
- var K = M || "YYYY-MM-DDTHH:mm:ssZ", z = I.z(this), se = this.$H, re = this.$m, ye = this.$M, ve = C.weekdays, Ae = C.months, xe = C.meridiem, Me = function(ie, Ne, ft, fe) {
1904
+ var K = M || "YYYY-MM-DDTHH:mm:ssZ", Y = I.z(this), se = this.$H, re = this.$m, ye = this.$M, ve = C.weekdays, Ae = C.months, xe = C.meridiem, Me = function(ie, Ne, ft, fe) {
1905
1905
  return ie && (ie[Ne] || ie(j, K)) || ft[Ne].slice(0, fe);
1906
1906
  }, Je = function(ie) {
1907
1907
  return I.s(se % 12 || 12, ie, "0");
@@ -1959,16 +1959,16 @@ var vs = { exports: {} };
1959
1959
  case "SSS":
1960
1960
  return I.s(j.$ms, 3, "0");
1961
1961
  case "Z":
1962
- return z;
1962
+ return Y;
1963
1963
  }
1964
1964
  return null;
1965
- }(ie) || z.replace(":", "");
1965
+ }(ie) || Y.replace(":", "");
1966
1966
  });
1967
1967
  }, L.utcOffset = function() {
1968
1968
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1969
1969
  }, L.diff = function(M, j, C) {
1970
- var K, z = this, se = I.p(j), re = H(M), ye = (re.utcOffset() - this.utcOffset()) * i, ve = this - re, Ae = function() {
1971
- return I.m(z, re);
1970
+ var K, Y = this, se = I.p(j), re = H(M), ye = (re.utcOffset() - this.utcOffset()) * i, ve = this - re, Ae = function() {
1971
+ return I.m(Y, re);
1972
1972
  };
1973
1973
  switch (se) {
1974
1974
  case y:
@@ -2071,7 +2071,7 @@ class Sl extends _e {
2071
2071
  if (!this.hasTemplate(e))
2072
2072
  return null;
2073
2073
  i = i || e;
2074
- const n = V` <slot name=${i}></slot> `, s = { [e]: { ...r } };
2074
+ const n = U` <slot name=${i}></slot> `, s = { [e]: { ...r } };
2075
2075
  if (this._renderedTemplates.hasOwnProperty(i)) {
2076
2076
  const { slot: a } = (
2077
2077
  // @ts-ignore
@@ -2593,7 +2593,7 @@ let Sr = class extends _e {
2593
2593
  this.querySelector("[slot='filter']").reset();
2594
2594
  }
2595
2595
  render() {
2596
- return V`
2596
+ return U`
2597
2597
  <style>
2598
2598
  ${Di}
2599
2599
  ${!this.unstyled && Ni}
@@ -2750,7 +2750,7 @@ const Il = async (t, e, r) => {
2750
2750
  } = jn(c, i, l), b = i, y = {}, E = 0;
2751
2751
  for (let O = 0; O < a.length; O++) {
2752
2752
  const {
2753
- name: U,
2753
+ name: z,
2754
2754
  fn: B
2755
2755
  } = a[O], {
2756
2756
  x: g,
@@ -2773,8 +2773,8 @@ const Il = async (t, e, r) => {
2773
2773
  });
2774
2774
  f = g ?? f, p = m ?? p, y = {
2775
2775
  ...y,
2776
- [U]: {
2777
- ...y[U],
2776
+ [z]: {
2777
+ ...y[z],
2778
2778
  ...w
2779
2779
  }
2780
2780
  }, S && E <= 50 && (E++, typeof S == "object" && (S.placement && (b = S.placement), S.rects && (c = S.rects === !0 ? await o.getElementRects({
@@ -2932,8 +2932,8 @@ function $t(t, e, r, i) {
2932
2932
  const b = ke(s), y = i && Qe(i) ? ke(i) : i;
2933
2933
  let E = b, O = E.frameElement;
2934
2934
  for (; O && i && y !== E; ) {
2935
- const U = Tt(O), B = O.getBoundingClientRect(), g = De(O), m = B.left + (O.clientLeft + parseFloat(g.paddingLeft)) * U.x, w = B.top + (O.clientTop + parseFloat(g.paddingTop)) * U.y;
2936
- l *= U.x, c *= U.y, f *= U.x, p *= U.y, l += m, c += w, E = ke(O), O = E.frameElement;
2935
+ const z = Tt(O), B = O.getBoundingClientRect(), g = De(O), m = B.left + (O.clientLeft + parseFloat(g.paddingLeft)) * z.x, w = B.top + (O.clientTop + parseFloat(g.paddingTop)) * z.y;
2936
+ l *= z.x, c *= z.y, f *= z.x, p *= z.y, l += m, c += w, E = ke(O), O = E.frameElement;
2937
2937
  }
2938
2938
  }
2939
2939
  return ws({
@@ -3159,8 +3159,8 @@ function Ql(t, e) {
3159
3159
  } = t.getBoundingClientRect();
3160
3160
  if (a || e(), !p || !b)
3161
3161
  return;
3162
- const y = br(f), E = br(n.clientWidth - (c + p)), O = br(n.clientHeight - (f + b)), U = br(c), g = {
3163
- rootMargin: -y + "px " + -E + "px " + -O + "px " + -U + "px",
3162
+ const y = br(f), E = br(n.clientWidth - (c + p)), O = br(n.clientHeight - (f + b)), z = br(c), g = {
3163
+ rootMargin: -y + "px " + -E + "px " + -O + "px " + -z + "px",
3164
3164
  threshold: Rt(0, yi(1, l)) || 1
3165
3165
  };
3166
3166
  let m = !0;
@@ -3212,10 +3212,10 @@ function ea(t, e, r, i) {
3212
3212
  })), r();
3213
3213
  }), c && !l && y.observe(c), y.observe(e));
3214
3214
  let E, O = l ? $t(t) : null;
3215
- l && U();
3216
- function U() {
3215
+ l && z();
3216
+ function z() {
3217
3217
  const B = $t(t);
3218
- O && (B.x !== O.x || B.y !== O.y || B.width !== O.width || B.height !== O.height) && r(), O = B, E = requestAnimationFrame(U);
3218
+ O && (B.x !== O.x || B.y !== O.y || B.width !== O.width || B.height !== O.height) && r(), O = B, E = requestAnimationFrame(z);
3219
3219
  }
3220
3220
  return r(), () => {
3221
3221
  var B;
@@ -3283,7 +3283,7 @@ let er = class extends _e {
3283
3283
  ), window.removeEventListener("click", this._clickEventListener);
3284
3284
  }
3285
3285
  render() {
3286
- return V`
3286
+ return U`
3287
3287
  <style>
3288
3288
  #dropdown {
3289
3289
  display: none;
@@ -3291,7 +3291,7 @@ let er = class extends _e {
3291
3291
  #dropdown.open {
3292
3292
  display: block;
3293
3293
  }
3294
- ${this.unstyled ? oe : V`
3294
+ ${this.unstyled ? oe : U`
3295
3295
  eox-dropdown { height: 100%;} #dropdown { position: fixed; top:
3296
3296
  0px; left: 0; width: 100%; margin: 0; padding: 0; background:
3297
3297
  white; border-bottom-left-radius: 4px; border-bottom-right-radius:
@@ -3383,7 +3383,7 @@ let tr = class extends _e {
3383
3383
  );
3384
3384
  }
3385
3385
  render() {
3386
- return V`
3386
+ return U`
3387
3387
  <style>
3388
3388
  .chip.highlighted {
3389
3389
  background: lightgrey;
@@ -3391,7 +3391,7 @@ let tr = class extends _e {
3391
3391
  .chip-title {
3392
3392
  pointer-events: none;
3393
3393
  }
3394
- ${this.unstyled ? oe : V`
3394
+ ${this.unstyled ? oe : U`
3395
3395
  .chip-container { display: flex; flex: 0; } .chip { display: flex;
3396
3396
  align-items: center; background: #00417022; border-radius: 4px;
3397
3397
  margin-right: 4px; padding: 5px 10px; font-size: small; cursor:
@@ -3403,7 +3403,7 @@ let tr = class extends _e {
3403
3403
  <span class="chip-container">
3404
3404
  ${Kt(
3405
3405
  this.items,
3406
- (t) => V`
3406
+ (t) => U`
3407
3407
  <span
3408
3408
  class="chip"
3409
3409
  @click=${(e) => {
@@ -3417,11 +3417,11 @@ let tr = class extends _e {
3417
3417
  >
3418
3418
  ${de(
3419
3419
  t._inProgress,
3420
- () => t.stringifiedState ? "" : V` ... `
3420
+ () => t.stringifiedState ? "" : U` ... `
3421
3421
  )}
3422
3422
  ${de(
3423
3423
  t.stringifiedState,
3424
- () => V`: ${t.stringifiedState}`
3424
+ () => U`: ${t.stringifiedState}`
3425
3425
  )}
3426
3426
  <span
3427
3427
  class="chip-close"
@@ -3513,7 +3513,7 @@ let He = class extends _e {
3513
3513
  t.has("selectedItems") && this._handleSelect(this.selectedItems);
3514
3514
  }
3515
3515
  render() {
3516
- return V`
3516
+ return U`
3517
3517
  <style>
3518
3518
  :host,
3519
3519
  .container {
@@ -3522,7 +3522,7 @@ let He = class extends _e {
3522
3522
  #dropdown {
3523
3523
  display: none;
3524
3524
  }
3525
- ${this.unstyled ? oe : V`
3525
+ ${this.unstyled ? oe : U`
3526
3526
  ${ji} :host { position: relative; } .container { width: 100%;
3527
3527
  position: relative; border: 1px solid #00417066; border-radius:
3528
3528
  4px; height: 24px; padding: 5px; flex: 1; justify-content:
@@ -3549,7 +3549,7 @@ let He = class extends _e {
3549
3549
  >
3550
3550
  ${de(
3551
3551
  this.multiple,
3552
- () => V`
3552
+ () => U`
3553
3553
  <eox-itemfilter-chips
3554
3554
  .items=${this.selectedItems}
3555
3555
  .titleProperty=${this.titleProperty}
@@ -3574,7 +3574,7 @@ let He = class extends _e {
3574
3574
  />
3575
3575
  ${de(
3576
3576
  this.items.length > 0,
3577
- () => V`
3577
+ () => U`
3578
3578
  <eox-selectionlist
3579
3579
  slot="content"
3580
3580
  .filter=${this.inputText}
@@ -3604,7 +3604,7 @@ let He = class extends _e {
3604
3604
  </div>
3605
3605
  ${de(
3606
3606
  this.selectedItems.length > 0,
3607
- () => V`
3607
+ () => U`
3608
3608
  <div class="button-container">
3609
3609
  <button
3610
3610
  class="icon"
@@ -3729,7 +3729,7 @@ let qe = class extends _e {
3729
3729
  return this.noShadow ? this : super.createRenderRoot();
3730
3730
  }
3731
3731
  render() {
3732
- return V`
3732
+ return U`
3733
3733
  <style>
3734
3734
  ${Di}
3735
3735
  :host {
@@ -3749,7 +3749,7 @@ let qe = class extends _e {
3749
3749
  (t) => this.filter ? t[this.titleProperty].toLowerCase().includes(this.filter.toLowerCase()) : !0
3750
3750
  ),
3751
3751
  (t) => t[this.idProperty],
3752
- (t) => V`
3752
+ (t) => U`
3753
3753
  <li
3754
3754
  class=${this._currentHighlight === t ? "highlighted" : oe}
3755
3755
  data-identifier=${t[this.idProperty]}
@@ -3810,10 +3810,10 @@ Ge([
3810
3810
  qe = Ge([
3811
3811
  Re("eox-selectionlist")
3812
3812
  ], qe);
3813
- var ua = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, Dr = (t, e, r, i) => {
3814
- for (var n = i > 1 ? void 0 : i ? ha(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3813
+ var ha = Object.defineProperty, ua = Object.getOwnPropertyDescriptor, Dr = (t, e, r, i) => {
3814
+ for (var n = i > 1 ? void 0 : i ? ua(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3815
3815
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
3816
- return i && n && ua(e, r, n), n;
3816
+ return i && n && ha(e, r, n), n;
3817
3817
  };
3818
3818
  let rr = class extends _e {
3819
3819
  constructor() {
@@ -3850,10 +3850,10 @@ let rr = class extends _e {
3850
3850
  render() {
3851
3851
  return de(
3852
3852
  this.filterObject,
3853
- () => V`
3853
+ () => U`
3854
3854
  ${de(
3855
3855
  this.inline || Object.keys(this.filterObject.state).length > 10,
3856
- () => V`
3856
+ () => U`
3857
3857
  <eox-autocomplete
3858
3858
  multiple
3859
3859
  .items=${this._getItems()}
@@ -3863,7 +3863,7 @@ let rr = class extends _e {
3863
3863
  >
3864
3864
  </eox-autocomplete>
3865
3865
  `,
3866
- () => V`
3866
+ () => U`
3867
3867
  <eox-selectionlist
3868
3868
  .noShadow=${!this.inline}
3869
3869
  multiple
@@ -3909,13 +3909,13 @@ function Aa(t, e, r) {
3909
3909
  var A = _ - l, k = _ - c, F = e - A;
3910
3910
  return p ? Sa(F, s - k) : F;
3911
3911
  }
3912
- function U(_) {
3912
+ function z(_) {
3913
3913
  var A = _ - l, k = _ - c;
3914
3914
  return l === void 0 || A >= e || A < 0 || p && k >= s;
3915
3915
  }
3916
3916
  function B() {
3917
3917
  var _ = pi();
3918
- if (U(_))
3918
+ if (z(_))
3919
3919
  return g(_);
3920
3920
  a = setTimeout(B, O(_));
3921
3921
  }
@@ -3929,7 +3929,7 @@ function Aa(t, e, r) {
3929
3929
  return a === void 0 ? o : g(pi());
3930
3930
  }
3931
3931
  function S() {
3932
- var _ = pi(), A = U(_);
3932
+ var _ = pi(), A = z(_);
3933
3933
  if (i = arguments, n = this, l = _, A) {
3934
3934
  if (a === void 0)
3935
3935
  return E(l);
@@ -3991,7 +3991,7 @@ let bi = class extends _e {
3991
3991
  render() {
3992
3992
  return de(
3993
3993
  this.filterObject,
3994
- () => V`
3994
+ () => U`
3995
3995
  <div class="range-before">
3996
3996
  ${this.filterObject.format === "date" ? kt.unix(this.filterObject.state.min) : this.filterObject.state.min}
3997
3997
  </div>
@@ -4058,10 +4058,10 @@ let ir = class extends _e {
4058
4058
  render() {
4059
4059
  return de(
4060
4060
  this.filterObject,
4061
- () => V`
4061
+ () => U`
4062
4062
  ${de(
4063
4063
  this.inline || Object.keys(this.filterObject.state).length > 10,
4064
- () => V`
4064
+ () => U`
4065
4065
  <eox-autocomplete
4066
4066
  .items=${this._getItems()}
4067
4067
  .selectedItems=${this._getSelectedItems()}
@@ -4070,7 +4070,7 @@ let ir = class extends _e {
4070
4070
  >
4071
4071
  </eox-autocomplete>
4072
4072
  `,
4073
- () => V`
4073
+ () => U`
4074
4074
  <eox-selectionlist
4075
4075
  .noShadow=${!this.inline}
4076
4076
  .items=${this._getItems()}
@@ -4183,7 +4183,7 @@ function Ye(t, e, r) {
4183
4183
  return je(i, e, r);
4184
4184
  }
4185
4185
  function Da(t, e, r) {
4186
- return r === void 0 && (r = {}), ut(t.map(function(i) {
4186
+ return r === void 0 && (r = {}), ht(t.map(function(i) {
4187
4187
  return Ye(i, e);
4188
4188
  }), r);
4189
4189
  }
@@ -4204,7 +4204,7 @@ function zi(t, e, r) {
4204
4204
  return je(a, e, r);
4205
4205
  }
4206
4206
  function ja(t, e, r) {
4207
- return r === void 0 && (r = {}), ut(t.map(function(i) {
4207
+ return r === void 0 && (r = {}), ht(t.map(function(i) {
4208
4208
  return zi(i, e);
4209
4209
  }), r);
4210
4210
  }
@@ -4218,11 +4218,11 @@ function Fe(t, e, r) {
4218
4218
  return je(i, e, r);
4219
4219
  }
4220
4220
  function Na(t, e, r) {
4221
- return r === void 0 && (r = {}), ut(t.map(function(i) {
4221
+ return r === void 0 && (r = {}), ht(t.map(function(i) {
4222
4222
  return Fe(i, e);
4223
4223
  }), r);
4224
4224
  }
4225
- function ut(t, e) {
4225
+ function ht(t, e) {
4226
4226
  e === void 0 && (e = {});
4227
4227
  var r = { type: "FeatureCollection" };
4228
4228
  return e.id && (r.id = e.id), e.bbox && (r.bbox = e.bbox), r.features = t, r;
@@ -4344,7 +4344,7 @@ const Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4344
4344
  earthRadius: Se,
4345
4345
  factors: Ui,
4346
4346
  feature: je,
4347
- featureCollection: ut,
4347
+ featureCollection: ht,
4348
4348
  geometry: Ia,
4349
4349
  geometryCollection: Ba,
4350
4350
  isNumber: Mr,
@@ -4427,7 +4427,7 @@ function Ka(t, e) {
4427
4427
  }
4428
4428
  function Ft(t, e, r) {
4429
4429
  if (t !== null)
4430
- for (var i, n, s, o, a, l, c, f = 0, p = 0, b, y = t.type, E = y === "FeatureCollection", O = y === "Feature", U = E ? t.features.length : 1, B = 0; B < U; B++) {
4430
+ for (var i, n, s, o, a, l, c, f = 0, p = 0, b, y = t.type, E = y === "FeatureCollection", O = y === "Feature", z = E ? t.features.length : 1, B = 0; B < z; B++) {
4431
4431
  c = E ? t.features[B].geometry : O ? t.geometry : t, b = c ? c.type === "GeometryCollection" : !1, a = b ? c.geometries.length : 1;
4432
4432
  for (var g = 0; g < a; g++) {
4433
4433
  var m = 0, w = 0;
@@ -4697,12 +4697,12 @@ function Ns(t, e) {
4697
4697
  a = p, l = i, c = E, f = O, s = 0;
4698
4698
  return;
4699
4699
  }
4700
- var U = Fe(
4700
+ var z = Fe(
4701
4701
  [a, p],
4702
4702
  r.properties
4703
4703
  );
4704
4704
  if (e(
4705
- U,
4705
+ z,
4706
4706
  i,
4707
4707
  n,
4708
4708
  O,
@@ -4911,7 +4911,7 @@ function zn(t) {
4911
4911
  var e = [];
4912
4912
  return et(t, function(r) {
4913
4913
  lc(r, e);
4914
- }), ut(e);
4914
+ }), ht(e);
4915
4915
  }
4916
4916
  function lc(t, e) {
4917
4917
  var r = [], i = t.geometry;
@@ -4954,14 +4954,14 @@ var Ki = { exports: {} }, Fs = { exports: {} };
4954
4954
  var le = I - H + 1, P = F - H + 1, L = Math.log(le), M = 0.5 * Math.exp(2 * L / 3), j = 0.5 * Math.sqrt(L * M * (le - M) / le) * (P - le / 2 < 0 ? -1 : 1), C = Math.max(H, Math.floor(F - P * M / le + j)), K = Math.min(I, Math.floor(F + (le - P) * M / le + j));
4955
4955
  A(k, F, C, K, te);
4956
4956
  }
4957
- var z = k[F], se = H, re = I;
4958
- for (i(k, H, F), te(k[I], z) > 0 && i(k, H, I); se < re; ) {
4959
- for (i(k, se, re), se++, re--; te(k[se], z) < 0; )
4957
+ var Y = k[F], se = H, re = I;
4958
+ for (i(k, H, F), te(k[I], Y) > 0 && i(k, H, I); se < re; ) {
4959
+ for (i(k, se, re), se++, re--; te(k[se], Y) < 0; )
4960
4960
  se++;
4961
- for (; te(k[re], z) > 0; )
4961
+ for (; te(k[re], Y) > 0; )
4962
4962
  re--;
4963
4963
  }
4964
- te(k[H], z) === 0 ? i(k, H, re) : i(k, ++re, I), re <= F && (H = re + 1), F <= re && (I = re - 1);
4964
+ te(k[H], Y) === 0 ? i(k, H, re) : i(k, ++re, I), re <= F && (H = re + 1), F <= re && (I = re - 1);
4965
4965
  }
4966
4966
  })(g, m, w || 0, S || g.length - 1, _ || n);
4967
4967
  }
@@ -4987,7 +4987,7 @@ var Ki = { exports: {} }, Fs = { exports: {} };
4987
4987
  l(g, 0, g.children.length, m, g);
4988
4988
  }
4989
4989
  function l(g, m, w, S, _) {
4990
- _ || (_ = U(null)), _.minX = 1 / 0, _.minY = 1 / 0, _.maxX = -1 / 0, _.maxY = -1 / 0;
4990
+ _ || (_ = z(null)), _.minX = 1 / 0, _.minY = 1 / 0, _.maxX = -1 / 0, _.maxY = -1 / 0;
4991
4991
  for (var A = m; A < w; A++) {
4992
4992
  var k = g.children[A];
4993
4993
  c(_, g.leaf ? S(k) : k);
@@ -5015,7 +5015,7 @@ var Ki = { exports: {} }, Fs = { exports: {} };
5015
5015
  function O(g, m) {
5016
5016
  return m.minX <= g.maxX && m.minY <= g.maxY && m.maxX >= g.minX && m.maxY >= g.minY;
5017
5017
  }
5018
- function U(g) {
5018
+ function z(g) {
5019
5019
  return { children: g, height: 1, leaf: !0, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
5020
5020
  }
5021
5021
  function B(g, m, w, S, _) {
@@ -5080,7 +5080,7 @@ var Ki = { exports: {} }, Fs = { exports: {} };
5080
5080
  }, s.prototype.insert = function(g) {
5081
5081
  return g && this._insert(g, this.data.height - 1), this;
5082
5082
  }, s.prototype.clear = function() {
5083
- return this.data = U([]), this;
5083
+ return this.data = z([]), this;
5084
5084
  }, s.prototype.remove = function(g, m) {
5085
5085
  if (!g)
5086
5086
  return this;
@@ -5110,8 +5110,8 @@ var Ki = { exports: {} }, Fs = { exports: {} };
5110
5110
  }, s.prototype._build = function(g, m, w, S) {
5111
5111
  var _, A = w - m + 1, k = this._maxEntries;
5112
5112
  if (A <= k)
5113
- return a(_ = U(g.slice(m, w + 1)), this.toBBox), _;
5114
- S || (S = Math.ceil(Math.log(A) / Math.log(k)), k = Math.ceil(A / Math.pow(k, S - 1))), (_ = U([])).leaf = !1, _.height = S;
5113
+ return a(_ = z(g.slice(m, w + 1)), this.toBBox), _;
5114
+ S || (S = Math.ceil(Math.log(A) / Math.log(k)), k = Math.ceil(A / Math.pow(k, S - 1))), (_ = z([])).leaf = !1, _.height = S;
5115
5115
  var F = Math.ceil(A / k), H = F * Math.ceil(Math.sqrt(k));
5116
5116
  B(g, m, w, H, this.compareMinX);
5117
5117
  for (var I = m; I <= w; I += H) {
@@ -5141,10 +5141,10 @@ var Ki = { exports: {} }, Fs = { exports: {} };
5141
5141
  }, s.prototype._split = function(g, m) {
5142
5142
  var w = g[m], S = w.children.length, _ = this._minEntries;
5143
5143
  this._chooseSplitAxis(w, _, S);
5144
- var A = this._chooseSplitIndex(w, _, S), k = U(w.children.splice(A, w.children.length - A));
5144
+ var A = this._chooseSplitIndex(w, _, S), k = z(w.children.splice(A, w.children.length - A));
5145
5145
  k.height = w.height, k.leaf = w.leaf, a(w, this.toBBox), a(k, this.toBBox), m ? g[m - 1].children.push(k) : this._splitRoot(w, k);
5146
5146
  }, s.prototype._splitRoot = function(g, m) {
5147
- this.data = U([g, m]), this.data.height = g.height + 1, this.data.leaf = !1, a(this.data, this.toBBox);
5147
+ this.data = z([g, m]), this.data.height = g.height + 1, this.data.leaf = !1, a(this.data, this.toBBox);
5148
5148
  }, s.prototype._chooseSplitIndex = function(g, m, w) {
5149
5149
  for (var S, _, A, k, F, H, I, te = 1 / 0, le = 1 / 0, P = m; P <= w - m; P++) {
5150
5150
  var L = l(g, 0, P, this.toBBox), M = l(g, P, w, this.toBBox), j = (_ = L, A = M, k = void 0, F = void 0, H = void 0, I = void 0, k = Math.max(_.minX, A.minX), F = Math.max(_.minY, A.minY), H = Math.min(_.maxX, A.maxX), I = Math.min(_.maxY, A.maxY), Math.max(0, H - k) * Math.max(0, I - F)), C = b(L) + b(M);
@@ -5174,8 +5174,8 @@ var Ki = { exports: {} }, Fs = { exports: {} };
5174
5174
  }, s;
5175
5175
  });
5176
5176
  })(Fs);
5177
- var uc = Fs.exports;
5178
- const hc = /* @__PURE__ */ Ii(Va), dc = /* @__PURE__ */ Ii(oc);
5177
+ var hc = Fs.exports;
5178
+ const uc = /* @__PURE__ */ Ii(Va), dc = /* @__PURE__ */ Ii(oc);
5179
5179
  function _t(t) {
5180
5180
  var e = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
5181
5181
  return Ft(t, function(r) {
@@ -5187,7 +5187,7 @@ const fc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5187
5187
  __proto__: null,
5188
5188
  default: _t
5189
5189
  }, Symbol.toStringTag, { value: "Module" })), pc = /* @__PURE__ */ Ii(fc);
5190
- var ze = uc, Hs = hc, qs = dc, Ot = pc.default, gc = qs.featureEach;
5190
+ var ze = hc, Hs = uc, qs = dc, Ot = pc.default, gc = qs.featureEach;
5191
5191
  qs.coordEach;
5192
5192
  Hs.polygon;
5193
5193
  var Yn = Hs.featureCollection;
@@ -5256,7 +5256,7 @@ function Gi(t, e) {
5256
5256
  var r = {}, i = [];
5257
5257
  if (t.type === "LineString" && (t = je(t)), e.type === "LineString" && (e = je(e)), t.type === "Feature" && e.type === "Feature" && t.geometry !== null && e.geometry !== null && t.geometry.type === "LineString" && e.geometry.type === "LineString" && t.geometry.coordinates.length === 2 && e.geometry.coordinates.length === 2) {
5258
5258
  var n = Wn(t, e);
5259
- return n && i.push(n), ut(i);
5259
+ return n && i.push(n), ht(i);
5260
5260
  }
5261
5261
  var s = yc();
5262
5262
  return s.load(zn(e)), Or(zn(t), function(o) {
@@ -5267,7 +5267,7 @@ function Gi(t, e) {
5267
5267
  r[c] || (r[c] = !0, i.push(l));
5268
5268
  }
5269
5269
  });
5270
- }), ut(i);
5270
+ }), ht(i);
5271
5271
  }
5272
5272
  function Wn(t, e) {
5273
5273
  var r = Dt(t), i = Dt(e);
@@ -5278,8 +5278,8 @@ function Wn(t, e) {
5278
5278
  var n = r[0][0], s = r[0][1], o = r[1][0], a = r[1][1], l = i[0][0], c = i[0][1], f = i[1][0], p = i[1][1], b = (p - c) * (o - n) - (f - l) * (a - s), y = (f - l) * (s - c) - (p - c) * (n - l), E = (o - n) * (s - c) - (a - s) * (n - l);
5279
5279
  if (b === 0)
5280
5280
  return null;
5281
- var O = y / b, U = E / b;
5282
- if (O >= 0 && O <= 1 && U >= 0 && U <= 1) {
5281
+ var O = y / b, z = E / b;
5282
+ if (O >= 0 && O <= 1 && z >= 0 && z <= 1) {
5283
5283
  var B = n + O * (o - n), g = s + O * (a - s);
5284
5284
  return Ye([B, g]);
5285
5285
  }
@@ -5307,7 +5307,7 @@ function bc(t, e) {
5307
5307
  var r = jt(t), i = r.coordinates, n = e.properties ? e.properties : t.type === "Feature" ? t.properties : {}, s = [];
5308
5308
  return i.forEach(function(o) {
5309
5309
  s.push(zs(o, n));
5310
- }), ut(s);
5310
+ }), ht(s);
5311
5311
  }
5312
5312
  function zs(t, e) {
5313
5313
  return t.length > 1 ? Yi(t, e) : Fe(t[0], e);
@@ -5581,11 +5581,11 @@ let $i = class extends _e {
5581
5581
  this.filterObject,
5582
5582
  () => {
5583
5583
  var t;
5584
- return V`
5584
+ return U`
5585
5585
  <form style="display: inline">
5586
5586
  ${Kt(
5587
5587
  ["intersects", "within"],
5588
- (e) => V`
5588
+ (e) => U`
5589
5589
  <label>
5590
5590
  <input
5591
5591
  type="radio"
@@ -5628,7 +5628,7 @@ $i = or([
5628
5628
  ], $i);
5629
5629
  let Lr = class extends _e {
5630
5630
  render() {
5631
- return V`<eox-map part="map" style="height: 400px"></eox-map>`;
5631
+ return U`<eox-map part="map" style="height: 400px"></eox-map>`;
5632
5632
  }
5633
5633
  firstUpdated() {
5634
5634
  this.setup();
@@ -5751,7 +5751,7 @@ let _i = class extends _e {
5751
5751
  render() {
5752
5752
  return de(
5753
5753
  this.filterObject,
5754
- () => V`
5754
+ () => U`
5755
5755
  <style>
5756
5756
  input {
5757
5757
  max-height: 100%;
@@ -5783,7 +5783,7 @@ var Uc = Object.defineProperty, zc = Object.getOwnPropertyDescriptor, Et = (t, e
5783
5783
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
5784
5784
  return i && n && Uc(e, r, n), n;
5785
5785
  };
5786
- let ht = class extends _e {
5786
+ let ut = class extends _e {
5787
5787
  constructor() {
5788
5788
  super(...arguments), this.idProperty = "id", this.items = [], this.titleProperty = "title", this.unstyled = !1, this.inputText = "", this.replaceInput = null, this._clickOutsideListener = () => {
5789
5789
  this.items.forEach((t) => {
@@ -5820,13 +5820,13 @@ let ht = class extends _e {
5820
5820
  ), window.removeEventListener("click", this._clickOutsideListener);
5821
5821
  }
5822
5822
  render() {
5823
- return V`
5823
+ return U`
5824
5824
  <style>
5825
5825
  :host,
5826
5826
  .container {
5827
5827
  display: flex;
5828
5828
  }
5829
- ${this.unstyled ? oe : V`
5829
+ ${this.unstyled ? oe : U`
5830
5830
  ${ji} :host { position: relative; } .container { width: 100%;
5831
5831
  position: relative; border: 1px solid #00417066; border-radius:
5832
5832
  4px; height: 24px; padding: 5px; flex: 1; justify-content:
@@ -5887,7 +5887,7 @@ let ht = class extends _e {
5887
5887
  <div slot="content">
5888
5888
  ${de(
5889
5889
  !this.items.find((t) => t._inProgress),
5890
- () => V`
5890
+ () => U`
5891
5891
  <eox-selectionlist
5892
5892
  .filter=${this.inputText}
5893
5893
  .idProperty=${this.idProperty}
@@ -5950,7 +5950,7 @@ let ht = class extends _e {
5950
5950
  </div>
5951
5951
  ${de(
5952
5952
  this.items.filter((t) => t.stringifiedState || t._inProgress).length > 0,
5953
- () => V`
5953
+ () => U`
5954
5954
  <div class="button-container">
5955
5955
  <button
5956
5956
  class="icon"
@@ -5970,25 +5970,25 @@ let ht = class extends _e {
5970
5970
  };
5971
5971
  Et([
5972
5972
  J()
5973
- ], ht.prototype, "idProperty", 2);
5973
+ ], ut.prototype, "idProperty", 2);
5974
5974
  Et([
5975
5975
  J()
5976
- ], ht.prototype, "items", 2);
5976
+ ], ut.prototype, "items", 2);
5977
5977
  Et([
5978
5978
  J()
5979
- ], ht.prototype, "titleProperty", 2);
5979
+ ], ut.prototype, "titleProperty", 2);
5980
5980
  Et([
5981
5981
  J()
5982
- ], ht.prototype, "unstyled", 2);
5982
+ ], ut.prototype, "unstyled", 2);
5983
5983
  Et([
5984
5984
  rt()
5985
- ], ht.prototype, "inputText", 2);
5985
+ ], ut.prototype, "inputText", 2);
5986
5986
  Et([
5987
5987
  rt()
5988
- ], ht.prototype, "replaceInput", 2);
5989
- ht = Et([
5988
+ ], ut.prototype, "replaceInput", 2);
5989
+ ut = Et([
5990
5990
  Re("eox-itemfilter-inline")
5991
- ], ht);
5991
+ ], ut);
5992
5992
  function tt(t) {
5993
5993
  return Array.isArray ? Array.isArray(t) : Gs(t) === "[object Array]";
5994
5994
  }
@@ -6026,8 +6026,8 @@ function gi(t) {
6026
6026
  function Gs(t) {
6027
6027
  return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
6028
6028
  }
6029
- const Gc = "Incorrect 'index' type", Jc = (t) => `Invalid value for key ${t}`, Zc = (t) => `Pattern length exceeds max of ${t}.`, Qc = (t) => `Missing ${t} property in key`, eu = (t) => `Property 'weight' in key '${t}' must be a positive integer`, Kn = Object.prototype.hasOwnProperty;
6030
- class tu {
6029
+ const Gc = "Incorrect 'index' type", Jc = (t) => `Invalid value for key ${t}`, Zc = (t) => `Pattern length exceeds max of ${t}.`, Qc = (t) => `Missing ${t} property in key`, eh = (t) => `Property 'weight' in key '${t}' must be a positive integer`, Kn = Object.prototype.hasOwnProperty;
6030
+ class th {
6031
6031
  constructor(e) {
6032
6032
  this._keys = [], this._keyMap = {};
6033
6033
  let r = 0;
@@ -6057,7 +6057,7 @@ function Js(t) {
6057
6057
  throw new Error(Qc("name"));
6058
6058
  const o = t.name;
6059
6059
  if (i = o, Kn.call(t, "weight") && (n = t.weight, n <= 0))
6060
- throw new Error(eu(o));
6060
+ throw new Error(eh(o));
6061
6061
  e = Gn(o), r = Ei(o), s = t.getFn;
6062
6062
  }
6063
6063
  return { path: e, id: r, weight: n, src: i, getFn: s };
@@ -6068,7 +6068,7 @@ function Gn(t) {
6068
6068
  function Ei(t) {
6069
6069
  return tt(t) ? t.join(".") : t;
6070
6070
  }
6071
- function ru(t, e) {
6071
+ function rh(t, e) {
6072
6072
  let r = [], i = !1;
6073
6073
  const n = (s, o, a) => {
6074
6074
  if (Ce(s))
@@ -6091,7 +6091,7 @@ function ru(t, e) {
6091
6091
  };
6092
6092
  return n(t, We(e) ? e.split(".") : e, 0), i ? r : r[0];
6093
6093
  }
6094
- const iu = {
6094
+ const ih = {
6095
6095
  // Whether the matches should be included in the result set. When `true`, each record in the result
6096
6096
  // set will include the indices of the matched characters.
6097
6097
  // These can consequently be used for highlighting purposes.
@@ -6101,7 +6101,7 @@ const iu = {
6101
6101
  findAllMatches: !1,
6102
6102
  // Minimum number of characters that must be matched before a result is considered a match
6103
6103
  minMatchCharLength: 1
6104
- }, nu = {
6104
+ }, nh = {
6105
6105
  // When `true`, the algorithm continues searching to the end of the input even if a perfect
6106
6106
  // match is found before the end of the same input.
6107
6107
  isCaseSensitive: !1,
@@ -6113,7 +6113,7 @@ const iu = {
6113
6113
  shouldSort: !0,
6114
6114
  // Default sort function: sort by ascending score, ascending index
6115
6115
  sortFn: (t, e) => t.score === e.score ? t.idx < e.idx ? -1 : 1 : t.score < e.score ? -1 : 1
6116
- }, su = {
6116
+ }, sh = {
6117
6117
  // Approximately where in the text is the pattern expected to be found?
6118
6118
  location: 0,
6119
6119
  // At what point does the match algorithm give up. A threshold of '0.0' requires a perfect match
@@ -6125,12 +6125,12 @@ const iu = {
6125
6125
  // the exact location specified, a threshold of '1000' would require a perfect match
6126
6126
  // to be within 800 characters of the fuzzy location to be found using a 0.8 threshold.
6127
6127
  distance: 100
6128
- }, ou = {
6128
+ }, oh = {
6129
6129
  // When `true`, it enables the use of unix-like search commands
6130
6130
  useExtendedSearch: !1,
6131
6131
  // The get function to use when fetching an object's properties.
6132
6132
  // The default will search nested paths *ie foo.bar.baz*
6133
- getFn: ru,
6133
+ getFn: rh,
6134
6134
  // When `true`, search will ignore `location` and `distance`, so it won't matter
6135
6135
  // where in the string the pattern appears.
6136
6136
  // More info: https://fusejs.io/concepts/scoring-theory.html#fuzziness-score
@@ -6143,17 +6143,17 @@ const iu = {
6143
6143
  fieldNormWeight: 1
6144
6144
  };
6145
6145
  var G = {
6146
- ...nu,
6147
- ...iu,
6148
- ...su,
6149
- ...ou
6146
+ ...nh,
6147
+ ...ih,
6148
+ ...sh,
6149
+ ...oh
6150
6150
  };
6151
- const lu = /[^ ]+/g;
6152
- function au(t = 1, e = 3) {
6151
+ const lh = /[^ ]+/g;
6152
+ function ah(t = 1, e = 3) {
6153
6153
  const r = /* @__PURE__ */ new Map(), i = Math.pow(10, e);
6154
6154
  return {
6155
6155
  get(n) {
6156
- const s = n.match(lu).length;
6156
+ const s = n.match(lh).length;
6157
6157
  if (r.has(s))
6158
6158
  return r.get(s);
6159
6159
  const o = 1 / Math.pow(s, 0.5 * t), a = parseFloat(Math.round(o * i) / i);
@@ -6169,7 +6169,7 @@ class Ji {
6169
6169
  getFn: e = G.getFn,
6170
6170
  fieldNormWeight: r = G.fieldNormWeight
6171
6171
  } = {}) {
6172
- this.norm = au(r, 3), this.getFn = e, this.isCreated = !1, this.setIndexRecords();
6172
+ this.norm = ah(r, 3), this.getFn = e, this.isCreated = !1, this.setIndexRecords();
6173
6173
  }
6174
6174
  setSources(e = []) {
6175
6175
  this.docs = e;
@@ -6264,7 +6264,7 @@ function Zs(t, e, { getFn: r = G.getFn, fieldNormWeight: i = G.fieldNormWeight }
6264
6264
  const n = new Ji({ getFn: r, fieldNormWeight: i });
6265
6265
  return n.setKeys(t.map(Js)), n.setSources(e), n.create(), n;
6266
6266
  }
6267
- function cu(t, { getFn: e = G.getFn, fieldNormWeight: r = G.fieldNormWeight } = {}) {
6267
+ function ch(t, { getFn: e = G.getFn, fieldNormWeight: r = G.fieldNormWeight } = {}) {
6268
6268
  const { keys: i, records: n } = t, s = new Ji({ getFn: e, fieldNormWeight: r });
6269
6269
  return s.setKeys(i), s.setIndexRecords(n), s;
6270
6270
  }
@@ -6281,7 +6281,7 @@ function xr(t, {
6281
6281
  const a = Math.abs(i - r);
6282
6282
  return n ? o + a / n : a ? 1 : o;
6283
6283
  }
6284
- function uu(t = [], e = G.minMatchCharLength) {
6284
+ function hh(t = [], e = G.minMatchCharLength) {
6285
6285
  let r = [], i = -1, n = -1, s = 0;
6286
6286
  for (let o = t.length; s < o; s += 1) {
6287
6287
  let a = t[s];
@@ -6290,7 +6290,7 @@ function uu(t = [], e = G.minMatchCharLength) {
6290
6290
  return t[s - 1] && s - i >= e && r.push([i, s - 1]), r;
6291
6291
  }
6292
6292
  const vt = 32;
6293
- function hu(t, e, r, {
6293
+ function uh(t, e, r, {
6294
6294
  location: i = G.location,
6295
6295
  distance: n = G.distance,
6296
6296
  threshold: s = G.threshold,
@@ -6303,7 +6303,7 @@ function hu(t, e, r, {
6303
6303
  throw new Error(Zc(vt));
6304
6304
  const f = e.length, p = t.length, b = Math.max(0, Math.min(i, p));
6305
6305
  let y = s, E = b;
6306
- const O = a > 1 || l, U = O ? Array(p) : [];
6306
+ const O = a > 1 || l, z = O ? Array(p) : [];
6307
6307
  let B;
6308
6308
  for (; (B = t.indexOf(e, E)) > -1; ) {
6309
6309
  let A = xr(e, {
@@ -6315,7 +6315,7 @@ function hu(t, e, r, {
6315
6315
  if (y = Math.min(A, y), E = B + f, O) {
6316
6316
  let k = 0;
6317
6317
  for (; k < f; )
6318
- U[B + k] = 1, k += 1;
6318
+ z[B + k] = 1, k += 1;
6319
6319
  }
6320
6320
  }
6321
6321
  E = -1;
@@ -6336,7 +6336,7 @@ function hu(t, e, r, {
6336
6336
  te[I + 1] = (1 << A) - 1;
6337
6337
  for (let P = I; P >= H; P -= 1) {
6338
6338
  let L = P - 1, M = r[t.charAt(L)];
6339
- if (O && (U[L] = +!!M), te[P] = (te[P + 1] << 1 | 1) & M, A && (te[P] |= (g[P + 1] | g[P]) << 1 | 1 | g[P + 1]), te[P] & S && (m = xr(e, {
6339
+ if (O && (z[L] = +!!M), te[P] = (te[P + 1] << 1 | 1) & M, A && (te[P] |= (g[P + 1] | g[P]) << 1 | 1 | g[P + 1]), te[P] & S && (m = xr(e, {
6340
6340
  errors: A,
6341
6341
  currentLocation: L,
6342
6342
  expectedLocation: b,
@@ -6364,12 +6364,12 @@ function hu(t, e, r, {
6364
6364
  score: Math.max(1e-3, m)
6365
6365
  };
6366
6366
  if (O) {
6367
- const A = uu(U, a);
6367
+ const A = hh(z, a);
6368
6368
  A.length ? l && (_.indices = A) : _.isMatch = !1;
6369
6369
  }
6370
6370
  return _;
6371
6371
  }
6372
- function du(t) {
6372
+ function dh(t) {
6373
6373
  let e = {};
6374
6374
  for (let r = 0, i = t.length; r < i; r += 1) {
6375
6375
  const n = t.charAt(r);
@@ -6402,7 +6402,7 @@ class Qs {
6402
6402
  const f = (b, y) => {
6403
6403
  this.chunks.push({
6404
6404
  pattern: b,
6405
- alphabet: du(b),
6405
+ alphabet: dh(b),
6406
6406
  startIndex: y
6407
6407
  });
6408
6408
  }, p = this.pattern.length;
@@ -6436,9 +6436,9 @@ class Qs {
6436
6436
  ignoreLocation: c
6437
6437
  } = this.options;
6438
6438
  let f = [], p = 0, b = !1;
6439
- this.chunks.forEach(({ pattern: E, alphabet: O, startIndex: U }) => {
6440
- const { isMatch: B, score: g, indices: m } = hu(e, E, O, {
6441
- location: n + U,
6439
+ this.chunks.forEach(({ pattern: E, alphabet: O, startIndex: z }) => {
6440
+ const { isMatch: B, score: g, indices: m } = uh(e, E, O, {
6441
+ location: n + z,
6442
6442
  distance: s,
6443
6443
  threshold: o,
6444
6444
  findAllMatches: a,
@@ -6472,7 +6472,7 @@ function Jn(t, e) {
6472
6472
  const r = t.match(e);
6473
6473
  return r ? r[1] : null;
6474
6474
  }
6475
- class fu extends dt {
6475
+ class fh extends dt {
6476
6476
  constructor(e) {
6477
6477
  super(e);
6478
6478
  }
@@ -6494,7 +6494,7 @@ class fu extends dt {
6494
6494
  };
6495
6495
  }
6496
6496
  }
6497
- class pu extends dt {
6497
+ class ph extends dt {
6498
6498
  constructor(e) {
6499
6499
  super(e);
6500
6500
  }
@@ -6516,7 +6516,7 @@ class pu extends dt {
6516
6516
  };
6517
6517
  }
6518
6518
  }
6519
- class gu extends dt {
6519
+ class gh extends dt {
6520
6520
  constructor(e) {
6521
6521
  super(e);
6522
6522
  }
@@ -6538,7 +6538,7 @@ class gu extends dt {
6538
6538
  };
6539
6539
  }
6540
6540
  }
6541
- class mu extends dt {
6541
+ class mh extends dt {
6542
6542
  constructor(e) {
6543
6543
  super(e);
6544
6544
  }
@@ -6560,7 +6560,7 @@ class mu extends dt {
6560
6560
  };
6561
6561
  }
6562
6562
  }
6563
- class yu extends dt {
6563
+ class yh extends dt {
6564
6564
  constructor(e) {
6565
6565
  super(e);
6566
6566
  }
@@ -6582,7 +6582,7 @@ class yu extends dt {
6582
6582
  };
6583
6583
  }
6584
6584
  }
6585
- class vu extends dt {
6585
+ class vh extends dt {
6586
6586
  constructor(e) {
6587
6587
  super(e);
6588
6588
  }
@@ -6666,18 +6666,18 @@ class to extends dt {
6666
6666
  }
6667
6667
  }
6668
6668
  const Si = [
6669
- fu,
6669
+ fh,
6670
6670
  to,
6671
- gu,
6672
- mu,
6673
- vu,
6674
- yu,
6675
- pu,
6671
+ gh,
6672
+ mh,
6673
+ vh,
6674
+ yh,
6675
+ ph,
6676
6676
  eo
6677
- ], Zn = Si.length, bu = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, xu = "|";
6678
- function wu(t, e = {}) {
6679
- return t.split(xu).map((r) => {
6680
- let i = r.trim().split(bu).filter((s) => s && !!s.trim()), n = [];
6677
+ ], Zn = Si.length, bh = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, xh = "|";
6678
+ function wh(t, e = {}) {
6679
+ return t.split(xh).map((r) => {
6680
+ let i = r.trim().split(bh).filter((s) => s && !!s.trim()), n = [];
6681
6681
  for (let s = 0, o = i.length; s < o; s += 1) {
6682
6682
  const a = i[s];
6683
6683
  let l = !1, c = -1;
@@ -6699,8 +6699,8 @@ function wu(t, e = {}) {
6699
6699
  return n;
6700
6700
  });
6701
6701
  }
6702
- const $u = /* @__PURE__ */ new Set([eo.type, to.type]);
6703
- class _u {
6702
+ const $h = /* @__PURE__ */ new Set([eo.type, to.type]);
6703
+ class _h {
6704
6704
  constructor(e, {
6705
6705
  isCaseSensitive: r = G.isCaseSensitive,
6706
6706
  includeMatches: i = G.includeMatches,
@@ -6720,7 +6720,7 @@ class _u {
6720
6720
  location: a,
6721
6721
  threshold: l,
6722
6722
  distance: c
6723
- }, this.pattern = r ? e : e.toLowerCase(), this.query = wu(this.pattern, this.options);
6723
+ }, this.pattern = r ? e : e.toLowerCase(), this.query = wh(this.pattern, this.options);
6724
6724
  }
6725
6725
  static condition(e, r) {
6726
6726
  return r.useExtendedSearch;
@@ -6739,11 +6739,11 @@ class _u {
6739
6739
  const f = r[l];
6740
6740
  o.length = 0, s = 0;
6741
6741
  for (let p = 0, b = f.length; p < b; p += 1) {
6742
- const y = f[p], { isMatch: E, indices: O, score: U } = y.search(e);
6742
+ const y = f[p], { isMatch: E, indices: O, score: z } = y.search(e);
6743
6743
  if (E) {
6744
- if (s += 1, a += U, i) {
6744
+ if (s += 1, a += z, i) {
6745
6745
  const B = y.constructor.type;
6746
- $u.has(B) ? o = [...o, ...O] : o.push(O);
6746
+ $h.has(B) ? o = [...o, ...O] : o.push(O);
6747
6747
  }
6748
6748
  } else {
6749
6749
  a = 0, s = 0, o.length = 0;
@@ -6765,7 +6765,7 @@ class _u {
6765
6765
  }
6766
6766
  }
6767
6767
  const Ai = [];
6768
- function Eu(...t) {
6768
+ function Eh(...t) {
6769
6769
  Ai.push(...t);
6770
6770
  }
6771
6771
  function Mi(t, e) {
@@ -6782,7 +6782,7 @@ const Cr = {
6782
6782
  }, Oi = {
6783
6783
  PATH: "$path",
6784
6784
  PATTERN: "$val"
6785
- }, Pi = (t) => !!(t[Cr.AND] || t[Cr.OR]), Su = (t) => !!t[Oi.PATH], Au = (t) => !tt(t) && Ks(t) && !Pi(t), Qn = (t) => ({
6785
+ }, Pi = (t) => !!(t[Cr.AND] || t[Cr.OR]), Sh = (t) => !!t[Oi.PATH], Ah = (t) => !tt(t) && Ks(t) && !Pi(t), Qn = (t) => ({
6786
6786
  [Cr.AND]: Object.keys(t).map((e) => ({
6787
6787
  [e]: t[e]
6788
6788
  }))
@@ -6790,10 +6790,10 @@ const Cr = {
6790
6790
  function ro(t, e, { auto: r = !0 } = {}) {
6791
6791
  const i = (n) => {
6792
6792
  let s = Object.keys(n);
6793
- const o = Su(n);
6793
+ const o = Sh(n);
6794
6794
  if (!o && s.length > 1 && !Pi(n))
6795
6795
  return i(Qn(n));
6796
- if (Au(n)) {
6796
+ if (Ah(n)) {
6797
6797
  const l = o ? n[Oi.PATH] : s[0], c = o ? n[Oi.PATTERN] : n[l];
6798
6798
  if (!We(c))
6799
6799
  throw new Error(Jc(l));
@@ -6816,7 +6816,7 @@ function ro(t, e, { auto: r = !0 } = {}) {
6816
6816
  };
6817
6817
  return Pi(t) || (t = Qn(t)), i(t);
6818
6818
  }
6819
- function Mu(t, { ignoreFieldNorm: e = G.ignoreFieldNorm }) {
6819
+ function Mh(t, { ignoreFieldNorm: e = G.ignoreFieldNorm }) {
6820
6820
  t.forEach((r) => {
6821
6821
  let i = 1;
6822
6822
  r.matches.forEach(({ key: n, norm: s, score: o }) => {
@@ -6828,7 +6828,7 @@ function Mu(t, { ignoreFieldNorm: e = G.ignoreFieldNorm }) {
6828
6828
  }), r.score = i;
6829
6829
  });
6830
6830
  }
6831
- function Ou(t, e) {
6831
+ function Oh(t, e) {
6832
6832
  const r = t.matches;
6833
6833
  e.matches = [], Ce(r) && r.forEach((i) => {
6834
6834
  if (!Ce(i.indices) || !i.indices.length)
@@ -6841,15 +6841,15 @@ function Ou(t, e) {
6841
6841
  i.key && (o.key = i.key.src), i.idx > -1 && (o.refIndex = i.idx), e.matches.push(o);
6842
6842
  });
6843
6843
  }
6844
- function Pu(t, e) {
6844
+ function Ph(t, e) {
6845
6845
  e.score = t.score;
6846
6846
  }
6847
- function Lu(t, e, {
6847
+ function Lh(t, e, {
6848
6848
  includeMatches: r = G.includeMatches,
6849
6849
  includeScore: i = G.includeScore
6850
6850
  } = {}) {
6851
6851
  const n = [];
6852
- return r && n.push(Ou), i && n.push(Pu), t.map((s) => {
6852
+ return r && n.push(Oh), i && n.push(Ph), t.map((s) => {
6853
6853
  const { idx: o } = s, a = {
6854
6854
  item: e[o],
6855
6855
  refIndex: o
@@ -6861,7 +6861,7 @@ function Lu(t, e, {
6861
6861
  }
6862
6862
  class Ht {
6863
6863
  constructor(e, r = {}, i) {
6864
- this.options = { ...G, ...r }, this.options.useExtendedSearch, this._keyStore = new tu(this.options.keys), this.setCollection(e, i);
6864
+ this.options = { ...G, ...r }, this.options.useExtendedSearch, this._keyStore = new th(this.options.keys), this.setCollection(e, i);
6865
6865
  }
6866
6866
  setCollection(e, r) {
6867
6867
  if (this._docs = e, r && !(r instanceof Ji))
@@ -6897,7 +6897,7 @@ class Ht {
6897
6897
  ignoreFieldNorm: a
6898
6898
  } = this.options;
6899
6899
  let l = We(e) ? We(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
6900
- return Mu(l, { ignoreFieldNorm: a }), s && l.sort(o), Vs(r) && r > -1 && (l = l.slice(0, r)), Lu(l, this._docs, {
6900
+ return Mh(l, { ignoreFieldNorm: a }), s && l.sort(o), Vs(r) && r > -1 && (l = l.slice(0, r)), Lh(l, this._docs, {
6901
6901
  includeMatches: i,
6902
6902
  includeScore: n
6903
6903
  });
@@ -6998,11 +6998,11 @@ class Ht {
6998
6998
  }
6999
6999
  Ht.version = "7.0.0";
7000
7000
  Ht.createIndex = Zs;
7001
- Ht.parseIndex = cu;
7001
+ Ht.parseIndex = ch;
7002
7002
  Ht.config = G;
7003
7003
  Ht.parseQuery = ro;
7004
- Eu(_u);
7005
- const Cu = (t, e = "highlight", r = "title") => {
7004
+ Eh(_h);
7005
+ const Ch = (t, e = "highlight", r = "title") => {
7006
7006
  const i = (s, o, a) => {
7007
7007
  const l = o.split(".");
7008
7008
  let c;
@@ -7038,7 +7038,7 @@ const Cu = (t, e = "highlight", r = "title") => {
7038
7038
  });
7039
7039
  };
7040
7040
  let io;
7041
- const ku = (t, e) => {
7041
+ const kh = (t, e) => {
7042
7042
  io = new Ht(t, {
7043
7043
  // minMatchCharLength: 3,
7044
7044
  // location: 0,
@@ -7048,7 +7048,7 @@ const ku = (t, e) => {
7048
7048
  useExtendedSearch: !0,
7049
7049
  ...e
7050
7050
  });
7051
- }, Ru = async (t, e, r) => {
7051
+ }, Rh = async (t, e, r) => {
7052
7052
  const i = Object.entries(e).filter(
7053
7053
  ([, a]) => a.type === "text" || a.type === "select" || a.type === "multiselect"
7054
7054
  ).reduce((a, [l, c]) => {
@@ -7067,7 +7067,7 @@ const ku = (t, e) => {
7067
7067
  const a = {
7068
7068
  $and: [...i]
7069
7069
  }, l = io.search(a);
7070
- n = r.enableHighlighting ? Cu(l, "highlight", r.titleProperty) : l.map((c) => c.item);
7070
+ n = r.enableHighlighting ? Ch(l, "highlight", r.titleProperty) : l.map((c) => c.item);
7071
7071
  }
7072
7072
  const s = Object.entries(e).filter(([, a]) => a.type === "range").reduce((a, [l, c]) => (a[l] = {
7073
7073
  min: c.state.min,
@@ -7112,15 +7112,15 @@ const ku = (t, e) => {
7112
7112
  n = [...a];
7113
7113
  }
7114
7114
  return n;
7115
- }, Tu = async (t, e, r) => (await (await fetch(`${r.externalFilter(t, e)}`)).json()).features;
7116
- var Iu = Object.defineProperty, Du = Object.getOwnPropertyDescriptor, nt = (t, e, r, i) => {
7117
- for (var n = i > 1 ? void 0 : i ? Du(e, r) : e, s = t.length - 1, o; s >= 0; s--)
7115
+ }, Th = async (t, e, r) => (await (await fetch(`${r.externalFilter(t, e)}`)).json()).features;
7116
+ var Ih = Object.defineProperty, Dh = Object.getOwnPropertyDescriptor, nt = (t, e, r, i) => {
7117
+ for (var n = i > 1 ? void 0 : i ? Dh(e, r) : e, s = t.length - 1, o; s >= 0; s--)
7118
7118
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
7119
- return i && n && Iu(e, r, n), n;
7119
+ return i && n && Ih(e, r, n), n;
7120
7120
  };
7121
7121
  class es {
7122
7122
  constructor() {
7123
- this.aggregateResults = void 0, this.enableHighlighting = !1, this.filterProperties = [], this.inlineMode = !1, this.matchAllWhenEmpty = !0, this.onFilter = () => {
7123
+ this.aggregateResults = void 0, this.autoSpreadSingle = !1, this.enableHighlighting = !1, this.filterProperties = [], this.inlineMode = !1, this.matchAllWhenEmpty = !0, this.onFilter = () => {
7124
7124
  }, this.onSelect = () => {
7125
7125
  }, this.showResults = !0, this.titleProperty = "title", this.expandMultipleFilters = !0, this.expandResults = !0, this.expandMultipleResults = !0;
7126
7126
  }
@@ -7194,7 +7194,7 @@ let Ve = class extends Sl {
7194
7194
  r.type === "text" ? r.keys.forEach((i) => {
7195
7195
  e.includes(i) || e.push(i);
7196
7196
  }) : (r.type === "select" || r.type === "multiselect") && (e.includes(r.key) || e.push(r.key));
7197
- }), ku(this._items, {
7197
+ }), kh(this._items, {
7198
7198
  keys: e,
7199
7199
  ...this._config.fuseConfig
7200
7200
  }), this.search();
@@ -7218,7 +7218,7 @@ let Ve = class extends Sl {
7218
7218
  }
7219
7219
  async search() {
7220
7220
  let t;
7221
- this.config.externalFilter ? t = await Tu(this._items, this.filters, this._config) : t = await Ru(this._items, this.filters, this._config), this.results = this.sortResults(t), this._config.onFilter(this.results, this.filters);
7221
+ this.config.externalFilter ? t = await Th(this._items, this.filters, this._config) : t = await Rh(this._items, this.filters, this._config), this.results = this.sortResults(t), this._config.onFilter(this.results, this.filters);
7222
7222
  }
7223
7223
  aggregateResults(t, e) {
7224
7224
  return t.filter((r) => {
@@ -7229,6 +7229,49 @@ let Ve = class extends Sl {
7229
7229
  ).filter((o) => this.filters[this._config.aggregateResults].state[o])), (n != null && n.length ? n.includes(e) : !0) && Array.isArray(i) ? i.includes(e) : i === e;
7230
7230
  });
7231
7231
  }
7232
+ createItemList(t) {
7233
+ return U`
7234
+ <ul>
7235
+ ${ms(
7236
+ this.aggregateResults(this.results, t),
7237
+ (e) => e.id,
7238
+ (e) => {
7239
+ var r, i;
7240
+ return U`
7241
+ <li
7242
+ class=${((r = this.selectedResult) == null ? void 0 : r[this._config.titleProperty]) === e[this._config.titleProperty] ? "highlighted" : oe}
7243
+ >
7244
+ <label>
7245
+ <input
7246
+ data-cy="result-radio"
7247
+ type="radio"
7248
+ class="result-radio"
7249
+ name="result"
7250
+ id="${e.id}"
7251
+ ?checked=${((i = this.selectedResult) == null ? void 0 : i[this._config.titleProperty]) === e[this._config.titleProperty] || oe}
7252
+ @click=${() => {
7253
+ this.selectedResult = e, this._config.onSelect(e);
7254
+ }}
7255
+ />
7256
+ ${de(
7257
+ this.hasTemplate("result"),
7258
+ () => this.renderTemplate("result", e, `result-${e.id}`),
7259
+ () => U`
7260
+ <span class="title"
7261
+ >${In(
7262
+ e[this._config.titleProperty]
7263
+ )}</span
7264
+ >
7265
+ `
7266
+ )}
7267
+ </label>
7268
+ </li>
7269
+ `;
7270
+ }
7271
+ )}
7272
+ </ul>
7273
+ `;
7274
+ }
7232
7275
  sortResults(t) {
7233
7276
  return [...t].sort(
7234
7277
  (e, r) => e[this._config.titleProperty].localeCompare(
@@ -7259,7 +7302,7 @@ let Ve = class extends Sl {
7259
7302
  }
7260
7303
  }
7261
7304
  render() {
7262
- return V`
7305
+ return U`
7263
7306
  <style>
7264
7307
  ${Di}
7265
7308
  ${!this.unstyled && Ni}
@@ -7271,7 +7314,7 @@ let Ve = class extends Sl {
7271
7314
  >
7272
7315
  ${de(
7273
7316
  this._config.inlineMode,
7274
- () => V`
7317
+ () => U`
7275
7318
  <eox-itemfilter-inline
7276
7319
  .items=${Object.values(this.filters)}
7277
7320
  .unstyled=${this.unstyled}
@@ -7279,16 +7322,16 @@ let Ve = class extends Sl {
7279
7322
  >
7280
7323
  </eox-itemfilter-inline>
7281
7324
  `,
7282
- () => V`
7325
+ () => U`
7283
7326
  ${de(
7284
7327
  this._config.filterProperties.length,
7285
- () => V`
7328
+ () => U`
7286
7329
  <section
7287
7330
  class="${this.config.inlineMode ? "inline" : oe}"
7288
7331
  >
7289
7332
  ${de(
7290
7333
  !this.config.inlineMode,
7291
- () => V`
7334
+ () => U`
7292
7335
  <slot name="filterstitle"
7293
7336
  ><h4 style="margin-top: 8px">Filters</h4></slot
7294
7337
  >
@@ -7317,7 +7360,7 @@ let Ve = class extends Sl {
7317
7360
  >
7318
7361
  ${de(
7319
7362
  t.dirty,
7320
- () => V`
7363
+ () => U`
7321
7364
  <button
7322
7365
  slot="reset-button"
7323
7366
  class="reset-icon icon"
@@ -7349,7 +7392,7 @@ let Ve = class extends Sl {
7349
7392
  </ul>
7350
7393
  ${de(
7351
7394
  this._config.filterProperties && Object.values(this.filters).map((t) => t.dirty).filter((t) => t).length > 0,
7352
- () => V`
7395
+ () => U`
7353
7396
  <button
7354
7397
  id="filter-reset"
7355
7398
  class="outline small icon-text reset-icon"
@@ -7365,7 +7408,7 @@ let Ve = class extends Sl {
7365
7408
  )}
7366
7409
  ${de(
7367
7410
  this.config.showResults && this.results,
7368
- () => V`
7411
+ () => U`
7369
7412
  <section id="section-results">
7370
7413
  <div>
7371
7414
  <slot name="resultstitle"
@@ -7373,7 +7416,7 @@ let Ve = class extends Sl {
7373
7416
  >
7374
7417
  </div>
7375
7418
  <div id="container-results" class="scroll">
7376
- ${this.results.length < 1 ? V`
7419
+ ${this.results.length < 1 ? U`
7377
7420
  <small class="no-results">No matching items</small>
7378
7421
  ` : oe}
7379
7422
  <ul id="results" part="results">
@@ -7384,72 +7427,42 @@ let Ve = class extends Sl {
7384
7427
  t
7385
7428
  ).length
7386
7429
  ),
7387
- (t) => V`<details
7388
- class="details-results"
7389
- @toggle=${this.toggleAccordion}
7390
- ?open=${this._config.expandResults || oe}
7391
- >
7392
- <summary>
7393
- <span class="title">
7394
- ${t}
7395
- <span class="count"
7396
- >${this.aggregateResults(
7397
- this.results,
7398
- t
7399
- ).length}</span
7400
- >
7401
- </span>
7402
- </summary>
7403
- <ul>
7404
- ${ms(
7430
+ (t) => U` ${de(
7405
7431
  this.aggregateResults(
7406
7432
  this.results,
7407
7433
  t
7408
- ),
7409
- (e) => e.id,
7410
- (e) => {
7411
- var r, i;
7412
- return V`
7413
- <li
7414
- class=${((r = this.selectedResult) == null ? void 0 : r[this._config.titleProperty]) === e[this._config.titleProperty] ? "highlighted" : oe}
7415
- >
7416
- <label>
7417
- <input
7418
- data-cy="result-radio"
7419
- type="radio"
7420
- class="result-radio"
7421
- name="result"
7422
- id="${e.id}"
7423
- ?checked=${((i = this.selectedResult) == null ? void 0 : i[this._config.titleProperty]) === e[this._config.titleProperty] || oe}
7424
- @click=${() => {
7425
- this.selectedResult = e, this._config.onSelect(e);
7426
- }}
7427
- />
7428
- ${de(
7429
- this.hasTemplate("result"),
7430
- () => this.renderTemplate(
7431
- "result",
7432
- e,
7433
- `result-${e.id}`
7434
- ),
7435
- () => V`
7436
- <span class="title"
7437
- >${In(
7438
- e[this._config.titleProperty]
7439
- )}</span
7440
- >
7441
- `
7442
- )}
7443
- </label>
7444
- </li>
7445
- `;
7446
- }
7447
- )}
7448
- </ul>
7449
- </details>`
7434
+ ).length === 1 && this.config.autoSpreadSingle,
7435
+ () => U` <div style="margin-left: -8px">
7436
+ ${this.createItemList(t)}
7437
+ </div>`,
7438
+ () => U`
7439
+ <details
7440
+ class="details-results"
7441
+ @toggle=${this.toggleAccordion}
7442
+ ?open=${this._config.expandResults || oe}
7443
+ >
7444
+ <summary>
7445
+ <span class="title">
7446
+ ${t}
7447
+ <span class="count"
7448
+ >${this.aggregateResults(
7449
+ this.results,
7450
+ t
7451
+ ).length}</span
7452
+ >
7453
+ </span>
7454
+ </summary>
7455
+ <div>
7456
+ ${this.createItemList(
7457
+ t
7458
+ )}
7459
+ </div>
7460
+ </details>
7461
+ `
7462
+ )}`
7450
7463
  ) : Kt(
7451
7464
  this.results,
7452
- (t) => V`<li part="result">
7465
+ (t) => U`<li part="result">
7453
7466
  <label>
7454
7467
  <input
7455
7468
  type="radio"
@@ -7466,7 +7479,7 @@ let Ve = class extends Sl {
7466
7479
  t,
7467
7480
  `result-${t.id}`
7468
7481
  ),
7469
- () => V`
7482
+ () => U`
7470
7483
  <span class="title"
7471
7484
  >${In(
7472
7485
  t[this._config.titleProperty]