mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
7 lines
103 KiB
JavaScript
7 lines
103 KiB
JavaScript
(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<Gt;Kt++)if(jt[Kt]===Re){Bt.rules||(Bt.rules=[]);let Xt=Bt,Vt=Xt.rules[Xt.rules.length-1];Bt={start:Kt+1,parent:Xt,previous:Vt},Xt.rules.push(Bt)}else jt[Kt]===xe&&(Bt.end=Kt+1,Bt=Bt.parent||Wt);return Wt}function re(jt,Wt){let Bt=Wt.substring(jt.start,jt.end-1);if(jt.parsedCssText=jt.cssText=Bt.trim(),jt.parent){let Gt=jt.previous?jt.previous.end:jt.parent.start;Bt=Wt.substring(Gt,jt.start-1),Bt=ne(Bt),Bt=Bt.replace(Ie.multipleSpaces,' '),Bt=Bt.substring(Bt.lastIndexOf(';')+1);let Xt=jt.parsedSelector=jt.selector=Bt.trim();jt.atRule=0===Xt.indexOf('@'),jt.atRule?0===Xt.indexOf('@media')?jt.type=Pe.MEDIA_RULE:Xt.match(Ie.keyframesRule)&&(jt.type=Pe.KEYFRAMES_RULE,jt.keyframesName=jt.selector.split(Ie.multipleSpaces).pop()):0===Xt.indexOf(Me)?jt.type=Pe.MIXIN_RULE:jt.type=Pe.STYLE_RULE}let Kt=jt.rules;if(Kt)for(let Vt,Gt=0,Xt=Kt.length;Gt<Xt&&(Vt=Kt[Gt]);Gt++)re(Vt,Wt);return jt}function ne(jt){return jt.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let Wt=arguments[1],Bt=6-Wt.length;for(;Bt--;)Wt='0'+Wt;return'\\'+Wt})}function se(jt,Wt,Bt){Bt=Bt||'';let Kt='';if(jt.cssText||jt.rules){let Gt=jt.rules;if(Gt&&!ae(Gt))for(let Yt,Xt=0,Vt=Gt.length;Xt<Vt&&(Yt=Gt[Xt]);Xt++)Kt=se(Yt,Wt,Kt);else Kt=Wt?jt.cssText:le(jt.cssText),Kt=Kt.trim(),Kt&&(Kt=' '+Kt+'\n')}return Kt&&(jt.selector&&(Bt+=jt.selector+' '+Re+'\n'),Bt+=Kt,jt.selector&&(Bt+=xe+'\n\n')),Bt}function ae(jt){return 0===jt[0].selector.indexOf(Me)}function le(jt){return jt=ie(jt),de(jt)}function ie(jt){return jt.replace(Ie.customProp,'').replace(Ie.mixinProp,'')}function de(jt){return jt.replace(Ie.mixinApply,'').replace(Ie.varApply,'')}function he(jt){jt&&(Le=Le&&!jt.shimcssproperties,De=De&&!jt.shimshadow)}function _e(jt,Wt){return'string'==typeof jt&&(jt=ee(jt)),Wt&&ye(jt,Wt),se(jt,Le)}function ue(jt){return!jt.__cssRules&&jt.textContent&&(jt.__cssRules=ee(jt.textContent)),jt.__cssRules}function me(jt){return jt.parent&&jt.parent.type===Pe.KEYFRAMES_RULE}function ye(jt,Wt,Bt,Kt){if(jt){let Gt=!1;if(Kt&&jt.type===Pe.MEDIA_RULE){let Vt=jt.selector.match(Fe.MEDIA_MATCH);Vt&&!window.matchMedia(Vt[1]).matches&&(Gt=!0)}jt.type===Pe.STYLE_RULE?Wt(jt):Bt&&jt.type===Pe.KEYFRAMES_RULE?Bt(jt):jt.type===Pe.MIXIN_RULE&&(Gt=!0);let Xt=jt.rules;if(Xt&&!Gt)for(let zt,Vt=0,Yt=Xt.length;Vt<Yt&&(zt=Xt[Vt]);Vt++)ye(zt,Wt,Bt,Kt)}}function ge(jt,Wt,Bt,Kt){let Gt=be(jt,Wt);return fe(Gt,Bt,Kt)}function fe(jt,Wt,Bt){Wt=Wt||document.head;let Kt=Bt&&Bt.nextSibling||Wt.firstChild;return He=jt,Wt.insertBefore(jt,Kt)}function be(jt,Wt){let Bt=document.createElement('style');return Wt&&Bt.setAttribute('scope',Wt),Bt.textContent=jt,Bt}function ve(jt){let Wt=document.createComment(' Shady DOM styles for '+jt+' '),Bt=He?He.nextSibling:null,Kt=document.head;return Kt.insertBefore(Wt,Bt||Kt.firstChild),He=Wt,Wt}function Ne(jt,Wt){let Bt=0;for(let Kt=Wt,Gt=jt.length;Kt<Gt;Kt++)if('('===jt[Kt])Bt++;else if(')'===jt[Kt]&&0==--Bt)return Kt;return-1}function Ee(jt,Wt){let Bt=jt.indexOf('var(');if(-1===Bt)return Wt(jt,'','','');let Kt=Ne(jt,Bt+3),Gt=jt.substring(Bt+4,Kt),Xt=jt.substring(0,Bt),Vt=Ee(jt.substring(Kt+1),Wt),Yt=Gt.indexOf(',');if(-1===Yt)return Wt(Xt,Gt.trim(),'',Vt);let zt=Gt.substring(0,Yt).trim(),Jt=Gt.substring(Yt+1).trim();return Wt(Xt,zt,Jt,Vt)}function Ce(jt,Wt){window.ShadyDOM?window.ShadyDOM.nativeMethods.setAttribute.call(jt,'class',Wt):jt.setAttribute('class',Wt)}function Se(jt,Wt){let Bt=parseInt(jt/32);Wt[Bt]=(Wt[Bt]||0)|1<<jt%32}function Te(){Ht||(Ht=!0,window.HTMLImports?window.HTMLImports.whenReady(Ae):'complete'===document.readyState?Ae():document.addEventListener('readystatechange',()=>{'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 32<so&&127>so&&-1==[34,35,60,62,63,96].indexOf(so)?no:encodeURIComponent(no)}function Xt(no){var so=no.charCodeAt(0);return 32<so&&127>so&&-1==[34,35,60,62,96].indexOf(so)?no:encodeURIComponent(no)}function Vt(no,so,ao){function lo(Co){uo.push(Co)}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<co.length;fo++){if(bo=co[fo],'\t'==bo||'\n'==bo||'\r'==bo){lo('Invalid whitespace in authority.');continue}if(':'==bo&&null===this._password){this._password='';continue}var vo=Gt(bo);null===this._password?this._username+=vo:this._password+=vo}co=''}else if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo){po-=co.length,co='',io='host';continue}else co+=mo;break;case'file host':if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo){2==co.length&&to.test(co[0])&&(':'==co[1]||'|'==co[1])?io='relative path':0==co.length?io='relative path start':(this._host=Kt.call(this,co),co='',io='relative path start');continue}else'\t'==mo||'\n'==mo||'\r'==mo?lo('Invalid whitespace in file host.'):co+=mo;break;case'host':case'hostname':if(':'==mo&&!_o){if(this._host=Kt.call(this,co),co='',io='port','hostname'==so)break loop;}else if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo){if(this._host=Kt.call(this,co),co='',io='relative path start',so)break loop;continue}else'\t'!=mo&&'\n'!=mo&&'\r'!=mo?('['==mo?_o=!0:']'==mo&&(_o=!1),co+=mo):lo('Invalid code point in host/hostname: '+mo);break;case'port':if(/[0-9]/.test(mo))co+=mo;else if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo||so){if(''!=co){var No=parseInt(co,10);No!=Zt[this._scheme]&&(this._port=No+''),co=''}if(so)break loop;io='relative path start';continue}else'\t'==mo||'\n'==mo||'\r'==mo?lo('Invalid code point in port: '+mo):Bt.call(this);break;case'relative path start':if('\\'==mo&&lo('\'\\\' not allowed in path.'),io='relative path','/'!=mo&&'\\'!=mo)continue;break;case'relative path':if(eo==mo||'/'==mo||'\\'==mo||!so&&('?'==mo||'#'==mo)){'\\'==mo&&lo('\\ not allowed in relative path.');var Eo;(Eo=Qt[co.toLowerCase()])&&(co=Eo),'..'==co?(this._path.pop(),'/'!=mo&&'\\'!=mo&&this._path.push('')):'.'==co&&'/'!=mo&&'\\'!=mo?this._path.push(''):'.'!=co&&('file'==this._scheme&&0==this._path.length&&2==co.length&&to.test(co[0])&&'|'==co[1]&&(co=co[0]+':'),this._path.push(co)),co='','?'==mo?(this._query='?',io='query'):'#'==mo&&(this._fragment='#',io='fragment')}else'\t'!=mo&&'\n'!=mo&&'\r'!=mo&&(co+=Gt(mo));break;case'query':so||'#'!=mo?eo!=mo&&'\t'!=mo&&'\n'!=mo&&'\r'!=mo&&(this._query+=Xt(mo)):(this._fragment='#',io='fragment');break;case'fragment':eo!=mo&&'\t'!=mo&&'\n'!=mo&&'\r'!=mo&&(this._fragment+=mo);}po++}}function Yt(){this._scheme='',this._schemeData='',this._username='',this._password=null,this._host='',this._port='',this._path=[],this._query='',this._fragment='',this._isInvalid=!1,this._isRelative=!1}function zt(no,so){so===void 0||so instanceof zt||(so=new zt(so+'')),this._url=no,Yt.call(this);var ao=no.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,'');Vt.call(this,ao,null,so)}var Jt=!1;if(!jt.forceJURL)try{var $t=new URL('b','http://a');$t.pathname='c%20d',Jt='http://a/c%20d'===$t.href}catch(no){}if(!Jt){var Zt=Object.create(null);Zt.ftp=21,Zt.file=0,Zt.gopher=70,Zt.http=80,Zt.https=443,Zt.ws=80,Zt.wss=443;var Qt=Object.create(null);Qt['%2e']='.',Qt['.%2e']='..',Qt['%2e.']='..',Qt['%2e%2e']='..';var eo,to=/[a-zA-Z]/,oo=/[a-zA-Z0-9\+\-\.]/;zt.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var no='';return(''!=this._username||null!=this._password)&&(no=this._username+(null==this._password?'':':'+this._password)+'@'),this.protocol+(this._isRelative?'//'+no+this.host:'')+this.pathname+this._query+this._fragment},set href(no){Yt.call(this),Vt.call(this,no)},get protocol(){return this._scheme+':'},set protocol(no){this._isInvalid||Vt.call(this,no+':','scheme start')},get host(){return this._isInvalid?'':this._port?this._host+':'+this._port:this._host},set host(no){this._isInvalid||!this._isRelative||Vt.call(this,no,'host')},get hostname(){return this._host},set hostname(no){this._isInvalid||!this._isRelative||Vt.call(this,no,'hostname')},get port(){return this._port},set port(no){this._isInvalid||!this._isRelative||Vt.call(this,no,'port')},get pathname(){return this._isInvalid?'':this._isRelative?'/'+this._path.join('/'):this._schemeData},set pathname(no){this._isInvalid||!this._isRelative||(this._path=[],Vt.call(this,no,'relative path start'))},get search(){return this._isInvalid||!this._query||'?'==this._query?'':this._query},set search(no){this._isInvalid||!this._isRelative||(this._query='?','?'==no[0]&&(no=no.slice(1)),Vt.call(this,no,'query'))},get hash(){return this._isInvalid||!this._fragment||'#'==this._fragment?'':this._fragment},set hash(no){this._isInvalid||(this._fragment='#','#'==no[0]&&(no=no.slice(1)),Vt.call(this,no,'fragment'))},get origin(){var no;if(this._isInvalid||!this._scheme)return'';switch(this._scheme){case'data':case'file':case'javascript':case'mailto':return'null';}return no=this.host,no?this._scheme+'://'+no:''}};var ro=jt.URL;ro&&(zt.createObjectURL=function(){return ro.createObjectURL.apply(ro,arguments)},zt.revokeObjectURL=function(no){ro.revokeObjectURL(no)}),jt.URL=zt}}(window),function(){var jt='undefined'==typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&function(){var eo=Document.prototype.importNode;Document.prototype.importNode=function(){var to=eo.apply(this,arguments);if(to.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var oo=this.createDocumentFragment();return oo.appendChild(to),oo}return to}}();var Wt=Node.prototype.cloneNode,Bt=Document.prototype.createElement,Kt=Document.prototype.importNode,Gt=function(){if(!jt){var eo=document.createElement('template'),to=document.createElement('template');to.content.appendChild(document.createElement('div')),eo.content.appendChild(to);var oo=eo.cloneNode(!0);return 0===oo.content.childNodes.length||0===oo.content.firstChild.content.childNodes.length||!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment)}}(),Xt='template',Vt=function(){};if(jt){function eo(ro){Object.defineProperty(ro,'innerHTML',{get:function(){for(var no='',so=this.content.firstChild;so;so=so.nextSibling)no+=so.outerHTML||oo(so.data);return no},set:function(no){for(Yt.body.innerHTML=no,Vt.bootstrap(Yt);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;Yt.body.firstChild;)this.content.appendChild(Yt.body.firstChild)},configurable:!0})}function to(ro){return'&'===ro?'&':'<'===ro?'<':'>'===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<ao&&(lo=no[so]);so++)Vt.decorate(lo)},document.addEventListener('DOMContentLoaded',function(){Vt.bootstrap(document)}),Document.prototype.createElement=function(){'use strict';var ro=Bt.apply(this,arguments);return'template'===ro.localName&&Vt.decorate(ro),ro};var Qt=/[&\u00A0<>]/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<so;no++)lo=oo[no],ao=ro[no],this.decorate&&this.decorate(lo),ao.parentNode.replaceChild(lo.cloneNode(!0),ao)},Node.prototype.cloneNode=function(eo){var to;if(this instanceof DocumentFragment){if(!eo)return this.ownerDocument.createDocumentFragment();to=this.ownerDocument.importNode(this,!0)}else to=Wt.call(this,eo);return eo&&Vt.fixClonedDom(to,this),to},Document.prototype.importNode=function(eo,to){if(eo.localName===Xt)return Vt._cloneNode(eo,to);var oo=Kt.call(this,eo,to);return to&&Vt.fixClonedDom(oo,eo),oo},Gt&&(window.HTMLTemplateElement.prototype.cloneNode=function(eo){return Vt._cloneNode(this,eo)})),jt&&(window.HTMLTemplateElement=Vt)}(),!function(jt,Wt){'object'==typeof exports&&'undefined'!=typeof module?module.exports=Wt():'function'==typeof define&&define.amd?define(Wt):jt.ES6Promise=Wt()}(window,function(){'use strict';function jt(Jo){return'function'==typeof Jo||'object'==typeof Jo&&null!==Jo}function Wt(Jo){return'function'==typeof Jo}function Xt(){return'undefined'==typeof Oo?zt():function(){Oo(Jt)}}function zt(){var Jo=setTimeout;return function(){return Jo(Jt,1)}}function Jt(){for(var Jo=0;Jo<wo;Jo+=2){var $o=jo[Jo],Zo=jo[Jo+1];$o(Zo),jo[Jo]=void 0,jo[Jo+1]=void 0}wo=0}function Zt(Jo,$o){var Zo=arguments,Qo=this,er=new this.constructor(eo);void 0===er[Bo]&&vo(er);var tr=Qo._state;return tr?!function(){var or=Zo[tr-1];Lo(function(){return go(tr,er,or,Qo._result)})}():_o(Qo,er,Jo,$o),er}function Qt(Jo){var $o=this;if(Jo&&'object'==typeof Jo&&Jo.constructor===$o)return Jo;var Zo=new $o(eo);return io(Zo,Jo),Zo}function eo(){}function to(){return new TypeError('You cannot resolve a promise with itself')}function oo(){return new TypeError('A promises callback cannot return that same promise.')}function ro(Jo){try{return Jo.then}catch($o){return Vo.error=$o,Vo}}function no(Jo,$o,Zo,Qo){try{Jo.call($o,Zo,Qo)}catch(er){return er}}function so(Jo,$o,Zo){Lo(function(Qo){var er=!1,tr=no(Zo,$o,function(or){er||(er=!0,$o===or?co(Qo,or):io(Qo,or))},function(or){er||(er=!0,ho(Qo,or))},'Settle: '+(Qo._label||' unknown promise'));!er&&tr&&(er=!0,ho(Qo,tr))},Jo)}function ao(Jo,$o){$o._state===Go?co(Jo,$o._result):$o._state===Xo?ho(Jo,$o._result):_o($o,void 0,function(Zo){return io(Jo,Zo)},function(Zo){return ho(Jo,Zo)})}function lo(Jo,$o,Zo){$o.constructor===Jo.constructor&&Zo===Zt&&$o.constructor.resolve===Qt?ao(Jo,$o):Zo===Vo?ho(Jo,Vo.error):void 0===Zo?co(Jo,$o):Wt(Zo)?so(Jo,$o,Zo):co(Jo,$o)}function io(Jo,$o){Jo===$o?ho(Jo,to()):jt($o)?lo(Jo,$o,ro($o)):co(Jo,$o)}function po(Jo){Jo._onerror&&Jo._onerror(Jo._result),uo(Jo)}function co(Jo,$o){Jo._state===Ko&&(Jo._result=$o,Jo._state=Go,0!==Jo._subscribers.length&&Lo(uo,Jo))}function ho(Jo,$o){Jo._state===Ko&&(Jo._state=Xo,Jo._result=$o,Lo(po,Jo))}function _o(Jo,$o,Zo,Qo){var er=Jo._subscribers,tr=er.length;Jo._onerror=null,er[tr]=$o,er[tr+Go]=Zo,er[tr+Xo]=Qo,0===tr&&Jo._state&&Lo(uo,Jo)}function uo(Jo){var $o=Jo._subscribers,Zo=Jo._state;if(0!==$o.length){for(var Qo=void 0,er=void 0,tr=Jo._result,or=0;or<$o.length;or+=3)Qo=$o[or],er=$o[or+Zo],Qo?go(Zo,Qo,er,tr):er(tr);Jo._subscribers.length=0}}function mo(){this.error=null}function yo(Jo,$o){try{return Jo($o)}catch(Zo){return Yo.error=Zo,Yo}}function go(Jo,$o,Zo,Qo){var er=Wt(Zo),tr,or,rr,nr;if(!er)tr=Qo,rr=!0;else if(tr=yo(Zo,Qo),tr===Yo?(nr=!0,or=tr.error,tr=null):rr=!0,$o===tr)return void ho($o,oo());$o._state!==Ko||(er&&rr?io($o,tr):nr?ho($o,or):Jo===Go?co($o,tr):Jo===Xo&&ho($o,tr))}function fo(Jo,$o){try{$o(function(Zo){io(Jo,Zo)},function(Zo){ho(Jo,Zo)})}catch(Zo){ho(Jo,Zo)}}function bo(){return zo++}function vo(Jo){Jo[Bo]=zo++,Jo._state=void 0,Jo._result=void 0,Jo._subscribers=[]}function No(Jo,$o){this._instanceConstructor=Jo,this.promise=new Jo(eo),this.promise[Bo]||vo(this.promise),Mo($o)?(this._input=$o,this.length=$o.length,this._remaining=$o.length,this._result=Array(this.length),0===this.length?co(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&co(this.promise,this._result))):ho(this.promise,Eo())}function Eo(){return new Error('Array Methods must be provided an Array')}function Ao(){throw new TypeError('You must pass a resolver function as the first argument to the promise constructor')}function Po(){throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.')}function Ro(Jo){this[Bo]=bo(),this._result=this._state=void 0,this._subscribers=[],eo!==Jo&&('function'!=typeof Jo&&Ao(),this instanceof Ro?fo(this,Jo):Po())}var Io=Array.isArray?Array.isArray:function(Jo){return'[object Array]'===Object.prototype.toString.call(Jo)};var Mo=Io,wo=0,Oo=void 0,Do=void 0,Lo=function(Jo,$o){jo[wo]=Jo,jo[wo+1]=$o,wo+=2,2==wo&&(Do?Do(Jt):Wo())},ko='undefined'==typeof window?void 0:window,Ho=ko||{},Fo=Ho.MutationObserver||Ho.WebKitMutationObserver,Uo='undefined'==typeof self&&'undefined'!=typeof process&&'[object process]'==={}.toString.call(process),qo='undefined'!=typeof Uint8ClampedArray&&'undefined'!=typeof importScripts&&'undefined'!=typeof MessageChannel,jo=Array(1e3),Wo;Wo=Uo?function(){return function(){return process.nextTick(Jt)}}():Fo?function(){var Jo=0,$o=new Fo(Jt),Zo=document.createTextNode('');return $o.observe(Zo,{characterData:!0}),function(){Zo.data=Jo=++Jo%2}}():qo?function(){var Jo=new MessageChannel;return Jo.port1.onmessage=Jt,function(){return Jo.port2.postMessage(0)}}():void 0===ko&&'function'==typeof require?function(){try{var Jo=require,$o=Jo('vertx');return Oo=$o.runOnLoop||$o.runOnContext,Xt()}catch(Zo){return zt()}}():zt();var Bo=Math.random().toString(36).substring(16),Ko,Go=1,Xo=2,Vo=new mo,Yo=new mo,zo=0;return No.prototype._enumerate=function(){for(var Jo=this.length,$o=this._input,Zo=0;this._state===Ko&&Zo<Jo;Zo++)this._eachEntry($o[Zo],Zo)},No.prototype._eachEntry=function(Jo,$o){var Zo=this._instanceConstructor,Qo=Zo.resolve;if(Qo===Qt){var er=ro(Jo);if(er===Zt&&Jo._state!==Ko)this._settledAt(Jo._state,$o,Jo._result);else if('function'!=typeof er)this._remaining--,this._result[$o]=Jo;else if(Zo===Ro){var tr=new Zo(eo);lo(tr,Jo,er),this._willSettleAt(tr,$o)}else this._willSettleAt(new Zo(function(or){return or(Jo)}),$o)}else this._willSettleAt(Qo(Jo),$o)},No.prototype._settledAt=function(Jo,$o,Zo){var Qo=this.promise;Qo._state===Ko&&(this._remaining--,Jo===Xo?ho(Qo,Zo):this._result[$o]=Zo),0===this._remaining&&co(Qo,this._result)},No.prototype._willSettleAt=function(Jo,$o){var Zo=this;_o(Jo,void 0,function(Qo){return Zo._settledAt(Go,$o,Qo)},function(Qo){return Zo._settledAt(Xo,$o,Qo)})},Ro.all=function(Jo){return new No(this,Jo).promise},Ro.race=function(Jo){var $o=this;return new $o(Mo(Jo)?function(Zo,Qo){for(var er=Jo.length,tr=0;tr<er;tr++)$o.resolve(Jo[tr]).then(Zo,Qo)}:function(Zo,Qo){return Qo(new TypeError('You must pass an array to race.'))})},Ro.resolve=Qt,Ro.reject=function(Jo){var $o=this,Zo=new $o(eo);return ho(Zo,Jo),Zo},Ro._setScheduler=function(Jo){Do=Jo},Ro._setAsap=function(Jo){Lo=Jo},Ro._asap=Lo,Ro.prototype={constructor:Ro,then:Zt,'catch':function(Jo){return this.then(null,Jo)}},Ro.polyfill=function(){var Jo;if('undefined'!=typeof global)Jo=global;else if('undefined'!=typeof self)Jo=self;else try{Jo=Function('return this')()}catch(Qo){throw new Error('polyfill failed because global object is unavailable in this environment')}var $o=Jo.Promise;if($o){var Zo=null;try{Zo=Object.prototype.toString.call($o.resolve())}catch(Qo){}if('[object Promise]'===Zo&&!$o.cast)return}Jo.Promise=Ro},Ro.Promise=Ro,Ro}),ES6Promise.polyfill(),(jt=>{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=/(<link[^>]*)(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;go<yo.length&&(fo=yo[go]);go++){const bo=uo.attributes[fo],vo=bo&&bo.value;vo&&0>vo.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<yo.length;go++)Yt.fixUrlsInTemplate(yo[go],mo)},fixUrlsInTemplate(uo,mo){const yo=uo.content||uo,go=yo.querySelectorAll('style, form[action], [src], [href], [url], [style]');for(let fo=0;fo<go.length;fo++){const bo=go[fo];'style'==bo.localName?Yt.resolveUrlsInStyle(bo,mo):Yt.fixUrlAttributes(bo,mo)}Yt.fixUrlsInTemplates(yo,mo)},resolveUrlsInStyle(uo,mo){uo.textContent=Yt.resolveUrlsInCssText(uo.textContent,mo)},resolveUrlsInCssText(uo,mo){let yo=Yt.replaceUrls(uo,mo,Gt);return yo=Yt.replaceUrls(yo,mo,Xt),yo},replaceUrls(uo,mo,yo){return uo.replace(yo,(go,fo,bo,vo)=>{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<fo.indexOf(';base64')?atob(bo):decodeURIComponent(bo),mo(bo)}else{const go=new XMLHttpRequest;go.open('GET',uo,zt.async),go.onload=()=>{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<fo&&(bo=mo[go]);go++)lo(bo,()=>{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<go&&(fo=uo[yo]);yo++)fo.import&&'loading'===fo.import.readyState||(fo.__loaded=!0);const mo=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<go;yo++)this.loadImport(mo[yo]);this.processImportsIfLoadingDone()}loadImport(uo){const mo=uo.href;if(void 0!==this.documents[mo]){const yo=this.documents[mo];return void(yo&&yo.__loaded&&(uo.import=yo,this.fireEventIfNeeded(uo)))}this.inflight++,this.documents[mo]='pending',zt.load(mo,(yo,go)=>{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,(No,Eo,Co)=>{return-1===No.indexOf('type=')?`${Eo} type=${Zt} ${Co}`:No}));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(eo);let vo=0;for(let Co,No=0,Eo=bo.length;No<Eo&&(Co=bo[No]);No++)if(lo(Co),Yt.fixUrls(Co,mo),Co.setAttribute(to,''),'script'===Co.localName&&!Co.src&&Co.textContent){const So=vo?`-${vo}`:'',To=Co.textContent+`\n//# sourceURL=${mo}${So}.js\n`;Co.setAttribute('src','data:text/javascript;charset=utf-8,'+encodeURIComponent(To)),Co.textContent='',vo++}return Yt.fixUrlsInTemplates(yo,mo),yo}processImportsIfLoadingDone(){if(!this.inflight){this.dynamicImportsMO.disconnect(),this.flatten(document);let uo=!1,mo=!1;const yo=()=>{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<go&&(fo=mo[yo]);yo++){const bo=this.documents[fo.href];fo.import=bo,bo&&bo.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[fo.href]=fo,fo.readyState='loading',fo.import=fo,this.flatten(bo),fo.appendChild(bo))}}runScripts(uo){const mo=document.querySelectorAll(ro),yo=mo.length,go=fo=>{if(fo<yo){const bo=mo[fo],vo=document.createElement('script');bo.removeAttribute(to);for(let No=0,Eo=bo.attributes.length;No<Eo;No++)vo.setAttribute(bo.attributes[No].name,bo.attributes[No].value);Bt=vo,bo.parentNode.replaceChild(vo,bo),lo(vo,()=>{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<bo&&(vo=mo[fo]);fo++)if(lo(vo,()=>{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,Co=vo.nextSibling,So=document.createElement(vo.localName);So.__appliedElement=vo,So.setAttribute('type','import-placeholder'),No.parentNode===document.head?document.head.insertBefore(vo,No):document.head.appendChild(vo),Eo.insertBefore(So,Co),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;mo<uo.length;mo++){const yo=uo[mo];if(yo.addedNodes)for(let go=0;go<yo.addedNodes.length;go++){const fo=yo.addedNodes[go];fo&&fo.nodeType===Node.ELEMENT_NODE&&(ao(fo)?this.loadImport(fo):this.loadImports(fo))}}}};io(()=>document.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(Mr,wr,Or){return{index:Mr,removed:wr,addedCount:Or}}function Wt(Mr){return'ShadyRoot'===Mr.__localName}function Bt(Mr,wr){if(Mr&&wr)for(var Lr,Or=Object.getOwnPropertyNames(wr),Dr=0;Dr<Or.length&&(Lr=Or[Dr]);Dr++){var kr=Lr,Fr=Object.getOwnPropertyDescriptor(wr,kr);Fr&&Object.defineProperty(Mr,kr,Fr)}return Mr||wr}function Kt(){Lo=!1;for(var Mr=!!Do.length;Do.length;)Do.shift()();return Mr}function Gt(Mr,wr){return Mr.__shady&&Mr.__shady[wr]}function Xt(Mr){return'&'===Mr?'&':'<'===Mr?'<':'>'===Mr?'>':'"'===Mr?'"':'\xA0'===Mr?' ':void 0}function Vt(Mr){for(var wr={},Or=0;Or<Mr.length;Or++)wr[Mr[Or]]=!0;return wr}function Yt(Mr,wr,Or){switch(Mr.nodeType){case Node.ELEMENT_NODE:wr=Mr.localName;for(var Hr,Dr='<'+wr,Lr=Mr.attributes,kr=0;Hr=Lr[kr];kr++)Dr+=' '+Hr.name+'="'+Hr.value.replace(Fo,Xt)+'"';return Dr+='>',qo[wr]?Dr:Dr+zt(Mr,Or)+'</'+wr+'>';case Node.TEXT_NODE:return Mr=Mr.data,wr&&jo[wr.localName]?Mr:Mr.replace(Uo,Xt);case Node.COMMENT_NODE:return'<!--'+Mr.data+'-->';default:throw window.console.error(Mr),Error('not implemented');}}function zt(Mr,wr){'template'===Mr.localName&&(Mr=Mr.content);for(var Hr,Or='',Dr=wr?wr(Mr):Mr.childNodes,Lr=0,kr=Dr.length;Lr<kr&&(Hr=Dr[Lr]);Lr++)Or+=Yt(Hr,Mr,wr);return Or}function Jt(Mr){var wr=[];for(Bo.currentNode=Mr,Mr=Bo.firstChild();Mr;)wr.push(Mr),Mr=Bo.nextSibling();return wr}function $t(Mr){return{get:function(){var wr=ko.getProperty(this,Mr);return void 0===wr?Wo[Mr](this):wr},configurable:!0}}function Zt(Mr,wr,Or){for(var Dr in wr){var Lr=Object.getOwnPropertyDescriptor(Mr,Dr);Lr&&Lr.configurable||!Lr&&Or?Object.defineProperty(Mr,Dr,wr[Dr]):Or&&console.warn('Could not define',Dr,'on',Mr)}}function Qt(Mr,wr,Or){Go.patchOutsideElementAccessors(Mr),Or=Or||null,Mr.__shady=Mr.__shady||{},wr.__shady=wr.__shady||{},Or&&(Or.__shady=Or.__shady||{}),Mr.__shady.previousSibling=Or?Or.__shady.previousSibling:wr.lastChild;var Dr=Mr.__shady.previousSibling;Dr&&Dr.__shady&&(Dr.__shady.nextSibling=Mr),(Dr=Mr.__shady.nextSibling=Or)&&Dr.__shady&&(Dr.__shady.previousSibling=Mr),Mr.__shady.parentNode=wr,Or?Or===wr.__shady.firstChild&&(wr.__shady.firstChild=Mr):(wr.__shady.lastChild=Mr,wr.__shady.firstChild||(wr.__shady.firstChild=Mr)),wr.__shady.childNodes=null}function eo(Mr){this.root=Mr,this.insertionPointTag='slot'}function to(Mr,wr){if(Mr!==ur)throw new TypeError('Illegal constructor');return Mr=document.createDocumentFragment(),Mr.__proto__=to.prototype,Mr._init(wr),Mr}function oo(Mr){var Or,wr=ko.hasProperty(Mr,'parentNode')&&ko.getProperty(Mr,'parentNode'),Dr=To.ownerShadyRootForNode(Mr);if(wr||Dr){Or=lo(Mr),wr&&tr.recordRemoveChild(Mr,wr);var Lr;if(Lr=Dr){var kr;Lr=Dr._insertionPoints;for(var Hr=0;Hr<Lr.length;Hr++){var Ur,Fr=Lr[Hr];a:{for(Ur=Fr;Ur;){if(Ur==Mr){Ur=!0;break a}Ur=Ur.parentNode}Ur=void 0}if(Ur)for(Fr=Fr.assignedNodes({flatten:!0}),Ur=0;Ur<Fr.length;Ur++){kr=!0;var qr=Fr[Ur],jr=Wo.parentNode(qr);jr&&or.removeChild.call(jr,qr)}}Lr=kr}kr=Lr,wr=wr&&Dr&&wr.localName===Dr.getInsertionPointTag(),(kr||wr)&&(Dr._skipUpdateInsertionPoints=!1,io(Dr))}return ao(Mr),Or}function ro(Mr,wr,Or){(Mr=Mr.__shady&&Mr.__shady.observer)&&(wr&&Mr.addedNodes.push(wr),Or&&Mr.removedNodes.push(Or),Mr.schedule())}function no(Mr){if(Mr&&Mr.nodeType){var wr=Mr.__ownerShadyRoot;return void 0===wr&&(wr=To.isShadyRoot(Mr)?Mr:(wr=Mr.parentNode)?no(wr):Mr,document.documentElement.contains(Mr)&&(Mr.__ownerShadyRoot=wr)),wr}}function so(Mr,wr,Or){var Dr,Lr=Or.getInsertionPointTag();if(Mr.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||Mr.__noInsertionPoint)Mr.localName===Lr&&(tr.recordChildNodes(wr),tr.recordChildNodes(Mr),Dr=!0);else for(var Hr,Fr,Lr=Mr.querySelectorAll(Lr),kr=0;kr<Lr.length&&(Hr=Lr[kr]);kr++)Fr=Hr.parentNode,Fr===Mr&&(Fr=wr),Fr=so(Hr,Fr,Or),Dr=Dr||Fr;return Dr}function ao(Mr){if(void 0!==Mr.__ownerShadyRoot)for(var Lr,wr=Mr.childNodes,Or=0,Dr=wr.length;Or<Dr&&(Lr=wr[Or]);Or++)ao(Lr);Mr.__ownerShadyRoot=void 0}function lo(Mr){if((Mr=Mr.parentNode)&&Mr.shadyRoot&&Mr.shadyRoot.hasInsertionPoint())return io(Mr.shadyRoot),!0}function io(Mr){Mr._changePending=!0,Mr.update()}function po(Mr,wr){'slot'===wr?lo(Mr):'slot'===Mr.localName&&'name'==wr&&(Mr=To.ownerShadyRootForNode(Mr))&&Mr.update()}function co(Mr,wr,Or,Dr){for(var Hr,Lr=0,kr=Mr.length;Lr<kr&&(Hr=Mr[Lr]);Lr++){var Fr;if(Fr=Hr.nodeType===Node.ELEMENT_NODE){Fr=Hr;var Ur=wr,qr=Or,jr=Dr,Wr=Ur(Fr);Wr&&jr.push(Fr),qr&&qr(Wr)?Fr=Wr:(co(Fr.childNodes,Ur,qr,jr),Fr=void 0)}if(Fr)return!0}}function ho(Mr,wr){if(Mr.ownerDocument!==document)return or.importNode.call(document,Mr,wr);var Or=or.importNode.call(document,Mr,!1);if(wr){Mr=Mr.childNodes,wr=0;for(var Dr;wr<Mr.length;wr++)Dr=ho(Mr[wr],!0),Or.appendChild(Dr)}return Or}function _o(){this._scheduled=!1,this.addedNodes=[],this.removedNodes=[],this.callbacks=new Set}function uo(Mr,wr){var Or=[],Dr=Mr;for(Mr=Mr===window?window:Mr.getRootNode();Dr;)Or.push(Dr),Dr=Dr.assignedSlot?Dr.assignedSlot:Dr.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Dr.host&&(wr||Dr!==Mr)?Dr.host:Dr.parentNode;return Or[Or.length-1]===document&&Or.push(window),Or}function mo(Mr,wr){if(!To.isShadyRoot)return Mr;Mr=uo(Mr,!0);for(var Dr,Lr,kr,Hr,Or=0;Or<wr.length;Or++)if(Dr=wr[Or],kr=Dr===window?window:Dr.getRootNode(),kr!==Lr&&(Hr=Mr.indexOf(kr),Lr=kr),!To.isShadyRoot(kr)||-1<Hr)return Dr}function yo(Mr){function wr(Or,Dr){return Or=new Mr(Or,Dr),Or.__composed=Dr&&!!Dr.composed,Or}return To.mixin(wr,Mr),wr.prototype=Mr.prototype,wr}function go(Mr,wr,Or){if(Or=wr.__handlers&&wr.__handlers[Mr.type]&&wr.__handlers[Mr.type][Or])for(var Lr,Dr=0;(Lr=Or[Dr])&&(Lr.call(wr,Mr),!Mr.__immediatePropagationStopped);Dr++);}function fo(Mr){var Or,wr=Mr.composedPath();Object.defineProperty(Mr,'currentTarget',{get:function(){return Or},configurable:!0});for(var Dr=wr.length-1;0<=Dr;Dr--)if(Or=wr[Dr],go(Mr,Or,'capture'),Mr.__propagationStopped)return;Object.defineProperty(Mr,'eventPhase',{value:Event.AT_TARGET});for(var Lr,Dr=0;Dr<wr.length&&!((Or=wr[Dr],0===Dr||Or.shadowRoot&&Or.shadowRoot===Lr)&&(go(Mr,Or,'bubble'),Or!==window&&(Lr=Or.getRootNode()),Mr.__propagationStopped));Dr++);}function bo(){for(var Mr in vr)window.addEventListener(Mr,function(wr){wr.__target||(vo(wr),fo(wr),wr.stopImmediatePropagation())},!0)}function vo(Mr){Mr.__target=Mr.target,Mr.__relatedTarget=Mr.relatedTarget,To.settings.hasDescriptors?To.patchPrototype(Mr,br):To.extend(Mr,br)}function No(Mr){return mr.renderRootNode(Mr),ko.getProperty(Mr,'assignedSlot')||null}function Eo(Mr,wr){for(var Or=Object.getOwnPropertyNames(wr),Dr=0;Dr<Or.length;Dr++){var Lr=Or[Dr],kr=Object.getOwnPropertyDescriptor(wr,Lr);kr.value?Mr[Lr]=kr.value:Object.defineProperty(Mr,Lr,kr)}}var Co={},So={calcEditDistances:function(Mr,wr,Or,Dr,Lr,kr){kr=kr-Lr+1,Or=Or-wr+1;for(var Hr=Array(kr),Fr=0;Fr<kr;Fr++)Hr[Fr]=Array(Or),Hr[Fr][0]=Fr;for(Fr=0;Fr<Or;Fr++)Hr[0][Fr]=Fr;for(Fr=1;Fr<kr;Fr++)for(var Ur=1;Ur<Or;Ur++)if(this.equals(Mr[wr+Ur-1],Dr[Lr+Fr-1]))Hr[Fr][Ur]=Hr[Fr-1][Ur-1];else{var qr=Hr[Fr-1][Ur]+1,jr=Hr[Fr][Ur-1]+1;Hr[Fr][Ur]=qr<jr?qr:jr}return Hr},spliceOperationsFromEditDistances:function(Mr){for(var wr=Mr.length-1,Or=Mr[0].length-1,Dr=Mr[wr][Or],Lr=[];0<wr||0<Or;)if(0==wr)Lr.push(2),Or--;else if(0==Or)Lr.push(3),wr--;else{var Ur,kr=Mr[wr-1][Or-1],Hr=Mr[wr-1][Or],Fr=Mr[wr][Or-1];Ur=Hr<Fr?Hr<kr?Hr:kr:Fr<kr?Fr:kr,Ur==kr?(kr==Dr?Lr.push(0):(Lr.push(1),Dr=kr),wr--,Or--):Ur==Hr?(Lr.push(3),wr--,Dr=Hr):(Lr.push(2),Or--,Dr=Fr)}return Lr.reverse(),Lr},calcSplices:function(Mr,wr,Or,Dr,Lr,kr){var Hr=0,Fr=0,Ur=Math.min(Or-wr,kr-Lr);if(0==wr&&0==Lr&&(Hr=this.sharedPrefix(Mr,Dr,Ur)),Or==Mr.length&&kr==Dr.length&&(Fr=this.sharedSuffix(Mr,Dr,Ur-Hr)),wr+=Hr,Lr+=Hr,Or-=Fr,kr-=Fr,0==Or-wr&&0==kr-Lr)return[];if(wr==Or){for(Mr=jt(wr,[],0);Lr<kr;)Mr.removed.push(Dr[Lr++]);return[Mr]}if(Lr==kr)return[jt(wr,[],Or-wr)];for(kr=this.spliceOperationsFromEditDistances(this.calcEditDistances(Mr,wr,Or,Dr,Lr,kr)),Mr=void 0,Or=[],Hr=0;Hr<kr.length;Hr++)switch(kr[Hr]){case 0:Mr&&(Or.push(Mr),Mr=void 0),wr++,Lr++;break;case 1:Mr||(Mr=jt(wr,[],0)),Mr.addedCount++,wr++,Mr.removed.push(Dr[Lr]),Lr++;break;case 2:Mr||(Mr=jt(wr,[],0)),Mr.addedCount++,wr++;break;case 3:Mr||(Mr=jt(wr,[],0)),Mr.removed.push(Dr[Lr]),Lr++;}return Mr&&Or.push(Mr),Or},sharedPrefix:function(Mr,wr,Or){for(var Dr=0;Dr<Or;Dr++)if(!this.equals(Mr[Dr],wr[Dr]))return Dr;return Or},sharedSuffix:function(Mr,wr,Or){for(var Dr=Mr.length,Lr=wr.length,kr=0;kr<Or&&this.equals(Mr[--Dr],wr[--Lr]);)kr++;return kr},calculateSplices:function(Mr,wr){return this.calcSplices(Mr,0,Mr.length,wr,0,wr.length)},equals:function(Mr,wr){return Mr===wr}};Co.calculateSplices=function(Mr,wr){return So.calculateSplices(Mr,wr)};var To={},Ao=window.ShadyDOM||{};Ao.hasNativeShadowDOM=Element.prototype.attachShadow&&Node.prototype.getRootNode;var Po=Object.getOwnPropertyDescriptor(Node.prototype,'firstChild');Ao.hasDescriptors=!!(Po&&Po.configurable&&Po.get),Ao.inUse=Ao.force||!Ao.hasNativeShadowDOM;var Ro=Element.prototype,xo=Ro.matches||Ro.matchesSelector||Ro.mozMatchesSelector||Ro.msMatchesSelector||Ro.oMatchesSelector||Ro.webkitMatchesSelector,Io=document.createTextNode(''),Mo=0,wo=[];new MutationObserver(function(){for(;wo.length;)try{wo.shift()()}catch(Mr){throw Io.textContent=Mo++,Mr}}).observe(Io,{characterData:!0}),To.settings=Ao,To.isShadyRoot=Wt,To.ownerShadyRootForNode=function(Mr){if(Mr=Mr.getRootNode(),Wt(Mr))return Mr},To.matchesSelector=function(Mr,wr){return xo.call(Mr,wr)},To.extend=Bt,To.extendAll=function(Mr){for(var Or=[],Dr=1;Dr<arguments.length;++Dr)Or[Dr-1]=arguments[Dr];for(Dr=0;Dr<Or.length;Dr++)Bt(Mr,Or[Dr]);return Mr},To.mixin=function(Mr,wr){for(var Or in wr)Mr[Or]=wr[Or];return Mr},To.patchPrototype=function(Mr,wr){var Or=Object.getPrototypeOf(Mr);if(!Or.hasOwnProperty('__patchProto')){var Dr=Object.create(Or);Dr.__sourceProto=Or,Bt(Dr,wr),Or.__patchProto=Dr}Mr.__proto__=Or.__patchProto},To.microtask=function(Mr){wo.push(Mr),Io.textContent=Mo++};var Lo,Oo={},Do=[];Kt.list=Do,Oo.enqueue=function(Mr){Lo||(Lo=!0,To.microtask(Kt)),Do.push(Mr)},Oo.flush=Kt;var ko={};ko.getProperty=Gt,ko.hasProperty=function(Mr,wr){return void 0!==Gt(Mr,wr)};var Ho={},Fo=/[&\u00A0"]/g,Uo=/[&\u00A0<>]/g,qo=Vt('area base br col command embed hr img input keygen link meta param source track wbr'.split(' ')),jo=Vt('style script xmp iframe noembed noframes plaintext noscript'.split(' '));Ho.getOuterHTML=Yt,Ho.getInnerHTML=zt;var Wo={},Bo=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Ko=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);Wo.parentNode=function(Mr){return Bo.currentNode=Mr,Bo.parentNode()},Wo.firstChild=function(Mr){return Bo.currentNode=Mr,Bo.firstChild()},Wo.lastChild=function(Mr){return Bo.currentNode=Mr,Bo.lastChild()},Wo.previousSibling=function(Mr){return Bo.currentNode=Mr,Bo.previousSibling()},Wo.nextSibling=function(Mr){return Bo.currentNode=Mr,Bo.nextSibling()},Wo.childNodes=Jt,Wo.parentElement=function(Mr){return Ko.currentNode=Mr,Ko.parentNode()},Wo.firstElementChild=function(Mr){return Ko.currentNode=Mr,Ko.firstChild()},Wo.lastElementChild=function(Mr){return Ko.currentNode=Mr,Ko.lastChild()},Wo.previousElementSibling=function(Mr){return Ko.currentNode=Mr,Ko.previousSibling()},Wo.nextElementSibling=function(Mr){return Ko.currentNode=Mr,Ko.nextSibling()},Wo.children=function(Mr){var wr=[];for(Ko.currentNode=Mr,Mr=Ko.firstChild();Mr;)wr.push(Mr),Mr=Ko.nextSibling();return wr},Wo.innerHTML=function(Mr){return Ho.getInnerHTML(Mr,function(wr){return Jt(wr)})},Wo.textContent=function(Mr){if(Mr.nodeType!==Node.ELEMENT_NODE)return Mr.nodeValue;Mr=document.createTreeWalker(Mr,NodeFilter.SHOW_TEXT,null,!1);for(var Or,wr='';Or=Mr.nextNode();)wr+=Or.nodeValue;return wr};var Go={},Xo=Object.getOwnPropertyDescriptor(Element.prototype,'innerHTML')||Object.getOwnPropertyDescriptor(HTMLElement.prototype,'innerHTML'),Vo=document.implementation.createHTMLDocument('inert').createElement('div'),Yo=Object.getOwnPropertyDescriptor(Document.prototype,'activeElement'),zo={parentElement:$t('parentElement'),parentNode:$t('parentNode'),nextSibling:$t('nextSibling'),previousSibling:$t('previousSibling'),className:{get:function(){return this.getAttribute('class')},set:function(Mr){this.setAttribute('class',Mr)},configurable:!0},nextElementSibling:{get:function(){if(ko.hasProperty(this,'nextSibling')){for(var Mr=this.nextSibling;Mr&&Mr.nodeType!==Node.ELEMENT_NODE;)Mr=Mr.nextSibling;return Mr}return Wo.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(ko.hasProperty(this,'previousSibling')){for(var Mr=this.previousSibling;Mr&&Mr.nodeType!==Node.ELEMENT_NODE;)Mr=Mr.previousSibling;return Mr}return Wo.previousElementSibling(this)},configurable:!0}},Jo={childNodes:{get:function(){if(ko.hasProperty(this,'firstChild')){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var Mr=this.firstChild;Mr;Mr=Mr.nextSibling)this.__shady.childNodes.push(Mr)}return this.__shady.childNodes}return Wo.childNodes(this)},configurable:!0},firstChild:$t('firstChild'),lastChild:$t('lastChild'),textContent:{get:function(){if(ko.hasProperty(this,'firstChild')){for(var Dr,Mr=[],wr=0,Or=this.childNodes;Dr=Or[wr];wr++)Dr.nodeType!==Node.COMMENT_NODE&&Mr.push(Dr.textContent);return Mr.join('')}return Wo.textContent(this)},set:function(Mr){if(this.nodeType!==Node.ELEMENT_NODE)this.nodeValue=Mr;else{for(;this.firstChild;)this.removeChild(this.firstChild);Mr&&this.appendChild(document.createTextNode(Mr))}},configurable:!0},firstElementChild:{get:function(){if(ko.hasProperty(this,'firstChild')){for(var Mr=this.firstChild;Mr&&Mr.nodeType!==Node.ELEMENT_NODE;)Mr=Mr.nextSibling;return Mr}return Wo.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(ko.hasProperty(this,'lastChild')){for(var Mr=this.lastChild;Mr&&Mr.nodeType!==Node.ELEMENT_NODE;)Mr=Mr.previousSibling;return Mr}return Wo.lastElementChild(this)},configurable:!0},children:{get:function(){return ko.hasProperty(this,'firstChild')?Array.prototype.filter.call(this.childNodes,function(Mr){return Mr.nodeType===Node.ELEMENT_NODE}):Wo.children(this)},configurable:!0},innerHTML:{get:function(){var Mr='template'===this.localName?this.content:this;return ko.hasProperty(this,'firstChild')?Ho.getInnerHTML(Mr):Wo.innerHTML(Mr)},set:function(Mr){for(var wr='template'===this.localName?this.content:this;wr.firstChild;)wr.removeChild(wr.firstChild);for(Xo&&Xo.set?Xo.set.call(Vo,Mr):Vo.innerHTML=Mr;Vo.firstChild;)wr.appendChild(Vo.firstChild)},configurable:!0}},$o={shadowRoot:{get:function(){return this.shadyRoot},set:function(Mr){this.shadyRoot=Mr},configurable:!0}},Zo={activeElement:{get:function(){var Mr;if(Mr=Yo&&Yo.get?Yo.get.call(document):To.settings.hasDescriptors?void 0:document.activeElement,Mr){var wr=!!To.isShadyRoot(this);if(this===document||wr&&this.host!==Mr&&this.host.contains(Mr)){for(wr=To.ownerShadyRootForNode(Mr);wr&&wr!==this;)Mr=wr.host,wr=To.ownerShadyRootForNode(Mr);Mr=this===document?wr?null:Mr:wr===this?Mr:null}else Mr=null}else Mr=null;return Mr},set:function(){},configurable:!0}},Qo=To.settings.hasDescriptors?function(){}:function(Mr){Mr.__shady&&Mr.__shady.__outsideAccessors||(Mr.__shady=Mr.__shady||{},Mr.__shady.__outsideAccessors=!0,Zt(Mr,zo,!0))},er=To.settings.hasDescriptors?function(){}:function(Mr){Mr.__shady&&Mr.__shady.__insideAccessors||(Mr.__shady=Mr.__shady||{},Mr.__shady.__insideAccessors=!0,Zt(Mr,Jo,!0),Zt(Mr,$o,!0))};Go.ShadowRootAccessor=$o,Go.ActiveElementAccessor=Zo,Go.patchAccessors=function(Mr){Zt(Mr,zo),Zt(Mr,Jo),Zt(Mr,Zo)},Go.patchShadowRootAccessors=function(Mr){Zt(Mr,Jo,!0),Zt(Mr,Zo,!0)},Go.patchOutsideElementAccessors=Qo,Go.patchInsideElementAccessors=er;var tr={};tr.recordInsertBefore=function(Mr,wr,Or){if(Go.patchInsideElementAccessors(wr),wr.__shady=wr.__shady||{},ko.hasProperty(wr,'firstChild')&&(wr.__shady.childNodes=null),Mr.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var Dr=Mr.childNodes,Lr=0;Lr<Dr.length;Lr++)Qt(Dr[Lr],wr,Or);Mr.__shady=Mr.__shady||{},wr=ko.hasProperty(Mr,'firstChild')?null:void 0,Mr.__shady.firstChild=Mr.__shady.lastChild=wr,Mr.__shady.childNodes=wr}else Qt(Mr,wr,Or)},tr.recordRemoveChild=function(Mr,wr){Mr.__shady=Mr.__shady||{},wr.__shady=wr.__shady||{},Mr===wr.__shady.firstChild&&(wr.__shady.firstChild=Mr.__shady.nextSibling),Mr===wr.__shady.lastChild&&(wr.__shady.lastChild=Mr.__shady.previousSibling);var Or=Mr.__shady.previousSibling,Dr=Mr.__shady.nextSibling;Or&&(Or.__shady=Or.__shady||{},Or.__shady.nextSibling=Dr),Dr&&(Dr.__shady=Dr.__shady||{},Dr.__shady.previousSibling=Or),Mr.__shady.parentNode=Mr.__shady.previousSibling=Mr.__shady.nextSibling=void 0,ko.hasProperty(wr,'childNodes')&&(wr.__shady.childNodes=null)},tr.recordChildNodes=function(Mr){if(!ko.hasProperty(Mr,'firstChild')){Mr.__shady=Mr.__shady||{},Mr.__shady.firstChild=Wo.firstChild(Mr),Mr.__shady.lastChild=Wo.lastChild(Mr),Go.patchInsideElementAccessors(Mr);for(var Dr,wr=Mr.__shady.childNodes=Wo.childNodes(Mr),Or=0;Or<wr.length&&(Dr=wr[Or]);Or++)Dr.__shady=Dr.__shady||{},Dr.__shady.parentNode=Mr,Dr.__shady.nextSibling=wr[Or+1]||null,Dr.__shady.previousSibling=wr[Or-1]||null,Go.patchOutsideElementAccessors(Dr)}};var or={},rr=Element.prototype.insertBefore,nr=Element.prototype.removeChild,sr=Element.prototype.setAttribute,ar=Element.prototype.removeAttribute,lr=Element.prototype.cloneNode,ir=Document.prototype.importNode,dr=Element.prototype.addEventListener,pr=Element.prototype.removeEventListener;or.appendChild=Element.prototype.appendChild,or.insertBefore=rr,or.removeChild=nr,or.setAttribute=sr,or.removeAttribute=ar,or.cloneNode=lr,or.importNode=ir,or.addEventListener=dr,or.removeEventListener=pr;var cr={},hr='function'==typeof Event?Event:function(Mr,wr){wr=wr||{};var Or=document.createEvent('Event');return Or.initEvent(Mr,!!wr.bubbles,!!wr.cancelable),Or};eo.prototype.getInsertionPoints=function(){return this.root.querySelectorAll(this.insertionPointTag)},eo.prototype.hasInsertionPoint=function(){return this.root._insertionPoints&&this.root._insertionPoints.length},eo.prototype.isInsertionPoint=function(Mr){return Mr.localName&&Mr.localName==this.insertionPointTag},eo.prototype.distribute=function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]},eo.prototype.collectPool=function(){for(var Mr=[],wr=0,Or=this.root.host.firstChild;Or;Or=Or.nextSibling)Mr[wr++]=Or;return Mr},eo.prototype.distributePool=function(Mr,wr){Mr=[];for(var kr,Or=this.root._insertionPoints,Dr=0,Lr=Or.length;Dr<Lr&&(kr=Or[Dr]);Dr++){this.distributeInsertionPoint(kr,wr);var Hr=kr.parentNode;Hr&&Hr.shadyRoot&&this.hasInsertionPoint(Hr.shadyRoot)&&Mr.push(Hr.shadyRoot)}for(Or=0;Or<wr.length;Or++)(kr=wr[Or])&&(kr.__shady=kr.__shady||{},kr.__shady.assignedSlot=void 0,(Dr=Wo.parentNode(kr))&&or.removeChild.call(Dr,kr));return Mr},eo.prototype.distributeInsertionPoint=function(Mr,wr){var Or=Mr.__shady.assignedNodes;Or&&this.clearAssignedSlots(Mr,!0),Mr.__shady.assignedNodes=[];for(var Fr,Dr=!1,Lr=!1,kr=0,Hr=wr.length;kr<Hr;kr++)(Fr=wr[kr])&&this.matchesInsertionPoint(Fr,Mr)&&(Fr.__shady._prevAssignedSlot!=Mr&&(Dr=!0),this.distributeNodeInto(Fr,Mr),wr[kr]=void 0,Lr=!0);if(!Lr)for(wr=Mr.childNodes,Lr=0;Lr<wr.length;Lr++)Fr=wr[Lr],Fr.__shady._prevAssignedSlot!=Mr&&(Dr=!0),this.distributeNodeInto(Fr,Mr);if(Or){for(Fr=0;Fr<Or.length;Fr++)Or[Fr].__shady._prevAssignedSlot=null;Mr.__shady.assignedNodes.length<Or.length&&(Dr=!0)}this.setDistributedNodesOnInsertionPoint(Mr),Dr&&this._fireSlotChange(Mr)},eo.prototype.clearAssignedSlots=function(Mr,wr){var Or=Mr.__shady.assignedNodes;if(Or)for(var Lr,Dr=0;Dr<Or.length;Dr++)Lr=Or[Dr],wr&&(Lr.__shady._prevAssignedSlot=Lr.__shady.assignedSlot),Lr.__shady.assignedSlot===Mr&&(Lr.__shady.assignedSlot=null)},eo.prototype.matchesInsertionPoint=function(Mr,wr){return wr=(wr=wr.getAttribute('name'))?wr.trim():'',Mr=(Mr=Mr.getAttribute&&Mr.getAttribute('slot'))?Mr.trim():'',Mr==wr},eo.prototype.distributeNodeInto=function(Mr,wr){wr.__shady.assignedNodes.push(Mr),Mr.__shady.assignedSlot=wr},eo.prototype.setDistributedNodesOnInsertionPoint=function(Mr){var wr=Mr.__shady.assignedNodes;Mr.__shady.distributedNodes=[];for(var Dr,Or=0;Or<wr.length&&(Dr=wr[Or]);Or++)if(this.isInsertionPoint(Dr)){var Lr=Dr.__shady.distributedNodes;if(Lr)for(var kr=0;kr<Lr.length;kr++)Mr.__shady.distributedNodes.push(Lr[kr])}else Mr.__shady.distributedNodes.push(wr[Or])},eo.prototype._fireSlotChange=function(Mr){Mr.dispatchEvent(new hr('slotchange')),Mr.__shady.assignedSlot&&this._fireSlotChange(Mr.__shady.assignedSlot)},eo.prototype.isFinalDestination=function(Mr){return!Mr.__shady.assignedSlot},cr.default=eo;var _r={},ur={};to.prototype=Object.create(DocumentFragment.prototype),To.extendAll(to.prototype,{_init:function(Mr){this.__localName='ShadyRoot',tr.recordChildNodes(Mr),tr.recordChildNodes(this),Mr.shadowRoot=this,this.host=Mr,this._changePending=this._hasRendered=this._renderPending=!1,this._distributor=new cr.default(this),this.update()},update:function(){var Mr=this;this._renderPending||(this._renderPending=!0,Oo.enqueue(function(){return Mr.render()}))},_getRenderRoot:function(){for(var Mr=this,wr=this;wr;)wr._renderPending&&(Mr=wr),wr=wr._rendererForHost();return Mr},_rendererForHost:function(){var Mr=this.host.getRootNode();if(To.isShadyRoot(Mr))for(var Dr,wr=this.host.childNodes,Or=0;Or<wr.length;Or++)if(Dr=wr[Or],this._distributor.isInsertionPoint(Dr))return Mr},render:function(){this._renderPending&&this._getRenderRoot()._render()},_render:function(){this._changePending=this._renderPending=!1,this._skipUpdateInsertionPoints?this._hasRendered||(this._insertionPoints=[]):this.updateInsertionPoints(),this._skipUpdateInsertionPoints=!1,this.distribute(),this.compose(),this._hasRendered=!0},forceRender:function(){this._renderPending=!0,this.render()},distribute:function(){for(var Mr=this._distributor.distribute(),wr=0;wr<Mr.length;wr++)Mr[wr]._render()},updateInsertionPoints:function(){var Mr=this.__insertionPoints;if(Mr)for(var Or,wr=0;wr<Mr.length;wr++)Or=Mr[wr],Or.getRootNode()!==this&&this._distributor.clearAssignedSlots(Or);for(Mr=this._insertionPoints=this._distributor.getInsertionPoints(),wr=0;wr<Mr.length;wr++)Or=Mr[wr],Or.__shady=Or.__shady||{},tr.recordChildNodes(Or),tr.recordChildNodes(Or.parentNode)},get _insertionPoints(){return this.__insertionPoints||this.updateInsertionPoints(),this.__insertionPoints||(this.__insertionPoints=[])},set _insertionPoints(Mr){this.__insertionPoints=Mr},hasInsertionPoint:function(){return this._distributor.hasInsertionPoint()},compose:function(){this._composeTree()},_composeTree:function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var Dr,Lr,Mr=this._insertionPoints||[],wr=0,Or=Mr.length;wr<Or&&(Dr=Mr[wr]);wr++)Lr=Dr.parentNode,Lr!==this.host&&Lr!==this&&this._updateChildNodes(Lr,this._composeNode(Lr))},_composeNode:function(Mr){var wr=[];Mr=(Mr.shadyRoot||Mr).childNodes;for(var Dr,Or=0;Or<Mr.length;Or++)if(Dr=Mr[Or],this._distributor.isInsertionPoint(Dr))for(var Hr,Lr=Dr.__shady.distributedNodes||(Dr.__shady.distributedNodes=[]),kr=0;kr<Lr.length;kr++)Hr=Lr[kr],this.isFinalDestination(Dr,Hr)&&wr.push(Hr);else wr.push(Dr);return wr},isFinalDestination:function(Mr,wr){return this._distributor.isFinalDestination(Mr,wr)},_updateChildNodes:function(Mr,wr){for(var Hr,Or=Wo.childNodes(Mr),Dr=Co.calculateSplices(wr,Or),Lr=0,kr=0;Lr<Dr.length&&(Hr=Dr[Lr]);Lr++){for(var Ur,Fr=0;Fr<Hr.removed.length&&(Ur=Hr.removed[Fr]);Fr++)Wo.parentNode(Ur)===Mr&&or.removeChild.call(Mr,Ur),Or.splice(Hr.index+kr,1);kr-=Hr.addedCount}for(Lr=0;Lr<Dr.length&&(Hr=Dr[Lr]);Lr++)for(kr=Or[Hr.index],Fr=Hr.index;Fr<Hr.index+Hr.addedCount;Fr++)Ur=wr[Fr],or.insertBefore.call(Mr,Ur,kr),Or.splice(Fr,0,Ur)},getInsertionPointTag:function(){return this._distributor.insertionPointTag}}),Go.patchShadowRootAccessors(to.prototype),_r.ShadyRoot=to,_r.attachShadow=function(Mr,wr){if(!Mr)throw'Must provide a host.';if(!wr)throw'Not enough arguments.';return new to(ur,Mr)};var mr={};mr.getRootNode=no,mr.query=function(Mr,wr,Or){var Dr=[];return co(Mr.childNodes,wr,Or,Dr),Dr},mr.renderRootNode=function(Mr){Mr=Mr.getRootNode(),To.isShadyRoot(Mr)&&Mr.render()},mr.setAttribute=function(Mr,wr,Or){window.ShadyCSS&&'class'===wr&&Mr.ownerDocument===document?window.ShadyCSS.setElementClass(Mr,Or):(or.setAttribute.call(Mr,wr,Or),po(Mr,wr))},mr.removeAttribute=function(Mr,wr){or.removeAttribute.call(Mr,wr),po(Mr,wr)},mr.insertBefore=function(Mr,wr,Or){if(Or){var Dr=ko.getProperty(Or,'parentNode');if(void 0!==Dr&&Dr!==Mr)throw Error('The ref_node to be inserted before is not a child of this node')}wr.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(Dr=ko.getProperty(wr,'parentNode'),Dr?(ro(Dr,null,wr),oo(wr)):(wr.parentNode&&or.removeChild.call(wr.parentNode,wr),ao(wr)));var kr,Lr=Or,Dr=To.ownerShadyRootForNode(Mr);Dr&&(wr.__noInsertionPoint&&!Dr._changePending&&(Dr._skipUpdateInsertionPoints=!0),kr=so(wr,Mr,Dr))&&(Dr._skipUpdateInsertionPoints=!1),ko.hasProperty(Mr,'firstChild')&&tr.recordInsertBefore(wr,Mr,Lr);var Lr=kr,Hr=Dr&&Dr.getInsertionPointTag()||'',Fr=wr.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!wr.__noInsertionPoint&&Hr&&wr.querySelector(Hr);if(kr=Fr&&Fr.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE,((Fr=Fr||wr.localName===Hr)||Mr.localName===Hr||Lr)&&Dr&&io(Dr),(Dr=Mr&&Mr.shadyRoot&&Mr.shadyRoot.hasInsertionPoint())&&io(Mr.shadyRoot),!(Dr||Fr&&!kr||Mr.shadyRoot)){if(Or&&(Dr=To.ownerShadyRootForNode(Or))){var Ur;if(Or.localName===Dr.getInsertionPointTag())a:{for(Dr=Or.assignedNodes({flatten:!0}),kr=no(Or),Lr=0,Hr=Dr.length;Lr<Hr&&(Ur=Dr[Lr]);Lr++)if(kr.isFinalDestination(Or,Ur))break a;Ur=void 0}else Ur=Or;Or=Ur}Ur=To.isShadyRoot(Mr)?Mr.host:Mr,Or?or.insertBefore.call(Ur,wr,Or):or.appendChild.call(Ur,wr)}return ro(Mr,wr),wr},mr.removeChild=function(Mr,wr){if(wr.parentNode!==Mr)throw Error('The node to be removed is not a child of this node: '+wr);if(!oo(wr)){var Or=To.isShadyRoot(Mr)?Mr.host:Mr,Dr=Wo.parentNode(wr);Or===Dr&&or.removeChild.call(Or,wr)}return ro(Mr,null,wr),wr},mr.cloneNode=function(Mr,wr){if('template'==Mr.localName)return or.cloneNode.call(Mr,wr);var Or=or.cloneNode.call(Mr,!1);if(wr){Mr=Mr.childNodes,wr=0;for(var Dr;wr<Mr.length;wr++)Dr=Mr[wr].cloneNode(!0),Or.appendChild(Dr)}return Or},mr.importNode=ho;var yr={};_o.prototype.schedule=function(){var Mr=this;this._scheduled||(this._scheduled=!0,To.microtask(function(){Mr.flush()}))},_o.prototype.flush=function(){if(this._scheduled){this._scheduled=!1;var Mr=this.takeRecords();Mr.length&&this.callbacks.forEach(function(wr){wr(Mr)})}},_o.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var Mr=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],Mr}return[]},yr.observeChildren=function(Mr,wr){Mr.__shady=Mr.__shady||{},Mr.__shady.observer||(Mr.__shady.observer=new _o),Mr.__shady.observer.callbacks.add(wr);var Or=Mr.__shady.observer;return{_callback:wr,_observer:Or,_node:Mr,takeRecords:function(){return Or.takeRecords()}}},yr.unobserveChildren=function(Mr){var wr=Mr&&Mr._observer;wr&&(wr.callbacks.delete(Mr._callback),wr.callbacks.size||(Mr._node.__shady.observer=null))},yr.filterMutations=function(Mr,wr){var Or=wr.getRootNode();return Mr.map(function(Dr){var Lr=Or===Dr.target.getRootNode();if(Lr&&Dr.addedNodes){if(Lr=Array.from(Dr.addedNodes).filter(function(kr){return Or===kr.getRootNode()}),Lr.length)return Dr=Object.create(Dr),Object.defineProperty(Dr,'addedNodes',{value:Lr,configurable:!0}),Dr;}else if(Lr)return Dr}).filter(function(Dr){return Dr})};var gr={},fr={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},br={get composed(){return this.isTrusted&&void 0===this.__composed&&(this.__composed=fr[this.type]),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=uo(this.__target,this.composed)),this.__composedPath},get target(){return mo(this.currentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=uo(this.__relatedTarget,!0)),mo(this.currentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.__propagationStopped=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.__propagationStopped=this.__immediatePropagationStopped=!0}},vr={focus:!0,blur:!0},Nr=yo(window.Event),Er=yo(window.CustomEvent),Cr=yo(window.MouseEvent);gr.addEventListener=function(Mr,wr,Or){if(wr){var Dr,Lr,kr;if('object'==typeof Or?(Dr=!!Or.capture,Lr=!!Or.once,kr=!!Or.passive):(Dr=!!Or,kr=Lr=!1),wr.__eventWrappers){for(var Hr=0;Hr<wr.__eventWrappers.length;Hr++)if(wr.__eventWrappers[Hr].node===this&&wr.__eventWrappers[Hr].type===Mr&&wr.__eventWrappers[Hr].capture===Dr&&wr.__eventWrappers[Hr].once===Lr&&wr.__eventWrappers[Hr].passive===kr)return;}else wr.__eventWrappers=[];Hr=function(Fr){if(Lr&&this.removeEventListener(Mr,wr,Or),Fr.__target||vo(Fr),Fr.composed||-1<Fr.composedPath().indexOf(this))if(Fr.eventPhase===Event.BUBBLING_PHASE&&Fr.target===Fr.relatedTarget)Fr.stopImmediatePropagation();else return wr(Fr)},wr.__eventWrappers.push({node:this,type:Mr,capture:Dr,once:Lr,passive:kr,wrapperFn:Hr}),vr[Mr]?(this.__handlers=this.__handlers||{},this.__handlers[Mr]=this.__handlers[Mr]||{capture:[],bubble:[]},this.__handlers[Mr][Dr?'capture':'bubble'].push(Hr)):or.addEventListener.call(this,Mr,Hr,Or)}},gr.removeEventListener=function(Mr,wr,Or){if(wr){var Dr,Lr,kr;'object'==typeof Or?(Dr=!!Or.capture,Lr=!!Or.once,kr=!!Or.passive):(Dr=!!Or,kr=Lr=!1);var Hr;if(wr.__eventWrappers)for(var Fr=0;Fr<wr.__eventWrappers.length;Fr++)if(wr.__eventWrappers[Fr].node===this&&wr.__eventWrappers[Fr].type===Mr&&wr.__eventWrappers[Fr].capture===Dr&&wr.__eventWrappers[Fr].once===Lr&&wr.__eventWrappers[Fr].passive===kr){Hr=wr.__eventWrappers.splice(Fr,1)[0].wrapperFn,wr.__eventWrappers.length||(wr.__eventWrappers=void 0);break}or.removeEventListener.call(this,Mr,Hr||wr,Or),Hr&&vr[Mr]&&this.__handlers&&this.__handlers[Mr]&&(Mr=this.__handlers[Mr][Dr?'capture':'bubble'],Hr=Mr.indexOf(Hr),-1<Hr&&Mr.splice(Hr,1))}},gr.patchEvents=function(){window.Event=Nr,window.CustomEvent=Er,window.MouseEvent=Cr,bo()};var Sr={},Tr={addEventListener:gr.addEventListener,removeEventListener:gr.removeEventListener,appendChild:function(Mr){return mr.insertBefore(this,Mr)},insertBefore:function(Mr,wr){return mr.insertBefore(this,Mr,wr)},removeChild:function(Mr){return mr.removeChild(this,Mr)},replaceChild:function(Mr,wr){return this.insertBefore(Mr,wr),this.removeChild(wr),Mr},cloneNode:function(Mr){return mr.cloneNode(this,Mr)},getRootNode:function(Mr){return mr.getRootNode(this,Mr)},get isConnected(){var Mr=this.ownerDocument;if(Mr&&Mr.contains&&Mr.contains(this)||(Mr=Mr.documentElement)&&Mr.contains&&Mr.contains(this))return!0;for(Mr=this;Mr&&!(Mr instanceof Document);)Mr=Mr.parentNode||(Mr instanceof _r.ShadyRoot?Mr.host:void 0);return!!(Mr&&Mr instanceof Document)}},Ar={get assignedSlot(){return No(this)}},Pr={querySelector:function(Mr){return mr.query(this,function(wr){return To.matchesSelector(wr,Mr)},function(wr){return!!wr})[0]||null},querySelectorAll:function(Mr){return mr.query(this,function(wr){return To.matchesSelector(wr,Mr)})}},Rr={assignedNodes:function(Mr){if('slot'===this.localName)return mr.renderRootNode(this),this.__shady?(Mr&&Mr.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},xr=To.extendAll({setAttribute:function(Mr,wr){mr.setAttribute(this,Mr,wr)},removeAttribute:function(Mr){mr.removeAttribute(this,Mr)},attachShadow:function(Mr){return _r.attachShadow(this,Mr)},get slot(){return this.getAttribute('slot')},set slot(Mr){this.setAttribute('slot',Mr)},get assignedSlot(){return No(this)}},Pr,Rr);Object.defineProperties(xr,Go.ShadowRootAccessor);var Ir=To.extendAll({importNode:function(Mr,wr){return mr.importNode(Mr,wr)}},Pr);Object.defineProperties(Ir,{_activeElement:Go.ActiveElementAccessor.activeElement}),Sr.patchBuiltins=function(){Eo(window.Node.prototype,Tr),Eo(window.Text.prototype,Ar),Eo(window.DocumentFragment.prototype,Pr),Eo(window.Element.prototype,xr),Eo(window.Document.prototype,Ir),window.HTMLSlotElement&&Eo(window.HTMLSlotElement.prototype,Rr),To.settings.hasDescriptors&&(Go.patchAccessors(window.Node.prototype),Go.patchAccessors(window.Text.prototype),Go.patchAccessors(window.DocumentFragment.prototype),Go.patchAccessors(window.Element.prototype),Go.patchAccessors((window.customElements&&customElements.nativeHTMLElement||HTMLElement).prototype),Go.patchAccessors(window.Document.prototype),window.HTMLSlotElement&&Go.patchAccessors(window.HTMLSlotElement.prototype))},To.settings.inUse&&(window.ShadyDOM={inUse:To.settings.inUse,patch:function(Mr){return Mr},isShadyRoot:To.isShadyRoot,enqueue:Oo.enqueue,flush:Oo.flush,settings:To.settings,filterMutations:yr.filterMutations,observeChildren:yr.observeChildren,unobserveChildren:yr.unobserveChildren,nativeMethods:or,nativeTree:Wo},gr.patchEvents(),Sr.patchBuiltins(),window.ShadowRoot=_r.ShadyRoot)}.call(window),function(){'use strict';function jt(Vo){var Yo=uo.has(Vo);return Vo=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(Vo),!Yo&&Vo}function Wt(Vo){var Yo=Vo.isConnected;if(void 0!==Yo)return Yo;for(;Vo&&!(Vo.__CE_isImportDocument||Vo instanceof Document);)Vo=Vo.parentNode||(window.ShadowRoot&&Vo instanceof ShadowRoot?Vo.host:void 0);return Vo&&(Vo.__CE_isImportDocument||Vo instanceof Document)}function Bt(Vo,Yo){for(;Yo&&Yo!==Vo&&!Yo.nextSibling;)Yo=Yo.parentNode;return Yo&&Yo!==Vo?Yo.nextSibling:null}function Kt(Vo,Yo,zo){zo=zo?zo:new Set;for(var Jo=Vo;Jo;){if(Jo.nodeType===Node.ELEMENT_NODE){var $o=Jo;Yo($o);var Zo=$o.localName;if('link'===Zo&&'import'===$o.getAttribute('rel')){if(Jo=$o.import,Jo instanceof Node&&!zo.has(Jo))for(zo.add(Jo),Jo=Jo.firstChild;Jo;Jo=Jo.nextSibling)Kt(Jo,Yo,zo);Jo=Bt(Vo,$o);continue}else if('template'===Zo){Jo=Bt(Vo,$o);continue}if($o=$o.__CE_shadowRoot)for($o=$o.firstChild;$o;$o=$o.nextSibling)Kt($o,Yo,zo)}Jo=Jo.firstChild?Jo.firstChild:Bt(Vo,Jo)}}function Gt(Vo,Yo,zo){Vo[Yo]=zo}function Xt(){this.a=new Map,this.f=new Map,this.c=[],this.b=!1}function Vt(Vo,Yo,zo){Vo.a.set(Yo,zo),Vo.f.set(zo.constructor,zo)}function Yt(Vo,Yo){Vo.b=!0,Vo.c.push(Yo)}function zt(Vo,Yo){Vo.b&&Kt(Yo,function(zo){return Jt(Vo,zo)})}function Jt(Vo,Yo){if(Vo.b&&!Yo.__CE_patched){Yo.__CE_patched=!0;for(var zo=0;zo<Vo.c.length;zo++)Vo.c[zo](Yo)}}function $t(Vo,Yo){var zo=[];for(Kt(Yo,function($o){return zo.push($o)}),Yo=0;Yo<zo.length;Yo++){var Jo=zo[Yo];1===Jo.__CE_state?Vo.connectedCallback(Jo):eo(Vo,Jo)}}function Zt(Vo,Yo){var zo=[];for(Kt(Yo,function($o){return zo.push($o)}),Yo=0;Yo<zo.length;Yo++){var Jo=zo[Yo];1===Jo.__CE_state&&Vo.disconnectedCallback(Jo)}}function Qt(Vo,Yo,zo){zo=zo?zo:new Set;var Jo=[];if(Kt(Yo,function($o){if('link'===$o.localName&&'import'===$o.getAttribute('rel')){var Zo=$o.import;Zo instanceof Node&&'complete'===Zo.readyState?(Zo.__CE_isImportDocument=!0,Zo.__CE_hasRegistry=!0):$o.addEventListener('load',function(){var Qo=$o.import;Qo.__CE_documentLoadHandled||(Qo.__CE_documentLoadHandled=!0,Qo.__CE_isImportDocument=!0,Qo.__CE_hasRegistry=!0,new Set(zo),zo.delete(Qo),Qt(Vo,Qo,zo))})}else Jo.push($o)},zo),Vo.b)for(Yo=0;Yo<Jo.length;Yo++)Jt(Vo,Jo[Yo]);for(Yo=0;Yo<Jo.length;Yo++)eo(Vo,Jo[Yo])}function eo(Vo,Yo){if(void 0===Yo.__CE_state){var zo=Vo.a.get(Yo.localName);if(zo){zo.constructionStack.push(Yo);var Jo=zo.constructor;try{try{if(new Jo!==Yo)throw Error('The custom element constructor did not produce the element being upgraded.')}finally{zo.constructionStack.pop()}}catch(Qo){throw Yo.__CE_state=2,Qo}if(Yo.__CE_state=1,Yo.__CE_definition=zo,zo.attributeChangedCallback)for(zo=zo.observedAttributes,Jo=0;Jo<zo.length;Jo++){var $o=zo[Jo],Zo=Yo.getAttribute($o);null!==Zo&&Vo.attributeChangedCallback(Yo,$o,null,Zo,null)}Wt(Yo)&&Vo.connectedCallback(Yo)}}}function to(Vo,Yo){this.c=Vo,this.a=Yo,this.b=void 0,Qt(this.c,this.a),'loading'===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function oo(Vo){Vo.b&&Vo.b.disconnect()}function ro(){var Vo=this;this.b=this.a=void 0,this.c=new Promise(function(Yo){Vo.b=Yo,Vo.a&&Yo(Vo.a)})}function no(Vo){if(Vo.a)throw Error('Already resolved.');Vo.a=void 0,Vo.b&&Vo.b(void 0)}function so(Vo){this.f=!1,this.a=Vo,this.h=new Map,this.g=function(Yo){return Yo()},this.b=!1,this.c=[],this.j=new to(Vo,document)}function ao(){var Vo=Go;window.HTMLElement=function(){function Yo(){var zo=this.constructor,Jo=Vo.f.get(zo);if(!Jo)throw Error('The custom element being constructed was not registered with `customElements`.');var $o=Jo.constructionStack;if(!$o.length)return $o=mo.call(document,Jo.localName),Object.setPrototypeOf($o,zo.prototype),$o.__CE_state=1,$o.__CE_definition=Jo,Jt(Vo,$o),$o;var Jo=$o.length-1,Zo=$o[Jo];if(Zo===_o)throw Error('The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.');return $o[Jo]=_o,Object.setPrototypeOf(Zo,zo.prototype),Jt(Vo,Zo),Zo}return Yo.prototype=jo.prototype,Yo}()}function lo(Vo,Yo,zo){Yo.prepend=function(){for(var $o=[],Zo=0;Zo<arguments.length;++Zo)$o[Zo-0]=arguments[Zo];Zo=$o.filter(function(er){return er instanceof Node&&Wt(er)}),zo.i.apply(this,$o);for(var Qo=0;Qo<Zo.length;Qo++)Zt(Vo,Zo[Qo]);if(Wt(this))for(Zo=0;Zo<$o.length;Zo++)Qo=$o[Zo],Qo instanceof Element&&$t(Vo,Qo)},Yo.append=function(){for(var $o=[],Zo=0;Zo<arguments.length;++Zo)$o[Zo-0]=arguments[Zo];Zo=$o.filter(function(er){return er instanceof Node&&Wt(er)}),zo.append.apply(this,$o);for(var Qo=0;Qo<Zo.length;Qo++)Zt(Vo,Zo[Qo]);if(Wt(this))for(Zo=0;Zo<$o.length;Zo++)Qo=$o[Zo],Qo instanceof Element&&$t(Vo,Qo)}}function io(){var Vo=Go;Gt(Document.prototype,'createElement',function(Yo){if(this.__CE_hasRegistry){var zo=Vo.a.get(Yo);if(zo)return new zo.constructor}return Yo=mo.call(this,Yo),Jt(Vo,Yo),Yo}),Gt(Document.prototype,'importNode',function(Yo,zo){return Yo=go.call(this,Yo,zo),this.__CE_hasRegistry?Qt(Vo,Yo):zt(Vo,Yo),Yo}),Gt(Document.prototype,'createElementNS',function(Yo,zo){if(this.__CE_hasRegistry&&(null===Yo||'http://www.w3.org/1999/xhtml'===Yo)){var Jo=Vo.a.get(zo);if(Jo)return new Jo.constructor}return Yo=yo.call(this,Yo,zo),Jt(Vo,Yo),Yo}),lo(Vo,Document.prototype,{i:fo,append:bo})}function po(){function Vo(zo,Jo){Object.defineProperty(zo,'textContent',{enumerable:Jo.enumerable,configurable:!0,get:Jo.get,set:function($o){if(this.nodeType===Node.TEXT_NODE)Jo.set.call(this,$o);else{var Zo;if(this.firstChild){var Qo=this.childNodes,er=Qo.length;if(0<er&&Wt(this))for(var Zo=Array(er),tr=0;tr<er;tr++)Zo[tr]=Qo[tr]}if(Jo.set.call(this,$o),Zo)for($o=0;$o<Zo.length;$o++)Zt(Yo,Zo[$o])}}})}var Yo=Go;Gt(Node.prototype,'insertBefore',function(zo,Jo){if(zo instanceof DocumentFragment){var $o=Array.prototype.slice.apply(zo.childNodes);if(zo=Eo.call(this,zo,Jo),Wt(this))for(Jo=0;Jo<$o.length;Jo++)$t(Yo,$o[Jo]);return zo}return $o=Wt(zo),Jo=Eo.call(this,zo,Jo),$o&&Zt(Yo,zo),Wt(this)&&$t(Yo,zo),Jo}),Gt(Node.prototype,'appendChild',function(zo){if(zo instanceof DocumentFragment){var Jo=Array.prototype.slice.apply(zo.childNodes);if(zo=No.call(this,zo),Wt(this))for(var $o=0;$o<Jo.length;$o++)$t(Yo,Jo[$o]);return zo}return Jo=Wt(zo),$o=No.call(this,zo),Jo&&Zt(Yo,zo),Wt(this)&&$t(Yo,zo),$o}),Gt(Node.prototype,'cloneNode',function(zo){return zo=vo.call(this,zo),this.ownerDocument.__CE_hasRegistry?Qt(Yo,zo):zt(Yo,zo),zo}),Gt(Node.prototype,'removeChild',function(zo){var Jo=Wt(zo),$o=Co.call(this,zo);return Jo&&Zt(Yo,zo),$o}),Gt(Node.prototype,'replaceChild',function(zo,Jo){if(zo instanceof DocumentFragment){var $o=Array.prototype.slice.apply(zo.childNodes);if(zo=So.call(this,zo,Jo),Wt(this))for(Zt(Yo,Jo),Jo=0;Jo<$o.length;Jo++)$t(Yo,$o[Jo]);return zo}var $o=Wt(zo),Zo=So.call(this,zo,Jo),Qo=Wt(this);return Qo&&Zt(Yo,Jo),$o&&Zt(Yo,zo),Qo&&$t(Yo,zo),Zo}),To&&To.get?Vo(Node.prototype,To):Yt(Yo,function(zo){Vo(zo,{enumerable:!0,configurable:!0,get:function(){for(var Jo=[],$o=0;$o<this.childNodes.length;$o++)Jo.push(this.childNodes[$o].textContent);return Jo.join('')},set:function(Jo){for(;this.firstChild;)Co.call(this,this.firstChild);No.call(this,document.createTextNode(Jo))}})})}function co(Vo){var Yo=Element.prototype;Yo.before=function(){for(var Jo=[],$o=0;$o<arguments.length;++$o)Jo[$o-0]=arguments[$o];$o=Jo.filter(function(Qo){return Qo instanceof Node&&Wt(Qo)}),Ho.apply(this,Jo);for(var Zo=0;Zo<$o.length;Zo++)Zt(Vo,$o[Zo]);if(Wt(this))for($o=0;$o<Jo.length;$o++)Zo=Jo[$o],Zo instanceof Element&&$t(Vo,Zo)},Yo.after=function(){for(var Jo=[],$o=0;$o<arguments.length;++$o)Jo[$o-0]=arguments[$o];$o=Jo.filter(function(Qo){return Qo instanceof Node&&Wt(Qo)}),Fo.apply(this,Jo);for(var Zo=0;Zo<$o.length;Zo++)Zt(Vo,$o[Zo]);if(Wt(this))for($o=0;$o<Jo.length;$o++)Zo=Jo[$o],Zo instanceof Element&&$t(Vo,Zo)},Yo.replaceWith=function(){for(var Jo=[],$o=0;$o<arguments.length;++$o)Jo[$o-0]=arguments[$o];var $o=Jo.filter(function(er){return er instanceof Node&&Wt(er)}),Zo=Wt(this);Uo.apply(this,Jo);for(var Qo=0;Qo<$o.length;Qo++)Zt(Vo,$o[Qo]);if(Zo)for(Zt(Vo,this),$o=0;$o<Jo.length;$o++)Zo=Jo[$o],Zo instanceof Element&&$t(Vo,Zo)},Yo.remove=function(){var zo=Wt(this);qo.call(this),zo&&Zt(Vo,this)}}function ho(){function Vo($o,Zo){Object.defineProperty($o,'innerHTML',{enumerable:Zo.enumerable,configurable:!0,get:Zo.get,set:function(Qo){var tr,er=this;if(Wt(this)&&(tr=[],Kt(this,function(nr){nr!==er&&tr.push(nr)})),Zo.set.call(this,Qo),tr)for(var rr,or=0;or<tr.length;or++)rr=tr[or],1===rr.__CE_state&&zo.disconnectedCallback(rr);return this.ownerDocument.__CE_hasRegistry?Qt(zo,this):zt(zo,this),Qo}})}function Yo($o,Zo){Gt($o,'insertAdjacentElement',function(Qo,er){var tr=Wt(er);return Qo=Zo.call(this,Qo,er),tr&&Zt(zo,er),Wt(Qo)&&$t(zo,er),Qo})}var zo=Go;if(Ao?Gt(Element.prototype,'attachShadow',function($o){return this.__CE_shadowRoot=$o=Ao.call(this,$o)}):console.warn('Custom Elements: `Element#attachShadow` was not patched.'),Po&&Po.get)Vo(Element.prototype,Po);else if(Wo&&Wo.get)Vo(HTMLElement.prototype,Wo);else{var Jo=mo.call(document,'div');Yt(zo,function($o){Vo($o,{enumerable:!0,configurable:!0,get:function(){return vo.call(this,!0).innerHTML},set:function(Zo){var Qo='template'===this.localName?this.content:this;for(Jo.innerHTML=Zo;0<Qo.childNodes.length;)Co.call(Qo,Qo.childNodes[0]);for(;0<Jo.childNodes.length;)No.call(Qo,Jo.childNodes[0])}})})}Gt(Element.prototype,'setAttribute',function($o,Zo){if(1!==this.__CE_state)return xo.call(this,$o,Zo);var Qo=Ro.call(this,$o);xo.call(this,$o,Zo),Zo=Ro.call(this,$o),Qo!==Zo&&zo.attributeChangedCallback(this,$o,Qo,Zo,null)}),Gt(Element.prototype,'setAttributeNS',function($o,Zo,Qo){if(1!==this.__CE_state)return wo.call(this,$o,Zo,Qo);var er=Mo.call(this,$o,Zo);wo.call(this,$o,Zo,Qo),Qo=Mo.call(this,$o,Zo),er!==Qo&&zo.attributeChangedCallback(this,Zo,er,Qo,$o)}),Gt(Element.prototype,'removeAttribute',function($o){if(1!==this.__CE_state)return Io.call(this,$o);var Zo=Ro.call(this,$o);Io.call(this,$o),null!==Zo&&zo.attributeChangedCallback(this,$o,Zo,null,null)}),Gt(Element.prototype,'removeAttributeNS',function($o,Zo){if(1!==this.__CE_state)return Oo.call(this,$o,Zo);var Qo=Mo.call(this,$o,Zo);Oo.call(this,$o,Zo);var er=Mo.call(this,$o,Zo);Qo!==er&&zo.attributeChangedCallback(this,Zo,Qo,er,$o)}),Bo?Yo(HTMLElement.prototype,Bo):Do?Yo(Element.prototype,Do):console.warn('Custom Elements: `Element#insertAdjacentElement` was not patched.'),lo(zo,Element.prototype,{i:Lo,append:ko}),co(zo)}var _o=new function(){},uo=new Set('annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph'.split(' '));Xt.prototype.connectedCallback=function(Vo){var Yo=Vo.__CE_definition;Yo.connectedCallback&&Yo.connectedCallback.call(Vo)},Xt.prototype.disconnectedCallback=function(Vo){var Yo=Vo.__CE_definition;Yo.disconnectedCallback&&Yo.disconnectedCallback.call(Vo)},Xt.prototype.attributeChangedCallback=function(Vo,Yo,zo,Jo,$o){var Zo=Vo.__CE_definition;Zo.attributeChangedCallback&&-1<Zo.observedAttributes.indexOf(Yo)&&Zo.attributeChangedCallback.call(Vo,Yo,zo,Jo,$o)},to.prototype.f=function(Vo){var Yo=this.a.readyState;for('interactive'!==Yo&&'complete'!==Yo||oo(this),Yo=0;Yo<Vo.length;Yo++)for(var zo=Vo[Yo].addedNodes,Jo=0;Jo<zo.length;Jo++)Qt(this.c,zo[Jo])},so.prototype.l=function(Vo,Yo){var zo=this;if(!(Yo instanceof Function))throw new TypeError('Custom element constructors must be functions.');if(!jt(Vo))throw new SyntaxError('The element name \''+Vo+'\' is not valid.');if(this.a.a.get(Vo))throw Error('A custom element with name \''+Vo+'\' has already been defined.');if(this.f)throw Error('A custom element is already being defined.');this.f=!0;var Jo,$o,Zo,Qo,er;try{var tr=function(rr){var nr=or[rr];if(void 0!==nr&&!(nr instanceof Function))throw Error('The \''+rr+'\' callback must be a function.');return nr},or=Yo.prototype;if(!(or instanceof Object))throw new TypeError('The custom element constructor\'s prototype is not an object.');Jo=tr('connectedCallback'),$o=tr('disconnectedCallback'),Zo=tr('adoptedCallback'),Qo=tr('attributeChangedCallback'),er=Yo.observedAttributes||[]}catch(rr){return}finally{this.f=!1}Vt(this.a,Vo,{localName:Vo,constructor:Yo,connectedCallback:Jo,disconnectedCallback:$o,adoptedCallback:Zo,attributeChangedCallback:Qo,observedAttributes:er,constructionStack:[]}),this.c.push(Vo),this.b||(this.b=!0,this.g(function(){if(!1!==zo.b)for(zo.b=!1,Qt(zo.a,document);0<zo.c.length;){var rr=zo.c.shift();(rr=zo.h.get(rr))&&no(rr)}}))},so.prototype.get=function(Vo){if(Vo=this.a.a.get(Vo))return Vo.constructor},so.prototype.o=function(Vo){if(!jt(Vo))return Promise.reject(new SyntaxError('\''+Vo+'\' is not a valid custom element name.'));var Yo=this.h.get(Vo);return Yo?Yo.c:(Yo=new ro,this.h.set(Vo,Yo),this.a.a.get(Vo)&&-1===this.c.indexOf(Vo)&&no(Yo),Yo.c)},so.prototype.m=function(Vo){oo(this.j);var Yo=this.g;this.g=function(zo){return Vo(function(){return Yo(zo)})}},window.CustomElementRegistry=so,so.prototype.define=so.prototype.l,so.prototype.get=so.prototype.get,so.prototype.whenDefined=so.prototype.o,so.prototype.polyfillWrapFlushCallback=so.prototype.m;var mo=window.Document.prototype.createElement,yo=window.Document.prototype.createElementNS,go=window.Document.prototype.importNode,fo=window.Document.prototype.prepend,bo=window.Document.prototype.append,vo=window.Node.prototype.cloneNode,No=window.Node.prototype.appendChild,Eo=window.Node.prototype.insertBefore,Co=window.Node.prototype.removeChild,So=window.Node.prototype.replaceChild,To=Object.getOwnPropertyDescriptor(window.Node.prototype,'textContent'),Ao=window.Element.prototype.attachShadow,Po=Object.getOwnPropertyDescriptor(window.Element.prototype,'innerHTML'),Ro=window.Element.prototype.getAttribute,xo=window.Element.prototype.setAttribute,Io=window.Element.prototype.removeAttribute,Mo=window.Element.prototype.getAttributeNS,wo=window.Element.prototype.setAttributeNS,Oo=window.Element.prototype.removeAttributeNS,Do=window.Element.prototype.insertAdjacentElement,Lo=window.Element.prototype.prepend,ko=window.Element.prototype.append,Ho=window.Element.prototype.before,Fo=window.Element.prototype.after,Uo=window.Element.prototype.replaceWith,qo=window.Element.prototype.remove,jo=window.HTMLElement,Wo=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,'innerHTML'),Bo=window.HTMLElement.prototype.insertAdjacentElement,Ko=window.customElements;if(!Ko||Ko.forcePolyfill||'function'!=typeof Ko.define||'function'!=typeof Ko.get){var Go=new Xt;ao(),io(),po(),ho(),document.__CE_hasRegistry=!0;var Xo=new so(Go);Object.defineProperty(window,'customElements',{configurable:!0,enumerable:!0,value:Xo})}}.call(self);let Pe={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},Re='{',xe='}',Ie={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},Me='--',De=!(window.ShadyDOM&&window.ShadyDOM.inUse),Le=!navigator.userAgent.match('AppleWebKit/601')&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');window.ShadyCSS?he(window.ShadyCSS):window.WebComponents&&he(window.WebComponents.flags);let He=null,Fe={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 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<Kt.length;Gt++)this._transformDom(Kt[Gt],Wt,Bt)}element(jt,Wt,Bt){if(Wt)if(jt.classList)Bt?(jt.classList.remove(Ue),jt.classList.remove(Wt)):(jt.classList.add(Ue),jt.classList.add(Wt));else if(jt.getAttribute){let Kt=jt.getAttribute('class');if(!Bt){let Gt=(Kt?Kt+' ':'')+Ue+' '+Wt;Ce(jt,Gt)}else if(Kt){let Gt=Kt.replace(Ue,'').replace(Wt,'');Ce(jt,Gt)}}}elementStyles(jt,Wt,Bt){let Kt=jt.__cssBuild,Gt=De||'shady'===Kt?_e(Wt,Bt):this.css(Wt,jt.is,jt.extends,Bt)+'\n\n';return Gt.trim()}css(jt,Wt,Bt,Kt){let Gt=this._calcHostScope(Wt,Bt);Wt=this._calcElementScope(Wt);let Xt=this;return _e(jt,function(Vt){Vt.isScoped||(Xt.rule(Vt,Wt,Gt),Vt.isScoped=!0),Kt&&Kt(Vt,Wt,Gt)})}_calcElementScope(jt){return jt?'.'+jt:''}_calcHostScope(jt,Wt){return Wt?'[is='+jt+']':jt}rule(jt,Wt,Bt){this._transformRule(jt,this._transformComplexSelector,Wt,Bt)}_transformRule(jt,Wt,Bt,Kt){jt.selector=jt.transformedSelector=this._transformRuleCss(jt,Wt,Bt,Kt)}_transformRuleCss(jt,Wt,Bt,Kt){let Gt=jt.selector.split(Be);if(!me(jt))for(let Yt,Xt=0,Vt=Gt.length;Xt<Vt&&(Yt=Gt[Xt]);Xt++)Gt[Xt]=Wt.call(this,Yt,Bt,Kt);return Gt.join(Be)}_transformComplexSelector(jt,Wt,Bt){let Kt=!1;return jt=jt.trim(),jt=jt.replace(je,(Gt,Xt,Vt)=>`:${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<Wt.length;Bt++)Kt=Wt[Bt],jt[Kt]=this.valueForProperty(jt[Kt],jt)}valueForProperty(jt,Wt){if(jt)if(0<=jt.indexOf(';'))jt=this.valueForProperties(jt,Wt);else{let Bt=this;jt=Ee(jt,function(Gt,Xt,Vt,Yt){if(!Xt)return Gt+Yt;let zt=Bt.valueForProperty(Wt[Xt],Wt);return zt&&'initial'!==zt?'apply-shim-inherit'===zt&&(zt='inherit'):zt=Bt.valueForProperty(Wt[Vt]||Vt,Wt)||Vt,Gt+(zt||'')+Yt})}return jt&&jt.trim()||''}valueForProperties(jt,Wt){let Bt=jt.split(';');for(let Gt,Xt,Kt=0;Kt<Bt.length;Kt++)if(Gt=Bt[Kt]){if(Fe.MIXIN_MATCH.lastIndex=0,Xt=Fe.MIXIN_MATCH.exec(Gt),Xt)Gt=this.valueForProperty(Wt[Xt[1]],Wt);else{let Vt=Gt.indexOf(':');if(-1!==Vt){let Yt=Gt.substring(Vt);Yt=Yt.trim(),Yt=this.valueForProperty(Yt,Wt)||Yt,Gt=Gt.substring(0,Vt)+Yt}}Bt[Kt]=Gt&&Gt.lastIndexOf(';')===Gt.length-1?Gt.slice(0,-1):Gt||''}return Bt.join(';')}applyProperties(jt,Wt){let Bt='';jt.propertyInfo||this.decorateRule(jt),jt.propertyInfo.cssText&&(Bt=this.valueForProperties(jt.propertyInfo.cssText,Wt)),jt.cssText=Bt}applyKeyframeTransforms(jt,Wt){let Bt=jt.cssText,Kt=jt.cssText;if(null==jt.hasAnimations&&(jt.hasAnimations=Fe.ANIMATION_MATCH.test(Bt)),jt.hasAnimations){let Gt;if(null==jt.keyframeNamesToTransform)for(let Xt in jt.keyframeNamesToTransform=[],Wt)Gt=Wt[Xt],Kt=Gt(Bt),Bt!==Kt&&(Bt=Kt,jt.keyframeNamesToTransform.push(Xt));else{for(let Xt=0;Xt<jt.keyframeNamesToTransform.length;++Xt)Gt=Wt[jt.keyframeNamesToTransform[Xt]],Bt=Gt(Bt);Kt=Bt}}jt.cssText=Kt}propertyDataFromStyles(jt,Wt){let Bt={},Kt=this,Gt=[];return ye(jt,function(Xt){Xt.propertyInfo||Kt.decorateRule(Xt);let Vt=Xt.transformedSelector||Xt.parsedSelector;Wt&&Xt.propertyInfo.properties&&Vt&>.call(Wt,Vt)&&(Kt.collectProperties(Xt,Bt),Se(Xt.index,Gt))},null,!0),{properties:Bt,key:Gt}}whenHostOrRootRule(jt,Wt,Bt,Kt){if(Wt.propertyInfo||this.decorateRule(Wt),!!Wt.propertyInfo.properties){let Gt=jt.is?ct._calcHostScope(jt.is,jt.extends):'html',Xt=Wt.parsedSelector,Vt=':host > *'===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<Kt.length;Vt=Kt[++Xt])this._scopeKeyframes(Vt,Bt),Gt[Vt.keyframesName]=this._keyframesRuleTransformer(Vt);return Gt}_keyframesRuleTransformer(jt){return function(Wt){return Wt.replace(jt.keyframesNameRx,jt.transformedKeyframesName)}}_scopeKeyframes(jt,Wt){jt.keyframesNameRx=new RegExp(jt.keyframesName,'g'),jt.transformedKeyframesName=jt.keyframesName+'-'+Wt,jt.transformedSelector=jt.transformedSelector||jt.selector,jt.selector=jt.transformedSelector.replace(jt.keyframesName,jt.transformedKeyframesName)}_scopeSelector(jt,Wt,Bt,Kt){jt.transformedSelector=jt.transformedSelector||jt.selector;let Gt=jt.transformedSelector,Xt='.'+Kt,Vt=Gt.split(',');for(let Jt,Yt=0,zt=Vt.length;Yt<zt&&(Jt=Vt[Yt]);Yt++)Vt[Yt]=Jt.match(Wt)?Jt.replace(Bt,Xt):Xt+' '+Jt;jt.selector=Vt.join(',')}applyElementScopeSelector(jt,Wt,Bt){let Kt=jt.getAttribute('class')||'',Gt=Kt;Bt&&(Gt=Kt.replace(new RegExp('\\s*'+bt+'\\s*'+Bt+'\\s*','g'),' ')),Gt+=(Gt?' ':'')+bt+' '+Wt,Kt!==Gt&&Ce(jt,Gt)}applyElementStyle(jt,Wt,Bt,Kt){let Gt=Kt?Kt.textContent||'':this.transformStyles(jt,Wt,Bt),Xt=mt.get(jt),Vt=Xt.customStyle;return Vt&&!De&&Vt!==Kt&&(Vt._useCount--,0>=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 Ct=window.customElements;if(Ct&&!De){const jt=Ct.define;Ct.define=function(Wt,Bt,Kt){return Et[Wt]=ve(Wt),jt.call(Ct,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<Wt.length;Xt++)Vt=Wt[Xt],Vt&&(Yt=Vt.split(':'),1<Yt.length&&(Bt=Yt[0].trim(),Kt=this._replaceInitialOrInherit(Bt,Yt.slice(1).join(':')),Gt[Bt]=Kt));return Gt}_invalidateMixinEntry(jt){for(let Wt in jt.dependants)this._currentTemplate&&Wt===this._currentTemplate.name||mt.invalidate(Wt)}_produceCssProperties(jt,Wt,Bt,Kt){if(Bt&&Ee(Bt,(to,oo)=>{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<Xt.length;Vt++)if(Yt=Xt[Vt],Yt.target!==document.documentElement&&Yt.target!==document.head){for(let Jt,zt=0;zt<Yt.addedNodes.length;zt++)if(Jt=Yt.addedNodes[zt],jt(Jt)){let $t=Jt.getRootNode();if($t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let Zt=$t.host;if(Zt){let Qt=Zt.is||Zt.localName;ct.dom(Jt,Qt)}}}for(let Jt,zt=0;zt<Yt.removedNodes.length;zt++)if(Jt=Yt.removedNodes[zt],Jt.nodeType===Node.ELEMENT_NODE){let $t;if(Jt.classList?$t=Array.from(Jt.classList):Jt.hasAttribute('class')&&($t=Jt.getAttribute('class').split(/\s+/)),void 0!=$t){let Zt=$t.indexOf(ct.SCOPE_NAME);if(0<=Zt){let Qt=$t[Zt+1];Qt&&ct.dom(Jt,Qt,!0)}}}}},Bt=new MutationObserver(Wt),Kt=Xt=>{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;Kt<Bt.length;Kt++)if(Gt=Bt[Kt],jt.properties[Gt]!==Wt[Gt])return!1;return!0}store(jt,Wt,Bt,Kt){let Gt=this.cache[jt]||[];Gt.push({properties:Wt,styleElement:Bt,scopeSelector:Kt}),Gt.length>this.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<Wt.length;Kt++)Gt=Wt[Kt],Bt.push(Gt.textContent),Gt.parentNode.removeChild(Gt);return Bt.join('').trim()}_getCssBuild(jt){let Wt=jt.content.querySelector('style');return Wt?Wt.getAttribute('css-build')||'':''}prepareTemplate(jt,Wt,Bt){if(!jt._prepared){jt._prepared=!0,jt.name=Wt,jt.extends=Bt,ht[Wt]=jt;let Kt=this._getCssBuild(jt),Gt=this._gatherStyles(jt),Xt={is:Wt,extends:Bt,__cssBuild:Kt};this.nativeShadow||ct.dom(jt.content,Wt);let Vt=wt.detectMixin(Gt),Yt=ee(Gt);Vt&&this.nativeCss&&!this.nativeCssApply&&wt.transformRules(Yt,Wt),jt._styleAst=Yt;let zt=[];if(this.nativeCss||(zt=Nt.decorateStyles(jt._styleAst,Xt)),!zt.length||this.nativeCss){let Jt=this.nativeShadow?jt.content:null,$t=Et[Wt],Zt=this._generateStaticStyle(Xt,jt._styleAst,Jt,$t);jt._style=Zt}jt._ownPropertyNames=zt}}_generateStaticStyle(jt,Wt,Bt,Kt){let Gt=ct.elementStyles(jt,Wt);if(Gt.length)return ge(Gt,jt.is,Bt,Kt)}_prepareHost(jt){let Bt,Wt=jt.getAttribute('is')||jt.localName;Wt!==jt.localName&&(Bt=jt.localName);let Xt,Vt,Yt,Kt=Et[Wt],Gt=ht[Wt];return Gt&&(Xt=Gt._styleAst,Vt=Gt._ownPropertyNames,Yt=Gt._cssBuild),mt.set(jt,new mt(Xt,Kt,Vt,Wt,Bt,Yt))}applyStyle(jt,Wt){let Bt=jt.getAttribute('is')||jt.localName,Kt=mt.get(jt),Gt=!!Kt;if(Kt||(Kt=this._prepareHost(jt)),this._isRootOwner(jt)||(this._elementsHaveApplied=!0),window.CustomStyle){let Xt=window.CustomStyle;if(Xt._documentDirty){if(Xt.findStyles(),this.nativeCss?!this.nativeCssApply&&Xt._revalidateApplyShim():this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),Xt.applyStyles(),!this._elementsHaveApplied)return;if(!this.nativeCss&&(this.updateStyles(),Gt))return}}if(Wt&&(Kt.overrideStyleProperties=Kt.overrideStyleProperties||{},Object.assign(Kt.overrideStyleProperties,Wt)),this.nativeCss){Kt.overrideStyleProperties&&this._updateNativeProperties(jt,Kt.overrideStyleProperties);let Xt=ht[Bt];if(!Xt&&!this._isRootOwner(jt))return;if(Xt&&Xt._applyShimInvalid&&Xt._style){if(Xt._validating||(wt.transformRules(Xt._styleAst,Bt),Xt._style.textContent=ct.elementStyles(jt,Kt.styleRules),mt.startValidating(Bt)),this.nativeShadow){let Vt=jt.shadowRoot;if(Vt){let Yt=Vt.querySelector('style');Yt.textContent=ct.elementStyles(jt,Kt.styleRules)}}Kt.styleRules=Xt._styleAst}}else this._updateProperties(jt,Kt),Kt.ownStylePropertyNames&&Kt.ownStylePropertyNames.length&&this._applyStyleProperties(jt,Kt);if(Gt){let Xt=this._isRootOwner(jt)?jt:jt.shadowRoot;Xt&&this._applyToDescendants(Xt)}}_applyToDescendants(jt){let Wt=jt.children||jt.childNodes;for(let Kt,Bt=0;Bt<Wt.length;Bt++)Kt=Wt[Bt],Kt.shadowRoot&&this.applyStyle(Kt),this._applyToDescendants(Kt)}_styleOwnerForNode(jt){let Wt=jt.getRootNode(),Bt=Wt.host;return Bt?mt.get(Bt)?Bt:this._styleOwnerForNode(Bt):this._documentOwner}_isRootOwner(jt){return jt===this._documentOwner}_applyStyleProperties(jt,Wt){let Bt=jt.getAttribute('is')||jt.localName,Kt=Dt.fetch(Bt,Wt.styleProperties,Wt.ownStylePropertyNames),Gt=Kt&&Kt.scopeSelector,Xt=Kt?Kt.styleElement:null,Vt=Wt.scopeSelector;Wt.scopeSelector=Gt||this._generateScopeSelector(Bt);let Yt=Nt.applyElementStyle(jt,Wt.styleProperties,Wt.scopeSelector,Xt);return this.nativeShadow||Nt.applyElementScopeSelector(jt,Wt.scopeSelector,Vt),Kt||Dt.store(Bt,Wt.styleProperties,Yt,Wt.scopeSelector),Yt}_updateProperties(jt,Wt){let Bt=this._styleOwnerForNode(jt),Kt=mt.get(Bt),Gt=Kt.styleProperties,Xt=Object.create(Gt||null),Vt=Nt.hostAndRootPropertiesForScope(jt,Wt.styleRules),Yt=Nt.propertyDataFromStyles(Kt.styleRules,jt),zt=Yt.properties;Object.assign(Xt,Vt.hostProps,zt,Vt.rootProps),this._mixinOverrideStyles(Xt,Wt.overrideStyleProperties),Nt.reify(Xt),Wt.styleProperties=Xt}_mixinOverrideStyles(jt,Wt){for(let Bt in Wt){let Kt=Wt[Bt];(Kt||0===Kt)&&(jt[Bt]=Kt)}}_updateNativeProperties(jt,Wt){for(let Bt in Wt)null===Bt?jt.style.removeProperty(Bt):jt.style.setProperty(Bt,Wt[Bt])}updateStyles(jt){this.applyStyle(this._documentOwner,jt)}_transformCustomStyleForDocument(jt){let Wt=ue(jt);ye(Wt,Bt=>{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<Vt.length;Yt++)if(Vt[Yt]===ct.SCOPE_NAME){Gt=Vt[Yt+1];break}}}if(Gt&&Kt.push(ct.SCOPE_NAME,Gt),!this.nativeCss){let Vt=mt.get(jt);Vt&&Vt.scopeSelector&&Kt.push(Nt.XSCOPE_NAME,Vt.scopeSelector)}Ce(jt,Kt.join(' '))}_styleInfoForNode(jt){return mt.get(jt)}}window.ShadyCSS=new Lt;let kt=window.ShadyCSS,Ht=!1,Ft=[],Ut=null;class qt extends HTMLElement{static get _customStyles(){return Ft}static get processHook(){return Ut}static set processHook(jt){Ut=jt}static get _documentDirty(){return Ht}static findStyles(){for(let Wt,jt=0;jt<Ft.length;jt++)if(Wt=Ft[jt],!Wt._style){let Bt=Wt.querySelector('style');if(!Bt)continue;if(Bt.__appliedElement)for(let Gt,Kt=0;Kt<Bt.attributes.length;Kt++)Gt=Bt.attributes[Kt],Bt.__appliedElement.setAttribute(Gt.name,Gt.value);Wt._style=Bt.__appliedElement||Bt,Ut&&Ut(Wt._style),kt._transformCustomStyleForDocument(Wt._style)}}static _revalidateApplyShim(){for(let Wt,jt=0;jt<Ft.length;jt++)Wt=Ft[jt],Wt._style&&kt._revalidateApplyShim(Wt._style)}static applyStyles(){for(let Wt,jt=0;jt<Ft.length;jt++)Wt=Ft[jt],Wt._style&&kt._applyCustomStyleToDocument(Wt._style);Ht=!1}constructor(){super(),Ft.push(this),Te()}}window.CustomStyle=qt,window.customElements.define('custom-style',qt),function(){'use strict';if(customElements&&customElements.polyfillWrapFlushCallback){function Wt(){if(Bt){let Gt=Bt;return Bt=null,Gt(),!0}}let Bt,Kt=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(Gt){Bt=Gt,Kt(Wt)}),HTMLImports.whenReady=function(Gt){Kt(function(){Wt()?HTMLImports.whenReady(Gt):Gt()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent('WebComponentsReady'))})})}(window.WebComponents),function(){var Wt=document.createElement('style');Wt.textContent='body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n';var Bt=document.querySelector('head');Bt.insertBefore(Wt,Bt.firstChild)}(window.WebComponents)})();
|
|
//# sourceMappingURL=webcomponents-lite.js.map
|