PageSourceSearch

https://90minutter.dk/flux/flux.min.js?id=f705ecf0

js 90minutter.dk collected 2026-10-10 00:32:37 UTC 129,066 bytes, 125 lines download raw bytes

1(()=>{var ct=class extends Event{oldState;newState;constructor(i,{oldState:e="",newState:t="",...s}={}){super(i,s),this.oldState=String(e||""),this.newState=String(t||"")}},Ui=new WeakMap;function Ji(i,e,t){Ui.set(i,setTimeout(()=>{Ui.has(i)&&i.dispatchEvent(new ct("toggle",{cancelable:!1,oldState:e,newState:t}))},0))}var qt=globalThis.ShadowRoot||function(){},Js=globalThis.HTMLDialogElement||function(){},nt=new WeakMap,ee=new WeakMap,$e=new WeakMap;function rt(i){return $e.get(i)||"hidden"}var lt=new WeakMap;function Qs(i){let e=i.popoverTargetElement;if(!(e instanceof HTMLElement))return;let t=rt(e);i.popoverTargetAction==="show"&&t==="showing"||i.popoverTargetAction==="hide"&&t==="hidden"||(t==="showing"?Be(e,!0,!0):pe(e,!1)&&(lt.set(e,i),Vt(e)))}function pe(i,e){return!(i.popover!=="auto"&&i.popover!=="manual"||!i.isConnected||e&&rt(i)!=="showing"||!e&&rt(i)!=="hidden"||i instanceof Js&&i.hasAttribute("open")||document.fullscreenElement===i)}function Yi(i){return i?Array.from(ee.get(i.ownerDocument)||[]).indexOf(i)+1:0}function Zs(i){let e=Qi(i),t=eo(i);return Yi(e)>Yi(t)?e:t}function at(i){let e=ee.get(i);for(let t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function Ce(i){return typeof i.getRootNode=="function"?i.getRootNode():i.parentNode?Ce(i.parentNode):i}function Qi(i){for(;i;){if(i instanceof HTMLElement&&i.popover==="auto"&&$e.get(i)==="showing")return i;if(i=i instanceof Element&&i.assignedSlot||i.parentElement||Ce(i),i instanceof qt&&(i=i.host),i instanceof Document)return}}function eo(i){for(;i;){let e=i.popoverTargetElement;if(e instanceof HTMLElement)return e;if(i=i.parentElement||Ce(i),i instanceof qt&&(i=i.host),i instanceof Document)return}}function to(i){let e=new Map,t=0;for(let n of ee.get(i.ownerDocument)||[])e.set(n,t),t+=1;e.set(i,t),t+=1;let s=null;function o(n){let r=Qi(n);if(r===null)return null;let u=e.get(r);(s===null||e.get(s)<u)&&(s=r)}return o(i.parentElement||Ce(i)),s}function io(i){return i.hidden||i instanceof qt||(i instanceof HTMLButtonElement||i instanceof HTMLInputElement||i instanceof HTMLSelectElement||i instanceof HTMLTextAreaElement||i instanceof HTMLOptGroupElement||i instanceof HTMLOptionElement||i instanceof HTMLFieldSetElement)&&i.disabled||i instanceof HTMLInputElement&&i.type==="hidden"||i instanceof HTMLAnchorElement&&i.href===""?!1:typeof i.tabIndex=="number"&&i.tabIndex!==-1}function so(i){if(i.shadowRoot&&i.shadowRoot.delegatesFocus!==!0)return null;let e=i;e.shadowRoot&&(e=e.shadowRoot);let t=e.querySelector("[autofocus]");if(t)return t;{let n=e.querySelectorAll("slot");for(let r of n){let u=r.assignedElements({flatten:!0});for(let l of u){if(l.hasAttribute("autofocus"))return l;if(t=l.querySelector("[autofocus]"),t)return t}}}let s=i.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),o=s.currentNode;for(;o;){if(io(o))return o;o=s.nextNode()}}function oo(i){so(i)?.focus()}var ut=new WeakMap;function Vt(i){if(!pe(i,!1))return;let e=i.ownerDocument;if(!i.dispatchEvent(new ct("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!pe(i,!1))return;let t=!1;if(i.popover==="auto"){let o=i.getAttribute("popover"),n=to(i)||e;if(ht(n,!1,!0),o!==i.getAttribute("popover")||!pe(i,!1))return}at(e)||(t=!0),ut.delete(i);let s=e.activeElement;i.classList.add(":popover-open"),$e.set(i,"showing"),nt.has(e)||nt.set(e,new Set),nt.get(e).add(i),oo(i),i.popover==="auto"&&(ee.has(e)||ee.set(e,new Set),ee.get(e).add(i),Zi(lt.get(i),!0)),t&&s&&i.popover==="auto"&&ut.set(i,s),Ji(i,"closed","open")}function Be(i,e=!1,t=!1){if(!pe(i,!0))return;let s=i.ownerDocument;if(i.popover==="auto"&&(ht(i,e,t),!pe(i,!0))||(Zi(lt.get(i),!1),lt.delete(i),t&&(i.dispatchEvent(new ct("beforetoggle",{oldState:"open",newState:"closed"})),!pe(i,!0))))return;nt.get(s)?.delete(i),ee.get(s)?.delete(i),i.classList.remove(":popover-open"),$e.set(i,"hidden"),t&&Ji(i,"open","closed");let o=ut.get(i);o&&(ut.delete(i),e&&o.focus())}function Ki(i,e=!1,t=!1){let s=at(i);for(;s;)Be(s,e,t),s=at(i)}function ht(i,e,t){let s=i.ownerDocument||i;if(i instanceof Document)return Ki(s,e,t);let o=null,n=!1;for(let r of ee.get(s)||[])if(r===i)n=!0;else if(n){o=r;break}if(!n)return Ki(s,e,t);for(;
1o&&rt(o)==="showing"&&ee.get(s)?.size;)Be(o,e,t)}var Ft=new WeakMap;function Gi(i){if(!i.isTrusted)return;let e=i.composedPath()[0];if(!e)return;let t=e.ownerDocument;if(!at(t))return;let o=Zs(e);if(o&&i.type==="pointerdown")Ft.set(t,o);else if(i.type==="pointerup"){let n=Ft.get(t)===o;Ft.delete(t),n&&ht(o||t,!1,!0)}}var Ht=new WeakMap;function Zi(i,e=!1){if(!i)return;Ht.has(i)||Ht.set(i,i.getAttribute("aria-expanded"));let t=i.popoverTargetElement;if(t instanceof HTMLElement&&t.popover==="auto")i.setAttribute("aria-expanded",String(e));else{let s=Ht.get(i);s?i.setAttribute("aria-expanded",s):i.removeAttribute("aria-expanded")}}var Xi=globalThis.ShadowRoot||function(){};function no(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function fe(i,e,t){let s=i[e];Object.defineProperty(i,e,{value(o){return s.call(this,t(o))}})}var ro=/(^|[^\\]):popover-open\b/g;function lo(){return typeof globalThis.CSSLayerBlockRule=="function"}function ao(){let i=lo();return`
2${i?"@layer popover-polyfill {":""}
3  :where([popover]) {
4    position: fixed;
5    z-index: 2147483647;
6    inset: 0;
7    padding: 0.25em;
8    width: fit-content;
9    height: fit-content;
10    border-width: initial;
11    border-color: initial;
12    border-image: initial;
13    border-style: solid;
14    background-color: canvas;
15    color: canvastext;
16    overflow: auto;
17    margin: auto;
18  }
19
20  :where([popover]:not(.\\:popover-open)) {
21    display: none;
22  }
23
24  :where(dialog[popover].\\:popover-open) {
25    display: block;
26  }
27
28  :where(dialog[popover][open]) {
29    display: revert;
30  }
31
32  :where([anchor].\\:popover-open) {
33    inset: auto;
34  }
35
36  :where([anchor]:popover-open) {
37    inset: auto;
38  }
39
40  @supports not (background-color: canvas) {
41    :where([popover]) {
42      background-color: white;
43      color: black;
44    }
45  }
46
47  @supports (width: -moz-fit-content) {
48    :where([popover]) {
49      width: -moz-fit-content;
50      height: -moz-fit-content;
51    }
52  }
53
54  @supports not (inset: 0) {
55    :where([popover]) {
56      top: 0;
57      left: 0;
58      right: 0;
59      bottom: 0;
60    }
61  }
62${i?"}":""}
63`}var ke=null;function Wt(i){let e=ao();if(ke===null)try{ke=new CSSStyleSheet,ke.replaceSync(e)}catch{ke=!1}if(ke===!1){let t=document.createElement("style");t.textContent=e,i instanceof Document?i.head.prepend(t):i.prepend(t)}else i.adoptedStyleSheets=[ke,...i.adoptedStyleSheets]}function uo(){if(typeof window>"u")return;window.ToggleEvent=window.ToggleEvent||ct;function i(l){return l?.includes(":popover-open")&&(l=l.replace(ro,"$1.\\:popover-open")),l}fe(Document.prototype,"querySelector",i),fe(Document.prototype,"querySelectorAll",i),fe(Element.prototype,"querySelector",i),fe(Element.prototype,"querySelectorAll",i),fe(Element.prototype,"matches",i),fe(Element.prototype,"closest",i),fe(DocumentFragment.prototype,"querySelectorAll",i),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let l=(this.getAttribute("popover")||"").toLowerCase();return l===""||l=="auto"?"auto":"manual"},set(l){l===null?this.removeAttribute("popover"):this.setAttribute("popover",l)}},showPopover:{enumerable:!0,configurable:!0,value(){Vt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Be(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(l){$e.get(this)==="showing"&&l===void 0||l===!1?Be(this,!0,!0):(l===void 0||l===!0)&&Vt(this)}}});let e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(l){let a=e.call(this,l);return Wt(a),a}}});let t=HTMLElement.prototype.attachInternals;t&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let l=t.call(this);return l.shadowRoot&&Wt(l.shadowRoot),l}}});let s=new WeakMap;function o(l){Object.defineProperties(l.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(a){if(a===null)this.removeAttribute("popovertarget"),s.delete(this);else if(a instanceof Element)this.setAttribute("popovertarget",""),s.set(this,a);else throw new TypeError("popoverTargetElement must be an element or null")}
63,get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;let a=s.get(this);if(a&&a.isConnected)return a;if(a&&!a.isConnected)return s.delete(this),null;let d=Ce(this),f=this.getAttribute("popovertarget");return(d instanceof Document||d instanceof Xi)&&f&&d.getElementById(f)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let a=(this.getAttribute("popovertargetaction")||"").toLowerCase();return a==="show"||a==="hide"?a:"toggle"},set(a){this.setAttribute("popovertargetaction",a)}}})}o(HTMLButtonElement),o(HTMLInputElement);let n=l=>{let a=l.composedPath(),d=a[0];if(!(d instanceof Element)||d?.shadowRoot)return;let f=Ce(d);if(!(f instanceof Xi||f instanceof Document))return;let m=a.find(g=>g.matches?.("[popovertargetaction],[popovertarget]"));if(m){Qs(m),l.preventDefault();return}},r=l=>{let a=l.key,d=l.target;!l.defaultPrevented&&d&&(a==="Escape"||a==="Esc")&&ht(d.ownerDocument,!0,!0)};(l=>{l.addEventListener("click",n),l.addEventListener("keydown",r),l.addEventListener("pointerdown",Gi),l.addEventListener("pointerup",Gi)})(document),Wt(document)}no()||uo();var gt=class extends Event{oldState;newState;constructor(i,{oldState:e="",newState:t="",...s}={}){super(i,s),this.oldState=String(e||""),this.newState=String(t||"")}},es=new WeakMap;function ns(i,e,t){es.set(i,setTimeout(()=>{es.has(i)&&i.dispatchEvent(new gt("toggle",{cancelable:!1,oldState:e,newState:t}))},0))}var Ut=globalThis.ShadowRoot||function(){},co=globalThis.HTMLDialogElement||function(){},dt=new WeakMap,te=new WeakMap,je=new WeakMap;function ft(i){return je.get(i)||"hidden"}var pt=new WeakMap;function ho(i){let e=i.popoverTargetElement;if(!(e instanceof HTMLElement))return;let t=ft(e);i.popoverTargetAction==="show"&&t==="showing"||i.popoverTargetAction==="hide"&&t==="hidden"||(t==="showing"?ze(e,!0,!0):me(e,!1)&&(pt.set(e,i),jt(e)))}function me(i,e){return!(i.popover!=="auto"&&i.popover!=="manual"||!i.isConnected||e&&ft(i)!=="showing"||!e&&ft(i)!=="hidden"||i instanceof co&&i.hasAttribute("open")||document.fullscreenElement===i)}function ts(i){return i?Array.from(te.get(i.ownerDocument)||[]).indexOf(i)+1:0}function fo(i){let e=rs(i),t=po(i);return ts(e)>ts(t)?e:t}function bt(i){let e=te.get(i);for(let t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function Oe(i){return typeof i.getRootNode=="function"?i.getRootNode():i.parentNode?Oe(i.parentNode):i}function rs(i){for(;i;){if(i instanceof HTMLElement&&i.popover==="auto"&&je.get(i)==="showing")return i;if(i=i instanceof Element&&i.assignedSlot||i.parentElement||Oe(i),i instanceof Ut&&(i=i.host),i instanceof Document)return}}function po(i){for(;i;){let e=i.popoverTargetElement;if(e instanceof HTMLElement)return e;if(i=i.parentElement||Oe(i),i instanceof Ut&&(i=i.host),i instanceof Document)return}}function bo(i){let e=new Map,t=0;for(let n of te.get(i.ownerDocument)||[])e.set(n,t),t+=1;e.set(i,t),t+=1;let s=null;function o(n){let r=rs(n);if(r===null)return null;let u=e.get(r);(s===null||e.get(s)<u)&&(s=r)}return o(i.parentElement||Oe(i)),s}function mo(i){return i.hidden||i instanceof Ut||(i instanceof HTMLButtonElement||i instanceof HTMLInputElement||i instanceof HTMLSelectElement||i instanceof HTMLTextAreaElement||i instanceof HTMLOptGroupElement||i instanceof HTMLOptionElement||i instanceof HTMLFieldSetElement)&&i.disabled||i instanceof HTMLInputElement&&i.type==="hidden"||i instanceof HTMLAnchorElement&&i.href===""?!1:typeof i.tabIndex=="number"&&i.tabIndex!==-1}function go(i){if(i.shadowRoot&&i.shadowRoot.delegatesFocus!==!0)return null;let e=i;e.shadowRoot&&(e=e.shadowRoot);let t=e.querySelector("[autofocus]");if(t)return t;{let n=e.querySelectorAll("slot");for(let r of n){let u=r.assignedElements({flatten:!0});for(let l of u){if(l.hasAttribute("autofocus"))return l;if(t=l.querySelector("[autofocus]"),t)return t}}}let s=i.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),o=s.currentNode;for(;o;){if(mo(o))return o;o=s.nextNode()}}
63function vo(i){go(i)?.focus()}var mt=new WeakMap;function jt(i){if(!me(i,!1))return;let e=i.ownerDocument;if(!i.dispatchEvent(new gt("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!me(i,!1))return;let t=!1;if(i.popover==="auto"){let o=i.getAttribute("popover"),n=bo(i)||e;if(vt(n,!1,!0),o!==i.getAttribute("popover")||!me(i,!1))return}bt(e)||(t=!0),mt.delete(i);let s=e.activeElement;i.classList.add(":popover-open"),je.set(i,"showing"),dt.has(e)||dt.set(e,new Set),dt.get(e).add(i),vo(i),i.popover==="auto"&&(te.has(e)||te.set(e,new Set),te.get(e).add(i),ls(pt.get(i),!0)),t&&s&&i.popover==="auto"&&mt.set(i,s),ns(i,"closed","open")}function ze(i,e=!1,t=!1){if(!me(i,!0))return;let s=i.ownerDocument;if(i.popover==="auto"&&(vt(i,e,t),!me(i,!0))||(ls(pt.get(i),!1),pt.delete(i),t&&(i.dispatchEvent(new gt("beforetoggle",{oldState:"open",newState:"closed"})),!me(i,!0))))return;dt.get(s)?.delete(i),te.get(s)?.delete(i),i.classList.remove(":popover-open"),je.set(i,"hidden"),t&&ns(i,"open","closed");let o=mt.get(i);o&&(mt.delete(i),e&&o.focus())}function is(i,e=!1,t=!1){let s=bt(i);for(;s;)ze(s,e,t),s=bt(i)}function vt(i,e,t){let s=i.ownerDocument||i;if(i instanceof Document)return is(s,e,t);let o=null,n=!1;for(let r of te.get(s)||[])if(r===i)n=!0;else if(n){o=r;break}if(!n)return is(s,e,t);for(;o&&ft(o)==="showing"&&te.get(s)?.size;)ze(o,e,t)}var Bt=new WeakMap;function ss(i){if(!i.isTrusted)return;let e=i.composedPath()[0];if(!e)return;let t=e.ownerDocument;if(!bt(t))return;let o=fo(e);if(o&&i.type==="pointerdown")Bt.set(t,o);else if(i.type==="pointerup"){let n=Bt.get(t)===o;Bt.delete(t),n&&vt(o||t,!1,!0)}}var $t=new WeakMap;function ls(i,e=!1){if(!i)return;$t.has(i)||$t.set(i,i.getAttribute("aria-expanded"));let t=i.popoverTargetElement;if(t instanceof HTMLElement&&t.popover==="auto")i.setAttribute("aria-expanded",String(e));else{let s=$t.get(i);s?i.setAttribute("aria-expanded",s):i.removeAttribute("aria-expanded")}}var os=globalThis.ShadowRoot||function(){};function as(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function us(){return!!(document.body?.showPopover&&!/native code/i.test(document.body.showPopover.toString()))}function be(i,e,t){let s=i[e];Object.defineProperty(i,e,{value(o){return s.call(this,t(o))}})}var wo=/(^|[^\\]):popover-open\b/g;function yo(){return typeof globalThis.CSSLayerBlockRule=="function"}function Ao(){let i=yo();return`
64${i?"@layer popover-polyfill {":""}
65  :where([popover]) {
66    position: fixed;
67    z-index: 2147483647;
68    inset: 0;
69    padding: 0.25em;
70    width: fit-content;
71    height: fit-content;
72    border-width: initial;
73    border-color: initial;
74    border-image: initial;
75    border-style: solid;
76    background-color: canvas;
77    color: canvastext;
78    overflow: auto;
79    margin: auto;
80  }
81
82  :where([popover]:not(.\\:popover-open)) {
83    display: none;
84  }
85
86  :where(dialog[popover].\\:popover-open) {
87    display: block;
88  }
89
90  :where(dialog[popover][open]) {
91    display: revert;
92  }
93
94  :where([anchor].\\:popover-open) {
95    inset: auto;
96  }
97
98  :where([anchor]:popover-open) {
99    inset: auto;
100  }
101
102  @supports not (background-color: canvas) {
103    :where([popover]) {
104      background-color: white;
105      color: black;
106    }
107  }
108
109  @supports (width: -moz-fit-content) {
110    :where([popover]) {
111      width: -moz-fit-content;
112      height: -moz-fit-content;
113    }
114  }
115
116  @supports not (inset: 0) {
117    :where([popover]) {
118      top: 0;
119      left: 0;
120      right: 0;
121      bottom: 0;
122    }
123  }
124${i?"}":""}
125`}var Te=null;function zt(i){let e=Ao();if(Te===null)try{Te=new CSSStyleSheet,Te.replaceSync(e)}catch{Te=!1}if(Te===!1){let t=document.createElement("style");t.textContent=e,i instanceof Document?i.head.prepend(t):i.prepend(t)}else i.adoptedStyleSheets=[Te,...i.adoptedStyleSheets]}function cs(){if(typeof window>"u")return;window.ToggleEvent=window.ToggleEvent||gt;function i(l){return l?.includes(":popover-open")&&(l=l.replace(wo,"$1.\\:popover-open")),l}be(Document.prototype,"querySelector",i),be(Document.prototype,"querySelectorAll",i),be(Element.prototype,"querySelector",i),be(Element.prototype,"querySelectorAll",i),be(Element.prototype,"matches",i),be(Element.prototype,"closest",i),be(DocumentFragment.prototype,"querySelectorAll",i),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if
125(!this.hasAttribute("popover"))return null;let l=(this.getAttribute("popover")||"").toLowerCase();return l===""||l=="auto"?"auto":"manual"},set(l){l===null?this.removeAttribute("popover"):this.setAttribute("popover",l)}},showPopover:{enumerable:!0,configurable:!0,value(){jt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){ze(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(l){je.get(this)==="showing"&&l===void 0||l===!1?ze(this,!0,!0):(l===void 0||l===!0)&&jt(this)}}});let e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(l){let a=e.call(this,l);return zt(a),a}}});let t=HTMLElement.prototype.attachInternals;t&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let l=t.call(this);return l.shadowRoot&&zt(l.shadowRoot),l}}});let s=new WeakMap;function o(l){Object.defineProperties(l.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(a){if(a===null)this.removeAttribute("popovertarget"),s.delete(this);else if(a instanceof Element)this.setAttribute("popovertarget",""),s.set(this,a);else throw new TypeError("popoverTargetElement must be an element or null")},get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;let a=s.get(this);if(a&&a.isConnected)return a;if(a&&!a.isConnected)return s.delete(this),null;let d=Oe(this),f=this.getAttribute("popovertarget");return(d instanceof Document||d instanceof os)&&f&&d.getElementById(f)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let a=(this.getAttribute("popovertargetaction")||"").toLowerCase();return a==="show"||a==="hide"?a:"toggle"},set(a){this.setAttribute("popovertargetaction",a)}}})}o(HTMLButtonElement),o(HTMLInputElement);let n=l=>{let a=l.composedPath(),d=a[0];if(!(d instanceof Element)||d?.shadowRoot)return;let f=Oe(d);if(!(f instanceof os||f instanceof Document))return;let m=a.find(g=>g.matches?.("[popovertargetaction],[popovertarget]"));if(m){ho(m),l.preventDefault();return}},r=l=>{let a=l.key,d=l.target;!l.defaultPrevented&&d&&(a==="Escape"||a==="Esc")&&vt(d.ownerDocument,!0,!0)};(l=>{l.addEventListener("click",n),l.addEventListener("keydown",r),l.addEventListener("pointerdown",ss),l.addEventListener("pointerup",ss)})(document),zt(document)}var wt;function Kt(i){let e=i({css:(t,...s)=>`@layer base { ${t.raw[0]+s.join("")} }`});if(document.adoptedStyleSheets===void 0){let t=document.createElement("style");t.textContent=e,document.head.appendChild(t);return}wt===void 0&&(wt=new CSSStyleSheet,document.adoptedStyleSheets=[...document.adoptedStyleSheets,wt]),wt.insertRule(e)}function At(i,e){let t=i;for(;t;){if(e(t))return t;t=t.parentElement}}function M(i,e){let t=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,e?{acceptNode:s=>{let o,n;return e(s,{skip:()=>o=!0,reject:()=>n=!0}),o?NodeFilter.FILTER_SKIP:n?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}:{});return new Yt(t)}var Yt=class{constructor(e){this.walker=e}from(e){return this.walker.currentNode=e,this}first(){return this.walker.firstChild()}last(){return this.walker.lastChild()}next(e){return this.walker.currentNode=e,this.walker.nextSibling()}nextOrFirst(e){let t=this.next(e);return t||(this.walker.currentNode=this.walker.root,this.first())}prev(e){return this.walker.currentNode=e,this.walker.previousSibling()}prevOrLast(e){let t=this.prev(e);return t||(this.walker.currentNode=this.walker.root,this.last())}closest(e,t){let s=this.from(e).walker;for(;s.currentNode;){if(t(s.currentNode))return s.currentNode;s.parentNode()}}contains(e){return this.find(t=>t===e)}find(e){return this.walk((t,s)=>{e(t)&&s(t)})}findOrFirst(e){return this.find(e)||(this.walker.currentNode=this.walker.root),this.first()}each(e){this.walk(t=>e(t))}some(e){return!!this.find(e)}every(e){let t=!0;return this.walk(s=>{e(s)||(t=!1)}),t}map(e){let t=[];return this.walk(s=>t.push(e(s))),t}filter(e){let t=[];return this.walk(s=>e(s)&&t.push(s)),t}walk(e){let t,s=this.walker,o;for(;s.nextNode()&&(t=s.currentNode,e(t,n=>o=n),o===void 0););return o}};function y(i,e){customElements.define(`ui-${i}`,e)}function p(i,e,t,s={}){return i.addEventListener(e,t,s),{off:()=>i.removeEventListener(e,t),pause:o=>{i.removeEventListener(e,t),o(),i.addEventListener(e,t)}}}function ds(i){return["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[tabindex]","[contenteditable]"].some(t=>i.matches(t))&&i.tabIndex>=0}function xo(i,e){let t;return function(){let s=this,o=arguments;t||(i.apply(s,o),t=!0,setTimeout(()=>t=!1,e))}}function Gt(i,e){let t,s,o=e,n=!1,r={pause:()=>{n&&(clearTimeout(t),o-=Date.now()-s,n=!1)},resume:()=>{n||(s=Date.now(),t=setTimeout(i,o),n=!0)},cancel:()=>{clearTimeout(t),n=!1,o=e}};return r.resume(),r}var Ue="pointer";document.addEventListener("keydown",()=>Ue="keyboard",{capture:!0});document.addEventListener("pointerdown",i=>{Ue=i.pointerType==="mouse"?"mouse":"touch"},{capture:!0});document.addEventListener("pointermove",i=>{Ue=i.pointerType==="mouse"?"mouse":"touch"},{capture:!0});function ge(){return Ue==="keyboard"}
125function xt(){return Ue==="touch"}function Et(i,e){let t="",s=Po(()=>{t=""},300);i.addEventListener("keydown",o=>{o.key.length===1&&/[a-zA-Z]/.test(o.key)&&(t+=o.key,e(t),o.stopPropagation()),s()})}function Eo(i,e){return"lofi-"+(e?e+"-":"")+Math.random().toString(16).slice(2)}function R(i,e){let t=i.hasAttribute("id")?i.getAttribute("id"):Eo(i,e);return c(i,"id",t),i._x_bindings||(i._x_bindings={}),i._x_bindings.id||(i._x_bindings.id=t),t}function D(){let i=!1;return e=>(...t)=>{if(!i){i=!0;try{e(...t)}finally{i=!1}}}}function De(i,e,{gain:t,lose:s,focusable:o,useSafeArea:n}){let r=!1,u=v=>{ge()&&(i.contains(v.target)||e.contains(v.target)?(r=!0,t()):(r=!1,s()))};o&&document.addEventListener("focusin",u);let l=()=>{document.removeEventListener("focusin",u)},a=()=>{},d=()=>{},f=()=>{r=!1,s(),a(),d()},m=()=>{r=!1,a(),d()},g=v=>{xt()||r||(r=!0,t(),setTimeout(()=>{let{safeArea:A,redraw:E,remove:S}=n?So(i,e,v.clientX,v.clientY):Oo();a=S;let L,O=xo(I=>{let $=e.getBoundingClientRect(),Z=i.getBoundingClientRect(),q;switch(A.contains(I.target)&&_o(Z,$,I.clientX,I.clientY)?q="safeArea":e.contains(I.target)?q="panel":i.contains(I.target)?q="trigger":q="outside",L&&clearTimeout(L),q){case"outside":f();break;case"trigger":E(I.clientX,I.clientY);break;case"panel":a();break;case"safeArea":E(I.clientX,I.clientY),L=setTimeout(()=>{f()},300);break;default:break}},100);document.addEventListener("pointermove",O),d=()=>document.removeEventListener("pointermove",O)}))};i.addEventListener("pointerenter",g);let h=()=>{i.removeEventListener("pointerenter",g)};return{clear:m,remove:()=>{m(),h(),l()}}}function So(i,e,t,s){let o=document.createElement("div"),n=e.getBoundingClientRect(),r=i.getBoundingClientRect();o.style.position="fixed",c(o,"data-safe-area","");let u=(l,a)=>{if(n.top===0&&n.bottom===0)return;let d;n.left<r.left&&(d="left"),n.right>r.right&&(d="right"),n.top<r.top&&n.bottom<a&&(d="up"),n.bottom>r.bottom&&n.top>a&&(d="down"),d===void 0&&(d="right");let f,m,g,h,b,v,A,E,S=10;switch(d){case"left":f=n.right,m=Math.max(n.right,l)+5,g=m-f,h=Math.min(r.top,n.top)-S,b=Math.max(r.bottom,n.bottom)+S,v=b-h,A=a-h,E=`polygon(0% 0%, 100% ${A}px, 0% 100%)`;break;case"right":f=Math.min(n.left,l)-5,m=n.left,g=m-f,h=Math.min(r.top,n.top)-S,b=Math.max(r.bottom,n.bottom)+S,v=b-h,A=a-h,E=`polygon(0% ${A}px, 100% 0%, 100% 100%)`;break;case"up":f=Math.min(l,n.left)-S,m=Math.max(l,n.right)+S,g=m-f,h=n.bottom,b=Math.max(n.bottom,a)+5,v=b-h,A=l-f,E=`polygon(0% 0%, 100% 0%, ${A}px 100%)`;break;case"down":f=Math.min(l,n.left)-S,m=Math.max(l,n.right)+S,g=m-f,h=Math.min(n.top,a)-5,b=n.top,v=b-h,A=l-f,E=`polygon(${A}px 0%, 100% 100%, 0% 100%)`;break}o.style.left=`${f}px`,o.style.top=`${h}px`,o.style.width=`${g}px`,o.style.height=`${v}px`,o.style.clipPath=E};return{safeArea:o,redraw:(l,a)=>{o.isConnected||i.appendChild(o),u(l,a)},remove:()=>{o.remove()}}}function _o(i,e,t,s){return!ko(i,t,s)&&!Co(e,t,s)}function ko(i,e,t){return i.left<=e&&e<=i.right&&i.top<=t&&t<=i.bottom}function Co(i,e,t){return i.left<=e&&e<=i.right&&i.top<=t&&t<=i.bottom}function c(i,e,t){i._durableAttributeObserver===void 0&&(i._durableAttributeObserver=fs(i,[e])),i._durableAttributeObserver.hasAttribute(e)||i._durableAttributeObserver.addAttribute(e),i._durableAttributeObserver.pause(()=>{i.setAttribute(e,t)})}function ie(i,e){w(i,e),To(i,e)}function w(i,e){i._durableAttributeObserver===void 0&&(i._durableAttributeObserver=fs(i,[e])),i._durableAttributeObserver.hasAttribute(e)||i._durableAttributeObserver.addAttribute(e),i._durableAttributeObserver.pause(()=>{i.removeAttribute(e)})}function To(i,e){i?._durableAttributeObserver?.hasAttribute(e)&&i._durableAttributeObserver.releaseAttribute(e)}function fs(i,e){let t=o=>{o.forEach(n=>{n.oldValue===null?i._durableAttributeObserver.pause(()=>w(i,n.attributeName)):i._durableAttributeObserver.pause(()=>c(i,n.attributeName,n.oldValue))})},s=new MutationObserver(o=>t(o));return s.observe(i,{attributeFilter:e,attributeOldValue:!0}),{attributes:e,hasAttribute(o){return this.attributes.includes(o)},addAttribute(o){this.attributes.includes(o)||this.attributes.push(o),s.observe(i,{attributeFilter:this.attributes,attributeOldValue:!0})},releaseAttribute(o){this.hasAttribute(o)&&s.observe(i,{attributeFilter:this.attributes,attributeOldValue:!0})},pause(o){t(s.takeRecords()),s.disconnect(),o(),s.observe(i,{attributeFilter:this.attributes,attributeOldValue:!0})}}}function Oo(){return{safeArea:{contains:()=>!1},redraw:()=>{},remove:()=>{}}}function Po(i,e){let t;return(...s)=>{clearTimeout(t),t=setTimeout(()=>{i(...s)},e)}}var Pe=0,Le=!1;Kt(({css:i})=>i`[data-flux-allow-scroll] { pointer-events: auto; }`);function se(i=null,e=!1,t=[]){if(e)return{lock:()=>{},unlock:()=>{}};let s=(n=!1)=>{hs(document.documentElement);let r={overflow:"hidden",...n?{pointerEvents:"none"}:{}};window.CSS&&CSS.supports&&CSS.supports("scrollbar-gutter: stable")?document.documentElement.scrollHeight>document.documentElement.clientHeight&&window.getComputedStyle(document.documentElement).overflowY!=="hidden"&&(r.scrollbarGutter="stable"):r.paddingRight=`calc(${window.innerWidth-document.documentElement.clientWidth}px + ${window.getComputedStyle(document.documentElement).paddingRight})`,Lo(document.documentElement,r),n&&(c(i,"data-flux-allow-scroll",""),t.forEach(u=>{c(u,"data-flux-allow-scroll","")}),Le=!0)},o=(n=!1)=>{hs(document.documentElement),n&&(ie(i,"data-flux-allow-scroll"),t.forEach(r=>{w(r,"data-flux-allow-scroll")}),Le=!1)};return{lock(){Pe++,!(Pe>1&&i!==null&&Le)&&s(i!==null&&!Le)},unlock(){Pe=Math.max(0,Pe-1),!(Pe>0&&i!==null&&!Le)&&(o(i!==null&&Le),Pe>0&&s(!1))}}}function Lo(i,e){let t=JSON.parse(i.getAttribute("data-flux-scroll-unlock")||"{}");Object.entries(e).forEach(([s,o])=>{t[s]===void 0&&(t[s]=i.style[s],i.style[s]=o)}),i.setAttribute("data-flux-scroll-unlock",JSON.stringify(t))}function hs(i){let e=JSON.parse(i.getAttribute("data-flux-scroll-unlock")||"{}");Object.entries(e).forEach(([t,s])=>{i.style[t]=s}),i.removeAttribute("data-flux-scroll-unlock")}function Xt(i,e,t){let s=i.style[e];return i.style[e]=t,()=>{i.style[e]=s}}function Ye(i){return getComputedStyle(i).direction==="rtl"}function ps(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!navigator.userAgent.includes("CriOS")&&!navigator.userAgent.includes("FxiOS")}var yt=class{constructor(){this.subscribers=[]}subscribe(e,t){this.subscribers.push({reason:e,callback:t})}
125notify(e,t){this.subscribers.forEach(({reason:s,callback:o})=>{e===s&&o(t)})}};var x=class extends HTMLElement{wasDisconnected=!1;onUnmounts=[];constructor(){super(),this.boot?.()}connectedCallback(){if(this.wasDisconnected){this.wasDisconnected=!1;return}queueMicrotask(()=>{this.mount?.()})}disconnectedCallback(){this.wasDisconnected=!0,queueMicrotask(()=>{this.wasDisconnected&&(this.unmount?.(),this.onUnmounts.forEach(e=>e()),this.onUnmounts=[]),this.wasDisconnected=!1})}onUnmount(e){this.onUnmounts.push(e)}mixin(e,t={}){return new e(this,t)}appendMixin(e,t={}){return new e(this,t)}use(e){let t;return this.mixins.forEach(s=>{s instanceof e&&(t=s)}),t}uses(e){let t;return this.mixins.forEach(s=>{s instanceof e&&(t=!0)}),!!t}on(e,t){return p(this,e,t)}root(e,t={}){if(e===void 0)return this.__root;let s=document.createElement(e);for(let n in t)setAttribute(s,n,t[n]);let o=this.attachShadow({mode:"open"});return s.appendChild(document.createElement("slot")),o.appendChild(s),this.__root=s,this.__root}},N=class extends x{};var k=class{constructor(e,t={}){this.el=e,this.grouped=t.grouped===void 0,this.el.mixins=this.el.mixins?this.el.mixins:new Map,this.el.mixins.set(this.constructor.name,this),this.el[this.constructor.name]=!0,this.el.use||(this.el.use=x.prototype.use.bind(this.el)),this.opts=t,this.boot?.({options:s=>{let o=s;Object.entries(this.opts).forEach(([n,r])=>{r!==void 0&&(o[n]=r)}),this.opts=o}}),queueMicrotask(()=>{this.mount?.()})}options(){return this.opts}hasGroup(){return!!this.group()}group(){if(this.grouped!==!1)return At(this.el,e=>e[this.groupedByType.name])?.use(this.groupedByType)}on(e,t){return p(this.el,e,t)}},Q=class extends k{constructor(e,t={}){super(e,t)}walker(){return M(this.el,(e,{skip:t,reject:s})=>{if(e[this.constructor.name]&&e!==this.el)return s();if(!e[this.groupOfType.name]||!e.mixins.get(this.groupOfType.name).grouped)return t()})}};var P=class extends k{boot({options:e}){e({bubbles:!1}),this.initialState=this.el.value,this.getterFunc=()=>{},this.setterFunc=t=>this.initialState=t,Object.defineProperty(this.el,"value",{get:()=>this.getterFunc(),set:t=>{this.setterFunc(t)}})}initial(e){e(this.initialState)}getter(e){this.getterFunc=e}setter(e){this.setterFunc=e}dispatch(){this.el.dispatchEvent(new Event("input",{bubbles:this.options().bubbles,cancelable:!0})),this.el.dispatchEvent(new Event("change",{bubbles:this.options().bubbles,cancelable:!0}))}};var Jt=null;document.addEventListener("mousedown",i=>Jt=i);var St=class extends k{boot({options:e}){e({clickOutside:!0,triggers:[]}),this.onChanges=[],this.state=!1,this.stopDialogFromFocusingTheFirstElement();let t=this.options().triggers;if(new MutationObserver(o=>{o.forEach(n=>{n.attributeName==="open"&&(this.el.hasAttribute("open")?this.state=!0:this.state=!1)}
125),this.onChanges.forEach(n=>n())}).observe(this.el,{attributeFilter:["open"]}),this.options().clickOutside){let o=this.el.querySelector("[data-flux-modal-content]")||this.el;this.el.addEventListener("click",n=>{n.target!==o&&o?.contains(n.target)||Jt&&bs(o,Jt)&&bs(o,n)&&(this.cancel(),n.preventDefault(),n.stopPropagation())})}this.el.hasAttribute("open")&&(this.state=!0,this.hide(),this.show())}onChange(e){this.onChanges.push(e)}show(){this.el.isConnected&&this.el.showModal()}hide(){this.el.close()}toggle(){this.state?this.hide():this.show()}cancel(){let e=new Event("cancel",{bubbles:!1,cancelable:!0});this.el.dispatchEvent(e),e.defaultPrevented||this.hide()}getState(){return this.state}setState(e){e?this.show():this.hide()}stopDialogFromFocusingTheFirstElement(){let e=document.createElement("div");e.setAttribute("data-flux-focus-placeholder",""),e.setAttribute("data-appended",""),e.setAttribute("tabindex","0"),this.el.prepend(e),this.onChange(()=>{c(e,"style",this.state?"display: none":"display: block"),this.state&&ps()&&!this.el.hasAttribute("autofocus")&&this.el.querySelectorAll("[autofocus]").length===0&&setTimeout(()=>{this.el.setAttribute("tabindex","-1"),this.el.focus(),this.el.blur()})})}};function bs(i,e){let t=i.getBoundingClientRect(),s=e.clientX,o=e.clientY;return!(s>=t.left&&s<=t.right&&o>=t.top&&o<=t.bottom)}var ve=class extends k{boot(){this.onCloses=[]}onClose(e){this.onCloses.push(e)}close(){this.onCloses.forEach(e=>e())}};var Qt=class extends x{boot(){this.querySelectorAll("[data-appended]").forEach(u=>u.remove()),this._controllable=new P(this,{disabled:this.hasAttribute("disabled")});let e=this.button(),t=this.dialog();if(!t)return;t._dialogable=new St(t,{clickOutside:!this.hasAttribute("disable-click-outside")}),t._closeable=new ve(t),t._closeable.onClose(()=>t._dialogable.hide()),this._controllable.initial(u=>u&&t._dialogable.show()),this._controllable.getter(()=>t._dialogable.getState());let s=D();this._controllable.setter(s(u=>{t._dialogable.setState(u)})),t._dialogable.onChange(s(()=>{this._controllable.dispatch()}));let o=()=>{t._dialogable.getState()?(c(this,"data-open",""),e?.setAttribute("data-open",""),c(t,"data-open","")):(w(this,"data-open"),e?.removeAttribute("data-open"),w(t,"data-open"))};t._dialogable.onChange(()=>o()),o();let{lock:n,unlock:r}=se();t._dialogable.onChange(()=>{t._dialogable.getState()?n():r()}),e&&p(e,"click",u=>{t._dialogable.show()})}unmount(){if(this.dialog()?._dialogable?.getState()){let{unlock:e}=se();e()}}button(){let e=this.querySelector("button,ui-button");if(!this.dialog()?.contains(e))return e}dialog(){return this.querySelector("dialog")}showModal(){let e=this.dialog();e&&e.showModal()}};Kt(({css:i})=>i`dialog, ::backdrop { margin: auto; }`);y("modal",Qt);var _t=class extends k{boot({options:e}){this.onChanges=[],this.state=!1}onChange(e){this.onChanges.push(e)}getState(){return this.state}setState(e){let t=this.state;
125this.state=!!e,this.state!==t&&this.onChanges.forEach(s=>s())}};var T=class extends k{boot({options:e}){e({disableWithParent:!0}),this.onChanges=[],Object.defineProperty(this.el,"disabled",{get:()=>this.el.hasAttribute("disabled"),set:s=>{s?this.el.setAttribute("disabled",""):this.el.removeAttribute("disabled")}}),this.el.hasAttribute("disabled")?this.el.disabled=!0:this.options().disableWithParent&&this.el.parentElement?.closest("[disabled]")&&(this.el.disabled=!0),new MutationObserver(s=>{this.onChanges.forEach(o=>o(this.el.disabled))}).observe(this.el,{attributeFilter:["disabled"]})}onChange(e){this.onChanges.push(e)}onInitAndChange(e){e(this.el.disabled),this.onChanges.push(e)}enabled(e){return(...t)=>{if(!this.el.disabled)return e(...t)}}disabled(e){return(...t)=>{if(this.el.disabled)return e(...t)}}isDisabled(){return this.el.disabled}};var Zt=class extends x{boot(){let e=this.button(),t=this.details();if(e){if(!t)return console.warn("ui-disclosure: no panel element found",this)}else return console.warn("ui-disclosure: no trigger element found",this);this._disableable=new T(this),this._disableable.onInitAndChange(n=>{n?e.hasAttribute("disabled")||c(e,"disabled",""):e.hasAttribute("disabled")&&w(e,"disabled")}),this._controllable=new P(this,{disabled:this.disabled}),t._disclosable=new _t(t),this._controllable.initial(n=>n&&t._disclosable.setState(!0)),this._controllable.getter(()=>t._disclosable.getState()),this._controllable.setter(n=>t._disclosable.setState(n)),t._disclosable.onChange(()=>{this.dispatchEvent(new CustomEvent("lofi-disclosable-change",{bubbles:!0})),this._controllable.dispatch()});let s=()=>{t._disclosable.getState()?(c(this,"data-open",""),c(e,"data-open",""),c(t,"data-open","")):(w(this,"data-open"),w(e,"data-open"),w(t,"data-open"))};t._disclosable.onChange(()=>s()),s(),p(e,"click",n=>{this.disabled||t._disclosable.setState(!t._disclosable.getState())});let o=R(t,"disclosure");c(e,"aria-controls",o),c(e,"aria-expanded","false"),t._disclosable.onChange(()=>{t._disclosable.getState()?c(e,"aria-expanded","true"):c(e,"aria-expanded","false")}),this.hasAttribute("open")&&t._disclosable.setState(!0)}button(){return this.querySelector("button,ui-button")}details(){return this.lastElementChild}},ei=class i extends x{boot(){this.exclusive=this.hasAttribute("exclusive"),this.exclusive&&p(this,"lofi-disclosable-change",e=>{e.stopPropagation(),e.target.localName==="ui-disclosure"&&e.target.value&&this.disclosureWalker().each(t=>{t!==e.target&&(t.value=!1)})})}disclosureWalker(){return M(this,(e,{skip:t,reject:s})=>{if(e instanceof i&&e!==this||e.localName!=="ui-disclosure")return s()})}};y("disclosure",Zt);y("disclosure-group",ei);var z=class extends Q{groupOfType=_;boot({options:e}){e({multiple:!1}),this.state=this.options().multiple?new Set:null,this.onChanges=[]}onInitAndChange(e){e(),this.onChanges.push(e)}onChange(e){this.onChanges.push(e)}changed(e,t=!1){if(e.ungrouped)return;let s=e.value,o=e.isSelected(),n=this.options().multiple;o?n?this.state.add(s):this.state=s:n?this.state.delete(s):this.state=null,t||this.onChanges.forEac
125h(r=>r(e))}deselectByValue(e,t=!1){this.options().multiple?this.state.delete(e):this.state=null,t||this.onChanges.forEach(s=>s())}getState(){return this.options().multiple?Array.from(this.state):this.state}hasValue(e){return this.options().multiple?this.state.has(e):this.state===e}setState(e){(e===null||e==="")&&(e=this.options().multiple?[]:""),this.options().multiple?(Array.isArray(e)||(e=[e]),e=e.map(s=>s+"")):e=e+"",this.state=this.options().multiple?new Set(e):e;let t=this.options().multiple?e:[e];this.walker().each(s=>{let o=s.use(_);if(o.ungrouped)return;let n=t.includes(o.value);n&&!o.isSelected()?o.surgicallySelect():!n&&o.isSelected()&&o.surgicallyDeselect()}),this.onChanges.forEach(s=>s())}selected(){return this.walker().find(e=>e.use(_).isSelected()).use(_)}selecteds(){return this.walker().filter(e=>e.use(_).isSelected()).map(e=>e.use(_))}selectFirst(){this.walker().first()?.use(_).select()}selectAll(){this.walker().filter(e=>!e.use(_).isSelected()).map(e=>e.use(_).select())}deselectAll(){this.walker().filter(e=>e.use(_).isSelected()).map(e=>e.use(_).deselect())}allAreSelected(){let e=this.walker().filter(t=>!0);return e.length>0&&this.walker().filter(t=>t.use(_).isSelected()).length===e.length}noneAreSelected(){return this.state===null||this.state?.size===0}isEmpty(){return this.noneAreSelected()}isNotEmpty(){return!this.isEmpty()}selectableByValue(e){return this.walker().find(t=>t.use(_).value===e)?.use(_)}deselectOthers(e){this.walker().each(t=>{t!==e&&t.use(_).surgicallyDeselect()})}selectedTextValue(){return this.options().multiple?Array.from(this.state).map(e=>this.convertValueStringToElementText(e)).join(", "):this.convertValueStringToElementText(this.state)}convertValueStringToElementText(e){let t=this.findByValue(e);return t?t.selectedLabel||t.label||t.value:e}findByValue(e){return this.selecteds().find(t=>t.value===e)}walker(){return M(this.el,(e,{skip:t,reject:s})=>{if(e[this.constructor.name]&&e!==this.el)return s();if(!e[this.groupOfType.name]||e.mixins.get(this.groupOfType.name).ungrouped)return t()})}},_=class extends k{boot({options:e}){this.groupedByType=z,e({ungrouped:!1,togglable:!1,value:void 0,label:void 0,selectedLabel:void 0,selectedInitially:!1,dataAttr:"data-selected",ariaAttr:"aria-selected"}),this.ungrouped=this.options().ungrouped,this.value=this.options().value===void 0?this.el.value:this.options().value,this.value=this.value+"",this.label=this.options().label,this.selectedLabel=this.options().selectedLabel;let t=this.options().selectedInitially;this.onSelects=[],this.onUnselects=[],this.onChanges=[];let s=()=>{this.group()&&this.group().hasValue(this.value)&&(t=!0),this.multiple=this.hasGroup()?this.group().options().multiple:!1,this.toggleable=this.options().toggleable||this.multiple,t?this.select(!0):(this.state=t,this.surgicallyDeselect(!0))};s(),!this.hasGroup()&&!this.el.isConnected&&queueMicrotask(()=>{this.hasGroup()&&s()})}mount(){this.el.hasAttribute(this.options().ariaAttr)||c(this.el,this.options().ariaAttr,"false")}onInitAndChange(e){e(),this.onChanges.push(e)}onChange(e){this.onChanges.push(e)}onSelect(e){this.onSelects.push(e)}onUnselect(e){this.onUnselects.push(e)}setState(e){e?this.select():this.deselect()}getState(){return this.state}press(){this.toggleable?this.toggle():this.select()}trigger(){this.toggleable?this.toggle():this.select()}toggle(){this.isSelected()?this.deselect():this.select()}isSelected(){return this.state}select(e=!1){let t=!this.isSelected();this.toggleable||this.group()?.deselectOthers(this.el),this.state=!0,c(this.el,this.options().ariaAttr,"true"),c(this.el,this.options().dataAttr,""),t&&(e||(this.onSelects.forEach(s=>
125s()),this.onChanges.forEach(s=>s())),this.group()?.changed(this,e))}surgicallySelect(){let e=!this.isSelected();this.state=!0,c(this.el,this.options().ariaAttr,"true"),c(this.el,this.options().dataAttr,""),e&&(this.onSelects.forEach(t=>t()),this.onChanges.forEach(t=>t()))}deselect(e=!0){let t=this.isSelected();this.state=!1,c(this.el,this.options().ariaAttr,"false"),w(this.el,this.options().dataAttr),t&&(this.onUnselects.forEach(s=>s()),this.onChanges.forEach(s=>s()),e&&this.group()?.changed(this))}surgicallyDeselect(e=!1){let t=this.isSelected();this.state=!1,c(this.el,this.options().ariaAttr,"false"),w(this.el,this.options().dataAttr),t&&!e&&(this.onUnselects.forEach(s=>s()),this.onChanges.forEach(s=>s()))}getValue(){return this.value}getLabel(){return this.label}getSelectedLabel(){return this.selectedLabel}};var B=class extends k{boot({options:e}){e({name:void 0,value:void 0,includeWhenEmpty:!0,shouldUpdateValue:!0}),this.name=this.options().name,this.value=this.options().value===void 0?this.el.value:this.options().value,this.state=!1,this.observer=new MutationObserver(()=>{this.renderHiddenInputs()}),this.observer.observe(this.el,{childList:!0})}mount(){this.renderHiddenInputs()}update(e){this.options().shouldUpdateValue?this.value=e:this.state=!!e,this.renderHiddenInputs()}valueIsEmpty(){return this.value===void 0||this.value===null||this.value===""}renderHiddenInputs(){if(this.observer.disconnect(),!this.name)return;let e=this.el.children,t=[];for(let o=0;o<e.length;o++){let n=e[o];n.hasAttribute("data-flux-hidden")&&t.push(n)}t.forEach(o=>o.remove());let s;this.options().shouldUpdateValue?s=!this.valueIsEmpty()||this.options().includeWhenEmpty?this.generateInputs(this.name,this.value):[]:s=this.state||this.options().includeWhenEmpty?this.generateInputs(this.name,this.value):[],s.forEach(o=>{this.el.append(o)}),this.observer.observe(this.el,{childList:!0})}generateInputs(e,t,s=[]){if(this.isObjectOrArray(t))for(let o in t)s=s.concat(this.generateInputs(`${e}[${o}]`,t[o]));else{let o=document.createElement("input");return o.setAttribute("type","hidden"),o.setAttribute("name",e),o.setAttribute("value",t===null?"":""+t),o.setAttribute("data-flux-hidden",""),o.setAttribute("data-appended",""),[o]}return s}isObjectOrArray(e){return typeof e=="object"&&e!==null}submitEnclosingForm(){let e=this.getAssociatedForm();e&&e.requestSubmit()}getAssociatedForm(){let e=this.el.getAttribute("form");return e?document.getElementById(e)||null:this.el.closest("form")}};var ti=class i extends N{boot(){this._disableable=new T(this);let e=[];this._disableable.onInitAndChange(t=>{t?this.walker().each(s=>{s.hasAttribute("disabled")||(s.setAttribute("disabled",""),e.push(()=>s.removeAttribute("disabled")))}):(e.forEach(s=>s()),e=[])}),this._selectable=new z(this,{multiple:!0}),this._controllable=new P(this,{disabled:this._disabled,bubbles:!0}),this.walker().each(t=>{t.addEventListener("input",s=>s.stopPropagation()),t.addEventListener("change",s=>s.stopPropagation())}),this._submittable=new B(this,{name:this.getAttribute("name"),value:this.getAttribute("value"),includeWhenEmpty:!1}),this._controllable.initial(t=>t&&this._selectable.setState(t)),this._controllable.getter(()=>this._selectable.getState()),this._detangled=D(),this._controllable.setter(this._detangled(t=>{this._selectable.setState(t)})),this._selectable.onChange(this._detangled(()=>{this._controllable.dispatch()})),this._selectable.onInitAndChange(()=>{this._submittable.update(this._selectable.getState())}),c(this,"role","group"),queueMicrotask(()=>{this._submittable.update(this._selectable.getState())})}initCheckAll(e){let t=D();e._selectable.onChange(t(()=>{e.indeterminate?(this.selectAll(),e.checked=!0,e.indeterminate=!1):e.checked?(this.selectAll(),e.checked=!0,e.indeterminate=!1):(this.deselectAll(),e.checked=!1,e.indeterminate=!1)}));let s=()=>{this.allAreSelected()?(e.indeterminate=!1,e._selectable.select()):this.noneAreSelected()?(e.indeterminate=!1,e._selectable.deselect()):e.indeterminate=!0};this._selectable.onChange(t(()=>{s()})),s()}selectAll(){this.walker({checkable:!0}).filter(e=>!e.use(_).isSelected()).map(e=>e.use(_).select())}deselectAll(){this.walker({checkable:!0}).filter(e=>e.use(_).isSelected()).map(e=>e.use(_).deselect())}allAreSelected(){let e=this.walker({checkable:!0}).filter(t=>!0);return e.length>0&&this.walker({checkable:!0}).filter(t=>t.use(_).isSelected()).length===e.length}noneAreSelected(){return this.walker({checkable:!0}).filter(e=>e.use(_).isSelected()).length===0}walker({checkable:e}={}){return M(this,(t,{skip:s,reject:o})=>{if(t instanceof i)return o();if(t.localName!=="ui-checkbox"||e&&(t.disabled||t.use(_).ungrouped))return s()})}},ii=class extends N{boot(){let e=this;this.isIndeterminate=!1,this._disableable=new T(this),this.hasAttribute("all")?(this._selectable=new _(e,{ungrouped:!0,toggleable:!0,value:this.hasAttribute("value")?this.getAttribute("value"):Math.random().toString(36).substring(2,10),label:this.hasAttribute("label")?this.getAttribute("label"):null,selectedInitially:this.hasAttribute("checked"),dataAttr:"data-checked",ariaAttr:"aria-checked"}),queueMicrotask(()=>{this.closest("ui-checkbox-group")?.initCheckAll(this)})):(this._selectable=new _(e,{toggleable:!0,dataAttr:"data-checked",ariaAttr:"aria-checked",value:this.hasAttribute("value")?this.getAttribute("value"):Math.random().toString(36).substring(2,10),label:this.hasAttribute("label")?this.getAttribute("label"):null,selectedInitially:this.hasAttribute("checked")}),this._submittable=new B(this,{name:this.getAttribute("name"),value:this.getAttribute("value")??"on",includeWhenEmpty:!1,shouldUpdateValue:!1}),this._selectable.onChange(()=>{this.indeterminate&&(this.indeterminate=!1)}),this._selectable.onInitAndChange(()=>{this._submittable.update(this._selectable.isSelected())}),queueMicrotask(()=>{this._submittable.update(this._selectable.isSelected())})),this._detangled=D(),this._selectable.onChange(this._detangled(()=>{this.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))})),c(e,"role","checkbox"),this._disableable.onInitAndChange(t=>{t?w(e,"tabindex","0"):c(e,"tabindex","0")}),p(e,"click",this._disableable.disabled(t=>{t.preventDefault(),t.stopPropagation()}),{capture:!0}),p(e,"click",this._disableable.enabled(t=>{this._selectable.press()})),p(e,"keydown",this._disableable.enabled(t=>{t.key==="Enter"&&this.closest("form")?.requestSubmit()})),p(e,"keydown",this._disableable.enabled(t=>{t.key===" "&&(t.preventDefault(),t.stopPropagation())})),p(e,"keyup",this._disableable.enabled(t=>{t.key===" "&&(this._selectable.press(),t.preventDefault(),t.stopPropagation())})),Do(e)}get value(){return this._selectable?.getValue()}set value(e){this._selectable&&(this._selectable.value=e+"",this._submittable&&(this._submittable.value=e+""))}get checked(){return this._selectable.isSelected()}set checked(e){let t=this.closest("ui-checkbox-group")?._detangled||(s=>s);this._detangled(t(()=>{e?this._selectable.select():this._selectable.deselect()}
125))()}get indeterminate(){return this.isIndeterminate}set indeterminate(e){this.isIndeterminate=!!e,this.isIndeterminate?c(this,"data-indeterminate",""):w(this,"data-indeterminate")}};y("checkbox-group",ti);y("checkbox",ii);function Do(i){i.closest("label")?.addEventListener("click",e=>{i.contains(e.target)||i._selectable.press()})}var oe=new Map,j=class extends k{boot({options:e}){e({triggers:[],scope:null});let t=this.options().scope||"global";c(this.el,"popover","manual"),this.triggers=this.options().triggers,this.onChanges=[],this.state=!1,p(this.el,"beforetoggle",s=>{let o=this.state;if(this.state=s.newState==="open",this.state){Mo(this.el,t);let n=new AbortController,r=document.activeElement,u=[...this.triggers,r];setTimeout(()=>{Io(this.el,u,n),Ro(this.el,u,n),No(this.el,u,n)}),this.el.addEventListener("beforetoggle",l=>{l.newState==="closed"&&(n.abort(),r?.focus())},{signal:n.signal})}o!==this.state&&this.onChanges.forEach(n=>n(this.state,o))}),p(this.el,"toggle",s=>{if(s.newState==="open")oe.has(t)||oe.set(t,new Set),oe.get(t).add(this.el);else if(s.newState==="closed"){if(!oe.has(t))return;oe.get(t).delete(this.el),oe.get(t).size===0&&oe.delete(t)}})}onChange(e){this.onChanges.push(e)}setState(e){e?this.show():this.hide()}getState(){return this.state}toggle(){this.el.isConnected&&this.el.togglePopover()}show(){this.el.isConnected&&this.el.showPopover()}hide(){this.el.isConnected&&this.el.hidePopover()}};function Mo(i,e){oe.has(e)&&oe.get(e).forEach(t=>{i.contains(t)||t.contains(i)||t.hidePopover()})}function Io(i,e,t){document.addEventListener("click",s=>{i.contains(s.target)||e.includes(s.target)||i.hidePopover()},{signal:t.signal})}function Ro(i,e,t){document.addEventListener("focusin",s=>{i.contains(s.target)||e.includes(s.target)||(t.abort(),i.hidePopover())},{capture:!0,signal:t.signal})}function No(i,e,t){document.addEventListener("keydown",s=>{s.key==="Escape"&&i.hidePopover()},{signal:t.signal})}var ce=Math.min,W=Math.max,Ge=Math.round,Xe=Math.floor,G=i=>({x:i,y:i}),Fo={left:"right",right:"left",bottom:"top",top:"bottom"},Ho={start:"end",end:"start"};function si(i,e,t){return W(i,ce(e,t))}function Me(i,e){return typeof i=="function"?i(e):i}function ne(i){return i.split("-")[0]}function Ie(i){return i.split("-")[1]}function oi(i){return i==="x"?"y":"x"}function ni(i){return i==="y"?"height":"width"}function he(i){return["top","bottom"].includes(ne(i))?"y":"x"}function ri(i){return oi(he(i))}function ms(i,e,t){t===void 0&&(t=!1);let s=Ie(i),o=ri(i),n=ni(o),r=o==="x"?s===(t?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(r=Ke(r)),[r,Ke(r)]}function gs(i){let e=Ke(i);return[kt(i),e,kt(e)]}function kt(i){return i.replace(/start|end/g,e=>Ho[e])}function Wo(i,e,t){let s=["left","right"],o=["right","left"],n=["top","bottom"],r=["bottom","top"];switch(i){case"top":case"bottom":return t?e?o:s:e?s:o;case"left":case"right":return e?n:r;default:return[]}}function vs(i,e,t,s){let o=Ie(i),n=Wo(ne(i),t==="start",s);return o&&(n=n.map(r=>r+"-"+o),e&&(n=n.concat(n.map(kt)))),n}function Ke(i){return i.replace(/left|right|bottom|top/g,e=>Fo[e])}function Vo(i){return{top:0,right:0,bottom:0,left:0,...i}}function ws(i){return typeof i!="number"?Vo(i):{top:i,right:i,bottom:i,left:i}}function we(i){let{x:e,y:t,width:s,height:o}=i;return{width:s,height:o,top:t,left:e,right:e+s,bottom:t+o,x:e,y:t}}function ys(i,e,t){let{reference:s,floating:o}=i,n=he(e),r=ri(e),u=ni(r),l=ne(e),a=n==="y",d=s.x+s.width/2-o.width/2,f=s.y+s.height/2-o.height/2,m=s[u]/2-o[u]/2,g;switch(l){case"top":g={x:d,y:s.y-o.height};break;case"bottom":g={x:d,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:f};break;case"left":g={x:s.x-o.width,y:f};break;default:g={x:s.x,y:s.y}}switch(Ie(e)){case"start":g[r]-=m*(t&&a?-1:1);break;case"end":g[r]+=m*(t&&a?-1:1);break}return g}var As=async(i,e,t)=>{let{placement:s="bottom",strategy:o="absolute",middleware:n=[],platform:r}=t,u=n.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(e)),a=await r.getElementRects({reference:i,floating:e,strategy:o}),{x:d,y:f}=ys(a,s,l),m=s,g={},h=0;for(let b=0;b<u.length;b++){let{name:v,fn:A}=u[b],{x:E,y:S,data:L,reset:O}=await A({x:d,y:f,initialPlacement:s,placement:m,strategy:o,middlewareData:g,rects:a,platform:r,elements:{reference:i,floating:e}});d=E??d,f=S??f,g={...g,[v]:{...g[v],...L}},O&&h<=50&&(h++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(a=O.rects===!0?await r.getElementRects({reference:i,floating:e,strategy:o}):O.rects),{x:d,y:f}=ys(a,m,l)),b=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:g}};async function Ct(i,e){var t;e===void 0&&(e={});let{x:s,y:o,platform:n,rects:r,elements:u,strategy:l}=i,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:g=0}=Me(e,i),h=ws(g),v=u[m?f==="floating"?"reference":"floating":f],A=we(await n.getClippingRect
vendor: 6,585 bytes, line 125
125({element:(t=await(n.isElement==null?void 0:n.isElement(v)))==null||t?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(u.floating)),boundary:a,rootBoundary:d,strategy:l})),E=f==="floating"?{x:s,y:o,width:r.floating.width,height:r.floating.height}:r.reference,S=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u.floating)),L=await(n.isElement==null?void 0:n.isElement(S))?await(n.getScale==null?void 0:n.getScale(S))||{x:1,y:1}:{x:1,y:1},O=we(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:E,offsetParent:S,strategy:l}):E);return{top:(A.top-O.top+h.top)/L.y,bottom:(O.bottom-A.bottom+h.bottom)/L.y,left:(A.left-O.left+h.left)/L.x,right:(O.right-A.right+h.right)/L.x}}var xs=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(e){var t,s;let{placement:o,middlewareData:n,rects:r,initialPlacement:u,platform:l,elements:a}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:b=!0,...v}=Me(i,e);if((t=n.arrow)!=null&&t.alignmentOffset)return{};let A=ne(o),E=he(u),S=ne(u)===u,L=await(l.isRTL==null?void 0:l.isRTL(a.floating)),O=m||(S||!b?[Ke(u)]:gs(u)),I=h!=="none";!m&&I&&O.push(...vs(u,b,h,L));let $=[u,...O],Z=await Ct(e,v),q=[],le=((s=n.flip)==null?void 0:s.overflows)||[];if(d&&q.push(Z[A]),f){let de=ms(o,r,L);q.push(Z[de[0]],Z[de[1]])}if(le=[...le,{placement:o,overflows:q}],!q.every(de=>de<=0)){var He,We;let de=(((He=n.flip)==null?void 0:He.index)||0)+1,ji=$[de];if(ji)return{data:{index:de,overflows:le},reset:{placement:ji}};let qe=(We=le.filter(_e=>_e.overflows[0]<=0).sort((_e,ae)=>_e.overflows[1]-ae.overflows[1])[0])==null?void 0:We.placement;if(!qe)switch(g){case"bestFit":{var Ve;let _e=(Ve=le.filter(ae=>{if(I){let ue=he(ae.placement);return ue===E||ue==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ue=>ue>0).reduce((ue,Xs)=>ue+Xs,0)]).sort((ae,ue)=>ae[1]-ue[1])[0])==null?void 0:Ve[0];_e&&(qe=_e);break}case"initialPlacement":qe=u;break}if(o!==qe)return{reset:{placement:qe}}}return{}}}};async function qo(i,e){let{placement:t,platform:s,elements:o}=i,n=await(s.isRTL==null?void 0:s.isRTL(o.floating)),r=ne(t),u=Ie(t),l=he(t)==="y",a=["left","top"].includes(r)?-1:1,d=n&&l?-1:1,f=Me(e,i),{mainAxis:m,crossAxis:g,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&typeof h=="number"&&(g=u==="end"?h*-1:h),l?{x:g*d,y:m*a}:{x:m*a,y:g*d}}var Es=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(e){var t,s;let{x:o,y:n,placement:r,middlewareData:u}=e,l=await qo(e,i);return r===((t=u.offset)==null?void 0:t.placement)&&(s=u.arrow)!=null&&s.alignmentOffset?{}:{x:o+l.x,y:n+l.y,data:{...l,placement:r}}}}},Ss=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(e){let{x:t,y:s,placement:o}=e,{mainAxis:n=!0,crossAxis:r=!1,limiter:u={fn:v=>{let{x:A,y:E}=v;return{x:A,y:E}}},...l}=Me(i,e),a={x:t,y:s},d=await Ct(e,l),f=he(ne(o)),m=oi(f),g=a[m],h=a[f];if(n){let v=m==="y"?"top":"left",A=m==="y"?"bottom":"right",E=g+d[v],S=g-d[A];g=si(E,g,S)}if(r){let v=f==="y"?"top":"left",A=f==="y"?"bottom":"right",E=h+d[v],S=h-d[A];h=si(E,h,S)}let b=u.fn({...e,[m]:g,[f]:h});return{...b,data:{x:b.x-t,y:b.y-s,enabled:{[m]:n,[f]:r}}}}}};var _s=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(e){var t,s;let{placement:o,rects:n,platform:r,elements:u}=e,{apply:l=()=>{},...a}=Me(i,e),d=await Ct(e,a),f=ne(o),m=Ie(o),g=he(o)==="y",{width:h,height:b}=n.floating,v,A;f==="top"||f==="bottom"?(v=f,A=m===(await(r.isRTL==null?void 0:r.isRTL(u.floating))?"start":"end")?"left":"right"):(A=f,v=m==="end"?"top":"bottom");let E=b-d.top-d.bottom,S=h-d.left-d.right,L=ce(b-d[v],E),O=ce(h-d[A],S),I=!e.middlewareData.shift,$=L,Z=O;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(Z=S),(s=e.middlewareData.shift)!=null&&s.enabled.y&&($=E),I&&!m){let le=W(d.left,0),He=W(d.right,0),We=W(d.top,0),Ve=W(d.bottom,0);g?Z=h-2*(le!==0||He!==0?le+He:W(d.left,d.right)):$=b-2*(We!==0||Ve!==0?We+Ve:W(d.top,d.bottom))}await l({...e,availableWidth:Z,availableHeight:$});let q=await r.getDimensions(u.floating);return h!==q.width||b!==q.height?{reset:{rects:!0}}:{}}}};function Tt(){return typeof window<"u"}function ye(i){return Cs(i)?(i.nodeName||"").toLowerCase():"#document"}function V(i){var e;return(i==null||(e=i.ownerDocument)==null?void 0:e.defaultView)||window}function X(i){var e;return(e=(Cs(i)?i.ownerDocument:i.document)||window.document)==null?void 0:e.documentElement}function Cs(i){return Tt()?i instanceof Node||i instanceof V(i).Node:!1}function U(i){return Tt()?i instanceof Element||i instanceof V(i).Element:!1}function J(i){return Tt()?i instanceof HTMLElement||i instanceof V(i).HTMLElement:!1}function ks(i){return!Tt()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof V(i).ShadowRoot}function Ne(i){let{overflow:e,overflowX:t,overflowY:s,display:o}=Y(i);return/auto|scroll|overlay|hidden|clip/.test(e+s+t)&&!["inline","contents"].includes(o)}function Ts(i){return["table","td","th"].includes(ye(i))}function Je(i){return[":popover-open",":modal"].some(e=>{try{return i.matches(e)}catch{return!1}})}function Ot(i){let e=Pt(),t=U(i)?Y(i):i;return["transform","translate","scale","rotate","perspective"].some(s=>t[s]?t[s]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(s=>(t.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(t.contain||"").includes(s))}function Os(i){let e=re(i);for(;J(e)&&!Ae(e);){if(Ot(e))return e;if(Je(e))return null;e=re(e)}return null}function Pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ae(i){return["html","body","#document"].includes(ye(i))}function Y(i){return V(i).getComputedStyle(i)}function Qe(i){return U(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function re(i){if(ye(i)==="html")return i;let e=i.assignedSlot||i.parentNode||ks(i)&&i.host||X(i);return ks(e)?e.host:e}function Ps(i){let e=re(i);return Ae(e)?i.ownerDocument?i.ownerDocument.body:i.body:J(e)&&Ne(e)?e:Ps(e)}function Re(i,e,t){var s;e===void 0&&(e=[]),t===void 0&&(t=!0);let o=Ps(i),n=o===((s=i.ownerDocument)==null?void 0:s.body),r=V(o);if(n){let u=Lt(r);
vendor: 6,378 bytes, line 125
125return e.concat(r,r.visualViewport||[],Ne(o)?o:[],u&&t?Re(u):[])}return e.concat(o,Re(o,[],t))}function Lt(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Ms(i){let e=Y(i),t=parseFloat(e.width)||0,s=parseFloat(e.height)||0,o=J(i),n=o?i.offsetWidth:t,r=o?i.offsetHeight:s,u=Ge(t)!==n||Ge(s)!==r;return u&&(t=n,s=r),{width:t,height:s,$:u}}function ai(i){return U(i)?i:i.contextElement}function Fe(i){let e=ai(i);if(!J(e))return G(1);let t=e.getBoundingClientRect(),{width:s,height:o,$:n}=Ms(e),r=(n?Ge(t.width):t.width)/s,u=(n?Ge(t.height):t.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!u||!Number.isFinite(u))&&(u=1),{x:r,y:u}}var Bo=G(0);function Is(i){let e=V(i);return!Pt()||!e.visualViewport?Bo:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function $o(i,e,t){return e===void 0&&(e=!1),!t||e&&t!==V(i)?!1:e}function xe(i,e,t,s){e===void 0&&(e=!1),t===void 0&&(t=!1);let o=i.getBoundingClientRect(),n=ai(i),r=G(1);e&&(s?U(s)&&(r=Fe(s)):r=Fe(i));let u=$o(n,t,s)?Is(n):G(0),l=(o.left+u.x)/r.x,a=(o.top+u.y)/r.y,d=o.width/r.x,f=o.height/r.y;if(n){let m=V(n),g=s&&U(s)?V(s):s,h=m,b=Lt(h);for(;b&&s&&g!==h;){let v=Fe(b),A=b.getBoundingClientRect(),E=Y(b),S=A.left+(b.clientLeft+parseFloat(E.paddingLeft))*v.x,L=A.top+(b.clientTop+parseFloat(E.paddingTop))*v.y;l*=v.x,a*=v.y,d*=v.x,f*=v.y,l+=S,a+=L,h=V(b),b=Lt(h)}}return we({width:d,height:f,x:l,y:a})}function ui(i,e){let t=Qe(i).scrollLeft;return e?e.left+t:xe(X(i)).left+t}function Rs(i,e,t){t===void 0&&(t=!1);let s=i.getBoundingClientRect(),o=s.left+e.scrollLeft-(t?0:ui(i,s)),n=s.top+e.scrollTop;return{x:o,y:n}}function zo(i){let{elements:e,rect:t,offsetParent:s,strategy:o}=i,n=o==="fixed",r=X(s),u=e?Je(e.floating):!1;if(s===r||u&&n)return t;let l={scrollLeft:0,scrollTop:0},a=G(1),d=G(0),f=J(s);if((f||!f&&!n)&&((ye(s)!=="body"||Ne(r))&&(l=Qe(s)),J(s))){let g=xe(s);a=Fe(s),d.x=g.x+s.clientLeft,d.y=g.y+s.clientTop}let m=r&&!f&&!n?Rs(r,l,!0):G(0);return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+d.x+m.x,y:t.y*a.y-l.scrollTop*a.y+d.y+m.y}}function jo(i){return Array.from(i.getClientRects())}function Uo(i){let e=X(i),t=Qe(i),s=i.ownerDocument.body,o=W(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),n=W(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight),r=-t.scrollLeft+ui(i),u=-t.scrollTop;return Y(s).direction==="rtl"&&(r+=W(e.clientWidth,s.clientWidth)-o),{width:o,height:n,x:r,y:u}}function Yo(i,e){let t=V(i),s=X(i),o=t.visualViewport,n=s.clientWidth,r=s.clientHeight,u=0,l=0;if(o){n=o.width,r=o.height;let a=Pt();(!a||a&&e==="fixed")&&(u=o.offsetLeft,l=o.offsetTop)}return{width:n,height:r,x:u,y:l}}function Ko(i,e){let t=xe(i,!0,e==="fixed"),s=t.top+i.clientTop,o=t.left+i.clientLeft,n=J(i)?Fe(i):G(1),r=i.clientWidth*n.x,u=i.clientHeight*n.y,l=o*n.x,a=s*n.y;return{width:r,height:u,x:l,y:a}}function Ls(i,e,t){let s;if(e==="viewport")s=Yo(i,t);else if(e==="document")s=Uo(X(i));else if(U(e))s=Ko(e,t);else{let o=Is(i);s={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return we(s)}function Ns(i,e){let t=re(i);return t===e||!U(t)||Ae(t)?!1:Y(t).position==="fixed"||Ns(t,e)}function Go(i,e){let t=e.get(i);if(t)return t;let s=Re(i,[],!1).filter(u=>U(u)&&ye(u)!=="body"),o=null,n=Y(i).position==="fixed",r=n?re(i):i;for(;U(r)&&!Ae(r);){let u=Y(r),l=Ot(r);!l&&u.position==="fixed"&&(o=null),(n?!l&&!o:!l&&u.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ne(r)&&!l&&Ns(i,r))?s=s.filter(d=>d!==r):o=u,r=re(r)}return e.set(i,s),s}function Xo(i){let{element:e,boundary:t,rootBoundary:s,strategy:o}=i,r=[...t==="clippingAncestors"?Je(e)?[]:Go(e,this._c):[].concat(t),s],u=r[0],l=r.reduce((a,d)=>{let f=Ls(e,d,o);return a.top=W(f.top,a.top),a.right=ce(f.right,a.right),a.bottom=ce(f.bottom,a.bottom),a.left=W(f.left,a.left),a},Ls(e,u,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Jo(i){let{width:e,height:t}=Ms(i);return{width:e,height:t}}function Qo(i,e,t){let s=J(e),o=X(e),n=t==="fixed",r=xe(i,!0,n,e),u={scrollLeft:0,scrollTop:0},l=G(0);if(s||!s&&!n)if((ye(e)!=="body"||Ne(o))&&(u=Qe(e)),s){let m=xe(e,!0,n,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else o&&(l.x=ui(o));let a=o&&!s&&!n?Rs(o,u):G(0),d=r.left+u.scrollLeft-l.x-a.x,f=r.top+u.scrollTop-l.y-a.y;return{x:d,y:f,width:r.width,height:r.height}}function li(i){return Y(i).position==="static"}function Ds(i,e){if(!J(i)||Y(i).position==="fixed")return null;if(e)return e(i);let t=i.offsetParent;return X(i)===t&&(t=t.ownerDocument.body),t}function Fs(i,e){let t=V(i);if(Je(i))return t;if(!J(i)){let o=re(i);for(;o&&!Ae(o);){if(U(o)&&!li(o))return o;o=re(o)}return t}let s=Ds(i,e);for(;s&&Ts(s)&&li(s);)s=Ds(s,e);return s&&Ae(s)&&li(s)&&!Ot(s)?t:s||Os(i)||t}var Zo=async function(i){let e=this.getOffsetParent||Fs,t=this.getDimensions,s=await t(i.floating);return{reference:Qo(i.reference,await e(i.floating),i.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function en(i){return Y(i).direction==="rtl"}var tn={convertOffsetParentRelativeRectToViewportRelativeRect:zo,getDocumentElement:X,getClippingRect:Xo,getOffsetParent:Fs,getElementRects:Zo,getClientRects:jo,getDimensions:Jo,getScale:Fe,isElement:U,isRTL:en};function Hs(i,e){return i.x===e.x&&i.y===e.y&&i.width===e.width&&i.height===e.height}function sn(i,e){let t=null,s,o=X(i);function n(){var u;clearTimeout(s),(u=t)==null||u.disconnect(),t=null}function r(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),n();let a=i.getBoundingClientRect(),{left:d,top:f,width:m,height:g}=a;if(u||e(),!m||!g)return;let h=Xe(f),b=Xe(o.clientWidth-(d+m)),v=Xe(o.clientHeight-(f+g)),A=Xe(d),S={rootMargin:-h+"px "+-b+"px "+-v+"px "+-A+"px",threshold:W(0,ce(1,l))||1},L=!0;function O(I){let $=I[0].intersectionRatio;if($!==l){if(!L)return r();$?r(!1,$):s=setTimeout(()=>{r(!1,1e-7)},1e3)}$===1&&!Hs(a,i.getBoundingClientRect())&&r(),L=!1}try{t=new IntersectionObserver(O,{...S,root:o.ownerDocument})}catch{t=new IntersectionObserver(O,S)}t.observe(i)}return r(!0),n}function Ws(i,e,t,s){s===void 0&&(s={});let{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,a=ai(i),d=o||n?[...a?Re(a):[],...Re(e)]:[];d.forEach(A=>{o&&A.addEventListener("scroll",t,{passive:!0}),n&&A.addEventListener("resize",t)});let f=a&&u?sn(a,t):null,m=-1,g=null;
125r&&(g=new ResizeObserver(A=>{let[E]=A;E&&E.target===a&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(e)})),t()}),a&&!l&&g.observe(a),g.observe(e));let h,b=l?xe(i):null;l&&v();function v(){let A=xe(i);b&&!Hs(b,A)&&t(),b=A,h=requestAnimationFrame(v)}return t(),()=>{var A;d.forEach(E=>{o&&E.removeEventListener("scroll",t),n&&E.removeEventListener("resize",t)}),f?.(),(A=g)==null||A.disconnect(),g=null,l&&cancelAnimationFrame(h)}}var Vs=Es;var qs=Ss,Bs=xs,$s=_s;var zs=(i,e,t)=>{let s=new Map,o={platform:tn,...t},n={...o.platform,_c:s};return As(i,e,{...o,platform:n})};var js=!(CSS.supports?.("selector(:popover-open)")??!1),K=class extends k{boot({options:e}){if(e({reference:null,auto:!0,position:"bottom start",gap:"5",offset:"0",matchWidth:!1,crossAxis:!1,scrollY:!0}),this.options().reference===null||this.options().position===null)return;let[t,s]=rn(this.el,{scrollY:this.options().scrollY}),o=on(this.el,this.options().reference,t,{position:this.options().position,gap:this.options().gap,offset:this.options().offset,matchWidth:this.options().matchWidth,crossAxis:this.options().crossAxis,scrollY:this.options().scrollY}),n=()=>{};this.reposition=(...r)=>{this.options().auto?n=Ws(this.options().reference,this.el,o):o(null,...r)},this.cleanup=()=>{n(),s()}}};function on(i,e,t,{position:s,offset:o,gap:n,matchWidth:r,crossAxis:u,scrollY:l}){let a=window.getComputedStyle(i).maxHeight;return a=a==="none"?null:parseFloat(a),(d,f,m)=>{zs(e,i,{strategy:js?"fixed":"absolute",placement:nn(s,i),middleware:[Vs({mainAxis:Number(n),alignmentAxis:Number(o)}),Bs(),qs({padding:5,crossAxis:u}),$s({padding:5,apply({rects:g,elements:h,availableHeight:b}){r&&Object.assign(h.floating.style,{width:`${g.reference.width}px`});let v=a;v===null&&(v=l?h.floating.scrollHeight:h.floating.offsetHeight),h.floating.style.maxHeight=b>v?"":`${b}px`}})]}).then(({x:g,y:h})=>{t(f||g,m||h)})}}function nn(i,e){let t=i.split(" ");switch(t[0]){case"start":t[0]=Ye(e)?"right":"left";break;case"end":t[0]=Ye(e)?"left":"right";break}return t.join("-")}function rn(i,{scrollY:e=!0}){let t=(l,a,d,f)=>{Object.assign(i.style,{position:js?"fixed":"absolute",overflowY:e?"auto":"hidden",left:`${l}px`,top:`${a}px`,right:"auto",bottom:"auto",width:d,maxHeight:f})},s,o,n,r,u=new MutationObserver(()=>t(s,o,n,r));return[(l,a)=>{s=l,o=a,n=i.style.width,r=i.style.maxHeight,u.disconnect(),t(s,o,n,r),u.observe(i,{attributeFilter:["style"]})},()=>{u.disconnect()}]}var ci=class extends x{boot(){let e=this.trigger(),t=this.overlay();if(e){if(!t)return console.warn("ui-dropdown: no [popover] overlay found",this)}else return console.warn("ui-dropdown: no trigger element found",this);if(this._disabled=this.hasAttribute("disabled"),this._controllable=new P(this),t._popoverable=new j(t),t._anchorable=new K(t,{reference:e,position:this.hasAttribute("position")?this.getAttribute("position"):void 0,gap:this.hasAttribute("gap")?this.getAttribute("gap"):void 0,offset:this.hasAttribute("offset")?this.getAttribute("offset"):void 0}),t._popoverable.onChange(()=>{t._popoverable.getState()?t._anchorable.reposition():t._anchorable.cleanup()}),!this.hasAttribute("hover")){let{lock:n,unlock:r}=se(t._popoverable.el);t._popoverable.onChange(()=>{t._popoverable.getState()?n():r()})}this._controllable.initial(n=>t._popoverable.setState(n)),this._controllable.getter(()=>t._popoverable.getState());let s=D();if(this._controllable.setter(n=>t._popoverable.setState(n)),t._popoverable.onChange(s(()=>this._controllable.dispatch())),this.hasAttribute("hover")){let n=()=>{};De(e,t,{gain(){t._popoverable.setState(!0),n=p(document,"scroll",()=>{t._popoverable.getState()&&(t._popoverable.setState(!1),n())}).off},lose(){t._popoverable.setState(!1),n()},focusable:!1})}p(e,"click",()=>t._popoverable.toggle()),t._popoverable.getState()?(c(this,"data-open",""),c(e,"data-open",""),c(t,"data-open","")):(w(this,"data-open"),w(e,"data-open"),w(t,"data-open")),t._popoverable.onChange(()=>{t._popoverable.getState()?(c(this,"data-open",""),c(e,"data-open",""),c(t,"data-open","")):(w(this,"data-open"),w(e,"data-open"),w(t,"data-open"))});let o=R(t,"dropdown");c(e,"aria-haspopup","true"),c(e,"aria-controls",o),c(e,"aria-expanded",t._popoverable.getState()?"true":"false"),t._popoverable.onChange(()=>{c(e,"aria-expanded",t._popoverable.getState()?"true":"false")}),t._popoverable.onChange(()=>{setTimeout(()=>t._popoverable.getState()?t.onPopoverShow?.():t.onPopoverHide?.())})}unmount(){if(this.overlay()?._popoverable?.getState()&&!this.hasAttribute("hover")){let{unlock:e}=se();e()}}trigger(){return this.querySelector("button,ui-button,a")}overlay(){return this.lastElementChild?.matches("[popover]")&&this.lastElementChild}};y("dropdown",ci);var hi=class extends x{boot(){this._controllable=new P(this),this._controllable.initial(e=>e!=null&&this.setValue(parseFloat(e))),this._controllable.getter(()=>this.currentValue),this._controllable.setter(e=>this.setValue(parseFloat(e))),c(this,"role","progressbar"),c(this,"aria-valuemin",0),this.currentValue===void 0&&this.setValue(this.hasAttribute("value")?parseFloat(this.getAttribute("value")):0),new MutationObserver(()=>this.updateVisual()).observe(this,{attributes:!0,attributeFilter:["max"]})}setValue(e){this.currentValue=e,this.updateVisual()}updateVisual(){let e=this.hasAttribute("max")?parseFloat(this.getAttribute("max")):100,t=Math.max(0,Math.min(100,this.currentValue/e*100));this.style.setProperty("--flux-progress",t),this.style.setProperty("--flux-progress-percentage",t+"%"),c(this,"aria-valuenow",this.currentValue),c(this,"aria-valuemax",e)}};y("progress",hi);var di=class extends x{boot(){let e=this.hasAttribute("label")?"label":"description",t=this.button(),s=this.overlay();if(t){if(!s)return}else return console.warn("ui-tooltip: no trigger element found",this);s._popoverable=new j(s,{scope:"tooltip"}),s._anchorable=new K(s,{reference:t,position:this.hasAttribute("position")?this.getAttribute("position"):void 0,gap:this.hasAttribute("gap")?this.getAttribute("gap"):void 0,offset:this.hasAttribute("offset")?this.getAttribute("offset"):void 0}),s._popoverable.onChange(()=>{s._popoverable.getState()?s._anchorable.reposition():s._anchorable.cleanup()}),this._disableable=new T(this);let o;this._disableable.onInitAndChange(a=>{o&&(o(),o=null),a||(o=De(this,s,{gain(){s._popoverable.setState(!0)},lose(){s._popoverable.setState(!1)},focusable:!0,useSafeArea:!1}).remove)}),this.onUnmount(()=>{o&&(o(),o=null)}),new MutationObserver(()=>{this.getAttribute("draggable")==="true"&&s._popoverable.setState(!1)}).observe(this,{attributeFilter:["draggable"]});let r=R(s,"tooltip"),u=this.hasAttribute("interactive"),l=this.hasAttribute("label")||t.textContent.trim()==="";
125u?(c(t,"aria-controls",r),c(t,"aria-expanded","false"),s._popoverable.onChange(()=>{s._popoverable.getState()?c(t,"aria-expanded","true"):c(t,"aria-expanded","false")})):(l?c(t,"aria-labelledby",r):c(t,"aria-describedby",r),c(s,"aria-hidden","true")),c(s,"role","tooltip")}button(){return this.firstElementChild}overlay(){return this.lastElementChild!==this.button()&&this.lastElementChild.tagName!=="TEMPLATE"&&this.lastElementChild}};y("tooltip",di);var C={STATE_CHANGED:"stateChanged",DESKTOP_COLLAPSED:"desktopCollapsed",DESKTOP_EXPANDED:"desktopExpanded",MOBILE_COLLAPSED:"mobileCollapsed",MOBILE_EXPANDED:"mobileExpanded",VIEWPORT_ENTER_MOBILE:"viewportEnterMobile",VIEWPORT_ENTER_DESKTOP:"viewportEnterDesktop"},fi=class extends x{boot(){if(this.config={breakpoint:this.hasAttribute("breakpoint")?this.getAttribute("breakpoint"):1024,collapsible:!1,persist:this.hasAttribute("persist")?!["false","none"].includes(this.getAttribute("persist")):!0,sticky:!!this.hasAttribute("sticky")},this.observable=new yt,this.state={active:!1,viewportDesktop:!0,viewportMobile:!1,collapsedMobile:!0,collapsedDesktop:!1},this.config.sticky&&this.setStickyPositionStyles(),this.hasAttribute("collapsible")){let s=this.getAttribute("collapsible");s==="true"?this.config.collapsible=!0:s==="false"?this.config.collapsible=!1:s==="mobile"&&(this.config.collapsible="mobile")}this.config.persist&&this.config.collapsible&&(this.state.collapsedDesktop=JSON.parse(localStorage.getItem("flux-sidebar-collapsed-desktop"))),this.removeAttribute("data-flux-sidebar-cloak"),this.observable.subscribe(C.VIEWPORT_ENTER_DESKTOP,()=>{let s=Xt(this,"transition","none");setTimeout(s),this.state.viewportDesktop=!0,this.state.viewportMobile=!1,this.observable.notify(C.STATE_CHANGED)}),this.observable.subscribe(C.VIEWPORT_ENTER_MOBILE,()=>{let s=Xt(this,"transition","none");setTimeout(s),this.state.viewportDesktop=!1,this.state.viewportMobile=!0,this.observable.notify(C.STATE_CHANGED)}),this.observable.subscribe(C.DESKTOP_COLLAPSED,()=>{this.state.collapsedDesktop=!0,this.observable.notify(C.STATE_CHANGED)}),this.observable.subscribe(C.DESKTOP_EXPANDED,()=>{this.state.collapsedDesktop=!1,this.observable.notify(C.STATE_CHANGED)}),this.observable.subscribe(C.MOBILE_COLLAPSED,()=>{this.state.collapsedMobile=!0,this.observable.notify(C.STATE_CHANGED)}),this.observable.subscribe(C.MOBILE_EXPANDED,()=>{this.state.collapsedMobile=!1,this.observable.notify(C.STATE_CHANGED)}),this.observable.subscribe(C.STATE_CHANGED,()=>{this.config.persist&&localStorage.setItem("flux-sidebar-collapsed-desktop",JSON.stringify(this.state.collapsedDesktop)),this.updateDataAttributes(this)});let e=new pi(this.observable,this.config);this.onUnmount(()=>e.disconnect());let t=()=>{this.state.viewportDesktop?this.state.collapsedDesktop?this.observable.notify(C.DESKTOP_EXPANDED):this.observable.notify(C.DESKTOP_COLLAPSED):this.state.collapsedMobile?this.observable.notify(C.MOBILE_EXPANDED):this.observable.notify(C.MOBILE_COLLAPSED)};document.addEventListener("flux-sidebar-toggle",t),this.onUnmount(()=>document.removeEventListener("flux-sidebar-toggle",t)),this.addEventListener("click",s=>{s.target===this&&this.state.collapsedDesktop&&this.observable.notify(C.DESKTOP_EXPANDED)}),this.addEventListener("mouseenter",s=>{this.state.active=!0,this.observable.notify(C.STATE_CHANGED)}),this.addEventListener("mouseleave",s=>{this.state.active=!1,this.observable.notify(C.STATE_CHANGED)}),this.addEventListener("focusin",s=>{this.state.active=!0,this.observable.notify(C.STATE_CHANGED)}),this.addEventListener("focusout",s=>{this.state.active=!1,this.observable.notify(C.STATE_CHANGED)})}setStickyPositionStyles(){let e=this.offsetTop,t=window.pageYOffset;t>0&&(window.scrollTo(window.scrollX,0),e=this.offsetTop,window.scrollTo(window.scrollX,t)),this.style.position="sticky",this.style.top=e+"px",this.style.maxHeight=`calc(100dvh - ${e}px)`}updateDataAttributes(e){let t=this.config.collapsible===!0;t&&(this.state.active?c(e,"data-flux-sidebar-active",""):ie(e,"data-flux-sidebar-active")),this.state.viewportDesktop?(ie(e,"data-flux-sidebar-on-mobile"),c(e,"data-flux-sidebar-on-desktop",""),ie(e,"data-flux-sidebar-collapsed-mobile"),this.state.collapsedDesktop?t&&c(e,"data-flux-sidebar-collapsed-desktop",""):ie(e,"data-flux-sidebar-collapsed-desktop")):(ie(e,"data-flux-sidebar-on-desktop"),c(e,"data-flux-sidebar-on-mobile",""),ie(e,"data-flux-sidebar-collapsed-desktop"),this.state.collapsedMobile?c(e,"data-flux-sidebar-collapsed-mobile",""):ie(e,"data-flux-sidebar-collapsed-mobile"))}},pi=class{constructor(e,{breakpoint:t}){this.observable=e,this.breakpoint=t,this.watchForViewportChanges()}watchForViewportChanges(){let e=typeof this.breakpoint=="number"?`${this.breakpoint}px`:this.breakpoint;this.viewport=matchMedia(`(min-width: ${e})`),this.onViewportChange=()=>{this.viewport.matches?this.observable.notify(C.VIEWPORT_ENTER_DESKTOP):this.observable.notify(C.VIEWPORT_ENTER_MOBILE)},this.onViewportChange(),this.viewport.addEventListener("change",this.onViewportChange)}disconnect(){this.viewport.removeEventListener("change",this.onViewportChange)}},bi=class extends x{mount(){let e=this.querySelector("button,ui-button");p(e||this,"click",()=>{this.dispatchEvent(new CustomEvent("flux-sidebar-toggle",{bubbles:!0}))}),queueMicrotask(()=>{let t=document.querySelector("ui-sidebar");t.updateDataAttributes(this),t.observable.subscribe(C.STATE_CHANGED,(
125)=>{t.updateDataAttributes(this)})})}};y("sidebar",fi);y("sidebar-toggle",bi);var mi=class extends x{boot(){c(this,"role","button"),this._disableable=new T(this),this._disableable.onInitAndChange(e=>{e?w(this,"tabindex","0"):c(this,"tabindex","0")}),this._buttonType=this.getAttribute("type")||"button"}mount(){p(this,"keydown",e=>{e.key==="Enter"&&(e.preventDefault(),this.disabled||this.click()),e.key===" "&&e.preventDefault()}),p(this,"keyup",e=>{e.key===" "&&(e.preventDefault(),e.stopPropagation(),this.disabled||this.click())}),p(this,"click",()=>{this.disabled||(this._buttonType==="submit"?this._handleSubmit():this._buttonType==="reset"&&this._handleReset())})}_handleSubmit(){let e=this.closest("form");e&&e.requestSubmit()}_handleReset(){let e=this.closest("form");e&&e.reset()}};y("button",mi);var Ee=class extends Q{groupOfType=F;boot({options:e}){e({wrap:!1,ensureTabbable:!0})}mount(){this.options().ensureTabbable&&this.ensureTabbable()}focusFirst(){let e;e=e||this.walker().find(t=>t.hasAttribute("autofocus")),e=e||this.walker().find(t=>t.getAttribute("tabindex")==="0"),e=e||this.walker().find(t=>t.getAttribute("tabindex")==="-1"),e=e||this.walker().find(t=>ds(t)),e?.focus()}focusPrev(){this.moveFocus(e=>this.options().wrap?this.walker().prevOrLast(e):this.walker().prev(e))}focusNext(){this.moveFocus(e=>this.options().wrap?this.walker().nextOrFirst(e):this.walker().next(e))}focusBySearch(e){let t=this.walker().find(s=>s.textContent.toLowerCase().trim().startsWith(e.toLowerCase()));t?.use(F).tabbable(),t?.use(F).focus()}moveFocus(e){let t=this.walker().find(o=>o.use(F).isTabbable());e(t)?.use(F).focus()}ensureTabbable(){this.walker().findOrFirst(e=>{e.use(F).isTabbable()})?.use(F).tabbable()}wipeTabbables(){this.walker().each(e=>{e.use(F).untabbable()})}untabbleOthers(e){this.walker().each(t=>{t!==e&&t.use(F).untabbable()})}walker(){return M(this.el,(e,{skip:t,reject:s})=>{if(e[this.constructor.name]&&e!==this.el)return s();if(!e[this.groupOfType.name])return t();if(e.hasAttribute("disabled"))return s()})}},F=class extends k{groupedByType=Ee;boot({options:e}){e({hover:!1,disableable:null,tabbable:!1,tabbableAttr:null})}mount(){let e=this.options().disableable;if(!e)throw"Focusable requires a Disableable instance...";this.el.hasAttribute("tabindex")||(this.options().tabbable?this.tabbable():this.untabbable()),this.pauseFocusListener=this.on("focus",e.enabled(()=>{this.focus(!1)})).pause,this.on("focus",e.enabled(()=>{ge()&&c(this.el,"data-focus","")})),this.on("blur",e.enabled(()=>{w(this.el,"data-focus")})),this.options().hover&&this.on("pointerenter",e.enabled(()=>{this.group()?.untabbleOthers(this.el),this.tabbable()})),this.options().hover&&this.on("pointerleave",e.enabled(t=>{this.untabbable()}))}focus(e=!0){this.group()?.untabbleOthers(this.el),this.tabbable(),e&&this.pauseFocusListener(()=>{this.el.focus({focusVisible:!1})})}tabbable(){c(this.el,"tabindex","0"),this.options().tabbableAttr&&c(this.el,this.options().tabbableAttr,"")}untabbable(){c(this.el,"tabindex","-1"),this.options().tabbableAttr&&w(this.el,this.options().tabbableAttr)}isTabbable(){return this.el.getAttribute("tabindex")==="0"}};var gi=class extends N{boot(){let e=this;this._disableable=new T(this),this._selectable=new _(e,{toggleable:!0,dataAttr:"data-checked",ariaAttr:"aria-checked",value:this.hasAttribute("value")?this.getAttribute("value"):null,label:this.hasAttribute("label")?this.getAttribute("label"):null,selectedInitially:this.hasAttribute("checked")}),this._submittable=new B(this,{name:this.getAttribute("name"),value:this.getAttribute("value")??"on",includeWhenEmpty:!1,shouldUpdateValue:!1}),this.value=this._selectable.getValue(),this._detangled=D(),this._selectable.onChange(this._detangled(()=>{this.dispatchEvent(new Event("input",{bubbles:!1,cancelable:!0})),this.dispatchEvent(new Event("change",{bubbles:!1,cancelable:!0}))})),c(e,"role","switch"),this._selectable.onInitAndChange(()=>{this._submittable.update(this._selectable.getState())}),this._disableable.onInitAndChange(t=>{t?w(e,"tabindex","0"):c(e,"tabindex","0")}),p(e,"click",this._disableable.disabled(t=>{t.preventDefault(),t.stopPropagation()}),{capture:!0}),p(e,"click",this._disableable.enabled(t=>{this._selectable.press()})),p(e,"keydown",this._disableable.enabled(t=>{t.key==="Enter"&&(this._selectable.press(),t.preventDefault(),t.stopPropagation())})),p(e,"keydown",this._disableable.enabled(t=>{t.key===" "&&(t.preventDefault(),t.stopPropagation())})),p(e,"keyup",this._disableable.enabled(t=>{t.key===" "&&(this._selectable.press(),t.preventDefault(),t.stopPropagation())})),ln(e)}get checked(){return this._selectable.isSelected()}set checked(e){this._detangled(()=>{e?this._selectable.select():this._selectable.deselect()})()}};function ln(i){i.closest("label")?.addEventListener("click",e=>{i.contains(e.target)||i.click()})}y("switch",gi);var vi=class extends x{mount(){let e=this.querySelector("button,ui-button");p(e,"click",()=>{At(this,s=>!!s._closeable)?._closeable?.close()})}};y("close",vi);var wi=class extends x{toasts=[];initiallyExpanded=!1;expanded=!1;mount(){this.initiallyExpanded=this.hasAttribute("expanded");let e=this.getAttribute("position")||"bottom right";this.verticalPosition=e.match(/\b(top|bottom)\b/)?.[0]||"bottom",this.horizontalPosition=e.match(/\b(left|start|center|right|end)\b/)?.[0]||"right",this.horizontalPosition==="left"?this.horizontalPosition="start":this.horizontalPosition==="right"&&(this.horizontalPosition="end"),c(this,"role","status")}showToast(e={}){let t=this.querySelector("ui-toast");if(!t)return console.warn("ui-toast-group: no ui-toast element found",this);this.matches(":popover-open")&&this.hidePopover(),this.showPopover();let s=Number(e.duration===void 0?5e3:e.duration),o=t.prepareToastTemplate(e),n=o.firstElementChild,r={timeout:null,el:o,height:null,contentEl:n,contentHeight:null},u=()=>{this.animateIn(r),this.updateList()},l=()=>{this.animateOut(r),this.updateList()};this.toasts.unshift(r),this.appendChild(o),u(),o.hideToast=l;let a=s!==0&&Gt(()=>{r.timeout=null,l()},s);a&&(r.timeout=a),o.destroyToast=()=>{r.timeout&&(r.timeout.cancel(),r.timeout=null);let d=this.toasts.indexOf(r);d>-1&&this.toasts.splice(d,1),o.remove(),this.toasts.length===0&&(this.expanded=!1),this.updateList()},o.addEventListener("mouseenter",()=>{this.pauseTimeouts(),this.initiallyExpanded||(this.expanded=!0,this.updateList())}),o.addEventListener("mouseleave",()=>{this.resumeTimeouts(),this.initiallyExpanded||(this.expanded=!1,this.updateList())}),o._closeable=new ve(o),o._closeable.onClose(()=>o.destroyToast())}pauseTimeouts(){for(let e of this.toasts)e.timeout?.pause()}resumeTimeouts(){for(let e of this.toasts)e.timeout?.resume()}animateIn(e){let o=1.5*((this.verticalPosition==="top"?"bottom":"top")==="top"?1:-1);e.contentEl.style.opacity=0,e.contentEl.style.transform=`translateY(${o}rem)`,e.el.style.zIndex=5001,e.contentEl.offsetHeight,e.contentHeight=e.contentEl.offsetHeight,e.height=e.el.offsetHeight,e.contentEl.style.opacity=100,e.contentEl.style.transform="translateY(0)"}animateOut(e){let s=.5*(this.verticalPosition==="top"?1:-1);e.contentEl.style.transform=`translateY(${s}rem)`,e.contentEl.style.opacity=0;let o=this.toasts.indexOf(e);o>-1&&this.toasts.splice(o,1);let n=()=>{e.el.remove(),this.toasts.length===0&&(this.expanded=!1)};e.contentEl.getAnimations().length?e.contentEl.addEventListener("transitionend",()=>{n()},{once:!0}):n()}updateList(){this.initiallyExpanded||this.expanded?this.expand():this.collapse()}expand(){let e=0;for(let t of this.toasts){let s=this.verticalPosition==="top"?1:-1;t.el.style.transform=`translateY(${s*e}px)`,t.el.style.opacity=100,t.contentEl.style.height=`${t.contentHeight}px`,t.contentEl.style.overflow="auto",e+=t.height}}collapse(){let e=0,s=this.toasts[0]?.contentHeight||0;for(let o of this.toasts){let n=3,r=0,l=10*(this.verticalPosition==="top"?1:-1)*e;o.el.style.zIndex=5e3-e,e>=n?(r=1-.05*(n-1),o.el.style.opacity=0):(r=1-.05*e,o.el.style.opacity=100),o.contentEl.style.height=`${s}px`,o.contentEl.style.overflow="hidden",o.el.style.transform=`scaleX(${r}) translateY(${l}px)`,e++}}},yi=class extends x{mount(){if(!this.closest("ui-toast-group")){c(this,"role","status");let e=t=>{t.key==="Escape"&&this.hideToast()};document.addEventListener("keydown",e),this.onUnmount(()=>document.removeEventListener("keydown",e)),this.defaultPosition=this.getAttribute("position")||"bottom end"}}showToast(e={}){let t=this.template().nextElementSibling;t&&t.destroyToast();let s=Number(e.duration===void 0?5e3:e.duration),o=e.dataset?.position??this.defaultPosition;e.dataset?.position!==void 0&&delete e.dataset.position,this.setAttribute("position",o);let n=this.prepareToastTemplate(e),r=()=>{this.showPopover(),n.classList.add("showing")},u=()=>{n._hiding=!0,n.classList.remove("showing"),n.getAnimations().length?n.addEventListener("transitionend",()=>{n.remove(),this.hidePopover()},{once:!0}):(n.remove(),this.hidePopover())};this.appendChild(n),r(),n.hideToast=u;let l=s!==0&&Gt(()=>{u()},s);n.destroyToast=()=>{l&&l.cancel(),n.remove(),this.hidePopover()},n.addEventListener("mouseenter",()=>{l&&l.pause()}),n.addEventListener("mouseleave",()=>{l&&l.resume()}),n._closeable=new ve(n),n._closeable.onClose(()=>n.destroyToast())}hideToast(){let e=this.template().nextElementSibling;e&&e.destroyToast()}template(){return this.querySelector("template")}prepareToastTemplate(e){let t=e.slots||{},s=e.dataset||{}
125,o=e.link||null,n=this.template();if(!n)return console.warn("ui-toast: no template element found",this);let r=n.content.cloneNode(!0).firstElementChild;return r.setAttribute("aria-atomic","true"),Object.entries(t).forEach(([u,l])=>{[null,void 0,!1].includes(l)||r.querySelectorAll(`slot[name="${u}"]`).forEach(a=>{a.replaceWith(document.createTextNode(l))})}),Object.entries(s).forEach(([u,l])=>{r.dataset[u]=l}),this.hydrateLinkTemplate(r,o),r.querySelectorAll("slot").forEach(u=>u.remove()),r}hydrateLinkTemplate(e,t){let s=e.querySelector('template[name="link"]');if(!s)return;if(!t){s.remove();return}let o=s.content.cloneNode(!0).firstElementChild;Object.entries(t).forEach(([n,r])=>{if(![null,void 0,!1].includes(r)&&n!=="text"){if(n==="navigate"&&r)return o.setAttribute("wire:navigate","");if(["href","target","rel","download"].includes(n)){if(n==="download"&&r===!0)return o.setAttribute(n,"");o.setAttribute(n,r)}}}),o.querySelectorAll('slot[name="text"]').forEach(n=>n.replaceWith(document.createTextNode(t.text||""))),s.replaceWith(o)}};y("toast-group",wi);y("toast",yi);var Ai=class i extends x{mount(){this.control=this.fieldWalker().find(e=>this.isControl(e)),this.control}associateLabelWithControl(e){e&&this.label&&(this.control=e,!this.control.hasAttribute("aria-labelledby")&&(c(this.elOrButton(this.control),"aria-labelledby",this.label.id),this.control&&!(this.control instanceof N)&&this.hasAttribute("disabled")&&this.control.setAttribute("disabled","")))}associateDescriptionWithControl(e){e&&this.description&&(this.control=e,!this.control.hasAttribute("aria-describedby")&&c(this.elOrButton(this.control),"aria-describedby",this.description.id))}associateLabel(e){this.label=e,p(e,"click",t=>{["a","button","ui-button"].includes(t.target.localName)||this.focusOrTogggle(this.control)}),this.control&&this.associateLabelWithControl(this.control)}associateDescription(e){this.description=e,this.control&&this.associateDescriptionWithControl(this.control)}fieldWalker(){return M(this,(e,{skip:t,reject:s})=>{if(e instanceof i&&e!==this||e.parentElement.localName==="ui-editor"&&e!==this)return s()})}isControl(e){return!!(e instanceof N||e.matches("input, textarea, select"))}focusOrTogggle(e){if(!e||e.disabled||e.hasAttribute("disabled"))return;e.localName==="input"&&["checkbox","radio"].includes(e.type)||["ui-switch","ui-radio","ui-checkbox"].includes(e.localName)?(e.click(),e.focus()):e.localName==="input"&&["file"].includes(e.type)?e.click():["ui-select","ui-date-picker","ui-time-picker","ui-otp","ui-color-picker"].includes(e.localName)?e.trigger()?.focus():["ui-editor"].includes(e.localName)?e.focus():["ui-composer"].includes(e.localName)?e.focusInput():e.focus()}elOrButton(e){return e instanceof x&&e.firstElementChild instanceof HTMLButtonElement?e.firstElementChild:e}},xi=class extends x{mount(){R(this,"label"),c(this,"aria-hidden","true"),this.closest("ui-field")?.associateLabel(this)}},Ei=class extends x{mount(){R(this,"description"),c(this,"aria-hidden","true"),this.closest("ui-field")?.associateDescription(this)}};y("field",Ai);y("label",xi);y("description",Ei);var Si=class extends x{mount(){let e=R(this,"legend"),t=this.closest("fieldset");t&&c(t,"aria-labelledby",e)}};y("legend",Si);var _i=class i extends N{boot(){this._disableable=new T(this),this._disableable.onInitAndChange(e=>{this.walker().each(t=>{t.disabled=e})}),this._selectable=new z(this),this._controllable=new P(this,{disabled:this._disabled,bubbles:!0}),this._focusable=new Ee(this,{wrap:!0}),this._submittable=new B(this,{name:this.getAttribute("name"),value:this._selectable.getState(),includeWhenEmpty:!1}),this._controllable.initial(e=>e&&this._selectable.setState(e)),this._controllable.getter(()=>this._selectable.getState()),this._detangled=D(),this._controllable.setter(this._detangled(e=>{this._selectable.setState(e)})),this._selectable.onChange(this._detangled(()=>{this._controllable.dispatch()})),this._selectable.onInitAndChange(()=>{this._submittable.update(this._selectable.getState())}),p(this,"keydown",e=>{["ArrowDown","ArrowRight"].includes(e.key)?(this._focusable.focusNext(),e.preventDefault(),e.stopPropagation()):["ArrowUp","ArrowLeft"].includes(e.ke
125y)&&(this._focusable.focusPrev(),e.preventDefault(),e.stopPropagation())}),c(this,"role","radiogroup"),queueMicrotask(()=>{this._submittable.update(this._selectable.getState())})}walker(){return M(this,(e,{skip:t,reject:s})=>{if(e instanceof i)return s();if(e.localName!=="ui-radio")return t()})}},ki=class extends N{boot(){let e=this;this._disableable=new T(this),this._selectable=new _(e,{value:this.hasAttribute("value")?this.getAttribute("value"):Math.random().toString(36).substring(2,10),label:this.hasAttribute("label")?this.getAttribute("label"):null,selectedInitially:this.hasAttribute("checked"),dataAttr:"data-checked",ariaAttr:"aria-checked"}),this._selectable.onChange(()=>{this._selectable.isSelected()&&this._focusable.focus(!1)}),this._disableable.onChange(t=>{t?this._focusable.untabbable():this._selectable.isSelected()&&this._focusable.tabbable()}),c(e,"role","radio"),this._focusable=new F(e,{disableable:this._disableable,tabbableAttr:"data-active"}),p(e,"click",this._disableable.disabled(t=>{t.preventDefault(),t.stopPropagation()}),{capture:!0}),p(e,"click",this._disableable.enabled(t=>{this._selectable.press()})),p(e,"keydown",this._disableable.enabled(t=>{t.key==="Enter"&&this.closest("form")?.requestSubmit()})),p(e,"keydown",this._disableable.enabled(t=>{t.key===" "&&(t.preventDefault(),t.stopPropagation())})),p(e,"keyup",this._disableable.enabled(t=>{t.key===" "&&(this._selectable.press(),t.preventDefault(),t.stopPropagation())})),an(e),p(e,"focus",t=>{ge()&&this._selectable.select()})}get value(){return this._selectable?.getValue()}set value(e){this._selectable&&(this._selectable.value=e+"")}get checked(){return this._selectable.isSelected()}set checked(e){(this.closest("ui-radio-group")?._detangled||(()=>{}))(()=>{e&&this._selectable.select()})()}};function an(i){i.closest("label")?.addEventListener("click",e=>{i.contains(e.target)||i.click()})}y("radio-group",_i);y("radio",ki);var Dt=class extends x{boot(){if(this.querySelectorAll("[data-appended]").forEach(e=>e.remove()),!this.querySelector("template")){let e=document.createElement("template");e.setAttribute("name","placeholder"),e.innerHTML="<span>"+this.innerHTML+"</span>",this.innerHTML="",this.appendChild(e)}if(!this.querySelector('template[name="options"]')){let e=document.createElement("template");e.setAttribute("name","options"),e.innerHTML="<div><slot></slot></div>",this.appendChild(e)}if(!this.querySelector('template[name="option"]')){let e=document.createElement("template");e.setAttribute("name","option"),e.innerHTML="<div><slot></slot></div>",this.appendChild(e)}this.templates={placeholder:this.querySelector('template[name="placeholder"]'),overflow:this.querySelector('template[name="overflow"]'),options:this.querySelector('template[name="options"]'),option:this.querySelector('template[name="option"]')},this.templates.options.elsByValue=new Map,this.max=this.templates.overflow?.getAttribute("max")?this.templates.overflow.getAttribute("max"):1/0,this.selecteds=new Map,this.picker=this.closest("ui-select,ui-pillbox"),this.multiple=this.picker.hasAttribute("multiple")}mount(){queueMicrotask(()=>{this.picker._selectable.onInitAndChange(()=>{this.render(!0)});let e=this.picker.list();e&&new MutationObserver(t=>{queueMicrotask(()=>this.render())}).observe(e,{childList:!0})})}render(e){if(this.multiple){let t=this.picker.value,s=Array.from(this.selecteds.keys()).filter(r=>!t.includes(r)),o=t.filter(r=>!this.selecteds.has(r));s.forEach(r=>this.selecteds.delete(r));let n=new Map;for(let r of o){let u=this.picker._selectable.findByValue(r);if(!u){if(e)return setTimeout(()=>this.render());throw`Could not find option for value "${r}"`}n.set(r,u)}n.forEach((r,u)=>this.selecteds.set(u,r)),this.templates.placeholder?.clearPlaceholder?.(),this.templates.overflow?.clearOverflow?.(),this.templates.options?.clearOptions?.(),this.selecteds.size>0?this.renderOptions({hasOverflowed:r=>{if(this.max==="auto"){let u=!1;if(this.renderOverflow(this.selecteds.size,this.selecteds.size-r),this.clientWidth<this.scrollWidth&&(u=!0),this.templates.overflow?.clearOverflow?.(),u)return!0}return r>parseInt(this.max)},renderOverflow:r=>{this.templates?.overflow?.getAttribute("mode")!=="append"&&this.templates.options?.clearOptions?.(),this.renderOverflow(this.selecteds.size,r)}}):this.renderPlaceholder()}else{let t=this.picker.value;if(Array.from(this.selecteds.keys()).includes(t))return;this.selecteds.clear();let s=this.picker._selectable.findByValue(t);if(s)this.selecteds.set(t,s);else if(!["",null,void 0].includes(t)){if(e)return setTimeout(()=>{this.render()});throw`Could not find option for value "${t}"`}this.templates.placeholder?.clearPlaceholder?.(),this.templates.option?.clearOption?.(),this.selecteds.size>0?this.renderOption():this.renderPlaceholder()}}renderOptions({hasOverflowed:e,renderOverflow:t}){let s=document.createElement("div");s.style.display="contents";let o=Ze(this.templates.options,{default:s});this.templates.options.after(o),this.templates.options.clearOptions=()=>{o.remove(),this.templates.options.clearOptions=()=>{}};let n=0,r=!1;for(let[l,a]of this.selecteds){let d=new DocumentFragment;d.append(...a.el.cloneNode(!0).childNodes);let f=Ze(this.templates.option,{text:a.getSelectedLabel()??a.getLabel(),default:a.getSelectedLabel()??d,value:l});if(f.setAttribute("data-value",l),f.setAttribute("data-appended",""),f.deselect=()=>a.deselect(),s.appendChild(f),n++,e(n)){r=!0,s.removeChild(f),n--;break}}let u=new DocumentFragment;
125u.append(...s.childNodes),s.replaceWith(u),r&&t(this.selecteds.size-n)}renderOption(){for(let[e,t]of this.selecteds){let s=new DocumentFragment;s.append(...t.el.cloneNode(!0).childNodes);let o=Ze(this.templates.option,{text:t.getSelectedLabel()??t.getLabel(),default:t.getSelectedLabel()??s,value:e});o.setAttribute("data-value",e),o.setAttribute("data-appended",e),o.deselect=()=>t.deselect(),this.templates.option.after(o),this.templates.option.clearOption=()=>{o.remove(),this.templates.option.clearOption=()=>{}}}}renderPlaceholder(){if(!this.templates.placeholder)return;let e=Ze(this.templates.placeholder);e.setAttribute("data-appended",""),this.templates.placeholder.after(e),this.templates.placeholder.clearPlaceholder=()=>{e.remove(),this.templates.placeholder.clearPlaceholder=()=>{}}}renderOverflow(e,t){if(!this.templates.overflow)return;let s=Ze(this.templates.overflow,{remainder:t,count:this.selecteds.size});s.setAttribute("data-appended",""),this.templates.overflow.after(s),this.templates.overflow.clearOverflow=()=>{s.remove(),this.templates.placeholder.clearOverflow=()=>{}}}},Mt=class extends x{boot(){this.addEventListener("click",e=>{e.stopPropagation();let t=this.closest("[data-value]")?.getAttribute("data-value");if(t===void 0)return;let s=this.closest("ui-pillbox")._selectable,o=s.selectableByValue(t);o?o.deselect():s.deselectByValue(t)})}};function Ze(i,e={}){let t=i.content.cloneNode(!0);return Object.entries(e).forEach(([s,o])=>{(s==="default"?t.querySelectorAll("slot:not([name])"):t.querySelectorAll(`slot[name="${s}"]`)).forEach(r=>r.replaceWith(typeof o=="string"?document.createTextNode(o):o))}),t.firstElementChild}var et=class extends Q{groupOfType=H;boot({options:e}){e({wrap:!1,filter:!1}),this.onChanges=[]}onChange(e){this.onChanges.push(e)}
125activated(e){this.onChanges.forEach(t=>t())}activateFirst(){this.filterAwareWalker().first()?.use(H).activate()}activateBySearch(e){this.filterAwareWalker().find(s=>s.textContent.toLowerCase().trim().startsWith(e.toLowerCase()))?.use(H).activate()}activateSelectedOrFirst(e){if(!e||(s=>s.matches("ui-option, ui-option-create")?getComputedStyle(s).display==="none":!1)(e)){this.filterAwareWalker().first()?.use(H).activate();return}e?.use(H).activate()}activateActiveOrFirst(){let e=this.getActive();if(!e){this.filterAwareWalker().first()?.use(H).activate();return}e?.use(H).activate()}activateActiveOrLast(){let e=this.getActive();if(!e){this.filterAwareWalker().last()?.use(H).activate();return}e?.use(H).activate()}activatePrev(){let e=this.getActive();if(!e){this.filterAwareWalker().last()?.use(H).activate();return}let t;this.options.wrap?t=this.filterAwareWalker().prevOrLast(e):t=this.filterAwareWalker().prev(e),t?.use(H).activate()}activateNext(){let e=this.getActive();if(!e){this.filterAwareWalker().first()?.use(H).activate();return}let t;this.options.wrap?t=this.filterAwareWalker().nextOrFirst(e):t=this.filterAwareWalker().next(e),t?.use(H).activate()}getActive(){return this.walker().find(e=>e.use(H).isActive())}clearActive(){this.getActive()?.use(H).deactivate()}filterAwareWalker(){let e=t=>t.matches("ui-option, ui-option-create")?getComputedStyle(t).display==="none":!1;return M(this.el,(t,{skip:s,reject:o})=>{if(t[this.constructor.name]&&t!==this.el)return o();if(!t[this.groupOfType.name])return s();if(t.hasAttribute("disabled")||e(t))return o()})}},H=class i extends k{groupedByType=et;mount(){this.el.addEventListener("mouseenter",()=>{this.activate()}),this.el.addEventListener("mouseleave",()=>{this.deactivate()})}activate(e=!1){this.group()&&this.group().walker().each(t=>t.use(i).deactivate(!1)),!(this.el.hasAttribute("disabled")&&!e)&&(c(this.el,"data-active",""),ge()&&this.el.scrollIntoView({block:"nearest"}),this.group()&&this.group().activated(this.el))}deactivate(e=!0){w(this.el,"data-active"),e&&this.group()&&this.group().activated(this.el)}isActive(){return this.el.hasAttribute("data-active")}};var tt=class extends Q{groupOfType=Se;boot({options:e}){e({}),this.onChanges=[],this.lastSearch=""}onChange(e){this.onChanges.push(e)}filter(e){e===""?this.walker().each(t=>{t.use(Se).unfilter()}):this.walker().each(t=>{this.matches(t,e)?t.use(Se).unfilter():t.use(Se).filter()}
125),this.lastSearch!==e&&this.onChanges.forEach(t=>t()),this.lastSearch=e}matches(e,t){return this.normalize(e.textContent).includes(this.normalize(t))}normalize(e){return e==null?"":e.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLowerCase().trim()}hasResults(){return this.walker().some(e=>!e.use(Se).isFiltered())}},Se=class extends k{groupedByType=tt;boot({options:e}){e({mirror:null,keep:!1}),this.onChanges=[]}filter(){this.options().keep||(c(this.el,"data-hidden",""),this.options().mirror&&c(this.options().mirror,"data-hidden",""))}unfilter(){this.options().keep||(w(this.el,"data-hidden"),this.options().mirror&&w(this.options().mirror,"data-hidden",""))}isFiltered(){return this.el.hasAttribute("data-hidden")}};var ot=class extends N{boot(){let e=this.list();this._controllable=new P(this,{bubbles:!0}),this._selectable=new z(e,{multiple:this.hasAttribute("multiple")}),this._submittable=new B(this,{name:this.getAttribute("name"),value:this._selectable.getState()}),this._controllable.initial(s=>s&&this._selectable.setState(s)),this._controllable.getter(()=>this._selectable.getState());let t=D();this._controllable.setter(t(s=>{this._selectable.setState(s)})),this._selectable.onChange(t(()=>{this._controllable.dispatch(),this.dispatchEvent(new CustomEvent("select",{bubbles:!1}))})),this._selectable.onInitAndChange(()=>{this._submittable.update(this._selectable.getState())})}mount(){this._disableable=new T(this),queueMicrotask(()=>{this._submittable.update(this._selectable.getState())});let e=this.input(),t=this.button(),s=this.list(),o=this.hasAttribute("multiple"),n=this.hasAttribute("autocomplete"),r=this.hasAttribute("autocomplete")&&this.getAttribute("autocomplete").trim().split(" ").includes("strict"),u=this.querySelector("ui-options")||this,l=un(u,"options",o);this._activatable=new et(u,{filter:"data-hidden"}),!e&&!t&&this._disableable.onInitAndChange(h=>{h?this.removeAttribute("tabindex"):this.setAttribute("tabindex","0")}),this.hasAttribute("filter")&&this.getAttribute("filter")!=="manual"&&(this._filterable=new tt(s),this._filterable.onChange(()=>{this._activatable.clearActive(),this._filterable.hasResults()&&this._activatable.activateFirst()}),this.addEventListener("open",()=>{this._filterable&&this._filterable.filter("")}),this.addEventListener("close",()=>{this._filterable&&requestAnimationFrame(()=>{this._filterable.filter("")})}));let a=this.querySelector("[popover]:not(ui-tooltip > [popover])"),d=a?.querySelector('input:not([type="hidden"])'),f=this.querySelector('input:not([type="hidden"])');f=a?.contains(f)?null:f;let m=this.querySelector("button,ui-button");if(m=a?.contains(m)?null:m,!(a||f))it(this,this._activatable),st(this,this,this._activatable),Ys(this,this._activatable,this._selectable);else if(!a&&f){let h=f;this._disableable.onInitAndChange(b=>{b?h&&c(h,"disabled",""):h&&w(h,"disabled")}),Ii(this,h,this._selectable,this._popoverable),Ys(h,this._activatable,this._selectable),Gs(n,r,this,h,this._selectable,this._popoverable,this._filterable),Mi(h),Di(h),this._filterable&&Li(s,h,this._filterable),Nt(h,this._activatable,this._selectable),it(h,this._activatable),st(this,h,this._activatable),It(this,this._activatable)}else if(a&&f){let h=f;c(h,"role","combobox"),c(h,"aria-controls",l);let b=a;this._popoverable=new j(b),this._anchorable=new K(b,{reference:h,matchWidth:!0,position:this.hasAttribute("position")?this.getAttribute("position"):void 0,gap:this.hasAttribute("gap")?this.getAttribute("gap"):void 0,offset:this.hasAttribute("offset")?this.getAttribute("offset"):void 0}),Gs(n,r,this,h,this._selectable,this._popoverable,this._filterable),this._disableable.onInitAndChange(v=>{v?h&&c(h,"disabled",""):h&&w(h,"disabled")}),this.querySelectorAll("button,ui-button").forEach(v=>{b.contains(v)||(c(v,"tabindex","-1"),c(v,"aria-controls",l),c(v,"aria-haspopup","listbox"),Rt(v,this._popoverable),p(v,"click",()=>{this._popoverable.toggle(),xt()||h.focus()}))}),Ii(this,h,this._selectable,this._popoverable),Ci(this,h,b,this._popoverable,this._anchorable),Ni(this,this._popoverable,[h]),Rt(h,this._popoverable),Mi(h),Di(h),this._filterable&&Li(s,h,this._filterable),Nt(h,this._activatable,this._selectable),dn(h,this._popoverable),Pi(h,this._popoverable,this._activatable,this._selectable),cn(h,this._popoverable),Oi(this,this._popoverable),it(h,this._activatable),st(this,h,this._activatable),It(this,this._activatable),Ti(this._popoverable,this._activatable,this._selectable),Ri(this,this._selectable,this._popoverable,o)}else if(a&&d){let h=m,b=d,v=a;c(h,"role","combobox"),c(b,"role","combobox"),c(h,"aria-controls",l),this._disableable.onInitAndChange(A=>{A?(h&&c(h,"disabled",""),b&&c(b,"disabled","")):(h&&w(h,"disabled"),b&&w(b,"disabled"))}),this._popoverable=new j(v),this._anchorable=new K(v,{reference:h,matchWidth:!0,position:this.hasAttribute("position")?this.getAttribute("position"):void 0,gap:this.hasAttribute("gap")?this.getAttribute("gap"):void 0,offset:this.hasAttribute("offset")?this.getAttribute("offset"):void 0,scrollY:!1}),Mi(b),Di(b),this._filterable&&Li(s,b,this._filterable),Nt(b,this._activatable,this._selectable),hn(b,this._popoverable),Ci(this,h,v,this._popoverable,this._anchorable),Ni(this,this._popoverable,[b]),Rt(h,this._popoverable),Ii(this,b,this._selectable,this._popoverable),Pi(h,this._popoverable,this._activatable,this._selectable),Ks(h,this._popoverable),Oi(this,this._popoverable),it(b,this._activatable),Us(h,this._activatable,this._popoverable),st(this,b,this._activatable),It(this,this._activatable),Ti(this._popoverable,this._activatable,this._selectable),Ri(this,this._selectable,this._popoverable,o)}else if(a){let h=m,b=a;c(h,"role","combobox"),c(h,"aria-controls",l),this._disableable.onInitAndChange(v=>{v?(h&&c(h,"disabled",""),e&&c(e,"disabled","")):(h&&w(h,"disabled"),e&&w(e,"disabled"))}),this._popoverable=new j(b),this._anchorable=new K(b,{reference:h,matchWidth:!0,position:this.hasAttribute("position")?this.getAttribute("position"):void 0,gap:this.hasAttribute("gap")?this.getAttribute("gap"):void 0,offset:this.hasAttribute("offset")?this.getAttribute("offset"):void 0}),Ci(this,h,b,this._popoverable,this._anchorable),Ni(this,this._popoverable),Rt(h,this._popoverable),Pi(h,this._popoverable,this._activatable,this._selectable),Ks(h,this._popoverable),Nt(h,this._activatable,this._selectable),Oi(this,this._popoverable),it(h,this._activatable),Us(h,this._activatable,this._popoverable),st(this,h,this._activatable),It(this,this._activatable),Ti(this._popoverable,this._activatable,this._selectable),Ri(this,this._selectable,this._popoverable,o)}new MutationObserver(()=>{requestAnimationFrame(()=>{if(!this._popoverable||this._popoverable.getState()){let h=this._selectable.selecteds().find(b=>!b.el._disableable.isDisabled())?.el;this._activatable.activateSelectedOrFirst(h)}else this._activatable.clearActive()})}).observe(s,{childList:!0})}unmount(){if(this._popoverable?.getState()){let{unlock:e}=se();e()}}trigger(){return this.button()||this.input()}button(){return Array.from(this.querySelectorAll("button,ui-button")).find(e=>e.nextElementSibling?.matches("[popover]"))||null}input(){return this.querySelector('input:not([type="hidden"])')}list(){return this.querySelector("ui-options")||this}clear(){this._selectable.setState(null),this.dispatchEvent(new CustomEvent("clear",{bubbles:!1}))}open(){this._popoverable.setState(!0)}close(){this._popoverable.setState(!1)}deselectLast(){!this.hasAttribute("multiple")&&this.value!==null&&(this.value=null,this.dispatchEvent(new Event("input",{bubbles:!1})),this.dispatchEvent(new Event("change",{bubbles:!1}))),this.hasAttribute("multiple")&&this.value.length!==0&&(this.value=this.value.slice(0,-1),this.dispatchEvent(new Event("input",{bubbles:!1})),this.dispatchEvent(new Event("change",{bubbles:!1})))}};y("selected-remove",Mt);y("selected",Dt);y("select",ot);function it(i,e){p(i,"keydown",t=>{["ArrowDown","ArrowUp"].includes(t.key)&&(t.key==="ArrowDown"?(e.activateNext(),t.preventDefault(),t.stopPropagation()):t.key==="ArrowUp"&&(e.activatePrev(),t.preventDefault(),t.stopPropagation()))})}function Us(i,e,t){Et(i,s=>{e.activateBySearch(s),t.getState()||e.getActive()?.click()})}function st(i,e,t){p(e,"keydown",s=>{if(s.key==="Enter"){let o=t.getActive();if(s.preventDefault(),s.stopPropagation(),!o||o._disableable?.isDisabled())return;o.click(),i.dispatchEvent(new CustomEvent("interaction",{bubbles:!1,cancelable:!1,detail:{optionEl:o}})),o.hasAttribute("action")&&i.dispatchEvent(new CustomEvent("action",{bubbles:!1,cancelable:!1,detail:{optionEl:o}}))}})}
125function It(i,e,t=!1){p(i,t?"pointerdown":"click",s=>{if(s.target.closest("ui-option, ui-option-create")){let o=s.target.closest("ui-option, ui-option-create");if(o._disableable.isDisabled())return;o._selectable?.trigger(),i.dispatchEvent(new CustomEvent("interaction",{bubbles:!1,cancelable:!1,detail:{optionEl:o}})),o.hasAttribute("action")&&i.dispatchEvent(new CustomEvent("action",{bubbles:!1,cancelable:!1,detail:{optionEl:o}})),s.preventDefault(),s.stopPropagation()}})}function Ys(i,e,t){p(i,"focus",()=>{let s=t.selecteds().find(o=>!o.el._disableable.isDisabled())?.el;e.activateSelectedOrFirst(s)}),p(i,"blur",()=>{e.clearActive()})}function un(i,e){let t=R(i,"options");return c(i,"role","listbox"),c(i,"aria-multiselectable",e?"true":"false"),t}function Rt(i,e){c(i,"aria-haspopup","listbox");let t=()=>{c(i,"aria-expanded",e.getState()?"true":"false"),e.getState()?c(i,"data-open",""):w(i,"data-open","")};e.onChange(()=>{t()}),t()}function Ci(i,e,t,s,o){let n=()=>{Array.from([i,t]).forEach(r=>{s.getState()?c(r,"data-open",""):w(r,"data-open","")}),s.getState()?o.reposition():o.cleanup()};s.onChange(()=>n()),n(),s.onChange(()=>{s.getState()?i.dispatchEvent(new Event("open",{bubbles:!1,cancelable:!1})):i.dispatchEvent(new Event("close",{bubbles:!1,cancelable:!1}))})}function Ti(i,e,t){i.onChange(()=>{if(i.getState()){let s=t.selecteds().find(o=>!o.el._disableable.isDisabled())?.el;setTimeout(()=>{e.activateSelectedOrFirst(s)})}else e.clearActive()})}function Oi(i,e){p(i,"keydown",t=>{t.key==="Escape"&&e.getState()&&(e.setState(!1),t.preventDefault(),t.stopImmediatePropagation())})}function Pi(i,e){p(i,"keydown",t=>{["ArrowDown","ArrowUp"].includes(t.key)&&(t.key==="ArrowDown"||t.key==="ArrowUp")&&(e.getState()||(e.setState(!0),t.preventDefault(),t.stopImmediatePropagation()))})}function cn(i,e){p(i,"click",()=>{e.getState()||(e.setState(!0),i.focus())})}function Ks(i,e){p(i,"click",()=>{e.setState(!e.getState()),i.focus()})}function hn(i,e){e.onChange(()=>{e.getState()&&!xt()&&setTimeout(()=>i.focus())})}function Li(i,e,t){p(e,"input",n=>{t.filter(n.target.value)});let s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value");Object.defineProperty(e,"value",{get(){return s.get.call(this)},set(n){s.set.call(this,n),t.filter(n)}}),new MutationObserver(()=>{requestAnimationFrame(()=>{t.filter(t.lastSearch)})}).observe(i,{childList:!0})}function Di(i){p(i,"focus",()=>i.select())}function Mi(i){p(i,"change",e=>e.stopPropagation()),p(i,"input",e=>e.stopPropagation())}function dn(i,e){p(i,"keydown",t=>{(/^[a-zA-Z0-9]$/.test(t.key)||t.key==="Backspace")&&(e.getState()||e.setState(!0))})}function Ii(i,e,t,s){if(!i.hasAttribute("clear"))return;let n=f=>{e.value!==f&&(e.value=f,e.dispatchEvent(new Event("input",{bubbles:!1})))},r=i.getAttribute("clear"),u=r===""||r.split(" ").includes("action"),l=r===""||r.split(" ").includes("select"),a=r===""||r.split(" ").includes("close"),d=r===""||r.split(" ").includes("esc");r==="none"&&(u=l=a=d=!1),u?i.addEventListener("action",f=>{n("")}):l&&t.onChange(()=>{queueMicrotask(()=>n(""))}),a&&s.onChange(()=>{s.getState()||n("")}),d&&p(e,"keydown",f=>{f.key==="Escape"&&n("")})}function Ri(i,e,t,s){let o=!s,n=!s,r=!s;if(i.hasAttribute("close")){let u=i.getAttribute("close");if(o=u==="",n=u.split(" ").includes("action"),r=u.split(" ").includes("select"),u==="none")return}o||n?i.addEventListener("interaction",u=>{let l=u.detail.optionEl;if(!l.hasAttribute("action")){t.setState(!1);return}setTimeout(()=>{if(!l.hasAttribute("data-flux-loading")&&!l.hasAttribute("data-loading")){t.setState(!1);return}let a=new MutationObserver(()=>{requestAnimationFrame(()=>{i.querySelector("input[data-invalid]")||t.setState(!1)}),a.disconnect()});a.observe(l,{attributes:!0,attributeFilter:["data-loading","data-flux-loading"]})},10)}):r&&e.onChange(()=>{t.setState(!1)})}function Nt(i,e,t){e.onChange(()=>{let s=e.getActive();s?c(i,"aria-activedescendant",s.id):w(i,"aria-activedescendant")}),t.onChange(s=>{if(!s)return;let o=s.el;o&&c(i,"aria-activedescendant",o.id)})}function Gs(i,e,t,s,o,n,r){if(!i){c(s,"autocomplete","off"),c(s,"aria-autocomplete","none");return}let u=a=>{s.value!==a&&(s.value=a,s.dispatchEvent(new Event("input",{bubbles:!1})))};c(s,"autocomplete","off"),c(s,"aria-autocomplete","list"),s.value!==""&&o.isEmpty()&&o.setState(s.value);let l=()=>{o.isNotEmpty()?requestAnimationFrame(()=>{u(o.selectedTextValue()),e&&c(s,"data-selected",o.selectedTextValue())}):(u(""),w(s,"data-selected"))};queueMicrotask(()=>{o.isEmpty()&&s.value!==""&&o.setState(s.value),o.onInitAndChange(()=>l())}),t.addEventListener("interaction",a=>{a.detail.optionEl._selectable?.isSelected()&&l()}),e&&n.onChange(()=>{n.getState()||requestAnimationFrame(()=>{u(s.getAttribute("data-selected")||"")})})}function Ni(i,e,t=[]){let{lock:s,unlock:o}=se(e.el,!1,t);e.onChange(()=>{e.getState()?s():o()})}var Fi=class i extends x{boot(){if(this._focusable=new Ee(this,{wrap:!1,ensureTabbable:!1}),p(this,"keydown",e=>
125{["ArrowDown"].includes(e.key)?(e.target===this?this._focusable.focusFirst():this._focusable.focusNext(),e.preventDefault(),e.stopPropagation()):["ArrowUp"].includes(e.key)&&(e.target===this?this._focusable.focusFirst():this._focusable.focusPrev(),e.preventDefault(),e.stopPropagation())}),Et(this,e=>this._focusable.focusBySearch(e)),this.hasAttribute("popover")&&this.addEventListener("lofi-close-popovers",e=>{this.hasAttribute("keep-open")||(e.detail?.immediate?this.hidePopover():setTimeout(()=>this.hidePopover(),50))}),this.parentElement.localName==="ui-dropdown"){let e=this.parentElement;p(e.trigger(),"keydown",t=>{t.key==="ArrowDown"&&(this.fromArrowDown=!0,this.showPopover(),t.preventDefault(),t.stopPropagation())})}c(this,"role","menu"),c(this,"tabindex","-1")}mount(){this.initializeMenuItems(),new MutationObserver(t=>{this.initializeMenuItems()}).observe(this,{childList:!0,subtree:!0})}onPopoverShow(){requestAnimationFrame(()=>{this.fromArrowDown?(this._focusable.focusFirst(),this.fromArrowDown=!1):this.focus()})}onPopoverHide(){this._focusable.wipeTabbables()}initializeMenuItems(){this.walker().each(e=>{e._disableable||fn(e)})}walker(){return M(this,(e,{skip:t,reject:s})=>{if(e instanceof i||e instanceof ot)return s();if(!["a","button"].includes(e.localName))return t()})}},Hi=class extends x{boot(){}},Wi=class extends x{boot(){let e=this;this._disableable=new T(this),this._disableable.onInitAndChange(s=>{s?c(e,"aria-disabled","true"):w(e,"aria-disabled")}),R(e,"menu-checkbox"),c(e,"role","menuitemcheckbox"),e._focusable=new F(e,{disableable:this._disableable,hover:!0,tabbableAttr:"data-active"}),e._selectable=new _(e,{toggleable:!0,value:this.hasAttribute("value")?this.getAttribute("value"):e.textContent.trim(),label:this.hasAttribute("label")?this.getAttribute("label"):e.textContent.trim(),dataAttr:"data-checked",ariaAttr:"aria-checked",selectedInitially:this.hasAttribute("checked")}),this._controllable=new P(this),this._controllable.initial(s=>s&&e._selectable.setState(s)),this._controllable.getter(()=>e._selectable.getState());let t=D();this._controllable.setter(t(s=>{this._selectable.setState(s)})),this._selectable.onChange(t(()=>{this._controllable.dispatch()})),p(e,"click",this._disableable.enabled(()=>{this.hasAttribute("keep-open")||this.dispatchEvent(new CustomEvent("lofi-close-popovers",{bubbles:!0})),e._selectable.press()})),$i(e)}},Vi=class extends x{boot(){let e=this;this._disableable=new T(this),this._disableable.onInitAndChange(t=>{t?c(e,"aria-disabled","true"):w(e,"aria-disabled")}),R(e,"menu-radio"),c(e,"role","menuitemradio"),e._focusable=new F(e,{disableable:this._disableable,hover:!0,tabbableAttr:"data-active"}),e._selectable=new _(e,{toggleable:!1,value:this.hasAttribute("value")?this.getAttribute("value"):e.textContent.trim(),label:this.hasAttribute("label")?this.getAttribute("label"):e.textContent.trim(),dataAttr:"data-checked",ariaAttr:"aria-checked",selectedInitially:this.hasAttribute("checked")}),p(e,"click",this._disableable.enabled(()=>{this.hasAttribute("keep-open")||this.dispatchEvent(new CustomEvent("lofi-close-popovers",{bubbles:!0})),e._selectable.press()})),$i(e)}},qi=class extends x{boot(){this._selectable=new z(this),this._controllable=new P(this),c(this,"role","group"),this._controllable.initial(t=>t&&this._selectable.setState(t)),this._controllable.getter(()=>this._selectable.getState());let e=D();this._controllable.setter(e(t=>{this._selectable.setState(t)})),this._selectable.onChange(e(()=>{this._controllable.dispatch()})),p(this,"lofi-close-popovers",t=>{this.hasAttribute("keep-open")&&(t.preventDefault(),t.stopPropagation())})}},Bi=class extends x{boot(){this._selectable=new z(this,{multiple:!0}),this._controllable=new P(this),c(this,"role","group"),this._controllable.initial(t=>t&&this._selectable.setState(t)),this._controllable.getter(()=>this._selectable.getState());let e=D();this._controllable.setter(e(t=>{this._selectable.setState(t)})),this._selectable.onChange(e(()=>{this._controllable.dispatch()}))}};y("menu",Fi);y("submenu",Hi);y("menu-checkbox",Wi);y("menu-radio",Vi);y("menu-radio-group",qi);y("menu-checkbox-group",Bi);function $i(i){p(i,"keydown",e=>{e.key==="Enter"&&(i.click(),e.preventDefault(),e.stopPropagation())}),p(i,"keydown",e=>{e.key===" "&&(e.preventDefault(),e.stopPropagation())}),p(i,"keyup",e=>{e.key===" "&&(i.click(),e.preventDefault(),e.stopPropagation())})}function fn(i){let e=i.querySelector("a"),t=i,s=i.parentElement.matches("ui-submenu")&&i.parentElement.querySelector("ui-menu[popover]"),o=e||t;if(i._disableable=new T(i),i._disableable.onInitAndChange(n=>{n?c(o,"aria-disabled","true"):w(o,"aria-disabled")}),R(o,"menu-item"),c(o,"role","menuitem"),o._focusable=new F(o,{disableable:i._disableable,hover:!0,tabbableAttr:"data-active"}),s){s._popoverable=new j(s,{triggers:[t]}),s._anchorable=new K(s,{reference:t,position:s.hasAttribute("position")?s.getAttribute("position"):Ye(s)?"left start":"right start",ga
125p:s.hasAttribute("gap")?s.getAttribute("gap"):"-5",crossAxis:!0}),t.addEventListener("click",i._disableable.enabled(r=>{s._popoverable.setState(!0)}));let{clear:n}=De(t,s,{gain(){s._popoverable.setState(!0)},lose(){s._popoverable.setState(!1)},focusable:!1,useSafeArea:!0});s._popoverable.onChange(()=>{s._popoverable.getState()||(n(),s._focusable.wipeTabbables()),s._popoverable.getState()?s._anchorable.reposition():s._anchorable.cleanup()}),p(t,"keydown",r=>{r.key==="Enter"&&(s._popoverable.setState(!0),setTimeout(()=>s._focusable.focusFirst()))}),p(t,"keydown",r=>{r.key==="ArrowRight"&&(s._popoverable.setState(!0),setTimeout(()=>s._focusable.focusFirst()))}),p(s,"keydown",r=>{r.key==="ArrowLeft"&&(s._popoverable.setState(!1),t.focus(),r.stopPropagation())})}else{let n=i._disableable.enabled(()=>{i.hasAttribute("keep-open")||i.dispatchEvent(new CustomEvent("lofi-close-popovers",{bubbles:!0,detail:{immediate:!0}}))});p(i,"mouseup",n),p(i,"click",r=>!r.isTrusted&&n()),$i(t)}}var zi=class extends N{mount(){this.inputEls=this.querySelectorAll("[data-flux-otp-input]"),this.length=this.inputEls.length,this.config={mode:this.getAttribute("mode")||"numeric",autocomplete:this.getAttribute("autocomplete")||"one-time-code",autoSubmit:this.getAttribute("submit")==="auto",inputAriaLabelTemplate:this.getAttribute("data-flux-input-aria-label")||"Character {current} of {total}"},this.state={length:0,onChanges:[],getValue:()=>Array.from(this.inputEls).map(t=>t.value).join(""),setValue:t=>{let s=(t??"").replace(/\s/g,"").replace(this.invalidCharacters(),"").toUpperCase();for(let o=0;o<this.length;o++)this.inputEls[o].value=s[o]||"";
125this.state.length=s.length,this.state.onChanges.forEach(o=>o(s))},notify:()=>{let t=this.state.getValue();this.state.length=t.length,this.state.onChanges.forEach(s=>s(t))},reapply:()=>{let t=this.state.getValue();this.state.setValue(t)},onChange:t=>{this.state.onChanges.push(t)}},this.hasAttribute("value")&&this.state.setValue(this.getAttribute("value")),this._controllable=new P(this),this._controllable.initial(t=>t&&this.state.setValue(t)),this._controllable.getter(()=>this.state.getValue());let e=D();this._controllable.setter(e(t=>this.state.setValue(t))),this.state.onChange(e(()=>this._controllable.dispatch())),this._submittable=new B(this,{name:this.getAttribute("name"),value:this.state.getValue()}),this.state.onChange(t=>{this._submittable.update(t),t.length===this.length&&this.config.autoSubmit&&this.closest("form")?.requestSubmit(),Array.from(this.inputEls).findIndex(o=>o===document.activeElement)>this.nextIndex()&&this.focusIndex(this.nextIndex())}),this._disableable=new T(this),this._disableable.onInitAndChange(t=>{for(let s of this.inputEls)t?c(s,"disabled",t):w(s,"disabled")}),this.updateTabIndexes(this.nextIndex());for(let t=0;t<this.length;t++){c(this.inputEls[t],"autocomplete",t===0?this.config.autocomplete:"off"),c(this.inputEls[t],"aria-label",this.config.inputAriaLabelTemplate.replace("{current}",t+1).replace("{total}",this.length));let s;p(this.inputEls[t],"beforeinput",o=>{s=o.target.value}),p(this.inputEls[t],"input",o=>{o.stopPropagation();let n=o.target.value;if(n.length>1){this.state.setValue(n),this.focusIndex(this.nextIndex()),o.preventDefault();return}if(n==""){this.state.reapply(),t<this.nextIndex()?this.focusIndex(t):this.focusPrev(t);return}if(this.invalidCharacters().test(n)){o.target.value=s,this.focusIndex(t);return}this.config.mode!=="numeric"&&(o.target.value=n.toUpperCase()),this.inputEls[t].blur(),this.state.notify(),this.focusNext(t)}),p(this.inputEls[t],"keydown",o=>{["Backspace","Delete","Clear"].includes(o.key)?o.target.value===""&&requestAnimationFrame(()=>this.focusPrev(t)):o.key==="ArrowRight"?(this.focusNext(t),o.preventDefault()):o.key==="ArrowLeft"&&(this.focusPrev(t),o.preventDefault())}),p(this.inputEls[t],"pointerdown",o=>{this.focusIndex(Math.min(t,this.nextIndex())),o.preventDefault()}),p(this.inputEls[t],"focus",o=>{o.target.setSelectionRange(0,1),this.updateTabIndexes(t)})}}trigger(){return this.inputEls[this.nextIndex()]}focusIndex(e){let t=this.inputEls[e];document.activeElement===t&&t.blur(),t.focus()}focusPrev(e){this.focusIndex(Math.max(0,e-1))}focusNext(e){this.focusIndex(Math.min(e+1,this.nextIndex()))}nextIndex(){return Math.min(this.state.length,this.length-1)}updateTabIndexes(e){for(let t=0;t<this.length;t++)t===e?c(this.inputEls[t],"tabindex","0"):c(this.inputEls[t],"tabindex","-1")}invalidCharacters(){switch(this.config.mode){case"numeric":return/[^\d]/g;case"alpha":return/[^a-zA-Z]/g;case"alphanumeric":return/[^a-zA-Z0-9]/g;default:throw new Error(`Unknown OTP input mode "${this.config.mode}"`)}}};y("otp",zi);document.addEventListener("alpine:init",()=>{let i=window.Alpine,e=window.Flux?.applyAppearance;e||(e=()=>{window.Flux.appearance=null,window.localStorage.removeItem("flux.appearance")});let t=i.reactive({toast(...o){let n={slots:{},dataset:{}};typeof o[0]=="string"&&(n.slots.text=o.shift()),typeof o[0]=="string"&&(n.slots.heading=n.slots.text,n.slots.text=o.shift());let r=o.shift()||{};r.text&&(n.slots.text=r.text),r.heading&&(n.slots.heading=r.heading),r.variant&&(n.dataset.variant=r.variant),r.position&&(n.dataset.position=r.position),r.link&&(n.link=r.link),r.duration!==void 0&&(n.duration=r.duration),document.dispatchEvent(new CustomEvent("toast-show",{detail:n}))},modal(o){return{show(){document.dispatchEvent(new CustomEvent("modal-show",{detail:{name:o}}))},close(){document.dispatchEvent(new CustomEvent("modal-close",{detail:{name:o}}))}}},modals(){return{close(){document.dispatchEvent(new CustomEvent("modal-close",{detail:{}}))}}},appearance:window.localStorage.getItem("flux.appearance")||"system",systemAppearanceChanged:1,get dark(){return JSON.stringify(t.systemAppearanceChanged),t.appearance==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches:t.appearance==="dark"},set dark(o){let n=this.dark;o!==n&&(o?t.appearance="dark":t.appearance="light")}});window.Flux=t,i.magic("flux",()=>t),i.effect(()=>{e(t.appearance)}),document.addEventListener("livewire:navigating",o=>{o.detail.onSwap(()=>{e(t.appearance)})}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{t.systemAppearanceChanged++,e(t.appearance)}),i.data("fluxInputClearable",()=>({clear(){let o=this.$el.closest("[data-flux-input]").querySelector("input");o.value="",o.dispatchEvent(new Event("input",{bubbles:!1})),o.dispatchEvent(new Event("change",{bubbles:!1})),o.dispatchEvent(new CustomEvent("clear",{bubbles:!1})),o.focus()}}
125)),i.data("fluxInputViewable",()=>({open:!1,toggle(){this.open=!this.open,this.$el.closest("[data-flux-input]").querySelector("input").setAttribute("type",this.open?"text":"password")},init(){let o=this.$el.closest("[data-flux-input]")?.querySelector("input");if(!o)return;new MutationObserver(()=>{let r=this.open?"text":"password";o.getAttribute("type")!==r&&o.setAttribute("type",r)}).observe(o,{attributes:!0,attributeFilter:["type"]})}})),i.data("fluxInputCopyable",()=>({copied:!1,copy(){this.copied=!this.copied;let o=this.$el.closest("[data-flux-input]").querySelector("input");navigator.clipboard&&navigator.clipboard.writeText(o.value),o.dispatchEvent(new CustomEvent("copy",{bubbles:!1})),setTimeout(()=>this.copied=!1,2e3)}})),i.data("fluxInputFile",o=>({updateLabel(n){this.$refs.name.textContent=n.target.files[1]?n.target.files.length+" "+o.files:n.target.files[0]?.name||o.noFile},init(){Object.defineProperty(this.$refs.input,"value",{...Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),set(n){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,n),n||this.dispatchEvent(new Event("change",{bubbles:!0}))}})}})),i.data("fluxModal",(o,n)=>({handleShow(r){r.detail.name===o&&(n&&r.detail.scope===n?this.$el.showModal():r.detail.scope||this.$el.showModal())},handleClose(r){r.detail.name?r.detail.name===o&&(n&&r.detail.scope===n?this.$el.close():r.detail.scope||this.$el.close()):this.$el.close()}})),i.data("fluxCommandInputClearable",()=>({clear(){let o=this.$el.closest("[data-flux-command-input]").querySelector("input");o.value="",o.dispatchEvent(new Event("input",{bubbles:!1})),o.dispatchEvent(new CustomEvent("clear",{bubbles:!1})),o.focus()}})),i.data("fluxSelectSearchClearable",()=>({clear(){let o=this.$el.closest("[data-flux-select-search]").querySelector("input");o.value="",o.dispatchEvent(new Event("input",{bubbles:!1})),o.dispatchEvent(new CustomEvent("clear",{bubbles:!1})),o.focus()}})),i.data("fluxPillboxSearchClearable",()=>({clear(){let o=this.$el.closest("[data-flux-pillbox-search]").querySelector("input");o.value="",o.dispatchEvent(new Event("input",{bubbles:!1})),o.dispatchEvent(new CustomEvent("clear",{bubbles:!1})),o.focus()}}))});!as()&&!us()&&cs();})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.