@fluid-topics/ft-reader-toc 0.3.8 → 0.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,55 +14,64 @@
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,r=new WeakMap,n=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(s.set(r,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),d(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,r=o._getDefinition(e);return r?d(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){r.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(kt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);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&&(s.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.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(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),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=y[y.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):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},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 r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(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 y=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(x(Element,"innerHTML"),x(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 r{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 s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(vi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */const e=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function i(t){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,i,o):e(t,i)
22
+ */const i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)
23
23
  /**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */}
27
+ */}function n(t){return o({...t,state:!0})}
28
+ /**
29
+ * @license
30
+ * Copyright 2017 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */const r=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
33
+ /**
34
+ * @license
35
+ * Copyright 2017 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */;function s(t,e){return r({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
28
38
  /**
29
39
  * @license
30
40
  * Copyright 2021 Google LLC
31
41
  * SPDX-License-Identifier: BSD-3-Clause
32
- */
33
- var o;null===(o=window.HTMLSlotElement)||void 0===o||o.prototype.assignedElements;const r=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function n(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,r;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!n(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!n(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;for(o=i;0!=o--;){var s=r[o];if(!n(t[s],e[s]))return!1}return!0}return t!=t&&e!=e}
42
+ */var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function c(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}function p(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!p(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!p(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var r=n[o];if(!p(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}
34
43
  /**
35
44
  * @license
36
45
  * Copyright 2019 Google LLC
37
46
  * SPDX-License-Identifier: BSD-3-Clause
38
- */const s=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),l=new WeakMap;class c{constructor(t,e,i){if(this._$cssResult$=!0,i!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&l.set(e,t))}return t}toString(){return this.cssText}}const h=t=>new c("string"==typeof t?t:t+"",void 0,a),p=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new c(i,t,a)},f=(t,e)=>{s?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},u=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return h(e)})(t):t
47
+ */const d=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),u=new WeakMap;class v{constructor(t,e,i){if(this._$cssResult$=!0,i!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&u.set(e,t))}return t}toString(){return this.cssText}}const y=t=>new v("string"==typeof t?t:t+"",void 0,f),b=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new v(i,t,f)},x=(t,e)=>{d?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},g=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return y(e)})(t):t
39
48
  /**
40
49
  * @license
41
50
  * Copyright 2017 Google LLC
42
51
  * SPDX-License-Identifier: BSD-3-Clause
43
- */;var d;const y=window.trustedTypes,v=y?y.emptyScript:"",g=window.reactiveElementPolyfillSupport,b={toAttribute(t,e){switch(e){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},m=(t,e)=>e!==t&&(e==e||t==t),x={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:m};class w extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||x}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(u(t))}else void 0!==t&&e.push(u(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return f(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=x){var o,r;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const s=(null!==(r=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==r?r:b.toAttribute)(e,i.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var i,o;const r=this.constructor,n=r._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=r.getPropertyOptions(n),s=t.converter,a=null!==(o=null!==(i=null==s?void 0:s.fromAttribute)&&void 0!==i?i:"function"==typeof s?s:null)&&void 0!==o?o:b.fromAttribute;this._$El=n,this[n]=a(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||m)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
52
+ */;var m;const w=window.trustedTypes,$=w?w.emptyScript:"",O=window.reactiveElementPolyfillSupport,S={toAttribute(t,e){switch(e){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},k=(t,e)=>e!==t&&(e==e||t==t),N={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:k};class C extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=N){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||N}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return x(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=N){var o,n;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const s=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:S.toAttribute)(e,i.type);this._$El=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$El=null}}_$AK(t,e){var i,o;const n=this.constructor,r=n._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=n.getPropertyOptions(r),s=t.converter,a=null!==(o=null!==(i=null==s?void 0:s.fromAttribute)&&void 0!==i?i:"function"==typeof s?s:null)&&void 0!==o?o:S.fromAttribute;this._$El=r,this[r]=a(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||k)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
44
53
  /**
45
54
  * @license
46
55
  * Copyright 2017 Google LLC
47
56
  * SPDX-License-Identifier: BSD-3-Clause
48
57
  */
49
- var $;w.finalized=!0,w.elementProperties=new Map,w.elementStyles=[],w.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:w}),(null!==(d=globalThis.reactiveElementVersions)&&void 0!==d?d:globalThis.reactiveElementVersions=[]).push("1.3.4");const O=globalThis.trustedTypes,S=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,C="?"+N,E=`<${C}>`,R=document,M=(t="")=>R.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,F=t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,L=/>/g,P=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,z=/"/g,_=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),H=new WeakMap,I=R.createTreeWalker(R,129,null,!1),K=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",s=A;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===A?"!--"===l[1]?s=j:void 0!==l[1]?s=L:void 0!==l[2]?(_.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=P):void 0!==l[3]&&(s=P):s===P?">"===l[0]?(s=null!=r?r:A,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?P:'"'===l[3]?z:T):s===z||s===T?s=P:s===j||s===L?s=A:(s=P,r=void 0);const p=s===P&&t[e+1].startsWith("/>")?" ":"";n+=s===A?i+E:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+N+p):i+N+(-2===c?(o.push(void 0),e):p)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(a):a,o]};class Z{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,c]=K(t,e);if(this.el=Z.createElement(l,i),I.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=I.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(N)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(N),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?Y:"@"===e[1]?tt:q})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(_.test(o.tagName)){const t=o.textContent.split(N),e=t.length-1;if(e>0){o.textContent=O?O.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],M()),I.nextNode(),a.push({type:2,index:++r});o.append(t[e],M())}}}else if(8===o.nodeType)if(o.data===C)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(N,t+1));)a.push({type:7,index:r}),t+=N.length-1}r++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function V(t,e,i=t,o){var r,n,s,a;if(e===D)return e;let l=void 0!==o?null===(r=i._$Cl)||void 0===r?void 0:r[o]:i._$Cu;const c=U(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=V(t,l._$AS(t,e.values),l,o)),e}class J{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);I.currentNode=r;let n=I.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new X(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new et(n,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(n=I.nextNode(),s++)}return r}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class X{constructor(t,e,i,o){var r;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=V(this,t,e),U(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==D&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):F(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==W&&U(this._$AH)?this._$AA.nextSibling.data=t:this.k(R.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(i);else{const t=new J(r,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new Z(t)),e}S(t){k(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new X(this.j(M()),this.j(M()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class q{constructor(t,e,i,o,r){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=V(this,t,e,0),n=!U(t)||t!==this._$AH&&t!==D,n&&(this._$AH=t);else{const o=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=V(this,o[i+s],e,s),a===D&&(a=this._$AH[s]),n||(n=!U(a)||a!==this._$AH[s]),a===W?t=W:t!==W&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!o&&this.P(t)}P(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends q{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===W?void 0:t}}const Q=O?O.emptyScript:"";class Y extends q{constructor(){super(...arguments),this.type=4}P(t){t&&t!==W?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class tt extends q{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=V(this,t,e,0))&&void 0!==i?i:W)===D)return;const o=this._$AH,r=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==W&&(o===W||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}}const it={A:"$lit$",C:N,M:C,L:1,R:K,V:J,D:F,I:V,H:X,N:q,U:Y,B:tt,F:G,W:et},ot=window.litHtmlPolyfillSupport;
58
+ var E;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:C}),(null!==(m=globalThis.reactiveElementVersions)&&void 0!==m?m:globalThis.reactiveElementVersions=[]).push("1.3.4");const R=globalThis.trustedTypes,z=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,F="?"+M,U=`<${F}>`,j=document,T=(t="")=>j.createComment(t),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,L=t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,W=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),D=/'/g,H=/"/g,K=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),X=new WeakMap,q=j.createTreeWalker(j,129,null,!1),Y=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=P;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===P?"!--"===l[1]?s=I:void 0!==l[1]?s=W:void 0!==l[2]?(K.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=_):void 0!==l[3]&&(s=_):s===_?">"===l[0]?(s=null!=n?n:P,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?_:'"'===l[3]?H:D):s===H||s===D?s=_:s===I||s===W?s=P:(s=_,n=void 0);const p=s===_&&t[e+1].startsWith("/>")?" ":"";r+=s===P?i+U:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+M+p):i+M+(-2===h?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.createHTML(a):a,o]};class G{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=Y(t,e);if(this.el=G.createElement(l,i),q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(M)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(M),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?rt:"@"===e[1]?st:it})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(K.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=R?R.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],T()),q.nextNode(),a.push({type:2,index:++n});o.append(t[e],T())}}}else if(8===o.nodeType)if(o.data===F)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)a.push({type:7,index:n}),t+=M.length-1}n++}}static createElement(t,e){const i=j.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){var n,r,s,a;if(e===V)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const h=B(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=Q(t,l._$AS(t,e.values),l,o)),e}class tt{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:j).importNode(i,!0);q.currentNode=n;let r=q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new et(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new at(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=q.nextNode(),s++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,o){var n;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=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._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),B(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==V&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):L(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==J&&B(this._$AH)?this._$AA.nextSibling.data=t:this.k(j.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=G.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new tt(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new G(t)),e}S(t){A(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 et(this.j(T()),this.j(T()),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._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class it{constructor(t,e,i,o,n){this.type=1,this._$AH=J,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=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=Q(this,t,e,0),r=!B(t)||t!==this._$AH&&t!==V,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Q(this,o[i+s],e,s),a===V&&(a=this._$AH[s]),r||(r=!B(a)||a!==this._$AH[s]),a===J?t=J:t!==J&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.P(t)}P(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends it{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===J?void 0:t}}const nt=R?R.emptyScript:"";class rt extends it{constructor(){super(...arguments),this.type=4}P(t){t&&t!==J?this.element.setAttribute(this.name,nt):this.element.removeAttribute(this.name)}}class st extends it{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=Q(this,t,e,0))&&void 0!==i?i:J)===V)return;const o=this._$AH,n=t===J&&o!==J||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==J&&(o===J||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 at{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){Q(this,t)}}const lt={A:"$lit$",C:M,M:F,L:1,R:Y,V:tt,D:L,I:Q,H:et,N:it,U:rt,B:st,F:ot,W:at},ht=window.litHtmlPolyfillSupport;
50
59
  /**
51
60
  * @license
52
61
  * Copyright 2017 Google LLC
53
62
  * SPDX-License-Identifier: BSD-3-Clause
54
63
  */
55
- var rt,nt;null==ot||ot(Z,X),(null!==($=globalThis.litHtmlVersions)&&void 0!==$?$:globalThis.litHtmlVersions=[]).push("2.2.7");class st extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=n._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;n._$litPart$=s=new X(e.insertBefore(M(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return D}}st.finalized=!0,st._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:st});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:st}),(null!==(nt=globalThis.litElementVersions)&&void 0!==nt?nt:globalThis.litElementVersions=[]).push("3.2.2");class lt{static create(t,e,i){let o=t=>h(null!=t?t:i),r=p`var(${h(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>p`var(${h(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=p`var(${h(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>p`var(${h(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):h(null!=e?e:t.defaultValue),o=p`var(${h(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>p`var(${h(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const ct={colorPrimary:lt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:lt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:lt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:lt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:lt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:lt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:lt.create("--ft-color-error","COLOR","#B00020"),colorOutline:lt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:lt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:lt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:lt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:lt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:lt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:lt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:lt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:lt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:lt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:lt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:lt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:lt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:lt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:lt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:lt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:lt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:lt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:lt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:lt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:lt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:lt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:lt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:lt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:lt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:lt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:lt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:lt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:lt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:lt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:lt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:lt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:lt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:lt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:lt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:lt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:lt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:lt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:lt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:lt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:lt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:lt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:lt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:lt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:lt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:lt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:lt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:lt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:lt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:lt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:lt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:lt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:lt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:lt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:lt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
64
+ var ct,pt;null==ht||ht(G,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?E:globalThis.litHtmlVersions=[]).push("2.2.7");class dt extends C{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 r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new et(e.insertBefore(T(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return V}}dt.finalized=!0,dt._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:dt});const ft=globalThis.litElementPolyfillSupport;null==ft||ft({LitElement:dt}),(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.2.2");class ut{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 vt(t,e){return y(`${t.name}: ${e}`)}const yt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
56
65
  /**
57
66
  * @license
58
67
  * Copyright 2021 Google LLC
59
68
  * SPDX-License-Identifier: BSD-3-Clause
60
- */var ht=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class pt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const r=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return f(r,this.constructor.elementStyles),r}}}(st)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),B`
61
- ${t.map((t=>B`
69
+ */var bt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class xt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return x(n,this.constructor.elementStyles),n}}}(dt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),Z`
70
+ ${t.map((t=>Z`
62
71
  <style>${t}</style>
63
72
  `))}
64
73
  ${this.getTemplate()}
65
- `}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,r,n,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(s=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}contentAvailableCallback(t){}}ht([i()],pt.prototype,"exportpartsPrefix",void 0),ht([function(t,e){const o=()=>JSON.parse(JSON.stringify(t));return i({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],pt.prototype,"exportpartsPrefixes",void 0),p`
74
+ `}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const 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!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];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(", "))}contentAvailableCallback(t){}}bt([o()],xt.prototype,"exportpartsPrefix",void 0),bt([c([])],xt.prototype,"exportpartsPrefixes",void 0);const gt=b`
66
75
  .ft-no-text-select {
67
76
  -webkit-touch-callout: none;
68
77
  -webkit-user-select: none;
@@ -71,169 +80,670 @@ var rt,nt;null==ot||ot(Z,X),(null!==($=globalThis.litHtmlVersions)&&void 0!==$?$
71
80
  -ms-user-select: none;
72
81
  user-select: none;
73
82
  }
74
- `;const ft=(t,e)=>(i,o)=>{i.constructor.createProperty(o,{attribute:!1,hasChanged:null!=e?e:n});const r=i;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(o,null!=t?t:t=>t[o])};class ut extends pt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,i)=>{this[i]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}}var dt,yt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(yt=null===(dt=window.safari)||void 0===dt?void 0:dt.pushNotification)||void 0===yt||yt.toString());
83
+ `;class mt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;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"),t))),n}}const wt=(t,e)=>(i,o)=>{i.constructor.createProperty(o,{attribute:!1,hasChanged:null!=e?e:(t,e)=>!p(t,e)});const n=i;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,null!=t?t:t=>t[o])};class $t extends xt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,i)=>{this[i]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}}var Ot,St,kt;const Nt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(kt=null===(St=null===(Ot=window.safari)||void 0===Ot?void 0:Ot.pushNotification)||void 0===St?void 0:St.toString())&&void 0!==kt?kt:""),Ct=1,Et=2,Rt=t=>(...e)=>({_$litDirective$:t,values:e});
75
84
  /**
76
85
  * @license
77
86
  * Copyright 2017 Google LLC
78
87
  * SPDX-License-Identifier: BSD-3-Clause
79
- */
80
- const vt=1,gt=2,bt=t=>(...e)=>({_$litDirective$:t,values:e});class mt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
88
+ */class zt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
81
89
  /**
82
90
  * @license
83
91
  * Copyright 2020 Google LLC
84
92
  * SPDX-License-Identifier: BSD-3-Clause
85
- */const{H:xt}=it,wt=()=>document.createComment(""),$t=(t,e,i)=>{var o;const r=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=r.insertBefore(wt(),n),o=r.insertBefore(wt(),n);i=new xt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==n||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,n),t=e}}}return i},Ot=(t,e,i=t)=>(t._$AI(e,i),t),St={},Nt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Ct=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Et=bt(class extends mt{constructor(t){if(super(t),t.type!==gt)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let s=0;for(const e of t)r[s]=o?o(e,s):s,n[s]=i(e,s),s++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var r;const n=(t=>t._$AH)(t),{values:s,keys:a}=this.ht(e,i,o);if(!Array.isArray(n))return this.ut=a,s;const l=null!==(r=this.ut)&&void 0!==r?r:this.ut=[],c=[];let h,p,f=0,u=n.length-1,d=0,y=s.length-1;for(;f<=u&&d<=y;)if(null===n[f])f++;else if(null===n[u])u--;else if(l[f]===a[d])c[d]=Ot(n[f],s[d]),f++,d++;else if(l[u]===a[y])c[y]=Ot(n[u],s[y]),u--,y--;else if(l[f]===a[y])c[y]=Ot(n[f],s[y]),$t(t,c[y+1],n[f]),f++,y--;else if(l[u]===a[d])c[d]=Ot(n[u],s[d]),$t(t,n[f],n[u]),u--,d++;else if(void 0===h&&(h=Ct(a,d,y),p=Ct(l,f,u)),h.has(l[f]))if(h.has(l[u])){const e=p.get(a[d]),i=void 0!==e?n[e]:null;if(null===i){const e=$t(t,n[f]);Ot(e,s[d]),c[d]=e}else c[d]=Ot(i,s[d]),$t(t,n[f],i),n[e]=null;d++}else Nt(n[u]),u--;else Nt(n[f]),f++;for(;d<=y;){const e=$t(t,c[y+1]);Ot(e,s[d]),c[d++]=e}for(;f<=u;){const t=n[f++];null!==t&&Nt(t)}return this.ut=a,((t,e=St)=>{t._$AH=e})(t,c),D}});
93
+ */const{H:Mt}=lt,Ft=()=>document.createComment(""),Ut=(t,e,i)=>{var o;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Ft(),r),o=n.insertBefore(Ft(),r);i=new Mt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,r),t=e}}}return i},jt=(t,e,i=t)=>(t._$AI(e,i),t),Tt={},Bt=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}},At=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},Lt=Rt(class extends zt{constructor(t){if(super(t),t.type!==Et)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],r=[];let s=0;for(const e of t)n[s]=o?o(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:n}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var n;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.ut=a,s;const l=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],h=[];let c,p,d=0,f=r.length-1,u=0,v=s.length-1;for(;d<=f&&u<=v;)if(null===r[d])d++;else if(null===r[f])f--;else if(l[d]===a[u])h[u]=jt(r[d],s[u]),d++,u++;else if(l[f]===a[v])h[v]=jt(r[f],s[v]),f--,v--;else if(l[d]===a[v])h[v]=jt(r[d],s[v]),Ut(t,h[v+1],r[d]),d++,v--;else if(l[f]===a[u])h[u]=jt(r[f],s[u]),Ut(t,r[d],r[f]),f--,u++;else if(void 0===c&&(c=At(a,u,v),p=At(l,d,f)),c.has(l[d]))if(c.has(l[f])){const e=p.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Ut(t,r[d]);jt(e,s[u]),h[u]=e}else h[u]=jt(i,s[u]),Ut(t,r[d],i),r[e]=null;u++}else Bt(r[f]),f--;else Bt(r[d]),d++;for(;u<=v;){const e=Ut(t,h[v+1]);jt(e,s[u]),h[u++]=e}for(;d<=f;){const t=r[d++];null!==t&&Bt(t)}return this.ut=a,((t,e=Tt)=>{t._$AH=e})(t,h),V}}),Pt=Rt(class extends zt{constructor(t){var e;if(super(t),t.type!==Ct||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return V}}),It=Rt(class extends zt{constructor(t){var e;if(super(t),t.type!==Ct||"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.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in e)this.vt.add(t);return this.render(e)}this.vt.forEach((t=>{null==e[t]&&(this.vt.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const o=e[t];null!=o&&(this.vt.add(t),t.includes("-")?i.setProperty(t,o):i[t]=o)}return V}});
86
94
  /**
87
95
  * @license
88
96
  * Copyright 2017 Google LLC
89
97
  * SPDX-License-Identifier: BSD-3-Clause
90
- */var Rt=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Mt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Ut extends ut{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Mt)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}Rt([function(t){return i({...t,state:!0})}()],Ut.prototype,"stateManager",void 0);
98
+ */var Wt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class _t extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Dt extends $t{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new _t)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}Wt([n()],Dt.prototype,"stateManager",void 0);
91
99
  /**
92
100
  * @license
93
101
  * Copyright 2020 Google LLC
94
102
  * SPDX-License-Identifier: BSD-3-Clause
95
103
  */
96
- const kt=Symbol.for(""),Ft=t=>{if((null==t?void 0:t.r)===kt)return null==t?void 0:t._$litStatic$},At=t=>({_$litStatic$:t,r:kt}),jt=new Map,Lt=(t=>(e,...i)=>{const o=i.length;let r,n;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Ft(n));)l+=r+e[++c],h=!0;a.push(n),s.push(l),c++}if(c===o&&s.push(e[o]),h){const t=s.join("$$lit$$");void 0===(e=jt.get(t))&&(s.raw=s,jt.set(t,e=s)),i=a}return t(e,...i)})(B);var Pt,Tt=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Pt||(Pt={}));const zt=lt.extend("--ft-typography-font-family",ct.titleFont),_t=lt.extend("--ft-typography-font-family",ct.contentFont),Bt={fontFamily:_t,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Dt=lt.extend("--ft-typography-title-font-family",zt),Wt=lt.extend("--ft-typography-title-font-size",Bt.fontSize,"20px"),Ht=lt.extend("--ft-typography-title-font-weight",Bt.fontWeight,"normal"),It=lt.extend("--ft-typography-title-letter-spacing",Bt.letterSpacing,"0.15px"),Kt=lt.extend("--ft-typography-title-line-height",Bt.lineHeight,"1.2"),Zt=lt.extend("--ft-typography-title-text-transform",Bt.textTransform,"inherit"),Vt=lt.extend("--ft-typography-title-dense-font-family",zt),Jt=lt.extend("--ft-typography-title-dense-font-size",Bt.fontSize,"14px"),Xt=lt.extend("--ft-typography-title-dense-font-weight",Bt.fontWeight,"normal"),qt=lt.extend("--ft-typography-title-dense-letter-spacing",Bt.letterSpacing,"0.105px"),Gt=lt.extend("--ft-typography-title-dense-line-height",Bt.lineHeight,"1.7"),Qt=lt.extend("--ft-typography-title-dense-text-transform",Bt.textTransform,"inherit"),Yt=lt.extend("--ft-typography-subtitle1-font-family",_t),te=lt.extend("--ft-typography-subtitle1-font-size",Bt.fontSize,"16px"),ee=lt.extend("--ft-typography-subtitle1-font-weight",Bt.fontWeight,"600"),ie=lt.extend("--ft-typography-subtitle1-letter-spacing",Bt.letterSpacing,"0.144px"),oe=lt.extend("--ft-typography-subtitle1-line-height",Bt.lineHeight,"1.5"),re=lt.extend("--ft-typography-subtitle1-text-transform",Bt.textTransform,"inherit"),ne=lt.extend("--ft-typography-subtitle2-font-family",_t),se=lt.extend("--ft-typography-subtitle2-font-size",Bt.fontSize,"14px"),ae=lt.extend("--ft-typography-subtitle2-font-weight",Bt.fontWeight,"normal"),le=lt.extend("--ft-typography-subtitle2-letter-spacing",Bt.letterSpacing,"0.098px"),ce=lt.extend("--ft-typography-subtitle2-line-height",Bt.lineHeight,"1.7"),he=lt.extend("--ft-typography-subtitle2-text-transform",Bt.textTransform,"inherit"),pe=lt.extend("--ft-typography-body1-font-family",_t),fe=lt.extend("--ft-typography-body1-font-size",Bt.fontSize,"16px"),ue=lt.extend("--ft-typography-body1-font-weight",Bt.fontWeight,"normal"),de=lt.extend("--ft-typography-body1-letter-spacing",Bt.letterSpacing,"0.496px"),ye=lt.extend("--ft-typography-body1-line-height",Bt.lineHeight,"1.5"),ve=lt.extend("--ft-typography-body1-text-transform",Bt.textTransform,"inherit"),ge=lt.extend("--ft-typography-body2-font-family",_t),be=lt.extend("--ft-typography-body2-font-size",Bt.fontSize,"14px"),me=lt.extend("--ft-typography-body2-font-weight",Bt.fontWeight,"normal"),xe=lt.extend("--ft-typography-body2-letter-spacing",Bt.letterSpacing,"0.252px"),we=lt.extend("--ft-typography-body2-line-height",Bt.lineHeight,"1.4"),$e=lt.extend("--ft-typography-body2-text-transform",Bt.textTransform,"inherit"),Oe=lt.extend("--ft-typography-caption-font-family",_t),Se=lt.extend("--ft-typography-caption-font-size",Bt.fontSize,"12px"),Ne=lt.extend("--ft-typography-caption-font-weight",Bt.fontWeight,"normal"),Ce=lt.extend("--ft-typography-caption-letter-spacing",Bt.letterSpacing,"0.396px"),Ee=lt.extend("--ft-typography-caption-line-height",Bt.lineHeight,"1.33"),Re=lt.extend("--ft-typography-caption-text-transform",Bt.textTransform,"inherit"),Me=lt.extend("--ft-typography-breadcrumb-font-family",_t),Ue=lt.extend("--ft-typography-breadcrumb-font-size",Bt.fontSize,"10px"),ke=lt.extend("--ft-typography-breadcrumb-font-weight",Bt.fontWeight,"normal"),Fe=lt.extend("--ft-typography-breadcrumb-letter-spacing",Bt.letterSpacing,"0.33px"),Ae=lt.extend("--ft-typography-breadcrumb-line-height",Bt.lineHeight,"1.6"),je=lt.extend("--ft-typography-breadcrumb-text-transform",Bt.textTransform,"inherit"),Le=lt.extend("--ft-typography-overline-font-family",_t),Pe=lt.extend("--ft-typography-overline-font-size",Bt.fontSize,"10px"),Te=lt.extend("--ft-typography-overline-font-weight",Bt.fontWeight,"normal"),ze=lt.extend("--ft-typography-overline-letter-spacing",Bt.letterSpacing,"1.5px"),_e=lt.extend("--ft-typography-overline-line-height",Bt.lineHeight,"1.6"),Be=lt.extend("--ft-typography-overline-text-transform",Bt.textTransform,"uppercase"),De=lt.extend("--ft-typography-button-font-family",_t),We=lt.extend("--ft-typography-button-font-size",Bt.fontSize,"14px"),He=lt.extend("--ft-typography-button-font-weight",Bt.fontWeight,"600"),Ie=lt.extend("--ft-typography-button-letter-spacing",Bt.letterSpacing,"1.246px"),Ke=lt.extend("--ft-typography-button-line-height",Bt.lineHeight,"1.15"),Ze=lt.extend("--ft-typography-button-text-transform",Bt.textTransform,"uppercase"),Ve=p`
104
+ const Ht=Symbol.for(""),Kt=t=>{if((null==t?void 0:t.r)===Ht)return null==t?void 0:t._$litStatic$},Zt=t=>({_$litStatic$:t,r:Ht}),Vt=new Map,Jt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=Kt(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=Vt.get(t))&&(s.raw=s,Vt.set(t,e=s)),i=a}return t(e,...i)})(Z);var Xt,qt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!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"}(Xt||(Xt={}));const Yt=ut.extend("--ft-typography-font-family",yt.titleFont),Gt=ut.extend("--ft-typography-font-family",yt.contentFont),Qt={fontFamily:Gt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},te=ut.extend("--ft-typography-title-font-family",Yt),ee=ut.extend("--ft-typography-title-font-size",Qt.fontSize,"20px"),ie=ut.extend("--ft-typography-title-font-weight",Qt.fontWeight,"normal"),oe=ut.extend("--ft-typography-title-letter-spacing",Qt.letterSpacing,"0.15px"),ne=ut.extend("--ft-typography-title-line-height",Qt.lineHeight,"1.2"),re=ut.extend("--ft-typography-title-text-transform",Qt.textTransform,"inherit"),se=ut.extend("--ft-typography-title-dense-font-family",Yt),ae=ut.extend("--ft-typography-title-dense-font-size",Qt.fontSize,"14px"),le=ut.extend("--ft-typography-title-dense-font-weight",Qt.fontWeight,"normal"),he=ut.extend("--ft-typography-title-dense-letter-spacing",Qt.letterSpacing,"0.105px"),ce=ut.extend("--ft-typography-title-dense-line-height",Qt.lineHeight,"1.7"),pe=ut.extend("--ft-typography-title-dense-text-transform",Qt.textTransform,"inherit"),de=ut.extend("--ft-typography-subtitle1-font-family",Gt),fe=ut.extend("--ft-typography-subtitle1-font-size",Qt.fontSize,"16px"),ue=ut.extend("--ft-typography-subtitle1-font-weight",Qt.fontWeight,"600"),ve=ut.extend("--ft-typography-subtitle1-letter-spacing",Qt.letterSpacing,"0.144px"),ye=ut.extend("--ft-typography-subtitle1-line-height",Qt.lineHeight,"1.5"),be=ut.extend("--ft-typography-subtitle1-text-transform",Qt.textTransform,"inherit"),xe=ut.extend("--ft-typography-subtitle2-font-family",Gt),ge=ut.extend("--ft-typography-subtitle2-font-size",Qt.fontSize,"14px"),me=ut.extend("--ft-typography-subtitle2-font-weight",Qt.fontWeight,"normal"),we=ut.extend("--ft-typography-subtitle2-letter-spacing",Qt.letterSpacing,"0.098px"),$e=ut.extend("--ft-typography-subtitle2-line-height",Qt.lineHeight,"1.7"),Oe=ut.extend("--ft-typography-subtitle2-text-transform",Qt.textTransform,"inherit"),Se=ut.extend("--ft-typography-body1-font-family",Gt),ke=ut.extend("--ft-typography-body1-font-size",Qt.fontSize,"16px"),Ne=ut.extend("--ft-typography-body1-font-weight",Qt.fontWeight,"normal"),Ce=ut.extend("--ft-typography-body1-letter-spacing",Qt.letterSpacing,"0.496px"),Ee=ut.extend("--ft-typography-body1-line-height",Qt.lineHeight,"1.5"),Re=ut.extend("--ft-typography-body1-text-transform",Qt.textTransform,"inherit"),ze=ut.extend("--ft-typography-body2-font-family",Gt),Me=ut.extend("--ft-typography-body2-font-size",Qt.fontSize,"14px"),Fe=ut.extend("--ft-typography-body2-font-weight",Qt.fontWeight,"normal"),Ue=ut.extend("--ft-typography-body2-letter-spacing",Qt.letterSpacing,"0.252px"),je=ut.extend("--ft-typography-body2-line-height",Qt.lineHeight,"1.4"),Te=ut.extend("--ft-typography-body2-text-transform",Qt.textTransform,"inherit"),Be=ut.extend("--ft-typography-caption-font-family",Gt),Ae=ut.extend("--ft-typography-caption-font-size",Qt.fontSize,"12px"),Le=ut.extend("--ft-typography-caption-font-weight",Qt.fontWeight,"normal"),Pe=ut.extend("--ft-typography-caption-letter-spacing",Qt.letterSpacing,"0.396px"),Ie=ut.extend("--ft-typography-caption-line-height",Qt.lineHeight,"1.33"),We=ut.extend("--ft-typography-caption-text-transform",Qt.textTransform,"inherit"),_e=ut.extend("--ft-typography-breadcrumb-font-family",Gt),De=ut.extend("--ft-typography-breadcrumb-font-size",Qt.fontSize,"10px"),He=ut.extend("--ft-typography-breadcrumb-font-weight",Qt.fontWeight,"normal"),Ke=ut.extend("--ft-typography-breadcrumb-letter-spacing",Qt.letterSpacing,"0.33px"),Ze=ut.extend("--ft-typography-breadcrumb-line-height",Qt.lineHeight,"1.6"),Ve=ut.extend("--ft-typography-breadcrumb-text-transform",Qt.textTransform,"inherit"),Je=ut.extend("--ft-typography-overline-font-family",Gt),Xe=ut.extend("--ft-typography-overline-font-size",Qt.fontSize,"10px"),qe=ut.extend("--ft-typography-overline-font-weight",Qt.fontWeight,"normal"),Ye=ut.extend("--ft-typography-overline-letter-spacing",Qt.letterSpacing,"1.5px"),Ge=ut.extend("--ft-typography-overline-line-height",Qt.lineHeight,"1.6"),Qe=ut.extend("--ft-typography-overline-text-transform",Qt.textTransform,"uppercase"),ti={fontFamily:ut.extend("--ft-typography-button-font-family",Gt),fontSize:ut.extend("--ft-typography-button-font-size",Qt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",Qt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",Qt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",Qt.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",Qt.textTransform,"uppercase")},ei=b`
97
105
  .ft-typography--title {
98
- font-family: ${Dt};
99
- font-size: ${Wt};
100
- font-weight: ${Ht};
101
- letter-spacing: ${It};
102
- line-height: ${Kt};
103
- text-transform: ${Zt};
104
- }
105
- `,Je=p`
106
- .ft-typography--title-dense {
107
- font-family: ${Vt};
108
- font-size: ${Jt};
109
- font-weight: ${Xt};
110
- letter-spacing: ${qt};
111
- line-height: ${Gt};
112
- text-transform: ${Qt};
113
- }
114
- `,Xe=p`
115
- .ft-typography--subtitle1 {
116
- font-family: ${Yt};
117
- font-size: ${te};
118
- font-weight: ${ee};
119
- letter-spacing: ${ie};
120
- line-height: ${oe};
106
+ font-family: ${te};
107
+ font-size: ${ee};
108
+ font-weight: ${ie};
109
+ letter-spacing: ${oe};
110
+ line-height: ${ne};
121
111
  text-transform: ${re};
122
112
  }
123
- `,qe=p`
124
- .ft-typography--subtitle2 {
125
- font-family: ${ne};
126
- font-size: ${se};
127
- font-weight: ${ae};
128
- letter-spacing: ${le};
113
+ `,ii=b`
114
+ .ft-typography--title-dense {
115
+ font-family: ${se};
116
+ font-size: ${ae};
117
+ font-weight: ${le};
118
+ letter-spacing: ${he};
129
119
  line-height: ${ce};
130
- text-transform: ${he};
120
+ text-transform: ${pe};
131
121
  }
132
-
133
- `,Ge=p`
134
- .ft-typography--body1 {
135
- font-family: ${pe};
122
+ `,oi=b`
123
+ .ft-typography--subtitle1 {
124
+ font-family: ${de};
136
125
  font-size: ${fe};
137
126
  font-weight: ${ue};
138
- letter-spacing: ${de};
127
+ letter-spacing: ${ve};
139
128
  line-height: ${ye};
140
- text-transform: ${ve};
129
+ text-transform: ${be};
141
130
  }
142
- `,Qe=p`
143
- .ft-typography--body2 {
144
- font-family: ${ge};
145
- font-size: ${be};
131
+ `,ni=b`
132
+ .ft-typography--subtitle2 {
133
+ font-family: ${xe};
134
+ font-size: ${ge};
146
135
  font-weight: ${me};
147
- letter-spacing: ${xe};
148
- line-height: ${we};
149
- text-transform: ${$e};
136
+ letter-spacing: ${we};
137
+ line-height: ${$e};
138
+ text-transform: ${Oe};
150
139
  }
151
- `,Ye=p`
152
- .ft-typography--caption {
153
- font-family: ${Oe};
154
- font-size: ${Se};
140
+
141
+ `,ri=b`
142
+ .ft-typography--body1 {
143
+ font-family: ${Se};
144
+ font-size: ${ke};
155
145
  font-weight: ${Ne};
156
146
  letter-spacing: ${Ce};
157
147
  line-height: ${Ee};
158
148
  text-transform: ${Re};
159
149
  }
160
- `,ti=p`
150
+ `,si=b`
151
+ .ft-typography--body2 {
152
+ font-family: ${ze};
153
+ font-size: ${Me};
154
+ font-weight: ${Fe};
155
+ letter-spacing: ${Ue};
156
+ line-height: ${je};
157
+ text-transform: ${Te};
158
+ }
159
+ `,ai=b`
160
+ .ft-typography--caption {
161
+ font-family: ${Be};
162
+ font-size: ${Ae};
163
+ font-weight: ${Le};
164
+ letter-spacing: ${Pe};
165
+ line-height: ${Ie};
166
+ text-transform: ${We};
167
+ }
168
+ `,li=b`
161
169
  .ft-typography--breadcrumb {
162
- font-family: ${Me};
163
- font-size: ${Ue};
164
- font-weight: ${ke};
165
- letter-spacing: ${Fe};
166
- line-height: ${Ae};
167
- text-transform: ${je};
170
+ font-family: ${_e};
171
+ font-size: ${De};
172
+ font-weight: ${He};
173
+ letter-spacing: ${Ke};
174
+ line-height: ${Ze};
175
+ text-transform: ${Ve};
168
176
  }
169
- `,ei=p`
177
+ `,hi=b`
170
178
  .ft-typography--overline {
171
- font-family: ${Le};
172
- font-size: ${Pe};
173
- font-weight: ${Te};
174
- letter-spacing: ${ze};
175
- line-height: ${_e};
176
- text-transform: ${Be};
179
+ font-family: ${Je};
180
+ font-size: ${Xe};
181
+ font-weight: ${qe};
182
+ letter-spacing: ${Ye};
183
+ line-height: ${Ge};
184
+ text-transform: ${Qe};
177
185
  }
178
- `,ii=p`
186
+ `,ci=b`
179
187
  .ft-typography--button {
180
- font-family: ${De};
181
- font-size: ${We};
182
- font-weight: ${He};
183
- letter-spacing: ${Ie};
184
- line-height: ${Ke};
185
- text-transform: ${Ze};
188
+ font-family: ${ti.fontFamily};
189
+ font-size: ${ti.fontSize};
190
+ font-weight: ${ti.fontWeight};
191
+ letter-spacing: ${ti.letterSpacing};
192
+ line-height: ${ti.lineHeight};
193
+ text-transform: ${ti.textTransform};
186
194
  }
187
- `;class oi extends pt{constructor(){super(...arguments),this.variant=Pt.body1}render(){return this.element?Lt`
188
- <${At(this.element)}
195
+ `;class pi extends xt{constructor(){super(...arguments),this.variant=Xt.body1}render(){return this.element?Jt`
196
+ <${Zt(this.element)}
189
197
  class="ft-typography ft-typography--${this.variant}">
190
198
  <slot></slot>
191
- </${At(this.element)}>
192
- `:Lt`
199
+ </${Zt(this.element)}>
200
+ `:Jt`
193
201
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
194
- `}}oi.styles=[Ve,Je,Xe,qe,Ge,Qe,Ye,ti,ei,ii,p`
202
+ `}}pi.styles=[ei,ii,oi,ni,ri,si,ai,li,hi,ci,b`
195
203
  .ft-typography {
196
204
  vertical-align: inherit;
197
205
  }
198
- `],Tt([i()],oi.prototype,"element",void 0),Tt([i()],oi.prototype,"variant",void 0),r("ft-typography")(oi);
199
- /**
200
- * @license
201
- * Copyright 2018 Google LLC
202
- * SPDX-License-Identifier: BSD-3-Clause
203
- */
204
- const ri=bt(class extends mt{constructor(t){var e;if(super(t),t.type!==vt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const r=t.element.classList;this.nt.forEach((t=>{t in e||(r.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return D}});var ni=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class si extends Ut{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=ri({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return B`
206
+ `],qt([o()],pi.prototype,"element",void 0),qt([o()],pi.prototype,"variant",void 0),h("ft-typography")(pi);var di=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const fi=ut.extend("--ft-reader-internal-link-outline-color",yt.colorPrimary);class ui extends Dt{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Pt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return Z`
205
207
  <a class=${e}
206
208
  href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
207
209
  @click=${t=>this.onClick(t)}>
208
210
  <slot></slot>
209
211
  </a>
210
- `}onClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section)))}}si.styles=p`
212
+ `}onClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)))}}ui.styles=b`
213
+ a:focus {
214
+ outline-color: ${fi};
215
+ }
216
+
211
217
  .ft-reader-link--remove-style {
212
218
  text-decoration: none;
213
219
  color: inherit;
214
220
  }
215
- `,ni([i()],si.prototype,"tocId",void 0),ni([i()],si.prototype,"section",void 0),ni([i()],si.prototype,"pageNumber",void 0),ni([i({type:Boolean})],si.prototype,"removeStyle",void 0),r("ft-reader-internal-link")(si);var ai=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const li={colorPrimary:lt.external(ct.colorPrimary,"Design system"),colorOnPrimary:lt.external(ct.colorOnPrimary,"Design system"),tabulationSize:lt.create("--ft-reader-toc-tabulation-size","SIZE","8px")};class ci extends Ut{render(){var t;return B`
216
- <div class="ft-reader-toc">
217
- ${Et(null!==(t=this.toc)&&void 0!==t?t:[],(t=>t.tocId),(t=>this.renderNode(t)))}
221
+ `,di([o()],ui.prototype,"tocId",void 0),di([o()],ui.prototype,"section",void 0),di([o({type:Number})],ui.prototype,"pageNumber",void 0),di([o({type:Boolean})],ui.prototype,"removeStyle",void 0),h("ft-reader-internal-link")(ui);
222
+ /**
223
+ * @license
224
+ * Copyright 2017 Google LLC
225
+ * SPDX-License-Identifier: BSD-3-Clause
226
+ */
227
+ class vi extends zt{constructor(t){if(super(t),this.it=J,t.type!==Et)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}vi.directiveName="unsafeHTML",vi.resultType=1;const yi=Rt(vi);var bi,xi;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(bi||(bi={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(xi||(xi={})),new Map([...["abw"].map((t=>[t,xi.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,xi.AUDIO])),...["avi"].map((t=>[t,xi.AVI])),...["chm","xhs"].map((t=>[t,xi.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,xi.CODE])),...["csv"].map((t=>[t,xi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xi.DITA])),...["epub"].map((t=>[t,xi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xi.EXCEL])),...["flac"].map((t=>[t,xi.FLAC])),...["gif"].map((t=>[t,xi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xi.GZIP])),...["html","htm","xhtml"].map((t=>[t,xi.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,xi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xi.JPEG])),...["json"].map((t=>[t,xi.JSON])),...["m4a","m4p"].map((t=>[t,xi.M4A])),...["mov","qt"].map((t=>[t,xi.MOV])),...["mp3"].map((t=>[t,xi.MP3])),...["mp4","m4v"].map((t=>[t,xi.MP4])),...["ogg","oga"].map((t=>[t,xi.OGG])),...["pdf","ps"].map((t=>[t,xi.PDF])),...["png"].map((t=>[t,xi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xi.POWERPOINT])),...["rar"].map((t=>[t,xi.RAR])),...["stp"].map((t=>[t,xi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xi.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,xi.VIDEO])),...["wav"].map((t=>[t,xi.WAV])),...["wma"].map((t=>[t,xi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xi.WORD])),...["xml","xsl","rdf"].map((t=>[t,xi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xi.YAML])),...["zip"].map((t=>[t,xi.ZIP]))]);var gi,mi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(gi||(gi={}));const wi={size:ut.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ut.create("--ft-icon-vertical-align","UNKNOWN","unset")};class $i extends xt{constructor(){super(...arguments),this.variant=gi.fluid_topics,this.resolvedIcon=J}render(){return Z`
228
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
229
+ ${yi(this.resolvedIcon)}
230
+ <slot ?hidden=${"material"!==this.variant}></slot>
231
+ </i>
232
+ `}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 gi.file_format:this.resolvedIcon=null!==(t=xi[i.toUpperCase()])&&void 0!==t?t:i;break;case gi.fluid_topics:this.resolvedIcon=null!==(e=bi[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}$i.elementDefinitions={},$i.styles=b`
233
+ :host {
234
+ display: inline-block;
235
+ }
236
+
237
+ :host, i.ft-icon {
238
+ width: ${wi.size};
239
+ height: ${wi.size};
240
+ text-align: center;
241
+ }
242
+
243
+ i.ft-icon {
244
+ font-size: ${wi.size};
245
+ line-height: 1;
246
+ font-weight: normal;
247
+ text-transform: none;
248
+ font-style: normal;
249
+ font-variant: normal;
250
+ speak: none;
251
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
252
+ text-rendering: auto;
253
+ -webkit-font-smoothing: antialiased;
254
+ -moz-osx-font-smoothing: grayscale;
255
+ vertical-align: ${wi.verticalAlign};
256
+ }
257
+
258
+ .ft-icon--fluid-topics {
259
+ font-family: ${wi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
260
+ }
261
+
262
+ .ft-icon--file-format {
263
+ font-family: ${wi.fileFormatFontFamily}, ft-mime, sans-serif;
264
+ }
265
+
266
+ .ft-icon--material {
267
+ font-family: ${wi.materialFontFamily}, "Material Icons", sans-serif;
268
+ }
269
+ `,mi([o()],$i.prototype,"variant",void 0),mi([o()],$i.prototype,"value",void 0),mi([n()],$i.prototype,"resolvedIcon",void 0),mi([s("slot")],$i.prototype,"slottedContent",void 0),h("ft-icon")($i);var Oi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Si=ut.extend("--ft-ripple-color",yt.colorContent),ki={color:Si,backgroundColor:ut.extend("--ft-ripple-background-color",Si),opacityContentOnSurfacePressed:ut.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(yt.opacityContentOnSurfaceSelected,"Design system")},Ni=ut.extend("--ft-ripple-color",yt.colorPrimary),Ci=Ni,Ei=ut.extend("--ft-ripple-background-color",Ni),Ri=ut.extend("--ft-ripple-color",yt.colorSecondary),zi=Ri,Mi=ut.extend("--ft-ripple-background-color",Ri);class Fi extends xt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Z`
270
+ <style>
271
+ .ft-ripple .ft-ripple--effect,
272
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
273
+ width: ${this.rippleSize}px;
274
+ height: ${this.rippleSize}px;
275
+ }
276
+
277
+ .ft-ripple .ft-ripple--effect {
278
+ left: ${this.originX}px;
279
+ top: ${this.originY}px;
280
+ }
281
+ </style>
282
+ <div class="${Pt(t)}">
283
+ <div class="ft-ripple--background"></div>
284
+ <div class="ft-ripple--effect"></div>
218
285
  </div>
219
- `}renderNode(t){var e,i;const o=this.splitToc&&null!=t.page&&!t.page.onItsOwn,r=this.splitToc?(null===(e=this.currentPage)||void 0===e?void 0:e.rootTocId)===t.tocId:null===(i=this.visibleTopics)||void 0===i?void 0:i.includes(t.tocId);return B`
220
- <div class="ft-reader-toc--node">
221
- <ft-reader-internal-link
222
- class="${r?"ft-reader-toc--node-visible":""}"
223
- tocId=${t.tocId}>
224
- <ft-typography variant="body2">${t.title}</ft-typography>
225
- </ft-reader-internal-link>
226
- <div class="ft-reader-toc--node-children">
227
- ${o?W:Et(t.children,(t=>t.tocId),(t=>this.renderNode(t)))}
286
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Fi.elementDefinitions={},Fi.styles=b`
287
+ :host {
288
+ display: contents;
289
+ }
290
+
291
+ .ft-ripple {
292
+ position: absolute;
293
+ inset: 0;
294
+ pointer-events: none;
295
+ }
296
+
297
+ .ft-ripple:not(.ft-ripple--unbounded) {
298
+ overflow: hidden;
299
+ }
300
+
301
+ .ft-ripple .ft-ripple--background,
302
+ .ft-ripple .ft-ripple--effect {
303
+ position: absolute;
304
+ opacity: 0;
305
+ }
306
+
307
+ .ft-ripple .ft-ripple--background {
308
+ background-color: ${ki.backgroundColor};
309
+ }
310
+
311
+ .ft-ripple .ft-ripple--effect {
312
+ background-color: ${ki.color};
313
+ }
314
+
315
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
316
+ background-color: ${Mi};
317
+ }
318
+
319
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
320
+ background-color: ${zi};
321
+ }
322
+
323
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
324
+ background-color: ${Ei};
325
+ }
326
+
327
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
328
+ background-color: ${Ci};
329
+ }
330
+
331
+ .ft-ripple .ft-ripple--background {
332
+ top: 0;
333
+ left: 0;
334
+ height: 100%;
335
+ width: 100%;
336
+ transition: opacity 75ms linear;
337
+ }
338
+
339
+ .ft-ripple .ft-ripple--effect,
340
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
341
+ border-radius: 50%;
342
+ }
343
+
344
+ .ft-ripple .ft-ripple--effect {
345
+ transform: translate(-50%, -50%) scale(0.15);
346
+ transition: transform 300ms ease, opacity 75ms linear;
347
+ }
348
+
349
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
350
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
351
+ left: 50%;
352
+ top: 50%;
353
+ }
354
+
355
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
356
+ transform: translate(-50%, -50%);
357
+ }
358
+
359
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
360
+ opacity: ${ki.opacityContentOnSurfaceHover};
361
+ }
362
+
363
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
364
+ opacity: ${ki.opacityContentOnSurfaceSelected};
365
+ }
366
+
367
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
368
+ opacity: ${ki.opacityContentOnSurfaceFocused};
369
+ }
370
+
371
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
372
+ opacity: ${ki.opacityContentOnSurfacePressed};
373
+ transform: translate(-50%, -50%) scale(1);
374
+ }
375
+ `,Oi([o({type:Boolean})],Fi.prototype,"primary",void 0),Oi([o({type:Boolean})],Fi.prototype,"secondary",void 0),Oi([o({type:Boolean})],Fi.prototype,"unbounded",void 0),Oi([o({type:Boolean})],Fi.prototype,"activated",void 0),Oi([o({type:Boolean})],Fi.prototype,"selected",void 0),Oi([o({type:Boolean})],Fi.prototype,"disabled",void 0),Oi([n()],Fi.prototype,"hovered",void 0),Oi([n()],Fi.prototype,"focused",void 0),Oi([n()],Fi.prototype,"pressed",void 0),Oi([n()],Fi.prototype,"rippling",void 0),Oi([n()],Fi.prototype,"rippleSize",void 0),Oi([n()],Fi.prototype,"originX",void 0),Oi([n()],Fi.prototype,"originY",void 0),Oi([s(".ft-ripple")],Fi.prototype,"ripple",void 0),Oi([s(".ft-ripple--effect")],Fi.prototype,"rippleEffect",void 0),h("ft-ripple")(Fi);var Ui=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const ji=ut.create("--ft-tooltip-distance","SIZE","4px"),Ti=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),Bi=ut.create("--ft-tooltip-background-color","COLOR","#666666"),Ai=ut.create("--ft-tooltip-z-index","NUMBER","1"),Li=ut.external(yt.borderRadiusS,"Design system"),Pi=ut.create("--ft-tooltip-max-width","SIZE","150px");class Ii extends xt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return Z`
376
+ <div part="container"
377
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
378
+ @mouseenter=${this.onHover}
379
+ @mouseleave=${this.onOut}
380
+ @focusin=${this.onHover}
381
+ @focusout=${this.onOut}
382
+ @touchstart=${this.onTouch}>
383
+ <div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
384
+ <div part="tooltip-content" class="ft-tooltip--content">
385
+ <slot name="text"></slot>
386
+ <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
387
+ </div>
388
+ </div>
389
+ <slot></slot>
390
+ </div>
391
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.position){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${Pi})`}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())}}Ii.elementDefinitions={"ft-typography":pi},Ii.styles=b`
392
+ .ft-tooltip--container {
393
+ display: block;
394
+ position: relative;
395
+ }
396
+
397
+ .ft-tooltip--inline {
398
+ display: inline-block;
399
+ max-width: 100%;
400
+ }
401
+
402
+ .ft-tooltip {
403
+ position: absolute;
404
+ box-sizing: border-box;
405
+ overflow: hidden;
406
+ width: max-content;
407
+ max-width: ${Pi};
408
+ text-align: center;
409
+ padding: ${ji};
410
+ z-index: ${Ai};
411
+ }
412
+
413
+ .ft-tooltip--content {
414
+ padding: 4px 8px;
415
+ border-radius: ${Li};
416
+ background-color: ${Bi};
417
+ color: ${Ti};
418
+ top: -500px;
419
+ left: -500px;
420
+ position: relative;
421
+ word-break: break-word;
422
+ }
423
+ `,Ui([o()],Ii.prototype,"text",void 0),Ui([o({type:Boolean})],Ii.prototype,"manual",void 0),Ui([o({type:Boolean})],Ii.prototype,"inline",void 0),Ui([o({type:Number})],Ii.prototype,"delay",void 0),Ui([o()],Ii.prototype,"position",void 0),Ui([
424
+ /**
425
+ * @license
426
+ * Copyright 2017 Google LLC
427
+ * SPDX-License-Identifier: BSD-3-Clause
428
+ */
429
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ii.prototype,"slotNodes",void 0),Ui([s(".ft-tooltip--container")],Ii.prototype,"container",void 0),Ui([s("slot")],Ii.prototype,"target",void 0),Ui([s(".ft-tooltip")],Ii.prototype,"tooltip",void 0),Ui([s(".ft-tooltip--content")],Ii.prototype,"tooltipContent",void 0),Ui([n()],Ii.prototype,"visible",void 0),h("ft-tooltip")(Ii);const Wi={color:ut.extend("--ft-loader-color",yt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")};class _i extends xt{static get styles(){return b`
430
+ :host {
431
+ line-height: 0;
432
+ }
433
+
434
+ .ft-loader {
435
+ display: inline-block;
436
+ position: relative;
437
+
438
+ width: ${Wi.size};
439
+ height: ${Wi.size};
440
+ }
441
+
442
+ .ft-loader div {
443
+ position: absolute;
444
+ top: 37.5%;
445
+ width: 25%;
446
+ height: 25%;
447
+ border-radius: 50%;
448
+ background: ${Wi.color};
449
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
450
+ }
451
+
452
+ .ft-loader div:nth-child(1) {
453
+ left: 2.5%;
454
+ animation: appear 0.6s infinite;
455
+ }
456
+
457
+ .ft-loader div:nth-child(2) {
458
+ left: 2.5%;
459
+ animation: move 0.6s infinite;
460
+ }
461
+
462
+ .ft-loader div:nth-child(3) {
463
+ left: 37.5%;
464
+ animation: move 0.6s infinite;
465
+ }
466
+
467
+ .ft-loader div:nth-child(4) {
468
+ left: 72.5%;
469
+ animation: disappear 0.6s infinite;
470
+ }
471
+
472
+ @keyframes appear {
473
+ 0% {
474
+ transform: scale(0);
475
+ }
476
+ 100% {
477
+ transform: scale(1);
478
+ }
479
+ }
480
+
481
+ @keyframes disappear {
482
+ 0% {
483
+ transform: scale(1);
484
+ }
485
+ 100% {
486
+ transform: scale(0);
487
+ }
488
+ }
489
+
490
+ @keyframes move {
491
+ 0% {
492
+ transform: translate(0, 0);
493
+ }
494
+ 100% {
495
+ transform: translate(calc(0.35 * ${Wi.size}), 0);
496
+ }
497
+ }
498
+ `}render(){return Z`
499
+ <div class="ft-loader">
500
+ <div></div>
501
+ <div></div>
502
+ <div></div>
503
+ <div></div>
504
+ </div>
505
+ `}}h("ft-loader")(_i);var Di=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Hi=ut.extend("--ft-button-color",yt.colorPrimary),Ki={backgroundColor:ut.extend("--ft-button-background-color",yt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",yt.borderRadiusL),color:Hi,fontSize:ut.extend("--ft-button-font-size",ti.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Hi),opacityDisabled:ut.external(yt.colorOpacityDisabled,"Design system")},Zi=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",yt.colorOnPrimary)),Vi={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",yt.colorPrimary)),color:Zi,rippleColor:ut.extend("--ft-button-primary-ripple-color",Zi)},Ji=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",yt.borderRadiusM));class Xi extends xt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=gi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[gt,b`
506
+ :host {
507
+ display: inline-block;
508
+ max-width: 100%;
509
+ pointer-events: none;
510
+ }
511
+
512
+ button {
513
+ box-shadow: 0px 0px 0px transparent;
514
+ border: 0px solid transparent;
515
+ text-shadow: 0px 0px 0px transparent;
516
+ font-size: ${Ki.fontSize};
517
+ }
518
+
519
+ button:hover {
520
+ box-shadow: 0px 0px 0px transparent;
521
+ border: 0px solid transparent;
522
+ text-shadow: 0px 0px 0px transparent;
523
+ }
524
+
525
+ button:active {
526
+ outline: none;
527
+ border: none;
528
+ }
529
+
530
+ button:focus {
531
+ outline: 0;
532
+ }
533
+
534
+ .ft-button {
535
+ position: relative;
536
+ display: flex;
537
+ justify-content: center;
538
+ align-items: center;
539
+ width: 100%;
540
+ overflow: hidden;
541
+ box-sizing: border-box;
542
+ border: none;
543
+ pointer-events: auto;
544
+
545
+ --ft-button-internal-line-height: calc(${Ki.fontSize} + 2px);
546
+ --ft-button-internal-color: ${Ki.color};
547
+ ${vt(wi.size,Ki.iconSize)};
548
+ --ft-button-internal-vertical-padding: 6px;
549
+ --ft-button-internal-horizontal-padding: 8px;
550
+ ${vt(ki.color,Ki.rippleColor)};
551
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ki.iconSize});
552
+
553
+ border-radius: ${Ki.borderRadius};
554
+ padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
555
+ background-color: ${Ki.backgroundColor};
556
+ color: var(--ft-button-internal-color);
557
+ -webkit-mask-image: radial-gradient(white, black);
558
+ }
559
+
560
+ .ft-button:not([disabled]):hover {
561
+ cursor: pointer;
562
+ }
563
+
564
+ .ft-button--dense {
565
+ --ft-button-internal-vertical-padding: 2px;
566
+ --ft-button-internal-horizontal-padding: 4px;
567
+ border-radius: ${Ji};
568
+ }
569
+
570
+ .ft-button--round {
571
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
572
+ }
573
+
574
+ .ft-button[disabled] {
575
+ filter: grayscale(1);
576
+ opacity: ${Ki.opacityDisabled};
577
+ }
578
+
579
+ .ft-button.ft-button--primary {
580
+ background-color: ${Vi.backgroundColor};
581
+ --ft-button-internal-color: ${Vi.color};
582
+ ${vt(ki.color,Vi.rippleColor)};
583
+ }
584
+
585
+ .ft-button.ft-button--outlined {
586
+ border: 1px solid var(--ft-button-internal-color);
587
+ padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
588
+ }
589
+
590
+ .ft-button:focus {
591
+ outline: none;
592
+ }
593
+
594
+ .ft-button--label {
595
+ position: relative;
596
+ overflow: hidden;
597
+ white-space: nowrap;
598
+ text-overflow: ellipsis;
599
+ display: block;
600
+ margin: 0 var(--ft-button-internal-horizontal-padding);
601
+ ${vt(ti.fontSize,"1em")};
602
+ ${vt(ti.lineHeight,"var(--ft-button-internal-content-height)")};
603
+ }
604
+
605
+ .ft-button--safari-fix .ft-button--label {
606
+ margin-right: 0;
607
+ }
608
+
609
+ .ft-button--safari-fix .ft-button--label:after {
610
+ content: "\\0000a0";
611
+ display: inline-block;
612
+ width: 0;
613
+ }
614
+
615
+ .ft-button--label[hidden] {
616
+ display: none;
617
+ }
618
+
619
+ ft-icon {
620
+ flex-shrink: 0;
621
+ position: relative;
622
+ }
623
+
624
+ .ft-button--label[hidden] + ft-icon {
625
+ margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
626
+ padding: 0 var(--ft-button-internal-vertical-padding);
627
+ }
628
+
629
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
630
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
631
+ order: -1;
632
+ }
633
+
634
+ ft-loader {
635
+ ${vt(Wi.size,Ki.iconSize)};
636
+ ${vt(Wi.color,"var(--ft-button-internal-color)")};
637
+ }
638
+ `]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":Nt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(Z`
639
+ <button part="button"
640
+ class="${Pt(t)}"
641
+ aria-label="${this.getLabel()}"
642
+ ?disabled=${this.isDisabled()}>
643
+ <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
644
+ <ft-typography part="label"
645
+ variant="button"
646
+ class="ft-button--label"
647
+ ?hidden=${!this.hasTextContent()}>
648
+ <slot @slotchange=${this.onSlotchange}></slot>
649
+ </ft-typography>
650
+ ${this.resolveIcon()}
651
+ </button>
652
+ `)}addTooltipIfNeeded(t){return this.hasTextContent()||0===this.getLabel().trim().length||this.hideTooltip?t:Z`
653
+ <ft-tooltip part="tooltip"
654
+ text="${this.getLabel()}"
655
+ position="${this.tooltipPosition}">
656
+ ${t}
657
+ </ft-tooltip>
658
+ `}resolveIcon(){return this.loading?Z`
659
+ <ft-loader></ft-loader> `:this.icon?Z`
660
+ <ft-icon .variant=${this.iconVariant} value=${this.icon}></ft-icon> `:J}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}}Xi.elementDefinitions={"ft-ripple":Fi,"ft-tooltip":Ii,"ft-typography":pi,"ft-icon":$i,"ft-loader":_i},Di([o({type:Boolean})],Xi.prototype,"primary",void 0),Di([o({type:Boolean})],Xi.prototype,"outlined",void 0),Di([o({type:Boolean})],Xi.prototype,"disabled",void 0),Di([o({type:Boolean})],Xi.prototype,"dense",void 0),Di([o({type:Boolean})],Xi.prototype,"round",void 0),Di([o({type:String})],Xi.prototype,"label",void 0),Di([o({type:String})],Xi.prototype,"icon",void 0),Di([o({type:String})],Xi.prototype,"iconVariant",void 0),Di([o({type:Boolean})],Xi.prototype,"trailingIcon",void 0),Di([o({type:Boolean})],Xi.prototype,"loading",void 0),Di([o({type:String})],Xi.prototype,"tooltipPosition",void 0),Di([o({type:Boolean})],Xi.prototype,"hideTooltip",void 0),Di([s(".ft-button")],Xi.prototype,"button",void 0),Di([s(".ft-button--label slot")],Xi.prototype,"slottedContent",void 0),h("ft-button")(Xi);var qi,Yi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(qi||(qi={}));class Gi extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class Qi extends xt{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=qi.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new e}render(){return Z`
661
+ <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
662
+ <div class="ft-size-watcher--watcher"></div>
663
+ </div>
664
+ `}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=qi.S:this.size<976?this.category=qi.M:this.size<1024?this.category=qi.L:this.size<1440?this.category=qi.XL:this.category=qi.XXL,this.dispatchEvent(new Gi(this.size,this.category)))}),this.debounceTimeout)}}Qi.elementDefinitions={},Qi.styles=b`
665
+ .ft-size-watcher--pixel {
666
+ width: 0;
667
+ height: 0;
668
+ overflow: hidden;
669
+ }
670
+
671
+ .ft-size-watcher--pixel.ft-size-watcher--local {
672
+ width: 100%;
673
+ }
674
+
675
+ .ft-size-watcher--watcher {
676
+ height: 1px;
677
+ width: 100vw;
678
+ }
679
+
680
+ .ft-size-watcher--local .ft-size-watcher--watcher {
681
+ width: 100%;
682
+ }
683
+ `,Yi([o({type:Number})],Qi.prototype,"debounceTimeout",void 0),Yi([o({type:Boolean})],Qi.prototype,"local",void 0),Yi([o({type:Number,reflect:!0})],Qi.prototype,"size",void 0),Yi([o({type:String,reflect:!0})],Qi.prototype,"category",void 0),Yi([s(".ft-size-watcher--watcher")],Qi.prototype,"watcher",void 0),h("ft-size-watcher")(Qi);var to=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const eo={expand:"Expand {0}",collapse:"Collapse {0}"},io={tabulationSize:ut.create("--ft-reader-toc-tabulation-size","SIZE","16px"),verticalSpacing:ut.create("--ft-reader-toc-vertical-spacing","SIZE","4px"),textColor:ut.extend("--ft-reader-toc-text-color",yt.colorOnSurface),highlightedTextColor:ut.extend("--ft-reader-toc-highlighted-text-color",yt.colorPrimary),highlightedFontWeight:ut.create("--ft-reader-toc-highlighted-font-weight","UNKNOWN","bold"),highlightedBackgroundColor:ut.create("--ft-reader-toc-highlighted-background-color","COLOR","transparent"),iconFontFamily:ut.create("--ft-reader-toc-icon-font-family","UNKNOWN","ft-icons"),iconFontSize:ut.create("--ft-reader-toc-icon-font-size","SIZE","16px")};class oo extends Dt{constructor(){super(...arguments),this.expanded=!1,this.collapseIcon="MINUS",this.expandIcon="PLUS",this.autoCollapse=!1,this.labels={},this.labelResolver=new mt(eo,{}),this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set,this.viewportSize=qi.M}update(t){var e,i;super.update(t),t.has("labels")&&(this.labelResolver=new mt(eo,this.labels)),!this.expanded&&["splitToc","visibleTopics","currentPage","toc"].some((e=>t.has(e)))&&(this.automaticallyExpandedNodes=this.buildAutomaticallyExpandedNodes(this.splitToc?[null===(e=this.currentPage)||void 0===e?void 0:e.rootTocId]:null!==(i=this.visibleTopics)&&void 0!==i?i:[]))}render(){var t;const e={"ft-reader-toc":!0,"ft-reader-toc-mobile":this.viewportSize===qi.S,"ft-reader-toc-desktop":this.viewportSize!==qi.S};return Z`
684
+ <div class=${Pt(e)}>
685
+ <ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
686
+ ${Lt(null!==(t=this.toc)&&void 0!==t?t:[],(t=>t.tocId),(t=>this.renderNode(t)))}
687
+ </div>
688
+ `}renderNode(t){var e,i;const o=this.splitToc&&null!=t.page&&!t.page.onItsOwn,n=this.splitToc?(null===(e=this.currentPage)||void 0===e?void 0:e.rootTocId)===t.tocId:null===(i=this.visibleTopics)||void 0===i?void 0:i.includes(t.tocId),r=this.expanded||this.manuallyExpandedNodes.has(t.tocId)||this.automaticallyExpandedNodes.has(t.tocId)&&!this.manuallyCollapsedNodes.has(t.tocId),s=!o&&t.children.length>0,a={"padding-left":`calc( ${io.tabulationSize} * ${t.depth-1} + 4px)`};return Z`
689
+ <div class="ft-reader-toc--node ${n?"ft-reader-toc--node-highlighted":""}">
690
+ <div class="ft-reader-toc--link-container" data-depth="${t.depth}" style=${It(a)}>
691
+ <div class="ft-reader-toc--toggle-container">
692
+ ${s?Z`
693
+ <ft-button round hideTooltip
694
+ ?dense=${this.viewportSize!==qi.S}
695
+ label="${this.labelResolver.resolve(r?"collapse":"expand",t.title)}"
696
+ iconVariant="${gi.fluid_topics}"
697
+ icon="${r?this.collapseIcon:this.expandIcon}"
698
+ @click=${()=>this.manuallyToggle(t.tocId,r)}
699
+ data-expand-node=${t.tocId}
700
+ >
701
+ </ft-button>
702
+ `:J}
703
+ </div>
704
+ <ft-reader-internal-link
705
+ tocId="${t.tocId}"
706
+ removeStyle>
707
+ <ft-typography variant="body2">${t.title}</ft-typography>
708
+ </ft-reader-internal-link>
228
709
  </div>
710
+ ${s?Z`
711
+ <div class="ft-reader-toc--node-children">
712
+ ${r?Lt(t.children,(t=>t.tocId),(t=>this.renderNode(t))):J}
713
+ </div>
714
+ `:J}
229
715
  </div>
230
- `}}ci.elementDefinitions={"ft-typography":oi,"ft-reader-internal-link":si},ci.styles=p`
231
- .ft-reader-toc--node-visible {
232
- background-color: ${li.colorPrimary};
233
- color: ${li.colorOnPrimary};
716
+ `}buildAutomaticallyExpandedNodes(t){var e,i;let o=new Set(this.autoCollapse?[]:this.automaticallyExpandedNodes);for(let n of t)for(;n&&!o.has(n);)o.add(n),this.manuallyCollapsedNodes.delete(n),n=null===(i=null===(e=this.service)||void 0===e?void 0:e.getTocNodeOrThrow(n))||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}}oo.elementDefinitions={"ft-button":Xi,"ft-reader-internal-link":ui,"ft-size-watcher":Qi,"ft-typography":pi},oo.styles=b`
717
+ .ft-reader-toc {
718
+ color: ${io.textColor};
719
+ }
720
+
721
+ .ft-reader-toc--node-highlighted > .ft-reader-toc--link-container {
722
+ background-color: ${io.highlightedBackgroundColor};
723
+ color: ${io.highlightedTextColor};
724
+ ${vt(Qt.fontWeight,io.highlightedFontWeight)}
725
+ }
726
+
727
+ .ft-reader-toc--link-container {
728
+ display: flex;
729
+ gap: 4px;
730
+ padding: ${io.verticalSpacing} 4px; /* left padding is override on inline style */
731
+ align-items: center;
732
+ }
733
+
734
+ .ft-reader-toc-mobile .ft-reader-toc--toggle-container {
735
+ flex-shrink: 0;
736
+ width: calc(${io.iconFontSize} + 12px); /*--ft-button-internal-horizontal-padding: 8px; in ft-button NOT dense*/
737
+ }
738
+
739
+ .ft-reader-toc-desktop .ft-reader-toc--toggle-container {
740
+ flex-shrink: 0;
741
+ width: calc(${io.iconFontSize} + 4px); /*--ft-button-internal-horizontal-padding: 4px; in ft-button dense*/
234
742
  }
235
743
 
236
- .ft-reader-toc--node-children {
237
- padding-left: ${li.tabulationSize};
744
+ ft-button {
745
+ ${vt(wi.fluidTopicsFontFamily,io.iconFontFamily)};
746
+ ${vt(Ki.iconSize,io.iconFontSize)};
747
+ ${vt(Ki.backgroundColor,"transparent")};
238
748
  }
239
- `,ai([ft()],ci.prototype,"toc",void 0),ai([ft((t=>{var e;return null===(e=t.map)||void 0===e?void 0:e.shouldSplitCurrentPageToc}))],ci.prototype,"splitToc",void 0),ai([ft()],ci.prototype,"currentPage",void 0),ai([ft()],ci.prototype,"visibleTopics",void 0),r("ft-reader-toc")(ci),t.FtReaderToc=ci,t.FtReaderTocCssVariables=li,Object.defineProperty(t,"i",{value:!0})}({});
749
+ `,to([o({type:Boolean})],oo.prototype,"expanded",void 0),to([o()],oo.prototype,"collapseIcon",void 0),to([o()],oo.prototype,"expandIcon",void 0),to([o({type:Boolean})],oo.prototype,"autoCollapse",void 0),to([c({})],oo.prototype,"labels",void 0),to([wt()],oo.prototype,"toc",void 0),to([wt((t=>{var e;return null===(e=t.map)||void 0===e?void 0:e.shouldSplitCurrentPageToc}))],oo.prototype,"splitToc",void 0),to([wt()],oo.prototype,"currentPage",void 0),to([wt()],oo.prototype,"visibleTopics",void 0),to([n({hasChanged:(t,e)=>!p(t,e)})],oo.prototype,"automaticallyExpandedNodes",void 0),to([n({hasChanged:(t,e)=>!p(t,e)})],oo.prototype,"manuallyExpandedNodes",void 0),to([n({hasChanged:(t,e)=>!p(t,e)})],oo.prototype,"manuallyCollapsedNodes",void 0),to([n()],oo.prototype,"viewportSize",void 0),h("ft-reader-toc")(oo),t.DEFAULT_LABELS=eo,t.FtReaderToc=oo,t.FtReaderTocCssVariables=io,Object.defineProperty(t,"i",{value:!0})}({});