mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
7 lines
35 KiB
JavaScript
7 lines
35 KiB
JavaScript
(function(){'use strict';function d(ot){return ot=y(ot),S(f(ot),ot)}function y(ot){return ot.replace(J.comments,'').replace(J.port,'')}function f(ot){let lt=new G;lt.start=0,lt.end=ot.length;let nt=lt;for(let it=0,dt=ot.length;it<dt;it++)if(ot[it]===z){nt.rules||(nt.rules=[]);let pt=nt,ct=pt.rules[pt.rules.length-1]||null;nt=new G,nt.start=it+1,nt.parent=pt,nt.previous=ct,pt.rules.push(nt)}else ot[it]===$&&(nt.end=it+1,nt=nt.parent||lt);return lt}function S(ot,lt){let nt=lt.substring(ot.start,ot.end-1);if(ot.parsedCssText=ot.cssText=nt.trim(),ot.parent){let dt=ot.previous?ot.previous.end:ot.parent.start;nt=lt.substring(dt,ot.start-1),nt=h(nt),nt=nt.replace(J.multipleSpaces,' '),nt=nt.substring(nt.lastIndexOf(';')+1);let pt=ot.parsedSelector=ot.selector=nt.trim();ot.atRule=0===pt.indexOf('@'),ot.atRule?0===pt.indexOf('@media')?ot.type=X.MEDIA_RULE:pt.match(J.keyframesRule)&&(ot.type=X.KEYFRAMES_RULE,ot.keyframesName=ot.selector.split(J.multipleSpaces).pop()):0===pt.indexOf(Z)?ot.type=X.MIXIN_RULE:ot.type=X.STYLE_RULE}let it=ot.rules;if(it)for(let ct,dt=0,pt=it.length;dt<pt&&(ct=it[dt]);dt++)S(ct,lt);return ot}function h(ot){return ot.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let lt=arguments[1],nt=6-lt.length;for(;nt--;)lt='0'+lt;return'\\'+lt})}function _(ot,lt,nt=''){let it='';if(ot.cssText||ot.rules){let dt=ot.rules;if(dt&&!g(dt))for(let ut,pt=0,ct=dt.length;pt<ct&&(ut=dt[pt]);pt++)it=_(ut,lt,it);else it=lt?ot.cssText:C(ot.cssText),it=it.trim(),it&&(it=' '+it+'\n')}return it&&(ot.selector&&(nt+=ot.selector+' '+z+'\n'),nt+=it,ot.selector&&(nt+=$+'\n\n')),nt}function g(ot){let lt=ot[0];return!!lt&&!!lt.selector&&0===lt.selector.indexOf(Z)}function C(ot){return ot=E(ot),b(ot)}function E(ot){return ot.replace(J.customProp,'').replace(J.mixinProp,'')}function b(ot){return ot.replace(J.mixinApply,'').replace(J.varApply,'')}function R(ot){ot&&(re=re&&!ot.nativeCss&&!ot.shimcssproperties,te=te&&!ot.nativeShadow&&!ot.shimshadow)}function N(ot,lt){return'string'==typeof ot&&(ot=d(ot)),lt&&T(ot,lt),_(ot,re)}function A(ot){return!ot.__cssRules&&ot.textContent&&(ot.__cssRules=d(ot.textContent)),ot.__cssRules}function I(ot){return!!ot.parent&&ot.parent.type===X.KEYFRAMES_RULE}function T(ot,lt,nt,it){if(ot){let dt=!1,pt=ot.type;if(it&&pt===X.MEDIA_RULE){let ut=ot.selector.match(ae);ut&&!window.matchMedia(ut[1]).matches&&(dt=!0)}pt===X.STYLE_RULE?lt(ot):nt&&pt===X.KEYFRAMES_RULE?nt(ot):pt===X.MIXIN_RULE&&(dt=!0);let ct=ot.rules;if(ct&&!dt)for(let yt,ut=0,mt=ct.length;ut<mt&&(yt=ct[ut]);ut++)T(yt,lt,nt,it)}}function O(ot,lt,nt,it){let dt=L(ot,lt);return P(dt,nt,it)}function P(ot,lt,nt){lt=lt||document.head;let it=nt&&nt.nextSibling||lt.firstChild;return ue=ot,lt.insertBefore(ot,it)}function L(ot,lt){let nt=document.createElement('style');return lt&&nt.setAttribute('scope',lt),nt.textContent=ot,nt}function M(ot){let lt=document.createComment(' Shady DOM styles for '+ot+' '),nt=ue?ue.nextSibling:null,it=document.head;return it.insertBefore(lt,nt||it.firstChild),ue=lt,lt}function w(ot,lt){let nt=0;for(let it=lt,dt=ot.length;it<dt;it++)if('('===ot[it])nt++;else if(')'===ot[it]&&0==--nt)return it;return-1}function D(ot,lt){let nt=ot.indexOf('var(');if(-1===nt)return lt(ot,'','','');let it=w(ot,nt+3),dt=ot.substring(nt+4,it),pt=ot.substring(0,nt),ct=D(ot.substring(it+1),lt),ut=dt.indexOf(',');if(-1===ut)return lt(pt,dt.trim(),'',ct);let mt=dt.substring(0,ut).trim(),yt=dt.substring(ut+1).trim();return lt(pt,mt,yt,ct)}function k(ot,lt){window.ShadyDOM?window.ShadyDOM.nativeMethods.setAttribute.call(ot,'class',lt):ot.setAttribute('class',lt)}function U(ot){let lt=ot.is||ot.getAttribute&&ot.getAttribute('is')||ot.localName,nt=ot.extends||ot.localName!==lt?ot.localName:'';return{is:lt,extends:nt}}function F(ot,lt){let nt=parseInt(ot/32,10);lt[nt]=(lt[nt]||0)|1<<ot%32}function q(ot){let lt=je[ot];lt&&H(lt)}function H(ot){ot._applyShimInvalid=!0}function K(ot){return!ot._applyShimInvalid}function B(ot){return ot._validating}function W(ot){ot._validating||(ot._validating=!0,We.then(function(){ot._applyShimInvalid=!1,ot._validating=!1}))}function V(ot){Ye?Ye(ot):(!Ve&&(Ve=new Promise(lt=>{Ge=lt}),'complete'===document.readyState?Ge():document.addEventListener('readystatechange',()=>{'complete'===document.readyState&&Ge()})),Ve.then(function(){ot&&ot()}))}function Y(ot,lt){for(let nt in lt)null===nt?ot.style.removeProperty(nt):ot.style.setProperty(nt,lt[nt])}(ot=>{const lt=!!('import'in document.createElement('link'));let nt=null;!1=='currentScript'in document&&Object.defineProperty(document,'currentScript',{get(){return nt||('complete'===document.readyState?null:document.scripts[document.scripts.length-1])},configurable:!0});const it=/(^\/)|(^#)|(^[\w-\d]*:)/,dt=/(url\()([^)]*)(\))/g,pt=/(@import[\s]+(?!url\())([^;]*)(;)/g,ct=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,ut={fixUrls(Pt,Lt){Pt.href&&Pt.setAttribute('href',ut.replaceAttrUrl(Pt.getAttribute('href'),Lt)),Pt.src&&Pt.setAttribute('src',ut.replaceAttrUrl(Pt.getAttribute('src'),Lt)),'style'===Pt.localName&&ut.resolveUrlsInStyle(Pt,Lt)},fixUrlAttributes(Pt,Lt){const Mt=['action','src','href','url','style'];for(let Dt,wt=0;wt<Mt.length&&(Dt=Mt[wt]);wt++){const kt=Pt.attributes[Dt],Ut=kt&&kt.value;Ut&&0>Ut.search(/({{|\[\[)/)&&(kt.value='style'===Dt?ut.resolveUrlsInCssText(Ut,Lt):ut.replaceAttrUrl(Ut,Lt))}},fixUrlsInTemplates(Pt,Lt){const Mt=Pt.querySelectorAll('template');for(let wt=0;wt<Mt.length;wt++)ut.fixUrlsInTemplate(Mt[wt],Lt)},fixUrlsInTemplate(Pt,Lt){const Mt=Pt.content||Pt,wt=Mt.querySelectorAll('style, form[action], [src], [href], [url], [style]');for(let Dt=0;Dt<wt.length;Dt++){const kt=wt[Dt];'style'==kt.localName?ut.resolveUrlsInStyle(kt,Lt):ut.fixUrlAttributes(kt,Lt)}ut.fixUrlsInTemplates(Mt,Lt)},resolveUrlsInStyle(Pt,Lt){Pt.textContent=ut.resolveUrlsInCssText(Pt.textContent,Lt)},resolveUrlsInCssText(Pt,Lt){let Mt=ut.replaceUrls(Pt,Lt,dt);return Mt=ut.replaceUrls(Mt,Lt,pt),Mt},replaceUrls(Pt,Lt,Mt){return Pt.replace(Mt,(wt,Dt,kt,Ut)=>{let Ft=kt.replace(/["']/g,'');return Lt&&(Ft=ut.resolveUrl(Ft,Lt)),Dt+'\''+Ft+'\''+Ut})},replaceAttrUrl(Pt,Lt){return Pt&&it.test(Pt)?Pt:ut.resolveUrl(Pt,Lt)},resolveUrl(Pt,Lt){if(void 0===ut.__workingURL){ut.__workingURL=!1;try{const wt=new URL('b','http://a');wt.pathname='c%20d',ut.__workingURL='http://a/c%20d'===wt.href}catch(wt){}}if(ut.__workingURL)return new URL(Pt,Lt).href;let Mt=ut.__tempDoc;return Mt||(Mt=document.implementation.createHTMLDocument('temp'),ut.__tempDoc=Mt,Mt.__base=Mt.createElement('base'),Mt.head.appendChild(Mt.__base),Mt.__anchor=Mt.createElement('a')),Mt.__base.href=Lt,Mt.__anchor.href=Pt,Mt.__anchor.href||Pt}},mt={async:!0,load(Pt,Lt,Mt){if(!Pt)Mt('error: href must be specified');else if(Pt.match(/^data:/)){const wt=Pt.split(','),Dt=wt[0];let kt=wt[1];kt=-1<Dt.indexOf(';base64')?atob(kt):decodeURIComponent(kt),Lt(kt)}else{const wt=new XMLHttpRequest;wt.open('GET',Pt,mt.async),wt.onload=()=>{let Dt=wt.getResponseHeader('Location');if(Dt&&0===Dt.indexOf('/')){const Ut=location.origin||location.protocol+'//'+location.host;Dt=Ut+Dt}const kt=wt.response||wt.responseText;304===wt.status||0===wt.status||200<=wt.status&&300>wt.status?Lt(kt,Dt):Mt(kt)},wt.send()}}},yt=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent),ft='link[rel=import]',St='import-disable',ht=`link[rel=stylesheet][href][type=${St}]`,_t=`${ft}, ${ht},
|
|
style:not([type]), link[rel=stylesheet][href]:not([type]),
|
|
script:not([type]), script[type="application/javascript"],
|
|
script[type="text/javascript"]`,gt='import-dependency',Ct=`${ft}:not(${gt})`,Et=`script[${gt}]`,xt=`style[${gt}],
|
|
link[rel=stylesheet][${gt}]`;const vt=Pt=>{return Pt.nodeType===Node.ELEMENT_NODE&&'link'===Pt.localName&&'import'===Pt.rel},Rt=(Pt,Lt)=>{if(Pt.__loaded)Lt&&Lt();else if('script'===Pt.localName&&!Pt.src)Pt.__loaded=!0,Lt&&Lt();else{const Mt=wt=>{Pt.removeEventListener(wt.type,Mt),Pt.__loaded=!0,Lt&&Lt()};Pt.addEventListener('load',Mt),yt&&'style'===Pt.localName||Pt.addEventListener('error',Mt)}},Nt=Pt=>{At(()=>It(()=>Pt&&Pt()))},At=Pt=>{if('loading'!==document.readyState)Pt();else{const Lt=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',Lt),Pt())};document.addEventListener('readystatechange',Lt)}},It=Pt=>{let Lt=document.querySelectorAll(Ct),Mt=Lt.length;if(!Mt)return void Pt();for(let kt,wt=0,Dt=Lt.length;wt<Dt&&(kt=Lt[wt]);wt++)Rt(kt,()=>{0==--Mt&&Pt()})},Tt=Pt=>{if(lt)return Pt.ownerDocument===document?null:Pt.ownerDocument;let Lt=Pt.__importDoc;if(!Lt&&Pt.parentNode){if(Lt=Pt.parentNode,'function'==typeof Lt.closest)Lt=Lt.closest(ft);else for(;!vt(Lt)&&(Lt=Lt.parentNode););Pt.__importDoc=Lt}return Lt},Ot=(Pt,Lt)=>{if('function'==typeof window.CustomEvent)return new CustomEvent(Pt,Lt);const Mt=document.createEvent('CustomEvent');return Mt.initCustomEvent(Pt,!!Lt.bubbles,!!Lt.cancelable,Lt.detail),Mt};if(lt){const Pt=document.querySelectorAll(ft);for(let Dt,Mt=0,wt=Pt.length;Mt<wt&&(Dt=Pt[Mt]);Mt++)Dt.import&&'loading'===Dt.import.readyState||(Dt.__loaded=!0);const Lt=Mt=>{const wt=Mt.target;vt(wt)&&(wt.__loaded=!0)};document.addEventListener('load',Lt,!0),document.addEventListener('error',Lt,!0)}else new class{constructor(){this.documents={},this.inflight=0,this.dynamicImportsMO=new MutationObserver(Pt=>this.handleMutations(Pt)),At(()=>{this.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),this.loadImports(document)})}loadImports(Pt){const Lt=Pt.querySelectorAll(ft);for(let Mt=0,wt=Lt.length;Mt<wt;Mt++)this.loadImport(Lt[Mt])}loadImport(Pt){const Lt=Pt.href;if(void 0!==this.documents[Lt]){const Mt=this.documents[Lt];return void(Mt&&Mt.__loaded&&(Pt.import=Mt,this.fireEventIfNeeded(Pt)))}this.inflight++,this.documents[Lt]='pending',mt.load(Lt,(Mt,wt)=>{const Dt=this.makeDocument(Mt,wt||Lt);this.documents[Lt]=Dt,this.inflight--,this.loadImports(Dt),this.processImportsIfLoadingDone()},()=>{this.documents[Lt]=null,this.inflight--,this.processImportsIfLoadingDone()})}makeDocument(Pt,Lt){if(!Pt)return document.createDocumentFragment();yt&&(Pt=Pt.replace(ct,(Ft,qt,Ht)=>{return-1===Ft.indexOf('type=')?`${qt} type=${St} ${Ht}`:Ft}));let Mt;const wt=document.createElement('template');if(wt.innerHTML=Pt,wt.content)Mt=wt.content;else for(Mt=document.createDocumentFragment();wt.firstChild;)Mt.appendChild(wt.firstChild);const Dt=Mt.querySelector('base');Dt&&(Lt=ut.replaceAttrUrl(Dt.getAttribute('href'),Lt),Dt.removeAttribute('href'));const kt=Mt.querySelectorAll(_t);let Ut=0;for(let Ht,Ft=0,qt=kt.length;Ft<qt&&(Ht=kt[Ft]);Ft++)if(Rt(Ht),ut.fixUrls(Ht,Lt),Ht.setAttribute(gt,''),'script'===Ht.localName&&!Ht.src&&Ht.textContent){const Kt=Ut?`-${Ut}`:'',Bt=Ht.textContent+`\n//# sourceURL=${Lt}${Kt}.js\n`;Ht.setAttribute('src','data:text/javascript;charset=utf-8,'+encodeURIComponent(Bt)),Ht.textContent='',Ut++}return ut.fixUrlsInTemplates(Mt,Lt),Mt}processImportsIfLoadingDone(){if(!this.inflight){this.dynamicImportsMO.disconnect(),this.flatten(document);let Pt=!1,Lt=!1;const Mt=()=>{Lt&&Pt&&(this.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),this.fireEvents())};this.waitForStyles(()=>{Lt=!0,Mt()}),this.runScripts(()=>{Pt=!0,Mt()})}}flatten(Pt){const Lt=Pt.querySelectorAll(ft);for(let Dt,Mt=0,wt=Lt.length;Mt<wt&&(Dt=Lt[Mt]);Mt++){const kt=this.documents[Dt.href];Dt.import=kt,kt&&kt.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[Dt.href]=Dt,Dt.readyState='loading',Dt.import=Dt,Object.defineProperty(Dt,'baseURI',{get:()=>Dt.href,configurable:!0,enumerable:!0}),this.flatten(kt),Dt.appendChild(kt))}}runScripts(Pt){const Lt=document.querySelectorAll(Et),Mt=Lt.length,wt=Dt=>{if(Dt<Mt){const kt=Lt[Dt],Ut=document.createElement('script');kt.removeAttribute(gt);for(let Ft=0,qt=kt.attributes.length;Ft<qt;Ft++)Ut.setAttribute(kt.attributes[Ft].name,kt.attributes[Ft].value);nt=Ut,kt.parentNode.replaceChild(Ut,kt),Rt(Ut,()=>{nt=null,wt(Dt+1)})}else Pt()};wt(0)}waitForStyles(Pt){const Lt=document.querySelectorAll(xt);let Mt=Lt.length;if(!Mt)return void Pt();const wt=yt&&!!document.querySelector(ht);for(let Ut,Dt=0,kt=Lt.length;Dt<kt&&(Ut=Lt[Dt]);Dt++)if(Rt(Ut,()=>{Ut.removeAttribute(gt),0==--Mt&&Pt()}),wt&&Ut.parentNode!==document.head){const Ft=document.createElement(Ut.localName);Ft.__appliedElement=Ut,Ft.setAttribute('type','import-placeholder'),Ut.parentNode.insertBefore(Ft,Ut.nextSibling);let qt=Tt(Ut);for(;qt&&Tt(qt);)qt=Tt(qt);qt.parentNode!==document.head&&(qt=null),document.head.insertBefore(Ut,qt),Ut.removeAttribute('type')}}fireEvents(){const Pt=document.querySelectorAll(ft);for(let Mt,Lt=Pt.length-1;0<=Lt&&(Mt=Pt[Lt]);Lt--)this.fireEventIfNeeded(Mt)}fireEventIfNeeded(Pt){if(!Pt.__loaded){Pt.__loaded=!0,Pt.import&&(Pt.import.readyState='complete');const Lt=Pt.import?'load':'error';Pt.dispatchEvent(Ot(Lt,{bubbles:!1,cancelable:!1,detail:void 0}))}}handleMutations(Pt){for(let Lt=0;Lt<Pt.length;Lt++){const Mt=Pt[Lt];if(Mt.addedNodes)for(let wt=0;wt<Mt.addedNodes.length;wt++){const Dt=Mt.addedNodes[wt];Dt&&Dt.nodeType===Node.ELEMENT_NODE&&(vt(Dt)?this.loadImport(Dt):this.loadImports(Dt))}}}};Nt(()=>document.dispatchEvent(Ot('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),ot.useNative=lt,ot.whenReady=Nt,ot.importForElement=Tt})(window.HTMLImports=window.HTMLImports||{});class G{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 X={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},z='{',$='}',J={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},Z='--';let te=!(window.ShadyDOM&&window.ShadyDOM.inUse),re=!navigator.userAgent.match('AppleWebKit/601')&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');window.ShadyCSS?R(window.ShadyCSS):window.WebComponents&&R(window.WebComponents.flags);const se=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,oe=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,le=/(--[\w-]+)\s*([:,;)]|$)/gi,ne=/(animation\s*:)|(animation-name\s*:)/,ae=/@media[^(]*(\([^)]*\))/,ie=/\{[^}]*\}/g;let ue=null;const me='style-scope';class ye{get SCOPE_NAME(){return me}dom(ot,lt,nt){ot.__styleScoped?ot.__styleScoped=null:this._transformDom(ot,lt||'',nt)}_transformDom(ot,lt,nt){ot.nodeType===Node.ELEMENT_NODE&&this.element(ot,lt,nt);let it='template'===ot.localName?(ot.content||ot._content).childNodes:ot.children||ot.childNodes;if(it)for(let dt=0;dt<it.length;dt++)this._transformDom(it[dt],lt,nt)}element(ot,lt,nt){if(lt)if(ot.classList)nt?(ot.classList.remove(me),ot.classList.remove(lt)):(ot.classList.add(me),ot.classList.add(lt));else if(ot.getAttribute){let it=ot.getAttribute('class');if(!nt){let dt=(it?it+' ':'')+me+' '+lt;k(ot,dt)}else if(it){let dt=it.replace(me,'').replace(lt,'');k(ot,dt)}}}elementStyles(ot,lt,nt){let it=ot.__cssBuild,dt='';if(te||'shady'===it)dt=N(lt,nt);else{let{is:pt,extends:ct}=U(ot);dt=this.css(lt,pt,ct,nt)+'\n\n'}return dt.trim()}css(ot,lt,nt,it){let dt=this._calcHostScope(lt,nt);lt=this._calcElementScope(lt);let pt=this;return N(ot,function(ct){ct.isScoped||(pt.rule(ct,lt,dt),ct.isScoped=!0),it&&it(ct,lt,dt)})}_calcElementScope(ot){return ot?'.'+ot:''}_calcHostScope(ot,lt){return lt?`[is=${ot}]`:ot}rule(ot,lt,nt){this._transformRule(ot,this._transformComplexSelector,lt,nt)}_transformRule(ot,lt,nt,it){ot.selector=ot.transformedSelector=this._transformRuleCss(ot,lt,nt,it)}_transformRuleCss(ot,lt,nt,it){let dt=ot.selector.split(he);if(!I(ot))for(let ut,pt=0,ct=dt.length;pt<ct&&(ut=dt[pt]);pt++)dt[pt]=lt.call(this,ut,nt,it);return dt.join(he)}_transformComplexSelector(ot,lt,nt){let it=!1;return ot=ot.trim(),ot=ot.replace(fe,(dt,pt,ct)=>`:${pt}(${ct.replace(/\s/g,'')})`),ot=ot.replace(be,`${Ce} $1`),ot=ot.replace(_e,(dt,pt,ct)=>{if(!it){let ut=this._transformCompoundSelector(ct,pt,lt,nt);it=it||ut.stop,pt=ut.combinator,ct=ut.value}return pt+ct}),ot}_transformCompoundSelector(ot,lt,nt,it){let dt=ot.indexOf(xe);0<=ot.indexOf(Ce)?ot=this._transformHostSelector(ot,it):0!==dt&&(ot=nt?this._transformSimpleSelector(ot,nt):ot);let pt=!1;0<=dt&&(lt='',pt=!0);let ct;return pt&&(ct=!0,pt&&(ot=ot.replace(Re,(ut,mt)=>` > ${mt}`))),ot=ot.replace(Ne,(ut,mt,yt)=>`[dir="${yt}"] ${mt}, ${mt}[dir="${yt}"]`),{value:ot,combinator:lt,stop:ct}}_transformSimpleSelector(ot,lt){let nt=ot.split(Ie);return nt[0]+=lt,nt.join(Ie)}_transformHostSelector(ot,lt){let nt=ot.match(ve),it=nt&&nt[2].trim()||'';if(it){if(!it[0].match(ge)){let dt=it.split(ge)[0];return dt===lt?it:'should_not_match'}return ot.replace(ve,function(dt,pt,ct){return lt+ct})}return ot.replace(Ce,lt)}documentRule(ot){ot.selector=ot.parsedSelector,this.normalizeRootSelector(ot),this._transformRule(ot,this._transformDocumentSelector)}normalizeRootSelector(ot){ot.selector===':root'&&(ot.selector='html')}_transformDocumentSelector(ot){return ot.match(xe)?this._transformComplexSelector(ot,Se):this._transformSimpleSelector(ot.trim(),Se)}}let fe=/:(nth[-\w]+)\(([^)]+)\)/,Se=`:not(.${me})`,he=',',_e=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,ge=/[[.:#*]/,Ce=':host',xe='::slotted',be=/^(::slotted)/,ve=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Re=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ne=/(.*):dir\((?:(ltr|rtl))\)/,Ie=':';var Pe=new ye;const Le='__styleInfo';class Me{static get(ot){return ot?ot[Le]:null}static set(ot,lt){return ot[Le]=lt,lt}constructor(ot,lt,nt,it,dt,pt){this.styleRules=ot||null,this.placeholder=lt||null,this.ownStylePropertyNames=nt||[],this.overrideStyleProperties=null,this.elementName=it||'',this.cssBuild=pt||'',this.typeExtension=dt||'',this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}_getStyleRules(){return this.styleRules}}Me.prototype._getStyleRules=Me.prototype._getStyleRules;const we=(ot=>ot.matches||ot.matchesSelector||ot.mozMatchesSelector||ot.msMatchesSelector||ot.oMatchesSelector||ot.webkitMatchesSelector)(window.Element.prototype),De=navigator.userAgent.match('Trident'),ke='x-scope';class Ue{get XSCOPE_NAME(){return ke}decorateStyles(ot){let lt=this,nt={},it=[],dt=0;T(ot,function(ct){lt.decorateRule(ct),ct.index=dt++,lt.collectPropertiesInCssText(ct.propertyInfo.cssText,nt)},function(ut){it.push(ut)}),ot._keyframes=it;let pt=[];for(let ct in nt)pt.push(ct);return pt}decorateRule(ot){if(ot.propertyInfo)return ot.propertyInfo;let lt={},nt={},it=this.collectProperties(ot,nt);return it&&(lt.properties=nt,ot.rules=null),lt.cssText=this.collectCssText(ot),ot.propertyInfo=lt,lt}collectProperties(ot,lt){let nt=ot.propertyInfo;if(!nt){let it,pt=ot.parsedCssText,ct,ut;for(;it=se.exec(pt);)ct=(it[2]||it[3]).trim(),('inherit'!==ct||'unset'!==ct)&&(lt[it[1].trim()]=ct),ut=!0;return ut}else if(nt.properties)return Object.assign(lt,nt.properties),!0}collectCssText(ot){return this.collectConsumingCssText(ot.parsedCssText)}collectConsumingCssText(ot){return ot.replace(ie,'').replace(se,'')}collectPropertiesInCssText(ot,lt){for(let nt,it;nt=le.exec(ot);)it=nt[1],':'!==nt[2]&&(lt[it]=!0)}reify(ot){let lt=Object.getOwnPropertyNames(ot);for(let it,nt=0;nt<lt.length;nt++)it=lt[nt],ot[it]=this.valueForProperty(ot[it],ot)}valueForProperty(ot,lt){if(ot)if(0<=ot.indexOf(';'))ot=this.valueForProperties(ot,lt);else{let nt=this;ot=D(ot,function(dt,pt,ct,ut){if(!pt)return dt+ut;let mt=nt.valueForProperty(lt[pt],lt);return mt&&'initial'!==mt?'apply-shim-inherit'===mt&&(mt='inherit'):mt=nt.valueForProperty(lt[ct]||ct,lt)||ct,dt+(mt||'')+ut})}return ot&&ot.trim()||''}valueForProperties(ot,lt){let nt=ot.split(';');for(let dt,pt,it=0;it<nt.length;it++)if(dt=nt[it]){if(oe.lastIndex=0,pt=oe.exec(dt),pt)dt=this.valueForProperty(lt[pt[1]],lt);else{let ct=dt.indexOf(':');if(-1!==ct){let ut=dt.substring(ct);ut=ut.trim(),ut=this.valueForProperty(ut,lt)||ut,dt=dt.substring(0,ct)+ut}}nt[it]=dt&&dt.lastIndexOf(';')===dt.length-1?dt.slice(0,-1):dt||''}return nt.join(';')}applyProperties(ot,lt){let nt='';ot.propertyInfo||this.decorateRule(ot),ot.propertyInfo.cssText&&(nt=this.valueForProperties(ot.propertyInfo.cssText,lt)),ot.cssText=nt}applyKeyframeTransforms(ot,lt){let nt=ot.cssText,it=ot.cssText;if(null==ot.hasAnimations&&(ot.hasAnimations=ne.test(nt)),ot.hasAnimations){let dt;if(null==ot.keyframeNamesToTransform)for(let pt in ot.keyframeNamesToTransform=[],lt)dt=lt[pt],it=dt(nt),nt!==it&&(nt=it,ot.keyframeNamesToTransform.push(pt));else{for(let pt=0;pt<ot.keyframeNamesToTransform.length;++pt)dt=lt[ot.keyframeNamesToTransform[pt]],nt=dt(nt);it=nt}}ot.cssText=it}propertyDataFromStyles(ot,lt){let nt={},it=this,dt=[];return T(ot,function(pt){pt.propertyInfo||it.decorateRule(pt);let ct=pt.transformedSelector||pt.parsedSelector;lt&&pt.propertyInfo.properties&&ct&&we.call(lt,ct)&&(it.collectProperties(pt,nt),F(pt.index,dt))},null,!0),{properties:nt,key:dt}}whenHostOrRootRule(ot,lt,nt,it){if(lt.propertyInfo||this.decorateRule(lt),!!lt.propertyInfo.properties){let dt=U(ot),pt=ot.is?Pe._calcHostScope(dt.is,dt.extends):'html',ct=lt.parsedSelector,ut=':host > *'===ct||'html'===ct,mt=0===ct.indexOf(':host')&&!ut;if('shady'===nt&&(ut=ct===pt+' > *.'+pt||-1!==ct.indexOf('html'),mt=!ut&&0===ct.indexOf(pt)),'shadow'===nt&&(ut=':host > *'===ct||'html'===ct,mt=mt&&!ut),ut||mt){let yt=pt;mt&&(te&&!lt.transformedSelector&&(lt.transformedSelector=Pe._transformRuleCss(lt,Pe._transformComplexSelector,Pe._calcElementScope(dt.is),pt)),yt=lt.transformedSelector||pt),it({selector:yt,isHost:mt,isRoot:ut})}}}hostAndRootPropertiesForScope(ot,lt){let nt={},it={},dt=this,pt=lt&<.__cssBuild;return T(lt,function(ct){dt.whenHostOrRootRule(ot,ct,pt,function(ut){let mt=ot._element||ot;we.call(mt,ut.selector)&&(ut.isHost?dt.collectProperties(ct,nt):dt.collectProperties(ct,it))})},null,!0),{rootProps:it,hostProps:nt}}transformStyles(ot,lt,nt){let it=this,dt=U(ot),pt=Pe._calcHostScope(dt.is,dt.extends),ct=ot.extends?'\\'+pt.slice(0,-1)+'\\]':pt,ut=new RegExp('(?:^|[^.#[:])'+ct+'($|[.:[\\s>+~])'),mt=Me.get(ot).styleRules,yt=this._elementKeyframeTransforms(ot,mt,nt);return Pe.elementStyles(ot,mt,function(ft){it.applyProperties(ft,lt),te||I(ft)||!ft.cssText||(it.applyKeyframeTransforms(ft,yt),it._scopeSelector(ft,ut,pt,nt))})}_elementKeyframeTransforms(ot,lt,nt){let it=lt._keyframes,dt={};if(!te&&it)for(let pt=0,ct=it[pt];pt<it.length;ct=it[++pt])this._scopeKeyframes(ct,nt),dt[ct.keyframesName]=this._keyframesRuleTransformer(ct);return dt}_keyframesRuleTransformer(ot){return function(lt){return lt.replace(ot.keyframesNameRx,ot.transformedKeyframesName)}}_scopeKeyframes(ot,lt){ot.keyframesNameRx=new RegExp(ot.keyframesName,'g'),ot.transformedKeyframesName=ot.keyframesName+'-'+lt,ot.transformedSelector=ot.transformedSelector||ot.selector,ot.selector=ot.transformedSelector.replace(ot.keyframesName,ot.transformedKeyframesName)}_scopeSelector(ot,lt,nt,it){ot.transformedSelector=ot.transformedSelector||ot.selector;let dt=ot.transformedSelector,pt='.'+it,ct=dt.split(',');for(let yt,ut=0,mt=ct.length;ut<mt&&(yt=ct[ut]);ut++)ct[ut]=yt.match(lt)?yt.replace(nt,pt):pt+' '+yt;ot.selector=ct.join(',')}applyElementScopeSelector(ot,lt,nt){let it=ot.getAttribute('class')||'',dt=it;nt&&(dt=it.replace(new RegExp('\\s*'+ke+'\\s*'+nt+'\\s*','g'),' ')),dt+=(dt?' ':'')+ke+' '+lt,it!==dt&&k(ot,dt)}applyElementStyle(ot,lt,nt,it){let dt=it?it.textContent||'':this.transformStyles(ot,lt,nt),pt=Me.get(ot),ct=pt.customStyle;return ct&&!te&&ct!==it&&(ct._useCount--,0>=ct._useCount&&ct.parentNode&&ct.parentNode.removeChild(ct)),te?pt.customStyle?(pt.customStyle.textContent=dt,it=pt.customStyle):dt&&(it=O(dt,nt,ot.shadowRoot,pt.placeholder)):it?!it.parentNode&&P(it,null,pt.placeholder):dt&&(it=O(dt,nt,null,pt.placeholder)),it&&(it._useCount=it._useCount||0,pt.customStyle!=it&&it._useCount++,pt.customStyle=it),De&&(it.textContent=it.textContent),it}applyCustomStyle(ot,lt){let nt=A(ot),it=this;ot.textContent=N(nt,function(dt){let pt=dt.cssText=dt.parsedCssText;dt.propertyInfo&&dt.propertyInfo.cssText&&(pt=E(pt),dt.cssText=it.valueForProperties(pt,lt))})}}var Fe=new Ue;let qe={};const He=window.customElements;if(He&&!te){const ot=He.define;He.define=function(lt,nt,it){return qe[lt]=M(lt),ot.call(He,lt,nt,it)}}let Be=function(){};if(!te){let ot=pt=>{return pt.classList&&!pt.classList.contains(Pe.SCOPE_NAME)||pt instanceof window.SVGElement&&(!pt.hasAttribute('class')||0>pt.getAttribute('class').indexOf(Pe.SCOPE_NAME))},lt=pt=>{for(let ut,ct=0;ct<pt.length;ct++)if(ut=pt[ct],ut.target!==document.documentElement&&ut.target!==document.head){for(let yt,mt=0;mt<ut.addedNodes.length;mt++)if(yt=ut.addedNodes[mt],ot(yt)){let ft=yt.getRootNode();if(ft.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let St=ft.host;if(St){let{is:ht}=U(St);Pe.dom(yt,ht)}}}for(let yt,mt=0;mt<ut.removedNodes.length;mt++)if(yt=ut.removedNodes[mt],yt.nodeType===Node.ELEMENT_NODE){let ft;if(yt.classList?ft=Array.from(yt.classList):yt.hasAttribute('class')&&(ft=yt.getAttribute('class').split(/\s+/)),void 0!=ft){let St=ft.indexOf(Pe.SCOPE_NAME);if(0<=St){let ht=ft[St+1];ht&&Pe.dom(yt,ht,!0)}}}}},nt=new MutationObserver(lt),it=pt=>{nt.observe(pt,{childList:!0,subtree:!0})},dt=window.customElements&&!window.customElements.flush;if(dt)it(document);else{let pt=()=>{it(document.body)};window.HTMLImports?window.HTMLImports.whenReady(pt):requestAnimationFrame(function(){if('loading'===document.readyState){let ct=function(){pt(),document.removeEventListener('readystatechange',ct)};document.addEventListener('readystatechange',ct)}else pt()})}Be=function(){lt(nt.takeRecords())}}const je={},We=Promise.resolve();let Ve=null,Ye=window.HTMLImports&&window.HTMLImports.whenReady||null,Ge;const Xe='__processedByShadyCSS',ze='__seenByShadyCSS';let $e=null,Je=null;class Ze{constructor(){this.customStyles=[],this.enqueued=!1}enqueueDocumentValidation(){this.enqueued||!Je||(this.enqueued=!0,V(Je))}addCustomStyle(ot){ot[ze]||(ot[ze]=!0,this.customStyles.push(ot),this.enqueueDocumentValidation())}getStyleForCustomStyle(ot){let lt;return lt=ot.getStyle?ot.getStyle():ot,lt}findStyles(){let ot=this.customStyles;for(let nt,lt=0;lt<ot.length;lt++)if(nt=ot[lt],!nt[Xe]){let it=this.getStyleForCustomStyle(nt);if(it){nt[Xe]=!0;let dt=it.__appliedElement;if(dt)for(let ct,pt=0;pt<it.attributes.length;pt++)ct=it.attributes[pt],dt.setAttribute(ct.name,ct.value);$e&&$e(dt||it)}}}}Ze.prototype.addCustomStyle=Ze.prototype.addCustomStyle,Ze.prototype.getStyleForCustomStyle=Ze.prototype.getStyleForCustomStyle,Ze.prototype.findStyles=Ze.prototype.findStyles,Object.defineProperties(Ze.prototype,{transformCallback:{get(){return $e},set(ot){$e=ot}},validateCallback:{get(){return Je},set(ot){let lt=!1;Je||(lt=!0),Je=ot,lt&&this.enqueueDocumentValidation()}}});const Qe=new class{constructor(ot=100){this.cache={},this.typeMax=ot}_validate(ot,lt,nt){for(let dt,it=0;it<nt.length;it++)if(dt=nt[it],ot.properties[dt]!==lt[dt])return!1;return!0}store(ot,lt,nt,it){let dt=this.cache[ot]||[];dt.push({properties:lt,styleElement:nt,scopeSelector:it}),dt.length>this.typeMax&&dt.shift(),this.cache[ot]=dt}fetch(ot,lt,nt){let it=this.cache[ot];if(it)for(let pt,dt=it.length-1;0<=dt;dt--)if(pt=it[dt],this._validate(pt,lt,nt))return pt}};class et{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement;let ot=new G;ot.rules=[],this._documentOwnerStyleInfo=Me.set(document.documentElement,new Me(ot)),this._elementsHaveApplied=!1,this._applyShim=null,this._customStyleInterface=null,V(()=>{this._ensure()})}flush(){Be()}_generateScopeSelector(ot){let lt=this._scopeCounter[ot]=(this._scopeCounter[ot]||0)+1;return`${ot}-${lt}`}getStyleAst(ot){return A(ot)}styleAstToString(ot){return N(ot)}_gatherStyles(ot){let lt=ot.content.querySelectorAll('style'),nt=[];for(let dt,it=0;it<lt.length;it++)dt=lt[it],nt.push(dt.textContent),dt.parentNode.removeChild(dt);return nt.join('').trim()}_getCssBuild(ot){let lt=ot.content.querySelector('style');return lt?lt.getAttribute('css-build')||'':''}prepareTemplate(ot,lt,nt){if(!ot._prepared){ot._prepared=!0,ot.name=lt,ot.extends=nt,je[lt]=ot;let it=this._getCssBuild(ot),dt=this._gatherStyles(ot),pt={is:lt,extends:nt,__cssBuild:it};te||Pe.dom(ot.content,lt),this._ensure();let ct=this._applyShim.detectMixin(dt),ut=d(dt);ct&&re&&this._applyShim.transformRules(ut,lt),ot._styleAst=ut,ot._cssBuild=it;let mt=[];if(re||(mt=Fe.decorateStyles(ot._styleAst,pt)),!mt.length||re){let yt=te?ot.content:null,ft=qe[lt],St=this._generateStaticStyle(pt,ot._styleAst,yt,ft);ot._style=St}ot._ownPropertyNames=mt}}_generateStaticStyle(ot,lt,nt,it){let dt=Pe.elementStyles(ot,lt);if(dt.length)return O(dt,ot.is,nt,it)}_prepareHost(ot){let pt,ct,ut,{is:lt,extends:nt}=U(ot),it=qe[lt],dt=je[lt];return dt&&(pt=dt._styleAst,ct=dt._ownPropertyNames,ut=dt._cssBuild),Me.set(ot,new Me(pt,it,ct,lt,nt,ut))}_ensureApplyShim(){this._applyShim||(window.ShadyCSS.ApplyShim?(this._applyShim=window.ShadyCSS.ApplyShim,this._applyShim.invalidCallback=q):this._applyShim={['detectMixin'](){return!1},['transformRule'](){},['transformRules'](){}})}_ensureCustomStyleInterface(){this._customStyleInterface||(window.ShadyCSS.CustomStyleInterface?(this._customStyleInterface=window.ShadyCSS.CustomStyleInterface,this._customStyleInterface.transformCallback=ot=>{this.transformCustomStyleForDocument(ot)},this._customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{(this._customStyleInterface.enqueued||this._elementsHaveApplied)&&this.flushCustomStyles()})}):this._customStyleInterface={['findStyles'](){},enqueued:!1,['getStyleForCustomStyle'](){return null}})}_ensure(){this._ensureApplyShim(),this._ensureCustomStyleInterface()}flushCustomStyles(){if(this._ensure(),this._customStyleInterface.findStyles(),!!this._customStyleInterface.enqueued){let ot=this._customStyleInterface.customStyles;re?this._revalidateCustomStyleApplyShim(ot):(this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),this._applyCustomStyles(ot)),this._customStyleInterface.enqueued=!1,this._elementsHaveApplied&&!re&&this.styleDocument()}}styleElement(ot,lt){let{is:nt}=U(ot),it=Me.get(ot);if(it||(it=this._prepareHost(ot)),this._isRootOwner(ot)||(this._elementsHaveApplied=!0),lt&&(it.overrideStyleProperties=it.overrideStyleProperties||{},Object.assign(it.overrideStyleProperties,lt)),!re)this._updateProperties(ot,it),it.ownStylePropertyNames&&it.ownStylePropertyNames.length&&this._applyStyleProperties(ot,it);else{it.overrideStyleProperties&&Y(ot,it.overrideStyleProperties);let dt=je[nt];if(!dt&&!this._isRootOwner(ot))return;if(dt&&dt._style&&!K(dt)){if(B(dt)||(this._ensure(),this._applyShim.transformRules(dt._styleAst,nt),dt._style.textContent=Pe.elementStyles(ot,it.styleRules),W(dt)),te){let pt=ot.shadowRoot;if(pt){let ct=pt.querySelector('style');ct.textContent=Pe.elementStyles(ot,it.styleRules)}}it.styleRules=dt._styleAst}}}_styleOwnerForNode(ot){let lt=ot.getRootNode(),nt=lt.host;return nt?Me.get(nt)?nt:this._styleOwnerForNode(nt):this._documentOwner}_isRootOwner(ot){return ot===this._documentOwner}_applyStyleProperties(ot,lt){let nt=U(ot).is,it=Qe.fetch(nt,lt.styleProperties,lt.ownStylePropertyNames),dt=it&&it.scopeSelector,pt=it?it.styleElement:null,ct=lt.scopeSelector;lt.scopeSelector=dt||this._generateScopeSelector(nt);let ut=Fe.applyElementStyle(ot,lt.styleProperties,lt.scopeSelector,pt);return te||Fe.applyElementScopeSelector(ot,lt.scopeSelector,ct),it||Qe.store(nt,lt.styleProperties,ut,lt.scopeSelector),ut}_updateProperties(ot,lt){let nt=this._styleOwnerForNode(ot),it=Me.get(nt),dt=it.styleProperties,pt=Object.create(dt||null),ct=Fe.hostAndRootPropertiesForScope(ot,lt.styleRules),ut=Fe.propertyDataFromStyles(it.styleRules,ot),mt=ut.properties;Object.assign(pt,ct.hostProps,mt,ct.rootProps),this._mixinOverrideStyles(pt,lt.overrideStyleProperties),Fe.reify(pt),lt.styleProperties=pt}_mixinOverrideStyles(ot,lt){for(let nt in lt){let it=lt[nt];(it||0===it)&&(ot[nt]=it)}}styleDocument(ot){this.styleSubtree(this._documentOwner,ot)}styleSubtree(ot,lt){(ot.shadowRoot||this._isRootOwner(ot))&&this.styleElement(ot,lt);let nt=ot.shadowRoot,it=nt&&(nt.children||nt.childNodes);if(it)for(let ct,pt=0;pt<it.length;pt++)ct=it[pt],this.styleSubtree(ct);let dt=ot.children||ot.childNodes;if(dt)for(let ct,pt=0;pt<dt.length;pt++)ct=dt[pt],this.styleSubtree(ct)}_revalidateCustomStyleApplyShim(ot){for(let lt=0;lt<ot.length;lt++){let nt=ot[lt],it=this._customStyleInterface.getStyleForCustomStyle(nt);it&&this._revalidateApplyShim(it)}}_applyCustomStyles(ot){for(let lt=0;lt<ot.length;lt++){let nt=ot[lt],it=this._customStyleInterface.getStyleForCustomStyle(nt);it&&Fe.applyCustomStyle(it,this._documentOwnerStyleInfo.styleProperties)}}transformCustomStyleForDocument(ot){let lt=A(ot);T(lt,nt=>{te?Pe.normalizeRootSelector(nt):Pe.documentRule(nt),re&&(this._ensure(),this._applyShim.transformRule(nt))}),re?ot.textContent=N(lt):this._documentOwnerStyleInfo.styleRules.rules.push(lt)}_revalidateApplyShim(ot){if(re){let lt=A(ot);this._ensure(),this._applyShim.transformRules(lt),ot.textContent=N(lt)}}getComputedStyleValue(ot,lt){let nt;if(!re){let it=Me.get(ot)||Me.get(this._styleOwnerForNode(ot));nt=it.styleProperties[lt]}return nt=nt||window.getComputedStyle(ot).getPropertyValue(lt),nt.trim()}setElementClass(ot,lt){let nt=ot.getRootNode(),it=lt?lt.split(/\s/):[],dt=nt.host&&nt.host.localName;if(!dt){var pt=ot.getAttribute('class');if(pt){let ct=pt.split(/\s/);for(let ut=0;ut<ct.length;ut++)if(ct[ut]===Pe.SCOPE_NAME){dt=ct[ut+1];break}}}if(dt&&it.push(Pe.SCOPE_NAME,dt),!re){let ct=Me.get(ot);ct&&ct.scopeSelector&&it.push(Fe.XSCOPE_NAME,ct.scopeSelector)}k(ot,it.join(' '))}_styleInfoForNode(ot){return Me.get(ot)}}et.prototype.flush=et.prototype.flush,et.prototype.prepareTemplate=et.prototype.prepareTemplate,et.prototype.styleElement=et.prototype.styleElement,et.prototype.styleDocument=et.prototype.styleDocument,et.prototype.styleSubtree=et.prototype.styleSubtree,et.prototype.getComputedStyleValue=et.prototype.getComputedStyleValue,et.prototype.setElementClass=et.prototype.setElementClass,et.prototype._styleInfoForNode=et.prototype._styleInfoForNode,et.prototype.transformCustomStyleForDocument=et.prototype.transformCustomStyleForDocument,et.prototype.getStyleAst=et.prototype.getStyleAst,et.prototype.styleAstToString=et.prototype.styleAstToString,et.prototype.flushCustomStyles=et.prototype.flushCustomStyles,Object.defineProperties(et.prototype,{nativeShadow:{get(){return te}},nativeCss:{get(){return re}}});const tt=new et;let rt,st;window.ShadyCSS&&(rt=window.ShadyCSS.ApplyShim,st=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:tt,prepareTemplate(ot,lt,nt){tt.flushCustomStyles(),tt.prepareTemplate(ot,lt,nt)},styleSubtree(ot,lt){tt.flushCustomStyles(),tt.styleSubtree(ot,lt)},styleElement(ot){tt.flushCustomStyles(),tt.styleElement(ot)},styleDocument(ot){tt.flushCustomStyles(),tt.styleDocument(ot)},getComputedStyleValue(ot,lt){return tt.getComputedStyleValue(ot,lt)},nativeCss:re,nativeShadow:te},rt&&(window.ShadyCSS.ApplyShim=rt),st&&(window.ShadyCSS.CustomStyleInterface=st),function(){'use strict';if(customElements&&customElements.polyfillWrapFlushCallback){function lt(){if(nt){let dt=nt;return nt=null,dt(),!0}}let nt,it=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(dt){nt=dt,it(lt)}),HTMLImports.whenReady=function(dt){it(function(){lt()?HTMLImports.whenReady(dt):dt()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent('WebComponentsReady'))})})}(window.WebComponents),function(){var lt=document.createElement('style');lt.textContent='body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n';var nt=document.querySelector('head');nt.insertBefore(lt,nt.firstChild)}(window.WebComponents)})();
|
|
//# sourceMappingURL=webcomponents-hi.js.map
|