/** @license @nocompile Copyright (c) 2018 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 */ (function(){/* Copyright (c) 2016 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,n="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};function da(){da=function(){};n.Symbol||(n.Symbol=ea)}var ea=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(); function fa(){da();var a=n.Symbol.iterator;a||(a=n.Symbol.iterator=n.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ca(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(this)}});fa=function(){}}function ha(a){var b=0;return ia(function(){return b]/g;function Ia(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function Ja(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&La[k.localName]?h:h.replace(Ha,Ia);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h), Error("not implemented");}}c+=h}return c};var Na=t.i,Oa={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Pa={};function Qa(a){Pa[a]=function(b){return b["__shady_native_"+a]}}function Ra(a,b){y(a,b,"__shady_native_");for(var c in b)Qa(c)}function B(a,b){b=void 0===b?[]:b;for(var c=0;ce.assignedNodes.length&&(e.K=!0)}e.K&&(e.K=!1,oc(this,c))}c=this.a;b=[];for(e=0;eb.indexOf(d))||b.push(d);for(c=0;c "+b}))}a=a.replace(Pd,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,ka:b,stop:f}} function Nd(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Rd=/[[.:#*]/,Jd=/^(::slotted)/,Qd=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Od=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Pd=/(.*):dir\((?:(ltr|rtl))\)/,Hd=/:(?:matches|any|-(?:webkit|moz)-any)/,T=new vd;function V(a,b,c,d,e){this.s=a||null;this.b=b||null;this.U=c||[];this.j=null;this.cssBuild=e||"";this.D=d||"";this.a=this.l=this.o=null}function W(a){return a?a.__styleInfo:null}function Td(a,b){return a.__styleInfo=b}V.prototype.c=function(){return this.s};V.prototype._getStyleRules=V.prototype.c;function Ud(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var Vd=navigator.userAgent.match("Trident");function Wd(){}function Xd(a){var b={},c=[],d=0;P(a,function(a){Yd(a);a.index=d++;a=a.f.cssText;for(var c;c=fd.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.b=c;a=[];for(var e in b)a.push(e);return a} function Yd(a){if(!a.f){var b={},c={};Zd(a,c)&&(b.m=c,a.rules=null);b.cssText=a.parsedCssText.replace(id,"").replace(dd,"");a.f=b}}function Zd(a,b){var c=a.f;if(c){if(c.m)return Object.assign(b,c.m),!0}else{c=a.parsedCssText;for(var d;a=dd.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} function $d(a,b,c){b&&(b=0<=b.indexOf(";")?ae(a,b,c):qd(b,function(b,e,f,g){if(!e)return b+g;(e=$d(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=$d(a,c[f]||f,c)||f;return b+(e||"")+g}));return b&&b.trim()||""} function ae(a,b,c){b=b.split(";");for(var d=0,e,f;d *"===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));if(g||h)c=e,h&&(b.g||(b.g=Dd(T,b,T.b,a?"."+a:"",e)),c=b.g||e),d({V:c,pa:h,ya:g})}}function de(a,b,c){var d={},e={};P(b,function(b){ce(a,b,c,function(c){Ud.call(a._element||a,c.V)&&(c.pa?Zd(b,d):Zd(b,e))})},null,!0);return{ra:e,oa:d}} function ee(a,b,c,d){var e=R(b),f=Cd(e.is,e.D),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=W(b);e=h.s;h=h.cssBuild;var k=fe(e,d);return Ad(b,e,function(b){var e="";b.f||Yd(b);b.f.cssText&&(e=ae(a,b.f.cssText,c));b.cssText=e;if(!L&&!ld(b)&&b.cssText){var h=e=b.cssText;null==b.Z&&(b.Z=gd.test(e));if(b.Z)if(null==b.L){b.L=[];for(var l in k)h=k[l],h=h(e),e!==h&&(e=h,b.L.push(l))}else{for(l=0;l=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));L?k.a?(k.a.textContent=h,g=k.a):h&&(g=md(h,f,a.shadowRoot,k.b)):g?g.parentNode||(Vd&&-1