Files
webcomponentsjs/webcomponents-hi-ce-sd.js
Monica Dinculescu a7d2aae2c3 update bundles
2017-01-17 15:16:28 -08:00

3 lines
72 KiB
JavaScript

(function(){'use strict';function po(Ur,Fr){if(!(Ur instanceof Fr))throw new TypeError('Cannot call a class as a function')}function co(Ur){return Ur=_o(Ur),ho(uo(Ur),Ur)}function _o(Ur){return Ur.replace(Wo.comments,'').replace(Wo.port,'')}function uo(Ur){let Fr={start:0,end:Ur.length},Hr=Fr;for(let Wr=0,Kr=Ur.length;Wr<Kr;Wr++)if(Ur[Wr]===Fo){Hr.rules||(Hr.rules=[]);let jr=Hr,qr=jr.rules[jr.rules.length-1];Hr={start:Wr+1,parent:jr,previous:qr},jr.rules.push(Hr)}else Ur[Wr]===Ho&&(Hr.end=Wr+1,Hr=Hr.parent||Fr);return Fr}function ho(Ur,Fr){let Hr=Fr.substring(Ur.start,Ur.end-1);if(Ur.parsedCssText=Ur.cssText=Hr.trim(),Ur.parent){let Kr=Ur.previous?Ur.previous.end:Ur.parent.start;Hr=Fr.substring(Kr,Ur.start-1),Hr=mo(Hr),Hr=Hr.replace(Wo.multipleSpaces,' '),Hr=Hr.substring(Hr.lastIndexOf(';')+1);let jr=Ur.parsedSelector=Ur.selector=Hr.trim();Ur.atRule=0===jr.indexOf('@'),Ur.atRule?0===jr.indexOf('@media')?Ur.type=Uo.MEDIA_RULE:jr.match(Wo.keyframesRule)&&(Ur.type=Uo.KEYFRAMES_RULE,Ur.keyframesName=Ur.selector.split(Wo.multipleSpaces).pop()):0===jr.indexOf(Ko)?Ur.type=Uo.MIXIN_RULE:Ur.type=Uo.STYLE_RULE}let Wr=Ur.rules;if(Wr)for(let qr,Kr=0,jr=Wr.length;Kr<jr&&(qr=Wr[Kr]);Kr++)ho(qr,Fr);return Ur}function mo(Ur){return Ur.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let Fr=arguments[1],Hr=6-Fr.length;for(;Hr--;)Fr='0'+Fr;return'\\'+Fr})}function yo(Ur,Fr,Hr){Hr=Hr||'';let Wr='';if(Ur.cssText||Ur.rules){let Kr=Ur.rules;if(Kr&&!go(Kr))for(let $r,jr=0,qr=Kr.length;jr<qr&&($r=Kr[jr]);jr++)Wr=yo($r,Fr,Wr);else Wr=Fr?Ur.cssText:fo(Ur.cssText),Wr=Wr.trim(),Wr&&(Wr=' '+Wr+'\n')}return Wr&&(Ur.selector&&(Hr+=Ur.selector+' '+Fo+'\n'),Hr+=Wr,Ur.selector&&(Hr+=Ho+'\n\n')),Hr}function go(Ur){return 0===Ur[0].selector.indexOf(Ko)}function fo(Ur){return Ur=No(Ur),bo(Ur)}function No(Ur){return Ur.replace(Wo.customProp,'').replace(Wo.mixinProp,'')}function bo(Ur){return Ur.replace(Wo.mixinApply,'').replace(Wo.varApply,'')}function vo(Ur){Ur&&(Bo=Bo&&!Ur.shimcssproperties,$o=$o&&!Ur.shimshadow)}function Eo(Ur,Fr){return'string'==typeof Ur&&(Ur=co(Ur)),Fr&&Po(Ur,Fr),yo(Ur,Bo)}function Co(Ur){return!Ur.__cssRules&&Ur.textContent&&(Ur.__cssRules=co(Ur.textContent)),Ur.__cssRules}function To(Ur){return Ur.parent&&Ur.parent.type===Uo.KEYFRAMES_RULE}function Po(Ur,Fr,Hr,Wr){if(Ur){let Kr=!1;if(Wr&&Ur.type===Uo.MEDIA_RULE){let qr=Ur.selector.match(Vo.MEDIA_MATCH);qr&&!window.matchMedia(qr[1]).matches&&(Kr=!0)}Ur.type===Uo.STYLE_RULE?Fr(Ur):Hr&&Ur.type===Uo.KEYFRAMES_RULE?Hr(Ur):Ur.type===Uo.MIXIN_RULE&&(Kr=!0);let jr=Ur.rules;if(jr&&!Kr)for(let Br,qr=0,$r=jr.length;qr<$r&&(Br=jr[qr]);qr++)Po(Br,Fr,Hr,Wr)}}function xo(Ur,Fr,Hr,Wr){let Kr=Ro(Ur,Fr);return Ao(Kr,Hr,Wr)}function Ao(Ur,Fr,Hr){Fr=Fr||document.head;let Wr=Hr&&Hr.nextSibling||Fr.firstChild;return Yo=Ur,Fr.insertBefore(Ur,Wr)}function Ro(Ur,Fr){let Hr=document.createElement('style');return Fr&&Hr.setAttribute('scope',Fr),Hr.textContent=Ur,Hr}function Mo(Ur){let Fr=document.createComment(' Shady DOM styles for '+Ur+' '),Hr=Yo?Yo.nextSibling:null,Wr=document.head;return Wr.insertBefore(Fr,Hr||Wr.firstChild),Yo=Fr,Fr}function Oo(Ur,Fr){let Hr=0;for(let Wr=Fr,Kr=Ur.length;Wr<Kr;Wr++)if('('===Ur[Wr])Hr++;else if(')'===Ur[Wr]&&0==--Hr)return Wr;return-1}function Io(Ur,Fr){let Hr=Ur.indexOf('var(');if(-1===Hr)return Fr(Ur,'','','');let Wr=Oo(Ur,Hr+3),Kr=Ur.substring(Hr+4,Wr),jr=Ur.substring(0,Hr),qr=Io(Ur.substring(Wr+1),Fr),$r=Kr.indexOf(',');if(-1===$r)return Fr(jr,Kr.trim(),'',qr);let Br=Kr.substring(0,$r).trim(),Gr=Kr.substring($r+1).trim();return Fr(jr,Br,Gr,qr)}function Do(Ur,Fr){window.ShadyDOM?window.ShadyDOM.nativeMethods.setAttribute.call(Ur,'class',Fr):Ur.setAttribute('class',Fr)}function Lo(Ur,Fr){let Hr=parseInt(Ur/32);Fr[Hr]=(Fr[Hr]||0)|1<<Ur%32}(function(Ur){function Fr(Ss){return Ss.nodeType===Node.ELEMENT_NODE&&ys.call(Ss,es)}function Hr(Ss,vs){gs.forEach(Es=>{const Cs=Ss.attributes[Es],Ts=Cs&&Cs.value;Ts&&0>Ts.search(/({{|\[\[)/)&&(Cs.value='style'===Es?ds.resolveUrlsInCssText(Ts,vs):ds.replaceAttrUrl(Ts,vs))})}function Wr(Ss,vs){const Es=Ss.content;if(Es){const Cs=Es.querySelectorAll('style, form[action], [src], [href], [url], [style]');for(let Ts=0;Ts<Cs.length;Ts++){const Ps=Cs[Ts];'style'==Ps.localName?ds.resolveUrlsInStyle(Ps,vs):Hr(Ps,vs)}Kr(Es,vs)}}function Kr(Ss,vs){const Es=Ss.querySelectorAll('template');for(let Cs=0;Cs<Es.length;Cs++)Wr(Es[Cs],vs)}function jr(Ss,vs){const Es=Ss.querySelectorAll(hs);for(let Ps,Cs=0,Ts=Es.length;Cs<Ts&&(Ps=Es[Cs]);Cs++)Vr(Ps),Ps.href&&Ps.setAttribute('href',ds.replaceAttrUrl(Ps.getAttribute('href'),vs)),Ps.src&&Ps.setAttribute('src',ds.replaceAttrUrl(Ps.getAttribute('src'),vs)),'style'==Ps.localName?ds.resolveUrlsInStyle(Ps,vs):'script'===Ps.localName&&(Ps.textContent&&(Ps.textContent+=`\n//# sourceURL=${vs}`),Ps.setAttribute('type',fs));Kr(Ss,vs)}function qr(Ss,vs){const Es=Ss.querySelectorAll('dom-module');for(let Cs=0;Cs<Es.length;Cs++){const Ts=Es[Cs],Ps=Ts.getAttribute('assetpath')||'';Ts.setAttribute('assetpath',ds.replaceAttrUrl(Ps,vs))}}function $r(Ss){const vs=Ss.querySelectorAll(`script[type=${fs}]`);let Es=Promise.resolve();for(let Ps,Cs=0,Ts=vs.length;Cs<Ts&&(Ps=vs[Cs]);Cs++)Es=Es.then(()=>{const xs=Ss.createElement('script');xs.textContent=Ps.textContent,Ps.src&&xs.setAttribute('src',Ps.getAttribute('src'));const As=Vr(xs).catch(()=>xs);return rs=xs,Ps.parentNode.replaceChild(xs,Ps),As.then(Rs=>{Rs===rs&&(rs=null)})});return Es}function Br(Ss){const vs=Ss.querySelectorAll(us),Es=[];for(let Ps,Cs=0,Ts=vs.length;Cs<Ts&&(Ps=vs[Cs]);Cs++)Es.push(Vr(Ps).catch(()=>Ps));return Promise.all(Es)}function Gr(Ss){const vs=Ss.import.querySelectorAll(_s);for(let Ts,Es=0,Cs=vs.length;Es<Cs&&(Ts=vs[Es]);Es++){const Ps=document.createElement(Ts.localName);Vr(Ps),Ps.textContent=Ts.textContent;for(let xs=0,As=Ts.attributes.length;xs<As;xs++)Ps.setAttribute(Ts.attributes[xs].name,Ts.attributes[xs].value);Ts.parentNode.removeChild(Ts),Ss.parentNode.insertBefore(Ps,Ss)}}function Yr(Ss){const vs=Ss.querySelectorAll(es);for(let Cs,Es=vs.length-1;0<=Es&&(Cs=vs[Es]);Es--)if(!Cs.__fired){Cs.__fired=!0;const Ts=Cs.import?'load':'error';os.log&&console.warn('fire',Ts,Cs.href),Vr(Cs),Cs.dispatchEvent(new CustomEvent(Ts,{bubbles:!1,cancelable:!1,detail:void 0}))}}function Vr(Ss){return Ss.__loadPromise||(Ss.__loadPromise=new Promise((vs,Es)=>{Jr(Ss)?vs(Ss):(Ss.addEventListener('load',()=>vs(Ss)),Ss.addEventListener('error',()=>Es(Ss)))})),Ss.__loadPromise}function Jr(Ss){let vs=!1;if(ts&&Fr(Ss)&&Ss.import&&'loading'!==Ss.import.readyState)vs=!0;else if(!(Ns&&'style'===Ss.localName))'script'!==Ss.localName||Ss.src||(vs=!0);else if(-1==Ss.textContent.indexOf('@import'))vs=!0;else if(Ss.sheet){vs=!0;const Es=Ss.sheet.cssRules;for(let Cs=0,Ts=Es?Es.length:0;Cs<Ts&&vs;Cs++)Es[Cs].type===CSSRule.IMPORT_RULE&&(vs=!!Es[Cs].styleSheet)}return vs}function Xr(Ss,vs){const Es=document.createElement('import-content');Es.style.display='none',vs&&Es.setAttribute('import-href',vs),Ss&&(Es.innerHTML=Ss);const Cs=Es.querySelector('base');return Cs&&(vs=ds._resolveUrl(Cs.getAttribute('href'),vs),Cs.parentNode.removeChild(Cs)),qr(Es,vs),jr(Es,vs),Es}function Zr(Ss,vs){return vs=vs||document,zr(vs).then(Qr).then(Es=>{return Ss&&Ss(Es),Es})}function zr(Ss){return new Promise(vs=>{'loading'===Ss.readyState?Ss.addEventListener('readystatechange',()=>{'loading'!==Ss.readyState&&vs(Ss)}):vs(Ss)})}function Qr(Ss){let vs=Ss.querySelectorAll(es);const Es=[],Cs={allImports:[],loadedImports:[],errorImports:[]};for(let xs,Ts=0,Ps=vs.length;Ts<Ps&&(xs=vs[Ts]);Ts++)ys.call(xs,`${es} ${es}`)||(Cs.allImports.push(xs),Es.push(Vr(xs).then(As=>{return Cs.loadedImports.push(As),As}).catch(As=>{return Cs.errorImports.push(As),As})));return Promise.all(Es).then(()=>Cs)}const es='link[rel=import]',ts=!!('import'in document.createElement('link')),os={bust:!1,log:!1};let rs=null;!1=='currentScript'in document&&Object.defineProperty(document,'currentScript',{get:function(){return rs||('complete'===document.readyState?null:document.scripts[document.scripts.length-1])},configurable:!0});const ns=/(^\/)|(^#)|(^[\w-\d]*:)/,as=/(url\()([^)]*)(\))/g,ls=/(@import[\s]+(?!url\())([^;]*)(;)/g,ds={resolveUrlsInStyle:function(Ss,vs){Ss.textContent=ds.resolveUrlsInCssText(Ss.textContent,vs)},resolveUrlsInCssText:function(Ss,vs){let Es=ds.replaceUrls(Ss,vs,as);return Es=ds.replaceUrls(Es,vs,ls),Es},replaceUrls:function(Ss,vs,Es){return Ss.replace(Es,function(Cs,Ts,Ps,xs){let As=Ps.replace(/["']/g,'');return vs&&(As=ds._resolveUrl(As,vs)),Ts+'\''+As+'\''+xs})},replaceAttrUrl:function(Ss,vs){return Ss&&ns.test(Ss)?Ss:ds._resolveUrl(Ss,vs)},_resolveUrl:function(Ss,vs){if(void 0===ds.__workingURL){ds.__workingURL=!1;try{const Cs=new URL('b','http://a');Cs.pathname='c%20d',ds.__workingURL='http://a/c%20d'===Cs.href}catch(Cs){}}if(ds.__workingURL)return new URL(Ss,vs).href;let Es=ds.__tempDoc;return Es||(Es=document.implementation.createHTMLDocument('temp'),ds.__tempDoc=Es,Es.__base=Es.createElement('base'),Es.head.appendChild(Es.__base),Es.__anchor=Es.createElement('a')),Es.__base.href=vs,Es.__anchor.href=Ss,Es.__anchor.href||Ss}},ps={async:!0,load:function(Ss,vs){const Es=new XMLHttpRequest;return os.bust&&(Ss+='?'+Math.random()),Es.open('GET',Ss,ps.async),Es.addEventListener('readystatechange',()=>{if(4===Es.readyState){let Ts;try{const As=Es.getResponseHeader('Location');As&&(Ts='/'===As.substr(0,1)?location.origin+As:As)}catch(As){console.error(As.message)}const Ps=200<=Es.status&&300>Es.status||304===Es.status||0===Es.status,xs=Es.response||Es.responseText;vs(!Ps,xs,Ts)}}),Es.send(),Es}};class cs{constructor(Ss,vs){this.cache={},this.onload=Ss,this.oncomplete=vs,this.inflight=0,this.pending={}}addNodes(Ss){this.inflight+=Ss.length;for(let Cs,vs=0,Es=Ss.length;vs<Es&&(Cs=Ss[vs]);vs++)this.require(Cs);this.checkDone()}addNode(Ss){this.inflight++,this.require(Ss),this.checkDone()}require(Ss){const vs=Ss.src||Ss.href;this.dedupe(vs,Ss)||this.fetch(vs,Ss)}dedupe(Ss,vs){if(this.pending[Ss])return this.pending[Ss].push(vs),!0;return this.cache[Ss]?(this.onload(Ss,vs,this.cache[Ss]),this.tail(),!0):(this.pending[Ss]=[vs],!1)}fetch(Ss,vs){if(os.log&&console.log('fetch',Ss,vs),!Ss)this.receive(Ss,vs,!0,'error: href must be specified');else if(Ss.match(/^data:/)){const Es=Ss.split(','),Cs=Es[0];let Ts=Es[1];Ts=-1<Cs.indexOf(';base64')?atob(Ts):decodeURIComponent(Ts),this.receive(Ss,vs,!1,Ts)}else ps.load(Ss,(Es,Cs,Ts)=>this.receive(Ss,vs,Es,Cs,Ts))}receive(Ss,vs,Es,Cs,Ts){this.cache[Ss]=Cs;const Ps=this.pending[Ss];for(let Rs,xs=0,As=Ps.length;xs<As&&(Rs=Ps[xs]);xs++)this.onload(Ss,Rs,Cs,Es,Ts),this.tail();this.pending[Ss]=null}tail(){--this.inflight,this.checkDone()}checkDone(){this.inflight||this.oncomplete()}}const _s=['style:not([type])','link[rel=stylesheet][href]:not([type])'].join(','),us=[`${es} style:not([type])`,`${es} link[rel=stylesheet][href]:not([type])`].join(','),hs=[es,_s,'script:not([type])','script[type="application/javascript"]','script[type="text/javascript"]'].join(',');const ys=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,gs=['action','src','href','url','style'],fs='import-script',Ns=/Trident/.test(navigator.userAgent),bs=!Ns&&/Edge\/\d./i.test(navigator.userAgent);new class{constructor(Ss){this.documents={},this._doc=Ss;const vs=Ss.querySelectorAll(es);for(let Es=0,Cs=vs.length;Es<Cs;Es++)Vr(vs[Es]);new MutationObserver(this._onMutation.bind(this)).observe(Ss.head,{childList:!0}),ts||(this._loader=new cs(this._onLoaded.bind(this),this._onLoadedAll.bind(this)),zr(Ss).then(()=>this._loadSubtree(Ss)))}_loadSubtree(Ss){const vs=Ss.querySelectorAll(es);this._loader.addNodes(vs)}_onLoaded(Ss,vs,Es,Cs,Ts){if(os.log&&console.log('loaded',Ss,vs),void 0===this.documents[Ss])if(Cs)this.documents[Ss]=null;else{const Ps=Xr(Es,Ts||Ss);this._loadSubtree(Ps),this.documents[Ss]=Ps}}_onLoadedAll(){this._flatten(this._doc),Promise.all([$r(this._doc),Br(this._doc)]).then(()=>Yr(this._doc))}_flatten(Ss){const vs=Ss.querySelectorAll(es);for(let Ts,Es=0,Cs=vs.length;Es<Cs&&(Ts=vs[Es]);Es++)Ts.import=this.documents[Ts.href],Ts.import&&!Ts.import.__firstImport&&(Ts.import.__firstImport=Ts,this._flatten(Ts.import),Ss===document&&((Ns||bs)&&Gr(Ts),this._observe(Ts.import)),Ts.appendChild(Ts.import))}_observe(Ss){Ss.__importObserver||(Ss.__importObserver=new MutationObserver(this._onMutation.bind(this)),Ss.__importObserver.observe(Ss,{childList:!0,subtree:!0}))}_onMutation(Ss){for(let Es,vs=0;vs<Ss.length&&(Es=Ss[vs]);vs++)for(let Cs=0,Ts=Es.addedNodes?Es.addedNodes.length:0;Cs<Ts;Cs++){const Ps=Es.addedNodes[Cs];Ps&&Fr(Ps)&&(ts?Vr(Ps):this._loader.addNode(Ps))}}}(document),Zr(Ss=>document.dispatchEvent(new CustomEvent('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:Ss}))),Ur.useNative=ts,Ur.whenReady=Zr})(window.HTMLImports=window.HTMLImports||{}),function(){function Ur(){this.a=new Map,this.j=new Map,this.h=new Map,this.o=new Set,this.C=new MutationObserver(this.D.bind(this)),this.f=null,this.F=new Set,this.enableFlush=!0,this.s=!1,this.m=null}function Fr(){return qr.customElements}function Hr(zr){if(!/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(zr)||-1!==$r.indexOf(zr))return Error('The element name \''+zr+'\' is not valid.')}function Wr(zr,Qr,es,ts){var os=Fr();return zr=es?Gr.call(zr,Qr,es):Gr.call(zr,Qr),(Qr=os.a.get(Qr.toLowerCase()))&&os.u(zr,Qr,ts),os.b(zr),zr}function Kr(zr,Qr,es,ts){Qr=Qr.toLowerCase();var os=zr.getAttribute(Qr);ts.call(zr,Qr,es),1==zr.__$CE_upgraded&&(ts=Fr().a.get(zr.localName),es=ts.A,(ts=ts.i)&&0<=es.indexOf(Qr)&&(es=zr.getAttribute(Qr),es!==os&&ts.call(zr,Qr,os,es,null)))}var jr=document,qr=window;if(!(Fr()&&(Fr().g=function(){},!Fr().forcePolyfill))){var $r='annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph'.split(' ');Ur.prototype.L=function(zr,Qr){function es(ls){var ds=rs[ls];if(void 0!==ds&&'function'!=typeof ds)throw Error(os+' \''+ls+'\' is not a Function');return ds}if('function'!=typeof Qr)throw new TypeError('constructor must be a Constructor');var ts=Hr(zr);if(ts)throw ts;if(this.a.has(zr))throw Error('An element with name \''+zr+'\' is already defined');if(this.j.has(Qr))throw Error('Definition failed for \''+zr+'\': The constructor is already used.');var os=zr,rs=Qr.prototype;if('object'!=typeof rs)throw new TypeError('Definition failed for \''+zr+'\': constructor.prototype must be an object');var ts=es('connectedCallback'),ns=es('disconnectedCallback'),as=es('attributeChangedCallback');this.a.set(os,{name:zr,localName:os,constructor:Qr,v:ts,w:ns,i:as,A:as&&Qr.observedAttributes||[]}),this.j.set(Qr,os),this.K(),(zr=this.h.get(os))&&(zr.resolve(void 0),this.h.delete(os))},Ur.prototype.get=function(zr){return(zr=this.a.get(zr))?zr.constructor:void 0},Ur.prototype.M=function(zr){var Qr=Hr(zr);if(Qr)return Promise.reject(Qr);if(this.a.has(zr))return Promise.resolve();if(Qr=this.h.get(zr))return Qr.N;var es,ts=new Promise(function(os){es=os}),Qr={N:ts,resolve:es};return this.h.set(zr,Qr),ts},Ur.prototype.g=function(){this.enableFlush&&(this.l(this.m.takeRecords()),this.D(this.C.takeRecords()),this.o.forEach(function(zr){this.l(zr.takeRecords())},this))},Ur.prototype.K=function(){var zr=this;if(!this.s){this.s=!0;var Qr=function(){zr.s=!1,zr.m||(zr.m=zr.b(jr)),zr.c(jr.childNodes)};window.HTMLImports?window.HTMLImports.whenReady(Qr):Qr()}},Ur.prototype.I=function(zr){this.f=zr},Ur.prototype.b=function(zr){return null==zr.__$CE_observer?(zr.__$CE_observer=new MutationObserver(this.l.bind(this)),zr.__$CE_observer.observe(zr,{childList:!0,subtree:!0}),this.enableFlush&&this.o.add(zr.__$CE_observer),zr.__$CE_observer):zr.__$CE_observer},Ur.prototype.J=function(zr){null!=zr.__$CE_observer&&(zr.__$CE_observer.disconnect(),this.enableFlush&&this.o.delete(zr.__$CE_observer),zr.__$CE_observer=null)},Ur.prototype.l=function(zr){for(var es,Qr=0;Qr<zr.length;Qr++)if(es=zr[Qr],'childList'===es.type){var ts=es.removedNodes;this.c(es.addedNodes),this.H(ts)}},Ur.prototype.c=function(zr,Qr){Qr=Qr||new Set;for(var ts,es=0;es<zr.length;es++)if(ts=zr[es],ts.nodeType===Node.ELEMENT_NODE){this.J(ts),ts=jr.createTreeWalker(ts,NodeFilter.SHOW_ELEMENT,null,!1);do this.G(ts.currentNode,Qr);while(ts.nextNode())}},Ur.prototype.G=function(zr,Qr){if(!Qr.has(zr)){Qr.add(zr);var es=this.a.get(zr.localName);if(es){zr.__$CE_upgraded||this.u(zr,es,!0);var ts;if(ts=zr.__$CE_upgraded&&!zr.__$CE_attached)a:{ts=zr;do{if(ts.__$CE_attached||ts.nodeType===Node.DOCUMENT_NODE){ts=!0;break a}ts=ts.parentNode||ts.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&ts.host}while(ts);ts=!1}ts&&(zr.__$CE_attached=!0,es.v&&es.v.call(zr))}zr.shadowRoot&&this.c(zr.shadowRoot.childNodes,Qr),'LINK'===zr.tagName&&zr.rel&&-1!==zr.rel.toLowerCase().split(' ').indexOf('import')&&this.B(zr,Qr)}},Ur.prototype.B=function(zr,Qr){var es=zr.import;if(es)Qr.has(es)||(Qr.add(es),es.__$CE_observer||this.b(es),this.c(es.childNodes,Qr));else if(Qr=zr.href,!this.F.has(Qr)){this.F.add(Qr);var ts=this,os=function(){zr.removeEventListener('load',os),zr.import.__$CE_observer||ts.b(zr.import),ts.c(zr.import.childNodes)};zr.addEventListener('load',os)}},Ur.prototype.H=function(zr){for(var es,Qr=0;Qr<zr.length;Qr++)if(es=zr[Qr],es.nodeType===Node.ELEMENT_NODE){this.b(es),es=jr.createTreeWalker(es,NodeFilter.SHOW_ELEMENT,null,!1);do{var ts=es.currentNode;if(ts.__$CE_upgraded&&ts.__$CE_attached){ts.__$CE_attached=!1;var os=this.a.get(ts.localName);os&&os.w&&os.w.call(ts)}}while(es.nextNode())}},Ur.prototype.u=function(zr,Qr,es){if(zr.__proto__=Qr.constructor.prototype,es&&(this.I(zr),new Qr.constructor,zr.__$CE_upgraded=!0,console.assert(!this.f)),es=Qr.A,(Qr=Qr.i)&&0<es.length){this.C.observe(zr,{attributes:!0,attributeOldValue:!0,attributeFilter:es});for(var os,ts=0;ts<es.length;ts++)if(os=es[ts],zr.hasAttribute(os)){var rs=zr.getAttribute(os);Qr.call(zr,os,null,rs,null)}}},Ur.prototype.D=function(zr){for(var es,Qr=0;Qr<zr.length;Qr++)if(es=zr[Qr],'attributes'===es.type){var ts=es.target,os=this.a.get(ts.localName),rs=es.attributeName,ns=es.oldValue,as=ts.getAttribute(rs);as!==ns&&os.i.call(ts,rs,ns,as,es.attributeNamespace)}},window.CustomElementRegistry=Ur,Ur.prototype.define=Ur.prototype.L,Ur.prototype.get=Ur.prototype.get,Ur.prototype.whenDefined=Ur.prototype.M,Ur.prototype.flush=Ur.prototype.g,Ur.prototype.polyfilled=!0,Ur.prototype._observeRoot=Ur.prototype.b,Ur.prototype._addImport=Ur.prototype.B;var Br=qr.HTMLElement;Ur.prototype.nativeHTMLElement=Br,qr.HTMLElement=function(){var zr=Fr();if(zr.f){var Qr=zr.f;return zr.f=null,Qr}if(this.constructor)return zr=zr.j.get(this.constructor),Wr(jr,zr,void 0,!1);throw Error('Unknown constructor. Did you call customElements.define()?')},qr.HTMLElement.prototype=Br.prototype;var Gr=jr.createElement;jr.createElement=function(zr,Qr){return Wr(jr,zr,Qr,!0)};var Yr=jr.createElementNS;jr.createElementNS=function(zr,Qr){return'http://www.w3.org/1999/xhtml'===zr?jr.createElement(Qr):Yr.call(jr,zr,Qr)};var Vr=Element.prototype.attachShadow;Vr&&Object.defineProperty(Element.prototype,'attachShadow',{value:function(zr){return zr=Vr.call(this,zr),Fr().b(zr),zr}});var Jr=jr.importNode;jr.importNode=function(zr,Qr){return zr=Jr.call(jr,zr,Qr),Fr().c(zr.nodeType===Node.ELEMENT_NODE?[zr]:zr.childNodes),zr};var Xr=Element.prototype.setAttribute;Element.prototype.setAttribute=function(zr,Qr){Kr(this,zr,Qr,Xr)};var Zr=Element.prototype.removeAttribute;Element.prototype.removeAttribute=function(zr){Kr(this,zr,null,Zr)},Object.defineProperty(window,'customElements',{value:new Ur,configurable:!0,enumerable:!0}),window.CustomElements={takeRecords:function(){Fr().g&&Fr().g()}}}}();var wo='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(Ur){return typeof Ur}:function(Ur){return Ur&&'function'==typeof Symbol&&Ur.constructor===Symbol&&Ur!==Symbol.prototype?'symbol':typeof Ur},ko=function(){function Ur(Fr,Hr){for(var Kr,Wr=0;Wr<Hr.length;Wr++)Kr=Hr[Wr],Kr.enumerable=Kr.enumerable||!1,Kr.configurable=!0,'value'in Kr&&(Kr.writable=!0),Object.defineProperty(Fr,Kr.key,Kr)}return function(Fr,Hr,Wr){return Hr&&Ur(Fr.prototype,Hr),Wr&&Ur(Fr,Wr),Fr}}();(function(){'use strict';function Ur(Pa){return'ShadyRoot'===Pa.__localName}function Fr(Pa){var xa=Pa.getRootNode();if(Ur(xa))return xa}function Hr(Pa,xa){return hn.call(Pa,xa)}function Wr(Pa,xa,Aa){var Ra=Object.getOwnPropertyDescriptor(xa,Pa);Ra&&Object.defineProperty(Aa,Pa,Ra)}function Kr(Pa,xa){if(Pa&&xa)for(var Ra,Aa=Object.getOwnPropertyNames(xa),Ma=0;Ma<Aa.length&&(Ra=Aa[Ma]);Ma++)Wr(Ra,xa,Pa);return Pa||xa}function jr(Pa){for(var xa=arguments.length,Aa=Array(1<xa?xa-1:0),Ra=1;Ra<xa;Ra++)Aa[Ra-1]=arguments[Ra];for(var Ma=0;Ma<Aa.length;Ma++)Kr(Pa,Aa[Ma]);return Pa}function qr(Pa,xa){for(var Aa in xa)Pa[Aa]=xa[Aa];return Pa}function $r(Pa,xa){var Aa=Object.getPrototypeOf(Pa);if(!Aa.hasOwnProperty('__patchProto')){var Ra=Object.create(Aa);Ra.__sourceProto=Aa,Kr(Ra,xa),Aa.__patchProto=Ra}Pa.__proto__=Aa.__patchProto}function Br(Pa){Nn||(Nn=!0,mn.then(Gr)),gn.push(Pa)}function Gr(){for(Nn=!1,bn++;gn.length;)gn.shift()();yn&&yn.flush&&yn.flush();var Pa=100<bn;if(gn.length&&!Pa&&Gr(),bn=0,Pa)throw new Error('Loop detected in ShadyDOM distribution, aborting.')}function Vr(Pa){return'&'===Pa?'&amp;':'<'===Pa?'&lt;':'>'===Pa?'&gt;':'"'===Pa?'&quot;':'\xA0'===Pa?'&nbsp;':void 0}function Jr(Pa){return Pa.replace(qn,Vr)}function Xr(Pa){return Pa.replace($n,Vr)}function Zr(Pa){for(var xa={},Aa=0;Aa<Pa.length;Aa++)xa[Pa[Aa]]=!0;return xa}function zr(Pa,xa,Aa){switch(Pa.nodeType){case Node.ELEMENT_NODE:{for(var Ia,Ra=Pa.localName,Ma='<'+Ra,Oa=Pa.attributes,Da=0;Ia=Oa[Da];Da++)Ma+=' '+Ia.name+'="'+Jr(Ia.value)+'"';return Ma+='>',Bn[Ra]?Ma:Ma+Qr(Pa,Aa)+'</'+Ra+'>'}case Node.TEXT_NODE:{var La=Pa.data;return xa&&Gn[xa.localName]?La:Xr(La)}case Node.COMMENT_NODE:return'<!--'+Pa.data+'-->';default:throw window.console.error(Pa),new Error('not implemented');}}function Qr(Pa,xa){'template'===Pa.localName&&(Pa=Pa.content);for(var Ma,Aa='',Ra=xa?xa(Pa):Pa.childNodes,Oa=0,Ia=Ra.length;Oa<Ia&&(Ma=Ra[Oa]);Oa++)Aa+=zr(Ma,Pa,xa);return Aa}function es(Pa){return Yn.currentNode=Pa,Yn.parentNode()}function ts(Pa){return Yn.currentNode=Pa,Yn.firstChild()}function os(Pa){return Yn.currentNode=Pa,Yn.lastChild()}function rs(Pa){var xa=[];Yn.currentNode=Pa;for(var Aa=Yn.firstChild();Aa;)xa.push(Aa),Aa=Yn.nextSibling();return xa}function ns(Pa){return Vn.currentNode=Pa,Vn.firstChild()}function as(Pa){return Vn.currentNode=Pa,Vn.lastChild()}function ls(Pa){return Vn.currentNode=Pa,Vn.previousSibling()}function ds(Pa){return Vn.currentNode=Pa,Vn.nextSibling()}function ps(Pa){var xa=[];Vn.currentNode=Pa;for(var Aa=Vn.firstChild();Aa;)xa.push(Aa),Aa=Vn.nextSibling();return xa}function cs(Pa){return Qr(Pa,function(xa){return rs(xa)})}function _s(Pa){if(Pa.nodeType!==Node.ELEMENT_NODE)return Pa.nodeValue;for(var xa,Aa=document.createTreeWalker(Pa,NodeFilter.SHOW_TEXT,null,!1),Ra='';xa=Aa.nextNode();)Ra+=xa.nodeValue;return Ra}function us(Pa,xa){return Pa.__shady&&Pa.__shady[xa]}function hs(Pa,xa){return void 0!==us(Pa,xa)}function ms(Pa){return{get:function(){var Aa=us(this,Pa);return void 0===Aa?Jn[Pa](this):Aa},configurable:!0}}function ys(Pa,xa){for(var Aa=Array.from(xa.childNodes),Ra=0;Ra<Aa.length;Ra++)Pa.appendChild(Aa[Ra])}function gs(Pa){for(;Pa.firstChild;)Pa.removeChild(Pa.firstChild)}function fs(){return Zn&&Zn.get?Zn.get.call(document):cn.hasDescriptors?void 0:document.activeElement}function Ns(Pa){var xa=fs();if(!xa)return null;var Aa=!!Ur(Pa);if(Pa!==document){if(!Aa)return null;if(Pa.host===xa||!Pa.host.contains(xa))return null}for(var Ra=Fr(xa);Ra&&Ra!==Pa;)xa=Ra.host,Ra=Fr(xa);return Pa===document?Ra?null:xa:Ra===Pa?xa:null}function bs(Pa,xa,Aa){for(var Ra in xa){var Ma=Object.getOwnPropertyDescriptor(Pa,Ra);Ma&&Ma.configurable||!Ma&&Aa?Object.defineProperty(Pa,Ra,xa[Ra]):Aa&&console.warn('Could not define',Ra,'on',Pa)}}function Ss(Pa){bs(Pa,zn),bs(Pa,Qn),bs(Pa,ta)}function vs(Pa,xa,Aa){if(ra(xa),xa.__shady=xa.__shady||{},hs(xa,'firstChild')&&(xa.__shady.childNodes=null),Pa.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var Ra=Pa.childNodes,Ma=0;Ma<Ra.length;Ma++)Es(Ra[Ma],xa,Aa);Pa.__shady=Pa.__shady||{};var Oa=hs(Pa,'firstChild')?null:void 0;Pa.__shady.firstChild=Pa.__shady.lastChild=Oa,Pa.__shady.childNodes=Oa}else Es(Pa,xa,Aa)}function Es(Pa,xa,Aa){oa(Pa),Aa=Aa||null,Pa.__shady=Pa.__shady||{},xa.__shady=xa.__shady||{},Aa&&(Aa.__shady=Aa.__shady||{}),Pa.__shady.previousSibling=Aa?Aa.__shady.previousSibling:xa.lastChild;var Ra=Pa.__shady.previousSibling;Ra&&Ra.__shady&&(Ra.__shady.nextSibling=Pa);var Ma=Pa.__shady.nextSibling=Aa;Ma&&Ma.__shady&&(Ma.__shady.previousSibling=Pa),Pa.__shady.parentNode=xa,Aa?Aa===xa.__shady.firstChild&&(xa.__shady.firstChild=Pa):(xa.__shady.lastChild=Pa,!xa.__shady.firstChild&&(xa.__shady.firstChild=Pa)),xa.__shady.childNodes=null}function Cs(Pa,xa){Pa.__shady=Pa.__shady||{},xa.__shady=xa.__shady||{},Pa===xa.__shady.firstChild&&(xa.__shady.firstChild=Pa.__shady.nextSibling),Pa===xa.__shady.lastChild&&(xa.__shady.lastChild=Pa.__shady.previousSibling);var Aa=Pa.__shady.previousSibling,Ra=Pa.__shady.nextSibling;Aa&&(Aa.__shady=Aa.__shady||{},Aa.__shady.nextSibling=Ra),Ra&&(Ra.__shady=Ra.__shady||{},Ra.__shady.previousSibling=Aa),Pa.__shady.parentNode=Pa.__shady.previousSibling=Pa.__shady.nextSibling=void 0,hs(xa,'childNodes')&&(xa.__shady.childNodes=null)}function Ts(Pa,xa,Aa){var Ma,Ra=Fr(Pa);Ra&&(xa.__noInsertionPoint&&!Ra._changePending&&(Ra._skipUpdateInsertionPoints=!0),Ma=Is(xa,Pa,Ra),Ma&&(Ra._skipUpdateInsertionPoints=!1)),hs(Pa,'firstChild')&&vs(xa,Pa,Aa);var Oa=Os(xa,Pa,Ra,Ma)||Pa.shadyRoot;return Oa}function Ps(Pa){var Aa,xa=hs(Pa,'parentNode')&&us(Pa,'parentNode'),Ra=Fr(Pa);if(xa||Ra){Aa=Fs(Pa),xa&&Cs(Pa,xa);var Ma=Ra&&Ls(Ra,Pa),Oa=xa&&Ra&&xa.localName===Ra.getInsertionPointTag();(Ma||Oa)&&(Ra._skipUpdateInsertionPoints=!1,Hs(Ra))}return ks(Pa),Aa}function xs(Pa,xa,Aa){var Ra=Pa.__shady&&Pa.__shady.observer;Ra&&(xa&&Ra.addedNodes.push(xa),Aa&&Ra.removedNodes.push(Aa),Ra.schedule())}function As(Pa,xa){return xa?(xs(xa,null,Pa),Ps(Pa)):void ks(Pa)}function Rs(Pa){return void 0!==Pa.__ownerShadyRoot}function Ms(Pa){if(Pa&&Pa.nodeType){var xa=Pa.__ownerShadyRoot;if(void 0===xa){if(Ur(Pa))xa=Pa;else{var Aa=Pa.parentNode;xa=Aa?Ms(Aa):Pa}document.documentElement.contains(Pa)&&(Pa.__ownerShadyRoot=xa)}return xa}}function Os(Pa,xa,Aa,Ra){var Ma=Aa&&Aa.getInsertionPointTag()||'',Oa=Pa.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!Pa.__noInsertionPoint&&Ma&&Pa.querySelector(Ma),Ia=Oa&&Oa.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE,Da=Oa||Pa.localName===Ma;(Da||xa.localName===Ma||Ra)&&Aa&&Hs(Aa);var La=Ds(xa);return La&&Hs(xa.shadyRoot),La||Da&&!Ia}function Is(Pa,xa,Aa){var Ra,Ma=Aa.getInsertionPointTag();if(Pa.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!Pa.__noInsertionPoint)for(var Ia,Da,La,Oa=Pa.querySelectorAll(Ma),wa=0;wa<Oa.length&&(Ia=Oa[wa]);wa++)Da=Ia.parentNode,Da===Pa&&(Da=xa),La=Is(Ia,Da,Aa),Ra=Ra||La;else Pa.localName===Ma&&(sa(xa),sa(Pa),Ra=!0);return Ra}function Ds(Pa){return Pa&&Pa.shadyRoot&&Pa.shadyRoot.hasInsertionPoint()}function Ls(Pa,xa){for(var Aa,Oa,Ra=Pa._insertionPoints,Ma=0;Ma<Ra.length;Ma++)if(Oa=Ra[Ma],ws(xa,Oa))for(var Ia=Oa.assignedNodes({flatten:!0}),Da=0;Da<Ia.length;Da++){Aa=!0;var La=Ia[Da],wa=es(La);wa&&Rn.call(wa,La)}return Aa}function ws(Pa,xa){for(;xa;){if(xa==Pa)return!0;xa=xa.parentNode}}function ks(Pa){if(Rs(Pa))for(var Aa,xa=Pa.childNodes,Ra=0,Ma=xa.length;Ra<Ma&&(Aa=xa[Ra]);Ra++)ks(Aa);Pa.__ownerShadyRoot=void 0}function Us(Pa){for(var Ra,xa=Pa.assignedNodes({flatten:!0}),Aa=Ms(Pa),Ma=0,Oa=xa.length;Ma<Oa&&(Ra=xa[Ma]);Ma++)if(Aa.isFinalDestination(Pa,Ra))return Ra}function Fs(Pa){var xa=Pa.parentNode;if(Ds(xa))return Hs(xa.shadyRoot),!0}function Hs(Pa){Pa._changePending=!0,Pa.update()}function Ws(Pa,xa){if('slot'===xa)Fs(Pa);else if('slot'===Pa.localName&&'name'===xa){var Aa=Fr(Pa);Aa&&Aa.update()}}function Ks(Pa,xa,Aa){var Ra=[];return js(Pa.childNodes,xa,Aa,Ra),Ra}function js(Pa,xa,Aa,Ra){for(var Ma,Oa=0,Ia=Pa.length;Oa<Ia&&(Ma=Pa[Oa]);Oa++)if(Ma.nodeType===Node.ELEMENT_NODE&&qs(Ma,xa,Aa,Ra))return!0}function qs(Pa,xa,Aa,Ra){var Ma=xa(Pa);return Ma&&Ra.push(Pa),Aa&&Aa(Ma)?Ma:void js(Pa.childNodes,xa,Aa,Ra)}function $s(Pa){var xa=Pa.getRootNode();Ur(xa)&&xa.render()}function Bs(Pa,xa,Aa){window.ShadyCSS&&'class'===xa&&Pa.ownerDocument===document?window.ShadyCSS.setElementClass(Pa,Aa):(On.call(Pa,xa,Aa),Ws(Pa,xa))}function Gs(Pa,xa){Dn.call(Pa,xa),Ws(Pa,xa)}function Ys(Pa,xa,Aa){if(Aa){var Ra=us(Aa,'parentNode');if(void 0!==Ra&&Ra!==Pa)throw Error('The ref_node to be inserted before is not a child of this node')}if(xa.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var Ma=us(xa,'parentNode');As(xa,Ma)}if(!Ts(Pa,xa,Aa)){if(Aa){var Oa=Fr(Aa);Oa&&(Aa=Aa.localName===Oa.getInsertionPointTag()?Us(Aa):Aa)}var Ia=Ur(Pa)?Pa.host:Pa;Aa?xn.call(Ia,xa,Aa):Tn.call(Ia,xa)}return xs(Pa,xa),xa}function Vs(Pa,xa){if(xa.parentNode!==Pa)throw Error('The node to be removed is not a child of this node: '+xa);if(!Ps(xa)){var Aa=Ur(Pa)?Pa.host:Pa,Ra=es(xa);Aa===Ra&&Rn.call(Aa,xa)}return xs(Pa,null,xa),xa}function Js(Pa,xa){if('template'==Pa.localName)return wn.call(Pa,xa);var Aa=wn.call(Pa,!1);if(xa)for(var Ma,Ra=Pa.childNodes,Oa=0;Oa<Ra.length;Oa++)Ma=Ra[Oa].cloneNode(!0),Aa.appendChild(Ma);return Aa}function Xs(Pa,xa,Aa){if(Aa||(Aa=Un),Pa.ownerDocument!==document)return Aa.call(document,Pa,xa);var Ra=Aa.call(document,Pa,!1);if(xa)for(var Oa,Ma=Pa.childNodes,Ia=0;Ia<Ma.length;Ia++)Oa=Xs(Ma[Ia],!0,Aa),Ra.appendChild(Oa);return Ra}function Zs(Pa,xa){for(var Aa=[],Ra=Pa,Ma=Pa===window?window:Pa.getRootNode();Ra;)Aa.push(Ra),Ra=Ra.assignedSlot?Ra.assignedSlot:Ra.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Ra.host&&(xa||Ra!==Ma)?Ra.host:Ra.parentNode;return Aa[Aa.length-1]===document&&Aa.push(window),Aa}function zs(Pa,xa){if(!Ur)return Pa;for(var Ma,Oa,Ia,Da,Aa=Zs(Pa,!0),Ra=xa,La=0;La<Ra.length;La++)if(Ma=Ra[La],Ia=Ma===window?window:Ma.getRootNode(),Ia!=Oa&&(Da=Aa.indexOf(Ia),Oa=Ia),!Ur(Ia)||-1<Da)return Ma}function Qs(Pa){var xa=function(Ra,Ma){var Oa=new Pa(Ra,Ma);return Oa.__composed=Ma&&!!Ma.composed,Oa};return qr(xa,Pa),xa.prototype=Pa.prototype,xa}function en(Pa,xa,Aa){var Ra=xa.__handlers&&xa.__handlers[Pa.type]&&xa.__handlers[Pa.type][Aa];if(Ra)for(var Ma,Oa=0;Ma=Ra[Oa];Oa++)if(Ma.call(xa,Pa),Pa.__immediatePropagationStopped)return}function tn(Pa){var Aa,xa=Pa.composedPath();Object.defineProperty(Pa,'currentTarget',{get:function(){return Aa},configurable:!0});for(var Ra=xa.length-1;0<=Ra;Ra--)if(Aa=xa[Ra],en(Pa,Aa,'capture'),Pa.__propagationStopped)return;Object.defineProperty(Pa,'eventPhase',{value:Event.AT_TARGET});for(var Ma,Oa=0;Oa<xa.length;Oa++)if(Aa=xa[Oa],(0===Oa||Aa.shadowRoot&&Aa.shadowRoot===Ma)&&(en(Pa,Aa,'bubble'),Aa!==window&&(Ma=Aa.getRootNode()),Pa.__propagationStopped))return}function on(){for(var Pa in la)window.addEventListener(Pa,function(xa){xa.__target||(xa.__target=xa.target,xa.__relatedTarget=xa.relatedTarget,$r(xa,aa),tn(xa),xa.stopImmediatePropagation())},!0)}function sn(Pa,xa,Aa){return{index:Pa,removed:xa,addedCount:Aa}}function nn(Pa,xa){if(!Pa)throw'Must provide a host.';if(!xa)throw'Not enough arguments.';var Aa=document.createDocumentFragment();return Aa.__proto__=Na,Aa._init(Pa),Aa}function an(Pa){return $s(Pa),us(Pa,'assignedSlot')||null}function ln(Pa,xa){for(var Aa=Object.getOwnPropertyNames(xa),Ra=0;Ra<Aa.length;Ra++){var Ma=Aa[Ra],Oa=Object.getOwnPropertyDescriptor(xa,Ma);Oa.value?Pa[Ma]=Oa.value:Object.defineProperty(Pa,Ma,Oa)}}var cn=window.ShadyDOM||{};cn.hasNativeShadowDOM=!!(Element.prototype.attachShadow&&Node.prototype.getRootNode);var _n=Object.getOwnPropertyDescriptor(Node.prototype,'firstChild');cn.hasDescriptors=!!(_n&&_n.configurable&&_n.get),cn.inUse=cn.force||!cn.hasNativeShadowDOM;var mn,un=Element.prototype,hn=un.matches||un.matchesSelector||un.mozMatchesSelector||un.msMatchesSelector||un.oMatchesSelector||un.webkitMatchesSelector;window.Promise?mn=Promise.resolve():function(){var Pa=document.createTextNode(''),xa=0;mn={then:function(Ra){var Ma=new MutationObserver(function(){Ma.disconnect(),Ra()});Ma.observe(Pa,{characterData:!0}),Pa.textContent=xa++}}}();var Nn,yn=window.customElements,gn=[],bn=0;Gr.list=gn;var Sn=function(){function Pa(){po(this,Pa),this._scheduled=!1,this.addedNodes=[],this.removedNodes=[],this.callbacks=new Set}return ko(Pa,[{key:'schedule',value:function(){var Aa=this;this._scheduled||(this._scheduled=!0,mn.then(function(){Aa.flush()}))}},{key:'flush',value:function(){var Aa=this;this._scheduled&&function(){Aa._scheduled=!1;var Ra=Aa.takeRecords();Ra.length&&Aa.callbacks.forEach(function(Ma){Ma(Ra)})}()}},{key:'takeRecords',value:function(){if(this.addedNodes.length||this.removedNodes.length){var Aa=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],Aa}return[]}}]),Pa}(),Cn=Element.prototype.appendChild,Tn=Cn,Pn=Element.prototype.insertBefore,xn=Pn,An=Element.prototype.removeChild,Rn=An,Mn=Element.prototype.setAttribute,On=Mn,In=Element.prototype.removeAttribute,Dn=In,Ln=Element.prototype.cloneNode,wn=Ln,kn=Document.prototype.importNode,Un=kn,Fn=Element.prototype.addEventListener,Hn=Fn,Wn=Element.prototype.removeEventListener,Kn=Wn,jn=Object.freeze({appendChild:Tn,insertBefore:xn,removeChild:Rn,setAttribute:On,removeAttribute:Dn,cloneNode:wn,importNode:Un,addEventListener:Hn,removeEventListener:Kn}),qn=/[&\u00A0"]/g,$n=/[&\u00A0<>]/g,Bn=Zr(['area','base','br','col','command','embed','hr','img','input','keygen','link','meta','param','source','track','wbr']),Gn=Zr(['style','script','xmp','iframe','noembed','noframes','plaintext','noscript']),Yn=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Vn=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Jn=Object.freeze({parentNode:es,firstChild:ts,lastChild:os,previousSibling:function(xa){return Yn.currentNode=xa,Yn.previousSibling()},nextSibling:function(xa){return Yn.currentNode=xa,Yn.nextSibling()},childNodes:rs,parentElement:function(xa){return Vn.currentNode=xa,Vn.parentNode()},firstElementChild:ns,lastElementChild:as,previousElementSibling:ls,nextElementSibling:ds,children:ps,innerHTML:cs,textContent:_s}),Xn=new DOMParser,Zn=Object.getOwnPropertyDescriptor(Document.prototype,'activeElement'),zn={parentElement:ms('parentElement'),parentNode:ms('parentNode'),nextSibling:ms('nextSibling'),previousSibling:ms('previousSibling'),className:{get:function(){return this.getAttribute('class')},set:function(xa){this.setAttribute('class',xa)},configurable:!0},nextElementSibling:{get:function(){if(hs(this,'nextSibling')){for(var xa=this.nextSibling;xa&&xa.nodeType!==Node.ELEMENT_NODE;)xa=xa.nextSibling;return xa}return ds(this)},configurable:!0},previousElementSibling:{get:function(){if(hs(this,'previousSibling')){for(var xa=this.previousSibling;xa&&xa.nodeType!==Node.ELEMENT_NODE;)xa=xa.previousSibling;return xa}return ls(this)},configurable:!0}},Qn={childNodes:{get:function(){if(hs(this,'firstChild')){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var xa=this.firstChild;xa;xa=xa.nextSibling)this.__shady.childNodes.push(xa)}return this.__shady.childNodes}return rs(this)},configurable:!0},firstChild:ms('firstChild'),lastChild:ms('lastChild'),textContent:{get:function(){if(hs(this,'firstChild')){for(var Aa,xa=[],Ra=0,Ma=this.childNodes;Aa=Ma[Ra];Ra++)Aa.nodeType!==Node.COMMENT_NODE&&xa.push(Aa.textContent);return xa.join('')}return _s(this)},set:function(xa){this.nodeType===Node.ELEMENT_NODE?(gs(this),xa&&this.appendChild(document.createTextNode(xa))):this.nodeValue=xa},configurable:!0},firstElementChild:{get:function(){if(hs(this,'firstChild')){for(var xa=this.firstChild;xa&&xa.nodeType!==Node.ELEMENT_NODE;)xa=xa.nextSibling;return xa}return ns(this)},configurable:!0},lastElementChild:{get:function(){if(hs(this,'lastChild')){for(var xa=this.lastChild;xa&&xa.nodeType!==Node.ELEMENT_NODE;)xa=xa.previousSibling;return xa}return as(this)},configurable:!0},children:{get:function(){return hs(this,'firstChild')?Array.prototype.filter.call(this.childNodes,function(xa){return xa.nodeType===Node.ELEMENT_NODE}):ps(this)},configurable:!0},innerHTML:{get:function(){var xa='template'===this.localName?this.content:this;return hs(this,'firstChild')?Qr(xa):cs(xa)},set:function(xa){var Aa='template'===this.localName?this.content:this;gs(Aa);var Ra=Xn.parseFromString(xa,'text/html');Ra.head&&ys(Aa,Ra.head),Ra.body&&ys(Aa,Ra.body)},configurable:!0}},ea={shadowRoot:{get:function(){return this.shadyRoot},set:function(xa){this.shadyRoot=xa},configurable:!0}},ta={activeElement:{get:function(){return Ns(this)},set:function(){},configurable:!0}},oa=cn.hasDescriptors?function(){}:function(Pa){Pa.__shady&&Pa.__shady.__outsideAccessors||(Pa.__shady=Pa.__shady||{},Pa.__shady.__outsideAccessors=!0,bs(Pa,zn,!0))},ra=cn.hasDescriptors?function(){}:function(Pa){Pa.__shady&&Pa.__shady.__insideAccessors||(Pa.__shady=Pa.__shady||{},Pa.__shady.__insideAccessors=!0,bs(Pa,Qn,!0),bs(Pa,ea,!0))},sa=function(xa){if(!hs(xa,'firstChild')){xa.__shady=xa.__shady||{},xa.__shady.firstChild=ts(xa),xa.__shady.lastChild=os(xa),ra(xa);for(var Ra,Aa=xa.__shady.childNodes=rs(xa),Ma=0;Ma<Aa.length&&(Ra=Aa[Ma]);Ma++)Ra.__shady=Ra.__shady||{},Ra.__shady.parentNode=xa,Ra.__shady.nextSibling=Aa[Ma+1]||null,Ra.__shady.previousSibling=Aa[Ma-1]||null,oa(Ra)}},na={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},aa={get composed(){return this.isTrusted&&void 0===this.__composed&&(this.__composed=na[this.type]),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=Zs(this.__target,this.composed)),this.__composedPath},get target(){return zs(this.currentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=Zs(this.__relatedTarget,!0)),zs(this.currentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.__propagationStopped=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.__immediatePropagationStopped=!0,this.__propagationStopped=!0}},la={focus:!0,blur:!0},ia=Qs(window.Event),da=Qs(window.CustomEvent),pa=Qs(window.MouseEvent),ca=0,_a=1,ua=2,ha=3,ma={calcEditDistances:function(xa,Aa,Ra,Ma,Oa,Ia){for(var Da=Ia-Oa+1,La=Ra-Aa+1,wa=Array(Da),ka=0;ka<Da;ka++)wa[ka]=Array(La),wa[ka][0]=ka;for(var Ua=0;Ua<La;Ua++)wa[0][Ua]=Ua;for(var Fa=1;Fa<Da;Fa++)for(var Ha=1;Ha<La;Ha++)if(this.equals(xa[Aa+Ha-1],Ma[Oa+Fa-1]))wa[Fa][Ha]=wa[Fa-1][Ha-1];else{var Wa=wa[Fa-1][Ha]+1,Ka=wa[Fa][Ha-1]+1;wa[Fa][Ha]=Wa<Ka?Wa:Ka}return wa},spliceOperationsFromEditDistances:function(xa){for(var Aa=xa.length-1,Ra=xa[0].length-1,Ma=xa[Aa][Ra],Oa=[];0<Aa||0<Ra;){if(0==Aa){Oa.push(ua),Ra--;continue}if(0==Ra){Oa.push(ha),Aa--;continue}var Ia=xa[Aa-1][Ra-1],Da=xa[Aa-1][Ra],La=xa[Aa][Ra-1],wa=void 0;wa=Da<La?Da<Ia?Da:Ia:La<Ia?La:Ia,wa==Ia?(Ia==Ma?Oa.push(ca):(Oa.push(_a),Ma=Ia),Aa--,Ra--):wa==Da?(Oa.push(ha),Aa--,Ma=Da):(Oa.push(ua),Ra--,Ma=La)}return Oa.reverse(),Oa},calcSplices:function(xa,Aa,Ra,Ma,Oa,Ia){var wa,Da=0,La=0,ka=Math.min(Ra-Aa,Ia-Oa);if(0==Aa&&0==Oa&&(Da=this.sharedPrefix(xa,Ma,ka)),Ra==xa.length&&Ia==Ma.length&&(La=this.sharedSuffix(xa,Ma,ka-Da)),Aa+=Da,Oa+=Da,Ra-=La,Ia-=La,0==Ra-Aa&&0==Ia-Oa)return[];if(Aa==Ra){for(wa=sn(Aa,[],0);Oa<Ia;)wa.removed.push(Ma[Oa++]);return[wa]}if(Oa==Ia)return[sn(Aa,[],Ra-Aa)];var Ua=this.spliceOperationsFromEditDistances(this.calcEditDistances(xa,Aa,Ra,Ma,Oa,Ia));wa=void 0;for(var Fa=[],Ha=Aa,Wa=Oa,Ka=0;Ka<Ua.length;Ka++)switch(Ua[Ka]){case ca:wa&&(Fa.push(wa),wa=void 0),Ha++,Wa++;break;case _a:wa||(wa=sn(Ha,[],0)),wa.addedCount++,Ha++,wa.removed.push(Ma[Wa]),Wa++;break;case ua:wa||(wa=sn(Ha,[],0)),wa.addedCount++,Ha++;break;case ha:wa||(wa=sn(Ha,[],0)),wa.removed.push(Ma[Wa]),Wa++;}return wa&&Fa.push(wa),Fa},sharedPrefix:function(xa,Aa,Ra){for(var Ma=0;Ma<Ra;Ma++)if(!this.equals(xa[Ma],Aa[Ma]))return Ma;return Ra},sharedSuffix:function(xa,Aa,Ra){for(var Ma=xa.length,Oa=Aa.length,Ia=0;Ia<Ra&&this.equals(xa[--Ma],Aa[--Oa]);)Ia++;return Ia},calculateSplices:function(xa,Aa){return this.calcSplices(xa,0,xa.length,Aa,0,Aa.length)},equals:function(xa,Aa){return xa===Aa}},ya=function(xa,Aa){return ma.calculateSplices(xa,Aa)},ga='function'==typeof Event?Event:function(Pa,xa){xa=xa||{};var Aa=document.createEvent('Event');return Aa.initEvent(Pa,!!xa.bubbles,!!xa.cancelable),Aa},fa=function(){function Pa(xa){po(this,Pa),this.root=xa,this.insertionPointTag='slot'}return ko(Pa,[{key:'getInsertionPoints',value:function(){return this.root.querySelectorAll(this.insertionPointTag)}},{key:'hasInsertionPoint',value:function(){return!!(this.root._insertionPoints&&this.root._insertionPoints.length)}},{key:'isInsertionPoint',value:function(Aa){return Aa.localName&&Aa.localName==this.insertionPointTag}},{key:'distribute',value:function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]}},{key:'collectPool',value:function(){for(var Aa=this.root.host,Ra=[],Ma=0,Oa=Aa.firstChild;Oa;Oa=Oa.nextSibling)Ra[Ma++]=Oa;return Ra}},{key:'distributePool',value:function(Aa,Ra){for(var Ia,Ma=[],Oa=this.root._insertionPoints,Da=0,La=Oa.length;Da<La&&(Ia=Oa[Da]);Da++){this.distributeInsertionPoint(Ia,Ra);var wa=Ia.parentNode;wa&&wa.shadyRoot&&this.hasInsertionPoint(wa.shadyRoot)&&Ma.push(wa.shadyRoot)}for(var Ua,ka=0;ka<Ra.length;ka++)if(Ua=Ra[ka],Ua){Ua.__shady=Ua.__shady||{},Ua.__shady.assignedSlot=void 0;var Fa=es(Ua);Fa&&Rn.call(Fa,Ua)}return Ma}},{key:'distributeInsertionPoint',value:function(Aa,Ra){var Ma=Aa.__shady.assignedNodes;Ma&&this.clearAssignedSlots(Aa,!0),Aa.__shady.assignedNodes=[];for(var Da,Oa=!1,Ia=!1,La=0,wa=Ra.length;La<wa;La++)(Da=Ra[La],!!Da)&&this.matchesInsertionPoint(Da,Aa)&&(Da.__shady._prevAssignedSlot!=Aa&&(Oa=!0),this.distributeNodeInto(Da,Aa),Ra[La]=void 0,Ia=!0);if(!Ia)for(var Ua,ka=Aa.childNodes,Fa=0;Fa<ka.length;Fa++)Ua=ka[Fa],Ua.__shady._prevAssignedSlot!=Aa&&(Oa=!0),this.distributeNodeInto(Ua,Aa);if(Ma){for(var Ha=0;Ha<Ma.length;Ha++)Ma[Ha].__shady._prevAssignedSlot=null;Aa.__shady.assignedNodes.length<Ma.length&&(Oa=!0)}this.setDistributedNodesOnInsertionPoint(Aa),Oa&&this._fireSlotChange(Aa)}},{key:'clearAssignedSlots',value:function(Aa,Ra){var Ma=Aa.__shady.assignedNodes;if(Ma)for(var Ia,Oa=0;Oa<Ma.length;Oa++)Ia=Ma[Oa],Ra&&(Ia.__shady._prevAssignedSlot=Ia.__shady.assignedSlot),Ia.__shady.assignedSlot===Aa&&(Ia.__shady.assignedSlot=null)}},{key:'matchesInsertionPoint',value:function(Aa,Ra){var Ma=Ra.getAttribute('name');Ma=Ma?Ma.trim():'';var Oa=Aa.getAttribute&&Aa.getAttribute('slot');return Oa=Oa?Oa.trim():'',Oa==Ma}},{key:'distributeNodeInto',value:function(Aa,Ra){Ra.__shady.assignedNodes.push(Aa),Aa.__shady.assignedSlot=Ra}},{key:'setDistributedNodesOnInsertionPoint',value:function(Aa){var Ra=Aa.__shady.assignedNodes;Aa.__shady.distributedNodes=[];for(var Ma,Oa=0;Oa<Ra.length&&(Ma=Ra[Oa]);Oa++)if(this.isInsertionPoint(Ma)){var Ia=Ma.__shady.distributedNodes;if(Ia)for(var Da=0;Da<Ia.length;Da++)Aa.__shady.distributedNodes.push(Ia[Da])}else Aa.__shady.distributedNodes.push(Ra[Oa])}},{key:'_fireSlotChange',value:function(Aa){Aa.dispatchEvent(new ga('slotchange')),Aa.__shady.assignedSlot&&this._fireSlotChange(Aa.__shady.assignedSlot)}},{key:'isFinalDestination',value:function(Aa){return!Aa.__shady.assignedSlot}}]),Pa}(),Na=Object.create(DocumentFragment.prototype);jr(Na,{_init:function(xa){this.__localName='ShadyRoot',sa(xa),sa(this),xa.shadowRoot=this,this.host=xa,this._renderPending=!1,this._hasRendered=!1,this._changePending=!1,this._distributor=new fa(this),this.update()},update:function(){var xa=this;this._renderPending||(this._renderPending=!0,Br(function(){return xa.render()}))},_getRenderRoot:function(){for(var xa=this,Aa=this;Aa;)Aa._renderPending&&(xa=Aa),Aa=Aa._rendererForHost();return xa},_rendererForHost:function(){var xa=this.host.getRootNode();if(Ur(xa))for(var Ra,Aa=this.host.childNodes,Ma=0;Ma<Aa.length;Ma++)if(Ra=Aa[Ma],this._distributor.isInsertionPoint(Ra))return xa},render:function(){this._renderPending&&this._getRenderRoot()._render()},_render:function(){this._renderPending=!1,this._changePending=!1,this._skipUpdateInsertionPoints?!this._hasRendered&&(this._insertionPoints=[]):this.updateInsertionPoints(),this._skipUpdateInsertionPoints=!1,this.distribute(),this.compose(),this._hasRendered=!0},forceRender:function(){this._renderPending=!0,this.render()},distribute:function(){for(var xa=this._distributor.distribute(),Aa=0;Aa<xa.length;Aa++)xa[Aa]._render()},updateInsertionPoints:function(){var xa=this.__insertionPoints;if(xa)for(var Aa,Ra=0;Ra<xa.length;Ra++)Aa=xa[Ra],Aa.getRootNode()!==this&&this._distributor.clearAssignedSlots(Aa);xa=this._insertionPoints=this._distributor.getInsertionPoints();for(var Ma,Oa=0;Oa<xa.length;Oa++)Ma=xa[Oa],Ma.__shady=Ma.__shady||{},sa(Ma),sa(Ma.parentNode)},get _insertionPoints(){return this.__insertionPoints||this.updateInsertionPoints(),this.__insertionPoints||(this.__insertionPoints=[])},set _insertionPoints(Pa){this.__insertionPoints=Pa},hasInsertionPoint:function(){return this._distributor.hasInsertionPoint()},compose:function(){this._composeTree()},_composeTree:function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var Aa,Ra,xa=this._insertionPoints||[],Ma=0,Oa=xa.length;Ma<Oa&&(Aa=xa[Ma]);Ma++)Ra=Aa.parentNode,Ra!==this.host&&Ra!==this&&this._updateChildNodes(Ra,this._composeNode(Ra))},_composeNode:function(xa){for(var Oa,Aa=[],Ra=(xa.shadyRoot||xa).childNodes,Ma=0;Ma<Ra.length;Ma++)if(Oa=Ra[Ma],this._distributor.isInsertionPoint(Oa))for(var La,Ia=Oa.__shady.distributedNodes||(Oa.__shady.distributedNodes=[]),Da=0;Da<Ia.length;Da++)La=Ia[Da],this.isFinalDestination(Oa,La)&&Aa.push(La);else Aa.push(Oa);return Aa},isFinalDestination:function(xa,Aa){return this._distributor.isFinalDestination(xa,Aa)},_updateChildNodes:function(xa,Aa){for(var Oa,Ra=rs(xa),Ma=ya(Aa,Ra),Ia=0,Da=0;Ia<Ma.length&&(Oa=Ma[Ia]);Ia++){for(var La,wa=0;wa<Oa.removed.length&&(La=Oa.removed[wa]);wa++)es(La)===xa&&Rn.call(xa,La),Ra.splice(Oa.index+Da,1);Da-=Oa.addedCount}for(var ka,Ua,Fa=0;Fa<Ma.length&&(ka=Ma[Fa]);Fa++){Ua=Ra[ka.index];for(var Ha,Wa=ka.index;Wa<ka.index+ka.addedCount;Wa++)Ha=Aa[Wa],xn.call(xa,Ha,Ua),Ra.splice(Wa,0,Ha)}},getInsertionPointTag:function(){return this._distributor.insertionPointTag}}),function(Pa){bs(Pa,Qn,!0),bs(Pa,ta,!0)}(Na);var ba={addEventListener:function(xa,Aa,Ra){var Ma=this;if(Aa){var Oa=function(){var Ia,Da,La;if('object'==('undefined'==typeof Ra?'undefined':wo(Ra))?(Ia=!!Ra.capture,Da=!!Ra.once,La=!!Ra.passive):(Ia=!!Ra,Da=!1,La=!1),Aa.__eventWrappers){for(var wa=0;wa<Aa.__eventWrappers.length;wa++)if(Aa.__eventWrappers[wa].node===Ma&&Aa.__eventWrappers[wa].type===xa&&Aa.__eventWrappers[wa].capture===Ia&&Aa.__eventWrappers[wa].once===Da&&Aa.__eventWrappers[wa].passive===La)return{v:void 0};}else Aa.__eventWrappers=[];var ka=function(Fa){if(Da&&this.removeEventListener(xa,Aa,Ra),Fa.__target||(Fa.__target=Fa.target,Fa.__relatedTarget=Fa.relatedTarget,$r(Fa,aa)),Fa.composed||-1<Fa.composedPath().indexOf(this))return Fa.eventPhase===Event.BUBBLING_PHASE&&Fa.target===Fa.relatedTarget?void Fa.stopImmediatePropagation():Aa(Fa)};Aa.__eventWrappers.push({node:Ma,type:xa,capture:Ia,once:Da,passive:La,wrapperFn:ka}),la[xa]?(Ma.__handlers=Ma.__handlers||{},Ma.__handlers[xa]=Ma.__handlers[xa]||{capture:[],bubble:[]},Ma.__handlers[xa][Ia?'capture':'bubble'].push(ka)):Hn.call(Ma,xa,ka,Ra)}();if('object'==('undefined'==typeof Oa?'undefined':wo(Oa)))return Oa.v}},removeEventListener:function(xa,Aa,Ra){if(Aa){var Ma,Oa,Ia;'object'==('undefined'==typeof Ra?'undefined':wo(Ra))?(Ma=!!Ra.capture,Oa=!!Ra.once,Ia=!!Ra.passive):(Ma=!!Ra,Oa=!1,Ia=!1);var Da;if(Aa.__eventWrappers)for(var La=0;La<Aa.__eventWrappers.length;La++)if(Aa.__eventWrappers[La].node===this&&Aa.__eventWrappers[La].type===xa&&Aa.__eventWrappers[La].capture===Ma&&Aa.__eventWrappers[La].once===Oa&&Aa.__eventWrappers[La].passive===Ia){Da=Aa.__eventWrappers.splice(La,1)[0].wrapperFn,Aa.__eventWrappers.length||(Aa.__eventWrappers=void 0);break}if(Kn.call(this,xa,Da||Aa,Ra),Da&&la[xa]&&this.__handlers&&this.__handlers[xa]){var wa=this.__handlers[xa][Ma?'capture':'bubble'],ka=wa.indexOf(Da);-1<ka&&wa.splice(ka,1)}}},appendChild:function(xa){return Ys(this,xa)},insertBefore:function(xa,Aa){return Ys(this,xa,Aa)},removeChild:function(xa){return Vs(this,xa)},replaceChild:function(xa,Aa){return this.insertBefore(xa,Aa),this.removeChild(Aa),xa},cloneNode:function(xa){return Js(this,xa)},getRootNode:function(xa){return Ms(this,xa)},get isConnected(){return document.documentElement.contains(this)}},Sa={get assignedSlot(){return an(this)}},va={querySelector:function(xa){var Aa=Ks(this,function(Ra){return Hr(Ra,xa)},function(Ra){return!!Ra})[0];return Aa||null},querySelectorAll:function(xa){return Ks(this,function(Aa){return Hr(Aa,xa)})}},Ea={assignedNodes:function(xa){if('slot'===this.localName)return $s(this),this.__shady?(xa&&xa.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},Ca=jr({setAttribute:function(xa,Aa){Bs(this,xa,Aa)},removeAttribute:function(xa){Gs(this,xa)},attachShadow:function(xa){return nn(this,xa)},get slot(){return this.getAttribute('slot')},set slot(Pa){this.setAttribute('slot',Pa)},get assignedSlot(){return an(this)}},va,Ea);Object.defineProperties(Ca,ea);var Ta=jr({},va);Object.defineProperties(Ta,{_activeElement:ta.activeElement}),cn.inUse&&(window.ShadyDOM={inUse:cn.inUse,patch:function(xa){return xa},isShadyRoot:Ur,enqueue:Br,flush:Gr,settings:cn,filterMutations:function(Pa,xa){var Aa=xa.getRootNode();return Pa.map(function(Ra){var Ma=Aa===Ra.target.getRootNode();if(Ma&&Ra.addedNodes){var Oa=Array.from(Ra.addedNodes).filter(function(Ia){return Aa===Ia.getRootNode()});if(Oa.length)return Ra=Object.create(Ra),Object.defineProperty(Ra,'addedNodes',{value:Oa,configurable:!0}),Ra}else if(Ma)return Ra}).filter(function(Ra){return Ra})},observeChildren:function(xa,Aa){xa.__shady=xa.__shady||{},xa.__shady.observer||(xa.__shady.observer=new Sn),xa.__shady.observer.callbacks.add(Aa);var Ra=xa.__shady.observer;return{_callback:Aa,_observer:Ra,_node:xa,takeRecords:function(){return Ra.takeRecords()}}},unobserveChildren:function(xa){var Aa=xa&&xa._observer;Aa&&(Aa.callbacks.delete(xa._callback),!Aa.callbacks.size&&(xa._node.__shady.observer=null))},nativeMethods:jn,nativeTree:Jn},function(){window.Event=ia,window.CustomEvent=da,window.MouseEvent=pa,on()}(),function(){ln(window.Node.prototype,ba),ln(window.Text.prototype,Sa),ln(window.DocumentFragment.prototype,va),ln(window.Element.prototype,Ca),ln(window.Document.prototype,Ta);var Pa=document.importNode;if(document.importNode=function(Aa,Ra){return Xs(Aa,Ra,Pa)},window.HTMLSlotElement&&ln(window.HTMLSlotElement.prototype,Ea),cn.hasDescriptors){Ss(window.Node.prototype),Ss(window.Text.prototype),Ss(window.DocumentFragment.prototype),Ss(window.Element.prototype);var xa=window.customElements&&customElements.nativeHTMLElement||HTMLElement;Ss(xa.prototype),Ss(window.Document.prototype),window.HTMLSlotElement&&Ss(window.HTMLSlotElement.prototype)}}())})();let Uo={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},Fo='{',Ho='}',Wo={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},Ko='--',$o=!(window.ShadyDOM&&window.ShadyDOM.inUse),Bo=!navigator.userAgent.match('AppleWebKit/601')&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');window.ShadyCSS?vo(window.ShadyCSS):window.WebComponents&&vo(window.WebComponents.flags);let Yo=null,Vo={VAR_ASSIGN:/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,MIXIN_MATCH:/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,VAR_CONSUMED:/(--[\w-]+)\s*([:,;)]|$)/gi,ANIMATION_MATCH:/(animation\s*:)|(animation-name\s*:)/,MEDIA_MATCH:/@media[^(]*(\([^)]*\))/,IS_VAR:/^--/,BRACKETED:/\{[^}]*\}/g,HOST_PREFIX:'(?:^|[^.#[:])',HOST_SUFFIX:'($|[.:[\\s>+~])'};const Jo='style-scope';class Xo{get SCOPE_NAME(){return Jo}dom(Ur,Fr,Hr){Ur.__styleScoped?Ur.__styleScoped=null:this._transformDom(Ur,Fr||'',Hr)}_transformDom(Ur,Fr,Hr){Ur.nodeType===Node.ELEMENT_NODE&&this.element(Ur,Fr,Hr);let Wr='template'===Ur.localName?(Ur.content||Ur._content).childNodes:Ur.children||Ur.childNodes;if(Wr)for(let Kr=0;Kr<Wr.length;Kr++)this._transformDom(Wr[Kr],Fr,Hr)}element(Ur,Fr,Hr){if(Fr)if(Ur.classList)Hr?(Ur.classList.remove(Jo),Ur.classList.remove(Fr)):(Ur.classList.add(Jo),Ur.classList.add(Fr));else if(Ur.getAttribute){let Wr=Ur.getAttribute('class');if(!Hr){let Kr=(Wr?Wr+' ':'')+Jo+' '+Fr;Do(Ur,Kr)}else if(Wr){let Kr=Wr.replace(Jo,'').replace(Fr,'');Do(Ur,Kr)}}}elementStyles(Ur,Fr,Hr){let Wr=Ur.__cssBuild,Kr=$o||'shady'===Wr?Eo(Fr,Hr):this.css(Fr,Ur.is,Ur.extends,Hr)+'\n\n';return Kr.trim()}css(Ur,Fr,Hr,Wr){let Kr=this._calcHostScope(Fr,Hr);Fr=this._calcElementScope(Fr);let jr=this;return Eo(Ur,function(qr){qr.isScoped||(jr.rule(qr,Fr,Kr),qr.isScoped=!0),Wr&&Wr(qr,Fr,Kr)})}_calcElementScope(Ur){return Ur?'.'+Ur:''}_calcHostScope(Ur,Fr){return Fr?'[is='+Ur+']':Ur}rule(Ur,Fr,Hr){this._transformRule(Ur,this._transformComplexSelector,Fr,Hr)}_transformRule(Ur,Fr,Hr,Wr){Ur.selector=Ur.transformedSelector=this._transformRuleCss(Ur,Fr,Hr,Wr)}_transformRuleCss(Ur,Fr,Hr,Wr){let Kr=Ur.selector.split(Qo);if(!To(Ur))for(let $r,jr=0,qr=Kr.length;jr<qr&&($r=Kr[jr]);jr++)Kr[jr]=Fr.call(this,$r,Hr,Wr);return Kr.join(Qo)}_transformComplexSelector(Ur,Fr,Hr){let Wr=!1;return Ur=Ur.trim(),Ur=Ur.replace(Zo,(Kr,jr,qr)=>`:${jr}(${qr.replace(/\s/g,'')})`),Ur=Ur.replace(nr,`${or} $1`),Ur=Ur.replace(er,(Kr,jr,qr)=>{if(!Wr){let $r=this._transformCompoundSelector(qr,jr,Fr,Hr);Wr=Wr||$r.stop,jr=$r.combinator,qr=$r.value}return jr+qr}),Ur}_transformCompoundSelector(Ur,Fr,Hr,Wr){let Kr=Ur.indexOf(sr);0<=Ur.indexOf(or)?Ur=this._transformHostSelector(Ur,Wr):0!==Kr&&(Ur=Hr?this._transformSimpleSelector(Ur,Hr):Ur);let jr=!1;0<=Kr&&(Fr='',jr=!0);let qr;return jr&&(qr=!0,jr&&(Ur=Ur.replace(lr,($r,Br)=>` > ${Br}`))),Ur=Ur.replace(ir,($r,Br,Gr)=>`[dir="${Gr}"] ${Br}, ${Br}[dir="${Gr}"]`),{value:Ur,combinator:Fr,stop:qr}}_transformSimpleSelector(Ur,Fr){let Hr=Ur.split(pr);return Hr[0]+=Fr,Hr.join(pr)}_transformHostSelector(Ur,Fr){let Hr=Ur.match(ar),Wr=Hr&&Hr[2].trim()||'';if(Wr){if(!Wr[0].match(tr)){let Kr=Wr.split(tr)[0];return Kr===Fr?Wr:'should_not_match'}return Ur.replace(ar,function(Kr,jr,qr){return Fr+qr})}return Ur.replace(or,Fr)}documentRule(Ur){Ur.selector=Ur.parsedSelector,this.normalizeRootSelector(Ur),this._transformRule(Ur,this._transformDocumentSelector)}normalizeRootSelector(Ur){Ur.selector===':root'&&(Ur.selector='html')}_transformDocumentSelector(Ur){return Ur.match(sr)?this._transformComplexSelector(Ur,zo):this._transformSimpleSelector(Ur.trim(),zo)}}let Zo=/:(nth[-\w]+)\(([^)]+)\)/,zo=`:not(.${Jo})`,Qo=',',er=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,tr=/[[.:#*]/,or=':host',sr='::slotted',nr=/^(::slotted)/,ar=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,lr=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ir=/(.*):dir\((?:(ltr|rtl))\)/,pr=':';var ur=new Xo,hr={};const mr=Promise.resolve();class yr{static get(Ur){return Ur.__styleInfo}static set(Ur,Fr){return Ur.__styleInfo=Fr,Fr}static invalidate(Ur){hr[Ur]&&(hr[Ur]._applyShimInvalid=!0)}static startValidating(Ur){const Fr=hr[Ur];Fr._validating||(Fr._validating=!0,mr.then(()=>{Fr._applyShimInvalid=!1,Fr._validating=!1}))}constructor(Ur,Fr,Hr,Wr,Kr,jr){this.styleRules=Ur||null,this.placeholder=Fr||null,this.ownStylePropertyNames=Hr||[],this.overrideStyleProperties=null,this.elementName=Wr||'',this.cssBuild=jr||'',this.typeExtension=Kr||'',this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}}const gr=window.Element.prototype,fr=gr.matches||gr.matchesSelector||gr.mozMatchesSelector||gr.msMatchesSelector||gr.oMatchesSelector||gr.webkitMatchesSelector,Nr=navigator.userAgent.match('Trident'),br='x-scope';class Sr{get XSCOPE_NAME(){return br}decorateStyles(Ur){let Fr=this,Hr={},Wr=[],Kr=0;Po(Ur,function(qr){Fr.decorateRule(qr),qr.index=Kr++,Fr.collectPropertiesInCssText(qr.propertyInfo.cssText,Hr)},function($r){Wr.push($r)}),Ur._keyframes=Wr;let jr=[];for(let qr in Hr)jr.push(qr);return jr}decorateRule(Ur){if(Ur.propertyInfo)return Ur.propertyInfo;let Fr={},Hr={},Wr=this.collectProperties(Ur,Hr);return Wr&&(Fr.properties=Hr,Ur.rules=null),Fr.cssText=this.collectCssText(Ur),Ur.propertyInfo=Fr,Fr}collectProperties(Ur,Fr){let Hr=Ur.propertyInfo;if(!Hr){let Wr,Kr=Vo.VAR_ASSIGN,jr=Ur.parsedCssText,qr,$r;for(;Wr=Kr.exec(jr);)qr=(Wr[2]||Wr[3]).trim(),('inherit'!==qr||'unset'!==qr)&&(Fr[Wr[1].trim()]=qr),$r=!0;return $r}else if(Hr.properties)return Object.assign(Fr,Hr.properties),!0}collectCssText(Ur){return this.collectConsumingCssText(Ur.parsedCssText)}collectConsumingCssText(Ur){return Ur.replace(Vo.BRACKETED,'').replace(Vo.VAR_ASSIGN,'')}collectPropertiesInCssText(Ur,Fr){for(let Hr,Wr;Hr=Vo.VAR_CONSUMED.exec(Ur);)Wr=Hr[1],':'!==Hr[2]&&(Fr[Wr]=!0)}reify(Ur){let Fr=Object.getOwnPropertyNames(Ur);for(let Wr,Hr=0;Hr<Fr.length;Hr++)Wr=Fr[Hr],Ur[Wr]=this.valueForProperty(Ur[Wr],Ur)}valueForProperty(Ur,Fr){if(Ur)if(0<=Ur.indexOf(';'))Ur=this.valueForProperties(Ur,Fr);else{let Hr=this;Ur=Io(Ur,function(Kr,jr,qr,$r){if(!jr)return Kr+$r;let Br=Hr.valueForProperty(Fr[jr],Fr);return Br&&'initial'!==Br?'apply-shim-inherit'===Br&&(Br='inherit'):Br=Hr.valueForProperty(Fr[qr]||qr,Fr)||qr,Kr+(Br||'')+$r})}return Ur&&Ur.trim()||''}valueForProperties(Ur,Fr){let Hr=Ur.split(';');for(let Kr,jr,Wr=0;Wr<Hr.length;Wr++)if(Kr=Hr[Wr]){if(Vo.MIXIN_MATCH.lastIndex=0,jr=Vo.MIXIN_MATCH.exec(Kr),jr)Kr=this.valueForProperty(Fr[jr[1]],Fr);else{let qr=Kr.indexOf(':');if(-1!==qr){let $r=Kr.substring(qr);$r=$r.trim(),$r=this.valueForProperty($r,Fr)||$r,Kr=Kr.substring(0,qr)+$r}}Hr[Wr]=Kr&&Kr.lastIndexOf(';')===Kr.length-1?Kr.slice(0,-1):Kr||''}return Hr.join(';')}applyProperties(Ur,Fr){let Hr='';Ur.propertyInfo||this.decorateRule(Ur),Ur.propertyInfo.cssText&&(Hr=this.valueForProperties(Ur.propertyInfo.cssText,Fr)),Ur.cssText=Hr}applyKeyframeTransforms(Ur,Fr){let Hr=Ur.cssText,Wr=Ur.cssText;if(null==Ur.hasAnimations&&(Ur.hasAnimations=Vo.ANIMATION_MATCH.test(Hr)),Ur.hasAnimations){let Kr;if(null==Ur.keyframeNamesToTransform)for(let jr in Ur.keyframeNamesToTransform=[],Fr)Kr=Fr[jr],Wr=Kr(Hr),Hr!==Wr&&(Hr=Wr,Ur.keyframeNamesToTransform.push(jr));else{for(let jr=0;jr<Ur.keyframeNamesToTransform.length;++jr)Kr=Fr[Ur.keyframeNamesToTransform[jr]],Hr=Kr(Hr);Wr=Hr}}Ur.cssText=Wr}propertyDataFromStyles(Ur,Fr){let Hr={},Wr=this,Kr=[];return Po(Ur,function(jr){jr.propertyInfo||Wr.decorateRule(jr);let qr=jr.transformedSelector||jr.parsedSelector;Fr&&jr.propertyInfo.properties&&qr&&fr.call(Fr,qr)&&(Wr.collectProperties(jr,Hr),Lo(jr.index,Kr))},null,!0),{properties:Hr,key:Kr}}whenHostOrRootRule(Ur,Fr,Hr,Wr){if(Fr.propertyInfo||this.decorateRule(Fr),!!Fr.propertyInfo.properties){let Kr=Ur.is?ur._calcHostScope(Ur.is,Ur.extends):'html',jr=Fr.parsedSelector,qr=':host > *'===jr||'html'===jr,$r=0===jr.indexOf(':host')&&!qr;if('shady'===Hr&&(qr=jr===Kr+' > *.'+Kr||-1!==jr.indexOf('html'),$r=!qr&&0===jr.indexOf(Kr)),'shadow'===Hr&&(qr=':host > *'===jr||'html'===jr,$r=$r&&!qr),qr||$r){let Br=Kr;$r&&($o&&!Fr.transformedSelector&&(Fr.transformedSelector=ur._transformRuleCss(Fr,ur._transformComplexSelector,ur._calcElementScope(Ur.is),Kr)),Br=Fr.transformedSelector||Kr),Wr({selector:Br,isHost:$r,isRoot:qr})}}}hostAndRootPropertiesForScope(Ur,Fr){let Hr={},Wr={},Kr=this,jr=Fr&&Fr.__cssBuild;return Po(Fr,function(qr){Kr.whenHostOrRootRule(Ur,qr,jr,function($r){let Br=Ur._element||Ur;fr.call(Br,$r.selector)&&($r.isHost?Kr.collectProperties(qr,Hr):Kr.collectProperties(qr,Wr))})},null,!0),{rootProps:Wr,hostProps:Hr}}transformStyles(Ur,Fr,Hr){let Wr=this,Kr=ur._calcHostScope(Ur.is,Ur.extends),jr=Ur.extends?'\\'+Kr.slice(0,-1)+'\\]':Kr,qr=new RegExp(Vo.HOST_PREFIX+jr+Vo.HOST_SUFFIX),$r=yr.get(Ur).styleRules,Br=this._elementKeyframeTransforms(Ur,$r,Hr);return ur.elementStyles(Ur,$r,function(Gr){Wr.applyProperties(Gr,Fr),$o||To(Gr)||!Gr.cssText||(Wr.applyKeyframeTransforms(Gr,Br),Wr._scopeSelector(Gr,qr,Kr,Hr))})}_elementKeyframeTransforms(Ur,Fr,Hr){let Wr=Fr._keyframes,Kr={};if(!$o&&Wr)for(let jr=0,qr=Wr[jr];jr<Wr.length;qr=Wr[++jr])this._scopeKeyframes(qr,Hr),Kr[qr.keyframesName]=this._keyframesRuleTransformer(qr);return Kr}_keyframesRuleTransformer(Ur){return function(Fr){return Fr.replace(Ur.keyframesNameRx,Ur.transformedKeyframesName)}}_scopeKeyframes(Ur,Fr){Ur.keyframesNameRx=new RegExp(Ur.keyframesName,'g'),Ur.transformedKeyframesName=Ur.keyframesName+'-'+Fr,Ur.transformedSelector=Ur.transformedSelector||Ur.selector,Ur.selector=Ur.transformedSelector.replace(Ur.keyframesName,Ur.transformedKeyframesName)}_scopeSelector(Ur,Fr,Hr,Wr){Ur.transformedSelector=Ur.transformedSelector||Ur.selector;let Kr=Ur.transformedSelector,jr='.'+Wr,qr=Kr.split(',');for(let Gr,$r=0,Br=qr.length;$r<Br&&(Gr=qr[$r]);$r++)qr[$r]=Gr.match(Fr)?Gr.replace(Hr,jr):jr+' '+Gr;Ur.selector=qr.join(',')}applyElementScopeSelector(Ur,Fr,Hr){let Wr=Ur.getAttribute('class')||'',Kr=Wr;Hr&&(Kr=Wr.replace(new RegExp('\\s*'+br+'\\s*'+Hr+'\\s*','g'),' ')),Kr+=(Kr?' ':'')+br+' '+Fr,Wr!==Kr&&Do(Ur,Kr)}applyElementStyle(Ur,Fr,Hr,Wr){let Kr=Wr?Wr.textContent||'':this.transformStyles(Ur,Fr,Hr),jr=yr.get(Ur),qr=jr.customStyle;return qr&&!$o&&qr!==Wr&&(qr._useCount--,0>=qr._useCount&&qr.parentNode&&qr.parentNode.removeChild(qr)),$o?jr.customStyle?(jr.customStyle.textContent=Kr,Wr=jr.customStyle):Kr&&(Wr=xo(Kr,Hr,Ur.shadowRoot,jr.placeholder)):Wr?!Wr.parentNode&&Ao(Wr,null,jr.placeholder):Kr&&(Wr=xo(Kr,Hr,null,jr.placeholder)),Wr&&(Wr._useCount=Wr._useCount||0,jr.customStyle!=Wr&&Wr._useCount++,jr.customStyle=Wr),Nr&&(Wr.textContent=Wr.textContent),Wr}applyCustomStyle(Ur,Fr){let Hr=Co(Ur),Wr=this;Ur.textContent=Eo(Hr,function(Kr){let jr=Kr.cssText=Kr.parsedCssText;Kr.propertyInfo&&Kr.propertyInfo.cssText&&(jr=No(jr),Kr.cssText=Wr.valueForProperties(jr,Fr))})}}var vr=new Sr;let Er={};const Cr=window.customElements;if(Cr&&!$o){const Ur=Cr.define;Cr.define=function(Fr,Hr,Wr){return Er[Fr]=Mo(Fr),Ur.call(Cr,Fr,Hr,Wr)}}let Pr=Vo.MIXIN_MATCH,xr=Vo.VAR_ASSIGN,Ar=/;\s*/m,Rr=/^\s*(initial)|(inherit)\s*$/,Mr='_-_';class Or{constructor(){this._map={}}set(Ur,Fr){Ur=Ur.trim(),this._map[Ur]={properties:Fr,dependants:{}}}get(Ur){return Ur=Ur.trim(),this._map[Ur]}}class Ir{constructor(){this._currentTemplate=null,this._measureElement=null,this._map=new Or,this._separator=Mr,this._boundProduceCssProperties=(Ur,Fr,Hr,Wr)=>this._produceCssProperties(Ur,Fr,Hr,Wr)}detectMixin(Ur){const Fr=Pr.test(Ur)||xr.test(Ur);return Pr.lastIndex=0,xr.lastIndex=0,Fr}transformStyle(Ur,Fr){let Hr=Co(Ur);return this.transformRules(Hr,Fr),Hr}transformRules(Ur,Fr){this._currentTemplate=hr[Fr],Po(Ur,Hr=>{this.transformRule(Hr)}),this._currentTemplate=null}transformRule(Ur){Ur.cssText=this.transformCssText(Ur.parsedCssText),':root'===Ur.selector&&(Ur.selector=':host > *')}transformCssText(Ur){return Ur=Ur.replace(xr,this._boundProduceCssProperties),this._consumeCssProperties(Ur)}_getInitialValueForProperty(Ur){return this._measureElement||(this._measureElement=document.createElement('meta'),this._measureElement.style.all='initial',document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(Ur)}_consumeCssProperties(Ur){for(let Fr;Fr=Pr.exec(Ur);){let Hr=Fr[0],Wr=Fr[1],Kr=Fr.index,jr=Kr+Hr.indexOf('@apply'),qr=Kr+Hr.length,$r=Ur.slice(0,jr),Br=Ur.slice(qr),Gr=this._cssTextToMap($r),Yr=this._atApplyToCssProperties(Wr,Gr);Ur=[$r,Yr,Br].join(''),Pr.lastIndex=Kr+Yr.length}return Ur}_atApplyToCssProperties(Ur,Fr){Ur=Ur.replace(Ar,'');let Hr=[],Wr=this._map.get(Ur);if(Wr||(this._map.set(Ur,{}),Wr=this._map.get(Ur)),Wr){this._currentTemplate&&(Wr.dependants[this._currentTemplate.name]=this._currentTemplate);let Kr,jr,qr;for(Kr in Wr.properties)qr=Fr&&Fr[Kr],jr=[Kr,': var(',Ur,Mr,Kr],qr&&jr.push(',',qr),jr.push(')'),Hr.push(jr.join(''))}return Hr.join('; ')}_replaceInitialOrInherit(Ur,Fr){let Hr=Rr.exec(Fr);return Hr&&(Hr[1]?Fr=Ir._getInitialValueForProperty(Ur):Fr='apply-shim-inherit'),Fr}_cssTextToMap(Ur){let Fr=Ur.split(';'),Hr,Wr,Kr={};for(let qr,$r,jr=0;jr<Fr.length;jr++)qr=Fr[jr],qr&&($r=qr.split(':'),1<$r.length&&(Hr=$r[0].trim(),Wr=this._replaceInitialOrInherit(Hr,$r.slice(1).join(':')),Kr[Hr]=Wr));return Kr}_invalidateMixinEntry(Ur){for(let Fr in Ur.dependants)this._currentTemplate&&Fr===this._currentTemplate.name||yr.invalidate(Fr)}_produceCssProperties(Ur,Fr,Hr,Wr){if(Hr&&Io(Hr,(Zr,zr)=>{zr&&this._map.get(zr)&&(Wr='@apply '+zr+';')}),!Wr)return Ur;let Kr=this._consumeCssProperties(Wr),jr=Ur.slice(0,Ur.indexOf('--')),qr=this._cssTextToMap(Kr),$r=qr,Br=this._map.get(Fr),Gr=Br&&Br.properties;Gr?$r=Object.assign(Object.create(Gr),qr):this._map.set(Fr,$r);let Vr,Jr,Yr=[],Xr=!1;for(Vr in $r)Jr=qr[Vr],void 0==Jr&&(Jr='initial'),Gr&&!(Vr in Gr)&&(Xr=!0),Yr.push(Fr+Mr+Vr+': '+Jr);return Xr&&this._invalidateMixinEntry(Br),Br&&(Br.properties=$r),Hr&&(jr=Ur+';'+jr),jr+Yr.join('; ')+';'}}let Dr=new Ir;window.ApplyShim=Dr;let Lr=function(){};if(!$o){let Ur=jr=>{return jr.classList&&!jr.classList.contains(ur.SCOPE_NAME)||jr instanceof SVGElement&&(!jr.hasAttribute('class')||0>jr.getAttribute('class').indexOf(ur.SCOPE_NAME))},Fr=jr=>{for(let $r,qr=0;qr<jr.length;qr++)if($r=jr[qr],$r.target!==document.documentElement&&$r.target!==document.head){for(let Gr,Br=0;Br<$r.addedNodes.length;Br++)if(Gr=$r.addedNodes[Br],Ur(Gr)){let Yr=Gr.getRootNode();if(Yr.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let Vr=Yr.host;if(Vr){let Jr=Vr.is||Vr.localName;ur.dom(Gr,Jr)}}}for(let Gr,Br=0;Br<$r.removedNodes.length;Br++)if(Gr=$r.removedNodes[Br],Gr.nodeType===Node.ELEMENT_NODE){let Yr;if(Gr.classList?Yr=Array.from(Gr.classList):Gr.hasAttribute('class')&&(Yr=Gr.getAttribute('class').split(/\s+/)),void 0!=Yr){let Vr=Yr.indexOf(ur.SCOPE_NAME);if(0<=Vr){let Jr=Yr[Vr+1];Jr&&ur.dom(Gr,Jr,!0)}}}}},Hr=new MutationObserver(Fr),Wr=jr=>{Hr.observe(jr,{childList:!0,subtree:!0})},Kr=window.customElements&&!window.customElements.flush;if(Kr)Wr(document);else{let jr=()=>{Wr(document.body)};window.HTMLImports?window.HTMLImports.whenReady(jr):requestAnimationFrame(function(){if('loading'===document.readyState){let qr=function(){jr(),document.removeEventListener('readystatechange',qr)};document.addEventListener('readystatechange',qr)}else jr()})}Lr=function(){Fr(Hr.takeRecords())}}let wr=new class{constructor(Ur=100){this.cache={},this.typeMax=Ur}_validate(Ur,Fr,Hr){for(let Kr,Wr=0;Wr<Hr.length;Wr++)if(Kr=Hr[Wr],Ur.properties[Kr]!==Fr[Kr])return!1;return!0}store(Ur,Fr,Hr,Wr){let Kr=this.cache[Ur]||[];Kr.push({properties:Fr,styleElement:Hr,scopeSelector:Wr}),Kr.length>this.typeMax&&Kr.shift(),this.cache[Ur]=Kr}fetch(Ur,Fr,Hr){let Wr=this.cache[Ur];if(Wr)for(let jr,Kr=Wr.length-1;0<=Kr;Kr--)if(jr=Wr[Kr],this._validate(jr,Fr,Hr))return jr}};class kr{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement,this._documentOwnerStyleInfo=yr.set(document.documentElement,new yr({rules:[]})),this._elementsHaveApplied=!1}get nativeShadow(){return $o}get nativeCss(){return Bo}get nativeCssApply(){return!1}flush(){Lr()}_generateScopeSelector(Ur){let Fr=this._scopeCounter[Ur]=(this._scopeCounter[Ur]||0)+1;return`${Ur}-${Fr}`}getStyleAst(Ur){return Co(Ur)}styleAstToString(Ur){return Eo(Ur)}_gatherStyles(Ur){let Fr=Ur.content.querySelectorAll('style'),Hr=[];for(let Kr,Wr=0;Wr<Fr.length;Wr++)Kr=Fr[Wr],Hr.push(Kr.textContent),Kr.parentNode.removeChild(Kr);return Hr.join('').trim()}_getCssBuild(Ur){let Fr=Ur.content.querySelector('style');return Fr?Fr.getAttribute('css-build')||'':''}prepareTemplate(Ur,Fr,Hr){if(!Ur._prepared){Ur._prepared=!0,Ur.name=Fr,Ur.extends=Hr,hr[Fr]=Ur;let Wr=this._getCssBuild(Ur),Kr=this._gatherStyles(Ur),jr={is:Fr,extends:Hr,__cssBuild:Wr};this.nativeShadow||ur.dom(Ur.content,Fr);let qr=Dr.detectMixin(Kr),$r=co(Kr);qr&&this.nativeCss&&!this.nativeCssApply&&Dr.transformRules($r,Fr),Ur._styleAst=$r;let Br=[];if(this.nativeCss||(Br=vr.decorateStyles(Ur._styleAst,jr)),!Br.length||this.nativeCss){let Gr=this.nativeShadow?Ur.content:null,Yr=Er[Fr],Vr=this._generateStaticStyle(jr,Ur._styleAst,Gr,Yr);Ur._style=Vr}Ur._ownPropertyNames=Br}}_generateStaticStyle(Ur,Fr,Hr,Wr){let Kr=ur.elementStyles(Ur,Fr);if(Kr.length)return xo(Kr,Ur.is,Hr,Wr)}_prepareHost(Ur){let Hr,Fr=Ur.getAttribute('is')||Ur.localName;Fr!==Ur.localName&&(Hr=Ur.localName);let jr,qr,$r,Wr=Er[Fr],Kr=hr[Fr];return Kr&&(jr=Kr._styleAst,qr=Kr._ownPropertyNames,$r=Kr._cssBuild),yr.set(Ur,new yr(jr,Wr,qr,Fr,Hr,$r))}applyStyle(Ur,Fr){let Hr=Ur.getAttribute('is')||Ur.localName,Wr=yr.get(Ur),Kr=!!Wr;if(Wr||(Wr=this._prepareHost(Ur)),this._isRootOwner(Ur)||(this._elementsHaveApplied=!0),window.CustomStyle){let jr=window.CustomStyle;if(jr._documentDirty){if(jr.findStyles(),this.nativeCss?!this.nativeCssApply&&jr._revalidateApplyShim():this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),jr.applyStyles(),!this._elementsHaveApplied)return;if(!this.nativeCss&&(this.updateStyles(),Kr))return}}if(Fr&&(Wr.overrideStyleProperties=Wr.overrideStyleProperties||{},Object.assign(Wr.overrideStyleProperties,Fr)),this.nativeCss){Wr.overrideStyleProperties&&this._updateNativeProperties(Ur,Wr.overrideStyleProperties);let jr=hr[Hr];if(!jr&&!this._isRootOwner(Ur))return;if(jr&&jr._applyShimInvalid&&jr._style){if(jr._validating||(Dr.transformRules(jr._styleAst,Hr),jr._style.textContent=ur.elementStyles(Ur,Wr.styleRules),yr.startValidating(Hr)),this.nativeShadow){let qr=Ur.shadowRoot;if(qr){let $r=qr.querySelector('style');$r.textContent=ur.elementStyles(Ur,Wr.styleRules)}}Wr.styleRules=jr._styleAst}}else this._updateProperties(Ur,Wr),Wr.ownStylePropertyNames&&Wr.ownStylePropertyNames.length&&this._applyStyleProperties(Ur,Wr);if(Kr){let jr=this._isRootOwner(Ur)?Ur:Ur.shadowRoot;jr&&this._applyToDescendants(jr)}}_applyToDescendants(Ur){let Fr=Ur.children;for(let Wr,Hr=0;Hr<Fr.length;Hr++)Wr=Fr[Hr],Wr.shadowRoot&&this.applyStyle(Wr),this._applyToDescendants(Wr)}_styleOwnerForNode(Ur){let Fr=Ur.getRootNode(),Hr=Fr.host;return Hr?yr.get(Hr)?Hr:this._styleOwnerForNode(Hr):this._documentOwner}_isRootOwner(Ur){return Ur===this._documentOwner}_applyStyleProperties(Ur,Fr){let Hr=Ur.getAttribute('is')||Ur.localName,Wr=wr.fetch(Hr,Fr.styleProperties,Fr.ownStylePropertyNames),Kr=Wr&&Wr.scopeSelector,jr=Wr?Wr.styleElement:null,qr=Fr.scopeSelector;Fr.scopeSelector=Kr||this._generateScopeSelector(Hr);let $r=vr.applyElementStyle(Ur,Fr.styleProperties,Fr.scopeSelector,jr);return this.nativeShadow||vr.applyElementScopeSelector(Ur,Fr.scopeSelector,qr),Wr||wr.store(Hr,Fr.styleProperties,$r,Fr.scopeSelector),$r}_updateProperties(Ur,Fr){let Hr=this._styleOwnerForNode(Ur),Wr=yr.get(Hr),Kr=Wr.styleProperties,jr=Object.create(Kr||null),qr=vr.hostAndRootPropertiesForScope(Ur,Fr.styleRules),$r=vr.propertyDataFromStyles(Wr.styleRules,Ur),Br=$r.properties;Object.assign(jr,qr.hostProps,Br,qr.rootProps),this._mixinOverrideStyles(jr,Fr.overrideStyleProperties),vr.reify(jr),Fr.styleProperties=jr}_mixinOverrideStyles(Ur,Fr){for(let Hr in Fr){let Wr=Fr[Hr];(Wr||0===Wr)&&(Ur[Hr]=Wr)}}_updateNativeProperties(Ur,Fr){for(let Hr in Fr)null===Hr?Ur.style.removeProperty(Hr):Ur.style.setProperty(Hr,Fr[Hr])}updateStyles(Ur){this.applyStyle(this._documentOwner,Ur)}_transformCustomStyleForDocument(Ur){let Fr=Co(Ur);Po(Fr,Hr=>{$o?ur.normalizeRootSelector(Hr):ur.documentRule(Hr),this.nativeCss&&!this.nativeCssApply&&Dr.transformRule(Hr)}),this.nativeCss?Ur.textContent=Eo(Fr):this._documentOwnerStyleInfo.styleRules.rules.push(Fr)}_revalidateApplyShim(Ur){if(this.nativeCss&&!this.nativeCssApply){let Fr=Co(Ur);Dr.transformRules(Fr),Ur.textContent=Eo(Fr)}}_applyCustomStyleToDocument(Ur){this.nativeCss||vr.applyCustomStyle(Ur,this._documentOwnerStyleInfo.styleProperties)}getComputedStyleValue(Ur,Fr){let Hr;if(!this.nativeCss){let Wr=yr.get(Ur)||yr.get(this._styleOwnerForNode(Ur));Hr=Wr.styleProperties[Fr]}return Hr=Hr||window.getComputedStyle(Ur).getPropertyValue(Fr),Hr.trim()}setElementClass(Ur,Fr){let Hr=Ur.getRootNode(),Wr=Fr?Fr.split(/\s/):[],Kr=Hr.host&&Hr.host.localName;if(!Kr){var jr=Ur.getAttribute('class');if(jr){let qr=jr.split(/\s/);for(let $r=0;$r<qr.length;$r++)if(qr[$r]===ur.SCOPE_NAME){Kr=qr[$r+1];break}}}if(Kr&&Wr.push(ur.SCOPE_NAME,Kr),!this.nativeCss){let qr=yr.get(Ur);qr&&qr.scopeSelector&&Wr.push(vr.XSCOPE_NAME,qr.scopeSelector)}Do(Ur,Wr.join(' '))}_styleInfoForNode(Ur){return yr.get(Ur)}}window.ShadyCSS=new kr,function(){'use strict';HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent('WebComponentsReady'))})})}(window.WebComponents),function(){var Fr=document.createElement('style');Fr.textContent='body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n';var Hr=document.querySelector('head');Hr.insertBefore(Fr,Hr.firstChild)}(window.WebComponents)})();
//# sourceMappingURL=webcomponents-hi-ce-sd.js.map