/** @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 n,q="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};function ca(){ca=function(){};q.Symbol||(q.Symbol=da)}var da=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(); function ea(){ca();var a=q.Symbol.iterator;a||(a=q.Symbol.iterator=q.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ba(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(this)}});ea=function(){}}function fa(a){var b=0;return ha(function(){return b]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,F={ua:function(a,b){a.href&&a.setAttribute("href",F.P(a.getAttribute("href"),b));a.src&&a.setAttribute("src",F.P(a.getAttribute("src"),b));if("style"===a.localName){var c=F.fa(a.textContent,b,vd);a.textContent=F.fa(c,b,wd)}},fa:function(a,b,c){return a.replace(c, function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=F.P(a,b));return c+"'"+a+"'"+e})},P:function(a,b){if(void 0===F.V){F.V=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";F.V="http://a/c%20d"===c.href}catch(Ye){}}if(F.V)return(new URL(a,b)).href;c=F.la;c||(c=document.implementation.createHTMLDocument("temp"),F.la=c,c.Z=c.createElement("base"),c.head.appendChild(c.Z),c.Y=c.createElement("a"));c.Z.href=b;c.Y.href=a;return c.Y.href||a}},zb={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a= a.split(",");var d=a[1];d=-1e.status?b(d,a):c(d)};e.send()}else c("error: href must be specified")}},Ca=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent); k.prototype.loadImports=function(a){var b=this;a=m(a,"link[rel=import]");p(a,function(a){return b.B(a)})};k.prototype.B=function(a){var b=this,c=a.href;if(void 0!==this.a[c]){var d=this.a[c];d&&d.__loaded&&(a.__import=d,this.i(a))}else this.b++,this.a[c]="pending",zb.load(c,function(a,d){a=b.Ba(a,d||c);b.a[c]=a;b.b--;b.loadImports(a);b.F()},function(){b.a[c]=null;b.b--;b.F()})};k.prototype.Ba=function(a,b){if(!a)return document.createDocumentFragment();Ca&&(a=a.replace(xd,function(a,b,c){return-1=== a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content,l(a);else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=F.P(c.getAttribute("href"),b),c.removeAttribute("href");c=m(a,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"]'); var d=0;p(c,function(a){h(a);F.ua(a,b);a.setAttribute("import-dependency","");"script"===a.localName&&!a.src&&a.textContent&&(a.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(a.textContent+("\n//# sourceURL="+b+(d?"-"+d:"")+".js\n"))),a.textContent="",d++)});return a};k.prototype.F=function(){var a=this;if(!this.b){this.c.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&&b&&(a.loadImports(document),a.b||(a.c.observe(document.head,{childList:!0,subtree:!0}), a.ya()))};this.Da(function(){c=!0;d()});this.Ca(function(){b=!0;d()})}};k.prototype.flatten=function(a){var b=this;a=m(a,"link[rel=import]");p(a,function(a){var c=b.a[a.href];(a.__import=c)&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b.a[a.href]=a,a.readyState="loading",a.__import=a,b.flatten(c),a.appendChild(c))})};k.prototype.Ca=function(a){function b(e){if(e]/g;function gb(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function hb(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:g=g.data;g=k&&jb[k.localName]?g:g.replace(fb,gb);break a;case Node.COMMENT_NODE:g="\x3c!--"+g.data+"--\x3e";break a;default:throw window.console.error(g), Error("not implemented");}}c+=g}return c};var C={},D=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),E=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function lb(a){var b=[];D.currentNode=a;for(a=D.firstChild();a;)b.push(a),a=D.nextSibling();return b}C.parentNode=function(a){D.currentNode=a;return D.parentNode()};C.firstChild=function(a){D.currentNode=a;return D.firstChild()};C.lastChild=function(a){D.currentNode=a;return D.lastChild()};C.previousSibling=function(a){D.currentNode=a;return D.previousSibling()}; C.nextSibling=function(a){D.currentNode=a;return D.nextSibling()};C.childNodes=lb;C.parentElement=function(a){E.currentNode=a;return E.parentNode()};C.firstElementChild=function(a){E.currentNode=a;return E.firstChild()};C.lastElementChild=function(a){E.currentNode=a;return E.lastChild()};C.previousElementSibling=function(a){E.currentNode=a;return E.previousSibling()};C.nextElementSibling=function(a){E.currentNode=a;return E.nextSibling()}; C.children=function(a){var b=[];E.currentNode=a;for(a=E.firstChild();a;)b.push(a),a=E.nextSibling();return b};C.innerHTML=function(a){return kb(a,function(a){return lb(a)})};C.textContent=function(a){switch(a.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b;default:return a.nodeValue}};var G={},mb=u.o,nb=[Node.prototype,Element.prototype,HTMLElement.prototype];function H(a){var b;a:{for(b=0;bd.assignedNodes.length&&(d.N=!0)}d.N&&(d.N=!1,Cc(this,b))}a=this.f;b=[];for(d=0;db.indexOf(c))||b.push(c);for(a=0;a "+b}))}a=a.replace(Sd,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,ta:b,stop:f}}function Qd(a,b){a=a.split(Td);a[0]+=b;return a.join(Td)} function Pd(a,b){var c=a.match(Ud);return(c=c&&c[2].trim()||"")?c[0].match(Vd)?a.replace(Ud,function(a,c,f){return b+f}):c.split(Vd)[0]===b?c:Wd:a.replace(Ld,b)}function Xd(a){a.selector===Yd&&(a.selector="html")}ud.prototype.c=function(a){return a.match(Od)?this.b(a,Zd):Qd(a.trim(),Zd)};q.Object.defineProperties(ud.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}}); var Jd=/:(nth[-\w]+)\(([^)]+)\)/,Zd=":not(.style-scope)",Hd=",",Md=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Vd=/[[.:#*]/,Ld=":host",Yd=":root",Od="::slotted",Kd=new RegExp("^("+Od+")"),Ud=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Rd=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Sd=/(.*):dir\((?:(ltr|rtl))\)/,Fd=".",Td=":",Bd="class",Wd="should_not_match",V=new ud;function $d(a,b,c,d){this.u=a||null;this.b=b||null;this.X=c||[];this.D=null;this.I=d||"";this.a=this.l=this.w=null}function W(a){return a?a.__styleInfo:null}function ae(a,b){return a.__styleInfo=b}$d.prototype.c=function(){return this.u};$d.prototype._getStyleRules=$d.prototype.c;function be(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var ce=navigator.userAgent.match("Trident");function de(){}function ee(a){var b={},c=[],d=0;R(a,function(a){fe(a);a.index=d++;a=a.h.cssText;for(var c;c=jd.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 fe(a){if(!a.h){var b={},c={};ge(a,c)&&(b.s=c,a.rules=null);b.cssText=a.parsedCssText.replace(md,"").replace(hd,"");a.h=b}}function ge(a,b){var c=a.h;if(c){if(c.s)return Object.assign(b,c.s),!0}else{c=a.parsedCssText;for(var d;a=hd.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} function he(a,b,c){b&&(b=0<=b.indexOf(";")?ie(a,b,c):sd(b,function(b,e,f,h){if(!e)return b+h;(e=he(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=he(a,c[f]||f,c)||f;return b+(e||"")+h}));return b&&b.trim()||""} function ie(a,b,c){b=b.split(";");for(var d=0,e,f;d *"===f||"html"===f,g=0===f.indexOf(":host")&&!h;"shady"===c&&(h=f===e+" > *."+e||-1!==f.indexOf("html"),g=!h&&0===f.indexOf(e));"shadow"===c&&(h=":host > *"===f||"html"===f,g=g&&!h);if(h||g)c=e,g&&(b.j||(b.j=Gd(V,b,V.b,a?Fd+a:"",e)),c=b.j||e),d({Fa:c,za:g,Wa:h})}} function le(a,b){var c={},d={},e=b&&b.__cssBuild;R(b,function(b){ke(a,b,e,function(e){be.call(a.i||a,e.Fa)&&(e.za?ge(b,c):ge(b,d))})},null,!0);return{Ea:d,xa:c}} function me(a,b,c,d){var e=U(b),f=Ed(e.is,e.I),h=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=W(b).u;var g=ne(e,d);return Cd(b,e,function(b){var e="";b.h||fe(b);b.h.cssText&&(e=ie(a,b.h.cssText,c));b.cssText=e;if(!O&&!pd(b)&&b.cssText){var k=e=b.cssText;null==b.ba&&(b.ba=kd.test(e));if(b.ba)if(null==b.O){b.O=[];for(var p in g)k=g[p],k=k(e),e!==k&&(e=k,b.O.push(p))}else{for(p=0;p=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));O?f.a?(f.a.textContent=e,d=f.a):e&&(d=qd(e,g,a.shadowRoot,f.b)):d?d.parentNode||(ce&& -1