@fluid-topics/ft-reader-toc 0.3.7 → 0.3.9
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-reader-toc.js +0 -2
- package/build/ft-reader-toc.light.js +86 -519
- package/build/ft-reader-toc.min.js +106 -553
- package/package.json +5 -6
|
@@ -14,64 +14,55 @@
|
|
|
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,e=window.customElements.define,i=window.customElements.get,o=window.customElements,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=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,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(s.set(r,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),d(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,r=o._getDefinition(e);return r?d(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){r.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));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 e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=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,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(kt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
22
|
+
*/const e=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function i(t){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,i,o):e(t,i)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/}
|
|
28
|
-
/**
|
|
29
|
-
* @license
|
|
30
|
-
* Copyright 2017 Google LLC
|
|
31
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const r=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
|
|
33
|
-
/**
|
|
34
|
-
* @license
|
|
35
|
-
* Copyright 2017 Google LLC
|
|
36
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/;function s(t,e){return r({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
|
|
27
|
+
*/}
|
|
38
28
|
/**
|
|
39
29
|
* @license
|
|
40
30
|
* Copyright 2021 Google LLC
|
|
41
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/
|
|
32
|
+
*/
|
|
33
|
+
var o;null===(o=window.HTMLSlotElement)||void 0===o||o.prototype.assignedElements;const r=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function n(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,r;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!n(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!n(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;for(o=i;0!=o--;){var s=r[o];if(!n(t[s],e[s]))return!1}return!0}return t!=t&&e!=e}
|
|
43
34
|
/**
|
|
44
35
|
* @license
|
|
45
36
|
* Copyright 2019 Google LLC
|
|
46
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/const
|
|
38
|
+
*/const s=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),l=new WeakMap;class c{constructor(t,e,i){if(this._$cssResult$=!0,i!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&l.set(e,t))}return t}toString(){return this.cssText}}const h=t=>new c("string"==typeof t?t:t+"",void 0,a),p=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(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.")})(i)+t[o+1]),t[0]);return new c(i,t,a)},f=(t,e)=>{s?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},u=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return h(e)})(t):t
|
|
48
39
|
/**
|
|
49
40
|
* @license
|
|
50
41
|
* Copyright 2017 Google LLC
|
|
51
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/;var
|
|
43
|
+
*/;var d;const y=window.trustedTypes,v=y?y.emptyScript:"",g=window.reactiveElementPolyfillSupport,b={toAttribute(t,e){switch(e){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},m=(t,e)=>e!==t&&(e==e||t==t),x={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:m};class w extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||x}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._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(u(t))}else void 0!==t&&e.push(u(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return f(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=x){var o,r;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const s=(null!==(r=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==r?r:b.toAttribute)(e,i.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var i,o;const r=this.constructor,n=r._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=r.getPropertyOptions(n),s=t.converter,a=null!==(o=null!==(i=null==s?void 0:s.fromAttribute)&&void 0!==i?i:"function"==typeof s?s:null)&&void 0!==o?o:b.fromAttribute;this._$El=n,this[n]=a(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||m)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}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._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
53
44
|
/**
|
|
54
45
|
* @license
|
|
55
46
|
* Copyright 2017 Google LLC
|
|
56
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
48
|
*/
|
|
58
|
-
var
|
|
49
|
+
var $;w.finalized=!0,w.elementProperties=new Map,w.elementStyles=[],w.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:w}),(null!==(d=globalThis.reactiveElementVersions)&&void 0!==d?d:globalThis.reactiveElementVersions=[]).push("1.3.4");const O=globalThis.trustedTypes,S=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,C="?"+N,E=`<${C}>`,R=document,M=(t="")=>R.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,F=t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,L=/>/g,P=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,z=/"/g,_=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),H=new WeakMap,I=R.createTreeWalker(R,129,null,!1),K=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",s=A;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===A?"!--"===l[1]?s=j:void 0!==l[1]?s=L:void 0!==l[2]?(_.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=P):void 0!==l[3]&&(s=P):s===P?">"===l[0]?(s=null!=r?r:A,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?P:'"'===l[3]?z:T):s===z||s===T?s=P:s===j||s===L?s=A:(s=P,r=void 0);const p=s===P&&t[e+1].startsWith("/>")?" ":"";n+=s===A?i+E:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+N+p):i+N+(-2===c?(o.push(void 0),e):p)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(a):a,o]};class Z{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,c]=K(t,e);if(this.el=Z.createElement(l,i),I.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=I.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(N)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(N),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?Y:"@"===e[1]?tt:q})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(_.test(o.tagName)){const t=o.textContent.split(N),e=t.length-1;if(e>0){o.textContent=O?O.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],M()),I.nextNode(),a.push({type:2,index:++r});o.append(t[e],M())}}}else if(8===o.nodeType)if(o.data===C)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(N,t+1));)a.push({type:7,index:r}),t+=N.length-1}r++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function V(t,e,i=t,o){var r,n,s,a;if(e===D)return e;let l=void 0!==o?null===(r=i._$Cl)||void 0===r?void 0:r[o]:i._$Cu;const c=U(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=V(t,l._$AS(t,e.values),l,o)),e}class J{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);I.currentNode=r;let n=I.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new X(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new et(n,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(n=I.nextNode(),s++)}return r}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class X{constructor(t,e,i,o){var r;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=V(this,t,e),U(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==D&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):F(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==W&&U(this._$AH)?this._$AA.nextSibling.data=t:this.k(R.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(i);else{const t=new J(r,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new Z(t)),e}S(t){k(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new X(this.j(M()),this.j(M()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class q{constructor(t,e,i,o,r){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=V(this,t,e,0),n=!U(t)||t!==this._$AH&&t!==D,n&&(this._$AH=t);else{const o=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=V(this,o[i+s],e,s),a===D&&(a=this._$AH[s]),n||(n=!U(a)||a!==this._$AH[s]),a===W?t=W:t!==W&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!o&&this.P(t)}P(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends q{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===W?void 0:t}}const Q=O?O.emptyScript:"";class Y extends q{constructor(){super(...arguments),this.type=4}P(t){t&&t!==W?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class tt extends q{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=V(this,t,e,0))&&void 0!==i?i:W)===D)return;const o=this._$AH,r=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==W&&(o===W||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}}const it={A:"$lit$",C:N,M:C,L:1,R:K,V:J,D:F,I:V,H:X,N:q,U:Y,B:tt,F:G,W:et},ot=window.litHtmlPolyfillSupport;
|
|
59
50
|
/**
|
|
60
51
|
* @license
|
|
61
52
|
* Copyright 2017 Google LLC
|
|
62
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
54
|
*/
|
|
64
|
-
var
|
|
55
|
+
var rt,nt;null==ot||ot(Z,X),(null!==($=globalThis.litHtmlVersions)&&void 0!==$?$:globalThis.litHtmlVersions=[]).push("2.2.7");class st extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=n._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;n._$litPart$=s=new X(e.insertBefore(M(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,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 D}}st.finalized=!0,st._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:st});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:st}),(null!==(nt=globalThis.litElementVersions)&&void 0!==nt?nt:globalThis.litElementVersions=[]).push("3.2.2");class lt{static create(t,e,i){let o=t=>h(null!=t?t:i),r=p`var(${h(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>p`var(${h(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=p`var(${h(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>p`var(${h(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):h(null!=e?e:t.defaultValue),o=p`var(${h(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>p`var(${h(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const ct={colorPrimary:lt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:lt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:lt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:lt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:lt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:lt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:lt.create("--ft-color-error","COLOR","#B00020"),colorOutline:lt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:lt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:lt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:lt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:lt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:lt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:lt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:lt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:lt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:lt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:lt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:lt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:lt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:lt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:lt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:lt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:lt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:lt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:lt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:lt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:lt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:lt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:lt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:lt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:lt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:lt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:lt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:lt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:lt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:lt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:lt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:lt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:lt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:lt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:lt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:lt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:lt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:lt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:lt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:lt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:lt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:lt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:lt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:lt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
65
56
|
/**
|
|
66
57
|
* @license
|
|
67
58
|
* Copyright 2021 Google LLC
|
|
68
59
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
-
*/var
|
|
70
|
-
${t.map((t=>
|
|
60
|
+
*/var ht=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class pt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const r=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return f(r,this.constructor.elementStyles),r}}}(st)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),B`
|
|
61
|
+
${t.map((t=>B`
|
|
71
62
|
<style>${t}</style>
|
|
72
63
|
`))}
|
|
73
64
|
${this.getTemplate()}
|
|
74
|
-
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,n,
|
|
65
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,r,n,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(s=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}contentAvailableCallback(t){}}ht([i()],pt.prototype,"exportpartsPrefix",void 0),ht([function(t,e){const o=()=>JSON.parse(JSON.stringify(t));return i({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],pt.prototype,"exportpartsPrefixes",void 0),p`
|
|
75
66
|
.ft-no-text-select {
|
|
76
67
|
-webkit-touch-callout: none;
|
|
77
68
|
-webkit-user-select: none;
|
|
@@ -80,607 +71,169 @@ var ct,pt;null==lt||lt(Y,tt),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?
|
|
|
80
71
|
-ms-user-select: none;
|
|
81
72
|
user-select: none;
|
|
82
73
|
}
|
|
83
|
-
|
|
74
|
+
`;const ft=(t,e)=>(i,o)=>{i.constructor.createProperty(o,{attribute:!1,hasChanged:null!=e?e:(t,e)=>!n(t,e)});const r=i;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(o,null!=t?t:t=>t[o])};class ut extends pt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,i)=>{this[i]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}}var dt,yt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(yt=null===(dt=window.safari)||void 0===dt?void 0:dt.pushNotification)||void 0===yt||yt.toString());
|
|
84
75
|
/**
|
|
85
76
|
* @license
|
|
86
77
|
* Copyright 2017 Google LLC
|
|
87
78
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
|
-
*/
|
|
79
|
+
*/
|
|
80
|
+
const vt=1,gt=2,bt=t=>(...e)=>({_$litDirective$:t,values:e});class mt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
89
81
|
/**
|
|
90
82
|
* @license
|
|
91
83
|
* Copyright 2020 Google LLC
|
|
92
84
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
|
-
*/const{H:
|
|
85
|
+
*/const{H:xt}=it,wt=()=>document.createComment(""),$t=(t,e,i)=>{var o;const r=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=r.insertBefore(wt(),n),o=r.insertBefore(wt(),n);i=new xt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==n||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,n),t=e}}}return i},Ot=(t,e,i=t)=>(t._$AI(e,i),t),St={},Nt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Ct=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Et=bt(class extends mt{constructor(t){if(super(t),t.type!==gt)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let s=0;for(const e of t)r[s]=o?o(e,s):s,n[s]=i(e,s),s++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var r;const n=(t=>t._$AH)(t),{values:s,keys:a}=this.ht(e,i,o);if(!Array.isArray(n))return this.ut=a,s;const l=null!==(r=this.ut)&&void 0!==r?r:this.ut=[],c=[];let h,p,f=0,u=n.length-1,d=0,y=s.length-1;for(;f<=u&&d<=y;)if(null===n[f])f++;else if(null===n[u])u--;else if(l[f]===a[d])c[d]=Ot(n[f],s[d]),f++,d++;else if(l[u]===a[y])c[y]=Ot(n[u],s[y]),u--,y--;else if(l[f]===a[y])c[y]=Ot(n[f],s[y]),$t(t,c[y+1],n[f]),f++,y--;else if(l[u]===a[d])c[d]=Ot(n[u],s[d]),$t(t,n[f],n[u]),u--,d++;else if(void 0===h&&(h=Ct(a,d,y),p=Ct(l,f,u)),h.has(l[f]))if(h.has(l[u])){const e=p.get(a[d]),i=void 0!==e?n[e]:null;if(null===i){const e=$t(t,n[f]);Ot(e,s[d]),c[d]=e}else c[d]=Ot(i,s[d]),$t(t,n[f],i),n[e]=null;d++}else Nt(n[u]),u--;else Nt(n[f]),f++;for(;d<=y;){const e=$t(t,c[y+1]);Ot(e,s[d]),c[d++]=e}for(;f<=u;){const t=n[f++];null!==t&&Nt(t)}return this.ut=a,((t,e=St)=>{t._$AH=e})(t,c),D}});
|
|
94
86
|
/**
|
|
95
87
|
* @license
|
|
96
88
|
* Copyright 2017 Google LLC
|
|
97
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
98
|
-
*/var
|
|
99
|
-
/**
|
|
100
|
-
* @license
|
|
101
|
-
* Copyright 2018 Google LLC
|
|
102
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
103
|
-
*/
|
|
104
|
-
const Dt=Ct(class extends Et{constructor(t){var e;if(super(t),t.type!==kt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.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((e=>t[e])).join(" ")+" "}update(t,[e]){var i,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 e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return Z}});var _t=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Wt=dt.extend("--ft-ripple-color",vt.colorContent),It={color:Wt,backgroundColor:dt.extend("--ft-ripple-background-color",Wt),opacityContentOnSurfacePressed:dt.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(vt.opacityContentOnSurfaceSelected,"Design system")},Ht=dt.extend("--ft-ripple-color",vt.colorPrimary),Kt=Ht,Zt=dt.extend("--ft-ripple-background-color",Ht),Vt=dt.extend("--ft-ripple-color",vt.colorSecondary),Jt=Vt,qt=dt.extend("--ft-ripple-background-color",Vt);class Xt extends bt{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 e(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 e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{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 K`
|
|
105
|
-
<style>
|
|
106
|
-
.ft-ripple .ft-ripple--effect,
|
|
107
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
108
|
-
width: ${this.rippleSize}px;
|
|
109
|
-
height: ${this.rippleSize}px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.ft-ripple .ft-ripple--effect {
|
|
113
|
-
left: ${this.originX}px;
|
|
114
|
-
top: ${this.originY}px;
|
|
115
|
-
}
|
|
116
|
-
</style>
|
|
117
|
-
<div class="${Dt(t)}">
|
|
118
|
-
<div class="ft-ripple--background"></div>
|
|
119
|
-
<div class="ft-ripple--effect"></div>
|
|
120
|
-
</div>
|
|
121
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Xt.elementDefinitions={},Xt.styles=y`
|
|
122
|
-
:host {
|
|
123
|
-
display: contents;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.ft-ripple {
|
|
127
|
-
position: absolute;
|
|
128
|
-
inset: 0;
|
|
129
|
-
pointer-events: none;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
133
|
-
overflow: hidden;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.ft-ripple .ft-ripple--background,
|
|
137
|
-
.ft-ripple .ft-ripple--effect {
|
|
138
|
-
position: absolute;
|
|
139
|
-
opacity: 0;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.ft-ripple .ft-ripple--background {
|
|
143
|
-
background-color: ${It.backgroundColor};
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.ft-ripple .ft-ripple--effect {
|
|
147
|
-
background-color: ${It.color};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
151
|
-
background-color: ${qt};
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
155
|
-
background-color: ${Jt};
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
159
|
-
background-color: ${Zt};
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
163
|
-
background-color: ${Kt};
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.ft-ripple .ft-ripple--background {
|
|
167
|
-
top: 0;
|
|
168
|
-
left: 0;
|
|
169
|
-
height: 100%;
|
|
170
|
-
width: 100%;
|
|
171
|
-
transition: opacity 75ms linear;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.ft-ripple .ft-ripple--effect,
|
|
175
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
176
|
-
border-radius: 50%;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.ft-ripple .ft-ripple--effect {
|
|
180
|
-
transform: translate(-50%, -50%) scale(0.15);
|
|
181
|
-
transition: transform 300ms ease, opacity 75ms linear;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
185
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
186
|
-
left: 50%;
|
|
187
|
-
top: 50%;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
191
|
-
transform: translate(-50%, -50%);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
195
|
-
opacity: ${It.opacityContentOnSurfaceHover};
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
199
|
-
opacity: ${It.opacityContentOnSurfaceSelected};
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
203
|
-
opacity: ${It.opacityContentOnSurfaceFocused};
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
207
|
-
opacity: ${It.opacityContentOnSurfacePressed};
|
|
208
|
-
transform: translate(-50%, -50%) scale(1);
|
|
209
|
-
}
|
|
210
|
-
`,_t([o({type:Boolean})],Xt.prototype,"primary",void 0),_t([o({type:Boolean})],Xt.prototype,"secondary",void 0),_t([o({type:Boolean})],Xt.prototype,"unbounded",void 0),_t([o({type:Boolean})],Xt.prototype,"activated",void 0),_t([o({type:Boolean})],Xt.prototype,"selected",void 0),_t([o({type:Boolean})],Xt.prototype,"disabled",void 0),_t([n()],Xt.prototype,"hovered",void 0),_t([n()],Xt.prototype,"focused",void 0),_t([n()],Xt.prototype,"pressed",void 0),_t([n()],Xt.prototype,"rippling",void 0),_t([n()],Xt.prototype,"rippleSize",void 0),_t([n()],Xt.prototype,"originX",void 0),_t([n()],Xt.prototype,"originY",void 0),_t([s(".ft-ripple")],Xt.prototype,"ripple",void 0),_t([s(".ft-ripple--effect")],Xt.prototype,"rippleEffect",void 0),c("ft-ripple")(Xt);
|
|
90
|
+
*/var Rt=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Mt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Ut extends ut{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Mt)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}Rt([function(t){return i({...t,state:!0})}()],Ut.prototype,"stateManager",void 0);
|
|
211
91
|
/**
|
|
212
92
|
* @license
|
|
213
93
|
* Copyright 2020 Google LLC
|
|
214
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
215
95
|
*/
|
|
216
|
-
const
|
|
96
|
+
const kt=Symbol.for(""),Ft=t=>{if((null==t?void 0:t.r)===kt)return null==t?void 0:t._$litStatic$},At=t=>({_$litStatic$:t,r:kt}),jt=new Map,Lt=(t=>(e,...i)=>{const o=i.length;let r,n;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Ft(n));)l+=r+e[++c],h=!0;a.push(n),s.push(l),c++}if(c===o&&s.push(e[o]),h){const t=s.join("$$lit$$");void 0===(e=jt.get(t))&&(s.raw=s,jt.set(t,e=s)),i=a}return t(e,...i)})(B);var Pt,Tt=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,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"}(Pt||(Pt={}));const zt=lt.extend("--ft-typography-font-family",ct.titleFont),_t=lt.extend("--ft-typography-font-family",ct.contentFont),Bt={fontFamily:_t,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Dt=lt.extend("--ft-typography-title-font-family",zt),Wt=lt.extend("--ft-typography-title-font-size",Bt.fontSize,"20px"),Ht=lt.extend("--ft-typography-title-font-weight",Bt.fontWeight,"normal"),It=lt.extend("--ft-typography-title-letter-spacing",Bt.letterSpacing,"0.15px"),Kt=lt.extend("--ft-typography-title-line-height",Bt.lineHeight,"1.2"),Zt=lt.extend("--ft-typography-title-text-transform",Bt.textTransform,"inherit"),Vt=lt.extend("--ft-typography-title-dense-font-family",zt),Jt=lt.extend("--ft-typography-title-dense-font-size",Bt.fontSize,"14px"),Xt=lt.extend("--ft-typography-title-dense-font-weight",Bt.fontWeight,"normal"),qt=lt.extend("--ft-typography-title-dense-letter-spacing",Bt.letterSpacing,"0.105px"),Gt=lt.extend("--ft-typography-title-dense-line-height",Bt.lineHeight,"1.7"),Qt=lt.extend("--ft-typography-title-dense-text-transform",Bt.textTransform,"inherit"),Yt=lt.extend("--ft-typography-subtitle1-font-family",_t),te=lt.extend("--ft-typography-subtitle1-font-size",Bt.fontSize,"16px"),ee=lt.extend("--ft-typography-subtitle1-font-weight",Bt.fontWeight,"600"),ie=lt.extend("--ft-typography-subtitle1-letter-spacing",Bt.letterSpacing,"0.144px"),oe=lt.extend("--ft-typography-subtitle1-line-height",Bt.lineHeight,"1.5"),re=lt.extend("--ft-typography-subtitle1-text-transform",Bt.textTransform,"inherit"),ne=lt.extend("--ft-typography-subtitle2-font-family",_t),se=lt.extend("--ft-typography-subtitle2-font-size",Bt.fontSize,"14px"),ae=lt.extend("--ft-typography-subtitle2-font-weight",Bt.fontWeight,"normal"),le=lt.extend("--ft-typography-subtitle2-letter-spacing",Bt.letterSpacing,"0.098px"),ce=lt.extend("--ft-typography-subtitle2-line-height",Bt.lineHeight,"1.7"),he=lt.extend("--ft-typography-subtitle2-text-transform",Bt.textTransform,"inherit"),pe=lt.extend("--ft-typography-body1-font-family",_t),fe=lt.extend("--ft-typography-body1-font-size",Bt.fontSize,"16px"),ue=lt.extend("--ft-typography-body1-font-weight",Bt.fontWeight,"normal"),de=lt.extend("--ft-typography-body1-letter-spacing",Bt.letterSpacing,"0.496px"),ye=lt.extend("--ft-typography-body1-line-height",Bt.lineHeight,"1.5"),ve=lt.extend("--ft-typography-body1-text-transform",Bt.textTransform,"inherit"),ge=lt.extend("--ft-typography-body2-font-family",_t),be=lt.extend("--ft-typography-body2-font-size",Bt.fontSize,"14px"),me=lt.extend("--ft-typography-body2-font-weight",Bt.fontWeight,"normal"),xe=lt.extend("--ft-typography-body2-letter-spacing",Bt.letterSpacing,"0.252px"),we=lt.extend("--ft-typography-body2-line-height",Bt.lineHeight,"1.4"),$e=lt.extend("--ft-typography-body2-text-transform",Bt.textTransform,"inherit"),Oe=lt.extend("--ft-typography-caption-font-family",_t),Se=lt.extend("--ft-typography-caption-font-size",Bt.fontSize,"12px"),Ne=lt.extend("--ft-typography-caption-font-weight",Bt.fontWeight,"normal"),Ce=lt.extend("--ft-typography-caption-letter-spacing",Bt.letterSpacing,"0.396px"),Ee=lt.extend("--ft-typography-caption-line-height",Bt.lineHeight,"1.33"),Re=lt.extend("--ft-typography-caption-text-transform",Bt.textTransform,"inherit"),Me=lt.extend("--ft-typography-breadcrumb-font-family",_t),Ue=lt.extend("--ft-typography-breadcrumb-font-size",Bt.fontSize,"10px"),ke=lt.extend("--ft-typography-breadcrumb-font-weight",Bt.fontWeight,"normal"),Fe=lt.extend("--ft-typography-breadcrumb-letter-spacing",Bt.letterSpacing,"0.33px"),Ae=lt.extend("--ft-typography-breadcrumb-line-height",Bt.lineHeight,"1.6"),je=lt.extend("--ft-typography-breadcrumb-text-transform",Bt.textTransform,"inherit"),Le=lt.extend("--ft-typography-overline-font-family",_t),Pe=lt.extend("--ft-typography-overline-font-size",Bt.fontSize,"10px"),Te=lt.extend("--ft-typography-overline-font-weight",Bt.fontWeight,"normal"),ze=lt.extend("--ft-typography-overline-letter-spacing",Bt.letterSpacing,"1.5px"),_e=lt.extend("--ft-typography-overline-line-height",Bt.lineHeight,"1.6"),Be=lt.extend("--ft-typography-overline-text-transform",Bt.textTransform,"uppercase"),De=lt.extend("--ft-typography-button-font-family",_t),We=lt.extend("--ft-typography-button-font-size",Bt.fontSize,"14px"),He=lt.extend("--ft-typography-button-font-weight",Bt.fontWeight,"600"),Ie=lt.extend("--ft-typography-button-letter-spacing",Bt.letterSpacing,"1.246px"),Ke=lt.extend("--ft-typography-button-line-height",Bt.lineHeight,"1.15"),Ze=lt.extend("--ft-typography-button-text-transform",Bt.textTransform,"uppercase"),Ve=p`
|
|
217
97
|
.ft-typography--title {
|
|
218
|
-
font-family: ${
|
|
219
|
-
font-size: ${
|
|
220
|
-
font-weight: ${
|
|
221
|
-
letter-spacing: ${
|
|
222
|
-
line-height: ${
|
|
223
|
-
text-transform: ${
|
|
98
|
+
font-family: ${Dt};
|
|
99
|
+
font-size: ${Wt};
|
|
100
|
+
font-weight: ${Ht};
|
|
101
|
+
letter-spacing: ${It};
|
|
102
|
+
line-height: ${Kt};
|
|
103
|
+
text-transform: ${Zt};
|
|
224
104
|
}
|
|
225
|
-
`,
|
|
105
|
+
`,Je=p`
|
|
226
106
|
.ft-typography--title-dense {
|
|
227
|
-
font-family: ${
|
|
228
|
-
font-size: ${
|
|
229
|
-
font-weight: ${
|
|
230
|
-
letter-spacing: ${
|
|
231
|
-
line-height: ${
|
|
232
|
-
text-transform: ${
|
|
107
|
+
font-family: ${Vt};
|
|
108
|
+
font-size: ${Jt};
|
|
109
|
+
font-weight: ${Xt};
|
|
110
|
+
letter-spacing: ${qt};
|
|
111
|
+
line-height: ${Gt};
|
|
112
|
+
text-transform: ${Qt};
|
|
233
113
|
}
|
|
234
|
-
`,
|
|
114
|
+
`,Xe=p`
|
|
235
115
|
.ft-typography--subtitle1 {
|
|
236
|
-
font-family: ${
|
|
237
|
-
font-size: ${
|
|
238
|
-
font-weight: ${
|
|
239
|
-
letter-spacing: ${
|
|
240
|
-
line-height: ${
|
|
241
|
-
text-transform: ${
|
|
116
|
+
font-family: ${Yt};
|
|
117
|
+
font-size: ${te};
|
|
118
|
+
font-weight: ${ee};
|
|
119
|
+
letter-spacing: ${ie};
|
|
120
|
+
line-height: ${oe};
|
|
121
|
+
text-transform: ${re};
|
|
242
122
|
}
|
|
243
|
-
`,
|
|
123
|
+
`,qe=p`
|
|
244
124
|
.ft-typography--subtitle2 {
|
|
245
|
-
font-family: ${
|
|
246
|
-
font-size: ${
|
|
247
|
-
font-weight: ${
|
|
248
|
-
letter-spacing: ${
|
|
249
|
-
line-height: ${
|
|
250
|
-
text-transform: ${
|
|
125
|
+
font-family: ${ne};
|
|
126
|
+
font-size: ${se};
|
|
127
|
+
font-weight: ${ae};
|
|
128
|
+
letter-spacing: ${le};
|
|
129
|
+
line-height: ${ce};
|
|
130
|
+
text-transform: ${he};
|
|
251
131
|
}
|
|
252
132
|
|
|
253
|
-
`,
|
|
133
|
+
`,Ge=p`
|
|
254
134
|
.ft-typography--body1 {
|
|
255
|
-
font-family: ${
|
|
256
|
-
font-size: ${
|
|
257
|
-
font-weight: ${
|
|
258
|
-
letter-spacing: ${
|
|
259
|
-
line-height: ${
|
|
260
|
-
text-transform: ${
|
|
135
|
+
font-family: ${pe};
|
|
136
|
+
font-size: ${fe};
|
|
137
|
+
font-weight: ${ue};
|
|
138
|
+
letter-spacing: ${de};
|
|
139
|
+
line-height: ${ye};
|
|
140
|
+
text-transform: ${ve};
|
|
261
141
|
}
|
|
262
|
-
`,
|
|
142
|
+
`,Qe=p`
|
|
263
143
|
.ft-typography--body2 {
|
|
264
|
-
font-family: ${
|
|
265
|
-
font-size: ${
|
|
266
|
-
font-weight: ${
|
|
267
|
-
letter-spacing: ${
|
|
268
|
-
line-height: ${
|
|
269
|
-
text-transform: ${
|
|
144
|
+
font-family: ${ge};
|
|
145
|
+
font-size: ${be};
|
|
146
|
+
font-weight: ${me};
|
|
147
|
+
letter-spacing: ${xe};
|
|
148
|
+
line-height: ${we};
|
|
149
|
+
text-transform: ${$e};
|
|
270
150
|
}
|
|
271
|
-
`,
|
|
151
|
+
`,Ye=p`
|
|
272
152
|
.ft-typography--caption {
|
|
273
|
-
font-family: ${
|
|
274
|
-
font-size: ${
|
|
275
|
-
font-weight: ${
|
|
276
|
-
letter-spacing: ${
|
|
277
|
-
line-height: ${
|
|
278
|
-
text-transform: ${
|
|
153
|
+
font-family: ${Oe};
|
|
154
|
+
font-size: ${Se};
|
|
155
|
+
font-weight: ${Ne};
|
|
156
|
+
letter-spacing: ${Ce};
|
|
157
|
+
line-height: ${Ee};
|
|
158
|
+
text-transform: ${Re};
|
|
279
159
|
}
|
|
280
|
-
`,
|
|
160
|
+
`,ti=p`
|
|
281
161
|
.ft-typography--breadcrumb {
|
|
282
|
-
font-family: ${
|
|
283
|
-
font-size: ${
|
|
284
|
-
font-weight: ${
|
|
285
|
-
letter-spacing: ${
|
|
286
|
-
line-height: ${
|
|
287
|
-
text-transform: ${
|
|
162
|
+
font-family: ${Me};
|
|
163
|
+
font-size: ${Ue};
|
|
164
|
+
font-weight: ${ke};
|
|
165
|
+
letter-spacing: ${Fe};
|
|
166
|
+
line-height: ${Ae};
|
|
167
|
+
text-transform: ${je};
|
|
288
168
|
}
|
|
289
|
-
`,
|
|
169
|
+
`,ei=p`
|
|
290
170
|
.ft-typography--overline {
|
|
291
|
-
font-family: ${
|
|
292
|
-
font-size: ${
|
|
293
|
-
font-weight: ${
|
|
294
|
-
letter-spacing: ${
|
|
295
|
-
line-height: ${
|
|
296
|
-
text-transform: ${
|
|
171
|
+
font-family: ${Le};
|
|
172
|
+
font-size: ${Pe};
|
|
173
|
+
font-weight: ${Te};
|
|
174
|
+
letter-spacing: ${ze};
|
|
175
|
+
line-height: ${_e};
|
|
176
|
+
text-transform: ${Be};
|
|
297
177
|
}
|
|
298
|
-
`,
|
|
178
|
+
`,ii=p`
|
|
299
179
|
.ft-typography--button {
|
|
300
|
-
font-family: ${
|
|
301
|
-
font-size: ${
|
|
302
|
-
font-weight: ${
|
|
303
|
-
letter-spacing: ${
|
|
304
|
-
line-height: ${
|
|
305
|
-
text-transform: ${
|
|
180
|
+
font-family: ${De};
|
|
181
|
+
font-size: ${We};
|
|
182
|
+
font-weight: ${He};
|
|
183
|
+
letter-spacing: ${Ie};
|
|
184
|
+
line-height: ${Ke};
|
|
185
|
+
text-transform: ${Ze};
|
|
306
186
|
}
|
|
307
|
-
`;class
|
|
308
|
-
<${
|
|
187
|
+
`;class oi extends pt{constructor(){super(...arguments),this.variant=Pt.body1}render(){return this.element?Lt`
|
|
188
|
+
<${At(this.element)}
|
|
309
189
|
class="ft-typography ft-typography--${this.variant}">
|
|
310
190
|
<slot></slot>
|
|
311
|
-
</${
|
|
312
|
-
`:
|
|
191
|
+
</${At(this.element)}>
|
|
192
|
+
`:Lt`
|
|
313
193
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
314
|
-
`}}
|
|
194
|
+
`}}oi.styles=[Ve,Je,Xe,qe,Ge,Qe,Ye,ti,ei,ii,p`
|
|
315
195
|
.ft-typography {
|
|
316
196
|
vertical-align: inherit;
|
|
317
197
|
}
|
|
318
|
-
`],
|
|
319
|
-
<div part="container"
|
|
320
|
-
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
321
|
-
@mouseenter=${this.onHover}
|
|
322
|
-
@mouseleave=${this.onOut}
|
|
323
|
-
@focusin=${this.onHover}
|
|
324
|
-
@focusout=${this.onOut}
|
|
325
|
-
@touchstart=${this.onTouch}>
|
|
326
|
-
<div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
|
|
327
|
-
<div part="tooltip-content" class="ft-tooltip--content">
|
|
328
|
-
<slot name="text"></slot>
|
|
329
|
-
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
330
|
-
</div>
|
|
331
|
-
</div>
|
|
332
|
-
<slot></slot>
|
|
333
|
-
</div>
|
|
334
|
-
`}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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.position){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${ki})`}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())}}Ni.elementDefinitions={"ft-typography":xi},Ni.styles=y`
|
|
335
|
-
.ft-tooltip--container {
|
|
336
|
-
display: block;
|
|
337
|
-
position: relative;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
.ft-tooltip--inline {
|
|
341
|
-
display: inline-block;
|
|
342
|
-
max-width: 100%;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
.ft-tooltip {
|
|
346
|
-
position: absolute;
|
|
347
|
-
box-sizing: border-box;
|
|
348
|
-
overflow: hidden;
|
|
349
|
-
width: max-content;
|
|
350
|
-
max-width: ${ki};
|
|
351
|
-
text-align: center;
|
|
352
|
-
padding: ${mi};
|
|
353
|
-
z-index: ${Oi};
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.ft-tooltip--content {
|
|
357
|
-
padding: 4px 8px;
|
|
358
|
-
border-radius: ${Si};
|
|
359
|
-
background-color: ${$i};
|
|
360
|
-
color: ${wi};
|
|
361
|
-
top: -500px;
|
|
362
|
-
left: -500px;
|
|
363
|
-
position: relative;
|
|
364
|
-
word-break: break-word;
|
|
365
|
-
}
|
|
366
|
-
`,gi([o()],Ni.prototype,"text",void 0),gi([o({type:Boolean})],Ni.prototype,"manual",void 0),gi([o({type:Boolean})],Ni.prototype,"inline",void 0),gi([o({type:Number})],Ni.prototype,"delay",void 0),gi([o()],Ni.prototype,"position",void 0),gi([
|
|
367
|
-
/**
|
|
368
|
-
* @license
|
|
369
|
-
* Copyright 2017 Google LLC
|
|
370
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
371
|
-
*/
|
|
372
|
-
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ni.prototype,"slotNodes",void 0),gi([s(".ft-tooltip--container")],Ni.prototype,"container",void 0),gi([s("slot")],Ni.prototype,"target",void 0),gi([s(".ft-tooltip")],Ni.prototype,"tooltip",void 0),gi([s(".ft-tooltip--content")],Ni.prototype,"tooltipContent",void 0),gi([n()],Ni.prototype,"visible",void 0),c("ft-tooltip")(Ni);const Ci={color:dt.extend("--ft-loader-color",vt.colorPrimary),size:dt.create("--ft-loader-size","SIZE","80px")};class Ei extends bt{static get styles(){return y`
|
|
373
|
-
:host {
|
|
374
|
-
line-height: 0;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.ft-loader {
|
|
378
|
-
display: inline-block;
|
|
379
|
-
position: relative;
|
|
380
|
-
|
|
381
|
-
width: ${Ci.size};
|
|
382
|
-
height: ${Ci.size};
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.ft-loader div {
|
|
386
|
-
position: absolute;
|
|
387
|
-
top: 37.5%;
|
|
388
|
-
width: 25%;
|
|
389
|
-
height: 25%;
|
|
390
|
-
border-radius: 50%;
|
|
391
|
-
background: ${Ci.color};
|
|
392
|
-
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.ft-loader div:nth-child(1) {
|
|
396
|
-
left: 2.5%;
|
|
397
|
-
animation: appear 0.6s infinite;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.ft-loader div:nth-child(2) {
|
|
401
|
-
left: 2.5%;
|
|
402
|
-
animation: move 0.6s infinite;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
.ft-loader div:nth-child(3) {
|
|
406
|
-
left: 37.5%;
|
|
407
|
-
animation: move 0.6s infinite;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
.ft-loader div:nth-child(4) {
|
|
411
|
-
left: 72.5%;
|
|
412
|
-
animation: disappear 0.6s infinite;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
@keyframes appear {
|
|
416
|
-
0% {
|
|
417
|
-
transform: scale(0);
|
|
418
|
-
}
|
|
419
|
-
100% {
|
|
420
|
-
transform: scale(1);
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
@keyframes disappear {
|
|
425
|
-
0% {
|
|
426
|
-
transform: scale(1);
|
|
427
|
-
}
|
|
428
|
-
100% {
|
|
429
|
-
transform: scale(0);
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
@keyframes move {
|
|
434
|
-
0% {
|
|
435
|
-
transform: translate(0, 0);
|
|
436
|
-
}
|
|
437
|
-
100% {
|
|
438
|
-
transform: translate(calc(0.35 * ${Ci.size}), 0);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
`}render(){return K`
|
|
442
|
-
<div class="ft-loader">
|
|
443
|
-
<div></div>
|
|
444
|
-
<div></div>
|
|
445
|
-
<div></div>
|
|
446
|
-
<div></div>
|
|
447
|
-
</div>
|
|
448
|
-
`}}c("ft-loader")(Ei);
|
|
198
|
+
`],Tt([i()],oi.prototype,"element",void 0),Tt([i()],oi.prototype,"variant",void 0),r("ft-typography")(oi);
|
|
449
199
|
/**
|
|
450
200
|
* @license
|
|
451
|
-
* Copyright
|
|
201
|
+
* Copyright 2018 Google LLC
|
|
452
202
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
453
203
|
*/
|
|
454
|
-
class
|
|
455
|
-
:host {
|
|
456
|
-
display: inline-block;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
:host, i.ft-icon {
|
|
460
|
-
width: ${Ti.size};
|
|
461
|
-
height: ${Ti.size};
|
|
462
|
-
text-align: center;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
i.ft-icon {
|
|
466
|
-
font-size: ${Ti.size};
|
|
467
|
-
line-height: 1;
|
|
468
|
-
font-weight: normal;
|
|
469
|
-
text-transform: none;
|
|
470
|
-
font-style: normal;
|
|
471
|
-
font-variant: normal;
|
|
472
|
-
speak: none;
|
|
473
|
-
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
474
|
-
text-rendering: auto;
|
|
475
|
-
-webkit-font-smoothing: antialiased;
|
|
476
|
-
-moz-osx-font-smoothing: grayscale;
|
|
477
|
-
vertical-align: ${Ti.verticalAlign};
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.ft-icon--fluid-topics {
|
|
481
|
-
font-family: ${Ti.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
.ft-icon--file-format {
|
|
485
|
-
font-family: ${Ti.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.ft-icon--material {
|
|
489
|
-
font-family: ${Ti.materialFontFamily}, "Material Icons", sans-serif;
|
|
490
|
-
}
|
|
491
|
-
`}getTemplate(){return K`
|
|
492
|
-
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
493
|
-
${Mi(this.getIcon())}
|
|
494
|
-
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
495
|
-
</i>
|
|
496
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===ji.file_format?null!==(t=Fi[i.toUpperCase()])&&void 0!==t?t:i:this.variant===ji.fluid_topics?null!==(e=zi[i.toUpperCase()])&&void 0!==e?e:i:V}}Ai.elementDefinitions={},Ui([o()],Ai.prototype,"variant",void 0),Ui([s("slot")],Ai.prototype,"slottedContent",void 0),c("ft-icon")(Ai);var Bi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Li=dt.extend("--ft-button-color",vt.colorPrimary),Pi={backgroundColor:dt.extend("--ft-button-background-color",vt.colorSurface),borderRadius:dt.extend("--ft-button-border-radius",vt.borderRadiusL),color:Li,fontSize:dt.extend("--ft-button-font-size",ai.fontSize),iconSize:dt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:dt.extend("--ft-button-ripple-color",Li),opacityDisabled:dt.external(vt.colorOpacityDisabled,"Design system")},Di=dt.extend("--ft-button-primary-color",dt.extend("--ft-button-color",vt.colorOnPrimary)),_i={backgroundColor:dt.extend("--ft-button-primary-background-color",dt.extend("--ft-button-background-color",vt.colorPrimary)),color:Di,rippleColor:dt.extend("--ft-button-primary-ripple-color",Di)},Wi=dt.extend("--ft-button-dense-border-radius",dt.extend("--ft-button-border-radius",vt.borderRadiusM));class Ii extends bt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[xt,y`
|
|
497
|
-
:host {
|
|
498
|
-
display: inline-block;
|
|
499
|
-
max-width: 100%;
|
|
500
|
-
pointer-events: none;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
button {
|
|
504
|
-
box-shadow: 0px 0px 0px transparent;
|
|
505
|
-
border: 0px solid transparent;
|
|
506
|
-
text-shadow: 0px 0px 0px transparent;
|
|
507
|
-
font-size: ${Pi.fontSize};
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
button:hover {
|
|
511
|
-
box-shadow: 0px 0px 0px transparent;
|
|
512
|
-
border: 0px solid transparent;
|
|
513
|
-
text-shadow: 0px 0px 0px transparent;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
button:active {
|
|
517
|
-
outline: none;
|
|
518
|
-
border: none;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
button:focus {
|
|
522
|
-
outline: 0;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
.ft-button {
|
|
526
|
-
position: relative;
|
|
527
|
-
display: flex;
|
|
528
|
-
justify-content: center;
|
|
529
|
-
align-items: center;
|
|
530
|
-
width: 100%;
|
|
531
|
-
overflow: hidden;
|
|
532
|
-
box-sizing: border-box;
|
|
533
|
-
border: none;
|
|
534
|
-
pointer-events: auto;
|
|
535
|
-
|
|
536
|
-
--ft-button-internal-line-height: calc(${Pi.fontSize} + 2px);
|
|
537
|
-
--ft-button-internal-color: ${Pi.color};
|
|
538
|
-
${ut(Ti.size,Pi.iconSize)};
|
|
539
|
-
--ft-button-internal-vertical-padding: 6px;
|
|
540
|
-
--ft-button-internal-horizontal-padding: 8px;
|
|
541
|
-
${ut(It.color,Pi.rippleColor)};
|
|
542
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Pi.iconSize});
|
|
543
|
-
|
|
544
|
-
border-radius: ${Pi.borderRadius};
|
|
545
|
-
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
546
|
-
background-color: ${Pi.backgroundColor};
|
|
547
|
-
color: var(--ft-button-internal-color);
|
|
548
|
-
-webkit-mask-image: radial-gradient(white, black);
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
.ft-button:not([disabled]):hover {
|
|
552
|
-
cursor: pointer;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
.ft-button--dense {
|
|
556
|
-
--ft-button-internal-vertical-padding: 2px;
|
|
557
|
-
--ft-button-internal-horizontal-padding: 4px;
|
|
558
|
-
border-radius: ${Wi};
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
.ft-button--round {
|
|
562
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
.ft-button[disabled] {
|
|
566
|
-
filter: grayscale(1);
|
|
567
|
-
opacity: ${Pi.opacityDisabled};
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
.ft-button.ft-button--primary {
|
|
571
|
-
background-color: ${_i.backgroundColor};
|
|
572
|
-
--ft-button-internal-color: ${_i.color};
|
|
573
|
-
${ut(It.color,_i.rippleColor)};
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
.ft-button.ft-button--outlined {
|
|
577
|
-
border: 1px solid var(--ft-button-internal-color);
|
|
578
|
-
padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
.ft-button:focus {
|
|
582
|
-
outline: none;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.ft-button--label {
|
|
586
|
-
position: relative;
|
|
587
|
-
overflow: hidden;
|
|
588
|
-
white-space: nowrap;
|
|
589
|
-
text-overflow: ellipsis;
|
|
590
|
-
display: block;
|
|
591
|
-
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
592
|
-
${ut(ai.fontSize,"1em")};
|
|
593
|
-
${ut(ai.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
.ft-button--safari-fix .ft-button--label {
|
|
597
|
-
margin-right: 0;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
.ft-button--safari-fix .ft-button--label:after {
|
|
601
|
-
content: "\\0000a0";
|
|
602
|
-
display: inline-block;
|
|
603
|
-
width: 0;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.ft-button--label[hidden] {
|
|
607
|
-
display: none;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
ft-icon {
|
|
611
|
-
flex-shrink: 0;
|
|
612
|
-
position: relative;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
.ft-button--label[hidden] + ft-icon {
|
|
616
|
-
margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
|
|
617
|
-
padding: 0 var(--ft-button-internal-vertical-padding);
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
621
|
-
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
622
|
-
order: -1;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
ft-loader {
|
|
626
|
-
${ut(Ci.size,Pi.iconSize)};
|
|
627
|
-
${ut(Ci.color,"var(--ft-button-internal-color)")};
|
|
628
|
-
}
|
|
629
|
-
`]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":St,"ft-no-text-select":!0};return this.addTooltip(K`
|
|
630
|
-
<button part="button"
|
|
631
|
-
class="${Dt(t)}"
|
|
632
|
-
aria-label="${this.getLabel()}"
|
|
633
|
-
?disabled=${this.isDisabled()}>
|
|
634
|
-
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
635
|
-
<ft-typography part="label"
|
|
636
|
-
variant="button"
|
|
637
|
-
class="ft-button--label"
|
|
638
|
-
?hidden=${!this.hasTextContent()}>
|
|
639
|
-
<slot @slotchange=${this.onSlotchange}></slot>
|
|
640
|
-
</ft-typography>
|
|
641
|
-
${this.resolveIcon()}
|
|
642
|
-
</button>
|
|
643
|
-
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:K`
|
|
644
|
-
<ft-tooltip part="tooltip"
|
|
645
|
-
text="${this.getLabel()}"
|
|
646
|
-
position="${this.tooltipPosition}">
|
|
647
|
-
${t}
|
|
648
|
-
</ft-tooltip>
|
|
649
|
-
`}resolveIcon(){return this.loading?K`
|
|
650
|
-
<ft-loader></ft-loader> `:this.icon?K`
|
|
651
|
-
<ft-icon variant="material">${this.icon}</ft-icon> `:V}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ii.elementDefinitions={"ft-ripple":Xt,"ft-tooltip":Ni,"ft-typography":xi,"ft-icon":Ai,"ft-loader":Ei},Bi([o({type:Boolean})],Ii.prototype,"primary",void 0),Bi([o({type:Boolean})],Ii.prototype,"outlined",void 0),Bi([o({type:Boolean})],Ii.prototype,"disabled",void 0),Bi([o({type:Boolean})],Ii.prototype,"dense",void 0),Bi([o({type:Boolean})],Ii.prototype,"round",void 0),Bi([o({type:String})],Ii.prototype,"label",void 0),Bi([o({type:String})],Ii.prototype,"icon",void 0),Bi([o({type:Boolean})],Ii.prototype,"trailingIcon",void 0),Bi([o({type:Boolean})],Ii.prototype,"loading",void 0),Bi([o({type:String})],Ii.prototype,"tooltipPosition",void 0),Bi([s(".ft-button")],Ii.prototype,"button",void 0),Bi([s(".ft-button--label slot")],Ii.prototype,"slottedContent",void 0),c("ft-button")(Ii);var Hi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ki extends Pt{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Dt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return K`
|
|
204
|
+
const ri=bt(class extends mt{constructor(t){var e;if(super(t),t.type!==vt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.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((e=>t[e])).join(" ")+" "}update(t,[e]){var i,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 e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const r=t.element.classList;this.nt.forEach((t=>{t in e||(r.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return D}});var ni=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class si extends Ut{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=ri({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return B`
|
|
652
205
|
<a class=${e}
|
|
653
206
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
654
207
|
@click=${t=>this.onClick(t)}>
|
|
655
208
|
<slot></slot>
|
|
656
209
|
</a>
|
|
657
|
-
`}onClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section)))}}
|
|
210
|
+
`}onClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section)))}}si.styles=p`
|
|
658
211
|
.ft-reader-link--remove-style {
|
|
659
212
|
text-decoration: none;
|
|
660
213
|
color: inherit;
|
|
661
214
|
}
|
|
662
|
-
`,
|
|
215
|
+
`,ni([i()],si.prototype,"tocId",void 0),ni([i()],si.prototype,"section",void 0),ni([i()],si.prototype,"pageNumber",void 0),ni([i({type:Boolean})],si.prototype,"removeStyle",void 0),r("ft-reader-internal-link")(si);var ai=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const li={colorPrimary:lt.external(ct.colorPrimary,"Design system"),colorOnPrimary:lt.external(ct.colorOnPrimary,"Design system"),tabulationSize:lt.create("--ft-reader-toc-tabulation-size","SIZE","8px")};class ci extends Ut{render(){var t;return B`
|
|
663
216
|
<div class="ft-reader-toc">
|
|
664
|
-
${
|
|
217
|
+
${Et(null!==(t=this.toc)&&void 0!==t?t:[],(t=>t.tocId),(t=>this.renderNode(t)))}
|
|
665
218
|
</div>
|
|
666
|
-
`}renderNode(t){var e,i;const o=this.splitToc&&null!=t.page&&!t.page.onItsOwn,
|
|
219
|
+
`}renderNode(t){var e,i;const o=this.splitToc&&null!=t.page&&!t.page.onItsOwn,r=this.splitToc?(null===(e=this.currentPage)||void 0===e?void 0:e.rootTocId)===t.tocId:null===(i=this.visibleTopics)||void 0===i?void 0:i.includes(t.tocId);return B`
|
|
667
220
|
<div class="ft-reader-toc--node">
|
|
668
221
|
<ft-reader-internal-link
|
|
669
|
-
class="${
|
|
222
|
+
class="${r?"ft-reader-toc--node-visible":""}"
|
|
670
223
|
tocId=${t.tocId}>
|
|
671
224
|
<ft-typography variant="body2">${t.title}</ft-typography>
|
|
672
225
|
</ft-reader-internal-link>
|
|
673
226
|
<div class="ft-reader-toc--node-children">
|
|
674
|
-
${o?
|
|
227
|
+
${o?W:Et(t.children,(t=>t.tocId),(t=>this.renderNode(t)))}
|
|
675
228
|
</div>
|
|
676
229
|
</div>
|
|
677
|
-
`}}
|
|
230
|
+
`}}ci.elementDefinitions={"ft-typography":oi,"ft-reader-internal-link":si},ci.styles=p`
|
|
678
231
|
.ft-reader-toc--node-visible {
|
|
679
|
-
background-color: ${
|
|
680
|
-
color: ${
|
|
232
|
+
background-color: ${li.colorPrimary};
|
|
233
|
+
color: ${li.colorOnPrimary};
|
|
681
234
|
}
|
|
682
235
|
|
|
683
236
|
.ft-reader-toc--node-children {
|
|
684
|
-
padding-left: ${
|
|
237
|
+
padding-left: ${li.tabulationSize};
|
|
685
238
|
}
|
|
686
|
-
`,
|
|
239
|
+
`,ai([ft()],ci.prototype,"toc",void 0),ai([ft((t=>{var e;return null===(e=t.map)||void 0===e?void 0:e.shouldSplitCurrentPageToc}))],ci.prototype,"splitToc",void 0),ai([ft()],ci.prototype,"currentPage",void 0),ai([ft()],ci.prototype,"visibleTopics",void 0),r("ft-reader-toc")(ci),t.FtReaderToc=ci,t.FtReaderTocCssVariables=li,Object.defineProperty(t,"i",{value:!0})}({});
|