diff --git a/home-assistant-polymer b/home-assistant-polymer index 2f9c08809..b0b953bfa 160000 --- a/home-assistant-polymer +++ b/home-assistant-polymer @@ -1 +1 @@ -Subproject commit 2f9c0880910145926f633ccb5270b1b913235a1b +Subproject commit b0b953bfac27d68007066931e01c2238c784c636 diff --git a/supervisor/api/panel/entrypoint.js b/supervisor/api/panel/entrypoint.js index e8c625567..f992f9a6f 100644 --- a/supervisor/api/panel/entrypoint.js +++ b/supervisor/api/panel/entrypoint.js @@ -1,14 +1,14 @@ function loadES5() { var el = document.createElement('script'); - el.src = '/api/hassio/app/frontend_es5/entrypoint.5d40ff8b.js'; + el.src = '/api/hassio/app/frontend_es5/entrypoint.e208210a.js'; document.body.appendChild(el); } if (/.*Version\/(?:11|12)(?:\.\d+)*.*Safari\//.test(navigator.userAgent)) { loadES5(); } else { try { - new Function("import('/api/hassio/app/frontend_latest/entrypoint.f09e9f8e.js')")(); + new Function("import('/api/hassio/app/frontend_latest/entrypoint.e74f1505.js')")(); } catch (err) { loadES5(); } diff --git a/supervisor/api/panel/entrypoint.js.gz b/supervisor/api/panel/entrypoint.js.gz index 3d2031e4d..36f27ee88 100644 Binary files a/supervisor/api/panel/entrypoint.js.gz and b/supervisor/api/panel/entrypoint.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/12dbe34e.js b/supervisor/api/panel/frontend_es5/12dbe34e.js deleted file mode 100644 index 355ef0f77..000000000 --- a/supervisor/api/panel/frontend_es5/12dbe34e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[99],{34099:function(e,t,r){r.r(t);r(87724);var n=r(37500),i=r(26767),o=r(5701),a=r(17717),s=r(67352),c=r(47181),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_",r="àáäâãåăæąçćčđďèéěėëêęğǵḧìíïîįłḿǹńňñòóöôœøṕŕřßşśšșťțùúüûǘůűūųẃẍÿýźžż·/_,:;",n="aaaaaaaaacccddeeeeeeegghiiiiilmnnnnooooooprrsssssttuuuuuuuuuwxyyzzz".concat(t).concat(t).concat(t).concat(t).concat(t).concat(t),i=new RegExp(r.split("").join("|"),"g");return e.toString().toLowerCase().replace(/\s+/g,t).replace(i,(function(e){return n.charAt(r.indexOf(e))})).replace(/&/g,"".concat(t,"and").concat(t)).replace(/[^\w-]+/g,"").replace(/-/g,t).replace(new RegExp("(".concat(t,")\\1+"),"g"),"$1").replace(new RegExp("^".concat(t,"+")),"").replace(new RegExp("".concat(t,"+$")),"")};r(98762),r(9381),r(81545),r(90806),r(66255);"".concat(location.protocol,"//").concat(location.host);var u,d,p,h,f,m,v,y=r(41682),b=r(60538),k=r(26765),g=r(11654),w=(r(4552),r(63864)),_=r(32594);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function E(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function P(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function A(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){P(o,n,i,a,s,"next",e)}function s(e){P(o,n,i,a,s,"throw",e)}a(void 0)}))}}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var i=O(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return S(this,r)}}function S(e,t){if(t&&("object"===x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function j(){j=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!B(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n ',"\n \n \n \n ',"\n ","\n\n ',""])),this._error):"",this._restoringBackup,this._restoreClicked,this._dialogParams.onboarding?"":(0,n.dy)(m||(m=E(['\n Download Backup\n Delete Backup\n '])),this._handleMenuAction,_.U,this.hass.localize("common.menu"),"M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z")):(0,n.dy)(u||(u=E([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return[g.Qx,g.yu,(0,n.iv)(v||(v=E(["\n ha-circular-progress {\n display: block;\n text-align: center;\n }\n ha-header-bar {\n --mdc-theme-on-primary: var(--primary-text-color);\n --mdc-theme-primary: var(--mdc-theme-surface);\n flex-shrink: 0;\n display: block;\n }\n ha-icon-button {\n color: var(--secondary-text-color);\n }\n "])))]}},{kind:"method",key:"_handleMenuAction",value:function(e){switch(e.detail.index){case 0:this._downloadClicked();break;case 1:this._deleteClicked()}}},{kind:"method",key:"_restoreClicked",value:(S=A(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._backupContent.backupDetails(),this._restoringBackup=!0,"full"!==this._backupContent.backupType){e.next=7;break}return e.next=5,this._fullRestoreClicked(t);case 5:e.next=9;break;case 7:return e.next=9,this._partialRestoreClicked(t);case 9:this._restoringBackup=!1;case 10:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)})},{kind:"method",key:"_partialRestoreClicked",value:(P=A(regeneratorRuntime.mark((function e(t){var r,n,i,o,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(null===(r=this._dialogParams)||void 0===r?void 0:r.supervisor)||"running"===(null===(n=this._dialogParams)||void 0===n?void 0:n.supervisor.info.state)){e.next=4;break}return e.next=3,(0,k.Ys)(this,{title:"Could not restore backup",text:"Restoring a backup is not possible right now because the system is in ".concat(null===(o=this._dialogParams)||void 0===o?void 0:o.supervisor.info.state," state.")});case 3:return e.abrupt("return");case 4:return e.next=6,(0,k.g7)(this,{title:"Are you sure you want partially to restore this backup?",confirmText:"restore",dismissText:"cancel"});case 6:if(e.sent){e.next=8;break}return e.abrupt("return");case 8:null!==(i=this._dialogParams)&&void 0!==i&&i.onboarding?((0,c.B)(this,"restoring"),fetch("/api/hassio/backups/".concat(this._backup.slug,"/restore/partial"),{method:"POST",body:JSON.stringify(t)}),this.closeDialog()):this.hass.callApi("POST","hassio/".concat((0,w.I)(this.hass.config.version,2021,9)?"backups":"snapshots","/").concat(this._backup.slug,"/restore/partial"),t).then((function(){a.closeDialog()}),(function(e){a._error=e.body.message}));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return P.apply(this,arguments)})},{kind:"method",key:"_fullRestoreClicked",value:(x=A(regeneratorRuntime.mark((function e(t){var r,n,i,o,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(null===(r=this._dialogParams)||void 0===r?void 0:r.supervisor)||"running"===(null===(n=this._dialogParams)||void 0===n?void 0:n.supervisor.info.state)){e.next=4;break}return e.next=3,(0,k.Ys)(this,{title:"Could not restore backup",text:"Restoring a backup is not possible right now because the system is in ".concat(null===(o=this._dialogParams)||void 0===o?void 0:o.supervisor.info.state," state.")});case 3:return e.abrupt("return");case 4:return e.next=6,(0,k.g7)(this,{title:"Are you sure you want to wipe your system and restore this backup?",confirmText:"restore",dismissText:"cancel"});case 6:if(e.sent){e.next=8;break}return e.abrupt("return");case 8:null!==(i=this._dialogParams)&&void 0!==i&&i.onboarding?((0,c.B)(this,"restoring"),fetch("/api/hassio/backups/".concat(this._backup.slug,"/restore/full"),{method:"POST",body:JSON.stringify(t)}),this.closeDialog()):this.hass.callApi("POST","hassio/".concat((0,w.I)(this.hass.config.version,2021,9)?"backups":"snapshots","/").concat(this._backup.slug,"/restore/full"),t).then((function(){a.closeDialog()}),(function(e){a._error=e.body.message}));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{kind:"method",key:"_deleteClicked",value:(i=A(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,k.g7)(this,{title:"Are you sure you want to delete this backup?",confirmText:"delete",dismissText:"cancel"});case 2:if(e.sent){e.next=4;break}return e.abrupt("return");case 4:this.hass.callApi((0,w.I)(this.hass.config.version,2021,9)?"DELETE":"POST","hassio/".concat((0,w.I)(this.hass.config.version,2021,9)?"backups/".concat(this._backup.slug):"snapshots/".concat(this._backup.slug,"/remove"))).then((function(){t._dialogParams.onDelete&&t._dialogParams.onDelete(),t.closeDialog()}),(function(e){t._error=e.body.message}));case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_downloadClicked",value:(r=A(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a=this.hass,s="/api/hassio/".concat((0,w.I)(this.hass.config.version,2021,9)?"backups":"snapshots","/").concat(this._backup.slug,"/download"),a.callWS({type:"auth/sign_path",path:s});case 3:t=e.sent,e.next=11;break;case 6:return e.prev=6,e.t0=e.catch(0),e.next=10,(0,k.Ys)(this,{text:(0,y.js)(e.t0)});case 10:return e.abrupt("return");case 11:if(!window.location.href.includes("ui.nabu.casa")){e.next=17;break}return e.next=14,(0,k.g7)(this,{title:"Potential slow download",text:"Downloading backups over the Nabu Casa URL will take some time, it is recomended to use your local URL instead, do you want to continue?",confirmText:"continue",dismissText:"cancel"});case 14:if(e.sent){e.next=17;break}return e.abrupt("return");case 17:r=this,n=t.path,i="home_assistant_backup_".concat(l(this._computeName),".tar"),o=void 0,(o=document.createElement("a")).target="_blank",o.href=n,o.download=i,r.shadowRoot.appendChild(o),o.dispatchEvent(new MouseEvent("click")),r.shadowRoot.removeChild(o);case 18:case"end":return e.stop()}var r,n,i,o,a,s}),e,this,[[0,6]])}))),function(){return r.apply(this,arguments)})},{kind:"get",key:"_computeName",value:function(){return this._backup?this._backup.name||this._backup.slug:"Unnamed backup"}}]}}),n.oi)}}]); \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/12dbe34e.js.gz b/supervisor/api/panel/frontend_es5/12dbe34e.js.gz deleted file mode 100644 index 5c9098965..000000000 Binary files a/supervisor/api/panel/frontend_es5/12dbe34e.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/39b0c1a9.js b/supervisor/api/panel/frontend_es5/1d212d54.js similarity index 99% rename from supervisor/api/panel/frontend_es5/39b0c1a9.js rename to supervisor/api/panel/frontend_es5/1d212d54.js index e802cb0d3..9eb471682 100644 --- a/supervisor/api/panel/frontend_es5/39b0c1a9.js +++ b/supervisor/api/panel/frontend_es5/1d212d54.js @@ -1 +1 @@ -"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[144],{58144:function(e,t,r){r.r(t);var n=r(37500),i=r(26767),o=r(5701),a=r(17717),s=r(14516),c=r(47181),l=r(83849),d=r(15493),u=(r(34552),r(34154)),p=r(41682),f=(r(48811),r(21625),r(50054),r(11654)),h=r(55677),m=(r(51187),r(29339),r(53973),r(11488),r(61740),r(98762),r(9381),r(22098),r(20258)),v=r(26765);function y(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}var b,g,w,k,E,_=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r,n,i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.g7)(t,{title:n.localize("common.restart_name","name",i.name),text:n.localize("dialog.restart_addon.text"),confirmText:n.localize("dialog.restart_addon.confirm_text"),dismissText:n.localize("common.cancel")});case 2:if(!e.sent){e.next=12;break}return e.prev=4,e.next=7,(0,u.P$)(r,i.slug);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),(0,v.Ys)(t,{title:n.localize("common.failed_to_restart_name","name",i.name),text:(0,p.js)(e.t0)});case 12:case"end":return e.stop()}}),e,null,[[4,9]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){y(o,n,i,a,s,"next",e)}function s(e){y(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e,r,n,i){return t.apply(this,arguments)}}();function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function x(e){return function(e){if(Array.isArray(e))return U(e)}(e)||N(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){P(o,n,i,a,s,"next",e)}function s(e){P(o,n,i,a,s,"throw",e)}a(void 0)}))}}function S(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=$(e);if(t){var i=$(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z(e)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(){R=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!V(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n \n
\n ',""])),this._error):"",this.supervisor.localize("addon.configuration.audio.input"),this._setInputDevice,this._selectedInput,this._inputDevices&&this._inputDevices.map((function(e){return(0,n.dy)(w||(w=S(["\n \n ","\n \n "])),e.device||"",e.name)})),this.supervisor.localize("addon.configuration.audio.output"),this._setOutputDevice,this._selectedOutput,this._outputDevices&&this._outputDevices.map((function(e){return(0,n.dy)(k||(k=S(["\n ","\n "])),e.device||"",e.name)})),this._saveSettings,this.supervisor.localize("common.save"))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(E||(E=S(["\n :host,\n ha-card,\n paper-dropdown-menu {\n display: block;\n }\n paper-item {\n width: 450px;\n }\n .card-actions {\n text-align: right;\n }\n "])))]}},{kind:"method",key:"update",value:function(e){Z($(s.prototype),"update",this).call(this,e),e.has("addon")&&this._addonChanged()}},{kind:"method",key:"_setInputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedInput=t}},{kind:"method",key:"_setOutputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedOutput=t}},{kind:"method",key:"_addonChanged",value:(i=O(regeneratorRuntime.mark((function e(){var t,r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._selectedInput=null===this.addon.audio_input?"default":this.addon.audio_input,this._selectedOutput=null===this.addon.audio_output?"default":this.addon.audio_output,!this._outputDevices){e.next=4;break}return e.abrupt("return");case 4:return t={device:"default",name:this.supervisor.localize("addon.configuration.audio.default")},e.prev=5,e.next=8,(0,m.G)(this.hass);case 8:r=e.sent,n=r.audio,i=Object.keys(n.input).map((function(e){return{device:e,name:n.input[e]}})),o=Object.keys(n.output).map((function(e){return{device:e,name:n.output[e]}})),this._inputDevices=[t].concat(x(i)),this._outputDevices=[t].concat(x(o)),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(5),this._error="Failed to fetch audio hardware",this._inputDevices=[t],this._outputDevices=[t];case 21:case"end":return e.stop()}}),e,this,[[5,16]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_saveSettings",value:(r=O(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={audio_input:"default"===this._selectedInput?null:this._selectedInput,audio_output:"default"===this._selectedOutput?null:this._selectedOutput},e.prev=4,e.next=7,(0,u.d3)(this.hass,this.addon.slug,n);case 7:if("started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=10;break}return e.next=10,_(this,this.hass,this.supervisor,this.addon);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),this._error="Failed to set addon audio device";case 15:r.progress=!1;case 16:case"end":return e.stop()}}),e,this,[[4,12]])}))),function(e){return r.apply(this,arguments)})}]}}),n.oi),r(87724);var K,Q=r(77426),Y=r(67352);r(81545),r(94254),r(83927),r(66255),r(31585);function W(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}var q,G=function(){var e,t=(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return K||(K=Promise.all([r.e(37),r.e(914)]).then(r.bind(r,92914))),e.abrupt("return",K);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){W(o,n,i,a,s,"next",e)}function s(e){W(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function X(e){return function(e){if(Array.isArray(e))return he(e)}(e)||me(e)||fe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(e,t){return re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},re(e,t)}function ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ye(e);if(t){var i=ye(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ie(this,r)}}function ie(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oe(e)}function oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(){ae=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!le(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r",'\n \n
\n

\n ','\n

\n
\n \n \n \n ','\n \n \n
\n
\n\n
\n ',"\n ","\n ","\n
\n ",'\n
\n ',""])),this._error):"",!this._yamlMode||this._canShowSchema&&this.addon.schema||this._valid?"":(0,n.dy)(Ue||(Ue=Ye(['\n \n ',"\n \n "])),this.supervisor.localize("addon.configuration.options.invalid_yaml")),t?(0,n.dy)(Ne||(Ne=Ye(['=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n \n \n \n \n ",'\n \n
\n ","\n \n ","\n ","
\n
\n
\n ',""])),this._error):"",this.supervisor.localize("addon.configuration.network.container"),this.supervisor.localize("addon.configuration.network.host"),this.supervisor.localize("common.description"),this._config.map((function(t){return(0,n.dy)(ft||(ft=wt(["\n \n ","\n \n \n \n ","\n \n "])),t.container,e._configChanged,e.supervisor.localize("addon.configuration.network.disabled"),t.host?String(t.host):"",t.container,e._computeDescription(t))})),this._resetTapped,this.supervisor.localize("common.reset_defaults"),this._saveTapped,this.supervisor.localize("common.save")):(0,n.dy)(dt||(dt=wt([""])))}},{kind:"method",key:"update",value:function(e){Rt(Ht(l.prototype),"update",this).call(this,e),e.has("addon")&&this._setNetworkConfig()}},{kind:"field",key:"_computeDescription",value:function(){var e=this;return function(t){var r,n,i,o,a,s;return(null===(r=e.addon.translations[e.hass.language])||void 0===r||null===(n=r.network)||void 0===n||null===(i=n[t.container])||void 0===i?void 0:i.description)||(null===(o=e.addon.translations.en)||void 0===o||null===(a=o.network)||void 0===a||null===(s=a[t.container])||void 0===s?void 0:s.description)||t.description}}},{kind:"method",key:"_setNetworkConfig",value:function(){var e=this.addon.network||{},t=this.addon.network_description||{},r=Object.keys(e).map((function(r){return{container:r,host:e[r],description:t[r]}}));this._config=r.sort((function(e,t){return e.container>t.container?1:-1}))}},{kind:"method",key:"_configChanged",value:(s=gt(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.target,this._config.forEach((function(e){e.container===r.container&&e.host!==parseInt(String(r.value),10)&&(e.host=r.value?parseInt(String(r.value),10):null)}));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{kind:"method",key:"_resetTapped",value:(i=gt(regeneratorRuntime.mark((function e(t){var r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,n={network:null},e.prev=3,e.next=6,(0,u.d3)(this.hass,this.addon.slug,n);case 6:if(o={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",o),"started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=11;break}return e.next=11,_(this,this.hass,this.supervisor,this.addon);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),this._error=this.supervisor.localize("addon.failed_to_reset","error",(0,p.js)(e.t0));case 16:r.progress=!1;case 17:case"end":return e.stop()}}),e,this,[[3,13]])}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"_saveTapped",value:(r=gt(regeneratorRuntime.mark((function e(t){var r,n,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={},this._config.forEach((function(e){n[e.container]=parseInt(String(e.host),10)})),i={network:n},e.prev=6,e.next=9,(0,u.d3)(this.hass,this.addon.slug,i);case 9:if(a={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",a),"started"!==(null===(o=this.addon)||void 0===o?void 0:o.state)){e.next=14;break}return e.next=14,_(this,this.hass,this.supervisor,this.addon);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,p.js)(e.t0));case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[6,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(ht||(ht=wt(["\n :host {\n display: block;\n }\n ha-card {\n display: block;\n }\n .card-actions {\n display: flex;\n justify-content: space-between;\n }\n "])))]}}]}}),n.oi);var Mt,Vt,It,Lt,Ft,Bt,Ut,Nt=r(18199);function Zt(e){return Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zt(e)}function $t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qt(e,t){return Qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Qt(e,t)}function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Gt(e);if(t){var i=Gt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Wt(this,r)}}function Wt(e,t){if(t&&("object"===Zt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qt(e)}function qt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gt(e){return Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gt(e)}function Jt(){Jt=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!tr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])));var e=this.addon.options&&Object.keys(this.addon.options).length||this.addon.schema&&Object.keys(this.addon.schema).length;return(0,n.dy)(Vt||(Vt=$t(['\n
\n ',"\n
\n "])),e||this.addon.network||this.addon.audio?(0,n.dy)(It||(It=$t(["\n ","\n ","\n ","\n "])),e?(0,n.dy)(Lt||(Lt=$t(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.network?(0,n.dy)(Ft||(Ft=$t(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.audio?(0,n.dy)(Bt||(Bt=$t(["\n \n "])),this.hass,this.addon,this.supervisor):""):this.supervisor.localize("addon.configuration.no_configuration"))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(Ut||(Ut=$t(["\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n }\n "])))]}}]}}),n.oi),r(93546);function pr(e){return pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(e)}function fr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function hr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function mr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){hr(o,n,i,a,s,"next",e)}function s(e){hr(o,n,i,a,s,"throw",e)}a(void 0)}))}}function vr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yr(e,t){return yr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yr(e,t)}function br(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Dr(e);if(t){var i=Dr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return gr(this,r)}}function gr(e,t){if(t&&("object"===pr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wr(e)}function wr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kr(){kr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Cr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n ','\n
\n ',"\n
\n
\n
\n "])),this._error?(0,n.dy)(cr||(cr=fr(['',""])),this._error):"",this._content?(0,n.dy)(lr||(lr=fr([""])),this._content):(0,n.dy)(dr||(dr=fr([""])))):(0,n.dy)(ar||(ar=fr([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(ur||(ur=fr(["\n ha-card {\n display: block;\n }\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n ha-markdown {\n padding: 16px;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(r=mr(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,u.ii)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.documentation.get_logs","error",(0,p.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi);var jr,Tr,zr=r(8636),Rr=r(63864);function Hr(e){return Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr(e)}function Mr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function Vr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lr(e,t){return Lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Lr(e,t)}function Fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Nr(e);if(t){var i=Nr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Br(this,r)}}function Br(e,t){if(t&&("object"===Hr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ur(e)}function Ur(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nr(e){return Nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nr(e)}function Zr(){Zr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Qr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r
\n "])),this.progress,this._buttonTapped,this.disabled)}},{kind:"method",key:"_buttonTapped",value:(r=regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.progress=!0,t={method:this.method,path:this.path,data:this.data},e.prev=2,e.next=5,this.hass.callApi(this.method,this.path,this.data);case 5:r=e.sent,this.progress=!1,this._progressButton.actionSuccess(),t.success=!0,t.response=r,e.next=18;break;case 12:e.prev=12,e.t0=e.catch(2),this.progress=!1,this._progressButton.actionError(),t.success=!1,t.response=e.t0;case 18:(0,c.B)(this,"hass-api-called",t);case 19:case"end":return e.stop()}}),e,this,[[2,12]])})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){Mr(o,n,i,a,s,"next",e)}function s(e){Mr(o,n,i,a,s,"throw",e)}a(void 0)}))},function(){return i.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(Tr||(Tr=Vr(["\n :host([disabled]) {\n pointer-events: none;\n }\n "])))}}]}}),n.oi);customElements.define("ha-call-api-button",Jr);var Xr,en,tn,rn=r(67182);function nn(e){return nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn(e)}function on(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function an(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sn(e,t){return sn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sn(e,t)}function cn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=un(e);if(t){var i=un(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ln(this,r)}}function ln(e,t){if(t&&("object"===nn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dn(e)}function dn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function un(e){return un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},un(e)}function pn(){pn=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!mn(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ','\n
\n \n \n \n \n \n
\n '])),this.noText?"no-text":"",this.hasIcon?(0,n.dy)(en||(en=on(['
\n \n
']))):null)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(tn||(tn=on(["\n ","\n .mdc-chip {\n background-color: var(\n --ha-chip-background-color,\n rgba(var(--rgb-primary-text-color), 0.15)\n );\n color: var(--ha-chip-text-color, var(--primary-text-color));\n }\n\n .mdc-chip.no-text {\n padding: 0 10px;\n }\n\n .mdc-chip:hover {\n color: var(--ha-chip-text-color, var(--primary-text-color));\n }\n\n .mdc-chip__icon--leading {\n --mdc-icon-size: 20px;\n color: var(--ha-chip-icon-color, var(--ha-chip-text-color));\n }\n .mdc-chip.no-text\n .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden) {\n margin-right: -4px;\n }\n "])),(0,n.$m)(rn))}}]}}),n.oi),r(14089),r(52039);var wn,kn,En,_n,Cn,xn,Pn,On,Sn,An,Dn,jn,Tn,zn,Rn,Hn,Mn,Vn,In,Ln,Fn,Bn,Un,Nn,Zn,$n,Kn,Qn,Yn,Wn,qn,Gn,Jn,Xn,ei,ti,ri,ni,ii,oi,ai=r(70203),si=(r(46586),r(21050),function(e,t){(0,c.B)(e,"show-dialog",{dialogTag:"dialog-hassio-markdown",dialogImport:function(){return r.e(884).then(r.bind(r,56884))},dialogParams:t})}),ci=(r(80985),r(34450));function li(e){return li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},li(e)}function di(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function ui(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){di(o,n,i,a,s,"next",e)}function s(e){di(o,n,i,a,s,"throw",e)}a(void 0)}))}}function pi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function fi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hi(e,t){return hi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hi(e,t)}function mi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Oi(e);if(t){var i=Oi(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return vi(this,r)}}function vi(e,t){if(t&&("object"===li(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yi(e)}function yi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bi(){bi=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!ki(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
\n
\n ','\n
\n ','\n
\n
\n
\n ','\n
\n\n
\n ',"\n\n \n \n\n
\n ',".
\n ",'\n
\n
\n
\n ',"\n ","\n
\n
\n ","\n
\n
\n ","\n ",'\n
\n
\n
\n ',"\n
\n
\n ","\n
\n
\n \n\n ","\n "])),this.addon.update_available?(0,n.dy)(kn||(kn=pi(["\n \n "])),this.hass,this.narrow,this.supervisor,this.addon.slug,this._updateComplete):"",this.addon.protected?"":(0,n.dy)(En||(En=pi(['\n \n (',")\n
\n "])),this.addon.version,this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,n.dy)(Sn||(Sn=pi(['\n \n \n \n \n \n \n \n \n \n ',""])),this.addon.url,this.addon.name)),this.addon.logo?(0,n.dy)(Fn||(Fn=pi(['\n \n \n ',"\n \n \n \n\n ","\n ","\n ","\n ","\n \n "])),(0,zr.$)({"addon-options":!0,started:"started"===this.addon.state}),this.narrow,this.supervisor.localize("addon.dashboard.option.boot.title"),this.supervisor.localize("addon.dashboard.option.boot.description"),this._startOnBootToggled,"auto"===this.addon.boot,"once"!==this.addon.startup?(0,n.dy)(Un||(Un=pi(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.watchdog.title"),this.supervisor.localize("addon.dashboard.option.watchdog.description"),this._watchdogToggled,this.addon.watchdog):"",this.addon.auto_update||null!==(o=this.hass.userData)&&void 0!==o&&o.showAdvanced?(0,n.dy)(Nn||(Nn=pi(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.auto_update.title"),this.supervisor.localize("addon.dashboard.option.auto_update.description"),this._autoUpdateToggled,this.addon.auto_update):"",!this._computeCannotIngressSidebar&&this.addon.ingress?(0,n.dy)(Zn||(Zn=pi(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.ingress_panel.title"),this.supervisor.localize("addon.dashboard.option.ingress_panel.description"),this._panelToggled,this.addon.ingress_panel):"",this._computeUsesProtectedOptions?(0,n.dy)($n||($n=pi(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.protected.title"),this.supervisor.localize("addon.dashboard.option.protected.description"),this._protectionToggled,this.addon.protected):""):"","started"===this.addon.state?(0,n.dy)(Kn||(Kn=pi(["\n ','\n \n '," \n \n ",""])),this.narrow,this.supervisor.localize("addon.dashboard.hostname"),this.addon.hostname,s.map((function(e){var t;return(0,n.dy)(Qn||(Qn=pi(["\n \n "])),e.description,null!==(t=e.value)&&void 0!==t?t:0,e.tooltip)}))):"",this._error?(0,n.dy)(Yn||(Yn=pi(['',""])),this._error):"",this.addon.version||!a||this.addon.available?"":(0,ci.I)(this.supervisor.info.supported_arch,this.addon.arch)?(0,n.dy)(qn||(qn=pi(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_version","core_version_installed",this.supervisor.core.version,"core_version_needed",a.homeassistant)):(0,n.dy)(Wn||(Wn=pi(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch")),this.addon.version?this._computeIsRunning?(0,n.dy)(Gn||(Gn=pi(['\n \n \n \n ',"\n \n \n "])),this._pathWebui,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._computeShowIngressUI?(0,n.dy)(ri||(ri=pi(["\n \n ","\n \n "])),this._openIngress,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._uninstallClicked,this.supervisor.localize("addon.dashboard.uninstall"),this.addon.build?(0,n.dy)(ni||(ni=pi(['\n \n ',"\n \n "])),this.hass,this.addon.slug,this.supervisor.localize("addon.dashboard.rebuild")):""):"",this.addon.long_description?(0,n.dy)(ii||(ii=pi(['\n \n
\n '),"icon_experimental",''),"icon_deprecated",'')):this.supervisor.localize("addon.dashboard.capability.".concat(t,".description"))})}},{kind:"get",key:"_computeIsRunning",value:function(){var e;return"started"===(null===(e=this.addon)||void 0===e?void 0:e.state)}},{kind:"get",key:"_pathWebui",value:function(){return this.addon.webui&&this.addon.webui.replace("[HOST]",document.location.hostname)}},{kind:"get",key:"_computeShowWebUI",value:function(){return!this.addon.ingress&&this.addon.webui&&this._computeIsRunning}},{kind:"method",key:"_openIngress",value:function(){(0,l.c)("/hassio/ingress/".concat(this.addon.slug))}},{kind:"get",key:"_computeShowIngressUI",value:function(){return this.addon.ingress&&this._computeIsRunning}},{kind:"get",key:"_computeCannotIngressSidebar",value:function(){return!this.addon.ingress||!(0,Rr.I)(this.hass.config.version,0,92)}},{kind:"get",key:"_computeUsesProtectedOptions",value:function(){return this.addon.docker_api||this.addon.full_access||this.addon.host_pid}},{kind:"method",key:"_startOnBootToggled",value:(_=ui(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={boot:"auto"===this.addon.boot?"manual":"auto"},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,p.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return _.apply(this,arguments)})},{kind:"method",key:"_watchdogToggled",value:(E=ui(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={watchdog:!this.addon.watchdog},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,p.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return E.apply(this,arguments)})},{kind:"method",key:"_autoUpdateToggled",value:(k=ui(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={auto_update:!this.addon.auto_update},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,p.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return k.apply(this,arguments)})},{kind:"method",key:"_protectionToggled",value:(w=ui(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={protected:!this.addon.protected},e.prev=2,e.next=5,(0,u.NI)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"security"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,p.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return w.apply(this,arguments)})},{kind:"method",key:"_panelToggled",value:(g=ui(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={ingress_panel:!this.addon.ingress_panel},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,p.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return g.apply(this,arguments)})},{kind:"method",key:"_openChangelog",value:(b=ui(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.CH)(this.hass,this.addon.slug);case 3:t=e.sent,si(this,{title:this.supervisor.localize("addon.dashboard.changelog"),content:(0,ci.H)(this.addon,t)}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),(0,v.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.get_changelog"),text:(0,p.js)(e.t0)});case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return b.apply(this,arguments)})},{kind:"method",key:"_updateComplete",value:function(){var e={success:!0,response:void 0,path:"install"};(0,c.B)(this,"hass-api-called",e)}},{kind:"method",key:"_installClicked",value:(y=ui(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.fU)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"install"},(0,c.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,v.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.install"),text:(0,p.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return y.apply(this,arguments)})},{kind:"method",key:"_stopClicked",value:(m=ui(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.ow)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,c.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,v.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.stop"),text:(0,p.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return m.apply(this,arguments)})},{kind:"method",key:"_restartClicked",value:(d=ui(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.P$)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,c.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,v.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.restart"),text:(0,p.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return d.apply(this,arguments)})},{kind:"method",key:"_startClicked",value:(i=ui(regeneratorRuntime.mark((function e(t){var r,n,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.su)(this.hass,this.addon.slug);case 5:if((n=e.sent).valid){e.next=11;break}return e.next=9,(0,v.g7)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start_invalid_config"),text:n.message.split(" Got ")[0],confirm:function(){return o._openConfiguration()},confirmText:this.supervisor.localize("addon.dashboard.action_error.go_to_config"),dismissText:this.supervisor.localize("common.cancel")});case 9:return r.progress=!1,e.abrupt("return");case 11:e.next=18;break;case 13:return e.prev=13,e.t0=e.catch(2),(0,v.Ys)(this,{title:"Failed to validate addon configuration",text:(0,p.js)(e.t0)}),r.progress=!1,e.abrupt("return");case 18:return e.prev=18,e.next=21,(0,u.kP)(this.hass,this.addon.slug);case 21:return e.next=23,(0,u.AD)(this.hass,this.addon.slug);case 23:this.addon=e.sent,i={success:!0,response:void 0,path:"start"},(0,c.B)(this,"hass-api-called",i),e.next=31;break;case 28:e.prev=28,e.t1=e.catch(18),(0,v.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start"),text:(0,p.js)(e.t1)});case 31:r.progress=!1;case 32:case"end":return e.stop()}}),e,this,[[2,13],[18,28]])}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"_openConfiguration",value:function(){(0,l.c)("/hassio/addon/".concat(this.addon.slug,"/config"))}},{kind:"method",key:"_uninstallClicked",value:(r=ui(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.next=4,(0,v.g7)(this,{title:this.addon.name,text:"Are you sure you want to uninstall this add-on?",confirmText:"uninstall add-on",dismissText:"no"});case 4:if(e.sent){e.next=8;break}return r.progress=!1,e.abrupt("return");case 8:return this._error=void 0,e.prev=9,e.next=12,(0,u.Yn)(this.hass,this.addon.slug);case 12:n={success:!0,response:void 0,path:"uninstall"},(0,c.B)(this,"hass-api-called",n),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),(0,v.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.uninstall"),text:(0,p.js)(e.t0)});case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(oi||(oi=pi(['\n :host {\n display: block;\n }\n ha-card {\n display: block;\n margin-bottom: 16px;\n }\n ha-card.warning {\n background-color: var(--error-color);\n color: white;\n }\n ha-card.warning .card-header {\n color: white;\n }\n ha-card.warning .card-content {\n color: white;\n }\n ha-card.warning mwc-button {\n --mdc-theme-primary: white !important;\n }\n .warning {\n color: var(--error-color);\n --mdc-theme-primary: var(--error-color);\n }\n .light-color {\n color: var(--secondary-text-color);\n }\n .addon-header {\n padding-left: 8px;\n font-size: 24px;\n color: var(--ha-card-header-color, --primary-text-color);\n }\n .addon-version {\n float: right;\n font-size: 15px;\n vertical-align: middle;\n }\n .errors {\n color: var(--error-color);\n margin-bottom: 16px;\n }\n .description {\n margin-bottom: 16px;\n }\n img.logo {\n max-width: 100%;\n max-height: 60px;\n margin: 16px 0;\n display: block;\n }\n\n ha-switch {\n display: flex;\n }\n ha-svg-icon.running {\n color: var(--success-color);\n }\n ha-svg-icon.stopped {\n color: var(--error-color);\n }\n ha-call-api-button {\n font-weight: 500;\n color: var(--primary-color);\n }\n protection-enable mwc-button {\n --mdc-theme-primary: white;\n }\n .description a {\n color: var(--primary-color);\n }\n ha-chip {\n text-transform: capitalize;\n --ha-chip-text-color: var(--text-primary-color);\n --ha-chip-background-color: var(--primary-color);\n }\n\n .red {\n --ha-chip-background-color: var(--label-badge-red, #df4c1e);\n }\n .blue {\n --ha-chip-background-color: var(--label-badge-blue, #039be5);\n }\n .green {\n --ha-chip-background-color: var(--label-badge-green, #0da035);\n }\n .yellow {\n --ha-chip-background-color: var(--label-badge-yellow, #f4b400);\n }\n .capabilities {\n margin-bottom: 16px;\n }\n .card-actions {\n justify-content: space-between;\n display: flex;\n }\n .changelog {\n display: contents;\n }\n .changelog-link {\n color: var(--primary-color);\n text-decoration: underline;\n cursor: pointer;\n }\n ha-markdown {\n padding: 16px;\n }\n ha-settings-row {\n padding: 0;\n height: 54px;\n width: 100%;\n }\n ha-settings-row > span[slot="description"] {\n white-space: normal;\n color: var(--secondary-text-color);\n }\n ha-settings-row[three-line] {\n height: 74px;\n }\n\n .addon-options {\n max-width: 90%;\n }\n\n .addon-container {\n display: grid;\n grid-auto-flow: column;\n grid-template-columns: 60% 40%;\n }\n\n .addon-container > div:last-of-type {\n align-self: end;\n }\n\n ha-alert mwc-button {\n --mdc-theme-primary: var(--primary-text-color);\n }\n a {\n text-decoration: none;\n }\n\n update-available-card {\n padding-bottom: 16px;\n }\n\n @media (max-width: 720px) {\n ha-chip {\n line-height: 36px;\n }\n .addon-options {\n max-width: 100%;\n }\n .addon-container {\n display: block;\n }\n }\n '])))]}}]}}),n.oi);function Hi(e){return Hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hi(e)}function Mi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Vi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ii(e,t){return Ii=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ii(e,t)}function Li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ui(e);if(t){var i=Ui(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Fi(this,r)}}function Fi(e,t){if(t&&("object"===Hi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bi(e)}function Bi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ui(e){return Ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ui(e)}function Ni(){Ni=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ki(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r","\n \n ",'\n
\n ','\n
\n
\n ',""])),this._error):"",this._content?(0,n.dy)(Xi||(Xi=ro([""])),this._content):"",this._refresh,this.supervisor.localize("common.refresh"))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(eo||(eo=ro(["\n :host,\n ha-card {\n display: block;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(i=io(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,u.kr)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.logs.get_logs","error",(0,p.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_refresh",value:(r=io(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._loadData();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]}}),n.oi);function Co(e){return Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Co(e)}function xo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Po(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oo(e,t){return Oo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Oo(e,t)}function So(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=jo(e);if(t){var i=jo(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ao(this,r)}}function Ao(e,t){if(t&&("object"===Co(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Do(e)}function Do(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jo(e){return jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jo(e)}function To(){To=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ho(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this._error);if(!this.addon)return(0,n.dy)(ra||(ra=ca([""])));var e=[{translationKey:"addon.panel.info",path:"/hassio/addon/".concat(this.addon.slug,"/info"),iconPath:"M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z"}];this.addon.documentation&&e.push({translationKey:"addon.panel.documentation",path:"/hassio/addon/".concat(this.addon.slug,"/documentation"),iconPath:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"}),this.addon.version&&e.push({translationKey:"addon.panel.configuration",path:"/hassio/addon/".concat(this.addon.slug,"/config"),iconPath:"M15.9,18.45C17.25,18.45 18.35,17.35 18.35,16C18.35,14.65 17.25,13.55 15.9,13.55C14.54,13.55 13.45,14.65 13.45,16C13.45,17.35 14.54,18.45 15.9,18.45M21.1,16.68L22.58,17.84C22.71,17.95 22.75,18.13 22.66,18.29L21.26,20.71C21.17,20.86 21,20.92 20.83,20.86L19.09,20.16C18.73,20.44 18.33,20.67 17.91,20.85L17.64,22.7C17.62,22.87 17.47,23 17.3,23H14.5C14.32,23 14.18,22.87 14.15,22.7L13.89,20.85C13.46,20.67 13.07,20.44 12.71,20.16L10.96,20.86C10.81,20.92 10.62,20.86 10.54,20.71L9.14,18.29C9.05,18.13 9.09,17.95 9.22,17.84L10.7,16.68L10.65,16L10.7,15.31L9.22,14.16C9.09,14.05 9.05,13.86 9.14,13.71L10.54,11.29C10.62,11.13 10.81,11.07 10.96,11.13L12.71,11.84C13.07,11.56 13.46,11.32 13.89,11.15L14.15,9.29C14.18,9.13 14.32,9 14.5,9H17.3C17.47,9 17.62,9.13 17.64,9.29L17.91,11.15C18.33,11.32 18.73,11.56 19.09,11.84L20.83,11.13C21,11.07 21.17,11.13 21.26,11.29L22.66,13.71C22.75,13.86 22.71,14.05 22.58,14.16L21.1,15.31L21.15,16L21.1,16.68M6.69,8.07C7.56,8.07 8.26,7.37 8.26,6.5C8.26,5.63 7.56,4.92 6.69,4.92A1.58,1.58 0 0,0 5.11,6.5C5.11,7.37 5.82,8.07 6.69,8.07M10.03,6.94L11,7.68C11.07,7.75 11.09,7.87 11.03,7.97L10.13,9.53C10.08,9.63 9.96,9.67 9.86,9.63L8.74,9.18L8,9.62L7.81,10.81C7.79,10.92 7.7,11 7.59,11H5.79C5.67,11 5.58,10.92 5.56,10.81L5.4,9.62L4.64,9.18L3.5,9.63C3.41,9.67 3.3,9.63 3.24,9.53L2.34,7.97C2.28,7.87 2.31,7.75 2.39,7.68L3.34,6.94L3.31,6.5L3.34,6.06L2.39,5.32C2.31,5.25 2.28,5.13 2.34,5.03L3.24,3.47C3.3,3.37 3.41,3.33 3.5,3.37L4.63,3.82L5.4,3.38L5.56,2.19C5.58,2.08 5.67,2 5.79,2H7.59C7.7,2 7.79,2.08 7.81,2.19L8,3.38L8.74,3.82L9.86,3.37C9.96,3.33 10.08,3.37 10.13,3.47L11.03,5.03C11.09,5.13 11.07,5.25 11,5.32L10.03,6.06L10.06,6.5L10.03,6.94Z"},{translationKey:"addon.panel.log",path:"/hassio/addon/".concat(this.addon.slug,"/logs"),iconPath:"M18 7C16.9 7 16 7.9 16 9V15C16 16.1 16.9 17 18 17H20C21.1 17 22 16.1 22 15V11H20V15H18V9H22V7H18M2 7V17H8V15H4V7H2M11 7C9.9 7 9 7.9 9 9V15C9 16.1 9.9 17 11 17H13C14.1 17 15 16.1 15 15V9C15 7.9 14.1 7 13 7H11M11 9H13V15H11V9Z"});var t=this._computeTail(this.route);return(0,n.dy)(na||(na=ca(["\n ',"\n \n \n "])),this.hass,this.supervisor.localize,this.narrow,t,e,this.addon.name,t,this.narrow,this.hass,this.supervisor,this.addon)}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(ia||(ia=ca(["\n :host {\n color: var(--primary-text-color);\n }\n .content {\n padding: 24px 0 32px;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n width: 600px;\n }\n hassio-addon-logs {\n max-width: calc(100% - 8px);\n min-width: 600px;\n }\n @media only screen and (max-width: 600px) {\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config,\n hassio-addon-logs {\n max-width: 100%;\n min-width: 100%;\n }\n }\n "])))]}},{kind:"method",key:"firstUpdated",value:(m=sa(regeneratorRuntime.mark((function e(){var t,r,n,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==this.route.path){e.next=8;break}if(!(t=(0,d.io)("addon"))){e.next=8;break}return e.next=5,(0,u.yt)(this.hass);case 5:r=e.sent,n=r.addons.some((function(e){return e.slug===t})),n?(0,l.c)("/hassio/addon/".concat(t),{replace:!0}):this._error=this.supervisor.localize("my.error_addon_not_found");case 8:this.addEventListener("hass-api-called",(function(e){return i._apiCalled(e)}));case 9:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{kind:"method",key:"_apiCalled",value:(i=sa(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.detail.success){e.next=2;break}return e.abrupt("return");case 2:if((n=null===(r=t.detail.path)||void 0===r?void 0:r.split("/"))&&0!==n.length){e.next=5;break}return e.abrupt("return");case 5:if(i=n[n.length-1],["uninstall","install","update","start","stop"].includes(i)&&(0,c.B)(this,"supervisor-collection-refresh",{collection:"supervisor"}),"uninstall"!==i){e.next=11;break}window.history.back(),e.next=13;break;case 11:return e.next=13,this._routeDataChanged();case 13:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"updated",value:function(e){e.has("route")&&!this.addon&&this._routeDataChanged()}},{kind:"method",key:"_routeDataChanged",value:(r=sa(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.route.path.split("/")[1]){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,(0,u.AD)(this.hass,t);case 6:r=e.sent,this.addon=r,e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),this._error="Error fetching addon info: ".concat((0,p.js)(e.t0)),this.addon=void 0;case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi)}}]); \ No newline at end of file +"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[144],{58144:function(e,t,r){r.r(t);var n=r(37500),i=r(26767),o=r(5701),a=r(17717),s=r(14516),c=r(47181),l=r(83849),d=r(15493),u=(r(34552),r(34154)),p=r(41682),f=(r(48811),r(21625),r(50054),r(11654)),h=r(55677),m=(r(51187),r(29339),r(53973),r(11488),r(61740),r(98762),r(9381),r(22098),r(20258)),v=r(26765);function y(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}var b,g,w,k,E,_=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r,n,i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.g7)(t,{title:n.localize("common.restart_name","name",i.name),text:n.localize("dialog.restart_addon.text"),confirmText:n.localize("dialog.restart_addon.confirm_text"),dismissText:n.localize("common.cancel")});case 2:if(!e.sent){e.next=12;break}return e.prev=4,e.next=7,(0,u.P$)(r,i.slug);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),(0,v.Ys)(t,{title:n.localize("common.failed_to_restart_name","name",i.name),text:(0,p.js)(e.t0)});case 12:case"end":return e.stop()}}),e,null,[[4,9]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){y(o,n,i,a,s,"next",e)}function s(e){y(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e,r,n,i){return t.apply(this,arguments)}}();function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function x(e){return function(e){if(Array.isArray(e))return U(e)}(e)||N(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){P(o,n,i,a,s,"next",e)}function s(e){P(o,n,i,a,s,"throw",e)}a(void 0)}))}}function S(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=$(e);if(t){var i=$(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z(e)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(){R=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!V(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n
\n
\n ',""])),this._error):"",this.supervisor.localize("addon.configuration.audio.input"),this._setInputDevice,this._selectedInput,this._inputDevices&&this._inputDevices.map((function(e){return(0,n.dy)(w||(w=S(["\n \n ","\n \n "])),e.device||"",e.name)})),this.supervisor.localize("addon.configuration.audio.output"),this._setOutputDevice,this._selectedOutput,this._outputDevices&&this._outputDevices.map((function(e){return(0,n.dy)(k||(k=S(["\n ","\n "])),e.device||"",e.name)})),this._saveSettings,this.supervisor.localize("common.save"))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(E||(E=S(["\n :host,\n ha-card,\n paper-dropdown-menu {\n display: block;\n }\n paper-item {\n width: 450px;\n }\n .card-actions {\n text-align: right;\n }\n "])))]}},{kind:"method",key:"update",value:function(e){Z($(s.prototype),"update",this).call(this,e),e.has("addon")&&this._addonChanged()}},{kind:"method",key:"_setInputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedInput=t}},{kind:"method",key:"_setOutputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedOutput=t}},{kind:"method",key:"_addonChanged",value:(i=O(regeneratorRuntime.mark((function e(){var t,r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._selectedInput=null===this.addon.audio_input?"default":this.addon.audio_input,this._selectedOutput=null===this.addon.audio_output?"default":this.addon.audio_output,!this._outputDevices){e.next=4;break}return e.abrupt("return");case 4:return t={device:"default",name:this.supervisor.localize("addon.configuration.audio.default")},e.prev=5,e.next=8,(0,m.G)(this.hass);case 8:r=e.sent,n=r.audio,i=Object.keys(n.input).map((function(e){return{device:e,name:n.input[e]}})),o=Object.keys(n.output).map((function(e){return{device:e,name:n.output[e]}})),this._inputDevices=[t].concat(x(i)),this._outputDevices=[t].concat(x(o)),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(5),this._error="Failed to fetch audio hardware",this._inputDevices=[t],this._outputDevices=[t];case 21:case"end":return e.stop()}}),e,this,[[5,16]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_saveSettings",value:(r=O(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={audio_input:"default"===this._selectedInput?null:this._selectedInput,audio_output:"default"===this._selectedOutput?null:this._selectedOutput},e.prev=4,e.next=7,(0,u.d3)(this.hass,this.addon.slug,n);case 7:if("started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=10;break}return e.next=10,_(this,this.hass,this.supervisor,this.addon);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),this._error="Failed to set addon audio device";case 15:r.progress=!1;case 16:case"end":return e.stop()}}),e,this,[[4,12]])}))),function(e){return r.apply(this,arguments)})}]}}),n.oi),r(87724);var K,Q=r(77426),Y=r(67352);r(81545),r(94254),r(83927),r(66255),r(31585);function W(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}var q,G=function(){var e,t=(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return K||(K=Promise.all([r.e(37),r.e(914)]).then(r.bind(r,92914))),e.abrupt("return",K);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){W(o,n,i,a,s,"next",e)}function s(e){W(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function X(e){return function(e){if(Array.isArray(e))return he(e)}(e)||me(e)||fe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(e,t){return re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},re(e,t)}function ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ye(e);if(t){var i=ye(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ie(this,r)}}function ie(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oe(e)}function oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(){ae=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!le(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r",'\n \n
\n

\n ','\n

\n
\n \n \n \n ','\n \n \n
\n
\n\n
\n ',"\n ","\n ","\n
\n ",'\n
\n ',""])),this._error):"",!this._yamlMode||this._canShowSchema&&this.addon.schema||this._valid?"":(0,n.dy)(Ue||(Ue=Ye(['\n \n ',"\n \n "])),this.supervisor.localize("addon.configuration.options.invalid_yaml")),t?(0,n.dy)(Ne||(Ne=Ye(['=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n \n \n \n \n ",'\n \n
\n ","\n \n ","\n ","
\n
\n
\n ',""])),this._error):"",this.supervisor.localize("addon.configuration.network.container"),this.supervisor.localize("addon.configuration.network.host"),this.supervisor.localize("common.description"),this._config.map((function(t){return(0,n.dy)(ft||(ft=wt(["\n \n ","\n \n \n \n ","\n \n "])),t.container,e._configChanged,e.supervisor.localize("addon.configuration.network.disabled"),t.host?String(t.host):"",t.container,e._computeDescription(t))})),this._resetTapped,this.supervisor.localize("common.reset_defaults"),this._saveTapped,this.supervisor.localize("common.save")):(0,n.dy)(dt||(dt=wt([""])))}},{kind:"method",key:"update",value:function(e){Rt(Ht(l.prototype),"update",this).call(this,e),e.has("addon")&&this._setNetworkConfig()}},{kind:"field",key:"_computeDescription",value:function(){var e=this;return function(t){var r,n,i,o,a,s;return(null===(r=e.addon.translations[e.hass.language])||void 0===r||null===(n=r.network)||void 0===n||null===(i=n[t.container])||void 0===i?void 0:i.description)||(null===(o=e.addon.translations.en)||void 0===o||null===(a=o.network)||void 0===a||null===(s=a[t.container])||void 0===s?void 0:s.description)||t.description}}},{kind:"method",key:"_setNetworkConfig",value:function(){var e=this.addon.network||{},t=this.addon.network_description||{},r=Object.keys(e).map((function(r){return{container:r,host:e[r],description:t[r]}}));this._config=r.sort((function(e,t){return e.container>t.container?1:-1}))}},{kind:"method",key:"_configChanged",value:(s=gt(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.target,this._config.forEach((function(e){e.container===r.container&&e.host!==parseInt(String(r.value),10)&&(e.host=r.value?parseInt(String(r.value),10):null)}));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{kind:"method",key:"_resetTapped",value:(i=gt(regeneratorRuntime.mark((function e(t){var r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,n={network:null},e.prev=3,e.next=6,(0,u.d3)(this.hass,this.addon.slug,n);case 6:if(o={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",o),"started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=11;break}return e.next=11,_(this,this.hass,this.supervisor,this.addon);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),this._error=this.supervisor.localize("addon.failed_to_reset","error",(0,p.js)(e.t0));case 16:r.progress=!1;case 17:case"end":return e.stop()}}),e,this,[[3,13]])}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"_saveTapped",value:(r=gt(regeneratorRuntime.mark((function e(t){var r,n,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={},this._config.forEach((function(e){n[e.container]=parseInt(String(e.host),10)})),i={network:n},e.prev=6,e.next=9,(0,u.d3)(this.hass,this.addon.slug,i);case 9:if(a={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",a),"started"!==(null===(o=this.addon)||void 0===o?void 0:o.state)){e.next=14;break}return e.next=14,_(this,this.hass,this.supervisor,this.addon);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,p.js)(e.t0));case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[6,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(ht||(ht=wt(["\n :host {\n display: block;\n }\n ha-card {\n display: block;\n }\n .card-actions {\n display: flex;\n justify-content: space-between;\n }\n "])))]}}]}}),n.oi);var Mt,Vt,It,Lt,Ft,Bt,Ut,Nt=r(18199);function Zt(e){return Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zt(e)}function $t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qt(e,t){return Qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Qt(e,t)}function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Gt(e);if(t){var i=Gt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Wt(this,r)}}function Wt(e,t){if(t&&("object"===Zt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qt(e)}function qt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gt(e){return Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gt(e)}function Jt(){Jt=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!tr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])));var e=this.addon.options&&Object.keys(this.addon.options).length||this.addon.schema&&Object.keys(this.addon.schema).length;return(0,n.dy)(Vt||(Vt=$t(['\n
\n ',"\n
\n "])),e||this.addon.network||this.addon.audio?(0,n.dy)(It||(It=$t(["\n ","\n ","\n ","\n "])),e?(0,n.dy)(Lt||(Lt=$t(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.network?(0,n.dy)(Ft||(Ft=$t(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.audio?(0,n.dy)(Bt||(Bt=$t(["\n \n "])),this.hass,this.addon,this.supervisor):""):this.supervisor.localize("addon.configuration.no_configuration"))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(Ut||(Ut=$t(["\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n }\n "])))]}}]}}),n.oi),r(93546);function pr(e){return pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(e)}function fr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function hr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function mr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){hr(o,n,i,a,s,"next",e)}function s(e){hr(o,n,i,a,s,"throw",e)}a(void 0)}))}}function vr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yr(e,t){return yr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yr(e,t)}function br(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Dr(e);if(t){var i=Dr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return gr(this,r)}}function gr(e,t){if(t&&("object"===pr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wr(e)}function wr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kr(){kr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Cr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n ','\n
\n ',"\n
\n
\n
\n "])),this._error?(0,n.dy)(cr||(cr=fr(['',""])),this._error):"",this._content?(0,n.dy)(lr||(lr=fr([""])),this._content):(0,n.dy)(dr||(dr=fr([""])))):(0,n.dy)(ar||(ar=fr([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(ur||(ur=fr(["\n ha-card {\n display: block;\n }\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n ha-markdown {\n padding: 16px;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(r=mr(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,u.ii)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.documentation.get_logs","error",(0,p.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi);var jr,Tr,zr=r(8636),Rr=r(63864);function Hr(e){return Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr(e)}function Mr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function Vr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lr(e,t){return Lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Lr(e,t)}function Fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Nr(e);if(t){var i=Nr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Br(this,r)}}function Br(e,t){if(t&&("object"===Hr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ur(e)}function Ur(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nr(e){return Nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nr(e)}function Zr(){Zr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Qr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r
\n "])),this.progress,this._buttonTapped,this.disabled)}},{kind:"method",key:"_buttonTapped",value:(r=regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.progress=!0,t={method:this.method,path:this.path,data:this.data},e.prev=2,e.next=5,this.hass.callApi(this.method,this.path,this.data);case 5:r=e.sent,this.progress=!1,this._progressButton.actionSuccess(),t.success=!0,t.response=r,e.next=18;break;case 12:e.prev=12,e.t0=e.catch(2),this.progress=!1,this._progressButton.actionError(),t.success=!1,t.response=e.t0;case 18:(0,c.B)(this,"hass-api-called",t);case 19:case"end":return e.stop()}}),e,this,[[2,12]])})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){Mr(o,n,i,a,s,"next",e)}function s(e){Mr(o,n,i,a,s,"throw",e)}a(void 0)}))},function(){return i.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(Tr||(Tr=Vr(["\n :host([disabled]) {\n pointer-events: none;\n }\n "])))}}]}}),n.oi);customElements.define("ha-call-api-button",Jr);var Xr,en,tn,rn=r(67182);function nn(e){return nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn(e)}function on(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function an(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sn(e,t){return sn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sn(e,t)}function cn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=un(e);if(t){var i=un(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ln(this,r)}}function ln(e,t){if(t&&("object"===nn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dn(e)}function dn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function un(e){return un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},un(e)}function pn(){pn=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!mn(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ','\n
\n \n \n \n \n \n
\n '])),this.noText?"no-text":"",this.hasIcon?(0,n.dy)(en||(en=on(['
\n \n
']))):null)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(tn||(tn=on(["\n ","\n .mdc-chip {\n background-color: var(\n --ha-chip-background-color,\n rgba(var(--rgb-primary-text-color), 0.15)\n );\n color: var(--ha-chip-text-color, var(--primary-text-color));\n }\n\n .mdc-chip.no-text {\n padding: 0 10px;\n }\n\n .mdc-chip:hover {\n color: var(--ha-chip-text-color, var(--primary-text-color));\n }\n\n .mdc-chip__icon--leading {\n --mdc-icon-size: 20px;\n color: var(--ha-chip-icon-color, var(--ha-chip-text-color));\n }\n .mdc-chip.no-text\n .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden) {\n margin-right: -4px;\n }\n "])),(0,n.$m)(rn))}}]}}),n.oi),r(14089),r(52039);var wn,kn,En,_n,Cn,xn,Pn,On,Sn,An,Dn,jn,Tn,zn,Rn,Hn,Mn,Vn,In,Ln,Fn,Bn,Un,Nn,Zn,$n,Kn,Qn,Yn,Wn,qn,Gn,Jn,Xn,ei,ti,ri,ni,ii,oi,ai=r(70203),si=(r(46586),r(21050),function(e,t){(0,c.B)(e,"show-dialog",{dialogTag:"dialog-hassio-markdown",dialogImport:function(){return r.e(884).then(r.bind(r,56884))},dialogParams:t})}),ci=(r(65180),r(34450));function li(e){return li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},li(e)}function di(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function ui(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){di(o,n,i,a,s,"next",e)}function s(e){di(o,n,i,a,s,"throw",e)}a(void 0)}))}}function pi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function fi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hi(e,t){return hi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hi(e,t)}function mi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Oi(e);if(t){var i=Oi(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return vi(this,r)}}function vi(e,t){if(t&&("object"===li(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yi(e)}function yi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bi(){bi=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!ki(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
\n
\n ','\n
\n ','\n
\n
\n
\n ','\n
\n\n
\n ',"\n\n \n \n\n
\n ',".
\n ",'\n
\n
\n
\n ',"\n ","\n
\n
\n ","\n
\n
\n ","\n ",'\n
\n
\n
\n ',"\n
\n
\n ","\n
\n
\n \n\n ","\n "])),this.addon.update_available?(0,n.dy)(kn||(kn=pi(["\n \n "])),this.hass,this.narrow,this.supervisor,this.addon.slug,this._updateComplete):"",this.addon.protected?"":(0,n.dy)(En||(En=pi(['\n \n (',")\n
\n "])),this.addon.version,this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,n.dy)(Sn||(Sn=pi(['\n \n \n \n \n \n \n \n \n \n ',""])),this.addon.url,this.addon.name)),this.addon.logo?(0,n.dy)(Fn||(Fn=pi(['\n \n \n ',"\n \n \n \n\n ","\n ","\n ","\n ","\n
\n "])),(0,zr.$)({"addon-options":!0,started:"started"===this.addon.state}),this.narrow,this.supervisor.localize("addon.dashboard.option.boot.title"),this.supervisor.localize("addon.dashboard.option.boot.description"),this._startOnBootToggled,"auto"===this.addon.boot,"once"!==this.addon.startup?(0,n.dy)(Un||(Un=pi(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.watchdog.title"),this.supervisor.localize("addon.dashboard.option.watchdog.description"),this._watchdogToggled,this.addon.watchdog):"",this.addon.auto_update||null!==(o=this.hass.userData)&&void 0!==o&&o.showAdvanced?(0,n.dy)(Nn||(Nn=pi(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.auto_update.title"),this.supervisor.localize("addon.dashboard.option.auto_update.description"),this._autoUpdateToggled,this.addon.auto_update):"",!this._computeCannotIngressSidebar&&this.addon.ingress?(0,n.dy)(Zn||(Zn=pi(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.ingress_panel.title"),this.supervisor.localize("addon.dashboard.option.ingress_panel.description"),this._panelToggled,this.addon.ingress_panel):"",this._computeUsesProtectedOptions?(0,n.dy)($n||($n=pi(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.protected.title"),this.supervisor.localize("addon.dashboard.option.protected.description"),this._protectionToggled,this.addon.protected):""):"","started"===this.addon.state?(0,n.dy)(Kn||(Kn=pi(["\n ','\n \n '," \n \n ",""])),this.narrow,this.supervisor.localize("addon.dashboard.hostname"),this.addon.hostname,s.map((function(e){var t;return(0,n.dy)(Qn||(Qn=pi(["\n \n "])),e.description,null!==(t=e.value)&&void 0!==t?t:0,e.tooltip)}))):"",this._error?(0,n.dy)(Yn||(Yn=pi(['',""])),this._error):"",this.addon.version||!a||this.addon.available?"":(0,ci.I)(this.supervisor.info.supported_arch,this.addon.arch)?(0,n.dy)(qn||(qn=pi(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_version","core_version_installed",this.supervisor.core.version,"core_version_needed",a.homeassistant)):(0,n.dy)(Wn||(Wn=pi(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch")),this.addon.version?this._computeIsRunning?(0,n.dy)(Gn||(Gn=pi(['\n \n \n \n ',"\n \n \n "])),this._pathWebui,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._computeShowIngressUI?(0,n.dy)(ri||(ri=pi(["\n \n ","\n \n "])),this._openIngress,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._uninstallClicked,this.supervisor.localize("addon.dashboard.uninstall"),this.addon.build?(0,n.dy)(ni||(ni=pi(['\n \n ',"\n \n "])),this.hass,this.addon.slug,this.supervisor.localize("addon.dashboard.rebuild")):""):"",this.addon.long_description?(0,n.dy)(ii||(ii=pi(['\n \n
\n '),"icon_experimental",''),"icon_deprecated",'')):this.supervisor.localize("addon.dashboard.capability.".concat(t,".description"))})}},{kind:"get",key:"_computeIsRunning",value:function(){var e;return"started"===(null===(e=this.addon)||void 0===e?void 0:e.state)}},{kind:"get",key:"_pathWebui",value:function(){return this.addon.webui&&this.addon.webui.replace("[HOST]",document.location.hostname)}},{kind:"get",key:"_computeShowWebUI",value:function(){return!this.addon.ingress&&this.addon.webui&&this._computeIsRunning}},{kind:"method",key:"_openIngress",value:function(){(0,l.c)("/hassio/ingress/".concat(this.addon.slug))}},{kind:"get",key:"_computeShowIngressUI",value:function(){return this.addon.ingress&&this._computeIsRunning}},{kind:"get",key:"_computeCannotIngressSidebar",value:function(){return!this.addon.ingress||!(0,Rr.I)(this.hass.config.version,0,92)}},{kind:"get",key:"_computeUsesProtectedOptions",value:function(){return this.addon.docker_api||this.addon.full_access||this.addon.host_pid}},{kind:"method",key:"_startOnBootToggled",value:(_=ui(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={boot:"auto"===this.addon.boot?"manual":"auto"},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,p.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return _.apply(this,arguments)})},{kind:"method",key:"_watchdogToggled",value:(E=ui(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={watchdog:!this.addon.watchdog},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,p.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return E.apply(this,arguments)})},{kind:"method",key:"_autoUpdateToggled",value:(k=ui(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={auto_update:!this.addon.auto_update},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,p.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return k.apply(this,arguments)})},{kind:"method",key:"_protectionToggled",value:(w=ui(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={protected:!this.addon.protected},e.prev=2,e.next=5,(0,u.NI)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"security"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,p.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return w.apply(this,arguments)})},{kind:"method",key:"_panelToggled",value:(g=ui(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={ingress_panel:!this.addon.ingress_panel},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,p.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return g.apply(this,arguments)})},{kind:"method",key:"_openChangelog",value:(b=ui(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.CH)(this.hass,this.addon.slug);case 3:t=e.sent,si(this,{title:this.supervisor.localize("addon.dashboard.changelog"),content:(0,ci.H)(this.addon,t)}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),(0,v.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.get_changelog"),text:(0,p.js)(e.t0)});case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return b.apply(this,arguments)})},{kind:"method",key:"_updateComplete",value:function(){var e={success:!0,response:void 0,path:"install"};(0,c.B)(this,"hass-api-called",e)}},{kind:"method",key:"_installClicked",value:(y=ui(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.fU)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"install"},(0,c.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,v.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.install"),text:(0,p.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return y.apply(this,arguments)})},{kind:"method",key:"_stopClicked",value:(m=ui(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.ow)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,c.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,v.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.stop"),text:(0,p.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return m.apply(this,arguments)})},{kind:"method",key:"_restartClicked",value:(d=ui(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.P$)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,c.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,v.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.restart"),text:(0,p.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return d.apply(this,arguments)})},{kind:"method",key:"_startClicked",value:(i=ui(regeneratorRuntime.mark((function e(t){var r,n,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.su)(this.hass,this.addon.slug);case 5:if((n=e.sent).valid){e.next=11;break}return e.next=9,(0,v.g7)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start_invalid_config"),text:n.message.split(" Got ")[0],confirm:function(){return o._openConfiguration()},confirmText:this.supervisor.localize("addon.dashboard.action_error.go_to_config"),dismissText:this.supervisor.localize("common.cancel")});case 9:return r.progress=!1,e.abrupt("return");case 11:e.next=18;break;case 13:return e.prev=13,e.t0=e.catch(2),(0,v.Ys)(this,{title:"Failed to validate addon configuration",text:(0,p.js)(e.t0)}),r.progress=!1,e.abrupt("return");case 18:return e.prev=18,e.next=21,(0,u.kP)(this.hass,this.addon.slug);case 21:return e.next=23,(0,u.AD)(this.hass,this.addon.slug);case 23:this.addon=e.sent,i={success:!0,response:void 0,path:"start"},(0,c.B)(this,"hass-api-called",i),e.next=31;break;case 28:e.prev=28,e.t1=e.catch(18),(0,v.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start"),text:(0,p.js)(e.t1)});case 31:r.progress=!1;case 32:case"end":return e.stop()}}),e,this,[[2,13],[18,28]])}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"_openConfiguration",value:function(){(0,l.c)("/hassio/addon/".concat(this.addon.slug,"/config"))}},{kind:"method",key:"_uninstallClicked",value:(r=ui(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.next=4,(0,v.g7)(this,{title:this.addon.name,text:"Are you sure you want to uninstall this add-on?",confirmText:"uninstall add-on",dismissText:"no"});case 4:if(e.sent){e.next=8;break}return r.progress=!1,e.abrupt("return");case 8:return this._error=void 0,e.prev=9,e.next=12,(0,u.Yn)(this.hass,this.addon.slug);case 12:n={success:!0,response:void 0,path:"uninstall"},(0,c.B)(this,"hass-api-called",n),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),(0,v.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.uninstall"),text:(0,p.js)(e.t0)});case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(oi||(oi=pi(['\n :host {\n display: block;\n }\n ha-card {\n display: block;\n margin-bottom: 16px;\n }\n ha-card.warning {\n background-color: var(--error-color);\n color: white;\n }\n ha-card.warning .card-header {\n color: white;\n }\n ha-card.warning .card-content {\n color: white;\n }\n ha-card.warning mwc-button {\n --mdc-theme-primary: white !important;\n }\n .warning {\n color: var(--error-color);\n --mdc-theme-primary: var(--error-color);\n }\n .light-color {\n color: var(--secondary-text-color);\n }\n .addon-header {\n padding-left: 8px;\n font-size: 24px;\n color: var(--ha-card-header-color, --primary-text-color);\n }\n .addon-version {\n float: right;\n font-size: 15px;\n vertical-align: middle;\n }\n .errors {\n color: var(--error-color);\n margin-bottom: 16px;\n }\n .description {\n margin-bottom: 16px;\n }\n img.logo {\n max-width: 100%;\n max-height: 60px;\n margin: 16px 0;\n display: block;\n }\n\n ha-switch {\n display: flex;\n }\n ha-svg-icon.running {\n color: var(--success-color);\n }\n ha-svg-icon.stopped {\n color: var(--error-color);\n }\n ha-call-api-button {\n font-weight: 500;\n color: var(--primary-color);\n }\n protection-enable mwc-button {\n --mdc-theme-primary: white;\n }\n .description a {\n color: var(--primary-color);\n }\n ha-chip {\n text-transform: capitalize;\n --ha-chip-text-color: var(--text-primary-color);\n --ha-chip-background-color: var(--primary-color);\n }\n\n .red {\n --ha-chip-background-color: var(--label-badge-red, #df4c1e);\n }\n .blue {\n --ha-chip-background-color: var(--label-badge-blue, #039be5);\n }\n .green {\n --ha-chip-background-color: var(--label-badge-green, #0da035);\n }\n .yellow {\n --ha-chip-background-color: var(--label-badge-yellow, #f4b400);\n }\n .capabilities {\n margin-bottom: 16px;\n }\n .card-actions {\n justify-content: space-between;\n display: flex;\n }\n .changelog {\n display: contents;\n }\n .changelog-link {\n color: var(--primary-color);\n text-decoration: underline;\n cursor: pointer;\n }\n ha-markdown {\n padding: 16px;\n }\n ha-settings-row {\n padding: 0;\n height: 54px;\n width: 100%;\n }\n ha-settings-row > span[slot="description"] {\n white-space: normal;\n color: var(--secondary-text-color);\n }\n ha-settings-row[three-line] {\n height: 74px;\n }\n\n .addon-options {\n max-width: 90%;\n }\n\n .addon-container {\n display: grid;\n grid-auto-flow: column;\n grid-template-columns: 60% 40%;\n }\n\n .addon-container > div:last-of-type {\n align-self: end;\n }\n\n ha-alert mwc-button {\n --mdc-theme-primary: var(--primary-text-color);\n }\n a {\n text-decoration: none;\n }\n\n update-available-card {\n padding-bottom: 16px;\n }\n\n @media (max-width: 720px) {\n ha-chip {\n line-height: 36px;\n }\n .addon-options {\n max-width: 100%;\n }\n .addon-container {\n display: block;\n }\n }\n '])))]}}]}}),n.oi);function Hi(e){return Hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hi(e)}function Mi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Vi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ii(e,t){return Ii=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ii(e,t)}function Li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ui(e);if(t){var i=Ui(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Fi(this,r)}}function Fi(e,t){if(t&&("object"===Hi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bi(e)}function Bi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ui(e){return Ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ui(e)}function Ni(){Ni=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ki(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r","\n \n ",'\n
\n ','\n
\n
\n ',""])),this._error):"",this._content?(0,n.dy)(Xi||(Xi=ro([""])),this._content):"",this._refresh,this.supervisor.localize("common.refresh"))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(eo||(eo=ro(["\n :host,\n ha-card {\n display: block;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(i=io(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,u.kr)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.logs.get_logs","error",(0,p.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_refresh",value:(r=io(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._loadData();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]}}),n.oi);function Co(e){return Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Co(e)}function xo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Po(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oo(e,t){return Oo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Oo(e,t)}function So(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=jo(e);if(t){var i=jo(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ao(this,r)}}function Ao(e,t){if(t&&("object"===Co(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Do(e)}function Do(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jo(e){return jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jo(e)}function To(){To=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ho(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this._error);if(!this.addon)return(0,n.dy)(ra||(ra=ca([""])));var e=[{translationKey:"addon.panel.info",path:"/hassio/addon/".concat(this.addon.slug,"/info"),iconPath:"M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z"}];this.addon.documentation&&e.push({translationKey:"addon.panel.documentation",path:"/hassio/addon/".concat(this.addon.slug,"/documentation"),iconPath:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"}),this.addon.version&&e.push({translationKey:"addon.panel.configuration",path:"/hassio/addon/".concat(this.addon.slug,"/config"),iconPath:"M15.9,18.45C17.25,18.45 18.35,17.35 18.35,16C18.35,14.65 17.25,13.55 15.9,13.55C14.54,13.55 13.45,14.65 13.45,16C13.45,17.35 14.54,18.45 15.9,18.45M21.1,16.68L22.58,17.84C22.71,17.95 22.75,18.13 22.66,18.29L21.26,20.71C21.17,20.86 21,20.92 20.83,20.86L19.09,20.16C18.73,20.44 18.33,20.67 17.91,20.85L17.64,22.7C17.62,22.87 17.47,23 17.3,23H14.5C14.32,23 14.18,22.87 14.15,22.7L13.89,20.85C13.46,20.67 13.07,20.44 12.71,20.16L10.96,20.86C10.81,20.92 10.62,20.86 10.54,20.71L9.14,18.29C9.05,18.13 9.09,17.95 9.22,17.84L10.7,16.68L10.65,16L10.7,15.31L9.22,14.16C9.09,14.05 9.05,13.86 9.14,13.71L10.54,11.29C10.62,11.13 10.81,11.07 10.96,11.13L12.71,11.84C13.07,11.56 13.46,11.32 13.89,11.15L14.15,9.29C14.18,9.13 14.32,9 14.5,9H17.3C17.47,9 17.62,9.13 17.64,9.29L17.91,11.15C18.33,11.32 18.73,11.56 19.09,11.84L20.83,11.13C21,11.07 21.17,11.13 21.26,11.29L22.66,13.71C22.75,13.86 22.71,14.05 22.58,14.16L21.1,15.31L21.15,16L21.1,16.68M6.69,8.07C7.56,8.07 8.26,7.37 8.26,6.5C8.26,5.63 7.56,4.92 6.69,4.92A1.58,1.58 0 0,0 5.11,6.5C5.11,7.37 5.82,8.07 6.69,8.07M10.03,6.94L11,7.68C11.07,7.75 11.09,7.87 11.03,7.97L10.13,9.53C10.08,9.63 9.96,9.67 9.86,9.63L8.74,9.18L8,9.62L7.81,10.81C7.79,10.92 7.7,11 7.59,11H5.79C5.67,11 5.58,10.92 5.56,10.81L5.4,9.62L4.64,9.18L3.5,9.63C3.41,9.67 3.3,9.63 3.24,9.53L2.34,7.97C2.28,7.87 2.31,7.75 2.39,7.68L3.34,6.94L3.31,6.5L3.34,6.06L2.39,5.32C2.31,5.25 2.28,5.13 2.34,5.03L3.24,3.47C3.3,3.37 3.41,3.33 3.5,3.37L4.63,3.82L5.4,3.38L5.56,2.19C5.58,2.08 5.67,2 5.79,2H7.59C7.7,2 7.79,2.08 7.81,2.19L8,3.38L8.74,3.82L9.86,3.37C9.96,3.33 10.08,3.37 10.13,3.47L11.03,5.03C11.09,5.13 11.07,5.25 11,5.32L10.03,6.06L10.06,6.5L10.03,6.94Z"},{translationKey:"addon.panel.log",path:"/hassio/addon/".concat(this.addon.slug,"/logs"),iconPath:"M18 7C16.9 7 16 7.9 16 9V15C16 16.1 16.9 17 18 17H20C21.1 17 22 16.1 22 15V11H20V15H18V9H22V7H18M2 7V17H8V15H4V7H2M11 7C9.9 7 9 7.9 9 9V15C9 16.1 9.9 17 11 17H13C14.1 17 15 16.1 15 15V9C15 7.9 14.1 7 13 7H11M11 9H13V15H11V9Z"});var t=this._computeTail(this.route);return(0,n.dy)(na||(na=ca(["\n ',"\n \n \n "])),this.hass,this.supervisor.localize,this.narrow,t,e,this.addon.name,t,this.narrow,this.hass,this.supervisor,this.addon)}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,h.l,(0,n.iv)(ia||(ia=ca(["\n :host {\n color: var(--primary-text-color);\n }\n .content {\n padding: 24px 0 32px;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n width: 600px;\n }\n hassio-addon-logs {\n max-width: calc(100% - 8px);\n min-width: 600px;\n }\n @media only screen and (max-width: 600px) {\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config,\n hassio-addon-logs {\n max-width: 100%;\n min-width: 100%;\n }\n }\n "])))]}},{kind:"method",key:"firstUpdated",value:(m=sa(regeneratorRuntime.mark((function e(){var t,r,n,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==this.route.path){e.next=8;break}if(!(t=(0,d.io)("addon"))){e.next=8;break}return e.next=5,(0,u.yt)(this.hass);case 5:r=e.sent,n=r.addons.some((function(e){return e.slug===t})),n?(0,l.c)("/hassio/addon/".concat(t),{replace:!0}):this._error=this.supervisor.localize("my.error_addon_not_found");case 8:this.addEventListener("hass-api-called",(function(e){return i._apiCalled(e)}));case 9:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{kind:"method",key:"_apiCalled",value:(i=sa(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.detail.success){e.next=2;break}return e.abrupt("return");case 2:if((n=null===(r=t.detail.path)||void 0===r?void 0:r.split("/"))&&0!==n.length){e.next=5;break}return e.abrupt("return");case 5:if(i=n[n.length-1],["uninstall","install","update","start","stop"].includes(i)&&(0,c.B)(this,"supervisor-collection-refresh",{collection:"supervisor"}),"uninstall"!==i){e.next=11;break}window.history.back(),e.next=13;break;case 11:return e.next=13,this._routeDataChanged();case 13:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"updated",value:function(e){e.has("route")&&!this.addon&&this._routeDataChanged()}},{kind:"method",key:"_routeDataChanged",value:(r=sa(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.route.path.split("/")[1]){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,(0,u.AD)(this.hass,t);case 6:r=e.sent,this.addon=r,e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),this._error="Error fetching addon info: ".concat((0,p.js)(e.t0)),this.addon=void 0;case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi)}}]); \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/1d212d54.js.gz b/supervisor/api/panel/frontend_es5/1d212d54.js.gz new file mode 100644 index 000000000..b1566d950 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/1d212d54.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/33b00c5f.js.gz b/supervisor/api/panel/frontend_es5/33b00c5f.js.gz deleted file mode 100644 index 9bdc56adb..000000000 Binary files a/supervisor/api/panel/frontend_es5/33b00c5f.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/39b0c1a9.js.gz b/supervisor/api/panel/frontend_es5/39b0c1a9.js.gz deleted file mode 100644 index 8f12f5188..000000000 Binary files a/supervisor/api/panel/frontend_es5/39b0c1a9.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/8066b1de.js b/supervisor/api/panel/frontend_es5/5522fd5c.js similarity index 70% rename from supervisor/api/panel/frontend_es5/8066b1de.js rename to supervisor/api/panel/frontend_es5/5522fd5c.js index ac7884d4e..a44661dd2 100644 --- a/supervisor/api/panel/frontend_es5/8066b1de.js +++ b/supervisor/api/panel/frontend_es5/5522fd5c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[546],{93546:function(e,t,r){var n,o=r(37500),i=r(26767),a=r(5701),s=r(47181),c=r(93217);function l(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,o)}var u=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,o,i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n||(n=(0,c.Ud)(new Worker(new URL(r.p+r.u(971),r.b)))),e.abrupt("return",n.renderMarkdown(t,o,i));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,s,"next",e)}function s(e){l(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,o)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=C(e);if(t){var o=C(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){w=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var o=t.placement;if(t.kind===n&&("static"===o||"prototype"===o)){var i="static"===o?e:r;this.defineClassElement(i,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],o={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,o)}),this),e.forEach((function(e){if(!g(e))return r.push(e);var t=this.decorateElement(e,o);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var i=this.decorateConstructor(r,t);return n.push.apply(n,i.finishers),i.finishers=n,i},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],o=e.decorators,i=o.length-1;i>=0;i--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,o[i])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var o=this.fromClassDescriptor(e),i=this.toClassDescriptor((0,t[n])(o)||o);if(void 0!==i.finisher&&r.push(i.finisher),void 0!==i.elements){e=i.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;i--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,o[i])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var o=this.fromClassDescriptor(e),i=this.toClassDescriptor((0,t[n])(o)||o);if(void 0!==i.finisher&&r.push(i.finisher),void 0!==i.elements){e=i.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this.content,this.allowSvg,this.breaks):(0,o.dy)(A||(A=z([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return(0,o.iv)(x||(x=z(["\n :host {\n display: block;\n }\n ha-markdown-element {\n -ms-user-select: text;\n -webkit-user-select: text;\n -moz-user-select: text;\n }\n ha-markdown-element > *:first-child {\n margin-top: 0;\n }\n ha-markdown-element > *:last-child {\n margin-bottom: 0;\n }\n ha-markdown-element a {\n color: var(--primary-color);\n }\n ha-markdown-element img {\n max-width: 100%;\n }\n ha-markdown-element code,\n pre {\n background-color: var(--markdown-code-background-color, none);\n border-radius: 3px;\n }\n ha-markdown-element svg {\n background-color: var(--markdown-svg-background-color, none);\n color: var(--markdown-svg-color, none);\n }\n ha-markdown-element code {\n font-size: 85%;\n padding: 0.2em 0.4em;\n }\n ha-markdown-element pre code {\n padding: 0;\n }\n ha-markdown-element pre {\n padding: 16px;\n overflow: auto;\n line-height: 1.45;\n font-family: var(--code-font-family, monospace);\n }\n ha-markdown-element h2 {\n font-size: 1.5em;\n font-weight: bold;\n }\n "])))}}]}}),o.oi)}}]); \ No newline at end of file +"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[546],{93546:function(e,t,r){var n,i=r(37500),o=r(26767),a=r(5701),s=r(47181),c=r(93217);function l(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}var u=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,i,o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n||(n=(0,c.Ud)(new Worker(new URL(r.p+r.u(971),r.b)))),e.abrupt("return",n.renderMarkdown(t,i,o));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){l(o,n,i,a,s,"next",e)}function s(e){l(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=C(e);if(t){var i=C(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){w=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!g(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this.content,this.allowSvg,this.breaks):(0,i.dy)(A||(A=z([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(x||(x=z(["\n :host {\n display: block;\n }\n ha-markdown-element {\n -ms-user-select: text;\n -webkit-user-select: text;\n -moz-user-select: text;\n }\n ha-markdown-element > *:first-child {\n margin-top: 0;\n }\n ha-markdown-element > *:last-child {\n margin-bottom: 0;\n }\n a {\n color: var(--primary-color);\n }\n img {\n max-width: 100%;\n }\n code,\n pre {\n background-color: var(--markdown-code-background-color, none);\n border-radius: 3px;\n }\n svg {\n background-color: var(--markdown-svg-background-color, none);\n color: var(--markdown-svg-color, none);\n }\n code {\n font-size: 85%;\n padding: 0.2em 0.4em;\n }\n pre code {\n padding: 0;\n }\n pre {\n padding: 16px;\n overflow: auto;\n line-height: 1.45;\n font-family: var(--code-font-family, monospace);\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n line-height: initial;\n }\n h2 {\n font-size: 1.5em;\n font-weight: bold;\n }\n "])))}}]}}),i.oi)}}]); \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/5522fd5c.js.gz b/supervisor/api/panel/frontend_es5/5522fd5c.js.gz new file mode 100644 index 000000000..fe7f146bb Binary files /dev/null and b/supervisor/api/panel/frontend_es5/5522fd5c.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/f25a18df.js b/supervisor/api/panel/frontend_es5/593814da.js similarity index 100% rename from supervisor/api/panel/frontend_es5/f25a18df.js rename to supervisor/api/panel/frontend_es5/593814da.js diff --git a/supervisor/api/panel/frontend_es5/f25a18df.js.gz b/supervisor/api/panel/frontend_es5/593814da.js.gz similarity index 100% rename from supervisor/api/panel/frontend_es5/f25a18df.js.gz rename to supervisor/api/panel/frontend_es5/593814da.js.gz diff --git a/supervisor/api/panel/frontend_es5/33b00c5f.js b/supervisor/api/panel/frontend_es5/7643a459.js similarity index 98% rename from supervisor/api/panel/frontend_es5/33b00c5f.js rename to supervisor/api/panel/frontend_es5/7643a459.js index 8ba61cb96..835b34ed9 100644 --- a/supervisor/api/panel/frontend_es5/33b00c5f.js +++ b/supervisor/api/panel/frontend_es5/7643a459.js @@ -1,2 +1,2 @@ -/*! For license information please see 33b00c5f.js.LICENSE.txt */ -"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[567],{64529:function(e,t,r){r.r(t);var n,i,o=r(37500),a=r(26767),s=r(5701);r(60010),r(80985);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(){y=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!w(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,i[o])(s)||s);e=l.element,this.addElementPlacement(e,t),l.finisher&&n.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n "])),this.hass,this.narrow,this.route,this.hass,this.supervisor,this.route,this.narrow,this._updateComplete)}},{kind:"method",key:"_updateComplete",value:function(){history.back()}},{kind:"get",static:!0,key:"styles",value:function(){return(0,o.iv)(i||(i=c(["\n hass-subpage {\n --app-header-background-color: var(--primary-background-color);\n --app-header-text-color: var(--sidebar-text-color);\n }\n update-available-card {\n margin: auto;\n margin-top: 16px;\n margin-bottom: 24px;\n max-width: 600px;\n }\n "])))}}]}}),o.oi)},25782:function(e,t,r){r(67034),r(65660),r(70019),r(97968);var n,i,o,a=r(67139),s=r(50856),l=r(33760);(0,a.k)({_template:(0,s.d)(n||(i=['\n \n \n\n
\n \n
\n \n'],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"paper-icon-item",behaviors:[l.U]})}}]); \ No newline at end of file +/*! For license information please see 7643a459.js.LICENSE.txt */ +"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[567],{64529:function(e,t,r){r.r(t);var n,i,o=r(37500),a=r(26767),s=r(5701);r(60010),r(65180);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(){y=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!w(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,i[o])(s)||s);e=l.element,this.addElementPlacement(e,t),l.finisher&&n.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n "])),this.hass,this.narrow,this.route,this.hass,this.supervisor,this.route,this.narrow,this._updateComplete)}},{kind:"method",key:"_updateComplete",value:function(){history.back()}},{kind:"get",static:!0,key:"styles",value:function(){return(0,o.iv)(i||(i=c(["\n hass-subpage {\n --app-header-background-color: var(--primary-background-color);\n --app-header-text-color: var(--sidebar-text-color);\n }\n update-available-card {\n margin: auto;\n margin-top: 16px;\n margin-bottom: 24px;\n max-width: 600px;\n }\n "])))}}]}}),o.oi)},25782:function(e,t,r){r(67034),r(65660),r(70019),r(97968);var n,i,o,a=r(67139),s=r(50856),l=r(33760);(0,a.k)({_template:(0,s.d)(n||(i=['\n \n \n\n
\n \n
\n \n'],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"paper-icon-item",behaviors:[l.U]})}}]); \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/33b00c5f.js.LICENSE.txt b/supervisor/api/panel/frontend_es5/7643a459.js.LICENSE.txt similarity index 100% rename from supervisor/api/panel/frontend_es5/33b00c5f.js.LICENSE.txt rename to supervisor/api/panel/frontend_es5/7643a459.js.LICENSE.txt diff --git a/supervisor/api/panel/frontend_es5/7643a459.js.gz b/supervisor/api/panel/frontend_es5/7643a459.js.gz new file mode 100644 index 000000000..0cd380886 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/7643a459.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/8066b1de.js.gz b/supervisor/api/panel/frontend_es5/8066b1de.js.gz deleted file mode 100644 index 5fd483d79..000000000 Binary files a/supervisor/api/panel/frontend_es5/8066b1de.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/a5a3a80a.js b/supervisor/api/panel/frontend_es5/a5a3a80a.js deleted file mode 100644 index 4a7a785bd..000000000 --- a/supervisor/api/panel/frontend_es5/a5a3a80a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[985],{80985:function(e,t,r){r(87724);var n,i,o=r(37500),s=r(26767),a=r(5701),c=r(17717),l=r(14516),u=r(47181),d=(r(7164),r(98762),r(9381),r(81545),r(22098),r(12497),r(8636));function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var i=O(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){w=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!E(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n '])))}},{kind:"get",static:!0,key:"styles",value:function(){return(0,o.iv)(z||(z=B(["\n :host {\n display: var(--ha-icon-display, inline-flex);\n align-items: center;\n justify-content: center;\n position: relative;\n vertical-align: middle;\n fill: currentcolor;\n width: var(--mdc-icon-size, 24px);\n height: var(--mdc-icon-size, 24px);\n }\n svg {\n width: 100%;\n height: 100%;\n pointer-events: none;\n display: block;\n }\n "])))}}]}}),o.oi);var ee,te,re,ne,ie,oe,se,ae,ce=r(11654);function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function ue(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t){return fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fe(e,t)}function pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ve(e);if(t){var i=ve(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return he(this,r)}}function he(e,t){if(t&&("object"===le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return me(e)}function me(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ve(e){return ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ve(e)}function ye(){ye=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!ge(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n
\n ","\n ","\n "])),this.hass.localize("ui.panel.config.updates.title",{count:this.supervisorUpdates.length}),r.map((function(e){return(0,o.dy)(re||(re=ue(['\n \n \n ',"\n \n \n ","\n
\n ",'\n
\n
\n \n '])),e.icon):(0,o.dy)(ie||(ie=ue([""])),"M2,10.96C1.5,10.68 1.35,10.07 1.63,9.59L3.13,7C3.24,6.8 3.41,6.66 3.6,6.58L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.66,6.72 20.82,6.88 20.91,7.08L22.36,9.6C22.64,10.08 22.47,10.69 22,10.96L21,11.54V16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V10.96C2.7,11.13 2.32,11.14 2,10.96M12,4.15V4.15L12,10.85V10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V12.69L14,15.59C13.67,15.77 13.3,15.76 13,15.6V19.29L19,15.91M13.85,13.36L20.13,9.73L19.55,8.72L13.27,12.35L13.85,13.36Z"):(0,o.dy)(oe||(oe=ue([""]))),"addon"===e.update_type?e.name:Fe[e.update_type],t.hass.localize("ui.panel.config.updates.version_available",{version_available:e.version_latest}),e.panel_path,t.hass.localize("ui.panel.config.updates.show"))})),!this._showAll&&this.supervisorUpdates.length>=4?(0,o.dy)(se||(se=ue(['\n
\n ","\n
\n "])),this.supervisor.localize("update_available.update_name",{name:this._name}),this._error?(0,o.dy)(Ce||(Ce=He(['',""])),this._error):"",this._version===this._version_latest?(0,o.dy)(Oe||(Oe=He(["

\n ","\n

"])),this.supervisor.localize("update_available.no_update",{name:this._name})):null===this._action?(0,o.dy)(Te||(Te=He(["\n ",'\n
\n

\n ',"\n

\n
\n ","\n "])),this._changelogContent?(0,o.dy)(ze||(ze=He(["\n \n \n \n \n "])),this._changelogContent):"",this.supervisor.localize("update_available.description",{name:this._name,version:this._version,newest_version:this._version_latest}),["core","addon"].includes(this._updateType)?(0,o.dy)(Ae||(Ae=He(["\n \n \n \n "])),this.supervisor.localize("update_available.create_backup")):""):(0,o.dy)(De||(De=He(['\n \n

\n ',"\n

"])),"update"===this._action?this.supervisor.localize("update_available.updating",{name:this._name,version:this._version_latest}):this.supervisor.localize("update_available.creating_backup",{name:this._name})),this._version!==this._version_latest&&null===this._action?(0,o.dy)(je||(je=He(['\n
\n ',"\n \n \n ","\n \n
\n "])),t?(0,o.dy)(Re||(Re=He(["
\n =0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n '])))}},{kind:"get",static:!0,key:"styles",value:function(){return(0,o.iv)(j||(j=U(["\n :host {\n display: var(--ha-icon-display, inline-flex);\n align-items: center;\n justify-content: center;\n position: relative;\n vertical-align: middle;\n fill: currentcolor;\n width: var(--mdc-icon-size, 24px);\n height: var(--mdc-icon-size, 24px);\n }\n svg {\n width: 100%;\n height: 100%;\n pointer-events: none;\n display: block;\n }\n "])))}}]}}),o.oi);var ee=r(11654);function te(e){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(e)}function re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e,t){for(var r=0;r=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n \n ","\n ","\n "])),this.hass.localize("ui.panel.config.updates.title",{count:this.supervisorUpdates.length}),r.map((function(e){return(0,o.dy)(de||(de=we(['\n \n \n \n ',"\n \n \n ","\n
\n ","\n
\n
\n ","\n
\n
\n "])),e.panel_path,"addon"===e.update_type?e.icon?(0,o.dy)(fe||(fe=we([''])),e.icon):(0,o.dy)(pe||(pe=we([""])),"M2,10.96C1.5,10.68 1.35,10.07 1.63,9.59L3.13,7C3.24,6.8 3.41,6.66 3.6,6.58L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.66,6.72 20.82,6.88 20.91,7.08L22.36,9.6C22.64,10.08 22.47,10.69 22,10.96L21,11.54V16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V10.96C2.7,11.13 2.32,11.14 2,10.96M12,4.15V4.15L12,10.85V10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V12.69L14,15.59C13.67,15.77 13.3,15.76 13,15.6V19.29L19,15.91M13.85,13.36L20.13,9.73L19.55,8.72L13.27,12.35L13.85,13.36Z"):(0,o.dy)(he||(he=we([""]))),"addon"===e.update_type?e.name:qe[e.update_type],t.hass.localize("ui.panel.config.updates.version_available",{version_available:e.version_latest}),t.narrow?"":(0,o.dy)(me||(me=we([""]))))})),!this._showAll&&this.supervisorUpdates.length>=4?(0,o.dy)(ye||(ye=we(['\n "])),this.handleClick,(0,z.$)(e),this.focus,this.handleBlur,this.handleRippleMouseDown,this.handleRippleMouseEnter,this.handleRippleMouseLeave,this.handleRippleTouchStart,this.handleRippleDeactivate,this.handleRippleDeactivate,t,r,this.isMinWidthIndicator?this.renderIndicator():"",this.isMinWidthIndicator?"":this.renderIndicator(),this.renderRipple())}},{key:"renderIndicator",value:function(){return(0,m.dy)(B||(B=ee([''])),this.indicatorIcon,this.isFadingIndicator)}},{key:"renderRipple",value:function(){return this.shouldRenderRipple?(0,m.dy)(H||(H=ee([''])),this.useStateLayerCustomProperties):""}},{key:"createAdapter",value:function(){var e,t,r=this;return Object.assign(Object.assign({},(0,a.q)(this.mdcRoot)),{setAttr:function(e,t){return r.mdcRoot.setAttribute(e,t)},activateIndicator:(t=Q(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.tabIndicator.updateComplete;case 2:r.tabIndicator.activate(t);case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),deactivateIndicator:(e=Q(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.tabIndicator.updateComplete;case 2:r.tabIndicator.deactivate();case 3:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),notifyInteracted:function(){return r.dispatchEvent(new CustomEvent(K.strings.INTERACTED_EVENT,{detail:{tabId:r.id},bubbles:!0,composed:!0,cancelable:!0}))},getOffsetLeft:function(){return r.offsetLeft},getOffsetWidth:function(){return r.mdcRoot.offsetWidth},getContentOffsetLeft:function(){return r._contentElement.offsetLeft},getContentOffsetWidth:function(){return r._contentElement.offsetWidth},focus:function(){r.initFocus?r.initFocus=!1:r.mdcRoot.focus()}})}},{key:"activate",value:function(e){var t=this;e||(this.initFocus=!0),this.mdcFoundation?(this.mdcFoundation.activate(e),this.setActive(this.mdcFoundation.isActive())):this.updateComplete.then((function(){t.mdcFoundation.activate(e),t.setActive(t.mdcFoundation.isActive())}))}},{key:"deactivate",value:function(){this.mdcFoundation.deactivate(),this.setActive(this.mdcFoundation.isActive())}},{key:"setActive",value:function(e){var t=this.active;t!==e&&(this._active=e,this.requestUpdate("active",t))}},{key:"computeDimensions",value:function(){return this.mdcFoundation.computeDimensions()}},{key:"computeIndicatorClientRect",value:function(){return this.tabIndicator.computeContentClientRect()}},{key:"focus",value:function(){this.mdcRoot.focus(),this.handleFocus()}},{key:"handleClick",value:function(){this.handleFocus(),this.mdcFoundation.handleClick()}},{key:"handleFocus",value:function(){this.handleRippleFocus()}},{key:"handleBlur",value:function(){this.handleRippleBlur()}},{key:"handleRippleMouseDown",value:function(e){var t=this;window.addEventListener("mouseup",(function e(){window.removeEventListener("mouseup",e),t.handleRippleDeactivate()})),this.rippleHandlers.startPress(e)}},{key:"handleRippleTouchStart",value:function(e){this.rippleHandlers.startPress(e)}},{key:"handleRippleDeactivate",value:function(){this.rippleHandlers.endPress()}},{key:"handleRippleMouseEnter",value:function(){this.rippleHandlers.startHover()}},{key:"handleRippleMouseLeave",value:function(){this.rippleHandlers.endHover()}},{key:"handleRippleFocus",value:function(){this.rippleHandlers.startFocus()}},{key:"handleRippleBlur",value:function(){this.rippleHandlers.endFocus()}},{key:"isRippleActive",get:function(){var e;return(null===(e=this.rippleElement)||void 0===e?void 0:e.isActive)||!1}}],r&&re(t.prototype,r),n&&re(t,n),o}(a.H);ue.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,i.__decorate)([(0,y.I)(".mdc-tab")],ue.prototype,"mdcRoot",void 0),(0,i.__decorate)([(0,y.I)("mwc-tab-indicator")],ue.prototype,"tabIndicator",void 0),(0,i.__decorate)([(0,v.C)()],ue.prototype,"label",void 0),(0,i.__decorate)([(0,v.C)()],ue.prototype,"icon",void 0),(0,i.__decorate)([(0,v.C)({type:Boolean})],ue.prototype,"hasImageIcon",void 0),(0,i.__decorate)([(0,v.C)({type:Boolean})],ue.prototype,"isFadingIndicator",void 0),(0,i.__decorate)([(0,v.C)({type:Boolean})],ue.prototype,"minWidth",void 0),(0,i.__decorate)([(0,v.C)({type:Boolean})],ue.prototype,"isMinWidthIndicator",void 0),(0,i.__decorate)([(0,v.C)({type:Boolean,reflect:!0,attribute:"active"})],ue.prototype,"active",null),(0,i.__decorate)([(0,v.C)()],ue.prototype,"indicatorIcon",void 0),(0,i.__decorate)([(0,v.C)({type:Boolean})],ue.prototype,"stacked",void 0),(0,i.__decorate)([(0,Z.P)(function(){var e=Q(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.updateComplete;case 2:this.mdcFoundation.setFocusOnActivate(t);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,v.C)({type:Boolean})],ue.prototype,"focusOnActivate",void 0),(0,i.__decorate)([(0,y.I)(".mdc-tab__content")],ue.prototype,"_contentElement",void 0),(0,i.__decorate)([(0,$.S)()],ue.prototype,"shouldRenderRipple",void 0),(0,i.__decorate)([(0,$.S)()],ue.prototype,"useStateLayerCustomProperties",void 0),(0,i.__decorate)([(0,W.G)("mwc-ripple")],ue.prototype,"ripple",void 0),(0,i.__decorate)([(0,Y.h)({passive:!0})],ue.prototype,"handleRippleTouchStart",null);var de=(0,m.iv)(ce||(ce=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;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"}.mdc-tab{-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:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.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:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.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);position:relative}.mdc-tab .mdc-tab__text-label{color:rgba(0, 0, 0, 0.6)}.mdc-tab .mdc-tab__icon{color:rgba(0, 0, 0, 0.54);fill:currentColor}.mdc-tab__content{position:relative}.mdc-tab__icon{width:24px;height:24px;font-size:24px}.mdc-tab--active .mdc-tab__text-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tab--active .mdc-tab__icon{color:#6200ee;color:var(--mdc-theme-primary, #6200ee);fill:currentColor}.mdc-tab{background:none}.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 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-tab{--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:rgba(0,0,0,0)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-tab .mdc-tab__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-tab .mdc-tab__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__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-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-tab:hover .mdc-tab__ripple::before,.mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before,.mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after{transition:opacity 150ms linear}.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab__ripple{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:transform,opacity}:host{outline:none;flex:1 0 auto;display:flex;justify-content:center;-webkit-tap-highlight-color:transparent}.mdc-tab{height:var(--mdc-tab-height, 48px);margin-left:0;margin-right:0;padding-right:var(--mdc-tab-horizontal-padding, 24px);padding-left:var(--mdc-tab-horizontal-padding, 24px)}.mdc-tab--stacked{height:var(--mdc-tab-stacked-height, 72px)}.mdc-tab::-moz-focus-inner{border:0}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mdc-tab-text-label-color-default, rgba(0, 0, 0, 0.6))}.mdc-tab:not(.mdc-tab--active) .mdc-tab__icon{color:var(--mdc-tab-color-default, rgba(0, 0, 0, 0.54))}'])));function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(e,t){return he=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},he(e,t)}function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ve(e);if(t){var i=ve(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ye(this,r)}}function ye(e,t){if(t&&("object"===fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ve(e){return ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ve(e)}var ze=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&he(e,t)}(r,e);var t=me(r);function r(){return pe(this,r),t.apply(this,arguments)}return r}(ue);ze.styles=[de],ze=(0,i.__decorate)([(0,o.M)("mwc-tab")],ze);var ge,be=r(58014),we={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},ke={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"},xe=function(e){this.adapter=e},_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getScrollPositionRTL=function(){var e=this.adapter.getScrollAreaScrollLeft(),t=this.calculateScrollEdges().right;return Math.round(t-e)},t.prototype.scrollToRTL=function(e){var t=this.calculateScrollEdges(),r=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(t.right-e);return{finalScrollPosition:n,scrollDelta:n-r}},t.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(t-e);return{finalScrollPosition:r,scrollDelta:r-t}},t.prototype.getAnimatingScrollPosition=function(e){return e},t.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},t.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges();return Math.min(Math.max(t.left,e),t.right)},t}(xe),je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getScrollPositionRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft();return Math.round(e-t)},t.prototype.scrollToRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(-e);return{finalScrollPosition:r,scrollDelta:r-t}},t.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(t-e);return{finalScrollPosition:r,scrollDelta:r-t}},t.prototype.getAnimatingScrollPosition=function(e,t){return e-t},t.prototype.calculateScrollEdges=function(){var e=this.adapter.getScrollContentOffsetWidth();return{left:this.adapter.getScrollAreaOffsetWidth()-e,right:0}},t.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges();return Math.max(Math.min(t.right,e),t.left)},t}(xe),Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getScrollPositionRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft();return Math.round(t-e)},t.prototype.scrollToRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(e);return{finalScrollPosition:r,scrollDelta:t-r}},t.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(t+e);return{finalScrollPosition:r,scrollDelta:t-r}},t.prototype.getAnimatingScrollPosition=function(e,t){return e+t},t.prototype.calculateScrollEdges=function(){return{left:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth(),right:0}},t.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges();return Math.min(Math.max(t.right,e),t.left)},t}(xe),qe=function(e){function t(r){var n=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),r))||this;return n.isAnimating=!1,n}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return we},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ke},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{eventTargetMatchesSelector:function(){return!1},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){},setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){return""},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){return 0},getScrollContentOffsetWidth:function(){return 0},getScrollAreaOffsetWidth:function(){return 0},computeScrollAreaClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function(){return 0}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this.adapter.computeHorizontalScrollbarHeight();this.adapter.setScrollAreaStyleProperty("margin-bottom",-e+"px"),this.adapter.addScrollAreaClass(t.cssClasses.SCROLL_AREA_SCROLL)},t.prototype.getScrollPosition=function(){if(this.isRTL())return this.computeCurrentScrollPositionRTL();var e=this.calculateCurrentTranslateX();return this.adapter.getScrollAreaScrollLeft()-e},t.prototype.handleInteraction=function(){this.isAnimating&&this.stopScrollAnimation()},t.prototype.handleTransitionEnd=function(e){var r=e.target;this.isAnimating&&this.adapter.eventTargetMatchesSelector(r,t.strings.CONTENT_SELECTOR)&&(this.isAnimating=!1,this.adapter.removeClass(t.cssClasses.ANIMATING))},t.prototype.incrementScroll=function(e){0!==e&&this.animate(this.getIncrementScrollOperation(e))},t.prototype.incrementScrollImmediate=function(e){if(0!==e){var t=this.getIncrementScrollOperation(e);0!==t.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition))}},t.prototype.scrollTo=function(e){this.isRTL()?this.scrollToImplRTL(e):this.scrollToImpl(e)},t.prototype.getRTLScroller=function(){return this.rtlScrollerInstance||(this.rtlScrollerInstance=this.rtlScrollerFactory()),this.rtlScrollerInstance},t.prototype.calculateCurrentTranslateX=function(){var e=this.adapter.getScrollContentStyleValue("transform");if("none"===e)return 0;var t=/\((.+?)\)/.exec(e);if(!t)return 0;var r=t[1],n=(0,i.__read)(r.split(","),6),o=(n[0],n[1],n[2],n[3],n[4]);n[5];return parseFloat(o)},t.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges();return Math.min(Math.max(t.left,e),t.right)},t.prototype.computeCurrentScrollPositionRTL=function(){var e=this.calculateCurrentTranslateX();return this.getRTLScroller().getScrollPositionRTL(e)},t.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},t.prototype.scrollToImpl=function(e){var t=this.getScrollPosition(),r=this.clampScrollValue(e),n=r-t;this.animate({finalScrollPosition:r,scrollDelta:n})},t.prototype.scrollToImplRTL=function(e){var t=this.getRTLScroller().scrollToRTL(e);this.animate(t)},t.prototype.getIncrementScrollOperation=function(e){if(this.isRTL())return this.getRTLScroller().incrementScrollRTL(e);var t=this.getScrollPosition(),r=e+t,n=this.clampScrollValue(r);return{finalScrollPosition:n,scrollDelta:n-t}},t.prototype.animate=function(e){var r=this;0!==e.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(e.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+e.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame((function(){r.adapter.addClass(t.cssClasses.ANIMATING),r.adapter.setScrollContentStyleProperty("transform","none")})),this.isAnimating=!0)},t.prototype.stopScrollAnimation=function(){this.isAnimating=!1;var e=this.getAnimatingScrollPosition();this.adapter.removeClass(t.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(e)},t.prototype.getAnimatingScrollPosition=function(){var e=this.calculateCurrentTranslateX(),t=this.adapter.getScrollAreaScrollLeft();return this.isRTL()?this.getRTLScroller().getAnimatingScrollPosition(t,e):t-e},t.prototype.rtlScrollerFactory=function(){var e=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(e-1);var t=this.adapter.getScrollAreaScrollLeft();if(t<0)return this.adapter.setScrollAreaScrollLeft(e),new je(this.adapter);var r=this.adapter.computeScrollAreaClientRect(),n=this.adapter.computeScrollContentClientRect(),i=Math.round(n.right-r.right);return this.adapter.setScrollAreaScrollLeft(e),i===t?new Ee(this.adapter):new _e(this.adapter)},t.prototype.isRTL=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},t}(s.K);function Se(e){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(e)}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){for(var r=0;r\n
\n
\n
\n \n '])),this._handleInteraction,this._handleInteraction,this._handleInteraction,this._handleInteraction,this._handleInteraction,this._handleTransitionEnd)}},{key:"createAdapter",value:function(){var e=this;return Object.assign(Object.assign({},(0,a.q)(this.mdcRoot)),{eventTargetMatchesSelector:function(e,t){return(0,be.wB)(e,t)},addScrollAreaClass:function(t){return e.scrollAreaElement.classList.add(t)},setScrollAreaStyleProperty:function(t,r){return e.scrollAreaElement.style.setProperty(t,r)},setScrollContentStyleProperty:function(t,r){return e.scrollContentElement.style.setProperty(t,r)},getScrollContentStyleValue:function(t){return window.getComputedStyle(e.scrollContentElement).getPropertyValue(t)},setScrollAreaScrollLeft:function(t){return e.scrollAreaElement.scrollLeft=t},getScrollAreaScrollLeft:function(){return e.scrollAreaElement.scrollLeft},getScrollContentOffsetWidth:function(){return e.scrollContentElement.offsetWidth},getScrollAreaOffsetWidth:function(){return e.scrollAreaElement.offsetWidth},computeScrollAreaClientRect:function(){return e.scrollAreaElement.getBoundingClientRect()},computeScrollContentClientRect:function(){return e.scrollContentElement.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return-1===e._scrollbarHeight&&(e.scrollAreaElement.style.overflowX="scroll",e._scrollbarHeight=e.scrollAreaElement.offsetHeight-e.scrollAreaElement.clientHeight,e.scrollAreaElement.style.overflowX=""),e._scrollbarHeight}})}},{key:"getScrollPosition",value:function(){return this.mdcFoundation.getScrollPosition()}},{key:"getScrollContentWidth",value:function(){return this.scrollContentElement.offsetWidth}},{key:"incrementScrollPosition",value:function(e){this.mdcFoundation.incrementScroll(e)}},{key:"scrollToPosition",value:function(e){this.mdcFoundation.scrollTo(e)}}],r&&Te(t.prototype,r),n&&Te(t,n),o}(a.H);(0,i.__decorate)([(0,y.I)(".mdc-tab-scroller")],De.prototype,"mdcRoot",void 0),(0,i.__decorate)([(0,y.I)(".mdc-tab-scroller__scroll-area")],De.prototype,"scrollAreaElement",void 0),(0,i.__decorate)([(0,y.I)(".mdc-tab-scroller__scroll-content")],De.prototype,"scrollContentElement",void 0),(0,i.__decorate)([(0,Y.h)({passive:!0})],De.prototype,"_handleInteraction",null);var Ie=(0,m.iv)(Re||(Re=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:flex;flex:1 0 auto;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}:host{display:flex}.mdc-tab-scroller{flex:1}"])));function Le(e){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Le(e)}function Ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fe(e,t){return Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fe(e,t)}function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ze(e);if(t){var i=Ze(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return He(this,r)}}function He(e,t){if(t&&("object"===Le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ze(e){return Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ze(e)}var Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fe(e,t)}(r,e);var t=Be(r);function r(){return Ne(this,r),t.apply(this,arguments)}return r}(De);Ue.styles=[Ie],Ue=(0,i.__decorate)([(0,o.M)("mwc-tab-scroller")],Ue);var Ge={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},Ve={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},Ke=new Set;Ke.add(Ge.ARROW_LEFT_KEY),Ke.add(Ge.ARROW_RIGHT_KEY),Ke.add(Ge.END_KEY),Ke.add(Ge.HOME_KEY),Ke.add(Ge.ENTER_KEY),Ke.add(Ge.SPACE_KEY);var $e=new Map;$e.set(Ve.ARROW_LEFT_KEYCODE,Ge.ARROW_LEFT_KEY),$e.set(Ve.ARROW_RIGHT_KEYCODE,Ge.ARROW_RIGHT_KEY),$e.set(Ve.END_KEYCODE,Ge.END_KEY),$e.set(Ve.HOME_KEYCODE,Ge.HOME_KEY),$e.set(Ve.ENTER_KEYCODE,Ge.ENTER_KEY),$e.set(Ve.SPACE_KEYCODE,Ge.SPACE_KEY);var We,Ye=function(e){function t(r){var n=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),r))||this;return n.useAutomaticActivation=!1,n}return(0,i.__extends)(t,e),Object.defineProperty(t,"strings",{get:function(){return Ge},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return Ve},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!1,configurable:!0}),t.prototype.setUseAutomaticActivation=function(e){this.useAutomaticActivation=e},t.prototype.activateTab=function(e){var t,r=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange(e)&&e!==r&&(-1!==r&&(this.adapter.deactivateTabAtIndex(r),t=this.adapter.getTabIndicatorClientRectAtIndex(r)),this.adapter.activateTabAtIndex(e,t),this.scrollIntoView(e),this.adapter.notifyTabActivated(e))},t.prototype.handleKeyDown=function(e){var t=this.getKeyFromEvent(e);if(void 0!==t)if(this.isActivationKey(t)||e.preventDefault(),this.useAutomaticActivation){if(this.isActivationKey(t))return;var r=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(),t);this.adapter.setActiveTab(r),this.scrollIntoView(r)}else{var n=this.adapter.getFocusedTabIndex();if(this.isActivationKey(t))this.adapter.setActiveTab(n);else{r=this.determineTargetFromKey(n,t);this.adapter.focusTabAtIndex(r),this.scrollIntoView(r)}}},t.prototype.handleTabInteraction=function(e){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(e.detail.tabId))},t.prototype.scrollIntoView=function(e){this.indexIsInRange(e)&&(0!==e?e!==this.adapter.getTabListLength()-1?this.isRTL()?this.scrollIntoViewImplRTL(e):this.scrollIntoViewImpl(e):this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.adapter.scrollTo(0))},t.prototype.determineTargetFromKey=function(e,t){var r=this.isRTL(),n=this.adapter.getTabListLength()-1,i=e;return t===Ge.END_KEY?i=n:t===Ge.ARROW_LEFT_KEY&&!r||t===Ge.ARROW_RIGHT_KEY&&r?i-=1:t===Ge.ARROW_RIGHT_KEY&&!r||t===Ge.ARROW_LEFT_KEY&&r?i+=1:i=0,i<0?i=n:i>n&&(i=0),i},t.prototype.calculateScrollIncrement=function(e,t,r,n){var i=this.adapter.getTabDimensionsAtIndex(t),o=i.contentLeft-r-n,a=i.contentRight-r-Ve.EXTRA_SCROLL_AMOUNT,s=o+Ve.EXTRA_SCROLL_AMOUNT;return te?Math.max(s,0):Math.min(c,0)},t.prototype.findAdjacentTabIndexClosestToEdge=function(e,t,r,n){var i=t.rootLeft-r,o=t.rootRight-r-n,a=i+o;return i<0||a<0?e-1:o>0||a>0?e+1:-1},t.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(e,t,r,n,i){var o=i-t.rootLeft-n-r,a=i-t.rootRight-r,s=o+a;return o>0||s>0?e+1:a<0||s<0?e-1:-1},t.prototype.getKeyFromEvent=function(e){return Ke.has(e.key)?e.key:$e.get(e.keyCode)},t.prototype.isActivationKey=function(e){return e===Ge.SPACE_KEY||e===Ge.ENTER_KEY},t.prototype.indexIsInRange=function(e){return e>=0&&e\n \n \n '])),this._handleTabInteraction,this._handleKeydown)}},{key:"_getTabs",value:function(){return this.tabsSlot.assignedNodes({flatten:!0}).filter((function(e){return e instanceof ue}))}},{key:"_getTab",value:function(e){return this._getTabs()[e]}},{key:"createAdapter",value:function(){var e=this;return{scrollTo:function(t){return e.scrollerElement.scrollToPosition(t)},incrementScroll:function(t){return e.scrollerElement.incrementScrollPosition(t)},getScrollPosition:function(){return e.scrollerElement.getScrollPosition()},getScrollContentWidth:function(){return e.scrollerElement.getScrollContentWidth()},getOffsetWidth:function(){return e.mdcRoot.offsetWidth},isRTL:function(){return"rtl"===window.getComputedStyle(e.mdcRoot).getPropertyValue("direction")},setActiveTab:function(t){return e.mdcFoundation.activateTab(t)},activateTabAtIndex:function(t,r){var n=e._getTab(t);void 0!==n&&n.activate(r),e._previousActiveIndex=t},deactivateTabAtIndex:function(t){var r=e._getTab(t);void 0!==r&&r.deactivate()},focusTabAtIndex:function(t){var r=e._getTab(t);void 0!==r&&r.focus()},getTabIndicatorClientRectAtIndex:function(t){var r=e._getTab(t);return void 0!==r?r.computeIndicatorClientRect():new DOMRect},getTabDimensionsAtIndex:function(t){var r=e._getTab(t);return void 0!==r?r.computeDimensions():{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return e._previousActiveIndex},getFocusedTabIndex:function(){var t=e._getTabs(),r=e.getRootNode().activeElement;return t.indexOf(r)},getIndexOfTabById:function(t){for(var r=e._getTabs(),n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ",":\n \n \n ",":\n ","\n
\n "])),e.hass.localize("ui.components.related-items.integration"),"/config/integrations#config_entry=".concat(t),e._navigateAwayClose,e.hass.localize("component.".concat(r.domain,".title")),r.title):""})):"",this._related.device&&this._devices?this._related.device.map((function(t){var r=e._devices.find((function(e){return e.id===t}));return r?(0,m.dy)(or||(or=wr(["\n

\n ",':\n

\n \n \n ',"\n \n \n "])),e._openMoreInfo,t,r.attributes.friendly_name||t):""}))):"",this._related.group?(0,m.dy)(lr||(lr=wr(["\n

",":

\n
    \n ","\n
\n "])),this.hass.localize("ui.components.related-items.group"),this._related.group.map((function(t){var r=e.hass.states[t];return r?(0,m.dy)(ur||(ur=wr(['\n
  • \n \n \n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);rt.primary?-1:1})),this._interface=Object.assign({},this._interfaces[this._curTabIndex]),e.next=8,this.updateComplete;case 8:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{kind:"method",key:"closeDialog",value:function(){this._params=void 0,this._processing=!1,(0,At.B)(this,"dialog-closed",{dialog:this.localName})}},{kind:"method",key:"render",value:function(){return this._params&&this._interface?(0,m.dy)(Fr||(Fr=cn(["\n \n \n \n ',"\n \n \n \n ',"\n \n ","\n \n "])),!0,this.closeDialog,this.supervisor.localize("dialog.network.title"),this.hass.localize("common.close"),"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",this._interfaces.length>1?(0,m.dy)(Br||(Br=cn(["","\n "])),this._curTabIndex,this._handleTabActivated,this._interfaces.map((function(e){return(0,m.dy)(Hr||(Hr=cn(["\n "])),e.interface,e.interface)}))):"",St(this._renderTab())):(0,m.dy)(Nr||(Nr=cn([""])))}},{kind:"method",key:"_renderTab",value:function(){var e,t,r,n,i,o=this;return(0,m.dy)(Zr||(Zr=cn(['
    \n ',"\n ","\n ",'\n
    \n
    \n \n ','\n \n ']))):this.supervisor.localize("dialog.network.scan_ap"),this._accessPoints&&this._accessPoints.accesspoints&&0!==this._accessPoints.accesspoints.length?(0,m.dy)(Kr||(Kr=cn(["\n \n ","\n \n "])),this._accessPoints.accesspoints.filter((function(e){return e.ssid})).map((function(e){var t;return(0,m.dy)($r||($r=cn(["\n \n ",'\n \n '," - Strength: ","\n \n \n "])),o._selectAP,e.ssid===(null===(t=o._wifiConfiguration)||void 0===t?void 0:t.ssid),e,e.ssid,e.mac,e.signal)}))):"",this._wifiConfiguration?(0,m.dy)(Wr||(Wr=cn(['\n
    \n \n ',"\n "])),this.supervisor.localize("dialog.network.warning")):"",this.supervisor.localize("common.cancel"),this.closeDialog,this._updateNetwork,!this._dirty,this._processing?(0,m.dy)(Jr||(Jr=cn(['\n ']))):this.supervisor.localize("common.save"))}},{kind:"method",key:"_selectAP",value:function(e){this._wifiConfiguration=e.currentTarget.ap,this._dirty=!0}},{kind:"method",key:"_scanForAP",value:(i=un(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._interface){e.next=2;break}return e.abrupt("return");case 2:return this._scanning=!0,e.prev=3,e.next=6,(0,nn.Ne)(this.hass,this._interface.interface);case 6:this._accessPoints=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),(0,on.Ys)(this,{title:"Failed to scan for accesspoints",text:(0,rn.js)(e.t0)});case 12:return e.prev=12,this._scanning=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[3,9,12,15]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_renderIPConfiguration",value:function(e){var t,r,n;return(0,m.dy)(Qr||(Qr=cn(["\n \n \n \n \n \n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ","\n \n "])),this._opened,this.closeDialog,(0,s.i)(this.hass,this._addingRegistry?this.supervisor.localize("dialog.registries.title_add"):this.supervisor.localize("dialog.registries.title_manage")),this._addingRegistry?(0,n.dy)(p||(p=E(["\n \n \n \n ',' \n \n ',":\n ","\n \n \n \n "])),e.registry,t.supervisor.localize("dialog.registries.username"),e.username,e,t.supervisor.localize("dialog.registries.remove"),"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",t._removeRegistry)})):(0,n.dy)(y||(y=E(["\n \n ","\n \n "])),this.supervisor.localize("dialog.registries.no_registries")),this._addRegistry,this.supervisor.localize("dialog.registries.add_new_registry")))}},{kind:"field",key:"_computeLabel",value:function(){var e=this;return function(t){return e.supervisor.localize("dialog.registries.".concat(t.name))||t.name}}},{kind:"method",key:"_valueChanged",value:function(e){this._input=e.detail.value}},{kind:"method",key:"showDialog",value:(u=j(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._opened=!0,this._input={},this.supervisor=t.supervisor,e.next=5,this._loadRegistries();case 5:return e.next=7,this.updateComplete;case 7:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{kind:"method",key:"closeDialog",value:function(){this._addingRegistry=!1,this._opened=!1,this._input={}}},{kind:"method",key:"focus",value:function(){var e=this;this.updateComplete.then((function(){var t,r;return null===(t=e.shadowRoot)||void 0===t||null===(r=t.querySelector("[dialogInitialFocus]"))||void 0===r?void 0:r.focus()}))}},{kind:"method",key:"_loadRegistries",value:(l=j(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,z(this.hass);case 2:t=e.sent,this._registries=Object.keys(t.registries).map((function(e){return{registry:e,username:t.registries[e].username}}));case 4:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{kind:"method",key:"_addRegistry",value:function(){this._addingRegistry=!0}},{kind:"method",key:"_addNewRegistry",value:(i=j(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t={})[this._input.registry]={username:this._input.username,password:this._input.password},e.prev=2,e.next=5,g(this.hass,t);case 5:return e.next=7,this._loadRegistries();case 7:this._addingRegistry=!1,this._input={},e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),(0,w.Ys)(this,{title:this.supervisor.localize("dialog.registries.failed_to_add"),text:(0,c.js)(e.t0)});case 14:case"end":return e.stop()}}),e,this,[[2,11]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_removeRegistry",value:(r=j(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.currentTarget.entry,e.prev=1,e.next=4,b(this.hass,r.registry);case 4:return e.next=6,this._loadRegistries();case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),(0,w.Ys)(this,{title:this.supervisor.localize("dialog.registries.failed_to_remove"),text:(0,c.js)(e.t0)});case 11:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[k.Qx,k.yu,(0,n.iv)(v||(v=E(["\n .registry {\n border: 1px solid var(--divider-color);\n border-radius: 4px;\n margin-top: 4px;\n }\n .action {\n margin-top: 24px;\n width: 100%;\n display: flex;\n justify-content: flex-end;\n }\n ha-icon-button {\n color: var(--error-color);\n margin-right: -10px;\n }\n "])))]}}]}}),n.oi)},92109:function(e,t,r){"use strict";r.r(t);r(54444),r(51187),r(77956),r(53973),r(89194);var n,i,o,a,s,c,l,u=r(37500),d=r(26767),f=r(5701),p=r(67352),h=r(17717),m=r(14516),y=r(47181),v=r(85415),z=(r(9381),r(34552),r(73408)),g=(r(66255),r(34154)),b=r(41682),w=r(69810),k=r(11654);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function _(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function j(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function E(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){j(o,n,i,a,s,"next",e)}function s(e){j(o,n,i,a,s,"throw",e)}a(void 0)}))}}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var i=O(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){if(t&&("object"===x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function P(){P=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!D(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ",'\n
    \n ','\n
    \n \n
    \n
    \n ',""])),this._error):"",l.length?l.map((function(e){return(0,u.dy)(a||(a=_(['\n \n \n
    ',"
    \n
    ","
    \n
    ",'
    \n
    \n
    \n \n \n \n ',"\n \n
    \n
    \n "])),e.name,e.maintainer,e.url,d.includes(e.slug),e.slug,d.includes(e.slug)?"M2 5.27L3.28 4L5 5.72L5.28 6L6.28 7L18 18.72L20 20.72L18.73 22L17.27 20.54C16.93 20.83 16.5 21 16 21H8C6.9 21 6 20.1 6 19V9.27L2 5.27M19 4V6H7.82L5.82 4H8.5L9.5 3H14.5L15.5 4H19M18 7V16.18L8.82 7H18Z":"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",r._removeRepository,r._dialogParams.supervisor.localize(d.includes(e.slug)?"dialog.repositories.used":"dialog.repositories.remove"))})):(0,u.dy)(s||(s=_([" No repositories "]))),this._dialogParams.url||"",this._dialogParams.supervisor.localize("dialog.repositories.add"),this._handleKeyAdd,this._addRepository,this._processing?(0,u.dy)(c||(c=_(['']))):this._dialogParams.supervisor.localize("dialog.repositories.add"),this.closeDialog,null===(t=this._dialogParams)||void 0===t?void 0:t.supervisor.localize("common.close"))}},{kind:"get",static:!0,key:"styles",value:function(){return[k.Qx,k.yu,(0,u.iv)(l||(l=_(["\n ha-dialog.button-left {\n --justify-action-buttons: flex-start;\n }\n paper-icon-item {\n cursor: pointer;\n }\n .form {\n color: var(--primary-text-color);\n }\n .option {\n border: 1px solid var(--divider-color);\n border-radius: 4px;\n margin-top: 4px;\n }\n mwc-button {\n margin-left: 8px;\n }\n ha-circular-progress {\n display: block;\n margin: 32px;\n text-align: center;\n }\n div.delete ha-icon-button {\n color: var(--error-color);\n }\n "])))]}},{kind:"method",key:"focus",value:function(){var e=this;this.updateComplete.then((function(){var t,r;return null===(t=e.shadowRoot)||void 0===t||null===(r=t.querySelector("[dialogInitialFocus]"))||void 0===r?void 0:r.focus()}))}},{kind:"method",key:"_handleKeyAdd",value:function(e){e.stopPropagation(),13===e.keyCode&&this._addRepository()}},{kind:"method",key:"_loadData",value:(x=E(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,g.yt)(this.hass);case 3:t=e.sent,this._repositories=t.repositories,(0,y.B)(this,"supervisor-collection-refresh",{collection:"addon"}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this._error=(0,b.js)(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return x.apply(this,arguments)})},{kind:"method",key:"_addRepository",value:(d=E(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=this._optionInput)&&t.value){e.next=3;break}return e.abrupt("return");case 3:return this._processing=!0,r=this._filteredRepositories(this._repositories),(n=r.map((function(e){return e.source}))).push(t.value),e.prev=7,e.next=10,(0,w.jP)(this.hass,{addons_repositories:n});case 10:return e.next=12,this._loadData();case 12:t.value="",e.next=18;break;case 15:e.prev=15,e.t0=e.catch(7),this._error=(0,b.js)(e.t0);case 18:this._processing=!1;case 19:case"end":return e.stop()}}),e,this,[[7,15]])}))),function(){return d.apply(this,arguments)})},{kind:"method",key:"_removeRepository",value:(r=E(regeneratorRuntime.mark((function e(t){var r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.currentTarget.slug,n=this._filteredRepositories(this._repositories),i=n.find((function(e){return e.slug===r}))){e.next=5;break}return e.abrupt("return");case 5:return o=n.map((function(e){return e.source})).filter((function(e){return e!==i.source})),e.prev=6,e.next=9,(0,w.jP)(this.hass,{addons_repositories:o});case 9:return e.next=11,this._loadData();case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),this._error=(0,b.js)(e.t0);case 16:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(e){return r.apply(this,arguments)})}]}}),u.oi)},55677:function(e,t,r){"use strict";var n;r.d(t,{l:function(){return a}});var i,o,a=(0,r(37500).iv)(n||(i=["\n .content {\n margin: 8px;\n }\n h1,\n .description,\n .card-content {\n color: var(--primary-text-color);\n }\n h1 {\n font-size: 2em;\n margin-bottom: 8px;\n font-family: var(--paper-font-headline_-_font-family);\n -webkit-font-smoothing: var(--paper-font-headline_-_-webkit-font-smoothing);\n font-size: var(--paper-font-headline_-_font-size);\n font-weight: var(--paper-font-headline_-_font-weight);\n letter-spacing: var(--paper-font-headline_-_letter-spacing);\n line-height: var(--paper-font-headline_-_line-height);\n padding-left: 8px;\n }\n .description {\n margin-top: 4px;\n padding-left: 8px;\n }\n .card-group {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n grid-gap: 8px;\n }\n @media screen and (min-width: 640px) {\n .card-group {\n grid-template-columns: repeat(auto-fit, minmax(300px, 0.5fr));\n }\n }\n @media screen and (min-width: 1020px) {\n .card-group {\n grid-template-columns: repeat(auto-fit, minmax(300px, 0.333fr));\n }\n }\n @media screen and (min-width: 1300px) {\n .card-group {\n grid-template-columns: repeat(auto-fit, minmax(300px, 0.25fr));\n }\n }\n ha-call-api-button {\n font-weight: 500;\n color: var(--primary-color);\n }\n .error {\n color: var(--error-color);\n margin-top: 16px;\n }\n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))))},71160:function(e,t,r){"use strict";function n(e){return Intl.getCanonicalLocales(e)}function i(e,t){var r=t.tzData,n=t.uppercaseLinks,i=e.toUpperCase(),o=Object.keys(r).reduce((function(e,t){return e[t.toUpperCase()]=t,e}),{}),a=n[i]||o[i];return"Etc/UTC"===a||"Etc/GMT"===a?"UTC":a}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e){if("symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function s(e){if(void 0===e)return NaN;if(null===e)return 0;if("boolean"==typeof e)return e?1:0;if("number"==typeof e)return e;if("symbol"===o(e)||"bigint"==typeof e)throw new TypeError("Cannot convert symbol/bigint to number");return Number(e)}function c(e){return isFinite(e)?Math.abs(e)>8640000000000001?NaN:function(e){var t=s(e);if(isNaN(t)||u(t,-0))return 0;if(isFinite(t))return t;var r=Math.floor(Math.abs(t));return t<0&&(r=-r),u(r,-0)?0:r}(e):NaN}function l(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function u(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return new Array(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"===o(e)?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"===o(e)?"Symbol":"bigint"==typeof e?"BigInt":void 0}r.r(t),r.d(t,{ArrayCreate:function(){return d},CanonicalizeLocaleList:function(){return n},CanonicalizeTimeZoneName:function(){return i},CoerceOptionsToObject:function(){return O},ComputeExponent:function(){return ae},ComputeExponentForMagnitude:function(){return re},CurrencyDigits:function(){return se},DateFromTime:function(){return j},Day:function(){return y},DayFromYear:function(){return z},DayWithinYear:function(){return k},DaysInYear:function(){return w},FormatNumericToParts:function(){return ze},FormatNumericToString:function(){return oe},GetNumberOption:function(){return M},GetOption:function(){return D},GetOptionsObject:function(){return L},HasOwnProperty:function(){return f},HourFromTime:function(){return q},InLeapYear:function(){return x},InitializeNumberFormat:function(){return ke},IsSanctionedSimpleUnitIdentifier:function(){return H},IsValidTimeZoneName:function(){return Z},IsWellFormedCurrencyCode:function(){return G},IsWellFormedUnitIdentifier:function(){return V},MinFromTime:function(){return S},MonthFromTime:function(){return _},OrdinaryHasInstance:function(){return T},PartitionNumberPattern:function(){return ve},PartitionPattern:function(){return xe},RangePatternType:function(){return je},SANCTIONED_UNITS:function(){return N},SIMPLE_UNITS:function(){return B},SameValue:function(){return u},SecFromTime:function(){return A},SetNumberFormatDigitOptions:function(){return we},SetNumberFormatUnitOptions:function(){return be},SupportedLocales:function(){return _e},TimeClip:function(){return c},TimeFromYear:function(){return g},ToNumber:function(){return s},ToObject:function(){return l},ToRawFixed:function(){return ie},ToRawPrecision:function(){return ne},ToString:function(){return a},Type:function(){return p},WeekDay:function(){return v},YearFromTime:function(){return b},_formatToParts:function(){return pe},defineProperty:function(){return ee},getInternalSlot:function(){return X},getMagnitude:function(){return K},getMultiInternalSlots:function(){return J},invariant:function(){return te},isLiteralPart:function(){return Q},isMissingLocaleDataError:function(){return qe},msFromTime:function(){return C},removeUnitNamespace:function(){return F},setInternalSlot:function(){return W},setMultiInternalSlots:function(){return Y}});var h=864e5;function m(e,t){return e-Math.floor(e/t)*t}function y(e){return Math.floor(e/h)}function v(e){return m(y(e)+4,7)}function z(e){return Date.UTC(e,0)/h}function g(e){return Date.UTC(e,0)}function b(e){return new Date(e).getUTCFullYear()}function w(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function k(e){return y(e)-z(b(e))}function x(e){return 365===w(b(e))?0:1}function _(e){var t=k(e),r=x(e);if(t>=0&&t<31)return 0;if(t<59+r)return 1;if(t<90+r)return 2;if(t<120+r)return 3;if(t<151+r)return 4;if(t<181+r)return 5;if(t<212+r)return 6;if(t<243+r)return 7;if(t<273+r)return 8;if(t<304+r)return 9;if(t<334+r)return 10;if(t<365+r)return 11;throw new Error("Invalid time")}function j(e){var t=k(e),r=_(e),n=x(e);if(0===r)return t+1;if(1===r)return t-30;if(2===r)return t-58-n;if(3===r)return t-89-n;if(4===r)return t-119-n;if(5===r)return t-150-n;if(6===r)return t-180-n;if(7===r)return t-211-n;if(8===r)return t-242-n;if(9===r)return t-272-n;if(10===r)return t-303-n;if(11===r)return t-333-n;throw new Error("Invalid time")}var E=1e3;function q(e){return m(Math.floor(e/36e5),24)}function S(e){return m(Math.floor(e/6e4),60)}function A(e){return m(Math.floor(e/E),60)}function T(e,t,r){if("function"!=typeof e)return!1;if(null==r?void 0:r.boundTargetFunction)return t instanceof(null==r?void 0:r.boundTargetFunction);if("object"!==o(t))return!1;var n=e.prototype;if("object"!==o(n))throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(n,t)}function C(e){return m(e,E)}function O(e){return void 0===e?Object.create(null):l(e)}function P(e,t,r,n){if(void 0!==e){if(e=Number(e),isNaN(e)||er)throw new RangeError(e+" is outside of range ["+t+", "+r+"]");return Math.floor(e)}return n}function M(e,t,r,n,i){return P(e[t],r,n,i)}function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function D(e,t,r,n,i){if("object"!==R(e))throw new TypeError("Options must be an object");var o=e[t];if(void 0!==o){if("boolean"!==r&&"string"!==r)throw new TypeError("invalid type");if("boolean"===r&&(o=Boolean(o)),"string"===r&&(o=a(o)),void 0!==n&&!n.filter((function(e){return e==o})).length)throw new RangeError(o+" is not within "+n.join(", "));return o}return i}function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function L(e){if(void 0===e)return Object.create(null);if("object"===I(e))return e;throw new TypeError("Options must be an object")}var N=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function F(e){return e.slice(e.indexOf("-")+1)}var B=N.map(F);function H(e){return B.indexOf(e)>-1}function Z(e,t){var r=t.tzData,n=t.uppercaseLinks,i=e.toUpperCase(),o=new Set,a=new Set;return Object.keys(r).map((function(e){return e.toUpperCase()})).forEach((function(e){return o.add(e)})),Object.keys(n).forEach((function(e){a.add(e.toUpperCase()),o.add(n[e].toUpperCase())})),o.has(i)||a.has(i)}var U=/[^A-Z]/;function G(e){return 3===(e=e.replace(/([a-z])/g,(function(e,t){return t.toUpperCase()}))).length&&!U.test(e)}function V(e){if(H(e=e.replace(/([A-Z])/g,(function(e,t){return t.toLowerCase()}))))return!0;var t=e.split("-per-");if(2!==t.length)return!1;var r=t[0],n=t[1];return!(!H(r)||!H(n))}function K(e){return Math.floor(Math.log(e)*Math.LOG10E)}function $(e,t){if("function"==typeof e.repeat)return e.repeat(t);for(var r=new Array(t),n=0;np[p.length-1])return p[p.length-1].length-1;var h=p.indexOf(f);if(-1===h)return 0;var m=p[h];return"0"===u[m].other?0:m.length-u[m].other.match(/0+/)[0].length}}function ne(e,t,r){var n,i,o,a,s=r;if(0===e)n=$("0",s),i=0,o=0;else{var c=e.toString(),l=c.indexOf("e"),u=c.split("e"),d=u[0],f=u[1],p=d.replace(".","");if(l>=0&&p.length<=s)i=+f,n=p+$("0",s-p.length),o=e;else{var h=(i=K(e))-s+1,m=Math.round(v(e,h));v(m,s-1)>=10&&(i+=1,m=Math.floor(m/10)),n=m.toString(),o=v(m,s-1-i)}}if(i>=s-1?(n+=$("0",i-s+1),a=i+1):i>=0?(n=n.slice(0,i+1)+"."+n.slice(i+1),a=i+1):(n="0."+$("0",-i-1)+n,a=1),n.indexOf(".")>=0&&r>t){for(var y=r-t;y>0&&"0"===n[n.length-1];)n=n.slice(0,-1),y--;"."===n[n.length-1]&&(n=n.slice(0,-1))}return{formattedString:n,roundedNumber:o,integerDigitsCount:a};function v(e,t){return t<0?e*Math.pow(10,-t):e/Math.pow(10,t)}}function ie(e,t,r){var n,i,o=r,a=Math.round(e*Math.pow(10,o)),s=a/Math.pow(10,o);if(a<1e21)n=a.toString();else{var c=(n=a.toString()).split("e"),l=c[0],u=c[1];n=l.replace(".",""),n+=$("0",Math.max(+u-n.length+1,0))}if(0!==o){var d=n.length;if(d<=o)n=$("0",o+1-d)+n,d=o+1;var f=n.slice(0,d-o),p=n.slice(d-o);n=f+"."+p,i=f.length}else i=n.length;for(var h=r-t;h>0&&"0"===n[n.length-1];)n=n.slice(0,-1),h--;return"."===n[n.length-1]&&(n=n.slice(0,-1)),{formattedString:n,roundedNumber:s,integerDigitsCount:i}}function oe(e,t){var r,n=t<0||u(t,-0);switch(n&&(t=-t),e.roundingType){case"significantDigits":r=ne(t,e.minimumSignificantDigits,e.maximumSignificantDigits);break;case"fractionDigits":r=ie(t,e.minimumFractionDigits,e.maximumFractionDigits);break;default:(r=ne(t,1,2)).integerDigitsCount>1&&(r=ie(t,0,0))}t=r.roundedNumber;var i=r.formattedString,o=r.integerDigitsCount,a=e.minimumIntegerDigits;o\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,ue=new RegExp("^"+le.source),de=new RegExp(le.source+"$"),fe=/[#0](?:[\.,][#0]+)*/g;function pe(e,t,r,n){var i,o,a=e.sign,s=e.exponent,c=e.magnitude,l=n.notation,u=n.style,d=n.numberingSystem,f=t.numbers.nu[0],p=null;if("compact"===l&&c&&(p=function(e,t,r,n,i,o,a){var s,c,l=e.roundedNumber,u=e.sign,d=e.magnitude,f=String(Math.pow(10,d)),p=r.numbers.nu[0];if("currency"===n&&"name"!==o){var h=null===(s=((m=r.numbers.currency)[a]||m[p]).short)||void 0===s?void 0:s[f];if(!h)return null;c=ye(t,l,h)}else{var m,y=((m=r.numbers.decimal)[a]||m[p])[i][f];if(!y)return null;c=ye(t,l,y)}if("0"===c)return null;return c=me(c,u).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0")}(e,r,t,u,n.compactDisplay,n.currencyDisplay,d)),"currency"===u&&"name"!==n.currencyDisplay){var h=t.currencies[n.currency];if(h)switch(n.currencyDisplay){case"code":i=n.currency;break;case"symbol":i=h.symbol;break;default:i=h.narrow}else i=n.currency}if(p)o=p;else if("decimal"===u||"unit"===u||"currency"===u&&"name"===n.currencyDisplay)o=me((t.numbers.decimal[d]||t.numbers.decimal[f]).standard,a);else if("currency"===u){o=me((y=t.numbers.currency[d]||t.numbers.currency[f])[n.currencySign],a)}else{o=me(t.numbers.percent[d]||t.numbers.percent[f],a)}var m=fe.exec(o)[0];if(o=o.replace(fe,"{0}").replace(/'(.)'/g,"$1"),"currency"===u&&"name"!==n.currencyDisplay){var y,v=(y=t.numbers.currency[d]||t.numbers.currency[f]).currencySpacing.afterInsertBetween;v&&!de.test(i)&&(o=o.replace("¤{0}","¤"+v+"{0}"));var z=y.currencySpacing.beforeInsertBetween;z&&!ue.test(i)&&(o=o.replace("{0}¤","{0}"+z+"¤"))}for(var g=o.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),b=[],w=t.numbers.symbols[d]||t.numbers.symbols[f],k=0,x=g;k0?(d=c.slice(0,p),f=c.slice(p+1)):d=c,o&&("compact"!==r||l>=1e4)){var h=e.group,m=[],y=a.split(".")[0].split(","),v=3,z=3;y.length>1&&(v=y[y.length-1].length),y.length>2&&(z=y[y.length-2].length);var g=d.length-v;if(g>0){for(m.push(d.slice(g,g+v)),g-=z;g>0;g-=z)m.push(d.slice(g,g+z));m.push(d.slice(0,g+z))}else m.push(d);for(;m.length>0;){var b=m.pop();s.push({type:"integer",value:b}),m.length>0&&s.push({type:"group",value:h})}}else s.push({type:"integer",value:d});if(void 0!==f&&s.push({type:"decimal",value:e.decimal},{type:"fraction",value:f}),("scientific"===r||"engineering"===r)&&isFinite(l)){s.push({type:"exponentSeparator",value:e.exponential}),n<0&&(s.push({type:"exponentMinusSign",value:e.minusSign}),n=-n);var w=ie(n,0,0);s.push({type:"exponentInteger",value:w.formattedString})}return s}function me(e,t){e.indexOf(";")<0&&(e=e+";-"+e);var r=e.split(";"),n=r[0],i=r[1];switch(t){case 0:return n;case-1:return i;default:return i.indexOf("-")>=0?i.replace(/-/g,"+"):"+"+n}}function ye(e,t,r){return r[e.select(t)]||r.other}function ve(e,t,r){var n,i,o,a=r.getInternalSlots,s=a(e),c=s.pl,l=s.dataLocaleData,d=s.numberingSystem,f=l.numbers.symbols[d]||l.numbers.symbols[l.numbers.nu[0]],p=0,h=0;if(isNaN(t))i=f.nan;else if(isFinite(t)){"percent"===s.style&&(t*=100),h=(n=ae(e,t,{getInternalSlots:a}))[0],p=n[1];var m=oe(s,t=h<0?t*Math.pow(10,-h):t/Math.pow(10,h));i=m.formattedString,t=m.roundedNumber}else i=f.infinity;switch(s.signDisplay){case"never":o=0;break;case"auto":o=u(t,0)||t>0||isNaN(t)?0:-1;break;case"always":o=u(t,0)||t>0||isNaN(t)?1:-1;break;default:o=0===t||isNaN(t)?0:t>0?1:-1}return pe({roundedNumber:t,formattedString:i,exponent:h,magnitude:p,sign:o},s.dataLocaleData,c,s)}function ze(e,t,r){for(var n=ve(e,t,r),i=d(0),o=0,a=n;o-1;)te((n=e.indexOf("}",r))>r,"Invalid pattern "+e),r>i&&t.push({type:"literal",value:e.substring(i,r)}),t.push({type:e.substring(r+1,n),value:void 0}),i=n+1,r=e.indexOf("{",i);return ir&&(r=u,a=l)}return n.__assign({},a)}},72833:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestFitFormatMatcher=t.bestFitFormatMatcherScore=void 0;var n=r(87480),i=r(71160),o=r(35328),a=r(20059);function s(e){return"numeric"===e||"2-digit"===e}function c(e,t){var r=0;e.hour12&&!t.hour12?r-=o.removalPenalty:!e.hour12&&t.hour12&&(r-=o.additionPenalty);for(var n=0,i=o.DATE_TIME_PROPS;nr&&(r=f,o=d)}var p=n.__assign({},o),h={rawPattern:o.rawPattern};for(var m in a.processDateTimePattern(o.rawPattern,h),p){var y=p[m],v=h[m],z=e[m];"minute"!==m&&"second"!==m&&(z&&(s(v)&&!s(z)||y!==z&&(h[m]=z)))}return h.pattern=p.pattern,h.pattern12=p.pattern12,h.skeleton=p.skeleton,h.rangePatterns=p.rangePatterns,h.rangePatterns12=p.rangePatterns12,h}},11464:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeStyleFormat=void 0;var n=r(71160);t.DateTimeStyleFormat=function(e,t,r){var i,o;if(void 0!==t&&(n.invariant("full"===t||"long"===t||"medium"===t||"short"===t,"invalid timeStyle"),o=r.timeFormat[t]),void 0!==e&&(n.invariant("full"===e||"long"===e||"medium"===e||"short"===e,"invalid dateStyle"),i=r.dateFormat[e]),void 0!==e&&void 0!==t){var a={};for(var s in i)"pattern"!==s&&(a[s]=i[s]);for(var s in o)"pattern"!==s&&"pattern12"!==s&&(a[s]=o[s]);var c=r.dateTimeFormat[e],l=c.replace("{0}",o.pattern).replace("{1}",i.pattern);if(a.pattern=l,"pattern12"in o){var u=c.replace("{0}",o.pattern12).replace("{1}",i.pattern);a.pattern12=u}return a}return void 0!==t?o:(n.invariant(void 0!==e,"dateStyle should not be undefined"),i)}},81800:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatDateTime=void 0;var n=r(61334);t.FormatDateTime=function(e,t,r){for(var i="",o=0,a=n.PartitionDateTimePattern(e,t,r);o-1){var A="",T=f[q];S=k[q];"year"===q&&S<=0&&(S=1-S),"month"===q&&S++;var C=f.hourCycle;if("hour"!==q||"h11"!==C&&"h12"!==C||0===(S%=12)&&"h12"===C&&(S=12),"hour"===q&&"h24"===C&&0===S&&(S=24),"numeric"===T)A=y.format(S);else if("2-digit"===T)(A=g.format(S)).length>2&&(A=A.slice(A.length-2,A.length));else if("narrow"===T||"short"===T||"long"===T)if("era"===q)A=p[q][T][S];else if("timeZoneName"===q){var O=p.timeZoneName,P=p.gmtFormat,M=p.hourFormat,R=O[f.timeZone||u()];A=R&&R[T]?R[T][+k.inDST]:s(P,M,k.timeZoneOffset,T)}else A="month"===q?p.month[T][S-1]:p[q][T][S];x.push({type:q,value:A})}else if("ampm"===q){A=void 0;A=(S=k.hour)>11?p.pm:p.am,x.push({type:"dayPeriod",value:A})}else if("relatedYear"===q){S=k.relatedYear,A=y.format(S);x.push({type:"relatedYear",value:A})}else if("yearName"===q){S=k.yearName,A=y.format(S);x.push({type:"yearName",value:A})}}return x}},91920:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatDateTimeRange=void 0;var n=r(46186);t.FormatDateTimeRange=function(e,t,r,i){for(var o="",a=0,s=n.PartitionDateTimeRangePattern(e,t,r,i);a11&&x<11||k<11&&x>11)&&(y=!1)}else if("dayPeriod"===b);else if("fractionalSecondDigits"===b){var _=d.fractionalSecondDigits;void 0===_&&(_=3);k=Math.floor(f.millisecond*Math.pow(10,_-3)),x=Math.floor(p.millisecond*Math.pow(10,_-3));n.SameValue(k,x)||(y=!1)}else{k=f[b],x=p[b];n.SameValue(k,x)||(y=!1)}}}if(y){for(var j=o.FormatDateTimePattern(e,n.PartitionPattern(h),t,s),E=0,q=j;Ee){a=(n=i[o-1])[2],s=n[3];break}return[1e3*a,s]}(e,r,o),s=a[0],c=a[1],l=e+s,u=n.YearFromTime(l);return{weekday:n.WeekDay(l),era:u<0?"BC":"AD",year:u,relatedYear:void 0,yearName:void 0,month:n.MonthFromTime(l),day:n.DateFromTime(l),hour:n.HourFromTime(l),minute:n.MinFromTime(l),second:n.SecFromTime(l),millisecond:n.msFromTime(l),inDST:c,timeZoneOffset:s}}},20059:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitRangePattern=t.splitFallbackRangePattern=t.parseDateTimeSkeleton=t.processDateTimePattern=void 0;var n=r(87480),i=r(71160),o=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function s(e,t){var r=e.length;switch(e[0]){case"G":return t.era=4===r?"long":5===r?"narrow":"short","{era}";case"y":case"Y":case"u":case"U":case"r":return t.year=2===r?"2-digit":"numeric","{year}";case"q":case"Q":throw new RangeError("`w/Q` (quarter) patterns are not supported");case"M":case"L":return t.month=["numeric","2-digit","short","long","narrow"][r-1],"{month}";case"w":case"W":throw new RangeError("`w/W` (week of year) patterns are not supported");case"d":return t.day=["numeric","2-digit"][r-1],"{day}";case"D":case"F":case"g":return t.day="numeric","{day}";case"E":return t.weekday=4===r?"long":5===r?"narrow":"short","{weekday}";case"e":case"c":return t.weekday=[void 0,void 0,"short","long","narrow","short"][r-1],"{weekday}";case"a":case"b":case"B":return t.hour12=!0,"{ampm}";case"h":case"K":return t.hour=["numeric","2-digit"][r-1],t.hour12=!0,"{hour}";case"H":case"k":return t.hour=["numeric","2-digit"][r-1],"{hour}";case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":return t.minute=["numeric","2-digit"][r-1],"{minute}";case"s":return t.second=["numeric","2-digit"][r-1],"{second}";case"S":case"A":return t.second="numeric","{second}";case"z":case"Z":case"O":case"v":case"V":case"X":case"x":return t.timeZoneName=r<4?"short":"long","{timeZoneName}"}return""}function c(e){switch(e){case"G":return"era";case"y":case"Y":case"u":case"U":case"r":return"year";case"M":case"L":return"month";case"d":case"D":case"F":case"g":return"day";case"a":case"b":case"B":return"ampm";case"h":case"H":case"K":case"k":return"hour";case"m":return"minute";case"s":case"S":case"A":return"second";default:throw new RangeError("Invalid range pattern token")}}function l(e,t){var r=[],n=e.replace(/'{2}/g,"{apostrophe}").replace(/'(.*?)'/g,(function(e,t){return r.push(t),"$$"+(r.length-1)+"$$"})).replace(o,(function(e){return s(e,t||{})}));return r.length&&(n=n.replace(/\$\$(\d+)\$\$/g,(function(e,t){return r[+t]})).replace(/\{apostrophe\}/g,"'")),[n.replace(/([\s\uFEFF\xA0])\{ampm\}([\s\uFEFF\xA0])/,"$1").replace("{ampm}","").replace(a,""),n]}function u(e){return e.split(/(\{[0|1]\})/g).filter(Boolean).map((function(e){switch(e){case"{0}":return{source:i.RangePatternType.startRange,pattern:e};case"{1}":return{source:i.RangePatternType.endRange,pattern:e};default:return{source:i.RangePatternType.shared,pattern:e}}}))}function d(e){for(var t,r=/\{(.*?)\}/g,n={},o=0;t=r.exec(e);){if(t[0]in n){o=t.index;break}n[t[0]]=t.index}return o?[{source:i.RangePatternType.startRange,pattern:e.slice(0,o)},{source:i.RangePatternType.endRange,pattern:e.slice(o)}]:[{source:i.RangePatternType.startRange,pattern:e}]}t.processDateTimePattern=l,t.parseDateTimeSkeleton=function(e,t,r,i){void 0===t&&(t=e);var a={pattern:"",pattern12:"",skeleton:e,rawPattern:t,rangePatterns:{},rangePatterns12:{}};if(r)for(var f in r){var p=c(f),h={patternParts:[]},m=l(r[f],h),y=m[0],v=m[1];a.rangePatterns[p]=n.__assign(n.__assign({},h),{patternParts:d(y)}),a.rangePatterns12[p]=n.__assign(n.__assign({},h),{patternParts:d(v)})}if(i){var z=u(i);a.rangePatterns.default={patternParts:z},a.rangePatterns12.default={patternParts:z}}e.replace(o,(function(e){return s(e,a)}));var g=l(t),b=g[0],w=g[1];return a.pattern=b,a.pattern12=w,a},t.splitFallbackRangePattern=u,t.splitRangePattern=d},35328:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shortMorePenalty=t.shortLessPenalty=t.longMorePenalty=t.longLessPenalty=t.differentNumericTypePenalty=t.additionPenalty=t.removalPenalty=t.DATE_TIME_PROPS=void 0,t.DATE_TIME_PROPS=["weekday","era","year","month","day","hour","minute","second","timeZoneName"],t.removalPenalty=120,t.additionPenalty=20,t.differentNumericTypePenalty=15,t.longLessPenalty=8,t.longMorePenalty=6,t.shortLessPenalty=6,t.shortMorePenalty=3},15875:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeFormat=void 0;var i=r(87480),o=r(71160),a=i.__importDefault(r(8951)),s=i.__importDefault(r(99431)),c=r(10465),l=r(81800),u=r(79916),d=r(35328),f=r(85923),p=r(99607),h=r(91920),m=r(20059),y=Object.keys(s.default).reduce((function(e,t){return e[t.toUpperCase()]=s.default[t],e}),{}),v=["locale","calendar","numberingSystem","dateStyle","timeStyle","timeZone","hourCycle","weekday","era","year","month","day","hour","minute","second","timeZoneName"],z={enumerable:!1,configurable:!0,get:function(){if("object"!==n(this)||!o.OrdinaryHasInstance(t.DateTimeFormat,this))throw TypeError("Intl.DateTimeFormat format property accessor called on incompatible receiver");var e=a.default(this),r=this,i=e.boundFormat;if(void 0===i){i=function(e){var n;return n=void 0===e?Date.now():Number(e),l.FormatDateTime(r,n,{getInternalSlots:a.default,localeData:t.DateTimeFormat.localeData,tzData:t.DateTimeFormat.tzData,getDefaultTimeZone:t.DateTimeFormat.getDefaultTimeZone})};try{Object.defineProperty(i,"name",{configurable:!0,enumerable:!1,writable:!1,value:""})}catch(s){}e.boundFormat=i}return i}};try{Object.defineProperty(z.get,"name",{configurable:!0,enumerable:!1,writable:!1,value:"get format"})}catch(g){}t.DateTimeFormat=function(e,r){if(!this||!o.OrdinaryHasInstance(t.DateTimeFormat,this))return new t.DateTimeFormat(e,r);u.InitializeDateTimeFormat(this,e,r,{tzData:t.DateTimeFormat.tzData,uppercaseLinks:y,availableLocales:t.DateTimeFormat.availableLocales,relevantExtensionKeys:t.DateTimeFormat.relevantExtensionKeys,getDefaultLocale:t.DateTimeFormat.getDefaultLocale,getDefaultTimeZone:t.DateTimeFormat.getDefaultTimeZone,getInternalSlots:a.default,localeData:t.DateTimeFormat.localeData});var n=a.default(this).dataLocale,i=t.DateTimeFormat.localeData[n];o.invariant(void 0!==i,"Cannot load locale-dependent data for "+n+".")},o.defineProperty(t.DateTimeFormat,"supportedLocalesOf",{value:function(e,r){return o.SupportedLocales(t.DateTimeFormat.availableLocales,o.CanonicalizeLocaleList(e),r)}}),o.defineProperty(t.DateTimeFormat.prototype,"resolvedOptions",{value:function(){if("object"!==n(this)||!o.OrdinaryHasInstance(t.DateTimeFormat,this))throw TypeError("Method Intl.DateTimeFormat.prototype.resolvedOptions called on incompatible receiver");for(var e=a.default(this),r={},i=0,s=v;i-1&&(void 0===e.dateStyle&&void 0===e.timeStyle||(l=void 0)),void 0!==l&&(r[c]=l)}return r}}),o.defineProperty(t.DateTimeFormat.prototype,"formatToParts",{value:function(e){return e=void 0===e?Date.now():o.ToNumber(e),f.FormatDateTimeToParts(this,e,{getInternalSlots:a.default,localeData:t.DateTimeFormat.localeData,tzData:t.DateTimeFormat.tzData,getDefaultTimeZone:t.DateTimeFormat.getDefaultTimeZone})}}),o.defineProperty(t.DateTimeFormat.prototype,"formatRangeToParts",{value:function(e,r){if("object"!==n(this))throw new TypeError;if(void 0===e||void 0===r)throw new TypeError("startDate/endDate cannot be undefined");var i=o.ToNumber(e),s=o.ToNumber(r);return p.FormatDateTimeRangeToParts(this,i,s,{getInternalSlots:a.default,localeData:t.DateTimeFormat.localeData,tzData:t.DateTimeFormat.tzData,getDefaultTimeZone:t.DateTimeFormat.getDefaultTimeZone})}}),o.defineProperty(t.DateTimeFormat.prototype,"formatRange",{value:function(e,r){if("object"!==n(this))throw new TypeError;if(void 0===e||void 0===r)throw new TypeError("startDate/endDate cannot be undefined");var i=o.ToNumber(e),s=o.ToNumber(r);return h.FormatDateTimeRange(this,i,s,{getInternalSlots:a.default,localeData:t.DateTimeFormat.localeData,tzData:t.DateTimeFormat.tzData,getDefaultTimeZone:t.DateTimeFormat.getDefaultTimeZone})}});t.DateTimeFormat.__setDefaultTimeZone=function(e){if(void 0!==e){if(e=String(e),!o.IsValidTimeZoneName(e,{tzData:t.DateTimeFormat.tzData,uppercaseLinks:y}))throw new RangeError("Invalid timeZoneName");e=o.CanonicalizeTimeZoneName(e,{tzData:t.DateTimeFormat.tzData,uppercaseLinks:y})}else e="UTC";t.DateTimeFormat.__defaultTimeZone=e},t.DateTimeFormat.relevantExtensionKeys=["nu","ca","hc"],t.DateTimeFormat.__defaultTimeZone="UTC",t.DateTimeFormat.getDefaultTimeZone=function(){return t.DateTimeFormat.__defaultTimeZone},t.DateTimeFormat.__addLocaleData=function(){for(var e=[],r=0;rt[0]?1:0}function u(e,t){return e.typet.type?1:0}function d(e,t){for(var r=(0,n.__spreadArray)([],e,!0),i=0,o=t;i-1&&(v=b)}}v&&(t.region=v),t.region=t.region.toUpperCase()}if(t.script&&(t.script=t.script[0].toUpperCase()+t.script.slice(1).toLowerCase(),i.scriptAlias[t.script]&&(t.script=i.scriptAlias[t.script])),t.variants.length){for(var w=0;w-1&&d.push("caseFirst"),u.indexOf("kn")>-1&&d.push("numeric"),void 0===t)throw new TypeError("First argument to Intl.Locale constructor can't be empty or missing");if("string"!=typeof t&&"object"!==n(t))throw new TypeError("tag must be a string or object");t="object"===n(t)&&(c=(0,s.default)(t))&&c.initializedLocale?c.locale:t.toString(),c=(0,s.default)(this);var f=(0,o.CoerceOptionsToObject)(r);t=function(e,t){(0,o.invariant)("string"==typeof e,"language tag must be a string"),(0,o.invariant)((0,a.isStructurallyValidLanguageTag)(e),"malformed language tag",RangeError);var r=(0,o.GetOption)(t,"language","string",void 0,void 0);void 0!==r&&(0,o.invariant)((0,a.isUnicodeLanguageSubtag)(r),"Malformed unicode_language_subtag",RangeError);var n=(0,o.GetOption)(t,"script","string",void 0,void 0);void 0!==n&&(0,o.invariant)((0,a.isUnicodeScriptSubtag)(n),"Malformed unicode_script_subtag",RangeError);var s=(0,o.GetOption)(t,"region","string",void 0,void 0);void 0!==s&&(0,o.invariant)((0,a.isUnicodeRegionSubtag)(s),"Malformed unicode_region_subtag",RangeError);var c=(0,a.parseUnicodeLanguageId)(e);return void 0!==r&&(c.lang=r),void 0!==n&&(c.script=n),void 0!==s&&(c.region=s),Intl.getCanonicalLocales((0,a.emitUnicodeLocaleId)((0,i.__assign)((0,i.__assign)({},(0,a.parseUnicodeLocaleId)(e)),{lang:c})))[0]}(t,f);var p=Object.create(null),h=(0,o.GetOption)(f,"calendar","string",void 0,void 0);if(void 0!==h&&!l.test(h))throw new RangeError("invalid calendar");p.ca=h;var m=(0,o.GetOption)(f,"collation","string",void 0,void 0);if(void 0!==m&&!l.test(m))throw new RangeError("invalid collation");p.co=m;var y=(0,o.GetOption)(f,"hourCycle","string",["h11","h12","h23","h24"],void 0);p.hc=y;var v=(0,o.GetOption)(f,"caseFirst","string",["upper","lower","false"],void 0);p.kf=v;var z,g=(0,o.GetOption)(f,"numeric","boolean",void 0,void 0);void 0!==g&&(z=String(g)),p.kn=z;var b=(0,o.GetOption)(f,"numberingSystem","string",void 0,void 0);if(void 0!==b&&!l.test(b))throw new RangeError("Invalid numberingSystem");p.nu=b;var w=function(e,t,r){for(var n,i=[],s=(0,a.parseUnicodeLocaleId)(e),c=0,l=s.extensions;c-1&&(c.caseFirst=w.kf),u.indexOf("kn")>-1&&(c.numeric=(0,o.SameValue)(w.kn,"true")),c.numberingSystem=w.nu}return e.prototype.maximize=function(){var t=(0,s.default)(this).locale;try{return new e(d(t))}catch(r){return new e(t)}},e.prototype.minimize=function(){var t=(0,s.default)(this).locale;try{return new e(function(e){var t=d(e);if(!t)return e;t=(0,a.emitUnicodeLanguageId)((0,i.__assign)((0,i.__assign)({},(0,a.parseUnicodeLanguageId)(t)),{variants:[]}));var r=(0,a.parseUnicodeLocaleId)(e),n=r.lang,o=n.lang,s=n.script,c=n.region,l=n.variants;return d((0,a.emitUnicodeLanguageId)({lang:o,variants:[]}))===t?(0,a.emitUnicodeLocaleId)((0,i.__assign)((0,i.__assign)({},r),{lang:u(o,void 0,void 0,l)})):c&&d((0,a.emitUnicodeLanguageId)({lang:o,region:c,variants:[]}))===t?(0,a.emitUnicodeLocaleId)((0,i.__assign)((0,i.__assign)({},r),{lang:u(o,void 0,c,l)})):s&&d((0,a.emitUnicodeLanguageId)({lang:o,script:s,variants:[]}))===t?(0,a.emitUnicodeLocaleId)((0,i.__assign)((0,i.__assign)({},r),{lang:u(o,s,void 0,l)})):e}(t))}catch(r){return new e(t)}},e.prototype.toString=function(){return(0,s.default)(this).locale},Object.defineProperty(e.prototype,"baseName",{get:function(){var e=(0,s.default)(this).locale;return(0,a.emitUnicodeLanguageId)((0,a.parseUnicodeLanguageId)(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return(0,s.default)(this).calendar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collation",{get:function(){return(0,s.default)(this).collation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hourCycle",{get:function(){return(0,s.default)(this).hourCycle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caseFirst",{get:function(){return(0,s.default)(this).caseFirst},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numeric",{get:function(){return(0,s.default)(this).numeric},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberingSystem",{get:function(){return(0,s.default)(this).numberingSystem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var e=(0,s.default)(this).locale;return(0,a.parseUnicodeLanguageId)(e).lang},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"script",{get:function(){var e=(0,s.default)(this).locale;return(0,a.parseUnicodeLanguageId)(e).script},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"region",{get:function(){var e=(0,s.default)(this).locale;return(0,a.parseUnicodeLanguageId)(e).region},enumerable:!1,configurable:!0}),e.relevantExtensionKeys=c,e}();t.Locale=f;try{"undefined"!=typeof Symbol&&Object.defineProperty(f.prototype,Symbol.toStringTag,{value:"Intl.Locale",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype.constructor,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(p){}t.default=f},33633:function(e,t,r){"use strict";var n=r(52443);(0,r(32812).shouldPolyfill)()&&Object.defineProperty(Intl,"Locale",{value:n.Locale,writable:!0,enumerable:!1,configurable:!0})},32812:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldPolyfill=void 0,t.shouldPolyfill=function(){return!("Locale"in Intl)||function(){try{return"x-private"===new Intl.Locale("und-x-private").toString()}catch(e){return!0}}()}},96512:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestAvailableLocale=void 0,t.BestAvailableLocale=function(e,t){for(var r=t;;){if(e.has(r))return r;var n=r.lastIndexOf("-");if(!~n)return;n>=2&&"-"===r[n-2]&&(n-=2),r=r.slice(0,n)}}},76099:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestFitMatcher=void 0;var n=r(96512),i=r(30598);t.BestFitMatcher=function(e,t,r){var o,a=Array.from(e).reduce((function(e,t){return e[t]=t,e}),{}),s=new Set;e.forEach((function(e){var t=new Intl.Locale(e).minimize().toString();a[t]=e,s.add(t)}));for(var c=0,l=t;c2){var _=f.indexOf("-x-");if(-1===_)f+=h;else{var j=f.slice(0,_),E=f.slice(_,f.length);f=j+h+E}f=Intl.getCanonicalLocales(f)[0]}return p.locale=f,p}},71387:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeExtensionValue=void 0;var n=r(30598);t.UnicodeExtensionValue=function(e,t){n.invariant(2===t.length,"key must have 2 elements");var r=e.length,i="-"+t+"-",o=e.indexOf(i);if(-1!==o){for(var a=o+4,s=a,c=a,l=!1;!l;){var u=e.indexOf("-",c);2===(-1===u?r-c:u-c)?l=!0:-1===u?(s=r,l=!0):(s=u,c=u+1)}return e.slice(a,s)}if(i="-"+t,-1!==(o=e.indexOf(i))&&o+3===r)return""}},30598:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=t.UNICODE_EXTENSION_SEQUENCE_REGEX=void 0,t.UNICODE_EXTENSION_SEQUENCE_REGEX=/-u(?:-[0-9a-z]{2,8})+/gi,t.invariant=function(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}},17595:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveLocale=t.LookupSupportedLocales=t.match=void 0;var n=r(92904);t.match=function(e,t,r,i){var o=t.reduce((function(e,t){return e.add(t),e}),new Set);return n.ResolveLocale(o,e,{localeMatcher:(null==i?void 0:i.algorithm)||"best fit"},[],{},(function(){return r})).locale};var i=r(42776);Object.defineProperty(t,"LookupSupportedLocales",{enumerable:!0,get:function(){return i.LookupSupportedLocales}});var o=r(92904);Object.defineProperty(t,"ResolveLocale",{enumerable:!0,get:function(){return o.ResolveLocale}})},1437:function(){Intl.NumberFormat&&"function"==typeof Intl.NumberFormat.__addLocaleData&&Intl.NumberFormat.__addLocaleData({data:{units:{simple:{degree:{long:{other:"{0} degrees",one:"{0} degree"},short:{other:"{0} deg"},narrow:{other:"{0}°"},perUnit:{}},hectare:{long:{other:"{0} hectares",one:"{0} hectare"},short:{other:"{0} ha"},narrow:{other:"{0}ha"},perUnit:{}},acre:{long:{other:"{0} acres",one:"{0} acre"},short:{other:"{0} ac"},narrow:{other:"{0}ac"},perUnit:{}},percent:{long:{other:"{0} percent"},short:{other:"{0}%"},narrow:{other:"{0}%"},perUnit:{}},"liter-per-kilometer":{long:{other:"{0} liters per kilometer",one:"{0} liter per kilometer"},short:{other:"{0} L/km"},narrow:{other:"{0}L/km"},perUnit:{}},"mile-per-gallon":{long:{other:"{0} miles per gallon",one:"{0} mile per gallon"},short:{other:"{0} mpg"},narrow:{other:"{0}mpg"},perUnit:{}},petabyte:{long:{other:"{0} petabytes",one:"{0} petabyte"},short:{other:"{0} PB"},narrow:{other:"{0}PB"},perUnit:{}},terabyte:{long:{other:"{0} terabytes",one:"{0} terabyte"},short:{other:"{0} TB"},narrow:{other:"{0}TB"},perUnit:{}},terabit:{long:{other:"{0} terabits",one:"{0} terabit"},short:{other:"{0} Tb"},narrow:{other:"{0}Tb"},perUnit:{}},gigabyte:{long:{other:"{0} gigabytes",one:"{0} gigabyte"},short:{other:"{0} GB"},narrow:{other:"{0}GB"},perUnit:{}},gigabit:{long:{other:"{0} gigabits",one:"{0} gigabit"},short:{other:"{0} Gb"},narrow:{other:"{0}Gb"},perUnit:{}},megabyte:{long:{other:"{0} megabytes",one:"{0} megabyte"},short:{other:"{0} MB"},narrow:{other:"{0}MB"},perUnit:{}},megabit:{long:{other:"{0} megabits",one:"{0} megabit"},short:{other:"{0} Mb"},narrow:{other:"{0}Mb"},perUnit:{}},kilobyte:{long:{other:"{0} kilobytes",one:"{0} kilobyte"},short:{other:"{0} kB"},narrow:{other:"{0}kB"},perUnit:{}},kilobit:{long:{other:"{0} kilobits",one:"{0} kilobit"},short:{other:"{0} kb"},narrow:{other:"{0}kb"},perUnit:{}},byte:{long:{other:"{0} bytes",one:"{0} byte"},short:{other:"{0} byte"},narrow:{other:"{0}B"},perUnit:{}},bit:{long:{other:"{0} bits",one:"{0} bit"},short:{other:"{0} bit"},narrow:{other:"{0}bit"},perUnit:{}},year:{long:{other:"{0} years",one:"{0} year"},short:{other:"{0} yrs",one:"{0} yr"},narrow:{other:"{0}y"},perUnit:{long:"{0} per year",short:"{0}/y",narrow:"{0}/y"}},month:{long:{other:"{0} months",one:"{0} month"},short:{other:"{0} mths",one:"{0} mth"},narrow:{other:"{0}m"},perUnit:{long:"{0} per month",short:"{0}/m",narrow:"{0}/m"}},week:{long:{other:"{0} weeks",one:"{0} week"},short:{other:"{0} wks",one:"{0} wk"},narrow:{other:"{0}w"},perUnit:{long:"{0} per week",short:"{0}/w",narrow:"{0}/w"}},day:{long:{other:"{0} days",one:"{0} day"},short:{other:"{0} days",one:"{0} day"},narrow:{other:"{0}d"},perUnit:{long:"{0} per day",short:"{0}/d",narrow:"{0}/d"}},hour:{long:{other:"{0} hours",one:"{0} hour"},short:{other:"{0} hr"},narrow:{other:"{0}h"},perUnit:{long:"{0} per hour",short:"{0}/h",narrow:"{0}/h"}},minute:{long:{other:"{0} minutes",one:"{0} minute"},short:{other:"{0} min"},narrow:{other:"{0}m"},perUnit:{long:"{0} per minute",short:"{0}/min",narrow:"{0}/min"}},second:{long:{other:"{0} seconds",one:"{0} second"},short:{other:"{0} sec"},narrow:{other:"{0}s"},perUnit:{long:"{0} per second",short:"{0}/s",narrow:"{0}/s"}},millisecond:{long:{other:"{0} milliseconds",one:"{0} millisecond"},short:{other:"{0} ms"},narrow:{other:"{0}ms"},perUnit:{}},kilometer:{long:{other:"{0} kilometers",one:"{0} kilometer"},short:{other:"{0} km"},narrow:{other:"{0}km"},perUnit:{long:"{0} per kilometer",short:"{0}/km",narrow:"{0}/km"}},meter:{long:{other:"{0} meters",one:"{0} meter"},short:{other:"{0} m"},narrow:{other:"{0}m"},perUnit:{long:"{0} per meter",short:"{0}/m",narrow:"{0}/m"}},centimeter:{long:{other:"{0} centimeters",one:"{0} centimeter"},short:{other:"{0} cm"},narrow:{other:"{0}cm"},perUnit:{long:"{0} per centimeter",short:"{0}/cm",narrow:"{0}/cm"}},millimeter:{long:{other:"{0} millimeters",one:"{0} millimeter"},short:{other:"{0} mm"},narrow:{other:"{0}mm"},perUnit:{}},mile:{long:{other:"{0} miles",one:"{0} mile"},short:{other:"{0} mi"},narrow:{other:"{0}mi"},perUnit:{}},yard:{long:{other:"{0} yards",one:"{0} yard"},short:{other:"{0} yd"},narrow:{other:"{0}yd"},perUnit:{}},foot:{long:{other:"{0} feet",one:"{0} foot"},short:{other:"{0} ft"},narrow:{other:"{0}′"},perUnit:{long:"{0} per foot",short:"{0}/ft",narrow:"{0}/ft"}},inch:{long:{other:"{0} inches",one:"{0} inch"},short:{other:"{0} in"},narrow:{other:"{0}″"},perUnit:{long:"{0} per inch",short:"{0}/in",narrow:"{0}/in"}},"mile-scandinavian":{long:{other:"{0} miles-scandinavian",one:"{0} mile-scandinavian"},short:{other:"{0} smi"},narrow:{other:"{0}smi"},perUnit:{}},kilogram:{long:{other:"{0} kilograms",one:"{0} kilogram"},short:{other:"{0} kg"},narrow:{other:"{0}kg"},perUnit:{long:"{0} per kilogram",short:"{0}/kg",narrow:"{0}/kg"}},gram:{long:{other:"{0} grams",one:"{0} gram"},short:{other:"{0} g"},narrow:{other:"{0}g"},perUnit:{long:"{0} per gram",short:"{0}/g",narrow:"{0}/g"}},stone:{long:{other:"{0} stones",one:"{0} stone"},short:{other:"{0} st"},narrow:{other:"{0}st"},perUnit:{}},pound:{long:{other:"{0} pounds",one:"{0} pound"},short:{other:"{0} lb"},narrow:{other:"{0}#"},perUnit:{long:"{0} per pound",short:"{0}/lb",narrow:"{0}/lb"}},ounce:{long:{other:"{0} ounces",one:"{0} ounce"},short:{other:"{0} oz"},narrow:{other:"{0}oz"},perUnit:{long:"{0} per ounce",short:"{0}/oz",narrow:"{0}/oz"}},"kilometer-per-hour":{long:{other:"{0} kilometers per hour",one:"{0} kilometer per hour"},short:{other:"{0} km/h"},narrow:{other:"{0}km/h"},perUnit:{}},"meter-per-second":{long:{other:"{0} meters per second",one:"{0} meter per second"},short:{other:"{0} m/s"},narrow:{other:"{0}m/s"},perUnit:{}},"mile-per-hour":{long:{other:"{0} miles per hour",one:"{0} mile per hour"},short:{other:"{0} mph"},narrow:{other:"{0}mph"},perUnit:{}},celsius:{long:{other:"{0} degrees Celsius",one:"{0} degree Celsius"},short:{other:"{0}°C"},narrow:{other:"{0}°C"},perUnit:{}},fahrenheit:{long:{other:"{0} degrees Fahrenheit",one:"{0} degree Fahrenheit"},short:{other:"{0}°F"},narrow:{other:"{0}°"},perUnit:{}},liter:{long:{other:"{0} liters",one:"{0} liter"},short:{other:"{0} L"},narrow:{other:"{0}L"},perUnit:{long:"{0} per liter",short:"{0}/L",narrow:"{0}/L"}},milliliter:{long:{other:"{0} milliliters",one:"{0} milliliter"},short:{other:"{0} mL"},narrow:{other:"{0}mL"},perUnit:{}},gallon:{long:{other:"{0} gallons",one:"{0} gallon"},short:{other:"{0} gal"},narrow:{other:"{0}gal"},perUnit:{long:"{0} per gallon",short:"{0}/gal US",narrow:"{0}/gal"}},"fluid-ounce":{long:{other:"{0} fluid ounces",one:"{0} fluid ounce"},short:{other:"{0} fl oz"},narrow:{other:"{0}fl oz"},perUnit:{}}},compound:{per:{long:"{0} per {1}",short:"{0}/{1}",narrow:"{0}/{1}"}}},currencies:{ADP:{displayName:{other:"Andorran pesetas",one:"Andorran peseta"},symbol:"ADP",narrow:"ADP"},AED:{displayName:{other:"UAE dirhams",one:"UAE dirham"},symbol:"AED",narrow:"AED"},AFA:{displayName:{other:"Afghan afghanis (1927–2002)",one:"Afghan afghani (1927–2002)"},symbol:"AFA",narrow:"AFA"},AFN:{displayName:{other:"Afghan Afghanis",one:"Afghan Afghani"},symbol:"AFN",narrow:"؋"},ALK:{displayName:{other:"Albanian lekë (1946–1965)",one:"Albanian lek (1946–1965)"},symbol:"ALK",narrow:"ALK"},ALL:{displayName:{other:"Albanian lekë",one:"Albanian lek"},symbol:"ALL",narrow:"ALL"},AMD:{displayName:{other:"Armenian drams",one:"Armenian dram"},symbol:"AMD",narrow:"֏"},ANG:{displayName:{other:"Netherlands Antillean guilders",one:"Netherlands Antillean guilder"},symbol:"ANG",narrow:"ANG"},AOA:{displayName:{other:"Angolan kwanzas",one:"Angolan kwanza"},symbol:"AOA",narrow:"Kz"},AOK:{displayName:{other:"Angolan kwanzas (1977–1991)",one:"Angolan kwanza (1977–1991)"},symbol:"AOK",narrow:"AOK"},AON:{displayName:{other:"Angolan new kwanzas (1990–2000)",one:"Angolan new kwanza (1990–2000)"},symbol:"AON",narrow:"AON"},AOR:{displayName:{other:"Angolan readjusted kwanzas (1995–1999)",one:"Angolan readjusted kwanza (1995–1999)"},symbol:"AOR",narrow:"AOR"},ARA:{displayName:{other:"Argentine australs",one:"Argentine austral"},symbol:"ARA",narrow:"ARA"},ARL:{displayName:{other:"Argentine pesos ley (1970–1983)",one:"Argentine peso ley (1970–1983)"},symbol:"ARL",narrow:"ARL"},ARM:{displayName:{other:"Argentine pesos (1881–1970)",one:"Argentine peso (1881–1970)"},symbol:"ARM",narrow:"ARM"},ARP:{displayName:{other:"Argentine pesos (1983–1985)",one:"Argentine peso (1983–1985)"},symbol:"ARP",narrow:"ARP"},ARS:{displayName:{other:"Argentine pesos",one:"Argentine peso"},symbol:"ARS",narrow:"$"},ATS:{displayName:{other:"Austrian schillings",one:"Austrian schilling"},symbol:"ATS",narrow:"ATS"},AUD:{displayName:{other:"Australian dollars",one:"Australian dollar"},symbol:"A$",narrow:"$"},AWG:{displayName:{other:"Aruban florin"},symbol:"AWG",narrow:"AWG"},AZM:{displayName:{other:"Azerbaijani manats (1993–2006)",one:"Azerbaijani manat (1993–2006)"},symbol:"AZM",narrow:"AZM"},AZN:{displayName:{other:"Azerbaijani manats",one:"Azerbaijani manat"},symbol:"AZN",narrow:"₼"},BAD:{displayName:{other:"Bosnia-Herzegovina dinars (1992–1994)",one:"Bosnia-Herzegovina dinar (1992–1994)"},symbol:"BAD",narrow:"BAD"},BAM:{displayName:{other:"Bosnia-Herzegovina convertible marks",one:"Bosnia-Herzegovina convertible mark"},symbol:"BAM",narrow:"KM"},BAN:{displayName:{other:"Bosnia-Herzegovina new dinars (1994–1997)",one:"Bosnia-Herzegovina new dinar (1994–1997)"},symbol:"BAN",narrow:"BAN"},BBD:{displayName:{other:"Barbadian dollars",one:"Barbadian dollar"},symbol:"BBD",narrow:"$"},BDT:{displayName:{other:"Bangladeshi takas",one:"Bangladeshi taka"},symbol:"BDT",narrow:"৳"},BEC:{displayName:{other:"Belgian francs (convertible)",one:"Belgian franc (convertible)"},symbol:"BEC",narrow:"BEC"},BEF:{displayName:{other:"Belgian francs",one:"Belgian franc"},symbol:"BEF",narrow:"BEF"},BEL:{displayName:{other:"Belgian francs (financial)",one:"Belgian franc (financial)"},symbol:"BEL",narrow:"BEL"},BGL:{displayName:{other:"Bulgarian hard leva",one:"Bulgarian hard lev"},symbol:"BGL",narrow:"BGL"},BGM:{displayName:{other:"Bulgarian socialist leva",one:"Bulgarian socialist lev"},symbol:"BGM",narrow:"BGM"},BGN:{displayName:{other:"Bulgarian leva",one:"Bulgarian lev"},symbol:"BGN",narrow:"BGN"},BGO:{displayName:{other:"Bulgarian leva (1879–1952)",one:"Bulgarian lev (1879–1952)"},symbol:"BGO",narrow:"BGO"},BHD:{displayName:{other:"Bahraini dinars",one:"Bahraini dinar"},symbol:"BHD",narrow:"BHD"},BIF:{displayName:{other:"Burundian francs",one:"Burundian franc"},symbol:"BIF",narrow:"BIF"},BMD:{displayName:{other:"Bermudan dollars",one:"Bermudan dollar"},symbol:"BMD",narrow:"$"},BND:{displayName:{other:"Brunei dollars",one:"Brunei dollar"},symbol:"BND",narrow:"$"},BOB:{displayName:{other:"Bolivian bolivianos",one:"Bolivian boliviano"},symbol:"BOB",narrow:"Bs"},BOL:{displayName:{other:"Bolivian bolivianos (1863–1963)",one:"Bolivian boliviano (1863–1963)"},symbol:"BOL",narrow:"BOL"},BOP:{displayName:{other:"Bolivian pesos",one:"Bolivian peso"},symbol:"BOP",narrow:"BOP"},BOV:{displayName:{other:"Bolivian mvdols",one:"Bolivian mvdol"},symbol:"BOV",narrow:"BOV"},BRB:{displayName:{other:"Brazilian new cruzeiros (1967–1986)",one:"Brazilian new cruzeiro (1967–1986)"},symbol:"BRB",narrow:"BRB"},BRC:{displayName:{other:"Brazilian cruzados (1986–1989)",one:"Brazilian cruzado (1986–1989)"},symbol:"BRC",narrow:"BRC"},BRE:{displayName:{other:"Brazilian cruzeiros (1990–1993)",one:"Brazilian cruzeiro (1990–1993)"},symbol:"BRE",narrow:"BRE"},BRL:{displayName:{other:"Brazilian reals",one:"Brazilian real"},symbol:"R$",narrow:"R$"},BRN:{displayName:{other:"Brazilian new cruzados (1989–1990)",one:"Brazilian new cruzado (1989–1990)"},symbol:"BRN",narrow:"BRN"},BRR:{displayName:{other:"Brazilian cruzeiros (1993–1994)",one:"Brazilian cruzeiro (1993–1994)"},symbol:"BRR",narrow:"BRR"},BRZ:{displayName:{other:"Brazilian cruzeiros (1942–1967)",one:"Brazilian cruzeiro (1942–1967)"},symbol:"BRZ",narrow:"BRZ"},BSD:{displayName:{other:"Bahamian dollars",one:"Bahamian dollar"},symbol:"BSD",narrow:"$"},BTN:{displayName:{other:"Bhutanese ngultrums",one:"Bhutanese ngultrum"},symbol:"BTN",narrow:"BTN"},BUK:{displayName:{other:"Burmese kyats",one:"Burmese kyat"},symbol:"BUK",narrow:"BUK"},BWP:{displayName:{other:"Botswanan pulas",one:"Botswanan pula"},symbol:"BWP",narrow:"P"},BYB:{displayName:{other:"Belarusian rubles (1994–1999)",one:"Belarusian ruble (1994–1999)"},symbol:"BYB",narrow:"BYB"},BYN:{displayName:{other:"Belarusian rubles",one:"Belarusian ruble"},symbol:"BYN",narrow:"р."},BYR:{displayName:{other:"Belarusian rubles (2000–2016)",one:"Belarusian ruble (2000–2016)"},symbol:"BYR",narrow:"BYR"},BZD:{displayName:{other:"Belize dollars",one:"Belize dollar"},symbol:"BZD",narrow:"$"},CAD:{displayName:{other:"Canadian dollars",one:"Canadian dollar"},symbol:"CA$",narrow:"$"},CDF:{displayName:{other:"Congolese francs",one:"Congolese franc"},symbol:"CDF",narrow:"CDF"},CHE:{displayName:{other:"WIR euros",one:"WIR euro"},symbol:"CHE",narrow:"CHE"},CHF:{displayName:{other:"Swiss francs",one:"Swiss franc"},symbol:"CHF",narrow:"CHF"},CHW:{displayName:{other:"WIR francs",one:"WIR franc"},symbol:"CHW",narrow:"CHW"},CLE:{displayName:{other:"Chilean escudos",one:"Chilean escudo"},symbol:"CLE",narrow:"CLE"},CLF:{displayName:{other:"Chilean units of account (UF)",one:"Chilean unit of account (UF)"},symbol:"CLF",narrow:"CLF"},CLP:{displayName:{other:"Chilean pesos",one:"Chilean peso"},symbol:"CLP",narrow:"$"},CNH:{displayName:{other:"Chinese yuan (offshore)"},symbol:"CNH",narrow:"CNH"},CNX:{displayName:{other:"Chinese People’s Bank dollars",one:"Chinese People’s Bank dollar"},symbol:"CNX",narrow:"CNX"},CNY:{displayName:{other:"Chinese yuan"},symbol:"CN¥",narrow:"¥"},COP:{displayName:{other:"Colombian pesos",one:"Colombian peso"},symbol:"COP",narrow:"$"},COU:{displayName:{other:"Colombian real value units",one:"Colombian real value unit"},symbol:"COU",narrow:"COU"},CRC:{displayName:{other:"Costa Rican colóns",one:"Costa Rican colón"},symbol:"CRC",narrow:"₡"},CSD:{displayName:{other:"Serbian dinars (2002–2006)",one:"Serbian dinar (2002–2006)"},symbol:"CSD",narrow:"CSD"},CSK:{displayName:{other:"Czechoslovak hard korunas",one:"Czechoslovak hard koruna"},symbol:"CSK",narrow:"CSK"},CUC:{displayName:{other:"Cuban convertible pesos",one:"Cuban convertible peso"},symbol:"CUC",narrow:"$"},CUP:{displayName:{other:"Cuban pesos",one:"Cuban peso"},symbol:"CUP",narrow:"$"},CVE:{displayName:{other:"Cape Verdean escudos",one:"Cape Verdean escudo"},symbol:"CVE",narrow:"CVE"},CYP:{displayName:{other:"Cypriot pounds",one:"Cypriot pound"},symbol:"CYP",narrow:"CYP"},CZK:{displayName:{other:"Czech korunas",one:"Czech koruna"},symbol:"CZK",narrow:"Kč"},DDM:{displayName:{other:"East German marks",one:"East German mark"},symbol:"DDM",narrow:"DDM"},DEM:{displayName:{other:"German marks",one:"German mark"},symbol:"DEM",narrow:"DEM"},DJF:{displayName:{other:"Djiboutian francs",one:"Djiboutian franc"},symbol:"DJF",narrow:"DJF"},DKK:{displayName:{other:"Danish kroner",one:"Danish krone"},symbol:"DKK",narrow:"kr"},DOP:{displayName:{other:"Dominican pesos",one:"Dominican peso"},symbol:"DOP",narrow:"$"},DZD:{displayName:{other:"Algerian dinars",one:"Algerian dinar"},symbol:"DZD",narrow:"DZD"},ECS:{displayName:{other:"Ecuadorian sucres",one:"Ecuadorian sucre"},symbol:"ECS",narrow:"ECS"},ECV:{displayName:{other:"Ecuadorian units of constant value",one:"Ecuadorian unit of constant value"},symbol:"ECV",narrow:"ECV"},EEK:{displayName:{other:"Estonian kroons",one:"Estonian kroon"},symbol:"EEK",narrow:"EEK"},EGP:{displayName:{other:"Egyptian pounds",one:"Egyptian pound"},symbol:"EGP",narrow:"E£"},ERN:{displayName:{other:"Eritrean nakfas",one:"Eritrean nakfa"},symbol:"ERN",narrow:"ERN"},ESA:{displayName:{other:"Spanish pesetas (A account)",one:"Spanish peseta (A account)"},symbol:"ESA",narrow:"ESA"},ESB:{displayName:{other:"Spanish pesetas (convertible account)",one:"Spanish peseta (convertible account)"},symbol:"ESB",narrow:"ESB"},ESP:{displayName:{other:"Spanish pesetas",one:"Spanish peseta"},symbol:"ESP",narrow:"₧"},ETB:{displayName:{other:"Ethiopian birrs",one:"Ethiopian birr"},symbol:"ETB",narrow:"ETB"},EUR:{displayName:{other:"euros",one:"euro"},symbol:"€",narrow:"€"},FIM:{displayName:{other:"Finnish markkas",one:"Finnish markka"},symbol:"FIM",narrow:"FIM"},FJD:{displayName:{other:"Fijian dollars",one:"Fijian dollar"},symbol:"FJD",narrow:"$"},FKP:{displayName:{other:"Falkland Islands pounds",one:"Falkland Islands pound"},symbol:"FKP",narrow:"£"},FRF:{displayName:{other:"French francs",one:"French franc"},symbol:"FRF",narrow:"FRF"},GBP:{displayName:{other:"British pounds",one:"British pound"},symbol:"£",narrow:"£"},GEK:{displayName:{other:"Georgian kupon larits",one:"Georgian kupon larit"},symbol:"GEK",narrow:"GEK"},GEL:{displayName:{other:"Georgian laris",one:"Georgian lari"},symbol:"GEL",narrow:"₾"},GHC:{displayName:{other:"Ghanaian cedis (1979–2007)",one:"Ghanaian cedi (1979–2007)"},symbol:"GHC",narrow:"GHC"},GHS:{displayName:{other:"Ghanaian cedis",one:"Ghanaian cedi"},symbol:"GHS",narrow:"GH₵"},GIP:{displayName:{other:"Gibraltar pounds",one:"Gibraltar pound"},symbol:"GIP",narrow:"£"},GMD:{displayName:{other:"Gambian dalasis",one:"Gambian dalasi"},symbol:"GMD",narrow:"GMD"},GNF:{displayName:{other:"Guinean francs",one:"Guinean franc"},symbol:"GNF",narrow:"FG"},GNS:{displayName:{other:"Guinean sylis",one:"Guinean syli"},symbol:"GNS",narrow:"GNS"},GQE:{displayName:{other:"Equatorial Guinean ekwele"},symbol:"GQE",narrow:"GQE"},GRD:{displayName:{other:"Greek drachmas",one:"Greek drachma"},symbol:"GRD",narrow:"GRD"},GTQ:{displayName:{other:"Guatemalan quetzals",one:"Guatemalan quetzal"},symbol:"GTQ",narrow:"Q"},GWE:{displayName:{other:"Portuguese Guinea escudos",one:"Portuguese Guinea escudo"},symbol:"GWE",narrow:"GWE"},GWP:{displayName:{other:"Guinea-Bissau pesos",one:"Guinea-Bissau peso"},symbol:"GWP",narrow:"GWP"},GYD:{displayName:{other:"Guyanaese dollars",one:"Guyanaese dollar"},symbol:"GYD",narrow:"$"},HKD:{displayName:{other:"Hong Kong dollars",one:"Hong Kong dollar"},symbol:"HK$",narrow:"$"},HNL:{displayName:{other:"Honduran lempiras",one:"Honduran lempira"},symbol:"HNL",narrow:"L"},HRD:{displayName:{other:"Croatian dinars",one:"Croatian dinar"},symbol:"HRD",narrow:"HRD"},HRK:{displayName:{other:"Croatian kunas",one:"Croatian kuna"},symbol:"HRK",narrow:"kn"},HTG:{displayName:{other:"Haitian gourdes",one:"Haitian gourde"},symbol:"HTG",narrow:"HTG"},HUF:{displayName:{other:"Hungarian forints",one:"Hungarian forint"},symbol:"HUF",narrow:"Ft"},IDR:{displayName:{other:"Indonesian rupiahs",one:"Indonesian rupiah"},symbol:"IDR",narrow:"Rp"},IEP:{displayName:{other:"Irish pounds",one:"Irish pound"},symbol:"IEP",narrow:"IEP"},ILP:{displayName:{other:"Israeli pounds",one:"Israeli pound"},symbol:"ILP",narrow:"ILP"},ILR:{displayName:{other:"Israeli shekels (1980–1985)",one:"Israeli shekel (1980–1985)"},symbol:"ILR",narrow:"ILR"},ILS:{displayName:{other:"Israeli new shekels",one:"Israeli new shekel"},symbol:"₪",narrow:"₪"},INR:{displayName:{other:"Indian rupees",one:"Indian rupee"},symbol:"₹",narrow:"₹"},IQD:{displayName:{other:"Iraqi dinars",one:"Iraqi dinar"},symbol:"IQD",narrow:"IQD"},IRR:{displayName:{other:"Iranian rials",one:"Iranian rial"},symbol:"IRR",narrow:"IRR"},ISJ:{displayName:{other:"Icelandic krónur (1918–1981)",one:"Icelandic króna (1918–1981)"},symbol:"ISJ",narrow:"ISJ"},ISK:{displayName:{other:"Icelandic krónur",one:"Icelandic króna"},symbol:"ISK",narrow:"kr"},ITL:{displayName:{other:"Italian liras",one:"Italian lira"},symbol:"ITL",narrow:"ITL"},JMD:{displayName:{other:"Jamaican dollars",one:"Jamaican dollar"},symbol:"JMD",narrow:"$"},JOD:{displayName:{other:"Jordanian dinars",one:"Jordanian dinar"},symbol:"JOD",narrow:"JOD"},JPY:{displayName:{other:"Japanese yen"},symbol:"¥",narrow:"¥"},KES:{displayName:{other:"Kenyan shillings",one:"Kenyan shilling"},symbol:"KES",narrow:"KES"},KGS:{displayName:{other:"Kyrgystani soms",one:"Kyrgystani som"},symbol:"KGS",narrow:"KGS"},KHR:{displayName:{other:"Cambodian riels",one:"Cambodian riel"},symbol:"KHR",narrow:"៛"},KMF:{displayName:{other:"Comorian francs",one:"Comorian franc"},symbol:"KMF",narrow:"CF"},KPW:{displayName:{other:"North Korean won"},symbol:"KPW",narrow:"₩"},KRH:{displayName:{other:"South Korean hwan (1953–1962)"},symbol:"KRH",narrow:"KRH"},KRO:{displayName:{other:"South Korean won (1945–1953)"},symbol:"KRO",narrow:"KRO"},KRW:{displayName:{other:"South Korean won"},symbol:"₩",narrow:"₩"},KWD:{displayName:{other:"Kuwaiti dinars",one:"Kuwaiti dinar"},symbol:"KWD",narrow:"KWD"},KYD:{displayName:{other:"Cayman Islands dollars",one:"Cayman Islands dollar"},symbol:"KYD",narrow:"$"},KZT:{displayName:{other:"Kazakhstani tenges",one:"Kazakhstani tenge"},symbol:"KZT",narrow:"₸"},LAK:{displayName:{other:"Laotian kips",one:"Laotian kip"},symbol:"LAK",narrow:"₭"},LBP:{displayName:{other:"Lebanese pounds",one:"Lebanese pound"},symbol:"LBP",narrow:"L£"},LKR:{displayName:{other:"Sri Lankan rupees",one:"Sri Lankan rupee"},symbol:"LKR",narrow:"Rs"},LRD:{displayName:{other:"Liberian dollars",one:"Liberian dollar"},symbol:"LRD",narrow:"$"},LSL:{displayName:{other:"Lesotho lotis",one:"Lesotho loti"},symbol:"LSL",narrow:"LSL"},LTL:{displayName:{other:"Lithuanian litai",one:"Lithuanian litas"},symbol:"LTL",narrow:"Lt"},LTT:{displayName:{other:"Lithuanian talonases",one:"Lithuanian talonas"},symbol:"LTT",narrow:"LTT"},LUC:{displayName:{other:"Luxembourgian convertible francs",one:"Luxembourgian convertible franc"},symbol:"LUC",narrow:"LUC"},LUF:{displayName:{other:"Luxembourgian francs",one:"Luxembourgian franc"},symbol:"LUF",narrow:"LUF"},LUL:{displayName:{other:"Luxembourg financial francs",one:"Luxembourg financial franc"},symbol:"LUL",narrow:"LUL"},LVL:{displayName:{other:"Latvian lati",one:"Latvian lats"},symbol:"LVL",narrow:"Ls"},LVR:{displayName:{other:"Latvian rubles",one:"Latvian ruble"},symbol:"LVR",narrow:"LVR"},LYD:{displayName:{other:"Libyan dinars",one:"Libyan dinar"},symbol:"LYD",narrow:"LYD"},MAD:{displayName:{other:"Moroccan dirhams",one:"Moroccan dirham"},symbol:"MAD",narrow:"MAD"},MAF:{displayName:{other:"Moroccan francs",one:"Moroccan franc"},symbol:"MAF",narrow:"MAF"},MCF:{displayName:{other:"Monegasque francs",one:"Monegasque franc"},symbol:"MCF",narrow:"MCF"},MDC:{displayName:{other:"Moldovan cupon"},symbol:"MDC",narrow:"MDC"},MDL:{displayName:{other:"Moldovan lei",one:"Moldovan leu"},symbol:"MDL",narrow:"MDL"},MGA:{displayName:{other:"Malagasy ariaries",one:"Malagasy ariary"},symbol:"MGA",narrow:"Ar"},MGF:{displayName:{other:"Malagasy francs",one:"Malagasy franc"},symbol:"MGF",narrow:"MGF"},MKD:{displayName:{other:"Macedonian denari",one:"Macedonian denar"},symbol:"MKD",narrow:"MKD"},MKN:{displayName:{other:"Macedonian denari (1992–1993)",one:"Macedonian denar (1992–1993)"},symbol:"MKN",narrow:"MKN"},MLF:{displayName:{other:"Malian francs",one:"Malian franc"},symbol:"MLF",narrow:"MLF"},MMK:{displayName:{other:"Myanmar kyats",one:"Myanmar kyat"},symbol:"MMK",narrow:"K"},MNT:{displayName:{other:"Mongolian tugriks",one:"Mongolian tugrik"},symbol:"MNT",narrow:"₮"},MOP:{displayName:{other:"Macanese patacas",one:"Macanese pataca"},symbol:"MOP",narrow:"MOP"},MRO:{displayName:{other:"Mauritanian ouguiyas (1973–2017)",one:"Mauritanian ouguiya (1973–2017)"},symbol:"MRO",narrow:"MRO"},MRU:{displayName:{other:"Mauritanian ouguiyas",one:"Mauritanian ouguiya"},symbol:"MRU",narrow:"MRU"},MTL:{displayName:{other:"Maltese lira"},symbol:"MTL",narrow:"MTL"},MTP:{displayName:{other:"Maltese pounds",one:"Maltese pound"},symbol:"MTP",narrow:"MTP"},MUR:{displayName:{other:"Mauritian rupees",one:"Mauritian rupee"},symbol:"MUR",narrow:"Rs"},MVP:{displayName:{other:"Maldivian rupees (1947–1981)",one:"Maldivian rupee (1947–1981)"},symbol:"MVP",narrow:"MVP"},MVR:{displayName:{other:"Maldivian rufiyaas",one:"Maldivian rufiyaa"},symbol:"MVR",narrow:"MVR"},MWK:{displayName:{other:"Malawian kwachas",one:"Malawian kwacha"},symbol:"MWK",narrow:"MWK"},MXN:{displayName:{other:"Mexican pesos",one:"Mexican peso"},symbol:"MX$",narrow:"$"},MXP:{displayName:{other:"Mexican silver pesos (1861–1992)",one:"Mexican silver peso (1861–1992)"},symbol:"MXP",narrow:"MXP"},MXV:{displayName:{other:"Mexican investment units",one:"Mexican investment unit"},symbol:"MXV",narrow:"MXV"},MYR:{displayName:{other:"Malaysian ringgits",one:"Malaysian ringgit"},symbol:"MYR",narrow:"RM"},MZE:{displayName:{other:"Mozambican escudos",one:"Mozambican escudo"},symbol:"MZE",narrow:"MZE"},MZM:{displayName:{other:"Mozambican meticals (1980–2006)",one:"Mozambican metical (1980–2006)"},symbol:"MZM",narrow:"MZM"},MZN:{displayName:{other:"Mozambican meticals",one:"Mozambican metical"},symbol:"MZN",narrow:"MZN"},NAD:{displayName:{other:"Namibian dollars",one:"Namibian dollar"},symbol:"NAD",narrow:"$"},NGN:{displayName:{other:"Nigerian nairas",one:"Nigerian naira"},symbol:"NGN",narrow:"₦"},NIC:{displayName:{other:"Nicaraguan córdobas (1988–1991)",one:"Nicaraguan córdoba (1988–1991)"},symbol:"NIC",narrow:"NIC"},NIO:{displayName:{other:"Nicaraguan córdobas",one:"Nicaraguan córdoba"},symbol:"NIO",narrow:"C$"},NLG:{displayName:{other:"Dutch guilders",one:"Dutch guilder"},symbol:"NLG",narrow:"NLG"},NOK:{displayName:{other:"Norwegian kroner",one:"Norwegian krone"},symbol:"NOK",narrow:"kr"},NPR:{displayName:{other:"Nepalese rupees",one:"Nepalese rupee"},symbol:"NPR",narrow:"Rs"},NZD:{displayName:{other:"New Zealand dollars",one:"New Zealand dollar"},symbol:"NZ$",narrow:"$"},OMR:{displayName:{other:"Omani rials",one:"Omani rial"},symbol:"OMR",narrow:"OMR"},PAB:{displayName:{other:"Panamanian balboas",one:"Panamanian balboa"},symbol:"PAB",narrow:"PAB"},PEI:{displayName:{other:"Peruvian intis",one:"Peruvian inti"},symbol:"PEI",narrow:"PEI"},PEN:{displayName:{other:"Peruvian soles",one:"Peruvian sol"},symbol:"PEN",narrow:"PEN"},PES:{displayName:{other:"Peruvian soles (1863–1965)",one:"Peruvian sol (1863–1965)"},symbol:"PES",narrow:"PES"},PGK:{displayName:{other:"Papua New Guinean kina"},symbol:"PGK",narrow:"PGK"},PHP:{displayName:{other:"Philippine pisos",one:"Philippine piso"},symbol:"₱",narrow:"₱"},PKR:{displayName:{other:"Pakistani rupees",one:"Pakistani rupee"},symbol:"PKR",narrow:"Rs"},PLN:{displayName:{other:"Polish zlotys",one:"Polish zloty"},symbol:"PLN",narrow:"zł"},PLZ:{displayName:{other:"Polish zlotys (PLZ)",one:"Polish zloty (PLZ)"},symbol:"PLZ",narrow:"PLZ"},PTE:{displayName:{other:"Portuguese escudos",one:"Portuguese escudo"},symbol:"PTE",narrow:"PTE"},PYG:{displayName:{other:"Paraguayan guaranis",one:"Paraguayan guarani"},symbol:"PYG",narrow:"₲"},QAR:{displayName:{other:"Qatari rials",one:"Qatari rial"},symbol:"QAR",narrow:"QAR"},RHD:{displayName:{other:"Rhodesian dollars",one:"Rhodesian dollar"},symbol:"RHD",narrow:"RHD"},ROL:{displayName:{other:"Romanian Lei (1952–2006)",one:"Romanian leu (1952–2006)"},symbol:"ROL",narrow:"ROL"},RON:{displayName:{other:"Romanian lei",one:"Romanian leu"},symbol:"RON",narrow:"lei"},RSD:{displayName:{other:"Serbian dinars",one:"Serbian dinar"},symbol:"RSD",narrow:"RSD"},RUB:{displayName:{other:"Russian rubles",one:"Russian ruble"},symbol:"RUB",narrow:"₽"},RUR:{displayName:{other:"Russian rubles (1991–1998)",one:"Russian ruble (1991–1998)"},symbol:"RUR",narrow:"р."},RWF:{displayName:{other:"Rwandan francs",one:"Rwandan franc"},symbol:"RWF",narrow:"RF"},SAR:{displayName:{other:"Saudi riyals",one:"Saudi riyal"},symbol:"SAR",narrow:"SAR"},SBD:{displayName:{other:"Solomon Islands dollars",one:"Solomon Islands dollar"},symbol:"SBD",narrow:"$"},SCR:{displayName:{other:"Seychellois rupees",one:"Seychellois rupee"},symbol:"SCR",narrow:"SCR"},SDD:{displayName:{other:"Sudanese dinars (1992–2007)",one:"Sudanese dinar (1992–2007)"},symbol:"SDD",narrow:"SDD"},SDG:{displayName:{other:"Sudanese pounds",one:"Sudanese pound"},symbol:"SDG",narrow:"SDG"},SDP:{displayName:{other:"Sudanese pounds (1957–1998)",one:"Sudanese pound (1957–1998)"},symbol:"SDP",narrow:"SDP"},SEK:{displayName:{other:"Swedish kronor",one:"Swedish krona"},symbol:"SEK",narrow:"kr"},SGD:{displayName:{other:"Singapore dollars",one:"Singapore dollar"},symbol:"SGD",narrow:"$"},SHP:{displayName:{other:"St. Helena pounds",one:"St. Helena pound"},symbol:"SHP",narrow:"£"},SIT:{displayName:{other:"Slovenian tolars",one:"Slovenian tolar"},symbol:"SIT",narrow:"SIT"},SKK:{displayName:{other:"Slovak korunas",one:"Slovak koruna"},symbol:"SKK",narrow:"SKK"},SLL:{displayName:{other:"Sierra Leonean leones",one:"Sierra Leonean leone"},symbol:"SLL",narrow:"SLL"},SOS:{displayName:{other:"Somali shillings",one:"Somali shilling"},symbol:"SOS",narrow:"SOS"},SRD:{displayName:{other:"Surinamese dollars",one:"Surinamese dollar"},symbol:"SRD",narrow:"$"},SRG:{displayName:{other:"Surinamese guilders",one:"Surinamese guilder"},symbol:"SRG",narrow:"SRG"},SSP:{displayName:{other:"South Sudanese pounds",one:"South Sudanese pound"},symbol:"SSP",narrow:"£"},STD:{displayName:{other:"São Tomé & Príncipe dobras (1977–2017)",one:"São Tomé & Príncipe dobra (1977–2017)"},symbol:"STD",narrow:"STD"},STN:{displayName:{other:"São Tomé & Príncipe dobras",one:"São Tomé & Príncipe dobra"},symbol:"STN",narrow:"Db"},SUR:{displayName:{other:"Soviet roubles",one:"Soviet rouble"},symbol:"SUR",narrow:"SUR"},SVC:{displayName:{other:"Salvadoran colones",one:"Salvadoran colón"},symbol:"SVC",narrow:"SVC"},SYP:{displayName:{other:"Syrian pounds",one:"Syrian pound"},symbol:"SYP",narrow:"£"},SZL:{displayName:{other:"Swazi emalangeni",one:"Swazi lilangeni"},symbol:"SZL",narrow:"SZL"},THB:{displayName:{other:"Thai baht"},symbol:"THB",narrow:"฿"},TJR:{displayName:{other:"Tajikistani rubles",one:"Tajikistani ruble"},symbol:"TJR",narrow:"TJR"},TJS:{displayName:{other:"Tajikistani somonis",one:"Tajikistani somoni"},symbol:"TJS",narrow:"TJS"},TMM:{displayName:{other:"Turkmenistani manat (1993–2009)"},symbol:"TMM",narrow:"TMM"},TMT:{displayName:{other:"Turkmenistani manat"},symbol:"TMT",narrow:"TMT"},TND:{displayName:{other:"Tunisian dinars",one:"Tunisian dinar"},symbol:"TND",narrow:"TND"},TOP:{displayName:{other:"Tongan paʻanga"},symbol:"TOP",narrow:"T$"},TPE:{displayName:{other:"Timorese escudos",one:"Timorese escudo"},symbol:"TPE",narrow:"TPE"},TRL:{displayName:{other:"Turkish Lira (1922–2005)",one:"Turkish lira (1922–2005)"},symbol:"TRL",narrow:"TRL"},TRY:{displayName:{other:"Turkish Lira",one:"Turkish lira"},symbol:"TRY",narrow:"₺"},TTD:{displayName:{other:"Trinidad & Tobago dollars",one:"Trinidad & Tobago dollar"},symbol:"TTD",narrow:"$"},TWD:{displayName:{other:"New Taiwan dollars",one:"New Taiwan dollar"},symbol:"NT$",narrow:"$"},TZS:{displayName:{other:"Tanzanian shillings",one:"Tanzanian shilling"},symbol:"TZS",narrow:"TZS"},UAH:{displayName:{other:"Ukrainian hryvnias",one:"Ukrainian hryvnia"},symbol:"UAH",narrow:"₴"},UAK:{displayName:{other:"Ukrainian karbovantsiv",one:"Ukrainian karbovanets"},symbol:"UAK",narrow:"UAK"},UGS:{displayName:{other:"Ugandan shillings (1966–1987)",one:"Ugandan shilling (1966–1987)"},symbol:"UGS",narrow:"UGS"},UGX:{displayName:{other:"Ugandan shillings",one:"Ugandan shilling"},symbol:"UGX",narrow:"UGX"},USD:{displayName:{other:"US dollars",one:"US dollar"},symbol:"$",narrow:"$"},USN:{displayName:{other:"US dollars (next day)",one:"US dollar (next day)"},symbol:"USN",narrow:"USN"},USS:{displayName:{other:"US dollars (same day)",one:"US dollar (same day)"},symbol:"USS",narrow:"USS"},UYI:{displayName:{other:"Uruguayan pesos (indexed units)",one:"Uruguayan peso (indexed units)"},symbol:"UYI",narrow:"UYI"},UYP:{displayName:{other:"Uruguayan pesos (1975–1993)",one:"Uruguayan peso (1975–1993)"},symbol:"UYP",narrow:"UYP"},UYU:{displayName:{other:"Uruguayan pesos",one:"Uruguayan peso"},symbol:"UYU",narrow:"$"},UYW:{displayName:{other:"Uruguayan nominal wage index units",one:"Uruguayan nominal wage index unit"},symbol:"UYW",narrow:"UYW"},UZS:{displayName:{other:"Uzbekistani som"},symbol:"UZS",narrow:"UZS"},VEB:{displayName:{other:"Venezuelan bolívars (1871–2008)",one:"Venezuelan bolívar (1871–2008)"},symbol:"VEB",narrow:"VEB"},VEF:{displayName:{other:"Venezuelan bolívars (2008–2018)",one:"Venezuelan bolívar (2008–2018)"},symbol:"VEF",narrow:"Bs"},VES:{displayName:{other:"Venezuelan bolívars",one:"Venezuelan bolívar"},symbol:"VES",narrow:"VES"},VND:{displayName:{other:"Vietnamese dong"},symbol:"₫",narrow:"₫"},VNN:{displayName:{other:"Vietnamese dong (1978–1985)"},symbol:"VNN",narrow:"VNN"},VUV:{displayName:{other:"Vanuatu vatus",one:"Vanuatu vatu"},symbol:"VUV",narrow:"VUV"},WST:{displayName:{other:"Samoan tala"},symbol:"WST",narrow:"WST"},XAF:{displayName:{other:"Central African CFA francs",one:"Central African CFA franc"},symbol:"FCFA",narrow:"FCFA"},XAG:{displayName:{other:"troy ounces of silver",one:"troy ounce of silver"},symbol:"XAG",narrow:"XAG"},XAU:{displayName:{other:"troy ounces of gold",one:"troy ounce of gold"},symbol:"XAU",narrow:"XAU"},XBA:{displayName:{other:"European composite units",one:"European composite unit"},symbol:"XBA",narrow:"XBA"},XBB:{displayName:{other:"European monetary units",one:"European monetary unit"},symbol:"XBB",narrow:"XBB"},XBC:{displayName:{other:"European units of account (XBC)",one:"European unit of account (XBC)"},symbol:"XBC",narrow:"XBC"},XBD:{displayName:{other:"European units of account (XBD)",one:"European unit of account (XBD)"},symbol:"XBD",narrow:"XBD"},XCD:{displayName:{other:"East Caribbean dollars",one:"East Caribbean dollar"},symbol:"EC$",narrow:"$"},XDR:{displayName:{other:"special drawing rights"},symbol:"XDR",narrow:"XDR"},XEU:{displayName:{other:"European currency units",one:"European currency unit"},symbol:"XEU",narrow:"XEU"},XFO:{displayName:{other:"French gold francs",one:"French gold franc"},symbol:"XFO",narrow:"XFO"},XFU:{displayName:{other:"French UIC-francs",one:"French UIC-franc"},symbol:"XFU",narrow:"XFU"},XOF:{displayName:{other:"West African CFA francs",one:"West African CFA franc"},symbol:"F CFA",narrow:"F CFA"},XPD:{displayName:{other:"troy ounces of palladium",one:"troy ounce of palladium"},symbol:"XPD",narrow:"XPD"},XPF:{displayName:{other:"CFP francs",one:"CFP franc"},symbol:"CFPF",narrow:"CFPF"},XPT:{displayName:{other:"troy ounces of platinum",one:"troy ounce of platinum"},symbol:"XPT",narrow:"XPT"},XRE:{displayName:{other:"RINET Funds units",one:"RINET Funds unit"},symbol:"XRE",narrow:"XRE"},XSU:{displayName:{other:"Sucres",one:"Sucre"},symbol:"XSU",narrow:"XSU"},XTS:{displayName:{other:"Testing Currency units",one:"Testing Currency unit"},symbol:"XTS",narrow:"XTS"},XUA:{displayName:{other:"ADB units of account",one:"ADB unit of account"},symbol:"XUA",narrow:"XUA"},XXX:{displayName:{other:"(unknown currency)",one:"(unknown unit of currency)"},symbol:"¤",narrow:"¤"},YDD:{displayName:{other:"Yemeni dinars",one:"Yemeni dinar"},symbol:"YDD",narrow:"YDD"},YER:{displayName:{other:"Yemeni rials",one:"Yemeni rial"},symbol:"YER",narrow:"YER"},YUD:{displayName:{other:"Yugoslavian hard dinars (1966–1990)",one:"Yugoslavian hard dinar (1966–1990)"},symbol:"YUD",narrow:"YUD"},YUM:{displayName:{other:"Yugoslavian new dinars (1994–2002)",one:"Yugoslavian new dinar (1994–2002)"},symbol:"YUM",narrow:"YUM"},YUN:{displayName:{other:"Yugoslavian convertible dinars (1990–1992)",one:"Yugoslavian convertible dinar (1990–1992)"},symbol:"YUN",narrow:"YUN"},YUR:{displayName:{other:"Yugoslavian reformed dinars (1992–1993)",one:"Yugoslavian reformed dinar (1992–1993)"},symbol:"YUR",narrow:"YUR"},ZAL:{displayName:{other:"South African rands (financial)",one:"South African rand (financial)"},symbol:"ZAL",narrow:"ZAL"},ZAR:{displayName:{other:"South African rand"},symbol:"ZAR",narrow:"R"},ZMK:{displayName:{other:"Zambian kwachas (1968–2012)",one:"Zambian kwacha (1968–2012)"},symbol:"ZMK",narrow:"ZMK"},ZMW:{displayName:{other:"Zambian kwachas",one:"Zambian kwacha"},symbol:"ZMW",narrow:"ZK"},ZRN:{displayName:{other:"Zairean new zaires (1993–1998)",one:"Zairean new zaire (1993–1998)"},symbol:"ZRN",narrow:"ZRN"},ZRZ:{displayName:{other:"Zairean zaires (1971–1993)",one:"Zairean zaire (1971–1993)"},symbol:"ZRZ",narrow:"ZRZ"},ZWD:{displayName:{other:"Zimbabwean dollars (1980–2008)",one:"Zimbabwean dollar (1980–2008)"},symbol:"ZWD",narrow:"ZWD"},ZWL:{displayName:{other:"Zimbabwean dollars (2009)",one:"Zimbabwean dollar (2009)"},symbol:"ZWL",narrow:"ZWL"},ZWR:{displayName:{other:"Zimbabwean dollars (2008)",one:"Zimbabwean dollar (2008)"},symbol:"ZWR",narrow:"ZWR"}},numbers:{nu:["latn"],symbols:{latn:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",approximatelySign:"~",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"}},percent:{latn:"#,##0%"},decimal:{latn:{standard:"#,##0.###",long:{1e3:{other:"0 thousand"},1e4:{other:"00 thousand"},1e5:{other:"000 thousand"},1e6:{other:"0 million"},1e7:{other:"00 million"},1e8:{other:"000 million"},1e9:{other:"0 billion"},1e10:{other:"00 billion"},1e11:{other:"000 billion"},1e12:{other:"0 trillion"},1e13:{other:"00 trillion"},1e14:{other:"000 trillion"}},short:{1e3:{other:"0K"},1e4:{other:"00K"},1e5:{other:"000K"},1e6:{other:"0M"},1e7:{other:"00M"},1e8:{other:"000M"},1e9:{other:"0B"},1e10:{other:"00B"},1e11:{other:"000B"},1e12:{other:"0T"},1e13:{other:"00T"},1e14:{other:"000T"}}}},currency:{latn:{currencySpacing:{beforeInsertBetween:" ",afterInsertBetween:" "},standard:"¤#,##0.00",accounting:"¤#,##0.00;(¤#,##0.00)",unitPattern:"{0} {1}",short:{1e3:{other:"¤0K"},1e4:{other:"¤00K"},1e5:{other:"¤000K"},1e6:{other:"¤0M"},1e7:{other:"¤00M"},1e8:{other:"¤000M"},1e9:{other:"¤0B"},1e10:{other:"¤00B"},1e11:{other:"¤000B"},1e12:{other:"¤0T"},1e13:{other:"¤00T"},1e14:{other:"¤000T"}}}}},nu:["latn"]},locale:"en"})},23044:function(e,t,r){"use strict";var n=r(2624),i=r(95466),o=r(71160);r(99331).shouldPolyfill()&&(o.defineProperty(Intl,"NumberFormat",{value:n.NumberFormat}),o.defineProperty(Number.prototype,"toLocaleString",{value:function(e,t){return i.toLocaleString(this,e,t)}}))},99331:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldPolyfill=void 0,t.shouldPolyfill=function(e){return"undefined"==typeof Intl||!("NumberFormat"in Intl)||!function(){try{if("1E4 bits"!==new Intl.NumberFormat("en",{style:"unit",unit:"bit",unitDisplay:"long",notation:"scientific"}).format(1e4))return!1}catch(e){return!1}return!0}()||!Intl.NumberFormat.polyfilled&&!Intl.NumberFormat.supportedLocalesOf(["es"]).length||!function(e){if(!e)return!0;var t=Array.isArray(e)?e:[e];return Intl.NumberFormat.supportedLocalesOf(t).length===t.length}(e)}},2624:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFormat=void 0;var i=r(87480),o=r(71160),a=r(54129),s=r(13649),c=i.__importDefault(r(75505)),l=["locale","numberingSystem","style","currency","currencyDisplay","currencySign","unit","unitDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping","notation","compactDisplay","signDisplay"];function u(e){return o.FormatNumericToParts(this,f(e),{getInternalSlots:c.default})}t.NumberFormat=function(e,r){if(!this||!o.OrdinaryHasInstance(t.NumberFormat,this))return new t.NumberFormat(e,r);o.InitializeNumberFormat(this,e,r,{getInternalSlots:c.default,localeData:t.NumberFormat.localeData,availableLocales:t.NumberFormat.availableLocales,getDefaultLocale:t.NumberFormat.getDefaultLocale,currencyDigitsData:a.currencyDigitsData,numberingSystemNames:s.numberingSystemNames});var n=c.default(this),i=n.dataLocale,l=t.NumberFormat.localeData[i];return o.invariant(void 0!==l,"Cannot load locale-dependent data for "+i+"."),n.pl=new Intl.PluralRules(i,{minimumFractionDigits:n.minimumFractionDigits,maximumFractionDigits:n.maximumFractionDigits,minimumIntegerDigits:n.minimumIntegerDigits,minimumSignificantDigits:n.minimumSignificantDigits,maximumSignificantDigits:n.maximumSignificantDigits}),this};try{Object.defineProperty(u,"name",{value:"formatToParts",enumerable:!1,writable:!1,configurable:!0})}catch(p){}o.defineProperty(t.NumberFormat.prototype,"formatToParts",{value:u}),o.defineProperty(t.NumberFormat.prototype,"resolvedOptions",{value:function(){if("object"!==n(this)||!o.OrdinaryHasInstance(t.NumberFormat,this))throw TypeError("Method Intl.NumberFormat.prototype.resolvedOptions called on incompatible receiver");for(var e=c.default(this),r={},i=0,a=l;i0&&void 0!==arguments[0]?arguments[0]:window.document,t=e.activeElement,r=[];if(!t)return r;for(;t&&(r.push(t),t.shadowRoot);)t=t.shadowRoot.activeElement;return r},c=function(e){var t=s();if(!t.length)return!1;var r=t[t.length-1],n=new Event("check-if-focused",{bubbles:!0,composed:!0}),i=[],o=function(e){i=e.composedPath()};return document.body.addEventListener("check-if-focused",o),r.dispatchEvent(n),document.body.removeEventListener("check-if-focused",o),-1!==i.indexOf(e)}},51187:function(e,t,r){"use strict";var n,i,o,a,s=r(87480),c=r(26767),l=(r(61462),r(91156),r(38103)),u=r(98734),d=r(37500),f=r(5701),p=r(67352),h=r(35401),m=r(17717),y=r(84982),v=r(8636),z=r(51346);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function b(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var r=0;r'])),!e,this.disabled):""}},{key:"focus",value:function(){var e=this.buttonElement;e&&(this.rippleHandlers.startFocus(),e.focus())}},{key:"blur",value:function(){var e=this.buttonElement;e&&(this.rippleHandlers.endFocus(),e.blur())}},{key:"getRenderClasses",value:function(){return{"mdc-button--raised":this.raised,"mdc-button--unelevated":this.unelevated,"mdc-button--outlined":this.outlined,"mdc-button--dense":this.dense}}},{key:"render",value:function(){return(0,d.dy)(o||(o=b(['\n \n ',"\n ",'\n \n \n ','\n \n \n ','\n \n \n \n \n \n ',"\n \n \n "])),(0,v.$)(this.getRenderClasses()),this.disabled,this.label||this.icon,(0,z.o)(this.ariaHasPopup),this.handleRippleFocus,this.handleRippleBlur,this.handleRippleActivate,this.handleRippleMouseEnter,this.handleRippleMouseLeave,this.handleRippleActivate,this.handleRippleDeactivate,this.handleRippleDeactivate,this.renderOverlay(),this.renderRipple(),this.icon&&!this.trailingIcon?this.renderIcon():"",this.label,(0,v.$)({flex:this.expandContent}),this.icon&&this.trailingIcon?this.renderIcon():"")}},{key:"renderIcon",value:function(){return(0,d.dy)(a||(a=b(['\n \n ',"\n "])),this.icon)}},{key:"handleRippleActivate",value:function(e){var t=this;window.addEventListener("mouseup",(function e(){window.removeEventListener("mouseup",e),t.handleRippleDeactivate()})),this.rippleHandlers.startPress(e)}},{key:"handleRippleDeactivate",value:function(){this.rippleHandlers.endPress()}},{key:"handleRippleMouseEnter",value:function(){this.rippleHandlers.startHover()}},{key:"handleRippleMouseLeave",value:function(){this.rippleHandlers.endHover()}},{key:"handleRippleFocus",value:function(){this.rippleHandlers.startFocus()}},{key:"handleRippleBlur",value:function(){this.rippleHandlers.endFocus()}}])&&k(t.prototype,r),s&&k(t,s),l}(d.oi);S.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,s.__decorate)([l.L,(0,f.C)({type:String,attribute:"aria-haspopup"})],S.prototype,"ariaHasPopup",void 0),(0,s.__decorate)([(0,f.C)({type:Boolean,reflect:!0})],S.prototype,"raised",void 0),(0,s.__decorate)([(0,f.C)({type:Boolean,reflect:!0})],S.prototype,"unelevated",void 0),(0,s.__decorate)([(0,f.C)({type:Boolean,reflect:!0})],S.prototype,"outlined",void 0),(0,s.__decorate)([(0,f.C)({type:Boolean})],S.prototype,"dense",void 0),(0,s.__decorate)([(0,f.C)({type:Boolean,reflect:!0})],S.prototype,"disabled",void 0),(0,s.__decorate)([(0,f.C)({type:Boolean,attribute:"trailingicon"})],S.prototype,"trailingIcon",void 0),(0,s.__decorate)([(0,f.C)({type:Boolean,reflect:!0})],S.prototype,"fullwidth",void 0),(0,s.__decorate)([(0,f.C)({type:String})],S.prototype,"icon",void 0),(0,s.__decorate)([(0,f.C)({type:String})],S.prototype,"label",void 0),(0,s.__decorate)([(0,f.C)({type:Boolean})],S.prototype,"expandContent",void 0),(0,s.__decorate)([(0,p.I)("#button")],S.prototype,"buttonElement",void 0),(0,s.__decorate)([(0,h.G)("mwc-ripple")],S.prototype,"ripple",void 0),(0,s.__decorate)([(0,m.S)()],S.prototype,"shouldRenderRipple",void 0),(0,s.__decorate)([(0,y.h)({passive:!0})],S.prototype,"handleRippleActivate",null);var A,T,C=(0,d.iv)(q||(A=[".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:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.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:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.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)}.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:transparent}.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:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;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__label{position:relative}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.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--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:transparent}.mdc-button{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised,.mdc-button--unelevated{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{background-color:rgba(0, 0, 0, 0.12)}.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{color:rgba(0, 0, 0, 0.38)}.mdc-button--raised .mdc-button__icon,.mdc-button--unelevated .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button--raised .mdc-button__ripple,.mdc-button--unelevated .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px);padding:0 15px 0 15px;border-width:1px}.mdc-button--outlined:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button--outlined:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--outlined .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button--outlined .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined:disabled{border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined.mdc-button--icon-trailing{padding:0 11px 0 15px}.mdc-button--outlined.mdc-button--icon-leading{padding:0 15px 0 11px}.mdc-button--outlined .mdc-button__ripple{top:calc(-1 * 1px);left:calc(-1 * 1px);border-width:1px}.mdc-button--outlined .mdc-button__touch{left:calc(-1 * 1px);width:calc(100% + 2 * 1px)}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--raised:hover,.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12)}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12)}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 0px rgba(0, 0, 0, 0.14),0px 0px 0px 0px rgba(0,0,0,.12)}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:transparent;vertical-align:top}:host([fullwidth]){width:100%}:host([raised]),:host([unelevated]){--mdc-ripple-color:#fff;--mdc-ripple-focus-opacity:0.24;--mdc-ripple-hover-opacity:0.08;--mdc-ripple-press-opacity:0.24}.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;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,[dir=rtl] .leading-icon ::slotted(*),[dir=rtl] .leading-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl],.leading-icon ::slotted(*[dir=rtl]),.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(*),[dir=rtl] .trailing-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}.slot-container{display:inline-flex;align-items:center;justify-content:center}.slot-container.flex{flex:auto}.mdc-button{flex:auto;overflow:hidden;padding-left:8px;padding-left:var(--mdc-button-horizontal-padding, 8px);padding-right:8px;padding-right:var(--mdc-button-horizontal-padding, 8px)}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-focus, var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)))}.mdc-button--raised:hover{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-active, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-disabled, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised,.mdc-button--unelevated{padding-left:16px;padding-left:var(--mdc-button-horizontal-padding, 16px);padding-right:16px;padding-right:var(--mdc-button-horizontal-padding, 16px)}.mdc-button--outlined{border-width:1px;border-width:var(--mdc-button-outline-width, 1px);padding-left:calc(16px - 1px);padding-left:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px));padding-right:calc(16px - 1px);padding-right:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px))}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-outline-color, rgba(0, 0, 0, 0.12))}.mdc-button--outlined .ripple{top:calc(-1 * 1px);top:calc(-1 * var(--mdc-button-outline-width, 1px));left:calc(-1 * 1px);left:calc(-1 * var(--mdc-button-outline-width, 1px));right:initial;right:initial;border-width:1px;border-width:var(--mdc-button-outline-width, 1px);border-style:solid;border-color:transparent}[dir=rtl] .mdc-button--outlined .ripple,.mdc-button--outlined .ripple[dir=rtl]{left:initial;left:initial;right:calc(-1 * 1px);right:calc(-1 * var(--mdc-button-outline-width, 1px))}.mdc-button--dense{height:28px;margin-top:0;margin-bottom:0}.mdc-button--dense .mdc-button__touch{height:100%}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-button{color:rgba(0, 0, 0, 0.38);color:var(--mdc-button-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-button--raised,:host([disabled]) .mdc-button--unelevated{background-color:rgba(0, 0, 0, 0.12);background-color:var(--mdc-button-disabled-fill-color, rgba(0, 0, 0, 0.12))}:host([disabled]) .mdc-button--outlined{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}"],T||(T=A.slice(0)),q=Object.freeze(Object.defineProperties(A,{raw:{value:Object.freeze(T)}}))));function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){return M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=I(e);if(t){var i=I(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return D(this,r)}}function D(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(r,e);var t=R(r);function r(){return P(this,r),t.apply(this,arguments)}return r}(S);L.styles=[C],L=(0,s.__decorate)([(0,c.M)("mwc-button")],L)},35487:function(e,t,r){"use strict";r.d(t,{Y:function(){return D}});var n,i=r(87480),o=r(26767),a=r(72774),s={ROOT:"mdc-form-field"},c={LABEL_SELECTOR:".mdc-form-field > label"},l=function(e){function t(r){var n=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),r))||this;return n.click=function(){n.handleClick()},n}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return c},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){e.adapter.deactivateInputRipple()}))},t}(a.K),u=r(78220),d=r(18601),f=r(14114),p=r(37500),h=r(5701),m=r(67352),y=r(32930),v=r(8636);function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function g(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function b(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){g(o,n,i,a,s,"next",e)}function s(e){g(o,n,i,a,s,"throw",e)}a(void 0)}))}}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var r=0;r\n \n \n
    "])),(0,v.$)(e),this._labelClick,this.label)}},{key:"click",value:function(){this._labelClick()}},{key:"_labelClick",value:function(){var e=this.input;e&&(e.focus(),e.click())}}],r&&k(t.prototype,r),i&&k(t,i),a}(u.H);(0,i.__decorate)([(0,h.C)({type:Boolean})],S.prototype,"alignEnd",void 0),(0,i.__decorate)([(0,h.C)({type:Boolean})],S.prototype,"spaceBetween",void 0),(0,i.__decorate)([(0,h.C)({type:Boolean})],S.prototype,"nowrap",void 0),(0,i.__decorate)([(0,h.C)({type:String}),(0,f.P)(function(){var e=b(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(r=this.input)||void 0===r||r.setAttribute("aria-label",t);case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}())],S.prototype,"label",void 0),(0,i.__decorate)([(0,m.I)(".mdc-form-field")],S.prototype,"mdcRoot",void 0),(0,i.__decorate)([(0,y.v)("",!0,"*")],S.prototype,"slottedInputs",void 0),(0,i.__decorate)([(0,m.I)("label")],S.prototype,"labelEl",void 0);var A=(0,p.iv)(q||(q=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".mdc-form-field{-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:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.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:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.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);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-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:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.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:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.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);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}::slotted(mwc-switch){margin-right:10px}[dir=rtl] ::slotted(mwc-switch),::slotted(mwc-switch[dir=rtl]){margin-left:10px}"])));function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=R(e);if(t){var i=R(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return M(this,r)}}function M(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(r,e);var t=P(r);function r(){return C(this,r),t.apply(this,arguments)}return r}(S);D.styles=[A],D=(0,i.__decorate)([(0,o.M)("mwc-formfield")],D)},61462:function(e,t,r){"use strict";var n,i=r(87480),o=r(37500),a=r(26767);var s,c,l,u=(0,o.iv)(n||(s=[':host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;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"}'],c||(c=s.slice(0)),n=Object.freeze(Object.defineProperties(s,{raw:{value:Object.freeze(c)}}))));function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r"])))}}],r&&p(t.prototype,r),n&&p(t,n),a}(o.oi);z.styles=[u],z=(0,i.__decorate)([(0,a.M)("mwc-icon")],z)},87724:function(e,t,r){"use strict";var n,i,o,a,s,c,l,u,d,f,p=r(87480),h=r(26767),m=(r(91156),r(14114)),y=r(98734),v=r(37500),z=r(67352),g=r(35401),b=r(5701),w=r(17717),k=r(8636);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function _(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "])),this.activated):this.activated?(0,v.dy)(s||(s=E(['
    ']))):""}},{key:"renderGraphic",value:function(){var e={multi:this.multipleGraphics};return(0,v.dy)(c||(c=E(['\n \n \n '])),(0,k.$)(e))}},{key:"renderMeta",value:function(){return(0,v.dy)(l||(l=E(['\n \n \n '])))}},{key:"renderText",value:function(){var e=this.twoline?this.renderTwoline():this.renderSingleLine();return(0,v.dy)(u||(u=E(['\n \n ',"\n "])),e)}},{key:"renderSingleLine",value:function(){return(0,v.dy)(d||(d=E([""])))}},{key:"renderTwoline",value:function(){return(0,v.dy)(f||(f=E(['\n \n \n \n \n \n \n '])))}},{key:"onClick",value:function(){this.fireRequestSelected(!this.selected,"interaction")}},{key:"onDown",value:function(e,t){var r=this;window.addEventListener(e,(function t(){window.removeEventListener(e,t),r.rippleHandlers.endPress()})),this.rippleHandlers.startPress(t)}},{key:"fireRequestSelected",value:function(e,t){if(!this.noninteractive){var r=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:t,selected:e}});this.dispatchEvent(r)}}},{key:"connectedCallback",value:function(){A(M(m.prototype),"connectedCallback",this).call(this),this.noninteractive||this.setAttribute("mwc-list-item","");var e,t=_(this.listeners);try{for(t.s();!(e=t.n()).done;){var r,n=e.value,i=_(n.eventNames);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.target.addEventListener(o,n.cb,{passive:!0})}}catch(a){i.e(a)}finally{i.f()}}}catch(a){t.e(a)}finally{t.f()}}},{key:"disconnectedCallback",value:function(){A(M(m.prototype),"disconnectedCallback",this).call(this);var e,t=_(this.listeners);try{for(t.s();!(e=t.n()).done;){var r,n=e.value,i=_(n.eventNames);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.target.removeEventListener(o,n.cb)}}catch(a){i.e(a)}finally{i.f()}}}catch(a){t.e(a)}finally{t.f()}this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}},{key:"firstUpdated",value:function(){var e=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(e)}}])&&S(t.prototype,r),p&&S(t,p),m}(v.oi);(0,p.__decorate)([(0,z.I)("slot")],D.prototype,"slotElement",void 0),(0,p.__decorate)([(0,g.G)("mwc-ripple")],D.prototype,"ripple",void 0),(0,p.__decorate)([(0,b.C)({type:String})],D.prototype,"value",void 0),(0,p.__decorate)([(0,b.C)({type:String,reflect:!0})],D.prototype,"group",void 0),(0,p.__decorate)([(0,b.C)({type:Number,reflect:!0})],D.prototype,"tabindex",void 0),(0,p.__decorate)([(0,b.C)({type:Boolean,reflect:!0}),(0,m.P)((function(e){e?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],D.prototype,"disabled",void 0),(0,p.__decorate)([(0,b.C)({type:Boolean,reflect:!0})],D.prototype,"twoline",void 0),(0,p.__decorate)([(0,b.C)({type:Boolean,reflect:!0})],D.prototype,"activated",void 0),(0,p.__decorate)([(0,b.C)({type:String,reflect:!0})],D.prototype,"graphic",void 0),(0,p.__decorate)([(0,b.C)({type:Boolean})],D.prototype,"multipleGraphics",void 0),(0,p.__decorate)([(0,b.C)({type:Boolean})],D.prototype,"hasMeta",void 0),(0,p.__decorate)([(0,b.C)({type:Boolean,reflect:!0}),(0,m.P)((function(e){e?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")}))],D.prototype,"noninteractive",void 0),(0,p.__decorate)([(0,b.C)({type:Boolean,reflect:!0}),(0,m.P)((function(e){var t=this.getAttribute("role"),r="gridcell"===t||"option"===t||"row"===t||"tab"===t;r&&e?this.setAttribute("aria-selected","true"):r&&this.setAttribute("aria-selected","false"),this._firstChanged?this._firstChanged=!1:this._skipPropRequest||this.fireRequestSelected(e,"property")}))],D.prototype,"selected",void 0),(0,p.__decorate)([(0,w.S)()],D.prototype,"shouldRenderRipple",void 0),(0,p.__decorate)([(0,w.S)()],D.prototype,"_managingList",void 0);var I,L,N=(0,v.iv)(R||(I=[':host{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;height:48px;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mdc-list-side-padding, 16px);padding-right:var(--mdc-list-side-padding, 16px);outline:none;height:48px;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host:focus{outline:none}:host([activated]){color:#6200ee;color:var(--mdc-theme-primary, #6200ee);--mdc-ripple-color: var( --mdc-theme-primary, #6200ee )}:host([activated]) .mdc-deprecated-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host([activated]) .fake-activated-ripple::before{position:absolute;display:block;top:0;bottom:0;left:0;right:0;width:100%;height:100%;pointer-events:none;z-index:1;content:"";opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12);background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-deprecated-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;display:inline-flex}.mdc-deprecated-list-item__graphic ::slotted(*){flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;width:100%;height:100%;text-align:center}.mdc-deprecated-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, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-item__meta.multi{width:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:var(--mdc-list-item-meta-size, 24px);line-height:var(--mdc-list-item-meta-size, 24px)}.mdc-deprecated-list-item__meta ::slotted(.material-icons),.mdc-deprecated-list-item__meta ::slotted(mwc-icon){line-height:var(--mdc-list-item-meta-size, 24px) !important}.mdc-deprecated-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:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.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:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.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)}[dir=rtl] .mdc-deprecated-list-item__meta,.mdc-deprecated-list-item__meta[dir=rtl]{margin-left:0;margin-right:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:100%;height:100%}.mdc-deprecated-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-deprecated-list-item__text ::slotted([for]),.mdc-deprecated-list-item__text[for]{pointer-events:none}.mdc-deprecated-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-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-deprecated-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:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.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:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.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-deprecated-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__secondary-text{font-size:inherit}* ::slotted(a),a{color:inherit;text-decoration:none}:host([twoline]){height:72px}:host([twoline]) .mdc-deprecated-list-item__text{align-self:flex-start}:host([disabled]),:host([noninteractive]){cursor:default;pointer-events:none}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*){opacity:.38}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__primary-text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__secondary-text ::slotted(*){color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-deprecated-list-item__secondary-text ::slotted(*){color:rgba(0, 0, 0, 0.54);color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-deprecated-list-item__graphic ::slotted(*){background-color:transparent;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-group__subheader ::slotted(*){color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 40px);height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 40px);line-height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 40px) !important}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){border-radius:50%}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic,:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic,:host([graphic=control]) .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 16px)}[dir=rtl] :host([graphic=avatar]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=medium]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=large]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=control]) .mdc-deprecated-list-item__graphic,:host([graphic=avatar]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=medium]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=large]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=control]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 16px);margin-right:0}:host([graphic=icon]) .mdc-deprecated-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-deprecated-list-item__graphic.multi{width:auto}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 24px);line-height:var(--mdc-list-item-graphic-size, 24px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 24px) !important}[dir=rtl] :host([graphic=icon]) .mdc-deprecated-list-item__graphic,:host([graphic=icon]) .mdc-deprecated-list-item__graphic[dir=rtl]{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-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 56px);height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic.multi,:host([graphic=large]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(*),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 56px);line-height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 56px) !important}:host([graphic=large]){padding-left:0px}'],L||(L=I.slice(0)),R=Object.freeze(Object.defineProperties(I,{raw:{value:Object.freeze(L)}}))));function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){return H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},H(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=G(e);if(t){var i=G(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return U(this,r)}}function U(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(r,e);var t=Z(r);function r(){return B(this,r),t.apply(this,arguments)}return r}(D);V.styles=[N],V=(0,p.__decorate)([(0,h.M)("mwc-list-item")],V)},24103:function(e,t,r){"use strict";var n=r(87480),i=r(26767),o=(r(87724),r(78220)),a=r(14114),s=r(82612),c=r(37500),l=r(5701),u=r(67352),d=r(32930),f=r(51346),p=r(72774),h=r(98691),m=r(74015);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=g(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function g(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0&&this.adapter.setTabIndexForElementIndex(t,0)}},{key:"handleFocusOut",value:function(e,t){var r=this;t>=0&&this.adapter.setTabIndexForElementIndex(t,-1),setTimeout((function(){r.adapter.isFocusInsideList()||r.setTabindexToFirstSelectedItem_()}),0)}},{key:"handleKeydown",value:function(e,t,r){var n="ArrowLeft"===(0,h.ku)(e),i="ArrowUp"===(0,h.ku)(e),o="ArrowRight"===(0,h.ku)(e),a="ArrowDown"===(0,h.ku)(e),s="Home"===(0,h.ku)(e),c="End"===(0,h.ku)(e),l="Enter"===(0,h.ku)(e),u="Spacebar"===(0,h.ku)(e);if(this.adapter.isRootFocused())i||c?(e.preventDefault(),this.focusLastElement()):(a||s)&&(e.preventDefault(),this.focusFirstElement());else{var d=this.adapter.getFocusedElementIndex();if(!(-1===d&&(d=r)<0)){var f;if(this.isVertical_&&a||!this.isVertical_&&o)this.preventDefaultEvent(e),f=this.focusNextElement(d);else if(this.isVertical_&&i||!this.isVertical_&&n)this.preventDefaultEvent(e),f=this.focusPrevElement(d);else if(s)this.preventDefaultEvent(e),f=this.focusFirstElement();else if(c)this.preventDefaultEvent(e),f=this.focusLastElement();else if((l||u)&&t){var p=e.target;if(p&&"A"===p.tagName&&l)return;this.preventDefaultEvent(e),this.setSelectedIndexOnAction_(d,!0)}this.focusedItemIndex_=d,void 0!==f&&(this.setTabindexAtIndex_(f),this.focusedItemIndex_=f)}}}},{key:"handleSingleSelection",value:function(e,t,r){e!==m.KT.UNSET_INDEX&&(this.setSelectedIndexOnAction_(e,t,r),this.setTabindexAtIndex_(e),this.focusedItemIndex_=e)}},{key:"focusNextElement",value:function(e){var t=e+1;if(t>=this.adapter.getListItemCount()){if(!this.wrapFocus_)return e;t=0}return this.adapter.focusItemAtIndex(t),t}},{key:"focusPrevElement",value:function(e){var t=e-1;if(t<0){if(!this.wrapFocus_)return e;t=this.adapter.getListItemCount()-1}return this.adapter.focusItemAtIndex(t),t}},{key:"focusFirstElement",value:function(){return this.adapter.focusItemAtIndex(0),0}},{key:"focusLastElement",value:function(){var e=this.adapter.getListItemCount()-1;return this.adapter.focusItemAtIndex(e),e}},{key:"setEnabled",value:function(e,t){this.isIndexValid_(e)&&this.adapter.setDisabledStateForElementIndex(e,!t)}},{key:"preventDefaultEvent",value:function(e){var t=e.target,r="".concat(t.tagName).toLowerCase();-1===S.indexOf(r)&&e.preventDefault()}},{key:"setSingleSelectionAtIndex_",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.selectedIndex_!==e&&(this.selectedIndex_!==m.KT.UNSET_INDEX&&(this.adapter.setSelectedStateForElementIndex(this.selectedIndex_,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(this.selectedIndex_,!1)),t&&this.adapter.setSelectedStateForElementIndex(e,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(e,!0),this.setAriaForSingleSelectionAtIndex_(e),this.selectedIndex_=e,this.adapter.notifySelected(e))}},{key:"setMultiSelectionAtIndex_",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=O(this.selectedIndex_),n=q(r,e);if(n.removed.length||n.added.length){var i,o=z(n.removed);try{for(o.s();!(i=o.n()).done;){var a=i.value;t&&this.adapter.setSelectedStateForElementIndex(a,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(a,!1)}}catch(u){o.e(u)}finally{o.f()}var s,c=z(n.added);try{for(c.s();!(s=c.n()).done;){var l=s.value;t&&this.adapter.setSelectedStateForElementIndex(l,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(l,!0)}}catch(u){c.e(u)}finally{c.f()}this.selectedIndex_=e,this.adapter.notifySelected(e,n)}}},{key:"setAriaForSingleSelectionAtIndex_",value:function(e){this.selectedIndex_===m.KT.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,m.j2.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue_,r=t?m.j2.ARIA_CURRENT:m.j2.ARIA_SELECTED;this.selectedIndex_!==m.KT.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,r,"false");var n=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,r,n)}},{key:"setTabindexAtIndex_",value:function(e){this.focusedItemIndex_===m.KT.UNSET_INDEX&&0!==e?this.adapter.setTabIndexForElementIndex(0,-1):this.focusedItemIndex_>=0&&this.focusedItemIndex_!==e&&this.adapter.setTabIndexForElementIndex(this.focusedItemIndex_,-1),this.adapter.setTabIndexForElementIndex(e,0)}},{key:"setTabindexToFirstSelectedItem_",value:function(){var e=0;"number"==typeof this.selectedIndex_&&this.selectedIndex_!==m.KT.UNSET_INDEX?e=this.selectedIndex_:A(this.selectedIndex_)&&this.selectedIndex_.size>0&&(e=Math.min.apply(Math,v(this.selectedIndex_))),this.setTabindexAtIndex_(e)}},{key:"isIndexValid_",value:function(e){if(e instanceof Set){if(!this.isMulti_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");if(0===e.size)return!0;var t,r=!1,n=z(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(r=this.isIndexInRange_(i))break}}catch(o){n.e(o)}finally{n.f()}return r}if("number"==typeof e){if(this.isMulti_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return e===m.KT.UNSET_INDEX||this.isIndexInRange_(e)}return!1}},{key:"isIndexInRange_",value:function(e){var t=this.adapter.getListItemCount();return e>=0&&e2&&void 0!==arguments[2])||arguments[2],n=!1;n=void 0===t?!this.adapter.getSelectedStateForElementIndex(e):t;var i=O(this.selectedIndex_);n?i.add(e):i.delete(e),this.setMultiSelectionAtIndex_(i,r)}}],n=[{key:"strings",get:function(){return m.j2}},{key:"numbers",get:function(){return m.KT}},{key:"defaultAdapter",get:function(){return{focusItemAtIndex:function(){},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},notifyAction:function(){},notifySelected:function(){},getSelectedStateForElementIndex:function(){return!1},setDisabledStateForElementIndex:function(){},getDisabledStateForElementIndex:function(){return!1},setSelectedStateForElementIndex:function(){},setActivatedStateForElementIndex:function(){},setTabIndexForElementIndex:function(){},setAttributeForElementIndex:function(){},getAttributeForElementIndex:function(){return null}}}}],r&&w(t.prototype,r),n&&w(t,n),o}(p.K),M=P;function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function D(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function I(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:50;return function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];clearTimeout(t),t=setTimeout((function(){e(n)}),r)}}(e.layout.bind(G(e)));return e.debouncedLayout=function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];$.call(G(e)),t(r)},e}return t=l,r=[{key:"getUpdateComplete",value:(i=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B(V(l.prototype),"getUpdateComplete",this).call(this);case 2:return t=e.sent,e.next=5,this.itemsReady;case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)})),o=function(){var e=this,t=arguments;return new Promise((function(r,n){var o=i.apply(e,t);function a(e){N(o,r,n,a,s,"next",e)}function s(e){N(o,r,n,a,s,"throw",e)}a(void 0)}))},function(){return o.apply(this,arguments)})},{key:"items",get:function(){return this.items_}},{key:"updateItems",value:function(){var e,t,r=this,n=[],i=I(null!==(e=this.assignedElements)&&void 0!==e?e:[]);try{for(i.s();!(t=i.n()).done;){var o=t.value;K(o)&&(n.push(o),o._managingList=this),o.hasAttribute("divider")&&!o.hasAttribute("role")&&o.setAttribute("role","separator")}}catch(l){i.e(l)}finally{i.f()}this.items_=n;var a=new Set;if(this.items_.forEach((function(e,t){r.itemRoles?e.setAttribute("role",r.itemRoles):e.removeAttribute("role"),e.selected&&a.add(t)})),this.multi)this.select(a);else{var s=a.size?a.entries().next().value[1]:-1;this.select(s)}var c=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(c)}},{key:"selected",get:function(){var e=this.index;if(!A(e))return-1===e?null:this.items[e];var t,r=[],n=I(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;r.push(this.items[i])}}catch(o){n.e(o)}finally{n.f()}return r}},{key:"index",get:function(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}},{key:"render",value:function(){var e=null===this.innerRole?void 0:this.innerRole,t=null===this.innerAriaLabel?void 0:this.innerAriaLabel,r=this.rootTabbable?"0":"-1";return(0,c.dy)(T||(T=D(["\n \x3c!-- @ts-ignore --\x3e\n a.KT.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(o="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(f),this.adapter.setTransformOrigin(o+" "+i),this.adapter.setPosition(f),this.adapter.setMaxHeight(n?n+"px":""),this.hasBit(r,a.HX.BOTTOM)||this.adapter.addClass(t.cssClasses.IS_OPEN_BELOW)},t.prototype.getAutoLayoutmeasurements=function(){var e=this.adapter.getAnchorDimensions(),t=this.adapter.getBodyDimensions(),r=this.adapter.getWindowDimensions(),n=this.adapter.getWindowScroll();return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:r.width-e.right,bottom:r.height-e.bottom,left:e.left},viewportSize:r,windowScroll:n}},t.prototype.getoriginCorner=function(){var e,r,n=this.originCorner,i=this.measurements,o=i.viewportDistance,s=i.anchorSize,c=i.surfaceSize,l=t.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,a.HX.BOTTOM)?(e=o.top-l+this.anchorMargin.bottom,r=o.bottom-l-this.anchorMargin.bottom):(e=o.top-l+this.anchorMargin.top,r=o.bottom-l+s.height-this.anchorMargin.top),!(r-c.height>0)&&e>r+this.openBottomBias&&(n=this.setBit(n,a.HX.BOTTOM));var u,d,f=this.adapter.isRtl(),p=this.hasBit(this.anchorCorner,a.HX.FLIP_RTL),h=this.hasBit(this.anchorCorner,a.HX.RIGHT)||this.hasBit(n,a.HX.RIGHT),m=!1;(m=f&&p?!h:h)?(u=o.left+s.width+this.anchorMargin.right,d=o.right-this.anchorMargin.right):(u=o.left+this.anchorMargin.left,d=o.right+s.width-this.anchorMargin.left);var y=u-c.width>0,v=d-c.width>0,z=this.hasBit(n,a.HX.FLIP_RTL)&&this.hasBit(n,a.HX.RIGHT);return v&&z&&f||!y&&z?n=this.unsetBit(n,a.HX.RIGHT):(y&&m&&f||y&&!m&&h||!v&&u>=d)&&(n=this.setBit(n,a.HX.RIGHT)),n},t.prototype.getMenuSurfaceMaxHeight=function(e){if(this.maxHeight>0)return this.maxHeight;var r=this.measurements.viewportDistance,n=0,i=this.hasBit(e,a.HX.BOTTOM),o=this.hasBit(this.anchorCorner,a.HX.BOTTOM),s=t.numbers.MARGIN_TO_EDGE;return i?(n=r.top+this.anchorMargin.top-s,o||(n+=this.measurements.anchorSize.height)):(n=r.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-s,o&&(n-=this.measurements.anchorSize.height)),n},t.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,r=this.hasBit(e,a.HX.RIGHT),n=this.hasBit(this.anchorCorner,a.HX.RIGHT);if(r){var i=n?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?i-(this.measurements.viewportSize.width-this.measurements.bodySize.width):i}return n?t.width-this.anchorMargin.right:this.anchorMargin.left},t.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,r=this.hasBit(e,a.HX.BOTTOM),n=this.hasBit(this.anchorCorner,a.HX.BOTTOM);return r?n?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:n?t.height+this.anchorMargin.bottom:this.anchorMargin.top},t.prototype.adjustPositionForHoistedElement=function(e){var t,r,n=this.measurements,o=n.windowScroll,a=n.viewportDistance,s=n.surfaceSize,c=n.viewportSize,l=Object.keys(e);try{for(var u=(0,i.__values)(l),d=u.next();!d.done;d=u.next()){var f=d.value,p=e[f]||0;!this.isHorizontallyCenteredOnViewport||"left"!==f&&"right"!==f?(p+=a[f],this.isFixedPosition||("top"===f?p+=o.y:"bottom"===f?p-=o.y:"left"===f?p+=o.x:p-=o.x),e[f]=p):e[f]=(c.width-s.width)/2}}catch(h){t={error:h}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}},t.prototype.maybeRestoreFocus=function(){var e=this,t=this.adapter.isFocused(),r=document.activeElement&&this.adapter.isElementInContainer(document.activeElement);(t||r)&&setTimeout((function(){e.adapter.restoreFocus()}),a.KT.TOUCH_EVENT_WAIT_MS)},t.prototype.hasBit=function(e,t){return Boolean(e&t)},t.prototype.setBit=function(e,t){return e|t},t.prototype.unsetBit=function(e,t){return e^t},t.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},t}(s.K),l=c,u=r(78220),d=r(14114),f=r(82612),p=r(37500),h=r(67352),m=r(5701),y=r(17717),v=r(8636),z=r(70483);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function b(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var r=0;r=0&&t.adapter.isSelectableItemAtIndex(r)&&t.setSelectedIndex(r)}),c.numbers.TRANSITION_CLOSE_DURATION)}},t.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case L.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case L.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case L.NONE:break;default:this.adapter.focusListRoot()}},t.prototype.setDefaultFocusState=function(e){this.defaultFocusState=e},t.prototype.getSelectedIndex=function(){return this.selectedIndex},t.prototype.setSelectedIndex=function(e){if(this.validatedIndex(e),!this.adapter.isSelectableItemAtIndex(e))throw new Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,F.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,N.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,N.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,F.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=e},t.prototype.setEnabled=function(e,t){this.validatedIndex(e),t?(this.adapter.removeClassFromElementAtIndex(e,Z.UX.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,F.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,Z.UX.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,F.ARIA_DISABLED_ATTR,"true"))},t.prototype.validatedIndex=function(e){var t=this.adapter.getMenuItemCount();if(!(e>=0&&e0&&h.some((function(e){return t.adapter.containsEventTarget(e)}))?this.resetActivationState():(void 0!==e&&(h.push(e.target),this.registerDeactivationHandlers(e)),r.wasElementMadeActive=this.checkElementMadeActive(e),r.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){h=[],r.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(r.wasElementMadeActive=t.checkElementMadeActive(e),r.wasElementMadeActive&&t.animateActivation()),r.wasElementMadeActive||(t.activationState=t.defaultActivationState())})))}}},t.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation=function(){var e=this,r=t.strings,n=r.VAR_FG_TRANSLATE_START,i=r.VAR_FG_TRANSLATE_END,o=t.cssClasses,a=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,c=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",u="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),f=d.startPoint,p=d.endPoint;l=f.x+"px, "+f.y+"px",u=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,l),this.adapter.updateCssVariable(i,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout((function(){e.activationTimerCallback()}),c)},t.prototype.getFgTranslationCoordinates=function(){var e,t=this.activationState,r=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?function(e,t,r){if(!e)return{x:0,y:0};var n,i,o=t.x,a=t.y,s=o+r.left,c=a+r.top;if("touchstart"===e.type){var l=e;n=l.changedTouches[0].pageX-s,i=l.changedTouches[0].pageY-c}else{var u=e;n=u.pageX-s,i=u.pageY-c}return{x:n,y:i}}(r,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:e.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},t.prototype.runDeactivationUXLogicIfReady=function(){var e=this,r=t.cssClasses.FG_DEACTIVATION,n=this.activationState,i=n.hasDeactivationUXRun,o=n.isActivated;(i||!o)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(r),this.fgDeactivationRemovalTimer=setTimeout((function(){e.adapter.removeClass(r)}),u.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState=function(){var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return e.previousActivationEvent=void 0}),t.numbers.TAP_DELAY_MS)},t.prototype.deactivateImpl=function(){var e=this,t=this.activationState;if(t.isActivated){var r=(0,n.__assign)({},t);t.isProgrammatic?(requestAnimationFrame((function(){e.animateDeactivation(r)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(r),e.resetActivationState()})))}},t.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,r=e.wasElementMadeActive;(t||r)&&this.runDeactivationUXLogicIfReady()},t.prototype.layoutInternal=function(){var e=this;this.frame=this.adapter.computeBoundingRect();var r=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?r:Math.sqrt(Math.pow(e.frame.width,2)+Math.pow(e.frame.height,2))+t.numbers.PADDING;var n=Math.floor(r*t.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()},t.prototype.updateLayoutCssVars=function(){var e=t.strings,r=e.VAR_FG_SIZE,n=e.VAR_LEFT,i=e.VAR_TOP,o=e.VAR_FG_SCALE;this.adapter.updateCssVariable(r,this.initialSize+"px"),this.adapter.updateCssVariable(o,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(i,this.unboundedCoords.top+"px"))},t}(s.K),y=m,v=r(37500),z=r(67352),g=r(5701),b=r(17717),w=r(8636),k=r(70483);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r
    '])),(0,w.$)(r),(0,k.V)({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos}))}}],r&&j(t.prototype,r),n&&j(t,n),a}(a.H);(0,n.__decorate)([(0,z.I)(".mdc-ripple-surface")],O.prototype,"mdcRoot",void 0),(0,n.__decorate)([(0,g.C)({type:Boolean})],O.prototype,"primary",void 0),(0,n.__decorate)([(0,g.C)({type:Boolean})],O.prototype,"accent",void 0),(0,n.__decorate)([(0,g.C)({type:Boolean})],O.prototype,"unbounded",void 0),(0,n.__decorate)([(0,g.C)({type:Boolean})],O.prototype,"disabled",void 0),(0,n.__decorate)([(0,g.C)({type:Boolean})],O.prototype,"activated",void 0),(0,n.__decorate)([(0,g.C)({type:Boolean})],O.prototype,"selected",void 0),(0,n.__decorate)([(0,g.C)({type:Boolean})],O.prototype,"internalUseStateLayerCustomProperties",void 0),(0,n.__decorate)([(0,b.S)()],O.prototype,"hovering",void 0),(0,n.__decorate)([(0,b.S)()],O.prototype,"bgFocused",void 0),(0,n.__decorate)([(0,b.S)()],O.prototype,"fgActivation",void 0),(0,n.__decorate)([(0,b.S)()],O.prototype,"fgDeactivation",void 0),(0,n.__decorate)([(0,b.S)()],O.prototype,"fgScale",void 0),(0,n.__decorate)([(0,b.S)()],O.prototype,"fgSize",void 0),(0,n.__decorate)([(0,b.S)()],O.prototype,"translateStart",void 0),(0,n.__decorate)([(0,b.S)()],O.prototype,"translateEnd",void 0),(0,n.__decorate)([(0,b.S)()],O.prototype,"leftPos",void 0),(0,n.__decorate)([(0,b.S)()],O.prototype,"topPos",void 0);var P=(0,v.iv)(C||(C=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['.mdc-ripple-surface{--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:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.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-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.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-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 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{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}'])));function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=N(e);if(t){var i=N(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return L(this,r)}}function L(e,t){if(t&&("object"===M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}var F=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(r,e);var t=I(r);function r(){return R(this,r),t.apply(this,arguments)}return r}(O);F.styles=[P],F=(0,n.__decorate)([(0,i.M)("mwc-ripple")],F)},98734:function(e,t,r){"use strict";r.d(t,{A:function(){return n}});var n=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.startPress=function(e){t().then((function(t){t&&t.startPress(e)}))},this.endPress=function(){t().then((function(e){e&&e.endPress()}))},this.startFocus=function(){t().then((function(e){e&&e.startFocus()}))},this.endFocus=function(){t().then((function(e){e&&e.endFocus()}))},this.startHover=function(){t().then((function(e){e&&e.startHover()}))},this.endHover=function(){t().then((function(e){e&&e.endHover()}))}}},8621:function(e,t,r){"use strict";r.d(t,{G:function(){return m}});r(67034);var n={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},i={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},o={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},a=/[a-z0-9*]/,s=/U\+/,c=/^arrow/,l=/^space(bar)?/,u=/^escape$/;function d(e,t){var r="";if(e){var n=e.toLowerCase();" "===n||l.test(n)?r="space":u.test(n)?r="esc":1==n.length?t&&!a.test(n)||(r=n):r=c.test(n)?n.replace("arrow",""):"multiply"==n?"*":n}return r}function f(e,t){return e.key?d(e.key,t):e.detail&&e.detail.key?d(e.detail.key,t):(r=e.keyIdentifier,o="",r&&(r in n?o=n[r]:s.test(r)?(r=parseInt(r.replace("U+","0x"),16),o=String.fromCharCode(r).toLowerCase()):o=r.toLowerCase()),o||function(e){var t="";return Number(e)&&(t=e>=65&&e<=90?String.fromCharCode(32+e):e>=112&&e<=123?"f"+(e-112+1):e>=48&&e<=57?String(e-48):e>=96&&e<=105?String(e-96):i[e]),t}(e.keyCode)||"");var r,o}function p(e,t){return f(t,e.hasModifiers)===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey)}function h(e){return e.trim().split(" ").map((function(e){return function(e){return 1===e.length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce((function(e,t){var r=t.split(":"),n=r[0],i=r[1];return n in o?(e[o[n]]=!0,e.hasModifiers=!0):(e.key=n,e.event=i||"keydown"),e}),{combo:e.split(":").shift()})}(e)}))}var m={properties:{keyEventTarget:{type:Object,value:function(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},attached:function(){this._listenKeyEventListeners()},detached:function(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(e,t){this._imperativeKeyBindings[e]=t,this._prepKeyBindings(),this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindings(),this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(e,t){for(var r=h(t),n=0;n\n \n\n\n \n'],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))));a.setAttribute("style","display: none;"),document.head.appendChild(a.content);var s=document.createElement("style");s.textContent="[hidden] { display: none !important; }",document.head.appendChild(s)},21006:function(e,t,r){"use strict";r.d(t,{V:function(){return n}});r(67034);var n={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},detached:function(){}}},36280:function(e,t,r){"use strict";r(67034);var n,i=r(67139),o=r(50856);var a,s,c=(0,i.k)({_template:(0,o.d)(n||(a=['\n \n
    [[_text]]
    \n'],s||(s=a.slice(0)),n=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(s)}})))),is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},_text:{type:String,value:""}},created:function(){c.instance||(c.instance=this),document.body.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},announce:function(e){this._text="",this.async((function(){this._text=e}),100)},_onIronAnnounce:function(e){e.detail&&e.detail.text&&this.announce(e.detail.text)}});c.instance=null,c.requestAvailability=function(){c.instance||(c.instance=document.createElement("iron-a11y-announcer")),document.body.appendChild(c.instance)};var l,u=r(98235),d=r(18149);(0,i.k)({_template:(0,o.d)(l||(l=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n \n']))),is:"iron-input",behaviors:[u.x],properties:{bindValue:{type:String,value:""},value:{type:String,computed:"_computeValue(bindValue)"},allowedPattern:{type:String},autoValidate:{type:Boolean,value:!1},_inputElement:Object},observers:["_bindValueChanged(bindValue, _inputElement)"],listeners:{input:"_onInput",keypress:"_onKeypress"},created:function(){c.requestAvailability(),this._previousValidInput="",this._patternAlreadyChecked=!1},attached:function(){this._observer=(0,d.vz)(this).observeNodes(function(e){this._initSlottedInput()}.bind(this))},detached:function(){this._observer&&((0,d.vz)(this).unobserveNodes(this._observer),this._observer=null)},get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0],this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value),this.fire("iron-input-ready")},get _patternRegExp(){var e;if(this.allowedPattern)e=new RegExp(this.allowedPattern);else if("number"===this.inputElement.type)e=/[0-9.,e-]/;return e},_bindValueChanged:function(e,t){t&&(void 0===e?t.value=null:e!==t.value&&(this.inputElement.value=e),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:e}))},_onInput:function(){this.allowedPattern&&!this._patternAlreadyChecked&&(this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput));this.bindValue=this._previousValidInput=this.inputElement.value,this._patternAlreadyChecked=!1},_isPrintable:function(e){var t=8==e.keyCode||9==e.keyCode||13==e.keyCode||27==e.keyCode,r=19==e.keyCode||20==e.keyCode||45==e.keyCode||46==e.keyCode||144==e.keyCode||145==e.keyCode||e.keyCode>32&&e.keyCode<41||e.keyCode>111&&e.keyCode<124;return!(t||0==e.charCode&&r)},_onKeypress:function(e){if(this.allowedPattern||"number"===this.inputElement.type){var t=this._patternRegExp;if(t&&!(e.metaKey||e.ctrlKey||e.altKey)){this._patternAlreadyChecked=!0;var r=String.fromCharCode(e.charCode);this._isPrintable(e)&&!t.test(r)&&(e.preventDefault(),this._announceInvalidCharacter("Invalid character "+r+" not entered."))}}},_checkPatternValidity:function(){var e=this._patternRegExp;if(!e)return!0;for(var t=0;t\n :host {\n @apply --layout-inline;\n @apply --layout-center-center;\n position: relative;\n\n vertical-align: middle;\n\n fill: var(--iron-icon-fill-color, currentcolor);\n stroke: var(--iron-icon-stroke-color, none);\n\n width: var(--iron-icon-width, 24px);\n height: var(--iron-icon-height, 24px);\n @apply --iron-icon;\n }\n\n :host([hidden]) {\n display: none;\n }\n \n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String},_meta:{value:a.XY.create("iron-meta",{type:"iconset"})}},observers:["_updateIcon(_meta, isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(e){var t=(e||"").split(":");this._iconName=t.pop(),this._iconsetName=t.pop()||this._DEFAULT_ICONSET,this._updateIcon()},_srcChanged:function(e){this._updateIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:function(){this._usesIconset()?(this._img&&this._img.parentNode&&(0,u.vz)(this.root).removeChild(this._img),""===this._iconName?this._iconset&&this._iconset.removeIcon(this):this._iconsetName&&this._meta&&(this._iconset=this._meta.byKey(this._iconsetName),this._iconset?(this._iconset.applyIcon(this,this._iconName,this.theme),this.unlisten(window,"iron-iconset-added","_updateIcon")):this.listen(window,"iron-iconset-added","_updateIcon"))):(this._iconset&&this._iconset.removeIcon(this),this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,(0,u.vz)(this.root).appendChild(this._img))}});r(77956);var f=r(26110),p=void 0,h={properties:{sizingTarget:{type:Object,value:function(){return this}},fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object}},get _fitWidth(){return this.fitInto===window?this.fitInto.innerWidth:this.fitInto.getBoundingClientRect().width},get _fitHeight(){return this.fitInto===window?this.fitInto.innerHeight:this.fitInto.getBoundingClientRect().height},get _fitLeft(){return this.fitInto===window?0:this.fitInto.getBoundingClientRect().left},get _fitTop(){return this.fitInto===window?0:this.fitInto.getBoundingClientRect().top},get _defaultPositionTarget(){var e=(0,u.vz)(this).parentNode;return e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e=e.host),e},get _localeHorizontalAlign(){if(this._isRTL){if("right"===this.horizontalAlign)return"left";if("left"===this.horizontalAlign)return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){return void 0===this._memoizedIsRTL&&(this._memoizedIsRTL="rtl"==window.getComputedStyle(this).direction),this._memoizedIsRTL},attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget,this.autoFitOnAttach&&("none"===window.getComputedStyle(this).display?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit()))},detached:function(){this.__deferredFit&&(clearTimeout(this.__deferredFit),this.__deferredFit=null)},fit:function(){this.position(),this.constrain(),this.center()},_discoverInfo:function(){if(!this._fitInfo){var e=window.getComputedStyle(this),t=window.getComputedStyle(this.sizingTarget);this._fitInfo={inlineStyle:{top:this.style.top||"",left:this.style.left||"",position:this.style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||""},positionedBy:{vertically:"auto"!==e.top?"top":"auto"!==e.bottom?"bottom":null,horizontally:"auto"!==e.left?"left":"auto"!==e.right?"right":null},sizedBy:{height:"none"!==t.maxHeight,width:"none"!==t.maxWidth,minWidth:parseInt(t.minWidth,10)||0,minHeight:parseInt(t.minHeight,10)||0},margin:{top:parseInt(e.marginTop,10)||0,right:parseInt(e.marginRight,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0}}}},resetFit:function(){var e=this._fitInfo||{};for(var t in e.sizerInlineStyle)this.sizingTarget.style[t]=e.sizerInlineStyle[t];for(var t in e.inlineStyle)this.style[t]=e.inlineStyle[t];this._fitInfo=null},refit:function(){var e=this.sizingTarget.scrollLeft,t=this.sizingTarget.scrollTop;this.resetFit(),this.fit(),this.sizingTarget.scrollLeft=e,this.sizingTarget.scrollTop=t},position:function(){if(this.__shouldPosition){this._discoverInfo(),window.ShadyDOM&&window.ShadyDOM.flush(),this.style.position="fixed",this.sizingTarget.style.boxSizing="border-box",this.style.left="0px",this.style.top="0px";var e,t,r,n,i=this.getBoundingClientRect(),o=this.__getNormalizedRect(this.positionTarget),a=this.__getNormalizedRect(this.fitInto);this.expandSizingTargetForScrollbars&&(e=this.sizingTarget.offsetWidth,t=this.sizingTarget.offsetHeight,r=this.sizingTarget.clientWidth,n=this.sizingTarget.clientHeight);var s=this._fitInfo.margin,c={width:i.width+s.left+s.right,height:i.height+s.top+s.bottom},l=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,c,i,o,a),u=l.left+s.left,d=l.top+s.top,f=Math.min(a.right-s.right,u+i.width),h=Math.min(a.bottom-s.bottom,d+i.height);u=Math.max(a.left+s.left,Math.min(u,f-this._fitInfo.sizedBy.minWidth)),d=Math.max(a.top+s.top,Math.min(d,h-this._fitInfo.sizedBy.minHeight));var m=Math.max(f-u,this._fitInfo.sizedBy.minWidth),y=Math.max(h-d,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=m+"px",this.sizingTarget.style.maxHeight=y+"px";var v=u-i.left,z=d-i.top;if(this.style.left="".concat(v,"px"),this.style.top="".concat(z,"px"),this.expandSizingTargetForScrollbars){var g=this.sizingTarget.offsetHeight,b=g-this.sizingTarget.clientHeight-(t-n);if(b>0){var w=a.height-s.top-s.bottom,k=Math.min(w,y+b);this.sizingTarget.style.maxHeight="".concat(k,"px");var x,_=this.sizingTarget.offsetHeight,j=_-g;"top"===l.verticalAlign?x=z:"middle"===l.verticalAlign?x=z-j/2:"bottom"===l.verticalAlign&&(x=z-j),x=Math.max(a.top+s.top,Math.min(x,a.bottom-s.bottom-_)),this.style.top="".concat(x,"px")}var E=this.sizingTarget.offsetWidth,q=E-this.sizingTarget.clientWidth-(e-r);if(q>0){var S=function(){if(void 0!==p)return p;var e=document.createElement("div");Object.assign(e.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"});var t=document.createElement("div");return t.style.width="200px",t.style.height="200px",e.appendChild(t),document.body.appendChild(e),p=Math.abs(e.offsetWidth-100)>1?e.offsetWidth-e.clientWidth:0,document.body.removeChild(e),p}(),A=a.width-s.left-s.right,T=Math.min(A,m+q-S);this.sizingTarget.style.maxWidth="".concat(T,"px");var C,O=this.sizingTarget.offsetWidth+S,P=O-E;"left"===l.horizontalAlign?C=v:"center"===l.horizontalAlign?C=v-P/2:"right"===l.horizontalAlign&&(C=v-P),C=Math.max(a.left+s.left,Math.min(C,a.right-s.right-O)),this.style.left="".concat(C,"px")}}}},constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var e=this._fitInfo;e.positionedBy.vertically||(this.style.position="fixed",this.style.top="0px"),e.positionedBy.horizontally||(this.style.position="fixed",this.style.left="0px"),this.sizingTarget.style.boxSizing="border-box";var t=this.getBoundingClientRect();e.sizedBy.height||this.__sizeDimension(t,e.positionedBy.vertically,"top","bottom","Height"),e.sizedBy.width||this.__sizeDimension(t,e.positionedBy.horizontally,"left","right","Width")}},_sizeDimension:function(e,t,r,n,i){this.__sizeDimension(e,t,r,n,i)},__sizeDimension:function(e,t,r,n,i){var o=this._fitInfo,a=this.__getNormalizedRect(this.fitInto),s="Width"===i?a.width:a.height,c=t===n,l=c?s-e[n]:e[r],u=o.margin[c?r:n],d="offset"+i,f=this[d]-this.sizingTarget[d];this.sizingTarget.style["max"+i]=s-u-l-f+"px"},center:function(){if(!this.__shouldPosition){this._discoverInfo();var e=this._fitInfo.positionedBy;if(!e.vertically||!e.horizontally){this.style.position="fixed",e.vertically||(this.style.top="0px"),e.horizontally||(this.style.left="0px");var t=this.getBoundingClientRect(),r=this.__getNormalizedRect(this.fitInto);if(!e.vertically){var n=r.top-t.top+(r.height-t.height)/2;this.style.top=n+"px"}if(!e.horizontally){var i=r.left-t.left+(r.width-t.width)/2;this.style.left=i+"px"}}}},__getNormalizedRect:function(e){return e===document.documentElement||e===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect()},__getOffscreenArea:function(e,t,r){var n=Math.min(0,e.top)+Math.min(0,r.bottom-(e.top+t.height)),i=Math.min(0,e.left)+Math.min(0,r.right-(e.left+t.width));return Math.abs(n)*t.width+Math.abs(i)*t.height},__getPosition:function(e,t,r,n,i,o){var a,s=[{verticalAlign:"top",horizontalAlign:"left",top:i.top+this.verticalOffset,left:i.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:i.top+this.verticalOffset,left:i.right-r.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:i.bottom-r.height-this.verticalOffset,left:i.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:i.bottom-r.height-this.verticalOffset,left:i.right-r.width-this.horizontalOffset}];if(this.noOverlap){for(var c=0,l=s.length;c-1&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():m.my||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=(0,u.vz)(e).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){if(this.isAttached)if("loading"===document.readyState){var e=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",(function t(){document.removeEventListener("readystatechange",t),e()}))}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach((function(e){e!==this&&e._findParent()}),this):(y.forEach((function(e){e!==this&&e._findParent()}),this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?y.delete(this):y.add(this)}};function z(e,t){for(var r=0;r0;i>=0&&t.push(r),n="content"===r.localName||"slot"===r.localName?(0,u.vz)(r).getDistributedNodes():(0,u.vz)(r.root||r).children;for(var a=0;a0&&t.length>0;)this._hasLowerTabOrder(e[0],t[0])?r.push(t.shift()):r.push(e.shift());return r.concat(e,t)}},{key:"_hasLowerTabOrder",value:function(e,t){var r=Math.max(e.tabIndex,0),n=Math.max(t.tabIndex,0);return 0===r||0===n?n>r:r>n}}])&&z(t.prototype,r),n&&z(t,n),e}());(0,l.k)({_template:(0,d.d)(g||(g=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n \n\n \n"]))),is:"iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},attached:function(){this.opened&&this._openedChanged(this.opened)},prepare:function(){this.opened&&!this.parentNode&&(0,u.vz)(document.body).appendChild(this)},open:function(){this.opened=!0},close:function(){this.opened=!1},complete:function(){this.opened||this.parentNode!==document.body||(0,u.vz)(this.parentNode).removeChild(this)},_onTransitionend:function(e){e&&e.target===this&&this.complete()},_openedChanged:function(e){if(e)this.prepare();else{var t=window.getComputedStyle(this);"0s"!==t.transitionDuration&&0!=t.opacity||this.complete()}this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null,this.toggleClass("opened",this.opened)}.bind(this)))}});var x=r(81668);function _(e,t){for(var r=0;r=r)){var i=Math.max(this.currentOverlayZ(),this._minimumZ);for(this._getZ(t)<=i&&this._applyOverlayZ(t,i);e=0)return this._bringOverlayAtIndexToFront(t),void this.trackBackdrop();var r=this._overlays.length,n=this._overlays[r-1],i=Math.max(this._getZ(n),this._minimumZ),o=this._getZ(e);if(n&&this._shouldBeBehindOverlay(e,n)){this._applyOverlayZ(n,i),r--;var a=this._overlays[r-1];i=Math.max(this._getZ(a),this._minimumZ)}o<=i&&this._applyOverlayZ(e,i),this._overlays.splice(r,0,e),this.trackBackdrop()}},{key:"removeOverlay",value:function(e){var t=this._overlays.indexOf(e);-1!==t&&(this._overlays.splice(t,1),this.trackBackdrop())}},{key:"currentOverlay",value:function(){var e=this._overlays.length-1;return this._overlays[e]}},{key:"currentOverlayZ",value:function(){return this._getZ(this.currentOverlay())}},{key:"ensureMinimumZ",value:function(e){this._minimumZ=Math.max(this._minimumZ,e)}},{key:"focusOverlay",value:function(){var e=this.currentOverlay();e&&e._applyFocus()}},{key:"trackBackdrop",value:function(){var e=this._overlayWithBackdrop();(e||this._backdropElement)&&(this.backdropElement.style.zIndex=this._getZ(e)-1,this.backdropElement.opened=!!e,this.backdropElement.prepare())}},{key:"getBackdrops",value:function(){for(var e=[],t=0;t=0;e--)if(this._overlays[e].withBackdrop)return this._overlays[e]}},{key:"_getZ",value:function(e){var t=this._minimumZ;if(e){var r=Number(e.style.zIndex||window.getComputedStyle(e).zIndex);r==r&&(t=r)}return t}},{key:"_setZ",value:function(e,t){e.style.zIndex=t}},{key:"_applyOverlayZ",value:function(e,t){this._setZ(e,t+2)}},{key:"_overlayInPath",value:function(e){e=e||[];for(var t=0;t=0||(0===M.length&&function(){j=j||R.bind(void 0);for(var e=0,t=C.length;e=Math.abs(t),i=0;i0:o.scrollTop0:o.scrollLeft=0))switch(this.scrollAction){case"lock":this.__restoreScrollPosition();break;case"refit":this.__deraf("refit",this.refit);break;case"cancel":this.cancel(e)}},__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}},L=function(e,t){for(var r=t;r;r=(n=r).assignedSlot||n.parentNode||n.host)if(r===e)return!0;var n;return!1},N=[h,v,I],F={properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},_copyProperties:function(e,t){for(var r in t)e[r]=t[r]},_cloneConfig:function(e){var t={isClone:!0};return this._copyProperties(t,e),t},_getAnimationConfigRecursive:function(e,t,r){var n;if(this.animationConfig)if(this.animationConfig.value&&"function"==typeof this.animationConfig.value)this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else if(n=e?this.animationConfig[e]:this.animationConfig,Array.isArray(n)||(n=[n]),n)for(var i,o=0;i=n[o];o++)if(i.animatable)i.animatable._getAnimationConfigRecursive(i.type||e,t,r);else if(i.id){var a=t[i.id];a?(a.isClone||(t[i.id]=this._cloneConfig(a),a=t[i.id]),this._copyProperties(a,i)):t[i.id]=i}else r.push(i)},getAnimationConfig:function(e){var t={},r=[];for(var n in this._getAnimationConfigRecursive(e,t,r),t)r.push(t[n]);return r}},B={_configureAnimations:function(e){var t=[],r=[];if(e.length>0)for(var n,i=0;n=e[i];i++){var o=document.createElement(n.name);if(o.isNeonAnimation){var a;o.configure||(o.configure=function(e){return null}),a=o.configure(n),r.push({result:a,config:n,neonAnimation:o})}else console.warn(this.is+":",n.name,"not found!")}for(var s=0;s\n :host {\n position: fixed;\n }\n\n #contentWrapper ::slotted(*) {\n overflow: auto;\n }\n\n #contentWrapper.animating ::slotted(*) {\n overflow: hidden;\n pointer-events: none;\n }\n \n\n
    \n \n
    \n']))),is:"iron-dropdown",behaviors:[f.a,s.G,N,H],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],get containedElement(){for(var e=(0,u.vz)(this.$.content).getDistributedNodes(),t=0,r=e.length;t\n :host {\n display: inline-block;\n position: relative;\n padding: 8px;\n outline: none;\n\n @apply --paper-menu-button;\n }\n\n :host([disabled]) {\n cursor: auto;\n color: var(--disabled-text-color);\n\n @apply --paper-menu-button-disabled;\n }\n\n iron-dropdown {\n @apply --paper-menu-button-dropdown;\n }\n\n .dropdown-content {\n @apply --shadow-elevation-2dp;\n\n position: relative;\n border-radius: 2px;\n background-color: var(--paper-menu-button-dropdown-background, var(--primary-background-color));\n\n @apply --paper-menu-button-content;\n }\n\n :host([vertical-align="top"]) .dropdown-content {\n margin-bottom: 20px;\n margin-top: -10px;\n top: 10px;\n }\n\n :host([vertical-align="bottom"]) .dropdown-content {\n bottom: 10px;\n margin-bottom: -10px;\n margin-top: 20px;\n }\n\n #trigger {\n cursor: pointer;\n }\n \n\n
    \n \n
    \n\n \n \n \n']))),is:"paper-menu-button",behaviors:[s.G,f.a],properties:{opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},noOverlap:{type:Boolean},noAnimations:{type:Boolean,value:!1},ignoreSelect:{type:Boolean,value:!1},closeOnActivate:{type:Boolean,value:!1},openAnimationConfig:{type:Object,value:function(){return[{name:"fade-in-animation",timing:{delay:100,duration:200}},{name:"paper-menu-grow-width-animation",timing:{delay:100,duration:150,easing:V.ANIMATION_CUBIC_BEZIER}},{name:"paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:V.ANIMATION_CUBIC_BEZIER}}]}},closeAnimationConfig:{type:Object,value:function(){return[{name:"fade-out-animation",timing:{duration:150}},{name:"paper-menu-shrink-width-animation",timing:{delay:100,duration:50,easing:V.ANIMATION_CUBIC_BEZIER}},{name:"paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var e=(0,u.vz)(this.$.content).getDistributedNodes(),t=0,r=e.length;t-1&&e.preventDefault()}});Object.keys(V).forEach((function(e){K[e]=V[e]}));var $={distance:function(e,t,r,n){var i=e-r,o=t-n;return Math.sqrt(i*i+o*o)},now:window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now};function W(e){this.element=e,this.width=this.boundingRect.width,this.height=this.boundingRect.height,this.size=Math.max(this.width,this.height)}function Y(e){this.element=e,this.color=window.getComputedStyle(e).color,this.wave=document.createElement("div"),this.waveContainer=document.createElement("div"),this.wave.style.backgroundColor=this.color,this.wave.classList.add("wave"),this.waveContainer.classList.add("wave-container"),(0,u.vz)(this.waveContainer).appendChild(this.wave),this.resetInteractionState()}W.prototype={get boundingRect(){return this.element.getBoundingClientRect()},furthestCornerDistanceFrom:function(e,t){var r=$.distance(e,t,0,0),n=$.distance(e,t,this.width,0),i=$.distance(e,t,0,this.height),o=$.distance(e,t,this.width,this.height);return Math.max(r,n,i,o)}},Y.MAX_RADIUS=300,Y.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){var e;return this.mouseDownStart?(e=$.now()-this.mouseDownStart,this.mouseUpStart&&(e-=this.mouseUpElapsed),e):0},get mouseUpElapsed(){return this.mouseUpStart?$.now()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1e3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1e3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var e=this.containerMetrics.width*this.containerMetrics.width,t=this.containerMetrics.height*this.containerMetrics.height,r=1.1*Math.min(Math.sqrt(e+t),Y.MAX_RADIUS)+5,n=1.1-r/Y.MAX_RADIUS*.2,i=this.mouseInteractionSeconds/n,o=r*(1-Math.pow(80,-i));return Math.abs(o)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){var e=.3*this.mouseUpElapsedSeconds,t=this.opacity;return Math.max(0,Math.min(e,t))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,Y.MAX_RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,Y.MAX_RADIUS)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},resetInteractionState:function(){this.maxRadius=0,this.mouseDownStart=0,this.mouseUpStart=0,this.xStart=0,this.yStart=0,this.xEnd=0,this.yEnd=0,this.slideDistance=0,this.containerMetrics=new W(this.element)},draw:function(){var e,t,r;this.wave.style.opacity=this.opacity,e=this.radius/(this.containerMetrics.size/2),t=this.xNow-this.containerMetrics.width/2,r=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webkitTransform="translate("+t+"px, "+r+"px)",this.waveContainer.style.transform="translate3d("+t+"px, "+r+"px, 0)",this.wave.style.webkitTransform="scale("+e+","+e+")",this.wave.style.transform="scale3d("+e+","+e+",1)"},downAction:function(e){var t=this.containerMetrics.width/2,r=this.containerMetrics.height/2;this.resetInteractionState(),this.mouseDownStart=$.now(),this.center?(this.xStart=t,this.yStart=r,this.slideDistance=$.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)):(this.xStart=e?e.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=e?e.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2),this.recenters&&(this.xEnd=t,this.yEnd=r,this.slideDistance=$.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)),this.maxRadius=this.containerMetrics.furthestCornerDistanceFrom(this.xStart,this.yStart),this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px",this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px",this.waveContainer.style.width=this.containerMetrics.size+"px",this.waveContainer.style.height=this.containerMetrics.size+"px"},upAction:function(e){this.isMouseDown&&(this.mouseUpStart=$.now())},remove:function(){(0,u.vz)((0,u.vz)(this.waveContainer).parentNode).removeChild(this.waveContainer)}},(0,l.k)({_template:(0,d.d)(G||(G=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n\n
    \n
    \n']))),is:"paper-ripple",behaviors:[s.G],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){11==(0,u.vz)(this).parentNode.nodeType?this.keyEventTarget=(0,u.vz)(this).getOwnerRoot().host:this.keyEventTarget=(0,u.vz)(this).parentNode;var e=this.keyEventTarget;this.listen(e,"up","uiUpAction"),this.listen(e,"down","uiDownAction")},detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction"),this.unlisten(this.keyEventTarget,"down","uiDownAction"),this.keyEventTarget=null},get shouldKeepAnimating(){for(var e=0;e0||(this.addRipple().downAction(e),this._animating||(this._animating=!0,this.animate()))},uiUpAction:function(e){this.noink||this.upAction(e)},upAction:function(e){this.holdDown||(this.ripples.forEach((function(t){t.upAction(e)})),this._animating=!0,this.animate())},onAnimationComplete:function(){this._animating=!1,this.$.background.style.backgroundColor="",this.fire("transitionend")},addRipple:function(){var e=new Y(this);return(0,u.vz)(this.$.waves).appendChild(e.waveContainer),this.$.background.style.backgroundColor=e.color,this.ripples.push(e),this._setAnimating(!0),e},removeRipple:function(e){var t=this.ripples.indexOf(e);t<0||(this.ripples.splice(t,1),e.remove(),this.ripples.length||this._setAnimating(!1))},animate:function(){if(this._animating){var e,t;for(e=0;e\n\n \n \x3c!-- support hybrid mode: user might be using paper-menu-button 1.x which distributes via --\x3e\n \n \n \n']))),is:"paper-dropdown-menu",behaviors:[ee.P,f.a,te.V,re.x],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(e){var t=(0,ie.r)(this);return t.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),oe.prototype._attachDom.call(this,e)},focus:function(){this.$.input._focusableElement.focus()},attached:function(){var e=this.contentElement;e&&e.selectedItem&&this._setSelectedItem(e.selectedItem)},get contentElement(){for(var e=(0,u.vz)(this.$.content).getDistributedNodes(),t=0,r=e.length;t\n \n\n'])));u.setAttribute("style","display: none;"),document.head.appendChild(u.content),(0,o.k)({_template:(0,c.d)(i||(i=l(['\n \n\n \n\n
    \n \n\n
    \n \n \n
    \n\n \n
    \n\n
    \n
    \n
    \n
    \n\n
    \n \n
    \n']))),is:"paper-input-container",properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,iron-input,textarea,.paper-input-input"},_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return(0,s.z)(this.attrForValue)},get _inputElement(){return(0,a.vz)(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0,this._addons||(this._addons=[]),this.addEventListener("focus",this._boundOnFocus,!0),this.addEventListener("blur",this._boundOnBlur,!0)},attached:function(){this.attrForValue?this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged):this.addEventListener("input",this._onInput),this._inputElementValue&&""!=this._inputElementValue?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement)},_onAddonAttached:function(e){this._addons||(this._addons=[]);var t=e.target;-1===this._addons.indexOf(t)&&(this._addons.push(t),this.isAttached&&this._handleValue(this._inputElement))},_onFocus:function(){this._setFocused(!0)},_onBlur:function(){this._setFocused(!1),this._handleValueAndAutoValidate(this._inputElement)},_onInput:function(e){this._handleValueAndAutoValidate(e.target)},_onValueChanged:function(e){var t=e.target;this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,void 0===t.value||""===t.value)||this._handleValueAndAutoValidate(e.target)},_handleValue:function(e){var t=this._inputElementValue;t||0===t||"number"===e.type&&!e.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1,this.updateAddons({inputElement:e,value:t,invalid:this.invalid})},_handleValueAndAutoValidate:function(e){var t;this.autoValidate&&e&&(t=e.validate?e.validate(this._inputElementValue):e.checkValidity(),this.invalid=!t);this._handleValue(e)},_onIronInputValidate:function(e){this.invalid=this._inputElement.invalid},_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},updateAddons:function(e){for(var t,r=0;t=this._addons[r];r++)t.update(e)},_computeInputContentClass:function(e,t,r,n,i){var o="input-content";if(e)i&&(o+=" label-is-hidden"),n&&(o+=" is-invalid");else{var a=this.querySelector("label");t||i?(o+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",n?o+=" is-invalid":r&&(o+=" label-is-highlighted")):(a&&(this.$.labelAndInputContainer.style.position="relative"),n&&(o+=" is-invalid"))}return r&&(o+=" focused"),o},_computeUnderlineClass:function(e,t){var r="underline";return t?r+=" is-invalid":e&&(r+=" is-highlighted"),r},_computeAddOnContentClass:function(e,t){var r="add-on-content";return t?r+=" is-invalid":e&&(r+=" is-highlighted"),r}})},77956:function(e,t,r){"use strict";r(67034),r(36280),r(70019);var n,i,o,a=r(67139),s=r(50856),c={attached:function(){this.fire("addon-attached")},update:function(e){}};(0,a.k)({_template:(0,s.d)(n||(i=["\n \n\n [[_charCounterStr]]\n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"paper-input-char-counter",behaviors:[c],properties:{_charCounterStr:{type:String,value:"0"}},update:function(e){if(e.inputElement){e.value=e.value||"";var t=e.value.toString().length.toString();e.inputElement.hasAttribute("maxlength")&&(t+="/"+e.inputElement.getAttribute("maxlength")),this._charCounterStr=t}}});var l;r(98121);(0,a.k)({_template:(0,s.d)(l||(l=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n\n \x3c!--\n If the paper-input-error element is directly referenced by an\n `aria-describedby` attribute, such as when used as a paper-input add-on,\n then applying `visibility: hidden;` to the paper-input-error element itself\n does not hide the error.\n\n For more information, see:\n https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description\n --\x3e\n
    \n \n
    \n'],['\n \n\n \x3c!--\n If the paper-input-error element is directly referenced by an\n \\`aria-describedby\\` attribute, such as when used as a paper-input add-on,\n then applying \\`visibility: hidden;\\` to the paper-input-error element itself\n does not hide the error.\n\n For more information, see:\n https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description\n --\x3e\n
    \n \n
    \n']))),is:"paper-input-error",behaviors:[c],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(e){this._setInvalid(e.invalid)}});var u,d=r(21006),f=(r(21384),r(8621)),p=r(26110),h=r(18149),m=r(28426),y={NextLabelID:1,NextAddonID:1,NextInputID:1},v={properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},allowedPattern:{type:String},type:{type:String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validator:{type:String},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,observer:"_autofocusChanged"},inputmode:{type:String},minlength:{type:Number},maxlength:{type:Number},min:{type:String},max:{type:String},step:{type:String},name:{type:String},placeholder:{type:String,value:""},readonly:{type:Boolean,value:!1},size:{type:Number},autocapitalize:{type:String,value:"none"},autocorrect:{type:String,value:"off"},autosave:{type:String},results:{type:Number},accept:{type:String},multiple:{type:Boolean},_ariaDescribedBy:{type:String,value:""},_ariaLabelledBy:{type:String,value:""},_inputId:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"},keyBindings:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0},get inputElement(){return this.$||(this.$={}),this.$.input||(this._generateInputId(),this.$.input=this.$$("#"+this._inputId)),this.$.input},get _focusableElement(){return this.inputElement},created:function(){this._typesThatHaveText=["date","datetime","datetime-local","month","time","week","file"]},attached:function(){this._updateAriaLabelledBy(),!m.H3&&this.inputElement&&-1!==this._typesThatHaveText.indexOf(this.inputElement.type)&&(this.alwaysFloatLabel=!0)},_appendStringWithSpace:function(e,t){return e=e?e+" "+t:t},_onAddonAttached:function(e){var t=(0,h.vz)(e).rootTarget;if(t.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t.id);else{var r="paper-input-add-on-"+y.NextAddonID++;t.id=r,this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,r)}},validate:function(){return this.inputElement.validate()},_focusBlurHandler:function(e){p.a._focusBlurHandler.call(this,e),this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},_onShiftTabDown:function(e){var t=this.getAttribute("tabindex");this._shiftTabPressed=!0,this.setAttribute("tabindex","-1"),this.async((function(){this.setAttribute("tabindex",t),this._shiftTabPressed=!1}),1)},_handleAutoValidate:function(){this.autoValidate&&this.validate()},updateValueAndPreserveCaret:function(e){try{var t=this.inputElement.selectionStart;this.value=e,this.inputElement.selectionStart=t,this.inputElement.selectionEnd=t}catch(r){this.value=e}},_computeAlwaysFloatLabel:function(e,t){return t||e},_updateAriaLabelledBy:function(){var e,t=(0,h.vz)(this.root).querySelector("label");t?(t.id?e=t.id:(e="paper-input-label-"+y.NextLabelID++,t.id=e),this._ariaLabelledBy=e):this._ariaLabelledBy=""},_generateInputId:function(){this._inputId&&""!==this._inputId||(this._inputId="input-"+y.NextInputID++)},_onChange:function(e){this.shadowRoot&&this.fire(e.type,{sourceEvent:e},{node:this,bubbles:e.bubbles,cancelable:e.cancelable})},_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var e=document.activeElement;e instanceof HTMLElement&&e!==document.body&&e!==document.documentElement||this._focusableElement.focus()}}},z=[p.a,f.G,v];(0,a.k)({is:"paper-input",_template:(0,s.d)(u||(u=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n\n \n\n \n\n \n\n \x3c!-- Need to bind maxlength so that the paper-input-char-counter works correctly --\x3e\n \n \n \n\n \n\n \n\n \n\n \n ']))),behaviors:[z,d.V],properties:{value:{type:String},inputRole:{type:String,value:void 0},inputAriaHaspopup:{type:String,value:void 0}},get _focusableElement(){return this.inputElement._inputElement},listeners:{"iron-input-ready":"_onIronInputReady"},_onIronInputReady:function(){this.$.nativeInput||(this.$.nativeInput=this.$$("input")),this.inputElement&&-1!==this._typesThatHaveText.indexOf(this.$.nativeInput.type)&&(this.alwaysFloatLabel=!0),this.inputElement.bindValue&&this.$.container._handleValueAndAutoValidate(this.inputElement)}})},33760:function(e,t,r){"use strict";r.d(t,{U:function(){return o}});r(67034);var n=r(51644),i=r(26110),o=[n.P,i.a,{hostAttributes:{role:"option",tabindex:"0"}}]},89194:function(e,t,r){"use strict";r(67034),r(65660),r(70019);var n,i,o,a=r(67139),s=r(50856);(0,a.k)({_template:(0,s.d)(n||(i=["\n \n\n \n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"paper-item-body"})},97968:function(e,t,r){"use strict";r(65660),r(70019);var n=document.createElement("template");n.setAttribute("style","display: none;"),n.innerHTML="\n \n",document.head.appendChild(n.content)},53973:function(e,t,r){"use strict";r(67034),r(65660),r(97968);var n,i,o,a=r(67139),s=r(50856),c=r(33760);(0,a.k)({_template:(0,s.d)(n||(i=['\n \n \n'],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"paper-item",behaviors:[c.U]})},11488:function(e,t,r){"use strict";r(67034);var n=r(8621),i=r(18149),o=r(67130);function a(e,t){for(var r=0;r=0}},{key:"setItemSelected",value:function(e,t){if(null!=e&&t!==this.isSelected(e)){if(t)this.selection.push(e);else{var r=this.selection.indexOf(e);r>=0&&this.selection.splice(r,1)}this.selectCallback&&this.selectCallback(e,t)}}},{key:"select",value:function(e){this.multi?this.toggle(e):this.get()!==e&&(this.setItemSelected(this.get(),!1),this.setItemSelected(e,!0))}},{key:"toggle",value:function(e){this.setItemSelected(e,!this.isSelected(e))}}])&&a(t.prototype,r),n&&a(t,n),e}(),d={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}},_excludedLocalNames:{type:Object,value:function(){return{template:1,"dom-bind":1,"dom-if":1,"dom-repeat":1}}}},observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this._bindFilterItem=this._filterItem.bind(this),this._selection=new u(this._applySelection.bind(this))},attached:function(){this._observer=this._observeItems(this),this._addListener(this.activateEvent)},detached:function(){this._observer&&(0,i.vz)(this).unobserveNodes(this._observer),this._removeListener(this.activateEvent)},indexOf:function(e){return this.items?this.items.indexOf(e):-1},select:function(e){this.selected=e},selectPrevious:function(){var e=this.items.length,t=e-1;void 0!==this.selected&&(t=(Number(this._valueToIndex(this.selected))-1+e)%e),this.selected=this._indexToValue(t)},selectNext:function(){var e=0;void 0!==this.selected&&(e=(Number(this._valueToIndex(this.selected))+1)%this.items.length),this.selected=this._indexToValue(e)},selectIndex:function(e){this.select(this._indexToValue(e))},forceSynchronousItemUpdate:function(){this._observer&&"function"==typeof this._observer.flush?this._observer.flush():this._updateItems()},get _shouldUpdateSelection(){return null!=this.selected},_checkFallback:function(){this._updateSelected()},_addListener:function(e){this.listen(this,e,"_activateHandler")},_removeListener:function(e){this.unlisten(this,e,"_activateHandler")},_activateEventChanged:function(e,t){this._removeListener(t),this._addListener(e)},_updateItems:function(){var e=(0,i.vz)(this).queryDistributedElements(this.selectable||"*");e=Array.prototype.filter.call(e,this._bindFilterItem),this._setItems(e)},_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},_updateSelected:function(){this._selectSelected(this.selected)},_selectSelected:function(e){if(this.items){var t=this._valueToItem(this.selected);t?this._selection.select(t):this._selection.clear(),this.fallbackSelection&&this.items.length&&void 0===this._selection.get()&&(this.selected=this.fallbackSelection)}},_filterItem:function(e){return!this._excludedLocalNames[e.localName]},_valueToItem:function(e){return null==e?null:this.items[this._valueToIndex(e)]},_valueToIndex:function(e){if(!this.attrForSelected)return Number(e);for(var t,r=0;t=this.items[r];r++)if(this._valueForItem(t)==e)return r},_indexToValue:function(e){if(!this.attrForSelected)return e;var t=this.items[e];return t?this._valueForItem(t):void 0},_valueForItem:function(e){if(!e)return null;if(!this.attrForSelected){var t=this.indexOf(e);return-1===t?null:t}var r=e[(0,o.z)(this.attrForSelected)];return null!=r?r:e.getAttribute(this.attrForSelected)},_applySelection:function(e,t){this.selectedClass&&this.toggleClass(this.selectedClass,t,e),this.selectedAttribute&&this.toggleAttribute(this.selectedAttribute,t,e),this._selectionChange(),this.fire("iron-"+(t?"select":"deselect"),{item:e})},_selectionChange:function(){this._setSelectedItem(this._selection.get())},_observeItems:function(e){return(0,i.vz)(e).observeNodes((function(e){this._updateItems(),this._updateSelected(),this.fire("iron-items-changed",e,{bubbles:!1,cancelable:!1})}))},_activateHandler:function(e){for(var t=e.target,r=this.items;t&&t!=this;){var n=r.indexOf(t);if(n>=0){var i=this._indexToValue(n);return void this._itemActivate(i,t)}t=t.parentNode}},_itemActivate:function(e,t){this.fire("iron-activate",{selected:e,item:t},{cancelable:!0}).defaultPrevented||this.select(e)}},f={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},observers:["_updateSelected(selectedValues.splices)"],select:function(e){this.multi?this._toggleSelected(e):this.selected=e},multiChanged:function(e){this._selection.multi=e,this._updateSelected()},get _shouldUpdateSelection(){return null!=this.selected||null!=this.selectedValues&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map((function(e){return this._indexToValue(this.indexOf(e))}),this).filter((function(e){return null!=e}),this)):d._updateAttrForSelected.apply(this)},_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},_selectMulti:function(e){e=e||[];var t=(this._valuesToItems(e)||[]).filter((function(e){return null!=e}));this._selection.clear(t);for(var r=0;r\n :host {\n display: block;\n padding: 8px 0;\n\n background: var(--paper-listbox-background-color, var(--primary-background-color));\n color: var(--paper-listbox-color, var(--primary-text-color));\n\n @apply --paper-listbox;\n }\n \n\n \n"],l||(l=c.slice(0)),s=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(l)}})))),is:"paper-listbox",behaviors:[h],hostAttributes:{role:"listbox"}})},54242:function(e,t,r){"use strict";var n;r(67034);var i,o,a=(0,r(50856).d)(n||(i=['\n\n \n'],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))));a.setAttribute("style","display: none;"),document.head.appendChild(a.content)},70019:function(e,t,r){"use strict";var n;r(67034);var i,o,a=(0,r(50856).d)(n||(i=["\n \n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))));a.setAttribute("style","display: none;"),document.head.appendChild(a.content)},54444:function(e,t,r){"use strict";r(67034);var n,i,o,a=r(67139),s=r(18149),c=r(50856);(0,a.k)({_template:(0,c.d)(n||(i=['\n \n\n \n'],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var e=(0,s.vz)(this).parentNode,t=(0,s.vz)(this).getOwnerRoot();return this.for?(0,s.vz)(t).querySelector("#"+this.for):e.nodeType==Node.DOCUMENT_FRAGMENT_NODE?t.host:e},attached:function(){this._findTarget()},detached:function(){this.manualMode||this._removeListeners()},playAnimation:function(e){"entry"===e?this.show():"exit"===e&&this.hide()},cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},show:function(){if(!this._showing){if(""===(0,s.vz)(this).textContent.trim()){for(var e=!0,t=(0,s.vz)(this).getEffectiveChildNodes(),r=0;rwindow.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,t)+"px",this.style.right="auto"),n.top+r+o.height>window.innerHeight?(this.style.bottom=n.height-l+e+"px",this.style.top="auto"):(this.style.top=Math.max(-n.top,r)+"px",this.style.bottom="auto")):(this.style.left=t+"px",this.style.top=r+"px")}},_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide")),this.listen(this.$.tooltip,"animationend","_onAnimationEnd"),this.listen(this,"mouseenter","hide")},_findTarget:function(){this.manualMode||this._removeListeners(),this._target=this.target,this.manualMode||this._addListeners()},_delayChange:function(e){500!==e&&this.updateStyles({"--paper-tooltip-delay-in":e+"ms"})},_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add("hidden")},_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},_onAnimationEnd:function(){this._animationPlaying=!1,this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},_getAnimationType:function(e){if("entry"===e&&""!==this.animationEntry)return this.animationEntry;if("exit"===e&&""!==this.animationExit)return this.animationExit;if(this.animationConfig[e]&&"string"==typeof this.animationConfig[e][0].name){if(this.animationConfig[e][0].timing&&this.animationConfig[e][0].timing.delay&&0!==this.animationConfig[e][0].timing.delay){var t=this.animationConfig[e][0].timing.delay;"entry"===e?this.updateStyles({"--paper-tooltip-delay-in":t+"ms"}):"exit"===e&&this.updateStyles({"--paper-tooltip-delay-out":t+"ms"})}return this.animationConfig[e][0].name}},_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide")),this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd"),this.unlisten(this,"mouseenter","hide")}})},5618:function(e,t,r){"use strict";var n=r(34816),i=r(10868),o=r(26539),a=new n.ZP;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(e,t,r){},prepareTemplateDom:function(e,t){},prepareTemplateStyles:function(e,t,r){},styleSubtree:function(e,t){a.processStyles(),(0,i.wW)(e,t)},styleElement:function(e){a.processStyles()},styleDocument:function(e){a.processStyles(),(0,i.wW)(document.body,e)},getComputedStyleValue:function(e,t){return(0,i.B7)(e,t)},flushCustomStyles:function(){},nativeCss:o.rd,nativeShadow:o.WA,cssBuild:o.Cp,disableRuntime:o.jF}),window.ShadyCSS.CustomStyleInterface=a;var s=r(15392);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:"",n="";if(e.cssText||e.rules){var i=e.rules;if(i&&!c(i))for(var o,a=0,u=i.length;a1&&void 0!==arguments[1]?arguments[1]:"",r=k(e);return this.transformRules(r,t),e.textContent=w(r),r}},{key:"transformCustomStyle",value:function(e){var t=this,r=k(e);return x(r,(function(e){":root"===e.selector&&(e.selector="html"),t.transformRule(e)})),e.textContent=w(r),r}},{key:"transformRules",value:function(e,t){var r=this;this._currentElement=t,x(e,(function(e){r.transformRule(e)})),this._currentElement=null}},{key:"transformRule",value:function(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}},{key:"transformCssText",value:function(e,t){var r=this;return e=e.replace(v.CN,(function(e,n,i,o){return r._produceCssProperties(e,n,i,o,t)})),this._consumeCssProperties(e,t)}},{key:"_getInitialValueForProperty",value:function(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}},{key:"_fallbacksFromPreviousRules",value:function(e){for(var t=this,r=e;r.parent;)r=r.parent;var n={},i=!1;return x(r,(function(r){(i=i||r===e)||r.selector===e.selector&&Object.assign(n,t._cssTextToMap(r.parsedCssText))})),n}},{key:"_consumeCssProperties",value:function(e,t){for(var r=null;r=v.$T.exec(e);){var n=r[0],i=r[1],o=r.index,a=o+n.indexOf("@apply"),s=o+n.length,c=e.slice(0,a),l=e.slice(s),u=t?this._fallbacksFromPreviousRules(t):{};Object.assign(u,this._cssTextToMap(c));var d=this._atApplyToCssProperties(i,u);e="".concat(c).concat(d).concat(l),v.$T.lastIndex=o+d.length}return e}},{key:"_atApplyToCssProperties",value:function(e,t){e=e.replace(P,"");var r=[],n=this._map.get(e);if(n||(this._map.set(e,{}),n=this._map.get(e)),n){var i,o,a;this._currentElement&&(n.dependants[this._currentElement]=!0);var s=n.properties;for(i in s)a=t&&t[i],o=[i,": var(",e,D,i],a&&o.push(",",a.replace(R,"")),o.push(")"),R.test(s[i])&&o.push(" !important"),r.push(o.join(""))}return r.join("; ")}},{key:"_replaceInitialOrInherit",value:function(e,t){var r=M.exec(t);return r&&(t=r[1]?this._getInitialValueForProperty(e):"apply-shim-inherit"),t}},{key:"_cssTextToMap",value:function(e){for(var t,r,n,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e.split(";"),s={},c=0;c1&&(t=i[0].trim(),r=i.slice(1).join(":"),o&&(r=this._replaceInitialOrInherit(t,r)),s[t]=r);return s}},{key:"_invalidateMixinEntry",value:function(e){if(L)for(var t in e.dependants)t!==this._currentElement&&L(t)}},{key:"_produceCssProperties",value:function(e,t,r,n,i){var o=this;if(r&&j(r,(function(e,t){t&&o._map.get(t)&&(n="@apply ".concat(t,";"))})),!n)return e;var a=this._consumeCssProperties(""+n,i),s=e.slice(0,e.indexOf("--")),c=this._cssTextToMap(a,!0),l=c,u=this._map.get(t),d=u&&u.properties;d?l=Object.assign(Object.create(d),c):this._map.set(t,l);var f,p,h=[],m=!1;for(f in l)void 0===(p=c[f])&&(p="initial"),d&&!(f in d)&&(m=!0),h.push("".concat(t).concat(D).concat(f,": ").concat(p));return m&&this._invalidateMixinEntry(u),u&&(u.properties=l),r&&(s="".concat(e,";").concat(s)),"".concat(s).concat(h.join("; "),";")}}]),e}();N.prototype.detectMixin=N.prototype.detectMixin,N.prototype.transformStyle=N.prototype.transformStyle,N.prototype.transformCustomStyle=N.prototype.transformCustomStyle,N.prototype.transformRules=N.prototype.transformRules,N.prototype.transformRule=N.prototype.transformRule,N.prototype.transformTemplate=N.prototype.transformTemplate,N.prototype._separator=D,Object.defineProperty(N.prototype,"invalidCallback",{get:function(){return L},set:function(e){L=e}});var F=N,B={},H="_applyShimCurrentVersion",Z="_applyShimNextVersion",U="_applyShimValidatingVersion",G=Promise.resolve();function V(e){var t=B[e];t&&function(e){e[H]=e[H]||0,e[U]=e[U]||0,e[Z]=(e[Z]||0)+1}(t)}function K(e){return e[H]===e[Z]}function $(e){return!K(e)&&e[U]===e[Z]}function W(e){e[U]=e[Z],e._validating||(e._validating=!0,G.then((function(){e[H]=e[Z],e._validating=!1})))}r(34816);function Y(e,t){for(var r=0;r-1?r=t:(n=t,r=e.getAttribute&&e.getAttribute("is")||""):(r=e.is,n=e.extends),{is:r,typeExtension:n}}(e),r=t.is,n=B[r];if((!n||!S(n))&&n&&!K(n)){$(n)||(this.prepareTemplate(n,r),W(n));var i=e.shadowRoot;if(i){var o=i.querySelector("style");o&&(o.__cssRules=n._styleAst,o.textContent=w(n._styleAst))}}}},{key:"styleDocument",value:function(e){this.ensure(),this.styleSubtree(document.body,e)}}])&&Y(t.prototype,r),n&&Y(t,n),e}();if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Q=new J,ee=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(e,t,r){Q.flushCustomStyles(),Q.prepareTemplate(e,t)},prepareTemplateStyles:function(e,t,r){window.ShadyCSS.prepareTemplate(e,t,r)},prepareTemplateDom:function(e,t){},styleSubtree:function(e,t){Q.flushCustomStyles(),Q.styleSubtree(e,t)},styleElement:function(e){Q.flushCustomStyles(),Q.styleElement(e)},styleDocument:function(e){Q.flushCustomStyles(),Q.styleDocument(e)},getComputedStyleValue:function(e,t){return(0,A.B7)(e,t)},flushCustomStyles:function(){Q.flushCustomStyles()},nativeCss:n.rd,nativeShadow:n.WA,cssBuild:n.Cp,disableRuntime:n.jF},ee&&(window.ShadyCSS.CustomStyleInterface=ee)}window.ShadyCSS.ApplyShim=X;var te=r(36608),re=r(60995),ne=r(63933),ie=r(76389);function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function ae(e,t){for(var r=0;r-1&&ye.splice(e,1)}}}])&&ae(r.prototype,n),i&&ae(r,i),a}(t);return r.__activateDir=!1,r}));r(56646);function xe(){document.body.removeAttribute("unresolved")}"interactive"===document.readyState||"complete"===document.readyState?xe():window.addEventListener("DOMContentLoaded",xe);var _e=r(18149),je=r(81668),Ee=r(78956),qe=r(21683),Se=r(4059),Ae=r(62276),Te=window.ShadyDOM,Ce=window.ShadyCSS;function Oe(e,t){return(0,Ae.r)(e).getRootNode()===t}function Pe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Te||!Ce)return null;if(!Te.handlesDynamicScoping)return null;var r=Ce.ScopingShim;if(!r)return null;var n=r.scopeForNode(e),i=(0,Ae.r)(e).getRootNode(),o=function(e){if(Oe(e,i)){var t=Array.from(Te.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(var o=0;oe.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]&&arguments[1];return Pe(e,t)}},{key:"getComputedStyleValue",value:function(e){return tt.getComputedStyleValue(this,e)}},{key:"debounce",value:function(e,t,r){return this._debouncers=this._debouncers||{},this._debouncers[e]=Ee.dx.debounce(this._debouncers[e],r>0?qe.Wc.after(r):qe.YA,t.bind(this))}},{key:"isDebouncerActive",value:function(e){this._debouncers=this._debouncers||{};var t=this._debouncers[e];return!(!t||!t.isActive())}},{key:"flushDebouncer",value:function(e){this._debouncers=this._debouncers||{};var t=this._debouncers[e];t&&t.flush()}},{key:"cancelDebouncer",value:function(e){this._debouncers=this._debouncers||{};var t=this._debouncers[e];t&&t.cancel()}},{key:"async",value:function(e,t){return t>0?qe.Wc.run(e.bind(this),t):~qe.YA.run(e.bind(this))}},{key:"cancelAsync",value:function(e){e<0?qe.YA.cancel(~e):qe.Wc.cancel(e)}},{key:"create",value:function(e,t){var r=document.createElement(e);if(t)if(r.setProperties)r.setProperties(t);else for(var n in t)r[n]=t[n];return r}},{key:"elementMatches",value:function(e,t){return(0,_e.Ku)(t||this,e)}},{key:"toggleAttribute",value:function(e,t){var r=this;return 3===arguments.length&&(r=arguments[2]),1==arguments.length&&(t=!r.hasAttribute(e)),t?((0,Ae.r)(r).setAttribute(e,""),!0):((0,Ae.r)(r).removeAttribute(e),!1)}},{key:"toggleClass",value:function(e,t,r){r=r||this,1==arguments.length&&(t=!r.classList.contains(e)),t?r.classList.add(e):r.classList.remove(e)}},{key:"transform",value:function(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}},{key:"translate3d",value:function(e,t,r,n){n=n||this,this.transform("translate3d("+e+","+t+","+r+")",n)}},{key:"arrayDelete",value:function(e,t){var r;if(Array.isArray(e)){if((r=e.indexOf(t))>=0)return e.splice(r,1)}else if((r=(0,Se.U2)(this,e).indexOf(t))>=0)return this.splice(e,r,1);return null}},{key:"_logger",value:function(e,t){var r;switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":(r=console)[e].apply(r,Ve(t))}}},{key:"_log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),n=1;n=0;n--){var i=e[n];i?Array.isArray(i)?v(i,t):t.indexOf(i)<0&&(!r||r.indexOf(i)<0)&&t.unshift(i):console.warn("behavior is null, check for missing or 404 import")}return t}function z(e,t){for(var r in t){var n=e[r],i=t[r];e[r]=!("value"in i)&&n&&"value"in n?Object.assign({value:n.value},i):i}}var g=(0,n.x)(HTMLElement);function b(e,t,r){var n,o={},d=function(r){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(y,r);var d,p,h,m=u(y);function y(){return a(this,y),m.apply(this,arguments)}return d=y,h=[{key:"_finalizeClass",value:function(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(n)for(var r,i=0;i=0;t--){var r=e[t];for(var n in r)this._ensureAttribute(n,r[n])}c(f(y.prototype),"_ensureAttributes",this).call(this)}},{key:"ready",value:function(){c(f(y.prototype),"ready",this).call(this);var e=o.ready;if(e)for(var t=0;t>1,s=r.get(t[a].methodInfo)-r.get(e.methodInfo);if(s<0)n=a+1;else{if(!(s>0)){o=a;break}i=a-1}}o<0&&(o=i+1),t.splice(o,0,e)},W=function(e,t,r,n,i){var a=t[i?(0,o.Jz)(e):e];if(a)for(var s=0;su.source.length&&"property"==l.kind&&!l.isCompound&&c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[l.target]){var d=r[t];t=(0,o.Iu)(u.source,l.target,t),c._setPendingPropertyOrPath(t,d,!1,!0)&&e._enqueueClient(c)}else{var f=i.evaluator._evaluateBinding(e,u,t,r,n,a);f!==M&&function(e,t,r,n,i){i=function(e,t,r,n){if(r.isCompound){var i=e.__dataCompoundStorage[r.target];i[n.compoundIndex]=t,t=i.join("")}"attribute"!==r.kind&&("textContent"!==r.target&&("value"!==r.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t));return t}(t,i,r,n),j.v1&&(i=(0,j.v1)(i,r.target,r.kind,t));if("attribute"==r.kind)e._valueToNodeAttribute(t,i,r.target);else{var o=r.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?t[R.READ_ONLY]&&t[R.READ_ONLY][o]||t._setPendingProperty(o,i)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,o,i)}}(e,c,l,u,f)}}function ee(e,t){if(t.isCompound){for(var r=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),i=t.parts,o=new Array(i.length),a=0;a="0"&&n<="9"&&(n="#"),n){case"'":case'"':r.value=t.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(t),r.literal=!0}return r.literal||(r.rootProperty=(0,o.Jz)(t),r.structured=(0,o.AZ)(t),r.structured&&(r.wildcard=".*"==t.slice(-2),r.wildcard&&(r.name=t.slice(0,-2)))),r}function le(e,t,r){var n=(0,o.U2)(e,r);return void 0===n&&(n=t[r]),n}function ue(e,t,r,n){var i={indexSplices:n};j.HY&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(r+".splices",i),e.notifyPath(r+".length",t.length),j.HY&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function de(e,t,r,n,i,o){ue(e,t,r,[{index:n,addedCount:i,removed:o,object:t,type:"splice"}])}var fe=(0,i.o)((function(e){var t=_((0,s.Q)(e)),r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(l,e);var r,i,s,c=A(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=c.call(this)).__isPropertyEffectsClient=!0,e.__dataClientsReady,e.__dataPendingClients,e.__dataToNotify,e.__dataLinkedPaths,e.__dataHasPaths,e.__dataCompoundStorage,e.__dataHost,e.__dataTemp,e.__dataClientsInitialized,e.__data,e.__dataPending,e.__dataOld,e.__computeEffects,e.__computeInfo,e.__reflectEffects,e.__notifyEffects,e.__propagateEffects,e.__observeEffects,e.__readOnly,e.__templateInfo,e._overrideLegacyUndefined,e}return r=l,i=[{key:"PROPERTY_EFFECT_TYPES",get:function(){return R}},{key:"_initializeProperties",value:function(){q(C(l.prototype),"_initializeProperties",this).call(this),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}},{key:"_registerHost",value:function(){if(pe.length){var e=pe[pe.length-1];e._enqueueClient(this),this.__dataHost=e}}},{key:"_initializeProtoProperties",value:function(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}},{key:"_initializeInstanceProperties",value:function(e){var t=this[R.READ_ONLY];for(var r in e)t&&t[r]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[r]=this.__dataPending[r]=e[r])}},{key:"_addPropertyEffect",value:function(e,t,r){this._createPropertyAccessor(e,t==R.READ_ONLY);var n=L(this,t,!0)[e];n||(n=this[t][e]=[]),n.push(r)}},{key:"_removePropertyEffect",value:function(e,t,r){var n=L(this,t,!0)[e],i=n.indexOf(r);i>=0&&n.splice(i,1)}},{key:"_hasPropertyEffect",value:function(e,t){var r=this[t];return Boolean(r&&r[e])}},{key:"_hasReadOnlyEffect",value:function(e){return this._hasPropertyEffect(e,R.READ_ONLY)}},{key:"_hasNotifyEffect",value:function(e){return this._hasPropertyEffect(e,R.NOTIFY)}},{key:"_hasReflectEffect",value:function(e){return this._hasPropertyEffect(e,R.REFLECT)}},{key:"_hasComputedEffect",value:function(e){return this._hasPropertyEffect(e,R.COMPUTE)}},{key:"_setPendingPropertyOrPath",value:function(e,t,r,n){if(n||(0,o.Jz)(Array.isArray(e)?e[0]:e)!==e){if(!n){var i=(0,o.U2)(this,e);if(!(e=(0,o.t8)(this,e,t))||!q(C(l.prototype),"_shouldPropertyChange",this).call(this,e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,r))return function(e,t,r){var n,i=e.__dataLinkedPaths;if(i)for(var a in i){var s=i[a];(0,o.SG)(a,t)?(n=(0,o.Iu)(a,s,t),e._setPendingPropertyOrPath(n,r,!0,!0)):(0,o.SG)(s,t)&&(n=(0,o.Iu)(s,a,t),e._setPendingPropertyOrPath(n,r,!0,!0))}}(this,e,t),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,r);this[e]=t}return!1}},{key:"_setUnmanagedPropertyToNode",value:function(e,t,r){r===e[t]&&"object"!=O(r)||("className"===t&&(e=(0,n.r)(e)),e[t]=r)}},{key:"_setPendingProperty",value:function(e,t,r){var n=this.__dataHasPaths&&(0,o.AZ)(e),i=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,i[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),n?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(n||this[R.NOTIFY]&&this[R.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=r),!0)}},{key:"_setProperty",value:function(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}},{key:"_invalidateProperties",value:function(){this.__dataReady&&this._flushProperties()}},{key:"_enqueueClient",value:function(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}},{key:"_flushClients",value:function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}},{key:"__enableOrFlushClients",value:function(){var e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(var t=0;t1?i-1:0),s=1;s3?n-3:0),a=3;a1?n-1:0),a=1;a1)return M;i[a]=f}return i}},{key:"_bindTemplate",value:function(e,t){var r=this.constructor._parseTemplate(e),n=this.__preBoundTemplateInfo==r;if(!n)for(var i in r.propertyEffects)this._createPropertyAccessor(i);if(t)if((r=Object.create(r)).wasPreBound=n,this.__templateInfo){var o=e._parentTemplateInfo||this.__templateInfo,a=o.lastChild;r.parent=o,o.lastChild=r,r.previousSibling=a,a?a.nextSibling=r:o.firstChild=r}else this.__templateInfo=r;else this.__preBoundTemplateInfo=r;return r}},{key:"_stampTemplate",value:function(e,t){t=t||this._bindTemplate(e,!0),pe.push(this);var r=q(C(l.prototype),"_stampTemplate",this).call(this,e,t);if(pe.pop(),t.nodeList=r.nodeList,!t.wasPreBound)for(var n=t.childNodes=[],i=r.firstChild;i;i=i.nextSibling)n.push(i);return r.templateInfo=t,function(e,t){var r=t.nodeList,n=t.nodeInfoList;if(n.length)for(var i=0;ii&&n.push({literal:e.slice(i,r.index)});var o=r[1][0],a=Boolean(r[2]),s=r[3].trim(),c=!1,l="",u=-1;"{"==o&&(u=s.indexOf("::"))>0&&(l=s.substring(u+2),s=s.substring(0,u),c=!0);var d=se(s),f=[];if(d){for(var p=d.args,h=d.methodName,m=0;m0||r>0;)if(0!=t)if(0!=r){var o=e[t-1][r-1],a=e[t-1][r],s=e[t][r-1],c=void 0;(c=a=0){if(!o[t])throw new Error("invalid async handle: "+e);o[t]=null}}}},56646:function(){"use strict";window.JSCompiler_renameProperty=function(e,t){return e}},67130:function(e,t,r){"use strict";r.d(t,{z:function(){return a},n:function(){return s}});r(56646);var n={},i=/-[a-z]/g,o=/([A-Z])/g;function a(e){return n[e]||(n[e]=e.indexOf("-")<0?e:e.replace(i,(function(e){return e[1].toUpperCase()})))}function s(e){return n[e]||(n[e]=e.replace(o,"-$1").toLowerCase())}},78956:function(e,t,r){"use strict";r.d(t,{dx:function(){return i},Ex:function(){return a},Jk:function(){return s}});r(56646),r(76389),r(21683);function n(e,t){for(var r=0;r-1}var m=!1;function y(e){if(!h(e)&&"touchend"!==e)return s&&m&&o.f6?{passive:!0}:void 0}!function(){try{var e=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}}();var v=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),z=[],g={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},b={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function w(e){var t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];var r=e.getRootNode();if(e.id)for(var n=r.querySelectorAll("label[for = ".concat(e.id,"]")),i=0;i-1;if(i[o]===j.mouse.target)return}if(n)return;e.preventDefault(),e.stopPropagation()}};function x(e){for(var t,r=v?["click"]:d,n=0;n0?t[0]:e.target}function O(e){var t,r=e.type,n=e.currentTarget[c];if(n){var i=n[r];if(i){if(!e[l]&&(e[l]={},"touch"===r.slice(0,5))){var o=(e=e).changedTouches[0];if("touchstart"===r&&1===e.touches.length&&(j.touch.id=o.identifier),j.touch.id!==o.identifier)return;s||"touchstart"!==r&&"touchmove"!==r||function(e){var t=e.changedTouches[0],r=e.type;if("touchstart"===r)j.touch.x=t.clientX,j.touch.y=t.clientY,j.touch.scrollDecided=!1;else if("touchmove"===r){if(j.touch.scrollDecided)return;j.touch.scrollDecided=!0;var n=function(e){for(var t,r="auto",n=S(e),i=0;io:"pan-y"===n&&(i=o>a)),i?e.preventDefault():L("track")}}(e)}if(!(t=e[l]).skip){for(var a,d=0;d-1&&a.reset&&a.reset();for(var f,p=0;p=5||i>=5}function B(e,t,r){if(t){var n,i=e.moves[e.moves.length-2],o=e.moves[e.moves.length-1],a=o.x-e.x,s=o.y-e.y,c=0;i&&(n=o.x-i.x,c=o.y-i.y),I(t,"track",{state:e.state,x:r.clientX,y:r.clientY,dx:a,dy:s,ddx:n,ddy:c,sourceEvent:r,hover:function(){return function(e,t){for(var r=document.elementFromPoint(e,t),n=r;n&&n.shadowRoot&&!window.ShadyDOM&&n!==(n=n.shadowRoot.elementFromPoint(e,t));)n&&(r=n);return r}(r.clientX,r.clientY)}})}}function H(e,t,r){var n=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),o=C(r||t);!o||b[o.localName]&&o.hasAttribute("disabled")||(isNaN(n)||isNaN(i)||n<=25&&i<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;var t=C(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;var r=t.getBoundingClientRect(),n=e.pageX,i=e.pageY;return!(n>=r.left&&n<=r.right&&i>=r.top&&i<=r.bottom)}return!1}(t))&&(e.prevent||I(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r}))}R({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){q(this.info)},mousedown:function(e){if(_(e)){var t=C(e),r=this;E(this.info,(function(e){_(e)||(N("up",t,e),q(r.info))}),(function(e){_(e)&&N("up",t,e),q(r.info)})),N("down",t,e)}},touchstart:function(e){N("down",C(e),e.changedTouches[0],e)},touchend:function(e){N("up",C(e),e.changedTouches[0],e)}}),R({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(e){this.moves.length>2&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,q(this.info)},mousedown:function(e){if(_(e)){var t=C(e),r=this,n=function(e){var n=e.clientX,i=e.clientY;F(r.info,n,i)&&(r.info.state=r.info.started?"mouseup"===e.type?"end":"track":"start","start"===r.info.state&&L("tap"),r.info.addMove({x:n,y:i}),_(e)||(r.info.state="end",q(r.info)),t&&B(r.info,t,e),r.info.started=!0)};E(this.info,n,(function(e){r.info.started&&n(e),q(r.info)})),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){var t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove:function(e){var t=C(e),r=e.changedTouches[0],n=r.clientX,i=r.clientY;F(this.info,n,i)&&("start"===this.info.state&&L("tap"),this.info.addMove({x:n,y:i}),B(this.info,t,r),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=C(e),r=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:r.clientX,y:r.clientY}),B(this.info,t,r))}}),R({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){_(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){_(e)&&H(this.info,e)},touchstart:function(e){var t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend:function(e){H(this.info,e.changedTouches[0],e)}});var Z=C},50856:function(e,t,r){"use strict";r.d(t,{d:function(){return s}});r(56646);function n(e,t){for(var r=0;r1?r-1:0),i=1;i=0}function i(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function o(e,t){return 0===e.indexOf(t+".")}function a(e,t){return 0===t.indexOf(e+".")}function s(e,t,r){return t+r.slice(e.length)}function c(e,t){return e===t||o(e,t)||a(e,t)}function l(e){if(Array.isArray(e)){for(var t=[],r=0;r1){for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r can only be templatized once");e.__templatizeOwner=t;var n=(t?t.constructor:R)._parseTemplate(e),i=n.templatizeInstanceClass;i||(i=L(e,n,r),n.templatizeInstanceClass=i);var o=I(e);N(e,n,r,o);var a=function(e){x(r,e);var t=j(r);function r(){return A(this,r),t.apply(this,arguments)}return r}(i);return a.prototype._methodHost=o,a.prototype.__dataHost=e,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=n.hostProps,a=a}function Z(e,t){for(var r;t;)if(r=t.__dataHost?t:t.__templatizeInstance){if(r.__dataHost==e)return r;t=r.__dataHost}else t=(0,g.r)(t).parentNode;return null}var U=r(60995),G=!1;function V(){if(z.nL&&!z.my){if(!G){G=!0;var e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function $(e,t){for(var r=0;r child");r.disconnect(),t.render()}));return void r.observe(this,{childList:!0})}this.root=this._stampTemplate(e),this.$=this.root.$,this.__children=[];for(var n=this.root.firstChild;n;n=n.nextSibling)this.__children[this.__children.length]=n;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}])&&$(t.prototype,r),n&&$(t,n),o}((0,U._)(v((0,i.q)(HTMLElement))));customElements.define("dom-bind",Q);var ee=r(28426),te=r(78956),re=r(93252),ne=r(4059),ie=r(21683);function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function ae(e,t){for(var r=0;r child");r.disconnect(),e.__render()}));return r.observe(this,{childList:!0}),!1}var n={};n[this.as]=!0,n[this.indexAs]=!0,n[this.itemsIndexAs]=!0,this.__ctor=H(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:n,forwardHostProp:function(e,t){for(var r,n=this.__instances,i=0;i1&&void 0!==arguments[1]?arguments[1]:0;this.__renderDebouncer=te.dx.debounce(this.__renderDebouncer,t>0?ie.Wc.after(t):ie.YA,e.bind(this)),(0,re.E)(this.__renderDebouncer)}},{key:"render",value:function(){this.__debounceRender(this.__render),(0,re.y)()}},{key:"__render",value:function(){var e=this;if(this.__ensureTemplatized()){var t=this.items||[],r=this.__sortAndFilterItems(t),n=this.__calculateLimit(r.length);this.__updateInstances(t,n,r),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((function(){return e.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),z.dJ&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}},{key:"__sortAndFilterItems",value:function(e){for(var t=this,r=new Array(e.length),n=0;n=n;c--)this.__detachAndRemoveInstance(c)}},{key:"__detachInstance",value:function(e){for(var t=this.__instances[e],r=(0,g.r)(t.root),n=0;n child");n.disconnect(),e.__render()}));return n.observe(this,{childList:!0}),!1}this.__template=r}return!0}},{key:"__ensureInstance",value:function(){var e=(0,g.r)(this).parentNode;if(this.__hasInstance()){var t=this.__getInstanceNodes();if(t&&t.length)if((0,g.r)(this).previousSibling!==t[t.length-1])for(var r,n=0;n=i.index+i.removed.length?r.set(t,e+i.addedCount-i.removed.length):r.set(t,-1))}));for(var o=0;o=0&&e.linkPaths("".concat(JSCompiler_renameProperty("items",e),".").concat(r),"".concat(JSCompiler_renameProperty("selected",e),".").concat(t++))}))}else this.__selectedMap.forEach((function(t){e.linkPaths(JSCompiler_renameProperty("selected",e),"".concat(JSCompiler_renameProperty("items",e),".").concat(t)),e.linkPaths(JSCompiler_renameProperty("selectedItem",e),"".concat(JSCompiler_renameProperty("items",e),".").concat(t))}))}},{key:"clearSelection",value:function(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}},{key:"isSelected",value:function(e){return this.__selectedMap.has(e)}},{key:"isIndexSelected",value:function(e){return this.isSelected(this.items[e])}},{key:"__deselectChangedIdx",value:function(e){var t=this,r=this.__selectedIndexForItemIndex(e);if(r>=0){var n=0;this.__selectedMap.forEach((function(e,i){r==n++&&t.deselect(i)}))}}},{key:"__selectedIndexForItemIndex",value:function(e){var t=this.__dataLinkedPaths["".concat(JSCompiler_renameProperty("items",this),".").concat(e)];if(t)return parseInt(t.slice("".concat(JSCompiler_renameProperty("selected",this),".").length),10)}},{key:"deselect",value:function(e){var t,r=this.__selectedMap.get(e);r>=0&&(this.__selectedMap.delete(e),this.multi&&(t=this.__selectedIndexForItemIndex(r)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),t,1):this.selected=this.selectedItem=null)}},{key:"deselectIndex",value:function(e){this.deselect(this.items[e])}},{key:"select",value:function(e){this.selectIndex(this.items.indexOf(e))}},{key:"selectIndex",value:function(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}],[{key:"properties",get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},{key:"observers",get:function(){return["__updateSelection(multi, items.*)"]}}]),r}((0,Se.SH)(e))}))(ee.H3));customElements.define(Le.is,Le);r(5618);y._mutablePropertyChange;Boolean,r(50856);var Ne=(0,n.x)(HTMLElement).prototype},60309:function(e,t,r){"use strict";r.d(t,{CN:function(){return n},$T:function(){return i},mA:function(){return o}});var n=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,i=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,o=/@media\s(.*)/},10868:function(e,t,r){"use strict";r.d(t,{wW:function(){return i},B7:function(){return o},OH:function(){return a}});var n=r(60309);function i(e,t){for(var r in t)null===r?e.style.removeProperty(r):e.style.setProperty(r,t[r])}function o(e,t){var r=window.getComputedStyle(e).getPropertyValue(t);return r?r.trim():""}function a(e){var t=n.$T.test(e)||n.CN.test(e);return n.$T.lastIndex=0,n.CN.lastIndex=0,t}},34816:function(e,t,r){"use strict";r.d(t,{ZP:function(){return f}});var n,i=null,o=window.HTMLImports&&window.HTMLImports.whenReady||null;function a(e){requestAnimationFrame((function(){o?o(e):(i||(i=new Promise((function(e){n=e})),"complete"===document.readyState?n():document.addEventListener("readystatechange",(function(){"complete"===document.readyState&&n()}))),i.then((function(){e&&e()})))}))}function s(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&a>0&&r[o]===n[a];)o--,a--;r[o]!==n[a]&&this[f](r[o],n[a]),o>0&&this[h](r.slice(0,o)),a>0&&this[p](n.slice(0,a),i,null)}else this[p](n,i,t)}},{key:f,value:function(e,t){var r=e[l];this[v](e)&&!e.inert&&(e.inert=!0,r.add(e)),r.has(t)&&(t.inert=!1,r.delete(t)),t[u]=e[u],t[l]=r,e[u]=void 0,e[l]=void 0}},{key:h,value:function(t){var r,n=e(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;i[u].disconnect(),i[u]=void 0;var o,a=e(i[l]);try{for(a.s();!(o=a.n()).done;)o.value.inert=!1}catch(s){a.e(s)}finally{a.f()}i[l]=void 0}}catch(s){n.e(s)}finally{n.f()}}},{key:p,value:function(t,r,n){var i,o=e(t);try{for(o.s();!(i=o.n()).done;){for(var a=i.value,s=a.parentNode,c=s.children,d=new Set,f=0;f>8&255]},D=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},I=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},L=function(e){return O(e,23,4)},N=function(e){return O(e,52,8)},F=function(e,t){v(e.prototype,t,{get:function(){return w(this)[t]}})},B=function(e,t,r,n){var i=f(r),o=w(e);if(i+t>o.byteLength)throw C(j);var a=w(o.buffer).bytes,s=i+o.byteOffset,c=a.slice(s,s+t);return n?c:c.reverse()},H=function(e,t,r,n,i,o){var a=f(r),s=w(e);if(a+t>s.byteLength)throw C(j);for(var c=w(s.buffer).bytes,l=a+s.byteOffset,u=n(+i),d=0;dV;)(Z=G[V++])in q||a(q,Z,E[Z]);U.constructor=q}m&&h(A)!==T&&m(A,T);var K=new S(new q(2)),$=A.setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||s(A,{setInt8:function(e,t){$.call(this,e,t<<24>>24)},setUint8:function(e,t){$.call(this,e,t<<24>>24)}},{unsafe:!0})}else q=function(e){l(this,q,x);var t=f(e);k(this,{bytes:z.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},S=function(e,t,r){l(this,S,_),l(e,q,_);var n=w(e).byteLength,o=u(t);if(o<0||o>n)throw C("Wrong offset");if(o+(r=void 0===r?n-o:d(r))>n)throw C("Wrong length");k(this,{buffer:e,byteLength:r,byteOffset:o}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=o)},i&&(F(q,"byteLength"),F(S,"buffer"),F(S,"byteLength"),F(S,"byteOffset")),s(S.prototype,{getInt8:function(e){return B(this,1,e)[0]<<24>>24},getUint8:function(e){return B(this,1,e)[0]},getInt16:function(e){var t=B(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=B(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return I(B(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return I(B(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return P(B(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return P(B(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){H(this,1,e,M,t)},setUint8:function(e,t){H(this,1,e,M,t)},setInt16:function(e,t){H(this,2,e,R,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){H(this,2,e,R,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){H(this,4,e,D,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){H(this,4,e,D,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){H(this,4,e,L,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){H(this,8,e,N,t,arguments.length>2?arguments[2]:void 0)}});g(q,x),g(S,_),e.exports={ArrayBuffer:q,DataView:S}},24579:function(e,t,r){"use strict";var n=r(84766),i=r(11588),o=r(48331),a=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),s=o(r.length),c=i(e,s),l=i(t,s),u=arguments.length>2?arguments[2]:void 0,d=a((void 0===u?s:i(u,s))-l,s-c),f=1;for(l0;)l in r?r[c]=r[l]:delete r[c],c+=f,l+=f;return r}},6922:function(e,t,r){"use strict";var n=r(84766),i=r(11588),o=r(48331);e.exports=function(e){for(var t=n(this),r=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),c=a>2?arguments[2]:void 0,l=void 0===c?r:i(c,r);l>s;)t[s++]=e;return t}},20702:function(e,t,r){"use strict";var n=r(25097).forEach,i=r(49719)("forEach");e.exports=i?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},54513:function(e,t,r){"use strict";var n=r(43322),i=r(84766),o=r(95913),a=r(19439),s=r(48331),c=r(32385),l=r(85111);e.exports=function(e){var t,r,u,d,f,p,h=i(e),m="function"==typeof this?this:Array,y=arguments.length,v=y>1?arguments[1]:void 0,z=void 0!==v,g=l(h),b=0;if(z&&(v=n(v,y>2?arguments[2]:void 0,2)),null==g||m==Array&&a(g))for(r=new m(t=s(h.length));t>b;b++)p=z?v(h[b],b):h[b],c(r,b,p);else for(f=(d=g.call(h)).next,r=new m;!(u=f.call(d)).done;b++)p=z?o(d,v,[u.value,b],!0):u.value,c(r,b,p);return r.length=b,r}},59729:function(e,t,r){var n=r(19969),i=r(48331),o=r(11588),a=function(e){return function(t,r,a){var s,c=n(t),l=i(c.length),u=o(a,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},51486:function(e,t,r){var n=r(43322),i=r(23169),o=r(84766),a=r(48331),s=function(e){var t=6==e;return function(r,s,c){for(var l,u=o(r),d=i(u),f=n(s,c,3),p=a(d.length);p-- >0;)if(f(l=d[p],p,u))switch(e){case 5:return l;case 6:return p}return t?-1:void 0}};e.exports={findLast:s(5),findLastIndex:s(6)}},25097:function(e,t,r){var n=r(43322),i=r(23169),o=r(84766),a=r(48331),s=r(48347),c=[].push,l=function(e){var t=1==e,r=2==e,l=3==e,u=4==e,d=6==e,f=7==e,p=5==e||d;return function(h,m,y,v){for(var z,g,b=o(h),w=i(b),k=n(m,y,3),x=a(w.length),_=0,j=v||s,E=t?j(h,x):r||f?j(h,0):void 0;x>_;_++)if((p||_ in w)&&(g=k(z=w[_],_,b),e))if(t)E[_]=g;else if(g)switch(e){case 3:return!0;case 5:return z;case 6:return _;case 2:c.call(E,z)}else switch(e){case 4:return!1;case 7:c.call(E,z)}return d?-1:l||u?u:E}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterOut:l(7)}},8139:function(e,t,r){"use strict";var n=r(19969),i=r(25623),o=r(48331),a=r(49719),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf"),d=l||!u;e.exports=d?function(e){if(l)return c.apply(this,arguments)||0;var t=n(this),r=o(t.length),a=r-1;for(arguments.length>1&&(a=s(a,i(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},1566:function(e,t,r){var n=r(72763),i=r(1386),o=r(56962),a=i("species");e.exports=function(e){return o>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},49719:function(e,t,r){"use strict";var n=r(72763);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},59856:function(e,t,r){var n=r(80118),i=r(84766),o=r(23169),a=r(48331),s=function(e){return function(t,r,s,c){n(r);var l=i(t),u=o(l),d=a(l.length),f=e?d-1:0,p=e?-1:1;if(s<2)for(;;){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=p)f in u&&(c=r(c,u[f],f,l));return c}};e.exports={left:s(!1),right:s(!0)}},33407:function(e){var t=Math.floor,r=function(e,o){var a=e.length,s=t(a/2);return a<8?n(e,o):i(r(e.slice(0,s),o),r(e.slice(s),o),o)},n=function(e,t){for(var r,n,i=e.length,o=1;o0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},i=function(e,t,r){for(var n=e.length,i=t.length,o=0,a=0,s=[];o1?arguments[1]:void 0;return n(this),(t=void 0!==l)&&n(l),null==e?new this:(r=[],t?(a=0,s=i(l,c>2?arguments[2]:void 0,2),o(e,(function(e){r.push(s(e,a++))}))):o(e,r.push,{that:r}),new this(r))}},11171:function(e){"use strict";e.exports=function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}},95365:function(e,t,r){"use strict";var n=r(67455).f,i=r(63571),o=r(39757),a=r(43322),s=r(30680),c=r(64572),l=r(94247),u=r(8395),d=r(37703),f=r(9154).fastKey,p=r(2995),h=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,r,l){var u=e((function(e,n){s(e,u,t),h(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=n&&c(n,e[l],{that:e,AS_ENTRIES:r})})),p=m(t),y=function(e,t,r){var n,i,o=p(e),a=v(e,t);return a?a.value=r:(o.last=a={index:i=f(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var r,n=p(e),i=f(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return o(u.prototype,{clear:function(){for(var e=p(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=this,r=p(t),n=v(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),d?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=p(this),n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(u.prototype,r?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),d&&n(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,r){var n=t+" Iterator",i=m(t),o=m(n);l(e,t,(function(e,t){h(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),u(t)}}},59285:function(e,t,r){"use strict";var n=r(39757),i=r(9154).getWeakData,o=r(86956),a=r(42521),s=r(30680),c=r(64572),l=r(25097),u=r(52766),d=r(2995),f=d.set,p=d.getterFor,h=l.find,m=l.findIndex,y=0,v=function(e){return e.frozen||(e.frozen=new z)},z=function(){this.entries=[]},g=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};z.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var r=g(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,l){var d=e((function(e,n){s(e,d,t),f(e,{type:t,id:y++,frozen:void 0}),null!=n&&c(n,e[l],{that:e,AS_ENTRIES:r})})),h=p(t),m=function(e,t,r){var n=h(e),a=i(o(t),!0);return!0===a?v(n).set(t,r):a[n.id]=r,e};return n(d.prototype,{delete:function(e){var t=h(this);if(!a(e))return!1;var r=i(e);return!0===r?v(t).delete(e):r&&u(r,t.id)&&delete r[t.id]},has:function(e){var t=h(this);if(!a(e))return!1;var r=i(e);return!0===r?v(t).has(e):r&&u(r,t.id)}}),n(d.prototype,r?{get:function(e){var t=h(this);if(a(e)){var r=i(e);return!0===r?v(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),d}}},35246:function(e,t,r){"use strict";var n=r(7309),i=r(76121),o=r(20676),a=r(62327),s=r(9154),c=r(64572),l=r(30680),u=r(42521),d=r(72763),f=r(4684),p=r(54849),h=r(31985);e.exports=function(e,t,r){var m=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),v=m?"set":"add",z=i[e],g=z&&z.prototype,b=z,w={},k=function(e){var t=g[e];a(g,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(o(e,"function"!=typeof z||!(y||g.forEach&&!d((function(){(new z).entries().next()})))))b=r.getConstructor(t,e,m,v),s.REQUIRED=!0;else if(o(e,!0)){var x=new b,_=x[v](y?{}:-0,1)!=x,j=d((function(){x.has(1)})),E=f((function(e){new z(e)})),q=!y&&d((function(){for(var e=new z,t=5;t--;)e[v](t,t);return!e.has(-0)}));E||((b=t((function(t,r){l(t,b,e);var n=h(new z,t,b);return null!=r&&c(r,n[v],{that:n,AS_ENTRIES:m}),n}))).prototype=g,g.constructor=b),(j||q)&&(k("delete"),k("has"),m&&k("get")),(q||_)&&k(v),y&&g.clear&&delete g.clear}return w[e]=b,n({global:!0,forced:b!=z},w),p(b,e),y||r.setStrong(b,e,m),b}},49098:function(e,t,r){var n=r(8974),i=r(38742),o=r(63571),a=r(42521),s=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=o(null)};s.prototype.get=function(e,t){return this[e]||(this[e]=t())},s.prototype.next=function(e,t,r){var o=r?this.objectsByIndex[e]||(this.objectsByIndex[e]=new i):this.primitives||(this.primitives=new n),a=o.get(t);return a||o.set(t,a=new s),a};var c=new s;e.exports=function(){var e,t,r=c,n=arguments.length;for(e=0;e"+a+""}},34427:function(e,t,r){"use strict";var n=r(94109).IteratorPrototype,i=r(63571),o=r(5938),a=r(54849),s=r(23403),c=function(){return this};e.exports=function(e,t,r){var l=t+" Iterator";return e.prototype=i(n,{next:o(1,r)}),a(e,l,!1,!0),s[l]=c,e}},91471:function(e,t,r){var n=r(37703),i=r(67455),o=r(5938);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},5938:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},32385:function(e,t,r){"use strict";var n=r(40687),i=r(67455),o=r(5938);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},59671:function(e,t,r){"use strict";var n=r(72763),i=r(25427).start,o=Math.abs,a=Date.prototype,s=a.getTime,c=a.toISOString;e.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))}))||!n((function(){c.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+i(o(t),n?6:4,0)+"-"+i(e.getUTCMonth()+1,2,0)+"-"+i(e.getUTCDate(),2,0)+"T"+i(e.getUTCHours(),2,0)+":"+i(e.getUTCMinutes(),2,0)+":"+i(e.getUTCSeconds(),2,0)+"."+i(r,3,0)+"Z"}:c},83976:function(e,t,r){"use strict";var n=r(86956),i=r(40687);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(n(this),"number"!==e)}},94247:function(e,t,r){"use strict";var n=r(7309),i=r(34427),o=r(99366),a=r(86594),s=r(54849),c=r(91471),l=r(62327),u=r(1386),d=r(8451),f=r(23403),p=r(94109),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,y=u("iterator"),v="keys",z="values",g="entries",b=function(){return this};e.exports=function(e,t,r,u,p,w,k){i(r,t,u);var x,_,j,E=function(e){if(e===p&&C)return C;if(!m&&e in A)return A[e];switch(e){case v:case z:case g:return function(){return new r(this,e)}}return function(){return new r(this)}},q=t+" Iterator",S=!1,A=e.prototype,T=A[y]||A["@@iterator"]||p&&A[p],C=!m&&T||E(p),O="Array"==t&&A.entries||T;if(O&&(x=o(O.call(new e)),h!==Object.prototype&&x.next&&(d||o(x)===h||(a?a(x,h):"function"!=typeof x[y]&&c(x,y,b)),s(x,q,!0,!0),d&&(f[q]=b))),p==z&&T&&T.name!==z&&(S=!0,C=function(){return T.call(this)}),d&&!k||A[y]===C||c(A,y,C),f[t]=C,p)if(_={values:E(z),keys:w?C:E(v),entries:E(g)},k)for(j in _)(m||S||!(j in A))&&l(A,j,_[j]);else n({target:t,proto:!0,forced:m||S},_);return _}},56316:function(e,t,r){var n=r(1035),i=r(52766),o=r(89103),a=r(67455).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},37703:function(e,t,r){var n=r(72763);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6004:function(e,t,r){var n=r(76121),i=r(42521),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},83729:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},45249:function(e,t,r){var n=r(58635).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},67729:function(e){e.exports="object"==typeof window},32049:function(e,t,r){var n=r(58635);e.exports=/MSIE|Trident/.test(n)},60987:function(e,t,r){var n=r(58635);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(n)},1441:function(e,t,r){var n=r(42849),i=r(76121);e.exports="process"==n(i.process)},53538:function(e,t,r){var n=r(58635);e.exports=/web0s(?!.*chrome)/i.test(n)},58635:function(e,t,r){var n=r(77642);e.exports=n("navigator","userAgent")||""},56962:function(e,t,r){var n,i,o=r(76121),a=r(58635),s=o.process,c=s&&s.versions,l=c&&c.v8;l?i=(n=l.split("."))[0]<4?1:n[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},58998:function(e,t,r){var n=r(58635).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},64731:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7309:function(e,t,r){var n=r(76121),i=r(38769).f,o=r(91471),a=r(62327),s=r(6565),c=r(94488),l=r(20676);e.exports=function(e,t){var r,u,d,f,p,h=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[h]||s(h,{}):(n[h]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(p=i(r,u))&&p.value:r[u],!l(m?u:h+(y?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(r,u,f,e)}}},72763:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},1325:function(e,t,r){"use strict";r(48775);var n=r(62327),i=r(73546),o=r(72763),a=r(1386),s=r(91471),c=a("species"),l=RegExp.prototype;e.exports=function(e,t,r,u){var d=a(e),f=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=f&&!o((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t}));if(!f||!p||r){var h=/./[d],m=t(d,""[e],(function(e,t,r,n,o){var a=t.exec;return a===i||a===l.exec?f&&!o?{done:!0,value:h.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}));n(String.prototype,e,m[0]),n(l,d,m[1])}u&&s(l[d],"sham",!0)}},25538:function(e,t,r){"use strict";var n=r(43964),i=r(48331),o=r(43322),a=function(e,t,r,s,c,l,u,d){for(var f,p=c,h=0,m=!!u&&o(u,d,3);h0&&n(f))p=a(e,t,f,i(f.length),p,l-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=f}p++}h++}return p};e.exports=a},91104:function(e,t,r){var n=r(72763);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},43322:function(e,t,r){var n=r(80118);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},48659:function(e,t,r){"use strict";var n=r(80118),i=r(42521),o=[].slice,a={},s=function(e,t,r){if(!(t in a)){for(var n=[],i=0;i]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,c,l,u){var d=r+e.length,f=c.length,p=s;return void 0!==l&&(l=n(l),p=a),o.call(u,p,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(d);case"<":a=l[o.slice(1,-1)];break;default:var s=+o;if(0===s)return n;if(s>f){var u=i(s/10);return 0===u?n:u<=f?void 0===c[u-1]?o.charAt(1):c[u-1]+o.charAt(1):n}a=c[s-1]}return void 0===a?"":a}))}},76121:function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},52766:function(e,t,r){var n=r(84766),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(n(e),t)}},32048:function(e){e.exports={}},94113:function(e,t,r){var n=r(76121);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},24174:function(e,t,r){var n=r(77642);e.exports=n("document","documentElement")},27226:function(e,t,r){var n=r(37703),i=r(72763),o=r(6004);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},6601:function(e){var t=Math.abs,r=Math.pow,n=Math.floor,i=Math.log,o=Math.LN2;e.exports={pack:function(e,a,s){var c,l,u,d=new Array(s),f=8*s-a-1,p=(1<>1,m=23===a?r(2,-24)-r(2,-77):0,y=e<0||0===e&&1/e<0?1:0,v=0;for((e=t(e))!=e||e===1/0?(l=e!=e?1:0,c=p):(c=n(i(e)/o),e*(u=r(2,-c))<1&&(c--,u*=2),(e+=c+h>=1?m/u:m*r(2,1-h))*u>=2&&(c++,u/=2),c+h>=p?(l=0,c=p):c+h>=1?(l=(e*u-1)*r(2,a),c+=h):(l=e*r(2,h-1)*r(2,a),c=0));a>=8;d[v++]=255&l,l/=256,a-=8);for(c=c<0;d[v++]=255&c,c/=256,f-=8);return d[--v]|=128*y,d},unpack:function(e,t){var n,i=e.length,o=8*i-t-1,a=(1<>1,c=o-7,l=i-1,u=e[l--],d=127&u;for(u>>=7;c>0;d=256*d+e[l],l--,c-=8);for(n=d&(1<<-c)-1,d>>=-c,c+=t;c>0;n=256*n+e[l],l--,c-=8);if(0===d)d=1-s;else{if(d===a)return n?NaN:u?-1/0:1/0;n+=r(2,t),d-=s}return(u?-1:1)*n*r(2,d-t)}}},23169:function(e,t,r){var n=r(72763),i=r(42849),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},31985:function(e,t,r){var n=r(42521),i=r(86594);e.exports=function(e,t,r){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},99835:function(e,t,r){var n=r(4682),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},9154:function(e,t,r){var n=r(32048),i=r(42521),o=r(52766),a=r(67455).f,s=r(51735),c=r(91104),l=s("meta"),u=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,l,{value:{objectID:"O"+u++,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,l)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[l].objectID},getWeakData:function(e,t){if(!o(e,l)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[l].weakData},onFreeze:function(e){return c&&p.REQUIRED&&d(e)&&!o(e,l)&&f(e),e}};n[l]=!0},2995:function(e,t,r){var n,i,o,a=r(45546),s=r(76121),c=r(42521),l=r(91471),u=r(52766),d=r(4682),f=r(52562),p=r(32048),h="Object already initialized",m=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new m),v=y.get,z=y.has,g=y.set;n=function(e,t){if(z.call(y,e))throw new TypeError(h);return t.facade=e,g.call(y,e,t),t},i=function(e){return v.call(y,e)||{}},o=function(e){return z.call(y,e)}}else{var b=f("state");p[b]=!0,n=function(e,t){if(u(e,b))throw new TypeError(h);return t.facade=e,l(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},o=function(e){return u(e,b)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},19439:function(e,t,r){var n=r(1386),i=r(23403),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},43964:function(e,t,r){var n=r(42849);e.exports=Array.isArray||function(e){return"Array"==n(e)}},20676:function(e,t,r){var n=r(72763),i=/#|\.prototype\./,o=function(e,t){var r=s[a(e)];return r==l||r!=c&&("function"==typeof t?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},56038:function(e,t,r){var n=r(42521),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},42521:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},8451:function(e){e.exports=!1},16272:function(e,t,r){var n=r(42521),i=r(42849),o=r(1386)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},64572:function(e,t,r){var n=r(86956),i=r(19439),o=r(48331),a=r(43322),s=r(85111),c=r(94556),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var u,d,f,p,h,m,y,v=r&&r.that,z=!(!r||!r.AS_ENTRIES),g=!(!r||!r.IS_ITERATOR),b=!(!r||!r.INTERRUPTED),w=a(t,v,1+z+b),k=function(e){return u&&c(u),new l(!0,e)},x=function(e){return z?(n(e),b?w(e[0],e[1],k):w(e[0],e[1])):b?w(e,k):w(e)};if(g)u=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(f=0,p=o(e.length);p>f;f++)if((h=x(e[f]))&&h instanceof l)return h;return new l(!1)}u=d.call(e)}for(m=u.next;!(y=m.call(u)).done;){try{h=x(y.value)}catch(_){throw c(u),_}if("object"==typeof h&&h&&h instanceof l)return h}return new l(!1)}},94556:function(e,t,r){var n=r(86956);e.exports=function(e){var t=e.return;if(void 0!==t)return n(t.call(e)).value}},36020:function(e,t,r){"use strict";var n=r(1035),i=r(80118),o=r(86956),a=r(63571),s=r(91471),c=r(39757),l=r(1386),u=r(2995),d=u.set,f=u.get,p=l("toStringTag"),h=function(e){var t=f(this).iterator,r=t.return;return void 0===r?{done:!0,value:e}:o(r.call(t,e))},m=function(e){var t=f(this).iterator,r=t.throw;if(void 0===r)throw e;return r.call(t,e)};e.exports=function(e,t){var r=function(e){e.next=i(e.iterator.next),e.done=!1,d(this,e)};return r.prototype=c(a(n.Iterator.prototype),{next:function(){var t=f(this),r=t.done?void 0:e.apply(t,arguments);return{done:t.done,value:r}},return:h,throw:m}),t||s(r.prototype,p,"Generator"),r}},94109:function(e,t,r){"use strict";var n,i,o,a=r(72763),s=r(99366),c=r(91471),l=r(52766),u=r(1386),d=r(8451),f=u("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(n=i):p=!0);var h=null==n||a((function(){var e={};return n[f].call(e)!==e}));h&&(n={}),d&&!h||l(n,f)||c(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},23403:function(e){e.exports={}},16756:function(e,t,r){"use strict";var n=r(86956);e.exports=function(e,t){var r=n(this),i=r.has(e)&&"update"in t?t.update(r.get(e),e,r):t.insert(e,r);return r.set(e,i),i}},7230:function(e,t,r){"use strict";var n=r(86956);e.exports=function(e,t){var r,i=n(this),o=arguments.length>2?arguments[2]:void 0;if("function"!=typeof t&&"function"!=typeof o)throw TypeError("At least one callback required");return i.has(e)?(r=i.get(e),"function"==typeof t&&(r=t(r),i.set(e,r))):"function"==typeof o&&(r=o(),i.set(e,r)),r}},89188:function(e){var t=Math.expm1,r=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:r(e)-1}:t},63094:function(e,t,r){var n=r(4380),i=Math.abs,o=Math.pow,a=o(2,-52),s=o(2,-23),c=o(2,127)*(2-s),l=o(2,-126);e.exports=Math.fround||function(e){var t,r,o=i(e),u=n(e);return oc||r!=r?u*(1/0):u*r}},39370:function(e){var t=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:t(1+e)}},50969:function(e){e.exports=Math.scale||function(e,t,r,n,i){return 0===arguments.length||e!=e||t!=t||r!=r||n!=n||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-n)/(r-t)+n}},4380:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},26745:function(e,t,r){var n,i,o,a,s,c,l,u,d=r(76121),f=r(38769).f,p=r(94825).set,h=r(60987),m=r(53538),y=r(1441),v=d.MutationObserver||d.WebKitMutationObserver,z=d.document,g=d.process,b=d.Promise,w=f(d,"queueMicrotask"),k=w&&w.value;k||(n=function(){var e,t;for(y&&(e=g.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(r){throw i?a():o=void 0,r}}o=void 0,e&&e.enter()},h||y||m||!v||!z?b&&b.resolve?((l=b.resolve(void 0)).constructor=b,u=l.then,a=function(){u.call(l,n)}):a=y?function(){g.nextTick(n)}:function(){p.call(d,n)}:(s=!0,c=z.createTextNode(""),new v(n).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=k||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},34860:function(e,t,r){var n=r(76121);e.exports=n.Promise},54020:function(e,t,r){var n=r(56962),i=r(72763);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},50307:function(e,t,r){var n=r(72763),i=r(1386),o=r(8451),a=i("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},45546:function(e,t,r){var n=r(76121),i=r(99835),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},40500:function(e,t,r){"use strict";var n=r(80118),i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},11330:function(e,t,r){var n=r(16272);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},30097:function(e,t,r){var n=r(76121).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},30706:function(e,t,r){var n=r(76121),i=r(36842).trim,o=r(82350),a=n.parseFloat,s=1/a(o+"-0")!=-1/0;e.exports=s?function(e){var t=i(String(e)),r=a(t);return 0===r&&"-"==t.charAt(0)?-0:r}:a},92437:function(e,t,r){var n=r(76121),i=r(36842).trim,o=r(82350),a=n.parseInt,s=/^[+-]?0[Xx]/,c=8!==a(o+"08")||22!==a(o+"0x16");e.exports=c?function(e,t){var r=i(String(e));return a(r,t>>>0||(s.test(r)?16:10))}:a},4138:function(e,t,r){"use strict";var n=r(2995),i=r(34427),o=r(42521),a=r(37532),s=r(37703),c="Incorrect Number.range arguments",l="NumericRangeIterator",u=n.set,d=n.getterFor(l),f=i((function(e,t,r,n,i,a){if(typeof e!=n||t!==1/0&&t!==-1/0&&typeof t!=n)throw new TypeError(c);if(e===1/0||e===-1/0)throw new RangeError(c);var d,f=t>e,p=!1;if(void 0===r)d=void 0;else if(o(r))d=r.step,p=!!r.inclusive;else{if(typeof r!=n)throw new TypeError(c);d=r}if(null==d&&(d=f?a:-a),typeof d!=n)throw new TypeError(c);if(d===1/0||d===-1/0||d===i&&e!==t)throw new RangeError(c);u(this,{type:l,start:e,end:t,step:d,inclusiveEnd:p,hitsEnd:e!=e||t!=t||d!=d||t>e!=d>i,currentCount:i,zero:i}),s||(this.start=e,this.end=t,this.step=d,this.inclusive=p)}),l,(function(){var e=d(this);if(e.hitsEnd)return{value:void 0,done:!0};var t=e.start,r=e.end,n=t+e.step*e.currentCount++;n===r&&(e.hitsEnd=!0);var i=e.inclusiveEnd;return(r>t?i?n>r:n>=r:i?r>n:r>=n)?{value:void 0,done:e.hitsEnd=!0}:{value:n,done:!1}})),p=function(e){return{get:e,set:function(){},configurable:!0,enumerable:!1}};s&&a(f.prototype,{start:p((function(){return d(this).start})),end:p((function(){return d(this).end})),inclusive:p((function(){return d(this).inclusiveEnd})),step:p((function(){return d(this).step}))}),e.exports=f},81179:function(e,t,r){"use strict";var n=r(37703),i=r(72763),o=r(31792),a=r(92719),s=r(77751),c=r(84766),l=r(23169),u=Object.assign,d=Object.defineProperty;e.exports=!u||i((function(){if(n&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach((function(e){t[e]=e})),7!=u({},e)[r]||o(u({},t)).join("")!=i}))?function(e,t){for(var r=c(e),i=arguments.length,u=1,d=a.f,f=s.f;i>u;)for(var p,h=l(arguments[u++]),m=d?o(h).concat(d(h)):o(h),y=m.length,v=0;y>v;)p=m[v++],n&&!f.call(h,p)||(r[p]=h[p]);return r}:u},63571:function(e,t,r){var n,i=r(86956),o=r(37532),a=r(64731),s=r(32048),c=r(24174),l=r(6004),u=r(52562),d=u("IE_PROTO"),f=function(){},p=function(e){return"\n \n \n \n ```\n\n ```js\n import {html} from '@polymer/polymer/lib/utils/html-tag.js';\n import '@polymer/iron-flex-layout/iron-flex-layout-classes.js';\n\n const template = html`\n \n \n
    \n
    horizontal layout center alignment
    \n
    \n `;\n document.body.appendChild(template.content);\n ```\n\n2. [Custom CSS\nmixins](https://github.com/PolymerElements/iron-flex-layout/blob/master/iron-flex-layout.html).\nThe mixin stylesheet includes custom CSS mixins that can be applied inside a CSS\nrule using the `@apply` function.\n\nPlease note that the old [/deep/ layout\nclasses](https://github.com/PolymerElements/iron-flex-layout/tree/master/classes)\nare deprecated, and should not be used. To continue using layout properties\ndirectly in markup, please switch to using the new `dom-module`-based\n[layout\nclasses](https://github.com/PolymerElements/iron-flex-layout/tree/master/iron-flex-layout-classes.html).\nPlease note that the new version does not use `/deep/`, and therefore requires\nyou to import the `dom-modules` in every element that needs to use them.\n\n@group Iron Elements\n@pseudoElement iron-flex-layout\n@demo demo/index.html\n*/\nconst template = html`\n\n \n\n\n \n`;\n\ntemplate.setAttribute('style', 'display: none;');\ndocument.head.appendChild(template.content);\n\nvar style = document.createElement('style');\nstyle.textContent = '[hidden] { display: none !important; }';\ndocument.head.appendChild(style);\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\n\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\n\n/**\n`iron-a11y-announcer` is a singleton element that is intended to add a11y\nto features that require on-demand announcement from screen readers. In\norder to make use of the announcer, it is best to request its availability\nin the announcing element.\n\nExample:\n\n Polymer({\n\n is: 'x-chatty',\n\n attached: function() {\n // This will create the singleton element if it has not\n // been created yet:\n Polymer.IronA11yAnnouncer.requestAvailability();\n }\n });\n\nAfter the `iron-a11y-announcer` has been made available, elements can\nmake announces by firing bubbling `iron-announce` events.\n\nExample:\n\n this.fire('iron-announce', {\n text: 'This is an announcement!'\n }, { bubbles: true });\n\nNote: announcements are only audible if you have a screen reader enabled.\n\n@group Iron Elements\n@demo demo/index.html\n*/\nexport const IronA11yAnnouncer = Polymer({\n _template: html`\n \n
    [[_text]]
    \n`,\n\n is: 'iron-a11y-announcer',\n\n properties: {\n\n /**\n * The value of mode is used to set the `aria-live` attribute\n * for the element that will be announced. Valid values are: `off`,\n * `polite` and `assertive`.\n */\n mode: {type: String, value: 'polite'},\n\n _text: {type: String, value: ''}\n },\n\n created: function() {\n if (!IronA11yAnnouncer.instance) {\n IronA11yAnnouncer.instance = this;\n }\n\n document.body.addEventListener(\n 'iron-announce', this._onIronAnnounce.bind(this));\n },\n\n /**\n * Cause a text string to be announced by screen readers.\n *\n * @param {string} text The text that should be announced.\n */\n announce: function(text) {\n this._text = '';\n this.async(function() {\n this._text = text;\n }, 100);\n },\n\n _onIronAnnounce: function(event) {\n if (event.detail && event.detail.text) {\n this.announce(event.detail.text);\n }\n }\n});\n\nIronA11yAnnouncer.instance = null;\n\nIronA11yAnnouncer.requestAvailability = function() {\n if (!IronA11yAnnouncer.instance) {\n IronA11yAnnouncer.instance = document.createElement('iron-a11y-announcer');\n }\n\n document.body.appendChild(IronA11yAnnouncer.instance);\n};\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\n\nimport {IronA11yAnnouncer} from '@polymer/iron-a11y-announcer/iron-a11y-announcer.js';\nimport {IronValidatableBehavior} from '@polymer/iron-validatable-behavior/iron-validatable-behavior.js';\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\n\n/**\n`` is a wrapper to a native `` element, that adds two-way\nbinding and prevention of invalid input. To use it, you must distribute a native\n`` yourself. You can continue to use the native `input` as you would\nnormally:\n\n \n \n \n\n \n \n \n\n### Two-way binding\n\nBy default you can only get notified of changes to a native ``'s `value`\ndue to user input:\n\n \n\nThis means that if you imperatively set the value (i.e. `someNativeInput.value =\n'foo'`), no events will be fired and this change cannot be observed.\n\n`iron-input` adds the `bind-value` property that mirrors the native `input`'s\n'`value` property; this property can be used for two-way data binding.\n`bind-value` will notify if it is changed either by user input or by script.\n\n \n \n \n\nNote: this means that if you want to imperatively set the native `input`'s, you\n_must_ set `bind-value` instead, so that the wrapper `iron-input` can be\nnotified.\n\n### Validation\n\n`iron-input` uses the native `input`'s validation. For simplicity, `iron-input`\nhas a `validate()` method (which internally just checks the distributed\n`input`'s validity), which sets an `invalid` attribute that can also be used for\nstyling.\n\nTo validate automatically as you type, you can use the `auto-validate`\nattribute.\n\n`iron-input` also fires an `iron-input-validate` event after `validate()` is\ncalled. You can use it to implement a custom validator:\n\n var CatsOnlyValidator = {\n validate: function(ironInput) {\n var valid = !ironInput.bindValue || ironInput.bindValue === 'cat';\n ironInput.invalid = !valid;\n return valid;\n }\n }\n ironInput.addEventListener('iron-input-validate', function() {\n CatsOnly.validate(input2);\n });\n\nYou can also use an element implementing an\n[`IronValidatorBehavior`](/element/PolymerElements/iron-validatable-behavior).\nThis example can also be found in the demo for this element:\n\n \n \n \n\n### Preventing invalid input\n\nIt may be desirable to only allow users to enter certain characters. You can use\nthe `allowed-pattern` attribute to accomplish this. This feature is separate\nfrom validation, and `allowed-pattern` does not affect how the input is\nvalidated.\n\n // Only allow typing digits, but a valid input has exactly 5 digits.\n \n \n \n\n@demo demo/index.html\n*/\nPolymer({\n _template: html`\n \n \n`,\n\n is: 'iron-input',\n behaviors: [IronValidatableBehavior],\n\n /**\n * Fired whenever `validate()` is called.\n *\n * @event iron-input-validate\n */\n\n properties: {\n\n /**\n * Use this property instead of `value` for two-way data binding, or to\n * set a default value for the input. **Do not** use the distributed\n * input's `value` property to set a default value.\n */\n bindValue: {type: String, value: ''},\n\n /**\n * Computed property that echoes `bindValue` (mostly used for Polymer 1.0\n * backcompatibility, if you were one-way binding to the Polymer 1.0\n * `input is=\"iron-input\"` value attribute).\n */\n value: {type: String, computed: '_computeValue(bindValue)'},\n\n /**\n * Regex-like list of characters allowed as input; all characters not in the\n * list will be rejected. The recommended format should be a list of allowed\n * characters, for example, `[a-zA-Z0-9.+-!;:]`.\n *\n * This pattern represents the allowed characters for the field; as the user\n * inputs text, each individual character will be checked against the\n * pattern (rather than checking the entire value as a whole). If a\n * character is not a match, it will be rejected.\n *\n * Pasted input will have each character checked individually; if any\n * character doesn't match `allowedPattern`, the entire pasted string will\n * be rejected.\n *\n * Note: if you were using `iron-input` in 1.0, you were also required to\n * set `prevent-invalid-input`. This is no longer needed as of Polymer 2.0,\n * and will be set automatically for you if an `allowedPattern` is provided.\n *\n */\n allowedPattern: {type: String},\n\n /**\n * Set to true to auto-validate the input value as you type.\n */\n autoValidate: {type: Boolean, value: false},\n\n /**\n * The native input element.\n */\n _inputElement: Object,\n },\n\n observers: ['_bindValueChanged(bindValue, _inputElement)'],\n listeners: {'input': '_onInput', 'keypress': '_onKeypress'},\n\n created: function() {\n IronA11yAnnouncer.requestAvailability();\n this._previousValidInput = '';\n this._patternAlreadyChecked = false;\n },\n\n attached: function() {\n // If the input is added at a later time, update the internal reference.\n this._observer = dom(this).observeNodes(function(info) {\n this._initSlottedInput();\n }.bind(this));\n },\n\n detached: function() {\n if (this._observer) {\n dom(this).unobserveNodes(this._observer);\n this._observer = null;\n }\n },\n\n /**\n * Returns the distributed input element.\n */\n get inputElement() {\n return this._inputElement;\n },\n\n _initSlottedInput: function() {\n this._inputElement = this.getEffectiveChildren()[0];\n\n if (this.inputElement && this.inputElement.value) {\n this.bindValue = this.inputElement.value;\n }\n\n this.fire('iron-input-ready');\n },\n\n get _patternRegExp() {\n var pattern;\n if (this.allowedPattern) {\n pattern = new RegExp(this.allowedPattern);\n } else {\n switch (this.inputElement.type) {\n case 'number':\n pattern = /[0-9.,e-]/;\n break;\n }\n }\n return pattern;\n },\n\n /**\n * @suppress {checkTypes}\n */\n _bindValueChanged: function(bindValue, inputElement) {\n // The observer could have run before attached() when we have actually\n // initialized this property.\n if (!inputElement) {\n return;\n }\n\n if (bindValue === undefined) {\n inputElement.value = null;\n } else if (bindValue !== inputElement.value) {\n this.inputElement.value = bindValue;\n }\n\n if (this.autoValidate) {\n this.validate();\n }\n\n // manually notify because we don't want to notify until after setting value\n this.fire('bind-value-changed', {value: bindValue});\n },\n\n _onInput: function() {\n // Need to validate each of the characters pasted if they haven't\n // been validated inside `_onKeypress` already.\n if (this.allowedPattern && !this._patternAlreadyChecked) {\n var valid = this._checkPatternValidity();\n if (!valid) {\n this._announceInvalidCharacter(\n 'Invalid string of characters not entered.');\n this.inputElement.value = this._previousValidInput;\n }\n }\n this.bindValue = this._previousValidInput = this.inputElement.value;\n this._patternAlreadyChecked = false;\n },\n\n _isPrintable: function(event) {\n // What a control/printable character is varies wildly based on the browser.\n // - most control characters (arrows, backspace) do not send a `keypress`\n // event\n // in Chrome, but the *do* on Firefox\n // - in Firefox, when they do send a `keypress` event, control chars have\n // a charCode = 0, keyCode = xx (for ex. 40 for down arrow)\n // - printable characters always send a keypress event.\n // - in Firefox, printable chars always have a keyCode = 0. In Chrome, the\n // keyCode\n // always matches the charCode.\n // None of this makes any sense.\n\n // For these keys, ASCII code == browser keycode.\n var anyNonPrintable = (event.keyCode == 8) || // backspace\n (event.keyCode == 9) || // tab\n (event.keyCode == 13) || // enter\n (event.keyCode == 27); // escape\n\n // For these keys, make sure it's a browser keycode and not an ASCII code.\n var mozNonPrintable = (event.keyCode == 19) || // pause\n (event.keyCode == 20) || // caps lock\n (event.keyCode == 45) || // insert\n (event.keyCode == 46) || // delete\n (event.keyCode == 144) || // num lock\n (event.keyCode == 145) || // scroll lock\n (event.keyCode > 32 &&\n event.keyCode < 41) || // page up/down, end, home, arrows\n (event.keyCode > 111 && event.keyCode < 124); // fn keys\n\n return !anyNonPrintable && !(event.charCode == 0 && mozNonPrintable);\n },\n\n _onKeypress: function(event) {\n if (!this.allowedPattern && this.inputElement.type !== 'number') {\n return;\n }\n var regexp = this._patternRegExp;\n if (!regexp) {\n return;\n }\n\n // Handle special keys and backspace\n if (event.metaKey || event.ctrlKey || event.altKey) {\n return;\n }\n\n // Check the pattern either here or in `_onInput`, but not in both.\n this._patternAlreadyChecked = true;\n\n var thisChar = String.fromCharCode(event.charCode);\n if (this._isPrintable(event) && !regexp.test(thisChar)) {\n event.preventDefault();\n this._announceInvalidCharacter(\n 'Invalid character ' + thisChar + ' not entered.');\n }\n },\n\n _checkPatternValidity: function() {\n var regexp = this._patternRegExp;\n if (!regexp) {\n return true;\n }\n for (var i = 0; i < this.inputElement.value.length; i++) {\n if (!regexp.test(this.inputElement.value[i])) {\n return false;\n }\n }\n return true;\n },\n\n /**\n * Returns true if `value` is valid. The validator provided in `validator`\n * will be used first, then any constraints.\n * @return {boolean} True if the value is valid.\n */\n validate: function() {\n if (!this.inputElement) {\n this.invalid = false;\n return true;\n }\n\n // Use the nested input's native validity.\n var valid = this.inputElement.checkValidity();\n\n // Only do extra checking if the browser thought this was valid.\n if (valid) {\n // Empty, required input is invalid\n if (this.required && this.bindValue === '') {\n valid = false;\n } else if (this.hasValidator()) {\n valid = IronValidatableBehavior.validate.call(this, this.bindValue);\n }\n }\n\n this.invalid = !valid;\n this.fire('iron-input-validate');\n return valid;\n },\n\n _announceInvalidCharacter: function(message) {\n this.fire('iron-announce', {text: message});\n },\n\n _computeValue: function(bindValue) {\n return bindValue;\n }\n});\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/iron-flex-layout/iron-flex-layout.js';\n\nimport {IronMeta} from '@polymer/iron-meta/iron-meta.js';\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\nimport {Base} from '@polymer/polymer/polymer-legacy.js';\n\n/**\n\nThe `iron-icon` element displays an icon. By default an icon renders as a 24px\nsquare.\n\nExample using src:\n\n \n\nExample setting size to 32px x 32px:\n\n \n\n \n\nThe iron elements include several sets of icons. To use the default set of\nicons, import `iron-icons.js` and use the `icon` attribute to specify an icon:\n\n \n\n \n\nTo use a different built-in set of icons, import the specific\n`iron-icons/-icons.js`, and specify the icon as `:`.\nFor example, to use a communication icon, you would use:\n\n \n\n \n\nYou can also create custom icon sets of bitmap or SVG icons.\n\nExample of using an icon named `cherry` from a custom iconset with the ID\n`fruit`:\n\n \n\nSee `` and `` for more information about how to\ncreate a custom iconset.\n\nSee the `iron-icons` demo to see the icons available in the various iconsets.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n----------------|-------------|----------\n`--iron-icon` | Mixin applied to the icon | {}\n`--iron-icon-width` | Width of the icon | `24px`\n`--iron-icon-height` | Height of the icon | `24px`\n`--iron-icon-fill-color` | Fill color of the svg icon | `currentcolor`\n`--iron-icon-stroke-color` | Stroke color of the svg icon | none\n\n@group Iron Elements\n@element iron-icon\n@demo demo/index.html\n@hero hero.svg\n@homepage polymer.github.io\n*/\nPolymer({\n _template: html`\n \n`,\n\n is: 'iron-icon',\n\n properties: {\n\n /**\n * The name of the icon to use. The name should be of the form:\n * `iconset_name:icon_name`.\n */\n icon: {type: String},\n\n /**\n * The name of the theme to used, if one is specified by the\n * iconset.\n */\n theme: {type: String},\n\n /**\n * If using iron-icon without an iconset, you can set the src to be\n * the URL of an individual icon image file. Note that this will take\n * precedence over a given icon attribute.\n */\n src: {type: String},\n\n /**\n * @type {!IronMeta}\n */\n _meta: {value: Base.create('iron-meta', {type: 'iconset'})}\n\n },\n\n observers: [\n '_updateIcon(_meta, isAttached)',\n '_updateIcon(theme, isAttached)',\n '_srcChanged(src, isAttached)',\n '_iconChanged(icon, isAttached)'\n ],\n\n _DEFAULT_ICONSET: 'icons',\n\n _iconChanged: function(icon) {\n var parts = (icon || '').split(':');\n this._iconName = parts.pop();\n this._iconsetName = parts.pop() || this._DEFAULT_ICONSET;\n this._updateIcon();\n },\n\n _srcChanged: function(src) {\n this._updateIcon();\n },\n\n _usesIconset: function() {\n return this.icon || !this.src;\n },\n\n /** @suppress {visibility} */\n _updateIcon: function() {\n if (this._usesIconset()) {\n if (this._img && this._img.parentNode) {\n dom(this.root).removeChild(this._img);\n }\n if (this._iconName === '') {\n if (this._iconset) {\n this._iconset.removeIcon(this);\n }\n } else if (this._iconsetName && this._meta) {\n this._iconset = /** @type {?Polymer.Iconset} */ (\n this._meta.byKey(this._iconsetName));\n if (this._iconset) {\n this._iconset.applyIcon(this, this._iconName, this.theme);\n this.unlisten(window, 'iron-iconset-added', '_updateIcon');\n } else {\n this.listen(window, 'iron-iconset-added', '_updateIcon');\n }\n }\n } else {\n if (this._iconset) {\n this._iconset.removeIcon(this);\n }\n if (!this._img) {\n this._img = document.createElement('img');\n this._img.style.width = '100%';\n this._img.style.height = '100%';\n this._img.draggable = false;\n }\n this._img.src = this.src;\n dom(this.root).appendChild(this._img);\n }\n }\n});\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\n\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\n\n/*\n`iron-overlay-backdrop` is a backdrop used by `Polymer.IronOverlayBehavior`. It\nshould be a singleton.\n\n### Styling\n\nThe following custom properties and mixins are available for styling.\n\nCustom property | Description | Default\n-------------------------------------------|------------------------|---------\n`--iron-overlay-backdrop-background-color` | Backdrop background color | #000\n`--iron-overlay-backdrop-opacity` | Backdrop opacity | 0.6\n`--iron-overlay-backdrop` | Mixin applied to `iron-overlay-backdrop`. | {}\n`--iron-overlay-backdrop-opened` | Mixin applied to `iron-overlay-backdrop` when it is displayed | {}\n*/\nPolymer({\n /** @override */\n _template: html`\n \n\n \n`,\n\n is: 'iron-overlay-backdrop',\n\n properties: {\n\n /**\n * Returns true if the backdrop is opened.\n */\n opened: {\n reflectToAttribute: true,\n type: Boolean,\n value: false,\n observer: '_openedChanged',\n }\n\n },\n\n listeners: {\n 'transitionend': '_onTransitionend',\n },\n\n /** @override */\n created: function() {\n // Used to cancel previous requestAnimationFrame calls when opened changes.\n this.__openedRaf = null;\n },\n\n /** @override */\n attached: function() {\n this.opened && this._openedChanged(this.opened);\n },\n\n /**\n * Appends the backdrop to document body if needed.\n */\n prepare: function() {\n if (this.opened && !this.parentNode) {\n dom(document.body).appendChild(this);\n }\n },\n\n /**\n * Shows the backdrop.\n */\n open: function() {\n this.opened = true;\n },\n\n /**\n * Hides the backdrop.\n */\n close: function() {\n this.opened = false;\n },\n\n /**\n * Removes the backdrop from document body if needed.\n */\n complete: function() {\n if (!this.opened && this.parentNode === document.body) {\n dom(this.parentNode).removeChild(this);\n }\n },\n\n _onTransitionend: function(event) {\n if (event && event.target === this) {\n this.complete();\n }\n },\n\n /**\n * @param {boolean} opened\n * @private\n */\n _openedChanged: function(opened) {\n if (opened) {\n // Auto-attach.\n this.prepare();\n } else {\n // Animation might be disabled via the mixin or opacity custom property.\n // If it is disabled in other ways, it's up to the user to call complete.\n var cs = window.getComputedStyle(this);\n if (cs.transitionDuration === '0s' || cs.opacity == 0) {\n this.complete();\n }\n }\n\n if (!this.isAttached) {\n return;\n }\n\n // Always cancel previous requestAnimationFrame.\n if (this.__openedRaf) {\n window.cancelAnimationFrame(this.__openedRaf);\n this.__openedRaf = null;\n }\n // Force relayout to ensure proper transitions.\n this.scrollTop = this.scrollTop;\n this.__openedRaf = window.requestAnimationFrame(function() {\n this.__openedRaf = null;\n this.toggleClass('opened', this.opened);\n }.bind(this));\n }\n});\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\n\nimport {IronA11yKeysBehavior} from '@polymer/iron-a11y-keys-behavior/iron-a11y-keys-behavior.js';\nimport {IronControlState} from '@polymer/iron-behaviors/iron-control-state.js';\nimport {IronOverlayBehavior, IronOverlayBehaviorImpl} from '@polymer/iron-overlay-behavior/iron-overlay-behavior.js';\nimport {NeonAnimationRunnerBehavior} from '@polymer/neon-animation/neon-animation-runner-behavior.js';\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\n\n/**\n`` is a generalized element that is useful when you have\nhidden content (`dropdown-content`) that is revealed due to some change in\nstate that should cause it to do so.\n\nNote that this is a low-level element intended to be used as part of other\ncomposite elements that cause dropdowns to be revealed.\n\nExamples of elements that might be implemented using an `iron-dropdown`\ninclude comboboxes, menubuttons, selects. The list goes on.\n\nThe `` element exposes attributes that allow the position\nof the `dropdown-content` relative to the `dropdown-trigger` to be\nconfigured.\n\n \n
    Hello!
    \n
    \n\nIn the above example, the `
    ` assigned to the `dropdown-content` slot will\nbe hidden until the dropdown element has `opened` set to true, or when the\n`open` method is called on the element.\n\n@demo demo/index.html\n*/\nPolymer({\n _template: html`\n \n\n
    \n \n
    \n`,\n\n is: 'iron-dropdown',\n\n behaviors: [\n IronControlState,\n IronA11yKeysBehavior,\n IronOverlayBehavior,\n NeonAnimationRunnerBehavior\n ],\n\n properties: {\n /**\n * The orientation against which to align the dropdown content\n * horizontally relative to the dropdown trigger.\n * Overridden from `Polymer.IronFitBehavior`.\n */\n horizontalAlign: {type: String, value: 'left', reflectToAttribute: true},\n\n /**\n * The orientation against which to align the dropdown content\n * vertically relative to the dropdown trigger.\n * Overridden from `Polymer.IronFitBehavior`.\n */\n verticalAlign: {type: String, value: 'top', reflectToAttribute: true},\n\n /**\n * An animation config. If provided, this will be used to animate the\n * opening of the dropdown. Pass an Array for multiple animations.\n * See `neon-animation` documentation for more animation configuration\n * details.\n */\n openAnimationConfig: {type: Object},\n\n /**\n * An animation config. If provided, this will be used to animate the\n * closing of the dropdown. Pass an Array for multiple animations.\n * See `neon-animation` documentation for more animation configuration\n * details.\n */\n closeAnimationConfig: {type: Object},\n\n /**\n * If provided, this will be the element that will be focused when\n * the dropdown opens.\n */\n focusTarget: {type: Object},\n\n /**\n * Set to true to disable animations when opening and closing the\n * dropdown.\n */\n noAnimations: {type: Boolean, value: false},\n\n /**\n * By default, the dropdown will constrain scrolling on the page\n * to itself when opened.\n * Set to true in order to prevent scroll from being constrained\n * to the dropdown when it opens.\n * This property is a shortcut to set `scrollAction` to lock or refit.\n * Prefer directly setting the `scrollAction` property.\n */\n allowOutsideScroll:\n {type: Boolean, value: false, observer: '_allowOutsideScrollChanged'}\n },\n\n listeners: {'neon-animation-finish': '_onNeonAnimationFinish'},\n\n observers: [\n '_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)'\n ],\n\n /**\n * The element that is contained by the dropdown, if any.\n */\n get containedElement() {\n // Polymer 2.x returns slot.assignedNodes which can contain text nodes.\n var nodes = dom(this.$.content).getDistributedNodes();\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (nodes[i].nodeType === Node.ELEMENT_NODE) {\n return nodes[i];\n }\n }\n },\n\n ready: function() {\n // Ensure scrollAction is set.\n if (!this.scrollAction) {\n this.scrollAction = this.allowOutsideScroll ? 'refit' : 'lock';\n }\n this._readied = true;\n },\n\n attached: function() {\n if (!this.sizingTarget || this.sizingTarget === this) {\n this.sizingTarget = this.containedElement || this;\n }\n },\n\n detached: function() {\n this.cancelAnimation();\n },\n\n /**\n * Called when the value of `opened` changes.\n * Overridden from `IronOverlayBehavior`\n */\n _openedChanged: function() {\n if (this.opened && this.disabled) {\n this.cancel();\n } else {\n this.cancelAnimation();\n this._updateAnimationConfig();\n IronOverlayBehaviorImpl._openedChanged.apply(this, arguments);\n }\n },\n\n /**\n * Overridden from `IronOverlayBehavior`.\n */\n _renderOpened: function() {\n if (!this.noAnimations && this.animationConfig.open) {\n this.$.contentWrapper.classList.add('animating');\n this.playAnimation('open');\n } else {\n IronOverlayBehaviorImpl._renderOpened.apply(this, arguments);\n }\n },\n\n /**\n * Overridden from `IronOverlayBehavior`.\n */\n _renderClosed: function() {\n if (!this.noAnimations && this.animationConfig.close) {\n this.$.contentWrapper.classList.add('animating');\n this.playAnimation('close');\n } else {\n IronOverlayBehaviorImpl._renderClosed.apply(this, arguments);\n }\n },\n\n /**\n * Called when animation finishes on the dropdown (when opening or\n * closing). Responsible for \"completing\" the process of opening or\n * closing the dropdown by positioning it or setting its display to\n * none.\n */\n _onNeonAnimationFinish: function() {\n this.$.contentWrapper.classList.remove('animating');\n if (this.opened) {\n this._finishRenderOpened();\n } else {\n this._finishRenderClosed();\n }\n },\n\n /**\n * Constructs the final animation config from different properties used\n * to configure specific parts of the opening and closing animations.\n */\n _updateAnimationConfig: function() {\n // Update the animation node to be the containedElement.\n var animationNode = this.containedElement;\n var animations = [].concat(this.openAnimationConfig || [])\n .concat(this.closeAnimationConfig || []);\n for (var i = 0; i < animations.length; i++) {\n animations[i].node = animationNode;\n }\n this.animationConfig = {\n open: this.openAnimationConfig,\n close: this.closeAnimationConfig\n };\n },\n\n /**\n * Updates the overlay position based on configured horizontal\n * and vertical alignment.\n */\n _updateOverlayPosition: function() {\n if (this.isAttached) {\n // This triggers iron-resize, and iron-overlay-behavior will call refit if\n // needed.\n this.notifyResize();\n }\n },\n\n /**\n * Sets scrollAction according to the value of allowOutsideScroll.\n * Prefer setting directly scrollAction.\n */\n _allowOutsideScrollChanged: function(allowOutsideScroll) {\n // Wait until initial values are all set.\n if (!this._readied) {\n return;\n }\n if (!allowOutsideScroll) {\n this.scrollAction = 'lock';\n } else if (!this.scrollAction || this.scrollAction === 'lock') {\n this.scrollAction = 'refit';\n }\n },\n\n /**\n * Apply focus to focusTarget or containedElement\n */\n _applyFocus: function() {\n var focusTarget = this.focusTarget || this.containedElement;\n if (focusTarget && this.opened && !this.noAutoFocus) {\n focusTarget.focus();\n } else {\n IronOverlayBehaviorImpl._applyFocus.apply(this, arguments);\n }\n }\n});\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\nimport '@polymer/iron-dropdown/iron-dropdown.js';\nimport '@polymer/neon-animation/animations/fade-in-animation.js';\nimport '@polymer/neon-animation/animations/fade-out-animation.js';\nimport '@polymer/paper-styles/default-theme.js';\nimport '@polymer/paper-styles/shadow.js';\nimport './paper-menu-button-animations.js';\n\nimport {IronA11yKeysBehavior} from '@polymer/iron-a11y-keys-behavior/iron-a11y-keys-behavior.js';\nimport {IronControlState} from '@polymer/iron-behaviors/iron-control-state.js';\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\n\nvar config = {\n ANIMATION_CUBIC_BEZIER: 'cubic-bezier(.3,.95,.5,1)',\n MAX_ANIMATION_TIME_MS: 400\n};\n\n/**\nMaterial design: [Dropdown\nbuttons](https://www.google.com/design/spec/components/buttons.html#buttons-dropdown-buttons)\n\n`paper-menu-button` allows one to compose a designated \"trigger\" element with\nanother element that represents \"content\", to create a dropdown menu that\ndisplays the \"content\" when the \"trigger\" is clicked.\n\nThe child element assigned to the `dropdown-trigger` slot will be used as the\n\"trigger\" element. The child element assigned to the `dropdown-content` slot\nwill be used as the \"content\" element.\n\nThe `paper-menu-button` is sensitive to its content's `iron-select` events. If\nthe \"content\" element triggers an `iron-select` event, the `paper-menu-button`\nwill close automatically.\n\nExample:\n\n \n Share\n Settings\n Help\n \n \n\n### Styling\n\nThe following custom properties and mixins are also available for styling:\n\nCustom property | Description | Default\n----------------|-------------|----------\n`--paper-menu-button-dropdown-background` | Background color of the paper-menu-button dropdown | `--primary-background-color`\n`--paper-menu-button` | Mixin applied to the paper-menu-button | `{}`\n`--paper-menu-button-disabled` | Mixin applied to the paper-menu-button when disabled | `{}`\n`--paper-menu-button-dropdown` | Mixin applied to the paper-menu-button dropdown | `{}`\n`--paper-menu-button-content` | Mixin applied to the paper-menu-button content | `{}`\n\n@demo demo/index.html\n*/\nexport const PaperMenuButton = Polymer({\n /** @override */\n _template: html`\n \n\n
    \n \n
    \n\n \n
    \n \n
    \n
    \n`,\n\n is: 'paper-menu-button',\n\n /**\n * Fired when the dropdown opens.\n *\n * @event paper-dropdown-open\n */\n\n /**\n * Fired when the dropdown closes.\n *\n * @event paper-dropdown-close\n */\n\n behaviors: [IronA11yKeysBehavior, IronControlState],\n\n properties: {\n /**\n * True if the content is currently displayed.\n */\n opened:\n {type: Boolean, value: false, notify: true, observer: '_openedChanged'},\n\n /**\n * The orientation against which to align the menu dropdown\n * horizontally relative to the dropdown trigger.\n */\n horizontalAlign: {type: String, value: 'left', reflectToAttribute: true},\n\n /**\n * The orientation against which to align the menu dropdown\n * vertically relative to the dropdown trigger.\n */\n verticalAlign: {type: String, value: 'top', reflectToAttribute: true},\n\n /**\n * If true, the `horizontalAlign` and `verticalAlign` properties will\n * be considered preferences instead of strict requirements when\n * positioning the dropdown and may be changed if doing so reduces\n * the area of the dropdown falling outside of `fitInto`.\n */\n dynamicAlign: {type: Boolean},\n\n /**\n * A pixel value that will be added to the position calculated for the\n * given `horizontalAlign`. Use a negative value to offset to the\n * left, or a positive value to offset to the right.\n */\n horizontalOffset: {type: Number, value: 0, notify: true},\n\n /**\n * A pixel value that will be added to the position calculated for the\n * given `verticalAlign`. Use a negative value to offset towards the\n * top, or a positive value to offset towards the bottom.\n */\n verticalOffset: {type: Number, value: 0, notify: true},\n\n /**\n * If true, the dropdown will be positioned so that it doesn't overlap\n * the button.\n */\n noOverlap: {type: Boolean},\n\n /**\n * Set to true to disable animations when opening and closing the\n * dropdown.\n */\n noAnimations: {type: Boolean, value: false},\n\n /**\n * Set to true to disable automatically closing the dropdown after\n * a selection has been made.\n */\n ignoreSelect: {type: Boolean, value: false},\n\n /**\n * Set to true to enable automatically closing the dropdown after an\n * item has been activated, even if the selection did not change.\n */\n closeOnActivate: {type: Boolean, value: false},\n\n /**\n * An animation config. If provided, this will be used to animate the\n * opening of the dropdown.\n */\n openAnimationConfig: {\n type: Object,\n value: function() {\n return [\n {name: 'fade-in-animation', timing: {delay: 100, duration: 200}},\n {\n name: 'paper-menu-grow-width-animation',\n timing: {\n delay: 100,\n duration: 150,\n easing: config.ANIMATION_CUBIC_BEZIER\n }\n },\n {\n name: 'paper-menu-grow-height-animation',\n timing: {\n delay: 100,\n duration: 275,\n easing: config.ANIMATION_CUBIC_BEZIER\n }\n }\n ];\n }\n },\n\n /**\n * An animation config. If provided, this will be used to animate the\n * closing of the dropdown.\n */\n closeAnimationConfig: {\n type: Object,\n value: function() {\n return [\n {name: 'fade-out-animation', timing: {duration: 150}},\n {\n name: 'paper-menu-shrink-width-animation',\n timing: {\n delay: 100,\n duration: 50,\n easing: config.ANIMATION_CUBIC_BEZIER\n }\n },\n {\n name: 'paper-menu-shrink-height-animation',\n timing: {duration: 200, easing: 'ease-in'}\n }\n ];\n }\n },\n\n /**\n * By default, the dropdown will constrain scrolling on the page\n * to itself when opened.\n * Set to true in order to prevent scroll from being constrained\n * to the dropdown when it opens.\n */\n allowOutsideScroll: {type: Boolean, value: false},\n\n /**\n * Whether focus should be restored to the button when the menu closes.\n */\n restoreFocusOnClose: {type: Boolean, value: true},\n\n /**\n * If true and scrollbars are added to the dropdown after it is positioned,\n * the size of the added scrollbars will be added to its `maxWidth` and\n * `maxHeight`.\n */\n expandSizingTargetForScrollbars: {type: Boolean, value: false},\n\n /**\n * This is the element intended to be bound as the focus target\n * for the `iron-dropdown` contained by `paper-menu-button`.\n */\n _dropdownContent: {type: Object}\n },\n\n hostAttributes: {role: 'group', 'aria-haspopup': 'true'},\n\n listeners:\n {'iron-activate': '_onIronActivate', 'iron-select': '_onIronSelect'},\n\n /**\n * The content element that is contained by the menu button, if any.\n */\n get contentElement() {\n // Polymer 2.x returns slot.assignedNodes which can contain text nodes.\n var nodes = dom(this.$.content).getDistributedNodes();\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (nodes[i].nodeType === Node.ELEMENT_NODE) {\n return nodes[i];\n }\n }\n },\n\n /**\n * Toggles the dropdown content between opened and closed.\n */\n toggle: function() {\n if (this.opened) {\n this.close();\n } else {\n this.open();\n }\n },\n\n /**\n * Make the dropdown content appear as an overlay positioned relative\n * to the dropdown trigger.\n */\n open: function() {\n if (this.disabled) {\n return;\n }\n\n this.$.dropdown.open();\n },\n\n /**\n * Hide the dropdown content.\n */\n close: function() {\n this.$.dropdown.close();\n },\n\n /**\n * When an `iron-select` event is received, the dropdown should\n * automatically close on the assumption that a value has been chosen.\n *\n * @param {CustomEvent} event A CustomEvent instance with type\n * set to `\"iron-select\"`.\n */\n _onIronSelect: function(event) {\n if (!this.ignoreSelect) {\n this.close();\n }\n },\n\n /**\n * Closes the dropdown when an `iron-activate` event is received if\n * `closeOnActivate` is true.\n *\n * @param {CustomEvent} event A CustomEvent of type 'iron-activate'.\n */\n _onIronActivate: function(event) {\n if (this.closeOnActivate) {\n this.close();\n }\n },\n\n /**\n * When the dropdown opens, the `paper-menu-button` fires `paper-open`.\n * When the dropdown closes, the `paper-menu-button` fires `paper-close`.\n *\n * @param {boolean} opened True if the dropdown is opened, otherwise false.\n * @param {boolean} oldOpened The previous value of `opened`.\n */\n _openedChanged: function(opened, oldOpened) {\n if (opened) {\n // TODO(cdata): Update this when we can measure changes in distributed\n // children in an idiomatic way.\n // We poke this property in case the element has changed. This will\n // cause the focus target for the `iron-dropdown` to be updated as\n // necessary:\n this._dropdownContent = this.contentElement;\n this.fire('paper-dropdown-open');\n } else if (oldOpened != null) {\n this.fire('paper-dropdown-close');\n }\n },\n\n /**\n * If the dropdown is open when disabled becomes true, close the\n * dropdown.\n *\n * @param {boolean} disabled True if disabled, otherwise false.\n */\n _disabledChanged: function(disabled) {\n IronControlState._disabledChanged.apply(this, arguments);\n if (disabled && this.opened) {\n this.close();\n }\n },\n\n __onIronOverlayCanceled: function(event) {\n var uiEvent = event.detail;\n var trigger = this.$.trigger;\n var path = dom(uiEvent).path;\n\n if (path.indexOf(trigger) > -1) {\n event.preventDefault();\n }\n }\n});\n\nObject.keys(config).forEach(function(key) {\n PaperMenuButton[key] = config[key];\n});\n","/**\n@license\nCopyright (c) 2014 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\n\nimport {IronA11yKeysBehavior} from '@polymer/iron-a11y-keys-behavior/iron-a11y-keys-behavior.js';\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\n\nvar Utility = {\n distance: function(x1, y1, x2, y2) {\n var xDelta = (x1 - x2);\n var yDelta = (y1 - y2);\n\n return Math.sqrt(xDelta * xDelta + yDelta * yDelta);\n },\n\n now: window.performance && window.performance.now ?\n window.performance.now.bind(window.performance) :\n Date.now\n};\n\n/**\n * @param {HTMLElement} element\n * @constructor\n */\nfunction ElementMetrics(element) {\n this.element = element;\n this.width = this.boundingRect.width;\n this.height = this.boundingRect.height;\n\n this.size = Math.max(this.width, this.height);\n}\n\nElementMetrics.prototype = {\n get boundingRect() {\n return this.element.getBoundingClientRect();\n },\n\n furthestCornerDistanceFrom: function(x, y) {\n var topLeft = Utility.distance(x, y, 0, 0);\n var topRight = Utility.distance(x, y, this.width, 0);\n var bottomLeft = Utility.distance(x, y, 0, this.height);\n var bottomRight = Utility.distance(x, y, this.width, this.height);\n\n return Math.max(topLeft, topRight, bottomLeft, bottomRight);\n }\n};\n\n/**\n * @param {HTMLElement} element\n * @constructor\n */\nfunction Ripple(element) {\n this.element = element;\n this.color = window.getComputedStyle(element).color;\n\n this.wave = document.createElement('div');\n this.waveContainer = document.createElement('div');\n this.wave.style.backgroundColor = this.color;\n this.wave.classList.add('wave');\n this.waveContainer.classList.add('wave-container');\n dom(this.waveContainer).appendChild(this.wave);\n\n this.resetInteractionState();\n}\n\nRipple.MAX_RADIUS = 300;\n\nRipple.prototype = {\n get recenters() {\n return this.element.recenters;\n },\n\n get center() {\n return this.element.center;\n },\n\n get mouseDownElapsed() {\n var elapsed;\n\n if (!this.mouseDownStart) {\n return 0;\n }\n\n elapsed = Utility.now() - this.mouseDownStart;\n\n if (this.mouseUpStart) {\n elapsed -= this.mouseUpElapsed;\n }\n\n return elapsed;\n },\n\n get mouseUpElapsed() {\n return this.mouseUpStart ? Utility.now() - this.mouseUpStart : 0;\n },\n\n get mouseDownElapsedSeconds() {\n return this.mouseDownElapsed / 1000;\n },\n\n get mouseUpElapsedSeconds() {\n return this.mouseUpElapsed / 1000;\n },\n\n get mouseInteractionSeconds() {\n return this.mouseDownElapsedSeconds + this.mouseUpElapsedSeconds;\n },\n\n get initialOpacity() {\n return this.element.initialOpacity;\n },\n\n get opacityDecayVelocity() {\n return this.element.opacityDecayVelocity;\n },\n\n get radius() {\n var width2 = this.containerMetrics.width * this.containerMetrics.width;\n var height2 = this.containerMetrics.height * this.containerMetrics.height;\n var waveRadius =\n Math.min(Math.sqrt(width2 + height2), Ripple.MAX_RADIUS) * 1.1 + 5;\n\n var duration = 1.1 - 0.2 * (waveRadius / Ripple.MAX_RADIUS);\n var timeNow = this.mouseInteractionSeconds / duration;\n var size = waveRadius * (1 - Math.pow(80, -timeNow));\n\n return Math.abs(size);\n },\n\n get opacity() {\n if (!this.mouseUpStart) {\n return this.initialOpacity;\n }\n\n return Math.max(\n 0,\n this.initialOpacity -\n this.mouseUpElapsedSeconds * this.opacityDecayVelocity);\n },\n\n get outerOpacity() {\n // Linear increase in background opacity, capped at the opacity\n // of the wavefront (waveOpacity).\n var outerOpacity = this.mouseUpElapsedSeconds * 0.3;\n var waveOpacity = this.opacity;\n\n return Math.max(0, Math.min(outerOpacity, waveOpacity));\n },\n\n get isOpacityFullyDecayed() {\n return this.opacity < 0.01 &&\n this.radius >= Math.min(this.maxRadius, Ripple.MAX_RADIUS);\n },\n\n get isRestingAtMaxRadius() {\n return this.opacity >= this.initialOpacity &&\n this.radius >= Math.min(this.maxRadius, Ripple.MAX_RADIUS);\n },\n\n get isAnimationComplete() {\n return this.mouseUpStart ? this.isOpacityFullyDecayed :\n this.isRestingAtMaxRadius;\n },\n\n get translationFraction() {\n return Math.min(\n 1, this.radius / this.containerMetrics.size * 2 / Math.sqrt(2));\n },\n\n get xNow() {\n if (this.xEnd) {\n return this.xStart + this.translationFraction * (this.xEnd - this.xStart);\n }\n\n return this.xStart;\n },\n\n get yNow() {\n if (this.yEnd) {\n return this.yStart + this.translationFraction * (this.yEnd - this.yStart);\n }\n\n return this.yStart;\n },\n\n get isMouseDown() {\n return this.mouseDownStart && !this.mouseUpStart;\n },\n\n resetInteractionState: function() {\n this.maxRadius = 0;\n this.mouseDownStart = 0;\n this.mouseUpStart = 0;\n\n this.xStart = 0;\n this.yStart = 0;\n this.xEnd = 0;\n this.yEnd = 0;\n this.slideDistance = 0;\n\n this.containerMetrics = new ElementMetrics(this.element);\n },\n\n draw: function() {\n var scale;\n var dx;\n var dy;\n\n this.wave.style.opacity = this.opacity;\n\n scale = this.radius / (this.containerMetrics.size / 2);\n dx = this.xNow - (this.containerMetrics.width / 2);\n dy = this.yNow - (this.containerMetrics.height / 2);\n\n\n // 2d transform for safari because of border-radius and overflow:hidden\n // clipping bug. https://bugs.webkit.org/show_bug.cgi?id=98538\n this.waveContainer.style.webkitTransform =\n 'translate(' + dx + 'px, ' + dy + 'px)';\n this.waveContainer.style.transform =\n 'translate3d(' + dx + 'px, ' + dy + 'px, 0)';\n this.wave.style.webkitTransform = 'scale(' + scale + ',' + scale + ')';\n this.wave.style.transform = 'scale3d(' + scale + ',' + scale + ',1)';\n },\n\n /** @param {Event=} event */\n downAction: function(event) {\n var xCenter = this.containerMetrics.width / 2;\n var yCenter = this.containerMetrics.height / 2;\n\n this.resetInteractionState();\n this.mouseDownStart = Utility.now();\n\n if (this.center) {\n this.xStart = xCenter;\n this.yStart = yCenter;\n this.slideDistance =\n Utility.distance(this.xStart, this.yStart, this.xEnd, this.yEnd);\n } else {\n this.xStart = event ?\n event.detail.x - this.containerMetrics.boundingRect.left :\n this.containerMetrics.width / 2;\n this.yStart = event ?\n event.detail.y - this.containerMetrics.boundingRect.top :\n this.containerMetrics.height / 2;\n }\n\n if (this.recenters) {\n this.xEnd = xCenter;\n this.yEnd = yCenter;\n this.slideDistance =\n Utility.distance(this.xStart, this.yStart, this.xEnd, this.yEnd);\n }\n\n this.maxRadius = this.containerMetrics.furthestCornerDistanceFrom(\n this.xStart, this.yStart);\n\n this.waveContainer.style.top =\n (this.containerMetrics.height - this.containerMetrics.size) / 2 + 'px';\n this.waveContainer.style.left =\n (this.containerMetrics.width - this.containerMetrics.size) / 2 + 'px';\n\n this.waveContainer.style.width = this.containerMetrics.size + 'px';\n this.waveContainer.style.height = this.containerMetrics.size + 'px';\n },\n\n /** @param {Event=} event */\n upAction: function(event) {\n if (!this.isMouseDown) {\n return;\n }\n\n this.mouseUpStart = Utility.now();\n },\n\n remove: function() {\n dom(dom(this.waveContainer).parentNode).removeChild(this.waveContainer);\n }\n};\n\n/**\nMaterial design: [Surface\nreaction](https://www.google.com/design/spec/animation/responsive-interaction.html#responsive-interaction-surface-reaction)\n\n`paper-ripple` provides a visual effect that other paper elements can\nuse to simulate a rippling effect emanating from the point of contact. The\neffect can be visualized as a concentric circle with motion.\n\nExample:\n\n
    \n \n
    \n\nNote, it's important that the parent container of the ripple be relative\nposition, otherwise the ripple will emanate outside of the desired container.\n\n`paper-ripple` listens to \"mousedown\" and \"mouseup\" events so it would display\nripple effect when touches on it. You can also defeat the default behavior and\nmanually route the down and up actions to the ripple element. Note that it is\nimportant if you call `downAction()` you will have to make sure to call\n`upAction()` so that `paper-ripple` would end the animation loop.\n\nExample:\n\n \n ...\n downAction: function(e) {\n this.$.ripple.downAction(e.detail);\n },\n upAction: function(e) {\n this.$.ripple.upAction();\n }\n\nStyling ripple effect:\n\n Use CSS color property to style the ripple:\n\n paper-ripple {\n color: #4285f4;\n }\n\n Note that CSS color property is inherited so it is not required to set it on\n the `paper-ripple` element directly.\n\nBy default, the ripple is centered on the point of contact. Apply the\n`recenters` attribute to have the ripple grow toward the center of its\ncontainer.\n\n \n\nYou can also center the ripple inside its container from the start.\n\n \n\nApply `circle` class to make the rippling effect within a circle.\n\n \n\n@element paper-ripple\n@demo demo/index.html\n*/\nPolymer({\n /** @override */\n _template: html`\n \n\n
    \n
    \n`,\n\n is: 'paper-ripple',\n behaviors: [IronA11yKeysBehavior],\n\n properties: {\n /**\n * The initial opacity set on the wave.\n * @type number\n * @default 0.25\n */\n initialOpacity: {type: Number, value: 0.25},\n\n /**\n * How fast (opacity per second) the wave fades out.\n *\n * @type number\n * @default 0.8\n */\n opacityDecayVelocity: {type: Number, value: 0.8},\n\n /**\n * If true, ripples will exhibit a gravitational pull towards\n * the center of their container as they fade away.\n *\n * @type boolean\n * @default false\n */\n recenters: {type: Boolean, value: false},\n\n /**\n * If true, ripples will center inside its container\n *\n * @type boolean\n * @default false\n */\n center: {type: Boolean, value: false},\n\n /**\n * A list of the visual ripples.\n *\n * @type Array\n * @default []\n */\n ripples: {\n type: Array,\n value: function() {\n return [];\n }\n },\n\n /**\n * True when there are visible ripples animating within the\n * element.\n */\n animating:\n {type: Boolean, readOnly: true, reflectToAttribute: true, value: false},\n\n /**\n * If true, the ripple will remain in the \"down\" state until `holdDown`\n * is set to false again.\n */\n holdDown: {type: Boolean, value: false, observer: '_holdDownChanged'},\n\n /**\n * If true, the ripple will not generate a ripple effect\n * via pointer interaction.\n * Calling ripple's imperative api like `simulatedRipple` will\n * still generate the ripple effect.\n */\n noink: {type: Boolean, value: false},\n\n _animating: {type: Boolean},\n\n _boundAnimate: {\n type: Function,\n value: function() {\n return this.animate.bind(this);\n }\n }\n },\n\n get target() {\n return this.keyEventTarget;\n },\n\n /**\n * @type {!Object}\n */\n keyBindings: {\n 'enter:keydown': '_onEnterKeydown',\n 'space:keydown': '_onSpaceKeydown',\n 'space:keyup': '_onSpaceKeyup'\n },\n\n /** @override */\n attached: function() {\n // Set up a11yKeysBehavior to listen to key events on the target,\n // so that space and enter activate the ripple even if the target doesn't\n // handle key events. The key handlers deal with `noink` themselves.\n if (dom(this).parentNode.nodeType == 11) { // DOCUMENT_FRAGMENT_NODE\n this.keyEventTarget = dom(this).getOwnerRoot().host;\n } else {\n this.keyEventTarget = dom(this).parentNode;\n }\n var keyEventTarget = /** @type {!EventTarget} */ (this.keyEventTarget);\n this.listen(keyEventTarget, 'up', 'uiUpAction');\n this.listen(keyEventTarget, 'down', 'uiDownAction');\n },\n\n /** @override */\n detached: function() {\n this.unlisten(this.keyEventTarget, 'up', 'uiUpAction');\n this.unlisten(this.keyEventTarget, 'down', 'uiDownAction');\n this.keyEventTarget = null;\n },\n\n get shouldKeepAnimating() {\n for (var index = 0; index < this.ripples.length; ++index) {\n if (!this.ripples[index].isAnimationComplete) {\n return true;\n }\n }\n\n return false;\n },\n\n simulatedRipple: function() {\n this.downAction(null);\n\n // Please see polymer/polymer#1305\n this.async(function() {\n this.upAction();\n }, 1);\n },\n\n /**\n * Provokes a ripple down effect via a UI event,\n * respecting the `noink` property.\n * @param {Event=} event\n */\n uiDownAction: function(event) {\n if (!this.noink) {\n this.downAction(event);\n }\n },\n\n /**\n * Provokes a ripple down effect via a UI event,\n * *not* respecting the `noink` property.\n * @param {Event=} event\n */\n downAction: function(event) {\n if (this.holdDown && this.ripples.length > 0) {\n return;\n }\n\n var ripple = this.addRipple();\n\n ripple.downAction(event);\n\n if (!this._animating) {\n this._animating = true;\n this.animate();\n }\n },\n\n /**\n * Provokes a ripple up effect via a UI event,\n * respecting the `noink` property.\n * @param {Event=} event\n */\n uiUpAction: function(event) {\n if (!this.noink) {\n this.upAction(event);\n }\n },\n\n /**\n * Provokes a ripple up effect via a UI event,\n * *not* respecting the `noink` property.\n * @param {Event=} event\n */\n upAction: function(event) {\n if (this.holdDown) {\n return;\n }\n\n this.ripples.forEach(function(ripple) {\n ripple.upAction(event);\n });\n\n this._animating = true;\n this.animate();\n },\n\n onAnimationComplete: function() {\n this._animating = false;\n this.$.background.style.backgroundColor = '';\n this.fire('transitionend');\n },\n\n addRipple: function() {\n var ripple = new Ripple(this);\n\n dom(this.$.waves).appendChild(ripple.waveContainer);\n this.$.background.style.backgroundColor = ripple.color;\n this.ripples.push(ripple);\n\n this._setAnimating(true);\n\n return ripple;\n },\n\n removeRipple: function(ripple) {\n var rippleIndex = this.ripples.indexOf(ripple);\n\n if (rippleIndex < 0) {\n return;\n }\n\n this.ripples.splice(rippleIndex, 1);\n\n ripple.remove();\n\n if (!this.ripples.length) {\n this._setAnimating(false);\n }\n },\n\n /**\n * Deprecated. Please use animateRipple() instead.\n *\n * This method name conflicts with Element#animate().\n * https://developer.mozilla.org/en-US/docs/Web/API/Element/animate.\n *\n * @suppress {checkTypes}\n * @override\n */\n animate: function() {\n if (!this._animating) {\n return;\n }\n var index;\n var ripple;\n\n for (index = 0; index < this.ripples.length; ++index) {\n ripple = this.ripples[index];\n\n ripple.draw();\n\n this.$.background.style.opacity = ripple.outerOpacity;\n\n if (ripple.isOpacityFullyDecayed && !ripple.isRestingAtMaxRadius) {\n this.removeRipple(ripple);\n }\n }\n\n if (!this.shouldKeepAnimating && this.ripples.length === 0) {\n this.onAnimationComplete();\n } else {\n window.requestAnimationFrame(this._boundAnimate);\n }\n },\n\n /**\n * An alias for animate() whose name does not conflict with the platform\n * Element.animate() method.\n */\n animateRipple: function() {\n return this.animate();\n },\n\n _onEnterKeydown: function() {\n this.uiDownAction();\n this.async(this.uiUpAction, 1);\n },\n\n _onSpaceKeydown: function() {\n this.uiDownAction();\n },\n\n _onSpaceKeyup: function() {\n this.uiUpAction();\n },\n\n // note: holdDown does not respect noink since it can be a focus based\n // effect.\n _holdDownChanged: function(newVal, oldVal) {\n if (oldVal === undefined) {\n return;\n }\n if (newVal) {\n this.downAction();\n } else {\n this.upAction();\n }\n }\n\n /**\n Fired when the animation finishes.\n This is useful if you want to wait until\n the ripple animation finishes to perform some action.\n\n @event transitionend\n @param {{node: Object}} detail Contains the animated node.\n */\n});\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\nimport '@polymer/iron-a11y-keys-behavior/iron-a11y-keys-behavior.js';\nimport '@polymer/iron-icon/iron-icon.js';\nimport '@polymer/paper-input/paper-input.js';\nimport '@polymer/paper-menu-button/paper-menu-button.js';\nimport '@polymer/paper-ripple/paper-ripple.js';\nimport '@polymer/paper-styles/default-theme.js';\nimport './paper-dropdown-menu-icons.js';\nimport './paper-dropdown-menu-shared-styles.js';\n\nimport {IronButtonState} from '@polymer/iron-behaviors/iron-button-state.js';\nimport {IronControlState} from '@polymer/iron-behaviors/iron-control-state.js';\nimport {IronFormElementBehavior} from '@polymer/iron-form-element-behavior/iron-form-element-behavior.js';\nimport {IronValidatableBehavior} from '@polymer/iron-validatable-behavior/iron-validatable-behavior.js';\nimport {LegacyElementMixin} from '@polymer/polymer/lib/legacy/legacy-element-mixin.js';\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';\nimport * as gestures from '@polymer/polymer/lib/utils/gestures.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\nimport {wrap} from '@polymer/polymer/lib/utils/wrap.js';\n\n// LegacyElementMixin dedupes and this is the base class for elements created\n// with the `Polymer` function, so this is only a cache lookup.\n// https://github.com/Polymer/polymer/blob/640bc80ac7177b761d46b2fa9c455c318f2b85c6/lib/legacy/class.js#L533-L534\nconst LegacyPolymerElementBase = LegacyElementMixin(HTMLElement);\n\n/**\nMaterial design: [Dropdown\nmenus](https://www.google.com/design/spec/components/buttons.html#buttons-dropdown-buttons)\n\n`paper-dropdown-menu` is similar to a native browser select element.\n`paper-dropdown-menu` works with selectable content. The currently selected\nitem is displayed in the control. If no item is selected, the `label` is\ndisplayed instead.\n\nExample:\n\n \n \n Croissant\n Donut\n Financier\n Madeleine\n \n \n\nThis example renders a dropdown menu with 4 options.\n\nThe child element with the slot `dropdown-content` is used as the dropdown\nmenu. This can be a [`paper-listbox`](paper-listbox), or any other or\nelement that acts like an [`iron-selector`](iron-selector).\n\nSpecifically, the menu child must fire an\n[`iron-select`](iron-selector#event-iron-select) event when one of its\nchildren is selected, and an\n[`iron-deselect`](iron-selector#event-iron-deselect) event when a child is\ndeselected. The selected or deselected item must be passed as the event's\n`detail.item` property.\n\nApplications can listen for the `iron-select` and `iron-deselect` events\nto react when options are selected and deselected.\n\n### Styling\n\nThe following custom properties and mixins are also available for styling:\n\nCustom property | Description | Default\n----------------|-------------|----------\n`--paper-dropdown-menu` | A mixin that is applied to the element host | `{}`\n`--paper-dropdown-menu-disabled` | A mixin that is applied to the element host when disabled | `{}`\n`--paper-dropdown-menu-ripple` | A mixin that is applied to the internal ripple | `{}`\n`--paper-dropdown-menu-button` | A mixin that is applied to the internal menu button | `{}`\n`--paper-dropdown-menu-input` | A mixin that is applied to the internal paper input | `{}`\n`--paper-dropdown-menu-icon` | A mixin that is applied to the internal icon | `{}`\n\nYou can also use any of the `paper-input-container` and `paper-menu-button`\nstyle mixins and custom properties to style the internal input and menu button\nrespectively.\n\n@element paper-dropdown-menu\n@demo demo/index.html\n*/\nPolymer({\n /** @override */\n _template: html`\n \n\n \n \n
    \n \n \n \n \n \n \n
    \n \n
    \n`,\n\n is: 'paper-dropdown-menu',\n\n behaviors: [\n IronButtonState,\n IronControlState,\n IronFormElementBehavior,\n IronValidatableBehavior\n ],\n\n properties: {\n /**\n * The derived \"label\" of the currently selected item. This value\n * is the `label` property on the selected item if set, or else the\n * trimmed text content of the selected item.\n */\n selectedItemLabel: {type: String, notify: true, readOnly: true},\n\n /**\n * The last selected item. An item is selected if the dropdown menu has\n * a child with slot `dropdown-content`, and that child triggers an\n * `iron-select` event with the selected `item` in the `detail`.\n *\n * @type {?Object}\n */\n selectedItem: {type: Object, notify: true, readOnly: true},\n\n /**\n * The value for this element that will be used when submitting in\n * a form. It reflects the value of `selectedItemLabel`. If set directly,\n * it will not update the `selectedItemLabel` value.\n */\n value: {\n type: String,\n notify: true,\n },\n\n /**\n * The label for the dropdown.\n */\n label: {type: String},\n\n /**\n * The placeholder for the dropdown.\n */\n placeholder: {type: String},\n\n /**\n * The error message to display when invalid.\n */\n errorMessage: {type: String},\n\n /**\n * True if the dropdown is open. Otherwise, false.\n */\n opened:\n {type: Boolean, notify: true, value: false, observer: '_openedChanged'},\n\n /**\n * By default, the dropdown will constrain scrolling on the page\n * to itself when opened.\n * Set to true in order to prevent scroll from being constrained\n * to the dropdown when it opens.\n */\n allowOutsideScroll: {type: Boolean, value: false},\n\n /**\n * Set to true to disable the floating label. Bind this to the\n * ``'s `noLabelFloat` property.\n */\n noLabelFloat: {type: Boolean, value: false, reflectToAttribute: true},\n\n /**\n * Set to true to always float the label. Bind this to the\n * ``'s `alwaysFloatLabel` property.\n */\n alwaysFloatLabel: {type: Boolean, value: false},\n\n /**\n * Set to true to disable animations when opening and closing the\n * dropdown.\n */\n noAnimations: {type: Boolean, value: false},\n\n /**\n * The orientation against which to align the menu dropdown\n * horizontally relative to the dropdown trigger.\n */\n horizontalAlign: {type: String, value: 'right'},\n\n /**\n * The orientation against which to align the menu dropdown\n * vertically relative to the dropdown trigger.\n */\n verticalAlign: {type: String, value: 'top'},\n\n /**\n * Overrides the vertical offset computed in\n * _computeMenuVerticalOffset.\n */\n verticalOffset: Number,\n\n /**\n * If true, the `horizontalAlign` and `verticalAlign` properties will\n * be considered preferences instead of strict requirements when\n * positioning the dropdown and may be changed if doing so reduces\n * the area of the dropdown falling outside of `fitInto`.\n */\n dynamicAlign: {type: Boolean},\n\n /**\n * Whether focus should be restored to the dropdown when the menu closes.\n */\n restoreFocusOnClose: {type: Boolean, value: true},\n\n /**\n * If true and scrollbars are added to the dropdown after it is positioned,\n * the size of the added scrollbars will be added to its `maxWidth` and\n * `maxHeight`.\n */\n expandSizingTargetForScrollbars: {type: Boolean, value: false},\n },\n\n listeners: {'tap': '_onTap'},\n\n /**\n * @type {!Object}\n */\n keyBindings: {'up down': 'open', 'esc': 'close'},\n\n observers: ['_selectedItemChanged(selectedItem)'],\n\n /**\n * Override `_attachDom` so that we can pass `delegatesFocus`. The overridden\n * implementation of `_attachDom` specifically skips the steps performed here\n * if the node already hosts a shadow root:\n * https://github.com/Polymer/polymer/blob/640bc80ac7177b761d46b2fa9c455c318f2b85c6/lib/mixins/element-mixin.js#L691-L694\n * @override\n */\n _attachDom(dom) {\n const wrappedThis = wrap(this);\n wrappedThis.attachShadow({\n mode: 'open',\n delegatesFocus: true,\n shadyUpgradeFragment: dom,\n });\n wrappedThis.shadowRoot.appendChild(dom);\n return LegacyPolymerElementBase.prototype._attachDom.call(this, dom);\n },\n\n /** @override */\n focus() {\n // When using Shady DOM and in browsers that don't support\n // `delegatesFocus`, attempting to focus this element with the browser's\n // native `HTMLElement#focus` will cause focus to be lost because this\n // element isn't focusable in those situations. To work around this, the\n // element in the shadow root that this element intends to delegate focus\n // to is manually focused instead.\n this.$.input._focusableElement.focus();\n },\n\n /** @override */\n attached: function() {\n // NOTE(cdata): Due to timing, a preselected value in a `IronSelectable`\n // child will cause an `iron-select` event to fire while the element is\n // still in a `DocumentFragment`. This has the effect of causing\n // handlers not to fire. So, we double check this value on attached:\n var contentElement = this.contentElement;\n if (contentElement && contentElement.selectedItem) {\n this._setSelectedItem(contentElement.selectedItem);\n }\n },\n\n /**\n * The content element that is contained by the dropdown menu, if any.\n */\n get contentElement() {\n // Polymer 2.x returns slot.assignedNodes which can contain text nodes.\n var nodes = dom(this.$.content).getDistributedNodes();\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (nodes[i].nodeType === Node.ELEMENT_NODE) {\n return nodes[i];\n }\n }\n },\n\n /**\n * Show the dropdown content.\n */\n open: function() {\n this.$.menuButton.open();\n },\n\n /**\n * Hide the dropdown content.\n */\n close: function() {\n this.$.menuButton.close();\n },\n\n /**\n * A handler that is called when `iron-select` is fired.\n *\n * @param {CustomEvent} event An `iron-select` event.\n */\n _onIronSelect: function(event) {\n this._setSelectedItem(event.detail.item);\n },\n\n /**\n * A handler that is called when `iron-deselect` is fired.\n *\n * @param {CustomEvent} event An `iron-deselect` event.\n */\n _onIronDeselect: function(event) {\n this._setSelectedItem(null);\n },\n\n /**\n * A handler that is called when the dropdown is tapped.\n *\n * @param {CustomEvent} event A tap event.\n */\n _onTap: function(event) {\n if (gestures.findOriginalTarget(event) === this) {\n this.open();\n }\n },\n\n /**\n * Compute the label for the dropdown given a selected item.\n *\n * @param {Element} selectedItem A selected Element item, with an\n * optional `label` property.\n */\n _selectedItemChanged: function(selectedItem) {\n var value = '';\n if (!selectedItem) {\n value = '';\n } else {\n value = selectedItem.label || selectedItem.getAttribute('label') ||\n selectedItem.textContent.trim();\n }\n\n this.value = value;\n this._setSelectedItemLabel(value);\n },\n\n /**\n * Compute the vertical offset of the menu based on the value of\n * `noLabelFloat`.\n *\n * @param {boolean} noLabelFloat True if the label should not float\n * @param {number=} opt_verticalOffset Optional offset from the user\n * above the input, otherwise false.\n */\n _computeMenuVerticalOffset: function(noLabelFloat, opt_verticalOffset) {\n // Override offset if it's passed from the user.\n if (opt_verticalOffset) {\n return opt_verticalOffset;\n }\n\n // NOTE(cdata): These numbers are somewhat magical because they are\n // derived from the metrics of elements internal to `paper-input`'s\n // template. The metrics will change depending on whether or not the\n // input has a floating label.\n return noLabelFloat ? -4 : 8;\n },\n\n /**\n * Returns false if the element is required and does not have a selection,\n * and true otherwise.\n * @param {*=} _value Ignored.\n * @return {boolean} true if `required` is false, or if `required` is true\n * and the element has a valid selection.\n */\n _getValidity: function(_value) {\n return this.disabled || !this.required || (this.required && !!this.value);\n },\n\n _openedChanged: function() {\n var openState = this.opened ? 'true' : 'false';\n var e = this.contentElement;\n if (e) {\n e.setAttribute('aria-expanded', openState);\n }\n }\n});\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\nimport '@polymer/iron-flex-layout/iron-flex-layout.js';\nimport '@polymer/paper-styles/default-theme.js';\nimport '@polymer/paper-styles/typography.js';\n\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';\nimport {dashToCamelCase} from '@polymer/polymer/lib/utils/case-map.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\nconst template = html`\n\n \n\n`;\ntemplate.setAttribute('style', 'display: none;');\ndocument.head.appendChild(template.content);\n\n/*\n`` is a container for a `