(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var k;function aa(a){var b=0;return function(){return b-1?ha:void 0;w.querySelectorImplementation=fa;var ja=navigator.userAgent.match("Trident");w.Pa=ja; function ka(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function x(a){return(a=v(a))&&a.firstChild!==void 0}function y(a){return a instanceof ShadowRoot}function la(a){return(a=(a=v(a))&&a.root)&&a.wa()}var z=Element.prototype,ma=z.matches||z.matchesSelector||z.mozMatchesSelector||z.msMatchesSelector||z.oMatchesSelector||z.webkitMatchesSelector,na=document.createTextNode(""),oa=0,pa=[]; (new MutationObserver(function(){for(;pa.length;)try{pa.shift()()}catch(a){throw na.textContent=oa++,a;}})).observe(na,{characterData:!0});function qa(a){pa.push(a);na.textContent=oa++}var ra=document.contains?function(a,b){return a.__shady_native_contains(b)}:function(a,b){return a===b||a.documentElement&&a.documentElement.__shady_native_contains(b)};function sa(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1} function ta(a){for(var b=a.length-1;b>=0;b--){var c=a[b],d=c.getAttribute("id")||c.getAttribute("name");d&&d!=="length"&&isNaN(d)&&(a[d]=c)}a.item=function(e){return a[e]};a.namedItem=function(e){if(e!=="length"&&isNaN(e)&&a[e])return a[e];for(var f=p(a),g=f.next();!g.done;g=f.next())if(g=g.value,(g.getAttribute("id")||g.getAttribute("name"))==e)return g;return null};return a}function ua(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b} function va(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function wa(a,b,c){c.configurable=!0;if(c.value)a[b]=c.value;else try{Object.defineProperty(a,b,c)}catch(d){}}function B(a,b,c,d){c=c===void 0?"":c;for(var e in b)d&&d.indexOf(e)>=0||wa(a,c+e,b[e])}function xa(a,b){for(var c in b)c in a&&wa(a,c,b[c])}function C(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b} function ya(a,b){for(var c=Object.getOwnPropertyNames(b),d=0,e;d0;b--)a=a.reduce(function(c,d){Array.isArray(d)?c.push.apply(c,q(d)):c.push(d);return c},[]);return a}function Ba(a){var b=[],c=new Set;a=p(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c.has(d)||(b.push(d),c.add(d));return b};var Ca=[],Da;function Ea(a){Da||(Da=!0,qa(Fa));Ca.push(a)}function Fa(){Da=!1;for(var a=!!Ca.length;Ca.length;)Ca.shift()();return a}Fa.list=Ca;function Ga(){this.X=!1;this.addedNodes=[];this.removedNodes=[];this.ba=new Set}function Ha(a){a.X||(a.X=!0,qa(function(){a.flush()}))}Ga.prototype.flush=function(){if(this.X){this.X=!1;var a=this.takeRecords();a.length&&this.ba.forEach(function(b){b(a)})}};Ga.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[]}; function Ia(a,b){var c=u(a);c.P||(c.P=new Ga);c.P.ba.add(b);var d=c.P;return{Wa:b,tb:d,sb:a,takeRecords:function(){return d.takeRecords()}}}function Ja(a){var b=a&&a.tb;b&&(b.ba.delete(a.Wa),b.ba.size||(u(a.sb).P=null))} function Ka(a,b){var c=b.getRootNode();return a.map(function(d){var e=c===d.target.getRootNode();if(e&&d.addedNodes){if(e=[].slice.call(d.addedNodes).filter(function(f){return c===f.getRootNode()}),e.length)return d=Object.create(d),Object.defineProperty(d,"addedNodes",{value:e,configurable:!0}),d}else if(e)return d}).filter(function(d){return d})};var La=/[&\u00A0"]/g,Ma=/[&\u00A0<>]/g;function Na(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function Oa(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=l&&Qa[l.localName]?h:h.replace(Ma,Na);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h), Error("not implemented");}h=void 0}c+=h}return c};var Sa=w.j,Ta={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Ua={};function Va(a){Ua[a]=function(b){return b["__shady_native_"+a]}}function Wa(a,b){B(a,b,"__shady_native_");for(var c in b)Va(c)}function E(a,b){b=b===void 0?[]:b;for(var c=0;c0||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(b),void 0);break;default:this.nodeValue=b}}}});E(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" ")); E(HTMLElement.prototype,["parentElement","contains"]);a={firstElementChild:{get:function(){G.currentNode=this;return G.firstChild()}},lastElementChild:{get:function(){G.currentNode=this;return G.lastChild()}},children:{get:function(){var b=[];G.currentNode=this;for(var c=G.firstChild();c;)b.push(c),c=G.nextSibling();return ta(b)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};Sa?(E(Element.prototype,Za),E(Element.prototype,["previousElementSibling","nextElementSibling", "innerHTML","className"]),E(HTMLElement.prototype,["children","innerHTML","className"])):(Wa(Element.prototype,a),Wa(Element.prototype,{previousElementSibling:{get:function(){G.currentNode=this;return G.previousSibling()}},nextElementSibling:{get:function(){G.currentNode=this;return G.nextSibling()}},innerHTML:{get:function(){return Ra(this,ua)},set:function(b){var c=this.localName==="template"?this.content:this;Ya(c);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==Xa.namespaceURI? Xa.createElementNS(this.namespaceURI,d):Xa.createElement(d);d.innerHTML=b;for(b=this.localName==="template"?d.content:d;d=b.__shady_native_firstChild;)c.__shady_native_insertBefore(d,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(b){this.setAttribute("class",b)}}}));E(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute toggleAttribute focus blur".split(" "));E(Element.prototype,$a);E(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&& E(window.HTMLTemplateElement.prototype,["innerHTML"]);Sa?E(DocumentFragment.prototype,Za):Wa(DocumentFragment.prototype,a);E(DocumentFragment.prototype,$a);Sa?(E(Document.prototype,Za),E(Document.prototype,["activeElement"])):Wa(Document.prototype,a);E(Document.prototype,["importNode","getElementById","elementFromPoint",ka()]);E(Document.prototype,$a)};var bb=C({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),cb=C({get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent= a},get innerHTML(){return this.__shady_innerHTML},set innerHTML(a){this.__shady_innerHTML=a}}),db=C({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(a){this.__shady_className= a}});function eb(a){for(var b in a){var c=a[b];c&&(c.enumerable=!1)}}eb(bb);eb(cb);eb(db);var fb=w.j||w.noPatch===!0,gb=fb?function(){}:function(a){var b=u(a);b.Sa||(b.Sa=!0,xa(a,db))},hb=fb?function(){}:function(a){var b=u(a);b.Ra||(b.Ra=!0,xa(a,bb),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!w.noPatch||xa(a,cb))};var ib="__eventWrappers"+Date.now(),jb=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),kb=function(){function a(){}var b=!1,c={get capture(){b=!0;return!1}};window.addEventListener("test",a,c);window.removeEventListener("test",a,c);return b}();function lb(a){if(a===null||typeof a!=="object"&&typeof a!=="function"){var b=!!a;var c=!1}else{b=!!a.capture;c=!!a.once;var d=a.G}return{Ma:d,capture:b,once:c,La:kb?a:b}} var mb={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},nb={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function ob(a){return a instanceof Node?a.__shady_getRootNode():a} function pb(a,b){var c=[],d=a;for(a=ob(a);d;)c.push(d),d=d.__shady_assignedSlot?d.__shady_assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.__shady_parentNode;c[c.length-1]===document&&c.push(window);return c}function qb(a){a.__composedPath||(a.__composedPath=pb(a.target,!0));return a.__composedPath}function rb(a,b){if(!y)return a;a=pb(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c-1)return d} var sb={get composed(){this.__composed===void 0&&(jb?this.__composed=this.type==="focusin"||this.type==="focusout"||jb(this):this.isTrusted!==!1&&(this.__composed=mb[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=pb(this.__target,this.composed));return this.__composedPath},get target(){return rb(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath|| (this.__relatedTargetComposedPath=pb(this.__relatedTarget,!0));return rb(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.fa=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.fa=this.__immediatePropagationStopped=!0}},tb=w.j&&Object.getOwnPropertyDescriptor(Event.prototype,"eventPhase"); tb&&(Object.defineProperty(sb,"eventPhase",{get:function(){return this.currentTarget===this.target?Event.AT_TARGET:this.__shady_native_eventPhase},enumerable:!0,configurable:!0}),Object.defineProperty(sb,"__shady_native_eventPhase",tb));function ub(a){function b(c,d){c=new a(c,d);c.__composed=d&&!!d.composed;return c}b.__proto__=a;b.prototype=a.prototype;return b}var vb={focus:!0,blur:!0};function wb(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget} function xb(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!wb(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}var yb=(new Event("e")).hasOwnProperty("currentTarget"); function zb(a){a=yb?Object.create(a):a;var b=a.composedPath(),c=b.map(function(n){return rb(n,b)}),d=a.bubbles,e=Object.getOwnPropertyDescriptor(a,"currentTarget");Object.defineProperty(a,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return l}});var f=Event.CAPTURING_PHASE,g=Object.getOwnPropertyDescriptor(a,"eventPhase");Object.defineProperty(a,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return f}});try{for(var h=b.length-1;h>=0;h--){var l=b[h];f=l===c[h]?Event.AT_TARGET: Event.CAPTURING_PHASE;xb(a,l,"capture");if(a.fa)return}for(h=0;h-1)return}else b[ib]=[];h=function(n){g&&d.__shady_removeEventListener(a,b,c);n.__target||Cb(n);if(m!==d){var t=Object.getOwnPropertyDescriptor(n,"currentTarget");Object.defineProperty(n,"currentTarget",{get:function(){return m}, configurable:!0});var A=Object.getOwnPropertyDescriptor(n,"eventPhase");Object.defineProperty(n,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return f?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}n.__previousCurrentTarget=n.currentTarget;if(!y(m)&&m.localName!=="slot"||n.composedPath().indexOf(m)!=-1)if(n.composed||n.composedPath().indexOf(m)>-1)if(wb(n)&&n.target===n.relatedTarget)n.eventPhase===Event.BUBBLING_PHASE&&n.stopImmediatePropagation();else if(n.eventPhase===Event.CAPTURING_PHASE|| n.bubbles||n.target===m||m instanceof Window){var ia=l==="function"?b.call(m,n):b.handleEvent&&b.handleEvent(n);m!==d&&(t?(Object.defineProperty(n,"currentTarget",t),t=null):delete n.currentTarget,A?(Object.defineProperty(n,"eventPhase",A),A=null):delete n.eventPhase);return ia}};b[ib].push({node:m,type:a,capture:f,cc:h});this.__handlers=this.__handlers||{};this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]};this.__handlers[a][f?"capture":"bubble"].push(h);vb[a]||this.__shady_native_addEventListener(a, h,e)}}}function Eb(a,b,c){if(b){var d=lb(c);c=d.capture;var e=d.Ma;d=d.La;if(nb[a])return this.__shady_native_removeEventListener(a,b,d);var f=e||this;e=void 0;var g=null;try{g=b[ib]}catch(h){}g&&(f=Ab(g,f,a,c),f>-1&&(e=g.splice(f,1)[0].cc,g.length||(b[ib]=void 0)));this.__shady_native_removeEventListener(a,e||b,d);e&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][c?"capture":"bubble"],b=a.indexOf(e),b>-1&&a.splice(b,1))}} function Fb(){for(var a in vb)window.__shady_native_addEventListener(a,function(b){b.__target||(Cb(b),zb(b))},!0)}var Gb=C(sb);function Cb(a,b){b=b===void 0?a.target:b;a.__target=b;a.__relatedTarget=a.relatedTarget;if(w.j){b=Object.getPrototypeOf(a);if(!b.hasOwnProperty("__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;B(c,Gb);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else B(a,Gb)}var Hb=ub(Event),Ib=ub(CustomEvent),Jb=ub(MouseEvent); function Kb(){if(!jb&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var a=function(){var b=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(b)};Element.prototype.click?Element.prototype.click=a:HTMLElement.prototype.click&&(HTMLElement.prototype.click=a)}} var Lb=Object.getOwnPropertyNames(Element.prototype).filter(function(a){return a.substring(0,2)==="on"}),Mb=Object.getOwnPropertyNames(HTMLElement.prototype).filter(function(a){return a.substring(0,2)==="on"});function Nb(a){return{set:function(b){var c=u(this),d=a.substring(2);c.F||(c.F={});c.F[a]&&this.removeEventListener(d,c.F[a]);this.__shady_addEventListener(d,b);c.F[a]=b},get:function(){var b=v(this);return b&&b.F&&b.F[a]},configurable:!0}};function Ob(a,b){return{index:a,S:[],aa:b}} function Pb(a,b,c,d){var e=0,f=0,g=0,h=0,l=Math.min(b-e,d-f);if(e==0&&f==0)a:{for(g=0;g0||g>0;)l==0?(a.push(2),g--):g==0?(a.push(3),l--):(h=b[l-1][g-1],m=b[l-1][g],n=b[l][g-1],t=m0||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(a));break;default:this.nodeValue=a}},insertBefore:function(a,b){if(this.ownerDocument!==Yb&&a.ownerDocument!==Yb)return this.__shady_native_insertBefore(a,b),a;if(a===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent."); if(b){var c=v(b);c=c&&c.parentNode;if(c!==void 0&&c!==this||c===void 0&&b.__shady_native_parentNode!==this)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(b===a)return a;ec(this,a);var d=[],e=(c=I(this))?c.host.localName:Wb(this),f=a.__shady_parentNode;if(f){var g=Wb(a);var h=!!c||!I(a)||Zb&&this.__noInsertionPoint!==void 0;f.__shady_removeChild(a,h)}f=!0;var l=(!Zb||a.__noInsertionPoint===void 0&&this.__noInsertionPoint=== void 0)&&!Vb(a,e),m=c&&!a.__noInsertionPoint&&(!Zb||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if(m||l)l&&(g=g||Wb(a)),Xb(a,function(n){m&&n.localName==="slot"&&d.push(n);if(l){var t=g;H()&&(t&&Ub(n,t),(t=H())&&t.scopeNode(n,e))}});d.length&&(c.sa(d),c.s());x(this)&&(fc(a,this,b),h=v(this),h.root?(f=!1,la(this)&&h.root.s()):c&&this.localName==="slot"&&(f=!1,c.s()));f?(c=y(this)?this.host:this,b?(b=dc(b),c.__shady_native_insertBefore(a,b)):c.__shady_native_appendChild(a)):a.ownerDocument!==this.ownerDocument&& this.ownerDocument.adoptNode(a);return a},appendChild:function(a){if(this!=a||!y(a))return this.__shady_insertBefore(a)},removeChild:function(a,b){b=b===void 0?!1:b;if(this.ownerDocument!==Yb)return this.__shady_native_removeChild(a);if(a.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+a);ec(this,null,a);var c=I(a),d=c&&c.wb(a),e=v(this);if(x(this)&&(gc(a,this),la(this))){e.root.s();var f=!0}if(H()&&!b&&c&&a.nodeType!==Node.TEXT_NODE){var g=Wb(a);Xb(a, function(h){Ub(h,g)})}cc(a);c&&((b=this.localName==="slot")&&(f=!0),(d||b)&&c.s());f||(f=y(this)?this.host:this,(!e.root&&a.localName!=="slot"||f===a.__shady_native_parentNode)&&f.__shady_native_removeChild(a));return a},replaceChild:function(a,b){this.__shady_insertBefore(a,b);this.__shady_removeChild(b);return a},cloneNode:function(a){if(this.localName=="template")return this.__shady_native_cloneNode(a);var b=this.__shady_native_cloneNode(!1);if(a&&b.nodeType!==Node.ATTRIBUTE_NODE){a=this.__shady_firstChild; for(var c;a;a=a.__shady_nextSibling)c=a.__shady_cloneNode(!0),b.__shady_appendChild(c)}return b},getRootNode:function(a){if(this&&this.nodeType){var b=u(this),c=b.ea;c===void 0&&(y(this)?(c=this,b.ea=c):(c=(c=this.__shady_parentNode)?c.__shady_getRootNode(a):this,document.documentElement.__shady_native_contains(this)&&(b.ea=c)));return c}},contains:function(a){return sa(this,a)}});var ic=C({get assignedSlot(){var a=this.__shady_parentNode;(a=a&&a.__shady_shadowRoot)&&a.W();return(a=v(this))&&a.assignedSlot||null}});/* Copyright (c) 2022 The Polymer Project Authors SPDX-License-Identifier: BSD-3-Clause */ var jc=new Map;[["(",{end:")",da:!0}],["[",{end:"]",da:!0}],['"',{end:'"',da:!1}],["'",{end:"'",da:!1}]].forEach(function(a){var b=p(a);a=b.next().value;b=b.next().value;jc.set(a,b)});function kc(a,b,c,d){for(d=d===void 0?!0:d;b0){for(;d[d.length-1]===" ";)d.pop();c.push({Ja:d.filter(function(l,m){return m%2===0}),Mb:d.filter(function(l,m){return m%2===1})});d.length=0}}for(var c=[],d=[],e=0;e","+","~"]),h=g===e?a[e]:a.substring(e,g);if(h===",")b();else if([void 0," ",">","+","~"].indexOf(f)===-1||h!==" ")f===" "&&[">","+","~"].indexOf(h)!==-1?d[d.length-1]=h:d.push(h);e=g+(g===e?1:0)}b();return c};function mc(a,b,c){var d=[];nc(a,b,c,d);return d}function nc(a,b,c,d){for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling){var e;if(e=a.nodeType===Node.ELEMENT_NODE){e=a;var f=b,g=c,h=d,l=f(e);l&&h.push(e);g&&g(l)?e=l:(nc(e,f,g,h),e=void 0)}if(e)break}} var oc={get firstElementChild(){var a=v(this);if(a&&a.firstChild!==void 0){for(a=this.__shady_firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_firstElementChild},get lastElementChild(){var a=v(this);if(a&&a.lastChild!==void 0){for(a=this.__shady_lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_lastElementChild},get children(){return x(this)?ta(Array.prototype.filter.call(va(this),function(a){return a.nodeType=== Node.ELEMENT_NODE})):this.__shady_native_children},get childElementCount(){var a=this.__shady_children;return a?a.length:0}},J=C((oc.append=function(){this.__shady_insertBefore(D.apply(null,q(r.apply(0,arguments))),null)},oc.prepend=function(){this.__shady_insertBefore(D.apply(null,q(r.apply(0,arguments))),this.__shady_firstChild)},oc.replaceChildren=function(){for(var a=r.apply(0,arguments),b;(b=this.__shady_firstChild)!==null;)this.__shady_removeChild(b);this.__shady_insertBefore(D.apply(null,q(a)), null)},oc)); function pc(a,b){function c(e,f){return(e===a||f.indexOf(":scope")===-1)&&ma.call(e,f)}var d=lc(b);if(d.length<1)return[];for(b=Aa(mc(a,function(){return!0}).map(function(e){return Aa(d.map(function(f){var g=f.Ja,h=g.length-1;return c(e,g[h])?{target:e,N:f,O:e,index:h}:[]}))}));b.some(function(e){return e.index>0});)b=Aa(b.map(function(e){if(e.index<=0)return e;var f=e.target,g=e.O,h=e.N;e=e.index-1;var l=h.Mb[e],m=h.Ja[e];if(l===" "){l=[];for(g=g.__shady_parentElement;g;g=g.__shady_parentElement)c(g,m)&& l.push({target:f,N:h,O:g,index:e});return l}if(l===">")return g=g.__shady_parentElement,c(g,m)?{target:f,N:h,O:g,index:e}:[];if(l==="+")return(g=g.__shady_previousElementSibling)&&c(g,m)?{target:f,N:h,O:g,index:e}:[];if(l==="~"){l=[];for(g=g.__shady_previousElementSibling;g;g=g.__shady_previousElementSibling)c(g,m)&&l.push({target:f,N:h,O:g,index:e});return l}throw Error("Unrecognized combinator: '"+l+"'.");}));return Ba(b.map(function(e){return e.target}))} var K=w.querySelectorImplementation,qc=C({querySelector:function(a){if(K==="native"){var b=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(a)),c=this.__shady_getRootNode();b=p(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.__shady_getRootNode()==c)return d;return null}if(K==="selectorEngine")return pc(this,a)[0]||null;if(K===void 0)return mc(this,function(e){return ma.call(e,a)},function(e){return!!e})[0]||null;throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+ (K+"'"));},querySelectorAll:function(a,b){if(b||K==="native"){b=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(a));var c=this.__shady_getRootNode();return ta(b.filter(function(d){return d.__shady_getRootNode()==c}))}if(K==="selectorEngine")return ta(pc(this,a));if(K===void 0)return ta(mc(this,function(d){return ma.call(d,a)}));throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+(K+"'"));}}),rc=w.R&&!w.noPatch?ya({},J): J;ya(J,qc);/* Copyright (c) 2020 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 */ var sc=C({after:function(){var a=this.__shady_parentNode;if(a!==null){var b=this.__shady_nextSibling;a.__shady_insertBefore(D.apply(null,q(r.apply(0,arguments))),b)}},before:function(){var a=this.__shady_parentNode;a!==null&&a.__shady_insertBefore(D.apply(null,q(r.apply(0,arguments))),this)},remove:function(){var a=this.__shady_parentNode;a!==null&&a.__shady_removeChild(this)},replaceWith:function(){var a=r.apply(0,arguments),b=this.__shady_parentNode;if(b!==null){var c=this.__shady_nextSibling;b.__shady_removeChild(this); b.__shady_insertBefore(D.apply(null,q(a)),c)}}});var tc=window.document;function uc(a,b){b==="slot"?(a=a.__shady_parentNode,la(a)&&v(a).root.s()):a.localName==="slot"&&b==="name"&&(b=I(a))&&(b.Jb(a),b.s())} var vc=C({get previousElementSibling(){var a=v(this);if(a&&a.previousSibling!==void 0){for(a=this.__shady_previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_previousElementSibling},get nextElementSibling(){var a=v(this);if(a&&a.nextSibling!==void 0){for(a=this.__shady_nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")}, set slot(a){this.__shady_setAttribute("slot",a)},get className(){return this.getAttribute("class")||""},set className(a){this.__shady_setAttribute("class",a)},setAttribute:function(a,b){this.ownerDocument!==tc?this.__shady_native_setAttribute(a,b):Tb(this,a,b)||(this.__shady_native_setAttribute(a,b),uc(this,a))},removeAttribute:function(a){this.ownerDocument!==tc?this.__shady_native_removeAttribute(a):Tb(this,a,"")?this.getAttribute(a)===""&&this.__shady_native_removeAttribute(a):(this.__shady_native_removeAttribute(a), uc(this,a))},toggleAttribute:function(a,b){if(this.ownerDocument!==tc)return this.__shady_native_toggleAttribute(a,b);if(!Tb(this,a,""))return b=this.__shady_native_toggleAttribute(a,b),uc(this,a),b;if(this.getAttribute(a)===""&&!b)return this.__shady_native_toggleAttribute(a,b)}});w.R||Lb.forEach(function(a){vc[a]=Nb(a)}); var zc=C({attachShadow:function(a){if(!this)throw Error("Must provide a host.");if(!a)throw Error("Not enough arguments.");if(a.shadyUpgradeFragment&&!w.Pa){var b=a.shadyUpgradeFragment;b.__proto__=ShadowRoot.prototype;b.ya(this,a);wc(b,b);a=b.__noInsertionPoint?null:b.querySelectorAll("slot");b.__noInsertionPoint=void 0;a&&a.length&&(b.sa(a),b.s());b.host.__shady_native_appendChild(b)}else b=new xc(yc,this,a);return this.__CE_shadowRoot=b},get shadowRoot(){var a=v(this);return a&&a.Ub||null}}); ya(vc,zc);var Ac=document.implementation.createHTMLDocument("inert"),Bc=C({get innerHTML(){return x(this)?Ra(this.localName==="template"?this.content:this,va):this.__shady_native_innerHTML},set innerHTML(a){if(this.localName==="template")this.__shady_native_innerHTML=a;else{bc(this);var b=this.localName||"div";b=this.namespaceURI&&this.namespaceURI!==Ac.namespaceURI?Ac.createElementNS(this.namespaceURI,b):Ac.createElement(b);for(w.j?b.__shady_native_innerHTML=a:b.innerHTML=a;a=b.__shady_firstChild;)this.__shady_insertBefore(a)}}});var Cc=C({blur:function(){var a=v(this);(a=(a=a&&a.root)&&a.activeElement)?a.__shady_blur():this.__shady_native_blur()}});w.R||Mb.forEach(function(a){Cc[a]=Nb(a)});var Dc=C({assignedNodes:function(a){if(this.localName==="slot"){var b=this.__shady_getRootNode();b&&y(b)&&b.W();return(b=v(this))?(a&&a.flatten?b.K:b.assignedNodes)||[]:[]}},addEventListener:function(a,b,c){if(this.localName!=="slot"||a==="slotchange")Db.call(this,a,b,c);else{typeof c!=="object"&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.G=this;d.__shady_addEventListener(a,b,c)}},removeEventListener:function(a, b,c){if(this.localName!=="slot"||a==="slotchange")Eb.call(this,a,b,c);else{typeof c!=="object"&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.G=this;d.__shady_removeEventListener(a,b,c)}}});var Ec=C({getElementById:function(a){return a===""?null:mc(this,function(b){return b.id==a},function(b){return!!b})[0]||null}});function Fc(a,b){for(var c;b&&!a.has(c=b.__shady_getRootNode());)b=c.host;return b}function Gc(a){var b=new Set;for(b.add(a);y(a)&&a.host;)a=a.host.__shady_getRootNode(),b.add(a);return b} var Hc="__shady_native_"+ka(),Ic=C({get activeElement(){var a=w.j?document.__shady_native_activeElement:document.activeElement;if(!a||!a.nodeType)return null;var b=!!y(this);if(!(this===document||b&&this.host!==a&&this.host.__shady_native_contains(a)))return null;for(b=I(a);b&&b!==this;)a=b.host,b=I(a);return this===document?b?null:a:b===this?a:null},elementsFromPoint:function(a,b){a=document[Hc](a,b);if(this===document&&w.useNativeDocumentEFP)return a;a=[].slice.call(a);b=Gc(this);for(var c=new Set, d=0;d0)return a}};k.W=function(){var a=this.I&&this.lb();a&&a._renderSelf()};k.gb=function(){!this.xa&&this.I&&this.W()}; k._renderSelf=function(){var a=O;O=!0;this.I=!1;this.g&&(this.ab(),this.Ya());if(!w.preferPerformance&&!this.xa)for(var b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling){var c=v(b);b.__shady_native_parentNode!==this.host||b.localName!=="slot"&&c.assignedSlot||this.host.__shady_native_removeChild(b)}this.xa=!0;O=a;Vc&&Vc()}; k.ab=function(){this.Z();for(var a=0,b;ac.assignedNodes.length&& (c.na=!0)}c.na&&(c.na=!1,this.va(b))}};k.ua=function(a,b){var c=u(a),d=c.ja;c.ja=null;b||(b=(b=this.i[a.__shady_slot||"__catchall"])&&b[0]);b?(u(b).assignedNodes.push(a),c.assignedSlot=b):c.assignedSlot=void 0;d!==c.assignedSlot&&c.assignedSlot&&(u(c.assignedSlot).na=!0)};k.Xa=function(a){var b=v(a),c=b.assignedNodes;b.assignedNodes=[];b.K=[];if(b.Ca=c)for(b=0;b=0&&(this.g.splice(g,1),(g=v(f.__shady_parentNode))&&g.V&&g.V--);e--;this.xb(f);g=!0}}return g}}; k.Jb=function(a){if(this.g){this.Z();var b=a.Ta,c=this.Aa(a);if(c!==b){b=this.i[b];var d=b.indexOf(a);d>=0&&b.splice(d,1);b=this.i[c]||(this.i[c]=[]);b.push(a);b.length>1&&(this.i[c]=this.Ea(b))}}};k.xb=function(a){a=v(a);var b=a.K;if(b)for(var c=0;c-1||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,T:c}}function Kd(a){for(var b=[],c="",d=0;d>=0&&d-1?d=d.replace(/\+/g,"___"):d.indexOf("___")>-1&&(d=d.replace(/___/g,"+"));return":"+c+"("+d+")"})}; k.vb=function(a){for(var b=[],c;c=a.match(Vd);){var d=c.index,e=Gd(a,d);if(e===-1)throw Error(c.input+" selector missing ')'");c=a.slice(d,e+1);a=a.replace(c,"\ue000");b.push(c)}return{qa:a,matches:b}};k.zb=function(a,b){var c=a.split("\ue000");return b.reduce(function(d,e,f){return d+e+c[f+1]},c[0])}; k.la=function(a,b,c){var d=this,e=!1;a=a.trim();var f=Ud.test(a);f&&(a=a.replace(Ud,function(l,m,n){return":"+m+"("+n.replace(/\s/g,"")+")"}),a=this.Ia(a));var g=Vd.test(a);if(g){var h=this.vb(a);a=h.qa;h=h.matches}a=a.replace(Wd,":host $1");a=a.replace(Xd,function(l,m,n){e||(l=d.Fb(n,m,b,c),e=e||l.stop,m=l.Lb,n=l.value);return m+n});g&&(a=this.zb(a,h));f&&(a=this.Ia(a));a=a.replace(Yd,function(l,m,n,t){return'[dir="'+n+'"] '+m+t+", "+m+'[dir="'+n+'"]'+t});return Nd(a,b)}; k.Fb=function(a,b,c,d){var e=a.indexOf("::slotted");a.indexOf(":host")>=0?a=this.Hb(a,d):e!==0&&(a=c?this.Ha(a,c):a);c=!1;e>=0&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(Zd,function(g,h){return" > "+h}))}return{value:a,Lb:b,stop:f}};k.Ha=function(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,ae=/[[.:#*]/,Wd=RegExp("^(::slotted)"),$d=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Zd=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Yd=/(.*):dir\((?:(ltr|rtl))\)(.*)/,Vd=/:(?:matches|any|-(?:webkit|moz)-any)/,W=new Od;function ce(a,b,c,d,e){this.v=a||null;this.placeholder=b||null;this.oa=c||[];this.L=null;this.cssBuild=e||"";this.T=d||"";this.J=this.u=this.C=null}function X(a){return a?a.__styleInfo:null}function de(a,b){return a.__styleInfo=b}ce.prototype.mb=function(){return this.v};ce.prototype._getStyleRules=ce.prototype.mb;function ee(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var fe=/:host\s*>\s*/,ge=navigator.userAgent.match("Trident");function he(){}function ie(a){var b={},c=[],d=0;Ad(a,function(f){je(f);f.index=d++;f=f.l.cssText;for(var g;g=vd.exec(f);){var h=g[1];g[2]!==":"&&(b[h]=!0)}},function(f){c.push(f)});a.ob=c;a=[];for(var e in b)a.push(e);return a} function je(a){if(!a.l){var b={},c={};ke(a,c)&&(b.B=c,a.rules=null);b.cssText=a.parsedCssText.replace(yd,"").replace(td,"");a.l=b}}function ke(a,b){var c=a.l;if(c){if(c.B)return Object.assign(b,c.B),!0}else{c=a.parsedCssText;for(var d;a=td.exec(c);){d=(a[2]||a[3]).trim();if(d!=="inherit"||d!=="unset")b[a[1].trim()]=d;d=!0}return d}} function le(a,b,c){b&&(b=b.indexOf(";")>=0?me(a,b,c):Hd(b,function(d,e,f,g){if(!e)return d+g;(e=le(a,c[e],c))&&e!=="initial"?e==="apply-shim-inherit"&&(e="inherit"):e=le(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""} function me(a,b,c){b=b.split(";");for(var d=0,e,f;d-1;var h=f.indexOf(":host")===0&&!g;c==="shady"&&(g=f===e+" > *."+e||f.indexOf("html")!==-1,h=!g&&f.indexOf(e)===0);if(g||h)c=e,h&&(b.o||(b.o=W.Ga(b,W.la,W.ta(a),e)),c=b.o||e),g&&e==="html"&&(c=b.o||b.ec),d({qa:c,Rb:h,dc:g})}} function pe(a,b,c){var d={},e={};Ad(b,function(f){oe(a,f,c,function(g){ee.call(a._element||a,g.qa)&&(g.Rb?ke(f,d):ke(f,e))})},null,!0);return{Vb:e,Qb:d}} function qe(a,b,c,d){var e=V(b),f=W.ga(e.is,e.T),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=X(b);e=h.v;h=h.cssBuild;var l=a.bb(b,e,d);return Sd(b,e,function(m){var n="";m.l||je(m);m.l.cssText&&(n=me(a,m.l.cssText,c));m.cssText=n;if(!Q&&!Cd(m)&&m.cssText){var t=n=m.cssText;m.Ka==null&&(m.Ka=wd.test(n));if(m.Ka)if(m.ca==null){m.ca=[];for(var A in l)t=l[A],t=t(n),n!==t&&(n=t,m.ca.push(A))}else{for(A=0;Athis.ac&&e.shift();this.cache[a]=e};we.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;d>=0;d--){var e=a[d];if(this.Kb(e,b,c))return e}};function xe(){}var ye=new RegExp(W.U+"\\s*([^\\s]*)");function ze(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(ye))?a[1]:""}function Ae(a){var b=Jd(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?V(a).is:""} function Be(a){for(var b=0;b-1&&(e.textContent=g),Ed(e,null,l.placeholder)):g&&(e=Dd(g,h,null,l.placeholder));e&&(e._useCount=e._useCount|| 0,l.J!=e&&e._useCount++,l.J=e);h=e;Q||(e=b.u,l=g=a.getAttribute("class")||"",f&&(l=g.replace(new RegExp("\\s*x-scope\\s*"+f+"\\s*","g")," ")),l+=(l?" ":"")+"x-scope "+e,g!==l&&Id(a,l));d||Le.store(c,b.C,h,b.u);return h}; k.ma=function(a,b){var c=this.ka(a),d=X(c),e=d.C;c===this.H||e||(this.ma(c,d),e=d.C);c=Object.create(e||null);e=pe(a,b.v,b.cssBuild);a=ne(d.v,a).B;Object.assign(c,e.Qb,a,e.Vb);this.rb(c,b.L);a=se;d=Object.getOwnPropertyNames(c);e=0;for(var f;e