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