lwc 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +578 -384
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +578 -384
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -9
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +552 -360
  5. package/dist/engine-dom/iife/es5/engine-dom.js +630 -335
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -9
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +598 -311
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +578 -384
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -9
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +552 -360
  11. package/dist/engine-dom/umd/es5/engine-dom.js +630 -335
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -9
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +598 -311
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +647 -454
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -9
  16. package/dist/engine-server/esm/es2017/engine-server.js +647 -454
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +115 -13
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +115 -13
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +115 -13
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +119 -13
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +119 -13
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +115 -13
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +115 -13
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +119 -13
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +119 -13
  30. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/iife/es5/wire-service.js +3 -3
  34. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  35. package/dist/wire-service/iife/es5/wire-service_debug.js +3 -3
  36. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  37. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  38. package/dist/wire-service/umd/es5/wire-service.js +3 -3
  39. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  40. package/dist/wire-service/umd/es5/wire-service_debug.js +3 -3
  41. package/package.json +8 -8
@@ -1,4 +1,4 @@
1
- !function(){"use strict";const{assign:e,create:t,defineProperties:n,defineProperty:l,freeze:o,getOwnPropertyDescriptor:r,getOwnPropertyNames:i,getPrototypeOf:a,hasOwnProperty:c,isFrozen:u,keys:s,seal:h,setPrototypeOf:f}=Object,{filter:p,find:g,indexOf:m,join:d,map:b,push:E,reduce:y,reverse:w,slice:T,splice:v,unshift:N,forEach:L}=Array.prototype,{charCodeAt:M,replace:C,slice:S,toLowerCase:O}=String.prototype;function H(e){return void 0===e}function A(e){return null===e}function _(e){return!0===e}function R(e){return!1===e}function P(e){return"function"==typeof e}function D(e){return"object"==typeof e}const $=function(){if("object"==typeof globalThis)return globalThis;let e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}(),I="$shadowResolver$",B="$shadowToken$",k=Node,x=k.prototype,{DOCUMENT_POSITION_CONTAINED_BY:F,DOCUMENT_POSITION_CONTAINS:W,DOCUMENT_POSITION_PRECEDING:U,DOCUMENT_POSITION_FOLLOWING:j,ELEMENT_NODE:K,TEXT_NODE:G,CDATA_SECTION_NODE:q,PROCESSING_INSTRUCTION_NODE:X,COMMENT_NODE:Y,DOCUMENT_FRAGMENT_NODE:V}=k,{appendChild:z,cloneNode:J,compareDocumentPosition:Q,insertBefore:Z,removeChild:ee,replaceChild:te,hasChildNodes:ne}=x,{contains:le}=HTMLElement.prototype,oe=r(x,"firstChild").get,re=r(x,"lastChild").get,ie=r(x,"textContent").get,ae=r(x,"parentNode").get,ce=r(x,"ownerDocument").get,ue=c.call(x,"parentElement")?r(x,"parentElement").get:r(HTMLElement.prototype,"parentElement").get,se=r(x,"textContent").set,he=c.call(x,"childNodes")?r(x,"childNodes").get:r(HTMLElement.prototype,"childNodes").get,fe=c.call(x,"isConnected")?r(x,"isConnected").get:function(){const e=ce.call(this);return null===e||0!=(Q.call(e,this)&F)},{getAttribute:pe,getBoundingClientRect:ge,getElementsByTagName:me,getElementsByTagNameNS:de,hasAttribute:be,querySelector:Ee,querySelectorAll:ye,removeAttribute:we,setAttribute:Te}=Element.prototype,ve=c.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:()=>{throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},Ne=r(Element.prototype,"childElementCount").get,Le=r(Element.prototype,"firstElementChild").get,Me=r(Element.prototype,"lastElementChild").get,Ce=r(HTMLElement.prototype,"innerText"),Se=Ce?Ce.get:null,Oe=Ce?Ce.set:null,He=r(HTMLElement.prototype,"outerText"),Ae=He?He.get:null,_e=He?He.set:null,Re=c.call(Element.prototype,"innerHTML")?r(Element.prototype,"innerHTML"):r(HTMLElement.prototype,"innerHTML"),Pe=Re.get,De=Re.set,$e=c.call(Element.prototype,"outerHTML")?r(Element.prototype,"outerHTML"):r(HTMLElement.prototype,"outerHTML"),Ie=$e.get,Be=$e.set,ke=r(Element.prototype,"tagName").get,xe=r(HTMLElement.prototype,"tabIndex"),Fe=xe.get,We=xe.set,Ue=c.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,je=c.call(Element.prototype,"children")?r(Element.prototype,"children").get:r(HTMLElement.prototype,"children").get,{getElementsByClassName:Ke}=HTMLElement.prototype,Ge=c.call(Element.prototype,"shadowRoot")?r(Element.prototype,"shadowRoot").get:()=>null;let qe,Xe;"undefined"!=typeof HTMLSlotElement?(qe=HTMLSlotElement.prototype.assignedNodes,Xe=HTMLSlotElement.prototype.assignedElements):(qe=()=>{throw new TypeError("assignedNodes() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")},Xe=()=>{throw new TypeError("assignedElements() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")});const Ye=r(Event.prototype,"target").get,Ve=r(Event.prototype,"currentTarget").get,ze=r(FocusEvent.prototype,"relatedTarget").get,Je=c.call(Event.prototype,"composedPath")?Event.prototype.composedPath:()=>[],Qe=r(Document.prototype,"activeElement").get,Ze=c.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,et=c.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,tt=r(Document.prototype,"defaultView").get,{createComment:nt,querySelectorAll:lt,getElementById:ot,getElementsByClassName:rt,getElementsByTagName:it,getElementsByTagNameNS:at}=Document.prototype,{getElementsByName:ct}=HTMLDocument.prototype,{addEventListener:ut,removeEventListener:st,getComputedStyle:ht,getSelection:ft}=window,pt=MutationObserver,gt=pt.prototype.observe;let mt=null;"undefined"!=typeof ShadowRoot&&(mt=ShadowRoot);const dt=!A(mt),bt=A(mt)?()=>!1:e=>e instanceof mt;const{createElement:Et}=Document.prototype;function yt(e){const t=ce.call(e);return null===t?e:t}function wt(e){const t=yt(e),n=tt.call(t);if(null===n)throw new TypeError;return n}let Tt;function vt(e){if(H(Tt)){const t=yt(e);Tt=t.body&&"temporary-bypass"===pe.call(t.body,"data-global-patching-bypass")}return _(Tt)}function Nt(e){const t=e.length,n=[];if(t>0)for(let l=0;l<t;l++)n[l]=e[l];return n}"undefined"==typeof HTMLSlotElement&&function(){class e{}f(e,HTMLElement.constructor),f(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,l(Document.prototype,"createElement",{value:function(t,n){const l=Et.apply(this,T.call(arguments));return 4===t.length&&115===M.call(t,0)&&108===M.call(t,1)&&111===M.call(t,2)&&116===M.call(t,3)&&f(l,e.prototype),l}})}();const Lt="undefined"!=typeof EventTarget?EventTarget.prototype:k.prototype,{addEventListener:Mt,dispatchEvent:Ct,removeEventListener:St}=Lt,Ot=new WeakMap,Ht=new WeakMap;function At(e,t,n){if(t===n)return!0;let l=Ht.get(e);return H(l)&&(l=e.composedPath(),Ht.set(e,l)),l.includes(n)}function _t(e){if(!function(e){return P(e)||D(e)&&!A(e)&&P(e.handleEvent)}(e))return e;let t=Ot.get(e);return H(t)&&(t=function(t){const n=Ve.call(t);if(At(t,$t(t),n))return P(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Ot.set(e,t)),t}const Rt=new WeakMap,Pt=new WeakMap;function Dt(e){let n=Pt.get(e);return H(n)&&(n=t(null),Pt.set(e,n)),n}function $t(e){var t;return null!==(t=rl.get(e))&&void 0!==t?t:Ye.call(e)}const It=new WeakMap;function Bt(e){if(!P(e))throw new TypeError;let t=It.get(e);return H(t)&&(t=function(t){let n=Ve.call(t);bt(n)||(n=Qn(n));At(t,$t(t),n)&&e.call(n,t)},t.placement=1,It.set(e,t)),t}const kt=new WeakMap;function xt(e){if(!P(e))throw new TypeError;let t=kt.get(e);return H(t)&&(t=function(t){const n=Ve.call(t);At(t,$t(t),n)&&e.call(n,t)},t.placement=0,kt.set(e,t)),t}function Ft(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:r,stopPropagation:i}=e,a=Dt(Ve.call(e))[o];l(e,"stopImmediatePropagation",{value(){t=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0}),l(e,"stopPropagation",{value(){n=!0,i.call(e)},writable:!0,enumerable:!0,configurable:!0});const c=T.call(a);function u(n){L.call(c,(l=>{R(t)&&l.placement===n&&-1!==m.call(a,l)&&l.call(void 0,e)}))}Rt.set(e,1),u(1),R(t)&&R(n)&&(Rt.set(e,0),u(0)),Rt.set(e,2)}function Wt(e,t,n){const l=Dt(e);let o=l[t];H(o)&&(o=l[t]=[]),-1===m.call(o,n)&&(0===o.length&&Mt.call(e,t,Ft),E.call(o,n))}function Ut(e,t,n){let l,o;H(o=Dt(e)[t])||-1===(l=m.call(o,n))||(v.call(o,l,1),0===o.length&&St.call(e,t,Ft))}function jt(e,t,n){if(P(t)){Wt(this,e,xt(t))}}function Kt(e,t,n){if(P(t)){Ut(this,e,xt(t))}}const Gt="$$HostElementKey$$",qt="$$ShadowedNodeKey$$";function Xt(e,t,n){const l=e;{const{value:e}=n;l[t]=e}}function Yt(e){return e[Gt]}function Vt(e){let t,n=e;for(;!A(n);){if(t=Yt(n),!H(t))return t;n=ae.call(n)}}function zt(e){return e[qt]}function Jt(e){return!H(Yt(e))}function Qt(e){let t=ue.call(e);for(;!A(t)&&nn(t);)e=t,t=ue.call(e);return e}function Zt(e,t){const n=zt(e);let l=t instanceof Element?t:ue.call(t);for(;!A(l)&&l!==e;){const t=Vt(l),o=ue.call(l);if(t===n)return nn(l);if(o===e)return!1;if(A(o)||Vt(o)===t)l=o;else{if(!nn(o))return!1;if(l=en(Qt(o)),!A(l)){if(l===e)return!0;if(Vt(l)===n)return!0}}}return!1}function en(e){if(!(e instanceof k))return null;const t=Vt(e);if(H(t))return null;let n=e;for(;!A(n)&&zt(n)!==t;)n=ae.call(n);return A(n)?null:n}function tn(e){return nn(e)&&Jt(e)}function nn(e){return e instanceof HTMLSlotElement}function ln(e,t){const n=Vt(t);return H(n)||zt(e)===n}function on(e){const t=Jn(e);return cn(t,Nt(he.call(t)))}function rn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];!ln(e,o)&&Zt(e,o)&&E.call(n,o)}return n}function an(e,t){for(let n=0,l=t.length;n<l;n+=1){const l=t[n];if(!ln(e,l)&&Zt(e,l))return l}return null}function cn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];ln(e,o)&&E.call(n,o)}return n}function un(e,t){for(let n=0,l=t.length;n<l;n+=1)if(ln(e,t[n]))return t[n];return null}function sn(e){if(!Zn(e)&&!nn(e)){return Nt(he.call(e))}if(Zn(e)){const t=Nt(ye.call(e,"slot")),n=Yn(Qn(e));return y.call(t,((e,t)=>(n===Yn(t)&&E.apply(e,hn(t)),e)),[])}{const t=Nt(he.call(e)),n=Yn(e);return p.call(t,(e=>n===Yn(e)))}}function hn(e){const t=en(e);if(A(t))return[];const n=Nt(he.call(e));return p.call(n,(e=>!Jt(e)||!ln(t,e)))}function fn(e){if(e.nodeType===K){const t=sn(e);let n="";for(let e=0,l=t.length;e<l;e+=1){const l=t[e];l.nodeType!==Y&&(n+=fn(l))}return n}return e.nodeValue}const pn=new WeakMap;function gn(){throw new TypeError("Illegal constructor")}function mn(e){const n=t(gn.prototype);return pn.set(n,e),L.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}gn.prototype=t(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:gn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return pn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(pn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return b.call(pn.get(this),((e,t)=>[t,e]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return b.call(pn.get(this),((e,t)=>t))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return pn.get(this)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=pn.get(this);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}},[Symbol.toStringTag]:{configurable:!0,get:()=>"NodeList"},toString:{writable:!0,configurable:!0,value:()=>"[object NodeList]"}}),f(gn,NodeList);const dn=new WeakMap;function bn(){throw new TypeError("Illegal constructor")}function En(e){const n=t(bn.prototype);return dn.set(n,e),L.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}bn.prototype=t(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:bn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return dn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(""===e)return null;const t=dn.get(this);for(let n=0,l=t.length;n<l;n++){const n=t[l];if(e===pe.call(n,"id")||e===pe.call(n,"name"))return n}return null}},[Symbol.toStringTag]:{configurable:!0,get:()=>"HTMLCollection"},toString:{writable:!0,configurable:!0,value:()=>"[object HTMLCollection]"}}),f(bn,HTMLCollection);const yn=/[&\u00A0"]/g,wn=/[&\u00A0<>]/g,{replace:Tn,toLowerCase:vn}=String.prototype;function Nn(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function Ln(e){return Tn.call(e,yn,Nn)}const Mn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Cn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Sn(e){switch(e.nodeType){case K:{const{attributes:t}=e,n=ke.call(e);let l="<"+vn.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+Ln(e.value)+'"';return l+=">",Mn.has(n)?l:l+function(e){let t="";const n=sn(e);for(let e=0,l=n.length;e<l;e+=1)t+=Sn(n[e]);return t}(e)+"</"+vn.call(n)+">"}case G:{const{data:n,parentNode:l}=e;return l instanceof Element&&Cn.has(ke.call(l))?n:(t=n,Tn.call(t,wn,Nn))}case q:return`<!CDATA[[${e.data}]]>`;case X:return`<?${e.target} ${e.data}?>`;case Y:return`\x3c!--${e.data}--\x3e`;default:return""}var t}$.lwcRuntimeFlags||Object.defineProperty($,"lwcRuntimeFlags",{value:t(null)});const On=$.lwcRuntimeFlags;function Hn(e){return tn(e)||Zn(e)}function An(e,t){const n=en(e);if(t===n)return Qn(n);if(t instanceof Element){if(Vt(e)===Vt(t))return t;if(!A(n)&&nn(t)){const e=en(t);if(!A(e)&&ln(n,e))return e}}return null}function _n(){return jn(this).length>0}function Rn(){return jn(this)[0]||null}function Pn(){const e=jn(this);return e[e.length-1]||null}function Dn(){return fn(this)}function $n(){const e=ae.call(this);return A(e)?e:An(this,e)}function In(){const e=ae.call(this);if(A(e))return null;const t=An(this,e);return t instanceof Element?t:null}function Bn(e){return this.getRootNode()===e?10:Yt(this)!==Yt(e)?35:Q.call(this,e)}function kn(e){return null!=e&&Yt(this)===Yt(e)&&0!=(Q.call(this,e)&F)}function xn(e){const t=J.call(this,!1);if(!e)return t;const n=jn(this);for(let e=0,l=n.length;e<l;e+=1)t.appendChild(n[e].cloneNode(!0));return t}function Fn(){if(Zn(this)){const e=en(this);return mn(A(e)?[]:cn(e,sn(this)))}return he.call(this)}const Wn=k.prototype.getRootNode,Un=H(Wn)?function(){let e,t=this;for(;!A(e=ae.call(t));)t=e;return t}:Wn;n(k.prototype,{firstChild:{get(){return Hn(this)?Rn.call(this):oe.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Hn(this)?Pn.call(this):re.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return On.ENABLE_NODE_PATCH?vt(this)?ie.call(this):Dn.call(this):Jt(this)||Zn(this)?Dn.call(this):ie.call(this)},set:function(e){se.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get(){if(Jt(this))return $n.call(this);const e=ae.call(this);return!A(e)&&tn(e)?en(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(Jt(this))return In.call(this);const e=ue.call(this);return!A(e)&&tn(e)?en(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Hn(this)?Fn.call(this):he.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Hn(this)?_n.call(this):ne.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return vt(this)?Q.call(this,e):Bn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e||(On.ENABLE_NODE_PATCH?vt(this)?le.call(this,e):kn.call(this,e):null!=e&&(Jt(this)||Zn(this)?kn.call(this,e):le.call(this,e)))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return On.ENABLE_NODE_PATCH?_(e)?vt(this)?J.call(this,e):xn.call(this,e):J.call(this,e):Jt(this)||Zn(this)?xn.call(this,e):J.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){return _(!H(e)&&!!e.composed)?Un.call(this,e):function(e){const t=en(e);return A(t)?Un.call(e):Qn(t)}(this)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return fe.call(this)}}});const jn=function(e){return e.childNodes};function Kn(e,t,n,l){const o=et.call(t,n,l),r=[],i=function(e){var t;const n=[];let l=e.getRootNode();for(;!H(l);)n.push(l),l=null===(t=l.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!A(o))for(let e=0;e<o.length;e++){const t=o[e];-1===i.indexOf(t.getRootNode())||tn(t)||r.push(t)}return r}c.call(HTMLElement.prototype,"contains")&&l(HTMLElement.prototype,"contains",r(k.prototype,"contains")),c.call(HTMLElement.prototype,"parentElement")&&l(HTMLElement.prototype,"parentElement",r(k.prototype,"parentElement"));const Gn=new WeakMap,{createDocumentFragment:qn}=document;function Xn(e){const t=Gn.get(e);if(H(t))throw new TypeError;return t}function Yn(e){return e.$shadowResolver$}function Vn(e,t){e.$shadowResolver$=t}function zn(e){return Xn(e).delegatesFocus}function Jn(e){return Xn(e).host}function Qn(e){return Xn(e).shadowRoot}function Zn(e){const t=Gn.get(e);return!H(t)&&e===t.host}function el(e){const t=Gn.get(e);return!H(t)&&e===t.shadowRoot}l(k.prototype,I,{set(e){var t,n;H(e)||(this.$$ShadowResolverKey$$=e,t=this,n=e.nodeKey,Xt(t,Gt,{value:n,configurable:!0}))},get(){return this.$$ShadowResolverKey$$},configurable:!0,enumerable:!0}),l($,"$isNativeShadowRootDefined$",{value:dt});let tl=0;function nl(e,t){if(Gn.has(e))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");const{mode:n,delegatesFocus:l}=t,o=yt(e),r=qn.call(o),i={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};Gn.set(r,i),Gn.set(e,i);const a=()=>r,c=a.nodeKey=tl++;return Xt(e,qt,{value:c}),Vn(r,a),f(r,al.prototype),r}const ll={constructor:{writable:!0,configurable:!0,value:al},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"}},ol={activeElement:{enumerable:!0,configurable:!0,get(){const e=Jn(this),t=yt(e),n=Qe.call(t);if(A(n))return n;if(0==(Q.call(e,n)&F))return null;let l=n;for(;!ln(e,l);)l=ue.call(l);return nn(l)?null:l}},delegatesFocus:{configurable:!0,get(){return Xn(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return sl(this,yt(Jn(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Kn(this,yt(Jn(this)),e,t)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get(){return Jn(this)}},mode:{configurable:!0,get(){return Xn(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},rl=new WeakMap,il={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Z.call(Jn(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ee.call(Jn(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return z.call(Jn(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return te.call(Jn(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){P(n)&&Wt(Jn(e),t,Bt(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return rl.set(e,this),Ct.apply(Jn(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){P(n)&&Ut(Jn(e),t,Bt(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return Jn(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return mn(on(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=Jn(this);return this===e?0:this.contains(e)?20:Q.call(t,e)&F?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=Jn(this);return 0!=(Q.call(t,e)&F)&&ln(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return jn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=jn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return jn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return fe.call(Jn(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 Jn(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=jn(this);let t="";for(let n=0,l=e.length;n<l;n+=1){const l=e[n];l.nodeType!==Y&&(t+=fn(l))}return t},set(e){const t=Jn(this);se.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!H(e)&&_(e.composed)?Jn(this).getRootNode(e):this}}};function al(){throw new TypeError("Illegal constructor")}function cl(e,t){const n=[];let l;if(e instanceof Window)l=e;else{if(!(e instanceof k))return n;l=e.getRootNode()}let o,r=e;for(;!A(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=A(e)?r.parentNode:e}else r=!el(r)&&!bt(r)||!t&&r===l?r instanceof k?r.parentNode:null:r.host;return o=e instanceof Window?e.document:yt(e),n[n.length-1]===o&&n.push(window),n}
1
+ !function(){"use strict";const{assign:e,create:t,defineProperties:n,defineProperty:l,freeze:o,getOwnPropertyDescriptor:r,getOwnPropertyNames:i,getPrototypeOf:a,hasOwnProperty:c,isFrozen:u,keys:s,seal:f,setPrototypeOf:h}=Object,{filter:p,find:g,indexOf:m,join:d,map:b,push:E,reduce:y,reverse:w,slice:T,splice:v,unshift:N,forEach:L}=Array.prototype,{charCodeAt:M,replace:C,slice:S,toLowerCase:O}=String.prototype;function H(e){return void 0===e}function A(e){return null===e}function _(e){return!0===e}function R(e){return!1===e}function P(e){return"function"==typeof e}function D(e){return"object"==typeof e}const $=function(){if("object"==typeof globalThis)return globalThis;let e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}(),I="$shadowResolver$",B="$shadowToken$",k=Node,x=k.prototype,{DOCUMENT_POSITION_CONTAINED_BY:F,DOCUMENT_POSITION_CONTAINS:W,DOCUMENT_POSITION_PRECEDING:U,DOCUMENT_POSITION_FOLLOWING:j,ELEMENT_NODE:K,TEXT_NODE:G,CDATA_SECTION_NODE:q,PROCESSING_INSTRUCTION_NODE:X,COMMENT_NODE:Y,DOCUMENT_FRAGMENT_NODE:V}=k,{appendChild:z,cloneNode:J,compareDocumentPosition:Q,insertBefore:Z,removeChild:ee,replaceChild:te,hasChildNodes:ne}=x,{contains:le}=HTMLElement.prototype,oe=r(x,"firstChild").get,re=r(x,"lastChild").get,ie=r(x,"textContent").get,ae=r(x,"parentNode").get,ce=r(x,"ownerDocument").get,ue=c.call(x,"parentElement")?r(x,"parentElement").get:r(HTMLElement.prototype,"parentElement").get,se=r(x,"textContent").set,fe=c.call(x,"childNodes")?r(x,"childNodes").get:r(HTMLElement.prototype,"childNodes").get,he=c.call(x,"isConnected")?r(x,"isConnected").get:function(){const e=ce.call(this);return null===e||0!=(Q.call(e,this)&F)},{getAttribute:pe,getBoundingClientRect:ge,getElementsByTagName:me,getElementsByTagNameNS:de,hasAttribute:be,querySelector:Ee,querySelectorAll:ye,removeAttribute:we,setAttribute:Te}=Element.prototype,ve=c.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:()=>{throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},Ne=r(Element.prototype,"childElementCount").get,Le=r(Element.prototype,"firstElementChild").get,Me=r(Element.prototype,"lastElementChild").get,Ce=r(HTMLElement.prototype,"innerText"),Se=Ce?Ce.get:null,Oe=Ce?Ce.set:null,He=r(HTMLElement.prototype,"outerText"),Ae=He?He.get:null,_e=He?He.set:null,Re=c.call(Element.prototype,"innerHTML")?r(Element.prototype,"innerHTML"):r(HTMLElement.prototype,"innerHTML"),Pe=Re.get,De=Re.set,$e=c.call(Element.prototype,"outerHTML")?r(Element.prototype,"outerHTML"):r(HTMLElement.prototype,"outerHTML"),Ie=$e.get,Be=$e.set,ke=r(Element.prototype,"tagName").get,xe=r(HTMLElement.prototype,"tabIndex"),Fe=xe.get,We=xe.set,Ue=c.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,je=c.call(Element.prototype,"children")?r(Element.prototype,"children").get:r(HTMLElement.prototype,"children").get,{getElementsByClassName:Ke}=HTMLElement.prototype,Ge=c.call(Element.prototype,"shadowRoot")?r(Element.prototype,"shadowRoot").get:()=>null,qe=c.call(Element.prototype,"assignedSlot")?r(Element.prototype,"assignedSlot").get:()=>null;let Xe,Ye;"undefined"!=typeof HTMLSlotElement?(Xe=HTMLSlotElement.prototype.assignedNodes,Ye=HTMLSlotElement.prototype.assignedElements):(Xe=()=>{throw new TypeError("assignedNodes() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")},Ye=()=>{throw new TypeError("assignedElements() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")});const Ve=r(Event.prototype,"target").get,ze=r(Event.prototype,"currentTarget").get,Je=r(FocusEvent.prototype,"relatedTarget").get,Qe=c.call(Event.prototype,"composedPath")?Event.prototype.composedPath:()=>[],Ze=r(Document.prototype,"activeElement").get,et=c.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,tt=c.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,nt=r(Document.prototype,"defaultView").get,{createComment:lt,querySelectorAll:ot,getElementById:rt,getElementsByClassName:it,getElementsByTagName:at,getElementsByTagNameNS:ct}=Document.prototype,{getElementsByName:ut}=HTMLDocument.prototype,{addEventListener:st,removeEventListener:ft,getComputedStyle:ht,getSelection:pt}=window,gt=MutationObserver,mt=gt.prototype.observe;let dt=null;"undefined"!=typeof ShadowRoot&&(dt=ShadowRoot);const bt=!A(dt),Et=A(dt)?()=>!1:e=>e instanceof dt;const{createElement:yt}=Document.prototype;function wt(e){const t=ce.call(e);return null===t?e:t}function Tt(e){const t=wt(e),n=nt.call(t);if(null===n)throw new TypeError;return n}let vt;function Nt(e){if(H(vt)){const t=wt(e);vt=t.body&&"temporary-bypass"===pe.call(t.body,"data-global-patching-bypass")}return _(vt)}function Lt(e){const t=e.length,n=[];if(t>0)for(let l=0;l<t;l++)n[l]=e[l];return n}"undefined"==typeof HTMLSlotElement&&function(){class e{}h(e,HTMLElement.constructor),h(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,l(Document.prototype,"createElement",{value:function(t,n){const l=yt.apply(this,T.call(arguments));return 4===t.length&&115===M.call(t,0)&&108===M.call(t,1)&&111===M.call(t,2)&&116===M.call(t,3)&&h(l,e.prototype),l}})}();const Mt="undefined"!=typeof EventTarget?EventTarget.prototype:k.prototype,{addEventListener:Ct,dispatchEvent:St,removeEventListener:Ot}=Mt,Ht=new WeakMap,At=new WeakMap;function _t(e,t,n){if(t===n)return!0;let l=At.get(e);return H(l)&&(l=e.composedPath(),At.set(e,l)),l.includes(n)}function Rt(e){if(!function(e){return P(e)||D(e)&&!A(e)&&P(e.handleEvent)}(e))return e;let t=Ht.get(e);return H(t)&&(t=function(t){const n=ze.call(t);if(_t(t,It(t),n))return P(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Ht.set(e,t)),t}const Pt=new WeakMap,Dt=new WeakMap;function $t(e){let n=Dt.get(e);return H(n)&&(n=t(null),Dt.set(e,n)),n}function It(e){var t;return null!==(t=cl.get(e))&&void 0!==t?t:Ve.call(e)}const Bt=new WeakMap;function kt(e){if(!P(e))throw new TypeError;let t=Bt.get(e);return H(t)&&(t=function(t){let n=ze.call(t);Et(n)||(n=tl(n));_t(t,It(t),n)&&e.call(n,t)},t.placement=1,Bt.set(e,t)),t}const xt=new WeakMap;function Ft(e){if(!P(e))throw new TypeError;let t=xt.get(e);return H(t)&&(t=function(t){const n=ze.call(t);_t(t,It(t),n)&&e.call(n,t)},t.placement=0,xt.set(e,t)),t}function Wt(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:r,stopPropagation:i}=e,a=$t(ze.call(e))[o];l(e,"stopImmediatePropagation",{value(){t=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0}),l(e,"stopPropagation",{value(){n=!0,i.call(e)},writable:!0,enumerable:!0,configurable:!0});const c=T.call(a);function u(n){L.call(c,(l=>{R(t)&&l.placement===n&&-1!==m.call(a,l)&&l.call(void 0,e)}))}Pt.set(e,1),u(1),R(t)&&R(n)&&(Pt.set(e,0),u(0)),Pt.set(e,2)}function Ut(e,t,n){const l=$t(e);let o=l[t];H(o)&&(o=l[t]=[]),-1===m.call(o,n)&&(0===o.length&&Ct.call(e,t,Wt),E.call(o,n))}function jt(e,t,n){let l,o;H(o=$t(e)[t])||-1===(l=m.call(o,n))||(v.call(o,l,1),0===o.length&&Ot.call(e,t,Wt))}function Kt(e,t,n){if(P(t)){Ut(this,e,Ft(t))}}function Gt(e,t,n){if(P(t)){jt(this,e,Ft(t))}}const qt="$$HostElementKey$$",Xt="$$ShadowedNodeKey$$";function Yt(e,t,n){const l=e;{const{value:e}=n;l[t]=e}}function Vt(e){return e[qt]}function zt(e){let t,n=e;for(;!A(n);){if(t=Vt(n),!H(t))return t;n=ae.call(n)}}function Jt(e){return e[Xt]}function Qt(e){return!H(Vt(e))}function Zt(e){return Qt(e)||nl(e)||function(e){if(e.nodeType!==k.ELEMENT_NODE)return!1;const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null,!1);let n;for(;!A(n=t.nextNode());)if(nl(n))return!0;return!1}(e)}function en(e){let t=ue.call(e);for(;!A(t)&&on(t);)e=t,t=ue.call(e);return e}function tn(e,t){const n=Jt(e);let l=t instanceof Element?t:ue.call(t);for(;!A(l)&&l!==e;){const t=zt(l),o=ue.call(l);if(t===n)return on(l);if(o===e)return!1;if(A(o)||zt(o)===t)l=o;else{if(!on(o))return!1;if(l=nn(en(o)),!A(l)){if(l===e)return!0;if(zt(l)===n)return!0}}}return!1}function nn(e){if(!(e instanceof k))return null;const t=zt(e);if(H(t))return null;let n=e;for(;!A(n)&&Jt(n)!==t;)n=ae.call(n);return A(n)?null:n}function ln(e){return on(e)&&Qt(e)}function on(e){return e instanceof HTMLSlotElement}function rn(e,t){const n=zt(t);return H(n)||Jt(e)===n}function an(e){const t=el(e);return sn(t,Lt(fe.call(t)))}function cn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];!rn(e,o)&&tn(e,o)&&E.call(n,o)}return n}function un(e,t){for(let n=0,l=t.length;n<l;n+=1){const l=t[n];if(!rn(e,l)&&tn(e,l))return l}return null}function sn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];rn(e,o)&&E.call(n,o)}return n}function fn(e,t){for(let n=0,l=t.length;n<l;n+=1)if(rn(e,t[n]))return t[n];return null}function hn(e){if(!nl(e)&&!on(e)){return Lt(fe.call(e))}if(nl(e)){const t=Lt(ye.call(e,"slot")),n=Jn(tl(e));return y.call(t,((e,t)=>(n===Jn(t)&&E.apply(e,pn(t)),e)),[])}{const t=Lt(fe.call(e)),n=Jn(e);return p.call(t,(e=>n===Jn(e)))}}function pn(e){const t=nn(e);if(A(t))return[];const n=Lt(fe.call(e));return p.call(n,(e=>!Qt(e)||!rn(t,e)))}function gn(e){if(e.nodeType===K){const t=hn(e);let n="";for(let e=0,l=t.length;e<l;e+=1){const l=t[e];l.nodeType!==Y&&(n+=gn(l))}return n}return e.nodeValue}const mn=new WeakMap;function dn(){throw new TypeError("Illegal constructor")}function bn(e){const n=t(dn.prototype);return mn.set(n,e),L.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}dn.prototype=t(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:dn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return mn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(mn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return b.call(mn.get(this),((e,t)=>[t,e]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return b.call(mn.get(this),((e,t)=>t))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return mn.get(this)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=mn.get(this);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}},[Symbol.toStringTag]:{configurable:!0,get:()=>"NodeList"},toString:{writable:!0,configurable:!0,value:()=>"[object NodeList]"}}),h(dn,NodeList);const En=new WeakMap;function yn(){throw new TypeError("Illegal constructor")}function wn(e){const n=t(yn.prototype);return En.set(n,e),L.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}yn.prototype=t(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:yn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return En.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(""===e)return null;const t=En.get(this);for(let n=0,l=t.length;n<l;n++){const n=t[l];if(e===pe.call(n,"id")||e===pe.call(n,"name"))return n}return null}},[Symbol.toStringTag]:{configurable:!0,get:()=>"HTMLCollection"},toString:{writable:!0,configurable:!0,value:()=>"[object HTMLCollection]"}}),h(yn,HTMLCollection);const Tn=/[&\u00A0"]/g,vn=/[&\u00A0<>]/g,{replace:Nn,toLowerCase:Ln}=String.prototype;function Mn(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function Cn(e){return Nn.call(e,Tn,Mn)}const Sn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),On=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Hn(e){switch(e.nodeType){case K:{const{attributes:t}=e,n=ke.call(e);let l="<"+Ln.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+Cn(e.value)+'"';return l+=">",Sn.has(n)?l:l+function(e){let t="";const n=hn(e);for(let e=0,l=n.length;e<l;e+=1)t+=Hn(n[e]);return t}(e)+"</"+Ln.call(n)+">"}case G:{const{data:n,parentNode:l}=e;return l instanceof Element&&On.has(ke.call(l))?n:(t=n,Nn.call(t,vn,Mn))}case q:return`<!CDATA[[${e.data}]]>`;case X:return`<?${e.target} ${e.data}?>`;case Y:return`\x3c!--${e.data}--\x3e`;default:return""}var t}$.lwcRuntimeFlags||Object.defineProperty($,"lwcRuntimeFlags",{value:t(null)});const An=$.lwcRuntimeFlags;function _n(e){return ln(e)||nl(e)}function Rn(e,t){const n=nn(e);if(t===n)return tl(n);if(t instanceof Element){if(zt(e)===zt(t))return t;if(!A(n)&&on(t)){const e=nn(t);if(!A(e)&&rn(n,e))return e}}return null}function Pn(){return Gn(this).length>0}function Dn(){return Gn(this)[0]||null}function $n(){const e=Gn(this);return e[e.length-1]||null}function In(){return gn(this)}function Bn(){const e=ae.call(this);return A(e)?e:Rn(this,e)}function kn(){const e=ae.call(this);if(A(e))return null;const t=Rn(this,e);return t instanceof Element?t:null}function xn(e){return this===e?0:this.getRootNode()===e?10:Vt(this)!==Vt(e)?35:Q.call(this,e)}function Fn(e){return null!=e&&Vt(this)===Vt(e)&&0!=(Q.call(this,e)&F)}function Wn(e){const t=J.call(this,!1);if(!e)return t;const n=Gn(this);for(let e=0,l=n.length;e<l;e+=1)t.appendChild(n[e].cloneNode(!0));return t}function Un(){if(nl(this)){const e=nn(this);return bn(A(e)?hn(this):sn(e,hn(this)))}return fe.call(this)}const jn=k.prototype.getRootNode,Kn=H(jn)?function(){let e,t=this;for(;!A(e=ae.call(t));)t=e;return t}:jn;n(k.prototype,{firstChild:{get(){return _n(this)?Dn.call(this):oe.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return _n(this)?$n.call(this):re.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return An.ENABLE_NODE_PATCH?Nt(this)?ie.call(this):In.call(this):Zt(this)?In.call(this):ie.call(this)},set:function(e){se.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get(){if(Qt(this))return Bn.call(this);const e=ae.call(this);return!A(e)&&ln(e)?nn(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(Qt(this))return kn.call(this);const e=ue.call(this);return!A(e)&&ln(e)?nn(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return _n(this)?Un.call(this):fe.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return _n(this)?Pn.call(this):ne.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return Nt(this)?Q.call(this,e):xn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e||(An.ENABLE_NODE_PATCH?Nt(this)?le.call(this,e):Fn.call(this,e):null!=e&&(Qt(this)||nl(this)?Fn.call(this,e):le.call(this,e)))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return An.ENABLE_NODE_PATCH?_(e)?Nt(this)?J.call(this,e):Wn.call(this,e):J.call(this,e):Qt(this)||nl(this)?Wn.call(this,e):J.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){return _(!H(e)&&!!e.composed)?Kn.call(this,e):function(e){const t=nn(e);return A(t)?Kn.call(e):tl(t)}(this)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return he.call(this)}}});const Gn=function(e){return e.childNodes};c.call(HTMLElement.prototype,"contains")&&l(HTMLElement.prototype,"contains",r(k.prototype,"contains")),c.call(HTMLElement.prototype,"parentElement")&&l(HTMLElement.prototype,"parentElement",r(k.prototype,"parentElement"));const qn=(e,t)=>{let n;for(;!H(n=e.host);){const l=n.getRootNode();if(l===t)return n;e=l}};function Xn(e,t,n,l){const o=tt.call(t,n,l),r=[],i=function(e){var t;const n=[];let l=e.getRootNode();for(;!H(l);)n.push(l),l=null===(t=l.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!A(o))for(let e=0;e<o.length;e++){const t=o[e];if(ln(t))continue;const n=t.getRootNode();if(-1!==m.call(i,n)){E.call(r,t);continue}const l=qn(n,i[0]);H(l)||-1!==m.call(o,l)||-1!==m.call(r,l)||E.call(r,l)}return r}const Yn=new WeakMap,{createDocumentFragment:Vn}=document;function zn(e){const t=Yn.get(e);if(H(t))throw new TypeError;return t}function Jn(e){return e.$shadowResolver$}function Qn(e,t){e.$shadowResolver$=t}function Zn(e){return zn(e).delegatesFocus}function el(e){return zn(e).host}function tl(e){return zn(e).shadowRoot}function nl(e){const t=Yn.get(e);return!H(t)&&e===t.host}function ll(e){const t=Yn.get(e);return!H(t)&&e===t.shadowRoot}l(k.prototype,I,{set(e){var t,n;H(e)||(this.$$ShadowResolverKey$$=e,t=this,n=e.nodeKey,Yt(t,qt,{value:n,configurable:!0}))},get(){return this.$$ShadowResolverKey$$},configurable:!0,enumerable:!0}),l($,"$isNativeShadowRootDefined$",{value:bt});let ol=0;function rl(e,t){if(Yn.has(e))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");const{mode:n,delegatesFocus:l}=t,o=wt(e),r=Vn.call(o),i={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};Yn.set(r,i),Yn.set(e,i);const a=()=>r,c=a.nodeKey=ol++;return Yt(e,Xt,{value:c}),Qn(r,a),h(r,sl.prototype),r}const il={constructor:{writable:!0,configurable:!0,value:sl},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"},synthetic:{writable:!1,enumerable:!1,configurable:!1,value:!0}},al={activeElement:{enumerable:!0,configurable:!0,get(){const e=el(this),t=wt(e),n=Ze.call(t);if(A(n))return n;if(0==(Q.call(e,n)&F))return null;let l=n;for(;!rn(e,l);)l=ue.call(l);return on(l)?null:l}},delegatesFocus:{configurable:!0,get(){return zn(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return pl(this,wt(el(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Xn(this,wt(el(this)),e,t)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get(){return el(this)}},mode:{configurable:!0,get(){return zn(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},cl=new WeakMap,ul={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Z.call(el(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ee.call(el(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return z.call(el(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return te.call(el(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){P(n)&&Ut(el(e),t,kt(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return cl.set(e,this),St.apply(el(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){P(n)&&jt(el(e),t,kt(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return el(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return bn(an(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=el(this);return this===e?0:this.contains(e)?20:Q.call(t,e)&F?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=el(this);return 0!=(Q.call(t,e)&F)&&rn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return Gn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=Gn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return Gn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return he.call(el(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 el(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=Gn(this);let t="";for(let n=0,l=e.length;n<l;n+=1){const l=e[n];l.nodeType!==Y&&(t+=gn(l))}return t},set(e){const t=el(this);se.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!H(e)&&_(e.composed)?el(this).getRootNode(e):this}}};function sl(){throw new TypeError("Illegal constructor")}function fl(e,t){const n=[];let l;if(e instanceof Window)l=e;else{if(!(e instanceof k))return n;l=e.getRootNode()}let o,r=e;for(;!A(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=A(e)?r.parentNode:e}else r=!ll(r)&&!Et(r)||!t&&r===l?r instanceof k?r.parentNode:null:r.host;return o=e instanceof Window?e.document:wt(e),n[n.length-1]===o&&n.push(window),n}
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
@@ -7,4 +7,4 @@
7
7
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
8
8
  Code distributed by Google as part of the polymer project is also
9
9
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
10
- */function ul(e,t){if(A(e))return null;const n=cl(e,!0),l=t;for(let e,t,o,r,i=0;i<l.length;i++)if(e=l[i],o=e instanceof Window?e:e.getRootNode(),o!==t&&(r=n.indexOf(o),t=o),!el(o)||!H(r)&&r>-1)return e;return null}function sl(e,t,n,l){const o=Ze.call(t,n,l);return A(o)?o:ul(e,cl(o,!0))}e(ll,il,{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return En(p.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}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=Jn(e);return un(n,Nt(ye.call(n,t)))}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return mn(function(e,t){const n=Jn(e);return cn(n,Nt(ye.call(n,t)))}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=jn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=Sn(e[n]);return t},set(e){const t=Jn(this);De.call(t,e)}}},ol),al.prototype=t(DocumentFragment.prototype,ll),l(al,Symbol.hasInstance,{value:function(e){return D(e)&&!A(e)&&(bt(e)||a(e)===al.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return sl(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Kn(this,this,e,t)},l(Document.prototype,"activeElement",{get(){let e=Qe.call(this);if(A(e))return e;for(;!H(Yt(e));)if(e=ue.call(e),A(e))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),l(Document.prototype,"getElementById",{value(){const e=ot.apply(this,T.call(arguments));return A(e)?null:H(Yt(e))||vt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelector",{value(){const e=Nt(lt.apply(this,T.call(arguments))),t=g.call(e,(e=>H(Yt(e))||vt(e)));return H(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelectorAll",{value(){const e=Nt(lt.apply(this,T.call(arguments)));return mn(p.call(e,(e=>H(Yt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByClassName",{value(){const e=Nt(rt.apply(this,T.call(arguments)));return En(p.call(e,(e=>H(Yt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagName",{value(){const e=Nt(it.apply(this,T.call(arguments)));return En(p.call(e,(e=>H(Yt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagNameNS",{value(){const e=Nt(at.apply(this,T.call(arguments)));return En(p.call(e,(e=>H(Yt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(r(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=Nt(ct.apply(this,T.call(arguments)));return mn(p.call(e,(e=>H(Yt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:al,configurable:!0,writable:!0});const hl=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const fl=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function pl(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!hl)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",(t=>e=t)),t.click(),!hl.get.call(e)})()&&(HTMLElement.prototype.click=function(){Mt.call(this,"click",pl);try{fl.value.call(this)}finally{St.call(this,"click",pl)}}),!0!==new Event("test",{composed:!0}).composed&&function(){const n=e(t(null),{beforeinput:1,blur:1,click:1,compositionend:1,compositionstart:1,compositionupdate:1,copy:1,cut:1,dblclick:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,drag:1,dragend:1,dragenter:1,dragleave:1,dragover:1,dragstart:1,drop:1,focus:1,focusin:1,focusout:1,gotpointercapture:1,input:1,keydown:1,keypress:1,keyup:1,lostpointercapture:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,paste:1,pointercancel:1,pointerdown:1,pointerenter:1,pointerleave:1,pointermove:1,pointerout:1,pointerover:1,pointerup:1,touchcancel:1,touchend:1,touchmove:1,touchstart:1,wheel:1}),l=Event;function o(e,t){const n=new l(e,t),o=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>o,configurable:!0,enumerable:!0}}),n}o.prototype=l.prototype,o.AT_TARGET=l.AT_TARGET,o.BUBBLING_PHASE=l.BUBBLING_PHASE,o.CAPTURING_PHASE=l.CAPTURING_PHASE,o.NONE=l.NONE,window.Event=o,Object.defineProperties(Event.prototype,{composed:{get(){const{type:e}=this;return 1===n[e]},configurable:!0,enumerable:!0}})}();const gl=CustomEvent;function ml(e,t){const n=new gl(e,t),l=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>l,configurable:!0,enumerable:!0}}),n}if(ml.prototype=gl.prototype,window.CustomEvent=ml,"undefined"!=typeof ClipboardEvent){const l=e(t(null),{copy:1,cut:1,paste:1});n(ClipboardEvent.prototype,{composed:{get(){const{type:e}=this;return 1===l[e]},configurable:!0,enumerable:!0}})}"undefined"!=typeof HTMLIFrameElement&&function(){const e=r(HTMLIFrameElement.prototype,"contentWindow"),{get:t}=e;e.get=function(){const e=t.call(this);return A(e)||H(Yt(this))?e:(n=e,{addEventListener(){return n.addEventListener.apply(n,arguments)},blur(){return n.blur.apply(n,arguments)},close(){return n.close.apply(n,arguments)},focus(){return n.focus.apply(n,arguments)},postMessage(){return n.postMessage.apply(n,arguments)},removeEventListener(){return n.removeEventListener.apply(n,arguments)},get closed(){return n.closed},get frames(){return n.frames},get length(){return n.length},get location(){return n.location},set location(e){n.location=e},get opener(){return n.opener},get parent(){return n.parent},get self(){return n.self},get top(){return n.top},get window(){return n.window}});var n},l(HTMLIFrameElement.prototype,"contentWindow",e)}();const dl=MutationObserver,{disconnect:bl,observe:El,takeRecords:yl}=dl.prototype,wl="$$lwcObserverCallbackWrapper$$",Tl=new WeakMap;function vl(e){return e.$$lwcNodeObservers$$}function Nl(e){const{addedNodes:l,removedNodes:o,target:r,type:i}=e,a=t(MutationRecord.prototype);return n(a,{addedNodes:{get:()=>l,enumerable:!0,configurable:!0},removedNodes:{get:()=>o,enumerable:!0,configurable:!0},type:{get:()=>i,enumerable:!0,configurable:!0},target:{get:()=>r.shadowRoot,enumerable:!0,configurable:!0}}),a}function Ll(e,t){let n=t;for(;!A(n);){const t=vl(n);if(!H(t)&&(t[0]===e||-1!==m.call(t,e)))return!0;n=n.parentNode}return!1}function Ml(e,t){return y.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:i}=n;if("childList"!==i||H(zt(l)))Ll(t,l)&&E.call(e,n);else if(o.length>0){const r=o[0];if(Ll(t,r)){const o=vl(l);!o||o[0]!==t&&-1===m.call(o,t)?E.call(e,Nl(n)):E.call(e,n)}}else{const o=l.shadowRoot,i=r[0];if(Vt(l)===Vt(i)&&Ll(t,l))E.call(e,n);else if(o){const l=vl(o);!l||l[0]!==t&&-1===m.call(l,t)||E.call(e,Nl(n))}}return e}),[])}function Cl(e){const t=function(e){let t=e[wl];return H(t)&&(t=e[wl]=(t,n)=>{const l=Ml(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new dl(t)}function Sl(e,t,n){if(arguments.length>1){const e=T.call(arguments);return e[1]=_t(e[1]),ut.apply(this,e)}return ut.apply(this,arguments)}function Ol(e,t,n){if(arguments.length>1){const e=T.call(arguments);e[1]=_t(e[1]),st.apply(this,e)}st.apply(this,arguments)}function Hl(){const e=Ye.call(this);if(!(e instanceof k))return e;const t=yt(e),n=cl(e,this.composed),l=Ve.call(this);if(!(l instanceof k))return A(l)&&H(Yt(e))?e:ul(t,n);if(l===t||l===t.body)return H(Yt(e))?e:ul(t,n);let o=l,r=n;if(Zn(l)){1===Rt.get(this)&&(o=Qn(l))}return Zn(e)&&rl.has(this)&&(r=cl(Qn(e),this.composed)),ul(o,r)}function Al(){const e=Ye.call(this);if(!(e instanceof k))return[];const t=Boolean(e.shadowRoot),n=(l=e,Gn.has(l));var l;if(t&&!n)return Je.call(this);if(A(Ve.call(this)))return[];let o=e;return Zn(e)&&rl.has(this)&&(o=Qn(e)),cl(o,this.composed)}function _l(e){const t=r(e.prototype,"relatedTarget").get;l(e.prototype,"relatedTarget",{get(){const e=t.call(this);if(A(e))return null;if(!(e instanceof k&&Jt(e)))return e;let n=Ve.call(this);return A(n)&&(n=yt(e)),ul(n,cl(e,!0))},enumerable:!0,configurable:!0})}let Rl;Cl.prototype=dl.prototype,Cl.prototype.disconnect=function(){bl.call(this);const e=Tl.get(this);H(e)||(L.call(e,(e=>{const t=e.$$lwcNodeObservers$$;if(!H(t)){const e=m.call(t,this);-1!==e&&v.call(t,e,1)}})),e.length=0)},Cl.prototype.observe=function(e,t){let n=vl(e);var l;if(H(n)&&(n=[],l=n,e.$$lwcNodeObservers$$=l),-1===m.call(n,this)&&E.call(n,this),el(e)&&(e=e.host),Tl.has(this)){const t=Tl.get(this);-1===m.call(t,e)&&E.call(t,e)}else Tl.set(this,[e]);return El.call(this,e,t)},Cl.prototype.takeRecords=function(){return Ml(yl.call(this),this)},l(window,"MutationObserver",{value:Cl,configurable:!0,writable:!0}),n(Lt,{addEventListener:{value:function(e,t,n){if(Zn(this))return jt.apply(this,arguments);if(arguments.length<2){const e=T.call(arguments);return e.length>1&&(e[1]=_t(e[1])),Mt.apply(this,e)}const l=_t(t);return Mt.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(Zn(this))return Kt.apply(this,arguments);const l=T.call(arguments);arguments.length>1&&(l[1]=_t(l[1])),St.apply(this,l),St.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&n(Window.prototype,{addEventListener:{value:Sl,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Ol,enumerable:!0,writable:!0,configurable:!0}}),n(Event.prototype,{target:{get:Hl,enumerable:!0,configurable:!0},currentTarget:{get:function(){const e=Ve.call(this);return A(e)?null:1===Rt.get(this)?Qn(e):e},enumerable:!0,configurable:!0},composedPath:{value:Al,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Hl,enumerable:!0,configurable:!0},path:{get:Al,enumerable:!0,configurable:!0}}),_l(FocusEvent),_l(MouseEvent);const Pl={childList:!0},Dl=new WeakMap;function $l(e){const t=Nt(he.call(e));return y.call(t,((e,t)=>(t instanceof Element&&nn(t)?E.apply(e,$l(t)):E.call(e,t),e)),[])}function Il(){const e=ae.call(this);return!A(e)&&nn(e)&&Yt(e)!==Yt(this)?e:null}function Bl(e,t){let n;const l=Yt(e);if(H(l))n=e instanceof HTMLBodyElement?p.call(t,(t=>H(Yt(t))||vt(e))):T.call(t);else if(Zn(e)){const l=en(e);n=A(l)?[]:zt(e)?rn(e,t):cn(l,t)}else n=p.call(t,(e=>Vt(e)===l));return n}function kl(){const e=jn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=Sn(e[n]);return t}function xl(){return Sn(this)}function Fl(){const e=en(this),t=A(e)?[]:cn(e,sn(this));return En(p.call(t,(e=>e instanceof Element)))}function Wl(){return this.children.length}function Ul(){return this.children[0]||null}function jl(){const{children:e}=this;return e.item(e.length-1)||null}function Kl(e,t,n){let l;if(Zn(e)){const n=en(e);l=A(n)?[]:zt(e)?rn(e,t):cn(n,t)}else if(Jt(e)){const o=Yt(e);if(H(o))if(1===n){const n=Vt(e);l=p.call(t,(e=>Vt(e)===n))}else l=T.call(t);else l=p.call(t,(e=>Vt(e)===o))}else l=e instanceof HTMLBodyElement||1===n?p.call(t,(t=>H(Yt(t))||vt(e))):T.call(t);return l}n(HTMLSlotElement.prototype,{addEventListener:{value(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||Dl.get(this)||(Dl.set(this,!0),Rl||(Rl=new pt((e=>{const t=[];L.call(e,(e=>{const{target:n}=e;-1===m.call(t,n)&&(E.call(t,n),Ct.call(n,new CustomEvent("slotchange")))}))}))),gt.call(Rl,this,Pl))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(Jt(this)){const t=!H(e)&&_(e.flatten)?$l(this):hn(this);return p.call(t,(e=>e instanceof Element))}return Xe.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){if(Jt(this)){return!H(e)&&_(e.flatten)?$l(this):hn(this)}return qe.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=pe.call(this,"name");return A(e)?"":e},set(e){Te.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(Jt(this)){const e=en(this);return mn(A(e)?[]:cn(e,sn(this)))}return he.call(this)},enumerable:!0,configurable:!0}}),n(Text.prototype,{assignedSlot:{get:Il,enumerable:!0,configurable:!0}}),n(Element.prototype,{innerHTML:{get(){return On.ENABLE_ELEMENT_PATCH?vt(this)?Pe.call(this):kl.call(this):Jt(this)||Zn(this)?kl.call(this):Pe.call(this)},set(e){De.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return On.ENABLE_ELEMENT_PATCH?vt(this)?Ie.call(this):xl.call(this):Jt(this)||Zn(this)?xl.call(this):Ie.call(this)},set(e){Be.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?nl(this,e):ve.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(Zn(this)){const e=Qn(this);if("open"===e.mode)return e}return Ge.call(this)},enumerable:!0,configurable:!0},children:{get(){return Hn(this)?Fl.call(this):je.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Hn(this)?Wl.call(this):Ne.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Hn(this)?Ul.call(this):Le.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Hn(this)?jl.call(this):Me.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:Il,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"innerHTML")&&l(HTMLElement.prototype,"innerHTML",r(Element.prototype,"innerHTML")),c.call(HTMLElement.prototype,"outerHTML")&&l(HTMLElement.prototype,"outerHTML",r(Element.prototype,"outerHTML")),c.call(HTMLElement.prototype,"children")&&l(HTMLElement.prototype,"children",r(Element.prototype,"children")),n(Element.prototype,{querySelector:{value:function(){const e=Nt(ye.apply(this,T.call(arguments)));if(Zn(this)){const t=en(this);return A(t)?null:zt(this)?an(this,e):un(t,e)}if(Jt(this)){const t=Yt(this);if(H(t)){if(!On.ENABLE_NODE_LIST_PATCH)return 0===e.length?null:e[0];const t=Vt(this),n=g.call(e,(e=>Vt(e)===t));return H(n)?null:n}{const n=g.call(e,(e=>Vt(e)===t));return H(n)?null:n}}{if(!(On.ENABLE_NODE_LIST_PATCH||this instanceof HTMLBodyElement)){const t=e[0];return H(t)?null:t}const t=g.call(e,(e=>H(Yt(e))||vt(this)));return H(t)?null:t}},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){const e=Nt(ye.apply(this,T.call(arguments)));if(!On.ENABLE_NODE_LIST_PATCH){return mn(Kl(this,e,0))}return mn(Kl(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),n(Element.prototype,{getElementsByClassName:{value(){const e=Nt(Ke.apply(this,T.call(arguments)));if(!On.ENABLE_HTML_COLLECTIONS_PATCH)return En(Bl(this,e));return En(Kl(this,e,1))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){const e=Nt(me.apply(this,T.call(arguments)));if(!On.ENABLE_HTML_COLLECTIONS_PATCH)return En(Bl(this,e));return En(Kl(this,e,1))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){const e=Nt(de.apply(this,T.call(arguments)));if(!On.ENABLE_HTML_COLLECTIONS_PATCH)return En(Bl(this,e));return En(Kl(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"getElementsByClassName")&&l(HTMLElement.prototype,"getElementsByClassName",r(Element.prototype,"getElementsByClassName"));const Gl="\n [contenteditable],\n [tabindex],\n a[href],\n area[href],\n audio[controls],\n button,\n iframe,\n input,\n select,\n textarea,\n video[controls]\n",ql=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function Xl(e){return e.filter((e=>be.call(e,"tabindex")?"0"===pe.call(e,"tabindex"):!ql.has(ke.call(e))||!be.call(e,"disabled")))}const Yl=new WeakMap;function Vl(e){return(!Zn(e)||!zn(e))&&(Ue.call(e,Gl)&&function(e){const{width:t,height:n}=ge.call(e),l=t>0||n>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function zl(){const e=this.getRootNode();if(e===this){const e=Ee.call(this,Gl);return void(A(e)||e.focus.apply(e,arguments))}const t=e;if(t.activeElement===this)return;const n=Nt(ye.call(this,Gl));let l=!1;for(;!l&&0!==n.length;){const e=n.shift();e.focus.apply(e,arguments);l=e.getRootNode().activeElement===e}}function Jl(e){const t=yt(e),n=Xl(Nt(lt.call(t,Gl))),l=Xl(Nt(ye.call(e,Gl))),o=l[0],r=l[l.length-1],i=m.call(n,e),a=i>-1?i:m.call(n,o),c=0===l.length?a+1:m.call(n,r)+1;return{prev:T.call(n,0,a),inner:l,next:T.call(n,c)}}function Ql(e,t){const n=Q.call(e,t);return n&F?0:n&U?1:n&j?2:-1}function Zl(e){e.preventDefault(),e.stopPropagation()}function eo(e,t){ut.call(e,"focusin",Zl,!0),ut.call(e,"focusout",Zl,!0),t(),st.call(e,"focusin",Zl,!0),st.call(e,"focusout",Zl,!0)}function to(e,t,n){const l=wt(n),o=function(e,t){const n=e.length;if(n>0)for(let l=0;l<n;l+=1){const n=e[l];if(co(t.getRootNode(),n))return n}return null}(e,n);A(o)?eo(l,(()=>{t.blur()})):eo(l,(()=>{o.focus()}))}let no=!1;function lo(){no=!0}function oo(){no=!1}function ro(){return!no}function io(e){if(no)return;const t=Ve.call(e),n=Ye.call(e);if(t!==n)return;const l=ze.call(e);if(A(l))return;const o=Jl(t);if(1===Ql(t,l)){const e=co.bind(null,t.getRootNode()),r=g.call(o.inner,e);if(H(r))to(o.next,n,l);else{eo(wt(r),(()=>{r.focus()}))}}else t===n&&to(w.call(o.prev),n,l)}function ao(e){if(no)return;const t=ze.call(e);if(A(t))return;const n=Ve.call(e),l=Jl(n);if(-1!==m.call(l.inner,t))return;const o=Ye.call(e),r=Ql(n,t);1===r&&to(l.next,o,t),2===r&&to(w.call(l.prev),o,t)}function co(e,t){if(!Vl(t))return!1;const n=yt(t);let l=t.getRootNode();for(;l!==n&&l!==e;){const e=l.host;if("-1"===pe.call(e,"tabindex"))return!1;l=e&&e.getRootNode()}return!0}function uo(e){St.call(e,"focusin",io,!0)}function so(e){const t=yt(e);Yl.get(t)||(Yl.set(t,!0),Mt.call(t,"mousedown",lo,!0),Mt.call(t,"mouseup",(()=>{setTimeout(oo)}),!0),Mt.call(t,"dragstart",oo,!0))}function ho(e){St.call(e,"focusin",ao,!0)}function fo(e){const t=wt(e);return ht.call(t,e)}function po(e){const t=wt(e);return ft.call(t)}function go(e){return"visible"===e.visibility&&"none"!==e.display}function mo(e){const t=[];if((e=>e.nodeType===K)(e)){const{tagName:n}=e,l=fo(e);if("OPTION"===n)return[1,Se.call(e),1];if("TEXTAREA"===n)return[];{const n=e.childNodes;for(let e=0,l=n.length;e<l;e++)E.apply(t,mo(n[e]))}if(!go(l))return"SELECT"===n||"DATALIST"===n?[]:t;"BR"===n&&t.push("\n");const{display:o}=l;"table-cell"===o&&t.push("\t"),"table-row"===o&&t.push("\n"),"P"===n&&(t.unshift(2),t.push(2)),"block"!==o&&"table-caption"!==o&&"flex"!==o&&"table"!==o||(t.unshift(1),t.push(1))}else(e=>e.nodeType===G)(e)&&t.push(function(e){const t=po(e);if(null===t)return e.textContent||"";const n=document.createRange();n.selectNodeContents(e);const l=n.getBoundingClientRect();if(l.height<=0||l.width<=0)return"";t.removeAllRanges(),t.addRange(n);return t.toString()||e.textContent||""}(e));return t}function bo(e){if(!go(fo(e)))return fn(e)||"";const t=function(e){const t=wt(e),n=po(e);if(null===n)return null;const l=[];for(let e=0;e<n.rangeCount;e++)l.push(n.getRangeAt(e));const o={element:e,onselect:t.onselect,onselectstart:t.onselectstart,onselectionchange:t.onselectionchange,ranges:l};return t.onselect=null,t.onselectstart=null,t.onselectionchange=null,o}(e),n=[],l=e.childNodes;for(let e=0,t=l.length;e<t;e++)E.apply(n,mo(l[e]));!function(e){if(null===e)return;const{element:t,onselect:n,onselectstart:l,onselectionchange:o,ranges:r}=e,i=wt(t),a=po(t);a.removeAllRanges();for(let e=0;e<r.length;e++)a.addRange(r[e]);i.onselect=n,i.onselectstart=l,i.onselectionchange=o}(t);let o="",r=0;for(let e=0,t=n.length;e<t;e++){const t=n[e];if("string"==typeof t){if(r>0){for(let e=0;e<r;e++)o+="\n";r=0}t.length>0&&(o+=t)}else{if(0==o.length)continue;t>r&&(r=t)}}return o}const{blur:Eo,focus:yo}=HTMLElement.prototype;function wo(){return zn(this)&&R(be.call(this,"tabindex"))?0:Fe.call(this)}function To(e){const t=zn(this),n=Fe.call(this),l=be.call(this,"tabindex");We.call(this,e);const o=Fe.call(this),r=be.call(this,"tabindex"),i=n!==o;var a;(l&&(i||R(r))&&(-1===n&&ho(this),0===n&&t&&uo(this)),R(r))||(l&&r&&R(i)||(-1===o&&(so(a=this),uo(a),Mt.call(a,"focusin",ao,!0)),0===o&&t&&function(e){so(e),ho(e),Mt.call(e,"focusin",io,!0)}(this)))}function vo(){if(zn(this)){const e=function(e){const t=yt(e),n=Qe.call(t);return A(n)||0!=(Q.call(e,n)&F)?n:null}(this);if(!A(e))return void e.blur()}return Eo.call(this)}function No(){const e=ro();e&&lo(),Zn(this)&&zn(this)?zl.call(this):(yo.apply(this,arguments),e&&oo())}n(HTMLElement.prototype,{tabIndex:{get(){return Zn(this)?wo.call(this):Fe.call(this)},set(e){return Zn(this)?To.call(this,e):We.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if(Zn(this))return vo.call(this);Eo.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value(){No.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Se&&null!==Oe&&l(HTMLElement.prototype,"innerText",{get(){return On.ENABLE_INNER_OUTER_TEXT_PATCH?On.ENABLE_ELEMENT_PATCH?vt(this)?Se.call(this):bo(this):Jt(this)||Zn(this)?bo(this):Se.call(this):Se.call(this)},set(e){Oe.call(this,e)},enumerable:!0,configurable:!0}),null!==Ae&&null!==_e&&l(HTMLElement.prototype,"outerText",{get(){return On.ENABLE_INNER_OUTER_TEXT_PATCH?On.ENABLE_ELEMENT_PATCH?vt(this)?Ae.call(this):bo(this):Jt(this)||Zn(this)?bo(this):Ae.call(this):Ae.call(this)},set(e){_e.call(this,e)},enumerable:!0,configurable:!0}),l(Element.prototype,B,{set(e){const t=this.$$ShadowTokenKey$$;H(t)||t===e||we.call(this,t),H(e)||Te.call(this,e,""),this.$$ShadowTokenKey$$=e},get(){return this.$$ShadowTokenKey$$},configurable:!0});const Lo=function(){};let Mo;const Co={childList:!0};function So(e,t,n){const l=Yn(e);if(l!==t&&(Vn(e,t),e instanceof Element)){if(function(e,t){e.$shadowToken$=t}(e,n),Zn(e))return;H(l)&&gt.call(Mo,e,Co);const o=he.call(e);for(let e=0,l=o.length;e<l;e+=1)So(o[e],t,n)}}function Oo(e){if(H(Mo)&&(Mo=new pt((e=>{L.call(e,(e=>{const{target:t,addedNodes:n,removedNodes:l}=e,o=Yn(t),r=t.$shadowToken$;for(let e=0,n=l.length;e<n;e+=1){const n=l[e];Q.call(t,n)&k.DOCUMENT_POSITION_CONTAINED_BY||So(n,Lo,void 0)}for(let e=0,l=n.length;e<l;e+=1){const l=n[e];Q.call(t,l)&k.DOCUMENT_POSITION_CONTAINED_BY&&So(l,o,r)}}))}))),H(Yn(e)))throw new Error("Invalid Element");gt.call(Mo,e,Co)}l(Element.prototype,"$domManual$",{set(e){this.$$DomManualKey$$=e,_(e)&&Oo(this)},get(){return this.$$DomManualKey$$},configurable:!0})}();
10
+ */function hl(e,t){if(A(e))return null;const n=fl(e,!0),l=t;for(let e,t,o,r,i=0;i<l.length;i++)if(e=l[i],o=e instanceof Window?e:e.getRootNode(),o!==t&&(r=n.indexOf(o),t=o),!ll(o)||!H(r)&&r>-1)return e;return null}function pl(e,t,n,l){const o=et.call(t,n,l);return A(o)?o:hl(e,fl(o,!0))}e(il,ul,{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return wn(p.call(an(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}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=el(e);return fn(n,Lt(ye.call(n,t)))}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return bn(function(e,t){const n=el(e);return sn(n,Lt(ye.call(n,t)))}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=Gn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=Hn(e[n]);return t},set(e){const t=el(this);De.call(t,e)}}},al),sl.prototype=t(DocumentFragment.prototype,il),l(sl,Symbol.hasInstance,{value:function(e){return D(e)&&!A(e)&&(Et(e)||a(e)===sl.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return pl(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Xn(this,this,e,t)},l(Document.prototype,"activeElement",{get(){let e=Ze.call(this);if(A(e))return e;for(;!H(Vt(e));)if(e=ue.call(e),A(e))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),l(Document.prototype,"getElementById",{value(){const e=rt.apply(this,T.call(arguments));return A(e)?null:H(Vt(e))||Nt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelector",{value(){const e=Lt(ot.apply(this,T.call(arguments))),t=g.call(e,(e=>H(Vt(e))||Nt(e)));return H(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelectorAll",{value(){const e=Lt(ot.apply(this,T.call(arguments)));return bn(p.call(e,(e=>H(Vt(e))||Nt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByClassName",{value(){const e=Lt(it.apply(this,T.call(arguments)));return wn(p.call(e,(e=>H(Vt(e))||Nt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagName",{value(){const e=Lt(at.apply(this,T.call(arguments)));return wn(p.call(e,(e=>H(Vt(e))||Nt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagNameNS",{value(){const e=Lt(ct.apply(this,T.call(arguments)));return wn(p.call(e,(e=>H(Vt(e))||Nt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(r(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=Lt(ut.apply(this,T.call(arguments)));return bn(p.call(e,(e=>H(Vt(e))||Nt(e))))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:sl,configurable:!0,writable:!0});const gl=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const ml=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function dl(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!gl)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",(t=>e=t)),t.click(),!gl.get.call(e)})()&&(HTMLElement.prototype.click=function(){Ct.call(this,"click",dl);try{ml.value.call(this)}finally{Ot.call(this,"click",dl)}}),!0!==new Event("test",{composed:!0}).composed&&function(){const n=e(t(null),{beforeinput:1,blur:1,click:1,compositionend:1,compositionstart:1,compositionupdate:1,copy:1,cut:1,dblclick:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,drag:1,dragend:1,dragenter:1,dragleave:1,dragover:1,dragstart:1,drop:1,focus:1,focusin:1,focusout:1,gotpointercapture:1,input:1,keydown:1,keypress:1,keyup:1,lostpointercapture:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,paste:1,pointercancel:1,pointerdown:1,pointerenter:1,pointerleave:1,pointermove:1,pointerout:1,pointerover:1,pointerup:1,touchcancel:1,touchend:1,touchmove:1,touchstart:1,wheel:1}),l=Event;function o(e,t){const n=new l(e,t),o=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>o,configurable:!0,enumerable:!0}}),n}o.prototype=l.prototype,o.AT_TARGET=l.AT_TARGET,o.BUBBLING_PHASE=l.BUBBLING_PHASE,o.CAPTURING_PHASE=l.CAPTURING_PHASE,o.NONE=l.NONE,window.Event=o,Object.defineProperties(Event.prototype,{composed:{get(){const{type:e}=this;return 1===n[e]},configurable:!0,enumerable:!0}})}();const bl=CustomEvent;function El(e,t){const n=new bl(e,t),l=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>l,configurable:!0,enumerable:!0}}),n}if(El.prototype=bl.prototype,window.CustomEvent=El,"undefined"!=typeof ClipboardEvent){const l=e(t(null),{copy:1,cut:1,paste:1});n(ClipboardEvent.prototype,{composed:{get(){const{type:e}=this;return 1===l[e]},configurable:!0,enumerable:!0}})}"undefined"!=typeof HTMLIFrameElement&&function(){const e=r(HTMLIFrameElement.prototype,"contentWindow"),{get:t}=e;e.get=function(){const e=t.call(this);return A(e)||H(Vt(this))?e:(n=e,{addEventListener(){return n.addEventListener.apply(n,arguments)},blur(){return n.blur.apply(n,arguments)},close(){return n.close.apply(n,arguments)},focus(){return n.focus.apply(n,arguments)},postMessage(){return n.postMessage.apply(n,arguments)},removeEventListener(){return n.removeEventListener.apply(n,arguments)},get closed(){return n.closed},get frames(){return n.frames},get length(){return n.length},get location(){return n.location},set location(e){n.location=e},get opener(){return n.opener},get parent(){return n.parent},get self(){return n.self},get top(){return n.top},get window(){return n.window}});var n},l(HTMLIFrameElement.prototype,"contentWindow",e)}();const yl=MutationObserver,{disconnect:wl,observe:Tl,takeRecords:vl}=yl.prototype,Nl="$$lwcObserverCallbackWrapper$$",Ll=new WeakMap;function Ml(e){return e.$$lwcNodeObservers$$}function Cl(e){const{addedNodes:l,removedNodes:o,target:r,type:i}=e,a=t(MutationRecord.prototype);return n(a,{addedNodes:{get:()=>l,enumerable:!0,configurable:!0},removedNodes:{get:()=>o,enumerable:!0,configurable:!0},type:{get:()=>i,enumerable:!0,configurable:!0},target:{get:()=>r.shadowRoot,enumerable:!0,configurable:!0}}),a}function Sl(e,t){let n=t;for(;!A(n);){const t=Ml(n);if(!H(t)&&(t[0]===e||-1!==m.call(t,e)))return!0;n=n.parentNode}return!1}function Ol(e,t){return y.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:i}=n;if("childList"!==i||H(Jt(l)))Sl(t,l)&&E.call(e,n);else if(o.length>0){const r=o[0];if(Sl(t,r)){const o=Ml(l);!o||o[0]!==t&&-1===m.call(o,t)?E.call(e,Cl(n)):E.call(e,n)}}else{const o=l.shadowRoot,i=r[0];if(zt(l)===zt(i)&&Sl(t,l))E.call(e,n);else if(o){const l=Ml(o);!l||l[0]!==t&&-1===m.call(l,t)||E.call(e,Cl(n))}}return e}),[])}function Hl(e){const t=function(e){let t=e[Nl];return H(t)&&(t=e[Nl]=(t,n)=>{const l=Ol(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new yl(t)}function Al(e,t,n){if(arguments.length>1){const e=T.call(arguments);return e[1]=Rt(e[1]),st.apply(this,e)}return st.apply(this,arguments)}function _l(e,t,n){if(arguments.length>1){const e=T.call(arguments);e[1]=Rt(e[1]),ft.apply(this,e)}ft.apply(this,arguments)}function Rl(){const e=Ve.call(this);if(!(e instanceof k))return e;const t=wt(e),n=fl(e,this.composed),l=ze.call(this);if(!(l instanceof k))return A(l)&&H(Vt(e))?e:hl(t,n);if(l===t||l===t.body)return H(Vt(e))?e:hl(t,n);let o=l,r=n;if(nl(l)){1===Pt.get(this)&&(o=tl(l))}return nl(e)&&cl.has(this)&&(r=fl(tl(e),this.composed)),hl(o,r)}function Pl(){const e=Ve.call(this);if(!(e instanceof k))return[];const t=Boolean(e.shadowRoot),n=(l=e,Yn.has(l));var l;if(t&&!n)return Qe.call(this);if(A(ze.call(this)))return[];let o=e;return nl(e)&&cl.has(this)&&(o=tl(e)),fl(o,this.composed)}function Dl(e){const t=r(e.prototype,"relatedTarget").get;l(e.prototype,"relatedTarget",{get(){const e=t.call(this);if(A(e))return null;if(!(e instanceof k&&Qt(e)))return e;let n=ze.call(this);return A(n)&&(n=wt(e)),hl(n,fl(e,!0))},enumerable:!0,configurable:!0})}Hl.prototype=yl.prototype,Hl.prototype.disconnect=function(){wl.call(this);const e=Ll.get(this);H(e)||(L.call(e,(e=>{const t=e.$$lwcNodeObservers$$;if(!H(t)){const e=m.call(t,this);-1!==e&&v.call(t,e,1)}})),e.length=0)},Hl.prototype.observe=function(e,t){let n=Ml(e);var l;if(H(n)&&(n=[],l=n,e.$$lwcNodeObservers$$=l),-1===m.call(n,this)&&E.call(n,this),ll(e)&&(e=e.host),Ll.has(this)){const t=Ll.get(this);-1===m.call(t,e)&&E.call(t,e)}else Ll.set(this,[e]);return Tl.call(this,e,t)},Hl.prototype.takeRecords=function(){return Ol(vl.call(this),this)},l(window,"MutationObserver",{value:Hl,configurable:!0,writable:!0}),n(Mt,{addEventListener:{value:function(e,t,n){if(nl(this))return Kt.apply(this,arguments);if(arguments.length<2){const e=T.call(arguments);return e.length>1&&(e[1]=Rt(e[1])),Ct.apply(this,e)}const l=Rt(t);return Ct.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(nl(this))return Gt.apply(this,arguments);const l=T.call(arguments);arguments.length>1&&(l[1]=Rt(l[1])),Ot.apply(this,l),Ot.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&n(Window.prototype,{addEventListener:{value:Al,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:_l,enumerable:!0,writable:!0,configurable:!0}}),n(Event.prototype,{target:{get:Rl,enumerable:!0,configurable:!0},currentTarget:{get:function(){const e=ze.call(this);return A(e)?null:1===Pt.get(this)?tl(e):e},enumerable:!0,configurable:!0},composedPath:{value:Pl,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Rl,enumerable:!0,configurable:!0},path:{get:Pl,enumerable:!0,configurable:!0}}),Dl(FocusEvent),Dl(MouseEvent);const $l=c.call(Text.prototype,"assignedSlot")?r(Text.prototype,"assignedSlot").get:()=>null;let Il;const Bl={childList:!0},kl=new WeakMap;function xl(e){const t=Lt(fe.call(e));return y.call(t,((e,t)=>(t instanceof Element&&on(t)?E.apply(e,xl(t)):E.call(e,t),e)),[])}function Fl(){const e=ae.call(this);if(e instanceof Element){const t=Ge.call(e);if(Et(t))return this instanceof Text?$l.call(this):qe.call(this)}return!A(e)&&on(e)&&Vt(e)!==Vt(this)?e:null}function Wl(e,t){let n;const l=Vt(e);if(H(l))n=e instanceof HTMLBodyElement?p.call(t,(t=>H(Vt(t))||Nt(e))):T.call(t);else if(nl(e)){const l=nn(e);n=A(l)?[]:Jt(e)?cn(e,t):sn(l,t)}else n=p.call(t,(e=>zt(e)===l));return n}function Ul(){const e=Gn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=Hn(e[n]);return t}function jl(){return Hn(this)}function Kl(){const e=nn(this),t=A(e)?[]:sn(e,hn(this));return wn(p.call(t,(e=>e instanceof Element)))}function Gl(){return this.children.length}function ql(){return this.children[0]||null}function Xl(){const{children:e}=this;return e.item(e.length-1)||null}function Yl(e,t,n){let l;if(nl(e)){const n=nn(e);l=A(n)?[]:Jt(e)?cn(e,t):sn(n,t)}else if(Qt(e)){const o=Vt(e);if(H(o))if(1===n){const n=zt(e);l=p.call(t,(e=>zt(e)===n))}else l=T.call(t);else l=p.call(t,(e=>zt(e)===o))}else l=e instanceof HTMLBodyElement||1===n?p.call(t,(t=>H(Vt(t))||Nt(e))):T.call(t);return l}n(HTMLSlotElement.prototype,{addEventListener:{value(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||kl.get(this)||(kl.set(this,!0),Il||(Il=new gt((e=>{const t=[];L.call(e,(e=>{const{target:n}=e;-1===m.call(t,n)&&(E.call(t,n),St.call(n,new CustomEvent("slotchange")))}))}))),mt.call(Il,this,Bl))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(Qt(this)){const t=!H(e)&&_(e.flatten)?xl(this):pn(this);return p.call(t,(e=>e instanceof Element))}return Ye.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){if(Qt(this)){return!H(e)&&_(e.flatten)?xl(this):pn(this)}return Xe.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=pe.call(this,"name");return A(e)?"":e},set(e){Te.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(Qt(this)){const e=nn(this);return bn(A(e)?[]:sn(e,hn(this)))}return fe.call(this)},enumerable:!0,configurable:!0}}),n(Text.prototype,{assignedSlot:{get:Fl,enumerable:!0,configurable:!0}}),n(Element.prototype,{innerHTML:{get(){return An.ENABLE_ELEMENT_PATCH?Nt(this)?Pe.call(this):Ul.call(this):Zt(this)?Ul.call(this):Pe.call(this)},set(e){De.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return An.ENABLE_ELEMENT_PATCH?Nt(this)?Ie.call(this):jl.call(this):Zt(this)?jl.call(this):Ie.call(this)},set(e){Be.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?rl(this,e):ve.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(nl(this)){const e=tl(this);if("open"===e.mode)return e}return Ge.call(this)},enumerable:!0,configurable:!0},children:{get(){return _n(this)?Kl.call(this):je.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return _n(this)?Gl.call(this):Ne.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return _n(this)?ql.call(this):Le.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return _n(this)?Xl.call(this):Me.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:Fl,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"innerHTML")&&l(HTMLElement.prototype,"innerHTML",r(Element.prototype,"innerHTML")),c.call(HTMLElement.prototype,"outerHTML")&&l(HTMLElement.prototype,"outerHTML",r(Element.prototype,"outerHTML")),c.call(HTMLElement.prototype,"children")&&l(HTMLElement.prototype,"children",r(Element.prototype,"children")),n(Element.prototype,{querySelector:{value:function(){const e=Lt(ye.apply(this,T.call(arguments)));if(nl(this)){const t=nn(this);return A(t)?null:Jt(this)?un(this,e):fn(t,e)}if(Qt(this)){const t=Vt(this);if(H(t)){if(!An.ENABLE_NODE_LIST_PATCH)return 0===e.length?null:e[0];const t=zt(this),n=g.call(e,(e=>zt(e)===t));return H(n)?null:n}{const n=g.call(e,(e=>zt(e)===t));return H(n)?null:n}}{if(!(An.ENABLE_NODE_LIST_PATCH||this instanceof HTMLBodyElement)){const t=e[0];return H(t)?null:t}const t=g.call(e,(e=>H(Vt(e))||Nt(this)));return H(t)?null:t}},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){const e=Lt(ye.apply(this,T.call(arguments)));if(!An.ENABLE_NODE_LIST_PATCH){return bn(Yl(this,e,0))}return bn(Yl(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),n(Element.prototype,{getElementsByClassName:{value(){const e=Lt(Ke.apply(this,T.call(arguments)));if(!An.ENABLE_HTML_COLLECTIONS_PATCH)return wn(Wl(this,e));return wn(Yl(this,e,1))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){const e=Lt(me.apply(this,T.call(arguments)));if(!An.ENABLE_HTML_COLLECTIONS_PATCH)return wn(Wl(this,e));return wn(Yl(this,e,1))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){const e=Lt(de.apply(this,T.call(arguments)));if(!An.ENABLE_HTML_COLLECTIONS_PATCH)return wn(Wl(this,e));return wn(Yl(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"getElementsByClassName")&&l(HTMLElement.prototype,"getElementsByClassName",r(Element.prototype,"getElementsByClassName"));const Vl="\n [contenteditable],\n [tabindex],\n a[href],\n area[href],\n audio[controls],\n button,\n iframe,\n input,\n select,\n textarea,\n video[controls]\n",zl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function Jl(e){return e.filter((e=>be.call(e,"tabindex")?"0"===pe.call(e,"tabindex"):!zl.has(ke.call(e))||!be.call(e,"disabled")))}const Ql=new WeakMap;function Zl(e){return(!nl(e)||!Zn(e))&&(Ue.call(e,Vl)&&function(e){const{width:t,height:n}=ge.call(e),l=t>0||n>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function eo(){const e=this.getRootNode();if(e===this){const e=Ee.call(this,Vl);return void(A(e)||e.focus.apply(e,arguments))}const t=e;if(t.activeElement===this)return;const n=Lt(ye.call(this,Vl));let l=!1;for(;!l&&0!==n.length;){const e=n.shift();e.focus.apply(e,arguments);l=e.getRootNode().activeElement===e}}function to(e){const t=wt(e),n=Jl(Lt(ot.call(t,Vl))),l=Jl(Lt(ye.call(e,Vl))),o=l[0],r=l[l.length-1],i=m.call(n,e),a=i>-1?i:m.call(n,o),c=0===l.length?a+1:m.call(n,r)+1;return{prev:T.call(n,0,a),inner:l,next:T.call(n,c)}}function no(e,t){const n=Q.call(e,t);return n&F?0:n&U?1:n&j?2:-1}function lo(e){e.preventDefault(),e.stopPropagation()}function oo(e,t){st.call(e,"focusin",lo,!0),st.call(e,"focusout",lo,!0),t(),ft.call(e,"focusin",lo,!0),ft.call(e,"focusout",lo,!0)}function ro(e,t,n){const l=Tt(n),o=function(e,t){const n=e.length;if(n>0)for(let l=0;l<n;l+=1){const n=e[l];if(ho(t.getRootNode(),n))return n}return null}(e,n);A(o)?oo(l,(()=>{t.blur()})):oo(l,(()=>{o.focus()}))}let io=!1;function ao(){io=!0}function co(){io=!1}function uo(){return!io}function so(e){if(io)return;const t=ze.call(e),n=Ve.call(e);if(t!==n)return;const l=Je.call(e);if(A(l))return;const o=to(t);if(1===no(t,l)){const e=ho.bind(null,t.getRootNode()),r=g.call(o.inner,e);if(H(r))ro(o.next,n,l);else{oo(Tt(r),(()=>{r.focus()}))}}else t===n&&ro(w.call(o.prev),n,l)}function fo(e){if(io)return;const t=Je.call(e);if(A(t))return;const n=ze.call(e),l=to(n);if(-1!==m.call(l.inner,t))return;const o=Ve.call(e),r=no(n,t);1===r&&ro(l.next,o,t),2===r&&ro(w.call(l.prev),o,t)}function ho(e,t){if(!Zl(t))return!1;const n=wt(t);let l=t.getRootNode();for(;l!==n&&l!==e;){const e=l.host;if("-1"===pe.call(e,"tabindex"))return!1;l=e&&e.getRootNode()}return!0}function po(e){Ot.call(e,"focusin",so,!0)}function go(e){const t=wt(e);Ql.get(t)||(Ql.set(t,!0),Ct.call(t,"mousedown",ao,!0),Ct.call(t,"mouseup",(()=>{setTimeout(co)}),!0),Ct.call(t,"dragstart",co,!0))}function mo(e){Ot.call(e,"focusin",fo,!0)}function bo(e){const t=Tt(e);return ht.call(t,e)}function Eo(e){const t=Tt(e);return pt.call(t)}function yo(e){return"visible"===e.visibility&&"none"!==e.display}function wo(e){const t=[];if((e=>e.nodeType===K)(e)){const{tagName:n}=e,l=bo(e);if("OPTION"===n)return[1,Se.call(e),1];if("TEXTAREA"===n)return[];{const n=e.childNodes;for(let e=0,l=n.length;e<l;e++)E.apply(t,wo(n[e]))}if(!yo(l))return"SELECT"===n||"DATALIST"===n?[]:t;"BR"===n&&t.push("\n");const{display:o}=l;"table-cell"===o&&t.push("\t"),"table-row"===o&&t.push("\n"),"P"===n&&(t.unshift(2),t.push(2)),"block"!==o&&"table-caption"!==o&&"flex"!==o&&"table"!==o||(t.unshift(1),t.push(1))}else(e=>e.nodeType===G)(e)&&t.push(function(e){const t=Eo(e);if(null===t)return e.textContent||"";const n=document.createRange();n.selectNodeContents(e);const l=n.getBoundingClientRect();if(l.height<=0||l.width<=0)return"";t.removeAllRanges(),t.addRange(n);return t.toString()||e.textContent||""}(e));return t}function To(e){if(!yo(bo(e)))return gn(e)||"";const t=function(e){const t=Tt(e),n=Eo(e);if(null===n)return null;const l=[];for(let e=0;e<n.rangeCount;e++)l.push(n.getRangeAt(e));const o={element:e,onselect:t.onselect,onselectstart:t.onselectstart,onselectionchange:t.onselectionchange,ranges:l};return t.onselect=null,t.onselectstart=null,t.onselectionchange=null,o}(e),n=[],l=e.childNodes;for(let e=0,t=l.length;e<t;e++)E.apply(n,wo(l[e]));!function(e){if(null===e)return;const{element:t,onselect:n,onselectstart:l,onselectionchange:o,ranges:r}=e,i=Tt(t),a=Eo(t);a.removeAllRanges();for(let e=0;e<r.length;e++)a.addRange(r[e]);i.onselect=n,i.onselectstart=l,i.onselectionchange=o}(t);let o="",r=0;for(let e=0,t=n.length;e<t;e++){const t=n[e];if("string"==typeof t){if(r>0){for(let e=0;e<r;e++)o+="\n";r=0}t.length>0&&(o+=t)}else{if(0==o.length)continue;t>r&&(r=t)}}return o}const{blur:vo,focus:No}=HTMLElement.prototype;function Lo(){return Zn(this)&&R(be.call(this,"tabindex"))?0:Fe.call(this)}function Mo(e){const t=Zn(this),n=Fe.call(this),l=be.call(this,"tabindex");We.call(this,e);const o=Fe.call(this),r=be.call(this,"tabindex"),i=n!==o;var a;(l&&(i||R(r))&&(-1===n&&mo(this),0===n&&t&&po(this)),R(r))||(l&&r&&R(i)||(-1===o&&(go(a=this),po(a),Ct.call(a,"focusin",fo,!0)),0===o&&t&&function(e){go(e),mo(e),Ct.call(e,"focusin",so,!0)}(this)))}function Co(){if(Zn(this)){const e=function(e){const t=wt(e),n=Ze.call(t);return A(n)||0!=(Q.call(e,n)&F)?n:null}(this);if(!A(e))return void e.blur()}return vo.call(this)}function So(){const e=uo();e&&ao(),nl(this)&&Zn(this)?eo.call(this):(No.apply(this,arguments),e&&co())}n(HTMLElement.prototype,{tabIndex:{get(){return nl(this)?Lo.call(this):Fe.call(this)},set(e){return nl(this)?Mo.call(this,e):We.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if(nl(this))return Co.call(this);vo.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value(){So.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Se&&null!==Oe&&l(HTMLElement.prototype,"innerText",{get(){return An.ENABLE_INNER_OUTER_TEXT_PATCH?An.ENABLE_ELEMENT_PATCH?Nt(this)?Se.call(this):To(this):Qt(this)||nl(this)?To(this):Se.call(this):Se.call(this)},set(e){Oe.call(this,e)},enumerable:!0,configurable:!0}),null!==Ae&&null!==_e&&l(HTMLElement.prototype,"outerText",{get(){return An.ENABLE_INNER_OUTER_TEXT_PATCH?An.ENABLE_ELEMENT_PATCH?Nt(this)?Ae.call(this):To(this):Qt(this)||nl(this)?To(this):Ae.call(this):Ae.call(this)},set(e){_e.call(this,e)},enumerable:!0,configurable:!0}),l(Element.prototype,B,{set(e){const t=this.$$ShadowTokenKey$$;H(t)||t===e||we.call(this,t),H(e)||Te.call(this,e,""),this.$$ShadowTokenKey$$=e},get(){return this.$$ShadowTokenKey$$},configurable:!0});const Oo=function(){};let Ho;const Ao={childList:!0};function _o(e,t,n){const l=Jn(e);if(l!==t&&(Qn(e,t),e instanceof Element)){if(function(e,t){e.$shadowToken$=t}(e,n),nl(e))return;H(l)&&mt.call(Ho,e,Ao);const o=fe.call(e);for(let e=0,l=o.length;e<l;e+=1)_o(o[e],t,n)}}function Ro(e){if(H(Ho)&&(Ho=new gt((e=>{L.call(e,(e=>{const{target:t,addedNodes:n,removedNodes:l}=e,o=Jn(t),r=t.$shadowToken$;for(let e=0,n=l.length;e<n;e+=1){const n=l[e];Q.call(t,n)&k.DOCUMENT_POSITION_CONTAINED_BY||_o(n,Oo,void 0)}for(let e=0,l=n.length;e<l;e+=1){const l=n[e];Q.call(t,l)&k.DOCUMENT_POSITION_CONTAINED_BY&&_o(l,o,r)}}))}))),H(Jn(e)))throw new Error("Invalid Element");mt.call(Ho,e,Ao)}l(Element.prototype,"$domManual$",{set(e){this.$$DomManualKey$$=e,_(e)&&Ro(this)},get(){return this.$$DomManualKey$$},configurable:!0})}();
@@ -125,7 +125,7 @@
125
125
  const KEY__SHADOW_TOKEN = '$shadowToken$';
126
126
  const KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
127
127
  const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
128
- /** version: 2.6.2 */
128
+ /** version: 2.6.3 */
129
129
 
130
130
  /*
131
131
  * Copyright (c) 2018, salesforce.com, inc.
@@ -233,6 +233,7 @@
233
233
  getElementsByClassName: getElementsByClassName$1
234
234
  } = HTMLElement.prototype;
235
235
  const shadowRootGetter = hasOwnProperty.call(Element.prototype, 'shadowRoot') ? getOwnPropertyDescriptor(Element.prototype, 'shadowRoot').get : () => null;
236
+ const assignedSlotGetter$1 = hasOwnProperty.call(Element.prototype, 'assignedSlot') ? getOwnPropertyDescriptor(Element.prototype, 'assignedSlot').get : () => null;
236
237
  /*
237
238
  * Copyright (c) 2018, salesforce.com, inc.
238
239
  * All rights reserved.
@@ -832,6 +833,15 @@
832
833
  function isNodeShadowed(node) {
833
834
  return !isUndefined(getNodeOwnerKey(node));
834
835
  }
836
+ /**
837
+ * Returns true if this node is a shadow host, is in a shadow host, or contains a shadow host
838
+ * anywhere in its tree.
839
+ */
840
+
841
+
842
+ function isNodeOrDescendantsShadowed(node) {
843
+ return isNodeShadowed(node) || isSyntheticShadowHost(node) || containsHost(node);
844
+ }
835
845
  /*
836
846
  * Copyright (c) 2018, salesforce.com, inc.
837
847
  * All rights reserved.
@@ -1465,7 +1475,7 @@
1465
1475
  }
1466
1476
 
1467
1477
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
1468
- /** version: 2.6.2 */
1478
+ /** version: 2.6.3 */
1469
1479
 
1470
1480
  /*
1471
1481
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1559,7 +1569,9 @@
1559
1569
  }
1560
1570
 
1561
1571
  function compareDocumentPositionPatched(otherNode) {
1562
- if (this.getRootNode() === otherNode) {
1572
+ if (this === otherNode) {
1573
+ return 0;
1574
+ } else if (this.getRootNode() === otherNode) {
1563
1575
  // "this" is in a shadow tree where the shadow root is the "otherNode".
1564
1576
  return 10; // Node.DOCUMENT_POSITION_CONTAINS | Node.DOCUMENT_POSITION_PRECEDING
1565
1577
  } else if (getNodeOwnerKey(this) !== getNodeOwnerKey(otherNode)) {
@@ -1605,7 +1617,7 @@
1605
1617
  function childNodesGetterPatched() {
1606
1618
  if (isSyntheticShadowHost(this)) {
1607
1619
  const owner = getNodeOwner(this);
1608
- const childNodes = isNull(owner) ? [] : getAllMatches(owner, getFilteredChildNodes(this));
1620
+ const childNodes = isNull(owner) ? getFilteredChildNodes(this) : getAllMatches(owner, getFilteredChildNodes(this));
1609
1621
 
1610
1622
  return createStaticNodeList(childNodes);
1611
1623
  } // nothing to do here since this does not have a synthetic shadow attached to it
@@ -1708,7 +1720,8 @@
1708
1720
  textContent: {
1709
1721
  get() {
1710
1722
  if (!runtimeFlags.ENABLE_NODE_PATCH) {
1711
- if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
1723
+ // See note on get innerHTML in faux-shadow/element.ts
1724
+ if (isNodeOrDescendantsShadowed(this)) {
1712
1725
  return textContentGetterPatched.call(this);
1713
1726
  }
1714
1727
 
@@ -1912,7 +1925,22 @@
1912
1925
  }
1913
1926
 
1914
1927
  return rootNodes;
1915
- }
1928
+ } // Keep searching up the host tree until we find an element that is within the immediate shadow root
1929
+
1930
+
1931
+ const findAncestorHostInImmediateShadowRoot = (rootNode, targetRootNode) => {
1932
+ let host;
1933
+
1934
+ while (!isUndefined(host = rootNode.host)) {
1935
+ const thisRootNode = host.getRootNode();
1936
+
1937
+ if (thisRootNode === targetRootNode) {
1938
+ return host;
1939
+ }
1940
+
1941
+ rootNode = thisRootNode;
1942
+ }
1943
+ };
1916
1944
 
1917
1945
  function fauxElementsFromPoint(context, doc, left, top) {
1918
1946
  const elements = elementsFromPoint.call(doc, left, top);
@@ -1926,8 +1954,28 @@
1926
1954
  for (let i = 0; i < elements.length; i++) {
1927
1955
  const element = elements[i];
1928
1956
 
1929
- if (rootNodes.indexOf(element.getRootNode()) !== -1 && !isSyntheticSlotElement(element)) {
1930
- result.push(element);
1957
+ if (isSyntheticSlotElement(element)) {
1958
+ continue;
1959
+ }
1960
+
1961
+ const elementRootNode = element.getRootNode();
1962
+
1963
+ if (ArrayIndexOf.call(rootNodes, elementRootNode) !== -1) {
1964
+ ArrayPush.call(result, element);
1965
+ continue;
1966
+ } // In cases where the host element is not visible but its shadow descendants are, then
1967
+ // we may get the shadow descendant instead of the host element here. (The
1968
+ // browser doesn't know the difference in synthetic shadow DOM.)
1969
+ // In native shadow DOM, however, elementsFromPoint would return the host but not
1970
+ // the child. So we need to detect if this shadow element's host is accessible from
1971
+ // the context's shadow root. Note we also need to be careful not to add the host
1972
+ // multiple times.
1973
+
1974
+
1975
+ const ancestorHost = findAncestorHostInImmediateShadowRoot(elementRootNode, rootNodes[0]);
1976
+
1977
+ if (!isUndefined(ancestorHost) && ArrayIndexOf.call(elements, ancestorHost) === -1 && ArrayIndexOf.call(result, ancestorHost) === -1) {
1978
+ ArrayPush.call(result, ancestorHost);
1931
1979
  }
1932
1980
  }
1933
1981
  }
@@ -2010,6 +2058,29 @@
2010
2058
  function isSyntheticShadowRoot(node) {
2011
2059
  const shadowRootRecord = InternalSlot.get(node);
2012
2060
  return !isUndefined(shadowRootRecord) && node === shadowRootRecord.shadowRoot;
2061
+ } // Return true if any descendant is a host element
2062
+
2063
+
2064
+ function containsHost(node) {
2065
+ // IE11 complains with "Unexpected call to method or property access." when calling walker.nextNode().
2066
+ // The fix for this is to only walk trees for nodes that are Node.ELEMENT_NODE.
2067
+ if (node.nodeType !== _Node.ELEMENT_NODE) {
2068
+ return false;
2069
+ } // IE requires all four arguments, even though the fourth is deprecated
2070
+ // https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker#browser_compatibility
2071
+ // @ts-ignore
2072
+
2073
+
2074
+ const walker = document.createTreeWalker(node, NodeFilter.SHOW_ELEMENT, null, false);
2075
+ let descendant;
2076
+
2077
+ while (!isNull(descendant = walker.nextNode())) {
2078
+ if (isSyntheticShadowHost(descendant)) {
2079
+ return true;
2080
+ }
2081
+ }
2082
+
2083
+ return false;
2013
2084
  }
2014
2085
 
2015
2086
  let uid = 0;
@@ -2060,6 +2131,12 @@
2060
2131
  return `[object ShadowRoot]`;
2061
2132
  }
2062
2133
 
2134
+ },
2135
+ synthetic: {
2136
+ writable: false,
2137
+ enumerable: false,
2138
+ configurable: false,
2139
+ value: true
2063
2140
  }
2064
2141
  };
2065
2142
  const ShadowRootDescriptors = {
@@ -3857,6 +3934,14 @@
3857
3934
  */
3858
3935
 
3859
3936
  retargetRelatedTarget(MouseEvent);
3937
+ /*
3938
+ * Copyright (c) 2021, salesforce.com, inc.
3939
+ * All rights reserved.
3940
+ * SPDX-License-Identifier: MIT
3941
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
3942
+ */
3943
+
3944
+ const assignedSlotGetter = hasOwnProperty.call(Text.prototype, 'assignedSlot') ? getOwnPropertyDescriptor(Text.prototype, 'assignedSlot').get : () => null;
3860
3945
  /*
3861
3946
  * Copyright (c) 2018, salesforce.com, inc.
3862
3947
  * All rights reserved.
@@ -3907,10 +3992,22 @@
3907
3992
  }
3908
3993
 
3909
3994
  function assignedSlotGetterPatched() {
3910
- const parentNode = parentNodeGetter.call(this);
3995
+ const parentNode = parentNodeGetter.call(this); // use original assignedSlot if parent has a native shdow root
3996
+
3997
+ if (parentNode instanceof Element) {
3998
+ const sr = shadowRootGetter.call(parentNode);
3999
+
4000
+ if (isInstanceOfNativeShadowRoot(sr)) {
4001
+ if (this instanceof Text) {
4002
+ return assignedSlotGetter.call(this);
4003
+ }
4004
+
4005
+ return assignedSlotGetter$1.call(this);
4006
+ }
4007
+ }
3911
4008
  /**
3912
4009
  * The node is assigned to a slot if:
3913
- * - it has a parent and it parent its parent is a slot element
4010
+ * - it has a parent and its parent is a slot element
3914
4011
  * - and if the slot owner key is different than the node owner key.
3915
4012
  *
3916
4013
  * When the slot and the slotted node are 2 different shadow trees, the owner keys will be
@@ -3919,6 +4016,7 @@
3919
4016
  * different than the node owner key (always `undefined`).
3920
4017
  */
3921
4018
 
4019
+
3922
4020
  if (!isNull(parentNode) && isSlotElement(parentNode) && getNodeOwnerKey(parentNode) !== getNodeOwnerKey(this)) {
3923
4021
  return parentNode;
3924
4022
  }
@@ -4135,7 +4233,10 @@
4135
4233
  innerHTML: {
4136
4234
  get() {
4137
4235
  if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
4138
- if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
4236
+ // If this element is in synthetic shadow, if it's a synthetic shadow host,
4237
+ // or if any of its descendants are synthetic shadow hosts, then we can't
4238
+ // use the native innerHTML because it would expose private node internals.
4239
+ if (isNodeOrDescendantsShadowed(this)) {
4139
4240
  return innerHTMLGetterPatched.call(this);
4140
4241
  }
4141
4242
 
@@ -4160,7 +4261,8 @@
4160
4261
  outerHTML: {
4161
4262
  get() {
4162
4263
  if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
4163
- if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
4264
+ // See notes above on get innerHTML
4265
+ if (isNodeOrDescendantsShadowed(this)) {
4164
4266
  return outerHTMLGetterPatched.call(this);
4165
4267
  }
4166
4268
 
@@ -5533,6 +5635,6 @@
5533
5635
 
5534
5636
  configurable: true
5535
5637
  });
5536
- /** version: 2.6.2 */
5638
+ /** version: 2.6.3 */
5537
5639
 
5538
5640
  })();