@oslokommune/punkt-react 12.3.7 → 12.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -401,7 +401,7 @@ function Qm() {
401
401
  }
402
402
  }
403
403
  var qi = Array.isArray;
404
- function zt(w) {
404
+ function Vt(w) {
405
405
  return qi(w);
406
406
  }
407
407
  function _r(w) {
@@ -523,7 +523,7 @@ function Qm() {
523
523
  }
524
524
  }
525
525
  var Er = T.ReactCurrentOwner, Ta = T.ReactDebugCurrentFrame;
526
- function $t(w) {
526
+ function Tt(w) {
527
527
  if (w) {
528
528
  var M = w._owner, H = Pt(w.type, w._source, M ? M.type : null);
529
529
  Ta.setExtraStackFrame(H);
@@ -573,14 +573,14 @@ Check the top-level render call using <` + H + ">.");
573
573
  return;
574
574
  Ba[H] = !0;
575
575
  var Z = "";
576
- w && w._owner && w._owner !== Er.current && (Z = " It was passed a child from " + L(w._owner.type) + "."), $t(w), F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', H, Z), $t(null);
576
+ w && w._owner && w._owner !== Er.current && (Z = " It was passed a child from " + L(w._owner.type) + "."), Tt(w), F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', H, Z), Tt(null);
577
577
  }
578
578
  }
579
- function Vt(w, M) {
579
+ function Yt(w, M) {
580
580
  {
581
581
  if (typeof w != "object")
582
582
  return;
583
- if (zt(w))
583
+ if (Vt(w))
584
584
  for (var H = 0; H < w.length; H++) {
585
585
  var Z = w[H];
586
586
  Ar(Z) && Cn(Z, M);
@@ -625,11 +625,11 @@ Check the top-level render call using <` + H + ">.");
625
625
  for (var M = Object.keys(w.props), H = 0; H < M.length; H++) {
626
626
  var Z = M[H];
627
627
  if (Z !== "children" && Z !== "key") {
628
- $t(w), F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Z), $t(null);
628
+ Tt(w), F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Z), Tt(null);
629
629
  break;
630
630
  }
631
631
  }
632
- w.ref !== null && ($t(w), F("Invalid attribute `ref` supplied to `React.Fragment`."), $t(null));
632
+ w.ref !== null && (Tt(w), F("Invalid attribute `ref` supplied to `React.Fragment`."), Tt(null));
633
633
  }
634
634
  }
635
635
  var Na = {};
@@ -642,7 +642,7 @@ Check the top-level render call using <` + H + ">.");
642
642
  var Xe = Gi();
643
643
  Xe ? ae += Xe : ae += $r();
644
644
  var Te;
645
- w === null ? Te = "null" : zt(w) ? Te = "array" : w !== void 0 && w.$$typeof === t ? (Te = "<" + (L(w.type) || "Unknown") + " />", ae = " Did you accidentally export a JSX literal instead of a component?") : Te = typeof w, F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Te, ae);
645
+ w === null ? Te = "null" : Vt(w) ? Te = "array" : w !== void 0 && w.$$typeof === t ? (Te = "<" + (L(w.type) || "Unknown") + " />", ae = " Did you accidentally export a JSX literal instead of a component?") : Te = typeof w, F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Te, ae);
646
646
  }
647
647
  var Fe = Yi(w, M, H, ve, me);
648
648
  if (Fe == null)
@@ -651,14 +651,14 @@ Check the top-level render call using <` + H + ">.");
651
651
  var ft = M.children;
652
652
  if (ft !== void 0)
653
653
  if (Z)
654
- if (zt(ft)) {
654
+ if (Vt(ft)) {
655
655
  for (var He = 0; He < ft.length; He++)
656
- Vt(ft[He], w);
656
+ Yt(ft[He], w);
657
657
  Object.freeze && Object.freeze(ft);
658
658
  } else
659
659
  F("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
660
660
  else
661
- Vt(ft, w);
661
+ Yt(ft, w);
662
662
  }
663
663
  if (ke.call(M, "key")) {
664
664
  var Qe = L(w), it = Object.keys(M).filter(function(Zi) {
@@ -1633,7 +1633,7 @@ var Tg = Object.defineProperty, Ge = (e, t, n, r) => {
1633
1633
  (u = e[o]) && (i = u(t, n, i) || i);
1634
1634
  return i && Tg(t, n, i), i;
1635
1635
  };
1636
- let qt = class extends ra {
1636
+ let Ht = class extends ra {
1637
1637
  /**
1638
1638
  * Add extra stuff here whenever we decide what should be added here…
1639
1639
  */
@@ -1661,8 +1661,8 @@ let qt = class extends ra {
1661
1661
  };
1662
1662
  Ge([
1663
1663
  O({ type: Object })
1664
- ], qt.prototype, "strings");
1665
- let Ke = class extends qt {
1664
+ ], Ht.prototype, "strings");
1665
+ let Ke = class extends Ht {
1666
1666
  constructor() {
1667
1667
  super(), this.id = np(), this.name = this.id, this.required = !1, this.disabled = !1, this.placeholder = "", this.min = null, this.max = null, this.minlength = 0, this.maxlength = 0, this.pattern = "", this.optionalTag = !1, this.optionalText = Nt.forms.labels.optional, this.requiredTag = !1, this.requiredText = Nt.forms.labels.required, this.hasError = !1, this.errorMessage = "", this.touched = !1, this.internals = this.attachInternals();
1668
1668
  }
@@ -1684,28 +1684,43 @@ let Ke = class extends qt {
1684
1684
  t
1685
1685
  ) : t.validity.customError ? this.internals.setValidity({ customError: !0 }, t.validationMessage, t) : this.internals.setValidity({});
1686
1686
  }
1687
- // Trigger this when you want to set the value of the input out to the form
1688
- onInput(t) {
1689
- if (!this.touched) {
1690
- this.touched = !0;
1691
- return;
1692
- }
1693
- if (!(typeof t != "string" && !Array.isArray(t))) {
1694
- if ((this.range || this.multiple) && !Array.isArray(t) && t.includes(",") && (t = t.split(",")), !this.multiple && !this.range && Array.isArray(t) && (t = t[0]), Array.isArray(t)) {
1687
+ setFormValue(t) {
1688
+ if (this.internals)
1689
+ if (Array.isArray(t)) {
1695
1690
  const n = new FormData();
1696
1691
  t.forEach((r) => {
1697
1692
  n.append(this.name, r);
1698
1693
  }), this.internals.setFormValue(n);
1699
1694
  } else
1700
1695
  this.internals.setFormValue(t);
1701
- this.manageValidity(this.inputRef.value), this.inputRef2 && this.manageValidity(this.inputRef2.value), this.dispatchEvent(new Event("input")), this.dispatchEvent(new Event("change")), this.dispatchEvent(
1702
- new CustomEvent("value-change", {
1703
- detail: t,
1704
- bubbles: !0,
1705
- composed: !0
1706
- })
1707
- ), this.internals.reportValidity();
1696
+ }
1697
+ valueChanged(t, n) {
1698
+ typeof t == "string" ? ((this.multiple || this.range) && t.includes(",") && (t = t.split(",")), this.value = t, this._value = Array.isArray(t) ? t : [t]) : Array.isArray(t) ? (this.value = t, this._value = t) : (this.value = "", this._value = []), (!this.value || this.value.length === 0) && n && n.length !== 0 ? this.clearInputValue() : this.value && this.value.toString() !== (n == null ? void 0 : n.toString()) && this.onInput(this.value), this.updateComplete.then(() => this.requestUpdate());
1699
+ }
1700
+ // When input goes from content to no content
1701
+ clearInputValue() {
1702
+ const t = this.multiple || this.range ? [] : "";
1703
+ this.value = t, this.internals.setFormValue(t), this.dispatchEvent(new Event("change")), this.dispatchEvent(
1704
+ new CustomEvent("value-change", {
1705
+ detail: t,
1706
+ bubbles: !0,
1707
+ composed: !0
1708
+ })
1709
+ );
1710
+ }
1711
+ // Trigger this when you want to set the value of the input out to the form
1712
+ onInput(t) {
1713
+ if (!this.touched) {
1714
+ this.touched = !0, t && this.setFormValue(t);
1715
+ return;
1708
1716
  }
1717
+ typeof t != "string" && !Array.isArray(t) || ((this.range || this.multiple) && !Array.isArray(t) && t.includes(",") && (t = t.split(",")), !this.multiple && !this.range && Array.isArray(t) && (t = t[0]), this.setFormValue(t), this.manageValidity(this.inputRef.value), this.inputRef2 && this.manageValidity(this.inputRef2.value), this.dispatchEvent(new Event("input")), this.dispatchEvent(new Event("change")), this.dispatchEvent(
1718
+ new CustomEvent("value-change", {
1719
+ detail: t,
1720
+ bubbles: !0,
1721
+ composed: !0
1722
+ })
1723
+ ), this.internals.reportValidity());
1709
1724
  }
1710
1725
  firstUpdated(t) {
1711
1726
  super.firstUpdated(t), this.required && (this.internals.ariaRequired = !0), this.disabled && (this.internals.disabled = !0, this.internals.ariaDisabled = !0), this.internals.setFormValue(this.value), this.manageValidity(this.inputRef.value);
@@ -1881,7 +1896,7 @@ const Lg = (e) => new Promise((t) => setTimeout(t, e)), ui = '<svg xmlns="http:/
1881
1896
  window.pktFetch(t + e + ".svg").then((r) => r.ok ? r.text() : (console.error("Missing icon: " + t + e + ".svg"), ui)).then((r) => (r !== ui && localStorage.setItem(t + e + ".svg", r), Es[t + e + ".svg"] = "fetched", r))
1882
1897
  )) : Promise.resolve(ui);
1883
1898
  };
1884
- let gr = class extends qt {
1899
+ let gr = class extends Ht {
1885
1900
  constructor() {
1886
1901
  super(), this.path = window.pktIconPath, this.name = "", this.icon = Eu(ui), this._updatedProps = [], this.classList.add("pkt-icon");
1887
1902
  }
@@ -2054,7 +2069,7 @@ var zg = Object.defineProperty, Vg = Object.getOwnPropertyDescriptor, $e = (e, t
2054
2069
  (u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
2055
2070
  return r && i && zg(t, n, i), i;
2056
2071
  };
2057
- let Ee = class extends qt {
2072
+ let Ee = class extends Ht {
2058
2073
  /**
2059
2074
  * If we are initializing props, slots and events from specs, we should do it in the constructor
2060
2075
  */
@@ -2605,7 +2620,7 @@ let tv = class extends Fi {
2605
2620
  * Copyright 2020 Google LLC
2606
2621
  * SPDX-License-Identifier: BSD-3-Clause
2607
2622
  */
2608
- const Et = () => new nv();
2623
+ const Ft = () => new nv();
2609
2624
  let nv = class {
2610
2625
  };
2611
2626
  const $s = /* @__PURE__ */ new WeakMap(), ct = ya(class extends tv {
@@ -2703,9 +2718,9 @@ var sv = Object.defineProperty, ov = Object.getOwnPropertyDescriptor, nn = (e, t
2703
2718
  (u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
2704
2719
  return r && i && sv(t, n, i), i;
2705
2720
  };
2706
- let Rt = class extends qt {
2721
+ let qt = class extends Ht {
2707
2722
  constructor() {
2708
- super(), this.defaultSlot = Et(), this.closeTag = rr.props.closeTag.default, this.size = rr.props.size.default, this.skin = rr.props.skin.default, this.textStyle = rr.props.textStyle.default, this.iconName = void 0, this.type = rr.props.type.default, this.ariaLabel = rr.props.ariaLabel.default, this._isClosed = !1, this.close = (t) => {
2723
+ super(), this.defaultSlot = Ft(), this.closeTag = rr.props.closeTag.default, this.size = rr.props.size.default, this.skin = rr.props.skin.default, this.textStyle = rr.props.textStyle.default, this.iconName = void 0, this.type = rr.props.type.default, this.ariaLabel = rr.props.ariaLabel.default, this._isClosed = !1, this.close = (t) => {
2709
2724
  this._isClosed = !0, this.dispatchEvent(
2710
2725
  new CustomEvent("onClose", {
2711
2726
  detail: { origin: t },
@@ -2751,31 +2766,31 @@ let Rt = class extends qt {
2751
2766
  };
2752
2767
  nn([
2753
2768
  O({ type: Boolean, reflect: !0 })
2754
- ], Rt.prototype, "closeTag", 2);
2769
+ ], qt.prototype, "closeTag", 2);
2755
2770
  nn([
2756
2771
  O({ type: String, reflect: !0 })
2757
- ], Rt.prototype, "size", 2);
2772
+ ], qt.prototype, "size", 2);
2758
2773
  nn([
2759
2774
  O({ type: String, reflect: !0 })
2760
- ], Rt.prototype, "skin", 2);
2775
+ ], qt.prototype, "skin", 2);
2761
2776
  nn([
2762
2777
  O({ type: String, reflect: !0 })
2763
- ], Rt.prototype, "textStyle", 2);
2778
+ ], qt.prototype, "textStyle", 2);
2764
2779
  nn([
2765
2780
  O({ type: String, reflect: !0 })
2766
- ], Rt.prototype, "iconName", 2);
2781
+ ], qt.prototype, "iconName", 2);
2767
2782
  nn([
2768
2783
  O({ type: String, reflect: !0 })
2769
- ], Rt.prototype, "type", 2);
2784
+ ], qt.prototype, "type", 2);
2770
2785
  nn([
2771
2786
  O({ type: String, reflect: !0 })
2772
- ], Rt.prototype, "ariaLabel", 2);
2787
+ ], qt.prototype, "ariaLabel", 2);
2773
2788
  nn([
2774
2789
  Da()
2775
- ], Rt.prototype, "_isClosed", 2);
2776
- Rt = nn([
2790
+ ], qt.prototype, "_isClosed", 2);
2791
+ qt = nn([
2777
2792
  tn("pkt-tag")
2778
- ], Rt);
2793
+ ], qt);
2779
2794
  const lv = "pkt-card", uv = !0, cv = {
2780
2795
  heading: {
2781
2796
  type: "string",
@@ -2880,9 +2895,9 @@ var dv = Object.defineProperty, hv = Object.getOwnPropertyDescriptor, Hn = (e, t
2880
2895
  (u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
2881
2896
  return r && i && dv(t, n, i), i;
2882
2897
  };
2883
- let Zt = class extends qt {
2898
+ let Zt = class extends Ht {
2884
2899
  constructor() {
2885
- super(), this.defaultSlot = Et(), this.skin = Au.props.skin.default, this.direction = Au.props.direction.default, this.image = {
2900
+ super(), this.defaultSlot = Ft(), this.skin = Au.props.skin.default, this.direction = Au.props.direction.default, this.image = {
2886
2901
  src: "",
2887
2902
  alt: ""
2888
2903
  }, this.heading = "", this.subheading = "", this.tags = [], this.slotController = new kr(this, this.defaultSlot);
@@ -2949,9 +2964,9 @@ var fv = Object.defineProperty, mv = Object.getOwnPropertyDescriptor, ka = (e, t
2949
2964
  (u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
2950
2965
  return r && i && fv(t, n, i), i;
2951
2966
  };
2952
- let vr = class extends qt {
2967
+ let vr = class extends Ht {
2953
2968
  constructor() {
2954
- super(), this.string = "", this.strings = [], this.darkmode = !1, this._list = [], this.defaultSlot = Et(), this.namedSlot = Et(), this.slotController = new kr(this, this.defaultSlot, this.namedSlot);
2969
+ super(), this.string = "", this.strings = [], this.darkmode = !1, this._list = [], this.defaultSlot = Ft(), this.namedSlot = Ft(), this.slotController = new kr(this, this.defaultSlot, this.namedSlot);
2955
2970
  }
2956
2971
  /**
2957
2972
  * Runs on mount, used to set up various values and whatever you need to run
@@ -3169,9 +3184,9 @@ var bv = Object.defineProperty, kv = Object.getOwnPropertyDescriptor, Oe = (e, t
3169
3184
  (u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
3170
3185
  return r && i && bv(t, n, i), i;
3171
3186
  };
3172
- let Pe = class extends qt {
3187
+ let Pe = class extends Ht {
3173
3188
  constructor() {
3174
- super(), this.defaultSlot = Et(), this.forId = np(), this.label = _t.props.label.default, this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = _t.props.helptextDropdownButton.default, this.counter = _t.props.counter.default, this.counterCurrent = 0, this.counterMaxLength = 0, this.optionalTag = _t.props.optionalTag.default, this.optionalText = _t.props.optionalText.default, this.requiredTag = _t.props.requiredTag.default, this.requiredText = _t.props.requiredText.default, this.hasError = _t.props.hasError.default, this.errorMessage = "", this.disabled = _t.props.disabled.default, this.inline = _t.props.inline.default, this.ariaDescribedby = void 0, this.hasFieldset = _t.props.hasFieldset.default, this.useWrapper = _t.props.useWrapper.default, this.isHelpTextOpen = !1, this.wrapperType = this.useWrapper ? Ts`fieldset` : this.hasDropdown ? Ts`div` : Ts`label`, this.slotController = new kr(this, this.defaultSlot);
3189
+ super(), this.defaultSlot = Ft(), this.forId = np(), this.label = _t.props.label.default, this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = _t.props.helptextDropdownButton.default, this.counter = _t.props.counter.default, this.counterCurrent = 0, this.counterMaxLength = 0, this.optionalTag = _t.props.optionalTag.default, this.optionalText = _t.props.optionalText.default, this.requiredTag = _t.props.requiredTag.default, this.requiredText = _t.props.requiredText.default, this.hasError = _t.props.hasError.default, this.errorMessage = "", this.disabled = _t.props.disabled.default, this.inline = _t.props.inline.default, this.ariaDescribedby = void 0, this.hasFieldset = _t.props.hasFieldset.default, this.useWrapper = _t.props.useWrapper.default, this.isHelpTextOpen = !1, this.wrapperType = this.useWrapper ? Ts`fieldset` : this.hasDropdown ? Ts`div` : Ts`label`, this.slotController = new kr(this, this.defaultSlot);
3175
3190
  }
3176
3191
  render() {
3177
3192
  const t = {
@@ -4701,15 +4716,18 @@ const Lu = (e, t, n) => {
4701
4716
  }
4702
4717
  }, F2 = {
4703
4718
  change: {
4704
- description: "Returnerer kommaseparert liste av valgte datoer i ISO-format"
4719
+ type: "Event",
4720
+ description: "Returnerer valgt dato som streng i ISO-format"
4705
4721
  },
4706
- "value-changed": {
4722
+ "value-change": {
4723
+ type: "CustomEvent",
4707
4724
  description: "Returnerer en <code>array</code> med valgte datoer i ISO-format"
4708
4725
  },
4709
4726
  toggleHelpText: {
4727
+ type: "CustomEvent",
4710
4728
  description: "Returnerer <code>event.detail { isOpen: true }</code> eller <code>event.detail { isOpen: false }</code> når hjelpeteksten åpnes eller lukkes"
4711
4729
  }
4712
- }, Yt = {
4730
+ }, Gt = {
4713
4731
  name: _2,
4714
4732
  "css-class": "pkt-datepicker",
4715
4733
  isElement: S2,
@@ -4724,7 +4742,7 @@ var A2 = Object.defineProperty, $2 = Object.getOwnPropertyDescriptor, Je = (e, t
4724
4742
  const Ou = (e) => new Promise((t) => setTimeout(t, e));
4725
4743
  let qe = class extends Ke {
4726
4744
  constructor() {
4727
- super(...arguments), this.value = "", this._value = this.value ? Array.isArray(this.value) ? this.value : this.value.split(",") : [], this.label = "Datovelger", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Yt.props.helptextDropdownButton.default, this.dateformat = Yt.props.dateformat.default, this.multiple = Yt.props.multiple.default, this.maxlength = Yt.props.maxlength.default, this.range = Yt.props.range.default, this.weeknumbers = Yt.props.weeknumbers.default, this.withcontrols = Yt.props.withcontrols.default, this.fullwidth = !1, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = this.formatISODate(/* @__PURE__ */ new Date()), this.calendarOpen = !1, this.inputRef = Et(), this.inputRefTo = Et(), this.btnRef = Et(), this.calRef = Et(), this.popupRef = Et(), this.inputClasses = {
4745
+ super(...arguments), this.value = "", this._value = this.value ? Array.isArray(this.value) ? this.value : this.value.split(",") : [], this.label = "Datovelger", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Gt.props.helptextDropdownButton.default, this.dateformat = Gt.props.dateformat.default, this.multiple = Gt.props.multiple.default, this.maxlength = Gt.props.maxlength.default, this.range = Gt.props.range.default, this.weeknumbers = Gt.props.weeknumbers.default, this.withcontrols = Gt.props.withcontrols.default, this.fullwidth = !1, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = this.formatISODate(/* @__PURE__ */ new Date()), this.calendarOpen = !1, this.inputRef = Ft(), this.inputRefTo = Ft(), this.btnRef = Ft(), this.calRef = Ft(), this.popupRef = Ft(), this.inputClasses = {
4728
4746
  "pkt-input": !0,
4729
4747
  "pkt-datepicker__input": !0,
4730
4748
  "pkt-input--fullwidth": this.fullwidth
@@ -4756,7 +4774,7 @@ let qe = class extends Ke {
4756
4774
  super.connectedCallback(), document && document.body.addEventListener("click", (e) => {
4757
4775
  var t, n;
4758
4776
  (t = this.inputRef) != null && t.value && (n = this.btnRef) != null && n.value && !this.inputRef.value.contains(e.target) && !(this.inputRefTo.value && this.inputRefTo.value.contains(e.target)) && !this.btnRef.value.contains(e.target) && !e.target.closest(".pkt-calendar-popup") && this.hideCalendar();
4759
- }), this.value.length && this._value.length === 0 && (this._value = Array.isArray(this.value) ? this.value : this.value.split(",")), this.min = this.min || Yt.props.min.default, this.max = this.max || Yt.props.max.default, typeof this.excludedates == "string" && (this.excludedates = this.excludedates.split(",")), typeof this.excludeweekdays == "string" && (this.excludeweekdays = this.excludeweekdays.split(",")), (this.multiple || this.range) && this.name && !this.name.endsWith("[]") && (this.name = this.name + "[]"), this.calendarOpen && (await Ou(20), this.handleCalendarPosition());
4777
+ }), this.value.length && this._value.length === 0 && (this._value = Array.isArray(this.value) ? this.value : this.value.split(",")), this.min = this.min || Gt.props.min.default, this.max = this.max || Gt.props.max.default, typeof this.excludedates == "string" && (this.excludedates = this.excludedates.split(",")), typeof this.excludeweekdays == "string" && (this.excludeweekdays = this.excludeweekdays.split(",")), (this.multiple || this.range) && this.name && !this.name.endsWith("[]") && (this.name = this.name + "[]"), this.calendarOpen && (await Ou(20), this.handleCalendarPosition());
4760
4778
  }
4761
4779
  disconnectedCallback() {
4762
4780
  super.disconnectedCallback(), document && document.body.removeEventListener("click", (e) => {
@@ -4765,17 +4783,15 @@ let qe = class extends Ke {
4765
4783
  });
4766
4784
  }
4767
4785
  attributeChangedCallback(e, t, n) {
4768
- e === "value" && (this.value === "" || this.value.length === 0 || typeof this.value > "u" ? this._value = [] : this.value.length && this._value.length === 0 && (!Array.isArray(this.value) && this.value.includes(",") && (this.value = this.value.split(",")), this._value = Array.isArray(this.value) ? this.value : this.value.split(","))), e === "excludedates" && typeof this.excludedates == "string" && (this.excludedates = (n == null ? void 0 : n.split(",")) ?? []), e === "excludeweekdays" && typeof this.excludeweekdays == "string" && (this.excludeweekdays = (n == null ? void 0 : n.split(",")) ?? []), super.attributeChangedCallback(e, t, n);
4786
+ e === "value" && this.valueChanged(this.value, t), e === "excludedates" && typeof this.excludedates == "string" && (this.excludedates = (n == null ? void 0 : n.split(",")) ?? []), e === "excludeweekdays" && typeof this.excludeweekdays == "string" && (this.excludeweekdays = (n == null ? void 0 : n.split(",")) ?? []), super.attributeChangedCallback(e, t, n);
4769
4787
  }
4770
4788
  firstUpdated(e) {
4771
4789
  super.firstUpdated(e);
4772
4790
  }
4773
4791
  updated(e) {
4774
- var t;
4775
4792
  if (super.updated(e), e.has("value")) {
4776
- if (this.range && this._value.length === 1 || ((t = e.get("value")) == null ? void 0 : t.toString()) === this.value.toString())
4777
- return;
4778
- this.onInput(this.value);
4793
+ if (this.range && this._value.length === 1) return;
4794
+ this.valueChanged(this.value, e.get("value"));
4779
4795
  }
4780
4796
  }
4781
4797
  /**
@@ -4790,7 +4806,7 @@ let qe = class extends Ke {
4790
4806
  class="${Ye(this.inputClasses)}"
4791
4807
  type="date"
4792
4808
  id="${this.id}-input"
4793
- value=${this.value}
4809
+ .value=${this._value[0] ?? ""}
4794
4810
  min=${this.min}
4795
4811
  max=${this.max}
4796
4812
  @click=${(e) => {
@@ -4798,7 +4814,7 @@ let qe = class extends Ke {
4798
4814
  }}
4799
4815
  ?disabled=${this.disabled}
4800
4816
  @blur=${(e) => {
4801
- this.manageValidity(e.target), this.value = e.target.value, this._value = this.massageDates(e.target.value.split(","));
4817
+ this.manageValidity(e.target), this.value = e.target.value;
4802
4818
  }}
4803
4819
  @change=${(e) => {
4804
4820
  e.stopImmediatePropagation();
@@ -4814,7 +4830,7 @@ let qe = class extends Ke {
4814
4830
  class=${Ye(this.inputClasses)}
4815
4831
  type="date"
4816
4832
  id="${this.id}-input"
4817
- value=${this._value[0] ?? ""}
4833
+ .value=${this._value[0] ?? ""}
4818
4834
  min=${this.min}
4819
4835
  max=${this.max}
4820
4836
  @click=${(e) => {
@@ -4827,7 +4843,7 @@ let qe = class extends Ke {
4827
4843
  this.manageValidity(e.target);
4828
4844
  const r = this.fromISOToDate(e.target.value);
4829
4845
  r && this._value[0] !== e.target.value && this._value[1] && ((n = (t = this.calRef) == null ? void 0 : t.value) == null || n.handleDateSelect(r));
4830
- }
4846
+ } else this._value[0] && this.clearInputValue();
4831
4847
  }}
4832
4848
  @change=${(e) => {
4833
4849
  e.stopImmediatePropagation();
@@ -4839,7 +4855,7 @@ let qe = class extends Ke {
4839
4855
  class=${Ye(this.inputClasses)}
4840
4856
  type="date"
4841
4857
  id="${this.id}-to"
4842
- value=${this._value[1] ?? ""}
4858
+ .value=${this._value[1] ?? ""}
4843
4859
  min=${this.min}
4844
4860
  max=${this.max}
4845
4861
  @click=${(e) => {
@@ -4937,7 +4953,7 @@ let qe = class extends Ke {
4937
4953
  .excludeweekdays=${this.excludeweekdays}
4938
4954
  .currentmonth=${new Date(this.currentmonth)}
4939
4955
  @date-selected=${(e) => {
4940
- this.value = !this.multiple && !this.range ? Array.isArray(e.detail) ? e.detail[0] : e.detail.split(",")[0] : e.detail, this._value = e.detail, this.inputRef.value && (this.range && this.inputRefTo.value ? (this.inputRef.value.value = this._value[0] ?? "", this.inputRefTo.value.value = this._value[1] ?? "") : this.multiple || (this.inputRef.value.value = this._value.length ? this._value[0] : ""));
4956
+ this.value = !this.multiple && !this.range ? e.detail[0] : e.detail, this._value = e.detail, this.inputRef.value && (this.range && this.inputRefTo.value ? (this.inputRef.value.value = this._value[0] ?? "", this.inputRefTo.value.value = this._value[1] ?? "") : this.multiple || (this.inputRef.value.value = this._value.length ? this._value[0] : ""));
4941
4957
  }}
4942
4958
  @close=${this.hideCalendar}
4943
4959
  ${ct(this.calRef)}
@@ -5115,9 +5131,9 @@ var P2 = Object.defineProperty, L2 = Object.getOwnPropertyDescriptor, wr = (e, t
5115
5131
  (u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
5116
5132
  return r && i && P2(t, n, i), i;
5117
5133
  };
5118
- let vn = class extends qt {
5134
+ let vn = class extends Ht {
5119
5135
  constructor() {
5120
- super(), this.defaultSlot = Et(), this.href = Ns.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = Ns.props.external.default, this.target = Ns.props.target.default, this.slotController = new kr(this, this.defaultSlot);
5136
+ super(), this.defaultSlot = Ft(), this.href = Ns.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = Ns.props.external.default, this.target = Ns.props.target.default, this.slotController = new kr(this, this.defaultSlot);
5121
5137
  }
5122
5138
  render() {
5123
5139
  const e = {
@@ -5167,9 +5183,9 @@ var O2 = Object.defineProperty, I2 = Object.getOwnPropertyDescriptor, Un = (e, t
5167
5183
  (u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
5168
5184
  return r && i && O2(t, n, i), i;
5169
5185
  };
5170
- let Dn = class extends qt {
5186
+ let Dn = class extends Ht {
5171
5187
  constructor() {
5172
- super(), this.defaultSlot = Et(), this.closable = !1, this.compact = !1, this.title = "", this.skin = "beige", this.isDisplayed = !0, this.slotController = new kr(this, this.defaultSlot);
5188
+ super(), this.defaultSlot = Ft(), this.closable = !1, this.compact = !1, this.title = "", this.skin = "beige", this.isDisplayed = !0, this.slotController = new kr(this, this.defaultSlot);
5173
5189
  }
5174
5190
  handleClose() {
5175
5191
  this.isDisplayed = !1, this.onClose && this.onClose();
@@ -6075,7 +6091,7 @@ function tD() {
6075
6091
  }()), be;
6076
6092
  }
6077
6093
  process.env.NODE_ENV === "production" ? Ks.exports = eD() : Ks.exports = tD();
6078
- var It = Ks.exports, Xt = function(e, t) {
6094
+ var Mt = Ks.exports, Xt = function(e, t) {
6079
6095
  return e === 0 ? "" : new Array(e * t).fill(" ").join("");
6080
6096
  };
6081
6097
  function pa(e) {
@@ -6152,9 +6168,9 @@ var cp = function(t) {
6152
6168
  switch (!0) {
6153
6169
  case !!t.displayName:
6154
6170
  return t.displayName;
6155
- case t.$$typeof === It.Memo:
6171
+ case t.$$typeof === Mt.Memo:
6156
6172
  return e(t.type);
6157
- case t.$$typeof === It.ForwardRef:
6173
+ case t.$$typeof === Mt.ForwardRef:
6158
6174
  return e(t.render);
6159
6175
  default:
6160
6176
  return pp(t);
@@ -6165,20 +6181,20 @@ var cp = function(t) {
6165
6181
  return t.type;
6166
6182
  case typeof t.type == "function":
6167
6183
  return t.type.displayName ? t.type.displayName : pp(t.type);
6168
- case It.isForwardRef(t):
6169
- case It.isMemo(t):
6184
+ case Mt.isForwardRef(t):
6185
+ case Mt.isMemo(t):
6170
6186
  return pD(t.type);
6171
- case It.isContextConsumer(t):
6187
+ case Mt.isContextConsumer(t):
6172
6188
  return "".concat(t.type._context.displayName || "Context", ".Consumer");
6173
- case It.isContextProvider(t):
6189
+ case Mt.isContextProvider(t):
6174
6190
  return "".concat(t.type._context.displayName || "Context", ".Provider");
6175
- case It.isLazy(t):
6191
+ case Mt.isLazy(t):
6176
6192
  return "Lazy";
6177
- case It.isProfiler(t):
6193
+ case Mt.isProfiler(t):
6178
6194
  return "Profiler";
6179
- case It.isStrictMode(t):
6195
+ case Mt.isStrictMode(t):
6180
6196
  return "StrictMode";
6181
- case It.isSuspense(t):
6197
+ case Mt.isSuspense(t):
6182
6198
  return "Suspense";
6183
6199
  default:
6184
6200
  return "UnknownElementType";
@@ -6688,7 +6704,7 @@ function iy(e) {
6688
6704
  return ji(!1, e, /\r\n?/gu, `
6689
6705
  `);
6690
6706
  }
6691
- var Wn = "string", en = "array", zn = "cursor", rn = "indent", an = "align", sn = "trim", vt = "group", Ht = "fill", Ct = "if-break", on = "indent-if-break", ln = "line-suffix", un = "line-suffix-boundary", rt = "line", Ut = "label", Ft = "break-parent", Cp = /* @__PURE__ */ new Set([zn, rn, an, sn, vt, Ht, Ct, on, ln, un, rt, Ut, Ft]);
6707
+ var Wn = "string", en = "array", zn = "cursor", rn = "indent", an = "align", sn = "trim", vt = "group", Ut = "fill", Ct = "if-break", on = "indent-if-break", ln = "line-suffix", un = "line-suffix-boundary", rt = "line", Wt = "label", At = "break-parent", Cp = /* @__PURE__ */ new Set([zn, rn, an, sn, vt, Ut, Ct, on, ln, un, rt, Wt, At]);
6692
6708
  function sy(e) {
6693
6709
  if (typeof e == "string") return Wn;
6694
6710
  if (Array.isArray(e)) return en;
@@ -6728,7 +6744,7 @@ function cy(e, t, n, r) {
6728
6744
  if (!u) throw new Dr(o);
6729
6745
  if ((t == null ? void 0 : t(o)) !== !1) switch (u) {
6730
6746
  case en:
6731
- case Ht: {
6747
+ case Ut: {
6732
6748
  let c = u === en ? o : o.parts;
6733
6749
  for (let d = c.length, h = d - 1; h >= 0; --h) i.push(c[h]);
6734
6750
  break;
@@ -6743,7 +6759,7 @@ function cy(e, t, n, r) {
6743
6759
  case an:
6744
6760
  case rn:
6745
6761
  case on:
6746
- case Ut:
6762
+ case Wt:
6747
6763
  case ln:
6748
6764
  i.push(o.contents);
6749
6765
  break;
@@ -6752,7 +6768,7 @@ function cy(e, t, n, r) {
6752
6768
  case sn:
6753
6769
  case un:
6754
6770
  case rt:
6755
- case Ft:
6771
+ case At:
6756
6772
  break;
6757
6773
  default:
6758
6774
  throw new Dr(o);
@@ -6783,7 +6799,7 @@ function gy(e, t) {
6783
6799
  return xp(e[0], { ...t, expandedStates: e });
6784
6800
  }
6785
6801
  function _p(e) {
6786
- return { type: Ht, parts: e };
6802
+ return { type: Ut, parts: e };
6787
6803
  }
6788
6804
  function vy(e, t = "", n = {}) {
6789
6805
  return { type: Ct, breakContents: e, flatContents: t, groupId: n.groupId };
@@ -6794,7 +6810,7 @@ function Dy(e, t) {
6794
6810
  function Zs(e) {
6795
6811
  return { type: ln, contents: e };
6796
6812
  }
6797
- var yy = { type: un }, Pi = { type: Ft }, by = { type: sn }, So = { type: rt, hard: !0 }, Sp = { type: rt, hard: !0, literal: !0 }, Ep = { type: rt }, ky = { type: rt, soft: !0 }, On = [So, Pi], Fp = [Sp, Pi], eo = { type: zn };
6813
+ var yy = { type: un }, Pi = { type: At }, by = { type: sn }, So = { type: rt, hard: !0 }, Sp = { type: rt, hard: !0, literal: !0 }, Ep = { type: rt }, ky = { type: rt, soft: !0 }, On = [So, Pi], Fp = [Sp, Pi], eo = { type: zn };
6798
6814
  function Ap(e, t) {
6799
6815
  let n = [];
6800
6816
  for (let r = 0; r < t.length; r++) r !== 0 && n.push(e), n.push(t[r]);
@@ -6809,7 +6825,7 @@ function $p(e, t, n) {
6809
6825
  return r;
6810
6826
  }
6811
6827
  function wy(e, t) {
6812
- return e ? { type: Ut, label: e, contents: t } : t;
6828
+ return e ? { type: Wt, label: e, contents: t } : t;
6813
6829
  }
6814
6830
  function Kt(e) {
6815
6831
  var t;
@@ -6823,7 +6839,7 @@ function Kt(e) {
6823
6839
  }
6824
6840
  return n;
6825
6841
  }
6826
- return e.type === Ct ? { ...e, breakContents: Kt(e.breakContents), flatContents: Kt(e.flatContents) } : e.type === vt ? { ...e, contents: Kt(e.contents), expandedStates: (t = e.expandedStates) == null ? void 0 : t.map(Kt) } : e.type === Ht ? { type: "fill", parts: e.parts.map(Kt) } : e.contents ? { ...e, contents: Kt(e.contents) } : e;
6842
+ return e.type === Ct ? { ...e, breakContents: Kt(e.breakContents), flatContents: Kt(e.flatContents) } : e.type === vt ? { ...e, contents: Kt(e.contents), expandedStates: (t = e.expandedStates) == null ? void 0 : t.map(Kt) } : e.type === Ut ? { type: "fill", parts: e.parts.map(Kt) } : e.contents ? { ...e, contents: Kt(e.contents) } : e;
6827
6843
  }
6828
6844
  function Cy(e) {
6829
6845
  let t = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ new Set();
@@ -6836,10 +6852,10 @@ function Cy(e) {
6836
6852
  return g.length === 1 ? g[0] : `[${g.join(", ")}]`;
6837
6853
  }
6838
6854
  if (o.type === rt) {
6839
- let g = ((d = c == null ? void 0 : c[u + 1]) == null ? void 0 : d.type) === Ft;
6855
+ let g = ((d = c == null ? void 0 : c[u + 1]) == null ? void 0 : d.type) === At;
6840
6856
  return o.literal ? g ? "literalline" : "literallineWithoutBreakParent" : o.hard ? g ? "hardline" : "hardlineWithoutBreakParent" : o.soft ? "softline" : "line";
6841
6857
  }
6842
- if (o.type === Ft) return ((h = c == null ? void 0 : c[u - 1]) == null ? void 0 : h.type) === rt && c[u - 1].hard ? void 0 : "breakParent";
6858
+ if (o.type === At) return ((h = c == null ? void 0 : c[u - 1]) == null ? void 0 : h.type) === rt && c[u - 1].hard ? void 0 : "breakParent";
6843
6859
  if (o.type === sn) return "trim";
6844
6860
  if (o.type === rn) return "indent(" + r(o.contents) + ")";
6845
6861
  if (o.type === an) return o.n === Number.NEGATIVE_INFINITY ? "dedentToRoot(" + r(o.contents) + ")" : o.n < 0 ? "dedent(" + r(o.contents) + ")" : o.n.type === "root" ? "markAsRoot(" + r(o.contents) + ")" : "align(" + JSON.stringify(o.n) + ", " + r(o.contents) + ")";
@@ -6856,10 +6872,10 @@ function Cy(e) {
6856
6872
  let v = g.length > 0 ? `, { ${g.join(", ")} }` : "";
6857
6873
  return o.expandedStates ? `conditionalGroup([${o.expandedStates.map((D) => r(D)).join(",")}]${v})` : `group(${r(o.contents)}${v})`;
6858
6874
  }
6859
- if (o.type === Ht) return `fill([${o.parts.map((g) => r(g)).join(", ")}])`;
6875
+ if (o.type === Ut) return `fill([${o.parts.map((g) => r(g)).join(", ")}])`;
6860
6876
  if (o.type === ln) return "lineSuffix(" + r(o.contents) + ")";
6861
6877
  if (o.type === un) return "lineSuffixBoundary";
6862
- if (o.type === Ut) return `label(${JSON.stringify(o.label)}, ${r(o.contents)})`;
6878
+ if (o.type === Wt) return `label(${JSON.stringify(o.label)}, ${r(o.contents)})`;
6863
6879
  throw new Error("Unknown doc type " + o.type);
6864
6880
  }
6865
6881
  function i(o) {
@@ -6907,7 +6923,7 @@ function Li(e, t) {
6907
6923
  switch (Vn(o)) {
6908
6924
  case en:
6909
6925
  return t(o.map(r));
6910
- case Ht:
6926
+ case Ut:
6911
6927
  return t({ ...o, parts: o.parts.map(r) });
6912
6928
  case Ct:
6913
6929
  return t({ ...o, breakContents: r(o.breakContents), flatContents: r(o.flatContents) });
@@ -6918,7 +6934,7 @@ function Li(e, t) {
6918
6934
  case an:
6919
6935
  case rn:
6920
6936
  case on:
6921
- case Ut:
6937
+ case Wt:
6922
6938
  case ln:
6923
6939
  return t({ ...o, contents: r(o.contents) });
6924
6940
  case Wn:
@@ -6926,7 +6942,7 @@ function Li(e, t) {
6926
6942
  case sn:
6927
6943
  case un:
6928
6944
  case rt:
6929
- case Ft:
6945
+ case At:
6930
6946
  return t(o);
6931
6947
  default:
6932
6948
  throw new Dr(o);
@@ -6943,7 +6959,7 @@ function Fo(e, t, n) {
6943
6959
  return _o(e, o), r;
6944
6960
  }
6945
6961
  function Ty(e) {
6946
- if (e.type === vt && e.break || e.type === rt && e.hard || e.type === Ft) return !0;
6962
+ if (e.type === vt && e.break || e.type === rt && e.hard || e.type === At) return !0;
6947
6963
  }
6948
6964
  function By(e) {
6949
6965
  return Fo(e, Ty, !1);
@@ -6958,7 +6974,7 @@ function Ku(e) {
6958
6974
  function Ny(e) {
6959
6975
  let t = /* @__PURE__ */ new Set(), n = [];
6960
6976
  function r(o) {
6961
- if (o.type === Ft && Ku(n), o.type === vt) {
6977
+ if (o.type === At && Ku(n), o.type === vt) {
6962
6978
  if (n.push(o), t.has(o)) return !1;
6963
6979
  t.add(o);
6964
6980
  }
@@ -6975,7 +6991,7 @@ function Py(e) {
6975
6991
  return Li(e, jy);
6976
6992
  }
6977
6993
  function Ju(e) {
6978
- for (e = [...e]; e.length >= 2 && ze(!1, e, -2).type === rt && ze(!1, e, -1).type === Ft; ) e.length -= 2;
6994
+ for (e = [...e]; e.length >= 2 && ze(!1, e, -2).type === rt && ze(!1, e, -1).type === At; ) e.length -= 2;
6979
6995
  if (e.length > 0) {
6980
6996
  let t = ia(ze(!1, e, -1));
6981
6997
  e[e.length - 1] = t;
@@ -6988,13 +7004,13 @@ function ia(e) {
6988
7004
  case on:
6989
7005
  case vt:
6990
7006
  case ln:
6991
- case Ut: {
7007
+ case Wt: {
6992
7008
  let t = ia(e.contents);
6993
7009
  return { ...e, contents: t };
6994
7010
  }
6995
7011
  case Ct:
6996
7012
  return { ...e, breakContents: ia(e.breakContents), flatContents: ia(e.flatContents) };
6997
- case Ht:
7013
+ case Ut:
6998
7014
  return { ...e, parts: Ju(e.parts) };
6999
7015
  case en:
7000
7016
  return Ju(e);
@@ -7005,7 +7021,7 @@ function ia(e) {
7005
7021
  case sn:
7006
7022
  case un:
7007
7023
  case rt:
7008
- case Ft:
7024
+ case At:
7009
7025
  break;
7010
7026
  default:
7011
7027
  throw new Dr(e);
@@ -7017,7 +7033,7 @@ function Tp(e) {
7017
7033
  }
7018
7034
  function Ly(e) {
7019
7035
  switch (Vn(e)) {
7020
- case Ht:
7036
+ case Ut:
7021
7037
  if (e.parts.every((t) => t === "")) return "";
7022
7038
  break;
7023
7039
  case vt:
@@ -7047,8 +7063,8 @@ function Ly(e) {
7047
7063
  case sn:
7048
7064
  case un:
7049
7065
  case rt:
7050
- case Ut:
7051
- case Ft:
7066
+ case Wt:
7067
+ case At:
7052
7068
  break;
7053
7069
  default:
7054
7070
  throw new Dr(e);
@@ -7069,9 +7085,9 @@ function Ry(e) {
7069
7085
  return Fo(e, My, !1);
7070
7086
  }
7071
7087
  function Bp(e, t) {
7072
- return e.type === Ut ? { ...e, contents: t(e.contents) } : t(e);
7088
+ return e.type === Wt ? { ...e, contents: t(e.contents) } : t(e);
7073
7089
  }
7074
- var gt = Symbol("MODE_BREAK"), Ot = Symbol("MODE_FLAT"), sa = Symbol("cursor");
7090
+ var gt = Symbol("MODE_BREAK"), It = Symbol("MODE_FLAT"), sa = Symbol("cursor");
7075
7091
  function Np() {
7076
7092
  return { value: "", length: 0, queue: [] };
7077
7093
  }
@@ -7151,7 +7167,7 @@ function ai(e, t, n, r, i, o) {
7151
7167
  d.push(g), n -= Eo(g);
7152
7168
  break;
7153
7169
  case en:
7154
- case Ht: {
7170
+ case Ut: {
7155
7171
  let D = v === en ? g : g.parts;
7156
7172
  for (let b = D.length - 1; b >= 0; b--) c.push({ mode: h, doc: D[b] });
7157
7173
  break;
@@ -7159,7 +7175,7 @@ function ai(e, t, n, r, i, o) {
7159
7175
  case rn:
7160
7176
  case an:
7161
7177
  case on:
7162
- case Ut:
7178
+ case Wt:
7163
7179
  c.push({ mode: h, doc: g.contents });
7164
7180
  break;
7165
7181
  case sn:
@@ -7172,7 +7188,7 @@ function ai(e, t, n, r, i, o) {
7172
7188
  break;
7173
7189
  }
7174
7190
  case Ct: {
7175
- let D = (g.groupId ? i[g.groupId] || Ot : h) === gt ? g.breakContents : g.flatContents;
7191
+ let D = (g.groupId ? i[g.groupId] || It : h) === gt ? g.breakContents : g.flatContents;
7176
7192
  D && c.push({ mode: h, doc: D });
7177
7193
  break;
7178
7194
  }
@@ -7220,14 +7236,14 @@ function Oi(e, t) {
7220
7236
  break;
7221
7237
  case vt:
7222
7238
  switch (b) {
7223
- case Ot:
7239
+ case It:
7224
7240
  if (!d) {
7225
- u.push({ ind: D, mode: k.break ? gt : Ot, doc: k.contents });
7241
+ u.push({ ind: D, mode: k.break ? gt : It, doc: k.contents });
7226
7242
  break;
7227
7243
  }
7228
7244
  case gt: {
7229
7245
  d = !1;
7230
- let _ = { ind: D, mode: Ot, doc: k.contents }, C = r - o, T = h.length > 0;
7246
+ let _ = { ind: D, mode: It, doc: k.contents }, C = r - o, T = h.length > 0;
7231
7247
  if (!k.break && ai(_, u, C, T, n)) u.push(_);
7232
7248
  else if (k.expandedStates) {
7233
7249
  let F = ze(!1, k.expandedStates, -1);
@@ -7238,7 +7254,7 @@ function Oi(e, t) {
7238
7254
  u.push({ ind: D, mode: gt, doc: F });
7239
7255
  break;
7240
7256
  } else {
7241
- let A = k.expandedStates[S], x = { ind: D, mode: Ot, doc: A };
7257
+ let A = k.expandedStates[S], x = { ind: D, mode: It, doc: A };
7242
7258
  if (ai(x, u, C, T, n)) {
7243
7259
  u.push(x);
7244
7260
  break;
@@ -7250,22 +7266,22 @@ function Oi(e, t) {
7250
7266
  }
7251
7267
  k.id && (n[k.id] = ze(!1, u, -1).mode);
7252
7268
  break;
7253
- case Ht: {
7269
+ case Ut: {
7254
7270
  let _ = r - o, { parts: C } = k;
7255
7271
  if (C.length === 0) break;
7256
- let [T, F] = C, S = { ind: D, mode: Ot, doc: T }, A = { ind: D, mode: gt, doc: T }, x = ai(S, [], _, h.length > 0, n, !0);
7272
+ let [T, F] = C, S = { ind: D, mode: It, doc: T }, A = { ind: D, mode: gt, doc: T }, x = ai(S, [], _, h.length > 0, n, !0);
7257
7273
  if (C.length === 1) {
7258
7274
  x ? u.push(S) : u.push(A);
7259
7275
  break;
7260
7276
  }
7261
- let $ = { ind: D, mode: Ot, doc: F }, P = { ind: D, mode: gt, doc: F };
7277
+ let $ = { ind: D, mode: It, doc: F }, P = { ind: D, mode: gt, doc: F };
7262
7278
  if (C.length === 2) {
7263
7279
  x ? u.push($, S) : u.push(P, A);
7264
7280
  break;
7265
7281
  }
7266
7282
  C.splice(0, 2);
7267
7283
  let I = { ind: D, mode: b, doc: _p(C) }, j = C[0];
7268
- ai({ ind: D, mode: Ot, doc: [T, F, j] }, [], _, h.length > 0, n, !0) ? u.push(I, $, S) : x ? u.push(I, P, S) : u.push(I, P, A);
7284
+ ai({ ind: D, mode: It, doc: [T, F, j] }, [], _, h.length > 0, n, !0) ? u.push(I, $, S) : x ? u.push(I, P, S) : u.push(I, P, A);
7269
7285
  break;
7270
7286
  }
7271
7287
  case Ct:
@@ -7275,7 +7291,7 @@ function Oi(e, t) {
7275
7291
  let C = k.type === Ct ? k.breakContents : k.negate ? k.contents : xi(k.contents);
7276
7292
  C && u.push({ ind: D, mode: b, doc: C });
7277
7293
  }
7278
- if (_ === Ot) {
7294
+ if (_ === It) {
7279
7295
  let C = k.type === Ct ? k.flatContents : k.negate ? xi(k.contents) : k.contents;
7280
7296
  C && u.push({ ind: D, mode: b, doc: C });
7281
7297
  }
@@ -7289,7 +7305,7 @@ function Oi(e, t) {
7289
7305
  break;
7290
7306
  case rt:
7291
7307
  switch (b) {
7292
- case Ot:
7308
+ case It:
7293
7309
  if (k.hard) d = !0;
7294
7310
  else {
7295
7311
  k.soft || (c.push(" "), o += 1);
@@ -7304,10 +7320,10 @@ function Oi(e, t) {
7304
7320
  break;
7305
7321
  }
7306
7322
  break;
7307
- case Ut:
7323
+ case Wt:
7308
7324
  u.push({ ind: D, mode: b, doc: k.contents });
7309
7325
  break;
7310
- case Ft:
7326
+ case At:
7311
7327
  break;
7312
7328
  default:
7313
7329
  throw new Dr(k);
@@ -8682,7 +8698,7 @@ Expected it to be ${p}.`;
8682
8698
  }
8683
8699
  var qi = (a, s, l) => {
8684
8700
  if (!(a && s == null)) return Array.isArray(s) || typeof s == "string" ? s[l < 0 ? s.length + l : l] : s.at(l);
8685
- }, zt = qi;
8701
+ }, Vt = qi;
8686
8702
  function _r(a, s) {
8687
8703
  if (typeof a == "string") return s(a);
8688
8704
  let l = /* @__PURE__ */ new Map();
@@ -8745,7 +8761,7 @@ Expected it to be ${p}.`;
8745
8761
  for (let l of a) {
8746
8762
  if (!l) continue;
8747
8763
  let [p, ...f] = Array.isArray(l) ? l : [l];
8748
- typeof p == "string" && typeof zt(!1, s, -1) == "string" ? s[s.length - 1] += p : s.push(p), s.push(...f);
8764
+ typeof p == "string" && typeof Vt(!1, s, -1) == "string" ? s[s.length - 1] += p : s.push(p), s.push(...f);
8749
8765
  }
8750
8766
  return s.length === 0 ? "" : s.length === 1 ? s[0] : s;
8751
8767
  }
@@ -8806,7 +8822,7 @@ Expected it to be ${p}.`;
8806
8822
  return v(this, kt).has(a.charAt(0));
8807
8823
  }
8808
8824
  hasTrailingWhitespace(a) {
8809
- return v(this, kt).has(zt(!1, a, -1));
8825
+ return v(this, kt).has(Vt(!1, a, -1));
8810
8826
  }
8811
8827
  trimStart(a) {
8812
8828
  let s = this.getLeadingWhitespaceCount(a);
@@ -8848,10 +8864,10 @@ Expected it to be ${p}.`;
8848
8864
  function Ta(a) {
8849
8865
  return (a == null ? void 0 : a.type) === "front-matter";
8850
8866
  }
8851
- var $t = Ta, Fr = /* @__PURE__ */ new Set(["sourceSpan", "startSourceSpan", "endSourceSpan", "nameSpan", "valueSpan", "keySpan", "tagDefinition", "tokens", "valueTokens", "switchValueSourceSpan", "expSourceSpan", "valueSourceSpan"]), Ar = /* @__PURE__ */ new Set(["if", "else if", "for", "switch", "case"]);
8867
+ var Tt = Ta, Fr = /* @__PURE__ */ new Set(["sourceSpan", "startSourceSpan", "endSourceSpan", "nameSpan", "valueSpan", "keySpan", "tagDefinition", "tokens", "valueTokens", "switchValueSourceSpan", "expSourceSpan", "valueSourceSpan"]), Ar = /* @__PURE__ */ new Set(["if", "else if", "for", "switch", "case"]);
8852
8868
  function $r(a, s) {
8853
8869
  var l;
8854
- if (a.type === "text" || a.type === "comment" || $t(a) || a.type === "yaml" || a.type === "toml") return null;
8870
+ if (a.type === "text" || a.type === "comment" || Tt(a) || a.type === "yaml" || a.type === "toml") return null;
8855
8871
  if (a.type === "attribute" && delete s.value, a.type === "docType" && delete s.value, a.type === "angularControlFlowBlock" && (l = a.parameters) != null && l.children) for (let p of s.parameters.children) Ar.has(a.name) ? delete p.expression : p.expression = p.expression.trim();
8856
8872
  a.type === "angularIcuExpression" && (s.switchValue = a.switchValue.trim()), a.type === "angularLetDeclarationInitializer" && delete s.value;
8857
8873
  }
@@ -8867,7 +8883,7 @@ Expected it to be ${p}.`;
8867
8883
  function Cn(a, s = !0) {
8868
8884
  return [_e([je, a]), s ? je : ""];
8869
8885
  }
8870
- function Vt(a, s) {
8886
+ function Yt(a, s) {
8871
8887
  let l = a.type === "NGRoot" ? a.node.type === "NGMicrosyntax" && a.node.body.length === 1 && a.node.body[0].type === "NGMicrosyntaxExpression" ? a.node.body[0].expression : a.node : a.type === "JsExpressionRoot" ? a.node : a;
8872
8888
  return l && (l.type === "ObjectExpression" || l.type === "ArrayExpression" || (s.parser === "__vue_expression" || s.parser === "__vue_ts_expression") && (l.type === "TemplateLiteral" || l.type === "StringLiteral"));
8873
8889
  }
@@ -8882,7 +8898,7 @@ Expected it to be ${p}.`;
8882
8898
  }
8883
8899
  function Ji(a, s, l, p) {
8884
8900
  let { node: f } = l, y = p.originalText.slice(f.sourceSpan.start.offset, f.sourceSpan.end.offset);
8885
- return /^\s*$/u.test(y) ? "" : wt(y, a, { parser: "__ng_directive", __isInHtmlAttribute: !1 }, Vt);
8901
+ return /^\s*$/u.test(y) ? "" : wt(y, a, { parser: "__ng_directive", __isInHtmlAttribute: !1 }, Yt);
8886
8902
  }
8887
8903
  var Na = Ji, ja = (a) => String(a).split(/[/\\]/u).pop();
8888
8904
  function Pa(a, s) {
@@ -8937,17 +8953,17 @@ Expected it to be ${p}.`;
8937
8953
  if (f && !a.prev && (p = (l = a.parent) == null ? void 0 : l.tagDefinition) != null && p.ignoreFirstLf) return a.type === "interpolation";
8938
8954
  return f;
8939
8955
  function y() {
8940
- return $t(a) || a.type === "angularControlFlowBlock" ? !1 : (a.type === "text" || a.type === "interpolation") && a.prev && (a.prev.type === "text" || a.prev.type === "interpolation") ? !0 : !a.parent || a.parent.cssDisplay === "none" ? !1 : Jn(a.parent) ? !0 : !(!a.prev && (a.parent.type === "root" || Jn(a) && a.parent || Qe(a.parent) || Ia(a.parent, s) || !Jd(a.parent.cssDisplay)) || a.prev && !Zd(a.prev.cssDisplay));
8956
+ return Tt(a) || a.type === "angularControlFlowBlock" ? !1 : (a.type === "text" || a.type === "interpolation") && a.prev && (a.prev.type === "text" || a.prev.type === "interpolation") ? !0 : !a.parent || a.parent.cssDisplay === "none" ? !1 : Jn(a.parent) ? !0 : !(!a.prev && (a.parent.type === "root" || Jn(a) && a.parent || Qe(a.parent) || Ia(a.parent, s) || !Jd(a.parent.cssDisplay)) || a.prev && !Zd(a.prev.cssDisplay));
8941
8957
  }
8942
8958
  }
8943
8959
  function Hd(a, s) {
8944
- return $t(a) || a.type === "angularControlFlowBlock" ? !1 : (a.type === "text" || a.type === "interpolation") && a.next && (a.next.type === "text" || a.next.type === "interpolation") ? !0 : !a.parent || a.parent.cssDisplay === "none" ? !1 : Jn(a.parent) ? !0 : !(!a.next && (a.parent.type === "root" || Jn(a) && a.parent || Qe(a.parent) || Ia(a.parent, s) || !Xd(a.parent.cssDisplay)) || a.next && !Qd(a.next.cssDisplay));
8960
+ return Tt(a) || a.type === "angularControlFlowBlock" ? !1 : (a.type === "text" || a.type === "interpolation") && a.next && (a.next.type === "text" || a.next.type === "interpolation") ? !0 : !a.parent || a.parent.cssDisplay === "none" ? !1 : Jn(a.parent) ? !0 : !(!a.next && (a.parent.type === "root" || Jn(a) && a.parent || Qe(a.parent) || Ia(a.parent, s) || !Xd(a.parent.cssDisplay)) || a.next && !Qd(a.next.cssDisplay));
8945
8961
  }
8946
8962
  function Ud(a) {
8947
8963
  return eh(a.cssDisplay) && !Qe(a);
8948
8964
  }
8949
8965
  function Oa(a) {
8950
- return $t(a) || a.next && a.sourceSpan.end && a.sourceSpan.end.line + 1 < a.next.sourceSpan.start.line;
8966
+ return Tt(a) || a.next && a.sourceSpan.end && a.sourceSpan.end.line + 1 < a.next.sourceSpan.start.line;
8951
8967
  }
8952
8968
  function Wd(a) {
8953
8969
  return tl(a) || a.type === "element" && a.children.length > 0 && (["body", "script", "style"].includes(a.name) || a.children.some((s) => Vd(s))) || a.firstChild && a.firstChild === a.lastChild && a.firstChild.type !== "text" && rl(a.firstChild) && (!a.lastChild.isTrailingSpaceSensitive || al(a.lastChild));
@@ -9139,7 +9155,7 @@ Expected it to be ${p}.`;
9139
9155
  return l;
9140
9156
  }
9141
9157
  function rs({ parser: a }) {
9142
- return (s, l, p) => wt(dn(p.node), s, { parser: a }, Vt);
9158
+ return (s, l, p) => wt(dn(p.node), s, { parser: a }, Yt);
9143
9159
  }
9144
9160
  var lh = rs({ parser: "__ng_action" }), uh = rs({ parser: "__ng_binding" }), ch = rs({ parser: "__ng_directive" });
9145
9161
  function ph(a, s) {
@@ -9241,7 +9257,7 @@ Expected it to be ${p}.`;
9241
9257
  var is = Eh;
9242
9258
  function Fh(a, s, l) {
9243
9259
  let { node: p } = l, f = dn(p);
9244
- return wt(`type T<${f}> = any`, a, { parser: "babel-ts", __isEmbeddedTypescriptGenericParameters: !0 }, Vt);
9260
+ return wt(`type T<${f}> = any`, a, { parser: "babel-ts", __isEmbeddedTypescriptGenericParameters: !0 }, Yt);
9245
9261
  }
9246
9262
  function Ah(a, s, { parseWithTs: l }) {
9247
9263
  return wt(`function _(${a}) {}`, s, { parser: l ? "babel-ts" : "babel", __isVueBindings: !0 });
@@ -9276,13 +9292,13 @@ Expected it to be ${p}.`;
9276
9292
  if (p.startsWith("v-")) return (E) => vl(f, E, { parseWithTs: y });
9277
9293
  }
9278
9294
  function jh(a, s, { parseWithTs: l }) {
9279
- return $h(a) ? vl(a, s, { parseWithTs: l }) : wt(a, s, { parser: l ? "__vue_ts_event_binding" : "__vue_event_binding" }, Vt);
9295
+ return $h(a) ? vl(a, s, { parseWithTs: l }) : wt(a, s, { parser: l ? "__vue_ts_event_binding" : "__vue_event_binding" }, Yt);
9280
9296
  }
9281
9297
  function Ph(a, s, { parseWithTs: l }) {
9282
- return wt(a, s, { parser: l ? "__vue_ts_expression" : "__vue_expression" }, Vt);
9298
+ return wt(a, s, { parser: l ? "__vue_ts_expression" : "__vue_expression" }, Yt);
9283
9299
  }
9284
9300
  function vl(a, s, { parseWithTs: l }) {
9285
- return wt(a, s, { parser: l ? "__ts_expression" : "__js_expression" }, Vt);
9301
+ return wt(a, s, { parser: l ? "__ts_expression" : "__js_expression" }, Yt);
9286
9302
  }
9287
9303
  var Lh = Nh;
9288
9304
  function Oh(a, s) {
@@ -9510,7 +9526,7 @@ Expected it to be ${p}.`;
9510
9526
  var of = /* @__PURE__ */ new Map([["if", /* @__PURE__ */ new Set(["else if", "else"])], ["else if", /* @__PURE__ */ new Set(["else if", "else"])], ["for", /* @__PURE__ */ new Set(["empty"])], ["defer", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])], ["placeholder", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])], ["error", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])], ["loading", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])]]);
9511
9527
  function wl(a) {
9512
9528
  let s = Ra(a);
9513
- return a.type === "element" && !a.endSourceSpan && ss(a.children) ? Math.max(s, wl(zt(!1, a.children, -1))) : s;
9529
+ return a.type === "element" && !a.endSourceSpan && ss(a.children) ? Math.max(s, wl(Vt(!1, a.children, -1))) : s;
9514
9530
  }
9515
9531
  function Rr(a, s, l) {
9516
9532
  let p = a.node;
@@ -9859,10 +9875,10 @@ Expected it to be ${p}.`;
9859
9875
  (function(a) {
9860
9876
  a[a.Error = 0] = "Error", a[a.Warning = 1] = "Warning", a[a.Ignore = 2] = "Ignore";
9861
9877
  })(Pl || (Pl = {}));
9862
- var Tt;
9878
+ var Bt;
9863
9879
  (function(a) {
9864
9880
  a[a.RAW_TEXT = 0] = "RAW_TEXT", a[a.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", a[a.PARSABLE_DATA = 2] = "PARSABLE_DATA";
9865
- })(Tt || (Tt = {}));
9881
+ })(Bt || (Bt = {}));
9866
9882
  function Ya(a, s = !0) {
9867
9883
  if (a[0] != ":") return [null, a];
9868
9884
  let l = a.indexOf(":", 1);
@@ -10012,7 +10028,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10012
10028
  }
10013
10029
  }
10014
10030
  var ne = class {
10015
- constructor({ closedByChildren: a, implicitNamespacePrefix: s, contentType: l = Tt.PARSABLE_DATA, closedByParent: p = !1, isVoid: f = !1, ignoreFirstLf: y = !1, preventNamespaceInheritance: E = !1, canSelfClose: B = !1 } = {}) {
10031
+ constructor({ closedByChildren: a, implicitNamespacePrefix: s, contentType: l = Bt.PARSABLE_DATA, closedByParent: p = !1, isVoid: f = !1, ignoreFirstLf: y = !1, preventNamespaceInheritance: E = !1, canSelfClose: B = !1 } = {}) {
10016
10032
  this.closedByChildren = {}, this.closedByParent = !1, a && a.length > 0 && a.forEach((R) => this.closedByChildren[R] = !0), this.isVoid = f, this.closedByParent = p || f, this.implicitNamespacePrefix = s || null, this.contentType = l, this.ignoreFirstLf = y, this.preventNamespaceInheritance = E, this.canSelfClose = B ?? f;
10017
10033
  }
10018
10034
  isClosedByChild(a) {
@@ -10023,7 +10039,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10023
10039
  }
10024
10040
  }, Rl, qr;
10025
10041
  function vs(a) {
10026
- return qr || (Rl = new ne({ canSelfClose: !0 }), qr = Object.assign(/* @__PURE__ */ Object.create(null), { base: new ne({ isVoid: !0 }), meta: new ne({ isVoid: !0 }), area: new ne({ isVoid: !0 }), embed: new ne({ isVoid: !0 }), link: new ne({ isVoid: !0 }), img: new ne({ isVoid: !0 }), input: new ne({ isVoid: !0 }), param: new ne({ isVoid: !0 }), hr: new ne({ isVoid: !0 }), br: new ne({ isVoid: !0 }), source: new ne({ isVoid: !0 }), track: new ne({ isVoid: !0 }), wbr: new ne({ isVoid: !0 }), p: new ne({ closedByChildren: ["address", "article", "aside", "blockquote", "div", "dl", "fieldset", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "main", "nav", "ol", "p", "pre", "section", "table", "ul"], closedByParent: !0 }), thead: new ne({ closedByChildren: ["tbody", "tfoot"] }), tbody: new ne({ closedByChildren: ["tbody", "tfoot"], closedByParent: !0 }), tfoot: new ne({ closedByChildren: ["tbody"], closedByParent: !0 }), tr: new ne({ closedByChildren: ["tr"], closedByParent: !0 }), td: new ne({ closedByChildren: ["td", "th"], closedByParent: !0 }), th: new ne({ closedByChildren: ["td", "th"], closedByParent: !0 }), col: new ne({ isVoid: !0 }), svg: new ne({ implicitNamespacePrefix: "svg" }), foreignObject: new ne({ implicitNamespacePrefix: "svg", preventNamespaceInheritance: !0 }), math: new ne({ implicitNamespacePrefix: "math" }), li: new ne({ closedByChildren: ["li"], closedByParent: !0 }), dt: new ne({ closedByChildren: ["dt", "dd"] }), dd: new ne({ closedByChildren: ["dt", "dd"], closedByParent: !0 }), rb: new ne({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rt: new ne({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rtc: new ne({ closedByChildren: ["rb", "rtc", "rp"], closedByParent: !0 }), rp: new ne({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), optgroup: new ne({ closedByChildren: ["optgroup"], closedByParent: !0 }), option: new ne({ closedByChildren: ["option", "optgroup"], closedByParent: !0 }), pre: new ne({ ignoreFirstLf: !0 }), listing: new ne({ ignoreFirstLf: !0 }), style: new ne({ contentType: Tt.RAW_TEXT }), script: new ne({ contentType: Tt.RAW_TEXT }), title: new ne({ contentType: { default: Tt.ESCAPABLE_RAW_TEXT, svg: Tt.PARSABLE_DATA } }), textarea: new ne({ contentType: Tt.ESCAPABLE_RAW_TEXT, ignoreFirstLf: !0 }) }), new Wf().allKnownElementNames().forEach((s) => {
10042
+ return qr || (Rl = new ne({ canSelfClose: !0 }), qr = Object.assign(/* @__PURE__ */ Object.create(null), { base: new ne({ isVoid: !0 }), meta: new ne({ isVoid: !0 }), area: new ne({ isVoid: !0 }), embed: new ne({ isVoid: !0 }), link: new ne({ isVoid: !0 }), img: new ne({ isVoid: !0 }), input: new ne({ isVoid: !0 }), param: new ne({ isVoid: !0 }), hr: new ne({ isVoid: !0 }), br: new ne({ isVoid: !0 }), source: new ne({ isVoid: !0 }), track: new ne({ isVoid: !0 }), wbr: new ne({ isVoid: !0 }), p: new ne({ closedByChildren: ["address", "article", "aside", "blockquote", "div", "dl", "fieldset", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "main", "nav", "ol", "p", "pre", "section", "table", "ul"], closedByParent: !0 }), thead: new ne({ closedByChildren: ["tbody", "tfoot"] }), tbody: new ne({ closedByChildren: ["tbody", "tfoot"], closedByParent: !0 }), tfoot: new ne({ closedByChildren: ["tbody"], closedByParent: !0 }), tr: new ne({ closedByChildren: ["tr"], closedByParent: !0 }), td: new ne({ closedByChildren: ["td", "th"], closedByParent: !0 }), th: new ne({ closedByChildren: ["td", "th"], closedByParent: !0 }), col: new ne({ isVoid: !0 }), svg: new ne({ implicitNamespacePrefix: "svg" }), foreignObject: new ne({ implicitNamespacePrefix: "svg", preventNamespaceInheritance: !0 }), math: new ne({ implicitNamespacePrefix: "math" }), li: new ne({ closedByChildren: ["li"], closedByParent: !0 }), dt: new ne({ closedByChildren: ["dt", "dd"] }), dd: new ne({ closedByChildren: ["dt", "dd"], closedByParent: !0 }), rb: new ne({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rt: new ne({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rtc: new ne({ closedByChildren: ["rb", "rtc", "rp"], closedByParent: !0 }), rp: new ne({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), optgroup: new ne({ closedByChildren: ["optgroup"], closedByParent: !0 }), option: new ne({ closedByChildren: ["option", "optgroup"], closedByParent: !0 }), pre: new ne({ ignoreFirstLf: !0 }), listing: new ne({ ignoreFirstLf: !0 }), style: new ne({ contentType: Bt.RAW_TEXT }), script: new ne({ contentType: Bt.RAW_TEXT }), title: new ne({ contentType: { default: Bt.ESCAPABLE_RAW_TEXT, svg: Bt.PARSABLE_DATA } }), textarea: new ne({ contentType: Bt.ESCAPABLE_RAW_TEXT, ignoreFirstLf: !0 }) }), new Wf().allKnownElementNames().forEach((s) => {
10027
10043
  !qr[s] && Ga(s) === null && (qr[s] = new ne({ canSelfClose: !1 }));
10028
10044
  })), qr[a] ?? Rl;
10029
10045
  }
@@ -10459,7 +10475,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10459
10475
  }
10460
10476
  if (this._canSelfClose && this.tokens[this.tokens.length - 1].type === 2) return;
10461
10477
  let y = this._getTagContentType(s, l, this._fullNameStack.length > 0, f);
10462
- this._handleFullNameStackForTagOpen(l, s), y === Tt.RAW_TEXT ? this._consumeRawTextWithTagClose(l, s, !1) : y === Tt.ESCAPABLE_RAW_TEXT && this._consumeRawTextWithTagClose(l, s, !0);
10478
+ this._handleFullNameStackForTagOpen(l, s), y === Bt.RAW_TEXT ? this._consumeRawTextWithTagClose(l, s, !1) : y === Bt.ESCAPABLE_RAW_TEXT && this._consumeRawTextWithTagClose(l, s, !0);
10463
10479
  }
10464
10480
  _consumeRawTextWithTagClose(a, s, l) {
10465
10481
  this._consumeRawText(l, () => !this._attemptCharCode(60) || !this._attemptCharCode(47) || (this._attemptCharCodeUntilFn(Ie), !this._attemptStrCaseInsensitive(a ? `${a}:${s}` : s)) ? !1 : (this._attemptCharCodeUntilFn(Ie), this._attemptCharCode(62))), this._beginToken(3), this._requireCharCodeUntilFn((p) => p === 62, 3), this._cursor.advance(), this._endToken([a, s]), this._handleFullNameStackForTagClose(a, s);
@@ -11127,7 +11143,7 @@ ${s}`, l), y = p;
11127
11143
  return;
11128
11144
  }
11129
11145
  for (let s of a.parameters) s.type = "angularControlFlowBlockParameter";
11130
- a.parameters = { type: "angularControlFlowBlockParameters", children: a.parameters, sourceSpan: new ie(a.parameters[0].sourceSpan.start, zt(!1, a.parameters, -1).sourceSpan.end) };
11146
+ a.parameters = { type: "angularControlFlowBlockParameters", children: a.parameters, sourceSpan: new ie(a.parameters[0].sourceSpan.start, Vt(!1, a.parameters, -1).sourceSpan.end) };
11131
11147
  }
11132
11148
  }
11133
11149
  function Pm(a) {
@@ -11137,7 +11153,7 @@ ${s}`, l), y = p;
11137
11153
  (a.type === "plural" || a.type === "select") && (a.clause = a.type, a.type = "angularIcuExpression"), a.type === "expansionCase" && (a.type = "angularIcuCase");
11138
11154
  }
11139
11155
  function tu(a, s, l) {
11140
- let { name: p, canSelfClose: f = !0, normalizeTagName: y = !1, normalizeAttributeName: E = !1, allowHtmComponentClosingTags: B = !1, isTagNameCaseSensitive: R = !1, shouldParseAsRawText: Y } = s, { rootNodes: U, errors: De } = Zl(a, { canSelfClose: f, allowHtmComponentClosingTags: B, isTagNameCaseSensitive: R, getTagContentType: Y ? (...z) => Y(...z) ? Tt.RAW_TEXT : void 0 : void 0, tokenizeAngularBlocks: p === "angular" ? !0 : void 0, tokenizeAngularLetDeclaration: p === "angular" ? !0 : void 0 });
11156
+ let { name: p, canSelfClose: f = !0, normalizeTagName: y = !1, normalizeAttributeName: E = !1, allowHtmComponentClosingTags: B = !1, isTagNameCaseSensitive: R = !1, shouldParseAsRawText: Y } = s, { rootNodes: U, errors: De } = Zl(a, { canSelfClose: f, allowHtmComponentClosingTags: B, isTagNameCaseSensitive: R, getTagContentType: Y ? (...z) => Y(...z) ? Bt.RAW_TEXT : void 0 : void 0, tokenizeAngularBlocks: p === "angular" ? !0 : void 0, tokenizeAngularLetDeclaration: p === "angular" ? !0 : void 0 });
11141
11157
  if (p === "vue") {
11142
11158
  if (U.some((Me) => Me.type === "docType" && Me.value === "html" || Me.type === "element" && Me.name.toLowerCase() === "html")) return tu(a, au, l);
11143
11159
  let z, ue = () => z ?? (z = Zl(a, { canSelfClose: f, allowHtmComponentClosingTags: B, isTagNameCaseSensitive: R })), We = (Me) => ue().rootNodes.find(({ startSourceSpan: lt }) => lt && lt.start.offset === Me.startSourceSpan.start.offset) ?? Me;
@@ -11209,7 +11225,7 @@ ${s}`, l), y = p;
11209
11225
  }
11210
11226
  let U = new Sm(Y), De = (fe, le) => {
11211
11227
  let { offset: Se } = le, Ue = C(!1, a.slice(0, Se), /[^\n\r]/gu, " "), Ze = ru(Ue + fe, s, l, !1);
11212
- Ze.sourceSpan = new ie(le, zt(!1, Ze.children, -1).sourceSpan.end);
11228
+ Ze.sourceSpan = new ie(le, Vt(!1, Ze.children, -1).sourceSpan.end);
11213
11229
  let st = Ze.children[0];
11214
11230
  return st.length === Se ? Ze.children.shift() : (st.sourceSpan = new ie(st.sourceSpan.start.moveBy(Se), st.sourceSpan.end), st.value = st.value.slice(Se)), Ze;
11215
11231
  };
@@ -11422,7 +11438,7 @@ function kc(e, t) {
11422
11438
  }
11423
11439
  return n;
11424
11440
  }
11425
- function Mt(e) {
11441
+ function Rt(e) {
11426
11442
  for (var t = 1; t < arguments.length; t++) {
11427
11443
  var n = arguments[t] != null ? arguments[t] : {};
11428
11444
  t % 2 ? kc(Object(n), !0).forEach(function(r) {
@@ -11488,7 +11504,7 @@ function vd(e, t, n) {
11488
11504
  paddingRight: "1em",
11489
11505
  textAlign: "right",
11490
11506
  userSelect: "none"
11491
- }, i = typeof e == "function" ? e(t) : e, o = Mt(Mt({}, r), i);
11507
+ }, i = typeof e == "function" ? e(t) : e, o = Rt(Rt({}, r), i);
11492
11508
  return o;
11493
11509
  }
11494
11510
  function mi(e) {
@@ -11497,7 +11513,7 @@ function mi(e) {
11497
11513
  var b = vd(r, n, i);
11498
11514
  t.unshift(gd(n, b));
11499
11515
  }
11500
- return v & g && (D.style = Mt(Mt({}, D.style), {}, {
11516
+ return v & g && (D.style = Rt(Rt({}, D.style), {}, {
11501
11517
  display: "flex"
11502
11518
  })), {
11503
11519
  type: "element",
@@ -11639,7 +11655,7 @@ function _1(e, t) {
11639
11655
  return function(r) {
11640
11656
  var i = r.language, o = r.children, u = r.style, c = u === void 0 ? t : u, d = r.customStyle, h = d === void 0 ? {} : d, g = r.codeTagProps, v = g === void 0 ? {
11641
11657
  className: i ? "language-".concat(i) : void 0,
11642
- style: Mt(Mt({}, c['code[class*="language-"]']), c['code[class*="language-'.concat(i, '"]')])
11658
+ style: Rt(Rt({}, c['code[class*="language-"]']), c['code[class*="language-'.concat(i, '"]')])
11643
11659
  } : g, D = r.useInlineStyles, b = D === void 0 ? !0 : D, k = r.showLineNumbers, _ = k === void 0 ? !1 : k, C = r.showInlineLineNumbers, T = C === void 0 ? !0 : C, F = r.startingLineNumber, S = F === void 0 ? 1 : F, A = r.lineNumberContainerStyle, x = r.lineNumberStyle, $ = x === void 0 ? {} : x, P = r.wrapLines, I = r.wrapLongLines, j = I === void 0 ? !1 : I, W = r.lineProps, G = W === void 0 ? {} : W, V = r.renderer, L = r.PreTag, N = L === void 0 ? "pre" : L, q = r.CodeTag, X = q === void 0 ? "code" : q, de = r.code, Q = de === void 0 ? (Array.isArray(o) ? o[0] : o) || "" : de, se = r.astGenerator, he = r1(r, g1);
11644
11660
  se = se || e;
11645
11661
  var re = _ ? /* @__PURE__ */ xe.createElement(b1, {
@@ -11656,9 +11672,9 @@ function _1(e, t) {
11656
11672
  className: he.className ? "".concat(at, " ").concat(he.className) : at,
11657
11673
  style: Object.assign({}, h)
11658
11674
  });
11659
- if (j ? v.style = Mt(Mt({}, v.style), {}, {
11675
+ if (j ? v.style = Rt(Rt({}, v.style), {}, {
11660
11676
  whiteSpace: "pre-wrap"
11661
- }) : v.style = Mt(Mt({}, v.style), {}, {
11677
+ }) : v.style = Rt(Rt({}, v.style), {}, {
11662
11678
  whiteSpace: "pre"
11663
11679
  }), !se)
11664
11680
  return /* @__PURE__ */ xe.createElement(N, Be, re, /* @__PURE__ */ xe.createElement(X, v, Q));
@@ -11711,34 +11727,34 @@ var Mo = B1;
11711
11727
  function B1(e) {
11712
11728
  return e.toLowerCase();
11713
11729
  }
11714
- var wd = Cd, At = Cd.prototype;
11715
- At.space = null;
11716
- At.attribute = null;
11717
- At.property = null;
11718
- At.boolean = !1;
11719
- At.booleanish = !1;
11720
- At.overloadedBoolean = !1;
11721
- At.number = !1;
11722
- At.commaSeparated = !1;
11723
- At.spaceSeparated = !1;
11724
- At.commaOrSpaceSeparated = !1;
11725
- At.mustUseProperty = !1;
11726
- At.defined = !1;
11730
+ var wd = Cd, $t = Cd.prototype;
11731
+ $t.space = null;
11732
+ $t.attribute = null;
11733
+ $t.property = null;
11734
+ $t.boolean = !1;
11735
+ $t.booleanish = !1;
11736
+ $t.overloadedBoolean = !1;
11737
+ $t.number = !1;
11738
+ $t.commaSeparated = !1;
11739
+ $t.spaceSeparated = !1;
11740
+ $t.commaOrSpaceSeparated = !1;
11741
+ $t.mustUseProperty = !1;
11742
+ $t.defined = !1;
11727
11743
  function Cd(e, t) {
11728
11744
  this.property = e, this.attribute = t;
11729
11745
  }
11730
- var Wt = {}, N1 = 0;
11731
- Wt.boolean = Yn();
11732
- Wt.booleanish = Yn();
11733
- Wt.overloadedBoolean = Yn();
11734
- Wt.number = Yn();
11735
- Wt.spaceSeparated = Yn();
11736
- Wt.commaSeparated = Yn();
11737
- Wt.commaOrSpaceSeparated = Yn();
11746
+ var zt = {}, N1 = 0;
11747
+ zt.boolean = Yn();
11748
+ zt.booleanish = Yn();
11749
+ zt.overloadedBoolean = Yn();
11750
+ zt.number = Yn();
11751
+ zt.spaceSeparated = Yn();
11752
+ zt.commaSeparated = Yn();
11753
+ zt.commaOrSpaceSeparated = Yn();
11738
11754
  function Yn() {
11739
11755
  return Math.pow(2, ++N1);
11740
11756
  }
11741
- var xd = wd, Cc = Wt, _d = Ro;
11757
+ var xd = wd, Cc = zt, _d = Ro;
11742
11758
  Ro.prototype = new xd();
11743
11759
  Ro.prototype.defined = !0;
11744
11760
  var Sd = [
@@ -11816,7 +11832,7 @@ var G1 = _a, K1 = Ed, J1 = G1({
11816
11832
  xmlns: null,
11817
11833
  xmlnsXLink: null
11818
11834
  }
11819
- }), qo = Wt, X1 = _a, mt = qo.booleanish, St = qo.number, Tn = qo.spaceSeparated, Q1 = X1({
11835
+ }), qo = zt, X1 = _a, mt = qo.booleanish, St = qo.number, Tn = qo.spaceSeparated, Q1 = X1({
11820
11836
  transform: Z1,
11821
11837
  properties: {
11822
11838
  ariaActiveDescendant: null,
@@ -11873,7 +11889,7 @@ var G1 = _a, K1 = Ed, J1 = G1({
11873
11889
  function Z1(e, t) {
11874
11890
  return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
11875
11891
  }
11876
- var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr = xr.booleanish, Ae = xr.number, ut = xr.spaceSeparated, ii = xr.commaSeparated, rk = ek({
11892
+ var xr = zt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr = xr.booleanish, Ae = xr.number, ut = xr.spaceSeparated, ii = xr.commaSeparated, rk = ek({
11877
11893
  space: "html",
11878
11894
  attributes: {
11879
11895
  acceptcharset: "accept-charset",
@@ -15235,7 +15251,7 @@ const Vx = Ne(
15235
15251
  role: "table",
15236
15252
  children: i
15237
15253
  }
15238
- ), Hs = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("thead", { className: nt(e, "pkt-table__header", {}), role: "rowgroup", children: t }), Us = ({ children: e, className: t }) => /* @__PURE__ */ m.jsx("tbody", { className: nt(t, "pkt-table__body", {}), role: "rowgroup", children: e }), sr = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("tr", { className: nt(e, "pkt-table__row", {}), role: "row", children: t }), Gt = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("th", { className: nt(e, "pkt-table__header-cell", {}), role: "columnheader", children: t }), Bt = ({ children: e, className: t, dataLabel: n }) => /* @__PURE__ */ m.jsx(
15254
+ ), Hs = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("thead", { className: nt(e, "pkt-table__header", {}), role: "rowgroup", children: t }), Us = ({ children: e, className: t }) => /* @__PURE__ */ m.jsx("tbody", { className: nt(t, "pkt-table__body", {}), role: "rowgroup", children: e }), sr = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("tr", { className: nt(e, "pkt-table__row", {}), role: "row", children: t }), Ot = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("th", { className: nt(e, "pkt-table__header-cell", {}), role: "columnheader", children: t }), Et = ({ children: e, className: t, dataLabel: n }) => /* @__PURE__ */ m.jsx(
15239
15255
  "td",
15240
15256
  {
15241
15257
  className: nt(t, "pkt-table__data-cell", {}),
@@ -15251,23 +15267,23 @@ const Vx = Ne(
15251
15267
  /* @__PURE__ */ m.jsx("h2", { children: "Egenskaper" }),
15252
15268
  /* @__PURE__ */ m.jsxs(qs, { compact: !0, children: [
15253
15269
  /* @__PURE__ */ m.jsx(Hs, { children: /* @__PURE__ */ m.jsxs(sr, { children: [
15254
- /* @__PURE__ */ m.jsx(Gt, { children: "Navn" }),
15255
- /* @__PURE__ */ m.jsx(Gt, { children: "Prop" }),
15256
- /* @__PURE__ */ m.jsx(Gt, { children: "Beskrivelse" }),
15257
- /* @__PURE__ */ m.jsx(Gt, { children: "Type" }),
15258
- /* @__PURE__ */ m.jsx(Gt, { children: "Standardverdi" })
15270
+ /* @__PURE__ */ m.jsx(Ot, { children: "Navn" }),
15271
+ /* @__PURE__ */ m.jsx(Ot, { children: "Prop" }),
15272
+ /* @__PURE__ */ m.jsx(Ot, { children: "Beskrivelse" }),
15273
+ /* @__PURE__ */ m.jsx(Ot, { children: "Type" }),
15274
+ /* @__PURE__ */ m.jsx(Ot, { children: "Standardverdi" })
15259
15275
  ] }) }),
15260
15276
  /* @__PURE__ */ m.jsx(Us, { children: Object.entries(e.props || {}).map(([r, i]) => /* @__PURE__ */ m.jsxs(sr, { children: [
15261
- /* @__PURE__ */ m.jsx(Bt, { dataLabel: "Prop", children: /* @__PURE__ */ m.jsx("pre", { children: r }) }),
15262
- /* @__PURE__ */ m.jsx(Bt, { dataLabel: "Navn", children: !Array.isArray(i) && i.name || r }),
15277
+ /* @__PURE__ */ m.jsx(Et, { dataLabel: "Prop", children: /* @__PURE__ */ m.jsx("pre", { children: r }) }),
15278
+ /* @__PURE__ */ m.jsx(Et, { dataLabel: "Navn", children: !Array.isArray(i) && i.name || r }),
15263
15279
  Array.isArray(i) ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
15264
- /* @__PURE__ */ m.jsx(Bt, { dataLabel: "Beskrivelse" }),
15265
- /* @__PURE__ */ m.jsx(Bt, { dataLabel: "Type", children: /* @__PURE__ */ m.jsx("pre", { children: i.join(`
15280
+ /* @__PURE__ */ m.jsx(Et, { dataLabel: "Beskrivelse" }),
15281
+ /* @__PURE__ */ m.jsx(Et, { dataLabel: "Type", children: /* @__PURE__ */ m.jsx("pre", { children: i.join(`
15266
15282
  `) }) })
15267
15283
  ] }) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
15268
- /* @__PURE__ */ m.jsx(Bt, { dataLabel: "Beskrivelse", children: /* @__PURE__ */ m.jsx("span", { dangerouslySetInnerHTML: { __html: i.description || "" } }) }),
15269
- /* @__PURE__ */ m.jsx(Bt, { dataLabel: "Type", children: /* @__PURE__ */ m.jsx("pre", { children: i.type && t(i.type) }) }),
15270
- /* @__PURE__ */ m.jsx(Bt, { dataLabel: "Standardverdi", children: /* @__PURE__ */ m.jsx("pre", { children: n(i.default) }) })
15284
+ /* @__PURE__ */ m.jsx(Et, { dataLabel: "Beskrivelse", children: /* @__PURE__ */ m.jsx("span", { dangerouslySetInnerHTML: { __html: i.description || "" } }) }),
15285
+ /* @__PURE__ */ m.jsx(Et, { dataLabel: "Type", children: /* @__PURE__ */ m.jsx("pre", { children: i.type && t(i.type) }) }),
15286
+ /* @__PURE__ */ m.jsx(Et, { dataLabel: "Standardverdi", children: /* @__PURE__ */ m.jsx("pre", { children: n(i.default) }) })
15271
15287
  ] })
15272
15288
  ] }, r)) })
15273
15289
  ] }),
@@ -15275,12 +15291,14 @@ const Vx = Ne(
15275
15291
  /* @__PURE__ */ m.jsx("h2", { children: "Hendelser / handlinger" }),
15276
15292
  /* @__PURE__ */ m.jsxs(qs, { compact: !0, children: [
15277
15293
  /* @__PURE__ */ m.jsx(Hs, { children: /* @__PURE__ */ m.jsxs(sr, { children: [
15278
- /* @__PURE__ */ m.jsx(Gt, { children: "Event" }),
15279
- /* @__PURE__ */ m.jsx(Gt, { children: "Beskrivelse" })
15294
+ /* @__PURE__ */ m.jsx(Ot, { children: "Event" }),
15295
+ /* @__PURE__ */ m.jsx(Ot, { children: "Beskrivelse" }),
15296
+ /* @__PURE__ */ m.jsx(Ot, { children: "Type" })
15280
15297
  ] }) }),
15281
15298
  /* @__PURE__ */ m.jsx(Us, { children: Object.entries(e.events || {}).map(([r, i]) => /* @__PURE__ */ m.jsxs(sr, { children: [
15282
- /* @__PURE__ */ m.jsx(Bt, { dataLabel: "Event", children: /* @__PURE__ */ m.jsx("pre", { children: r }) }),
15283
- /* @__PURE__ */ m.jsx(Bt, { dataLabel: "Beskrivelse", children: /* @__PURE__ */ m.jsx("span", { dangerouslySetInnerHTML: { __html: i.description || "" } }) })
15299
+ /* @__PURE__ */ m.jsx(Et, { dataLabel: "Event", children: /* @__PURE__ */ m.jsx("pre", { children: r }) }),
15300
+ /* @__PURE__ */ m.jsx(Et, { dataLabel: "Beskrivelse", children: /* @__PURE__ */ m.jsx("span", { dangerouslySetInnerHTML: { __html: i.description || "" } }) }),
15301
+ /* @__PURE__ */ m.jsx(Et, { dataLabel: "Type", children: i.type })
15284
15302
  ] }, r)) })
15285
15303
  ] })
15286
15304
  ] }),
@@ -15288,12 +15306,12 @@ const Vx = Ne(
15288
15306
  /* @__PURE__ */ m.jsx("h2", { children: "Innhold" }),
15289
15307
  /* @__PURE__ */ m.jsxs(qs, { compact: !0, children: [
15290
15308
  /* @__PURE__ */ m.jsx(Hs, { children: /* @__PURE__ */ m.jsxs(sr, { children: [
15291
- /* @__PURE__ */ m.jsx(Gt, { children: "Slot" }),
15292
- /* @__PURE__ */ m.jsx(Gt, { children: "Beskrivelse" })
15309
+ /* @__PURE__ */ m.jsx(Ot, { children: "Slot" }),
15310
+ /* @__PURE__ */ m.jsx(Ot, { children: "Beskrivelse" })
15293
15311
  ] }) }),
15294
15312
  /* @__PURE__ */ m.jsx(Us, { children: Object.entries(e.slots || {}).map(([r, i]) => /* @__PURE__ */ m.jsxs(sr, { children: [
15295
- /* @__PURE__ */ m.jsx(Bt, { dataLabel: "Slot", children: /* @__PURE__ */ m.jsx("pre", { children: r }) }),
15296
- /* @__PURE__ */ m.jsx(Bt, { dataLabel: "Beskrivelse", children: /* @__PURE__ */ m.jsx("span", { dangerouslySetInnerHTML: { __html: i.description || "" } }) })
15313
+ /* @__PURE__ */ m.jsx(Et, { dataLabel: "Slot", children: /* @__PURE__ */ m.jsx("pre", { children: r }) }),
15314
+ /* @__PURE__ */ m.jsx(Et, { dataLabel: "Beskrivelse", children: /* @__PURE__ */ m.jsx("span", { dangerouslySetInnerHTML: { __html: i.description || "" } }) })
15297
15315
  ] }, r)) })
15298
15316
  ] })
15299
15317
  ] })
@@ -15878,9 +15896,9 @@ export {
15878
15896
  I_ as PktStepper,
15879
15897
  qs as PktTable,
15880
15898
  Us as PktTableBody,
15881
- Bt as PktTableDataCell,
15899
+ Et as PktTableDataCell,
15882
15900
  Hs as PktTableHeader,
15883
- Gt as PktTableHeaderCell,
15901
+ Ot as PktTableHeaderCell,
15884
15902
  sr as PktTableRow,
15885
15903
  Vx as PktTabs,
15886
15904
  ma as PktTag,