@cas-smartdesign/token-selector 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,250 @@
1
+ var window;(window||={})["@cas-smartdesign/token-selector"]=(()=>{var ze=Object.defineProperty;var Fo=Object.getOwnPropertyDescriptor;var jo=Object.getOwnPropertyNames;var Vo=Object.prototype.hasOwnProperty;var Wo=(e,t)=>{for(var i in t)ze(e,i,{get:t[i],enumerable:!0})},zo=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of jo(t))!Vo.call(e,r)&&r!==i&&ze(e,r,{get:()=>t[r],enumerable:!(o=Fo(t,r))||o.enumerable});return e};var qo=e=>zo(ze({},"__esModule",{value:!0}),e);var ns={};Wo(ns,{SelectionMode:()=>Do,default:()=>ss,generator:()=>Oo});var Ee=window,Ae=Ee.ShadowRoot&&(Ee.ShadyCSS===void 0||Ee.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qe=Symbol(),Ni=new WeakMap,ee=class{constructor(t,i,o){if(this._$cssResult$=!0,o!==qe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o,i=this.t;if(Ae&&t===void 0){let o=i!==void 0&&i.length===1;o&&(t=Ni.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Ni.set(i,t))}return t}toString(){return this.cssText}},it=e=>new ee(typeof e=="string"?e:e+"",void 0,qe),kt=(e,...t)=>{let i=e.length===1?e[0]:t.reduce((o,r,s)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[s+1],e[0]);return new ee(i,e,qe)},Ge=(e,t)=>{Ae?e.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):t.forEach(i=>{let o=document.createElement("style"),r=Ee.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=i.cssText,e.appendChild(o)})},ke=Ae?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(let o of t.cssRules)i+=o.cssText;return it(i)})(e):e;var Ke,Se=window,Bi=Se.trustedTypes,Go=Bi?Bi.emptyScript:"",Ui=Se.reactiveElementPolyfillSupport,Ye={toAttribute(e,t){switch(t){case Boolean:e=e?Go:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=e!==null;break;case Number:i=e===null?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch{i=null}}return i}},Fi=(e,t)=>t!==e&&(t==t||e==e),Xe={attribute:!0,type:String,converter:Ye,reflect:!1,hasChanged:Fi},Je="finalized",at=class 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(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((i,o)=>{let r=this._$Ep(o,i);r!==void 0&&(this._$Ev.set(r,o),t.push(r))}),t}static createProperty(t,i=Xe){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){let o=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,o,i);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,i,o){return{get(){return this[i]},set(r){let s=this[t];this[i]=r,this.requestUpdate(t,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Xe}static finalize(){if(this.hasOwnProperty(Je))return!1;this[Je]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(let r of o)this.createProperty(r,i[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let i=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let r of o)i.unshift(ke(r))}else t!==void 0&&i.push(ke(t));return i}static _$Ep(t,i){let o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(i=>i(this))}addController(t){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)===null||o===void 0||o.call(t))}removeController(t){var i;(i=this._$ES)===null||i===void 0||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 t;let i=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Ge(i,this.constructor.elementStyles),i}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(t,i,o){this._$AK(t,o)}_$EO(t,i,o=Xe){var r;let s=this.constructor._$Ep(t,o);if(s!==void 0&&o.reflect===!0){let n=(((r=o.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?o.converter:Ye).toAttribute(i,o.type);this._$El=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,i){var o;let r=this.constructor,s=r._$Ev.get(t);if(s!==void 0&&this._$El!==s){let n=r.getPropertyOptions(s),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?n.converter:Ye;this._$El=s,this[s]=a.fromAttribute(i,n.type),this._$El=null}}requestUpdate(t,i,o){let r=!0;t!==void 0&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||Fi)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),o.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,o))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,s)=>this[s]=r),this._$Ei=void 0);let i=!1,o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var s;return(s=r.hostUpdate)===null||s===void 0?void 0:s.call(r)}),this.update(o)):this._$Ek()}catch(r){throw i=!1,this._$Ek(),r}i&&this._$AE(o)}willUpdate(t){}_$AE(t){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var r;return(r=o.hostUpdated)===null||r===void 0?void 0:r.call(o)}),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){this._$EC!==void 0&&(this._$EC.forEach((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};at[Je]=!0,at.elementProperties=new Map,at.elementStyles=[],at.shadowRootOptions={mode:"open"},Ui?.({ReactiveElement:at}),((Ke=Se.reactiveElementVersions)!==null&&Ke!==void 0?Ke:Se.reactiveElementVersions=[]).push("1.6.3");var Ze,_e=window,Ut=_e.trustedTypes,ji=Ut?Ut.createPolicy("lit-html",{createHTML:e=>e}):void 0,ti="$lit$",ft=`lit$${(Math.random()+"").slice(9)}$`,Xi="?"+ft,Ko=`<${Xi}>`,$t=document,oe=()=>$t.createComment(""),re=e=>e===null||typeof e!="object"&&typeof e!="function",Yi=Array.isArray,Xo=e=>Yi(e)||typeof e?.[Symbol.iterator]=="function",Qe=`[
2
+ \f\r]`,ie=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vi=/-->/g,Wi=/>/g,St=RegExp(`>|${Qe}(?:([^\\s"'>=/]+)(${Qe}*=${Qe}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),zi=/'/g,qi=/"/g,Ji=/^(?:script|style|textarea|title)$/i,Zi=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),S=Zi(1),hs=Zi(2),lt=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),Gi=new WeakMap,_t=$t.createTreeWalker($t,129,null,!1);function Qi(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ji!==void 0?ji.createHTML(t):t}var Yo=(e,t)=>{let i=e.length-1,o=[],r,s=t===2?"<svg>":"",n=ie;for(let a=0;a<i;a++){let l=e[a],c,d,h=-1,f=0;for(;f<l.length&&(n.lastIndex=f,d=n.exec(l),d!==null);)f=n.lastIndex,n===ie?d[1]==="!--"?n=Vi:d[1]!==void 0?n=Wi:d[2]!==void 0?(Ji.test(d[2])&&(r=RegExp("</"+d[2],"g")),n=St):d[3]!==void 0&&(n=St):n===St?d[0]===">"?(n=r??ie,h=-1):d[1]===void 0?h=-2:(h=n.lastIndex-d[2].length,c=d[1],n=d[3]===void 0?St:d[3]==='"'?qi:zi):n===qi||n===zi?n=St:n===Vi||n===Wi?n=ie:(n=St,r=void 0);let u=n===St&&e[a+1].startsWith("/>")?" ":"";s+=n===ie?l+Ko:h>=0?(o.push(c),l.slice(0,h)+ti+l.slice(h)+ft+u):l+ft+(h===-2?(o.push(void 0),a):u)}return[Qi(e,s+(e[i]||"<?>")+(t===2?"</svg>":"")),o]},se=class e{constructor({strings:t,_$litType$:i},o){let r;this.parts=[];let s=0,n=0,a=t.length-1,l=this.parts,[c,d]=Yo(t,i);if(this.el=e.createElement(c,o),_t.currentNode=this.el.content,i===2){let h=this.el.content,f=h.firstChild;f.remove(),h.append(...f.childNodes)}for(;(r=_t.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes()){let h=[];for(let f of r.getAttributeNames())if(f.endsWith(ti)||f.startsWith(ft)){let u=d[n++];if(h.push(f),u!==void 0){let w=r.getAttribute(u.toLowerCase()+ti).split(ft),m=/([.?@])?(.*)/.exec(u);l.push({type:1,index:s,name:m[2],strings:w,ctor:m[1]==="."?ii:m[1]==="?"?oi:m[1]==="@"?ri:jt})}else l.push({type:6,index:s})}for(let f of h)r.removeAttribute(f)}if(Ji.test(r.tagName)){let h=r.textContent.split(ft),f=h.length-1;if(f>0){r.textContent=Ut?Ut.emptyScript:"";for(let u=0;u<f;u++)r.append(h[u],oe()),_t.nextNode(),l.push({type:2,index:++s});r.append(h[f],oe())}}}else if(r.nodeType===8)if(r.data===Xi)l.push({type:2,index:s});else{let h=-1;for(;(h=r.data.indexOf(ft,h+1))!==-1;)l.push({type:7,index:s}),h+=ft.length-1}s++}}static createElement(t,i){let o=$t.createElement("template");return o.innerHTML=t,o}};function Ft(e,t,i=e,o){var r,s,n,a;if(t===lt)return t;let l=o!==void 0?(r=i._$Co)===null||r===void 0?void 0:r[o]:i._$Cl,c=re(t)?void 0:t._$litDirective$;return l?.constructor!==c&&((s=l?._$AO)===null||s===void 0||s.call(l,!1),c===void 0?l=void 0:(l=new c(e),l._$AT(e,i,o)),o!==void 0?((n=(a=i)._$Co)!==null&&n!==void 0?n:a._$Co=[])[o]=l:i._$Cl=l),l!==void 0&&(t=Ft(e,l._$AS(e,t.values),l,o)),t}var ei=class{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;let{el:{content:o},parts:r}=this._$AD,s=((i=t?.creationScope)!==null&&i!==void 0?i:$t).importNode(o,!0);_t.currentNode=s;let n=_t.nextNode(),a=0,l=0,c=r[0];for(;c!==void 0;){if(a===c.index){let d;c.type===2?d=new ne(n,n.nextSibling,this,t):c.type===1?d=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(d=new si(n,this,t)),this._$AV.push(d),c=r[++l]}a!==c?.index&&(n=_t.nextNode(),a++)}return _t.currentNode=$t,s}v(t){let i=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}},ne=class e{constructor(t,i,o,r){var s;this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=r,this._$Cp=(s=r?.isConnected)===null||s===void 0||s}get _$AU(){var t,i;return(i=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Ft(this,t,i),re(t)?t===b||t==null||t===""?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==lt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Xo(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!==b&&re(this._$AH)?this._$AA.nextSibling.data=t:this.$($t.createTextNode(t)),this._$AH=t}g(t){var i;let{values:o,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=se.createElement(Qi(r.h,r.h[0]),this.options)),r);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===s)this._$AH.v(o);else{let n=new ei(s,this),a=n.u(this.options);n.v(o),this.$(a),this._$AH=n}}_$AC(t){let i=Gi.get(t.strings);return i===void 0&&Gi.set(t.strings,i=new se(t)),i}T(t){Yi(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,o,r=0;for(let s of t)r===i.length?i.push(o=new e(this.k(oe()),this.k(oe()),this,this.options)):o=i[r],o._$AI(s),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);t&&t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){var i;this._$AM===void 0&&(this._$Cp=t,(i=this._$AP)===null||i===void 0||i.call(this,t))}},jt=class{constructor(t,i,o,r,s){this.type=1,this._$AH=b,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=b}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,o,r){let s=this.strings,n=!1;if(s===void 0)t=Ft(this,t,i,0),n=!re(t)||t!==this._$AH&&t!==lt,n&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=Ft(this,a[o+l],i,l),c===lt&&(c=this._$AH[l]),n||(n=!re(c)||c!==this._$AH[l]),c===b?t=b:t!==b&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}n&&!r&&this.j(t)}j(t){t===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ii=class extends jt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===b?void 0:t}},Jo=Ut?Ut.emptyScript:"",oi=class extends jt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==b?this.element.setAttribute(this.name,Jo):this.element.removeAttribute(this.name)}},ri=class extends jt{constructor(t,i,o,r,s){super(t,i,o,r,s),this.type=5}_$AI(t,i=this){var o;if((t=(o=Ft(this,t,i,0))!==null&&o!==void 0?o:b)===lt)return;let r=this._$AH,s=t===b&&r!==b||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==b&&(r===b||s);s&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,t):this._$AH.handleEvent(t)}},si=class{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Ft(this,t)}};var Ki=_e.litHtmlPolyfillSupport;Ki?.(se,ne),((Ze=_e.litHtmlVersions)!==null&&Ze!==void 0?Ze:_e.litHtmlVersions=[]).push("2.8.0");var to=(e,t,i)=>{var o,r;let s=(o=i?.renderBefore)!==null&&o!==void 0?o:t,n=s._$litPart$;if(n===void 0){let a=(r=i?.renderBefore)!==null&&r!==void 0?r:null;s._$litPart$=n=new ne(t.insertBefore(oe(),a),a,void 0,i??{})}return n._$AI(e),n};var ni,ai;var U=class extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;let o=super.createRenderRoot();return(t=(i=this.renderOptions).renderBefore)!==null&&t!==void 0||(i.renderBefore=o.firstChild),o}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=to(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return lt}};U.finalized=!0,U._$litElement$=!0,(ni=globalThis.litElementHydrateSupport)===null||ni===void 0||ni.call(globalThis,{LitElement:U});var eo=globalThis.litElementPolyfillSupport;eo?.({LitElement:U});((ai=globalThis.litElementVersions)!==null&&ai!==void 0?ai:globalThis.litElementVersions=[]).push("3.3.3");var Zo=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},Qo=(e,t,i)=>{t.constructor.createProperty(i,e)};function p(e){return(t,i)=>i!==void 0?Qo(e,t,i):Zo(e,t)}var V=e=>e??b;var tr=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",er="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",ir="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",or="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e",rr=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,li=(e,t,i,o)=>{for(var r=o>1?void 0:o?sr(t,i):t,s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&rr(t,i,r),r},Vt,le=(Vt=class extends U{static parseLevel(e){if(e){let t=Object.keys(Wt).find(i=>i.toLowerCase()===e.toLowerCase());return t&&Wt[t]}}static get styles(){return[kt`
4
+ ${it(tr)}
5
+ `]}render(){return S`${this.iconToUse&&S`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(e){return e.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(e)}get iconForLevel(){switch(Vt.parseLevel(this.level)){case"warn":return or;case"suggest":return ir;case"error":return er;default:return null}}},Vt.ID="sd-field-validation-message",Vt.levelConverter={fromAttribute(e){return Vt.parseLevel(e)},toAttribute(e){return e&&e.toLowerCase()}},Vt);li([p({type:String,attribute:!0})],le.prototype,"message",2);li([p({type:String,attribute:!0})],le.prototype,"icon",2);li([p({converter:le.levelConverter,reflect:!0})],le.prototype,"level",2);var ae=le,Wt=(e=>(e.Warn="warn",e.Suggest="suggest",e.Error="error",e))(Wt||{});customElements.get(ae.ID)||customElements.define(ae.ID,ae);var nr=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}:host([validationlevel=warn]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn]) .label,:host([validationlevel=warn]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest]) .label,:host([validationlevel=suggest]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error]) .label,:host([validationlevel=error]) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{position:relative}.validation-message{position:absolute;left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input,.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.input::-ms-clear{display:none}.input::placeholder{color:var(--sd-input-color, #767676)}.input:-ms-input-placeholder{color:var(--sd-input-color, #767676)}.input::-ms-input-placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}",ar=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,O=(e,t,i,o)=>{for(var r=o>1?void 0:o?lr(t,i):t,s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&ar(t,i,r),r},dr="sd-lit-input",io="delegatesFocus"in window.ShadowRoot.prototype,cr=0,nt,I=(nt=class extends U{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let e=cr++;this._validationMessageId=nt.ID+"_message_"+e,this._inputId=nt.ID+"_input_"+e,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(e){super.firstUpdated(e),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=t=>{this.autocompleted=t.inputType==="insertReplacementText"||!("data"in t),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),io||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",t=>{t.target===this&&this.inputElement.focus()})),this.addEventListener("keydown",t=>{var i,o;t.key=="Enter"&&((o=(i=this._internals)==null?void 0:i.form)==null||o.requestSubmit())}),this._initialized=!0}initAutocompleted(e){let t=i=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(i.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(i.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(e,"animationstart",t)):e.addEventListener("animationstart",t)}get activeShadyDOM(){let e=window.ShadyDOM;return e&&e.inUse?e:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=e)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(e){this.currentText=e||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(e,t){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(e,t)})}static get styles(){return[kt`
6
+ ${it(nr)}
7
+ `]}render(){let e;return this.rows===1?e=S`
8
+ <input
9
+ id=${this._inputId}
10
+ class="input"
11
+ .type=${this.type}
12
+ placeholder=${V(this.placeholder||void 0)}
13
+ name=${V(this.name||void 0)}
14
+ aria-disabled=${this.effectiveDisabled}
15
+ autocomplete=${this.autocomplete}
16
+ ?disabled=${this.inactive}
17
+ ?readonly=${this.readonly||this.effectiveDisabled}
18
+ ?required=${this.required}
19
+ maxlength=${this.maxlength>0?this.maxlength:nt.DEFAULT_MAX_LENGTH}
20
+ aria-describedby=${this._validationMessageId}
21
+ aria-invalid=${V(!!this.validationMessage||void 0)}
22
+ aria-label=${V(this.sdAriaLabel||void 0)}
23
+ />
24
+ `:e=S`
25
+ <textarea
26
+ id=${this._inputId}
27
+ class="input"
28
+ placeholder=${V(this.placeholder||void 0)}
29
+ name=${V(this.name||void 0)}
30
+ aria-disabled=${this.effectiveDisabled}
31
+ autocomplete=${this.autocomplete}
32
+ ?disabled=${this.inactive}
33
+ ?readonly=${this.readonly||this.effectiveDisabled}
34
+ ?required=${this.required}
35
+ maxlength=${this.maxlength>0?this.maxlength:nt.DEFAULT_MAX_LENGTH}
36
+ rows=${this.rows}
37
+ aria-describedby=${this._validationMessageId}
38
+ aria-invalid=${V(!!this.validationMessage||void 0)}
39
+ aria-label=${V(this.sdAriaLabel||void 0)}
40
+ ></textarea>
41
+ `,S`
42
+ ${this.label?S` <div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div> `:b}
43
+ <div class="input-wrapper">
44
+ <span class="prefix"><slot name="prefix"></slot></span>
45
+ <div class="input-container" style="position:${this.shouldFloat()?"static":"relative"};">
46
+ ${this.label&&S`
47
+ <label for="${this._inputId}" class="label ${this.shouldFloat()?"float":""}"
48
+ >${this.label}</label
49
+ >
50
+ `}
51
+ ${e}
52
+ </div>
53
+ <span class="suffix"><slot name="suffix"></slot></span>
54
+ </div>
55
+ <div class="underline" aria-hidden="true">
56
+ <div class="unfocused-line"></div>
57
+ <div class="focused-line"></div>
58
+ </div>
59
+ <div class="validation-message-wrapper" aria-hidden="true">
60
+ ${this.validationMessage&&S`
61
+ <sd-field-validation-message
62
+ id=${this._validationMessageId}
63
+ class="validation-message"
64
+ .message=${this.validationMessage}
65
+ .icon=${this.validationIconSrc}
66
+ .level=${this.validationLevel}
67
+ >
68
+ </sd-field-validation-message>
69
+ `}
70
+ </div>
71
+ `}updated(e){super.updated(e),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0)}update(e){var t,i;if(super.update(e),e.has("validationMessage")&&(this.validationMessage?(this.validationLevel||(this.validationLevel=Wt.Error),(t=this._internals)==null||t.setValidity({customError:!0},this.validationMessage)):(this.validationLevel=null,(i=this._internals)==null||i.setValidity({}))),this._initialized&&e.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value)}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted}setFormValue(e){var t;(t=this._internals)==null||t.setFormValue(e)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(e){this.effectiveDisabled=e||this.hasAttribute("disabled")}formAssociatedCallback(e){this._needsAutocompletedCheck=!0}formStateRestoreCallback(e,t){typeof e=="string"&&(this.value=e)}},nt.ID=dr,nt.DEFAULT_MAX_LENGTH=524288,nt.formAssociated=!0,nt.shadowRootOptions={...U.shadowRootOptions,delegatesFocus:io},nt);O([p({type:String,reflect:!0})],I.prototype,"label",2);O([p({type:String,attribute:!0})],I.prototype,"validationMessage",2);O([p({type:String,attribute:!0})],I.prototype,"validationIconSrc",2);O([p({type:Wt,attribute:!0,reflect:!0})],I.prototype,"validationLevel",2);O([p({type:String,hasChanged(e,t){return t!=null&&t!=e}})],I.prototype,"currentText",2);O([p({type:Boolean,attribute:!0})],I.prototype,"alwaysFloatLabel",2);O([p({type:Boolean,attribute:!0})],I.prototype,"autocompleted",2);O([p({type:Number,attribute:!0})],I.prototype,"rows",2);O([p({type:Boolean,reflect:!0,attribute:"effective-disabled"})],I.prototype,"effectiveDisabled",2);O([p({type:Boolean,reflect:!0,attribute:"extended-prefix"})],I.prototype,"extendedPrefix",2);O([p({type:String,reflect:!0})],I.prototype,"type",2);O([p({type:String,reflect:!0})],I.prototype,"placeholder",2);O([p({type:String,reflect:!0})],I.prototype,"sdAriaLabel",2);O([p({type:Number,reflect:!0})],I.prototype,"maxlength",2);O([p({type:Boolean,reflect:!0})],I.prototype,"readonly",2);O([p({type:Boolean,reflect:!0})],I.prototype,"required",2);O([p({type:String,reflect:!0})],I.prototype,"name",2);O([p({type:Boolean,reflect:!0})],I.prototype,"inactive",2);O([p({type:String,attribute:!0})],I.prototype,"autocomplete",2);var di=I;customElements.get(di.ID)||customElements.define(di.ID,di);var oo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ce=e=>(...t)=>({_$litDirective$:e,values:t}),$e=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,o){this._$Ct=t,this._$AM=i,this._$Ci=o}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};var Ct=class extends $e{constructor(t){if(super(t),this.et=b,t.type!==oo.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===b||t==null)return this.ft=void 0,this.et=t;if(t===lt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;let i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}};Ct.directiveName="unsafeHTML",Ct.resultType=1;var ro=Ce(Ct);var zt=class{static showImage(t,i,o,r){let s;if(r||!(t instanceof HTMLImageElement)?s=n=>t.style.backgroundImage=this.prepareSrc(n):s=n=>t.src=n,s(o),i){let n=()=>{s(i)},a=new Image;a.addEventListener("load",n),a.src=i,a.complete&&(a.removeEventListener("load",n),n())}}static prepareSrc(t){return t?t.startsWith("url")?t:`url("${t}")`:null}};var pr=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}',hr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,q=(e,t,i,o)=>{for(var r=o>1?void 0:o?ur(t,i):t,s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&hr(t,i,r),r},Tt,W=(Tt=class extends U{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[kt`
72
+ ${it(pr)}
73
+ `]}render(){return S`
74
+ <div class="container">
75
+ ${this.getLevelIndicators().map((e,t)=>S` <div class="level-indicator level-${t}"></div> `)}
76
+ <div class="side-content">
77
+ <slot name="left-content"></slot>
78
+ ${this.renderIcon()}
79
+ </div>
80
+ <div class="labels">
81
+ ${this.renderLabel("caption",this.caption,this.captionAttrTitle)}
82
+ ${this.renderLabel("description",this.description,this.descriptionAttrTitle)}
83
+ </div>
84
+ <div class="side-content">
85
+ <slot name="right-content"></slot>
86
+ </div>
87
+ </div>
88
+ `}renderIcon(){if(this.icon||this.iconPlaceholder){let e=this.iconBackgroundColor!=null?`background-color:${this.iconBackgroundColor}`:void 0;return S`
89
+ <div
90
+ class="icon-wrapper"
91
+ @pointerdown="${this.handleIconClick}"
92
+ style="${V(e)}"
93
+ role="img"
94
+ aria-label="${V(this.iconAttrAriaLabel)}"
95
+ title="${V(this.iconAttrTitle)}"
96
+ >
97
+ <div class="icon"></div>
98
+ </div>
99
+ `}return b}renderLabel(e,t,i){return t?S`
100
+ <div class="${e}" title="${V(i)}">
101
+ ${this.contentMode==="html"?ro(t):t}
102
+ </div>
103
+ `:b}updated(e){super.updated(e),(e.has("icon")||e.has("iconPlaceholder"))&&(this.icon||this.iconPlaceholder)&&zt.showImage(this.shadowRoot.querySelector(".icon"),this.icon,this.iconPlaceholder),e.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){let e=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let t=0,i=this.shadowRoot.querySelector(".caption");i&&(t+=i.scrollWidth-i.clientWidth);let o=this.shadowRoot.querySelector(".description");return o&&(t=Math.max(t,o.scrollWidth-o.clientWidth)),t>0&&t++,e&&this.setAttribute("enable-line-clamp",""),t}handleIconClick(e){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",e))&&e.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},Tt.ID="sd-list-item",Tt.ensureDefined=()=>{customElements.get(Tt.ID)||customElements.define(Tt.ID,Tt)},Tt);q([p({type:String})],W.prototype,"caption",2);q([p({type:String})],W.prototype,"description",2);q([p({type:Boolean})],W.prototype,"selected",2);q([p({type:String})],W.prototype,"icon",2);q([p({type:String})],W.prototype,"iconBackgroundColor",2);q([p({type:String})],W.prototype,"iconPlaceholder",2);q([p({type:Number})],W.prototype,"level",2);q([p()],W.prototype,"contentMode",2);q([p({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],W.prototype,"enableLineClamp",2);q([p({type:Boolean,reflect:!0,attribute:"aria-disabled"})],W.prototype,"disabled",2);q([p({type:String,attribute:"icon-attr-aria-label"})],W.prototype,"iconAttrAriaLabel",2);q([p({type:String,reflect:!0})],W.prototype,"role",2);q([p({type:String,attribute:"caption-attr-title"})],W.prototype,"captionAttrTitle",2);q([p({type:String,attribute:"description-attr-title"})],W.prototype,"descriptionAttrTitle",2);q([p({type:String,attribute:"icon-attr-title"})],W.prototype,"iconAttrTitle",2);var qt=W,Te=(e,t)=>{let i=document.createElement(qt.ID);if(e){if(i.caption=e.caption,i.description=e.description,i.icon=e.icon,i.iconBackgroundColor=e.iconBackgroundColor,i.iconPlaceholder=e.iconPlaceholder,i.level=e.level,i.disabled=e.disabled,e.contentMode&&(i.contentMode=e.contentMode),e.leftContentGenerator){let o=e.leftContentGenerator(e,i);o&&(o.slot="left-content",i.appendChild(o))}if(e.rightContentGenerator){let o=e.rightContentGenerator(e,i);o&&(o.slot="right-content",i.appendChild(o))}}return i};qt.ensureDefined();var _="top",D="bottom",L="right",T="left",Ie="auto",mt=[_,D,L,T],dt="start",It="end",so="clippingParents",Le="viewport",Gt="popper",no="reference",ci=mt.reduce(function(e,t){return e.concat([t+"-"+dt,t+"-"+It])},[]),Pe=[].concat(mt,[Ie]).reduce(function(e,t){return e.concat([t,t+"-"+dt,t+"-"+It])},[]),fr="beforeRead",mr="read",vr="afterRead",gr="beforeMain",br="main",yr="afterMain",xr="beforeWrite",wr="write",Er="afterWrite",ao=[fr,mr,vr,gr,br,yr,xr,wr,Er];function H(e){return e?(e.nodeName||"").toLowerCase():null}function A(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Y(e){var t=A(e).Element;return e instanceof t||e instanceof Element}function M(e){var t=A(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Kt(e){if(typeof ShadowRoot>"u")return!1;var t=A(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ar(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var o=t.styles[i]||{},r=t.attributes[i]||{},s=t.elements[i];!M(s)||!H(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(n){var a=r[n];a===!1?s.removeAttribute(n):s.setAttribute(n,a===!0?"":a)}))})}function kr(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],s=t.attributes[o]||{},n=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:i[o]),a=n.reduce(function(l,c){return l[c]="",l},{});!M(r)||!H(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(l){r.removeAttribute(l)}))})}}var lo={name:"applyStyles",enabled:!0,phase:"write",fn:Ar,effect:kr,requires:["computeStyles"]};function N(e){return e.split("-")[0]}var ot=Math.max,Lt=Math.min,ct=Math.round;function Xt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function de(){return!/^((?!chrome|android).)*safari/i.test(Xt())}function J(e,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var o=e.getBoundingClientRect(),r=1,s=1;t&&M(e)&&(r=e.offsetWidth>0&&ct(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ct(o.height)/e.offsetHeight||1);var n=Y(e)?A(e):window,a=n.visualViewport,l=!de()&&i,c=(o.left+(l&&a?a.offsetLeft:0))/r,d=(o.top+(l&&a?a.offsetTop:0))/s,h=o.width/r,f=o.height/s;return{width:h,height:f,top:d,right:c+h,bottom:d+f,left:c,x:c,y:d}}function Pt(e){var t=J(e),i=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:o}}function ce(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Kt(i)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function G(e){return A(e).getComputedStyle(e)}function pi(e){return["table","td","th"].indexOf(H(e))>=0}function F(e){return((Y(e)?e.ownerDocument:e.document)||window.document).documentElement}function pt(e){return H(e)==="html"?e:e.assignedSlot||e.parentNode||(Kt(e)?e.host:null)||F(e)}function co(e){return!M(e)||G(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test(Xt()),i=/Trident/i.test(Xt());if(i&&M(e)){var o=G(e);if(o.position==="fixed")return null}var r=pt(e);for(Kt(r)&&(r=r.host);M(r)&&["html","body"].indexOf(H(r))<0;){var s=G(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function rt(e){for(var t=A(e),i=co(e);i&&pi(i)&&G(i).position==="static";)i=co(i);return i&&(H(i)==="html"||H(i)==="body"&&G(i).position==="static")?t:i||Sr(e)||t}function Ot(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dt(e,t,i){return ot(e,Lt(t,i))}function po(e,t,i){var o=Dt(e,t,i);return o>i?i:o}function pe(){return{top:0,right:0,bottom:0,left:0}}function he(e){return Object.assign({},pe(),e)}function ue(e,t){return t.reduce(function(i,o){return i[o]=e,i},{})}var _r=function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,he(typeof t!="number"?t:ue(t,mt))};function $r(e){var t,i=e.state,o=e.name,r=e.options,s=i.elements.arrow,n=i.modifiersData.popperOffsets,a=N(i.placement),l=Ot(a),c=[T,L].indexOf(a)>=0,d=c?"height":"width";if(!(!s||!n)){var h=_r(r.padding,i),f=Pt(s),u=l==="y"?_:T,w=l==="y"?D:L,m=i.rects.reference[d]+i.rects.reference[l]-n[l]-i.rects.popper[d],g=n[l]-i.rects.reference[l],E=rt(s),$=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,C=m/2-g/2,v=h[u],y=$-f[d]-h[w],x=$/2-f[d]/2+C,k=Dt(v,x,y),B=l;i.modifiersData[o]=(t={},t[B]=k,t.centerOffset=k-x,t)}}function Cr(e){var t=e.state,i=e.options,o=i.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||ce(t.elements.popper,r)&&(t.elements.arrow=r))}var ho={name:"arrow",enabled:!0,phase:"main",fn:$r,effect:Cr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(e){return e.split("-")[1]}var Tr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ir(e,t){var i=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:ct(i*r)/r||0,y:ct(o*r)/r||0}}function uo(e){var t,i=e.popper,o=e.popperRect,r=e.placement,s=e.variation,n=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,f=n.x,u=f===void 0?0:f,w=n.y,m=w===void 0?0:w,g=typeof d=="function"?d({x:u,y:m}):{x:u,y:m};u=g.x,m=g.y;var E=n.hasOwnProperty("x"),$=n.hasOwnProperty("y"),C=T,v=_,y=window;if(c){var x=rt(i),k="clientHeight",B="clientWidth";if(x===A(i)&&(x=F(i),G(x).position!=="static"&&a==="absolute"&&(k="scrollHeight",B="scrollWidth")),x=x,r===_||(r===T||r===L)&&s===It){v=D;var R=h&&x===y&&y.visualViewport?y.visualViewport.height:x[k];m-=R-o.height,m*=l?1:-1}if(r===T||(r===_||r===D)&&s===It){C=L;var P=h&&x===y&&y.visualViewport?y.visualViewport.width:x[B];u-=P-o.width,u*=l?1:-1}}var j=Object.assign({position:a},c&&Tr),tt=d===!0?Ir({x:u,y:m},A(i)):{x:u,y:m};if(u=tt.x,m=tt.y,l){var z;return Object.assign({},j,(z={},z[v]=$?"0":"",z[C]=E?"0":"",z.transform=(y.devicePixelRatio||1)<=1?"translate("+u+"px, "+m+"px)":"translate3d("+u+"px, "+m+"px, 0)",z))}return Object.assign({},j,(t={},t[v]=$?m+"px":"",t[C]=E?u+"px":"",t.transform="",t))}function Lr(e){var t=e.state,i=e.options,o=i.gpuAcceleration,r=o===void 0?!0:o,s=i.adaptive,n=s===void 0?!0:s,a=i.roundOffsets,l=a===void 0?!0:a,c={placement:N(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,uo(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,uo(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var fo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lr,data:{}};var Oe={passive:!0};function Pr(e){var t=e.state,i=e.instance,o=e.options,r=o.scroll,s=r===void 0?!0:r,n=o.resize,a=n===void 0?!0:n,l=A(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",i.update,Oe)}),a&&l.addEventListener("resize",i.update,Oe),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",i.update,Oe)}),a&&l.removeEventListener("resize",i.update,Oe)}}var mo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Pr,data:{}};var Or={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(e){return e.replace(/left|right|bottom|top/g,function(t){return Or[t]})}var Dr={start:"end",end:"start"};function De(e){return e.replace(/start|end/g,function(t){return Dr[t]})}function Mt(e){var t=A(e),i=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:i,scrollTop:o}}function Rt(e){return J(F(e)).left+Mt(e).scrollLeft}function hi(e,t){var i=A(e),o=F(e),r=i.visualViewport,s=o.clientWidth,n=o.clientHeight,a=0,l=0;if(r){s=r.width,n=r.height;var c=de();(c||!c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:n,x:a+Rt(e),y:l}}function ui(e){var t,i=F(e),o=Mt(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=ot(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),n=ot(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+Rt(e),l=-o.scrollTop;return G(r||i).direction==="rtl"&&(a+=ot(i.clientWidth,r?r.clientWidth:0)-s),{width:s,height:n,x:a,y:l}}function Ht(e){var t=G(e),i=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+o)}function Me(e){return["html","body","#document"].indexOf(H(e))>=0?e.ownerDocument.body:M(e)&&Ht(e)?e:Me(pt(e))}function vt(e,t){var i;t===void 0&&(t=[]);var o=Me(e),r=o===((i=e.ownerDocument)==null?void 0:i.body),s=A(o),n=r?[s].concat(s.visualViewport||[],Ht(o)?o:[]):o,a=t.concat(n);return r?a:a.concat(vt(pt(n)))}function Jt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mr(e,t){var i=J(e,!1,t==="fixed");return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}function vo(e,t,i){return t===Le?Jt(hi(e,i)):Y(t)?Mr(t,i):Jt(ui(F(e)))}function Rr(e){var t=vt(pt(e)),i=["absolute","fixed"].indexOf(G(e).position)>=0,o=i&&M(e)?rt(e):e;return Y(o)?t.filter(function(r){return Y(r)&&ce(r,o)&&H(r)!=="body"}):[]}function fi(e,t,i,o){var r=t==="clippingParents"?Rr(e):[].concat(t),s=[].concat(r,[i]),n=s[0],a=s.reduce(function(l,c){var d=vo(e,c,o);return l.top=ot(d.top,l.top),l.right=Lt(d.right,l.right),l.bottom=Lt(d.bottom,l.bottom),l.left=ot(d.left,l.left),l},vo(e,n,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function fe(e){var t=e.reference,i=e.element,o=e.placement,r=o?N(o):null,s=o?Z(o):null,n=t.x+t.width/2-i.width/2,a=t.y+t.height/2-i.height/2,l;switch(r){case _:l={x:n,y:t.y-i.height};break;case D:l={x:n,y:t.y+t.height};break;case L:l={x:t.x+t.width,y:a};break;case T:l={x:t.x-i.width,y:a};break;default:l={x:t.x,y:t.y}}var c=r?Ot(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case dt:l[c]=l[c]-(t[d]/2-i[d]/2);break;case It:l[c]=l[c]+(t[d]/2-i[d]/2);break;default:}}return l}function st(e,t){t===void 0&&(t={});var i=t,o=i.placement,r=o===void 0?e.placement:o,s=i.strategy,n=s===void 0?e.strategy:s,a=i.boundary,l=a===void 0?so:a,c=i.rootBoundary,d=c===void 0?Le:c,h=i.elementContext,f=h===void 0?Gt:h,u=i.altBoundary,w=u===void 0?!1:u,m=i.padding,g=m===void 0?0:m,E=he(typeof g!="number"?g:ue(g,mt)),$=f===Gt?no:Gt,C=e.rects.popper,v=e.elements[w?$:f],y=fi(Y(v)?v:v.contextElement||F(e.elements.popper),l,d,n),x=J(e.elements.reference),k=fe({reference:x,element:C,strategy:"absolute",placement:r}),B=Jt(Object.assign({},C,k)),R=f===Gt?B:x,P={top:y.top-R.top+E.top,bottom:R.bottom-y.bottom+E.bottom,left:y.left-R.left+E.left,right:R.right-y.right+E.right},j=e.modifiersData.offset;if(f===Gt&&j){var tt=j[r];Object.keys(P).forEach(function(z){var yt=[L,D].indexOf(z)>=0?1:-1,xt=[_,D].indexOf(z)>=0?"y":"x";P[z]+=tt[xt]*yt})}return P}function mi(e,t){t===void 0&&(t={});var i=t,o=i.placement,r=i.boundary,s=i.rootBoundary,n=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=l===void 0?Pe:l,d=Z(o),h=d?a?ci:ci.filter(function(w){return Z(w)===d}):mt,f=h.filter(function(w){return c.indexOf(w)>=0});f.length===0&&(f=h);var u=f.reduce(function(w,m){return w[m]=st(e,{placement:m,boundary:r,rootBoundary:s,padding:n})[N(m)],w},{});return Object.keys(u).sort(function(w,m){return u[w]-u[m]})}function Hr(e){if(N(e)===Ie)return[];var t=Yt(e);return[De(e),t,De(t)]}function Nr(e){var t=e.state,i=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=i.mainAxis,s=r===void 0?!0:r,n=i.altAxis,a=n===void 0?!0:n,l=i.fallbackPlacements,c=i.padding,d=i.boundary,h=i.rootBoundary,f=i.altBoundary,u=i.flipVariations,w=u===void 0?!0:u,m=i.allowedAutoPlacements,g=t.options.placement,E=N(g),$=E===g,C=l||($||!w?[Yt(g)]:Hr(g)),v=[g].concat(C).reduce(function(Bt,ut){return Bt.concat(N(ut)===Ie?mi(t,{placement:ut,boundary:d,rootBoundary:h,padding:c,flipVariations:w,allowedAutoPlacements:m}):ut)},[]),y=t.rects.reference,x=t.rects.popper,k=new Map,B=!0,R=v[0],P=0;P<v.length;P++){var j=v[P],tt=N(j),z=Z(j)===dt,yt=[_,D].indexOf(tt)>=0,xt=yt?"width":"height",K=st(t,{placement:j,boundary:d,rootBoundary:h,altBoundary:f,padding:c}),et=yt?z?L:T:z?D:_;y[xt]>x[xt]&&(et=Yt(et));var ge=Yt(et),wt=[];if(s&&wt.push(K[tt]<=0),a&&wt.push(K[et]<=0,K[ge]<=0),wt.every(function(Bt){return Bt})){R=j,B=!1;break}k.set(j,wt)}if(B)for(var be=w?3:1,Fe=function(ut){var te=v.find(function(xe){var Et=k.get(xe);if(Et)return Et.slice(0,ut).every(function(je){return je})});if(te)return R=te,"break"},Qt=be;Qt>0;Qt--){var ye=Fe(Qt);if(ye==="break")break}t.placement!==R&&(t.modifiersData[o]._skip=!0,t.placement=R,t.reset=!0)}}var go={name:"flip",enabled:!0,phase:"main",fn:Nr,requiresIfExists:["offset"],data:{_skip:!1}};function bo(e,t,i){return i===void 0&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function yo(e){return[_,L,D,T].some(function(t){return e[t]>=0})}function Br(e){var t=e.state,i=e.name,o=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,n=st(t,{elementContext:"reference"}),a=st(t,{altBoundary:!0}),l=bo(n,o),c=bo(a,r,s),d=yo(l),h=yo(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}var xo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Br};function Ur(e,t,i){var o=N(e),r=[T,_].indexOf(o)>=0?-1:1,s=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,n=s[0],a=s[1];return n=n||0,a=(a||0)*r,[T,L].indexOf(o)>=0?{x:a,y:n}:{x:n,y:a}}function Fr(e){var t=e.state,i=e.options,o=e.name,r=i.offset,s=r===void 0?[0,0]:r,n=Pe.reduce(function(d,h){return d[h]=Ur(h,t.rects,s),d},{}),a=n[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=n}var wo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Fr};function jr(e){var t=e.state,i=e.name;t.modifiersData[i]=fe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Eo={name:"popperOffsets",enabled:!0,phase:"read",fn:jr,data:{}};function vi(e){return e==="x"?"y":"x"}function Vr(e){var t=e.state,i=e.options,o=e.name,r=i.mainAxis,s=r===void 0?!0:r,n=i.altAxis,a=n===void 0?!1:n,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,h=i.padding,f=i.tether,u=f===void 0?!0:f,w=i.tetherOffset,m=w===void 0?0:w,g=st(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),E=N(t.placement),$=Z(t.placement),C=!$,v=Ot(E),y=vi(v),x=t.modifiersData.popperOffsets,k=t.rects.reference,B=t.rects.popper,R=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,tt={x:0,y:0};if(x){if(s){var z,yt=v==="y"?_:T,xt=v==="y"?D:L,K=v==="y"?"height":"width",et=x[v],ge=et+g[yt],wt=et-g[xt],be=u?-B[K]/2:0,Fe=$===dt?k[K]:B[K],Qt=$===dt?-B[K]:-k[K],ye=t.elements.arrow,Bt=u&&ye?Pt(ye):{width:0,height:0},ut=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pe(),te=ut[yt],xe=ut[xt],Et=Dt(0,k[K],Bt[K]),je=C?k[K]/2-be-Et-te-P.mainAxis:Fe-Et-te-P.mainAxis,Mo=C?-k[K]/2+be+Et+xe+P.mainAxis:Qt+Et+xe+P.mainAxis,Ve=t.elements.arrow&&rt(t.elements.arrow),Ro=Ve?v==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,Ti=(z=j?.[v])!=null?z:0,Ho=et+je-Ti-Ro,No=et+Mo-Ti,Ii=Dt(u?Lt(ge,Ho):ge,et,u?ot(wt,No):wt);x[v]=Ii,tt[v]=Ii-et}if(a){var Li,Bo=v==="x"?_:T,Uo=v==="x"?D:L,At=x[y],we=y==="y"?"height":"width",Pi=At+g[Bo],Oi=At-g[Uo],We=[_,T].indexOf(E)!==-1,Di=(Li=j?.[y])!=null?Li:0,Mi=We?Pi:At-k[we]-B[we]-Di+P.altAxis,Ri=We?At+k[we]+B[we]-Di-P.altAxis:Oi,Hi=u&&We?po(Mi,At,Ri):Dt(u?Mi:Pi,At,u?Ri:Oi);x[y]=Hi,tt[y]=Hi-At}t.modifiersData[o]=tt}}var Ao={name:"preventOverflow",enabled:!0,phase:"main",fn:Vr,requiresIfExists:["offset"]};function gi(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bi(e){return e===A(e)||!M(e)?Mt(e):gi(e)}function Wr(e){var t=e.getBoundingClientRect(),i=ct(t.width)/e.offsetWidth||1,o=ct(t.height)/e.offsetHeight||1;return i!==1||o!==1}function yi(e,t,i){i===void 0&&(i=!1);var o=M(t),r=M(t)&&Wr(t),s=F(t),n=J(e,r,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!i)&&((H(t)!=="body"||Ht(s))&&(a=bi(t)),M(t)?(l=J(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Rt(s))),{x:n.left+a.scrollLeft-l.x,y:n.top+a.scrollTop-l.y,width:n.width,height:n.height}}function zr(e){var t=new Map,i=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function r(s){i.add(s.name);var n=[].concat(s.requires||[],s.requiresIfExists||[]);n.forEach(function(a){if(!i.has(a)){var l=t.get(a);l&&r(l)}}),o.push(s)}return e.forEach(function(s){i.has(s.name)||r(s)}),o}function xi(e){var t=zr(e);return ao.reduce(function(i,o){return i.concat(t.filter(function(r){return r.phase===o}))},[])}function wi(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function Ei(e){var t=e.reduce(function(i,o){var r=i[o.name];return i[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,i},{});return Object.keys(t).map(function(i){return t[i]})}var ko={placement:"bottom",modifiers:[],strategy:"absolute"};function So(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function _o(e){e===void 0&&(e={});var t=e,i=t.defaultModifiers,o=i===void 0?[]:i,r=t.defaultOptions,s=r===void 0?ko:r;return function(a,l,c){c===void 0&&(c=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},ko,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],f=!1,u={state:d,setOptions:function(E){var $=typeof E=="function"?E(d.options):E;m(),d.options=Object.assign({},s,d.options,$),d.scrollParents={reference:Y(a)?vt(a):a.contextElement?vt(a.contextElement):[],popper:vt(l)};var C=xi(Ei([].concat(o,d.options.modifiers)));return d.orderedModifiers=C.filter(function(v){return v.enabled}),w(),u.update()},forceUpdate:function(){if(!f){var E=d.elements,$=E.reference,C=E.popper;if(So($,C)){d.rects={reference:yi($,rt(C),d.options.strategy==="fixed"),popper:Pt(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(P){return d.modifiersData[P.name]=Object.assign({},P.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var y=d.orderedModifiers[v],x=y.fn,k=y.options,B=k===void 0?{}:k,R=y.name;typeof x=="function"&&(d=x({state:d,options:B,name:R,instance:u})||d)}}}},update:wi(function(){return new Promise(function(g){u.forceUpdate(),g(d)})}),destroy:function(){m(),f=!0}};if(!So(a,l))return u;u.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function w(){d.orderedModifiers.forEach(function(g){var E=g.name,$=g.options,C=$===void 0?{}:$,v=g.effect;if(typeof v=="function"){var y=v({state:d,name:E,instance:u,options:C}),x=function(){};h.push(y||x)}})}function m(){h.forEach(function(g){return g()}),h=[]}return u}}var qr=[mo,Eo,fo,lo,wo,go,Ao,ho,xo],Ai=_o({defaultModifiers:qr});var Gr=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="12" viewBox="0 0 24 12">\r
104
+ <path d="M0 0l11.96 12L24 0z" fill="#999" class="arrow-border"/>\r
105
+ <path d="M12 11L1 0h22z" fill="#f2f2f2" class="arrow-background"/>\r
106
+ </svg>\r
107
+ `,Kr=navigator.userAgent.indexOf("Trident")!==-1,$o=1,Co="sd-popover-open",To=class extends HTMLElement{constructor(){super(...arguments),this._open=!1,this._firstUpdated=!1,this.toggle=()=>{this.open=!this.open},this.show=()=>{this.open=!0},this.hide=()=>{this.open=!1},this.hideIfExternalTarget=t=>{let i=t.target;(!(i instanceof HTMLElement)||!this._container.contains(i)&&!this.targetElement.contains(i))&&this.hide()}}get triggerType(){return this.getAttribute("trigger-type")}set triggerType(t){t?this.setAttribute("trigger-type",t):this.removeAttribute("trigger-type")}get placement(){return this.getAttribute("placement")}set placement(t){t?this.setAttribute("placement",t):this.removeAttribute("placement")}get targetElement(){return this._targetElement}set targetElement(t){this.removeTargetEventListener(this.targetElement),this._targetElement&&this._targetElement.getAttribute("aria-expanded")=="true"&&this._targetElement.setAttribute("aria-expanded","false"),this._targetElement=t,t.setAttribute("aria-expanded","false"),this.addTargetEventListener(this.targetElement),this.updatePopper()}get targetSelector(){return this.getAttribute("target-selector")}set targetSelector(t){t?this.setAttribute("target-selector",t):this.removeAttribute("target-selector")}get modal(){return this.hasAttribute("modal")}set modal(t){t?this.setAttribute("modal",""):this.removeAttribute("modal")}get popoverFor(){return this.getAttribute("popover-for")}set popoverFor(t){t?this.setAttribute("popover-for",t):this.removeAttribute("popover-for")}get flipPriority(){return this._flipPriority}set flipPriority(t){t&&t.length>0?this._flipPriority=t:this._flipPriority=null,this.reConfigurePopper()}get offset(){return this.getAttribute("offset")?parseInt(this.getAttribute("offset")):0}set offset(t){t?this.setAttribute("offset",t.toString()):this.removeAttribute("offset"),this.reConfigurePopper()}reConfigurePopper(){this._popper&&this.configurePopper()}get noArrow(){return this.hasAttribute("no-arrow")}set noArrow(t){t?this.setAttribute("no-arrow",""):this.removeAttribute("no-arrow")}static get observedAttributes(){return["placement","target-selector","trigger-type"]}attributeChangedCallback(t,i){switch(t){case"placement":{this.updatePopper();break}case"trigger-type":{this.removeTargetEventListener(this.targetElement),this.addTargetEventListener(this.targetElement);break}case"target-selector":{this.handleTargetSelectorChange(i);break}}}connectedCallback(){this._firstUpdated||(this.firstUpdated(),this._firstUpdated=!0),this.targetElement?this.addTargetEventListener(this.targetElement):this.targetSelector&&requestAnimationFrame(()=>{this.isConnected&&this.handleTargetSelectorChange(null)}),this._arrow=document.createElement("div"),this._arrow.classList.add("popover-arrow"),this._arrow.setAttribute("data-popper-arrow",""),this._arrow.style.display="flex",this._arrow.innerHTML=Gr}disconnectedCallback(){this.targetElement&&(this.removeTargetEventListener(this.targetElement),this.removeTargetClassForOpen(this.targetElement)),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}firstUpdated(){this.style.display="none",this.triggerType=this.triggerType||"click",this.placement=this.placement||"auto"}get open(){return this._open}set open(t){t!==this._open&&(this._open=t,this.handleOpenChange())}handleOpenChange(){this.open?(this._popper||this.configurePopper(),this._container.innerHTML="",this.popoverFor&&this._container.setAttribute("popover-for",this.popoverFor),this.content&&(this._container.prepend(this.content),Object.assign(this.content.style,{position:"relative",display:"block",zIndex:1}),window.requestAnimationFrame(()=>{let t=getComputedStyle(this.content).backgroundColor;t=="rgba(0, 0, 0, 0)"&&(this.content.style.background=t="#f2f2f2"),this._arrow.querySelector(".arrow-background").style.fill=t})),this.ensureArrowIsAdded(),this.ownerDocument.body.appendChild(this._container),this.updatePopper(),this.setAttribute("open",""),this.modal&&(window.addEventListener("click",this.hideIfExternalTarget,{capture:!0}),window.addEventListener("focus",this.hideIfExternalTarget,{capture:!0})),this.targetElement&&(this.addTargetClassForOpen(this.targetElement),this.targetElement.setAttribute("aria-expanded","true")),this.dispatchEvent(new CustomEvent("open"))):(this.ownerDocument.body.removeChild(this._container),this.removeAttribute("open"),window.removeEventListener("click",this.hideIfExternalTarget,{capture:!0}),window.removeEventListener("focus",this.hideIfExternalTarget,{capture:!0}),this.targetElement&&(this.removeTargetClassForOpen(this.targetElement),this.targetElement.setAttribute("aria-expanded","false")),this.dispatchEvent(new CustomEvent("close")))}handleTargetSelectorChange(t){let i=document.querySelector(t);i&&(this.removeTargetEventListener(i),this.removeTargetClassForOpen(i)),this.targetSelector&&(this.targetElement=document.querySelector(this.targetSelector),this.addTargetEventListener(this.targetElement))}addTargetEventListener(t){if(t)switch(this.triggerType){case"hover":{t.addEventListener("mouseenter",this.show),t.addEventListener("mouseleave",this.hide);break}case"click":{t.addEventListener("click",this.toggle);break}}}removeTargetEventListener(t){if(t)switch(this.triggerType){case"hover":{t.removeEventListener("mouseenter",this.show),t.removeEventListener("mouseleave",this.hide);break}case"click":{t.removeEventListener("click",this.toggle);break}}}configurePopper(){this.createContentContainer(),this.ensureArrowIsAdded();let t=this,i={placement:t.placement,strategy:"absolute",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!Kr}},{name:"flip",options:{fallbackPlacements:t._flipPriority}},{name:"offset",options:{offset:()=>[0,t.noArrow?0+t.offset:this._arrow.clientHeight+t.offset]}},{name:"arrow",options:{padding:6}},{name:"resetArrowStyles",enabled:!0,phase:"beforeWrite",fn({state:o}){Object.assign(t._arrow.style,{top:o.styles.arrow.top||"",left:o.styles.arrow.left||"",bottom:o.styles.arrow.bottom||"",right:o.styles.arrow.right||""})}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn({state:o}){t.updateArrow(o.placement)}}]};this._popper=Ai(this.targetElement,this._container,i)}createContentContainer(){this._container=document.createElement("div"),this._container.classList.add("popover-container"),this._container.tabIndex=0,this._resizeObserver&&this._resizeObserver.disconnect(),this._resizeObserver=new ResizeObserver(()=>{this._popper&&this._popper.update()}),this._resizeObserver.observe(this._container),Object.assign(this._container.style,{boxShadow:`0 4px 5px 0 rgba(0, 0, 0, 0.14),
108
+ 0 1px 10px 0 rgba(0, 0, 0, 0.12),
109
+ 0 2px 4px -1px rgba(0, 0, 0, 0.4)`,border:"1px solid #999",boxSizing:"border-box",zIndex:2e4})}ensureArrowIsAdded(){!this.noArrow&&!this._container.contains(this._arrow)&&this._container.appendChild(this._arrow)}updatePopper(){this._popper&&(this._popper.state.elements.reference=this.targetElement,this._popper.state.options.placement=this.placement,this.open&&this._popper.update())}updateArrow(t){if(this._arrow){let i=this.getArrowVariant(t);if(this._arrow.setAttribute("variant",i),this._content){let o=this._arrow.querySelector("svg"),r=this._arrow.clientWidth,s=this._arrow.clientHeight,n=`-${s-$o}px`,a=(r-s)/2,l=`-${s+a-$o}px`;switch(i){case"bottom":{this._arrow.style.top=n,o.style.transform="rotate(180deg)";break}case"top":{this._arrow.style.bottom=n,o.style.transform="rotate(0deg)";break}case"left":{this._arrow.style.right=l,o.style.transform="rotate(270deg)";break}case"right":{this._arrow.style.left=l,o.style.transform="rotate(90deg)";break}}}}}getArrowVariant(t){if(t.indexOf("bottom")!==-1)return"bottom";if(t.indexOf("top")!==-1)return"top";if(t.indexOf("left")!==-1)return"left";if(t.indexOf("right")!==-1)return"right"}get content(){return this._content||(this._content=this.firstElementChild,this._content.setAttribute("data-popper-content","")),this._content}addTargetClassForOpen(t){t&&t.classList.add(Co)}removeTargetClassForOpen(t){t&&t.classList.remove(Co)}};To.ID="sd-popover";var me=To;customElements.get(me.ID)||customElements.define(me.ID,me);var Io=class Re extends HTMLElement{memoizedTemplate(){let t=this.is();if(Re.TEMPLATE_CACHE[t])return Re.TEMPLATE_CACHE[t];let i=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(i,this.is()),Re.TEMPLATE_CACHE[t]=i,i}connectedCallback(){let t=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(t.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(t){this.shadowRoot?t():this.addEventListener("ready",()=>t())}};Io.TEMPLATE_CACHE={};var Lo=Io;var Xr=`<style>
110
+ :host {
111
+ background-color: var(--sd-list-base-background-color, white);
112
+ }
113
+
114
+ .container {
115
+ width: 100%;
116
+ height: 100%;
117
+ }
118
+
119
+ :host(:focus) {
120
+ outline: none;
121
+ }
122
+
123
+ :host(:focus-visible) ::slotted([focused]) {
124
+ box-shadow: 0 0 0 1px #1467ba inset;
125
+ }
126
+
127
+ .container ::slotted(*) {
128
+ display: block;
129
+ box-sizing: border-box;
130
+ }
131
+
132
+ .container ::slotted(:not(:last-of-type)) {
133
+ border-bottom: 1px solid #d9d9d9;
134
+ }
135
+ </style>
136
+
137
+ <div class="container">
138
+ <slot name="items"></slot>
139
+ <slot id="default-slot"></slot>
140
+ </div>
141
+ `,Yr=0,Zt=class ki extends Lo{constructor(){super(),this._items=[],this._selectedIndexes=[],this._itemGenerator=Te,this.onDefaultSlotChange=()=>{let t=0;this.defaultSlot.assignedElements().forEach(i=>{this.isSeparator(i)||this.initListItem(i,t++)}),this.updateFocusedElement()},this.handleKeyDown=t=>{let i=!0;switch(t.key){case"ArrowDown":case"Down":this.focusIndex=Math.min(this.getListItems.length-1,this.focusIndex+1);break;case"ArrowUp":case"Up":this.focusIndex=Math.max(0,this.focusIndex-1);break;case"Enter":case"Space":case" ":this.handleSelection(this.focusIndex,t.metaKey||t.ctrlKey);break;case"End":case"PageDown":this.focusIndex=this.items.length-1;break;case"Home":case"PageUp":this.focusIndex=0;break;default:i=!1;break}i&&(t.preventDefault(),t.stopPropagation())},this._fallbackId=ki.ID+"_"+Yr++,this.addEventListener("pointerup",t=>{this.focusIndex=this.getListItems.indexOf(t.target),this.updateFocusedElement()}),this.addEventListener("focus",()=>{this.matches(":focus-visible")&&(this.focusIndex==-1?(this.selectedIndexes&&(this.focusIndex=this.selectedIndexes[0]),this.focusIndex==-1&&this.childElementCount>0&&(this.focusIndex=0)):this.updateFocusedElement())}),this.addEventListener("blur",()=>this.removeFocusedItemAttributes())}get items(){return this._items}set items(t){this._items=t,this.render()}get itemGenerator(){return this._itemGenerator}set itemGenerator(t){this._itemGenerator=t,this.render()}get selectionType(){return this.getAttribute("selection-type")}set selectionType(t){t?this.setAttribute("selection-type",t):this.removeAttribute("selection-type")}get focusIndex(){return this.hasAttribute("focus-index")?Number(this.getAttribute("focus-index")):-1}set focusIndex(t){0<=t&&t<this.getListItems.length?this.setAttribute("focus-index",t.toString()):this.removeAttribute("focus-index")}get focusTarget(){return this.hasAttribute("focus-target")}set focusTarget(t){this.toggleAttribute("focus-target",t)}getListItem(t){return this.shadowRoot?this.getListItems[t]:null}get getListItems(){return Array.prototype.slice.call(this.children).filter(t=>!this.isSeparator(t))}get selectedIndexes(){return this._selectedIndexes}set selectedIndexes(t){let i=this._selectedIndexes||[];this._selectedIndexes=t||[],i.filter(o=>!this._selectedIndexes.includes(o)).forEach(o=>{this.setSelectedAttr(this.getListItem(o),!1)}),this._selectedIndexes.filter(o=>!i.includes(o)).forEach(o=>{this.setSelectedAttr(this.getListItem(o),!0)})}static get observedAttributes(){return["focus-index","focus-target"]}is(){return ki.ID}template(){let t=document.createElement("template");return t.innerHTML=Xr,t}removeFocusedItemAttributes(){if(this.focusIndex!=-1){let t=this.getListItem(this.focusIndex);t&&(t.removeAttribute("focused"),this.removeAttribute("aria-activedescendant"))}}connectedCallback(){super.connectedCallback(),this.defaultSlot.addEventListener("slotchange",this.onDefaultSlotChange),this.hasAttribute("role")||this.setAttribute("role","listbox"),this.id||(this.id=this._fallbackId),this.render(),this.addEventListener("keydown",this.handleKeyDown),this.selectionType||(this.selectionType="trigger-only")}get defaultSlot(){return this.shadowRoot.querySelector("#default-slot")}isSeparator(t){return t.tagName=="HR"||t.getAttribute("role")=="separator"}attributeChangedCallback(t,i,o){if(t==="focus-index"){let r=this.getListItem(i);r&&r.removeAttribute("focused"),this.updateFocusedElement()}else t==="focus-target"&&(this.focusTarget?this.updateFocusedElement():document.activeElement!=this&&this.removeFocusedItemAttributes())}increaseWidthIfNeeded(){window.requestAnimationFrame(()=>{let t=Number.MAX_SAFE_INTEGER,i=getComputedStyle(this).maxWidth,o=this.offsetWidth;i.endsWith("px")&&(t=Number.parseInt(i)-o);let r=this.style.width;if(t==0||r.endsWith("px")&&o<Number.parseInt(r))this.enableLineClampOnItemsIfNeeded();else{let s=[...this.querySelectorAll("[slot='items']")].map(a=>{if(a instanceof qt){a.enableLineClamp=!1;let l=a.missingWidthForTexts;return l>t&&(a.enableLineClamp=!0),l}}),n=Math.max(...s);if(n>0){let a=o+n;this.style.width=`${a}px`,this.offsetWidth<a&&this.enableLineClampOnItemsIfNeeded()}}})}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[slot='items']").forEach(t=>{t instanceof qt&&(t.enableLineClamp=t.enableLineClamp||t.missingWidthForTexts>0)})}render(){if(!this.isConnected||!this.items)return;this.querySelectorAll("[slot='items']").forEach(o=>{this.removeChild(o)});let t=document.createDocumentFragment(),i=0;this.items.forEach((o,r)=>{let s=this.itemGenerator(o,r);this.isSeparator(s)||this.initListItem(s,i++),s.slot="items",t.appendChild(s)}),this.appendChild(t),this.updateFocusedElement()}initListItem(t,i){this.setSelectedAttr(t,this.selectedIndexes.includes(i)),t.addEventListener("click",o=>{this.handleItemClick(o,i)}),t.addEventListener("mousedown",o=>{o.button==1&&o.preventDefault()}),t.addEventListener("auxclick",o=>{this.handleItemClick(o,i)}),(!t.id||t.id.startsWith(this.id+"_item_"))&&(t.id=this.id+"_item_"+i)}ensureItemVisible(t){let i=t.getBoundingClientRect(),o=this.getBoundingClientRect();i.bottom>o.bottom?this.scrollTop+=i.bottom-o.bottom:i.top<o.top&&(this.scrollTop-=o.top-i.top)}updateFocusedElement(){let t=this.getListItem(this.focusIndex);t&&(this.focusTarget||document.activeElement==this)?(t.setAttribute("focused",""),this.setAttribute("aria-activedescendant",t.id),this.ensureItemVisible(t)):this.removeAttribute("aria-activedescendant")}handleItemClick(t,i){if(t.button!==null){let o=t.type=="auxclick"&&t.button==1||t.metaKey||t.ctrlKey;(t.button==0||t.button==1)&&this.handleSelection(i,o)}}handleSelection(t,i){let o=this.items[t];if(!o||o.disabled)return;let r=this.getListItem(t),s=this.isSelected(r);this.selectionType!=="trigger-only"&&(this.selectionType==="single"?this.selectedIndexes=s?[]:[t]:this.toggleSelection(r)?this._selectedIndexes.push(t):this.removeFromSelectedIndexes(t)),this.focusIndex=t,this.dispatchEvent(new CustomEvent("selection",{detail:{index:t,selected:this.selectionType=="trigger-only"||!s,hasModifier:i},bubbles:!0,composed:!0}))}removeFromSelectedIndexes(t){let i=this._selectedIndexes.indexOf(t);i!==-1&&this._selectedIndexes.splice(i,1)}toggleSelection(t){let i=!t.hasAttribute("selected");return this.setSelectedAttr(t,i),i}setSelectedAttr(t,i){t&&(i?t.setAttribute("selected",""):t.removeAttribute("selected"),t.setAttribute("aria-selected",String(i)))}isSelected(t){return t.hasAttribute("selected")}};Zt.ID="sd-list",Zt.ensureDefined=()=>{qt.ensureDefined(),customElements.get(Zt.ID)||customElements.define(Zt.ID,Zt)};var He=Zt;He.ensureDefined();var Ne=class e{constructor(t,i){this.eventTarget=t,this.keydownHandler=i,this.catchedKeys=["Down","ArrowDown","Up","ArrowUp","Enter"],this.markAsFocusTargetHandler=()=>this.eventTarget.setAttribute("focus-target",""),this.unmarkAsFocusTargetHandler=()=>this.eventTarget.removeAttribute("focus-target"),this.delegateKeyDownEvent=o=>{if(this.catchedKeys.indexOf(o.key)!==-1){let r=o.key.toLocaleLowerCase(),s=0,n=r.includes("enter");n||(s=r.includes("down")?1:-1),this.keydownHandler(o,s,n),o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()}}}static delegateTo(t){return new e(t,i=>t.dispatchEvent(new KeyboardEvent(i.type,i)))}connect(t){var i,o;if(t!=null){t.addEventListener("keydown",this.delegateKeyDownEvent),t.addEventListener("focus",this.markAsFocusTargetHandler),t.addEventListener("blur",this.unmarkAsFocusTargetHandler);let r=document.activeElement;(t.contains(r)||(o=(i=t.shadowRoot)==null?void 0:i.activeElement)!=null&&o.contains(r))&&this.markAsFocusTargetHandler()}}disconnect(t){t!=null&&(t.removeEventListener("keydown",this.delegateKeyDownEvent),t.removeEventListener("focus",this.markAsFocusTargetHandler),t.removeEventListener("blur",this.unmarkAsFocusTargetHandler),this.unmarkAsFocusTargetHandler())}};var ve=class extends Ct{};ve.directiveName="unsafeSVG",ve.resultType=2;var Po=Ce(ve);var Si=class{constructor(t,i,o,r){this.inputElement=t,this.notSelectedTokensProvider=i,this.initializeCallback=r,this.filter=(s,n)=>{if(!s)return!0;if(n.disabled||n.deactivated)return!1;if(n.caption&&n.caption.toLowerCase().includes(s))return!0},He.ensureDefined(),this._tokenList=new He,this._tokenList.style.minWidth="250px",this._tokenList.addEventListener("selection",s=>{let n=s.detail.index,a=this._suggestItems[n];o(a),this.hide()}),new Ne(this._tokenList,(s,n,a)=>{this._tokenList.dispatchEvent(new KeyboardEvent(s.type,s)),!a&&!this.isOpened&&this.show()}).connect(t)}show(){this.inputElement.effectiveDisabled||(this.popover,this._suggestItems=this.filterItems((this.inputElement.value||"").toLowerCase()),this._suggestItems.length==0?this.hide():(this._tokenList.items=this._suggestItems.map(t=>({...t,contentMode:"text"})),this._tokenList.focusIndex=-1,Object.assign(this._tokenList.style,{minWidth:`${Math.max(this.popover.targetElement.offsetWidth,250)}px`}),this.popover.show()))}refreshItems(){this.isOpened&&(this._suggestItems=this.filterItems((this.inputElement.value||"").toLowerCase()),this._suggestItems.length==0?this.hide():this._tokenList.items=this._suggestItems.map(t=>({...t,contentMode:"text"})))}filterItems(t){let i=this.notSelectedTokensProvider();return t?i.filter(o=>this.filter(t,o)):i}hide(){var t;this._suggestItems=[],this._tokenList.items=[],(t=this._popover)==null||t.hide()}get list(){return this._tokenList}get popover(){return this._popover||(this._popover=this.createPopover(),this.initializeCallback(this)),this._popover}createPopover(){let t=new me;return t.setAttribute("trigger-type","manual"),t.setAttribute("placement","bottom-start"),t.setAttribute("modal",""),t.setAttribute("popover-for","token-autosuggest-popover"),t.setAttribute("offset","-2"),t.targetElement=this.inputElement,t.appendChild(this._tokenList),t}get isOpened(){return this._popover&&this._popover.hasAttribute("open")}get focusedSuggestToken(){return this._suggestItems[this._tokenList.focusIndex]}},Jr=":host{flex-shrink:0;max-width:100%}.container{display:flex;height:28px;background-color:var(--token-background-color, #f3f3f3);border:var(--token-border);box-sizing:border-box}.container .icon-wrapper{display:flex;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:100%;overflow:hidden;background-color:var(--token-icon-background-color, transparent)}.container .icon-wrapper .icon{height:100%;width:100%;object-fit:contain;background-size:cover;background-repeat:no-repeat;background-position:center}.container .value{display:inline-block;align-self:center;padding:0 8px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.container .delete-button-wrapper{display:flex;align-self:center;height:16px;width:16px;padding-right:8px;opacity:.5}.container .delete-button-wrapper:hover{cursor:pointer;filter:brightness(10%);opacity:1}",Zr=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\r
142
+ <path d="m3.5 12.5 9-9m-9 0 9 9" style="fill:none;stroke:#333;stroke-linecap:square;stroke-width:1.1px"/>\r
143
+ </svg>`,Qr=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,bt=(e,t,i,o)=>{for(var r=o>1?void 0:o?ts(t,i):t,s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&Qr(t,i,r),r},Ci={fromAttribute:e=>e=="true",toAttribute:e=>e},Nt,ht=(Nt=class extends U{constructor(){super(...arguments),this.value="",this.type="",this.icon="",this.iconPlaceholder="",this.iconBackgroundColor="",this._checked=!1}static get styles(){return it(Jr)}set checked(e){let t=this._checked;this._checked=!this.disabled&&e,this.requestUpdate("checked",t)}get checked(){return this._checked}firstUpdated(e){super.firstUpdated(e),this.tabIndex=-1,this.setAttribute("role","option"),this.setAttribute("aria-selected","true"),this.addEventListener("click",i=>{i.stopPropagation(),i.getModifierState("Control")?this.checked=!this.checked:(this.checked=!0,this._tokenClickHandler&&this._tokenClickHandler(this.index))});let t=this.shadowRoot.querySelector(".delete-button-wrapper");t&&t.addEventListener("click",i=>{i.stopPropagation(),this._tokenDeleteHandler&&this._tokenDeleteHandler(this.index)})}render(){return S`
144
+ <div class="container">
145
+ <slot name="before-icon"></slot>
146
+ ${this.renderIcon()}
147
+ <slot name="after-icon"></slot>
148
+ <div class="value">${this.value}</div>
149
+ ${this.disabled?b:S` <div class="delete-button-wrapper">${Po(Zr)}</div> `}
150
+ </div>
151
+ `}renderIcon(){if(this.icon||this.iconPlaceholder){let e=this.iconBackgroundColor!=null?`--token-icon-background-color: ${this.iconBackgroundColor}`:void 0;return S`
152
+ <div class="icon-wrapper" style="${V(e)}" role="img">
153
+ <div class="icon"></div>
154
+ </div>
155
+ `}return b}updated(e){super.updated(e),(e.has("icon")||e.has("iconPlaceholder"))&&(this.icon||this.iconPlaceholder)&&zt.showImage(this.shadowRoot.querySelector(".icon"),this.icon,this.iconPlaceholder),e.has("disabled")&&!this.disabled&&this.checked&&(this.checked=!1)}setClickHandler(e){this._tokenClickHandler=e}setDeleteHandler(e){this._tokenDeleteHandler=e}},Nt.ID="sd-token",Nt.ensureDefined=()=>{customElements.get(Nt.ID)||customElements.define(Nt.ID,Nt)},Nt);bt([p({type:String,attribute:!0,reflect:!0})],ht.prototype,"value",2);bt([p({type:String,attribute:!0,reflect:!0})],ht.prototype,"type",2);bt([p({type:String})],ht.prototype,"icon",2);bt([p({type:String})],ht.prototype,"iconPlaceholder",2);bt([p({type:String})],ht.prototype,"iconBackgroundColor",2);bt([p({converter:Ci,reflect:!0,attribute:"aria-disabled"})],ht.prototype,"disabled",2);bt([p({converter:Ci,reflect:!0,attribute:"aria-current"})],ht.prototype,"current",2);bt([p({converter:Ci,reflect:!0,attribute:"aria-checked"})],ht.prototype,"checked",1);var Ue=ht,Oo=(e,t)=>{let i=document.createElement(Ue.ID);return e&&(i.value=e.caption,i.type=e.type,i.icon=e.icon,i.iconPlaceholder=e.iconPlaceholder,i.iconBackgroundColor=e.iconBackgroundColor,i.disabled=e.disabled,i.index=t),i};Ue.ensureDefined();var Be="web application/json",_i=class{constructor(t,i,o){navigator.clipboard&&(t.addEventListener("copy",()=>{i()||this.writeToClipboard(t)}),t.addEventListener("cut",()=>{i()||(t.removeSelectionOrActiveToken(),this.writeToClipboard(t))}),t.addEventListener("paste",()=>{t.disabled||this.readFromClipboard(o)}))}writeToClipboard(t){let i=t.querySelectorAll("[slot='items'][aria-checked='true']"),o=[];if(i.length>0)i.forEach(r=>o.push(r.index));else if(t.activeTokenIndex!=-1){let r=t.activeTokenElement;r&&o.push(r.index)}if(o.length>0){let r=JSON.stringify(o.map(n=>t.items[n])),s=new Blob([r],{type:Be});navigator.clipboard.write([new ClipboardItem({[Be]:s})])}}async readFromClipboard(t){let i=await navigator.clipboard.read();for(let o of i)if(o.types.includes(Be)){let r=await(await o.getType(Be)).text(),s=JSON.parse(r);Array.isArray(s)&&t(s)}}},es=":host{display:flex;align-items:flex-end}:host .additonal-content::slotted(*){align-self:end;flex-shrink:0}:host([drop]) ::slotted(*){pointer-events:none}:host(:not([readonly])) ::slotted(sd-token:last-of-type){margin-right:24px;margin-bottom:4px}.container{display:flex;flex-wrap:wrap;gap:8px;flex-grow:1;min-width:0}.container .placeholder{color:#767676;line-height:24px;align-self:flex-end}.input{flex-grow:1;min-width:0;width:100%}.input .token-wrapper{display:flex;flex-wrap:wrap;flex:1 0 auto;width:100%;gap:8px}",$i=class{constructor(t,i){this.tokenSelector=t;let o=[],r=s=>{let n=s.target;t.contains(n)||t.removeTokens(o),o=[]};t.addEventListener("dragstart",s=>{let n=s.target;if(n instanceof Ue){if(n.disabled){s.preventDefault();return}n.setAttribute("aria-checked","true");let a=t.querySelectorAll("[slot='items'][aria-checked='true']");if(a.length>0){let l=Array.from(a).filter(c=>!c.disabled).map(c=>(o.push(c.index),t.items[c.index]));if(s.dataTransfer.setData("text/plain",JSON.stringify(l)),s.dataTransfer.dropEffect="move",s.dataTransfer.effectAllowed="move",a.length>1){let c=this.createCustomDragImage(n,l.length);s.dataTransfer.setDragImage(c,-14,-14)}window.addEventListener("drop",r,{capture:!0,once:!0})}}}),t.addEventListener("dragenter",s=>{t.setAttribute("drop",""),s.preventDefault()}),t.addEventListener("dragover",s=>s.preventDefault()),t.addEventListener("dragleave",s=>{s.target==t&&t.removeAttribute("drop")}),t.addEventListener("drop",s=>{t.removeAttribute("drop");let n=s.dataTransfer.getData("text/plain");if(n)try{let a=JSON.parse(n);Array.isArray(a)&&(i(a),s.preventDefault())}catch{}}),t.addEventListener("dragend",()=>{window.removeEventListener("drop",r),o=[]})}createCustomDragImage(t,i){let o=t.cloneNode(!0);if(o.setAttribute("aria-disabled","true"),this.tokenSelector.tokenType)o.value=i+" "+this.tokenSelector.tokenType;else{let r=document.createElement("div");r.innerText="+"+(i-1),Object.assign(r.style,{position:"absolute",left:"90%",top:"75%"});let s=document.createElement("div");s.appendChild(o),s.appendChild(r),o=s}return Object.assign(o.style,{height:t.offsetHeight,outline:"none",maxWidth:"500px",position:"absolute",display:"block",left:"-99999px",overflow:"visible",margin:"1px"}),o.slot="items",this.tokenSelector.appendChild(o),requestAnimationFrame(()=>o.remove()),o}},is=Object.defineProperty,os=Object.getOwnPropertyDescriptor,Q=(e,t,i,o)=>{for(var r=o>1?void 0:o?os(t,i):t,s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&is(t,i,r),r};function rs(e,t){let i;return function(...o){i!=null&&clearTimeout(i),i=window.setTimeout(()=>e(...o),t)}}var Do=(e=>(e.RemoveOnly="remove-only",e.Multi="multi",e))(Do||{}),gt,X=(gt=class extends U{constructor(){super(...arguments),this.selectionMode="multi",this.items=[],this.selectedIndexes=[],this._tokenGenerator=Oo,this._autoSuggestItemGenerator=Te,this.additionalTokenCommittingKeys=[],this._activeTokenIndex=-1,this.handleInputKeyDown=(e,t)=>{if((e.key==="Enter"||this.additionalTokenCommittingKeys.includes(e.key))&&t.value){e.preventDefault(),e.stopPropagation(),this.commitTokenValue(t.value);return}switch(e.key){case"Escape":{e.preventDefault(),e.stopPropagation(),this.tokenSuggestPopover.hide();break}case"Tab":{this.commitTokenValue(t.value),this.tokenSuggestPopover.hide();break}default:this.handleKeyDown(e)}},this.handleKeyDown=e=>{switch(e.key){case"ArrowLeft":{this.hasInputValue||this.updateActiveToken(-1);break}case"ArrowRight":{this.hasInputValue||this.updateActiveToken(1);break}case"Enter":{if(!this.hasInputValue&&this.activeTokenIndex!=-1){let t=this.activeTokenElement;e.getModifierState("Control")?t.checked=!t.checked:(t.checked=!0,this.onTokenClick(t,!1)),document.activeElement!=this&&this.focus()}break}case"Backspace":{this.hasInputValue||(this.activeTokenIndex==-1?this.updateActiveToken(-1):this.removeSelectionOrActiveToken());break}case"Clear":case"Delete":{this.removeSelectionOrActiveToken();break}case"a":{!this.hasInputValue&&e.getModifierState("Control")&&(this.querySelectorAll("[slot='items']").forEach(t=>t.checked=!0),e.preventDefault(),e.stopPropagation());break}}},this.handleWindowPointerDown=e=>{let t=this.inputElement;!t||!t.value||e.composedPath().some(i=>{if(i instanceof HTMLElement&&(e.composedPath().indexOf(t)>-1||i.getAttribute("popover-for")==="token-autosuggest-popover"))return!0})||this.commitTokenValue(t.value)},this.debouncedShowTokenSuggestPopover=rs(this.showFilteredTokenSuggestions.bind(this),200)}static get styles(){return it(es)}get tokenGenerator(){return this._tokenGenerator}set tokenGenerator(e){this._tokenGenerator=e,this.render()}get autoSuggestItemGenerator(){return this._autoSuggestItemGenerator}set autoSuggestItemGenerator(e){this._autoSuggestItemGenerator=e,this._tokenSuggestPopover&&(this._tokenSuggestPopover.list.itemGenerator=e)}setAdditionalTokenCommittingKeys(e){this.additionalTokenCommittingKeys=e}openSuggestions(){this.inputElement&&(this.focus(),this.tokenSuggestPopover.show())}focus(){this.inputElement?this.inputElement.focus():this.shadowRoot.querySelector(".container").focus()}render(){return this.selectionMode=="remove-only"?S`<div class="container" tabindex="0">
156
+ <slot name="items"
157
+ >${this.placeholder?S`<span part="remove-only-placeholder" class="placeholder"
158
+ >${this.placeholder}</span
159
+ >`:b}</slot
160
+ >
161
+ </div>
162
+ <slot class="additonal-content" name="additional-content"></slot>`:S`
163
+ <sd-lit-input
164
+ class="input"
165
+ .extendedPrefix=${!0}
166
+ .label=${this.inputLabel}
167
+ .validationLevel=${this.validationLevel}
168
+ .validationIconSrc=${this.validationIconSrc}
169
+ .validationMessage=${this.validationMessage}
170
+ .alwaysFloatLabel=${this.selectedIndexes.length>0}
171
+ .placeholder=${this.selectedIndexes.length==0?this.placeholder:""}
172
+ .disabled=${this.disabled}
173
+ tabindex="0"
174
+ ><div class="token-wrapper" slot="prefix"><slot name="items"></slot></div>
175
+ </sd-lit-input>
176
+ <slot class="additonal-content" name="additional-content"></slot>
177
+ `}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","listbox"),this.setAttribute("aria-multiselectable","true"),this.hasAttribute("tabIndex")||(this.tabIndex=0),this.addEventListener("focusout",t=>{let i=t.relatedTarget;!this.contains(i)&&!this.shadowRoot.contains(i)&&this.querySelectorAll("[slot='items'][aria-checked='true']").forEach(o=>o.checked=!1)}),new _i(this,()=>{var t;return(t=this.inputElement)==null?void 0:t.value},t=>this.addMatchingItems(t)),new $i(this,t=>this.addMatchingItems(t))}addMatchingItems(e){let t=e.map(i=>{let o=i.caption==null?-1:this.findIndex(i);return o!=-1&&!this.items[o].disabled&&!this.selectedIndexes.includes(o)?o:-1}).filter(i=>i!=-1);t.length>0&&this.handleTokenSelection(t)}removeSelectionOrActiveToken(){if(!this.disabled){let e=this.querySelectorAll("[slot='items'][aria-checked='true']");if(e.length>0){let t=Array.from(e);this.removeTokens(t.filter(i=>!i.disabled).map(i=>i.index))}else if(this.activeTokenIndex!=-1){let t=this.activeTokenElement;t&&!t.disabled&&this.removeTokens([t.index])}}}updateActiveToken(e){let t=this.querySelectorAll("[slot='items']").length-1;this.activeTokenIndex==-1?e<0&&(this.activeTokenIndex=t):this.activeTokenIndex==t&&e>0?(this.activeTokenIndex=-1,this.focus()):this.activeTokenIndex=Math.max(0,Math.min(t,this.activeTokenIndex+e))}commitTokenValue(e){if(this.disabled)return;if(this.tokenSuggestPopover.isOpened){let i=this.tokenSuggestPopover.focusedSuggestToken;if(i){if(!i.disabled){let o=this.findIndex(i);this.handleTokenSelection([o]),this.tokenSuggestPopover.hide()}return}}if(!(e!=null&&e.trim()))return;let t=this.items.findIndex(i=>this.caseSensitive?i.caption==e:i.caption.toLowerCase()==e.toLowerCase());this.selectedIndexes.includes(t)||(t>=0?this.handleTokenSelection([t]):this.handleTokenCreation(e)),this.requestUpdate("selectedIndexes"),this.tokenSuggestPopover.hide(),window.removeEventListener("pointerdown",this.handleWindowPointerDown)}updated(e){if(super.updated(e),this._tokenSuggestPopover&&(this.tokenSuggestPopover.list.className=this.suggestListClass||"",this.suggestionFilter&&(this.tokenSuggestPopover.filter=this.suggestionFilter)),e.has("selectionMode"))if(this.selectionMode=="multi"){this.setAttribute("aria-haspopup","listbox");let t=this.inputElement;t.addEventListener("immediate-value-change",i=>this.handleInputValueChange(i)),t.addEventListener("keydown",i=>this.handleInputKeyDown(i,t)),window.queueMicrotask(()=>this.tokenSuggestPopover)}else this.removeAttribute("aria-haspopup"),this.addEventListener("keydown",this.handleKeyDown),this._tokenSuggestPopover&&(this._tokenSuggestPopover.popover.remove(),this._tokenSuggestPopover=null);(e.size==0||e.has("selectionMode")||e.has("items")||e.has("selectedIndexes")||e.has("disabled"))&&this.updateItems()}handleInputValueChange(e){e.detail.value?(this.activeTokenIndex=-1,this.cancelSearch=!1,this.debouncedShowTokenSuggestPopover(),window.addEventListener("pointerdown",this.handleWindowPointerDown)):(this.tokenSuggestPopover.hide(),this.cancelSearch=!0)}showFilteredTokenSuggestions(){!this.cancelSearch&&this.inputElement.value&&this.tokenSuggestPopover.show()}isTokenNotSelected(e){return!this.selectedIndexes.includes(e)}get tokenSuggestPopover(){return!this._tokenSuggestPopover&&this.inputElement&&(this._tokenSuggestPopover=new Si(this.inputElement,()=>this.items.filter((e,t)=>!e.disabled&&this.isTokenNotSelected(t)),e=>{let t=this.findIndex(e);this.handleTokenSelection([t]),window.removeEventListener("pointerdown",this.handleWindowPointerDown)},e=>{this.appendChild(e.popover),this.dispatchEvent(new CustomEvent("auto-suggest-initialized")),e.popover.addEventListener("close",()=>{this.inputElement.value&&!this.contains(document.activeElement)&&(this.inputElement.value="")})}),this._tokenSuggestPopover.list.itemGenerator=this._autoSuggestItemGenerator,this._tokenSuggestPopover.list.className=this.suggestListClass,this.suggestionFilter&&(this._tokenSuggestPopover.filter=this.suggestionFilter)),this._tokenSuggestPopover}updateItems(){if(!this.isConnected||!this.items)return;let e=this.inputElement;e&&(!this._tokenSuggestPopover||!this._tokenSuggestPopover.isOpened)&&(e.value=""),this.querySelectorAll("[slot='items']").forEach(o=>{this.removeChild(o)});let t=document.createDocumentFragment(),i=[];this.selectionMode=="remove-only"?i=this.items.map(o=>this.disableIfNeeded(o)):this.selectedIndexes.forEach(o=>{i.push(this.disableIfNeeded(this.items[o]))}),i.forEach(o=>{let r=this.tokenGenerator(o,this.findIndex(o));r.slot="items",t.appendChild(r),r.id||(r.id=window.crypto.getRandomValues(new Uint32Array(1))[0].toString(16)),r.setClickHandler(()=>this.onTokenClick(r,!0)),r.addEventListener("click",()=>{document.activeElement!=this&&this.focus()}),r.setDeleteHandler(s=>this.removeTokens([s]))}),this.appendChild(t),this._tokenSuggestPopover&&this._tokenSuggestPopover.refreshItems()}removeTokens(e){this.disabled||(this.activeTokenIndex!=-1&&e.includes(this.activeTokenElement.index)&&(this.activeTokenIndex=-1),this.selectionMode=="remove-only"?this.dispatchEvent(new CustomEvent("tokens-removed",{detail:{removedIndices:e}})):(this.selectedIndexes=this.selectedIndexes.filter(t=>!e.includes(t)),this.dispatchEvent(new CustomEvent("tokens-removed",{detail:{removedIndices:e,selectedIndices:[...this.selectedIndexes]}}))))}onTokenClick(e,t){let i;this.querySelectorAll("[slot='items']").forEach((o,r)=>{e==o?i=r:o.setAttribute("aria-checked","false")}),this.activeTokenIndex=i,this.setAttribute("aria-activedescendant",this.activeTokenElement.id),this._tokenSuggestPopover&&this._tokenSuggestPopover.isOpened&&this._tokenSuggestPopover.hide(),this.dispatchEvent(new CustomEvent("token-clicked",{detail:{index:e.index,tokenElement:e,byPointerDevice:t}}))}disableIfNeeded(e){return this.disabled?{...e,disabled:!0}:e}handleTokenSelection(e){this.selectedIndexes=this.selectedIndexes.concat(e),this.dispatchEvent(new CustomEvent("tokens-selected",{detail:{newIndices:e,selectedIndices:[...this.selectedIndexes]}}))}handleTokenCreation(e){this.dispatchEvent(new CustomEvent("token-created",{detail:{value:e}}))}get inputElement(){return this.shadowRoot.querySelector(".input")}get activeTokenElement(){return this.getTokenElement(this.activeTokenIndex)}getTokenElement(e){return this.querySelector("[slot='items']:nth-of-type("+(e+1)+")")}findIndex(e){return this.items.findIndex(t=>t.caption===e.caption)}get activeTokenIndex(){return this._activeTokenIndex}set activeTokenIndex(e){if(this._activeTokenIndex!=-1){let t=this.activeTokenElement;t&&(t.current=!1)}if(this._activeTokenIndex=e,e==-1)this.removeAttribute("aria-activedescendant");else{let t=this.activeTokenElement;t.current=!0,this.setAttribute("aria-activedescendant",t.id)}}get hasInputValue(){var e;return!!((e=this.inputElement)!=null&&e.value)}},gt.ID="sd-token-selector",gt.ensureDefined=()=>{Ue.ensureDefined(),customElements.get(gt.ID)||customElements.define(gt.ID,gt)},gt.shadowRootOptions={...U.shadowRootOptions,delegatesFocus:!0},gt);Q([p({type:String,attribute:"selection-mode",reflect:!0})],X.prototype,"selectionMode",2);Q([p({type:Array,attribute:!1})],X.prototype,"items",2);Q([p({type:Array,attribute:!1})],X.prototype,"selectedIndexes",2);Q([p({type:String,reflect:!0})],X.prototype,"placeholder",2);Q([p({type:String,reflect:!0,attribute:"suggest-list-class"})],X.prototype,"suggestListClass",2);Q([p({type:String,reflect:!0,attribute:"input-label"})],X.prototype,"inputLabel",2);Q([p({converter:{fromAttribute:e=>e=="true",toAttribute:e=>e},reflect:!0,attribute:"aria-disabled"})],X.prototype,"disabled",2);Q([p({type:String,attribute:!0})],X.prototype,"validationMessage",2);Q([p({type:String,attribute:!0})],X.prototype,"validationIconSrc",2);Q([p({converter:ae.levelConverter,attribute:!0,reflect:!0})],X.prototype,"validationLevel",2);Q([p({type:String,reflect:!0,attribute:"token-type"})],X.prototype,"tokenType",2);Q([p({type:Boolean,reflect:!0,attribute:"case-sensitive"})],X.prototype,"caseSensitive",2);var ss=X;return qo(ns);})();
178
+ /*! Bundled license information:
179
+
180
+ @lit/reactive-element/css-tag.js:
181
+ (**
182
+ * @license
183
+ * Copyright 2019 Google LLC
184
+ * SPDX-License-Identifier: BSD-3-Clause
185
+ *)
186
+
187
+ @lit/reactive-element/reactive-element.js:
188
+ (**
189
+ * @license
190
+ * Copyright 2017 Google LLC
191
+ * SPDX-License-Identifier: BSD-3-Clause
192
+ *)
193
+
194
+ lit-html/lit-html.js:
195
+ (**
196
+ * @license
197
+ * Copyright 2017 Google LLC
198
+ * SPDX-License-Identifier: BSD-3-Clause
199
+ *)
200
+
201
+ lit-element/lit-element.js:
202
+ (**
203
+ * @license
204
+ * Copyright 2017 Google LLC
205
+ * SPDX-License-Identifier: BSD-3-Clause
206
+ *)
207
+
208
+ lit-html/is-server.js:
209
+ (**
210
+ * @license
211
+ * Copyright 2022 Google LLC
212
+ * SPDX-License-Identifier: BSD-3-Clause
213
+ *)
214
+
215
+ @lit/reactive-element/decorators/property.js:
216
+ (**
217
+ * @license
218
+ * Copyright 2017 Google LLC
219
+ * SPDX-License-Identifier: BSD-3-Clause
220
+ *)
221
+
222
+ lit-html/directives/if-defined.js:
223
+ (**
224
+ * @license
225
+ * Copyright 2018 Google LLC
226
+ * SPDX-License-Identifier: BSD-3-Clause
227
+ *)
228
+
229
+ lit-html/directive.js:
230
+ (**
231
+ * @license
232
+ * Copyright 2017 Google LLC
233
+ * SPDX-License-Identifier: BSD-3-Clause
234
+ *)
235
+
236
+ lit-html/directives/unsafe-html.js:
237
+ (**
238
+ * @license
239
+ * Copyright 2017 Google LLC
240
+ * SPDX-License-Identifier: BSD-3-Clause
241
+ *)
242
+
243
+ lit-html/directives/unsafe-svg.js:
244
+ (**
245
+ * @license
246
+ * Copyright 2017 Google LLC
247
+ * SPDX-License-Identifier: BSD-3-Clause
248
+ *)
249
+ */
250
+ //# sourceMappingURL=token-selector-with-externals.js.map