@cas-smartdesign/lit-slider 7.1.0 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var pt=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var ne=Object.prototype.hasOwnProperty;var ae=(e,t)=>{for(var i in t)pt(e,i,{get:t[i],enumerable:!0})},le=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of oe(t))!ne.call(e,r)&&r!==i&&pt(e,r,{get:()=>t[r],enumerable:!(s=re(t,r))||s.enumerable});return e};var he=e=>le(pt({},"__esModule",{value:!0}),e);var Fe={};ae(Fe,{default:()=>ht});var st=window,rt=st.ShadowRoot&&(st.ShadyCSS===void 0||st.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ft=Symbol(),Dt=new WeakMap,G=class{constructor(t,i,s){if(this._$cssResult$=!0,s!==ft)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(rt&&t===void 0){let s=i!==void 0&&i.length===1;s&&(t=Dt.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Dt.set(i,t))}return t}toString(){return this.cssText}},k=e=>new G(typeof e=="string"?e:e+"",void 0,ft),V=(e,...t)=>{let i=e.length===1?e[0]:t.reduce((s,r,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1],e[0]);return new G(i,e,ft)},vt=(e,t)=>{rt?e.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):t.forEach(i=>{let s=document.createElement("style"),r=st.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=i.cssText,e.appendChild(s)})},ot=rt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(let s of t.cssRules)i+=s.cssText;return k(i)})(e):e;var mt,nt=window,Tt=nt.trustedTypes,ce=Tt?Tt.emptyScript:"",Nt=nt.reactiveElementPolyfillSupport,bt={toAttribute(e,t){switch(t){case Boolean:e=e?ce: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}},Ot=(e,t)=>t!==e&&(t==t||e==e),gt={attribute:!0,type:String,converter:bt,reflect:!1,hasChanged:Ot},$t="finalized",P=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((i,s)=>{let r=this._$Ep(s,i);r!==void 0&&(this._$Ev.set(r,s),t.push(r))}),t}static createProperty(t,i=gt){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){let s=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,s,i);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,i,s){return{get(){return this[i]},set(r){let o=this[t];this[i]=r,this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||gt}static finalize(){if(this.hasOwnProperty($t))return!1;this[$t]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let i=this.properties,s=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(let r of s)this.createProperty(r,i[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let i=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let r of s)i.unshift(ot(r))}else t!==void 0&&i.push(ot(t));return i}static _$Ep(t,i){let s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(i=>i(this))}addController(t){var i,s;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.call(t))}removeController(t){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var t;let i=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return vt(i,this.constructor.elementStyles),i}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var s;return(s=i.hostConnected)===null||s===void 0?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var s;return(s=i.hostDisconnected)===null||s===void 0?void 0:s.call(i)})}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$EO(t,i,s=gt){var r;let o=this.constructor._$Ep(t,s);if(o!==void 0&&s.reflect===!0){let n=(((r=s.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?s.converter:bt).toAttribute(i,s.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,i){var s;let r=this.constructor,o=r._$Ev.get(t);if(o!==void 0&&this._$El!==o){let n=r.getPropertyOptions(o),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?n.converter:bt;this._$El=o,this[o]=a.fromAttribute(i,n.type),this._$El=null}}requestUpdate(t,i,s){let r=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||Ot)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let i=!1,s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(s)):this._$Ek()}catch(r){throw i=!1,this._$Ek(),r}i&&this._$AE(s)}willUpdate(t){}_$AE(t){var i;(i=this._$ES)===null||i===void 0||i.forEach(s=>{var r;return(r=s.hostUpdated)===null||r===void 0?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((i,s)=>this._$EO(s,this[s],i)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};P[$t]=!0,P.elementProperties=new Map,P.elementStyles=[],P.shadowRootOptions={mode:"open"},Nt?.({ReactiveElement:P}),((mt=nt.reactiveElementVersions)!==null&&mt!==void 0?mt:nt.reactiveElementVersions=[]).push("1.6.3");var yt,at=window,B=at.trustedTypes,Ut=B?B.createPolicy("lit-html",{createHTML:e=>e}):void 0,wt="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,Wt="?"+M,ue=`<${Wt}>`,R=document,J=()=>R.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",Xt=Array.isArray,de=e=>Xt(e)||typeof e?.[Symbol.iterator]=="function",_t=`[
2
- \f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,Ht=/>/g,L=RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),zt=/'/g,Ft=/"/g,Gt=/^(?:script|style|textarea|title)$/i,Kt=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),_=Kt(1),Ke=Kt(2),D=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),jt=new WeakMap,I=R.createTreeWalker(R,129,null,!1);function Jt(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ut!==void 0?Ut.createHTML(t):t}var pe=(e,t)=>{let i=e.length-1,s=[],r,o=t===2?"<svg>":"",n=K;for(let a=0;a<i;a++){let l=e[a],h,d,c=-1,f=0;for(;f<l.length&&(n.lastIndex=f,d=n.exec(l),d!==null);)f=n.lastIndex,n===K?d[1]==="!--"?n=Bt:d[1]!==void 0?n=Ht:d[2]!==void 0?(Gt.test(d[2])&&(r=RegExp("</"+d[2],"g")),n=L):d[3]!==void 0&&(n=L):n===L?d[0]===">"?(n=r??K,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?L:d[3]==='"'?Ft:zt):n===Ft||n===zt?n=L:n===Bt||n===Ht?n=K:(n=L,r=void 0);let y=n===L&&e[a+1].startsWith("/>")?" ":"";o+=n===K?l+ue:c>=0?(s.push(h),l.slice(0,c)+wt+l.slice(c)+M+y):l+M+(c===-2?(s.push(void 0),a):y)}return[Jt(e,o+(e[i]||"<?>")+(t===2?"</svg>":"")),s]},Z=class e{constructor({strings:t,_$litType$:i},s){let r;this.parts=[];let o=0,n=0,a=t.length-1,l=this.parts,[h,d]=pe(t,i);if(this.el=e.createElement(h,s),I.currentNode=this.el.content,i===2){let c=this.el.content,f=c.firstChild;f.remove(),c.append(...f.childNodes)}for(;(r=I.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes()){let c=[];for(let f of r.getAttributeNames())if(f.endsWith(wt)||f.startsWith(M)){let y=d[n++];if(c.push(f),y!==void 0){let ct=r.getAttribute(y.toLowerCase()+wt).split(M),v=/([.?@])?(.*)/.exec(y);l.push({type:1,index:o,name:v[2],strings:ct,ctor:v[1]==="."?xt:v[1]==="?"?At:v[1]==="@"?St:z})}else l.push({type:6,index:o})}for(let f of c)r.removeAttribute(f)}if(Gt.test(r.tagName)){let c=r.textContent.split(M),f=c.length-1;if(f>0){r.textContent=B?B.emptyScript:"";for(let y=0;y<f;y++)r.append(c[y],J()),I.nextNode(),l.push({type:2,index:++o});r.append(c[f],J())}}}else if(r.nodeType===8)if(r.data===Wt)l.push({type:2,index:o});else{let c=-1;for(;(c=r.data.indexOf(M,c+1))!==-1;)l.push({type:7,index:o}),c+=M.length-1}o++}}static createElement(t,i){let s=R.createElement("template");return s.innerHTML=t,s}};function H(e,t,i=e,s){var r,o,n,a;if(t===D)return t;let l=s!==void 0?(r=i._$Co)===null||r===void 0?void 0:r[s]:i._$Cl,h=Y(t)?void 0:t._$litDirective$;return l?.constructor!==h&&((o=l?._$AO)===null||o===void 0||o.call(l,!1),h===void 0?l=void 0:(l=new h(e),l._$AT(e,i,s)),s!==void 0?((n=(a=i)._$Co)!==null&&n!==void 0?n:a._$Co=[])[s]=l:i._$Cl=l),l!==void 0&&(t=H(e,l._$AS(e,t.values),l,s)),t}var Et=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;let{el:{content:s},parts:r}=this._$AD,o=((i=t?.creationScope)!==null&&i!==void 0?i:R).importNode(s,!0);I.currentNode=o;let n=I.nextNode(),a=0,l=0,h=r[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new Q(n,n.nextSibling,this,t):h.type===1?d=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(d=new Ct(n,this,t)),this._$AV.push(d),h=r[++l]}a!==h?.index&&(n=I.nextNode(),a++)}return I.currentNode=R,o}v(t){let i=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}},Q=class e{constructor(t,i,s,r){var o;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=r,this._$Cp=(o=r?.isConnected)===null||o===void 0||o}get _$AU(){var t,i;return(i=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=H(this,t,i),Y(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==D&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):de(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==g&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.$(R.createTextNode(t)),this._$AH=t}g(t){var i;let{values:s,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Z.createElement(Jt(r.h,r.h[0]),this.options)),r);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===o)this._$AH.v(s);else{let n=new Et(o,this),a=n.u(this.options);n.v(s),this.$(a),this._$AH=n}}_$AC(t){let i=jt.get(t.strings);return i===void 0&&jt.set(t.strings,i=new Z(t)),i}T(t){Xt(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,s,r=0;for(let o of t)r===i.length?i.push(s=new e(this.k(J()),this.k(J()),this,this.options)):s=i[r],s._$AI(o),r++;r<i.length&&(this._$AR(s&&s._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,i);t&&t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){var i;this._$AM===void 0&&(this._$Cp=t,(i=this._$AP)===null||i===void 0||i.call(this,t))}},z=class{constructor(t,i,s,r,o){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=g}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,r){let o=this.strings,n=!1;if(o===void 0)t=H(this,t,i,0),n=!Y(t)||t!==this._$AH&&t!==D,n&&(this._$AH=t);else{let a=t,l,h;for(t=o[0],l=0;l<o.length-1;l++)h=H(this,a[s+l],i,l),h===D&&(h=this._$AH[l]),n||(n=!Y(h)||h!==this._$AH[l]),h===g?t=g:t!==g&&(t+=(h??"")+o[l+1]),this._$AH[l]=h}n&&!r&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},xt=class extends z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},fe=B?B.emptyScript:"",At=class extends z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==g?this.element.setAttribute(this.name,fe):this.element.removeAttribute(this.name)}},St=class extends z{constructor(t,i,s,r,o){super(t,i,s,r,o),this.type=5}_$AI(t,i=this){var s;if((t=(s=H(this,t,i,0))!==null&&s!==void 0?s:g)===D)return;let r=this._$AH,o=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==g&&(r===g||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;typeof this._$AH=="function"?this._$AH.call((s=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}},Ct=class{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}};var qt=at.litHtmlPolyfillSupport;qt?.(Z,Q),((yt=at.litHtmlVersions)!==null&&yt!==void 0?yt:at.litHtmlVersions=[]).push("2.8.0");var Yt=(e,t,i)=>{var s,r;let o=(s=i?.renderBefore)!==null&&s!==void 0?s:t,n=o._$litPart$;if(n===void 0){let a=(r=i?.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=n=new Q(t.insertBefore(J(),a),a,void 0,i??{})}return n._$AI(e),n};var Pt,kt;var E=class extends P{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;let s=super.createRenderRoot();return(t=(i=this.renderOptions).renderBefore)!==null&&t!==void 0||(i.renderBefore=s.firstChild),s}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Yt(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return D}};E.finalized=!0,E._$litElement$=!0,(Pt=globalThis.litElementHydrateSupport)===null||Pt===void 0||Pt.call(globalThis,{LitElement:E});var Zt=globalThis.litElementPolyfillSupport;Zt?.({LitElement:E});((kt=globalThis.litElementVersions)!==null&&kt!==void 0?kt:globalThis.litElementVersions=[]).push("3.3.3");var ve=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},me=(e,t,i)=>{t.constructor.createProperty(i,e)};function u(e){return(t,i)=>i!==void 0?me(e,t,i):ve(e,t)}var tt="a-f\\d",ge=`#?[${tt}]{3}[${tt}]?`,be=`#?[${tt}]{6}([${tt}]{2})?`,$e=new RegExp(`[^#${tt}]`,"gi"),ye=new RegExp(`^${ge}$|^${be}$`,"i");function Mt(e,t={}){if(typeof e!="string"||$e.test(e)||!ye.test(e))throw new TypeError("Expected a valid hex string");e=e.replace(/^#/,"");let i=1;e.length===8&&(i=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),e.length===4&&(i=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let s=Number.parseInt(e,16),r=s>>16,o=s>>8&255,n=s&255,a=typeof t.alpha=="number"?t.alpha:i;if(t.format==="array")return[r,o,n,a];if(t.format==="css"){let l=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${r} ${o} ${n}${l})`}return{red:r,green:o,blue:n,alpha:a}}var A=e=>e??g;var _e=":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}",we="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",Ee="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",xe="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",Ae=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,Lt=(e,t,i,s)=>{for(var r=s>1?void 0:s?Se(t,i):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=(s?n(t,i,r):n(r))||r);return s&&r&&Ae(t,i,r),r},F,et=(F=class extends E{static parseLevel(e){if(e){let t=Object.keys(j).find(i=>i.toLowerCase()===e.toLowerCase());return t&&j[t]}}static get styles(){return[V`
4
- ${k(_e)}
5
- `]}render(){return _`${this.iconToUse&&_`<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(F.parseLevel(this.level)){case"warn":return xe;case"suggest":return Ee;case"error":return we;default:return null}}},F.ID="sd-field-validation-message",F.levelConverter={fromAttribute(e){return F.parseLevel(e)},toAttribute(e){return e&&e.toLowerCase()}},F);Lt([u({type:String,attribute:!0})],et.prototype,"message",2);Lt([u({type:String,attribute:!0})],et.prototype,"icon",2);Lt([u({converter:et.levelConverter,reflect:!0})],et.prototype,"level",2);var Vt=et,j=(e=>(e.Warn="warn",e.Suggest="suggest",e.Error="error",e))(j||{});customElements.get(Vt.ID)||customElements.define(Vt.ID,Vt);var Ce=":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{position:relative}.validation-message{position:absolute;left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input,.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}",Pe=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,b=(e,t,i,s)=>{for(var r=s>1?void 0:s?ke(t,i):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=(s?n(t,i,r):n(r))||r);return s&&r&&Pe(t,i,r),r},Me="sd-lit-input",Qt="delegatesFocus"in window.ShadowRoot.prototype,Ve=0,S,m=(S=class extends E{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let e=Ve++;this._validationMessageId=S.ID+"_message_"+e,this._inputId=S.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(),Qt||(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=>{var i,s;t.key=="Enter"&&((s=(i=this._internals)==null?void 0:i.form)==null||s.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[V`
6
- ${k(Ce)}
7
- `]}render(){var e;let t,i=this.validationMessage||((e=this.inputElement)==null?void 0:e.validationMessage);return this.rows===1?t=_`
1
+ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var ft=Object.defineProperty;var Yt=Object.getOwnPropertyDescriptor;var Qt=Object.getOwnPropertyNames;var te=Object.prototype.hasOwnProperty;var ee=(e,t)=>{for(var i in t)ft(e,i,{get:t[i],enumerable:!0})},ie=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Qt(t))!te.call(e,r)&&r!==i&&ft(e,r,{get:()=>t[r],enumerable:!(s=Yt(t,r))||s.enumerable});return e};var se=e=>ie(ft({},"__esModule",{value:!0}),e);var ze={};ee(ze,{default:()=>ut});var ot=globalThis,nt=ot.ShadowRoot&&(ot.ShadyCSS===void 0||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vt=Symbol(),Dt=new WeakMap,X=class{constructor(t,i,s){if(this._$cssResult$=!0,s!==vt)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(nt&&t===void 0){let s=i!==void 0&&i.length===1;s&&(t=Dt.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Dt.set(i,t))}return t}toString(){return this.cssText}},M=e=>new X(typeof e=="string"?e:e+"",void 0,vt),R=(e,...t)=>{let i=e.length===1?e[0]:t.reduce(((s,r,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1]),e[0]);return new X(i,e,vt)},Vt=(e,t)=>{if(nt)e.adoptedStyleSheets=t.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(let i of t){let s=document.createElement("style"),r=ot.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=i.cssText,e.appendChild(s)}},mt=nt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(let s of t.cssRules)i+=s.cssText;return M(i)})(e):e;var{is:re,defineProperty:oe,getOwnPropertyDescriptor:ne,getOwnPropertyNames:ae,getOwnPropertySymbols:le,getPrototypeOf:he}=Object,at=globalThis,Lt=at.trustedTypes,ce=Lt?Lt.emptyScript:"",ue=at.reactiveElementPolyfillSupport,G=(e,t)=>e,K={toAttribute(e,t){switch(t){case Boolean:e=e?ce: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}},lt=(e,t)=>!re(e,t),Tt={attribute:!0,type:String,converter:K,reflect:!1,useDefault:!1,hasChanged:lt};Symbol.metadata??=Symbol("metadata"),at.litPropertyMetadata??=new WeakMap;var P=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=Tt){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 s=Symbol(),r=this.getPropertyDescriptor(t,s,i);r!==void 0&&oe(this.prototype,t,r)}}static getPropertyDescriptor(t,i,s){let{get:r,set:o}=ne(this.prototype,t)??{get(){return this[i]},set(n){this[i]=n}};return{get:r,set(n){let a=r?.call(this);o?.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Tt}static _$Ei(){if(this.hasOwnProperty(G("elementProperties")))return;let t=he(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(G("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(G("properties"))){let i=this.properties,s=[...ae(i),...le(i)];for(let r of s)this.createProperty(r,i[r])}let t=this[Symbol.metadata];if(t!==null){let i=litPropertyMetadata.get(t);if(i!==void 0)for(let[s,r]of i)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[i,s]of this.elementProperties){let r=this._$Eu(i,s);r!==void 0&&this._$Eh.set(r,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let i=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let r of s)i.unshift(mt(r))}else t!==void 0&&i.push(mt(t));return i}static _$Eu(t,i){let s=i.attribute;return s===!1?void 0:typeof s=="string"?s: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 s of i.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Vt(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,s){this._$AK(t,s)}_$ET(t,i){let s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let o=(s.converter?.toAttribute!==void 0?s.converter:K).toAttribute(i,s.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,i){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let o=s.getPropertyOptions(r),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:K;this._$Em=r;let a=n.fromAttribute(i,o.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,i,s){if(t!==void 0){let r=this.constructor,o=this[t];if(s??=r.getPropertyOptions(t),!((s.hasChanged??lt)(o,i)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,i,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,i,{useDefault:s,reflect:r,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??i??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(i=void 0),this._$AL.set(t,i)),r===!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[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,o]of s){let{wrapped:n}=o,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,o,a)}}let t=!1,i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(i)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}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){}};P.elementStyles=[],P.shadowRootOptions={mode:"open"},P[G("elementProperties")]=new Map,P[G("finalized")]=new Map,ue?.({ReactiveElement:P}),(at.reactiveElementVersions??=[]).push("2.1.1");var Et=globalThis,ht=Et.trustedTypes,It=ht?ht.createPolicy("lit-html",{createHTML:e=>e}):void 0,zt="$lit$",k=`lit$${Math.random().toFixed(9).slice(2)}$`,qt="?"+k,de=`<${qt}>`,L=document,Z=()=>L.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",xt=Array.isArray,pe=e=>xt(e)||typeof e?.[Symbol.iterator]=="function",gt=`[
2
+ \f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ot=/-->/g,Nt=/>/g,D=RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ut=/'/g,Bt=/"/g,Ft=/^(?:script|style|textarea|title)$/i,At=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),y=At(1),Ge=At(2),Ke=At(3),T=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Ht=new WeakMap,V=L.createTreeWalker(L,129);function jt(e,t){if(!xt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return It!==void 0?It.createHTML(t):t}var fe=(e,t)=>{let i=e.length-1,s=[],r,o=t===2?"<svg>":t===3?"<math>":"",n=J;for(let a=0;a<i;a++){let l=e[a],h,p,c=-1,g=0;for(;g<l.length&&(n.lastIndex=g,p=n.exec(l),p!==null);)g=n.lastIndex,n===J?p[1]==="!--"?n=Ot:p[1]!==void 0?n=Nt:p[2]!==void 0?(Ft.test(p[2])&&(r=RegExp("</"+p[2],"g")),n=D):p[3]!==void 0&&(n=D):n===D?p[0]===">"?(n=r??J,c=-1):p[1]===void 0?c=-2:(c=n.lastIndex-p[2].length,h=p[1],n=p[3]===void 0?D:p[3]==='"'?Bt:Ut):n===Bt||n===Ut?n=D:n===Ot||n===Nt?n=J:(n=D,r=void 0);let E=n===D&&e[a+1].startsWith("/>")?" ":"";o+=n===J?l+de:c>=0?(s.push(h),l.slice(0,c)+zt+l.slice(c)+k+E):l+k+(c===-2?a:E)}return[jt(e,o+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Q=class e{constructor({strings:t,_$litType$:i},s){let r;this.parts=[];let o=0,n=0,a=t.length-1,l=this.parts,[h,p]=fe(t,i);if(this.el=e.createElement(h,s),V.currentNode=this.el.content,i===2||i===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=V.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let c of r.getAttributeNames())if(c.endsWith(zt)){let g=p[n++],E=r.getAttribute(c).split(k),B=/([.?@])?(.*)/.exec(g);l.push({type:1,index:o,name:B[2],strings:E,ctor:B[1]==="."?$t:B[1]==="?"?yt:B[1]==="@"?_t:q}),r.removeAttribute(c)}else c.startsWith(k)&&(l.push({type:6,index:o}),r.removeAttribute(c));if(Ft.test(r.tagName)){let c=r.textContent.split(k),g=c.length-1;if(g>0){r.textContent=ht?ht.emptyScript:"";for(let E=0;E<g;E++)r.append(c[E],Z()),V.nextNode(),l.push({type:2,index:++o});r.append(c[g],Z())}}}else if(r.nodeType===8)if(r.data===qt)l.push({type:2,index:o});else{let c=-1;for(;(c=r.data.indexOf(k,c+1))!==-1;)l.push({type:7,index:o}),c+=k.length-1}o++}}static createElement(t,i){let s=L.createElement("template");return s.innerHTML=t,s}};function z(e,t,i=e,s){if(t===T)return t;let r=s!==void 0?i._$Co?.[s]:i._$Cl,o=Y(t)?void 0:t._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),o===void 0?r=void 0:(r=new o(e),r._$AT(e,i,s)),s!==void 0?(i._$Co??=[])[s]=r:i._$Cl=r),r!==void 0&&(t=z(e,r._$AS(e,t.values),r,s)),t}var bt=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:s}=this._$AD,r=(t?.creationScope??L).importNode(i,!0);V.currentNode=r;let o=V.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new tt(o,o.nextSibling,this,t):l.type===1?h=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(h=new wt(o,this,t)),this._$AV.push(h),l=s[++a]}n!==l?.index&&(o=V.nextNode(),n++)}return V.currentNode=L,r}p(t){let i=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}},tt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,r){this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=r,this._$Cv=r?.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=z(this,t,i),Y(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==T&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):pe(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!==v&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(L.createTextNode(t)),this._$AH=t}$(t){let{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Q.createElement(jt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(i);else{let o=new bt(r,this),n=o.u(this.options);o.p(i),this.T(n),this._$AH=o}}_$AC(t){let i=Ht.get(t.strings);return i===void 0&&Ht.set(t.strings,i=new Q(t)),i}k(t){xt(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,s,r=0;for(let o of t)r===i.length?i.push(s=new e(this.O(Z()),this.O(Z()),this,this.options)):s=i[r],s._$AI(o),r++;r<i.length&&(this._$AR(s&&s._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,r,o){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=v}_$AI(t,i=this,s,r){let o=this.strings,n=!1;if(o===void 0)t=z(this,t,i,0),n=!Y(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{let a=t,l,h;for(t=o[0],l=0;l<o.length-1;l++)h=z(this,a[s+l],i,l),h===T&&(h=this._$AH[l]),n||=!Y(h)||h!==this._$AH[l],h===v?t=v:t!==v&&(t+=(h??"")+o[l+1]),this._$AH[l]=h}n&&!r&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},$t=class extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},yt=class extends q{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},_t=class extends q{constructor(t,i,s,r,o){super(t,i,s,r,o),this.type=5}_$AI(t,i=this){if((t=z(this,t,i,0)??v)===T)return;let s=this._$AH,r=t===v&&s!==v||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==v&&(s===v||r);r&&this.element.removeEventListener(this.name,this,s),o&&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)}},wt=class{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){z(this,t)}};var ve=Et.litHtmlPolyfillSupport;ve?.(Q,tt),(Et.litHtmlVersions??=[]).push("3.3.1");var Wt=(e,t,i)=>{let s=i?.renderBefore??t,r=s._$litPart$;if(r===void 0){let o=i?.renderBefore??null;s._$litPart$=r=new tt(t.insertBefore(Z(),o),o,void 0,i??{})}return r._$AI(e),r};var St=globalThis,w=class extends P{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=Wt(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return T}};w._$litElement$=!0,w.finalized=!0,St.litElementHydrateSupport?.({LitElement:w});var me=St.litElementPolyfillSupport;me?.({LitElement:w});(St.litElementVersions??=[]).push("4.2.1");var ge={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:lt},be=(e=ge,t,i)=>{let{kind:s,metadata:r}=i,o=globalThis.litPropertyMetadata.get(r);if(o===void 0&&globalThis.litPropertyMetadata.set(r,o=new Map),s==="setter"&&((e=Object.create(e)).wrapped=!0),o.set(i.name,e),s==="accessor"){let{name:n}=i;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,l,e)},init(a){return a!==void 0&&this.C(n,void 0,e,a),a}}}if(s==="setter"){let{name:n}=i;return function(a){let l=this[n];t.call(this,a),this.requestUpdate(n,l,e)}}throw Error("Unsupported decorator location: "+s)};function u(e){return(t,i)=>typeof i=="object"?be(e,t,i):((s,r,o)=>{let n=r.hasOwnProperty(o);return r.constructor.createProperty(o,s),n?Object.getOwnPropertyDescriptor(r,o):void 0})(e,t,i)}var et="a-f\\d",$e=`#?[${et}]{3}[${et}]?`,ye=`#?[${et}]{6}([${et}]{2})?`,_e=new RegExp(`[^#${et}]`,"gi"),we=new RegExp(`^${$e}$|^${ye}$`,"i");function Ct(e,t={}){if(typeof e!="string"||_e.test(e)||!we.test(e))throw new TypeError("Expected a valid hex string");e=e.replace(/^#/,"");let i=1;e.length===8&&(i=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),e.length===4&&(i=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let s=Number.parseInt(e,16),r=s>>16,o=s>>8&255,n=s&255,a=typeof t.alpha=="number"?t.alpha:i;if(t.format==="array")return[r,o,n,a];if(t.format==="css"){let l=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${r} ${o} ${n}${l})`}return{red:r,green:o,blue:n,alpha:a}}var A=e=>e??v;var Ee=":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}",xe="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",Ae="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",Se="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",Ce=Object.defineProperty,Mt=(e,t,i,s)=>{for(var r=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=n(t,i,r)||r);return r&&Ce(t,i,r),r},F,it=(F=class extends w{static parseLevel(e){if(e){let t=Object.keys(st).find(i=>i.toLowerCase()===e.toLowerCase());return t&&st[t]}}static get styles(){return[R`
4
+ ${M(Ee)}
5
+ `]}render(){return y`${this.iconToUse&&y`<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(F.parseLevel(this.level)){case"warn":return Se;case"suggest":return Ae;case"error":return xe;default:return null}}},F.ID="sd-field-validation-message",F.levelConverter={fromAttribute(e){return F.parseLevel(e)},toAttribute(e){return e&&e.toLowerCase()}},F);Mt([u({type:String,attribute:!0})],it.prototype,"message");Mt([u({type:String,attribute:!0})],it.prototype,"icon");Mt([u({converter:it.levelConverter,reflect:!0})],it.prototype,"level");var Pt=it,st=(e=>(e.Warn="warn",e.Suggest="suggest",e.Error="error",e))(st||{});customElements.get(Pt.ID)||customElements.define(Pt.ID,Pt);var Pe=":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}",Me=Object.defineProperty,m=(e,t,i,s)=>{for(var r=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=n(t,i,r)||r);return r&&Me(t,i,r),r},ke="sd-lit-input",Xt="delegatesFocus"in window.ShadowRoot.prototype,Re=0,S,f=(S=class extends w{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let e=Re++;this._validationMessageId=S.ID+"_message_"+e,this._inputId=S.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(),Xt||(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=>{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[R`
6
+ ${M(Pe)}
7
+ `]}render(){let e,t=this.validationMessage||this.inputElement?.validationMessage,i=t||this.validationLevel!=null;return this.rows===1?e=y`
8
8
  <input
9
9
  id=${this._inputId}
10
10
  class="input"
@@ -18,13 +18,13 @@ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var pt=Object.defi
18
18
  ?required=${this.required}
19
19
  maxlength=${this.maxlength>0?this.maxlength:S.DEFAULT_MAX_LENGTH}
20
20
  aria-describedby=${this._validationMessageId}
21
- aria-invalid=${A(!!i||void 0)}
21
+ aria-invalid=${A(i)}
22
22
  aria-label=${A(this.sdAriaLabel||void 0)}
23
23
  min=${A(this.min||void 0)}
24
24
  max=${A(this.max||void 0)}
25
25
  pattern=${A(this.pattern||void 0)}
26
26
  />
27
- `:t=_`
27
+ `:e=y`
28
28
  <textarea
29
29
  id=${this._inputId}
30
30
  class="input"
@@ -38,20 +38,20 @@ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var pt=Object.defi
38
38
  maxlength=${this.maxlength>0?this.maxlength:S.DEFAULT_MAX_LENGTH}
39
39
  rows=${this.rows}
40
40
  aria-describedby=${this._validationMessageId}
41
- aria-invalid=${A(!!i||void 0)}
41
+ aria-invalid=${A(i)}
42
42
  aria-label=${A(this.sdAriaLabel||void 0)}
43
43
  ></textarea>
44
- `,_`
45
- ${this.label?_` <div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div> `:g}
44
+ `,y`
45
+ ${this.label?y` <div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div> `:v}
46
46
  <div class="input-wrapper">
47
47
  <span class="prefix"><slot name="prefix"></slot></span>
48
48
  <div class="input-container" style="position:${this.shouldFloat()?"static":"relative"};">
49
- ${this.label&&_`
49
+ ${this.label&&y`
50
50
  <label for="${this._inputId}" class="label ${this.shouldFloat()?"float":""}"
51
51
  >${this.label}</label
52
52
  >
53
53
  `}
54
- ${t}
54
+ ${e}
55
55
  </div>
56
56
  <span class="suffix"><slot name="suffix"></slot></span>
57
57
  </div>
@@ -60,25 +60,25 @@ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var pt=Object.defi
60
60
  <div class="focused-line"></div>
61
61
  </div>
62
62
  <div class="validation-message-wrapper" aria-hidden="true">
63
- ${i&&_`
63
+ ${(t||this.validationIconSrc)&&y`
64
64
  <sd-field-validation-message
65
65
  id=${this._validationMessageId}
66
66
  class="validation-message"
67
- .message=${i}
67
+ .message=${t}
68
68
  .icon=${this.validationIconSrc}
69
69
  .level=${this.validationLevel}
70
70
  >
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){var t,i;if(super.update(e),e.has("validationMessage")&&(this.validationMessage?(this.validationLevel||(this.validationLevel=j.Error),(t=this._internals)==null||t.setValidity({customError:!0},this.validationMessage)):(this.validationLevel=null,(i=this._internals)==null||i.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),this.updateFormValidity()}updateFormValidity(){if(this.validationMessage==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){var t;(t=this._internals)==null||t.setFormValue(e)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(e){this.effectiveDisabled=e||this.hasAttribute("disabled")}formAssociatedCallback(e){this._needsAutocompletedCheck=!0}formStateRestoreCallback(e,t){typeof e=="string"&&(this.value=e)}},S.ID=Me,S.DEFAULT_MAX_LENGTH=524288,S.formAssociated=!0,S.shadowRootOptions={...E.shadowRootOptions,delegatesFocus:Qt},S);b([u({type:String,reflect:!0})],m.prototype,"label",2);b([u({type:String,attribute:!0})],m.prototype,"validationMessage",2);b([u({type:String,attribute:!0})],m.prototype,"validationIconSrc",2);b([u({type:j,attribute:!0,reflect:!0})],m.prototype,"validationLevel",2);b([u({type:String,hasChanged(e,t){return t!=null&&t!=e}})],m.prototype,"currentText",2);b([u({type:Boolean,attribute:!0})],m.prototype,"alwaysFloatLabel",2);b([u({type:Boolean,attribute:!0})],m.prototype,"autocompleted",2);b([u({type:Number,attribute:!0})],m.prototype,"rows",2);b([u({type:Boolean,reflect:!0,attribute:"effective-disabled"})],m.prototype,"effectiveDisabled",2);b([u({type:Boolean,reflect:!0,attribute:"extended-prefix"})],m.prototype,"extendedPrefix",2);b([u({type:String,reflect:!0})],m.prototype,"type",2);b([u({type:String,reflect:!0})],m.prototype,"placeholder",2);b([u({type:String,reflect:!0})],m.prototype,"sdAriaLabel",2);b([u({type:Number,reflect:!0})],m.prototype,"maxlength",2);b([u({type:Boolean,reflect:!0})],m.prototype,"readonly",2);b([u({type:Boolean,reflect:!0})],m.prototype,"required",2);b([u({type:String,reflect:!0})],m.prototype,"name",2);b([u({type:Boolean,reflect:!0})],m.prototype,"inactive",2);b([u({type:String,attribute:!0})],m.prototype,"autocomplete",2);b([u({type:String,attribute:!0})],m.prototype,"min",2);b([u({type:String,attribute:!0})],m.prototype,"max",2);b([u({type:String,attribute:!0})],m.prototype,"pattern",2);var It=m;customElements.get(It.ID)||customElements.define(It.ID,It);var Le=20,Ie=1,T=1e6,te=1e6,Re=-7,De=21,Te=!1,it="[big.js] ",N=it+"Invalid ",lt=N+"decimal places",Ne=N+"rounding mode",ee=it+"Division by zero",p={},C=void 0,Oe=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function ie(){function e(t){var i=this;if(!(i instanceof e))return t===C?ie():new e(t);if(t instanceof e)i.s=t.s,i.e=t.e,i.c=t.c.slice();else{if(typeof t!="string"){if(e.strict===!0&&typeof t!="bigint")throw TypeError(N+"value");t=t===0&&1/t<0?"-0":String(t)}Ue(i,t)}i.constructor=e}return e.prototype=p,e.DP=Le,e.RM=Ie,e.NE=Re,e.PE=De,e.strict=Te,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function Ue(e,t){var i,s,r;if(!Oe.test(t))throw Error(N+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(i=t.indexOf("."))>-1&&(t=t.replace(".","")),(s=t.search(/e/i))>0?(i<0&&(i=s),i+=+t.slice(s+1),t=t.substring(0,s)):i<0&&(i=t.length),r=t.length,s=0;s<r&&t.charAt(s)=="0";)++s;if(s==r)e.c=[e.e=0];else{for(;r>0&&t.charAt(--r)=="0";);for(e.e=i-s-1,e.c=[],i=0;s<=r;)e.c[i++]=+t.charAt(s++)}return e}function O(e,t,i,s){var r=e.c;if(i===C&&(i=e.constructor.RM),i!==0&&i!==1&&i!==2&&i!==3)throw Error(Ne);if(t<1)s=i===3&&(s||!!r[0])||t===0&&(i===1&&r[0]>=5||i===2&&(r[0]>5||r[0]===5&&(s||r[1]!==C))),r.length=1,s?(e.e=e.e-t+1,r[0]=1):r[0]=e.e=0;else if(t<r.length){if(s=i===1&&r[t]>=5||i===2&&(r[t]>5||r[t]===5&&(s||r[t+1]!==C||r[t-1]&1))||i===3&&(s||!!r[0]),r.length=t,s){for(;++r[--t]>9;)if(r[t]=0,t===0){++e.e,r.unshift(1);break}}for(t=r.length;!r[--t];)r.pop()}return e}function q(e,t,i){var s=e.e,r=e.c.join(""),o=r.length;if(t)r=r.charAt(0)+(o>1?"."+r.slice(1):"")+(s<0?"e":"e+")+s;else if(s<0){for(;++s;)r="0"+r;r="0."+r}else if(s>0)if(++s>o)for(s-=o;s--;)r+="0";else s<o&&(r=r.slice(0,s)+"."+r.slice(s));else o>1&&(r=r.charAt(0)+"."+r.slice(1));return e.s<0&&i?"-"+r:r}p.abs=function(){var e=new this.constructor(this);return e.s=1,e};p.cmp=function(e){var t,i=this,s=i.c,r=(e=new i.constructor(e)).c,o=i.s,n=e.s,a=i.e,l=e.e;if(!s[0]||!r[0])return s[0]?o:r[0]?-n:0;if(o!=n)return o;if(t=o<0,a!=l)return a>l^t?1:-1;for(n=(a=s.length)<(l=r.length)?a:l,o=-1;++o<n;)if(s[o]!=r[o])return s[o]>r[o]^t?1:-1;return a==l?0:a>l^t?1:-1};p.div=function(e){var t=this,i=t.constructor,s=t.c,r=(e=new i(e)).c,o=t.s==e.s?1:-1,n=i.DP;if(n!==~~n||n<0||n>T)throw Error(lt);if(!r[0])throw Error(ee);if(!s[0])return e.s=o,e.c=[e.e=0],e;var a,l,h,d,c,f=r.slice(),y=a=r.length,ct=s.length,v=s.slice(0,a),x=v.length,U=e,ut=U.c=[],dt=0,X=n+(U.e=t.e-e.e)+1;for(U.s=o,o=X<0?0:X,f.unshift(0);x++<a;)v.push(0);do{for(h=0;h<10;h++){if(a!=(x=v.length))d=a>x?1:-1;else for(c=-1,d=0;++c<a;)if(r[c]!=v[c]){d=r[c]>v[c]?1:-1;break}if(d<0){for(l=x==a?r:f;x;){if(v[--x]<l[x]){for(c=x;c&&!v[--c];)v[c]=9;--v[c],v[x]+=10}v[x]-=l[x]}for(;!v[0];)v.shift()}else break}ut[dt++]=d?h:++h,v[0]&&d?v[x]=s[y]||0:v=[s[y]]}while((y++<ct||v[0]!==C)&&o--);return!ut[0]&&dt!=1&&(ut.shift(),U.e--,X--),dt>X&&O(U,X,i.RM,v[0]!==C),U};p.eq=function(e){return this.cmp(e)===0};p.gt=function(e){return this.cmp(e)>0};p.gte=function(e){return this.cmp(e)>-1};p.lt=function(e){return this.cmp(e)<0};p.lte=function(e){return this.cmp(e)<1};p.minus=p.sub=function(e){var t,i,s,r,o=this,n=o.constructor,a=o.s,l=(e=new n(e)).s;if(a!=l)return e.s=-l,o.plus(e);var h=o.c.slice(),d=o.e,c=e.c,f=e.e;if(!h[0]||!c[0])return c[0]?e.s=-l:h[0]?e=new n(o):e.s=1,e;if(a=d-f){for((r=a<0)?(a=-a,s=h):(f=d,s=c),s.reverse(),l=a;l--;)s.push(0);s.reverse()}else for(i=((r=h.length<c.length)?h:c).length,a=l=0;l<i;l++)if(h[l]!=c[l]){r=h[l]<c[l];break}if(r&&(s=h,h=c,c=s,e.s=-e.s),(l=(i=c.length)-(t=h.length))>0)for(;l--;)h[t++]=0;for(l=t;i>a;){if(h[--i]<c[i]){for(t=i;t&&!h[--t];)h[t]=9;--h[t],h[i]+=10}h[i]-=c[i]}for(;h[--l]===0;)h.pop();for(;h[0]===0;)h.shift(),--f;return h[0]||(e.s=1,h=[f=0]),e.c=h,e.e=f,e};p.mod=function(e){var t,i=this,s=i.constructor,r=i.s,o=(e=new s(e)).s;if(!e.c[0])throw Error(ee);return i.s=e.s=1,t=e.cmp(i)==1,i.s=r,e.s=o,t?new s(i):(r=s.DP,o=s.RM,s.DP=s.RM=0,i=i.div(e),s.DP=r,s.RM=o,this.minus(i.times(e)))};p.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e};p.plus=p.add=function(e){var t,i,s,r=this,o=r.constructor;if(e=new o(e),r.s!=e.s)return e.s=-e.s,r.minus(e);var n=r.e,a=r.c,l=e.e,h=e.c;if(!a[0]||!h[0])return h[0]||(a[0]?e=new o(r):e.s=r.s),e;if(a=a.slice(),t=n-l){for(t>0?(l=n,s=h):(t=-t,s=a),s.reverse();t--;)s.push(0);s.reverse()}for(a.length-h.length<0&&(s=h,h=a,a=s),t=h.length,i=0;t;a[t]%=10)i=(a[--t]=a[t]+h[t]+i)/10|0;for(i&&(a.unshift(i),++l),t=a.length;a[--t]===0;)a.pop();return e.c=a,e.e=l,e};p.pow=function(e){var t=this,i=new t.constructor("1"),s=i,r=e<0;if(e!==~~e||e<-te||e>te)throw Error(N+"exponent");for(r&&(e=-e);e&1&&(s=s.times(t)),e>>=1,!!e;)t=t.times(t);return r?i.div(s):s};p.prec=function(e,t){if(e!==~~e||e<1||e>T)throw Error(N+"precision");return O(new this.constructor(this),e,t)};p.round=function(e,t){if(e===C)e=0;else if(e!==~~e||e<-T||e>T)throw Error(lt);return O(new this.constructor(this),e+this.e+1,t)};p.sqrt=function(){var e,t,i,s=this,r=s.constructor,o=s.s,n=s.e,a=new r("0.5");if(!s.c[0])return new r(s);if(o<0)throw Error(it+"No square root");o=Math.sqrt(s+""),o===0||o===1/0?(t=s.c.join(""),t.length+n&1||(t+="0"),o=Math.sqrt(t),n=((n+1)/2|0)-(n<0||n&1),e=new r((o==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+n)):e=new r(o+""),n=e.e+(r.DP+=4);do i=e,e=a.times(i.plus(s.div(i)));while(i.c.slice(0,n).join("")!==e.c.slice(0,n).join(""));return O(e,(r.DP-=4)+e.e+1,r.RM)};p.times=p.mul=function(e){var t,i=this,s=i.constructor,r=i.c,o=(e=new s(e)).c,n=r.length,a=o.length,l=i.e,h=e.e;if(e.s=i.s==e.s?1:-1,!r[0]||!o[0])return e.c=[e.e=0],e;for(e.e=l+h,n<a&&(t=r,r=o,o=t,h=n,n=a,a=h),t=new Array(h=n+a);h--;)t[h]=0;for(l=a;l--;){for(a=0,h=n+l;h>l;)a=t[h]+o[l]*r[h-l-1]+a,t[h--]=a%10,a=a/10|0;t[h]=a}for(a?++e.e:t.shift(),l=t.length;!t[--l];)t.pop();return e.c=t,e};p.toExponential=function(e,t){var i=this,s=i.c[0];if(e!==C){if(e!==~~e||e<0||e>T)throw Error(lt);for(i=O(new i.constructor(i),++e,t);i.c.length<e;)i.c.push(0)}return q(i,!0,!!s)};p.toFixed=function(e,t){var i=this,s=i.c[0];if(e!==C){if(e!==~~e||e<0||e>T)throw Error(lt);for(i=O(new i.constructor(i),e+i.e+1,t),e=e+i.e+1;i.c.length<e;)i.c.push(0)}return q(i,!1,!!s)};p[Symbol.for("nodejs.util.inspect.custom")]=p.toJSON=p.toString=function(){var e=this,t=e.constructor;return q(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])};p.toNumber=function(){var e=Number(q(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(it+"Imprecise conversion");return e};p.toPrecision=function(e,t){var i=this,s=i.constructor,r=i.c[0];if(e!==C){if(e!==~~e||e<1||e>T)throw Error(N+"precision");for(i=O(new s(i),e,t);i.c.length<e;)i.c.push(0)}return q(i,e<=i.e||i.e<=s.NE||i.e>=s.PE,!!r)};p.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(it+"valueOf disallowed");return q(e,e.e<=t.NE||e.e>=t.PE,!0)};var se=ie();var Rt=class{constructor(){this._rgbaColors=new Map,this._originalColors=new Map}get colors(){return this._originalColors}set colors(t){if(this._rgbaColors.clear(),this._originalColors=t,t&&t.size){if(Array.from(t.keys()).find(s=>s<0||s>1))throw Error("The keys of the colors must represent the relative value where the color is fully applied.");t.forEach((s,r)=>{let o=this.convertFromRGBAString(s)||this.convertFromHex(s);if(Object.keys(o).length===0&&o.constructor===Object)throw Error(`Cannot convert color: ${s} to rgba-color`);this._rgbaColors.set(r,o)});let i=Array.from(this._rgbaColors.entries()).sort();this._rgbaColors=new Map(i)}}blend(t){if(!this._rgbaColors.size)throw Error("It is not possible to blend without a color list.");let i,s;for(let o of this._rgbaColors)if(i||(i=o),o[0]<t)i=o;else if(o[0]===t){i=s=o;break}else{s=o;break}s||(s=i);let r=s[0]-i[0];return r?this.blendColors(i[1],s[1],(t-i[0])/r):this.convertToRGBAString(i[1])}blendColors(t,i,s){return this.convertToRGBAString({red:Math.round(t.red+(i.red-t.red)*s),green:Math.round(t.green+(i.green-t.green)*s),blue:Math.round(t.blue+(i.blue-t.blue)*s),alpha:t.alpha+(i.alpha-t.alpha)*s})}convertFromHex(t){let i=Mt(t);return i.alpha>1&&(i.alpha/=255),i}convertFromRGBAString(t){let i=t.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d?))\))?/);return i?{red:parseInt(i[1],10),green:parseInt(i[2],10),blue:parseInt(i[3],10),alpha:parseInt(i[4],10)||1}:null}transparentize(t,i){return this.convertToRGBAString(this.convertFromRGBAString(t),i)}convertToRGBAString(t,i){return`rgba(${t.red},${t.green},${t.blue},${i||t.alpha})`}},Be=":host{display:block;position:relative;width:100%;height:48px;cursor:pointer;touch-action:none;contain:layout style}:host([hidden]){display:none!important}:host([disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([disabled]) sd-lit-input{opacity:1}#track-container{position:absolute;top:50%;left:0;height:2px;overflow:hidden}#track{position:absolute;width:100%;height:100%;transform-origin:left top;will-change:transform}:host(:focus) #thumb{top:11px;left:-14px;border-width:8px}#thumb[active]{top:7px!important;left:-18px!important;border-width:12px!important}#thumb{width:12px;height:12px;position:absolute;top:19px;left:-6px;border-radius:50%;border-width:0;background-clip:padding-box;-webkit-user-select:none;user-select:none;will-change:transform;border-style:solid}sd-lit-input{position:absolute;height:100%;width:var(--slider-suffix-width, 50px);right:0;text-align:center;outline:none;white-space:nowrap}sd-field-validation-message{position:absolute;bottom:0}",He=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,w=(e,t,i,s)=>{for(var r=s>1?void 0:s?ze(t,i):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=(s?n(t,i,r):n(r))||r);return s&&r&&He(t,i,r),r},W,$=(W=class extends E{constructor(){super(),this.thumbPosition=0,this._value=0,this._relativeValue=0,this.min=0,this.max=1,this.colorBlender=new Rt,this.baseColor=W.defaultColor,this.resizeObserver=new ResizeObserver(()=>{window.requestAnimationFrame(()=>{this.lastKnownWidth!==this.trackContainerWidth&&(this.lastKnownWidth=this.trackContainerWidth,this.doUpdateRelativeValue(this._relativeValue,!0))})})}firstUpdated(e){super.firstUpdated(e),this.updateInitialValue(),this.addEventListener(this.useTouchEvents()?"touchstart":"pointerdown",t=>{!this.hasAttribute("disabled")&&t.composedPath().indexOf(this.inputElement)===-1&&(t.preventDefault(),t.pointerId&&this.setPointerCapture(t.pointerId),this.focus(),this.listenMoveEvents(t.clientX||t.changedTouches[0].clientX))}),this.addEventListener("keydown",this.handleKeyDown,!0),this.setAttribute("aria-valuemin",this.min.toString()),this.setAttribute("aria-valuemax",this.max.toString()),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}connectedCallback(){super.connectedCallback(),["colors","min","max","step","editable","inputSuffix","value"].forEach(e=>{this.upgradeProperty(e)}),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.lastKnownWidth=void 0,this.resizeObserver.disconnect()}upgradeProperty(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}updateInitialValue(){let e=Number.parseFloat(this.getAttribute("value"))||this._value;this.setValueInternal(e)&&(this.inputElement&&(this.inputElement.value=this.formattedValue()),this.fireBothValueChangeEvents())}shouldUpdate(e){return e.has("step")&&this.setValueInternal(this._value)&&this.fireBothValueChangeEvents(),super.shouldUpdate(e)}get value(){return this._value}set value(e){this.setValueInternal(e)&&this.fireBothValueChangeEvents()}roundToStep(e){let t=Number.parseFloat(e);if(Number.isNaN(t))return this._value;if(this.step){let i=se(t).div(this.step).round().mul(this.step);t=Number.parseFloat(i.toString())}return t}setValueInternal(e){let t=this.roundToStep(e),i=this.clampValue?Math.max(this.min,Math.min(this.max,t)):t;if(this._value!==i){let s=this._value;return this._value=i,this.relativeValue=(i-this.min)/(this.max-this.min),this.setAttribute("aria-valuenow",this._value.toString()),this.requestUpdate("value",s),!0}return!1}get relativeValue(){return this._relativeValue}set relativeValue(e){this._relativeValue!==e&&this.doUpdateRelativeValue(e)}doUpdateRelativeValue(e,t){this._relativeValue=e,this.thumbPosition=Math.min(Math.max(0,e),1)*this.trackContainerWidth;let i=this.min+(this.max-this.min)*this._relativeValue;this.setValueInternal(i),!t&&this.colors&&this.colors.size&&(this.baseColor=this.colorBlender.blend(this._relativeValue))}get colors(){return this.colorBlender.colors}set colors(e){this.colorBlender.colors=e,this.colors&&this.colors.size?this.baseColor=this.colorBlender.blend(this._relativeValue):this.baseColor=W.defaultColor}static get styles(){return[V`
75
- ${k(Be)}
76
- `]}render(){let e=this.colorBlender.transparentize(this.baseColor,.26),t=`background-color:${e}; right: ${this.editable?"calc(var(--slider-suffix-width, 50px) + 8px)":"0"}`,i=`transform: scaleX(${this.relativeValue}); background-color:${this.baseColor};`,s=`transform: translateX(${this.thumbPosition}px); background-color:${this.baseColor}; border-color:${e};`;return _`
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),this.updateFormValidity()}updateFormValidity(){if(this.validationMessage==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)}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)}},S.ID=ke,S.DEFAULT_MAX_LENGTH=524288,S.formAssociated=!0,S.shadowRootOptions={...w.shadowRootOptions,delegatesFocus:Xt},S);m([u({type:String,reflect:!0})],f.prototype,"label");m([u({type:String,attribute:!0})],f.prototype,"validationMessage");m([u({type:String,attribute:!0})],f.prototype,"validationIconSrc");m([u({type:st,attribute:!0,reflect:!0})],f.prototype,"validationLevel");m([u({type:String,hasChanged(e,t){return t!=null&&t!=e}})],f.prototype,"currentText");m([u({type:Boolean,attribute:!0})],f.prototype,"alwaysFloatLabel");m([u({type:Boolean,attribute:!0})],f.prototype,"autocompleted");m([u({type:Number,attribute:!0})],f.prototype,"rows");m([u({type:Boolean,reflect:!0,attribute:"effective-disabled"})],f.prototype,"effectiveDisabled");m([u({type:Boolean,reflect:!0,attribute:"extended-prefix"})],f.prototype,"extendedPrefix");m([u({type:String,reflect:!0})],f.prototype,"type");m([u({type:String,reflect:!0})],f.prototype,"placeholder");m([u({type:String,reflect:!0})],f.prototype,"sdAriaLabel");m([u({type:Number,reflect:!0})],f.prototype,"maxlength");m([u({type:Boolean,reflect:!0})],f.prototype,"readonly");m([u({type:Boolean,reflect:!0})],f.prototype,"required");m([u({type:String,reflect:!0})],f.prototype,"name");m([u({type:Boolean,reflect:!0})],f.prototype,"inactive");m([u({type:String,attribute:!0})],f.prototype,"autocomplete");m([u({type:String,attribute:!0})],f.prototype,"min");m([u({type:String,attribute:!0})],f.prototype,"max");m([u({type:String,attribute:!0})],f.prototype,"pattern");var kt=f;customElements.get(kt.ID)||customElements.define(kt.ID,kt);var De=20,Ve=1,I=1e6,Gt=1e6,Le=-7,Te=21,Ie=!1,rt="[big.js] ",O=rt+"Invalid ",ct=O+"decimal places",Oe=O+"rounding mode",Kt=rt+"Division by zero",d={},C=void 0,Ne=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Jt(){function e(t){var i=this;if(!(i instanceof e))return t===C&&arguments.length===0?Jt():new e(t);if(t instanceof e)i.s=t.s,i.e=t.e,i.c=t.c.slice();else{if(typeof t!="string"){if(e.strict===!0&&typeof t!="bigint")throw TypeError(O+"value");t=t===0&&1/t<0?"-0":String(t)}Ue(i,t)}i.constructor=e}return e.prototype=d,e.DP=De,e.RM=Ve,e.NE=Le,e.PE=Te,e.strict=Ie,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function Ue(e,t){var i,s,r;if(!Ne.test(t))throw Error(O+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(i=t.indexOf("."))>-1&&(t=t.replace(".","")),(s=t.search(/e/i))>0?(i<0&&(i=s),i+=+t.slice(s+1),t=t.substring(0,s)):i<0&&(i=t.length),r=t.length,s=0;s<r&&t.charAt(s)=="0";)++s;if(s==r)e.c=[e.e=0];else{for(;r>0&&t.charAt(--r)=="0";);for(e.e=i-s-1,e.c=[],i=0;s<=r;)e.c[i++]=+t.charAt(s++)}return e}function N(e,t,i,s){var r=e.c;if(i===C&&(i=e.constructor.RM),i!==0&&i!==1&&i!==2&&i!==3)throw Error(Oe);if(t<1)s=i===3&&(s||!!r[0])||t===0&&(i===1&&r[0]>=5||i===2&&(r[0]>5||r[0]===5&&(s||r[1]!==C))),r.length=1,s?(e.e=e.e-t+1,r[0]=1):r[0]=e.e=0;else if(t<r.length){if(s=i===1&&r[t]>=5||i===2&&(r[t]>5||r[t]===5&&(s||r[t+1]!==C||r[t-1]&1))||i===3&&(s||!!r[0]),r.length=t,s){for(;++r[--t]>9;)if(r[t]=0,t===0){++e.e,r.unshift(1);break}}for(t=r.length;!r[--t];)r.pop()}return e}function U(e,t,i){var s=e.e,r=e.c.join(""),o=r.length;if(t)r=r.charAt(0)+(o>1?"."+r.slice(1):"")+(s<0?"e":"e+")+s;else if(s<0){for(;++s;)r="0"+r;r="0."+r}else if(s>0)if(++s>o)for(s-=o;s--;)r+="0";else s<o&&(r=r.slice(0,s)+"."+r.slice(s));else o>1&&(r=r.charAt(0)+"."+r.slice(1));return e.s<0&&i?"-"+r:r}d.abs=function(){var e=new this.constructor(this);return e.s=1,e};d.cmp=function(e){var t,i=this,s=i.c,r=(e=new i.constructor(e)).c,o=i.s,n=e.s,a=i.e,l=e.e;if(!s[0]||!r[0])return s[0]?o:r[0]?-n:0;if(o!=n)return o;if(t=o<0,a!=l)return a>l^t?1:-1;for(n=(a=s.length)<(l=r.length)?a:l,o=-1;++o<n;)if(s[o]!=r[o])return s[o]>r[o]^t?1:-1;return a==l?0:a>l^t?1:-1};d.div=function(e){var t=this,i=t.constructor,s=t.c,r=(e=new i(e)).c,o=t.s==e.s?1:-1,n=i.DP;if(n!==~~n||n<0||n>I)throw Error(ct);if(!r[0])throw Error(Kt);if(!s[0])return e.s=o,e.c=[e.e=0],e;var a,l,h,p,c,g=r.slice(),E=a=r.length,B=s.length,b=s.slice(0,a),x=b.length,H=e,dt=H.c=[],pt=0,W=n+(H.e=t.e-e.e)+1;for(H.s=o,o=W<0?0:W,g.unshift(0);x++<a;)b.push(0);do{for(h=0;h<10;h++){if(a!=(x=b.length))p=a>x?1:-1;else for(c=-1,p=0;++c<a;)if(r[c]!=b[c]){p=r[c]>b[c]?1:-1;break}if(p<0){for(l=x==a?r:g;x;){if(b[--x]<l[x]){for(c=x;c&&!b[--c];)b[c]=9;--b[c],b[x]+=10}b[x]-=l[x]}for(;!b[0];)b.shift()}else break}dt[pt++]=p?h:++h,b[0]&&p?b[x]=s[E]||0:b=[s[E]]}while((E++<B||b[0]!==C)&&o--);return!dt[0]&&pt!=1&&(dt.shift(),H.e--,W--),pt>W&&N(H,W,i.RM,b[0]!==C),H};d.eq=function(e){return this.cmp(e)===0};d.gt=function(e){return this.cmp(e)>0};d.gte=function(e){return this.cmp(e)>-1};d.lt=function(e){return this.cmp(e)<0};d.lte=function(e){return this.cmp(e)<1};d.minus=d.sub=function(e){var t,i,s,r,o=this,n=o.constructor,a=o.s,l=(e=new n(e)).s;if(a!=l)return e.s=-l,o.plus(e);var h=o.c.slice(),p=o.e,c=e.c,g=e.e;if(!h[0]||!c[0])return c[0]?e.s=-l:h[0]?e=new n(o):e.s=1,e;if(a=p-g){for((r=a<0)?(a=-a,s=h):(g=p,s=c),s.reverse(),l=a;l--;)s.push(0);s.reverse()}else for(i=((r=h.length<c.length)?h:c).length,a=l=0;l<i;l++)if(h[l]!=c[l]){r=h[l]<c[l];break}if(r&&(s=h,h=c,c=s,e.s=-e.s),(l=(i=c.length)-(t=h.length))>0)for(;l--;)h[t++]=0;for(l=t;i>a;){if(h[--i]<c[i]){for(t=i;t&&!h[--t];)h[t]=9;--h[t],h[i]+=10}h[i]-=c[i]}for(;h[--l]===0;)h.pop();for(;h[0]===0;)h.shift(),--g;return h[0]||(e.s=1,h=[g=0]),e.c=h,e.e=g,e};d.mod=function(e){var t,i=this,s=i.constructor,r=i.s,o=(e=new s(e)).s;if(!e.c[0])throw Error(Kt);return i.s=e.s=1,t=e.cmp(i)==1,i.s=r,e.s=o,t?new s(i):(r=s.DP,o=s.RM,s.DP=s.RM=0,i=i.div(e),s.DP=r,s.RM=o,this.minus(i.times(e)))};d.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e};d.plus=d.add=function(e){var t,i,s,r=this,o=r.constructor;if(e=new o(e),r.s!=e.s)return e.s=-e.s,r.minus(e);var n=r.e,a=r.c,l=e.e,h=e.c;if(!a[0]||!h[0])return h[0]||(a[0]?e=new o(r):e.s=r.s),e;if(a=a.slice(),t=n-l){for(t>0?(l=n,s=h):(t=-t,s=a),s.reverse();t--;)s.push(0);s.reverse()}for(a.length-h.length<0&&(s=h,h=a,a=s),t=h.length,i=0;t;a[t]%=10)i=(a[--t]=a[t]+h[t]+i)/10|0;for(i&&(a.unshift(i),++l),t=a.length;a[--t]===0;)a.pop();return e.c=a,e.e=l,e};d.pow=function(e){var t=this,i=new t.constructor("1"),s=i,r=e<0;if(e!==~~e||e<-Gt||e>Gt)throw Error(O+"exponent");for(r&&(e=-e);e&1&&(s=s.times(t)),e>>=1,!!e;)t=t.times(t);return r?i.div(s):s};d.prec=function(e,t){if(e!==~~e||e<1||e>I)throw Error(O+"precision");return N(new this.constructor(this),e,t)};d.round=function(e,t){if(e===C)e=0;else if(e!==~~e||e<-I||e>I)throw Error(ct);return N(new this.constructor(this),e+this.e+1,t)};d.sqrt=function(){var e,t,i,s=this,r=s.constructor,o=s.s,n=s.e,a=new r("0.5");if(!s.c[0])return new r(s);if(o<0)throw Error(rt+"No square root");o=Math.sqrt(+U(s,!0,!0)),o===0||o===1/0?(t=s.c.join(""),t.length+n&1||(t+="0"),o=Math.sqrt(t),n=((n+1)/2|0)-(n<0||n&1),e=new r((o==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+n)):e=new r(o+""),n=e.e+(r.DP+=4);do i=e,e=a.times(i.plus(s.div(i)));while(i.c.slice(0,n).join("")!==e.c.slice(0,n).join(""));return N(e,(r.DP-=4)+e.e+1,r.RM)};d.times=d.mul=function(e){var t,i=this,s=i.constructor,r=i.c,o=(e=new s(e)).c,n=r.length,a=o.length,l=i.e,h=e.e;if(e.s=i.s==e.s?1:-1,!r[0]||!o[0])return e.c=[e.e=0],e;for(e.e=l+h,n<a&&(t=r,r=o,o=t,h=n,n=a,a=h),t=new Array(h=n+a);h--;)t[h]=0;for(l=a;l--;){for(a=0,h=n+l;h>l;)a=t[h]+o[l]*r[h-l-1]+a,t[h--]=a%10,a=a/10|0;t[h]=a}for(a?++e.e:t.shift(),l=t.length;!t[--l];)t.pop();return e.c=t,e};d.toExponential=function(e,t){var i=this,s=i.c[0];if(e!==C){if(e!==~~e||e<0||e>I)throw Error(ct);for(i=N(new i.constructor(i),++e,t);i.c.length<e;)i.c.push(0)}return U(i,!0,!!s)};d.toFixed=function(e,t){var i=this,s=i.c[0];if(e!==C){if(e!==~~e||e<0||e>I)throw Error(ct);for(i=N(new i.constructor(i),e+i.e+1,t),e=e+i.e+1;i.c.length<e;)i.c.push(0)}return U(i,!1,!!s)};d.toJSON=d.toString=function(){var e=this,t=e.constructor;return U(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])};typeof Symbol<"u"&&(d[Symbol.for("nodejs.util.inspect.custom")]=d.toJSON);d.toNumber=function(){var e=+U(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(rt+"Imprecise conversion");return e};d.toPrecision=function(e,t){var i=this,s=i.constructor,r=i.c[0];if(e!==C){if(e!==~~e||e<1||e>I)throw Error(O+"precision");for(i=N(new s(i),e,t);i.c.length<e;)i.c.push(0)}return U(i,e<=i.e||i.e<=s.NE||i.e>=s.PE,!!r)};d.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(rt+"valueOf disallowed");return U(e,e.e<=t.NE||e.e>=t.PE,!0)};var Zt=Jt();var Rt=class{constructor(){this._rgbaColors=new Map,this._originalColors=new Map}get colors(){return this._originalColors}set colors(t){if(this._rgbaColors.clear(),this._originalColors=t,t&&t.size){if(Array.from(t.keys()).find(s=>s<0||s>1))throw Error("The keys of the colors must represent the relative value where the color is fully applied.");t.forEach((s,r)=>{let o=this.convertFromRGBAString(s)||this.convertFromHex(s);if(Object.keys(o).length===0&&o.constructor===Object)throw Error(`Cannot convert color: ${s} to rgba-color`);this._rgbaColors.set(r,o)});let i=Array.from(this._rgbaColors.entries()).sort();this._rgbaColors=new Map(i)}}blend(t){if(!this._rgbaColors.size)throw Error("It is not possible to blend without a color list.");let i,s;for(let o of this._rgbaColors)if(i||(i=o),o[0]<t)i=o;else if(o[0]===t){i=s=o;break}else{s=o;break}s||(s=i);let r=s[0]-i[0];return r?this.blendColors(i[1],s[1],(t-i[0])/r):this.convertToRGBAString(i[1])}blendColors(t,i,s){return this.convertToRGBAString({red:Math.round(t.red+(i.red-t.red)*s),green:Math.round(t.green+(i.green-t.green)*s),blue:Math.round(t.blue+(i.blue-t.blue)*s),alpha:t.alpha+(i.alpha-t.alpha)*s})}convertFromHex(t){let i=Ct(t);return i.alpha>1&&(i.alpha/=255),i}convertFromRGBAString(t){let i=t.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d?))\))?/);return i?{red:parseInt(i[1],10),green:parseInt(i[2],10),blue:parseInt(i[3],10),alpha:parseInt(i[4],10)||1}:null}transparentize(t,i){return this.convertToRGBAString(this.convertFromRGBAString(t),i)}convertToRGBAString(t,i){return`rgba(${t.red},${t.green},${t.blue},${i||t.alpha})`}},Be=":host{display:block;position:relative;width:100%;height:48px;cursor:pointer;touch-action:none;contain:layout style}:host([hidden]){display:none!important}:host([disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([disabled]) sd-lit-input{opacity:1}#track-container{position:absolute;top:50%;left:0;height:2px;overflow:hidden}#track{position:absolute;width:100%;height:100%;transform-origin:left top;will-change:transform}:host(:focus) #thumb{top:11px;left:-14px;border-width:8px}#thumb[active]{top:7px!important;left:-18px!important;border-width:12px!important}#thumb{width:12px;height:12px;position:absolute;top:19px;left:-6px;border-radius:50%;border-width:0;background-clip:padding-box;-webkit-user-select:none;user-select:none;will-change:transform;border-style:solid}sd-lit-input{position:absolute;height:100%;width:var(--slider-suffix-width, 50px);right:0;text-align:center;outline:none;white-space:nowrap}sd-field-validation-message{position:absolute;bottom:0}",He=Object.defineProperty,_=(e,t,i,s)=>{for(var r=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=n(t,i,r)||r);return r&&He(t,i,r),r},j,$=(j=class extends w{constructor(){super(),this.thumbPosition=0,this._value=0,this._relativeValue=0,this.min=0,this.max=1,this.colorBlender=new Rt,this.baseColor=j.defaultColor,this.resizeObserver=new ResizeObserver(()=>{window.requestAnimationFrame(()=>{this.lastKnownWidth!==this.trackContainerWidth&&(this.lastKnownWidth=this.trackContainerWidth,this.doUpdateRelativeValue(this._relativeValue,!0))})})}firstUpdated(e){super.firstUpdated(e),this.updateValue(Number.parseFloat(this.getAttribute("value"))||this._value),this.addEventListener(this.useTouchEvents()?"touchstart":"pointerdown",t=>{!this.hasAttribute("disabled")&&t.composedPath().indexOf(this.inputElement)===-1&&(t.preventDefault(),t.pointerId&&this.setPointerCapture(t.pointerId),this.focus(),this.listenMoveEvents(t.clientX||t.changedTouches[0].clientX))}),this.addEventListener("keydown",this.handleKeyDown,!0),this.setAttribute("aria-valuemin",this.min.toString()),this.setAttribute("aria-valuemax",this.max.toString()),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}connectedCallback(){super.connectedCallback(),["colors","min","max","step","editable","inputSuffix","value"].forEach(e=>{this.upgradeProperty(e)}),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.lastKnownWidth=void 0,this.resizeObserver.disconnect()}upgradeProperty(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}static get observedAttributes(){let e=super.observedAttributes;return e.push("value"),e}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),(e==="value"||e=="step")&&this.hasUpdated&&this.updateValue(Number.parseFloat(i))}updateValue(e){this.setValueInternal(e)&&(this.inputElement&&(this.inputElement.value=this.formattedValue()),this._value!=e&&this.fireBothValueChangeEvents())}get value(){return this._value}set value(e){this.setValueInternal(e)&&this.fireBothValueChangeEvents()}roundToStep(e){let t=Number.parseFloat(e);if(Number.isNaN(t))return this._value;if(this.step&&t>=this.min&&t<=this.max){let i=new Zt(t).minus(this.min).div(this.step).round().mul(this.step).plus(this.min);t=Number.parseFloat(i.toString())}return t}setValueInternal(e){let t=this.roundToStep(e),i=this.clampValue?Math.max(this.min,Math.min(this.max,t)):t;if(this._value!==i){let s=this._value;return this._value=i,this.relativeValue=(i-this.min)/(this.max-this.min),this.setAttribute("aria-valuenow",this._value.toString()),this.requestUpdate("value",s),!0}return!1}get relativeValue(){return this._relativeValue}set relativeValue(e){this._relativeValue!==e&&this.doUpdateRelativeValue(e)}doUpdateRelativeValue(e,t){this._relativeValue=e,this.thumbPosition=Math.min(Math.max(0,e),1)*this.trackContainerWidth;let i=this.min+(this.max-this.min)*this._relativeValue;this.setValueInternal(i),!t&&this.colors&&this.colors.size&&(this.baseColor=this.colorBlender.blend(this._relativeValue))}get colors(){return this.colorBlender.colors}set colors(e){this.colorBlender.colors=e,this.colors&&this.colors.size?this.baseColor=this.colorBlender.blend(this._relativeValue):this.baseColor=j.defaultColor}static get styles(){return[R`
75
+ ${M(Be)}
76
+ `]}render(){let e=this.colorBlender.transparentize(this.baseColor,.26),t=`background-color:${e}; right: ${this.editable?"calc(var(--slider-suffix-width, 50px) + 8px)":"0"}`,i=`transform: scaleX(${this.relativeValue}); background-color:${this.baseColor};`,s=`transform: translateX(${this.thumbPosition}px); background-color:${this.baseColor}; border-color:${e};`;return y`
77
77
  <div id="track-container" style="${t}">
78
78
  <div id="track" style="${i}"></div>
79
79
  </div>
80
80
  <div id="thumb" ?active="${this.active}" style="${s}"></div>
81
- ${this.editable&&_`
81
+ ${this.editable&&y`
82
82
  <sd-lit-input
83
83
  .value="${this.formattedValue()}"
84
84
  @value-change="${this.onInputValueChange}"
@@ -86,7 +86,7 @@ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var pt=Object.defi
86
86
  ><span slot="suffix">${this.inputSuffix}</span>
87
87
  </sd-lit-input>
88
88
  `}
89
- ${this.validationMessage&&_`
89
+ ${this.validationMessage&&y`
90
90
  <sd-field-validation-message
91
91
  .message="${this.validationMessage}"
92
92
  .icon="${this.validationIconSrc}"
@@ -94,7 +94,7 @@ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var pt=Object.defi
94
94
  >
95
95
  </sd-field-validation-message>
96
96
  `}
97
- `}listenMoveEvents(e){this.active=!0,this.onPointerMove(e);let t=[],i=r=>{r.stopPropagation(),r.preventDefault(),this.onPointerMove(r.clientX||r.changedTouches&&r.changedTouches[0].clientX)},s=()=>{this.active=!1,t.forEach(r=>r.remove()),this.fireValueChange()};this.useTouchEvents()?(t.push(this.addPointerEventListener("touchmove",i)),t.push(this.addPointerEventListener("touchend",s)),t.push(this.addPointerEventListener("touchcancel",s))):(t.push(this.addPointerEventListener("pointermove",i)),t.push(this.addPointerEventListener("pointerup",s)))}onPointerMove(e){this.updateAlreadyRequested||(this.updateAlreadyRequested=!0,window.requestAnimationFrame(async()=>{this.updateAlreadyRequested=!1,this.updateThumbPosition(e);let t=this.relativeValue;this.relativeValue=this.thumbPosition/this.trackContainerWidth,this.relativeValue!==t&&(await this.updateComplete,this.fireValueChange(!0),this.active||this.fireValueChange())}))}addPointerEventListener(e,t){return window.addEventListener(e,t,!0),{remove:()=>{window.removeEventListener(e,t,!0)}}}updateThumbPosition(e){if(this.thumbPosition=Math.min(this.trackContainerWidth,Math.max(0,e-this.getBoundingClientRect().left)),this.max-this.min>1){let t=this.trackContainerWidth/(this.max-this.min),i=this.thumbPosition%t;i&&(i<t/2?this.thumbPosition-=i:this.thumbPosition+=t-i)}}onInputValueChange(e){this.value=Number(e.detail.value.replace(RegExp(this.escapedDecimalSeparator),".")),String(this.value)!==String(e.detail.value)&&(e.target.value=String(this.value))}formattedValue(){return this.value.toString().replace(/\./,this.decimalSeparatorOrDefault)}get escapedDecimalSeparator(){return this.decimalSeparatorOrDefault.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}get decimalSeparatorOrDefault(){return this.decimalSeparator||1.1.toLocaleString(this.navigatorLanguage).substring(1,2)}get navigatorLanguage(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en"}handleKeyDown(e){if(!this.hasAttribute("disabled")&&e.composedPath().indexOf(this.inputElement)===-1){let t=this.step||(this.max-this.min)/100;switch(this.max-this.min>1&&(t=Math.round(t)||1),e.keyCode){case 37:case 40:this.value=Math.max(this.value-t,this.min),e.preventDefault();break;case 38:case 39:this.value=Math.min(this.value+t,this.max),e.preventDefault();break}}}get inputElement(){return this._inputElement||(this._inputElement=this.shadowRoot.querySelector("sd-lit-input")),this._inputElement}get trackContainer(){return this._trackContainer||(this._trackContainer=this.shadowRoot.querySelector("#track-container")),this._trackContainer}get trackContainerWidth(){return this.trackContainer&&this.trackContainer.offsetWidth}fireBothValueChangeEvents(){this.fireValueChange(!0),this.fireValueChange()}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}}))}useTouchEvents(){return this.hasAttribute("use-touch-events")}},W.ID="sd-lit-slider",W.defaultColor="rgb(20, 103, 186)",W);w([u({type:Number})],$.prototype,"thumbPosition",2);w([u({type:Number,reflect:!0})],$.prototype,"min",2);w([u({type:Number,reflect:!0})],$.prototype,"max",2);w([u({type:Number,reflect:!0})],$.prototype,"step",2);w([u({type:Boolean,reflect:!0})],$.prototype,"editable",2);w([u({type:Boolean,reflect:!0})],$.prototype,"clampValue",2);w([u({type:String,reflect:!0})],$.prototype,"inputSuffix",2);w([u({type:Boolean,reflect:!0})],$.prototype,"disabled",2);w([u({type:String,attribute:!0})],$.prototype,"validationMessage",2);w([u({type:String,attribute:!0})],$.prototype,"validationIconSrc",2);w([u({type:String,attribute:!0})],$.prototype,"validationLevel",2);w([u({type:String,attribute:!0})],$.prototype,"decimalSeparator",2);w([u({type:Boolean})],$.prototype,"active",2);w([u()],$.prototype,"baseColor",2);var ht=$;customElements.get(ht.ID)||customElements.define(ht.ID,ht);return he(Fe);})();
97
+ `}listenMoveEvents(e){this.active=!0,this.onPointerMove(e);let t=[],i=r=>{r.stopPropagation(),r.preventDefault(),this.onPointerMove(r.clientX||r.changedTouches&&r.changedTouches[0].clientX)},s=()=>{this.active=!1,t.forEach(r=>r.remove()),this.fireValueChange()};this.useTouchEvents()?(t.push(this.addPointerEventListener("touchmove",i)),t.push(this.addPointerEventListener("touchend",s)),t.push(this.addPointerEventListener("touchcancel",s))):(t.push(this.addPointerEventListener("pointermove",i)),t.push(this.addPointerEventListener("pointerup",s)))}onPointerMove(e){this.updateAlreadyRequested||(this.updateAlreadyRequested=!0,window.requestAnimationFrame(async()=>{this.updateAlreadyRequested=!1,this.updateThumbPosition(e);let t=this.relativeValue;this.relativeValue=this.thumbPosition/this.trackContainerWidth,this.relativeValue!==t&&(await this.updateComplete,this.fireValueChange(!0),this.active||this.fireValueChange())}))}addPointerEventListener(e,t){return window.addEventListener(e,t,!0),{remove:()=>{window.removeEventListener(e,t,!0)}}}updateThumbPosition(e){if(this.thumbPosition=Math.min(this.trackContainerWidth,Math.max(0,e-this.getBoundingClientRect().left)),this.max-this.min>1){let t=this.trackContainerWidth/(this.max-this.min),i=this.thumbPosition%t;i&&(i<t/2?this.thumbPosition-=i:this.thumbPosition+=t-i)}}onInputValueChange(e){this.value=Number(e.detail.value.replace(RegExp(this.escapedDecimalSeparator),".")),String(this.value)!==String(e.detail.value)&&(e.target.value=String(this.value))}formattedValue(){return this.value.toString().replace(/\./,this.decimalSeparatorOrDefault)}get escapedDecimalSeparator(){return this.decimalSeparatorOrDefault.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}get decimalSeparatorOrDefault(){return this.decimalSeparator||1.1.toLocaleString(this.navigatorLanguage).substring(1,2)}get navigatorLanguage(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en"}handleKeyDown(e){if(!this.hasAttribute("disabled")&&e.composedPath().indexOf(this.inputElement)===-1){let t=this.step||(this.max-this.min)/100;switch(this.max-this.min>1&&(t=Math.round(t)||1),e.keyCode){case 37:case 40:this.value=Math.max(this.value-t,this.min),e.preventDefault();break;case 38:case 39:this.value=Math.min(this.value+t,this.max),e.preventDefault();break}}}get inputElement(){return this._inputElement||(this._inputElement=this.shadowRoot.querySelector("sd-lit-input")),this._inputElement}get trackContainer(){return this._trackContainer||(this._trackContainer=this.shadowRoot.querySelector("#track-container")),this._trackContainer}get trackContainerWidth(){return this.trackContainer&&this.trackContainer.offsetWidth}fireBothValueChangeEvents(){this.fireValueChange(!0),this.fireValueChange()}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}}))}useTouchEvents(){return this.hasAttribute("use-touch-events")}},j.ID="sd-lit-slider",j.defaultColor="rgb(20, 103, 186)",j);_([u({type:Number})],$.prototype,"thumbPosition");_([u({type:Number,reflect:!0})],$.prototype,"min");_([u({type:Number,reflect:!0})],$.prototype,"max");_([u({type:Number,reflect:!0})],$.prototype,"step");_([u({type:Boolean,reflect:!0})],$.prototype,"editable");_([u({type:Boolean,reflect:!0})],$.prototype,"clampValue");_([u({type:String,reflect:!0})],$.prototype,"inputSuffix");_([u({type:Boolean,reflect:!0})],$.prototype,"disabled");_([u({type:String,attribute:!0})],$.prototype,"validationMessage");_([u({type:String,attribute:!0})],$.prototype,"validationIconSrc");_([u({type:String,attribute:!0})],$.prototype,"validationLevel");_([u({type:String,attribute:!0})],$.prototype,"decimalSeparator");_([u({type:Boolean})],$.prototype,"active");_([u()],$.prototype,"baseColor");var ut=$;customElements.get(ut.ID)||customElements.define(ut.ID,ut);return se(ze);})();
98
98
  /*! Bundled license information:
99
99
 
100
100
  @lit/reactive-element/css-tag.js:
@@ -105,20 +105,9 @@ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var pt=Object.defi
105
105
  *)
106
106
 
107
107
  @lit/reactive-element/reactive-element.js:
108
- (**
109
- * @license
110
- * Copyright 2017 Google LLC
111
- * SPDX-License-Identifier: BSD-3-Clause
112
- *)
113
-
114
108
  lit-html/lit-html.js:
115
- (**
116
- * @license
117
- * Copyright 2017 Google LLC
118
- * SPDX-License-Identifier: BSD-3-Clause
119
- *)
120
-
121
109
  lit-element/lit-element.js:
110
+ @lit/reactive-element/decorators/property.js:
122
111
  (**
123
112
  * @license
124
113
  * Copyright 2017 Google LLC
@@ -132,13 +121,6 @@ lit-html/is-server.js:
132
121
  * SPDX-License-Identifier: BSD-3-Clause
133
122
  *)
134
123
 
135
- @lit/reactive-element/decorators/property.js:
136
- (**
137
- * @license
138
- * Copyright 2017 Google LLC
139
- * SPDX-License-Identifier: BSD-3-Clause
140
- *)
141
-
142
124
  lit-html/directives/if-defined.js:
143
125
  (**
144
126
  * @license