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