text: /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  const t="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,e=(t,e,i=null)=>{for(;e!==i;){const i=e.nextSibling;t.removeChild(e),e=i}},i=`{{lit-${String(Math.random()).slice(2)}}}`,n=`\x3c!--${i}--\x3e`,o=new RegExp(`${i}|${n}`);class r{constructor(t,e){this.parts=[],this.element=e;const n=[],r=[],s=document.createTreeWalker(e.content,133,null,!1);let c=0,h=-1,u=0;const{strings:p,values:{length:m}}=t;for(;u<m;){const t=s.nextNode();if(null!==t){if(h++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:i}=e;let n=0;for(let t=0;t<i;t++)a(e[t].name,"$lit$")&&n++;for(;n-- >0;){const e=p[u],i=d.exec(e)[2],n=i.toLowerCase()+"$lit$",r=t.getAttribute(n);t.removeAttribute(n);const a=r.split(o);this.parts.push({type:"attribute",index:h,name:i,strings:a}),u+=a.length-1}}"TEMPLATE"===t.tagName&&(r.push(t),s.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(i)>=0){const i=t.parentNode,r=e.split(o),s=r.length-1;for(let e=0;e<s;e++){let n,o=r[e];if(""===o)n=l();else{const t=d.exec(o);null!==t&&a(t[2],"$lit$")&&(o=o.slice(0,t.index)+t[1]+t[2].slice(0,-"$lit$".length)+t[3]),n=document.createTextNode(o)}i.insertBefore(n,t),this.parts.push({type:"node",index:++h})}""===r[s]?(i.insertBefore(l(),t),n.push(t)):t.data=r[s],u+=s}}else if(8===t.nodeType)if(t.data===i){const e=t.parentNode;null!==t.previousSibling&&h!==c||(h++,e.insertBefore(l(),t)),c=h,this.parts.push({type:"node",index:h}),null===t.nextSibling?t.data="":(n.push(t),h--),u++}else{let e=-1;for(;-1!==(e=t.data.indexOf(i,e+1));)this.parts.push({type:"node",index:-1}),u++}}else s.currentNode=r.pop()}for(const t of n)t.parentNode.removeChild(t)}}const a=(t,e)=>{const i=t.length-e.length;return i>=0&&t.slice(i)===e},s=t=>-1!==t.index,l=()=>document.createComment(""),d=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function c(t,e){const{element:{content:i},parts:n}=t,o=document.createTreeWalker(i,133,null,!1);let r=u(n),a=n[r],s=-1,l=0;const d=[];let c=null;for(;o.nextNode();){s++;const t=o.currentNode;for(t.previousSibling===c&&(c=null),e.has(t)&&(d.push(t),null===c&&(c=t)),null!==c&&l++;void 0!==a&&a.index===s;)a.index=null!==c?-1:a.index-l,r=u(n,r),a=n[r]}d.forEach(t=>t.parentNode.removeChild(t))}const h=t=>{let e=11===t.nodeType?0:1;const i=document.createTreeWalker(t,133,null,!1);for(;i.nextNode();)e++;return e},u=(t,e=-1)=>{for(let i=e+1;i<t.length;i++){const e=t[i];if(s(e))return i}return-1};
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  const p=new WeakMap,m=t=>(...e)=>{const i=t(...e);return p.set(i,!0),i},f=t=>"function"==typeof t&&p.has(t),g={},b={};
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  class v{constructor(t,e,i){this.__parts=[],this.template=t,this.processor=e,this.options=i}update(t){let e=0;for(const i of this.__parts)void 0!==i&&i.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const e=t?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),i=[],n=this.template.parts,o=document.createTreeWalker(e,133,null,!1);let r,a=0,l=0,d=o.nextNode();for(;a<n.length;)if(r=n[a],s(r)){for(;l<r.index;)l++,"TEMPLATE"===d.nodeName&&(i.push(d),o.currentNode=d.content),null===(d=o.nextNode())&&(o.currentNode=i.pop(),d=o.nextNode());if("node"===r.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(d.previousSibling),this.__parts.push(t)}else this.__parts.push(...this.processor.handleAttributeExpressions(d,r.name,r.strings,this.options));a++}else this.__parts.push(void 0),a++;return t&&(document.adoptNode(e),customElements.upgrade(e)),e}}
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */const y=` ${i} `;class _{constructor(t,e,i,n){this.strings=t,this.values=e,this.type=i,this.processor=n}getHTML(){const t=this.strings.length-1;let e="",o=!1;for(let r=0;r<t;r++){const t=this.strings[r],a=t.lastIndexOf("\x3c!--");o=(a>-1||o)&&-1===t.indexOf("--\x3e",a+1);const s=d.exec(t);e+=null===s?t+(o?y:n):t.substr(0,s.index)+s[1]+s[2]+"$lit$"+s[3]+i}return e+=this.strings[t],e}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */const x=t=>null===t||!("object"==typeof t||"function"==typeof t),w=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class S{constructor(t,e,i){this.dirty=!0,this.element=t,this.name=e,this.strings=i,this.parts=[];for(let t=0;t<i.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new C(this)}_getValue(){const t=this.strings,e=t.length-1;let i="";for(let n=0;n<e;n++){i+=t[n];const e=this.parts[n];if(void 0!==e){const t=e.value;if(x(t)||!w(t))i+="string"==typeof t?t:String(t);else for(const e of t)i+="string"==typeof e?e:String(e)}}return i+=t[e],i}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class C{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===g||x(t)&&t===this.value||(this.value=t,f(t)||(this.committer.dirty=!0))}commit(){for(;f(this.value);){const t=this.value;this.value=g,t(this)}this.value!==g&&this.committer.commit()}}class T{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(l()),this.endNode=t.appendChild(l())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=l()),t.__insert(this.endNode=l())}insertAfterPart(t){t.__insert(this.startNode=l()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(null===this.startNode.parentNode)return;for(;f(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=g,t(this)}const t=this.__pendingValue;t!==g&&(x(t)?t!==this.value&&this.__commitText(t):t instanceof _?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):w(t)?this.__commitIterable(t):t===b?(this.value=b,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,i="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=i:this.__commitNode(document.createTextNode(i)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof v&&this.value.template===e)this.value.update(t.values);else{const i=new v(e,t.processor,this.options),n=i._clone();i.update(t.values),this.__commitNode(n),this.value=i}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let i,n=0;for(const o of t)i=e[n],void 0===i&&(i=new T(this.options),e.push(i),0===n?i.appendIntoPart(this):i.insertAfterPart(e[n-1])),i.setValue(o),i.commit(),n++;n<e.length&&(e.length=n,this.clear(i&&i.endNode))}clear(t=this.startNode){e(this.startNode.parentNode,t.nextSibling,this.endNode)}}class E{constructor(t,e,i){if(this.value=void 0,this.__pendingValue=void 0,2!==i.length||""!==i[0]||""!==i[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=i}setValue(t){this.__pendingValue=t}commit(){for(;f(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=g,t(this)}if(this.__pendingValue===g)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=g}}class k extends S{constructor(t,e,i){super(t,e,i),this.single=2===i.length&&""===i[0]&&""===i[1]}_createPart(){return new A(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class A extends C{}let I=!1;(()=>{try{const t={get capture(){return I=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}})();class O{constructor(t,e,i){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=i,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;f(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=g,t(this)}if(this.__pendingValue===g)return;const t=this.__pendingValue,e=this.value,i=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),n=null!=t&&(null==e||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),n&&(this.__options=M(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=g}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const M=t=>t&&(I?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */;function D(t){let e=L.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},L.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const o=t.strings.join(i);return n=e.keyString.get(o),void 0===n&&(n=new r(t,t.getTemplateElement()),e.keyString.set(o,n)),e.stringsArray.set(t.strings,n),n}const L=new Map,F=new WeakMap;
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */const P=new
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  class{handleAttributeExpressions(t,e,i,n){const o=e[0];if("."===o){return new k(t,e.slice(1),i).parts}return"@"===o?[new O(t,e.slice(1),n.eventContext)]:"?"===o?[new E(t,e.slice(1),i)]:new S(t,e,i).parts}handleTextExpression(t){return new T(t)}};
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.2.1");const R=(t,...e)=>new _(t,e,"html",P)
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */,N=(t,e)=>`${t}--${e}`;let z=!0;void 0===window.ShadyCSS?z=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),z=!1);const V=t=>e=>{const n=N(e.type,t);let o=L.get(n);void 0===o&&(o={stringsArray:new WeakMap,keyString:new Map},L.set(n,o));let a=o.stringsArray.get(e.strings);if(void 0!==a)return a;const s=e.strings.join(i);if(a=o.keyString.get(s),void 0===a){const i=e.getTemplateElement();z&&window.ShadyCSS.prepareTemplateDom(i,t),a=new r(e,i),o.keyString.set(s,a)}return o.stringsArray.set(e.strings,a),a},B=["html","svg"],H=new Set,j=(t,e,i)=>{H.add(t);const n=i?i.element:document.createElement("template"),o=e.querySelectorAll("style"),{length:r}=o;if(0===r)return void window.ShadyCSS.prepareTemplateStyles(n,t);const a=document.createElement("style");for(let t=0;t<r;t++){const e=o[t];e.parentNode.removeChild(e),a.textContent+=e.textContent}(t=>{B.forEach(e=>{const i=L.get(N(e,t));void 0!==i&&i.keyString.forEach(t=>{const{element:{content:e}}=t,i=new Set;Array.from(e.querySelectorAll("style")).forEach(t=>{i.add(t)}),c(t,i)})})})(t);const s=n.content;i?function(t,e,i=null){const{element:{content:n},parts:o}=t;if(null==i)return void n.appendChild(e);const r=document.createTreeWalker(n,133,null,!1);let a=u(o),s=0,l=-1;for(;r.nextNode();){for(l++,r.currentNode===i&&(s=h(e),i.parentNode.insertBefore(e,i));-1!==a&&o[a].index===l;){if(s>0){for(;-1!==a;)o[a].index+=s,a=u(o,a);return}a=u(o,a)}}}(i,a,s.firstChild):s.insertBefore(a,s.firstChild),window.ShadyCSS.prepareTemplateStyles(n,t);const l=s.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==l)e.insertBefore(l.cloneNode(!0),e.firstChild);else if(i){s.insertBefore(a,s.firstChild);const t=new Set;t.add(a),c(i,t)}};window.JSCompiler_renameProperty=(t,e)=>t;const U={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},$=(t,e)=>e!==t&&(e==e||t==t),W={attribute:!0,type:String,converter:U,reflect:!1,hasChanged:$};class q extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=new Promise(t=>this._enableUpdatingResolver=t),this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach((e,i)=>{const n=this._attributeNameForProperty(i,e);void 0!==n&&(this._attributeToPropertyMap.set(n,i),t.push(n))}),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((t,e)=>this._classProperties.set(e,t))}}static createProperty(t,e=W){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const i="symbol"==typeof t?Symbol():`__${t}`,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(i){const n=this[t];this[e]=i,this._requestUpdate(t,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this._classProperties&&this._classProperties.get(t)||W}static finalize(){const t=Object.getPrototypeOf(this);if(t.hasOwnProperty("finalized")||t.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const i of e)this.createProperty(i,t[i])}}static _attributeNameForProperty(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,i=$){return i(t,e)}static _propertyValueFromAttribute(t,e){const i=e.type,n=e.converter||U,o="function"==typeof n?n:n.fromAttribute;return o?o(t,i):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const i=e.type,n=e.converter;return(n&&n.toAttribute||U.toAttribute)(t,i)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}})}_applyInstanceProperties(){this._instanceProperties.forEach((t,e)=>this[e]=t),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,i){e!==i&&this._attributeToProperty(t,i)}_propertyToAttribute(t,e,i=W){const n=this.constructor,o=n._attributeNameForProperty(t,i);if(void 0!==o){const t=n._propertyValueToAttribute(e,i);if(void 0===t)return;this._updateState=8|this._updateState,null==t?this.removeAttribute(o):this.setAttribute(o,t),this._updateState=-9&this._updateState}}_attributeToProperty(t,e){if(8&this._updateState)return;const i=this.constructor,n=i._attributeToPropertyMap.get(t);if(void 0!==n){const t=i.getPropertyOptions(n);this._updateState=16|this._updateState,this[n]=i._propertyValueFromAttribute(e,t),this._updateState=-17&this._updateState}}_requestUpdate(t,e){let i=!0;if(void 0!==t){const n=this.constructor,o=n.getPropertyOptions(t);n._valueHasChanged(this[t],e,o.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==o.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,o))):i=!1}!this._hasRequestedUpdate&&i&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(t,e){return this._requestUpdate(t,e),this.updateComplete}async _enqueueUpdate(){this._updateState=4|this._updateState;try{await this._updatePromise}catch(t){}const t=this.performUpdate();return null!=t&&await t,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let t=!1;const e=this._changedProperties;try{t=this.shouldUpdate(e),t?this.update(e):this._markUpdated()}catch(e){throw t=!1,this._markUpdated(),e}t&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(e)),this.updated(e))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((t,e)=>this._propertyToAttribute(e,this[e],t)),this._reflectingProperties=void 0),this._markUpdated()}updated(t){}firstUpdated(t){}}q.finalized=!0;
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  const G=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){window.customElements.define(t,e)}}})(t,e),Y=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?Object.assign(Object.assign({},e),{finisher(i){i.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function Z(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):Y(t,e)}function X(t){return(e,i)=>{const n={get(){return this.renderRoot.querySelector(t)},enumerable:!0,configurable:!0};return void 0!==i?K(n,e,i):J(n,e)}}const K=(t,e,i)=>{Object.defineProperty(e,i,t)},J=(t,e)=>({kind:"method",placement:"prototype",key:e.key,descriptor:t})
  /**
  @license
  Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
  This code may only be used under the BSD style license found at
  http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
  http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
  found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
  part of the polymer project is also subject to an additional IP rights grant
  found at http://polymer.github.io/PATENTS.txt
  */,Q="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tt=Symbol();class et{constructor(t,e){if(e!==tt)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return void 0===this._styleSheet&&(Q?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const it=(t,...e)=>{const i=e.reduce((e,i,n)=>e+(t=>{if(t instanceof et)return t.cssText;if("number"==typeof t)return t;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${t}. Use 'unsafeCSS' to pass non-literal values, but\n            take care to ensure page security.`)})(i)+t[n+1],t[0]);return new et(i,tt)};
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  (window.litElementVersions||(window.litElementVersions=[])).push("2.3.1");const nt={};class ot extends q{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(void 0===t)this._styles=[];else if(Array.isArray(t)){const e=(t,i)=>t.reduceRight((t,i)=>Array.isArray(i)?e(i,t):(t.add(i),t),i),i=e(t,new Set),n=[];i.forEach(t=>n.unshift(t)),this._styles=n}else this._styles=[t]}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?Q?this.renderRoot.adoptedStyleSheets=t.map(t=>t.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map(t=>t.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==nt&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)}))}render(){return nt}}ot.finalized=!0,ot.render=(t,i,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");const o=n.scopeName,r=F.has(i),a=z&&11===i.nodeType&&!!i.host,s=a&&!H.has(o),l=s?document.createDocumentFragment():i;if(((t,i,n)=>{let o=F.get(i);void 0===o&&(e(i,i.firstChild),F.set(i,o=new T(Object.assign({templateFactory:D},n))),o.appendInto(i)),o.setValue(t),o.commit()})(t,l,Object.assign({templateFactory:V(o)},n)),s){const t=F.get(l);F.delete(l);const n=t.value instanceof v?t.value.template:void 0;j(o,l,n),e(i,i.firstChild),i.appendChild(l),F.set(i,t)}!r&&a&&window.ShadyCSS.styleElement(i.host)};customElements.define("covid-sc-map",class extends ot{constructor(){super(),this.spotmap={},this.hotspots=[]}static get properties(){return{spotmap:{type:Object},hotspots:{type:Object}}}static get styles(){return it`:host{height:inherit;width:inherit}`}render(){return R` <div id="map" style="height:inherit; width: inherit"></div> `}firstUpdated(){this.loadMap()}loadMap(){if(void 0===window.google){const t=document.createElement("script"),e="AIzaSyBx6seaJUAP-r-6eePDE1IGQCXosHcQZbY";t.src=`//maps.googleapis.com/maps/api/js?key=${e}`,t.onload=function(){this.map=this.initMap(),window.map=this.map}.bind(this),document.body.append(t)}else this.map=this.initMap(),window.map=this.map}initMap(){return new window.google.maps.Map(this.shadowRoot.getElementById("map"),{zoom:7.1,center:{lat:33.71,lng:-81.0348},mapTypeId:"terrain"})}drawCircles(t,e){let i;for(const n in e){e[n].center={lat:parseFloat(e[n].center.lat),lng:parseFloat(e[n].center.lng)},e[n].hasOwnProperty("fillOpacity")||(e[n].fillOpacity=.35);const o=new window.google.maps.Circle({strokeColor:e[n].color,strokeOpacity:e[n].strokeOpacity,strokeWeight:0,fillColor:e[n].color,fillOpacity:e[n].fillOpacity,map:t,center:e[n].center,radius:100*Math.sqrt(e[n].population),clickable:!0});e[n].contentString=`<div id="content"><div id="covidDataInfo"></div><h5 id="firstHeading" class="firstHeading">${e[n].header}</h5>`+`<div id="bodyContent">${e[n].content}</div>`+"</div>",i=new google.maps.InfoWindow,google.maps.event.addListener(o,"click",function(n,o){return function(){i.setContent(e[o].contentString),i.setPosition(n.getCenter()),i.open(t)}}(o,n))}}updated(t){t.forEach((t,e)=>{"hotspots"===e&&this.hotspots.confirmedCircles&&window.map&&this.drawCircles(window.map,this.hotspots.confirmedCircles),"hotspots"===e&&this.hotspots.deathCircles&&window.map&&this.drawCircles(window.map,this.hotspots.deathCircles)})}});
  /*! *****************************************************************************
  Copyright (c) Microsoft Corporation. All rights reserved.
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  this file except in compliance with the License. You may obtain a copy of the
  License at http://www.apache.org/licenses/LICENSE-2.0
  
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  MERCHANTABLITY OR NON-INFRINGEMENT.
  
  See the Apache Version 2.0 License for specific language governing permissions
  and limitations under the License.
  ***************************************************************************** */
  var rt=function(t,e){return(rt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function at(t,e){function i(){this.constructor=t}rt(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var st=function(){return(st=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function lt(t,e,i,n){var o,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a}
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  const dt=it`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:400;font-style:normal;font-size:var(--mdc-icon-size,24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`;let ct=class extends ot{render(){return R`<slot></slot>`}};
  /**
   * @license
   * Copyright 2019 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */
  function ht(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var i={get passive(){return e=!0,!1}},n=function(){};t.document.addEventListener("test",n,i),t.document.removeEventListener("test",n,i)}catch(t){e=!1}return e}
  /**
   * @license
   * Copyright 2018 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */(t)&&{passive:!0}}function ut(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}
  /**
   * @license
   * Copyright 2016 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */ct.styles=dt,ct=lt([G("mwc-icon")],ct);var pt,mt=function(){function t(t){void 0===t&&(t={}),this.adapter_=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),ft={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},gt={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},bt={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
  /**
   * @license
   * Copyright 2016 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */
  /**
   * @license
   * Copyright 2016 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */
  var vt=["touchstart","pointerdown","mousedown","keydown"],yt=["touchend","pointerup","mouseup","contextmenu"],_t=[],xt=function(t){function e(i){var n=t.call(this,st({},e.defaultAdapter,i))||this;return n.activationAnimationHasEnded_=!1,n.activationTimer_=0,n.fgDeactivationRemovalTimer_=0,n.fgScale_="0",n.frame_={width:0,height:0},n.initialSize_=0,n.layoutFrame_=0,n.maxRadius_=0,n.unboundedCoords_={left:0,top:0},n.activationState_=n.defaultActivationState_(),n.activationTimerCallback_=function(){n.activationAnimationHasEnded_=!0,n.runDeactivationUXLogicIfReady_()},n.activateHandler_=function(t){return n.activate_(t)},n.deactivateHandler_=function(){return n.deactivate_()},n.focusHandler_=function(){return n.handleFocus()},n.blurHandler_=function(){return n.handleBlur()},n.resizeHandler_=function(){return n.layout()},n}return at(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return ft},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return gt},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return bt},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple_();if(this.registerRootHandlers_(i),i){var n=e.cssClasses,o=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame((function(){t.adapter_.addClass(o),t.adapter_.isUnbounded()&&(t.adapter_.addClass(r),t.layoutInternal_())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter_.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter_.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,n=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter_.removeClass(n),t.adapter_.removeClass(o),t.removeCssVars_()}))}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},e.prototype.activate=function(t){this.activate_(t)},e.prototype.deactivate=function(){this.deactivate_()},e.prototype.layout=function(){var t=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame((function(){t.layoutInternal_(),t.layoutFrame_=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter_.addClass(i):this.adapter_.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter_.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter_.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple_=function(){return this.adapter_.browserSupportsCssVars()},e.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers_=function(t){var e=this;t&&(vt.forEach((function(t){e.adapter_.registerInteractionHandler(t,e.activateHandler_)})),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_)},e.prototype.registerDeactivationHandlers_=function(t){var e=this;"keydown"===t.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):yt.forEach((function(t){e.adapter_.registerDocumentInteractionHandler(t,e.deactivateHandler_)}))},e.prototype.deregisterRootHandlers_=function(){var t=this;vt.forEach((function(e){t.adapter_.deregisterInteractionHandler(e,t.activateHandler_)})),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)},e.prototype.deregisterDeactivationHandlers_=function(){var t=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),yt.forEach((function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)}))},e.prototype.removeCssVars_=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(i[e],null)}))},e.prototype.activate_=function(t){var e=this;if(!this.adapter_.isSurfaceDisabled()){var i=this.activationState_;if(!i.isActivated){var n=this.previousActivationEvent_;if(!(n&&void 0!==t&&n.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&_t.length>0&&_t.some((function(t){return e.adapter_.containsEventTarget(t)}))?this.resetActivationState_():(void 0!==t&&(_t.push(t.target),this.registerDeactivationHandlers_(t)),i.wasElementMadeActive=this.checkElementMadeActive_(t),i.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame((function(){_t=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive_(t),i.wasElementMadeActive&&e.animateActivation_()),i.wasElementMadeActive||(e.activationState_=e.defaultActivationState_())})))}}},e.prototype.checkElementMadeActive_=function(t){return void 0===t||"keydown"!==t.type||this.adapter_.isSurfaceActive()},e.prototype.animateActivation_=function(){var t=this,i=e.strings,n=i.VAR_FG_TRANSLATE_START,o=i.VAR_FG_TRANSLATE_END,r=e.cssClasses,a=r.FG_DEACTIVATION,s=r.FG_ACTIVATION,l=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var d="",c="";if(!this.adapter_.isUnbounded()){var h=this.getFgTranslationCoordinates_(),u=h.startPoint,p=h.endPoint;d=u.x+"px, "+u.y+"px",c=p.x+"px, "+p.y+"px"}this.adapter_.updateCssVariable(n,d),this.adapter_.updateCssVariable(o,c),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(a),this.adapter_.computeBoundingRect(),this.adapter_.addClass(s),this.activationTimer_=setTimeout((function(){return t.activationTimerCallback_()}),l)},e.prototype.getFgTranslationCoordinates_=function(){var t,e=this.activationState_,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var n,o,r=e.x,a=e.y,s=r+i.left,l=a+i.top;if("touchstart"===t.type){var d=t;n=d.changedTouches[0].pageX-s,o=d.changedTouches[0].pageY-l}else{var c=t;n=c.pageX-s,o=c.pageY-l}return{x:n,y:o}}(i,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:t.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},e.prototype.runDeactivationUXLogicIfReady_=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,n=this.activationState_,o=n.hasDeactivationUXRun,r=n.isActivated;(o||!r)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter_.addClass(i),this.fgDeactivationRemovalTimer_=setTimeout((function(){t.adapter_.removeClass(i)}),bt.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses_=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(t),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()},e.prototype.resetActivationState_=function(){var t=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout((function(){return t.previousActivationEvent_=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivate_=function(){var t=this,e=this.activationState_;if(e.isActivated){var i=st({},e);e.isProgrammatic?(requestAnimationFrame((function(){return t.animateDeactivation_(i)})),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame((function(){t.activationState_.hasDeactivationUXRun=!0,t.animateDeactivation_(i),t.resetActivationState_()})))}},e.prototype.animateDeactivation_=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady_()},e.prototype.layoutInternal_=function(){var t=this;this.frame_=this.adapter_.computeBoundingRect();var i=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter_.isUnbounded()?i:Math.sqrt(Math.pow(t.frame_.width,2)+Math.pow(t.frame_.height,2))+e.numbers.PADDING;var n=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter_.isUnbounded()&&n%2!=0?this.initialSize_=n-1:this.initialSize_=n,this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},e.prototype.updateLayoutCssVars_=function(){var t=e.strings,i=t.VAR_FG_SIZE,n=t.VAR_LEFT,o=t.VAR_TOP,r=t.VAR_FG_SCALE;this.adapter_.updateCssVariable(i,this.initialSize_+"px"),this.adapter_.updateCssVariable(r,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(n,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(o,this.unboundedCoords_.top+"px"))},e}(mt);
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  const wt=it`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(.4,0,.2,1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity,0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity,0)}to{opacity:0}}`
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */,St=function(t,e){void 0===e&&(e=!1);var i,n=t.CSS;if("boolean"==typeof pt&&!e)return pt;if(!(n&&"function"==typeof n.supports))return!1;var o=n.supports("--css-vars","yes"),r=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return i=o||r,e||(pt=i),i}(window),Ct=navigator.userAgent.match(/Safari/);let Tt=!1;const Et=t=>{Ct&&!Tt&&(()=>{Tt=!0;const t=document.createElement("style"),e=new T({templateFactory:D});e.appendInto(t),e.setValue(wt),e.commit(),document.head.appendChild(t)})();const e=t.surfaceNode,i=t.interactionNode||e;i.getRootNode()!==e.getRootNode()&&""===i.style.position&&(i.style.position="relative");const n=new xt({browserSupportsCssVars:()=>St,isUnbounded:()=>void 0===t.unbounded||t.unbounded,isSurfaceActive:()=>ut(i,":active"),isSurfaceDisabled:()=>Boolean(i.hasAttribute("disabled")),addClass:t=>e.classList.add(t),removeClass:t=>e.classList.remove(t),containsEventTarget:t=>i.contains(t),registerInteractionHandler:(t,e)=>i.addEventListener(t,e,ht()),deregisterInteractionHandler:(t,e)=>i.removeEventListener(t,e,ht()),registerDocumentInteractionHandler:(t,e)=>document.documentElement.addEventListener(t,e,ht()),deregisterDocumentInteractionHandler:(t,e)=>document.documentElement.removeEventListener(t,e,ht()),registerResizeHandler:t=>window.addEventListener("resize",t),deregisterResizeHandler:t=>window.removeEventListener("resize",t),updateCssVariable:(t,i)=>e.style.setProperty(t,i),computeBoundingRect:()=>e.getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})});return n.init(),n},kt=new WeakMap,At=m((t={})=>e=>{const i=e.committer.element,n=t.interactionNode||i;let o=e.value;const r=kt.get(o);void 0!==r&&r!==n&&(o.destroy(),o=g),o===g?(o=Et(Object.assign({},t,{surfaceNode:i})),kt.set(o,n),e.setValue(o)):(void 0!==t.unbounded&&o.setUnbounded(t.unbounded),void 0!==t.disabled&&o.setUnbounded(t.disabled)),!0===t.active?o.activate():!1===t.active&&o.deactivate()});
  /**
   * @license
   * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  class It{constructor(t){this.classes=new Set,this.changed=!1,this.element=t;const e=(t.getAttribute("class")||"").split(/\s+/);for(const t of e)this.classes.add(t)}add(t){this.classes.add(t),this.changed=!0}remove(t){this.classes.delete(t),this.changed=!0}commit(){if(this.changed){let t="";this.classes.forEach(e=>t+=e+" "),this.element.setAttribute("class",t)}}}const Ot=new WeakMap,Mt=m(t=>e=>{if(!(e instanceof C)||e instanceof A||"class"!==e.committer.name||e.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");const{committer:i}=e,{element:n}=i;let o=Ot.get(e);void 0===o&&(n.setAttribute("class",i.strings.join(" ")),Ot.set(e,o=new Set));const r=n.classList||new It(n);o.forEach(e=>{e in t||(r.remove(e),o.delete(e))});for(const e in t){const i=t[e];i!=o.has(e)&&(i?(r.add(e),o.add(e)):(r.remove(e),o.delete(e)))}"function"==typeof r.commit&&r.commit()});class Dt extends ot{constructor(){super(...arguments),this.raised=!1,this.unelevated=!1,this.outlined=!1,this.dense=!1,this.disabled=!1,this.trailingIcon=!1,this.fullwidth=!1,this.icon="",this.label=""}createRenderRoot(){return this.attachShadow({mode:"open",delegatesFocus:!0})}focus(){const t=this.buttonElement;if(t){const e=t.ripple;e&&e.handleFocus(),t.focus()}}blur(){const t=this.buttonElement;if(t){const e=t.ripple;e&&e.handleBlur(),t.blur()}}render(){const t={"mdc-button--raised":this.raised,"mdc-button--unelevated":this.unelevated,"mdc-button--outlined":this.outlined,"mdc-button--dense":this.dense};return R` <button id="button" class="mdc-button ${Mt(t)}" ?disabled="${this.disabled}" aria-label="${this.label||this.icon}"> <div class="mdc-button__ripple"></div> <span class="leading-icon"> <slot name="icon"> ${this.icon&&!this.trailingIcon?this.renderIcon(this.icon):""} </slot> </span> <span class="mdc-button__label">${this.label}</span> <slot></slot> <span class="trailing-icon"> <slot name="trailingIcon"> ${this.icon&&this.trailingIcon?this.renderIcon(this.icon):""} </slot> </span> </button>`}renderIcon(t){return R` <mwc-icon class="mdc-button__icon"> ${t} </mwc-icon>`}firstUpdated(){this.buttonElement.ripple=Et({surfaceNode:this.buttonElement,unbounded:!1})}}lt([Z({type:Boolean})],Dt.prototype,"raised",void 0),lt([Z({type:Boolean})],Dt.prototype,"unelevated",void 0),lt([Z({type:Boolean})],Dt.prototype,"outlined",void 0),lt([Z({type:Boolean})],Dt.prototype,"dense",void 0),lt([Z({type:Boolean,reflect:!0})],Dt.prototype,"disabled",void 0),lt([Z({type:Boolean})],Dt.prototype,"trailingIcon",void 0),lt([Z({type:Boolean,reflect:!0})],Dt.prototype,"fullwidth",void 0),lt([Z({type:String})],Dt.prototype,"icon",void 0),lt([Z({type:String})],Dt.prototype,"label",void 0),lt([X("#button")],Dt.prototype,"buttonElement",void 0);
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  const Lt=it`.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;opacity:0;pointer-events:none;transition:opacity 280ms cubic-bezier(.4,0,.2,1);background-color:#fff}.mdc-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-button-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.875rem;font-size:var(--mdc-typography-button-font-size,.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height,2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight,500);letter-spacing:.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing,.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration,none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform,uppercase);padding:0 8px 0 8px;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:0;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;border-radius:4px}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:0}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button .mdc-button__ripple{border-radius:4px}.mdc-button:not(:disabled){background-color:transparent}.mdc-button:disabled{background-color:transparent}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;width:18px;height:18px;font-size:18px;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__touch{position:absolute;top:50%;right:0;height:48px;left:0;transform:translateY(-50%)}.mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary,#6200ee)}.mdc-button:disabled{color:rgba(0,0,0,.38)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--raised .mdc-button__icon,.mdc-button--unelevated .mdc-button__icon,.mdc-button--outlined .mdc-button__icon{margin-left:-4px;margin-right:8px}[dir=rtl] .mdc-button--raised .mdc-button__icon,.mdc-button--raised .mdc-button__icon[dir=rtl],[dir=rtl] .mdc-button--unelevated .mdc-button__icon,.mdc-button--unelevated .mdc-button__icon[dir=rtl],[dir=rtl] .mdc-button--outlined .mdc-button__icon,.mdc-button--outlined .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mdc-button--raised .mdc-button__label+.mdc-button__icon,.mdc-button--unelevated .mdc-button__label+.mdc-button__icon,.mdc-button--outlined .mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mdc-button--raised .mdc-button__label+.mdc-button__icon,.mdc-button--raised .mdc-button__label+.mdc-button__icon[dir=rtl],[dir=rtl] .mdc-button--unelevated .mdc-button__label+.mdc-button__icon,.mdc-button--unelevated .mdc-button__label+.mdc-button__icon[dir=rtl],[dir=rtl] .mdc-button--outlined .mdc-button__label+.mdc-button__icon,.mdc-button--outlined .mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mdc-button--raised,.mdc-button--unelevated{padding:0 16px 0 16px}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){background-color:#6200ee;background-color:var(--mdc-theme-primary,#6200ee)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){color:#fff;color:var(--mdc-theme-on-primary,#fff)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{background-color:rgba(0,0,0,.12)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{color:rgba(0,0,0,.38)}.mdc-button--raised{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mdc-button--raised:hover,.mdc-button--raised:focus{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mdc-button--raised:active{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mdc-button--raised:disabled{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mdc-button--outlined{padding:0 15px 0 15px;border-width:1px;border-style:solid}.mdc-button--outlined .mdc-button__ripple{top:-1px;left:-1px;border:1px solid transparent}.mdc-button--outlined:not(:disabled){border-color:rgba(0,0,0,.12)}.mdc-button--outlined:disabled{border-color:rgba(0,0,0,.12)}.mdc-button--touch{margin-top:6px;margin-bottom:6px}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(.4,0,.2,1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity,0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity,0)}to{opacity:0}}.mdc-button{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent}.mdc-button .mdc-button__ripple::before,.mdc-button .mdc-button__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-button .mdc-button__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1}.mdc-button.mdc-ripple-upgraded .mdc-button__ripple::before{transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-button.mdc-ripple-upgraded .mdc-button__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-button.mdc-ripple-upgraded--unbounded .mdc-button__ripple::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-button.mdc-ripple-upgraded--foreground-activation .mdc-button__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-button.mdc-ripple-upgraded--foreground-deactivation .mdc-button__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-button .mdc-button__ripple::before,.mdc-button .mdc-button__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-button.mdc-ripple-upgraded .mdc-button__ripple::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-button .mdc-button__ripple::before,.mdc-button .mdc-button__ripple::after{background-color:#6200ee;background-color:var(--mdc-theme-primary,#6200ee)}.mdc-button:hover .mdc-button__ripple::before{opacity:.04}.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__ripple::before,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__ripple::before{transition-duration:75ms;opacity:.12}.mdc-button:not(.mdc-ripple-upgraded) .mdc-button__ripple::after{transition:opacity 150ms linear}.mdc-button:not(.mdc-ripple-upgraded):active .mdc-button__ripple::after{transition-duration:75ms;opacity:.12}.mdc-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:0.12}.mdc-button .mdc-button__ripple{position:absolute;box-sizing:content-box;width:100%;height:100%;overflow:hidden}.mdc-button:not(.mdc-button--outlined) .mdc-button__ripple{top:0;left:0}.mdc-button--raised .mdc-button__ripple::before,.mdc-button--raised .mdc-button__ripple::after,.mdc-button--unelevated .mdc-button__ripple::before,.mdc-button--unelevated .mdc-button__ripple::after{background-color:#fff;background-color:var(--mdc-theme-on-primary,#fff)}.mdc-button--raised:hover .mdc-button__ripple::before,.mdc-button--unelevated:hover .mdc-button__ripple::before{opacity:.08}.mdc-button--raised.mdc-ripple-upgraded--background-focused .mdc-button__ripple::before,.mdc-button--raised:not(.mdc-ripple-upgraded):focus .mdc-button__ripple::before,.mdc-button--unelevated.mdc-ripple-upgraded--background-focused .mdc-button__ripple::before,.mdc-button--unelevated:not(.mdc-ripple-upgraded):focus .mdc-button__ripple::before{transition-duration:75ms;opacity:.24}.mdc-button--raised:not(.mdc-ripple-upgraded) .mdc-button__ripple::after,.mdc-button--unelevated:not(.mdc-ripple-upgraded) .mdc-button__ripple::after{transition:opacity 150ms linear}.mdc-button--raised:not(.mdc-ripple-upgraded):active .mdc-button__ripple::after,.mdc-button--unelevated:not(.mdc-ripple-upgraded):active .mdc-button__ripple::after{transition-duration:75ms;opacity:.24}.mdc-button--raised.mdc-ripple-upgraded,.mdc-button--unelevated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:0.24}.mdc-button{height:36px}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon,.leading-icon ::slotted(*),.leading-icon .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;width:18px;height:18px;font-size:18px;vertical-align:top}[dir=rtl] .trailing-icon ::slotted(*),.trailing-icon ::slotted(*)[dir=rtl],[dir=rtl] .trailing-icon .mdc-button__icon,.trailing-icon .mdc-button__icon[dir=rtl],[dir=rtl] .leading-icon ::slotted(*),.leading-icon ::slotted(*)[dir=rtl],[dir=rtl] .leading-icon .mdc-button__icon,.leading-icon .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .trailing-icon ::slotted(*),.trailing-icon ::slotted(*)[dir=rtl],[dir=rtl] .trailing-icon .mdc-button__icon,.trailing-icon .mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}.mdc-button--raised{box-shadow:var(--mdc-button-raised-box-shadow,0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12))}.mdc-button--raised:hover,.mdc-button--raised:focus{box-shadow:var(--mdc-button-raised-box-shadow-hover,0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12))}.mdc-button--raised:active{box-shadow:var(--mdc-button-raised-box-shadow-active,0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12))}.mdc-button--raised:disabled{box-shadow:var(--mdc-button-raised-box-shadow-disabled,0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12))}:host{display:inline-flex;outline:0;vertical-align:top}:host([disabled]){pointer-events:none}:host([fullwidth]){width:100%}.mdc-button{flex:auto;overflow:hidden;padding:0 var(--mdc-button-horizontal-padding,8px) 0 var(--mdc-button-horizontal-padding,8px)}.mdc-button.mdc-button--raised,.mdc-button.mdc-button--unelevated{padding:0 var(--mdc-button-horizontal-padding,16px) 0 var(--mdc-button-horizontal-padding,16px)}.mdc-button.mdc-button--outlined{padding:0 calc(var(--mdc-button-horizontal-padding,16px) - var(--mdc-button-outline-width,1px)) 0 calc(var(--mdc-button-horizontal-padding,16px) - var(--mdc-button-outline-width,1px));border-width:var(--mdc-button-outline-width,1px);border-color:var(--mdc-button-outline-color,var(--mdc-theme-primary,#6200ee))}.mdc-button.mdc-button--dense{height:28px;margin-top:0;margin-bottom:0}.mdc-button.mdc-button--dense .mdc-button__touch{display:none}.mdc-button .mdc-button__ripple{border-radius:0}:host([disabled]) .mdc-button.mdc-button--raised,:host([disabled]) .mdc-button.mdc-button--unelevated{background-color:var(--mdc-button-disabled-fill-color,rgba(0,0,0,.12));color:var(--mdc-button-disabled-ink-color,rgba(0,0,0,.38))}:host([disabled]) .mdc-button:not(.mdc-button--raised):not(.mdc-button--unelevated){color:var(--mdc-button-disabled-ink-color,rgba(0,0,0,.38))}:host([disabled]) .mdc-button.mdc-button--outlined{border-color:var(--mdc-button-disabled-ink-color,rgba(0,0,0,.38));border-color:var(--mdc-button-disabled-outline-color,var(--mdc-button-disabled-ink-color,rgba(0,0,0,.38)))}`;let Ft=class extends Dt{};Ft.styles=Lt,Ft=lt([G("mwc-button")],Ft);
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  const Pt=t=>t.nodeType===Node.ELEMENT_NODE;function Rt(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}let Nt=!1;const zt=()=>{},Vt={get passive(){return Nt=!0,!1}};document.addEventListener("x",zt,Vt),document.removeEventListener("x",zt);const Bt=Nt,Ht=(t=window.document)=>{let e=t.activeElement;const i=[];if(!e)return i;for(;e&&(i.push(e),e.shadowRoot);)e=e.shadowRoot.activeElement;return i},jt=t=>{const e=Ht();if(!e.length)return!1;const i=e[e.length-1],n=new Event("check-if-focused",{bubbles:!0,composed:!0});let o=[];const r=t=>{o=t.composedPath()};return document.body.addEventListener("check-if-focused",r),i.dispatchEvent(n),document.body.removeEventListener("check-if-focused",r),-1!==o.indexOf(t)};
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  class Ut extends ot{createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
  /**
   * @license
   * Copyright 2018 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */var $t={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},Wt={NOTCH_ELEMENT_PADDING:8},qt={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},Gt=function(t){function e(i){return t.call(this,st({},e.defaultAdapter,i))||this}return at(e,t),Object.defineProperty(e,"strings",{get:function(){return $t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return qt},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Wt},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!0,configurable:!0}),e.prototype.notch=function(t){var i=e.cssClasses.OUTLINE_NOTCHED;t>0&&(t+=Wt.NOTCH_ELEMENT_PADDING),this.adapter_.setNotchWidthProperty(t),this.adapter_.addClass(i)},e.prototype.closeNotch=function(){var t=e.cssClasses.OUTLINE_NOTCHED;this.adapter_.removeClass(t),this.adapter_.removeNotchWidthProperty()},e}(mt);class Yt extends Ut{constructor(){super(...arguments),this.mdcFoundationClass=Gt,this.width=0,this.open=!1,this.lastOpen=this.open}createAdapter(){return{addClass:t=>this.mdcRoot.classList.add(t),removeClass:t=>this.mdcRoot.classList.remove(t),setNotchWidthProperty:t=>this.notchElement.style.setProperty("width",`${t}px`),removeNotchWidthProperty:()=>this.notchElement.style.removeProperty("width")}}openOrClose(t,e){this.mdcFoundation&&(t&&void 0!==e?this.mdcFoundation.notch(e):this.mdcFoundation.closeNotch())}render(){return this.openOrClose(this.open,this.width),R` <span class="mdc-notched-outline"> <span class="mdc-notched-outline__leading"></span> <span class="mdc-notched-outline__notch"> <slot></slot> </span> <span class="mdc-notched-outline__trailing"></span> </span>`}}lt([X(".mdc-notched-outline")],Yt.prototype,"mdcRoot",void 0),lt([Z({type:Number})],Yt.prototype,"width",void 0),lt([Z({type:Boolean,reflect:!0})],Yt.prototype,"open",void 0),lt([X(".mdc-notched-outline__notch")],Yt.prototype,"notchElement",void 0);
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  const Zt=it`.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / .75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{padding:0}:host{display:block;position:absolute;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] :host,:host[dir=rtl]{text-align:right}::slotted(.mdc-floating-label){display:inline-block;position:relative;top:17px;bottom:auto;max-width:100%}::slotted(.mdc-floating-label--float-above){text-overflow:clip}.mdc-notched-outline--upgraded ::slotted(.mdc-floating-label--float-above){max-width:calc(100% / .75)}.mdc-notched-outline__leading{width:12px;width:var(--mdc-notched-outline-leading-width,12px);border-radius:4px 0 0 4px;border-radius:var(--mdc-notched-outline-leading-border-radius,4px 0 0 4px)}.mdc-notched-outline__trailing{border-radius:0 4px 4px 0;border-radius:var(--mdc-notched-outline-trailing-border-radius,0 4px 4px 0)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-color:var(--mdc-notched-outline-border-color,var(--mdc-theme-primary,#6200ee));border-width:1px;border-width:var(--mdc-notched-outline-stroke-width,1px)}`;let Xt=class extends Yt{};Xt.styles=Zt,Xt=lt([G("mwc-notched-outline")],Xt);const Kt=t=>(e,i)=>{if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){const t=e.constructor._observers;e.constructor._observers=new Map,t.forEach((t,i)=>e.constructor._observers.set(i,t))}}else{e.constructor._observers=new Map;const t=e.updated;e.updated=function(e){t.call(this,e),e.forEach((t,e)=>{const i=this.constructor._observers.get(e);void 0!==i&&i.call(this,this[e],t)})}}e.constructor._observers.set(i,t)}
  /**
   * @license
   * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */,Jt=new WeakMap,Qt=m(t=>e=>{const i=Jt.get(e);if(void 0===t&&e instanceof C){if(void 0!==i||!Jt.has(e)){const t=e.committer.name;e.committer.element.removeAttribute(t)}}else t!==i&&e.setValue(t);Jt.set(e,t)});
  /**
   * @license
   * Copyright 2018 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */
  var te="mdc-list-item",ee="mdc-list-item--disabled",ie={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n    ."+te+" button:not(:disabled),\n    ."+te+" a\n  ",FOCUSABLE_CHILD_ELEMENTS:"\n    ."+te+" button:not(:disabled),\n    ."+te+" a,\n    ."+te+' input[type="radio"]:not(:disabled),\n    .'+te+' input[type="checkbox"]:not(:disabled)\n  ',RADIO_SELECTOR:'input[type="radio"]'},ne={UNSET_INDEX:-1};
  /**
   @license
   Copyright 2020 Google Inc. All Rights Reserved.
  
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at
  
   http://www.apache.org/licenses/LICENSE-2.0
  
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
   */
  const oe=["input","button","textarea","select"];function re(t){return t instanceof Set}const ae=t=>{const e=t===ne.UNSET_INDEX?new Set:t;return re(e)?new Set(e):new Set([e])};class se extends mt{constructor(t){super(Object.assign(Object.assign({},se.defaultAdapter),t)),this.isMulti_=!1,this.wrapFocus_=!1,this.isVertical_=!0,this.selectedIndex_=ne.UNSET_INDEX,this.focusedItemIndex_=ne.UNSET_INDEX,this.useActivatedClass_=!1,this.ariaCurrentAttrValue_=null}static get strings(){return ie}static get numbers(){return ne}static get defaultAdapter(){return{focusItemAtIndex:()=>{},getFocusedElementIndex:()=>0,getListItemCount:()=>0,isFocusInsideList:()=>!1,isRootFocused:()=>!1,notifyAction:()=>{},notifySelected:()=>{},getSelectedStateForElementIndex:()=>!1,setDisabledStateForElementIndex:()=>{},getDisabledStateForElementIndex:()=>!1,setSelectedStateForElementIndex:()=>{},setActivatedStateForElementIndex:()=>{},setTabIndexForElementIndex:()=>{},setAttributeForElementIndex:()=>{},getAttributeForElementIndex:()=>null}}setWrapFocus(t){this.wrapFocus_=t}setMulti(t){this.isMulti_=t;const e=this.selectedIndex_;if(t){if(!re(e)){const t=e===ne.UNSET_INDEX;this.selectedIndex_=t?new Set:new Set([e])}}else if(re(e))if(e.size){const t=Array.from(e).sort();this.selectedIndex_=t[0]}else this.selectedIndex_=ne.UNSET_INDEX}setVerticalOrientation(t){this.isVertical_=t}setUseActivatedClass(t){this.useActivatedClass_=t}getSelectedIndex(){return this.selectedIndex_}setSelectedIndex(t){this.isIndexValid_(t)&&(this.isMulti_?this.setMultiSelectionAtIndex_(ae(t)):this.setSingleSelectionAtIndex_(t))}handleFocusIn(t,e){e>=0&&this.adapter_.setTabIndexForElementIndex(e,0)}handleFocusOut(t,e){e>=0&&this.adapter_.setTabIndexForElementIndex(e,-1),setTimeout(()=>{this.adapter_.isFocusInsideList()||this.setTabindexToFirstSelectedItem_()},0)}handleKeydown(t,e,i){const n="ArrowLeft"===t.key||37===t.keyCode,o="ArrowUp"===t.key||38===t.keyCode,r="ArrowRight"===t.key||39===t.keyCode,a="ArrowDown"===t.key||40===t.keyCode,s="Home"===t.key||36===t.keyCode,l="End"===t.key||35===t.keyCode,d="Enter"===t.key||13===t.keyCode,c="Space"===t.key||32===t.keyCode;if(this.adapter_.isRootFocused())return void(o||l?(t.preventDefault(),this.focusLastElement()):(a||s)&&(t.preventDefault(),this.focusFirstElement()));let h,u=this.adapter_.getFocusedElementIndex();if(!(-1===u&&(u=i,u<0))){if(this.isVertical_&&a||!this.isVertical_&&r)this.preventDefaultEvent_(t),h=this.focusNextElement(u);else if(this.isVertical_&&o||!this.isVertical_&&n)this.preventDefaultEvent_(t),h=this.focusPrevElement(u);else if(s)this.preventDefaultEvent_(t),h=this.focusFirstElement();else if(l)this.preventDefaultEvent_(t),h=this.focusLastElement();else if((d||c)&&e){const e=t.target;if(e&&"A"===e.tagName&&d)return;this.preventDefaultEvent_(t),this.setSelectedIndexOnAction_(u,!0)}this.focusedItemIndex_=u,void 0!==h&&(this.setTabindexAtIndex_(h),this.focusedItemIndex_=h)}}handleSingleSelection(t,e,i){t!==ne.UNSET_INDEX&&(this.setSelectedIndexOnAction_(t,e,i),this.setTabindexAtIndex_(t),this.focusedItemIndex_=t)}focusNextElement(t){let e=t+1;if(e>=this.adapter_.getListItemCount()){if(!this.wrapFocus_)return t;e=0}return this.adapter_.focusItemAtIndex(e),e}focusPrevElement(t){let e=t-1;if(e<0){if(!this.wrapFocus_)return t;e=this.adapter_.getListItemCount()-1}return this.adapter_.focusItemAtIndex(e),e}focusFirstElement(){return this.adapter_.focusItemAtIndex(0),0}focusLastElement(){const t=this.adapter_.getListItemCount()-1;return this.adapter_.focusItemAtIndex(t),t}setEnabled(t,e){this.isIndexValid_(t)&&this.adapter_.setDisabledStateForElementIndex(t,!e)}preventDefaultEvent_(t){const e=`${t.target.tagName}`.toLowerCase();-1===oe.indexOf(e)&&t.preventDefault()}setSingleSelectionAtIndex_(t,e=!0){this.selectedIndex_!==t&&(this.selectedIndex_!==ne.UNSET_INDEX&&(this.adapter_.setSelectedStateForElementIndex(this.selectedIndex_,!1),this.useActivatedClass_&&this.adapter_.setActivatedStateForElementIndex(this.selectedIndex_,!1)),e&&this.adapter_.setSelectedStateForElementIndex(t,!0),this.useActivatedClass_&&this.adapter_.setActivatedStateForElementIndex(t,!0),this.setAriaForSingleSelectionAtIndex_(t),this.selectedIndex_=t,this.adapter_.notifySelected(t))}setMultiSelectionAtIndex_(t,e=!0){const i=((t,e)=>{const i=Array.from(t),n=Array.from(e),o={added:[],removed:[]},r=i.sort(),a=n.sort();let s=0,l=0;for(;s<r.length||l<a.length;){const t=r[s],e=a[l];t!==e?void 0!==t&&(void 0===e||t<e)?(o.removed.push(t),s++):void 0!==e&&(void 0===t||e<t)&&(o.added.push(e),l++):(s++,l++)}return o})(ae(this.selectedIndex_),t);if(i.removed.length||i.added.length){for(const t of i.removed)e&&this.adapter_.setSelectedStateForElementIndex(t,!1),this.useActivatedClass_&&this.adapter_.setActivatedStateForElementIndex(t,!1);for(const t of i.added)e&&this.adapter_.setSelectedStateForElementIndex(t,!0),this.useActivatedClass_&&this.adapter_.setActivatedStateForElementIndex(t,!0);this.selectedIndex_=t,this.adapter_.notifySelected(t,i)}}setAriaForSingleSelectionAtIndex_(t){this.selectedIndex_===ne.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter_.getAttributeForElementIndex(t,ie.ARIA_CURRENT));const e=null!==this.ariaCurrentAttrValue_,i=e?ie.ARIA_CURRENT:ie.ARIA_SELECTED;this.selectedIndex_!==ne.UNSET_INDEX&&this.adapter_.setAttributeForElementIndex(this.selectedIndex_,i,"false");const n=e?this.ariaCurrentAttrValue_:"true";this.adapter_.setAttributeForElementIndex(t,i,n)}setTabindexAtIndex_(t){this.focusedItemIndex_===ne.UNSET_INDEX&&0!==t?this.adapter_.setTabIndexForElementIndex(0,-1):this.focusedItemIndex_>=0&&this.focusedItemIndex_!==t&&this.adapter_.setTabIndexForElementIndex(this.focusedItemIndex_,-1),this.adapter_.setTabIndexForElementIndex(t,0)}setTabindexToFirstSelectedItem_(){let t=0;"number"==typeof this.selectedIndex_&&this.selectedIndex_!==ne.UNSET_INDEX?t=this.selectedIndex_:re(this.selectedIndex_)&&this.selectedIndex_.size>0&&(t=Math.min(...this.selectedIndex_)),this.setTabindexAtIndex_(t)}isIndexValid_(t){if(t instanceof Set){if(!this.isMulti_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");if(0===t.size)return!0;{let e=!1;for(const i of t)if(e=this.isIndexInRange_(i),e)break;return e}}if("number"==typeof t){if(this.isMulti_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return t===ne.UNSET_INDEX||this.isIndexInRange_(t)}return!1}isIndexInRange_(t){const e=this.adapter_.getListItemCount();return t>=0&&t<e}setSelectedIndexOnAction_(t,e,i){if(this.adapter_.getDisabledStateForElementIndex(t))return;let n=t;if(this.isMulti_&&(n=new Set([t])),this.isIndexValid_(n)){if(this.isMulti_)this.toggleMultiAtIndex(t,i,e);else if(e||i)this.setSingleSelectionAtIndex_(t,e);else{this.selectedIndex_===t&&this.setSingleSelectionAtIndex_(ne.UNSET_INDEX)}e&&this.adapter_.notifyAction(t)}}toggleMultiAtIndex(t,e,i=!0){let n=!1;n=void 0===e?!this.adapter_.getSelectedStateForElementIndex(t):e;const o=ae(this.selectedIndex_);n?o.add(t):o.delete(t),this.setMultiSelectionAtIndex_(o,i)}}
  /**
  @license
  Copyright 2020 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */const le=t=>t.hasAttribute("mwc-list-item");class de extends Ut{constructor(){super(...arguments),this.mdcAdapter=null,this.mdcFoundationClass=se,this.activatable=!1,this.multi=!1,this.wrapFocus=!1,this.itemRoles=null,this.innerRole=null,this.innerAriaLabel=null,this.rootTabbable=!1,this.previousTabindex=null,this.noninteractive=!1,this.items_=[]}get assignedElements(){const t=this.slotElement;return t?t.assignedNodes({flatten:!0}).filter(Pt):[]}get items(){return this.items_}updateItems(){const t=this.assignedElements,e=[];for(const i of t)le(i)&&e.push(i),i.hasAttribute("divider")&&!i.hasAttribute("role")&&i.setAttribute("role","separator");this.items_=e;const i=new Set;if(this.items_.forEach((t,e)=>{this.itemRoles?t.setAttribute("role",this.itemRoles):t.removeAttribute("role"),t.selected&&i.add(e)}),this.multi)this.select(i);else{const t=i.size?i.entries().next().value[1]:-1;this.select(t)}}get selected(){const t=this.index;if(!re(t))return-1===t?null:this.items[t];const e=[];for(const i of t)e.push(this.items[i]);return e}get index(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}render(){const t=null===this.innerRole?void 0:this.innerRole,e=null===this.innerAriaLabel?void 0:this.innerAriaLabel,i=this.rootTabbable?"0":"-1";return R` <ul tabindex="${i}" role="${Qt(t)}" aria-label="${Qt(e)}" class="mdc-list" @keydown="${this.onKeydown}" @focusin="${this.onFocusIn}" @focusout="${this.onFocusOut}" @request-selected="${this.onRequestSelected}" @list-item-rendered="${this.onListItemConnected}"> <slot></slot> </ul> `}firstUpdated(){super.firstUpdated(),this.items.length||(this.mdcFoundation.setMulti(this.multi),this.layout())}onFocusIn(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t);this.mdcFoundation.handleFocusIn(t,e)}}onFocusOut(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t);this.mdcFoundation.handleFocusOut(t,e)}}onKeydown(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t),i=t.target,n=le(i);this.mdcFoundation.handleKeydown(t,n,e)}}onRequestSelected(t){if(this.mdcFoundation){const e=this.getIndexOfTarget(t);if(-1===e)return;if(this.items[e].disabled)return;const i=t.detail.selected,n=t.detail.source;this.mdcFoundation.handleSingleSelection(e,"interaction"===n,i),t.stopPropagation()}}getIndexOfTarget(t){const e=this.items,i=t.composedPath();for(const t of i){let i=-1;if(Pt(t)&&le(t)&&(i=e.indexOf(t)),-1!==i)return i}return-1}createAdapter(){return this.mdcAdapter={getListItemCount:()=>this.mdcRoot?this.items.length:0,getFocusedElementIndex:()=>{if(!this.mdcRoot)return-1;if(!this.items.length)return-1;const t=Ht();if(!t.length)return-1;for(let e=t.length-1;e>=0;e--){const i=t[e];if(le(i))return this.items.indexOf(i)}return-1},getAttributeForElementIndex:(t,e)=>{if(!this.mdcRoot)return"";const i=this.items[t];return i?i.getAttribute(e):""},setAttributeForElementIndex:(t,e,i)=>{if(!this.mdcRoot)return;const n=this.items[t];n&&n.setAttribute(e,i)},focusItemAtIndex:t=>{const e=this.items[t];e&&e.focus()},setTabIndexForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.tabindex=e)},notifyAction:t=>{const e={bubbles:!0,composed:!0};e.detail={index:t};const i=new CustomEvent("action",e);this.dispatchEvent(i)},notifySelected:(t,e)=>{const i={bubbles:!0,composed:!0};i.detail={index:t,diff:e};const n=new CustomEvent("selected",i);this.dispatchEvent(n)},isFocusInsideList:()=>jt(this),isRootFocused:()=>{const t=this.mdcRoot;return t.getRootNode().activeElement===t},setDisabledStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.disabled=e)},getDisabledStateForElementIndex:t=>{const e=this.items[t];return!!e&&e.disabled},setSelectedStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.selected=e)},getSelectedStateForElementIndex:t=>{const e=this.items[t];return!!e&&e.selected},setActivatedStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.activated=e)}},this.mdcAdapter}selectUi(t,e=!1){const i=this.items[t];i&&(i.selected=!0,i.activated=e)}deselectUi(t){const e=this.items[t];e&&(e.selected=!1,e.activated=!1)}select(t){this.mdcFoundation&&this.mdcFoundation.setSelectedIndex(t)}toggle(t,e){this.multi&&this.mdcFoundation.toggleMultiAtIndex(t,e)}onListItemConnected(t){const e=t.target;this.layout(-1===this.items.indexOf(e))}layout(t=!0){t&&this.updateItems();const e=this.items[0];for(const t of this.items)t.tabindex=-1;e&&(this.noninteractive?this.previousTabindex||(this.previousTabindex=e):e.tabindex=0)}focus(){const t=this.mdcRoot;t&&t.focus()}blur(){const t=this.mdcRoot;t&&t.blur()}}lt([X(".mdc-list")],de.prototype,"mdcRoot",void 0),lt([X("slot")],de.prototype,"slotElement",void 0),lt([Z({type:Boolean}),Kt((function(t){this.mdcFoundation&&this.mdcFoundation.setUseActivatedClass(t)}))],de.prototype,"activatable",void 0),lt([Z({type:Boolean}),Kt((function(t,e){this.mdcFoundation&&this.mdcFoundation.setMulti(t),void 0!==e&&this.layout()}))],de.prototype,"multi",void 0),lt([Z({type:Boolean}),Kt((function(t){this.mdcFoundation&&this.mdcFoundation.setWrapFocus(t)}))],de.prototype,"wrapFocus",void 0),lt([Z({type:String}),Kt((function(t,e){void 0!==e&&this.updateItems()}))],de.prototype,"itemRoles",void 0),lt([Z({type:String})],de.prototype,"innerRole",void 0),lt([Z({type:String})],de.prototype,"innerAriaLabel",void 0),lt([Z({type:Boolean})],de.prototype,"rootTabbable",void 0),lt([Z({type:Boolean,reflect:!0}),Kt((function(t){const e=this.slotElement;if(t&&e){const t=function(t,e){for(const i of t.assignedNodes({flatten:!0}))if(Pt(i)){const t=i;if(ut(t,e))return t}return null}(e,'[tabindex="0"]');this.previousTabindex=t,t&&t.setAttribute("tabindex","-1")}else!t&&this.previousTabindex&&(this.previousTabindex.setAttribute("tabindex","0"),this.previousTabindex=null)}))],de.prototype,"noninteractive",void 0);
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  const ce=it`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(.4,0,.2,1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity,0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity,0)}to{opacity:0}}:host{display:block}.mdc-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size,1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height,1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing,.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));padding:var(--mdc-list-vertical-padding,8px) 0}.mdc-list:focus{outline:0}.mdc-list-item{height:48px}.mdc-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0,0,0,.12)}.mdc-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding,16px)}.mdc-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin,72px);margin-right:0;width:calc(100% - var(--mdc-list-inset-margin,72px))}.mdc-list-group[dir=rtl] .mdc-list ::slotted([divider][inset]),[dir=rtl] .mdc-list-group .mdc-list ::slotted([divider][inset]){margin-left:0;margin-right:var(--mdc-list-inset-margin,72px)}.mdc-list ::slotted([divider][inset][padded]){width:calc(100% - var(--mdc-list-inset-margin,72px) - var(--mdc-list-side-padding,16px))}.mdc-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size:20px}.mdc-list--two-line.mdc-list--dense ::slotted([mwc-list-item]),.mdc-list--avatar-list.mdc-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-list--avatar-list.mdc-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size:36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-list--dense ::slotted(.mdc-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list--dense ::slotted(.mdc-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list--dense ::slotted(.mdc-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`
  /**
  @license
  Copyright 2020 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */;let he=class extends de{};he.styles=ce,he=lt([G("mwc-list")],he);
  /**
   * @license
   * Copyright 2018 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */
  var ue,pe,me={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},fe={CLOSED_EVENT:"MDCMenuSurface:closed",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},ge={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67};!function(t){t[t.BOTTOM=1]="BOTTOM",t[t.CENTER=2]="CENTER",t[t.RIGHT=4]="RIGHT",t[t.FLIP_RTL=8]="FLIP_RTL"}(ue||(ue={})),function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=4]="TOP_RIGHT",t[t.BOTTOM_LEFT=1]="BOTTOM_LEFT",t[t.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",t[t.TOP_START=8]="TOP_START",t[t.TOP_END=12]="TOP_END",t[t.BOTTOM_START=9]="BOTTOM_START",t[t.BOTTOM_END=13]="BOTTOM_END"}(pe||(pe={}));
  /**
   * @license
   * Copyright 2018 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */
  var be,ve=function(t){function e(i){var n=t.call(this,st({},e.defaultAdapter,i))||this;return n.isOpen_=!1,n.isQuickOpen_=!1,n.isHoistedElement_=!1,n.isFixedPosition_=!1,n.openAnimationEndTimerId_=0,n.closeAnimationEndTimerId_=0,n.animationRequestId_=0,n.anchorCorner_=pe.TOP_START,n.anchorMargin_={top:0,right:0,bottom:0,left:0},n.position_={x:0,y:0},n}return at(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return me},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return fe},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return ge},enumerable:!0,configurable:!0}),Object.defineProperty(e,"Corner",{get:function(){return pe},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyOpen:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){var t=e.cssClasses,i=t.ROOT,n=t.OPEN;if(!this.adapter_.hasClass(i))throw new Error(i+" class required in root element.");this.adapter_.hasClass(n)&&(this.isOpen_=!0)},e.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId_),clearTimeout(this.closeAnimationEndTimerId_),cancelAnimationFrame(this.animationRequestId_)},e.prototype.setAnchorCorner=function(t){this.anchorCorner_=t},e.prototype.setAnchorMargin=function(t){this.anchorMargin_.top=t.top||0,this.anchorMargin_.right=t.right||0,this.anchorMargin_.bottom=t.bottom||0,this.anchorMargin_.left=t.left||0},e.prototype.setIsHoisted=function(t){this.isHoistedElement_=t},e.prototype.setFixedPosition=function(t){this.isFixedPosition_=t},e.prototype.setAbsolutePosition=function(t,e){this.position_.x=this.isFinite_(t)?t:0,this.position_.y=this.isFinite_(e)?e:0},e.prototype.setQuickOpen=function(t){this.isQuickOpen_=t},e.prototype.isOpen=function(){return this.isOpen_},e.prototype.open=function(){var t=this;this.adapter_.saveFocus(),this.isQuickOpen_||this.adapter_.addClass(e.cssClasses.ANIMATING_OPEN),this.animationRequestId_=requestAnimationFrame((function(){t.adapter_.addClass(e.cssClasses.OPEN),t.dimensions_=t.adapter_.getInnerDimensions(),t.autoPosition_(),t.isQuickOpen_?t.adapter_.notifyOpen():t.openAnimationEndTimerId_=setTimeout((function(){t.openAnimationEndTimerId_=0,t.adapter_.removeClass(e.cssClasses.ANIMATING_OPEN),t.adapter_.notifyOpen()}),ge.TRANSITION_OPEN_DURATION)})),this.isOpen_=!0},e.prototype.close=function(t){var i=this;void 0===t&&(t=!1),this.isQuickOpen_||this.adapter_.addClass(e.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function(){i.adapter_.removeClass(e.cssClasses.OPEN),i.isQuickOpen_?i.adapter_.notifyClose():i.closeAnimationEndTimerId_=setTimeout((function(){i.closeAnimationEndTimerId_=0,i.adapter_.removeClass(e.cssClasses.ANIMATING_CLOSED),i.adapter_.notifyClose()}),ge.TRANSITION_CLOSE_DURATION)})),this.isOpen_=!1,t||this.maybeRestoreFocus_()},e.prototype.handleBodyClick=function(t){var e=t.target;this.adapter_.isElementInContainer(e)||this.close()},e.prototype.handleKeydown=function(t){var e=t.keyCode;("Escape"===t.key||27===e)&&this.close()},e.prototype.autoPosition_=function(){var t;this.measurements_=this.getAutoLayoutMeasurements_();var e=this.getOriginCorner_(),i=this.getMenuSurfaceMaxHeight_(e),n=this.hasBit_(e,ue.BOTTOM)?"bottom":"top",o=this.hasBit_(e,ue.RIGHT)?"right":"left",r=this.getHorizontalOriginOffset_(e),a=this.getVerticalOriginOffset_(e),s=this.measurements_,l=s.anchorSize,d=s.surfaceSize,c=((t={})[o]=r,t[n]=a,t);l.width/d.width>ge.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(o="center"),(this.isHoistedElement_||this.isFixedPosition_)&&this.adjustPositionForHoistedElement_(c),this.adapter_.setTransformOrigin(o+" "+n),this.adapter_.setPosition(c),this.adapter_.setMaxHeight(i?i+"px":"")},e.prototype.getAutoLayoutMeasurements_=function(){var t=this.adapter_.getAnchorDimensions(),e=this.adapter_.getBodyDimensions(),i=this.adapter_.getWindowDimensions(),n=this.adapter_.getWindowScroll();return t||(t={top:this.position_.y,right:this.position_.x,bottom:this.position_.y,left:this.position_.x,width:0,height:0}),{anchorSize:t,bodySize:e,surfaceSize:this.dimensions_,viewportDistance:{top:t.top,right:i.width-t.right,bottom:i.height-t.bottom,left:t.left},viewportSize:i,windowScroll:n}},e.prototype.getOriginCorner_=function(){var t=pe.TOP_LEFT,e=this.measurements_,i=e.viewportDistance,n=e.anchorSize,o=e.surfaceSize,r=this.hasBit_(this.anchorCorner_,ue.BOTTOM),a=r?i.top+n.height+this.anchorMargin_.bottom:i.top+this.anchorMargin_.top,s=r?i.bottom-this.anchorMargin_.bottom:i.bottom+n.height-this.anchorMargin_.top,l=o.height-a,d=o.height-s;d>0&&l<d&&(t=this.setBit_(t,ue.BOTTOM));var c=this.adapter_.isRtl(),h=this.hasBit_(this.anchorCorner_,ue.FLIP_RTL),u=this.hasBit_(this.anchorCorner_,ue.RIGHT),p=u&&!c||!u&&h&&c,m=p?i.left+n.width+this.anchorMargin_.right:i.left+this.anchorMargin_.left,f=p?i.right-this.anchorMargin_.right:i.right+n.width-this.anchorMargin_.left,g=o.width-m,b=o.width-f;return(g<0&&p&&c||u&&!p&&g<0||b>0&&g<b)&&(t=this.setBit_(t,ue.RIGHT)),t},e.prototype.getMenuSurfaceMaxHeight_=function(t){var i=this.measurements_.viewportDistance,n=0,o=this.hasBit_(t,ue.BOTTOM),r=this.hasBit_(this.anchorCorner_,ue.BOTTOM),a=e.numbers.MARGIN_TO_EDGE;return o?(n=i.top+this.anchorMargin_.top-a,r||(n+=this.measurements_.anchorSize.height)):(n=i.bottom-this.anchorMargin_.bottom+this.measurements_.anchorSize.height-a,r&&(n-=this.measurements_.anchorSize.height)),n},e.prototype.getHorizontalOriginOffset_=function(t){var e=this.measurements_.anchorSize,i=this.hasBit_(t,ue.RIGHT),n=this.hasBit_(this.anchorCorner_,ue.RIGHT);if(i){var o=n?e.width-this.anchorMargin_.left:this.anchorMargin_.right;return this.isHoistedElement_||this.isFixedPosition_?o-(this.measurements_.viewportSize.width-this.measurements_.bodySize.width):o}return n?e.width-this.anchorMargin_.right:this.anchorMargin_.left},e.prototype.getVerticalOriginOffset_=function(t){var e=this.measurements_.anchorSize,i=this.hasBit_(t,ue.BOTTOM),n=this.hasBit_(this.anchorCorner_,ue.BOTTOM);return i?n?e.height-this.anchorMargin_.top:-this.anchorMargin_.bottom:n?e.height+this.anchorMargin_.bottom:this.anchorMargin_.top},e.prototype.adjustPositionForHoistedElement_=function(t){var e,i,n=this.measurements_,o=n.windowScroll,r=n.viewportDistance,a=Object.keys(t);try{for(var s=function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),l=s.next();!l.done;l=s.next()){var d=l.value,c=t[d]||0;c+=r[d],this.isFixedPosition_||("top"===d?c+=o.y:"bottom"===d?c-=o.y:"left"===d?c+=o.x:c-=o.x),t[d]=c}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}},e.prototype.maybeRestoreFocus_=function(){var t=this.adapter_.isFocused(),e=document.activeElement&&this.adapter_.isElementInContainer(document.activeElement);(t||e)&&this.adapter_.restoreFocus()},e.prototype.hasBit_=function(t,e){return Boolean(t&e)},e.prototype.setBit_=function(t,e){return t|e},e.prototype.isFinite_=function(t){return"number"==typeof t&&isFinite(t)},e}(mt);
  /**
   * @license
   * Copyright 2018 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */const ye={TOP_LEFT:pe.TOP_LEFT,TOP_RIGHT:pe.TOP_RIGHT,BOTTOM_LEFT:pe.BOTTOM_LEFT,BOTTOM_RIGHT:pe.BOTTOM_RIGHT,TOP_START:pe.TOP_START,TOP_END:pe.TOP_END,BOTTOM_START:pe.BOTTOM_START,BOTTOM_END:pe.BOTTOM_END};class _e extends Ut{constructor(){super(...arguments),this.mdcFoundationClass=ve,this.absolute=!1,this.fullwidth=!1,this.fixed=!1,this.x=null,this.y=null,this.quick=!1,this.open=!1,this.corner="TOP_START",this.anchor=null,this.previouslyFocused=null,this.previousAnchor=null,this.onBodyClickBound=()=>{}}render(){const t={"mdc-menu-surface--fixed":this.fixed,fullwidth:this.fullwidth};return R` <div class="mdc-menu-surface ${Mt(t)}" @keydown="${this.onKeydown}" @opened="${this.registerBodyClick}" @closed="${this.deregisterBodyClick}"> <slot></slot> </div>`}createAdapter(){return Object.assign(Object.assign({},Rt(this.mdcRoot)),{hasAnchor:()=>!!this.anchor,notifyClose:()=>{const t=new CustomEvent("closed",{bubbles:!0,composed:!0});this.open=!1,this.mdcRoot.dispatchEvent(t)},notifyOpen:()=>{const t=new CustomEvent("opened",{bubbles:!0,composed:!0});this.open=!0,this.mdcRoot.dispatchEvent(t)},isElementInContainer:()=>!1,isRtl:()=>!!this.mdcRoot&&"rtl"===getComputedStyle(this.mdcRoot).direction,setTransformOrigin:t=>{const e=this.mdcRoot;if(!e)return;const i=`${function(t,e){if(void 0===e&&(e=!1),void 0===be||e){var i=t.document.createElement("div");be="transform"in i.style?"transform":"webkitTransform"}return be}(window)}-origin`;e.style.setProperty(i,t)},isFocused:()=>jt(this),saveFocus:()=>{const t=Ht(),e=t.length;e||(this.previouslyFocused=null),this.previouslyFocused=t[e-1]},restoreFocus:()=>{this.previouslyFocused&&"focus"in this.previouslyFocused&&this.previouslyFocused.focus()},getInnerDimensions:()=>{const t=this.mdcRoot;return t?{width:t.offsetWidth,height:t.offsetHeight}:{width:0,height:0}},getAnchorDimensions:()=>{const t=this.anchor;return t?t.getBoundingClientRect():null},getBodyDimensions:()=>({width:document.body.clientWidth,height:document.body.clientHeight}),getWindowDimensions:()=>({width:window.innerWidth,height:window.innerHeight}),getWindowScroll:()=>({x:window.pageXOffset,y:window.pageYOffset}),setPosition:t=>{const e=this.mdcRoot;e&&(e.style.left="left"in t?`${t.left}px`:"",e.style.right="right"in t?`${t.right}px`:"",e.style.top="top"in t?`${t.top}px`:"",e.style.bottom="bottom"in t?`${t.bottom}px`:"")},setMaxHeight:t=>{const e=this.mdcRoot;e&&(e.style.maxHeight=t)}})}onKeydown(t){this.mdcFoundation&&this.mdcFoundation.handleKeydown(t)}onBodyClick(t){-1===t.composedPath().indexOf(this)&&this.close()}registerBodyClick(){this.onBodyClickBound=this.onBodyClick.bind(this),document.body.addEventListener("click",this.onBodyClickBound)}deregisterBodyClick(){document.body.removeEventListener("click",this.onBodyClickBound)}close(){this.open=!1}show(){this.open=!0}}lt([X(".mdc-menu-surface")],_e.prototype,"mdcRoot",void 0),lt([X("slot")],_e.prototype,"slotElement",void 0),lt([Z({type:Boolean}),Kt((function(t){this.mdcFoundation&&!this.fixed&&this.mdcFoundation.setIsHoisted(t)}))],_e.prototype,"absolute",void 0),lt([Z({type:Boolean})],_e.prototype,"fullwidth",void 0),lt([Z({type:Boolean}),Kt((function(t){this.mdcFoundation&&!this.absolute&&this.mdcFoundation.setIsHoisted(t)}))],_e.prototype,"fixed",void 0),lt([Z({type:Number}),Kt((function(t){this.mdcFoundation&&null!==this.y&&null!==t&&(this.mdcFoundation.setAbsolutePosition(t,this.y),this.mdcFoundation.setAnchorMargin({left:t,top:this.y,right:-t,bottom:this.y}))}))],_e.prototype,"x",void 0),lt([Z({type:Number}),Kt((function(t){this.mdcFoundation&&null!==this.x&&null!==t&&(this.mdcFoundation.setAbsolutePosition(this.x,t),this.mdcFoundation.setAnchorMargin({left:this.x,top:t,right:-this.x,bottom:t}))}))],_e.prototype,"y",void 0),lt([Z({type:Boolean}),Kt((function(t){this.mdcFoundation&&this.mdcFoundation.setQuickOpen(t)}))],_e.prototype,"quick",void 0),lt([Z({type:Boolean,reflect:!0}),Kt((function(t,e){this.mdcFoundation&&(t?this.mdcFoundation.open():void 0!==e&&this.mdcFoundation.close())}))],_e.prototype,"open",void 0),lt([Z({type:String}),Kt((function(t){this.mdcFoundation&&(t?this.mdcFoundation.setAnchorCorner(ye[t]):this.mdcFoundation.setAnchorCorner(pe.TOP_START))}))],_e.prototype,"corner",void 0);
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  const xe=it`.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;transition:opacity .03s linear,transform .12s cubic-bezier(0,0,.2,1);box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);background-color:#fff;background-color:var(--mdc-theme-surface,#fff);color:#000;color:var(--mdc-theme-on-surface,#000);border-radius:4px;transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(.8);opacity:0}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0;transition:opacity 75ms linear}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}:host(:not([open])){display:none}.fullwidth{width:100%}.mdc-menu-surface{border-radius:var(--mdc-shape-medium,4px)}`
  /**
  @license
  Copyright 2020 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */;let we=class extends _e{};we.styles=xe,we=lt([G("mwc-menu-surface")],we);
  /**
   * @license
   * Copyright 2018 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */
  var Se,Ce={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},Te={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list",SELECTED_EVENT:"MDCMenu:selected"},Ee={FOCUS_ROOT_INDEX:-1};!function(t){t[t.NONE=0]="NONE",t[t.LIST_ROOT=1]="LIST_ROOT",t[t.FIRST_ITEM=2]="FIRST_ITEM",t[t.LAST_ITEM=3]="LAST_ITEM"}(Se||(Se={}));
  /**
   * @license
   * Copyright 2018 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */
  var ke=function(t){function e(i){var n=t.call(this,st({},e.defaultAdapter,i))||this;return n.closeAnimationEndTimerId_=0,n.defaultFocusState_=Se.LIST_ROOT,n}return at(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Ce},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Te},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Ee},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.closeAnimationEndTimerId_&&clearTimeout(this.closeAnimationEndTimerId_),this.adapter_.closeSurface()},e.prototype.handleKeydown=function(t){var e=t.key,i=t.keyCode;("Tab"===e||9===i)&&this.adapter_.closeSurface(!0)},e.prototype.handleItemAction=function(t){var e=this,i=this.adapter_.getElementIndex(t);i<0||(this.adapter_.notifySelected({index:i}),this.adapter_.closeSurface(),this.closeAnimationEndTimerId_=setTimeout((function(){var i=e.adapter_.getElementIndex(t);e.adapter_.isSelectableItemAtIndex(i)&&e.setSelectedIndex(i)}),ve.numbers.TRANSITION_CLOSE_DURATION))},e.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState_){case Se.FIRST_ITEM:this.adapter_.focusItemAtIndex(0);break;case Se.LAST_ITEM:this.adapter_.focusItemAtIndex(this.adapter_.getMenuItemCount()-1);break;case Se.NONE:break;default:this.adapter_.focusListRoot()}},e.prototype.setDefaultFocusState=function(t){this.defaultFocusState_=t},e.prototype.setSelectedIndex=function(t){if(this.validatedIndex_(t),!this.adapter_.isSelectableItemAtIndex(t))throw new Error("MDCMenuFoundation: No selection group at specified index.");var e=this.adapter_.getSelectedSiblingOfItemAtIndex(t);e>=0&&(this.adapter_.removeAttributeFromElementAtIndex(e,Te.ARIA_CHECKED_ATTR),this.adapter_.removeClassFromElementAtIndex(e,Ce.MENU_SELECTED_LIST_ITEM)),this.adapter_.addClassToElementAtIndex(t,Ce.MENU_SELECTED_LIST_ITEM),this.adapter_.addAttributeToElementAtIndex(t,Te.ARIA_CHECKED_ATTR,"true")},e.prototype.setEnabled=function(t,e){this.validatedIndex_(t),e?(this.adapter_.removeClassFromElementAtIndex(t,ee),this.adapter_.addAttributeToElementAtIndex(t,Te.ARIA_DISABLED_ATTR,"false")):(this.adapter_.addClassToElementAtIndex(t,ee),this.adapter_.addAttributeToElementAtIndex(t,Te.ARIA_DISABLED_ATTR,"true"))},e.prototype.validatedIndex_=function(t){var e=this.adapter_.getMenuItemCount();if(!(t>=0&&t<e))throw new Error("MDCMenuFoundation: No list item at specified index.")},e}(mt);class Ae extends Ut{constructor(){super(...arguments),this.mdcFoundationClass=ke,this.listElement_=null,this.anchor=null,this.open=!1,this.quick=!1,this.wrapFocus=!1,this.innerRole="menu",this.corner="TOP_START",this.x=null,this.y=null,this.absolute=!1,this.multi=!1,this.activatable=!1,this.fixed=!1,this.forceGroupSelection=!1,this.fullwidth=!1,this.defaultFocus="LIST_ROOT",this._listUpdateComplete=null}get listElement(){return this.listElement_||(this.listElement_=this.renderRoot.querySelector("mwc-list")),this.listElement_}get items(){const t=this.listElement;return t?t.items:[]}get index(){const t=this.listElement;return t?t.index:-1}get selected(){const t=this.listElement;return t?t.selected:null}render(){const t="menu"===this.innerRole?"menuitem":"option";return R` <mwc-menu-surface ?hidden="${!this.open}" .anchor="${this.anchor}" .open="${this.open}" .quick="${this.quick}" .corner="${this.corner}" .x="${this.x}" .y="${this.y}" .absolute="${this.absolute}" .fixed="${this.fixed}" .fullwidth="${this.fullwidth}" class="mdc-menu mdc-menu-surface" @closed="${this.onClosed}" @opened="${this.onOpened}" @keydown="${this.onKeydown}"> <mwc-list rootTabbable .innerRole="${this.innerRole}" .multi="${this.multi}" class="mdc-list" .itemRoles="${t}" .wrapFocus="${this.wrapFocus}" .activatable="${this.activatable}" @action="${this.onAction}"> <slot></slot> </mwc-list> </mwc-menu-surface>`}createAdapter(){return{addClassToElementAtIndex:(t,e)=>{const i=this.listElement;if(!i)return;const n=i.items[t];n&&("mdc-menu-item--selected"===e?this.forceGroupSelection&&!n.selected&&i.toggle(t,!0):n.classList.add(e))},removeClassFromElementAtIndex:(t,e)=>{const i=this.listElement;if(!i)return;const n=i.items[t];n&&("mdc-menu-item--selected"===e?n.selected&&i.toggle(t,!1):n.classList.remove(e))},addAttributeToElementAtIndex:(t,e,i)=>{const n=this.listElement;if(!n)return;const o=n.items[t];o&&o.setAttribute(e,i)},removeAttributeFromElementAtIndex:(t,e)=>{const i=this.listElement;if(!i)return;const n=i.items[t];n&&n.removeAttribute(e)},elementContainsClass:(t,e)=>t.classList.contains(e),closeSurface:()=>{this.open=!1},getElementIndex:t=>{const e=this.listElement;return e?e.items.indexOf(t):-1},notifySelected:()=>{},getMenuItemCount:()=>{const t=this.listElement;return t?t.items.length:0},focusItemAtIndex:t=>{const e=this.listElement;if(!e)return;const i=e.items[t];i&&i.focus()},focusListRoot:()=>{this.listElement&&this.listElement.focus()},getSelectedSiblingOfItemAtIndex:t=>{const e=this.listElement;if(!e)return-1;const i=e.items[t];if(!i||!i.group)return-1;for(let n=0;n<e.items.length;n++){if(n===t)continue;const o=e.items[n];if(o.selected&&o.group===i.group)return n}return-1},isSelectableItemAtIndex:t=>{const e=this.listElement;if(!e)return!1;const i=e.items[t];return!!i&&i.hasAttribute("group")}}}onKeydown(t){this.mdcFoundation&&this.mdcFoundation.handleKeydown(t)}onAction(t){const e=this.listElement;if(this.mdcFoundation&&e){const i=t.detail.index,n=e.items[i];n&&this.mdcFoundation.handleItemAction(n)}}onOpened(){this.open=!0,this.mdcFoundation&&this.mdcFoundation.handleMenuSurfaceOpened()}onClosed(){this.open=!1}async _getUpdateComplete(){await this._listUpdateComplete,await super._getUpdateComplete()}async firstUpdated(){super.firstUpdated();const t=this.listElement;t&&(this._listUpdateComplete=t.updateComplete,await this._listUpdateComplete)}select(t){const e=this.listElement;e&&e.select(t)}close(){this.open=!1}show(){this.open=!0}layout(t=!0){const e=this.listElement;e&&e.layout(t)}}lt([X(".mdc-menu")],Ae.prototype,"mdcRoot",void 0),lt([X("slot")],Ae.prototype,"slotElement",void 0),lt([Z({type:Object})],Ae.prototype,"anchor",void 0),lt([Z({type:Boolean,reflect:!0})],Ae.prototype,"open",void 0),lt([Z({type:Boolean})],Ae.prototype,"quick",void 0),lt([Z({type:Boolean})],Ae.prototype,"wrapFocus",void 0),lt([Z({type:String})],Ae.prototype,"innerRole",void 0),lt([Z({type:String})],Ae.prototype,"corner",void 0),lt([Z({type:Number})],Ae.prototype,"x",void 0),lt([Z({type:Number})],Ae.prototype,"y",void 0),lt([Z({type:Boolean})],Ae.prototype,"absolute",void 0),lt([Z({type:Boolean})],Ae.prototype,"multi",void 0),lt([Z({type:Boolean})],Ae.prototype,"activatable",void 0),lt([Z({type:Boolean})],Ae.prototype,"fixed",void 0),lt([Z({type:Boolean})],Ae.prototype,"forceGroupSelection",void 0),lt([Z({type:Boolean})],Ae.prototype,"fullwidth",void 0),lt([Z({type:String}),Kt((function(t){this.mdcFoundation&&this.mdcFoundation.setDefaultFocusState(Se[t])}))],Ae.prototype,"defaultFocus",void 0);
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  const Ie=it`mwc-list ::slotted([mwc-list-item]:not([twoline])){height:var(--mdc-menu-item-height,48px)}mwc-list{max-width:var(--mdc-menu-max-width,auto);min-width:var(--mdc-menu-min-width,auto)}`
  /**
  @license
  Copyright 2020 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */;let Oe=class extends Ae{};Oe.styles=Ie,Oe=lt([G("mwc-menu")],Oe);
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  class Me extends Ut{createRenderRoot(){return this.attachShadow({mode:"open",delegatesFocus:!0})}click(){this.formElement&&(this.formElement.focus(),this.formElement.click())}setAriaLabel(t){this.formElement&&this.formElement.setAttribute("aria-label",t)}firstUpdated(){super.firstUpdated(),this.mdcRoot.addEventListener("change",t=>{this.dispatchEvent(new Event("change",t))})}}
  /**
   * @license
   * Copyright 2016 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */var De={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},Le=function(t){function e(i){var n=t.call(this,st({},e.defaultAdapter,i))||this;return n.shakeAnimationEndHandler_=function(){return n.handleShakeAnimationEnd_()},n}return at(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return De},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.adapter_.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)},e.prototype.destroy=function(){this.adapter_.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)},e.prototype.getWidth=function(){return this.adapter_.getWidth()},e.prototype.shake=function(t){var i=e.cssClasses.LABEL_SHAKE;t?this.adapter_.addClass(i):this.adapter_.removeClass(i)},e.prototype.float=function(t){var i=e.cssClasses,n=i.LABEL_FLOAT_ABOVE,o=i.LABEL_SHAKE;t?this.adapter_.addClass(n):(this.adapter_.removeClass(n),this.adapter_.removeClass(o))},e.prototype.handleShakeAnimationEnd_=function(){var t=e.cssClasses.LABEL_SHAKE;this.adapter_.removeClass(t)},e}(mt);
  /**
   * @license
   * Copyright 2016 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */const Fe=new WeakMap,Pe=m(t=>e=>{const i=Fe.get(e);if(i){if(i.label!==t){const t=e.committer.element,i=new Event("labelchange");t.dispatchEvent(i)}}else{const i=e.committer.element;i.classList.add("mdc-floating-label");const n=(t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),getWidth:()=>t.scrollWidth,registerInteractionHandler:(e,i)=>{t.addEventListener(e,i)},deregisterInteractionHandler:(e,i)=>{t.removeEventListener(e,i)}}))(i),o=new Le(n);o.init(),e.setValue(o),Fe.set(e,{label:t,foundation:o})}});
  /**
   * @license
   * Copyright 2018 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */
  var Re={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},Ne=function(t){function e(i){var n=t.call(this,st({},e.defaultAdapter,i))||this;return n.transitionEndHandler_=function(t){return n.handleTransitionEnd(t)},n}return at(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Re},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.adapter_.registerEventHandler("transitionend",this.transitionEndHandler_)},e.prototype.destroy=function(){this.adapter_.deregisterEventHandler("transitionend",this.transitionEndHandler_)},e.prototype.activate=function(){this.adapter_.removeClass(Re.LINE_RIPPLE_DEACTIVATING),this.adapter_.addClass(Re.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(t){this.adapter_.setStyle("transform-origin",t+"px center")},e.prototype.deactivate=function(){this.adapter_.addClass(Re.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(t){var e=this.adapter_.hasClass(Re.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&e&&(this.adapter_.removeClass(Re.LINE_RIPPLE_ACTIVE),this.adapter_.removeClass(Re.LINE_RIPPLE_DEACTIVATING))},e}(mt);
  /**
   * @license
   * Copyright 2018 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */const ze=new WeakMap,Ve=m(()=>t=>{if(!ze.get(t)){const e=t.committer.element;e.classList.add("mdc-line-ripple");const i=(t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),hasClass:e=>t.classList.contains(e),setStyle:(e,i)=>t.style.setProperty(e,i),registerEventHandler:(e,i)=>{t.addEventListener(e,i)},deregisterEventHandler:(e,i)=>{t.removeEventListener(e,i)}}))(e),n=new Ne(i);n.init(),t.setValue(n),ze.set(t,n)}});
  /**
   * @license
   * Copyright 2016 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */
  var Be={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",SELECTED_ITEM_CLASS:"mdc-list-item--selected",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},He={ARIA_CONTROLS:"aria-controls",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_ITEM_SELECTOR:"."+Be.SELECTED_ITEM_CLASS,SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},je={LABEL_SCALE:.75,UNSET_INDEX:-1},Ue=function(t){function e(i,n){void 0===n&&(n={});var o=t.call(this,st({},e.defaultAdapter,i))||this;return o.selectedIndex_=je.UNSET_INDEX,o.disabled_=!1,o.isMenuOpen_=!1,o.leadingIcon_=n.leadingIcon,o.helperText_=n.helperText,o.menuItemValues_=o.adapter_.getMenuItemValues(),o}return at(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Be},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return je},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return He},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedMenuItem:function(){return null},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectedTextFocused:function(){return!1},getSelectedTextAttr:function(){return""},setSelectedTextAttr:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},setAttributeAtIndex:function(){},removeAttributeAtIndex:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},getMenuItemAttr:function(){return""},addClassAtIndex:function(){},removeClassAtIndex:function(){}}},enumerable:!0,configurable:!0}),e.prototype.getSelectedIndex=function(){return this.selectedIndex_},e.prototype.setSelectedIndex=function(t,e){if(void 0===e&&(e=!1),!(t>=this.adapter_.getMenuItemCount())){var i=this.selectedIndex_;this.selectedIndex_=t,this.selectedIndex_===je.UNSET_INDEX?this.adapter_.setSelectedText(""):this.adapter_.setSelectedText(this.adapter_.getMenuItemTextAtIndex(this.selectedIndex_).trim()),i!==je.UNSET_INDEX&&(this.adapter_.removeClassAtIndex(i,Be.SELECTED_ITEM_CLASS),this.adapter_.removeAttributeAtIndex(i,He.ARIA_SELECTED_ATTR)),this.selectedIndex_!==je.UNSET_INDEX&&(this.adapter_.addClassAtIndex(this.selectedIndex_,Be.SELECTED_ITEM_CLASS),this.adapter_.setAttributeAtIndex(this.selectedIndex_,He.ARIA_SELECTED_ATTR,"true")),this.layout(),e&&this.adapter_.closeMenu(),this.handleChange()}},e.prototype.setValue=function(t){var e=this.menuItemValues_.indexOf(t);this.setSelectedIndex(e)},e.prototype.getValue=function(){var t=this.adapter_.getSelectedMenuItem();return t&&this.adapter_.getMenuItemAttr(t,He.VALUE_ATTR)||""},e.prototype.getDisabled=function(){return this.disabled_},e.prototype.setDisabled=function(t){this.disabled_=t,this.disabled_?(this.adapter_.addClass(Be.DISABLED),this.adapter_.closeMenu()):this.adapter_.removeClass(Be.DISABLED),this.leadingIcon_&&this.leadingIcon_.setDisabled(this.disabled_),this.adapter_.setSelectedTextAttr("tabindex",this.disabled_?"-1":"0"),this.adapter_.setSelectedTextAttr("aria-disabled",this.disabled_.toString())},e.prototype.setHelperTextContent=function(t){this.helperText_&&this.helperText_.setContent(t)},e.prototype.layout=function(){if(this.adapter_.hasLabel()){var t=this.getValue().length>0;this.notchOutline(t)}},e.prototype.handleMenuOpened=function(){if(0!==this.adapter_.getMenuItemValues().length){this.adapter_.addClass(Be.ACTIVATED);var t=this.selectedIndex_>=0?this.selectedIndex_:0;this.adapter_.focusMenuItemAtIndex(t)}},e.prototype.handleMenuClosed=function(){this.adapter_.removeClass(Be.ACTIVATED),this.isMenuOpen_=!1,this.adapter_.setSelectedTextAttr("aria-expanded","false"),this.adapter_.isSelectedTextFocused()||this.blur_()},e.prototype.handleChange=function(){this.updateLabel_(),this.adapter_.notifyChange(this.getValue()),this.adapter_.hasClass(Be.REQUIRED)&&(this.setValid(this.isValid()),this.helperText_&&this.helperText_.setValidity(this.isValid()))},e.prototype.handleMenuItemAction=function(t){this.setSelectedIndex(t,!0)},e.prototype.handleFocus=function(){this.adapter_.addClass(Be.FOCUSED),this.adapter_.hasLabel()&&(this.notchOutline(!0),this.adapter_.floatLabel(!0)),this.adapter_.activateBottomLine(),this.helperText_&&this.helperText_.showToScreenReader()},e.prototype.handleBlur=function(){this.isMenuOpen_||this.blur_()},e.prototype.handleClick=function(t){this.isMenuOpen_||(this.adapter_.setRippleCenter(t),this.adapter_.openMenu(),this.isMenuOpen_=!0,this.adapter_.setSelectedTextAttr("aria-expanded","true"))},e.prototype.handleKeydown=function(t){if(!this.isMenuOpen_){var e="Enter"===t.key||13===t.keyCode,i="Space"===t.key||32===t.keyCode,n="ArrowUp"===t.key||38===t.keyCode,o="ArrowDown"===t.key||40===t.keyCode;this.adapter_.hasClass(Be.FOCUSED)&&(e||i||n||o)&&(this.adapter_.openMenu(),this.isMenuOpen_=!0,this.adapter_.setSelectedTextAttr("aria-expanded","true"),t.preventDefault())}},e.prototype.notchOutline=function(t){if(this.adapter_.hasOutline()){var e=this.adapter_.hasClass(Be.FOCUSED);if(t){var i=je.LABEL_SCALE,n=this.adapter_.getLabelWidth()*i;this.adapter_.notchOutline(n)}else e||this.adapter_.closeOutline()}},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon_&&this.leadingIcon_.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon_&&this.leadingIcon_.setContent(t)},e.prototype.setValid=function(t){this.adapter_.setSelectedTextAttr("aria-invalid",(!t).toString()),t?this.adapter_.removeClass(Be.INVALID):this.adapter_.addClass(Be.INVALID)},e.prototype.isValid=function(){return!(this.adapter_.hasClass(Be.REQUIRED)&&!this.adapter_.hasClass(Be.DISABLED))||this.selectedIndex_!==je.UNSET_INDEX&&(0!==this.selectedIndex_||Boolean(this.getValue()))},e.prototype.setRequired=function(t){t?this.adapter_.addClass(Be.REQUIRED):this.adapter_.removeClass(Be.REQUIRED),this.adapter_.setSelectedTextAttr("aria-required",t.toString())},e.prototype.getRequired=function(){return"true"===this.adapter_.getSelectedTextAttr("aria-required")},e.prototype.init=function(){var t=this.adapter_.getAnchorElement();t&&(this.adapter_.setMenuAnchorElement(t),this.adapter_.setMenuAnchorCorner(pe.BOTTOM_START)),this.adapter_.setMenuWrapFocus(!1);var e=this.getValue();e&&this.setValue(e),this.updateLabel_()},e.prototype.updateLabel_=function(){var t=this.getValue().length>0;this.adapter_.hasLabel()&&(this.notchOutline(t),this.adapter_.hasClass(Be.FOCUSED)||this.adapter_.floatLabel(t))},e.prototype.blur_=function(){this.adapter_.removeClass(Be.FOCUSED),this.updateLabel_(),this.adapter_.deactivateBottomLine(),this.adapter_.hasClass(Be.REQUIRED)&&(this.setValid(this.isValid()),this.helperText_&&this.helperText_.setValidity(this.isValid()))},e}(mt);const $e=(t={})=>{const e={};for(const i in t)e[i]=t[i];return Object.assign({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1},e)};class We extends Me{constructor(){super(...arguments),this.mdcFoundationClass=Ue,this.disabled=!1,this.outlined=!1,this.label="",this.outlineOpen=!1,this.outlineWidth=0,this.value="",this.selectedText="",this.icon="",this.menuOpen=!1,this.helper="",this.helperPersistent=!1,this.validateOnInitialRender=!1,this.validationMessage="",this.required=!1,this.naturalWidth=!1,this.isUiValid=!0,this.listeners=[],this.onBodyClickBound=()=>{},this._menuUpdateComplete=null,this.renderReady=!1,this.valueSetDirectly=!1,this.validityTransform=null,this._validity=$e()}get items(){const t=this.menuElement;return t?t.items:[]}get selected(){const t=this.menuElement;return t?t.selected:null}get index(){const t=this.menuElement;return t?t.index:-1}get shouldRenderHelperText(){return!!this.helper||!!this.validationMessage}get validity(){return this._checkValidity(this.value),this._validity}render(){let t=R``;t=this.outlined?this.renderOutlined():this.renderUnderlined();const e={"mdc-select--disabled":this.disabled,"mdc-select--no-label":!this.label,"mdc-select--outlined":this.outlined,"mdc-select--with-leading-icon":!!this.icon,"mdc-select--required":this.required,"mdc-select--invalid":!this.isUiValid},i=this.shouldRenderHelperText?"helper-text":void 0;return R` <div class="mdc-select ${Mt(e)}"> <input class="formElement" .value="${this.value}" hidden ?required="${this.required}"> ${this.icon?this.renderIcon(this.icon):""} <div class="mdc-select__anchor" @click="${this.onClick}"> <i class="mdc-select__dropdown-icon"> <svg width="10px" height="5px" viewBox="7 10 10 5" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <polygon stroke="none" fill-rule="evenodd" points="7 10 12 15 17 10"> </polygon> </svg> </i> <div class="mdc-select__selected-text" role="button" aria-invalid="${!this.isUiValid}" aria-haspopup="listbox" aria-labelledby="label" aria-required="${this.required}" aria-describedby="${Qt(i)}" @focus="${this.onFocus}" @blur="${this.onBlur}" @keydown="${this.onKeydown}"> ${this.selectedText} </div> ${t} </div> ${this.renderHelperText()} <mwc-menu innerRole="listbox" wrapFocus class="mdc-select__menu mdc-menu mdc-menu-surface" activatable .fullwidth="${!this.naturalWidth}" .open="${this.menuOpen}" .anchor="${this.anchorElement}" @selected="${this.onSelected}" @opened="${this.onOpened}" @closed="${this.onClosed}"> <slot></slot> </mwc-menu> </div>`}renderHelperText(){const t=this.validationMessage&&!this.isUiValid,e={"mdc-select-helper-text--persistent":this.helperPersistent||t,"mdc-select-helper-text--validation-msg":t,hidden:!this.shouldRenderHelperText};return R` <p class="mdc-select-helper-text ${Mt(e)}" id="helper-text"> ${t?this.validationMessage:this.helper} </p>`}renderOutlined(){let t="";return this.label&&(t=this.renderLabel()),R` <mwc-notched-outline .width="${this.outlineWidth}" .open="${this.outlineOpen}" class="mdc-notched-outline"> ${t} </mwc-notched-outline>`}renderUnderlined(){let t="";return this.label&&(t=this.renderLabel()),R` ${t} <div .lineRippleFoundation="${Ve()}"></div> `}renderLabel(){return R` <label .floatingLabelFoundation="${Pe(this.label)}" @labelchange="${this.onLabelChange}" id="label"> ${this.label} </label> `}renderIcon(t){return R`<mwc-icon class="mdc-select__icon"><div>${t}</div></mwc-icon>`}createAdapter(){return Object.assign(Object.assign({},Rt(this.mdcRoot)),{activateBottomLine:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.activate()},deactivateBottomLine:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.deactivate()},getSelectedMenuItem:()=>{const t=this.menuElement;return t?t.selected:null},hasLabel:()=>!!this.label,floatLabel:t=>{this.labelElement&&this.labelElement.floatingLabelFoundation.float(t)},getLabelWidth:()=>this.labelElement?this.labelElement.floatingLabelFoundation.getWidth():0,hasOutline:()=>this.outlined,notchOutline:t=>{this.outlineElement&&!this.outlineOpen&&(this.outlineWidth=t,this.outlineOpen=!0)},closeOutline:()=>{this.outlineElement&&(this.outlineOpen=!1)},setRippleCenter:t=>{if(this.lineRippleElement){this.lineRippleElement.lineRippleFoundation.setRippleCenter(t)}},notifyChange:async t=>{if(!this.valueSetDirectly&&t===this.value)return;this.valueSetDirectly=!1,this.value=t,await this.updateComplete;const e=new Event("change",{bubbles:!0});this.dispatchEvent(e)},setSelectedText:t=>this.selectedText=t,isSelectedTextFocused:()=>{const t=this.selectedTextElement;return!!t&&t.getRootNode().activeElement===t},getSelectedTextAttr:t=>{const e=this.selectedTextElement;return e?e.getAttribute(t):null},setSelectedTextAttr:(t,e)=>{const i=this.selectedTextElement;if(i)return i.setAttribute(t,e)},openMenu:()=>{this.menuOpen=!0},closeMenu:()=>{this.menuOpen=!1},getAnchorElement:()=>this.anchorElement,setMenuAnchorElement:()=>{},setMenuAnchorCorner:()=>{const t=this.menuElement;t&&(t.corner="BOTTOM_START")},setMenuWrapFocus:t=>{const e=this.menuElement;e&&(e.wrapFocus=t)},setAttributeAtIndex:()=>{},removeAttributeAtIndex:()=>{},focusMenuItemAtIndex:t=>{const e=this.menuElement;if(!e)return;const i=e.items[t];i&&i.focus()},getMenuItemCount:()=>{const t=this.menuElement;return t?t.items.length:0},getMenuItemValues:()=>{const t=this.menuElement;return t?t.items.map(t=>t.value):[]},getMenuItemTextAtIndex:t=>{const e=this.menuElement;if(!e)return"";const i=e.items[t];return i?i.text:""},getMenuItemAttr:t=>t.value,addClassAtIndex:()=>{},removeClassAtIndex:()=>{}})}checkValidity(){const t=this._checkValidity(this.value);if(!t){const t=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(t)}return t}reportValidity(){const t=this.checkValidity();return this.isUiValid=t,t}_checkValidity(t){const e=this.formElement.validity;let i=$e(e);if(this.validityTransform){const e=this.validityTransform(t,i);i=Object.assign(Object.assign({},i),e)}return this._validity=i,this._validity.valid}setCustomValidity(t){this.validationMessage=t,this.formElement.setCustomValidity(t)}async _getUpdateComplete(){await this._menuUpdateComplete,await super._getUpdateComplete()}async firstUpdated(){const t=this.menuElement;t&&(this._menuUpdateComplete=t.updateComplete,await this._menuUpdateComplete),super.firstUpdated(),this.mdcFoundation.isValid=()=>!0,this.mdcFoundation.setValid=()=>{},this.mdcFoundation.setDisabled(this.disabled),this.validateOnInitialRender&&this.reportValidity(),this.value&&!this.selected&&(!this.items.length&&this.slotElement&&this.slotElement.assignedNodes({flatten:!0}).length&&(await new Promise(t=>requestAnimationFrame(t)),await this.layout()),this.selectByValue(this.value)),this.renderReady=!0}select(t){const e=this.menuElement;e&&e.select(t)}selectByValue(t){let e=-1;for(let i=0;i<this.items.length;i++){if(this.items[i].value===t){e=i;break}}this.valueSetDirectly=!0,this.select(e),this.mdcFoundation.handleChange()}disconnectedCallback(){super.disconnectedCallback();for(const t of this.listeners)t.target.removeEventListener(t.name,t.cb)}focus(){const t=new CustomEvent("focus"),e=this.selectedTextElement;e&&(e.dispatchEvent(t),e.focus())}blur(){const t=new CustomEvent("blur"),e=this.selectedTextElement;e&&(e.dispatchEvent(t),e.blur())}onFocus(){this.mdcFoundation&&this.mdcFoundation.handleFocus()}onBlur(){this.mdcFoundation&&this.mdcFoundation.handleBlur();const t=this.menuElement;t&&!t.open&&this.reportValidity()}onClick(t){if(this.mdcFoundation){this.focus();const e=t.target.getBoundingClientRect();let i=0;i="touches"in t?t.touches[0].clientX:t.clientX;const n=i-e.left;this.mdcFoundation.handleClick(n)}}onKeydown(t){this.mdcFoundation&&this.mdcFoundation.handleKeydown(t)}onSelected(t){this.mdcFoundation&&this.mdcFoundation.handleMenuItemAction(t.detail.index)}onOpened(){this.mdcFoundation&&(this.menuOpen=!0,this.mdcFoundation.handleMenuOpened())}onClosed(){this.mdcFoundation&&(this.menuOpen=!1,this.mdcFoundation.handleMenuClosed())}async onLabelChange(){this.label&&await this.layout(!1)}async layout(t=!0){this.mdcFoundation&&this.mdcFoundation.layout(),await this.updateComplete;const e=this.labelElement;if(e&&this.outlineElement&&this.outlineOpen){const t=e.floatingLabelFoundation.getWidth();this.outlineWidth=t}const i=this.menuElement;i&&i.layout(t)}}lt([X(".mdc-select")],We.prototype,"mdcRoot",void 0),lt([X(".formElement")],We.prototype,"formElement",void 0),lt([X("slot")],We.prototype,"slotElement",void 0),lt([X("select")],We.prototype,"nativeSelectElement",void 0),lt([X("input")],We.prototype,"nativeInputElement",void 0),lt([X(".mdc-line-ripple")],We.prototype,"lineRippleElement",void 0),lt([X(".mdc-floating-label")],We.prototype,"labelElement",void 0),lt([X("mwc-notched-outline")],We.prototype,"outlineElement",void 0),lt([X(".mdc-menu")],We.prototype,"menuElement",void 0),lt([X(".mdc-select__selected-text")],We.prototype,"selectedTextElement",void 0),lt([X(".mdc-select__anchor")],We.prototype,"anchorElement",void 0),lt([Z({type:Boolean,attribute:"disabled",reflect:!0}),Kt((function(t){this.renderReady&&this.mdcFoundation.setDisabled(t)}))],We.prototype,"disabled",void 0),lt([Z({type:Boolean})],We.prototype,"outlined",void 0),lt([Z({type:String})],We.prototype,"label",void 0),lt([Z({type:Boolean})],We.prototype,"outlineOpen",void 0),lt([Z({type:Number})],We.prototype,"outlineWidth",void 0),lt([Z({type:String}),Kt((function(t){if(this.mdcFoundation){const e=null===this.selected&&!!t,i=this.selected&&this.selected.value!==t;(e||i)&&this.selectByValue(t),this.reportValidity()}}))],We.prototype,"value",void 0),lt([Z({type:String})],We.prototype,"selectedText",void 0),lt([Z({type:String})],We.prototype,"icon",void 0),lt([Z({type:Boolean})],We.prototype,"menuOpen",void 0),lt([Z({type:String})],We.prototype,"helper",void 0),lt([Z({type:Boolean})],We.prototype,"helperPersistent",void 0),lt([Z({type:Boolean})],We.prototype,"validateOnInitialRender",void 0),lt([Z({type:String})],We.prototype,"validationMessage",void 0),lt([Z({type:Boolean})],We.prototype,"required",void 0),lt([Z({type:Boolean})],We.prototype,"naturalWidth",void 0),lt([Z({type:Boolean})],We.prototype,"isUiValid",void 0);
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  const qe=it`@keyframes mdc-select-float-native-control{0%{transform:translateY(8px);opacity:0}100%{transform:translateY(0);opacity:1}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px;z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(.4,0,.2,1),opacity 180ms cubic-bezier(.4,0,.2,1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / .75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{padding:0}.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size,1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing,.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit);position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(.4,0,.2,1),color 150ms cubic-bezier(.4,0,.2,1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--float-above{transform:translateY(-106%) scale(.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0)) translateY(-106%) scale(.75)}33%{animation-timing-function:cubic-bezier(.5,0,.701732,.495819);transform:translateX(calc(4% - 0)) translateY(-106%) scale(.75)}66%{animation-timing-function:cubic-bezier(.302435,.381352,.55,.956352);transform:translateX(calc(-4% - 0)) translateY(-106%) scale(.75)}100%{transform:translateX(calc(0 - 0)) translateY(-106%) scale(.75)}}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(.4,0,.2,1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity,0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity,0)}to{opacity:0}}.mdc-select--with-leading-icon:not(.mdc-select--disabled) .mdc-select__icon{color:#000;color:var(--mdc-theme-on-surface,#000)}.mdc-select--with-leading-icon .mdc-select__icon{display:inline-block;position:absolute;bottom:16px;box-sizing:border-box;width:24px;height:24px;border:none;background-color:transparent;fill:currentColor;opacity:.54;text-decoration:none;cursor:pointer;user-select:none}.mdc-select__icon:not([tabindex]),.mdc-select__icon[tabindex="-1"]{cursor:default;pointer-events:none}.mdc-select-helper-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size,.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height,1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing,.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);display:block;margin-top:0;line-height:normal;margin:0;transition:opacity 180ms cubic-bezier(.4,0,.2,1);opacity:0;will-change:opacity}.mdc-select-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-select-helper-text--persistent{transition:none;opacity:1;will-change:initial}.mdc-select{position:relative}.mdc-select:not(.mdc-select--disabled) .mdc-select__anchor{background-color:#f5f5f5}.mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0,0,0,.87)}.mdc-select:not(.mdc-select--disabled) .mdc-floating-label{color:rgba(0,0,0,.6)}.mdc-select:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0,0,0,.42)}.mdc-select:not(.mdc-select--disabled) .mdc-select__anchor+.mdc-select-helper-text{color:rgba(0,0,0,.6)}.mdc-select .mdc-select__anchor{border-radius:4px 4px 0 0}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary,#6200ee)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:rgba(98,0,238,.87)}.mdc-select:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0,0,0,.87)}.mdc-select .mdc-floating-label{left:16px;right:initial;top:21px;pointer-events:none}[dir=rtl] .mdc-select .mdc-floating-label,.mdc-select .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-select.mdc-select--with-leading-icon .mdc-floating-label{left:48px;right:initial}[dir=rtl] .mdc-select.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-select.mdc-select--outlined .mdc-floating-label{left:4px;right:initial;top:17px}[dir=rtl] .mdc-select.mdc-select--outlined .mdc-floating-label,.mdc-select.mdc-select--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-select.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-select.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-select.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{left:36px;right:initial}[dir=rtl] .mdc-select.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above,.mdc-select.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above[dir=rtl]{left:initial;right:36px}.mdc-select__dropdown-icon{background:url(data:image/svg+xml,%3Csvg%20width%3D%2210px%22%20height%3D%225px%22%20viewBox%3D%227%2010%2010%205%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Shape%22%20stroke%3D%22none%22%20fill%3D%22%23000%22%20fill-rule%3D%22evenodd%22%20opacity%3D%220.54%22%20points%3D%227%2010%2012%2015%2017%2010%22%3E%3C%2Fpolygon%3E%0A%3C%2Fsvg%3E) no-repeat center;left:auto;right:8px;position:absolute;bottom:16px;width:24px;height:24px;transition:transform 150ms cubic-bezier(.4,0,.2,1);pointer-events:none}[dir=rtl] .mdc-select__dropdown-icon,.mdc-select__dropdown-icon[dir=rtl]{left:8px;right:auto}.mdc-select--focused .mdc-select__dropdown-icon{background:url(data:image/svg+xml,%3Csvg%20width%3D%2210px%22%20height%3D%225px%22%20viewBox%3D%227%2010%2010%205%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Shape%22%20stroke%3D%22none%22%20fill%3D%22%236200ee%22%20fill-rule%3D%22evenodd%22%20opacity%3D%221%22%20points%3D%227%2010%2012%2015%2017%2010%22%3E%3C%2Fpolygon%3E%0A%3C%2Fsvg%3E) no-repeat center}.mdc-select--activated .mdc-select__dropdown-icon{transform:rotate(180deg) translateY(-5px);transition:transform 150ms cubic-bezier(.4,0,.2,1)}.mdc-select__anchor{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;display:inline-flex;position:relative;box-sizing:border-box;height:56px;overflow:hidden;will-change:opacity,transform,color}.mdc-select__anchor::before,.mdc-select__anchor::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-select__anchor::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1}.mdc-select__anchor.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-select__anchor.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-select__anchor.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-select__anchor.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-select__anchor.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-select__anchor::before,.mdc-select__anchor::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-select__anchor.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-select__anchor::before,.mdc-select__anchor::after{background-color:rgba(0,0,0,.87)}.mdc-select__anchor:hover::before{opacity:.04}.mdc-select__anchor.mdc-ripple-upgraded--background-focused::before,.mdc-select__anchor:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12}.mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-70%) scale(.75)}.mdc-select__anchor.mdc-select--focused .mdc-line-ripple::after{transform:scale(1,2);opacity:1}.mdc-select__anchor+.mdc-select-helper-text{margin-right:12px;margin-left:12px}.mdc-select--outlined .mdc-select__anchor+.mdc-select-helper-text{margin-right:16px;margin-left:16px}.mdc-select--focused .mdc-select__anchor+.mdc-select-helper-text:not(.mdc-select-helper-text--validation-msg){opacity:1}.mdc-select__selected-text{padding-left:16px;padding-right:52px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size,1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height,1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing,.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit);box-sizing:border-box;width:100%;min-width:200px;height:56px;padding-top:20px;padding-bottom:4px;border:none;outline:0;background-color:transparent;color:inherit;white-space:nowrap;cursor:pointer;appearance:none}[dir=rtl] .mdc-select__selected-text,.mdc-select__selected-text[dir=rtl]{padding-left:52px;padding-right:16px}.mdc-select__selected-text::-ms-expand{display:none}.mdc-select__selected-text::-ms-value{background-color:transparent;color:inherit}@-moz-document url-prefix(""){.mdc-select__selected-text{text-indent:-2px}}.mdc-select--outlined{border:none}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-select__anchor{background-color:transparent}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:rgba(0,0,0,.38)}.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__selected-text:hover~.mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__selected-text:hover~.mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__selected-text:hover~.mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0,0,0,.87)}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary,#6200ee)}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-radius:4px 0 0 4px}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-radius:0 4px 4px 0}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-radius:0 4px 4px 0}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-radius:4px 0 0 4px}.mdc-select--outlined .mdc-select__selected-text{border-radius:4px}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-select__anchor{background-color:transparent}.mdc-select--outlined .mdc-select__anchor{overflow:visible}.mdc-select--outlined .mdc-select__anchor::before,.mdc-select--outlined .mdc-select__anchor::after{content:none}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-144%) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-130%) scale(.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__selected-text{padding-left:16px;padding-right:52px;display:flex;padding-top:14px;padding-bottom:12px;border:none;background-color:transparent;z-index:1}[dir=rtl] .mdc-select--outlined .mdc-select__selected-text,.mdc-select--outlined .mdc-select__selected-text[dir=rtl]{padding-left:52px;padding-right:16px}.mdc-select--outlined .mdc-select__icon{z-index:2}.mdc-select--outlined .mdc-floating-label{line-height:1.15rem;pointer-events:auto}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error,#b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error,#b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error,#b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:#b00020}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--invalid .mdc-select__anchor+.mdc-select-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error,#b00020)}.mdc-select--invalid:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error,#b00020)}.mdc-select--invalid.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--invalid.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--invalid.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error,#b00020)}.mdc-select--invalid.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__selected-text:hover~.mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--invalid.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__selected-text:hover~.mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--invalid.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__selected-text:hover~.mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error,#b00020)}.mdc-select--invalid.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--invalid.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--invalid.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--invalid.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--invalid.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--invalid.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error,#b00020)}.mdc-select--invalid .mdc-select__dropdown-icon{background:url(data:image/svg+xml,%3Csvg%20width%3D%2210px%22%20height%3D%225px%22%20viewBox%3D%227%2010%2010%205%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Shape%22%20stroke%3D%22none%22%20fill%3D%22%23b00020%22%20fill-rule%3D%22evenodd%22%20opacity%3D%221%22%20points%3D%227%2010%2012%2015%2017%2010%22%3E%3C%2Fpolygon%3E%0A%3C%2Fsvg%3E) no-repeat center}.mdc-select--invalid+.mdc-select-helper-text--validation-msg{opacity:1}.mdc-select--required .mdc-floating-label::after{content:"*"}.mdc-select--disabled{cursor:default;pointer-events:none}.mdc-select--disabled .mdc-select__anchor{background-color:#fafafa}.mdc-select--disabled .mdc-floating-label{color:rgba(0,0,0,.38)}.mdc-select--disabled .mdc-select__dropdown-icon{background:url(data:image/svg+xml,%3Csvg%20width%3D%2210px%22%20height%3D%225px%22%20viewBox%3D%227%2010%2010%205%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Shape%22%20stroke%3D%22none%22%20fill%3D%22%23000%22%20fill-rule%3D%22evenodd%22%20opacity%3D%220.38%22%20points%3D%227%2010%2012%2015%2017%2010%22%3E%3C%2Fpolygon%3E%0A%3C%2Fsvg%3E) no-repeat center}.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0,0,0,.38)}.mdc-select--disabled .mdc-line-ripple::before{border-bottom-style:dotted}.mdc-select--disabled .mdc-select__icon{color:rgba(0,0,0,.38)}.mdc-select--disabled .mdc-select__selected-text{color:rgba(0,0,0,.38);pointer-events:none}.mdc-select--disabled.mdc-select--outlined .mdc-select__anchor{background-color:transparent}.mdc-select--disabled.mdc-select--outlined .mdc-notched-outline__leading,.mdc-select--disabled.mdc-select--outlined .mdc-notched-outline__notch,.mdc-select--disabled.mdc-select--outlined .mdc-notched-outline__trailing{border-color:rgba(0,0,0,.16)}.mdc-select--no-label:not(.mdc-select--outlined) .mdc-select__anchor .mdc-select__selected-text{padding-top:14px}.mdc-select--with-leading-icon .mdc-select__icon{left:16px;right:initial}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__icon,.mdc-select--with-leading-icon .mdc-select__icon[dir=rtl]{left:initial;right:16px}.mdc-select--with-leading-icon .mdc-select__selected-text{padding-left:48px;padding-right:32px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__selected-text,.mdc-select--with-leading-icon .mdc-select__selected-text[dir=rtl]{padding-left:32px;padding-right:48px}.mdc-select--with-leading-icon.mdc-select--outlined .mdc-floating-label--float-above{transform:translateY(-144%) translateX(-32px) scale(1)}[dir=rtl] .mdc-select--with-leading-icon.mdc-select--outlined .mdc-floating-label--float-above,.mdc-select--with-leading-icon.mdc-select--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-144%) translateX(32px) scale(1)}.mdc-select--with-leading-icon.mdc-select--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--with-leading-icon.mdc-select--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--with-leading-icon.mdc-select--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-130%) translateX(-32px) scale(.75)}[dir=rtl] .mdc-select--with-leading-icon.mdc-select--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--with-leading-icon.mdc-select--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],[dir=rtl] .mdc-select--with-leading-icon.mdc-select--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--with-leading-icon.mdc-select--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-130%) translateX(32px) scale(.75)}.mdc-select--with-leading-icon.mdc-select--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--with-leading-icon.mdc-select--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--with-leading-icon.mdc-select--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon 250ms 1}[dir=rtl] .mdc-select--with-leading-icon.mdc-select--outlined .mdc-floating-label--shake,.mdc-select--with-leading-icon.mdc-select--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-rtl 250ms 1}.mdc-select--with-leading-icon.mdc-select__menu .mdc-list-item__text{padding-left:32px;padding-right:32px}[dir=rtl] .mdc-select--with-leading-icon.mdc-select__menu .mdc-list-item__text,.mdc-select--with-leading-icon.mdc-select__menu .mdc-list-item__text[dir=rtl]{padding-left:32px;padding-right:32px}.mdc-select__menu .mdc-list .mdc-list-item--selected{color:#000;color:var(--mdc-theme-on-surface,#000)}.mdc-select__menu .mdc-list .mdc-list-item--selected::before,.mdc-select__menu .mdc-list .mdc-list-item--selected::after{background-color:#000;background-color:var(--mdc-theme-on-surface,#000)}.mdc-select__menu .mdc-list .mdc-list-item--selected:hover::before{opacity:.04}.mdc-select__menu .mdc-list .mdc-list-item--selected.mdc-ripple-upgraded--background-focused::before,.mdc-select__menu .mdc-list .mdc-list-item--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12}.mdc-select__menu .mdc-list .mdc-list-item--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-list .mdc-list-item--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12}.mdc-select__menu .mdc-list .mdc-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:0.12}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-130%) scale(.75)}33%{animation-timing-function:cubic-bezier(.5,0,.701732,.495819);transform:translateX(calc(4% - 32px)) translateY(-130%) scale(.75)}66%{animation-timing-function:cubic-bezier(.302435,.381352,.55,.956352);transform:translateX(calc(-4% - 32px)) translateY(-130%) scale(.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-130%) scale(.75)}}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-130%) scale(.75)}33%{animation-timing-function:cubic-bezier(.5,0,.701732,.495819);transform:translateX(calc(4% - -32px)) translateY(-130%) scale(.75)}66%{animation-timing-function:cubic-bezier(.302435,.381352,.55,.956352);transform:translateX(calc(-4% - -32px)) translateY(-130%) scale(.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-130%) scale(.75)}}:host{display:inline-block;vertical-align:top;outline:0}.hidden,[hidden]{display:none}.mdc-select__icon{z-index:2}.mdc-select--with-leading-icon{--mdc-list-item-graphic-margin:calc(48px - var(--mdc-list-item-graphic-size, 24px) - var(--mdc-list-side-padding, 16px))}.mdc-select .mdc-select__anchor{display:flex;position:relative}.mdc-select .mdc-select__anchor .mdc-select__dropdown-icon{align-items:center;justify-content:center;background:0 0;color:rgba(0,0,0,.54)}.mdc-select .mdc-select__anchor .mdc-select__dropdown-icon svg{fill:currentColor}.mdc-select .mdc-select__anchor .mdc-select__selected-text{overflow:hidden}.mdc-select .mdc-select__anchor *{display:inline-flex}mwc-notched-outline{--mdc-notched-outline-border-color:var(--mdc-select-outlined-idle-border-color, rgba(0, 0, 0, 0.38))}:host(:not([disabled]):hover) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) mwc-notched-outline{--mdc-notched-outline-border-color:var(--mdc-select-outlined-hover-border-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0,0,0,.87);color:var(--mdc-select-ink-color,rgba(0,0,0,.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0,0,0,.42);border-bottom-color:var(--mdc-select-idle-line-color,rgba(0,0,0,.42))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0,0,0,.87);border-bottom-color:var(--mdc-select-hover-line-color,rgba(0,0,0,.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--outlined):not(.mdc-select--disabled) .mdc-select__anchor{background-color:#f5f5f5;background-color:var(--mdc-select-fill-color,#f5f5f5)}:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-select__dropdown-icon{color:var(--mdc-select-error-dropdown-icon-color,var(--mdc-select-error-color,var(--mdc-theme-error,#b00020)))}:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-floating-label,:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-floating-label::after{color:var(--mdc-select-error-color,var(--mdc-theme-error,#b00020))}:host(:not([disabled])) .mdc-select.mdc-select--invalid mwc-notched-outline{--mdc-notched-outline-border-color:var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-select.mdc-select--invalid mwc-menu{--mdc-theme-primary:var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label,:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label::after{color:rgba(0,0,0,.6);color:var(--mdc-select-label-ink-color,rgba(0,0,0,.6))}:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-select__dropdown-icon{color:#000;color:var(--mdc-select-dropdown-icon-color,#000);opacity:.54;opacity:var(--mdc-select-dropdown-icon-opacity,.54)}:host(:not([disabled])) .mdc-select.mdc-select--focused mwc-notched-outline{--mdc-notched-outline-stroke-width:2px}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) mwc-notched-outline{--mdc-notched-outline-border-color:var(--mdc-select-focused-label-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)))}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-select__dropdown-icon{color:rgba(98,0,238,.87);color:var(--mdc-select-focused-dropdown-icon-color,var(--mdc-theme-primary,rgba(98,0,238,.87)))}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-floating-label{color:#6200ee;color:var(--mdc-theme-primary,#6200ee)}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-floating-label::after{color:#6200ee;color:var(--mdc-theme-primary,#6200ee)}:host(:not([disabled])) .mdc-select-helper-text:not(.mdc-select-helper-text--validation-msg){color:var(--mdc-select-label-ink-color,rgba(0,0,0,.6))}:host([disabled]) .mdc-select:not(.mdc-select--outlined) .mdc-select__anchor{background-color:#fafafa;background-color:var(--mdc-select-disabled-fill-color,#fafafa)}:host([disabled]) .mdc-select.mdc-select--outlined mwc-notched-outline{--mdc-notched-outline-border-color:var(--mdc-select-outlined-disabled-border-color, rgba(0, 0, 0, 0.16))}:host([disabled]) .mdc-select .mdc-select__dropdown-icon{color:#000;color:var(--mdc-select-disabled-dropdown-icon-color,#000);opacity:.38;opacity:var(--mdc-select-disabled-dropdown-icon-opacity,.38)}:host([disabled]) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label,:host([disabled]) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label::after{color:rgba(0,0,0,.38);color:var(--mdc-select-disabled-ink-color,rgba(0,0,0,.38))}:host([disabled]) .mdc-select-helper-text{color:rgba(0,0,0,.38);color:var(--mdc-select-disabled-ink-color,rgba(0,0,0,.38))}:host([disabled]) .mdc-select__selected-text{color:rgba(0,0,0,.38);color:var(--mdc-select-disabled-ink-color,rgba(0,0,0,.38))}.mdc-menu{width:100%}`
  /**
  @license
  Copyright 2020 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */;let Ge=class extends We{};Ge.styles=qe,Ge=lt([G("mwc-select")],Ge);
  /**
   @license
   Copyright 2020 Google Inc. All Rights Reserved.
  
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at
  
   http://www.apache.org/licenses/LICENSE-2.0
  
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
   */
  class Ye extends ot{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1}get text(){const t=this.textContent;return t?t.trim():""}render(){const t=this.renderText(),e=this.graphic?this.renderGraphic():R``,i=this.hasMeta?this.renderMeta():R``;return R` ${e} ${t} ${i}`}renderGraphic(){return R` <span class="mdc-list-item__graphic material-icons"> <slot name="graphic"></slot> </span>`}renderMeta(){return R` <span class="mdc-list-item__meta material-icons"> <slot name="meta"></slot> </span>`}renderText(){const t=this.twoline?this.renderTwoline():this.renderSingleLine();return R` <span class="mdc-list-item__text"> ${t} </span>`}renderSingleLine(){return R`<slot></slot>`}renderTwoline(){return R` <span class="mdc-list-item__primary-text"> <slot></slot> </span> <span class="mdc-list-item__secondary-text"> <slot name="secondary"></slot> </span> `}onClick(){this.fireRequestSelected(!this.selected,"interaction")}fireRequestSelected(t,e){if(this.noninteractive)return;const i=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:e,selected:t}});this.dispatchEvent(i)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item",""),this.addEventListener("click",this.boundOnClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.boundOnClick)}firstUpdated(){this.dispatchEvent(new Event("list-item-rendered",{bubbles:!0,composed:!0})),Et({surfaceNode:this,unbounded:!1})}}lt([X("slot")],Ye.prototype,"slotElement",void 0),lt([Z({type:String})],Ye.prototype,"value",void 0),lt([Z({type:String,reflect:!0})],Ye.prototype,"group",void 0),lt([Z({type:Number,reflect:!0})],Ye.prototype,"tabindex",void 0),lt([Z({type:Boolean,reflect:!0}),Kt((function(t){t?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],Ye.prototype,"disabled",void 0),lt([Z({type:Boolean,reflect:!0})],Ye.prototype,"twoline",void 0),lt([Z({type:Boolean,reflect:!0})],Ye.prototype,"activated",void 0),lt([Z({type:String,reflect:!0})],Ye.prototype,"graphic",void 0),lt([Z({type:Boolean})],Ye.prototype,"hasMeta",void 0),lt([Z({type:Boolean,reflect:!0}),Kt((function(t){t?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")}))],Ye.prototype,"noninteractive",void 0),lt([Z({type:Boolean,reflect:!0}),Kt((function(t){t?this.setAttribute("aria-selected","true"):this.setAttribute("aria-selected","false"),this._firstChanged?this._firstChanged=!1:this._skipPropRequest||this.fireRequestSelected(t,"property")}))],Ye.prototype,"selected",void 0);
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  const Ze=it`:host{cursor:pointer;user-select:none;height:48px;display:flex;position:relative;align-items:center;justify-content:flex-start;padding:0 16px;overflow:hidden;padding-left:var(--mdc-list-side-padding,16px);padding-right:var(--mdc-list-side-padding,16px);outline:0;height:48px;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}:host:focus{outline:0}:host([activated]){color:#6200ee;color:var(--mdc-theme-primary,#6200ee)}:host([activated]) .mdc-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary,#6200ee)}.mdc-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;display:inline-flex}.mdc-list-item__graphic ::slotted(*){flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;width:100%;height:100%;text-align:center}.mdc-list-item__meta{width:var(--mdc-list-item-meta-size,24px);height:var(--mdc-list-item-meta-size,24px);margin-left:auto;margin-right:0;color:rgba(0,0,0,.38);color:var(--mdc-theme-text-hint-on-background,rgba(0,0,0,.38))}.mdc-list-item__meta ::slotted(*){line-height:var(--mdc-list-item-meta-size,24px)}.mdc-list-item__meta ::slotted(.material-icons),.mdc-list-item__meta ::slotted(mwc-icon){line-height:var(--mdc-list-item-meta-size,24px)!important}.mdc-list-item__meta ::slotted(:not(.material-icons):not(mwc-icon)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size,.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height,1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing,.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit)}:host[dir=rtl] .mdc-list-item__meta,[dir=rtl] :host .mdc-list-item__meta{margin-left:0;margin-right:auto}.mdc-list-item__meta ::slotted(*){width:100%;height:100%}.mdc-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item__text ::slotted([for]),.mdc-list-item__text[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;margin-bottom:-20px;display:block}.mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size,.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height,1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing,.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;display:block}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list--dense .mdc-list-item__secondary-text{font-size:inherit}* ::slotted(a),a{color:inherit;text-decoration:none}:host([twoline]){height:72px}:host([twoline]) .mdc-list-item__text{align-self:flex-start}:host(:not([disabled])){--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent}:host(:not([disabled]))::before,:host(:not([disabled]))::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:"";top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}:host(:not([disabled]))::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1}:host(:not([disabled]))::before,:host(:not([disabled]))::after{background-color:#000}:host(.mdc-ripple-upgraded:not([disabled]))::before{transform:scale(var(--mdc-ripple-fg-scale,1))}:host(.mdc-ripple-upgraded:not([disabled]))::after{top:0;left:0;transform:scale(0);transform-origin:center center;width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}:host(.mdc-ripple-upgraded--unbounded:not([disabled]))::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}:host(.mdc-ripple-upgraded--foreground-activation:not([disabled]))::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}:host(.mdc-ripple-upgraded--foreground-deactivation:not([disabled]))::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}:host([disabled]),:host([noninteractive]){cursor:default;pointer-events:none}:host([disabled]) .mdc-list-item__text ::slotted(*){opacity:.38}:host([disabled]) .mdc-list-item__text ::slotted(*),:host([disabled]) .mdc-list-item__primary-text ::slotted(*),:host([disabled]) .mdc-list-item__secondary-text ::slotted(*){color:#000;color:var(--mdc-theme-on-surface,#000)}:host(:not([disabled]):hover)::before{opacity:.04}:host(:not([disabled]).mdc-ripple-upgraded--background-focused)::before,:host(:not([disabled]):not(.mdc-ripple-upgraded):focus)::before{transition-duration:75ms;opacity:.12}:host(:not([disabled]):not(.mdc-ripple-upgraded))::after{transition:opacity 150ms linear}:host(:not([disabled]):not(.mdc-ripple-upgraded):active)::after{transition-duration:75ms;opacity:.12}:host(:not([disabled]).mdc-ripple-upgraded){--mdc-ripple-fg-opacity:0.12}:host([activated]:not([disabled]).mdc-ripple-upgraded--background-focused)::before,:host([activated]:not([disabled]):not(.mdc-ripple-upgraded):focus)::before{transition-duration:75ms;opacity:.2}:host([activated]:not([disabled]):not(.mdc-ripple-upgraded):active)::after{opacity:.2}:host([activated]:not([disabled]).mdc-ripple-upgraded){--mdc-ripple-fg-opacity:0.2}:host([activated]:not([disabled]))::before{opacity:.12}:host([activated]:not([disabled]))::before,:host([activated]:not([disabled]))::after{background-color:#6200ee;background-color:var(--mdc-theme-primary,#6200ee)}:host([activated]:not([disabled]):hover)::before{opacity:.16}:host([activated]:not([disabled]).mdc-ripple-upgraded--background-focused)::before,:host([activated]:not([disabled]):not(.mdc-ripple-upgraded):focus)::before{transition-duration:75ms;opacity:.24}:host([activated]:not([disabled]):not(.mdc-ripple-upgraded):active)::after{opacity:.24}:host([activated]:not([disabled]).mdc-ripple-upgraded){--mdc-ripple-fg-opacity:0.24}.mdc-list-item__secondary-text ::slotted(*){color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.mdc-list-item__graphic ::slotted(*){background-color:transparent;color:rgba(0,0,0,.38);color:var(--mdc-theme-text-icon-on-background,rgba(0,0,0,.38))}.mdc-list-group__subheader ::slotted(*){color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}:host([graphic=avatar]) .mdc-list-item__graphic{width:var(--mdc-list-item-graphic-size,40px);height:var(--mdc-list-item-graphic-size,40px)}:host([graphic=avatar]) .mdc-list-item__graphic ::slotted(*){line-height:var(--mdc-list-item-graphic-size,40px)}:host([graphic=avatar]) .mdc-list-item__graphic ::slotted(.material-icons),:host([graphic=avatar]) .mdc-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size,40px)!important}:host([graphic=avatar]) .mdc-list-item__graphic ::slotted(*){border-radius:50%}:host([graphic=avatar],[graphic=medium],[graphic=large],[graphic=control]) .mdc-list-item__graphic{margin-left:0;margin-right:var(--mdc-list-item-graphic-margin,16px)}:host[dir=rtl] :host([graphic=avatar],[graphic=medium],[graphic=large],[graphic=control]) .mdc-list-item__graphic,[dir=rtl] :host :host([graphic=avatar],[graphic=medium],[graphic=large],[graphic=control]) .mdc-list-item__graphic{margin-left:var(--mdc-list-item-graphic-margin,16px);margin-right:0}:host([graphic=icon]) .mdc-list-item__graphic{width:var(--mdc-list-item-graphic-size,24px);height:var(--mdc-list-item-graphic-size,24px);margin-left:0;margin-right:var(--mdc-list-item-graphic-margin,32px)}:host([graphic=icon]) .mdc-list-item__graphic ::slotted(*){line-height:var(--mdc-list-item-graphic-size,24px)}:host([graphic=icon]) .mdc-list-item__graphic ::slotted(.material-icons),:host([graphic=icon]) .mdc-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size,24px)!important}:host[dir=rtl] :host([graphic=icon]) .mdc-list-item__graphic,[dir=rtl] :host :host([graphic=icon]) .mdc-list-item__graphic{margin-left:var(--mdc-list-item-graphic-margin,32px);margin-right:0}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:56px}:host([graphic=medium]:not([twoLine])),:host([graphic=large]:not([twoLine])){height:72px}:host([graphic=medium]) .mdc-list-item__graphic,:host([graphic=large]) .mdc-list-item__graphic{width:var(--mdc-list-item-graphic-size,56px);height:var(--mdc-list-item-graphic-size,56px)}:host([graphic=medium]) .mdc-list-item__graphic ::slotted(*),:host([graphic=large]) .mdc-list-item__graphic ::slotted(*){line-height:var(--mdc-list-item-graphic-size,56px)}:host([graphic=medium]) .mdc-list-item__graphic ::slotted(.material-icons),:host([graphic=medium]) .mdc-list-item__graphic ::slotted(mwc-icon),:host([graphic=large]) .mdc-list-item__graphic ::slotted(.material-icons),:host([graphic=large]) .mdc-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size,56px)!important}:host([graphic=large]){padding-left:0}`
  /**
  @license
  Copyright 2020 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */;let Xe=class extends Ye{};
  /*!
   * Chart.js v3.0.0-alpha
   * https://www.chartjs.org
   * (c) 2020 Chart.js Contributors
   * Released under the MIT License
   */
  function Ke(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Je(){return(Je=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function Qe(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ti(){}Xe.styles=Ze,Xe=lt([G("mwc-list-item")],Xe);var ei,ii=(ei=0,function(){return ei++});function ni(t){return null==t}function oi(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function ri(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}var ai=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function si(t,e){return void 0===t?e:t}function li(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function di(t,e,i,n){var o,r,a;if(oi(t))if(r=t.length,n)for(o=r-1;o>=0;o--)e.call(i,t[o],o);else for(o=0;o<r;o++)e.call(i,t[o],o);else if(ri(t))for(r=(a=Object.keys(t)).length,o=0;o<r;o++)e.call(i,t[a[o]],a[o])}function ci(t){if(oi(t))return t.map(ci);if(ri(t)){for(var e={},i=Object.keys(t),n=i.length,o=0;o<n;++o)e[i[o]]=ci(t[i[o]]);return e}return t}function hi(t,e,i,n){var o=e[t],r=i[t];ri(o)&&ri(r)?ui(o,r,n):e[t]=ci(r)}function ui(t,e,i){var n=oi(e)?e:[e],o=n.length;if(!ri(t))return t;for(var r=(i=i||{}).merger||hi,a=0;a<o;++a)if(ri(e=n[a]))for(var s=Object.keys(e),l=0,d=s.length;l<d;++l)r(s[l],t,e,i);return t}function pi(t,e){return ui(t,e,{merger:mi})}function mi(t,e,i){var n=e[t],o=i[t];ri(n)&&ri(o)?pi(n,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ci(o))}function fi(t){var e=this,i=t&&Object.prototype.hasOwnProperty.call(t,"constructor")?t.constructor:function(){return e.apply(this,arguments)},n=function(){this.constructor=i};return n.prototype=e.prototype,i.prototype=new n,i.extend=fi,t&&Je(i.prototype,t),i.__super__=e.prototype,i}var gi=Object.freeze({__proto__:null,noop:ti,uid:ii,isNullOrUndef:ni,isArray:oi,isObject:ri,isFinite:ai,valueOrDefault:si,valueAtIndexOrDefault:function(t,e,i){return si(oi(t)?t[e]:t,i)},callback:li,each:di,arrayEquals:function t(e,i){var n,o,r,a;if(!e||!i||e.length!==i.length)return!1;for(n=0,o=e.length;n<o;++n)if(r=e[n],a=i[n],r instanceof Array&&a instanceof Array){if(!t(r,a))return!1}else if(r!==a)return!1;return!0},_elementsEqual:function(t,e){var i,n,o,r;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(o=t[i],r=e[i],o.datasetIndex!==r.datasetIndex||o.index!==r.index)return!1;return!0},clone:ci,_merger:hi,merge:ui,mergeIf:pi,_mergerIf:mi,inherits:fi,_deprecated:function(t,e,i,n){void 0!==e&&console.warn(t+': "'+i+'" is deprecated. Please use "'+n+'" instead')}}),bi=Math.PI,vi=bi/180,yi=2*bi,_i=bi/2,xi=bi/4,wi=2*bi/3;function Si(t,e,i,n,o){var r=e[o];return r||(r=e[o]=t.measureText(o).width,i.push(o)),r>n&&(n=r),n}function Ci(t,e,i,n){var o=(n=n||{}).data=n.data||{},r=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(o=n.data={},r=n.garbageCollect=[],n.font=e),t.save(),t.font=e;var a,s,l,d,c,h=0,u=i.length;for(a=0;a<u;a++)if(null!=(d=i[a])&&!0!==oi(d))h=Si(t,o,r,h,d);else if(oi(d))for(s=0,l=d.length;s<l;s++)null==(c=d[s])||oi(c)||(h=Si(t,o,r,h,c));t.restore();var p=r.length/2;if(p>i.length){for(a=0;a<p;a++)delete o[r[a]];r.splice(0,p)}return h}function Ti(t,e,i){var n=t.currentDevicePixelRatio,o=i/2;return Math.round((e-o)*n)/n+o}function Ei(t,e,i,n){var o,r,a,s,l,d=e.pointStyle,c=e.rotation,h=e.radius,u=(c||0)*vi;if(d&&"object"==typeof d&&("[object HTMLImageElement]"===(o=d.toString())||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,n),t.rotate(u),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(h)||h<=0)){switch(t.beginPath(),d){default:t.arc(i,n,h,0,yi),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(u)*h,n-Math.cos(u)*h),u+=wi,t.lineTo(i+Math.sin(u)*h,n-Math.cos(u)*h),u+=wi,t.lineTo(i+Math.sin(u)*h,n-Math.cos(u)*h),t.closePath();break;case"rectRounded":s=h-(l=.516*h),r=Math.cos(u+xi)*s,a=Math.sin(u+xi)*s,t.arc(i-r,n-a,l,u-bi,u-_i),t.arc(i+a,n-r,l,u-_i,u),t.arc(i+r,n+a,l,u,u+_i),t.arc(i-a,n+r,l,u+_i,u+bi),t.closePath();break;case"rect":if(!c){s=Math.SQRT1_2*h,t.rect(i-s,n-s,2*s,2*s);break}u+=xi;case"rectRot":r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(i-r,n-a),t.lineTo(i+a,n-r),t.lineTo(i+r,n+a),t.lineTo(i-a,n+r),t.closePath();break;case"crossRot":u+=xi;case"cross":r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(i-r,n-a),t.lineTo(i+r,n+a),t.moveTo(i+a,n-r),t.lineTo(i-a,n+r);break;case"star":r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(i-r,n-a),t.lineTo(i+r,n+a),t.moveTo(i+a,n-r),t.lineTo(i-a,n+r),u+=xi,r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(i-r,n-a),t.lineTo(i+r,n+a),t.moveTo(i+a,n-r),t.lineTo(i-a,n+r);break;case"line":r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(i-r,n-a),t.lineTo(i+r,n+a);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(u)*h,n+Math.sin(u)*h)}t.fill(),e.borderWidth>0&&t.stroke()}}function ki(t,e){return t.x>e.left-.5&&t.x<e.right+.5&&t.y>e.top-.5&&t.y<e.bottom+.5}function Ai(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Ii(t){t.restore()}function Oi(t,e,i,n,o){if(!e)return t.lineTo(i.x,i.y);if("middle"===o){var r=(e.x+i.x)/2;t.lineTo(r,e.y),t.lineTo(r,i.y)}else"after"===o!=!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function Mi(t,e,i,n){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(n?e.controlPointPreviousX:e.controlPointNextX,n?e.controlPointPreviousY:e.controlPointNextY,n?i.controlPointNextX:i.controlPointPreviousX,n?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y)}var Di=Object.freeze({__proto__:null,_measureText:Si,_longestText:Ci,_alignPixel:Ti,clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},drawPoint:Ei,_isPointInArea:ki,clipArea:Ai,unclipArea:Ii,_steppedLineTo:Oi,_bezierCurveTo:Mi}),Li=Math.PI,Fi=2*Li,Pi=Fi+Li;function Ri(t){var e,i=[],n=Math.sqrt(t);for(e=1;e<n;e++)t%e==0&&(i.push(e),i.push(t/e));return n===(0|n)&&i.push(n),i.sort((t,e)=>t-e).pop(),i}var Ni=Math.log10||function(t){var e=Math.log(t)*Math.LOG10E,i=Math.round(e);return t===Math.pow(10,i)?i:e};function zi(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Vi(t,e,i){return Math.abs(t-e)<i}function Bi(t,e){var i=Math.round(t);return i-e<=t&&i+e>=t}function Hi(t,e,i){var n,o,r;for(n=0,o=t.length;n<o;n++)r=t[n][i],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}var ji=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:t>0?1:-1};function Ui(t){return t*(Li/180)}function $i(t){return t*(180/Li)}function Wi(t){if(ai(t)){for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}}function qi(t,e){var i=e.x-t.x,n=e.y-t.y,o=Math.sqrt(i*i+n*n),r=Math.atan2(n,i);return r<-.5*Li&&(r+=Fi),{angle:r,distance:o}}function Gi(t,e){return(t-e+Pi)%Fi-Li}function Yi(t){return(t%Fi+Fi)%Fi}function Zi(t,e,i){var n=Yi(t),o=Yi(e),r=Yi(i),a=Yi(o-n),s=Yi(r-n),l=Yi(n-o),d=Yi(n-r);return n===o||n===r||a>s&&l<d}function Xi(t,e,i){return Math.max(e,Math.min(i,t))}var Ki=Object.freeze({__proto__:null,_factorize:Ri,log10:Ni,isNumber:zi,almostEquals:Vi,almostWhole:Bi,_setMinAndMaxByKey:Hi,sign:ji,toRadians:Ui,toDegrees:$i,_decimalPlaces:Wi,getAngleFromPoint:qi,distanceBetweenPoints:function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},_angleDiff:Gi,_normalizeAngle:Yi,_angleBetween:Zi,_limitValue:Xi}),Ji=Number.EPSILON||1e-14;function Qi(t,e,i,n){var o=t.skip?e:t,r=e,a=i.skip?e:i,s=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),l=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),d=s/(s+l),c=l/(s+l),h=n*(d=isNaN(d)?0:d),u=n*(c=isNaN(c)?0:c);return{previous:{x:r.x-h*(a.x-o.x),y:r.y-h*(a.y-o.y)},next:{x:r.x+u*(a.x-o.x),y:r.y+u*(a.y-o.y)}}}function tn(t){var e,i,n,o,r,a,s,l,d,c=(t||[]).map(t=>({model:t,deltaK:0,mK:0})),h=c.length;for(e=0;e<h;++e)if(!(n=c[e]).model.skip){if(i=e>0?c[e-1]:null,(o=e<h-1?c[e+1]:null)&&!o.model.skip){var u=o.model.x-n.model.x;n.deltaK=0!==u?(o.model.y-n.model.y)/u:0}!i||i.model.skip?n.mK=n.deltaK:!o||o.model.skip?n.mK=i.deltaK:ji(i.deltaK)!==ji(n.deltaK)?n.mK=0:n.mK=(i.deltaK+n.deltaK)/2}for(e=0;e<h-1;++e)n=c[e],o=c[e+1],n.model.skip||o.model.skip||(Vi(n.deltaK,0,Ji)?n.mK=o.mK=0:(r=n.mK/n.deltaK,a=o.mK/n.deltaK,(l=Math.pow(r,2)+Math.pow(a,2))<=9||(s=3/Math.sqrt(l),n.mK=r*s*n.deltaK,o.mK=a*s*n.deltaK)));for(e=0;e<h;++e)(n=c[e]).model.skip||(i=e>0?c[e-1]:null,o=e<h-1?c[e+1]:null,i&&!i.model.skip&&(d=(n.model.x-i.model.x)/3,n.model.controlPointPreviousX=n.model.x-d,n.model.controlPointPreviousY=n.model.y-d*n.mK),o&&!o.model.skip&&(d=(o.model.x-n.model.x)/3,n.model.controlPointNextX=n.model.x+d,n.model.controlPointNextY=n.model.y+d*n.mK))}function en(t,e,i){return Math.max(Math.min(t,i),e)}function nn(t,e,i,n){var o,r,a,s;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)tn(t);else{var l=n?t[t.length-1]:t[0];for(o=0,r=t.length;o<r;++o)s=Qi(l,a=t[o],t[Math.min(o+1,r-(n?0:1))%r],e.tension),a.controlPointPreviousX=s.previous.x,a.controlPointPreviousY=s.previous.y,a.controlPointNextX=s.next.x,a.controlPointNextY=s.next.y,l=a}e.capBezierPoints&&function(t,e){var i,n,o;for(i=0,n=t.length;i<n;++i)ki(o=t[i],e)&&(i>0&&ki(t[i-1],e)&&(o.controlPointPreviousX=en(o.controlPointPreviousX,e.left,e.right),o.controlPointPreviousY=en(o.controlPointPreviousY,e.top,e.bottom)),i<t.length-1&&ki(t[i+1],e)&&(o.controlPointNextX=en(o.controlPointNextX,e.left,e.right),o.controlPointNextY=en(o.controlPointNextY,e.top,e.bottom)))}(t,i)}var on=Object.freeze({__proto__:null,splineCurve:Qi,splineCurveMonotone:tn,_updateBezierControlPoints:nn});function rn(t){return null!=t&&"none"!==t}function an(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function sn(t,e,i){var n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}function ln(t,e,i){var n=document.defaultView,o=an(t),r=n.getComputedStyle(t)[e],a=n.getComputedStyle(o)[e],s=rn(r),l=rn(a),d=Number.POSITIVE_INFINITY;if(s||l)return Math.min(s?sn(r,t,i):d,l?sn(a,o,i):d)}function dn(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function cn(t,e,i){return(e=dn(t,e)).indexOf("%")>-1?i*parseInt(e,10)/100:parseInt(e,10)}function hn(t){var e=an(t);if(!e)return"number"==typeof t.clientWidth?t.clientWidth:t.width;var i=e.clientWidth,n=i-cn(e,"padding-left",i)-cn(e,"padding-right",i),o=function(t){return ln(t,"max-width","clientWidth")}(t);return isNaN(o)?n:Math.min(n,o)}function un(t){var e=an(t);if(!e)return"number"==typeof t.clientHeight?t.clientHeight:t.height;var i=e.clientHeight,n=i-cn(e,"padding-top",i)-cn(e,"padding-bottom",i),o=function(t){return ln(t,"max-height","clientHeight")}(t);return isNaN(o)?n:Math.min(n,o)}var pn=Object.freeze({__proto__:null,_getParentNode:an,getStyle:dn,getRelativePosition:function(t,e){var i,n,o=t.originalEvent||t,r=e.canvas,a=r.getBoundingClientRect(),s=o.touches;s&&s.length>0?(i=s[0].clientX,n=s[0].clientY):(i=o.clientX,n=o.clientY);var l=parseFloat(dn(r,"padding-left")),d=parseFloat(dn(r,"padding-top")),c=parseFloat(dn(r,"padding-right")),h=parseFloat(dn(r,"padding-bottom")),u=a.right-a.left-l-c,p=a.bottom-a.top-d-h;return{x:i=Math.round((i-a.left-l)/u*r.width/e.currentDevicePixelRatio),y:n=Math.round((n-a.top-d)/p*r.height/e.currentDevicePixelRatio)}},getMaximumWidth:hn,getMaximumHeight:un,retinaScale:function(t,e){var i=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1,{canvas:n,width:o,height:r}=t;n.height=r*i,n.width=o*i,t.ctx.setTransform(i,0,0,i,0,0),!n.style||n.style.height||n.style.width||(n.style.height=r+"px",n.style.width=o+"px")}}),mn={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*(Math.PI/2)),easeOutSine:t=>Math.sin(t*(Math.PI/2)),easeInOutSine:t=>-.5*(Math.cos(Math.PI*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t)),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic(t){var e,i=0;return 0===t?0:1===t?1:(i||(i=.3),e=i/(2*Math.PI)*Math.asin(1),-1*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},easeOutElastic(t){var e,i=0;return 0===t?0:1===t?1:(i||(i=.3),e=i/(2*Math.PI)*Math.asin(1),1*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},easeInOutElastic(t){var e,i=0;return 0===t?0:2==(t/=.5)?1:(i||(i=.45),e=i/(2*Math.PI)*Math.asin(1),t<1?1*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:1*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},easeInBack(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-mn.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*mn.easeInBounce(2*t):.5*mn.easeOutBounce(2*t-1)+.5};var fn=new class{constructor(){this.color="rgba(0,0,0,0.1)",this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.fontColor="#666",this.fontFamily="'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",this.fontSize=12,this.fontStyle="normal",this.lineHeight=1.2,this.hover={onHover:null,mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onClick=null,this.responsive=!0,this.showLines=!0,this.plugins=void 0,this.scale=void 0,this.legend=void 0,this.title=void 0,this.tooltips=void 0,this.doughnut=void 0}set(t,e){return ui(this[t]||(this[t]={}),e)}};function gn(t,e){var i=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}function bn(t){var e,i,n,o;return ri(t)?(e=+t.top||0,i=+t.right||0,n=+t.bottom||0,o=+t.left||0):e=i=n=o=+t||0,{top:e,right:i,bottom:n,left:o,height:e+n,width:o+i}}function vn(t){var e=si(t.fontSize,fn.fontSize);"string"==typeof e&&(e=parseInt(e,10));var i={family:si(t.fontFamily,fn.fontFamily),lineHeight:gn(si(t.lineHeight,fn.lineHeight),e),size:e,style:si(t.fontStyle,fn.fontStyle),weight:null,string:""};return i.string=function(t){return!t||ni(t.size)||ni(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(i),i}function yn(t,e,i,n){var o,r,a,s=!0;for(o=0,r=t.length;o<r;++o)if(void 0!==(a=t[o])&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==i&&oi(a)&&(a=a[i],s=!1),void 0!==a))return n&&!s&&(n.cacheable=!1),a}var _n=Object.freeze({__proto__:null,toLineHeight:gn,toPadding:bn,_parseFont:vn,resolve:yn});function xn(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function wn(t,e){var i,n;"ltr"!==e&&"rtl"!==e||(n=[(i=t.canvas.style).getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Sn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}var Cn=Object.freeze({__proto__:null,getRtlAdapter:xn,overrideTextDirection:wn,restoreTextDirection:Sn}),Tn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},En="0123456789ABCDEF",kn=t=>En[15&t],An=t=>En[(240&t)>>4]+En[15&t],In=t=>(240&t)>>4==(15&t);
  /*!
   * @kurkle/color v0.1.7
   * https://github.com/kurkle/color#readme
   * (c) 2020 Jukka Kurkela
   * Released under the MIT License
   */function On(t){var e=function(t){return In(t.r)&&In(t.g)&&In(t.b)&&In(t.a)}(t)?kn:An;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function Mn(t){return t+.5|0}var Dn=(t,e,i)=>Math.max(Math.min(t,i),e);function Ln(t){return Dn(Mn(2.55*t),0,255)}function Fn(t){return Dn(Mn(255*t),0,255)}function Pn(t){return Dn(Mn(t/2.55)/100,0,1)}function Rn(t){return Dn(Mn(100*t),0,100)}var Nn=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var zn=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Vn(t,e,i){var n=e*Math.min(i,1-i),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+t/30)%12;return i-n*Math.max(Math.min(o-3,9-o,1),-1)};return[o(0),o(8),o(4)]}function Bn(t,e,i){var n=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(n+t/60)%6;return i-i*e*Math.max(Math.min(o,4-o,1),0)};return[n(5),n(3),n(1)]}function Hn(t,e,i){var n,o=Vn(t,1,.5);for(e+i>1&&(e*=n=1/(e+i),i*=n),n=0;n<3;n++)o[n]*=1-e-i,o[n]+=e;return o}function jn(t){var e,i,n,o=t.r/255,r=t.g/255,a=t.b/255,s=Math.max(o,r,a),l=Math.min(o,r,a),d=(s+l)/2;return s!==l&&(n=s-l,i=d>.5?n/(2-s-l):n/(s+l),e=60*(e=s===o?(r-a)/n+(r<a?6:0):s===r?(a-o)/n+2:(o-r)/n+4)+.5),[0|e,i||0,d]}function Un(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(Fn)}function $n(t,e,i){return Un(Vn,t,e,i)}function Wn(t){return(t%360+360)%360}function qn(t){var e,i=zn.exec(t),n=255;if(i){i[5]!==e&&(n=i[6]?Ln(+i[5]):Fn(+i[5]));var o=Wn(+i[2]),r=+i[3]/100,a=+i[4]/100;return{r:(e="hwb"===i[1]?function(t,e,i){return Un(Hn,t,e,i)}(o,r,a):"hsv"===i[1]?function(t,e,i){return Un(Bn,t,e,i)}(o,r,a):$n(o,r,a))[0],g:e[1],b:e[2],a:n}}}var Gn={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"};var Yn=function(t){var e,i,n,o,r,a={},s=Object.keys(t),l=Object.keys(Gn);for(e=0;e<s.length;e++){for(o=r=s[e],i=0;i<l.length;i++)n=l[i],r=r.replace(n,Gn[n]);n=parseInt(t[o],16),a[r]=[n>>16&255,n>>8&255,255&n]}return a}({OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"});function Zn(t,e,i){if(t){var n=jn(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=$n(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function Xn(t,e){return t?Je(e||{},t):t}function Kn(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Fn(t[3]))):(e=Xn(t,{r:0,g:0,b:0,a:1})).a=Fn(e.a),e}function Jn(t){return"r"===t.charAt(0)?function(t){var e,i,n,o=Nn.exec(t),r=255;if(o){if(o[7]!==e){var a=+o[7];r=255&(o[8]?Ln(a):255*a)}return e=+o[1],i=+o[3],n=+o[5],{r:e=255&(o[2]?Ln(e):e),g:i=255&(o[4]?Ln(i):i),b:n=255&(o[6]?Ln(n):n),a:r}}}(t):qn(t)}Yn.transparent=[0,0,0,0];class Qn{constructor(t){if(t instanceof Qn)return t;var e,i,n,o,r=typeof t;"object"===r?e=Kn(t):"string"===r&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?n={r:255&17*Tn[i[1]],g:255&17*Tn[i[2]],b:255&17*Tn[i[3]],a:5===o?17*Tn[i[4]]:255}:7!==o&&9!==o||(n={r:Tn[i[1]]<<4|Tn[i[2]],g:Tn[i[3]]<<4|Tn[i[4]],b:Tn[i[5]]<<4|Tn[i[6]],a:9===o?Tn[i[7]]<<4|Tn[i[8]]:255})),e=n||function(t){var e=Yn[t];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||Jn(t)),this._rgb=e,this._valid=!!e}get valid(){return this._valid}get rgb(){var t=Xn(this._rgb);return t&&(t.a=Pn(t.a)),t}set rgb(t){this._rgb=Kn(t)}rgbString(){return(t=this._rgb)&&(t.a<255?"rgba(".concat(t.r,", ").concat(t.g,", ").concat(t.b,", ").concat(Pn(t.a),")"):"rgb(".concat(t.r,", ").concat(t.g,", ").concat(t.b,")"));var t}hexString(){return On(this._rgb)}hslString(){return function(t){if(t){var e=jn(t),i=e[0],n=Rn(e[1]),o=Rn(e[2]);return t.a<255?"hsla(".concat(i,", ").concat(n,"%, ").concat(o,"%, ").concat(Pn(t.a),")"):"hsl(".concat(i,", ").concat(n,"%, ").concat(o,"%)")}}(this._rgb)}mix(t,e){if(t){var i,n=this.rgb,o=t.rgb,r=e===i?.5:e,a=2*r-1,s=n.a-o.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;i=1-l,n.r=255&l*n.r+i*o.r+.5,n.g=255&l*n.g+i*o.g+.5,n.b=255&l*n.b+i*o.b+.5,n.a=r*n.a+(1-r)*o.a,this.rgb=n}return this}clone(){return new Qn(this.rgb)}alpha(t){return this._rgb.a=Fn(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){var t=this._rgb,e=Mn(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){var t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Zn(this._rgb,2,t),this}darken(t){return Zn(this._rgb,2,-t),this}saturate(t){return Zn(this._rgb,1,t),this}desaturate(t){return Zn(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=jn(t);i[0]=Wn(i[0]+e),i=$n(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function to(t){return new Qn(t)}var eo=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;var io=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(i),!0).forEach((function(e){Ke(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Qe(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},gi,{canvas:Di,curve:on,dom:pn,easing:{effects:mn},options:_n,math:Ki,rtl:Cn,requestAnimFrame:"undefined"==typeof window?function(t){t()}:window.requestAnimationFrame,fontString:(t,e,i)=>e+" "+t+"px "+i,color:function(t){return eo(t)?t:to(t)},getHoverColor:function(t){return eo(t)?t:to(t).saturate(.5).darken(.1).hexString()}});var no=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){var o=e.listeners[n]||[],r=e.duration;o.forEach(n=>n({chart:t,numSteps:r,currentStep:i-e.start}))}_refresh(){var t=this;t._request||(t._running=!0,t._request=io.requestAnimFrame.call(window,()=>{t._update(),t._request=null,t._running&&t._refresh()}))}_update(){var t=this,e=Date.now(),i=0;t._charts.forEach((n,o)=>{if(n.running&&n.items.length){for(var r,a=n.items,s=a.length-1,l=!1;s>=0;--s)(r=a[s])._active?(r.tick(e),l=!0):(a[s]=a[a.length-1],a.pop());l&&o.draw(),o.options.animation.debug&&function(t,e,i,n){var o=1e3/(i-n)|0,r=t.ctx;r.save(),r.clearRect(0,0,50,24),r.fillStyle="black",r.textAlign="right",e&&(r.fillText(e,50,8),r.fillText(o+" fps",50,18)),r.restore()}(o,a.length,e,t._lastDate),t._notify(o,n,e,"progress"),a.length||(n.running=!1,t._notify(o,n,e,"complete")),i+=a.length}}),t._lastDate=e,0===i&&(t._running=!1)}_getAnims(t){var e=this._charts,i=e.get(t);return i||(i={running:!1,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){var e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;var e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){var e=this._charts.get(t);if(e&&e.items.length){for(var i=e.items,n=i.length-1;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}}remove(t){return this._charts.delete(t)}},oo={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){var n=io.color(t||"transparent"),o=n.valid&&io.color(e||"transparent");return o&&o.valid?o.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class ro{constructor(t,e,i,n){var o=e[i];n=yn([t.to,n,o,t.from]);var r=yn([t.from,o,n]);this._active=!0,this._fn=t.fn||oo[t.type||typeof r],this._easing=mn[t.easing||"linear"],this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=n}active(){return this._active}update(t,e,i){var n=this;if(n._active){var o=n._target[n._prop],r=i-n._start,a=n._duration-r;n._start=i,n._duration=Math.floor(Math.max(a,t.duration)),n._to=yn([t.to,e,o,t.from]),n._from=yn([t.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1)}tick(t){var e,i=this,n=t-i._start,o=i._duration,r=i._prop,a=i._from,s=i._loop,l=i._to;i._active=a!==l&&(s||n<o),i._active?n<0?i._target[r]=a:(e=n/o%2,e=s&&e>1?2-e:e,e=i._easing(Math.min(1,Math.max(0,e))),i._target[r]=i._fn(a,l,e)):i._target[r]=l}}var ao=["borderColor","backgroundColor"];fn.set("animation",{duration:1e3,easing:"easeOutQuart",onProgress:ti,onComplete:ti,colors:{type:"color",properties:ao},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]},active:{duration:400},resize:{duration:0},show:{colors:{type:"color",properties:ao,from:"transparent"},visible:{type:"boolean",duration:0}},hide:{colors:{type:"color",properties:ao,to:"transparent"},visible:{type:"boolean",easing:"easeInExpo"}}});class so{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(ri(t)){var e=this._properties,i=function(t){var e={};return Object.keys(t).forEach(i=>{var n=t[i];ri(n)||(e[i]=n)}),e}(t);Object.keys(t).forEach(n=>{var o=t[n];ri(o)&&(o.properties||[n]).forEach(t=>{e.has(t)?t===n&&e.set(t,Je({},e.get(t),o)):e.set(t,Je({},i,o))})})}}_animateOptions(t,e){var i=e.options,n=[];if(!i)return n;var o=t.options;return o?(o.$shared&&(t.options=o=Je({},o,{$shared:!1,$animations:{}})),n=this._createAnimations(o,i)):t.options=i,n}_createAnimations(t,e){var i,n=this._properties,o=[],r=t.$animations||(t.$animations={}),a=Object.keys(e),s=Date.now();for(i=a.length-1;i>=0;--i){var l=a[i];if("$"!==l.charAt(0))if("options"!==l){var d=e[l],c=r[l],h=n.get(l);if(c){if(h&&c.active()){c.update(h,d,s);continue}c.cancel()}h&&h.duration?(r[l]=c=new ro(h,t,l,d),o.push(c)):t[l]=d}else o.push(...this._animateOptions(t,e))}return o}update(t,e){if(0===this._properties.size)return function(t,e){var i=t.options,n=e.options;i&&n&&!n.$shared&&(i.$shared?t.options=Je({},i,n,{$shared:!1}):Je(i,n),delete e.options)}(t,e),void Je(t,e);var i=this._createAnimations(t,e);return i.length?(no.add(this._chart,i),!0):void 0}}var lo=io.options.resolve,co=["push","pop","shift","splice","unshift"];function ho(t,e){var i=t&&t.options||{},n=i.reverse,o=void 0===i.min?e:0,r=void 0===i.max?e:0;return{start:n?r:o,end:n?o:r}}function uo(t,e){var i=t._chartjs;if(i){var n=i.listeners,o=n.indexOf(e);-1!==o&&n.splice(o,1),n.length>0||(co.forEach(e=>{delete t[e]}),delete t._chartjs)}}function po(t,e){var i,n,o=[],r=t._getSortedDatasetMetas(e);for(i=0,n=r.length;i<n;++i)o.push(r[i].index);return o}function mo(t,e,i,n){var o,r,a,s,l=t.keys;for(o=0,r=l.length;o<r;++o){if((a=+l[o])===i){if(n)continue;break}s=t.values[a],isNaN(s)||0!==e&&io.math.sign(e)!==io.math.sign(s)||(e+=s)}return e}function fo(t,e){var i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function go(t,e,i){var n=t[e]||(t[e]={});return n[i]||(n[i]={})}function bo(t,e){for(var{chart:i,_cachedMeta:n}=t,o=i._stacks||(i._stacks={}),{iScale:r,vScale:a,index:s}=n,l=r.axis,d=a.axis,c=function(t,e,i){return t.id+"."+e.id+"."+i.stack+"."+i.type}(r,a,n),h=e.length,u=0;u<h;++u){var p=e[u],{[l]:m,[d]:f}=p;((p._stacks||(p._stacks={}))[d]=go(o,c,m))[s]=f}}function vo(t,e){var i=t.scales;return Object.keys(i).filter(t=>i[t].axis===e).shift()}class yo{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedAnimations={},this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this._config=void 0,this._parsing=!1,this._data=void 0,this._dataCopy=void 0,this._objectData=void 0,this._labels=void 0,this._scaleStacked={},this.initialize()}initialize(){var t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=fo(t.vScale,t),this.addElements()}updateIndex(t){this.index=t}linkScales(){var t=this,e=t.chart,i=t._cachedMeta,n=t.getDataset(),o=i.xAxisID=n.xAxisID||vo(e,"x"),r=i.yAxisID=n.yAxisID||vo(e,"y"),a=i.rAxisID=n.rAxisID||vo(e,"r");i.xScale=t.getScaleForId(o),i.yScale=t.getScaleForId(r),i.rScale=t.getScaleForId(a),i.iScale=t._getIndexScale(),i.vScale=t._getValueScale()}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}getValueScaleId(){return this._cachedMeta.yAxisID}getIndexScaleId(){return this._cachedMeta.xAxisID}_getValueScale(){return this.getScaleForId(this.getValueScaleId())}_getIndexScale(){return this.getScaleForId(this.getIndexScaleId())}_getOtherScale(t){var e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){this._data&&uo(this._data,this)}_dataCheck(){var t,e,i=this,n=i.getDataset(),o=n.data||(n.data=[]);if(io.isObject(o)){if(i._objectData===o)return!1;i._data=function(t){var e,i,n,o=Object.keys(t),r=new Array(o.length);for(e=0,i=o.length;e<i;++e)n=o[e],r[e]={x:n,y:t[n]};return r}(o),i._objectData=o}else{if(i._data===o&&io.arrayEquals(o,i._dataCopy))return!1;i._data&&uo(i._data,i),i._dataCopy=o.slice(0),o&&Object.isExtensible(o)&&(e=i,(t=o)._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),co.forEach(e=>{var i="_onData"+e.charAt(0).toUpperCase()+e.slice(1),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var a=n.apply(this,o);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[i]&&t[i](...o)}),a}})}))),i._data=o}return!0}_labelCheck(){var t=this._cachedMeta.iScale,e=t?t.getLabels():this.chart.data.labels;return this._labels!==e&&(this._labels=e,!0)}addElements(){var t=this,e=t._cachedMeta;t._dataCheck();for(var i=t._data,n=e.data=new Array(i.length),o=0,r=i.length;o<r;++o)n[o]=new t.dataElementType;t.datasetElementType&&(e.dataset=new t.datasetElementType)}buildOrUpdateElements(){var t=this,e=t._dataCheck(),i=t._labelCheck(),n=t._scaleCheck(),o=t._cachedMeta,r=t.getDataset(),a=!1;o._stacked=fo(o.vScale,o),o.stack!==r.stack&&(a=!0,o._parsed.forEach(t=>{delete t._stacks[o.vScale.id][o.index]}),o.stack=r.stack),t._resyncElements(e||i||n||a),a&&bo(t,o._parsed)}configure(){var t=this;t._config=io.merge({},[t.chart.options[t._type].datasets,t.getDataset()],{merger(t,e,i){"data"!==t&&io._merger(t,e,i)}}),t._parsing=lo([t._config.parsing,t.chart.options.parsing,!0])}parse(t,e){var i,n,o,r,a=this,{_cachedMeta:s,_data:l}=a,{iScale:d,vScale:c,_stacked:h}=s,u=d.axis,p=!0;if(t>0&&(p=s._sorted,r=s._parsed[t-1]),!1===a._parsing)s._parsed=l,s._sorted=!0;else{for(n=io.isArray(l[t])?a.parseArrayData(s,l,t,e):io.isObject(l[t])?a.parseObjectData(s,l,t,e):a.parsePrimitiveData(s,l,t,e),i=0;i<e;++i)s._parsed[i+t]=o=n[i],p&&(r&&o[u]<r[u]&&(p=!1),r=o);s._sorted=p}h&&bo(a,n),d.invalidateCaches(),c.invalidateCaches()}parsePrimitiveData(t,e,i,n){var o,r,a,{iScale:s,vScale:l}=t,d=s.axis,c=l.axis,h=s.getLabels(),u=s===l,p=new Array(n);for(o=0,r=n;o<r;++o)a=o+i,p[o]={[d]:u||s.parse(h[a],a),[c]:l.parse(e[a],a)};return p}parseArrayData(t,e,i,n){var o,r,a,s,{xScale:l,yScale:d}=t,c=new Array(n);for(o=0,r=n;o<r;++o)s=e[a=o+i],c[o]={x:l.parse(s[0],a),y:d.parse(s[1],a)};return c}parseObjectData(t,e,i,n){var o,r,a,s,{xScale:l,yScale:d}=t,c=new Array(n);for(o=0,r=n;o<r;++o)s=e[a=o+i],c[o]={x:l.parseObject(s,"x",a),y:d.parseObject(s,"y",a)};return c}getParsed(t){return this._cachedMeta._parsed[t]}applyStack(t,e){var i=this.chart,n=this._cachedMeta,o=e[t.axis];return mo({keys:po(i,!0),values:e._stacks[t.axis]},o,n.index)}getMinMax(t,e){var i,n,o,r,a=this._cachedMeta,s=a._parsed,l=a._sorted&&t===a.iScale,d=s.length,c=this._getOtherScale(t),h=e&&a._stacked&&{keys:po(this.chart,!0),values:null},u=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY,{min:m,max:f}=function(t){var{min:e,max:i,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:o?i:Number.POSITIVE_INFINITY}}(c);function g(){h&&(h.values=o._stacks[t.axis],u=Math.min(u,n),p=Math.max(p,n),n=mo(h,n,a.index,!0)),u=Math.min(u,n),p=Math.max(p,n)}function b(){return o=s[i],n=o[t.axis],r=o[c.axis],isNaN(n)||m>r||f<r}for(i=0;i<d&&(b()||(g(),!l));++i);if(l)for(i=d-1;i>=0;--i)if(!b()){g();break}return{min:u,max:p}}getAllParsedValues(t){var e,i,n,o=this._cachedMeta._parsed,r=[];for(e=0,i=o.length;e<i;++e)n=o[e][t.axis],isNaN(n)||r.push(n);return r}_cacheScaleStackStatus(){var t=this._cachedMeta,e=t.iScale,i=t.vScale,n=this._scaleStacked={};e&&i&&(n[e.id]=e.options.stacked,n[i.id]=i.options.stacked)}_scaleCheck(){var t=this._cachedMeta,e=t.iScale,i=t.vScale,n=this._scaleStacked;return!n||!e||!i||n[e.id]!==e.options.stacked||n[i.id]!==i.options.stacked}getMaxOverflow(){return!1}getLabelAndValue(t){var e=this._cachedMeta,i=e.iScale,n=e.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:n?""+n.getLabelForValue(o[n.axis]):""}}_update(t){var e=this,i=e._cachedMeta;e.configure(),e._cachedAnimations={},e._cachedDataOpts={},e.update(t),i._clip=function(t){var e,i,n,o;return io.isObject(t)?(e=t.top,i=t.right,n=t.bottom,o=t.left):e=i=n=o=t,{top:e,right:i,bottom:n,left:o}}(io.valueOrDefault(e._config.clip,function(t,e,i){if(!1===i)return!1;var n=ho(t,i),o=ho(e,i);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}(i.xScale,i.yScale,e.getMaxOverflow()))),e._cacheScaleStackStatus()}update(t){}draw(){var t=this._ctx,e=this._cachedMeta,i=e.data||[],n=i.length,o=0;for(e.dataset&&e.dataset.draw(t);o<n;++o)i[o].draw(t)}_addAutomaticHoverColors(t,e){for(var i,n=io.getHoverColor,o=this.getStyle(t),r=Object.keys(o).filter(t=>-1!==t.indexOf("Color")&&!(t in e)),a=r.length-1;a>=0;a--)i=r[a],e[i]=n(o[i])}getStyle(t,e){var i=this,n=i._cachedMeta.dataset;i._config||i.configure();var o=n&&void 0===t?i.resolveDatasetElementOptions(e):i.resolveDataElementOptions(t||0,e&&"active");return e&&i._addAutomaticHoverColors(t,o),o}_getContext(t,e){return{chart:this.chart,dataIndex:t,dataset:this.getDataset(),datasetIndex:this.index,active:e}}resolveDatasetElementOptions(t){var e,i,n,o,r,a=this,s=a.chart,l=a._config,d=s.options.elements[a.datasetElementType._type]||{},c=a.datasetElementOptions,h={},u=a._getContext(void 0,t);for(e=0,i=c.length;e<i;++e)n=c[e],o=t?"hover"+n.charAt(0).toUpperCase()+n.slice(1):n,void 0!==(r=lo([l[o],d[o]],u))&&(h[n]=r);return h}resolveDataElementOptions(t,e){var i=this,n="active"===e,o=i._cachedDataOpts;if(o[e])return o[e];var r,a,s,l,d,c,h=i.chart,u=i._config,p=h.options.elements[i.dataElementType._type]||{},m=i.dataElementOptions,f={},g=i._getContext(t,n),b={cacheable:!n};if(io.isArray(m))for(a=0,s=m.length;a<s;++a)l=m[a],c=n?"hover"+l.charAt(0).toUpperCase()+l.slice(1):l,void 0!==(d=lo([u[c],p[c]],g,t,b))&&(f[l]=d);else for(a=0,s=(r=Object.keys(m)).length;a<s;++a)l=r[a],c=n?"hover"+l.charAt(0).toUpperCase()+l.slice(1):l,void 0!==(d=lo([u[m[c]],u[c],p[c]],g,t,b))&&(f[l]=d);return b.cacheable&&(f.$shared=!0,o[e]=f),f}_resolveAnimations(t,e,i){var n=this.chart,o=this._cachedAnimations;if(o[e=e||"default"])return o[e];var r={cacheable:!0},a=this._getContext(t,i),s=lo([this._config.animation],a,t,r),l=lo([n.options.animation],a,t,r),d=io.mergeIf({},[s,l]);d[e]&&(d=Je({},d,d[e]));var c=new so(n,d);return r.cacheable&&(o[e]=c&&Object.freeze(c)),c}getSharedOptions(t,e,i){if(t||(this._sharedOptions=i&&i.$shared),"reset"!==t&&i&&i.$shared&&e&&e.options&&e.options.$shared)return{target:e.options,options:i}}includeOptions(t,e){return"hide"===t||"show"===t||"resize"!==t&&!e}updateElement(t,e,i,n){"reset"===n||"none"===n?Je(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e){t&&this._resolveAnimations(void 0,e).update(t.target,t.options)}_setStyle(t,e,i,n){t.active=n,this._resolveAnimations(e,i,n).update(t,{options:this.getStyle(e,n)})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){var e=this,i=e._cachedMeta,n=i.data.length,o=e._data.length;o>n?(e._insertElements(n,o-n),t&&n&&e.parse(0,n)):o<n?(i.data.splice(o,n-o),i._parsed.splice(o,n-o),e.parse(0,o)):t&&e.parse(0,o)}_insertElements(t,e){var i,n=this,o=new Array(e),r=n._cachedMeta,a=r.data;for(i=0;i<e;++i)o[i]=new n.dataElementType;a.splice(t,0,...o),n._parsing&&r._parsed.splice(t,0,...new Array(e)),n.parse(t,e),n.updateElements(o,t,"reset")}updateElements(t,e,i){}_removeElements(t,e){this._parsing&&this._cachedMeta._parsed.splice(t,e),this._cachedMeta.data.splice(t,e)}_onDataPush(){var t=arguments.length;this._insertElements(this.getDataset().data.length-t,t)}_onDataPop(){this._removeElements(this._cachedMeta.data.length-1,1)}_onDataShift(){this._removeElements(0,1)}_onDataSplice(t,e){this._removeElements(t,e),this._insertElements(t,arguments.length-2)}_onDataUnshift(){this._insertElements(0,arguments.length)}}Ke(yo,"extend",io.inherits),yo.prototype.datasetElementType=null,yo.prototype.dataElementType=null,yo.prototype.datasetElementOptions=["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],yo.prototype.dataElementOptions=["backgroundColor","borderColor","borderWidth","pointStyle"];class _o{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){var{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return zi(this.x)&&zi(this.y)}getProps(t,e){var i=this,n=this.$animations;if(!e||!n)return i;var o={};return t.forEach(t=>{o[t]=n[t]&&n[t].active?n[t]._to:i[t]}),o}}Ke(_o,"extend",fi);var xo=2*Math.PI;function wo(t,e){var{startAngle:i,endAngle:n,pixelMargin:o,x:r,y:a}=e,s=o/e.outerRadius;t.beginPath(),t.arc(r,a,e.outerRadius,i-s,n+s),e.innerRadius>o?(s=o/e.innerRadius,t.arc(r,a,e.innerRadius-o,n+s,i-s,!0)):t.arc(r,a,o,n+Math.PI/2,i-Math.PI/2),t.closePath(),t.clip()}function So(t,e,i){var n=e.options,o="inner"===n.borderAlign;o?(t.lineWidth=2*n.borderWidth,t.lineJoin="round"):(t.lineWidth=n.borderWidth,t.lineJoin="bevel"),i.fullCircles&&function(t,e,i,n){var o,r=i.endAngle;for(n&&(i.endAngle=i.startAngle+xo,wo(t,i),i.endAngle=r,i.endAngle===i.startAngle&&i.fullCircles&&(i.endAngle+=xo,i.fullCircles--)),t.beginPath(),t.arc(i.x,i.y,i.innerRadius,i.startAngle+xo,i.startAngle,!0),o=0;o<i.fullCircles;++o)t.stroke();for(t.beginPath(),t.arc(i.x,i.y,e.outerRadius,i.startAngle,i.startAngle+xo),o=0;o<i.fullCircles;++o)t.stroke()}(t,e,i,o),o&&wo(t,i),t.beginPath(),t.arc(i.x,i.y,e.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),t.stroke()}fn.set("elements",{arc:{backgroundColor:fn.color,borderAlign:"center",borderColor:"#fff",borderWidth:2}});class Co extends _o{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,t&&Je(this,t)}inRange(t,e,i){var n=this.getProps(["x","y"],i),{angle:o,distance:r}=qi(n,{x:t,y:e}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:d,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i);return(c>=xo||Zi(o,a,s))&&(r>=l&&r<=d)}getCenterPoint(t){var{x:e,y:i,startAngle:n,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),s=(n+o)/2,l=(r+a)/2;return{x:e+Math.cos(s)*l,y:i+Math.sin(s)*l}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){var e,i=this,n=i.options,o="inner"===n.borderAlign?.33:0,r={x:i.x,y:i.y,innerRadius:i.innerRadius,outerRadius:Math.max(i.outerRadius-o,0),pixelMargin:o,startAngle:i.startAngle,endAngle:i.endAngle,fullCircles:Math.floor(i.circumference/xo)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+xo,t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),e=0;e<r.fullCircles;++e)t.fill();r.endAngle=r.startAngle+i.circumference%xo}t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&So(t,i,r),t.restore()}}function To(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function Eo(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function ko(t,e,i,n){var o={x:t.controlPointNextX,y:t.controlPointNextY},r={x:e.controlPointPreviousX,y:e.controlPointPreviousY},a=To(t,o,i),s=To(o,r,i),l=To(r,e,i),d=To(a,s,i),c=To(s,l,i);return To(d,c,i)}function Ao(t){return"angle"===t?{between:Zi,compare:Gi,normalize:Yi}:{between:(t,e,i)=>t>=e&&t<=i,compare:(t,e)=>t-e,normalize:t=>t}}function Io(t,e,i,n){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0}}function Oo(t,e,i){if(!i)return[t];var n,o,r,a,{property:s,start:l,end:d}=i,c=e.length,{compare:h,between:u,normalize:p}=Ao(s),{start:m,end:f,loop:g}=function(t,e,i){var n,o,{property:r,start:a,end:s}=i,{between:l,normalize:d}=Ao(r),c=e.length,{start:h,end:u,loop:p}=t;if(p){for(h+=c,u+=c,n=0,o=c;n<o&&l(d(e[h%c][r]),a,s);++n)h--,u--;h%=c,u%=c}return u<h&&(u+=c),{start:h,end:u,loop:p}}(t,e,i),b=[],v=!1,y=null;for(n=m;n<=f;++n)(r=e[n%c]).skip||(v=u(o=p(r[s]),l,d),null===y&&v&&(y=n>m&&h(o,l)>0?a:n),null===y||v&&0!==h(o,d)||(b.push(Io(y,n,g,c)),y=null),a=n);return null!==y&&b.push(Io(y,f,g,c)),b}function Mo(t,e){for(var i=[],n=t.segments,o=0;o<n.length;o++){var r=Oo(n[o],t.points,e);r.length&&i.push(...r)}return i}Ke(Co,"_type","arc");var Do=fn.color;function Lo(t,e,i){t.lineTo(i.x,i.y)}function Fo(t,e,i,n){var o,r,a,{start:s,end:l,loop:d}=i,{points:c,options:h}=e,u=function(t){return t.stepped?Oi:t.tension?Mi:Lo}(h),p=c.length,{move:m=!0,reverse:f}=n||{},g=l<s?p+l-s:l-s;for(o=0;o<=g;++o)(r=c[(s+(f?g-o:o))%p]).skip||(m?(t.moveTo(r.x,r.y),m=!1):u(t,a,r,f,h.stepped),a=r);return d&&u(t,a,r=c[(s+(f?g:0))%p],f,h.stepped),!!d}function Po(t,e,i,n){var o,r,a,s,l,d,c=e.points,h=c.length,{start:u,end:p}=i,{move:m=!0,reverse:f}=n||{},g=p<u?h+p-u:p-u,b=0,v=0;for(m&&(r=c[(u+(f?g:0))%h],t.moveTo(r.x,r.y)),o=0;o<=g;++o)if(!(r=c[(u+(f?g-o:o))%h]).skip){var y=r.x,_=r.y,x=0|y;x===a?(_<s?s=_:_>l&&(l=_),b=(v*b+y)/++v):(s!==l&&(t.lineTo(b,l),t.lineTo(b,s),t.lineTo(b,d)),t.lineTo(y,_),a=x,v=0,s=l=_),d=_}}function Ro(t){var e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._loop||e.tension||e.stepped||i)?Po:Fo}fn.set("elements",{line:{backgroundColor:Do,borderCapStyle:"butt",borderColor:Do,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,fill:!0,tension:.4}});class No extends _o{constructor(t){super(),this.options=void 0,this._loop=void 0,this._fullLoop=void 0,this._controlPointsUpdated=void 0,this._points=void 0,this._segments=void 0,t&&Je(this,t)}updateControlPoints(t){var e=this;if(!e._controlPointsUpdated){var i=e.options;if(i.tension&&!i.stepped){var n=i.spanGaps?e._loop:e._fullLoop;nn(e._points,i,t,n)}}}set points(t){this._points=t,delete this._segments}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t){var e=t.points,i=t.options.spanGaps,n=e.length;if(!n)return[];var o=!!t._loop,{start:r,end:a}=function(t,e,i,n){var o=0,r=e-1;if(i&&!n)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,i&&(r+=o);r>o&&t[r%e].skip;)r--;return{start:o,end:r%=e}}(e,n,o,i);return!0===i?[{start:r,end:a,loop:o}]:function(t,e,i,n){var o,r=t.length,a=[],s=e,l=t[e];for(o=e+1;o<=i;++o){var d=t[o%r];d.skip||d.stop?l.skip||(n=!1,a.push({start:e%r,end:(o-1)%r,loop:n}),e=s=d.stop?o:null):(s=o,l.skip&&(e=o)),l=d}return null!==s&&a.push({start:e%r,end:s%r,loop:n}),a}(e,r,a<r?a+n:a,!!t._fullLoop&&0===r&&a===n-1)}(this))}first(){var t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){var t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){var i=this.options,n=t[e],o=this.points,r=Mo(this,{property:e,start:n,end:n});if(r.length){var a,s,l=[],d=function(t){return t.stepped?Eo:t.tension?ko:To}(i);for(a=0,s=r.length;a<s;++a){var{start:c,end:h}=r[a],u=o[c],p=o[h];if(u!==p){var m=d(u,p,Math.abs((n-u[e])/(p[e]-u[e])),i.stepped);m[e]=t[e],l.push(m)}else l.push(u)}return 1===l.length?l[0]:l}}pathSegment(t,e,i){return Ro(this)(t,this,e,i)}path(t){for(var e=this.segments,i=e.length,n=Ro(this),o=this._loop,r=0;r<i;++r)o&=n(t,this,e[r]);return!!o}draw(t){this.points.length&&(t.save(),function(t,e){t.lineCap=e.borderCapStyle,t.setLineDash(e.borderDash),t.lineDashOffset=e.borderDashOffset,t.lineJoin=e.borderJoinStyle,t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor}(t,this.options),t.beginPath(),this.path(t)&&t.closePath(),t.stroke(),t.restore())}}Ke(No,"_type","line");var zo=fn.color;fn.set("elements",{point:{backgroundColor:zo,borderColor:zo,borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3}});class Vo extends _o{constructor(t){super(),this.options=void 0,this.skip=void 0,this.stop=void 0,t&&Je(this,t)}inRange(t,e,i){var n=this.options,{x:o,y:r}=this.getProps(["x","y"],i);return Math.pow(t-o,2)+Math.pow(e-r,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){var i=this.options,{x:n}=this.getProps(["x"],e);return Math.abs(t-n)<i.radius+i.hitRadius}inYRange(t,e){var i=this.options,{y:n}=this.getProps(["x"],e);return Math.abs(t-n)<i.radius+i.hitRadius}getCenterPoint(t){var{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(){var t=this.options||{},e=Math.max(t.radius,t.hoverRadius)||0;return 2*(e+(e&&t.borderWidth||0))}draw(t,e){var i=this,n=i.options;i.skip||n.radius<=0||(void 0===e||ki(i,e))&&(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Ei(t,n,i.x,i.y))}getRange(){var t=this.options||{};return t.radius+t.hitRadius}}Ke(Vo,"_type","point");var Bo=fn.color;function Ho(t,e){var i,n,o,r,a,{x:s,y:l,base:d,width:c,height:h}=t.getProps(["x","y","base","width","height"],e);return t.horizontal?(a=h/2,i=Math.min(s,d),n=Math.max(s,d),o=l-a,r=l+a):(i=s-(a=c/2),n=s+a,o=Math.min(l,d),r=Math.max(l,d)),{left:i,top:o,right:n,bottom:r}}function jo(t,e,i){return t===e?i:t===i?e:t}function Uo(t,e,i,n){return t?0:Math.max(Math.min(e,n),i)}function $o(t,e,i){var n,o,r,a,s=t.options.borderWidth,l=function(t){var e=t.options.borderSkipped,i={};return e?(t.horizontal?t.base>t.x&&(e=jo(e,"left","right")):t.base<t.y&&(e=jo(e,"bottom","top")),i[e]=!0,i):i}(t);return ri(s)?(n=+s.top||0,o=+s.right||0,r=+s.bottom||0,a=+s.left||0):n=o=r=a=+s||0,{t:Uo(l.top,n,0,i),r:Uo(l.right,o,0,e),b:Uo(l.bottom,r,0,i),l:Uo(l.left,a,0,e)}}function Wo(t,e,i,n){var o=null===e,r=null===i,a=!(!t||o&&r)&&Ho(t,n);return a&&(o||e>=a.left&&e<=a.right)&&(r||i>=a.top&&i<=a.bottom)}fn.set("elements",{rectangle:{backgroundColor:Bo,borderColor:Bo,borderSkipped:"bottom",borderWidth:0}});class qo extends _o{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,t&&Je(this,t)}draw(t){var e,i,n,o,r,a=this.options,{inner:s,outer:l}=(i=Ho(e=this),n=i.right-i.left,o=i.bottom-i.top,r=$o(e,n/2,o/2),{outer:{x:i.left,y:i.top,w:n,h:o},inner:{x:i.left+r.l,y:i.top+r.t,w:n-r.l-r.r,h:o-r.t-r.b}});t.save(),l.w===s.w&&l.h===s.h||(t.beginPath(),t.rect(l.x,l.y,l.w,l.h),t.clip(),t.rect(s.x,s.y,s.w,s.h),t.fillStyle=a.borderColor,t.fill("evenodd")),t.fillStyle=a.backgroundColor,t.fillRect(s.x,s.y,s.w,s.h),t.restore()}inRange(t,e,i){return Wo(this,t,e,i)}inXRange(t,e){return Wo(this,t,null,e)}inYRange(t,e){return Wo(this,null,t,e)}getCenterPoint(t){var{x:e,y:i,base:n,horizontal:o}=this.getProps(["x","y","base","horizontal",t]);return{x:o?(e+n)/2:e,y:o?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Ke(qo,"_type","rectangle");var Go=Object.freeze({__proto__:null,Arc:Co,Line:No,Point:Vo,Rectangle:qo});function Yo(t,e,i,n){var o=i.parse(t[0],n),r=i.parse(t[1],n),a=Math.min(o,r),s=Math.max(o,r),l=a,d=s;Math.abs(a)>Math.abs(s)&&(l=s,d=a),e[i.axis]=d,e._custom={barStart:l,barEnd:d,start:o,end:r,min:a,max:s}}function Zo(t,e,i,n){var o,r,a,s,l=t.iScale,d=t.vScale,c=l.getLabels(),h=l===d,u=[];for(o=i,r=i+n;o<r;++o)s=e[o],(a={})[l.axis]=h||l.parse(c[o],o),oi(s)?Yo(s,a,d,o):a[d.axis]=d.parse(s,o),u.push(a);return u}function Xo(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}fn.set("bar",{hover:{mode:"index"},datasets:{categoryPercentage:.8,barPercentage:.9,animation:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},scales:{x:{type:"category",offset:!0,gridLines:{offsetGridLines:!0}},y:{type:"linear",beginAtZero:!0}}});class Ko extends yo{parsePrimitiveData(t,e,i,n){return Zo(t,e,i,n)}parseArrayData(t,e,i,n){return Zo(t,e,i,n)}parseObjectData(t,e,i,n){var o,r,a,s,l,{iScale:d,vScale:c}=t,h=c.axis,u=[];for(o=i,r=i+n;o<r;++o)s=e[o],(a={})[d.axis]=d.parseObject(s,d.axis,o),oi(l=s[h])?Yo(l,a,c,o):a[c.axis]=c.parseObject(s,h,o),u.push(a);return u}getLabelAndValue(t){var e=this._cachedMeta,{iScale:i,vScale:n}=e,o=this.getParsed(t),r=o._custom,a=Xo(r)?"["+r.start+", "+r.end+"]":""+n.getLabelForValue(o[n.axis]);return{label:""+i.getLabelForValue(o[i.axis]),value:a}}initialize(){super.initialize();var t=this._cachedMeta;t.stack=this.getDataset().stack,t.bar=!0}update(t){var e=this._cachedMeta;this.updateElements(e.data,0,t)}updateElements(t,e,i){var n,o=this,r="reset"===i,a=o._cachedMeta.vScale,s=a.getBasePixel(),l=a.isHorizontal(),d=o._getRuler(),c=o.resolveDataElementOptions(e,i),h=o.getSharedOptions(i,t[e],c),u=o.includeOptions(i,h);for(n=0;n<t.length;n++){var p=e+n,m=o.resolveDataElementOptions(p,i),f=o._calculateBarValuePixels(p,m),g=o._calculateBarIndexPixels(p,d,m),b={horizontal:l,base:r?s:f.base,x:l?r?s:f.head:g.center,y:l?g.center:r?s:f.head,height:l?g.size:void 0,width:l?void 0:g.size};u&&(b.options=m),o.updateElement(t[n],p,b,i)}o.updateSharedOptions(h,i)}_getStacks(t){var e,i,n=this._cachedMeta.iScale,o=n.getMatchingVisibleMetas(this._type),r=n.options.stacked,a=o.length,s=[];for(e=0;e<a&&(i=o[e],(!1===r||-1===s.indexOf(i.stack)||void 0===r&&void 0===i.stack)&&s.push(i.stack),i.index!==t);++e);return s.length||s.push(void 0),s}_getStackCount(){return this._getStacks().length}_getStackIndex(t,e){var i=this._getStacks(t),n=void 0!==e?i.indexOf(e):-1;return-1===n?i.length-1:n}_getRuler(){var t,e,i=this._cachedMeta,n=i.iScale,o=[];for(t=0,e=i.data.length;t<e;++t)o.push(n.getPixelForValue(this.getParsed(t)[n.axis]));return{min:function(t,e){var i,n,o,r,a=t._length;for(o=1,r=e.length;o<r;++o)a=Math.min(a,Math.abs(e[o]-e[o-1]));for(o=0,r=t.ticks.length;o<r;++o)n=t.getPixelForTick(o),a=o>0?Math.min(a,Math.abs(n-i)):a,i=n;return a}(n,o),pixels:o,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n}}_calculateBarValuePixels(t,e){var i,n,o=this._cachedMeta,r=o.vScale,a=e.minBarLength,s=this.getParsed(t),l=s._custom,d=s[r.axis],c=0,h=o._stacked?this.applyStack(r,s):d;h!==d&&(c=h-d,h=d),Xo(l)&&(d=l.barStart,h=l.barEnd-l.barStart,0!==d&&ji(d)!==ji(l.barEnd)&&(c=0),c+=d);var u=Xi(r.getPixelForValue(c),r._startPixel-10,r._endPixel+10);return n=(i=r.getPixelForValue(c+h))-u,void 0!==a&&Math.abs(n)<a&&(i=u+(n=n<0?-a:a)),{size:n,base:u,head:i,center:i+n/2}}_calculateBarIndexPixels(t,e,i){var n="flex"===i.barThickness?function(t,e,i){var n=e.pixels,o=n[t],r=t>0?n[t-1]:null,a=t<n.length-1?n[t+1]:null,s=i.categoryPercentage;null===r&&(r=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-r);var l=o-(o-Math.min(r,a))/2*s;return{chunk:Math.abs(a-r)/2*s/e.stackCount,ratio:i.barPercentage,start:l}}(t,e,i):function(t,e,i){var n,o,r=i.barThickness,a=e.stackCount;return ni(r)?(n=e.min*i.categoryPercentage,o=i.barPercentage):(n=r*a,o=1),{chunk:n/a,ratio:o,start:e.pixels[t]-n/2}}(t,e,i),o=this._getStackIndex(this.index,this._cachedMeta.stack),r=n.start+n.chunk*o+n.chunk/2,a=Math.min(si(i.maxBarThickness,1/0),n.chunk*n.ratio);return{base:r-a/2,head:r+a/2,center:r,size:a}}draw(){var t=this.chart,e=this._cachedMeta,i=e.vScale,n=e.data,o=n.length,r=0;for(Ai(t.ctx,t.chartArea);r<o;++r)isNaN(this.getParsed(r)[i.axis])||n[r].draw(this._ctx);Ii(t.ctx)}}Ko.prototype.dataElementType=qo,Ko.prototype.dataElementOptions=["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],fn.set("bubble",{animation:{numbers:{properties:["x","y","borderWidth","radius"]}},scales:{x:{type:"linear"},y:{type:"linear"}},tooltips:{callbacks:{title:()=>""}}});class Jo extends yo{parseObjectData(t,e,i,n){var o,r,a,{xScale:s,yScale:l}=t,d=[];for(o=i,r=i+n;o<r;++o)a=e[o],d.push({x:s.parseObject(a,"x",o),y:l.parseObject(a,"y",o),_custom:a&&a.r&&+a.r});return d}getMaxOverflow(){for(var t=(this._cachedMeta.data||[]).length-1,e=0;t>=0;--t)e=Math.max(e,this.getStyle(t,!0).radius);return e>0&&e}getLabelAndValue(t){var e=this._cachedMeta,{xScale:i,yScale:n}=e,o=this.getParsed(t),r=i.getLabelForValue(o.x),a=n.getLabelForValue(o.y),s=o._custom;return{label:e.label,value:"("+r+", "+a+(s?", "+s:"")+")"}}update(t){var e=this._cachedMeta.data;this.updateElements(e,0,t)}updateElements(t,e,i){for(var n=this,o="reset"===i,{xScale:r,yScale:a}=n._cachedMeta,s=n.resolveDataElementOptions(e,i),l=n.getSharedOptions(i,t[e],s),d=n.includeOptions(i,l),c=0;c<t.length;c++){var h=t[c],u=e+c,p=!o&&n.getParsed(u),m=o?r.getPixelForDecimal(.5):r.getPixelForValue(p.x),f=o?a.getBasePixel():a.getPixelForValue(p.y),g={x:m,y:f,skip:isNaN(m)||isNaN(f)};d&&(g.options=n.resolveDataElementOptions(c,i),o&&(g.options.radius=0)),n.updateElement(h,u,g,i)}n.updateSharedOptions(l,i)}resolveDataElementOptions(t,e){var i=this,n=i.chart,o=i.getDataset(),r=i.getParsed(t),a=super.resolveDataElementOptions(t,e),s={chart:n,dataIndex:t,dataset:o,datasetIndex:i.index};return a.$shared&&(a=Je({},a,{$shared:!1})),"active"!==e&&(a.radius=0),a.radius+=yn([r&&r._custom,i._config.radius,n.options.elements.point.radius],s,t),a}}Jo.prototype.dataElementType=Vo,Jo.prototype.dataElementOptions=["backgroundColor","borderColor","borderWidth","hitRadius","radius","pointStyle","rotation"];var Qo=Math.PI,tr=2*Qo,er=Qo/2;fn.set("doughnut",{animation:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y"]},animateRotate:!0,animateScale:!1},legend:{labels:{generateLabels(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((e,i)=>{var n=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,hidden:!t.getDataVisibility(i),index:i}}):[]}},onClick(t,e){this.chart.toggleDataVisibility(e.index),this.chart.update()}},cutoutPercentage:50,rotation:-er,circumference:tr,tooltips:{callbacks:{title:()=>"",label(t,e){var i=e.labels[t.index],n=": "+e.datasets[t.datasetIndex].data[t.index];return oi(i)?(i=i.slice())[0]+=n:i+=n,i}}}});class ir extends yo{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){var i,n,o=this.getDataset().data,r=this._cachedMeta;for(i=t,n=t+e;i<n;++i)r._parsed[i]=+o[i]}getRingIndex(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&++e;return e}update(t){var e=this,i=e.chart,{chartArea:n,options:o}=i,r=e._cachedMeta,a=r.data,s=o.cutoutPercentage/100||0,l=e._getRingWeight(e.index),{ratioX:d,ratioY:c,offsetX:h,offsetY:u}=function(t,e,i){var n=1,o=1,r=0,a=0;if(e<tr){var s=t%tr,l=(s+=s>=Qo?-tr:s<-Qo?tr:0)+e,d=Math.cos(s),c=Math.sin(s),h=Math.cos(l),u=Math.sin(l),p=s<=0&&l>=0||l>=tr,m=s<=er&&l>=er||l>=tr+er,f=s<=-er&&l>=-er||l>=Qo+er,g=s===-Qo||l>=Qo?-1:Math.min(d,d*i,h,h*i),b=f?-1:Math.min(c,c*i,u,u*i),v=p?1:Math.max(d,d*i,h,h*i),y=m?1:Math.max(c,c*i,u,u*i);n=(v-g)/2,o=(y-b)/2,r=-(v+g)/2,a=-(y+b)/2}return{ratioX:n,ratioY:o,offsetX:r,offsetY:a}}(o.rotation,o.circumference,s),p=e.getMaxBorderWidth(),m=(n.right-n.left-p)/d,f=(n.bottom-n.top-p)/c,g=Math.max(Math.min(m,f)/2,0),b=(g-Math.max(g*s,0))/e._getVisibleDatasetWeightTotal();e.offsetX=h*g,e.offsetY=u*g,r.total=e.calculateTotal(),e.outerRadius=g-b*e._getRingWeightOffset(e.index),e.innerRadius=Math.max(e.outerRadius-b*l,0),e.updateElements(a,0,t)}_circumference(t,e){var i=this.chart.options,n=this._cachedMeta;return e&&i.animation.animateRotate?0:this.chart.getDataVisibility(t)?this.calculateCircumference(n._parsed[t]*i.circumference/tr):0}updateElements(t,e,i){var n,o=this,r="reset"===i,a=o.chart,s=a.chartArea,l=a.options,d=l.animation,c=(s.left+s.right)/2,h=(s.top+s.bottom)/2,u=r&&d.animateScale,p=u?0:o.innerRadius,m=u?0:o.outerRadius,f=o.resolveDataElementOptions(e,i),g=o.getSharedOptions(i,t[e],f),b=o.includeOptions(i,g),v=l.rotation;for(n=0;n<e;++n)v+=o._circumference(n,r);for(n=0;n<t.length;++n){var y=e+n,_=o._circumference(y,r),x=t[n],w={x:c+o.offsetX,y:h+o.offsetY,startAngle:v,endAngle:v+_,circumference:_,outerRadius:m,innerRadius:p};b&&(w.options=o.resolveDataElementOptions(y,i)),v+=_,o.updateElement(x,y,w,i)}o.updateSharedOptions(g,i)}calculateTotal(){var t,e=this._cachedMeta,i=e.data,n=0;for(t=0;t<i.length;t++){var o=e._parsed[t];!isNaN(o)&&this.chart.getDataVisibility(t)&&(n+=Math.abs(o))}return n}calculateCircumference(t){var e=this._cachedMeta.total;return e>0&&!isNaN(t)?tr*(Math.abs(t)/e):0}getMaxBorderWidth(t){var e,i,n,o,r,a=0,s=this.chart;if(!t)for(e=0,i=s.data.datasets.length;e<i;++e)if(s.isDatasetVisible(e)){t=(n=s.getDatasetMeta(e)).data,(o=n.controller)!==this&&o.configure();break}if(!t)return 0;for(e=0,i=t.length;e<i;++e)"inner"!==(r=o.resolveDataElementOptions(e)).borderAlign&&(a=Math.max(a,r.borderWidth||0,r.hoverBorderWidth||0));return a}_getRingWeightOffset(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(si(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ir.prototype.dataElementType=Co,ir.prototype.dataElementOptions=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],fn.set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{x:{type:"linear",beginAtZero:!0},y:{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}},datasets:{categoryPercentage:.8,barPercentage:.9},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}});fn.set("line",{showLines:!0,spanGaps:!1,hover:{mode:"index"},scales:{x:{type:"category"},y:{type:"linear"}}});class nr extends yo{constructor(t,e){super(t,e),this._showLine=!1}update(t){var e=this,i=e._cachedMeta,n=i.dataset,o=i.data||[],r=e.chart.options,a=e._config;if((e._showLine=si(a.showLine,r.showLines))&&"resize"!==t){var s={points:o,options:e.resolveDatasetElementOptions()};e.updateElement(n,void 0,s,t)}e.updateElements(o,0,t)}updateElements(t,e,i){for(var n,o=this,r="reset"===i,{xScale:a,yScale:s,_stacked:l}=o._cachedMeta,d=o.resolveDataElementOptions(e,i),c=o.getSharedOptions(i,t[e],d),h=o.includeOptions(i,c),u=si(o._config.spanGaps,o.chart.options.spanGaps),p=zi(u)?u:Number.POSITIVE_INFINITY,m=0;m<t.length;++m){var f=e+m,g=t[m],b=o.getParsed(f),v=a.getPixelForValue(b.x),y=r?s.getBasePixel():s.getPixelForValue(l?o.applyStack(s,b):b.y),_={x:v,y:y,skip:isNaN(v)||isNaN(y),stop:m>0&&b.x-n.x>p};h&&(_.options=o.resolveDataElementOptions(f,i)),o.updateElement(g,f,_,i),n=b}o.updateSharedOptions(c,i)}resolveDatasetElementOptions(t){var e=this._config,i=this.chart.options,n=i.elements.line,o=super.resolveDatasetElementOptions(t);return o.spanGaps=si(e.spanGaps,i.spanGaps),o.tension=si(e.lineTension,n.tension),o.stepped=yn([e.stepped,n.stepped]),o}getMaxOverflow(){var t=this._cachedMeta,e=this._showLine&&t.dataset.options.borderWidth||0,i=t.data||[];if(!i.length)return e;var n=i[0].size(),o=i[i.length-1].size();return Math.max(e,n,o)/2}draw(){var t,e,i=this._ctx,n=this.chart,o=this._cachedMeta,r=o.data||[],a=n.chartArea,s=[],l=r.length;for(this._showLine&&o.dataset.draw(i,a),t=0;t<l;++t)(e=r[t]).active?s.push(e):e.draw(i,a);for(t=0,l=s.length;t<l;++t)s[t].draw(i,a)}}nr.prototype.datasetElementType=No,nr.prototype.dataElementType=Vo,nr.prototype.datasetElementOptions=["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","capBezierPoints","cubicInterpolationMode","fill"],nr.prototype.dataElementOptions={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverHitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},fn.set("polarArea",{animation:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]},animateRotate:!0,animateScale:!0},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,gridLines:{circular:!0},pointLabels:{display:!1}}},startAngle:0,legend:{labels:{generateLabels(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((e,i)=>{var n=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,hidden:!t.getDataVisibility(i),index:i}}):[]}},onClick(t,e){this.chart.toggleDataVisibility(e.index),this.chart.update()}},tooltips:{callbacks:{title:()=>"",label:(t,e)=>e.labels[t.index]+": "+t.value}}});class or extends yo{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getIndexScaleId(){return this._cachedMeta.rAxisID}getValueScaleId(){return this._cachedMeta.rAxisID}update(t){var e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,t)}_updateRadius(){var t=this,e=t.chart,i=e.chartArea,n=e.options,o=Math.min(i.right-i.left,i.bottom-i.top),r=Math.max(o/2,0),a=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();t.outerRadius=r-a*t.index,t.innerRadius=t.outerRadius-a}updateElements(t,e,i){var n,o=this,r="reset"===i,a=o.chart,s=o.getDataset(),l=a.options,d=l.animation,c=a.scales.r,h=c.xCenter,u=c.yCenter,p=Ui(l.startAngle)-.5*Math.PI,m=p;for(o._cachedMeta.count=o.countVisibleElements(),n=0;n<e;++n)m+=o._computeAngle(n);for(n=0;n<t.length;n++){var f=t[n],g=e+n,b=m,v=m+o._computeAngle(g),y=this.chart.getDataVisibility(g)?c.getDistanceFromCenterForValue(s.data[g]):0;m=v,r&&(d.animateScale&&(y=0),d.animateRotate&&(b=p,v=p));var _={x:h,y:u,innerRadius:0,outerRadius:y,startAngle:b,endAngle:v,options:o.resolveDataElementOptions(g)};o.updateElement(f,g,_,i)}}countVisibleElements(){var t=this.getDataset(),e=this._cachedMeta,i=0;return e.data.forEach((e,n)=>{!isNaN(t.data[n])&&this.chart.getDataVisibility(n)&&i++}),i}_computeAngle(t){var e=this,i=e._cachedMeta.count,n=e.getDataset();if(isNaN(n.data[t])||!this.chart.getDataVisibility(t))return 0;var o={chart:e.chart,dataIndex:t,dataset:n,datasetIndex:e.index};return yn([e.chart.options.elements.arc.angle,2*Math.PI/i],o,t)}}or.prototype.dataElementType=Co,or.prototype.dataElementOptions=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],fn.set("pie",ci(fn.doughnut)),fn.set("pie",{cutoutPercentage:0}),fn.set("radar",{spanGaps:!1,scales:{r:{type:"radialLinear"}},elements:{line:{tension:0}}});class rr extends yo{getIndexScaleId(){return this._cachedMeta.rAxisID}getValueScaleId(){return this._cachedMeta.rAxisID}getLabelAndValue(t){var e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}update(t){var e=this,i=e._cachedMeta,n=i.dataset,o=i.data||[],r={points:o,_loop:!0,_fullLoop:i.iScale.getLabels().length===o.length,options:e.resolveDatasetElementOptions()};e.updateElement(n,void 0,r,t),e.updateElements(o,0,t),n.updateControlPoints(e.chart.chartArea)}updateElements(t,e,i){var n,o=this.getDataset(),r=this.chart.scales.r,a="reset"===i;for(n=0;n<t.length;n++){var s=t[n],l=e+n,d=this.resolveDataElementOptions(l),c=r.getPointPositionForValue(l,o.data[l]),h=a?r.xCenter:c.x,u=a?r.yCenter:c.y,p={x:h,y:u,angle:c.angle,skip:isNaN(h)||isNaN(u),options:d};this.updateElement(s,l,p,i)}}resolveDatasetElementOptions(t){var e=this._config,i=this.chart.options,n=super.resolveDatasetElementOptions(t);return n.spanGaps=si(e.spanGaps,i.spanGaps),n.tension=si(e.lineTension,i.elements.line.tension),n}}rr.prototype.datasetElementType=No,rr.prototype.dataElementType=Vo,rr.prototype.datasetElementOptions=["backgroundColor","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","borderWidth","fill"],rr.prototype.dataElementOptions={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},fn.set("scatter",{scales:{x:{type:"linear"},y:{type:"linear"}},datasets:{showLine:!1},tooltips:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.value+")"}}});var ar={bar:Ko,bubble:Jo,doughnut:ir,horizontalBar:class extends Ko{getValueScaleId(){return this._cachedMeta.xAxisID}getIndexScaleId(){return this._cachedMeta.yAxisID}},line:nr,polarArea:or,pie:ir,radar:rr,scatter:nr};function sr(t,e,i){for(var n,o=t.length-1,r=0;o-r>1;)t[n=r+o>>1][e]<i?r=n:o=n;return{lo:r,hi:o}}function lr(t,e,i){for(var n,o=t.length-1,r=0;o-r>1;)t[n=r+o>>1][e]<i?o=n:r=n;return{lo:r,hi:o}}function dr(t,e){return"native"in t?{x:t.x,y:t.y}:io.dom.getRelativePosition(t,e)}function cr(t,e){for(var i,n,o,r=t.getSortedVisibleDatasetMetas(),a=0,s=r.length;a<s;++a){({index:i,data:n}=r[a]);for(var l=0,d=n.length;l<d;++l)(o=n[l]).skip||e(o,i,l)}}function hr(t,e,i,n){var{controller:o,data:r,_sorted:a}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&a&&r.length){var l=s._reversePixels?lr:sr;if(!n)return l(r,e,i);if(o._sharedOptions){var d=r[0],c="function"==typeof d.getRange&&d.getRange(e);if(c){var h=l(r,e,i-c),u=l(r,e,i+c);return{lo:h.lo,hi:u.hi}}}}return{lo:0,hi:r.length-1}}function ur(t,e,i,n,o){for(var r=t.getSortedVisibleDatasetMetas(),a=i[e],s=0,l=r.length;s<l;++s)for(var{index:d,data:c}=r[s],{lo:h,hi:u}=hr(r[s],e,a,o),p=h;p<=u;++p){var m=c[p];m.skip||n(m,d,p)}}function pr(t,e,i,n){var o=[];if(!ki(e,t.chartArea))return o;return ur(t,i,e,(function(t,i,r){t.inRange(e.x,e.y,n)&&o.push({element:t,datasetIndex:i,index:r})}),!0),o}function mr(t,e,i,n,o){var r=function(t){var e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){var o=e?Math.abs(t.x-n.x):0,r=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}(i),a=Number.POSITIVE_INFINITY,s=[];if(!ki(e,t.chartArea))return s;return ur(t,i,e,(function(t,i,l){if(!n||t.inRange(e.x,e.y,o)){var d=t.getCenterPoint(o),c=r(e,d);c<a?(s=[{element:t,datasetIndex:i,index:l}],a=c):c===a&&s.push({element:t,datasetIndex:i,index:l})}})),s}var fr={modes:{index(t,e,i,n){var o=dr(e,t),r=i.axis||"x",a=i.intersect?pr(t,o,r,n):mr(t,o,r,!1,n),s=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{var e=a[0].index,i=t.data[e];i&&!i.skip&&s.push({element:i,datasetIndex:t.index,index:e})}),s):[]},dataset(t,e,i,n){var o=dr(e,t),r=i.axis||"xy",a=i.intersect?pr(t,o,r,n):mr(t,o,r,!1,n);if(a.length>0){var s=a[0].datasetIndex,l=t.getDatasetMeta(s).data;a=[];for(var d=0;d<l.length;++d)a.push({element:l[d],datasetIndex:s,index:d})}return a},point:(t,e,i,n)=>pr(t,dr(e,t),i.axis||"xy",n),nearest:(t,e,i,n)=>mr(t,dr(e,t),i.axis||"xy",i.intersect,n),x(t,e,i,n){var o=dr(e,t),r=[],a=!1;return cr(t,(t,e,i)=>{t.inXRange(o.x,n)&&r.push({element:t,datasetIndex:e,index:i}),t.inRange(o.x,o.y,n)&&(a=!0)}),i.intersect&&!a?[]:r},y(t,e,i,n){var o=dr(e,t),r=[],a=!1;return cr(t,(t,e,i)=>{t.inYRange(o.y,n)&&r.push({element:t,datasetIndex:e,index:i}),t.inRange(o.x,o.y,n)&&(a=!0)}),i.intersect&&!a?[]:r}}},gr=["left","top","right","bottom"];function br(t,e){return t.filter(t=>t.pos===e)}function vr(t,e){return t.filter(t=>-1===gr.indexOf(t.pos)&&t.box.axis===e)}function yr(t,e){return t.sort((t,i)=>{var n=e?i:t,o=e?t:i;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function _r(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function xr(t,e,i){var n=i.box,o=t.maxPadding;if(i.size&&(t[i.pos]-=i.size),i.size=i.horizontal?n.height:n.width,t[i.pos]+=i.size,n.getPadding){var r=n.getPadding();o.top=Math.max(o.top,r.top),o.left=Math.max(o.left,r.left),o.bottom=Math.max(o.bottom,r.bottom),o.right=Math.max(o.right,r.right)}var a=e.outerWidth-_r(o,t,"left","right"),s=e.outerHeight-_r(o,t,"top","bottom");if(a!==t.w||s!==t.h)return t.w=a,t.h=s,i.horizontal?a!==t.w:s!==t.h}function wr(t,e){var i=e.maxPadding;function n(t){var n={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{n[t]=Math.max(e[t],i[t])}),n}return n(t?["left","right"]:["top","bottom"])}function Sr(t,e,i){var n,o,r,a,s,l,d=[];for(n=0,o=t.length;n<o;++n)(a=(r=t[n]).box).update(r.width||e.w,r.height||e.h,wr(r.horizontal,e)),xr(e,i,r)&&(l=!0,d.length&&(s=!0)),a.fullWidth||d.push(r);return s&&Sr(d,e,i)||l}function Cr(t,e,i){var n,o,r,a,s=i.padding,l=e.x,d=e.y;for(n=0,o=t.length;n<o;++n)a=(r=t[n]).box,r.horizontal?(a.left=a.fullWidth?s.left:e.left,a.right=a.fullWidth?i.outerWidth-s.right:e.left+e.w,a.top=d,a.bottom=d+a.height,a.width=a.right-a.left,d=a.bottom):(a.left=l,a.right=l+a.width,a.top=e.top,a.bottom=e.top+e.h,a.height=a.bottom-a.top,l=a.right);e.x=l,e.y=d}fn.set("layout",{padding:{top:0,right:0,bottom:0,left:0}});var Tr={defaults:{},addBox(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){var i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){for(var n,o=["fullWidth","position","weight"],r=o.length,a=0;a<r;++a)n=o[a],Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},update(t,e,i){if(t){var n=bn((t.options.layout||{}).padding),o=e-n.width,r=i-n.height,a=function(t){var e=function(t){var e,i,n,o=[];for(e=0,i=(t||[]).length;e<i;++e)n=t[e],o.push({index:e,box:n,pos:n.position,horizontal:n.isHorizontal(),weight:n.weight});return o}(t),i=yr(br(e,"left"),!0),n=yr(br(e,"right")),o=yr(br(e,"top"),!0),r=yr(br(e,"bottom")),a=vr(e,"x"),s=vr(e,"y");return{leftAndTop:i.concat(o),rightAndBottom:n.concat(s).concat(r).concat(a),chartArea:br(e,"chartArea"),vertical:i.concat(n).concat(s),horizontal:o.concat(r).concat(a)}}(t.boxes),s=a.vertical,l=a.horizontal,d=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:o,vBoxMaxWidth:o/2/s.length,hBoxMaxHeight:r/2}),c=Je({maxPadding:Je({},n),w:o,h:r,x:n.left,y:n.top},n);!function(t,e){var i,n,o;for(i=0,n=t.length;i<n;++i)(o=t[i]).width=o.horizontal?o.box.fullWidth&&e.availableWidth:e.vBoxMaxWidth,o.height=o.horizontal&&e.hBoxMaxHeight}(s.concat(l),d),Sr(s,c,d),Sr(l,c,d)&&Sr(s,c,d),function(t){var e=t.maxPadding;function i(i){var n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(c),Cr(a.leftAndTop,c,d),c.x+=c.w,c.y+=c.h,Cr(a.rightAndBottom,c,d),t.chartArea={left:c.left,top:c.top,right:c.left+c.w,bottom:c.top+c.h,height:c.h,width:c.w},di(a.chartArea,e=>{var i=e.box;Je(i,t.chartArea),i.update(c.w,c.h)})}}};class Er{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}}class kr extends Er{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}}var Ar={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Ir(t,e){var i=io.dom.getStyle(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}var Or=!!function(){var t=!1;try{var e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}()&&{passive:!0};function Mr(t,e){var i=!1,n=[];return function(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];n=Array.prototype.slice.call(r),i||(i=!0,io.requestAnimFrame.call(window,()=>{i=!1,t.apply(e,n)}))}}function Dr(t,e){var i=Mr((i,n)=>{var o=t.clientWidth;e(i,n),o<t.clientWidth&&e()},window),n=new ResizeObserver(t=>{var e=t[0];i(e.contentRect.width,e.contentRect.height)});return n.observe(t),n}function Lr(t,e){var i=an(t);if(i){var n=new MutationObserver(i=>{i.forEach(i=>{for(var n=0;n<i.removedNodes.length;n++)if(i.removedNodes[n]===t){e();break}})});return n.observe(i,{childList:!0}),n}}function Fr(t,e){var i=t[e];i&&(i.disconnect(),t[e]=void 0)}function Pr(t){Fr(t,"attach"),Fr(t,"detach"),Fr(t,"resize")}function Rr(t,e,i){var n=()=>Rr(t,e,i);Pr(e);var o=an(t);o?(e.resize=Dr(o,i),e.detach=Lr(t,n)):e.attach=function(t,e){var i=new MutationObserver(i=>{var n=an(t);i.forEach(i=>{for(var o=0;o<i.addedNodes.length;o++){var r=i.addedNodes[o];r!==t&&r!==n||e(i.target)}})});return i.observe(document,{childList:!0,subtree:!0}),i}(t,()=>{Fr(e,"attach");var o=an(t);e.resize=Dr(o,i),e.detach=Lr(t,n)})}class Nr extends Er{acquireContext(t,e){var i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){var i=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t.$chartjs={initial:{height:n,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",null===o||""===o){var r=Ir(t,"width");void 0!==r&&(t.width=r)}if(null===n||""===n)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var a=Ir(t,"height");void 0!==a&&(t.height=a)}}(t,e),i):null}releaseContext(t){var e=t.canvas;if(!e.$chartjs)return!1;var i=e.$chartjs.initial;["height","width"].forEach(t=>{var n=i[t];io.isNullOrUndef(n)?e.removeAttribute(t):e.setAttribute(t,n)});var n=i.style||{};return Object.keys(n).forEach(t=>{e.style[t]=n[t]}),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e);var n=t.canvas,o=t.$proxies||(t.$proxies={});if("resize"===e)return Rr(n,o,i);!function(t,e,i){t.addEventListener(e,i,Or)}(n,e,o[e]=Mr(e=>{i(function(t,e){var i=Ar[t.type]||t.type,n=io.dom.getRelativePosition(t,e);return function(t,e,i,n,o){return{type:t,chart:e,native:o||null,x:void 0!==i?i:null,y:void 0!==n?n:null}}(i,e,n.x,n.y,t)}(e,t))},t))}removeEventListener(t,e){var i=t.canvas,n=t.$proxies||(t.$proxies={});if("resize"===e)return Pr(n);var o=n[e];o&&(!function(t,e,i){t.removeEventListener(e,i,Or)}(i,e,o),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}}var zr={BasicPlatform:kr,DomPlatform:Nr,BasePlatform:Er};fn.set("plugins",{});var Vr=new class{constructor(){this._plugins=[],this._cacheId=0}register(t){var e=this._plugins;[].concat(t).forEach(t=>{-1===e.indexOf(t)&&e.push(t)}),this._cacheId++}unregister(t){var e=this._plugins;[].concat(t).forEach(t=>{var i=e.indexOf(t);-1!==i&&e.splice(i,1)}),this._cacheId++}clear(){this._plugins=[],this._cacheId++}count(){return this._plugins.length}getAll(){return this._plugins}notify(t,e,i){var n,o,r,a,s,l=this._descriptors(t),d=l.length;for(n=0;n<d;++n)if("function"==typeof(s=(r=(o=l[n]).plugin)[e])&&((a=[t].concat(i||[])).push(o.options),!1===s.apply(r,a)))return!1;return!0}_descriptors(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var i=[],n=[],o=t&&t.config||{},r=o.options&&o.options.plugins||{};return this._plugins.concat(o.plugins||[]).forEach(t=>{if(-1===i.indexOf(t)){var e=t.id,o=r[e];!1!==o&&(!0===o&&(o=ci(fn.plugins[e])),i.push(t),n.push({plugin:t,options:o||{}}))}}),e.descriptors=n,e.id=this._cacheId,n}invalidate(t){delete t.$plugins}},Br={constructors:{},defaults:{},registerScale(t){var e=t.id;this.constructors[e]=t,this.defaults[e]=ci(t.defaults)},getScaleConstructor(t){return Object.prototype.hasOwnProperty.call(this.constructors,t)?this.constructors[t]:void 0},getScaleDefaults(t){return Object.prototype.hasOwnProperty.call(this.defaults,t)?ui({},[fn.scale,this.defaults[t]]):{}},updateScaleDefaults(t,e){Object.prototype.hasOwnProperty.call(this.defaults,t)&&(this.defaults[t]=Je(this.defaults[t],e))},addScalesToLayout(t){di(t.scales,e=>{e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,Tr.addBox(t,e)})}},Hr=io.valueOrDefault;function jr(t,e){e=e||{};var i=fn[t.type]||{scales:{}},n=e.scales||{},o={},r={};return Object.keys(n).forEach(t=>{var e=t[0];o[e]=o[e]||t,r[t]=io.mergeIf({},[n[t],i.scales[e]])}),e.scale&&(r[e.scale.id||"r"]=io.mergeIf({},[e.scale,i.scales.r]),o.r=o.r||e.scale.id||"r"),t.data.datasets.forEach(e=>{var i=(fn[e.type||t.type]||{scales:{}}).scales||{};Object.keys(i).forEach(t=>{var a=e[t+"AxisID"]||o[t]||t;r[a]=r[a]||{},io.mergeIf(r[a],[n[a],i[t]])})}),Object.keys(r).forEach(t=>{var e=r[t];io.mergeIf(e,Br.getScaleDefaults(e.type))}),r}function Ur(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return io.merge({},e,{merger(t,e,i,n){"scales"!==t&&"scale"!==t&&io._merger(t,e,i,n)}})}var $r=new Set(["top","bottom","left","right","chartArea"]);function Wr(t,e){return"top"===t||"bottom"===t||!$r.has(t)&&"x"===e}function qr(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function Gr(t){var e=t.chart,i=e.options.animation;Vr.notify(e,"afterRender"),io.callback(i&&i.onComplete,[t],e)}function Yr(t){var e=t.chart,i=e.options.animation;io.callback(i&&i.onProgress,[t],e)}function Zr(){return"undefined"!=typeof window&&"undefined"!=typeof document}class Xr{constructor(t,e){var i=this;e=function(t){var e=(t=t||{}).data=t.data||{datasets:[],labels:[]};e.datasets=e.datasets||[],e.labels=e.labels||[];var i=jr(t,t.options);return t.options=Ur(fn,fn[t.type],t.options||{}),t.options.scales=i,t}(e);var n=function(t){return Zr()&&"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}(t);this.platform=i._initializePlatform(n,e);var o=i.platform.acquireContext(n,e),r=o&&o.canvas,a=r&&r.height,s=r&&r.width;this.id=io.uid(),this.ctx=o,this.canvas=r,this.config=e,this.width=s,this.height=a,this.aspectRatio=a?s/a:null,this.options=e.options,this._bufferedRender=!1,this._layers=[],this._metasets=[],this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this.data=void 0,this.active=void 0,this.lastActive=[],this._lastEvent=void 0,this._listeners={},this._sortedMetasets=[],this._updating=!1,this.scales={},this.scale=void 0,this.$plugins=void 0,this.$proxies={},this._hiddenIndices={},Xr.instances[i.id]=i,Object.defineProperty(i,"data",{get:()=>i.config.data,set(t){i.config.data=t}}),o&&r?(no.listen(i,"complete",Gr),no.listen(i,"progress",Yr),i._initialize(),i.update()):console.error("Failed to create chart: can't acquire context from the given item")}_initialize(){var t=this;return Vr.notify(t,"beforeInit"),t.options.responsive?t.resize(!0):io.dom.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),Vr.notify(t,"afterInit"),t}_initializePlatform(t,e){return e.platform?new e.platform:!Zr()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?new kr:new Nr}clear(){return io.canvas.clear(this),this}stop(){return no.stop(this),this}resize(t,e,i){var n=this,o=n.options,r=n.canvas,a=o.maintainAspectRatio&&n.aspectRatio;void 0!==e&&void 0!==i||(e=hn(r),i=un(r));var s=Math.max(0,Math.floor(e)),l=Math.max(0,Math.floor(a?s/a:i)),d=n.currentDevicePixelRatio,c=o.devicePixelRatio||n.platform.getDevicePixelRatio();if((n.width!==s||n.height!==l||d!==c)&&(r.width=n.width=s,r.height=n.height=l,r.style&&(r.style.width=s+"px",r.style.height=l+"px"),io.dom.retinaScale(n,c),!t)){var h={width:s,height:l};Vr.notify(n,"resize",[h]),o.onResize&&o.onResize(n,h),n.update("resize")}}ensureScalesHaveIDs(){var t=this.options,e=t.scales||{},i=t.scale;io.each(e,(t,e)=>{t.id=e}),i&&(i.id=i.id||"scale")}buildOrUpdateScales(){var t=this,e=t.options.scales,i=t.scales||{},n=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{}),o=[];e&&(o=o.concat(Object.keys(e).map(t=>{var i=e[t],n="r"===t.charAt(0).toLowerCase(),o="x"===t.charAt(0).toLowerCase();return{options:i,dposition:n?"chartArea":o?"bottom":"left",dtype:n?"radialLinear":o?"category":"linear"}}))),io.each(o,e=>{var o=e.options,r=o.id,a=Hr(o.type,e.dtype);void 0!==o.position&&Wr(o.position,o.axis||r[0])===Wr(e.dposition)||(o.position=e.dposition),n[r]=!0;var s=null;if(r in i&&i[r].type===a)(s=i[r]).options=o,s.ctx=t.ctx,s.chart=t;else{var l=Br.getScaleConstructor(a);if(!l)return;s=new l({id:r,type:a,options:o,ctx:t.ctx,chart:t}),i[s.id]=s}s.axis="chartArea"===s.options.position?"r":s.isHorizontal()?"x":"y",s._userMin=s.parse(s.options.min),s._userMax=s.parse(s.options.max),e.isDefault&&(t.scale=s)}),io.each(n,(t,e)=>{t||delete i[e]}),t.scales=i,Br.addScalesToLayout(this)}_updateMetasetIndex(t,e){var i=this._metasets,n=t.index;n!==e&&(i[n]=i[e],i[e]=t,t.index=e)}_updateMetasets(){var t=this._metasets,e=this.data.datasets.length,i=t.length;if(i>e){for(var n=e;n<i;++n)this._destroyDatasetMeta(n);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(qr("order","index"))}buildOrUpdateControllers(){var t,e,i=this,n=[],o=i.data.datasets;for(t=0,e=o.length;t<e;t++){var r=o[t],a=i.getDatasetMeta(t),s=r.type||i.config.type;if(a.type&&a.type!==s&&(i._destroyDatasetMeta(t),a=i.getDatasetMeta(t)),a.type=s,a.order=r.order||0,i._updateMetasetIndex(a,t),a.label=""+r.label,a.visible=i.isDatasetVisible(t),a.controller)a.controller.updateIndex(t),a.controller.linkScales();else{var l=ar[a.type];if(void 0===l)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new l(i,t),n.push(a.controller)}}return i._updateMetasets(),n}_resetElements(){var t=this;io.each(t.data.datasets,(e,i)=>{t.getDatasetMeta(i).controller.reset()},t)}reset(){this._resetElements(),Vr.notify(this,"reset")}update(t){var e,i,n=this;if(n._updating=!0,function(t){var e=t.options;io.each(t.scales,e=>{Tr.removeBox(t,e)});var i=jr(t.config,e);e=Ur(fn,fn[t.config.type],e),t.options=t.config.options=e,t.options.scales=i,t._animationsDisabled=!e.animation,t.ensureScalesHaveIDs(),t.buildOrUpdateScales()}(n),Vr.invalidate(n),!1!==Vr.notify(n,"beforeUpdate")){var o=n.buildOrUpdateControllers();for(e=0,i=n.data.datasets.length;e<i;e++)n.getDatasetMeta(e).controller.buildOrUpdateElements();n._updateLayout(),n.options.animation&&io.each(o,t=>{t.reset()}),n._updateDatasets(t),Vr.notify(n,"afterUpdate"),n._layers.sort(qr("z","_idx")),n._lastEvent&&n._eventHandler(n._lastEvent,!0),n.render(),n._updating=!1}}_updateLayout(){var t=this;!1!==Vr.notify(t,"beforeLayout")&&(Tr.update(t,t.width,t.height),t._layers=[],io.each(t.boxes,e=>{e.configure&&e.configure(),t._layers.push(...e._layers())},t),t._layers.forEach((t,e)=>{t._idx=e}),Vr.notify(t,"afterLayout"))}_updateDatasets(t){var e="function"==typeof t;if(!1!==Vr.notify(this,"beforeDatasetsUpdate")){for(var i=0,n=this.data.datasets.length;i<n;++i)this._updateDataset(i,e?t({datasetIndex:i}):t);Vr.notify(this,"afterDatasetsUpdate")}}_updateDataset(t,e){var i=this.getDatasetMeta(t),n={meta:i,index:t,mode:e};!1!==Vr.notify(this,"beforeDatasetUpdate",[n])&&(i.controller._update(e),Vr.notify(this,"afterDatasetUpdate",[n]))}render(){var t=this,e=t.options.animation;if(!1!==Vr.notify(t,"beforeRender")){no.has(t)?no.running(t)||no.start(t):(t.draw(),Vr.notify(t,"afterRender"),io.callback(e&&e.onComplete,[],t))}}draw(){var t,e=this;if(e.clear(),!(e.width<=0||e.height<=0)&&!1!==Vr.notify(e,"beforeDraw")){var i=e._layers;for(t=0;t<i.length&&i[t].z<=0;++t)i[t].draw(e.chartArea);for(e._drawDatasets();t<i.length;++t)i[t].draw(e.chartArea);Vr.notify(e,"afterDraw")}}_getSortedDatasetMetas(t){var e,i,n=this._sortedMetasets,o=[];for(e=0,i=n.length;e<i;++e){var r=n[e];t&&!r.visible||o.push(r)}return o}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1!==Vr.notify(this,"beforeDatasetsDraw")){for(var t=this.getSortedVisibleDatasetMetas(),e=t.length-1;e>=0;--e)this._drawDataset(t[e]);Vr.notify(this,"afterDatasetsDraw")}}_drawDataset(t){var e=this,i=e.ctx,n=t._clip,o=e.chartArea,r={meta:t,index:t.index};!1!==Vr.notify(e,"beforeDatasetDraw",[r])&&(io.canvas.clipArea(i,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?e.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?e.height:o.bottom+n.bottom}),t.controller.draw(),io.canvas.unclipArea(i),Vr.notify(e,"afterDatasetDraw",[r]))}getElementAtEvent(t){return fr.modes.nearest(this,t,{intersect:!0})}getElementsAtEvent(t){return fr.modes.index(this,t,{intersect:!0})}getElementsAtXAxis(t){return fr.modes.index(this,t,{intersect:!1})}getElementsAtEventForMode(t,e,i,n){var o=fr.modes[e];return"function"==typeof o?o(this,t,i,n):[]}getDatasetAtEvent(t){return fr.modes.dataset(this,t,{intersect:!0})}getDatasetMeta(t){var e=this.data.datasets[t],i=this._metasets,n=i.filter(t=>t._dataset===e).pop();return n||(n=i[t]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1}),n}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateDatasetVisibility(t,e){var i=e?"show":"hide",n=this.getDatasetMeta(t),o=n.controller._resolveAnimations(void 0,i);this.setDatasetVisibility(t,e),o.update(n,{visible:e}),this.update(e=>e.datasetIndex===t?i:void 0)}hide(t){this._updateDatasetVisibility(t,!1)}show(t){this._updateDatasetVisibility(t,!0)}_destroyDatasetMeta(t){var e=this._metasets&&this._metasets[t];e&&(e.controller._destroy(),delete this._metasets[t])}destroy(){var t,e,i=this,n=i.canvas;for(i.stop(),no.remove(i),t=0,e=i.data.datasets.length;t<e;++t)i._destroyDatasetMeta(t);n&&(i.unbindEvents(),io.canvas.clear(i),i.platform.releaseContext(i.ctx),i.canvas=null,i.ctx=null),Vr.notify(i,"destroy"),delete Xr.instances[i.id]}toBase64Image(){return this.canvas.toDataURL(...arguments)}bindEvents(){var t=this,e=t._listeners,i=function(e){t._eventHandler(e)};io.each(t.options.events,n=>{t.platform.addEventListener(t,n,i),e[n]=i}),t.options.responsive&&(i=function(e,i){t.canvas&&t.resize(!1,e,i)},t.platform.addEventListener(t,"resize",i),e.resize=i)}unbindEvents(){var t=this,e=t._listeners;e&&(delete t._listeners,io.each(e,(e,i)=>{t.platform.removeEventListener(t,i,e)}))}updateHoverStyle(t,e,i){var n,o,r,a=i?"set":"remove";for("dataset"===e&&this.getDatasetMeta(t[0].datasetIndex).controller["_"+a+"DatasetHoverStyle"](),o=0,r=t.length;o<r;++o)(n=t[o])&&this.getDatasetMeta(n.datasetIndex).controller[a+"HoverStyle"](n.element,n.datasetIndex,n.index)}_updateHoverStyles(){var t=this,e=(t.options||{}).hover;t.lastActive.length&&t.updateHoverStyle(t.lastActive,e.mode,!1),t.active.length&&e.mode&&t.updateHoverStyle(t.active,e.mode,!0)}_eventHandler(t,e){var i=this;if(!1!==Vr.notify(i,"beforeEvent",[t,e]))return i._handleEvent(t,e),Vr.notify(i,"afterEvent",[t,e]),i.render(),i}_handleEvent(t,e){var i,n=this,o=n.options,r=o.hover,a=e;return"mouseout"===t.type?(n.active=[],n._lastEvent=null):(n.active=n.getElementsAtEventForMode(t,r.mode,r,a),n._lastEvent="click"===t.type?n._lastEvent:t),io.callback(o.onHover||o.hover.onHover,[t.native,n.active],n),"mouseup"!==t.type&&"click"!==t.type||o.onClick&&io.canvas._isPointInArea(t,n.chartArea)&&o.onClick.call(n,t.native,n.active),((i=!io._elementsEqual(n.active,n.lastActive))||e)&&n._updateHoverStyles(),n.lastActive=n.active,i}}function Kr(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}Ke(Xr,"version","3.0.0-alpha"),Ke(Xr,"instances",{});class Jr{constructor(t){this.options=t||{}}formats(){return Kr()}parse(t,e){return Kr()}format(t,e){return Kr()}add(t,e,i){return Kr()}diff(t,e,i){return Kr()}startOf(t,e,i){return Kr()}endOf(t,e){return Kr()}}Jr.override=function(t){Je(Jr.prototype,t)};var Qr={_date:Jr},ta={values:t=>oi(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";var n=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;Math.abs(n)>1&&t!==Math.floor(t)&&(n=t-Math.floor(t));var o=Ni(Math.abs(n)),r=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value)),a=Math.min(Math.abs(i[0].value),Math.abs(i[i.length-1].value)),s=this.chart.options.locale;if(r<1e-4||a>1e7){var l=Ni(Math.abs(t)),d=Math.floor(l)-Math.floor(o);return d=Math.max(Math.min(d,20),0),t.toExponential(d)}var c=-1*Math.floor(o);return c=Math.max(Math.min(c,20),0),new Intl.NumberFormat(s,{minimumFractionDigits:c,maximumFractionDigits:c}).format(t)},logarithmic:function(t,e,i){if(0===t)return"0";var n=t/Math.pow(10,Math.floor(Ni(t)));return 1===n||2===n||5===n?ta.numeric.call(this,t,e,i):""}},ea={formatters:ta};function ia(t,e){for(var i=[],n=t.length/e,o=t.length,r=0;r<o;r+=n)i.push(t[Math.floor(r)]);return i}function na(t,e,i){var n,o=t.ticks.length,r=Math.min(e,o-1),a=t._startPixel,s=t._endPixel,l=t.getPixelForTick(r);if(!(i&&(n=1===o?Math.max(l-a,s-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(r-1))/2,(l+=r<e?n:-n)<a-1e-6||l>s+1e-6)))return l}function oa(t){return t.drawTicks?t.tickMarkLength:0}function ra(t){if(!t.display)return 0;var e=vn(t),i=bn(t.padding);return e.lineHeight+i.height}function aa(t,e,i,n,o){var r,a,s,l=si(n,0),d=Math.min(si(o,t.length),t.length),c=0;for(i=Math.ceil(i),o&&(i=(r=o-n)/Math.floor(r/i)),s=l;s<0;)c++,s=Math.round(l+c*i);for(a=Math.max(l,0);a<d;a++)a===s&&(e.push(t[a]),c++,s=Math.round(l+c*i))}fn.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,lineWidth:0,strokeStyle:"",padding:0,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:ea.formatters.values,minor:{},major:{}}});class sa extends _o{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=t.options,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._ticksLength=0,this._borderValue=0}parse(t,e){return t}parseObject(t,e,i){return void 0!==t[e]?this.parse(t[e],i):null}getUserBounds(){var t=this._userMin,e=this._userMax;return(ni(t)||isNaN(t))&&(t=Number.POSITIVE_INFINITY),(ni(e)||isNaN(e))&&(e=Number.NEGATIVE_INFINITY),{min:t,max:e,minDefined:ai(t),maxDefined:ai(e)}}getMinMax(t){var e,{min:i,max:n,minDefined:o,maxDefined:r}=this.getUserBounds();if(o&&r)return{min:i,max:n};for(var a=this.getMatchingVisibleMetas(),s=0,l=a.length;s<l;++s)e=a[s].controller.getMinMax(this,t),o||(i=Math.min(i,e.min)),r||(n=Math.max(n,e.max));return{min:i,max:n}}invalidateCaches(){}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeUpdate(){li(this.options.beforeUpdate,[this])}update(t,e,i){var n=this,o=n.options.ticks,r=o.sampleSize;n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n._margins=Je({left:0,right:0,top:0,bottom:0},i),n.ticks=null,n._labelSizes=null,n._gridLineItems=null,n._labelItems=null,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeDataLimits(),n.determineDataLimits(),n.afterDataLimits(),n.beforeBuildTicks(),n.ticks=n.buildTicks()||[],n.afterBuildTicks();var a=r<n.ticks.length;n._convertTicksToLabels(a?ia(n.ticks,r):n.ticks),n.configure(),n.beforeCalculateLabelRotation(),n.calculateLabelRotation(),n.afterCalculateLabelRotation(),n.beforeFit(),n.fit(),n.afterFit(),n.ticks=o.display&&(o.autoSkip||"auto"===o.source)?n._autoSkip(n.ticks):n.ticks,a&&n._convertTicksToLabels(n.ticks),n.afterUpdate()}configure(){var t,e,i=this,n=i.options.reverse;i.isHorizontal()?(t=i.left,e=i.right):(t=i.top,e=i.bottom,n=!n),i._startPixel=t,i._endPixel=e,i._reversePixels=n,i._length=e-t}afterUpdate(){li(this.options.afterUpdate,[this])}beforeSetDimensions(){li(this.options.beforeSetDimensions,[this])}setDimensions(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0}afterSetDimensions(){li(this.options.afterSetDimensions,[this])}beforeDataLimits(){li(this.options.beforeDataLimits,[this])}determineDataLimits(){}afterDataLimits(){li(this.options.afterDataLimits,[this])}beforeBuildTicks(){li(this.options.beforeBuildTicks,[this])}buildTicks(){return[]}afterBuildTicks(){li(this.options.afterBuildTicks,[this])}beforeTickToLabelConversion(){li(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){var e,i,n,o=this.options.ticks;for(e=0,i=t.length;e<i;e++)(n=t[e]).label=li(o.callback,[n.value,e,t],this)}afterTickToLabelConversion(){li(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){li(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){var t,e,i,n=this,o=n.options,r=o.ticks,a=n.ticks.length,s=r.minRotation||0,l=r.maxRotation,d=s;if(!n._isVisible()||!r.display||s>=l||a<=1||!n.isHorizontal())n.labelRotation=s;else{var c=n._getLabelSizes(),h=c.widest.width,u=c.highest.height-c.highest.offset,p=Math.min(n.maxWidth,n.chart.width-h);h+6>(t=o.offset?n.maxWidth/a:p/(a-1))&&(t=p/(a-(o.offset?.5:1)),e=n.maxHeight-oa(o.gridLines)-r.padding-ra(o.scaleLabel),i=Math.sqrt(h*h+u*u),d=$i(Math.min(Math.asin(Math.min((c.highest.height+6)/t,1)),Math.asin(Math.min(e/i,1))-Math.asin(u/i))),d=Math.max(s,Math.min(l,d))),n.labelRotation=d}}afterCalculateLabelRotation(){li(this.options.afterCalculateLabelRotation,[this])}beforeFit(){li(this.options.beforeFit,[this])}fit(){var t=this,e={width:0,height:0},i=t.chart,n=t.options,o=n.ticks,r=n.scaleLabel,a=n.gridLines,s=t._isVisible(),l="top"!==n.position&&"x"===t.axis,d=t.isHorizontal();if(d?e.width=t.maxWidth:s&&(e.width=oa(a)+ra(r)),d?s&&(e.height=oa(a)+ra(r)):e.height=t.maxHeight,o.display&&s&&t.ticks.length){var c=t._getLabelSizes(),h=c.first,u=c.last,p=c.widest,m=c.highest,f=.8*m.offset,g=o.padding;if(d){var b=0!==t.labelRotation,v=Ui(t.labelRotation),y=Math.cos(v),_=Math.sin(v),x=_*p.width+y*(m.height-(b?m.offset:0))+(b?0:f);e.height=Math.min(t.maxHeight,e.height+x+g);var w,S,C=t.getPixelForTick(0)-t.left,T=t.right-t.getPixelForTick(t.ticks.length-1);b?(w=l?y*h.width+_*h.offset:_*(h.height-h.offset),S=l?_*(u.height-u.offset):y*u.width+_*u.offset):(w=h.width/2,S=u.width/2),t.paddingLeft=Math.max((w-C)*t.width/(t.width-C),0)+3,t.paddingRight=Math.max((S-T)*t.width/(t.width-T),0)+3}else{var E=o.mirror?0:p.width+g+f;e.width=Math.min(t.maxWidth,e.width+E),t.paddingTop=h.height/2,t.paddingBottom=u.height/2}}t._handleMargins(),d?(t.width=t._length=i.width-t._margins.left-t._margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=i.height-t._margins.top-t._margins.bottom)}_handleMargins(){var t=this;t._margins&&(t._margins.left=Math.max(t.paddingLeft,t._margins.left),t._margins.top=Math.max(t.paddingTop,t._margins.top),t._margins.right=Math.max(t.paddingRight,t._margins.right),t._margins.bottom=Math.max(t.paddingBottom,t._margins.bottom))}afterFit(){li(this.options.afterFit,[this])}isHorizontal(){var{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullWidth(){return this.options.fullWidth}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t),this.afterTickToLabelConversion()}_getLabelSizes(){var t=this._labelSizes;return t||(this._labelSizes=t=this._computeLabelSizes()),t}_computeLabelSizes(){var t=this,e=t.ctx,i=t._longestTextCache,n=t.options.ticks.sampleSize,o=[],r=[],a=[],s=t.ticks;n<s.length&&(s=ia(s,n));var l,d,c,h,u,p,m,f,g,b,v,y=s.length;for(l=0;l<y;++l){if(h=s[l].label,u=t._resolveTickFontOptions(l),e.font=p=u.string,m=i[p]=i[p]||{data:{},gc:[]},f=u.lineHeight,g=b=0,ni(h)||oi(h)){if(oi(h))for(d=0,c=h.length;d<c;++d)ni(v=h[d])||oi(v)||(g=Si(e,m.data,m.gc,g,v),b+=f)}else g=Si(e,m.data,m.gc,g,h),b=f;o.push(g),r.push(b),a.push(f/2)}!function(t,e){di(t,t=>{var i,n=t.gc,o=n.length/2;if(o>e){for(i=0;i<o;++i)delete t.data[n[i]];n.splice(0,o)}})}(i,y);var _=o.indexOf(Math.max.apply(null,o)),x=r.indexOf(Math.max.apply(null,r));function w(t){return{width:o[t]||0,height:r[t]||0,offset:a[t]||0}}return{first:w(0),last:w(y-1),widest:w(_),highest:w(x)}}getLabelForValue(t){return t}getPixelForValue(t){return NaN}getValueForPixel(t){}getPixelForTick(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){return this._reversePixels&&(t=1-t),this._startPixel+t*this._length}getDecimalForPixel(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){var{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}_autoSkip(t){var e=this.options.ticks,i=e.maxTicksLimit||this._length/this._tickSize(),n=e.major.enabled?function(t){var e,i,n=[];for(e=0,i=t.length;e<i;e++)t[e].major&&n.push(e);return n}(t):[],o=n.length,r=n[0],a=n[o-1],s=[];if(o>i)return function(t,e,i,n){var o,r=0,a=i[0];for(n=Math.ceil(n),o=0;o<t.length;o++)o===a&&(e.push(t[o]),a=i[++r*n])}(t,s,n,o/i),s;var l=function(t,e,i){var n=function(t){var e,i,n=t.length;if(n<2)return!1;for(i=t[0],e=1;e<n;++e)if(t[e]-t[e-1]!==i)return!1;return i}(t),o=e.length/i;if(!n)return Math.max(o,1);for(var r=Ri(n),a=0,s=r.length-1;a<s;a++){var l=r[a];if(l>o)return l}return Math.max(o,1)}(n,t,i);if(o>0){var d,c,h=o>1?Math.round((a-r)/(o-1)):null;for(aa(t,s,l,ni(h)?0:r-h,r),d=0,c=o-1;d<c;d++)aa(t,s,l,n[d],n[d+1]);return aa(t,s,l,a,ni(h)?t.length:a+h),s}return aa(t,s,l),s}_tickSize(){var t=this.options.ticks,e=Ui(this.labelRotation),i=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,s=o?o.highest.height+r:0;return this.isHorizontal()?s*i>a*n?a/i:s/n:s*n<a*i?s/i:a/n}_isVisible(){var t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){var e,i,n,o,r,a,s,l,d,c,h,u,p=this,m=p.axis,f=p.chart,g=p.options,{gridLines:b,position:v}=g,y=b.offsetGridLines,_=p.isHorizontal(),x=p.ticks,w=x.length+(y?1:0),S=oa(b),C=[],T={scale:p,tick:x[0]},E=b.drawBorder?yn([b.borderWidth,b.lineWidth,0],T,0):0,k=E/2,A=function(t){return Ti(f,t,E)};if("top"===v)e=A(p.bottom),a=p.bottom-S,l=e-k,c=A(t.top)+k,u=t.bottom;else if("bottom"===v)e=A(p.top),c=t.top,u=A(t.bottom)-k,a=e+k,l=p.top+S;else if("left"===v)e=A(p.right),r=p.right-S,s=e-k,d=A(t.left)+k,h=t.right;else if("right"===v)e=A(p.left),d=t.left,h=A(t.right)-k,r=e+k,s=p.left+S;else if("x"===m){if("center"===v)e=A((t.top+t.bottom)/2);else if(ri(v)){var I=Object.keys(v)[0],O=v[I];e=A(p.chart.scales[I].getPixelForValue(O))}c=t.top,u=t.bottom,l=(a=e+k)+S}else if("y"===m){if("center"===v)e=A((t.left+t.right)/2);else if(ri(v)){var M=Object.keys(v)[0],D=v[M];e=A(p.chart.scales[M].getPixelForValue(D))}s=(r=e-k)-S,d=t.left,h=t.right}for(i=0;i<w;++i){T={scale:p,tick:x[i]||{}};var L=yn([b.lineWidth],T,i),F=yn([b.color],T,i),P=b.borderDash||[],R=yn([b.borderDashOffset],T,i);void 0!==(n=na(p,i,y))&&(o=Ti(f,n,L),_?r=s=d=h=o:a=l=c=u=o,C.push({tx1:r,ty1:a,tx2:s,ty2:l,x1:d,y1:c,x2:h,y2:u,width:L,color:F,borderDash:P,borderDashOffset:R}))}return p._ticksLength=w,p._borderValue=e,C}_computeLabelItems(t){var e,i,n,o,r,a,s,l,d,c,h,u=this,p=u.axis,m=u.options,{position:f,ticks:g}=m,b=g.mirror,v=u.isHorizontal(),y=u.ticks,_=g.padding,x=oa(m.gridLines),w=-Ui(u.labelRotation),S=[];if("top"===f)r=u.bottom-x-_,a=w?"left":"center";else if("bottom"===f)r=u.top+x+_,a=w?"right":"center";else if("left"===f)o=u.right-(b?0:x)-_,a=b?"left":"right";else if("right"===f)o=u.left+(b?0:x)+_,a=b?"right":"left";else if("x"===p){if("center"===f)r=(t.top+t.bottom)/2+x+_;else if(ri(f)){var C=Object.keys(f)[0],T=f[C];r=u.chart.scales[C].getPixelForValue(T)+x+_}a=w?"right":"center"}else if("y"===p){if("center"===f)o=(t.left+t.right)/2-x-_;else if(ri(f)){var E=Object.keys(f)[0],k=f[E];o=u.chart.scales[E].getPixelForValue(k)}a="right"}for(e=0,i=y.length;e<i;++e)n=y[e].label,s=u.getPixelForTick(e)+g.labelOffset,d=(l=u._resolveTickFontOptions(e)).lineHeight,c=oi(n)?n.length:1,v?(o=s,"top"===f?(h=(Math.sin(w)*(c/2)+.5)*d,h-=(0===w?c-.5:Math.cos(w)*(c/2))*d):(h=Math.sin(w)*(c/2)*d,h+=(0===w?.5:Math.cos(w)*(c/2))*d)):(r=s,h=(1-c)*d/2),S.push({x:o,y:r,rotation:w,label:n,font:l,textOffset:h,textAlign:a});return S}drawGrid(t){var e,i,n=this,o=n.options.gridLines,r=n.ctx,a=n.chart,s={scale:n,tick:n.ticks[0]},l=o.drawBorder?yn([o.borderWidth,o.lineWidth,0],s,0):0,d=n._gridLineItems||(n._gridLineItems=n._computeGridLineItems(t));if(o.display)for(e=0,i=d.length;e<i;++e){var c=d[e],h=c.width,u=c.color;h&&u&&(r.save(),r.lineWidth=h,r.strokeStyle=u,r.setLineDash&&(r.setLineDash(c.borderDash),r.lineDashOffset=c.borderDashOffset),r.beginPath(),o.drawTicks&&(r.moveTo(c.tx1,c.ty1),r.lineTo(c.tx2,c.ty2)),o.drawOnChartArea&&(r.moveTo(c.x1,c.y1),r.lineTo(c.x2,c.y2)),r.stroke(),r.restore())}if(l){var p=l;s={scale:n,tick:n.ticks[n._ticksLength-1]};var m,f,g,b,v=yn([o.lineWidth,1],s,n._ticksLength-1),y=n._borderValue;n.isHorizontal()?(m=Ti(a,n.left,p)-p/2,f=Ti(a,n.right,v)+v/2,g=b=y):(g=Ti(a,n.top,p)-p/2,b=Ti(a,n.bottom,v)+v/2,m=f=y),r.lineWidth=l,r.strokeStyle=yn([o.borderColor,o.color],s,0),r.beginPath(),r.moveTo(m,g),r.lineTo(f,b),r.stroke()}}drawLabels(t){var e=this;if(e.options.ticks.display){var i,n,o,r,a=e.ctx,s=e._labelItems||(e._labelItems=e._computeLabelItems(t));for(i=0,o=s.length;i<o;++i){var l=s[i],d=l.font,c=d.lineWidth>0&&""!==d.strokeStyle;a.save(),a.translate(l.x,l.y),a.rotate(l.rotation),a.font=d.string,a.fillStyle=d.color,a.textBaseline="middle",a.textAlign=l.textAlign,c&&(a.strokeStyle=d.strokeStyle,a.lineWidth=d.lineWidth);var h=l.label,u=l.textOffset;if(oi(h))for(n=0,r=h.length;n<r;++n)c&&a.strokeText(""+h[n],0,u),a.fillText(""+h[n],0,u),u+=d.lineHeight;else c&&a.strokeText(h,0,u),a.fillText(h,0,u);a.restore()}}}drawTitle(t){var e=this,i=e.ctx,n=e.options,o=n.scaleLabel;if(o.display){var r,a,s,l=si(o.fontColor,fn.fontColor),d=vn(o),c=bn(o.padding),h=d.lineHeight/2,u=o.align,p=n.position,m=e.options.reverse,f=0;if(e.isHorizontal()){switch(u){case"start":a=e.left+(m?e.width:0),r=m?"right":"left";break;case"end":a=e.left+(m?0:e.width),r=m?"left":"right";break;default:a=e.left+e.width/2,r="center"}s="top"===p?e.top+h+c.top:e.bottom-h-c.bottom}else{var g="left"===p;switch(a=g?e.left+h+c.top:e.right-h-c.top,u){case"start":s=e.top+(m?0:e.height),r=m===g?"right":"left";break;case"end":s=e.top+(m?e.height:0),r=m===g?"left":"right";break;default:s=e.top+e.height/2,r="center"}f=g?-.5*Math.PI:.5*Math.PI}i.save(),i.translate(a,s),i.rotate(f),i.textAlign=r,i.textBaseline="middle",i.fillStyle=l,i.font=d.string,i.fillText(o.labelString,0,0),i.restore()}}draw(t){this._isVisible()&&(this.drawGrid(t),this.drawTitle(),this.drawLabels(t))}_layers(){var t=this,e=t.options,i=e.ticks&&e.ticks.z||0,n=e.gridLines&&e.gridLines.z||0;return t._isVisible()&&i!==n&&t.draw===t._draw?[{z:n,draw(e){t.drawGrid(e),t.drawTitle()}},{z:i,draw(e){t.drawLabels(e)}}]:[{z:i,draw(e){t.draw(e)}}]}getMatchingVisibleMetas(t){var e,i,n=this.chart.getSortedVisibleDatasetMetas(),o=this.axis+"AxisID",r=[];for(e=0,i=n.length;e<i;++e){var a=n[e];a[o]!==this.id||t&&a.type!==t||r.push(a)}return r}_resolveTickFontOptions(t){var e=this.options.ticks,i={chart:this.chart,scale:this,tick:this.ticks[t],index:t};return Je(vn({fontFamily:yn([e.fontFamily],i),fontSize:yn([e.fontSize],i),fontStyle:yn([e.fontStyle],i),lineHeight:yn([e.lineHeight],i)}),{color:yn([e.fontColor,fn.fontColor],i),lineWidth:yn([e.lineWidth],i),strokeStyle:yn([e.strokeStyle],i)})}}sa.prototype._draw=sa.prototype.draw;class la extends sa{constructor(t){super(t),this._numLabels=0,this._startValue=void 0,this._valueRange=0}parse(t,e){var i=this.getLabels();if(i[e]===t)return e;var n=i.indexOf(t),o=i.lastIndexOf(t);return-1===n||n!==o?e:n}determineDataLimits(){var t=this,e=t.getLabels().length-1;t.min=Math.max(t._userMin||0,0),t.max=Math.min(t._userMax||e,e)}buildTicks(){var t=this,e=t.min,i=t.max,n=t.options.offset,o=t.getLabels();return o=0===e&&i===o.length-1?o:o.slice(e,i+1),t._numLabels=o.length,t._valueRange=Math.max(o.length-(n?0:1),1),t._startValue=t.min-(n?.5:0),o.map(t=>({value:t}))}getLabelForValue(t){var e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(t*this._numLabels/e.length+this.min)}getValueForPixel(t){var e=Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange);return Math.min(Math.max(e,0),this.ticks.length-1)}getBasePixel(){return this.bottom}}function da(t,e){var i=Math.floor(Ni(t)),n=t/Math.pow(10,i);return(e?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*Math.pow(10,i)}Ke(la,"id","category"),Ke(la,"defaults",{});class ca extends sa{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return ni(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?NaN:+t}handleTickRangeOptions(){var t=this,e=t.options;if(e.beginAtZero){var i=ji(t.min),n=ji(t.max);i<0&&n<0?t.max=0:i>0&&n>0&&(t.min=0)}var o=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),o!==r&&t.min>=t.max&&(o?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)}getTickLimit(){var t,e=this.options.ticks,{maxTicksLimit:i,stepSize:n}=e;return n?t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(t=this.computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}handleDirectionalChanges(t){return t}buildTicks(){var t=this,e=t.options,i=e.ticks,n=t.getTickLimit(),o=function(t,e){var i,n,o,r,a=[],{stepSize:s,min:l,max:d,precision:c}=t,h=s||1,u=t.maxTicks-1,{min:p,max:m}=e,f=da((m-p)/u/h)*h;if(f<1e-14&&ni(l)&&ni(d))return[{value:p},{value:m}];(r=Math.ceil(m/f)-Math.floor(p/f))>u&&(f=da(r*f/u/h)*h),s||ni(c)?i=Math.pow(10,Wi(f)):(i=Math.pow(10,c),f=Math.ceil(f*i)/i),n=Math.floor(p/f)*f,o=Math.ceil(m/f)*f,!s||ni(l)||ni(d)||Bi((d-l)/s,f/1e3)&&(n=l,o=d),r=Vi(r=(o-n)/f,Math.round(r),f/1e3)?Math.round(r):Math.ceil(r),n=Math.round(n*i)/i,o=Math.round(o*i)/i,a.push({value:ni(l)?n:l});for(var g=1;g<r;++g)a.push({value:Math.round((n+g*f)*i)/i});return a.push({value:ni(d)?o:d}),a}({maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:i.precision,stepSize:si(i.fixedStepSize,i.stepSize)},t);return Hi(o=t.handleDirectionalChanges(o),t,"value"),e.reverse?(o.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),o}configure(){var t=this,e=t.ticks,i=t.min,n=t.max;if(super.configure(),t.options.offset&&e.length){var o=(n-i)/Math.max(e.length-1,1)/2;i-=o,n+=o}t._startValue=i,t._endValue=n,t._valueRange=n-i}getLabelForValue(t){return new Intl.NumberFormat(this.options.locale).format(t)}}var ha={ticks:{callback:ea.formatters.numeric}};class ua extends ca{determineDataLimits(){var t=this,e=t.options,i=t.getMinMax(!0),n=i.min,o=i.max;t.min=ai(n)?n:si(e.suggestedMin,0),t.max=ai(o)?o:si(e.suggestedMax,1),e.stacked&&n>0&&(t.min=0),t.handleTickRangeOptions()}computeTickLimit(){if(this.isHorizontal())return Math.ceil(this.width/40);var t=vn(this.options.ticks);return Math.ceil(this.height/t.lineHeight)}handleDirectionalChanges(t){return this.isHorizontal()?t:t.reverse()}getPixelForValue(t){return this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function pa(t){return 1===t/Math.pow(10,Math.floor(Ni(t)))}function ma(t,e){return ai(t)?t:e}Ke(ua,"id","linear"),Ke(ua,"defaults",ha);var fa={ticks:{callback:ea.formatters.logarithmic,major:{enabled:!0}}};class ga extends sa{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){var i=ca.prototype.parse.apply(this,[t,e]);if(0!==i)return ai(i)&&i>0?i:NaN}determineDataLimits(){var t=this.getMinMax(!0),e=t.min,i=t.max;this.min=ai(e)?Math.max(0,e):null,this.max=ai(i)?Math.max(0,i):null,this.handleTickRangeOptions()}handleTickRangeOptions(){var t=this.min,e=this.max;t===e&&(t<=0?(t=1,e=10):(t=Math.pow(10,Math.floor(Ni(t))-1),e=Math.pow(10,Math.floor(Ni(e))+1))),t<=0&&(t=Math.pow(10,Math.floor(Ni(e))-1)),e<=0&&(e=Math.pow(10,Math.floor(Ni(t))+1)),this.min=t,this.max=e}buildTicks(){var t=this,e=t.options,i=function(t,e){var i=Math.floor(Ni(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),o=[],r=ma(t.min,Math.pow(10,Math.floor(Ni(e.min)))),a=Math.floor(Ni(r)),s=Math.floor(r/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{o.push({value:r,major:pa(r)}),10===++s&&(s=1,l=++a>=0?1:l),r=Math.round(s*Math.pow(10,a)*l)/l}while(a<i||a===i&&s<n);var d=ma(t.max,r);return o.push({value:d,major:pa(r)}),o}({min:t._userMin,max:t._userMax},t),n=!t.isHorizontal();return Hi(i,t,"value"),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&i.reverse(),i}getLabelForValue(t){return void 0===t?"0":new Intl.NumberFormat(this.options.locale).format(t)}configure(){var t=this.min;super.configure(),this._startValue=Ni(t),this._valueRange=Ni(this.max)-Ni(t)}getPixelForValue(t){var e=this;return void 0!==t&&0!==t||(t=e.min),e.getPixelForDecimal(t===e.min?0:(Ni(t)-e._startValue)/e._valueRange)}getValueForPixel(t){var e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}Ke(ga,"id","logarithmic"),Ke(ga,"defaults",fa);var ba=io.valueOrDefault,va=io.valueAtIndexOrDefault,ya=io.options.resolve,_a={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:ea.formatters.numeric},pointLabels:{display:!0,fontSize:10,callback:t=>t}};function xa(t){var e=t.ticks;return e.display&&t.display?ba(e.fontSize,fn.fontSize)+2*e.backdropPaddingY:0}function wa(t,e,i,n,o){return t===n||t===o?{start:e-i/2,end:e+i/2}:t<n||t>o?{start:e-i,end:e}:{start:e,end:e+i}}function Sa(t){return 0===t||180===t?"center":t<180?"left":"right"}function Ca(t,e,i,n){var o,r,a=i.y+n/2;if(io.isArray(e))for(o=0,r=e.length;o<r;++o)t.fillText(e[o],i.x,a),a+=n;else t.fillText(e,i.x,a)}function Ta(t,e,i){90===t||270===t?i.y-=e.h/2:(t>270||t<90)&&(i.y-=e.h)}function Ea(t){return zi(t)?t:0}class ka extends ca{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this.pointLabels=[]}setDimensions(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=xa(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2}determineDataLimits(){var t=this.getMinMax(!1),e=t.min,i=t.max;this.min=io.isFinite(e)&&!isNaN(e)?e:0,this.max=io.isFinite(i)&&!isNaN(i)?i:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/xa(this.options))}generateTickLabels(t){var e=this;ca.prototype.generateTickLabels.call(e,t),e.pointLabels=e.chart.data.labels.map((t,i)=>{var n=io.callback(e.options.pointLabels.callback,[t,i],e);return n||0===n?n:""})}fit(){var t=this.options;t.display&&t.pointLabels.display?function(t){var e,i,n,o=io.options._parseFont(t.options.pointLabels),r={l:0,r:t.width,t:0,b:t.height-t.paddingTop},a={};t.ctx.font=o.string,t._pointLabelSizes=[];var s,l,d,c=t.chart.data.labels.length;for(e=0;e<c;e++){n=t.getPointPosition(e,t.drawingArea+5),s=t.ctx,l=o.lineHeight,d=t.pointLabels[e],i=io.isArray(d)?{w:Ci(s,s.font,d),h:d.length*l}:{w:s.measureText(d).width,h:l},t._pointLabelSizes[e]=i;var h=t.getIndexAngle(e),u=$i(h),p=wa(u,n.x,i.w,0,180),m=wa(u,n.y,i.h,90,270);p.start<r.l&&(r.l=p.start,a.l=h),p.end>r.r&&(r.r=p.end,a.r=h),m.start<r.t&&(r.t=m.start,a.t=h),m.end>r.b&&(r.b=m.end,a.b=h)}t._setReductions(t.drawingArea,r,a)}(this):this.setCenterPoint(0,0,0,0)}_setReductions(t,e,i){var n=this,o=e.l/Math.sin(i.l),r=Math.max(e.r-n.width,0)/Math.sin(i.r),a=-e.t/Math.cos(i.t),s=-Math.max(e.b-(n.height-n.paddingTop),0)/Math.cos(i.b);o=Ea(o),r=Ea(r),a=Ea(a),s=Ea(s),n.drawingArea=Math.min(Math.floor(t-(o+r)/2),Math.floor(t-(a+s)/2)),n.setCenterPoint(o,r,a,s)}setCenterPoint(t,e,i,n){var o=this,r=o.width-e-o.drawingArea,a=t+o.drawingArea,s=i+o.drawingArea,l=o.height-o.paddingTop-n-o.drawingArea;o.xCenter=Math.floor((a+r)/2+o.left),o.yCenter=Math.floor((s+l)/2+o.top+o.paddingTop)}getIndexAngle(t){var e=this.chart;return Yi(t*(2*Math.PI/e.data.labels.length)+Ui((e.options||{}).startAngle||0))}getDistanceFromCenterForValue(t){var e=this;if(io.isNullOrUndef(t))return NaN;var i=e.drawingArea/(e.max-e.min);return e.options.reverse?(e.max-t)*i:(t-e.min)*i}getPointPosition(t,e){var i=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}drawGrid(){var t,e,i,n=this,o=n.ctx,r=n.options,a=r.gridLines,s=r.angleLines,l=ba(s.lineWidth,a.lineWidth),d=ba(s.color,a.color);if(r.pointLabels.display&&function(t){var e=t.ctx,i=t.options,n=i.pointLabels,o=xa(i),r=t.getDistanceFromCenterForValue(i.ticks.reverse?t.min:t.max),a=io.options._parseFont(n);e.save(),e.font=a.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var l=0===s?o/2:0,d=t.getPointPosition(s,r+l+5),c=va(n.fontColor,s,fn.fontColor);e.fillStyle=c;var h=$i(t.getIndexAngle(s));e.textAlign=Sa(h),Ta(h,t._pointLabelSizes[s],d),Ca(e,t.pointLabels[s],d,a.lineHeight)}e.restore()}(n),a.display&&n.ticks.forEach((t,i)=>{0!==i&&(e=n.getDistanceFromCenterForValue(n.ticks[i].value),function(t,e,i,n){var o,r=t.ctx,a=e.circular,s=t.chart.data.labels.length,l=va(e.color,n-1,void 0),d=va(e.lineWidth,n-1,void 0);if((a||s)&&l&&d){if(r.save(),r.strokeStyle=l,r.lineWidth=d,r.setLineDash&&(r.setLineDash(e.borderDash||[]),r.lineDashOffset=e.borderDashOffset||0),r.beginPath(),a)r.arc(t.xCenter,t.yCenter,i,0,2*Math.PI);else{o=t.getPointPosition(0,i),r.moveTo(o.x,o.y);for(var c=1;c<s;c++)o=t.getPointPosition(c,i),r.lineTo(o.x,o.y)}r.closePath(),r.stroke(),r.restore()}}(n,a,e,i))}),s.display&&l&&d){for(o.save(),o.lineWidth=l,o.strokeStyle=d,o.setLineDash&&(o.setLineDash(ya([s.borderDash,a.borderDash,[]])),o.lineDashOffset=ya([s.borderDashOffset,a.borderDashOffset,0])),t=n.chart.data.labels.length-1;t>=0;t--)e=n.getDistanceFromCenterForValue(r.ticks.reverse?n.min:n.max),i=n.getPointPosition(t,e),o.beginPath(),o.moveTo(n.xCenter,n.yCenter),o.lineTo(i.x,i.y),o.stroke();o.restore()}}drawLabels(){var t=this,e=t.ctx,i=t.options,n=i.ticks;if(n.display){var o,r,a=t.getIndexAngle(0),s=io.options._parseFont(n),l=ba(n.fontColor,fn.fontColor);e.save(),e.font=s.string,e.translate(t.xCenter,t.yCenter),e.rotate(a),e.textAlign="center",e.textBaseline="middle",t.ticks.forEach((a,d)=>{(0!==d||i.reverse)&&(o=t.getDistanceFromCenterForValue(t.ticks[d].value),n.showLabelBackdrop&&(r=e.measureText(a.label).width,e.fillStyle=n.backdropColor,e.fillRect(-r/2-n.backdropPaddingX,-o-s.size/2-n.backdropPaddingY,r+2*n.backdropPaddingX,s.size+2*n.backdropPaddingY)),e.fillStyle=l,e.fillText(a.label,0,-o))}),e.restore()}}drawTitle(){}}Ke(ka,"id","radialLinear"),Ke(ka,"defaults",_a);var Aa=Number.MAX_SAFE_INTEGER||9007199254740991,Ia={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Oa=Object.keys(Ia);function Ma(t,e){return t-e}function Da(t){var e,i,n=new Set;for(e=0,i=t.length;e<i;++e)n.add(t[e]);return n.size===i?t:[...n]}function La(t,e){if(ni(e))return null;var i=t._adapter,n=t.options.time,o=n.parser,r=e;return"function"==typeof o&&(r=o(r)),ai(r)||(r="string"==typeof o?i.parse(r,o):i.parse(r)),null===r?r:(n.round&&(r=t._adapter.startOf(r,n.round)),+r)}function Fa(t){var e,i,n="series"===t.options.distribution,o=t._cache.data||[];if(o.length)return o;var r=t.getMatchingVisibleMetas();if(n&&r.length)return r[0].controller.getAllParsedValues(t);for(e=0,i=r.length;e<i;++e)o=o.concat(r[e].controller.getAllParsedValues(t));return t._cache.data=Da(o.sort(Ma))}function Pa(t){var e,i,n="series"===t.options.distribution,o=t._cache.labels||[];if(o.length)return o;var r=t.getLabels();for(e=0,i=r.length;e<i;++e)o.push(La(t,r[e]));return t._cache.labels=n?o:Da(o.sort(Ma))}function Ra(t,e,i,n){var{lo:o,hi:r}=sr(t,e,i),a=t[o],s=t[r],l=s[e]-a[e],d=l?(i-a[e])/l:0,c=(s[n]-a[n])*d;return a[n]+c}function Na(t,e,i,n){for(var o=Oa.length,r=Oa.indexOf(t);r<o-1;++r){var a=Ia[Oa[r]],s=a.steps?a.steps:Aa;if(a.common&&Math.ceil((i-e)/(s*a.size))<=n)return Oa[r]}return Oa[o-1]}function za(t,e,i){if(t.length){var{lo:n,hi:o}=function(t,e){for(var i,n=t.length-1,o=0;n-o>1;)t[i=o+n>>1]<e?o=i:n=i;return{lo:o,hi:n}}(t,i),r=t[n]>=i?t[n]:t[o];e.add(r)}}function Va(t,e,i){var n,o,r=[],a={},s=e.length;for(n=0;n<s;++n)a[o=e[n]]=n,r.push({value:o,major:!1});return 0!==s&&i?function(t,e,i,n){var o,r,a=t._adapter,s=+a.startOf(e[0].value,n),l=e[e.length-1].value;for(o=s;o<=l;o=+a.add(o,1,n))(r=i[o])>=0&&(e[r].major=!0);return e}(t,r,a,i):r}function Ba(t){return"labels"===t.options.ticks.source?Pa(t):function(t){var e,i=t._adapter,n=t.min,o=t.max,r=t.options,a=r.time,s=a.unit||Na(a.minUnit,n,o,t._getLabelCapacity(n)),l=si(a.stepSize,1),d="week"===s&&a.isoWeekday,c=new Set,h=n;if(d&&(h=+i.startOf(h,"isoWeek",d)),h=+i.startOf(h,d?"day":s),i.diff(o,n,s)>1e5*l)throw new Error(n+" and "+o+" are too far apart with stepSize of "+l+" "+s);if("data"===t.options.ticks.source){var u=Fa(t);for(e=h;e<o;e=+i.add(e,l,s))za(u,c,e);e!==o&&"ticks"!==r.bounds||za(u,c,e)}else{for(e=h;e<o;e=+i.add(e,l,s))c.add(e);e!==o&&"ticks"!==r.bounds||c.add(e)}return[...c]}(t)}function Ha(t){return"series"===t.options.distribution?function(t){var e=t._cache.all||[];if(e.length)return e;var i=Fa(t),n=Pa(t);return e=i.length&&n.length?Da(i.concat(n).sort(Ma)):i.length?i:n,e=t._cache.all=e}(t):[t.min,t.max]}class ja extends sa{constructor(t){super(t);var e=this.options,i=e.time||(e.time={}),n=this._adapter=new Qr._date(e.adapters.date);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._table=[],pi(i.displayFormats,n.formats())}parse(t,e){return void 0===t?NaN:La(this,t)}parseObject(t,e,i){return t&&t.t?this.parse(t.t,i):void 0!==t[e]?this.parse(t[e],i):null}invalidateCaches(){this._cache={data:[],labels:[],all:[]}}determineDataLimits(){var t=this,e=t.options,i=t._adapter,n=e.time.unit||"day",{min:o,max:r,minDefined:a,maxDefined:s}=t.getUserBounds();function l(t){a||isNaN(t.min)||(o=Math.min(o,t.min)),s||isNaN(t.max)||(r=Math.max(r,t.max))}a&&s||(l(function(t){var e=Pa(t),i=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],n=e[e.length-1]),{min:i,max:n}}(t)),"ticks"===e.bounds&&"labels"===e.ticks.source||l(t.getMinMax(!1))),o=ai(o)&&!isNaN(o)?o:+i.startOf(Date.now(),n),r=ai(r)&&!isNaN(r)?r:+i.endOf(Date.now(),n)+1,t.min=Math.min(o,r),t.max=Math.max(o+1,r)}buildTicks(){var t=this,e=t.options,i=e.time,n=e.ticks,o=e.distribution,r=Ba(t);"ticks"===e.bounds&&r.length&&(t.min=t._userMin||r[0],t.max=t._userMax||r[r.length-1]);var a=t.min,s=t.max,l=function(t,e,i){for(var n=0,o=t.length;n<o&&t[n]<e;)n++;for(;o>n&&t[o-1]>i;)o--;return n>0||o<t.length?t.slice(n,o):t}(r,a,s);return t._unit=i.unit||(n.autoSkip?Na(i.minUnit,t.min,t.max,t._getLabelCapacity(a)):function(t,e,i,n,o){for(var r=Oa.length-1;r>=Oa.indexOf(i);r--){var a=Oa[r];if(Ia[a].common&&t._adapter.diff(o,n,a)>=e-1)return a}return Oa[i?Oa.indexOf(i):0]}(t,l.length,i.minUnit,t.min,t.max)),t._majorUnit=n.major.enabled&&"year"!==t._unit?function(t){for(var e=Oa.indexOf(t)+1,i=Oa.length;e<i;++e)if(Ia[Oa[e]].common)return Oa[e]}(t._unit):void 0,t._table=function(t,e,i,n){if("linear"===n||!t.length)return[{time:e,pos:0},{time:i,pos:1}];var o,r,a,s,l,d=[],c=[e];for(o=0,r=t.length;o<r;++o)(s=t[o])>e&&s<i&&c.push(s);for(c.push(i),o=0,r=c.length;o<r;++o)l=c[o+1],a=c[o-1],s=c[o],void 0!==a&&void 0!==l&&Math.round((l+a)/2)===s||d.push({time:s,pos:o/(r-1)});return d}(Ha(t),a,s,o),t._offsets=function(t,e,i,n,o){var r,a,s=0,l=0;return o.offset&&e.length&&(r=Ra(t,"time",e[0],"pos"),s=1===e.length?1-r:(Ra(t,"time",e[1],"pos")-r)/2,a=Ra(t,"time",e[e.length-1],"pos"),l=1===e.length?a:(a-Ra(t,"time",e[e.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}(t._table,Fa(t),0,0,e),e.reverse&&l.reverse(),Va(t,l,t._majorUnit)}getLabelForValue(t){var e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){var o=this.options,r=o.time.displayFormats,a=this._unit,s=this._majorUnit,l=a&&r[a],d=s&&r[s],c=i[e],h=s&&d&&c&&c.major,u=this._adapter.format(t,n||(h?d:l)),p=o.ticks.callback;return p?p(u,e,i):u}generateTickLabels(t){var e,i,n;for(e=0,i=t.length;e<i;++e)(n=t[e]).label=this._tickFormatFunction(n.value,e,t)}getPixelForValue(t){var e=this._offsets,i=Ra(this._table,"time",t,"pos");return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){var e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Ra(this._table,"pos",i,"time")}_getLabelSize(t){var e=this.options.ticks,i=this.ctx.measureText(t).width,n=Ui(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(n),r=Math.sin(n),a=si(e.fontSize,fn.fontSize);return{w:i*o+a*r,h:i*r+a*o}}_getLabelCapacity(t){var e=this,i=e.options.time,n=i.displayFormats,o=n[i.unit]||n.millisecond,r=e._tickFormatFunction(t,0,Va(e,[t],e._majorUnit),o),a=e._getLabelSize(r),s=Math.floor(e.isHorizontal()?e.width/a.w:e.height/a.h)-1;return s>0?s:1}}Ke(ja,"id","time"),Ke(ja,"defaults",{distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}});var Ua=Object.freeze({__proto__:null,CategoryScale:la,LinearScale:ua,LogarithmicScale:ga,RadialLinearScale:ka,TimeScale:ja});function $a(t,e,i){var n=function(t){var e=t.options,i=e.fill,n=si(i&&i.target,i);return void 0===n&&(n=!!e.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t),o=parseFloat(n);return ai(o)&&Math.floor(o)===o?("-"!==n[0]&&"+"!==n[0]||(o=e+o),!(o===e||o<0||o>=i)&&o):["origin","start","end"].indexOf(n)>=0&&n}fn.set("plugins",{filler:{propagate:!0}});class Wa{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){var{x:n,y:o,radius:r}=this;return e=e||{start:0,end:2*Math.PI},i.reverse?t.arc(n,o,r,e.end,e.start,!0):t.arc(n,o,r,e.start,e.end),!i.bounds}interpolate(t,e){var{x:i,y:n,radius:o}=this,r=t.angle;if("angle"===e)return{x:i+Math.cos(r)*o,y:n+Math.sin(r)*o,angle:r}}}function qa(t){return(t.scale||{}).getPointPositionForValue?function(t){var e,i,{scale:n,fill:o}=t,r=n.options,a=n.getLabels().length,s=[],l=r.reverse?n.max:n.min,d=r.reverse?n.min:n.max,c="start"===o?l:"end"===o?d:n.getBaseValue();if(r.gridLines.circular)return i=n.getPointPositionForValue(0,l),new Wa({x:i.x,y:i.y,radius:n.getDistanceFromCenterForValue(c)});for(e=0;e<a;++e)s.push(n.getPointPositionForValue(e,c));return s}(t):function(t){var e,{scale:i={},fill:n}=t,o=null;return"start"===n?o=i.bottom:"end"===n?o=i.top:i.getBasePixel&&(o=i.getBasePixel()),ai(o)?{x:(e=i.isHorizontal())?o:null,y:e?null:o}:null}(t)}function Ga(t){var{chart:e,fill:i,line:n}=t;if(ai(i))return function(t,e){var i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);var o=qa(t),r=[],a=!1,s=!1;return o instanceof Wa?o:(oi(o)?(a=!0,r=o):(r=function(t,e){var{x:i=null,y:n=null}=t||{},o=e.points,r=[];return e.segments.forEach(t=>{var e=o[t.start],a=o[t.end];null!==n?(r.push({x:e.x,y:n,_prop:"x",_ref:e}),r.push({x:a.x,y:n,_prop:"x",_ref:a})):null!==i&&(r.push({x:i,y:e.y,_prop:"y",_ref:e}),r.push({x:i,y:a.y,_prop:"y",_ref:a}))}),r}(o,n),s=!0),r.length?new No({points:r,options:{tension:0},_loop:a,_fullLoop:a,_refPoints:s}):null)}function Ya(t,e,i){var n,o=t[e].fill,r=[e];if(!i)return o;for(;!1!==o&&-1===r.indexOf(o);){if(!ai(o))return o;if(!(n=t[o]))return!1;if(n.visible)return o;r.push(o),o=n.fill}return!1}function Za(t,e,i){t.beginPath(),e.path(t),t.lineTo(e.last().x,i),t.lineTo(e.first().x,i),t.closePath(),t.clip()}function Xa(t,e,i,n){if(!n){var o=e[t],r=i[t];return"angle"===t&&(o=Yi(o),r=Yi(r)),{property:t,start:o,end:r}}}function Ka(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function Ja(t,e,i){var{top:n,bottom:o}=e.chart.chartArea,{property:r,start:a,end:s}=i||{};"x"===r&&(t.beginPath(),t.rect(a,n,s-a,o-n),t.clip())}function Qa(t,e,i,n){var o=e.interpolate(i,n);o&&t.lineTo(o.x,o.y)}function ts(t,e){var{line:i,target:n,property:o,color:r,scale:a}=e,s=function(t,e,i){var n=t.segments,o=t.points,r=e.points,a=[];if(e._refPoints)for(var s=0,l=r.length;s<l;++s){var d=r[s],c=d._prop;c&&(d[c]=d._ref[c])}for(var h=0;h<n.length;h++){var u=n[h],p=Xa(i,o[u.start],o[u.end],u.loop);if(e.segments)for(var m=Mo(e,p),f=0;f<m.length;++f)for(var g=m[f],b=Xa(i,r[g.start],r[g.end],g.loop),v=Oo(u,o,b),y=0;y<v.length;y++)a.push({source:v[y],target:g,start:{[i]:Ka(p,b,"start",Math.max)},end:{[i]:Ka(p,b,"end",Math.min)}});else a.push({source:u,target:p,start:o[u.start],end:o[u.end]})}return a}(e.line,e.target,o);t.fillStyle=r;for(var l=0,d=s.length;l<d;++l){var{source:c,target:h,start:u,end:p}=s[l];t.save(),Ja(t,a,Xa(o,u,p)),t.beginPath();var m=!!i.pathSegment(t,c);m?t.closePath():Qa(t,n,p,o);var f=!!n.pathSegment(t,h,{move:m,reverse:!0}),g=m&&f;g||Qa(t,n,u,o),t.closePath(),t.fill(g?"evenodd":"nonzero"),t.restore()}}var es={id:"filler",afterDatasetsUpdate(t,e){var i,n,o,r,a=(t.data.datasets||[]).length,s=e.propagate,l=[];for(n=0;n<a;++n)r=null,(o=(i=t.getDatasetMeta(n)).dataset)&&o.options&&o instanceof No&&(r={visible:t.isDatasetVisible(n),fill:$a(o,n,a),chart:t,scale:i.vScale,line:o,target:void 0}),i.$filler=r,l.push(r);for(n=0;n<a;++n)(r=l[n])&&!1!==r.fill&&(r.fill=Ya(l,n,s),r.target=!1!==r.fill&&Ga(r))},beforeDatasetsDraw(t){var e,i,n=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(e=n.length-1;e>=0;--e)(i=n[e].$filler)&&i.line.updateControlPoints(o)},beforeDatasetDraw(t,e){var i=t.chartArea,n=t.ctx,o=e.meta.$filler;if(o&&!1!==o.fill){var{line:r,target:a,scale:s}=o,l=r.options,d=l.fill,c=l.backgroundColor||fn.color,{above:h=c,below:u=c}=d||{};a&&r.points.length&&(Ai(n,i),function(t,e){var{line:i,target:n,above:o,below:r,area:a,scale:s}=e,l=i._loop?"angle":"x";t.save(),"x"===l&&r!==o&&(Za(t,n,a.top),ts(t,{line:i,target:n,color:o,scale:s,property:l}),t.restore(),t.save(),Za(t,n,a.bottom)),ts(t,{line:i,target:n,color:r,scale:s,property:l}),t.restore()}(n,{line:r,target:a,above:h,below:u,area:i,scale:s}),Ii(n))}}};function is(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}fn.set("legend",{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick(t,e){var i=e.datasetIndex,n=this.chart;n.isDatasetVisible(i)?(n.hide(i),e.hidden=!0):(n.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels(t){var e=t.data.datasets,i=t.options.legend||{},n=i.labels&&i.labels.usePointStyle;return t._getSortedDatasetMetas().map(t=>{var i=t.controller.getStyle(n?0:void 0);return{text:e[t.index].label,fillStyle:i.backgroundColor,hidden:!t.visible,lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:t.index}},this)}},title:{display:!1,position:"center",text:""}});class ns extends _o{constructor(t){super(),Je(this,t),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnWidths=void 0,this.columnHeights=void 0,this.lineWidths=void 0,this._minSize=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.position=void 0,this.weight=void 0,this.fullWidth=void 0}beforeUpdate(){}update(t,e,i){var n=this;n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n._margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate()}afterUpdate(){}beforeSetDimensions(){}setDimensions(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t._minSize={width:0,height:0}}afterSetDimensions(){}beforeBuildLabels(){}buildLabels(){var t=this,e=t.options.labels||{},i=li(e.generateLabels,[t.chart],t)||[];e.filter&&(i=i.filter(i=>e.filter(i,t.chart.data))),t.options.reverse&&i.reverse(),t.legendItems=i}afterBuildLabels(){}beforeFit(){}fit(){var t=this,e=t.options,i=e.labels,n=e.display,o=t.ctx,r=vn(i),a=r.size,s=t.legendHitBoxes=[],l=t._minSize,d=t.isHorizontal(),c=t._computeTitleHeight();if(d?(l.width=t.maxWidth,l.height=n?10:0):(l.width=n?10:0,l.height=t.maxHeight),n){if(o.font=r.string,d){var h=t.lineWidths=[0],u=c;o.textAlign="left",o.textBaseline="middle",t.legendItems.forEach((t,e)=>{var n=is(i,a)+a/2+o.measureText(t.text).width;(0===e||h[h.length-1]+n+2*i.padding>l.width)&&(u+=a+i.padding,h[h.length-(e>0?0:1)]=0),s[e]={left:0,top:0,width:n,height:a},h[h.length-1]+=n+i.padding}),l.height+=u}else{var p=i.padding,m=t.columnWidths=[],f=t.columnHeights=[],g=i.padding,b=0,v=0,y=l.height-c;t.legendItems.forEach((t,e)=>{var n=is(i,a)+a/2+o.measureText(t.text).width;e>0&&v+a+2*p>y&&(g+=b+i.padding,m.push(b),f.push(v),b=0,v=0),b=Math.max(b,n),v+=a+p,s[e]={left:0,top:0,width:n,height:a}}),g+=b,m.push(b),f.push(v),l.width+=g}t.width=l.width,t.height=l.height}else t.width=l.width=t.height=l.height=0}afterFit(){}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){var t=this,e=t.options,i=e.labels,n=fn.color,o=fn.elements.line,r=t.height,a=t.columnHeights,s=t.width,l=t.lineWidths;if(e.display){t.drawTitle();var d,c=xn(e.rtl,t.left,t._minSize.width),h=t.ctx,u=si(i.fontColor,fn.fontColor),p=vn(i),m=p.size;h.textAlign=c.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=u,h.fillStyle=u,h.font=p.string;var f=is(i,m),g=t.legendHitBoxes,b=function(t,n){switch(e.align){case"start":return i.padding;case"end":return t-n;default:return(t-n+i.padding)/2}},v=t.isHorizontal(),y=this._computeTitleHeight();d=v?{x:t.left+b(s,l[0]),y:t.top+i.padding+y,line:0}:{x:t.left+i.padding,y:t.top+b(r,a[0])+y,line:0},wn(t.ctx,e.textDirection);var _=m+i.padding;t.legendItems.forEach((e,u)=>{var p=h.measureText(e.text).width,y=f+m/2+p,x=d.x,w=d.y;c.setWidth(t._minSize.width),v?u>0&&x+y+i.padding>t.left+t._minSize.width&&(w=d.y+=_,d.line++,x=d.x=t.left+b(s,l[d.line])):u>0&&w+_>t.top+t._minSize.height&&(x=d.x=x+t.columnWidths[d.line]+i.padding,d.line++,w=d.y=t.top+b(r,a[d.line]));var S=c.x(x);!function(t,e,r){if(!(isNaN(f)||f<=0)){h.save();var a=si(r.lineWidth,o.borderWidth);if(h.fillStyle=si(r.fillStyle,n),h.lineCap=si(r.lineCap,o.borderCapStyle),h.lineDashOffset=si(r.lineDashOffset,o.borderDashOffset),h.lineJoin=si(r.lineJoin,o.borderJoinStyle),h.lineWidth=a,h.strokeStyle=si(r.strokeStyle,n),h.setLineDash&&h.setLineDash(si(r.lineDash,o.borderDash)),i&&i.usePointStyle){var s={radius:f*Math.SQRT2/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:a},l=c.xPlus(t,f/2);Ei(h,s,l,e+m/2)}else h.fillRect(c.leftForLtr(t,f),e,f,m),0!==a&&h.strokeRect(c.leftForLtr(t,f),e,f,m);h.restore()}}(S,w,e),g[u].left=c.leftForLtr(S,g[u].width),g[u].top=w,function(t,e,i,n){var o=m/2,r=c.xPlus(t,f+o),a=e+o;h.fillText(i.text,r,a),i.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(r,a),h.lineTo(c.xPlus(r,n),a),h.stroke())}(S,w,e,p),v?d.x+=y+i.padding:d.y+=_}),Sn(t.ctx,e.textDirection)}}drawTitle(){var t=this,e=t.options,i=e.title,n=vn(i),o=bn(i.padding);if(i.display){var r,a,s=xn(e.rtl,t.left,t._minSize.width),l=t.ctx,d=si(i.fontColor,fn.fontColor),c=i.position,h=n.size/2,u=t.top+o.top+h,p=t.left,m=t.width;if(this.isHorizontal())switch(m=Math.max(...t.lineWidths),e.align){case"start":break;case"end":p=t.right-m;break;default:p=(t.left+t.right)/2-m/2}else{var f=Math.max(...t.columnHeights);switch(e.align){case"start":break;case"end":u+=t.height-f;break;default:u+=(t.height-f)/2}}switch(c){case"start":r=p,a="left";break;case"end":r=p+m,a="right";break;default:r=p+m/2,a="center"}l.textAlign=s.textAlign(a),l.textBaseline="middle",l.strokeStyle=d,l.fillStyle=d,l.font=n.string,l.fillText(i.text,r,u)}}_computeTitleHeight(){var t=this.options.title,e=vn(t),i=bn(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){var i,n,o,r=this;if(t>=r.left&&t<=r.right&&e>=r.top&&e<=r.bottom)for(o=r.legendHitBoxes,i=0;i<o.length;++i)if(t>=(n=o[i]).left&&t<=n.left+n.width&&e>=n.top&&e<=n.top+n.height)return r.legendItems[i];return null}handleEvent(t){var e=this,i=e.options,n="mouseup"===t.type?"click":t.type;if("mousemove"===n){if(!i.onHover&&!i.onLeave)return}else{if("click"!==n)return;if(!i.onClick)return}var o=e._getLegendItemAt(t.x,t.y);"click"===n?o&&i.onClick&&i.onClick.call(e,t.native,o):(i.onLeave&&o!==e._hoveredItem&&(e._hoveredItem&&i.onLeave.call(e,t.native,e._hoveredItem),e._hoveredItem=o),i.onHover&&o&&i.onHover.call(e,t.native,o))}}function os(t,e){var i=new ns({ctx:t.ctx,options:e,chart:t});Tr.configure(t,i,e),Tr.addBox(t,i),t.legend=i}var rs={id:"legend",_element:ns,beforeInit(t){var e=t.options.legend;e&&os(t,e)},afterUpdate(t){var e=t.options.legend,i=t.legend;e?(pi(e,fn.legend),i?(Tr.configure(t,i,e),i.options=e,i.buildLabels()):os(t,e)):i&&(Tr.removeBox(t,i),delete t.legend)},afterEvent(t,e){var i=t.legend;i&&i.handleEvent(e)}};fn.set("title",{align:"center",display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3});class as extends _o{constructor(t){super(),Je(this,t),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._margins=void 0,this._padding=void 0,this.legendHitBoxes=[],this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.position=void 0,this.weight=void 0,this.fullWidth=void 0}beforeUpdate(){}update(t,e,i){var n=this;n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n._margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate()}afterUpdate(){}beforeSetDimensions(){}setDimensions(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height)}afterSetDimensions(){}beforeBuildLabels(){}buildLabels(){}afterBuildLabels(){}beforeFit(){}fit(){var t=this,e=t.options,i={},n=t.isHorizontal();if(e.display){var o=io.isArray(e.text)?e.text.length:1;t._padding=io.options.toPadding(e.padding);var r=o*io.options._parseFont(e).lineHeight+t._padding.height;t.width=i.width=n?t.maxWidth:r,t.height=i.height=n?r:t.maxHeight}else t.width=i.width=t.height=i.height=0}afterFit(){}isHorizontal(){var t=this.options.position;return"top"===t||"bottom"===t}draw(){var t=this,e=t.ctx,i=t.options;if(i.display){var n,o,r,a,s=io.options._parseFont(i),l=s.lineHeight,d=l/2+t._padding.top,c=0,h=t.top,u=t.left,p=t.bottom,m=t.right;if(t.isHorizontal()){switch(i.align){case"start":o=u,a="left";break;case"end":o=m,a="right";break;default:o=u+(m-u)/2,a="center"}r=h+d,n=m-u}else{switch(o="left"===i.position?u+d:m-d,i.align){case"start":r="left"===i.position?p:h,a="left";break;case"end":r="left"===i.position?h:p,a="right";break;default:r=h+(p-h)/2,a="center"}n=p-h,c=Math.PI*("left"===i.position?-.5:.5)}e.save(),e.fillStyle=io.valueOrDefault(i.fontColor,fn.fontColor),e.font=s.string,e.translate(o,r),e.rotate(c),e.textAlign=a,e.textBaseline="middle";var f=i.text;if(io.isArray(f))for(var g=0,b=0;b<f.length;++b)e.fillText(f[b],0,g,n),g+=l;else e.fillText(f,0,0,n);e.restore()}}}function ss(t,e){var i=new as({ctx:t.ctx,options:e,chart:t});Tr.configure(t,i,e),Tr.addBox(t,i),t.titleBlock=i}var ls={id:"title",_element:as,beforeInit(t){var e=t.options.title;e&&ss(t,e)},beforeUpdate(t){var e=t.options.title,i=t.titleBlock;e?(io.mergeIf(e,fn.title),i?(Tr.configure(t,i,e),i.options=e):ss(t,e)):i&&(Tr.removeBox(t,i),delete t.titleBlock)}},ds=io.valueOrDefault,cs=io.rtl.getRtlAdapter;fn.set("tooltips",{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart",numbers:{type:"number",properties:["x","y","width","height"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:io.noop,title(t,e){var i="",n=e.labels,o=n?n.length:0;if(t.length>0){var r=t[0];r.label?i=r.label:o>0&&r.index<o&&(i=n[r.index])}return i},afterTitle:io.noop,beforeBody:io.noop,beforeLabel:io.noop,label(t,e){var i=e.datasets[t.datasetIndex].label||"";i&&(i+=": ");var n=t.value;return io.isNullOrUndef(n)||(i+=n),i},labelColor(t,e){var i=e.getDatasetMeta(t.datasetIndex).controller.getStyle(t.index);return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},labelTextColor(){return this.options.bodyFontColor},afterLabel:io.noop,afterBody:io.noop,beforeFooter:io.noop,footer:io.noop,afterFooter:io.noop}});var hs={average(t){if(!t.length)return!1;var e,i,n=0,o=0,r=0;for(e=0,i=t.length;e<i;++e){var a=t[e].element;if(a&&a.hasValue()){var s=a.tooltipPosition();n+=s.x,o+=s.y,++r}}return{x:n/r,y:o/r}},nearest(t,e){var i,n,o,r=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){var l=t[i].element;if(l&&l.hasValue()){var d=l.getCenterPoint(),c=io.math.distanceBetweenPoints(e,d);c<s&&(s=c,o=l)}}if(o){var h=o.tooltipPosition();r=h.x,a=h.y}return{x:r,y:a}}};function us(t,e){return e&&(io.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function ps(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function ms(t,e){var{datasetIndex:i,index:n}=e,{label:o,value:r}=t.getDatasetMeta(i).controller.getLabelAndValue(n);return{label:o,value:r,index:n,datasetIndex:i}}function fs(t){var e=t._chart.ctx,{body:i,footer:n,options:o,title:r}=t,{bodyFontSize:a,footerFontSize:s,titleFontSize:l,boxWidth:d,boxHeight:c}=o,h=r.length,u=n.length,p=i.length,m=2*o.yPadding,f=0,g=i.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);(g+=t.beforeBody.length+t.afterBody.length,h&&(m+=h*l+(h-1)*o.titleSpacing+o.titleMarginBottom),g)&&(m+=p*(o.displayColors?Math.max(c,a):a)+(g-p)*a+(g-1)*o.bodySpacing);u&&(m+=o.footerMarginTop+u*s+(u-1)*o.footerSpacing);var b=0,v=function(t){f=Math.max(f,e.measureText(t).width+b)};return e.save(),e.font=io.fontString(l,o.titleFontStyle,o.titleFontFamily),io.each(t.title,v),e.font=io.fontString(a,o.bodyFontStyle,o.bodyFontFamily),io.each(t.beforeBody.concat(t.afterBody),v),b=o.displayColors?d+2:0,io.each(i,t=>{io.each(t.before,v),io.each(t.lines,v),io.each(t.after,v)}),b=0,e.font=io.fontString(s,o.footerFontStyle,o.footerFontFamily),io.each(t.footer,v),e.restore(),{width:f+=2*o.xPadding,height:m}}function gs(t,e,i){var n,o,{x:r,y:a,width:s,height:l}=i,d=t.chartArea,c="center",h="center";a<l?h="top":a>t.height-l&&(h="bottom");var u=(d.left+d.right)/2,p=(d.top+d.bottom)/2;"center"===h?(n=t=>t<=u,o=t=>t>u):(n=t=>t<=s/2,o=e=>e>=t.width-s/2);var m=t=>t<=p?"top":"bottom";return n(r)?(c="left",r+s+e.caretSize+e.caretPadding>t.width&&(c="center",h=m(a))):o(r)&&(c="right",(t=>t-s-e.caretSize-e.caretPadding<0)(r)&&(c="center",h=m(a))),{xAlign:e.xAlign?e.xAlign:c,yAlign:e.yAlign?e.yAlign:h}}function bs(t,e,i,n){var{caretSize:o,caretPadding:r,cornerRadius:a}=t,{xAlign:s,yAlign:l}=i,d=o+r,c=a+r,h=function(t,e,i){var{x:n,width:o}=t;return"right"===e?n-=o:"center"===e&&((n-=o/2)+o>i&&(n=i-o),n<0&&(n=0)),n}(e,s,n.width);return"center"===l?"left"===s?h+=d:"right"===s&&(h-=d):"left"===s?h-=c:"right"===s&&(h+=c),{x:h,y:function(t,e,i){var{y:n,height:o}=t;return"top"===e?n+=i:n-="bottom"===e?o+i:o/2,n}(e,l,d)}}function vs(t,e){var i=t.options;return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.xPadding:t.x+i.xPadding}function ys(t){return us([],ps(t))}class _s extends _o{constructor(t){super(),this.opacity=0,this._active=[],this._chart=t._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this.$animations=void 0,this.options=void 0,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelTextColors=void 0,this.initialize()}initialize(){this.options=function(t){return(t=Je({},fn.tooltips,t)).bodyFontFamily=ds(t.bodyFontFamily,fn.fontFamily),t.bodyFontStyle=ds(t.bodyFontStyle,fn.fontStyle),t.bodyFontSize=ds(t.bodyFontSize,fn.fontSize),t.boxHeight=ds(t.boxHeight,t.bodyFontSize),t.boxWidth=ds(t.boxWidth,t.bodyFontSize),t.titleFontFamily=ds(t.titleFontFamily,fn.fontFamily),t.titleFontStyle=ds(t.titleFontStyle,fn.fontStyle),t.titleFontSize=ds(t.titleFontSize,fn.fontSize),t.footerFontFamily=ds(t.footerFontFamily,fn.fontFamily),t.footerFontStyle=ds(t.footerFontStyle,fn.fontStyle),t.footerFontSize=ds(t.footerFontSize,fn.fontSize),t}(this._chart.options.tooltips)}_resolveAnimations(){var t=this,e=t._cachedAnimations;if(e)return e;var i=t._chart.options.animation&&t.options.animation,n=new so(t._chart,i);return t._cachedAnimations=Object.freeze(n),n}getTitle(t,e){var i=this.options.callbacks,n=i.beforeTitle.apply(this,[t,e]),o=i.title.apply(this,[t,e]),r=i.afterTitle.apply(this,[t,e]),a=[];return a=us(a,ps(n)),a=us(a,ps(o)),a=us(a,ps(r))}getBeforeBody(t,e){return ys(this.options.callbacks.beforeBody.apply(this,[t,e]))}getBody(t,e){var i=this,n=i.options.callbacks,o=[];return io.each(t,t=>{var r={before:[],lines:[],after:[]};us(r.before,ps(n.beforeLabel.call(i,t,e))),us(r.lines,n.label.call(i,t,e)),us(r.after,ps(n.afterLabel.call(i,t,e))),o.push(r)}),o}getAfterBody(t,e){return ys(this.options.callbacks.afterBody.apply(this,[t,e]))}getFooter(t,e){var i=this.options.callbacks,n=i.beforeFooter.apply(this,[t,e]),o=i.footer.apply(this,[t,e]),r=i.afterFooter.apply(this,[t,e]),a=[];return a=us(a,ps(n)),a=us(a,ps(o)),a=us(a,ps(r))}_createItems(){var t,e,i=this,n=i._active,o=i.options,r=i._chart.data,a=[],s=[],l=[];for(t=0,e=n.length;t<e;++t)l.push(ms(i._chart,n[t]));return o.filter&&(l=l.filter(t=>o.filter(t,r))),o.itemSort&&(l=l.sort((t,e)=>o.itemSort(t,e,r))),io.each(l,t=>{a.push(o.callbacks.labelColor.call(i,t,i._chart)),s.push(o.callbacks.labelTextColor.call(i,t,i._chart))}),i.labelColors=a,i.labelTextColors=s,i.dataPoints=l,l}update(t){var e,i=this,n=i.options,o=i._active;if(o.length){var r=i._chart.data,a=hs[n.position].call(i,o,i._eventPosition),s=i._createItems();i.title=i.getTitle(s,r),i.beforeBody=i.getBeforeBody(s,r),i.body=i.getBody(s,r),i.afterBody=i.getAfterBody(s,r),i.footer=i.getFooter(s,r);var l=i._size=fs(i),d=Je({},a,l),c=gs(i._chart,n,d),h=bs(n,d,c,i._chart);i.xAlign=c.xAlign,i.yAlign=c.yAlign,e={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}else 0!==i.opacity&&(e={opacity:0});e&&i._resolveAnimations().update(i,e),t&&n.custom&&n.custom.call(i)}drawCaret(t,e,i){var n=this.getCaretPosition(t,i);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e){var i,n,o,r,a,s,{xAlign:l,yAlign:d,options:c}=this,{cornerRadius:h,caretSize:u}=c,{x:p,y:m}=t,{width:f,height:g}=e;return"center"===d?(n="left"===l?(i=p)-u:(i=p+f)+u,o=i,r=(a=m+g/2)+u,s=a-u):(i=(n="left"===l?p+h+u:"right"===l?p+f-h-u:this.caretX)-u,o=n+u,a="top"===d?(r=m)-u:(r=m+g)+u,s=r),{x1:i,x2:n,x3:o,y1:r,y2:a,y3:s}}drawTitle(t,e){var i,n,o,r=this,a=r.options,s=r.title,l=s.length;if(l){var d=cs(a.rtl,r.x,r.width);for(t.x=vs(r,a.titleAlign),e.textAlign=d.textAlign(a.titleAlign),e.textBaseline="middle",i=a.titleFontSize,n=a.titleSpacing,e.fillStyle=a.titleFontColor,e.font=io.fontString(i,a.titleFontStyle,a.titleFontFamily),o=0;o<l;++o)e.fillText(s[o],d.x(t.x),t.y+i/2),t.y+=i+n,o+1===l&&(t.y+=a.titleMarginBottom-n)}}_drawColorBox(t,e,i,n){var o=this.options,r=this.labelColors[i],{boxHeight:a,boxWidth:s,bodyFontSize:l}=o,d=vs(this,"left"),c=n.x(d),h=a<l?(l-a)/2:0,u=e.y+h;t.fillStyle=o.multiKeyBackground,t.fillRect(n.leftForLtr(c,s),u,s,a),t.lineWidth=1,t.strokeStyle=r.borderColor,t.strokeRect(n.leftForLtr(c,s),u,s,a),t.fillStyle=r.backgroundColor,t.fillRect(n.leftForLtr(n.xPlus(c,1),s-2),u+1,s-2,a-2),t.fillStyle=this.labelTextColors[i]}drawBody(t,e){var i,n,o,r,a,s,l,d=this,{body:c,options:h}=d,{bodyFontSize:u,bodySpacing:p,bodyAlign:m,displayColors:f,boxHeight:g,boxWidth:b}=h,v=u,y=0,_=cs(h.rtl,d.x,d.width),x=function(i){e.fillText(i,_.x(t.x+y),t.y+v/2),t.y+=v+p},w=_.textAlign(m);for(e.textAlign=m,e.textBaseline="middle",e.font=io.fontString(u,h.bodyFontStyle,h.bodyFontFamily),t.x=vs(d,w),e.fillStyle=h.bodyFontColor,io.each(d.beforeBody,x),y=f&&"right"!==w?"center"===m?b/2+1:b+2:0,r=0,s=c.length;r<s;++r){for(i=c[r],n=d.labelTextColors[r],e.fillStyle=n,io.each(i.before,x),o=i.lines,f&&o.length&&(d._drawColorBox(e,t,r,_),v=Math.max(u,g)),a=0,l=o.length;a<l;++a)x(o[a]),v=u;io.each(i.after,x)}y=0,v=u,io.each(d.afterBody,x),t.y-=p}drawFooter(t,e){var i,n,o=this,r=o.options,a=o.footer,s=a.length;if(s){var l=cs(r.rtl,o.x,o.width);for(t.x=vs(o,r.footerAlign),t.y+=r.footerMarginTop,e.textAlign=l.textAlign(r.footerAlign),e.textBaseline="middle",i=r.footerFontSize,e.fillStyle=r.footerFontColor,e.font=io.fontString(i,r.footerFontStyle,r.footerFontFamily),n=0;n<s;++n)e.fillText(a[n],l.x(t.x),t.y+i/2),t.y+=i+r.footerSpacing}}drawBackground(t,e,i){var{xAlign:n,yAlign:o,options:r}=this,{x:a,y:s}=t,{width:l,height:d}=i,c=r.cornerRadius;e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+c,s),"top"===o&&this.drawCaret(t,e,i),e.lineTo(a+l-c,s),e.quadraticCurveTo(a+l,s,a+l,s+c),"center"===o&&"right"===n&&this.drawCaret(t,e,i),e.lineTo(a+l,s+d-c),e.quadraticCurveTo(a+l,s+d,a+l-c,s+d),"bottom"===o&&this.drawCaret(t,e,i),e.lineTo(a+c,s+d),e.quadraticCurveTo(a,s+d,a,s+d-c),"center"===o&&"left"===n&&this.drawCaret(t,e,i),e.lineTo(a,s+c),e.quadraticCurveTo(a,s,a+c,s),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(){var t=this,e=t._chart,i=t.options,n=t.$animations,o=n&&n.x,r=n&&n.y;if(o||r){var a=hs[i.position].call(t,t._active,t._eventPosition);if(!a)return;var s=t._size=fs(t),l=Je({},a,t._size),d=gs(e,i,l),c=bs(i,l,d,e);o._to===c.x&&r._to===c.y||(t.xAlign=d.xAlign,t.yAlign=d.yAlign,t.width=s.width,t.height=s.height,t.caretX=a.x,t.caretY=a.y,t._resolveAnimations().update(t,c))}}draw(t){var e=this,i=e.options,n=e.opacity;if(n){e._updateAnimationTarget();var o={width:e.width,height:e.height},r={x:e.x,y:e.y};n=Math.abs(n)<.001?0:n;var a=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;i.enabled&&a&&(t.save(),t.globalAlpha=n,e.drawBackground(r,t,o),io.rtl.overrideTextDirection(t,i.textDirection),r.y+=i.yPadding,e.drawTitle(r,t),e.drawBody(r,t),e.drawFooter(r,t),io.rtl.restoreTextDirection(t,i.textDirection),t.restore())}}handleEvent(t,e){var i,n=this,o=n.options,r=n._active||[],a=[];return"mouseout"!==t.type&&(a=n._chart.getElementsAtEventForMode(t,o.mode,o,e),o.reverse&&a.reverse()),(i=e||!io._elementsEqual(a,r))&&(n._active=a,(o.enabled||o.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0))),i}}_s.positioners=hs;var xs={filler:es,legend:rs,title:ls,tooltip:{id:"tooltip",_element:_s,positioners:hs,afterInit(t){t.options.tooltips&&(t.tooltip=new _s({_chart:t}))},beforeUpdate(t){t.tooltip&&t.tooltip.initialize()},reset(t){t.tooltip&&t.tooltip.initialize()},afterDraw(t){var e=t.tooltip,i={tooltip:e};!1!==Vr.notify(t,"beforeTooltipDraw",[i])&&(e.draw(t.ctx),Vr.notify(t,"afterTooltipDraw",[i]))},afterEvent(t,e,i){if(t.tooltip){var n=i;t.tooltip.handleEvent(e,n)}}}};for(var ws in Xr.helpers=io,Xr._adapters=Qr,Xr.Animation=ro,Xr.Animator=no,Xr.animationService=so,Xr.controllers=ar,Xr.DatasetController=yo,Xr.defaults=fn,Xr.Element=_o,Xr.elements=Go,Xr.Interaction=fr,Xr.layouts=Tr,Xr.platforms=zr,Xr.plugins=Vr,Xr.Scale=sa,Xr.scaleService=Br,Xr.Ticks=ea,Object.keys(Ua).forEach(t=>Xr.scaleService.registerScale(Ua[t])),xs)Object.prototype.hasOwnProperty.call(xs,ws)&&Xr.plugins.register(xs[ws]);"undefined"!=typeof window&&(window.Chart=Xr);class Ss extends Error{}class Cs extends Ss{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Ts extends Ss{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Es extends Ss{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class ks extends Ss{}class As extends Ss{constructor(t){super(`Invalid unit ${t}`)}}class Is extends Ss{}class Os extends Ss{constructor(){super("Zone is an abstract class")}}const Ms="numeric",Ds="short",Ls="long",Fs={year:Ms,month:Ms,day:Ms},Ps={year:Ms,month:Ds,day:Ms},Rs={year:Ms,month:Ls,day:Ms},Ns={year:Ms,month:Ls,day:Ms,weekday:Ls},zs={hour:Ms,minute:Ms},Vs={hour:Ms,minute:Ms,second:Ms},Bs={hour:Ms,minute:Ms,second:Ms,timeZoneName:Ds},Hs={hour:Ms,minute:Ms,second:Ms,timeZoneName:Ls},js={hour:Ms,minute:Ms,hour12:!1},Us={hour:Ms,minute:Ms,second:Ms,hour12:!1},$s={hour:Ms,minute:Ms,second:Ms,hour12:!1,timeZoneName:Ds},Ws={hour:Ms,minute:Ms,second:Ms,hour12:!1,timeZoneName:Ls},qs={year:Ms,month:Ms,day:Ms,hour:Ms,minute:Ms},Gs={year:Ms,month:Ms,day:Ms,hour:Ms,minute:Ms,second:Ms},Ys={year:Ms,month:Ds,day:Ms,hour:Ms,minute:Ms},Zs={year:Ms,month:Ds,day:Ms,hour:Ms,minute:Ms,second:Ms},Xs={year:Ms,month:Ds,day:Ms,weekday:Ds,hour:Ms,minute:Ms},Ks={year:Ms,month:Ls,day:Ms,hour:Ms,minute:Ms,timeZoneName:Ds},Js={year:Ms,month:Ls,day:Ms,hour:Ms,minute:Ms,second:Ms,timeZoneName:Ds},Qs={year:Ms,month:Ls,day:Ms,weekday:Ls,hour:Ms,minute:Ms,timeZoneName:Ls},tl={year:Ms,month:Ls,day:Ms,weekday:Ls,hour:Ms,minute:Ms,second:Ms,timeZoneName:Ls};function el(t){return void 0===t}function il(t){return"number"==typeof t}function nl(t){return"number"==typeof t&&t%1==0}function ol(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(t){return!1}}function rl(){return!el(Intl.DateTimeFormat.prototype.formatToParts)}function al(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function sl(t,e,i){if(0!==t.length)return t.reduce((t,n)=>{const o=[e(n),n];return t&&i(t[0],o[0])===t[0]?t:o},null)[1]}function ll(t,e){return e.reduce((e,i)=>(e[i]=t[i],e),{})}function dl(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function cl(t,e,i){return nl(t)&&t>=e&&t<=i}function hl(t,e=2){return t.toString().length<e?("0".repeat(e)+t).slice(-e):t.toString()}function ul(t){return el(t)||null===t||""===t?void 0:parseInt(t,10)}function pl(t){if(!el(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function ml(t,e,i=!1){const n=10**e;return(i?Math.trunc:Math.round)(t*n)/n}function fl(t){return t%4==0&&(t%100!=0||t%400==0)}function gl(t){return fl(t)?366:365}function bl(t,e){const i=function(t,e){return t-e*Math.floor(t/e)}(e-1,12)+1;return 2===i?fl(t+(e-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function vl(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function yl(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,i=t-1,n=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return 4===e||3===n?53:52}function _l(t){return t>99?t:t>60?1900+t:2e3+t}function xl(t,e,i,n=null){const o=new Date(t),r={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(r.timeZone=n);const a=Object.assign({timeZoneName:e},r),s=ol();if(s&&rl()){const t=new Intl.DateTimeFormat(i,a).formatToParts(o).find(t=>"timezonename"===t.type.toLowerCase());return t?t.value:null}if(s){const t=new Intl.DateTimeFormat(i,r).format(o);return new Intl.DateTimeFormat(i,a).format(o).substring(t.length).replace(/^[, \u200e]+/,"")}return null}function wl(t,e){let i=parseInt(t,10);Number.isNaN(i)&&(i=0);const n=parseInt(e,10)||0;return 60*i+(i<0||Object.is(i,-0)?-n:n)}function Sl(t){const e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new Is(`Invalid unit value ${t}`);return e}function Cl(t,e,i){const n={};for(const o in t)if(dl(t,o)){if(i.indexOf(o)>=0)continue;const r=t[o];if(null==r)continue;n[e(o)]=Sl(r)}return n}function Tl(t,e){const i=Math.trunc(t/60),n=Math.abs(t%60),o=i>=0&&!Object.is(i,-0)?"+":"-",r=`${o}${Math.abs(i)}`;switch(e){case"short":return`${o}${hl(Math.abs(i),2)}:${hl(n,2)}`;case"narrow":return n>0?`${r}:${n}`:r;case"techie":return`${o}${hl(Math.abs(i),2)}${hl(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function El(t){return ll(t,["hour","minute","second","millisecond"])}const kl=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function Al(t){return JSON.stringify(t,Object.keys(t).sort())}const Il=["January","February","March","April","May","June","July","August","September","October","November","December"],Ol=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ml=["J","F","M","A","M","J","J","A","S","O","N","D"];function Dl(t){switch(t){case"narrow":return Ml;case"short":return Ol;case"long":return Il;case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ll=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Fl=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Pl=["M","T","W","T","F","S","S"];function Rl(t){switch(t){case"narrow":return Pl;case"short":return Fl;case"long":return Ll;case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Nl=["AM","PM"],zl=["Before Christ","Anno Domini"],Vl=["BC","AD"],Bl=["B","A"];function Hl(t){switch(t){case"narrow":return Bl;case"short":return Vl;case"long":return zl;default:return null}}function jl(t,e){let i="";for(const n of t)n.literal?i+=n.val:i+=e(n.val);return i}const Ul={D:Fs,DD:Ps,DDD:Rs,DDDD:Ns,t:zs,tt:Vs,ttt:Bs,tttt:Hs,T:js,TT:Us,TTT:$s,TTTT:Ws,f:qs,ff:Ys,fff:Ks,ffff:Qs,F:Gs,FF:Zs,FFF:Js,FFFF:tl};class $l{static create(t,e={}){return new $l(t,e)}static parseFormat(t){let e=null,i="",n=!1;const o=[];for(let r=0;r<t.length;r++){const a=t.charAt(r);"'"===a?(i.length>0&&o.push({literal:n,val:i}),e=null,i="",n=!n):n||a===e?i+=a:(i.length>0&&o.push({literal:!1,val:i}),i=a,e=a)}return i.length>0&&o.push({literal:n,val:i}),o}static macroTokenToFormatOpts(t){return Ul[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Object.assign({},this.opts,e)).format()}formatDateTime(t,e={}){return this.loc.dtFormatter(t,Object.assign({},this.opts,e)).format()}formatDateTimeParts(t,e={}){return this.loc.dtFormatter(t,Object.assign({},this.opts,e)).formatToParts()}resolvedOptions(t,e={}){return this.loc.dtFormatter(t,Object.assign({},this.opts,e)).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return hl(t,e);const i=Object.assign({},this.opts);return e>0&&(i.padTo=e),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,e){const i="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&rl(),o=(e,i)=>this.loc.extract(t,e,i),r=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",a=()=>i?function(t){return Nl[t.hour<12?0:1]}(t):o({hour:"numeric",hour12:!0},"dayperiod"),s=(e,n)=>i?function(t,e){return Dl(e)[t.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month"),l=(e,n)=>i?function(t,e){return Rl(e)[t.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),d=e=>{const i=$l.macroTokenToFormatOpts(e);return i?this.formatWithSystemDefault(t,i):e},c=e=>i?function(t,e){return Hl(e)[t.year<0?0:1]}(t,e):o({era:e},"era");return jl($l.parseFormat(e),e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return n?o({day:"numeric"},"day"):this.num(t.day);case"dd":return n?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return n?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return n?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return n?o({month:"numeric"},"month"):this.num(t.month);case"MM":return n?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return n?o({year:"numeric"},"year"):this.num(t.year);case"yy":return n?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return n?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return n?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(e)}})}formatDurationFromString(t,e){const i=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},n=$l.parseFormat(e),o=n.reduce((t,{literal:e,val:i})=>e?t:t.concat(i),[]);return jl(n,(t=>e=>{const n=i(e);return n?this.num(t.get(n),e.length):e})(t.shiftTo(...o.map(i).filter(t=>t))))}}class Wl{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}function ql(t,e){if(null==t)return{};var i,n,o=function(t,e){if(null==t)return{};var i,n,o={},r=Object.keys(t);for(n=0;n<r.length;n++)i=r[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(n=0;n<r.length;n++)i=r[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}class Gl{get type(){throw new Os}get name(){throw new Os}get universal(){throw new Os}offsetName(t,e){throw new Os}formatOffset(t,e){throw new Os}offset(t){throw new Os}equals(t){throw new Os}get isValid(){throw new Os}}let Yl=null;class Zl extends Gl{static get instance(){return null===Yl&&(Yl=new Zl),Yl}get type(){return"local"}get name(){return ol()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}get universal(){return!1}offsetName(t,{format:e,locale:i}){return xl(t,e,i)}formatOffset(t,e){return Tl(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"local"===t.type}get isValid(){return!0}}const Xl=RegExp(`^${kl.source}$`);let Kl={};const Jl={year:0,month:1,day:2,hour:3,minute:4,second:5};let Ql={};class td extends Gl{static create(t){return Ql[t]||(Ql[t]=new td(t)),Ql[t]}static resetCache(){Ql={},Kl={}}static isValidSpecifier(t){return!(!t||!t.match(Xl))}static isValidZone(t){try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}static parseGMTOffset(t){if(t){const e=t.match(/^Etc\/GMT([+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null}constructor(t){super(),this.zoneName=t,this.valid=td.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get universal(){return!1}offsetName(t,{format:e,locale:i}){return xl(t,e,i,this.name)}formatOffset(t,e){return Tl(this.offset(t),e)}offset(t){const e=new Date(t),i=(d=this.name,Kl[d]||(Kl[d]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:d,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Kl[d]),[n,o,r,a,s,l]=i.formatToParts?function(t,e){const i=t.formatToParts(e),n=[];for(let t=0;t<i.length;t++){const{type:e,value:o}=i[t],r=Jl[e];el(r)||(n[r]=parseInt(o,10))}return n}(i,e):function(t,e){const i=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i),[,o,r,a,s,l,d]=n;return[a,o,r,s,l,d]}(i,e);var d;let c=+e;const h=c%1e3;return c-=h>=0?h:1e3+h,(vl({year:n,month:o,day:r,hour:24===a?0:a,minute:s,second:l,millisecond:0})-c)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let ed=null;class id extends Gl{static get utcInstance(){return null===ed&&(ed=new id(0)),ed}static instance(t){return 0===t?id.utcInstance:new id(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new id(wl(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Tl(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return Tl(this.fixed,e)}get universal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class nd extends Gl{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get universal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function od(t,e){let i;if(el(t)||null===t)return e;if(t instanceof Gl)return t;if("string"==typeof t){const n=t.toLowerCase();return"local"===n?e:"utc"===n||"gmt"===n?id.utcInstance:null!=(i=td.parseGMTOffset(t))?id.instance(i):td.isValidSpecifier(n)?td.create(t):id.parseSpecifier(n)||new nd(t)}return il(t)?id.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new nd(t)}let rd=()=>Date.now(),ad=null,sd=null,ld=null,dd=null,cd=!1;class hd{static get now(){return rd}static set now(t){rd=t}static get defaultZoneName(){return hd.defaultZone.name}static set defaultZoneName(t){ad=t?od(t):null}static get defaultZone(){return ad||Zl.instance}static get defaultLocale(){return sd}static set defaultLocale(t){sd=t}static get defaultNumberingSystem(){return ld}static set defaultNumberingSystem(t){ld=t}static get defaultOutputCalendar(){return dd}static set defaultOutputCalendar(t){dd=t}static get throwOnInvalid(){return cd}static set throwOnInvalid(t){cd=t}static resetCaches(){xd.resetCache(),td.resetCache()}}let ud={};function pd(t,e={}){const i=JSON.stringify([t,e]);let n=ud[i];return n||(n=new Intl.DateTimeFormat(t,e),ud[i]=n),n}let md={};let fd={};let gd=null;function bd(t,e,i,n,o){const r=t.listingMode(i);return"error"===r?null:"en"===r?n(e):o(e)}class vd{constructor(t,e,i){if(this.padTo=i.padTo||0,this.floor=i.floor||!1,!e&&ol()){const e={useGrouping:!1};i.padTo>0&&(e.minimumIntegerDigits=i.padTo),this.inf=function(t,e={}){const i=JSON.stringify([t,e]);let n=md[i];return n||(n=new Intl.NumberFormat(t,e),md[i]=n),n}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return hl(this.floor?Math.floor(t):ml(t,3),this.padTo)}}class yd{constructor(t,e,i){let n;if(this.opts=i,this.hasIntl=ol(),t.zone.universal&&this.hasIntl?(n="UTC",i.timeZoneName?this.dt=t:this.dt=0===t.offset?t:mh.fromMillis(t.ts+60*t.offset*1e3)):"local"===t.zone.type?this.dt=t:(this.dt=t,n=t.zone.name),this.hasIntl){const t=Object.assign({},this.opts);n&&(t.timeZone=n),this.dtf=pd(e,t)}}format(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());{const t=function(t){switch(Al(ll(t,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case Al(Fs):return"M/d/yyyy";case Al(Ps):return"LLL d, yyyy";case Al(Rs):return"LLLL d, yyyy";case Al(Ns):return"EEEE, LLLL d, yyyy";case Al(zs):return"h:mm a";case Al(Vs):return"h:mm:ss a";case Al(Bs):case Al(Hs):return"h:mm a";case Al(js):return"HH:mm";case Al(Us):return"HH:mm:ss";case Al($s):case Al(Ws):return"HH:mm";case Al(qs):return"M/d/yyyy, h:mm a";case Al(Ys):return"LLL d, yyyy, h:mm a";case Al(Ks):return"LLLL d, yyyy, h:mm a";case Al(Qs):return"EEEE, LLLL d, yyyy, h:mm a";case Al(Gs):return"M/d/yyyy, h:mm:ss a";case Al(Zs):return"LLL d, yyyy, h:mm:ss a";case Al(Xs):return"EEE, d LLL yyyy, h:mm a";case Al(Js):return"LLLL d, yyyy, h:mm:ss a";case Al(tl):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return"EEEE, LLLL d, yyyy, h:mm a"}}(this.opts),e=xd.create("en-US");return $l.create(e).formatDateTimeFromString(this.dt,t)}}formatToParts(){return this.hasIntl&&rl()?this.dtf.formatToParts(this.dt.toJSDate()):[]}resolvedOptions(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}}}class _d{constructor(t,e,i){this.opts=Object.assign({style:"long"},i),!e&&al()&&(this.rtf=function(t,e={}){const i=ql(e,["base"]),n=JSON.stringify([t,i]);let o=fd[n];return o||(o=new Intl.RelativeTimeFormat(t,e),fd[n]=o),o}(t,i))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,i="always",n=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===i&&r){const i="days"===t;switch(e){case 1:return i?"tomorrow":`next ${o[t][0]}`;case-1:return i?"yesterday":`last ${o[t][0]}`;case 0:return i?"today":`this ${o[t][0]}`}}const a=Object.is(e,-0)||e<0,s=Math.abs(e),l=1===s,d=o[t],c=n?l?d[1]:d[2]||d[1]:l?o[t][0]:t;return a?`${s} ${c} ago`:`in ${s} ${c}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}class xd{static fromOpts(t){return xd.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,e,i,n=!1){const o=t||hd.defaultLocale,r=o||(n?"en-US":function(){if(gd)return gd;if(ol()){const t=(new Intl.DateTimeFormat).resolvedOptions().locale;return gd=t&&"und"!==t?t:"en-US",gd}return gd="en-US",gd}()),a=e||hd.defaultNumberingSystem,s=i||hd.defaultOutputCalendar;return new xd(r,a,s,o)}static resetCache(){gd=null,ud={},md={},fd={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:i}={}){return xd.create(t,e,i)}constructor(t,e,i,n){const[o,r,a]=function(t){const e=t.indexOf("-u-");if(-1===e)return[t];{let i;const n=t.substring(0,e);try{i=pd(t).resolvedOptions()}catch(t){i=pd(n).resolvedOptions()}const{numberingSystem:o,calendar:r}=i;return[n,o,r]}}(t);this.locale=o,this.numberingSystem=e||r||null,this.outputCalendar=i||a||null,this.intl=function(t,e,i){return ol()?i||e?(t+="-u",i&&(t+=`-ca-${i}`),e&&(t+=`-nu-${e}`),t):t:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||ol()&&"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(t=!0){const e=ol()&&rl(),i=this.isEnglish(),n=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e||i&&n||t?!e||i&&n?"en":"intl":"error"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?xd.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone(Object.assign({},t,{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(Object.assign({},t,{defaultToEN:!1}))}months(t,e=!1,i=!0){return bd(this,t,i,Dl,()=>{const i=e?{month:t,day:"numeric"}:{month:t},n=e?"format":"standalone";return this.monthsCache[n][t]||(this.monthsCache[n][t]=function(t){const e=[];for(let i=1;i<=12;i++){const n=mh.utc(2016,i,1);e.push(t(n))}return e}(t=>this.extract(t,i,"month"))),this.monthsCache[n][t]})}weekdays(t,e=!1,i=!0){return bd(this,t,i,Rl,()=>{const i=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},n=e?"format":"standalone";return this.weekdaysCache[n][t]||(this.weekdaysCache[n][t]=function(t){const e=[];for(let i=1;i<=7;i++){const n=mh.utc(2016,11,13+i);e.push(t(n))}return e}(t=>this.extract(t,i,"weekday"))),this.weekdaysCache[n][t]})}meridiems(t=!0){return bd(this,void 0,t,()=>Nl,()=>{if(!this.meridiemCache){const t={hour:"numeric",hour12:!0};this.meridiemCache=[mh.utc(2016,11,13,9),mh.utc(2016,11,13,19)].map(e=>this.extract(e,t,"dayperiod"))}return this.meridiemCache})}eras(t,e=!0){return bd(this,t,e,Hl,()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[mh.utc(-40,1,1),mh.utc(2017,1,1)].map(t=>this.extract(t,e,"era"))),this.eraCache[t]})}extract(t,e,i){const n=this.dtFormatter(t,e).formatToParts().find(t=>t.type.toLowerCase()===i);return n?n.value:null}numberFormatter(t={}){return new vd(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new yd(t,this.intl,e)}relFormatter(t={}){return new _d(this.intl,this.isEnglish(),t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||ol()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function wd(...t){const e=t.reduce((t,e)=>t+e.source,"");return RegExp(`^${e}$`)}function Sd(...t){return e=>t.reduce(([t,i,n],o)=>{const[r,a,s]=o(e,n);return[Object.assign(t,r),i||a,s]},[{},null,1]).slice(0,2)}function Cd(t,...e){if(null==t)return[null,null];for(const[i,n]of e){const e=i.exec(t);if(e)return n(e)}return[null,null]}function Td(...t){return(e,i)=>{const n={};let o;for(o=0;o<t.length;o++)n[t[o]]=ul(e[i+o]);return[n,null,i+o]}}const Ed=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,kd=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,9}))?)?)?/,Ad=RegExp(`${kd.source}${Ed.source}?`),Id=RegExp(`(?:T${Ad.source})?`),Od=Td("weekYear","weekNumber","weekDay"),Md=Td("year","ordinal"),Dd=RegExp(`${kd.source} ?(?:${Ed.source}|(${kl.source}))?`),Ld=RegExp(`(?: ${Dd.source})?`);function Fd(t,e,i){const n=t[e];return el(n)?i:ul(n)}function Pd(t,e){return[{year:Fd(t,e),month:Fd(t,e+1,1),day:Fd(t,e+2,1)},null,e+3]}function Rd(t,e){return[{hour:Fd(t,e,0),minute:Fd(t,e+1,0),second:Fd(t,e+2,0),millisecond:pl(t[e+3])},null,e+4]}function Nd(t,e){const i=!t[e]&&!t[e+1],n=wl(t[e+1],t[e+2]);return[{},i?null:id.instance(n),e+3]}function zd(t,e){return[{},t[e]?td.create(t[e]):null,e+1]}const Vd=/^P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Bd(t){const[,e,i,n,o,r,a,s,l]=t;return[{years:ul(e),months:ul(i),weeks:ul(n),days:ul(o),hours:ul(r),minutes:ul(a),seconds:ul(s),milliseconds:pl(l)}]}const Hd={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function jd(t,e,i,n,o,r,a){const s={year:2===e.length?_l(ul(e)):ul(e),month:Ol.indexOf(i)+1,day:ul(n),hour:ul(o),minute:ul(r)};return a&&(s.second=ul(a)),t&&(s.weekday=t.length>3?Ll.indexOf(t)+1:Fl.indexOf(t)+1),s}const Ud=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function $d(t){const[,e,i,n,o,r,a,s,l,d,c,h]=t,u=jd(e,o,n,i,r,a,s);let p;return p=l?Hd[l]:d?0:wl(c,h),[u,new id(p)]}const Wd=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,qd=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Gd=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Yd(t){const[,e,i,n,o,r,a,s]=t;return[jd(e,o,n,i,r,a,s),id.utcInstance]}function Zd(t){const[,e,i,n,o,r,a,s]=t;return[jd(e,s,i,n,o,r,a),id.utcInstance]}const Xd=wd(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Id),Kd=wd(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Id),Jd=wd(/(\d{4})-?(\d{3})/,Id),Qd=wd(Ad),tc=Sd(Pd,Rd,Nd),ec=Sd(Od,Rd,Nd),ic=Sd(Md,Rd),nc=Sd(Rd,Nd);const oc=wd(/(\d{4})-(\d\d)-(\d\d)/,Ld),rc=wd(Dd),ac=Sd(Pd,Rd,Nd,zd),sc=Sd(Rd,Nd,zd);const lc={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},dc=Object.assign({years:{months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},lc),cc=Object.assign({years:{months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},lc),hc=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],uc=hc.slice(0).reverse();function pc(t,e,i=!1){const n={values:i?e.values:Object.assign({},t.values,e.values||{}),loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new gc(n)}function mc(t,e,i,n,o){const r=t[o][i],a=e[i]/r,s=!(Math.sign(a)===Math.sign(n[o]))&&0!==n[o]&&Math.abs(a)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(a):Math.trunc(a);n[o]+=s,e[i]-=s*r}function fc(t,e){uc.reduce((i,n)=>el(e[n])?i:(i&&mc(t,e,i,e,n),n),null)}class gc{constructor(t){const e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||xd.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?cc:dc,this.isLuxonDuration=!0}static fromMillis(t,e){return gc.fromObject(Object.assign({milliseconds:t},e))}static fromObject(t){if(null==t||"object"!=typeof t)throw new Is(`Duration.fromObject: argument expected to be an object, got ${null===t?"null":typeof t}`);return new gc({values:Cl(t,gc.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:xd.fromObject(t),conversionAccuracy:t.conversionAccuracy})}static fromISO(t,e){const[i]=function(t){return Cd(t,[Vd,Bd])}(t);if(i){const t=Object.assign(i,e);return gc.fromObject(t)}return gc.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new Is("need to specify a reason the Duration is invalid");const i=t instanceof Wl?t:new Wl(t,e);if(hd.throwOnInvalid)throw new Es(i);return new gc({invalid:i})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new As(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const i=Object.assign({},e,{floor:!1!==e.round&&!1!==e.floor});return this.isValid?$l.create(this.loc,i).formatDurationFromString(this,t):"Invalid Duration"}toObject(t={}){if(!this.isValid)return{};const e=Object.assign({},this.values);return t.includeConfig&&(e.conversionAccuracy=this.conversionAccuracy,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=ml(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toJSON(){return this.toISO()}toString(){return this.toISO()}valueOf(){return this.as("milliseconds")}plus(t){if(!this.isValid)return this;const e=bc(t),i={};for(const t of hc)(dl(e.values,t)||dl(this.values,t))&&(i[t]=e.get(t)+this.get(t));return pc(this,{values:i},!0)}minus(t){if(!this.isValid)return this;const e=bc(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=Sl(t(this.values[i],i));return pc(this,{values:e},!0)}get(t){return this[gc.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return pc(this,{values:Object.assign(this.values,Cl(t,gc.normalizeUnit,[]))})}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:i}={}){const n={loc:this.loc.clone({locale:t,numberingSystem:e})};return i&&(n.conversionAccuracy=i),pc(this,n)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return fc(this.matrix,t),pc(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map(t=>gc.normalizeUnit(t));const e={},i={},n=this.toObject();let o;fc(this.matrix,n);for(const r of hc)if(t.indexOf(r)>=0){o=r;let t=0;for(const e in i)t+=this.matrix[e][r]*i[e],i[e]=0;il(n[r])&&(t+=n[r]);const a=Math.trunc(t);e[r]=a,i[r]=t-a;for(const t in n)hc.indexOf(t)>hc.indexOf(r)&&mc(this.matrix,n,t,e,r)}else il(n[r])&&(i[r]=n[r]);for(const t in i)0!==i[t]&&(e[o]+=t===o?i[t]:i[t]/this.matrix[o][t]);return pc(this,{values:e},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=-this.values[e];return pc(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const e of hc)if(this.values[e]!==t.values[e])return!1;return!0}}function bc(t){if(il(t))return gc.fromMillis(t);if(gc.isDuration(t))return t;if("object"==typeof t)return gc.fromObject(t);throw new Is(`Unknown duration argument ${t} of type ${typeof t}`)}const vc="Invalid Interval";class yc{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new Is("need to specify a reason the Interval is invalid");const i=t instanceof Wl?t:new Wl(t,e);if(hd.throwOnInvalid)throw new Ts(i);return new yc({invalid:i})}static fromDateTimes(t,e){const i=fh(t),n=fh(e),o=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?yc.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:yc.invalid("missing or invalid end"):yc.invalid("missing or invalid start")}(i,n);return null==o?new yc({start:i,end:n}):o}static after(t,e){const i=bc(e),n=fh(t);return yc.fromDateTimes(n,n.plus(i))}static before(t,e){const i=bc(e),n=fh(t);return yc.fromDateTimes(n.minus(i),n)}static fromISO(t,e){const[i,n]=(t||"").split("/",2);if(i&&n){const t=mh.fromISO(i,e),o=mh.fromISO(n,e);if(t.isValid&&o.isValid)return yc.fromDateTimes(t,o);if(t.isValid){const i=gc.fromISO(n,e);if(i.isValid)return yc.after(t,i)}else if(o.isValid){const t=gc.fromISO(i,e);if(t.isValid)return yc.before(o,t)}}return yc.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const e=this.start.startOf(t),i=this.end.startOf(t);return Math.floor(i.diff(e,t).get(t))+1}hasSame(t){return!!this.isValid&&this.e.minus(1).hasSame(this.s,t)}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&(this.s<=t&&this.e>t)}set({start:t,end:e}={}){return this.isValid?yc.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(fh).filter(t=>this.contains(t)).sort(),i=[];let{s:n}=this,o=0;for(;n<this.e;){const t=e[o]||this.e,r=+t>+this.e?this.e:t;i.push(yc.fromDateTimes(n,r)),n=r,o+=1}return i}splitBy(t){const e=bc(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let i,n,{s:o}=this;const r=[];for(;o<this.e;)i=o.plus(e),n=+i>+this.e?this.e:i,r.push(yc.fromDateTimes(o,n)),o=n;return r}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&(this.s<=t.s&&this.e>=t.e)}equals(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return e>i?null:yc.fromDateTimes(e,i)}union(t){if(!this.isValid)return this;const e=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return yc.fromDateTimes(e,i)}static merge(t){const[e,i]=t.sort((t,e)=>t.s-e.s).reduce(([t,e],i)=>e?e.overlaps(i)||e.abutsStart(i)?[t,e.union(i)]:[t.concat([e]),i]:[t,i],[[],null]);return i&&e.push(i),e}static xor(t){let e=null,i=0;const n=[],o=t.map(t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}]),r=Array.prototype.concat(...o).sort((t,e)=>t.time-e.time);for(const t of r)i+="s"===t.type?1:-1,1===i?e=t.time:(e&&+e!=+t.time&&n.push(yc.fromDateTimes(e,t.time)),e=null);return yc.merge(n)}difference(...t){return yc.xor([this].concat(t)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:vc}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:vc}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:vc}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:vc}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:vc}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):gc.invalid(this.invalidReason)}mapEndpoints(t){return yc.fromDateTimes(t(this.s),t(this.e))}}class _c{static hasDST(t=hd.defaultZone){const e=mh.local().setZone(t).set({month:12});return!t.universal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return td.isValidSpecifier(t)&&td.isValidZone(t)}static normalizeZone(t){return od(t,hd.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:i=null,outputCalendar:n="gregory"}={}){return xd.create(e,i,n).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:i=null,outputCalendar:n="gregory"}={}){return xd.create(e,i,n).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:i=null}={}){return xd.create(e,i,null).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:i=null}={}){return xd.create(e,i,null).weekdays(t,!0)}static meridiems({locale:t=null}={}){return xd.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return xd.create(e,null,"gregory").eras(t)}static features(){let t=!1,e=!1,i=!1,n=!1;if(ol()){t=!0,e=rl(),n=al();try{i="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(t){i=!1}}return{intl:t,intlTokens:e,zones:i,relative:n}}}function xc(t,e){const i=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=i(e)-i(t);return Math.floor(gc.fromMillis(n).as("days"))}function wc(t,e,i,n){let[o,r,a,s]=function(t,e,i){const n=[["years",(t,e)=>e.year-t.year],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const i=xc(t,e);return(i-i%7)/7}],["days",xc]],o={};let r,a;for(const[s,l]of n)if(i.indexOf(s)>=0){r=s;let i=l(t,e);a=t.plus({[s]:i}),a>e?(t=t.plus({[s]:i-1}),i-=1):t=a,o[s]=i}return[t,o,a,r]}(t,e,i);const l=e-o,d=i.filter(t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0);0===d.length&&(a<e&&(a=o.plus({[s]:1})),a!==o&&(r[s]=(r[s]||0)+l/(a-o)));const c=gc.fromObject(Object.assign(r,n));return d.length>0?gc.fromMillis(l,n).shiftTo(...d).plus(c):c}const Sc={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Cc={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Tc=Sc.hanidec.replace(/[\[|\]]/g,"").split("");function Ec({numberingSystem:t},e=""){return new RegExp(`${Sc[t||"latn"]}${e}`)}function kc(t,e=(t=>t)){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let i=0;i<t.length;i++){const n=t.charCodeAt(i);if(-1!==t[i].search(Sc.hanidec))e+=Tc.indexOf(t[i]);else for(const t in Cc){const[i,o]=Cc[t];n>=i&&n<=o&&(e+=n-i)}}return parseInt(e,10)}return e}(t))}}function Ac(t){return t.replace(/\./,"\\.?")}function Ic(t){return t.replace(/\./,"").toLowerCase()}function Oc(t,e){return null===t?null:{regex:RegExp(t.map(Ac).join("|")),deser:([i])=>t.findIndex(t=>Ic(i)===Ic(t))+e}}function Mc(t,e){return{regex:t,deser:([,t,e])=>wl(t,e),groups:e}}function Dc(t){return{regex:t,deser:([t])=>t}}const Lc={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};let Fc=null;function Pc(t,e){if(t.literal)return t;const i=$l.macroTokenToFormatOpts(t.val);if(!i)return t;const n=$l.create(e,i).formatDateTimeParts((Fc||(Fc=mh.fromMillis(1555555555555)),Fc)).map(t=>function(t,e,i){const{type:n,value:o}=t;if("literal"===n)return{literal:!0,val:o};const r=i[n];let a=Lc[n];return"object"==typeof a&&(a=a[r]),a?{literal:!1,val:a}:void 0}(t,0,i));return n.includes(void 0)?t:n}function Rc(t,e,i){const n=function(t,e){return Array.prototype.concat(...t.map(t=>Pc(t,e)))}($l.parseFormat(i),t),o=n.map(e=>function(t,e){const i=Ec(e),n=Ec(e,"{2}"),o=Ec(e,"{3}"),r=Ec(e,"{4}"),a=Ec(e,"{6}"),s=Ec(e,"{1,2}"),l=Ec(e,"{1,3}"),d=Ec(e,"{1,6}"),c=Ec(e,"{1,9}"),h=Ec(e,"{2,4}"),u=Ec(e,"{4,6}"),p=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},m=(m=>{if(t.literal)return p(m);switch(m.val){case"G":return Oc(e.eras("short",!1),0);case"GG":return Oc(e.eras("long",!1),0);case"y":return kc(d);case"yy":return kc(h,_l);case"yyyy":return kc(r);case"yyyyy":return kc(u);case"yyyyyy":return kc(a);case"M":return kc(s);case"MM":return kc(n);case"MMM":return Oc(e.months("short",!0,!1),1);case"MMMM":return Oc(e.months("long",!0,!1),1);case"L":return kc(s);case"LL":return kc(n);case"LLL":return Oc(e.months("short",!1,!1),1);case"LLLL":return Oc(e.months("long",!1,!1),1);case"d":return kc(s);case"dd":return kc(n);case"o":return kc(l);case"ooo":return kc(o);case"HH":return kc(n);case"H":return kc(s);case"hh":return kc(n);case"h":return kc(s);case"mm":return kc(n);case"m":case"q":return kc(s);case"qq":return kc(n);case"s":return kc(s);case"ss":return kc(n);case"S":return kc(l);case"SSS":return kc(o);case"u":return Dc(c);case"a":return Oc(e.meridiems(),0);case"kkkk":return kc(r);case"kk":return kc(h,_l);case"W":return kc(s);case"WW":return kc(n);case"E":case"c":return kc(i);case"EEE":return Oc(e.weekdays("short",!1,!1),1);case"EEEE":return Oc(e.weekdays("long",!1,!1),1);case"ccc":return Oc(e.weekdays("short",!0,!1),1);case"cccc":return Oc(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Mc(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return Mc(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return Dc(/[a-z_+-/]{1,256}?/i);default:return p(m)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return m.token=t,m}(e,t)),r=o.find(t=>t.invalidReason);if(r)return{input:e,tokens:n,invalidReason:r.invalidReason};{const[t,i]=function(t){return[`^${t.map(t=>t.regex).reduce((t,e)=>`${t}(${e.source})`,"")}$`,t]}(o),r=RegExp(t,"i"),[a,s]=function(t,e,i){const n=t.match(e);if(n){const t={};let e=1;for(const o in i)if(dl(i,o)){const r=i[o],a=r.groups?r.groups+1:1;!r.literal&&r.token&&(t[r.token.val[0]]=r.deser(n.slice(e,e+a))),e+=a}return[n,t]}return[n,{}]}(e,r,i),[l,d]=s?function(t){let e;return e=el(t.Z)?el(t.z)?null:td.create(t.z):new id(t.Z),el(t.q)||(t.M=3*(t.q-1)+1),el(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),el(t.u)||(t.S=pl(t.u)),[Object.keys(t).reduce((e,i)=>{const n=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(i);return n&&(e[n]=t[i]),e},{}),e]}(s):[null,null];if(dl(s,"a")&&dl(s,"H"))throw new ks("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:r,rawMatches:a,matches:s,result:l,zone:d}}}const Nc=[0,31,59,90,120,151,181,212,243,273,304,334],zc=[0,31,60,91,121,152,182,213,244,274,305,335];function Vc(t,e){return new Wl("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Bc(t,e,i){const n=new Date(Date.UTC(t,e-1,i)).getUTCDay();return 0===n?7:n}function Hc(t,e,i){return i+(fl(t)?zc:Nc)[e-1]}function jc(t,e){const i=fl(t)?zc:Nc,n=i.findIndex(t=>t<e);return{month:n+1,day:e-i[n]}}function Uc(t){const{year:e,month:i,day:n}=t,o=Hc(e,i,n),r=Bc(e,i,n);let a,s=Math.floor((o-r+10)/7);return s<1?(a=e-1,s=yl(a)):s>yl(e)?(a=e+1,s=1):a=e,Object.assign({weekYear:a,weekNumber:s,weekday:r},El(t))}function $c(t){const{weekYear:e,weekNumber:i,weekday:n}=t,o=Bc(e,1,4),r=gl(e);let a,s=7*i+n-o-3;s<1?(a=e-1,s+=gl(a)):s>r?(a=e+1,s-=gl(e)):a=e;const{month:l,day:d}=jc(a,s);return Object.assign({year:a,month:l,day:d},El(t))}function Wc(t){const{year:e,month:i,day:n}=t,o=Hc(e,i,n);return Object.assign({year:e,ordinal:o},El(t))}function qc(t){const{year:e,ordinal:i}=t,{month:n,day:o}=jc(e,i);return Object.assign({year:e,month:n,day:o},El(t))}function Gc(t){const e=nl(t.year),i=cl(t.month,1,12),n=cl(t.day,1,bl(t.year,t.month));return e?i?!n&&Vc("day",t.day):Vc("month",t.month):Vc("year",t.year)}function Yc(t){const{hour:e,minute:i,second:n,millisecond:o}=t,r=cl(e,0,23)||24===e&&0===i&&0===n&&0===o,a=cl(i,0,59),s=cl(n,0,59),l=cl(o,0,999);return r?a?s?!l&&Vc("millisecond",o):Vc("second",n):Vc("minute",i):Vc("hour",e)}function Zc(t){return new Wl("unsupported zone",`the zone "${t.name}" is not supported`)}function Xc(t){return null===t.weekData&&(t.weekData=Uc(t.c)),t.weekData}function Kc(t,e){const i={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new mh(Object.assign({},i,e,{old:i}))}function Jc(t,e,i){let n=t-60*e*1e3;const o=i.offset(n);if(e===o)return[n,e];n-=60*(o-e)*1e3;const r=i.offset(n);return o===r?[n,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}function Qc(t,e){const i=new Date(t+=60*e*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function th(t,e,i){return Jc(vl(t),e,i)}function eh(t,e){const i=Object.keys(e.values);-1===i.indexOf("milliseconds")&&i.push("milliseconds"),e=e.shiftTo(...i);const n=t.o,o=t.c.year+e.years,r=t.c.month+e.months+3*e.quarters,a=Object.assign({},t.c,{year:o,month:r,day:Math.min(t.c.day,bl(o,r))+e.days+7*e.weeks}),s=gc.fromObject({hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),l=vl(a);let[d,c]=Jc(l,n,t.zone);return 0!==s&&(d+=s,c=t.zone.offset(d)),{ts:d,o:c}}function ih(t,e,i,n,o){const{setZone:r,zone:a}=i;if(t&&0!==Object.keys(t).length){const n=e||a,o=mh.fromObject(Object.assign(t,i,{zone:n,setZone:void 0}));return r?o:o.setZone(a)}return mh.invalid(new Wl("unparsable",`the input "${o}" can't be parsed as ${n}`))}function nh(t,e,i=!0){return t.isValid?$l.create(xd.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(t,e):null}function oh(t,{suppressSeconds:e=!1,suppressMilliseconds:i=!1,includeOffset:n,includeZone:o=!1,spaceZone:r=!1,format:a="extended"}){let s="basic"===a?"HHmm":"HH:mm";return e&&0===t.second&&0===t.millisecond||(s+="basic"===a?"ss":":ss",i&&0===t.millisecond||(s+=".SSS")),(o||n)&&r&&(s+=" "),o?s+="z":n&&(s+="basic"===a?"ZZZ":"ZZ"),nh(t,s)}const rh={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ah={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},sh={ordinal:1,hour:0,minute:0,second:0,millisecond:0},lh=["year","month","day","hour","minute","second","millisecond"],dh=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ch=["year","ordinal","hour","minute","second","millisecond"];function hh(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new As(t);return e}function uh(t,e){for(const e of lh)el(t[e])&&(t[e]=rh[e]);const i=Gc(t)||Yc(t);if(i)return mh.invalid(i);const n=hd.now(),o=e.offset(n),[r,a]=th(t,o,e);return new mh({ts:r,zone:e,o:a})}function ph(t,e,i){const n=!!el(i.round)||i.round,o=(t,o)=>(t=ml(t,n||i.calendary?0:2,!0),e.loc.clone(i).relFormatter(i).format(t,o)),r=n=>i.calendary?e.hasSame(t,n)?0:e.startOf(n).diff(t.startOf(n),n).get(n):e.diff(t,n).get(n);if(i.unit)return o(r(i.unit),i.unit);for(const t of i.units){const e=r(t);if(Math.abs(e)>=1)return o(e,t)}return o(0,i.units[i.units.length-1])}class mh{constructor(t){const e=t.zone||hd.defaultZone;let i=t.invalid||(Number.isNaN(t.ts)?new Wl("invalid input"):null)||(e.isValid?null:Zc(e));this.ts=el(t.ts)?hd.now():t.ts;let n=null,o=null;if(!i){if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[n,o]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);n=Qc(this.ts,t),i=Number.isNaN(n.year)?new Wl("invalid input"):null,n=i?null:n,o=i?null:t}}this._zone=e,this.loc=t.loc||xd.create(),this.invalid=i,this.weekData=null,this.c=n,this.o=o,this.isLuxonDateTime=!0}static local(t,e,i,n,o,r,a){return el(t)?new mh({ts:hd.now()}):uh({year:t,month:e,day:i,hour:n,minute:o,second:r,millisecond:a},hd.defaultZone)}static utc(t,e,i,n,o,r,a){return el(t)?new mh({ts:hd.now(),zone:id.utcInstance}):uh({year:t,month:e,day:i,hour:n,minute:o,second:r,millisecond:a},id.utcInstance)}static fromJSDate(t,e={}){const i=(n=t,"[object Date]"===Object.prototype.toString.call(n)?t.valueOf():NaN);var n;if(Number.isNaN(i))return mh.invalid("invalid input");const o=od(e.zone,hd.defaultZone);return o.isValid?new mh({ts:i,zone:o,loc:xd.fromObject(e)}):mh.invalid(Zc(o))}static fromMillis(t,e={}){if(il(t))return t<-864e13||t>864e13?mh.invalid("Timestamp out of range"):new mh({ts:t,zone:od(e.zone,hd.defaultZone),loc:xd.fromObject(e)});throw new Is(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(il(t))return new mh({ts:1e3*t,zone:od(e.zone,hd.defaultZone),loc:xd.fromObject(e)});throw new Is("fromSeconds requires a numerical input")}static fromObject(t){const e=od(t.zone,hd.defaultZone);if(!e.isValid)return mh.invalid(Zc(e));const i=hd.now(),n=e.offset(i),o=Cl(t,hh,["zone","locale","outputCalendar","numberingSystem"]),r=!el(o.ordinal),a=!el(o.year),s=!el(o.month)||!el(o.day),l=a||s,d=o.weekYear||o.weekNumber,c=xd.fromObject(t);if((l||r)&&d)throw new ks("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&r)throw new ks("Can't mix ordinal dates with month/day");const h=d||o.weekday&&!l;let u,p,m=Qc(i,n);h?(u=dh,p=ah,m=Uc(m)):r?(u=ch,p=sh,m=Wc(m)):(u=lh,p=rh);let f=!1;for(const t of u){el(o[t])?o[t]=f?p[t]:m[t]:f=!0}const g=(h?function(t){const e=nl(t.weekYear),i=cl(t.weekNumber,1,yl(t.weekYear)),n=cl(t.weekday,1,7);return e?i?!n&&Vc("weekday",t.weekday):Vc("week",t.week):Vc("weekYear",t.weekYear)}(o):r?function(t){const e=nl(t.year),i=cl(t.ordinal,1,gl(t.year));return e?!i&&Vc("ordinal",t.ordinal):Vc("year",t.year)}(o):Gc(o))||Yc(o);if(g)return mh.invalid(g);const b=h?$c(o):r?qc(o):o,[v,y]=th(b,n,e),_=new mh({ts:v,zone:e,o:y,loc:c});return o.weekday&&l&&t.weekday!==_.weekday?mh.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${_.toISO()}`):_}static fromISO(t,e={}){const[i,n]=function(t){return Cd(t,[Xd,tc],[Kd,ec],[Jd,ic],[Qd,nc])}(t);return ih(i,n,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[i,n]=function(t){return Cd(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Ud,$d])}(t);return ih(i,n,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[i,n]=function(t){return Cd(t,[Wd,Yd],[qd,Yd],[Gd,Zd])}(t);return ih(i,n,e,"HTTP",e)}static fromFormat(t,e,i={}){if(el(t)||el(e))throw new Is("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:o=null}=i,r=xd.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),[a,s,l]=function(t,e,i){const{result:n,zone:o,invalidReason:r}=Rc(t,e,i);return[n,o,r]}(r,t,e);return l?mh.invalid(l):ih(a,s,i,`format ${e}`,t)}static fromString(t,e,i={}){return mh.fromFormat(t,e,i)}static fromSQL(t,e={}){const[i,n]=function(t){return Cd(t,[oc,ac],[rc,sc])}(t);return ih(i,n,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new Is("need to specify a reason the DateTime is invalid");const i=t instanceof Wl?t:new Wl(t,e);if(hd.throwOnInvalid)throw new Cs(i);return new mh({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Xc(this).weekYear:NaN}get weekNumber(){return this.isValid?Xc(this).weekNumber:NaN}get weekday(){return this.isValid?Xc(this).weekday:NaN}get ordinal(){return this.isValid?Wc(this.c).ordinal:NaN}get monthShort(){return this.isValid?_c.months("short",{locale:this.locale})[this.month-1]:null}get monthLong(){return this.isValid?_c.months("long",{locale:this.locale})[this.month-1]:null}get weekdayShort(){return this.isValid?_c.weekdays("short",{locale:this.locale})[this.weekday-1]:null}get weekdayLong(){return this.isValid?_c.weekdays("long",{locale:this.locale})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.universal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return fl(this.year)}get daysInMonth(){return bl(this.year,this.month)}get daysInYear(){return this.isValid?gl(this.year):NaN}get weeksInWeekYear(){return this.isValid?yl(this.weekYear):NaN}resolvedLocaleOpts(t={}){const{locale:e,numberingSystem:i,calendar:n}=$l.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:i,outputCalendar:n}}toUTC(t=0,e={}){return this.setZone(id.instance(t),e)}toLocal(){return this.setZone(hd.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:i=!1}={}){if((t=od(t,hd.defaultZone)).equals(this.zone))return this;if(t.isValid){let n=this.ts;if(e||i){const e=t.offset(this.ts),i=this.toObject();[n]=th(i,e,t)}return Kc(this,{ts:n,zone:t})}return mh.invalid(Zc(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:i}={}){return Kc(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:i})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=Cl(t,hh,[]);let i;!el(e.weekYear)||!el(e.weekNumber)||!el(e.weekday)?i=$c(Object.assign(Uc(this.c),e)):el(e.ordinal)?(i=Object.assign(this.toObject(),e),el(e.day)&&(i.day=Math.min(bl(i.year,i.month),i.day))):i=qc(Object.assign(Wc(this.c),e));const[n,o]=th(i,this.o,this.zone);return Kc(this,{ts:n,o:o})}plus(t){if(!this.isValid)return this;return Kc(this,eh(this,bc(t)))}minus(t){if(!this.isValid)return this;return Kc(this,eh(this,bc(t).negate()))}startOf(t){if(!this.isValid)return this;const e={},i=gc.normalizeUnit(t);switch(i){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===i&&(e.weekday=1),"quarters"===i){const t=Math.ceil(this.month/3);e.month=3*(t-1)+1}return this.set(e)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,e={}){return this.isValid?$l.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):"Invalid DateTime"}toLocaleString(t=Fs){return this.isValid?$l.create(this.loc.clone(t),t).formatDateTime(this):"Invalid DateTime"}toLocaleParts(t={}){return this.isValid?$l.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO(t={}){return this.isValid?`${this.toISODate(t)}T${this.toISOTime(t)}`:null}toISODate({format:t="extended"}={}){let e="basic"===t?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(e="+"+e),nh(this,e)}toISOWeekDate(){return nh(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:i=!0,format:n="extended"}={}){return oh(this,{suppressSeconds:e,suppressMilliseconds:t,includeOffset:i,format:n})}toRFC2822(){return nh(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return nh(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return nh(this,"yyyy-MM-dd")}toSQLTime({includeOffset:t=!0,includeZone:e=!1}={}){return oh(this,{includeOffset:t,includeZone:e,spaceZone:!0})}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():"Invalid DateTime"}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e=Object.assign({},this.c);return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",i={}){if(!this.isValid||!t.isValid)return gc.invalid(this.invalid||t.invalid,"created by diffing an invalid DateTime");const n=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},i),o=(s=e,Array.isArray(s)?s:[s]).map(gc.normalizeUnit),r=t.valueOf()>this.valueOf(),a=wc(r?this:t,r?t:this,o,n);var s;return r?a.negate():a}diffNow(t="milliseconds",e={}){return this.diff(mh.local(),t,e)}until(t){return this.isValid?yc.fromDateTimes(this,t):this}hasSame(t,e){if(!this.isValid)return!1;if("millisecond"===e)return this.valueOf()===t.valueOf();{const i=t.valueOf();return this.startOf(e)<=i&&i<=this.endOf(e)}}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||mh.fromObject({zone:this.zone}),i=t.padding?this<e?-t.padding:t.padding:0;return ph(e,this.plus(i),Object.assign(t,{numeric:"always",units:["years","months","days","hours","minutes","seconds"]}))}toRelativeCalendar(t={}){return this.isValid?ph(t.base||mh.fromObject({zone:this.zone}),this,Object.assign(t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(mh.isDateTime))throw new Is("min requires all arguments be DateTimes");return sl(t,t=>t.valueOf(),Math.min)}static max(...t){if(!t.every(mh.isDateTime))throw new Is("max requires all arguments be DateTimes");return sl(t,t=>t.valueOf(),Math.max)}static fromFormatExplain(t,e,i={}){const{locale:n=null,numberingSystem:o=null}=i;return Rc(xd.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,i={}){return mh.fromFormatExplain(t,e,i)}static get DATE_SHORT(){return Fs}static get DATE_MED(){return Ps}static get DATE_FULL(){return Rs}static get DATE_HUGE(){return Ns}static get TIME_SIMPLE(){return zs}static get TIME_WITH_SECONDS(){return Vs}static get TIME_WITH_SHORT_OFFSET(){return Bs}static get TIME_WITH_LONG_OFFSET(){return Hs}static get TIME_24_SIMPLE(){return js}static get TIME_24_WITH_SECONDS(){return Us}static get TIME_24_WITH_SHORT_OFFSET(){return $s}static get TIME_24_WITH_LONG_OFFSET(){return Ws}static get DATETIME_SHORT(){return qs}static get DATETIME_SHORT_WITH_SECONDS(){return Gs}static get DATETIME_MED(){return Ys}static get DATETIME_MED_WITH_SECONDS(){return Zs}static get DATETIME_MED_WITH_WEEKDAY(){return Xs}static get DATETIME_FULL(){return Ks}static get DATETIME_FULL_WITH_SECONDS(){return Js}static get DATETIME_HUGE(){return Qs}static get DATETIME_HUGE_WITH_SECONDS(){return tl}}function fh(t){if(mh.isDateTime(t))return t;if(t&&t.valueOf&&il(t.valueOf()))return mh.fromJSDate(t);if(t&&"object"==typeof t)return mh.fromObject(t);throw new Is(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const gh={datetime:mh.DATETIME_MED_WITH_SECONDS,millisecond:"h:mm:ss.SSS a",second:mh.TIME_WITH_SECONDS,minute:mh.TIME_SIMPLE,hour:{hour:"numeric"},day:{day:"numeric",month:"short"},week:"DD",month:{month:"short",year:"numeric"},quarter:"'Q'q - yyyy",year:{year:"numeric"}};Xr._adapters._date.override({_id:"luxon",_create(t){return mh.fromMillis(t,this.options)},formats:()=>gh,parse(t,e){const{options:i}=this;if(Xr.helpers.isNullOrUndef(t))return null;const n=typeof t;return"number"===n?t=this._create(t):"string"===n?t="string"==typeof e?mh.fromFormat(t,e,i):mh.fromISO(t,i):"object"!==n||t instanceof mh?t instanceof Date&&(t=mh.fromJSDate(t,i)):t=mh.fromObject(t),t.isValid?t.valueOf():null},format(t,e){const i=this._create(t);return"string"==typeof e?i.toFormat(e,this.options):i.toLocaleString(e)},add(t,e,i){const n={};return n[i]=e,this._create(t).plus(n).valueOf()},diff(t,e,i){return this._create(t).diff(this._create(e)).as(i).valueOf()},startOf(t,e,i){return"isoWeek"===e?this._create(t).isoWeekday(i).valueOf():e?this._create(t).startOf(e).valueOf():t},endOf(t,e){return this._create(t).endOf(e).valueOf()}});
  /**
  @license
  Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
  The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
  Code distributed by Google as part of the polymer project is also
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
  */
  const bh=it`.layout.horizontal,.layout.vertical{display:-ms-flexbox;display:-webkit-flex;display:flex}.layout.inline{display:-ms-inline-flexbox;display:-webkit-inline-flex;display:inline-flex}.layout.horizontal{-ms-flex-direction:row;-webkit-flex-direction:row;flex-direction:row}.layout.vertical{-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.layout.wrap{-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}.layout.no-wrap{-ms-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}.layout.center,.layout.center-center{-ms-flex-align:center;-webkit-align-items:center;align-items:center}.layout.center-justified,.layout.center-center{-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.flex{-ms-flex:1 1 .000000001px;-webkit-flex:1;flex:1;-webkit-flex-basis:.000000001px;flex-basis:.000000001px}.flex-auto{-ms-flex:1 1 auto;-webkit-flex:1 1 auto;flex:1 1 auto}.flex-none{-ms-flex:none;-webkit-flex:none;flex:none}`,vh=(it`.layout.horizontal-reverse,.layout.vertical-reverse{display:-ms-flexbox;display:-webkit-flex;display:flex}.layout.horizontal-reverse{-ms-flex-direction:row-reverse;-webkit-flex-direction:row-reverse;flex-direction:row-reverse}.layout.vertical-reverse{-ms-flex-direction:column-reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse}.layout.wrap-reverse{-ms-flex-wrap:wrap-reverse;-webkit-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}`,it`.layout.start{-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start}.layout.center,.layout.center-center{-ms-flex-align:center;-webkit-align-items:center;align-items:center}.layout.end{-ms-flex-align:end;-webkit-align-items:flex-end;align-items:flex-end}.layout.baseline{-ms-flex-align:baseline;-webkit-align-items:baseline;align-items:baseline}.layout.start-justified{-ms-flex-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.layout.center-justified,.layout.center-center{-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.layout.end-justified{-ms-flex-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.layout.around-justified{-ms-flex-pack:distribute;-webkit-justify-content:space-around;justify-content:space-around}.layout.justified{-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.self-start{-ms-align-self:flex-start;-webkit-align-self:flex-start;align-self:flex-start}.self-center{-ms-align-self:center;-webkit-align-self:center;align-self:center}.self-end{-ms-align-self:flex-end;-webkit-align-self:flex-end;align-self:flex-end}.self-stretch{-ms-align-self:stretch;-webkit-align-self:stretch;align-self:stretch}.self-baseline{-ms-align-self:baseline;-webkit-align-self:baseline;align-self:baseline}.layout.start-aligned{-ms-flex-line-pack:start;-ms-align-content:flex-start;-webkit-align-content:flex-start;align-content:flex-start}.layout.end-aligned{-ms-flex-line-pack:end;-ms-align-content:flex-end;-webkit-align-content:flex-end;align-content:flex-end}.layout.center-aligned{-ms-flex-line-pack:center;-ms-align-content:center;-webkit-align-content:center;align-content:center}.layout.between-aligned{-ms-flex-line-pack:justify;-ms-align-content:space-between;-webkit-align-content:space-between;align-content:space-between}.layout.around-aligned{-ms-flex-line-pack:distribute;-ms-align-content:space-around;-webkit-align-content:space-around;align-content:space-around}`);it`.flex,.flex-1{-ms-flex:1 1 .000000001px;-webkit-flex:1;flex:1;-webkit-flex-basis:.000000001px;flex-basis:.000000001px}.flex-2{-ms-flex:2;-webkit-flex:2;flex:2}.flex-3{-ms-flex:3;-webkit-flex:3;flex:3}.flex-4{-ms-flex:4;-webkit-flex:4;flex:4}.flex-5{-ms-flex:5;-webkit-flex:5;flex:5}.flex-6{-ms-flex:6;-webkit-flex:6;flex:6}.flex-7{-ms-flex:7;-webkit-flex:7;flex:7}.flex-8{-ms-flex:8;-webkit-flex:8;flex:8}.flex-9{-ms-flex:9;-webkit-flex:9;flex:9}.flex-10{-ms-flex:10;-webkit-flex:10;flex:10}.flex-11{-ms-flex:11;-webkit-flex:11;flex:11}.flex-12{-ms-flex:12;-webkit-flex:12;flex:12}`,it`.block{display:block}[hidden]{display:none!important}.invisible{visibility:hidden!important}.relative{position:relative}.fit{position:absolute;top:0;right:0;bottom:0;left:0}body.fullbleed{margin:0;height:100vh}.scroll{-webkit-overflow-scrolling:touch;overflow:auto}.fixed-bottom,.fixed-left,.fixed-right,.fixed-top{position:fixed}.fixed-top{top:0;left:0;right:0}.fixed-right{top:0;right:0;bottom:0}.fixed-bottom{right:0;bottom:0;left:0}.fixed-left{top:0;bottom:0;left:0}`;customElements.define("covid-sc-data-card",class extends ot{constructor(){super(),this.title="",this.value="",this.delta=""}static get properties(){return{title:{type:String},value:{type:String},delta:{type:String}}}static get styles(){return[bh,vh,it`:host([ghost]){height:0}:host([ghost]) > .content{display:none}:host{border-radius:4px;background-color:#f0f0f0;overflow:hidden;font-family:Roboto;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;color:var(--Primary-Text-Color)}.title{height:32px;line-height:32px;background-color:var(--Background-Color-Dark)}.value{color:var(--Primary-Text-Color)}.delta{color:var(--Secondary-Text-Color)}`]}render(){return R` <div class="layout vertical flex content" style="height: 100%;"> <div class="layout vertical flex"> <div class="title"><center>${this.title}</center></div> <div class="layout vertical flex center-justified"> <div class="value"><center>${this.value}</center></div> <div class="delta"><center>${this.delta}</center></div> </div> </div> </div> `}firstUpdated(){}});customElements.define("covid-sc-page-home",class extends ot{constructor(){super(),this.countyStats=[],this.map={},this.hotspots={},this.counts={},this.chartData={countyData:[],stateData:[]},this.countyList=[],this.selectedCounty=""}static get properties(){return{title:{type:String},page:{type:String}}}static get styles(){return[bh,vh,it`:host{background-color:var(--Background-Color-White)}.app-footer{font-size:calc(12px + .5vmin);align-items:center}.app-footer a{margin-left:5px}.module-container{font-family:Roboto;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Primary-Text-Color)}.module-title{margin:10px 8px 4px 8px;text-align:left}p.hint{font-family:Roboto;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Secondary-Text-Color);margin-top:2px;width:100%}.module-content{margin:4px 8px 4px 8px}.module-footer{height:24px;font-family:Roboto;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:right;color:var(--Primary-Text-Color);margin:0 8px 4px 8px}.action-button{}.action-button{margin:8px;width:100%;min-width:288px}.min-margin > covid-sc-data-card:nth-of-type(1){margin-right:8px}.min-margin > covid-sc-data-card:nth-of-type(2){margin-left:8px}.min-margin{min-width:288px}covid-sc-data-card{min-width:136px;max-width:188px;height:94px;flex-grow:1}covid-sc-data-card[ghost]{max-width:188px;height:0;flex-grow:1}.buttonlink{text-decoration:none}mwc-button{--mdc-theme-primary:var(--Primary-Action-Color);--mdc-theme-on-primary:var(--Background-Color-White)}.data-table{border-radius:4px;overflow:hidden}.data-table-row{height:48px;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Primary-Text-Color)}.data-table-row > div{flex:1;text-align:left}.data-table-row > div:nth-of-type(1){margin-left:10px}.data-table > div:nth-of-type(even){background-color:var(--Background-Color-Dark)}.data-table > div:nth-of-type(odd){background-color:#f0f0f0}.footer{width:100%;height:41px;background-color:var(--Primary-Text-Color);font-family:Roboto;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;color:var(--Background-Color-Dark)}.footer > div > a{color:var(--Background-Color-White)}@media only screen and (min-width: 628px){.action-button{}.action-button{margin:8px;min-width:288px;flex-grow:1}covid-sc-data-card{min-width:136px;max-width:188px;height:94px;flex-grow:1}covid-sc-data-card[ghost]{max-width:188px;height:0;flex-grow:1}}mwc-list{height:200px;overflow-y:scroll}#countymenu{font-size:12px;margin:5px 0;padding:0 16px;width:100%;box-sizing:border-box;min-width:288px;max-width:392px}`]}render(){return R` <div style="background-color: var(--Background-Color-White); min-height:calc( 100% );" class="layout vertical"> <div class="layout vertical module-container"> <div class="module-title"> Get Help </div> <div class="layout horizontal center-justified wrap"> <a href="https://covidnearyou.org/" target="_blank" class="layout flex action-button buttonlink"><mwc-button alt="Get help" unelevated label="CHECK SYMPTOMS" style="width: inherit;"></mwc-button></a> <a href="/resources" class="layout flex action-button buttonlink"><mwc-button alt="Find Resources" unelevated label="FIND RESOURCES" style="width: inherit;"></mwc-button></a> </div> </div> <div class="layout vertical module-container"> <div class="module-title"> Confirmed Cases/Deaths </div> <div class="layout horizontal center-justified wrap"> <div class="layout horizontal flex action-button min-margin" style="max-width:392px;"> <covid-sc-data-card title="SC Cases" value="${this.counts&&this.counts.state&&this.counts.state.confirmed?this.counts.state.confirmed:""}" delta="${this.counts&&this.counts.state&&this.counts.state.confirmedChanged?this.counts.state.confirmedChanged:""}"></covid-sc-data-card> <covid-sc-data-card title="SC Deaths" value="${this.counts&&this.counts.state&&this.counts.state.deaths?this.counts.state.deaths:""}" delta="${this.counts&&this.counts.state&&this.counts.state.deathsChanged?this.counts.state.deathsChanged:""}"></covid-sc-data-card> </div> <div class="layout horizontal flex action-button min-margin" style="max-width:392px;"> <covid-sc-data-card title="USA Cases" value="${this.counts&&this.counts.national&&this.counts.national.confirmed?this.counts.national.confirmed:""}" delta="${this.counts&&this.counts.national&&this.counts.national.confirmedChanged?this.counts.national.confirmedChanged:""}"></covid-sc-data-card> <covid-sc-data-card title="USA Deaths" value="${this.counts&&this.counts.national&&this.counts.national.deaths?this.counts.national.deaths:""}" delta="${this.counts&&this.counts.national&&this.counts.national.deathsChanged?this.counts.national.deathsChanged:""}"></covid-sc-data-card> </div> </div> <div class="module-footer"> ${this.counts&&this.counts.national&&this.counts.national.lastUpdate?`Updated ${this.counts.national.lastUpdate}`:""} </div> </div> <div class="layout vertical module-container"> <div class="module-title"> Confirmed Cases/Deaths By Region </div> <covid-sc-map .map="${this.map}" .hotspots="${this.hotspots}" class="module-content" style="height:400px; box-sizing:border-box; width: calc(100%-8px);"></covid-sc-map> <div class="module-footer"> ${this.counts&&this.counts.national&&this.counts.national.lastUpdate?`Updated ${this.counts.national.lastUpdate}`:""} </div> </div> <mwc-select id="countymenu" outlined label="County" @change="${this.changeSelectedCounty}"> <mwc-list-item value="top3" selected="selected">Top 3 (by total cases)</mwc-list-item> ${this.countyList.map(t=>R` <mwc-list-item value="${t}">${t}</mwc-list-item> `)} </mwc-select> <div class="layout vertical module-container"> <div class="module-title"> Day-to-Day Confirmed Case Numbers <p class="hint"> View South Carolina’s confirmed cases compared to the confirmed cases of individual counties </p> </div> <div class="layout vertical data-table module-content"> <canvas id="chart" width="400" height="230"></canvas> </div> <div class="module-footer"> ${this.counts&&this.counts.national&&this.counts.national.lastUpdate?`Updated ${this.counts.national.lastUpdate}`:""} </div> </div> <div class="layout vertical module-container"> <div class="module-title"> Confirmed Case Growth Factor By County </div> <div class="layout vertical data-table module-content"> <div class="layout horizontal center data-table-row"> <div><b>County</b></div> <div class="layout horizontal center data-table-row"> <div><b>Growth Rate</b></div> <div><b>Change</b></div> </div> </div> ${this.countyStats.map(t=>R` <div class="layout horizontal center data-table-row"> <div>${t.County}</div> <div class="layout horizontal center data-table-row"> <div>${t.Confirmed_POPADJ_GF}</div> <div>(${t.Confirmed_POPADJ_GF_Change})</div> </div> </div> `)} </div> <div class="module-footer"> ${this.counts&&this.counts.national&&this.counts.national.lastUpdate?`Updated ${this.counts.national.lastUpdate}`:""} </div> </div> <div class="layout flex"> </div> <div class="footer layout vertical center-justified"> <div> Powered by <a target="_blank" href="https://www.hank.ai/?referrer=covidsc" class="buttonlink">Hank.ai</a> and <a target="_blank" href="https://www.krum.io/?referrer=covidsc" class="buttonlink">Krumware</a> </div> </div> </div> `}firstUpdated(){this.getData()}changeSelectedCounty(t){this.selectedCounty=t.target.selected.value,"top3"===this.selectedCounty?this.updateChart():this.countyData&&this.countyData[this.selectedCounty]&&(this.chartData.countyData=this.countyData[this.selectedCounty],this.updateChart())}updateChart(){const t=getComputedStyle(this).getPropertyValue("--Primary-Action-Color"),e=getComputedStyle(this).getPropertyValue("--Theme-Color");if(this.myChart){if(this.myChart.data.datasets=[],this.myChart.data.datasets.push({label:"South Carolina",backgroundColor:e,borderColor:e,fill:!1,data:this.chartData.stateData}),"top3"===this.selectedCounty){const e=[];Object.keys(this.countyData).forEach(t=>{const i=this.countyData[t].length,n=this.countyData[t][i-1].y;let o=!1;for(let i=0;i<e.length;i+=1)if(n>e[i].numCases){e.splice(i,0,{name:t,numCases:n}),o=!0;break}o&&e.length>3?e.splice(3,1):!o&&e.length<3&&e.push({name:t,numCases:n})});const i=["#B0335C",t,"#FFA8C5"];for(let t=0;t<e.length;t+=1)this.myChart.data.datasets.push({label:e[t].name,backgroundColor:i[t],borderColor:i[t],fill:!1,data:this.countyData[e[t].name]})}else this.myChart.data.datasets.push({label:this.selectedCounty,backgroundColor:t,borderColor:t,fill:!1,data:this.chartData.countyData});this.myChart.update()}}initChart(){const t=this.shadowRoot.getElementById("chart"),e={type:"line",data:{datasets:[]},options:{tooltips:{enable:!0,enabled:!0,display:!0,callbacks:{title(t){const e=t[0].label.split(",");return`${e[0]},${e[1]}`}},backgroundColor:"#FFF",titleFontSize:16,titleFontColor:"#0066ff",bodyFontColor:"#000",bodyFontSize:14,displayColors:!1},legend:{display:!0,position:"bottom",align:"start",labels:{boxWidth:12}},responsive:!0,title:{text:"Confirmed Cases"},scales:{x:{type:"time",time:{unit:"day",minUnit:"day",round:"day",distribution:"series",displayFormats:{day:"M/d"}}},y:{display:!0}}}};this.myChart=new Xr(t,e),this.updateChart()}getData(){const t=["SC"],e={},i={},n=new Date;n.setDate(n.getDate()-1);const o=`https://aws.covidsc.com/data/covid_latest_SC.json?v=${(new Date).getTime()}`,r=`https://aws.covidsc.com/data/covid_latest_SC_FULL.json?v=${(new Date).getTime()}`;function a(t){return t.toLocaleString(void 0,{maximumFractionDigits:0})}fetch(r).then(t=>t.json()).then(t=>{const e=t.filter(t=>{if("USA"!==t.Country||"SC"!==t.State)return!1;try{if(new Date(t.Date).getTime()<(new Date).getTime()-12096e5)return!1}catch(t){return!1}return!0});this.stateData=e.filter(t=>"ALL"===t.County).reduce((t,e)=>{t[e.County]||(t[e.County]=[]);try{t[e.County].unshift({t:new Date(e.LastUpdate).toISOString().substring(0,10),y:e.Confirmed})}catch(t){}return t},{}),this.chartData.stateData=this.stateData.ALL,this.countyData=e.filter(t=>"ALL"!==t.County).reduce((t,e)=>{t[e.County]||(t[e.County]=[]);try{t[e.County].unshift({t:new Date(e.LastUpdate).toISOString().substring(0,10),y:e.Confirmed})}catch(t){}return t},{}),this.countyList=Object.keys(this.countyData).reverse(),this.selectedCounty="top3",this.initChart(),this.requestUpdate()}),fetch(o).then(t=>t.json()).then(n=>{let o=[];n.forEach(n=>{n.LastUpdate=n.LastUpdate.replace(" ","T"),"USA"===n.Country&&t.includes(n.State)&&"ALL"!==n.County&&(o.push({State:n.State,County:n.County,Confirmed_POPADJ_GF:n.Confirmed_POPADJ_GF,Confirmed_POPADJ_GF_Change:n.Confirmed_POPADJ_GF_Change}),n.Confirmed>0&&(e[n.County]={center:{lat:n.Lat,lng:n.Long},population:500*n.Confirmed,header:`${n.County}, ${n.State} Confirmed Cases`,content:`${n.Confirmed} confirmed cases (+${n.Confirmed_Change} since yesterday)`,color:"#FF0000",strokeOpacity:.8}),n.Deaths>0&&(i[n.County]={center:{lat:n.Lat,lng:n.Long},population:700*n.Deaths,header:`${n.County}, SC Deaths`,content:`${n.Deaths} deaths (+${n.Deaths_Change} since yesterday)`,color:"#0000FF",strokeOpacity:.8})),"USA"===n.Country&&"SC"===n.State&&"ALL"===n.County&&(this.counts.state={confirmed:a(n.Confirmed),deaths:a(n.Deaths),confirmedChanged:a(n.Confirmed_Change),deathsChanged:a(n.Deaths_Change)},n.Confirmed_Change>0&&(this.counts.state.confirmedChanged=`+${this.counts.state.confirmedChanged}`),n.Deaths_Change>0&&(this.counts.state.deathsChanged=`+${this.counts.state.deathsChanged}`),this.counts.state.lastUpdate=new Date(n.LastUpdate).toLocaleDateString()),"USA"===n.Country&&"ALL"===n.State&&(this.counts.national={confirmed:a(n.Confirmed),deaths:a(n.Deaths),confirmedChanged:a(n.Confirmed_Change),deathsChanged:a(n.Deaths_Change)},n.Confirmed_Change>0&&(this.counts.national.confirmedChanged=`+${this.counts.national.confirmedChanged}`),n.Deaths_Change>0&&(this.counts.national.deathsChanged=`+${this.counts.national.deathsChanged}`),this.counts.national.lastUpdate=new Date(n.LastUpdate).toLocaleDateString())}),o=o.sort((t,e)=>e.Confirmed_POPADJ_GF-t.Confirmed_POPADJ_GF);for(let t=0;t<o.length;t+=1){const e=o[t];e.Confirmed_POPADJ_GF>10&&(e.County+=" County",e.Confirmed_POPADJ_GF=e.Confirmed_POPADJ_GF.toFixed(2),e.Confirmed_POPADJ_GF_Change=e.Confirmed_POPADJ_GF_Change.toFixed(2),e.Confirmed_POPADJ_GF_Change>=0&&(e.Confirmed_POPADJ_GF_Change=`+${e.Confirmed_POPADJ_GF_Change}`),this.countyStats=[...this.countyStats,e])}this.hotspots={confirmedCircles:e,deathCircles:i},this.requestUpdate()})}});class yh extends ot{constructor(){super(...arguments),this.disabled=!1,this.icon="",this.label=""}render(){return R`<button .ripple="${At()}" class="mdc-icon-button" aria-label="${this.label||this.icon}" ?disabled="${this.disabled}"> <i class="material-icons">${this.icon}</i> <slot></slot> </button>`}}lt([Z({type:Boolean,reflect:!0})],yh.prototype,"disabled",void 0),lt([Z({type:String})],yh.prototype,"icon",void 0),lt([Z({type:String})],yh.prototype,"label",void 0);
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  const _h=it`.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:0;background-color:transparent;fill:currentColor;color:inherit;font-size:24px;text-decoration:none;cursor:pointer;user-select:none;width:48px;height:48px;padding:12px}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button:disabled{color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(.4,0,.2,1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity,0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity,0)}to{opacity:0}}.mdc-icon-button{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent}.mdc-icon-button::before,.mdc-icon-button::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-icon-button::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1}.mdc-icon-button.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-icon-button.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-icon-button.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-icon-button.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-icon-button.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-icon-button::before,.mdc-icon-button::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-icon-button.mdc-ripple-upgraded::before,.mdc-icon-button.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-icon-button.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-icon-button::before,.mdc-icon-button::after{background-color:#000}.mdc-icon-button:hover::before{opacity:.04}.mdc-icon-button.mdc-ripple-upgraded--background-focused::before,.mdc-icon-button:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12}.mdc-icon-button:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-icon-button:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12}.mdc-icon-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:0.12}.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:400;font-style:normal;font-size:var(--mdc-icon-size,24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{display:inline-block;outline:0}:host([disabled]){pointer-events:none}:host,.mdc-icon-button{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size,48px);height:var(--mdc-icon-button-size,48px);padding:calc((var(--mdc-icon-button-size,48px) - var(--mdc-icon-size,24px))/ 2)}.mdc-icon-button>i{position:absolute;top:0;padding-top:inherit}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block;width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px)}.mdc-ripple-upgraded:focus::before,.mdc-ripple-upgraded:focus::after{background-color:currentColor;background-color:var(--mdc-theme-on-primary,currentColor);opacity:.12;opacity:var(--mdc-icon-button-ripple-opacity,.12)}`
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */;let xh=class extends yh{};xh.styles=_h,xh=lt([G("mwc-icon-button")],xh);customElements.define("covid-sc-page-symptoms",class extends ot{constructor(){super()}static get properties(){return{}}static get styles(){return[bh,vh,it`:host{background-color:var(--Background-Color-White)}.module-container{font-family:Roboto;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Primary-Text-Color);margin:4px 8px 4px 8px}.module-title{margin:10px 8px 4px 8px;text-align:left;height:24px;font-family:Roboto;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Primary-Text-Color)}.module-content{margin:4px 8px 4px 8px}.module-footer{height:24px;font-family:Roboto;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:right;color:var(--Primary-Text-Color);margin:0 8px 4px 8px}.action-button{}.action-button{margin:8px;width:100%;min-width:288px}.min-margin > covid-sc-data-card:nth-of-type(1){margin-right:8px}.min-margin > covid-sc-data-card:nth-of-type(2){margin-left:8px}.min-margin{min-width:288px}covid-sc-data-card{min-width:136px;max-width:188px;height:94px;flex-grow:1}covid-sc-data-card[ghost]{max-width:188px;height:0;flex-grow:1}.buttonlink{text-decoration:none;color:inherit}mwc-button{--mdc-theme-primary:var(--Primary-Action-Color);--mdc-theme-on-primary:var(--Background-Color-White)}.footer{width:100%;height:41px;background-color:var(--Primary-Text-Color);font-family:Roboto;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;color:var(--Background-Color-Dark)}.footer > div > a{color:var(--Background-Color-White)}.nav-header{width:100%;height:48px;background-color:#616161;font-family:Roboto;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Background-Color-White)}a.colored{width:288px;height:24px;font-family:Roboto;font-size:16px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Primary-Action-Color);text-decoration:none}h1{height:24px;font-family:Roboto;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Primary-Text-Color)}h2{font-family:Roboto;font-size:16px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Primary-Action-Color)}p.hint{width:604px;font-family:Roboto;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Secondary-Text-Color);margin-top:2px;width:100%}@media only screen and (min-width: 628px){.action-button{}.action-button{margin:8px;min-width:288px;flex-grow:1}covid-sc-data-card{min-width:136px;max-width:188px;height:94px;flex-grow:1}covid-sc-data-card[ghost]{max-width:188px;height:0;flex-grow:1}}`]}render(){return R` <div style="min-height:calc( 100% - 41px );" class="layout vertical"> <div class="nav-header layout horizontal start"> <div> <a href="/" class="buttonlink"> <mwc-icon-button icon="arrow_back" @click="${this.closeLandbot}"></mwc-icon-button> </a> </div> <div class="layout horizontal self-center"> Report your symptoms </div> </div> <div class="layout vertical flex" id="chatWindow"></div> </div> <div class="footer layout vertical center-justified" style="box-sizing:border-box;"> <div> Powered by <a target="_blank" href="https://www.hank.ai/?referrer=covidsc" class="buttonlink">Hank.ai</a> and <a target="_blank" href="https://www.krum.io/?referrer=covidsc" class="buttonlink">Krumware</a> </div> </div> `}loadAndLaunchOrbita(){if(void 0===window.OrbitaChatBotPlugin){const t=document.createElement("script");t.src="/src/scripts/orbita.js",t.onload=function(){this.initChat()}.bind(this),document.body.append(t)}else this.initChat()}initChat(){const t="https://engage.orbita.cloud/oeapi",e={domId:"chatWindow",domObject:this.shadowRoot.getElementById("chatWindow"),launchWord:"open",name:"Orbita",serverUrl:`${t}/bot/hub/COVIDSC.COM`,appSettingURL:`${t}/bot/hub/settingsCOVIDSC.COM`,theme:"inline",oauthserverUrl:t,settings:{header:{logoUrl:"/chatbot/v2/assets/branding-mark.svg",headerText:"COVID-19",subHeaderText:"Chatbot powered by Orbita",speakerOnIconUrl:"/chatbot/v2/assets/volume-on.svg",speakerMuteIconUrl:"/chatbot/v2/assets/volume-muted.svg",closeIconUrl:"/chatbot/v2/assets/x-header.svg"},banner:{title:"''Click here'' - to read the Disclaimer",message:"<p>&nbsp;</p><p>&nbsp;</p><p><strong>Please Note:</strong> I use sources like the U.S. Center for Disease Control (CDC) and others to ensure I have the latest information for you, but I can’t guarantee the accuracy of this information.</p><p>&nbsp;</p><p>Also, I’m not a substitute for the judgment of a healthcare professional and not intended for use in the diagnosis or treatment of coronavirus (COVID-19) or any other diseases or conditions.</p><p>&nbsp;</p><p>If you suspect a life-threatening emergency, please call 911 or your local emergency response immediately.</p><p>&nbsp;</p><p><a target='_blank' href='https://orbita.ai/orbita-privacy-policy/'>Privacy Policy</a><p>&nbsp;</p>"},profile:{defaultAvatorUrl:""},footer:{menuIconUrl:"/chatbot/v2/assets/plus-button.svg",menuIconDiabledUrl:"/chatbot/v2/assets/plus-btn-disabled.svg",micIconUrl:"/chatbot/v2/assets/mic.svg",micOnIconUrl:"/chatbot/v2/assets/mic-on.svg",sendButtonIconUrl:"/chatbot/v2/assets/button-circular-01.svg",sendButtonDisabledIconUrl:"/chatbot/v2/assets/send-circular-01-disabled.svg"},botAvatarUrl:"/chatbot/v2/assets/orbita-icon.svg",animationAvatarImageUrl:"/chatbot/v2/assets/avatar_loading.gif",animationImageUrl:"/chatbot/v2/assets/msg_loading.gif"}};window.OrbitaChatBotPlugin&&window.OrbitaChatBotPlugin.initPlugin(e)}firstUpdated(){this.landbotOpened=!1,this.loadAndLaunchOrbita()}});customElements.define("covid-sc-page-resources",class extends ot{constructor(){super()}static get properties(){return{}}static get styles(){return[bh,vh,it`:host{background-color:var(--Background-Color-White)}.module-container{font-family:Roboto;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Primary-Text-Color);margin:4px 8px 4px 8px}.module-title{margin:10px 8px 4px 8px;text-align:left;height:24px;font-family:Roboto;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Primary-Text-Color)}.module-content{margin:4px 8px 4px 8px}.module-footer{height:24px;font-family:Roboto;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:right;color:var(--Primary-Text-Color);margin:0 8px 4px 8px}.note-box{border-radius:4px;background-color:var(--Background-Color-Light);padding:16px;margin:16px 16px 0}.note-title{font-size:20px;font-weight:700;margin-bottom:8px}.note-body{font-size:16px;font-weight:400;margin-bottom:10px}.note-button{max-width:392px}.action-button{}.action-button{margin:8px;width:100%;min-width:288px}.min-margin > covid-sc-data-card:nth-of-type(1){margin-right:8px}.min-margin > covid-sc-data-card:nth-of-type(2){margin-left:8px}.min-margin{min-width:288px}covid-sc-data-card{min-width:136px;max-width:188px;height:94px;flex-grow:1}covid-sc-data-card[ghost]{max-width:188px;height:0;flex-grow:1}.buttonlink{text-decoration:none;color:inherit}mwc-button{--mdc-theme-primary:var(--Primary-Action-Color);--mdc-theme-on-primary:var(--Background-Color-White)}.footer{width:100%;height:41px;background-color:var(--Primary-Text-Color);font-family:Roboto;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;color:var(--Background-Color-Dark)}.footer > div > a{color:var(--Background-Color-White)}.nav-header{width:100%;height:48px;background-color:#616161;font-family:Roboto;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Background-Color-White)}a.colored{width:288px;height:24px;font-family:Roboto;font-size:16px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Primary-Action-Color);text-decoration:none}h1{height:24px;font-family:Roboto;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Primary-Text-Color)}h2{font-family:Roboto;font-size:16px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Primary-Action-Color)}p.hint{width:604px;font-family:Roboto;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Secondary-Text-Color);margin-top:2px;width:100%}@media only screen and (min-width: 628px){.action-button{}.action-button{margin:8px;min-width:288px;flex-grow:1}covid-sc-data-card{min-width:136px;max-width:188px;height:94px;flex-grow:1}covid-sc-data-card[ghost]{max-width:188px;height:0;flex-grow:1}}`]}render(){return R` <div style="min-height:calc( 100% );" class="layout vertical"> <div class="nav-header layout horizontal start"> <div> <a href="/" class="buttonlink"> <mwc-icon-button icon="arrow_back" @click="${this.closeLandbot}"></mwc-icon-button> </a> </div> <div class="layout horizontal self-center"> Find Resources </div> </div> <div class="layout vertical self-stretch"> <div class="layout vertical note-box"> <div class="note-title"> Not sure where to start? </div> <div class="note-body"> Our chatbot can help find the resources that are right for you </div> <mwc-button alt="Get started" unelevated label="GET STARTED" class="note-button" @click="${this.openLandbot}"></mwc-button> </div> <div class="layout vertical module-container"> <div class="module-title"> Learn more about COVID-19 </div> <div class="module-content"> <a class="colored" target="_blank" href="https://www.scdhec.gov/infectious-diseases/viruses/coronavirus-disease-2019-covid-19?referrer=covidsc"><b>SC DHEC</b></a> <p class="hint"> Learn more about COVID-19 and how to prevent the spread of infectious diseases. </p> </div> <div class="module-content"> <a class="colored" target="_blank" href="https://emcrit.org/ibcc/covid19/?referrer=covidsc"><b>IBCC</b></a> <p class="hint"> In-depth information about the COVID-19 virus from the Internet Book of Critical Care (IBCC) </p> </div> </div> <div class="layout vertical module-container"> <div class="module-title"> Employees </div> <div class="module-content"> <a class="colored" target="_blank" href="https://dew.sc.gov/covid-hub?referrer=covidsc"><b>COVID-19 Resource Hub</b></a> <p class="hint"> Learn about your rights as an employee and how you can get financial aid during this time. </p> </div> </div> <div class="layout vertical module-container"> <div class="module-title"> Small Businesses </div> <div class="module-content"> <a class="colored" target="_blank" href="https://scsbdc.ecenterdirect.com/signup?referrer=covidsc"><b>SC SBDC</b></a> <p class="hint"></p> </div> </div> </div> <div class="layout flex"></div> <div class="footer layout vertical center-justified"> <div> Powered by <a target="_blank" href="https://www.hank.ai/?referrer=covidsc" class="buttonlink">Hank.ai</a> and <a target="_blank" href="https://www.krum.io/?referrer=covidsc" class="buttonlink">Krumware</a> </div> </div> </div> `}openLandbot(){void 0!==window.LandbotPopup?window.myLandbot.open():this.loadAndLaunchLandbot()}closeLandbot(){this.landbotOpened||(window.myLandbot.destroy(),delete window.myLandbot)}loadAndLaunchLandbot(){if(void 0===window.LandbotPopup){const t=document.createElement("script");t.src="https://static.landbot.io/landbot-widget/landbot-widget-1.0.0.js",t.onload=function(){this.launchLandbot()}.bind(this),document.body.append(t)}else this.launchLandbot()}launchLandbot(){window.myLandbot||(window.myLandbot=new LandbotPopup({index:"https://landbot.io/u/H-425846-85U6RSZFC8RLG2G0/index.html",launcherOptions:{enable:!1}}),window.myLandbot.on("landbot-widget-open",()=>{this.landbotOpened=!0,navigator.geolocation&&navigator.geolocation.getCurrentPosition(t=>{const e=t.coords.latitude,i=t.coords.longitude;window.myLandbot.send("landbot-custom-data",{latitude:e,longitude:i})})}))}firstUpdated(){this.landbotOpened=!1,this.loadAndLaunchLandbot()}});
  /**
   * @license
   * Copyright 2018 Google Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */
  var wh={FIXED_CLASS:"mdc-top-app-bar--fixed",FIXED_SCROLLED_CLASS:"mdc-top-app-bar--fixed-scrolled",SHORT_CLASS:"mdc-top-app-bar--short",SHORT_COLLAPSED_CLASS:"mdc-top-app-bar--short-collapsed",SHORT_HAS_ACTION_ITEM_CLASS:"mdc-top-app-bar--short-has-action-item"},Sh={DEBOUNCE_THROTTLE_RESIZE_TIME_MS:100,MAX_TOP_APP_BAR_HEIGHT:128},Ch={ACTION_ITEM_SELECTOR:".mdc-top-app-bar__action-item",NAVIGATION_EVENT:"MDCTopAppBar:nav",NAVIGATION_ICON_SELECTOR:".mdc-top-app-bar__navigation-icon",ROOT_SELECTOR:".mdc-top-app-bar",TITLE_SELECTOR:".mdc-top-app-bar__title"},Th=function(t){function e(i){return t.call(this,st({},e.defaultAdapter,i))||this}return at(e,t),Object.defineProperty(e,"strings",{get:function(){return Ch},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return wh},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Sh},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},getTopAppBarHeight:function(){return 0},notifyNavigationIconClicked:function(){},getViewportScrollY:function(){return 0},getTotalActionItems:function(){return 0}}},enumerable:!0,configurable:!0}),e.prototype.handleTargetScroll=function(){},e.prototype.handleWindowResize=function(){},e.prototype.handleNavigationClick=function(){this.adapter_.notifyNavigationIconClicked()},e}(mt),Eh=function(t){function e(e){var i=t.call(this,e)||this;return i.wasDocked_=!0,i.isDockedShowing_=!0,i.currentAppBarOffsetTop_=0,i.isCurrentlyBeingResized_=!1,i.resizeThrottleId_=0,i.resizeDebounceId_=0,i.lastScrollPosition_=i.adapter_.getViewportScrollY(),i.topAppBarHeight_=i.adapter_.getTopAppBarHeight(),i}return at(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.adapter_.setStyle("top","")},e.prototype.handleTargetScroll=function(){var t=Math.max(this.adapter_.getViewportScrollY(),0),e=t-this.lastScrollPosition_;this.lastScrollPosition_=t,this.isCurrentlyBeingResized_||(this.currentAppBarOffsetTop_-=e,this.currentAppBarOffsetTop_>0?this.currentAppBarOffsetTop_=0:Math.abs(this.currentAppBarOffsetTop_)>this.topAppBarHeight_&&(this.currentAppBarOffsetTop_=-this.topAppBarHeight_),this.moveTopAppBar_())},e.prototype.handleWindowResize=function(){var t=this;this.resizeThrottleId_||(this.resizeThrottleId_=setTimeout((function(){t.resizeThrottleId_=0,t.throttledResizeHandler_()}),Sh.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)),this.isCurrentlyBeingResized_=!0,this.resizeDebounceId_&&clearTimeout(this.resizeDebounceId_),this.resizeDebounceId_=setTimeout((function(){t.handleTargetScroll(),t.isCurrentlyBeingResized_=!1,t.resizeDebounceId_=0}),Sh.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)},e.prototype.checkForUpdate_=function(){var t=-this.topAppBarHeight_,e=this.currentAppBarOffsetTop_<0,i=this.currentAppBarOffsetTop_>t,n=e&&i;if(n)this.wasDocked_=!1;else{if(!this.wasDocked_)return this.wasDocked_=!0,!0;if(this.isDockedShowing_!==i)return this.isDockedShowing_=i,!0}return n},e.prototype.moveTopAppBar_=function(){if(this.checkForUpdate_()){var t=this.currentAppBarOffsetTop_;Math.abs(t)>=this.topAppBarHeight_&&(t=-Sh.MAX_TOP_APP_BAR_HEIGHT),this.adapter_.setStyle("top",t+"px")}},e.prototype.throttledResizeHandler_=function(){var t=this.adapter_.getTopAppBarHeight();this.topAppBarHeight_!==t&&(this.wasDocked_=!1,this.currentAppBarOffsetTop_-=this.topAppBarHeight_-t,this.topAppBarHeight_=t),this.handleTargetScroll()},e}(Th);const kh=Bt?{passive:!0}:void 0;class Ah extends Ut{constructor(){super(...arguments),this.mdcFoundationClass=Th,this.centerTitle=!1,this.handleTargetScroll=()=>{this.mdcFoundation.handleTargetScroll()},this.handleNavigationClick=()=>{this.mdcFoundation.handleNavigationClick()}}get scrollTarget(){return this._scrollTarget||window}set scrollTarget(t){this.unregisterScrollListener();const e=this.scrollTarget;this._scrollTarget=t,this.updateRootPosition(),this.requestUpdate("scrollTarget",e),this.registerScrollListener()}updateRootPosition(){if(this.mdcRoot){const t=this.scrollTarget===window;this.mdcRoot.style.position=t?"":"absolute"}}render(){let t=R`<span class="mdc-top-app-bar__title"><slot name="title"></slot></span>`;return this.centerTitle&&(t=R`<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-center">${t}</section>`),R` <header class="mdc-top-app-bar ${Mt(this.barClasses())}"> <div class="mdc-top-app-bar__row"> <section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start" id="navigation"> <slot name="navigationIcon" @click="${this.handleNavigationClick}"></slot> ${this.centerTitle?null:t} </section> ${this.centerTitle?t:null} <section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-end" id="actions" role="toolbar"> <slot name="actionItems"></slot> </section> </div> </header> <div class="${Mt(this.contentClasses())}"> <slot></slot> </div> `}createAdapter(){return Object.assign(Object.assign({},Rt(this.mdcRoot)),{setStyle:(t,e)=>this.mdcRoot.style.setProperty(t,e),getTopAppBarHeight:()=>this.mdcRoot.clientHeight,notifyNavigationIconClicked:()=>{this.dispatchEvent(new Event(Ch.NAVIGATION_EVENT,{bubbles:!0,cancelable:!0}))},getViewportScrollY:()=>this.scrollTarget instanceof Window?this.scrollTarget.pageYOffset:this.scrollTarget.scrollTop,getTotalActionItems:()=>this._actionItemsSlot.assignedNodes({flatten:!0}).length})}registerListeners(){this.registerScrollListener()}unregisterListeners(){this.unregisterScrollListener()}registerScrollListener(){this.scrollTarget.addEventListener("scroll",this.handleTargetScroll,kh)}unregisterScrollListener(){this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll)}firstUpdated(){super.firstUpdated(),this.updateRootPosition(),this.registerListeners()}disconnectedCallback(){super.disconnectedCallback(),this.unregisterListeners()}}lt([X(".mdc-top-app-bar")],Ah.prototype,"mdcRoot",void 0),lt([X('slot[name="actionItems"]')],Ah.prototype,"_actionItemsSlot",void 0),lt([Z({type:Boolean})],Ah.prototype,"centerTitle",void 0),lt([Z()],Ah.prototype,"scrollTarget",null);class Ih extends Ah{constructor(){super(...arguments),this.mdcFoundationClass=Eh,this.prominent=!1,this.dense=!1,this.handleResize=()=>{this.mdcFoundation.handleWindowResize()}}barClasses(){return{"mdc-top-app-bar--dense":this.dense,"mdc-top-app-bar--prominent":this.prominent,"center-title":this.centerTitle}}contentClasses(){return{"mdc-top-app-bar--fixed-adjust":!this.dense&&!this.prominent,"mdc-top-app-bar--dense-fixed-adjust":this.dense&&!this.prominent,"mdc-top-app-bar--prominent-fixed-adjust":!this.dense&&this.prominent,"mdc-top-app-bar--dense-prominent-fixed-adjust":this.dense&&this.prominent}}registerListeners(){super.registerListeners(),window.addEventListener("resize",this.handleResize,kh)}unregisterListeners(){super.unregisterListeners(),window.removeEventListener("resize",this.handleResize)}}lt([Z({type:Boolean,reflect:!0})],Ih.prototype,"prominent",void 0),lt([Z({type:Boolean,reflect:!0})],Ih.prototype,"dense",void 0);
  /**
  @license
  Copyright 2018 Google Inc. All Rights Reserved.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  const Oh=it`.mdc-top-app-bar{background-color:#6200ee;background-color:var(--mdc-theme-primary,#6200ee);color:#fff;display:flex;position:fixed;flex-direction:column;justify-content:space-between;box-sizing:border-box;width:100%;z-index:4}.mdc-top-app-bar .mdc-top-app-bar__action-item,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon{color:#fff;color:var(--mdc-theme-on-primary,#fff)}.mdc-top-app-bar .mdc-top-app-bar__action-item::before,.mdc-top-app-bar .mdc-top-app-bar__action-item::after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon::after{background-color:#fff;background-color:var(--mdc-theme-on-primary,#fff)}.mdc-top-app-bar .mdc-top-app-bar__action-item:hover::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:hover::before{opacity:.08}.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-upgraded--background-focused::before,.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded):focus::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-upgraded--background-focused::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.24}.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded)::after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded):active::after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.24}.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-upgraded,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:0.24}.mdc-top-app-bar__row{display:flex;position:relative;box-sizing:border-box;width:100%;height:64px}.mdc-top-app-bar__section{display:inline-flex;flex:1 1 auto;align-items:center;min-width:0;padding:8px 12px;z-index:1}.mdc-top-app-bar__section--align-start{justify-content:flex-start;order:-1}.mdc-top-app-bar__section--align-end{justify-content:flex-end;order:1}.mdc-top-app-bar__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-headline6-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size,1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height,2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight,500);letter-spacing:.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing,.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform,inherit);padding-left:20px;padding-right:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;z-index:1}[dir=rtl] .mdc-top-app-bar__title,.mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:20px}.mdc-top-app-bar--short-collapsed{border-radius:0 0 24px 0}[dir=rtl] .mdc-top-app-bar--short-collapsed,.mdc-top-app-bar--short-collapsed[dir=rtl]{border-radius:0 0 0 24px}.mdc-top-app-bar--short{top:0;right:auto;left:0;width:100%;transition:width 250ms cubic-bezier(.4,0,.2,1)}[dir=rtl] .mdc-top-app-bar--short,.mdc-top-app-bar--short[dir=rtl]{right:0;left:auto}.mdc-top-app-bar--short .mdc-top-app-bar__row{height:56px}.mdc-top-app-bar--short .mdc-top-app-bar__section{padding:4px}.mdc-top-app-bar--short .mdc-top-app-bar__title{transition:opacity .2s cubic-bezier(.4,0,.2,1);opacity:1}.mdc-top-app-bar--short-collapsed{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);width:56px;transition:width .3s cubic-bezier(.4,0,.2,1)}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__title{display:none}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__action-item{transition:padding 150ms cubic-bezier(.4,0,.2,1)}.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item{width:112px}.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end{padding-left:0;padding-right:12px}[dir=rtl] .mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end,.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end[dir=rtl]{padding-left:12px;padding-right:0}.mdc-top-app-bar--dense .mdc-top-app-bar__row{height:48px}.mdc-top-app-bar--dense .mdc-top-app-bar__section{padding:0 4px}.mdc-top-app-bar--dense .mdc-top-app-bar__title{padding-left:12px;padding-right:0}[dir=rtl] .mdc-top-app-bar--dense .mdc-top-app-bar__title,.mdc-top-app-bar--dense .mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:12px}.mdc-top-app-bar--prominent .mdc-top-app-bar__row{height:128px}.mdc-top-app-bar--prominent .mdc-top-app-bar__title{align-self:flex-end;padding-bottom:2px}.mdc-top-app-bar--prominent .mdc-top-app-bar__action-item,.mdc-top-app-bar--prominent .mdc-top-app-bar__navigation-icon{align-self:flex-start}.mdc-top-app-bar--fixed{transition:box-shadow .2s linear}.mdc-top-app-bar--fixed-scrolled{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);transition:box-shadow .2s linear}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__row{height:96px}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__section{padding:0 12px}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title{padding-left:20px;padding-right:0;padding-bottom:9px}[dir=rtl] .mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title,.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:20px}.mdc-top-app-bar--fixed-adjust{padding-top:64px}.mdc-top-app-bar--dense-fixed-adjust{padding-top:48px}.mdc-top-app-bar--short-fixed-adjust{padding-top:56px}.mdc-top-app-bar--prominent-fixed-adjust{padding-top:128px}.mdc-top-app-bar--dense-prominent-fixed-adjust{padding-top:96px}@media(max-width: 599px){.mdc-top-app-bar__row{height:56px}.mdc-top-app-bar__section{padding:4px}.mdc-top-app-bar--short{transition:width .2s cubic-bezier(.4,0,.2,1)}.mdc-top-app-bar--short-collapsed{transition:width 250ms cubic-bezier(.4,0,.2,1)}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end{padding-left:0;padding-right:12px}[dir=rtl] .mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end,.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end[dir=rtl]{padding-left:12px;padding-right:0}.mdc-top-app-bar--prominent .mdc-top-app-bar__title{padding-bottom:6px}.mdc-top-app-bar--fixed-adjust{padding-top:56px}}:host{display:block}.mdc-top-app-bar{color:#fff;color:var(--mdc-theme-on-primary,#fff)}.mdc-top-app-bar--prominent #navigation ::slotted(*),.mdc-top-app-bar--prominent #actions ::slotted(*){align-self:flex-start}#navigation ::slotted(*),#actions ::slotted(*){--mdc-icon-button-ripple-opacity:0.24}.mdc-top-app-bar--short-collapsed #actions ::slotted(*){transition:padding 150ms cubic-bezier(.4,0,.2,1)}.mdc-top-app-bar__section--align-center{justify-content:center}.mdc-top-app-bar__section--align-center .mdc-top-app-bar__title{padding-left:0;padding-right:0}.center-title .mdc-top-app-bar__section--align-start,.center-title .mdc-top-app-bar__section--align-end{flex-basis:0}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__section--align-center .mdc-top-app-bar__title{padding-left:0;padding-right:0}.mdc-top-app-bar--fixed-scrolled{box-shadow:var(--mdc-top-app-bar-fixed-box-shadow,0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12))}`;let Mh=class extends Ih{};Mh.styles=Oh,Mh=lt([G("mwc-top-app-bar")],Mh);class Dh extends ot{constructor(){var t;super(),t=t=>this.handleNavigation(t),document.body.addEventListener("click",e=>{if(e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey)return;const i=e.composedPath().filter(t=>"A"===t.tagName)[0];if(!i||i.target||i.hasAttribute("download")||"external"===i.getAttribute("rel"))return;const n=i.href;if(!n||-1!==n.indexOf("mailto:"))return;const o=window.location,r=o.origin||o.protocol+"//"+o.host;0===n.indexOf(r)&&(e.preventDefault(),n!==o.href&&(window.history.pushState({},"",n),t(o,e)))}),window.addEventListener("popstate",e=>t(window.location,e)),t(window.location,null),this.location="/"}static get properties(){return{title:{type:String},page:{type:String}}}static get styles(){return[bh,vh,it`:root{}:host{font-size:calc(10px + 2vmin);color:#1a2b42;margin:0 auto}.main{margin-left:auto;margin-right:auto;flex-grow:1;align-items:center;max-width:816px;min-height:calc(100% - 48px);margin-bottom:-48px;background-color:#fff}.app-footer{font-size:calc(12px + .5vmin);align-items:center}.app-footer a{margin-left:5px}.action-button{margin:8px;width:288px}.module-container{font-family:Roboto;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#393939}.module-title{margin:10px 8px 4px 8px;text-align:left}`]}render(){return R` <mwc-top-app-bar dense> <div slot="title">COVID SC</div> <div></div> </mwc-top-app-bar> <div class="main" style="height:calc(100% - 48px); min-height:calc(100% - 48px);"> <div style="height:100%"> ${this.page} </div>  </div>`}renderPage(t){switch(t.pathname){case"/symptoms":return R` <covid-sc-page-symptoms></covid-sc-page-symptoms> `;case"/resources":return R` <covid-sc-page-resources></covid-sc-page-resources> `;default:return R` <covid-sc-page-home></covid-sc-page-home> `}}firstUpdated(){}handleNavigation(t){this.location=t,this.page=this.renderPage(t)}}customElements.define("covid-sc-app",Dh);export{Dh as CovidScApp};
  //# sourceMappingURL=covid-sc-app-f75ce4cf.js.map
  