UNPKG

lwc

Version:

Lightning Web Components (LWC)

11 lines (10 loc) 45.8 kB
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t,n=Object.assign,r=Object.create,l=Object.defineProperties,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.hasOwnProperty,u=Object.setPrototypeOf,c=Array.prototype,s=c.filter,f=c.find,h=c.indexOf,p=c.map,d=c.push,g=c.reduce,m=c.reverse,v=c.slice,b=c.splice,E=c.forEach,y=String.prototype.charCodeAt;function N(e){return void 0===e}function T(e){return null===e}function w(e){return!0===e}function L(e){return!1===e}function S(e){return"function"==typeof e}var M=function(){return"Symbol(x)"===Symbol("x").toString()}();function O(e,t){return M?Symbol(e):"$$lwc-"+t+"-"+e+"$$"}var C=new WeakMap;function _(e,t,n){var l=C.get(e);N(l)&&(l=r(null),C.set(e,l)),l[t]=n}function A(e,t){var n=C.get(e);if(!N(n))return n[t]}var H,R,D=Node.DOCUMENT_POSITION_CONTAINED_BY,I=Node.DOCUMENT_POSITION_PRECEDING,$=Node.DOCUMENT_POSITION_FOLLOWING,P=Node.ELEMENT_NODE,B=Node.TEXT_NODE,x=Node.CDATA_SECTION_NODE,k=Node.PROCESSING_INSTRUCTION_NODE,W=Node.COMMENT_NODE,F=Node.prototype,U=F.appendChild,j=F.cloneNode,K=F.compareDocumentPosition,G=F.insertBefore,q=F.removeChild,X=F.replaceChild,V=F.hasChildNodes,Y=HTMLElement.prototype.contains,z=a(Node.prototype,"firstChild").get,J=a(Node.prototype,"lastChild").get,Q=a(Node.prototype,"textContent").get,Z=a(Node.prototype,"parentNode").get,ee=a(Node.prototype,"ownerDocument").get,te=i.call(Node.prototype,"parentElement")?a(Node.prototype,"parentElement").get:a(HTMLElement.prototype,"parentElement").get,ne=a(Node.prototype,"textContent").set,re=i.call(Node.prototype,"childNodes")?a(Node.prototype,"childNodes").get:a(HTMLElement.prototype,"childNodes").get,le=i.call(Node.prototype,"isConnected")?a(Node.prototype,"isConnected").get:function(){var e=ee.call(this);return null===e||0!=(K.call(e,this)&D)},oe=Element.prototype,ae=oe.getAttribute,ie=oe.getBoundingClientRect,ue=oe.getElementsByTagName,ce=oe.getElementsByTagNameNS,se=oe.hasAttribute,fe=oe.querySelector,he=oe.querySelectorAll,pe=oe.removeAttribute,de=oe.setAttribute,ge=i.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:function(){throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},me=a(Element.prototype,"childElementCount").get,ve=a(Element.prototype,"firstElementChild").get,be=a(Element.prototype,"lastElementChild").get,Ee=a(HTMLElement.prototype,"innerText"),ye=Ee?Ee.get:null,Ne=Ee?Ee.set:null,Te=a(HTMLElement.prototype,"outerText"),we=Te?Te.get:null,Le=Te?Te.set:null,Se=i.call(Element.prototype,"innerHTML")?a(Element.prototype,"innerHTML"):a(HTMLElement.prototype,"innerHTML"),Me=Se.get,Oe=Se.set,Ce=i.call(Element.prototype,"outerHTML")?a(Element.prototype,"outerHTML"):a(HTMLElement.prototype,"outerHTML"),_e=Ce.get,Ae=Ce.set,He=a(Element.prototype,"tagName").get,Re=a(HTMLElement.prototype,"tabIndex"),De=Re.get,Ie=Re.set,$e=i.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,Pe=i.call(Element.prototype,"children")?a(Element.prototype,"children").get:a(HTMLElement.prototype,"children").get,Be=HTMLElement.prototype.getElementsByClassName,xe=i.call(Element.prototype,"shadowRoot")?a(Element.prototype,"shadowRoot").get:function(){return null};"undefined"!=typeof HTMLSlotElement?(H=HTMLSlotElement.prototype.assignedNodes,R=HTMLSlotElement.prototype.assignedElements):(H=function(){throw new TypeError("assignedNodes() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")},R=function(){throw new TypeError("assignedElements() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")});var ke=a(Event.prototype,"target").get,We=a(Event.prototype,"currentTarget").get,Fe=a(FocusEvent.prototype,"relatedTarget").get,Ue=a(Document.prototype,"activeElement").get,je=i.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,Ke=a(Document.prototype,"defaultView").get,Ge=Document.prototype,qe=Ge.querySelectorAll,Xe=Ge.getElementById,Ve=Ge.getElementsByClassName,Ye=Ge.getElementsByTagName,ze=Ge.getElementsByTagNameNS,Je=HTMLDocument.prototype.getElementsByName,Qe=window.addEventListener,Ze=window.removeEventListener,et=window.getComputedStyle,tt=window.getSelection,nt=MutationObserver,rt=nt.prototype.observe,lt=null;"undefined"!=typeof ShadowRoot&&(lt=ShadowRoot);var ot=T(lt)?function(){return!1}:function(e){return e instanceof lt};var at,it=Document.prototype.createElement;function ut(e){var t=ee.call(e);return null===t?e:t}function ct(e){var t=ut(e),n=Ke.call(t);if(null===n)throw new TypeError;return n}function st(e){if(N(at)){var t=ut(e);at=t.body&&"temporary-bypass"===ae.call(t.body,"data-global-patching-bypass")}return w(at)}function ft(e){var t=e.length,n=[];if(t>0)for(var r=0;r<t;r++)n[r]=e[r];return n}"undefined"==typeof HTMLSlotElement&&function(){var e=function(){};u(e,HTMLElement.constructor),u(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,o(Document.prototype,"createElement",{value:function(t,n){var r=it.apply(this,v.call(arguments));return 4===t.length&&115===y.call(t,0)&&108===y.call(t,1)&&111===y.call(t,2)&&116===y.call(t,3)&&u(r,e.prototype),r}})}();var ht=Object.create,pt=function(){if("object"==typeof globalThis)return globalThis;var e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}();pt.lwcRuntimeFlags||Object.defineProperty(pt,"lwcRuntimeFlags",{value:ht(null)});var dt,gt=pt.lwcRuntimeFlags,mt="undefined"!=typeof EventTarget?EventTarget.prototype:Node.prototype,vt=mt.addEventListener,bt=mt.dispatchEvent,Et=mt.removeEventListener,yt=new WeakMap,Nt=new WeakMap;function Tt(e,t,n){if(t===n)return!0;var r=Nt.get(e);return N(r)&&(r=e.composedPath(),Nt.set(e,r)),r.includes(n)}function wt(e){if(!function(e){return S(e)||"object"==typeof e&&!T(e)&&S(e.handleEvent)}(e))return e;var t=yt.get(e);return N(t)&&(t=function(t){var n,r=We.call(t),l=t.composed;gt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE?n=!(Qn.has(t)&&L(l)):n=Tt(t,At(t),r);if(n)return S(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},yt.set(e,t)),t}!function(e){e[e.CUSTOM_ELEMENT_LISTENER=0]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=1]="SHADOW_ROOT_LISTENER",e[e.UNKNOWN_LISTENER=2]="UNKNOWN_LISTENER"}(dt||(dt={}));var Lt=new WeakMap;function St(e,t){return!!(K.call(e,t)&D)}var Mt={composed:!1};function Ot(e,t){var n=e.getRootNode(t);return"mode"in n&&"delegatesFocus"in n&&(n=Gn(n)),n}var Ct=new WeakMap;function _t(e){var t=Ct.get(e);return N(t)&&(t=r(null),Ct.set(e,t)),t}function At(e){var t;return null!==(t=Qn.get(e))&&void 0!==t?t:ke.call(e)}var Ht=new WeakMap;function Rt(e){if(!S(e))throw new TypeError;var t=Ht.get(e);return N(t)&&((t=function(t){var n,r=We.call(t);(ot(r)||(r=qn(r)),gt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)?n=function(e){var t=e.composed,n=ke.call(e),r=We.call(e);if(n===r)return Qn.get(e)===qn(n);if(w(t))return!0;if(w(Qn.has(e)))return!1;var l=Ot(n,Mt),o=r;return St(l,o)||l===o}(t):n=Tt(t,At(t),r);n&&e.call(r,t)}).placement=dt.SHADOW_ROOT_LISTENER,Ht.set(e,t)),t}var Dt=new WeakMap;function It(e){if(!S(e))throw new TypeError;var t=Dt.get(e);return N(t)&&((t=function(t){var n,r=We.call(t);gt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE?n=function(e){if(w(e.composed))return!0;if(Qn.has(e))return!1;var t=ke.call(e),n=We.call(e);if(t===n)return!0;return St(Ot(t,Mt),n)}(t):n=Tt(t,At(t),r);n&&e.call(r,t)}).placement=dt.CUSTOM_ELEMENT_LISTENER,Dt.set(e,t)),t}function $t(e){var t=!1,n=!1,r=e.type,l=e.stopImmediatePropagation,a=e.stopPropagation,i=_t(We.call(e))[r];o(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),o(e,"stopPropagation",{value:function(){n=!0,a.call(e)},writable:!0,enumerable:!0,configurable:!0});var u=v.call(i);function c(n){E.call(u,(function(r){L(t)&&r.placement===n&&-1!==h.call(i,r)&&r.call(void 0,e)}))}Lt.set(e,dt.SHADOW_ROOT_LISTENER),c(dt.SHADOW_ROOT_LISTENER),L(t)&&L(n)&&(Lt.set(e,dt.CUSTOM_ELEMENT_LISTENER),c(dt.CUSTOM_ELEMENT_LISTENER)),Lt.set(e,dt.UNKNOWN_LISTENER)}function Pt(e,t,n){var r=_t(e),l=r[t];N(l)&&(l=r[t]=[]),-1===h.call(l,n)&&(0===l.length&&vt.call(e,t,$t),d.call(l,n))}function Bt(e,t,n){var r,l;N(l=_t(e)[t])||-1===(r=h.call(l,n))||(b.call(l,r,1),0===l.length&&Et.call(e,t,$t))}function xt(e,t,n){S(t)&&Pt(this,e,It(t))}function kt(e,t,n){S(t)&&Bt(this,e,It(t))}var Wt="$$HostElementKey$$",Ft="$$ShadowedNodeKey$$";function Ut(e,t,n){var r=e,l=n.value;r[t]=l}function jt(e){return e[Wt]}function Kt(e){for(var t,n=e;!T(n);){if(!N(t=jt(n)))return t;n=Z.call(n)}}function Gt(e){return e[Ft]}function qt(e){return!N(jt(e))}function Xt(e){for(var t=te.call(e);!T(t)&&zt(t);)e=t,t=te.call(e);return e}function Vt(e,t){for(var n=Gt(e),r=t instanceof Element?t:te.call(t);!T(r)&&r!==e;){var l=Kt(r),o=te.call(r);if(l===n)return zt(r);if(o===e)return!1;if(T(o)||Kt(o)===l)r=o;else{if(!zt(o))return!1;if(!T(r=Yt(Xt(o)))){if(r===e)return!0;if(Kt(r)===n)return!0}}}return!1}function Yt(e){if(!(e instanceof Node))return null;var t=Kt(e);if(N(t))return null;for(var n=e;!T(n)&&Gt(n)!==t;)n=Z.call(n);return T(n)?null:n}function zt(e){return e instanceof HTMLSlotElement}function Jt(e,t){var n=Kt(t);return N(n)||Gt(e)===n}function Qt(e){var t=Gn(e);return tn(t,ft(re.call(t)))}function Zt(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];!Jt(e,o)&&Vt(e,o)&&d.call(n,o)}return n}function en(e,t){for(var n=0,r=t.length;n<r;n+=1){var l=t[n];if(!Jt(e,l)&&Vt(e,l))return l}return null}function tn(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];Jt(e,o)&&d.call(n,o)}return n}function nn(e,t){for(var n=0,r=t.length;n<r;n+=1)if(Jt(e,t[n]))return t[n];return null}function rn(e){var t;if(!Xn(e)&&!zt(e))return ft(t=re.call(e));if(Xn(e)){var n=ft(he.call(e,"slot")),r=Un(qn(e));return g.call(n,(function(e,t){return r===Un(t)&&d.apply(e,ln(t)),e}),[])}t=ft(re.call(e));var l=Un(e);return g.call(t,(function(e,t){return l===Un(t)&&d.call(e,t),e}),[])}function ln(e){var t=Yt(e);if(T(t))return[];var n=ft(re.call(e));return g.call(n,(function(e,n){return Jt(t,n)||d.call(e,n),e}),[])}function on(e){switch(e.nodeType){case P:for(var t=rn(e),n="",r=0,l=t.length;r<l;r+=1){var o=t[r];o.nodeType!==W&&(n+=on(o))}return n;default:return e.nodeValue}}var an=O("StaticNodeListItems","synthetic-shadow");function un(){throw new TypeError("Illegal constructor")}function cn(e){var t=r(un.prototype);return _(t,an,e),E.call(e,(function(e,n){o(t,n,{value:e,enumerable:!0,configurable:!0})})),t}un.prototype=r(NodeList.prototype,((e={constructor:{writable:!0,configurable:!0,value:un},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return A(this,an).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){E.call(A(this,an),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return p.call(A(this,an),(function(e,t){return[t,e]}))}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return p.call(A(this,an),(function(e,t){return t}))}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return A(this,an)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=A(e,an);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},e[Symbol.toStringTag]={configurable:!0,get:function(){return"NodeList"}},e.toString={writable:!0,configurable:!0,value:function(){return"[object NodeList]"}},e)),u(un,NodeList);var sn=O("StaticHTMLCollectionItems","synthetic-shadow");function fn(){throw new TypeError("Illegal constructor")}function hn(e){var t=r(fn.prototype);return _(t,sn,e),E.call(e,(function(e,n){o(t,n,{value:e,enumerable:!0,configurable:!0})})),t}fn.prototype=r(HTMLCollection.prototype,((t={constructor:{writable:!0,configurable:!0,value:fn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return A(this,sn).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(""===e)return null;for(var t=A(this,sn),n=0,r=t.length;n<r;n++){var l=t[r];if(e===ae.call(l,"id")||e===ae.call(l,"name"))return l}return null}}})[Symbol.toStringTag]={configurable:!0,get:function(){return"HTMLCollection"}},t.toString={writable:!0,configurable:!0,value:function(){return"[object HTMLCollection]"}},t)),u(fn,HTMLCollection);var pn=/[&\u00A0"]/g,dn=/[&\u00A0<>]/g,gn=String.prototype,mn=gn.replace,vn=gn.toLowerCase;function bn(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function En(e){return mn.call(e,pn,bn)}var yn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Nn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Tn(e){switch(e.nodeType){case P:for(var t=e.attributes,n=He.call(e),r="<"+vn.call(n),l=0,o=void 0;o=t[l];l++)r+=" "+o.name+'="'+En(o.value)+'"';return r+=">",yn.has(n)?r:r+function(e){for(var t="",n=rn(e),r=0,l=n.length;r<l;r+=1)t+=Tn(n[r]);return t}(e)+"</"+vn.call(n)+">";case B:var a=e.data,i=e.parentNode;return i instanceof Element&&Nn.has(He.call(i))?a:function(e){return mn.call(e,dn,bn)}(a);case x:return"<!CDATA[["+e.data+"]]>";case k:return"<?"+e.target+" "+e.data+"?>";case W:return"\x3c!--"+e.data+"--\x3e";default:return""}}function wn(e){return zt(e)||Xn(e)}function Ln(e,t){var n=Yt(e);if(t===n)return qn(n);if(t instanceof Element){if(Kt(e)===Kt(t))return t;if(!T(n)&&zt(t)){var r=Yt(t);if(!T(r)&&Jt(n,r))return r}}return null}function Sn(){return Bn(this).length>0}function Mn(){return Bn(this)[0]||null}function On(){var e=Bn(this);return e[e.length-1]||null}function Cn(){return on(this)}function _n(){var e=Z.call(this);return T(e)?e:Ln(this,e)}function An(){var e=Z.call(this);if(T(e))return null;var t=Ln(this,e);return t instanceof Element?t:null}function Hn(e){return this.getRootNode()===e?10:jt(this)!==jt(e)?35:K.call(this,e)}function Rn(e){return null!=e&&jt(this)===jt(e)&&0!=(K.call(this,e)&D)}function Dn(e){var t=j.call(this,!1);if(!e)return t;for(var n=Bn(this),r=0,l=n.length;r<l;r+=1)t.appendChild(n[r].cloneNode(!0));return t}function In(){if(Xn(this)){var e=Yt(this);return cn(T(e)?[]:tn(e,rn(this)))}return re.call(this)}var $n=Node.prototype.getRootNode,Pn=N($n)?function(){for(var e,t=this;!T(e=Z.call(t));)t=e;return t}:$n;l(Node.prototype,{firstChild:{get:function(){return wn(this)?Mn.call(this):z.call(this)},enumerable:!0,configurable:!0},lastChild:{get:function(){return wn(this)?On.call(this):J.call(this)},enumerable:!0,configurable:!0},textContent:{get:function(){return gt.ENABLE_NODE_PATCH?st(this)?Q.call(this):Cn.call(this):qt(this)||Xn(this)?Cn.call(this):Q.call(this)},set:function(e){ne.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get:function(){return qt(this)?_n.call(this):Z.call(this)},enumerable:!0,configurable:!0},parentElement:{get:function(){return qt(this)?An.call(this):te.call(this)},enumerable:!0,configurable:!0},childNodes:{get:function(){return wn(this)?In.call(this):re.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value:function(){return wn(this)?Sn.call(this):V.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value:function(e){return st(this)?K.call(this,e):Hn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value:function(e){return this===e||(gt.ENABLE_NODE_PATCH?st(this)?Y.call(this,e):Rn.call(this,e):null!=e&&(qt(this)||Xn(this)?Rn.call(this,e):Y.call(this,e)))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value:function(e){return gt.ENABLE_NODE_PATCH?w(e)?st(this)?j.call(this,e):Dn.call(this,e):j.call(this,e):qt(this)||Xn(this)?Dn.call(this,e):j.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){var t,n;return w(!N(e)&&!!e.composed)?Pn.call(this,e):T(n=Yt(t=this))?Pn.call(t):qn(n)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get:function(){return le.call(this)}}});var Bn=function(e){return e.childNodes};i.call(HTMLElement.prototype,"contains")&&o(HTMLElement.prototype,"contains",a(Node.prototype,"contains")),i.call(HTMLElement.prototype,"parentElement")&&o(HTMLElement.prototype,"parentElement",a(Node.prototype,"parentElement"));var xn=O("shadowRecord","synthetic-shadow"),kn=document.createDocumentFragment;function Wn(e){var t=A(e,xn);if(N(t))throw new TypeError;return t}var Fn="$shadowResolver$";function Un(e){return e.$shadowResolver$}function jn(e,t){e.$shadowResolver$=t}function Kn(e){return Wn(e).delegatesFocus}function Gn(e){return Wn(e).host}function qn(e){return Wn(e).shadowRoot}function Xn(e){return!N(A(e,xn))}o(Node.prototype,Fn,{set:function(e){var t,n;this.$$ShadowResolverKey$$=e,t=this,n=e.nodeKey,Ut(t,Wt,{value:n,configurable:!0})},get:function(){return this.$$ShadowResolverKey$$},configurable:!0,enumerable:!0});var Vn=0;function Yn(e,t){if(!N(A(e,xn)))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");var n=t.mode,r=t.delegatesFocus,l=ut(e),o=kn.call(l),a={mode:n,delegatesFocus:!!r,host:e,shadowRoot:o};_(o,xn,a),_(e,xn,a);var i=function(){return o},c=i.nodeKey=Vn++;return Ut(e,Ft,{value:c}),jn(o,i),u(o,Zn.prototype),o}var zn={constructor:{writable:!0,configurable:!0,value:Zn},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}}},Jn={activeElement:{enumerable:!0,configurable:!0,get:function(){var e=Gn(this),t=ut(e),n=Ue.call(t);if(T(n))return n;if(0==(K.call(e,n)&D))return null;for(var r=n;!Jt(e,r);)r=te.call(r);return zt(r)?null:r}},delegatesFocus:{configurable:!0,get:function(){return Wn(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){var n=ut(Gn(this)),r=je.call(n,e,t);return T(r)?r:tr(this,er(r,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){throw new Error('Disallowed method "elementsFromPoint" on ShadowRoot.')}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get:function(){return Gn(this)}},mode:{configurable:!0,get:function(){return Wn(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}},Qn=new WeakMap;function Zn(){throw new TypeError("Illegal constructor")}function er(e,t){var n,r=[];if(e instanceof Window)n=e;else{if(!(e instanceof Node))return r;n=e.getRootNode()}for(var l,o=e;!T(o);)if(r.push(o),o instanceof Element||o instanceof Text){var a=o.assignedSlot;o=T(a)?o.parentNode:a}else o=(o instanceof Zn||ot(o))&&(t||o!==n)?o.host:o instanceof Node?o.parentNode:null;return l=e instanceof Window?e.document:ut(e),r[r.length-1]===l&&r.push(window),r} /** @license 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 */function tr(e,t){if(T(e))return null;for(var n=er(e,!0),r=t,l=0,o=void 0,a=void 0,i=void 0,u=void 0;l<r.length;l++)if((i=(o=r[l])instanceof Window?o:o.getRootNode())!==a&&(u=n.indexOf(i),a=i),!(i instanceof Zn)||!N(u)&&u>-1)return o;return null}n(zn,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return G.call(Gn(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return q.call(Gn(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return U.call(Gn(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return X.call(Gn(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){S(n)&&Pt(Gn(e),t,Rt(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return Qn.set(e,this),bt.apply(Gn(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){S(n)&&Bt(Gn(e),t,Rt(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return Gn(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return cn(Qt(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=Gn(this);return this===e?0:this.contains(e)?20:K.call(t,e)&D?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=Gn(this);return 0!=(K.call(t,e)&D)&&Jt(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return Bn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=Bn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Bn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return le.call(Gn(this))}},nextSibling:{enumerable:!0,configurable:!0,get:function(){return null}},previousSibling:{enumerable:!0,configurable:!0,get:function(){return null}},nodeName:{enumerable:!0,configurable:!0,get:function(){return"#document-fragment"}},nodeType:{enumerable:!0,configurable:!0,get:function(){return 11}},nodeValue:{enumerable:!0,configurable:!0,get:function(){return null}},ownerDocument:{enumerable:!0,configurable:!0,get:function(){return Gn(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:function(){return null}},parentNode:{enumerable:!0,configurable:!0,get:function(){return null}},textContent:{enumerable:!0,configurable:!0,get:function(){for(var e=Bn(this),t="",n=0,r=e.length;n<r;n+=1){var l=e[n];l.nodeType!==W&&(t+=on(l))}return t},set:function(e){var t=Gn(this);ne.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return!N(e)&&w(e.composed)?Gn(this).getRootNode(e):this}}},{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return hn(s.call(Qt(this),(function(e){return e instanceof Element})))}},firstElementChild:{enumerable:!0,configurable:!0,get:function(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get:function(){var e=this.children;return e.item(e.length-1)||null}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return t=e,nn(n=Gn(this),ft(he.call(n,t)));var t,n}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return cn((t=e,tn(n=Gn(this),ft(he.call(n,t)))));var t,n}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=Bn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Tn(e[n]);return t},set:function(e){var t=Gn(this);Oe.call(t,e)}}},Jn),Zn.prototype=r(DocumentFragment.prototype,zn),Document.prototype.elementFromPoint=function(e,t){var n=je.call(this,e,t);return T(n)?n:tr(this,er(n,!0))},o(Document.prototype,"activeElement",{get:function(){var e=Ue.call(this);if(T(e))return e;for(;!N(jt(e));)if(T(e=te.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),o(Document.prototype,"getElementById",{value:function(){var e=Xe.apply(this,v.call(arguments));return T(e)?null:N(jt(e))||st(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),o(Document.prototype,"querySelector",{value:function(){var e=ft(qe.apply(this,v.call(arguments))),t=f.call(e,(function(e){return N(jt(e))||st(e)}));return N(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),o(Document.prototype,"querySelectorAll",{value:function(){var e=ft(qe.apply(this,v.call(arguments))),t=s.call(e,(function(e){return N(jt(e))||st(e)}));return cn(t)},writable:!0,enumerable:!0,configurable:!0}),o(Document.prototype,"getElementsByClassName",{value:function(){var e=ft(Ve.apply(this,v.call(arguments))),t=s.call(e,(function(e){return N(jt(e))||st(e)}));return hn(t)},writable:!0,enumerable:!0,configurable:!0}),o(Document.prototype,"getElementsByTagName",{value:function(){var e=ft(Ye.apply(this,v.call(arguments))),t=s.call(e,(function(e){return N(jt(e))||st(e)}));return hn(t)},writable:!0,enumerable:!0,configurable:!0}),o(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=ft(ze.apply(this,v.call(arguments))),t=s.call(e,(function(e){return N(jt(e))||st(e)}));return hn(t)},writable:!0,enumerable:!0,configurable:!0}),o(a(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=ft(Je.apply(this,v.call(arguments))),t=s.call(e,(function(e){return N(jt(e))||st(e)}));return cn(t)},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:Zn,configurable:!0,writable:!0});var nr=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var rr=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function lr(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!nr)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",(function(t){return e=t})),t.click(),!nr.get.call(e)})()&&(HTMLElement.prototype.click=function(){vt.call(this,"click",lr);try{rr.value.call(this)}finally{Et.call(this,"click",lr)}}),!0!==new Event("test",{composed:!0}).composed&&function(){var e=n(r(null),{beforeinput:1,blur:1,click:1,compositionend:1,compositionstart:1,compositionupdate:1,copy:1,cut:1,dblclick:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,drag:1,dragend:1,dragenter:1,dragleave:1,dragover:1,dragstart:1,drop:1,focus:1,focusin:1,focusout:1,gotpointercapture:1,input:1,keydown:1,keypress:1,keyup:1,lostpointercapture:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,paste:1,pointercancel:1,pointerdown:1,pointerenter:1,pointerleave:1,pointermove:1,pointerout:1,pointerover:1,pointerup:1,touchcancel:1,touchend:1,touchmove:1,touchstart:1,wheel:1}),t=Event;function l(e,n){var r=new t(e,n),l=!(!n||!n.composed);return Object.defineProperties(r,{composed:{get:function(){return l},configurable:!0,enumerable:!0}}),r}l.prototype=t.prototype,l.AT_TARGET=t.AT_TARGET,l.BUBBLING_PHASE=t.BUBBLING_PHASE,l.CAPTURING_PHASE=t.CAPTURING_PHASE,l.NONE=t.NONE,window.Event=l,Object.defineProperties(Event.prototype,{composed:{get:function(){var t=this.type;return 1===e[t]},configurable:!0,enumerable:!0}})}();var or,ar,ir=CustomEvent;function ur(e,t){var n=new ir(e,t),r=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:function(){return r},configurable:!0,enumerable:!0}}),n}if(ur.prototype=ir.prototype,window.CustomEvent=ur,"undefined"!=typeof ClipboardEvent){var cr=n(r(null),{copy:1,cut:1,paste:1});l(ClipboardEvent.prototype,{composed:{get:function(){var e=this.type;return 1===cr[e]},configurable:!0,enumerable:!0}})}"undefined"!=typeof HTMLIFrameElement&&(or=a(HTMLIFrameElement.prototype,"contentWindow"),ar=or.get,or.get=function(){var e,t=ar.call(this);return T(t)||N(jt(this))?t:(e=t,{addEventListener:function(){return e.addEventListener.apply(e,arguments)},blur:function(){return e.blur.apply(e,arguments)},close:function(){return e.close.apply(e,arguments)},focus:function(){return e.focus.apply(e,arguments)},postMessage:function(){return e.postMessage.apply(e,arguments)},removeEventListener:function(){return e.removeEventListener.apply(e,arguments)},get closed(){return e.closed},get frames(){return e.frames},get length(){return e.length},get location(){return e.location},set location(t){e.location=t},get opener(){return e.opener},get parent(){return e.parent},get self(){return e.self},get top(){return e.top},get window(){return e.window}})},o(HTMLIFrameElement.prototype,"contentWindow",or));var sr,fr=MutationObserver,hr=fr.prototype,pr=hr.disconnect,dr=hr.observe,gr=hr.takeRecords,mr="$$lwcObserverCallbackWrapper$$",vr=new WeakMap;function br(e){return e.$$lwcNodeObservers$$}function Er(e){var t=e.addedNodes,n=e.removedNodes,o=e.target,a=e.type,i=r(MutationRecord.prototype);return l(i,{addedNodes:{get:function(){return t},enumerable:!0,configurable:!0},removedNodes:{get:function(){return n},enumerable:!0,configurable:!0},type:{get:function(){return a},enumerable:!0,configurable:!0},target:{get:function(){return o.shadowRoot},enumerable:!0,configurable:!0}}),i}function yr(e,t){for(var n=t;!T(n);){var r=br(n);if(!N(r)&&(r[0]===e||-1!==h.call(r,e)))return!0;n=n.parentNode}return!1}function Nr(e,t){return g.call(e,(function(e,n){var r=n.target,l=n.addedNodes,o=n.removedNodes;if("childList"!==n.type||N(Gt(r)))yr(t,r)&&d.call(e,n);else if(l.length>0){var a=l[0];if(yr(t,a)){var i=br(r);!i||i[0]!==t&&-1===h.call(i,t)?d.call(e,Er(n)):d.call(e,n)}}else{var u=r.shadowRoot;a=o[0];if(Kt(r)===Kt(a)&&yr(t,r))d.call(e,n);else if(u){var c=br(u);!c||c[0]!==t&&-1===h.call(c,t)||d.call(e,Er(n))}}return e}),[])}function Tr(e){var t=function(e){var t=e[mr];return N(t)&&(t=e[mr]=function(t,n){var r=Nr(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new fr(t)}function wr(e,t,n){if(arguments.length>1){var r=v.call(arguments);return r[1]=wt(r[1]),Qe.apply(this,r)}return Qe.apply(this,arguments)}function Lr(e,t,n){if(arguments.length>1){var r=v.call(arguments);r[1]=wt(r[1]),Ze.apply(this,r)}Ze.apply(this,arguments)}function Sr(){var e=ke.call(this);if(!(e instanceof Node))return e;var t=ut(e),n=er(e,this.composed),r=We.call(this);if(!(r instanceof Node))return T(r)&&N(jt(e))?e:tr(t,n);if(r===t||r===t.body)return N(jt(e))?e:tr(t,n);var l=r,o=n;Xn(r)&&(Lt.get(this)===dt.SHADOW_ROOT_LISTENER&&(l=qn(r)));return Xn(e)&&Qn.has(this)&&(o=er(qn(e),this.composed)),tr(l,o)}function Mr(){var e=ke.call(this),t=We.call(this);if(!(e instanceof Node))return[];if(T(t))return[];var n=e;return Xn(e)&&Qn.has(this)&&(n=qn(e)),er(n,this.composed)}function Or(e){var t=a(e.prototype,"relatedTarget").get;o(e.prototype,"relatedTarget",{get:function(){var e=t.call(this);if(T(e))return null;if(!(e instanceof Node&&qt(e)))return e;var n=We.call(this);return T(n)&&(n=ut(e)),tr(n,er(e,!0))},enumerable:!0,configurable:!0})}Tr.prototype=fr.prototype,Tr.prototype.disconnect=function(){var e=this;pr.call(this);var t=vr.get(this);N(t)||(E.call(t,(function(t){var n=t.$$lwcNodeObservers$$;if(!N(n)){var r=h.call(n,e);-1!==r&&b.call(n,r,1)}})),t.length=0)},Tr.prototype.observe=function(e,t){var n,r=br(e);if(N(r)&&(n=r=[],e.$$lwcNodeObservers$$=n),-1===h.call(r,this)&&d.call(r,this),e instanceof Zn&&(e=e.host),vr.has(this)){var l=vr.get(this);-1===h.call(l,e)&&d.call(l,e)}else vr.set(this,[e]);return dr.call(this,e,t)},Tr.prototype.takeRecords=function(){return Nr(gr.call(this),this)},o(window,"MutationObserver",{value:Tr,configurable:!0,writable:!0}),l(mt,{addEventListener:{value:function(e,t,n){if(Xn(this))return xt.apply(this,arguments);var r=v.call(arguments);return r.length>1&&(r[1]=wt(r[1])),vt.apply(this,r)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(Xn(this))return kt.apply(this,arguments);var r=v.call(arguments);arguments.length>1&&(r[1]=wt(r[1])),Et.apply(this,r),Et.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&l(Window.prototype,{addEventListener:{value:wr,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Lr,enumerable:!0,writable:!0,configurable:!0}}),l(Event.prototype,{target:{get:Sr,enumerable:!0,configurable:!0},currentTarget:{get:function(){var e=We.call(this);return T(e)?null:Lt.get(this)===dt.SHADOW_ROOT_LISTENER?qn(e):e},enumerable:!0,configurable:!0},composedPath:{value:Mr,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Sr,enumerable:!0,configurable:!0},path:{get:Mr,enumerable:!0,configurable:!0}}),Or(FocusEvent),Or(MouseEvent);var Cr,_r={childList:!0},Ar=O("slotchange","synthetic-shadow");function Hr(e){var t=ft(re.call(e));return g.call(t,(function(e,t){return t instanceof Element&&zt(t)?d.apply(e,Hr(t)):d.call(e,t),e}),[])}function Rr(){var e=Z.call(this);return T(e)||!zt(e)||Kt(e)===Kt(this)?null:e}function Dr(e,t){var n,r=jt(e);if(N(r))n=e instanceof HTMLBodyElement?s.call(t,(function(t){return N(jt(t))||st(e)})):v.call(t);else if(Xn(e)){var l=Yt(e);n=T(l)?[]:Gt(e)?Zt(e,t):tn(l,t)}else n=s.call(t,(function(e){return Kt(e)===r}));return n}function Ir(){for(var e=Bn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Tn(e[n]);return t}function $r(){return Tn(this)}function Pr(){var e=Yt(this),t=T(e)?[]:tn(e,rn(this));return hn(s.call(t,(function(e){return e instanceof Element})))}function Br(){return this.children.length}function xr(){return this.children[0]||null}function kr(){var e=this.children;return e.item(e.length-1)||null}function Wr(e,t,n){var r;if(Xn(e)){var l=Yt(e);r=T(l)?[]:Gt(e)?Zt(e,t):tn(l,t)}else if(qt(e)){var o=jt(e);if(N(o))if(n===Cr.Enabled){var a=Kt(e);r=s.call(t,(function(e){return Kt(e)===a}))}else r=v.call(t);else r=s.call(t,(function(e){return Kt(e)===o}))}else r=e instanceof HTMLBodyElement||n===Cr.Enabled?s.call(t,(function(t){return N(jt(t))||st(e)})):v.call(t);return r}l(HTMLSlotElement.prototype,{addEventListener:{value:function(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||A(this,Ar)||(_(this,Ar,!0),sr||(sr=new nt((function(e){var t=[];E.call(e,(function(e){var n=e.target;-1===h.call(t,n)&&(d.call(t,n),bt.call(n,new CustomEvent("slotchange")))}))}))),rt.call(sr,this,_r))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value:function(e){if(qt(this)){var t=!N(e)&&w(e.flatten),n=t?Hr(this):ln(this);return s.call(n,(function(e){return e instanceof Element}))}return R.apply(this,v.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value:function(e){if(qt(this)){var t=!N(e)&&w(e.flatten);return t?Hr(this):ln(this)}return H.apply(this,v.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get:function(){var e=ae.call(this,"name");return T(e)?"":e},set:function(e){de.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get:function(){if(qt(this)){var e=Yt(this);return cn(T(e)?[]:tn(e,rn(this)))}return re.call(this)},enumerable:!0,configurable:!0}}),l(Text.prototype,{assignedSlot:{get:Rr,enumerable:!0,configurable:!0}}),function(e){e[e.Disabled=0]="Disabled",e[e.Enabled=1]="Enabled"}(Cr||(Cr={})),l(Element.prototype,{innerHTML:{get:function(){return gt.ENABLE_ELEMENT_PATCH?st(this)?Me.call(this):Ir.call(this):qt(this)||Xn(this)?Ir.call(this):Me.call(this)},set:function(e){Oe.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get:function(){return gt.ENABLE_ELEMENT_PATCH?st(this)?_e.call(this):$r.call(this):qt(this)||Xn(this)?$r.call(this):_e.call(this)},set:function(e){Ae.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return w(e["$$lwc-synthetic-mode$$"])?Yn(this,e):ge.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(Xn(this)){var e=qn(this);if("open"===e.mode)return e}return xe.call(this)},enumerable:!0,configurable:!0},children:{get:function(){return wn(this)?Pr.call(this):Pe.call(this)},enumerable:!0,configurable:!0},childElementCount:{get:function(){return wn(this)?Br.call(this):me.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get:function(){return wn(this)?xr.call(this):ve.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get:function(){return wn(this)?kr.call(this):be.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:Rr,enumerable:!0,configurable:!0}}),i.call(HTMLElement.prototype,"innerHTML")&&o(HTMLElement.prototype,"innerHTML",a(Element.prototype,"innerHTML")),i.call(HTMLElement.prototype,"outerHTML")&&o(HTMLElement.prototype,"outerHTML",a(Element.prototype,"outerHTML")),i.call(HTMLElement.prototype,"children")&&o(HTMLElement.prototype,"children",a(Element.prototype,"children")),l(Element.prototype,{querySelector:{value:function(){var e=this,t=ft(he.apply(this,v.call(arguments)));if(Xn(this)){var n=Yt(this);return T(n)?null:Gt(this)?en(this,t):nn(n,t)}if(qt(this)){var r=jt(this);if(N(r)){if(!gt.ENABLE_NODE_LIST_PATCH)return 0===t.length?null:t[0];var l=Kt(this);return N(a=f.call(t,(function(e){return Kt(e)===l})))?null:a}return N(a=f.call(t,(function(e){return Kt(e)===r})))?null:a}if(!(gt.ENABLE_NODE_LIST_PATCH||this instanceof HTMLBodyElement)){var o=t[0];return N(o)?null:o}var a=f.call(t,(function(t){return N(jt(t))||st(e)}));return N(a)?null:a},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value:function(){var e=ft(he.apply(this,v.call(arguments)));if(!gt.ENABLE_NODE_LIST_PATCH){var t=Wr(this,e,Cr.Disabled);return cn(t)}return cn(Wr(this,e,Cr.Enabled))},writable:!0,enumerable:!0,configurable:!0}}),l(Element.prototype,{getElementsByClassName:{value:function(){var e=ft(Be.apply(this,v.call(arguments)));if(!gt.ENABLE_HTML_COLLECTIONS_PATCH)return hn(Dr(this,e));var t=Wr(this,e,Cr.Enabled);return hn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value:function(){var e=ft(ue.apply(this,v.call(arguments)));if(!gt.ENABLE_HTML_COLLECTIONS_PATCH)return hn(Dr(this,e));var t=Wr(this,e,Cr.Enabled);return hn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value:function(){var e=ft(ce.apply(this,v.call(arguments)));if(!gt.ENABLE_HTML_COLLECTIONS_PATCH)return hn(Dr(this,e));var t=Wr(this,e,Cr.Enabled);return hn(t)},writable:!0,enumerable:!0,configurable:!0}}),i.call(HTMLElement.prototype,"getElementsByClassName")&&o(HTMLElement.prototype,"getElementsByClassName",a(Element.prototype,"getElementsByClassName"));var Fr="\n [contenteditable],\n [tabindex],\n a[href],\n area[href],\n audio[controls],\n button,\n iframe,\n input,\n select,\n textarea,\n video[controls]\n",Ur=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function jr(e){return e.filter((function(e){return se.call(e,"tabindex")?"0"===ae.call(e,"tabindex"):!Ur.has(He.call(e))||!se.call(e,"disabled")}))}var Kr=O("DidAddMouseEventListeners","synthetic-shadow");function Gr(e){return(!Xn(e)||!Kn(e))&&($e.call(e,Fr)&&function(e){var t=ie.call(e),n=t.width,r=t.height,l=n>0||r>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function qr(){var e=this.getRootNode();if(e!==this){var t=e;if(t.activeElement!==this)for(var n=ft(he.call(this,Fr)),r=!1;!r&&0!==n.length;){(o=n.shift()).focus.apply(o,arguments);var l=o.getRootNode();r=l.activeElement===o}}else{var o;T(o=fe.call(this,Fr))||o.focus.apply(o,arguments)}}function Xr(e){var t=ut(e),n=jr(ft(qe.call(t,Fr))),r=jr(ft(he.call(e,Fr))),l=r[0],o=r[r.length-1],a=h.call(n,e),i=a>-1?a:h.call(n,l),u=0===r.length?i+1:h.call(n,o)+1;return{prev:v.call(n,0,i),inner:r,next:v.call(n,u)}}function Vr(e,t){var n=K.call(e,t);return n&D?0:n&I?1:n&$?2:-1}function Yr(e){e.preventDefault(),e.stopPropagation()}function zr(e,t){Qe.call(e,"focusin",Yr,!0),Qe.call(e,"focusout",Yr,!0),t(),Ze.call(e,"focusin",Yr,!0),Ze.call(e,"focusout",Yr,!0)}function Jr(e,t,n){var r=ct(n),l=function(e,t){var n=e.length;if(n>0)for(var r=0;r<n;r+=1){var l=e[r];if(ll(t.getRootNode(),l))return l}return null}(e,n);T(l)?zr(r,(function(){t.blur()})):zr(r,(function(){l.focus()}))}var Qr=!1;function Zr(){Qr=!0}function el(){Qr=!1}function tl(){return!Qr}function nl(e){if(!Qr){var t=We.call(e),n=ke.call(e);if(t===n){var r=Fe.call(e);if(!T(r)){var l=Xr(t);if(1===Vr(t,r)){var o=ll.bind(null,t.getRootNode()),a=f.call(l.inner,o);if(N(a))Jr(l.next,n,r);else zr(ct(a),(function(){a.focus()}))}else t===n&&Jr(m.call(l.prev),n,r)}}}}function rl(e){if(!Qr){var t=Fe.call(e);if(!T(t)){var n=We.call(e),r=Xr(n);if(-1===h.call(r.inner,t)){var l=ke.call(e),o=Vr(n,t);1===o&&Jr(r.next,l,t),2===o&&Jr(m.call(r.prev),l,t)}}}}function ll(e,t){if(!Gr(t))return!1;for(var n=ut(t),r=t.getRootNode();r!==n&&r!==e;){var l=r.host;if("-1"===ae.call(l,"tabindex"))return!1;r=l&&l.getRootNode()}return!0}function ol(e){Et.call(e,"focusin",nl,!0)}function al(e){var t=ut(e);A(t,Kr)||(_(t,Kr,!0),vt.call(t,"mousedown",Zr,!0),vt.call(t,"mouseup",(function(){setTimeout(el)}),!0),vt.call(t,"dragstart",el,!0))}function il(e){Et.call(e,"focusin",rl,!0)}function ul(e){var t=ct(e);return et.call(t,e)}function cl(e){var t=ct(e);return tt.call(t)}function sl(e){return"visible"===e.visibility&&"none"!==e.display}function fl(e){var t=[];if(function(e){return e.nodeType===P}(e)){var n=e.tagName,r=ul(e);if("OPTION"===n)return[1,ye.call(e),1];if("TEXTAREA"===n)return[];for(var l=e.childNodes,o=0,a=l.length;o<a;o++)d.apply(t,fl(l[o]));if(!sl(r))return"SELECT"===n||"DATALIST"===n?[]:t;"BR"===n&&t.push("\n");var i=r.display;"table-cell"===i&&t.push("\t"),"table-row"===i&&t.push("\n"),"P"===n&&(t.unshift(2),t.push(2)),"block"!==i&&"table-caption"!==i&&"flex"!==i&&"table"!==i||(t.unshift(1),t.push(1))}else(function(e){return e.nodeType===B})(e)&&t.push(function(e){var t=cl(e);if(null===t)return e.textContent||"";var n=document.createRange();n.selectNodeContents(e);var r=n.getBoundingClientRect();return r.height<=0||r.width<=0?"":(t.removeAllRanges(),t.addRange(n),t.toString()||e.textContent||"")}(e));return t}function hl(e){if(!sl(ul(e)))return on(e)||"";for(var t=function(e){var t=ct(e),n=cl(e);if(null===n)return null;for(var r=[],l=0;l<n.rangeCount;l++)r.push(n.getRangeAt(l));var o={element:e,onselect:t.onselect,onselectstart:t.onselectstart,onselectionchange:t.onselectionchange,ranges:r};return t.onselect=null,t.onselectstart=null,t.onselectionchange=null,o}(e),n=[],r=e.childNodes,l=0,o=r.length;l<o;l++)d.apply(n,fl(r[l]));!function(e){if(null!==e){var t=e.element,n=e.onselect,r=e.onselectstart,l=e.onselectionchange,o=e.ranges,a=ct(t),i=cl(t);i.removeAllRanges();for(var u=0;u<o.length;u++)i.addRange(o[u]);a.onselect=n,a.onselectstart=r,a.onselectionchange=l}}(t);var a="",i=0;for(l=0,o=n.length;l<o;l++){var u=n[l];if("string"==typeof u){if(i>0){for(var c=0;c<i;c++)a+="\n";i=0}u.length>0&&(a+=u)}else{if(0==a.length)continue;u>i&&(i=u)}}return a}var pl=HTMLElement.prototype,dl=pl.blur,gl=pl.focus;function ml(){return Kn(this)&&L(se.call(this,"tabindex"))?0:De.call(this)}function vl(e){var t=Kn(this),n=De.call(this),r=se.call(this,"tabindex");Ie.call(this,e);var l,o=De.call(this),a=se.call(this,"tabindex"),i=n!==o;(r&&(i||L(a))&&(-1===n&&il(this),0===n&&t&&ol(this)),L(a))||(r&&a&&L(i)||(-1===o&&(al(l=this),ol(l),vt.call(l,"focusin",rl,!0)),0===o&&t&&function(e){al(e),il(e),vt.call(e,"focusin",nl,!0)}(this)))}function bl(){if(Kn(this)){var e=(n=ut(t=this),T(r=Ue.call(n))||0!=(K.call(t,r)&D)?r:null);if(!T(e))return void e.blur()}var t,n,r;return dl.call(this)}function El(){var e=tl();e&&Zr(),Xn(this)&&Kn(this)?qr.call(this):(gl.apply(this,arguments),e&&el())}l(HTMLElement.prototype,{tabIndex:{get:function(){return Xn(this)?ml.call(this):De.call(this)},set:function(e){return Xn(this)?vl.call(this,e):Ie.call(this,e)},enumerable:!0,configurable:!0},blur:{value:function(){if(Xn(this))return bl.call(this);dl.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value:function(){El.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==ye&&null!==Ne&&o(HTMLElement.prototype,"innerText",{get:function(){return gt.ENABLE_INNER_OUTER_TEXT_PATCH?gt.ENABLE_ELEMENT_PATCH?st(this)?ye.call(this):hl(this):qt(this)||Xn(this)?hl(this):ye.call(this):ye.call(this)},set:function(e){Ne.call(this,e)},enumerable:!0,configurable:!0}),null!==we&&null!==Le&&o(HTMLElement.prototype,"outerText",{get:function(){return gt.ENABLE_INNER_OUTER_TEXT_PATCH?gt.ENABLE_ELEMENT_PATCH?st(this)?we.call(this):hl(this):qt(this)||Xn(this)?hl(this):we.call(this):we.call(this)},set:function(e){Le.call(this,e)},enumerable:!0,configurable:!0});var yl="$shadowToken$";o(Element.prototype,yl,{set:function(e){var t=this.$$ShadowTokenKey$$;N(t)||t===e||pe.call(this,t),N(e)||de.call(this,e,""),this.$$ShadowTokenKey$$=e},get:function(){return this.$$ShadowTokenKey$$},configurable:!0});var Nl,Tl=function(){},wl={childList:!0};function Ll(e,t,n){var r=Un(e);if(r!==t&&(jn(e,t),e instanceof Element)){if(function(e,t){e.$shadowToken$=t}(e,n),Xn(e))return;N(r)&&rt.call(Nl,e,wl);for(var l=re.call(e),o=0,a=l.length;o<a;o+=1)Ll(l[o],t,n)}}function Sl(e){if(N(Nl)&&(Nl=new nt((function(e){E.call(e,(function(e){for(var t=e.target,n=e.addedNodes,r=e.removedNodes,l=Un(t),o=function(e){return e.$shadowToken$}(t),a=0,i=r.length;a<i;a+=1){var u=r[a];K.call(t,u)&Node.DOCUMENT_POSITION_CONTAINED_BY||Ll(u,Tl,void 0)}for(a=0,i=n.length;a<i;a+=1)u=n[a],K.call(t,u)&Node.DOCUMENT_POSITION_CONTAINED_BY&&Ll(u,l,o)}))}))),N(Un(e)))throw new Error("Invalid Element");rt.call(Nl,e,wl)}o(Element.prototype,"$domManual$",{set:function(e){this.$$DomManualKey$$=e,w(e)&&Sl(this)},get:function(){return this.$$DomManualKey$$},configurable:!0})}));