(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;function aa(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b "+h}))}return{value:a,L:b,stop:f}}function Xa(a,b){a=a.split(/(\[.+?\])/);for(var c=[],e=0;e+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,$a=/[[.:#*]/,Sa=/^(::slotted)/,Za=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ya=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Va=/(.*):dir\((?:(ltr|rtl))\)(.*)/,Qa=/:(?:matches|any|-(?:webkit|moz)-any)/,K=new I;function N(a,b,c,e,d){this.u=a||null;this.h=b||null;this.F=c||[];this.o=null;this.cssBuild=d||"";this.B=e||"";this.g=this.s=this.A=null}function O(a){return a?a.__styleInfo:null}function bb(a,b){return a.__styleInfo=b}N.prototype.i=function(){return this.u};N.prototype._getStyleRules=N.prototype.i;function cb(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var db=/:host\s*>\s*/,eb=navigator.userAgent.match("Trident");function fb(){}function gb(a){var b={},c=[],e=0;B(a,function(f){P(f);f.index=e++;f=f.j.cssText;for(var g;g=ua.exec(f);){var h=g[1];":"!==g[2]&&(b[h]=!0)}},function(f){c.push(f)});a.h=c;a=[];for(var d in b)a.push(d);return a} function P(a){if(!a.j){var b={},c={};Q(a,c)&&(b.v=c,a.rules=null);b.cssText=a.parsedCssText.replace(xa,"").replace(y,"");a.j=b}}function Q(a,b){var c=a.j;if(c){if(c.v)return Object.assign(b,c.v),!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(";")?hb(a,b,c):Ea(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 hb(a,b,c){b=b.split(";");for(var e=0,d,f;e *."+d||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(d));if(g||h)c=d,h&&(b.l||(b.l=Ma(K,b,K.h,a?"."+a:"",d)),c=b.l||d),g&&"html"===d&&(c=b.l||b.D),e({G:c,P:h,Y:g})}} function kb(a,b,c){var e={},d={};B(b,function(f){jb(a,f,c,function(g){cb.call(a._element||a,g.G)&&(g.P?Q(f,e):Q(f,d))})},null,!0);return{S:d,O:e}} function lb(a,b,c,e){var d=G(b),f=La(d.is,d.B),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=O(b);d=h.u;h=h.cssBuild;var l=mb(d,e);return M(b,d,function(k){var p="";k.j||P(k);k.j.cssText&&(p=hb(a,k.j.cssText,c));k.cssText=p;if(!r&&!za(k)&&k.cssText){var t=p=k.cssText;null==k.H&&(k.H=va.test(p));if(k.H)if(null==k.C){k.C=[];for(var x in l)t=l[x],t=t(p),p!==t&&(p=t,k.C.push(x))}else{for(x=0;x=k._useCount&&k.parentNode&&k.parentNode.removeChild(k));r?l.g?(l.g.textContent=h,g=l.g):h&&(g=Aa(h,f,a.shadowRoot,l.h)):g?g.parentNode||(eb&&-1