(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(uo,mo){uo.href&&uo.setAttribute('href',Yt.replaceAttrUrl(uo.getAttribute('href'),mo)),uo.src&&uo.setAttribute('src',Yt.replaceAttrUrl(uo.getAttribute('src'),mo)),'style'===uo.localName&&Yt.resolveUrlsInStyle(uo,mo)},fixUrlAttributes(uo,mo){const yo=['action','src','href','url','style'];for(let fo,go=0;govo.search(/({{|\[\[)/)&&(bo.value='style'===fo?Yt.resolveUrlsInCssText(vo,mo):Yt.replaceAttrUrl(vo,mo))}},fixUrlsInTemplates(uo,mo){const yo=uo.querySelectorAll('template');for(let go=0;go{let No=bo.replace(/["']/g,'');return mo&&(No=Yt.resolveUrl(No,mo)),fo+'\''+No+'\''+vo})},replaceAttrUrl(uo,mo){return uo&&Kt.test(uo)?uo:Yt.resolveUrl(uo,mo)},resolveUrl(uo,mo){if(void 0===Yt.__workingURL){Yt.__workingURL=!1;try{const go=new URL('b','http://a');go.pathname='c%20d',Yt.__workingURL='http://a/c%20d'===go.href}catch(go){}}if(Yt.__workingURL)return new URL(uo,mo).href;let yo=Yt.__tempDoc;return yo||(yo=document.implementation.createHTMLDocument('temp'),Yt.__tempDoc=yo,yo.__base=yo.createElement('base'),yo.head.appendChild(yo.__base),yo.__anchor=yo.createElement('a')),yo.__base.href=mo,yo.__anchor.href=uo,yo.__anchor.href||uo}},zt={async:!0,load(uo,mo,yo){if(!uo)yo('error: href must be specified');else if(uo.match(/^data:/)){const go=uo.split(','),fo=go[0];let bo=go[1];bo=-1{let fo=go.getResponseHeader('Location');if(fo&&0===fo.indexOf('/')){const vo=location.origin||location.protocol+'//'+location.host;fo=vo+fo}const bo=go.response||go.responseText;304===go.status||0===go.status||200<=go.status&&300>go.status?mo(bo,fo):yo(bo)},go.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}]`;const ao=uo=>{return uo.nodeType===Node.ELEMENT_NODE&&'link'===uo.localName&&'import'===uo.rel},lo=(uo,mo)=>{if(uo.__loaded)mo&&mo();else if('script'===uo.localName&&!uo.src)uo.__loaded=!0,mo&&mo();else{const yo=go=>{uo.removeEventListener(go.type,yo),uo.__loaded=!0,mo&&mo()};uo.addEventListener('load',yo),Jt&&'style'===uo.localName||uo.addEventListener('error',yo)}},io=uo=>{po(()=>co(()=>uo&&uo()))},po=uo=>{if('loading'!==document.readyState)uo();else{const mo=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',mo),uo())};document.addEventListener('readystatechange',mo)}},co=uo=>{let mo=document.querySelectorAll(oo),yo=mo.length;if(!yo)return void uo();for(let bo,go=0,fo=mo.length;go{0==--yo&&uo()})},ho=uo=>{if(Wt)return uo.ownerDocument;let mo=uo.__ownerImport;if(!mo){for(mo=uo;(mo=mo.parentNode||mo.host)&&!ao(mo););uo.__ownerImport=mo}return mo},_o=(uo,mo)=>{if('function'==typeof window.CustomEvent)return new CustomEvent(uo,mo);const yo=document.createEvent('CustomEvent');return yo.initCustomEvent(uo,!!mo.bubbles,!!mo.cancelable,mo.detail),yo};if(Wt){const uo=document.querySelectorAll($t);for(let fo,yo=0,go=uo.length;yo{const go=yo.target;ao(go)&&(go.__loaded=!0)};document.addEventListener('load',mo,!0),document.addEventListener('error',mo,!0)}else new class{constructor(){this.documents={},this.inflight=0,this.dynamicImportsMO=new MutationObserver(uo=>this.handleMutations(uo)),po(()=>{this.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),this.loadImports(document)})}loadImports(uo){const mo=uo.querySelectorAll($t);for(let yo=0,go=mo.length;yo{const fo=this.makeDocument(yo,go||mo);this.documents[mo]=fo,this.inflight--,this.loadImports(fo)},()=>{this.documents[mo]=null,this.inflight--,this.processImportsIfLoadingDone()})}makeDocument(uo,mo){if(!uo)return document.createDocumentFragment();Jt&&(uo=uo.replace(Vt,(Eo,So,Co)=>{return-1===Eo.indexOf('type=')?`${So} type=${Zt} ${Co}`:Eo}));let yo;const go=document.createElement('template');if(go.innerHTML=uo,go.content)yo=go.content;else for(yo=document.createDocumentFragment();go.firstChild;)yo.appendChild(go.firstChild);const fo=yo.querySelector('base');fo&&(mo=Yt.replaceAttrUrl(fo.getAttribute('href'),mo),fo.removeAttribute('href'));const bo=yo.querySelectorAll('dom-module');for(let So,Eo=0;Eo{mo&&uo&&(this.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),this.fireEvents())};this.waitForStyles(()=>{mo=!0,yo()}),this.runScripts(()=>{uo=!0,yo()})}}flatten(uo){const mo=uo.querySelectorAll($t);for(let fo,yo=0,go=mo.length;yo{if(fo{Bt=null,go(fo+1)})}else uo()};go(0)}waitForStyles(uo){const mo=document.querySelectorAll(no);let yo=mo.length;if(!yo)return void uo();const go=Jt&&!!document.querySelector(Qt);for(let vo,fo=0,bo=mo.length;fo{vo.removeAttribute(to),0==--yo&&uo()}),go&&vo.parentNode!==document.head){let No=ho(vo);for(;No&&ho(No);)No=ho(No);const Eo=vo.parentNode,So=vo.nextSibling,Co=document.createElement(vo.localName);Co.__appliedElement=vo,Co.setAttribute('type','import-placeholder'),No.parentNode===document.head?document.head.insertBefore(vo,No):document.head.appendChild(vo),Eo.insertBefore(Co,So),vo.removeAttribute('type')}}fireEvents(){const uo=document.querySelectorAll($t);for(let yo,mo=uo.length-1;0<=mo&&(yo=uo[mo]);mo--)this.fireEventIfNeeded(yo)}fireEventIfNeeded(uo){if(!uo.__loaded){uo.__loaded=!0,uo.import&&(uo.import.readyState='complete');const mo=uo.import?'load':'error';uo.dispatchEvent(_o(mo,{bubbles:!1,cancelable:!1,detail:void 0}))}}handleMutations(uo){for(let mo=0;modocument.dispatchEvent(_o('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),jt.useNative=Wt,jt.whenReady=io,jt.importForElement=ho})(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(Bn,Kn,Gn){return{index:Bn,removed:Kn,addedCount:Gn}}function Wt(Bn){return'ShadyRoot'===Bn.__localName}function Gt(Bn,Kn,Gn){(Kn=Object.getOwnPropertyDescriptor(Kn,Bn))&&Object.defineProperty(Gn,Bn,Kn)}function Xt(Bn,Kn){if(Bn&&Kn)for(var Vn,Gn=Object.getOwnPropertyNames(Kn),Xn=0;Xn'===Bn?'>':'"'===Bn?'"':'\xA0'===Bn?' ':void 0}function oo(Bn){return Bn.replace(Ur,to)}function ro(Bn){return Bn.replace(qr,to)}function no(Bn){for(var Kn={},Gn=0;Gn';case Node.TEXT_NODE:return Bn=Bn.data,Kn&&Wr[Kn.localName]?Bn:ro(Bn);case Node.COMMENT_NODE:return'';default:throw window.console.error(Bn),Error('not implemented');}}function ao(Bn,Kn){'template'===Bn.localName&&(Bn=Bn.content);for(var zn,Gn='',Xn=Kn?Kn(Bn):Bn.childNodes,Vn=0,Yn=Xn.length;Vn]/g,jr=no('area base br col command embed hr img input keygen link meta param source track wbr'.split(' ')),Wr=no('style script xmp iframe noembed noframes plaintext noscript'.split(' '));Fr.getOuterHTML=so,Fr.getInnerHTML=ao;var Br={},Kr=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Gr=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);Br.parentNode=function(Bn){return Kr.currentNode=Bn,Kr.parentNode()},Br.firstChild=function(Bn){return Kr.currentNode=Bn,Kr.firstChild()},Br.lastChild=function(Bn){return Kr.currentNode=Bn,Kr.lastChild()},Br.previousSibling=function(Bn){return Kr.currentNode=Bn,Kr.previousSibling()},Br.nextSibling=function(Bn){return Kr.currentNode=Bn,Kr.nextSibling()},Br.childNodes=_o,Br.parentElement=function(Bn){return Gr.currentNode=Bn,Gr.parentNode()},Br.firstElementChild=function(Bn){return Gr.currentNode=Bn,Gr.firstChild()},Br.lastElementChild=function(Bn){return Gr.currentNode=Bn,Gr.lastChild()},Br.previousElementSibling=function(Bn){return Gr.currentNode=Bn,Gr.previousSibling()},Br.nextElementSibling=function(Bn){return Gr.currentNode=Bn,Gr.nextSibling()},Br.children=function(Bn){var Kn=[];for(Gr.currentNode=Bn,Bn=Gr.firstChild();Bn;)Kn.push(Bn),Bn=Gr.nextSibling();return Kn},Br.innerHTML=function(Bn){return Fr.getInnerHTML(Bn,function(Kn){return _o(Kn)})},Br.textContent=function(Bn){if(Bn.nodeType!==Node.ELEMENT_NODE)return Bn.nodeValue;Bn=document.createTreeWalker(Bn,NodeFilter.SHOW_TEXT,null,!1);for(var Gn,Kn='';Gn=Bn.nextNode();)Kn+=Gn.nodeValue;return Kn};var Xr={},Vr=Object.getOwnPropertyDescriptor(Element.prototype,'innerHTML')||Object.getOwnPropertyDescriptor(HTMLElement.prototype,'innerHTML'),Yr=document.implementation.createHTMLDocument('inert'),zr=Yr.createElement('div'),Jr=Object.getOwnPropertyDescriptor(Document.prototype,'activeElement'),$r={parentElement:Eo('parentElement'),parentNode:Eo('parentNode'),nextSibling:Eo('nextSibling'),previousSibling:Eo('previousSibling'),className:{get:function(){return this.getAttribute('class')},set:function(Bn){this.setAttribute('class',Bn)},configurable:!0},nextElementSibling:{get:function(){if(Hr.hasProperty(this,'nextSibling')){for(var Bn=this.nextSibling;Bn&&Bn.nodeType!==Node.ELEMENT_NODE;)Bn=Bn.nextSibling;return Bn}return Br.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(Hr.hasProperty(this,'previousSibling')){for(var Bn=this.previousSibling;Bn&&Bn.nodeType!==Node.ELEMENT_NODE;)Bn=Bn.previousSibling;return Bn}return Br.previousElementSibling(this)},configurable:!0}},Zr={childNodes:{get:function(){if(Hr.hasProperty(this,'firstChild')){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var Bn=this.firstChild;Bn;Bn=Bn.nextSibling)this.__shady.childNodes.push(Bn)}return this.__shady.childNodes}return Br.childNodes(this)},configurable:!0},firstChild:Eo('firstChild'),lastChild:Eo('lastChild'),textContent:{get:function(){if(Hr.hasProperty(this,'firstChild')){for(var Xn,Bn=[],Kn=0,Gn=this.childNodes;Xn=Gn[Kn];Kn++)Xn.nodeType!==Node.COMMENT_NODE&&Bn.push(Xn.textContent);return Bn.join('')}return Br.textContent(this)},set:function(Bn){this.nodeType===Node.ELEMENT_NODE?(So(this),Bn&&this.appendChild(document.createTextNode(Bn))):this.nodeValue=Bn},configurable:!0},firstElementChild:{get:function(){if(Hr.hasProperty(this,'firstChild')){for(var Bn=this.firstChild;Bn&&Bn.nodeType!==Node.ELEMENT_NODE;)Bn=Bn.nextSibling;return Bn}return Br.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(Hr.hasProperty(this,'lastChild')){for(var Bn=this.lastChild;Bn&&Bn.nodeType!==Node.ELEMENT_NODE;)Bn=Bn.previousSibling;return Bn}return Br.lastElementChild(this)},configurable:!0},children:{get:function(){return Hr.hasProperty(this,'firstChild')?Array.prototype.filter.call(this.childNodes,function(Bn){return Bn.nodeType===Node.ELEMENT_NODE}):Br.children(this)},configurable:!0},innerHTML:{get:function(){var Bn='template'===this.localName?this.content:this;return Hr.hasProperty(this,'firstChild')?Fr.getInnerHTML(Bn):Br.innerHTML(Bn)},set:function(Bn){var Kn='template'===this.localName?this.content:this;for(So(Kn),Vr&&Vr.set?Vr.set.call(zr,Bn):zr.innerHTML=Bn;zr.firstChild;)Kn.appendChild(zr.firstChild)},configurable:!0}},Qr={shadowRoot:{get:function(){return this.shadyRoot},set:function(Bn){this.shadyRoot=Bn},configurable:!0}},en={activeElement:{get:function(){return To(this)},set:function(){},configurable:!0}},tn=Ar.settings.hasDescriptors?function(){}:function(Bn){Bn.__shady&&Bn.__shady.__outsideAccessors||(Bn.__shady=Bn.__shady||{},Bn.__shady.__outsideAccessors=!0,Ao(Bn,$r,!0))},on=Ar.settings.hasDescriptors?function(){}:function(Bn){Bn.__shady&&Bn.__shady.__insideAccessors||(Bn.__shady=Bn.__shady||{},Bn.__shady.__insideAccessors=!0,Ao(Bn,Zr,!0),Ao(Bn,Qr,!0))};Xr.ShadowRootAccessor=Qr,Xr.ActiveElementAccessor=en,Xr.patchAccessors=function(Bn){Ao(Bn,$r),Ao(Bn,Zr),Ao(Bn,en)},Xr.patchShadowRootAccessors=function(Bn){Ao(Bn,Zr,!0),Ao(Bn,en,!0)},Xr.patchOutsideElementAccessors=tn,Xr.patchInsideElementAccessors=on;var rn={};rn.recordInsertBefore=function(Bn,Kn,Gn){if(Xr.patchInsideElementAccessors(Kn),Kn.__shady=Kn.__shady||{},Hr.hasProperty(Kn,'firstChild')&&(Kn.__shady.childNodes=null),Bn.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var Xn=Bn.childNodes,Vn=0;Vn+~])'};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