@decidables/decidables-elements 0.3.3 → 0.3.5

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.
@@ -3,7 +3,7 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),i=new WeakMap;const r=t=>new class{constructor(t,e,i){if(this._$cssResult$=!0,i!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const n=this.t;if(e&&void 0===t){const e=void 0!==n&&1===n.length;e&&(t=i.get(n)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(n,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,n),s=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return r(e)})(t):t
6
+ const t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),i=new WeakMap;let r=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const n=this.t;if(e&&void 0===t){const e=void 0!==n&&1===n.length;e&&(t=i.get(n)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(n,t))}return t}toString(){return this.cssText}};const s=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new r("string"==typeof t?t:t+"",void 0,n))(e)})(t):t
7
7
  /**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
@@ -14,30 +14,30 @@ const t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- var b;f.finalized=!0,f.elementProperties=new Map,f.elementStyles=[],f.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:f}),(null!==(o=a.reactiveElementVersions)&&void 0!==o?o:a.reactiveElementVersions=[]).push("1.5.0");const v=window,y=v.trustedTypes,m=y?y.createPolicy("lit-html",{createHTML:t=>t}):void 0,g=`lit$${(Math.random()+"").slice(9)}$`,_="?"+g,w=`<${_}>`,$=document,x=(t="")=>$.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,C=/>/g,N=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),R=/'/g,P=/"/g,U=/^(?:script|style|textarea|title)$/i,M=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),H=new WeakMap,T=$.createTreeWalker($,129,null,!1);let B=class{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const o=t.length-1,a=this.parts,[l,h]=((t,e)=>{const n=t.length-1,i=[];let r,s=2===e?"<svg>":"",o=k;for(let e=0;e<n;e++){const n=t[e];let a,l,h=-1,u=0;for(;u<n.length&&(o.lastIndex=u,l=o.exec(n),null!==l);)u=o.lastIndex,o===k?"!--"===l[1]?o=S:void 0!==l[1]?o=C:void 0!==l[2]?(U.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=N):void 0!==l[3]&&(o=N):o===N?">"===l[0]?(o=null!=r?r:k,h=-1):void 0===l[1]?h=-2:(h=o.lastIndex-l[2].length,a=l[1],o=void 0===l[3]?N:'"'===l[3]?P:R):o===P||o===R?o=N:o===S||o===C?o=k:(o=N,r=void 0);const c=o===N&&t[e+1].startsWith("/>")?" ":"";s+=o===k?n+w:h>=0?(i.push(a),n.slice(0,h)+"$lit$"+n.slice(h)+g+c):n+g+(-2===h?(i.push(void 0),e):c)}const a=s+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(a):a,i]})(t,e);if(this.el=B.createElement(l,n),T.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=T.nextNode())&&a.length<o;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(g)){const n=h[s++];if(t.push(e),void 0!==n){const t=i.getAttribute(n.toLowerCase()+"$lit$").split(g),e=/([.?@])?(.*)/.exec(n);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?I:"?"===e[1]?q:"@"===e[1]?V:j})}else a.push({type:6,index:r})}for(const e of t)i.removeAttribute(e)}if(U.test(i.tagName)){const t=i.textContent.split(g),e=t.length-1;if(e>0){i.textContent=y?y.emptyScript:"";for(let n=0;n<e;n++)i.append(t[n],x()),T.nextNode(),a.push({type:2,index:++r});i.append(t[e],x())}}}else if(8===i.nodeType)if(i.data===_)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(g,t+1));)a.push({type:7,index:r}),t+=g.length-1}r++}}static createElement(t,e){const n=$.createElement("template");return n.innerHTML=t,n}};function z(t,e,n=t,i){var r,s,o,a;if(e===M)return e;let l=void 0!==i?null===(r=n._$Co)||void 0===r?void 0:r[i]:n._$Cl;const h=A(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,n,i)),void 0!==i?(null!==(o=(a=n)._$Co)&&void 0!==o?o:a._$Co=[])[i]=l:n._$Cl=l),void 0!==l&&(e=z(t,l._$AS(t,e.values),l,i)),e}let L=class{constructor(t,e,n,i){var r;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cm=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=z(this,t,e),A(t)?t===O||null==t||""===t?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==M&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>E(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==O&&A(this._$AH)?this._$AA.nextSibling.data=t:this.T($.createTextNode(t)),this._$AH=t}$(t){var e;const{values:n,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=B.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.p(n);else{const t=new class{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:n},parts:i}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:$).importNode(n,!0);T.currentNode=r;let s=T.nextNode(),o=0,a=0,l=i[0];for(;void 0!==l;){if(o===l.index){let e;2===l.type?e=new L(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new X(s,this,t)),this.u.push(e),l=i[++a]}o!==(null==l?void 0:l.index)&&(s=T.nextNode(),o++)}return r}p(t){let e=0;for(const n of this.u)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}(r,this),e=t.v(this.options);t.p(n),this.T(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new B(t)),e}k(t){E(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new L(this.O(x()),this.O(x()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},j=class{constructor(t,e,n,i,r){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,i){const r=this.strings;let s=!1;if(void 0===r)t=z(this,t,e,0),s=!A(t)||t!==this._$AH&&t!==M,s&&(this._$AH=t);else{const i=t;let o,a;for(t=r[0],o=0;o<r.length-1;o++)a=z(this,i[n+o],e,o),a===M&&(a=this._$AH[o]),s||(s=!A(a)||a!==this._$AH[o]),a===O?t=O:t!==O&&(t+=(null!=a?a:"")+r[o+1]),this._$AH[o]=a}s&&!i&&this.j(t)}j(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},I=class extends j{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===O?void 0:t}};const D=y?y.emptyScript:"";let q=class extends j{constructor(){super(...arguments),this.type=4}j(t){t&&t!==O?this.element.setAttribute(this.name,D):this.element.removeAttribute(this.name)}},V=class extends j{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=z(this,t,e,0))&&void 0!==n?n:O)===M)return;const i=this._$AH,r=t===O&&i!==O||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==O&&(i===O||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}},X=class{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){z(this,t)}};const F=v.litHtmlPolyfillSupport;null==F||F(B,L),(null!==(b=v.litHtmlVersions)&&void 0!==b?b:v.litHtmlVersions=[]).push("2.5.0");
17
+ var b;f.finalized=!0,f.elementProperties=new Map,f.elementStyles=[],f.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:f}),(null!==(o=a.reactiveElementVersions)&&void 0!==o?o:a.reactiveElementVersions=[]).push("1.6.1");const v=window,y=v.trustedTypes,m=y?y.createPolicy("lit-html",{createHTML:t=>t}):void 0,g="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,w="?"+_,$=`<${w}>`,x=document,A=()=>x.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,S="[ \t\n\f\r]",C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,R=/>/g,P=RegExp(`>|${S}(?:([^\\s"'>=/]+)(${S}*=${S}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),U=/'/g,M=/"/g,O=/^(?:script|style|textarea|title)$/i,H=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),B=new WeakMap,z=x.createTreeWalker(x,129,null,!1);function j(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==m?m.createHTML(e):e}let L=class t{constructor({strings:e,_$litType$:n},i){let r;this.parts=[];let s=0,o=0;const a=e.length-1,l=this.parts,[h,u]=((t,e)=>{const n=t.length-1,i=[];let r,s=2===e?"<svg>":"",o=C;for(let e=0;e<n;e++){const n=t[e];let a,l,h=-1,u=0;for(;u<n.length&&(o.lastIndex=u,l=o.exec(n),null!==l);)u=o.lastIndex,o===C?"!--"===l[1]?o=N:void 0!==l[1]?o=R:void 0!==l[2]?(O.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=P):void 0!==l[3]&&(o=P):o===P?">"===l[0]?(o=null!=r?r:C,h=-1):void 0===l[1]?h=-2:(h=o.lastIndex-l[2].length,a=l[1],o=void 0===l[3]?P:'"'===l[3]?M:U):o===M||o===U?o=P:o===N||o===R?o=C:(o=P,r=void 0);const c=o===P&&t[e+1].startsWith("/>")?" ":"";s+=o===C?n+$:h>=0?(i.push(a),n.slice(0,h)+g+n.slice(h)+_+c):n+_+(-2===h?(i.push(void 0),e):c)}return[j(t,s+(t[n]||"<?>")+(2===e?"</svg>":"")),i]})(e,n);if(this.el=t.createElement(h,i),z.currentNode=this.el.content,2===n){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=z.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(g)||e.startsWith(_)){const n=u[o++];if(t.push(e),void 0!==n){const t=r.getAttribute(n.toLowerCase()+g).split(_),e=/([.?@])?(.*)/.exec(n);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?X:"?"===e[1]?Y:"@"===e[1]?W:V})}else l.push({type:6,index:s})}for(const e of t)r.removeAttribute(e)}if(O.test(r.tagName)){const t=r.textContent.split(_),e=t.length-1;if(e>0){r.textContent=y?y.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],A()),z.nextNode(),l.push({type:2,index:++s});r.append(t[e],A())}}}else if(8===r.nodeType)if(r.data===w)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=r.data.indexOf(_,t+1));)l.push({type:7,index:s}),t+=_.length-1}s++}}static createElement(t,e){const n=x.createElement("template");return n.innerHTML=t,n}};function I(t,e,n=t,i){var r,s,o,a;if(e===H)return e;let l=void 0!==i?null===(r=n._$Co)||void 0===r?void 0:r[i]:n._$Cl;const h=E(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,n,i)),void 0!==i?(null!==(o=(a=n)._$Co)&&void 0!==o?o:a._$Co=[])[i]=l:n._$Cl=l),void 0!==l&&(e=I(t,l._$AS(t,e.values),l,i)),e}let D=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:n},parts:i}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(n,!0);z.currentNode=r;let s=z.nextNode(),o=0,a=0,l=i[0];for(;void 0!==l;){if(o===l.index){let e;2===l.type?e=new q(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new K(s,this,t)),this._$AV.push(e),l=i[++a]}o!==(null==l?void 0:l.index)&&(s=z.nextNode(),o++)}return z.currentNode=x,r}v(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}},q=class t{constructor(t,e,n,i){var r;this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=I(this,t,e),E(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==H&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==T&&E(this._$AH)?this._$AA.nextSibling.data=t:this.$(x.createTextNode(t)),this._$AH=t}g(t){var e;const{values:n,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=L.createElement(j(i.h,i.h[0]),this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(n);else{const t=new D(r,this),e=t.u(this.options);t.v(n),this.$(e),this._$AH=t}}_$AC(t){let e=B.get(t.strings);return void 0===e&&B.set(t.strings,e=new L(t)),e}T(e){k(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,r=0;for(const s of e)r===n.length?n.push(i=new t(this.k(A()),this.k(A()),this,this.options)):i=n[r],i._$AI(s),r++;r<n.length&&(this._$AR(i&&i._$AB.nextSibling,r),n.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},V=class{constructor(t,e,n,i,r){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=T}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,i){const r=this.strings;let s=!1;if(void 0===r)t=I(this,t,e,0),s=!E(t)||t!==this._$AH&&t!==H,s&&(this._$AH=t);else{const i=t;let o,a;for(t=r[0],o=0;o<r.length-1;o++)a=I(this,i[n+o],e,o),a===H&&(a=this._$AH[o]),s||(s=!E(a)||a!==this._$AH[o]),a===T?t=T:t!==T&&(t+=(null!=a?a:"")+r[o+1]),this._$AH[o]=a}s&&!i&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},X=class extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}};const F=y?y.emptyScript:"";let Y=class extends V{constructor(){super(...arguments),this.type=4}j(t){t&&t!==T?this.element.setAttribute(this.name,F):this.element.removeAttribute(this.name)}},W=class extends V{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=I(this,t,e,0))&&void 0!==n?n:T)===H)return;const i=this._$AH,r=t===T&&i!==T||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==T&&(i===T||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}};class K{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}}const G=v.litHtmlPolyfillSupport;null==G||G(L,q),(null!==(b=v.litHtmlVersions)&&void 0!==b?b:v.litHtmlVersions=[]).push("2.8.0");
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2019 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */
23
- const Y=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,W=Symbol(),K=new Map;let G=class{constructor(t,e){if(this._$cssResult$=!0,e!==W)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=K.get(this.cssText);return Y&&void 0===t&&(K.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}};const J=t=>new G("string"==typeof t?t:t+"",W),Z=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1]),t[0]);return new G(n,W)},Q=Y?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return J(e)})(t):t
23
+ const J=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Z=Symbol(),Q=new Map;let tt=class{constructor(t,e){if(this._$cssResult$=!0,e!==Z)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=Q.get(this.cssText);return J&&void 0===t&&(Q.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}};const et=t=>new tt("string"==typeof t?t:t+"",Z),nt=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1]),t[0]);return new tt(n,Z)},it=J?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return et(e)})(t):t
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
- */;var tt;const et=window.trustedTypes,nt=et?et.emptyScript:"",it=window.reactiveElementPolyfillSupport,rt={toAttribute(t,e){switch(e){case Boolean:t=t?nt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},st=(t,e)=>e!==t&&(e==e||t==t),ot={attribute:!0,type:String,converter:rt,reflect:!1,hasChanged:st};let at=class extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const i=this._$Eh(n,e);void 0!==i&&(this._$Eu.set(i,n),t.push(i))})),t}static createProperty(t,e=ot){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,n,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(i){const r=this[t];this[e]=i,this.requestUpdate(t,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||ot}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,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(Q(t))}else void 0!==t&&e.push(Q(t));return e}static _$Eh(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"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 e,n;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{Y?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),i=window.litNonce;void 0!==i&&n.setAttribute("nonce",i),n.textContent=e.cssText,t.appendChild(n)}))})(e,this.constructor.elementStyles),e}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 e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ES(t,e,n=ot){var i,r;const s=this.constructor._$Eh(t,n);if(void 0!==s&&!0===n.reflect){const o=(null!==(r=null===(i=n.converter)||void 0===i?void 0:i.toAttribute)&&void 0!==r?r:rt.toAttribute)(e,n.type);this._$Ei=t,null==o?this.removeAttribute(s):this.setAttribute(s,o),this._$Ei=null}}_$AK(t,e){var n,i,r;const s=this.constructor,o=s._$Eu.get(t);if(void 0!==o&&this._$Ei!==o){const t=s.getPropertyOptions(o),a=t.converter,l=null!==(r=null!==(i=null===(n=a)||void 0===n?void 0:n.fromAttribute)&&void 0!==i?i:"function"==typeof a?a:null)&&void 0!==r?r:rt.fromAttribute;this._$Ei=o,this[o]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,n){let i=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||st)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):i=!1),!this.isUpdatePending&&i&&(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,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$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,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}};
28
+ */;var rt;const st=window.trustedTypes,ot=st?st.emptyScript:"",at=window.reactiveElementPolyfillSupport,lt={toAttribute(t,e){switch(e){case Boolean:t=t?ot:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},ht=(t,e)=>e!==t&&(e==e||t==t),ut={attribute:!0,type:String,converter:lt,reflect:!1,hasChanged:ht};let ct=class extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const i=this._$Eh(n,e);void 0!==i&&(this._$Eu.set(i,n),t.push(i))})),t}static createProperty(t,e=ut){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,n,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(i){const r=this[t];this[e]=i,this.requestUpdate(t,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||ut}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,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(it(t))}else void 0!==t&&e.push(it(t));return e}static _$Eh(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"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 e,n;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{J?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),i=window.litNonce;void 0!==i&&n.setAttribute("nonce",i),n.textContent=e.cssText,t.appendChild(n)}))})(e,this.constructor.elementStyles),e}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 e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ES(t,e,n=ut){var i,r;const s=this.constructor._$Eh(t,n);if(void 0!==s&&!0===n.reflect){const o=(null!==(r=null===(i=n.converter)||void 0===i?void 0:i.toAttribute)&&void 0!==r?r:lt.toAttribute)(e,n.type);this._$Ei=t,null==o?this.removeAttribute(s):this.setAttribute(s,o),this._$Ei=null}}_$AK(t,e){var n,i,r;const s=this.constructor,o=s._$Eu.get(t);if(void 0!==o&&this._$Ei!==o){const t=s.getPropertyOptions(o),a=t.converter,l=null!==(r=null!==(i=null===(n=a)||void 0===n?void 0:n.fromAttribute)&&void 0!==i?i:"function"==typeof a?a:null)&&void 0!==r?r:lt.fromAttribute;this._$Ei=o,this[o]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,n){let i=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||ht)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):i=!1),!this.isUpdatePending&&i&&(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,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$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,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}};
29
29
  /**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
33
  */
34
- var lt;at.finalized=!0,at.elementProperties=new Map,at.elementStyles=[],at.shadowRootOptions={mode:"open"},null==it||it({ReactiveElement:at}),(null!==(tt=globalThis.reactiveElementVersions)&&void 0!==tt?tt:globalThis.reactiveElementVersions=[]).push("1.3.1");const ht=globalThis.trustedTypes,ut=ht?ht.createPolicy("lit-html",{createHTML:t=>t}):void 0,ct=`lit$${(Math.random()+"").slice(9)}$`,dt="?"+ct,pt=`<${dt}>`,ft=document,bt=(t="")=>ft.createComment(t),vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,yt=Array.isArray,mt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gt=/-->/g,_t=/>/g,wt=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,$t=/'/g,xt=/"/g,At=/^(?:script|style|textarea|title)$/i,Et=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),kt=Et(1),St=Et(2),Ct=Symbol.for("lit-noChange"),Nt=Symbol.for("lit-nothing"),Rt=new WeakMap,Pt=ft.createTreeWalker(ft,129,null,!1),Ut=(t,e)=>{const n=t.length-1,i=[];let r,s=2===e?"<svg>":"",o=mt;for(let e=0;e<n;e++){const n=t[e];let a,l,h=-1,u=0;for(;u<n.length&&(o.lastIndex=u,l=o.exec(n),null!==l);)u=o.lastIndex,o===mt?"!--"===l[1]?o=gt:void 0!==l[1]?o=_t:void 0!==l[2]?(At.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=wt):void 0!==l[3]&&(o=wt):o===wt?">"===l[0]?(o=null!=r?r:mt,h=-1):void 0===l[1]?h=-2:(h=o.lastIndex-l[2].length,a=l[1],o=void 0===l[3]?wt:'"'===l[3]?xt:$t):o===xt||o===$t?o=wt:o===gt||o===_t?o=mt:(o=wt,r=void 0);const c=o===wt&&t[e+1].startsWith("/>")?" ":"";s+=o===mt?n+pt:h>=0?(i.push(a),n.slice(0,h)+"$lit$"+n.slice(h)+ct+c):n+ct+(-2===h?(i.push(void 0),e):c)}const a=s+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==ut?ut.createHTML(a):a,i]};class Mt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const o=t.length-1,a=this.parts,[l,h]=Ut(t,e);if(this.el=Mt.createElement(l,n),Pt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=Pt.nextNode())&&a.length<o;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(ct)){const n=h[s++];if(t.push(e),void 0!==n){const t=i.getAttribute(n.toLowerCase()+"$lit$").split(ct),e=/([.?@])?(.*)/.exec(n);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?zt:"?"===e[1]?jt:"@"===e[1]?It:Bt})}else a.push({type:6,index:r})}for(const e of t)i.removeAttribute(e)}if(At.test(i.tagName)){const t=i.textContent.split(ct),e=t.length-1;if(e>0){i.textContent=ht?ht.emptyScript:"";for(let n=0;n<e;n++)i.append(t[n],bt()),Pt.nextNode(),a.push({type:2,index:++r});i.append(t[e],bt())}}}else if(8===i.nodeType)if(i.data===dt)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(ct,t+1));)a.push({type:7,index:r}),t+=ct.length-1}r++}}static createElement(t,e){const n=ft.createElement("template");return n.innerHTML=t,n}}function Ot(t,e,n=t,i){var r,s,o,a;if(e===Ct)return e;let l=void 0!==i?null===(r=n._$Cl)||void 0===r?void 0:r[i]:n._$Cu;const h=vt(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,n,i)),void 0!==i?(null!==(o=(a=n)._$Cl)&&void 0!==o?o:a._$Cl=[])[i]=l:n._$Cu=l),void 0!==l&&(e=Ot(t,l._$AS(t,e.values),l,i)),e}class Ht{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:n},parts:i}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:ft).importNode(n,!0);Pt.currentNode=r;let s=Pt.nextNode(),o=0,a=0,l=i[0];for(;void 0!==l;){if(o===l.index){let e;2===l.type?e=new Tt(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new Dt(s,this,t)),this.v.push(e),l=i[++a]}o!==(null==l?void 0:l.index)&&(s=Pt.nextNode(),o++)}return r}m(t){let e=0;for(const n of this.v)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class Tt{constructor(t,e,n,i){var r;this.type=2,this._$AH=Nt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cg=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Ot(this,t,e),vt(t)?t===Nt||null==t||""===t?(this._$AH!==Nt&&this._$AR(),this._$AH=Nt):t!==this._$AH&&t!==Ct&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return yt(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}A(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.A(t))}$(t){this._$AH!==Nt&&vt(this._$AH)?this._$AA.nextSibling.data=t:this.k(ft.createTextNode(t)),this._$AH=t}T(t){var e;const{values:n,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=Mt.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(n);else{const t=new Ht(r,this),e=t.p(this.options);t.m(n),this.k(e),this._$AH=t}}_$AC(t){let e=Rt.get(t.strings);return void 0===e&&Rt.set(t.strings,e=new Mt(t)),e}S(t){yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new Tt(this.A(bt()),this.A(bt()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Bt{constructor(t,e,n,i,r){this.type=1,this._$AH=Nt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Nt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,i){const r=this.strings;let s=!1;if(void 0===r)t=Ot(this,t,e,0),s=!vt(t)||t!==this._$AH&&t!==Ct,s&&(this._$AH=t);else{const i=t;let o,a;for(t=r[0],o=0;o<r.length-1;o++)a=Ot(this,i[n+o],e,o),a===Ct&&(a=this._$AH[o]),s||(s=!vt(a)||a!==this._$AH[o]),a===Nt?t=Nt:t!==Nt&&(t+=(null!=a?a:"")+r[o+1]),this._$AH[o]=a}s&&!i&&this.C(t)}C(t){t===Nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class zt extends Bt{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===Nt?void 0:t}}const Lt=ht?ht.emptyScript:"";class jt extends Bt{constructor(){super(...arguments),this.type=4}C(t){t&&t!==Nt?this.element.setAttribute(this.name,Lt):this.element.removeAttribute(this.name)}}class It extends Bt{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=Ot(this,t,e,0))&&void 0!==n?n:Nt)===Ct)return;const i=this._$AH,r=t===Nt&&i!==Nt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==Nt&&(i===Nt||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class Dt{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ot(this,t)}}const qt=window.litHtmlPolyfillSupport;
34
+ var dt;ct.finalized=!0,ct.elementProperties=new Map,ct.elementStyles=[],ct.shadowRootOptions={mode:"open"},null==at||at({ReactiveElement:ct}),(null!==(rt=globalThis.reactiveElementVersions)&&void 0!==rt?rt:globalThis.reactiveElementVersions=[]).push("1.3.1");const pt=window,ft=pt.trustedTypes,bt=ft?ft.createPolicy("lit-html",{createHTML:t=>t}):void 0,vt="$lit$",yt=`lit$${(Math.random()+"").slice(9)}$`,mt="?"+yt,gt=`<${mt}>`,_t=document,wt=()=>_t.createComment(""),$t=t=>null===t||"object"!=typeof t&&"function"!=typeof t,xt=Array.isArray,At="[ \t\n\f\r]",Et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kt=/-->/g,St=/>/g,Ct=RegExp(`>|${At}(?:([^\\s"'>=/]+)(${At}*=${At}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Nt=/'/g,Rt=/"/g,Pt=/^(?:script|style|textarea|title)$/i,Ut=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),Mt=Ut(1),Ot=Ut(2),Ht=Symbol.for("lit-noChange"),Tt=Symbol.for("lit-nothing"),Bt=new WeakMap,zt=_t.createTreeWalker(_t,129,null,!1),jt=(t,e)=>{const n=t.length-1,i=[];let r,s=2===e?"<svg>":"",o=Et;for(let e=0;e<n;e++){const n=t[e];let a,l,h=-1,u=0;for(;u<n.length&&(o.lastIndex=u,l=o.exec(n),null!==l);)u=o.lastIndex,o===Et?"!--"===l[1]?o=kt:void 0!==l[1]?o=St:void 0!==l[2]?(Pt.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=Ct):void 0!==l[3]&&(o=Ct):o===Ct?">"===l[0]?(o=null!=r?r:Et,h=-1):void 0===l[1]?h=-2:(h=o.lastIndex-l[2].length,a=l[1],o=void 0===l[3]?Ct:'"'===l[3]?Rt:Nt):o===Rt||o===Nt?o=Ct:o===kt||o===St?o=Et:(o=Ct,r=void 0);const c=o===Ct&&t[e+1].startsWith("/>")?" ":"";s+=o===Et?n+gt:h>=0?(i.push(a),n.slice(0,h)+vt+n.slice(h)+yt+c):n+yt+(-2===h?(i.push(void 0),e):c)}const a=s+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==bt?bt.createHTML(a):a,i]};class Lt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const o=t.length-1,a=this.parts,[l,h]=jt(t,e);if(this.el=Lt.createElement(l,n),zt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=zt.nextNode())&&a.length<o;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith(vt)||e.startsWith(yt)){const n=h[s++];if(t.push(e),void 0!==n){const t=i.getAttribute(n.toLowerCase()+vt).split(yt),e=/([.?@])?(.*)/.exec(n);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?Xt:"?"===e[1]?Yt:"@"===e[1]?Wt:Vt})}else a.push({type:6,index:r})}for(const e of t)i.removeAttribute(e)}if(Pt.test(i.tagName)){const t=i.textContent.split(yt),e=t.length-1;if(e>0){i.textContent=ft?ft.emptyScript:"";for(let n=0;n<e;n++)i.append(t[n],wt()),zt.nextNode(),a.push({type:2,index:++r});i.append(t[e],wt())}}}else if(8===i.nodeType)if(i.data===mt)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(yt,t+1));)a.push({type:7,index:r}),t+=yt.length-1}r++}}static createElement(t,e){const n=_t.createElement("template");return n.innerHTML=t,n}}function It(t,e,n=t,i){var r,s,o,a;if(e===Ht)return e;let l=void 0!==i?null===(r=n._$Co)||void 0===r?void 0:r[i]:n._$Cl;const h=$t(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,n,i)),void 0!==i?(null!==(o=(a=n)._$Co)&&void 0!==o?o:a._$Co=[])[i]=l:n._$Cl=l),void 0!==l&&(e=It(t,l._$AS(t,e.values),l,i)),e}class Dt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:n},parts:i}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:_t).importNode(n,!0);zt.currentNode=r;let s=zt.nextNode(),o=0,a=0,l=i[0];for(;void 0!==l;){if(o===l.index){let e;2===l.type?e=new qt(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new Kt(s,this,t)),this.u.push(e),l=i[++a]}o!==(null==l?void 0:l.index)&&(s=zt.nextNode(),o++)}return r}p(t){let e=0;for(const n of this.u)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class qt{constructor(t,e,n,i){var r;this.type=2,this._$AH=Tt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cm=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=It(this,t,e),$t(t)?t===Tt||null==t||""===t?(this._$AH!==Tt&&this._$AR(),this._$AH=Tt):t!==this._$AH&&t!==Ht&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>xt(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}g(t){this._$AH!==Tt&&$t(this._$AH)?this._$AA.nextSibling.data=t:this.T(_t.createTextNode(t)),this._$AH=t}$(t){var e;const{values:n,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=Lt.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.p(n);else{const t=new Dt(r,this),e=t.v(this.options);t.p(n),this.T(e),this._$AH=t}}_$AC(t){let e=Bt.get(t.strings);return void 0===e&&Bt.set(t.strings,e=new Lt(t)),e}k(t){xt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new qt(this.S(wt()),this.S(wt()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Vt{constructor(t,e,n,i,r){this.type=1,this._$AH=Tt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Tt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,i){const r=this.strings;let s=!1;if(void 0===r)t=It(this,t,e,0),s=!$t(t)||t!==this._$AH&&t!==Ht,s&&(this._$AH=t);else{const i=t;let o,a;for(t=r[0],o=0;o<r.length-1;o++)a=It(this,i[n+o],e,o),a===Ht&&(a=this._$AH[o]),s||(s=!$t(a)||a!==this._$AH[o]),a===Tt?t=Tt:t!==Tt&&(t+=(null!=a?a:"")+r[o+1]),this._$AH[o]=a}s&&!i&&this.j(t)}j(t){t===Tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Xt extends Vt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Tt?void 0:t}}const Ft=ft?ft.emptyScript:"";class Yt extends Vt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Tt?this.element.setAttribute(this.name,Ft):this.element.removeAttribute(this.name)}}class Wt extends Vt{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=It(this,t,e,0))&&void 0!==n?n:Tt)===Ht)return;const i=this._$AH,r=t===Tt&&i!==Tt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==Tt&&(i===Tt||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class Kt{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){It(this,t)}}const Gt=pt.litHtmlPolyfillSupport;null==Gt||Gt(Lt,qt),(null!==(dt=pt.litHtmlVersions)&&void 0!==dt?dt:pt.litHtmlVersions=[]).push("2.7.0");
35
35
  /**
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
39
  */
40
- var Vt,Xt;null==qt||qt(Mt,Tt),(null!==(lt=globalThis.litHtmlVersions)&&void 0!==lt?lt:globalThis.litHtmlVersions=[]).push("2.2.1");class Ft extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,n)=>{var i,r;const s=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:e;let o=s._$litPart$;if(void 0===o){const t=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:null;s._$litPart$=o=new Tt(e.insertBefore(bt(),t),t,void 0,null!=n?n:{})}return o._$AI(t),o})(e,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 Ct}}Ft.finalized=!0,Ft._$litElement$=!0,null===(Vt=globalThis.litElementHydrateSupport)||void 0===Vt||Vt.call(globalThis,{LitElement:Ft});const Yt=globalThis.litElementPolyfillSupport;null==Yt||Yt({LitElement:Ft}),(null!==(Xt=globalThis.litElementVersions)&&void 0!==Xt?Xt:globalThis.litElementVersions=[]).push("3.2.0");var Wt={value:()=>{}};function Kt(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new Gt(i)}function Gt(t){this._=t}function Jt(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Zt(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function Qt(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=Wt,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}Gt.prototype=Kt.prototype={constructor:Gt,on:function(t,e){var n,i=this._,r=Jt(t+"",i),s=-1,o=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<o;)if(n=(t=r[s]).type)i[n]=Qt(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Qt(i[n],t.name,null);return this}for(;++s<o;)if((n=(t=r[s]).type)&&(n=Zt(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Gt(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),s=0;s<n;++s)r[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=0,n=(i=this._[t]).length;s<n;++s)i[s].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,s=i.length;r<s;++r)i[r].value.apply(e,n)}};var te="http://www.w3.org/1999/xhtml",ee={svg:"http://www.w3.org/2000/svg",xhtml:te,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ne(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ee.hasOwnProperty(e)?{space:ee[e],local:t}:t}function ie(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===te&&e.documentElement.namespaceURI===te?e.createElement(t):e.createElementNS(n,t)}}function re(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function se(t){var e=ne(t);return(e.local?re:ie)(e)}function oe(){}function ae(t){return null==t?oe:function(){return this.querySelector(t)}}function le(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function he(){return[]}function ue(t){return null==t?he:function(){return this.querySelectorAll(t)}}function ce(t){return function(){return this.matches(t)}}function de(t){return function(e){return e.matches(t)}}var pe=Array.prototype.find;function fe(){return this.firstElementChild}var be=Array.prototype.filter;function ve(){return Array.from(this.children)}function ye(t){return new Array(t.length)}function me(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ge(t){return function(){return t}}function _e(t,e,n,i,r,s){for(var o,a=0,l=e.length,h=s.length;a<h;++a)(o=e[a])?(o.__data__=s[a],i[a]=o):n[a]=new me(t,s[a]);for(;a<l;++a)(o=e[a])&&(r[a]=o)}function we(t,e,n,i,r,s,o){var a,l,h,u=new Map,c=e.length,d=s.length,p=new Array(c);for(a=0;a<c;++a)(l=e[a])&&(p[a]=h=o.call(l,l.__data__,a,e)+"",u.has(h)?r[a]=l:u.set(h,l));for(a=0;a<d;++a)h=o.call(t,s[a],a,s)+"",(l=u.get(h))?(i[a]=l,l.__data__=s[a],u.delete(h)):n[a]=new me(t,s[a]);for(a=0;a<c;++a)(l=e[a])&&u.get(p[a])===l&&(r[a]=l)}function $e(t){return t.__data__}function xe(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Ae(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Ee(t){return function(){this.removeAttribute(t)}}function ke(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Se(t,e){return function(){this.setAttribute(t,e)}}function Ce(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ne(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Re(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Pe(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ue(t){return function(){this.style.removeProperty(t)}}function Me(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Oe(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function He(t,e){return t.style.getPropertyValue(e)||Pe(t).getComputedStyle(t,null).getPropertyValue(e)}function Te(t){return function(){delete this[t]}}function Be(t,e){return function(){this[t]=e}}function ze(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Le(t){return t.trim().split(/^|\s+/)}function je(t){return t.classList||new Ie(t)}function Ie(t){this._node=t,this._names=Le(t.getAttribute("class")||"")}function De(t,e){for(var n=je(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function qe(t,e){for(var n=je(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Ve(t){return function(){De(this,t)}}function Xe(t){return function(){qe(this,t)}}function Fe(t,e){return function(){(e.apply(this,arguments)?De:qe)(this,t)}}function Ye(){this.textContent=""}function We(t){return function(){this.textContent=t}}function Ke(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Ge(){this.innerHTML=""}function Je(t){return function(){this.innerHTML=t}}function Ze(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Qe(){this.nextSibling&&this.parentNode.appendChild(this)}function tn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function en(){return null}function nn(){var t=this.parentNode;t&&t.removeChild(this)}function rn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function sn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function on(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function an(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,s=e.length;i<s;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function ln(t,e,n){return function(){var i,r=this.__on,s=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var o=0,a=r.length;o<a;++o)if((i=r[o]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),void(i.value=e);this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},r?r.push(i):this.__on=[i]}}function hn(t,e,n){var i=Pe(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function un(t,e){return function(){return hn(this,t,e)}}function cn(t,e){return function(){return hn(this,t,e.apply(this,arguments))}}me.prototype={constructor:me,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},Ie.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var dn=[null];function pn(t,e){this._groups=t,this._parents=e}function fn(){return new pn([[document.documentElement]],dn)}function bn(t){return"string"==typeof t?new pn([[document.querySelector(t)]],[document.documentElement]):new pn([[t]],dn)}function vn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function yn(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function mn(){}pn.prototype=fn.prototype={constructor:pn,select:function(t){"function"!=typeof t&&(t=ae(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o,a=e[r],l=a.length,h=i[r]=new Array(l),u=0;u<l;++u)(s=a[u])&&(o=t.call(s,s.__data__,u,a))&&("__data__"in s&&(o.__data__=s.__data__),h[u]=o);return new pn(i,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return le(t.apply(this,arguments))}}(t):ue(t);for(var e=this._groups,n=e.length,i=[],r=[],s=0;s<n;++s)for(var o,a=e[s],l=a.length,h=0;h<l;++h)(o=a[h])&&(i.push(t.call(o,o.__data__,h,a)),r.push(o));return new pn(i,r)},selectChild:function(t){return this.select(null==t?fe:function(t){return function(){return pe.call(this.children,t)}}("function"==typeof t?t:de(t)))},selectChildren:function(t){return this.selectAll(null==t?ve:function(t){return function(){return be.call(this.children,t)}}("function"==typeof t?t:de(t)))},filter:function(t){"function"!=typeof t&&(t=ce(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o=e[r],a=o.length,l=i[r]=[],h=0;h<a;++h)(s=o[h])&&t.call(s,s.__data__,h,o)&&l.push(s);return new pn(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,$e);var n=e?we:_e,i=this._parents,r=this._groups;"function"!=typeof t&&(t=ge(t));for(var s=r.length,o=new Array(s),a=new Array(s),l=new Array(s),h=0;h<s;++h){var u=i[h],c=r[h],d=c.length,p=xe(t.call(u,u&&u.__data__,h,i)),f=p.length,b=a[h]=new Array(f),v=o[h]=new Array(f),y=l[h]=new Array(d);n(u,c,b,v,y,p,e);for(var m,g,_=0,w=0;_<f;++_)if(m=b[_]){for(_>=w&&(w=_+1);!(g=v[w])&&++w<f;);m._next=g||null}}return(o=new pn(o,i))._enter=a,o._exit=l,o},enter:function(){return new pn(this._enter||this._groups.map(ye),this._parents)},exit:function(){return new pn(this._exit||this._groups.map(ye),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,s=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==n?s.remove():n(s),i&&r?i.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,s=i.length,o=Math.min(r,s),a=new Array(r),l=0;l<o;++l)for(var h,u=n[l],c=i[l],d=u.length,p=a[l]=new Array(d),f=0;f<d;++f)(h=u[f]||c[f])&&(p[f]=h);for(;l<r;++l)a[l]=n[l];return new pn(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],s=r.length-1,o=r[s];--s>=0;)(i=r[s])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ae);for(var n=this._groups,i=n.length,r=new Array(i),s=0;s<i;++s){for(var o,a=n[s],l=a.length,h=r[s]=new Array(l),u=0;u<l;++u)(o=a[u])&&(h[u]=o);h.sort(e)}return new pn(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length;r<s;++r){var o=i[r];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,s=e[n],o=0,a=s.length;o<a;++o)(r=s[o])&&t.call(r,r.__data__,o,s);return this},attr:function(t,e){var n=ne(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?ke:Ee:"function"==typeof e?n.local?Re:Ne:n.local?Ce:Se)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Ue:"function"==typeof e?Oe:Me)(t,e,null==n?"":n)):He(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Te:"function"==typeof e?ze:Be)(t,e)):this.node()[t]},classed:function(t,e){var n=Le(t+"");if(arguments.length<2){for(var i=je(this.node()),r=-1,s=n.length;++r<s;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?Fe:e?Ve:Xe)(n,e))},text:function(t){return arguments.length?this.each(null==t?Ye:("function"==typeof t?Ke:We)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Ge:("function"==typeof t?Ze:Je)(t)):this.node().innerHTML},raise:function(){return this.each(Qe)},lower:function(){return this.each(tn)},append:function(t){var e="function"==typeof t?t:se(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:se(t),i=null==e?en:"function"==typeof e?e:ae(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(nn)},clone:function(t){return this.select(t?sn:rn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,s=on(t+""),o=s.length;if(!(arguments.length<2)){for(a=e?ln:an,i=0;i<o;++i)this.each(a(s[i],e,n));return this}var a=this.node().__on;if(a)for(var l,h=0,u=a.length;h<u;++h)for(i=0,l=a[h];i<o;++i)if((r=s[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?cn:un)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],s=0,o=r.length;s<o;++s)(i=r[s])&&(yield i)}};var gn=.7,_n=1/gn,wn="\\s*([+-]?\\d+)\\s*",$n="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",xn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",An=/^#([0-9a-f]{3,8})$/,En=new RegExp("^rgb\\("+[wn,wn,wn]+"\\)$"),kn=new RegExp("^rgb\\("+[xn,xn,xn]+"\\)$"),Sn=new RegExp("^rgba\\("+[wn,wn,wn,$n]+"\\)$"),Cn=new RegExp("^rgba\\("+[xn,xn,xn,$n]+"\\)$"),Nn=new RegExp("^hsl\\("+[$n,xn,xn]+"\\)$"),Rn=new RegExp("^hsla\\("+[$n,xn,xn,$n]+"\\)$"),Pn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Un(){return this.rgb().formatHex()}function Mn(){return this.rgb().formatRgb()}function On(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=An.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Hn(e):3===n?new Ln(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Tn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Tn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=En.exec(t))?new Ln(e[1],e[2],e[3],1):(e=kn.exec(t))?new Ln(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Sn.exec(t))?Tn(e[1],e[2],e[3],e[4]):(e=Cn.exec(t))?Tn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Nn.exec(t))?qn(e[1],e[2]/100,e[3]/100,1):(e=Rn.exec(t))?qn(e[1],e[2]/100,e[3]/100,e[4]):Pn.hasOwnProperty(t)?Hn(Pn[t]):"transparent"===t?new Ln(NaN,NaN,NaN,0):null}function Hn(t){return new Ln(t>>16&255,t>>8&255,255&t,1)}function Tn(t,e,n,i){return i<=0&&(t=e=n=NaN),new Ln(t,e,n,i)}function Bn(t){return t instanceof mn||(t=On(t)),t?new Ln((t=t.rgb()).r,t.g,t.b,t.opacity):new Ln}function zn(t,e,n,i){return 1===arguments.length?Bn(t):new Ln(t,e,n,null==i?1:i)}function Ln(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function jn(){return"#"+Dn(this.r)+Dn(this.g)+Dn(this.b)}function In(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Dn(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function qn(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Xn(t,e,n,i)}function Vn(t){if(t instanceof Xn)return new Xn(t.h,t.s,t.l,t.opacity);if(t instanceof mn||(t=On(t)),!t)return new Xn;if(t instanceof Xn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),s=Math.max(e,n,i),o=NaN,a=s-r,l=(s+r)/2;return a?(o=e===s?(n-i)/a+6*(n<i):n===s?(i-e)/a+2:(e-n)/a+4,a/=l<.5?s+r:2-s-r,o*=60):a=l>0&&l<1?0:o,new Xn(o,a,l,t.opacity)}function Xn(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Fn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}vn(mn,On,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Un,formatHex:Un,formatHsl:function(){return Vn(this).formatHsl()},formatRgb:Mn,toString:Mn}),vn(Ln,zn,yn(mn,{brighter:function(t){return t=null==t?_n:Math.pow(_n,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?gn:Math.pow(gn,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jn,formatHex:jn,formatRgb:In,toString:In})),vn(Xn,(function(t,e,n,i){return 1===arguments.length?Vn(t):new Xn(t,e,n,null==i?1:i)}),yn(mn,{brighter:function(t){return t=null==t?_n:Math.pow(_n,t),new Xn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?gn:Math.pow(gn,t),new Xn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Ln(Fn(t>=240?t-240:t+120,r,i),Fn(t,r,i),Fn(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Yn=t=>()=>t;function Wn(t){return 1==(t=+t)?Kn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Yn(isNaN(e)?n:e)}}function Kn(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Yn(isNaN(t)?e:t)}var Gn=function t(e){var n=Wn(e);function i(t,e){var i=n((t=zn(t)).r,(e=zn(e)).r),r=n(t.g,e.g),s=n(t.b,e.b),o=Kn(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=s(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function Jn(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Zn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qn=new RegExp(Zn.source,"g");function ti(t,e){var n,i,r,s=Zn.lastIndex=Qn.lastIndex=0,o=-1,a=[],l=[];for(t+="",e+="";(n=Zn.exec(t))&&(i=Qn.exec(e));)(r=i.index)>s&&(r=e.slice(s,r),a[o]?a[o]+=r:a[++o]=r),(n=n[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,l.push({i:o,x:Jn(n,i)})),s=Qn.lastIndex;return s<e.length&&(r=e.slice(s),a[o]?a[o]+=r:a[++o]=r),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)a[(n=l[i]).i]=n.x(t);return a.join("")})}var ei,ni=180/Math.PI,ii={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ri(t,e,n,i,r,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:r,translateY:s,rotate:Math.atan2(e,t)*ni,skewX:Math.atan(l)*ni,scaleX:o,scaleY:a}}function si(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(s,o){var a=[],l=[];return s=t(s),o=t(o),function(t,i,r,s,o,a){if(t!==r||i!==s){var l=o.push("translate(",null,e,null,n);a.push({i:l-4,x:Jn(t,r)},{i:l-2,x:Jn(i,s)})}else(r||s)&&o.push("translate("+r+e+s+n)}(s.translateX,s.translateY,o.translateX,o.translateY,a,l),function(t,e,n,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Jn(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(s.rotate,o.rotate,a,l),function(t,e,n,s){t!==e?s.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Jn(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(s.skewX,o.skewX,a,l),function(t,e,n,i,s,o){if(t!==n||e!==i){var a=s.push(r(s)+"scale(",null,",",null,")");o.push({i:a-4,x:Jn(t,n)},{i:a-2,x:Jn(e,i)})}else 1===n&&1===i||s.push(r(s)+"scale("+n+","+i+")")}(s.scaleX,s.scaleY,o.scaleX,o.scaleY,a,l),s=o=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t);return a.join("")}}}var oi,ai,li=si((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ii:ri(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),hi=si((function(t){return null==t?ii:(ei||(ei=document.createElementNS("http://www.w3.org/2000/svg","g")),ei.setAttribute("transform",t),(t=ei.transform.baseVal.consolidate())?ri((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):ii)}),", ",")",")"),ui=0,ci=0,di=0,pi=0,fi=0,bi=0,vi="object"==typeof performance&&performance.now?performance:Date,yi="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function mi(){return fi||(yi(gi),fi=vi.now()+bi)}function gi(){fi=0}function _i(){this._call=this._time=this._next=null}function wi(t,e,n){var i=new _i;return i.restart(t,e,n),i}function $i(){fi=(pi=vi.now())+bi,ui=ci=0;try{!function(){mi(),++ui;for(var t,e=oi;e;)(t=fi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ui}()}finally{ui=0,function(){var t,e,n=oi,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:oi=e);ai=t,Ai(i)}(),fi=0}}function xi(){var t=vi.now(),e=t-pi;e>1e3&&(bi-=e,pi=t)}function Ai(t){ui||(ci&&(ci=clearTimeout(ci)),t-fi>24?(t<1/0&&(ci=setTimeout($i,t-vi.now()-bi)),di&&(di=clearInterval(di))):(di||(pi=vi.now(),di=setInterval(xi,1e3)),ui=1,yi($i)))}function Ei(t,e,n){var i=new _i;return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}_i.prototype=wi.prototype={constructor:_i,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?mi():+n)+(null==e?0:+e),this._next||ai===this||(ai?ai._next=this:oi=this,ai=this),this._call=t,this._time=n,Ai()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ai())}};var ki=Kt("start","end","cancel","interrupt"),Si=[];function Ci(t,e,n,i,r,s){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function s(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}function o(s){var h,u,c,d;if(1!==n.state)return l();for(h in r)if((d=r[h]).name===n.name){if(3===d.state)return Ei(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[h]):+h<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[h])}if(Ei((function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(s))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(c=n.tween.length),h=0,u=-1;h<c;++h)(d=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=d);i.length=u+1}}function a(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=5,1),s=-1,o=i.length;++s<o;)i[s].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=wi(s,0,n.time)}(t,n,{name:e,index:i,group:r,on:ki,tween:Si,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function Ni(t,e){var n=Pi(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Ri(t,e){var n=Pi(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Pi(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Ui(t,e){var n,i;return function(){var r=Ri(this,t),s=r.tween;if(s!==n)for(var o=0,a=(i=n=s).length;o<a;++o)if(i[o].name===e){(i=i.slice()).splice(o,1);break}r.tween=i}}function Mi(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var s=Ri(this,t),o=s.tween;if(o!==i){r=(i=o).slice();for(var a={name:e,value:n},l=0,h=r.length;l<h;++l)if(r[l].name===e){r[l]=a;break}l===h&&r.push(a)}s.tween=r}}function Oi(t,e,n){var i=t._id;return t.each((function(){var t=Ri(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Pi(t,i).value[e]}}function Hi(t,e){var n;return("number"==typeof e?Jn:e instanceof On?Gn:(n=On(e))?(e=n,Gn):ti)(t,e)}function Ti(t){return function(){this.removeAttribute(t)}}function Bi(t){return function(){this.removeAttributeNS(t.space,t.local)}}function zi(t,e,n){var i,r,s=n+"";return function(){var o=this.getAttribute(t);return o===s?null:o===i?r:r=e(i=o,n)}}function Li(t,e,n){var i,r,s=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===i?r:r=e(i=o,n)}}function ji(t,e,n){var i,r,s;return function(){var o,a,l=n(this);if(null!=l)return(o=this.getAttribute(t))===(a=l+"")?null:o===i&&a===r?s:(r=a,s=e(i=o,l));this.removeAttribute(t)}}function Ii(t,e,n){var i,r,s;return function(){var o,a,l=n(this);if(null!=l)return(o=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:o===i&&a===r?s:(r=a,s=e(i=o,l));this.removeAttributeNS(t.space,t.local)}}function Di(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function qi(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Vi(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&qi(t,r)),n}return r._value=e,r}function Xi(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Di(t,r)),n}return r._value=e,r}function Fi(t,e){return function(){Ni(this,t).delay=+e.apply(this,arguments)}}function Yi(t,e){return e=+e,function(){Ni(this,t).delay=e}}function Wi(t,e){return function(){Ri(this,t).duration=+e.apply(this,arguments)}}function Ki(t,e){return e=+e,function(){Ri(this,t).duration=e}}function Gi(t,e){if("function"!=typeof e)throw new Error;return function(){Ri(this,t).ease=e}}function Ji(t,e,n){var i,r,s=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Ni:Ri;return function(){var o=s(this,t),a=o.on;a!==i&&(r=(i=a).copy()).on(e,n),o.on=r}}var Zi=fn.prototype.constructor;function Qi(t){return function(){this.style.removeProperty(t)}}function tr(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function er(t,e,n){var i,r;function s(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&tr(t,s,n)),i}return s._value=e,s}function nr(t){return function(e){this.textContent=t.call(this,e)}}function ir(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&nr(i)),e}return i._value=t,i}var rr=0;function sr(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function or(){return++rr}var ar=fn.prototype;sr.prototype={constructor:sr,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ae(t));for(var i=this._groups,r=i.length,s=new Array(r),o=0;o<r;++o)for(var a,l,h=i[o],u=h.length,c=s[o]=new Array(u),d=0;d<u;++d)(a=h[d])&&(l=t.call(a,a.__data__,d,h))&&("__data__"in a&&(l.__data__=a.__data__),c[d]=l,Ci(c[d],e,n,d,c,Pi(a,n)));return new sr(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ue(t));for(var i=this._groups,r=i.length,s=[],o=[],a=0;a<r;++a)for(var l,h=i[a],u=h.length,c=0;c<u;++c)if(l=h[c]){for(var d,p=t.call(l,l.__data__,c,h),f=Pi(l,n),b=0,v=p.length;b<v;++b)(d=p[b])&&Ci(d,e,n,b,p,f);s.push(p),o.push(l)}return new sr(s,o,e,n)},selectChild:ar.selectChild,selectChildren:ar.selectChildren,filter:function(t){"function"!=typeof t&&(t=ce(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o=e[r],a=o.length,l=i[r]=[],h=0;h<a;++h)(s=o[h])&&t.call(s,s.__data__,h,o)&&l.push(s);return new sr(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,s=Math.min(i,r),o=new Array(i),a=0;a<s;++a)for(var l,h=e[a],u=n[a],c=h.length,d=o[a]=new Array(c),p=0;p<c;++p)(l=h[p]||u[p])&&(d[p]=l);for(;a<i;++a)o[a]=e[a];return new sr(o,this._parents,this._name,this._id)},selection:function(){return new Zi(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=or(),i=this._groups,r=i.length,s=0;s<r;++s)for(var o,a=i[s],l=a.length,h=0;h<l;++h)if(o=a[h]){var u=Pi(o,e);Ci(o,t,n,h,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new sr(i,this._parents,t,n)},call:ar.call,nodes:ar.nodes,node:ar.node,size:ar.size,empty:ar.empty,each:ar.each,on:function(t,e){var n=this._id;return arguments.length<2?Pi(this.node(),n).on.on(t):this.each(Ji(n,t,e))},attr:function(t,e){var n=ne(t),i="transform"===n?hi:Hi;return this.attrTween(t,"function"==typeof e?(n.local?Ii:ji)(n,i,Oi(this,"attr."+t,e)):null==e?(n.local?Bi:Ti)(n):(n.local?Li:zi)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=ne(t);return this.tween(n,(i.local?Vi:Xi)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?li:Hi;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var s=He(this,t),o=(this.style.removeProperty(t),He(this,t));return s===o?null:s===n&&o===i?r:r=e(n=s,i=o)}}(t,i)).on("end.style."+t,Qi(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,s;return function(){var o=He(this,t),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=He(this,t)),o===l?null:o===i&&l===r?s:(r=l,s=e(i=o,a))}}(t,i,Oi(this,"style."+t,e))).each(function(t,e){var n,i,r,s,o="style."+e,a="end."+o;return function(){var l=Ri(this,t),h=l.on,u=null==l.value[o]?s||(s=Qi(e)):void 0;h===n&&r===u||(i=(n=h).copy()).on(a,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,s=n+"";return function(){var o=He(this,t);return o===s?null:o===i?r:r=e(i=o,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,er(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Oi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,ir(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=Pi(this.node(),n).tween,s=0,o=r.length;s<o;++s)if((i=r[s]).name===t)return i.value;return null}return this.each((null==e?Ui:Mi)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Fi:Yi)(e,t)):Pi(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Wi:Ki)(e,t)):Pi(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Gi(e,t)):Pi(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Ri(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(s,o){var a={value:o},l={value:function(){0==--r&&s()}};n.each((function(){var n=Ri(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===r&&s()}))},[Symbol.iterator]:ar[Symbol.iterator]};var lr={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function hr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function ur(t,e,n){this.k=t,this.x=e,this.y=n}fn.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,i,r,s=t.__transition,o=!0;if(s){for(r in e=null==e?null:e+"",s)(n=s[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete s[r]):o=!1;o&&delete t.__transition}}(this,t)}))},fn.prototype.transition=function(t){var e,n;t instanceof sr?(e=t._id,t=t._name):(e=or(),(n=lr).time=mi(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,s=0;s<r;++s)for(var o,a=i[s],l=a.length,h=0;h<l;++h)(o=a[h])&&Ci(o,t,e,h,a,n||hr(o,e));return new sr(i,this._parents,t,e)},ur.prototype={constructor:ur,scale:function(t){return 1===t?this:new ur(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new ur(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new ur(1,0,0),ur.prototype;class cr extends Ft{getComputedStyleValue(t){return getComputedStyle(this).getPropertyValue(t).trim()}firstUpdated(t){super.firstUpdated(t),bn(this.renderRoot.host).classed("keyboard",!0).on("mousemove.keyboard touchstart.keyboard",(t=>{bn(t.currentTarget.renderRoot.host).classed("keyboard",!1).on("mousemove.keyboard touchstart.keyboard",null)})).on("keydown.keyboard",(t=>{bn(t.currentTarget.renderRoot.host).classed("keyboard",!0).on("keydown.keyboard mousemove.keyboard touchstart.keyboard",null)}))}static get greys(){const t="#999999",e={white:"#ffffff"};return e.light75=Gn(t,"#ffffff")(.75),e.light50=Gn(t,"#ffffff")(.5),e.light25=Gn(t,"#ffffff")(.25),e.grey=t,e.dark25=Gn(t,"#000000")(.25),e.dark50=Gn(t,"#000000")(.5),e.dark75=Gn(t,"#000000")(.75),e.black="#000000",e}static get shadows(){return{elevations:[0,2,4,8,16],baselineColor:"#000000",baselineColorString:"0, 0, 0",inverseBaselineColor:"#FFFFFF",inverseBaselineColorString:"255, 255, 255",opacityUmbra:.2,opacityPenumbra:.14,opacityAmbient:.12,opacityBoost:.2,mapUmbra:{0:{x:0,y:0,b:0,s:0},2:{x:0,y:3,b:1,s:-2},4:{x:0,y:2,b:4,s:-1},8:{x:0,y:5,b:5,s:-3},16:{x:0,y:8,b:10,s:-5}},mapPenumbra:{0:{x:0,y:0,b:0,s:0},2:{x:0,y:2,b:2,s:0},4:{x:0,y:4,b:5,s:0},8:{x:0,y:8,b:10,s:1},16:{x:0,y:16,b:24,s:2}},mapAmbient:{0:{x:0,y:0,b:0,s:0},2:{x:0,y:1,b:5,s:0},4:{x:0,y:1,b:10,s:0},8:{x:0,y:3,b:14,s:2},16:{x:0,y:6,b:30,s:5}}}}static cssBoxShadow(t,e=!1,n=!1){const i=this.shadows.opacityUmbra+this.shadows.opacityBoost,r=this.shadows.opacityPenumbra+this.shadows.opacityBoost,s=this.shadows.opacityAmbient+this.shadows.opacityBoost,o=n?`rgba(${this.shadows.inverseBaselineColorString}, ${i})`:`rgba(${this.shadows.baselineColorString}, ${i})`,a=n?`rgba(${this.shadows.inverseBaselineColorString}, ${r})`:`rgba(${this.shadows.baselineColorString}, ${r})`,l=n?`rgba(${this.shadows.inverseBaselineColorString}, ${s})`:`rgba(${this.shadows.baselineColorString}, ${s})`,h=this.shadows.mapUmbra[t],u=this.shadows.mapPenumbra[t],c=this.shadows.mapAmbient[t];return`${e?`${-h.y}px ${h.y/2}px ${h.b}px ${h.s}px`:`${h.y/2}px ${h.y}px ${h.b}px ${h.s}px`} ${o}, ${e?`${-u.y}px ${u.y/2}px ${u.b}px ${u.s}px`:`${u.y/2}px ${u.y}px ${u.b}px ${u.s}px`} ${a}, ${e?`${-c.y}px ${c.y/2}px ${c.b}px ${c.s}px`:`${c.y/2}px ${c.y}px ${c.b}px ${c.s}px`} ${l}`}static get svgFilters(){const t=cr.shadows,e=t.elevations.map((e=>St`
40
+ var Jt,Zt;class Qt extends ct{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,n)=>{var i,r;const s=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:e;let o=s._$litPart$;if(void 0===o){const t=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:null;s._$litPart$=o=new qt(e.insertBefore(wt(),t),t,void 0,null!=n?n:{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Ht}}Qt.finalized=!0,Qt._$litElement$=!0,null===(Jt=globalThis.litElementHydrateSupport)||void 0===Jt||Jt.call(globalThis,{LitElement:Qt});const te=globalThis.litElementPolyfillSupport;null==te||te({LitElement:Qt}),(null!==(Zt=globalThis.litElementVersions)&&void 0!==Zt?Zt:globalThis.litElementVersions=[]).push("3.3.0");var ee={value:()=>{}};function ne(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new ie(i)}function ie(t){this._=t}function re(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function se(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=ee,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}ie.prototype=ne.prototype={constructor:ie,on:function(t,e){var n,i,r=this._,s=(i=r,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,a=s.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(n=(t=s[o]).type)r[n]=se(r[n],t.name,e);else if(null==e)for(n in r)r[n]=se(r[n],t.name,null);return this}for(;++o<a;)if((n=(t=s[o]).type)&&(n=re(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ie(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),s=0;s<n;++s)r[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=0,n=(i=this._[t]).length;s<n;++s)i[s].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,s=i.length;r<s;++r)i[r].value.apply(e,n)}};var oe="http://www.w3.org/1999/xhtml",ae={svg:"http://www.w3.org/2000/svg",xhtml:oe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function le(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ae.hasOwnProperty(e)?{space:ae[e],local:t}:t}function he(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===oe&&e.documentElement.namespaceURI===oe?e.createElement(t):e.createElementNS(n,t)}}function ue(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ce(t){var e=le(t);return(e.local?ue:he)(e)}function de(){}function pe(t){return null==t?de:function(){return this.querySelector(t)}}function fe(){return[]}function be(t){return null==t?fe:function(){return this.querySelectorAll(t)}}function ve(t){return function(){return function(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}(t.apply(this,arguments))}}function ye(t){return function(){return this.matches(t)}}function me(t){return function(e){return e.matches(t)}}var ge=Array.prototype.find;function _e(){return this.firstElementChild}var we=Array.prototype.filter;function $e(){return Array.from(this.children)}function xe(t){return new Array(t.length)}function Ae(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Ee(t,e,n,i,r,s){for(var o,a=0,l=e.length,h=s.length;a<h;++a)(o=e[a])?(o.__data__=s[a],i[a]=o):n[a]=new Ae(t,s[a]);for(;a<l;++a)(o=e[a])&&(r[a]=o)}function ke(t,e,n,i,r,s,o){var a,l,h,u=new Map,c=e.length,d=s.length,p=new Array(c);for(a=0;a<c;++a)(l=e[a])&&(p[a]=h=o.call(l,l.__data__,a,e)+"",u.has(h)?r[a]=l:u.set(h,l));for(a=0;a<d;++a)h=o.call(t,s[a],a,s)+"",(l=u.get(h))?(i[a]=l,l.__data__=s[a],u.delete(h)):n[a]=new Ae(t,s[a]);for(a=0;a<c;++a)(l=e[a])&&u.get(p[a])===l&&(r[a]=l)}function Se(t){return t.__data__}function Ce(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Ne(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Re(t){return function(){this.removeAttribute(t)}}function Pe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ue(t,e){return function(){this.setAttribute(t,e)}}function Me(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Oe(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function He(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Te(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Be(t){return function(){this.style.removeProperty(t)}}function ze(t,e,n){return function(){this.style.setProperty(t,e,n)}}function je(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Le(t,e){return t.style.getPropertyValue(e)||Te(t).getComputedStyle(t,null).getPropertyValue(e)}function Ie(t){return function(){delete this[t]}}function De(t,e){return function(){this[t]=e}}function qe(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ve(t){return t.trim().split(/^|\s+/)}function Xe(t){return t.classList||new Fe(t)}function Fe(t){this._node=t,this._names=Ve(t.getAttribute("class")||"")}function Ye(t,e){for(var n=Xe(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function We(t,e){for(var n=Xe(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Ke(t){return function(){Ye(this,t)}}function Ge(t){return function(){We(this,t)}}function Je(t,e){return function(){(e.apply(this,arguments)?Ye:We)(this,t)}}function Ze(){this.textContent=""}function Qe(t){return function(){this.textContent=t}}function tn(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function en(){this.innerHTML=""}function nn(t){return function(){this.innerHTML=t}}function rn(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function sn(){this.nextSibling&&this.parentNode.appendChild(this)}function on(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function an(){return null}function ln(){var t=this.parentNode;t&&t.removeChild(this)}function hn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function un(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function cn(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,s=e.length;i<s;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function dn(t,e,n){return function(){var i,r=this.__on,s=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var o=0,a=r.length;o<a;++o)if((i=r[o]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),void(i.value=e);this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},r?r.push(i):this.__on=[i]}}function pn(t,e,n){var i=Te(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function fn(t,e){return function(){return pn(this,t,e)}}function bn(t,e){return function(){return pn(this,t,e.apply(this,arguments))}}Ae.prototype={constructor:Ae,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},Fe.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var vn=[null];function yn(t,e){this._groups=t,this._parents=e}function mn(){return new yn([[document.documentElement]],vn)}function gn(t){return"string"==typeof t?new yn([[document.querySelector(t)]],[document.documentElement]):new yn([[t]],vn)}function _n(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function wn(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function $n(){}yn.prototype=mn.prototype={constructor:yn,select:function(t){"function"!=typeof t&&(t=pe(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o,a=e[r],l=a.length,h=i[r]=new Array(l),u=0;u<l;++u)(s=a[u])&&(o=t.call(s,s.__data__,u,a))&&("__data__"in s&&(o.__data__=s.__data__),h[u]=o);return new yn(i,this._parents)},selectAll:function(t){t="function"==typeof t?ve(t):be(t);for(var e=this._groups,n=e.length,i=[],r=[],s=0;s<n;++s)for(var o,a=e[s],l=a.length,h=0;h<l;++h)(o=a[h])&&(i.push(t.call(o,o.__data__,h,a)),r.push(o));return new yn(i,r)},selectChild:function(t){return this.select(null==t?_e:function(t){return function(){return ge.call(this.children,t)}}("function"==typeof t?t:me(t)))},selectChildren:function(t){return this.selectAll(null==t?$e:function(t){return function(){return we.call(this.children,t)}}("function"==typeof t?t:me(t)))},filter:function(t){"function"!=typeof t&&(t=ye(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o=e[r],a=o.length,l=i[r]=[],h=0;h<a;++h)(s=o[h])&&t.call(s,s.__data__,h,o)&&l.push(s);return new yn(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Se);var n=e?ke:Ee,i=this._parents,r=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var s=r.length,o=new Array(s),a=new Array(s),l=new Array(s),h=0;h<s;++h){var u=i[h],c=r[h],d=c.length,p=Ce(t.call(u,u&&u.__data__,h,i)),f=p.length,b=a[h]=new Array(f),v=o[h]=new Array(f);n(u,c,b,v,l[h]=new Array(d),p,e);for(var y,m,g=0,_=0;g<f;++g)if(y=b[g]){for(g>=_&&(_=g+1);!(m=v[_])&&++_<f;);y._next=m||null}}return(o=new yn(o,i))._enter=a,o._exit=l,o},enter:function(){return new yn(this._enter||this._groups.map(xe),this._parents)},exit:function(){return new yn(this._exit||this._groups.map(xe),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,s=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==n?s.remove():n(s),i&&r?i.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,s=i.length,o=Math.min(r,s),a=new Array(r),l=0;l<o;++l)for(var h,u=n[l],c=i[l],d=u.length,p=a[l]=new Array(d),f=0;f<d;++f)(h=u[f]||c[f])&&(p[f]=h);for(;l<r;++l)a[l]=n[l];return new yn(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],s=r.length-1,o=r[s];--s>=0;)(i=r[s])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ne);for(var n=this._groups,i=n.length,r=new Array(i),s=0;s<i;++s){for(var o,a=n[s],l=a.length,h=r[s]=new Array(l),u=0;u<l;++u)(o=a[u])&&(h[u]=o);h.sort(e)}return new yn(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length;r<s;++r){var o=i[r];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,s=e[n],o=0,a=s.length;o<a;++o)(r=s[o])&&t.call(r,r.__data__,o,s);return this},attr:function(t,e){var n=le(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?Pe:Re:"function"==typeof e?n.local?He:Oe:n.local?Me:Ue)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Be:"function"==typeof e?je:ze)(t,e,null==n?"":n)):Le(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ie:"function"==typeof e?qe:De)(t,e)):this.node()[t]},classed:function(t,e){var n=Ve(t+"");if(arguments.length<2){for(var i=Xe(this.node()),r=-1,s=n.length;++r<s;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?Je:e?Ke:Ge)(n,e))},text:function(t){return arguments.length?this.each(null==t?Ze:("function"==typeof t?tn:Qe)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?en:("function"==typeof t?rn:nn)(t)):this.node().innerHTML},raise:function(){return this.each(sn)},lower:function(){return this.each(on)},append:function(t){var e="function"==typeof t?t:ce(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:ce(t),i=null==e?an:"function"==typeof e?e:pe(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(ln)},clone:function(t){return this.select(t?un:hn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,s=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=s.length;if(!(arguments.length<2)){for(a=e?dn:cn,i=0;i<o;++i)this.each(a(s[i],e,n));return this}var a=this.node().__on;if(a)for(var l,h=0,u=a.length;h<u;++h)for(i=0,l=a[h];i<o;++i)if((r=s[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?bn:fn)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],s=0,o=r.length;s<o;++s)(i=r[s])&&(yield i)}};var xn=.7,An=1/xn,En="\\s*([+-]?\\d+)\\s*",kn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Sn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Cn=/^#([0-9a-f]{3,8})$/,Nn=new RegExp("^rgb\\("+[En,En,En]+"\\)$"),Rn=new RegExp("^rgb\\("+[Sn,Sn,Sn]+"\\)$"),Pn=new RegExp("^rgba\\("+[En,En,En,kn]+"\\)$"),Un=new RegExp("^rgba\\("+[Sn,Sn,Sn,kn]+"\\)$"),Mn=new RegExp("^hsl\\("+[kn,Sn,Sn]+"\\)$"),On=new RegExp("^hsla\\("+[kn,Sn,Sn,kn]+"\\)$"),Hn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Tn(){return this.rgb().formatHex()}function Bn(){return this.rgb().formatRgb()}function zn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Cn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?jn(e):3===n?new Dn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Ln(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Ln(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Nn.exec(t))?new Dn(e[1],e[2],e[3],1):(e=Rn.exec(t))?new Dn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Pn.exec(t))?Ln(e[1],e[2],e[3],e[4]):(e=Un.exec(t))?Ln(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Mn.exec(t))?Fn(e[1],e[2]/100,e[3]/100,1):(e=On.exec(t))?Fn(e[1],e[2]/100,e[3]/100,e[4]):Hn.hasOwnProperty(t)?jn(Hn[t]):"transparent"===t?new Dn(NaN,NaN,NaN,0):null}function jn(t){return new Dn(t>>16&255,t>>8&255,255&t,1)}function Ln(t,e,n,i){return i<=0&&(t=e=n=NaN),new Dn(t,e,n,i)}function In(t,e,n,i){return 1===arguments.length?function(t){return t instanceof $n||(t=zn(t)),t?new Dn((t=t.rgb()).r,t.g,t.b,t.opacity):new Dn}(t):new Dn(t,e,n,null==i?1:i)}function Dn(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function qn(){return"#"+Xn(this.r)+Xn(this.g)+Xn(this.b)}function Vn(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Xn(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Fn(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Wn(t,e,n,i)}function Yn(t){if(t instanceof Wn)return new Wn(t.h,t.s,t.l,t.opacity);if(t instanceof $n||(t=zn(t)),!t)return new Wn;if(t instanceof Wn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),s=Math.max(e,n,i),o=NaN,a=s-r,l=(s+r)/2;return a?(o=e===s?(n-i)/a+6*(n<i):n===s?(i-e)/a+2:(e-n)/a+4,a/=l<.5?s+r:2-s-r,o*=60):a=l>0&&l<1?0:o,new Wn(o,a,l,t.opacity)}function Wn(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Kn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}_n($n,zn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Tn,formatHex:Tn,formatHsl:function(){return Yn(this).formatHsl()},formatRgb:Bn,toString:Bn}),_n(Dn,In,wn($n,{brighter:function(t){return t=null==t?An:Math.pow(An,t),new Dn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?xn:Math.pow(xn,t),new Dn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qn,formatHex:qn,formatRgb:Vn,toString:Vn})),_n(Wn,(function(t,e,n,i){return 1===arguments.length?Yn(t):new Wn(t,e,n,null==i?1:i)}),wn($n,{brighter:function(t){return t=null==t?An:Math.pow(An,t),new Wn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?xn:Math.pow(xn,t),new Wn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Dn(Kn(t>=240?t-240:t+120,r,i),Kn(t,r,i),Kn(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Gn=t=>()=>t;function Jn(t){return 1==(t=+t)?Zn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Gn(isNaN(e)?n:e)}}function Zn(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Gn(isNaN(t)?e:t)}var Qn=function t(e){var n=Jn(e);function i(t,e){var i=n((t=In(t)).r,(e=In(e)).r),r=n(t.g,e.g),s=n(t.b,e.b),o=Zn(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=s(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function ti(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var ei=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ni=new RegExp(ei.source,"g");function ii(t,e){var n,i,r,s=ei.lastIndex=ni.lastIndex=0,o=-1,a=[],l=[];for(t+="",e+="";(n=ei.exec(t))&&(i=ni.exec(e));)(r=i.index)>s&&(r=e.slice(s,r),a[o]?a[o]+=r:a[++o]=r),(n=n[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,l.push({i:o,x:ti(n,i)})),s=ni.lastIndex;return s<e.length&&(r=e.slice(s),a[o]?a[o]+=r:a[++o]=r),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)a[(n=l[i]).i]=n.x(t);return a.join("")})}var ri,si=180/Math.PI,oi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ai(t,e,n,i,r,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:r,translateY:s,rotate:Math.atan2(e,t)*si,skewX:Math.atan(l)*si,scaleX:o,scaleY:a}}function li(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(s,o){var a=[],l=[];return s=t(s),o=t(o),function(t,i,r,s,o,a){if(t!==r||i!==s){var l=o.push("translate(",null,e,null,n);a.push({i:l-4,x:ti(t,r)},{i:l-2,x:ti(i,s)})}else(r||s)&&o.push("translate("+r+e+s+n)}(s.translateX,s.translateY,o.translateX,o.translateY,a,l),function(t,e,n,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:n.push(r(n)+"rotate(",null,i)-2,x:ti(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(s.rotate,o.rotate,a,l),function(t,e,n,s){t!==e?s.push({i:n.push(r(n)+"skewX(",null,i)-2,x:ti(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(s.skewX,o.skewX,a,l),function(t,e,n,i,s,o){if(t!==n||e!==i){var a=s.push(r(s)+"scale(",null,",",null,")");o.push({i:a-4,x:ti(t,n)},{i:a-2,x:ti(e,i)})}else 1===n&&1===i||s.push(r(s)+"scale("+n+","+i+")")}(s.scaleX,s.scaleY,o.scaleX,o.scaleY,a,l),s=o=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t);return a.join("")}}}var hi,ui,ci=li((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?oi:ai(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),di=li((function(t){return null==t?oi:(ri||(ri=document.createElementNS("http://www.w3.org/2000/svg","g")),ri.setAttribute("transform",t),(t=ri.transform.baseVal.consolidate())?ai((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):oi)}),", ",")",")"),pi=0,fi=0,bi=0,vi=1e3,yi=0,mi=0,gi=0,_i="object"==typeof performance&&performance.now?performance:Date,wi="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function $i(){return mi||(wi(xi),mi=_i.now()+gi)}function xi(){mi=0}function Ai(){this._call=this._time=this._next=null}function Ei(t,e,n){var i=new Ai;return i.restart(t,e,n),i}function ki(){mi=(yi=_i.now())+gi,pi=fi=0;try{!function(){$i(),++pi;for(var t,e=hi;e;)(t=mi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--pi}()}finally{pi=0,function(){var t,e,n=hi,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:hi=e);ui=t,Ci(i)}(),mi=0}}function Si(){var t=_i.now(),e=t-yi;e>vi&&(gi-=e,yi=t)}function Ci(t){pi||(fi&&(fi=clearTimeout(fi)),t-mi>24?(t<1/0&&(fi=setTimeout(ki,t-_i.now()-gi)),bi&&(bi=clearInterval(bi))):(bi||(yi=_i.now(),bi=setInterval(Si,vi)),pi=1,wi(ki)))}function Ni(t,e,n){var i=new Ai;return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}Ai.prototype=Ei.prototype={constructor:Ai,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?$i():+n)+(null==e?0:+e),this._next||ui===this||(ui?ui._next=this:hi=this,ui=this),this._call=t,this._time=n,Ci()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ci())}};var Ri=ne("start","end","cancel","interrupt"),Pi=[],Ui=0,Mi=1,Oi=2,Hi=3,Ti=4,Bi=5,zi=6;function ji(t,e,n,i,r,s){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function s(t){n.state=Mi,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}function o(s){var h,u,c,d;if(n.state!==Mi)return l();for(h in r)if((d=r[h]).name===n.name){if(d.state===Hi)return Ni(o);d.state===Ti?(d.state=zi,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[h]):+h<e&&(d.state=zi,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[h])}if(Ni((function(){n.state===Hi&&(n.state=Ti,n.timer.restart(a,n.delay,n.time),a(s))})),n.state=Oi,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Oi){for(n.state=Hi,i=new Array(c=n.tween.length),h=0,u=-1;h<c;++h)(d=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=d);i.length=u+1}}function a(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=Bi,1),s=-1,o=i.length;++s<o;)i[s].call(t,r);n.state===Bi&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=zi,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=Ei(s,0,n.time)}(t,n,{name:e,index:i,group:r,on:Ri,tween:Pi,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Ui})}function Li(t,e){var n=Di(t,e);if(n.state>Ui)throw new Error("too late; already scheduled");return n}function Ii(t,e){var n=Di(t,e);if(n.state>Hi)throw new Error("too late; already running");return n}function Di(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function qi(t,e){var n,i;return function(){var r=Ii(this,t),s=r.tween;if(s!==n)for(var o=0,a=(i=n=s).length;o<a;++o)if(i[o].name===e){(i=i.slice()).splice(o,1);break}r.tween=i}}function Vi(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var s=Ii(this,t),o=s.tween;if(o!==i){r=(i=o).slice();for(var a={name:e,value:n},l=0,h=r.length;l<h;++l)if(r[l].name===e){r[l]=a;break}l===h&&r.push(a)}s.tween=r}}function Xi(t,e,n){var i=t._id;return t.each((function(){var t=Ii(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Di(t,i).value[e]}}function Fi(t,e){var n;return("number"==typeof e?ti:e instanceof zn?Qn:(n=zn(e))?(e=n,Qn):ii)(t,e)}function Yi(t){return function(){this.removeAttribute(t)}}function Wi(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ki(t,e,n){var i,r,s=n+"";return function(){var o=this.getAttribute(t);return o===s?null:o===i?r:r=e(i=o,n)}}function Gi(t,e,n){var i,r,s=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===i?r:r=e(i=o,n)}}function Ji(t,e,n){var i,r,s;return function(){var o,a,l=n(this);if(null!=l)return(o=this.getAttribute(t))===(a=l+"")?null:o===i&&a===r?s:(r=a,s=e(i=o,l));this.removeAttribute(t)}}function Zi(t,e,n){var i,r,s;return function(){var o,a,l=n(this);if(null!=l)return(o=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:o===i&&a===r?s:(r=a,s=e(i=o,l));this.removeAttributeNS(t.space,t.local)}}function Qi(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,r)),n}return r._value=e,r}function tr(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,r)),n}return r._value=e,r}function er(t,e){return function(){Li(this,t).delay=+e.apply(this,arguments)}}function nr(t,e){return e=+e,function(){Li(this,t).delay=e}}function ir(t,e){return function(){Ii(this,t).duration=+e.apply(this,arguments)}}function rr(t,e){return e=+e,function(){Ii(this,t).duration=e}}var sr=mn.prototype.constructor;function or(t){return function(){this.style.removeProperty(t)}}var ar=0;function lr(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function hr(){return++ar}var ur=mn.prototype;lr.prototype={constructor:lr,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=pe(t));for(var i=this._groups,r=i.length,s=new Array(r),o=0;o<r;++o)for(var a,l,h=i[o],u=h.length,c=s[o]=new Array(u),d=0;d<u;++d)(a=h[d])&&(l=t.call(a,a.__data__,d,h))&&("__data__"in a&&(l.__data__=a.__data__),c[d]=l,ji(c[d],e,n,d,c,Di(a,n)));return new lr(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=be(t));for(var i=this._groups,r=i.length,s=[],o=[],a=0;a<r;++a)for(var l,h=i[a],u=h.length,c=0;c<u;++c)if(l=h[c]){for(var d,p=t.call(l,l.__data__,c,h),f=Di(l,n),b=0,v=p.length;b<v;++b)(d=p[b])&&ji(d,e,n,b,p,f);s.push(p),o.push(l)}return new lr(s,o,e,n)},selectChild:ur.selectChild,selectChildren:ur.selectChildren,filter:function(t){"function"!=typeof t&&(t=ye(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o=e[r],a=o.length,l=i[r]=[],h=0;h<a;++h)(s=o[h])&&t.call(s,s.__data__,h,o)&&l.push(s);return new lr(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,s=Math.min(i,r),o=new Array(i),a=0;a<s;++a)for(var l,h=e[a],u=n[a],c=h.length,d=o[a]=new Array(c),p=0;p<c;++p)(l=h[p]||u[p])&&(d[p]=l);for(;a<i;++a)o[a]=e[a];return new lr(o,this._parents,this._name,this._id)},selection:function(){return new sr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=hr(),i=this._groups,r=i.length,s=0;s<r;++s)for(var o,a=i[s],l=a.length,h=0;h<l;++h)if(o=a[h]){var u=Di(o,e);ji(o,t,n,h,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new lr(i,this._parents,t,n)},call:ur.call,nodes:ur.nodes,node:ur.node,size:ur.size,empty:ur.empty,each:ur.each,on:function(t,e){var n=this._id;return arguments.length<2?Di(this.node(),n).on.on(t):this.each(function(t,e,n){var i,r,s=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Li:Ii;return function(){var o=s(this,t),a=o.on;a!==i&&(r=(i=a).copy()).on(e,n),o.on=r}}(n,t,e))},attr:function(t,e){var n=le(t),i="transform"===n?di:Fi;return this.attrTween(t,"function"==typeof e?(n.local?Zi:Ji)(n,i,Xi(this,"attr."+t,e)):null==e?(n.local?Wi:Yi)(n):(n.local?Gi:Ki)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=le(t);return this.tween(n,(i.local?Qi:tr)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?ci:Fi;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var s=Le(this,t),o=(this.style.removeProperty(t),Le(this,t));return s===o?null:s===n&&o===i?r:r=e(n=s,i=o)}}(t,i)).on("end.style."+t,or(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,s;return function(){var o=Le(this,t),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=Le(this,t)),o===l?null:o===i&&l===r?s:(r=l,s=e(i=o,a))}}(t,i,Xi(this,"style."+t,e))).each(function(t,e){var n,i,r,s,o="style."+e,a="end."+o;return function(){var l=Ii(this,t),h=l.on,u=null==l.value[o]?s||(s=or(e)):void 0;h===n&&r===u||(i=(n=h).copy()).on(a,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,s=n+"";return function(){var o=Le(this,t);return o===s?null:o===i?r:r=e(i=o,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function(t,e,n){var i,r;function s(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,s,n)),i}return s._value=e,s}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Xi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=Di(this.node(),n).tween,s=0,o=r.length;s<o;++s)if((i=r[s]).name===t)return i.value;return null}return this.each((null==e?qi:Vi)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?er:nr)(e,t)):Di(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ir:rr)(e,t)):Di(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Ii(this,t).ease=e}}(e,t)):Di(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Ii(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(s,o){var a={value:o},l={value:function(){0==--r&&s()}};n.each((function(){var n=Ii(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===r&&s()}))},[Symbol.iterator]:ur[Symbol.iterator]};var cr={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function dr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function pr(t,e,n){this.k=t,this.x=e,this.y=n}mn.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,i,r,s=t.__transition,o=!0;if(s){for(r in e=null==e?null:e+"",s)(n=s[r]).name===e?(i=n.state>Oi&&n.state<Bi,n.state=zi,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete s[r]):o=!1;o&&delete t.__transition}}(this,t)}))},mn.prototype.transition=function(t){var e,n;t instanceof lr?(e=t._id,t=t._name):(e=hr(),(n=cr).time=$i(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,s=0;s<r;++s)for(var o,a=i[s],l=a.length,h=0;h<l;++h)(o=a[h])&&ji(o,t,e,h,a,n||dr(o,e));return new lr(i,this._parents,t,e)},pr.prototype={constructor:pr,scale:function(t){return 1===t?this:new pr(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new pr(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},pr.prototype;class fr extends Qt{getComputedStyleValue(t){return getComputedStyle(this).getPropertyValue(t).trim()}firstUpdated(t){super.firstUpdated(t),gn(this.renderRoot.host).classed("keyboard",!0).on("mousemove.keyboard touchstart.keyboard",(t=>{gn(t.currentTarget.renderRoot.host).classed("keyboard",!1).on("mousemove.keyboard touchstart.keyboard",null)})).on("keydown.keyboard",(t=>{gn(t.currentTarget.renderRoot.host).classed("keyboard",!0).on("keydown.keyboard mousemove.keyboard touchstart.keyboard",null)}))}static get greys(){const t="#999999",e={white:"#ffffff"};return e.light75=Qn(t,"#ffffff")(.75),e.light50=Qn(t,"#ffffff")(.5),e.light25=Qn(t,"#ffffff")(.25),e.grey=t,e.dark25=Qn(t,"#000000")(.25),e.dark50=Qn(t,"#000000")(.5),e.dark75=Qn(t,"#000000")(.75),e.black="#000000",e}static get shadows(){return{elevations:[0,2,4,8,16],baselineColor:"#000000",baselineColorString:"0, 0, 0",inverseBaselineColor:"#FFFFFF",inverseBaselineColorString:"255, 255, 255",opacityUmbra:.2,opacityPenumbra:.14,opacityAmbient:.12,opacityBoost:.2,mapUmbra:{0:{x:0,y:0,b:0,s:0},2:{x:0,y:3,b:1,s:-2},4:{x:0,y:2,b:4,s:-1},8:{x:0,y:5,b:5,s:-3},16:{x:0,y:8,b:10,s:-5}},mapPenumbra:{0:{x:0,y:0,b:0,s:0},2:{x:0,y:2,b:2,s:0},4:{x:0,y:4,b:5,s:0},8:{x:0,y:8,b:10,s:1},16:{x:0,y:16,b:24,s:2}},mapAmbient:{0:{x:0,y:0,b:0,s:0},2:{x:0,y:1,b:5,s:0},4:{x:0,y:1,b:10,s:0},8:{x:0,y:3,b:14,s:2},16:{x:0,y:6,b:30,s:5}}}}static cssBoxShadow(t,e=!1,n=!1){const i=this.shadows.opacityUmbra+this.shadows.opacityBoost,r=this.shadows.opacityPenumbra+this.shadows.opacityBoost,s=this.shadows.opacityAmbient+this.shadows.opacityBoost,o=n?`rgba(${this.shadows.inverseBaselineColorString}, ${i})`:`rgba(${this.shadows.baselineColorString}, ${i})`,a=n?`rgba(${this.shadows.inverseBaselineColorString}, ${r})`:`rgba(${this.shadows.baselineColorString}, ${r})`,l=n?`rgba(${this.shadows.inverseBaselineColorString}, ${s})`:`rgba(${this.shadows.baselineColorString}, ${s})`,h=this.shadows.mapUmbra[t],u=this.shadows.mapPenumbra[t],c=this.shadows.mapAmbient[t];return`${e?`${-h.y}px ${h.y/2}px ${h.b}px ${h.s}px`:`${h.y/2}px ${h.y}px ${h.b}px ${h.s}px`} ${o}, ${e?`${-u.y}px ${u.y/2}px ${u.b}px ${u.s}px`:`${u.y/2}px ${u.y}px ${u.b}px ${u.s}px`} ${a}, ${e?`${-c.y}px ${c.y/2}px ${c.b}px ${c.s}px`:`${c.y/2}px ${c.y}px ${c.b}px ${c.s}px`} ${l}`}static get svgFilters(){const t=fr.shadows,e=t.elevations.map((e=>Ot`
41
41
  <filter id=${`shadow-${e}`} x="-250%" y="-250%" width="600%" height="600%">
42
42
  <feComponentTransfer in="SourceAlpha" result="solid">
43
43
  <feFuncA type="table" tableValues="0 1 1"/>
@@ -45,9 +45,9 @@ var Vt,Xt;null==qt||qt(Mt,Tt),(null!==(lt=globalThis.litHtmlVersions)&&void 0!==
45
45
  <feOffset in="solid" result="offU" dx=${t.mapUmbra[e].y/2} dy=${t.mapUmbra[e].y} />
46
46
  <feOffset in="solid" result="offP" dx=${t.mapPenumbra[e].y/2} dy=${t.mapPenumbra[e].y} />
47
47
  <feOffset in="solid" result="offA" dx=${t.mapAmbient[e].y/2} dy=${t.mapAmbient[e].y} />
48
- ${0===t.mapUmbra[e].s?St``:St`<feMorphology in="offU" result="spreadU" operator=${t.mapUmbra[e].s>0?"dilate":"erode"} radius=${Math.abs(t.mapUmbra[e].s)} />`}
49
- ${0===t.mapPenumbra[e].s?St``:St`<feMorphology in="offP" result="spreadP" operator=${t.mapPenumbra[e].s>0?"dilate":"erode"} radius=${Math.abs(t.mapPenumbra[e].s)} />`}
50
- ${0===t.mapAmbient[e].s?St``:St`<feMorphology in="offA" result="spreadA" operator=${t.mapAmbient[e].s>0?"dilate":"erode"} radius=${Math.abs(t.mapAmbient[e].s)} />`}
48
+ ${0===t.mapUmbra[e].s?Ot``:Ot`<feMorphology in="offU" result="spreadU" operator=${t.mapUmbra[e].s>0?"dilate":"erode"} radius=${Math.abs(t.mapUmbra[e].s)} />`}
49
+ ${0===t.mapPenumbra[e].s?Ot``:Ot`<feMorphology in="offP" result="spreadP" operator=${t.mapPenumbra[e].s>0?"dilate":"erode"} radius=${Math.abs(t.mapPenumbra[e].s)} />`}
50
+ ${0===t.mapAmbient[e].s?Ot``:Ot`<feMorphology in="offA" result="spreadA" operator=${t.mapAmbient[e].s>0?"dilate":"erode"} radius=${Math.abs(t.mapAmbient[e].s)} />`}
51
51
  <feGaussianBlur in=${0===t.mapUmbra[e].s?"offU":"spreadU"} result="blurU" stdDeviation=${t.mapUmbra[e].b/2} />
52
52
  <feGaussianBlur in=${0===t.mapPenumbra[e].s?"offP":"spreadP"} result="blurP" stdDeviation=${t.mapPenumbra[e].b/2} />
53
53
  <feGaussianBlur in=${0===t.mapAmbient[e].s?"offA":"spreadA"} result="blurA" stdDeviation=${t.mapAmbient[e].b/2} />
@@ -67,30 +67,30 @@ var Vt,Xt;null==qt||qt(Mt,Tt),(null!==(lt=globalThis.litHtmlVersions)&&void 0!==
67
67
  <feMergeNode in="finalA" />
68
68
  <feMergeNode in="SourceGraphic" />
69
69
  </feMerge>
70
- </filter>`));return St`
70
+ </filter>`));return Ot`
71
71
  <svg class="defs">
72
72
  <defs>
73
73
  ${e}
74
74
  </defs>
75
75
  </svg>
76
- `}static get styles(){return Z`
76
+ `}static get styles(){return nt`
77
77
  :host {
78
- ---shadow-0: var(--shadow-0, ${J(this.cssBoxShadow(0))});
79
- ---shadow-2: var(--shadow-2, ${J(this.cssBoxShadow(2))});
80
- ---shadow-4: var(--shadow-4, ${J(this.cssBoxShadow(4))});
81
- ---shadow-8: var(--shadow-8, ${J(this.cssBoxShadow(8))});
82
-
83
- ---color-background: var(--color-background, ${J(this.greys.white)});
84
- ---color-border: var(--color-border, ${J(this.greys.light75)});
85
- ---color-text: var(--color-text, ${J(this.greys.dark75)});
86
- ---color-text-inverse: var(--color-text-inverse, ${J(this.greys.white)});
87
- ---color-link: var(--color-link, ${J(this.greys.dark25)});
88
- ---color-element-background: var(--color-element-background, ${J(this.greys.light75)});
89
- ---color-element-disabled: var(--color-element-disabled, ${J(this.greys.light50)});
90
- ---color-element-enabled: var(--color-element-enabled, ${J(this.greys.dark25)});
91
- ---color-element-selected: var(--color-element-selected, ${J(this.greys.grey)});
92
- ---color-element-border: var(--color-element-border, ${J(this.greys.dark50)});
93
- ---color-element-emphasis: var(--color-element-emphasis, ${J(this.greys.dark75)});
78
+ ---shadow-0: var(--shadow-0, ${et(this.cssBoxShadow(0))});
79
+ ---shadow-2: var(--shadow-2, ${et(this.cssBoxShadow(2))});
80
+ ---shadow-4: var(--shadow-4, ${et(this.cssBoxShadow(4))});
81
+ ---shadow-8: var(--shadow-8, ${et(this.cssBoxShadow(8))});
82
+
83
+ ---color-background: var(--color-background, ${et(this.greys.white)});
84
+ ---color-border: var(--color-border, ${et(this.greys.light75)});
85
+ ---color-text: var(--color-text, ${et(this.greys.dark75)});
86
+ ---color-text-inverse: var(--color-text-inverse, ${et(this.greys.white)});
87
+ ---color-link: var(--color-link, ${et(this.greys.dark25)});
88
+ ---color-element-background: var(--color-element-background, ${et(this.greys.light75)});
89
+ ---color-element-disabled: var(--color-element-disabled, ${et(this.greys.light50)});
90
+ ---color-element-enabled: var(--color-element-enabled, ${et(this.greys.dark25)});
91
+ ---color-element-selected: var(--color-element-selected, ${et(this.greys.grey)});
92
+ ---color-element-border: var(--color-element-border, ${et(this.greys.dark50)});
93
+ ---color-element-emphasis: var(--color-element-emphasis, ${et(this.greys.dark75)});
94
94
 
95
95
  ---font-family-base: var(--font-family-base, "Source Sans", sans-serif);
96
96
  ---font-family-math: var(--font-family-math, "Source Serif", serif);
@@ -130,7 +130,7 @@ var Vt,Xt;null==qt||qt(Mt,Tt),(null!==(lt=globalThis.litHtmlVersions)&&void 0!==
130
130
  width: 0;
131
131
  height: 0;
132
132
  }
133
- `}}class dr extends cr{static get properties(){return{disabled:{attribute:"disabled",type:Boolean,reflect:!0}}}constructor(){super(),this.disabled=!1}static get styles(){return[super.styles,Z`
133
+ `}}class br extends fr{static get properties(){return{disabled:{attribute:"disabled",type:Boolean,reflect:!0}}}constructor(){super(),this.disabled=!1}static get styles(){return[super.styles,nt`
134
134
  :host {
135
135
  margin: 0.25rem;
136
136
  }
@@ -183,21 +183,21 @@ var Vt,Xt;null==qt||qt(Mt,Tt),(null!==(lt=globalThis.litHtmlVersions)&&void 0!==
183
183
  outline: none;
184
184
  box-shadow: var(---shadow-8);
185
185
  }
186
- `]}render(){return kt`
186
+ `]}render(){return Mt`
187
187
  <button ?disabled=${this.disabled}>
188
188
  <slot></slot>
189
189
  </button>
190
- `}}customElements.define("decidables-button",dr);
190
+ `}}customElements.define("decidables-button",br);
191
191
  /**
192
192
  * @license
193
193
  * Copyright 2018 Google LLC
194
194
  * SPDX-License-Identifier: BSD-3-Clause
195
195
  */
196
- const pr=t=>null!=t?t:O;class fr extends cr{static get properties(){return{disabled:{attribute:"disabled",type:Boolean,reflect:!0},max:{attribute:"max",type:Number,reflect:!0},min:{attribute:"min",type:Number,reflect:!0},step:{attribute:"step",type:Number,reflect:!0},value:{attribute:"value",type:Number,reflect:!0}}}constructor(){super(),this.disabled=!1,this.max=void 0,this.min=void 0,this.step=void 0,this.value=void 0}changed(t){this.value=t.target.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0}))}inputted(t){this.value=t.target.value}static get styles(){return[super.styles,Z`
196
+ const vr=t=>null!=t?t:T;class yr extends fr{static get properties(){return{disabled:{attribute:"disabled",type:Boolean,reflect:!0},max:{attribute:"max",type:Number,reflect:!0},min:{attribute:"min",type:Number,reflect:!0},step:{attribute:"step",type:Number,reflect:!0},value:{attribute:"value",type:Number,reflect:!0}}}constructor(){super(),this.disabled=!1,this.max=void 0,this.min=void 0,this.step=void 0,this.value=void 0}changed(t){this.value=t.target.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0}))}inputted(t){this.value=t.target.value}static get styles(){return[super.styles,nt`
197
197
  :host {
198
- ---shadow-2-rotate: var(--shadow-2-rotate, ${J(this.cssBoxShadow(2,!0,!1))});
199
- ---shadow-4-rotate: var(--shadow-4-rotate, ${J(this.cssBoxShadow(4,!0,!1))});
200
- ---shadow-8-rotate: var(--shadow-8-rotate, ${J(this.cssBoxShadow(8,!0,!1))});
198
+ ---shadow-2-rotate: var(--shadow-2-rotate, ${et(this.cssBoxShadow(2,!0,!1))});
199
+ ---shadow-4-rotate: var(--shadow-4-rotate, ${et(this.cssBoxShadow(4,!0,!1))});
200
+ ---shadow-8-rotate: var(--shadow-8-rotate, ${et(this.cssBoxShadow(8,!0,!1))});
201
201
 
202
202
  display: flex;
203
203
 
@@ -443,15 +443,15 @@ const pr=t=>null!=t?t:O;class fr extends cr{static get properties(){return{disab
443
443
  :host(.keyboard) input[type=range]:enabled:focus:active::-ms-thumb {
444
444
  box-shadow: var(---shadow-8-rotate);
445
445
  }
446
- `]}render(){return kt`
446
+ `]}render(){return Mt`
447
447
  <label for="slider">
448
448
  <slot></slot>
449
449
  </label>
450
450
  <div class="range">
451
- <input type="range" id="slider" min=${pr(this.min)} max=${pr(this.max)} step=${pr(this.step)} .value=${this.value} @change=${this.changed.bind(this)} @input=${this.inputted.bind(this)}>
451
+ <input type="range" id="slider" min=${vr(this.min)} max=${vr(this.max)} step=${vr(this.step)} .value=${this.value} @change=${this.changed.bind(this)} @input=${this.inputted.bind(this)}>
452
452
  </div>
453
- <decidables-spinner min=${pr(this.min)} max=${pr(this.max)} step=${pr(this.step)} .value=${this.value} @input=${this.inputted.bind(this)}></decidables-spinner>
454
- `}}customElements.define("decidables-slider",fr);class br extends cr{static get properties(){return{disabled:{attribute:"disabled",type:Boolean,reflect:!0},max:{attribute:"max",type:Number,reflect:!0},min:{attribute:"min",type:Number,reflect:!0},step:{attribute:"step",type:Number,reflect:!0},value:{attribute:"value",type:Number,reflect:!0}}}constructor(){super(),this.disabled=!1,this.max=void 0,this.min=void 0,this.step=void 0,this.value=void 0}inputted(t){this.value=t.target.value}static get styles(){return[super.styles,Z`
453
+ <decidables-spinner min=${vr(this.min)} max=${vr(this.max)} step=${vr(this.step)} .value=${this.value} @input=${this.inputted.bind(this)}></decidables-spinner>
454
+ `}}customElements.define("decidables-slider",yr);class mr extends fr{static get properties(){return{disabled:{attribute:"disabled",type:Boolean,reflect:!0},max:{attribute:"max",type:Number,reflect:!0},min:{attribute:"min",type:Number,reflect:!0},step:{attribute:"step",type:Number,reflect:!0},value:{attribute:"value",type:Number,reflect:!0}}}constructor(){super(),this.disabled=!1,this.max=void 0,this.min=void 0,this.step=void 0,this.value=void 0}inputted(t){this.value=t.target.value}static get styles(){return[super.styles,nt`
455
455
  :host {
456
456
  ---decidables-spinner-font-size: var(--decidables-spinner-font-size, 1.125rem);
457
457
  ---decidables-spinner-input-width: var(--decidables-spinner-input-width, 4rem);
@@ -530,12 +530,12 @@ const pr=t=>null!=t?t:O;class fr extends cr{static get properties(){return{disab
530
530
  margin: 0;
531
531
  -webkit-appearance: none; /* stylelint-disable-line property-no-vendor-prefix */
532
532
  }
533
- `]}render(){return kt`
533
+ `]}render(){return Mt`
534
534
  <label>
535
535
  <slot></slot>
536
- <input ?disabled=${this.disabled} type="number" min=${pr(this.min)} max=${pr(this.max)} step=${pr(this.step)} .value=${this.value} @input=${this.inputted.bind(this)}>
536
+ <input ?disabled=${this.disabled} type="number" min=${vr(this.min)} max=${vr(this.max)} step=${vr(this.step)} .value=${this.value} @input=${this.inputted.bind(this)}>
537
537
  </label>
538
- `}}customElements.define("decidables-spinner",br);class vr extends cr{static get properties(){return{checked:{attribute:"checked",type:Boolean,reflect:!0},disabled:{attribute:"disabled",type:Boolean,reflect:!0}}}constructor(){super(),this.checked=!1,this.disabled=!1}changed(t){this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0}))}static get styles(){return[super.styles,Z`
538
+ `}}customElements.define("decidables-spinner",mr);class gr extends fr{static get properties(){return{checked:{attribute:"checked",type:Boolean,reflect:!0},disabled:{attribute:"disabled",type:Boolean,reflect:!0}}}constructor(){super(),this.checked=!1,this.disabled=!1}changed(t){this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0}))}static get styles(){return[super.styles,nt`
539
539
  :host {
540
540
  display: flex;
541
541
 
@@ -654,7 +654,7 @@ const pr=t=>null!=t?t:O;class fr extends cr{static get properties(){return{disab
654
654
  :host(.keyboard) input[type=checkbox]:enabled:focus:active + label + label::after {
655
655
  box-shadow: var(---shadow-8);
656
656
  }
657
- `]}render(){return kt`
657
+ `]}render(){return Mt`
658
658
  <input type="checkbox" id="switch" ?checked=${this.checked} ?disabled=${this.disabled} @change=${this.changed.bind(this)}>
659
659
  <label for="switch">
660
660
  <slot name="off-label"></slot>
@@ -662,7 +662,7 @@ const pr=t=>null!=t?t:O;class fr extends cr{static get properties(){return{disab
662
662
  <label for="switch">
663
663
  <slot></slot>
664
664
  </label>
665
- `}}customElements.define("decidables-switch",vr);class yr extends cr{static get properties(){return{disabled:{attribute:"disabled",type:Boolean,reflect:!0}}}constructor(){super(),this.disabled=!1}static get styles(){return[super.styles,Z`
665
+ `}}customElements.define("decidables-switch",gr);class _r extends fr{static get properties(){return{disabled:{attribute:"disabled",type:Boolean,reflect:!0}}}constructor(){super(),this.disabled=!1}static get styles(){return[super.styles,nt`
666
666
  fieldset {
667
667
  display: flex;
668
668
 
@@ -679,12 +679,12 @@ const pr=t=>null!=t?t:O;class fr extends cr{static get properties(){return{disab
679
679
  legend {
680
680
  text-align: center;
681
681
  }
682
- `]}render(){return kt`
682
+ `]}render(){return Mt`
683
683
  <fieldset ?disabled=${this.disabled}>
684
684
  <legend><slot name="label"></slot></legend>
685
685
  <slot></slot>
686
686
  </fieldset>
687
- `}}customElements.define("decidables-toggle",yr);class mr extends cr{static get properties(){return{checked:{attribute:"checked",type:Boolean,reflect:!0},disabled:{attribute:"disabled",type:Boolean,reflect:!0},name:{attribute:"name",type:String,reflect:!0},value:{attribute:"value",type:String,reflect:!0}}}constructor(){super(),this.checked=!1,this.disabled=!1,this.name=void 0,this.value=void 0}changed(t){this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,value:this.value},bubbles:!0}))}static get styles(){return[super.styles,Z`
687
+ `}}customElements.define("decidables-toggle",_r);class wr extends fr{static get properties(){return{checked:{attribute:"checked",type:Boolean,reflect:!0},disabled:{attribute:"disabled",type:Boolean,reflect:!0},name:{attribute:"name",type:String,reflect:!0},value:{attribute:"value",type:String,reflect:!0}}}constructor(){super(),this.checked=!1,this.disabled=!1,this.name=void 0,this.value=void 0}changed(t){this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,value:this.value},bubbles:!0}))}static get styles(){return[super.styles,nt`
688
688
  :host {
689
689
  display: flex;
690
690
  }
@@ -777,10 +777,10 @@ const pr=t=>null!=t?t:O;class fr extends cr{static get properties(){return{disab
777
777
  outline: none;
778
778
  box-shadow: var(---shadow-8);
779
779
  }
780
- `]}render(){return kt`
780
+ `]}render(){return Mt`
781
781
  <input type="radio" id="toggle-option" name=${this.name} value=${this.value} .checked=${this.checked} @change=${this.changed.bind(this)}>
782
782
  <label for="toggle-option">
783
783
  <slot></slot>
784
784
  </label>
785
- `}}customElements.define("decidables-toggle-option",mr);const gr={fromAttribute:t=>t.split(/\s+/).map((t=>Number.parseFloat(t))),toAttribute:t=>t.length?t.map((t=>t.toFixed(3))).join(" "):null},_r={fromAttribute:t=>new Set(t.split(/\s+/)),toAttribute:t=>t.size?[...t].join(" "):null};export{dr as DecidablesButton,gr as DecidablesConverterArray,_r as DecidablesConverterSet,cr as DecidablesElement,fr as DecidablesSlider,br as DecidablesSpinner,vr as DecidablesSwitch,yr as DecidablesToggle,mr as DecidablesToggleOption};
785
+ `}}customElements.define("decidables-toggle-option",wr);const $r={fromAttribute:t=>t.split(/\s+/).map((t=>Number.parseFloat(t))),toAttribute:t=>t.length?t.map((t=>t.toFixed(3))).join(" "):null},xr={fromAttribute:t=>new Set(t.split(/\s+/)),toAttribute:t=>t.size?[...t].join(" "):null};export{br as DecidablesButton,$r as DecidablesConverterArray,xr as DecidablesConverterSet,fr as DecidablesElement,yr as DecidablesSlider,mr as DecidablesSpinner,gr as DecidablesSwitch,_r as DecidablesToggle,wr as DecidablesToggleOption};
786
786
  //# sourceMappingURL=decidablesElements.esm.min.js.map