(function(){'use strict';function ee(jt){return jt=te(jt),re(oe(jt),jt)}function te(jt){return jt.replace(Ie.comments,'').replace(Ie.port,'')}function oe(jt){let Wt={start:0,end:jt.length},Bt=Wt;for(let Kt=0,Gt=jt.length;Kt{'complete'===document.readyState&&Ae()}))}function Ae(){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 Qt,$t=Object.getOwnPropertyNames(Jt),Zt=0;Zt<$t.length;Zt++)Qt=$t[Zt],zt[Qt]=Jt[Qt]};Object.assign=function(zt){for(var Qt,$t=[].slice.call(arguments,1),Zt=0;Zt<$t.length;Zt++)Qt=$t[Zt],Qt&&Yt(zt,Qt);return zt}}})(window.WebComponents),function(jt){'use strict';function Wt(no){return Zt[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(So){uo.push(So)}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(Qt,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 Zt=!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(Zt)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}(jt||Gt)&&(Vt._cloneNode=function(eo,to){var oo=Wt.call(eo,!1);return this.decorate&&this.decorate(oo),to&&(oo.content.appendChild(Wt.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(yo,go){yo.href&&yo.setAttribute('href',Yt.replaceAttrUrl(yo.getAttribute('href'),go)),yo.src&&yo.setAttribute('src',Yt.replaceAttrUrl(yo.getAttribute('src'),go)),'style'===yo.localName&&Yt.resolveUrlsInStyle(yo,go)},fixUrlAttributes(yo,go){const fo=['action','src','href','url','style'];for(let vo,bo=0;boEo.search(/({{|\[\[)/)&&(No.value='style'===vo?Yt.resolveUrlsInCssText(Eo,go):Yt.replaceAttrUrl(Eo,go))}},fixUrlsInTemplates(yo,go){const fo=yo.querySelectorAll('template');for(let bo=0;bo{let So=No.replace(/["']/g,'');return go&&(So=Yt.resolveUrl(So,go)),vo+'\''+So+'\''+Eo})},replaceAttrUrl(yo,go){return yo&&Kt.test(yo)?yo:Yt.resolveUrl(yo,go)},resolveUrl(yo,go){if(void 0===Yt.__workingURL){Yt.__workingURL=!1;try{const bo=new URL('b','http://a');bo.pathname='c%20d',Yt.__workingURL='http://a/c%20d'===bo.href}catch(bo){}}if(Yt.__workingURL)return new URL(yo,go).href;let fo=Yt.__tempDoc;return fo||(fo=document.implementation.createHTMLDocument('temp'),Yt.__tempDoc=fo,fo.__base=fo.createElement('base'),fo.head.appendChild(fo.__base),fo.__anchor=fo.createElement('a')),fo.__base.href=go,fo.__anchor.href=yo,fo.__anchor.href||yo}},zt={async:!0,load(yo,go,fo){if(!yo)fo('error: href must be specified');else if(yo.match(/^data:/)){const bo=yo.split(','),vo=bo[0];let No=bo[1];No=-1{let vo=bo.getResponseHeader('Location');if(vo&&0===vo.indexOf('/')){const Eo=location.origin||location.protocol+'//'+location.host;vo=Eo+vo}const No=bo.response||bo.responseText;304===bo.status||0===bo.status||200<=bo.status&&300>bo.status?go(No,vo):fo(No)},bo.send()}}},Jt=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent),$t='link[rel=import]',Zt='import-disable',Qt=`link[rel=stylesheet][href][type=${Zt}]`,eo=`${$t}, ${Qt}, style:not([type]), link[rel=stylesheet][href]:not([type]), script:not([type]), script[type="application/javascript"], script[type="text/javascript"]`,to='import-dependency',oo=`${$t}:not(${to})`,ro=`script[${to}]`,no=`style[${to}], link[rel=stylesheet][${to}]`,so=Symbol('loaded'),ao=Symbol('importDoc');const io=yo=>{return yo.nodeType===Node.ELEMENT_NODE&&'link'===yo.localName&&'import'===yo.rel},po=(yo,go)=>{if(yo[so])go&&go();else if('script'===yo.localName&&!yo.src)yo[so]=!0,go&&go();else{const fo=bo=>{yo.removeEventListener(bo.type,fo),yo[so]=!0,go&&go()};yo.addEventListener('load',fo),Jt&&'style'===yo.localName||yo.addEventListener('error',fo)}},co=yo=>{ho(()=>_o(()=>yo&&yo()))},ho=yo=>{if('loading'!==document.readyState)yo();else{const go=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',go),yo())};document.addEventListener('readystatechange',go)}},_o=yo=>{let go=document.querySelectorAll(oo),fo=go.length;if(!fo)return void yo();for(let No,bo=0,vo=go.length;bo{0==--fo&&yo()})},uo=yo=>{if(Wt)return yo.ownerDocument===document?null:yo.ownerDocument;let go=yo[ao];if(!go&&yo.parentNode){if(go=yo.parentNode,'function'==typeof go.closest)go=go.closest($t);else for(;!io(go)&&(go=go.parentNode););yo[ao]=go}return go},mo=(yo,go)=>{if('function'==typeof window.CustomEvent)return new CustomEvent(yo,go);const fo=document.createEvent('CustomEvent');return fo.initCustomEvent(yo,!!go.bubbles,!!go.cancelable,go.detail),fo};if(Wt){const yo=document.querySelectorAll($t);for(let vo,fo=0,bo=yo.length;fo{const bo=fo.target;io(bo)&&(bo[so]=!0)};document.addEventListener('load',go,!0),document.addEventListener('error',go,!0)}else new class{constructor(){this.documents={},this.inflight=0,this.dynamicImportsMO=new MutationObserver(yo=>this.handleMutations(yo)),ho(()=>{this.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),this.loadImports(document)})}loadImports(yo){const go=yo.querySelectorAll($t);for(let fo=0,bo=go.length;fo{const vo=this.makeDocument(fo,bo||go);this.documents[go]=vo,this.inflight--,this.loadImports(vo)},()=>{this.documents[go]=null,this.inflight--,this.processImportsIfLoadingDone()})}makeDocument(yo,go){if(!yo)return document.createDocumentFragment();Jt&&(yo=yo.replace(Vt,(So,Co,To)=>{return-1===So.indexOf('type=')?`${Co} type=${Zt} ${To}`:So}));let fo;const bo=document.createElement('template');if(bo.innerHTML=yo,bo.content)fo=bo.content;else for(fo=document.createDocumentFragment();bo.firstChild;)fo.appendChild(bo.firstChild);const vo=fo.querySelector('base');vo&&(go=Yt.replaceAttrUrl(vo.getAttribute('href'),go),vo.removeAttribute('href'));const No=fo.querySelectorAll(eo);let Eo=0;for(let To,So=0,Co=No.length;So{go&&yo&&(this.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),this.fireEvents())};this.waitForStyles(()=>{go=!0,fo()}),this.runScripts(()=>{yo=!0,fo()})}}flatten(yo){const go=yo.querySelectorAll($t);for(let vo,fo=0,bo=go.length;fovo.href,configurable:!0,enumerable:!0}),this.flatten(No),vo.appendChild(No))}}runScripts(yo){const go=document.querySelectorAll(ro),fo=go.length,bo=vo=>{if(vo{Bt=null,bo(vo+1)})}else yo()};bo(0)}waitForStyles(yo){const go=document.querySelectorAll(no);let fo=go.length;if(!fo)return void yo();const bo=Jt&&!!document.querySelector(Qt);for(let Eo,vo=0,No=go.length;vo{Eo.removeAttribute(to),0==--fo&&yo()}),bo&&Eo.parentNode!==document.head){const So=document.createElement(Eo.localName);So.__appliedElement=Eo,So.setAttribute('type','import-placeholder'),Eo.parentNode.insertBefore(So,Eo.nextSibling);let Co=uo(Eo);for(;Co&&uo(Co);)Co=uo(Co);Co.parentNode!==document.head&&(Co=null),document.head.insertBefore(Eo,Co),Eo.removeAttribute('type')}}fireEvents(){const yo=document.querySelectorAll($t);for(let fo,go=yo.length-1;0<=go&&(fo=yo[go]);go--)this.fireEventIfNeeded(fo)}fireEventIfNeeded(yo){if(!yo[so]){yo[so]=!0,yo.import&&(yo.import.readyState='complete');const go=yo.import?'load':'error';yo.dispatchEvent(mo(go,{bubbles:!1,cancelable:!1,detail:void 0}))}}handleMutations(yo){for(let go=0;godocument.dispatchEvent(mo('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),jt.useNative=Wt,jt.whenReady=co,jt.importForElement=uo})(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 Zt,$t=Jt.split('=');$t[0]&&(Zt=$t[0].match(/wc-(.+)/))&&(Bt[Zt[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(Mr,wr,Or){return{index:Mr,removed:wr,addedCount:Or}}function Wt(Mr){return'ShadyRoot'===Mr.__localName}function Bt(Mr,wr){if(Mr&&wr)for(var Lr,Or=Object.getOwnPropertyNames(wr),Dr=0;Dr'===Mr?'>':'"'===Mr?'"':'\xA0'===Mr?' ':void 0}function Vt(Mr){for(var wr={},Or=0;Or';case Node.TEXT_NODE:return Mr=Mr.data,wr&&jo[wr.localName]?Mr:Mr.replace(Uo,Xt);case Node.COMMENT_NODE:return'';default:throw window.console.error(Mr),Error('not implemented');}}function zt(Mr,wr){'template'===Mr.localName&&(Mr=Mr.content);for(var Hr,Or='',Dr=wr?wr(Mr):Mr.childNodes,Lr=0,kr=Dr.length;Lr]/g,qo=Vt('area base br col command embed hr img input keygen link meta param source track wbr'.split(' ')),jo=Vt('style script xmp iframe noembed noframes plaintext noscript'.split(' '));Ho.getOuterHTML=Yt,Ho.getInnerHTML=zt;var Wo={},Bo=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Ko=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);Wo.parentNode=function(Mr){return Bo.currentNode=Mr,Bo.parentNode()},Wo.firstChild=function(Mr){return Bo.currentNode=Mr,Bo.firstChild()},Wo.lastChild=function(Mr){return Bo.currentNode=Mr,Bo.lastChild()},Wo.previousSibling=function(Mr){return Bo.currentNode=Mr,Bo.previousSibling()},Wo.nextSibling=function(Mr){return Bo.currentNode=Mr,Bo.nextSibling()},Wo.childNodes=Jt,Wo.parentElement=function(Mr){return Ko.currentNode=Mr,Ko.parentNode()},Wo.firstElementChild=function(Mr){return Ko.currentNode=Mr,Ko.firstChild()},Wo.lastElementChild=function(Mr){return Ko.currentNode=Mr,Ko.lastChild()},Wo.previousElementSibling=function(Mr){return Ko.currentNode=Mr,Ko.previousSibling()},Wo.nextElementSibling=function(Mr){return Ko.currentNode=Mr,Ko.nextSibling()},Wo.children=function(Mr){var wr=[];for(Ko.currentNode=Mr,Mr=Ko.firstChild();Mr;)wr.push(Mr),Mr=Ko.nextSibling();return wr},Wo.innerHTML=function(Mr){return Ho.getInnerHTML(Mr,function(wr){return Jt(wr)})},Wo.textContent=function(Mr){if(Mr.nodeType!==Node.ELEMENT_NODE)return Mr.nodeValue;Mr=document.createTreeWalker(Mr,NodeFilter.SHOW_TEXT,null,!1);for(var Or,wr='';Or=Mr.nextNode();)wr+=Or.nodeValue;return wr};var Go={},Xo=Object.getOwnPropertyDescriptor(Element.prototype,'innerHTML')||Object.getOwnPropertyDescriptor(HTMLElement.prototype,'innerHTML'),Vo=document.implementation.createHTMLDocument('inert').createElement('div'),Yo=Object.getOwnPropertyDescriptor(Document.prototype,'activeElement'),zo={parentElement:$t('parentElement'),parentNode:$t('parentNode'),nextSibling:$t('nextSibling'),previousSibling:$t('previousSibling'),className:{get:function(){return this.getAttribute('class')},set:function(Mr){this.setAttribute('class',Mr)},configurable:!0},nextElementSibling:{get:function(){if(ko.hasProperty(this,'nextSibling')){for(var Mr=this.nextSibling;Mr&&Mr.nodeType!==Node.ELEMENT_NODE;)Mr=Mr.nextSibling;return Mr}return Wo.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(ko.hasProperty(this,'previousSibling')){for(var Mr=this.previousSibling;Mr&&Mr.nodeType!==Node.ELEMENT_NODE;)Mr=Mr.previousSibling;return Mr}return Wo.previousElementSibling(this)},configurable:!0}},Jo={childNodes:{get:function(){if(ko.hasProperty(this,'firstChild')){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var Mr=this.firstChild;Mr;Mr=Mr.nextSibling)this.__shady.childNodes.push(Mr)}return this.__shady.childNodes}return Wo.childNodes(this)},configurable:!0},firstChild:$t('firstChild'),lastChild:$t('lastChild'),textContent:{get:function(){if(ko.hasProperty(this,'firstChild')){for(var Dr,Mr=[],wr=0,Or=this.childNodes;Dr=Or[wr];wr++)Dr.nodeType!==Node.COMMENT_NODE&&Mr.push(Dr.textContent);return Mr.join('')}return Wo.textContent(this)},set:function(Mr){if(this.nodeType!==Node.ELEMENT_NODE)this.nodeValue=Mr;else{for(;this.firstChild;)this.removeChild(this.firstChild);Mr&&this.appendChild(document.createTextNode(Mr))}},configurable:!0},firstElementChild:{get:function(){if(ko.hasProperty(this,'firstChild')){for(var Mr=this.firstChild;Mr&&Mr.nodeType!==Node.ELEMENT_NODE;)Mr=Mr.nextSibling;return Mr}return Wo.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(ko.hasProperty(this,'lastChild')){for(var Mr=this.lastChild;Mr&&Mr.nodeType!==Node.ELEMENT_NODE;)Mr=Mr.previousSibling;return Mr}return Wo.lastElementChild(this)},configurable:!0},children:{get:function(){return ko.hasProperty(this,'firstChild')?Array.prototype.filter.call(this.childNodes,function(Mr){return Mr.nodeType===Node.ELEMENT_NODE}):Wo.children(this)},configurable:!0},innerHTML:{get:function(){var Mr='template'===this.localName?this.content:this;return ko.hasProperty(this,'firstChild')?Ho.getInnerHTML(Mr):Wo.innerHTML(Mr)},set:function(Mr){for(var wr='template'===this.localName?this.content:this;wr.firstChild;)wr.removeChild(wr.firstChild);for(Xo&&Xo.set?Xo.set.call(Vo,Mr):Vo.innerHTML=Mr;Vo.firstChild;)wr.appendChild(Vo.firstChild)},configurable:!0}},$o={shadowRoot:{get:function(){return this.shadyRoot},set:function(Mr){this.shadyRoot=Mr},configurable:!0}},Zo={activeElement:{get:function(){var Mr;if(Mr=Yo&&Yo.get?Yo.get.call(document):To.settings.hasDescriptors?void 0:document.activeElement,Mr){var wr=!!To.isShadyRoot(this);if(this===document||wr&&this.host!==Mr&&this.host.contains(Mr)){for(wr=To.ownerShadyRootForNode(Mr);wr&&wr!==this;)Mr=wr.host,wr=To.ownerShadyRootForNode(Mr);Mr=this===document?wr?null:Mr:wr===this?Mr:null}else Mr=null}else Mr=null;return Mr},set:function(){},configurable:!0}},Qo=To.settings.hasDescriptors?function(){}:function(Mr){Mr.__shady&&Mr.__shady.__outsideAccessors||(Mr.__shady=Mr.__shady||{},Mr.__shady.__outsideAccessors=!0,Zt(Mr,zo,!0))},er=To.settings.hasDescriptors?function(){}:function(Mr){Mr.__shady&&Mr.__shady.__insideAccessors||(Mr.__shady=Mr.__shady||{},Mr.__shady.__insideAccessors=!0,Zt(Mr,Jo,!0),Zt(Mr,$o,!0))};Go.ShadowRootAccessor=$o,Go.ActiveElementAccessor=Zo,Go.patchAccessors=function(Mr){Zt(Mr,zo),Zt(Mr,Jo),Zt(Mr,Zo)},Go.patchShadowRootAccessors=function(Mr){Zt(Mr,Jo,!0),Zt(Mr,Zo,!0)},Go.patchOutsideElementAccessors=Qo,Go.patchInsideElementAccessors=er;var tr={};tr.recordInsertBefore=function(Mr,wr,Or){if(Go.patchInsideElementAccessors(wr),wr.__shady=wr.__shady||{},ko.hasProperty(wr,'firstChild')&&(wr.__shady.childNodes=null),Mr.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var Dr=Mr.childNodes,Lr=0;Lr+~])'};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(Ze,(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)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ze=/(.*):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 Et={};const St=window.customElements;if(St&&!De){const jt=St.define;St.define=function(Wt,Bt,Kt){return Et[Wt]=ve(Wt),jt.call(St,Wt,Bt,Kt)}}let Tt=Fe.MIXIN_MATCH,At=Fe.VAR_ASSIGN,Pt=/;\s*/m,Rt=/^\s*(initial)|(inherit)\s*$/,xt='_-_';class It{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 It,this._separator=xt,this._boundProduceCssProperties=(jt,Wt,Bt,Kt)=>this._produceCssProperties(jt,Wt,Bt,Kt)}detectMixin(jt){const Wt=Tt.test(jt)||At.test(jt);return Tt.lastIndex=0,At.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(At,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=Tt.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(''),Tt.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 Zt,Qt,$t=[],eo=!1;for(Zt in Yt)Qt=Vt[Zt],void 0==Qt&&(Qt='initial'),Jt&&!(Zt in Jt)&&(eo=!0),$t.push(Wt+xt+Zt+': '+Qt);return eo&&this._invalidateMixinEntry(zt),zt&&(zt.properties=Yt),Bt&&(Xt=jt+';'+Xt),Xt+$t.join('; ')+';'}}let wt=new Mt;window.ApplyShim=wt;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&&wt.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);wt.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