@fluid-topics/ft-chip 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-chip.inline-styles.js +110 -110
- package/build/ft-chip.light.js +103 -103
- package/build/ft-chip.min.js +109 -109
- package/package.json +6 -6
|
@@ -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,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let p=e.call(o,t);p||(p=c(t),i.call(o,t,p)),this===window.customElements&&(s.set(n,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.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=l;if(i)return l=void 0,i;const e=s.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),n.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=g[g.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.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,n=o._getDefinition(i);return n?u(e,n):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.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,n){const r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.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),n.set(t,i),l=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 g=[document];const x=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){g.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const v=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(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!==n.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 r{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),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 s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new r(i)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let p=e.call(o,t);p||(p=c(t),i.call(o,t,p)),this===window.customElements&&(s.set(n,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.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=l;if(i)return l=void 0,i;const e=s.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),n.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=g[g.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.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,n=o._getDefinition(i);return n?u(e,n):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.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,n){const r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.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),n.set(t,i),l=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 g=[document];const x=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){g.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const v=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(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!==n.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 r{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),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 s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new r(i)}})}}try{window.customElements.define("custom-element",null)}catch(Qi){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 t{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
|
|
@@ -50,19 +50,19 @@ function n(t,i){return(({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o)
|
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/;var y;const g=window.trustedTypes,x=g?g.emptyScript:"",v=window.reactiveElementPolyfillSupport,m={toAttribute(t,i){switch(i){case Boolean:t=t?x:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},b=(t,i)=>i!==t&&(i==i||t==t),w={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:b};class $ extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Eh(e,i);void 0!==o&&(this._$Eu.set(o,e),t.push(o))})),t}static createProperty(t,i=w){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||w}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(u(t))}else void 0!==t&&i.push(u(t));return i}static _$Eh(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return d(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$ES(t,i,e=w){var o,n;const r=this.constructor._$Eh(t,e);if(void 0!==r&&!0===e.reflect){const s=(null!==(n=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:m.toAttribute)(i,e.type);this._$Ei=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Ei=null}}_$AK(t,i){var e,o,n;const r=this.constructor,s=r._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=r.getPropertyOptions(s),a=t.converter,l=null!==(n=null!==(o=null===(e=a)||void 0===e?void 0:e.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:m.fromAttribute;this._$Ei=s,this[s]=l(i,t.type),this._$Ei=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||b)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$Ei!==t&&(void 0===this._$
|
|
53
|
+
*/;var y;const g=window.trustedTypes,x=g?g.emptyScript:"",v=window.reactiveElementPolyfillSupport,m={toAttribute(t,i){switch(i){case Boolean:t=t?x:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},b=(t,i)=>i!==t&&(i==i||t==t),w={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:b};class $ extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Eh(e,i);void 0!==o&&(this._$Eu.set(o,e),t.push(o))})),t}static createProperty(t,i=w){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||w}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(u(t))}else void 0!==t&&i.push(u(t));return i}static _$Eh(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return d(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$ES(t,i,e=w){var o,n;const r=this.constructor._$Eh(t,e);if(void 0!==r&&!0===e.reflect){const s=(null!==(n=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:m.toAttribute)(i,e.type);this._$Ei=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Ei=null}}_$AK(t,i){var e,o,n;const r=this.constructor,s=r._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=r.getPropertyOptions(s),a=t.converter,l=null!==(n=null!==(o=null===(e=a)||void 0===e?void 0:e.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:m.fromAttribute;this._$Ei=s,this[s]=l(i,t.type),this._$Ei=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||b)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,i)=>this[i]=t)),this._$Et=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$EU()}catch(t){throw i=!1,this._$EU(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$Eg)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$ES(i,this[i],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var O;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:$}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.
|
|
59
|
+
var O;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:$}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.2");const S=globalThis.trustedTypes,k=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,N="?"+C,E=`<${N}>`,R=document,M=(t="")=>R.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,B=/>/g,L=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,A=/'/g,T=/"/g,D=/^(?:script|style|textarea|title)$/i,P=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),_=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),W=new WeakMap,K=R.createTreeWalker(R,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=F;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,p=0;for(;p<e.length&&(s.lastIndex=p,l=s.exec(e),null!==l);)p=s.lastIndex,s===F?"!--"===l[1]?s=j:void 0!==l[1]?s=B:void 0!==l[2]?(D.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=L):void 0!==l[3]&&(s=L):s===L?">"===l[0]?(s=null!=n?n:F,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?L:'"'===l[3]?T:A):s===T||s===A?s=L:s===j||s===B?s=F:(s=L,n=void 0);const c=s===L&&t[i+1].startsWith("/>")?" ":"";r+=s===F?e+E:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+C+c):e+C+(-2===h?(o.push(void 0),i):c)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==k?k.createHTML(a):a,o]};class Z{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=H(t,i);if(this.el=Z.createElement(l,e),K.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=K.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(C)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(C),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?Q:"@"===i[1]?tt:J})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(D.test(o.tagName)){const t=o.textContent.split(C),i=t.length-1;if(i>0){o.textContent=S?S.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],M()),K.nextNode(),a.push({type:2,index:++n});o.append(t[i],M())}}}else if(8===o.nodeType)if(o.data===N)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(C,t+1));)a.push({type:7,index:n}),t+=C.length-1}n++}}static createElement(t,i){const e=R.createElement("template");return e.innerHTML=t,e}}function V(t,i,e=t,o){var n,r,s,a;if(i===_)return i;let l=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const h=z(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=V(t,l._$AS(t,i.values),l,o)),i}class q{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,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:R).importNode(e,!0);K.currentNode=n;let r=K.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new X(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new it(r,this,t)),this.v.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=K.nextNode(),s++)}return n}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 X{constructor(t,i,e,o){var n;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}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=V(this,t,i),z(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==_&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return U(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==I&&z(this._$AH)?this._$AA.nextSibling.data=t:this.k(R.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new q(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=W.get(t.strings);return void 0===i&&W.set(t.strings,i=new Z(t)),i}S(t){U(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new X(this.M(M()),this.M(M()),this,this.options)):e=i[o],e._$AI(n),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._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class J{constructor(t,i,e,o,n){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=V(this,t,i,0),r=!z(t)||t!==this._$AH&&t!==_,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=V(this,o[e+s],i,s),a===_&&(a=this._$AH[s]),r||(r=!z(a)||a!==this._$AH[s]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.C(t)}C(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends J{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===I?void 0:t}}const G=S?S.emptyScript:"";class Q extends J{constructor(){super(...arguments),this.type=4}C(t){t&&t!==I?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class tt extends J{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=V(this,t,i,0))&&void 0!==e?e:I)===_)return;const o=this._$AH,n=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==I&&(o===I||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class it{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){V(this,t)}}const et=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 ot,nt;null==et||et(Z,X),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O:globalThis.litHtmlVersions=[]).push("2.
|
|
65
|
+
var ot,nt;null==et||et(Z,X),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O:globalThis.litHtmlVersions=[]).push("2.2.4");class rt extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=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._$Dt=((t,i,e)=>{var o,n;const r=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new X(i.insertBefore(M(),t),t,void 0,null!=e?e:{})}return s._$AI(t),s})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return _}}rt.finalized=!0,rt._$litElement$=!0,null===(ot=globalThis.litElementHydrateSupport)||void 0===ot||ot.call(globalThis,{LitElement:rt});const st=globalThis.litElementPolyfillSupport;null==st||st({LitElement:rt}),(null!==(nt=globalThis.litElementVersions)&&void 0!==nt?nt:globalThis.litElementVersions=[]).push("3.2.0");class at{constructor(t,i,e,o,n){this.name=t,this.category=i,this.fallbackVariable=e,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,i,e){return new at(t,i,void 0,e)}static extend(t,i,e){return new at(t,i.category,i,e)}static external(t,i){return new at(t.name,t.category,t.fallbackVariable,t.defaultValue,i)}get(t){return f`var(${c(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):c(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,i;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(i=this.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function lt(t,i){return c(`${t.name}: ${i}`)}const ht={colorPrimary:at.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:at.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:at.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:at.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:at.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:at.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:at.create("--ft-color-error","COLOR","#B00020"),colorOutline:at.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:at.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:at.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:at.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:at.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:at.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:at.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:at.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:at.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:at.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:at.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:at.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:at.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:at.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:at.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:at.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:at.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:at.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:at.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:at.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:at.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:at.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:at.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:at.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:at.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:at.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:at.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:at.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:at.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:at.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:at.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:at.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:at.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:at.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:at.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:at.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:at.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:at.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:at.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:at.create("--ft-border-radius-XL","SIZE","16px"),titleFont:at.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:at.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:at.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:at.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
@@ -91,7 +91,7 @@ var ot,nt;null==et||et(Z,X),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O
|
|
|
91
91
|
* @license
|
|
92
92
|
* Copyright 2018 Google LLC
|
|
93
93
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
94
|
-
*/const bt=vt(class extends mt{constructor(t){var i;if(super(t),t.type!==gt||"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.
|
|
94
|
+
*/const bt=vt(class extends mt{constructor(t){var i;if(super(t),t.type!==gt||"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.et){this.et=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.et.add(t);return this.render(i)}const n=t.element.classList;this.et.forEach((t=>{t in i||(n.remove(t),this.et.delete(t))}));for(const t in i){const e=!!i[t];e===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.et.add(t)):(n.remove(t),this.et.delete(t)))}return _}});var wt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const $t=at.extend("--ft-ripple-color",ht.colorContent),Ot={color:$t,backgroundColor:at.extend("--ft-ripple-background-color",$t),opacityContentOnSurfacePressed:at.external(ht.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:at.external(ht.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:at.external(ht.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:at.external(ht.opacityContentOnSurfaceSelected,"Design system")},St=at.extend("--ft-ripple-color",ht.colorPrimary),kt=St,Ct=at.extend("--ft-ripple-background-color",St),Nt=at.extend("--ft-ripple-color",ht.colorSecondary),Et=Nt,Rt=at.extend("--ft-ripple-background-color",Nt);class Mt extends pt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new t(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return P`
|
|
95
95
|
<style>
|
|
96
96
|
.ft-ripple .ft-ripple--effect,
|
|
97
97
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -203,129 +203,129 @@ var ot,nt;null==et||et(Z,X),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O
|
|
|
203
203
|
* Copyright 2020 Google LLC
|
|
204
204
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
205
205
|
*/
|
|
206
|
-
const zt=t=>({_$litStatic$:t}),
|
|
206
|
+
const zt=Symbol.for(""),Ut=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===zt)return null===(e=t)||void 0===e?void 0:e._$litStatic$},Ft=t=>({_$litStatic$:t,r:zt}),jt=new Map,Bt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(r=e[h],n=Ut(r));)l+=n+i[++h],p=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(i[o]),p){const t=s.join("$$lit$$");void 0===(i=jt.get(t))&&(s.raw=s,jt.set(t,i=s)),e=a}return t(i,...e)})(P);var Lt,At=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!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"}(Lt||(Lt={}));const Tt=at.extend("--ft-typography-font-family",ht.titleFont),Dt=at.extend("--ft-typography-font-family",ht.contentFont),Pt={fontFamily:Dt,fontSize:at.create("--ft-typography-font-size","SIZE","16px"),fontWeight:at.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:at.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:at.create("--ft-typography-line-height","SIZE","24px"),textTransform:at.create("--ft-typography-text-transform","UNKNOWN","inherit")},_t=at.extend("--ft-typography-title-font-family",Tt),It=at.extend("--ft-typography-title-font-size",Pt.fontSize,"20px"),Wt=at.extend("--ft-typography-title-font-weight",Pt.fontWeight,"normal"),Kt=at.extend("--ft-typography-title-letter-spacing",Pt.letterSpacing,"0.15px"),Ht=at.extend("--ft-typography-title-line-height",Pt.lineHeight,"24px"),Zt=at.extend("--ft-typography-title-text-transform",Pt.textTransform,"inherit"),Vt=at.extend("--ft-typography-title-dense-font-family",Tt),qt=at.extend("--ft-typography-title-dense-font-size",Pt.fontSize,"14px"),Xt=at.extend("--ft-typography-title-dense-font-weight",Pt.fontWeight,"normal"),Jt=at.extend("--ft-typography-title-dense-letter-spacing",Pt.letterSpacing,"0.105px"),Yt=at.extend("--ft-typography-title-dense-line-height",Pt.lineHeight,"24px"),Gt=at.extend("--ft-typography-title-dense-text-transform",Pt.textTransform,"inherit"),Qt=at.extend("--ft-typography-subtitle1-font-family",Dt),ti=at.extend("--ft-typography-subtitle1-font-size",Pt.fontSize,"16px"),ii=at.extend("--ft-typography-subtitle1-font-weight",Pt.fontWeight,"600"),ei=at.extend("--ft-typography-subtitle1-letter-spacing",Pt.letterSpacing,"0.144px"),oi=at.extend("--ft-typography-subtitle1-line-height",Pt.lineHeight,"24px"),ni=at.extend("--ft-typography-subtitle1-text-transform",Pt.textTransform,"inherit"),ri=at.extend("--ft-typography-subtitle2-font-family",Dt),si=at.extend("--ft-typography-subtitle2-font-size",Pt.fontSize,"14px"),ai=at.extend("--ft-typography-subtitle2-font-weight",Pt.fontWeight,"normal"),li=at.extend("--ft-typography-subtitle2-letter-spacing",Pt.letterSpacing,"0.098px"),hi=at.extend("--ft-typography-subtitle2-line-height",Pt.lineHeight,"24px"),pi=at.extend("--ft-typography-subtitle2-text-transform",Pt.textTransform,"inherit"),ci=at.extend("--ft-typography-body1-font-family",Dt),fi=at.extend("--ft-typography-body1-font-size",Pt.fontSize,"16px"),di=at.extend("--ft-typography-body1-font-weight",Pt.fontWeight,"normal"),ui=at.extend("--ft-typography-body1-letter-spacing",Pt.letterSpacing,"0.496px"),yi=at.extend("--ft-typography-body1-line-height",Pt.lineHeight,"24px"),gi=at.extend("--ft-typography-body1-text-transform",Pt.textTransform,"inherit"),xi={fontFamily:at.extend("--ft-typography-body2-font-family",Dt),fontSize:at.extend("--ft-typography-body2-font-size",Pt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-body2-font-weight",Pt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body2-letter-spacing",Pt.letterSpacing,"0.252px"),lineHeight:at.extend("--ft-typography-body2-line-height",Pt.lineHeight,"20px"),textTransform:at.extend("--ft-typography-body2-text-transform",Pt.textTransform,"inherit")},vi=at.extend("--ft-typography-caption-font-family",Dt),mi=at.extend("--ft-typography-caption-font-size",Pt.fontSize,"12px"),bi=at.extend("--ft-typography-caption-font-weight",Pt.fontWeight,"normal"),wi=at.extend("--ft-typography-caption-letter-spacing",Pt.letterSpacing,"0.396px"),$i=at.extend("--ft-typography-caption-line-height",Pt.lineHeight,"16px"),Oi=at.extend("--ft-typography-caption-text-transform",Pt.textTransform,"inherit"),Si=at.extend("--ft-typography-breadcrumb-font-family",Dt),ki=at.extend("--ft-typography-breadcrumb-font-size",Pt.fontSize,"10px"),Ci=at.extend("--ft-typography-breadcrumb-font-weight",Pt.fontWeight,"normal"),Ni=at.extend("--ft-typography-breadcrumb-letter-spacing",Pt.letterSpacing,"0.33px"),Ei=at.extend("--ft-typography-breadcrumb-line-height",Pt.lineHeight,"16px"),Ri=at.extend("--ft-typography-breadcrumb-text-transform",Pt.textTransform,"inherit"),Mi=at.extend("--ft-typography-overline-font-family",Dt),zi=at.extend("--ft-typography-overline-font-size",Pt.fontSize,"10px"),Ui=at.extend("--ft-typography-overline-font-weight",Pt.fontWeight,"normal"),Fi=at.extend("--ft-typography-overline-letter-spacing",Pt.letterSpacing,"1.5px"),ji=at.extend("--ft-typography-overline-line-height",Pt.lineHeight,"16px"),Bi=at.extend("--ft-typography-overline-text-transform",Pt.textTransform,"uppercase"),Li=at.extend("--ft-typography-button-font-family",Dt),Ai=at.extend("--ft-typography-button-font-size",Pt.fontSize,"14px"),Ti=at.extend("--ft-typography-button-font-weight",Pt.fontWeight,"600"),Di=at.extend("--ft-typography-button-letter-spacing",Pt.letterSpacing,"1.246px"),Pi=at.extend("--ft-typography-button-line-height",Pt.lineHeight,"16px"),_i=at.extend("--ft-typography-button-text-transform",Pt.textTransform,"uppercase"),Ii=f`
|
|
207
207
|
.ft-typography--title {
|
|
208
|
-
font-family: ${
|
|
209
|
-
font-size: ${
|
|
210
|
-
font-weight: ${
|
|
211
|
-
letter-spacing: ${
|
|
212
|
-
line-height: ${
|
|
213
|
-
text-transform: ${
|
|
208
|
+
font-family: ${_t};
|
|
209
|
+
font-size: ${It};
|
|
210
|
+
font-weight: ${Wt};
|
|
211
|
+
letter-spacing: ${Kt};
|
|
212
|
+
line-height: ${Ht};
|
|
213
|
+
text-transform: ${Zt};
|
|
214
214
|
}
|
|
215
|
-
`,
|
|
215
|
+
`,Wi=f`
|
|
216
216
|
.ft-typography--title-dense {
|
|
217
|
-
font-family: ${
|
|
218
|
-
font-size: ${
|
|
219
|
-
font-weight: ${
|
|
220
|
-
letter-spacing: ${
|
|
221
|
-
line-height: ${
|
|
222
|
-
text-transform: ${
|
|
217
|
+
font-family: ${Vt};
|
|
218
|
+
font-size: ${qt};
|
|
219
|
+
font-weight: ${Xt};
|
|
220
|
+
letter-spacing: ${Jt};
|
|
221
|
+
line-height: ${Yt};
|
|
222
|
+
text-transform: ${Gt};
|
|
223
223
|
}
|
|
224
|
-
`,
|
|
224
|
+
`,Ki=f`
|
|
225
225
|
.ft-typography--subtitle1 {
|
|
226
|
-
font-family: ${
|
|
227
|
-
font-size: ${
|
|
228
|
-
font-weight: ${
|
|
229
|
-
letter-spacing: ${
|
|
230
|
-
line-height: ${
|
|
231
|
-
text-transform: ${
|
|
226
|
+
font-family: ${Qt};
|
|
227
|
+
font-size: ${ti};
|
|
228
|
+
font-weight: ${ii};
|
|
229
|
+
letter-spacing: ${ei};
|
|
230
|
+
line-height: ${oi};
|
|
231
|
+
text-transform: ${ni};
|
|
232
232
|
}
|
|
233
|
-
`,
|
|
233
|
+
`,Hi=f`
|
|
234
234
|
.ft-typography--subtitle2 {
|
|
235
|
-
font-family: ${
|
|
236
|
-
font-size: ${
|
|
237
|
-
font-weight: ${
|
|
238
|
-
letter-spacing: ${
|
|
239
|
-
line-height: ${
|
|
240
|
-
text-transform: ${
|
|
235
|
+
font-family: ${ri};
|
|
236
|
+
font-size: ${si};
|
|
237
|
+
font-weight: ${ai};
|
|
238
|
+
letter-spacing: ${li};
|
|
239
|
+
line-height: ${hi};
|
|
240
|
+
text-transform: ${pi};
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
`,
|
|
243
|
+
`,Zi=f`
|
|
244
244
|
.ft-typography--body1 {
|
|
245
|
-
font-family: ${
|
|
246
|
-
font-size: ${
|
|
247
|
-
font-weight: ${
|
|
248
|
-
letter-spacing: ${
|
|
249
|
-
line-height: ${
|
|
250
|
-
text-transform: ${
|
|
245
|
+
font-family: ${ci};
|
|
246
|
+
font-size: ${fi};
|
|
247
|
+
font-weight: ${di};
|
|
248
|
+
letter-spacing: ${ui};
|
|
249
|
+
line-height: ${yi};
|
|
250
|
+
text-transform: ${gi};
|
|
251
251
|
}
|
|
252
|
-
`,
|
|
252
|
+
`,Vi=f`
|
|
253
253
|
.ft-typography--body2 {
|
|
254
|
-
font-family: ${
|
|
255
|
-
font-size: ${
|
|
256
|
-
font-weight: ${
|
|
257
|
-
letter-spacing: ${
|
|
258
|
-
line-height: ${
|
|
259
|
-
text-transform: ${
|
|
254
|
+
font-family: ${xi.fontFamily};
|
|
255
|
+
font-size: ${xi.fontSize};
|
|
256
|
+
font-weight: ${xi.fontWeight};
|
|
257
|
+
letter-spacing: ${xi.letterSpacing};
|
|
258
|
+
line-height: ${xi.lineHeight};
|
|
259
|
+
text-transform: ${xi.textTransform};
|
|
260
260
|
}
|
|
261
|
-
`,
|
|
261
|
+
`,qi=f`
|
|
262
262
|
.ft-typography--caption {
|
|
263
|
-
font-family: ${
|
|
264
|
-
font-size: ${
|
|
265
|
-
font-weight: ${
|
|
266
|
-
letter-spacing: ${
|
|
267
|
-
line-height: ${
|
|
268
|
-
text-transform: ${
|
|
263
|
+
font-family: ${vi};
|
|
264
|
+
font-size: ${mi};
|
|
265
|
+
font-weight: ${bi};
|
|
266
|
+
letter-spacing: ${wi};
|
|
267
|
+
line-height: ${$i};
|
|
268
|
+
text-transform: ${Oi};
|
|
269
269
|
}
|
|
270
|
-
`,
|
|
270
|
+
`,Xi=f`
|
|
271
271
|
.ft-typography--breadcrumb {
|
|
272
|
-
font-family: ${
|
|
273
|
-
font-size: ${
|
|
274
|
-
font-weight: ${
|
|
275
|
-
letter-spacing: ${
|
|
276
|
-
line-height: ${
|
|
277
|
-
text-transform: ${
|
|
272
|
+
font-family: ${Si};
|
|
273
|
+
font-size: ${ki};
|
|
274
|
+
font-weight: ${Ci};
|
|
275
|
+
letter-spacing: ${Ni};
|
|
276
|
+
line-height: ${Ei};
|
|
277
|
+
text-transform: ${Ri};
|
|
278
278
|
}
|
|
279
|
-
`,
|
|
279
|
+
`,Ji=f`
|
|
280
280
|
.ft-typography--overline {
|
|
281
|
-
font-family: ${
|
|
282
|
-
font-size: ${
|
|
283
|
-
font-weight: ${
|
|
284
|
-
letter-spacing: ${
|
|
285
|
-
line-height: ${
|
|
286
|
-
text-transform: ${
|
|
281
|
+
font-family: ${Mi};
|
|
282
|
+
font-size: ${zi};
|
|
283
|
+
font-weight: ${Ui};
|
|
284
|
+
letter-spacing: ${Fi};
|
|
285
|
+
line-height: ${ji};
|
|
286
|
+
text-transform: ${Bi};
|
|
287
287
|
}
|
|
288
|
-
`,
|
|
288
|
+
`,Yi=f`
|
|
289
289
|
.ft-typography--button {
|
|
290
|
-
font-family: ${
|
|
291
|
-
font-size: ${
|
|
292
|
-
font-weight: ${
|
|
293
|
-
letter-spacing: ${
|
|
294
|
-
line-height: ${
|
|
295
|
-
text-transform: ${
|
|
290
|
+
font-family: ${Li};
|
|
291
|
+
font-size: ${Ai};
|
|
292
|
+
font-weight: ${Ti};
|
|
293
|
+
letter-spacing: ${Di};
|
|
294
|
+
line-height: ${Pi};
|
|
295
|
+
text-transform: ${_i};
|
|
296
296
|
}
|
|
297
|
-
`;class
|
|
298
|
-
<${
|
|
297
|
+
`;class Gi extends pt{constructor(){super(...arguments),this.variant=Lt.body1}render(){return this.element?Bt`
|
|
298
|
+
<${Ft(this.element)}
|
|
299
299
|
class="ft-typography ft-typography--${this.variant}">
|
|
300
300
|
<slot></slot>
|
|
301
|
-
</${
|
|
302
|
-
`:
|
|
301
|
+
</${Ft(this.element)}>
|
|
302
|
+
`:Bt`
|
|
303
303
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
304
|
-
`}}
|
|
304
|
+
`}}Gi.styles=[Ii,Wi,Ki,Hi,Zi,Vi,qi,Xi,Ji,Yi,f`
|
|
305
305
|
.ft-typography {
|
|
306
306
|
vertical-align: inherit;
|
|
307
307
|
}
|
|
308
|
-
`],
|
|
308
|
+
`],At([e()],Gi.prototype,"element",void 0),At([e()],Gi.prototype,"variant",void 0),s("ft-typography")(Gi);
|
|
309
309
|
/**
|
|
310
310
|
* @license
|
|
311
311
|
* Copyright 2017 Google LLC
|
|
312
312
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
313
313
|
*/
|
|
314
|
-
class
|
|
314
|
+
class Qi extends mt{constructor(t){if(super(t),this.it=I,t.type!==xt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===I||null==t)return this.ft=void 0,this.it=t;if(t===_)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Qi.directiveName="unsafeHTML",Qi.resultType=1;const te=vt(Qi);var ie,ee;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(ie||(ie={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(ee||(ee={})),new Map([...["abw"].map((t=>[t,ee.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,ee.AUDIO])),...["avi"].map((t=>[t,ee.AVI])),...["chm","xhs"].map((t=>[t,ee.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,ee.CODE])),...["csv"].map((t=>[t,ee.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ee.DITA])),...["epub"].map((t=>[t,ee.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ee.EXCEL])),...["flac"].map((t=>[t,ee.FLAC])),...["gif"].map((t=>[t,ee.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ee.GZIP])),...["html","htm","xhtml"].map((t=>[t,ee.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,ee.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ee.JPEG])),...["json"].map((t=>[t,ee.JSON])),...["m4a","m4p"].map((t=>[t,ee.M4A])),...["mov","qt"].map((t=>[t,ee.MOV])),...["mp3"].map((t=>[t,ee.MP3])),...["mp4","m4v"].map((t=>[t,ee.MP4])),...["ogg","oga"].map((t=>[t,ee.OGG])),...["pdf","ps"].map((t=>[t,ee.PDF])),...["png"].map((t=>[t,ee.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ee.POWERPOINT])),...["rar"].map((t=>[t,ee.RAR])),...["stp"].map((t=>[t,ee.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ee.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,ee.VIDEO])),...["wav"].map((t=>[t,ee.WAV])),...["wma"].map((t=>[t,ee.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ee.WORD])),...["xml","xsl","rdf"].map((t=>[t,ee.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ee.YAML])),...["zip"].map((t=>[t,ee.ZIP]))]);var oe,ne=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(oe||(oe={}));const re={size:at.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:at.extend("--ft-icon-fluid-topics-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:at.extend("--ft-icon-file-format-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:at.extend("--ft-icon-material-font-family",at.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class se extends pt{constructor(){super(...arguments),this.variant=oe.fluid_topics}render(){return P`
|
|
315
315
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
316
|
-
${
|
|
316
|
+
${te(this.getIcon())}
|
|
317
317
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
318
318
|
</i>
|
|
319
|
-
`}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:""}getIcon(){var t,i;let e=this.textContent;return this.variant===
|
|
319
|
+
`}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:""}getIcon(){var t,i;let e=this.textContent;return this.variant===oe.file_format?null!==(t=ee[e.toUpperCase()])&&void 0!==t?t:e:this.variant===oe.fluid_topics?null!==(i=ie[e.toUpperCase()])&&void 0!==i?i:e:I}}se.elementDefinitions={},se.styles=f`
|
|
320
320
|
:host, i.ft-icon {
|
|
321
321
|
display: inline-block;
|
|
322
|
-
width: ${
|
|
323
|
-
height: ${
|
|
322
|
+
width: ${re.size};
|
|
323
|
+
height: ${re.size};
|
|
324
324
|
text-align: center;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
i.ft-icon {
|
|
328
|
-
font-size: ${
|
|
328
|
+
font-size: ${re.size};
|
|
329
329
|
line-height: 1;
|
|
330
330
|
font-weight: normal;
|
|
331
331
|
text-transform: none;
|
|
@@ -339,17 +339,17 @@ class Yi extends mt{constructor(t){if(super(t),this.it=I,t.type!==xt)throw Error
|
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
.ft-icon--fluid-topics {
|
|
342
|
-
font-family: ${
|
|
342
|
+
font-family: ${re.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
343
343
|
}
|
|
344
344
|
|
|
345
345
|
.ft-icon--file-format {
|
|
346
|
-
font-family: ${
|
|
346
|
+
font-family: ${re.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
.ft-icon--material {
|
|
350
|
-
font-family: ${
|
|
350
|
+
font-family: ${re.materialFontFamily}, "Material Icons", sans-serif;
|
|
351
351
|
}
|
|
352
|
-
`,
|
|
352
|
+
`,ne([e()],se.prototype,"variant",void 0),ne([n("slot")],se.prototype,"slottedContent",void 0),s("ft-icon")(se);var ae=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const le=at.extend("--ft-chip-color",ht.colorOnSurface),he={backgroundColor:at.extend("--ft-chip-background-color",ht.colorSurface),color:le,fontSize:at.extend("--ft-chip-font-size",xi.fontSize),iconSize:at.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:at.extend("--ft-chip-ripple-color",le),horizontalPadding:at.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:at.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:at.external(ht.colorOutline,"Design system"),opacityDisabled:at.external(ht.colorOpacityDisabled,"Design system")},pe=at.extend("--ft-chip-highlighted-color",at.extend("--ft-chip-color",ht.colorOnPrimary)),ce={backgroundColor:at.extend("--ft-chip-highlighted-background-color",at.extend("--ft-chip-background-color",ht.colorPrimary)),color:pe,rippleColor:at.extend("--ft-chip-highlighted-ripple-color",pe)},fe=at.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),de=at.create("--ft-chip-dense-vertical-padding","SIZE","4px");class ue extends CustomEvent{constructor(){super("icon-click")}}class ye extends pt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}static get styles(){return[ct,f`
|
|
353
353
|
:host {
|
|
354
354
|
display: inline-block;
|
|
355
355
|
max-width: 100%;
|
|
@@ -366,20 +366,20 @@ class Yi extends mt{constructor(t){if(super(t),this.it=I,t.type!==xt)throw Error
|
|
|
366
366
|
box-sizing: border-box;
|
|
367
367
|
pointer-events: auto;
|
|
368
368
|
|
|
369
|
-
--ft-chip-internal-font-size: ${
|
|
369
|
+
--ft-chip-internal-font-size: ${he.fontSize};
|
|
370
370
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
371
|
-
${lt(
|
|
372
|
-
--ft-chip-internal-vertical-padding: ${
|
|
373
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
371
|
+
${lt(re.size,he.iconSize)};
|
|
372
|
+
--ft-chip-internal-vertical-padding: ${he.verticalPadding};
|
|
373
|
+
--ft-chip-internal-horizontal-padding: ${he.horizontalPadding};
|
|
374
374
|
--ft-chip-internal-icon-padding: 3px;
|
|
375
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
375
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${he.iconSize});
|
|
376
376
|
|
|
377
|
-
border: 1px solid ${
|
|
378
|
-
color: ${
|
|
379
|
-
${lt(Ot.color,
|
|
377
|
+
border: 1px solid ${he.colorOutline};
|
|
378
|
+
color: ${he.color};
|
|
379
|
+
${lt(Ot.color,he.rippleColor)};
|
|
380
380
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
381
381
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
382
|
-
background-color: ${
|
|
382
|
+
background-color: ${he.backgroundColor};
|
|
383
383
|
line-height: var(--ft-chip-internal-content-height);
|
|
384
384
|
}
|
|
385
385
|
|
|
@@ -389,8 +389,8 @@ class Yi extends mt{constructor(t){if(super(t),this.it=I,t.type!==xt)throw Error
|
|
|
389
389
|
|
|
390
390
|
.ft-chip--dense {
|
|
391
391
|
--ft-chip-internal-icon-padding: 3px;
|
|
392
|
-
--ft-chip-internal-vertical-padding: ${
|
|
393
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
392
|
+
--ft-chip-internal-vertical-padding: ${de};
|
|
393
|
+
--ft-chip-internal-horizontal-padding: ${fe};
|
|
394
394
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
395
395
|
}
|
|
396
396
|
|
|
@@ -402,15 +402,15 @@ class Yi extends mt{constructor(t){if(super(t),this.it=I,t.type!==xt)throw Error
|
|
|
402
402
|
cursor: default;
|
|
403
403
|
pointer-events: none;
|
|
404
404
|
filter: grayscale(1);
|
|
405
|
-
opacity: ${
|
|
405
|
+
opacity: ${he.opacityDisabled};
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
.ft-chip--highlighted {
|
|
409
409
|
border: none;
|
|
410
410
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
411
|
-
background-color: ${
|
|
412
|
-
${lt(Ot.color,
|
|
413
|
-
color: ${
|
|
411
|
+
background-color: ${ce.backgroundColor};
|
|
412
|
+
${lt(Ot.color,ce.rippleColor)};
|
|
413
|
+
color: ${ce.color};
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
.ft-chip--clickable {
|
|
@@ -443,8 +443,8 @@ class Yi extends mt{constructor(t){if(super(t),this.it=I,t.type!==xt)throw Error
|
|
|
443
443
|
vertical-align: bottom;
|
|
444
444
|
display: block;
|
|
445
445
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
446
|
-
${lt(
|
|
447
|
-
${lt(
|
|
446
|
+
${lt(xi.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
447
|
+
${lt(xi.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -498,9 +498,9 @@ class Yi extends mt{constructor(t){if(super(t),this.it=I,t.type!==xt)throw Error
|
|
|
498
498
|
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
499
499
|
<ft-icon variant="material">${this.internalIcon}</ft-icon>
|
|
500
500
|
</div>
|
|
501
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
501
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ue))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ue))}getLabel(){return this.label||this.textContent}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()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}ye.elementDefinitions={"ft-ripple":Mt,"ft-typography":Gi,"ft-icon":se},ae([e({type:Boolean})],ye.prototype,"highlighted",void 0),ae([e({type:Boolean})],ye.prototype,"removable",void 0),ae([e({type:Boolean})],ye.prototype,"disabled",void 0),ae([e({type:Boolean})],ye.prototype,"clickable",void 0),ae([e({type:Boolean})],ye.prototype,"iconClickable",void 0),ae([e({type:Boolean})],ye.prototype,"dense",void 0),ae([e({type:Boolean})],ye.prototype,"multiLine",void 0),ae([e({type:String})],ye.prototype,"label",void 0),ae([e({type:String})],ye.prototype,"icon",void 0),ae([e({type:Boolean})],ye.prototype,"trailingIcon",void 0),ae([n("ft-typography slot")],ye.prototype,"slottedContent",void 0),s("ft-chip")(function t(i){var e;let o;if("elementDefinitions"in i){o={};const e=i.elementDefinitions;for(let i in e)o[i]=t(e[i])}return e=class extends i{render(){var t;let e=null!==(t=i.styles)&&void 0!==t?t:[];return Array.isArray(e)||(e=[e]),P`
|
|
502
502
|
${e.map((t=>P`
|
|
503
503
|
<style>${t}</style>
|
|
504
504
|
`))}
|
|
505
505
|
${super.render()}
|
|
506
|
-
`}},e.styles=void 0,e.elementDefinitions=o,e}(
|
|
506
|
+
`}},e.styles=void 0,e.elementDefinitions=o,e}(ye))}();
|