@fluid-topics/ft-icon 1.1.1 → 1.1.2

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.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(Wo){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(ko){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -79,7 +79,11 @@ class fo extends It{constructor(){super(...arguments),this.renderOptions={host:t
79
79
  * Copyright 2019 Google LLC
80
80
  * SPDX-License-Identifier: BSD-3-Clause
81
81
  */
82
- const mo=window,Oo=mo.ShadowRoot&&(void 0===mo.ShadyCSS||mo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class xo extends fo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Oo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=mo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var No,vo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const wo=Symbol("constructorPrototype"),So=Symbol("constructorName"),Co=Symbol("exportpartsDebouncer");class Ro extends xo{constructor(){super(),this[No]=new o(5),this[So]=this.constructor.name,this[wo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[So]&&Object.setPrototypeOf(this,this[wo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Co].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}var Uo,Eo;No=Co,vo([C()],Ro.prototype,"exportpartsPrefix",void 0),vo([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],Ro.prototype,"exportpartsPrefixes",void 0),vo([C()],Ro.prototype,"customStylesheet",void 0),dt`
82
+ const mo=window,Oo=mo.ShadowRoot&&(void 0===mo.ShadyCSS||mo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class xo extends fo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Oo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=mo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var No,vo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const wo=Symbol("constructorPrototype"),So=Symbol("constructorName"),Co=Symbol("exportpartsDebouncer");class Ro extends xo{constructor(){super(),this[No]=new o(5),this[So]=this.constructor.name,this[wo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[So]&&Object.setPrototypeOf(this,this[wo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Co].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}No=Co,vo([C()],Ro.prototype,"exportpartsPrefix",void 0),vo([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],Ro.prototype,"exportpartsPrefixes",void 0),vo([C()],Ro.prototype,"customStylesheet",void 0);const Uo=go.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");var Eo,Io;dt`
83
+ .highlight-html-match {
84
+ background: ${Uo};
85
+ }
86
+ `,dt`
83
87
  .ft-no-text-select {
84
88
  -webkit-touch-callout: none;
85
89
  -webkit-user-select: none;
@@ -111,18 +115,18 @@ const mo=window,Oo=mo.ShadowRoot&&(void 0===mo.ShadyCSS||mo.ShadyCSS.nativeShado
111
115
  display: inline-block;
112
116
  width: 0;
113
117
  }
114
- `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Eo=null===(Uo=window.safari)||void 0===Uo?void 0:Uo.pushNotification)||void 0===Eo||Eo.toString());
118
+ `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Io=null===(Eo=window.safari)||void 0===Eo?void 0:Eo.pushNotification)||void 0===Io||Io.toString());
115
119
  /**
116
120
  * @license
117
121
  * Copyright 2017 Google LLC
118
122
  * SPDX-License-Identifier: BSD-3-Clause
119
123
  */
120
- const Io=2;class Lo{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}
124
+ const Lo=2;class Wo{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}
121
125
  /**
122
126
  * @license
123
127
  * Copyright 2017 Google LLC
124
128
  * SPDX-License-Identifier: BSD-3-Clause
125
- */class Wo extends Lo{constructor(t){if(super(t),this.et=Y,t.type!==Io)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this.vt=void 0,this.et=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Wo.directiveName="unsafeHTML",Wo.resultType=1;const ko=(t=>(...o)=>({_$litDirective$:t,values:o}))(Wo);var Ko,Zo;t.FtIcons=void 0,(Ko=t.FtIcons||(t.FtIcons={})).THUMBS_DOWN="&#xe94d;",Ko.THUMBS_DOWN_PLAIN="&#xe94e;",Ko.THUMBS_UP="&#xe94f;",Ko.THUMBS_UP_PLAIN="&#xe950;",Ko.STAR="&#xe94c;",Ko.STAR_PLAIN="&#xe900;",Ko.DESKTOP="&#xe95e;",Ko.LIFE_RING="&#xe975;",Ko.GLOBE="&#xe976;",Ko.PIGGY_BANK="&#xe977;",Ko.TABLET_LANDSCAPE="&#xe95f;",Ko.TABLET_PORTRAIT="&#xe960;",Ko.MOBILE_LANDSCAPE="&#xe961;",Ko.MOBILE_PORTRAIT="&#xe962;",Ko.ARROW_RIGHT_TO_LINE="&#xe95d;",Ko.THIN_ARROW_UP="&#xe95c;",Ko.CONTEXTUAL="&#xe95b;",Ko.CHART_SIMPLE="&#xe968;",Ko.BARS_PROGRESS="&#xe969;",Ko.LINE_CHART="&#xe96c;",Ko.STACKED_CHART="&#xe96d;",Ko.BOOK_OPEN_GEAR="&#xe96a;",Ko.BOOK_OPEN_GEAR_SLASH="&#xe96b;",Ko.DIAGRAM_SUNBURST="&#xe963;",Ko.DIAGRAM_SANKEY="&#xe964;",Ko.UNSTRUCTURED_DOC="&#xe95a;",Ko.RESET="&#xe958;",Ko.THIN_ARROW_LEFT="&#xe956;",Ko.THIN_ARROW_RIGHT="&#xe957;",Ko.MY_COLLECTIONS="&#xe955;",Ko.OFFLINE_SETTINGS="&#xe954;",Ko.MY_LIBRARY="&#xe959;",Ko.RATE_PLAIN="&#xe952;",Ko.RATE="&#xe953;",Ko.FEEDBACK_PLAIN="&#xe951;",Ko.PAUSE="&#xe949;",Ko.PLAY="&#xe94a;",Ko.RELATIVES_PLAIN="&#xe947;",Ko.RELATIVES="&#xe948;",Ko.SHORTCUT_MENU="&#xe946;",Ko.PRINT="&#xe944;",Ko.DEFAULT_ROLES="&#xe945;",Ko.ACCOUNT_SETTINGS="&#xe943;",Ko.ONLINE="&#xe941;",Ko.OFFLINE="&#xe816;",Ko.UPLOAD="&#xe940;",Ko.BOOK_PLAIN="&#xe93f;",Ko.SYNC="&#xe93d;",Ko.SHARED_PBK="&#xe931;",Ko.COLLECTIONS="&#xe92a;",Ko.SEARCH_IN_PUBLICATION="&#xe92f;",Ko.BOOKS="&#xe806;",Ko.LOCKER="&#xe93b;",Ko.ARROW_DOWN="&#xe92b;",Ko.ARROW_LEFT="&#xe92c;",Ko.ARROW_RIGHT="&#xe92d;",Ko.ARROW_UP="&#xe92e;",Ko.SAVE="&#xe93a;",Ko.MAILS_AND_NOTIFICATIONS="&#xe939;",Ko.DOT="&#xe936;",Ko.MINUS="&#xe937;",Ko.PLUS="&#xe938;",Ko.FILTERS="&#xe935;",Ko.STRIPE_ARROW_RIGHT="&#xe934;",Ko.STRIPE_ARROW_LEFT="&#xe933;",Ko.ATTACHMENTS="&#xe932;",Ko.ADD_BOOKMARK="&#xe804;",Ko.BOOKMARK="&#xe805;",Ko.EXPORT="&#xe80f;",Ko.MENU="&#xe807;",Ko.TAG="&#xe93e;",Ko.TAG_PLAIN="&#xe942;",Ko.COPY_TO_CLIPBOARD="&#xe930;",Ko.COLUMNS="&#xe928;",Ko.ARTICLE="&#xe927;",Ko.CLOSE_PLAIN="&#xe925;",Ko.CHECK_PLAIN="&#xe926;",Ko.LOGOUT="&#xe923;",Ko.SIGN_IN="&#xe922;",Ko.THIN_ARROW="&#xe921;",Ko.TRIANGLE_BOTTOM="&#xe91d;",Ko.TRIANGLE_LEFT="&#xe91e;",Ko.TRIANGLE_RIGHT="&#xe91f;",Ko.TRIANGLE_TOP="&#xe920;",Ko.FACET_HAS_DESCENDANT="&#xe91c;",Ko.MINUS_PLAIN="&#xe91a;",Ko.PLUS_PLAIN="&#xe91b;",Ko.INFO="&#xe919;",Ko.ICON_EXPAND="&#xe917;",Ko.ICON_COLLAPSE="&#xe918;",Ko.ADD_TO_PBK="&#xe800;",Ko.ALERT="&#xe801;",Ko.ADD_ALERT="&#xe802;",Ko.BACK_TO_SEARCH="&#xe803;",Ko.DOWNLOAD="&#xe808;",Ko.EDIT="&#xe809;",Ko.FEEDBACK="&#xe80a;",Ko.MODIFY_PBK="&#xe80c;",Ko.SCHEDULED="&#xe80d;",Ko.SEARCH="&#xe80e;",Ko.SHARE="&#xe80f1;",Ko.TOC="&#xe810;",Ko.WRITE_UGC="&#xe811;",Ko.TRASH="&#xe812;",Ko.EXTLINK="&#xe814;",Ko.EXTLINK_LIGHT="&#xe978;",Ko.CALENDAR="&#xe815;",Ko.BOOK="&#xe817;",Ko.DOWNLOAD_PLAIN="&#xe818;",Ko.CHECK="&#xe819;",Ko.TOPICS="&#xe901;",Ko.EYE="&#xf06e;",Ko.EYE_SLASH="&#xe970;",Ko.DISC="&#xe902;",Ko.CIRCLE="&#xe903;",Ko.SHARED="&#xe904;",Ko.SORT_UNSORTED="&#xe905;",Ko.SORT_UP="&#xe906;",Ko.SORT_DOWN="&#xe907;",Ko.WORKING="&#xe908;",Ko.CLOSE="&#xe909;",Ko.ZOOM_OUT="&#xe90a;",Ko.ZOOM_IN="&#xe90b;",Ko.ZOOM_REALSIZE="&#xe90c;",Ko.ZOOM_FULLSCREEN="&#xe90d;",Ko.ADMIN_RESTRICTED="&#xe90e;",Ko.ADMIN_THEME="&#xe911;",Ko.WARNING="&#xe913;",Ko.CONTEXT="&#xe914;",Ko.SEARCH_HOME="&#xe915;",Ko.STEPS="&#xe916;",Ko.HOME="&#xe80b;",Ko.TRANSLATE="&#xe924;",Ko.USER="&#xe813;",Ko.ADMIN="&#xe90f;",Ko.ANALYTICS="&#xe929;",Ko.ADMIN_KHUB="&#xe910;",Ko.ADMIN_USERS="&#xe912;",Ko.ADMIN_INTEGRATION="&#xe93c;",Ko.ADMIN_PORTAL="&#xe94b;",Ko.COMMENT_QUESTION="&#xe965;",Ko.COMMENT_QUESTION_PLAIN="&#xe966;",Ko.MESSAGE_BOT="&#xe967;",Ko.PIP="&#xe973;",Ko.PIP_WIDE="&#xe974;",Ko.EXPAND_WIDE="&#xe972;",Ko.X_MARK="&#xe971;",t.FtFileFormatIcons=void 0,(Zo=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="&#xe90a;",Zo.ABW="&#xe900;",Zo.AUDIO="&#xe901;",Zo.AVI="&#xe902;",Zo.CHM="&#xe904;",Zo.CODE="&#xe905;",Zo.CSV="&#xe903;",Zo.DITA="&#xe906;",Zo.EPUB="&#xe907;",Zo.EXCEL="&#xe908;",Zo.FLAC="&#xe909;",Zo.GIF="&#xe90b;",Zo.GZIP="&#xe90c;",Zo.HTML="&#xe90d;",Zo.IMAGE="&#xe90e;",Zo.JPEG="&#xe90f;",Zo.JSON="&#xe910;",Zo.M4A="&#xe911;",Zo.MOV="&#xe912;",Zo.MP3="&#xe913;",Zo.MP4="&#xe914;",Zo.OGG="&#xe915;",Zo.PDF="&#xe916;",Zo.PNG="&#xe917;",Zo.POWERPOINT="&#xe918;",Zo.RAR="&#xe91a;",Zo.STP="&#xe91b;",Zo.TEXT="&#xe91c;",Zo.VIDEO="&#xe91e;",Zo.WAV="&#xe91f;",Zo.WMA="&#xe920;",Zo.WORD="&#xe921;",Zo.XML="&#xe922;",Zo.YAML="&#xe919;",Zo.ZIP="&#xe923;";const $o=new Map([...["abw"].map((o=>[o,t.FtFileFormatIcons.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((o=>[o,t.FtFileFormatIcons.AUDIO])),...["avi"].map((o=>[o,t.FtFileFormatIcons.AVI])),...["chm","xhs"].map((o=>[o,t.FtFileFormatIcons.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((o=>[o,t.FtFileFormatIcons.CODE])),...["csv"].map((o=>[o,t.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((o=>[o,t.FtFileFormatIcons.DITA])),...["epub"].map((o=>[o,t.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((o=>[o,t.FtFileFormatIcons.EXCEL])),...["flac"].map((o=>[o,t.FtFileFormatIcons.FLAC])),...["gif"].map((o=>[o,t.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((o=>[o,t.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((o=>[o,t.FtFileFormatIcons.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((o=>[o,t.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((o=>[o,t.FtFileFormatIcons.JPEG])),...["json"].map((o=>[o,t.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((o=>[o,t.FtFileFormatIcons.M4A])),...["mov","qt"].map((o=>[o,t.FtFileFormatIcons.MOV])),...["mp3"].map((o=>[o,t.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((o=>[o,t.FtFileFormatIcons.MP4])),...["ogg","oga"].map((o=>[o,t.FtFileFormatIcons.OGG])),...["pdf","ps"].map((o=>[o,t.FtFileFormatIcons.PDF])),...["png"].map((o=>[o,t.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((o=>[o,t.FtFileFormatIcons.POWERPOINT])),...["rar"].map((o=>[o,t.FtFileFormatIcons.RAR])),...["stp"].map((o=>[o,t.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((o=>[o,t.FtFileFormatIcons.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((o=>[o,t.FtFileFormatIcons.VIDEO])),...["wav"].map((o=>[o,t.FtFileFormatIcons.WAV])),...["wma"].map((o=>[o,t.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((o=>[o,t.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((o=>[o,t.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((o=>[o,t.FtFileFormatIcons.YAML])),...["zip"].map((o=>[o,t.FtFileFormatIcons.ZIP]))]),Ao=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Fo={size:go.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:go.extend("--ft-icon-fluid-topics-font-family","",go.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:go.extend("--ft-icon-file-format-font-family","",go.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:go.extend("--ft-icon-material-font-family","",go.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:go.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Mo=dt`
129
+ */class ko extends Wo{constructor(t){if(super(t),this.et=Y,t.type!==Lo)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this.vt=void 0,this.et=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}ko.directiveName="unsafeHTML",ko.resultType=1;const Ko=(t=>(...o)=>({_$litDirective$:t,values:o}))(ko);var Zo,$o;t.FtIcons=void 0,(Zo=t.FtIcons||(t.FtIcons={})).THUMBS_DOWN="&#xe94d;",Zo.THUMBS_DOWN_PLAIN="&#xe94e;",Zo.THUMBS_UP="&#xe94f;",Zo.THUMBS_UP_PLAIN="&#xe950;",Zo.STAR="&#xe94c;",Zo.STAR_PLAIN="&#xe900;",Zo.DESKTOP="&#xe95e;",Zo.LIFE_RING="&#xe975;",Zo.GLOBE="&#xe976;",Zo.PIGGY_BANK="&#xe977;",Zo.TABLET_LANDSCAPE="&#xe95f;",Zo.TABLET_PORTRAIT="&#xe960;",Zo.MOBILE_LANDSCAPE="&#xe961;",Zo.MOBILE_PORTRAIT="&#xe962;",Zo.ARROW_RIGHT_TO_LINE="&#xe95d;",Zo.THIN_ARROW_UP="&#xe95c;",Zo.CONTEXTUAL="&#xe95b;",Zo.CHART_SIMPLE="&#xe968;",Zo.BARS_PROGRESS="&#xe969;",Zo.LINE_CHART="&#xe96c;",Zo.STACKED_CHART="&#xe96d;",Zo.BOOK_OPEN_GEAR="&#xe96a;",Zo.BOOK_OPEN_GEAR_SLASH="&#xe96b;",Zo.DIAGRAM_SUNBURST="&#xe963;",Zo.DIAGRAM_SANKEY="&#xe964;",Zo.UNSTRUCTURED_DOC="&#xe95a;",Zo.RESET="&#xe958;",Zo.THIN_ARROW_LEFT="&#xe956;",Zo.THIN_ARROW_RIGHT="&#xe957;",Zo.MY_COLLECTIONS="&#xe955;",Zo.OFFLINE_SETTINGS="&#xe954;",Zo.MY_LIBRARY="&#xe959;",Zo.RATE_PLAIN="&#xe952;",Zo.RATE="&#xe953;",Zo.FEEDBACK_PLAIN="&#xe951;",Zo.PAUSE="&#xe949;",Zo.PLAY="&#xe94a;",Zo.RELATIVES_PLAIN="&#xe947;",Zo.RELATIVES="&#xe948;",Zo.SHORTCUT_MENU="&#xe946;",Zo.PRINT="&#xe944;",Zo.DEFAULT_ROLES="&#xe945;",Zo.ACCOUNT_SETTINGS="&#xe943;",Zo.ONLINE="&#xe941;",Zo.OFFLINE="&#xe816;",Zo.UPLOAD="&#xe940;",Zo.BOOK_PLAIN="&#xe93f;",Zo.SYNC="&#xe93d;",Zo.SHARED_PBK="&#xe931;",Zo.COLLECTIONS="&#xe92a;",Zo.SEARCH_IN_PUBLICATION="&#xe92f;",Zo.BOOKS="&#xe806;",Zo.LOCKER="&#xe93b;",Zo.ARROW_DOWN="&#xe92b;",Zo.ARROW_LEFT="&#xe92c;",Zo.ARROW_RIGHT="&#xe92d;",Zo.ARROW_UP="&#xe92e;",Zo.SAVE="&#xe93a;",Zo.MAILS_AND_NOTIFICATIONS="&#xe939;",Zo.DOT="&#xe936;",Zo.MINUS="&#xe937;",Zo.PLUS="&#xe938;",Zo.FILTERS="&#xe935;",Zo.STRIPE_ARROW_RIGHT="&#xe934;",Zo.STRIPE_ARROW_LEFT="&#xe933;",Zo.ATTACHMENTS="&#xe932;",Zo.ADD_BOOKMARK="&#xe804;",Zo.BOOKMARK="&#xe805;",Zo.EXPORT="&#xe80f;",Zo.MENU="&#xe807;",Zo.TAG="&#xe93e;",Zo.TAG_PLAIN="&#xe942;",Zo.COPY_TO_CLIPBOARD="&#xe930;",Zo.COLUMNS="&#xe928;",Zo.ARTICLE="&#xe927;",Zo.CLOSE_PLAIN="&#xe925;",Zo.CHECK_PLAIN="&#xe926;",Zo.LOGOUT="&#xe923;",Zo.SIGN_IN="&#xe922;",Zo.THIN_ARROW="&#xe921;",Zo.TRIANGLE_BOTTOM="&#xe91d;",Zo.TRIANGLE_LEFT="&#xe91e;",Zo.TRIANGLE_RIGHT="&#xe91f;",Zo.TRIANGLE_TOP="&#xe920;",Zo.FACET_HAS_DESCENDANT="&#xe91c;",Zo.MINUS_PLAIN="&#xe91a;",Zo.PLUS_PLAIN="&#xe91b;",Zo.INFO="&#xe919;",Zo.ICON_EXPAND="&#xe917;",Zo.ICON_COLLAPSE="&#xe918;",Zo.ADD_TO_PBK="&#xe800;",Zo.ALERT="&#xe801;",Zo.ADD_ALERT="&#xe802;",Zo.BACK_TO_SEARCH="&#xe803;",Zo.DOWNLOAD="&#xe808;",Zo.EDIT="&#xe809;",Zo.FEEDBACK="&#xe80a;",Zo.MODIFY_PBK="&#xe80c;",Zo.SCHEDULED="&#xe80d;",Zo.SEARCH="&#xe80e;",Zo.SHARE="&#xe80f1;",Zo.TOC="&#xe810;",Zo.WRITE_UGC="&#xe811;",Zo.TRASH="&#xe812;",Zo.EXTLINK="&#xe814;",Zo.EXTLINK_LIGHT="&#xe978;",Zo.CALENDAR="&#xe815;",Zo.BOOK="&#xe817;",Zo.DOWNLOAD_PLAIN="&#xe818;",Zo.CHECK="&#xe819;",Zo.TOPICS="&#xe901;",Zo.EYE="&#xf06e;",Zo.EYE_SLASH="&#xe970;",Zo.DISC="&#xe902;",Zo.CIRCLE="&#xe903;",Zo.SHARED="&#xe904;",Zo.SORT_UNSORTED="&#xe905;",Zo.SORT_UP="&#xe906;",Zo.SORT_DOWN="&#xe907;",Zo.WORKING="&#xe908;",Zo.CLOSE="&#xe909;",Zo.ZOOM_OUT="&#xe90a;",Zo.ZOOM_IN="&#xe90b;",Zo.ZOOM_REALSIZE="&#xe90c;",Zo.ZOOM_FULLSCREEN="&#xe90d;",Zo.ADMIN_RESTRICTED="&#xe90e;",Zo.ADMIN_THEME="&#xe911;",Zo.WARNING="&#xe913;",Zo.CONTEXT="&#xe914;",Zo.SEARCH_HOME="&#xe915;",Zo.STEPS="&#xe916;",Zo.HOME="&#xe80b;",Zo.TRANSLATE="&#xe924;",Zo.USER="&#xe813;",Zo.ADMIN="&#xe90f;",Zo.ANALYTICS="&#xe929;",Zo.ADMIN_KHUB="&#xe910;",Zo.ADMIN_USERS="&#xe912;",Zo.ADMIN_INTEGRATION="&#xe93c;",Zo.ADMIN_PORTAL="&#xe94b;",Zo.COMMENT_QUESTION="&#xe965;",Zo.COMMENT_QUESTION_PLAIN="&#xe966;",Zo.MESSAGE_BOT="&#xe967;",Zo.PIP="&#xe973;",Zo.PIP_WIDE="&#xe974;",Zo.EXPAND_WIDE="&#xe972;",Zo.X_MARK="&#xe971;",t.FtFileFormatIcons=void 0,($o=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="&#xe90a;",$o.ABW="&#xe900;",$o.AUDIO="&#xe901;",$o.AVI="&#xe902;",$o.CHM="&#xe904;",$o.CODE="&#xe905;",$o.CSV="&#xe903;",$o.DITA="&#xe906;",$o.EPUB="&#xe907;",$o.EXCEL="&#xe908;",$o.FLAC="&#xe909;",$o.GIF="&#xe90b;",$o.GZIP="&#xe90c;",$o.HTML="&#xe90d;",$o.IMAGE="&#xe90e;",$o.JPEG="&#xe90f;",$o.JSON="&#xe910;",$o.M4A="&#xe911;",$o.MOV="&#xe912;",$o.MP3="&#xe913;",$o.MP4="&#xe914;",$o.OGG="&#xe915;",$o.PDF="&#xe916;",$o.PNG="&#xe917;",$o.POWERPOINT="&#xe918;",$o.RAR="&#xe91a;",$o.STP="&#xe91b;",$o.TEXT="&#xe91c;",$o.VIDEO="&#xe91e;",$o.WAV="&#xe91f;",$o.WMA="&#xe920;",$o.WORD="&#xe921;",$o.XML="&#xe922;",$o.YAML="&#xe919;",$o.ZIP="&#xe923;";const Ao=new Map([...["abw"].map((o=>[o,t.FtFileFormatIcons.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((o=>[o,t.FtFileFormatIcons.AUDIO])),...["avi"].map((o=>[o,t.FtFileFormatIcons.AVI])),...["chm","xhs"].map((o=>[o,t.FtFileFormatIcons.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((o=>[o,t.FtFileFormatIcons.CODE])),...["csv"].map((o=>[o,t.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((o=>[o,t.FtFileFormatIcons.DITA])),...["epub"].map((o=>[o,t.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((o=>[o,t.FtFileFormatIcons.EXCEL])),...["flac"].map((o=>[o,t.FtFileFormatIcons.FLAC])),...["gif"].map((o=>[o,t.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((o=>[o,t.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((o=>[o,t.FtFileFormatIcons.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((o=>[o,t.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((o=>[o,t.FtFileFormatIcons.JPEG])),...["json"].map((o=>[o,t.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((o=>[o,t.FtFileFormatIcons.M4A])),...["mov","qt"].map((o=>[o,t.FtFileFormatIcons.MOV])),...["mp3"].map((o=>[o,t.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((o=>[o,t.FtFileFormatIcons.MP4])),...["ogg","oga"].map((o=>[o,t.FtFileFormatIcons.OGG])),...["pdf","ps"].map((o=>[o,t.FtFileFormatIcons.PDF])),...["png"].map((o=>[o,t.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((o=>[o,t.FtFileFormatIcons.POWERPOINT])),...["rar"].map((o=>[o,t.FtFileFormatIcons.RAR])),...["stp"].map((o=>[o,t.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((o=>[o,t.FtFileFormatIcons.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((o=>[o,t.FtFileFormatIcons.VIDEO])),...["wav"].map((o=>[o,t.FtFileFormatIcons.WAV])),...["wma"].map((o=>[o,t.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((o=>[o,t.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((o=>[o,t.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((o=>[o,t.FtFileFormatIcons.YAML])),...["zip"].map((o=>[o,t.FtFileFormatIcons.ZIP]))]),Fo=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Mo={size:go.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:go.extend("--ft-icon-fluid-topics-font-family","",go.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:go.extend("--ft-icon-file-format-font-family","",go.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:go.extend("--ft-icon-material-font-family","",go.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:go.create("--ft-icon-vertical-align","","UNKNOWN","unset")},zo=dt`
126
130
  :host, i.ft-icon {
127
131
  display: inline-flex;
128
132
  align-items: center;
@@ -131,14 +135,14 @@ const Io=2;class Lo{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
131
135
  }
132
136
 
133
137
  :host {
134
- width: ${Fo.size};
135
- height: ${Fo.size};
138
+ width: ${Mo.size};
139
+ height: ${Mo.size};
136
140
  }
137
141
 
138
142
  i.ft-icon {
139
143
  width: 100%;
140
144
  height: 100%;
141
- font-size: ${Fo.size};
145
+ font-size: ${Mo.size};
142
146
  line-height: 1;
143
147
  font-weight: normal;
144
148
  text-transform: none;
@@ -149,30 +153,30 @@ const Io=2;class Lo{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
149
153
  text-rendering: auto;
150
154
  -webkit-font-smoothing: antialiased;
151
155
  -moz-osx-font-smoothing: grayscale;
152
- vertical-align: ${Fo.verticalAlign};
156
+ vertical-align: ${Mo.verticalAlign};
153
157
  }
154
158
 
155
159
  i.ft-icon.ft-icon--fluid-topics {
156
- font-family: ${Fo.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
160
+ font-family: ${Mo.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
157
161
 
158
162
  /* Ugly fix because font is broken */
159
- font-size: calc(0.75 * ${Fo.size});
160
- line-height: ${Fo.size};
163
+ font-size: calc(0.75 * ${Mo.size});
164
+ line-height: ${Mo.size};
161
165
  position: relative;
162
166
  top: -4%;
163
167
  justify-content: center;
164
168
  }
165
169
 
166
170
  .ft-icon--file-format {
167
- font-family: ${Fo.fileFormatFontFamily}, ft-mime, sans-serif;
171
+ font-family: ${Mo.fileFormatFontFamily}, ft-mime, sans-serif;
168
172
  }
169
173
 
170
174
  .ft-icon--material {
171
- font-family: ${Fo.materialFontFamily}, "Material Icons", sans-serif;
175
+ font-family: ${Mo.materialFontFamily}, "Material Icons", sans-serif;
172
176
  }
173
- `;var zo;t.FtIconVariants=void 0,(zo=t.FtIconVariants||(t.FtIconVariants={})).fluid_topics="fluid-topics",zo.file_format="file-format",zo.material="material";var Bo,Do=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Po extends Ro{constructor(){super(...arguments),this.resolvedIcon=Vt}render(){const o=this.variant&&Object.values(t.FtIconVariants).includes(this.variant)?this.variant:t.FtIconVariants.fluid_topics,e=o!==t.FtIconVariants.material||!!this.value;return Jt`
177
+ `;var Bo;t.FtIconVariants=void 0,(Bo=t.FtIconVariants||(t.FtIconVariants={})).fluid_topics="fluid-topics",Bo.file_format="file-format",Bo.material="material";var Do,Po=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class _o extends Ro{constructor(){super(...arguments),this.resolvedIcon=Vt}render(){const o=this.variant&&Object.values(t.FtIconVariants).includes(this.variant)?this.variant:t.FtIconVariants.fluid_topics,e=o!==t.FtIconVariants.material||!!this.value;return Jt`
174
178
  <i class="ft-icon ft-icon--${o}" part="icon icon-${o}">
175
- ${ko(this.resolvedIcon)}
179
+ ${Ko(this.resolvedIcon)}
176
180
  <slot ?hidden=${e}></slot>
177
181
  </i>
178
- `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var o,e;let r=this.value||this.textContent;switch(this.variant){case t.FtIconVariants.file_format:this.resolvedIcon=null!==(o=t.FtFileFormatIcons[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r;break;case t.FtIconVariants.material:this.resolvedIcon=this.value||Vt;break;default:this.resolvedIcon=null!==(e=t.FtIcons[r.replace("-","_").toUpperCase()])&&void 0!==e?e:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Po.elementDefinitions={},Po.styles=Mo,Do([C()],Po.prototype,"variant",void 0),Do([C()],Po.prototype,"value",void 0),Do([function(t){return C({...t,state:!0,attribute:!1})}()],Po.prototype,"resolvedIcon",void 0),Do([function(t,o){return(e,r,i)=>{const a=o=>o.renderRoot?.querySelector(t)??null;if(o){const{get:t,set:o}="object"==typeof r?e:i??(()=>{const t=Symbol();return{get(){return this[t]},set(o){this[t]=o}}})();return R(0,0,{get(){let e=t.call(this);return void 0===e&&(e=a(this),(null!==e||this.hasUpdated)&&o.call(this,e)),e}})}return R(0,0,{get(){return a(this)}})}}("slot")],Po.prototype,"slottedContent",void 0),(Bo="ft-icon",t=>{window.customElements.get(Bo)||window.customElements.define(Bo,t)})(Po),t.FtIcon=Po,t.FtIconCssVariables=Fo,t.resolveFileFormatIcon=function(o,e){var r,i,a,n;o=(null!=o?o:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[s,c]=((null!==(r=Ao.get(o))&&void 0!==r?r:o)+"/").split("/");return null!==(n=null!==(a=null!==(i=$o.get(c))&&void 0!==i?i:$o.get(e))&&void 0!==a?a:$o.get(s))&&void 0!==n?n:t.FtFileFormatIcons.UNKNOWN},t.styles=Mo}({});
182
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var o,e;let r=this.value||this.textContent;switch(this.variant){case t.FtIconVariants.file_format:this.resolvedIcon=null!==(o=t.FtFileFormatIcons[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r;break;case t.FtIconVariants.material:this.resolvedIcon=this.value||Vt;break;default:this.resolvedIcon=null!==(e=t.FtIcons[r.replace("-","_").toUpperCase()])&&void 0!==e?e:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}_o.elementDefinitions={},_o.styles=zo,Po([C()],_o.prototype,"variant",void 0),Po([C()],_o.prototype,"value",void 0),Po([function(t){return C({...t,state:!0,attribute:!1})}()],_o.prototype,"resolvedIcon",void 0),Po([function(t,o){return(e,r,i)=>{const a=o=>o.renderRoot?.querySelector(t)??null;if(o){const{get:t,set:o}="object"==typeof r?e:i??(()=>{const t=Symbol();return{get(){return this[t]},set(o){this[t]=o}}})();return R(0,0,{get(){let e=t.call(this);return void 0===e&&(e=a(this),(null!==e||this.hasUpdated)&&o.call(this,e)),e}})}return R(0,0,{get(){return a(this)}})}}("slot")],_o.prototype,"slottedContent",void 0),(Do="ft-icon",t=>{window.customElements.get(Do)||window.customElements.define(Do,t)})(_o),t.FtIcon=_o,t.FtIconCssVariables=Mo,t.resolveFileFormatIcon=function(o,e){var r,i,a,n;o=(null!=o?o:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[s,c]=((null!==(r=Fo.get(o))&&void 0!==r?r:o)+"/").split("/");return null!==(n=null!==(a=null!==(i=Ao.get(c))&&void 0!==i?i:Ao.get(e))&&void 0!==a?a:Ao.get(s))&&void 0!==n?n:t.FtFileFormatIcons.UNKNOWN},t.styles=zo}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-icon",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Typography components",
5
5
  "keywords": [
6
6
  "Lit"
@@ -20,8 +20,8 @@
20
20
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
21
21
  },
22
22
  "dependencies": {
23
- "@fluid-topics/ft-wc-utils": "1.1.1",
23
+ "@fluid-topics/ft-wc-utils": "1.1.2",
24
24
  "lit": "3.1.0"
25
25
  },
26
- "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
26
+ "gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
27
27
  }