{"version":3,"file":"webcomponents.bundle.min.js","sources":["webpack:///webcomponents.bundle.min.js"],"sourcesContent":["!function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,\"a\",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p=\"\",i(i.s=0)}([function(t,e,n){\"use strict\";n.r(e);class s{static get isTouch(){return\"ontouchend\"in document}static get clickEvent(){return\"ontouchend\"in document?\"touchend\":\"click\"}static get tap(){return this.isTouch?\"tap\":\"click\"}static get viewport(){return{width:window.innerWidth,height:window.innerHeight}}static get isMediaTouch(){return window.innerWidth<1025}static get screenType(){var t=this.viewport.width;return t>1024?\"large\":t>640?\"medium\":\"small\"}static get guid(){var t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return t()+t()+\"-\"+t()+\"-\"+t()+\"-\"+t()+\"-\"+t()+t()+t()}static random(){for(var t=\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\",e=\"\",i=void 0===arguments[0]?16:arguments[0];i>0;--i)e+=t[Math.round(Math.random()*(t.length-1))];return e}static id(){for(var t=\"\",e=void 0===arguments[0]?16:arguments[0];e>0;--e)t+=\"0123456789\"[Math.round(Math.random()*(\"0123456789\".length-1))];return t}static isFunction(t){return t&&\"[object Function]\"==={}.toString.call(t)}static isEmptyObject(t){return 0==Object.keys(t).length}static get toast(){return document.querySelector(\"paper-toast\")}static prependArrayElement(t,e){var i=t.slice(0);return i.unshift(e),i}static prependArray(t,e){var i=t.slice(0);return e.slice(0).concat(i)}static concatArray(t,e){return t.slice(0).concat(e)}static request(t,e,i,n){let s=!0;\"get\"===(i=i.toLowerCase())||\"delete\"===i?(s=!1,e&&(t+=\"/\"+e)):\"post\"!==i&&\"put\"!==i||(e=JSON.stringify(e));var r=new XMLHttpRequest;r.open(i,encodeURI(t)),r.setRequestHeader(\"Content-Type\",\"application/json\"),r.onload=function(){if(200===r.status){let t=JSON.parse(r.response);n(null,t)}else{r.statusText;n({statusCode:r.status,message:r.statusText},null)}},s?r.send(e):r.send()}static viewportOffset(t){var e=t,i=e.offsetLeft,n=e.offsetTop;e=e.parentNode;do{var s=getComputedStyle(e);if(s){var r=s.getPropertyValue(\"position\");i-=e.scrollLeft,n-=e.scrollTop,/relative|absolute|fixed/.test(r)&&(i+=parseInt(s.getPropertyValue(\"border-left-width\"),10),n+=parseInt(s.getPropertyValue(\"border-top-width\"),10),i+=e.offsetLeft,n+=e.offsetTop),e=\"fixed\"===r?null:e.parentNode}else e=e.parentNode}while(e);return{left:i,top:n}}static parseQuery(t){var e={},n=t.split(\"?\")[1];if(void 0!==n){var s=n.split(\"&\");for(i=0;i1?e.getDate():\"0\"+e.getDate(),n=e.getMonth().toString().length>1?e.getMonth()+1:\"0\"+(e.getMonth()+1);return e.getFullYear()+\"-\"+n+\"-\"+i}static get orientationEvent(){return\"onorientationchange\"in window?\"orientationchange\":\"resize\"}static get browser(){var t,e,i,n={mozilla:!1,webkit:!1,opera:!1,msie:!1},s=navigator.userAgent;return n.name=navigator.appName,n.fullVersion=\"\"+parseFloat(navigator.appVersion),n.majorVersion=parseInt(navigator.appVersion,10),-1!=(e=s.indexOf(\"Opera\"))?(n.opera=!0,n.name=\"Opera\",n.fullVersion=s.substring(e+6),-1!=(e=s.indexOf(\"Version\"))&&(n.fullVersion=s.substring(e+8))):-1!=(e=s.indexOf(\"MSIE\"))?(n.msie=!0,n.name=\"Microsoft Internet Explorer\",n.fullVersion=s.substring(e+5)):-1!=(e=s.indexOf(\"Chrome\"))?(n.webkit=!0,n.name=\"Chrome\",n.fullVersion=s.substring(e+7)):-1!=(e=s.indexOf(\"Safari\"))?(n.webkit=!0,n.name=\"Safari\",n.fullVersion=s.substring(e+7),-1!=(e=s.indexOf(\"Version\"))&&(n.fullVersion=s.substring(e+8))):-1!=(e=s.indexOf(\"Firefox\"))?(n.mozilla=!0,n.name=\"Firefox\",n.fullVersion=s.substring(e+8)):(t=s.lastIndexOf(\" \")+1)<(e=s.lastIndexOf(\"/\"))?(n.name=s.substring(t,e),n.fullVersion=s.substring(e+1),n.name.toLowerCase()===n.name.toUpperCase()&&(n.name=navigator.appName)):-1!==s.indexOf(\"Mozilla\")&&-1===s.indexOf(\"Firefox\")&&(n.msie=!0,n.name=\"Internet Explorer\",n.fullVersion=\"11\"),-1!=(i=n.fullVersion.indexOf(\";\"))&&(n.fullVersion=n.fullVersion.substring(0,i)),-1!=(i=n.fullVersion.indexOf(\" \"))&&(n.fullVersion=n.fullVersion.substring(0,i)),n.majorVersion=parseInt(\"\"+n.fullVersion,10),isNaN(n.majorVersion)&&(n.fullVersion=\"\"+parseFloat(navigator.appVersion),n.majorVersion=parseInt(navigator.appVersion,10)),n.version=n.majorVersion,n}}customElements.define(\"app-drawer-layout\",class extends HTMLElement{constructor(){super(),this._drawer=null}connectedCallback(){this._click=s.clickEvent,setTimeout(()=>{this._setDrawerElement(),this._setToggleListener(),this._setLogoListener()},500)}_setDrawerElement(){this._drawer=this.querySelector(\"app-drawer\")}_setToggleListener(){$(this).on(this._click,\"[data-toggle]\",t=>{this._onToggleClick(t)}),s.isTouch||$(this).on(\"keypress\",\"[data-toggle]\",t=>{this._onToggleClick(t)})}_setLogoListener(){$(this).on(this._click,\"[data-logo]\",t=>{location.href=this.home}),s.isTouch||$(this).on(\"keypress\",\"[data-logo]\",t=>{location.href=this.home})}_onToggleClick(t){this._drawer.toggle()}get home(){var t=this.getAttribute(\"home\");return t||\"/\"}});customElements.define(\"app-drawer\",class extends HTMLElement{constructor(){super(),this.opened=!1,this._contentElement=null,this._enableSubmenu=!1}connectedCallback(){this._click=s.clickEvent,this._attachModalElement(),this._setProperties(),this._setMenuCloseEvent(),setTimeout(()=>{this._setContentElement(),this._enableSubmenu&&(this._setSubmenuElement(),this._setSubmenuListeners())},500)}_attachModalElement(){var t=document.createElement(\"div\");t.classList.add(\"app-drawer-modal\"),this.appendChild(t),this._setDocumentCloseEvent(t),this._setSwipeEvent()}_setProperties(){this.getAttribute(\"enable-submenu\")&&(this._enableSubmenu=!0)}_setContentElement(){this._contentElement=this.querySelector(\"app-drawer-content\"),this._contentElement.addEventListener(\"transitionend\",t=>{this.opened||(this.classList.remove(\"content-visible\"),this._contentElement.classList.remove(\"hide-main-drawer\"))})}_setSubmenuElement(){this.submenuElement=this.querySelector(\"[data-drawer-submenu]\")}_setDocumentCloseEvent(t){$(t).on(this._click,t=>{this.close()})}_setMenuCloseEvent(){var t=$(this);t.on(this._click,\"[data-drawer-close-button]\",this.close.bind(this)),s.isTouch||t.on(\"keypress\",\"[data-drawer-close-button]\",this.close.bind(this))}_setSwipeEvent(){$(this).on(\"swipeleft\",t=>{this.close()})}_setSubmenuListeners(){var t=$(this);t.on(this._click,\"[data-submenu-back-button]\",this._onSubMenuBack.bind(this)),t.on(this._click,\"[data-submenu-close-button]\",this._onSubMenuClose.bind(this)),t.on(\"click\",\"a[data-menu-id]\",this._onSubMenuRequest.bind(this)),s.isTouch||(t.on(\"keypress\",\"[data-submenu-back-button]\",this._onSubMenuBack.bind(this)),t.on(\"keypress\",\"[data-submenu-close-button]\",this._onSubMenuClose.bind(this)),t.on(\"keypress\",\"a[data-menu-id]\",this._onSubMenuRequest.bind(this)))}_onSubMenuRequest(t){var e=t.target.dataset.menuId;$(this).find(\"[data-menu]\").removeClass(\"show\"),document.querySelector('[data-menu=\"'+e+'\"]').classList.add(\"show\"),this.subMenuOpen=!0,this._contentElement.classList.add(\"hide-main-drawer\"),this.submenuElement.classList.add(\"show\"),this.submenuElement.focus()}_onSubMenuBack(t){this._contentElement.classList.remove(\"hide-main-drawer\"),this.focus()}_onSubMenuClose(t){this.submenuElement.classList.add(\"hide-menu\"),this.close()}open(){this.opened||(this.opened=!0,this.classList.add(\"open\",\"content-visible\"),this.focus(),document.body.classList.add(\"body-overflow-hidden\"))}close(){this.opened&&(this.opened=!1,this.classList.remove(\"open\"),this.blur(),document.body.classList.remove(\"body-overflow-hidden\"),this._enableSubmenu&&this.submenuElement.classList.remove(\"show\"))}toggle(){this.opened?this.close():this.open()}});customElements.define(\"app-drawer-content\",class extends HTMLElement{constructor(){super()}});customElements.define(\"app-toolbar\",class extends HTMLElement{constructor(){super(),this._revealActive=!1,this._reveal=!0,this._fixed=!1,this._threshold=60,this._touchThreshold=55,this._componentThreshold=60}connectedCallback(){this.fire=s.fireEvent,this._setProperties(),this._reveal?(this._setScrollListener(),setTimeout(()=>{this._initializeRevealState()},500)):this._setFixedScrollListener()}_setProperties(){this.getAttribute(\"fixed\")&&(this._reveal=!1,this._fixed=!0);var t=this.getAttribute(\"threshold\"),e=this.getAttribute(\"touch-threshold\");t&&(this._threshold=parseInt(t)),e&&(this._touchThreshold=parseInt(e)),s.isMediaTouch?this._componentThreshold=this._touchThreshold:this._componentThreshold=this._threshold}_initializeRevealState(){var t=window.scrollY;this._setStyle(0,0),t>this._componentThreshold&&(this._revealActive=!0,this.classList.add(\"shadow\"))}_setScrollListener(){var t=0,e=!1;window.addEventListener(\"scroll\",i=>{var n=t;t=window.scrollY,e||(window.requestAnimationFrame(()=>{this._fireEvent(t,n),this._handleScroll(n,t),e=!1}),e=!0)})}_setFixedScrollListener(){var t=0,e=!1;window.addEventListener(\"scroll\",i=>{var n=t;t=window.scrollY,e||(window.requestAnimationFrame(()=>{this._fireEvent(t,n),e=!1}),e=!0)})}_handleScroll(t,e){var i=this._componentThreshold;0===e?(this._revealActive=!1,this._setStyle(0,0),this.classList.remove(\"shadow\")):e>t&&e<=i?(this._revealActive=!1,this._setStyle(e,0),this.classList.remove(\"shadow\")):e>t?(this._revealActive=!1,this._setStyle(i,0),this.classList.remove(\"shadow\")):t>e&&e<=i&&!this._revealActive?(this._revealActive=!1,this._setStyle(e,0),this.classList.remove(\"shadow\")):t>e&&!this._revealActive&&(this._revealActive=!0,this._setStyle(0,200),this.classList.add(\"shadow\"))}_setStyle(t,e){var i=t.toString();t>0&&(i=\"-\"+t.toString()),this.style=\"transition-duration: \"+e+\"ms; transform: translate3d(0px, \"+i+\"px, 0px);\"}_fireEvent(t,e){this.fire(\"app-toolbar-scroll\",{y:t,prevY:e})}});customElements.define(\"app-header\",class extends HTMLElement{constructor(){super()}});customElements.define(\"app-layout\",class extends HTMLElement{constructor(){super()}});customElements.define(\"grid-row\",class extends HTMLElement{constructor(){super()}});customElements.define(\"grid-columns\",class extends HTMLElement{constructor(){super()}});customElements.define(\"social-buttons\",class extends HTMLElement{constructor(){super()}connectedCallback(){this.click=s.clickEvent,this._setEvents()}disconnectedCallback(){this._removeEvents()}_setEvents(){$(this).on(this.click,\"[data-id]\",this._onClick.bind(this))}_removeEvents(){$(this).off(this.click,\"[data-id]\",this._onClick.bind(this))}_onClick(t){switch(t.target.dataset.id){case\"twitter\":this._twitter();break;case\"facebook\":this._facebook();break;case\"pinterest\":this._pinterest();break;case\"google\":this._google();break;case\"linkedin\":this._linkedIn();break;case\"email\":this._email()}}_twitter(){var t=\"https://twitter.com/share?url=\"+encodeURI(this.url)+\"&text=\"+encodeURI(this.title);this._launchWindow(t)}_facebook(){var t=\"https://www.facebook.com/share.php?u=\"+encodeURI(this.url)+\"&title=\"+encodeURI(this.title);this._launchWindow(t)}_pinterest(){var t=encodeURI(this.url),e=encodeURI(this.title),i=\"https://pinterest.com/pin/create/bookmarklet/?media=\"+encodeURI(this.media)+\"&url=\"+t+\"&is_video=false&description=\"+e;this._launchWindow(i)}_google(){var t=\"https://plus.google.com/share?url=\"+encodeURI(this.url);this._launchWindow(t)}_linkedIn(){var t=\"http://www.linkedin.com/shareArticle?mini=true&url=\"+encodeURI(this.url)+\"&title=\"+encodeURI(this.title)+\"&source=\"+this._getDomainName();this._launchWindow(t)}_getDomainName(){var t=location.hostname;return t.substring(t.lastIndexOf(\".\",t.lastIndexOf(\".\")-1)+1)}_launchWindow(t){window.open(t)}get title(){return this.getAttribute(\"title\")}get url(){return this.getAttribute(\"url\")}get media(){return this.getAttribute(\"media\")}});customElements.define(\"md-input\",class extends HTMLElement{constructor(){super(),this._css=\"\",this._label=null,this._leftIcon=null,this._rightIcon=null,this._placeholder=\"\",this._id=null,this._name=null,this._defaultValue=\"\",this._required=!1,this._type=\"text\",this._disableKeyPressEvent=!1,this._iconPointer=!1,this._readOnly=!1,this._disabled=!1,this._onKeyPress=this._onKeyPress.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onChange=this._onChange.bind(this),this._onIconClick=this._onIconClick.bind(this)}static get observedAttributes(){return[\"value\",\"placeholder\",\"readonly\",\"disabled\"]}connectedCallback(){var t;this.fire=s.fireEvent,this.click=s.clickEvent,this._setProperties(),t=this._leftIcon?this._getDomWithLeftIconString(this._type,this._label,this._css,this._placeholder,this._id,this._name,this._defaultValue,this._required,this._leftIcon):this._rightIcon?this._getDomWithRightIconString(this._type,this._label,this._css,this._placeholder,this._id,this._name,this._defaultValue,this._required,this._rightIcon):this._getDomString(this._type,this._label,this._css,this._placeholder,this._id,this._name,this._defaultValue,this._required),this._attachToDom(t),this._setEvents()}attributeChangedCallback(t,e,i){this.input&&e&&(this.input.setAttribute(t,i),\"readonly\"!==t&&\"disabled\"!==t||\"false\"!==i&&!1!==i||this.input.removeAttribute(t))}disconnectedCallback(){this._removeEvents()}_setProperties(){var t=\"input-\"+s.id(4),e=this.getAttribute(\"left-icon\"),i=this.getAttribute(\"right-icon\"),n=this.getAttribute(\"input-class\"),r=this.getAttribute(\"label\"),o=this.getAttribute(\"placeholder\"),a=this.getAttribute(\"icon-pointer\"),l=this.getAttribute(\"title\");l||(l=\"input\"),this._title=l;var h=this.dataset.id,d=this.dataset.name,c=this.getAttribute(\"value\"),u=this.getAttribute(\"disable-keypress-event\"),p=this.getAttribute(\"required\"),_=this.getAttribute(\"type\");e?this._leftIcon=e:i&&(this._rightIcon=i),n&&(this._css=n),r&&(this._label=r),o&&(this._placeholder=o),this._id=h||t,this._name=d||t,c&&(this._defaultValue=c),u&&(this._disableKeyPressEvent=!0),p&&(this._required=!0),_&&(this._type=_),a&&(this._iconPointer=!0),this.getAttribute(\"readonly\")&&(this._readOnly=!0),this.getAttribute(\"disabled\")&&(this._disabled=!0)}_setEvents(){var t=this._onKeyPress,e=this._onFocus,i=this._onBlur,n=this._onChange,s=this._onIconClick,r=this.input;this.disableKeyPressEvent||r.addEventListener(\"keypress\",t),r.addEventListener(\"focus\",e),r.addEventListener(\"blur\",i),r.addEventListener(\"change\",n),this.icon&&this.icon.addEventListener(this.click,s)}_removeEvents(){var t=this._onKeyPress,e=this._onFocus,i=this._onBlur,n=this._onChange,s=this._onIconClick,r=this.input;r&&(this.disableKeyPressEvent||r.removeEventListener(\"keypress\",t),r.removeEventListener(\"focus\",e),r.removeEventListener(\"blur\",i),r.removeEventListener(\"change\",n),this.icon&&this.icon.removeEventListener(this.click,s))}_getDomString(t,e,i,n,s,r,o,a){a=\"\";var l=\"\",h=\"\";this._required&&(a=\"required\"),this._readOnly&&(l=\" readonly \"),this._disabled&&(h=\" disabled\"),n||(n=\" \");var d=this._title;return e?'
\":'
'}_getDomWithRightIconString(t,e,i,n,s,r,o,a,l){return i=\"icon \"+i,'
'+this._getDomString(t,e,i,n,s,r,o,a)+''+l+\"
\"}_getDomWithLeftIconString(t,e,i,n,s,r,o,a,l){return i=\"icon \"+i,'
'+l+\"\"+this._getDomString(t,e,i,n,s,r,o,a)+\"
\"}_attachToDom(t){var e=$(t);$(this).append(e),this.input=this.querySelector(\"input\"),this._iconPointer&&(this.icon=this.querySelector(\"i\"),this.icon&&(this.icon.style.cursor=\"pointer\"))}_onKeyPress(t){if(13==t.charCode||0==t.charCode){var e=t.target.value;t.preventDefault(),this.fire(\"md-input-enter\",{value:e,target:this,name:this._name,id:this._id})}}_onIconClick(t){var e=this.value;this.fire(\"md-input-click\",{value:e,target:this,name:this._name,id:this._id})}_onFocus(t){this.fire(\"md-input-focus\",{target:this,name:this._name,id:this._id})}_onBlur(t){this.fire(\"md-input-blur\",{target:this,name:this._name,id:this._id})}_onChange(t){this.fire(\"md-input-change\",{value:t.target.value,target:this,name:this._name,id:this._id})}get value(){return this.input.value}set value(t){this.input.value=t,this.setAttribute(\"value\",t)}get readonly(){return this.input.getAttribute(\"readonly\")}set readonly(t){t?this.input.setAttribute(\"readonly\",\"true\"):this.input.removeAttribute(\"readonly\")}get disabled(){return this.input.getAttribute(\"disabled\")}set disabled(t){t?this.input.setAttribute(\"disabled\",\"true\"):this.input.removeAttribute(\"disabled\")}clear(){this.input.value=\"\"}focus(){this.input.focus()}blur(){this.input.blur()}});customElements.define(\"md-textarea\",class extends HTMLElement{constructor(){super(),this._css=\"\",this._label=null,this._placeholder=\"\",this._id=null,this._name=null,this._defaultValue=\"\",this._required=!1,this._disableKeyPressEvent=!1,this._readOnly=!1,this._disabled=!1,this._onKeyPress=this._onKeyPress.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onChange=this._onChange.bind(this)}static get observedAttributes(){return[\"value\",\"placeholder\",\"readonly\",\"disabled\"]}connectedCallback(){this.fire=s.fireEvent,this._setProperties();var t=this._getDomString(this._label,this._css,this._placeholder,this._id,this._name,this._defaultValue,this._required);this._attachToDom(t),this._setEvents()}attributeChangedCallback(t,e,i){this.textarea&&e&&(this.textarea.setAttribute(t,i),\"readonly\"!==t&&\"disabled\"!==t||\"false\"!==i&&!1!==i||this.textarea.removeAttribute(t))}_setProperties(){var t=\"input-\"+s.id(4),e=this.getAttribute(\"input-class\"),i=this.getAttribute(\"label\"),n=this.getAttribute(\"placeholder\"),r=this.dataset.id,o=this.dataset.name,a=this.getAttribute(\"value\"),l=this.getAttribute(\"disable-keypress-event\"),h=this.getAttribute(\"required\");e&&(this._css=e),i&&(this._label=i),n&&(this._placeholder=n),this._id=r||t,this._name=o||t,a&&(this._defaultValue=a),l&&(this._disableKeyPressEvent=!0),h&&(this._required=!0),this.getAttribute(\"readonly\")&&(this._readOnly=!0),this.getAttribute(\"disabled\")&&(this._disabled=!0)}_setEvents(){var t=this._onKeyPress,e=this._onFocus,i=this._onBlur,n=this._onChange,s=this.textarea;this.disableKeyPressEvent||s.addEventListener(\"keypress\",t),s.addEventListener(\"focus\",e),s.addEventListener(\"blur\",i),s.addEventListener(\"change\",n)}_removeEvents(){var t=this._onKeyPress,e=this._onFocus,i=this._onBlur,n=this._onChange,s=this.textarea;this.disableKeyPressEvent||s.addEventListener(\"keypress\",t),s.addEventListener(\"focus\",e),s.addEventListener(\"blur\",i),s.addEventListener(\"change\",n)}_getDomString(t,e,i,n,s,r,o){o=\"\";var a=\"\",l=\"\";return this._required&&(o=\"required\"),this._readOnly&&(a=\" readonly \"),this._disabled&&(l=\" disabled\"),i||(i=\" \"),t?'
\":'
'}_attachToDom(t){var e=$(t);$(this).append(e),this.textarea=this.querySelector(\"textarea\")}_onKeyPress(t){if(13==t.charCode||0==t.charCode){var e=t.target.value;t.preventDefault(),this.fire(\"md-textarea-enter\",{value:e,target:this})}}_onFocus(t){this.fire(\"md-textarea-focus\",{target:this})}_onBlur(t){this.fire(\"md-textarea-blur\",{target:this})}_onChange(t){this.fire(\"md-textarea-change\",{value:t.target.value,target:this})}get value(){return this.textarea.value}set value(t){this.textarea.value=t,this.setAttribute(\"value\",t)}get readonly(){return this.input.getAttribute(\"readonly\")}set readonly(t){t?this.input.setAttribute(\"readonly\",\"true\"):this.input.removeAttribute(\"readonly\")}get disabled(){return this.input.getAttribute(\"disabled\")}set disabled(t){t?this.input.setAttribute(\"disabled\",\"true\"):this.input.removeAttribute(\"disabled\")}clear(){this.textarea.value=\"\"}});customElements.define(\"md-select\",class extends HTMLElement{constructor(){super(),this.select=null,this._onChange=this._onChange.bind(this)}static get observedAttributes(){return[\"value\",\"readonly\",\"disabled\"]}connectedCallback(){this.fire=s.fireEvent,setTimeout(()=>{this._setEvents()},750)}disconnectedCallback(){this._removeEvents()}attributeChangedCallback(t,e,i){this.select&&e&&(this.select.setAttribute(t,i),\"readonly\"!==t&&\"disabled\"!==t||\"false\"!==i&&!1!==i||this.select.removeAttribute(t))}_setEvents(){var t=this._onChange,e=this.querySelector(\"select\");this.select=e,e.addEventListener(\"change\",t)}_removeEvents(){var t=this._onChange;this.select.removeEventListener(\"change\",t)}_onChange(t){this.select.classList.remove(\"placeholder-color\"),this.fire(\"md-select-change\",{value:t.target.value,target:this})}get value(){return this.select.value}set value(t){this.select.value=t,this.setAttribute(\"value\",t)}clear(){this.select.value=\"\"}});customElements.define(\"md-state-select\",class extends HTMLElement{constructor(){super(),this._id=null,this._name=null,this._defaultValue=null,this._required=!1,this._onChange=this._onChange.bind(this)}static get observedAttributes(){return[\"value\",\"readonly\",\"disabled\"]}connectedCallback(){this.fire=s.fireEvent,this._setProperties(),this._attachToDom(),this._setEvents(),this._initializeValue()}disconnectedCallback(){this._removeEvents()}attributeChangedCallback(t,e,i){this.select&&e&&(this.select.setAttribute(t,i),\"readonly\"!==t&&\"disabled\"!==t||\"false\"!==i&&!1!==i||this.select.removeAttribute(t))}_setProperties(){var t=this.dataset.id,e=this.dataset.name,i=this.getAttribute(\"value\"),n=this.getAttribute(\"required\");this._id=t||\"state\",this._name=e||\"state\",i&&(this._defaultValue=i),n&&(this._required=!0)}_setEvents(){var t=this._onChange,e=this.querySelector(\"select\");this.select=e,e.addEventListener(\"change\",t)}_removeEvents(){var t=this._onChange;this.select.removeEventListener(\"change\",t)}_initializeValue(){this._defaultValue&&(this.select.value=this._defaultValue,this.select.classList.remove(\"placeholder-color\"))}_onChange(t){this.select.classList.remove(\"placeholder-color\"),this.fire(\"md-state-select-change\",{value:t.target.value,target:this})}_attachToDom(){var t='
',e=\"\";this._required&&(e=\" required\"),t+='\",t+='keyboard_arrow_down',t+='',t+=\"
\";var i=$(t);$(this).append(i),this.select=this.querySelector(\"select\")}_getOptions(){return''}get value(){return this.select.value}set value(t){this.select.value=t,this.setAttribute(\"value\",t)}clear(){this.select.value=\"\"}});customElements.define(\"md-checkbox\",class extends HTMLElement{constructor(){super(),this._id=null,this._name=null,this._defaultChecked=!1,this._disabled=!1,this._required=!1,this._label=null,this._onChange=this._onChange.bind(this)}static get observedAttributes(){return[\"value\",\"checked\",\"readonly\",\"disabled\"]}connectedCallback(){this.fire=s.fireEvent,this._setProperties(),this._attachDom(),this._setEvents()}disconnectedCallback(){this._removeEvents()}attributeChangedCallback(t,e,i){this.checkbox&&e&&(this.checkbox.setAttribute(t,i),\"readonly\"!==t&&\"disabled\"!==t||\"false\"!==i&&!1!==i||this.checkbox.removeAttribute(t))}_setProperties(){var t=\"ck-\"+s.id(4),e=this.dataset.id,i=this.dataset.name,n=this.getAttribute(\"checked\"),r=this.getAttribute(\"required\"),o=this.getAttribute(\"disabled\");this._id=e||t,this._name=i||t,n&&\"false\"!==n&&(this._defaultChecked=!0),o&&\"false\"!==o&&(this._disabled=!0),r&&(this._required=!0)}_setEvents(){var t=this._onChange;this.checkbox.addEventListener(\"change\",t)}_removeEvents(){var t=this._onChange;this.checkbox.removeEventListener(\"change\",t)}_onChange(t){this.fire(\"md-checkbox-change\",{checked:t.target.checked,value:t.target.value,target:this,name:this._name,id:this._id})}_attachDom(){var t=this._id,e=this._name,i=\"\";this._required&&(i=\"required\");var n=\"\";this._defaultChecked&&(n=\" checked\");var s=\"\";this._disabled&&(s=\" disabled\");var r=this.label,o=\"\";o+='\";var a=$(o);$(this).append(a),this.checkbox=this.querySelector(\"input\"),this._label=this.querySelector(\"label\")}get checked(){return this.checkbox.checked}set checked(t){this.checkbox.checked=t}get label(){return this.getAttribute(\"label\")}set label(t){this.setAttribute(\"label\",t),this._label.innerHTML=t}});customElements.define(\"md-radio\",class extends HTMLElement{constructor(){super(),this._id=null,this._name=null,this._defaultChecked=!1,this._required=!1,this._disabled=!1,this._label=null,this._value=null,this._onChange=this._onChange.bind(this)}static get observedAttributes(){return[\"value\",\"checked\",\"readonly\",\"disabled\"]}connectedCallback(){this.fire=s.fireEvent,this._setProperties(),this._attachDom(),this._setEvents()}disconnectedCallback(){this._removeEvents()}attributeChangedCallback(t,e,i){this.radio&&e&&(this.radio.setAttribute(t,i),\"readonly\"!==t&&\"disabled\"!==t||\"false\"!==i&&!1!==i||this.radio.removeAttribute(t))}_setProperties(){var t=\"ck-\"+s.id(4),e=this.dataset.id,i=this.dataset.name,n=this.getAttribute(\"checked\"),r=this.getAttribute(\"required\"),o=this.getAttribute(\"disabled\"),a=this.getAttribute(\"value\");this._id=e||t,this._name=i||t,n&&(this._defaultChecked=!0),o&&\"false\"!==o&&(this._disabled=!0),r&&(this._required=!0),a&&(this._value=a)}_setEvents(){var t=this._onChange;this.radio.addEventListener(\"change\",t)}_removeEvents(){var t=this._onChange;this.radio.removeEventListener(\"change\",t)}_onChange(t){this.fire(\"md-radio-change\",{checked:t.target.checked,value:t.target.value,target:this,name:this._name,id:this._id})}_attachDom(){var t=this._id,e=this._name,i=this.label,n=\"\";this._required&&(n=\"required\");var s=\"\";this._defaultChecked&&(s=\" checked\");var r=\"\";this._disabled&&(r=\" disabled \");var o=\"\";this._value&&(o=' value=\"'+this._value+'\"');var a=\"\";a+='\";var l=$(a);$(this).append(l),this.radio=this.querySelector(\"input\"),this._label=this.querySelector(\"label\")}get checked(){return this.radio.checked}set checked(t){this.radio.checked=t}get value(){return this.radio.value}set value(t){this.radio.value=t}get label(){return this.getAttribute(\"label\")}set label(t){this.setAttribute(\"label\",t),this._label.innerHTML=t}});customElements.define(\"md-radio-list\",class extends HTMLElement{constructor(){super()}});\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nconst r=!(window.ShadyDOM&&window.ShadyDOM.inUse);let o,a;function l(t){o=(!t||!t.shimcssproperties)&&(r||Boolean(!navigator.userAgent.match(/AppleWebKit\\/601|Edge\\/15/)&&window.CSS&&CSS.supports&&CSS.supports(\"box-shadow\",\"0 0 0 var(--foo)\")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(a=window.ShadyCSS.cssBuild);const h=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?o=window.ShadyCSS.nativeCss:window.ShadyCSS?(l(window.ShadyCSS),window.ShadyCSS=void 0):l(window.WebComponents&&window.WebComponents.flags);const d=o;\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/class c{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText=\"\",this.cssText=\"\",this.atRule=!1,this.type=0,this.keyframesName=\"\",this.selector=\"\",this.parsedSelector=\"\"}}function u(t){return function t(e,i){let n=i.substring(e.start,e.end-1);e.parsedCssText=e.cssText=n.trim();if(e.parent){let t=e.previous?e.previous.end:e.parent.start;n=(n=(n=function(t){return t.replace(/\\\\([0-9a-f]{1,6})\\s/gi,function(){let t=arguments[1],e=6-t.length;for(;e--;)t=\"0\"+t;return\"\\\\\"+t})}(n=i.substring(t,e.start-1))).replace(g.multipleSpaces,\" \")).substring(n.lastIndexOf(\";\")+1);let s=e.parsedSelector=e.selector=n.trim();e.atRule=0===s.indexOf(b),e.atRule?0===s.indexOf(y)?e.type=_.MEDIA_RULE:s.match(g.keyframesRule)&&(e.type=_.KEYFRAMES_RULE,e.keyframesName=e.selector.split(g.multipleSpaces).pop()):0===s.indexOf(v)?e.type=_.MIXIN_RULE:e.type=_.STYLE_RULE}let s=e.rules;if(s)for(let e,n=0,r=s.length;n2&&void 0!==arguments[2]?arguments[2]:\"\",n=\"\";if(t.cssText||t.rules){let i=t.rules;if(i&&!function(t){let e=t[0];return Boolean(e)&&Boolean(e.selector)&&0===e.selector.indexOf(v)}(i))for(let t,s=0,r=i.length;s1&&void 0!==arguments[1]?arguments[1]:\"\",i=P(t);return this.transformRules(i,e),t.textContent=T(i),i}transformCustomStyle(t){let e=P(t);return I(e,t=>{\":root\"===t.selector&&(t.selector=\"html\"),this.transformRule(t)}),t.textContent=T(e),e}transformRules(t,e){this._currentElement=e,I(t,t=>{this.transformRule(t)}),this._currentElement=null}transformRule(t){t.cssText=this.transformCssText(t.parsedCssText,t),\":root\"===t.selector&&(t.selector=\":host > *\")}transformCssText(t,e){return t=t.replace(w,(t,i,n,s)=>this._produceCssProperties(t,i,n,s,e)),this._consumeCssProperties(t,e)}_getInitialValueForProperty(t){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(t)}_fallbacksFromPreviousRules(t){let e=t;for(;e.parent;)e=e.parent;const i={};let n=!1;return I(e,e=>{(n=n||e===t)||e.selector===t.selector&&Object.assign(i,this._cssTextToMap(e.parsedCssText))}),i}_consumeCssProperties(t,e){let i=null;for(;i=x.exec(t);){let n=i[0],s=i[1],r=i.index,o=r+n.indexOf(\"@apply\"),a=r+n.length,l=t.slice(0,o),h=t.slice(a),d=e?this._fallbacksFromPreviousRules(e):{};Object.assign(d,this._cssTextToMap(l));let c=this._atApplyToCssProperties(s,d);t=\"\".concat(l).concat(c).concat(h),x.lastIndex=r+c.length}return t}_atApplyToCssProperties(t,e){t=t.replace(F,\"\");let i=[],n=this._map.get(t);if(n||(this._map.set(t,{}),n=this._map.get(t)),n){let s,r,o;this._currentElement&&(n.dependants[this._currentElement]=!0);const a=n.properties;for(s in a)o=e&&e[s],r=[s,\": var(\",t,H,s],o&&r.push(\",\",o.replace(B,\"\")),r.push(\")\"),B.test(a[s])&&r.push(\" !important\"),i.push(r.join(\"\"))}return i.join(\"; \")}_replaceInitialOrInherit(t,e){let i=D.exec(e);return i&&(e=i[1]?this._getInitialValueForProperty(t):\"apply-shim-inherit\"),e}_cssTextToMap(t){let e,i,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=t.split(\";\"),r={};for(let t,o,a=0;a1&&(e=o[0].trim(),i=o.slice(1).join(\":\"),n&&(i=this._replaceInitialOrInherit(e,i)),r[e]=i);return r}_invalidateMixinEntry(t){if(j)for(let e in t.dependants)e!==this._currentElement&&j(e)}_produceCssProperties(t,e,i,n,s){if(i&&function t(e,i){let n=e.indexOf(\"var(\");if(-1===n)return i(e,\"\",\"\",\"\");let s=O(e,n+3),r=e.substring(n+4,s),o=e.substring(0,n),a=t(e.substring(s+1),i),l=r.indexOf(\",\");return-1===l?i(o,r.trim(),\"\",a):i(o,r.substring(0,l).trim(),r.substring(l+1).trim(),a)}(i,(t,e)=>{e&&this._map.get(e)&&(n=\"@apply \".concat(e,\";\"))}),!n)return t;let r=this._consumeCssProperties(\"\"+n,s),o=t.slice(0,t.indexOf(\"--\")),a=this._cssTextToMap(r,!0),l=a,h=this._map.get(e),d=h&&h.properties;d?l=Object.assign(Object.create(d),a):this._map.set(e,l);let c,u,p=[],_=!1;for(c in l)void 0===(u=a[c])&&(u=\"initial\"),!d||c in d||(_=!0),p.push(\"\".concat(e).concat(H).concat(c,\": \").concat(u));return _&&this._invalidateMixinEntry(h),h&&(h.properties=l),i&&(o=\"\".concat(t,\";\").concat(o)),\"\".concat(o).concat(p.join(\"; \"),\";\")}}q.prototype.detectMixin=q.prototype.detectMixin,q.prototype.transformStyle=q.prototype.transformStyle,q.prototype.transformCustomStyle=q.prototype.transformCustomStyle,q.prototype.transformRules=q.prototype.transformRules,q.prototype.transformRule=q.prototype.transformRule,q.prototype.transformTemplate=q.prototype.transformTemplate,q.prototype._separator=H,Object.defineProperty(q.prototype,\"invalidCallback\",{get:()=>j,set(t){j=t}});var K=q;\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/var U={};\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/const W=\"_applyShimCurrentVersion\",Y=\"_applyShimNextVersion\",Z=\"_applyShimValidatingVersion\",J=Promise.resolve();function X(t){let e=U[t];e&&function(t){t[W]=t[W]||0,t[Z]=t[Z]||0,t[Y]=(t[Y]||0)+1}(e)}function G(t){return t[W]===t[Y]}function Q(t){return!G(t)&&t[Z]===t[Y]}function tt(t){t[Z]=t[Y],t._validating||(t._validating=!0,J.then(function(){t[W]=t[Y],t._validating=!1}))}\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nlet et,it=null,nt=window.HTMLImports&&window.HTMLImports.whenReady||null;function st(t){requestAnimationFrame(function(){nt?nt(t):(it||(it=new Promise(t=>{et=t}),\"complete\"===document.readyState?et():document.addEventListener(\"readystatechange\",()=>{\"complete\"===document.readyState&&et()})),it.then(function(){t&&t()}))})}\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/const rt=\"__seenByShadyCSS\",ot=\"__shadyCSSCachedStyle\";let at=null,lt=null;class ht{constructor(){this.customStyles=[],this.enqueued=!1,st(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&<&&(this.enqueued=!0,st(lt))}addCustomStyle(t){t[rt]||(t[rt]=!0,this.customStyles.push(t),this.enqueueDocumentValidation())}getStyleForCustomStyle(t){if(t[ot])return t[ot];let e;return e=t.getStyle?t.getStyle():t}processStyles(){const t=this.customStyles;for(let e=0;eat,set(t){at=t}},validateCallback:{get:()=>lt,set(t){let e=!1;lt||(e=!0),lt=t,e&&this.enqueueDocumentValidation()}}});\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nconst dt=new K;class ct{constructor(){this.customStyleInterface=null,dt.invalidCallback=X}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=t=>{dt.transformCustomStyle(t)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(t,e){if(this.ensure(),L(t))return;U[e]=t;let i=dt.transformTemplate(t,e);t._styleAst=i}flushCustomStyles(){if(this.ensure(),!this.customStyleInterface)return;let t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let e=0;e-1?i=e:(n=e,i=t.getAttribute&&t.getAttribute(\"is\")||\"\"):(i=t.is,n=t.extends),{is:i,typeExtension:n}}(t),i=U[e];if((!i||!L(i))&&i&&!G(i)){Q(i)||(this.prepareTemplate(i,e),tt(i));let n=t.shadowRoot;if(n){let t=n.querySelector(\"style\");t&&(t.__cssRules=i._styleAst,t.textContent=T(i._styleAst))}}}styleDocument(t){this.ensure(),this.styleSubtree(document.body,t)}}if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const t=new ct;let e=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,i,n){t.flushCustomStyles(),t.prepareTemplate(e,i)},prepareTemplateStyles(t,e,i){window.ShadyCSS.prepareTemplate(t,e,i)},prepareTemplateDom(t,e){},styleSubtree(e,i){t.flushCustomStyles(),t.styleSubtree(e,i)},styleElement(e){t.flushCustomStyles(),t.styleElement(e)},styleDocument(e){t.flushCustomStyles(),t.styleDocument(e)},getComputedStyleValue:(t,e)=>z(t,e),flushCustomStyles(){t.flushCustomStyles()},nativeCss:d,nativeShadow:r,cssBuild:a,disableRuntime:h},e&&(window.ShadyCSS.CustomStyleInterface=e)}window.ShadyCSS.ApplyShim=dt,\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nwindow.JSCompiler_renameProperty=function(t,e){return t};\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nlet ut,pt,_t=/(url\\()([^)]*)(\\))/g,ft=/(^\\/[^\\/])|(^#)|(^[\\w-\\d]*:)/;function mt(t,e){if(t&&ft.test(t))return t;if(\"//\"===t)return t;if(void 0===ut){ut=!1;try{const t=new URL(\"b\",\"http://a\");t.pathname=\"c%20d\",ut=\"http://a/c%20d\"===t.href}catch(t){}}if(e||(e=document.baseURI||window.location.href),ut)try{return new URL(t,e).href}catch(e){return t}return pt||((pt=document.implementation.createHTMLDocument(\"temp\")).base=pt.createElement(\"base\"),pt.head.appendChild(pt.base),pt.anchor=pt.createElement(\"a\"),pt.body.appendChild(pt.anchor)),pt.base.href=e,pt.anchor.href=t,pt.anchor.href||t}function gt(t,e){return t.replace(_t,function(t,i,n,s){return i+\"'\"+mt(n.replace(/[\"']/g,\"\"),e)+\"'\"+s})}function vt(t){return t.substring(0,t.lastIndexOf(\"/\")+1)}\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/const yt=!window.ShadyDOM;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),window.customElements.polyfillWrapFlushCallback;let bt=vt(document.baseURI||window.location.href);let wt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;let xt=!1;let Ct=!1;let St=!1;let Et=!1;let kt=!1;let At=!0;\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nlet Tt=0;function Pt(){}Pt.prototype.__mixinApplications,Pt.prototype.__mixinSet;const It=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let i=Tt++;function n(n){let s=n.__mixinSet;if(s&&s[i])return n;let r=e,o=r.get(n);o||(o=t(n),r.set(n,o));let a=Object.create(o.__mixinSet||s||null);return a[i]=!0,o.__mixinSet=a,o}return n};\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/let Ot={},Nt={};function Mt(t,e){Ot[t]=Nt[t.toLowerCase()]=e}function Lt(t){return Ot[t]||Nt[t.toLowerCase()]}class Rt extends HTMLElement{static get observedAttributes(){return[\"id\"]}static import(t,e){if(t){let i=Lt(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,n){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=mt(this.getAttribute(\"assetpath\")||\"\",t.baseURI);this.__assetpath=vt(e)}return this.__assetpath}register(t){if(t=t||this.id){if(Ct&&void 0!==Lt(t))throw Mt(t,null),new Error(\"strictTemplatePolicy: dom-module \".concat(t,\" re-registered\"));this.id=t,Mt(t,this),(e=this).querySelector(\"style\")&&console.warn(\"dom-module %s has style outside template\",e.id)}var e}}Rt.prototype.modules=Ot,customElements.define(\"dom-module\",Rt);\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nconst zt=\"link[rel=import][type~=css]\",Ft=\"include\",Dt=\"shady-unscoped\";function Bt(t){return Rt.import(t)}function Ht(t){const e=gt((t.body?t.body:t).textContent,t.baseURI),i=document.createElement(\"style\");return i.textContent=e,i}function Vt(t){const e=t.trim().split(/\\s+/),i=[];for(let t=0;tShadyDOM.patch(t):t=>t;\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/function Yt(t){return t.indexOf(\".\")>=0}function Zt(t){let e=t.indexOf(\".\");return-1===e?t:t.slice(0,e)}function Jt(t,e){return 0===t.indexOf(e+\".\")}function Xt(t,e){return 0===e.indexOf(t+\".\")}function Gt(t,e,i){return e+i.slice(t.length)}function Qt(t){if(Array.isArray(t)){let e=[];for(let i=0;i1){for(let t=0;tt[1].toUpperCase()))}function ae(t){return ne[t]||(ne[t]=t.replace(re,\"-$1\").toLowerCase())}\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/let le=0,he=0,de=[],ce=0,ue=document.createTextNode(\"\");new window.MutationObserver(function(){const t=de.length;for(let e=0;e{throw t})}}de.splice(0,t),he+=t}).observe(ue,{characterData:!0});const pe={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},_e={run:t=>(ue.textContent=ce++,de.push(t),le++),cancel(t){const e=t-he;if(e>=0){if(!de[e])throw new Error(\"invalid async handle: \"+t);de[e]=null}}},fe=_e,me=It(t=>{return class extends t{static createProperties(t){const e=this.prototype;for(let i in t)i in e||e._createPropertyAccessor(i)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(\"__dataHasAccessor\")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){if(this.hasOwnProperty(\"__dataAttributes\")||(this.__dataAttributes=Object.assign({},this.__dataAttributes)),!this.__dataAttributes[t]){const e=this.constructor.attributeNameForProperty(t);this.__dataAttributes[e]=t}}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this._getProperty(t)},set:e?function(){}:function(e){this._setProperty(t,e)}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,i){let n=this.__data[t],s=this._shouldPropertyChange(t,e,n);return s&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||t in this.__dataOld||(this.__dataOld[t]=n),this.__data[t]=e,this.__dataPending[t]=e),s}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,fe.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){const t=this.__data,e=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(t,e,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,i))}_shouldPropertiesChange(t,e,i){return Boolean(e)}_propertiesChanged(t,e,i){}_shouldPropertyChange(t,e,i){return i!==e&&(i==i||e==e)}attributeChangedCallback(t,e,i,n){e!==i&&this._attributeToProperty(t,i),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,i,n)}_attributeToProperty(t,e,i){if(!this.__serializing){const n=this.__dataAttributes,s=n&&n[t]||t;this[s]=this._deserializeValue(e,i||this.constructor.typeForProperty(s))}}_propertyToAttribute(t,e,i){this.__serializing=!0,i=arguments.length<3?this[t]:i,this._valueToNodeAttribute(this,i,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,i){const n=this._serializeValue(e);\"class\"!==i&&\"name\"!==i&&\"slot\"!==i||(t=Wt(t)),void 0===n?t.removeAttribute(i):t.setAttribute(i,n)}_serializeValue(t){switch(typeof t){case\"boolean\":return t?\"\":void 0;default:return null!=t?t.toString():void 0}}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}}}),ge={};let ve=HTMLElement.prototype;for(;ve;){let t=Object.getOwnPropertyNames(ve);for(let e=0;e{const e=me(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e{return class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let i=t._templateInfo={};i.nodeInfoList=[],i.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute(\"strip-whitespace\"),this._parseTemplateContent(t,i,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,i){return this._parseTemplateNode(t.content,e,i)}static _parseTemplateNode(t,e,i){let n=!1,s=t;return\"template\"!=s.localName||s.hasAttribute(\"preserve-content\")?\"slot\"===s.localName&&(e.hasInsertionPoint=!0):n=this._parseTemplateNestedTemplate(s,e,i)||n,s.firstChild&&this._parseTemplateChildNodes(s,e,i),s.hasAttributes&&s.hasAttributes()&&(n=this._parseTemplateNodeAttributes(s,e,i)||n),n}static _parseTemplateChildNodes(t,e,i){if(\"script\"!==t.localName&&\"style\"!==t.localName)for(let n,s=t.firstChild,r=0;s;s=n){if(\"template\"==s.localName&&(s=we(s)),n=s.nextSibling,s.nodeType===Node.TEXT_NODE){let i=n;for(;i&&i.nodeType===Node.TEXT_NODE;)s.textContent+=i.textContent,n=i.nextSibling,t.removeChild(i),i=n;if(e.stripWhiteSpace&&!s.textContent.trim()){t.removeChild(s);continue}}let o={parentIndex:r,parentInfo:i};this._parseTemplateNode(s,e,o)&&(o.infoIndex=e.nodeInfoList.push(o)-1),s.parentNode&&r++}}static _parseTemplateNestedTemplate(t,e,i){let n=t,s=this._parseTemplate(n,e);return(s.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),i.templateInfo=s,!0}static _parseTemplateNodeAttributes(t,e,i){let n=!1,s=Array.from(t.attributes);for(let r,o=s.length-1;r=s[o];o--)n=this._parseTemplateNodeAttribute(t,e,i,r.name,r.value)||n;return n}static _parseTemplateNodeAttribute(t,e,i,n,s){return\"on-\"===n.slice(0,3)?(t.removeAttribute(n),i.events=i.events||[],i.events.push({name:n.slice(3),value:s}),!0):\"id\"===n&&(i.id=s,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let e=this.constructor._parseTemplate(t),i=e.nodeInfoList,n=e.content||t.content,s=document.importNode(n,!0);s.__noInsertionPoint=!e.hasInsertionPoint;let r=s.nodeList=new Array(i.length);s.$={};for(let t,e=0,n=i.length;eh.source.length&&\"property\"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let n=i[e];e=Gt(h.source,l.target,e),a._setPendingPropertyOrPath(e,n,!1,!0)&&t._enqueueClient(a)}else{!function(t,e,i,n,s){s=function(t,e,i,n){if(i.isCompound){let s=t.__dataCompoundStorage[i.target];s[n.compoundIndex]=e,e=s.join(\"\")}\"attribute\"!==i.kind&&(\"textContent\"!==i.target&&(\"value\"!==i.target||\"input\"!==t.localName&&\"textarea\"!==t.localName)||(e=null==e?\"\":e));return e}(e,s,i,n),wt&&(s=wt(s,i.target,i.kind,e));if(\"attribute\"==i.kind)t._valueToNodeAttribute(e,s,i.target);else{let n=i.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[n]?e[Te.READ_ONLY]&&e[Te.READ_ONLY][n]||e._setPendingProperty(n,s)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,n,s)}}(t,a,l,h,s.evaluator._evaluateBinding(t,h,e,i,n,r))}}function qe(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),n=e.parts,s=new Array(n.length);for(let t=0;t=\"0\"&&n<=\"9\"&&(n=\"#\"),n){case\"'\":case'\"':i.value=e.slice(1,-1),i.literal=!0;break;case\"#\":i.value=Number(e),i.literal=!0}return i.literal||(i.rootProperty=Zt(e),i.structured=Yt(e),i.structured&&(i.wildcard=\".*\"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function Ge(t,e,i){let n=ee(t,i);return void 0===n&&(n=e[i]),n}function Qe(t,e,i,n){t.notifyPath(i+\".splices\",{indexSplices:n}),t.notifyPath(i+\".length\",e.length)}function ti(t,e,i,n,s,r){Qe(t,e,i,[{index:n,addedCount:s,removed:r,object:e,type:\"splice\"}])}const ei=It(t=>{const e=ke(ye(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataCounter=0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo}get PROPERTY_EFFECT_TYPES(){return Te}_initializeProperties(){super._initializeProperties(),ii.registerHost(this),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}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[Te.READ_ONLY];for(let i in t)e&&e[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=t[i])}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==Te.READ_ONLY);let n=Ie(this,e)[t];n||(n=this[e][t]=[]),n.push(i)}_removePropertyEffect(t,e,i){let n=Ie(this,e)[t],s=n.indexOf(i);s>=0&&n.splice(s,1)}_hasPropertyEffect(t,e){let i=this[e];return Boolean(i&&i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,Te.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,Te.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,Te.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,Te.COMPUTE)}_setPendingPropertyOrPath(t,e,i,n){if(n||Zt(Array.isArray(t)?t[0]:t)!==t){if(!n){let i=ee(this,t);if(!(t=ie(this,t,e))||!super._shouldPropertyChange(t,e,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,i))return function(t,e,i){let n=t.__dataLinkedPaths;if(n){let s;for(let r in n){let o=n[r];Xt(r,e)?(s=Gt(r,o,e),t._setPendingPropertyOrPath(s,i,!0,!0)):Xt(o,e)&&(s=Gt(o,r,e),t._setPendingPropertyOrPath(s,i,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,i);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,i){i===t[e]&&\"object\"!=typeof i||(\"className\"===e&&(t=Wt(t)),t[e]=i)}_setPendingProperty(t,e,i){let n=this.__dataHasPaths&&Yt(t),s=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(t,e,s[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),n?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(n||this[Te.NOTIFY]&&this[Te.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=i),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushProperties(){this.__dataCounter++,super._flushProperties(),this.__dataCounter--}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e1?s-1:0),o=1;o3?n-3:0),r=3;r1?n-1:0),r=1;rs&&n.push({literal:t.slice(s,i.index)});let r=i[1][0],o=Boolean(i[2]),a=i[3].trim(),l=!1,h=\"\",d=-1;\"{\"==r&&(d=a.indexOf(\"::\"))>0&&(h=a.substring(d+2),a=a.substring(0,d),l=!0);let c=Je(a),u=[];if(c){let{args:t,methodName:i}=c;for(let e=0;e{const e=me(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof s?e:null}function n(t){if(!t.hasOwnProperty(JSCompiler_renameProperty(\"__ownProperties\",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty(\"properties\",t))){const i=t.properties;i&&(e=\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nfunction(t){const e={};for(let i in t){const n=t[i];e[i]=\"function\"==typeof n?{type:n}:n}return e}(i))}t.__ownProperties=e}return t.__ownProperties}class s extends e{static get observedAttributes(){if(!this.hasOwnProperty(\"__observedAttributes\")){t=this.prototype,ni.push(t);const e=this._properties;this.__observedAttributes=e?Object.keys(e).map(t=>this.attributeNameForProperty(t)):[]}var t;return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty(\"__finalized\",this))){const t=i(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=n(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty(\"__properties\",this))){const t=i(this);this.__properties=Object.assign({},t&&t._properties,n(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){0,this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s}),ri=\"3.3.0\",oi=window.ShadyCSS&&window.ShadyCSS.cssBuild,ai=It(t=>{const e=si(ei(t));function i(t,e,i,n){if(!oi){const s=e.content.querySelectorAll(\"style\"),r=qt(e),o=function(t){let e=Bt(t);return e?$t(e):[]}(i),a=e.content.firstElementChild;for(let i=0;i{this._timer=null,hi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),hi.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(t,e,i){return t instanceof li?t._cancelAsync():t=new li,t.setConfig(e,i),t}}let hi=new Set;const di=function(t){hi.add(t)},ci=function(){const t=Boolean(hi.size);return hi.forEach(t=>{try{t.flush()}catch(t){setTimeout(()=>{throw t})}}),t};\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nlet ui=\"string\"==typeof document.head.style.touchAction,pi=\"__polymerGestures\",_i=\"__polymerGesturesHandled\",fi=\"__polymerGesturesTouchAction\",mi=25,gi=5,vi=2500,yi=[\"mousedown\",\"mousemove\",\"mouseup\",\"click\"],bi=[0,1,4,2],wi=function(){try{return 1===new MouseEvent(\"test\",{buttons:1}).buttons}catch(t){return!1}}();function xi(t){return yi.indexOf(t)>-1}let Ci=!1;function Si(t){if(!xi(t)&&\"touchend\"!==t)return ui&&Ci&&xt?{passive:!0}:void 0}!function(){try{let t=Object.defineProperty({},\"passive\",{get(){Ci=!0}});window.addEventListener(\"test\",null,t),window.removeEventListener(\"test\",null,t)}catch(t){}}();let Ei=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const ki=[],Ai={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Ti={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Pi(t){let e=Array.prototype.slice.call(t.labels||[]);if(!e.length){e=[];let i=t.getRootNode();if(t.id){let n=i.querySelectorAll(\"label[for = \".concat(t.id,\"]\"));for(let t=0;t-1}if(n[t]===Mi.mouse.target)return}if(e)return;t.preventDefault(),t.stopPropagation()}};function Oi(t){let e=Ei?[\"click\"]:yi;for(let i,n=0;nt.composedPath&&t.composedPath()||[],Fi={},Di=[];function Bi(t){const e=zi(t);return e.length>0?e[0]:t.target}function Hi(t){let e,i=t.type,n=t.currentTarget[pi];if(!n)return;let s=n[i];if(s){if(!t[_i]&&(t[_i]={},\"touch\"===i.slice(0,5))){let e=(t=t).changedTouches[0];if(\"touchstart\"===i&&1===t.touches.length&&(Mi.touch.id=e.identifier),Mi.touch.id!==e.identifier)return;ui||\"touchstart\"!==i&&\"touchmove\"!==i||function(t){let e=t.changedTouches[0],i=t.type;if(\"touchstart\"===i)Mi.touch.x=e.clientX,Mi.touch.y=e.clientY,Mi.touch.scrollDecided=!1;else if(\"touchmove\"===i){if(Mi.touch.scrollDecided)return;Mi.touch.scrollDecided=!0;let i=function(t){let e=\"auto\",i=zi(t);for(let t,n=0;ns:\"pan-y\"===i&&(n=s>r)),n?t.preventDefault():Ui(\"track\")}}(t)}if(!(e=t[_i]).skip){for(let i,n=0;n-1&&i.reset&&i.reset();for(let n,r=0;r{t.style.touchAction=e}),t[fi]=e}function Ki(t,e,i){let n=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(n.detail=i,Wt(t).dispatchEvent(n),n.defaultPrevented){let t=i.preventer||i.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function Ui(t){let e=function(t){for(let e,i=0;i=gi||s>=gi}function Zi(t,e,i){if(!e)return;let n,s=t.moves[t.moves.length-2],r=t.moves[t.moves.length-1],o=r.x-t.x,a=r.y-t.y,l=0;s&&(n=r.x-s.x,l=r.y-s.y),Ki(e,\"track\",{state:t.state,x:i.clientX,y:i.clientY,dx:o,dy:a,ddx:n,ddy:l,sourceEvent:i,hover:function(){return function(t,e){let i=document.elementFromPoint(t,e),n=i;for(;n&&n.shadowRoot&&!window.ShadyDOM;){if(n===(n=n.shadowRoot.elementFromPoint(t,e)))break;n&&(i=n)}return i}(i.clientX,i.clientY)}})}function Ji(t,e,i){let n=Math.abs(e.clientX-t.x),s=Math.abs(e.clientY-t.y),r=Bi(i||e);!r||Ti[r.localName]&&r.hasAttribute(\"disabled\")||(isNaN(n)||isNaN(s)||n<=mi&&s<=mi||function(t){if(\"click\"===t.type){if(0===t.detail)return!0;let e=Bi(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;let i=e.getBoundingClientRect(),n=t.pageX,s=t.pageY;return!(n>=i.left&&n<=i.right&&s>=i.top&&s<=i.bottom)}return!1}(e))&&(t.prevent||Ki(r,\"tap\",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i}))}qi({name:\"downup\",deps:[\"mousedown\",\"touchstart\",\"touchend\"],flow:{start:[\"mousedown\",\"touchstart\"],end:[\"mouseup\",\"touchend\"]},emits:[\"down\",\"up\"],info:{movefn:null,upfn:null},reset:function(){Ri(this.info)},mousedown:function(t){if(!Ni(t))return;let e=Bi(t),i=this;Li(this.info,function(t){Ni(t)||(Wi(\"up\",e,t),Ri(i.info))},function(t){Ni(t)&&Wi(\"up\",e,t),Ri(i.info)}),Wi(\"down\",e,t)},touchstart:function(t){Wi(\"down\",Bi(t),t.changedTouches[0],t)},touchend:function(t){Wi(\"up\",Bi(t),t.changedTouches[0],t)}}),qi({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(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},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,Ri(this.info)},mousedown:function(t){if(!Ni(t))return;let e=Bi(t),i=this,n=function(t){let n=t.clientX,s=t.clientY;Yi(i.info,n,s)&&(i.info.state=i.info.started?\"mouseup\"===t.type?\"end\":\"track\":\"start\",\"start\"===i.info.state&&Ui(\"tap\"),i.info.addMove({x:n,y:s}),Ni(t)||(i.info.state=\"end\",Ri(i.info)),e&&Zi(i.info,e,t),i.info.started=!0)};Li(this.info,n,function(t){i.info.started&&n(t),Ri(i.info)}),this.info.x=t.clientX,this.info.y=t.clientY},touchstart:function(t){let e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(t){let e=Bi(t),i=t.changedTouches[0],n=i.clientX,s=i.clientY;Yi(this.info,n,s)&&(\"start\"===this.info.state&&Ui(\"tap\"),this.info.addMove({x:n,y:s}),Zi(this.info,e,i),this.info.state=\"track\",this.info.started=!0)},touchend:function(t){let e=Bi(t),i=t.changedTouches[0];this.info.started&&(this.info.state=\"end\",this.info.addMove({x:i.clientX,y:i.clientY}),Zi(this.info,e,i))}}),qi({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(t){Ni(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click:function(t){Ni(t)&&Ji(this.info,t)},touchstart:function(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(t){Ji(this.info,t.changedTouches[0],t)}});const Xi=Vi,Gi=It(t=>{return class extends t{_addEventListenerToNode(t,e,i){Vi(t,e,i)||super._addEventListenerToNode(t,e,i)}_removeEventListenerFromNode(t,e,i){ji(t,e,i)||super._removeEventListenerFromNode(t,e,i)}}}),Qi=/:host\\(:dir\\((ltr|rtl)\\)\\)/g,tn=':host([dir=\"$1\"])',en=/([\\s\\w-#\\.\\[\\]\\*]*):dir\\((ltr|rtl)\\)/g,nn=':host([dir=\"$2\"]) $1',sn=/:dir\\((?:ltr|rtl)\\)/,rn=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),on=[];let an=null,ln=\"\";function hn(){ln=document.documentElement.getAttribute(\"dir\")}function dn(t){if(!t.__autoDirOptOut){t.setAttribute(\"dir\",ln)}}function cn(){hn(),ln=document.documentElement.getAttribute(\"dir\");for(let t=0;t{rn||an||(hn(),(an=new MutationObserver(cn)).observe(document.documentElement,{attributes:!0,attributeFilter:[\"dir\"]}));const e=ye(t);class i extends e{static _processStyleText(t,i){return t=e._processStyleText.call(this,t,i),!rn&&sn.test(t)&&(t=this._replaceDirInCssText(t),this.__activateDir=!0),t}static _replaceDirInCssText(t){let e=t;return e=(e=e.replace(Qi,tn)).replace(en,nn)}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute(\"dir\")}connectedCallback(){e.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(an&&an.takeRecords().length&&cn(),on.push(this),dn(this))}disconnectedCallback(){if(e.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir){const t=on.indexOf(this);t>-1&&on.splice(t,1)}}}return i.__activateDir=!1,i});\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/let pn=!1,_n=[],fn=[];function mn(){pn=!0,requestAnimationFrame(function(){pn=!1,gn(_n),setTimeout(function(){!function(t){for(let e=0,i=t.length;e{throw t})}}\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nfunction yn(){document.body.removeAttribute(\"unresolved\")}\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nfunction bn(t,e,i){return{index:t,removed:e,addedCount:i}}\"interactive\"===document.readyState||\"complete\"===document.readyState?yn():window.addEventListener(\"DOMContentLoaded\",yn);const wn=0,xn=1,Cn=2,Sn=3;function En(t,e,i,n,s,r){let o,a=0,l=0,h=Math.min(i-e,r-s);if(0==e&&0==s&&(a=function(t,e,i){for(let n=0;n0||i>0;){if(0==e){s.push(Cn),i--;continue}if(0==i){s.push(Sn),e--;continue}let r,o=t[e-1][i-1],a=t[e-1][i],l=t[e][i-1];(r=aTn(t)?Wt(t=t).assignedNodes({flatten:!0}):[t]).reduce((t,e)=>t.concat(e),[])}constructor(t,e){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=t,this.callback=e,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){Tn(this._target)?this._listenSlots([this._target]):Wt(this._target).children&&(this._listenSlots(Wt(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=ShadyDOM.observeChildren(this._target,t=>{this._processMutations(t)}):(this._nativeChildrenObserver=new MutationObserver(t=>{this._processMutations(t)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){Tn(this._target)?this._unlistenSlots([this._target]):Wt(this._target).children&&(this._unlistenSlots(Wt(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,_e.run(()=>this.flush()))}_processMutations(t){this._processSlotMutations(t),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e{\"activeElement\"!=e&&(t.prototype[e]=Ln.prototype[e])}),Rn(t.prototype,[\"classList\"]),Fn=t,Object.defineProperties(zn.prototype,{localTarget:{get(){const t=this.event.currentTarget,e=t&&Dn(t).getOwnerRoot(),i=this.path;for(let t=0;t{const e=un(Gi(ai(t))),i={x:\"pan-x\",y:\"pan-y\",none:\"none\",all:\"auto\"};class n extends e{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers}static get importMeta(){return this.prototype.importMeta}created(){}connectedCallback(){super.connectedCallback(),this.isAttached=!0,this.attached()}attached(){}disconnectedCallback(){super.disconnectedCallback(),this.isAttached=!1,this.detached()}detached(){}attributeChangedCallback(t,e,i,n){e!==i&&(super.attributeChangedCallback(t,e,i,n),this.attributeChanged(t,e,i))}attributeChanged(t,e,i){}_initializeProperties(){let t=Object.getPrototypeOf(this);t.hasOwnProperty(\"__hasRegisterFinished\")||(this._registered(),t.__hasRegisterFinished=!0),super._initializeProperties(),this.root=this,this.created(),this._applyListeners()}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(t){return this._serializeValue(t)}deserialize(t,e){return this._deserializeValue(t,e)}reflectPropertyToAttribute(t,e,i){this._propertyToAttribute(t,e,i)}serializeValueToAttribute(t,e,i){this._valueToNodeAttribute(i||this,t,e)}extend(t,e){if(!t||!e)return t||e;let i=Object.getOwnPropertyNames(e);for(let n,s=0;s1&&void 0!==arguments[1]&&arguments[1];if(!Bn||!Hn)return null;if(!Bn.handlesDynamicScoping)return null;const i=Hn.ScopingShim;if(!i)return null;const n=i.scopeForNode(t),s=Wt(t).getRootNode(),r=t=>{if(!Vn(t,s))return;const e=Array.from(Bn.nativeMethods.querySelectorAll.call(t,\"*\"));e.push(t);for(let t=0;t{for(let e=0;e1&&void 0!==arguments[1]&&arguments[1])}getComputedStyleValue(t){return jn.getComputedStyleValue(this,t)}debounce(t,e,i){return this._debouncers=this._debouncers||{},this._debouncers[t]=li.debounce(this._debouncers[t],i>0?pe.after(i):_e,e.bind(this))}isDebouncerActive(t){this._debouncers=this._debouncers||{};let e=this._debouncers[t];return!(!e||!e.isActive())}flushDebouncer(t){this._debouncers=this._debouncers||{};let e=this._debouncers[t];e&&e.flush()}cancelDebouncer(t){this._debouncers=this._debouncers||{};let e=this._debouncers[t];e&&e.cancel()}async(t,e){return e>0?pe.run(t.bind(this),e):~_e.run(t.bind(this))}cancelAsync(t){t<0?_e.cancel(~t):pe.cancel(t)}create(t,e){let i=document.createElement(t);if(e)if(i.setProperties)i.setProperties(e);else for(let t in e)i[t]=e[t];return i}elementMatches(t,e){return Mn(e||this,t)}toggleAttribute(t,e){let i=this;return 3===arguments.length&&(i=arguments[2]),1==arguments.length&&(e=!i.hasAttribute(t)),e?(Wt(i).setAttribute(t,\"\"),!0):(Wt(i).removeAttribute(t),!1)}toggleClass(t,e,i){i=i||this,1==arguments.length&&(e=!i.classList.contains(t)),e?i.classList.add(t):i.classList.remove(t)}transform(t,e){(e=e||this).style.webkitTransform=t,e.style.transform=t}translate3d(t,e,i,n){n=n||this,this.transform(\"translate3d(\"+t+\",\"+e+\",\"+i+\")\",n)}arrayDelete(t,e){let i;if(Array.isArray(t)){if((i=t.indexOf(e))>=0)return t.splice(i,1)}else{if((i=ee(this,t).indexOf(e))>=0)return this.splice(t,i,1)}return null}_logger(t,e){switch(Array.isArray(e)&&1===e.length&&Array.isArray(e[0])&&(e=e[0]),t){case\"log\":case\"warn\":case\"error\":console[t](...e)}}_log(){for(var t=arguments.length,e=new Array(t),i=0;i1?e-1:0),n=1;n=0;e--){const i=t[e];for(let t in i)this._ensureAttribute(t,i[t])}super._ensureAttributes()}ready(){super.ready();let t=s.ready;if(t)for(let e=0;e=0;s--){let r=e[s];r?Array.isArray(r)?t(r,i):i.indexOf(r)<0&&(!n||n.indexOf(r)<0)&&i.unshift(r):console.warn(\"behavior is null, check for missing or 404 import\")}return i}(i,null,t),r.prototype.behaviors=t?t.concat(i):n}const o=e=>{n&&function(t,e,i){for(let n=0;n{return class extends t{_shouldPropertyChange(t,e,i){return Xn(this,t,e,i,!0)}}}),Qn=It(t=>{return class extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,i){return Xn(this,t,e,i,this.mutableData)}}});Gn._mutablePropertyChange=Xn;\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nlet ts=null;function es(){return ts}es.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:es,writable:!0}});const is=ei(es),ns=Gn(is);const ss=ei(class{});class rs extends ss{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let t=this.root.firstChild;t;t=t.nextSibling)e.push(t),t.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost[\"_host_\"+t]);for(let e in t)this._setPendingProperty(e,t[e])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,t=>{t.model=this,i(t)});else{let n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(t,e,i)}}_showHideChildren(t){let e=this.children;for(let i=0;i can only be templatized once\");t.__templatizeOwner=e;let n=(e?e.constructor:rs)._parseTemplate(t),s=n.templatizeInstanceClass;s||(s=ls(t,n,i),n.templatizeInstanceClass=s),hs(t,n,i);let r=class extends s{};return r.prototype._methodHost=as(t),r.prototype.__dataHost=t,r.prototype.__templatizeOwner=e,r.prototype.__hostProps=n.hostProps,r=r}function ps(t,e){let i;for(;e;)if(i=e.__templatizeInstance){if(i.__dataHost==t)return i;e=i.__dataHost}else e=Wt(e).parentNode;return null}\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nlet _s=!1;function fs(){if(Et&&!yt){if(!_s){_s=!0;const t=document.createElement(\"style\");t.textContent=\"dom-bind,dom-if,dom-repeat{display:none;}\",document.head.appendChild(t)}return!0}return!1}\n/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/const ms=Gi(Qn(ei(HTMLElement)));customElements.define(\"dom-bind\",class extends ms{static get observedAttributes(){return[\"mutable-data\"]}constructor(){if(super(),Ct)throw new Error(\"strictTemplatePolicy: dom-bind not allowed\");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(t,e,i,n){this.mutableData=!0}connectedCallback(){fs()||(this.style.display=\"none\"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){Wt(Wt(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let t=0;t{if(!(t=this.querySelector(\"template\")))throw new Error(\"dom-bind requires a