(function(){'use strict';function ee(jt){return jt=te(jt),re(oe(jt),jt)}function te(jt){return jt.replace(we.comments,'').replace(we.port,'')}function oe(jt){let Wt={start:0,end:jt.length},Bt=Wt;for(let Kt=0,Gt=jt.length;Kt{'complete'===document.readyState&&Te()}))}function Te(){requestAnimationFrame(()=>{(Ht||kt._elementsHaveApplied)&&kt.updateStyles(),Ht=!1})}(function(){'use strict';var Wt=function(){var zt=document.createEvent('Event');return zt.initEvent('foo',!0,!0),zt.preventDefault(),zt.defaultPrevented}();if(!Wt){var Bt=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(Bt.call(this),Object.defineProperty(this,'defaultPrevented',{get:function(){return!0},configurable:!0}))}}var Kt=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||Kt&&'function'!=typeof window.CustomEvent)&&(window.CustomEvent=function(zt,Jt){Jt=Jt||{};var $t=document.createEvent('CustomEvent');return $t.initCustomEvent(zt,!!Jt.bubbles,!!Jt.cancelable,Jt.detail),$t},window.CustomEvent.prototype=window.Event.prototype),!window.Event||Kt&&'function'!=typeof window.Event){var Gt=window.Event;if(window.Event=function(zt,Jt){Jt=Jt||{};var $t=document.createEvent('Event');return $t.initEvent(zt,!!Jt.bubbles,!!Jt.cancelable),$t},Gt)for(var Xt in Gt)window.Event[Xt]=Gt[Xt];window.Event.prototype=Gt.prototype}if(!window.MouseEvent||Kt&&'function'!=typeof window.MouseEvent){var Vt=window.MouseEvent;if(window.MouseEvent=function(zt,Jt){Jt=Jt||{};var $t=document.createEvent('MouseEvent');return $t.initMouseEvent(zt,!!Jt.bubbles,!!Jt.cancelable,Jt.view||window,Jt.detail,Jt.screenX,Jt.screenY,Jt.clientX,Jt.clientY,Jt.ctrlKey,Jt.altKey,Jt.shiftKey,Jt.metaKey,Jt.button,Jt.relatedTarget),$t},Vt)for(var Xt in Vt)window.MouseEvent[Xt]=Vt[Xt];window.MouseEvent.prototype=Vt.prototype}if(Array.from||(Array.from=function(zt){return[].slice.call(zt)}),!Object.assign){var Yt=function(zt,Jt){for(var Zt,$t=Object.getOwnPropertyNames(Jt),Qt=0;Qt<$t.length;Qt++)Zt=$t[Qt],zt[Zt]=Jt[Zt]};Object.assign=function(zt){for(var Zt,$t=[].slice.call(arguments,1),Qt=0;Qt<$t.length;Qt++)Zt=$t[Qt],Zt&&Yt(zt,Zt);return zt}}})(window.WebComponents),function(jt){'use strict';function Wt(no){return Qt[no]!==void 0}function Bt(){Yt.call(this),this._isInvalid=!0}function Kt(no){return''==no&&Bt.call(this),no.toLowerCase()}function Gt(no){var so=no.charCodeAt(0);return 32so&&-1==[34,35,60,62,63,96].indexOf(so)?no:encodeURIComponent(no)}function Xt(no){var so=no.charCodeAt(0);return 32so&&-1==[34,35,60,62,96].indexOf(so)?no:encodeURIComponent(no)}function Vt(no,so,ao){function lo(Eo){uo.push(Eo)}var io=so||'scheme start',po=0,co='',ho=!1,_o=!1,uo=[];loop:for(;(no[po-1]!=eo||0==po)&&!this._isInvalid;){var mo=no[po];switch(io){case'scheme start':if(mo&&to.test(mo))co+=mo.toLowerCase(),io='scheme';else if(!so){co='',io='no scheme';continue}else{lo('Invalid scheme.');break loop}break;case'scheme':if(mo&&oo.test(mo))co+=mo.toLowerCase();else if(':'==mo){if(this._scheme=co,co='',so)break loop;Wt(this._scheme)&&(this._isRelative=!0),io='file'==this._scheme?'relative':this._isRelative&&ao&&ao._scheme==this._scheme?'relative or authority':this._isRelative?'authority first slash':'scheme data'}else if(!so){co='',po=0,io='no scheme';continue}else if(eo==mo)break loop;else{lo('Code point not allowed in scheme: '+mo);break loop}break;case'scheme data':'?'==mo?(this._query='?',io='query'):'#'==mo?(this._fragment='#',io='fragment'):eo!=mo&&'\t'!=mo&&'\n'!=mo&&'\r'!=mo&&(this._schemeData+=Gt(mo));break;case'no scheme':if(!ao||!Wt(ao._scheme))lo('Missing scheme.'),Bt.call(this);else{io='relative';continue}break;case'relative or authority':if('/'==mo&&'/'==no[po+1])io='authority ignore slashes';else{lo('Expected /, got: '+mo),io='relative';continue}break;case'relative':if(this._isRelative=!0,'file'!=this._scheme&&(this._scheme=ao._scheme),eo==mo){this._host=ao._host,this._port=ao._port,this._path=ao._path.slice(),this._query=ao._query,this._username=ao._username,this._password=ao._password;break loop}else if('/'==mo||'\\'==mo)'\\'==mo&&lo('\\ is an invalid code point.'),io='relative slash';else if('?'==mo)this._host=ao._host,this._port=ao._port,this._path=ao._path.slice(),this._query='?',this._username=ao._username,this._password=ao._password,io='query';else if('#'==mo)this._host=ao._host,this._port=ao._port,this._path=ao._path.slice(),this._query=ao._query,this._fragment='#',this._username=ao._username,this._password=ao._password,io='fragment';else{var yo=no[po+1],go=no[po+2];'file'==this._scheme&&to.test(mo)&&(':'==yo||'|'==yo)&&(eo==go||'/'==go||'\\'==go||'?'==go||'#'==go)||(this._host=ao._host,this._port=ao._port,this._username=ao._username,this._password=ao._password,this._path=ao._path.slice(),this._path.pop()),io='relative path';continue}break;case'relative slash':if('/'==mo||'\\'==mo)'\\'==mo&&lo('\\ is an invalid code point.'),io='file'==this._scheme?'file host':'authority ignore slashes';else{'file'!=this._scheme&&(this._host=ao._host,this._port=ao._port,this._username=ao._username,this._password=ao._password),io='relative path';continue}break;case'authority first slash':if('/'==mo)io='authority second slash';else{lo('Expected \'/\', got: '+mo),io='authority ignore slashes';continue}break;case'authority second slash':if(io='authority ignore slashes','/'!=mo){lo('Expected \'/\', got: '+mo);continue}break;case'authority ignore slashes':if('/'!=mo&&'\\'!=mo){io='authority';continue}else lo('Expected authority, got: '+mo);break;case'authority':if('@'==mo){ho&&(lo('@ already seen.'),co+='%40'),ho=!0;for(var bo,fo=0;fo'===ro?'>':'\xA0'===ro?' ':void 0}function oo(ro){return ro.replace(Zt,to)}var Yt=document.implementation.createHTMLDocument('template'),zt=!0,Jt=document.createElement('style');Jt.textContent=Xt+'{display:none;}';var $t=document.head;$t.insertBefore(Jt,$t.firstElementChild),Vt.prototype=Object.create(HTMLElement.prototype);var Qt=!document.createElement('div').hasOwnProperty('innerHTML');Vt.decorate=function(ro){if(!ro.content){ro.content=Yt.createDocumentFragment();for(var no;no=ro.firstChild;)ro.content.appendChild(no);if(Qt)ro.__proto__=Vt.prototype;else if(ro.cloneNode=function(so){return Vt._cloneNode(this,so)},zt)try{eo(ro)}catch(so){zt=!1}Vt.bootstrap(ro.content)}},eo(Vt.prototype),Vt.bootstrap=function(ro){for(var lo,no=ro.querySelectorAll(Xt),so=0,ao=no.length;so]/g}(Kt||Gt)&&(Vt._cloneNode=function(eo,to){var oo=jt.call(eo,!1);return this.decorate&&this.decorate(oo),to&&(oo.content.appendChild(jt.call(eo.content,!0)),this.fixClonedDom(oo.content,eo.content)),oo},Vt.prototype.cloneNode=function(eo){return Vt._cloneNode(this,eo)},Vt.fixClonedDom=function(eo,to){if(to.querySelectorAll)for(var ao,lo,oo=to.querySelectorAll(Xt),ro=eo.querySelectorAll(Xt),no=0,so=ro.length;no{const Wt=!!('import'in document.createElement('link'));let Bt=null;!1=='currentScript'in document&&Object.defineProperty(document,'currentScript',{get(){return Bt||('complete'===document.readyState?null:document.scripts[document.scripts.length-1])},configurable:!0});const Kt=/(^\/)|(^#)|(^[\w-\d]*:)/,Gt=/(url\()([^)]*)(\))/g,Xt=/(@import[\s]+(?!url\())([^;]*)(;)/g,Vt=/(]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Yt={fixUrls(uo,mo){uo.href&&uo.setAttribute('href',Yt.replaceAttrUrl(uo.getAttribute('href'),mo)),uo.src&&uo.setAttribute('src',Yt.replaceAttrUrl(uo.getAttribute('src'),mo)),'style'===uo.localName&&Yt.resolveUrlsInStyle(uo,mo)},fixUrlAttributes(uo,mo){const yo=['action','src','href','url','style'];for(let fo,go=0;govo.search(/({{|\[\[)/)&&(bo.value='style'===fo?Yt.resolveUrlsInCssText(vo,mo):Yt.replaceAttrUrl(vo,mo))}},fixUrlsInTemplates(uo,mo){const yo=uo.querySelectorAll('template');for(let go=0;go{let No=bo.replace(/["']/g,'');return mo&&(No=Yt.resolveUrl(No,mo)),fo+'\''+No+'\''+vo})},replaceAttrUrl(uo,mo){return uo&&Kt.test(uo)?uo:Yt.resolveUrl(uo,mo)},resolveUrl(uo,mo){if(void 0===Yt.__workingURL){Yt.__workingURL=!1;try{const go=new URL('b','http://a');go.pathname='c%20d',Yt.__workingURL='http://a/c%20d'===go.href}catch(go){}}if(Yt.__workingURL)return new URL(uo,mo).href;let yo=Yt.__tempDoc;return yo||(yo=document.implementation.createHTMLDocument('temp'),Yt.__tempDoc=yo,yo.__base=yo.createElement('base'),yo.head.appendChild(yo.__base),yo.__anchor=yo.createElement('a')),yo.__base.href=mo,yo.__anchor.href=uo,yo.__anchor.href||uo}},zt={async:!0,load(uo){return new Promise((mo,yo)=>{if(!uo)yo({resource:'error: href must be specified'});else if(uo.match(/^data:/)){const go=uo.split(','),fo=go[0];let bo=go[1];bo=-1{if(4===go.readyState){let fo;try{const vo=go.getResponseHeader('Location');vo&&(fo='/'===vo.substr(0,1)?location.origin+vo:vo)}catch(vo){console.error(vo.message)}const bo={resource:go.response||go.responseText,redirectedUrl:fo};304===go.status||0===go.status||200<=go.status&&300>go.status?mo(bo):yo(bo)}}),go.send()}})}},Jt=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent),$t='onunhandledrejection'in window,Qt='link[rel=import]',Zt='import-disable',eo=`link[rel=stylesheet][href][type=${Zt}]`,to=`${Qt}, ${eo}, style:not([type]), link[rel=stylesheet][href]:not([type]), script:not([type]), script[type="application/javascript"], script[type="text/javascript"]`,oo='import-dependency',ro=`${Qt}:not(${oo})`,no=`script[${oo}]`,so=`style[${oo}], link[rel=stylesheet][${oo}]`;const lo=uo=>{return uo.nodeType===Node.ELEMENT_NODE&&'link'===uo.localName&&'import'===uo.rel},io=uo=>{return uo.__loadPromise||(uo.__loadPromise=new Promise(mo=>{'script'!==uo.localName||uo.src?Jt&&'style'===uo.localName?uo.addEventListener('load',mo):(uo.addEventListener('load',mo),uo.addEventListener('error',mo)):mo()}).then(()=>{return uo.__loaded=!0,uo})),uo.__loadPromise},po=uo=>{co(()=>ho(()=>uo&&uo()))},co=uo=>{if('loading'!==document.readyState)uo();else{const mo=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',mo),uo())};document.addEventListener('readystatechange',mo)}},ho=uo=>{let mo=document.querySelectorAll(ro);const yo=[];for(let bo,go=0,fo=mo.length;go{throw console.error(fo.stack),setTimeout(()=>{throw fo}),'unhandledrejection'})}else uo()},_o=uo=>{if(Wt)return uo.ownerDocument;let mo=uo.__ownerImport;if(!mo){for(mo=uo;(mo=mo.parentNode||mo.host)&&!lo(mo););uo.__ownerImport=mo}return mo};if(Wt){const uo=document.querySelectorAll(Qt);for(let fo,yo=0,go=uo.length;yo{const go=yo.target;lo(go)&&(go.__loaded=!0)};document.addEventListener('load',mo,!0),document.addEventListener('error',mo,!0)}else new class{constructor(){this.documents={},this.inflight=0,co(()=>{new MutationObserver(uo=>this.handleMutations(uo)).observe(document.head,{childList:!0,subtree:!0}),this.load()})}load(uo){let mo=uo?this.whenImportLoaded(uo):this.whenImportsLoaded(document);return mo&&(this.inflight++,mo=mo.then(()=>{if(0==--this.inflight)return this.onLoadedAll()}),!$t&&(mo=mo.catch(yo=>{throw console.error(yo.stack),setTimeout(()=>{throw yo}),'unhandledrejection'}))),mo}whenImportsLoaded(uo){const mo=uo.querySelectorAll(Qt),yo=[];for(let go=0,fo=mo.length;gouo):null}whenImportLoaded(uo){const mo=uo.href;return void 0===this.documents[mo]?(this.documents[mo]='pending',zt.load(mo).then(yo=>{const go=this.makeDocument(yo.resource,yo.redirectedUrl||mo);return this.documents[mo]=go,this.whenImportsLoaded(go)},()=>this.documents[mo]=null).then(()=>uo)):null}makeDocument(uo,mo){if(!uo)return document.createDocumentFragment();Jt&&(uo=uo.replace(Vt,(So,Eo,Co)=>{return-1===So.indexOf('type=')?`${Eo} type=${Zt} ${Co}`:So}));let yo;const go=document.createElement('template');if(go.innerHTML=uo,go.content)yo=go.content;else for(yo=document.createDocumentFragment();go.firstChild;)yo.appendChild(go.firstChild);const fo=yo.querySelector('base');fo&&(mo=Yt.replaceAttrUrl(fo.getAttribute('href'),mo),fo.removeAttribute('href'));const bo=yo.querySelectorAll('dom-module');for(let Eo,So=0;Sothis.fireEvents())}flatten(uo){const mo=uo.querySelectorAll(Qt);for(let fo,yo=0,go=mo.length;yo{const bo=document.createElement('script');fo.removeAttribute(oo);for(let vo=0,No=fo.attributes.length;voBt=null)});return mo}waitForStyles(){const uo=!!document.querySelector(eo),mo=document.querySelectorAll(so),yo=[];for(let bo,go=0,fo=mo.length;gobo.removeAttribute(oo))),uo&&bo.parentNode!==document.head){let vo=_o(bo);for(;vo&&_o(vo);)vo=_o(vo);const No=bo.parentNode,So=bo.nextSibling,Eo=document.createElement(bo.localName);Eo.__appliedElement=bo,Eo.setAttribute('type','import-placeholder'),vo.parentNode===document.head?document.head.insertBefore(bo,vo):document.head.appendChild(bo),No.insertBefore(Eo,So),bo.removeAttribute('type')}return Promise.all(yo)}fireEvents(){const uo=document.querySelectorAll(Qt);for(let yo,mo=uo.length-1;0<=mo&&(yo=uo[mo]);mo--)this.fireEventIfNeeded(yo)}fireEventIfNeeded(uo){if(!uo.__loaded){uo.__loaded=!0,uo.import&&(uo.import.readyState='complete');const mo=uo.import?'load':'error';uo.dispatchEvent(new CustomEvent(mo,{bubbles:!1,cancelable:!1,detail:void 0}))}}handleMutations(uo){for(let mo=0;modocument.dispatchEvent(new CustomEvent('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),jt.useNative=Wt,jt.whenReady=po,jt.importForElement=_o})(window.HTMLImports=window.HTMLImports||{}),function(){'use strict';window.WebComponents=window.WebComponents||{flags:{}};var Wt=document.querySelector('script[src*="'+'webcomponents-lite.js'+'"]'),Bt={};if(!Bt.noOpts){if(location.search.slice(1).split('&').forEach(function(Jt){var Qt,$t=Jt.split('=');$t[0]&&(Qt=$t[0].match(/wc-(.+)/))&&(Bt[Qt[1]]=$t[1]||!0)}),Wt)for(var Gt,Kt=0;Gt=Wt.attributes[Kt];Kt++)'src'!==Gt.name&&(Bt[Gt.name]=Gt.value||!0);if(Bt.log&&Bt.log.split){var Xt=Bt.log.split(',');Bt.log={},Xt.forEach(function(Jt){Bt.log[Jt]=!0})}else Bt.log={}}WebComponents.flags=Bt;var Vt=window.WebComponents,Yt=Vt.flags.shadydom;Yt&&(window.ShadyDOM=window.ShadyDOM||{},ShadyDOM.force=Yt);var zt=Vt.flags.register||Vt.flags.ce;zt&&window.customElements&&(customElements.forcePolyfill=zt)}(),function(){'use strict';function jt(Gn,Xn,Vn){return{index:Gn,removed:Xn,addedCount:Vn}}function Wt(Gn){return'ShadyRoot'===Gn.__localName}function Gt(Gn,Xn,Vn){(Xn=Object.getOwnPropertyDescriptor(Xn,Gn))&&Object.defineProperty(Vn,Gn,Xn)}function Xt(Gn,Xn){if(Gn&&Xn)for(var zn,Vn=Object.getOwnPropertyNames(Xn),Yn=0;Yn100;if(Lr.length&&!Gn&&$t(),Hr=0,Gn)throw Error('Loop detected in ShadyDOM distribution, aborting.')}function Qt(Gn,Xn){return Gn.__shady&&Gn.__shady[Xn]}function eo(Gn){return'&'===Gn?'&':'<'===Gn?'<':'>'===Gn?'>':'"'===Gn?'"':'\xA0'===Gn?' ':void 0}function to(Gn){return Gn.replace(jr,eo)}function oo(Gn){return Gn.replace(Wr,eo)}function ro(Gn){for(var Xn={},Vn=0;Vn';case Node.TEXT_NODE:return Gn=Gn.data,Xn&&Kr[Xn.localName]?Gn:oo(Gn);case Node.COMMENT_NODE:return'';default:throw window.console.error(Gn),Error('not implemented');}}function so(Gn,Xn){'template'===Gn.localName&&(Gn=Gn.content);for(var $n,Vn='',Yn=Xn?Xn(Gn):Gn.childNodes,zn=0,Jn=Yn.length;zn]/g,Br=ro('area base br col command embed hr img input keygen link meta param source track wbr'.split(' ')),Kr=ro('style script xmp iframe noembed noframes plaintext noscript'.split(' '));qr.getOuterHTML=no,qr.getInnerHTML=so;var Gr={},Xr=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Vr=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);Gr.parentNode=function(Gn){return Xr.currentNode=Gn,Xr.parentNode()},Gr.firstChild=function(Gn){return Xr.currentNode=Gn,Xr.firstChild()},Gr.lastChild=function(Gn){return Xr.currentNode=Gn,Xr.lastChild()},Gr.previousSibling=function(Gn){return Xr.currentNode=Gn,Xr.previousSibling()},Gr.nextSibling=function(Gn){return Xr.currentNode=Gn,Xr.nextSibling()},Gr.childNodes=ho,Gr.parentElement=function(Gn){return Vr.currentNode=Gn,Vr.parentNode()},Gr.firstElementChild=function(Gn){return Vr.currentNode=Gn,Vr.firstChild()},Gr.lastElementChild=function(Gn){return Vr.currentNode=Gn,Vr.lastChild()},Gr.previousElementSibling=function(Gn){return Vr.currentNode=Gn,Vr.previousSibling()},Gr.nextElementSibling=function(Gn){return Vr.currentNode=Gn,Vr.nextSibling()},Gr.children=function(Gn){var Xn=[];for(Vr.currentNode=Gn,Gn=Vr.firstChild();Gn;)Xn.push(Gn),Gn=Vr.nextSibling();return Xn},Gr.innerHTML=function(Gn){return qr.getInnerHTML(Gn,function(Xn){return ho(Xn)})},Gr.textContent=function(Gn){if(Gn.nodeType!==Node.ELEMENT_NODE)return Gn.nodeValue;Gn=document.createTreeWalker(Gn,NodeFilter.SHOW_TEXT,null,!1);for(var Vn,Xn='';Vn=Gn.nextNode();)Xn+=Vn.nodeValue;return Xn};var Yr={},zr=Object.getOwnPropertyDescriptor(Element.prototype,'innerHTML')||Object.getOwnPropertyDescriptor(HTMLElement.prototype,'innerHTML'),Jr=document.implementation.createHTMLDocument('inert'),$r=Jr.createElement('div'),Qr=Object.getOwnPropertyDescriptor(Document.prototype,'activeElement'),Zr={parentElement:No('parentElement'),parentNode:No('parentNode'),nextSibling:No('nextSibling'),previousSibling:No('previousSibling'),className:{get:function(){return this.getAttribute('class')},set:function(Gn){this.setAttribute('class',Gn)},configurable:!0},nextElementSibling:{get:function(){if(Ur.hasProperty(this,'nextSibling')){for(var Gn=this.nextSibling;Gn&&Gn.nodeType!==Node.ELEMENT_NODE;)Gn=Gn.nextSibling;return Gn}return Gr.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(Ur.hasProperty(this,'previousSibling')){for(var Gn=this.previousSibling;Gn&&Gn.nodeType!==Node.ELEMENT_NODE;)Gn=Gn.previousSibling;return Gn}return Gr.previousElementSibling(this)},configurable:!0}},en={childNodes:{get:function(){if(Ur.hasProperty(this,'firstChild')){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var Gn=this.firstChild;Gn;Gn=Gn.nextSibling)this.__shady.childNodes.push(Gn)}return this.__shady.childNodes}return Gr.childNodes(this)},configurable:!0},firstChild:No('firstChild'),lastChild:No('lastChild'),textContent:{get:function(){if(Ur.hasProperty(this,'firstChild')){for(var Yn,Gn=[],Xn=0,Vn=this.childNodes;Yn=Vn[Xn];Xn++)Yn.nodeType!==Node.COMMENT_NODE&&Gn.push(Yn.textContent);return Gn.join('')}return Gr.textContent(this)},set:function(Gn){this.nodeType===Node.ELEMENT_NODE?(So(this),Gn&&this.appendChild(document.createTextNode(Gn))):this.nodeValue=Gn},configurable:!0},firstElementChild:{get:function(){if(Ur.hasProperty(this,'firstChild')){for(var Gn=this.firstChild;Gn&&Gn.nodeType!==Node.ELEMENT_NODE;)Gn=Gn.nextSibling;return Gn}return Gr.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(Ur.hasProperty(this,'lastChild')){for(var Gn=this.lastChild;Gn&&Gn.nodeType!==Node.ELEMENT_NODE;)Gn=Gn.previousSibling;return Gn}return Gr.lastElementChild(this)},configurable:!0},children:{get:function(){return Ur.hasProperty(this,'firstChild')?Array.prototype.filter.call(this.childNodes,function(Gn){return Gn.nodeType===Node.ELEMENT_NODE}):Gr.children(this)},configurable:!0},innerHTML:{get:function(){var Gn='template'===this.localName?this.content:this;return Ur.hasProperty(this,'firstChild')?qr.getInnerHTML(Gn):Gr.innerHTML(Gn)},set:function(Gn){var Xn='template'===this.localName?this.content:this;for(So(Xn),zr&&zr.set?zr.set.call($r,Gn):$r.innerHTML=Gn;$r.firstChild;)Xn.appendChild($r.firstChild)},configurable:!0}},tn={shadowRoot:{get:function(){return this.shadyRoot},set:function(Gn){this.shadyRoot=Gn},configurable:!0}},on={activeElement:{get:function(){return Co(this)},set:function(){},configurable:!0}},rn=Ar.settings.hasDescriptors?function(){}:function(Gn){Gn.__shady&&Gn.__shady.__outsideAccessors||(Gn.__shady=Gn.__shady||{},Gn.__shady.__outsideAccessors=!0,Ao(Gn,Zr,!0))},nn=Ar.settings.hasDescriptors?function(){}:function(Gn){Gn.__shady&&Gn.__shady.__insideAccessors||(Gn.__shady=Gn.__shady||{},Gn.__shady.__insideAccessors=!0,Ao(Gn,en,!0),Ao(Gn,tn,!0))};Yr.ShadowRootAccessor=tn,Yr.ActiveElementAccessor=on,Yr.patchAccessors=function(Gn){Ao(Gn,Zr),Ao(Gn,en),Ao(Gn,on)},Yr.patchShadowRootAccessors=function(Gn){Ao(Gn,en,!0),Ao(Gn,on,!0)},Yr.patchOutsideElementAccessors=rn,Yr.patchInsideElementAccessors=nn;var sn={};sn.recordInsertBefore=function(Gn,Xn,Vn){if(Yr.patchInsideElementAccessors(Xn),Xn.__shady=Xn.__shady||{},Ur.hasProperty(Xn,'firstChild')&&(Xn.__shady.childNodes=null),Gn.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var Yn=Gn.childNodes,zn=0;zn+~])'};const Ue='style-scope';class qe{get SCOPE_NAME(){return Ue}dom(jt,Wt,Bt){jt.__styleScoped?jt.__styleScoped=null:this._transformDom(jt,Wt||'',Bt)}_transformDom(jt,Wt,Bt){jt.nodeType===Node.ELEMENT_NODE&&this.element(jt,Wt,Bt);let Kt='template'===jt.localName?(jt.content||jt._content).childNodes:jt.children||jt.childNodes;if(Kt)for(let Gt=0;Gt`:${Xt}(${Vt.replace(/\s/g,'')})`),jt=jt.replace(ze,`${Xe} $1`),jt=jt.replace(Ke,(Gt,Xt,Vt)=>{if(!Kt){let Yt=this._transformCompoundSelector(Vt,Xt,Wt,Bt);Kt=Kt||Yt.stop,Xt=Yt.combinator,Vt=Yt.value}return Xt+Vt}),jt}_transformCompoundSelector(jt,Wt,Bt,Kt){let Gt=jt.indexOf(Ye);0<=jt.indexOf(Xe)?jt=this._transformHostSelector(jt,Kt):0!==Gt&&(jt=Bt?this._transformSimpleSelector(jt,Bt):jt);let Xt=!1;0<=Gt&&(Wt='',Xt=!0);let Vt;return Xt&&(Vt=!0,Xt&&(jt=jt.replace($e,(Yt,zt)=>` > ${zt}`))),jt=jt.replace(Qe,(Yt,zt,Jt)=>`[dir="${Jt}"] ${zt}, ${zt}[dir="${Jt}"]`),{value:jt,combinator:Wt,stop:Vt}}_transformSimpleSelector(jt,Wt){let Bt=jt.split(lt);return Bt[0]+=Wt,Bt.join(lt)}_transformHostSelector(jt,Wt){let Bt=jt.match(Je),Kt=Bt&&Bt[2].trim()||'';if(Kt){if(!Kt[0].match(Ge)){let Gt=Kt.split(Ge)[0];return Gt===Wt?Kt:'should_not_match'}return jt.replace(Je,function(Gt,Xt,Vt){return Wt+Vt})}return jt.replace(Xe,Wt)}documentRule(jt){jt.selector=jt.parsedSelector,this.normalizeRootSelector(jt),this._transformRule(jt,this._transformDocumentSelector)}normalizeRootSelector(jt){jt.selector===':root'&&(jt.selector='html')}_transformDocumentSelector(jt){return jt.match(Ye)?this._transformComplexSelector(jt,We):this._transformSimpleSelector(jt.trim(),We)}}let je=/:(nth[-\w]+)\(([^)]+)\)/,We=`:not(.${Ue})`,Be=',',Ke=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Ge=/[[.:#*]/,Xe=':host',Ye='::slotted',ze=/^(::slotted)/,Je=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,$e=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Qe=/(.*):dir\((?:(ltr|rtl))\)/,lt=':';var ct=new qe,ht={};const _t=Promise.resolve();class mt{static get(jt){return jt.__styleInfo}static set(jt,Wt){return jt.__styleInfo=Wt,Wt}static invalidate(jt){ht[jt]&&(ht[jt]._applyShimInvalid=!0)}static startValidating(jt){const Wt=ht[jt];Wt._validating||(Wt._validating=!0,_t.then(()=>{Wt._applyShimInvalid=!1,Wt._validating=!1}))}constructor(jt,Wt,Bt,Kt,Gt,Xt){this.styleRules=jt||null,this.placeholder=Wt||null,this.ownStylePropertyNames=Bt||[],this.overrideStyleProperties=null,this.elementName=Kt||'',this.cssBuild=Xt||'',this.typeExtension=Gt||'',this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}}const yt=window.Element.prototype,gt=yt.matches||yt.matchesSelector||yt.mozMatchesSelector||yt.msMatchesSelector||yt.oMatchesSelector||yt.webkitMatchesSelector,ft=navigator.userAgent.match('Trident'),bt='x-scope';class vt{get XSCOPE_NAME(){return bt}decorateStyles(jt){let Wt=this,Bt={},Kt=[],Gt=0;ye(jt,function(Vt){Wt.decorateRule(Vt),Vt.index=Gt++,Wt.collectPropertiesInCssText(Vt.propertyInfo.cssText,Bt)},function(Yt){Kt.push(Yt)}),jt._keyframes=Kt;let Xt=[];for(let Vt in Bt)Xt.push(Vt);return Xt}decorateRule(jt){if(jt.propertyInfo)return jt.propertyInfo;let Wt={},Bt={},Kt=this.collectProperties(jt,Bt);return Kt&&(Wt.properties=Bt,jt.rules=null),Wt.cssText=this.collectCssText(jt),jt.propertyInfo=Wt,Wt}collectProperties(jt,Wt){let Bt=jt.propertyInfo;if(!Bt){let Kt,Gt=Fe.VAR_ASSIGN,Xt=jt.parsedCssText,Vt,Yt;for(;Kt=Gt.exec(Xt);)Vt=(Kt[2]||Kt[3]).trim(),('inherit'!==Vt||'unset'!==Vt)&&(Wt[Kt[1].trim()]=Vt),Yt=!0;return Yt}else if(Bt.properties)return Object.assign(Wt,Bt.properties),!0}collectCssText(jt){return this.collectConsumingCssText(jt.parsedCssText)}collectConsumingCssText(jt){return jt.replace(Fe.BRACKETED,'').replace(Fe.VAR_ASSIGN,'')}collectPropertiesInCssText(jt,Wt){for(let Bt,Kt;Bt=Fe.VAR_CONSUMED.exec(jt);)Kt=Bt[1],':'!==Bt[2]&&(Wt[Kt]=!0)}reify(jt){let Wt=Object.getOwnPropertyNames(jt);for(let Kt,Bt=0;Bt *'===Xt||'html'===Xt,Yt=0===Xt.indexOf(':host')&&!Vt;if('shady'===Bt&&(Vt=Xt===Gt+' > *.'+Gt||-1!==Xt.indexOf('html'),Yt=!Vt&&0===Xt.indexOf(Gt)),'shadow'===Bt&&(Vt=':host > *'===Xt||'html'===Xt,Yt=Yt&&!Vt),Vt||Yt){let zt=Gt;Yt&&(De&&!Wt.transformedSelector&&(Wt.transformedSelector=ct._transformRuleCss(Wt,ct._transformComplexSelector,ct._calcElementScope(jt.is),Gt)),zt=Wt.transformedSelector||Gt),Kt({selector:zt,isHost:Yt,isRoot:Vt})}}}hostAndRootPropertiesForScope(jt,Wt){let Bt={},Kt={},Gt=this,Xt=Wt&&Wt.__cssBuild;return ye(Wt,function(Vt){Gt.whenHostOrRootRule(jt,Vt,Xt,function(Yt){let zt=jt._element||jt;gt.call(zt,Yt.selector)&&(Yt.isHost?Gt.collectProperties(Vt,Bt):Gt.collectProperties(Vt,Kt))})},null,!0),{rootProps:Kt,hostProps:Bt}}transformStyles(jt,Wt,Bt){let Kt=this,Gt=ct._calcHostScope(jt.is,jt.extends),Xt=jt.extends?'\\'+Gt.slice(0,-1)+'\\]':Gt,Vt=new RegExp(Fe.HOST_PREFIX+Xt+Fe.HOST_SUFFIX),Yt=mt.get(jt).styleRules,zt=this._elementKeyframeTransforms(jt,Yt,Bt);return ct.elementStyles(jt,Yt,function(Jt){Kt.applyProperties(Jt,Wt),De||me(Jt)||!Jt.cssText||(Kt.applyKeyframeTransforms(Jt,zt),Kt._scopeSelector(Jt,Vt,Gt,Bt))})}_elementKeyframeTransforms(jt,Wt,Bt){let Kt=Wt._keyframes,Gt={};if(!De&&Kt)for(let Xt=0,Vt=Kt[Xt];Xt=Vt._useCount&&Vt.parentNode&&Vt.parentNode.removeChild(Vt)),De?Xt.customStyle?(Xt.customStyle.textContent=Gt,Kt=Xt.customStyle):Gt&&(Kt=ge(Gt,Bt,jt.shadowRoot,Xt.placeholder)):Kt?!Kt.parentNode&&fe(Kt,null,Xt.placeholder):Gt&&(Kt=ge(Gt,Bt,null,Xt.placeholder)),Kt&&(Kt._useCount=Kt._useCount||0,Xt.customStyle!=Kt&&Kt._useCount++,Xt.customStyle=Kt),ft&&(Kt.textContent=Kt.textContent),Kt}applyCustomStyle(jt,Wt){let Bt=ue(jt),Kt=this;jt.textContent=_e(Bt,function(Gt){let Xt=Gt.cssText=Gt.parsedCssText;Gt.propertyInfo&&Gt.propertyInfo.cssText&&(Xt=ie(Xt),Gt.cssText=Kt.valueForProperties(Xt,Wt))})}}var Nt=new vt;let St={};const Et=window.customElements;if(Et&&!De){const jt=Et.define;Et.define=function(Wt,Bt,Kt){return St[Wt]=ve(Wt),jt.call(Et,Wt,Bt,Kt)}}let At=Fe.MIXIN_MATCH,Tt=Fe.VAR_ASSIGN,Pt=/;\s*/m,Rt=/^\s*(initial)|(inherit)\s*$/,xt='_-_';class wt{constructor(){this._map={}}set(jt,Wt){jt=jt.trim(),this._map[jt]={properties:Wt,dependants:{}}}get(jt){return jt=jt.trim(),this._map[jt]}}class Mt{constructor(){this._currentTemplate=null,this._measureElement=null,this._map=new wt,this._separator=xt,this._boundProduceCssProperties=(jt,Wt,Bt,Kt)=>this._produceCssProperties(jt,Wt,Bt,Kt)}detectMixin(jt){const Wt=At.test(jt)||Tt.test(jt);return At.lastIndex=0,Tt.lastIndex=0,Wt}transformStyle(jt,Wt){let Bt=ue(jt);return this.transformRules(Bt,Wt),Bt}transformRules(jt,Wt){this._currentTemplate=ht[Wt],ye(jt,Bt=>{this.transformRule(Bt)}),this._currentTemplate=null}transformRule(jt){jt.cssText=this.transformCssText(jt.parsedCssText),':root'===jt.selector&&(jt.selector=':host > *')}transformCssText(jt){return jt=jt.replace(Tt,this._boundProduceCssProperties),this._consumeCssProperties(jt)}_getInitialValueForProperty(jt){return this._measureElement||(this._measureElement=document.createElement('meta'),this._measureElement.style.all='initial',document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(jt)}_consumeCssProperties(jt){for(let Wt;Wt=At.exec(jt);){let Bt=Wt[0],Kt=Wt[1],Gt=Wt.index,Xt=Gt+Bt.indexOf('@apply'),Vt=Gt+Bt.length,Yt=jt.slice(0,Xt),zt=jt.slice(Vt),Jt=this._cssTextToMap(Yt),$t=this._atApplyToCssProperties(Kt,Jt);jt=[Yt,$t,zt].join(''),At.lastIndex=Gt+$t.length}return jt}_atApplyToCssProperties(jt,Wt){jt=jt.replace(Pt,'');let Bt=[],Kt=this._map.get(jt);if(Kt||(this._map.set(jt,{}),Kt=this._map.get(jt)),Kt){this._currentTemplate&&(Kt.dependants[this._currentTemplate.name]=this._currentTemplate);let Gt,Xt,Vt;for(Gt in Kt.properties)Vt=Wt&&Wt[Gt],Xt=[Gt,': var(',jt,xt,Gt],Vt&&Xt.push(',',Vt),Xt.push(')'),Bt.push(Xt.join(''))}return Bt.join('; ')}_replaceInitialOrInherit(jt,Wt){let Bt=Rt.exec(Wt);return Bt&&(Bt[1]?Wt=Mt._getInitialValueForProperty(jt):Wt='apply-shim-inherit'),Wt}_cssTextToMap(jt){let Wt=jt.split(';'),Bt,Kt,Gt={};for(let Vt,Yt,Xt=0;Xt{oo&&this._map.get(oo)&&(Kt='@apply '+oo+';')}),!Kt)return jt;let Gt=this._consumeCssProperties(Kt),Xt=jt.slice(0,jt.indexOf('--')),Vt=this._cssTextToMap(Gt),Yt=Vt,zt=this._map.get(Wt),Jt=zt&&zt.properties;Jt?Yt=Object.assign(Object.create(Jt),Vt):this._map.set(Wt,Yt);let Qt,Zt,$t=[],eo=!1;for(Qt in Yt)Zt=Vt[Qt],void 0==Zt&&(Zt='initial'),Jt&&!(Qt in Jt)&&(eo=!0),$t.push(Wt+xt+Qt+': '+Zt);return eo&&this._invalidateMixinEntry(zt),zt&&(zt.properties=Yt),Bt&&(Xt=jt+';'+Xt),Xt+$t.join('; ')+';'}}let It=new Mt;window.ApplyShim=It;let Ot=function(){};if(!De){let jt=Xt=>{return Xt.classList&&!Xt.classList.contains(ct.SCOPE_NAME)||Xt instanceof SVGElement&&(!Xt.hasAttribute('class')||0>Xt.getAttribute('class').indexOf(ct.SCOPE_NAME))},Wt=Xt=>{for(let Yt,Vt=0;Vt{Bt.observe(Xt,{childList:!0,subtree:!0})},Gt=window.customElements&&!window.customElements.flush;if(Gt)Kt(document);else{let Xt=()=>{Kt(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Xt):requestAnimationFrame(function(){if('loading'===document.readyState){let Vt=function(){Xt(),document.removeEventListener('readystatechange',Vt)};document.addEventListener('readystatechange',Vt)}else Xt()})}Ot=function(){Wt(Bt.takeRecords())}}let Dt=new class{constructor(jt=100){this.cache={},this.typeMax=jt}_validate(jt,Wt,Bt){for(let Gt,Kt=0;Ktthis.typeMax&&Gt.shift(),this.cache[jt]=Gt}fetch(jt,Wt,Bt){let Kt=this.cache[jt];if(Kt)for(let Xt,Gt=Kt.length-1;0<=Gt;Gt--)if(Xt=Kt[Gt],this._validate(Xt,Wt,Bt))return Xt}};class Lt{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement,this._documentOwnerStyleInfo=mt.set(document.documentElement,new mt({rules:[]})),this._elementsHaveApplied=!1}get nativeShadow(){return De}get nativeCss(){return Le}get nativeCssApply(){return!1}flush(){Ot()}_generateScopeSelector(jt){let Wt=this._scopeCounter[jt]=(this._scopeCounter[jt]||0)+1;return`${jt}-${Wt}`}getStyleAst(jt){return ue(jt)}styleAstToString(jt){return _e(jt)}_gatherStyles(jt){let Wt=jt.content.querySelectorAll('style'),Bt=[];for(let Gt,Kt=0;Kt{De?ct.normalizeRootSelector(Bt):ct.documentRule(Bt),this.nativeCss&&!this.nativeCssApply&&It.transformRule(Bt)}),this.nativeCss?jt.textContent=_e(Wt):this._documentOwnerStyleInfo.styleRules.rules.push(Wt)}_revalidateApplyShim(jt){if(this.nativeCss&&!this.nativeCssApply){let Wt=ue(jt);It.transformRules(Wt),jt.textContent=_e(Wt)}}_applyCustomStyleToDocument(jt){this.nativeCss||Nt.applyCustomStyle(jt,this._documentOwnerStyleInfo.styleProperties)}getComputedStyleValue(jt,Wt){let Bt;if(!this.nativeCss){let Kt=mt.get(jt)||mt.get(this._styleOwnerForNode(jt));Bt=Kt.styleProperties[Wt]}return Bt=Bt||window.getComputedStyle(jt).getPropertyValue(Wt),Bt.trim()}setElementClass(jt,Wt){let Bt=jt.getRootNode(),Kt=Wt?Wt.split(/\s/):[],Gt=Bt.host&&Bt.host.localName;if(!Gt){var Xt=jt.getAttribute('class');if(Xt){let Vt=Xt.split(/\s/);for(let Yt=0;Yt