@cas-smartdesign/combo-box 7.5.4 → 7.5.5
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var window;(window||={})["@cas-smartdesign/combo-box"]=(()=>{var Ye=Object.defineProperty;var Do=Object.getOwnPropertyDescriptor;var Lo=Object.getOwnPropertyNames;var Vo=Object.prototype.hasOwnProperty;var Bo=(e,t)=>{for(var i in t)Ye(e,i,{get:t[i],enumerable:!0})},
|
|
1
|
+
var window;(window||={})["@cas-smartdesign/combo-box"]=(()=>{var Ye=Object.defineProperty;var Do=Object.getOwnPropertyDescriptor;var Lo=Object.getOwnPropertyNames;var Vo=Object.prototype.hasOwnProperty;var Bo=(e,t)=>{for(var i in t)Ye(e,i,{get:t[i],enumerable:!0})},Ro=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Lo(t))!Vo.call(e,s)&&s!==i&&Ye(e,s,{get:()=>t[s],enumerable:!(o=Do(t,s))||o.enumerable});return e};var Mo=e=>Ro(Ye({},"__esModule",{value:!0}),e);var er={};Bo(er,{default:()=>Co});var $e=globalThis,Ce=$e.ShadowRoot&&($e.ShadyCSS===void 0||$e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qe=Symbol(),Vi=new WeakMap,te=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(Ce&&t===void 0){let o=i!==void 0&&i.length===1;o&&(t=Vi.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Vi.set(i,t))}return t}toString(){return this.cssText}},X=e=>new te(typeof e=="string"?e:e+"",void 0,Qe),it=(e,...t)=>{let i=e.length===1?e[0]:t.reduce(((o,s,r)=>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.")})(s)+e[r+1]),e[0]);return new te(i,e,Qe)},Bi=(e,t)=>{if(Ce)e.adoptedStyleSheets=t.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(let i of t){let o=document.createElement("style"),s=$e.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=i.cssText,e.appendChild(o)}},Je=Ce?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(let o of t.cssRules)i+=o.cssText;return X(i)})(e):e;var{is:ko,defineProperty:No,getOwnPropertyDescriptor:Ho,getOwnPropertyNames:zo,getOwnPropertySymbols:Fo,getPrototypeOf:qo}=Object,Ie=globalThis,Ri=Ie.trustedTypes,Uo=Ri?Ri.emptyScript:"",Wo=Ie.reactiveElementPolyfillSupport,ee=(e,t)=>e,ie={toAttribute(e,t){switch(t){case Boolean:e=e?Uo: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}},Se=(e,t)=>!ko(e,t),Mi={attribute:!0,type:String,converter:ie,reflect:!1,useDefault:!1,hasChanged:Se};Symbol.metadata??=Symbol("metadata"),Ie.litPropertyMetadata??=new WeakMap;var lt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,i=Mi){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(t,i),!i.noAccessor){let o=Symbol(),s=this.getPropertyDescriptor(t,o,i);s!==void 0&&No(this.prototype,t,s)}}static getPropertyDescriptor(t,i,o){let{get:s,set:r}=Ho(this.prototype,t)??{get(){return this[i]},set(n){this[i]=n}};return{get:s,set(n){let l=s?.call(this);r?.call(this,n),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Mi}static _$Ei(){if(this.hasOwnProperty(ee("elementProperties")))return;let t=qo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ee("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ee("properties"))){let i=this.properties,o=[...zo(i),...Fo(i)];for(let s of o)this.createProperty(s,i[s])}let t=this[Symbol.metadata];if(t!==null){let i=litPropertyMetadata.get(t);if(i!==void 0)for(let[o,s]of i)this.elementProperties.set(o,s)}this._$Eh=new Map;for(let[i,o]of this.elementProperties){let s=this._$Eu(i,o);s!==void 0&&this._$Eh.set(s,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let i=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let s of o)i.unshift(Je(s))}else t!==void 0&&i.push(Je(t));return i}static _$Eu(t,i){let o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,i=this.constructor.elementProperties;for(let o of i.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Bi(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,i,o){this._$AK(t,o)}_$ET(t,i){let o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(s!==void 0&&o.reflect===!0){let r=(o.converter?.toAttribute!==void 0?o.converter:ie).toAttribute(i,o.type);this._$Em=t,r==null?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,i){let o=this.constructor,s=o._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let r=o.getPropertyOptions(s),n=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:ie;this._$Em=s;let l=n.fromAttribute(i,r.type);this[s]=l??this._$Ej?.get(s)??l,this._$Em=null}}requestUpdate(t,i,o){if(t!==void 0){let s=this.constructor,r=this[t];if(o??=s.getPropertyOptions(t),!((o.hasChanged??Se)(r,i)||o.useDefault&&o.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,o))))return;this.C(t,i,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,i,{useDefault:o,reflect:s,wrapped:r},n){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??i??this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(i=void 0),this._$AL.set(t,i)),s===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,r]of this._$Ep)this[s]=r;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[s,r]of o){let{wrapped:n}=r,l=this[s];n!==!0||this._$AL.has(s)||l===void 0||this.C(s,void 0,r,l)}}let t=!1,i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(i)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(i)}willUpdate(t){}_$AE(t){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(t){}firstUpdated(t){}};lt.elementStyles=[],lt.shadowRootOptions={mode:"open"},lt[ee("elementProperties")]=new Map,lt[ee("finalized")]=new Map,Wo?.({ReactiveElement:lt}),(Ie.reactiveElementVersions??=[]).push("2.1.1");var ti=globalThis,Ee=ti.trustedTypes,ki=Ee?Ee.createPolicy("lit-html",{createHTML:e=>e}):void 0,ei="$lit$",dt=`lit$${Math.random().toFixed(9).slice(2)}$`,ii="?"+dt,jo=`<${ii}>`,Et=document,se=()=>Et.createComment(""),re=e=>e===null||typeof e!="object"&&typeof e!="function",oi=Array.isArray,Ui=e=>oi(e)||typeof e?.[Symbol.iterator]=="function",Ze=`[
|
|
2
2
|
\f\r]`,oe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ni=/-->/g,Hi=/>/g,It=RegExp(`>|${Ze}(?:([^\\s"'>=/]+)(${Ze}*=${Ze}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),zi=/'/g,Fi=/"/g,Wi=/^(?:script|style|textarea|title)$/i,si=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),T=si(1),ar=si(2),lr=si(3),ct=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),qi=new WeakMap,St=Et.createTreeWalker(Et,129);function ji(e,t){if(!oi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ki!==void 0?ki.createHTML(t):t}var Ki=(e,t)=>{let i=e.length-1,o=[],s,r=t===2?"<svg>":t===3?"<math>":"",n=oe;for(let l=0;l<i;l++){let a=e[l],c,d,p=-1,f=0;for(;f<a.length&&(n.lastIndex=f,d=n.exec(a),d!==null);)f=n.lastIndex,n===oe?d[1]==="!--"?n=Ni:d[1]!==void 0?n=Hi:d[2]!==void 0?(Wi.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=It):d[3]!==void 0&&(n=It):n===It?d[0]===">"?(n=s??oe,p=-1):d[1]===void 0?p=-2:(p=n.lastIndex-d[2].length,c=d[1],n=d[3]===void 0?It:d[3]==='"'?Fi:zi):n===Fi||n===zi?n=It:n===Ni||n===Hi?n=oe:(n=It,s=void 0);let u=n===It&&e[l+1].startsWith("/>")?" ":"";r+=n===oe?a+jo:p>=0?(o.push(c),a.slice(0,p)+ei+a.slice(p)+dt+u):a+dt+(p===-2?l:u)}return[ji(e,r+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},ne=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let r=0,n=0,l=t.length-1,a=this.parts,[c,d]=Ki(t,i);if(this.el=e.createElement(c,o),St.currentNode=this.el.content,i===2||i===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=St.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(ei)){let f=d[n++],u=s.getAttribute(p).split(dt),b=/([.?@])?(.*)/.exec(f);a.push({type:1,index:r,name:b[2],strings:u,ctor:b[1]==="."?Oe:b[1]==="?"?Te:b[1]==="@"?De:Ot}),s.removeAttribute(p)}else p.startsWith(dt)&&(a.push({type:6,index:r}),s.removeAttribute(p));if(Wi.test(s.tagName)){let p=s.textContent.split(dt),f=p.length-1;if(f>0){s.textContent=Ee?Ee.emptyScript:"";for(let u=0;u<f;u++)s.append(p[u],se()),St.nextNode(),a.push({type:2,index:++r});s.append(p[f],se())}}}else if(s.nodeType===8)if(s.data===ii)a.push({type:2,index:r});else{let p=-1;for(;(p=s.data.indexOf(dt,p+1))!==-1;)a.push({type:7,index:r}),p+=dt.length-1}r++}}static createElement(t,i){let o=Et.createElement("template");return o.innerHTML=t,o}};function Pt(e,t,i=e,o){if(t===ct)return t;let s=o!==void 0?i._$Co?.[o]:i._$Cl,r=re(t)?void 0:t._$litDirective$;return s?.constructor!==r&&(s?._$AO?.(!1),r===void 0?s=void 0:(s=new r(e),s._$AT(e,i,o)),o!==void 0?(i._$Co??=[])[o]=s:i._$Cl=s),s!==void 0&&(t=Pt(e,s._$AS(e,t.values),s,o)),t}var Pe=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){let{el:{content:i},parts:o}=this._$AD,s=(t?.creationScope??Et).importNode(i,!0);St.currentNode=s;let r=St.nextNode(),n=0,l=0,a=o[0];for(;a!==void 0;){if(n===a.index){let c;a.type===2?c=new Ft(r,r.nextSibling,this,t):a.type===1?c=new a.ctor(r,a.name,a.strings,this,t):a.type===6&&(c=new Le(r,this,t)),this._$AV.push(c),a=o[++l]}n!==a?.index&&(r=St.nextNode(),n++)}return St.currentNode=Et,s}p(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++}},Ft=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,o,s){this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}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=Pt(this,t,i),re(t)?t===x||t==null||t===""?(this._$AH!==x&&this._$AR(),this._$AH=x):t!==this._$AH&&t!==ct&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ui(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==x&&re(this._$AH)?this._$AA.nextSibling.data=t:this.T(Et.createTextNode(t)),this._$AH=t}$(t){let{values:i,_$litType$:o}=t,s=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=ne.createElement(ji(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(i);else{let r=new Pe(s,this),n=r.u(this.options);r.p(i),this.T(n),this._$AH=r}}_$AC(t){let i=qi.get(t.strings);return i===void 0&&qi.set(t.strings,i=new ne(t)),i}k(t){oi(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,o,s=0;for(let r of t)s===i.length?i.push(o=new e(this.O(se()),this.O(se()),this,this.options)):o=i[s],o._$AI(r),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ot=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,o,s,r){this.type=1,this._$AH=x,this._$AN=void 0,this.element=t,this.name=i,this._$AM=s,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=x}_$AI(t,i=this,o,s){let r=this.strings,n=!1;if(r===void 0)t=Pt(this,t,i,0),n=!re(t)||t!==this._$AH&&t!==ct,n&&(this._$AH=t);else{let l=t,a,c;for(t=r[0],a=0;a<r.length-1;a++)c=Pt(this,l[o+a],i,a),c===ct&&(c=this._$AH[a]),n||=!re(c)||c!==this._$AH[a],c===x?t=x:t!==x&&(t+=(c??"")+r[a+1]),this._$AH[a]=c}n&&!s&&this.j(t)}j(t){t===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Oe=class extends Ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===x?void 0:t}},Te=class extends Ot{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==x)}},De=class extends Ot{constructor(t,i,o,s,r){super(t,i,o,s,r),this.type=5}_$AI(t,i=this){if((t=Pt(this,t,i,0)??x)===ct)return;let o=this._$AH,s=t===x&&o!==x||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==x&&(o===x||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Le=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){Pt(this,t)}},Gi={M:ei,P:dt,A:ii,C:1,L:Ki,R:Pe,D:Ui,V:Pt,I:Ft,H:Ot,N:Te,U:De,B:Oe,F:Le},Ko=ti.litHtmlPolyfillSupport;Ko?.(ne,Ft),(ti.litHtmlVersions??=[]).push("3.3.1");var Xi=(e,t,i)=>{let o=i?.renderBefore??t,s=o._$litPart$;if(s===void 0){let r=i?.renderBefore??null;o._$litPart$=s=new Ft(t.insertBefore(se(),r),r,void 0,i??{})}return s._$AI(e),s};var ri=globalThis,j=class extends lt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Xi(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ct}};j._$litElement$=!0,j.finalized=!0,ri.litElementHydrateSupport?.({LitElement:j});var Go=ri.litElementPolyfillSupport;Go?.({LitElement:j});(ri.litElementVersions??=[]).push("4.2.1");var Xo={attribute:!0,type:String,converter:ie,reflect:!1,hasChanged:Se},Yo=(e=Xo,t,i)=>{let{kind:o,metadata:s}=i,r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),o==="setter"&&((e=Object.create(e)).wrapped=!0),r.set(i.name,e),o==="accessor"){let{name:n}=i;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,a,e)},init(l){return l!==void 0&&this.C(n,void 0,e,l),l}}}if(o==="setter"){let{name:n}=i;return function(l){let a=this[n];t.call(this,l),this.requestUpdate(n,a,e)}}throw Error("Unsupported decorator location: "+o)};function h(e){return(t,i)=>typeof i=="object"?Yo(e,t,i):((o,s,r)=>{let n=s.hasOwnProperty(r);return s.constructor.createProperty(r,o),n?Object.getOwnPropertyDescriptor(s,r):void 0})(e,t,i)}var I="top",V="bottom",D="right",O="left",Ve="auto",gt=[I,V,D,O],ht="start",Tt="end",Yi="clippingParents",Be="viewport",qt="popper",Qi="reference",ni=gt.reduce(function(e,t){return e.concat([t+"-"+ht,t+"-"+Tt])},[]),Me=[].concat(gt,[Ve]).reduce(function(e,t){return e.concat([t,t+"-"+ht,t+"-"+Tt])},[]),Qo="beforeRead",Jo="read",Zo="afterRead",ts="beforeMain",es="main",is="afterMain",os="beforeWrite",ss="write",rs="afterWrite",Ji=[Qo,Jo,Zo,ts,es,is,os,ss,rs];function R(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 B(e){var t=A(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ut(e){if(typeof ShadowRoot>"u")return!1;var t=A(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ns(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var o=t.styles[i]||{},s=t.attributes[i]||{},r=t.elements[i];!B(r)||!R(r)||(Object.assign(r.style,o),Object.keys(s).forEach(function(n){var l=s[n];l===!1?r.removeAttribute(n):r.setAttribute(n,l===!0?"":l)}))})}function as(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 s=t.elements[o],r=t.attributes[o]||{},n=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:i[o]),l=n.reduce(function(a,c){return a[c]="",a},{});!B(s)||!R(s)||(Object.assign(s.style,l),Object.keys(r).forEach(function(a){s.removeAttribute(a)}))})}}var Zi={name:"applyStyles",enabled:!0,phase:"write",fn:ns,effect:as,requires:["computeStyles"]};function k(e){return e.split("-")[0]}var ot=Math.max,Dt=Math.min,pt=Math.round;function Wt(){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 ae(){return!/^((?!chrome|android).)*safari/i.test(Wt())}function Q(e,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var o=e.getBoundingClientRect(),s=1,r=1;t&&B(e)&&(s=e.offsetWidth>0&&pt(o.width)/e.offsetWidth||1,r=e.offsetHeight>0&&pt(o.height)/e.offsetHeight||1);var n=Y(e)?A(e):window,l=n.visualViewport,a=!ae()&&i,c=(o.left+(a&&l?l.offsetLeft:0))/s,d=(o.top+(a&&l?l.offsetTop:0))/r,p=o.width/s,f=o.height/r;return{width:p,height:f,top:d,right:c+p,bottom:d+f,left:c,x:c,y:d}}function Lt(e){var t=Q(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 le(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Ut(i)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function K(e){return A(e).getComputedStyle(e)}function ai(e){return["table","td","th"].indexOf(R(e))>=0}function H(e){return((Y(e)?e.ownerDocument:e.document)||window.document).documentElement}function ut(e){return R(e)==="html"?e:e.assignedSlot||e.parentNode||(Ut(e)?e.host:null)||H(e)}function to(e){return!B(e)||K(e).position==="fixed"?null:e.offsetParent}function ls(e){var t=/firefox/i.test(Wt()),i=/Trident/i.test(Wt());if(i&&B(e)){var o=K(e);if(o.position==="fixed")return null}var s=ut(e);for(Ut(s)&&(s=s.host);B(s)&&["html","body"].indexOf(R(s))<0;){var r=K(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function st(e){for(var t=A(e),i=to(e);i&&ai(i)&&K(i).position==="static";)i=to(i);return i&&(R(i)==="html"||R(i)==="body"&&K(i).position==="static")?t:i||ls(e)||t}function Vt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bt(e,t,i){return ot(e,Dt(t,i))}function eo(e,t,i){var o=Bt(e,t,i);return o>i?i:o}function de(){return{top:0,right:0,bottom:0,left:0}}function ce(e){return Object.assign({},de(),e)}function he(e,t){return t.reduce(function(i,o){return i[o]=e,i},{})}var ds=function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,ce(typeof t!="number"?t:he(t,gt))};function cs(e){var t,i=e.state,o=e.name,s=e.options,r=i.elements.arrow,n=i.modifiersData.popperOffsets,l=k(i.placement),a=Vt(l),c=[O,D].indexOf(l)>=0,d=c?"height":"width";if(!(!r||!n)){var p=ds(s.padding,i),f=Lt(r),u=a==="y"?I:O,b=a==="y"?V:D,g=i.rects.reference[d]+i.rects.reference[a]-n[a]-i.rects.popper[d],v=n[a]-i.rects.reference[a],w=st(r),E=w?a==="y"?w.clientHeight||0:w.clientWidth||0:0,P=g/2-v/2,m=p[u],y=E-f[d]-p[b],_=E/2-f[d]/2+P,C=Bt(m,_,y),N=a;i.modifiersData[o]=(t={},t[N]=C,t.centerOffset=C-_,t)}}function hs(e){var t=e.state,i=e.options,o=i.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||le(t.elements.popper,s)&&(t.elements.arrow=s))}var io={name:"arrow",enabled:!0,phase:"main",fn:cs,effect:hs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function J(e){return e.split("-")[1]}var ps={top:"auto",right:"auto",bottom:"auto",left:"auto"};function us(e,t){var i=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:pt(i*s)/s||0,y:pt(o*s)/s||0}}function oo(e){var t,i=e.popper,o=e.popperRect,s=e.placement,r=e.variation,n=e.offsets,l=e.position,a=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,f=n.x,u=f===void 0?0:f,b=n.y,g=b===void 0?0:b,v=typeof d=="function"?d({x:u,y:g}):{x:u,y:g};u=v.x,g=v.y;var w=n.hasOwnProperty("x"),E=n.hasOwnProperty("y"),P=O,m=I,y=window;if(c){var _=st(i),C="clientHeight",N="clientWidth";if(_===A(i)&&(_=H(i),K(_).position!=="static"&&l==="absolute"&&(C="scrollHeight",N="scrollWidth")),_=_,s===I||(s===O||s===D)&&r===Tt){m=V;var M=p&&_===y&&y.visualViewport?y.visualViewport.height:_[C];g-=M-o.height,g*=a?1:-1}if(s===O||(s===I||s===V)&&r===Tt){P=D;var L=p&&_===y&&y.visualViewport?y.visualViewport.width:_[N];u-=L-o.width,u*=a?1:-1}}var q=Object.assign({position:l},c&&ps),tt=d===!0?us({x:u,y:g},A(i)):{x:u,y:g};if(u=tt.x,g=tt.y,a){var W;return Object.assign({},q,(W={},W[m]=E?"0":"",W[P]=w?"0":"",W.transform=(y.devicePixelRatio||1)<=1?"translate("+u+"px, "+g+"px)":"translate3d("+u+"px, "+g+"px, 0)",W))}return Object.assign({},q,(t={},t[m]=E?g+"px":"",t[P]=w?u+"px":"",t.transform="",t))}function fs(e){var t=e.state,i=e.options,o=i.gpuAcceleration,s=o===void 0?!0:o,r=i.adaptive,n=r===void 0?!0:r,l=i.roundOffsets,a=l===void 0?!0:l,c={placement:k(t.placement),variation:J(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,oo(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,oo(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var so={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fs,data:{}};var Re={passive:!0};function ms(e){var t=e.state,i=e.instance,o=e.options,s=o.scroll,r=s===void 0?!0:s,n=o.resize,l=n===void 0?!0:n,a=A(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",i.update,Re)}),l&&a.addEventListener("resize",i.update,Re),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",i.update,Re)}),l&&a.removeEventListener("resize",i.update,Re)}}var ro={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ms,data:{}};var vs={left:"right",right:"left",bottom:"top",top:"bottom"};function jt(e){return e.replace(/left|right|bottom|top/g,function(t){return vs[t]})}var gs={start:"end",end:"start"};function ke(e){return e.replace(/start|end/g,function(t){return gs[t]})}function Mt(e){var t=A(e),i=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:i,scrollTop:o}}function Rt(e){return Q(H(e)).left+Mt(e).scrollLeft}function li(e,t){var i=A(e),o=H(e),s=i.visualViewport,r=o.clientWidth,n=o.clientHeight,l=0,a=0;if(s){r=s.width,n=s.height;var c=ae();(c||!c&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}return{width:r,height:n,x:l+Rt(e),y:a}}function di(e){var t,i=H(e),o=Mt(e),s=(t=e.ownerDocument)==null?void 0:t.body,r=ot(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),n=ot(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-o.scrollLeft+Rt(e),a=-o.scrollTop;return K(s||i).direction==="rtl"&&(l+=ot(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:n,x:l,y:a}}function kt(e){var t=K(e),i=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+o)}function Ne(e){return["html","body","#document"].indexOf(R(e))>=0?e.ownerDocument.body:B(e)&&kt(e)?e:Ne(ut(e))}function bt(e,t){var i;t===void 0&&(t=[]);var o=Ne(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),r=A(o),n=s?[r].concat(r.visualViewport||[],kt(o)?o:[]):o,l=t.concat(n);return s?l:l.concat(bt(ut(n)))}function Kt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bs(e,t){var i=Q(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 no(e,t,i){return t===Be?Kt(li(e,i)):Y(t)?bs(t,i):Kt(di(H(e)))}function xs(e){var t=bt(ut(e)),i=["absolute","fixed"].indexOf(K(e).position)>=0,o=i&&B(e)?st(e):e;return Y(o)?t.filter(function(s){return Y(s)&&le(s,o)&&R(s)!=="body"}):[]}function ci(e,t,i,o){var s=t==="clippingParents"?xs(e):[].concat(t),r=[].concat(s,[i]),n=r[0],l=r.reduce(function(a,c){var d=no(e,c,o);return a.top=ot(d.top,a.top),a.right=Dt(d.right,a.right),a.bottom=Dt(d.bottom,a.bottom),a.left=ot(d.left,a.left),a},no(e,n,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function pe(e){var t=e.reference,i=e.element,o=e.placement,s=o?k(o):null,r=o?J(o):null,n=t.x+t.width/2-i.width/2,l=t.y+t.height/2-i.height/2,a;switch(s){case I:a={x:n,y:t.y-i.height};break;case V:a={x:n,y:t.y+t.height};break;case D:a={x:t.x+t.width,y:l};break;case O:a={x:t.x-i.width,y:l};break;default:a={x:t.x,y:t.y}}var c=s?Vt(s):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case ht:a[c]=a[c]-(t[d]/2-i[d]/2);break;case Tt:a[c]=a[c]+(t[d]/2-i[d]/2);break;default:}}return a}function rt(e,t){t===void 0&&(t={});var i=t,o=i.placement,s=o===void 0?e.placement:o,r=i.strategy,n=r===void 0?e.strategy:r,l=i.boundary,a=l===void 0?Yi:l,c=i.rootBoundary,d=c===void 0?Be:c,p=i.elementContext,f=p===void 0?qt:p,u=i.altBoundary,b=u===void 0?!1:u,g=i.padding,v=g===void 0?0:g,w=ce(typeof v!="number"?v:he(v,gt)),E=f===qt?Qi:qt,P=e.rects.popper,m=e.elements[b?E:f],y=ci(Y(m)?m:m.contextElement||H(e.elements.popper),a,d,n),_=Q(e.elements.reference),C=pe({reference:_,element:P,strategy:"absolute",placement:s}),N=Kt(Object.assign({},P,C)),M=f===qt?N:_,L={top:y.top-M.top+w.top,bottom:M.bottom-y.bottom+w.bottom,left:y.left-M.left+w.left,right:M.right-y.right+w.right},q=e.modifiersData.offset;if(f===qt&&q){var tt=q[s];Object.keys(L).forEach(function(W){var _t=[D,V].indexOf(W)>=0?1:-1,wt=[I,V].indexOf(W)>=0?"y":"x";L[W]+=tt[wt]*_t})}return L}function hi(e,t){t===void 0&&(t={});var i=t,o=i.placement,s=i.boundary,r=i.rootBoundary,n=i.padding,l=i.flipVariations,a=i.allowedAutoPlacements,c=a===void 0?Me:a,d=J(o),p=d?l?ni:ni.filter(function(b){return J(b)===d}):gt,f=p.filter(function(b){return c.indexOf(b)>=0});f.length===0&&(f=p);var u=f.reduce(function(b,g){return b[g]=rt(e,{placement:g,boundary:s,rootBoundary:r,padding:n})[k(g)],b},{});return Object.keys(u).sort(function(b,g){return u[b]-u[g]})}function ys(e){if(k(e)===Ve)return[];var t=jt(e);return[ke(e),t,ke(t)]}function _s(e){var t=e.state,i=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=i.mainAxis,r=s===void 0?!0:s,n=i.altAxis,l=n===void 0?!0:n,a=i.fallbackPlacements,c=i.padding,d=i.boundary,p=i.rootBoundary,f=i.altBoundary,u=i.flipVariations,b=u===void 0?!0:u,g=i.allowedAutoPlacements,v=t.options.placement,w=k(v),E=w===v,P=a||(E||!b?[jt(v)]:ys(v)),m=[v].concat(P).reduce(function(zt,vt){return zt.concat(k(vt)===Ve?hi(t,{placement:vt,boundary:d,rootBoundary:p,padding:c,flipVariations:b,allowedAutoPlacements:g}):vt)},[]),y=t.rects.reference,_=t.rects.popper,C=new Map,N=!0,M=m[0],L=0;L<m.length;L++){var q=m[L],tt=k(q),W=J(q)===ht,_t=[I,V].indexOf(tt)>=0,wt=_t?"width":"height",G=rt(t,{placement:q,boundary:d,rootBoundary:p,altBoundary:f,padding:c}),et=_t?W?D:O:W?V:I;y[wt]>_[wt]&&(et=jt(et));var xe=jt(et),At=[];if(r&&At.push(G[tt]<=0),l&&At.push(G[et]<=0,G[xe]<=0),At.every(function(zt){return zt})){M=q,N=!1;break}C.set(q,At)}if(N)for(var ye=b?3:1,je=function(vt){var Zt=m.find(function(we){var $t=C.get(we);if($t)return $t.slice(0,vt).every(function(Ke){return Ke})});if(Zt)return M=Zt,"break"},Jt=ye;Jt>0;Jt--){var _e=je(Jt);if(_e==="break")break}t.placement!==M&&(t.modifiersData[o]._skip=!0,t.placement=M,t.reset=!0)}}var ao={name:"flip",enabled:!0,phase:"main",fn:_s,requiresIfExists:["offset"],data:{_skip:!1}};function lo(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 co(e){return[I,D,V,O].some(function(t){return e[t]>=0})}function ws(e){var t=e.state,i=e.name,o=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,n=rt(t,{elementContext:"reference"}),l=rt(t,{altBoundary:!0}),a=lo(n,o),c=lo(l,s,r),d=co(a),p=co(c);t.modifiersData[i]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var ho={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ws};function As(e,t,i){var o=k(e),s=[O,I].indexOf(o)>=0?-1:1,r=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,n=r[0],l=r[1];return n=n||0,l=(l||0)*s,[O,D].indexOf(o)>=0?{x:l,y:n}:{x:n,y:l}}function $s(e){var t=e.state,i=e.options,o=e.name,s=i.offset,r=s===void 0?[0,0]:s,n=Me.reduce(function(d,p){return d[p]=As(p,t.rects,r),d},{}),l=n[t.placement],a=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=n}var po={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$s};function Cs(e){var t=e.state,i=e.name;t.modifiersData[i]=pe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var uo={name:"popperOffsets",enabled:!0,phase:"read",fn:Cs,data:{}};function pi(e){return e==="x"?"y":"x"}function Is(e){var t=e.state,i=e.options,o=e.name,s=i.mainAxis,r=s===void 0?!0:s,n=i.altAxis,l=n===void 0?!1:n,a=i.boundary,c=i.rootBoundary,d=i.altBoundary,p=i.padding,f=i.tether,u=f===void 0?!0:f,b=i.tetherOffset,g=b===void 0?0:b,v=rt(t,{boundary:a,rootBoundary:c,padding:p,altBoundary:d}),w=k(t.placement),E=J(t.placement),P=!E,m=Vt(w),y=pi(m),_=t.modifiersData.popperOffsets,C=t.rects.reference,N=t.rects.popper,M=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,L=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,tt={x:0,y:0};if(_){if(r){var W,_t=m==="y"?I:O,wt=m==="y"?V:D,G=m==="y"?"height":"width",et=_[m],xe=et+v[_t],At=et-v[wt],ye=u?-N[G]/2:0,je=E===ht?C[G]:N[G],Jt=E===ht?-N[G]:-C[G],_e=t.elements.arrow,zt=u&&_e?Lt(_e):{width:0,height:0},vt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:de(),Zt=vt[_t],we=vt[wt],$t=Bt(0,C[G],zt[G]),Ke=P?C[G]/2-ye-$t-Zt-L.mainAxis:je-$t-Zt-L.mainAxis,Io=P?-C[G]/2+ye+$t+we+L.mainAxis:Jt+$t+we+L.mainAxis,Ge=t.elements.arrow&&st(t.elements.arrow),So=Ge?m==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,Ci=(W=q?.[m])!=null?W:0,Eo=et+Ke-Ci-So,Po=et+Io-Ci,Ii=Bt(u?Dt(xe,Eo):xe,et,u?ot(At,Po):At);_[m]=Ii,tt[m]=Ii-et}if(l){var Si,Oo=m==="x"?I:O,To=m==="x"?V:D,Ct=_[y],Ae=y==="y"?"height":"width",Ei=Ct+v[Oo],Pi=Ct-v[To],Xe=[I,O].indexOf(w)!==-1,Oi=(Si=q?.[y])!=null?Si:0,Ti=Xe?Ei:Ct-C[Ae]-N[Ae]-Oi+L.altAxis,Di=Xe?Ct+C[Ae]+N[Ae]-Oi-L.altAxis:Pi,Li=u&&Xe?eo(Ti,Ct,Di):Bt(u?Ti:Ei,Ct,u?Di:Pi);_[y]=Li,tt[y]=Li-Ct}t.modifiersData[o]=tt}}var fo={name:"preventOverflow",enabled:!0,phase:"main",fn:Is,requiresIfExists:["offset"]};function ui(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fi(e){return e===A(e)||!B(e)?Mt(e):ui(e)}function Ss(e){var t=e.getBoundingClientRect(),i=pt(t.width)/e.offsetWidth||1,o=pt(t.height)/e.offsetHeight||1;return i!==1||o!==1}function mi(e,t,i){i===void 0&&(i=!1);var o=B(t),s=B(t)&&Ss(t),r=H(t),n=Q(e,s,i),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!i)&&((R(t)!=="body"||kt(r))&&(l=fi(t)),B(t)?(a=Q(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):r&&(a.x=Rt(r))),{x:n.left+l.scrollLeft-a.x,y:n.top+l.scrollTop-a.y,width:n.width,height:n.height}}function Es(e){var t=new Map,i=new Set,o=[];e.forEach(function(r){t.set(r.name,r)});function s(r){i.add(r.name);var n=[].concat(r.requires||[],r.requiresIfExists||[]);n.forEach(function(l){if(!i.has(l)){var a=t.get(l);a&&s(a)}}),o.push(r)}return e.forEach(function(r){i.has(r.name)||s(r)}),o}function vi(e){var t=Es(e);return Ji.reduce(function(i,o){return i.concat(t.filter(function(s){return s.phase===o}))},[])}function gi(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function bi(e){var t=e.reduce(function(i,o){var s=i[o.name];return i[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,i},{});return Object.keys(t).map(function(i){return t[i]})}var mo={placement:"bottom",modifiers:[],strategy:"absolute"};function vo(){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 go(e){e===void 0&&(e={});var t=e,i=t.defaultModifiers,o=i===void 0?[]:i,s=t.defaultOptions,r=s===void 0?mo:s;return function(l,a,c){c===void 0&&(c=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},mo,r),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},p=[],f=!1,u={state:d,setOptions:function(w){var E=typeof w=="function"?w(d.options):w;g(),d.options=Object.assign({},r,d.options,E),d.scrollParents={reference:Y(l)?bt(l):l.contextElement?bt(l.contextElement):[],popper:bt(a)};var P=vi(bi([].concat(o,d.options.modifiers)));return d.orderedModifiers=P.filter(function(m){return m.enabled}),b(),u.update()},forceUpdate:function(){if(!f){var w=d.elements,E=w.reference,P=w.popper;if(vo(E,P)){d.rects={reference:mi(E,st(P),d.options.strategy==="fixed"),popper:Lt(P)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var m=0;m<d.orderedModifiers.length;m++){if(d.reset===!0){d.reset=!1,m=-1;continue}var y=d.orderedModifiers[m],_=y.fn,C=y.options,N=C===void 0?{}:C,M=y.name;typeof _=="function"&&(d=_({state:d,options:N,name:M,instance:u})||d)}}}},update:gi(function(){return new Promise(function(v){u.forceUpdate(),v(d)})}),destroy:function(){g(),f=!0}};if(!vo(l,a))return u;u.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function b(){d.orderedModifiers.forEach(function(v){var w=v.name,E=v.options,P=E===void 0?{}:E,m=v.effect;if(typeof m=="function"){var y=m({state:d,name:w,instance:u,options:P}),_=function(){};p.push(y||_)}})}function g(){p.forEach(function(v){return v()}),p=[]}return u}}var Ps=[ro,uo,so,Zi,po,ao,fo,io,ho],xi=go({defaultModifiers:Ps});var z=e=>e??x;var Os=":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}",Ts="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",Ds="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",Ls="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",Vs=Object.defineProperty,_i=(e,t,i,o)=>{for(var s=void 0,r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,i,s)||s);return s&&Vs(t,i,s),s},Gt,ue=(Gt=class extends j{static parseLevel(e){if(e){let t=Object.keys(fe).find(i=>i.toLowerCase()===e.toLowerCase());return t&&fe[t]}}static get styles(){return[it`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),zi=/'/g,Fi=/"/g,Wi=/^(?:script|style|textarea|title)$/i,si=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),T=si(1),ar=si(2),lr=si(3),ct=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),qi=new WeakMap,St=Et.createTreeWalker(Et,129);function ji(e,t){if(!oi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ki!==void 0?ki.createHTML(t):t}var Ki=(e,t)=>{let i=e.length-1,o=[],s,r=t===2?"<svg>":t===3?"<math>":"",n=oe;for(let l=0;l<i;l++){let a=e[l],c,d,p=-1,f=0;for(;f<a.length&&(n.lastIndex=f,d=n.exec(a),d!==null);)f=n.lastIndex,n===oe?d[1]==="!--"?n=Ni:d[1]!==void 0?n=Hi:d[2]!==void 0?(Wi.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=It):d[3]!==void 0&&(n=It):n===It?d[0]===">"?(n=s??oe,p=-1):d[1]===void 0?p=-2:(p=n.lastIndex-d[2].length,c=d[1],n=d[3]===void 0?It:d[3]==='"'?Fi:zi):n===Fi||n===zi?n=It:n===Ni||n===Hi?n=oe:(n=It,s=void 0);let u=n===It&&e[l+1].startsWith("/>")?" ":"";r+=n===oe?a+jo:p>=0?(o.push(c),a.slice(0,p)+ei+a.slice(p)+dt+u):a+dt+(p===-2?l:u)}return[ji(e,r+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},ne=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let r=0,n=0,l=t.length-1,a=this.parts,[c,d]=Ki(t,i);if(this.el=e.createElement(c,o),St.currentNode=this.el.content,i===2||i===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=St.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(ei)){let f=d[n++],u=s.getAttribute(p).split(dt),b=/([.?@])?(.*)/.exec(f);a.push({type:1,index:r,name:b[2],strings:u,ctor:b[1]==="."?Oe:b[1]==="?"?Te:b[1]==="@"?De:Ot}),s.removeAttribute(p)}else p.startsWith(dt)&&(a.push({type:6,index:r}),s.removeAttribute(p));if(Wi.test(s.tagName)){let p=s.textContent.split(dt),f=p.length-1;if(f>0){s.textContent=Ee?Ee.emptyScript:"";for(let u=0;u<f;u++)s.append(p[u],se()),St.nextNode(),a.push({type:2,index:++r});s.append(p[f],se())}}}else if(s.nodeType===8)if(s.data===ii)a.push({type:2,index:r});else{let p=-1;for(;(p=s.data.indexOf(dt,p+1))!==-1;)a.push({type:7,index:r}),p+=dt.length-1}r++}}static createElement(t,i){let o=Et.createElement("template");return o.innerHTML=t,o}};function Pt(e,t,i=e,o){if(t===ct)return t;let s=o!==void 0?i._$Co?.[o]:i._$Cl,r=re(t)?void 0:t._$litDirective$;return s?.constructor!==r&&(s?._$AO?.(!1),r===void 0?s=void 0:(s=new r(e),s._$AT(e,i,o)),o!==void 0?(i._$Co??=[])[o]=s:i._$Cl=s),s!==void 0&&(t=Pt(e,s._$AS(e,t.values),s,o)),t}var Pe=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){let{el:{content:i},parts:o}=this._$AD,s=(t?.creationScope??Et).importNode(i,!0);St.currentNode=s;let r=St.nextNode(),n=0,l=0,a=o[0];for(;a!==void 0;){if(n===a.index){let c;a.type===2?c=new Ft(r,r.nextSibling,this,t):a.type===1?c=new a.ctor(r,a.name,a.strings,this,t):a.type===6&&(c=new Le(r,this,t)),this._$AV.push(c),a=o[++l]}n!==a?.index&&(r=St.nextNode(),n++)}return St.currentNode=Et,s}p(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++}},Ft=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,o,s){this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}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=Pt(this,t,i),re(t)?t===x||t==null||t===""?(this._$AH!==x&&this._$AR(),this._$AH=x):t!==this._$AH&&t!==ct&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ui(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==x&&re(this._$AH)?this._$AA.nextSibling.data=t:this.T(Et.createTextNode(t)),this._$AH=t}$(t){let{values:i,_$litType$:o}=t,s=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=ne.createElement(ji(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(i);else{let r=new Pe(s,this),n=r.u(this.options);r.p(i),this.T(n),this._$AH=r}}_$AC(t){let i=qi.get(t.strings);return i===void 0&&qi.set(t.strings,i=new ne(t)),i}k(t){oi(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,o,s=0;for(let r of t)s===i.length?i.push(o=new e(this.O(se()),this.O(se()),this,this.options)):o=i[s],o._$AI(r),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ot=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,o,s,r){this.type=1,this._$AH=x,this._$AN=void 0,this.element=t,this.name=i,this._$AM=s,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=x}_$AI(t,i=this,o,s){let r=this.strings,n=!1;if(r===void 0)t=Pt(this,t,i,0),n=!re(t)||t!==this._$AH&&t!==ct,n&&(this._$AH=t);else{let l=t,a,c;for(t=r[0],a=0;a<r.length-1;a++)c=Pt(this,l[o+a],i,a),c===ct&&(c=this._$AH[a]),n||=!re(c)||c!==this._$AH[a],c===x?t=x:t!==x&&(t+=(c??"")+r[a+1]),this._$AH[a]=c}n&&!s&&this.j(t)}j(t){t===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Oe=class extends Ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===x?void 0:t}},Te=class extends Ot{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==x)}},De=class extends Ot{constructor(t,i,o,s,r){super(t,i,o,s,r),this.type=5}_$AI(t,i=this){if((t=Pt(this,t,i,0)??x)===ct)return;let o=this._$AH,s=t===x&&o!==x||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==x&&(o===x||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Le=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){Pt(this,t)}},Gi={M:ei,P:dt,A:ii,C:1,L:Ki,R:Pe,D:Ui,V:Pt,I:Ft,H:Ot,N:Te,U:De,B:Oe,F:Le},Ko=ti.litHtmlPolyfillSupport;Ko?.(ne,Ft),(ti.litHtmlVersions??=[]).push("3.3.1");var Xi=(e,t,i)=>{let o=i?.renderBefore??t,s=o._$litPart$;if(s===void 0){let r=i?.renderBefore??null;o._$litPart$=s=new Ft(t.insertBefore(se(),r),r,void 0,i??{})}return s._$AI(e),s};var ri=globalThis,j=class extends lt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Xi(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ct}};j._$litElement$=!0,j.finalized=!0,ri.litElementHydrateSupport?.({LitElement:j});var Go=ri.litElementPolyfillSupport;Go?.({LitElement:j});(ri.litElementVersions??=[]).push("4.2.1");var Xo={attribute:!0,type:String,converter:ie,reflect:!1,hasChanged:Se},Yo=(e=Xo,t,i)=>{let{kind:o,metadata:s}=i,r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),o==="setter"&&((e=Object.create(e)).wrapped=!0),r.set(i.name,e),o==="accessor"){let{name:n}=i;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,a,e)},init(l){return l!==void 0&&this.C(n,void 0,e,l),l}}}if(o==="setter"){let{name:n}=i;return function(l){let a=this[n];t.call(this,l),this.requestUpdate(n,a,e)}}throw Error("Unsupported decorator location: "+o)};function h(e){return(t,i)=>typeof i=="object"?Yo(e,t,i):((o,s,r)=>{let n=s.hasOwnProperty(r);return s.constructor.createProperty(r,o),n?Object.getOwnPropertyDescriptor(s,r):void 0})(e,t,i)}var I="top",V="bottom",D="right",O="left",Ve="auto",gt=[I,V,D,O],ht="start",Tt="end",Yi="clippingParents",Be="viewport",qt="popper",Qi="reference",ni=gt.reduce(function(e,t){return e.concat([t+"-"+ht,t+"-"+Tt])},[]),Re=[].concat(gt,[Ve]).reduce(function(e,t){return e.concat([t,t+"-"+ht,t+"-"+Tt])},[]),Qo="beforeRead",Jo="read",Zo="afterRead",ts="beforeMain",es="main",is="afterMain",os="beforeWrite",ss="write",rs="afterWrite",Ji=[Qo,Jo,Zo,ts,es,is,os,ss,rs];function M(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 B(e){var t=A(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ut(e){if(typeof ShadowRoot>"u")return!1;var t=A(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ns(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var o=t.styles[i]||{},s=t.attributes[i]||{},r=t.elements[i];!B(r)||!M(r)||(Object.assign(r.style,o),Object.keys(s).forEach(function(n){var l=s[n];l===!1?r.removeAttribute(n):r.setAttribute(n,l===!0?"":l)}))})}function as(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 s=t.elements[o],r=t.attributes[o]||{},n=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:i[o]),l=n.reduce(function(a,c){return a[c]="",a},{});!B(s)||!M(s)||(Object.assign(s.style,l),Object.keys(r).forEach(function(a){s.removeAttribute(a)}))})}}var Zi={name:"applyStyles",enabled:!0,phase:"write",fn:ns,effect:as,requires:["computeStyles"]};function k(e){return e.split("-")[0]}var ot=Math.max,Dt=Math.min,pt=Math.round;function Wt(){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 ae(){return!/^((?!chrome|android).)*safari/i.test(Wt())}function Q(e,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var o=e.getBoundingClientRect(),s=1,r=1;t&&B(e)&&(s=e.offsetWidth>0&&pt(o.width)/e.offsetWidth||1,r=e.offsetHeight>0&&pt(o.height)/e.offsetHeight||1);var n=Y(e)?A(e):window,l=n.visualViewport,a=!ae()&&i,c=(o.left+(a&&l?l.offsetLeft:0))/s,d=(o.top+(a&&l?l.offsetTop:0))/r,p=o.width/s,f=o.height/r;return{width:p,height:f,top:d,right:c+p,bottom:d+f,left:c,x:c,y:d}}function Lt(e){var t=Q(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 le(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Ut(i)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function K(e){return A(e).getComputedStyle(e)}function ai(e){return["table","td","th"].indexOf(M(e))>=0}function H(e){return((Y(e)?e.ownerDocument:e.document)||window.document).documentElement}function ut(e){return M(e)==="html"?e:e.assignedSlot||e.parentNode||(Ut(e)?e.host:null)||H(e)}function to(e){return!B(e)||K(e).position==="fixed"?null:e.offsetParent}function ls(e){var t=/firefox/i.test(Wt()),i=/Trident/i.test(Wt());if(i&&B(e)){var o=K(e);if(o.position==="fixed")return null}var s=ut(e);for(Ut(s)&&(s=s.host);B(s)&&["html","body"].indexOf(M(s))<0;){var r=K(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function st(e){for(var t=A(e),i=to(e);i&&ai(i)&&K(i).position==="static";)i=to(i);return i&&(M(i)==="html"||M(i)==="body"&&K(i).position==="static")?t:i||ls(e)||t}function Vt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bt(e,t,i){return ot(e,Dt(t,i))}function eo(e,t,i){var o=Bt(e,t,i);return o>i?i:o}function de(){return{top:0,right:0,bottom:0,left:0}}function ce(e){return Object.assign({},de(),e)}function he(e,t){return t.reduce(function(i,o){return i[o]=e,i},{})}var ds=function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,ce(typeof t!="number"?t:he(t,gt))};function cs(e){var t,i=e.state,o=e.name,s=e.options,r=i.elements.arrow,n=i.modifiersData.popperOffsets,l=k(i.placement),a=Vt(l),c=[O,D].indexOf(l)>=0,d=c?"height":"width";if(!(!r||!n)){var p=ds(s.padding,i),f=Lt(r),u=a==="y"?I:O,b=a==="y"?V:D,g=i.rects.reference[d]+i.rects.reference[a]-n[a]-i.rects.popper[d],v=n[a]-i.rects.reference[a],w=st(r),E=w?a==="y"?w.clientHeight||0:w.clientWidth||0:0,P=g/2-v/2,m=p[u],y=E-f[d]-p[b],_=E/2-f[d]/2+P,C=Bt(m,_,y),N=a;i.modifiersData[o]=(t={},t[N]=C,t.centerOffset=C-_,t)}}function hs(e){var t=e.state,i=e.options,o=i.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||le(t.elements.popper,s)&&(t.elements.arrow=s))}var io={name:"arrow",enabled:!0,phase:"main",fn:cs,effect:hs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function J(e){return e.split("-")[1]}var ps={top:"auto",right:"auto",bottom:"auto",left:"auto"};function us(e,t){var i=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:pt(i*s)/s||0,y:pt(o*s)/s||0}}function oo(e){var t,i=e.popper,o=e.popperRect,s=e.placement,r=e.variation,n=e.offsets,l=e.position,a=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,f=n.x,u=f===void 0?0:f,b=n.y,g=b===void 0?0:b,v=typeof d=="function"?d({x:u,y:g}):{x:u,y:g};u=v.x,g=v.y;var w=n.hasOwnProperty("x"),E=n.hasOwnProperty("y"),P=O,m=I,y=window;if(c){var _=st(i),C="clientHeight",N="clientWidth";if(_===A(i)&&(_=H(i),K(_).position!=="static"&&l==="absolute"&&(C="scrollHeight",N="scrollWidth")),_=_,s===I||(s===O||s===D)&&r===Tt){m=V;var R=p&&_===y&&y.visualViewport?y.visualViewport.height:_[C];g-=R-o.height,g*=a?1:-1}if(s===O||(s===I||s===V)&&r===Tt){P=D;var L=p&&_===y&&y.visualViewport?y.visualViewport.width:_[N];u-=L-o.width,u*=a?1:-1}}var q=Object.assign({position:l},c&&ps),tt=d===!0?us({x:u,y:g},A(i)):{x:u,y:g};if(u=tt.x,g=tt.y,a){var W;return Object.assign({},q,(W={},W[m]=E?"0":"",W[P]=w?"0":"",W.transform=(y.devicePixelRatio||1)<=1?"translate("+u+"px, "+g+"px)":"translate3d("+u+"px, "+g+"px, 0)",W))}return Object.assign({},q,(t={},t[m]=E?g+"px":"",t[P]=w?u+"px":"",t.transform="",t))}function fs(e){var t=e.state,i=e.options,o=i.gpuAcceleration,s=o===void 0?!0:o,r=i.adaptive,n=r===void 0?!0:r,l=i.roundOffsets,a=l===void 0?!0:l,c={placement:k(t.placement),variation:J(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,oo(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,oo(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var so={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fs,data:{}};var Me={passive:!0};function ms(e){var t=e.state,i=e.instance,o=e.options,s=o.scroll,r=s===void 0?!0:s,n=o.resize,l=n===void 0?!0:n,a=A(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",i.update,Me)}),l&&a.addEventListener("resize",i.update,Me),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",i.update,Me)}),l&&a.removeEventListener("resize",i.update,Me)}}var ro={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ms,data:{}};var vs={left:"right",right:"left",bottom:"top",top:"bottom"};function jt(e){return e.replace(/left|right|bottom|top/g,function(t){return vs[t]})}var gs={start:"end",end:"start"};function ke(e){return e.replace(/start|end/g,function(t){return gs[t]})}function Rt(e){var t=A(e),i=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:i,scrollTop:o}}function Mt(e){return Q(H(e)).left+Rt(e).scrollLeft}function li(e,t){var i=A(e),o=H(e),s=i.visualViewport,r=o.clientWidth,n=o.clientHeight,l=0,a=0;if(s){r=s.width,n=s.height;var c=ae();(c||!c&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}return{width:r,height:n,x:l+Mt(e),y:a}}function di(e){var t,i=H(e),o=Rt(e),s=(t=e.ownerDocument)==null?void 0:t.body,r=ot(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),n=ot(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-o.scrollLeft+Mt(e),a=-o.scrollTop;return K(s||i).direction==="rtl"&&(l+=ot(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:n,x:l,y:a}}function kt(e){var t=K(e),i=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+o)}function Ne(e){return["html","body","#document"].indexOf(M(e))>=0?e.ownerDocument.body:B(e)&&kt(e)?e:Ne(ut(e))}function bt(e,t){var i;t===void 0&&(t=[]);var o=Ne(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),r=A(o),n=s?[r].concat(r.visualViewport||[],kt(o)?o:[]):o,l=t.concat(n);return s?l:l.concat(bt(ut(n)))}function Kt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bs(e,t){var i=Q(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 no(e,t,i){return t===Be?Kt(li(e,i)):Y(t)?bs(t,i):Kt(di(H(e)))}function xs(e){var t=bt(ut(e)),i=["absolute","fixed"].indexOf(K(e).position)>=0,o=i&&B(e)?st(e):e;return Y(o)?t.filter(function(s){return Y(s)&&le(s,o)&&M(s)!=="body"}):[]}function ci(e,t,i,o){var s=t==="clippingParents"?xs(e):[].concat(t),r=[].concat(s,[i]),n=r[0],l=r.reduce(function(a,c){var d=no(e,c,o);return a.top=ot(d.top,a.top),a.right=Dt(d.right,a.right),a.bottom=Dt(d.bottom,a.bottom),a.left=ot(d.left,a.left),a},no(e,n,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function pe(e){var t=e.reference,i=e.element,o=e.placement,s=o?k(o):null,r=o?J(o):null,n=t.x+t.width/2-i.width/2,l=t.y+t.height/2-i.height/2,a;switch(s){case I:a={x:n,y:t.y-i.height};break;case V:a={x:n,y:t.y+t.height};break;case D:a={x:t.x+t.width,y:l};break;case O:a={x:t.x-i.width,y:l};break;default:a={x:t.x,y:t.y}}var c=s?Vt(s):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case ht:a[c]=a[c]-(t[d]/2-i[d]/2);break;case Tt:a[c]=a[c]+(t[d]/2-i[d]/2);break;default:}}return a}function rt(e,t){t===void 0&&(t={});var i=t,o=i.placement,s=o===void 0?e.placement:o,r=i.strategy,n=r===void 0?e.strategy:r,l=i.boundary,a=l===void 0?Yi:l,c=i.rootBoundary,d=c===void 0?Be:c,p=i.elementContext,f=p===void 0?qt:p,u=i.altBoundary,b=u===void 0?!1:u,g=i.padding,v=g===void 0?0:g,w=ce(typeof v!="number"?v:he(v,gt)),E=f===qt?Qi:qt,P=e.rects.popper,m=e.elements[b?E:f],y=ci(Y(m)?m:m.contextElement||H(e.elements.popper),a,d,n),_=Q(e.elements.reference),C=pe({reference:_,element:P,strategy:"absolute",placement:s}),N=Kt(Object.assign({},P,C)),R=f===qt?N:_,L={top:y.top-R.top+w.top,bottom:R.bottom-y.bottom+w.bottom,left:y.left-R.left+w.left,right:R.right-y.right+w.right},q=e.modifiersData.offset;if(f===qt&&q){var tt=q[s];Object.keys(L).forEach(function(W){var _t=[D,V].indexOf(W)>=0?1:-1,wt=[I,V].indexOf(W)>=0?"y":"x";L[W]+=tt[wt]*_t})}return L}function hi(e,t){t===void 0&&(t={});var i=t,o=i.placement,s=i.boundary,r=i.rootBoundary,n=i.padding,l=i.flipVariations,a=i.allowedAutoPlacements,c=a===void 0?Re:a,d=J(o),p=d?l?ni:ni.filter(function(b){return J(b)===d}):gt,f=p.filter(function(b){return c.indexOf(b)>=0});f.length===0&&(f=p);var u=f.reduce(function(b,g){return b[g]=rt(e,{placement:g,boundary:s,rootBoundary:r,padding:n})[k(g)],b},{});return Object.keys(u).sort(function(b,g){return u[b]-u[g]})}function ys(e){if(k(e)===Ve)return[];var t=jt(e);return[ke(e),t,ke(t)]}function _s(e){var t=e.state,i=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=i.mainAxis,r=s===void 0?!0:s,n=i.altAxis,l=n===void 0?!0:n,a=i.fallbackPlacements,c=i.padding,d=i.boundary,p=i.rootBoundary,f=i.altBoundary,u=i.flipVariations,b=u===void 0?!0:u,g=i.allowedAutoPlacements,v=t.options.placement,w=k(v),E=w===v,P=a||(E||!b?[jt(v)]:ys(v)),m=[v].concat(P).reduce(function(zt,vt){return zt.concat(k(vt)===Ve?hi(t,{placement:vt,boundary:d,rootBoundary:p,padding:c,flipVariations:b,allowedAutoPlacements:g}):vt)},[]),y=t.rects.reference,_=t.rects.popper,C=new Map,N=!0,R=m[0],L=0;L<m.length;L++){var q=m[L],tt=k(q),W=J(q)===ht,_t=[I,V].indexOf(tt)>=0,wt=_t?"width":"height",G=rt(t,{placement:q,boundary:d,rootBoundary:p,altBoundary:f,padding:c}),et=_t?W?D:O:W?V:I;y[wt]>_[wt]&&(et=jt(et));var xe=jt(et),At=[];if(r&&At.push(G[tt]<=0),l&&At.push(G[et]<=0,G[xe]<=0),At.every(function(zt){return zt})){R=q,N=!1;break}C.set(q,At)}if(N)for(var ye=b?3:1,je=function(vt){var Zt=m.find(function(we){var $t=C.get(we);if($t)return $t.slice(0,vt).every(function(Ke){return Ke})});if(Zt)return R=Zt,"break"},Jt=ye;Jt>0;Jt--){var _e=je(Jt);if(_e==="break")break}t.placement!==R&&(t.modifiersData[o]._skip=!0,t.placement=R,t.reset=!0)}}var ao={name:"flip",enabled:!0,phase:"main",fn:_s,requiresIfExists:["offset"],data:{_skip:!1}};function lo(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 co(e){return[I,D,V,O].some(function(t){return e[t]>=0})}function ws(e){var t=e.state,i=e.name,o=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,n=rt(t,{elementContext:"reference"}),l=rt(t,{altBoundary:!0}),a=lo(n,o),c=lo(l,s,r),d=co(a),p=co(c);t.modifiersData[i]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var ho={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ws};function As(e,t,i){var o=k(e),s=[O,I].indexOf(o)>=0?-1:1,r=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,n=r[0],l=r[1];return n=n||0,l=(l||0)*s,[O,D].indexOf(o)>=0?{x:l,y:n}:{x:n,y:l}}function $s(e){var t=e.state,i=e.options,o=e.name,s=i.offset,r=s===void 0?[0,0]:s,n=Re.reduce(function(d,p){return d[p]=As(p,t.rects,r),d},{}),l=n[t.placement],a=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=n}var po={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$s};function Cs(e){var t=e.state,i=e.name;t.modifiersData[i]=pe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var uo={name:"popperOffsets",enabled:!0,phase:"read",fn:Cs,data:{}};function pi(e){return e==="x"?"y":"x"}function Is(e){var t=e.state,i=e.options,o=e.name,s=i.mainAxis,r=s===void 0?!0:s,n=i.altAxis,l=n===void 0?!1:n,a=i.boundary,c=i.rootBoundary,d=i.altBoundary,p=i.padding,f=i.tether,u=f===void 0?!0:f,b=i.tetherOffset,g=b===void 0?0:b,v=rt(t,{boundary:a,rootBoundary:c,padding:p,altBoundary:d}),w=k(t.placement),E=J(t.placement),P=!E,m=Vt(w),y=pi(m),_=t.modifiersData.popperOffsets,C=t.rects.reference,N=t.rects.popper,R=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,L=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,tt={x:0,y:0};if(_){if(r){var W,_t=m==="y"?I:O,wt=m==="y"?V:D,G=m==="y"?"height":"width",et=_[m],xe=et+v[_t],At=et-v[wt],ye=u?-N[G]/2:0,je=E===ht?C[G]:N[G],Jt=E===ht?-N[G]:-C[G],_e=t.elements.arrow,zt=u&&_e?Lt(_e):{width:0,height:0},vt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:de(),Zt=vt[_t],we=vt[wt],$t=Bt(0,C[G],zt[G]),Ke=P?C[G]/2-ye-$t-Zt-L.mainAxis:je-$t-Zt-L.mainAxis,Io=P?-C[G]/2+ye+$t+we+L.mainAxis:Jt+$t+we+L.mainAxis,Ge=t.elements.arrow&&st(t.elements.arrow),So=Ge?m==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,Ci=(W=q?.[m])!=null?W:0,Eo=et+Ke-Ci-So,Po=et+Io-Ci,Ii=Bt(u?Dt(xe,Eo):xe,et,u?ot(At,Po):At);_[m]=Ii,tt[m]=Ii-et}if(l){var Si,Oo=m==="x"?I:O,To=m==="x"?V:D,Ct=_[y],Ae=y==="y"?"height":"width",Ei=Ct+v[Oo],Pi=Ct-v[To],Xe=[I,O].indexOf(w)!==-1,Oi=(Si=q?.[y])!=null?Si:0,Ti=Xe?Ei:Ct-C[Ae]-N[Ae]-Oi+L.altAxis,Di=Xe?Ct+C[Ae]+N[Ae]-Oi-L.altAxis:Pi,Li=u&&Xe?eo(Ti,Ct,Di):Bt(u?Ti:Ei,Ct,u?Di:Pi);_[y]=Li,tt[y]=Li-Ct}t.modifiersData[o]=tt}}var fo={name:"preventOverflow",enabled:!0,phase:"main",fn:Is,requiresIfExists:["offset"]};function ui(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fi(e){return e===A(e)||!B(e)?Rt(e):ui(e)}function Ss(e){var t=e.getBoundingClientRect(),i=pt(t.width)/e.offsetWidth||1,o=pt(t.height)/e.offsetHeight||1;return i!==1||o!==1}function mi(e,t,i){i===void 0&&(i=!1);var o=B(t),s=B(t)&&Ss(t),r=H(t),n=Q(e,s,i),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!i)&&((M(t)!=="body"||kt(r))&&(l=fi(t)),B(t)?(a=Q(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):r&&(a.x=Mt(r))),{x:n.left+l.scrollLeft-a.x,y:n.top+l.scrollTop-a.y,width:n.width,height:n.height}}function Es(e){var t=new Map,i=new Set,o=[];e.forEach(function(r){t.set(r.name,r)});function s(r){i.add(r.name);var n=[].concat(r.requires||[],r.requiresIfExists||[]);n.forEach(function(l){if(!i.has(l)){var a=t.get(l);a&&s(a)}}),o.push(r)}return e.forEach(function(r){i.has(r.name)||s(r)}),o}function vi(e){var t=Es(e);return Ji.reduce(function(i,o){return i.concat(t.filter(function(s){return s.phase===o}))},[])}function gi(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function bi(e){var t=e.reduce(function(i,o){var s=i[o.name];return i[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,i},{});return Object.keys(t).map(function(i){return t[i]})}var mo={placement:"bottom",modifiers:[],strategy:"absolute"};function vo(){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 go(e){e===void 0&&(e={});var t=e,i=t.defaultModifiers,o=i===void 0?[]:i,s=t.defaultOptions,r=s===void 0?mo:s;return function(l,a,c){c===void 0&&(c=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},mo,r),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},p=[],f=!1,u={state:d,setOptions:function(w){var E=typeof w=="function"?w(d.options):w;g(),d.options=Object.assign({},r,d.options,E),d.scrollParents={reference:Y(l)?bt(l):l.contextElement?bt(l.contextElement):[],popper:bt(a)};var P=vi(bi([].concat(o,d.options.modifiers)));return d.orderedModifiers=P.filter(function(m){return m.enabled}),b(),u.update()},forceUpdate:function(){if(!f){var w=d.elements,E=w.reference,P=w.popper;if(vo(E,P)){d.rects={reference:mi(E,st(P),d.options.strategy==="fixed"),popper:Lt(P)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var m=0;m<d.orderedModifiers.length;m++){if(d.reset===!0){d.reset=!1,m=-1;continue}var y=d.orderedModifiers[m],_=y.fn,C=y.options,N=C===void 0?{}:C,R=y.name;typeof _=="function"&&(d=_({state:d,options:N,name:R,instance:u})||d)}}}},update:gi(function(){return new Promise(function(v){u.forceUpdate(),v(d)})}),destroy:function(){g(),f=!0}};if(!vo(l,a))return u;u.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function b(){d.orderedModifiers.forEach(function(v){var w=v.name,E=v.options,P=E===void 0?{}:E,m=v.effect;if(typeof m=="function"){var y=m({state:d,name:w,instance:u,options:P}),_=function(){};p.push(y||_)}})}function g(){p.forEach(function(v){return v()}),p=[]}return u}}var Ps=[ro,uo,so,Zi,po,ao,fo,io,ho],xi=go({defaultModifiers:Ps});var z=e=>e??x;var Os=":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}",Ts="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",Ds="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",Ls="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",Vs=Object.defineProperty,_i=(e,t,i,o)=>{for(var s=void 0,r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,i,s)||s);return s&&Vs(t,i,s),s},Gt,ue=(Gt=class extends j{static parseLevel(e){if(e){let t=Object.keys(fe).find(i=>i.toLowerCase()===e.toLowerCase());return t&&fe[t]}}static get styles(){return[it`
|
|
4
4
|
${X(Os)}
|
|
5
|
-
`]}render(){return T`${this.iconToUse&&T`<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(Gt.parseLevel(this.level)){case"warn":return Ls;case"suggest":return Ds;case"error":return Ts;default:return null}}},Gt.ID="sd-field-validation-message",Gt.levelConverter={fromAttribute(e){return Gt.parseLevel(e)},toAttribute(e){return e&&e.toLowerCase()}},Gt);_i([h({type:String,attribute:!0})],ue.prototype,"message");_i([h({type:String,attribute:!0})],ue.prototype,"icon");_i([h({converter:ue.levelConverter,reflect:!0})],ue.prototype,"level");var yi=ue,fe=(e=>(e.Warn="warn",e.Suggest="suggest",e.Error="error",e))(fe||{});customElements.get(yi.ID)||customElements.define(yi.ID,yi);var Bs=":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,:host(:not([effective-disabled]):invalid) .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,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, 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{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset: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;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}",
|
|
5
|
+
`]}render(){return T`${this.iconToUse&&T`<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(Gt.parseLevel(this.level)){case"warn":return Ls;case"suggest":return Ds;case"error":return Ts;default:return null}}},Gt.ID="sd-field-validation-message",Gt.levelConverter={fromAttribute(e){return Gt.parseLevel(e)},toAttribute(e){return e&&e.toLowerCase()}},Gt);_i([h({type:String,attribute:!0})],ue.prototype,"message");_i([h({type:String,attribute:!0})],ue.prototype,"icon");_i([h({converter:ue.levelConverter,reflect:!0})],ue.prototype,"level");var yi=ue,fe=(e=>(e.Warn="warn",e.Suggest="suggest",e.Error="error",e))(fe||{});customElements.get(yi.ID)||customElements.define(yi.ID,yi);var Bs=":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,:host(:not([effective-disabled]):invalid) .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,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, 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{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset: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;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}",Rs=Object.defineProperty,S=(e,t,i,o)=>{for(var s=void 0,r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,i,s)||s);return s&&Rs(t,i,s),s},Ms="sd-lit-input",bo="delegatesFocus"in window.ShadowRoot.prototype,ks=0,nt,$=(nt=class extends j{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let e=ks++;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.updateFormValidity(),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(),bo||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",t=>{t.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",t=>{this.rows==1&&t.key=="Enter"&&this._internals?.form?.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[it`
|
|
6
6
|
${X(Bs)}
|
|
7
7
|
`]}render(){let e,t=this.validationMessage||this.inputElement?.validationMessage,i=t||this.validationLevel!=null;return this.rows===1?e=T`
|
|
8
8
|
<input
|
|
@@ -71,7 +71,7 @@ var window;(window||={})["@cas-smartdesign/combo-box"]=(()=>{var Ye=Object.defin
|
|
|
71
71
|
</sd-field-validation-message>
|
|
72
72
|
`}
|
|
73
73
|
</div>
|
|
74
|
-
`}updated(e){super.updated(e),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((e.has("min")||e.has("max")||e.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(e){if(super.update(e),e.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),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)}updateFormValidity(){if(this.validationMessage==null&&this.inputElement!=null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);let e=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",e==null?null:e.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(e){this._internals?.setFormValue(e),this.updateFormValidity()}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=
|
|
74
|
+
`}updated(e){super.updated(e),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((e.has("min")||e.has("max")||e.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(e){if(super.update(e),e.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),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)}updateFormValidity(){if(this.validationMessage==null&&this.inputElement!=null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);let e=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",e==null?null:e.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(e){this._internals?.setFormValue(e),this.updateFormValidity()}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=Ms,nt.DEFAULT_MAX_LENGTH=524288,nt.formAssociated=!0,nt.shadowRootOptions={...j.shadowRootOptions,delegatesFocus:bo},nt);S([h({type:String,reflect:!0})],$.prototype,"label");S([h({type:String,attribute:!0})],$.prototype,"validationMessage");S([h({type:String,attribute:!0})],$.prototype,"validationIconSrc");S([h({type:fe,attribute:!0,reflect:!0})],$.prototype,"validationLevel");S([h({type:String,hasChanged(e,t){return t!=null&&t!=e}})],$.prototype,"currentText");S([h({type:Boolean,attribute:!0})],$.prototype,"alwaysFloatLabel");S([h({type:Boolean,attribute:!0})],$.prototype,"autocompleted");S([h({type:Number,attribute:!0})],$.prototype,"rows");S([h({type:Boolean,reflect:!0,attribute:"effective-disabled"})],$.prototype,"effectiveDisabled");S([h({type:Boolean,reflect:!0,attribute:"extended-prefix"})],$.prototype,"extendedPrefix");S([h({type:String,reflect:!0})],$.prototype,"type");S([h({type:String,reflect:!0})],$.prototype,"placeholder");S([h({type:String,reflect:!0})],$.prototype,"sdAriaLabel");S([h({type:Number,reflect:!0})],$.prototype,"maxlength");S([h({type:Boolean,reflect:!0})],$.prototype,"readonly");S([h({type:Boolean,reflect:!0})],$.prototype,"required");S([h({type:String,reflect:!0})],$.prototype,"name");S([h({type:Boolean,reflect:!0})],$.prototype,"inactive");S([h({type:String,attribute:!0})],$.prototype,"autocomplete");S([h({type:String,attribute:!0})],$.prototype,"min");S([h({type:String,attribute:!0})],$.prototype,"max");S([h({type:String,attribute:!0})],$.prototype,"pattern");var me=$;customElements.get(me.ID)||customElements.define(me.ID,me);var Yt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ve=e=>(...t)=>({_$litDirective$:e,values:t}),Xt=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 ge=class extends Xt{constructor(t){if(super(t),this.it=x,t.type!==Yt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===x||t==null)return this._t=void 0,this.it=t;if(t===ct)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};ge.directiveName="unsafeHTML",ge.resultType=1;var xo=ve(ge);var{I:Hd}=Gi;var yo=e=>e.strings===void 0;var be=(e,t)=>{let i=e._$AN;if(i===void 0)return!1;for(let o of i)o._$AO?.(t,!1),be(o,t);return!0},He=e=>{let t,i;do{if((t=e._$AM)===void 0)break;i=t._$AN,i.delete(e),e=t}while(i?.size===0)},_o=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(i===void 0)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),zs(t)}};function Ns(e){this._$AN!==void 0?(He(this),this._$AM=e,_o(this)):this._$AM=e}function Hs(e,t=!1,i=0){let o=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(t)if(Array.isArray(o))for(let r=i;r<o.length;r++)be(o[r],!1),He(o[r]);else o!=null&&(be(o,!1),He(o));else be(this,e)}var zs=e=>{e.type==Yt.CHILD&&(e._$AP??=Hs,e._$AQ??=Ns)},ze=class extends Xt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,o){super._$AT(t,i,o),_o(this),this.isConnected=t._$AU}_$AO(t,i=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),i&&(be(this,t),He(this))}setValue(t){if(yo(this._$Ct))this._$Ct._$AI(t,this);else{let i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}};var wi=e=>e?e.startsWith("url")?e:`url("${e}")`:null,wo=(e,t)=>{if(e){let i=new Image;i.addEventListener("load",t),i.src=e,i.complete&&(i.removeEventListener("load",t),window.queueMicrotask(()=>t()))}},Fe=class{static showImage(t,i,o,s){let r;s||!(t instanceof HTMLImageElement)?r=n=>t.style.backgroundImage=wi(n):r=n=>t.src=n,r(o),wo(i,()=>{r(i)})}},Ai=class extends ze{constructor(t){if(super(t),t.type!==Yt.ATTRIBUTE||t.name!=="src"&&t.name!=="style")throw new Error("The `placeholder` directive must be used in the `src` or `style` attributes")}update(t,[i,o]){return this.useCssBackground=t.name=="style",this.render(i,o)}render(t,i){this.loadingToken!=null&&(this.loadingToken.cancelled=!0);let o={cancelled:!1};return this.loadingToken=o,typeof t=="string"?this.preload(t,o):t?.then(s=>{this.preload(s,o)}),this.useCssBackground?wi(i):i}preload(t,i){t!=null&&!i.cancelled&&wo(t,()=>{i.cancelled||this.setValue(this.useCssBackground?wi(t):t)})}},Ao=ve(Ai);var Fs=':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;overflow-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)}.description.with-icon{display:flex;align-items:center;gap:4px}.description.with-icon .description-icon{width:var(--sd-list-item-description-font-size, 13px);height:var(--sd-list-item-description-font-size, 13px);background-repeat:no-repeat;background-position:bottom;background-size:90%}.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}',qs=Object.defineProperty,U=(e,t,i,o)=>{for(var s=void 0,r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,i,s)||s);return s&&qs(t,i,s),s},Nt,F=(Nt=class extends j{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[it`
|
|
75
75
|
${X(Fs)}
|
|
76
76
|
`]}render(){return T`
|
|
77
77
|
<div class="container">
|
|
@@ -102,13 +102,13 @@ var window;(window||={})["@cas-smartdesign/combo-box"]=(()=>{var Ye=Object.defin
|
|
|
102
102
|
${o?T` <div class="${e}-icon" style="background-image:url('${o}')" aria-hidden="true"></div> `:x}
|
|
103
103
|
${this.contentMode==="html"?xo(t):t}
|
|
104
104
|
</div>
|
|
105
|
-
`:x}updated(e){super.updated(e),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):[]}},Nt.ID="sd-list-item",Nt.ensureDefined=()=>{customElements.get(Nt.ID)||customElements.define(Nt.ID,Nt)},Nt);U([h({type:String})],F.prototype,"caption");U([h({type:String})],F.prototype,"description");U([h({type:String})],F.prototype,"descriptionIcon");U([h({type:Boolean})],F.prototype,"selected");U([h({type:String})],F.prototype,"icon");U([h({type:String})],F.prototype,"iconBackgroundColor");U([h({type:String})],F.prototype,"iconPlaceholder");U([h({type:Number})],F.prototype,"level");U([h()],F.prototype,"contentMode");U([h({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],F.prototype,"enableLineClamp");U([h({converter:{fromAttribute:e=>e=="true",toAttribute:e=>e},reflect:!0,attribute:"aria-disabled"})],F.prototype,"disabled");U([h({type:String,attribute:"icon-attr-aria-label"})],F.prototype,"iconAttrAriaLabel");U([h({type:String,reflect:!0})],F.prototype,"role");U([h({type:String,attribute:"caption-attr-title"})],F.prototype,"captionAttrTitle");U([h({type:String,attribute:"description-attr-title"})],F.prototype,"descriptionAttrTitle");U([h({type:String,attribute:"icon-attr-title"})],F.prototype,"iconAttrTitle");var Ht=F,qe=(e,t)=>{let i=document.createElement(Ht.ID);if(e){if(i.caption=e.caption,i.description=e.description,i.descriptionIcon=e.descriptionIcon,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};Ht.ensureDefined();var $i=class{getOffsetForIndexAndAlignment(t,i,o,s,r,n){let l=Math.max(0,n*s),a=Math.min(l,t*s),c=Math.max(0,t*s-r+s);switch(i){case"start":return a;case"end":return c;case"center":{let d=Math.round(c+(a-c)/2);return d<Math.ceil(r/2)?0:d>l+Math.floor(r/2)?l:d}case"auto":default:return o>=c&&o<=a?o:o<c?c:a}}debounce(t){let i;return(...o)=>{i&&window.cancelAnimationFrame(i),i=window.requestAnimationFrame(()=>{t(...o),i=null})}}},Us=new $i,Ue=class{constructor(t=100,i=5){this.pageSize=t,this.preloadedItemsCount=i,this._finalSizeIsKnown=!1,this._itemCache=[],this._lastRequestedFirstIndex=0,this._lastRequestedLastIndex=0,this._lastLoadedIndex=0,this.handleListDataRequest=o=>{let{startIndex:s,stopIndex:r}=o.detail;this._lastRequestedFirstIndex=s,this._lastRequestedLastIndex=r,this._list.items=this._itemCache.slice(s,r+1),!this.finalSizeIsKnown&&this._lastLoadedIndex<r+this.preloadedItemsCount&&this.requestData()},this.itemCount=t}get currentPage(){return this.items.length==0&&this.finalSizeIsKnown?0:Math.floor((this.items.length-1)/this.pageSize)}get finalSizeIsKnown(){return this._finalSizeIsKnown}set finalSizeIsKnown(t){this._finalSizeIsKnown=t,t&&(this.itemCount=this._itemCache.length),this._list&&(this._list.finalSizeIsKnown=t)}get itemCount(){return this._itemCount}set itemCount(t){this._itemCount=t,this._list&&(this._list.itemCount=t)}get items(){return this._itemCache}set items(t){this._itemCache=t,this.onItemsChange()}addItems(t){this._itemCache=this._itemCache.concat(t),this.onItemsChange()}connectList(t){this._list&&this._list.removeEventListener("data-request",this.handleListDataRequest),this._list=t,t.itemCount=this.itemCount,t.addEventListener("data-request",this.handleListDataRequest),t.finalSizeIsKnown=this._finalSizeIsKnown}onItemsChange(){this._pendingDataRequest=!1,this._lastLoadedIndex=this._itemCache.length-1,this.finalSizeIsKnown?this.itemCount=this._itemCache.length:this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex),this._list&&(this._list.items=this._itemCache.slice(this._lastRequestedFirstIndex,this._lastRequestedLastIndex+1))}requestData(){if(!this._pendingDataRequest)if(this.onDataRequest)this._pendingDataRequest=!0,this.onDataRequest(this.currentPage+1),this._lastLoadedIndex+=this.pageSize-1,this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex);else throw Error("The final size is not yet known and the list would require item data from index "+this._lastRequestedFirstIndex+". to "+this._lastRequestedLastIndex+". which is not possible to load without a configured onDataRequest")}},Ws=":host{display:block;position:relative;contain:layout}:host(:focus){outline:none}:host(:focus-visible) ::slotted([focused]){box-shadow:0 0 0 1px #1467ba inset}.container{width:100%}.container>::slotted(*){width:100%;position:absolute;box-sizing:border-box}.container>::slotted(:not([last])){border-bottom:1px solid #d9d9d9}",js=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,yt=(e,t,i,o)=>{for(var s=o>1?void 0:o?Ks(t,i):t,r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=(o?n(t,i,s):n(s))||s);return o&&s&&js(t,i,s),s},Qt=(e=>(e.TriggerOnly="trigger-only",e.Single="single",e.Multi="multi",e))(Qt||{}),Gs=0,xt,ft=(xt=class extends j{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=xt.ID+"_"+Gs++,this.role="listbox",this.itemGenerator=qe,this._lastKnownScrollTop=0,this._lastRenderedScrollTop=0,this._itemsRenderData=[],this._elementCache=new Map,this._visibleItemsNum=0,this._selectedIndices=[],this._focusIndex=-1,this._lastKnownHeight=0,this.onScroll=()=>{this._lastKnownScrollTop=this.scrollTop;let e=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(e)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=e=>{let t=!0;switch(e.key){case"Down":case"ArrowDown":this.focusIndex=
|
|
105
|
+
`:x}updated(e){super.updated(e),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):[]}},Nt.ID="sd-list-item",Nt.ensureDefined=()=>{customElements.get(Nt.ID)||customElements.define(Nt.ID,Nt)},Nt);U([h({type:String})],F.prototype,"caption");U([h({type:String})],F.prototype,"description");U([h({type:String})],F.prototype,"descriptionIcon");U([h({type:Boolean})],F.prototype,"selected");U([h({type:String})],F.prototype,"icon");U([h({type:String})],F.prototype,"iconBackgroundColor");U([h({type:String})],F.prototype,"iconPlaceholder");U([h({type:Number})],F.prototype,"level");U([h()],F.prototype,"contentMode");U([h({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],F.prototype,"enableLineClamp");U([h({converter:{fromAttribute:e=>e=="true",toAttribute:e=>e},reflect:!0,attribute:"aria-disabled"})],F.prototype,"disabled");U([h({type:String,attribute:"icon-attr-aria-label"})],F.prototype,"iconAttrAriaLabel");U([h({type:String,reflect:!0})],F.prototype,"role");U([h({type:String,attribute:"caption-attr-title"})],F.prototype,"captionAttrTitle");U([h({type:String,attribute:"description-attr-title"})],F.prototype,"descriptionAttrTitle");U([h({type:String,attribute:"icon-attr-title"})],F.prototype,"iconAttrTitle");var Ht=F,qe=(e,t)=>{let i=document.createElement(Ht.ID);if(e){if(i.caption=e.caption,i.description=e.description,i.descriptionIcon=e.descriptionIcon,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};Ht.ensureDefined();var $i=class{getOffsetForIndexAndAlignment(t,i,o,s,r,n){let l=Math.max(0,n*s),a=Math.min(l,t*s),c=Math.max(0,t*s-r+s);switch(i){case"start":return a;case"end":return c;case"center":{let d=Math.round(c+(a-c)/2);return d<Math.ceil(r/2)?0:d>l+Math.floor(r/2)?l:d}case"auto":default:return o>=c&&o<=a?o:o<c?c:a}}debounce(t){let i;return(...o)=>{i&&window.cancelAnimationFrame(i),i=window.requestAnimationFrame(()=>{t(...o),i=null})}}},Us=new $i,Ue=class{constructor(t=100,i=5){this.pageSize=t,this.preloadedItemsCount=i,this._finalSizeIsKnown=!1,this._itemCache=[],this._lastRequestedFirstIndex=0,this._lastRequestedLastIndex=0,this._lastLoadedIndex=0,this.handleListDataRequest=o=>{let{startIndex:s,stopIndex:r}=o.detail;this._lastRequestedFirstIndex=s,this._lastRequestedLastIndex=r,this._list.items=this._itemCache.slice(s,r+1),!this.finalSizeIsKnown&&this._lastLoadedIndex<r+this.preloadedItemsCount&&this.requestData()},this.itemCount=t}get currentPage(){return this.items.length==0&&this.finalSizeIsKnown?0:Math.floor((this.items.length-1)/this.pageSize)}get finalSizeIsKnown(){return this._finalSizeIsKnown}set finalSizeIsKnown(t){this._finalSizeIsKnown=t,t&&(this.itemCount=this._itemCache.length),this._list&&(this._list.finalSizeIsKnown=t)}get itemCount(){return this._itemCount}set itemCount(t){this._itemCount=t,this._list&&(this._list.itemCount=t)}get items(){return this._itemCache}set items(t){this._itemCache=t,this.onItemsChange()}addItems(t){this._itemCache=this._itemCache.concat(t),this.onItemsChange()}connectList(t){this._list&&this._list.removeEventListener("data-request",this.handleListDataRequest),this._list=t,t.itemCount=this.itemCount,t.addEventListener("data-request",this.handleListDataRequest),t.finalSizeIsKnown=this._finalSizeIsKnown}onItemsChange(){this._pendingDataRequest=!1,this._lastLoadedIndex=this._itemCache.length-1,this.finalSizeIsKnown?this.itemCount=this._itemCache.length:this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex),this._list&&(this._list.items=this._itemCache.slice(this._lastRequestedFirstIndex,this._lastRequestedLastIndex+1))}requestData(){if(!this._pendingDataRequest)if(this.onDataRequest)this._pendingDataRequest=!0,this.onDataRequest(this.currentPage+1),this._lastLoadedIndex+=this.pageSize-1,this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex);else throw Error("The final size is not yet known and the list would require item data from index "+this._lastRequestedFirstIndex+". to "+this._lastRequestedLastIndex+". which is not possible to load without a configured onDataRequest")}},Ws=":host{display:block;position:relative;contain:layout}:host(:focus){outline:none}:host(:focus-visible) ::slotted([focused]){box-shadow:0 0 0 1px #1467ba inset}.container{width:100%}.container>::slotted(*){width:100%;position:absolute;box-sizing:border-box}.container>::slotted(:not([last])){border-bottom:1px solid #d9d9d9}",js=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,yt=(e,t,i,o)=>{for(var s=o>1?void 0:o?Ks(t,i):t,r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=(o?n(t,i,s):n(s))||s);return o&&s&&js(t,i,s),s},Qt=(e=>(e.TriggerOnly="trigger-only",e.Single="single",e.Multi="multi",e))(Qt||{}),Gs=0,xt,ft=(xt=class extends j{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=xt.ID+"_"+Gs++,this.role="listbox",this.itemGenerator=qe,this._lastKnownScrollTop=0,this._lastRenderedScrollTop=0,this._itemsRenderData=[],this._elementCache=new Map,this._visibleItemsNum=0,this._selectedIndices=[],this._focusIndex=-1,this._lastKnownHeight=0,this.onScroll=()=>{this._lastKnownScrollTop=this.scrollTop;let e=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(e)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=e=>{let t=!0;switch(e.key){case"Down":case"ArrowDown":this.focusIndex=(this.focusIndex+1)%this.itemCount;break;case"Up":case"ArrowUp":this.focusIndex>0?this.focusIndex--:this.finalSizeIsKnown&&(this.focusIndex=this.itemCount-1);break;case"Enter":this.handleSelection(this.focusIndex,e);break;case"End":this.focusIndex=this.itemCount-1;break;case"PageDown":this.focusIndex=this.normalizeIndex(this.focusIndex+this._visibleItemsNum-1);break;case"Home":this.focusIndex=0;break;case"PageUp":this.focusIndex=this.normalizeIndex(this.focusIndex-this._visibleItemsNum+1);break;default:t=!1;break}t&&(e.preventDefault(),e.stopPropagation())},this._resizeObserver=new ResizeObserver(()=>{this._lastKnownHeight!==this.offsetHeight&&(this._lastKnownHeight=this.offsetHeight,this.requestUpdate())})}get focusTarget(){return this.hasAttribute("focus-target")}set focusTarget(e){this.toggleAttribute("focus-target",e)}get focusIndex(){return this._focusIndex}set focusIndex(e){if(e>=-1&&e<this.itemCount){let t=this._focusIndex;this._focusIndex=e,(e<=this._firstVisibleIndex||this._lastVisibleIndex<=e)&&this.scrollToItem(e),t!=e&&(e==-1&&this.removeAttribute("aria-activedescendant"),this.requestUpdate("focusIndex",t))}}get selectedIndices(){return this._selectedIndices}set selectedIndices(e){e?this._selectedIndices=e.map(t=>Number(t)):this._selectedIndices=[],this.requestUpdate("selectedIndices")}scrollToItem(e,t="auto"){this.scrollTop=Us.getOffsetForIndexAndAlignment(this.normalizeIndex(e),t,this.scrollTop,this.itemHeight,this.height,this.itemCount),this._lastKnownScrollTop=this.scrollTop}getListItem(e){return!this.shadowRoot||e<this._firstVisibleIndex||this._lastVisibleIndex<e?null:this.querySelector(`[item-index="${e}"]`)}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this),this.scrollTop!==this._lastKnownScrollTop&&(this.scrollTop=this._lastKnownScrollTop,this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect()}firstUpdated(e){super.firstUpdated(e),this.addEventListener("scroll",this.onScroll),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick),this.addEventListener("mousedown",t=>{t.button==1&&t.preventDefault()}),this.addEventListener("auxclick",this.handleClick),this.addEventListener("focus",()=>{this.matches(":focus-visible")&&(this.focusIndex==-1?(this.selectedIndices&&(this.focusIndex=this.selectedIndices[0]),this.focusIndex==-1&&this.itemCount>0&&(this.focusIndex=0)):this.updateFocusedItemAttributes())}),this.addEventListener("blur",()=>{this.focusIndex!=-1&&this.updateFocusedItemAttributes()}),this.selectedIndices.length>0&&this.scrollToItem(this.selectedIndices[0],"center")}updateFocusedItemAttributes(){let e=this.getListItem(this.focusIndex);e&&(this.focusTarget||document.activeElement==this?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):(e.removeAttribute("focused"),this.removeAttribute("aria-activedescendant")))}static get styles(){return[it`
|
|
106
106
|
${X(Ws)}
|
|
107
107
|
`]}render(){return this.updateItemsRenderData(),T`
|
|
108
108
|
<div class="container" style="height: ${this.itemCount*this.itemHeight}px">
|
|
109
109
|
<slot name="items"></slot>
|
|
110
110
|
</div>
|
|
111
|
-
`}updated(e){if(super.updated(e),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{let t=new MutationObserver(()=>{this.adjustWidthIfNeeded(),t.disconnect()});t.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{let e=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(e==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;let t=[...this.querySelectorAll("[item-index]")].map(o=>{if(o instanceof Ht){o.enableLineClamp=!1;let s=o.missingWidthForTexts;return s>e&&(o.enableLineClamp=!0),s}}),i=Math.max(...t);i>0&&(this.style.width=`${this.offsetWidth+i}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(e=>{e instanceof Ht&&(e.enableLineClamp=e.enableLineClamp||e.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){let e=[...this.querySelectorAll("[item-index]")],t=new Map,i=document.createDocumentFragment();for(let o of this._itemsRenderData){let s=this.renderItem(o);s.parentElement||i.appendChild(s),t.set(o.dataHash,s);let r=e.indexOf(s);r!==-1&&e.splice(r,1)}this.appendChild(i);for(let o of e)o instanceof Ht&&(o.enableLineClamp=!1),this.removeChild(o);t.forEach((o,s)=>{this._elementCache.set(s,o)})}renderItem({index:e,top:t,dataHash:i,data:o}){let s;return o?this._elementCache.has(i)?(s=this._elementCache.get(i),this._elementCache.delete(i)):(s=this.itemGenerator(o,e),s.setAttribute("slot","items")):(s=document.createElement("div"),s.setAttribute("placeholder-item",""),s.setAttribute("slot","items")),Object.assign(s.style,{transform:`translateY(${t}px)`,height:`${this.itemHeight}px`}),s.setAttribute("item-index",e.toString()),s.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),s.setAttribute("aria-posinset",String(e+1)),(!s.id||s.id.startsWith(this.id+"_item_"))&&(s.id=this.id+"_item_"+e),this.itemCount-1==e?s.setAttribute("last",""):s.removeAttribute("last"),this.updateSelectedAttribute(e,s),this.updateFocusedAttribute(e,s),s}updateFocusedAttribute(e,t){this.focusIndex==e&&(this.focusTarget||document.activeElement==this)?(t.setAttribute("focused",""),this.setAttribute("aria-activedescendant",t.id)):t.removeAttribute("focused")}updateSelectedAttribute(e,t){let i=this.selectedIndices.indexOf(e)!==-1;i?t.setAttribute("selected",""):t.removeAttribute("selected"),t.setAttribute("aria-selected",String(i))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);let e=this.normalizeIndex(this._firstVisibleIndex-2),t=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(e,t);for(let i=e;i<=t;i++){let o=i-e,s=this.items[o],r;s?r=JSON.stringify(s):r=`placeholder-${o}`,this._itemsRenderData.push({index:i,top:this.itemHeight*i,physicalIndex:o,dataHash:r,data:s})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(e){return Math.max(0,Math.min(e,this.itemCount-1))}get height(){return this.offsetHeight}requestData(e,t){!Number.isNaN(e)&&!Number.isNaN(t)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:e,stopIndex:t}}))}handleSelection(e,t){if(e<0||this.itemCount<=e)return;let i=this.getListItem(e);if(i.getAttribute("aria-disabled")=="true"||i.hasAttribute("disabled"))return;let o=!0;if(this.selectionType!=="trigger-only"){let s=this.selectedIndices.indexOf(e);o=s==-1,o?this.selectionType==="single"?this.selectedIndices=[e]:this.selectedIndices.push(e):this.selectedIndices.splice(s,1),this.requestUpdate("selectedIndices")}this.focusIndex=e,this.dispatchSelectionEvent(e,o,t)}dispatchSelectionEvent(e,t,i){this.dispatchEvent(new CustomEvent("selection",{detail:{index:e,selected:t,hasModifier:i}}))}handleClick(e){let t=e.composedPath().find(i=>i.hasAttribute&&i.hasAttribute("item-index"));if(t){let i=parseInt(t.getAttribute("item-index"));if(Number.isInteger(i)){if(e.button==0||e.button==1){let o=e.type=="auxclick"&&e.button==1||e.metaKey||e.ctrlKey;this.handleSelection(i,o)}this.focusIndex=i}}}},xt.ID="sd-virtual-list",xt.ensureDefined=()=>{Ht.ensureDefined(),customElements.get(xt.ID)||customElements.define(xt.ID,xt)},xt);yt([h({type:Number,attribute:"item-height",reflect:!0})],ft.prototype,"itemHeight",2);yt([h({type:Number})],ft.prototype,"itemCount",2);yt([h({type:Array,attribute:!1})],ft.prototype,"items",2);yt([h({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],ft.prototype,"selectionType",2);yt([h({type:String,attribute:!0,reflect:!0})],ft.prototype,"id",2);yt([h({type:String,reflect:!0})],ft.prototype,"role",2);yt([h({type:Number,attribute:"focus-index",reflect:!0})],ft.prototype,"focusIndex",1);yt([h({type:Array,attribute:!1})],ft.prototype,"selectedIndices",1);var We=ft;We.ensureDefined();var Xs=":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,:host(:not([effective-disabled]):invalid) .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,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, 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{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset: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;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}:host(:focus){outline:none}.suffix ::slotted(.clear-button),.suffix ::slotted(.toggle-button){cursor:pointer;width:16px;height:32px;padding:0 8px;margin-top:-8px;margin-bottom:-8px;fill:#666;outline:none;flex-shrink:0}.suffix ::slotted(.toggle-button){transition:transform .2s}:host([opened]) .suffix ::slotted(.toggle-button){transform:rotate(180deg)}:host([disabled]) .suffix ::slotted(.clear-button),:host([disabled]) .suffix ::slotted(.toggle-button){display:none!important}.prefix ::slotted(.icon-wrapper){width:32px;height:32px;padding-right:4px;margin-top:-8px;margin-bottom:-8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}:host(:not([has-value])) .suffix ::slotted(.clear-button),:host([null-setting-disallowed]) .suffix ::slotted(.clear-button){display:none!important}:host(:not([allow-custom-value]):not([trigger-only])) .input{caret-color:transparent}:host(:not([allow-custom-value]):not([disabled])) .input{cursor:pointer}#default-slot{display:none}",Ys=`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-button" slot="suffix" viewBox="0 0 16 16">\r
|
|
111
|
+
`}updated(e){if(super.updated(e),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{let t=new MutationObserver(()=>{this.adjustWidthIfNeeded(),t.disconnect()});t.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{let e=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(e==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;let t=[...this.querySelectorAll("[item-index]")].map(o=>{if(o instanceof Ht){o.enableLineClamp=!1;let s=o.missingWidthForTexts;return s>e&&(o.enableLineClamp=!0),s}}),i=Math.max(...t);i>0&&(this.style.width=`${this.offsetWidth+i}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(e=>{e instanceof Ht&&(e.enableLineClamp=e.enableLineClamp||e.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){let e=[...this.querySelectorAll("[item-index]")],t=new Map,i=document.createDocumentFragment();for(let o of this._itemsRenderData){let s=this.renderItem(o);s.parentElement||i.appendChild(s),t.set(o.dataHash,s);let r=e.indexOf(s);r!==-1&&e.splice(r,1)}this.appendChild(i);for(let o of e)o instanceof Ht&&(o.enableLineClamp=!1),this.removeChild(o);t.forEach((o,s)=>{this._elementCache.set(s,o)})}renderItem({index:e,top:t,dataHash:i,data:o}){let s;return o?this._elementCache.has(i)?(s=this._elementCache.get(i),this._elementCache.delete(i)):(s=this.itemGenerator(o,e),s.setAttribute("slot","items")):(s=document.createElement("div"),s.setAttribute("placeholder-item",""),s.setAttribute("slot","items")),Object.assign(s.style,{transform:`translateY(${t}px)`,height:`${this.itemHeight}px`}),s.setAttribute("item-index",e.toString()),s.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),s.setAttribute("aria-posinset",String(e+1)),(!s.id||s.id.startsWith(this.id+"_item_"))&&(s.id=this.id+"_item_"+e),this.itemCount-1==e?s.setAttribute("last",""):s.removeAttribute("last"),this.updateSelectedAttribute(e,s),this.updateFocusedAttribute(e,s),s}updateFocusedAttribute(e,t){this.focusIndex==e&&(this.focusTarget||document.activeElement==this)?(t.setAttribute("focused",""),this.setAttribute("aria-activedescendant",t.id)):t.removeAttribute("focused")}updateSelectedAttribute(e,t){let i=this.selectedIndices.indexOf(e)!==-1;i?t.setAttribute("selected",""):t.removeAttribute("selected"),t.setAttribute("aria-selected",String(i))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);let e=this.normalizeIndex(this._firstVisibleIndex-2),t=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(e,t);for(let i=e;i<=t;i++){let o=i-e,s=this.items[o],r;s?r=JSON.stringify(s):r=`placeholder-${o}`,this._itemsRenderData.push({index:i,top:this.itemHeight*i,physicalIndex:o,dataHash:r,data:s})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(e){return Math.max(0,Math.min(e,this.itemCount-1))}get height(){return this.offsetHeight}requestData(e,t){!Number.isNaN(e)&&!Number.isNaN(t)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:e,stopIndex:t}}))}handleSelection(e,t){if(e<0||this.itemCount<=e)return;let i=this.getListItem(e);if(i.getAttribute("aria-disabled")=="true"||i.hasAttribute("disabled"))return;let o=!0;if(this.selectionType!=="trigger-only"){let s=this.selectedIndices.indexOf(e);o=s==-1,o?this.selectionType==="single"?this.selectedIndices=[e]:this.selectedIndices.push(e):this.selectedIndices.splice(s,1),this.requestUpdate("selectedIndices")}this.focusIndex=e,this.dispatchSelectionEvent(e,o,t)}dispatchSelectionEvent(e,t,i){this.dispatchEvent(new CustomEvent("selection",{detail:{index:e,selected:t,originalEvent:i}}))}handleClick(e){let t=e.composedPath().find(i=>i.hasAttribute&&i.hasAttribute("item-index"));if(t){let i=parseInt(t.getAttribute("item-index"));Number.isInteger(i)&&((e.button==0||e.button==1)&&this.handleSelection(i,e),this.focusIndex=i)}}},xt.ID="sd-virtual-list",xt.ensureDefined=()=>{Ht.ensureDefined(),customElements.get(xt.ID)||customElements.define(xt.ID,xt)},xt);yt([h({type:Number,attribute:"item-height",reflect:!0})],ft.prototype,"itemHeight",2);yt([h({type:Number})],ft.prototype,"itemCount",2);yt([h({type:Array,attribute:!1})],ft.prototype,"items",2);yt([h({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],ft.prototype,"selectionType",2);yt([h({type:String,attribute:!0,reflect:!0})],ft.prototype,"id",2);yt([h({type:String,reflect:!0})],ft.prototype,"role",2);yt([h({type:Number,attribute:"focus-index",reflect:!0})],ft.prototype,"focusIndex",1);yt([h({type:Array,attribute:!1})],ft.prototype,"selectedIndices",1);var We=ft;We.ensureDefined();var Xs=":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,:host(:not([effective-disabled]):invalid) .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,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, 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{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset: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;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}:host(:focus){outline:none}.suffix ::slotted(.clear-button),.suffix ::slotted(.toggle-button){cursor:pointer;width:16px;height:32px;padding:0 8px;margin-top:-8px;margin-bottom:-8px;fill:#666;outline:none;flex-shrink:0}.suffix ::slotted(.toggle-button){transition:transform .2s}:host([opened]) .suffix ::slotted(.toggle-button){transform:rotate(180deg)}:host([disabled]) .suffix ::slotted(.clear-button),:host([disabled]) .suffix ::slotted(.toggle-button){display:none!important}.prefix ::slotted(.icon-wrapper){width:32px;height:32px;padding-right:4px;margin-top:-8px;margin-bottom:-8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}:host(:not([has-value])) .suffix ::slotted(.clear-button),:host([null-setting-disallowed]) .suffix ::slotted(.clear-button){display:none!important}:host(:not([allow-custom-value]):not([trigger-only])) .input{caret-color:transparent}:host(:not([allow-custom-value]):not([disabled])) .input{cursor:pointer}#default-slot{display:none}",Ys=`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-button" slot="suffix" viewBox="0 0 16 16">\r
|
|
112
112
|
<path d="M13 4v2l-5 5-5-5v-2l5 5z"/>\r
|
|
113
113
|
</svg>\r
|
|
114
114
|
`,Qs=`<svg xmlns="http://www.w3.org/2000/svg" class="clear-button" slot="suffix" viewBox="0 0 16 16">\r
|
|
@@ -122,7 +122,7 @@ var window;(window||={})["@cas-smartdesign/combo-box"]=(()=>{var Ye=Object.defin
|
|
|
122
122
|
`}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),t!==i)switch(e){case"opened":{this.handleOpenedStateChange();break}case"item-height":{this._list&&(this._list.itemHeight=this.itemHeight);break}case"id":{this.updateListId();break}}}firstUpdated(e){super.firstUpdated(e),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),window.requestAnimationFrame(()=>{this.initClearButtton(),this.initToggleButtton(),this.updateHasValue(),this.addEventListener("click",()=>{this.disabled||(this.opened=!this.opened)}),this.addEventListener("keydown",t=>{this.disabled||this.handleKeyDown(t)})}),this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-autocomplete","list")}updateComboBoxValueFromValue(){if(this.value){let e=this._itemCache.findIndex(t=>(t[this.displayValuePath]??"")===this.value);e>-1?this._comboBoxValue={index:e,item:this._itemCache[e]}:this.allowCustomValue?this._comboBoxValue=this.value:this._comboBoxValue=null,this.updateHasValue(),this.updateIconFromCurrentValue()}}updated(e){super.updated(e),e.has("showIcon")&&(this.showIcon?this._icon==null&&this.initIconWrapper():this._icon!=null&&(this._icon.remove(),this._icon=null)),e.has("currentText")&&this.updateHasValue(),e.has("triggerOnly")&&this._list&&(this._list.selectionType=this.triggerOnly?Qt.TriggerOnly:Qt.Single)}initIconWrapper(){this._icon=document.createElement("div"),this._icon.className="icon-wrapper",this._icon.role="img";let e=document.createElement("div");e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center",e.style.backgroundSize="cover",e.style.height="24px",e.style.width="24px",this._icon.appendChild(e),this._icon.slot="prefix",this.appendChild(this._icon),this.updateIconFromCurrentValue()}updateIconFromCurrentValue(){this.isCustomValue(this.comboBoxValue)?this.updateIcon(null):this.updateIcon(this.comboBoxValue?.item)}updateIcon(e){if(this._icon)if(e&&(e.icon||e.iconPlaceholder)){let t=e;t.attributes==null?(this._icon.title="",this._icon.ariaLabel=""):(this._icon.title=t.attributes["icon-attr-title"]??"",this._icon.ariaLabel=t.attributes["icon-attr-aria-label"]??""),this._icon.style.backgroundColor=t.iconBackgroundColor,this._icon.style.display="",Fe.showImage(this._icon.querySelector("div"),e.icon,e.iconPlaceholder)}else this._icon&&(this._icon.style.display="none")}updateHasValue(){this.currentText||this.comboBoxValue!=null&&this.comboBoxValue!=""?(this.setAttribute("has-value",""),this._clearButton&&(this._clearButton.style.display="")):this.removeAttribute("has-value")}shouldFloat(){return super.shouldFloat()||this.comboBoxValue!=null&&this.comboBoxValue!=""}initClearButtton(){let e=document.createElement("template");e.innerHTML=Qs,this._clearButton=e.content.firstChild,this.appendChild(this._clearButton),this._clearButton.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),this.opened=!1,this.clearValue()})}initToggleButtton(){let e=document.createElement("template");e.innerHTML=Ys,this._toggleButton=e.content.firstChild,this.appendChild(this._toggleButton),this._toggleButton.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),this.opened=!this.opened,this.select()})}filterItemsInMemory(){if(this.isLazyLoadConfigured)return;let e=!1;if(this.filterText&&(this.filterProperty?(this._dataProvider.items=this._itemCache.filter(t=>t[this.filterProperty]&&String(t[this.filterProperty]).indexOf(this.filterText)>-1),e=!0):this.inMemoryFilter&&(this._dataProvider.items=this._itemCache.filter(t=>this.inMemoryFilter(this.filterText,t)),e=!0)),!e)this._dataProvider.items=this._itemCache,this._list&&this.updateFocusAndSelectedIndexFromValue();else if(this._list)if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){let t=this._dataProvider.items.indexOf(this.comboBoxValue.item);if(t==-1){let i=this.comboBoxValue.item.id;i!=null&&(t=this._dataProvider.items.findIndex(o=>o.id==i))}this._list.focusIndex=t,this._list.selectedIndices=t==-1?[]:[t]}else this._list.focusIndex=null;this.opened&&this._popper&&this._popper.update()}ensureListAndPopperInitialized(){if(this._list||(this._list=document.createElement(We.ID),this.updateListId(),this._list.classList.add("combo-box-dropdown"),this._list.itemHeight=this.itemHeight,this._list.itemGenerator=this.itemGenerator,this._list.selectionType=this.triggerOnly?Qt.TriggerOnly:Qt.Single,this._list.setAttribute("focus-target",""),Object.assign(this._list.style,{zIndex:"21000",boxShadow:`rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
|
|
123
123
|
rgba(0, 0, 0, 0.12) 0px 1px 5px 0px,
|
|
124
124
|
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"}),this._list.addEventListener("selection",this.handleSelection),this._dataProvider.connectList(this._list)),!this._popper){let e=this;this._popper=xi(this,this._list,{placement:"bottom-start",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!0}},{name:"hide",enabled:!1},{name:"closeIfReferenceHidden",enabled:!0,phase:"afterWrite",fn({state:t}){t.elements.reference.closeIfNotVisible()}},{name:"offset",options:{offset:({placement:t})=>t.indexOf("top")>-1?[0,-parseInt(getComputedStyle(e).paddingTop,10)]:t.indexOf("bottom")>-1?[0,-parseInt(getComputedStyle(e).paddingBottom,10)-(this.shadowRoot.querySelector(".validation-message-wrapper")?.offsetHeight??0)]:[0,0]}},{name:"adjustWidthIfNeeded",enabled:!0,phase:"read",fn({state:t}){t.elements.popper.increaseWidthOnNextRenderIfNeeded()}}]})}}closeIfNotVisible(){let e=this.elementFromMiddleOfComboBox();!this.contains(e)&&!this.shadowRoot.contains(e)&&e!==this._list&&(this.triggerOnly&&(this.value=null),this.opened=!1)}elementFromMiddleOfComboBox(){let e=this.getBoundingClientRect();return document.elementFromPoint(e.left+e.width/2,e.top+e.height/2)}async handleOpenedStateChange(){if(this.inputElement.setAttribute("aria-expanded",String(this.opened)),this.opened){if(!this.disabled){this.ensureListAndPopperInitialized();let e=(this.filterText??"")!==(this._lastRequestedFilterText??"");this.isLazyLoadConfigured&&(this.items.length==0||e)&&this.requestData(0,e),this.updateDropdownSizes(),this.ownerDocument.body.appendChild(this._list),this.updateFocusAndSelectedIndexFromValue(),window.requestAnimationFrame(()=>{this._popper&&this._popper.update()}),window.addEventListener("pointerdown",this.handleWindowPointerDown),!this.allowCustomValue&&!this._openedByFilterTextChange&&this.select()}this._openedByFilterTextChange=!1}else await this._list.updateComplete,this._popper&&await this._popper.update,this.ownerDocument.body.removeChild(this._list),window.removeEventListener("pointerdown",this.handleWindowPointerDown),this.updateValueOnClose(),this.clearFilter(),this.setSelectionRange(0,0),this.inputElement.removeAttribute("aria-activedescendant"),this._popper&&(this._popper.destroy(),this._popper=null)}updateValueOnClose(){let e=this.comboBoxValue??"";if(this.nullSettingDisallowed&&!this.value&&this.comboBoxValue)this.restorePreviousSelection();else if(this.value!==(this.convertToDisplayValue(null)??"")){let t=this._dataProvider.items[this._list.focusIndex];if(t&&(t[this.displayValuePath]??"")===this.value){if(t.disabled){this.restorePreviousSelection();return}this.comboBoxValue={index:this._itemCache.indexOf(t),item:t}}else if(this.allowCustomValue||!this.value)this.comboBoxValue=this.value;else{let i=this._itemCache.findIndex(o=>(o[this.displayValuePath]??"")===this.value&&!o.disabled);i>-1?this.comboBoxValue={index:i,item:this._itemCache[i]}:this.restorePreviousSelection()}}else{let t=this._dataProvider.items[this._list.focusIndex];if(t&&t.id!=null){if(t.disabled){this.restorePreviousSelection();return}(!this.comboBoxValue||this.isCustomValue(this.comboBoxValue)||this.comboBoxValue.item.id!=t.id)&&(this.comboBoxValue={index:this._itemCache.indexOf(t),item:t})}}e!==(this.comboBoxValue??"")&&this.dispatchSelectionChangeEvent(),this.updateIcon(this.isCustomValue(this.comboBoxValue)?null:this.comboBoxValue?.item)}restorePreviousSelection(){this.updateInputValue(null)}updateFocusAndSelectedIndexFromValue(){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)&&!this._openedByFilterTextChange){let e=this.comboBoxValue.index;if((e==-1||this.isLazyLoadConfigured)&&(e=this.items.indexOf(this.comboBoxValue.item),e==-1)){let t=this.comboBoxValue.item.id;t!=null&&(e=this.items.findIndex(i=>i.id==t))}this._list.focusIndex=e,this._list.selectedIndices=e==-1?[]:[e]}else this._list.focusIndex=-1,this._list.selectedIndices=[];this.updateActiveDescendant()}navigateInList(e){this.opened?(this._list.focusIndex==null?e>0?this._list.focusIndex=0:this._list.focusIndex=Math.max(0,this._dataProvider.items.length-1):this._list.focusIndex=Math.max(0,Math.min(this._dataProvider.items.length-1,this._list.focusIndex+e)),this.updateInputValue(this._dataProvider.items[this._list.focusIndex]),this.updateActiveDescendant(),this.allowCustomValue||this.select()):this.opened=!0}updateActiveDescendant(){let e=this._list&&this._list.getListItem(this._list.focusIndex);e?this.inputElement.setAttribute("aria-activedescendant",e.id):this.inputElement.removeAttribute("aria-activedescendant")}updateInputValue(e){this.updateComplete.then(()=>{this.value=this.convertToDisplayValue(e),e?this.updateIcon(e):this.updateIconFromCurrentValue()})}convertToDisplayValue(e){return e?e[this.displayValuePath]:this.comboBoxValue?this.isCustomValue(this.comboBoxValue)?this.comboBoxValue:this.comboBoxValue.item[this.displayValuePath]:null}fireValueChange(e){if(e&&this.filterText!==this.value){let t=(this.filterText??"")!==this.value;this.filterText=this.value,this.updateIcon(null),this.opened||(this._openedByFilterTextChange=!0,this.opened=!0),t&&(this.dispatchFilterChangeEvent(),this.debouncedFilterItemsInMemory())}}clearValue(){this.nullSettingDisallowed||(this.value=null,this.inputElement.removeAttribute("aria-activedescendant"),this._list&&(this._list.selectedIndices=[]),this.clearFilter(),this.comboBoxValue&&(this.comboBoxValue=null,this.dispatchSelectionChangeEvent()),this.requestUpdate())}clearFilter(){this.filterText!=null&&(this.filterText=void 0,this.filterItemsInMemory(),this.dispatchFilterChangeEvent(),this.updateIconFromCurrentValue())}updateDropdownSizes(){let e=((window.innerHeight||document.documentElement.clientHeight)-this.offsetHeight)*.5;Object.assign(this._list.style,{maxHeight:`${e}px`,minWidth:`${Math.max(this.offsetWidth,this.minimumOverlayWidth)}px`,maxWidth:`max(50vw, ${this.offsetWidth}px)`})}updateListId(){this.inputElement&&this._list&&(this._list.id=this.id+"_list",this.inputElement.setAttribute("aria-controls",this._list.id))}isCustomValue(e){return typeof e=="string"}dispatchSelectionChangeEvent(){this.updateComplete.then(()=>{if(this.dispatchEvent(new CustomEvent("selection-change",{detail:{selection:this.comboBoxValue,isCustomValue:this.isCustomValue(this.comboBoxValue)}})),this.triggerOnly)this.comboBoxValue=null;else{let e=this.comboBoxValue;this.isCustomValue(e)?this.setFormValue(e):this.setFormValue(e?.item?.caption)}}).catch(e=>{console.error("Could not dispatch selection change event due to:",e)})}dispatchFilterChangeEvent(){this.dispatchEvent(new CustomEvent("filter-change",{detail:{value:this.filterText},composed:!0})),this.debouncedRequestData(0)}get isLazyLoadConfigured(){return!!this._onDataRequest}requestData(e,t){if(t==null&&(t=(this.filterText??"")!==(this._lastRequestedFilterText??"")),this.isLazyLoadConfigured){if(!this.opened){t&&(this._dataProvider.items=[],this._itemCache=[]);return}if(this._lastRequestedPage==e&&!t)return;this._pendingDataRequest&&this._pendingDataRequest.cancel(Z.DATA_REQUEST_CANCELLED);let i=new Promise((o,s)=>{this._pendingDataRequest={cancel:s}});this._lastRequestedPage=e,this._lastRequestedFilterText=this.filterText,this.setAttribute("loading",""),Promise.race([i,this._onDataRequest(this._lastRequestedFilterText,e)]).then(o=>{if(this.filterText==this._lastRequestedFilterText&&this._lastRequestedPage==e&&(this._dataProvider.finalSizeIsKnown=o.finalSizeIsKnown,t?(this._dataProvider.items=o.items,this._itemCache=o.items):(this._dataProvider.addItems(o.items),this._itemCache=this._dataProvider.items),this._list&&(this._list.itemCount=this._dataProvider.items.length),this._popper&&this.opened)){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){let s=this.comboBoxValue.item;if(this._list.selectedIndices.length==0||this.items[this._list.selectedIndices[0]]!=s){let r=this.items.indexOf(s);if(r==-1){let n=s.id;n!=null&&(r=this.items.findIndex(l=>l.id==n))}this.comboBoxValue.index=r,this._list.selectedIndices=r==-1?[]:[r]}}this.updateDropdownSizes(),this._popper.update()}this._pendingDataRequest=null,this.removeAttribute("loading")}).catch(o=>{o!==Z.DATA_REQUEST_CANCELLED&&(console.error(`Data could not be loaded for filter "${this._lastRequestedFilterText}" and page number "${e}" due to the following error:
|
|
125
|
-
${o}`),this._dataProvider.finalSizeIsKnown=!0,this.items.length==0?this.opened=!1:this._list&&(this._list.itemCount=this.items.length),this.removeAttribute("loading")),this._pendingDataRequest=null})}}get defaultSlot(){return this.shadowRoot.querySelector("#default-slot")}onDefaultSlotChange(){this._declarativeItems=this.defaultSlot.assignedElements(),this._declarativeItems.length>0&&(this.finalSizeIsKnown=!0,this.itemGenerator=(e,t)=>this._declarativeItems[t].cloneNode(!0),this.items=this._declarativeItems.map(e=>{let t={caption:e.getAttribute("caption"),description:e.getAttribute("description")};return this.displayValuePath!="caption"&&this.displayValuePath!="description"&&(t[this.displayValuePath]=e[this.displayValuePath]||e.getAttribute(this.displayValuePath)),t}))}},Z.ID=Zs,Z.ensureDefined=()=>{We.ensureDefined(),customElements.get(Z.ID)||customElements.define(Z.ID,Z)},Z.formAssociated=!0,Z.DATA_REQUEST_CANCELLED="cancel_data_request",Z);mt([h({type:Boolean,reflect:!0})],at.prototype,"opened");mt([h({type:Number,attribute:"item-height"})],at.prototype,"itemHeight");mt([h({type:Boolean,attribute:"allow-custom-value",reflect:!0})],at.prototype,"allowCustomValue");mt([h({type:Boolean,attribute:"trigger-only",reflect:!0})],at.prototype,"triggerOnly");mt([h({type:Boolean,attribute:"null-setting-disallowed",reflect:!0})],at.prototype,"nullSettingDisallowed");mt([h({type:Boolean,attribute:"show-icon",reflect:!0})],at.prototype,"showIcon");mt([h({type:String,attribute:"display-value-path",noAccessor:!0})],at.prototype,"displayValuePath");mt([h({type:String,attribute:"filter-property",noAccessor:!0})],at.prototype,"filterProperty");mt([h({type:String,attribute:!0,reflect:!0})],at.prototype,"id");var Co=at;Co.ensureDefined();return
|
|
125
|
+
${o}`),this._dataProvider.finalSizeIsKnown=!0,this.items.length==0?this.opened=!1:this._list&&(this._list.itemCount=this.items.length),this.removeAttribute("loading")),this._pendingDataRequest=null})}}get defaultSlot(){return this.shadowRoot.querySelector("#default-slot")}onDefaultSlotChange(){this._declarativeItems=this.defaultSlot.assignedElements(),this._declarativeItems.length>0&&(this.finalSizeIsKnown=!0,this.itemGenerator=(e,t)=>this._declarativeItems[t].cloneNode(!0),this.items=this._declarativeItems.map(e=>{let t={caption:e.getAttribute("caption"),description:e.getAttribute("description")};return this.displayValuePath!="caption"&&this.displayValuePath!="description"&&(t[this.displayValuePath]=e[this.displayValuePath]||e.getAttribute(this.displayValuePath)),t}))}},Z.ID=Zs,Z.ensureDefined=()=>{We.ensureDefined(),customElements.get(Z.ID)||customElements.define(Z.ID,Z)},Z.formAssociated=!0,Z.DATA_REQUEST_CANCELLED="cancel_data_request",Z);mt([h({type:Boolean,reflect:!0})],at.prototype,"opened");mt([h({type:Number,attribute:"item-height"})],at.prototype,"itemHeight");mt([h({type:Boolean,attribute:"allow-custom-value",reflect:!0})],at.prototype,"allowCustomValue");mt([h({type:Boolean,attribute:"trigger-only",reflect:!0})],at.prototype,"triggerOnly");mt([h({type:Boolean,attribute:"null-setting-disallowed",reflect:!0})],at.prototype,"nullSettingDisallowed");mt([h({type:Boolean,attribute:"show-icon",reflect:!0})],at.prototype,"showIcon");mt([h({type:String,attribute:"display-value-path",noAccessor:!0})],at.prototype,"displayValuePath");mt([h({type:String,attribute:"filter-property",noAccessor:!0})],at.prototype,"filterProperty");mt([h({type:String,attribute:!0,reflect:!0})],at.prototype,"id");var Co=at;Co.ensureDefined();return Mo(er);})();
|
|
126
126
|
/*! Bundled license information:
|
|
127
127
|
|
|
128
128
|
@lit/reactive-element/css-tag.js:
|