@nuralyui/select 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundle.js CHANGED
@@ -3,41 +3,41 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const t=window,i=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e=Symbol(),s=new WeakMap;class o{constructor(t,i,s){if(this._$cssResult$=!0,s!==e)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const r=(t,...i)=>{const s=1===t.length?t[0]:i.reduce(((i,e,s)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[s+1]),t[0]);return new o(s,t,e)},n=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return(t=>new o("string"==typeof t?t:t+"",void 0,e))(i)})(t):t
6
+ const t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),s=new WeakMap;class o{constructor(t,e,s){if(this._$cssResult$=!0,s!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const i=this.t;if(e&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=s.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&s.set(i,t))}return t}toString(){return this.cssText}}const r=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new o(s,t,i)},l=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new o("string"==typeof t?t:t+"",void 0,i))(e)})(t):t
7
7
  /**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
- */;var l;const h=window,c=h.trustedTypes,a=c?c.emptyScript:"",d=h.reactiveElementPolyfillSupport,u={toAttribute(t,i){switch(i){case Boolean:t=t?a:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},p=(t,i)=>i!==t&&(i==i||t==t),v={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:p},b="finalized";class y extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const s=this._$Ep(e,i);void 0!==s&&(this._$Ev.set(s,e),t.push(s))})),t}static createProperty(t,i=v){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,e,i);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(s){const o=this[t];this[i]=s,this.requestUpdate(t,o,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}static finalize(){if(this.hasOwnProperty(b))return!1;this[b]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(n(t))}else void 0!==t&&i.push(n(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var e;const s=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,s)=>{i?e.adoptedStyleSheets=s.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):s.forEach((i=>{const s=document.createElement("style"),o=t.litNonce;void 0!==o&&s.setAttribute("nonce",o),s.textContent=i.cssText,e.appendChild(s)}))})(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=v){var s;const o=this.constructor._$Ep(t,e);if(void 0!==o&&!0===e.reflect){const r=(void 0!==(null===(s=e.converter)||void 0===s?void 0:s.toAttribute)?e.converter:u).toAttribute(i,e.type);this._$El=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,i){var e;const s=this.constructor,o=s._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:u;this._$El=o,this[o]=r.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,e){let s=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
11
+ */;var n;const c=window,a=c.trustedTypes,h=a?a.emptyScript:"",d=c.reactiveElementPolyfillSupport,u={toAttribute(t,e){switch(e){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},p=(t,e)=>e!==t&&(e==e||t==t),v={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:p},b="finalized";class y extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const s=this._$Ep(i,e);void 0!==s&&(this._$Ev.set(s,i),t.push(s))})),t}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}static finalize(){if(this.hasOwnProperty(b))return!1;this[b]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var i;const s=null!==(i=this.shadowRoot)&&void 0!==i?i:this.attachShadow(this.constructor.shadowRootOptions);return((i,s)=>{e?i.adoptedStyleSheets=s.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):s.forEach((e=>{const s=document.createElement("style"),o=t.litNonce;void 0!==o&&s.setAttribute("nonce",o),s.textContent=e.cssText,i.appendChild(s)}))})(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=v){var s;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==(null===(s=i.converter)||void 0===s?void 0:s.toAttribute)?i.converter:u).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:u;this._$El=o,this[o]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
12
12
  /**
13
13
  * @license
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- var f;y[b]=!0,y.elementProperties=new Map,y.elementStyles=[],y.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:y}),(null!==(l=h.reactiveElementVersions)&&void 0!==l?l:h.reactiveElementVersions=[]).push("1.6.3");const g=window,m=g.trustedTypes,w=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,x="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,E="?"+$,S=`<${E}>`,O=document,A=()=>O.createComment(""),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,z="[ \t\n\f\r]",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,N=/>/g,D=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),I=/'/g,R=/"/g,P=/^(?:script|style|textarea|title)$/i,U=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),M=new WeakMap,F=O.createTreeWalker(O,129,null,!1);function j(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==w?w.createHTML(i):i}class V{constructor({strings:t,_$litType$:i},e){let s;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[h,c]=((t,i)=>{const e=t.length-1,s=[];let o,r=2===i?"<svg>":"",n=T;for(let i=0;i<e;i++){const e=t[i];let l,h,c=-1,a=0;for(;a<e.length&&(n.lastIndex=a,h=n.exec(e),null!==h);)a=n.lastIndex,n===T?"!--"===h[1]?n=_:void 0!==h[1]?n=N:void 0!==h[2]?(P.test(h[2])&&(o=RegExp("</"+h[2],"g")),n=D):void 0!==h[3]&&(n=D):n===D?">"===h[0]?(n=null!=o?o:T,c=-1):void 0===h[1]?c=-2:(c=n.lastIndex-h[2].length,l=h[1],n=void 0===h[3]?D:'"'===h[3]?R:I):n===R||n===I?n=D:n===_||n===N?n=T:(n=D,o=void 0);const d=n===D&&t[i+1].startsWith("/>")?" ":"";r+=n===T?e+S:c>=0?(s.push(l),e.slice(0,c)+x+e.slice(c)+$+d):e+$+(-2===c?(s.push(void 0),i):d)}return[j(t,r+(t[e]||"<?>")+(2===i?"</svg>":"")),s]})(t,i);if(this.el=V.createElement(h,e),F.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(s=F.nextNode())&&l.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const i of s.getAttributeNames())if(i.endsWith(x)||i.startsWith($)){const e=c[r++];if(t.push(i),void 0!==e){const t=s.getAttribute(e.toLowerCase()+x).split($),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:o,name:i[2],strings:t,ctor:"."===i[1]?K:"?"===i[1]?Y:"@"===i[1]?Q:G})}else l.push({type:6,index:o})}for(const i of t)s.removeAttribute(i)}if(P.test(s.tagName)){const t=s.textContent.split($),i=t.length-1;if(i>0){s.textContent=m?m.emptyScript:"";for(let e=0;e<i;e++)s.append(t[e],A()),F.nextNode(),l.push({type:2,index:++o});s.append(t[i],A())}}}else if(8===s.nodeType)if(s.data===E)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf($,t+1));)l.push({type:7,index:o}),t+=$.length-1}o++}}static createElement(t,i){const e=O.createElement("template");return e.innerHTML=t,e}}function B(t,i,e=t,s){var o,r,n,l;if(i===U)return i;let h=void 0!==s?null===(o=e._$Co)||void 0===o?void 0:o[s]:e._$Cl;const c=k(i)?void 0:i._$litDirective$;return(null==h?void 0:h.constructor)!==c&&(null===(r=null==h?void 0:h._$AO)||void 0===r||r.call(h,!1),void 0===c?h=void 0:(h=new c(t),h._$AT(t,e,s)),void 0!==s?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[s]=h:e._$Cl=h),void 0!==h&&(i=B(t,h._$AS(t,i.values),h,s)),i}class H{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:s}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:O).importNode(e,!0);F.currentNode=o;let r=F.nextNode(),n=0,l=0,h=s[0];for(;void 0!==h;){if(n===h.index){let i;2===h.type?i=new W(r,r.nextSibling,this,t):1===h.type?i=new h.ctor(r,h.name,h.strings,this,t):6===h.type&&(i=new X(r,this,t)),this._$AV.push(i),h=s[++l]}n!==(null==h?void 0:h.index)&&(r=F.nextNode(),n++)}return F.currentNode=O,o}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class W{constructor(t,i,e,s){var o;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=s,this._$Cp=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=B(this,t,i),k(t)?t===L||null==t||""===t?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==U&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>C(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==L&&k(this._$AH)?this._$AA.nextSibling.data=t:this.$(O.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(j(s.h,s.h[0]),this.options)),s);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.v(e);else{const t=new H(o,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=M.get(t.strings);return void 0===i&&M.set(t.strings,i=new V(t)),i}T(t){C(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,s=0;for(const o of t)s===i.length?i.push(e=new W(this.k(A()),this.k(A()),this,this.options)):e=i[s],e._$AI(o),s++;s<i.length&&(this._$AR(e&&e._$AB.nextSibling,s),i.length=s)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,s,o){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=i,this._$AM=s,this.options=o,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,s){const o=this.strings;let r=!1;if(void 0===o)t=B(this,t,i,0),r=!k(t)||t!==this._$AH&&t!==U,r&&(this._$AH=t);else{const s=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=B(this,s[e+n],i,n),l===U&&(l=this._$AH[n]),r||(r=!k(l)||l!==this._$AH[n]),l===L?t=L:t!==L&&(t+=(null!=l?l:"")+o[n+1]),this._$AH[n]=l}r&&!s&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}}const q=m?m.emptyScript:"";class Y extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==L?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Q extends G{constructor(t,i,e,s,o){super(t,i,e,s,o),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=B(this,t,i,0))&&void 0!==e?e:L)===U)return;const s=this._$AH,o=t===L&&s!==L||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==L&&(s===L||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){B(this,t)}}const Z=g.litHtmlPolyfillSupport;
17
+ var f;y[b]=!0,y.elementProperties=new Map,y.elementStyles=[],y.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:y}),(null!==(n=c.reactiveElementVersions)&&void 0!==n?n:c.reactiveElementVersions=[]).push("1.6.3");const g=window,m=g.trustedTypes,w=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,x="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,k="?"+$,E=`<${k}>`,S=document,O=()=>S.createComment(""),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,C="[ \t\n\f\r]",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,D=/>/g,I=RegExp(`>|${C}(?:([^\\s"'>=/]+)(${C}*=${C}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,R=/"/g,L=/^(?:script|style|textarea|title)$/i,P=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),F=new WeakMap,M=S.createTreeWalker(S,129,null,!1);function j(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==w?w.createHTML(e):e}class V{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const l=t.length-1,n=this.parts,[c,a]=((t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":"",l=T;for(let e=0;e<i;e++){const i=t[e];let n,c,a=-1,h=0;for(;h<i.length&&(l.lastIndex=h,c=l.exec(i),null!==c);)h=l.lastIndex,l===T?"!--"===c[1]?l=_:void 0!==c[1]?l=D:void 0!==c[2]?(L.test(c[2])&&(o=RegExp("</"+c[2],"g")),l=I):void 0!==c[3]&&(l=I):l===I?">"===c[0]?(l=null!=o?o:T,a=-1):void 0===c[1]?a=-2:(a=l.lastIndex-c[2].length,n=c[1],l=void 0===c[3]?I:'"'===c[3]?R:N):l===R||l===N?l=I:l===_||l===D?l=T:(l=I,o=void 0);const d=l===I&&t[e+1].startsWith("/>")?" ":"";r+=l===T?i+E:a>=0?(s.push(n),i.slice(0,a)+x+i.slice(a)+$+d):i+$+(-2===a?(s.push(void 0),e):d)}return[j(t,r+(t[i]||"<?>")+(2===e?"</svg>":"")),s]})(t,e);if(this.el=V.createElement(c,i),M.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=M.nextNode())&&n.length<l;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(x)||e.startsWith($)){const i=a[r++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+x).split($),e=/([.?@])?(.*)/.exec(i);n.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?Y:"@"===e[1]?Z:G})}else n.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(L.test(s.tagName)){const t=s.textContent.split($),e=t.length-1;if(e>0){s.textContent=m?m.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],O()),M.nextNode(),n.push({type:2,index:++o});s.append(t[e],O())}}}else if(8===s.nodeType)if(s.data===k)n.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf($,t+1));)n.push({type:7,index:o}),t+=$.length-1}o++}}static createElement(t,e){const i=S.createElement("template");return i.innerHTML=t,i}}function B(t,e,i=t,s){var o,r,l,n;if(e===P)return e;let c=void 0!==s?null===(o=i._$Co)||void 0===o?void 0:o[s]:i._$Cl;const a=A(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==a&&(null===(r=null==c?void 0:c._$AO)||void 0===r||r.call(c,!1),void 0===a?c=void 0:(c=new a(t),c._$AT(t,i,s)),void 0!==s?(null!==(l=(n=i)._$Co)&&void 0!==l?l:n._$Co=[])[s]=c:i._$Cl=c),void 0!==c&&(e=B(t,c._$AS(t,e.values),c,s)),e}class H{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:S).importNode(i,!0);M.currentNode=o;let r=M.nextNode(),l=0,n=0,c=s[0];for(;void 0!==c;){if(l===c.index){let e;2===c.type?e=new W(r,r.nextSibling,this,t):1===c.type?e=new c.ctor(r,c.name,c.strings,this,t):6===c.type&&(e=new Q(r,this,t)),this._$AV.push(e),c=s[++n]}l!==(null==c?void 0:c.index)&&(r=M.nextNode(),l++)}return M.currentNode=S,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class W{constructor(t,e,i,s){var o;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=B(this,t,e),A(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==P&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>z(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==U&&A(this._$AH)?this._$AA.nextSibling.data=t:this.$(S.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(j(s.h,s.h[0]),this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new H(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=F.get(t.strings);return void 0===e&&F.set(t.strings,e=new V(t)),e}T(t){z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new W(this.k(O()),this.k(O()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class G{constructor(t,e,i,s,o){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=B(this,t,e,0),r=!A(t)||t!==this._$AH&&t!==P,r&&(this._$AH=t);else{const s=t;let l,n;for(t=o[0],l=0;l<o.length-1;l++)n=B(this,s[i+l],e,l),n===P&&(n=this._$AH[l]),r||(r=!A(n)||n!==this._$AH[l]),n===U?t=U:t!==U&&(t+=(null!=n?n:"")+o[l+1]),this._$AH[l]=n}r&&!s&&this.j(t)}j(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===U?void 0:t}}const q=m?m.emptyScript:"";class Y extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==U?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Z extends G{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=B(this,t,e,0))&&void 0!==i?i:U)===P)return;const s=this._$AH,o=t===U&&s!==U||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==U&&(s===U||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){B(this,t)}}const X=g.litHtmlPolyfillSupport;
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */
23
- var J;null==Z||Z(V,W),(null!==(f=g.litHtmlVersions)&&void 0!==f?f:g.litHtmlVersions=[]).push("2.8.0");const tt=window,it=tt.trustedTypes,et=it?it.createPolicy("lit-html",{createHTML:t=>t}):void 0,st="$lit$",ot=`lit$${(Math.random()+"").slice(9)}$`,rt="?"+ot,nt=`<${rt}>`,lt=document,ht=()=>lt.createComment(""),ct=t=>null===t||"object"!=typeof t&&"function"!=typeof t,at=Array.isArray,dt="[ \t\n\f\r]",ut=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pt=/-->/g,vt=/>/g,bt=RegExp(`>|${dt}(?:([^\\s"'>=/]+)(${dt}*=${dt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),yt=/'/g,ft=/"/g,gt=/^(?:script|style|textarea|title)$/i,mt=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),wt=Symbol.for("lit-noChange"),xt=Symbol.for("lit-nothing"),$t=new WeakMap,Et=lt.createTreeWalker(lt,129,null,!1);function St(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==et?et.createHTML(i):i}const Ot=(t,i)=>{const e=t.length-1,s=[];let o,r=2===i?"<svg>":"",n=ut;for(let i=0;i<e;i++){const e=t[i];let l,h,c=-1,a=0;for(;a<e.length&&(n.lastIndex=a,h=n.exec(e),null!==h);)a=n.lastIndex,n===ut?"!--"===h[1]?n=pt:void 0!==h[1]?n=vt:void 0!==h[2]?(gt.test(h[2])&&(o=RegExp("</"+h[2],"g")),n=bt):void 0!==h[3]&&(n=bt):n===bt?">"===h[0]?(n=null!=o?o:ut,c=-1):void 0===h[1]?c=-2:(c=n.lastIndex-h[2].length,l=h[1],n=void 0===h[3]?bt:'"'===h[3]?ft:yt):n===ft||n===yt?n=bt:n===pt||n===vt?n=ut:(n=bt,o=void 0);const d=n===bt&&t[i+1].startsWith("/>")?" ":"";r+=n===ut?e+nt:c>=0?(s.push(l),e.slice(0,c)+st+e.slice(c)+ot+d):e+ot+(-2===c?(s.push(void 0),i):d)}return[St(t,r+(t[e]||"<?>")+(2===i?"</svg>":"")),s]};class At{constructor({strings:t,_$litType$:i},e){let s;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[h,c]=Ot(t,i);if(this.el=At.createElement(h,e),Et.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(s=Et.nextNode())&&l.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const i of s.getAttributeNames())if(i.endsWith(st)||i.startsWith(ot)){const e=c[r++];if(t.push(i),void 0!==e){const t=s.getAttribute(e.toLowerCase()+st).split(ot),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:o,name:i[2],strings:t,ctor:"."===i[1]?_t:"?"===i[1]?Dt:"@"===i[1]?It:Tt})}else l.push({type:6,index:o})}for(const i of t)s.removeAttribute(i)}if(gt.test(s.tagName)){const t=s.textContent.split(ot),i=t.length-1;if(i>0){s.textContent=it?it.emptyScript:"";for(let e=0;e<i;e++)s.append(t[e],ht()),Et.nextNode(),l.push({type:2,index:++o});s.append(t[i],ht())}}}else if(8===s.nodeType)if(s.data===rt)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(ot,t+1));)l.push({type:7,index:o}),t+=ot.length-1}o++}}static createElement(t,i){const e=lt.createElement("template");return e.innerHTML=t,e}}function kt(t,i,e=t,s){var o,r,n,l;if(i===wt)return i;let h=void 0!==s?null===(o=e._$Co)||void 0===o?void 0:o[s]:e._$Cl;const c=ct(i)?void 0:i._$litDirective$;return(null==h?void 0:h.constructor)!==c&&(null===(r=null==h?void 0:h._$AO)||void 0===r||r.call(h,!1),void 0===c?h=void 0:(h=new c(t),h._$AT(t,e,s)),void 0!==s?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[s]=h:e._$Cl=h),void 0!==h&&(i=kt(t,h._$AS(t,i.values),h,s)),i}class Ct{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:s}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:lt).importNode(e,!0);Et.currentNode=o;let r=Et.nextNode(),n=0,l=0,h=s[0];for(;void 0!==h;){if(n===h.index){let i;2===h.type?i=new zt(r,r.nextSibling,this,t):1===h.type?i=new h.ctor(r,h.name,h.strings,this,t):6===h.type&&(i=new Rt(r,this,t)),this._$AV.push(i),h=s[++l]}n!==(null==h?void 0:h.index)&&(r=Et.nextNode(),n++)}return Et.currentNode=lt,o}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class zt{constructor(t,i,e,s){var o;this.type=2,this._$AH=xt,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=s,this._$Cp=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=kt(this,t,i),ct(t)?t===xt||null==t||""===t?(this._$AH!==xt&&this._$AR(),this._$AH=xt):t!==this._$AH&&t!==wt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>at(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==xt&&ct(this._$AH)?this._$AA.nextSibling.data=t:this.$(lt.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=At.createElement(St(s.h,s.h[0]),this.options)),s);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.v(e);else{const t=new Ct(o,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=$t.get(t.strings);return void 0===i&&$t.set(t.strings,i=new At(t)),i}T(t){at(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,s=0;for(const o of t)s===i.length?i.push(e=new zt(this.k(ht()),this.k(ht()),this,this.options)):e=i[s],e._$AI(o),s++;s<i.length&&(this._$AR(e&&e._$AB.nextSibling,s),i.length=s)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Tt{constructor(t,i,e,s,o){this.type=1,this._$AH=xt,this._$AN=void 0,this.element=t,this.name=i,this._$AM=s,this.options=o,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=xt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,s){const o=this.strings;let r=!1;if(void 0===o)t=kt(this,t,i,0),r=!ct(t)||t!==this._$AH&&t!==wt,r&&(this._$AH=t);else{const s=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=kt(this,s[e+n],i,n),l===wt&&(l=this._$AH[n]),r||(r=!ct(l)||l!==this._$AH[n]),l===xt?t=xt:t!==xt&&(t+=(null!=l?l:"")+o[n+1]),this._$AH[n]=l}r&&!s&&this.j(t)}j(t){t===xt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _t extends Tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===xt?void 0:t}}const Nt=it?it.emptyScript:"";class Dt extends Tt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==xt?this.element.setAttribute(this.name,Nt):this.element.removeAttribute(this.name)}}class It extends Tt{constructor(t,i,e,s,o){super(t,i,e,s,o),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=kt(this,t,i,0))&&void 0!==e?e:xt)===wt)return;const s=this._$AH,o=t===xt&&s!==xt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==xt&&(s===xt||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Rt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){kt(this,t)}}const Pt=tt.litHtmlPolyfillSupport;null==Pt||Pt(At,zt),(null!==(J=tt.litHtmlVersions)&&void 0!==J?J:tt.litHtmlVersions=[]).push("2.8.0");
23
+ var J;null==X||X(V,W),(null!==(f=g.litHtmlVersions)&&void 0!==f?f:g.litHtmlVersions=[]).push("2.8.0");const tt=window,et=tt.trustedTypes,it=et?et.createPolicy("lit-html",{createHTML:t=>t}):void 0,st="$lit$",ot=`lit$${(Math.random()+"").slice(9)}$`,rt="?"+ot,lt=`<${rt}>`,nt=document,ct=()=>nt.createComment(""),at=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ht=Array.isArray,dt="[ \t\n\f\r]",ut=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pt=/-->/g,vt=/>/g,bt=RegExp(`>|${dt}(?:([^\\s"'>=/]+)(${dt}*=${dt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),yt=/'/g,ft=/"/g,gt=/^(?:script|style|textarea|title)$/i,mt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),wt=Symbol.for("lit-noChange"),xt=Symbol.for("lit-nothing"),$t=new WeakMap,kt=nt.createTreeWalker(nt,129,null,!1);function Et(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==it?it.createHTML(e):e}const St=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":"",l=ut;for(let e=0;e<i;e++){const i=t[e];let n,c,a=-1,h=0;for(;h<i.length&&(l.lastIndex=h,c=l.exec(i),null!==c);)h=l.lastIndex,l===ut?"!--"===c[1]?l=pt:void 0!==c[1]?l=vt:void 0!==c[2]?(gt.test(c[2])&&(o=RegExp("</"+c[2],"g")),l=bt):void 0!==c[3]&&(l=bt):l===bt?">"===c[0]?(l=null!=o?o:ut,a=-1):void 0===c[1]?a=-2:(a=l.lastIndex-c[2].length,n=c[1],l=void 0===c[3]?bt:'"'===c[3]?ft:yt):l===ft||l===yt?l=bt:l===pt||l===vt?l=ut:(l=bt,o=void 0);const d=l===bt&&t[e+1].startsWith("/>")?" ":"";r+=l===ut?i+lt:a>=0?(s.push(n),i.slice(0,a)+st+i.slice(a)+ot+d):i+ot+(-2===a?(s.push(void 0),e):d)}return[Et(t,r+(t[i]||"<?>")+(2===e?"</svg>":"")),s]};class Ot{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const l=t.length-1,n=this.parts,[c,a]=St(t,e);if(this.el=Ot.createElement(c,i),kt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=kt.nextNode())&&n.length<l;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(st)||e.startsWith(ot)){const i=a[r++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+st).split(ot),e=/([.?@])?(.*)/.exec(i);n.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?_t:"?"===e[1]?It:"@"===e[1]?Nt:Tt})}else n.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(gt.test(s.tagName)){const t=s.textContent.split(ot),e=t.length-1;if(e>0){s.textContent=et?et.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],ct()),kt.nextNode(),n.push({type:2,index:++o});s.append(t[e],ct())}}}else if(8===s.nodeType)if(s.data===rt)n.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(ot,t+1));)n.push({type:7,index:o}),t+=ot.length-1}o++}}static createElement(t,e){const i=nt.createElement("template");return i.innerHTML=t,i}}function At(t,e,i=t,s){var o,r,l,n;if(e===wt)return e;let c=void 0!==s?null===(o=i._$Co)||void 0===o?void 0:o[s]:i._$Cl;const a=at(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==a&&(null===(r=null==c?void 0:c._$AO)||void 0===r||r.call(c,!1),void 0===a?c=void 0:(c=new a(t),c._$AT(t,i,s)),void 0!==s?(null!==(l=(n=i)._$Co)&&void 0!==l?l:n._$Co=[])[s]=c:i._$Cl=c),void 0!==c&&(e=At(t,c._$AS(t,e.values),c,s)),e}class zt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:nt).importNode(i,!0);kt.currentNode=o;let r=kt.nextNode(),l=0,n=0,c=s[0];for(;void 0!==c;){if(l===c.index){let e;2===c.type?e=new Ct(r,r.nextSibling,this,t):1===c.type?e=new c.ctor(r,c.name,c.strings,this,t):6===c.type&&(e=new Rt(r,this,t)),this._$AV.push(e),c=s[++n]}l!==(null==c?void 0:c.index)&&(r=kt.nextNode(),l++)}return kt.currentNode=nt,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Ct{constructor(t,e,i,s){var o;this.type=2,this._$AH=xt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=At(this,t,e),at(t)?t===xt||null==t||""===t?(this._$AH!==xt&&this._$AR(),this._$AH=xt):t!==this._$AH&&t!==wt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>ht(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==xt&&at(this._$AH)?this._$AA.nextSibling.data=t:this.$(nt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=Ot.createElement(Et(s.h,s.h[0]),this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new zt(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=$t.get(t.strings);return void 0===e&&$t.set(t.strings,e=new Ot(t)),e}T(t){ht(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new Ct(this.k(ct()),this.k(ct()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Tt{constructor(t,e,i,s,o){this.type=1,this._$AH=xt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=xt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=At(this,t,e,0),r=!at(t)||t!==this._$AH&&t!==wt,r&&(this._$AH=t);else{const s=t;let l,n;for(t=o[0],l=0;l<o.length-1;l++)n=At(this,s[i+l],e,l),n===wt&&(n=this._$AH[l]),r||(r=!at(n)||n!==this._$AH[l]),n===xt?t=xt:t!==xt&&(t+=(null!=n?n:"")+o[l+1]),this._$AH[l]=n}r&&!s&&this.j(t)}j(t){t===xt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _t extends Tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===xt?void 0:t}}const Dt=et?et.emptyScript:"";class It extends Tt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==xt?this.element.setAttribute(this.name,Dt):this.element.removeAttribute(this.name)}}class Nt extends Tt{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=At(this,t,e,0))&&void 0!==i?i:xt)===wt)return;const s=this._$AH,o=t===xt&&s!==xt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==xt&&(s===xt||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Rt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){At(this,t)}}const Lt=tt.litHtmlPolyfillSupport;null==Lt||Lt(Ot,Ct),(null!==(J=tt.litHtmlVersions)&&void 0!==J?J:tt.litHtmlVersions=[]).push("2.8.0");
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
28
  */
29
- var Ut,Lt;class Mt extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var s,o;const r=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:i;let n=r._$litPart$;if(void 0===n){const t=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:null;r._$litPart$=n=new zt(i.insertBefore(ht(),t),t,void 0,null!=e?e:{})}return n._$AI(t),n})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return wt}}Mt.finalized=!0,Mt._$litElement$=!0,null===(Ut=globalThis.litElementHydrateSupport)||void 0===Ut||Ut.call(globalThis,{LitElement:Mt});const Ft=globalThis.litElementPolyfillSupport;null==Ft||Ft({LitElement:Mt}),(null!==(Lt=globalThis.litElementVersions)&&void 0!==Lt?Lt:globalThis.litElementVersions=[]).push("3.3.3");
29
+ var Pt,Ut;class Ft extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var s,o;const r=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let l=r._$litPart$;if(void 0===l){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=l=new Ct(e.insertBefore(ct(),t),t,void 0,null!=i?i:{})}return l._$AI(t),l})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return wt}}Ft.finalized=!0,Ft._$litElement$=!0,null===(Pt=globalThis.litElementHydrateSupport)||void 0===Pt||Pt.call(globalThis,{LitElement:Ft});const Mt=globalThis.litElementPolyfillSupport;null==Mt||Mt({LitElement:Ft}),(null!==(Ut=globalThis.litElementVersions)&&void 0!==Ut?Ut:globalThis.litElementVersions=[]).push("3.3.3");
30
30
  /**
31
31
  * @license
32
32
  * Copyright 2017 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
34
  */
35
- const jt=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};
35
+ const jt=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};
36
36
  /**
37
37
  * @license
38
38
  * Copyright 2017 Google LLC
39
39
  * SPDX-License-Identifier: BSD-3-Clause
40
- */function Vt(t){return(i,e)=>void 0!==e?((t,i,e)=>{i.constructor.createProperty(e,t)})(t,i,e):jt(t,i)
40
+ */function Vt(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):jt(t,e)
41
41
  /**
42
42
  * @license
43
43
  * Copyright 2017 Google LLC
@@ -48,7 +48,7 @@ const jt=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i
48
48
  * Copyright 2017 Google LLC
49
49
  * SPDX-License-Identifier: BSD-3-Clause
50
50
  */
51
- function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s){const s=null!==(o=e.originalKey)&&void 0!==o?o:e.key,r=null!=i?{kind:"method",placement:"prototype",key:s,descriptor:i(e.key)}:{...e,key:s};return null!=t&&(r.finisher=function(i){t(i,s)}),r}{const o=e.constructor;void 0!==i&&Object.defineProperty(e,s,i(s)),null==t||t(o,s)}})({descriptor:e=>{const s={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;s.get=function(){var e,s;return void 0===this[i]&&(this[i]=null!==(s=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==s?s:null),this[i]}}return s}})}
51
+ function Bt(t,e){return(({finisher:t,descriptor:e})=>(i,s)=>{var o;if(void 0===s){const s=null!==(o=i.originalKey)&&void 0!==o?o:i.key,r=null!=e?{kind:"method",placement:"prototype",key:s,descriptor:e(i.key)}:{...i,key:s};return null!=t&&(r.finisher=function(e){t(e,s)}),r}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,s,e(s)),null==t||t(o,s)}})({descriptor:i=>{const s={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;s.get=function(){var i,s;return void 0===this[e]&&(this[e]=null!==(s=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==s?s:null),this[e]}}return s}})}
52
52
  /**
53
53
  * @license
54
54
  * Copyright 2021 Google LLC
@@ -59,8 +59,11 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
59
59
  /* Layout and sizing */
60
60
  --hybrid-select-local-width: 300px;
61
61
  --hybrid-select-local-min-height: 40px;
62
+ --hybrid-select-local-padding-top: 8px;
63
+ --hybrid-select-local-padding-bottom: 8px;
62
64
  --hybrid-select-local-padding-left: 12px;
63
65
  --hybrid-select-local-padding-right: 12px;
66
+ --hybrid-select-local-wrapper-margin: 0;
64
67
  --hybrid-select-local-border-radius: 6px;
65
68
  --hybrid-select-local-border-width: 1px;
66
69
 
@@ -79,6 +82,8 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
79
82
  --hybrid-select-local-dropdown-background: #ffffff;
80
83
  --hybrid-select-local-dropdown-border-color: #d9d9d9;
81
84
  --hybrid-select-local-dropdown-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08);
85
+ --hybrid-select-local-dropdown-z-index: 9999;
86
+ --hybrid-select-local-dropdown-max-height: 200px;
82
87
  --hybrid-select-local-option-hover-background: #f5f5f5;
83
88
  --hybrid-select-local-option-selected-background: #e6f7ff;
84
89
  --hybrid-select-local-option-selected-color: #1677ff;
@@ -144,6 +149,7 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
144
149
  font-family: var(--hybrid-select-font-family, var(--hybrid-select-local-font-family));
145
150
  font-size: var(--hybrid-select-font-size, var(--hybrid-select-local-font-size));
146
151
  line-height: var(--hybrid-select-line-height, var(--hybrid-select-local-line-height));
152
+ margin: var(--hybrid-select-margin, var(--hybrid-select-local-wrapper-margin));
147
153
  }
148
154
 
149
155
  /* Host attribute selectors for configuration */
@@ -159,37 +165,97 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
159
165
  cursor: not-allowed;
160
166
  }
161
167
 
162
- /* Theme-specific styles */
163
- :host([theme='dark']) {
168
+ /*
169
+ * Light theme styles using data-theme attribute on wrapper element
170
+ * These are explicit light theme overrides when data-theme="light" is applied
171
+ */
172
+ .wrapper[data-theme="light"] {
173
+ /* Select wrapper light theme overrides */
174
+ --hybrid-select-local-background-color: #ffffff;
175
+ --hybrid-select-local-border-color: #d9d9d9;
176
+ --hybrid-select-local-text-color: #262626;
177
+ --hybrid-select-local-placeholder-color: #8c8c8c;
178
+ --hybrid-select-local-hover-border-color: #1677ff;
179
+ --hybrid-select-local-focus-border-color: #1677ff;
180
+
181
+ /* Dropdown light theme overrides */
182
+ --hybrid-select-local-dropdown-background: #ffffff;
183
+ --hybrid-select-local-dropdown-border-color: #d9d9d9;
184
+ --hybrid-select-local-option-hover-background: #f5f5f5;
185
+ --hybrid-select-local-option-selected-background: #e6f7ff;
186
+ --hybrid-select-local-option-selected-color: #1677ff;
187
+
188
+ /* Tag styles for multi-select light theme */
189
+ --hybrid-select-local-tag-background: #f0f0f0;
190
+ --hybrid-select-local-tag-color: #262626;
191
+ --hybrid-select-local-tag-close-color: #8c8c8c;
192
+ --hybrid-select-local-tag-close-hover-color: #da1e28;
193
+
194
+ /* Icon colors for light theme */
195
+ --hybrid-select-local-icon-color: #8c8c8c;
196
+ --hybrid-select-local-icon-hover-color: #1677ff;
197
+ }
198
+
199
+ /*
200
+ * Dark theme styles using data-theme attribute on wrapper element
201
+ * These override the light theme defaults when data-theme="dark" is applied
202
+ */
203
+ .wrapper[data-theme="dark"] {
204
+ /* Select wrapper dark theme overrides */
164
205
  --hybrid-select-local-background-color: #262626;
165
206
  --hybrid-select-local-border-color: #424242;
166
207
  --hybrid-select-local-text-color: #ffffff;
167
208
  --hybrid-select-local-placeholder-color: #8c8c8c;
209
+ --hybrid-select-local-hover-border-color: #4096ff;
210
+ --hybrid-select-local-focus-border-color: #4096ff;
211
+
212
+ /* Dropdown dark theme overrides */
168
213
  --hybrid-select-local-dropdown-background: #262626;
169
214
  --hybrid-select-local-dropdown-border-color: #424242;
170
215
  --hybrid-select-local-option-hover-background: #393939;
171
216
  --hybrid-select-local-option-selected-background: #1e3a5f;
172
- --hybrid-select-local-hover-border-color: #4096ff;
173
- --hybrid-select-local-focus-border-color: #4096ff;
217
+ --hybrid-select-local-option-selected-color: #4096ff;
218
+
219
+ /* Tag styles for multi-select dark theme */
220
+ --hybrid-select-local-tag-background: #393939;
221
+ --hybrid-select-local-tag-color: #ffffff;
222
+ --hybrid-select-local-tag-close-color: #8c8c8c;
223
+ --hybrid-select-local-tag-close-hover-color: #ff4d4f;
224
+
225
+ /* Icon colors for dark theme */
226
+ --hybrid-select-local-icon-color: #8c8c8c;
227
+ --hybrid-select-local-icon-hover-color: #4096ff;
174
228
  }
175
229
 
176
230
  /* Size variants */
177
231
  :host([size='small']) .wrapper {
178
232
  min-height: var(--hybrid-select-small-height, var(--hybrid-select-local-small-height));
179
233
  font-size: var(--hybrid-select-small-font-size, var(--hybrid-select-local-small-font-size));
180
- padding: 0;
234
+ }
235
+
236
+ :host([size='small']) .select-trigger {
237
+ padding: var(--hybrid-select-small-padding, var(--hybrid-select-local-small-padding));
238
+ padding-right: calc(var(--hybrid-select-icon-size, var(--hybrid-select-local-icon-size)) + 20px);
181
239
  }
182
240
 
183
241
  :host([size='medium']) .wrapper {
184
242
  min-height: var(--hybrid-select-medium-height, var(--hybrid-select-local-medium-height));
185
243
  font-size: var(--hybrid-select-medium-font-size, var(--hybrid-select-local-medium-font-size));
186
- padding: 0;
244
+ }
245
+
246
+ :host([size='medium']) .select-trigger {
247
+ padding: var(--hybrid-select-medium-padding, var(--hybrid-select-local-medium-padding));
248
+ padding-right: calc(var(--hybrid-select-icon-size, var(--hybrid-select-local-icon-size)) + 20px);
187
249
  }
188
250
 
189
251
  :host([size='large']) .wrapper {
190
252
  min-height: var(--hybrid-select-large-height, var(--hybrid-select-local-large-height));
191
253
  font-size: var(--hybrid-select-large-font-size, var(--hybrid-select-local-large-font-size));
192
- padding: 0;
254
+ }
255
+
256
+ :host([size='large']) .select-trigger {
257
+ padding: var(--hybrid-select-large-padding, var(--hybrid-select-local-large-padding));
258
+ padding-right: calc(var(--hybrid-select-icon-size, var(--hybrid-select-local-icon-size)) + 20px);
193
259
  }
194
260
 
195
261
  /* Status variants */
@@ -233,6 +299,10 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
233
299
  var(--hybrid-select-transition-timing, var(--hybrid-select-local-transition-timing));
234
300
  cursor: pointer;
235
301
  outline: none;
302
+ margin: var(--hybrid-select-wrapper-margin, 0);
303
+ min-height: var(--hybrid-select-min-height, var(--hybrid-select-local-min-height));
304
+ /* Ensure dropdown can overflow the wrapper */
305
+ overflow: visible;
236
306
  }
237
307
 
238
308
  .wrapper:hover:not(:disabled) {
@@ -249,14 +319,16 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
249
319
  .select {
250
320
  display: flex;
251
321
  flex-direction: column;
252
- position: relative;
253
322
  }
254
323
 
255
324
  /* Select trigger (main display area) */
256
325
  .select-trigger {
257
326
  display: flex;
258
327
  align-items: center;
259
- padding: 0 calc(var(--hybrid-select-icon-size, var(--hybrid-select-local-icon-size)) + 20px) 0 12px;
328
+ padding: var(--hybrid-select-padding-top, var(--hybrid-select-local-padding-top))
329
+ calc(var(--hybrid-select-icon-size, var(--hybrid-select-local-icon-size)) + 20px)
330
+ var(--hybrid-select-padding-bottom, var(--hybrid-select-local-padding-bottom))
331
+ var(--hybrid-select-padding-left, var(--hybrid-select-local-padding-left));
260
332
  color: var(--hybrid-select-text-color, var(--hybrid-select-local-text-color));
261
333
  font-size: inherit;
262
334
  line-height: inherit;
@@ -346,6 +418,7 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
346
418
  /* Default positioning - will be overridden by controller when opened */
347
419
  position: absolute;
348
420
  top: 100%;
421
+ margin-top: 1px;
349
422
  left: 0;
350
423
  right: 0;
351
424
  background-color: var(--hybrid-select-dropdown-background, var(--hybrid-select-local-dropdown-background));
@@ -353,8 +426,8 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
353
426
  var(--hybrid-select-dropdown-border-color, var(--hybrid-select-local-dropdown-border-color));
354
427
  border-radius: var(--hybrid-select-border-radius, var(--hybrid-select-local-border-radius));
355
428
  box-shadow: var(--hybrid-select-dropdown-shadow, var(--hybrid-select-local-dropdown-shadow));
356
- z-index: 1000;
357
- max-height: 200px;
429
+ z-index: var(--hybrid-select-dropdown-z-index, var(--hybrid-select-local-dropdown-z-index));
430
+ max-height: var(--hybrid-select-dropdown-max-height, var(--hybrid-select-local-dropdown-max-height));
358
431
  overflow-y: auto;
359
432
  overflow-x: hidden;
360
433
  display: none;
@@ -363,11 +436,20 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
363
436
  /* Ensure proper containment and exact wrapper width */
364
437
  box-sizing: border-box;
365
438
  width: 100%;
439
+ /* Create new stacking context to prevent layering issues */
440
+ isolation: isolate;
441
+ /* Ensure solid background to prevent visual bleed-through */
442
+ backdrop-filter: none;
443
+ -webkit-backdrop-filter: none;
444
+ /* Force above other elements */
445
+ transform: translateZ(0);
366
446
  }
367
447
 
368
448
  .options.placement-top {
369
449
  top: auto;
370
450
  bottom: 100%;
451
+ margin-bottom: 1px;
452
+ margin-top: 0;
371
453
  animation: dropdown-enter-top var(--hybrid-select-dropdown-animation-duration, var(--hybrid-select-local-dropdown-animation-duration)) ease-out;
372
454
  }
373
455
 
@@ -393,6 +475,62 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
393
475
  }
394
476
  }
395
477
 
478
+ /* Search container - sticky at top of dropdown */
479
+ .search-container {
480
+ position: sticky;
481
+ top: 0;
482
+ z-index: 10;
483
+ background-color: var(--hybrid-select-dropdown-background, var(--hybrid-select-local-dropdown-background));
484
+ border-bottom: var(--hybrid-select-border-width, var(--hybrid-select-local-border-width)) solid
485
+ var(--hybrid-select-dropdown-border-color, var(--hybrid-select-local-dropdown-border-color));
486
+ padding: 8px;
487
+ margin: 0;
488
+ /* Ensure it stays above options during scroll */
489
+ backdrop-filter: blur(8px);
490
+ -webkit-backdrop-filter: blur(8px);
491
+ /* Ensure proper stacking and smooth scrolling */
492
+ will-change: transform;
493
+ transform: translateZ(0);
494
+ }
495
+
496
+ /* Search input styling */
497
+ .search-container .search-input {
498
+ width: 100%;
499
+ --hybrid-input-border-radius: var(--hybrid-select-border-radius, var(--hybrid-select-local-border-radius));
500
+ --hybrid-input-background-color: var(--hybrid-select-background-color, var(--hybrid-select-local-background-color));
501
+ --hybrid-input-border-color: var(--hybrid-select-border-color, var(--hybrid-select-local-border-color));
502
+ --hybrid-input-text-color: var(--hybrid-select-text-color, var(--hybrid-select-local-text-color));
503
+ --hybrid-input-placeholder-color: var(--hybrid-select-placeholder-color, var(--hybrid-select-local-placeholder-color));
504
+ }
505
+
506
+ /* Search icon in the search input */
507
+ .search-container .search-icon {
508
+ --hybrid-icon-color: var(--hybrid-select-icon-color, var(--hybrid-select-local-icon-color));
509
+ }
510
+
511
+ /* Dark theme overrides for search container */
512
+ .wrapper[data-theme="dark"] .search-container {
513
+ background-color: var(--hybrid-select-local-dropdown-background);
514
+ border-bottom-color: var(--hybrid-select-local-dropdown-border-color);
515
+ }
516
+
517
+ .wrapper[data-theme="dark"] .search-container .search-input {
518
+ --hybrid-input-background-color: var(--hybrid-select-local-background-color);
519
+ --hybrid-input-border-color: var(--hybrid-select-local-border-color);
520
+ --hybrid-input-text-color: var(--hybrid-select-local-text-color);
521
+ --hybrid-input-placeholder-color: var(--hybrid-select-local-placeholder-color);
522
+ }
523
+
524
+ .wrapper[data-theme="dark"] .search-container .search-icon {
525
+ --hybrid-icon-color: var(--hybrid-select-local-icon-color);
526
+ }
527
+
528
+ /* Options list container - ensure proper scroll behavior with sticky search */
529
+ .options:has(.search-container) {
530
+ /* Add small padding-top when search is present to ensure proper separation */
531
+ padding-top: 0;
532
+ }
533
+
396
534
  /* Option items */
397
535
  .option {
398
536
  display: flex;
@@ -406,6 +544,11 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
406
544
  position: relative;
407
545
  }
408
546
 
547
+ /* First option after search container should have no extra margin */
548
+ .search-container + .option {
549
+ margin-top: 0;
550
+ }
551
+
409
552
  .option:hover {
410
553
  background-color: var(--hybrid-select-option-hover-background, var(--hybrid-select-local-option-hover-background));
411
554
  }
@@ -560,27 +703,27 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
560
703
  * @license
561
704
  * Copyright 2021 Google LLC
562
705
  * SPDX-License-Identifier: BSD-3-Clause
563
- */;function*Gt(t,i){if(void 0!==t){let e=0;for(const s of t)yield i(s,e++)}}
706
+ */;function*Gt(t,e){if(void 0!==t){let i=0;for(const s of t)yield e(s,i++)}}
564
707
  /**
565
708
  * @license
566
709
  * Copyright 2021 Google LLC
567
710
  * SPDX-License-Identifier: BSD-3-Clause
568
- */const Kt=1,qt=t=>(...i)=>({_$litDirective$:t,values:i});
711
+ */const Kt=1,qt=t=>(...e)=>({_$litDirective$:t,values:e});
569
712
  /**
570
713
  * @license
571
714
  * Copyright 2017 Google LLC
572
715
  * SPDX-License-Identifier: BSD-3-Clause
573
- */class Yt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
716
+ */class Yt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
574
717
  /**
575
718
  * @license
576
719
  * Copyright 2018 Google LLC
577
720
  * SPDX-License-Identifier: BSD-3-Clause
578
- */const Qt=qt(class extends Yt{constructor(t){var i;if(super(t),t.type!==Kt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,s;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(i)}const o=t.element.classList;this.it.forEach((t=>{t in i||(o.remove(t),this.it.delete(t))}));for(const t in i){const e=!!i[t];e===this.it.has(t)||(null===(s=this.nt)||void 0===s?void 0:s.has(t))||(e?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return U}}),Xt="important",Zt=" !"+Xt,Jt=qt(class extends Yt{constructor(t){var i;if(super(t),t.type!==Kt||"style"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((i,e)=>{const s=t[e];return null==s?i:i+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(t,[i]){const{style:e}=t.element;if(void 0===this.ht){this.ht=new Set;for(const t in i)this.ht.add(t);return this.render(i)}this.ht.forEach((t=>{null==i[t]&&(this.ht.delete(t),t.includes("-")?e.removeProperty(t):e[t]="")}));for(const t in i){const s=i[t];if(null!=s){this.ht.add(t);const i="string"==typeof s&&s.endsWith(Zt);t.includes("-")||i?e.setProperty(t,i?s.slice(0,-11):s,i?Xt:""):e[t]=s}}return U}}),ti=t=>class extends t{constructor(){super(...arguments),this.handleSystemThemeChange=()=>{this.closest("[data-theme]")||document.documentElement.hasAttribute("data-theme")||this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setupThemeObserver(),this.setupSystemThemeListener()}disconnectedCallback(){var t,i;super.disconnectedCallback(),null===(t=this.themeObserver)||void 0===t||t.disconnect(),null===(i=this.mediaQuery)||void 0===i||i.removeEventListener("change",this.handleSystemThemeChange)}get currentTheme(){var t,i;const e=(null===(t=this.closest("[data-theme]"))||void 0===t?void 0:t.getAttribute("data-theme"))||document.documentElement.getAttribute("data-theme");return"dark"===e||"light"===e?e:(null===(i=window.matchMedia)||void 0===i?void 0:i.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"}setupThemeObserver(){this.themeObserver=new MutationObserver((()=>{this.requestUpdate()})),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}setupSystemThemeListener(){window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.handleSystemThemeChange))}},ii=()=>{var t;return void 0!==globalThis.litElementVersions||"undefined"!=typeof process&&"development"===(null===(t=process.env)||void 0===t?void 0:t.NODE_ENV)||"undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname)},ei=t=>class extends t{constructor(){super(...arguments),this.requiredComponents=[]}validateDependencies(){if(ii())for(const t of this.requiredComponents)if(!this.isComponentAvailable(t))throw new Error(`Required component "${t}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}. Example: import '@nuralyui/${t}';`)}validateDependenciesWithHandler(t){if(!ii())return!0;let i=!0;for(const e of this.requiredComponents)if(!this.isComponentAvailable(e)){i=!1;const s=new Error(`Required component "${e}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}.`);t?t(e,s):console.error(s.message)}return i}isComponentAvailable(t){return!!customElements.get(t)}getMissingDependencies(){return this.requiredComponents.filter((t=>!this.isComponentAvailable(t)))}areDependenciesAvailable(){return this.requiredComponents.every((t=>this.isComponentAvailable(t)))}addRequiredComponent(t){this.requiredComponents.includes(t)||this.requiredComponents.push(t)}removeRequiredComponent(t){const i=this.requiredComponents.indexOf(t);i>-1&&this.requiredComponents.splice(i,1)}},si=t=>class extends t{dispatchCustomEvent(t,i){this.dispatchEvent(new CustomEvent(t,{detail:i,bubbles:!0,composed:!0}))}dispatchEventWithMetadata(t,i){var e;const s=Object.assign(Object.assign({},i),{timestamp:Date.now(),componentName:(null===(e=this.tagName)||void 0===e?void 0:e.toLowerCase())||"unknown"});this.dispatchCustomEvent(t,s)}dispatchInputEvent(t,i){const e=Object.assign({target:i.target||this,value:i.value,originalEvent:i.originalEvent},i);this.dispatchCustomEvent(t,e)}dispatchFocusEvent(t,i){const e=Object.assign({target:i.target||this,value:i.value,focused:i.focused,cursorPosition:i.cursorPosition,selectedText:i.selectedText},i);this.dispatchCustomEvent(t,e)}dispatchValidationEvent(t,i){var e;const s=Object.assign({target:i.target||this,value:i.value,isValid:null!==(e=i.isValid)&&void 0!==e&&e,error:i.error},i);this.dispatchCustomEvent(t,s)}dispatchActionEvent(t,i){const e=Object.assign({target:i.target||this,action:i.action,previousValue:i.previousValue,newValue:i.newValue},i);this.dispatchCustomEvent(t,e)}isReadonlyKeyAllowed(t){if(t.ctrlKey||t.metaKey){return["KeyA","KeyC"].includes(t.code)}return["Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(t.key)}isActivationKey(t){return"Enter"===t.key||" "===t.key}};
721
+ */const Zt=qt(class extends Yt{constructor(t){var e;if(super(t),t.type!==Kt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,s;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(s=this.nt)||void 0===s?void 0:s.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return P}}),Qt="important",Xt=" !"+Qt,Jt=qt(class extends Yt{constructor(t){var e;if(super(t),t.type!==Kt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const s=t[i];return null==s?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ht){this.ht=new Set;for(const t in e)this.ht.add(t);return this.render(e)}this.ht.forEach((t=>{null==e[t]&&(this.ht.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const s=e[t];if(null!=s){this.ht.add(t);const e="string"==typeof s&&s.endsWith(Xt);t.includes("-")||e?i.setProperty(t,e?s.slice(0,-11):s,e?Qt:""):i[t]=s}}return P}}),te=t=>class extends t{constructor(){super(...arguments),this.handleSystemThemeChange=()=>{this.closest("[data-theme]")||document.documentElement.hasAttribute("data-theme")||this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setupThemeObserver(),this.setupSystemThemeListener()}disconnectedCallback(){var t,e;super.disconnectedCallback(),null===(t=this.themeObserver)||void 0===t||t.disconnect(),null===(e=this.mediaQuery)||void 0===e||e.removeEventListener("change",this.handleSystemThemeChange)}get currentTheme(){var t,e;const i=(null===(t=this.closest("[data-theme]"))||void 0===t?void 0:t.getAttribute("data-theme"))||document.documentElement.getAttribute("data-theme");return"dark"===i||"light"===i?i:(null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"}setupThemeObserver(){this.themeObserver=new MutationObserver((()=>{this.requestUpdate()})),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}setupSystemThemeListener(){window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.handleSystemThemeChange))}},ee=()=>{var t;return void 0!==globalThis.litElementVersions||"undefined"!=typeof process&&"development"===(null===(t=process.env)||void 0===t?void 0:t.NODE_ENV)||"undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname)},ie=t=>class extends t{constructor(){super(...arguments),this.requiredComponents=[]}validateDependencies(){if(ee())for(const t of this.requiredComponents)if(!this.isComponentAvailable(t))throw new Error(`Required component "${t}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}. Example: import '@nuralyui/${t}';`)}validateDependenciesWithHandler(t){if(!ee())return!0;let e=!0;for(const i of this.requiredComponents)if(!this.isComponentAvailable(i)){e=!1;const s=new Error(`Required component "${i}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}.`);t?t(i,s):console.error(s.message)}return e}isComponentAvailable(t){return!!customElements.get(t)}getMissingDependencies(){return this.requiredComponents.filter((t=>!this.isComponentAvailable(t)))}areDependenciesAvailable(){return this.requiredComponents.every((t=>this.isComponentAvailable(t)))}addRequiredComponent(t){this.requiredComponents.includes(t)||this.requiredComponents.push(t)}removeRequiredComponent(t){const e=this.requiredComponents.indexOf(t);e>-1&&this.requiredComponents.splice(e,1)}},se=t=>class extends t{dispatchCustomEvent(t,e){this.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0,composed:!0}))}dispatchEventWithMetadata(t,e){var i;const s=Object.assign(Object.assign({},e),{timestamp:Date.now(),componentName:(null===(i=this.tagName)||void 0===i?void 0:i.toLowerCase())||"unknown"});this.dispatchCustomEvent(t,s)}dispatchInputEvent(t,e){const i=Object.assign({target:e.target||this,value:e.value,originalEvent:e.originalEvent},e);this.dispatchCustomEvent(t,i)}dispatchFocusEvent(t,e){const i=Object.assign({target:e.target||this,value:e.value,focused:e.focused,cursorPosition:e.cursorPosition,selectedText:e.selectedText},e);this.dispatchCustomEvent(t,i)}dispatchValidationEvent(t,e){var i;const s=Object.assign({target:e.target||this,value:e.value,isValid:null!==(i=e.isValid)&&void 0!==i&&i,error:e.error},e);this.dispatchCustomEvent(t,s)}dispatchActionEvent(t,e){const i=Object.assign({target:e.target||this,action:e.action,previousValue:e.previousValue,newValue:e.newValue},e);this.dispatchCustomEvent(t,i)}isReadonlyKeyAllowed(t){if(t.ctrlKey||t.metaKey){return["KeyA","KeyC"].includes(t.code)}return["Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(t.key)}isActivationKey(t){return"Enter"===t.key||" "===t.key}};
579
722
  /**
580
723
  * @license
581
724
  * Copyright 2018 Google LLC
582
725
  * SPDX-License-Identifier: BSD-3-Clause
583
- */var oi,ri,ni,li,hi,ci,ai,di,ui;!function(t){t.Default="default",t.Inline="inline",t.Button="button",t.Slot="slot"}(oi||(oi={})),function(t){t.Default="default",t.Warning="warning",t.Error="error",t.Success="success"}(ri||(ri={})),function(t){t.Small="small",t.Medium="medium",t.Large="large"}(ni||(ni={})),function(t){t.Small="small",t.Medium="medium",t.Large="large"}(li||(li={})),function(t){t.Horizontal="horizontal",t.Vertical="vertical"}(hi||(hi={})),function(t){t.Default="default",t.Solid="solid",t.Outline="outline",t.Borderless="borderless"}(ci||(ci={})),function(t){t.Bottom="bottom",t.Top="top",t.Auto="auto"}(ai||(ai={})),function(t){t.None="none",t.StartsWith="starts-with",t.Contains="contains",t.Fuzzy="fuzzy"}(di||(di={}));class pi{constructor(t){this._host=t,this._host.addController(this)}get host(){return this._host}hostConnected(){}hostDisconnected(){}hostUpdate(){}hostUpdated(){}handleError(t,i){console.error(`[SelectController:${this.constructor.name}] Error in ${i}:`,t),this._host.dispatchEvent(new CustomEvent("nr-select-error",{detail:{error:t.message,context:i,controller:this.constructor.name},bubbles:!0,composed:!0}))}requestUpdate(){try{this._host.requestUpdate()}catch(t){this.handleError(t,"requestUpdate")}}dispatchEvent(t){try{return this._host.dispatchEvent(t)}catch(t){return this.handleError(t,"dispatchEvent"),!1}}}class vi extends pi{constructor(){super(...arguments),this._selectedOptions=[],this._initialized=!1}getSelectedOptions(){return[...this._selectedOptions]}getSelectedOption(){return this._selectedOptions[0]}selectOption(t){try{if(this.isOptionDisabled(t))return;const i=this.host.multiple,e=this.getCurrentValue();i?this.isOptionSelected(t)||(this._selectedOptions=[...this._selectedOptions,t],this.updateHostValue(),this.dispatchChangeEvent(e)):(this.isOptionSelected(t)?this._selectedOptions=[]:this._selectedOptions=[t],this.updateHostValue(),this.dispatchChangeEvent(e)),this.requestUpdate()}catch(t){this.handleError(t,"selectOption")}}unselectOption(t){try{if(this.isOptionSelected(t)){const i=this.getCurrentValue();this._selectedOptions=this._selectedOptions.filter((i=>i.value!==t.value)),this.updateHostValue(),this.dispatchChangeEvent(i),this.requestUpdate()}}catch(t){this.handleError(t,"unselectOption")}}clearSelection(){try{if(this._selectedOptions.length>0){const t=this.getCurrentValue();this._selectedOptions=[],this.updateHostValue(),this.dispatchChangeEvent(t),this.requestUpdate()}}catch(t){this.handleError(t,"clearSelection")}}isOptionSelected(t){return this._selectedOptions.some((i=>i.value===t.value))}isOptionDisabled(t){return Boolean(t.disabled)||this.host.disabled}toggleOption(t){this.isOptionSelected(t)?this.unselectOption(t):this.selectOption(t)}initializeFromDefaultValue(){try{if(this._initialized)return;const t=this.host.defaultValue;if(!t||0===t.length)return;const i=Array.isArray(t)?t:[t],e=this.host.options.filter((t=>i.includes(t.value)));e.length>0&&(this._selectedOptions=this.host.multiple?e:[e[0]],this.requestUpdate()),this._initialized=!0}catch(t){this.handleError(t,"initializeFromDefaultValue")}}updateHostValue(){var t;const i=this.host.multiple?this._selectedOptions.map((t=>t.value)):(null===(t=this._selectedOptions[0])||void 0===t?void 0:t.value)||"",e=this.host.value;let s=!1;if(this.host.multiple){const t=Array.isArray(e)?e:[],o=Array.isArray(i)?i:[];s=t.length===o.length&&t.every(((t,i)=>t===o[i]))}else s=e===i;s||(this.host.value=i)}getCurrentValue(){var t;return this.host.multiple?this._selectedOptions.map((t=>t.value)):(null===(t=this._selectedOptions[0])||void 0===t?void 0:t.value)||""}dispatchChangeEvent(t){const i={value:this.getCurrentValue(),selectedOptions:this.getSelectedOptions(),previousValue:t};this.dispatchEvent(new CustomEvent("nr-change",{detail:i,bubbles:!0,composed:!0}))}hostUpdated(){this.syncWithHostOptions()}syncWithHostOptions(){try{this._selectedOptions=this._selectedOptions.filter((t=>this.host.options.some((i=>i.value===t.value)))),this._selectedOptions=this._selectedOptions.map((t=>this.host.options.find((i=>i.value===t.value))||t)),this.updateHostValue()}catch(t){this.handleError(t,"syncWithHostOptions")}}}class bi extends pi{constructor(t,i,e){super(t),this.selectionController=i,this.dropdownController=e,this._focusedIndex=-1,this._hasKeyboardNavigated=!1}handleKeyDown(t){try{const i=this.isSearchInputFocused();switch(t.key){case"ArrowDown":t.preventDefault(),this.dropdownController.isOpen?this.navigateNext():this.openDropdown();break;case"ArrowUp":t.preventDefault(),this.dropdownController.isOpen?this.navigatePrevious():this.openDropdown();break;case"Enter":this.dropdownController.isOpen?i&&this._focusedIndex>=0?(t.preventDefault(),this.selectFocused()):i||(t.preventDefault(),this.selectFocused()):(t.preventDefault(),this.openDropdown());break;case" ":i||(t.preventDefault(),this.dropdownController.isOpen?this.selectFocused():this.openDropdown());break;case"Escape":t.preventDefault(),this.closeDropdown();break;case"Tab":this.closeDropdown();break;case"Home":this.dropdownController.isOpen&&(t.preventDefault(),this.setFocusedIndex(0));break;case"End":this.dropdownController.isOpen&&(t.preventDefault(),this.setFocusedIndex(this.host.options.length-1));break;default:1===t.key.length&&/[a-zA-Z0-9]/.test(t.key)&&this.handleAlphanumericKey(t.key.toLowerCase())}}catch(t){this.handleError(t,"handleKeyDown")}}navigateNext(){try{const t=this.getNavigableOptions();if(0===t.length)return;if(this.isSearchInputFocused()&&(this._focusedIndex<0||!this._hasKeyboardNavigated))return this._hasKeyboardNavigated=!0,void this.setFocusedIndex(0);let i=this._focusedIndex+1;i>=t.length&&(i=0),this.setFocusedIndex(i)}catch(t){this.handleError(t,"navigateNext")}}navigatePrevious(){try{const t=this.getNavigableOptions();if(0===t.length)return;if(this.isSearchInputFocused()&&(this._focusedIndex<0||!this._hasKeyboardNavigated))return this._hasKeyboardNavigated=!0,void this.setFocusedIndex(t.length-1);let i=this._focusedIndex-1;i<0&&(i=t.length-1),this.setFocusedIndex(i)}catch(t){this.handleError(t,"navigatePrevious")}}selectFocused(){try{const t=this.getNavigableOptions()[this._focusedIndex];t&&!this.selectionController.isOptionDisabled(t)&&(this.selectionController.selectOption(t),this.host.multiple||this.closeDropdown())}catch(t){this.handleError(t,"selectFocused")}}openDropdown(){try{this.dropdownController.open(),this._hasKeyboardNavigated=!1,this._focusedIndex=-1}catch(t){this.handleError(t,"openDropdown")}}closeDropdown(){try{this.dropdownController.close(),this._focusedIndex=-1,this._hasKeyboardNavigated=!1}catch(t){this.handleError(t,"closeDropdown")}}setFocusedIndex(t){try{const i=this.getNavigableOptions();t>=0&&t<i.length&&(this._focusedIndex=t,this.dispatchFocusEvent(i[t],t),this.requestUpdate(),this.scrollToFocusedOption(t))}catch(t){this.handleError(t,"setFocusedIndex")}}scrollToFocusedOption(t){var i;try{const e=null===(i=this.host.shadowRoot)||void 0===i?void 0:i.querySelector(".options");if(!e)return;setTimeout((()=>{const i=e.querySelector(".option.focused");if(i)i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"});else{const i=40,s=e.clientHeight,o=e.scrollTop,r=t*i,n=r+i,l=o+s;r<o?e.scrollTo({top:r,behavior:"smooth"}):n>l&&e.scrollTo({top:n-s,behavior:"smooth"})}}),10)}catch(t){console.warn("Failed to scroll to focused option:",t)}}get focusedIndex(){return this._focusedIndex}get focusedOption(){return this.getNavigableOptions()[this._focusedIndex]}handleAlphanumericKey(t){try{const i=this.getNavigableOptions(),e=this._focusedIndex+1;for(let s=0;s<i.length;s++){const o=(e+s)%i.length;if(i[o].label.toLowerCase().startsWith(t)){this.setFocusedIndex(o),this.dropdownController.isOpen||this.openDropdown();break}}}catch(t){this.handleError(t,"handleAlphanumericKey")}}getNavigableOptions(){const t=this.host;if(!t.options||!Array.isArray(t.options))return[];let i=t.options;return t.searchable&&t.searchQuery&&"function"==typeof t.getFilteredOptions&&(i=t.getFilteredOptions()),i.filter((t=>!t.disabled))}dispatchFocusEvent(t,i){const e={focusedOption:t,focusedIndex:i};this.dispatchEvent(new CustomEvent("nr-select-focus",{detail:e,bubbles:!0,composed:!0}))}isSearchInputFocused(){var t;try{const i=this.host;if(!i.searchable)return!1;const e=null===(t=i.shadowRoot)||void 0===t?void 0:t.querySelector(".search-input");return!!e&&(document.activeElement===e||e.shadowRoot&&e.shadowRoot.querySelector("input")===e.shadowRoot.activeElement||e.contains(document.activeElement))}catch(t){return!1}}hostUpdated(){this.dropdownController.isOpen||-1===this._focusedIndex||(this._focusedIndex=-1)}}class yi extends pi{constructor(){super(...arguments),this._isOpen=!1,this._position={top:0,left:0,width:0,placement:"bottom"},this._dropdownElement=null,this._triggerElement=null,this.handleResize=()=>{this._isOpen&&this.calculatePosition()},this.handleScroll=()=>{var t;if(this._isOpen&&this._triggerElement){const i=this._triggerElement.getBoundingClientRect(),e=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight;(i.bottom<0||i.top>e)&&this.close()}}}get isOpen(){return this._isOpen}get position(){return Object.assign({},this._position)}open(){try{this._isOpen||(this._isOpen=!0,this.host.show=!0,this.requestUpdate(),this.findElements(),setTimeout((()=>{this.calculatePosition()}),10),this.host&&"function"==typeof this.host.setupEventListeners&&setTimeout((()=>{this.host.setupEventListeners()}),50),this.focusSearchInput(),this.dispatchEvent(new CustomEvent("nr-dropdown-open",{bubbles:!0,composed:!0})))}catch(t){this.handleError(t,"open")}}close(){try{this._isOpen&&(this._isOpen=!1,this.host.show=!1,this.resetPosition(),this.requestUpdate(),this.host&&"function"==typeof this.host.removeEventListeners&&this.host.removeEventListeners(),this.dispatchEvent(new CustomEvent("nr-dropdown-close",{bubbles:!0,composed:!0})))}catch(t){this.handleError(t,"close")}}toggle(){this._isOpen?this.close():this.open()}focusSearchInput(){try{const t=this.host;t&&t.searchable&&setTimeout((()=>{var i;const e=null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector(".search-input");e&&"function"==typeof e.focus&&e.focus()}),100)}catch(t){console.warn("Failed to focus search input:",t)}}calculatePosition(){var t;try{if(this._dropdownElement&&this._triggerElement||this.findElements(),!this._dropdownElement||!this._triggerElement)return;const i=this._triggerElement.getBoundingClientRect(),e=((null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight)-i.bottom,s=i.top,o=200,r=this.determineOptimalPlacement(o,s,e);this._position={left:0,width:0,placement:r,top:0},this.applyPosition()}catch(t){this.handleError(t,"calculatePosition")}}resetPosition(){try{this._dropdownElement&&(this._dropdownElement.style.removeProperty("position"),this._dropdownElement.style.removeProperty("top"),this._dropdownElement.style.removeProperty("left"),this._dropdownElement.style.removeProperty("width"),this._dropdownElement.style.removeProperty("max-height"),this._dropdownElement.style.removeProperty("min-height"),this._dropdownElement.style.removeProperty("height"),this._dropdownElement.style.removeProperty("overflow-y"),this._dropdownElement.style.removeProperty("transform"),this._dropdownElement.style.removeProperty("display"),this._dropdownElement.style.removeProperty("opacity"),this._dropdownElement.style.removeProperty("visibility"),this._dropdownElement.style.removeProperty("z-index"),this._dropdownElement.classList.remove("placement-top","placement-bottom"))}catch(t){this.handleError(t,"resetPosition")}}setElements(t,i){this._dropdownElement=t,this._triggerElement=i}findElements(){try{const t=this._host;if(t.optionsElement&&t.wrapper)return this._dropdownElement=t.optionsElement,void(this._triggerElement=t.wrapper);t.shadowRoot&&(this._dropdownElement=t.shadowRoot.querySelector(".options"),this._triggerElement=t.shadowRoot.querySelector(".wrapper"))}catch(t){this.handleError(t,"findElements")}}determineOptimalPlacement(t,i,e){return e>=t?"bottom":i>=t||i>e?"top":"bottom"}applyPosition(){var t;try{if(!this._dropdownElement||!this._triggerElement)return;const{placement:i}=this._position,e=this._triggerElement.getBoundingClientRect(),s=e.width;this._dropdownElement.style.position="absolute",this._dropdownElement.style.left="0",this._dropdownElement.style.right="auto",this._dropdownElement.style.width=`${s}px`,this._dropdownElement.style.zIndex="1000",this._dropdownElement.style.height="auto",this._dropdownElement.style.maxHeight="none",this._dropdownElement.style.minHeight="auto","bottom"===i?(this._dropdownElement.style.top="100%",this._dropdownElement.style.bottom="auto"):(this._dropdownElement.style.top="auto",this._dropdownElement.style.bottom="100%");const o=this._dropdownElement.scrollHeight,r=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight;let n;n="bottom"===i?r-e.bottom-10:e.top-10,o>n?(this._dropdownElement.style.maxHeight=`${n}px`,this._dropdownElement.style.overflowY="auto"):(this._dropdownElement.style.maxHeight=`${o}px`,this._dropdownElement.style.overflowY="auto"),this._dropdownElement.classList.remove("placement-top","placement-bottom"),this._dropdownElement.classList.add(`placement-${i}`)}catch(t){this.handleError(t,"applyPosition")}}getAvailableSpace(){var t,i;if(!this._triggerElement)return{above:0,below:0,left:0,right:0};const e=this._triggerElement.getBoundingClientRect(),s=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,o=(null===(i=window.visualViewport)||void 0===i?void 0:i.width)||window.innerWidth;return{above:e.top,below:s-e.bottom,left:e.left,right:o-e.right}}hostConnected(){window.addEventListener("resize",this.handleResize),window.addEventListener("scroll",this.handleScroll,!0)}hostDisconnected(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.handleScroll,!0)}}class fi extends pi{constructor(){super(...arguments),this._focusedIndex=-1,this._hasFocus=!1}get focusedIndex(){return this._focusedIndex}getFocusedOption(){if(this._focusedIndex>=0&&this._focusedIndex<this.host.options.length)return this.host.options[this._focusedIndex]}get hasFocus(){return this._hasFocus}setFocusedOption(t){try{t>=0&&t<this.host.options.length&&(this._focusedIndex=t,this.requestUpdate(),this.dispatchEvent(new CustomEvent("nr-focus-change",{detail:{focusedIndex:t,focusedOption:this.getFocusedOption()},bubbles:!0,composed:!0})))}catch(t){this.handleError(t,"setFocusedOption")}}focus(){var t;try{const i=null===(t=this._host.shadowRoot)||void 0===t?void 0:t.querySelector(".wrapper");i&&(i.focus(),this._hasFocus=!0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("nr-focus",{bubbles:!0,composed:!0})))}catch(t){this.handleError(t,"focus")}}blur(){var t;try{const i=null===(t=this._host.shadowRoot)||void 0===t?void 0:t.querySelector(".wrapper");i&&i.blur(),this._hasFocus=!1,this._focusedIndex=-1,this.requestUpdate(),this.dispatchEvent(new CustomEvent("nr-blur",{bubbles:!0,composed:!0}))}catch(t){this.handleError(t,"blur")}}focusNext(){try{const t=this.getNextFocusableIndex(this._focusedIndex);-1!==t&&this.setFocusedOption(t)}catch(t){this.handleError(t,"focusNext")}}focusPrevious(){try{const t=this.getPreviousFocusableIndex(this._focusedIndex);-1!==t&&this.setFocusedOption(t)}catch(t){this.handleError(t,"focusPrevious")}}focusFirst(){try{const t=this.getNextFocusableIndex(-1);-1!==t&&this.setFocusedOption(t)}catch(t){this.handleError(t,"focusFirst")}}focusLast(){try{const t=this.getPreviousFocusableIndex(this.host.options.length);-1!==t&&this.setFocusedOption(t)}catch(t){this.handleError(t,"focusLast")}}clearFocus(){this._focusedIndex=-1,this._hasFocus=!1,this.requestUpdate()}handleFocus(){this._hasFocus=!0,this.requestUpdate()}handleBlur(){this._hasFocus=!1,this._focusedIndex=-1,this.requestUpdate()}getNextFocusableIndex(t){const i=this.host.options;for(let e=t+1;e<i.length;e++)if(!i[e].disabled)return e;for(let e=0;e<=t;e++)if(!i[e].disabled)return e;return-1}getPreviousFocusableIndex(t){const i=this.host.options;for(let e=t-1;e>=0;e--)if(!i[e].disabled)return e;for(let e=i.length-1;e>=t;e--)if(!i[e].disabled)return e;return-1}findOptionIndex(t){return this.host.options.findIndex((i=>i.value===t))}focusOptionByValue(t){const i=this.findOptionIndex(t);-1!==i&&this.setFocusedOption(i)}}!function(t){t.Valid="valid",t.Invalid="invalid",t.Pending="pending",t.Pristine="pristine"}(ui||(ui={}));class gi extends pi{constructor(t,i){super(t),this.selectionController=i,this._isValid=!0,this._validationMessage="",this._validationState=ui.Pristine}get isValid(){return this._isValid}get validationMessage(){return this._validationMessage}get validationState(){return this._validationState}validate(){try{this._validationState=ui.Pending;const t=this.selectionController.getSelectedOptions().length>0;return this.host.required&&!t?(this.setValidationResult(!1,"This field is required",ui.Invalid),!1):(this.setValidationResult(!0,"",ui.Valid),!0)}catch(t){return this.handleError(t,"validate"),this.setValidationResult(!1,"Validation error occurred",ui.Invalid),!1}}reset(){try{this._isValid=!0,this._validationMessage="",this._validationState=ui.Pristine,this.requestUpdate(),this.dispatchValidationEvent()}catch(t){this.handleError(t,"reset")}}getFormData(){var t;try{const i=this._host,e=i.name||i.getAttribute("name")||"select",s=this.selectionController.getSelectedOptions();return this.host.multiple?{[e]:s.map((t=>t.value))}:{[e]:(null===(t=s[0])||void 0===t?void 0:t.value)||""}}catch(t){return this.handleError(t,"getFormData"),{}}}checkValidity(){return this.validate()}reportValidity(){var t;const i=this.validate();if(!i){const i=null===(t=this._host.shadowRoot)||void 0===t?void 0:t.querySelector(".wrapper");i&&i.focus()}return i}setCustomValidity(t){try{t?this.setValidationResult(!1,t,ui.Invalid):this.validate()}catch(t){this.handleError(t,"setCustomValidity")}}validateOnChange(){this._validationState!==ui.Pristine&&this.validate()}validateOnBlur(){this._validationState===ui.Pristine&&(this._validationState=ui.Pending),this.validate()}setValidationResult(t,i,e){const s=this._isValid!==t||this._validationMessage!==i||this._validationState!==e;this._isValid=t,this._validationMessage=i,this._validationState=e,s&&(this.requestUpdate(),this.dispatchValidationEvent())}dispatchValidationEvent(){const t={isValid:this._isValid,validationMessage:this._validationMessage,validationState:this._validationState};this.dispatchEvent(new CustomEvent("nr-validation",{detail:t,bubbles:!0,composed:!0}))}hostUpdated(){this.validateOnChange()}getValidationClasses(){return{valid:this._isValid&&this._validationState===ui.Valid,invalid:!this._isValid&&this._validationState===ui.Invalid,pending:this._validationState===ui.Pending,pristine:this._validationState===ui.Pristine}}getAriaAttributes(){const t={};return this.host.required&&(t["aria-required"]="true"),this._isValid||(t["aria-invalid"]="true",this._validationMessage&&(t["aria-describedby"]="validation-message")),t}}class mi extends pi{constructor(){super(...arguments),this._searchQuery="",this.handleSearchInput=t=>{this.setSearchQuery(t.detail.value||"")},this.handleSearchClear=()=>{this.clearSearch()},this.handleSearchKeyDown=t=>{if(["ArrowDown","ArrowUp","Enter","Home","End"].includes(t.key)){const i=this.host.keyboardController;i&&i.handleKeyDown(t)}else t.stopPropagation(),"Escape"===t.key&&(this.host.closeDropdown(),this.host.focus())}}get searchQuery(){return this._searchQuery}get hasSearch(){return""!==this._searchQuery.trim()}setSearchQuery(t){this._searchQuery=t,this.host.searchQuery=t,this.host.requestUpdate()}search(t){this.setSearchQuery(t)}clearSearch(){this.setSearchQuery("")}getFilteredOptions(t){if(!this.host.searchable||!this._searchQuery.trim())return t;const i=this._searchQuery.toLowerCase().trim();return t.filter((t=>t.label.toLowerCase().includes(i)||t.value.toLowerCase().includes(i)||t.description&&t.description.toLowerCase().includes(i)))}renderSearchInput(){return this.host.searchable?mt`
726
+ */var oe,re,le,ne,ce,ae,he,de,ue;!function(t){t.Default="default",t.Inline="inline",t.Button="button",t.Slot="slot"}(oe||(oe={})),function(t){t.Default="default",t.Warning="warning",t.Error="error",t.Success="success"}(re||(re={})),function(t){t.Small="small",t.Medium="medium",t.Large="large"}(le||(le={})),function(t){t.Small="small",t.Medium="medium",t.Large="large"}(ne||(ne={})),function(t){t.Horizontal="horizontal",t.Vertical="vertical"}(ce||(ce={})),function(t){t.Default="default",t.Solid="solid",t.Outline="outline",t.Borderless="borderless"}(ae||(ae={})),function(t){t.Bottom="bottom",t.Top="top",t.Auto="auto"}(he||(he={})),function(t){t.None="none",t.StartsWith="starts-with",t.Contains="contains",t.Fuzzy="fuzzy"}(de||(de={}));class pe{constructor(t){this._host=t,this._host.addController(this)}get host(){return this._host}hostConnected(){}hostDisconnected(){}hostUpdate(){}hostUpdated(){}handleError(t,e){console.error(`[SelectController:${this.constructor.name}] Error in ${e}:`,t),this._host.dispatchEvent(new CustomEvent("nr-select-error",{detail:{error:t.message,context:e,controller:this.constructor.name},bubbles:!0,composed:!0}))}requestUpdate(){try{this._host.requestUpdate()}catch(t){this.handleError(t,"requestUpdate")}}dispatchEvent(t){try{return this._host.dispatchEvent(t)}catch(t){return this.handleError(t,"dispatchEvent"),!1}}}class ve extends pe{constructor(){super(...arguments),this._selectedOptions=[],this._initialized=!1}getSelectedOptions(){return[...this._selectedOptions]}getSelectedOption(){return this._selectedOptions[0]}selectOption(t){try{if(this.isOptionDisabled(t))return;const e=this.host.multiple,i=this.getCurrentValue();e?this.isOptionSelected(t)||(this._selectedOptions=[...this._selectedOptions,t],this.updateHostValue(),this.dispatchChangeEvent(i)):(this.isOptionSelected(t)?this._selectedOptions=[]:this._selectedOptions=[t],this.updateHostValue(),this.dispatchChangeEvent(i)),this.requestUpdate()}catch(t){this.handleError(t,"selectOption")}}unselectOption(t){try{if(this.isOptionSelected(t)){const e=this.getCurrentValue();this._selectedOptions=this._selectedOptions.filter((e=>e.value!==t.value)),this.updateHostValue(),this.dispatchChangeEvent(e),this.requestUpdate()}}catch(t){this.handleError(t,"unselectOption")}}clearSelection(){try{if(this._selectedOptions.length>0){const t=this.getCurrentValue();this._selectedOptions=[],this.updateHostValue(),this.dispatchChangeEvent(t),this.requestUpdate()}}catch(t){this.handleError(t,"clearSelection")}}isOptionSelected(t){return this._selectedOptions.some((e=>e.value===t.value))}isOptionDisabled(t){return Boolean(t.disabled)||this.host.disabled}toggleOption(t){this.isOptionSelected(t)?this.unselectOption(t):this.selectOption(t)}initializeFromDefaultValue(){try{if(this._initialized)return;const t=this.host.defaultValue;if(!t||0===t.length)return;const e=Array.isArray(t)?t:[t],i=this.host.options.filter((t=>e.includes(t.value)));i.length>0&&(this._selectedOptions=this.host.multiple?i:[i[0]],this.requestUpdate()),this._initialized=!0}catch(t){this.handleError(t,"initializeFromDefaultValue")}}updateHostValue(){var t;const e=this.host.multiple?this._selectedOptions.map((t=>t.value)):(null===(t=this._selectedOptions[0])||void 0===t?void 0:t.value)||"",i=this.host.value;let s=!1;if(this.host.multiple){const t=Array.isArray(i)?i:[],o=Array.isArray(e)?e:[];s=t.length===o.length&&t.every(((t,e)=>t===o[e]))}else s=i===e;s||(this.host.value=e)}getCurrentValue(){var t;return this.host.multiple?this._selectedOptions.map((t=>t.value)):(null===(t=this._selectedOptions[0])||void 0===t?void 0:t.value)||""}dispatchChangeEvent(t){const e={value:this.getCurrentValue(),selectedOptions:this.getSelectedOptions(),previousValue:t};this.dispatchEvent(new CustomEvent("nr-change",{detail:e,bubbles:!0,composed:!0}))}hostUpdated(){this.syncWithHostOptions()}syncWithHostOptions(){try{this._selectedOptions=this._selectedOptions.filter((t=>this.host.options.some((e=>e.value===t.value)))),this._selectedOptions=this._selectedOptions.map((t=>this.host.options.find((e=>e.value===t.value))||t)),this.updateHostValue()}catch(t){this.handleError(t,"syncWithHostOptions")}}}class be extends pe{constructor(t,e,i){super(t),this.selectionController=e,this.dropdownController=i,this._focusedIndex=-1,this._hasKeyboardNavigated=!1}handleKeyDown(t){try{const e=this.isSearchInputFocused();switch(t.key){case"ArrowDown":t.preventDefault(),this.dropdownController.isOpen?this.navigateNext():this.openDropdown();break;case"ArrowUp":t.preventDefault(),this.dropdownController.isOpen?this.navigatePrevious():this.openDropdown();break;case"Enter":this.dropdownController.isOpen?e&&this._focusedIndex>=0?(t.preventDefault(),this.selectFocused()):e||(t.preventDefault(),this.selectFocused()):(t.preventDefault(),this.openDropdown());break;case" ":e||(t.preventDefault(),this.dropdownController.isOpen?this.selectFocused():this.openDropdown());break;case"Escape":t.preventDefault(),this.closeDropdown();break;case"Tab":this.closeDropdown();break;case"Home":this.dropdownController.isOpen&&(t.preventDefault(),this.setFocusedIndex(0));break;case"End":this.dropdownController.isOpen&&(t.preventDefault(),this.setFocusedIndex(this.host.options.length-1));break;default:1===t.key.length&&/[a-zA-Z0-9]/.test(t.key)&&this.handleAlphanumericKey(t.key.toLowerCase())}}catch(t){this.handleError(t,"handleKeyDown")}}navigateNext(){try{const t=this.getNavigableOptions();if(0===t.length)return;if(this.isSearchInputFocused()&&(this._focusedIndex<0||!this._hasKeyboardNavigated))return this._hasKeyboardNavigated=!0,void this.setFocusedIndex(0);let e=this._focusedIndex+1;e>=t.length&&(e=0),this.setFocusedIndex(e)}catch(t){this.handleError(t,"navigateNext")}}navigatePrevious(){try{const t=this.getNavigableOptions();if(0===t.length)return;if(this.isSearchInputFocused()&&(this._focusedIndex<0||!this._hasKeyboardNavigated))return this._hasKeyboardNavigated=!0,void this.setFocusedIndex(t.length-1);let e=this._focusedIndex-1;e<0&&(e=t.length-1),this.setFocusedIndex(e)}catch(t){this.handleError(t,"navigatePrevious")}}selectFocused(){try{const t=this.getNavigableOptions()[this._focusedIndex];t&&!this.selectionController.isOptionDisabled(t)&&(this.selectionController.selectOption(t),this.host.multiple||this.closeDropdown())}catch(t){this.handleError(t,"selectFocused")}}openDropdown(){try{this.dropdownController.open(),this._hasKeyboardNavigated=!1,this._focusedIndex=-1}catch(t){this.handleError(t,"openDropdown")}}closeDropdown(){try{this.dropdownController.close(),this._focusedIndex=-1,this._hasKeyboardNavigated=!1}catch(t){this.handleError(t,"closeDropdown")}}setFocusedIndex(t){try{const e=this.getNavigableOptions();t>=0&&t<e.length&&(this._focusedIndex=t,this.dispatchFocusEvent(e[t],t),this.requestUpdate(),this.scrollToFocusedOption(t))}catch(t){this.handleError(t,"setFocusedIndex")}}scrollToFocusedOption(t){var e;try{const i=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".options");if(!i)return;setTimeout((()=>{const e=i.querySelector(".option.focused");if(e)e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"});else{const e=40,s=i.clientHeight,o=i.scrollTop,r=t*e,l=r+e,n=o+s;r<o?i.scrollTo({top:r,behavior:"smooth"}):l>n&&i.scrollTo({top:l-s,behavior:"smooth"})}}),10)}catch(t){console.warn("Failed to scroll to focused option:",t)}}get focusedIndex(){return this._focusedIndex}get focusedOption(){return this.getNavigableOptions()[this._focusedIndex]}handleAlphanumericKey(t){try{const e=this.getNavigableOptions(),i=this._focusedIndex+1;for(let s=0;s<e.length;s++){const o=(i+s)%e.length;if(e[o].label.toLowerCase().startsWith(t)){this.setFocusedIndex(o),this.dropdownController.isOpen||this.openDropdown();break}}}catch(t){this.handleError(t,"handleAlphanumericKey")}}getNavigableOptions(){const t=this.host;if(!t.options||!Array.isArray(t.options))return[];let e=t.options;return t.searchable&&t.searchQuery&&"function"==typeof t.getFilteredOptions&&(e=t.getFilteredOptions()),e.filter((t=>!t.disabled))}dispatchFocusEvent(t,e){const i={focusedOption:t,focusedIndex:e};this.dispatchEvent(new CustomEvent("nr-select-focus",{detail:i,bubbles:!0,composed:!0}))}isSearchInputFocused(){var t;try{const e=this.host;if(!e.searchable)return!1;const i=null===(t=e.shadowRoot)||void 0===t?void 0:t.querySelector(".search-input");return!!i&&(document.activeElement===i||i.shadowRoot&&i.shadowRoot.querySelector("input")===i.shadowRoot.activeElement||i.contains(document.activeElement))}catch(t){return!1}}hostUpdated(){this.dropdownController.isOpen||-1===this._focusedIndex||(this._focusedIndex=-1)}}class ye extends pe{constructor(){super(...arguments),this._isOpen=!1,this._position={top:0,left:0,width:0,placement:"bottom"},this._dropdownElement=null,this._triggerElement=null,this.handleResize=()=>{this._isOpen&&this.calculatePosition()},this.handleScroll=()=>{var t;if(this._isOpen&&this._triggerElement){const e=this._triggerElement.getBoundingClientRect(),i=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight;(e.bottom<0||e.top>i)&&this.close()}}}get isOpen(){return this._isOpen}get position(){return Object.assign({},this._position)}open(){try{this._isOpen||(this._isOpen=!0,this.host.show=!0,this.requestUpdate(),this.findElements(),setTimeout((()=>{this.calculatePosition()}),10),this.host&&"function"==typeof this.host.setupEventListeners&&setTimeout((()=>{this.host.setupEventListeners()}),50),this.focusSearchInput(),this.dispatchEvent(new CustomEvent("nr-dropdown-open",{bubbles:!0,composed:!0})))}catch(t){this.handleError(t,"open")}}close(){try{this._isOpen&&(this._isOpen=!1,this.host.show=!1,this.resetPosition(),this.requestUpdate(),this.host&&"function"==typeof this.host.removeEventListeners&&this.host.removeEventListeners(),this.dispatchEvent(new CustomEvent("nr-dropdown-close",{bubbles:!0,composed:!0})))}catch(t){this.handleError(t,"close")}}toggle(){this._isOpen?this.close():this.open()}focusSearchInput(){try{const t=this.host;t&&t.searchable&&setTimeout((()=>{var e;const i=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelector(".search-input");i&&"function"==typeof i.focus&&i.focus()}),100)}catch(t){console.warn("Failed to focus search input:",t)}}calculatePosition(){var t;try{if(this._dropdownElement&&this._triggerElement||this.findElements(),!this._dropdownElement||!this._triggerElement)return;const e=this._triggerElement.getBoundingClientRect(),i=((null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight)-e.bottom,s=e.top,o=200,r=this.determineOptimalPlacement(o,s,i);this._position={left:0,width:0,placement:r,top:0},this.applyPosition()}catch(t){this.handleError(t,"calculatePosition")}}resetPosition(){try{if(this._dropdownElement){this._dropdownElement.style.removeProperty("position"),this._dropdownElement.style.removeProperty("top"),this._dropdownElement.style.removeProperty("left"),this._dropdownElement.style.removeProperty("width");this.host.maxHeight||this._dropdownElement.style.removeProperty("max-height"),this._dropdownElement.style.removeProperty("min-height"),this._dropdownElement.style.removeProperty("height"),this._dropdownElement.style.removeProperty("overflow-y"),this._dropdownElement.style.removeProperty("transform"),this._dropdownElement.style.removeProperty("display"),this._dropdownElement.style.removeProperty("opacity"),this._dropdownElement.style.removeProperty("visibility"),this._dropdownElement.style.removeProperty("z-index"),this._dropdownElement.classList.remove("placement-top","placement-bottom")}}catch(t){this.handleError(t,"resetPosition")}}setElements(t,e){this._dropdownElement=t,this._triggerElement=e}findElements(){try{const t=this._host;if(t.optionsElement&&t.wrapper)return this._dropdownElement=t.optionsElement,void(this._triggerElement=t.wrapper);t.shadowRoot&&(this._dropdownElement=t.shadowRoot.querySelector(".options"),this._triggerElement=t.shadowRoot.querySelector(".wrapper"))}catch(t){this.handleError(t,"findElements")}}determineOptimalPlacement(t,e,i){return i>=t?"bottom":e>=t||e>i?"top":"bottom"}applyPosition(){var t;try{if(!this._dropdownElement||!this._triggerElement)return;const e=this.host.maxHeight,{placement:i}=this._position,s=this._triggerElement.getBoundingClientRect(),o=s.width;this._dropdownElement.style.position="absolute",this._dropdownElement.style.left="0",this._dropdownElement.style.right="auto",this._dropdownElement.style.width=`${o}px`,this._dropdownElement.style.zIndex="1000",this._dropdownElement.style.height="auto",e||(this._dropdownElement.style.maxHeight="none"),this._dropdownElement.style.minHeight="auto","bottom"===i?(this._dropdownElement.style.top="100%",this._dropdownElement.style.bottom="auto"):(this._dropdownElement.style.top="auto",this._dropdownElement.style.bottom="100%");const r=this._dropdownElement.scrollHeight,l=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight;let n;n="bottom"===i?l-s.bottom-10:s.top-10,e?(this._dropdownElement.style.maxHeight=e,this._dropdownElement.style.overflowY="auto"):r>n?(this._dropdownElement.style.maxHeight=`${n}px`,this._dropdownElement.style.overflowY="auto"):(this._dropdownElement.style.maxHeight=`${r}px`,this._dropdownElement.style.overflowY="auto"),this._dropdownElement.classList.remove("placement-top","placement-bottom"),this._dropdownElement.classList.add(`placement-${i}`)}catch(t){this.handleError(t,"applyPosition")}}getAvailableSpace(){var t,e;if(!this._triggerElement)return{above:0,below:0,left:0,right:0};const i=this._triggerElement.getBoundingClientRect(),s=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,o=(null===(e=window.visualViewport)||void 0===e?void 0:e.width)||window.innerWidth;return{above:i.top,below:s-i.bottom,left:i.left,right:o-i.right}}hostConnected(){window.addEventListener("resize",this.handleResize),window.addEventListener("scroll",this.handleScroll,!0)}hostDisconnected(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.handleScroll,!0)}}class fe extends pe{constructor(){super(...arguments),this._focusedIndex=-1,this._hasFocus=!1}get focusedIndex(){return this._focusedIndex}getFocusedOption(){if(this._focusedIndex>=0&&this._focusedIndex<this.host.options.length)return this.host.options[this._focusedIndex]}get hasFocus(){return this._hasFocus}setFocusedOption(t){try{t>=0&&t<this.host.options.length&&(this._focusedIndex=t,this.requestUpdate(),this.dispatchEvent(new CustomEvent("nr-focus-change",{detail:{focusedIndex:t,focusedOption:this.getFocusedOption()},bubbles:!0,composed:!0})))}catch(t){this.handleError(t,"setFocusedOption")}}focus(){var t;try{const e=null===(t=this._host.shadowRoot)||void 0===t?void 0:t.querySelector(".wrapper");e&&(e.focus(),this._hasFocus=!0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("nr-focus",{bubbles:!0,composed:!0})))}catch(t){this.handleError(t,"focus")}}blur(){var t;try{const e=null===(t=this._host.shadowRoot)||void 0===t?void 0:t.querySelector(".wrapper");e&&e.blur(),this._hasFocus=!1,this._focusedIndex=-1,this.requestUpdate(),this.dispatchEvent(new CustomEvent("nr-blur",{bubbles:!0,composed:!0}))}catch(t){this.handleError(t,"blur")}}focusNext(){try{const t=this.getNextFocusableIndex(this._focusedIndex);-1!==t&&this.setFocusedOption(t)}catch(t){this.handleError(t,"focusNext")}}focusPrevious(){try{const t=this.getPreviousFocusableIndex(this._focusedIndex);-1!==t&&this.setFocusedOption(t)}catch(t){this.handleError(t,"focusPrevious")}}focusFirst(){try{const t=this.getNextFocusableIndex(-1);-1!==t&&this.setFocusedOption(t)}catch(t){this.handleError(t,"focusFirst")}}focusLast(){try{const t=this.getPreviousFocusableIndex(this.host.options.length);-1!==t&&this.setFocusedOption(t)}catch(t){this.handleError(t,"focusLast")}}clearFocus(){this._focusedIndex=-1,this._hasFocus=!1,this.requestUpdate()}handleFocus(){this._hasFocus=!0,this.requestUpdate()}handleBlur(){this._hasFocus=!1,this._focusedIndex=-1,this.requestUpdate()}getNextFocusableIndex(t){const e=this.host.options;for(let i=t+1;i<e.length;i++)if(!e[i].disabled)return i;for(let i=0;i<=t;i++)if(!e[i].disabled)return i;return-1}getPreviousFocusableIndex(t){const e=this.host.options;for(let i=t-1;i>=0;i--)if(!e[i].disabled)return i;for(let i=e.length-1;i>=t;i--)if(!e[i].disabled)return i;return-1}findOptionIndex(t){return this.host.options.findIndex((e=>e.value===t))}focusOptionByValue(t){const e=this.findOptionIndex(t);-1!==e&&this.setFocusedOption(e)}}!function(t){t.Valid="valid",t.Invalid="invalid",t.Pending="pending",t.Pristine="pristine"}(ue||(ue={}));class ge extends pe{constructor(t,e){super(t),this.selectionController=e,this._isValid=!0,this._validationMessage="",this._validationState=ue.Pristine}get isValid(){return this._isValid}get validationMessage(){return this._validationMessage}get validationState(){return this._validationState}validate(){try{this._validationState=ue.Pending;const t=this.selectionController.getSelectedOptions().length>0;return this.host.required&&!t?(this.setValidationResult(!1,"This field is required",ue.Invalid),!1):(this.setValidationResult(!0,"",ue.Valid),!0)}catch(t){return this.handleError(t,"validate"),this.setValidationResult(!1,"Validation error occurred",ue.Invalid),!1}}reset(){try{this._isValid=!0,this._validationMessage="",this._validationState=ue.Pristine,this.requestUpdate(),this.dispatchValidationEvent()}catch(t){this.handleError(t,"reset")}}getFormData(){var t;try{const e=this._host,i=e.name||e.getAttribute("name")||"select",s=this.selectionController.getSelectedOptions();return this.host.multiple?{[i]:s.map((t=>t.value))}:{[i]:(null===(t=s[0])||void 0===t?void 0:t.value)||""}}catch(t){return this.handleError(t,"getFormData"),{}}}checkValidity(){return this.validate()}reportValidity(){var t;const e=this.validate();if(!e){const e=null===(t=this._host.shadowRoot)||void 0===t?void 0:t.querySelector(".wrapper");e&&e.focus()}return e}setCustomValidity(t){try{t?this.setValidationResult(!1,t,ue.Invalid):this.validate()}catch(t){this.handleError(t,"setCustomValidity")}}validateOnChange(){this._validationState!==ue.Pristine&&this.validate()}validateOnBlur(){this._validationState===ue.Pristine&&(this._validationState=ue.Pending),this.validate()}setValidationResult(t,e,i){const s=this._isValid!==t||this._validationMessage!==e||this._validationState!==i;this._isValid=t,this._validationMessage=e,this._validationState=i,s&&(this.requestUpdate(),this.dispatchValidationEvent())}dispatchValidationEvent(){const t={isValid:this._isValid,validationMessage:this._validationMessage,validationState:this._validationState};this.dispatchEvent(new CustomEvent("nr-validation",{detail:t,bubbles:!0,composed:!0}))}hostUpdated(){this.validateOnChange()}getValidationClasses(){return{valid:this._isValid&&this._validationState===ue.Valid,invalid:!this._isValid&&this._validationState===ue.Invalid,pending:this._validationState===ue.Pending,pristine:this._validationState===ue.Pristine}}getAriaAttributes(){const t={};return this.host.required&&(t["aria-required"]="true"),this._isValid||(t["aria-invalid"]="true",this._validationMessage&&(t["aria-describedby"]="validation-message")),t}}class me extends pe{constructor(){super(...arguments),this._searchQuery="",this.handleSearchInput=t=>{this.setSearchQuery(t.detail.value||"")},this.handleSearchClear=()=>{this.clearSearch()},this.handleSearchKeyDown=t=>{if(["ArrowDown","ArrowUp","Enter","Home","End"].includes(t.key)){const e=this.host.keyboardController;e&&e.handleKeyDown(t)}else t.stopPropagation(),"Escape"===t.key&&(this.host.closeDropdown(),this.host.focus())}}get searchQuery(){return this._searchQuery}get hasSearch(){return""!==this._searchQuery.trim()}setSearchQuery(t){this._searchQuery=t,this.host.searchQuery=t,this.host.requestUpdate()}search(t){this.setSearchQuery(t)}clearSearch(){this.setSearchQuery("")}getFilteredOptions(t){if(!this.host.searchable||!this._searchQuery.trim())return t;const e=this._searchQuery.toLowerCase().trim();return t.filter((t=>t.label.toLowerCase().includes(e)||t.value.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e)))}renderSearchInput(){return this.host.searchable?mt`
584
727
  <div class="search-container">
585
728
  <nr-input
586
729
  type="text"
@@ -612,15 +755,16 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
612
755
  <span class="no-options-text">No results found for "${this._searchQuery}"</span>
613
756
  </div>
614
757
  </div>
615
- `}hasNoResults(t){return this.host.searchable&&""!==this._searchQuery.trim()&&0===this.getFilteredOptions(t).length}getCurrentQuery(){return this.host.searchQuery||this._searchQuery}hostUpdated(){super.hostUpdated(),this.host.searchQuery!==this._searchQuery&&(this._searchQuery=this.host.searchQuery)}hostConnected(){super.hostConnected(),this._searchQuery=""}}class wi extends pi{constructor(){super(...arguments),this.handleTriggerClick=t=>{this.host.disabled||(t.preventDefault(),t.stopPropagation(),this.host.toggleDropdown())},this.handleOptionClick=(t,i)=>{t.stopPropagation(),i.disabled||(this.host.selectOption(i),this.host.multiple||this.host.closeDropdown())},this.handleTagRemove=(t,i)=>{t.stopPropagation(),this.host.unselectOption(i)},this.handleClearAll=t=>{t.stopPropagation(),this.host.clearSelection()},this.handleKeyDown=t=>{const i=this.host.keyboardController;i&&i.handleKeyDown(t)},this.handleFocus=()=>{const t=this.host.focusController;t&&t.handleFocus()},this.handleBlur=()=>{const t=this.host.focusController;t&&t.handleBlur()},this.handleWindowClick=t=>{const i=t.target;this.host.contains(i)||this.host.closeDropdown()}}setupEventListeners(){window.addEventListener("click",this.handleWindowClick)}removeEventListeners(){window.removeEventListener("click",this.handleWindowClick)}hostDisconnected(){super.hostDisconnected(),this.removeEventListeners()}}
758
+ `}hasNoResults(t){return this.host.searchable&&""!==this._searchQuery.trim()&&0===this.getFilteredOptions(t).length}getCurrentQuery(){return this.host.searchQuery||this._searchQuery}hostUpdated(){super.hostUpdated(),this.host.searchQuery!==this._searchQuery&&(this._searchQuery=this.host.searchQuery)}hostConnected(){super.hostConnected(),this._searchQuery=""}}class we extends pe{constructor(){super(...arguments),this.handleTriggerClick=t=>{this.host.disabled||(t.preventDefault(),t.stopPropagation(),this.host.toggleDropdown())},this.handleOptionClick=(t,e)=>{t.stopPropagation(),e.disabled||(this.host.selectOption(e),this.host.multiple||this.host.closeDropdown())},this.handleTagRemove=(t,e)=>{t.stopPropagation(),this.host.unselectOption(e)},this.handleClearAll=t=>{t.stopPropagation(),this.host.clearSelection()},this.handleKeyDown=t=>{const e=this.host.keyboardController;e&&e.handleKeyDown(t)},this.handleFocus=()=>{const t=this.host.focusController;t&&t.handleFocus()},this.handleBlur=()=>{const t=this.host.focusController;t&&t.handleBlur()},this.handleWindowClick=t=>{const e=t.target;this.host.contains(e)||this.host.closeDropdown()}}setupEventListeners(){window.addEventListener("click",this.handleWindowClick)}removeEventListeners(){window.removeEventListener("click",this.handleWindowClick)}hostDisconnected(){super.hostDisconnected(),this.removeEventListeners()}}
616
759
  /**
617
760
  * @license
618
761
  * Copyright 2023 Nuraly, Laabidi Aymen
619
762
  * SPDX-License-Identifier: MIT
620
- */var xi=function(t,i,e,s){for(var o,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(i,e,n):o(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};let $i=class extends((t=>ei(ti(si(t))))(Mt)){constructor(){super(...arguments),this.requiredComponents=[],this.options=[],this.defaultValue=[],this.placeholder="Select an option",this.disabled=!1,this.type=oi.Default,this.multiple=!1,this.show=!1,this.status=ri.Default,this.size=ni.Medium,this.required=!1,this.name="",this.value="",this.noOptionsMessage="No options available",this.noOptionsIcon="circle-info",this.searchable=!1,this.searchPlaceholder="Search options...",this.searchQuery="",this.selectionController=new vi(this),this.dropdownController=new yi(this),this.keyboardController=new bi(this,this.selectionController,this.dropdownController),this.focusController=new fi(this),this.validationController=new gi(this,this.selectionController),this.searchController=new mi(this),this.eventController=new wi(this),this.handleTriggerClick=t=>{this.eventController.handleTriggerClick(t)},this.handleOptionClick=(t,i)=>{this.eventController.handleOptionClick(t,i)},this.handleTagRemove=(t,i)=>{this.eventController.handleTagRemove(t,i)},this.handleClearAll=t=>{this.eventController.handleClearAll(t)},this.handleKeyDown=t=>{this.eventController.handleKeyDown(t)},this.handleFocus=()=>{this.eventController.handleFocus()},this.handleBlur=()=>{this.eventController.handleBlur()}}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}firstUpdated(t){super.firstUpdated(t),this.optionsElement&&this.wrapper?this.dropdownController.setElements(this.optionsElement,this.wrapper):setTimeout((()=>{this.optionsElement&&this.wrapper&&this.dropdownController.setElements(this.optionsElement,this.wrapper)}),100),this.defaultValue.length>0&&this.selectionController.initializeFromDefaultValue()}get selectedOptions(){return this.selectionController.getSelectedOptions()}get selectedOption(){return this.selectionController.getSelectedOption()}selectOption(t){this.selectionController.selectOption(t)}unselectOption(t){this.selectionController.unselectOption(t)}clearSelection(){this.selectionController.clearSelection()}isOptionSelected(t){return this.selectionController.isOptionSelected(t)}toggleDropdown(){this.dropdownController.toggle()}openDropdown(){this.dropdownController.open()}closeDropdown(){this.dropdownController.close()}focus(){this.focusController.focus()}blur(){this.focusController.blur()}validate(){return this.validationController.validate()}checkValidity(){return this.validationController.checkValidity()}reportValidity(){return this.validationController.reportValidity()}setCustomValidity(t){this.validationController.setCustomValidity(t)}searchOptions(t){this.searchController.search(t)}clearSearch(){this.searchController.clearSearch()}getSearchFilteredOptions(){return this.searchController.getFilteredOptions(this.options)}getCurrentSearchQuery(){return this.searchController.searchQuery}setupGlobalEventListeners(){this.eventController.setupEventListeners()}removeGlobalEventListeners(){this.eventController.removeEventListeners()}getFilteredOptions(){return this.searchController.getFilteredOptions(this.options)}setupEventListeners(){this.eventController.setupEventListeners()}removeEventListeners(){this.eventController.removeEventListeners()}render(){return mt`${((t,i,e)=>{for(const e of i)if(e[0]===t)return(0,e[1])();return null==e?void 0:e()})(this.type,[[oi.Default,()=>this.renderDefault()],[oi.Inline,()=>this.renderInline()],[oi.Button,()=>this.renderButton()],[oi.Slot,()=>this.renderSlot()]])}`}renderDefault(){const t=this.selectedOptions,i=this.validationController.getValidationClasses();return mt`
763
+ */var xe=function(t,e,i,s){for(var o,r=arguments.length,l=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,n=t.length-1;n>=0;n--)(o=t[n])&&(l=(r<3?o(l):r>3?o(e,i,l):o(e,i))||l);return r>3&&l&&Object.defineProperty(e,i,l),l};let $e=class extends((t=>ie(te(se(t))))(Ft)){constructor(){super(...arguments),this.requiredComponents=["nr-input","hy-icon"],this.options=[],this.defaultValue=[],this.placeholder="Select an option",this.disabled=!1,this.type=oe.Default,this.multiple=!1,this.show=!1,this.status=re.Default,this.size=le.Medium,this.required=!1,this.name="",this.value="",this.noOptionsMessage="No options available",this.noOptionsIcon="circle-info",this.searchable=!1,this.clearable=!0,this.searchPlaceholder="Search options...",this.searchQuery="",this.maxHeight="",this.selectionController=new ve(this),this.dropdownController=new ye(this),this.keyboardController=new be(this,this.selectionController,this.dropdownController),this.focusController=new fe(this),this.validationController=new ge(this,this.selectionController),this.searchController=new me(this),this.eventController=new we(this),this.handleTriggerClick=t=>{this.eventController.handleTriggerClick(t)},this.handleOptionClick=(t,e)=>{this.eventController.handleOptionClick(t,e)},this.handleTagRemove=(t,e)=>{this.eventController.handleTagRemove(t,e)},this.handleClearAll=t=>{this.eventController.handleClearAll(t)},this.handleKeyDown=t=>{this.eventController.handleKeyDown(t)},this.handleFocus=()=>{this.eventController.handleFocus()},this.handleBlur=()=>{this.eventController.handleBlur()}}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}firstUpdated(t){super.firstUpdated(t),this.optionsElement&&this.wrapper?this.dropdownController.setElements(this.optionsElement,this.wrapper):setTimeout((()=>{this.optionsElement&&this.wrapper&&this.dropdownController.setElements(this.optionsElement,this.wrapper)}),100),this.defaultValue.length>0&&this.selectionController.initializeFromDefaultValue()}get selectedOptions(){return this.selectionController.getSelectedOptions()}get selectedOption(){return this.selectionController.getSelectedOption()}selectOption(t){this.selectionController.selectOption(t)}unselectOption(t){this.selectionController.unselectOption(t)}clearSelection(){this.selectionController.clearSelection()}isOptionSelected(t){return this.selectionController.isOptionSelected(t)}toggleDropdown(){this.dropdownController.toggle()}openDropdown(){this.dropdownController.open()}closeDropdown(){this.dropdownController.close()}focus(){this.focusController.focus()}blur(){this.focusController.blur()}validate(){return this.validationController.validate()}checkValidity(){return this.validationController.checkValidity()}reportValidity(){return this.validationController.reportValidity()}setCustomValidity(t){this.validationController.setCustomValidity(t)}searchOptions(t){this.searchController.search(t)}clearSearch(){this.searchController.clearSearch()}getSearchFilteredOptions(){return this.searchController.getFilteredOptions(this.options)}getCurrentSearchQuery(){return this.searchController.searchQuery}setupGlobalEventListeners(){this.eventController.setupEventListeners()}removeGlobalEventListeners(){this.eventController.removeEventListeners()}getFilteredOptions(){return this.searchController.getFilteredOptions(this.options)}setupEventListeners(){this.eventController.setupEventListeners()}removeEventListeners(){this.eventController.removeEventListeners()}render(){return mt`${((t,e,i)=>{for(const i of e)if(i[0]===t)return(0,i[1])();return null==i?void 0:i()})(this.type,[[oe.Default,()=>this.renderDefault()],[oe.Inline,()=>this.renderInline()],[oe.Button,()=>this.renderButton()],[oe.Slot,()=>this.renderSlot()]])}`}renderDefault(){const t=this.selectedOptions,e=this.validationController.getValidationClasses();return mt`
621
764
  <slot name="label"></slot>
622
765
  <div
623
- class="${Qt(Object.assign({wrapper:!0},i))}"
766
+ class="${Zt(Object.assign({wrapper:!0},e))}"
767
+ data-theme="${this.currentTheme}"
624
768
  tabindex="0"
625
769
  role="combobox"
626
770
  aria-expanded="${this.show}"
@@ -651,6 +795,7 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
651
795
  class="options"
652
796
  role="listbox"
653
797
  aria-multiselectable="${this.multiple}"
798
+ style=${this.maxHeight?Jt({"max-height":this.maxHeight}):xt}
654
799
  >
655
800
  ${this.searchable?this.renderSearchInput():xt}
656
801
  ${this.renderSelectOptions()}
@@ -675,13 +820,21 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
675
820
  <hy-icon name="angle-down" class="arrow-icon"></hy-icon>
676
821
  </button>
677
822
 
678
- <div class="options" role="listbox">
823
+ <div
824
+ class="options"
825
+ role="listbox"
826
+ style=${this.maxHeight?Jt({"max-height":this.maxHeight}):xt}
827
+ >
679
828
  ${this.searchable?this.renderSearchInput():xt}
680
829
  ${this.renderSelectOptions()}
681
830
  </div>
682
831
  `}renderSlot(){return mt`
683
832
  <slot name="trigger" @click=${this.handleTriggerClick}></slot>
684
- <div class="options" role="listbox">
833
+ <div
834
+ class="options"
835
+ role="listbox"
836
+ style=${this.maxHeight?Jt({"max-height":this.maxHeight}):xt}
837
+ >
685
838
  ${this.searchable?this.renderSearchInput():xt}
686
839
  ${this.renderSelectOptions()}
687
840
  </div>
@@ -691,11 +844,11 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
691
844
  <hy-icon
692
845
  name="remove"
693
846
  class="tag-close"
694
- @click=${i=>this.handleTagRemove(i,t)}
847
+ @click=${e=>this.handleTagRemove(e,t)}
695
848
  aria-label="Remove ${t.label}"
696
849
  ></hy-icon>
697
850
  </span>
698
- `)):mt`${t[0].label}`}renderStatusIcon(){switch(this.status){case ri.Warning:return mt`<hy-icon name="warning" class="status-icon warning"></hy-icon>`;case ri.Error:return mt`<hy-icon name="exclamation-circle" class="status-icon error"></hy-icon>`;case ri.Success:return mt`<hy-icon name="check-circle" class="status-icon success"></hy-icon>`;default:return xt}}renderClearButton(t){return 0===t.length||this.disabled?xt:mt`
851
+ `)):mt`${t[0].label}`}renderStatusIcon(){switch(this.status){case re.Warning:return mt`<hy-icon name="warning" class="status-icon warning"></hy-icon>`;case re.Error:return mt`<hy-icon name="exclamation-circle" class="status-icon error"></hy-icon>`;case re.Success:return mt`<hy-icon name="check-circle" class="status-icon success"></hy-icon>`;default:return xt}}renderClearButton(t){return!this.clearable||0===t.length||this.disabled?xt:mt`
699
852
  <hy-icon
700
853
  name="remove"
701
854
  class="clear-icon"
@@ -714,14 +867,14 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
714
867
  <span class="no-options-text">${this.noOptionsMessage}</span>
715
868
  </div>
716
869
  </div>
717
- `;if(this.searchController.hasNoResults(this.options))return this.searchController.renderNoResults();const i=this.keyboardController.focusedOption;return Gt(t,(t=>{const e=this.isOptionSelected(t),s=i&&i.value===t.value;return mt`
870
+ `;if(this.searchController.hasNoResults(this.options))return this.searchController.renderNoResults();const e=this.keyboardController.focusedOption;return Gt(t,(t=>{const i=this.isOptionSelected(t),s=e&&e.value===t.value;return mt`
718
871
  <div
719
- class="${Qt({option:!0,selected:e,focused:s,disabled:Boolean(t.disabled)})}"
872
+ class="${Zt({option:!0,selected:i,focused:s,disabled:Boolean(t.disabled)})}"
720
873
  role="option"
721
- aria-selected="${e}"
874
+ aria-selected="${i}"
722
875
  aria-disabled="${Boolean(t.disabled)}"
723
876
  data-value="${t.value}"
724
- @click=${i=>this.handleOptionClick(i,t)}
877
+ @click=${e=>this.handleOptionClick(e,t)}
725
878
  style=${Jt(t.style?{style:t.style}:{})}
726
879
  title="${t.title||""}"
727
880
  >
@@ -733,7 +886,7 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
733
886
  </div>
734
887
  </div>
735
888
 
736
- ${e?mt`<hy-icon name="check" class="check-icon" aria-hidden="true"></hy-icon>`:xt}
889
+ ${i?mt`<hy-icon name="check" class="check-icon" aria-hidden="true"></hy-icon>`:xt}
737
890
 
738
891
  ${t.state&&t.message?mt`
739
892
  <div class="option-message ${t.state}">
@@ -746,10 +899,10 @@ function Bt(t,i){return(({finisher:t,descriptor:i})=>(e,s)=>{var o;if(void 0===s
746
899
  <div class="validation-message ${this.status}" id="validation-message">
747
900
  ${t}
748
901
  </div>
749
- `:xt}};$i.styles=Wt,xi([Vt({type:Array})],$i.prototype,"options",void 0),xi([Vt({type:Array,attribute:"default-value"})],$i.prototype,"defaultValue",void 0),xi([Vt({type:String})],$i.prototype,"placeholder",void 0),xi([Vt({type:Boolean,reflect:!0})],$i.prototype,"disabled",void 0),xi([Vt({type:String,reflect:!0})],$i.prototype,"type",void 0),xi([Vt({type:Boolean,attribute:"multiple"})],$i.prototype,"multiple",void 0),xi([Vt({type:Boolean,reflect:!0})],$i.prototype,"show",void 0),xi([Vt({type:String,reflect:!0})],$i.prototype,"status",void 0),xi([Vt({type:String,reflect:!0})],$i.prototype,"size",void 0),xi([Vt({type:Boolean,reflect:!0})],$i.prototype,"required",void 0),xi([Vt({type:String})],$i.prototype,"name",void 0),xi([Vt({type:String})],$i.prototype,"value",void 0),xi([Vt({type:String,attribute:"no-options-message"})],$i.prototype,"noOptionsMessage",void 0),xi([Vt({type:String,attribute:"no-options-icon"})],$i.prototype,"noOptionsIcon",void 0),xi([Vt({type:Boolean,reflect:!0})],$i.prototype,"searchable",void 0),xi([Vt({type:String,attribute:"search-placeholder"})],$i.prototype,"searchPlaceholder",void 0),xi([Vt({type:String})],$i.prototype,"searchQuery",void 0),xi([Bt(".options")],$i.prototype,"optionsElement",void 0),xi([Bt(".wrapper")],$i.prototype,"wrapper",void 0),xi([Bt(".search-input")],$i.prototype,"searchInput",void 0),$i=xi([(t=>i=>"function"==typeof i?((t,i)=>(customElements.define(t,i),i))(t,i):((t,i)=>{const{kind:e,elements:s}=i;return{kind:e,elements:s,finisher(i){customElements.define(t,i)}}})(t,i))("hy-select")],$i);
902
+ `:xt}};$e.styles=Wt,xe([Vt({type:Array})],$e.prototype,"options",void 0),xe([Vt({type:Array,attribute:"default-value"})],$e.prototype,"defaultValue",void 0),xe([Vt({type:String})],$e.prototype,"placeholder",void 0),xe([Vt({type:Boolean,reflect:!0})],$e.prototype,"disabled",void 0),xe([Vt({type:String,reflect:!0})],$e.prototype,"type",void 0),xe([Vt({type:Boolean,attribute:"multiple"})],$e.prototype,"multiple",void 0),xe([Vt({type:Boolean,reflect:!0})],$e.prototype,"show",void 0),xe([Vt({type:String,reflect:!0})],$e.prototype,"status",void 0),xe([Vt({type:String,reflect:!0})],$e.prototype,"size",void 0),xe([Vt({type:Boolean,reflect:!0})],$e.prototype,"required",void 0),xe([Vt({type:String})],$e.prototype,"name",void 0),xe([Vt({type:String})],$e.prototype,"value",void 0),xe([Vt({type:String,attribute:"no-options-message"})],$e.prototype,"noOptionsMessage",void 0),xe([Vt({type:String,attribute:"no-options-icon"})],$e.prototype,"noOptionsIcon",void 0),xe([Vt({type:Boolean,reflect:!0})],$e.prototype,"searchable",void 0),xe([Vt({type:Boolean,reflect:!0})],$e.prototype,"clearable",void 0),xe([Vt({type:String,attribute:"search-placeholder"})],$e.prototype,"searchPlaceholder",void 0),xe([Vt({type:String})],$e.prototype,"searchQuery",void 0),xe([Vt({type:String,attribute:"max-height"})],$e.prototype,"maxHeight",void 0),xe([Bt(".options")],$e.prototype,"optionsElement",void 0),xe([Bt(".wrapper")],$e.prototype,"wrapper",void 0),xe([Bt(".search-input")],$e.prototype,"searchInput",void 0),$e=xe([(t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:s}=e;return{kind:i,elements:s,finisher(e){customElements.define(t,e)}}})(t,e))("hy-select")],$e);
750
903
  /**
751
904
  * @license
752
905
  * Copyright 2023 Nuraly, Laabidi Aymen
753
906
  * SPDX-License-Identifier: MIT
754
907
  */
755
- const Ei={CHANGE:"nr-change",FOCUS:"nr-focus",BLUR:"nr-blur",DROPDOWN_OPEN:"nr-dropdown-open",DROPDOWN_CLOSE:"nr-dropdown-close",VALIDATION:"nr-validation",ERROR:"nr-select-error"},Si={WRAPPER:"wrapper",SELECT:"select",TRIGGER:"select-trigger",OPTIONS:"options",OPTION:"option",SELECTED:"selected",FOCUSED:"focused",DISABLED:"disabled",TAG:"tag",TAG_LABEL:"tag-label",TAG_CLOSE:"tag-close",ICONS_CONTAINER:"icons-container",ARROW_ICON:"arrow-icon",CLEAR_ICON:"clear-icon",STATUS_ICON:"status-icon",CHECK_ICON:"check-icon",VALIDATION_MESSAGE:"validation-message",PLACEHOLDER:"placeholder",NO_OPTIONS:"no-options",NO_OPTIONS_CONTENT:"no-options-content",NO_OPTIONS_ICON:"no-options-icon",NO_OPTIONS_TEXT:"no-options-text",SEARCH_CONTAINER:"search-container",SEARCH_INPUT:"search-input",SEARCH_ICON:"search-icon",SEARCH_CLEAR:"search-clear"},Oi={COMBOBOX:"combobox",LISTBOX:"listbox",OPTION:"option",EXPANDED:"aria-expanded",HASPOPUP:"aria-haspopup",MULTISELECTABLE:"aria-multiselectable",SELECTED:"aria-selected",DISABLED:"aria-disabled",REQUIRED:"aria-required",INVALID:"aria-invalid",DESCRIBEDBY:"aria-describedby",LABELLEDBY:"aria-labelledby"},Ai={PLACEHOLDER:"Select an option",MAX_HEIGHT:"200px",DROPDOWN_OFFSET:4,TAG_MAX_WIDTH:"150px",TRANSITION_DURATION:200,DEBOUNCE_DELAY:300},ki={ENTER:"Enter",SPACE:" ",ESCAPE:"Escape",ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End",TAB:"Tab"},Ci="",zi=", ";export{pi as BaseSelectController,ai as DropdownPlacement,Ci as EMPTY_STRING,$i as HySelectComponent,zi as MULTIPLE_OPTIONS_SEPARATOR,li as OptionSize,Oi as SELECT_ARIA,Si as SELECT_CLASSES,Ai as SELECT_DEFAULTS,Ei as SELECT_EVENTS,ki as SELECT_KEYS,di as SearchMode,hi as SelectDirection,yi as SelectDropdownController,wi as SelectEventController,fi as SelectFocusController,bi as SelectKeyboardController,mi as SelectSearchController,vi as SelectSelectionController,ni as SelectSize,ri as SelectStatus,oi as SelectType,gi as SelectValidationController,ci as SelectVariant};
908
+ const ke={CHANGE:"nr-change",FOCUS:"nr-focus",BLUR:"nr-blur",DROPDOWN_OPEN:"nr-dropdown-open",DROPDOWN_CLOSE:"nr-dropdown-close",VALIDATION:"nr-validation",ERROR:"nr-select-error"},Ee={WRAPPER:"wrapper",SELECT:"select",TRIGGER:"select-trigger",OPTIONS:"options",OPTION:"option",SELECTED:"selected",FOCUSED:"focused",DISABLED:"disabled",TAG:"tag",TAG_LABEL:"tag-label",TAG_CLOSE:"tag-close",ICONS_CONTAINER:"icons-container",ARROW_ICON:"arrow-icon",CLEAR_ICON:"clear-icon",STATUS_ICON:"status-icon",CHECK_ICON:"check-icon",VALIDATION_MESSAGE:"validation-message",PLACEHOLDER:"placeholder",NO_OPTIONS:"no-options",NO_OPTIONS_CONTENT:"no-options-content",NO_OPTIONS_ICON:"no-options-icon",NO_OPTIONS_TEXT:"no-options-text",SEARCH_CONTAINER:"search-container",SEARCH_INPUT:"search-input",SEARCH_ICON:"search-icon",SEARCH_CLEAR:"search-clear"},Se={COMBOBOX:"combobox",LISTBOX:"listbox",OPTION:"option",EXPANDED:"aria-expanded",HASPOPUP:"aria-haspopup",MULTISELECTABLE:"aria-multiselectable",SELECTED:"aria-selected",DISABLED:"aria-disabled",REQUIRED:"aria-required",INVALID:"aria-invalid",DESCRIBEDBY:"aria-describedby",LABELLEDBY:"aria-labelledby"},Oe={PLACEHOLDER:"Select an option",MAX_HEIGHT:"200px",DROPDOWN_OFFSET:4,TAG_MAX_WIDTH:"150px",TRANSITION_DURATION:200,DEBOUNCE_DELAY:300},Ae={ENTER:"Enter",SPACE:" ",ESCAPE:"Escape",ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End",TAB:"Tab"},ze="",Ce=", ";export{pe as BaseSelectController,he as DropdownPlacement,ze as EMPTY_STRING,$e as HySelectComponent,Ce as MULTIPLE_OPTIONS_SEPARATOR,ne as OptionSize,Se as SELECT_ARIA,Ee as SELECT_CLASSES,Oe as SELECT_DEFAULTS,ke as SELECT_EVENTS,Ae as SELECT_KEYS,de as SearchMode,ce as SelectDirection,ye as SelectDropdownController,we as SelectEventController,fe as SelectFocusController,be as SelectKeyboardController,me as SelectSearchController,ve as SelectSelectionController,le as SelectSize,re as SelectStatus,oe as SelectType,ge as SelectValidationController,ae as SelectVariant};