(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 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 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 eb="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this; (function(){function k(){var a=this;this.u={};this.g=document.documentElement;var b=new oa;b.rules=[];this.h=r.set(this.g,new r(b));this.i=!1;this.a=this.b=null;fb(function(){a.c()})}function D(){this.customStyles=[];this.enqueued=!1}function gb(){}function ba(a){this.cache={};this.f=void 0===a?100:a}function n(){}function r(a,b,c,d,e){this.F=a||null;this.b=b||null;this.qa=c||[];this.M=null;this.U=e||"";this.a=this.B=this.G=null}function q(){}function oa(){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 Ic(a){function b(b,c){Object.defineProperty(b,"innerHTML",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(b){var d=this,e=void 0;l(this)&&(e=[],K(this,function(a){a!==d&&e.push(a)}));c.set.call(this,b);if(e)for(var f=0;f":return">";case '"':return""";case "\u00a0":return" "}}function Bb(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=m&&ed[m.localName]?h:h.replace(fd,Ab);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}function L(a){A.currentNode=a;return A.parentNode()}function wa(a){A.currentNode= a;return A.firstChild()}function xa(a){A.currentNode=a;return A.lastChild()}function Cb(a){A.currentNode=a;return A.previousSibling()}function Db(a){A.currentNode=a;return A.nextSibling()}function W(a){var b=[];A.currentNode=a;for(a=A.firstChild();a;)b.push(a),a=A.nextSibling();return b}function Eb(a){B.currentNode=a;return B.parentNode()}function Fb(a){B.currentNode=a;return B.firstChild()}function Gb(a){B.currentNode=a;return B.lastChild()}function Hb(a){B.currentNode=a;return B.previousSibling()} function Ib(a){B.currentNode=a;return B.nextSibling()}function Jb(a){var b=[];B.currentNode=a;for(a=B.firstChild();a;)b.push(a),a=B.nextSibling();return b}function Kb(a){return Ea(a,function(a){return W(a)})}function Lb(a){if(a.nodeType!==Node.ELEMENT_NODE)return a.nodeValue;a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b}function I(a,b,c){for(var d in b){var e=Object.getOwnPropertyDescriptor(a,d);e&&e.configurable||!e&&c?Object.defineProperty(a, d,b[d]):c&&console.warn("Could not define",d,"on",a)}}function M(a){I(a,Mb);I(a,Fa);I(a,Ga)}function Nb(a,b,c){wb(a);c=c||null;a.__shady=a.__shady||{};b.__shady=b.__shady||{};c&&(c.__shady=c.__shady||{});a.__shady.previousSibling=c?c.__shady.previousSibling:b.lastChild;var d=a.__shady.previousSibling;d&&d.__shady&&(d.__shady.nextSibling=a);(d=a.__shady.nextSibling=c)&&d.__shady&&(d.__shady.previousSibling=a);a.__shady.parentNode=b;c?c===b.__shady.firstChild&&(b.__shady.firstChild=a):(b.__shady.lastChild= a,b.__shady.firstChild||(b.__shady.firstChild=a));b.__shady.childNodes=null}function Ob(a){var b=a.__shady&&a.__shady.parentNode,c,d=R(a);if(b||d){c=Pb(a);if(b){a.__shady=a.__shady||{};b.__shady=b.__shady||{};a===b.__shady.firstChild&&(b.__shady.firstChild=a.__shady.nextSibling);a===b.__shady.lastChild&&(b.__shady.lastChild=a.__shady.previousSibling);var e=a.__shady.previousSibling,f=a.__shady.nextSibling;e&&(e.__shady=e.__shady||{},e.__shady.nextSibling=f);f&&(f.__shady=f.__shady||{},f.__shady.previousSibling= e);a.__shady.parentNode=a.__shady.previousSibling=a.__shady.nextSibling=void 0;void 0!==b.__shady.childNodes&&(b.__shady.childNodes=null)}if(e=d){for(var g,e=d.la(),f=0;f]/g,dd=Bb("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),ed=Bb("style script xmp iframe noembed noframes plaintext noscript".split(" ")),A=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),B=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),vd=Object.freeze({parentNode:L, firstChild:wa,lastChild:xa,previousSibling:Cb,nextSibling:Db,childNodes:W,parentElement:Eb,firstElementChild:Fb,lastElementChild:Gb,previousElementSibling:Hb,nextElementSibling:Ib,children:Jb,innerHTML:Kb,textContent:Lb}),Xa=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),ja=document.implementation.createHTMLDocument("inert").createElement("div"),Ya=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"), Mb={parentElement:{get:function(){var a=this.__shady&&this.__shady.parentElement;return void 0!==a?a:Eb(this)},configurable:!0},parentNode:{get:function(){var a=this.__shady&&this.__shady.parentNode;return void 0!==a?a:L(this)},configurable:!0},nextSibling:{get:function(){var a=this.__shady&&this.__shady.nextSibling;return void 0!==a?a:Db(this)},configurable:!0},previousSibling:{get:function(){var a=this.__shady&&this.__shady.previousSibling;return void 0!==a?a:Cb(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")|| ""},set:function(a){this.setAttribute("class",a)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var a=this.nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Ib(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var a=this.previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Hb(this)},configurable:!0}},Fa= {childNodes:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var a=this.firstChild;a;a=a.nextSibling)this.__shady.childNodes.push(a)}return this.__shady.childNodes}return W(this)},configurable:!0},firstChild:{get:function(){var a=this.__shady&&this.__shady.firstChild;return void 0!==a?a:wa(this)},configurable:!0},lastChild:{get:function(){var a=this.__shady&&this.__shady.lastChild;return void 0!==a?a:xa(this)},configurable:!0}, textContent:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var a=[],b=0,c=this.childNodes,d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return Lb(this)},set:function(a){if(this.nodeType!==Node.ELEMENT_NODE)this.nodeValue=a;else{for(;this.firstChild;)this.removeChild(this.firstChild);a&&this.appendChild(document.createTextNode(a))}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var a= this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Fb(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Gb(this)},configurable:!0},children:{get:function(){return this.__shady&&void 0!==this.__shady.firstChild?Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):Jb(this)}, configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return this.__shady&&void 0!==this.__shady.firstChild?Ea(a):Kb(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);for(Xa&&Xa.set?Xa.set.call(ja,a):ja.innerHTML=a;ja.firstChild;)b.appendChild(ja.firstChild)},configurable:!0}},wc={shadowRoot:{get:function(){return this.__shady&&this.__shady.root||null},set:function(a){this.__shady=this.__shady|| {};this.__shady.root=a},configurable:!0}},Ga={activeElement:{get:function(){var a;a=Ya&&Ya.get?Ya.get.call(document):C.R?void 0:document.activeElement;if(a&&a.nodeType){var b=!!E(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=R(a);b&&b!==this;)a=b.host,b=R(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}},wb=C.R?function(){}:function(a){a.__shady&&a.__shady.Oa||(a.__shady=a.__shady||{},a.__shady.Oa=!0,I(a,Mb, !0))},vb=C.R?function(){}:function(a){a.__shady&&a.__shady.Ma||(a.__shady=a.__shady||{},a.__shady.Ma=!0,I(a,Fa,!0),I(a,wc,!0))},ka=null,wd={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0, pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},cc={get composed(){!1!==this.isTrusted&&void 0===this.ha&&(this.ha=wd[this.type]);return this.ha||!1},composedPath:function(){this.ta||(this.ta=Ma(this.__target,this.composed));return this.ta},get target(){return Zb(this.currentTarget,this.composedPath())}, get relatedTarget(){if(!this.ua)return null;this.va||(this.va=Ma(this.ua,!0));return Zb(this.currentTarget,this.va)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ia=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ia=this.La=!0}},Oa={focus:!0,blur:!0},xd=Na(window.Event),yd=Na(window.CustomEvent),zd=Na(window.MouseEvent),Ad="function"===typeof Event?Event:function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a, !!b.bubbles,!!b.cancelable);return c};z.prototype.Wa=function(){return this.root.querySelectorAll("slot")};z.prototype.pa=function(a){return a.localName&&"slot"==a.localName};z.prototype.na=function(){return this.root.oa()?this.g(this.c()):[]};z.prototype.c=function(){for(var a=[],b=0,c=this.root.host.firstChild;c;c=c.nextSibling)a[b++]=c;return a};z.prototype.g=function(a){for(var b=[],c=this.root.la(),d=0,e=c.length,f;d "+b})));a=a.replace(Md,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,Ua:b,stop:f}};q.prototype.u=function(a,b){a=a.split(Ac);a[0]+=b;return a.join(Ac)};q.prototype.V=function(a,b){var c=a.match(Bc);return(c=c&&c[2].trim()||"")?c[0].match(Cc)?a.replace(Bc,function(a,c,f){return b+f}):c.split(Cc)[0]===b?c:Nd:a.replace(Za,b)};q.prototype.O=function(a){a.selector=a.parsedSelector;this.v(a);this.j(a,this.I)}; q.prototype.v=function(a){a.selector===Od&&(a.selector="html")};q.prototype.I=function(a){return a.match($a)?this.g(a,Dc):this.u(a.trim(),Dc)};eb.Object.defineProperties(q.prototype,{c:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Id=/:(nth[-\w]+)\(([^)]+)\)/,Dc=":not(.style-scope)",zc=",",Kd=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Cc=/[[.:#*]/,Za=":host",Od=":root",$a="::slotted",Jd=new RegExp("^("+$a+")"),Bc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ld=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/, Md=/(.*):dir\((?:(ltr|rtl))\)/,Hd=".",Ac=":",Gd="class",Nd="should_not_match",u=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.F};r.prototype._getStyleRules=r.prototype.c;var Ec=function(a){return a.matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}(window.Element.prototype),Pd=navigator.userAgent.match("Trident");n.prototype.P=function(a){var b=this, c={},d=[],e=0;U(a,function(a){b.c(a);a.index=e++;b.O(a.m.cssText,c)},function(a){d.push(a)});a.b=d;a=[];for(var f in c)a.push(f);return a};n.prototype.c=function(a){if(!a.m){var b={},c={};this.b(a,c)&&(b.D=c,a.rules=null);b.cssText=this.N(a);a.m=b}};n.prototype.b=function(a,b){var c=a.m;if(c){if(c.D)return Object.assign(b,c.D),!0}else{for(var c=a.parsedCssText,d;a=xc.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}};n.prototype.N=function(a){return this.V(a.parsedCssText)}; n.prototype.V=function(a){return a.replace(Fd,"").replace(xc,"")};n.prototype.O=function(a,b){for(var c;c=Dd.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};n.prototype.da=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c *"===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&&(t&&!b.w&&(b.w=u.l(b,u.g,u.h(a),e)),c=b.w||e),d({fb:c,Za:h,mb:g})}};n.prototype.ba=function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;U(b,function(b){e.fa(a,b,f,function(f){Ec.call(a.lb||a,f.fb)&&(f.Za?e.b(b,c):e.b(b,d))})},null,!0);return{cb:d,Ya:c}};n.prototype.ea= function(a,b,c){var d=this,e=P(a),f=u.f(e.is,e.U),g=new RegExp("(?:^|[^.#[:])"+(a.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),e=r.get(a).F,h=this.h(e,c);return u.b(a,e,function(a){d.I(a,b);t||lc(a)||!a.cssText||(d.H(a,h),d.l(a,g,f,c))})};n.prototype.h=function(a,b){a=a.b;var c={};if(!t&&a)for(var d=0,e=a[d];d=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));t?e.a?(e.a.textContent=b,d=e.a):b&&(d=Sa(b,c,a.shadowRoot,e.b)):d?d.parentNode||(Pd&&-1this.f&&e.shift();this.cache[a]=e};ba.prototype.a=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this.b(e,b,c))return e}};if(!t){var Fc=new MutationObserver(oc),Gc=function(a){Fc.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Gc(document);else{var bb=function(){Gc(document.body)}; window.HTMLImports?window.HTMLImports.whenReady(bb):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){bb();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else bb()})}gb=function(){oc(Fc.takeRecords())}}var ia={},td=Promise.resolve(),Ta=null,qc=window.HTMLImports&&window.HTMLImports.whenReady||null,Ua,na=null,aa=null;D.prototype.ya=function(){!this.enqueued&&aa&&(this.enqueued=!0,fb(aa))};D.prototype.b=function(a){a.__seenByShadyCSS|| (a.__seenByShadyCSS=!0,this.customStyles.push(a),this.ya())};D.prototype.a=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};D.prototype.c=function(){for(var a=this.customStyles,b=0;b