@fluid-topics/ft-switch 0.3.14 → 0.3.16

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.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(r.set(s,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=a;if(i)return a=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),s.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=l.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,s=o._getDefinition(i);return s?u(e,s):n.set(e,o),e}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,s),e.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);s.call(this,o),e.call(this,o,t,null)}else s.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),s.set(t,i),a=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let x=[document];const v=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){x.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const g=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){x.push(this),e.set.call(this,t),x.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==s.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),s=i.get(o)||[];this[+e]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=s.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch(pe){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let p=e.call(o,t);p||(p=c(t),i.call(o,t,p)),this===window.customElements&&(r.set(s,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=a;if(i)return a=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),s.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let i=t.getRootNode();if(!h(i)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=l.get(i)?.getRootNode()||document)}return i.customElements},c=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=p(e)||window.customElements,s=o._getDefinition(i);return s?u(e,s):n.set(e,o),e}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,s),e.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);s.call(this,o),e.call(this,o,t,null)}else s.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),s.set(t,i),a=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let x=[document];const v=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){x.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const g=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){x.push(this),e.set.call(this,t),x.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==s.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),s=i.get(o)||[];this[+e]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=s.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch(ce){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -45,7 +45,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
45
45
  * Copyright 2019 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),f=new WeakMap;class d{constructor(t,i,e){if(this._$cssResult$=!0,e!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(c&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=f.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&f.set(i,t))}return t}toString(){return this.cssText}}const u=t=>new d("string"==typeof t?t:t+"",void 0,p),y=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new d(e,t,p)},x=(t,i)=>{c?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},v=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return u(i)})(t):t
48
+ const p=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),f=new WeakMap;class d{constructor(t,i,e){if(this._$cssResult$=!0,e!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(p&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=f.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&f.set(i,t))}return t}toString(){return this.cssText}}const u=t=>new d("string"==typeof t?t:t+"",void 0,c),y=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new d(e,t,c)},x=(t,i)=>{p?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},v=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return u(i)})(t):t
49
49
  /**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
@@ -56,13 +56,13 @@ const c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShad
56
56
  * Copyright 2017 Google LLC
57
57
  * SPDX-License-Identifier: BSD-3-Clause
58
58
  */
59
- var C;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:k}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.3.4");const N=globalThis.trustedTypes,E=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,M="?"+R,U=`<${M}>`,F=document,z=(t="")=>F.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,B=/>/g,P=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),_=/'/g,W=/"/g,D=/^(?:script|style|textarea|title)$/i,I=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),H=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Z=new WeakMap,V=F.createTreeWalker(F,129,null,!1),J=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=L;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,c=0;for(;c<e.length&&(r.lastIndex=c,a=r.exec(e),null!==a);)c=r.lastIndex,r===L?"!--"===a[1]?r=T:void 0!==a[1]?r=B:void 0!==a[2]?(D.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=P):void 0!==a[3]&&(r=P):r===P?">"===a[0]?(r=null!=s?s:L,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?P:'"'===a[3]?W:_):r===W||r===_?r=P:r===T||r===B?r=L:(r=P,s=void 0);const p=r===P&&t[i+1].startsWith("/>")?" ":"";n+=r===L?e+U:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+R+p):e+R+(-2===h?(o.push(void 0),i):p)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(l):l,o]};class q{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=J(t,i);if(this.el=q.createElement(a,e),V.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=V.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(R)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(R),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?tt:"?"===i[1]?et:"@"===i[1]?ot:Q})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(D.test(o.tagName)){const t=o.textContent.split(R),i=t.length-1;if(i>0){o.textContent=N?N.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],z()),V.nextNode(),l.push({type:2,index:++s});o.append(t[i],z())}}}else if(8===o.nodeType)if(o.data===M)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)l.push({type:7,index:s}),t+=R.length-1}s++}}static createElement(t,i){const e=F.createElement("template");return e.innerHTML=t,e}}function X(t,i,e=t,o){var s,n,r,l;if(i===H)return i;let a=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const h=j(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=X(t,a._$AS(t,i.values),a,o)),i}class Y{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:F).importNode(e,!0);V.currentNode=s;let n=V.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new G(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new st(n,this,t)),this.v.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=V.nextNode(),r++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var s;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$C_}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=X(this,t,i),j(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==H&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==K&&j(this._$AH)?this._$AA.nextSibling.data=t:this.k(F.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new Y(s,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=Z.get(t.strings);return void 0===i&&Z.set(t.strings,i=new q(t)),i}S(t){A(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new G(this.j(z()),this.j(z()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Q{constructor(t,i,e,o,s){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=X(this,t,i,0),n=!j(t)||t!==this._$AH&&t!==H,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=X(this,o[e+r],i,r),l===H&&(l=this._$AH[r]),n||(n=!j(l)||l!==this._$AH[r]),l===K?t=K:t!==K&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.P(t)}P(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends Q{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===K?void 0:t}}const it=N?N.emptyScript:"";class et extends Q{constructor(){super(...arguments),this.type=4}P(t){t&&t!==K?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class ot extends Q{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=X(this,t,i,0))&&void 0!==e?e:K)===H)return;const o=this._$AH,s=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==K&&(o===K||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const nt=window.litHtmlPolyfillSupport;
59
+ var C;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:k}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.3.4");const N=globalThis.trustedTypes,E=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,M="?"+R,U=`<${M}>`,F=document,z=(t="")=>F.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,B=/>/g,P=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),_=/'/g,W=/"/g,D=/^(?:script|style|textarea|title)$/i,I=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),H=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Z=new WeakMap,V=F.createTreeWalker(F,129,null,!1),J=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=L;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,a=r.exec(e),null!==a);)p=r.lastIndex,r===L?"!--"===a[1]?r=T:void 0!==a[1]?r=B:void 0!==a[2]?(D.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=P):void 0!==a[3]&&(r=P):r===P?">"===a[0]?(r=null!=s?s:L,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?P:'"'===a[3]?W:_):r===W||r===_?r=P:r===T||r===B?r=L:(r=P,s=void 0);const c=r===P&&t[i+1].startsWith("/>")?" ":"";n+=r===L?e+U:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+R+c):e+R+(-2===h?(o.push(void 0),i):c)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(l):l,o]};class q{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=J(t,i);if(this.el=q.createElement(a,e),V.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=V.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(R)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(R),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?tt:"?"===i[1]?et:"@"===i[1]?ot:Q})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(D.test(o.tagName)){const t=o.textContent.split(R),i=t.length-1;if(i>0){o.textContent=N?N.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],z()),V.nextNode(),l.push({type:2,index:++s});o.append(t[i],z())}}}else if(8===o.nodeType)if(o.data===M)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)l.push({type:7,index:s}),t+=R.length-1}s++}}static createElement(t,i){const e=F.createElement("template");return e.innerHTML=t,e}}function X(t,i,e=t,o){var s,n,r,l;if(i===H)return i;let a=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const h=j(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=X(t,a._$AS(t,i.values),a,o)),i}class Y{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:F).importNode(e,!0);V.currentNode=s;let n=V.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new G(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new st(n,this,t)),this.v.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=V.nextNode(),r++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var s;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$C_}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=X(this,t,i),j(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==H&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==K&&j(this._$AH)?this._$AA.nextSibling.data=t:this.k(F.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new Y(s,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=Z.get(t.strings);return void 0===i&&Z.set(t.strings,i=new q(t)),i}S(t){A(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new G(this.j(z()),this.j(z()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Q{constructor(t,i,e,o,s){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=X(this,t,i,0),n=!j(t)||t!==this._$AH&&t!==H,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=X(this,o[e+r],i,r),l===H&&(l=this._$AH[r]),n||(n=!j(l)||l!==this._$AH[r]),l===K?t=K:t!==K&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.P(t)}P(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends Q{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===K?void 0:t}}const it=N?N.emptyScript:"";class et extends Q{constructor(){super(...arguments),this.type=4}P(t){t&&t!==K?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class ot extends Q{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=X(this,t,i,0))&&void 0!==e?e:K)===H)return;const o=this._$AH,s=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==K&&(o===K||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const nt=window.litHtmlPolyfillSupport;
60
60
  /**
61
61
  * @license
62
62
  * Copyright 2017 Google LLC
63
63
  * SPDX-License-Identifier: BSD-3-Clause
64
64
  */
65
- var rt,lt;null==nt||nt(q,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.2.7");class at extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,s;const n=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new G(i.insertBefore(z(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return H}}at.finalized=!0,at._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:at});const ht=globalThis.litElementPolyfillSupport;null==ht||ht({LitElement:at}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");class ct{static create(t,i,e){let o=t=>u(null!=t?t:e),s=y`var(${u(t)}, ${o(e)})`;return s.name=t,s.category=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>y`var(${u(t)}, ${o(i)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>e,s}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),s=y`var(${u(t)}, ${o(e)})`;return s.name=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>y`var(${u(t)}, ${o(i)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>e,s}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):u(null!=i?i:t.defaultValue),o=y`var(${u(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>y`var(${u(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function pt(t,i){return u(`${t.name}: ${i}`)}const ft={colorPrimary:ct.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ct.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ct.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ct.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ct.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ct.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ct.create("--ft-color-error","COLOR","#B00020"),colorOutline:ct.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ct.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ct.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ct.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ct.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ct.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ct.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ct.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ct.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ct.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ct.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ct.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ct.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ct.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ct.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ct.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ct.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ct.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ct.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ct.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ct.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ct.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ct.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ct.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ct.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ct.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ct.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ct.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ct.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ct.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ct.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ct.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ct.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ct.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ct.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ct.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ct.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ct.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ct.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ct.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ct.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ct.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ct.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ct.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ct.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ct.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ct.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ct.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ct.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ct.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ct.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ct.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ct.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ct.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ct.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
65
+ var rt,lt;null==nt||nt(q,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.2.7");class at extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,s;const n=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new G(i.insertBefore(z(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return H}}at.finalized=!0,at._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:at});const ht=globalThis.litElementPolyfillSupport;null==ht||ht({LitElement:at}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");class pt{static create(t,i,e){let o=t=>u(null!=t?t:e),s=y`var(${u(t)}, ${o(e)})`;return s.name=t,s.category=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>y`var(${u(t)}, ${o(i)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>e,s}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),s=y`var(${u(t)}, ${o(e)})`;return s.name=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>y`var(${u(t)}, ${o(i)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>e,s}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):u(null!=i?i:t.defaultValue),o=y`var(${u(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>y`var(${u(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function ct(t,i){return u(`${t.name}: ${i}`)}const ft={colorPrimary:pt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:pt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:pt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:pt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:pt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:pt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:pt.create("--ft-color-error","COLOR","#B00020"),colorOutline:pt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:pt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:pt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:pt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:pt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:pt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:pt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:pt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:pt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:pt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:pt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:pt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:pt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:pt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:pt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:pt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:pt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:pt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:pt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:pt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:pt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:pt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:pt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:pt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:pt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:pt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:pt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:pt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:pt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:pt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:pt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:pt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:pt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:pt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:pt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:pt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:pt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:pt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:pt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:pt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:pt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:pt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:pt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:pt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:pt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:pt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:pt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:pt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:pt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:pt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:pt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:pt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:pt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:pt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:pt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
66
66
  /**
67
67
  * @license
68
68
  * Copyright 2021 Google LLC
@@ -72,7 +72,7 @@ var rt,lt;null==nt||nt(q,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
72
72
  <style>${t}</style>
73
73
  `))}
74
74
  ${this.getTemplate()}
75
- `}updated(t){super.updated(t),setTimeout((()=>{var i;this.contentAvailableCallback(t),(null===(i=this.exportpartsPrefix)||void 0===i?void 0:i.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var i,e,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],e=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...i,...e).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>a.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}yt([o()],xt.prototype,"exportpartsPrefix",void 0),yt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],xt.prototype,"exportpartsPrefixes",void 0),y`
75
+ `}updated(t){super.updated(t),setTimeout((()=>{var i;this.contentAvailableCallback(t),(null===(i=this.exportpartsPrefix)||void 0===i?void 0:i.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var i,e,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],e=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...i,...e).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const p=[...h.values()].flatMap((t=>a.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}contentAvailableCallback(t){}}yt([o()],xt.prototype,"exportpartsPrefix",void 0),yt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],xt.prototype,"exportpartsPrefixes",void 0),y`
76
76
  .ft-no-text-select {
77
77
  -webkit-touch-callout: none;
78
78
  -webkit-user-select: none;
@@ -81,6 +81,18 @@ var rt,lt;null==nt||nt(q,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
81
81
  -ms-user-select: none;
82
82
  user-select: none;
83
83
  }
84
+ `,y`
85
+ .ft-word-wrap {
86
+ white-space: normal;
87
+ word-wrap: break-word;
88
+ -ms-word-break: break-all;
89
+ word-break: break-all;
90
+ word-break: break-word;
91
+ -ms-hyphens: auto;
92
+ -moz-hyphens: auto;
93
+ -webkit-hyphens: auto;
94
+ hyphens: auto
95
+ }
84
96
  `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ut=null===(dt=window.safari)||void 0===dt?void 0:dt.pushNotification)||void 0===ut||ut.toString());
85
97
  /**
86
98
  * @license
@@ -92,7 +104,7 @@ const vt=1,gt=2,bt=t=>(...i)=>({_$litDirective$:t,values:i});class mt{constructo
92
104
  * @license
93
105
  * Copyright 2018 Google LLC
94
106
  * SPDX-License-Identifier: BSD-3-Clause
95
- */const wt=bt(class extends mt{constructor(t){var i;if(super(t),t.type!==vt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const s=t.element.classList;this.nt.forEach((t=>{t in i||(s.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return H}}),$t=ct.extend("--ft-ripple-color",ft.colorContent),Ot={color:$t,backgroundColor:ct.extend("--ft-ripple-background-color",$t),opacityContentOnSurfacePressed:ct.external(ft.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ct.external(ft.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ct.external(ft.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ct.external(ft.opacityContentOnSurfaceSelected,"Design system")},St=ct.extend("--ft-ripple-color",ft.colorPrimary),kt=St,Ct=ct.extend("--ft-ripple-background-color",St),Nt=ct.extend("--ft-ripple-color",ft.colorSecondary),Et=Nt,Rt=ct.extend("--ft-ripple-background-color",Nt),Mt=y`
107
+ */const wt=bt(class extends mt{constructor(t){var i;if(super(t),t.type!==vt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const s=t.element.classList;this.nt.forEach((t=>{t in i||(s.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return H}}),$t=pt.extend("--ft-ripple-color",ft.colorContent),Ot={color:$t,backgroundColor:pt.extend("--ft-ripple-background-color",$t),opacityContentOnSurfacePressed:pt.external(ft.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:pt.external(ft.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:pt.external(ft.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:pt.external(ft.opacityContentOnSurfaceSelected,"Design system")},St=pt.extend("--ft-ripple-color",ft.colorPrimary),kt=St,Ct=pt.extend("--ft-ripple-background-color",St),Nt=pt.extend("--ft-ripple-color",ft.colorSecondary),Et=Nt,Rt=pt.extend("--ft-ripple-background-color",Nt),Mt=y`
96
108
  :host {
97
109
  display: contents;
98
110
  }
@@ -204,7 +216,7 @@ const vt=1,gt=2,bt=t=>(...i)=>({_$litDirective$:t,values:i});class mt{constructo
204
216
  * Copyright 2020 Google LLC
205
217
  * SPDX-License-Identifier: BSD-3-Clause
206
218
  */
207
- const zt=Symbol.for(""),jt=t=>{if((null==t?void 0:t.r)===zt)return null==t?void 0:t._$litStatic$},At=t=>({_$litStatic$:t,r:zt}),Lt=new Map,Tt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=jt(n));)a+=s+i[++h],c=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=Lt.get(t))&&(r.raw=r,Lt.set(t,i=r)),e=l}return t(i,...e)})(I);var Bt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Bt||(Bt={}));const Pt=ct.extend("--ft-typography-font-family",ft.titleFont),_t=ct.extend("--ft-typography-font-family",ft.contentFont),Wt={fontFamily:_t,fontSize:ct.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ct.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ct.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ct.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},Dt=ct.extend("--ft-typography-title-font-family",Pt),It=ct.extend("--ft-typography-title-font-size",Wt.fontSize,"20px"),Ht=ct.extend("--ft-typography-title-font-weight",Wt.fontWeight,"normal"),Kt=ct.extend("--ft-typography-title-letter-spacing",Wt.letterSpacing,"0.15px"),Zt=ct.extend("--ft-typography-title-line-height",Wt.lineHeight,"1.2"),Vt=ct.extend("--ft-typography-title-text-transform",Wt.textTransform,"inherit"),Jt=ct.extend("--ft-typography-title-dense-font-family",Pt),qt=ct.extend("--ft-typography-title-dense-font-size",Wt.fontSize,"14px"),Xt=ct.extend("--ft-typography-title-dense-font-weight",Wt.fontWeight,"normal"),Yt=ct.extend("--ft-typography-title-dense-letter-spacing",Wt.letterSpacing,"0.105px"),Gt=ct.extend("--ft-typography-title-dense-line-height",Wt.lineHeight,"1.7"),Qt=ct.extend("--ft-typography-title-dense-text-transform",Wt.textTransform,"inherit"),ti=ct.extend("--ft-typography-subtitle1-font-family",_t),ii=ct.extend("--ft-typography-subtitle1-font-size",Wt.fontSize,"16px"),ei=ct.extend("--ft-typography-subtitle1-font-weight",Wt.fontWeight,"600"),oi=ct.extend("--ft-typography-subtitle1-letter-spacing",Wt.letterSpacing,"0.144px"),si=ct.extend("--ft-typography-subtitle1-line-height",Wt.lineHeight,"1.5"),ni=ct.extend("--ft-typography-subtitle1-text-transform",Wt.textTransform,"inherit"),ri=ct.extend("--ft-typography-subtitle2-font-family",_t),li=ct.extend("--ft-typography-subtitle2-font-size",Wt.fontSize,"14px"),ai=ct.extend("--ft-typography-subtitle2-font-weight",Wt.fontWeight,"normal"),hi=ct.extend("--ft-typography-subtitle2-letter-spacing",Wt.letterSpacing,"0.098px"),ci=ct.extend("--ft-typography-subtitle2-line-height",Wt.lineHeight,"1.7"),pi=ct.extend("--ft-typography-subtitle2-text-transform",Wt.textTransform,"inherit"),fi=ct.extend("--ft-typography-body1-font-family",_t),di=ct.extend("--ft-typography-body1-font-size",Wt.fontSize,"16px"),ui=ct.extend("--ft-typography-body1-font-weight",Wt.fontWeight,"normal"),yi=ct.extend("--ft-typography-body1-letter-spacing",Wt.letterSpacing,"0.496px"),xi=ct.extend("--ft-typography-body1-line-height",Wt.lineHeight,"1.5"),vi=ct.extend("--ft-typography-body1-text-transform",Wt.textTransform,"inherit"),gi=ct.extend("--ft-typography-body2-font-family",_t),bi=ct.extend("--ft-typography-body2-font-size",Wt.fontSize,"14px"),mi=ct.extend("--ft-typography-body2-font-weight",Wt.fontWeight,"normal"),wi=ct.extend("--ft-typography-body2-letter-spacing",Wt.letterSpacing,"0.252px"),$i=ct.extend("--ft-typography-body2-line-height",Wt.lineHeight,"1.4"),Oi=ct.extend("--ft-typography-body2-text-transform",Wt.textTransform,"inherit"),Si=ct.extend("--ft-typography-caption-font-family",_t),ki=ct.extend("--ft-typography-caption-font-size",Wt.fontSize,"12px"),Ci=ct.extend("--ft-typography-caption-font-weight",Wt.fontWeight,"normal"),Ni=ct.extend("--ft-typography-caption-letter-spacing",Wt.letterSpacing,"0.396px"),Ei=ct.extend("--ft-typography-caption-line-height",Wt.lineHeight,"1.33"),Ri=ct.extend("--ft-typography-caption-text-transform",Wt.textTransform,"inherit"),Mi=ct.extend("--ft-typography-breadcrumb-font-family",_t),Ui=ct.extend("--ft-typography-breadcrumb-font-size",Wt.fontSize,"10px"),Fi=ct.extend("--ft-typography-breadcrumb-font-weight",Wt.fontWeight,"normal"),zi=ct.extend("--ft-typography-breadcrumb-letter-spacing",Wt.letterSpacing,"0.33px"),ji=ct.extend("--ft-typography-breadcrumb-line-height",Wt.lineHeight,"1.6"),Ai=ct.extend("--ft-typography-breadcrumb-text-transform",Wt.textTransform,"inherit"),Li=ct.extend("--ft-typography-overline-font-family",_t),Ti=ct.extend("--ft-typography-overline-font-size",Wt.fontSize,"10px"),Bi=ct.extend("--ft-typography-overline-font-weight",Wt.fontWeight,"normal"),Pi=ct.extend("--ft-typography-overline-letter-spacing",Wt.letterSpacing,"1.5px"),_i=ct.extend("--ft-typography-overline-line-height",Wt.lineHeight,"1.6"),Wi=ct.extend("--ft-typography-overline-text-transform",Wt.textTransform,"uppercase"),Di={fontFamily:ct.extend("--ft-typography-button-font-family",_t),fontSize:ct.extend("--ft-typography-button-font-size",Wt.fontSize,"14px"),fontWeight:ct.extend("--ft-typography-button-font-weight",Wt.fontWeight,"600"),letterSpacing:ct.extend("--ft-typography-button-letter-spacing",Wt.letterSpacing,"1.246px"),lineHeight:ct.extend("--ft-typography-button-line-height",Wt.lineHeight,"1.15"),textTransform:ct.extend("--ft-typography-button-text-transform",Wt.textTransform,"uppercase")},Ii=y`
219
+ const zt=Symbol.for(""),jt=t=>{if((null==t?void 0:t.r)===zt)return null==t?void 0:t._$litStatic$},At=t=>({_$litStatic$:t,r:zt}),Lt=new Map,Tt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,p=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=jt(n));)a+=s+i[++h],p=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=Lt.get(t))&&(r.raw=r,Lt.set(t,i=r)),e=l}return t(i,...e)})(I);var Bt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Bt||(Bt={}));const Pt=pt.extend("--ft-typography-font-family",ft.titleFont),_t=pt.extend("--ft-typography-font-family",ft.contentFont),Wt={fontFamily:_t,fontSize:pt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:pt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:pt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:pt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:pt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Dt=pt.extend("--ft-typography-title-font-family",Pt),It=pt.extend("--ft-typography-title-font-size",Wt.fontSize,"20px"),Ht=pt.extend("--ft-typography-title-font-weight",Wt.fontWeight,"normal"),Kt=pt.extend("--ft-typography-title-letter-spacing",Wt.letterSpacing,"0.15px"),Zt=pt.extend("--ft-typography-title-line-height",Wt.lineHeight,"1.2"),Vt=pt.extend("--ft-typography-title-text-transform",Wt.textTransform,"inherit"),Jt=pt.extend("--ft-typography-title-dense-font-family",Pt),qt=pt.extend("--ft-typography-title-dense-font-size",Wt.fontSize,"14px"),Xt=pt.extend("--ft-typography-title-dense-font-weight",Wt.fontWeight,"normal"),Yt=pt.extend("--ft-typography-title-dense-letter-spacing",Wt.letterSpacing,"0.105px"),Gt=pt.extend("--ft-typography-title-dense-line-height",Wt.lineHeight,"1.7"),Qt=pt.extend("--ft-typography-title-dense-text-transform",Wt.textTransform,"inherit"),ti=pt.extend("--ft-typography-subtitle1-font-family",_t),ii=pt.extend("--ft-typography-subtitle1-font-size",Wt.fontSize,"16px"),ei=pt.extend("--ft-typography-subtitle1-font-weight",Wt.fontWeight,"600"),oi=pt.extend("--ft-typography-subtitle1-letter-spacing",Wt.letterSpacing,"0.144px"),si=pt.extend("--ft-typography-subtitle1-line-height",Wt.lineHeight,"1.5"),ni=pt.extend("--ft-typography-subtitle1-text-transform",Wt.textTransform,"inherit"),ri=pt.extend("--ft-typography-subtitle2-font-family",_t),li=pt.extend("--ft-typography-subtitle2-font-size",Wt.fontSize,"14px"),ai=pt.extend("--ft-typography-subtitle2-font-weight",Wt.fontWeight,"normal"),hi=pt.extend("--ft-typography-subtitle2-letter-spacing",Wt.letterSpacing,"0.098px"),pi=pt.extend("--ft-typography-subtitle2-line-height",Wt.lineHeight,"1.7"),ci=pt.extend("--ft-typography-subtitle2-text-transform",Wt.textTransform,"inherit"),fi=pt.extend("--ft-typography-body1-font-family",_t),di=pt.extend("--ft-typography-body1-font-size",Wt.fontSize,"16px"),ui=pt.extend("--ft-typography-body1-font-weight",Wt.fontWeight,"normal"),yi=pt.extend("--ft-typography-body1-letter-spacing",Wt.letterSpacing,"0.496px"),xi=pt.extend("--ft-typography-body1-line-height",Wt.lineHeight,"1.5"),vi=pt.extend("--ft-typography-body1-text-transform",Wt.textTransform,"inherit"),gi=pt.extend("--ft-typography-body2-font-family",_t),bi=pt.extend("--ft-typography-body2-font-size",Wt.fontSize,"14px"),mi=pt.extend("--ft-typography-body2-font-weight",Wt.fontWeight,"normal"),wi=pt.extend("--ft-typography-body2-letter-spacing",Wt.letterSpacing,"0.252px"),$i=pt.extend("--ft-typography-body2-line-height",Wt.lineHeight,"1.4"),Oi=pt.extend("--ft-typography-body2-text-transform",Wt.textTransform,"inherit"),Si=pt.extend("--ft-typography-caption-font-family",_t),ki=pt.extend("--ft-typography-caption-font-size",Wt.fontSize,"12px"),Ci=pt.extend("--ft-typography-caption-font-weight",Wt.fontWeight,"normal"),Ni=pt.extend("--ft-typography-caption-letter-spacing",Wt.letterSpacing,"0.396px"),Ei=pt.extend("--ft-typography-caption-line-height",Wt.lineHeight,"1.33"),Ri=pt.extend("--ft-typography-caption-text-transform",Wt.textTransform,"inherit"),Mi=pt.extend("--ft-typography-breadcrumb-font-family",_t),Ui=pt.extend("--ft-typography-breadcrumb-font-size",Wt.fontSize,"10px"),Fi=pt.extend("--ft-typography-breadcrumb-font-weight",Wt.fontWeight,"normal"),zi=pt.extend("--ft-typography-breadcrumb-letter-spacing",Wt.letterSpacing,"0.33px"),ji=pt.extend("--ft-typography-breadcrumb-line-height",Wt.lineHeight,"1.6"),Ai=pt.extend("--ft-typography-breadcrumb-text-transform",Wt.textTransform,"inherit"),Li=pt.extend("--ft-typography-overline-font-family",_t),Ti=pt.extend("--ft-typography-overline-font-size",Wt.fontSize,"10px"),Bi=pt.extend("--ft-typography-overline-font-weight",Wt.fontWeight,"normal"),Pi=pt.extend("--ft-typography-overline-letter-spacing",Wt.letterSpacing,"1.5px"),_i=pt.extend("--ft-typography-overline-line-height",Wt.lineHeight,"1.6"),Wi=pt.extend("--ft-typography-overline-text-transform",Wt.textTransform,"uppercase"),Di={fontFamily:pt.extend("--ft-typography-button-font-family",_t),fontSize:pt.extend("--ft-typography-button-font-size",Wt.fontSize,"14px"),fontWeight:pt.extend("--ft-typography-button-font-weight",Wt.fontWeight,"600"),letterSpacing:pt.extend("--ft-typography-button-letter-spacing",Wt.letterSpacing,"1.246px"),lineHeight:pt.extend("--ft-typography-button-line-height",Wt.lineHeight,"1.15"),textTransform:pt.extend("--ft-typography-button-text-transform",Wt.textTransform,"uppercase")},Ii=y`
208
220
  .ft-typography--title {
209
221
  font-family: ${Dt};
210
222
  font-size: ${It};
@@ -237,8 +249,8 @@ const zt=Symbol.for(""),jt=t=>{if((null==t?void 0:t.r)===zt)return null==t?void
237
249
  font-size: ${li};
238
250
  font-weight: ${ai};
239
251
  letter-spacing: ${hi};
240
- line-height: ${ci};
241
- text-transform: ${pi};
252
+ line-height: ${pi};
253
+ text-transform: ${ci};
242
254
  }
243
255
 
244
256
  `,Vi=y`
@@ -306,7 +318,7 @@ const zt=Symbol.for(""),jt=t=>{if((null==t?void 0:t.r)===zt)return null==t?void
306
318
  </${At(this.element)}>
307
319
  `:Tt`
308
320
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
309
- `}}ie.styles=[Ii,Hi,Ki,Zi,Vi,Ji,qi,Xi,Yi,Gi,Qi],te([o()],ie.prototype,"element",void 0),te([o()],ie.prototype,"variant",void 0),h("ft-typography")(ie);const ee=ct.create("--ft-tooltip-distance","SIZE","4px"),oe=ct.create("--ft-tooltip-color","COLOR","#FFFFFF"),se=ct.create("--ft-tooltip-background-color","COLOR","#666666"),ne=ct.create("--ft-tooltip-z-index","NUMBER","1"),re=ct.external(ft.borderRadiusS,"Design system"),le=ct.create("--ft-tooltip-max-width","SIZE","150px"),ae=y`
321
+ `}}ie.styles=[Ii,Hi,Ki,Zi,Vi,Ji,qi,Xi,Yi,Gi,Qi],te([o()],ie.prototype,"element",void 0),te([o()],ie.prototype,"variant",void 0),h("ft-typography")(ie);const ee=pt.create("--ft-tooltip-distance","SIZE","4px"),oe=pt.create("--ft-tooltip-color","COLOR","#FFFFFF"),se=pt.create("--ft-tooltip-background-color","COLOR","#666666"),ne=pt.create("--ft-tooltip-z-index","NUMBER","1"),re=pt.external(ft.borderRadiusS,"Design system"),le=pt.create("--ft-tooltip-max-width","SIZE","150px"),ae=y`
310
322
  .ft-tooltip--container {
311
323
  display: block;
312
324
  position: relative;
@@ -338,7 +350,7 @@ const zt=Symbol.for(""),jt=t=>{if((null==t?void 0:t.r)===zt)return null==t?void
338
350
  position: relative;
339
351
  word-break: break-word;
340
352
  }
341
- `;var he=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ce extends xt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return I`
353
+ `;var he=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class pe extends xt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return I`
342
354
  <div part="container"
343
355
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
344
356
  @mouseenter=${this.onHover}
@@ -354,19 +366,19 @@ const zt=Symbol.for(""),jt=t=>{if((null==t?void 0:t.r)===zt)return null==t?void
354
366
  </div>
355
367
  <slot></slot>
356
368
  </div>
357
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.position){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${le})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}ce.elementDefinitions={"ft-typography":ie},ce.styles=ae,he([o()],ce.prototype,"text",void 0),he([o({type:Boolean})],ce.prototype,"manual",void 0),he([o({type:Boolean})],ce.prototype,"inline",void 0),he([o({type:Number})],ce.prototype,"delay",void 0),he([o()],ce.prototype,"position",void 0),he([
369
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.position){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${le})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}pe.elementDefinitions={"ft-typography":ie},pe.styles=ae,he([o()],pe.prototype,"text",void 0),he([o({type:Boolean})],pe.prototype,"manual",void 0),he([o({type:Boolean})],pe.prototype,"inline",void 0),he([o({type:Number})],pe.prototype,"delay",void 0),he([o()],pe.prototype,"position",void 0),he([
358
370
  /**
359
371
  * @license
360
372
  * Copyright 2017 Google LLC
361
373
  * SPDX-License-Identifier: BSD-3-Clause
362
374
  */
363
- function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],ce.prototype,"slotNodes",void 0),he([r(".ft-tooltip--container")],ce.prototype,"container",void 0),he([r("slot")],ce.prototype,"target",void 0),he([r(".ft-tooltip")],ce.prototype,"tooltip",void 0),he([r(".ft-tooltip--content")],ce.prototype,"tooltipContent",void 0),he([s()],ce.prototype,"visible",void 0),h("ft-tooltip")(ce);
375
+ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],pe.prototype,"slotNodes",void 0),he([r(".ft-tooltip--container")],pe.prototype,"container",void 0),he([r("slot")],pe.prototype,"target",void 0),he([r(".ft-tooltip")],pe.prototype,"tooltip",void 0),he([r(".ft-tooltip--content")],pe.prototype,"tooltipContent",void 0),he([s()],pe.prototype,"visible",void 0),h("ft-tooltip")(pe);
364
376
  /**
365
377
  * @license
366
378
  * Copyright 2017 Google LLC
367
379
  * SPDX-License-Identifier: BSD-3-Clause
368
380
  */
369
- class pe extends mt{constructor(t){if(super(t),this.it=K,t.type!==gt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this._t=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}pe.directiveName="unsafeHTML",pe.resultType=1;const fe=bt(pe);var de,ue;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(de||(de={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(ue||(ue={})),new Map([...["abw"].map((t=>[t,ue.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ue.AUDIO])),...["avi"].map((t=>[t,ue.AVI])),...["chm","xhs"].map((t=>[t,ue.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ue.CODE])),...["csv"].map((t=>[t,ue.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ue.DITA])),...["epub"].map((t=>[t,ue.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ue.EXCEL])),...["flac"].map((t=>[t,ue.FLAC])),...["gif"].map((t=>[t,ue.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ue.GZIP])),...["html","htm","xhtml"].map((t=>[t,ue.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ue.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ue.JPEG])),...["json"].map((t=>[t,ue.JSON])),...["m4a","m4p"].map((t=>[t,ue.M4A])),...["mov","qt"].map((t=>[t,ue.MOV])),...["mp3"].map((t=>[t,ue.MP3])),...["mp4","m4v"].map((t=>[t,ue.MP4])),...["ogg","oga"].map((t=>[t,ue.OGG])),...["pdf","ps"].map((t=>[t,ue.PDF])),...["png"].map((t=>[t,ue.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ue.POWERPOINT])),...["rar"].map((t=>[t,ue.RAR])),...["stp"].map((t=>[t,ue.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ue.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ue.VIDEO])),...["wav"].map((t=>[t,ue.WAV])),...["wma"].map((t=>[t,ue.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ue.WORD])),...["xml","xsl","rdf"].map((t=>[t,ue.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ue.YAML])),...["zip"].map((t=>[t,ue.ZIP]))]);const ye={size:ct.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ct.extend("--ft-icon-fluid-topics-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ct.extend("--ft-icon-file-format-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ct.extend("--ft-icon-material-font-family",ct.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ct.create("--ft-icon-vertical-align","UNKNOWN","unset")},xe=y`
381
+ class ce extends mt{constructor(t){if(super(t),this.it=K,t.type!==gt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this._t=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ce.directiveName="unsafeHTML",ce.resultType=1;const fe=bt(ce);var de,ue;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(de||(de={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(ue||(ue={})),new Map([...["abw"].map((t=>[t,ue.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ue.AUDIO])),...["avi"].map((t=>[t,ue.AVI])),...["chm","xhs"].map((t=>[t,ue.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ue.CODE])),...["csv"].map((t=>[t,ue.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ue.DITA])),...["epub"].map((t=>[t,ue.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ue.EXCEL])),...["flac"].map((t=>[t,ue.FLAC])),...["gif"].map((t=>[t,ue.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ue.GZIP])),...["html","htm","xhtml"].map((t=>[t,ue.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ue.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ue.JPEG])),...["json"].map((t=>[t,ue.JSON])),...["m4a","m4p"].map((t=>[t,ue.M4A])),...["mov","qt"].map((t=>[t,ue.MOV])),...["mp3"].map((t=>[t,ue.MP3])),...["mp4","m4v"].map((t=>[t,ue.MP4])),...["ogg","oga"].map((t=>[t,ue.OGG])),...["pdf","ps"].map((t=>[t,ue.PDF])),...["png"].map((t=>[t,ue.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ue.POWERPOINT])),...["rar"].map((t=>[t,ue.RAR])),...["stp"].map((t=>[t,ue.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ue.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ue.VIDEO])),...["wav"].map((t=>[t,ue.WAV])),...["wma"].map((t=>[t,ue.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ue.WORD])),...["xml","xsl","rdf"].map((t=>[t,ue.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ue.YAML])),...["zip"].map((t=>[t,ue.ZIP]))]);const ye={size:pt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:pt.extend("--ft-icon-fluid-topics-font-family",pt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:pt.extend("--ft-icon-file-format-font-family",pt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:pt.extend("--ft-icon-material-font-family",pt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:pt.create("--ft-icon-vertical-align","UNKNOWN","unset")},xe=y`
370
382
  :host {
371
383
  display: inline-block;
372
384
  }
@@ -408,7 +420,7 @@ class pe extends mt{constructor(t){if(super(t),this.it=K,t.type!==gt)throw Error
408
420
  ${fe(this.resolvedIcon)}
409
421
  <slot ?hidden=${t}></slot>
410
422
  </i>
411
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case ve.file_format:this.resolvedIcon=null!==(t=ue[e.toUpperCase()])&&void 0!==t?t:e;break;case ve.fluid_topics:this.resolvedIcon=null!==(i=de[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||K}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}be.elementDefinitions={},be.styles=xe,ge([o()],be.prototype,"variant",void 0),ge([o()],be.prototype,"value",void 0),ge([s()],be.prototype,"resolvedIcon",void 0),ge([r("slot")],be.prototype,"slottedContent",void 0),h("ft-icon")(be);const me={textColor:ct.extend("--ft-switch-text-color",ft.colorOnSurfaceHigh),backgroundColor:ct.extend("--ft-switch-background-color",ft.colorSurface),selectedTextColor:ct.extend("--ft-switch-selected-text-color",ft.colorPrimary),selectedBackgroundColor:ct.extend("--ft-switch-selected-background-color",ft.colorPrimary),borderColor:ct.extend("--ft-switch-border-color",ft.colorOutline),borderRadius:ct.extend("--ft-switch-border-radius",ft.borderRadiusL),fontSize:ct.extend("--ft-switch-font-size",Di.fontSize),iconSize:ct.create("--ft-switch-icon-size","SIZE","24px"),iconColor:ct.extend("--ft-switch-text-color",ft.colorOnSurfaceMedium),rippleColor:ct.extend("--ft-switch-ripple-color",ft.colorPrimary),outlineColor:ct.extend("--ft-switch-outline-color",ft.colorPrimary)},we={borderRadiusLeft:ct.extend("--ft-switch-option-border-radius-left",ft.borderRadiusL),borderRadiusRight:ct.extend("--ft-switch-option-border-radius-right",ft.borderRadiusL),borderWidthLeft:ct.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:ct.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:ct.create("--ft-switch-option-border-width-vertical","SIZE","1px")},$e=y`
423
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case ve.file_format:this.resolvedIcon=null!==(t=ue[e.toUpperCase()])&&void 0!==t?t:e;break;case ve.fluid_topics:this.resolvedIcon=null!==(i=de[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||K}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}be.elementDefinitions={},be.styles=xe,ge([o()],be.prototype,"variant",void 0),ge([o()],be.prototype,"value",void 0),ge([s()],be.prototype,"resolvedIcon",void 0),ge([r("slot")],be.prototype,"slottedContent",void 0),h("ft-icon")(be);const me={textColor:pt.extend("--ft-switch-text-color",ft.colorOnSurfaceHigh),backgroundColor:pt.extend("--ft-switch-background-color",ft.colorSurface),selectedTextColor:pt.extend("--ft-switch-selected-text-color",ft.colorPrimary),selectedBackgroundColor:pt.extend("--ft-switch-selected-background-color",ft.colorPrimary),borderColor:pt.extend("--ft-switch-border-color",ft.colorOutline),borderRadius:pt.extend("--ft-switch-border-radius",ft.borderRadiusL),fontSize:pt.extend("--ft-switch-font-size",Di.fontSize),iconSize:pt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:pt.extend("--ft-switch-text-color",ft.colorOnSurfaceMedium),rippleColor:pt.extend("--ft-switch-ripple-color",ft.colorPrimary),outlineColor:pt.extend("--ft-switch-outline-color",ft.colorPrimary)},we={borderRadiusLeft:pt.extend("--ft-switch-option-border-radius-left",ft.borderRadiusL),borderRadiusRight:pt.extend("--ft-switch-option-border-radius-right",ft.borderRadiusL),borderWidthLeft:pt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:pt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:pt.create("--ft-switch-option-border-width-vertical","SIZE","1px")},$e=y`
412
424
  .ft-switch-option {
413
425
  position: relative;
414
426
  display: inline-block;
@@ -434,7 +446,7 @@ class pe extends mt{constructor(t){if(super(t),this.it=K,t.type!==gt)throw Error
434
446
  justify-content: center;
435
447
  overflow: hidden;
436
448
 
437
- ${pt(ye.size,me.iconSize)};
449
+ ${ct(ye.size,me.iconSize)};
438
450
  padding: 6px 8px;
439
451
  background-color: ${me.backgroundColor};
440
452
  -webkit-mask-image: radial-gradient(white, black);
@@ -461,8 +473,8 @@ class pe extends mt{constructor(t){if(super(t),this.it=K,t.type!==gt)throw Error
461
473
  text-overflow: ellipsis;
462
474
  display: block;
463
475
  margin: 0 8px;
464
- ${pt(Di.fontSize,me.fontSize)};
465
- ${pt(Di.lineHeight,"var(--ft-switch-option-internal-content-height)")}
476
+ ${ct(Di.fontSize,me.fontSize)};
477
+ ${ct(Di.lineHeight,"var(--ft-switch-option-internal-content-height)")}
466
478
  }
467
479
 
468
480
  .ft-switch-option--input:checked + .ft-switch-option--content .ft-switch-option--label {
@@ -474,7 +486,7 @@ class pe extends mt{constructor(t){if(super(t),this.it=K,t.type!==gt)throw Error
474
486
  }
475
487
 
476
488
  .ft-switch-option--ripple {
477
- ${pt(Ot.color,me.rippleColor)};
489
+ ${ct(Ot.color,me.rippleColor)};
478
490
  }
479
491
 
480
492
  ft-icon, ft-ripple, ft-typography {
@@ -514,7 +526,7 @@ class pe extends mt{constructor(t){if(super(t),this.it=K,t.type!==gt)throw Error
514
526
  ${t}
515
527
  </ft-tooltip>
516
528
  `}onChange(){this.selected=!0}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?I`
517
- <ft-icon variant="material">${this.icon}</ft-icon> `:K}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}ke.elementDefinitions={"ft-ripple":Ft,"ft-typography":ie,"ft-tooltip":ce,"ft-icon":be},ke.styles=$e,Oe([o({type:String})],ke.prototype,"value",void 0),Oe([o({type:String})],ke.prototype,"icon",void 0),Oe([o({type:String})],ke.prototype,"label",void 0),Oe([o({type:String})],ke.prototype,"tooltipPosition",void 0),Oe([o({type:Boolean,reflect:!0})],ke.prototype,"selected",void 0),Oe([o({type:Boolean})],ke.prototype,"trailingIcon",void 0),Oe([r(".ft-switch-option--content slot")],ke.prototype,"slottedContent",void 0),Oe([r(".ft-switch-option--input")],ke.prototype,"input",void 0);var Ce=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ne extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ee extends xt{constructor(){super(...arguments),this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var i;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Ne(null===(i=this.selectedOption)||void 0===i?void 0:i.value)))}render(){return I`
529
+ <ft-icon variant="material">${this.icon}</ft-icon> `:K}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}ke.elementDefinitions={"ft-ripple":Ft,"ft-typography":ie,"ft-tooltip":pe,"ft-icon":be},ke.styles=$e,Oe([o({type:String})],ke.prototype,"value",void 0),Oe([o({type:String})],ke.prototype,"icon",void 0),Oe([o({type:String})],ke.prototype,"label",void 0),Oe([o({type:String})],ke.prototype,"tooltipPosition",void 0),Oe([o({type:Boolean,reflect:!0})],ke.prototype,"selected",void 0),Oe([o({type:Boolean})],ke.prototype,"trailingIcon",void 0),Oe([r(".ft-switch-option--content slot")],ke.prototype,"slottedContent",void 0),Oe([r(".ft-switch-option--input")],ke.prototype,"input",void 0);var Ce=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ne extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ee extends xt{constructor(){super(...arguments),this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var i;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Ne(null===(i=this.selectedOption)||void 0===i?void 0:i.value)))}render(){return I`
518
530
  <div class="ft-switch" @keydown=${this.onKeyDown} tabindex="0">
519
531
  <slot @slotchange=${this.onSlotchange}
520
532
  @option-change=${this.onOptionChange}></slot>
@@ -535,17 +547,17 @@ class pe extends mt{constructor(t){if(super(t),this.it=K,t.type!==gt)throw Error
535
547
  }
536
548
 
537
549
  .ft-switch slot::slotted(ft-switch-option) {
538
- ${pt(we.borderRadiusLeft,"0")};
539
- ${pt(we.borderRadiusRight,"0")};
540
- ${pt(we.borderWidthLeft,"0")};
550
+ ${ct(we.borderRadiusLeft,"0")};
551
+ ${ct(we.borderRadiusRight,"0")};
552
+ ${ct(we.borderWidthLeft,"0")};
541
553
  }
542
554
 
543
555
  .ft-switch slot::slotted(ft-switch-option:first-child) {
544
- ${pt(we.borderRadiusLeft,me.borderRadius)};
545
- ${pt(we.borderWidthLeft,"1px")};
556
+ ${ct(we.borderRadiusLeft,me.borderRadius)};
557
+ ${ct(we.borderWidthLeft,"1px")};
546
558
  }
547
559
 
548
560
  .ft-switch slot::slotted(ft-switch-option:last-child) {
549
- ${pt(we.borderRadiusRight,me.borderRadius)};
561
+ ${ct(we.borderRadiusRight,me.borderRadius)};
550
562
  }
551
563
  `,Ce([r(".ft-switch slot")],Ee.prototype,"slottedContent",void 0),Ce([s()],Ee.prototype,"selectedOption",void 0),Ce([r(".ft-switch")],Ee.prototype,"ftSwitchDiv",void 0),h("ft-switch")(Ee),h("ft-switch-option")(ke),t.FtSwitch=Ee,t.FtSwitchChange=Ne,t.FtSwitchCssVariables=me,t.FtSwitchOption=ke,t.FtSwitchOptionCssVariables=we,t.SwitchOptionChange=Se,t.optionStyles=$e,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-switch",
3
- "version": "0.3.14",
3
+ "version": "0.3.16",
4
4
  "description": "two-state",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "0.3.14",
23
- "@fluid-topics/ft-ripple": "0.3.14",
24
- "@fluid-topics/ft-tooltip": "0.3.14",
25
- "@fluid-topics/ft-typography": "0.3.14",
26
- "@fluid-topics/ft-wc-utils": "0.3.14",
22
+ "@fluid-topics/ft-icon": "0.3.16",
23
+ "@fluid-topics/ft-ripple": "0.3.16",
24
+ "@fluid-topics/ft-tooltip": "0.3.16",
25
+ "@fluid-topics/ft-typography": "0.3.16",
26
+ "@fluid-topics/ft-wc-utils": "0.3.16",
27
27
  "lit": "2.2.8"
28
28
  },
29
- "gitHead": "46cc9dd160b2f3189a2e581a8237e962f1ae464d"
29
+ "gitHead": "0d05a101f09cb5819ee10930772a873e7e0cc87b"
30
30
  }