@fluid-topics/ft-snap-scroll 0.2.17 → 0.2.18

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