Files
webcomponentsjs/webcomponents-hi-sd-ce.js
2017-03-22 17:40:56 -07:00

171 lines
69 KiB
JavaScript

(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
Copyright (c) 2014 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 db="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;
(function(){function k(){var a=this;this.m={};this.g=document.documentElement;var b=new oa;b.rules=[];this.h=u.set(this.g,new u(b));this.i=!1;this.a=this.b=null;eb(function(){a.c()})}function D(){this.customStyles=[];this.enqueued=!1}function fb(){}function ba(a){this.cache={};this.f=void 0===a?100:a}function n(){}function u(a,b,c,d,e){this.G=a||null;this.b=b||null;this.ra=c||[];this.N=null;this.W=e||"";this.a=this.D=this.H=null}function r(){}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 Hc(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;m(this)&&(e=[],K(this,function(a){a!==d&&e.push(a)}));c.set.call(this,b);if(e)for(var f=0;f<e.length;f++){var g=e[f];1===g.__CE_state&&a.disconnectedCallback(g)}this.ownerDocument.__CE_hasRegistry?a.c(this):a.j(this);
return b}})}function c(b,c){v(b,"insertAdjacentElement",function(b,d){var e=m(d);b=c.call(this,b,d);e&&a.a(d);m(b)&&a.b(d);return b})}gb?v(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=a=gb.call(this,a)}):console.warn("Custom Elements: `Element#attachShadow` was not patched.");if(pa&&pa.get)b(Element.prototype,pa);else if(qa&&qa.get)b(HTMLElement.prototype,qa);else{var d=ra.call(document,"div");a.o(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return hb.call(this,
!0).innerHTML},set:function(a){var b="template"===this.localName?this.content:this;for(d.innerHTML=a;0<b.childNodes.length;)sa.call(b,b.childNodes[0]);for(;0<d.childNodes.length;)ca.call(b,d.childNodes[0])}})})}v(Element.prototype,"setAttribute",function(b,c){if(1!==this.__CE_state)return ib.call(this,b,c);var d=ta.call(this,b);ib.call(this,b,c);c=ta.call(this,b);d!==c&&a.attributeChangedCallback(this,b,d,c,null)});v(Element.prototype,"setAttributeNS",function(b,c,d){if(1!==this.__CE_state)return jb.call(this,
b,c,d);var e=da.call(this,b,c);jb.call(this,b,c,d);d=da.call(this,b,c);e!==d&&a.attributeChangedCallback(this,c,e,d,b)});v(Element.prototype,"removeAttribute",function(b){if(1!==this.__CE_state)return kb.call(this,b);var c=ta.call(this,b);kb.call(this,b);null!==c&&a.attributeChangedCallback(this,b,c,null,null)});v(Element.prototype,"removeAttributeNS",function(b,c){if(1!==this.__CE_state)return lb.call(this,b,c);var d=da.call(this,b,c);lb.call(this,b,c);var e=da.call(this,b,c);d!==e&&a.attributeChangedCallback(this,
c,d,e,b)});mb?c(HTMLElement.prototype,mb):nb?c(Element.prototype,nb):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");ob(a,Element.prototype,{Ha:Jc,append:Kc});Lc(a,{$a:Mc,Za:Nc,kb:Oc,remove:Pc})}function Lc(a,b){var c=Element.prototype;c.before=function(c){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m(a)});b.$a.apply(this,d);for(var g=0;g<f.length;g++)a.a(f[g]);if(m(this))for(f=0;f<d.length;f++)g=d[f],
g instanceof Element&&a.b(g)};c.after=function(c){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m(a)});b.Za.apply(this,d);for(var g=0;g<f.length;g++)a.a(f[g]);if(m(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.b(g)};c.replaceWith=function(c){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];var f=d.filter(function(a){return a instanceof Node&&m(a)}),g=m(this);b.kb.apply(this,d);for(var h=0;h<f.length;h++)a.a(f[h]);
if(g)for(a.a(this),f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.b(g)};c.remove=function(){var c=m(this);b.remove.call(this);c&&a.a(this)}}function Qc(a){function b(b,d){Object.defineProperty(b,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(b){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,b);else{var c=void 0;if(this.firstChild){var e=this.childNodes,h=e.length;if(0<h&&m(this))for(var c=Array(h),l=0;l<h;l++)c[l]=e[l]}d.set.call(this,b);if(c)for(b=0;b<c.length;b++)a.a(c[b])}}})}
v(Node.prototype,"insertBefore",function(b,d){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=pb.call(this,b,d);if(m(this))for(d=0;d<c.length;d++)a.b(c[d]);return b}c=m(b);d=pb.call(this,b,d);c&&a.a(b);m(this)&&a.b(b);return d});v(Node.prototype,"appendChild",function(b){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=ca.call(this,b);if(m(this))for(var e=0;e<c.length;e++)a.b(c[e]);return b}c=m(b);e=ca.call(this,b);c&&a.a(b);m(this)&&
a.b(b);return e});v(Node.prototype,"cloneNode",function(b){b=hb.call(this,b);this.ownerDocument.__CE_hasRegistry?a.c(b):a.j(b);return b});v(Node.prototype,"removeChild",function(b){var c=m(b),e=sa.call(this,b);c&&a.a(b);return e});v(Node.prototype,"replaceChild",function(b,d){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=qb.call(this,b,d);if(m(this))for(a.a(d),d=0;d<c.length;d++)a.b(c[d]);return b}var c=m(b),f=qb.call(this,b,d),g=m(this);g&&a.a(d);c&&a.a(b);g&&
a.b(b);return f});ua&&ua.get?b(Node.prototype,ua):a.o(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){for(var a=[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)sa.call(this,this.firstChild);ca.call(this,document.createTextNode(a))}})})}function Rc(a){v(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var c=a.f(b);if(c)return new c.constructor}b=ra.call(this,b);a.g(b);return b});
v(Document.prototype,"importNode",function(b,c){b=Sc.call(this,b,c);this.__CE_hasRegistry?a.c(b):a.j(b);return b});v(Document.prototype,"createElementNS",function(b,c){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var d=a.f(c);if(d)return new d.constructor}b=Tc.call(this,b,c);a.g(b);return b});ob(a,Document.prototype,{Ha:Uc,append:Vc})}function ob(a,b,c){b.prepend=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof
Node&&m(a)});c.Ha.apply(this,d);for(var g=0;g<f.length;g++)a.a(f[g]);if(m(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.b(g)};b.append=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m(a)});c.append.apply(this,d);for(var g=0;g<f.length;g++)a.a(f[g]);if(m(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.b(g)}}function Wc(a){window.HTMLElement=function(){function b(){var b=this.constructor,d=a.I(b);if(!d)throw Error("The custom element being constructed was not registered with `customElements`.");
var e=d.constructionStack;if(!e.length)return e=ra.call(document,d.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=1,e.__CE_definition=d,a.g(e),e;var d=e.length-1,f=e[d];if(f===rb)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");e[d]=rb;Object.setPrototypeOf(f,b.prototype);a.g(f);return f}b.prototype=Xc.prototype;return b}()}function w(a){this.f=!1;this.a=a;this.h=new Map;this.g=function(a){return a()};this.b=!1;this.c=
[];this.j=new va(a,document)}function sb(){var a=this;this.b=this.a=void 0;this.f=new Promise(function(b){a.b=b;a.a&&b(a.a)})}function va(a,b){this.b=a;this.a=b;this.K=void 0;this.b.c(this.a);"loading"===this.a.readyState&&(this.K=new MutationObserver(this.f.bind(this)),this.K.observe(this.a,{childList:!0,subtree:!0}))}function y(){this.m=new Map;this.l=new Map;this.i=[];this.h=!1}function q(a,b){if(a!==tb)throw new TypeError("Illegal constructor");a=document.createDocumentFragment();a.__proto__=
q.prototype;a.i(b);return a}function A(a){this.root=a;this.$="slot"}function P(a){if(!a.__shady||void 0===a.__shady.firstChild){a.__shady=a.__shady||{};a.__shady.firstChild=wa(a);a.__shady.lastChild=xa(a);ub(a);for(var b=a.__shady.childNodes=W(a),c=0,d;c<b.length&&(d=b[c]);c++)d.__shady=d.__shady||{},d.__shady.parentNode=a,d.__shady.nextSibling=b[c+1]||null,d.__shady.previousSibling=b[c-1]||null,vb(d)}}function Yc(a){var b=a&&a.K;b&&(b.Z.delete(a.Wa),b.Z.size||(a.Xa.__shady.U=null))}function Zc(a,
b){a.__shady=a.__shady||{};a.__shady.U||(a.__shady.U=new ea);a.__shady.U.Z.add(b);var c=a.__shady.U;return{Wa:b,K:c,Xa:a,takeRecords:function(){return c.takeRecords()}}}function ea(){this.a=!1;this.addedNodes=[];this.removedNodes=[];this.Z=new Set}function E(a){return"ShadyRoot"===a.Ta}function Q(a){a=a.getRootNode();if(E(a))return a}function ya(a,b){if(a&&b)for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length&&(e=c[d]);d++){var f=Object.getOwnPropertyDescriptor(b,e);f&&Object.defineProperty(a,
e,f)}}function wb(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];for(d=0;d<c.length;d++)ya(a,c[d]);return a}function $c(a,b){for(var c in b)a[c]=b[c]}function xb(a){za.push(a);Aa.textContent=yb++}function zb(a){Ba||(Ba=!0,xb(Ca));X.push(a)}function Ca(){Ba=!1;for(var a=!!X.length;X.length;)X.shift()();return a}function ad(a,b){var c=b.getRootNode();return a.map(function(a){var b=c===a.target.getRootNode();if(b&&a.addedNodes){if(b=Array.from(a.addedNodes).filter(function(a){return c===
a.getRootNode()}),b.length)return a=Object.create(a),Object.defineProperty(a,"addedNodes",{value:b,configurable:!0}),a}else if(b)return a}).filter(function(a){return a})}function Ab(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Bb(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}function Da(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g;e<f&&(g=d[e]);e++){var h;
a:{var l;h=g;l=a;var Ic=b;switch(h.nodeType){case Node.ELEMENT_NODE:for(var k=h.localName,m="<"+k,n=h.attributes,q=0;l=n[q];q++)m+=" "+l.name+'="'+l.value.replace(bd,Ab)+'"';m+=">";h=cd[k]?m:m+Da(h,Ic)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=l&&dd[l.localName]?h:h.replace(ed,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){z.currentNode=a;return z.parentNode()}function wa(a){z.currentNode=
a;return z.firstChild()}function xa(a){z.currentNode=a;return z.lastChild()}function Cb(a){z.currentNode=a;return z.previousSibling()}function Db(a){z.currentNode=a;return z.nextSibling()}function W(a){var b=[];z.currentNode=a;for(a=z.firstChild();a;)b.push(a),a=z.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 Da(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,Ea);I(a,Fa)}function Nb(a,b,c){vb(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=Q(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.ma(),f=0;f<e.length;f++){var h=e[f],l;a:{for(l=h;l;){if(l==a){l=!0;break a}l=l.parentNode}l=void 0}if(l)for(h=h.assignedNodes({flatten:!0}),l=0;l<h.length;l++){g=!0;var k=h[l],m=L(k);m&&R.call(m,k)}}e=g}b=b&&d&&b.localName===d.B.$;if(e||b)d.X=!1,fa(d)}Ga(a);return c}function Ha(a,b,c){if(a=a.__shady&&a.__shady.U)b&&a.addedNodes.push(b),c&&
a.removedNodes.push(c),a.mb()}function Ia(a){if(a&&a.nodeType){a.__shady=a.__shady||{};var b=a.__shady.sa;void 0===b&&(E(a)?b=a:b=(b=a.parentNode)?Ia(b):a,document.documentElement.contains(a)&&(a.__shady.sa=b));return b}}function Qb(a,b,c){var d,e=c.B.$;if(a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||a.__noInsertionPoint)a.localName===e&&(P(b),P(a),d=!0);else for(var e=a.querySelectorAll(e),f=0,g,h;f<e.length&&(g=e[f]);f++)h=g.parentNode,h===a&&(h=b),h=Qb(g,h,c),d=d||h;return d}function Rb(a){return(a=
a&&a.__shady&&a.__shady.root)&&a.pa()}function Ga(a){if(a.__shady&&void 0!==a.__shady.sa)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)Ga(e);a.__shady=a.__shady||{};a.__shady.sa=void 0}function Pb(a){a=a.parentNode;if(Rb(a))return fa(a.__shady.root),!0}function fa(a){a.la=!0;a.update()}function Sb(a,b){"slot"===b?Pb(a):"slot"===a.localName&&"name"===b&&(a=Q(a))&&a.update()}function Tb(a,b,c){var d=[];Ub(a.childNodes,b,c,d);return d}function Ub(a,b,c,d){for(var e=0,f=a.length,g;e<f&&(g=
a[e]);e++){var h;if(h=g.nodeType===Node.ELEMENT_NODE){h=g;var l=b,k=c,m=d,n=l(h);n&&m.push(h);k&&k(n)?h=n:(Ub(h.childNodes,l,k,m),h=void 0)}if(h)break}}function Vb(a){a=a.getRootNode();E(a)&&a.Ia()}function Wb(a,b,c){if(c){var d=c.__shady&&c.__shady.parentNode;if(void 0!==d&&d!==a||void 0===d&&L(c)!==a)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");}if(c===b)return b;b.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&
((d=b.__shady&&b.__shady.parentNode)?(Ha(d,null,b),Ob(b)):(b.parentNode&&R.call(b.parentNode,b),Ga(b)));var d=c,e=Q(a),f;e&&(b.__noInsertionPoint&&!e.la&&(e.X=!0),f=Qb(b,a,e))&&(e.X=!1);if(a.__shady&&void 0!==a.__shady.firstChild)if(ub(a),a.__shady=a.__shady||{},void 0!==a.__shady.firstChild&&(a.__shady.childNodes=null),b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var g=b.childNodes,h=0;h<g.length;h++)Nb(g[h],a,d);b.__shady=b.__shady||{};g=void 0!==b.__shady.firstChild?null:void 0;b.__shady.firstChild=
b.__shady.lastChild=g;b.__shady.childNodes=g}else Nb(b,a,d);var g=f,h=e&&e.B.$||"",l=b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!b.__noInsertionPoint&&h&&b.querySelector(h);f=l&&l.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;((l=l||b.localName===h)||a.localName===h||g)&&e&&fa(e);(e=Rb(a))&&fa(a.__shady&&a.__shady.root);if(!(e||l&&!f||a.__shady.root||d&&E(d.parentNode)&&d.parentNode.L)){if(c&&(d=Q(c))){var k;if(c.localName===d.B.$)a:{d=c.assignedNodes({flatten:!0});e=Ia(c);f=0;for(g=d.length;f<
g&&(k=d[f]);f++)if(e.aa(c,k))break a;k=void 0}else k=c;c=k}k=E(a)?a.host:a;c?Ja.call(k,b,c):Xb.call(k,b)}Ha(a,b);return b}function Yb(a,b){if(a.ownerDocument!==document)return Ka.call(document,a,b);var c=Ka.call(document,a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=Yb(a[b],!0),c.appendChild(d)}return c}function La(a,b){var c=[],d=a;for(a=a===window?window:a.getRootNode();d;)c.push(d),d=d.assignedSlot?d.assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.parentNode;
c[c.length-1]===document&&c.push(window);return c}function Zb(a,b){if(!E)return a;a=La(a,!0);for(var c=0,d,e,f,g;c<b.length;c++)if(d=b[c],f=d===window?window:d.getRootNode(),f!==e&&(g=a.indexOf(f),e=f),!E(f)||-1<g)return d}function Ma(a){function b(b,d){b=new a(b,d);b.ia=d&&!!d.composed;return b}$c(b,a);b.prototype=a.prototype;return b}function $b(a,b,c){if(c=b.A&&b.A[a.type]&&b.A[a.type][c])for(var d=0,e;(e=c[d])&&(e.call(b,a),!a.Ra);d++);}function fd(a){var b=a.composedPath(),c;Object.defineProperty(a,
"currentTarget",{get:function(){return c},configurable:!0});for(var d=b.length-1;0<=d;d--)if(c=b[d],$b(a,c,"capture"),a.ja)return;Object.defineProperty(a,"eventPhase",{value:Event.AT_TARGET});for(var e,d=0;d<b.length;d++)if(c=b[d],!d||c.shadowRoot&&c.shadowRoot===e)if($b(a,c,"bubble"),c!==window&&(e=c.getRootNode()),a.ja)break}function ac(a,b,c,d,e,f){var g=a.type,h=a.capture,l=a.once,k=a.passive;return b===a.node&&c===g&&d===h&&e===l&&f===k}function gd(){for(var a in Na)window.addEventListener(a,
function(a){a.__target||(bc(a),fd(a))},!0)}function bc(a){a.__target=a.target;a.ya=a.relatedTarget;if(C.T){var b=cc,c=Object.getPrototypeOf(a);if(!c.hasOwnProperty("__patchProto")){var d=Object.create(c);d.rb=c;ya(d,b);c.__patchProto=d}a.__proto__=c.__patchProto}else ya(a,cc)}function Y(a,b){return{index:a,V:[],Y:b}}function hd(a,b,c,d){var e=0,f=0,g=0,h=0,l=Math.min(b-e,d-f);if(0==e&&0==f)a:{for(g=0;g<l;g++)if(a[g]!==c[g])break a;g=l}if(b==a.length&&d==c.length){for(var h=a.length,k=c.length,m=0;m<
l-g&&id(a[--h],c[--k]);)m++;h=m}e+=g;f+=g;b-=h;d-=h;if(!(b-e||d-f))return[];if(e==b){for(b=Y(e,0);f<d;)b.V.push(c[f++]);return[b]}if(f==d)return[Y(e,b-e)];l=e;g=f;d=d-g+1;h=b-l+1;b=Array(d);for(k=0;k<d;k++)b[k]=Array(h),b[k][0]=k;for(k=0;k<h;k++)b[0][k]=k;for(k=1;k<d;k++)for(m=1;m<h;m++)if(a[l+m-1]===c[g+k-1])b[k][m]=b[k-1][m-1];else{var n=b[k-1][m]+1,q=b[k][m-1]+1;b[k][m]=n<q?n:q}l=b.length-1;g=b[0].length-1;d=b[l][g];for(a=[];0<l||0<g;)l?g?(h=b[l-1][g-1],k=b[l-1][g],m=b[l][g-1],n=k<m?k<h?k:h:m<
h?m:h,n==h?(h==d?a.push(0):(a.push(1),d=h),l--,g--):n==k?(a.push(3),l--,d=k):(a.push(2),g--,d=m)):(a.push(3),l--):(a.push(2),g--);a.reverse();b=void 0;l=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:b&&(l.push(b),b=void 0);e++;f++;break;case 1:b||(b=Y(e,0));b.Y++;e++;b.V.push(c[f]);f++;break;case 2:b||(b=Y(e,0));b.Y++;e++;break;case 3:b||(b=Y(e,0)),b.V.push(c[f]),f++}b&&l.push(b);return l}function id(a,b){return a===b}function dc(a){Vb(a);return a.__shady&&a.__shady.assignedSlot||null}function S(a,
b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f.value?a[e]=f.value:Object.defineProperty(a,e,f)}}function ec(a){var b=jd.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a}function m(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}
function Oa(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}function K(a,b,c){c=c?c:new Set;for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)K(d,b,c);d=Oa(a,e);continue}else if("template"===f){d=Oa(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)K(e,b,c)}d=d.firstChild?
d.firstChild:Oa(a,d)}}function v(a,b,c){a[b]=c}function Pa(a){a=a.replace(F.bb,"").replace(F.port,"");var b=fc,c=a,d=new oa;d.start=0;d.end=c.length;for(var e=d,f=0,g=c.length;f<g;f++)if("{"===c[f]){e.rules||(e.rules=[]);var h=e,k=h.rules[h.rules.length-1]||null,e=new oa;e.start=f+1;e.parent=h;e.previous=k;h.rules.push(e)}else"}"===c[f]&&(e.end=f+1,e=e.parent||d);return b(d,a)}function fc(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&((c=b.substring(a.previous?
a.previous.end:a.parent.start,a.start-1),c=kd(c),c=c.replace(F.Ga," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=!c.indexOf("@"),a.atRule)?c.indexOf("@media")?c.match(F.ib)&&(a.type=H.ha,a.keyframesName=a.selector.split(F.Ga).pop()):a.type=H.MEDIA_RULE:a.type=c.indexOf("--")?H.STYLE_RULE:H.ua);if(c=a.rules)for(var d=0,e=c.length,f;d<e&&(f=c[d]);d++)fc(f,b);return a}function kd(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(a,c){a=c;for(c=6-a.length;c--;)a=
"0"+a;return"\\"+a})}function gc(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h;f<g&&(h=e[f]);f++)d=gc(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=b.replace(F.Ba,"").replace(F.Fa,""),b=b.replace(F.jb,"").replace(F.ob,"")),(d=b.trim())&&(d=" "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}function hc(a){a&&(x=x&&!a.nativeCss&&!a.shimcssproperties,
p=p&&!a.nativeShadow&&!a.shimshadow)}function T(a,b){if(!a)return"";"string"===typeof a&&(a=Pa(a));b&&U(a,b);return gc(a,x)}function ga(a){!a.__cssRules&&a.textContent&&(a.__cssRules=Pa(a.textContent));return a.__cssRules||null}function ic(a){return!!a.parent&&a.parent.type===H.ha}function U(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&f===H.MEDIA_RULE){var g=a.selector.match(ld);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===H.STYLE_RULE?b(a):c&&f===H.ha?c(a):f===H.ua&&(e=!0);if((a=a.rules)&&!e)for(var e=
0,f=a.length,h;e<f&&(h=a[e]);e++)U(h,b,c,d)}}function Qa(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;jc(e,c,d);return e}function jc(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);N?a.compareDocumentPosition(N)===Node.DOCUMENT_POSITION_PRECEDING&&(N=a):N=a}function kc(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d;a:{var e=0;d=c+3;for(var f=a.length;d<f;d++)if("("===a[d])e++;else if(")"===a[d]&&!--e)break a;
d=-1}e=a.substring(c+4,d);c=a.substring(0,c);a=kc(a.substring(d+1),b);d=e.indexOf(",");return-1===d?b(c,e.trim(),"",a):b(c,e.substring(0,d).trim(),e.substring(d+1).trim(),a)}function ha(a,b){p?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}function O(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,W:c}}function md(a){(a=ia[a])&&(a._applyShimInvalid=!0)}function nd(a){a.a||(a.a=
!0,od.then(function(){a._applyShimInvalid=!1;a.a=!1}))}function eb(a){lc?lc(a):(Ra||(Ra=new Promise(function(a){Sa=a}),"complete"===document.readyState?Sa():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&Sa()})),Ra.then(function(){a&&a()}))}(function(a){function b(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function c(a){if(m)return a.ownerDocument!==
document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!h(b)&&(b=b.parentNode););a.__importDoc=b}return b}function d(a){var b=document.querySelectorAll("link[rel=import]:not(import-dependency)"),c=b.length;if(c)for(var d=0,e=b.length,f;d<e&&(f=b[d]);d++)g(f,function(){--c||a()});else a()}function e(a){if("loading"!==document.readyState)a();else{var b=function(){"loading"!==document.readyState&&
(document.removeEventListener("readystatechange",b),a())};document.addEventListener("readystatechange",b)}}function f(a){e(function(){return d(function(){return a&&a()})})}function g(a,b){if(a.__loaded)b&&b();else if(h(a)&&!m&&null===a.import||a.import&&"complete"===a.import.readyState)a.__loaded=!0,b&&b();else if("script"!==a.localName||a.src){var c=function(d){a.removeEventListener(d.type,c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);w&&"style"===a.localName||a.addEventListener("error",
c)}else a.__loaded=!0,b&&b()}function h(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function k(){var a=this;this.a={};this.b=0;this.c=new MutationObserver(function(b){return a.l(b)});e(function(){a.c.observe(document.head,{childList:!0,subtree:!0});a.f(document)})}var m="import"in document.createElement("link"),n=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return n||("complete"!==document.readyState?document.scripts[document.scripts.length-
1]:null)},configurable:!0});var q=/(^\/)|(^#)|(^[\w-\d]*:)/,r=/(url\()([^)]*)(\))/g,t=/(@import[\s]+(?!url\())([^;]*)(;)/g,u=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,p={cb:function(a,b){a.href&&a.setAttribute("href",p.ta(a.getAttribute("href"),b));a.src&&a.setAttribute("src",p.ta(a.getAttribute("src"),b));if("style"===a.localName){var c=p.Ja(a.textContent,b,r);a.textContent=p.Ja(c,b,t)}},Ja:function(a,b,c){return a.replace(c,function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=p.Ka(a,b));return c+
"'"+a+"'"+e})},ta:function(a,b){return a&&q.test(a)?a:p.Ka(a,b)},Ka:function(a,b){if(void 0===p.ka){p.ka=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";p.ka="http://a/c%20d"===c.href}catch(Od){}}if(p.ka)return(new URL(a,b)).href;c=p.Va;c||(c=document.implementation.createHTMLDocument("temp"),p.Va=c,c.wa=c.createElement("base"),c.head.appendChild(c.wa),c.va=c.createElement("a"));c.wa.href=b;c.va.href=a;return c.va.href||a}},x={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=a.split(",");
var d=a[1],d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var e=new XMLHttpRequest;e.open("GET",a,x.async);e.onload=function(){var a=e.getResponseHeader("Location");a&&!a.indexOf("/")&&(a=(location.origin||location.protocol+"//"+location.host)+a);var d=e.response||e.responseText;304===e.status||!e.status||200<=e.status&&300>e.status?b(d,a):c(d)};e.send()}else c("error: href must be specified")}},w=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);k.prototype.f=
function(a){a=a.querySelectorAll("link[rel=import]");for(var b=0,c=a.length;b<c;b++)this.h(a[b])};k.prototype.h=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",x.load(c,function(a,d){a=b.m(a,d||c);b.a[c]=a;b.b--;b.f(a);b.i()},function(){b.a[c]=null;b.b--;b.i()})};k.prototype.m=function(a,b){if(!a)return document.createDocumentFragment();w&&(a=a.replace(u,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;else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=p.ta(c.getAttribute("href"),b),c.removeAttribute("href");for(var c=a.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),
d=0,e=0,f=c.length,h;e<f&&(h=c[e]);e++)g(h),p.cb(h,b),h.setAttribute("import-dependency",""),"script"===h.localName&&!h.src&&h.textContent&&(h.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(h.textContent+("\n//# sourceURL="+b+(d?"-"+d:"")+".js\n"))),h.textContent="",d++);return a};k.prototype.i=function(){var a=this;if(!this.b){this.c.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&&b&&(a.c.observe(document.head,{childList:!0,subtree:!0}),a.j())};this.v(function(){c=
!0;d()});this.o(function(){b=!0;d()})}};k.prototype.flatten=function(a){a=a.querySelectorAll("link[rel=import]");for(var b={},c=0,d=a.length;c<d&&(b.n=a[c]);b={n:b.n},c++){var e=this.a[b.n.href];(b.n.import=e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.a[b.n.href]=b.n,b.n.readyState="loading",b.n.import=b.n,Object.defineProperty(b.n,"baseURI",{get:function(a){return function(){return a.n.href}}(b),configurable:!0,enumerable:!0}),this.flatten(e),b.n.appendChild(e))}};k.prototype.o=function(a){function b(e){if(e<
d){var f=c[e],h=document.createElement("script");f.removeAttribute("import-dependency");for(var k=0,l=f.attributes.length;k<l;k++)h.setAttribute(f.attributes[k].name,f.attributes[k].value);n=h;f.parentNode.replaceChild(h,f);g(h,function(){n=null;b(e+1)})}else a()}var c=document.querySelectorAll("script[import-dependency]"),d=c.length;b(0)};k.prototype.v=function(a){var b=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),d=b.length;if(d)for(var e=w&&
!!document.querySelector("link[rel=stylesheet][href][type=import-disable]"),f={},h=0,k=b.length;h<k&&(f.u=b[h]);f={u:f.u},h++){if(g(f.u,function(b){return function(){b.u.removeAttribute("import-dependency");--d||a()}}(f)),e&&f.u.parentNode!==document.head){var l=document.createElement(f.u.localName);l.__appliedElement=f.u;l.setAttribute("type","import-placeholder");f.u.parentNode.insertBefore(l,f.u.nextSibling);for(l=c(f.u);l&&c(l);)l=c(l);l.parentNode!==document.head&&(l=null);document.head.insertBefore(f.u,
l);f.u.removeAttribute("type")}}else a()};k.prototype.j=function(){for(var a=document.querySelectorAll("link[rel=import]"),b=a.length-1,c;0<=b&&(c=a[b]);b--)this.g(c)};k.prototype.g=function(a){a.__loaded||(a.__loaded=!0,a.import&&(a.import.readyState="complete"),a.dispatchEvent(b(a.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.l=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.addedNodes)for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d];e&&e.nodeType===
Node.ELEMENT_NODE&&(h(e)?this.h(e):this.f(e))}}};if(m){for(var v=document.querySelectorAll("link[rel=import]"),y=0,A=v.length,z;y<A&&(z=v[y]);y++)z.import&&"loading"===z.import.readyState||(z.__loaded=!0);v=function(a){a=a.target;h(a)&&(a.__loaded=!0)};document.addEventListener("load",v,!0);document.addEventListener("error",v,!0)}else new k;f(function(){return document.dispatchEvent(b("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});a.useNative=m;a.whenReady=f;a.importForElement=c})(window.HTMLImports=
window.HTMLImports||{});var C=window.ShadyDOM||{};C.fb=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Ta=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");C.T=!!(Ta&&Ta.configurable&&Ta.get);C.Ea=C.force||!C.fb;var V=Element.prototype,mc=V.matches||V.matchesSelector||V.mozMatchesSelector||V.msMatchesSelector||V.oMatchesSelector||V.webkitMatchesSelector,Aa=document.createTextNode(""),yb=0,za=[];(new MutationObserver(function(){for(;za.length;)try{za.shift()()}catch(a){throw Aa.textContent=
yb++,a;}})).observe(Aa,{characterData:!0});var X=[],Ba;Ca.list=X;ea.prototype.mb=function(){var a=this;this.a||(this.a=!0,xb(function(){a.b()}))};ea.prototype.b=function(){if(this.a){this.a=!1;var a=this.takeRecords();a.length&&this.Z.forEach(function(b){b(a)})}};ea.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};var Xb=Element.prototype.appendChild,
Ja=Element.prototype.insertBefore,R=Element.prototype.removeChild,nc=Element.prototype.setAttribute,oc=Element.prototype.removeAttribute,Ua=Element.prototype.cloneNode,Ka=Document.prototype.importNode,pc=Element.prototype.addEventListener,qc=Element.prototype.removeEventListener,pd=Object.freeze({appendChild:Xb,insertBefore:Ja,removeChild:R,setAttribute:nc,removeAttribute:oc,cloneNode:Ua,importNode:Ka,addEventListener:pc,removeEventListener:qc}),bd=/[&\u00A0"]/g,ed=/[&\u00A0<>]/g,cd=Bb("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),
dd=Bb("style script xmp iframe noembed noframes plaintext noscript".split(" ")),z=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),B=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),qd=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}),Va=Object.getOwnPropertyDescriptor(Element.prototype,
"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),ja=document.implementation.createHTMLDocument("inert").createElement("div"),Wa=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}},Ea={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?Da(a):Kb(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);
for(Va&&Va.set?Va.set.call(ja,a):ja.innerHTML=a;ja.firstChild;)b.appendChild(ja.firstChild)},configurable:!0}},rc={shadowRoot:{get:function(){return this.__shady&&this.__shady.root||null},set:function(a){this.__shady=this.__shady||{};this.__shady.root=a},configurable:!0}},Fa={activeElement:{get:function(){var a;a=Wa&&Wa.get?Wa.get.call(document):C.T?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=Q(a);b&&b!==this;)a=
b.host,b=Q(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}},vb=C.T?function(){}:function(a){a.__shady&&a.__shady.Ua||(a.__shady=a.__shady||{},a.__shady.Ua=!0,I(a,Mb,!0))},ub=C.T?function(){}:function(a){a.__shady&&a.__shady.Sa||(a.__shady=a.__shady||{},a.__shady.Sa=!0,I(a,Ea,!0),I(a,rc,!0))},ka=null,rd={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.ia&&(this.ia=rd[this.type]);return this.ia||!1},composedPath:function(){this.xa||(this.xa=La(this.__target,this.composed));return this.xa},get target(){return Zb(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.ya)return null;this.za||(this.za=La(this.ya,!0));return Zb(this.currentTarget,this.za)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ja=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);
this.ja=this.Ra=!0}},Na={focus:!0,blur:!0},sd=Ma(window.Event),td=Ma(window.CustomEvent),ud=Ma(window.MouseEvent),vd="function"===typeof Event?Event:function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};A.prototype.eb=function(){return this.root.querySelectorAll("slot")};A.prototype.qa=function(a){return a.localName&&"slot"==a.localName};A.prototype.oa=function(){return this.root.pa()?this.g(this.c()):[]};A.prototype.c=function(){for(var a=[],
b=0,c=this.root.host.firstChild;c;c=c.nextSibling)a[b++]=c;return a};A.prototype.g=function(a){for(var b=[],c=this.root.ma(),d=0,e=c.length,f;d<e&&(f=c[d]);d++){this.f(f,a);var g=f.parentNode;(g=g&&g.__shady&&g.__shady.root)&&g.pa()&&b.push(g)}for(c=0;c<a.length;c++)if(d=a[c])d.__shady=d.__shady||{},d.__shady.assignedSlot=void 0,(e=L(d))&&R.call(e,d);return b};A.prototype.f=function(a,b){var c=a.__shady.assignedNodes;c&&this.Aa(a,!0);a.__shady.assignedNodes=[];for(var d=!1,e=!1,f=0,g=b.length,h;f<
g;f++)(h=b[f])&&this.h(h,a)&&(h.__shady.na!=a&&(d=!0),this.b(h,a),b[f]=void 0,e=!0);if(!e)for(b=a.childNodes,e=0;e<b.length;e++)h=b[e],h.__shady.na!=a&&(d=!0),this.b(h,a);if(c){for(h=0;h<c.length;h++)c[h].__shady.na=null;a.__shady.assignedNodes.length<c.length&&(d=!0)}this.i(a);d&&this.a(a)};A.prototype.Aa=function(a,b){var c=a.__shady.assignedNodes;if(c)for(var d=0;d<c.length;d++){var e=c[d];b&&(e.__shady.na=e.__shady.assignedSlot);e.__shady.assignedSlot===a&&(e.__shady.assignedSlot=null)}};A.prototype.h=
function(a,b){b=(b=b.getAttribute("name"))?b.trim():"";a=(a=a.getAttribute&&a.getAttribute("slot"))?a.trim():"";return a==b};A.prototype.b=function(a,b){b.__shady.assignedNodes.push(a);a.__shady.assignedSlot=b};A.prototype.i=function(a){var b=a.__shady.assignedNodes;a.__shady.M=[];for(var c=0,d;c<b.length&&(d=b[c]);c++)if(this.qa(d)){var e=d.__shady.M;if(e)for(var f=0;f<e.length;f++)a.__shady.M.push(e[f])}else a.__shady.M.push(b[c])};A.prototype.a=function(a){a.dispatchEvent(new vd("slotchange"));
a.__shady.assignedSlot&&this.a(a.__shady.assignedSlot)};A.prototype.aa=function(a){return!a.__shady.assignedSlot};var tb={};q.prototype=Object.create(DocumentFragment.prototype);q.prototype.i=function(a){this.Ta="ShadyRoot";P(a);P(this);a.shadowRoot=this;this.host=a;this.la=this.L=!1;this.B=new A(this);this.update()};q.prototype.update=function(){var a=this;this.L||(this.L=!0,zb(function(){return a.Ia()}))};q.prototype.h=function(){for(var a=this,b=this;b;)b.L&&(a=b),b=b.Ya();return a};q.prototype.Ya=
function(){var a=this.host.getRootNode();if(E(a))for(var b=this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this.B.qa(d))return a};q.prototype.Ia=function(){this.L&&this.h()._render()};q.prototype._render=function(){this.la=this.L=!1;this.X||this.f();this.X=!1;this.oa();this.j()};q.prototype.oa=function(){for(var a=this.B.oa(),b=0;b<a.length;b++)a[b]._render()};q.prototype.f=function(){var a=this.a;if(a)for(var b=0,c;b<a.length;b++)c=a[b],c.getRootNode()!==this&&this.B.Aa(c);a=this.a=this.B.eb();
for(b=0;b<a.length;b++)c=a[b],c.__shady=c.__shady||{},P(c),P(c.parentNode)};q.prototype.j=function(){this.g()};q.prototype.g=function(){this.c(this.host,this.b(this.host));for(var a=this.ma(),b=0,c=a.length,d,e;b<c&&(d=a[b]);b++)e=d.parentNode,e!==this.host&&e!==this&&this.c(e,this.b(e))};q.prototype.b=function(a){var b=[];a=(a.__shady&&a.__shady.root||a).childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this.B.qa(d))for(var e=d.__shady.M||(d.__shady.M=[]),f=0;f<e.length;f++){var g=e[f];this.aa(d,
g)&&b.push(g)}else b.push(d)}return b};q.prototype.aa=function(a,b){return this.B.aa(a,b)};q.prototype.c=function(a,b){for(var c=W(a),d=hd(b,b.length,c,c.length),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,k;h<g.V.length&&(k=g.V[h]);h++)L(k)===a&&R.call(a,k),c.splice(g.index+f,1);f-=g.Y}for(e=0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.Y;h++)k=b[h],Ja.call(a,k,f),c.splice(h,0,k)};q.prototype.pa=function(){return!(!this.a||!this.a.length)};q.prototype.ma=function(){this.a||
this.f();return this.a};(function(a){I(a,Ea,!0);I(a,Fa,!0)})(q.prototype);var wd={addEventListener:function(a,b,c){if(b){var d,e,f;"object"===typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);if(b.w)for(var g=0;g<b.w.length;g++){if(ac(b.w[g],this,a,d,e,f))return}else b.w=[];g=function(d){e&&this.removeEventListener(a,b,c);d.__target||bc(d);if(d.composed||-1<d.composedPath().indexOf(this))if(d.eventPhase===Event.BUBBLING_PHASE&&d.target===d.relatedTarget)d.stopImmediatePropagation();
else return b.call(this,d)};b.w.push({node:this,type:a,capture:d,once:e,passive:f,pb:g});Na[a]?(this.A=this.A||{},this.A[a]=this.A[a]||{capture:[],bubble:[]},this.A[a][d?"capture":"bubble"].push(g)):pc.call(this,a,g,c)}},removeEventListener:function(a,b,c){if(b){var d,e,f;"object"===typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);var g=void 0;if(b.w)for(var h=0;h<b.w.length;h++)if(ac(b.w[h],this,a,d,e,f)){g=b.w.splice(h,1)[0].pb;b.w.length||(b.w=void 0);break}qc.call(this,a,g||b,
c);g&&Na[a]&&this.A&&this.A[a]&&(a=this.A[a][d?"capture":"bubble"],g=a.indexOf(g),-1<g&&a.splice(g,1))}},appendChild:function(a){return Wb(this,a)},insertBefore:function(a,b){return Wb(this,a,b)},removeChild:function(a){if(a.parentNode!==this)throw Error("The node to be removed is not a child of this node: "+a);if(!Ob(a)){var b=E(this)?this.host:this,c=L(a);b===c&&R.call(b,a)}Ha(this,null,a);return a},replaceChild:function(a,b){this.insertBefore(a,b);this.removeChild(b);return a},cloneNode:function(a){var b;
if("template"==this.localName)b=Ua.call(this,a);else if(b=Ua.call(this,!1),a){a=this.childNodes;for(var c=0,d;c<a.length;c++)d=a[c].cloneNode(!0),b.appendChild(d)}return b},getRootNode:function(){return Ia(this)},get isConnected(){var a=this.ownerDocument;if(a&&a.contains&&a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof q?a.host:void 0);return!!(a&&a instanceof Document)}},xd={get assignedSlot(){return dc(this)}},
Xa={querySelector:function(a){return Tb(this,function(b){return mc.call(b,a)},function(a){return!!a})[0]||null},querySelectorAll:function(a){return Tb(this,function(b){return mc.call(b,a)})}},sc={assignedNodes:function(a){if("slot"===this.localName)return Vb(this),this.__shady?(a&&a.flatten?this.__shady.M:this.__shady.assignedNodes)||[]:[]}},tc=wb({setAttribute:function(a,b){ka||(ka=window.ShadyCSS&&window.ShadyCSS.ScopingShim);ka&&"class"===a?ka.setElementClass(this,b):(nc.call(this,a,b),Sb(this,
a))},removeAttribute:function(a){oc.call(this,a);Sb(this,a)},attachShadow:function(a){if(!this)throw"Must provide a host.";if(!a)throw"Not enough arguments.";return new q(tb,this)},get slot(){return this.getAttribute("slot")},set slot(a){this.setAttribute("slot",a)},get assignedSlot(){return dc(this)}},Xa,sc);Object.defineProperties(tc,rc);var uc=wb({importNode:function(a,b){return Yb(a,b)}},Xa);Object.defineProperties(uc,{_activeElement:Fa.activeElement});C.Ea&&(window.ShadyDOM={inUse:C.Ea,patch:function(a){return a},
isShadyRoot:E,enqueue:zb,flush:Ca,settings:C,filterMutations:ad,observeChildren:Zc,unobserveChildren:Yc,nativeMethods:pd,nativeTree:qd},window.Event=sd,window.CustomEvent=td,window.MouseEvent=ud,gd(),S(window.Node.prototype,wd),S(window.Text.prototype,xd),S(window.DocumentFragment.prototype,Xa),S(window.Element.prototype,tc),S(window.Document.prototype,uc),window.HTMLSlotElement&&S(window.HTMLSlotElement.prototype,sc),C.T&&(M(window.Node.prototype),M(window.Text.prototype),M(window.DocumentFragment.prototype),
M(window.Element.prototype),M((window.customElements&&window.customElements.nativeHTMLElement||HTMLElement).prototype),M(window.Document.prototype),window.HTMLSlotElement&&M(window.HTMLSlotElement.prototype)),window.ShadowRoot=q);var jd=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));y.prototype.J=function(a,b){this.m.set(a,b);this.l.set(b.constructor,b)};y.prototype.f=function(a){return this.m.get(a)};y.prototype.I=
function(a){return this.l.get(a)};y.prototype.o=function(a){this.h=!0;this.i.push(a)};y.prototype.j=function(a){var b=this;this.h&&K(a,function(a){return b.g(a)})};y.prototype.g=function(a){if(this.h&&!a.__CE_patched){a.__CE_patched=!0;for(var b=0;b<this.i.length;b++)this.i[b](a)}};y.prototype.b=function(a){var b=[];K(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];1===c.__CE_state?this.connectedCallback(c):this.v(c)}};y.prototype.a=function(a){var b=[];K(a,function(a){return b.push(a)});
for(a=0;a<b.length;a++){var c=b[a];1===c.__CE_state&&this.disconnectedCallback(c)}};y.prototype.c=function(a,b){b=b?b:new Set;var c=this,d=[];K(a,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var e=a.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):a.addEventListener("load",function(){var d=a.import;d.__CE_documentLoadHandled||(d.__CE_documentLoadHandled=!0,d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0,new Set(b),b.delete(d),
c.c(d,b))})}else d.push(a)},b);if(this.h)for(a=0;a<d.length;a++)this.g(d[a]);for(a=0;a<d.length;a++)this.v(d[a])};y.prototype.v=function(a){if(void 0===a.__CE_state){var b=this.f(a.localName);if(b){b.constructionStack.push(a);var c=b.constructor;try{try{if(new c!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(f){throw a.__CE_state=2,f;}a.__CE_state=1;a.__CE_definition=b;if(b.attributeChangedCallback)for(b=b.observedAttributes,
c=0;c<b.length;c++){var d=b[c],e=a.getAttribute(d);null!==e&&this.attributeChangedCallback(a,d,null,e,null)}m(a)&&this.connectedCallback(a)}}};y.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};y.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};y.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&
f.attributeChangedCallback.call(a,b,c,d,e)};va.prototype.c=function(){this.K&&this.K.disconnect()};va.prototype.f=function(a){var b=this.a.readyState;"interactive"!==b&&"complete"!==b||this.c();for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)this.b.c(c[d])};sb.prototype.c=function(){if(this.a)throw Error("Already resolved.");this.a=void 0;this.b&&this.b(void 0)};w.prototype.i=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");
if(!ec(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this.a.f(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this.f)throw Error("A custom element is already being defined.");this.f=!0;var d,e,f,g,h;try{var k=function(a){var b=m[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");return b},m=b.prototype;if(!(m instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");
d=k("connectedCallback");e=k("disconnectedCallback");f=k("adoptedCallback");g=k("attributeChangedCallback");h=b.observedAttributes||[]}catch(Nd){return}finally{this.f=!1}this.a.J(a,{localName:a,constructor:b,connectedCallback:d,disconnectedCallback:e,adoptedCallback:f,attributeChangedCallback:g,observedAttributes:h,constructionStack:[]});this.c.push(a);this.b||(this.b=!0,this.g(function(){return c.l()}))};w.prototype.l=function(){if(!1!==this.b)for(this.b=!1,this.a.c(document);0<this.c.length;){var a=
this.c.shift();(a=this.h.get(a))&&a.c()}};w.prototype.get=function(a){if(a=this.a.f(a))return a.constructor};w.prototype.o=function(a){if(!ec(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.h.get(a);if(b)return b.f;b=new sb;this.h.set(a,b);this.a.f(a)&&-1===this.c.indexOf(a)&&b.c();return b.f};w.prototype.m=function(a){this.j.c();var b=this.g;this.g=function(c){return a(function(){return b(c)})}};window.CustomElementRegistry=w;w.prototype.define=
w.prototype.i;w.prototype.get=w.prototype.get;w.prototype.whenDefined=w.prototype.o;w.prototype.polyfillWrapFlushCallback=w.prototype.m;var ra=window.Document.prototype.createElement,Tc=window.Document.prototype.createElementNS,Sc=window.Document.prototype.importNode,Uc=window.Document.prototype.prepend,Vc=window.Document.prototype.append,hb=window.Node.prototype.cloneNode,ca=window.Node.prototype.appendChild,pb=window.Node.prototype.insertBefore,sa=window.Node.prototype.removeChild,qb=window.Node.prototype.replaceChild,
ua=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),gb=window.Element.prototype.attachShadow,pa=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),ta=window.Element.prototype.getAttribute,ib=window.Element.prototype.setAttribute,kb=window.Element.prototype.removeAttribute,da=window.Element.prototype.getAttributeNS,jb=window.Element.prototype.setAttributeNS,lb=window.Element.prototype.removeAttributeNS,nb=window.Element.prototype.insertAdjacentElement,Jc=window.Element.prototype.prepend,
Kc=window.Element.prototype.append,Mc=window.Element.prototype.before,Nc=window.Element.prototype.after,Oc=window.Element.prototype.replaceWith,Pc=window.Element.prototype.remove,Xc=window.HTMLElement,qa=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),mb=window.HTMLElement.prototype.insertAdjacentElement,rb=new function(){},la=window.customElements;if(!la||la.forcePolyfill||"function"!=typeof la.define||"function"!=typeof la.get){var Z=new y;Wc(Z);Rc(Z);Qc(Z);Hc(Z);document.__CE_hasRegistry=
!0;var yd=new w(Z);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:yd})}var H={STYLE_RULE:1,ha:7,MEDIA_RULE:4,ua:1E3},F={bb:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,Ba:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Fa:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,jb:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,ob:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,ib:/^@[^\s]*keyframes/,Ga:/\s+/g},p=!(window.ShadyDOM&&window.ShadyDOM.inUse),
x=!navigator.userAgent.match("AppleWebKit/601")&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)");window.ShadyCSS?hc(window.ShadyCSS):window.WebComponents&&hc(window.WebComponents.flags);var vc=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,wc=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,zd=/(--[\w-]+)\s*([:,;)]|$)/gi,Ad=/(animation\s*:)|(animation-name\s*:)/,ld=/@media[^(]*(\([^)]*\))/,Bd=/\{[^}]*\}/g,N=null;r.prototype.g=function(a,b,c){a.__styleScoped?
a.__styleScoped=null:this.i(a,b||"",c)};r.prototype.i=function(a,b,c){a.nodeType===Node.ELEMENT_NODE&&this.v(a,b,c);if(a="template"===a.localName?(a.content||a.sb).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this.i(a[d],b,c)};r.prototype.v=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute(Cd);c?d&&(b=d.replace("style-scope","").replace(b,
""),ha(a,b)):ha(a,(d?d+" ":"")+"style-scope "+b)}};r.prototype.b=function(a,b,c){var d=a.__cssBuild;p||"shady"===d?b=T(b,c):(a=O(a),b=this.P(b,a.is,a.W,c)+"\n\n");return b.trim()};r.prototype.P=function(a,b,c,d){var e=this.c(b,c);b=this.h(b);var f=this;return T(a,function(a){a.c||(f.S(a,b,e),a.c=!0);d&&d(a,b,e)})};r.prototype.h=function(a){return a?Dd+a:""};r.prototype.c=function(a,b){return b?"[is="+a+"]":a};r.prototype.S=function(a,b,c){this.j(a,this.f,b,c)};r.prototype.j=function(a,b,c,d){a.selector=
a.C=this.l(a,b,c,d)};r.prototype.l=function(a,b,c,d){var e=a.selector.split(xc);if(!ic(a)){a=0;for(var f=e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(xc)};r.prototype.f=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(Ed,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(Fd,Ya+" $1");return a=a.replace(Gd,function(a,g,h){e||(a=d.I(h,g,b,c),e=e||a.stop,g=a.ab,h=a.value);return g+h})};r.prototype.I=function(a,b,c,d){var e=a.indexOf(Za);0<=a.indexOf(Ya)?
a=this.O(a,d):0!==e&&(a=c?this.m(a,c):a);c=!1;0<=e&&(b="",c=!0);var f;c&&(f=!0,c&&(a=a.replace(Hd,function(a,b){return" > "+b})));a=a.replace(Id,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,ab:b,stop:f}};r.prototype.m=function(a,b){a=a.split(yc);a[0]+=b;return a.join(yc)};r.prototype.O=function(a,b){var c=a.match(zc);return(c=c&&c[2].trim()||"")?c[0].match(Ac)?a.replace(zc,function(a,c,f){return b+f}):c.split(Ac)[0]===b?c:Jd:a.replace(Ya,b)};r.prototype.R=function(a){a.selector=
a.parsedSelector;this.o(a);this.j(a,this.J)};r.prototype.o=function(a){a.selector===Kd&&(a.selector="html")};r.prototype.J=function(a){return a.match(Za)?this.f(a,Bc):this.m(a.trim(),Bc)};db.Object.defineProperties(r.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Ed=/:(nth[-\w]+)\(([^)]+)\)/,Bc=":not(.style-scope)",xc=",",Gd=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Ac=/[[.:#*]/,Ya=":host",Kd=":root",Za="::slotted",Fd=new RegExp("^("+Za+")"),zc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,
Hd=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Id=/(.*):dir\((?:(ltr|rtl))\)/,Dd=".",yc=":",Cd="class",Jd="should_not_match",t=new r;u.get=function(a){return a?a.__styleInfo:null};u.set=function(a,b){return a.__styleInfo=b};u.prototype.c=function(){return this.G};u.prototype._getStyleRules=u.prototype.c;var Cc=function(a){return a.matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}(window.Element.prototype),Ld=navigator.userAgent.match("Trident");
n.prototype.S=function(a){var b=this,c={},d=[],e=0;U(a,function(a){b.c(a);a.index=e++;b.R(a.s.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.s){var b={},c={};this.b(a,c)&&(b.F=c,a.rules=null);b.cssText=this.P(a);a.s=b}};n.prototype.b=function(a,b){var c=a.s;if(c){if(c.F)return Object.assign(b,c.F),!0}else{for(var c=a.parsedCssText,d;a=vc.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}};
n.prototype.P=function(a){return this.O(a.parsedCssText)};n.prototype.O=function(a){return a.replace(Bd,"").replace(vc,"")};n.prototype.R=function(a,b){for(var c;c=zd.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};n.prototype.ea=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c<b.length;c++)d=b[c],a[d]=this.a(a[d],a)};n.prototype.a=function(a,b){if(a)if(0<=a.indexOf(";"))a=this.f(a,b);else{var c=this;a=kc(a,function(a,e,f,g){if(!e)return a+g;(e=c.a(b[e],b))&&"initial"!==e?"apply-shim-inherit"===
e&&(e="inherit"):e=c.a(b[f]||f,b)||f;return a+(e||"")+g})}return a&&a.trim()||""};n.prototype.f=function(a,b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){wc.lastIndex=0;if(e=wc.exec(d))d=this.a(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e),f=f.trim(),f=this.a(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||""}return a.join(";")};n.prototype.J=function(a,b){var c="";a.s||this.c(a);a.s.cssText&&(c=this.f(a.s.cssText,b));a.cssText=
c};n.prototype.I=function(a,b){var c=a.cssText,d=a.cssText;null==a.Da&&(a.Da=Ad.test(c));if(a.Da)if(null==a.ba){a.ba=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.ba.push(e))}else{for(e=0;e<a.ba.length;++e)d=b[a.ba[e]],c=d(c);d=c}a.cssText=d};n.prototype.da=function(a,b){var c={},d=this,e=[];U(a,function(a){a.s||d.c(a);var f=a.C||a.parsedSelector;b&&a.s.F&&f&&Cc.call(b,f)&&(d.b(a,c),a=a.index,f=parseInt(a/32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{F:c,key:e}};n.prototype.ga=function(a,b,c,d){b.s||
this.c(b);if(b.s.F){var e=O(a);a=e.is;var e=e.W,e=a?t.c(a,e):"html",f=b.parsedSelector,g=":host > *"===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&&(p&&!b.C&&(b.C=t.l(b,t.f,t.h(a),e)),c=b.C||e),d({nb:c,hb:h,ub:g})}};n.prototype.ca=function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;U(b,function(b){e.ga(a,b,f,function(f){Cc.call(a.tb||a,f.nb)&&(f.hb?e.b(b,
c):e.b(b,d))})},null,!0);return{lb:d,gb:c}};n.prototype.fa=function(a,b,c){var d=this,e=O(a),f=t.c(e.is,e.W),g=new RegExp("(?:^|[^.#[:])"+(a.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),e=u.get(a).G,h=this.h(e,c);return t.b(a,e,function(a){d.J(a,b);p||ic(a)||!a.cssText||(d.I(a,h),d.l(a,g,f,c))})};n.prototype.h=function(a,b){a=a.b;var c={};if(!p&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this.j(e,b),c[e.keyframesName]=this.i(e);return c};n.prototype.i=function(a){return function(b){return b.replace(a.f,
a.a)}};n.prototype.j=function(a,b){a.f=new RegExp(a.keyframesName,"g");a.a=a.keyframesName+"-"+b;a.C=a.C||a.selector;a.selector=a.C.replace(a.keyframesName,a.a)};n.prototype.l=function(a,b,c,d){a.C=a.C||a.selector;d="."+d;for(var e=a.C.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};n.prototype.o=function(a,b,c){var d=a.getAttribute("class")||"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+
b;d!==e&&ha(a,e)};n.prototype.v=function(a,b,c,d){b=d?d.textContent||"":this.fa(a,b,c);var e=u.get(a),f=e.a;f&&!p&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));p?e.a?(e.a.textContent=b,d=e.a):b&&(d=Qa(b,c,a.shadowRoot,e.b)):d?d.parentNode||jc(d,null,e.b):b&&(d=Qa(b,c,null,e.b));d&&(d._useCount=d._useCount||0,e.a!=d&&d._useCount++,e.a=d);Ld&&(d.textContent=d.textContent);return d};n.prototype.m=function(a,b){var c=ga(a),d=this;a.textContent=T(c,function(a){var c=
a.cssText=a.parsedCssText;a.s&&a.s.cssText&&(c=c.replace(F.Ba,"").replace(F.Fa,""),a.cssText=d.f(c,b))})};db.Object.defineProperties(n.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var J=new n,$a={},ma=window.customElements;if(ma&&!p){var Md=ma.define;ma.define=function(a,b,c){var d=document.createComment(" Shady DOM styles for "+a+" "),e=document.head;e.insertBefore(d,(N?N.nextSibling:null)||e.firstChild);N=d;$a[a]=d;return Md.call(ma,a,b,c)}}ba.prototype.b=function(a,
b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.F[e]!==b[e])return!1}return!0};ba.prototype.c=function(a,b,c,d){var e=this.cache[a]||[];e.push({F:b,styleElement:c,D:d});e.length>this.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(!p){var Dc=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head){for(var d=0;d<c.addedNodes.length;d++){var e=
c.addedNodes[d];if(e.classList&&!e.classList.contains(t.a)||e instanceof window.SVGElement&&(!e.hasAttribute("class")||0>e.getAttribute("class").indexOf(t.a))){var f=e.getRootNode();f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(f=f.host)&&(f=O(f).is,t.g(e,f))}}for(d=0;d<c.removedNodes.length;d++)if(e=c.removedNodes[d],e.nodeType===Node.ELEMENT_NODE&&(f=void 0,e.classList?f=Array.from(e.classList):e.hasAttribute("class")&&(f=e.getAttribute("class").split(/\s+/)),f)){var g=f.indexOf(t.a);0<=g&&(f=f[g+
1])&&t.g(e,f,!0)}}}},Ec=new MutationObserver(Dc),Fc=function(a){Ec.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.flush)Fc(document);else{var ab=function(){Fc(document.body)};window.HTMLImports?window.HTMLImports.whenReady(ab):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){ab();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else ab()})}fb=function(){Dc(Ec.takeRecords())}}var ia=
{},od=Promise.resolve(),Ra=null,lc=window.HTMLImports&&window.HTMLImports.whenReady||null,Sa,na=null,aa=null;D.prototype.Ca=function(){!this.enqueued&&aa&&(this.enqueued=!0,eb(aa))};D.prototype.b=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),this.Ca())};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<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=
this.a(c);if(d){var e=d.__appliedElement;if(e)for(var f=0;f<d.attributes.length;f++){var g=d.attributes[f];e.setAttribute(g.name,g.value)}d=e||d;na&&na(d);c.__shadyCSSCachedStyle=d}}}return a};D.prototype.addCustomStyle=D.prototype.b;D.prototype.getStyleForCustomStyle=D.prototype.a;D.prototype.processStyles=D.prototype.c;Object.defineProperties(D.prototype,{transformCallback:{get:function(){return na},set:function(a){na=a}},validateCallback:{get:function(){return aa},set:function(a){var b=!1;aa||
(b=!0);aa=a;b&&this.Ca()}}});var Gc=new ba;k.prototype.I=function(){fb()};k.prototype.ca=function(a){var b=this.m[a]=(this.m[a]||0)+1;return a+"-"+b};k.prototype.Oa=function(a){return ga(a)};k.prototype.Qa=function(a){return T(a)};k.prototype.S=function(a){a=a.content.querySelectorAll("style");for(var b=[],c=0;c<a.length;c++){var d=a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};k.prototype.ea=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||
"":""};k.prototype.prepareTemplate=function(a,b,c){if(!a.f){a.f=!0;a.name=b;a.extends=c;ia[b]=a;var d=this.ea(a),e=this.S(a);c={is:b,extends:c,qb:d};p||t.g(a.content,b);this.c();var f=this.b.detectMixin(e),e=Pa(e);f&&x&&this.b.transformRules(e,b);a._styleAst=e;a.g=d;d=[];x||(d=J.S(a._styleAst));if(!d.length||x)b=this.da(c,a._styleAst,p?a.content:null,$a[b]),a.b=b;a.c=d}};k.prototype.da=function(a,b,c,d){b=t.b(a,b);if(b.length)return Qa(b,a.is,c,d)};k.prototype.ga=function(a){var b=O(a),c=b.is,b=b.W,
d=$a[c],c=ia[c],e,f;c&&(e=c._styleAst,f=c.c);return u.set(a,new u(e,d,f,0,b))};k.prototype.P=function(){if(!this.b)if(window.ShadyCSS.ApplyShim)this.b=window.ShadyCSS.ApplyShim,this.b.invalidCallback=md;else{var a={};this.b=(a.detectMixin=function(){return!1},a.transformRule=function(){},a.transformRules=function(){},a)}};k.prototype.R=function(){var a=this;if(!this.a)if(window.ShadyCSS.CustomStyleInterface)this.a=window.ShadyCSS.CustomStyleInterface,this.a.transformCallback=function(b){a.v(b)},this.a.validateCallback=
function(){requestAnimationFrame(function(){(a.a.enqueued||a.i)&&a.f()})};else{var b={};this.a=(b.processStyles=function(){},b.enqueued=!1,b.getStyleForCustomStyle=function(){return null},b)}};k.prototype.c=function(){this.P();this.R()};k.prototype.f=function(){this.c();var a=this.a.processStyles();this.a.enqueued&&(x?this.Ma(a):(this.o(this.g,this.h),this.J(a)),this.a.enqueued=!1,this.i&&!x&&this.styleDocument())};k.prototype.styleElement=function(a,b){var c=O(a).is,d=u.get(a);d||(d=this.ga(a));
this.j(a)||(this.i=!0);b&&(d.N=d.N||{},Object.assign(d.N,b));if(x){if(d.N){b=d.N;for(var e in b)null===e?a.style.removeProperty(e):a.style.setProperty(e,b[e])}((e=ia[c])||this.j(a))&&e&&e.b&&e._applyShimInvalid&&(e.a||(this.c(),this.b.transformRules(e._styleAst,c),e.b.textContent=t.b(a,d.G),nd(e)),p&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=t.b(a,d.G)),d.G=e._styleAst)}else this.o(a,d),d.ra&&d.ra.length&&this.O(a,d)};k.prototype.l=function(a){return(a=a.getRootNode().host)?u.get(a)?
a:this.l(a):this.g};k.prototype.j=function(a){return a===this.g};k.prototype.O=function(a,b){var c=O(a).is,d=Gc.a(c,b.H,b.ra),e=d?d.styleElement:null,f=b.D;b.D=d&&d.D||this.ca(c);e=J.v(a,b.H,b.D,e);p||J.o(a,b.D,f);d||Gc.c(c,b.H,e,b.D)};k.prototype.o=function(a,b){var c=this.l(a),d=u.get(c),c=Object.create(d.H||null),e=J.ca(a,b.G);a=J.da(d.G,a).F;Object.assign(c,e.gb,a,e.lb);this.fa(c,b.N);J.ea(c);b.H=c};k.prototype.fa=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};k.prototype.styleDocument=
function(a){this.styleSubtree(this.g,a)};k.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;(c||this.j(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);else if(a=a.children||a.childNodes)for(b=0;b<a.length;b++)this.styleSubtree(a[b])};k.prototype.Ma=function(a){for(var b=0;b<a.length;b++){var c=this.a.getStyleForCustomStyle(a[b]);c&&this.La(c)}};k.prototype.J=function(a){for(var b=0;b<a.length;b++){var c=this.a.getStyleForCustomStyle(a[b]);
c&&J.m(c,this.h.H)}};k.prototype.v=function(a){var b=this,c=ga(a);U(c,function(a){p?t.o(a):t.R(a);x&&(b.c(),b.b.transformRule(a))});x?a.textContent=T(c):this.h.G.rules.push(c)};k.prototype.La=function(a){if(x){var b=ga(a);this.c();this.b.transformRules(b);a.textContent=T(b)}};k.prototype.getComputedStyleValue=function(a,b){var c;x||(c=(u.get(a)||u.get(this.l(a))).H[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};k.prototype.Pa=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):
[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d)for(var d=d.split(/\s/),e=0;e<d.length;e++)if(d[e]===t.a){c=d[e+1];break}}c&&b.push(t.a,c);x||(c=u.get(a))&&c.D&&b.push(J.g,c.D);ha(a,b.join(" "))};k.prototype.Na=function(a){return u.get(a)};k.prototype.flush=k.prototype.I;k.prototype.prepareTemplate=k.prototype.prepareTemplate;k.prototype.styleElement=k.prototype.styleElement;k.prototype.styleDocument=k.prototype.styleDocument;k.prototype.styleSubtree=k.prototype.styleSubtree;
k.prototype.getComputedStyleValue=k.prototype.getComputedStyleValue;k.prototype.setElementClass=k.prototype.Pa;k.prototype._styleInfoForNode=k.prototype.Na;k.prototype.transformCustomStyleForDocument=k.prototype.v;k.prototype.getStyleAst=k.prototype.Oa;k.prototype.styleAstToString=k.prototype.Qa;k.prototype.flushCustomStyles=k.prototype.f;Object.defineProperties(k.prototype,{nativeShadow:{get:function(){return p}},nativeCss:{get:function(){return x}}});var G=new k,bb,cb;window.ShadyCSS&&(bb=window.ShadyCSS.ApplyShim,
cb=window.ShadyCSS.CustomStyleInterface);window.ShadyCSS={ScopingShim:G,prepareTemplate:function(a,b,c){G.f();G.prepareTemplate(a,b,c)},styleSubtree:function(a,b){G.f();G.styleSubtree(a,b)},styleElement:function(a){G.f();G.styleElement(a)},styleDocument:function(a){G.f();G.styleDocument(a)},getComputedStyleValue:function(a,b){return G.getComputedStyleValue(a,b)},nativeCss:x,nativeShadow:p};bb&&(window.ShadyCSS.ApplyShim=bb);cb&&(window.ShadyCSS.CustomStyleInterface=cb);(function(){var a=window.customElements,
b=window.HTMLImports;if(a&&a.polyfillWrapFlushCallback){var c,d=function(){if(c){var a=c;c=null;a();return!0}},e=b.whenReady;a.polyfillWrapFlushCallback(function(a){c=a;e(d)});b.whenReady=function(a){e(function(){d()?b.whenReady(a):a()})}}b.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent("WebComponentsReady"))})})})();(function(){var a=document.createElement("style");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";
var b=document.querySelector("head");b.insertBefore(a,b.firstChild)})()})();
}).call(self)
//# sourceMappingURL=webcomponents-hi-sd-ce.js.map