Rebuild WC from ShadyCSS update

This commit is contained in:
Daniel Freedman
2017-07-17 10:55:09 -07:00
parent bb644a6f25
commit b580c970fa
6 changed files with 99 additions and 100 deletions

View File

@@ -135,37 +135,37 @@ $c=window.Document.prototype.createElementNS,Zc=window.Document.prototype.import
"innerHTML"),ya=window.Element.prototype.getAttribute,mb=window.Element.prototype.setAttribute,ob=window.Element.prototype.removeAttribute,da=window.Element.prototype.getAttributeNS,nb=window.Element.prototype.setAttributeNS,pb=window.Element.prototype.removeAttributeNS,rb=window.Element.prototype.insertAdjacentElement,Qc=window.Element.prototype.prepend,Rc=window.Element.prototype.append,Tc=window.Element.prototype.before,Uc=window.Element.prototype.after,Vc=window.Element.prototype.replaceWith,
Wc=window.Element.prototype.remove,dd=window.HTMLElement,va=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),qb=window.HTMLElement.prototype.insertAdjacentElement,vb=new function(){},oa=window.customElements;if(!oa||oa.forcePolyfill||"function"!=typeof oa.define||"function"!=typeof oa.get){var Y=new v;cd(Y);Yc(Y);Xc(Y);Pc(Y);document.__CE_hasRegistry=!0;var Id=new q(Y);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Id})}var G={STYLE_RULE:1,
ca:7,MEDIA_RULE:4,ma:1E3},D={Za:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,va:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,za:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,fb:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,lb:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,eb:/^@[^\s]*keyframes/,Aa:/\s+/g},x=!(window.ShadyDOM&&window.ShadyDOM.inUse);if(window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss)var z=window.ShadyCSS.nativeCss;else window.ShadyCSS?(uc(window.ShadyCSS),
window.ShadyCSS=void 0):uc(window.WebComponents&&window.WebComponents.flags);var pa=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};{])+)|\{([^\}]*)\}(?:(?=[;\s}])|$))/gi,qa=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Jd=/(--[\w-]+)\s*([:,;)]|$)/gi,Kd=/(animation\s*:)|(animation-name\s*:)/,xd=/@media[^(]*(\([^)]*\))/,Ld=/\{[^}]*\}/g,M=null;r.prototype.a=function(a,b,c){a.__styleScoped?a.__styleScoped=null:this.i(a,b||"",c)};r.prototype.i=function(a,b,c){a.nodeType===
Node.ELEMENT_NODE&&this.s(a,b,c);if(a="template"===a.localName?(a.content||a.pb).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this.i(a[d],b,c)};r.prototype.s=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute(Md);c?d&&(b=d.replace("style-scope","").replace(b,""),la(a,b)):la(a,(d?d+" ":"")+"style-scope "+b)}};r.prototype.b=function(a,b,c){var d=
a.__cssBuild;x||"shady"===d?b=R(b,c):(a=N(a),b=this.F(b,a.is,a.T,c)+"\n\n");return b.trim()};r.prototype.F=function(a,b,c,d){var e=this.f(b,c);b=this.h(b);var f=this;return R(a,function(a){a.c||(f.M(a,b,e),a.c=!0);d&&d(a,b,e)})};r.prototype.h=function(a){return a?Nd+a:""};r.prototype.f=function(a,b){return b?"[is="+a+"]":a};r.prototype.M=function(a,b,c){this.j(a,this.g,b,c)};r.prototype.j=function(a,b,c,d){a.selector=a.v=this.l(a,b,c,d)};r.prototype.l=function(a,b,c,d){var e=a.selector.split(Ec);
if(!vc(a)){a=0;for(var f=e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(Ec)};r.prototype.g=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(Od,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(Pd,db+" $1");return a=a.replace(Qd,function(a,g,h){e||(a=d.A(h,g,b,c),e=e||a.stop,g=a.Ya,h=a.value);return g+h})};r.prototype.A=function(a,b,c,d){var e=a.indexOf(eb);0<=a.indexOf(db)?a=this.I(a,d):0!==e&&(a=c?this.m(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;
c&&(a=a.replace(Rd,function(a,b){return" > "+b}))}a=a.replace(Sd,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,Ya:b,stop:f}};r.prototype.m=function(a,b){a=a.split(Fc);a[0]+=b;return a.join(Fc)};r.prototype.I=function(a,b){var c=a.match(Gc);return(c=c&&c[2].trim()||"")?c[0].match(Hc)?a.replace(Gc,function(a,c,f){return b+f}):c.split(Hc)[0]===b?c:Td:a.replace(db,b)};r.prototype.G=function(a){a.selector=a.parsedSelector;this.o(a);this.j(a,this.B)};r.prototype.o=function(a){a.selector===
Ud&&(a.selector="html")};r.prototype.B=function(a){return a.match(eb)?this.g(a,Ic):this.m(a.trim(),Ic)};hb.Object.defineProperties(r.prototype,{c:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Od=/:(nth[-\w]+)\(([^)]+)\)/,Ic=":not(.style-scope)",Ec=",",Qd=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Hc=/[[.:#*]/,db=":host",Ud=":root",eb="::slotted",Pd=new RegExp("^("+eb+")"),Gc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Rd=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Sd=
/(.*):dir\((?:(ltr|rtl))\)/,Nd=".",Fc=":",Md="class",Td="should_not_match",u=new r;t.get=function(a){return a?a.__styleInfo:null};t.set=function(a,b){return a.__styleInfo=b};t.prototype.c=function(){return this.D};t.prototype._getStyleRules=t.prototype.c;var Jc=function(a){return a.matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}(window.Element.prototype),Vd=navigator.userAgent.match("Trident");p.prototype.M=function(a){var b=this,
c={},d=[],e=0;S(a,function(a){b.c(a);a.index=e++;b.G(a.u.cssText,c)},function(a){d.push(a)});a.b=d;a=[];for(var f in c)a.push(f);return a};p.prototype.c=function(a){if(!a.u){var b={},c={};this.b(a,c)&&(b.C=c,a.rules=null);b.cssText=this.F(a);a.u=b}};p.prototype.b=function(a,b){var c=a.u;if(c){if(c.C)return Object.assign(b,c.C),!0}else{c=a.parsedCssText;for(var d;a=pa.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}};p.prototype.F=function(a){return this.I(a.parsedCssText)};
p.prototype.I=function(a){return a.replace(Ld,"").replace(pa,"")};p.prototype.G=function(a,b){for(var c;c=Jd.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};p.prototype.$=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c<b.length;c++)d=b[c],a[d]=this.a(a[d],a)};p.prototype.a=function(a,b){if(a)if(0<=a.indexOf(";"))a=this.f(a,b);else{var c=this;a=xc(a,function(a,e,f,g){if(!e)return a+g;(e=c.a(b[e],b))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=c.a(b[f]||f,b)||f;return a+(e||"")+
g})}return a&&a.trim()||""};p.prototype.f=function(a,b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){qa.lastIndex=0;if(e=qa.exec(d))d=this.a(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e);f=f.trim();f=this.a(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||""}return a.join(";")};p.prototype.B=function(a,b){var c="";a.u||this.c(a);a.u.cssText&&(c=this.f(a.u.cssText,b));a.cssText=c};p.prototype.A=function(a,b){var c=a.cssText,d=a.cssText;
null==a.xa&&(a.xa=Kd.test(c));if(a.xa)if(null==a.X){a.X=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.X.push(e))}else{for(e=0;e<a.X.length;++e)d=b[a.X[e]],c=d(c);d=c}a.cssText=d};p.prototype.Z=function(a,b){var c={},d=this,e=[];S(a,function(a){a.u||d.c(a);var f=a.v||a.parsedSelector;b&&a.u.C&&f&&Jc.call(b,f)&&(d.b(a,c),a=a.index,f=parseInt(a/32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{C:c,key:e}};p.prototype.ba=function(a,b,c,d){b.u||this.c(b);if(b.u.C){var e=N(a);a=e.is;e=e.T;e=a?u.f(a,e):"html";
var f=b.parsedSelector,g=":host > *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));"shadow"===c&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)c=e,h&&(x&&!b.v&&(b.v=u.l(b,u.g,u.h(a),e)),c=b.v||e),d({kb:c,cb:h,rb:g})}};p.prototype.Y=function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;S(b,function(b){e.ba(a,b,f,function(f){Jc.call(a.qb||a,f.kb)&&(f.cb?e.b(b,c):e.b(b,d))})},null,!0);return{ib:d,bb:c}};p.prototype.aa=function(a,
b,c){var d=this,e=N(a),f=u.f(e.is,e.T),g=new RegExp("(?:^|[^.#[:])"+(a.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=t.get(a).D;var h=this.h(e,c);return u.b(a,e,function(a){d.B(a,b);x||vc(a)||!a.cssText||(d.A(a,h),d.l(a,g,f,c))})};p.prototype.h=function(a,b){a=a.b;var c={};if(!x&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this.j(e,b),c[e.keyframesName]=this.i(e);return c};p.prototype.i=function(a){return function(b){return b.replace(a.f,a.a)}};p.prototype.j=function(a,b){a.f=new RegExp(a.keyframesName,
"g");a.a=a.keyframesName+"-"+b;a.v=a.v||a.selector;a.selector=a.v.replace(a.keyframesName,a.a)};p.prototype.l=function(a,b,c,d){a.v=a.v||a.selector;d="."+d;for(var e=a.v.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};p.prototype.o=function(a,b,c){var d=a.getAttribute("class")||"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+b;d!==e&&la(a,e)};p.prototype.s=function(a,b,c,d){b=d?d.textContent||
"":this.aa(a,b,c);var e=t.get(a),f=e.a;f&&!x&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));x?e.a?(e.a.textContent=b,d=e.a):b&&(d=Wa(b,c,a.shadowRoot,e.b)):d?d.parentNode||(Vd&&-1<b.indexOf("@media")&&(d.textContent=b),wc(d,null,e.b)):b&&(d=Wa(b,c,null,e.b));d&&(d._useCount=d._useCount||0,e.a!=d&&d._useCount++,e.a=d);return d};p.prototype.m=function(a,b){var c=ka(a),d=this;a.textContent=R(c,function(a){var c=a.cssText=a.parsedCssText;a.u&&a.u.cssText&&(c=c.replace(D.va,
"").replace(D.za,""),a.cssText=d.f(c,b))})};hb.Object.defineProperties(p.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var J=new p,fb={},ra=window.customElements;if(ra&&!x){var Wd=ra.define;ra.define=function(a,b,c){var d=document.createComment(" Shady DOM styles for "+a+" "),e=document.head;e.insertBefore(d,(M?M.nextSibling:null)||e.firstChild);M=d;fb[a]=d;return Wd.call(ra,a,b,c)}}aa.prototype.a=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.C[e]!==
b[e])return!1}return!0};aa.prototype.b=function(a,b,c,d){var e=this.cache[a]||[];e.push({C:b,styleElement:c,w:d});e.length>this.c&&e.shift();this.cache[a]=e};aa.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this.a(e,b,c))return e}};if(!x){var Kc=new MutationObserver(yc),Lc=function(a){Kc.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Lc(document);else{var gb=function(){Lc(document.body)};
window.HTMLImports?window.HTMLImports.whenReady(gb):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){gb();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else gb()})}jb=function(){yc(Kc.takeRecords())}}var ma={},Ad=Promise.resolve(),Xa=null,Ac=window.HTMLImports&&window.HTMLImports.whenReady||null,Ya,sa=null,Z=null;C.prototype.wa=function(){!this.enqueued&&Z&&(this.enqueued=!0,ib(Z))};C.prototype.b=function(a){a.__seenByShadyCSS||
(a.__seenByShadyCSS=!0,this.customStyles.push(a),this.wa())};C.prototype.a=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};C.prototype.c=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.a(c);if(d){var e=d.__appliedElement;if(e)for(var f=0;f<d.attributes.length;f++){var g=d.attributes[f];e.setAttribute(g.name,g.value)}d=e||d;sa&&sa(d);c.__shadyCSSCachedStyle=d}}}return a};C.prototype.addCustomStyle=
C.prototype.b;C.prototype.getStyleForCustomStyle=C.prototype.a;C.prototype.processStyles=C.prototype.c;Object.defineProperties(C.prototype,{transformCallback:{get:function(){return sa},set:function(a){sa=a}},validateCallback:{get:function(){return Z},set:function(a){var b=!1;Z||(b=!0);Z=a;b&&this.wa()}}});var Mc=new aa;k.prototype.A=function(){jb()};k.prototype.Y=function(a){var b=this.m[a]=(this.m[a]||0)+1;return a+"-"+b};k.prototype.Ha=function(a){return ka(a)};k.prototype.Ja=function(a){return R(a)};
k.prototype.M=function(a){a=a.content.querySelectorAll("style");for(var b=[],c=0;c<a.length;c++){var d=a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};k.prototype.$=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||"":""};k.prototype.prepareTemplate=function(a,b,c){if(!a.f){a.f=!0;a.name=b;a.extends=c;ma[b]=a;var d=this.$(a),e=this.M(a);c={is:b,extends:c,nb:d};x||u.a(a.content,b);this.c();var f=qa.test(e)||pa.test(e);qa.lastIndex=
0;pa.lastIndex=0;e=Va(e);f&&z&&this.a&&this.a.transformRules(e,b);a._styleAst=e;a.g=d;d=[];z||(d=J.M(a._styleAst));if(!d.length||z)b=this.Z(c,a._styleAst,x?a.content:null,fb[b]),a.a=b;a.c=d}};k.prototype.Z=function(a,b,c,d){b=u.b(a,b);if(b.length)return Wa(b,a.is,c,d)};k.prototype.ba=function(a){var b=N(a),c=b.is;b=b.T;var d=fb[c];c=ma[c];if(c){var e=c._styleAst;var f=c.c}return t.set(a,new t(e,d,f,0,b))};k.prototype.F=function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,
this.a.invalidCallback=yd)};k.prototype.G=function(){var a=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(b){a.s(b)},this.b.validateCallback=function(){requestAnimationFrame(function(){(a.b.enqueued||a.i)&&a.f()})})};k.prototype.c=function(){this.F();this.G()};k.prototype.f=function(){this.c();if(this.b){var a=this.b.processStyles();this.b.enqueued&&(z?this.Fa(a):(this.o(this.g,this.h),this.B(a)),
this.b.enqueued=!1,this.i&&!z&&this.styleDocument())}};k.prototype.styleElement=function(a,b){var c=N(a).is,d=t.get(a);d||(d=this.ba(a));this.j(a)||(this.i=!0);b&&(d.L=d.L||{},Object.assign(d.L,b));if(z){if(d.L){b=d.L;for(var e in b)null===e?a.style.removeProperty(e):a.style.setProperty(e,b[e])}if(((e=ma[c])||this.j(a))&&e&&e.a&&!zc(e)){if(zc(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)this.c(),this.a&&this.a.transformRules(e._styleAst,c),e.a.textContent=u.b(a,d.D),zd(e);x&&(c=a.shadowRoot)&&
(c.querySelector("style").textContent=u.b(a,d.D));d.D=e._styleAst}}else this.o(a,d),d.ja&&d.ja.length&&this.I(a,d)};k.prototype.l=function(a){return(a=a.getRootNode().host)?t.get(a)?a:this.l(a):this.g};k.prototype.j=function(a){return a===this.g};k.prototype.I=function(a,b){var c=N(a).is,d=Mc.fetch(c,b.H,b.ja),e=d?d.styleElement:null,f=b.w;b.w=d&&d.w||this.Y(c);e=J.s(a,b.H,b.w,e);x||J.o(a,b.w,f);d||Mc.b(c,b.H,e,b.w)};k.prototype.o=function(a,b){var c=this.l(a),d=t.get(c);c=Object.create(d.H||null);
var e=J.Y(a,b.D);a=J.Z(d.D,a).C;Object.assign(c,e.bb,a,e.ib);this.aa(c,b.L);J.$(c);b.H=c};k.prototype.aa=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};k.prototype.styleDocument=function(a){this.styleSubtree(this.g,a)};k.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;(c||this.j(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);else if(a=a.children||a.childNodes)for(b=0;b<a.length;b++)this.styleSubtree(a[b])};k.prototype.Fa=
function(a){for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);c&&this.Ea(c)}};k.prototype.B=function(a){for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);c&&J.m(c,this.h.H)}};k.prototype.s=function(a){var b=this,c=ka(a);S(c,function(a){x?u.o(a):u.G(a);z&&(b.c(),b.a&&b.a.transformRule(a))});z?a.textContent=R(c):this.h.D.rules.push(c)};k.prototype.Ea=function(a){if(z&&this.a){var b=ka(a);this.c();this.a.transformRules(b);a.textContent=R(b)}};k.prototype.getComputedStyleValue=
function(a,b){var c;z||(c=(t.get(a)||t.get(this.l(a))).H[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};k.prototype.Ia=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===u.c){c=d[e+1];break}}}c&&b.push(u.c,c);z||(c=t.get(a))&&c.w&&b.push(J.g,c.w);la(a,b.join(" "))};k.prototype.Ga=function(a){return t.get(a)};k.prototype.flush=k.prototype.A;
k.prototype.prepareTemplate=k.prototype.prepareTemplate;k.prototype.styleElement=k.prototype.styleElement;k.prototype.styleDocument=k.prototype.styleDocument;k.prototype.styleSubtree=k.prototype.styleSubtree;k.prototype.getComputedStyleValue=k.prototype.getComputedStyleValue;k.prototype.setElementClass=k.prototype.Ia;k.prototype._styleInfoForNode=k.prototype.Ga;k.prototype.transformCustomStyleForDocument=k.prototype.s;k.prototype.getStyleAst=k.prototype.Ha;k.prototype.styleAstToString=k.prototype.Ja;
k.prototype.flushCustomStyles=k.prototype.f;Object.defineProperties(k.prototype,{nativeShadow:{get:function(){return x}},nativeCss:{get:function(){return z}}});var F=new k;if(window.ShadyCSS){var Nc=window.ShadyCSS.ApplyShim;var Oc=window.ShadyCSS.CustomStyleInterface}window.ShadyCSS={ScopingShim:F,prepareTemplate:function(a,b,c){F.f();F.prepareTemplate(a,b,c)},styleSubtree:function(a,b){F.f();F.styleSubtree(a,b)},styleElement:function(a){F.f();F.styleElement(a)},styleDocument:function(a){F.f();F.styleDocument(a)},
getComputedStyleValue:function(a,b){return F.getComputedStyleValue(a,b)},nativeCss:z,nativeShadow:x};Nc&&(window.ShadyCSS.ApplyShim=Nc);Oc&&(window.ShadyCSS.CustomStyleInterface=Oc);(function(){var a=window.customElements,b=window.HTMLImports;window.WebComponents=window.WebComponents||{};if(a&&a.polyfillWrapFlushCallback){var c,d=function(){if(c){var a=c;c=null;a();return!0}},e=b.whenReady;a.polyfillWrapFlushCallback(function(a){c=a;e(d)});b.whenReady=function(a){e(function(){d()?b.whenReady(a):a()})}}b.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=
!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})})})();(function(){var a=document.createElement("style");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var b=document.querySelector("head");b.insertBefore(a,b.firstChild)})()})();}).call(this);
window.ShadyCSS=void 0):uc(window.WebComponents&&window.WebComponents.flags);var pa=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,qa=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Jd=/(--[\w-]+)\s*([:,;)]|$)/gi,Kd=/(animation\s*:)|(animation-name\s*:)/,xd=/@media\s(.*)/,Ld=/\{[^}]*\}/g,M=null;r.prototype.a=function(a,b,c){a.__styleScoped?a.__styleScoped=null:this.i(a,b||"",c)};r.prototype.i=function(a,b,c){a.nodeType===Node.ELEMENT_NODE&&
this.s(a,b,c);if(a="template"===a.localName?(a.content||a.pb).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this.i(a[d],b,c)};r.prototype.s=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute(Md);c?d&&(b=d.replace("style-scope","").replace(b,""),la(a,b)):la(a,(d?d+" ":"")+"style-scope "+b)}};r.prototype.b=function(a,b,c){var d=a.__cssBuild;x||
"shady"===d?b=R(b,c):(a=N(a),b=this.F(b,a.is,a.T,c)+"\n\n");return b.trim()};r.prototype.F=function(a,b,c,d){var e=this.f(b,c);b=this.h(b);var f=this;return R(a,function(a){a.c||(f.M(a,b,e),a.c=!0);d&&d(a,b,e)})};r.prototype.h=function(a){return a?Nd+a:""};r.prototype.f=function(a,b){return b?"[is="+a+"]":a};r.prototype.M=function(a,b,c){this.j(a,this.g,b,c)};r.prototype.j=function(a,b,c,d){a.selector=a.v=this.l(a,b,c,d)};r.prototype.l=function(a,b,c,d){var e=a.selector.split(Ec);if(!vc(a)){a=0;for(var f=
e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(Ec)};r.prototype.g=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(Od,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(Pd,db+" $1");return a=a.replace(Qd,function(a,g,h){e||(a=d.A(h,g,b,c),e=e||a.stop,g=a.Ya,h=a.value);return g+h})};r.prototype.A=function(a,b,c,d){var e=a.indexOf(eb);0<=a.indexOf(db)?a=this.I(a,d):0!==e&&(a=c?this.m(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(Rd,function(a,
b){return" > "+b}))}a=a.replace(Sd,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,Ya:b,stop:f}};r.prototype.m=function(a,b){a=a.split(Fc);a[0]+=b;return a.join(Fc)};r.prototype.I=function(a,b){var c=a.match(Gc);return(c=c&&c[2].trim()||"")?c[0].match(Hc)?a.replace(Gc,function(a,c,f){return b+f}):c.split(Hc)[0]===b?c:Td:a.replace(db,b)};r.prototype.G=function(a){a.selector=a.parsedSelector;this.o(a);this.j(a,this.B)};r.prototype.o=function(a){a.selector===Ud&&(a.selector=
"html")};r.prototype.B=function(a){return a.match(eb)?this.g(a,Ic):this.m(a.trim(),Ic)};hb.Object.defineProperties(r.prototype,{c:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Od=/:(nth[-\w]+)\(([^)]+)\)/,Ic=":not(.style-scope)",Ec=",",Qd=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Hc=/[[.:#*]/,db=":host",Ud=":root",eb="::slotted",Pd=new RegExp("^("+eb+")"),Gc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Rd=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Sd=/(.*):dir\((?:(ltr|rtl))\)/,
Nd=".",Fc=":",Md="class",Td="should_not_match",u=new r;t.get=function(a){return a?a.__styleInfo:null};t.set=function(a,b){return a.__styleInfo=b};t.prototype.c=function(){return this.D};t.prototype._getStyleRules=t.prototype.c;var Jc=function(a){return a.matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}(window.Element.prototype),Vd=navigator.userAgent.match("Trident");p.prototype.M=function(a){var b=this,c={},d=[],e=0;S(a,function(a){b.c(a);
a.index=e++;b.G(a.u.cssText,c)},function(a){d.push(a)});a.b=d;a=[];for(var f in c)a.push(f);return a};p.prototype.c=function(a){if(!a.u){var b={},c={};this.b(a,c)&&(b.C=c,a.rules=null);b.cssText=this.F(a);a.u=b}};p.prototype.b=function(a,b){var c=a.u;if(c){if(c.C)return Object.assign(b,c.C),!0}else{c=a.parsedCssText;for(var d;a=pa.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}};p.prototype.F=function(a){return this.I(a.parsedCssText)};p.prototype.I=function(a){return a.replace(Ld,
"").replace(pa,"")};p.prototype.G=function(a,b){for(var c;c=Jd.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};p.prototype.$=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c<b.length;c++)d=b[c],a[d]=this.a(a[d],a)};p.prototype.a=function(a,b){if(a)if(0<=a.indexOf(";"))a=this.f(a,b);else{var c=this;a=xc(a,function(a,e,f,g){if(!e)return a+g;(e=c.a(b[e],b))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=c.a(b[f]||f,b)||f;return a+(e||"")+g})}return a&&a.trim()||""};p.prototype.f=function(a,
b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){qa.lastIndex=0;if(e=qa.exec(d))d=this.a(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e);f=f.trim();f=this.a(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||""}return a.join(";")};p.prototype.B=function(a,b){var c="";a.u||this.c(a);a.u.cssText&&(c=this.f(a.u.cssText,b));a.cssText=c};p.prototype.A=function(a,b){var c=a.cssText,d=a.cssText;null==a.xa&&(a.xa=Kd.test(c));if(a.xa)if(null==
a.X){a.X=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.X.push(e))}else{for(e=0;e<a.X.length;++e)d=b[a.X[e]],c=d(c);d=c}a.cssText=d};p.prototype.Z=function(a,b){var c={},d=this,e=[];S(a,function(a){a.u||d.c(a);var f=a.v||a.parsedSelector;b&&a.u.C&&f&&Jc.call(b,f)&&(d.b(a,c),a=a.index,f=parseInt(a/32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{C:c,key:e}};p.prototype.ba=function(a,b,c,d){b.u||this.c(b);if(b.u.C){var e=N(a);a=e.is;e=e.T;e=a?u.f(a,e):"html";var f=b.parsedSelector,g=":host > *"===f||
"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));"shadow"===c&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)c=e,h&&(x&&!b.v&&(b.v=u.l(b,u.g,u.h(a),e)),c=b.v||e),d({kb:c,cb:h,rb:g})}};p.prototype.Y=function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;S(b,function(b){e.ba(a,b,f,function(f){Jc.call(a.qb||a,f.kb)&&(f.cb?e.b(b,c):e.b(b,d))})},null,!0);return{ib:d,bb:c}};p.prototype.aa=function(a,b,c){var d=this,e=N(a),f=u.f(e.is,
e.T),g=new RegExp("(?:^|[^.#[:])"+(a.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=t.get(a).D;var h=this.h(e,c);return u.b(a,e,function(a){d.B(a,b);x||vc(a)||!a.cssText||(d.A(a,h),d.l(a,g,f,c))})};p.prototype.h=function(a,b){a=a.b;var c={};if(!x&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this.j(e,b),c[e.keyframesName]=this.i(e);return c};p.prototype.i=function(a){return function(b){return b.replace(a.f,a.a)}};p.prototype.j=function(a,b){a.f=new RegExp(a.keyframesName,"g");a.a=a.keyframesName+
"-"+b;a.v=a.v||a.selector;a.selector=a.v.replace(a.keyframesName,a.a)};p.prototype.l=function(a,b,c,d){a.v=a.v||a.selector;d="."+d;for(var e=a.v.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};p.prototype.o=function(a,b,c){var d=a.getAttribute("class")||"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+b;d!==e&&la(a,e)};p.prototype.s=function(a,b,c,d){b=d?d.textContent||"":this.aa(a,b,c);var e=
t.get(a),f=e.a;f&&!x&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));x?e.a?(e.a.textContent=b,d=e.a):b&&(d=Wa(b,c,a.shadowRoot,e.b)):d?d.parentNode||(Vd&&-1<b.indexOf("@media")&&(d.textContent=b),wc(d,null,e.b)):b&&(d=Wa(b,c,null,e.b));d&&(d._useCount=d._useCount||0,e.a!=d&&d._useCount++,e.a=d);return d};p.prototype.m=function(a,b){var c=ka(a),d=this;a.textContent=R(c,function(a){var c=a.cssText=a.parsedCssText;a.u&&a.u.cssText&&(c=c.replace(D.va,"").replace(D.za,
""),a.cssText=d.f(c,b))})};hb.Object.defineProperties(p.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var J=new p,fb={},ra=window.customElements;if(ra&&!x){var Wd=ra.define;ra.define=function(a,b,c){var d=document.createComment(" Shady DOM styles for "+a+" "),e=document.head;e.insertBefore(d,(M?M.nextSibling:null)||e.firstChild);M=d;fb[a]=d;return Wd.call(ra,a,b,c)}}aa.prototype.a=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.C[e]!==b[e])return!1}return!0};
aa.prototype.b=function(a,b,c,d){var e=this.cache[a]||[];e.push({C:b,styleElement:c,w:d});e.length>this.c&&e.shift();this.cache[a]=e};aa.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this.a(e,b,c))return e}};if(!x){var Kc=new MutationObserver(yc),Lc=function(a){Kc.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Lc(document);else{var gb=function(){Lc(document.body)};window.HTMLImports?
window.HTMLImports.whenReady(gb):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){gb();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else gb()})}jb=function(){yc(Kc.takeRecords())}}var ma={},Ad=Promise.resolve(),Xa=null,Ac=window.HTMLImports&&window.HTMLImports.whenReady||null,Ya,sa=null,Z=null;C.prototype.wa=function(){!this.enqueued&&Z&&(this.enqueued=!0,ib(Z))};C.prototype.b=function(a){a.__seenByShadyCSS||
(a.__seenByShadyCSS=!0,this.customStyles.push(a),this.wa())};C.prototype.a=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};C.prototype.c=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.a(c);d&&(d=d.__appliedElement||d,sa&&sa(d),c.__shadyCSSCachedStyle=d)}}return a};C.prototype.addCustomStyle=C.prototype.b;C.prototype.getStyleForCustomStyle=C.prototype.a;C.prototype.processStyles=C.prototype.c;
Object.defineProperties(C.prototype,{transformCallback:{get:function(){return sa},set:function(a){sa=a}},validateCallback:{get:function(){return Z},set:function(a){var b=!1;Z||(b=!0);Z=a;b&&this.wa()}}});var Mc=new aa;k.prototype.A=function(){jb()};k.prototype.Y=function(a){var b=this.m[a]=(this.m[a]||0)+1;return a+"-"+b};k.prototype.Ha=function(a){return ka(a)};k.prototype.Ja=function(a){return R(a)};k.prototype.M=function(a){a=a.content.querySelectorAll("style");for(var b=[],c=0;c<a.length;c++){var d=
a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};k.prototype.$=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||"":""};k.prototype.prepareTemplate=function(a,b,c){if(!a.f){a.f=!0;a.name=b;a.extends=c;ma[b]=a;var d=this.$(a),e=this.M(a);c={is:b,extends:c,nb:d};x||u.a(a.content,b);this.c();var f=qa.test(e)||pa.test(e);qa.lastIndex=0;pa.lastIndex=0;e=Va(e);f&&z&&this.a&&this.a.transformRules(e,b);a._styleAst=e;a.g=d;d=[];z||(d=J.M(a._styleAst));
if(!d.length||z)b=this.Z(c,a._styleAst,x?a.content:null,fb[b]),a.a=b;a.c=d}};k.prototype.Z=function(a,b,c,d){b=u.b(a,b);if(b.length)return Wa(b,a.is,c,d)};k.prototype.ba=function(a){var b=N(a),c=b.is;b=b.T;var d=fb[c];c=ma[c];if(c){var e=c._styleAst;var f=c.c}return t.set(a,new t(e,d,f,0,b))};k.prototype.F=function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=yd)};k.prototype.G=function(){var a=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&
(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(b){a.s(b)},this.b.validateCallback=function(){requestAnimationFrame(function(){(a.b.enqueued||a.i)&&a.f()})})};k.prototype.c=function(){this.F();this.G()};k.prototype.f=function(){this.c();if(this.b){var a=this.b.processStyles();this.b.enqueued&&(z?this.Fa(a):(this.o(this.g,this.h),this.B(a)),this.b.enqueued=!1,this.i&&!z&&this.styleDocument())}};k.prototype.styleElement=function(a,b){var c=N(a).is,d=t.get(a);d||(d=this.ba(a));
this.j(a)||(this.i=!0);b&&(d.L=d.L||{},Object.assign(d.L,b));if(z){if(d.L){b=d.L;for(var e in b)null===e?a.style.removeProperty(e):a.style.setProperty(e,b[e])}if(((e=ma[c])||this.j(a))&&e&&e.a&&!zc(e)){if(zc(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)this.c(),this.a&&this.a.transformRules(e._styleAst,c),e.a.textContent=u.b(a,d.D),zd(e);x&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=u.b(a,d.D));d.D=e._styleAst}}else this.o(a,d),d.ja&&d.ja.length&&this.I(a,d)};k.prototype.l=
function(a){return(a=a.getRootNode().host)?t.get(a)?a:this.l(a):this.g};k.prototype.j=function(a){return a===this.g};k.prototype.I=function(a,b){var c=N(a).is,d=Mc.fetch(c,b.H,b.ja),e=d?d.styleElement:null,f=b.w;b.w=d&&d.w||this.Y(c);e=J.s(a,b.H,b.w,e);x||J.o(a,b.w,f);d||Mc.b(c,b.H,e,b.w)};k.prototype.o=function(a,b){var c=this.l(a),d=t.get(c);c=Object.create(d.H||null);var e=J.Y(a,b.D);a=J.Z(d.D,a).C;Object.assign(c,e.bb,a,e.ib);this.aa(c,b.L);J.$(c);b.H=c};k.prototype.aa=function(a,b){for(var c in b){var d=
b[c];if(d||0===d)a[c]=d}};k.prototype.styleDocument=function(a){this.styleSubtree(this.g,a)};k.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;(c||this.j(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);else if(a=a.children||a.childNodes)for(b=0;b<a.length;b++)this.styleSubtree(a[b])};k.prototype.Fa=function(a){for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);c&&this.Ea(c)}};k.prototype.B=function(a){for(var b=
0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);c&&J.m(c,this.h.H)}};k.prototype.s=function(a){var b=this,c=ka(a);S(c,function(a){x?u.o(a):u.G(a);z&&(b.c(),b.a&&b.a.transformRule(a))});z?a.textContent=R(c):this.h.D.rules.push(c)};k.prototype.Ea=function(a){if(z&&this.a){var b=ka(a);this.c();this.a.transformRules(b);a.textContent=R(b)}};k.prototype.getComputedStyleValue=function(a,b){var c;z||(c=(t.get(a)||t.get(this.l(a))).H[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?
c.trim():""};k.prototype.Ia=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===u.c){c=d[e+1];break}}}c&&b.push(u.c,c);z||(c=t.get(a))&&c.w&&b.push(J.g,c.w);la(a,b.join(" "))};k.prototype.Ga=function(a){return t.get(a)};k.prototype.flush=k.prototype.A;k.prototype.prepareTemplate=k.prototype.prepareTemplate;k.prototype.styleElement=k.prototype.styleElement;k.prototype.styleDocument=
k.prototype.styleDocument;k.prototype.styleSubtree=k.prototype.styleSubtree;k.prototype.getComputedStyleValue=k.prototype.getComputedStyleValue;k.prototype.setElementClass=k.prototype.Ia;k.prototype._styleInfoForNode=k.prototype.Ga;k.prototype.transformCustomStyleForDocument=k.prototype.s;k.prototype.getStyleAst=k.prototype.Ha;k.prototype.styleAstToString=k.prototype.Ja;k.prototype.flushCustomStyles=k.prototype.f;Object.defineProperties(k.prototype,{nativeShadow:{get:function(){return x}},nativeCss:{get:function(){return z}}});
var F=new k;if(window.ShadyCSS){var Nc=window.ShadyCSS.ApplyShim;var Oc=window.ShadyCSS.CustomStyleInterface}window.ShadyCSS={ScopingShim:F,prepareTemplate:function(a,b,c){F.f();F.prepareTemplate(a,b,c)},styleSubtree:function(a,b){F.f();F.styleSubtree(a,b)},styleElement:function(a){F.f();F.styleElement(a)},styleDocument:function(a){F.f();F.styleDocument(a)},getComputedStyleValue:function(a,b){return F.getComputedStyleValue(a,b)},nativeCss:z,nativeShadow:x};Nc&&(window.ShadyCSS.ApplyShim=Nc);Oc&&(window.ShadyCSS.CustomStyleInterface=
Oc);(function(){var a=window.customElements,b=window.HTMLImports;window.WebComponents=window.WebComponents||{};if(a&&a.polyfillWrapFlushCallback){var c,d=function(){if(c){var a=c;c=null;a();return!0}},e=b.whenReady;a.polyfillWrapFlushCallback(function(a){c=a;e(d)});b.whenReady=function(a){e(function(){d()?b.whenReady(a):a()})}}b.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})})})();(function(){var a=
document.createElement("style");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var b=document.querySelector("head");b.insertBefore(a,b.firstChild)})()})();}).call(this);
//# sourceMappingURL=webcomponents-hi-sd-ce.js.map

File diff suppressed because one or more lines are too long

View File

@@ -155,38 +155,37 @@ window.CustomElementRegistry=B;B.prototype.define=B.prototype.define;B.prototype
Da=window.Node.prototype.removeChild,Ab=window.Node.prototype.replaceChild,Fa=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),qb=window.Element.prototype.attachShadow,Aa=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Ea=window.Element.prototype.getAttribute,sb=window.Element.prototype.setAttribute,ub=window.Element.prototype.removeAttribute,ka=window.Element.prototype.getAttributeNS,tb=window.Element.prototype.setAttributeNS,vb=window.Element.prototype.removeAttributeNS,
xb=window.Element.prototype.insertAdjacentElement,ad=window.Element.prototype.prepend,bd=window.Element.prototype.append,dd=window.Element.prototype.before,ed=window.Element.prototype.after,fd=window.Element.prototype.replaceWith,gd=window.Element.prototype.remove,od=window.HTMLElement,Ba=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),wb=window.HTMLElement.prototype.insertAdjacentElement,Bb=new function(){},ua=window.customElements;if(!ua||ua.forcePolyfill||"function"!=
typeof ua.define||"function"!=typeof ua.get){var ea=new A;nd(ea);id(ea);hd(ea);$c(ea);document.__CE_hasRegistry=!0;var Xd=new B(ea);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Xd})}var O={STYLE_RULE:1,ia:7,MEDIA_RULE:4,va:1E3},G={mb:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,Fa:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Ja:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,sb:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,yb:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,
rb:/^@[^\s]*keyframes/,Ka:/\s+/g},w=!(window.ShadyDOM&&window.ShadyDOM.inUse);if(window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss)var q=window.ShadyCSS.nativeCss;else window.ShadyCSS?(Ac(window.ShadyCSS),window.ShadyCSS=void 0):Ac(window.WebComponents&&window.WebComponents.flags);var va=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};{])+)|\{([^\}]*)\}(?:(?=[;\s}])|$))/gi,wa=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Yd=/(--[\w-]+)\s*([:,;)]|$)/gi,Zd=/(animation\s*:)|(animation-name\s*:)/,
Id=/@media[^(]*(\([^)]*\))/,$d=/\{[^}]*\}/g,P=null;r.prototype.a=function(a,b,c){a.__styleScoped?a.__styleScoped=null:this.i(a,b||"",c)};r.prototype.i=function(a,b,c){a.nodeType===Node.ELEMENT_NODE&&this.v(a,b,c);if(a="template"===a.localName?(a.content||a.Cb).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this.i(a[d],b,c)};r.prototype.v=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));
else if(a.getAttribute){var d=a.getAttribute(ae);c?d&&(b=d.replace("style-scope","").replace(b,""),ra(a,b)):ra(a,(d?d+" ":"")+"style-scope "+b)}};r.prototype.b=function(a,b,c){var d=a.__cssBuild;w||"shady"===d?b=V(b,c):(a=Q(a),b=this.H(b,a.is,a.Y,c)+"\n\n");return b.trim()};r.prototype.H=function(a,b,c,d){var e=this.f(b,c);b=this.h(b);var f=this;return V(a,function(a){a.c||(f.R(a,b,e),a.c=!0);d&&d(a,b,e)})};r.prototype.h=function(a){return a?be+a:""};r.prototype.f=function(a,b){return b?"[is="+a+
"]":a};r.prototype.R=function(a,b,c){this.j(a,this.g,b,c)};r.prototype.j=function(a,b,c,d){a.selector=a.A=this.l(a,b,c,d)};r.prototype.l=function(a,b,c,d){var e=a.selector.split(Pc);if(!Bc(a)){a=0;for(var f=e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(Pc)};r.prototype.g=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(ce,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(de,jb+" $1");return a=a.replace(ee,function(a,g,h){e||(a=d.C(h,g,b,c),e=e||a.stop,
g=a.lb,h=a.value);return g+h})};r.prototype.C=function(a,b,c,d){var e=a.indexOf(kb);0<=a.indexOf(jb)?a=this.L(a,d):0!==e&&(a=c?this.s(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(fe,function(a,b){return" > "+b}))}a=a.replace(ge,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,lb:b,stop:f}};r.prototype.s=function(a,b){a=a.split(Qc);a[0]+=b;return a.join(Qc)};r.prototype.L=function(a,b){var c=a.match(Rc);return(c=c&&c[2].trim()||"")?c[0].match(Sc)?a.replace(Rc,
function(a,c,f){return b+f}):c.split(Sc)[0]===b?c:he:a.replace(jb,b)};r.prototype.I=function(a){a.selector=a.parsedSelector;this.u(a);this.j(a,this.D)};r.prototype.u=function(a){a.selector===ie&&(a.selector="html")};r.prototype.D=function(a){return a.match(kb)?this.g(a,Tc):this.s(a.trim(),Tc)};nb.Object.defineProperties(r.prototype,{c:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var ce=/:(nth[-\w]+)\(([^)]+)\)/,Tc=":not(.style-scope)",Pc=",",ee=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,
Sc=/[[.:#*]/,jb=":host",ie=":root",kb="::slotted",de=new RegExp("^("+kb+")"),Rc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,fe=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ge=/(.*):dir\((?:(ltr|rtl))\)/,be=".",Qc=":",ae="class",he="should_not_match",v=new r;t.get=function(a){return a?a.__styleInfo:null};t.set=function(a,b){return a.__styleInfo=b};t.prototype.c=function(){return this.G};t.prototype._getStyleRules=t.prototype.c;var Uc=function(a){return a.matches||a.matchesSelector||a.mozMatchesSelector||
a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}(window.Element.prototype),je=navigator.userAgent.match("Trident");p.prototype.R=function(a){var b=this,c={},d=[],e=0;W(a,function(a){b.c(a);a.index=e++;b.I(a.w.cssText,c)},function(a){d.push(a)});a.b=d;a=[];for(var f in c)a.push(f);return a};p.prototype.c=function(a){if(!a.w){var b={},c={};this.b(a,c)&&(b.F=c,a.rules=null);b.cssText=this.H(a);a.w=b}};p.prototype.b=function(a,b){var c=a.w;if(c){if(c.F)return Object.assign(b,c.F),!0}else{c=
a.parsedCssText;for(var d;a=va.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}};p.prototype.H=function(a){return this.L(a.parsedCssText)};p.prototype.L=function(a){return a.replace($d,"").replace(va,"")};p.prototype.I=function(a,b){for(var c;c=Yd.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};p.prototype.fa=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c<b.length;c++)d=b[c],a[d]=this.a(a[d],a)};p.prototype.a=function(a,b){if(a)if(0<=a.indexOf(";"))a=
this.f(a,b);else{var c=this;a=Dc(a,function(a,e,f,g){if(!e)return a+g;(e=c.a(b[e],b))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=c.a(b[f]||f,b)||f;return a+(e||"")+g})}return a&&a.trim()||""};p.prototype.f=function(a,b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){wa.lastIndex=0;if(e=wa.exec(d))d=this.a(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e);f=f.trim();f=this.a(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||
""}return a.join(";")};p.prototype.D=function(a,b){var c="";a.w||this.c(a);a.w.cssText&&(c=this.f(a.w.cssText,b));a.cssText=c};p.prototype.C=function(a,b){var c=a.cssText,d=a.cssText;null==a.Ha&&(a.Ha=Zd.test(c));if(a.Ha)if(null==a.ca){a.ca=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.ca.push(e))}else{for(e=0;e<a.ca.length;++e)d=b[a.ca[e]],c=d(c);d=c}a.cssText=d};p.prototype.ea=function(a,b){var c={},d=this,e=[];W(a,function(a){a.w||d.c(a);var f=a.A||a.parsedSelector;b&&a.w.F&&f&&Uc.call(b,f)&&(d.b(a,
c),a=a.index,f=parseInt(a/32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{F:c,key:e}};p.prototype.ha=function(a,b,c,d){b.w||this.c(b);if(b.w.F){var e=Q(a);a=e.is;e=e.Y;e=a?v.f(a,e):"html";var f=b.parsedSelector,g=":host > *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));"shadow"===c&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)c=e,h&&(w&&!b.A&&(b.A=v.l(b,v.g,v.h(a),e)),c=b.A||e),d({xb:c,qb:h,Gb:g})}};p.prototype.da=
function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;W(b,function(b){e.ha(a,b,f,function(f){Uc.call(a.Db||a,f.xb)&&(f.qb?e.b(b,c):e.b(b,d))})},null,!0);return{vb:d,pb:c}};p.prototype.ga=function(a,b,c){var d=this,e=Q(a),f=v.f(e.is,e.Y),g=new RegExp("(?:^|[^.#[:])"+(a.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=t.get(a).G;var h=this.h(e,c);return v.b(a,e,function(a){d.D(a,b);w||Bc(a)||!a.cssText||(d.C(a,h),d.l(a,g,f,c))})};p.prototype.h=function(a,b){a=a.b;var c={};if(!w&&a)for(var d=
0,e=a[d];d<a.length;e=a[++d])this.j(e,b),c[e.keyframesName]=this.i(e);return c};p.prototype.i=function(a){return function(b){return b.replace(a.f,a.a)}};p.prototype.j=function(a,b){a.f=new RegExp(a.keyframesName,"g");a.a=a.keyframesName+"-"+b;a.A=a.A||a.selector;a.selector=a.A.replace(a.keyframesName,a.a)};p.prototype.l=function(a,b,c,d){a.A=a.A||a.selector;d="."+d;for(var e=a.A.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};p.prototype.u=
function(a,b,c){var d=a.getAttribute("class")||"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+b;d!==e&&ra(a,e)};p.prototype.v=function(a,b,c,d){b=d?d.textContent||"":this.ga(a,b,c);var e=t.get(a),f=e.a;f&&!w&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));w?e.a?(e.a.textContent=b,d=e.a):b&&(d=bb(b,c,a.shadowRoot,e.b)):d?d.parentNode||(je&&-1<b.indexOf("@media")&&(d.textContent=b),Cc(d,null,e.b)):b&&(d=bb(b,c,null,
e.b));d&&(d._useCount=d._useCount||0,e.a!=d&&d._useCount++,e.a=d);return d};p.prototype.s=function(a,b){var c=qa(a),d=this;a.textContent=V(c,function(a){var c=a.cssText=a.parsedCssText;a.w&&a.w.cssText&&(c=c.replace(G.Fa,"").replace(G.Ja,""),a.cssText=d.f(c,b))})};nb.Object.defineProperties(p.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var K=new p,lb={},xa=window.customElements;if(xa&&!w){var ke=xa.define;xa.define=function(a,b,c){var d=document.createComment(" Shady DOM styles for "+
a+" "),e=document.head;e.insertBefore(d,(P?P.nextSibling:null)||e.firstChild);P=d;lb[a]=d;return ke.call(xa,a,b,c)}}ha.prototype.a=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.F[e]!==b[e])return!1}return!0};ha.prototype.b=function(a,b,c,d){var e=this.cache[a]||[];e.push({F:b,styleElement:c,B:d});e.length>this.c&&e.shift();this.cache[a]=e};ha.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this.a(e,b,c))return e}};if(!w){var Vc=new MutationObserver(Ec),
Wc=function(a){Vc.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Wc(document);else{var mb=function(){Wc(document.body)};window.HTMLImports?window.HTMLImports.whenReady(mb):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){mb();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else mb()})}pb=function(){Ec(Vc.takeRecords())}}var sa={},Ld=Promise.resolve(),
cb=null,Gc=window.HTMLImports&&window.HTMLImports.whenReady||null,db,ya=null,fa=null;H.prototype.Ga=function(){!this.enqueued&&fa&&(this.enqueued=!0,ob(fa))};H.prototype.b=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),this.Ga())};H.prototype.a=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};H.prototype.c=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.a(c);
if(d){var e=d.__appliedElement;if(e)for(var f=0;f<d.attributes.length;f++){var g=d.attributes[f];e.setAttribute(g.name,g.value)}d=e||d;ya&&ya(d);c.__shadyCSSCachedStyle=d}}}return a};H.prototype.addCustomStyle=H.prototype.b;H.prototype.getStyleForCustomStyle=H.prototype.a;H.prototype.processStyles=H.prototype.c;Object.defineProperties(H.prototype,{transformCallback:{get:function(){return ya},set:function(a){ya=a}},validateCallback:{get:function(){return fa},set:function(a){var b=!1;fa||(b=!0);fa=
a;b&&this.Ga()}}});var Xc=new ha;k.prototype.C=function(){pb()};k.prototype.da=function(a){var b=this.s[a]=(this.s[a]||0)+1;return a+"-"+b};k.prototype.Ra=function(a){return qa(a)};k.prototype.Ta=function(a){return V(a)};k.prototype.R=function(a){a=a.content.querySelectorAll("style");for(var b=[],c=0;c<a.length;c++){var d=a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};k.prototype.fa=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||
"":""};k.prototype.prepareTemplate=function(a,b,c){if(!a.f){a.f=!0;a.name=b;a.extends=c;sa[b]=a;var d=this.fa(a),e=this.R(a);c={is:b,extends:c,Ab:d};w||v.a(a.content,b);this.c();var f=wa.test(e)||va.test(e);wa.lastIndex=0;va.lastIndex=0;e=ab(e);f&&q&&this.a&&this.a.transformRules(e,b);a._styleAst=e;a.g=d;d=[];q||(d=K.R(a._styleAst));if(!d.length||q)b=this.ea(c,a._styleAst,w?a.content:null,lb[b]),a.a=b;a.c=d}};k.prototype.ea=function(a,b,c,d){b=v.b(a,b);if(b.length)return bb(b,a.is,c,d)};k.prototype.ha=
function(a){var b=Q(a),c=b.is;b=b.Y;var d=lb[c];c=sa[c];if(c){var e=c._styleAst;var f=c.c}return t.set(a,new t(e,d,f,0,b))};k.prototype.H=function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=Jd)};k.prototype.I=function(){var a=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(b){a.v(b)},this.b.validateCallback=function(){requestAnimationFrame(function(){(a.b.enqueued||
a.i)&&a.f()})})};k.prototype.c=function(){this.H();this.I()};k.prototype.f=function(){this.c();if(this.b){var a=this.b.processStyles();this.b.enqueued&&(q?this.Pa(a):(this.u(this.g,this.h),this.D(a)),this.b.enqueued=!1,this.i&&!q&&this.styleDocument())}};k.prototype.styleElement=function(a,b){var c=Q(a).is,d=t.get(a);d||(d=this.ha(a));this.j(a)||(this.i=!0);b&&(d.P=d.P||{},Object.assign(d.P,b));if(q){if(d.P){b=d.P;for(var e in b)null===e?a.style.removeProperty(e):a.style.setProperty(e,b[e])}if(((e=
sa[c])||this.j(a))&&e&&e.a&&!Fc(e)){if(Fc(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)this.c(),this.a&&this.a.transformRules(e._styleAst,c),e.a.textContent=v.b(a,d.G),Kd(e);w&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=v.b(a,d.G));d.G=e._styleAst}}else this.u(a,d),d.sa&&d.sa.length&&this.L(a,d)};k.prototype.l=function(a){return(a=a.getRootNode().host)?t.get(a)?a:this.l(a):this.g};k.prototype.j=function(a){return a===this.g};k.prototype.L=function(a,b){var c=Q(a).is,d=
Xc.fetch(c,b.K,b.sa),e=d?d.styleElement:null,f=b.B;b.B=d&&d.B||this.da(c);e=K.v(a,b.K,b.B,e);w||K.u(a,b.B,f);d||Xc.b(c,b.K,e,b.B)};k.prototype.u=function(a,b){var c=this.l(a),d=t.get(c);c=Object.create(d.K||null);var e=K.da(a,b.G);a=K.ea(d.G,a).F;Object.assign(c,e.pb,a,e.vb);this.ga(c,b.P);K.fa(c);b.K=c};k.prototype.ga=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};k.prototype.styleDocument=function(a){this.styleSubtree(this.g,a)};k.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;
(c||this.j(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);else if(a=a.children||a.childNodes)for(b=0;b<a.length;b++)this.styleSubtree(a[b])};k.prototype.Pa=function(a){for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);c&&this.Oa(c)}};k.prototype.D=function(a){for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);c&&K.s(c,this.h.K)}};k.prototype.v=function(a){var b=this,c=qa(a);W(c,function(a){w?v.u(a):
v.I(a);q&&(b.c(),b.a&&b.a.transformRule(a))});q?a.textContent=V(c):this.h.G.rules.push(c)};k.prototype.Oa=function(a){if(q&&this.a){var b=qa(a);this.c();this.a.transformRules(b);a.textContent=V(b)}};k.prototype.getComputedStyleValue=function(a,b){var c;q||(c=(t.get(a)||t.get(this.l(a))).K[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};k.prototype.Sa=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");
if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===v.c){c=d[e+1];break}}}c&&b.push(v.c,c);q||(c=t.get(a))&&c.B&&b.push(K.g,c.B);ra(a,b.join(" "))};k.prototype.Qa=function(a){return t.get(a)};k.prototype.flush=k.prototype.C;k.prototype.prepareTemplate=k.prototype.prepareTemplate;k.prototype.styleElement=k.prototype.styleElement;k.prototype.styleDocument=k.prototype.styleDocument;k.prototype.styleSubtree=k.prototype.styleSubtree;k.prototype.getComputedStyleValue=k.prototype.getComputedStyleValue;
k.prototype.setElementClass=k.prototype.Sa;k.prototype._styleInfoForNode=k.prototype.Qa;k.prototype.transformCustomStyleForDocument=k.prototype.v;k.prototype.getStyleAst=k.prototype.Ra;k.prototype.styleAstToString=k.prototype.Ta;k.prototype.flushCustomStyles=k.prototype.f;Object.defineProperties(k.prototype,{nativeShadow:{get:function(){return w}},nativeCss:{get:function(){return q}}});var E=new k;if(window.ShadyCSS){var Yc=window.ShadyCSS.ApplyShim;var Zc=window.ShadyCSS.CustomStyleInterface}window.ShadyCSS=
{ScopingShim:E,prepareTemplate:function(a,b,c){E.f();E.prepareTemplate(a,b,c)},styleSubtree:function(a,b){E.f();E.styleSubtree(a,b)},styleElement:function(a){E.f();E.styleElement(a)},styleDocument:function(a){E.f();E.styleDocument(a)},getComputedStyleValue:function(a,b){return E.getComputedStyleValue(a,b)},nativeCss:q,nativeShadow:w};Yc&&(window.ShadyCSS.ApplyShim=Yc);Zc&&(window.ShadyCSS.CustomStyleInterface=Zc);(function(){var a=window.customElements,b=window.HTMLImports;window.WebComponents=window.WebComponents||
{};if(a&&a.polyfillWrapFlushCallback){var c,d=function(){if(c){var a=c;c=null;a();return!0}},e=b.whenReady;a.polyfillWrapFlushCallback(function(a){c=a;e(d)});b.whenReady=function(a){e(function(){d()?b.whenReady(a):a()})}}b.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})})})();(function(){var a=document.createElement("style");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";
var b=document.querySelector("head");b.insertBefore(a,b.firstChild)})()})();}).call(this);
rb:/^@[^\s]*keyframes/,Ka:/\s+/g},w=!(window.ShadyDOM&&window.ShadyDOM.inUse);if(window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss)var q=window.ShadyCSS.nativeCss;else window.ShadyCSS?(Ac(window.ShadyCSS),window.ShadyCSS=void 0):Ac(window.WebComponents&&window.WebComponents.flags);var va=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,wa=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Yd=/(--[\w-]+)\s*([:,;)]|$)/gi,Zd=/(animation\s*:)|(animation-name\s*:)/,
Id=/@media\s(.*)/,$d=/\{[^}]*\}/g,P=null;r.prototype.a=function(a,b,c){a.__styleScoped?a.__styleScoped=null:this.i(a,b||"",c)};r.prototype.i=function(a,b,c){a.nodeType===Node.ELEMENT_NODE&&this.v(a,b,c);if(a="template"===a.localName?(a.content||a.Cb).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this.i(a[d],b,c)};r.prototype.v=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=
a.getAttribute(ae);c?d&&(b=d.replace("style-scope","").replace(b,""),ra(a,b)):ra(a,(d?d+" ":"")+"style-scope "+b)}};r.prototype.b=function(a,b,c){var d=a.__cssBuild;w||"shady"===d?b=V(b,c):(a=Q(a),b=this.H(b,a.is,a.Y,c)+"\n\n");return b.trim()};r.prototype.H=function(a,b,c,d){var e=this.f(b,c);b=this.h(b);var f=this;return V(a,function(a){a.c||(f.R(a,b,e),a.c=!0);d&&d(a,b,e)})};r.prototype.h=function(a){return a?be+a:""};r.prototype.f=function(a,b){return b?"[is="+a+"]":a};r.prototype.R=function(a,
b,c){this.j(a,this.g,b,c)};r.prototype.j=function(a,b,c,d){a.selector=a.A=this.l(a,b,c,d)};r.prototype.l=function(a,b,c,d){var e=a.selector.split(Pc);if(!Bc(a)){a=0;for(var f=e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(Pc)};r.prototype.g=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(ce,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(de,jb+" $1");return a=a.replace(ee,function(a,g,h){e||(a=d.C(h,g,b,c),e=e||a.stop,g=a.lb,h=a.value);return g+h})};
r.prototype.C=function(a,b,c,d){var e=a.indexOf(kb);0<=a.indexOf(jb)?a=this.L(a,d):0!==e&&(a=c?this.s(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(fe,function(a,b){return" > "+b}))}a=a.replace(ge,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,lb:b,stop:f}};r.prototype.s=function(a,b){a=a.split(Qc);a[0]+=b;return a.join(Qc)};r.prototype.L=function(a,b){var c=a.match(Rc);return(c=c&&c[2].trim()||"")?c[0].match(Sc)?a.replace(Rc,function(a,c,f){return b+
f}):c.split(Sc)[0]===b?c:he:a.replace(jb,b)};r.prototype.I=function(a){a.selector=a.parsedSelector;this.u(a);this.j(a,this.D)};r.prototype.u=function(a){a.selector===ie&&(a.selector="html")};r.prototype.D=function(a){return a.match(kb)?this.g(a,Tc):this.s(a.trim(),Tc)};nb.Object.defineProperties(r.prototype,{c:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var ce=/:(nth[-\w]+)\(([^)]+)\)/,Tc=":not(.style-scope)",Pc=",",ee=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Sc=/[[.:#*]/,
jb=":host",ie=":root",kb="::slotted",de=new RegExp("^("+kb+")"),Rc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,fe=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ge=/(.*):dir\((?:(ltr|rtl))\)/,be=".",Qc=":",ae="class",he="should_not_match",v=new r;t.get=function(a){return a?a.__styleInfo:null};t.set=function(a,b){return a.__styleInfo=b};t.prototype.c=function(){return this.G};t.prototype._getStyleRules=t.prototype.c;var Uc=function(a){return a.matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||
a.oMatchesSelector||a.webkitMatchesSelector}(window.Element.prototype),je=navigator.userAgent.match("Trident");p.prototype.R=function(a){var b=this,c={},d=[],e=0;W(a,function(a){b.c(a);a.index=e++;b.I(a.w.cssText,c)},function(a){d.push(a)});a.b=d;a=[];for(var f in c)a.push(f);return a};p.prototype.c=function(a){if(!a.w){var b={},c={};this.b(a,c)&&(b.F=c,a.rules=null);b.cssText=this.H(a);a.w=b}};p.prototype.b=function(a,b){var c=a.w;if(c){if(c.F)return Object.assign(b,c.F),!0}else{c=a.parsedCssText;
for(var d;a=va.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}};p.prototype.H=function(a){return this.L(a.parsedCssText)};p.prototype.L=function(a){return a.replace($d,"").replace(va,"")};p.prototype.I=function(a,b){for(var c;c=Yd.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};p.prototype.fa=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c<b.length;c++)d=b[c],a[d]=this.a(a[d],a)};p.prototype.a=function(a,b){if(a)if(0<=a.indexOf(";"))a=this.f(a,
b);else{var c=this;a=Dc(a,function(a,e,f,g){if(!e)return a+g;(e=c.a(b[e],b))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=c.a(b[f]||f,b)||f;return a+(e||"")+g})}return a&&a.trim()||""};p.prototype.f=function(a,b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){wa.lastIndex=0;if(e=wa.exec(d))d=this.a(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e);f=f.trim();f=this.a(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||""}return a.join(";")};
p.prototype.D=function(a,b){var c="";a.w||this.c(a);a.w.cssText&&(c=this.f(a.w.cssText,b));a.cssText=c};p.prototype.C=function(a,b){var c=a.cssText,d=a.cssText;null==a.Ha&&(a.Ha=Zd.test(c));if(a.Ha)if(null==a.ca){a.ca=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.ca.push(e))}else{for(e=0;e<a.ca.length;++e)d=b[a.ca[e]],c=d(c);d=c}a.cssText=d};p.prototype.ea=function(a,b){var c={},d=this,e=[];W(a,function(a){a.w||d.c(a);var f=a.A||a.parsedSelector;b&&a.w.F&&f&&Uc.call(b,f)&&(d.b(a,c),a=a.index,f=parseInt(a/
32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{F:c,key:e}};p.prototype.ha=function(a,b,c,d){b.w||this.c(b);if(b.w.F){var e=Q(a);a=e.is;e=e.Y;e=a?v.f(a,e):"html";var f=b.parsedSelector,g=":host > *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));"shadow"===c&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)c=e,h&&(w&&!b.A&&(b.A=v.l(b,v.g,v.h(a),e)),c=b.A||e),d({xb:c,qb:h,Gb:g})}};p.prototype.da=function(a,b){var c={},d=
{},e=this,f=b&&b.__cssBuild;W(b,function(b){e.ha(a,b,f,function(f){Uc.call(a.Db||a,f.xb)&&(f.qb?e.b(b,c):e.b(b,d))})},null,!0);return{vb:d,pb:c}};p.prototype.ga=function(a,b,c){var d=this,e=Q(a),f=v.f(e.is,e.Y),g=new RegExp("(?:^|[^.#[:])"+(a.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=t.get(a).G;var h=this.h(e,c);return v.b(a,e,function(a){d.D(a,b);w||Bc(a)||!a.cssText||(d.C(a,h),d.l(a,g,f,c))})};p.prototype.h=function(a,b){a=a.b;var c={};if(!w&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this.j(e,
b),c[e.keyframesName]=this.i(e);return c};p.prototype.i=function(a){return function(b){return b.replace(a.f,a.a)}};p.prototype.j=function(a,b){a.f=new RegExp(a.keyframesName,"g");a.a=a.keyframesName+"-"+b;a.A=a.A||a.selector;a.selector=a.A.replace(a.keyframesName,a.a)};p.prototype.l=function(a,b,c,d){a.A=a.A||a.selector;d="."+d;for(var e=a.A.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};p.prototype.u=function(a,b,c){var d=a.getAttribute("class")||
"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+b;d!==e&&ra(a,e)};p.prototype.v=function(a,b,c,d){b=d?d.textContent||"":this.ga(a,b,c);var e=t.get(a),f=e.a;f&&!w&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));w?e.a?(e.a.textContent=b,d=e.a):b&&(d=bb(b,c,a.shadowRoot,e.b)):d?d.parentNode||(je&&-1<b.indexOf("@media")&&(d.textContent=b),Cc(d,null,e.b)):b&&(d=bb(b,c,null,e.b));d&&(d._useCount=d._useCount||0,e.a!=d&&d._useCount++,
e.a=d);return d};p.prototype.s=function(a,b){var c=qa(a),d=this;a.textContent=V(c,function(a){var c=a.cssText=a.parsedCssText;a.w&&a.w.cssText&&(c=c.replace(G.Fa,"").replace(G.Ja,""),a.cssText=d.f(c,b))})};nb.Object.defineProperties(p.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var K=new p,lb={},xa=window.customElements;if(xa&&!w){var ke=xa.define;xa.define=function(a,b,c){var d=document.createComment(" Shady DOM styles for "+a+" "),e=document.head;e.insertBefore(d,
(P?P.nextSibling:null)||e.firstChild);P=d;lb[a]=d;return ke.call(xa,a,b,c)}}ha.prototype.a=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.F[e]!==b[e])return!1}return!0};ha.prototype.b=function(a,b,c,d){var e=this.cache[a]||[];e.push({F:b,styleElement:c,B:d});e.length>this.c&&e.shift();this.cache[a]=e};ha.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this.a(e,b,c))return e}};if(!w){var Vc=new MutationObserver(Ec),Wc=function(a){Vc.observe(a,
{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Wc(document);else{var mb=function(){Wc(document.body)};window.HTMLImports?window.HTMLImports.whenReady(mb):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){mb();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else mb()})}pb=function(){Ec(Vc.takeRecords())}}var sa={},Ld=Promise.resolve(),cb=null,Gc=window.HTMLImports&&
window.HTMLImports.whenReady||null,db,ya=null,fa=null;H.prototype.Ga=function(){!this.enqueued&&fa&&(this.enqueued=!0,ob(fa))};H.prototype.b=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),this.Ga())};H.prototype.a=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};H.prototype.c=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.a(c);d&&(d=d.__appliedElement||d,ya&&
ya(d),c.__shadyCSSCachedStyle=d)}}return a};H.prototype.addCustomStyle=H.prototype.b;H.prototype.getStyleForCustomStyle=H.prototype.a;H.prototype.processStyles=H.prototype.c;Object.defineProperties(H.prototype,{transformCallback:{get:function(){return ya},set:function(a){ya=a}},validateCallback:{get:function(){return fa},set:function(a){var b=!1;fa||(b=!0);fa=a;b&&this.Ga()}}});var Xc=new ha;k.prototype.C=function(){pb()};k.prototype.da=function(a){var b=this.s[a]=(this.s[a]||0)+1;return a+"-"+b};
k.prototype.Ra=function(a){return qa(a)};k.prototype.Ta=function(a){return V(a)};k.prototype.R=function(a){a=a.content.querySelectorAll("style");for(var b=[],c=0;c<a.length;c++){var d=a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};k.prototype.fa=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||"":""};k.prototype.prepareTemplate=function(a,b,c){if(!a.f){a.f=!0;a.name=b;a.extends=c;sa[b]=a;var d=this.fa(a),e=this.R(a);c={is:b,extends:c,
Ab:d};w||v.a(a.content,b);this.c();var f=wa.test(e)||va.test(e);wa.lastIndex=0;va.lastIndex=0;e=ab(e);f&&q&&this.a&&this.a.transformRules(e,b);a._styleAst=e;a.g=d;d=[];q||(d=K.R(a._styleAst));if(!d.length||q)b=this.ea(c,a._styleAst,w?a.content:null,lb[b]),a.a=b;a.c=d}};k.prototype.ea=function(a,b,c,d){b=v.b(a,b);if(b.length)return bb(b,a.is,c,d)};k.prototype.ha=function(a){var b=Q(a),c=b.is;b=b.Y;var d=lb[c];c=sa[c];if(c){var e=c._styleAst;var f=c.c}return t.set(a,new t(e,d,f,0,b))};k.prototype.H=
function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=Jd)};k.prototype.I=function(){var a=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(b){a.v(b)},this.b.validateCallback=function(){requestAnimationFrame(function(){(a.b.enqueued||a.i)&&a.f()})})};k.prototype.c=function(){this.H();this.I()};k.prototype.f=function(){this.c();if(this.b){var a=
this.b.processStyles();this.b.enqueued&&(q?this.Pa(a):(this.u(this.g,this.h),this.D(a)),this.b.enqueued=!1,this.i&&!q&&this.styleDocument())}};k.prototype.styleElement=function(a,b){var c=Q(a).is,d=t.get(a);d||(d=this.ha(a));this.j(a)||(this.i=!0);b&&(d.P=d.P||{},Object.assign(d.P,b));if(q){if(d.P){b=d.P;for(var e in b)null===e?a.style.removeProperty(e):a.style.setProperty(e,b[e])}if(((e=sa[c])||this.j(a))&&e&&e.a&&!Fc(e)){if(Fc(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)this.c(),
this.a&&this.a.transformRules(e._styleAst,c),e.a.textContent=v.b(a,d.G),Kd(e);w&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=v.b(a,d.G));d.G=e._styleAst}}else this.u(a,d),d.sa&&d.sa.length&&this.L(a,d)};k.prototype.l=function(a){return(a=a.getRootNode().host)?t.get(a)?a:this.l(a):this.g};k.prototype.j=function(a){return a===this.g};k.prototype.L=function(a,b){var c=Q(a).is,d=Xc.fetch(c,b.K,b.sa),e=d?d.styleElement:null,f=b.B;b.B=d&&d.B||this.da(c);e=K.v(a,b.K,b.B,e);w||K.u(a,b.B,f);d||
Xc.b(c,b.K,e,b.B)};k.prototype.u=function(a,b){var c=this.l(a),d=t.get(c);c=Object.create(d.K||null);var e=K.da(a,b.G);a=K.ea(d.G,a).F;Object.assign(c,e.pb,a,e.vb);this.ga(c,b.P);K.fa(c);b.K=c};k.prototype.ga=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};k.prototype.styleDocument=function(a){this.styleSubtree(this.g,a)};k.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;(c||this.j(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);
else if(a=a.children||a.childNodes)for(b=0;b<a.length;b++)this.styleSubtree(a[b])};k.prototype.Pa=function(a){for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);c&&this.Oa(c)}};k.prototype.D=function(a){for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);c&&K.s(c,this.h.K)}};k.prototype.v=function(a){var b=this,c=qa(a);W(c,function(a){w?v.u(a):v.I(a);q&&(b.c(),b.a&&b.a.transformRule(a))});q?a.textContent=V(c):this.h.G.rules.push(c)};k.prototype.Oa=function(a){if(q&&
this.a){var b=qa(a);this.c();this.a.transformRules(b);a.textContent=V(b)}};k.prototype.getComputedStyleValue=function(a,b){var c;q||(c=(t.get(a)||t.get(this.l(a))).K[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};k.prototype.Sa=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===v.c){c=d[e+1];break}}}c&&b.push(v.c,c);q||(c=t.get(a))&&c.B&&b.push(K.g,
c.B);ra(a,b.join(" "))};k.prototype.Qa=function(a){return t.get(a)};k.prototype.flush=k.prototype.C;k.prototype.prepareTemplate=k.prototype.prepareTemplate;k.prototype.styleElement=k.prototype.styleElement;k.prototype.styleDocument=k.prototype.styleDocument;k.prototype.styleSubtree=k.prototype.styleSubtree;k.prototype.getComputedStyleValue=k.prototype.getComputedStyleValue;k.prototype.setElementClass=k.prototype.Sa;k.prototype._styleInfoForNode=k.prototype.Qa;k.prototype.transformCustomStyleForDocument=
k.prototype.v;k.prototype.getStyleAst=k.prototype.Ra;k.prototype.styleAstToString=k.prototype.Ta;k.prototype.flushCustomStyles=k.prototype.f;Object.defineProperties(k.prototype,{nativeShadow:{get:function(){return w}},nativeCss:{get:function(){return q}}});var E=new k;if(window.ShadyCSS){var Yc=window.ShadyCSS.ApplyShim;var Zc=window.ShadyCSS.CustomStyleInterface}window.ShadyCSS={ScopingShim:E,prepareTemplate:function(a,b,c){E.f();E.prepareTemplate(a,b,c)},styleSubtree:function(a,b){E.f();E.styleSubtree(a,
b)},styleElement:function(a){E.f();E.styleElement(a)},styleDocument:function(a){E.f();E.styleDocument(a)},getComputedStyleValue:function(a,b){return E.getComputedStyleValue(a,b)},nativeCss:q,nativeShadow:w};Yc&&(window.ShadyCSS.ApplyShim=Yc);Zc&&(window.ShadyCSS.CustomStyleInterface=Zc);(function(){var a=window.customElements,b=window.HTMLImports;window.WebComponents=window.WebComponents||{};if(a&&a.polyfillWrapFlushCallback){var c,d=function(){if(c){var a=c;c=null;a();return!0}},e=b.whenReady;a.polyfillWrapFlushCallback(function(a){c=
a;e(d)});b.whenReady=function(a){e(function(){d()?b.whenReady(a):a()})}}b.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})})})();(function(){var a=document.createElement("style");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var b=document.querySelector("head");b.insertBefore(a,b.firstChild)})()})();}).call(this);
//# sourceMappingURL=webcomponents-lite.js.map

File diff suppressed because one or more lines are too long

View File

@@ -113,37 +113,37 @@ v;v.prototype.define=v.prototype.define;v.prototype.get=v.prototype.get;v.protot
ub=window.Node.prototype.replaceChild,za=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),kb=window.Element.prototype.attachShadow,ua=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),ya=window.Element.prototype.getAttribute,mb=window.Element.prototype.setAttribute,ob=window.Element.prototype.removeAttribute,da=window.Element.prototype.getAttributeNS,nb=window.Element.prototype.setAttributeNS,pb=window.Element.prototype.removeAttributeNS,rb=window.Element.prototype.insertAdjacentElement,
Qc=window.Element.prototype.prepend,Rc=window.Element.prototype.append,Tc=window.Element.prototype.before,Uc=window.Element.prototype.after,Vc=window.Element.prototype.replaceWith,Wc=window.Element.prototype.remove,dd=window.HTMLElement,va=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),qb=window.HTMLElement.prototype.insertAdjacentElement,vb=new function(){},oa=window.customElements;if(!oa||oa.forcePolyfill||"function"!=typeof oa.define||"function"!=typeof oa.get){var Y=
new y;cd(Y);Yc(Y);Xc(Y);Pc(Y);document.__CE_hasRegistry=!0;var Id=new v(Y);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Id})}var G={STYLE_RULE:1,ca:7,MEDIA_RULE:4,ka:1E3},D={Sa:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,ra:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,va:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Xa:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,cb:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Wa:/^@[^\s]*keyframes/,
wa:/\s+/g},u=!(window.ShadyDOM&&window.ShadyDOM.inUse);if(window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss)var w=window.ShadyCSS.nativeCss;else window.ShadyCSS?(uc(window.ShadyCSS),window.ShadyCSS=void 0):uc(window.WebComponents&&window.WebComponents.flags);var pa=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};{])+)|\{([^\}]*)\}(?:(?=[;\s}])|$))/gi,qa=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Jd=/(--[\w-]+)\s*([:,;)]|$)/gi,Kd=/(animation\s*:)|(animation-name\s*:)/,
xd=/@media[^(]*(\([^)]*\))/,Ld=/\{[^}]*\}/g,M=null;q.prototype.a=function(a,b,c){a.__styleScoped?a.__styleScoped=null:this.i(a,b||"",c)};q.prototype.i=function(a,b,c){a.nodeType===Node.ELEMENT_NODE&&this.u(a,b,c);if(a="template"===a.localName?(a.content||a.hb).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this.i(a[d],b,c)};q.prototype.u=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));
else if(a.getAttribute){var d=a.getAttribute(Md);c?d&&(b=d.replace("style-scope","").replace(b,""),la(a,b)):la(a,(d?d+" ":"")+"style-scope "+b)}};q.prototype.b=function(a,b,c){var d=a.__cssBuild;u||"shady"===d?b=R(b,c):(a=N(a),b=this.F(b,a.is,a.T,c)+"\n\n");return b.trim()};q.prototype.F=function(a,b,c,d){var e=this.f(b,c);b=this.h(b);var f=this;return R(a,function(a){a.c||(f.M(a,b,e),a.c=!0);d&&d(a,b,e)})};q.prototype.h=function(a){return a?Nd+a:""};q.prototype.f=function(a,b){return b?"[is="+a+
"]":a};q.prototype.M=function(a,b,c){this.j(a,this.g,b,c)};q.prototype.j=function(a,b,c,d){a.selector=a.v=this.l(a,b,c,d)};q.prototype.l=function(a,b,c,d){var e=a.selector.split(Ec);if(!vc(a)){a=0;for(var f=e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(Ec)};q.prototype.g=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(Od,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(Pd,db+" $1");return a=a.replace(Qd,function(a,g,h){e||(a=d.A(h,g,b,c),e=e||a.stop,
g=a.Ra,h=a.value);return g+h})};q.prototype.A=function(a,b,c,d){var e=a.indexOf(eb);0<=a.indexOf(db)?a=this.I(a,d):0!==e&&(a=c?this.m(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(Rd,function(a,b){return" > "+b}))}a=a.replace(Sd,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,Ra:b,stop:f}};q.prototype.m=function(a,b){a=a.split(Fc);a[0]+=b;return a.join(Fc)};q.prototype.I=function(a,b){var c=a.match(Gc);return(c=c&&c[2].trim()||"")?c[0].match(Hc)?a.replace(Gc,
function(a,c,f){return b+f}):c.split(Hc)[0]===b?c:Td:a.replace(db,b)};q.prototype.G=function(a){a.selector=a.parsedSelector;this.o(a);this.j(a,this.B)};q.prototype.o=function(a){a.selector===Ud&&(a.selector="html")};q.prototype.B=function(a){return a.match(eb)?this.g(a,Ic):this.m(a.trim(),Ic)};hb.Object.defineProperties(q.prototype,{c:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Od=/:(nth[-\w]+)\(([^)]+)\)/,Ic=":not(.style-scope)",Ec=",",Qd=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,
Hc=/[[.:#*]/,db=":host",Ud=":root",eb="::slotted",Pd=new RegExp("^("+eb+")"),Gc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Rd=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Sd=/(.*):dir\((?:(ltr|rtl))\)/,Nd=".",Fc=":",Md="class",Td="should_not_match",t=new q;r.get=function(a){return a?a.__styleInfo:null};r.set=function(a,b){return a.__styleInfo=b};r.prototype.c=function(){return this.D};r.prototype._getStyleRules=r.prototype.c;var Jc=function(a){return a.matches||a.matchesSelector||a.mozMatchesSelector||
a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}(window.Element.prototype),Vd=navigator.userAgent.match("Trident");p.prototype.M=function(a){var b=this,c={},d=[],e=0;S(a,function(a){b.c(a);a.index=e++;b.G(a.s.cssText,c)},function(a){d.push(a)});a.b=d;a=[];for(var f in c)a.push(f);return a};p.prototype.c=function(a){if(!a.s){var b={},c={};this.b(a,c)&&(b.C=c,a.rules=null);b.cssText=this.F(a);a.s=b}};p.prototype.b=function(a,b){var c=a.s;if(c){if(c.C)return Object.assign(b,c.C),!0}else{c=
a.parsedCssText;for(var d;a=pa.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}};p.prototype.F=function(a){return this.I(a.parsedCssText)};p.prototype.I=function(a){return a.replace(Ld,"").replace(pa,"")};p.prototype.G=function(a,b){for(var c;c=Jd.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};p.prototype.$=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c<b.length;c++)d=b[c],a[d]=this.a(a[d],a)};p.prototype.a=function(a,b){if(a)if(0<=a.indexOf(";"))a=
this.f(a,b);else{var c=this;a=xc(a,function(a,e,f,g){if(!e)return a+g;(e=c.a(b[e],b))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=c.a(b[f]||f,b)||f;return a+(e||"")+g})}return a&&a.trim()||""};p.prototype.f=function(a,b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){qa.lastIndex=0;if(e=qa.exec(d))d=this.a(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e);f=f.trim();f=this.a(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||
""}return a.join(";")};p.prototype.B=function(a,b){var c="";a.s||this.c(a);a.s.cssText&&(c=this.f(a.s.cssText,b));a.cssText=c};p.prototype.A=function(a,b){var c=a.cssText,d=a.cssText;null==a.ta&&(a.ta=Kd.test(c));if(a.ta)if(null==a.X){a.X=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.X.push(e))}else{for(e=0;e<a.X.length;++e)d=b[a.X[e]],c=d(c);d=c}a.cssText=d};p.prototype.Z=function(a,b){var c={},d=this,e=[];S(a,function(a){a.s||d.c(a);var f=a.v||a.parsedSelector;b&&a.s.C&&f&&Jc.call(b,f)&&(d.b(a,
c),a=a.index,f=parseInt(a/32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{C:c,key:e}};p.prototype.ba=function(a,b,c,d){b.s||this.c(b);if(b.s.C){var e=N(a);a=e.is;e=e.T;e=a?t.f(a,e):"html";var f=b.parsedSelector,g=":host > *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));"shadow"===c&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)c=e,h&&(u&&!b.v&&(b.v=t.l(b,t.g,t.h(a),e)),c=b.v||e),d({bb:c,Va:h,jb:g})}};p.prototype.Y=
function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;S(b,function(b){e.ba(a,b,f,function(f){Jc.call(a.ib||a,f.bb)&&(f.Va?e.b(b,c):e.b(b,d))})},null,!0);return{$a:d,Ua:c}};p.prototype.aa=function(a,b,c){var d=this,e=N(a),f=t.f(e.is,e.T),g=new RegExp("(?:^|[^.#[:])"+(a.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=r.get(a).D;var h=this.h(e,c);return t.b(a,e,function(a){d.B(a,b);u||vc(a)||!a.cssText||(d.A(a,h),d.l(a,g,f,c))})};p.prototype.h=function(a,b){a=a.b;var c={};if(!u&&a)for(var d=
0,e=a[d];d<a.length;e=a[++d])this.j(e,b),c[e.keyframesName]=this.i(e);return c};p.prototype.i=function(a){return function(b){return b.replace(a.f,a.a)}};p.prototype.j=function(a,b){a.f=new RegExp(a.keyframesName,"g");a.a=a.keyframesName+"-"+b;a.v=a.v||a.selector;a.selector=a.v.replace(a.keyframesName,a.a)};p.prototype.l=function(a,b,c,d){a.v=a.v||a.selector;d="."+d;for(var e=a.v.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};p.prototype.o=
function(a,b,c){var d=a.getAttribute("class")||"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+b;d!==e&&la(a,e)};p.prototype.u=function(a,b,c,d){b=d?d.textContent||"":this.aa(a,b,c);var e=r.get(a),f=e.a;f&&!u&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));u?e.a?(e.a.textContent=b,d=e.a):b&&(d=Wa(b,c,a.shadowRoot,e.b)):d?d.parentNode||(Vd&&-1<b.indexOf("@media")&&(d.textContent=b),wc(d,null,e.b)):b&&(d=Wa(b,c,null,
e.b));d&&(d._useCount=d._useCount||0,e.a!=d&&d._useCount++,e.a=d);return d};p.prototype.m=function(a,b){var c=ka(a),d=this;a.textContent=R(c,function(a){var c=a.cssText=a.parsedCssText;a.s&&a.s.cssText&&(c=c.replace(D.ra,"").replace(D.va,""),a.cssText=d.f(c,b))})};hb.Object.defineProperties(p.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var J=new p,fb={},ra=window.customElements;if(ra&&!u){var Wd=ra.define;ra.define=function(a,b,c){var d=document.createComment(" Shady DOM styles for "+
a+" "),e=document.head;e.insertBefore(d,(M?M.nextSibling:null)||e.firstChild);M=d;fb[a]=d;return Wd.call(ra,a,b,c)}}aa.prototype.a=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.C[e]!==b[e])return!1}return!0};aa.prototype.b=function(a,b,c,d){var e=this.cache[a]||[];e.push({C:b,styleElement:c,w:d});e.length>this.c&&e.shift();this.cache[a]=e};aa.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this.a(e,b,c))return e}};if(!u){var Kc=new MutationObserver(yc),
Lc=function(a){Kc.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Lc(document);else{var gb=function(){Lc(document.body)};window.HTMLImports?window.HTMLImports.whenReady(gb):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){gb();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else gb()})}jb=function(){yc(Kc.takeRecords())}}var ma={},Ad=Promise.resolve(),
Xa=null,Ac=window.HTMLImports&&window.HTMLImports.whenReady||null,Ya,sa=null,Z=null;C.prototype.sa=function(){!this.enqueued&&Z&&(this.enqueued=!0,ib(Z))};C.prototype.b=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),this.sa())};C.prototype.a=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};C.prototype.c=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.a(c);if(d){var e=
d.__appliedElement;if(e)for(var f=0;f<d.attributes.length;f++){var g=d.attributes[f];e.setAttribute(g.name,g.value)}d=e||d;sa&&sa(d);c.__shadyCSSCachedStyle=d}}}return a};C.prototype.addCustomStyle=C.prototype.b;C.prototype.getStyleForCustomStyle=C.prototype.a;C.prototype.processStyles=C.prototype.c;Object.defineProperties(C.prototype,{transformCallback:{get:function(){return sa},set:function(a){sa=a}},validateCallback:{get:function(){return Z},set:function(a){var b=!1;Z||(b=!0);Z=a;b&&this.sa()}}});
var Mc=new aa;k.prototype.A=function(){jb()};k.prototype.Y=function(a){var b=this.m[a]=(this.m[a]||0)+1;return a+"-"+b};k.prototype.Ba=function(a){return ka(a)};k.prototype.Da=function(a){return R(a)};k.prototype.M=function(a){a=a.content.querySelectorAll("style");for(var b=[],c=0;c<a.length;c++){var d=a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};k.prototype.$=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||"":""};k.prototype.prepareTemplate=
function(a,b,c){if(!a.f){a.f=!0;a.name=b;a.extends=c;ma[b]=a;var d=this.$(a),e=this.M(a);c={is:b,extends:c,fb:d};u||t.a(a.content,b);this.c();var f=qa.test(e)||pa.test(e);qa.lastIndex=0;pa.lastIndex=0;e=Va(e);f&&w&&this.a&&this.a.transformRules(e,b);a._styleAst=e;a.g=d;d=[];w||(d=J.M(a._styleAst));if(!d.length||w)b=this.Z(c,a._styleAst,u?a.content:null,fb[b]),a.a=b;a.c=d}};k.prototype.Z=function(a,b,c,d){b=t.b(a,b);if(b.length)return Wa(b,a.is,c,d)};k.prototype.ba=function(a){var b=N(a),c=b.is;b=
b.T;var d=fb[c];c=ma[c];if(c){var e=c._styleAst;var f=c.c}return r.set(a,new r(e,d,f,0,b))};k.prototype.F=function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=yd)};k.prototype.G=function(){var a=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(b){a.u(b)},this.b.validateCallback=function(){requestAnimationFrame(function(){(a.b.enqueued||
a.i)&&a.f()})})};k.prototype.c=function(){this.F();this.G()};k.prototype.f=function(){this.c();if(this.b){var a=this.b.processStyles();this.b.enqueued&&(w?this.za(a):(this.o(this.g,this.h),this.B(a)),this.b.enqueued=!1,this.i&&!w&&this.styleDocument())}};k.prototype.styleElement=function(a,b){var c=N(a).is,d=r.get(a);d||(d=this.ba(a));this.j(a)||(this.i=!0);b&&(d.L=d.L||{},Object.assign(d.L,b));if(w){if(d.L){b=d.L;for(var e in b)null===e?a.style.removeProperty(e):a.style.setProperty(e,b[e])}if(((e=
ma[c])||this.j(a))&&e&&e.a&&!zc(e)){if(zc(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)this.c(),this.a&&this.a.transformRules(e._styleAst,c),e.a.textContent=t.b(a,d.D),zd(e);u&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=t.b(a,d.D));d.D=e._styleAst}}else this.o(a,d),d.ia&&d.ia.length&&this.I(a,d)};k.prototype.l=function(a){return(a=a.getRootNode().host)?r.get(a)?a:this.l(a):this.g};k.prototype.j=function(a){return a===this.g};k.prototype.I=function(a,b){var c=N(a).is,d=
Mc.fetch(c,b.H,b.ia),e=d?d.styleElement:null,f=b.w;b.w=d&&d.w||this.Y(c);e=J.u(a,b.H,b.w,e);u||J.o(a,b.w,f);d||Mc.b(c,b.H,e,b.w)};k.prototype.o=function(a,b){var c=this.l(a),d=r.get(c);c=Object.create(d.H||null);var e=J.Y(a,b.D);a=J.Z(d.D,a).C;Object.assign(c,e.Ua,a,e.$a);this.aa(c,b.L);J.$(c);b.H=c};k.prototype.aa=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};k.prototype.styleDocument=function(a){this.styleSubtree(this.g,a)};k.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;
(c||this.j(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);else if(a=a.children||a.childNodes)for(b=0;b<a.length;b++)this.styleSubtree(a[b])};k.prototype.za=function(a){for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);c&&this.ya(c)}};k.prototype.B=function(a){for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);c&&J.m(c,this.h.H)}};k.prototype.u=function(a){var b=this,c=ka(a);S(c,function(a){u?t.o(a):
t.G(a);w&&(b.c(),b.a&&b.a.transformRule(a))});w?a.textContent=R(c):this.h.D.rules.push(c)};k.prototype.ya=function(a){if(w&&this.a){var b=ka(a);this.c();this.a.transformRules(b);a.textContent=R(b)}};k.prototype.getComputedStyleValue=function(a,b){var c;w||(c=(r.get(a)||r.get(this.l(a))).H[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};k.prototype.Ca=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");
if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===t.c){c=d[e+1];break}}}c&&b.push(t.c,c);w||(c=r.get(a))&&c.w&&b.push(J.g,c.w);la(a,b.join(" "))};k.prototype.Aa=function(a){return r.get(a)};k.prototype.flush=k.prototype.A;k.prototype.prepareTemplate=k.prototype.prepareTemplate;k.prototype.styleElement=k.prototype.styleElement;k.prototype.styleDocument=k.prototype.styleDocument;k.prototype.styleSubtree=k.prototype.styleSubtree;k.prototype.getComputedStyleValue=k.prototype.getComputedStyleValue;
k.prototype.setElementClass=k.prototype.Ca;k.prototype._styleInfoForNode=k.prototype.Aa;k.prototype.transformCustomStyleForDocument=k.prototype.u;k.prototype.getStyleAst=k.prototype.Ba;k.prototype.styleAstToString=k.prototype.Da;k.prototype.flushCustomStyles=k.prototype.f;Object.defineProperties(k.prototype,{nativeShadow:{get:function(){return u}},nativeCss:{get:function(){return w}}});var F=new k;if(window.ShadyCSS){var Nc=window.ShadyCSS.ApplyShim;var Oc=window.ShadyCSS.CustomStyleInterface}window.ShadyCSS=
{ScopingShim:F,prepareTemplate:function(a,b,c){F.f();F.prepareTemplate(a,b,c)},styleSubtree:function(a,b){F.f();F.styleSubtree(a,b)},styleElement:function(a){F.f();F.styleElement(a)},styleDocument:function(a){F.f();F.styleDocument(a)},getComputedStyleValue:function(a,b){return F.getComputedStyleValue(a,b)},nativeCss:w,nativeShadow:u};Nc&&(window.ShadyCSS.ApplyShim=Nc);Oc&&(window.ShadyCSS.CustomStyleInterface=Oc);(function(){function a(){requestAnimationFrame(function(){window.WebComponents.ready=
!0;window.document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}function b(){a();c.removeEventListener("readystatechange",b)}var c=window.document;window.WebComponents=window.WebComponents||{};"loading"!==c.readyState?a():c.addEventListener("readystatechange",b)})()})();}).call(this);
wa:/\s+/g},u=!(window.ShadyDOM&&window.ShadyDOM.inUse);if(window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss)var w=window.ShadyCSS.nativeCss;else window.ShadyCSS?(uc(window.ShadyCSS),window.ShadyCSS=void 0):uc(window.WebComponents&&window.WebComponents.flags);var pa=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,qa=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Jd=/(--[\w-]+)\s*([:,;)]|$)/gi,Kd=/(animation\s*:)|(animation-name\s*:)/,
xd=/@media\s(.*)/,Ld=/\{[^}]*\}/g,M=null;q.prototype.a=function(a,b,c){a.__styleScoped?a.__styleScoped=null:this.i(a,b||"",c)};q.prototype.i=function(a,b,c){a.nodeType===Node.ELEMENT_NODE&&this.u(a,b,c);if(a="template"===a.localName?(a.content||a.hb).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this.i(a[d],b,c)};q.prototype.u=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=
a.getAttribute(Md);c?d&&(b=d.replace("style-scope","").replace(b,""),la(a,b)):la(a,(d?d+" ":"")+"style-scope "+b)}};q.prototype.b=function(a,b,c){var d=a.__cssBuild;u||"shady"===d?b=R(b,c):(a=N(a),b=this.F(b,a.is,a.T,c)+"\n\n");return b.trim()};q.prototype.F=function(a,b,c,d){var e=this.f(b,c);b=this.h(b);var f=this;return R(a,function(a){a.c||(f.M(a,b,e),a.c=!0);d&&d(a,b,e)})};q.prototype.h=function(a){return a?Nd+a:""};q.prototype.f=function(a,b){return b?"[is="+a+"]":a};q.prototype.M=function(a,
b,c){this.j(a,this.g,b,c)};q.prototype.j=function(a,b,c,d){a.selector=a.v=this.l(a,b,c,d)};q.prototype.l=function(a,b,c,d){var e=a.selector.split(Ec);if(!vc(a)){a=0;for(var f=e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(Ec)};q.prototype.g=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(Od,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(Pd,db+" $1");return a=a.replace(Qd,function(a,g,h){e||(a=d.A(h,g,b,c),e=e||a.stop,g=a.Ra,h=a.value);return g+h})};
q.prototype.A=function(a,b,c,d){var e=a.indexOf(eb);0<=a.indexOf(db)?a=this.I(a,d):0!==e&&(a=c?this.m(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(Rd,function(a,b){return" > "+b}))}a=a.replace(Sd,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,Ra:b,stop:f}};q.prototype.m=function(a,b){a=a.split(Fc);a[0]+=b;return a.join(Fc)};q.prototype.I=function(a,b){var c=a.match(Gc);return(c=c&&c[2].trim()||"")?c[0].match(Hc)?a.replace(Gc,function(a,c,f){return b+
f}):c.split(Hc)[0]===b?c:Td:a.replace(db,b)};q.prototype.G=function(a){a.selector=a.parsedSelector;this.o(a);this.j(a,this.B)};q.prototype.o=function(a){a.selector===Ud&&(a.selector="html")};q.prototype.B=function(a){return a.match(eb)?this.g(a,Ic):this.m(a.trim(),Ic)};hb.Object.defineProperties(q.prototype,{c:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Od=/:(nth[-\w]+)\(([^)]+)\)/,Ic=":not(.style-scope)",Ec=",",Qd=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Hc=/[[.:#*]/,
db=":host",Ud=":root",eb="::slotted",Pd=new RegExp("^("+eb+")"),Gc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Rd=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Sd=/(.*):dir\((?:(ltr|rtl))\)/,Nd=".",Fc=":",Md="class",Td="should_not_match",t=new q;r.get=function(a){return a?a.__styleInfo:null};r.set=function(a,b){return a.__styleInfo=b};r.prototype.c=function(){return this.D};r.prototype._getStyleRules=r.prototype.c;var Jc=function(a){return a.matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||
a.oMatchesSelector||a.webkitMatchesSelector}(window.Element.prototype),Vd=navigator.userAgent.match("Trident");p.prototype.M=function(a){var b=this,c={},d=[],e=0;S(a,function(a){b.c(a);a.index=e++;b.G(a.s.cssText,c)},function(a){d.push(a)});a.b=d;a=[];for(var f in c)a.push(f);return a};p.prototype.c=function(a){if(!a.s){var b={},c={};this.b(a,c)&&(b.C=c,a.rules=null);b.cssText=this.F(a);a.s=b}};p.prototype.b=function(a,b){var c=a.s;if(c){if(c.C)return Object.assign(b,c.C),!0}else{c=a.parsedCssText;
for(var d;a=pa.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}};p.prototype.F=function(a){return this.I(a.parsedCssText)};p.prototype.I=function(a){return a.replace(Ld,"").replace(pa,"")};p.prototype.G=function(a,b){for(var c;c=Jd.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};p.prototype.$=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c<b.length;c++)d=b[c],a[d]=this.a(a[d],a)};p.prototype.a=function(a,b){if(a)if(0<=a.indexOf(";"))a=this.f(a,
b);else{var c=this;a=xc(a,function(a,e,f,g){if(!e)return a+g;(e=c.a(b[e],b))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=c.a(b[f]||f,b)||f;return a+(e||"")+g})}return a&&a.trim()||""};p.prototype.f=function(a,b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){qa.lastIndex=0;if(e=qa.exec(d))d=this.a(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e);f=f.trim();f=this.a(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||""}return a.join(";")};
p.prototype.B=function(a,b){var c="";a.s||this.c(a);a.s.cssText&&(c=this.f(a.s.cssText,b));a.cssText=c};p.prototype.A=function(a,b){var c=a.cssText,d=a.cssText;null==a.ta&&(a.ta=Kd.test(c));if(a.ta)if(null==a.X){a.X=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.X.push(e))}else{for(e=0;e<a.X.length;++e)d=b[a.X[e]],c=d(c);d=c}a.cssText=d};p.prototype.Z=function(a,b){var c={},d=this,e=[];S(a,function(a){a.s||d.c(a);var f=a.v||a.parsedSelector;b&&a.s.C&&f&&Jc.call(b,f)&&(d.b(a,c),a=a.index,f=parseInt(a/
32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{C:c,key:e}};p.prototype.ba=function(a,b,c,d){b.s||this.c(b);if(b.s.C){var e=N(a);a=e.is;e=e.T;e=a?t.f(a,e):"html";var f=b.parsedSelector,g=":host > *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));"shadow"===c&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)c=e,h&&(u&&!b.v&&(b.v=t.l(b,t.g,t.h(a),e)),c=b.v||e),d({bb:c,Va:h,jb:g})}};p.prototype.Y=function(a,b){var c={},d={},
e=this,f=b&&b.__cssBuild;S(b,function(b){e.ba(a,b,f,function(f){Jc.call(a.ib||a,f.bb)&&(f.Va?e.b(b,c):e.b(b,d))})},null,!0);return{$a:d,Ua:c}};p.prototype.aa=function(a,b,c){var d=this,e=N(a),f=t.f(e.is,e.T),g=new RegExp("(?:^|[^.#[:])"+(a.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=r.get(a).D;var h=this.h(e,c);return t.b(a,e,function(a){d.B(a,b);u||vc(a)||!a.cssText||(d.A(a,h),d.l(a,g,f,c))})};p.prototype.h=function(a,b){a=a.b;var c={};if(!u&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this.j(e,
b),c[e.keyframesName]=this.i(e);return c};p.prototype.i=function(a){return function(b){return b.replace(a.f,a.a)}};p.prototype.j=function(a,b){a.f=new RegExp(a.keyframesName,"g");a.a=a.keyframesName+"-"+b;a.v=a.v||a.selector;a.selector=a.v.replace(a.keyframesName,a.a)};p.prototype.l=function(a,b,c,d){a.v=a.v||a.selector;d="."+d;for(var e=a.v.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};p.prototype.o=function(a,b,c){var d=a.getAttribute("class")||
"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+b;d!==e&&la(a,e)};p.prototype.u=function(a,b,c,d){b=d?d.textContent||"":this.aa(a,b,c);var e=r.get(a),f=e.a;f&&!u&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));u?e.a?(e.a.textContent=b,d=e.a):b&&(d=Wa(b,c,a.shadowRoot,e.b)):d?d.parentNode||(Vd&&-1<b.indexOf("@media")&&(d.textContent=b),wc(d,null,e.b)):b&&(d=Wa(b,c,null,e.b));d&&(d._useCount=d._useCount||0,e.a!=d&&d._useCount++,
e.a=d);return d};p.prototype.m=function(a,b){var c=ka(a),d=this;a.textContent=R(c,function(a){var c=a.cssText=a.parsedCssText;a.s&&a.s.cssText&&(c=c.replace(D.ra,"").replace(D.va,""),a.cssText=d.f(c,b))})};hb.Object.defineProperties(p.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var J=new p,fb={},ra=window.customElements;if(ra&&!u){var Wd=ra.define;ra.define=function(a,b,c){var d=document.createComment(" Shady DOM styles for "+a+" "),e=document.head;e.insertBefore(d,
(M?M.nextSibling:null)||e.firstChild);M=d;fb[a]=d;return Wd.call(ra,a,b,c)}}aa.prototype.a=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.C[e]!==b[e])return!1}return!0};aa.prototype.b=function(a,b,c,d){var e=this.cache[a]||[];e.push({C:b,styleElement:c,w:d});e.length>this.c&&e.shift();this.cache[a]=e};aa.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this.a(e,b,c))return e}};if(!u){var Kc=new MutationObserver(yc),Lc=function(a){Kc.observe(a,
{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Lc(document);else{var gb=function(){Lc(document.body)};window.HTMLImports?window.HTMLImports.whenReady(gb):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){gb();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else gb()})}jb=function(){yc(Kc.takeRecords())}}var ma={},Ad=Promise.resolve(),Xa=null,Ac=window.HTMLImports&&
window.HTMLImports.whenReady||null,Ya,sa=null,Z=null;C.prototype.sa=function(){!this.enqueued&&Z&&(this.enqueued=!0,ib(Z))};C.prototype.b=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),this.sa())};C.prototype.a=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};C.prototype.c=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.a(c);d&&(d=d.__appliedElement||d,sa&&sa(d),
c.__shadyCSSCachedStyle=d)}}return a};C.prototype.addCustomStyle=C.prototype.b;C.prototype.getStyleForCustomStyle=C.prototype.a;C.prototype.processStyles=C.prototype.c;Object.defineProperties(C.prototype,{transformCallback:{get:function(){return sa},set:function(a){sa=a}},validateCallback:{get:function(){return Z},set:function(a){var b=!1;Z||(b=!0);Z=a;b&&this.sa()}}});var Mc=new aa;k.prototype.A=function(){jb()};k.prototype.Y=function(a){var b=this.m[a]=(this.m[a]||0)+1;return a+"-"+b};k.prototype.Ba=
function(a){return ka(a)};k.prototype.Da=function(a){return R(a)};k.prototype.M=function(a){a=a.content.querySelectorAll("style");for(var b=[],c=0;c<a.length;c++){var d=a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};k.prototype.$=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||"":""};k.prototype.prepareTemplate=function(a,b,c){if(!a.f){a.f=!0;a.name=b;a.extends=c;ma[b]=a;var d=this.$(a),e=this.M(a);c={is:b,extends:c,fb:d};u||t.a(a.content,
b);this.c();var f=qa.test(e)||pa.test(e);qa.lastIndex=0;pa.lastIndex=0;e=Va(e);f&&w&&this.a&&this.a.transformRules(e,b);a._styleAst=e;a.g=d;d=[];w||(d=J.M(a._styleAst));if(!d.length||w)b=this.Z(c,a._styleAst,u?a.content:null,fb[b]),a.a=b;a.c=d}};k.prototype.Z=function(a,b,c,d){b=t.b(a,b);if(b.length)return Wa(b,a.is,c,d)};k.prototype.ba=function(a){var b=N(a),c=b.is;b=b.T;var d=fb[c];c=ma[c];if(c){var e=c._styleAst;var f=c.c}return r.set(a,new r(e,d,f,0,b))};k.prototype.F=function(){!this.a&&window.ShadyCSS&&
window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=yd)};k.prototype.G=function(){var a=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(b){a.u(b)},this.b.validateCallback=function(){requestAnimationFrame(function(){(a.b.enqueued||a.i)&&a.f()})})};k.prototype.c=function(){this.F();this.G()};k.prototype.f=function(){this.c();if(this.b){var a=this.b.processStyles();this.b.enqueued&&
(w?this.za(a):(this.o(this.g,this.h),this.B(a)),this.b.enqueued=!1,this.i&&!w&&this.styleDocument())}};k.prototype.styleElement=function(a,b){var c=N(a).is,d=r.get(a);d||(d=this.ba(a));this.j(a)||(this.i=!0);b&&(d.L=d.L||{},Object.assign(d.L,b));if(w){if(d.L){b=d.L;for(var e in b)null===e?a.style.removeProperty(e):a.style.setProperty(e,b[e])}if(((e=ma[c])||this.j(a))&&e&&e.a&&!zc(e)){if(zc(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)this.c(),this.a&&this.a.transformRules(e._styleAst,
c),e.a.textContent=t.b(a,d.D),zd(e);u&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=t.b(a,d.D));d.D=e._styleAst}}else this.o(a,d),d.ia&&d.ia.length&&this.I(a,d)};k.prototype.l=function(a){return(a=a.getRootNode().host)?r.get(a)?a:this.l(a):this.g};k.prototype.j=function(a){return a===this.g};k.prototype.I=function(a,b){var c=N(a).is,d=Mc.fetch(c,b.H,b.ia),e=d?d.styleElement:null,f=b.w;b.w=d&&d.w||this.Y(c);e=J.u(a,b.H,b.w,e);u||J.o(a,b.w,f);d||Mc.b(c,b.H,e,b.w)};k.prototype.o=function(a,
b){var c=this.l(a),d=r.get(c);c=Object.create(d.H||null);var e=J.Y(a,b.D);a=J.Z(d.D,a).C;Object.assign(c,e.Ua,a,e.$a);this.aa(c,b.L);J.$(c);b.H=c};k.prototype.aa=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};k.prototype.styleDocument=function(a){this.styleSubtree(this.g,a)};k.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;(c||this.j(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);else if(a=a.children||a.childNodes)for(b=
0;b<a.length;b++)this.styleSubtree(a[b])};k.prototype.za=function(a){for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);c&&this.ya(c)}};k.prototype.B=function(a){for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);c&&J.m(c,this.h.H)}};k.prototype.u=function(a){var b=this,c=ka(a);S(c,function(a){u?t.o(a):t.G(a);w&&(b.c(),b.a&&b.a.transformRule(a))});w?a.textContent=R(c):this.h.D.rules.push(c)};k.prototype.ya=function(a){if(w&&this.a){var b=ka(a);this.c();this.a.transformRules(b);
a.textContent=R(b)}};k.prototype.getComputedStyleValue=function(a,b){var c;w||(c=(r.get(a)||r.get(this.l(a))).H[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};k.prototype.Ca=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===t.c){c=d[e+1];break}}}c&&b.push(t.c,c);w||(c=r.get(a))&&c.w&&b.push(J.g,c.w);la(a,b.join(" "))};k.prototype.Aa=function(a){return r.get(a)};
k.prototype.flush=k.prototype.A;k.prototype.prepareTemplate=k.prototype.prepareTemplate;k.prototype.styleElement=k.prototype.styleElement;k.prototype.styleDocument=k.prototype.styleDocument;k.prototype.styleSubtree=k.prototype.styleSubtree;k.prototype.getComputedStyleValue=k.prototype.getComputedStyleValue;k.prototype.setElementClass=k.prototype.Ca;k.prototype._styleInfoForNode=k.prototype.Aa;k.prototype.transformCustomStyleForDocument=k.prototype.u;k.prototype.getStyleAst=k.prototype.Ba;k.prototype.styleAstToString=
k.prototype.Da;k.prototype.flushCustomStyles=k.prototype.f;Object.defineProperties(k.prototype,{nativeShadow:{get:function(){return u}},nativeCss:{get:function(){return w}}});var F=new k;if(window.ShadyCSS){var Nc=window.ShadyCSS.ApplyShim;var Oc=window.ShadyCSS.CustomStyleInterface}window.ShadyCSS={ScopingShim:F,prepareTemplate:function(a,b,c){F.f();F.prepareTemplate(a,b,c)},styleSubtree:function(a,b){F.f();F.styleSubtree(a,b)},styleElement:function(a){F.f();F.styleElement(a)},styleDocument:function(a){F.f();
F.styleDocument(a)},getComputedStyleValue:function(a,b){return F.getComputedStyleValue(a,b)},nativeCss:w,nativeShadow:u};Nc&&(window.ShadyCSS.ApplyShim=Nc);Oc&&(window.ShadyCSS.CustomStyleInterface=Oc);(function(){function a(){requestAnimationFrame(function(){window.WebComponents.ready=!0;window.document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}function b(){a();c.removeEventListener("readystatechange",b)}var c=window.document;window.WebComponents=window.WebComponents||{};
"loading"!==c.readyState?a():c.addEventListener("readystatechange",b)})()})();}).call(this);
//# sourceMappingURL=webcomponents-sd-ce.js.map

File diff suppressed because one or more lines are too long