PageSourceSearch

https://www.assemblyai.com/_astro/Layout.astro_astro_type_script_i…?dpl=dpl_7vToeXb4Xc9ZN8RnPQpecft9QZ7Y

js assemblyai.com collected 2026-10-01 08:31:49 UTC 84,405 bytes, 63 lines download raw bytes

1var Wn=Object.defineProperty,an=e=>{throw TypeError(e)},Fn=(e,t,n)=>t in e?Wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t,n)=>Fn(e,typeof t!="symbol"?t+"":t,n),St=(e,t,n)=>t.has(e)||an("Cannot "+n),f=(e,t,n)=>(St(e,t,"read from private field"),t.get(e)),L=(e,t,n)=>t.has(e)?an("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),k=(e,t,n,r)=>(St(e,t,"write to private field"),t.set(e,n),n),q=(e,t,n)=>(St(e,t,"access private method"),n);if(typeof globalThis.window<"u"){let e=!1;document.addEventListener("submit",t=>{if(e){e=!1;return}let n=t.target;if(n&&n.method==="dialog"){let r=n.closest("el-dialog");if(!r||!("beforeClose"in r))return;let o=t.submitter?.value??"",i=r.beforeClose(o);if(i===!0||(t.preventDefault(),t.stopImmediatePropagation(),i===!1))return;i.then(a=>{a&&(e=!0,n.dispatchEvent(t))}).catch(console.error)}},!0)}var nt=class extends Event{constructor(e,{oldState:t="",newState:n="",...r}={}){super(e,r),Q(this,"oldState"),Q(this,"newState"),this.oldState=String(t||""),this.newState=String(n||"")}},Ht=new WeakMap;
vendor: 44,146 bytes, lines 1-63
1function ln(e,t,n){Ht.set(e,setTimeout(()=>{Ht.has(e)&&e.dispatchEvent(new nt("toggle",{cancelable:!1,oldState:t,newState:n}))},0))}var kt=globalThis.ShadowRoot||function(){},Nn=globalThis.HTMLDialogElement||function(){},We=new WeakMap,Y=new WeakMap,R=new WeakMap,ge=new WeakMap;function Ue(e){return ge.get(e)||"hidden"}var Ge=new WeakMap;function De(e){return[...e].pop()}function Hn(e){let t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;let n=Ue(t);e.popoverTargetAction==="show"&&n==="showing"||e.popoverTargetAction==="hide"&&n==="hidden"||(n==="showing"?ve(t,!0,!0):le(t,!1)&&(Ge.set(t,e),dt(t)))}function le(e,t){return!(e.popover!=="auto"&&e.popover!=="manual"&&e.popover!=="hint"||!e.isConnected||t&&Ue(e)!=="showing"||!t&&Ue(e)!=="hidden"||e instanceof Nn&&e.hasAttribute("open")||document.fullscreenElement===e)}function $t(e){if(!e)return 0;let t=Y.get(document)||new Set,n=R.get(document)||new Set;return n.has(e)?[...n].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function $n(e){let t=sn(e),n=Kn(e);return $t(t)>$t(n)?t:n}function Pe(e){let t,n=R.get(e)||new Set,r=Y.get(e)||new Set,o=n.size>0?n:r.size>0?r:null;return o?(t=De(o),t.isConnected?t:(o.delete(t),Pe(e))):null}function Kt(e){for(let t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function be(e){return typeof e.getRootNode=="function"?e.getRootNode():e.parentNode?be(e.parentNode):e}function sn(e){for(;e;){if(e instanceof HTMLElement&&e.popover==="auto"&&ge.get(e)==="showing")return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||be(e),e instanceof kt&&(e=e.host),e instanceof Document)return}}function Kn(e){for(;e;){let t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||be(e),e instanceof kt&&(e=e.host),e instanceof Document)return}}function jt(e,t){let n=new Map,r=0;for(let a of t||[])n.set(a,r),r+=1;n.set(e,r),r+=1;let o=null;function i(a){if(!a)return;let l=!1,s=null,c=null;for(;!l;){if(s=sn(a)||null,s===null||!n.has(s))return;(e.popover==="hint"||s.popover==="auto")&&(l=!0),l||(a=s.parentElement)}c=n.get(s),(o===null||n.get(o)<c)&&(o=s)}return i(e.parentElement||be(e)),o}function jn(e){return e.hidden||e instanceof kt||(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)&&e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e instanceof HTMLAnchorElement&&e.href===""?!1:typeof e.tabIndex=="number"&&e.tabIndex!==-1}function Vn(e){if(e.shadowRoot&&e.shadowRoot.delegatesFocus!==!0)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let n=t.querySelector("[autofocus]");if(n)return n;{let i=t.querySelectorAll("slot");for(let a of i){let l=a.assignedElements({flatten:!0});for(let s of l){if(s.hasAttribute("autofocus"))return s;if(n=s.querySelector("[autofocus]"),n)return n}}}let r=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){if(jn(o))return o;o=r.nextNode()}}function zn(e){var t;(t=Vn(e))==null||t.focus()}var Ye=new WeakMap;function dt(e){if(!le(e,!1))return;let t=e.ownerDocument;if(!e.dispatchEvent(new nt("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!le(e,!1))return;let n=!1,r=e.popover,o=null,i=jt(e,Y.get(t)||new Set),a=jt(e,R.get(t)||new Set);if(r==="auto"&&(ht(R.get(t)||new Set,n,!0),se(i||t,n,!0),o="auto"),r==="hint"&&(a?(se(a,n,!0),o="hint"):(ht(R.get(t)||new Set,n,!0),i?(se(i,n,!0),o="auto"):o="hint")),r==="auto"||r==="hint"){if(r!==e.popover||!le(e,!1))return;Pe(t)||(n=!0),o==="auto"?(Y.has(t)||Y.set(t,new Set),Y.get(t).add(e)):o==="hint"&&(R.has(t)||R.set(t,new Set),R.get(t).add(e))}Ye.delete(e);let l=t.activeElement;e.classList.add(":popover-open"),ge.set(e,"showing"),We.has(t)||We.set(t,new Set),We.get(t).add(e),un(Ge.get(e),!0),zn(e),n&&l&&e.popover==="auto"&&Ye.set(e,l),ln(e,"closed","open")}function ve(e,t=!1,n=!1){var r,o;if(!le(e,!0))return;let i=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(se(e,t,n),!le(e,!0)))return;let a=Y.get(i)||new Set,l=a.has(e)&&De(a)===e;if(un(Ge.get(e),!1),Ge.delete(e),n&&(e.dispatchEvent(new nt("beforetoggle",{oldState:"open",newState:"closed"})),l&&De(a)!==e&&se(e,t,n),!le(e,!0)))return;(r=We.get(i))==null||r.delete(e),a.delete(e),(o=R.get(i))==null||o.delete(e),e.classList.remove(":popover-open"),ge.set(e,"hidden"),n&&ln(e,"open","closed");let s=Ye.get(e);s&&(Ye.delete(e),t&&s.focus())}function Un(e,t=!1,n=!1){let r=Pe(e);for(;r;)ve(r,t,n),r=Pe(e)}function ht(e,t=!1,n=!1){let r=Kt(e);for(;r;)ve(r,t,n),r=Kt(e)}function Vt(e,t,n,r){let o=!1,i=!1;for(;o||!i;){i=!0;let a=null,l=!1;for(let s of t)if(s===e)l=!0;else if(l){a=s;break}if(!a)return;for(;Ue(a)==="showing"&&t.size;)ve(De(t),n,r);t.has(e)&&De(t)!==e&&(o=!0),o&&(r=!1)}}function se(e,t,n){var r,o;let i=e.ownerDocument||e;if(e instanceof Document)return Un(i,t,n);if((r=R.get(i))!=null&&r.has(e)){Vt(e,R.get(i),t,n);return}ht(R.get(i)||new Set,t,n),(o=Y.get(i))!=null&&o.has(e)&&Vt(e,Y.get(i),t,n)}var lt=new WeakMap;function zt(e){if(!e.isTrusted)return;let t=e.composedPath()[0];if(!t)return;let n=t.ownerDocument;if(!Pe(n))return;let r=$n(t);if(r&&e.type==="pointerdown")lt.set(n,r);else if(e.type==="pointerup"){let o=lt.get(n)===r;lt.delete(n),o&&se(r||n,!1,!0)}}var st=new WeakMap;function un(e,t=!1){if(!e)return;st.has(e)||st.set(e,e.getAttribute("aria-expanded"));let n=e.popoverTargetElement;if(n instanceof HTMLElement&&n.popover==="auto")e.setAttribute("aria-expanded",String(t));else{let r=st.get(e);r?e.setAttribute("aria-expanded",r):e.removeAttribute("aria-expanded")}}var Ut=globalThis.ShadowRoot||function(){};function Gn(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function re(e,t,n){let r=e[t];Object.defineProperty(e,t,{value(o){return r.call(this,n(o))}})}var Yn=/(^|[^\\]):popover-open\b/g;function Qn(){return typeof globalThis.CSSLayerBlockRule=="function"}function Xn(){let e=Qn();return`
2${e?"@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${e?"}":""}
63`}var de=null;function ut(e){let t=Xn();if(de===null)try{de=new CSSStyleSheet,de.replaceSync(t)}catch{de=!1}if(de===!1){let n=document.createElement("style");n.textContent=t,e instanceof Document?e.head.prepend(n):e.prepend(n)}else e.adoptedStyleSheets=[de,...e.adoptedStyleSheets]}function Jn(){if(typeof window>"u")return;window.ToggleEvent=window.ToggleEvent||nt;function e(l){return l?.includes(":popover-open")&&(l=l.replace(Yn,"$1.\\:popover-open")),l}re(Document.prototype,"querySelector",e),re(Document.prototype,"querySelectorAll",e),re(Element.prototype,"querySelector",e),re(Element.prototype,"querySelectorAll",e),re(Element.prototype,"matches",e),re(Element.prototype,"closest",e),re(DocumentFragment.prototype,"querySelectorAll",e),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":l=="hint"?"hint":"manual"},set(l){l===null?this.removeAttribute("popover"):this.setAttribute("popover",l)}},showPopover:{enumerable:!0,configurable:!0,value(l={}){dt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){ve(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(l={}){return typeof l=="boolean"&&(l={force:l}),ge.get(this)==="showing"&&l.force===void 0||l.force===!1?ve(this,!0,!0):(l.force===void 0||l.force===!0)&&dt(this),ge.get(this)==="showing"}}});let t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(l){let s=t.call(this,l);return ut(s),s}}});let n=HTMLElement.prototype.attachInternals;n&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let l=n.call(this);return l.shadowRoot&&ut(l.shadowRoot),l}}});let r=new WeakMap;function o(l){Object.defineProperties(l.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(s){if(s===null)this.removeAttribute("popovertarget"),r.delete(this);else if(s instanceof Element)this.setAttribute("popovertarget",""),r.set(this,s);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 s=r.get(this);if(s&&s.isConnected)return s;if(s&&!s.isConnected)return r.delete(this),null;let c=be(this),u=this.getAttribute("popovertarget");return(c instanceof Document||c instanceof Ut)&&u&&c.getElementById(u)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let s=(this.getAttribute("popovertargetaction")||"").toLowerCase();return s==="show"||s==="hide"?s:"toggle"},set(s){this.setAttribute("popovertargetaction",s)}}})}o(HTMLButtonElement),o(HTMLInputElement);let i=l=>{if(l.defaultPrevented)return;let s=l.composedPath(),c=s[0];if(!(c instanceof Element)||c?.shadowRoot)return;let u=be(c);if(!(u instanceof Ut||u instanceof Document))return;let g=s.find(b=>{var m;return(m=b.matches)==null?void 0:m.call(b,"[popovertargetaction],[popovertarget]")});if(g){Hn(g),l.preventDefault();return}},a=l=>{let s=l.key,c=l.target;!l.defaultPrevented&&c&&(s==="Escape"||s==="Esc")&&se(c.ownerDocument,!0,!0)};(l=>{l.addEventListener("click",i),l.addEventListener("keydown",a),l.addEventListener("pointerdown",zt),l.addEventListener("pointerup",zt)})(document),ut(document)}function Zn(){return typeof HTMLButtonElement<"u"&&"command"in HTMLButtonElement.prototype&&"source"in((globalThis.CommandEvent||{}).prototype||{})}function _n(){document.addEventListener("invoke",d=>{d.type=="invoke"&&d.isTrusted&&(d.stopImmediatePropagation(),d.preventDefault())},!0),document.addEventListener("command",d=>{d.type=="command"&&d.isTrusted&&(d.stopImmediatePropagation(),d.preventDefault())},!0);function e(d,h,p=!0){Object.defineProperty(d,h,{...Object.getOwnPropertyDescriptor(d,h),enumerable:p})}function t(d){return d&&typeof d.getRootNode=="function"?d.getRootNode():d&&d.parentNode?t(d.parentNode):d}let n=new WeakMap,r=new WeakMap;class o extends Event{constructor(h,p={}){super(h,p);let{source:v,command:y}=p;if(v!=null&&!(v instanceof Element))throw new TypeError("source must be an element");n.set(this,v||null),r.set(this,y!==void 0?String(y):"")}get[Symbol.toStringTag](){return"CommandEvent"}get source(){if(!n.has(this))throw new TypeError("illegal invocation");let h=n.get(this);if(!(h instanceof Element))return null;let p=t(h);return p!==t(this.target||document)?p.host:h}get command(){if(!r.has(this))throw new TypeError("illegal invocation");return r.get(this)}get action(){throw new Error("CommandEvent#action was renamed to CommandEvent#command")}get invoker(){throw new Error("CommandEvent#invoker was renamed to CommandEvent#source")}}e(o.prototype,"source"),e(o.prototype,"command");class i extends Event{constructor(h,p={}){throw super(h,p),new Error("InvokeEvent has been deprecated, it has been renamed to `CommandEvent`")}}let a=new WeakMap;function l(d){Object.defineProperties(d.prototype,{commandForElement:{enumerable:!0,configurable:!0,set(h){if(this.hasAttribute("invokeaction"))throw new TypeError("Element has deprecated `invokeaction` attribute, replace with `command`");if(this.hasAttribute("invoketarget"))throw new TypeError("Element has deprecated `invoketarget` attribute, replace with `commandfor`");if(h===null)this.removeAttribute("commandfor"),a.delete(this);else if(h instanceof Element){this.setAttribute("commandfor","");let p=t(h);t(this)===p||p===this.ownerDocument?a.set(this,h):a.delete(this)}else throw new TypeError("commandForElement must be an element or null")},get(){if(this.localName!=="button")return null;if(this.hasAttribute("invokeaction")||this.hasAttribute("invoketarget"))return console.warn("Element has deprecated `invoketarget` or `invokeaction` attribute, use `commandfor` and `command` instead"),null;if(this.disabled)return null;if(this.form&&this.getAttribute("type")!=="button")return console.warn("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work"),null;let h=a.get(this);if(h)return h.isConnected?h:(a.delete(this),null);let p=t(this),v=this.getAttribute("commandfor");return(p instanceof Document||p instanceof ShadowRoot)&&v&&p.getElementById(v)||null}},command:{enumerable:!0,configurable:!0,get(){let h=this.getAttribute("command")||"";if(h.startsWith("--"))return h;let p=h.toLowerCase();switch(p){case"show-modal":case"close":case"toggle-popover":case"hide-popover":case"show-popover":return p}return""},set(h){this.setAttribute("command",h)}},invokeAction:{enumerable:!1,configurable:!0,get(){throw new Error("invokeAction is deprecated. It has been renamed to command")},set(h){throw new Error("invokeAction is deprecated. It has been renamed to command")}},invokeTargetElement:{enumerable:!1,configurable:!0,get(){throw new Error("invokeTargetElement is deprecated. It has been renamed to command")},set(h){throw new Error("invokeTargetElement is deprecated. It has been renamed to command")}}})}let s=new WeakMap;Object.defineProperties(HTMLElement.prototype,{oncommand:{enumerable:!0,configurable:!0,get(){return u.takeRecords(),s.get(this)||null},set(d){let h=s.get(this)||null;h&&this.removeEventListener("command",h),s.set(this,typeof d=="object"||typeof d=="function"?d:null),typeof d=="function"&&this.addEventListener("command",d)}}});function c(d){for(let h of d)h.oncommand=new Function("event",h.getAttribute("oncommand"))}let u=new MutationObserver(d=>{for(let h of d){let{target:p}=h;h.type==="childList"?c(p.querySelectorAll("[oncommand]")):c([p])}});u.observe(document,{subtree:!0,childList:!0,attributeFilter:["oncommand"]}),c(document.querySelectorAll("[oncommand]"));function g(d){if(d.defaultPrevented||d.type!=="click")return;let h=d.target.closest("button[invoketarget], button[invokeaction], input[invoketarget], input[invokeaction]");if(h&&(console.warn("Elements with `invoketarget` or `invokeaction` are deprecated and should be renamed to use `commandfor` and `command` respectively"),h.matches("input")))throw new Error("Input elements no longer support `commandfor`");let p=d.target.closest("button[commandfor], button[command]");if(!p)return;if(p.form&&p.getAttribute("type")!=="button")throw d.preventDefault(),new Error("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work. In order for it to act as a Submit button, it must not have command or commandfor attributes");if(p.hasAttribute("command")!==p.hasAttribute("commandfor")){let w=p.hasAttribute("command")?"command":"commandfor",E=p.hasAttribute("command")?"commandfor":"command";throw new Error(`Element with ${w} attribute must also have a ${E} attribute to function.`)}if(p.command!=="show-popover"&&p.command!=="hide-popover"&&p.command!=="toggle-popover"&&p.command!=="show-modal"&&p.command!=="close"&&!p.command.startsWith("--")){console.warn(`"${p.command}" is not a valid command value. Custom commands must begin with --`);return}let v=p.commandForElement;if(!v)return;let y=new o("command",{command:p.command,source:p,cancelable:!0});if(v.dispatchEvent(y),y.defaultPrevented)return;let A=y.command.toLowerCase();if(v.popover){let w=!v.matches(":popover-open");w&&(A==="toggle-popover"||A==="show-popover")?v.showPopover({source:p}):!w&&A==="hide-popover"&&v.hidePopover()}else if(v.localName==="dialog"){let w=!v.hasAttribute("open");w&&A==="show-modal"?v.showModal():!w&&A==="close"&&v.close()}}function b(d){d.addEventListener("click",g,!0)}function m(d,h){let p=d.prototype.attachShadow;d.prototype.attachShadow=function(y){let A=p.call(this,y);return h(A),A};let v=d.prototype.attachInternals;d.prototype.attachInternals=function(){let y=v.call(this);return y.shadowRoot&&h(y.shadowRoot),y}}l(HTMLButtonElement),m(HTMLElement,d=>{b(d),u.observe(d,{attributeFilter:["oncommand"]}),c(d.querySelectorAll("[oncommand]"))}),b(document),Object.assign(globalThis,{CommandEvent:o,InvokeEvent:i})}function er(){if(typeof HTMLDialogElement!="function")return!1;let e=!1,t=document.createElement("dialog");return t.addEventListener("beforetoggle",n=>{e=!0,n.preventDefault()}),t.show(),e}function tr(){let e=new WeakMap;function t(a){let l=a.open?"closed":"open",s=a.open?"open":"closed";if(e.has(a)){let c=e.get(a);s=c.oldState,clearTimeout(c.id)}e.set(a,{oldState:s,id:setTimeout(()=>{a.dispatchEvent(new ToggleEvent("toggle",{newState:l,oldState:s}))})})}let n=HTMLDialogElement.prototype.show,r=HTMLDialogElement.prototype.showModal,o=HTMLDialogElement.prototype.close;function i(a){let l=new ToggleEvent("beforetoggle",{newState:"closed",oldState:"open",cancelable:!1});a.dispatchEvent(l),a.open&&t(a)}document.addEventListener("submit",a=>{let l=a.target;if(l.method==="dialog"){let s=l.closest("dialog");s instanceof HTMLDialogElement&&i(s)}},!0),Object.defineProperties(HTMLDialogElement.prototype,{show:{value(){if(this.open||this.matches(":popover-open, :modal")||!this.ownerDocument)return n.apply(this,arguments);let a=new ToggleEvent("beforetoggle",{newState:"open",oldState:"closed",cancelable:!0});this.dispatchEvent(a)&&(t(this),n.apply(this,arguments))}},showModal:{value(){if(this.open||this.matches(":popover-open, :modal")||!this.isConnected||!this.ownerDocument)return r.apply(this,arguments);let a=new ToggleEvent("beforetoggle",{newState:"open",oldState:"closed",cancelable:!0});if(this.dispatchEvent(a))return t(this),r.apply(this,arguments)}},close:{value(){return!this.open&&!this.matches(":popover-open, :modal")?o.apply(this,arguments):(i(this),o.apply(this,arguments))}}})}function cn(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}typeof globalThis.window<"u"&&(Gn()||(Jn(),cn(async()=>{if(await nr("popover-polyfill"))return;let e=document.createElement("style");e.textContent="@layer popover-polyfill;",e.setAttribute("suppressHydrationWarning",""),e.addEventListener("securitypolicyviolation",()=>{console.log("CSP rules on this website prevented @tailwindplus/elements from defining `popover-polyfill` as the first CSS layer. This is necessary to ensure the popover polyfill behaves correctly with CSS layers. To fix this, please manually add the following CSS to the top of your first stylesheet:\n\n```\n@layer popover-polyfill;\n```")}),document.documentElement.prepend(e)})),Zn()||_n(),er()||tr());async function nr(e){await rr();for(let t of document.styleSheets)try{for(let n of t.rules)if(n.constructor.name==="CSSLayerStatementRule"&&"nameList"in n&&n.nameList.includes(e))return!0}catch{}return!1}async function rr(){await Promise.all(Array.from(document.querySelectorAll('link[rel="stylesheet"]')).map(e=>e.sheet?Promise.resolve():new Promise(t=>{e.addEventListener("load",()=>t(),{once:!0}),e.addEventListener("error",()=>t(),{once:!0})})))}function Lt(e){"focus"in e&&e.focus({focusVisible:Fe})}var Fe=!1;if(typeof globalThis.window<"u"){let e;(t=>(t[t.Keyboard=0]="Keyboard",t[t.Mouse=1]="Mouse"))(e||(e={})),document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(Fe=!0,document.documentElement.dataset.focusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?(Fe=!1,delete document.documentElement.dataset.focusVisible):t.detail===0&&(Fe=!0,document.documentElement.dataset.focusVisible="")},!0)}typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{});var ke,Ne,oe,T=class extends HTMLElement{constructor(){super(...arguments),L(this,ke,new AbortController),L(this,Ne,!1),L(this,oe,!1)}connectedCallback(){if("observedAttributes"in this.constructor&&typeof this.constructor.observedAttributes=="object"&&Array.isArray(this.constructor.observedAttributes))for(let t of this.constructor.observedAttributes)typeof t=="string"&&(t in this||Object.defineProperty(this,t,{get(){return this.getAttribute(t)},set(n){if(n==null||n===!1){this.removeAttribute(t);return}this.setAttribute(t,n.toString())}}));k(this,Ne,!0);let e=f(this,ke).signal;queueMicrotask(()=>{if(!e.aborted)try{this.mount?.(e)}catch(t){console.error(t)}})}disconnectedCallback(){f(this,ke).abort(),k(this,ke,new AbortController)}setAttributeNoCallbacks(e,t){try{k(this,oe,!0),this.setAttribute(e,t)}finally{k(this,oe,!1)}}removeAttributeNoCallbacks(e){try{k(this,oe,!0),this.removeAttribute(e)}finally{k(this,oe,!1)}}attributeChangedCallback(e,t,n){f(this,Ne)&&(f(this,oe)||t!==n&&this.onAttributeChange?.(e,t,n))}};ke=new WeakMap,Ne=new WeakMap,oe=new WeakMap;function S(e,t){typeof globalThis.customElements>"u"||customElements.get(e)===t||customElements.define(e,t)}function we(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return queueMicrotask(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return r.startsWith("--")?n.style.setProperty(r,o):Object.assign(n.style,{[r]:o}),this.add(()=>{r.startsWith("--")?n.style.setProperty(r,i):Object.assign(n.style,{[r]:i})})},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function It(e,t=()=>[]){let n=!1,r=null,o=we();return{start(i,a){let l=[e,...t()];n?n=!1:n=r!==null&&r!==i,r=i;for(let s of l)or(s,()=>{n||(i==="in"?(s.dataset.transition="",s.dataset.enter="",s.dataset.closed="",delete s.dataset.leave):i==="out"&&(s.dataset.transition="",s.dataset.leave="",delete s.dataset.enter))},r!==null);o.nextFrame(()=>{for(let s of l)n?i==="in"?(delete s.dataset.enter,delete s.dataset.closed,s.dataset.leave=""):i==="out"&&(delete s.dataset.leave,s.dataset.enter="",s.dataset.closed=""):i==="in"?delete s.dataset.closed:i==="out"&&(s.dataset.closed="");o.requestAnimationFrame(()=>{o.add(dn(e,()=>{if(!(n&&l.some(s=>hn(s)))){for(let s of l)delete s.dataset.transition,delete s.dataset.enter,delete s.dataset.closed,delete s.dataset.leave;r=null,a?.()}}))})})},abort(){o.dispose(),n=!1,r=null}}}function or(e,t,n=!1){if(n){t();return}let r=e.style.transition;e.style.transition="none",t(),e.offsetHeight,e.style.transition=r}function dn(e,t){let n=we();if(!e)return n.dispose;let r=!1;n.add(()=>{r=!0});let o=e.getAnimations?.({subtree:!0}).filter(i=>i instanceof CSSTransition)??[];return o.length===0?(t(),n.dispose):(Promise.allSettled(o.map(i=>i.finished)).then(()=>{r||t()}),n.dispose)}function hn(e){return(e.getAnimations?.()??[]).some(t=>t instanceof CSSTransition&&t.playState!=="finished")}var Qe=Math.min,ue=Math.max,Xe=Math.round,Re=Math.floor,j=e=>({x:e,y:e}),ir={left:"right",right:"left",bottom:"top",top:"bottom"},ar={start:"end",end:"start"};function Gt(e,t,n){return ue(e,Qe(t,n))}function Dt(e,t){return typeof e=="function"?e(t):e}function ye(e){return e.split("-")[0]}function Pt(e){return e.split("-")[1]}function pn(e){return e==="x"?"y":"x"}function fn(e){return e==="y"?"height":"width"}var lr=new Set(["top","bottom"]);function ae(e){return lr.has(ye(e))?"y":"x"}function mn(e){return pn(ae(e))}function sr(e,t,n){n===void 0&&(n=!1);let r=Pt(e),o=mn(e),i=fn(o),a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Je(a)),[a,Je(a)]}function ur(e){let t=Je(e);return[pt(e),t,pt(t)]}function pt(e){return e.replace(/start|end/g,t=>ar[t])}var Yt=["left","right"],Qt=["right","left"],cr=["top","bottom"],dr=["bottom","top"];function hr(e,t,n){switch(e){case"top":case"bottom":return n?t?Qt:Yt:t?Yt:Qt;case"left":case"right":return t?cr:dr;default:return[]}}function pr(e,t,n,r){let o=Pt(e),i=hr(ye(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(pt)))),i}function Je(e){return e.replace(/left|right|bottom|top/g,t=>ir[t])}function fr(e){return{top:0,right:0,bottom:0,left:0,...e}}function mr(e){return typeof e!="number"?fr(e):{top:e,right:e,bottom:e,left:e}}function Ze(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Xt(e,t,n){let{reference:r,floating:o}=e,i=ae(t),a=mn(t),l=fn(a),s=ye(t),c=i==="y",u=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,b=r[l]/2-o[l]/2,m;switch(s){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:g};break;case"left":m={x:r.x-o.width,y:g};break;default:m={x:r.x,y:r.y}}switch(Pt(t)){case"start":m[a]-=b*(n&&c?-1:1);break;case"end":m[a]+=b*(n&&c?-1:1);break}return m}var gr=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:g}=Xt(c,r,s),b=r,m={},d=0;for(let h=0;h<l.length;h++){let{name:p,fn:v}=l[h],{x:y,y:A,data:w,reset:E}=await v({x:u,y:g,initialPlacement:r,placement:b,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=y??u,g=A??g,m={...m,[p]:{...m[p],...w}},E&&d<=50&&(d++,typeof E=="object"&&(E.placement&&(b=E.placement),E.rects&&(c=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:u,y:g}=Xt(c,b,s)),h=-1)}return{x:u,y:g,placement:b,strategy:o,middlewareData:m}};async function gn(e,t){var n;t===void 0&&(t={});let{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:g="floating",altBoundary:b=!1,padding:m=0}=Dt(t,e),d=mr(m),h=l[b?g==="floating"?"reference":"floating":g],p=Ze(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v=g==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),A=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},w=Ze(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:s}):v);return{top:(p.top-w.top+d.top)/A.y,bottom:(w.bottom-p.bottom+d.bottom)/A.y,left:(p.left-w.left+d.left)/A.x,right:(w.right-p.right+d.right)/A.x}}var br=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;let{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:h=!0,...p}=Dt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let v=ye(o),y=ae(l),A=ye(l)===l,w=await(s.isRTL==null?void 0:s.isRTL(c.floating)),E=b||(A||!h?[Je(l)]:ur(l)),x=d!=="none";!b&&x&&E.push(...pr(l,h,d,w));let C=[l,...E],N=await gn(t,p),X=[],P=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&X.push(N[v]),g){let ne=sr(o,a,w);X.push(N[ne[0]],N[ne[1]])}if(P=[...P,{placement:o,overflows:X}],!X.every(ne=>ne<=0)){var Wt,Ft;let ne=(((Wt=i.flip)==null?void 0:Wt.index)||0)+1,at=C[ne];if(at&&(!(g==="alignment"&&y!==ae(at))||P.every(U=>ae(U.placement)===y?U.overflows[0]>0:!0)))return{data:{index:ne,overflows:P},reset:{placement:at}};let Se=(Ft=P.filter(U=>U.overflows[0]<=0).sort((U,J)=>U.overflows[1]-J.overflows[1])[0])==null?void 0:Ft.placement;if(!Se)switch(m){case"bestFit":{var Nt;let U=(Nt=P.filter(J=>{if(x){let Z=ae(J.placement);return Z===y||Z==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(Z=>Z>0).reduce((Z,qn)=>Z+qn,0)]).sort((J,Z)=>J[1]-Z[1])[0])==null?void 0:Nt[0];U&&(Se=U);break}case"initialPlacement":Se=l;break}if(o!==Se)return{reset:{placement:Se}}}return{}}}},vr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:p=>{let{x:v,y}=p;return{x:v,y}}},...s}=Dt(e,t),c={x:n,y:r},u=await gn(t,s),g=ae(ye(o)),b=pn(g),m=c[b],d=c[g];if(i){let p=b==="y"?"top":"left",v=b==="y"?"bottom":"right",y=m+u[p],A=m-u[v];m=Gt(y,m,A)}if(a){let p=g==="y"?"top":"left",v=g==="y"?"bottom":"right",y=d+u[p],A=d-u[v];d=Gt(y,d,A)}let h=l.fn({...t,[b]:m,[g]:d});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[b]:i,[g]:a}}}}}};function rt(){return typeof window<"u"}function Te(e){return bn(e)?(e.nodeName||"").toLowerCase():"#document"}function O(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function z(e){var t;return(t=(bn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bn(e){return rt()?e instanceof Node||e instanceof O(e).Node:!1}function W(e){return rt()?e instanceof Element||e instanceof O(e).Element:!1}function V(e){return rt()?e instanceof HTMLElement||e instanceof O(e).HTMLElement:!1}function Jt(e){return!rt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof O(e).ShadowRoot}var wr=new Set(["inline","contents"]);function Oe(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!wr.has(o)}var yr=new Set(["table","td","th"]);function Ar(e){return yr.has(Te(e))}var Er=[":popover-open",":modal"];function ot(e){return Er.some(t=>{try{return e.matches(t)}catch{return!1}})}var xr=["transform","translate","scale","rotate","perspective"],Tr=["transform","translate","scale","rotate","perspective","filter"],Sr=["paint","layout","strict","content"];function Ct(e){let t=Mt(),n=W(e)?F(e):e;return xr.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Tr.some(r=>(n.willChange||"").includes(r))||Sr.some(r=>(n.contain||"").includes(r))}function kr(e){let t=te(e);for(;V(t)&&!Ae(t);){if(Ct(t))return t;if(ot(t))return null;t=te(t)}return null}function Mt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var Lr=new Set(["html","body","#document"]);function Ae(e){return Lr.has(Te(e))}function F(e){return O(e).getComputedStyle(e)}function it(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if(Te(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Jt(e)&&e.host||z(e);return Jt(t)?t.host:t}function vn(e){let t=te(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:V(t)&&Oe(t)?t:vn(t)}function Ce(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let o=vn(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=O(o);if(i){let l=ft(a);return t.concat(a,a.visualViewport||[],Oe(o)?o:[],l&&n?Ce(l):[])}return t.concat(o,Ce(o,[],n))}function ft(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wn(e){let t=F(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=V(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Xe(n)!==i||Xe(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Ot(e){return W(e)?e:e.contextElement}function me(e){let t=Ot(e);if(!V(t))return j(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=wn(t),a=(i?Xe(n.width):n.width)/r,l=(i?Xe(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}var Ir=j(0);function yn(e){let t=O(e);return!Mt()||!t.visualViewport?Ir:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Dr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==O(e)?!1:t}function ce(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let o=e.getBoundingClientRect(),i=Ot(e),a=j(1);t&&(r?W(r)&&(a=me(r)):a=me(e));let l=Dr(i,n,r)?yn(i):j(0),s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,g=o.height/a.y;if(i){let b=O(i),m=r&&W(r)?O(r):r,d=b,h=ft(d);for(;h&&r&&m!==d;){let p=me(h),v=h.getBoundingClientRect(),y=F(h),A=v.left+(h.clientLeft+parseFloat(y.paddingLeft))*p.x,w=v.top+(h.clientTop+parseFloat(y.paddingTop))*p.y;s*=p.x,c*=p.y,u*=p.x,g*=p.y,s+=A,c+=w,d=O(h),h=ft(d)}}return Ze({width:u,height:g,x:s,y:c})}function Bt(e,t){let n=it(e).scrollLeft;return t?t.left+n:ce(z(e)).left+n}function An(e,t,n){n===void 0&&(n=!1);let r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Bt(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function Pr(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i=o==="fixed",a=z(r),l=t?ot(t.floating):!1;if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=j(1),u=j(0),g=V(r);if((g||!g&&!i)&&((Te(r)!=="body"||Oe(a))&&(s=it(r)),V(r))){let m=ce(r);c=me(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}let b=a&&!g&&!i?An(a,s,!0):j(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+b.x,y:n.y*c.y-s.scrollTop*c.y+u.y+b.y}}function Cr(e){return Array.from(e.getClientRects())}function Mr(e){let t=z(e),n=it(e),r=e.ownerDocument.body,o=ue(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ue(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+Bt(e),l=-n.scrollTop;return F(r).direction==="rtl"&&(a+=ue(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function Or(e,t){let n=O(e),r=z(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;let c=Mt();(!c||c&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}var Br=new Set(["absolute","fixed"]);function Rr(e,t){let n=ce(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=V(e)?me(e):j(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,c=r*i.y;return{width:a,height:l,x:s,y:c}}function Zt(e,t,n){let r;if(t==="viewport")r=Or(e,n);else if(t==="document")r=Mr(z(e));else if(W(t))r=Rr(t,n);else{let o=yn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ze(r)}function En(e,t){let n=te(e);return n===t||!W(n)||Ae(n)?!1:F(n).position==="fixed"||En(n,t)}function qr(e,t){let n=t.get(e);if(n)return n;let r=Ce(e,[],!1).filter(l=>W(l)&&Te(l)!=="body"),o=null,i=F(e).position==="fixed",a=i?te(e):e;for(;W(a)&&!Ae(a);){let l=F(a),s=Ct(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&o&&Br.has(o.position)||Oe(a)&&!s&&En(e,a))?r=r.filter(c=>c!==a):o=l,a=te(a)}return t.set(e,r),r}function Wr(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[...n==="clippingAncestors"?ot(t)?[]:qr(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((s,c)=>{let u=Zt(t,c,o);return s.top=ue(u.top,s.top),s.right=Qe(u.right,s.right),s.bottom=Qe(u.bottom,s.bottom),s.left=ue(u.left,s.left),s},Zt(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Fr(e){let{width:t,height:n}=wn(e);return{width:t,height:n}}function Nr(e,t,n){let r=V(t),o=z(t),i=n==="fixed",a=ce(e,!0,i,t),l={scrollLeft:0,scrollTop:0},s=j(0);function c(){s.x=Bt(o)}if(r||!r&&!i)if((Te(t)!=="body"||Oe(o))&&(l=it(t)),r){let m=ce(t,!0,i,t);s.x=m.x+t.clientLeft,s.y=m.y+t.clientTop}else o&&c();i&&!r&&o&&c();let u=o&&!r&&!i?An(o,l):j(0),g=a.left+l.scrollLeft-s.x-u.x,b=a.top+l.scrollTop-s.y-u.y;return{x:g,y:b,width:a.width,height:a.height}}function ct(e){return F(e).position==="static"}function _t(e,t){if(!V(e)||F(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return z(e)===n&&(n=n.ownerDocument.body),n}function xn(e,t){let n=O(e);if(ot(e))return n;if(!V(e)){let o=te(e);for(;o&&!Ae(o);){if(W(o)&&!ct(o))return o;o=te(o)}return n}let r=_t(e,t);for(;r&&Ar(r)&&ct(r);)r=_t(r,t);return r&&Ae(r)&&ct(r)&&!Ct(r)?n:r||kr(e)||n}var Hr=async function(e){let t=this.getOffsetParent||xn,n=this.getDimensions,r=await n(e.floating);return{reference:Nr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $r(e){return F(e).direction==="rtl"}var Tn={convertOffsetParentRelativeRectToViewportRelativeRect:Pr,getDocumentElement:z,getClippingRect:Wr,getOffsetParent:xn,getElementRects:Hr,getClientRects:Cr,getDimensions:Fr,getScale:me,isElement:W,isRTL:$r};function Sn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Kr(e,t){let n=null,r,o=z(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();let c=e.getBoundingClientRect(),{left:u,top:g,width:b,height:m}=c;if(l||t(),!b||!m)return;let d=Re(g),h=Re(o.clientWidth-(u+b)),p=Re(o.clientHeight-(g+m)),v=Re(u),y={rootMargin:-d+"px "+-h+"px "+-p+"px "+-v+"px",threshold:ue(0,Qe(1,s))||1},A=!0;function w(E){let x=E[0].intersectionRatio;if(x!==s){if(!A)return a();x?a(!1,x):r=setTimeout(()=>{a(!1,1e-7)},1e3)}x===1&&!Sn(c,e.getBoundingClientRect())&&a(),A=!1}try{n=new IntersectionObserver(w,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(w,y)}n.observe(e)}return a(!0),i}function jr(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,c=Ot(e),u=o||i?[...c?Ce(c):[],...Ce(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});let g=c&&l?Kr(c,n):null,b=-1,m=null;a&&(m=new ResizeObserver(v=>{let[y]=v;y&&y.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var A;(A=m)==null||A.observe(t)})),n()}),c&&!s&&m.observe(c),m.observe(t));let d,h=s?ce(e):null;s&&p();function p(){let v=ce(e);h&&!Sn(h,v)&&n(),h=v,d=requestAnimationFrame(p)}return n(),()=>{var v;u.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),g?.(),(v=m)==null||v.disconnect(),m=null,s&&cancelAnimationFrame(d)}}var Vr=vr,zr=br,Ur=(e,t,n)=>{let r=new Map,o={platform:Tn,...n},i={...o.platform,_c:r};return gr(e,t,{...o,platform:i})};function Gr(e){let t=()=>{};return function(n,r){if(t(),!n){requestAnimationFrame(()=>{hn(e)?dn(e,()=>{e.style.removeProperty("position")}):e.style.removeProperty("position")});return}if(!r||!e.hasAttribute("anchor"))return;let o=e.getAttribute("anchor"),i=e.getAttribute("anchor-strategy")||"absolute";i!=="absolute"&&i!=="fixed"&&(console.warn(`[createAnchorUpdater] Invalid anchor strategy "${i}" for element:`,e),i="absolute"),t=jr(r,e,()=>{let a=en(window.getComputedStyle(e).getPropertyValue("--anchor-gap"),e),l=en(window.getComputedStyle(e).getPropertyValue("--anchor-offset"),e),s=o.split(" ")[0],c={};switch(s){case"top":case"bottom":c={top:a,left:-1*l,right:l,bottom:a};break;case"left":case"right":c={top:-1*l,bottom:l,left:a,right:a};break}Ur(r,e,{strategy:i,placement:o.replace(" ","-"),middleware:[zr({padding:c}),Vr({padding:c})]}).then(async({x:u,y:g,placement:b})=>{if(!Yr()&&i==="absolute"){let h=null;for(let p=e.parentElement;p;p=p.parentElement){let v=getComputedStyle(p).position;if(v==="relative"||v==="absolute"||v==="fixed"||v==="sticky"){h=p;break}}if(h){let p=h.getBoundingClientRect();u-=p.left+window.scrollX,g-=p.top+window.scrollY}}let m=`${u}px`,d=`${g}px`;switch(b.split("-")[0]){case"top":d=`calc(${g}px - var(--anchor-gap, 0px))`,m=`calc(${u}px + var(--anchor-offset, 0px))`;break;case"right":m=`calc(${u}px + var(--anchor-gap, 0px))`,d=`calc(${g}px + var(--anchor-offset, 0px))`;break;case"bottom":d=`calc(${g}px + var(--anchor-gap, 0px))`,m=`calc(${u}px + var(--anchor-offset, 0px))`;break;case"left":m=`calc(${u}px - var(--anchor-gap, 0px))`,d=`calc(${g}px + var(--anchor-offset, 0px))`;break}{let h=e.getBoundingClientRect();if(h.x===0&&h.y===0&&h.width===0&&h.height===0)return}Object.assign(e.style,{left:m,top:d,position:i}),await Tn.isRTL?.(e)&&Object.assign(e.style,{right:"unset",bottom:"unset"})})})}}function Yr(){return"showPopover"in HTMLElement.prototype&&HTMLElement.prototype.showPopover.toString().includes("[native code]")}function en(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function qe(e){return Rt(e)&&"tabIndex"in e}function Rt(e){return Qr(e)&&"tagName"in e}function kn(e){return Rt(e)&&"accessKey"in e}function Qr(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Xr(e){return Rt(e)&&"style"in e}function Jr(e){return kn(e)&&e.nodeName==="INPUT"}function K(e){let t=e.getBoundingClientRect();return!(!(t.x!==0||t.y!==0||t.width!==0||t.height!==0)||(e.ownerDocument.defaultView||window).getComputedStyle(e).visibility==="hidden")}var Zr={get selectRequired(){let e=document.createElement("select");e.setAttribute("required","true");let t=e.validationMessage;return Object.defineProperty(this,"selectRequired",{value:t}),t}};function mt(e,t,n){function r(){if(!K(e)){for(let o of e.children)if(K(o))return;n()}}if(typeof ResizeObserver<"u"){let o=new ResizeObserver(r);o.observe(e),t.addEventListener("abort",()=>o.disconnect())}if(typeof IntersectionObserver<"u"){let o=new IntersectionObserver(r);o.observe(e),t.addEventListener("abort",()=>o.disconnect())}}var Be=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");function Ee(e,t,n){let r=t?e.indexOf(t):null;switch(r===-1&&(r=null),n){case 0:{for(let o=0;o<e.length;o++)if(K(e[o]))return e[o];return null}case 1:{for(let o=e.length-1;o>=0;o--)if(K(e[o]))return e[o];return null}case 2:{if(r===null)return Ee(e,t,1);for(let o=r-1;o>=0;o--)if(K(e[o]))return e[o];return null}case 3:{if(r===null)return Ee(e,t,0);for(let o=r+1;o<e.length;o++)if(K(e[o]))return e[o];return null}case 4:return null}}var $=[];cn(()=>{function e(t){if(t.target===document.body||$[0]===t.target)return;let n=t.target;n&&"closest"in n&&(n=n.closest(Be),$.unshift(n??t.target),$=$.filter(r=>r!=null&&r.isConnected),$.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("pointerdown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("pointerdown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var _e=!1,Ln=!1;typeof navigator<"u"&&(_e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ln=navigator.userAgent.toLowerCase().includes("firefox"));var gt=!1;function qt(e,t,n,r,o,i){_r(e.ownerDocument);let a=It(e),l=Gr(e),s=we();e.hasAttribute("popover")||e.setAttribute("popover","");let c=n();for(let b of c)b.setAttribute("type","button"),b.setAttribute("aria-haspopup","true"),b.setAttribute("aria-controls",e.id),b.setAttribute("aria-expanded","fal
63se");e.hasAttribute("open")&&queueMicrotask(()=>e.showPopover());function u(){e.hasAttribute("open")&&e.hidePopover()}let g=new AbortController;t.addEventListener("abort",()=>g.abort()),e.addEventListener("beforetoggle",b=>{let m=bt(b,c);l(b.newState==="open",r?.()??m),b.newState==="open"?m&&(mt(m,g.signal,u),mt(e,g.signal,u)):(g.abort(),g=new AbortController);let d=e.hasAttribute("open");b.newState==="open"&&!d?e.setAttributeNoCallbacks("open",""):b.newState==="closed"&&d&&e.removeAttributeNoCallbacks("open"),b.newState==="open"?(m?.setAttribute("aria-expanded","true"),m?.id&&e.setAttribute("aria-labelledby",m.id),o?.(),gt=e.getAttribute("popover")===""):(m?.setAttribute("aria-expanded","false"),e.removeAttribute("aria-labelledby"),i?.(),gt=!1),b.oldState==="closed"&&b.newState==="open"?(_e&&(s.dispose(),s=we()),a.start("in")):b.oldState==="open"&&b.newState==="closed"&&(_e&&s.style(e,"transition-property","none"),a.start("out"))},{signal:t}),t.addEventListener("abort",()=>a.abort())}function bt(e,t){return e.source??$.find(n=>t.includes(n))??t[0]??null}var tn=new WeakSet;function _r(e){if(Ln||_e||tn.has(e))return;tn.add(e);let t=null;e.addEventListener("mousedown",()=>{gt&&(e.body.setAttribute("tabindex","-1"),t&&clearTimeout(t),t=setTimeout(()=>e.body.removeAttribute("tabindex")))},{capture:!0})}function xe(e,t,n,r){function o(){let l=e.getBoundingClientRect();r.style.setProperty(t,l.width+"px")}let i=e.ownerDocument,a=new ResizeObserver(o);a.observe(e),i.addEventListener("transitionend",o,{signal:n}),n.addEventListener("abort",()=>a.disconnect())}var eo=0;function M(e){return`${e}-${eo++}`}var to=200;function Me(e,t,n,r){no(),e.addEventListener(t,o=>{vt!==null&&Date.now()-vt<to||r(o)},{passive:!0,signal:n})}var vt=null,nn=!1;function no(){nn||(nn=!0,document.addEventListener("keydown",()=>{vt=Date.now()},{capture:!0}))}var ro=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}},rn=new ro(()=>({referenceCounter:0,d:we()}));function In(e){let t=rn.get(e);if(t.referenceCounter++,t.referenceCounter===1){let r=[lo(),io(),oo()];r.forEach(({before:o})=>o({doc:e,d:t.d})),r.forEach(({after:o})=>o({doc:e,d:t.d}))}let n=!1;return()=>{n||(n=!0,t.referenceCounter--,!(t.referenceCounter>0)&&(t.d.dispose(),rn.delete(e)))}}function oo(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")},after(){}}}function io(){let e;return{before({doc:t}){let n=t.documentElement,r=t.defaultView??window;e=Math.max(0,r.innerWidth-n.clientWidth),n.style.setProperty("--el-top-layer-scrollbar-offset","0px")},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`),n.add(()=>{r.style.setProperty("--el-top-layer-scrollbar-offset",`-${i}px`)})}}}function ao(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function lo(){return ao()?{before({doc:e,d:t}){function n(r){return!!r.closest("[popover], dialog > *")}t.microTask(()=>{if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let i=we();i.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>i.dispose()))}let r=window.scrollY??window.pageYOffset,o=null;t.addEventListener(e,"click",i=>{if(qe(i.target))try{let a=i.target.closest("a");if(!a)return;let{hash:l}=new URL(a.href),s=e.querySelector(l);qe(s)&&!n(s)&&(o=s)}catch{}},!0),t.addEventListener(e,"touchstart",i=>{if(qe(i.target)&&Xr(i.target))if(n(i.target)){let a=i.target;for(;a.parentElement&&n(a.parentElement);)a=a.parentElement;t.style(a,"overscrollBehavior","contain")}else t.style(i.target,"touchAction","none")}),t.addEventListener(e,"touchmove",i=>{if(qe(i.target)){if(Jr(i.target))return;if(n(i.target)){let a=i.target;for(;a.parentElement&&a.dataset.tailwindplusPortal!==""&&!(a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth);)a=a.parentElement;a.dataset.tailwindplusPortal===""&&i.preventDefault()}else i.preventDefault()}},{passive:!1}),t.add(()=>{let i=window.scrollY??window.pageYOffset;r!==i&&window.scrollTo(0,r),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})},after(){}}:{before(){},after(){}}}function Dn(e,t){let n=null;e.addEventListener("toggle",r=>{r.newState==="open"?n||(n=In(e.ownerDocument)):n&&(n(),n=null)},{signal:t}),t.addEventListener("abort",()=>{n&&(n(),n=null)})}var on=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function wt(e){let t=e.innerText??"",n=e.cloneNode(!0);if(!kn(n))return t;let r=!1;for(let i of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))i.remove(),r=!0;let o=r?n.innerText??"":t;return on.test(o)&&(o=o.replace(on,"")),o}function so(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let i=document.getElementById(o);if(i){let a=i.getAttribute("aria-label");
vendor: 34,089 bytes, line 63
63return typeof a=="string"?a.trim():wt(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return wt(e).trim()}var B,He,uo=class extends T{constructor(){super(...arguments),L(this,B,[]),L(this,He,null)}mount(e){let t=this.getInput(),n=this.getButton(),r=this.getOptions();t.id||(t.id=M("autocomplete-input")),n&&(n.id||(n.id=M("autocomplete-button"))),r.id||(r.id=M("autocomplete-listbox")),qt(r,e,()=>{let u=this.getButton();return u?[u]:[]},()=>this.getInput(),()=>this.onBeforeOpen(),()=>this.onBeforeClose()),Dn(r,e),t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",r.id),t.setAttribute("aria-activedescendant",""),t.setAttribute("autocomplete","off"),n&&(n.setAttribute("type","button"),n.setAttribute("tabindex","-1"),n.setAttribute("aria-expanded","false"),n.setAttribute("aria-haspopup","listbox"),n.setAttribute("popovertarget",r.id)),r.setAttribute("role","listbox"),r.setAttribute("popover","manual");let o=this,i=new WeakSet;function a(){for(let u of r.getItems())i.has(u)||(i.add(u),u.id||(u.id=M("option")),u.setAttribute("role","option"),u.setAttribute("aria-selected","false"),u.setAttribute("tabIndex","-1"),u.addEventListener("mousedown",g=>{g.button===0&&(g.preventDefault(),o.selectOption(u))},{signal:e}),Me(u,"mouseover",e,()=>o.setActiveItem(u,!1)),Me(u,"mouseout",e,()=>o.clearActiveItem()));o.filterOptions()}a();let l=new MutationObserver(a);l.observe(this,{attributes:!1,childList:!0,subtree:!0}),n&&xe(n,"--button-width",e,this),xe(t,"--input-width",e,this),t.addEventListener("input",()=>{t.matches(":disabled")||(this.filterOptions(),f(this,B).length>0?r.hasAttribute("open")||r.showPopover():r.hidePopover())},{signal:e});let s=()=>{t.matches(":disabled")||(t.focus(),r.hasAttribute("open")?r.hidePopover():(this.filterOptions(),f(this,B).length>0&&r.showPopover()))};t.addEventListener("pointerdown",s,{signal:e}),n&&(n.addEventListener("pointerdown",u=>{u.preventDefault(),s()},{signal:e}),n.addEventListener("click",u=>{u.preventDefault(),u.stopImmediatePropagation()},{signal:e})),t.addEventListener("blur",({relatedTarget:u})=>{u&&this.contains(u)||r.hidePopover()},{signal:e}),t.addEventListener("keydown",u=>{if(!t.matches(":disabled"))switch(u.key){case"ArrowDown":{u.preventDefault(),r.hasAttribute("open")||(f(this,B).length===0&&this.filterOptions(),f(this,B).length>0&&r.showPopover()),this.goToItem(3);break}case"ArrowUp":{u.preventDefault(),r.hasAttribute("open")||(f(this,B).length===0&&this.filterOptions(),f(this,B).length>0&&r.showPopover()),this.goToItem(2);break}case"Home":case"PageUp":return r.hasAttribute("open")?(u.preventDefault(),u.stopPropagation(),this.goToItem(0)):void 0;case"End":case"PageDown":return r.hasAttribute("open")?(u.preventDefault(),u.stopPropagation(),this.goToItem(1)):void 0;case"Enter":{let g=this.getActiveItem();g&&(u.preventDefault(),this.selectOption(g)),r.hasAttribute("open")&&(u.preventDefault(),r.hidePopover());break}case"Escape":{if(!r.hasAttribute("open"))return;u.preventDefault(),r.hidePopover();break}case"Tab":{r.hidePopover();break}}},{signal:e});let c=Array.from(r.querySelectorAll("el-option[disabled]"));for(let u of c)u.setAttribute("aria-disabled","true"),u.setAttribute("aria-selected","false");e.addEventListener("abort",()=>{l.disconnect()})}getInput(){let e=this.querySelector("input");if(!e)throw new Error("`<el-autocomplete>` must contain an input element.");return e}getButton(){return this.querySelector("button")}getOptions(){let e=this.querySelector("el-options");if(!e)throw new Error("`<el-autocomplete>` must contain a `<el-options>` element.");return e}filterOptions(){let e=this.getInput().value.toLowerCase();f(this,He)!==e&&(this.clearActiveItem(),k(this,He,e)),k(this,B,[]);for(let t of this.getOptions().getItems()){let n=t.getAttribute("value")?.toLowerCase()||"",r=wt(t)?.trim().toLowerCase()??"";e===""||n.includes(e)||r.includes(e)?(f(this,B).push(t),t.removeAttribute("hidden"),t.removeAttribute("aria-hidden")):(t.setAttribute("hidden",""),t.setAttribute("aria-hidden","true"))}}getActiveItem(){let e=this.getInput().getAttribute("aria-activedescendant");return e?document.getElementById(e):null}goToItem(e){if(f(this,B).length===0)return;let t=this.getActiveItem(),n=Ee(f(this,B),t,e);n&&this.setActiveItem(n)}setActiveItem(e,t=!0){let n=this.getInput(),r=this.getActiveItem();r!==null&&r.setAttribute("aria-selected","false"),e.setAttribute("aria-selected","true"),n.setAttribute("aria-activedescendant",e.id),t&&e.scrollIntoView({block:"nearest"})}clearActiveItem(){let e=this.getInput(),t=this.getActiveItem();t!==null&&t.setAttribute("aria-selected","false"),e.setAttribute("aria-activedescendant","")}selectOption(e){let t=this.getInput(),n=e.getAttribute("value");n&&(t.value=n,t.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})),this.getOptions().hidePopover())}onBeforeOpen(){let e=this.getInput(),t=this.getButton();e.setAttribute("aria-expanded","true"),t?.setAttribute("aria-expanded","true")}onBeforeClose(){let e=this.getInput(),t=this.getButton();e.setAttribute("aria-expanded","false"),t?.setAttribute("aria-expanded","false"),this.clearActiveItem()}};B=new WeakMap,He=new WeakMap;S("el-autocomplete",uo);var H,$e,et,ie,Ke,yt,co=class extends T{constructor(){super(...arguments),L(this,ie),L(this,H,[]),L(this,$e,null),L(this,et,({query:e,content:t})=>t.toLocaleLowerCase().includes(e.toLocaleLowerCase().trim()))}mount(e){let t=this.getInput(),n=this.getItems();t.id||(t.id=M("command-input")),n.id||(n.id=M("command-items")),t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("autocomplete","off"),t.setAttribute("aria-controls",n.id),n.setAttribute("role","listbox");let r=this,o=new WeakSet;function i(l=!1){var s;for(let c of n.getItems())o.has(c)||(o.add(c),c.id||(c.id=M("item")),c.setAttribute("role","option"),c.setAttribute("tabIndex","-1"),c.setAttribute("aria-selected","false"),c.hasAttribute("disabled")&&c.setAttribute("aria-disabled","true"),Me(c,"mouseover",e,()=>{var u;return q(u=r,ie,yt).call(u,c,!1)}));q(s=r,ie,Ke).call(s,l),l||r.goToItem(0)}i(!0);let a=new MutationObserver(()=>i(!1));a.observe(this,{attributes:!1,childList:!0,subtree:!0}),xe(t,"--input-width",e,this),t.addEventListener("input",()=>q(this,ie,Ke).call(this),{signal:e}),t.addEventListener("keydown",l=>{switch(l.key){case"ArrowDown":{l.preventDefault(),this.goToItem(3);break}case"ArrowUp":{l.preventDefault(),this.goToItem(2);break}case"Home":case"PageUp":return l.preventDefault(),l.stopPropagation(),this.goToItem(0);case"End":case"PageDown":return l.preventDefault(),l.stopPropagation(),this.goToItem(1);case"Enter":{let s=this.getActiveItem();s&&(l.preventDefault(),s.click());break}}},{signal:e}),e.addEventListener("abort",()=>{a.disconnect()})}getInput(){let e=this.querySelector("input");if(!e)throw new Error("`<el-command-palette>` must contain an input element.");return e}getItems(){let e=this.querySelector("el-command-list");if(!e)throw new Error("`<el-command-palette>` must contain a `<el-command-list>` element.");return e}getGroups(){return this.getItems().querySelectorAll("el-command-group")}getSuggestions(){return this.querySelector("el-defaults")}getActiveItem(){let e=this.getInput().getAttribute("aria-activedescendant");return e?document.getElementById(e):null}goToItem(e){if(f(this,H).length===0)return;let t=this.getActiveItem(),n=Ee(f(this,H),t,e);n&&q(this,ie,yt).call(this,n)}clearActiveItem(){let e=this.getInput(),t=this.getActiveItem();if(t!==null){t.setAttribute("aria-selected","false");let n=this.querySelector(`el-command-preview[for="${t.id}"]`);n&&n.setAttribute("hidden","")}e.removeAttribute("aria-activedescendant"),this.dispatchEvent(new CustomEvent("change",{detail:{relatedTarget:null},bubbles:!1,cancelable:!1}))}reset(){let e=this.getInput();e.value="",e.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})),q(this,ie,Ke).call(this,!0),this.clearActiveItem()}setFilterCallback(e){k(this,et,e)}};H=new WeakMap,$e=new WeakMap,et=new WeakMap,ie=new WeakSet,Ke=function(e=!1){let t=this.getItems(),n=this.getInput().value??"";k(this,H,[]);for(let i of t.getItems()){if(i.closest("el-defaults"))continue;let a=so(i)??"";n===""||!f(this,et).call(this,{query:n,node:i,content:a})?(i.setAttribute("hidden",""),i.setAttribute("aria-hidden","true")):(f(this,H).push(i),i.removeAttribute("hidden"),i.removeAttribute("aria-hidden"))}for(let i of this.getGroups())i.getItems().some(a=>!a.hasAttribute("hidden"))?i.removeAttribute("hidden"):i.setAttribute("hidden","");let r=this.getSuggestions();r&&(n===""?(r.removeAttribute("hidden"),k(this,H,r.getItems())):r.setAttribute("hidden",""));let o=this.querySelector("el-no-results");o&&(n===""||f(this,H).length>0?o.setAttribute("hidden",""):o.removeAttribute("hidden")),f(this,H).length===0?t.setAttribute("hidden",""):t.removeAttribute("hidden"),!(e&&n==="")&&(f(this,H).length===0?this.clearActiveItem():f(this,$e)!==n&&this.goToItem(0),k(this,$e,n))},yt=function(e,t=!0){let n=this.getInput(),r=this.getActiveItem();if(e===r)return;if(r!==null){r.setAttribute("aria-selected","false");let i=this.querySelector(`el-command-preview[for="${r.id}"]`);i&&i.setAttribute("hidden","")}e.setAttribute("aria-selected","true"),n.setAttribute("aria-activedescendant",e.id);let o=this.querySelector(`el-command-preview[for="${e.id}"]`);o&&o.removeAttribute("hidden"),t&&e.scrollIntoView({block:"nearest"}),this.dispatchEvent(new CustomEvent("change",{detail:{relatedTarget:e},bubbles:!1,cancelable:!1}))};var ho=class extends T{getItems(){return Array.from(this.querySelectorAll(`${Be},[role="option"]`))}},po=class extends T{getItems(){return Array.from(this.querySelectorAll(`${Be},[role="option"]`))}},fo=class extends T{},mo=class extends T{},go=class extends T{getItems(){return Array.from(this.querySelectorAll(`${Be},[role="option"]`))}};S("el-command-palette",co);S("el-command-list",ho);S("el-defaults",po);S("el-no-results",fo);S("el-command-group",go);S("el-command-preview",mo);var he=null;typeof globalThis.window<"u"&&(he=HTMLDialogElement.prototype.close,Object.defineProperties(HTMLDialogElement.prototype,{close:{value(e){let t=this.closest("el-dialog");if(!(t instanceof tt))return he?.call(this,e);let n=t.beforeClose(e);if(n===!0)return he?.call(this,e);n!==!1&&n.then(r=>r?he?.call(this,e):null).catch(console.error)}}}),document.addEventListener("command",e=>{let t=e.target;if(!(t instanceof HTMLDialogElement)||!("command"in e)||e.command!=="close")return;let n=t.closest("el-dialog");if(!(n instanceof tt))return;let r=e.source?.tagName==="BUTTON"?e.source.value:void 0,o=n.beforeClose(r);o!==!0&&(e.stopImmediatePropagation(),e.preventDefault(),o!==!1&&o.then(i=>i?he?.call(t,r):null).catch(console.error))},!0));var G,_,Le,pe,je,At,tt=class extends T{constructor(){super(...arguments),L(this,je),L(this,G,null),L(this,_,null),L(this,Le,!0),L(this,pe,It(this,()=>Array.from(this.querySelectorAll("el-dialog-panel,el-dialog-backdrop"))))}mount(e){let t=this.getNativeDialog();t.removeAttribute("open"),t.style.setProperty("right","var(--el-top-layer-scrollbar-offset, 0px)");let n=this.hasAttribute("open");for(let i of q(this,je,At).call(this))i.setAttribute("aria-expanded",n.toString());yo(t,e,i=>{i.preventDefault();let a=new Event("cancel",{bubbles:!1,cancelable:!0});!this.dispatchEvent(a)||t.close("")});let r=this.querySelector("el-dialog-panel");mt(r??t,e,()=>{this.hasAttribute("open")&&t.close("")});let o=null;t.addEventListener("beforetoggle",i=>{let a=i;a.newState==="open"&&a.oldState==="closed"&&this.beforeOpen();let l=this.hasAttribute("open");if(a.newState==="open"&&!l?(this.dispatchEvent(new CustomEvent("open",{bubbles:!1,cancelable:!1})),this.setAttribute("open","")):a.newState==="closed"&&l&&(this.dispatchEvent(new CustomEvent("close",{bubbles:!1,cancelable:!1})),this.removeAttribute("open")),a.newState==="open"&&a.oldState==="closed")$.length>0&&!o&&(o=$[0]);else if(a.newState==="closed"&&a.oldState==="open"){let s=f(this,Le);setTimeout(()=>{if(!s){o&&o===document.activeElement&&o.isConnected&&"blur"in o&&typeof o.blur=="function"&&o.blur();return}o&&o!==document.activeElement&&o.isConnected&&Lt(o),o=null})}},{signal:e}),t.addEventListener("focusout",i=>{i.relatedTarget===null&&queueMicrotask(()=>{t.contains(t.ownerDocument.activeElement)||t.focus()})},{signal:e}),e.addEventListener("abort",()=>{var i;f(this,pe).abort(),(i=f(this,_))==null||i.call(this)}),this.hasAttribute("open")&&t.showModal()}onAttributeChange(e,t,n){switch(e){case"open":{let r=this.getNativeDialog();for(let o of q(this,je,At).call(this))o.setAttribute("aria-expanded",n!==null?"true":"false");n===null?r.close():r.showModal();break}}}getNativeDialog(){let e=this.querySelector("dialog");if(!e)throw new Error("[ElDialog] No `<dialog>` element found");return e}beforeOpen(){k(this,Le,!0),f(this,G)&&(f(this,G).abort(),k(this,G,null)),f(this,_)||k(this,_,In(this.ownerDocument)),f(this,pe)&&f(this,pe).start("in")}beforeClose(e){if(f(this,_)&&(f(this,_).call(this),k(this,_,null)),f(this,G))return!1;k(this,G,new AbortController);let t=f(this,G).signal;return new Promise(n=>{f(this,pe)?.start("out",()=>{t.aborted||(k(this,G,null),requestAnimationFrame(()=>{let r=this.getNativeDialog(),o=r.style.cssText;r.style.cssText=o+"transition-duration: 0 !important;",he?.call(r,e),requestAnimationFrame(()=>{r.style.cssText=o})}),n(!0))})})}show(){this.getNativeDialog().showModal()}hide({restoreFocus:e=!0}={}){k(this,Le,e),this.getNativeDialog().close()}};G=new WeakMap,_=new WeakMap,Le=new WeakMap,pe=new WeakMap,je=new WeakSet,At=function(){return document.querySelectorAll(`[commandfor="${this.getNativeDialog().id}"]`)},Q(tt,"observedAttributes",["open"]);var bo=class extends T{mount(e){wo(this,e,()=>{let t=this.getDialog(),n=t.getNativeDialog();if(!n.hasAttribute("open"))return;let r=new Event("cancel",{bubbles:!1,cancelable:!0});!t.dispatchEvent(r)||n.close()})}getDialog(){let e=this.closest("el-dialog");if(!e)throw new Error("[ElDialogPanel] No `<el-dialog>` parent found");return e}},vo=class extends T{mount(){this.setAttribute("inert","")}};S("el-dialog",tt);S("el-dialog-panel",bo);S("el-dialog-backdrop",vo);function wo(e,t,n){let r=null;document.addEventListener("pointerdown",o=>{r=o.composedPath()[0]||o.target},!0),document.addEventListener("click",o=>{if(r!==o.target)return;if(o.target===e){let{clientX:a,clientY:l}=o,s=e.getBoundingClientRect();if(a>=s.left&&a<=s.right&&l>=s.top&&l<=s.bottom)return;n(o);return}let i=e.closest("dialog");if(i&&i.contains(o.target)&&!e.contains(o.target)){n(o);return}if(o.target===o.target.ownerDocument.documentElement){n(o);return}},{signal:t,capture:!0})}function yo(e,t,n){e.addEventListener("keydown",r=>{r.key==="Escape"&&(r.defaultPrevented||n(r))},{signal:t})}var Ie,Ve,Et,Pn=class extends T{constructor(){super(...arguments),L(this,Ve),L(this,Ie,It(this))}mount(e){this.id||(this.id=M("disclosure")),this.hasAttribute("hidden")?this.removeAttributeNoCallbacks("open"):this.setAttributeNoCallbacks("open","");let t=!this.hasAttribute("hidden");for(let n of q(this,Ve,Et).call(this))n.setAttribute("aria-expanded",t.toString()),n.setAttribute("aria-controls",this.id);this.addEventListener("command",n=>{if(n.target instanceof HTMLElement&&"command"in n)switch(n.command){case"--show":{this.show(),n.preventDefault();break}case"--hide":{this.hide(),n.preventDefault();break}case"--toggle":{this.toggle(),n.preventDefault();break}}},{signal:e}),e.addEventListener("abort",()=>f(this,Ie).abort())}onAttributeChange(e,t,n){switch(e){case"hidden":{n===null?this.setAttributeNoCallbacks("open",""):this.removeAttributeNoCallbacks("open");for(let r of q(this,Ve,Et).call(this))r.setAttribute("aria-expanded",n===null?"true":"false");n===null?f(this,Ie).start("in"):f(this,Ie).start("out");break}case"open":{n===null?this.hide():this.show();break}}}show(){this.removeAttribute("hidden")}hide(){this.setAttribute("hidden","")}toggle(){this.hasAttribute("hidden")?this.show():this.hide()}};Ie=new WeakMap,Ve=new WeakSet,Et=function(){return document.querySelectorAll(`[commandfor="${this.id}"]`)},Q(Pn,"observedAttributes",["hidden","open"]);S("el-disclosure",Pn);function Cn(e,t,n,r,o){let i=null;for(let a of t)a.addEventListener("pointerdown",l=>{l.button===0&&e.classList.contains(":popover-open")&&(i=Date.now()+100)},{signal:r,capture:!0});e.ownerDocument.addEventListener("focusin",a=>{if(!n.hasAttribute("open"))return;let l=a.target,s=a.relatedTarget;l!==null&&(i&&Date.now()<i||e.contains(l)||t.some(c=>c.contains(l))||o(s))},{signal:r})}var Ao=200;function Mn(e,t,n){let r=null,o="",i=null,a=null;e.id||(e.id=M(t.role));let l=t.getButton();l.id||(l.id=M(`${t.role}-button`)),qt(e,n,()=>[t.getButton()],()=>t.getButton(),()=>t.onBeforeOpen(),()=>{t.onBeforeClose(),h(),o="",i&&(clearTimeout(i),i=null)}),Dn(e,n),e.setAttribute("popover","manual"),e.setAttribute("role",t.role),l.setAttribute("popovertarget",e.id),l.setAttribute("aria-haspopup",t.role);let s=new WeakSet;function c(){let w=t.getItems(),E={passive:!0,signal:n},x=t.role==="menu"?"menuitem":"option";for(let C of w)s.has(C)||(s.add(C),C.id||(C.id=M("item")),C.setAttribute("role",x),C.setAttribute("tabIndex","-1"),C.addEventListener("click",()=>t.onItemClick(C),E),Me(C,"mouseover",n,()=>d(C,!1)),Me(C,"mouseout",n,()=>h()))}c();let u=new MutationObserver(c);u.observe(e,{attributes:!1,childList:!0,subtree:!0}),Cn(e,[l],e,n,w=>{w===null&&(a=Date.now()+100),e.hidePopover()});let g=null,b=!1;l.addEventListener("pointerdown",w=>{if(w.button===0&&!l.matches(":disabled")){if(w.pointerType==="touch"){b=!0;return}e.togglePopover(),g=Date.now()}},{signal:n}),document.addEventListener("pointerup",w=>{if(!(w.button!==0||l.matches(":disabled")||!e.hasAttribute("open"))){if(Date.now()-(g??0)>Ao){let E=w.composedPath();if(E.includes(e)){if(g!==null){let x=p();x&&x.click()}return}for(let x of E)if(x instanceof Element&&(x.getAttribute("commandfor")||x.getAttribute("popovertarget"))===e.id)return;e.hidePopover()}g=null}},{signal:n,capture:!0}),l.addEventListener("click",w=>{if(b){b=!1;return}w.preventDefault(),w.stopPropagation()},{signal:n});let m=null;e.addEventListener("beforetoggle",w=>{let E=w;E.newState==="open"&&E.oldState==="closed"&&$.length>0&&!m&&(m=$[0])},{signal:n}),e.addEventListener("toggle",w=>{let E=w;E.newState==="closed"&&E.oldState==="open"&&setTimeout(()=>{!e.contains(document.activeElement)&&document.activeElement!==document.body||a&&Date.now()<a||(m&&m!==document.activeElement&&m.isConnected&&Lt(m),m=null)})},{signal:n}),n.addEventListener("abort",()=>{i&&(clearTimeout(i),i=null),u.disconnect()});function d(w,E=!0){let x=p();x!==null&&x.setAttribute("tabIndex","-1"),e.removeAttribute("tabIndex"),w.setAttribute("tabIndex","0"),w.focus({preventScroll:!0}),r=w,E&&w.scrollIntoView({block:"nearest"})}function h(){let w=p();w!==null&&w.setAttribute("tabIndex","-1"),r=null,e.hasAttribute("open")&&(e.setAttribute("tabIndex","0"),e.focus())}function p(){return r}function v(w,E=!1){if(w==="")return null;let x=t.getItems(),C=w.toLowerCase(),N=p(),X=N?x.indexOf(N):-1;if(!E&&N&&X!==-1&&K(N)&&(N.textContent?.trim().toLowerCase()||"").startsWith(C))return N;for(let P=X+1;P<x.length;P++)if((x[P].textContent?.trim().toLowerCase()||"").startsWith(C)&&K(x[P]))return x[P];for(let P=0;P<=X;P++)if((x[P].textContent?.trim().toLowerCase()||"").startsWith(C)&&K(x[P]))return x[P];return null}function y(w){let E=o==="";i&&(clearTimeout(i),i=null),o+=w.toLowerCase();let x=v(o,E);x&&d(x,!0),i=setTimeout(()=>{o="",i=null},350)}function A(){return o!==""}return{ignoreNextFocusRestoration:()=>a=Date.now()+100,setActiveItem:d,clearActiveItem:h,getActiveItem:p,findItemBySearchQuery:v,handleSearchKey:y,hasActiveSearchQuery:A}}var ee,fe,I,ze,xt,Tt=class extends T{constructor(){super(...arguments),L(this,ze),L(this,ee,this.attachInternals()),L(this,fe,""),L(this,I,null)}mount(e){let t=this.getOptions();this.value=this.getAttribute("value")??this.value??"";let n=this.getButton();n.id||(n.id=M("select-button")),xe(n,"--button-width",e,this),n.addEventListener("keydown",o=>{if(!n.matches(":disabled"))switch(o.key){case"ArrowUp":{t.showPopover(),this.goToItem("selected"),o.preventDefault();break}case"ArrowDown":{t.showPopover(),this.goToItem("selected"),o.preventDefault();break}case"Enter":{o.preventDefault(),f(this,ee).form&&f(this,ee).form.requestSubmit();break}case" ":{if(t.hasAttribute("open")&&f(this,I)&&f(this,I).hasActiveSearchQuery()){o.preventDefault(),o.stopPropagation(),f(this,I).handleSearchKey(o.key);break}o.preventDefault(),t.hasAttribute("open")?t.hidePopover():(t.showPopover(),this.goToItem("selected"));break}default:{t.hasAttribute("open")&&o.key.length===1&&!o.ctrlKey&&!o.altKey&&!o.metaKey&&(o.preventDefault(),o.stopPropagation(),this.handleSearchKey(o.key));break}}},{signal:e});for(let o of f(this,ee).labels)o.setAttribute("for",n.id);k(this,I,Mn(t,{role:"listbox",getItems:()=>this.getItems(),onItemClick:o=>this.setSelectedOption(o),getButton:()=>this.getButton(),onBeforeOpen:()=>this.onBeforeOpen(),onBeforeClose:()=>this.onBeforeClose()},e)),t.addEventListener("keydown",o=>{switch(o.key){case"ArrowDown":return o.preventDefault(),o.stopPropagation(),this.goToItem(3);case"ArrowUp":return o.preventDefault(),o.stopPropagation(),this.goToItem(2);case"Home":case"PageUp":return o.preventDefault(),o.stopPropagation(),this.goToItem(0);case"End":case"PageDown":return o.preventDefault(),o.stopPropagation(),this.goToItem(1);case" ":if(f(this,I)&&f(this,I).hasActiveSearchQuery()){o.preventDefault(),o.stopPropagation(),f(this,I).handleSearchKey(o.key);return}case"Enter":{o.preventDefault(),o.stopPropagation();let i=this.getActiveItem();i?i.click():t.hidePopover();return}case"Tab":{f(this,I)&&f(this,I).ignoreNextFocusRestoration();break}case"Escape":{o.preventDefault(),o.stopPropagation(),t.hidePopover(),n.focus();break}default:{o.key.length===1&&!o.ctrlKey&&!o.altKey&&!o.metaKey&&(o.preventDefault(),o.stopPropagation(),f(this,I)&&f(this,I).handleSearchKey(o.key));break}}},{signal:e}),t.addEventListener("toggle",o=>{o.newState==="open"&&this.onOpen()},{signal:e});let r=Array.from(t.querySelectorAll("el-option[disabled]"));for(let o of r)o.setAttribute("aria-disabled","true"),o.setAttribute("aria-selected","false")}onAttributeChange(e,t,n){switch(e){case"value":{n!==null&&(this.value=n);break}case"required":{q(this,ze,xt).call(this);break}}}getButton(){let e=this.querySelector("button");if(!e)throw new Error("`<el-select>` must contain a button element.");return e}getOptions(){let e=this.querySelector("el-options");if(!e)throw new Error("`<el-select>` must contain a `<el-options>` element.");return e}setSelectedOption(e){this.value=e.getAttribute("value"),this.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})),this.getOptions().hidePopover()}getOptionByName(e){return this.getOptions().getOptionByName(e)}getItems(){return this.getOptions().getItems()}getActiveItem(){return f(this,I)?.getActiveItem()}getSelectedOption(){return this.getOptionByName(f(this,fe))}goToItem(e=4){let t=this.getItems();if(t.length===0)return;let n=this.getActiveItem();if(n===null&&(e===2||e===3)){this.goToItem("selected");return}if(e==="selected"){let o=this.getSelectedOption();o&&K(o)?this.setActiveItem(o):this.goToItem(0);return}let r=Ee(t,n,e);r&&this.setActiveItem(r)}setActiveItem(e){f(this,I)&&f(this,I).setActiveItem(e)}clearActiveItem(){f(this,I)&&f(this,I).clearActiveItem()}onBeforeOpen(){let e=this.getButton(),t=e.dataset.originalTabIndex;t&&(e.dataset.originalTabIndex=t),e.setAttribute("tabIndex","-1")}onOpen(){this.getActiveItem()===null&&this.goToItem("selected")}onBeforeClose(){let e=this.getButton(),t=e.dataset.originalTabIndex;delete e.dataset.originalTabIndex,t!==void 0?e.setAttribute("tabIndex",t):e.removeAttribute("tabIndex");let n=this.getActiveItem();n!==null&&n.setAttribute("tabIndex","-1")}handleSearchKey(e){f(this,I)&&f(this,I).handleSearchKey(e)}set value(e){k(this,fe,e),f(this,ee).setFormValue(e),q(this,ze,xt).call(this);let t=this.getSelectedOption();if(t){for(let n of this.getItems())n.setAttribute("aria-selected","false");t.setAttribute("aria-selected","true");try{this.querySelectorAll("el-selectedcontent").forEach(n=>n.update())}catch{}}}get value(){return f(this,fe)}};ee=new WeakMap,fe=new WeakMap,I=new WeakMap,ze=new WeakSet,xt=function(){if(!this.hasAttribute("required")||f(this,fe)){f(this,ee).setValidity({});return}f(this,ee).setValidity({valueMissing:!0},Zr.selectRequired,this.getButton())},Q(Tt,"formAssociated",!0),Q(Tt,"observedAttributes",["required"]);var Eo=class extends T{mount(){this.update()}update(){let e=this.getSelect().getSelectedOption();if(!e)return;let t=document.createDocumentFragment();for(let n of e.childNodes)t.append(n.cloneNode(!0));this.replaceChildren(t)}getSelect(){let e=this.closest("el-select");if(!e)throw new Error("`<el-selectedcontent>` must be inside of a `<el-select>` element.");return e}};S("el-select",Tt);S("el-selectedcontent",Eo);var xo=class extends T{getButton(){let e=this.querySelector("button");if(!e)throw new Error("[ElDropdown] No `<button>` element found");return e}mount(e){let t=this.getButton();t.id||(t.id=M("dropdown-button")),xe(t,"--button-width",e,this);let n=this.querySelectorAll("label");for(let r of n)r.setAttribute("for",t.id)}},D,On=class extends T{constructor(){super(...arguments),L(this,D,null)}mount(e){k(this,D,Mn(this,{role:"menu",getItems:()=>this.getItems(),onItemClick:()=>this.hidePopover(),getButton:()=>this.getDropdown().getButton(),onBeforeOpen:()=>this.onBeforeOpen(),onBeforeClose:()=>this.onBeforeClose()},e));let t=this.getDropdown().getButton();t.addEventListener("keydown",n=>{if(!t.disabled)switch(n.key){case"ArrowDown":{this.showPopover(),this.goToItem(0),n.preventDefault();break}case"ArrowUp":{this.showPopover(),this.goToItem(1),n.preventDefault();break}case" ":if(this.hasAttribute("open")&&f(this,D)&&f(this,D).hasActiveSearchQuery()){n.preventDefault(),n.stopPropagation(),f(this,D).handleSearchKey(n.key);break}case"Enter":{n.preventDefault(),this.hasAttribute("open")?this.hidePopover():(this.showPopover(),this.goToItem(0));break}default:{this.hasAttribute("open")&&n.key.length===1&&!n.ctrlKey&&!n.altKey&&!n.metaKey&&(n.preventDefault(),n.stopPropagation(),f(this,D)&&f(this,D).handleSearchKey(n.key));break}}},{signal:e}),this.addEventListener("keydown",n=>{switch(n.key){case"ArrowDown":return n.preventDefault(),n.stopPropagation(),this.goToItem(3);case"ArrowUp":return n.preventDefault(),n.stopPropagation(),this.goToItem(2);case"Home":case"PageUp":return n.preventDefault(),n.stopPropagation(),this.goToItem(0);case"End":case"PageDown":return n.preventDefault(),n.stopPropagation(),this.goToItem(1);case" ":if(f(this,D)&&f(this,D).hasActiveSearchQuery()){n.preventDefault(),n.stopPropagation(),f(this,D).handleSearchKey(n.key);return}case"Enter":{n.preventDefault(),n.stopPropagation();let r=this.getActiveItem();r?r.click():this.hidePopover();return}case"Tab":{f(this,D)&&f(this,D).ignoreNextFocusRestoration();break}case"Escape":{n.preventDefault(),n.stopPropagation(),this.hidePopover(),t.focus();break}default:{n.key.length===1&&!n.ctrlKey&&!n.altKey&&!n.metaKey&&(n.preventDefault(),n.stopPropagation(),f(this,D)&&f(this,D).handleSearchKey(n.key));break}}},{signal:e})}onBeforeOpen(){let e=this.getDropdown().getButton(),t=e.dataset.originalTabIndex;t&&(e.dataset.originalTabIndex=t),e.setAttribute("tabIndex","-1"),this.getActiveItem()===null&&(this.setAttribute("tabIndex","0"),setTimeout(()=>this.focus({preventScroll:!0})))}onBeforeClose(){let e=this.getDropdown().getButton(),t=e.dataset.originalTabIndex;delete e.dataset.originalTabIndex,t!==void 0?e.setAttribute("tabIndex",t):e.removeAttribute("tabIndex");let n=this.getActiveItem();n!==null&&n.setAttribute("tabIndex","-1")}goToItem(e=4){let t=this.getItems();if(t.length===0)return;let n=this.getActiveItem(),r=Ee(t,n,e);r&&this.setActiveItem(r)}setActiveItem(e){f(this,D)&&f(this,D).setActiveItem(e)}clearActiveItem(){f(this,D)&&f(this,D).clearActiveItem()}getDropdown(){let e=this.closest("el-dropdown");if(!e)throw new Error("[ElMenu] No `<el-dropdown>` element found");return e}getItems(){return Array.from(this.querySelectorAll(`${Be},[role="menuitem"]`))}getActiveItem(){return f(this,D)?.getActiveItem()||null}onAttributeChange(e,t,n){e==="open"&&(n===null?this.hidePopover():this.showPopover())}};D=new WeakMap,Q(On,"observedAttributes",["anchor","open"]);S("el-menu",On);S("el-dropdown",xo);var Bn=class extends T{onAttributeChange(e,t,n){e==="open"&&(n===null?this.hidePopover():this.showPopover())}getOptionByName(e){return this.querySelector(`el-option[value="${e}"]`)||null}getItems(){return Array.from(this.querySelectorAll("el-option:not([disabled])"))}};Q(Bn,"observedAttributes",["anchor","open"]);var To=class extends T{};S("el-options",Bn);S("el-option",To);var So=class extends T{getPopovers(){return Array.from(this.querySelectorAll("* > el-popover"))}},Rn=class extends T{mount(e){if(!this.id)throw new Error("[ElPopover] No id found for popover (ensure `id` is set)");let t=this.getButtons();for(let i of t)i.id||(i.id=M("popover-button")),i.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),this.togglePopover())},{signal:e});qt(this,e,()=>this.getButtons()),this.setAttribute("tabindex","-1");let n=this,r=this.closest("el-popover-group");r&&r.getPopovers().includes(this)&&(n=r),Cn(n,t,this,e,()=>this.hidePopover());let o=new AbortController;e.addEventListener("abort",()=>o.abort()),this.addEventListener("beforetoggle",i=>{if(i.newState==="open"){let a=bt(i,t);a&&xe(a,"--button-width",o.signal,this)}else o.abort(),o=new AbortController}),this.addEventListener("toggle",i=>{i.newState==="closed"&&i.oldState==="open"&&setTimeout(()=>{if(!this.contains(document.activeElement)&&document.activeElement!==document.body)return;let a=bt(i,t);a&&a!==document.activeElement&&a.isConnected&&Lt(a)})},{signal:e})}getButtons(){let e=this.id,t=Array.from(document.querySelectorAll(`[popovertarget="${e}"]`));if(!t)throw new Error('[ElPopover] No button found for popover (ensure you add a `<button popovertarget="${id}">` on the page)');return t}onAttributeChange(e,t,n){e==="open"&&(n===null?this.hidePopover():this.showPopover())}};Q(Rn,"observedAttributes",["anchor","open"]);S("el-popover",Rn);S("el-popover-group",So);var ko=class extends T{mount(e){let t=this.getList(),n=this.getPanels(),r=t.getTabButtons(),o=n.getPanels();if(r.length!==o.length){console.warn("[ElTabGroup] Mismatch between number of tabs and panels");return}for(let a=0;a<o.length;a++){let l=o[a],s=r[a];s.id||(s.id=M("tailwindplus-tab")),l.id||(l.id=M("tailwindplus-tab-panel")),l.setAttribute("aria-labelledby",s.id),s.setAttribute("aria-controls",l.id),s.setAttribute("role","tab")}let i=this.getActiveTab();i===-1&&(i=0),t.setActiveTab(i),n.setActivePanel(i),t.addEventListener("keydown",a=>{switch(a.key){case"ArrowLeft":{a.preventDefault();let l=this.getActiveTab()-1;l<0&&(l=r.length-1),this.setActiveTab(l),r[l].focus();break}case"ArrowRight":{a.preventDefault();let l=this.getActiveTab()+1;l>=r.length&&(l=0),this.setActiveTab(l),r[l].focus();break}case"Home":case"PageUp":{a.preventDefault(),this.setActiveTab(0),r[0].focus();break}case"End":case"PageDown":{a.preventDefault(),this.setActiveTab(r.length-1),r[r.length-1].focus();break}}},{signal:e});for(let a=0;a<r.length;a++)r[a].addEventListener("click",l=>{l.preventDefault(),this.setActiveTab(a)},{signal:e})}getActiveTab(){let e=this.querySelector("el-tab-panels"),t=e.getPanels().find(n=>!n.hasAttribute("hidden"));return t?e.getPanels().indexOf(t):-1}getList(){let e=this.querySelector("el-tab-list");if(!e)throw new Error("[ElTabGroup] No `<el-tab-list>` element found");return e}getPanels(){let e=this.querySelector("el-tab-panels");if(!e)throw new Error("[ElTabGroup] No `<el-tab-panels>` element found");return e}setActiveTab(e){if(this.getActiveTab()===e)return;let t=this.getList(),n=this.getPanels(),r=t.getTabButtons();e<0||e>=r.length||(t.setActiveTab(e),n.setActivePanel(e))}},Lo=class extends T{mount(){this.setAttribute("role","tablist"),this.setAttribute("aria-orientation","horizontal")}getTabButtons(){let e=this.querySelectorAll("button");return Array.from(e)}setActiveTab(e){this.getTabButtons().forEach((t,n)=>{let r=n===e;t.setAttribute("tabindex",r?"0":"-1"),t.setAttribute("aria-selected",r?"true":"false")})}},Io=class extends T{mount(){let e=this.getTabGroup().getList(),t=this.getPanels(),n=new MutationObserver(r=>{for(let o of r){let i=o.target;switch(o.attributeName){case"hidden":if(!i.hasAttribute(o.attributeName)){let a=t.indexOf(i);e.setActiveTab(a),this.setActivePanel(a)}}}});for(let r of t)r.setAttribute("role","tabpanel"),r.setAttribute("tabindex","0"),n.observe(r,{attributeFilter:["hidden"],attributes:!0})}getTabGroup(){let e=this.closest("el-tab-group");if(!e)throw new Error("`<el-tab-panels>` must be inside of a `<el-tab-group>` element.");return e}getPanels(){return Array.from(this.children)}setActivePanel(e){this.getPanels().forEach((t,n)=>{t.toggleAttribute("hidden",n!==e)})}};S("el-tab-list",Lo);S("el-tab-panels",Io);S("el-tab-group",ko);var Do=class extends T{mount(e){let t=new WeakMap;this.addEventListener("command",n=>{let r=n;if(r.command!=="--copy")return;let o=r.source;t.get(o)?.abort();let i=new AbortController;t.set(o,i);let a=this.textContent??"";return navigator.clipboard.writeText(a).then(()=>{o.dataset.copied=""}).catch(l=>{o.dataset.error="",console.error("Failed to copy text: ",l)}).finally(()=>{let l=setTimeout(()=>{delete o.dataset.copied,delete o.dataset.error},2e3);i.signal.addEventListener("abort",()=>clearTimeout(l),{once:!0})})},{signal:e})}};S("el-copyable",Do);typeof globalThis.window<"u"&&setTimeout(()=>window.dispatchEvent(new Event("elements:ready")));

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.