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.37.3-alpha9 to 0.38.0-alpha1

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

@@ -16,21 +19,3 @@ /*

exports.getBoundingClientRect = getBoundingClientRect;
var element_1 = require("./../element"); // Pass through all the functions from element, we probably don't want those mocked
exports.addEventListener = element_1.addEventListener;
exports.removeEventListener = element_1.removeEventListener;
exports.hasAttribute = element_1.hasAttribute;
exports.getAttribute = element_1.getAttribute;
exports.getAttributeNS = element_1.getAttributeNS;
exports.setAttribute = element_1.setAttribute;
exports.setAttributeNS = element_1.setAttributeNS;
exports.removeAttribute = element_1.removeAttribute;
exports.removeAttributeNS = element_1.removeAttributeNS;
exports.querySelector = element_1.querySelector;
exports.querySelectorAll = element_1.querySelectorAll;
exports.getElementsByTagName = element_1.getElementsByTagName;
exports.getElementsByClassName = element_1.getElementsByClassName;
exports.getElementsByTagNameNS = element_1.getElementsByTagNameNS;
exports.tagNameGetter = element_1.tagNameGetter;
exports.tabIndexGetter = element_1.tabIndexGetter;
exports.innerHTMLSetter = element_1.innerHTMLSetter;
exports.matches = element_1.matches;
__export(require("./../element")); // Pass through all the functions from element, we probably don't want those mocked
//# sourceMappingURL=element.js.map
declare const ShadowRootHostGetter: (this: ShadowRoot) => Element | null;
declare const ShadowRootInnerHTMLSetter: (this: ShadowRoot, s: string) => void;
declare const dispatchEvent: (event: Event) => boolean;

@@ -9,2 +8,2 @@ declare const isNativeShadowRootAvailable: boolean;

declare const focusEventRelatedTargetGetter: (this: FocusEvent) => EventTarget | null;
export { dispatchEvent, ShadowRootHostGetter, ShadowRootInnerHTMLSetter, isNativeShadowRootAvailable, iFrameContentWindowGetter, eventTargetGetter, eventCurrentTargetGetter, focusEventRelatedTargetGetter, };
export { dispatchEvent, ShadowRootHostGetter, isNativeShadowRootAvailable, iFrameContentWindowGetter, eventTargetGetter, eventCurrentTargetGetter, focusEventRelatedTargetGetter, };

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

exports.ShadowRootHostGetter = ShadowRootHostGetter;
const ShadowRootInnerHTMLSetter = typeof window.ShadowRoot !== 'undefined'
? language_1.getOwnPropertyDescriptor(window.ShadowRoot.prototype, 'innerHTML').set
: () => {
throw new Error('Internal Error: Missing ShadowRoot');
};
exports.ShadowRootInnerHTMLSetter = ShadowRootInnerHTMLSetter;
const dispatchEvent = 'EventTarget' in window ? EventTarget.prototype.dispatchEvent : Node.prototype.dispatchEvent; // IE11

@@ -24,0 +18,0 @@ exports.dispatchEvent = dispatchEvent;

@@ -26,2 +26,3 @@ declare const hasAttribute: (qualifiedName: string) => boolean, getAttribute: (qualifiedName: string) => string | null, getAttributeNS: (namespace: string | null, localName: string) => string | null, setAttribute: (qualifiedName: string, value: string) => void, setAttributeNS: (namespace: string | null, qualifiedName: string, value: string) => void, removeAttribute: (qualifiedName: string) => void, removeAttributeNS: (namespace: string | null, localName: string) => void, querySelector: {

declare const innerHTMLSetter: (this: Element, s: string) => void;
declare const outerHTMLSetter: (this: Element, s: string) => void;
declare const tagNameGetter: (this: Element) => string;

@@ -31,2 +32,2 @@ declare const tabIndexGetter: (this: HTMLElement) => number;

declare const childrenGetter: (this: HTMLElement) => HTMLCollectionOf<Element>;
export { addEventListener, removeEventListener, hasAttribute, getAttribute, getAttributeNS, setAttribute, setAttributeNS, removeAttribute, removeAttributeNS, querySelector, querySelectorAll, getBoundingClientRect, getElementsByTagName, getElementsByClassName, getElementsByTagNameNS, tagNameGetter, tabIndexGetter, innerHTMLSetter, matches, childrenGetter, };
export { addEventListener, removeEventListener, hasAttribute, getAttribute, getAttributeNS, setAttribute, setAttributeNS, removeAttribute, removeAttributeNS, querySelector, querySelectorAll, getBoundingClientRect, getElementsByTagName, getElementsByClassName, getElementsByTagNameNS, tagNameGetter, tabIndexGetter, innerHTMLSetter, outerHTMLSetter, matches, childrenGetter, };

@@ -39,2 +39,6 @@ "use strict";

exports.innerHTMLSetter = innerHTMLSetter;
const outerHTMLSetter = language_1.hasOwnProperty.call(Element.prototype, 'outerHTML')
? language_1.getOwnPropertyDescriptor(Element.prototype, 'outerHTML').set
: language_1.getOwnPropertyDescriptor(HTMLElement.prototype, 'outerHTML').set; // IE11
exports.outerHTMLSetter = outerHTMLSetter;
const tagNameGetter = language_1.getOwnPropertyDescriptor(Element.prototype, 'tagName').get;

@@ -41,0 +45,0 @@ exports.tagNameGetter = tagNameGetter;

@@ -6,3 +6,3 @@ 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 textContextSetter: (this: Node, s: string) => void;
declare const childNodesGetter: (this: Node) => NodeList;
declare const childNodesGetter: (this: Node) => NodeListOf<Node & Element>;
declare const nodeValueSetter: (this: Node, value: string) => void;

@@ -9,0 +9,0 @@ declare const nodeValueGetter: (this: Node) => string;

export { patchEvent } from './events';
export { PatchedSlotElement } from './slot';
export { PatchedCustomElement } from './custom-element';
export { PatchedElement } from './element';
export { setCSSToken, PatchedNode } from './node';
export { markElementAsPortal } from './portal';
export { PatchedElement, PatchedIframeElement } from './traverse';
export { PatchedIframeElement } from './iframe';

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

exports.PatchedSlotElement = slot_1.PatchedSlotElement;
var custom_element_1 = require("./custom-element");
exports.PatchedCustomElement = custom_element_1.PatchedCustomElement;
var element_1 = require("./element");
exports.PatchedElement = element_1.PatchedElement;
var node_1 = require("./node");

@@ -21,5 +21,4 @@ exports.setCSSToken = node_1.setCSSToken;

exports.markElementAsPortal = portal_1.markElementAsPortal;
var traverse_1 = require("./traverse");
exports.PatchedElement = traverse_1.PatchedElement;
exports.PatchedIframeElement = traverse_1.PatchedIframeElement;
var iframe_1 = require("./iframe");
exports.PatchedIframeElement = iframe_1.PatchedIframeElement;
//# sourceMappingURL=faux.js.map

@@ -5,2 +5,8 @@ export interface HTMLIFrameElementConstructor {

}
/**
* This is needed for compat mode to function because we don't use a real WeakMap,
* instead compat will attempt to extract the proxy internal slot out of a cross
* domain iframe, just to see if it is a proxy or not, and that will throw. To prevent
* that from throwing, we just protect it by wrapping all iframes.
*/
export declare function wrapIframeWindow(win: Window): {

@@ -21,1 +27,2 @@ postMessage(): any;

};
export declare function PatchedIframeElement(elm: HTMLIFrameElement): HTMLIFrameElementConstructor;
"use strict";
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
Object.defineProperty(exports, "__esModule", { value: true });
const element_1 = require("./element");
const dom_1 = require("../env/dom");
/**
* This is needed for compat mode to function because we don't use a real WeakMap,
* instead compat will attempt to extract the proxy internal slot out of a cross
* domain iframe, just to see if it is a proxy or not, and that will throw. To prevent
* that from throwing, we just protect it by wrapping all iframes.
*/
Object.defineProperty(exports, "__esModule", { value: true });
function wrapIframeWindow(win) {

@@ -64,2 +66,16 @@ return {

exports.wrapIframeWindow = wrapIframeWindow;
function PatchedIframeElement(elm) {
const Ctor = element_1.PatchedElement(elm);
return class PatchedHTMLIframeElement extends Ctor {
get contentWindow() {
const original = dom_1.iFrameContentWindowGetter.call(this);
if (original) {
const wrapped = wrapIframeWindow(original);
return wrapped;
}
return original;
}
};
}
exports.PatchedIframeElement = PatchedIframeElement;
//# sourceMappingURL=iframe.js.map

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

export interface NodeConstructor {
interface NodeConstructor {
prototype: Node;

@@ -21,1 +21,2 @@ new (): Node;

export declare const getInternalChildNodes: (node: Node) => NodeListOf<ChildNode>;
export {};
export declare function isDelegatingFocus(host: HTMLElement): boolean;
export declare function getHost(root: SyntheticShadowRootInterface): HTMLElement;
export declare function getShadowRoot(elm: HTMLElement): SyntheticShadowRootInterface;
export declare function hasSyntheticShadow(elm: HTMLElement): boolean;
export declare function attachShadow(elm: HTMLElement, options: ShadowRootInit): SyntheticShadowRootInterface;

@@ -5,0 +6,0 @@ export interface SyntheticShadowRootInterface extends ShadowRoot {

@@ -45,2 +45,6 @@ "use strict";

exports.getShadowRoot = getShadowRoot;
function hasSyntheticShadow(elm) {
return !language_1.isUndefined(fields_1.getInternalField(elm, InternalSlot));
}
exports.hasSyntheticShadow = hasSyntheticShadow;
function attachShadow(elm, options) {

@@ -166,2 +170,38 @@ if (!language_1.isUndefined(fields_1.getInternalField(elm, InternalSlot))) {

const NodePatchDescriptors = {
insertBefore: {
writable: true,
enumerable: true,
configurable: true,
value(newChild, refChild) {
node_1.insertBefore.call(getHost(this), newChild, refChild);
return newChild;
},
},
removeChild: {
writable: true,
enumerable: true,
configurable: true,
value(oldChild) {
node_1.removeChild.call(getHost(this), oldChild);
return oldChild;
},
},
appendChild: {
writable: true,
enumerable: true,
configurable: true,
value(newChild) {
node_1.appendChild.call(getHost(this), newChild);
return newChild;
},
},
replaceChild: {
writable: true,
enumerable: true,
configurable: true,
value(newChild, oldChild) {
node_1.replaceChild.call(getHost(this), newChild, oldChild);
return oldChild;
},
},
addEventListener: {

@@ -168,0 +208,0 @@ writable: true,

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

export interface HTMLSlotElementConstructor {
interface HTMLSlotElementConstructor {
prototype: HTMLSlotElement;

@@ -7,1 +7,2 @@ new (): HTMLSlotElement;

export declare function PatchedSlotElement(elm: HTMLSlotElement): HTMLSlotElementConstructor;
export {};

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

const static_html_collection_1 = require("../shared/static-html-collection");
const element_2 = require("./element");
// We can use a single observer without having to worry about leaking because

@@ -78,3 +79,3 @@ // "Registered observers in a node’s registered observer list have a weak

function PatchedSlotElement(elm) {
const Ctor = traverse_1.PatchedElement(elm);
const Ctor = element_2.PatchedElement(elm);
const { addEventListener: superAddEventListener } = elm;

@@ -81,0 +82,0 @@ return class PatchedHTMLSlotElement extends Ctor {

@@ -1,5 +0,3 @@

import { HTMLIFrameElementConstructor } from './iframe';
import { SyntheticShadowRootInterface } from './shadow-root';
import '../polyfills/node-get-root-node/main';
import { HTMLElementConstructor } from './custom-element';
export declare const patchedGetRootNode: (options?: GetRootNodeOptions | undefined) => Node;

@@ -11,6 +9,5 @@ export declare function getNodeOwner(node: Node): HTMLElement | null;

export declare function getAllMatches(owner: HTMLElement, nodeList: NodeList | Node[]): Array<Element & Node>;
export declare function getFirstMatch(owner: HTMLElement, nodeList: NodeList): Element | null;
export declare function shadowRootQuerySelector(root: SyntheticShadowRootInterface, selector: string): Element | null;
export declare function shadowRootQuerySelectorAll(root: SyntheticShadowRootInterface, selector: string): Element[];
export declare function getFilteredChildNodes(node: Node): Element[];
export declare function PatchedElement(elm: HTMLElement): HTMLElementConstructor;
export declare function PatchedIframeElement(elm: HTMLIFrameElement): HTMLIFrameElementConstructor;

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

const element_1 = require("../env/element");
const iframe_1 = require("./iframe");
const language_1 = require("../shared/language");
const language_2 = require("../shared/language");
const outer_html_1 = require("../3rdparty/polymer/outer-html");
const shadow_root_1 = require("./shadow-root");
const static_node_list_1 = require("../shared/static-node-list");
const dom_1 = require("../env/dom");
const slot_1 = require("./slot");

@@ -62,76 +58,2 @@ require("../polyfills/node-get-root-node/main");

exports.isNodeOwnedBy = isNodeOwnedBy;
// when finding a slot in the DOM, we can fold it if it is contained
// inside another slot.
function foldSlotElement(slot) {
let parent = node_2.parentElementGetter.call(slot);
while (!language_2.isNull(parent) && isSlotElement(parent)) {
slot = parent;
parent = node_2.parentElementGetter.call(slot);
}
return slot;
}
function isNodeSlotted(host, node) {
if (process.env.NODE_ENV !== 'production') {
assert_1.default.invariant(host instanceof HTMLElement, `isNodeSlotted() should be called with a host as the first argument instead of ${host}`);
assert_1.default.invariant(node instanceof Node, `isNodeSlotted() should be called with a node as the second argument instead of ${node}`);
assert_1.default.isTrue(node_2.compareDocumentPosition.call(node, host) & node_2.DOCUMENT_POSITION_CONTAINS, `isNodeSlotted() should never be called with a node that is not a child node of ${host}`);
}
const hostKey = node_1.getNodeKey(host);
// this routine assumes that the node is coming from a different shadow (it is not owned by the host)
// just in case the provided node is not an element
let currentElement = node instanceof Element ? node : node_2.parentElementGetter.call(node);
while (!language_2.isNull(currentElement) && currentElement !== host) {
const elmOwnerKey = node_1.getNodeNearestOwnerKey(currentElement);
const parent = node_2.parentElementGetter.call(currentElement);
if (elmOwnerKey === hostKey) {
// we have reached an element inside the host's template, and only if
// that element is an slot, then the node is considered slotted
// TODO: add the examples
return isSlotElement(currentElement);
}
else if (parent === host) {
return false;
}
else if (!language_2.isNull(parent) && node_1.getNodeNearestOwnerKey(parent) !== elmOwnerKey) {
// we are crossing a boundary of some sort since the elm and its parent
// have different owner key. for slotted elements, this is possible
// if the parent happens to be a slot.
if (isSlotElement(parent)) {
/**
* the slot parent might be allocated inside another slot, think of:
* <x-root> (<--- root element)
* <x-parent> (<--- own by x-root)
* <x-child> (<--- own by x-root)
* <slot> (<--- own by x-child)
* <slot> (<--- own by x-parent)
* <div> (<--- own by x-root)
*
* while checking if x-parent has the div slotted, we need to traverse
* up, but when finding the first slot, we skip that one in favor of the
* most outer slot parent before jumping into its corresponding host.
*/
currentElement = getNodeOwner(foldSlotElement(parent));
if (!language_2.isNull(currentElement)) {
if (currentElement === host) {
// the slot element is a top level element inside the shadow
// of a host that was allocated into host in question
return true;
}
else if (node_1.getNodeNearestOwnerKey(currentElement) === hostKey) {
// the slot element is an element inside the shadow
// of a host that was allocated into host in question
return true;
}
}
}
else {
return false;
}
}
else {
currentElement = parent;
}
}
return false;
}
function shadowRootChildNodes(root) {

@@ -164,52 +86,3 @@ const elm = shadow_root_1.getHost(root);

}
function getAllSlottedMatches(host, nodeList) {
const filteredAndPatched = [];
for (let i = 0, len = nodeList.length; i < len; i += 1) {
const node = nodeList[i];
if (!isNodeOwnedBy(host, node) && isNodeSlotted(host, node)) {
language_1.ArrayPush.call(filteredAndPatched, node);
}
}
return filteredAndPatched;
}
function getFirstSlottedMatch(host, nodeList) {
for (let i = 0, len = nodeList.length; i < len; i += 1) {
const node = nodeList[i];
if (!isNodeOwnedBy(host, node) && isNodeSlotted(host, node)) {
return node;
}
}
return null;
}
function lightDomQuerySelectorAll(elm, selectors) {
const owner = getNodeOwner(elm);
if (language_2.isNull(owner)) {
return [];
}
const nodeList = element_1.querySelectorAll.call(elm, selectors);
if (node_1.getNodeKey(elm)) {
// it is a custom element, and we should then filter by slotted elements
return getAllSlottedMatches(elm, nodeList);
}
else {
// regular element, we should then filter by ownership
return getAllMatches(owner, nodeList);
}
}
function lightDomQuerySelector(elm, selector) {
const owner = getNodeOwner(elm);
if (language_2.isNull(owner)) {
// the it is a root, and those can't have a lightdom
return null;
}
const nodeList = element_1.querySelectorAll.call(elm, selector);
if (node_1.getNodeKey(elm)) {
// it is a custom element, and we should then filter by slotted elements
return getFirstSlottedMatch(elm, nodeList);
}
else {
// regular element, we should then filter by ownership
return getFirstMatch(owner, nodeList);
}
}
exports.getFirstMatch = getFirstMatch;
function shadowRootQuerySelector(root, selector) {

@@ -260,48 +133,2 @@ const elm = shadow_root_1.getHost(root);

exports.getFilteredChildNodes = getFilteredChildNodes;
function PatchedElement(elm) {
const Ctor = node_1.PatchedNode(elm);
// Note: Element.getElementsByTagName and Element.getElementsByClassName are purposefully
// omitted from the list of patched methods. In order for the querySelector* APIs to run
// properly in jsdom, we need to make sure those methods doesn't respect the shadow DOM
// semantic.
// https://github.com/salesforce/lwc/pull/1179#issuecomment-484041707
return class PatchedHTMLElement extends Ctor {
querySelector(selector) {
return lightDomQuerySelector(this, selector);
}
querySelectorAll(selectors) {
return static_node_list_1.createStaticNodeList(lightDomQuerySelectorAll(this, selectors));
}
get innerHTML() {
const childNodes = node_1.getInternalChildNodes(this);
let innerHTML = '';
for (let i = 0, len = childNodes.length; i < len; i += 1) {
innerHTML += outer_html_1.getOuterHTML(childNodes[i]);
}
return innerHTML;
}
set innerHTML(value) {
element_1.innerHTMLSetter.call(this, value);
}
get outerHTML() {
return outer_html_1.getOuterHTML(this);
}
};
}
exports.PatchedElement = PatchedElement;
function PatchedIframeElement(elm) {
const Ctor = PatchedElement(elm);
// @ts-ignore type-mismatch
return class PatchedHTMLIframeElement extends Ctor {
get contentWindow() {
const original = dom_1.iFrameContentWindowGetter.call(this);
if (original) {
const wrapped = iframe_1.wrapIframeWindow(original);
return wrapped;
}
return original;
}
};
}
exports.PatchedIframeElement = PatchedIframeElement;
//# sourceMappingURL=traverse.js.map
{
"name": "@lwc/synthetic-shadow",
"version": "0.37.3-alpha9",
"version": "0.38.0-alpha1",
"description": "Synthetic Shadow Root for LWC",

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

},
"gitHead": "47b5590bcc9f1b43fc4e5524a30c1fae042b20d7"
"gitHead": "1477d56275cab6ba33ae45bc18a726434fa83410"
}

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

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