/** @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,H={Ea:function(a,b){a.href&&a.setAttribute("href",H.U(a.getAttribute("href"),b));a.src&&a.setAttribute("src",H.U(a.getAttribute("src"),b));if("style"===a.localName){var c=H.oa(a.textContent,b,ke);a.textContent=H.oa(c,b,le)}},oa:function(a,b,c){return a.replace(c, function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=H.U(a,b));return c+"'"+a+"'"+e})},U:function(a,b){if(void 0===H.$){H.$=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";H.$="http://a/c%20d"===c.href}catch(gg){}}if(H.$)return(new URL(a,b)).href;c=H.va;c||(c=document.implementation.createHTMLDocument("temp"),H.va=c,c.ha=c.createElement("base"),c.head.appendChild(c.ha),c.ga=c.createElement("a"));c.ha.href=b;c.ga.href=a;return c.ga.href||a}},Xb={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")}},Pa=/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.m(a)})};k.prototype.m=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.g(a))}else this.b++,this.a[c]="pending",Xb.load(c,function(a,d){a=b.La(a,d||c);b.a[c]=a;b.b--;b.loadImports(a);b.H()},function(){b.a[c]=null;b.b--;b.H()})};k.prototype.La=function(a,b){if(!a)return document.createDocumentFragment();Pa&&(a=a.replace(me,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=H.U(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);H.Ea(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.H=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.Ia()))};this.Na(function(){c=!0;d()});this.Ma(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.Ma=function(a){function b(e){if(e]/g;function jb(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function kb(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:g=g.data;g=k&&mb[k.localName]?g:g.replace(ib,jb);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 y={},A=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),B=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function ob(a){var b=[];A.currentNode=a;for(a=A.firstChild();a;)b.push(a),a=A.nextSibling();return b}y.parentNode=function(a){A.currentNode=a;return A.parentNode()};y.firstChild=function(a){A.currentNode=a;return A.firstChild()};y.lastChild=function(a){A.currentNode=a;return A.lastChild()};y.previousSibling=function(a){A.currentNode=a;return A.previousSibling()}; y.nextSibling=function(a){A.currentNode=a;return A.nextSibling()};y.childNodes=ob;y.parentElement=function(a){B.currentNode=a;return B.parentNode()};y.firstElementChild=function(a){B.currentNode=a;return B.firstChild()};y.lastElementChild=function(a){B.currentNode=a;return B.lastChild()};y.previousElementSibling=function(a){B.currentNode=a;return B.previousSibling()};y.nextElementSibling=function(a){B.currentNode=a;return B.nextSibling()}; y.children=function(a){var b=[];B.currentNode=a;for(a=B.firstChild();a;)b.push(a),a=B.nextSibling();return b};y.innerHTML=function(a){return nb(a,function(a){return ob(a)})};y.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 C={},pb=u.u,qb=[Node.prototype,Element.prototype,HTMLElement.prototype];function D(a){var b;a:{for(b=0;bd.assignedNodes.length&&(d.R=!0)}d.R&&(d.R=!1,Gc(this,b))}a=this.f;b=[];for(d=0;db.indexOf(c))||b.push(c);for(a=0;a "+b}))}a=a.replace(Ze,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,Da:b,stop:f}}function Xe(a,b){a=a.split($e);a[0]+=b;return a.join($e)} function We(a,b){var c=a.match(af);return(c=c&&c[2].trim()||"")?c[0].match(bf)?a.replace(af,function(a,c,f){return b+f}):c.split(bf)[0]===b?c:cf:a.replace(Se,b)}function df(a){a.selector===ef&&(a.selector="html")}Ee.prototype.c=function(a){return a.match(Ve)?this.b(a,ff):Xe(a.trim(),ff)};q.Object.defineProperties(Ee.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}}); var Qe=/:(nth[-\w]+)\(([^)]+)\)/,ff=":not(.style-scope)",Oe=",",Te=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,bf=/[[.:#*]/,Se=":host",ef=":root",Ve="::slotted",Re=new RegExp("^("+Ve+")"),af=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ye=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ze=/(.*):dir\((?:(ltr|rtl))\)/,Me=".",$e=":",Ie="class",cf="should_not_match",W=new Ee;function gf(a,b,c,d){this.w=a||null;this.b=b||null;this.fa=c||[];this.G=null;this.K=d||"";this.a=this.o=this.B=null}function X(a){return a?a.__styleInfo:null}function hf(a,b){return a.__styleInfo=b}gf.prototype.c=function(){return this.w};gf.prototype._getStyleRules=gf.prototype.c;function jf(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var kf=navigator.userAgent.match("Trident");function lf(){}function mf(a){var b={},c=[],d=0;xe(a,function(a){nf(a);a.index=d++;a=a.j.cssText;for(var c;c=re.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 nf(a){if(!a.j){var b={},c={};of(a,c)&&(b.v=c,a.rules=null);b.cssText=a.parsedCssText.replace(ue,"").replace(pe,"");a.j=b}}function of(a,b){var c=a.j;if(c){if(c.v)return Object.assign(b,c.v),!0}else{c=a.parsedCssText;for(var d;a=pe.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} function pf(a,b,c){b&&(b=0<=b.indexOf(";")?qf(a,b,c):Ce(b,function(b,e,f,h){if(!e)return b+h;(e=pf(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=pf(a,c[f]||f,c)||f;return b+(e||"")+h}));return b&&b.trim()||""} function qf(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.l||(b.l=Ne(W,b,W.b,a?Me+a:"",e)),c=b.l||e),d({Qa:c,Ja:g,ib:h})}} function tf(a,b){var c={},d={},e=b&&b.__cssBuild;xe(b,function(b){sf(a,b,e,function(e){jf.call(a.g||a,e.Qa)&&(e.Ja?of(b,c):of(b,d))})},null,!0);return{Pa:d,Ha:c}} function uf(a,b,c,d){var e=V(b),f=Le(e.is,e.K),h=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=X(b).w;var g=vf(e,d);return Je(b,e,function(b){var e="";b.j||nf(b);b.j.cssText&&(e=qf(a,b.j.cssText,c));b.cssText=e;if(!S&&!ze(b)&&b.cssText){var k=e=b.cssText;null==b.ka&&(b.ka=se.test(e));if(b.ka)if(null==b.S){b.S=[];for(var p in g)k=g[p],k=k(e),e!==k&&(e=k,b.S.push(p))}else{for(p=0;p=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));S?f.a?(f.a.textContent=e,d=f.a):e&&(d=Ae(e,g,a.shadowRoot,f.b)):d?d.parentNode|| (kf&&-1