Socket
Socket
Sign inDemoInstall

@fluid-topics/ft-typography

Package Overview
Dependencies
Maintainers
2
Versions
247
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluid-topics/ft-typography - npm Package Compare versions

Comparing version 0.3.15 to 0.3.16

28

build/ft-typography.min.js

@@ -17,3 +17,3 @@ !function(t){

*/
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||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let 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 u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const 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=g[g.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?d(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)}},f=(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)})},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),n.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 g=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const m=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.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,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(ct){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)}}}
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||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let 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 u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const 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=g[g.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?d(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)}},f=(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)})},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),n.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 g=[document];const m=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};m(ShadowRoot,"createElement",document),m(ShadowRoot,"importNode",document),m(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,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(ct){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)}}}
/**

@@ -39,3 +39,3 @@ * @license

* SPDX-License-Identifier: BSD-3-Clause
*/;var f;const u=window.trustedTypes,d=u?u.emptyScript:"",y=window.reactiveElementPolyfillSupport,g={toAttribute(t,e){switch(e){case Boolean:t=t?d: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}},v=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:v};class b 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=m){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)||m}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(p(t))}else void 0!==t&&e.push(p(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 c(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=m){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:g.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:g.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||v)(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){}}
*/;var f;const u=window.trustedTypes,d=u?u.emptyScript:"",y=window.reactiveElementPolyfillSupport,g={toAttribute(t,e){switch(e){case Boolean:t=t?d: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),v={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:m};class b 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=v){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)||v}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(p(t))}else void 0!==t&&e.push(p(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 c(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=v){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:g.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:g.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||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){}}
/**

@@ -46,3 +46,3 @@ * @license

*/
var x;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:b}),(null!==(f=globalThis.reactiveElementVersions)&&void 0!==f?f:globalThis.reactiveElementVersions=[]).push("1.3.4");const w=globalThis.trustedTypes,O=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,$=`lit$${(Math.random()+"").slice(9)}$`,S="?"+$,N=`<${S}>`,E=document,R=(t="")=>E.createComment(t),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,T=/>/g,k=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),z=/'/g,L=/"/g,A=/^(?:script|style|textarea|title)$/i,P=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),W=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),j=new WeakMap,B=E.createTreeWalker(E,129,null,!1),_=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=F;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===F?"!--"===l[1]?s=U:void 0!==l[1]?s=T:void 0!==l[2]?(A.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=k):void 0!==l[3]&&(s=k):s===k?">"===l[0]?(s=null!=n?n:F,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?k:'"'===l[3]?L:z):s===L||s===z?s=k:s===U||s===T?s=F:(s=k,n=void 0);const p=s===k&&t[e+1].startsWith("/>")?" ":"";r+=s===F?i+N:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+$+p):i+$+(-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!==O?O.createHTML(a):a,o]};class D{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]=_(t,e);if(this.el=D.createElement(l,i),B.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=B.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($)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split($),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?q:"@"===e[1]?G:V})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(A.test(o.tagName)){const t=o.textContent.split($),e=t.length-1;if(e>0){o.textContent=w?w.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],R()),B.nextNode(),a.push({type:2,index:++n});o.append(t[e],R())}}}else if(8===o.nodeType)if(o.data===S)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf($,t+1));)a.push({type:7,index:n}),t+=$.length-1}n++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}}function K(t,e,i=t,o){var n,r,s,a;if(e===W)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const h=C(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=K(t,l._$AS(t,e.values),l,o)),e}class I{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:E).importNode(i,!0);B.currentNode=n;let r=B.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new Z(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new Q(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=B.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 Z{constructor(t,e,i,o){var n;this.type=2,this._$AH=H,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=K(this,t,e),C(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==W&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>M(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(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!==H&&C(this._$AH)?this._$AA.nextSibling.data=t:this.k(E.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=D.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 I(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=j.get(t.strings);return void 0===e&&j.set(t.strings,e=new D(t)),e}S(t){M(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 Z(this.j(R()),this.j(R()),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 V{constructor(t,e,i,o,n){this.type=1,this._$AH=H,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=H}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=K(this,t,e,0),r=!C(t)||t!==this._$AH&&t!==W,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=K(this,o[i+s],e,s),a===W&&(a=this._$AH[s]),r||(r=!C(a)||a!==this._$AH[s]),a===H?t=H:t!==H&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.P(t)}P(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends V{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===H?void 0:t}}const X=w?w.emptyScript:"";class q extends V{constructor(){super(...arguments),this.type=4}P(t){t&&t!==H?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class G extends V{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=K(this,t,e,0))&&void 0!==i?i:H)===W)return;const o=this._$AH,n=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==H&&(o===H||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 Q{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){K(this,t)}}const Y=window.litHtmlPolyfillSupport;
var x;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:b}),(null!==(f=globalThis.reactiveElementVersions)&&void 0!==f?f:globalThis.reactiveElementVersions=[]).push("1.3.4");const w=globalThis.trustedTypes,O=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,$=`lit$${(Math.random()+"").slice(9)}$`,S="?"+$,N=`<${S}>`,E=document,R=(t="")=>E.createComment(t),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,k=/>/g,z=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,L=/"/g,A=/^(?:script|style|textarea|title)$/i,P=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),W=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),j=new WeakMap,B=E.createTreeWalker(E,129,null,!1),_=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=F;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===F?"!--"===l[1]?s=U:void 0!==l[1]?s=k:void 0!==l[2]?(A.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=z):void 0!==l[3]&&(s=z):s===z?">"===l[0]?(s=null!=n?n:F,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?z:'"'===l[3]?L:T):s===L||s===T?s=z:s===U||s===k?s=F:(s=z,n=void 0);const p=s===z&&t[e+1].startsWith("/>")?" ":"";r+=s===F?i+N:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+$+p):i+$+(-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!==O?O.createHTML(a):a,o]};class D{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]=_(t,e);if(this.el=D.createElement(l,i),B.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=B.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($)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split($),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?q:"@"===e[1]?G:V})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(A.test(o.tagName)){const t=o.textContent.split($),e=t.length-1;if(e>0){o.textContent=w?w.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],R()),B.nextNode(),a.push({type:2,index:++n});o.append(t[e],R())}}}else if(8===o.nodeType)if(o.data===S)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf($,t+1));)a.push({type:7,index:n}),t+=$.length-1}n++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}}function K(t,e,i=t,o){var n,r,s,a;if(e===W)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const h=C(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=K(t,l._$AS(t,e.values),l,o)),e}class I{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:E).importNode(i,!0);B.currentNode=n;let r=B.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new Z(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new Q(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=B.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 Z{constructor(t,e,i,o){var n;this.type=2,this._$AH=H,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=K(this,t,e),C(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==W&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>M(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(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!==H&&C(this._$AH)?this._$AA.nextSibling.data=t:this.k(E.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=D.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 I(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=j.get(t.strings);return void 0===e&&j.set(t.strings,e=new D(t)),e}S(t){M(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 Z(this.j(R()),this.j(R()),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 V{constructor(t,e,i,o,n){this.type=1,this._$AH=H,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=H}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=K(this,t,e,0),r=!C(t)||t!==this._$AH&&t!==W,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=K(this,o[i+s],e,s),a===W&&(a=this._$AH[s]),r||(r=!C(a)||a!==this._$AH[s]),a===H?t=H:t!==H&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.P(t)}P(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends V{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===H?void 0:t}}const X=w?w.emptyScript:"";class q extends V{constructor(){super(...arguments),this.type=4}P(t){t&&t!==H?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class G extends V{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=K(this,t,e,0))&&void 0!==i?i:H)===W)return;const o=this._$AH,n=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==H&&(o===H||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 Q{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){K(this,t)}}const Y=window.litHtmlPolyfillSupport;
/**

@@ -72,2 +72,14 @@ * @license

}
`,h`
.ft-word-wrap {
white-space: normal;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto
}
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(at=null===(st=window.safari)||void 0===st?void 0:st.pushNotification)||void 0===at||at.toString());

@@ -79,3 +91,3 @@ /**

*/
const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void 0:t._$litStatic$},ft=t=>({_$litStatic$:t,r:ct}),ut=new Map,dt=(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=pt(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=ut.get(t))&&(s.raw=s,ut.set(t,e=s)),i=a}return t(e,...i)})(P);var yt;t.FtTypographyVariants=void 0,(yt=t.FtTypographyVariants||(t.FtTypographyVariants={})).title="title",yt.title_dense="title-dense",yt.subtitle1="subtitle1",yt.subtitle2="subtitle2",yt.body1="body1",yt.body2="body2",yt.caption="caption",yt.breadcrumb="breadcrumb",yt.overline="overline",yt.button="button";const gt=nt.extend("--ft-typography-font-family",rt.titleFont),vt=nt.extend("--ft-typography-font-family",rt.contentFont),mt={fontFamily:vt,fontSize:nt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:nt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:nt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:nt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:nt.create("--ft-typography-text-transform","UNKNOWN","inherit")},bt={fontFamily:nt.extend("--ft-typography-title-font-family",gt),fontSize:nt.extend("--ft-typography-title-font-size",mt.fontSize,"20px"),fontWeight:nt.extend("--ft-typography-title-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-title-letter-spacing",mt.letterSpacing,"0.15px"),lineHeight:nt.extend("--ft-typography-title-line-height",mt.lineHeight,"1.2"),textTransform:nt.extend("--ft-typography-title-text-transform",mt.textTransform,"inherit")},xt={fontFamily:nt.extend("--ft-typography-title-dense-font-family",gt),fontSize:nt.extend("--ft-typography-title-dense-font-size",mt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-title-dense-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-title-dense-letter-spacing",mt.letterSpacing,"0.105px"),lineHeight:nt.extend("--ft-typography-title-dense-line-height",mt.lineHeight,"1.7"),textTransform:nt.extend("--ft-typography-title-dense-text-transform",mt.textTransform,"inherit")},wt={fontFamily:nt.extend("--ft-typography-subtitle1-font-family",vt),fontSize:nt.extend("--ft-typography-subtitle1-font-size",mt.fontSize,"16px"),fontWeight:nt.extend("--ft-typography-subtitle1-font-weight",mt.fontWeight,"600"),letterSpacing:nt.extend("--ft-typography-subtitle1-letter-spacing",mt.letterSpacing,"0.144px"),lineHeight:nt.extend("--ft-typography-subtitle1-line-height",mt.lineHeight,"1.5"),textTransform:nt.extend("--ft-typography-subtitle1-text-transform",mt.textTransform,"inherit")},Ot={fontFamily:nt.extend("--ft-typography-subtitle2-font-family",vt),fontSize:nt.extend("--ft-typography-subtitle2-font-size",mt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-subtitle2-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-subtitle2-letter-spacing",mt.letterSpacing,"0.098px"),lineHeight:nt.extend("--ft-typography-subtitle2-line-height",mt.lineHeight,"1.7"),textTransform:nt.extend("--ft-typography-subtitle2-text-transform",mt.textTransform,"inherit")},$t={fontFamily:nt.extend("--ft-typography-body1-font-family",vt),fontSize:nt.extend("--ft-typography-body1-font-size",mt.fontSize,"16px"),fontWeight:nt.extend("--ft-typography-body1-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-body1-letter-spacing",mt.letterSpacing,"0.496px"),lineHeight:nt.extend("--ft-typography-body1-line-height",mt.lineHeight,"1.5"),textTransform:nt.extend("--ft-typography-body1-text-transform",mt.textTransform,"inherit")},St={fontFamily:nt.extend("--ft-typography-body2-font-family",vt),fontSize:nt.extend("--ft-typography-body2-font-size",mt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-body2-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-body2-letter-spacing",mt.letterSpacing,"0.252px"),lineHeight:nt.extend("--ft-typography-body2-line-height",mt.lineHeight,"1.4"),textTransform:nt.extend("--ft-typography-body2-text-transform",mt.textTransform,"inherit")},Nt={fontFamily:nt.extend("--ft-typography-caption-font-family",vt),fontSize:nt.extend("--ft-typography-caption-font-size",mt.fontSize,"12px"),fontWeight:nt.extend("--ft-typography-caption-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-caption-letter-spacing",mt.letterSpacing,"0.396px"),lineHeight:nt.extend("--ft-typography-caption-line-height",mt.lineHeight,"1.33"),textTransform:nt.extend("--ft-typography-caption-text-transform",mt.textTransform,"inherit")},Et={fontFamily:nt.extend("--ft-typography-breadcrumb-font-family",vt),fontSize:nt.extend("--ft-typography-breadcrumb-font-size",mt.fontSize,"10px"),fontWeight:nt.extend("--ft-typography-breadcrumb-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-breadcrumb-letter-spacing",mt.letterSpacing,"0.33px"),lineHeight:nt.extend("--ft-typography-breadcrumb-line-height",mt.lineHeight,"1.6"),textTransform:nt.extend("--ft-typography-breadcrumb-text-transform",mt.textTransform,"inherit")},Rt={fontFamily:nt.extend("--ft-typography-overline-font-family",vt),fontSize:nt.extend("--ft-typography-overline-font-size",mt.fontSize,"10px"),fontWeight:nt.extend("--ft-typography-overline-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-overline-letter-spacing",mt.letterSpacing,"1.5px"),lineHeight:nt.extend("--ft-typography-overline-line-height",mt.lineHeight,"1.6"),textTransform:nt.extend("--ft-typography-overline-text-transform",mt.textTransform,"uppercase")},Ct={fontFamily:nt.extend("--ft-typography-button-font-family",vt),fontSize:nt.extend("--ft-typography-button-font-size",mt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-button-font-weight",mt.fontWeight,"600"),letterSpacing:nt.extend("--ft-typography-button-letter-spacing",mt.letterSpacing,"1.246px"),lineHeight:nt.extend("--ft-typography-button-line-height",mt.lineHeight,"1.15"),textTransform:nt.extend("--ft-typography-button-text-transform",mt.textTransform,"uppercase")},Mt=h`
const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void 0:t._$litStatic$},ft=t=>({_$litStatic$:t,r:ct}),ut=new Map,dt=(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=pt(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=ut.get(t))&&(s.raw=s,ut.set(t,e=s)),i=a}return t(e,...i)})(P);var yt;t.FtTypographyVariants=void 0,(yt=t.FtTypographyVariants||(t.FtTypographyVariants={})).title="title",yt.title_dense="title-dense",yt.subtitle1="subtitle1",yt.subtitle2="subtitle2",yt.body1="body1",yt.body2="body2",yt.caption="caption",yt.breadcrumb="breadcrumb",yt.overline="overline",yt.button="button";const gt=nt.extend("--ft-typography-font-family",rt.titleFont),mt=nt.extend("--ft-typography-font-family",rt.contentFont),vt={fontFamily:mt,fontSize:nt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:nt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:nt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:nt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:nt.create("--ft-typography-text-transform","UNKNOWN","inherit")},bt={fontFamily:nt.extend("--ft-typography-title-font-family",gt),fontSize:nt.extend("--ft-typography-title-font-size",vt.fontSize,"20px"),fontWeight:nt.extend("--ft-typography-title-font-weight",vt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-title-letter-spacing",vt.letterSpacing,"0.15px"),lineHeight:nt.extend("--ft-typography-title-line-height",vt.lineHeight,"1.2"),textTransform:nt.extend("--ft-typography-title-text-transform",vt.textTransform,"inherit")},xt={fontFamily:nt.extend("--ft-typography-title-dense-font-family",gt),fontSize:nt.extend("--ft-typography-title-dense-font-size",vt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-title-dense-font-weight",vt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-title-dense-letter-spacing",vt.letterSpacing,"0.105px"),lineHeight:nt.extend("--ft-typography-title-dense-line-height",vt.lineHeight,"1.7"),textTransform:nt.extend("--ft-typography-title-dense-text-transform",vt.textTransform,"inherit")},wt={fontFamily:nt.extend("--ft-typography-subtitle1-font-family",mt),fontSize:nt.extend("--ft-typography-subtitle1-font-size",vt.fontSize,"16px"),fontWeight:nt.extend("--ft-typography-subtitle1-font-weight",vt.fontWeight,"600"),letterSpacing:nt.extend("--ft-typography-subtitle1-letter-spacing",vt.letterSpacing,"0.144px"),lineHeight:nt.extend("--ft-typography-subtitle1-line-height",vt.lineHeight,"1.5"),textTransform:nt.extend("--ft-typography-subtitle1-text-transform",vt.textTransform,"inherit")},Ot={fontFamily:nt.extend("--ft-typography-subtitle2-font-family",mt),fontSize:nt.extend("--ft-typography-subtitle2-font-size",vt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-subtitle2-font-weight",vt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-subtitle2-letter-spacing",vt.letterSpacing,"0.098px"),lineHeight:nt.extend("--ft-typography-subtitle2-line-height",vt.lineHeight,"1.7"),textTransform:nt.extend("--ft-typography-subtitle2-text-transform",vt.textTransform,"inherit")},$t={fontFamily:nt.extend("--ft-typography-body1-font-family",mt),fontSize:nt.extend("--ft-typography-body1-font-size",vt.fontSize,"16px"),fontWeight:nt.extend("--ft-typography-body1-font-weight",vt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-body1-letter-spacing",vt.letterSpacing,"0.496px"),lineHeight:nt.extend("--ft-typography-body1-line-height",vt.lineHeight,"1.5"),textTransform:nt.extend("--ft-typography-body1-text-transform",vt.textTransform,"inherit")},St={fontFamily:nt.extend("--ft-typography-body2-font-family",mt),fontSize:nt.extend("--ft-typography-body2-font-size",vt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-body2-font-weight",vt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-body2-letter-spacing",vt.letterSpacing,"0.252px"),lineHeight:nt.extend("--ft-typography-body2-line-height",vt.lineHeight,"1.4"),textTransform:nt.extend("--ft-typography-body2-text-transform",vt.textTransform,"inherit")},Nt={fontFamily:nt.extend("--ft-typography-caption-font-family",mt),fontSize:nt.extend("--ft-typography-caption-font-size",vt.fontSize,"12px"),fontWeight:nt.extend("--ft-typography-caption-font-weight",vt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-caption-letter-spacing",vt.letterSpacing,"0.396px"),lineHeight:nt.extend("--ft-typography-caption-line-height",vt.lineHeight,"1.33"),textTransform:nt.extend("--ft-typography-caption-text-transform",vt.textTransform,"inherit")},Et={fontFamily:nt.extend("--ft-typography-breadcrumb-font-family",mt),fontSize:nt.extend("--ft-typography-breadcrumb-font-size",vt.fontSize,"10px"),fontWeight:nt.extend("--ft-typography-breadcrumb-font-weight",vt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-breadcrumb-letter-spacing",vt.letterSpacing,"0.33px"),lineHeight:nt.extend("--ft-typography-breadcrumb-line-height",vt.lineHeight,"1.6"),textTransform:nt.extend("--ft-typography-breadcrumb-text-transform",vt.textTransform,"inherit")},Rt={fontFamily:nt.extend("--ft-typography-overline-font-family",mt),fontSize:nt.extend("--ft-typography-overline-font-size",vt.fontSize,"10px"),fontWeight:nt.extend("--ft-typography-overline-font-weight",vt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-overline-letter-spacing",vt.letterSpacing,"1.5px"),lineHeight:nt.extend("--ft-typography-overline-line-height",vt.lineHeight,"1.6"),textTransform:nt.extend("--ft-typography-overline-text-transform",vt.textTransform,"uppercase")},Ct={fontFamily:nt.extend("--ft-typography-button-font-family",mt),fontSize:nt.extend("--ft-typography-button-font-size",vt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-button-font-weight",vt.fontWeight,"600"),letterSpacing:nt.extend("--ft-typography-button-letter-spacing",vt.letterSpacing,"1.246px"),lineHeight:nt.extend("--ft-typography-button-line-height",vt.lineHeight,"1.15"),textTransform:nt.extend("--ft-typography-button-text-transform",vt.textTransform,"uppercase")},Mt=h`
.ft-typography--title {

@@ -107,3 +119,3 @@ font-family: ${bt.fontFamily};

}
`,Tt=h`
`,kt=h`
.ft-typography--subtitle2 {

@@ -118,3 +130,3 @@ font-family: ${Ot.fontFamily};

`,kt=h`
`,zt=h`
.ft-typography--body1 {

@@ -128,3 +140,3 @@ font-family: ${$t.fontFamily};

}
`,zt=h`
`,Tt=h`
.ft-typography--body2 {

@@ -185,2 +197,2 @@ font-family: ${St.fontFamily};

<slot class="ft-typography ft-typography--${this.variant}"></slot>
`}}_t.styles=[Mt,Ft,Ut,Tt,kt,zt,Lt,At,Pt,Wt,Ht],Bt([i()],_t.prototype,"element",void 0),Bt([i()],_t.prototype,"variant",void 0),(jt="ft-typography",t=>{window.customElements.get(jt)||window.customElements.define(jt,t)})(_t),t.FtTypography=_t,t.FtTypographyBody1=kt,t.FtTypographyBody1CssVariables=$t,t.FtTypographyBody2=zt,t.FtTypographyBody2CssVariables=St,t.FtTypographyBreadcrumb=At,t.FtTypographyBreadcrumbCssVariables=Et,t.FtTypographyButton=Wt,t.FtTypographyButtonCssVariables=Ct,t.FtTypographyCaption=Lt,t.FtTypographyCaptionCssVariables=Nt,t.FtTypographyCssVariables=mt,t.FtTypographyOverline=Pt,t.FtTypographyOverlineCssVariables=Rt,t.FtTypographyStyles=Ht,t.FtTypographySubtitle1=Ut,t.FtTypographySubtitle1CssVariables=wt,t.FtTypographySubtitle2=Tt,t.FtTypographySubtitle2CssVariables=Ot,t.FtTypographyTitle=Mt,t.FtTypographyTitleCssVariables=bt,t.FtTypographyTitleDense=Ft,t.FtTypographyTitleDenseCssVariables=xt,Object.defineProperty(t,"i",{value:!0})}({});
`}}_t.styles=[Mt,Ft,Ut,kt,zt,Tt,Lt,At,Pt,Wt,Ht],Bt([i()],_t.prototype,"element",void 0),Bt([i()],_t.prototype,"variant",void 0),(jt="ft-typography",t=>{window.customElements.get(jt)||window.customElements.define(jt,t)})(_t),t.FtTypography=_t,t.FtTypographyBody1=zt,t.FtTypographyBody1CssVariables=$t,t.FtTypographyBody2=Tt,t.FtTypographyBody2CssVariables=St,t.FtTypographyBreadcrumb=At,t.FtTypographyBreadcrumbCssVariables=Et,t.FtTypographyButton=Wt,t.FtTypographyButtonCssVariables=Ct,t.FtTypographyCaption=Lt,t.FtTypographyCaptionCssVariables=Nt,t.FtTypographyCssVariables=vt,t.FtTypographyOverline=Pt,t.FtTypographyOverlineCssVariables=Rt,t.FtTypographyStyles=Ht,t.FtTypographySubtitle1=Ut,t.FtTypographySubtitle1CssVariables=wt,t.FtTypographySubtitle2=kt,t.FtTypographySubtitle2CssVariables=Ot,t.FtTypographyTitle=Mt,t.FtTypographyTitleCssVariables=bt,t.FtTypographyTitleDense=Ft,t.FtTypographyTitleDenseCssVariables=xt,Object.defineProperty(t,"i",{value:!0})}({});
{
"name": "@fluid-topics/ft-typography",
"version": "0.3.15",
"version": "0.3.16",
"description": "Typography components",

@@ -22,6 +22,6 @@ "keywords": [

"dependencies": {
"@fluid-topics/ft-wc-utils": "0.3.15",
"@fluid-topics/ft-wc-utils": "0.3.16",
"lit": "2.2.8"
},
"gitHead": "067add51b15dae11774878d4fcee1dfc734d00fa"
"gitHead": "0d05a101f09cb5819ee10930772a873e7e0cc87b"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc