text: (function(){/*
  
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
  The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
  Code distributed by Google as part of the polymer project is also
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
  */
  'use strict';var m,aa="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function n(){this.end=this.start=0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""}
  function p(a){var b=a=a.replace(ba,"").replace(ca,""),c=new n;c.start=0;c.end=b.length;for(var e=c,d=0,f=b.length;d<f;d++)if("{"===b[d]){e.rules||(e.rules=[]);var g=e,h=g.rules[g.rules.length-1]||null;e=new n;e.start=d+1;e.parent=g;e.previous=h;g.rules.push(e)}else"}"===b[d]&&(e.end=d+1,e=e.parent||c);return da(c,a)}
  function da(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=ea(c),c=c.replace(fa," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=ha:c.match(ia)&&(a.type=ja,a.keyframesName=a.selector.split(fa).pop()):a.type=0===c.indexOf("--")?ka:la);if(c=a.rules)for(var e=0,d=c.length,f=void 0;e<d&&(f=c[e]);e++)da(f,
  b);return a}function ea(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(b,c){b=c;for(c=6-b.length;c--;)b="0"+b;return"\\"+b})}
  function ma(a,b,c){c=void 0===c?"":c;var e="";if(a.cssText||a.rules){var d=a.rules,f;if(f=d)f=d[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=d.length,h=void 0;f<g&&(h=d[f]);f++)e=ma(h,b,e)}else b?b=a.cssText:(b=a.cssText,b=b.replace(na,"").replace(oa,""),b=b.replace(pa,"").replace(qa,"")),(e=b.trim())&&(e="  "+e+"\n")}e&&(a.selector&&(c+=a.selector+" {\n"),c+=e,a.selector&&(c+="}\n\n"));return c}
  var la=1,ja=7,ha=4,ka=1E3,ba=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,ca=/@import[^;]*;/gim,na=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,oa=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,pa=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,qa=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,ia=/^@[^\s]*keyframes/,fa=/\s+/g;var r=!(window.ShadyDOM&&window.ShadyDOM.inUse),ra;function sa(a){ra=a&&a.shimcssproperties?!1:r||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var u;window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(u=window.ShadyCSS.cssBuild);var v=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);
  window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?ra=window.ShadyCSS.nativeCss:window.ShadyCSS?(sa(window.ShadyCSS),window.ShadyCSS=void 0):sa(window.WebComponents&&window.WebComponents.flags);var w=ra;var y=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,z=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,ta=/(--[\w-]+)\s*([:,;)]|$)/gi,ua=/(animation\s*:)|(animation-name\s*:)/,va=/@media\s(.*)/,wa=/\{[^}]*\}/g;var xa=new Set;function A(a,b){if(!a)return"";"string"===typeof a&&(a=p(a));b&&B(a,b);return ma(a,w)}function C(a){!a.__cssRules&&a.textContent&&(a.__cssRules=p(a.textContent));return a.__cssRules||null}function ya(a){return!!a.parent&&a.parent.type===ja}function B(a,b,c,e){if(a){var d=!1,f=a.type;if(e&&f===ha){var g=a.selector.match(va);g&&(window.matchMedia(g[1]).matches||(d=!0))}f===la?b(a):c&&f===ja?c(a):f===ka&&(d=!0);if((a=a.rules)&&!d)for(d=0,f=a.length,g=void 0;d<f&&(g=a[d]);d++)B(g,b,c,e)}}
  function za(a,b,c,e){var d=document.createElement("style");b&&d.setAttribute("scope",b);d.textContent=a;Aa(d,c,e);return d}var D=null;function Ba(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(D?D.nextSibling:null)||b.firstChild);return D=a}function Aa(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);D?a.compareDocumentPosition(D)===Node.DOCUMENT_POSITION_PRECEDING&&(D=a):D=a}
  function Ca(a,b){for(var c=0,e=a.length;b<e;b++)if("("===a[b])c++;else if(")"===a[b]&&0===--c)return b;return-1}function Da(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var e=Ca(a,c+3),d=a.substring(c+4,e);c=a.substring(0,c);a=Da(a.substring(e+1),b);e=d.indexOf(",");return-1===e?b(c,d.trim(),"",a):b(c,d.substring(0,e).trim(),d.substring(e+1).trim(),a)}function E(a,b){r?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}
  var F=window.ShadyDOM&&window.ShadyDOM.wrap||function(a){return a};function G(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,s:c}}function Ea(a){for(var b=[],c="",e=0;0<=e&&e<a.length;e++)if("("===a[e]){var d=Ca(a,e);c+=a.slice(e,d+1);e=d}else","===a[e]?(b.push(c),c=""):c+=a[e];c&&b.push(c);return b}
  function H(a){if(void 0!==u)return u;if(void 0===a.__cssBuild){var b=a.getAttribute("css-build");if(b)a.__cssBuild=b;else{a:{b="template"===a.localName?a.content.firstChild:a.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),"css-build"===b[0])){b=b[1];break a}b=""}if(""!==b){var c="template"===a.localName?a.content.firstChild:a.firstChild;c.parentNode.removeChild(c)}a.__cssBuild=b}}return a.__cssBuild||""}
  function Fa(a){a=void 0===a?"":a;return""!==a&&w?r?"shadow"===a:"shady"===a:!1};function I(){}function Ga(a,b){J(K,a,function(c){L(c,b||"")})}function J(a,b,c){b.nodeType===Node.ELEMENT_NODE&&c(b);var e;"template"===b.localName?e=(b.content||b._content||b).childNodes:e=b.children||b.childNodes;if(e)for(b=0;b<e.length;b++)J(a,e[b],c)}
  function L(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 e=a.getAttribute("class");c?e&&(b=e.replace("style-scope","").replace(b,""),E(a,b)):E(a,(e?e+" ":"")+"style-scope "+b)}}function Ha(a,b,c){J(K,a,function(e){L(e,b,!0);L(e,c)})}function Ia(a,b){J(K,a,function(c){L(c,b||"",!0)})}
  function M(a,b,c,e,d){var f=K;d=void 0===d?"":d;""===d&&(r||"shady"===(void 0===e?"":e)?d=A(b,c):(a=G(a),d=Ja(f,b,a.is,a.s,c)+"\n\n"));return d.trim()}function Ja(a,b,c,e,d){var f=Ka(c,e);c=c?"."+c:"";return A(b,function(g){g.c||(g.selector=g.g=La(a,g,a.b,c,f),g.c=!0);d&&d(g,c,f)})}function Ka(a,b){return b?"[is="+a+"]":a}function La(a,b,c,e,d){var f=Ea(b.selector);if(!ya(b)){b=0;for(var g=f.length,h=void 0;b<g&&(h=f[b]);b++)f[b]=c.call(a,h,e,d)}return f.filter(function(l){return!!l}).join(",")}
  function Ma(a){return a.replace(Na,function(b,c,e){-1<e.indexOf("+")?e=e.replace(/\+/g,"___"):-1<e.indexOf("___")&&(e=e.replace(/___/g,"+"));return":"+c+"("+e+")"})}function Oa(a){for(var b=[],c;c=a.match(Pa);){var e=c.index,d=Ca(a,e);if(-1===d)throw Error(c.input+" selector missing ')'");c=a.slice(e,d+1);a=a.replace(c,"\ue000");b.push(c)}return{A:a,matches:b}}function Qa(a,b){var c=a.split("\ue000");return b.reduce(function(e,d,f){return e+d+c[f+1]},c[0])}
  I.prototype.b=function(a,b,c){var e=!1;a=a.trim();var d=Na.test(a);d&&(a=a.replace(Na,function(h,l,k){return":"+l+"("+k.replace(/\s/g,"")+")"}),a=Ma(a));var f=Pa.test(a);if(f){var g=Oa(a);a=g.A;g=g.matches}a=a.replace(Ra,":host $1");a=a.replace(Sa,function(h,l,k){e||(h=Ta(k,l,b,c),e=e||h.stop,l=h.G,k=h.value);return l+k});f&&(a=Qa(a,g));d&&(a=Ma(a));return a=a.replace(Ua,function(h,l,k,q){return'[dir="'+k+'"] '+l+q+", "+l+'[dir="'+k+'"]'+q})};
  function Ta(a,b,c,e){var d=a.indexOf("::slotted");0<=a.indexOf(":host")?a=Va(a,e):0!==d&&(a=c?Wa(a,c):a);c=!1;0<=d&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(Xa,function(g,h){return" > "+h}))}return{value:a,G:b,stop:f}}function Wa(a,b){a=a.split(/(\[.+?\])/);for(var c=[],e=0;e<a.length;e++)if(1===e%2)c.push(a[e]);else{var d=a[e];if(""!==d||e!==a.length-1)d=d.split(":"),d[0]+=b,c.push(d.join(":"))}return c.join("")}
  function Va(a,b){var c=a.match(Ya);return(c=c&&c[2].trim()||"")?c[0].match(Za)?a.replace(Ya,function(e,d,f){return b+f}):c.split(Za)[0]===b?c:"should_not_match":a.replace(":host",b)}function $a(a){":root"===a.selector&&(a.selector="html")}I.prototype.c=function(a){return a.match(":host")?"":a.match("::slotted")?this.b(a,":not(.style-scope)"):Wa(a.trim(),":not(.style-scope)")};aa.Object.defineProperties(I.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
  var Na=/:(nth[-\w]+)\(([^)]+)\)/,Sa=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Za=/[[.:#*]/,Ra=/^(::slotted)/,Ya=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Xa=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ua=/(.*):dir\((?:(ltr|rtl))\)(.*)/,Pa=/:(?:matches|any|-(?:webkit|moz)-any)/,K=new I;function N(a,b,c,e,d){this.l=a||null;this.b=b||null;this.w=c||[];this.i=null;this.cssBuild=d||"";this.s=e||"";this.a=this.j=this.o=null}function O(a){return a?a.__styleInfo:null}function ab(a,b){return a.__styleInfo=b}N.prototype.c=function(){return this.l};N.prototype._getStyleRules=N.prototype.c;function bb(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var cb=/:host\s*>\s*/,db=navigator.userAgent.match("Trident");function eb(){}function fb(a){var b={},c=[],e=0;B(a,function(f){P(f);f.index=e++;f=f.f.cssText;for(var g;g=ta.exec(f);){var h=g[1];":"!==g[2]&&(b[h]=!0)}},function(f){c.push(f)});a.b=c;a=[];for(var d in b)a.push(d);return a}
  function P(a){if(!a.f){var b={},c={};Q(a,c)&&(b.m=c,a.rules=null);b.cssText=a.parsedCssText.replace(wa,"").replace(y,"");a.f=b}}function Q(a,b){var c=a.f;if(c){if(c.m)return Object.assign(b,c.m),!0}else{c=a.parsedCssText;for(var e;a=y.exec(c);){e=(a[2]||a[3]).trim();if("inherit"!==e||"unset"!==e)b[a[1].trim()]=e;e=!0}return e}}
  function R(a,b,c){b&&(b=0<=b.indexOf(";")?gb(a,b,c):Da(b,function(e,d,f,g){if(!d)return e+g;(d=R(a,c[d],c))&&"initial"!==d?"apply-shim-inherit"===d&&(d="inherit"):d=R(a,c[f]||f,c)||f;return e+(d||"")+g}));return b&&b.trim()||""}
  function gb(a,b,c){b=b.split(";");for(var e=0,d,f;e<b.length;e++)if(d=b[e]){z.lastIndex=0;if(f=z.exec(d))d=R(a,c[f[1]],c);else if(f=d.indexOf(":"),-1!==f){var g=d.substring(f);g=g.trim();g=R(a,g,c)||g;d=d.substring(0,f)+g}b[e]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||""}return b.join(";")}
  function hb(a,b){var c={},e=[];B(a,function(d){d.f||P(d);var f=d.g||d.parsedSelector;b&&d.f.m&&f&&bb.call(b,f)&&(Q(d,c),d=d.index,f=parseInt(d/32,10),e[f]=(e[f]||0)|1<<d%32)},null,!0);return{m:c,key:e}}
  function ib(a,b,c,e){b.f||P(b);if(b.f.m){var d=G(a);a=d.is;d=d.s;d=a?Ka(a,d):"html";var f=b.parsedSelector;var g=!!f.match(cb)||"html"===d&&-1<f.indexOf("html");var h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===d+" > *."+d||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(d));if(g||h)c=d,h&&(b.g||(b.g=La(K,b,K.b,a?"."+a:"",d)),c=b.g||d),g&&"html"===d&&(c=b.g||b.u),e({A:c,K:h,T:g})}}
  function jb(a,b,c){var e={},d={};B(b,function(f){ib(a,f,c,function(g){bb.call(a._element||a,g.A)&&(g.K?Q(f,e):Q(f,d))})},null,!0);return{M:d,J:e}}
  function kb(a,b,c,e){var d=G(b),f=Ka(d.is,d.s),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=O(b);d=h.l;h=h.cssBuild;var l=lb(d,e);return M(b,d,function(k){var q="";k.f||P(k);k.f.cssText&&(q=gb(a,k.f.cssText,c));k.cssText=q;if(!r&&!ya(k)&&k.cssText){var t=q=k.cssText;null==k.C&&(k.C=ua.test(q));if(k.C)if(null==k.v){k.v=[];for(var x in l)t=l[x],t=t(q),q!==t&&(q=t,k.v.push(x))}else{for(x=0;x<k.v.length;++x)t=l[k.v[x]],q=t(q);t=q}k.cssText=t;k.g=k.g||k.selector;
  q="."+e;x=Ea(k.g);t=0;for(var Db=x.length,U=void 0;t<Db&&(U=x[t]);t++)x[t]=U.match(g)?U.replace(f,q):q+" "+U;k.selector=x.join(",")}},h)}function lb(a,b){a=a.b;var c={};if(!r&&a)for(var e=0,d=a[e];e<a.length;d=a[++e]){var f=d,g=b;f.h=new RegExp("\\b"+f.keyframesName+"(?!\\B|-)","g");f.a=f.keyframesName+"-"+g;f.g=f.g||f.selector;f.selector=f.g.replace(f.keyframesName,f.a);c[d.keyframesName]=mb(d)}return c}function mb(a){return function(b){return b.replace(a.h,a.a)}}
  function nb(a,b){var c=S,e=C(a);a.textContent=A(e,function(d){var f=d.cssText=d.parsedCssText;d.f&&d.f.cssText&&(f=f.replace(na,"").replace(oa,""),d.cssText=gb(c,f,b))})}aa.Object.defineProperties(eb.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var S=new eb;var T={},V=window.customElements;if(V&&!r&&!v){var ob=V.define;V.define=function(a,b,c){T[a]||(T[a]=Ba(a));ob.call(V,a,b,c)}};function pb(){this.cache={}}pb.prototype.store=function(a,b,c,e){var d=this.cache[a]||[];d.push({m:b,styleElement:c,j:e});100<d.length&&d.shift();this.cache[a]=d};function qb(){}var rb=new RegExp(K.a+"\\s*([^\\s]*)");function sb(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(rb))?a[1]:""}function tb(a){var b=F(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?G(a).is:""}
  function ub(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head)for(var e=0;e<c.addedNodes.length;e++){var d=c.addedNodes[e];if(d.nodeType===Node.ELEMENT_NODE){var f=d.getRootNode(),g=sb(d);if(g&&f===d.ownerDocument&&("style"!==d.localName&&"template"!==d.localName||""===H(d)))Ia(d,g);else if(f instanceof ShadowRoot)for(f=tb(d),f!==g&&Ha(d,g,f),d=window.ShadyDOM.nativeMethods.querySelectorAll.call(d,":not(."+K.a+")"),g=0;g<d.length;g++){f=d[g];
  var h=tb(f);h&&L(f,h)}}}}}
  if(!(r||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var vb=new MutationObserver(ub),wb=function(a){vb.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)wb(document);else{var xb=function(){wb(document.body)};window.HTMLImports?window.HTMLImports.whenReady(xb):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){xb();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",
  a)}else xb()})}qb=function(){ub(vb.takeRecords())}};var W={};var yb=Promise.resolve();function zb(a){if(a=W[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}function Ab(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function Bb(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,yb.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};var Cb={},Eb=new pb;function X(){this.B={};this.c=document.documentElement;var a=new n;a.rules=[];this.h=ab(this.c,new N(a));this.u=!1;this.a=this.b=null}m=X.prototype;m.flush=function(){qb()};m.I=function(a){return C(a)};m.R=function(a){return A(a)};m.prepareTemplate=function(a,b,c){this.prepareTemplateDom(a,b);this.prepareTemplateStyles(a,b,c)};
  m.prepareTemplateStyles=function(a,b,c){if(!a._prepared&&!v){r||T[b]||(T[b]=Ba(b));a._prepared=!0;a.name=b;a.extends=c;W[b]=a;var e=H(a),d=Fa(e);c={is:b,extends:c};for(var f=[],g=a.content.querySelectorAll("style"),h=0;h<g.length;h++){var l=g[h];if(l.hasAttribute("shady-unscoped")){if(!r){var k=l.textContent;xa.has(k)||(xa.add(k),k=l.cloneNode(!0),document.head.appendChild(k));l.parentNode.removeChild(l)}}else f.push(l.textContent),l.parentNode.removeChild(l)}f=f.join("").trim()+(Cb[b]||"");Y(this);
  if(!d){if(g=!e)g=z.test(f)||y.test(f),z.lastIndex=0,y.lastIndex=0;h=p(f);g&&w&&this.b&&this.b.transformRules(h,b);a._styleAst=h}g=[];w||(g=fb(a._styleAst));if(!g.length||w)h=r?a.content:null,b=T[b]||null,e=M(c,a._styleAst,null,e,d?f:""),e=e.length?za(e,c.is,h,b):null,a._style=e;a.a=g}};m.L=function(a,b){Cb[b]=a.join(" ")};m.prepareTemplateDom=function(a,b){if(!v){var c=H(a);r||"shady"===c||a._domPrepared||(a._domPrepared=!0,Ga(a.content,b))}};
  function Fb(a){var b=G(a),c=b.is;b=b.s;var e=T[c]||null,d=W[c];if(d){c=d._styleAst;var f=d.a;d=H(d);b=new N(c,e,f,b,d);ab(a,b);return b}}function Gb(a){!a.a&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(a.a=window.ShadyCSS.CustomStyleInterface,a.a.transformCallback=function(b){a.D(b)},a.a.validateCallback=function(){requestAnimationFrame(function(){(a.a.enqueued||a.u)&&a.flushCustomStyles()})})}
  function Y(a){!a.b&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(a.b=window.ShadyCSS.ApplyShim,a.b.invalidCallback=zb);Gb(a)}
  m.flushCustomStyles=function(){if(!v&&(Y(this),this.a)){var a=this.a.processStyles();if(this.a.enqueued&&!Fa(this.h.cssBuild)){if(w){if(!this.h.cssBuild)for(var b=0;b<a.length;b++){var c=this.a.getStyleForCustomStyle(a[b]);if(c&&w&&this.b){var e=C(c);Y(this);this.b.transformRules(e);c.textContent=A(e)}}}else{Hb(this,a);Ib(this,this.c,this.h);for(b=0;b<a.length;b++)(c=this.a.getStyleForCustomStyle(a[b]))&&nb(c,this.h.o);this.u&&this.styleDocument()}this.a.enqueued=!1}}};
  function Hb(a,b){b=b.map(function(c){return a.a.getStyleForCustomStyle(c)}).filter(function(c){return!!c});b.sort(function(c,e){c=e.compareDocumentPosition(c);return c&Node.DOCUMENT_POSITION_FOLLOWING?1:c&Node.DOCUMENT_POSITION_PRECEDING?-1:0});a.h.l.rules=b.map(function(c){return C(c)})}
  m.styleElement=function(a,b){if(v){if(b){O(a)||ab(a,new N(null));var c=O(a);c.i=c.i||{};Object.assign(c.i,b);Jb(this,a,c)}}else if(c=O(a)||Fb(a))if(a!==this.c&&(this.u=!0),b&&(c.i=c.i||{},Object.assign(c.i,b)),w)Jb(this,a,c);else if(this.flush(),Ib(this,a,c),c.w&&c.w.length){b=G(a).is;var e;a:{if(e=Eb.cache[b])for(var d=e.length-1;0<=d;d--){var f=e[d];b:{var g=c.w;for(var h=0;h<g.length;h++){var l=g[h];if(f.m[l]!==c.o[l]){g=!1;break b}}g=!0}if(g){e=f;break a}}e=void 0}g=e?e.styleElement:null;d=c.j;
  (f=e&&e.j)||(f=this.B[b]=(this.B[b]||0)+1,f=b+"-"+f);c.j=f;f=c.j;h=S;h=g?g.textContent||"":kb(h,a,c.o,f);l=O(a);var k=l.a;k&&!r&&k!==g&&(k._useCount--,0>=k._useCount&&k.parentNode&&k.parentNode.removeChild(k));r?l.a?(l.a.textContent=h,g=l.a):h&&(g=za(h,f,a.shadowRoot,l.b)):g?g.parentNode||(db&&-1<h.indexOf("@media")&&(g.textContent=h),Aa(g,null,l.b)):h&&(g=za(h,f,null,l.b));g&&(g._useCount=g._useCount||0,l.a!=g&&g._useCount++,l.a=g);f=g;r||(g=c.j,l=h=a.getAttribute("class")||"",d&&(l=h.replace(new RegExp("\\s*x-scope\\s*"+
  d+"\\s*","g")," ")),l+=(l?" ":"")+"x-scope "+g,h!==l&&E(a,l));e||Eb.store(b,c.o,f,c.j)}};
  function Jb(a,b,c){var e=G(b).is;if(c.i){var d=c.i,f;for(f in d)null===f?b.style.removeProperty(f):b.style.setProperty(f,d[f])}d=W[e];if(!(!d&&b!==a.c||d&&""!==H(d))&&d&&d._style&&!Ab(d)){if(Ab(d)||d._applyShimValidatingVersion!==d._applyShimNextVersion)Y(a),a.b&&a.b.transformRules(d._styleAst,e),d._style.textContent=M(b,c.l),Bb(d);r&&(a=b.shadowRoot)&&(a=a.querySelector("style"))&&(a.textContent=M(b,c.l));c.l=d._styleAst}}
  function Kb(a,b){return(b=F(b).getRootNode().host)?O(b)||Fb(b)?b:Kb(a,b):a.c}function Ib(a,b,c){var e=Kb(a,b),d=O(e),f=d.o;e===a.c||f||(Ib(a,e,d),f=d.o);a=Object.create(f||null);e=jb(b,c.l,c.cssBuild);b=hb(d.l,b).m;Object.assign(a,e.J,b,e.M);b=c.i;for(var g in b)if((d=b[g])||0===d)a[g]=d;g=S;b=Object.getOwnPropertyNames(a);for(d=0;d<b.length;d++)e=b[d],a[e]=R(g,a[e],a);c.o=a}m.styleDocument=function(a){this.styleSubtree(this.c,a)};
  m.styleSubtree=function(a,b){var c=F(a),e=c.shadowRoot,d=a===this.c;(e||d)&&this.styleElement(a,b);if(a=d?c:e)for(a=Array.from(a.querySelectorAll("*")).filter(function(f){return F(f).shadowRoot}),b=0;b<a.length;b++)this.styleSubtree(a[b])};
  m.D=function(a){var b=this,c=H(a);c!==this.h.cssBuild&&(this.h.cssBuild=c);if(!Fa(c)){var e=C(a);B(e,function(d){if(r)$a(d);else{var f=K;d.selector=d.parsedSelector;$a(d);d.selector=d.g=La(f,d,f.c,void 0,void 0)}w&&""===c&&(Y(b),b.b&&b.b.transformRule(d))});w?a.textContent=A(e):this.h.l.rules.push(e)}};m.getComputedStyleValue=function(a,b){var c;w||(c=(O(a)||O(Kb(this,a))).o[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};
  m.P=function(a,b){var c=F(a).getRootNode(),e;b?e=("string"===typeof b?b:String(b)).split(/\s/):e=[];b=c.host&&c.host.localName;if(!b&&(c=a.getAttribute("class"))){c=c.split(/\s/);for(var d=0;d<c.length;d++)if(c[d]===K.a){b=c[d+1];break}}b&&e.push(K.a,b);w||(b=O(a))&&b.j&&e.push(S.a,b.j);E(a,e.join(" "))};m.F=function(a){return O(a)};m.O=function(a,b){L(a,b)};m.S=function(a,b){L(a,b,!0)};m.N=function(a){return tb(a)};m.H=function(a){return sb(a)};X.prototype.flush=X.prototype.flush;
  X.prototype.prepareTemplate=X.prototype.prepareTemplate;X.prototype.styleElement=X.prototype.styleElement;X.prototype.styleDocument=X.prototype.styleDocument;X.prototype.styleSubtree=X.prototype.styleSubtree;X.prototype.getComputedStyleValue=X.prototype.getComputedStyleValue;X.prototype.setElementClass=X.prototype.P;X.prototype._styleInfoForNode=X.prototype.F;X.prototype.transformCustomStyleForDocument=X.prototype.D;X.prototype.getStyleAst=X.prototype.I;X.prototype.styleAstToString=X.prototype.R;
  X.prototype.flushCustomStyles=X.prototype.flushCustomStyles;X.prototype.scopeNode=X.prototype.O;X.prototype.unscopeNode=X.prototype.S;X.prototype.scopeForNode=X.prototype.N;X.prototype.currentScopeForNode=X.prototype.H;X.prototype.prepareAdoptedCssText=X.prototype.L;Object.defineProperties(X.prototype,{nativeShadow:{get:function(){return r}},nativeCss:{get:function(){return w}}});var Z=new X,Lb,Mb;window.ShadyCSS&&(Lb=window.ShadyCSS.ApplyShim,Mb=window.ShadyCSS.CustomStyleInterface);
  window.ShadyCSS={ScopingShim:Z,prepareTemplate:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplate(a,b,c)},prepareTemplateDom:function(a,b){Z.prepareTemplateDom(a,b)},prepareTemplateStyles:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplateStyles(a,b,c)},styleSubtree:function(a,b){Z.flushCustomStyles();Z.styleSubtree(a,b)},styleElement:function(a){Z.flushCustomStyles();Z.styleElement(a)},styleDocument:function(a){Z.flushCustomStyles();Z.styleDocument(a)},flushCustomStyles:function(){Z.flushCustomStyles()},
  getComputedStyleValue:function(a,b){return Z.getComputedStyleValue(a,b)},nativeCss:w,nativeShadow:r,cssBuild:u,disableRuntime:v};Lb&&(window.ShadyCSS.ApplyShim=Lb);Mb&&(window.ShadyCSS.CustomStyleInterface=Mb);}).call(this);
  
  //# sourceMappingURL=scoping-shim.min.js.map
  