New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lwc/synthetic-shadow

Package Overview
Dependencies
Maintainers
12
Versions
738
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/synthetic-shadow - npm Package Compare versions

Comparing version 0.39.0 to 0.39.1-222.1

lib/shared/utils.d.ts

2

dist/umd/es2017/shadow.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).SyntheticShadow={})}(this,function(e){"use strict";const{freeze:t,seal:n,keys:o,create:l,assign:r,defineProperty:c,getPrototypeOf:i,setPrototypeOf:a,getOwnPropertyDescriptor:u,getOwnPropertyNames:s,defineProperties:f,getOwnPropertySymbols:d,hasOwnProperty:p,preventExtensions:h,isExtensible:g}=Object,{concat:m,filter:b,find:E,slice:w,splice:y,unshift:v,indexOf:N,push:T,map:O,join:S,forEach:L,reduce:M,reverse:_}=Array.prototype;function C(e){return void 0===e}function R(e){return null===e}function D(e){return!0===e}function I(e){return!1===e}function P(e){return"function"==typeof e}function x(e,t){do{const n=u(e,t);if(!C(n))return n;e=i(e)}while(null!==e)}const A=u(Document.prototype,"activeElement").get,H=p.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,{createDocumentFragment:$,createElement:B,createElementNS:k,createTextNode:F,createComment:W,querySelector:j,querySelectorAll:U,getElementById:q,getElementsByClassName:K,getElementsByTagName:G,getElementsByTagNameNS:V}=Document.prototype,{getElementsByName:X}=HTMLDocument.prototype,{DOCUMENT_POSITION_CONTAINED_BY:Y,DOCUMENT_POSITION_CONTAINS:z,DOCUMENT_POSITION_PRECEDING:J,DOCUMENT_POSITION_FOLLOWING:Q,DOCUMENT_FRAGMENT_NODE:Z}=Node,{appendChild:ee,cloneNode:te,compareDocumentPosition:ne,hasChildNodes:oe,insertBefore:le,removeChild:re,replaceChild:ce}=Node.prototype,ie=u(Node.prototype,"parentNode").get,ae=p.call(Node.prototype,"parentElement")?u(Node.prototype,"parentElement").get:u(HTMLElement.prototype,"parentElement").get,ue=u(Node.prototype,"textContent").set,se=p.call(Node.prototype,"childNodes")?u(Node.prototype,"childNodes").get:u(HTMLElement.prototype,"childNodes").get,fe=u(Node.prototype,"nodeValue"),de=(fe.set,fe.get,p.call(Node.prototype,"isConnected")?u(Node.prototype,"isConnected").get:function(){return 0!=(ne.call(document,this)&Y)}),{hasAttribute:pe,getAttribute:he,getAttributeNS:ge,setAttribute:me,setAttributeNS:be,removeAttribute:Ee,removeAttributeNS:we,querySelector:ye,querySelectorAll:ve,getBoundingClientRect:Ne,getElementsByTagName:Te,getElementsByTagNameNS:Oe}=Element.prototype;let{addEventListener:Se,removeEventListener:Le}=Element.prototype;Se=Se.__lwcOriginal__||Se,Le=Le.__lwcOriginal__||Le;const Me=p.call(Element.prototype,"innerHTML")?u(Element.prototype,"innerHTML").set:u(HTMLElement.prototype,"innerHTML").set,_e=p.call(Element.prototype,"outerHTML")?u(Element.prototype,"outerHTML").set:u(HTMLElement.prototype,"outerHTML").set,Ce=u(Element.prototype,"tagName").get,Re=u(HTMLElement.prototype,"tabIndex").get,De=p.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,Ie=p.call(Element.prototype,"children")?u(Element.prototype,"children").get:u(HTMLElement.prototype,"children").get,{getElementsByClassName:Pe}=HTMLElement.prototype,xe=(void 0!==window.ShadowRoot&&u(window.ShadowRoot.prototype,"host").get,"EventTarget"in window?EventTarget.prototype.dispatchEvent:Node.prototype.dispatchEvent),Ae=void 0!==window.ShadowRoot,He=u(HTMLIFrameElement.prototype,"contentWindow").get,$e=u(Event.prototype,"target").get,Be=u(Event.prototype,"currentTarget").get,ke=u(FocusEvent.prototype,"relatedTarget").get;function Fe(e,t){const n=[];let o=e;const l=e===window?window:Mn.call(e);for(;o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===Z&&o.host&&(t||o!==l)?o.host:o.parentNode;return n[n.length-1]===document&&n.push(window),n}function We(e,t){const n=Fe(e,!0),o=t;for(let e,t,l,r,c=0;c<o.length;c++)if((l=(e=o[c])===window?window:Mn.call(e))!==t&&(r=n.indexOf(l),t=l),!(l instanceof jt)||r>-1)return e;return null}let{addEventListener:je,removeEventListener:Ue}=window;function qe(e){let t=null;try{if(!(t=e.$$lwcEventWrapper$$)){const n="function"==typeof e;t=e.$$lwcEventWrapper$$=function(t){return function(e){const t=$e.call(e);return!!(t instanceof Node&&0!=(ne.call(document,t)&Y)&&$n(t))}(t)&&lt(t),n?e.call(this,t):e.handleEvent&&e.handleEvent(t)}}}catch(e){}return t}function Ke(e,t,n){const o=typeof t;if("function"!==o&&"object"!==o)return;if("object"===o&&(!t.handleEvent||"function"!=typeof t.handleEvent))return;const l=qe(t);je.call(this,e,l,n)}function Ge(e,t,n){const o=qe(t);Ue.call(this,e,o||t,n)}function Ve(e,t,n){const o=typeof t;if("function"!==o&&"object"!==o)return;if("object"===o&&(!t.handleEvent||"function"!=typeof t.handleEvent))return;const l=qe(t);Se.call(this,e,l,n)}function Xe(e,t,n){const o=qe(t);Le.call(this,e,o||t,n)}je=je.__lwcOriginal__||je,Ue=Ue.__lwcOriginal__||Ue,Ve.__lwcOriginal__=Se,Xe.__lwcOriginal__=Le,Ke.__lwcOriginal__=je,Ge.__lwcOriginal__=Ue,window.addEventListener=Ke,window.removeEventListener=Ge,Node.prototype.addEventListener=Ve,Node.prototype.removeEventListener=Xe;const{addEventListener:Ye,removeEventListener:ze}=Node.prototype;var Je;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=1]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=2]="SHADOW_ROOT_LISTENER"}(Je||(Je={}));const Qe=new WeakMap;function Ze(e,t){return!!(ne.call(e,t)&Y)}const et={composed:!1};function tt(e,t){let n=Mn.call(e,t);return"mode"in n&&"delegatesFocus"in n&&(n=Bt(n)),n}function nt(){const e=Be.call(this),t=Fe($e.call(this),this.composed);return e instanceof Node?We(Qe.get(this)===Je.SHADOW_ROOT_LISTENER?kt(e):e,t):We(document,t)}function ot(){return Fe($e.call(this),this.composed)}function lt(e){if(Qe.has(e))return;f(e,{target:{get:nt,enumerable:!0,configurable:!0},composedPath:{value:ot,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:nt,enumerable:!0,configurable:!0},path:{get:ot,enumerable:!0,configurable:!0}});const t=x(e,"relatedTarget");C(t)||c(e,"relatedTarget",{get(){const e=Qe.get(this),n=Be.call(this),o=t.get.call(this);return R(o)?null:We(e===Je.SHADOW_ROOT_LISTENER?kt(n):n,Fe(o,!0))},enumerable:!0,configurable:!0}),Qe.set(e,0)}const rt=new WeakMap;function ct(e){let t=rt.get(e);return C(t)&&(t=l(null),rt.set(e,t)),t}const it=new WeakMap;function at(e,t){if(!P(t))throw new TypeError;let n=it.get(t);return C(n)&&((n=function(n){const{composed:o}=n,l=$e.call(n),r=Be.call(n);if(l!==r){const c=tt(l,{composed:o});(Ze(c,r)||!1===o&&c===r)&&t.call(e,n)}}).placement=Je.SHADOW_ROOT_LISTENER,it.set(t,n)),n}const ut=new WeakMap;function st(e,t){if(!P(t))throw new TypeError;let n=ut.get(t);return C(n)&&((n=function(n){(function(e){const t=$e.call(e),n=Be.call(e),{composed:o}=e;return!0===o||t===n||Ze(tt(t,et),n)})(n)&&t.call(e,n)}).placement=Je.CUSTOM_ELEMENT_LISTENER,ut.set(t,n)),n}function ft(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:l,stopPropagation:r}=e,i=ct(Be.call(e))[o];c(e,"stopImmediatePropagation",{value(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),c(e,"stopPropagation",{value(){n=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0});const a=w.call(i);function u(n){L.call(a,o=>{I(t)&&o.placement===n&&-1!==N.call(i,o)&&o.call(void 0,e)})}Qe.set(e,Je.SHADOW_ROOT_LISTENER),u(Je.SHADOW_ROOT_LISTENER),I(t)&&I(n)&&(Qe.set(e,Je.CUSTOM_ELEMENT_LISTENER),u(Je.CUSTOM_ELEMENT_LISTENER)),Qe.set(e,0)}function dt(e,t,n){const o=ct(e);let l=o[t];C(l)&&(l=o[t]=[]),0===l.length&&Ye.call(e,t,ft),T.call(l,n)}function pt(e,t,n){let o,l;C(l=ct(e)[t])||-1===(o=N.call(l,n))||(y.call(l,o,1),0===l.length&&ze.call(e,t,ft))}const ht="Symbol(x)"===Symbol("x").toString();function gt(e){return ht?Symbol(e):`$$lwc-${e}$$`}function mt(e,t,n){c(e,t,{value:n})}function bt(e,t){return e[t]}function Et(e){switch(e.nodeType){case Node.ELEMENT_NODE:{const t=xn(e);let n="";for(let e=0,o=t.length;e<o;e+=1)n+=Et(t[e]);return n}default:return e.nodeValue}}const wt=gt("items");function yt(){throw new TypeError("Illegal constructor")}function vt(e){const t=l(yt.prototype);return mt(t,wt,e),L.call(e,(e,n)=>{c(t,n,{value:e,enumerable:!0,configurable:!0})}),t}yt.prototype=l(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:yt},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return bt(this,wt).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(bt(this,wt),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(bt(this,wt),(e,t)=>[t,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(bt(this,wt),(e,t)=>t)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return bt(this,wt)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=bt(this,wt);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}}}),a(yt,NodeList);const Nt=gt("items");function Tt(){throw new TypeError("Illegal constructor")}function Ot(e){const t=l(Tt.prototype);return mt(t,Nt,e),L.call(e,(e,n)=>{c(t,n,{value:e,enumerable:!0,configurable:!0})}),t}Tt.prototype=l(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Tt},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return bt(this,Nt).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(function(e){return"length"!==e&&isNaN(e)}(e)&&this[e])return this[e];const t=bt(this,Nt);for(let o=t.length-1;o>=0;o-=1){const l=t[o];if(((n=l).getAttribute("id")||n.getAttribute("name"))===e)return l}var n;return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(bt(this,Nt),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(bt(this,Nt),(e,t)=>[t,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(bt(this,Nt),(e,t)=>t)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return bt(this,Nt)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=bt(this,Nt);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}}}),a(Tt,HTMLCollection);const St=/[&\u00A0"]/g,Lt=/[&\u00A0<>]/g,{replace:Mt,toLowerCase:_t}=String.prototype;function Ct(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function Rt(e){return Mt.call(e,St,Ct)}const Dt=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),It=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Pt(e){switch(e.nodeType){case Node.ELEMENT_NODE:{const{attributes:t}=e,n=Ce.call(e);let o="<"+_t.call(n);for(let e,n=0;e=t[n];n++)o+=" "+e.name+'="'+Rt(e.value)+'"';return o+=">",Dt.has(n)?o:o+function(e){let t="";const n=xn(e);for(let e=0,o=n.length;e<o;e+=1)t+=Pt(n[e]);return t}(e)+"</"+_t.call(n)+">"}case Node.TEXT_NODE:{const{data:n,parentNode:o}=e;return o instanceof Element&&It.has(Ce.call(o))?n:(t=n,Mt.call(t,Lt,Ct))}case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw new Error}var t}const xt=gt("shadowRecord"),{createDocumentFragment:At}=document;function Ht(e){const t=bt(e,xt);if(C(t))throw new TypeError;return t}function $t(e){return Ht(e).delegatesFocus}function Bt(e){return Ht(e).host}function kt(e){return Ht(e).shadowRoot}function Ft(e){return!C(bt(e,xt))}const Wt={constructor:{writable:!0,configurable:!0,value:jt},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"}};function jt(){throw new TypeError("Illegal constructor")}r(Wt,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return le.call(Bt(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return re.call(Bt(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ee.call(Bt(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return ce.call(Bt(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,o){dt(Bt(e),t,at(e,n))}(this,e,t)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,o){pt(Bt(e),t,at(e,n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return Bt(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return vt(Dn(this))}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=Bt(this);return this===e?0:this.contains(e)?20:ne.call(t,e)&Y?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=Bt(this);return 0!=(ne.call(t,e)&Y)&&Rn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return qn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=qn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return qn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return de.call(Bt(this))}},nextSibling:{enumerable:!0,configurable:!0,get:()=>null},previousSibling:{enumerable:!0,configurable:!0,get:()=>null},nodeName:{enumerable:!0,configurable:!0,get:()=>"#document-fragment"},nodeType:{enumerable:!0,configurable:!0,get:()=>11},nodeValue:{enumerable:!0,configurable:!0,get:()=>null},ownerDocument:{enumerable:!0,configurable:!0,get(){return Bt(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=qn(this);let t="";for(let n=0,o=e.length;n<o;n+=1)t+=Et(e[n]);return t},set(e){const t=Bt(this);ue.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=!C(e)&&!!e.composed;return I(t)?this:Mn.call(Bt(this),{composed:t})}}},{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return Ot(b.call(Dn(this),e=>e instanceof Element))}},firstElementChild:{enumerable:!0,configurable:!0,get(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get(){const{children:e}=this;return e.item(e.length-1)||null}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=Bt(e),o=ve.call(n,t);return Pn(n,o)}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return vt(function(e,t){const n=Bt(e),o=ve.call(n,t);return In(n,o)}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=qn(this);let t="";for(let n=0,o=e.length;n<o;n+=1)t+=Pt(e[n]);return t},set(e){const t=Bt(this);Me.call(t,e)}}},{activeElement:{enumerable:!0,configurable:!0,get(){const e=A.call(document);if(R(e))return e;const t=Bt(this);if(0==(ne.call(t,e)&Y))return null;let n=e;for(;!Rn(t,n);)n=ae.call(n);return Cn(n)?null:n}},delegatesFocus:{configurable:!0,get(){return Ht(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){const n=H.call(document,e,t);return R(n)?n:We(this,Fe(n,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){throw new Error}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error}},host:{enumerable:!0,configurable:!0,get(){return Bt(this)}},mode:{configurable:!0,get(){return Ht(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}}),jt.prototype=l(DocumentFragment.prototype,Wt),Ae&&a(jt.prototype,window.ShadowRoot.prototype);let Ut=window.MutationObserver;if(void 0===Ut){function qt(){}qt.prototype={observe(){}},Ut=window.MutationObserver=qt}const Kt=Ut,Gt=Kt.prototype.observe,Vt='\n button:not([tabindex="-1"]):not([disabled]),\n [contenteditable]:not([tabindex="-1"]),\n video[controls]:not([tabindex="-1"]),\n audio[controls]:not([tabindex="-1"]),\n [href]:not([tabindex="-1"]),\n input:not([tabindex="-1"]):not([disabled]),\n select:not([tabindex="-1"]):not([disabled]),\n textarea:not([tabindex="-1"]):not([disabled]),\n [tabindex="0"]\n';function Xt(e){const{width:t,height:n}=Ne.call(e);return(t>0||n>0)&&"hidden"!==getComputedStyle(e).visibility}function Yt(e){return De.call(e,Vt)&&Xt(e)}const zt={IFRAME:1,VIDEO:1,AUDIO:1,A:1,INPUT:1,SELECT:1,TEXTAREA:1,BUTTON:1};function Jt(e){const t=Ce.call(e);return Xt(e)&&(function(e){if(I(pe.call(e,"tabindex")))return!1;const t=he.call(e,"tabindex");return""!==t&&("0"===t||"-1"===t)}(e)||pe.call(e,"contenteditable")||p.call(zt,t))}function Qt(e){for(let t=0,n=e.length;t<n;t+=1){const n=e[t];if(Yt(n))return n}return null}function Zt(e){const t=U.call(document,Vt),n=w.call(ve.call(e,Vt)),o=n[0],l=n[n.length-1],r=N.call(t,e),c=r>-1?r:N.call(t,o),i=0===n.length?c+1:N.call(t,l)+1;return{prev:w.call(t,0,c),inner:n,next:w.call(t,i)}}function en(e,t){const n=ne.call(e,t);return n&Y?0:n&J?1:n&Q?2:-1}function tn(e){e.preventDefault(),e.stopPropagation()}function nn(e){je.call(window,"focusin",tn,!0),je.call(window,"focusout",tn,!0),e(),Ue.call(window,"focusin",tn,!0),Ue.call(window,"focusout",tn,!0)}function on(e,t){nn(()=>{const n=function(e){const{next:t}=e;return Qt(t)}(t);R(n)?e.blur():n.focus()})}function ln(e,t){nn(()=>{const n=function(e){const{prev:t}=e;return Qt(_.call(t))}(t);R(n)?e.blur():n.focus()})}function rn(e,t){return function(e){for(let t=e.length-1;t>=0;t-=1){const n=e[t];if(Yt(n))return n}return null}(t.inner)===e}function cn(e){const t=Be.call(e),n=$e.call(e);if(t!==n)return;const o=ke.call(e);if(R(o))return;const l=Zt(t);if(1===en(t,o)){const e=Qt(l.inner);R(e)?on(n,l):nn(()=>{e.focus()})}else t===n&&ln(t,l)}function an(e){const t=Be.call(e),n=$e.call(e),o=ke.call(e),l=Zt(t),r=function(e,t){return Qt(t.inner)===e}(n,l),c=rn(n,l);if(!(I(r)&&I(c)||R(o)))switch(en(t,o)){case 1:r&&on(n,l);break;case 2:c&&ln(n,l)}}function un(e){const t=Be.call(e);Le.call(t,"focusin",an),setTimeout(()=>{R(t)||-1!==Re.call(t)||Se.call(t,"focusin",an)},0)}function sn(e){const t=Be.call(e),n=ke.call(e);(R(n)||0!==en(t,n))&&(Le.call(t,"focusin",un,!0),Le.call(t,"focusout",sn,!0))}function fn(e){if(function(e){return e!==A.call(document)&&Jt(e)}($e.call(e))){const t=Be.call(e);Se.call(t,"focusin",un,!0),Se.call(t,"focusout",sn,!0)}}function dn(e){Le.call(e,"focusin",cn,!0)}function pn(e){Le.call(e,"focusin",an),Le.call(e,"mousedown",fn,!0)}const hn=Node.prototype.getRootNode,gn=C(hn)?function(){let e,t=this;for(;!R(e=ie.call(t));)t=e;return t}:hn;function mn(e){return D(!C(e)&&!!e.composed)?gn.call(this,e):function(e){const t=_n(e);return R(t)?gn.call(e):kt(t)}(this)}function bn(e){let t=ae.call(e);for(;!R(t)&&Cn(t);)e=t,t=ae.call(e);return e}function En(e,t){const n=kn(e);let o=t instanceof Element?t:ae.call(t);for(;!R(o)&&o!==e;){const t=Bn(o),l=ae.call(o);if(t===n)return Cn(o);if(l===e)return!1;if(R(l)||Bn(l)===t)o=l;else{if(!Cn(l))return!1;if(!R(o=_n(bn(l)))){if(o===e)return!0;if(Bn(o)===n)return!0}}}return!1}function wn(e,t){const n=_n(e);if(R(n))return[];const o=ve.call(e,t);return kn(e)?function(e,t){const n=[];for(let o=0,l=t.length;o<l;o+=1){const l=t[o];!Rn(e,l)&&En(e,l)&&T.call(n,l)}return n}(e,o):In(n,o)}function yn(e,t){const n=_n(e);if(R(n))return null;const o=ve.call(e,t);return kn(e)?function(e,t){for(let n=0,o=t.length;n<o;n+=1){const o=t[n];if(!Rn(e,o)&&En(e,o))return o}return null}(e,o):Pn(n,o)}function vn(e){const t=Un(e),{addEventListener:n,removeEventListener:o,blur:l}=e;return class extends t{querySelector(e){return yn(this,e)}querySelectorAll(e){return vt(wn(this,e))}get innerHTML(){const e=qn(this);let t="";for(let n=0,o=e.length;n<o;n+=1)t+=Pt(e[n]);return t}set innerHTML(e){Me.call(this,e)}get outerHTML(){return Pt(this)}set outerHTML(e){_e.call(this,e)}attachShadow(e){return function(e,t){if(!C(bt(e,xt)))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");const{mode:n,delegatesFocus:o}=t,l=At.call(document),r={mode:n,delegatesFocus:!!o,host:e,shadowRoot:l};return mt(l,xt,r),mt(e,xt,r),a(l,jt.prototype),l}(this,e)}addEventListener(e,t,o){Ft(this)?function(e,t,n,o){dt(e,t,st(e,n))}(this,e,t):n.call(this,e,t,o)}removeEventListener(e,t,n){Ft(this)?function(e,t,n,o){pt(e,t,st(e,n))}(this,e,t):o.call(this,e,t,n)}get shadowRoot(){if(Ft(this)){const e=kt(this);if("open"===e.mode)return e}return null}get tabIndex(){if(Ft(this)&&$t(this)&&I(pe.call(this,"tabindex")))return 0;return x(t.prototype,"tabIndex").get.call(this)}set tabIndex(e){if(Ft(this)){const o=$t(this),l=Re.call(this),r=pe.call(this,"tabindex");x(t.prototype,"tabIndex").set.call(this,e);const c=Re.call(this),i=pe.call(this,"tabindex"),a=l!==c;if(r&&(a||I(i))&&(-1===l&&pn(this),0===l&&o&&dn(this)),I(i))return;if(r&&i&&I(a))return;return-1===c&&(dn(n=this),Se.call(n,"mousedown",fn,!0),Se.call(n,"focusin",an)),void(0===c&&o&&function(e){pn(e),Se.call(e,"focusin",cn,!0)}(this))}var n;x(t.prototype,"tabIndex").set.call(this,e)}blur(){if(Ft(this)&&$t(this)){const e=function(e){const t=A.call(document);return R(t)?t:0!=(ne.call(e,t)&Y)?t:null}(this);if(!R(e))return void e.blur()}return l.call(this)}get childNodes(){if(Ft(this)){const e=_n(this);return vt(R(e)?[]:In(e,xn(this)))}return se.call(this)}get children(){if(Ft(this)){const e=_n(this),t=R(e)?[]:In(e,xn(this));return Ot(b.call(t,e=>e instanceof Element))}return Ie.call(this)}}}let Nn;c(Node.prototype,"getRootNode",{value:mn,enumerable:!0,configurable:!0,writable:!0});const Tn={childList:!0},On=gt("slotchange");function Sn(e){const t=_n(e);if(R(t))return[];const n=w.call(se.call(e));return M.call(n,(e,n)=>(Rn(t,n)||T.call(e,n),e),[])}function Ln(e){const t=w.call(se.call(e));return M.call(t,(e,t)=>(t instanceof Element&&Cn(t)?T.apply(e,Ln(t)):T.call(e,t),e),[])}const{getRootNode:Mn}=Node.prototype;function _n(e){if(!(e instanceof Node))return null;const t=Bn(e);if(C(t))return null;let n=e;for(;!R(n)&&kn(n)!==t;)n=ie.call(n);return R(n)?null:n}function Cn(e){return"SLOT"===Ce.call(e)}function Rn(e,t){const n=Bn(t);return C(n)||kn(e)===n}function Dn(e){const t=Bt(e);return In(t,se.call(t))}function In(e,t){const n=[];for(let o=0,l=t.length;o<l;o+=1){const l=t[o];Rn(e,l)&&T.call(n,l)}return n}function Pn(e,t){for(let n=0,o=t.length;n<o;n+=1)if(Rn(e,t[n]))return t[n];return null}function xn(e){let t;if(C(kn(e)))t=se.call(e);else{const n=ve.call(e,"slot");t=M.call(n,(t,n)=>(Rn(e,n)&&T.apply(t,Sn(n)),t),[])}const n=_n(e);return R(n)?[]:M.call(t,(e,t)=>(Rn(n,t)&&T.call(e,t),e),[])}const An="$$OwnerKey$$",Hn="$$OwnKey$$";Symbol("x").toString();function $n(e){return e[An]}function Bn(e){let t,n=e;for(;!R(n);){if(!C(t=n[An]))return t;n=ie.call(n)}}function kn(e){return e[Hn]}const Fn="$$ShadowTokenKey$$";function Wn(e,t){C(t)||(me.call(e,t,""),e[Fn]=t)}function jn(e,t){const n=_n(e);if(t===n)return kt(n);if(t instanceof Element){if(Bn(e)===Bn(t))return t;if(!R(n)&&Cn(t)){const e=_n(t);if(!R(e)&&Rn(n,e))return e}}return null}function Un(e){const t=i(e).constructor;class n{constructor(){throw new TypeError("Illegal constructor")}hasChildNodes(){return qn(this).length>0}get firstChild(){return qn(this)[0]||null}get lastChild(){const e=qn(this);return e[e.length-1]||null}get textContent(){return Et(this)}set textContent(e){ue.call(this,e)}get childElementCount(){return this.children.length}get firstElementChild(){return this.children[0]||null}get lastElementChild(){const{children:e}=this;return e.item(e.length-1)||null}get assignedSlot(){const e=ie.call(this);return R(e)||!Cn(e)||Bn(e)===Bn(this)?null:e}get parentNode(){const e=ie.call(this);return R(e)?e:jn(this,e)}get parentElement(){const e=ie.call(this);if(R(e))return null;const t=jn(this,e);return t instanceof Element?t:null}compareDocumentPosition(e){return Mn.call(this)===e?10:$n(this)!==$n(e)?35:ne.call(this,e)}contains(e){return $n(this)===$n(e)&&0!=(ne.call(this,e)&Y)}cloneNode(e){const t=te.call(this,!1);if(!e)return t;const n=qn(this);for(let e=0,o=n.length;e<o;e+=1)t.appendChild(n[e].cloneNode(!0));return t}}return a(n,t),a(n.prototype,t.prototype),n}const qn=function(e){return e.childNodes};document.elementFromPoint=function(e,t){const n=H.call(document,e,t);return R(n)?n:We(document,Fe(n,!0))},c(document,"activeElement",{get(){let e=A.call(this);if(R(e))return e;for(;!C($n(e));)if(R(e=ae.call(e)))return null;return"HTML"===e.tagName&&(e=document.body),e},enumerable:!0,configurable:!0}),c(Document.prototype,"getElementById",{value(){const e=q.apply(this,w.call(arguments));if(R(e))return null;const t=$n(this);return $n(e)===t?e:null},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelector",{value(){const e=U.apply(this,w.call(arguments)),t=$n(this),n=E.call(e,e=>$n(e)===t);return C(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelectorAll",{value(){const e=U.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByClassName",{value(){const e=K.apply(this,w.call(arguments)),t=$n(this);return Ot(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagName",{value(){const e=G.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagNameNS",{value(){const e=V.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(u(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=X.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),function(){const e=HTMLBodyElement.prototype;c(e,"querySelector",{value(){const e=ve.apply(this,w.call(arguments)),t=$n(this),n=E.call(e,e=>$n(e)===t);return C(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),c(e,"querySelectorAll",{value(){const e=ve.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByClassName",{value(){const e=Pe.apply(this,w.call(arguments)),t=$n(this);return Ot(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByTagName",{value(){const e=Te.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByTagNameNS",{value(){const e=Oe.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0})}(),void 0===window.ShadowRoot&&(window.ShadowRoot=jt);const Kn=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const Gn=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Vn(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!Kn)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",t=>e=t),t.click(),!Kn.get.call(e)})()&&(HTMLElement.prototype.click=function(){Se.call(this,"click",Vn);try{Gn.value.call(this)}finally{Le.call(this,"click",Vn)}}),void 0===Object.getOwnPropertyDescriptor(Event.prototype,"composed")&&function(){const e=r(l(null),{blur:1,focus:1,focusin:1,focusout:1,click:1,dblclick:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,wheel:1,beforeinput:1,input:1,keydown:1,keyup:1,compositionstart:1,compositionupdate:1,compositionend:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,pointerover:1,pointerenter:1,pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerout:1,pointerleave:1,gotpointercapture:1,lostpointercapture:1,dragstart:1,drag:1,dragenter:1,dragleave:1,dragover:1,drop:1,dragend:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,keypress:1});Object.defineProperties(Event.prototype,{composed:{get(){const{type:t}=this;return 1===e[t]},configurable:!0,enumerable:!0}})}();const{CustomEvent:Xn}=window;function Yn(e,t){const n=new Xn(e,t);return Object.defineProperties(n,{composed:{get:()=>!(!t||!t.composed),configurable:!0,enumerable:!0}}),n}window.CustomEvent!==Yn&&(window.CustomEvent=Yn,window.CustomEvent.prototype=Xn.prototype),function(){const e=Object.getOwnPropertyDescriptor(Event.prototype,"composed").get;Object.defineProperties(FocusEvent.prototype,{composed:{get(){const{isTrusted:t}=this,n=e.call(this);return!(!t||!1!==n)||n},enumerable:!0,configurable:!0}})}();const zn=window.MutationObserver,{disconnect:Jn,observe:Qn,takeRecords:Zn}=zn.prototype,eo="$$lwcObservedTargets$$",to="$$lwcObserverCallbackWrapper$$";function no(e,t){const n=t[eo],o=[];return L.call(n,e=>{const t=e instanceof window.ShadowRoot?kn(e.host):Bn(e);T.call(o,t)}),M.call(e,(e,t)=>{const{target:r,addedNodes:c,removedNodes:i,type:a}=t;if("childList"!==a||C(kn(r))){const n=r instanceof window.ShadowRoot?kn(r.host):Bn(r);-1!==N.call(o,n)&&T.call(e,t)}else{const a=Bn(c.length>0?c[0]:i[0]);-1!==N.call(o,a)&&(-1!==n.indexOf(r)?T.call(e,t):T.call(e,function(e){const{addedNodes:t,removedNodes:n,target:o,type:r}=e,c=l(MutationRecord.prototype);return f(c,{addedNodes:{get:()=>t,enumerable:!0,configurable:!0},removedNodes:{get:()=>n,enumerable:!0,configurable:!0},type:{get:()=>r,enumerable:!0,configurable:!0},target:{get:()=>o.shadowRoot,enumerable:!0,configurable:!0}}),c}(t)))}return e},[])}function oo(e){const t=function(e){let t=e[to];return C(t)&&(t=e[to]=((t,n)=>{const o=no(t,n);0!==o.length&&e.call(n,o,n)})),t}(e),n=new zn(t);return c(n,eo,{value:[]}),n}function lo(){C(this[eo])||(this[eo].length=0),Jn.call(this)}function ro(e,t){return C(this[eo])||T.call(this[eo],e),e instanceof jt&&(e=e.host),Qn.call(this,e,t)}function co(){return no(Zn.call(this),this)}window.MutationObserver=oo,window.MutationObserver.prototype=zn.prototype,window.MutationObserver.prototype.disconnect=lo,window.MutationObserver.prototype.observe=ro,window.MutationObserver.prototype.takeRecords=co;const io=window.MutationObserver,ao=io.prototype.observe;let uo;const so={childList:!0,subtree:!0};function fo(e,t,n){if($n(e)!==t&&(function(e,t){e[An]=t}(e,t),e instanceof Element)){Wn(e,n);const o=qn(e);for(let e=0,l=o.length;e<l;e+=1){fo(o[e],t,n)}}}function po(){return new io(e=>{L.call(e,e=>{const{target:t,addedNodes:n}=e,o=$n(t),l=function(e){return e[Fn]}(t);if(!C(o))for(let e=0,t=n.length;e<t;e+=1){fo(n[e],o,l)}})})}e.PatchedElement=vn,e.PatchedIframeElement=function(e){const t=vn(e);return class extends t{get contentWindow(){const e=He.call(this);return e?(t=e,{postMessage(){return t.postMessage.apply(t,arguments)},blur(){return t.blur.apply(t,arguments)},close(){return t.close.apply(t,arguments)},focus(){return t.focus.apply(t,arguments)},get closed(){return t.closed},get frames(){return t.frames},get length(){return t.length},get location(){return t.location},set location(e){t.location=e},get opener(){return t.opener},get parent(){return t.parent},get self(){return t.self},get top(){return t.top},get window(){return t.window}}):e;var t}}},e.PatchedNode=Un,e.PatchedSlotElement=function(e){const t=vn(e),{addEventListener:n}=e;return class extends t{addEventListener(e,t,o){"slotchange"!==e||bt(this,On)||(mt(this,On,!0),Nn||(Nn=new Kt(e=>{const t=[];L.call(e,e=>{const{target:n}=e;-1===N.call(t,n)&&(T.call(t,n),xe.call(n,new CustomEvent("slotchange")))})})),Gt.call(Nn,this,Tn)),n.call(this,e,t,o)}assignedElements(e){const t=!C(e)&&D(e.flatten)?Ln(this):Sn(this);return b.call(t,e=>e instanceof Element)}assignedNodes(e){return!C(e)&&D(e.flatten)?Ln(this):Sn(this)}get name(){const e=he.call(this,"name");return R(e)?"":e}get childNodes(){const e=_n(this);return vt(R(e)?[]:In(e,xn(this)))}get children(){const e=_n(this),t=R(e)?[]:In(e,xn(this));return Ot(b.call(t,e=>e instanceof Element))}}},e.markElementAsPortal=function(e){C(uo)&&(uo=po()),ao.call(uo,e,so)},e.patchEvent=lt,e.setCSSToken=Wn,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).SyntheticShadow={})}(this,function(e){"use strict";const{freeze:t,seal:n,keys:l,create:o,assign:r,defineProperty:c,getPrototypeOf:a,setPrototypeOf:i,getOwnPropertyDescriptor:u,getOwnPropertyNames:s,defineProperties:f,getOwnPropertySymbols:p,hasOwnProperty:d,preventExtensions:h,isExtensible:g}=Object,{concat:m,filter:b,find:y,slice:E,splice:w,unshift:v,indexOf:N,push:T,map:O,join:S,forEach:L,reduce:M,reverse:_}=Array.prototype;function C(e){return void 0===e}function D(e){return null===e}function R(e){return!0===e}function I(e){return!1===e}function P(e){return"function"==typeof e}function x(e,t){do{const n=u(e,t);if(!C(n))return n;e=a(e)}while(null!==e)}const A=u(Document.prototype,"activeElement").get,H=d.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,$=u(Document.prototype,"defaultView").get,{createDocumentFragment:B,createElement:F,createElementNS:k,createTextNode:W,createComment:j,querySelector:U,querySelectorAll:q,getElementById:K,getElementsByClassName:G,getElementsByTagName:V,getElementsByTagNameNS:X}=Document.prototype,{getElementsByName:Y}=HTMLDocument.prototype,{DOCUMENT_POSITION_CONTAINED_BY:z,DOCUMENT_POSITION_CONTAINS:J,DOCUMENT_POSITION_PRECEDING:Q,DOCUMENT_POSITION_FOLLOWING:Z,DOCUMENT_FRAGMENT_NODE:ee}=Node,{appendChild:te,cloneNode:ne,compareDocumentPosition:le,hasChildNodes:oe,insertBefore:re,removeChild:ce,replaceChild:ae}=Node.prototype,ie=u(Node.prototype,"parentNode").get,ue=u(Node.prototype,"ownerDocument").get,se=d.call(Node.prototype,"parentElement")?u(Node.prototype,"parentElement").get:u(HTMLElement.prototype,"parentElement").get,fe=u(Node.prototype,"textContent").set,pe=d.call(Node.prototype,"childNodes")?u(Node.prototype,"childNodes").get:u(HTMLElement.prototype,"childNodes").get,de=u(Node.prototype,"nodeValue"),he=(de.set,de.get,d.call(Node.prototype,"isConnected")?u(Node.prototype,"isConnected").get:function(){const e=ue.call(this);return null===e||0!=(le.call(e,this)&z)}),{hasAttribute:ge,getAttribute:me,getAttributeNS:be,setAttribute:ye,setAttributeNS:Ee,removeAttribute:we,removeAttributeNS:ve,querySelector:Ne,querySelectorAll:Te,getBoundingClientRect:Oe,getElementsByTagName:Se,getElementsByTagNameNS:Le}=Element.prototype;let{addEventListener:Me,removeEventListener:_e}=Element.prototype;Me=Me.__lwcOriginal__||Me,_e=_e.__lwcOriginal__||_e;const Ce=d.call(Element.prototype,"innerHTML")?u(Element.prototype,"innerHTML").set:u(HTMLElement.prototype,"innerHTML").set,De=d.call(Element.prototype,"outerHTML")?u(Element.prototype,"outerHTML").set:u(HTMLElement.prototype,"outerHTML").set,Re=u(Element.prototype,"tagName").get,Ie=u(HTMLElement.prototype,"tabIndex").get,Pe=d.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,xe=d.call(Element.prototype,"children")?u(Element.prototype,"children").get:u(HTMLElement.prototype,"children").get,{getElementsByClassName:Ae}=HTMLElement.prototype,He=(void 0!==window.ShadowRoot&&u(window.ShadowRoot.prototype,"host").get,"EventTarget"in window?EventTarget.prototype.dispatchEvent:Node.prototype.dispatchEvent),$e=void 0!==window.ShadowRoot,Be=u(HTMLIFrameElement.prototype,"contentWindow").get,Fe=u(Event.prototype,"target").get,ke=u(Event.prototype,"currentTarget").get,We=u(FocusEvent.prototype,"relatedTarget").get;function je(e){const t=ue.call(e);return null===t?e:t}function Ue(e){const t=je(e),n=$.call(t);if(null===n)throw new TypeError;return n}function qe(e,t){const n=[];let l=e;const o=e instanceof Window?e:_n.call(e);for(;l;)n.push(l),l=l.assignedSlot?l.assignedSlot:l.nodeType===ee&&l.host&&(t||l!==o)?l.host:l.parentNode;let r;return r=e instanceof Window?e.document:je(e),n[n.length-1]===r&&n.push(window),n}function Ke(e,t){if(D(e))return null;const n=qe(e,!0),l=t;for(let e,t,o,r,c=0;c<l.length;c++)if((o=(e=l[c])instanceof Window?e:_n.call(e))!==t&&(r=n.indexOf(o),t=o),!(o instanceof Gt)||r>-1)return e;return null}let{addEventListener:Ge,removeEventListener:Ve}=window;function Xe(e){let t=null;try{if(!(t=e.$$lwcEventWrapper$$)){const n="function"==typeof e;t=e.$$lwcEventWrapper$$=function(t){return function(e){const t=Fe.call(e);if(t instanceof Node){const e=je(t);if(0!=(le.call(e,t)&z)&&Bn(t))return!0}return!1}(t)&&it(t),n?e.call(this,t):e.handleEvent&&e.handleEvent(t)}}}catch(e){}return t}function Ye(e,t,n){const l=typeof t;if("function"!==l&&"object"!==l)return;if("object"===l&&(!t.handleEvent||"function"!=typeof t.handleEvent))return;const o=Xe(t);Ge.call(this,e,o,n)}function ze(e,t,n){const l=Xe(t);Ve.call(this,e,l||t,n)}function Je(e,t,n){const l=typeof t;if("function"!==l&&"object"!==l)return;if("object"===l&&(!t.handleEvent||"function"!=typeof t.handleEvent))return;const o=Xe(t);Me.call(this,e,o,n)}function Qe(e,t,n){const l=Xe(t);_e.call(this,e,l||t,n)}Ge=Ge.__lwcOriginal__||Ge,Ve=Ve.__lwcOriginal__||Ve,Je.__lwcOriginal__=Me,Qe.__lwcOriginal__=_e,Ye.__lwcOriginal__=Ge,ze.__lwcOriginal__=Ve,window.addEventListener=Ye,window.removeEventListener=ze,Node.prototype.addEventListener=Je,Node.prototype.removeEventListener=Qe;const{addEventListener:Ze,removeEventListener:et}=Node.prototype;var tt;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=1]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=2]="SHADOW_ROOT_LISTENER"}(tt||(tt={}));const nt=new WeakMap;function lt(e,t){return!!(le.call(e,t)&z)}const ot={composed:!1};function rt(e,t){let n=_n.call(e,t);return"mode"in n&&"delegatesFocus"in n&&(n=jt(n)),n}function ct(){const e=ke.call(this),t=Fe.call(this),n=qe(t,this.composed);if(!(e instanceof Node)){return Ke(je(t),n)}return Ke(nt.get(this)===tt.SHADOW_ROOT_LISTENER?Ut(e):e,n)}function at(){return qe(Fe.call(this),this.composed)}function it(e){if(nt.has(e))return;f(e,{target:{get:ct,enumerable:!0,configurable:!0},composedPath:{value:at,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:ct,enumerable:!0,configurable:!0},path:{get:at,enumerable:!0,configurable:!0}});const t=x(e,"relatedTarget");if(!C(t)){const n=t.get;c(e,"relatedTarget",{get(){const e=nt.get(this),t=ke.call(this),l=n.call(this);return D(l)?null:Ke(e===tt.SHADOW_ROOT_LISTENER?Ut(t):t,qe(l,!0))},enumerable:!0,configurable:!0})}nt.set(e,0)}const ut=new WeakMap;function st(e){let t=ut.get(e);return C(t)&&(t=o(null),ut.set(e,t)),t}const ft=new WeakMap;function pt(e,t){if(!P(t))throw new TypeError;let n=ft.get(t);return C(n)&&((n=function(n){const{composed:l}=n,o=Fe.call(n),r=ke.call(n);if(o!==r){const c=rt(o,{composed:l});(lt(c,r)||!1===l&&c===r)&&t.call(e,n)}}).placement=tt.SHADOW_ROOT_LISTENER,ft.set(t,n)),n}const dt=new WeakMap;function ht(e,t){if(!P(t))throw new TypeError;let n=dt.get(t);return C(n)&&((n=function(n){(function(e){const t=Fe.call(e),n=ke.call(e),{composed:l}=e;return!0===l||t===n||lt(rt(t,ot),n)})(n)&&t.call(e,n)}).placement=tt.CUSTOM_ELEMENT_LISTENER,dt.set(t,n)),n}function gt(e){let t=!1,n=!1;const{type:l,stopImmediatePropagation:o,stopPropagation:r}=e,a=st(ke.call(e))[l];c(e,"stopImmediatePropagation",{value(){t=!0,o.call(e)},writable:!0,enumerable:!0,configurable:!0}),c(e,"stopPropagation",{value(){n=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0});const i=E.call(a);function u(n){L.call(i,l=>{I(t)&&l.placement===n&&-1!==N.call(a,l)&&l.call(void 0,e)})}nt.set(e,tt.SHADOW_ROOT_LISTENER),u(tt.SHADOW_ROOT_LISTENER),I(t)&&I(n)&&(nt.set(e,tt.CUSTOM_ELEMENT_LISTENER),u(tt.CUSTOM_ELEMENT_LISTENER)),nt.set(e,0)}function mt(e,t,n){const l=st(e);let o=l[t];C(o)&&(o=l[t]=[]),0===o.length&&Ze.call(e,t,gt),T.call(o,n)}function bt(e,t,n){let l,o;C(o=st(e)[t])||-1===(l=N.call(o,n))||(w.call(o,l,1),0===o.length&&et.call(e,t,gt))}const yt="Symbol(x)"===Symbol("x").toString();function Et(e){return yt?Symbol(e):`$$lwc-${e}$$`}function wt(e,t,n){c(e,t,{value:n})}function vt(e,t){return e[t]}function Nt(e){switch(e.nodeType){case Node.ELEMENT_NODE:{const t=An(e);let n="";for(let e=0,l=t.length;e<l;e+=1)n+=Nt(t[e]);return n}default:return e.nodeValue}}const Tt=Et("items");function Ot(){throw new TypeError("Illegal constructor")}function St(e){const t=o(Ot.prototype);return wt(t,Tt,e),L.call(e,(e,n)=>{c(t,n,{value:e,enumerable:!0,configurable:!0})}),t}Ot.prototype=o(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:Ot},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return vt(this,Tt).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(vt(this,Tt),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(vt(this,Tt),(e,t)=>[t,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(vt(this,Tt),(e,t)=>t)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return vt(this,Tt)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=vt(this,Tt);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}}}),i(Ot,NodeList);const Lt=Et("items");function Mt(){throw new TypeError("Illegal constructor")}function _t(e){const t=o(Mt.prototype);return wt(t,Lt,e),L.call(e,(e,n)=>{c(t,n,{value:e,enumerable:!0,configurable:!0})}),t}Mt.prototype=o(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Mt},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return vt(this,Lt).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(function(e){return"length"!==e&&isNaN(e)}(e)&&this[e])return this[e];const t=vt(this,Lt);for(let l=t.length-1;l>=0;l-=1){const o=t[l];if(((n=o).getAttribute("id")||n.getAttribute("name"))===e)return o}var n;return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(vt(this,Lt),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(vt(this,Lt),(e,t)=>[t,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(vt(this,Lt),(e,t)=>t)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return vt(this,Lt)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=vt(this,Lt);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}}}),i(Mt,HTMLCollection);const Ct=/[&\u00A0"]/g,Dt=/[&\u00A0<>]/g,{replace:Rt,toLowerCase:It}=String.prototype;function Pt(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function xt(e){return Rt.call(e,Ct,Pt)}const At=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Ht=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function $t(e){switch(e.nodeType){case Node.ELEMENT_NODE:{const{attributes:t}=e,n=Re.call(e);let l="<"+It.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+xt(e.value)+'"';return l+=">",At.has(n)?l:l+function(e){let t="";const n=An(e);for(let e=0,l=n.length;e<l;e+=1)t+=$t(n[e]);return t}(e)+"</"+It.call(n)+">"}case Node.TEXT_NODE:{const{data:n,parentNode:l}=e;return l instanceof Element&&Ht.has(Re.call(l))?n:(t=n,Rt.call(t,Dt,Pt))}case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw new Error}var t}const Bt=Et("shadowRecord"),{createDocumentFragment:Ft}=document;function kt(e){const t=vt(e,Bt);if(C(t))throw new TypeError;return t}function Wt(e){return kt(e).delegatesFocus}function jt(e){return kt(e).host}function Ut(e){return kt(e).shadowRoot}function qt(e){return!C(vt(e,Bt))}const Kt={constructor:{writable:!0,configurable:!0,value:Gt},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"}};function Gt(){throw new TypeError("Illegal constructor")}r(Kt,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return re.call(jt(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ce.call(jt(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return te.call(jt(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return ae.call(jt(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){mt(jt(e),t,pt(e,n))}(this,e,t)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){bt(jt(e),t,pt(e,n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return jt(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return St(In(this))}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=jt(this);return this===e?0:this.contains(e)?20:le.call(t,e)&z?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=jt(this);return 0!=(le.call(t,e)&z)&&Rn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return Kn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=Kn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return Kn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return he.call(jt(this))}},nextSibling:{enumerable:!0,configurable:!0,get:()=>null},previousSibling:{enumerable:!0,configurable:!0,get:()=>null},nodeName:{enumerable:!0,configurable:!0,get:()=>"#document-fragment"},nodeType:{enumerable:!0,configurable:!0,get:()=>11},nodeValue:{enumerable:!0,configurable:!0,get:()=>null},ownerDocument:{enumerable:!0,configurable:!0,get(){return jt(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=Kn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=Nt(e[n]);return t},set(e){const t=jt(this);fe.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=!C(e)&&!!e.composed;return I(t)?this:_n.call(jt(this),{composed:t})}}},{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return _t(b.call(In(this),e=>e instanceof Element))}},firstElementChild:{enumerable:!0,configurable:!0,get(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get(){const{children:e}=this;return e.item(e.length-1)||null}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=jt(e),l=Te.call(n,t);return xn(n,l)}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return St(function(e,t){const n=jt(e),l=Te.call(n,t);return Pn(n,l)}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=Kn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=$t(e[n]);return t},set(e){const t=jt(this);Ce.call(t,e)}}},{activeElement:{enumerable:!0,configurable:!0,get(){const e=jt(this),t=je(e),n=A.call(t);if(D(n))return n;if(0==(le.call(e,n)&z))return null;let l=n;for(;!Rn(e,l);)l=se.call(l);return Dn(l)?null:l}},delegatesFocus:{configurable:!0,get(){return kt(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){const n=je(jt(this)),l=H.call(n,e,t);return D(l)?l:Ke(this,qe(l,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){throw new Error}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error}},host:{enumerable:!0,configurable:!0,get(){return jt(this)}},mode:{configurable:!0,get(){return kt(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}}),Gt.prototype=o(DocumentFragment.prototype,Kt),$e&&i(Gt.prototype,window.ShadowRoot.prototype);let Vt=window.MutationObserver;if(void 0===Vt){function Xt(){}Xt.prototype={observe(){}},Vt=window.MutationObserver=Xt}const Yt=Vt,zt=Yt.prototype.observe,Jt='\n button:not([tabindex="-1"]):not([disabled]),\n [contenteditable]:not([tabindex="-1"]),\n video[controls]:not([tabindex="-1"]),\n audio[controls]:not([tabindex="-1"]),\n [href]:not([tabindex="-1"]),\n input:not([tabindex="-1"]):not([disabled]),\n select:not([tabindex="-1"]):not([disabled]),\n textarea:not([tabindex="-1"]):not([disabled]),\n [tabindex="0"]\n';function Qt(e){const{width:t,height:n}=Oe.call(e);return(t>0||n>0)&&"hidden"!==getComputedStyle(e).visibility}const Zt={IFRAME:1,VIDEO:1,AUDIO:1,A:1,INPUT:1,SELECT:1,TEXTAREA:1,BUTTON:1};function en(e){const t=Re.call(e);return Qt(e)&&(function(e){if(I(ge.call(e,"tabindex")))return!1;const t=me.call(e,"tabindex");return""!==t&&("0"===t||"-1"===t)}(e)||ge.call(e,"contenteditable")||d.call(Zt,t))}function tn(e){const t=je(e),n=q.call(t,Jt),l=E.call(Te.call(e,Jt)),o=l[0],r=l[l.length-1],c=N.call(n,e),a=c>-1?c:N.call(n,o),i=0===l.length?a+1:N.call(n,r)+1;return{prev:E.call(n,0,a),inner:l,next:E.call(n,i)}}function nn(e,t){const n=le.call(e,t);return n&z?0:n&Q?1:n&Z?2:-1}function ln(e){e.preventDefault(),e.stopPropagation()}function on(e,t){Ge.call(e,"focusin",ln,!0),Ge.call(e,"focusout",ln,!0),t(),Ve.call(e,"focusin",ln,!0),Ve.call(e,"focusout",ln,!0)}function rn(e,t,n){const l=Ue(n),o=function(e,t){const n=e.length;if(n>0)for(let l=0;l<n;l+=1){const n=e[l];if(un(_n.call(t),n))return n}return null}(e,n);D(o)?on(l,()=>{t.blur()}):on(l,()=>{o.focus()})}function cn(e){const t=ke.call(e),n=Fe.call(e);if(t!==n)return;const l=We.call(e);if(D(l))return;const o=tn(t);if(1===nn(t,l)){const e=un.bind(null,_n.call(t)),r=y.call(o.inner,e);if(C(r))rn(o.next,n,l);else{on(Ue(r),()=>{r.focus()})}}else t===n&&rn(_.call(o.prev),n,l)}function an(e){const t=We.call(e);if(D(t))return;const n=ke.call(e),l=tn(n);if(-1!==N.call(l.inner,t))return;const o=Fe.call(e),r=nn(n,t);1===r&&rn(l.next,o,t),2===r&&rn(_.call(l.prev),o,t)}function un(e,t){if(n=t,!Pe.call(n,Jt)||!Qt(n))return!1;var n;const l=je(t);let o=_n.call(t);for(;o!==l&&o!==e;){const e=o.host;if("-1"===me.call(e,"tabindex"))return!1;o=e&&_n.call(e)}return!0}function sn(e){const t=ke.call(e);_e.call(t,"focusin",an),setTimeout(()=>{D(t)||-1!==Ie.call(t)||Me.call(t,"focusin",an)},0)}function fn(e){const t=ke.call(e),n=We.call(e);(D(n)||0!==nn(t,n))&&(_e.call(t,"focusin",sn,!0),_e.call(t,"focusout",fn,!0))}function pn(e){if(function(e){const t=je(e);return e!==A.call(t)&&en(e)}(Fe.call(e))){const t=ke.call(e);Me.call(t,"focusin",sn,!0),Me.call(t,"focusout",fn,!0)}}function dn(e){_e.call(e,"focusin",cn,!0)}function hn(e){_e.call(e,"focusin",an),_e.call(e,"mousedown",pn,!0)}const gn=Node.prototype.getRootNode,mn=C(gn)?function(){let e,t=this;for(;!D(e=ie.call(t));)t=e;return t}:gn;function bn(e){return R(!C(e)&&!!e.composed)?mn.call(this,e):function(e){const t=Cn(e);return D(t)?mn.call(e):Ut(t)}(this)}function yn(e){let t=se.call(e);for(;!D(t)&&Dn(t);)e=t,t=se.call(e);return e}function En(e,t){const n=kn(e);let l=t instanceof Element?t:se.call(t);for(;!D(l)&&l!==e;){const t=Fn(l),o=se.call(l);if(t===n)return Dn(l);if(o===e)return!1;if(D(o)||Fn(o)===t)l=o;else{if(!Dn(o))return!1;if(!D(l=Cn(yn(o)))){if(l===e)return!0;if(Fn(l)===n)return!0}}}return!1}function wn(e,t){const n=Cn(e);if(D(n))return[];const l=Te.call(e,t);return kn(e)?function(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];!Rn(e,o)&&En(e,o)&&T.call(n,o)}return n}(e,l):Pn(n,l)}function vn(e,t){const n=Cn(e);if(D(n))return null;const l=Te.call(e,t);return kn(e)?function(e,t){for(let n=0,l=t.length;n<l;n+=1){const l=t[n];if(!Rn(e,l)&&En(e,l))return l}return null}(e,l):xn(n,l)}function Nn(e){const t=qn(e),{addEventListener:n,removeEventListener:l,blur:o}=e;return class extends t{querySelector(e){return vn(this,e)}querySelectorAll(e){return St(wn(this,e))}get innerHTML(){const e=Kn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=$t(e[n]);return t}set innerHTML(e){Ce.call(this,e)}get outerHTML(){return $t(this)}set outerHTML(e){De.call(this,e)}attachShadow(e){return function(e,t){if(!C(vt(e,Bt)))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");const{mode:n,delegatesFocus:l}=t,o=je(e),r=Ft.call(o),c={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};return wt(r,Bt,c),wt(e,Bt,c),i(r,Gt.prototype),r}(this,e)}addEventListener(e,t,l){qt(this)?function(e,t,n,l){mt(e,t,ht(e,n))}(this,e,t):n.call(this,e,t,l)}removeEventListener(e,t,n){qt(this)?function(e,t,n,l){bt(e,t,ht(e,n))}(this,e,t):l.call(this,e,t,n)}get shadowRoot(){if(qt(this)){const e=Ut(this);if("open"===e.mode)return e}return null}get tabIndex(){if(qt(this)&&Wt(this)&&I(ge.call(this,"tabindex")))return 0;return x(t.prototype,"tabIndex").get.call(this)}set tabIndex(e){if(qt(this)){const l=Wt(this),o=Ie.call(this),r=ge.call(this,"tabindex");x(t.prototype,"tabIndex").set.call(this,e);const c=Ie.call(this),a=ge.call(this,"tabindex"),i=o!==c;if(r&&(i||I(a))&&(-1===o&&hn(this),0===o&&l&&dn(this)),I(a))return;if(r&&a&&I(i))return;return-1===c&&(dn(n=this),Me.call(n,"mousedown",pn,!0),Me.call(n,"focusin",an)),void(0===c&&l&&function(e){hn(e),Me.call(e,"focusin",cn,!0)}(this))}var n;x(t.prototype,"tabIndex").set.call(this,e)}blur(){if(qt(this)&&Wt(this)){const e=function(e){const t=je(e),n=A.call(t);return D(n)?n:0!=(le.call(e,n)&z)?n:null}(this);if(!D(e))return void e.blur()}return o.call(this)}get childNodes(){if(qt(this)){const e=Cn(this);return St(D(e)?[]:Pn(e,An(this)))}return pe.call(this)}get children(){if(qt(this)){const e=Cn(this),t=D(e)?[]:Pn(e,An(this));return _t(b.call(t,e=>e instanceof Element))}return xe.call(this)}}}let Tn;c(Node.prototype,"getRootNode",{value:bn,enumerable:!0,configurable:!0,writable:!0});const On={childList:!0},Sn=Et("slotchange");function Ln(e){const t=Cn(e);if(D(t))return[];const n=E.call(pe.call(e));return M.call(n,(e,n)=>(Rn(t,n)||T.call(e,n),e),[])}function Mn(e){const t=E.call(pe.call(e));return M.call(t,(e,t)=>(t instanceof Element&&Dn(t)?T.apply(e,Mn(t)):T.call(e,t),e),[])}const{getRootNode:_n}=Node.prototype;function Cn(e){if(!(e instanceof Node))return null;const t=Fn(e);if(C(t))return null;let n=e;for(;!D(n)&&kn(n)!==t;)n=ie.call(n);return D(n)?null:n}function Dn(e){return"SLOT"===Re.call(e)}function Rn(e,t){const n=Fn(t);return C(n)||kn(e)===n}function In(e){const t=jt(e);return Pn(t,pe.call(t))}function Pn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];Rn(e,o)&&T.call(n,o)}return n}function xn(e,t){for(let n=0,l=t.length;n<l;n+=1)if(Rn(e,t[n]))return t[n];return null}function An(e){let t;if(C(kn(e)))t=pe.call(e);else{const n=Te.call(e,"slot");t=M.call(n,(t,n)=>(Rn(e,n)&&T.apply(t,Ln(n)),t),[])}const n=Cn(e);return D(n)?[]:M.call(t,(e,t)=>(Rn(n,t)&&T.call(e,t),e),[])}const Hn="$$OwnerKey$$",$n="$$OwnKey$$";Symbol("x").toString();function Bn(e){return e[Hn]}function Fn(e){let t,n=e;for(;!D(n);){if(!C(t=n[Hn]))return t;n=ie.call(n)}}function kn(e){return e[$n]}const Wn="$$ShadowTokenKey$$";function jn(e,t){C(t)||(ye.call(e,t,""),e[Wn]=t)}function Un(e,t){const n=Cn(e);if(t===n)return Ut(n);if(t instanceof Element){if(Fn(e)===Fn(t))return t;if(!D(n)&&Dn(t)){const e=Cn(t);if(!D(e)&&Rn(n,e))return e}}return null}function qn(e){const t=a(e).constructor;class n{constructor(){throw new TypeError("Illegal constructor")}hasChildNodes(){return Kn(this).length>0}get firstChild(){return Kn(this)[0]||null}get lastChild(){const e=Kn(this);return e[e.length-1]||null}get textContent(){return Nt(this)}set textContent(e){fe.call(this,e)}get childElementCount(){return this.children.length}get firstElementChild(){return this.children[0]||null}get lastElementChild(){const{children:e}=this;return e.item(e.length-1)||null}get assignedSlot(){const e=ie.call(this);return D(e)||!Dn(e)||Fn(e)===Fn(this)?null:e}get parentNode(){const e=ie.call(this);return D(e)?e:Un(this,e)}get parentElement(){const e=ie.call(this);if(D(e))return null;const t=Un(this,e);return t instanceof Element?t:null}compareDocumentPosition(e){return _n.call(this)===e?10:Bn(this)!==Bn(e)?35:le.call(this,e)}contains(e){return Bn(this)===Bn(e)&&0!=(le.call(this,e)&z)}cloneNode(e){const t=ne.call(this,!1);if(!e)return t;const n=Kn(this);for(let e=0,l=n.length;e<l;e+=1)t.appendChild(n[e].cloneNode(!0));return t}}return i(n,t),i(n.prototype,t.prototype),n}const Kn=function(e){return e.childNodes};let Gn,Vn;function Xn(){return C(Gn)&&(Gn="temporary-bypass"===document.body.getAttribute("data-global-patching-bypass")),R(Gn)}function Yn(){return C(Vn)&&(Vn="temporary-bypass"===document.body.getAttribute("data-global-patching-bypass")),R(Vn)}Document.prototype.elementFromPoint=function(e,t){const n=H.call(this,e,t);return D(n)?n:Ke(this,qe(n,!0))},c(document,"activeElement",{get(){let e=A.call(this);if(D(e))return e;for(;!C(Bn(e));)if(D(e=se.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),c(Document.prototype,"getElementById",{value(){const e=K.apply(this,E.call(arguments));if(D(e))return null;const t=Bn(this);return Bn(e)===t||Xn()?e:null},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelector",{value(){const e=q.apply(this,E.call(arguments)),t=Bn(this),n=y.call(e,e=>Bn(e)===t||Xn());return C(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelectorAll",{value(){const e=q.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t||Xn()))},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByClassName",{value(){const e=G.apply(this,E.call(arguments)),t=Bn(this);return _t(b.call(e,e=>Bn(e)===t||Xn()))},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagName",{value(){const e=V.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t)||Xn())},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagNameNS",{value(){const e=X.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t)||Xn())},writable:!0,enumerable:!0,configurable:!0}),c(u(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=Y.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t||Xn()))},writable:!0,enumerable:!0,configurable:!0}),function(){const e=HTMLBodyElement.prototype;c(e,"querySelector",{value(){const e=Te.apply(this,E.call(arguments)),t=Bn(this),n=y.call(e,e=>Bn(e)===t||Yn());return C(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),c(e,"querySelectorAll",{value(){const e=Te.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t||Yn()))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByClassName",{value(){const e=Ae.apply(this,E.call(arguments)),t=Bn(this);return _t(b.call(e,e=>Bn(e)===t||Yn()))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByTagName",{value(){const e=Se.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t||Yn()))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByTagNameNS",{value(){const e=Le.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t||Yn()))},writable:!0,enumerable:!0,configurable:!0})}(),void 0===window.ShadowRoot&&Object.defineProperty(window,"ShadowRoot",{value:Gt,configurable:!0,writable:!0});const zn=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const Jn=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Qn(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!zn)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",t=>e=t),t.click(),!zn.get.call(e)})()&&(HTMLElement.prototype.click=function(){Me.call(this,"click",Qn);try{Jn.value.call(this)}finally{_e.call(this,"click",Qn)}}),void 0===Object.getOwnPropertyDescriptor(Event.prototype,"composed")&&function(){const e=r(o(null),{blur:1,focus:1,focusin:1,focusout:1,click:1,dblclick:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,wheel:1,beforeinput:1,input:1,keydown:1,keyup:1,compositionstart:1,compositionupdate:1,compositionend:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,pointerover:1,pointerenter:1,pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerout:1,pointerleave:1,gotpointercapture:1,lostpointercapture:1,dragstart:1,drag:1,dragenter:1,dragleave:1,dragover:1,drop:1,dragend:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,keypress:1});Object.defineProperties(Event.prototype,{composed:{get(){const{type:t}=this;return 1===e[t]},configurable:!0,enumerable:!0}})}();const{CustomEvent:Zn}=window;function el(e,t){const n=new Zn(e,t);return Object.defineProperties(n,{composed:{get:()=>!(!t||!t.composed),configurable:!0,enumerable:!0}}),n}window.CustomEvent!==el&&(window.CustomEvent=el,window.CustomEvent.prototype=Zn.prototype),function(){const e=Object.getOwnPropertyDescriptor(Event.prototype,"composed").get;Object.defineProperties(FocusEvent.prototype,{composed:{get(){const{isTrusted:t}=this,n=e.call(this);return!(!t||!1!==n)||n},enumerable:!0,configurable:!0}})}();const tl=window.MutationObserver,{disconnect:nl,observe:ll,takeRecords:ol}=tl.prototype,rl="$$lwcObserverCallbackWrapper$$",cl="$$lwcNodeObservers$$";function al(e){const{addedNodes:t,removedNodes:n,target:l,type:r}=e,c=o(MutationRecord.prototype);return f(c,{addedNodes:{get:()=>t,enumerable:!0,configurable:!0},removedNodes:{get:()=>n,enumerable:!0,configurable:!0},type:{get:()=>r,enumerable:!0,configurable:!0},target:{get:()=>l.shadowRoot,enumerable:!0,configurable:!0}}),c}function il(e,t){let n=t;for(;!D(n);){const t=n[cl];if(!C(t)&&(t[0]===e||-1!==N.call(t,e)))return!0;n=n.parentNode}return!1}function ul(e,t){return M.call(e,(e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:c}=n;if("childList"!==c||C(kn(l)))il(t,l)&&T.call(e,n);else if(o.length>0){const r=o[0];il(t,r)&&(!l[cl]||l[cl][0]!==t&&-1===N.call(l[cl],t)?T.call(e,al(n)):T.call(e,n))}else{const o=l.shadowRoot,c=r[0];Fn(l)===Fn(c)&&il(t,l)?T.call(e,n):o&&o[cl]&&(o[cl][0]===t||-1!==N.call(o[cl],t))&&T.call(e,al(n))}return e},[])}function sl(e){const t=function(e){let t=e[rl];return C(t)&&(t=e[rl]=((t,n)=>{const l=ul(t,n);0!==l.length&&e.call(n,l,n)})),t}(e);return new tl(t)}sl.prototype=tl.prototype,sl.prototype.disconnect=function(){nl.call(this)},sl.prototype.observe=function(e,t){return C(e[cl])&&c(e,cl,{value:[]}),T.call(e[cl],this),e instanceof Gt&&(e=e.host),ll.call(this,e,t)},sl.prototype.takeRecords=function(){return ul(ol.call(this),this)},c(window,"MutationObserver",{value:sl,configurable:!0,writable:!0});const fl=window.MutationObserver,pl=fl.prototype.observe;let dl;const hl={childList:!0,subtree:!0};function gl(e,t,n){if(Bn(e)!==t&&(function(e,t){e[Hn]=t}(e,t),e instanceof Element)){jn(e,n);const l=Kn(e);for(let e=0,o=l.length;e<o;e+=1){gl(l[e],t,n)}}}function ml(){return new fl(e=>{L.call(e,e=>{const{target:t,addedNodes:n}=e,l=Bn(t),o=function(e){return e[Wn]}(t);if(!C(l))for(let e=0,t=n.length;e<t;e+=1){gl(n[e],l,o)}})})}e.PatchedElement=Nn,e.PatchedIframeElement=function(e){const t=Nn(e);return class extends t{get contentWindow(){const e=Be.call(this);return e?(t=e,{postMessage(){return t.postMessage.apply(t,arguments)},blur(){return t.blur.apply(t,arguments)},close(){return t.close.apply(t,arguments)},focus(){return t.focus.apply(t,arguments)},get closed(){return t.closed},get frames(){return t.frames},get length(){return t.length},get location(){return t.location},set location(e){t.location=e},get opener(){return t.opener},get parent(){return t.parent},get self(){return t.self},get top(){return t.top},get window(){return t.window}}):e;var t}}},e.PatchedNode=qn,e.PatchedSlotElement=function(e){const t=Nn(e),{addEventListener:n}=e;return class extends t{addEventListener(e,t,l){"slotchange"!==e||vt(this,Sn)||(wt(this,Sn,!0),Tn||(Tn=new Yt(e=>{const t=[];L.call(e,e=>{const{target:n}=e;-1===N.call(t,n)&&(T.call(t,n),He.call(n,new CustomEvent("slotchange")))})})),zt.call(Tn,this,On)),n.call(this,e,t,l)}assignedElements(e){const t=!C(e)&&R(e.flatten)?Mn(this):Ln(this);return b.call(t,e=>e instanceof Element)}assignedNodes(e){return!C(e)&&R(e.flatten)?Mn(this):Ln(this)}get name(){const e=me.call(this,"name");return D(e)?"":e}get childNodes(){const e=Cn(this);return St(D(e)?[]:Pn(e,An(this)))}get children(){const e=Cn(this),t=D(e)?[]:Pn(e,An(this));return _t(b.call(t,e=>e instanceof Element))}}},e.markElementAsPortal=function(e){C(dl)&&(dl=ml()),pl.call(dl,e,hl)},e.patchEvent=it,e.setCSSToken=jn,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).SyntheticShadow={})}(this,function(e){"use strict";var t=Object.create,n=Object.assign,r=Object.defineProperty,o=Object.getPrototypeOf,l=Object.setPrototypeOf,a=Object.getOwnPropertyDescriptor,i=Object.defineProperties,u=Object.hasOwnProperty,c=Array.prototype,f=c.filter,s=c.find,p=c.slice,d=c.splice,b=c.indexOf,h=c.push,v=c.map,g=c.forEach,m=c.reduce,y=c.reverse;function w(e){return void 0===e}function E(e){return null===e}function N(e){return!0===e}function O(e){return!1===e}function T(e){return"function"==typeof e}function S(e,t){do{var n=a(e,t);if(!w(n))return n;e=o(e)}while(null!==e)}var _=a(Document.prototype,"activeElement").get,L=u.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,M=Document.prototype,P=(M.createDocumentFragment,M.createElement,M.createElementNS,M.createTextNode,M.createComment,M.querySelector,M.querySelectorAll),C=M.getElementById,R=M.getElementsByClassName,D=M.getElementsByTagName,I=M.getElementsByTagNameNS,A=HTMLDocument.prototype.getElementsByName,j=Node.DOCUMENT_POSITION_CONTAINED_BY,x=(Node.DOCUMENT_POSITION_CONTAINS,Node.DOCUMENT_POSITION_PRECEDING),H=Node.DOCUMENT_POSITION_FOLLOWING,$=Node.DOCUMENT_FRAGMENT_NODE,B=Node.prototype,F=B.appendChild,k=B.cloneNode,W=B.compareDocumentPosition,U=(B.hasChildNodes,B.insertBefore),q=B.removeChild,K=B.replaceChild,G=a(Node.prototype,"parentNode").get,V=u.call(Node.prototype,"parentElement")?a(Node.prototype,"parentElement").get:a(HTMLElement.prototype,"parentElement").get,X=a(Node.prototype,"textContent").set,Y=u.call(Node.prototype,"childNodes")?a(Node.prototype,"childNodes").get:a(HTMLElement.prototype,"childNodes").get,z=a(Node.prototype,"nodeValue"),J=(z.set,z.get,u.call(Node.prototype,"isConnected")?a(Node.prototype,"isConnected").get:function(){return 0!=(W.call(document,this)&j)}),Q=Element.prototype,Z=Q.hasAttribute,ee=Q.getAttribute,te=(Q.getAttributeNS,Q.setAttribute),ne=(Q.setAttributeNS,Q.removeAttribute,Q.removeAttributeNS,Q.querySelector,Q.querySelectorAll),re=Q.getBoundingClientRect,oe=Q.getElementsByTagName,le=Q.getElementsByTagNameNS,ae=Element.prototype,ie=ae.addEventListener,ue=ae.removeEventListener;ie=ie.__lwcOriginal__||ie,ue=ue.__lwcOriginal__||ue;var ce=u.call(Element.prototype,"innerHTML")?a(Element.prototype,"innerHTML").set:a(HTMLElement.prototype,"innerHTML").set,fe=u.call(Element.prototype,"outerHTML")?a(Element.prototype,"outerHTML").set:a(HTMLElement.prototype,"outerHTML").set,se=a(Element.prototype,"tagName").get,pe=a(HTMLElement.prototype,"tabIndex").get,de=u.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,be=u.call(Element.prototype,"children")?a(Element.prototype,"children").get:a(HTMLElement.prototype,"children").get,he=HTMLElement.prototype.getElementsByClassName,ve=(void 0!==window.ShadowRoot&&a(window.ShadowRoot.prototype,"host").get,"EventTarget"in window?EventTarget.prototype.dispatchEvent:Node.prototype.dispatchEvent),ge=void 0!==window.ShadowRoot,me=a(HTMLIFrameElement.prototype,"contentWindow").get,ye=a(Event.prototype,"target").get,we=a(Event.prototype,"currentTarget").get,Ee=a(FocusEvent.prototype,"relatedTarget").get;function Ne(e,t){for(var n=[],r=e,o=e===window?window:hn.call(e);r;)n.push(r),r=r.assignedSlot?r.assignedSlot:r.nodeType===$&&r.host&&(t||r!==o)?r.host:r.parentNode;return n[n.length-1]===document&&n.push(window),n}function Oe(e,t){for(var n=Ne(e,!0),r=t,o=0,l=void 0,a=void 0,i=void 0,u=void 0;o<r.length;o++)if((i=(l=r[o])===window?window:hn.call(l))!==a&&(u=n.indexOf(i),a=i),!(i instanceof Mt)||u>-1)return l;return null}var Te=window.addEventListener,Se=window.removeEventListener;function _e(e){var t=null;try{if(!(t=e.$$lwcEventWrapper$$)){var n="function"==typeof e;t=e.$$lwcEventWrapper$$=function(t){return function(e){var t=ye.call(e);return!!(t instanceof Node&&0!=(W.call(document,t)&j)&&Sn(t))}(t)&&ke(t),n?e.call(this,t):e.handleEvent&&e.handleEvent(t)}}}catch(e){}return t}function Le(e,t,n){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=_e(t);Te.call(this,e,o,n)}}function Me(e,t,n){var r=_e(t);Se.call(this,e,r||t,n)}function Pe(e,t,n){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=_e(t);ie.call(this,e,o,n)}}function Ce(e,t,n){var r=_e(t);ue.call(this,e,r||t,n)}Te=Te.__lwcOriginal__||Te,Se=Se.__lwcOriginal__||Se,Pe.__lwcOriginal__=ie,Ce.__lwcOriginal__=ue,Le.__lwcOriginal__=Te,Me.__lwcOriginal__=Se,window.addEventListener=Le,window.removeEventListener=Me,Node.prototype.addEventListener=Pe,Node.prototype.removeEventListener=Ce;var Re,De=Node.prototype,Ie=De.addEventListener,Ae=De.removeEventListener;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=1]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=2]="SHADOW_ROOT_LISTENER"}(Re||(Re={}));var je=new WeakMap;function xe(e,t){return!!(W.call(e,t)&j)}var He={composed:!1};function $e(e,t){var n=hn.call(e,t);return"mode"in n&&"delegatesFocus"in n&&(n=Tt(n)),n}function Be(){var e=we.call(this),t=Ne(ye.call(this),this.composed);return e instanceof Node?Oe(je.get(this)===Re.SHADOW_ROOT_LISTENER?St(e):e,t):Oe(document,t)}function Fe(){return Ne(ye.call(this),this.composed)}function ke(e){if(!je.has(e)){i(e,{target:{get:Be,enumerable:!0,configurable:!0},composedPath:{value:Fe,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Be,enumerable:!0,configurable:!0},path:{get:Fe,enumerable:!0,configurable:!0}});var t=S(e,"relatedTarget");w(t)||r(e,"relatedTarget",{get:function(){var e=je.get(this),n=we.call(this),r=t.get.call(this);return E(r)?null:Oe(e===Re.SHADOW_ROOT_LISTENER?St(n):n,Ne(r,!0))},enumerable:!0,configurable:!0}),je.set(e,0)}}var We=new WeakMap;function Ue(e){var n=We.get(e);return w(n)&&(n=t(null),We.set(e,n)),n}var qe=new WeakMap;function Ke(e,t){if(!T(t))throw new TypeError;var n=qe.get(t);return w(n)&&((n=function(n){var r=n.composed,o=ye.call(n),l=we.call(n);if(o!==l){var a=$e(o,{composed:r});(xe(a,l)||!1===r&&a===l)&&t.call(e,n)}}).placement=Re.SHADOW_ROOT_LISTENER,qe.set(t,n)),n}var Ge=new WeakMap;function Ve(e,t){if(!T(t))throw new TypeError;var n=Ge.get(t);return w(n)&&((n=function(n){(function(e){var t=ye.call(e),n=we.call(e);return!0===e.composed||t===n||xe($e(t,He),n)})(n)&&t.call(e,n)}).placement=Re.CUSTOM_ELEMENT_LISTENER,Ge.set(t,n)),n}function Xe(e){var t=!1,n=!1,o=e.type,l=e.stopImmediatePropagation,a=e.stopPropagation,i=Ue(we.call(e))[o];r(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),r(e,"stopPropagation",{value:function(){n=!0,a.call(e)},writable:!0,enumerable:!0,configurable:!0});var u=p.call(i);function c(n){g.call(u,function(r){O(t)&&r.placement===n&&-1!==b.call(i,r)&&r.call(void 0,e)})}je.set(e,Re.SHADOW_ROOT_LISTENER),c(Re.SHADOW_ROOT_LISTENER),O(t)&&O(n)&&(je.set(e,Re.CUSTOM_ELEMENT_LISTENER),c(Re.CUSTOM_ELEMENT_LISTENER)),je.set(e,0)}function Ye(e,t,n){var r=Ue(e),o=r[t];w(o)&&(o=r[t]=[]),0===o.length&&Ie.call(e,t,Xe),h.call(o,n)}function ze(e,t,n){var r,o;w(o=Ue(e)[t])||-1===(r=b.call(o,n))||(d.call(o,r,1),0===o.length&&Ae.call(e,t,Xe))}var Je,Qe="Symbol(x)"===Symbol("x").toString();function Ze(e){return Qe?Symbol(e):"$$lwc-"+e+"$$"}function et(e,t,n){r(e,t,{value:n})}function tt(e,t){return e[t]}function nt(e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t=Nn(e),n="",r=0,o=t.length;r<o;r+=1)n+=nt(t[r]);return n;default:return e.nodeValue}}var rt,ot=Ze("items");function lt(){throw new TypeError("Illegal constructor")}function at(e){var n=t(lt.prototype);return et(n,ot,e),g.call(e,function(e,t){r(n,t,{value:e,enumerable:!0,configurable:!0})}),n}lt.prototype=t(NodeList.prototype,((Je={constructor:{writable:!0,configurable:!0,value:lt},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return tt(this,ot).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){g.call(tt(this,ot),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(tt(this,ot),function(e,t){return[t,e]})}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(tt(this,ot),function(e,t){return t})}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return tt(this,ot)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=tt(e,ot);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},Je)),l(lt,NodeList);var it=Ze("items");function ut(){throw new TypeError("Illegal constructor")}function ct(e){var n=t(ut.prototype);return et(n,it,e),g.call(e,function(e,t){r(n,t,{value:e,enumerable:!0,configurable:!0})}),n}ut.prototype=t(HTMLCollection.prototype,((rt={constructor:{writable:!0,configurable:!0,value:ut},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return tt(this,it).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(function(e){return"length"!==e&&isNaN(e)}(e)&&this[e])return this[e];for(var t,n=tt(this,it),r=n.length-1;r>=0;r-=1){var o=n[r];if(((t=o).getAttribute("id")||t.getAttribute("name"))===e)return o}return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){g.call(tt(this,it),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(tt(this,it),function(e,t){return[t,e]})}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(tt(this,it),function(e,t){return t})}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return tt(this,it)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=tt(e,it);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},rt)),l(ut,HTMLCollection);var ft=/[&\u00A0"]/g,st=/[&\u00A0<>]/g,pt=String.prototype,dt=pt.replace,bt=pt.toLowerCase;function ht(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function vt(e){return dt.call(e,ft,ht)}var gt=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),mt=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function yt(e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t=e.attributes,n=se.call(e),r="<"+bt.call(n),o=0,l=void 0;l=t[o];o++)r+=" "+l.name+'="'+vt(l.value)+'"';return r+=">",gt.has(n)?r:r+function(e){for(var t="",n=Nn(e),r=0,o=n.length;r<o;r+=1)t+=yt(n[r]);return t}(e)+"</"+bt.call(n)+">";case Node.TEXT_NODE:var a=e,i=a.data,u=a.parentNode;return u instanceof Element&&mt.has(se.call(u))?i:function(e){return dt.call(e,st,ht)}(i);case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw new Error}}var wt=Ze("shadowRecord"),Et=document.createDocumentFragment;function Nt(e){var t=tt(e,wt);if(w(t))throw new TypeError;return t}function Ot(e){return Nt(e).delegatesFocus}function Tt(e){return Nt(e).host}function St(e){return Nt(e).shadowRoot}function _t(e){return!w(tt(e,wt))}var Lt={constructor:{writable:!0,configurable:!0,value:Mt},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}}};function Mt(){throw new TypeError("Illegal constructor")}n(Lt,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return U.call(Tt(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return q.call(Tt(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return F.call(Tt(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return K.call(Tt(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){Ye(Tt(e),t,Ke(e,n))}(this,e,t)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){ze(Tt(e),t,Ke(e,n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return Tt(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return at(yn(this))}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=Tt(this);return this===e?0:this.contains(e)?20:W.call(t,e)&j?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=Tt(this);return 0!=(W.call(t,e)&j)&&mn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return In(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=In(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return In(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return J.call(Tt(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 Tt(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=In(this),t="",n=0,r=e.length;n<r;n+=1)t+=nt(e[n]);return t},set:function(e){var t=Tt(this);X.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=!w(e)&&!!e.composed;return O(t)?this:hn.call(Tt(this),{composed:t})}}},{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return ct(f.call(yn(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}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return t=e,n=Tt(this),r=ne.call(n,t),En(n,r);var t,n,r}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return at((t=e,n=Tt(this),r=ne.call(n,t),wn(n,r)));var t,n,r}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=In(this),t="",n=0,r=e.length;n<r;n+=1)t+=yt(e[n]);return t},set:function(e){var t=Tt(this);ce.call(t,e)}}},{activeElement:{enumerable:!0,configurable:!0,get:function(){var e=_.call(document);if(E(e))return e;var t=Tt(this);if(0==(W.call(t,e)&j))return null;for(var n=e;!mn(t,n);)n=V.call(n);return gn(n)?null:n}},delegatesFocus:{configurable:!0,get:function(){return Nt(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){var n=L.call(document,e,t);return E(n)?n:Oe(this,Ne(n,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){throw new Error}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error}},host:{enumerable:!0,configurable:!0,get:function(){return Tt(this)}},mode:{configurable:!0,get:function(){return Nt(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}}),Mt.prototype=t(DocumentFragment.prototype,Lt),ge&&l(Mt.prototype,window.ShadowRoot.prototype);var Pt=function(e,t){return(Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function Ct(e,t){function n(){this.constructor=e}Pt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Rt=window.MutationObserver;if(void 0===Rt){function Dt(){}Dt.prototype={observe:function(){}},Rt=window.MutationObserver=Dt}var It=Rt,At=It.prototype.observe,jt='\n button:not([tabindex="-1"]):not([disabled]),\n [contenteditable]:not([tabindex="-1"]),\n video[controls]:not([tabindex="-1"]),\n audio[controls]:not([tabindex="-1"]),\n [href]:not([tabindex="-1"]),\n input:not([tabindex="-1"]):not([disabled]),\n select:not([tabindex="-1"]):not([disabled]),\n textarea:not([tabindex="-1"]):not([disabled]),\n [tabindex="0"]\n';function xt(e){var t=re.call(e),n=t.width,r=t.height;return(n>0||r>0)&&"hidden"!==getComputedStyle(e).visibility}function Ht(e){return de.call(e,jt)&&xt(e)}var $t={IFRAME:1,VIDEO:1,AUDIO:1,A:1,INPUT:1,SELECT:1,TEXTAREA:1,BUTTON:1};function Bt(e){var t=se.call(e);return xt(e)&&(function(e){if(O(Z.call(e,"tabindex")))return!1;var t=ee.call(e,"tabindex");return""!==t&&("0"===t||"-1"===t)}(e)||Z.call(e,"contenteditable")||u.call($t,t))}function Ft(e){for(var t=0,n=e.length;t<n;t+=1){var r=e[t];if(Ht(r))return r}return null}function kt(e){var t=P.call(document,jt),n=p.call(ne.call(e,jt)),r=n[0],o=n[n.length-1],l=b.call(t,e),a=l>-1?l:b.call(t,r),i=0===n.length?a+1:b.call(t,o)+1;return{prev:p.call(t,0,a),inner:n,next:p.call(t,i)}}function Wt(e,t){var n=W.call(e,t);return n&j?0:n&x?1:n&H?2:-1}function Ut(e){e.preventDefault(),e.stopPropagation()}function qt(e){Te.call(window,"focusin",Ut,!0),Te.call(window,"focusout",Ut,!0),e(),Se.call(window,"focusin",Ut,!0),Se.call(window,"focusout",Ut,!0)}function Kt(e,t){qt(function(){var n=function(e){return Ft(e.next)}(t);E(n)?e.blur():n.focus()})}function Gt(e,t){qt(function(){var n=function(e){var t=e.prev;return Ft(y.call(t))}(t);E(n)?e.blur():n.focus()})}function Vt(e,t){return function(e){for(var t=e.length-1;t>=0;t-=1){var n=e[t];if(Ht(n))return n}return null}(t.inner)===e}function Xt(e){var t=we.call(e),n=ye.call(e);if(t===n){var r=Ee.call(e);if(!E(r)){var o=kt(t);if(1===Wt(t,r)){var l=Ft(o.inner);E(l)?Kt(n,o):qt(function(){l.focus()})}else t===n&&Gt(t,o)}}}function Yt(e){var t=we.call(e),n=ye.call(e),r=Ee.call(e),o=kt(t),l=function(e,t){return Ft(t.inner)===e}(n,o),a=Vt(n,o);if(!(O(l)&&O(a)||E(r)))switch(Wt(t,r)){case 1:l&&Kt(n,o);break;case 2:a&&Gt(n,o)}}function zt(e){var t=we.call(e);ue.call(t,"focusin",Yt),setTimeout(function(){E(t)||-1!==pe.call(t)||ie.call(t,"focusin",Yt)},0)}function Jt(e){var t=we.call(e),n=Ee.call(e);(E(n)||0!==Wt(t,n))&&(ue.call(t,"focusin",zt,!0),ue.call(t,"focusout",Jt,!0))}function Qt(e){if(function(e){return e!==_.call(document)&&Bt(e)}(ye.call(e))){var t=we.call(e);ie.call(t,"focusin",zt,!0),ie.call(t,"focusout",Jt,!0)}}function Zt(e){ue.call(e,"focusin",Xt,!0)}function en(e){ue.call(e,"focusin",Yt),ue.call(e,"mousedown",Qt,!0)}var tn,nn=Node.prototype.getRootNode,rn=w(nn)?function(){for(var e,t=this;!E(e=G.call(t));)t=e;return t}:nn;function on(e){var t,n;return N(!w(e)&&!!e.composed)?rn.call(this,e):E(n=vn(t=this))?rn.call(t):St(n)}function ln(e){for(var t=V.call(e);!E(t)&&gn(t);)e=t,t=V.call(e);return e}function an(e,t){for(var n=Ln(e),r=t instanceof Element?t:V.call(t);!E(r)&&r!==e;){var o=_n(r),l=V.call(r);if(o===n)return gn(r);if(l===e)return!1;if(E(l)||_n(l)===o)r=l;else{if(!gn(l))return!1;if(!E(r=vn(ln(l)))){if(r===e)return!0;if(_n(r)===n)return!0}}}return!1}function un(e,t){var n=vn(e);if(E(n))return[];var r=ne.call(e,t);return Ln(e)?function(e,t){for(var n=[],r=0,o=t.length;r<o;r+=1){var l=t[r];!mn(e,l)&&an(e,l)&&h.call(n,l)}return n}(e,r):wn(n,r)}function cn(e,t){var n=vn(e);if(E(n))return null;var r=ne.call(e,t);return Ln(e)?function(e,t){for(var n=0,r=t.length;n<r;n+=1){var o=t[n];if(!mn(e,o)&&an(e,o))return o}return null}(e,r):En(n,r)}function fn(e){var t=Rn(e),n=e.addEventListener,r=e.removeEventListener,o=e.blur;return function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return Ct(a,e),a.prototype.querySelector=function(e){return cn(this,e)},a.prototype.querySelectorAll=function(e){return at(un(this,e))},Object.defineProperty(a.prototype,"innerHTML",{get:function(){for(var e=In(this),t="",n=0,r=e.length;n<r;n+=1)t+=yt(e[n]);return t},set:function(e){ce.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"outerHTML",{get:function(){return yt(this)},set:function(e){fe.call(this,e)},enumerable:!0,configurable:!0}),a.prototype.attachShadow=function(e){return function(e,t){if(!w(tt(e,wt)))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,o=Et.call(document),a={mode:n,delegatesFocus:!!r,host:e,shadowRoot:o};return et(o,wt,a),et(e,wt,a),l(o,Mt.prototype),o}(this,e)},a.prototype.addEventListener=function(e,t,r){_t(this)?function(e,t,n,r){Ye(e,t,Ve(e,n))}(this,e,t):n.call(this,e,t,r)},a.prototype.removeEventListener=function(e,t,n){_t(this)?function(e,t,n,r){ze(e,t,Ve(e,n))}(this,e,t):r.call(this,e,t,n)},Object.defineProperty(a.prototype,"shadowRoot",{get:function(){if(_t(this)){var e=St(this);if("open"===e.mode)return e}return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tabIndex",{get:function(){return _t(this)&&Ot(this)&&O(Z.call(this,"tabindex"))?0:S(t.prototype,"tabIndex").get.call(this)},set:function(e){if(_t(this)){var n=Ot(this),r=pe.call(this),o=Z.call(this,"tabindex");S(t.prototype,"tabIndex").set.call(this,e);var l=pe.call(this),a=Z.call(this,"tabindex"),i=r!==l;if(o&&(i||O(a))&&(-1===r&&en(this),0===r&&n&&Zt(this)),O(a))return;if(o&&a&&O(i))return;return-1===l&&(Zt(u=this),ie.call(u,"mousedown",Qt,!0),ie.call(u,"focusin",Yt)),void(0===l&&n&&function(e){en(e),ie.call(e,"focusin",Xt,!0)}(this))}var u;S(t.prototype,"tabIndex").set.call(this,e)},enumerable:!0,configurable:!0}),a.prototype.blur=function(){if(_t(this)&&Ot(this)){var e=(t=this,E(n=_.call(document))?n:0!=(W.call(t,n)&j)?n:null);if(!E(e))return void e.blur()}var t,n;return o.call(this)},Object.defineProperty(a.prototype,"childNodes",{get:function(){if(_t(this)){var e=vn(this);return at(E(e)?[]:wn(e,Nn(this)))}return Y.call(this)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"children",{get:function(){if(_t(this)){var e=vn(this),t=E(e)?[]:wn(e,Nn(this));return ct(f.call(t,function(e){return e instanceof Element}))}return be.call(this)},enumerable:!0,configurable:!0}),a}(t)}r(Node.prototype,"getRootNode",{value:on,enumerable:!0,configurable:!0,writable:!0});var sn={childList:!0},pn=Ze("slotchange");function dn(e){var t=vn(e);if(E(t))return[];var n=p.call(Y.call(e));return m.call(n,function(e,n){return mn(t,n)||h.call(e,n),e},[])}function bn(e){var t=p.call(Y.call(e));return m.call(t,function(e,t){return t instanceof Element&&gn(t)?h.apply(e,bn(t)):h.call(e,t),e},[])}var hn=Node.prototype.getRootNode;function vn(e){if(!(e instanceof Node))return null;var t=_n(e);if(w(t))return null;for(var n=e;!E(n)&&Ln(n)!==t;)n=G.call(n);return E(n)?null:n}function gn(e){return"SLOT"===se.call(e)}function mn(e,t){var n=_n(t);return w(n)||Ln(e)===n}function yn(e){var t=Tt(e);return wn(t,Y.call(t))}function wn(e,t){for(var n=[],r=0,o=t.length;r<o;r+=1){var l=t[r];mn(e,l)&&h.call(n,l)}return n}function En(e,t){for(var n=0,r=t.length;n<r;n+=1)if(mn(e,t[n]))return t[n];return null}function Nn(e){var t;if(w(Ln(e)))t=Y.call(e);else{var n=ne.call(e,"slot");t=m.call(n,function(t,n){return mn(e,n)&&h.apply(t,dn(n)),t},[])}var r=vn(e);return E(r)?[]:m.call(t,function(e,t){return mn(r,t)&&h.call(e,t),e},[])}var On="$$OwnerKey$$",Tn="$$OwnKey$$";Symbol("x").toString();function Sn(e){return e[On]}function _n(e){for(var t,n=e;!E(n);){if(!w(t=n[On]))return t;n=G.call(n)}}function Ln(e){return e[Tn]}var Mn="$$ShadowTokenKey$$";function Pn(e,t){w(t)||(te.call(e,t,""),e[Mn]=t)}function Cn(e,t){var n=vn(e);if(t===n)return St(n);if(t instanceof Element){if(_n(e)===_n(t))return t;if(!E(n)&&gn(t)){var r=vn(t);if(!E(r)&&mn(n,r))return r}}return null}function Rn(e){var t=o(e).constructor,n=function(){function e(){throw new TypeError("Illegal constructor")}return e.prototype.hasChildNodes=function(){return In(this).length>0},Object.defineProperty(e.prototype,"firstChild",{get:function(){return In(this)[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){var e=In(this);return e[e.length-1]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{get:function(){return nt(this)},set:function(e){X.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.children[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){var e=this.children;return e.item(e.length-1)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"assignedSlot",{get:function(){var e=G.call(this);return E(e)||!gn(e)||_n(e)===_n(this)?null:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){var e=G.call(this);return E(e)?e:Cn(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){var e=G.call(this);if(E(e))return null;var t=Cn(this,e);return t instanceof Element?t:null},enumerable:!0,configurable:!0}),e.prototype.compareDocumentPosition=function(e){return hn.call(this)===e?10:Sn(this)!==Sn(e)?35:W.call(this,e)},e.prototype.contains=function(e){return Sn(this)===Sn(e)&&0!=(W.call(this,e)&j)},e.prototype.cloneNode=function(e){var t=k.call(this,!1);if(!e)return t;for(var n=In(this),r=0,o=n.length;r<o;r+=1)t.appendChild(n[r].cloneNode(!0));return t},e}();return l(n,t),l(n.prototype,t.prototype),n}var Dn,In=function(e){return e.childNodes};document.elementFromPoint=function(e,t){var n=L.call(document,e,t);return E(n)?n:Oe(document,Ne(n,!0))},r(document,"activeElement",{get:function(){var e=_.call(this);if(E(e))return e;for(;!w(Sn(e));)if(E(e=V.call(e)))return null;return"HTML"===e.tagName&&(e=document.body),e},enumerable:!0,configurable:!0}),r(Document.prototype,"getElementById",{value:function(){var e=C.apply(this,p.call(arguments));if(E(e))return null;var t=Sn(this);return Sn(e)===t?e:null},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"querySelector",{value:function(){var e=P.apply(this,p.call(arguments)),t=Sn(this),n=s.call(e,function(e){return Sn(e)===t});return w(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"querySelectorAll",{value:function(){var e=P.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByClassName",{value:function(){var e=R.apply(this,p.call(arguments)),t=Sn(this);return ct(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByTagName",{value:function(){var e=D.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=I.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(a(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=A.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),Dn=HTMLBodyElement.prototype,r(Dn,"querySelector",{value:function(){var e=ne.apply(this,p.call(arguments)),t=Sn(this),n=s.call(e,function(e){return Sn(e)===t});return w(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),r(Dn,"querySelectorAll",{value:function(){var e=ne.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(Dn,"getElementsByClassName",{value:function(){var e=he.apply(this,p.call(arguments)),t=Sn(this);return ct(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(Dn,"getElementsByTagName",{value:function(){var e=oe.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(Dn,"getElementsByTagNameNS",{value:function(){var e=le.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),void 0===window.ShadowRoot&&(window.ShadowRoot=Mt);var An=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var jn,xn=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Hn(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!An)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",function(t){return e=t}),t.click(),!An.get.call(e)})()&&(HTMLElement.prototype.click=function(){ie.call(this,"click",Hn);try{xn.value.call(this)}finally{ue.call(this,"click",Hn)}}),void 0===Object.getOwnPropertyDescriptor(Event.prototype,"composed")&&(jn=n(t(null),{blur:1,focus:1,focusin:1,focusout:1,click:1,dblclick:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,wheel:1,beforeinput:1,input:1,keydown:1,keyup:1,compositionstart:1,compositionupdate:1,compositionend:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,pointerover:1,pointerenter:1,pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerout:1,pointerleave:1,gotpointercapture:1,lostpointercapture:1,dragstart:1,drag:1,dragenter:1,dragleave:1,dragover:1,drop:1,dragend:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,keypress:1}),Object.defineProperties(Event.prototype,{composed:{get:function(){var e=this.type;return 1===jn[e]},configurable:!0,enumerable:!0}}));var $n,Bn=window.CustomEvent;function Fn(e,t){var n=new Bn(e,t);return Object.defineProperties(n,{composed:{get:function(){return!(!t||!t.composed)},configurable:!0,enumerable:!0}}),n}window.CustomEvent!==Fn&&(window.CustomEvent=Fn,window.CustomEvent.prototype=Bn.prototype),$n=Object.getOwnPropertyDescriptor(Event.prototype,"composed").get,Object.defineProperties(FocusEvent.prototype,{composed:{get:function(){var e=this.isTrusted,t=$n.call(this);return!(!e||!1!==t)||t},enumerable:!0,configurable:!0}});var kn=window.MutationObserver,Wn=kn.prototype,Un=Wn.disconnect,qn=Wn.observe,Kn=Wn.takeRecords,Gn="$$lwcObservedTargets$$",Vn="$$lwcObserverCallbackWrapper$$";function Xn(e,n){var r=n[Gn],o=[];return g.call(r,function(e){var t=e instanceof window.ShadowRoot?Ln(e.host):_n(e);h.call(o,t)}),m.call(e,function(e,n){var l=n.target,a=n.addedNodes,u=n.removedNodes;if("childList"!==n.type||w(Ln(l))){var c=l instanceof window.ShadowRoot?Ln(l.host):_n(l);-1!==b.call(o,c)&&h.call(e,n)}else{var f=_n(a.length>0?a[0]:u[0]);-1!==b.call(o,f)&&(-1!==r.indexOf(l)?h.call(e,n):h.call(e,function(e){var n=e.addedNodes,r=e.removedNodes,o=e.target,l=e.type,a=t(MutationRecord.prototype);return i(a,{addedNodes:{get:function(){return n},enumerable:!0,configurable:!0},removedNodes:{get:function(){return r},enumerable:!0,configurable:!0},type:{get:function(){return l},enumerable:!0,configurable:!0},target:{get:function(){return o.shadowRoot},enumerable:!0,configurable:!0}}),a}(n)))}return e},[])}function Yn(e){var t=function(e){var t=e[Vn];return w(t)&&(t=e[Vn]=function(t,n){var r=Xn(t,n);0!==r.length&&e.call(n,r,n)}),t}(e),n=new kn(t);return r(n,Gn,{value:[]}),n}function zn(){w(this[Gn])||(this[Gn].length=0),Un.call(this)}function Jn(e,t){return w(this[Gn])||h.call(this[Gn],e),e instanceof Mt&&(e=e.host),qn.call(this,e,t)}function Qn(){return Xn(Kn.call(this),this)}window.MutationObserver=Yn,window.MutationObserver.prototype=kn.prototype,window.MutationObserver.prototype.disconnect=zn,window.MutationObserver.prototype.observe=Jn,window.MutationObserver.prototype.takeRecords=Qn;var Zn,er=window.MutationObserver,tr=er.prototype.observe,nr={childList:!0,subtree:!0};function rr(e,t,n){if(Sn(e)!==t&&(function(e,t){e[On]=t}(e,t),e instanceof Element)){Pn(e,n);for(var r=In(e),o=0,l=r.length;o<l;o+=1){rr(r[o],t,n)}}}function or(){return new er(function(e){g.call(e,function(e){var t=e.target,n=e.addedNodes,r=Sn(t),o=function(e){return e[Mn]}(t);if(!w(r))for(var l=0,a=n.length;l<a;l+=1){rr(n[l],r,o)}})})}e.PatchedElement=fn,e.PatchedIframeElement=function(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ct(t,e),Object.defineProperty(t.prototype,"contentWindow",{get:function(){var e,t=me.call(this);return t?(e=t,{postMessage:function(){return e.postMessage.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)},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}}):t},enumerable:!0,configurable:!0}),t}(fn(e))},e.PatchedNode=Rn,e.PatchedSlotElement=function(e){var t=fn(e),n=e.addEventListener;return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ct(t,e),t.prototype.addEventListener=function(e,t,r){"slotchange"!==e||tt(this,pn)||(et(this,pn,!0),tn||(tn=new It(function(e){var t=[];g.call(e,function(e){var n=e.target;-1===b.call(t,n)&&(h.call(t,n),ve.call(n,new CustomEvent("slotchange")))})})),At.call(tn,this,sn)),n.call(this,e,t,r)},t.prototype.assignedElements=function(e){var t=!w(e)&&N(e.flatten)?bn(this):dn(this);return f.call(t,function(e){return e instanceof Element})},t.prototype.assignedNodes=function(e){return!w(e)&&N(e.flatten)?bn(this):dn(this)},Object.defineProperty(t.prototype,"name",{get:function(){var e=ee.call(this,"name");return E(e)?"":e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){var e=vn(this);return at(E(e)?[]:wn(e,Nn(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){var e=vn(this),t=E(e)?[]:wn(e,Nn(this));return ct(f.call(t,function(e){return e instanceof Element}))},enumerable:!0,configurable:!0}),t}(t)},e.markElementAsPortal=function(e){w(Zn)&&(Zn=or()),tr.call(Zn,e,nr)},e.patchEvent=ke,e.setCSSToken=Pn,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).SyntheticShadow={})}(this,function(e){"use strict";var t=Object.create,n=Object.assign,r=Object.defineProperty,o=Object.getPrototypeOf,l=Object.setPrototypeOf,a=Object.getOwnPropertyDescriptor,i=Object.defineProperties,u=Object.hasOwnProperty,c=Array.prototype,f=c.filter,s=c.find,p=c.slice,d=c.splice,b=c.indexOf,h=c.push,v=c.map,g=c.forEach,m=c.reduce,y=c.reverse;function E(e){return void 0===e}function w(e){return null===e}function N(e){return!0===e}function O(e){return!1===e}function T(e){return"function"==typeof e}function S(e,t){do{var n=a(e,t);if(!E(n))return n;e=o(e)}while(null!==e)}var _=a(Document.prototype,"activeElement").get,L=u.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,M=a(Document.prototype,"defaultView").get,P=Document.prototype,C=(P.createDocumentFragment,P.createElement,P.createElementNS,P.createTextNode,P.createComment,P.querySelector,P.querySelectorAll),D=P.getElementById,R=P.getElementsByClassName,I=P.getElementsByTagName,A=P.getElementsByTagNameNS,j=HTMLDocument.prototype.getElementsByName,x=Node.DOCUMENT_POSITION_CONTAINED_BY,H=(Node.DOCUMENT_POSITION_CONTAINS,Node.DOCUMENT_POSITION_PRECEDING),$=Node.DOCUMENT_POSITION_FOLLOWING,B=Node.DOCUMENT_FRAGMENT_NODE,F=Node.prototype,k=F.appendChild,W=F.cloneNode,U=F.compareDocumentPosition,q=(F.hasChildNodes,F.insertBefore),K=F.removeChild,G=F.replaceChild,V=a(Node.prototype,"parentNode").get,X=a(Node.prototype,"ownerDocument").get,Y=u.call(Node.prototype,"parentElement")?a(Node.prototype,"parentElement").get:a(HTMLElement.prototype,"parentElement").get,z=a(Node.prototype,"textContent").set,J=u.call(Node.prototype,"childNodes")?a(Node.prototype,"childNodes").get:a(HTMLElement.prototype,"childNodes").get,Q=a(Node.prototype,"nodeValue"),Z=(Q.set,Q.get,u.call(Node.prototype,"isConnected")?a(Node.prototype,"isConnected").get:function(){var e=X.call(this);return null===e||0!=(U.call(e,this)&x)}),ee=Element.prototype,te=ee.hasAttribute,ne=ee.getAttribute,re=(ee.getAttributeNS,ee.setAttribute),oe=(ee.setAttributeNS,ee.removeAttribute,ee.removeAttributeNS,ee.querySelector,ee.querySelectorAll),le=ee.getBoundingClientRect,ae=ee.getElementsByTagName,ie=ee.getElementsByTagNameNS,ue=Element.prototype,ce=ue.addEventListener,fe=ue.removeEventListener;ce=ce.__lwcOriginal__||ce,fe=fe.__lwcOriginal__||fe;var se=u.call(Element.prototype,"innerHTML")?a(Element.prototype,"innerHTML").set:a(HTMLElement.prototype,"innerHTML").set,pe=u.call(Element.prototype,"outerHTML")?a(Element.prototype,"outerHTML").set:a(HTMLElement.prototype,"outerHTML").set,de=a(Element.prototype,"tagName").get,be=a(HTMLElement.prototype,"tabIndex").get,he=u.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,ve=u.call(Element.prototype,"children")?a(Element.prototype,"children").get:a(HTMLElement.prototype,"children").get,ge=HTMLElement.prototype.getElementsByClassName,me=(void 0!==window.ShadowRoot&&a(window.ShadowRoot.prototype,"host").get,"EventTarget"in window?EventTarget.prototype.dispatchEvent:Node.prototype.dispatchEvent),ye=void 0!==window.ShadowRoot,Ee=a(HTMLIFrameElement.prototype,"contentWindow").get,we=a(Event.prototype,"target").get,Ne=a(Event.prototype,"currentTarget").get,Oe=a(FocusEvent.prototype,"relatedTarget").get;function Te(e){var t=X.call(e);return null===t?e:t}function Se(e){var t=Te(e),n=M.call(t);if(null===n)throw new TypeError;return n}function _e(e,t){for(var n,r=[],o=e,l=e instanceof Window?e:vn.call(e);o;)r.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===B&&o.host&&(t||o!==l)?o.host:o.parentNode;return n=e instanceof Window?e.document:Te(e),r[r.length-1]===n&&r.push(window),r}function Le(e,t){if(w(e))return null;for(var n=_e(e,!0),r=t,o=0,l=void 0,a=void 0,i=void 0,u=void 0;o<r.length;o++)if((i=(l=r[o])instanceof Window?l:vn.call(l))!==a&&(u=n.indexOf(i),a=i),!(i instanceof Rt)||u>-1)return l;return null}var Me=window.addEventListener,Pe=window.removeEventListener;function Ce(e){var t=null;try{if(!(t=e.$$lwcEventWrapper$$)){var n="function"==typeof e;t=e.$$lwcEventWrapper$$=function(t){return function(e){var t=we.call(e);if(t instanceof Node){var n=Te(t);if(0!=(U.call(n,t)&x)&&_n(t))return!0}return!1}(t)&&Ke(t),n?e.call(this,t):e.handleEvent&&e.handleEvent(t)}}}catch(e){}return t}function De(e,t,n){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=Ce(t);Me.call(this,e,o,n)}}function Re(e,t,n){var r=Ce(t);Pe.call(this,e,r||t,n)}function Ie(e,t,n){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=Ce(t);ce.call(this,e,o,n)}}function Ae(e,t,n){var r=Ce(t);fe.call(this,e,r||t,n)}Me=Me.__lwcOriginal__||Me,Pe=Pe.__lwcOriginal__||Pe,Ie.__lwcOriginal__=ce,Ae.__lwcOriginal__=fe,De.__lwcOriginal__=Me,Re.__lwcOriginal__=Pe,window.addEventListener=De,window.removeEventListener=Re,Node.prototype.addEventListener=Ie,Node.prototype.removeEventListener=Ae;var je,xe=Node.prototype,He=xe.addEventListener,$e=xe.removeEventListener;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=1]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=2]="SHADOW_ROOT_LISTENER"}(je||(je={}));var Be=new WeakMap;function Fe(e,t){return!!(U.call(e,t)&x)}var ke={composed:!1};function We(e,t){var n=vn.call(e,t);return"mode"in n&&"delegatesFocus"in n&&(n=Mt(n)),n}function Ue(){var e=Ne.call(this),t=we.call(this),n=_e(t,this.composed);return e instanceof Node?Le(Be.get(this)===je.SHADOW_ROOT_LISTENER?Pt(e):e,n):Le(Te(t),n)}function qe(){return _e(we.call(this),this.composed)}function Ke(e){if(!Be.has(e)){i(e,{target:{get:Ue,enumerable:!0,configurable:!0},composedPath:{value:qe,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Ue,enumerable:!0,configurable:!0},path:{get:qe,enumerable:!0,configurable:!0}});var t=S(e,"relatedTarget");if(!E(t)){var n=t.get;r(e,"relatedTarget",{get:function(){var e=Be.get(this),t=Ne.call(this),r=n.call(this);return w(r)?null:Le(e===je.SHADOW_ROOT_LISTENER?Pt(t):t,_e(r,!0))},enumerable:!0,configurable:!0})}Be.set(e,0)}}var Ge=new WeakMap;function Ve(e){var n=Ge.get(e);return E(n)&&(n=t(null),Ge.set(e,n)),n}var Xe=new WeakMap;function Ye(e,t){if(!T(t))throw new TypeError;var n=Xe.get(t);return E(n)&&((n=function(n){var r=n.composed,o=we.call(n),l=Ne.call(n);if(o!==l){var a=We(o,{composed:r});(Fe(a,l)||!1===r&&a===l)&&t.call(e,n)}}).placement=je.SHADOW_ROOT_LISTENER,Xe.set(t,n)),n}var ze=new WeakMap;function Je(e,t){if(!T(t))throw new TypeError;var n=ze.get(t);return E(n)&&((n=function(n){(function(e){var t=we.call(e),n=Ne.call(e);return!0===e.composed||t===n||Fe(We(t,ke),n)})(n)&&t.call(e,n)}).placement=je.CUSTOM_ELEMENT_LISTENER,ze.set(t,n)),n}function Qe(e){var t=!1,n=!1,o=e.type,l=e.stopImmediatePropagation,a=e.stopPropagation,i=Ve(Ne.call(e))[o];r(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),r(e,"stopPropagation",{value:function(){n=!0,a.call(e)},writable:!0,enumerable:!0,configurable:!0});var u=p.call(i);function c(n){g.call(u,function(r){O(t)&&r.placement===n&&-1!==b.call(i,r)&&r.call(void 0,e)})}Be.set(e,je.SHADOW_ROOT_LISTENER),c(je.SHADOW_ROOT_LISTENER),O(t)&&O(n)&&(Be.set(e,je.CUSTOM_ELEMENT_LISTENER),c(je.CUSTOM_ELEMENT_LISTENER)),Be.set(e,0)}function Ze(e,t,n){var r=Ve(e),o=r[t];E(o)&&(o=r[t]=[]),0===o.length&&He.call(e,t,Qe),h.call(o,n)}function et(e,t,n){var r,o;E(o=Ve(e)[t])||-1===(r=b.call(o,n))||(d.call(o,r,1),0===o.length&&$e.call(e,t,Qe))}var tt,nt="Symbol(x)"===Symbol("x").toString();function rt(e){return nt?Symbol(e):"$$lwc-"+e+"$$"}function ot(e,t,n){r(e,t,{value:n})}function lt(e,t){return e[t]}function at(e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t=On(e),n="",r=0,o=t.length;r<o;r+=1)n+=at(t[r]);return n;default:return e.nodeValue}}var it,ut=rt("items");function ct(){throw new TypeError("Illegal constructor")}function ft(e){var n=t(ct.prototype);return ot(n,ut,e),g.call(e,function(e,t){r(n,t,{value:e,enumerable:!0,configurable:!0})}),n}ct.prototype=t(NodeList.prototype,((tt={constructor:{writable:!0,configurable:!0,value:ct},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return lt(this,ut).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){g.call(lt(this,ut),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(lt(this,ut),function(e,t){return[t,e]})}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(lt(this,ut),function(e,t){return t})}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return lt(this,ut)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=lt(e,ut);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},tt)),l(ct,NodeList);var st=rt("items");function pt(){throw new TypeError("Illegal constructor")}function dt(e){var n=t(pt.prototype);return ot(n,st,e),g.call(e,function(e,t){r(n,t,{value:e,enumerable:!0,configurable:!0})}),n}pt.prototype=t(HTMLCollection.prototype,((it={constructor:{writable:!0,configurable:!0,value:pt},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return lt(this,st).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(function(e){return"length"!==e&&isNaN(e)}(e)&&this[e])return this[e];for(var t,n=lt(this,st),r=n.length-1;r>=0;r-=1){var o=n[r];if(((t=o).getAttribute("id")||t.getAttribute("name"))===e)return o}return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){g.call(lt(this,st),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(lt(this,st),function(e,t){return[t,e]})}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(lt(this,st),function(e,t){return t})}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return lt(this,st)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=lt(e,st);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},it)),l(pt,HTMLCollection);var bt=/[&\u00A0"]/g,ht=/[&\u00A0<>]/g,vt=String.prototype,gt=vt.replace,mt=vt.toLowerCase;function yt(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function Et(e){return gt.call(e,bt,yt)}var wt=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Nt=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Ot(e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t=e.attributes,n=de.call(e),r="<"+mt.call(n),o=0,l=void 0;l=t[o];o++)r+=" "+l.name+'="'+Et(l.value)+'"';return r+=">",wt.has(n)?r:r+function(e){for(var t="",n=On(e),r=0,o=n.length;r<o;r+=1)t+=Ot(n[r]);return t}(e)+"</"+mt.call(n)+">";case Node.TEXT_NODE:var a=e,i=a.data,u=a.parentNode;return u instanceof Element&&Nt.has(de.call(u))?i:function(e){return gt.call(e,ht,yt)}(i);case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw new Error}}var Tt=rt("shadowRecord"),St=document.createDocumentFragment;function _t(e){var t=lt(e,Tt);if(E(t))throw new TypeError;return t}function Lt(e){return _t(e).delegatesFocus}function Mt(e){return _t(e).host}function Pt(e){return _t(e).shadowRoot}function Ct(e){return!E(lt(e,Tt))}var Dt={constructor:{writable:!0,configurable:!0,value:Rt},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}}};function Rt(){throw new TypeError("Illegal constructor")}n(Dt,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return q.call(Mt(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return K.call(Mt(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return k.call(Mt(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return G.call(Mt(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){Ze(Mt(e),t,Ye(e,n))}(this,e,t)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){et(Mt(e),t,Ye(e,n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return Mt(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return ft(En(this))}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=Mt(this);return this===e?0:this.contains(e)?20:U.call(t,e)&x?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=Mt(this);return 0!=(U.call(t,e)&x)&&yn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return xn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=xn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return xn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return Z.call(Mt(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 Mt(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=xn(this),t="",n=0,r=e.length;n<r;n+=1)t+=at(e[n]);return t},set:function(e){var t=Mt(this);z.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=!E(e)&&!!e.composed;return O(t)?this:vn.call(Mt(this),{composed:t})}}},{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return dt(f.call(En(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}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return t=e,n=Mt(this),r=oe.call(n,t),Nn(n,r);var t,n,r}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return ft((t=e,n=Mt(this),r=oe.call(n,t),wn(n,r)));var t,n,r}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=xn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Ot(e[n]);return t},set:function(e){var t=Mt(this);se.call(t,e)}}},{activeElement:{enumerable:!0,configurable:!0,get:function(){var e=Mt(this),t=Te(e),n=_.call(t);if(w(n))return n;if(0==(U.call(e,n)&x))return null;for(var r=n;!yn(e,r);)r=Y.call(r);return mn(r)?null:r}},delegatesFocus:{configurable:!0,get:function(){return _t(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){var n=Te(Mt(this)),r=L.call(n,e,t);return w(r)?r:Le(this,_e(r,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){throw new Error}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error}},host:{enumerable:!0,configurable:!0,get:function(){return Mt(this)}},mode:{configurable:!0,get:function(){return _t(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}}),Rt.prototype=t(DocumentFragment.prototype,Dt),ye&&l(Rt.prototype,window.ShadowRoot.prototype);var It=function(e,t){return(It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function At(e,t){function n(){this.constructor=e}It(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var jt=window.MutationObserver;if(void 0===jt){function xt(){}xt.prototype={observe:function(){}},jt=window.MutationObserver=xt}var Ht=jt,$t=Ht.prototype.observe,Bt='\n button:not([tabindex="-1"]):not([disabled]),\n [contenteditable]:not([tabindex="-1"]),\n video[controls]:not([tabindex="-1"]),\n audio[controls]:not([tabindex="-1"]),\n [href]:not([tabindex="-1"]),\n input:not([tabindex="-1"]):not([disabled]),\n select:not([tabindex="-1"]):not([disabled]),\n textarea:not([tabindex="-1"]):not([disabled]),\n [tabindex="0"]\n';function Ft(e){var t=le.call(e),n=t.width,r=t.height;return(n>0||r>0)&&"hidden"!==getComputedStyle(e).visibility}var kt={IFRAME:1,VIDEO:1,AUDIO:1,A:1,INPUT:1,SELECT:1,TEXTAREA:1,BUTTON:1};function Wt(e){var t=de.call(e);return Ft(e)&&(function(e){if(O(te.call(e,"tabindex")))return!1;var t=ne.call(e,"tabindex");return""!==t&&("0"===t||"-1"===t)}(e)||te.call(e,"contenteditable")||u.call(kt,t))}function Ut(e){var t=Te(e),n=C.call(t,Bt),r=p.call(oe.call(e,Bt)),o=r[0],l=r[r.length-1],a=b.call(n,e),i=a>-1?a:b.call(n,o),u=0===r.length?i+1:b.call(n,l)+1;return{prev:p.call(n,0,i),inner:r,next:p.call(n,u)}}function qt(e,t){var n=U.call(e,t);return n&x?0:n&H?1:n&$?2:-1}function Kt(e){e.preventDefault(),e.stopPropagation()}function Gt(e,t){Me.call(e,"focusin",Kt,!0),Me.call(e,"focusout",Kt,!0),t(),Pe.call(e,"focusin",Kt,!0),Pe.call(e,"focusout",Kt,!0)}function Vt(e,t,n){var r=Se(n),o=function(e,t){var n=e.length;if(n>0)for(var r=0;r<n;r+=1){var o=e[r];if(zt(vn.call(t),o))return o}return null}(e,n);w(o)?Gt(r,function(){t.blur()}):Gt(r,function(){o.focus()})}function Xt(e){var t=Ne.call(e),n=we.call(e);if(t===n){var r=Oe.call(e);if(!w(r)){var o=Ut(t);if(1===qt(t,r)){var l=zt.bind(null,vn.call(t)),a=s.call(o.inner,l);if(E(a))Vt(o.next,n,r);else Gt(Se(a),function(){a.focus()})}else t===n&&Vt(y.call(o.prev),n,r)}}}function Yt(e){var t=Oe.call(e);if(!w(t)){var n=Ne.call(e),r=Ut(n);if(-1===b.call(r.inner,t)){var o=we.call(e),l=qt(n,t);1===l&&Vt(r.next,o,t),2===l&&Vt(y.call(r.prev),o,t)}}}function zt(e,t){if(n=t,!he.call(n,Bt)||!Ft(n))return!1;for(var n,r=Te(t),o=vn.call(t);o!==r&&o!==e;){var l=o.host;if("-1"===ne.call(l,"tabindex"))return!1;o=l&&vn.call(l)}return!0}function Jt(e){var t=Ne.call(e);fe.call(t,"focusin",Yt),setTimeout(function(){w(t)||-1!==be.call(t)||ce.call(t,"focusin",Yt)},0)}function Qt(e){var t=Ne.call(e),n=Oe.call(e);(w(n)||0!==qt(t,n))&&(fe.call(t,"focusin",Jt,!0),fe.call(t,"focusout",Qt,!0))}function Zt(e){if(function(e){var t=Te(e);return e!==_.call(t)&&Wt(e)}(we.call(e))){var t=Ne.call(e);ce.call(t,"focusin",Jt,!0),ce.call(t,"focusout",Qt,!0)}}function en(e){fe.call(e,"focusin",Xt,!0)}function tn(e){fe.call(e,"focusin",Yt),fe.call(e,"mousedown",Zt,!0)}var nn,rn=Node.prototype.getRootNode,on=E(rn)?function(){for(var e,t=this;!w(e=V.call(t));)t=e;return t}:rn;function ln(e){var t,n;return N(!E(e)&&!!e.composed)?on.call(this,e):w(n=gn(t=this))?on.call(t):Pt(n)}function an(e){for(var t=Y.call(e);!w(t)&&mn(t);)e=t,t=Y.call(e);return e}function un(e,t){for(var n=Mn(e),r=t instanceof Element?t:Y.call(t);!w(r)&&r!==e;){var o=Ln(r),l=Y.call(r);if(o===n)return mn(r);if(l===e)return!1;if(w(l)||Ln(l)===o)r=l;else{if(!mn(l))return!1;if(!w(r=gn(an(l)))){if(r===e)return!0;if(Ln(r)===n)return!0}}}return!1}function cn(e,t){var n=gn(e);if(w(n))return[];var r=oe.call(e,t);return Mn(e)?function(e,t){for(var n=[],r=0,o=t.length;r<o;r+=1){var l=t[r];!yn(e,l)&&un(e,l)&&h.call(n,l)}return n}(e,r):wn(n,r)}function fn(e,t){var n=gn(e);if(w(n))return null;var r=oe.call(e,t);return Mn(e)?function(e,t){for(var n=0,r=t.length;n<r;n+=1){var o=t[n];if(!yn(e,o)&&un(e,o))return o}return null}(e,r):Nn(n,r)}function sn(e){var t=Rn(e),n=e.addEventListener,r=e.removeEventListener,o=e.blur;return function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return At(a,e),a.prototype.querySelector=function(e){return fn(this,e)},a.prototype.querySelectorAll=function(e){return ft(cn(this,e))},Object.defineProperty(a.prototype,"innerHTML",{get:function(){for(var e=xn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Ot(e[n]);return t},set:function(e){se.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"outerHTML",{get:function(){return Ot(this)},set:function(e){pe.call(this,e)},enumerable:!0,configurable:!0}),a.prototype.attachShadow=function(e){return function(e,t){if(!E(lt(e,Tt)))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,o=Te(e),a=St.call(o),i={mode:n,delegatesFocus:!!r,host:e,shadowRoot:a};return ot(a,Tt,i),ot(e,Tt,i),l(a,Rt.prototype),a}(this,e)},a.prototype.addEventListener=function(e,t,r){Ct(this)?function(e,t,n,r){Ze(e,t,Je(e,n))}(this,e,t):n.call(this,e,t,r)},a.prototype.removeEventListener=function(e,t,n){Ct(this)?function(e,t,n,r){et(e,t,Je(e,n))}(this,e,t):r.call(this,e,t,n)},Object.defineProperty(a.prototype,"shadowRoot",{get:function(){if(Ct(this)){var e=Pt(this);if("open"===e.mode)return e}return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tabIndex",{get:function(){return Ct(this)&&Lt(this)&&O(te.call(this,"tabindex"))?0:S(t.prototype,"tabIndex").get.call(this)},set:function(e){if(Ct(this)){var n=Lt(this),r=be.call(this),o=te.call(this,"tabindex");S(t.prototype,"tabIndex").set.call(this,e);var l=be.call(this),a=te.call(this,"tabindex"),i=r!==l;if(o&&(i||O(a))&&(-1===r&&tn(this),0===r&&n&&en(this)),O(a))return;if(o&&a&&O(i))return;return-1===l&&(en(u=this),ce.call(u,"mousedown",Zt,!0),ce.call(u,"focusin",Yt)),void(0===l&&n&&function(e){tn(e),ce.call(e,"focusin",Xt,!0)}(this))}var u;S(t.prototype,"tabIndex").set.call(this,e)},enumerable:!0,configurable:!0}),a.prototype.blur=function(){if(Ct(this)&&Lt(this)){var e=(n=Te(t=this),w(r=_.call(n))?r:0!=(U.call(t,r)&x)?r:null);if(!w(e))return void e.blur()}var t,n,r;return o.call(this)},Object.defineProperty(a.prototype,"childNodes",{get:function(){if(Ct(this)){var e=gn(this);return ft(w(e)?[]:wn(e,On(this)))}return J.call(this)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"children",{get:function(){if(Ct(this)){var e=gn(this),t=w(e)?[]:wn(e,On(this));return dt(f.call(t,function(e){return e instanceof Element}))}return ve.call(this)},enumerable:!0,configurable:!0}),a}(t)}r(Node.prototype,"getRootNode",{value:ln,enumerable:!0,configurable:!0,writable:!0});var pn={childList:!0},dn=rt("slotchange");function bn(e){var t=gn(e);if(w(t))return[];var n=p.call(J.call(e));return m.call(n,function(e,n){return yn(t,n)||h.call(e,n),e},[])}function hn(e){var t=p.call(J.call(e));return m.call(t,function(e,t){return t instanceof Element&&mn(t)?h.apply(e,hn(t)):h.call(e,t),e},[])}var vn=Node.prototype.getRootNode;function gn(e){if(!(e instanceof Node))return null;var t=Ln(e);if(E(t))return null;for(var n=e;!w(n)&&Mn(n)!==t;)n=V.call(n);return w(n)?null:n}function mn(e){return"SLOT"===de.call(e)}function yn(e,t){var n=Ln(t);return E(n)||Mn(e)===n}function En(e){var t=Mt(e);return wn(t,J.call(t))}function wn(e,t){for(var n=[],r=0,o=t.length;r<o;r+=1){var l=t[r];yn(e,l)&&h.call(n,l)}return n}function Nn(e,t){for(var n=0,r=t.length;n<r;n+=1)if(yn(e,t[n]))return t[n];return null}function On(e){var t;if(E(Mn(e)))t=J.call(e);else{var n=oe.call(e,"slot");t=m.call(n,function(t,n){return yn(e,n)&&h.apply(t,bn(n)),t},[])}var r=gn(e);return w(r)?[]:m.call(t,function(e,t){return yn(r,t)&&h.call(e,t),e},[])}var Tn="$$OwnerKey$$",Sn="$$OwnKey$$";Symbol("x").toString();function _n(e){return e[Tn]}function Ln(e){for(var t,n=e;!w(n);){if(!E(t=n[Tn]))return t;n=V.call(n)}}function Mn(e){return e[Sn]}var Pn="$$ShadowTokenKey$$";function Cn(e,t){E(t)||(re.call(e,t,""),e[Pn]=t)}function Dn(e,t){var n=gn(e);if(t===n)return Pt(n);if(t instanceof Element){if(Ln(e)===Ln(t))return t;if(!w(n)&&mn(t)){var r=gn(t);if(!w(r)&&yn(n,r))return r}}return null}function Rn(e){var t=o(e).constructor,n=function(){function e(){throw new TypeError("Illegal constructor")}return e.prototype.hasChildNodes=function(){return xn(this).length>0},Object.defineProperty(e.prototype,"firstChild",{get:function(){return xn(this)[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){var e=xn(this);return e[e.length-1]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{get:function(){return at(this)},set:function(e){z.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.children[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){var e=this.children;return e.item(e.length-1)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"assignedSlot",{get:function(){var e=V.call(this);return w(e)||!mn(e)||Ln(e)===Ln(this)?null:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){var e=V.call(this);return w(e)?e:Dn(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){var e=V.call(this);if(w(e))return null;var t=Dn(this,e);return t instanceof Element?t:null},enumerable:!0,configurable:!0}),e.prototype.compareDocumentPosition=function(e){return vn.call(this)===e?10:_n(this)!==_n(e)?35:U.call(this,e)},e.prototype.contains=function(e){return _n(this)===_n(e)&&0!=(U.call(this,e)&x)},e.prototype.cloneNode=function(e){var t=W.call(this,!1);if(!e)return t;for(var n=xn(this),r=0,o=n.length;r<o;r+=1)t.appendChild(n[r].cloneNode(!0));return t},e}();return l(n,t),l(n.prototype,t.prototype),n}var In,An,jn,xn=function(e){return e.childNodes};function Hn(){return E(In)&&(In="temporary-bypass"===document.body.getAttribute("data-global-patching-bypass")),N(In)}function $n(){return E(An)&&(An="temporary-bypass"===document.body.getAttribute("data-global-patching-bypass")),N(An)}Document.prototype.elementFromPoint=function(e,t){var n=L.call(this,e,t);return w(n)?n:Le(this,_e(n,!0))},r(document,"activeElement",{get:function(){var e=_.call(this);if(w(e))return e;for(;!E(_n(e));)if(w(e=Y.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),r(Document.prototype,"getElementById",{value:function(){var e=D.apply(this,p.call(arguments));if(w(e))return null;var t=_n(this);return _n(e)===t||Hn()?e:null},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"querySelector",{value:function(){var e=C.apply(this,p.call(arguments)),t=_n(this),n=s.call(e,function(e){return _n(e)===t||Hn()});return E(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"querySelectorAll",{value:function(){var e=C.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t||Hn()}))},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByClassName",{value:function(){var e=R.apply(this,p.call(arguments)),t=_n(this);return dt(f.call(e,function(e){return _n(e)===t||Hn()}))},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByTagName",{value:function(){var e=I.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t})||Hn())},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=A.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t})||Hn())},writable:!0,enumerable:!0,configurable:!0}),r(a(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=j.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t||Hn()}))},writable:!0,enumerable:!0,configurable:!0}),jn=HTMLBodyElement.prototype,r(jn,"querySelector",{value:function(){var e=oe.apply(this,p.call(arguments)),t=_n(this),n=s.call(e,function(e){return _n(e)===t||$n()});return E(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),r(jn,"querySelectorAll",{value:function(){var e=oe.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t||$n()}))},writable:!0,enumerable:!0,configurable:!0}),r(jn,"getElementsByClassName",{value:function(){var e=ge.apply(this,p.call(arguments)),t=_n(this);return dt(f.call(e,function(e){return _n(e)===t||$n()}))},writable:!0,enumerable:!0,configurable:!0}),r(jn,"getElementsByTagName",{value:function(){var e=ae.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t||$n()}))},writable:!0,enumerable:!0,configurable:!0}),r(jn,"getElementsByTagNameNS",{value:function(){var e=ie.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t||$n()}))},writable:!0,enumerable:!0,configurable:!0}),void 0===window.ShadowRoot&&Object.defineProperty(window,"ShadowRoot",{value:Rt,configurable:!0,writable:!0});var Bn=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var Fn,kn=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Wn(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!Bn)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",function(t){return e=t}),t.click(),!Bn.get.call(e)})()&&(HTMLElement.prototype.click=function(){ce.call(this,"click",Wn);try{kn.value.call(this)}finally{fe.call(this,"click",Wn)}}),void 0===Object.getOwnPropertyDescriptor(Event.prototype,"composed")&&(Fn=n(t(null),{blur:1,focus:1,focusin:1,focusout:1,click:1,dblclick:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,wheel:1,beforeinput:1,input:1,keydown:1,keyup:1,compositionstart:1,compositionupdate:1,compositionend:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,pointerover:1,pointerenter:1,pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerout:1,pointerleave:1,gotpointercapture:1,lostpointercapture:1,dragstart:1,drag:1,dragenter:1,dragleave:1,dragover:1,drop:1,dragend:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,keypress:1}),Object.defineProperties(Event.prototype,{composed:{get:function(){var e=this.type;return 1===Fn[e]},configurable:!0,enumerable:!0}}));var Un,qn=window.CustomEvent;function Kn(e,t){var n=new qn(e,t);return Object.defineProperties(n,{composed:{get:function(){return!(!t||!t.composed)},configurable:!0,enumerable:!0}}),n}window.CustomEvent!==Kn&&(window.CustomEvent=Kn,window.CustomEvent.prototype=qn.prototype),Un=Object.getOwnPropertyDescriptor(Event.prototype,"composed").get,Object.defineProperties(FocusEvent.prototype,{composed:{get:function(){var e=this.isTrusted,t=Un.call(this);return!(!e||!1!==t)||t},enumerable:!0,configurable:!0}});var Gn=window.MutationObserver,Vn=Gn.prototype,Xn=Vn.disconnect,Yn=Vn.observe,zn=Vn.takeRecords,Jn="$$lwcObserverCallbackWrapper$$",Qn="$$lwcNodeObservers$$";function Zn(e){var n=e.addedNodes,r=e.removedNodes,o=e.target,l=e.type,a=t(MutationRecord.prototype);return i(a,{addedNodes:{get:function(){return n},enumerable:!0,configurable:!0},removedNodes:{get:function(){return r},enumerable:!0,configurable:!0},type:{get:function(){return l},enumerable:!0,configurable:!0},target:{get:function(){return o.shadowRoot},enumerable:!0,configurable:!0}}),a}function er(e,t){for(var n=t;!w(n);){var r=n[Qn];if(!E(r)&&(r[0]===e||-1!==b.call(r,e)))return!0;n=n.parentNode}return!1}function tr(e,t){return m.call(e,function(e,n){var r=n.target,o=n.addedNodes,l=n.removedNodes;if("childList"!==n.type||E(Mn(r)))er(t,r)&&h.call(e,n);else if(o.length>0){var a=o[0];er(t,a)&&(!r[Qn]||r[Qn][0]!==t&&-1===b.call(r[Qn],t)?h.call(e,Zn(n)):h.call(e,n))}else{var i=r.shadowRoot;a=l[0];Ln(r)===Ln(a)&&er(t,r)?h.call(e,n):i&&i[Qn]&&(i[Qn][0]===t||-1!==b.call(i[Qn],t))&&h.call(e,Zn(n))}return e},[])}function nr(e){var t=function(e){var t=e[Jn];return E(t)&&(t=e[Jn]=function(t,n){var r=tr(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new Gn(t)}nr.prototype=Gn.prototype,nr.prototype.disconnect=function(){Xn.call(this)},nr.prototype.observe=function(e,t){return E(e[Qn])&&r(e,Qn,{value:[]}),h.call(e[Qn],this),e instanceof Rt&&(e=e.host),Yn.call(this,e,t)},nr.prototype.takeRecords=function(){return tr(zn.call(this),this)},r(window,"MutationObserver",{value:nr,configurable:!0,writable:!0});var rr,or=window.MutationObserver,lr=or.prototype.observe,ar={childList:!0,subtree:!0};function ir(e,t,n){if(_n(e)!==t&&(function(e,t){e[Tn]=t}(e,t),e instanceof Element)){Cn(e,n);for(var r=xn(e),o=0,l=r.length;o<l;o+=1){ir(r[o],t,n)}}}function ur(){return new or(function(e){g.call(e,function(e){var t=e.target,n=e.addedNodes,r=_n(t),o=function(e){return e[Pn]}(t);if(!E(r))for(var l=0,a=n.length;l<a;l+=1){ir(n[l],r,o)}})})}e.PatchedElement=sn,e.PatchedIframeElement=function(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return At(t,e),Object.defineProperty(t.prototype,"contentWindow",{get:function(){var e,t=Ee.call(this);return t?(e=t,{postMessage:function(){return e.postMessage.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)},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}}):t},enumerable:!0,configurable:!0}),t}(sn(e))},e.PatchedNode=Rn,e.PatchedSlotElement=function(e){var t=sn(e),n=e.addEventListener;return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return At(t,e),t.prototype.addEventListener=function(e,t,r){"slotchange"!==e||lt(this,dn)||(ot(this,dn,!0),nn||(nn=new Ht(function(e){var t=[];g.call(e,function(e){var n=e.target;-1===b.call(t,n)&&(h.call(t,n),me.call(n,new CustomEvent("slotchange")))})})),$t.call(nn,this,pn)),n.call(this,e,t,r)},t.prototype.assignedElements=function(e){var t=!E(e)&&N(e.flatten)?hn(this):bn(this);return f.call(t,function(e){return e instanceof Element})},t.prototype.assignedNodes=function(e){return!E(e)&&N(e.flatten)?hn(this):bn(this)},Object.defineProperty(t.prototype,"name",{get:function(){var e=ne.call(this,"name");return w(e)?"":e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){var e=gn(this);return ft(w(e)?[]:wn(e,On(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){var e=gn(this),t=w(e)?[]:wn(e,On(this));return dt(f.call(t,function(e){return e instanceof Element}))},enumerable:!0,configurable:!0}),t}(t)},e.markElementAsPortal=function(e){E(rr)&&(rr=ur()),lr.call(rr,e,ar)},e.patchEvent=Ke,e.setCSSToken=Cn,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -10,2 +10,2 @@ /**

*/
export declare function pathComposer(startNode: Node, composed: boolean): Node[];
export declare function pathComposer(startNode: EventTarget, composed: boolean): EventTarget[];

@@ -11,2 +11,3 @@ "use strict";

const traverse_1 = require("./../../faux-shadow/traverse");
const utils_1 = require("../../shared/utils");
/**

@@ -24,3 +25,3 @@ @license

let current = startNode;
const startRoot = startNode === window ? window : traverse_1.patchedGetRootNode.call(startNode);
const startRoot = startNode instanceof Window ? startNode : traverse_1.patchedGetRootNode.call(startNode);
while (current) {

@@ -40,4 +41,11 @@ composedPath.push(current);

}
let doc;
if (startNode instanceof Window) {
doc = startNode.document;
}
else {
doc = utils_1.getOwnerDocument(startNode);
}
// event composedPath includes window when startNode's ownerRoot is document
if (composedPath[composedPath.length - 1] === document) {
if (composedPath[composedPath.length - 1] === doc) {
composedPath.push(window);

@@ -44,0 +52,0 @@ }

@@ -10,2 +10,2 @@ /**

*/
export declare function retarget(refNode: Node, path: Node[]): EventTarget | null;
export declare function retarget(refNode: EventTarget | null, path: EventTarget[]): EventTarget | null;

@@ -12,2 +12,3 @@ "use strict";

const shadow_root_1 = require("./../../faux-shadow/shadow-root");
const language_1 = require("../../shared/language");
/**

@@ -23,2 +24,5 @@ @license

function retarget(refNode, path) {
if (language_1.isNull(refNode)) {
return null;
}
// If ANCESTOR's root is not a shadow root or ANCESTOR's root is BASE's

@@ -30,3 +34,3 @@ // shadow-including inclusive ancestor, return ANCESTOR.

ancestor = p$[i];
root = ancestor === window ? window : traverse_1.patchedGetRootNode.call(ancestor);
root = ancestor instanceof Window ? ancestor : traverse_1.patchedGetRootNode.call(ancestor);
if (root !== lastRoot) {

@@ -33,0 +37,0 @@ rootIdx = refNodePath.indexOf(root);

declare const DocumentPrototypeActiveElement: (this: Document) => Element | null;
declare const elementFromPoint: any;
declare const elementFromPoint: (x: number, y: number) => Element | null;
declare const defaultViewGetter: (this: Document) => Window | null;
declare const createDocumentFragment: () => DocumentFragment, createElement: {

@@ -92,2 +93,2 @@ <K extends "object" | "link" | "small" | "sub" | "sup" | "track" | "progress" | "a" | "abbr" | "address" | "applet" | "area" | "article" | "aside" | "audio" | "b" | "base" | "basefont" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dir" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "font" | "footer" | "form" | "frame" | "frameset" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "map" | "mark" | "marquee" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "q" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "slot" | "source" | "span" | "strong" | "style" | "table" | "tbody" | "td" | "template" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "u" | "ul" | "var" | "video" | "wbr">(tagName: K, options?: ElementCreationOptions | undefined): HTMLElementTagNameMap[K];

declare const getElementsByName: (elementName: string) => NodeListOf<HTMLElement>;
export { elementFromPoint, createDocumentFragment, createElement, createElementNS, createTextNode, createComment, DocumentPrototypeActiveElement, querySelector, querySelectorAll, getElementById, getElementsByClassName, getElementsByName, getElementsByTagName, getElementsByTagNameNS, };
export { elementFromPoint, createDocumentFragment, createElement, createElementNS, createTextNode, createComment, DocumentPrototypeActiveElement, querySelector, querySelectorAll, getElementById, getElementsByClassName, getElementsByName, getElementsByTagName, getElementsByTagNameNS, defaultViewGetter, };

@@ -16,2 +16,5 @@ "use strict";

exports.elementFromPoint = elementFromPoint;
// TODO: when does defaultView return a null?
const defaultViewGetter = language_1.getOwnPropertyDescriptor(Document.prototype, 'defaultView').get;
exports.defaultViewGetter = defaultViewGetter;
const { createDocumentFragment, createElement, createElementNS, createTextNode, createComment, querySelector, querySelectorAll, getElementById, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, } = Document.prototype;

@@ -18,0 +21,0 @@ exports.createDocumentFragment = createDocumentFragment;

@@ -5,5 +5,5 @@ declare const ShadowRootHostGetter: (this: ShadowRoot) => Element | null;

declare const iFrameContentWindowGetter: (this: HTMLIFrameElement) => Window;
declare const eventTargetGetter: (this: Event) => Element;
declare const eventCurrentTargetGetter: (this: Event) => Element | null;
declare const eventTargetGetter: (this: Event) => EventTarget;
declare const eventCurrentTargetGetter: (this: Event) => EventTarget | null;
declare const focusEventRelatedTargetGetter: (this: FocusEvent) => EventTarget | null;
export { dispatchEvent, ShadowRootHostGetter, isNativeShadowRootAvailable, iFrameContentWindowGetter, eventTargetGetter, eventCurrentTargetGetter, focusEventRelatedTargetGetter, };
declare const DOCUMENT_POSITION_CONTAINED_BY: number, DOCUMENT_POSITION_CONTAINS: number, DOCUMENT_POSITION_PRECEDING: number, DOCUMENT_POSITION_FOLLOWING: number, DOCUMENT_FRAGMENT_NODE: number;
declare const appendChild: <T extends Node>(newChild: T) => T, cloneNode: (deep?: boolean | undefined) => Node, compareDocumentPosition: (other: Node) => number, hasChildNodes: () => boolean, insertBefore: <T extends Node>(newChild: T, refChild: Node | null) => T, removeChild: <T extends Node>(oldChild: T) => T, replaceChild: <T extends Node>(newChild: Node, oldChild: T) => T;
declare const parentNodeGetter: (this: Node) => Element | null;
declare const ownerDocumentGetter: (this: Node) => Document | null;
declare const parentElementGetter: (this: Node) => Element | null;

@@ -10,2 +11,2 @@ declare const textContextSetter: (this: Node, s: string) => void;

declare const isConnected: () => any;
export { appendChild, childNodesGetter, cloneNode, compareDocumentPosition, hasChildNodes, insertBefore, isConnected, nodeValueGetter, nodeValueSetter, parentElementGetter, parentNodeGetter, removeChild, replaceChild, textContextSetter, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_FRAGMENT_NODE, };
export { appendChild, childNodesGetter, cloneNode, compareDocumentPosition, hasChildNodes, insertBefore, isConnected, nodeValueGetter, nodeValueSetter, parentElementGetter, parentNodeGetter, removeChild, replaceChild, textContextSetter, ownerDocumentGetter, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_FRAGMENT_NODE, };

@@ -26,2 +26,4 @@ "use strict";

exports.parentNodeGetter = parentNodeGetter;
const ownerDocumentGetter = language_1.getOwnPropertyDescriptor(Node.prototype, 'ownerDocument').get;
exports.ownerDocumentGetter = ownerDocumentGetter;
const parentElementGetter = language_1.hasOwnProperty.call(Node.prototype, 'parentElement')

@@ -45,6 +47,11 @@ ? language_1.getOwnPropertyDescriptor(Node.prototype, 'parentElement').get

: function () {
const doc = ownerDocumentGetter.call(this);
// IE11
return ((compareDocumentPosition.call(document, this) & DOCUMENT_POSITION_CONTAINED_BY) !== 0);
return (
// if doc is null, it means `this` is actually a document instance which
// is always connected
doc === null ||
(compareDocumentPosition.call(doc, this) & DOCUMENT_POSITION_CONTAINED_BY) !== 0);
};
exports.isConnected = isConnected;
//# sourceMappingURL=node.js.map

@@ -229,9 +229,8 @@ "use strict";

if (shadow_root_1.hasSyntheticShadow(this)) {
// This tabIndex setter might be confusing unless it is understood that HTML elements
// have default tabIndex property values. Natively focusable elements have a default
// tabIndex value of 0 and all other elements have a default tabIndex value of -1. An
// example of when this matters: We don't need to do anything for <x-foo> but we do need
// to add a listener for <x-foo tabindex="-1">. The tabIndex property value is -1 in
// both cases, so we need an additional check to see if the tabindex attribute is
// reflected on the host.
// This tabIndex setter might be confusing unless it is understood that HTML
// elements have default tabIndex property values. Natively focusable elements have
// a default tabIndex value of 0 and all other elements have a default tabIndex
// value of -1. For example, the tabIndex property value is -1 for both <x-foo> and
// <x-foo tabindex="-1">, but our delegatesFocus polyfill should only kick in for
// the latter case when the value of the tabindex attribute is -1.
const delegatesFocus = shadow_root_1.isDelegatingFocus(this);

@@ -238,0 +237,0 @@ // Record the state of things before invoking component setter.

@@ -21,2 +21,3 @@ "use strict";

require("../polyfills/event-listener/main");
const utils_1 = require("../shared/utils");
// intentionally extracting the patched addEventListener and removeEventListener from Node.prototype

@@ -51,3 +52,4 @@ // due to the issues with JSDOM patching hazard.

if (!(originalCurrentTarget instanceof Node)) {
return retarget_1.retarget(document, composedPath);
const doc = utils_1.getOwnerDocument(originalTarget);
return retarget_1.retarget(doc, composedPath);
}

@@ -96,2 +98,3 @@ const eventContext = eventToContextMap.get(this);

if (!language_1.isUndefined(originalRelatedTargetDescriptor)) {
const relatedTargetGetter = originalRelatedTargetDescriptor.get;
language_1.defineProperty(event, 'relatedTarget', {

@@ -101,3 +104,3 @@ get() {

const originalCurrentTarget = dom_1.eventCurrentTargetGetter.call(this);
const relatedTarget = originalRelatedTargetDescriptor.get.call(this);
const relatedTarget = relatedTargetGetter.call(this);
if (language_1.isNull(relatedTarget)) {

@@ -107,3 +110,3 @@ return null;

const currentTarget = eventContext === EventListenerContext.SHADOW_ROOT_LISTENER
? shadow_root_1.getShadowRoot(originalCurrentTarget)
? shadow_root_1.getShadowRoot(originalCurrentTarget) /* because the context is a host */
: originalCurrentTarget;

@@ -143,3 +146,5 @@ return retarget_1.retarget(currentTarget, path_composer_1.pathComposer(relatedTarget, true));

if (target !== currentTarget) {
const rootNode = getRootNodeHost(target, { composed });
const rootNode = getRootNodeHost(target /* because wrapping on shadowRoot */, {
composed,
});
if (isChildNode(rootNode, currentTarget) ||

@@ -271,3 +276,3 @@ (composed === false && rootNode === currentTarget)) {

// it is coming from a slotted element
isChildNode(getRootNodeHost(target, GET_ROOT_NODE_CONFIG_FALSE), currentTarget));
isChildNode(getRootNodeHost(target /* because wrap on shadowRoot */, GET_ROOT_NODE_CONFIG_FALSE), currentTarget));
}

@@ -274,0 +279,0 @@ function addCustomElementEventListener(elm, type, listener, options) {

@@ -20,2 +20,4 @@ "use strict";

const shadow_root_1 = require("./shadow-root");
const utils_1 = require("../shared/utils");
const traverse_1 = require("./traverse");
const TabbableElementsQuery = `

@@ -82,25 +84,8 @@ button:not([tabindex="-1"]):not([disabled]),

exports.isFocusable = isFocusable;
function getFirstTabbableMatch(elements) {
for (let i = 0, len = elements.length; i < len; i += 1) {
const elm = elements[i];
if (isTabbable(elm)) {
return elm;
}
}
return null;
}
function getLastTabbableMatch(elements) {
for (let i = elements.length - 1; i >= 0; i -= 1) {
const elm = elements[i];
if (isTabbable(elm)) {
return elm;
}
}
return null;
}
function getTabbableSegments(host) {
const all = document_1.querySelectorAll.call(document, TabbableElementsQuery);
const doc = utils_1.getOwnerDocument(host);
const all = document_1.querySelectorAll.call(doc, TabbableElementsQuery);
const inner = language_1.ArraySlice.call(element_1.querySelectorAll.call(host, TabbableElementsQuery));
if (process.env.NODE_ENV !== 'production') {
assert_1.default.invariant(element_1.tabIndexGetter.call(host) === -1 || shadow_root_1.isDelegatingFocus(host), `The focusin event is only relevant when the tabIndex property is -1 on the host.`);
assert_1.default.invariant(element_1.getAttribute.call(host, 'tabindex') === '-1' || shadow_root_1.isDelegatingFocus(host), `The focusin event is only relevant when the tabIndex property is -1 on the host.`);
}

@@ -124,3 +109,4 @@ const firstChild = inner[0];

function getActiveElement(host) {
const activeElement = document_1.DocumentPrototypeActiveElement.call(document);
const doc = utils_1.getOwnerDocument(host);
const activeElement = document_1.DocumentPrototypeActiveElement.call(doc);
if (language_1.isNull(activeElement)) {

@@ -154,10 +140,2 @@ return activeElement;

}
function getPreviousTabbableElement(segments) {
const { prev } = segments;
return getFirstTabbableMatch(language_1.ArrayReverse.call(prev));
}
function getNextTabbableElement(segments) {
const { next } = segments;
return getFirstTabbableMatch(next);
}
function muteEvent(event) {

@@ -167,48 +145,32 @@ event.preventDefault();

}
function muteFocusEventsDuringExecution(func) {
window_1.windowAddEventListener.call(window, 'focusin', muteEvent, true);
window_1.windowAddEventListener.call(window, 'focusout', muteEvent, true);
function muteFocusEventsDuringExecution(win, func) {
window_1.windowAddEventListener.call(win, 'focusin', muteEvent, true);
window_1.windowAddEventListener.call(win, 'focusout', muteEvent, true);
func();
window_1.windowRemoveEventListener.call(window, 'focusin', muteEvent, true);
window_1.windowRemoveEventListener.call(window, 'focusout', muteEvent, true);
window_1.windowRemoveEventListener.call(win, 'focusin', muteEvent, true);
window_1.windowRemoveEventListener.call(win, 'focusout', muteEvent, true);
}
function focusOnNextOrBlur(focusEventTarget, segments) {
muteFocusEventsDuringExecution(() => {
const nextNode = getNextTabbableElement(segments);
if (language_1.isNull(nextNode)) {
// nothing to focus on, blur to invalidate the operation
focusEventTarget.blur();
}
else {
nextNode.focus();
}
});
function focusOnNextOrBlur(segment, target, relatedTarget) {
const win = utils_1.getOwnerWindow(relatedTarget);
const next = getNextTabbable(segment, relatedTarget);
if (language_1.isNull(next)) {
// nothing to focus on, blur to invalidate the operation
muteFocusEventsDuringExecution(win, () => {
target.blur();
});
}
else {
muteFocusEventsDuringExecution(win, () => {
next.focus();
});
}
}
function focusOnPrevOrBlur(focusEventTarget, segments) {
muteFocusEventsDuringExecution(() => {
const prevNode = getPreviousTabbableElement(segments);
if (language_1.isNull(prevNode)) {
// nothing to focus on, blur to invalidate the operation
focusEventTarget.blur();
}
else {
prevNode.focus();
}
});
}
function isFirstTabbableChild(target, segments) {
return getFirstTabbableMatch(segments.inner) === target;
}
function isLastTabbableChild(target, segments) {
return getLastTabbableMatch(segments.inner) === target;
}
function keyboardFocusHandler(event) {
const host = dom_1.eventCurrentTargetGetter.call(event);
const target = dom_1.eventTargetGetter.call(event);
// Ideally, we would be able to use a "focus" event that doesn't bubble
// but, IE11 doesn't support relatedTarget on focus events so we have to use
// focusin instead. The logic below is predicated on non-bubbling events
// So, if currentTarget(host) ir not target, we know that the event is bubbling
// and we escape because focus occured on something below the host.
// If the host delegating focus with tabindex=0 is not the target, we know
// that the event was dispatched on a descendant node of the host. This
// means the focus is coming from below and we don't need to do anything.
if (host !== target) {
// Focus is coming from above
return;

@@ -218,2 +180,8 @@ }

if (language_1.isNull(relatedTarget)) {
// If relatedTarget is null, the user is most likely tabbing into the document from the
// browser chrome. We can't do much in this case because the tab direction is unknown. This is an
// edge case and only comes up if the custom element is the first or last tabbable element
// in the document.
// TODO: Is the above statement true? Couldn't we figure it out by looking at the position
// of the target relative to all tabbable elements in the document?
return;

@@ -224,6 +192,8 @@ }

if (position === 1) {
// probably tabbing into element
const first = getFirstTabbableMatch(segments.inner);
if (!language_1.isNull(first)) {
muteFocusEventsDuringExecution(() => {
// Focus is coming from above
const findTabbableElms = isTabbableFrom.bind(null, traverse_1.patchedGetRootNode.call(host));
const first = language_1.ArrayFind.call(segments.inner, findTabbableElms);
if (!language_1.isUndefined(first)) {
const win = utils_1.getOwnerWindow(first);
muteFocusEventsDuringExecution(win, () => {
first.focus();

@@ -233,8 +203,8 @@ });

else {
focusOnNextOrBlur(target, segments);
focusOnNextOrBlur(segments.next, target, relatedTarget);
}
}
else if (host === target) {
// Shift tabbed back to the host
focusOnPrevOrBlur(host, segments);
// Host is receiving focus from below, either from its shadow or from a sibling
focusOnNextOrBlur(language_1.ArrayReverse.call(segments.prev), target, relatedTarget);
}

@@ -248,42 +218,64 @@ }

function keyboardFocusInHandler(event) {
const relatedTarget = dom_1.focusEventRelatedTargetGetter.call(event);
if (language_1.isNull(relatedTarget)) {
// If relatedTarget is null, the user is most likely tabbing into the document from the
// browser chrome. We can't do much in this case because the tab direction is unknown. This is an
// edge case and only comes up if the custom element is the first or last tabbable element
// in the document.
// TODO: Is the above statement true? Couldn't we figure it out by looking at the position
// of the target relative to all tabbable elements in the document?
return;
}
const host = dom_1.eventCurrentTargetGetter.call(event);
const target = dom_1.eventTargetGetter.call(event);
const relatedTarget = dom_1.focusEventRelatedTargetGetter.call(event);
const segments = getTabbableSegments(host);
const isFirstFocusableChildReceivingFocus = isFirstTabbableChild(target, segments);
const isLastFocusableChildReceivingFocus = isLastTabbableChild(target, segments);
if (
// If we receive a focusin event that is not focusing on the first or last
// element inside of a shadow, we can assume that the user is tabbing between
// elements inside of the custom element shadow, so we do nothing
(language_1.isFalse(isFirstFocusableChildReceivingFocus) &&
language_1.isFalse(isLastFocusableChildReceivingFocus)) ||
// If related target is null, user is probably tabbing into the document from the browser chrome (location bar?)
// If relatedTarget is null, we can't do much here because we don't know what direction the user is tabbing
// This is a bit of an edge case, and only comes up if the custom element is the very first or very last
// tabbable element in a document
language_1.isNull(relatedTarget)) {
if (language_1.ArrayIndexOf.call(segments.inner, relatedTarget) !== -1) {
// If relatedTarget is contained by the host's subtree we can assume that the user is
// tabbing between elements inside of the shadow. Do nothing.
return;
}
const target = dom_1.eventTargetGetter.call(event);
// Determine where the focus is coming from (Tab or Shift+Tab)
const post = relatedTargetPosition(host, relatedTarget);
switch (post) {
case 1: // focus is probably coming from above
if (isFirstFocusableChildReceivingFocus) {
// the focus was on the immediate focusable elements from above,
// it is almost certain that the focus is due to tab keypress
focusOnNextOrBlur(target, segments);
const position = relatedTargetPosition(host, relatedTarget);
if (position === 1) {
// Focus is coming from above
focusOnNextOrBlur(segments.next, target, relatedTarget);
}
if (position === 2) {
// Focus is coming from below
focusOnNextOrBlur(language_1.ArrayReverse.call(segments.prev), target, relatedTarget);
}
}
// Use this function to determine whether you can start from one root and end up
// at another element via tabbing.
function isTabbableFrom(fromRoot, toElm) {
if (!isTabbable(toElm)) {
return false;
}
const ownerDocument = utils_1.getOwnerDocument(toElm);
let root = traverse_1.patchedGetRootNode.call(toElm);
while (root !== ownerDocument && root !== fromRoot) {
const sr = root;
const host = sr.host;
if (element_1.getAttribute.call(host, 'tabindex') === '-1') {
return false;
}
root = host && traverse_1.patchedGetRootNode.call(host);
}
return true;
}
function getNextTabbable(tabbables, relatedTarget) {
const len = tabbables.length;
if (len > 0) {
for (let i = 0; i < len; i += 1) {
const next = tabbables[i];
if (isTabbableFrom(traverse_1.patchedGetRootNode.call(relatedTarget), next)) {
return next;
}
break;
case 2: // focus is probably coming from below
if (isLastFocusableChildReceivingFocus) {
// the focus was on the immediate focusable elements from above,
// it is almost certain that the focus is due to tab keypress
focusOnPrevOrBlur(target, segments);
}
break;
}
}
return null;
}
function willTriggerFocusInEvent(target) {
return (target !== document_1.DocumentPrototypeActiveElement.call(document) && isFocusable(target) // if the element is currently active, it will not fire a focusin event
const doc = utils_1.getOwnerDocument(target);
return (target !== document_1.DocumentPrototypeActiveElement.call(doc) && isFocusable(target) // if the element is currently active, it will not fire a focusin event
);

@@ -290,0 +282,0 @@ }

@@ -24,2 +24,3 @@ "use strict";

const element_1 = require("../env/element");
const utils_1 = require("../shared/utils");
const InternalSlot = fields_1.createFieldName('shadowRecord');

@@ -56,3 +57,4 @@ const { createDocumentFragment } = document;

// creating a real fragment for shadowRoot instance
const sr = createDocumentFragment.call(document);
const doc = utils_1.getOwnerDocument(elm);
const sr = createDocumentFragment.call(doc);
// creating shadow internal record

@@ -91,7 +93,8 @@ const record = {

get() {
const activeElement = document_1.DocumentPrototypeActiveElement.call(document);
const host = getHost(this);
const doc = utils_1.getOwnerDocument(host);
const activeElement = document_1.DocumentPrototypeActiveElement.call(doc);
if (language_1.isNull(activeElement)) {
return activeElement;
}
const host = getHost(this);
if ((node_1.compareDocumentPosition.call(host, activeElement) &

@@ -127,3 +130,5 @@ node_1.DOCUMENT_POSITION_CONTAINED_BY) ===

value(left, top) {
const element = document_1.elementFromPoint.call(document, left, top);
const host = getHost(this);
const doc = utils_1.getOwnerDocument(host);
const element = document_1.elementFromPoint.call(doc, left, top);
if (language_1.isNull(element)) {

@@ -484,4 +489,5 @@ return element;

}
const doc = utils_1.getOwnerDocument(host);
// @ts-ignore $$placeholder$$ is fine, read the node above.
c = shadowRoot.$$placeholder$$ = document_1.createComment.call(document, '');
c = shadowRoot.$$placeholder$$ = document_1.createComment.call(doc, '');
language_1.defineProperties(c, {

@@ -488,0 +494,0 @@ childNodes: {

@@ -14,2 +14,10 @@ "use strict";

const static_html_collection_1 = require("../../shared/static-html-collection");
let skipGlobalPatching;
function isGlobalPatchingSkipped() {
if (language_1.isUndefined(skipGlobalPatching)) {
skipGlobalPatching =
document.body.getAttribute('data-global-patching-bypass') === 'temporary-bypass';
}
return language_1.isTrue(skipGlobalPatching);
}
function apply() {

@@ -31,3 +39,3 @@ const HTMLBodyElementPrototype = HTMLBodyElement.prototype;

// Return the first non shadow element
const filtered = language_1.ArrayFind.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
const filtered = language_1.ArrayFind.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey || isGlobalPatchingSkipped());
return !language_1.isUndefined(filtered) ? filtered : null;

@@ -43,3 +51,3 @@ },

const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey || isGlobalPatchingSkipped());
return static_node_list_1.createStaticNodeList(filtered);

@@ -55,3 +63,3 @@ },

const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey || isGlobalPatchingSkipped());
return static_html_collection_1.createStaticHTMLCollection(filtered);

@@ -67,3 +75,3 @@ },

const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey || isGlobalPatchingSkipped());
// NodeList because of https://bugzilla.mozilla.org/show_bug.cgi?id=14869

@@ -80,3 +88,3 @@ return static_node_list_1.createStaticNodeList(filtered);

const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey || isGlobalPatchingSkipped());
// NodeList because of https://bugzilla.mozilla.org/show_bug.cgi?id=14869

@@ -83,0 +91,0 @@ return static_node_list_1.createStaticNodeList(filtered);

@@ -17,13 +17,22 @@ "use strict";

const static_html_collection_1 = require("../../shared/static-html-collection");
let skipGlobalPatching;
function isGlobalPatchingSkipped() {
if (language_1.isUndefined(skipGlobalPatching)) {
skipGlobalPatching =
document.body.getAttribute('data-global-patching-bypass') === 'temporary-bypass';
}
return language_1.isTrue(skipGlobalPatching);
}
function apply() {
function elemFromPoint(left, top) {
const element = document_1.elementFromPoint.call(document, left, top);
const element = document_1.elementFromPoint.call(this, left, top);
if (language_1.isNull(element)) {
return element;
}
return retarget_1.retarget(document, path_composer_1.pathComposer(element, true));
return retarget_1.retarget(this, path_composer_1.pathComposer(element, true));
}
// https://github.com/Microsoft/TypeScript/issues/14139
document.elementFromPoint = elemFromPoint;
Document.prototype.elementFromPoint = elemFromPoint;
// Go until we reach to top of the LWC tree
// TODO: this should be patched on Document.prototype instead
language_1.defineProperty(document, 'activeElement', {

@@ -43,3 +52,3 @@ get() {

// IE 11. Active element should never be html element
node = document.body;
node = this.body;
}

@@ -67,3 +76,3 @@ return node;

const ownerKey = node_1.getNodeOwnerKey(this);
return node_1.getNodeOwnerKey(elm) === ownerKey ? elm : null;
return node_1.getNodeOwnerKey(elm) === ownerKey || isGlobalPatchingSkipped() ? elm : null;
},

@@ -78,3 +87,3 @@ writable: true,

const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFind.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
const filtered = language_1.ArrayFind.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey || isGlobalPatchingSkipped());
return !language_1.isUndefined(filtered) ? filtered : null;

@@ -90,3 +99,3 @@ },

const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey || isGlobalPatchingSkipped());
return static_node_list_1.createStaticNodeList(filtered);

@@ -102,3 +111,3 @@ },

const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey || isGlobalPatchingSkipped());
return static_html_collection_1.createStaticHTMLCollection(filtered);

@@ -114,3 +123,4 @@ },

const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey) ||
isGlobalPatchingSkipped();
// NodeList because of https://bugzilla.mozilla.org/show_bug.cgi?id=14869

@@ -127,3 +137,4 @@ return static_node_list_1.createStaticNodeList(filtered);

const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey) ||
isGlobalPatchingSkipped();
// NodeList because of https://bugzilla.mozilla.org/show_bug.cgi?id=14869

@@ -144,3 +155,3 @@ return static_node_list_1.createStaticNodeList(filtered);

const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey || isGlobalPatchingSkipped());
return static_node_list_1.createStaticNodeList(filtered);

@@ -147,0 +158,0 @@ },

@@ -15,7 +15,8 @@ "use strict";

const events_1 = require("../../faux-shadow/events");
const utils_1 = require("../../shared/utils");
function doesEventNeedsPatch(e) {
const originalTarget = dom_1.eventTargetGetter.call(e);
if (originalTarget instanceof Node) {
if ((node_1.compareDocumentPosition.call(document, originalTarget) &
node_1.DOCUMENT_POSITION_CONTAINED_BY) !==
const doc = utils_1.getOwnerDocument(originalTarget);
if ((node_1.compareDocumentPosition.call(doc, originalTarget) & node_1.DOCUMENT_POSITION_CONTAINED_BY) !==
0 &&

@@ -22,0 +23,0 @@ node_2.getNodeOwnerKey(originalTarget)) {

@@ -15,4 +15,4 @@ "use strict";

// Internal fields to maintain relationships
const observedTargetsField = '$$lwcObservedTargets$$';
const wrapperLookupField = '$$lwcObserverCallbackWrapper$$';
const observerLookupField = '$$lwcNodeObservers$$';
/**

@@ -58,9 +58,26 @@ * Retarget the mutation record's target value to its shadowRoot

/**
* This function first gathers the OwnerKey of all the targets observed by the MutationObserver instance.
* Next, process each MutationRecord to determine if the mutation occured in the same shadow tree as
* one of the targets being observed.
* Utility to identify if a target node is being observed by the given observer
* Start at the current node, if the observer is registered to observe the current node, the mutation qualifies
* @param {MutationObserver} observer
* @param {Node} target
*/
function isQualifiedObserver(observer, target) {
let parentNode = target;
while (!language_1.isNull(parentNode)) {
const parentNodeObservers = parentNode[observerLookupField];
if (!language_1.isUndefined(parentNodeObservers) &&
(parentNodeObservers[0] === observer || // perf optimization to check for the first item is a match
language_1.ArrayIndexOf.call(parentNodeObservers, observer) !== -1)) {
return true;
}
parentNode = parentNode.parentNode;
}
return false;
}
/**
* This function provides a shadow dom compliant filtered view of mutation records for a given observer.
*
* The key filtering logic is to match the observed target node's ownerKey/ownKey with the ownerKey of the nodes in the
* MutationRecord.
* The ownerKey of the rootnode will be undefined. Similarly ownerkey of nodes outside the shadow will be undefined.
* The key logic here is to determine if a given observer has been registered to observe any nodes
* between the target node of a mutation record to the target's root node.
* This function also retargets records when mutations occur directly under the shadow root
* @param {MutationRecords[]} mutations

@@ -70,28 +87,42 @@ * @param {MutationObserver} observer

function filterMutationRecords(mutations, observer) {
const observedTargets = observer[observedTargetsField];
const observedTargetOwnerKeys = [];
language_1.forEach.call(observedTargets, (node) => {
// If the observed target is a shadowRoot, the ownerkey of the shadow tree will be fetched using the host
const observedTargetOwnerKey = node instanceof window.ShadowRoot
? node_1.getNodeKey(node.host)
: node_1.getNodeNearestOwnerKey(node);
language_1.ArrayPush.call(observedTargetOwnerKeys, observedTargetOwnerKey);
});
return language_1.ArrayReduce.call(mutations, (filteredSet, record) => {
const { target, addedNodes, removedNodes, type } = record;
// If the mutations affected a lwc host element or its shadow,
// because LWC uses synthetic shadow, target will be the host
// If target is an lwc host,
// Determine if the mutations affected the host or the shadowRoot
// Mutations affecting host: changes to slot content
// Mutations affecting shadowRoot: changes to template content
if (type === 'childList' && !language_1.isUndefined(node_1.getNodeKey(target))) {
// Optimization: Peek in and test one node to decide if the MutationRecord qualifies
// The remaining nodes in this MutationRecord will have the same ownerKey
const sampleNode = addedNodes.length > 0 ? addedNodes[0] : removedNodes[0];
const sampleNodeOwnerKey = node_1.getNodeNearestOwnerKey(sampleNode);
// Is node being added/removed to a subtree that is being observed
if (language_1.ArrayIndexOf.call(observedTargetOwnerKeys, sampleNodeOwnerKey) !== -1) {
// If the target was being observed, then return record as-is
if (observedTargets.indexOf(target) !== -1) {
// In case of added nodes, we can climb up the tree and determine eligibility
if (addedNodes.length > 0) {
// Optimization: Peek in and test one node to decide if the MutationRecord qualifies
// The remaining nodes in this MutationRecord will have the same ownerKey
const sampleNode = addedNodes[0];
if (isQualifiedObserver(observer, sampleNode)) {
// If the target was being observed, then return record as-is
// this will be the case for slot content
if (target[observerLookupField] &&
(target[observerLookupField][0] === observer ||
language_1.ArrayIndexOf.call(target[observerLookupField], observer) !== -1)) {
language_1.ArrayPush.call(filteredSet, record);
}
else {
// else, must be observing the shadowRoot
language_1.ArrayPush.call(filteredSet, retargetMutationRecord(record));
}
}
}
else {
// In the case of removed nodes, climbing the tree is not an option as the nodes are disconnected
// We can only check if either the host or shadow root was observed and qualify the record
const shadowRoot = target.shadowRoot;
const sampleNode = removedNodes[0];
if (node_1.getNodeNearestOwnerKey(target) === node_1.getNodeNearestOwnerKey(sampleNode) && // trickery: sampleNode is slot content
isQualifiedObserver(observer, target) // use target as a close enough reference to climb up
) {
language_1.ArrayPush.call(filteredSet, record);
}
else {
// else, must be observing the shadowRoot
else if (shadowRoot &&
shadowRoot[observerLookupField] &&
(shadowRoot[observerLookupField][0] === observer ||
language_1.ArrayIndexOf.call(shadowRoot[observerLookupField], observer) !== -1)) {
language_1.ArrayPush.call(filteredSet, retargetMutationRecord(record));

@@ -102,9 +133,5 @@ }

else {
// if target is shadowRoot, then fetch key of shadow tree from the host
// this should never be the case when synthetic shadow is on, only when running in native
const recordTargetOwnerKey = target instanceof window.ShadowRoot
? node_1.getNodeKey(target.host)
: node_1.getNodeNearestOwnerKey(target);
const mutationInScope = language_1.ArrayIndexOf.call(observedTargetOwnerKeys, recordTargetOwnerKey) !== -1;
if (mutationInScope) {
// Mutation happened under a root node(shadow root or document) and the decision is straighforward
// Ascend the tree starting from target and check if observer is qualified
if (isQualifiedObserver(observer, target)) {
language_1.ArrayPush.call(filteredSet, record);

@@ -140,9 +167,5 @@ }

const observer = new OriginalMutationObserver(wrappedCallback);
language_1.defineProperty(observer, observedTargetsField, { value: [] });
return observer;
}
function patchedDisconnect() {
if (!language_1.isUndefined(this[observedTargetsField])) {
this[observedTargetsField].length = 0;
}
originalDisconnect.call(this);

@@ -157,6 +180,7 @@ }

function patchedObserve(target, options) {
// If the observer was created by the patched constructor, this field should be defined. Adding a guard for extra safety
if (!language_1.isUndefined(this[observedTargetsField])) {
language_1.ArrayPush.call(this[observedTargetsField], target);
// Maintain a list of all observers that want to observe a node
if (language_1.isUndefined(target[observerLookupField])) {
language_1.defineProperty(target, observerLookupField, { value: [] });
}
language_1.ArrayPush.call(target[observerLookupField], this);
// If the target is a SyntheticShadowRoot, observe the host since the shadowRoot is an empty documentFragment

@@ -174,10 +198,14 @@ if (target instanceof shadow_root_1.SyntheticShadowRoot) {

}
PatchedMutationObserver.prototype = OriginalMutationObserver.prototype;
PatchedMutationObserver.prototype.disconnect = patchedDisconnect;
PatchedMutationObserver.prototype.observe = patchedObserve;
PatchedMutationObserver.prototype.takeRecords = patchedTakeRecords;
function apply() {
window.MutationObserver = PatchedMutationObserver;
window.MutationObserver.prototype = OriginalMutationObserver.prototype;
window.MutationObserver.prototype.disconnect = patchedDisconnect;
window.MutationObserver.prototype.observe = patchedObserve;
window.MutationObserver.prototype.takeRecords = patchedTakeRecords;
language_1.defineProperty(window, 'MutationObserver', {
value: PatchedMutationObserver,
configurable: true,
writable: true,
});
}
exports.default = apply;
//# sourceMappingURL=polyfill.js.map

@@ -11,5 +11,9 @@ "use strict";

function apply() {
window.ShadowRoot = shadow_root_1.SyntheticShadowRoot;
Object.defineProperty(window, 'ShadowRoot', {
value: shadow_root_1.SyntheticShadowRoot,
configurable: true,
writable: true,
});
}
exports.default = apply;
//# sourceMappingURL=polyfill.js.map
{
"name": "@lwc/synthetic-shadow",
"version": "0.39.0",
"version": "0.39.1-222.1",
"description": "Synthetic Shadow Root for LWC",

@@ -22,3 +22,3 @@ "license": "MIT",

},
"gitHead": "3db043ca0d47aa1759849a9e66a5f6a8d6b61251"
"gitHead": "7b71ae40f316d906bbfaec160f042b0136e71988"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc