@fluid-topics/ft-reader-toc 1.0.57 → 1.0.58
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.light.js +161 -161
- package/build/ft-reader-toc.min.js +179 -179
- package/package.json +7 -7
|
@@ -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,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=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||[]);d(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 c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.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=r.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),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(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=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.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)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){f(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)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.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!==n.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 s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),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 r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=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||[]);d(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 c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.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=r.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),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(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=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.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)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){f(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)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.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!==n.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 s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),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 r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Bi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -55,13 +55,13 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
57
|
*/
|
|
58
|
-
var R;M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:M}),(null!==(w=$.reactiveElementVersions)&&void 0!==w?w:$.reactiveElementVersions=[]).push("1.6.1");const z=window,A=z.trustedTypes,U=A?A.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,
|
|
58
|
+
var R;M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:M}),(null!==(w=$.reactiveElementVersions)&&void 0!==w?w:$.reactiveElementVersions=[]).push("1.6.1");const z=window,A=z.trustedTypes,U=A?A.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,I="?"+F,L=`<${I}>`,T=document,B=()=>T.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,D=t=>_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),W="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,Z=/>/g,V=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,J=/"/g,q=/^(?:script|style|textarea|title)$/i,G=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Y=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),tt=new WeakMap,et=T.createTreeWalker(T,129,null,!1),it=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=H;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===H?"!--"===l[1]?r=K:void 0!==l[1]?r=Z:void 0!==l[2]?(q.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=V):void 0!==l[3]&&(r=V):r===V?">"===l[0]?(r=null!=n?n:H,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?V:'"'===l[3]?J:X):r===J||r===X?r=V:r===K||r===Z?r=H:(r=V,n=void 0);const p=r===V&&t[e+1].startsWith("/>")?" ":"";s+=r===H?i+L:h>=0?(o.push(a),i.slice(0,h)+j+i.slice(h)+F+p):i+F+(-2===h?(o.push(void 0),e):p)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,o]};class ot{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=it(t,e);if(this.el=ot.createElement(l,i),et.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=et.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(j)||e.startsWith(F)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+j).split(F),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?ct:"@"===e[1]?pt:at})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(q.test(o.tagName)){const t=o.textContent.split(F),e=t.length-1;if(e>0){o.textContent=A?A.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],B()),et.nextNode(),a.push({type:2,index:++n});o.append(t[e],B())}}}else if(8===o.nodeType)if(o.data===I)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,e){const i=T.createElement("template");return i.innerHTML=t,i}}function nt(t,e,i=t,o){var n,s,r,a;if(e===Y)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=P(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=nt(t,l._$AS(t,e.values),l,o)),e}class st{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:T).importNode(i,!0);et.currentNode=n;let s=et.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new rt(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new dt(s,this,t)),this._$AV.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=et.nextNode(),r++)}return n}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class rt{constructor(t,e,i,o){var n;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=nt(this,t,e),P(t)?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==Y&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):D(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Q&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(T.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ot.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new st(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=tt.get(t.strings);return void 0===e&&tt.set(t.strings,e=new ot(t)),e}T(t){_(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new rt(this.k(B()),this.k(B()),this,this.options)):i=e[o],i._$AI(n),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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class at{constructor(t,e,i,o,n){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=nt(this,t,e,0),s=!P(t)||t!==this._$AH&&t!==Y,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=nt(this,o[i+r],e,r),a===Y&&(a=this._$AH[r]),s||(s=!P(a)||a!==this._$AH[r]),a===Q?t=Q:t!==Q&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lt extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Q?void 0:t}}const ht=A?A.emptyScript:"";class ct extends at{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Q?this.element.setAttribute(this.name,ht):this.element.removeAttribute(this.name)}}class pt extends at{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=nt(this,t,e,0))&&void 0!==i?i:Q)===Y)return;const o=this._$AH,n=t===Q&&o!==Q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==Q&&(o===Q||n);n&&this.element.removeEventListener(this.name,this,o),s&&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 dt{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){nt(this,t)}}const ft={O:j,P:F,A:I,C:1,M:it,L:st,D,R:nt,I:rt,V:at,H:ct,N:pt,U:lt,F:dt},ut=z.litHtmlPolyfillSupport;null==ut||ut(ot,rt),(null!==(R=z.litHtmlVersions)&&void 0!==R?R:z.litHtmlVersions=[]).push("2.7.3");
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
63
|
*/
|
|
64
|
-
var vt,xt;let yt=class extends M{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,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new rt(e.insertBefore(B(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(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 G}};yt.finalized=!0,yt._$litElement$=!0,null===(vt=globalThis.litElementHydrateSupport)||void 0===vt||vt.call(globalThis,{LitElement:yt});const bt=globalThis.litElementPolyfillSupport;null==bt||bt({LitElement:yt}),(null!==(xt=globalThis.litElementVersions)&&void 0!==xt?xt:globalThis.litElementVersions=[]).push("3.3.2");class gt{static create(t,e,i){let o=t=>y(null!=t?t:i),n=b`var(${y(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>b`var(${y(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=b`var(${y(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>b`var(${y(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=b`var(${y(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=>b`var(${y(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}}function mt(t,e){return y(`${t.name}: ${e}`)}const wt={colorPrimary:gt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:gt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:gt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:gt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:gt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:gt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:gt.create("--ft-color-error","COLOR","#B00020"),colorOutline:gt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:gt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:gt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:gt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:gt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:gt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:gt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:gt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:gt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:gt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:gt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:gt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:gt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:gt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:gt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:gt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:gt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:gt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:gt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:gt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:gt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:gt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:gt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:gt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:gt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:gt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:gt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:gt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:gt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:gt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:gt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:gt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:gt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:gt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:gt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:gt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:gt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:gt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:gt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:gt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:gt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:gt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:gt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:gt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class $t extends yt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return g(i,t.elementStyles),i}}var St,Ot=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const kt=Symbol("constructorPrototype"),Ct=Symbol("constructorName"),Nt=Symbol("exportpartsDebouncer");class Et extends $t{constructor(){super(),this[St]=new e(5),this[Ct]=this.constructor.name,this[kt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ct]&&Object.setPrototypeOf(this,this[kt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Nt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,s,r;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 h=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!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}St=Nt,Ot([o()],Et.prototype,"exportpartsPrefix",void 0),Ot([p([])],Et.prototype,"exportpartsPrefixes",void 0),Ot([o()],Et.prototype,"customStylesheet",void 0);const Mt=b`
|
|
64
|
+
var vt,xt;let yt=class extends M{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,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new rt(e.insertBefore(B(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(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 Y}};yt.finalized=!0,yt._$litElement$=!0,null===(vt=globalThis.litElementHydrateSupport)||void 0===vt||vt.call(globalThis,{LitElement:yt});const bt=globalThis.litElementPolyfillSupport;null==bt||bt({LitElement:yt}),(null!==(xt=globalThis.litElementVersions)&&void 0!==xt?xt:globalThis.litElementVersions=[]).push("3.3.2");class gt{static create(t,e,i){let o=t=>y(null!=t?t:i),n=b`var(${y(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>b`var(${y(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=b`var(${y(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>b`var(${y(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=b`var(${y(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=>b`var(${y(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}}function mt(t,e){return y(`${t.name}: ${e}`)}const wt={colorPrimary:gt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:gt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:gt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:gt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:gt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:gt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:gt.create("--ft-color-error","COLOR","#B00020"),colorOutline:gt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:gt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:gt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:gt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:gt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:gt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:gt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:gt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:gt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:gt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:gt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:gt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:gt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:gt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:gt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:gt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:gt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:gt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:gt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:gt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:gt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:gt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:gt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:gt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:gt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:gt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:gt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:gt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:gt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:gt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:gt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:gt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:gt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:gt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:gt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:gt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:gt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:gt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:gt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:gt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:gt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:gt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:gt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:gt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class $t extends yt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return g(i,t.elementStyles),i}}var St,Ot=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const kt=Symbol("constructorPrototype"),Ct=Symbol("constructorName"),Nt=Symbol("exportpartsDebouncer");class Et extends $t{constructor(){super(),this[St]=new e(5),this[Ct]=this.constructor.name,this[kt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ct]&&Object.setPrototypeOf(this,this[kt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Nt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,s,r;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 h=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!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}St=Nt,Ot([o()],Et.prototype,"exportpartsPrefix",void 0),Ot([p([])],Et.prototype,"exportpartsPrefixes",void 0),Ot([o()],Et.prototype,"customStylesheet",void 0);const Mt=b`
|
|
65
65
|
.ft-no-text-select {
|
|
66
66
|
-webkit-touch-callout: none;
|
|
67
67
|
-webkit-user-select: none;
|
|
@@ -93,7 +93,7 @@ var vt,xt;let yt=class extends M{constructor(){super(...arguments),this.renderOp
|
|
|
93
93
|
display: inline-block;
|
|
94
94
|
width: 0;
|
|
95
95
|
}
|
|
96
|
-
`;class zt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function At(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ut,jt,Ft;const
|
|
96
|
+
`;class zt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function At(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ut,jt,Ft;const It=Symbol("internalReduxEventsUnsubscribers"),Lt=Symbol("internalStoresUnsubscribers"),Tt=Symbol("internalStores");class Bt extends Et{constructor(){super(...arguments),this[Ut]=new Map,this[jt]=new Map,this[Ft]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Tt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Tt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Tt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:At(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Tt].delete(e)}setupStore(t,e){this[Tt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Tt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Lt].has(t.store):this[Lt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Lt].set(t,e.subscribe((()=>this.updateFromStores()))),At(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[It].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Lt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[It].forEach((t=>t())),this[It]=[]}unsubscribeFromStore(t){this[Lt].has(t)&&this[Lt].get(t)(),this[Lt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}Ut=Lt,jt=Tt,Ft=It,window.ftReduxStores||(window.ftReduxStores={});const Pt=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const s={hasChanged:(t,e)=>!h(t,e),attribute:!1,...e};o(s)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}};var _t,Dt,Wt;const Ht=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Wt=null===(Dt=null===(_t=window.safari)||void 0===_t?void 0:_t.pushNotification)||void 0===Dt?void 0:Dt.toString())&&void 0!==Wt?Wt:""),Kt=1,Zt=2,Vt=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
97
97
|
/**
|
|
98
98
|
* @license
|
|
99
99
|
* Copyright 2017 Google LLC
|
|
@@ -103,144 +103,144 @@ var vt,xt;let yt=class extends M{constructor(){super(...arguments),this.renderOp
|
|
|
103
103
|
* @license
|
|
104
104
|
* Copyright 2020 Google LLC
|
|
105
105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*/const{I:Jt}=ft,qt=()=>document.createComment(""),
|
|
106
|
+
*/const{I:Jt}=ft,qt=()=>document.createComment(""),Gt=(t,e,i)=>{var o;const n=t._$AA.parentNode,s=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(qt(),s),o=n.insertBefore(qt(),s);i=new Jt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,a=r!==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)!==r._$AU&&i._$AP(e)}if(e!==s||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,s),t=e}}}return i},Yt=(t,e,i=t)=>(t._$AI(e,i),t),Qt={},te=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}},ee=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},ie=Vt(class extends Xt{constructor(t){if(super(t),t.type!==Zt)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],s=[];let r=0;for(const e of t)n[r]=o?o(e,r):r,s[r]=i(e,r),r++;return{values:s,keys:n}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var n;const s=(t=>t._$AH)(t),{values:r,keys:a}=this.dt(e,i,o);if(!Array.isArray(s))return this.ht=a,r;const l=null!==(n=this.ht)&&void 0!==n?n:this.ht=[],h=[];let c,p,d=0,f=s.length-1,u=0,v=r.length-1;for(;d<=f&&u<=v;)if(null===s[d])d++;else if(null===s[f])f--;else if(l[d]===a[u])h[u]=Yt(s[d],r[u]),d++,u++;else if(l[f]===a[v])h[v]=Yt(s[f],r[v]),f--,v--;else if(l[d]===a[v])h[v]=Yt(s[d],r[v]),Gt(t,h[v+1],s[d]),d++,v--;else if(l[f]===a[u])h[u]=Yt(s[f],r[u]),Gt(t,s[d],s[f]),f--,u++;else if(void 0===c&&(c=ee(a,u,v),p=ee(l,d,f)),c.has(l[d]))if(c.has(l[f])){const e=p.get(a[u]),i=void 0!==e?s[e]:null;if(null===i){const e=Gt(t,s[d]);Yt(e,r[u]),h[u]=e}else h[u]=Yt(i,r[u]),Gt(t,s[d],i),s[e]=null;u++}else te(s[f]),f--;else te(s[d]),d++;for(;u<=v;){const e=Gt(t,h[v+1]);Yt(e,r[u]),h[u++]=e}for(;d<=f;){const t=s[d++];null!==t&&te(t)}return this.ht=a,((t,e=Qt)=>{t._$AH=e})(t,h),Y}}),oe=Vt(class extends Xt{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.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return Y}}),ne="important",se=" !"+ne,re=Vt(class extends Xt{constructor(t){var e;if(super(t),t.type!==Kt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const o=t[i];return null==o?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ut){this.ut=new Set;for(const t in e)this.ut.add(t);return this.render(e)}this.ut.forEach((t=>{null==e[t]&&(this.ut.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const o=e[t];if(null!=o){this.ut.add(t);const e="string"==typeof o&&o.endsWith(se);t.includes("-")||e?i.setProperty(t,e?o.slice(0,-11):o,e?ne:""):i[t]=o}}return Y}});
|
|
107
107
|
/**
|
|
108
108
|
* @license
|
|
109
109
|
* Copyright 2017 Google LLC
|
|
110
110
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
111
|
-
*/var ae=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class
|
|
111
|
+
*/var ae;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(ae||(ae={}));var le=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class he extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const ce=Symbol("registerInterval");class pe extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[ce]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ce]):this.dispatchEvent(new he)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ce,le([n()],i.prototype,"stateManager",void 0),i}(Bt)){}
|
|
112
112
|
/**
|
|
113
113
|
* @license
|
|
114
114
|
* Copyright 2020 Google LLC
|
|
115
115
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
116
|
-
*/const
|
|
116
|
+
*/const de=Symbol.for(""),fe=t=>{if((null==t?void 0:t.r)===de)return null==t?void 0:t._$litStatic$},ue=t=>({_$litStatic$:t,r:de}),ve=new Map,xe=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(s=i[h],n=fe(s));)l+=n+e[++h],c=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=ve.get(t))&&(r.raw=r,ve.set(t,e=r)),i=a}return t(e,...i)})(G);var ye;!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"}(ye||(ye={}));const be=gt.extend("--ft-typography-font-family",wt.titleFont),ge=gt.extend("--ft-typography-font-family",wt.contentFont),me={fontFamily:ge,fontSize:gt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:gt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:gt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:gt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:gt.create("--ft-typography-text-transform","UNKNOWN","inherit")},we=gt.extend("--ft-typography-title-font-family",be),$e=gt.extend("--ft-typography-title-font-size",me.fontSize,"20px"),Se=gt.extend("--ft-typography-title-font-weight",me.fontWeight,"normal"),Oe=gt.extend("--ft-typography-title-letter-spacing",me.letterSpacing,"0.15px"),ke=gt.extend("--ft-typography-title-line-height",me.lineHeight,"1.2"),Ce=gt.extend("--ft-typography-title-text-transform",me.textTransform,"inherit"),Ne=gt.extend("--ft-typography-title-dense-font-family",be),Ee=gt.extend("--ft-typography-title-dense-font-size",me.fontSize,"14px"),Me=gt.extend("--ft-typography-title-dense-font-weight",me.fontWeight,"normal"),Re=gt.extend("--ft-typography-title-dense-letter-spacing",me.letterSpacing,"0.105px"),ze=gt.extend("--ft-typography-title-dense-line-height",me.lineHeight,"1.7"),Ae=gt.extend("--ft-typography-title-dense-text-transform",me.textTransform,"inherit"),Ue=gt.extend("--ft-typography-subtitle1-font-family",ge),je=gt.extend("--ft-typography-subtitle1-font-size",me.fontSize,"16px"),Fe=gt.extend("--ft-typography-subtitle1-font-weight",me.fontWeight,"600"),Ie=gt.extend("--ft-typography-subtitle1-letter-spacing",me.letterSpacing,"0.144px"),Le=gt.extend("--ft-typography-subtitle1-line-height",me.lineHeight,"1.5"),Te=gt.extend("--ft-typography-subtitle1-text-transform",me.textTransform,"inherit"),Be=gt.extend("--ft-typography-subtitle2-font-family",ge),Pe=gt.extend("--ft-typography-subtitle2-font-size",me.fontSize,"14px"),_e=gt.extend("--ft-typography-subtitle2-font-weight",me.fontWeight,"normal"),De=gt.extend("--ft-typography-subtitle2-letter-spacing",me.letterSpacing,"0.098px"),We=gt.extend("--ft-typography-subtitle2-line-height",me.lineHeight,"1.7"),He=gt.extend("--ft-typography-subtitle2-text-transform",me.textTransform,"inherit"),Ke=gt.extend("--ft-typography-body1-font-family",ge),Ze=gt.extend("--ft-typography-body1-font-size",me.fontSize,"16px"),Ve=gt.extend("--ft-typography-body1-font-weight",me.fontWeight,"normal"),Xe=gt.extend("--ft-typography-body1-letter-spacing",me.letterSpacing,"0.496px"),Je=gt.extend("--ft-typography-body1-line-height",me.lineHeight,"1.5"),qe=gt.extend("--ft-typography-body1-text-transform",me.textTransform,"inherit"),Ge=gt.extend("--ft-typography-body2-font-family",ge),Ye=gt.extend("--ft-typography-body2-font-size",me.fontSize,"14px"),Qe=gt.extend("--ft-typography-body2-font-weight",me.fontWeight,"normal"),ti=gt.extend("--ft-typography-body2-letter-spacing",me.letterSpacing,"0.252px"),ei=gt.extend("--ft-typography-body2-line-height",me.lineHeight,"1.4"),ii=gt.extend("--ft-typography-body2-text-transform",me.textTransform,"inherit"),oi=gt.extend("--ft-typography-caption-font-family",ge),ni=gt.extend("--ft-typography-caption-font-size",me.fontSize,"12px"),si=gt.extend("--ft-typography-caption-font-weight",me.fontWeight,"normal"),ri=gt.extend("--ft-typography-caption-letter-spacing",me.letterSpacing,"0.396px"),ai=gt.extend("--ft-typography-caption-line-height",me.lineHeight,"1.33"),li=gt.extend("--ft-typography-caption-text-transform",me.textTransform,"inherit"),hi=gt.extend("--ft-typography-breadcrumb-font-family",ge),ci=gt.extend("--ft-typography-breadcrumb-font-size",me.fontSize,"10px"),pi=gt.extend("--ft-typography-breadcrumb-font-weight",me.fontWeight,"normal"),di=gt.extend("--ft-typography-breadcrumb-letter-spacing",me.letterSpacing,"0.33px"),fi=gt.extend("--ft-typography-breadcrumb-line-height",me.lineHeight,"1.6"),ui=gt.extend("--ft-typography-breadcrumb-text-transform",me.textTransform,"inherit"),vi=gt.extend("--ft-typography-overline-font-family",ge),xi=gt.extend("--ft-typography-overline-font-size",me.fontSize,"10px"),yi=gt.extend("--ft-typography-overline-font-weight",me.fontWeight,"normal"),bi=gt.extend("--ft-typography-overline-letter-spacing",me.letterSpacing,"1.5px"),gi=gt.extend("--ft-typography-overline-line-height",me.lineHeight,"1.6"),mi=gt.extend("--ft-typography-overline-text-transform",me.textTransform,"uppercase"),wi={fontFamily:gt.extend("--ft-typography-button-font-family",ge),fontSize:gt.extend("--ft-typography-button-font-size",me.fontSize,"14px"),fontWeight:gt.extend("--ft-typography-button-font-weight",me.fontWeight,"600"),letterSpacing:gt.extend("--ft-typography-button-letter-spacing",me.letterSpacing,"1.246px"),lineHeight:gt.extend("--ft-typography-button-line-height",me.lineHeight,"1.15"),textTransform:gt.extend("--ft-typography-button-text-transform",me.textTransform,"uppercase")},$i=b`
|
|
117
117
|
.ft-typography--title {
|
|
118
|
-
font-family: ${
|
|
119
|
-
font-size: ${
|
|
120
|
-
font-weight: ${
|
|
121
|
-
letter-spacing: ${
|
|
122
|
-
line-height: ${
|
|
123
|
-
text-transform: ${
|
|
124
|
-
}
|
|
125
|
-
`,$i=b`
|
|
126
|
-
.ft-typography--title-dense {
|
|
127
|
-
font-family: ${Ce};
|
|
128
|
-
font-size: ${Ne};
|
|
129
|
-
font-weight: ${Ee};
|
|
130
|
-
letter-spacing: ${Me};
|
|
131
|
-
line-height: ${Re};
|
|
132
|
-
text-transform: ${ze};
|
|
118
|
+
font-family: ${we};
|
|
119
|
+
font-size: ${$e};
|
|
120
|
+
font-weight: ${Se};
|
|
121
|
+
letter-spacing: ${Oe};
|
|
122
|
+
line-height: ${ke};
|
|
123
|
+
text-transform: ${Ce};
|
|
133
124
|
}
|
|
134
125
|
`,Si=b`
|
|
126
|
+
.ft-typography--title-dense {
|
|
127
|
+
font-family: ${Ne};
|
|
128
|
+
font-size: ${Ee};
|
|
129
|
+
font-weight: ${Me};
|
|
130
|
+
letter-spacing: ${Re};
|
|
131
|
+
line-height: ${ze};
|
|
132
|
+
text-transform: ${Ae};
|
|
133
|
+
}
|
|
134
|
+
`,Oi=b`
|
|
135
135
|
.ft-typography--subtitle1 {
|
|
136
|
-
font-family: ${
|
|
137
|
-
font-size: ${
|
|
138
|
-
font-weight: ${
|
|
139
|
-
letter-spacing: ${
|
|
136
|
+
font-family: ${Ue};
|
|
137
|
+
font-size: ${je};
|
|
138
|
+
font-weight: ${Fe};
|
|
139
|
+
letter-spacing: ${Ie};
|
|
140
140
|
line-height: ${Le};
|
|
141
|
-
text-transform: ${
|
|
141
|
+
text-transform: ${Te};
|
|
142
142
|
}
|
|
143
|
-
`,
|
|
143
|
+
`,ki=b`
|
|
144
144
|
.ft-typography--subtitle2 {
|
|
145
|
-
font-family: ${
|
|
146
|
-
font-size: ${
|
|
147
|
-
font-weight: ${
|
|
148
|
-
letter-spacing: ${
|
|
149
|
-
line-height: ${
|
|
150
|
-
text-transform: ${
|
|
145
|
+
font-family: ${Be};
|
|
146
|
+
font-size: ${Pe};
|
|
147
|
+
font-weight: ${_e};
|
|
148
|
+
letter-spacing: ${De};
|
|
149
|
+
line-height: ${We};
|
|
150
|
+
text-transform: ${He};
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
`,
|
|
153
|
+
`,Ci=b`
|
|
154
154
|
.ft-typography--body1 {
|
|
155
|
-
font-family: ${
|
|
156
|
-
font-size: ${
|
|
157
|
-
font-weight: ${
|
|
158
|
-
letter-spacing: ${
|
|
159
|
-
line-height: ${
|
|
160
|
-
text-transform: ${
|
|
155
|
+
font-family: ${Ke};
|
|
156
|
+
font-size: ${Ze};
|
|
157
|
+
font-weight: ${Ve};
|
|
158
|
+
letter-spacing: ${Xe};
|
|
159
|
+
line-height: ${Je};
|
|
160
|
+
text-transform: ${qe};
|
|
161
161
|
}
|
|
162
|
-
`,
|
|
162
|
+
`,Ni=b`
|
|
163
163
|
.ft-typography--body2 {
|
|
164
|
-
font-family: ${
|
|
164
|
+
font-family: ${Ge};
|
|
165
165
|
font-size: ${Ye};
|
|
166
|
-
font-weight: ${
|
|
167
|
-
letter-spacing: ${
|
|
168
|
-
line-height: ${
|
|
169
|
-
text-transform: ${
|
|
170
|
-
}
|
|
171
|
-
`,Ni=b`
|
|
172
|
-
.ft-typography--caption {
|
|
173
|
-
font-family: ${ii};
|
|
174
|
-
font-size: ${oi};
|
|
175
|
-
font-weight: ${ni};
|
|
176
|
-
letter-spacing: ${si};
|
|
177
|
-
line-height: ${ri};
|
|
178
|
-
text-transform: ${ai};
|
|
166
|
+
font-weight: ${Qe};
|
|
167
|
+
letter-spacing: ${ti};
|
|
168
|
+
line-height: ${ei};
|
|
169
|
+
text-transform: ${ii};
|
|
179
170
|
}
|
|
180
171
|
`,Ei=b`
|
|
181
|
-
.ft-typography--
|
|
182
|
-
font-family: ${
|
|
183
|
-
font-size: ${
|
|
184
|
-
font-weight: ${
|
|
185
|
-
letter-spacing: ${
|
|
186
|
-
line-height: ${
|
|
187
|
-
text-transform: ${
|
|
172
|
+
.ft-typography--caption {
|
|
173
|
+
font-family: ${oi};
|
|
174
|
+
font-size: ${ni};
|
|
175
|
+
font-weight: ${si};
|
|
176
|
+
letter-spacing: ${ri};
|
|
177
|
+
line-height: ${ai};
|
|
178
|
+
text-transform: ${li};
|
|
188
179
|
}
|
|
189
180
|
`,Mi=b`
|
|
190
|
-
.ft-typography--
|
|
191
|
-
font-family: ${
|
|
192
|
-
font-size: ${
|
|
193
|
-
font-weight: ${
|
|
194
|
-
letter-spacing: ${
|
|
195
|
-
line-height: ${
|
|
196
|
-
text-transform: ${
|
|
181
|
+
.ft-typography--breadcrumb {
|
|
182
|
+
font-family: ${hi};
|
|
183
|
+
font-size: ${ci};
|
|
184
|
+
font-weight: ${pi};
|
|
185
|
+
letter-spacing: ${di};
|
|
186
|
+
line-height: ${fi};
|
|
187
|
+
text-transform: ${ui};
|
|
197
188
|
}
|
|
198
189
|
`,Ri=b`
|
|
199
|
-
.ft-typography--
|
|
200
|
-
font-family: ${
|
|
201
|
-
font-size: ${
|
|
202
|
-
font-weight: ${
|
|
203
|
-
letter-spacing: ${
|
|
204
|
-
line-height: ${
|
|
205
|
-
text-transform: ${mi
|
|
190
|
+
.ft-typography--overline {
|
|
191
|
+
font-family: ${vi};
|
|
192
|
+
font-size: ${xi};
|
|
193
|
+
font-weight: ${yi};
|
|
194
|
+
letter-spacing: ${bi};
|
|
195
|
+
line-height: ${gi};
|
|
196
|
+
text-transform: ${mi};
|
|
206
197
|
}
|
|
207
198
|
`,zi=b`
|
|
199
|
+
.ft-typography--button {
|
|
200
|
+
font-family: ${wi.fontFamily};
|
|
201
|
+
font-size: ${wi.fontSize};
|
|
202
|
+
font-weight: ${wi.fontWeight};
|
|
203
|
+
letter-spacing: ${wi.letterSpacing};
|
|
204
|
+
line-height: ${wi.lineHeight};
|
|
205
|
+
text-transform: ${wi.textTransform};
|
|
206
|
+
}
|
|
207
|
+
`,Ai=b`
|
|
208
208
|
.ft-typography {
|
|
209
209
|
vertical-align: inherit;
|
|
210
210
|
}
|
|
211
|
-
`;var
|
|
212
|
-
<${
|
|
211
|
+
`;var Ui=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class ji extends Et{constructor(){super(...arguments),this.variant=ye.body1}render(){return this.element?xe`
|
|
212
|
+
<${ue(this.element)}
|
|
213
213
|
class="ft-typography ft-typography--${this.variant}">
|
|
214
214
|
<slot></slot>
|
|
215
|
-
</${
|
|
216
|
-
`:
|
|
215
|
+
</${ue(this.element)}>
|
|
216
|
+
`:xe`
|
|
217
217
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
218
|
-
`}}
|
|
218
|
+
`}}ji.styles=[$i,Si,Oi,ki,Ci,Ni,Ei,Mi,Ri,zi,Ai],Ui([o()],ji.prototype,"element",void 0),Ui([o()],ji.prototype,"variant",void 0),c("ft-typography")(ji);const Fi=gt.extend("--ft-reader-internal-link-outline-color",wt.colorPrimary),Ii=b`
|
|
219
219
|
:host {
|
|
220
220
|
display: contents;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
a:focus {
|
|
224
|
-
outline-color: ${
|
|
224
|
+
outline-color: ${Fi};
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
.ft-reader-link--remove-style {
|
|
228
228
|
text-decoration: none;
|
|
229
229
|
color: inherit;
|
|
230
230
|
}
|
|
231
|
-
`;var Li=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class
|
|
231
|
+
`;var Li=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ti extends pe{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=oe({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return G`
|
|
232
232
|
<a class=${e}
|
|
233
233
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
234
234
|
@click=${t=>this.onLinkClick(t)}>
|
|
235
235
|
<slot></slot>
|
|
236
236
|
</a>
|
|
237
|
-
`}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}
|
|
237
|
+
`}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}Ti.styles=Ii,Li([o()],Ti.prototype,"tocId",void 0),Li([o()],Ti.prototype,"section",void 0),Li([o({type:Number})],Ti.prototype,"pageNumber",void 0),Li([o({type:Boolean})],Ti.prototype,"removeStyle",void 0),c("ft-reader-internal-link")(Ti);
|
|
238
238
|
/**
|
|
239
239
|
* @license
|
|
240
240
|
* Copyright 2017 Google LLC
|
|
241
241
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
242
242
|
*/
|
|
243
|
-
class
|
|
243
|
+
class Bi extends Xt{constructor(t){if(super(t),this.et=Q,t.type!==Zt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this.ft=void 0,this.et=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Bi.directiveName="unsafeHTML",Bi.resultType=1;const Pi=Vt(Bi);var _i,Di;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",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.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="",t.EYE_SLASH="",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="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(_i||(_i={})),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=""}(Di||(Di={})),new Map([...["abw"].map((t=>[t,Di.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,Di.AUDIO])),...["avi"].map((t=>[t,Di.AVI])),...["chm","xhs"].map((t=>[t,Di.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,Di.CODE])),...["csv"].map((t=>[t,Di.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Di.DITA])),...["epub"].map((t=>[t,Di.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Di.EXCEL])),...["flac"].map((t=>[t,Di.FLAC])),...["gif"].map((t=>[t,Di.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Di.GZIP])),...["html","htm","xhtml"].map((t=>[t,Di.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,Di.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Di.JPEG])),...["json"].map((t=>[t,Di.JSON])),...["m4a","m4p"].map((t=>[t,Di.M4A])),...["mov","qt"].map((t=>[t,Di.MOV])),...["mp3"].map((t=>[t,Di.MP3])),...["mp4","m4v"].map((t=>[t,Di.MP4])),...["ogg","oga"].map((t=>[t,Di.OGG])),...["pdf","ps"].map((t=>[t,Di.PDF])),...["png"].map((t=>[t,Di.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Di.POWERPOINT])),...["rar"].map((t=>[t,Di.RAR])),...["stp"].map((t=>[t,Di.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Di.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,Di.VIDEO])),...["wav"].map((t=>[t,Di.WAV])),...["wma"].map((t=>[t,Di.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Di.WORD])),...["xml","xsl","rdf"].map((t=>[t,Di.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Di.YAML])),...["zip"].map((t=>[t,Di.ZIP]))]);const Wi={size:gt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:gt.extend("--ft-icon-fluid-topics-font-family",gt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:gt.extend("--ft-icon-file-format-font-family",gt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:gt.extend("--ft-icon-material-font-family",gt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:gt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Hi=b`
|
|
244
244
|
:host, i.ft-icon {
|
|
245
245
|
display: inline-flex;
|
|
246
246
|
align-items: center;
|
|
@@ -249,14 +249,14 @@ class Ti extends Xt{constructor(t){if(super(t),this.et=Q,t.type!==Zt)throw Error
|
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
:host {
|
|
252
|
-
width: ${
|
|
253
|
-
height: ${
|
|
252
|
+
width: ${Wi.size};
|
|
253
|
+
height: ${Wi.size};
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
i.ft-icon {
|
|
257
257
|
width: 100%;
|
|
258
258
|
height: 100%;
|
|
259
|
-
font-size: ${
|
|
259
|
+
font-size: ${Wi.size};
|
|
260
260
|
line-height: 1;
|
|
261
261
|
font-weight: normal;
|
|
262
262
|
text-transform: none;
|
|
@@ -267,33 +267,33 @@ class Ti extends Xt{constructor(t){if(super(t),this.et=Q,t.type!==Zt)throw Error
|
|
|
267
267
|
text-rendering: auto;
|
|
268
268
|
-webkit-font-smoothing: antialiased;
|
|
269
269
|
-moz-osx-font-smoothing: grayscale;
|
|
270
|
-
vertical-align: ${
|
|
270
|
+
vertical-align: ${Wi.verticalAlign};
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
i.ft-icon.ft-icon--fluid-topics {
|
|
274
|
-
font-family: ${
|
|
274
|
+
font-family: ${Wi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
275
275
|
|
|
276
276
|
/* Ugly fix because font is broken */
|
|
277
|
-
font-size: calc(0.75 * ${
|
|
278
|
-
line-height: ${
|
|
277
|
+
font-size: calc(0.75 * ${Wi.size});
|
|
278
|
+
line-height: ${Wi.size};
|
|
279
279
|
position: relative;
|
|
280
280
|
top: -4%;
|
|
281
281
|
justify-content: center;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
.ft-icon--file-format {
|
|
285
|
-
font-family: ${
|
|
285
|
+
font-family: ${Wi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
.ft-icon--material {
|
|
289
|
-
font-family: ${
|
|
289
|
+
font-family: ${Wi.materialFontFamily}, "Material Icons", sans-serif;
|
|
290
290
|
}
|
|
291
|
-
`;var
|
|
291
|
+
`;var Ki;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ki||(Ki={}));var Zi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Vi extends Et{constructor(){super(...arguments),this.resolvedIcon=Q}render(){const t=this.variant&&Object.values(Ki).includes(this.variant)?this.variant:Ki.fluid_topics,e=t!==Ki.material||!!this.value;return G`
|
|
292
292
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
293
|
-
${
|
|
293
|
+
${Pi(this.resolvedIcon)}
|
|
294
294
|
<slot ?hidden=${e}></slot>
|
|
295
295
|
</i>
|
|
296
|
-
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
296
|
+
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Ki.file_format:this.resolvedIcon=null!==(t=Di[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ki.material:this.resolvedIcon=this.value||Q;break;default:this.resolvedIcon=null!==(e=_i[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Vi.elementDefinitions={},Vi.styles=Hi,Zi([o()],Vi.prototype,"variant",void 0),Zi([o()],Vi.prototype,"value",void 0),Zi([n()],Vi.prototype,"resolvedIcon",void 0),Zi([r("slot")],Vi.prototype,"slottedContent",void 0),c("ft-icon")(Vi);const Xi=gt.extend("--ft-ripple-color",wt.colorContent),Ji={color:Xi,backgroundColor:gt.extend("--ft-ripple-background-color",Xi),opacityContentOnSurfacePressed:gt.external(wt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:gt.external(wt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:gt.external(wt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:gt.external(wt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:gt.create("--ft-ripple-border-radius","SIZE","0px")},qi=gt.extend("--ft-ripple-color",wt.colorPrimary),Gi=qi,Yi=gt.extend("--ft-ripple-background-color",qi),Qi=gt.extend("--ft-ripple-color",wt.colorSecondary),to=Qi,eo=gt.extend("--ft-ripple-background-color",Qi),io=b`
|
|
297
297
|
:host {
|
|
298
298
|
display: contents;
|
|
299
299
|
}
|
|
@@ -306,7 +306,7 @@ class Ti extends Xt{constructor(t){if(super(t),this.et=Q,t.type!==Zt)throw Error
|
|
|
306
306
|
|
|
307
307
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
308
308
|
overflow: hidden;
|
|
309
|
-
border-radius: ${
|
|
309
|
+
border-radius: ${Ji.borderRadius};
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
.ft-ripple .ft-ripple--background,
|
|
@@ -340,19 +340,19 @@ class Ti extends Xt{constructor(t){if(super(t),this.et=Q,t.type!==Zt)throw Error
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
.ft-ripple .ft-ripple--background {
|
|
343
|
-
background-color: ${
|
|
343
|
+
background-color: ${Ji.backgroundColor};
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
.ft-ripple .ft-ripple--effect {
|
|
347
|
-
background-color: ${
|
|
347
|
+
background-color: ${Ji.color};
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
351
|
-
background-color: ${
|
|
351
|
+
background-color: ${eo};
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
355
|
-
background-color: ${
|
|
355
|
+
background-color: ${to};
|
|
356
356
|
}
|
|
357
357
|
|
|
358
358
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
@@ -360,7 +360,7 @@ class Ti extends Xt{constructor(t){if(super(t),this.et=Q,t.type!==Zt)throw Error
|
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
363
|
-
background-color: ${
|
|
363
|
+
background-color: ${Gi};
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
.ft-ripple .ft-ripple--background {
|
|
@@ -390,22 +390,22 @@ class Ti extends Xt{constructor(t){if(super(t),this.et=Q,t.type!==Zt)throw Error
|
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
393
|
-
opacity: ${
|
|
393
|
+
opacity: ${Ji.opacityContentOnSurfaceHover};
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
397
|
-
opacity: ${
|
|
397
|
+
opacity: ${Ji.opacityContentOnSurfaceSelected};
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
401
|
-
opacity: ${
|
|
401
|
+
opacity: ${Ji.opacityContentOnSurfaceFocused};
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
405
|
-
opacity: ${
|
|
405
|
+
opacity: ${Ji.opacityContentOnSurfacePressed};
|
|
406
406
|
transform: translate(-50%, -50%) scale(1);
|
|
407
407
|
}
|
|
408
|
-
`;var
|
|
408
|
+
`;var oo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class no extends Et{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.originX=0,this.originY=0,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.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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.isFocusVisible(null==t?void 0:t.target)&&!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 G`
|
|
409
409
|
<style>
|
|
410
410
|
.ft-ripple .ft-ripple--effect {
|
|
411
411
|
left: ${this.originX}px;
|
|
@@ -416,7 +416,7 @@ class Ti extends Xt{constructor(t){if(super(t),this.et=Q,t.type!==Zt)throw Error
|
|
|
416
416
|
<div class="ft-ripple--background"></div>
|
|
417
417
|
<div class="ft-ripple--effect"></div>
|
|
418
418
|
</div>
|
|
419
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),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,this.target=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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}
|
|
419
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),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,this.target=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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}no.elementDefinitions={},no.styles=io,oo([o({type:Boolean})],no.prototype,"primary",void 0),oo([o({type:Boolean})],no.prototype,"secondary",void 0),oo([o({type:Boolean})],no.prototype,"unbounded",void 0),oo([o({type:Boolean})],no.prototype,"activated",void 0),oo([o({type:Boolean})],no.prototype,"selected",void 0),oo([o({type:Boolean})],no.prototype,"disabled",void 0),oo([n()],no.prototype,"hovered",void 0),oo([n()],no.prototype,"focused",void 0),oo([n()],no.prototype,"pressed",void 0),oo([n()],no.prototype,"rippling",void 0),oo([n()],no.prototype,"originX",void 0),oo([n()],no.prototype,"originY",void 0),oo([r(".ft-ripple")],no.prototype,"ripple",void 0),oo([r(".ft-ripple--effect")],no.prototype,"rippleEffect",void 0),c("ft-ripple")(no);const so=gt.create("--ft-tooltip-distance","SIZE","4px"),ro=gt.create("--ft-tooltip-color","COLOR","#FFFFFF"),ao=gt.create("--ft-tooltip-background-color","COLOR","#666666"),lo=gt.create("--ft-tooltip-z-index","NUMBER","100"),ho=gt.external(wt.borderRadiusS,"Design system"),co=gt.create("--ft-tooltip-max-width","SIZE","150px"),po=b`
|
|
420
420
|
.ft-tooltip--container {
|
|
421
421
|
display: block;
|
|
422
422
|
}
|
|
@@ -431,21 +431,21 @@ class Ti extends Xt{constructor(t){if(super(t),this.et=Q,t.type!==Zt)throw Error
|
|
|
431
431
|
box-sizing: border-box;
|
|
432
432
|
overflow: hidden;
|
|
433
433
|
width: max-content;
|
|
434
|
-
max-width: ${
|
|
434
|
+
max-width: ${co};
|
|
435
435
|
text-align: center;
|
|
436
|
-
padding: ${
|
|
437
|
-
z-index: ${
|
|
436
|
+
padding: ${so};
|
|
437
|
+
z-index: ${lo};
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
.ft-tooltip--content {
|
|
441
441
|
padding: 4px 8px;
|
|
442
|
-
border-radius: ${
|
|
443
|
-
background-color: ${
|
|
444
|
-
color: ${
|
|
442
|
+
border-radius: ${ho};
|
|
443
|
+
background-color: ${ao};
|
|
444
|
+
color: ${ro};
|
|
445
445
|
position: relative;
|
|
446
446
|
word-break: break-word;
|
|
447
447
|
}
|
|
448
|
-
`;var
|
|
448
|
+
`;var fo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class uo extends Et{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return G`
|
|
449
449
|
<div part="container"
|
|
450
450
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
451
451
|
@mouseenter=${this.onHover}
|
|
@@ -463,13 +463,13 @@ class Ti extends Xt{constructor(t){if(super(t),this.et=Q,t.type!==Zt)throw Error
|
|
|
463
463
|
</div>
|
|
464
464
|
</div>
|
|
465
465
|
</div>
|
|
466
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&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.validPosition){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=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,n=(t.offsetWidth-e)/2;let s=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-i-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=s+"px",a.top=r+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,c=l.x+l.width-window.innerWidth;a.left=s+Math.round(this.correctOutOfWindowPixels(h,c))+"px";let p=-l.y,d=l.y+l.height-window.innerHeight;a.top=r+Math.round(this.correctOutOfWindowPixels(p,d))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${
|
|
466
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&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.validPosition){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=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,n=(t.offsetWidth-e)/2;let s=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-i-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=s+"px",a.top=r+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,c=l.x+l.width-window.innerWidth;a.left=s+Math.round(this.correctOutOfWindowPixels(h,c))+"px";let p=-l.y,d=l.y+l.height-window.innerHeight;a.top=r+Math.round(this.correctOutOfWindowPixels(p,d))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${co})`}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())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}uo.elementDefinitions={"ft-typography":ji},uo.styles=po,fo([o()],uo.prototype,"text",void 0),fo([o({type:Boolean})],uo.prototype,"manual",void 0),fo([o({type:Boolean})],uo.prototype,"inline",void 0),fo([o({type:Number})],uo.prototype,"delay",void 0),fo([o()],uo.prototype,"position",void 0),fo([
|
|
467
467
|
/**
|
|
468
468
|
* @license
|
|
469
469
|
* Copyright 2017 Google LLC
|
|
470
470
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
471
471
|
*/
|
|
472
|
-
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 s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],
|
|
472
|
+
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 s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],uo.prototype,"slotNodes",void 0),fo([r(".ft-tooltip--container")],uo.prototype,"container",void 0),fo([r(".ft-tooltip")],uo.prototype,"tooltip",void 0),fo([r(".ft-tooltip--content")],uo.prototype,"tooltipContent",void 0),fo([n()],uo.prototype,"visible",void 0),c("ft-tooltip")(uo);const vo={color:gt.extend("--ft-loader-color",wt.colorPrimary),size:gt.create("--ft-loader-size","SIZE","80px")},xo=b`
|
|
473
473
|
:host {
|
|
474
474
|
line-height: 0;
|
|
475
475
|
}
|
|
@@ -478,8 +478,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
478
478
|
display: inline-block;
|
|
479
479
|
position: relative;
|
|
480
480
|
|
|
481
|
-
width: ${
|
|
482
|
-
height: ${
|
|
481
|
+
width: ${vo.size};
|
|
482
|
+
height: ${vo.size};
|
|
483
483
|
}
|
|
484
484
|
|
|
485
485
|
.ft-loader div {
|
|
@@ -488,7 +488,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
488
488
|
width: 25%;
|
|
489
489
|
height: 25%;
|
|
490
490
|
border-radius: 50%;
|
|
491
|
-
background: ${
|
|
491
|
+
background: ${vo.color};
|
|
492
492
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
493
493
|
}
|
|
494
494
|
|
|
@@ -535,17 +535,17 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
535
535
|
transform: translate(0, 0);
|
|
536
536
|
}
|
|
537
537
|
100% {
|
|
538
|
-
transform: translate(calc(0.35 * ${
|
|
538
|
+
transform: translate(calc(0.35 * ${vo.size}), 0);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
`;class
|
|
541
|
+
`;class yo extends Et{render(){return G`
|
|
542
542
|
<div class="ft-loader">
|
|
543
543
|
<div></div>
|
|
544
544
|
<div></div>
|
|
545
545
|
<div></div>
|
|
546
546
|
<div></div>
|
|
547
547
|
</div>
|
|
548
|
-
`}}
|
|
548
|
+
`}}yo.styles=xo,c("ft-loader")(yo);const bo=gt.extend("--ft-button-color",wt.colorPrimary),go={backgroundColor:gt.extend("--ft-button-background-color",wt.colorSurface),borderRadius:gt.extend("--ft-button-border-radius",wt.borderRadiusL),color:bo,fontSize:gt.extend("--ft-button-font-size",wi.fontSize),iconSize:gt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:gt.extend("--ft-button-ripple-color",bo),verticalPadding:gt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:gt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:gt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:gt.external(wt.colorOpacityDisabled,"Design system")},mo=gt.extend("--ft-button-primary-color",gt.extend("--ft-button-color",wt.colorOnPrimary)),wo={backgroundColor:gt.extend("--ft-button-primary-background-color",gt.extend("--ft-button-background-color",wt.colorPrimary)),color:mo,rippleColor:gt.extend("--ft-button-primary-ripple-color",mo)},$o=gt.extend("--ft-button-dense-border-radius",gt.extend("--ft-button-border-radius",wt.borderRadiusM)),So=gt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Oo=gt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),ko=gt.create("--ft-button-dense-icon-padding","SIZE","4px"),Co=[b`
|
|
549
549
|
:host {
|
|
550
550
|
display: inline-block;
|
|
551
551
|
max-width: 100%;
|
|
@@ -556,7 +556,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
556
556
|
box-shadow: 0px 0px 0px transparent;
|
|
557
557
|
border: 0px solid transparent;
|
|
558
558
|
text-shadow: 0px 0px 0px transparent;
|
|
559
|
-
font-size: ${
|
|
559
|
+
font-size: ${go.fontSize};
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
button:hover {
|
|
@@ -585,31 +585,31 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
585
585
|
border: none;
|
|
586
586
|
pointer-events: auto;
|
|
587
587
|
|
|
588
|
-
--ft-button-internal-line-height: max(calc(${
|
|
589
|
-
--ft-button-internal-color: ${
|
|
590
|
-
${mt(
|
|
591
|
-
${mt(
|
|
588
|
+
--ft-button-internal-line-height: max(calc(${go.fontSize} + 2px), ${go.iconSize});
|
|
589
|
+
--ft-button-internal-color: ${go.color};
|
|
590
|
+
${mt(Wi.size,go.iconSize)};
|
|
591
|
+
${mt(Ji.color,go.rippleColor)};
|
|
592
592
|
|
|
593
|
-
border-radius: ${
|
|
594
|
-
padding: ${
|
|
595
|
-
background-color: ${
|
|
593
|
+
border-radius: ${go.borderRadius};
|
|
594
|
+
padding: ${go.verticalPadding} ${go.horizontalPadding};
|
|
595
|
+
background-color: ${go.backgroundColor};
|
|
596
596
|
color: var(--ft-button-internal-color);
|
|
597
597
|
-webkit-mask-image: radial-gradient(white, black);
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
.ft-button.ft-button--outlined {
|
|
601
601
|
border: 1px solid var(--ft-button-internal-color);
|
|
602
|
-
padding: calc(${
|
|
602
|
+
padding: calc(${go.verticalPadding} - 1px) calc(${go.horizontalPadding} - 1px);
|
|
603
603
|
}
|
|
604
604
|
|
|
605
605
|
.ft-button.ft-button--dense {
|
|
606
|
-
padding: ${
|
|
607
|
-
border-radius: ${
|
|
608
|
-
gap: ${
|
|
606
|
+
padding: ${So} ${Oo};
|
|
607
|
+
border-radius: ${$o};
|
|
608
|
+
gap: ${ko};
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
612
|
-
padding: calc(${
|
|
612
|
+
padding: calc(${So} - 1px) calc(${Oo} - 1px);
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.ft-button:not([disabled]):hover {
|
|
@@ -617,22 +617,22 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
.ft-button--round {
|
|
620
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
620
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${go.verticalPadding});
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
.ft-button--round.ft-button--dense {
|
|
624
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
624
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${So});
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
.ft-button[disabled] {
|
|
628
628
|
filter: grayscale(1);
|
|
629
|
-
opacity: ${
|
|
629
|
+
opacity: ${go.opacityDisabled};
|
|
630
630
|
}
|
|
631
631
|
|
|
632
632
|
.ft-button.ft-button--primary {
|
|
633
|
-
background-color: ${
|
|
634
|
-
--ft-button-internal-color: ${
|
|
635
|
-
${mt(
|
|
633
|
+
background-color: ${wo.backgroundColor};
|
|
634
|
+
--ft-button-internal-color: ${wo.color};
|
|
635
|
+
${mt(Ji.color,wo.rippleColor)};
|
|
636
636
|
}
|
|
637
637
|
|
|
638
638
|
.ft-button:focus {
|
|
@@ -645,13 +645,13 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
645
645
|
white-space: nowrap;
|
|
646
646
|
text-overflow: ellipsis;
|
|
647
647
|
display: block;
|
|
648
|
-
margin: 0 ${
|
|
649
|
-
${mt(
|
|
650
|
-
${mt(
|
|
648
|
+
margin: 0 ${go.iconPadding};
|
|
649
|
+
${mt(wi.fontSize,"1em")};
|
|
650
|
+
${mt(wi.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
.ft-button--dense .ft-button--label {
|
|
654
|
-
margin: 0 ${
|
|
654
|
+
margin: 0 ${ko};
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
.ft-button--label[hidden] {
|
|
@@ -664,13 +664,13 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
664
664
|
}
|
|
665
665
|
|
|
666
666
|
.ft-button--label[hidden] + ft-icon {
|
|
667
|
-
margin: 0 calc(${
|
|
668
|
-
padding: 0 ${
|
|
667
|
+
margin: 0 calc(${go.horizontalPadding} * -1);
|
|
668
|
+
padding: 0 ${go.verticalPadding};
|
|
669
669
|
}
|
|
670
670
|
|
|
671
671
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
672
|
-
margin: 0 calc(${
|
|
673
|
-
padding: 0 ${
|
|
672
|
+
margin: 0 calc(${Oo} * -1);
|
|
673
|
+
padding: 0 ${So};
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -679,10 +679,10 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
679
679
|
}
|
|
680
680
|
|
|
681
681
|
ft-loader {
|
|
682
|
-
${mt(
|
|
683
|
-
${mt(
|
|
682
|
+
${mt(vo.size,go.iconSize)};
|
|
683
|
+
${mt(vo.color,"var(--ft-button-internal-color)")};
|
|
684
684
|
}
|
|
685
|
-
`,Mt];var
|
|
685
|
+
`,Mt];var No,Eo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Mo extends Et{constructor(){super(...arguments),this.role="button",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.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}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-no-text-select":!0};return this.addTooltipIfNeeded(G`
|
|
686
686
|
<button part="button"
|
|
687
687
|
class="${oe(t)}"
|
|
688
688
|
aria-label="${this.getLabel()}"
|
|
@@ -697,15 +697,15 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
697
697
|
</ft-typography>
|
|
698
698
|
${this.resolveIcon()}
|
|
699
699
|
</button>
|
|
700
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
700
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?G`
|
|
701
701
|
<ft-tooltip part="tooltip"
|
|
702
702
|
text="${this.getLabel()}"
|
|
703
703
|
position="${this.tooltipPosition}">
|
|
704
704
|
${t}
|
|
705
705
|
</ft-tooltip>
|
|
706
|
-
`:t}resolveIcon(){return this.loading?
|
|
707
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
708
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:Q}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}}
|
|
706
|
+
`:t}resolveIcon(){return this.loading?G`
|
|
707
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?G`
|
|
708
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:Q}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}}Mo.elementDefinitions={"ft-ripple":no,"ft-tooltip":uo,"ft-typography":ji,"ft-icon":Vi,"ft-loader":yo},Mo.styles=[Rt,Co],Eo([o({type:String,reflect:!0})],Mo.prototype,"role",void 0),Eo([o({type:Boolean})],Mo.prototype,"primary",void 0),Eo([o({type:Boolean})],Mo.prototype,"outlined",void 0),Eo([o({type:Boolean})],Mo.prototype,"disabled",void 0),Eo([o({type:Boolean})],Mo.prototype,"dense",void 0),Eo([o({type:Boolean})],Mo.prototype,"round",void 0),Eo([o()],Mo.prototype,"label",void 0),Eo([o()],Mo.prototype,"icon",void 0),Eo([o()],Mo.prototype,"iconVariant",void 0),Eo([o({type:Boolean})],Mo.prototype,"trailingIcon",void 0),Eo([o({type:Boolean})],Mo.prototype,"loading",void 0),Eo([o()],Mo.prototype,"tooltipPosition",void 0),Eo([o({type:Boolean})],Mo.prototype,"hideTooltip",void 0),Eo([o({type:Boolean})],Mo.prototype,"forceTooltip",void 0),Eo([r(".ft-button")],Mo.prototype,"button",void 0),Eo([r(".ft-button--label slot")],Mo.prototype,"slottedContent",void 0),c("ft-button")(Mo),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(No||(No={}));const Ro=b`
|
|
709
709
|
.ft-size-watcher--pixel {
|
|
710
710
|
width: 0;
|
|
711
711
|
height: 0;
|
|
@@ -724,34 +724,34 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
724
724
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
725
725
|
width: 100%;
|
|
726
726
|
}
|
|
727
|
-
`;var
|
|
727
|
+
`;var zo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ao extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class Uo extends Et{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=No.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new e}render(){return G`
|
|
728
728
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
729
729
|
<div class="ft-size-watcher--watcher"></div>
|
|
730
730
|
</div>
|
|
731
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=
|
|
731
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=No.S:this.size<976?this.category=No.M:this.size<1024?this.category=No.L:this.size<1440?this.category=No.XL:this.category=No.XXL,this.dispatchEvent(new Ao(this.size,this.category)))}),this.debounceTimeout)}}Uo.elementDefinitions={},Uo.styles=Ro,zo([o({type:Number})],Uo.prototype,"debounceTimeout",void 0),zo([o({type:Boolean})],Uo.prototype,"local",void 0),zo([o({type:Number,reflect:!0})],Uo.prototype,"size",void 0),zo([o({type:String,reflect:!0})],Uo.prototype,"category",void 0),zo([r(".ft-size-watcher--watcher")],Uo.prototype,"watcher",void 0),c("ft-size-watcher")(Uo);const jo={expand:"Expand {0}",collapse:"Collapse {0}",expandAll:"Expand all",expandAllLong:"Expand all table of contents",collapseAll:"Collapse all",collapseAllLong:"Collapse all table of contents"},Fo={tabulationSize:gt.create("--ft-reader-toc-tabulation-size","SIZE","16px"),verticalSpacing:gt.create("--ft-reader-toc-vertical-spacing","SIZE","4px"),textColor:gt.extend("--ft-reader-toc-text-color",wt.colorOnSurface),hoverColor:gt.extend("--ft-reader-toc-hover-color",wt.colorPrimary),highlightedTextColor:gt.extend("--ft-reader-toc-highlighted-text-color",wt.colorPrimary),highlightedFontWeight:gt.create("--ft-reader-toc-highlighted-font-weight","UNKNOWN","bold"),highlightedBackgroundColor:gt.create("--ft-reader-toc-highlighted-background-color","COLOR","transparent"),iconFontSize:gt.create("--ft-reader-toc-icon-font-size","SIZE","16px")},Io=b`
|
|
732
732
|
.ft-reader-toc {
|
|
733
|
-
color: ${
|
|
733
|
+
color: ${Fo.textColor};
|
|
734
734
|
}
|
|
735
735
|
|
|
736
736
|
.ft-reader-toc--node-highlighted > .ft-reader-toc--link-container {
|
|
737
|
-
background-color: ${
|
|
738
|
-
color: ${
|
|
739
|
-
${mt(
|
|
737
|
+
background-color: ${Fo.highlightedBackgroundColor};
|
|
738
|
+
color: ${Fo.highlightedTextColor};
|
|
739
|
+
${mt(me.fontWeight,Fo.highlightedFontWeight)}
|
|
740
740
|
}
|
|
741
741
|
|
|
742
742
|
.ft-reader-toc--link-container {
|
|
743
743
|
display: flex;
|
|
744
744
|
gap: 4px;
|
|
745
|
-
padding: ${
|
|
745
|
+
padding: ${Fo.verticalSpacing} 4px; /* left padding is override on inline style */
|
|
746
746
|
align-items: center;
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
.ft-reader-toc--link-container ft-reader-internal-link:hover {
|
|
750
|
-
color: ${
|
|
750
|
+
color: ${Fo.hoverColor};
|
|
751
751
|
}
|
|
752
752
|
|
|
753
753
|
ft-button {
|
|
754
|
-
${mt(
|
|
754
|
+
${mt(go.iconSize,Fo.iconFontSize)};
|
|
755
755
|
}
|
|
756
756
|
|
|
757
757
|
.ft-reader-toc--toggle-container {
|
|
@@ -759,11 +759,11 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
759
759
|
}
|
|
760
760
|
|
|
761
761
|
.ft-reader-toc-mobile .ft-reader-toc--toggle-container {
|
|
762
|
-
width: calc(${
|
|
762
|
+
width: calc(${Fo.iconFontSize} + 12px); /*--ft-button-internal-horizontal-padding: 8px; in ft-button NOT dense*/
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
.ft-reader-toc-desktop .ft-reader-toc--toggle-container {
|
|
766
|
-
width: calc(${
|
|
766
|
+
width: calc(${Fo.iconFontSize} + 4px); /*--ft-button-internal-horizontal-padding: 4px; in ft-button dense*/
|
|
767
767
|
}
|
|
768
768
|
|
|
769
769
|
.ft-reader-toc-expanded .ft-reader-toc--toggle-container {
|
|
@@ -786,8 +786,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
786
786
|
.ft-reader-toc-expand-collapse-all-justify ft-button {
|
|
787
787
|
flex-grow: 1;
|
|
788
788
|
}
|
|
789
|
-
`;var Lo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class
|
|
790
|
-
${this.hideIfEmpty&&this.empty?
|
|
789
|
+
`;var Lo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class To extends pe{constructor(){super(...arguments),this.expanded=!1,this.iconVariant=Ki.fluid_topics,this.collapseIcon="MINUS",this.expandIcon="PLUS",this.expandCollapseAll=!1,this.expandCollapseAllHideLabel=!1,this.expandCollapseAllTrailingIcon=!1,this.expandCollapseAllAlignment="left",this.expandCollapseAllHideIcon=!1,this.collapseAllIcon="ICON_COLLAPSE",this.expandAllIcon="ICON_EXPAND",this.autoCollapse=!1,this.scope="pages",this.hideIfEmpty=!1,this.empty=!0,this.labels={},this.labelResolver=new zt(jo,{}),this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set,this.expandAll=!1,this.viewportSize=No.M,this.nodesToExpandExist=!1}get isCurrentPageToc(){return"current-page"===this.scope}update(t){var e,i,o;super.update(t),t.has("toc")&&(this.nodesToExpandExist=(null!==(e=this.toc)&&void 0!==e?e:[]).some((t=>t.children.length>0))),t.has("labels")&&(this.labelResolver=new zt(jo,this.labels)),t.has("highlightedTocIds")&&!this.expanded&&(this.automaticallyExpandedNodes=this.buildAutomaticallyExpandedNodes(null!==(i=this.highlightedTocIds)&&void 0!==i?i:[])),this.empty=0===(null!==(o=this.toc)&&void 0!==o?o:[]).length}render(){var t;const e={"ft-reader-toc":!0,"ft-reader-toc-mobile":this.viewportSize===No.S,"ft-reader-toc-desktop":this.viewportSize!==No.S,"ft-reader-toc-loaded":null!=this.currentPage,"ft-reader-toc-expanded":this.expanded};return G`
|
|
790
|
+
${this.hideIfEmpty&&this.empty?G`
|
|
791
791
|
<style>
|
|
792
792
|
:host {
|
|
793
793
|
display: none !important;
|
|
@@ -799,7 +799,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
799
799
|
${this.renderExpandCollapseAll()}
|
|
800
800
|
${ie(null!==(t=this.toc)&&void 0!==t?t:[],(t=>t.tocId),(t=>this.renderNode(t)))}
|
|
801
801
|
</div>
|
|
802
|
-
`}renderExpandCollapseAll(){return this.expandCollapseAll&&!this.expanded&&this.nodesToExpandExist?
|
|
802
|
+
`}renderExpandCollapseAll(){return this.expandCollapseAll&&!this.expanded&&this.nodesToExpandExist?G`
|
|
803
803
|
<div part="expand-collapse-all-container"
|
|
804
804
|
class="ft-reader-toc-expand-collapse-all-container ft-reader-toc-expand-collapse-all-${this.expandCollapseAllAlignment}">
|
|
805
805
|
<ft-button
|
|
@@ -814,16 +814,16 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
814
814
|
${this.expandCollapseAllHideLabel?"":this.labelResolver.resolve(this.expandAll?"collapseAll":"expandAll")}
|
|
815
815
|
</ft-button>
|
|
816
816
|
</div>
|
|
817
|
-
`:Q}renderNode(t){var e,i,o;const n=null===(e=this.highlightedTocIds)||void 0===e?void 0:e.includes(t.tocId),s=this.expanded||this.manuallyExpandedNodes.has(t.tocId)||(this.expandAll||this.automaticallyExpandedNodes.has(t.tocId))&&!this.manuallyCollapsedNodes.has(t.tocId),r=t.children.length>0,a=this.isCurrentPageToc?(null!==(o=null===(i=this.currentPage)||void 0===i?void 0:i.breadcrumb.length)&&void 0!==o?o:0)+1:0,l=t.depth-1-a,h={"padding-left":`calc( ${
|
|
817
|
+
`:Q}renderNode(t){var e,i,o;const n=null===(e=this.highlightedTocIds)||void 0===e?void 0:e.includes(t.tocId),s=this.expanded||this.manuallyExpandedNodes.has(t.tocId)||(this.expandAll||this.automaticallyExpandedNodes.has(t.tocId))&&!this.manuallyCollapsedNodes.has(t.tocId),r=t.children.length>0,a=this.isCurrentPageToc?(null!==(o=null===(i=this.currentPage)||void 0===i?void 0:i.breadcrumb.length)&&void 0!==o?o:0)+1:0,l=t.depth-1-a,h={"padding-left":`calc( ${Fo.tabulationSize} * ${l} + 4px)`};return G`
|
|
818
818
|
<div class="ft-reader-toc--node ${n?"ft-reader-toc--node-highlighted":""}">
|
|
819
819
|
<div class="ft-reader-toc--link-container" data-depth="${t.depth}" style=${re(h)}>
|
|
820
|
-
${this.nodesToExpandExist&&!this.expanded?
|
|
820
|
+
${this.nodesToExpandExist&&!this.expanded?G`
|
|
821
821
|
<div class="ft-reader-toc--toggle-container">
|
|
822
|
-
${r?
|
|
822
|
+
${r?G`
|
|
823
823
|
<ft-button
|
|
824
824
|
part="expand-collapse-node"
|
|
825
825
|
round hideTooltip
|
|
826
|
-
?dense=${this.viewportSize!==
|
|
826
|
+
?dense=${this.viewportSize!==No.S}
|
|
827
827
|
label="${this.labelResolver.resolve(s?"collapse":"expand",t.title)}"
|
|
828
828
|
.iconVariant="${this.iconVariant}"
|
|
829
829
|
icon="${s?this.collapseIcon||"MINUS":this.expandIcon||"PLUS"}"
|
|
@@ -843,11 +843,11 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
843
843
|
<ft-typography part="node-label" variant="body2">${t.title}</ft-typography>
|
|
844
844
|
</ft-reader-internal-link>
|
|
845
845
|
</div>
|
|
846
|
-
${r?
|
|
846
|
+
${r?G`
|
|
847
847
|
<div class="ft-reader-toc--node-children" id="${t.tocId}-children"
|
|
848
848
|
?hidden=${!s}>
|
|
849
849
|
${s?ie(t.children,(t=>t.tocId),(t=>this.renderNode(t))):Q}
|
|
850
850
|
</div>
|
|
851
851
|
`:Q}
|
|
852
852
|
</div>
|
|
853
|
-
`}buildAutomaticallyExpandedNodes(t){var e,i;let o=new Set(this.autoCollapse?[]:this.automaticallyExpandedNodes);for(let n of t){let t=n;for(;t&&!o.has(t);)o.add(t),this.manuallyCollapsedNodes.delete(t),t=null===(i=null===(e=this.service)||void 0===e?void 0:e.getTocNodeNow(t))||void 0===i?void 0:i.parentTocId}return o}manuallyToggle(t,e){e?(this.manuallyCollapsedNodes.add(t),this.manuallyExpandedNodes.delete(t)):(this.manuallyExpandedNodes.add(t),this.manuallyCollapsedNodes.delete(t)),this.requestUpdate()}onViewportSizeChange(t){this.viewportSize=t.detail.category}toggleExpandCollapseAll(){this.expandAll=!this.expandAll,this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set}getExpandCollapseAllTooltipPosition(){switch(this.expandCollapseAllAlignment){case"right":return"left";case"left":return"right";default:return"bottom"}}}
|
|
853
|
+
`}buildAutomaticallyExpandedNodes(t){var e,i;let o=new Set(this.autoCollapse?[]:this.automaticallyExpandedNodes);for(let n of t){let t=n;for(;t&&!o.has(t);)o.add(t),this.manuallyCollapsedNodes.delete(t),t=null===(i=null===(e=this.service)||void 0===e?void 0:e.getTocNodeNow(t))||void 0===i?void 0:i.parentTocId}return o}manuallyToggle(t,e){e?(this.manuallyCollapsedNodes.add(t),this.manuallyExpandedNodes.delete(t)):(this.manuallyExpandedNodes.add(t),this.manuallyCollapsedNodes.delete(t)),this.requestUpdate()}onViewportSizeChange(t){this.viewportSize=t.detail.category}toggleExpandCollapseAll(){this.expandAll=!this.expandAll,this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set}getExpandCollapseAllTooltipPosition(){switch(this.expandCollapseAllAlignment){case"right":return"left";case"left":return"right";default:return"bottom"}}}To.elementDefinitions={"ft-button":Mo,"ft-reader-internal-link":Ti,"ft-size-watcher":Uo,"ft-typography":ji},To.styles=Io,Lo([o({type:Boolean})],To.prototype,"expanded",void 0),Lo([o()],To.prototype,"iconVariant",void 0),Lo([o()],To.prototype,"collapseIcon",void 0),Lo([o()],To.prototype,"expandIcon",void 0),Lo([o({type:Boolean})],To.prototype,"expandCollapseAll",void 0),Lo([o({type:Boolean})],To.prototype,"expandCollapseAllHideLabel",void 0),Lo([o({type:Boolean})],To.prototype,"expandCollapseAllTrailingIcon",void 0),Lo([o()],To.prototype,"expandCollapseAllAlignment",void 0),Lo([o({type:Boolean})],To.prototype,"expandCollapseAllHideIcon",void 0),Lo([o()],To.prototype,"expandCollapseAllIconVariant",void 0),Lo([o()],To.prototype,"collapseAllIcon",void 0),Lo([o()],To.prototype,"expandAllIcon",void 0),Lo([o({type:Boolean})],To.prototype,"autoCollapse",void 0),Lo([o()],To.prototype,"scope",void 0),Lo([o({type:Boolean})],To.prototype,"hideIfEmpty",void 0),Lo([o({type:Boolean,reflect:!0})],To.prototype,"empty",void 0),Lo([p({})],To.prototype,"labels",void 0),Lo([Pt({selector:(t,e)=>{var i,o,n;return e.isCurrentPageToc?(null===(i=t.paginationConfiguration)||void 0===i?void 0:i.splitCurrentPageToc)?null===(o=t.currentPage)||void 0===o?void 0:o.toc:void 0:(null===(n=t.paginationConfiguration)||void 0===n?void 0:n.splitCurrentPageToc)?t.pagesToc:t.toc}})],To.prototype,"toc",void 0),Lo([Pt({selector:t=>{var e;return null===(e=t.paginationConfiguration)||void 0===e?void 0:e.splitCurrentPageToc}})],To.prototype,"splitToc",void 0),Lo([Pt()],To.prototype,"currentPage",void 0),Lo([Pt({selector:(t,e)=>{var i,o;return(null===(i=t.paginationConfiguration)||void 0===i?void 0:i.splitCurrentPageToc)&&!e.isCurrentPageToc?[null===(o=t.currentPage)||void 0===o?void 0:o.rootTocId]:t.visibleTopics}})],To.prototype,"highlightedTocIds",void 0),Lo([n({hasChanged:(t,e)=>!h(t,e)})],To.prototype,"automaticallyExpandedNodes",void 0),Lo([n({hasChanged:(t,e)=>!h(t,e)})],To.prototype,"manuallyExpandedNodes",void 0),Lo([n({hasChanged:(t,e)=>!h(t,e)})],To.prototype,"manuallyCollapsedNodes",void 0),Lo([n()],To.prototype,"expandAll",void 0),Lo([n()],To.prototype,"viewportSize",void 0),c("ft-reader-toc")(To),t.DEFAULT_LABELS=jo,t.FtReaderToc=To,t.FtReaderTocCssVariables=Fo,t.styles=Io}({});
|