This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/web/dist/main.js

198 lines
1.9 MiB
JavaScript
Raw Normal View History

!function(){if(!("adoptedStyleSheets"in document)){var n="ShadyCSS"in window&&!window.ShadyCSS.nativeShadow,e=[],t=[],o=new WeakMap,a=new WeakMap,r=new WeakMap,i=new WeakMap,l=new WeakMap,f={loaded:!1},c={body:null,CSSStyleSheet:null},p=CSSStyleSheet,d=/@import\surl(.*?);/gi,s=["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"],m=["replace","replaceSync"],g=function(){function n(){var n=document.createElement("style");f.loaded?c.body.appendChild(n):(document.head.appendChild(n),n.disabled=!0,e.push(n));var t=n.sheet;return a.set(t,{adopters:new Map,actions:[],basicStyleElement:n}),t}var t=n.prototype;return t.replace=function(n){var e=this,t=h(n);return new Promise((function(n,o){if(a.has(e)){var r=a.get(e).basicStyleElement;r.innerHTML=t,n(r.sheet),x(e)}else o(new Error("Can't call replace on non-constructed CSSStyleSheets."))}))},t.replaceSync=function(n){var e=h(n);if(a.has(this)){var t=a.get(this).basicStyleElement;return t.innerHTML=e,x(this),t.sheet}throw new Error("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")},n}();Object.defineProperty(g,Symbol.hasInstance,{configurable:!0,value:b}),v(p.prototype),window.CSSStyleSheet=g,function(){var e={configurable:!0,get:function(){return o.get(this)||[]},set:function(n){var e=o.get(this)||[];!function(n,e){var t=e===document?"Document":"ShadowRoot";if(!Array.isArray(n))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+t+": Iterator getter is not callable.");if(!n.every(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+t+": Failed to convert value to 'CSSStyleSheet'");var a=n.filter((function(e,t){return n.indexOf(e)===t}));o.set(e,a)}(n,this);var t=this===document?u()?this.head:this.body:this,r="isConnected"in t?t.isConnected:document.body.contains(t);window.requestAnimationFrame((function(){r&&(w(t),function(n,e){for(var t=_(n),o=0,r=e.length;o<r;o++)if(!(t.indexOf(e[o])>-1)){var l=a.get(e[o]).adopters,f=i.get(n),c=l.get(n);c||(c=l.get(document.head)),f.disconnect(),c.parentNode.removeChild(c),f.observe()}}(t,e))}))}};if(Object.defineProperty(Document.prototype,"adoptedStyleSheets",e),"undefined"!=typeof ShadowRoot){var t=Element.prototype.attachShadow;Element.prototype.attachShadow=function(){var e=n?this:t.apply(this,arguments);return k(e),e},Object.defineProperty(ShadowRoot.prototype,"adoptedStyleSheets",e)}}(),u()?document.addEventListener("DOMContentLoaded",C):C()}function b(n){return n instanceof p||n instanceof c.CSSStyleSheet}function u(){return"loading"===document.readyState}function _(n){return o.get(n.parentNode===document.documentElement?document:n)}function h(n){var e=n.match(d,"")||[],t=n;return e.length&&(console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),e.forEach((function(n){t=t.replace(n,"")}))),t}function v(n){m.forEach((function(e){n[e]=function(){return g.prototype[e].apply(this,arguments)}})),s.forEach((function(e){var t=n[e];n[e]=function(){var n=arguments,o=t.apply(this,n);if(a.has(this)){var r=a.get(this),i=r.adopters,l=r.actions;i.forEach((function(t){t.sheet&&t.sheet[e].apply(t.sheet,n)})),l.push([e,n])}return o}}))}function x(n){var e=a.get(n),t=e.adopters,o=e.basicStyleElement;t.forEach((function(n){n.innerHTML=o.innerHTML}))}function w(n){for(var e=document.createDocumentFragment(),o=_(n),f=i.get(n),c=0,p=o.length;c<p;c++){var d=a.get(o[c]),s=d.adopters,m=d.basicStyleElement,g=s.get(n);g?(f.disconnect(),e.appendChild(g),(!g.innerHTML||g.sheet&&!g.sheet.cssText)&&(g.innerHTML=m.innerHTML),f.observe()):((g=document.createElement("style")).innerHTML=m.innerHTML,r.set(g,n),l.set(g,0),s.set(n,g),e.appendChild(g)),n===document.head&&t.push(g)}n.insertBefore(e,n.firstChild);for(var b=0,u=o.length;b<u;b++){var h=a.get(o[b]),v=h.adopters,x=h.actions,w=v.get(n),y=l.get(w);if(x.length>0){for(var k=y,C=x.length;k<C;k++){var B=x[k],P=B[0],S=B[1];w.sheet[P].apply(w.sheet,S)}l.set(w,x.length-1)}}}function y(e){for(var t
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])})(e,t)};function e(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var t=function(){return(t=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var a in e=arguments[t])Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}).apply(this,arguments)};function o(n,e,t,o){var a,r=arguments.length,i=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,e,t,o);else for(var l=n.length-1;l>=0;l--)(a=n[l])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}function a(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],o=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(n,e){var t="function"==typeof Symbol&&n[Symbol.iterator];if(!t)return n;var o,a,r=t.call(n),i=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(n){a={error:n}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i}function i(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(r(arguments[e]));return n}
/**
* @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 l="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,f=(n,e,t=null)=>{for(;e!==t;){const t=e.nextSibling;n.removeChild(e),e=t}},c=`{{lit-${String(Math.random()).slice(2)}}}`,p=`\x3c!--${c}--\x3e`,d=new RegExp(`${c}|${p}`);class s{constructor(n,e){this.parts=[],this.element=e;const t=[],o=[],a=document.createTreeWalker(e.content,133,null,!1);let r=0,i=-1,l=0;const{strings:f,values:{length:p}}=n;for(;l<p;){const n=a.nextNode();if(null!==n){if(i++,1===n.nodeType){if(n.hasAttributes()){const e=n.attributes,{length:t}=e;let o=0;for(let n=0;n<t;n++)m(e[n].name,"$lit$")&&o++;for(;o-- >0;){const e=f[l],t=u.exec(e)[2],o=t.toLowerCase()+"$lit$",a=n.getAttribute(o);n.removeAttribute(o);const r=a.split(d);this.parts.push({type:"attribute",index:i,name:t,strings:r}),l+=r.length-1}}"TEMPLATE"===n.tagName&&(o.push(n),a.currentNode=n.content)}else if(3===n.nodeType){const e=n.data;if(e.indexOf(c)>=0){const o=n.parentNode,a=e.split(d),r=a.length-1;for(let e=0;e<r;e++){let t,r=a[e];if(""===r)t=b();else{const n=u.exec(r);null!==n&&m(n[2],"$lit$")&&(r=r.slice(0,n.index)+n[1]+n[2].slice(0,-"$lit$".length)+n[3]),t=document.createTextNode(r)}o.insertBefore(t,n),this.parts.push({type:"node",index:++i})}""===a[r]?(o.insertBefore(b(),n),t.push(n)):n.data=a[r],l+=r}}else if(8===n.nodeType)if(n.data===c){const e=n.parentNode;null!==n.previousSibling&&i!==r||(i++,e.insertBefore(b(),n)),r=i,this.parts.push({type:"node",index:i}),null===n.nextSibling?n.data="":(t.push(n),i--),l++}else{let e=-1;for(;-1!==(e=n.data.indexOf(c,e+1));)this.parts.push({type:"node",index:-1}),l++}}else a.currentNode=o.pop()}for(const n of t)n.parentNode.removeChild(n)}}const m=(n,e)=>{const t=n.length-e.length;return t>=0&&n.slice(t)===e},g=n=>-1!==n.index,b=()=>document.createComment(""),u=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function _(n,e){const{element:{content:t},parts:o}=n,a=document.createTreeWalker(t,133,null,!1);let r=v(o),i=o[r],l=-1,f=0;const c=[];let p=null;for(;a.nextNode();){l++;const n=a.currentNode;for(n.previousSibling===p&&(p=null),e.has(n)&&(c.push(n),null===p&&(p=n)),null!==p&&f++;void 0!==i&&i.index===l;)i.index=null!==p?-1:i.index-f,r=v(o,r),i=o[r]}c.forEach((n=>n.parentNode.removeChild(n)))}const h=n=>{let e=11===n.nodeType?0:1;const t=document.createTreeWalker(n,133,null,!1);for(;t.nextNode();)e++;return e},v=(n,e=-1)=>{for(let t=e+1;t<n.length;t++){const e=n[t];if(g(e))return t}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 x=new WeakMap,w=n=>"function"==typeof n&&x.has(n),y={},k={};
/**
* @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 C{constructor(n,e,t){this.__parts=[],this.template=n,this.processor=e,this.options=t}update(n){let e=0;for(const t of this.__parts)void 0!==t&&t.setValue(n[e]),e++;for(const n of this.__parts)void 0!==n&&n.commit()}_clone(){const n=l?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],t=this.template.parts,o=document.createTreeWalker(n,133,null,!1);let a,r=0,i=0,f=o.nextNode();for(;r<t.length;)if(a=t[r],g(a)){for(;i<a.index;)i++,"TEMPLATE"===f.nodeName&&(e.push(f),o.currentNode=f.content),null===(f=o.nextNode())&&(o.currentNode=e.pop(),f=o.nextNode());if("node"===a.type){const n=this.processor.handleTextExpression(this.options);n.insertAfterNode(f.previousSibling),this.__parts.push(n)}else this.__parts.push(...this.processor.handleAttributeExpressions(f,a.name,a.strings,this.options));r++}else this.__parts.push(void 0),r++;return l&&(document.adoptNode(n),customElements.upgrade(n)),n}}
/**
* @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 B=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:n=>n}),P=` ${c} `;class S{constructor(n,e,t,o){this.strings=n,this.values=e,this.type=t,this.processor=o}getHTML(){const n=this.strings.length-1;let e="",t=!1;for(let o=0;o<n;o++){const n=this.strings[o],a=n.lastIndexOf("\x3c!--");t=(a>-1||t)&&-1===n.indexOf("--\x3e",a+1);const r=u.exec(n);e+=null===r?n+(t?P:p):n.substr(0,r.index)+r[1]+r[2]+"$lit$"+r[3]+c}return e+=this.strings[n],e}getTemplateElement(){const n=document.createElement("template");let e=this.getHTML();return void 0!==B&&(e=B.createHTML(e)),n.innerHTML=e,n}}
/**
* @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=n=>null===n||!("object"==typeof n||"function"==typeof n),M=n=>Array.isArray(n)||!(!n||!n[Symbol.iterator]);class L{constructor(n,e,t){this.dirty=!0,this.element=n,this.name=e,this.strings=t,this.parts=[];for(let n=0;n<t.length-1;n++)this.parts[n]=this._createPart()}_createPart(){return new z(this)}_getValue(){const n=this.strings,e=n.length-1,t=this.parts;if(1===e&&""===n[0]&&""===n[1]){const n=t[0].value;if("symbol"==typeof n)return String(n);if("string"==typeof n||!M(n))return n}let o="";for(let a=0;a<e;a++){o+=n[a];const e=t[a];if(void 0!==e){const n=e.value;if(T(n)||!M(n))o+="string"==typeof n?n:String(n);else for(const e of n)o+="string"==typeof e?e:String(e)}}return o+=n[e],o}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class z{constructor(n){this.value=void 0,this.committer=n}setValue(n){n===y||T(n)&&n===this.value||(this.value=n,w(n)||(this.committer.dirty=!0))}commit(){for(;w(this.value);){const n=this.value;this.value=y,n(this)}this.value!==y&&this.committer.commit()}}class R{constructor(n){this.value=void 0,this.__pendingValue=void 0,this.options=n}appendInto(n){this.startNode=n.appendChild(b()),this.endNode=n.appendChild(b())}insertAfterNode(n){this.startNode=n,this.endNode=n.nextSibling}appendIntoPart(n){n.__insert(this.startNode=b()),n.__insert(this.endNode=b())}insertAfterPart(n){n.__insert(this.startNode=b()),this.endNode=n.endNode,n.endNode=this.startNode}setValue(n){this.__pendingValue=n}commit(){if(null===this.startNode.parentNode)return;for(;w(this.__pendingValue);){const n=this.__pendingValue;this.__pendingValue=y,n(this)}const n=this.__pendingValue;n!==y&&(T(n)?n!==this.value&&this.__commitText(n):n instanceof S?this.__commitTemplateResult(n):n instanceof Node?this.__commitNode(n):M(n)?this.__commitIterable(n):n===k?(this.value=k,this.clear()):this.__commitText(n))}__insert(n){this.endNode.parentNode.insertBefore(n,this.endNode)}__commitNode(n){this.value!==n&&(this.clear(),this.__insert(n),this.value=n)}__commitText(n){const e=this.startNode.nextSibling,t="string"==typeof(n=null==n?"":n)?n:String(n);e===this.endNode.previousSibling&&3===e.nodeType?e.data=t:this.__commitNode(document.createTextNode(t)),this.value=n}__commitTemplateResult(n){const e=this.options.templateFactory(n);if(this.value instanceof C&&this.value.template===e)this.value.update(n.values);else{const t=new C(e,n.processor,this.options),o=t._clone();t.update(n.values),this.__commitNode(o),this.value=t}}__commitIterable(n){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let t,o=0;for(const a of n)t=e[o],void 0===t&&(t=new R(this.options),e.push(t),0===o?t.appendIntoPart(this):t.insertAfterPart(e[o-1])),t.setValue(a),t.commit(),o++;o<e.length&&(e.length=o,this.clear(t&&t.endNode))}clear(n=this.startNode){f(this.startNode.parentNode,n.nextSibling,this.endNode)}}class W{constructor(n,e,t){if(this.value=void 0,this.__pendingValue=void 0,2!==t.length||""!==t[0]||""!==t[1])throw new Error("Boolean attributes can only contain a single expression");this.element=n,this.name=e,this.strings=t}setValue(n){this.__pendingValue=n}commit(){for(;w(this.__pendingValue);){const n=this.__pendingValue;this.__pendingValue=y,n(this)}if(this.__pendingValue===y)return;const n=!!this.__pendingValue;this.value!==n&&(n?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=n),this.__pendingValue=y}}class F extends L{constructor(n,e,t){super(n,e,t),this.single=2===t.length&&""===t[0]&&""===t[1]}_createPart(){return new D(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class D extends z{}let O=!1;(()=>{try{const n={get capture(){return O=!0,!1}};window.addEventListener("test",n,n),window.removeEventListener("test",n,n)}catch(n){}})();class E{constructor(n,e,t){this.value=void 0,this.__pendingValue=void 0,this.element=n,this.eventName=e,this.eventContext=t,this.__boundHandleEvent=n=>this.handleEvent(n)}setValue(n){this.__pendingValue=n}com
/**
* @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 A(n){let e=H.get(n.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},H.set(n.type,e));let t=e.stringsArray.get(n.strings);if(void 0!==t)return t;const o=n.strings.join(c);return t=e.keyString.get(o),void 0===t&&(t=new s(n,n.getTemplateElement()),e.keyString.set(o,t)),e.stringsArray.set(n.strings,t),t}const H=new Map,N=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 j=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(n,e,t,o){const a=e[0];if("."===a){return new F(n,e.slice(1),t).parts}if("@"===a)return[new E(n,e.slice(1),o.eventContext)];if("?"===a)return[new W(n,e.slice(1),t)];return new L(n,e,t).parts}handleTextExpression(n){return new R(n)}};
/**
* @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.3.0");const G=(n,...e)=>new S(n,e,"html",j)
/**
* @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
*/,Y=(n,e)=>`${n}--${e}`;let q=!0;void 0===window.ShadyCSS?q=!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."),q=!1);const V=n=>e=>{const t=Y(e.type,n);let o=H.get(t);void 0===o&&(o={stringsArray:new WeakMap,keyString:new Map},H.set(t,o));let a=o.stringsArray.get(e.strings);if(void 0!==a)return a;const r=e.strings.join(c);if(a=o.keyString.get(r),void 0===a){const t=e.getTemplateElement();q&&window.ShadyCSS.prepareTemplateDom(t,n),a=new s(e,t),o.keyString.set(r,a)}return o.stringsArray.set(e.strings,a),a},U=["html","svg"],X=new Set,Z=(n,e,t)=>{X.add(n);const o=t?t.element:document.createElement("template"),a=e.querySelectorAll("style"),{length:r}=a;if(0===r)return void window.ShadyCSS.prepareTemplateStyles(o,n);const i=document.createElement("style");for(let n=0;n<r;n++){const e=a[n];e.parentNode.removeChild(e),i.textContent+=e.textContent}(n=>{U.forEach((e=>{const t=H.get(Y(e,n));void 0!==t&&t.keyString.forEach((n=>{const{element:{content:e}}=n,t=new Set;Array.from(e.querySelectorAll("style")).forEach((n=>{t.add(n)})),_(n,t)}))}))})(n);const l=o.content;t?function(n,e,t=null){const{element:{content:o},parts:a}=n;if(null==t)return void o.appendChild(e);const r=document.createTreeWalker(o,133,null,!1);let i=v(a),l=0,f=-1;for(;r.nextNode();)for(f++,r.currentNode===t&&(l=h(e),t.parentNode.insertBefore(e,t));-1!==i&&a[i].index===f;){if(l>0){for(;-1!==i;)a[i].index+=l,i=v(a,i);return}i=v(a,i)}}(t,i,l.firstChild):l.insertBefore(i,l.firstChild),window.ShadyCSS.prepareTemplateStyles(o,n);const f=l.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==f)e.insertBefore(f.cloneNode(!0),e.firstChild);else if(t){l.insertBefore(i,l.firstChild);const n=new Set;n.add(i),_(t,n)}};window.JSCompiler_renameProperty=(n,e)=>n;const $={toAttribute(n,e){switch(e){case Boolean:return n?"":null;case Object:case Array:return null==n?n:JSON.stringify(n)}return n},fromAttribute(n,e){switch(e){case Boolean:return null!==n;case Number:return null===n?null:Number(n);case Object:case Array:return JSON.parse(n)}return n}},K=(n,e)=>e!==n&&(e==e||n==n),J={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:K};class Q extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const n=[];return this._classProperties.forEach(((e,t)=>{const o=this._attributeNameForProperty(t,e);void 0!==o&&(this._attributeToPropertyMap.set(o,t),n.push(o))})),n}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const n=Object.getPrototypeOf(this)._classProperties;void 0!==n&&n.forEach(((n,e)=>this._classProperties.set(e,n)))}}static createProperty(n,e=J){if(this._ensureClassProperties(),this._classProperties.set(n,e),e.noAccessor||this.prototype.hasOwnProperty(n))return;const t="symbol"==typeof n?Symbol():"__"+n,o=this.getPropertyDescriptor(n,t,e);void 0!==o&&Object.defineProperty(this.prototype,n,o)}static getPropertyDescriptor(n,e,t){return{get(){return this[e]},set(o){const a=this[n];this[e]=o,this.requestUpdateInternal(n,a,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this._classProperties&&this._classProperties.get(n)||J}static finalize(){const n=Object.getPrototypeOf(this);if(n.hasOwnProperty("finalized")||n.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const n=this.properties,e=[...Object.getOwnPropertyNames(n),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n):[]];for(const t of e)this.createProperty(t,n[t])}}static _attributeNameForProperty(n,e){const t=e.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof n?n.toLowerCase():void 0}static _valueHasChanged(n,e,t=K){return t(n,e)}static _propertyValueFromAttribute(n,e){const t=e.type,o=e.converter||$,a="function"==typeof o?o:o.fromAtt
/**
* @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 nn=n=>e=>"function"==typeof e?((n,e)=>(window.customElements.define(n,e),e))(n,e):((n,e)=>{const{kind:t,elements:o}=e;return{kind:t,elements:o,finisher(e){window.customElements.define(n,e)}}})(n,e),en=(n,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?Object.assign(Object.assign({},e),{finisher(t){t.createProperty(e.key,n)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,n)}};function tn(n){return(e,t)=>void 0!==t?((n,e,t)=>{e.constructor.createProperty(t,n)})(n,e,t):en(n,e)}
/**
@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
*/const on=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,an=Symbol();class rn{constructor(n,e){if(e!==an)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n}get styleSheet(){return void 0===this._styleSheet&&(on?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const ln=(n,...e)=>{const t=e.reduce(((e,t,o)=>e+(n=>{if(n instanceof rn)return n.cssText;if("number"==typeof n)return n;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${n}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(t)+n[o+1]),n[0]);return new rn(t,an)};
/**
* @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.4.0");const fn={};class cn extends Q{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const n=this.getStyles();if(Array.isArray(n)){const e=(n,t)=>n.reduceRight(((n,t)=>Array.isArray(t)?e(t,n):(n.add(t),n)),t),t=e(n,new Set),o=[];t.forEach((n=>o.unshift(n))),this._styles=o}else this._styles=void 0===n?[]:[n];this._styles=this._styles.map((n=>{if(n instanceof CSSStyleSheet&&!on){const e=Array.prototype.slice.call(n.cssRules).reduce(((n,e)=>n+e.cssText),"");return new rn(String(e),an)}return n}))}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 n=this.constructor._styles;0!==n.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?on?this.renderRoot.adoptedStyleSheets=n.map((n=>n instanceof CSSStyleSheet?n:n.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(n.map((n=>n.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(n){const e=this.render();super.update(n),e!==fn&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((n=>{const e=document.createElement("style");e.textContent=n.cssText,this.renderRoot.appendChild(e)})))}render(){return fn}}cn.finalized=!0,cn.render=(n,e,t)=>{if(!t||"object"!=typeof t||!t.scopeName)throw new Error("The `scopeName` option is required.");const o=t.scopeName,a=N.has(e),r=q&&11===e.nodeType&&!!e.host,i=r&&!X.has(o),l=i?document.createDocumentFragment():e;if(((n,e,t)=>{let o=N.get(e);void 0===o&&(f(e,e.firstChild),N.set(e,o=new R(Object.assign({templateFactory:A},t))),o.appendInto(e)),o.setValue(n),o.commit()})(n,l,Object.assign({templateFactory:V(o)},t)),i){const n=N.get(l);N.delete(l);const t=n.value instanceof C?n.value.template:void 0;Z(o,l,t),f(e,e.firstChild),e.appendChild(l),N.set(e,n)}!a&&r&&window.ShadyCSS.styleElement(e.host)};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function pn(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function dn(n,e){return n(e={exports:{}},e.exports),e.exports}var sn=dn((function(n,e){n.exports=function(){var e,t;function o(){return e.apply(null,arguments)}function a(n){e=n}function r(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function i(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function l(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function f(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;var e;for(e in n)if(l(n,e))return!1;return!0}function c(n){return void 0===n}function p(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function d(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function s(n,e){var t,o=[];for(t=0;t<n.length;++t)o.push(e(n[t],t));return o}function m(n,e){for(var t in e)l(e,t)&&(n[t]=e[t]);return l(e,"toString")&&(n.toString=e.toString),l(e,"valueOf")&&(n.valueOf=e.valueOf),n}function g(n,e,t,o){return Xt(n,e,t,o,!0).utc()}function b(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function u(n){return null==n._pf&&(n._pf=b()),n._pf}function _(n){if(null==n._isValid){var e=u(n),o=t.call(e.parsedDateParts,(function(n){return null!=n})),a=!isNaN(n._d.getTime())&&
//! moment.js
o.version="2.29.1",a(Zt),o.fn=cr,o.min=Qt,o.max=no,o.now=eo,o.utc=g,o.unix=pr,o.months=_r,o.isDate=d,o.locale=bt,o.invalid=h,o.duration=Mo,o.isMoment=k,o.weekdays=vr,o.parseZone=dr,o.localeData=ht,o.isDuration=lo,o.monthsShort=hr,o.weekdaysMin=wr,o.defineLocale=ut,o.updateLocale=_t,o.locales=vt,o.weekdaysShort=xr,o.normalizeUnits=on,o.relativeTimeRounding=ai,o.relativeTimeThreshold=ri,o.calendarFormat=jo,o.prototype=cr,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()})),mn=dn((function(n,e){
/*!
* Chart.js v2.9.4
* https://www.chartjs.org
* (c) 2020 Chart.js Contributors
* Released under the MIT License
*/
n.exports=function(n){function e(n,e){return n(e={exports:{}},e.exports),e.exports}function t(n){return n&&n.default||n}n=n&&n.hasOwnProperty("default")?n.default:n;var o={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},a=e((function(n){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[o[t]]=t);var a=n.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{
//# sourceMappingURL=main.js.map