lwc 2.43.0 → 2.45.0
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.
- package/dist/engine-dom/esm/es2017/engine-dom.js +53 -231
- package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom.js +52 -231
- package/dist/engine-dom/iife/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +8 -28
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/iife/es5/engine-dom.js +51 -232
- package/dist/engine-dom/iife/es5/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +7 -27
- package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom.js +52 -231
- package/dist/engine-dom/umd/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +8 -28
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/umd/es5/engine-dom.js +51 -232
- package/dist/engine-dom/umd/es5/engine-dom.js.map +1 -1
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +7 -27
- package/dist/engine-dom/umd/es5/engine-dom_debug.js.map +1 -1
- package/dist/engine-server/commonjs/es2017/engine-server.js +121 -203
- package/dist/engine-server/commonjs/es2017/engine-server.js.map +1 -1
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +103 -203
- package/dist/engine-server/esm/es2017/engine-server.js.map +1 -1
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +89 -74
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +89 -74
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +85 -70
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +88 -71
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +84 -67
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +89 -74
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +85 -70
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +88 -71
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +84 -67
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js.map +1 -1
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/esm/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js.map +1 -1
- package/dist/wire-service/iife/es5/wire-service.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js.map +1 -1
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js.map +1 -1
- package/dist/wire-service/umd/es5/wire-service.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js.map +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";const{assign:e,create:t,defineProperties:n,defineProperty:l,freeze:o,getOwnPropertyDescriptor:r,getOwnPropertyNames:a,getPrototypeOf:i,hasOwnProperty:c,isFrozen:u,keys:s,seal:f,setPrototypeOf:p}=Object,{concat:h,copyWithin:g,fill:m,filter:b,find:d,indexOf:y,join:E,map:w,pop:v,push:T,reduce:N,reverse:M,shift:L,slice:S,some:C,sort:H,splice:O,unshift:D,forEach:R}=Array.prototype,{charCodeAt:P,replace:I,split:$,slice:A,toLowerCase:B}=String.prototype;function x(e){return void 0===e}function k(e){return null===e}function F(e){return!0===e}function _(e){return!1===e}function W(e){return"function"==typeof e}function U(e){return"object"==typeof e}const j="object"==typeof globalThis?globalThis:window,G="$shadowResolver$",K="$$ShadowResolverKey$$",q="$shadowStaticNodeKey$",Y="$shadowToken$",X="$$ShadowTokenKey$$",V="$$lwc-synthetic-mode",z="$nativeGetElementById$",Q="$nativeQuerySelectorAll$";j.lwcRuntimeFlags||Object.defineProperty(j,"lwcRuntimeFlags",{value:t(null)});const J=Node,Z=J.prototype,{DOCUMENT_POSITION_CONTAINED_BY:ee,DOCUMENT_POSITION_CONTAINS:te,DOCUMENT_POSITION_PRECEDING:ne,DOCUMENT_POSITION_FOLLOWING:le,ELEMENT_NODE:oe,TEXT_NODE:re,CDATA_SECTION_NODE:ae,PROCESSING_INSTRUCTION_NODE:ie,COMMENT_NODE:ce,DOCUMENT_FRAGMENT_NODE:ue}=J,{appendChild:se,cloneNode:fe,compareDocumentPosition:pe,insertBefore:he,removeChild:ge,replaceChild:me,hasChildNodes:be}=Z,{contains:de}=HTMLElement.prototype,ye=r(Z,"firstChild").get,Ee=r(Z,"lastChild").get,we=r(Z,"textContent").get,ve=r(Z,"parentNode").get,Te=r(Z,"ownerDocument").get,Ne=c.call(Z,"parentElement")?r(Z,"parentElement").get:r(HTMLElement.prototype,"parentElement").get,Me=r(Z,"textContent").set,Le=c.call(Z,"childNodes")?r(Z,"childNodes").get:r(HTMLElement.prototype,"childNodes").get,Se=c.call(Z,"isConnected")?r(Z,"isConnected").get:function(){const e=Te.call(this);return null===e||0!=(pe.call(e,this)&ee)},{getAttribute:Ce,getBoundingClientRect:He,getElementsByTagName:Oe,getElementsByTagNameNS:De,hasAttribute:Re,querySelector:Pe,querySelectorAll:Ie,removeAttribute:$e,setAttribute:Ae}=Element.prototype,Be=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")},xe=r(Element.prototype,"childElementCount").get,ke=r(Element.prototype,"firstElementChild").get,Fe=r(Element.prototype,"lastElementChild").get,_e=r(HTMLElement.prototype,"innerText"),We=_e?_e.get:null,Ue=_e?_e.set:null,je=r(HTMLElement.prototype,"outerText"),Ge=je?je.get:null,Ke=je?je.set:null,qe=c.call(Element.prototype,"innerHTML")?r(Element.prototype,"innerHTML"):r(HTMLElement.prototype,"innerHTML"),Ye=qe.get,Xe=qe.set,Ve=c.call(Element.prototype,"outerHTML")?r(Element.prototype,"outerHTML"):r(HTMLElement.prototype,"outerHTML"),ze=Ve.get,Qe=Ve.set,Je=r(Element.prototype,"tagName").get,Ze=r(HTMLElement.prototype,"tabIndex"),et=Ze.get,tt=Ze.set,nt=c.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,lt=c.call(Element.prototype,"children")?r(Element.prototype,"children").get:r(HTMLElement.prototype,"children").get,{getElementsByClassName:ot}=HTMLElement.prototype,rt=c.call(Element.prototype,"shadowRoot")?r(Element.prototype,"shadowRoot").get:()=>null,at=c.call(Element.prototype,"assignedSlot")?r(Element.prototype,"assignedSlot").get:()=>null;let it,ct;"undefined"!=typeof HTMLSlotElement?(it=HTMLSlotElement.prototype.assignedNodes,ct=HTMLSlotElement.prototype.assignedElements):(it=()=>{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")},ct=()=>{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 ut=r(Event.prototype,"target").get,st=r(Event.prototype,"currentTarget").get,ft=r(FocusEvent.prototype,"relatedTarget").get,pt=c.call(Event.prototype,"composedPath")?Event.prototype.composedPath:()=>[],ht=r(Document.prototype,"activeElement").get,gt=c.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,mt=c.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,bt=r(Document.prototype,"defaultView").get,{createComment:dt,querySelectorAll:yt,getElementById:Et,getElementsByClassName:wt,getElementsByTagName:vt,getElementsByTagNameNS:Tt}=Document.prototype,{getElementsByName:Nt}=HTMLDocument.prototype,{addEventListener:Mt,removeEventListener:Lt,getComputedStyle:St,getSelection:Ct}=window,Ht=MutationObserver,Ot=Ht.prototype.observe;let Dt=null;"undefined"!=typeof ShadowRoot&&(Dt=ShadowRoot);const Rt=!k(Dt),Pt=k(Dt)?()=>!1:e=>e instanceof Dt;const{createElement:It}=Document.prototype,$t=115,At=108,Bt=111,xt=116;function kt(e){const t=Te.call(e);return null===t?e:t}function Ft(e){const t=kt(e),n=bt.call(t);if(null===n)throw new TypeError;return n}let _t;function Wt(e){if(x(_t)){const t=kt(e);_t=t.body&&"temporary-bypass"===Ce.call(t.body,"data-global-patching-bypass")}return F(_t)}function Ut(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{}p(e,HTMLElement.constructor),p(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,l(Document.prototype,"createElement",{value:function(t,n){const l=It.apply(this,S.call(arguments));return 4===t.length&&P.call(t,0)===$t&&P.call(t,1)===At&&P.call(t,2)===Bt&&P.call(t,3)===xt&&p(l,e.prototype),l}})}();const jt="undefined"!=typeof EventTarget?EventTarget.prototype:J.prototype,{addEventListener:Gt,dispatchEvent:Kt,removeEventListener:qt}=jt,Yt="$$HostElementKey$$",Xt="$$ShadowedNodeKey$$";function Vt(e,t,n){const l=e;{const{value:e}=n;l[t]=e}}function zt(e){return e[Yt]}function Qt(e){let t,n=e;for(;!k(n);){if(t=zt(n),!x(t))return t;if(n=ve.call(n),!k(n)&&ln(n))return}}function Jt(e){return e[Xt]}function Zt(e){return!x(zt(e))}function en(e){let t=Ne.call(e);for(;!k(t)&&on(t);)e=t,t=Ne.call(e);return e}function tn(e,t){const n=Jt(e);let l=t instanceof Element?t:Ne.call(t);for(;!k(l)&&l!==e;){const t=Qt(l),o=Ne.call(l);if(t===n)return on(l);if(o===e)return!1;if(k(o)||Qt(o)===t)l=o;else{if(!on(o))return!1;if(l=nn(en(o)),!k(l)){if(l===e)return!0;if(Qt(l)===n)return!0}}}return!1}function nn(e){if(!(e instanceof J))return null;const t=Qt(e);if(x(t))return null;let n=e;for(;!k(n)&&Jt(n)!==t;)n=ve.call(n);return k(n)?null:n}function ln(e){return on(e)&&Zt(e)}function on(e){return e instanceof HTMLSlotElement}function rn(e,t){const n=Qt(t);if(x(n)){const e=ve.call(t);return!(!k(e)&&ln(e))}return Jt(e)===n}function an(e){const t=ml(e);return un(t,Ut(Le.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)&&T.call(n,o)}return n}function un(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];rn(e,o)&&T.call(n,o)}return n}function sn(e,t){for(let n=0,l=t.length;n<l;n+=1)if(rn(e,t[n]))return t[n];return null}function fn(e){if(!dl(e)&&!on(e)){return Ut(Le.call(e))}if(dl(e)){const t=Ut(Ie.call(e,"slot")),n=pl(bl(e));return N.call(t,((e,t)=>(n===pl(t)&&T.apply(e,pn(t)),e)),[])}{const t=Ut(Le.call(e)),n=pl(e);return b.call(t,(e=>n===pl(e)))}}function pn(e){const t=nn(e);if(k(t))return[];const n=Ut(Le.call(e));return b.call(n,(e=>!Zt(e)||!rn(t,e)))}const hn=/[&\u00A0"]/g,gn=/[&\u00A0<>]/g,{replace:mn,toLowerCase:bn}=String.prototype;function dn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function yn(e){return mn.call(e,hn,dn)}const En=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),wn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function vn(e){switch(e.nodeType){case oe:{const{attributes:t}=e,n=Je.call(e);let l="<"+bn.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+yn(e.value)+'"';return l+=">",En.has(n)?l:l+function(e){let t="";const n=fn(e);for(let e=0,l=n.length;e<l;e+=1)t+=vn(n[e]);return t}(e)+"</"+bn.call(n)+">"}case re:{const{data:n,parentNode:l}=e;return l instanceof Element&&wn.has(Je.call(l))?n:(t=n,mn.call(t,gn,dn))}case ae:return`<!CDATA[[${e.data}]]>`;case ie:return`<?${e.target} ${e.data}?>`;case ce:return`\x3c!--${e.data}--\x3e`;default:return""}var t}function Tn(e){if(e.nodeType===oe){const t=fn(e);let n="";for(let e=0,l=t.length;e<l;e+=1){const l=t[e];l.nodeType!==ce&&(n+=Tn(l))}return n}return e.nodeValue}const Nn=new WeakMap;function Mn(){throw new TypeError("Illegal constructor")}function Ln(e){const n=t(Mn.prototype);return Nn.set(n,e),R.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}Mn.prototype=t(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:Mn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return Nn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){R.call(Nn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return w.call(Nn.get(this),((e,t)=>[t,e]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return w.call(Nn.get(this),((e,t)=>t))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return Nn.get(this)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=Nn.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]"}}),p(Mn,NodeList);const Sn=(e,t)=>{let n;for(;!x(n=e.host);){const l=n.getRootNode();if(l===t)return n;e=l}};function Cn(e,t,n,l){const o=mt.call(t,n,l),r=[],a=function(e){var t;const n=[];let l=e.getRootNode();for(;!x(l);)n.push(l),l=null===(t=l.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!k(o))for(let e=0;e<o.length;e++){const t=o[e];if(ln(t))continue;const n=t.getRootNode();if(-1!==y.call(a,n)){T.call(r,t);continue}const l=Sn(n,a[0]);x(l)||-1!==y.call(o,l)||-1!==y.call(r,l)||T.call(r,l)}return r}const Hn=new WeakMap;function On(){throw new TypeError("Illegal constructor")}function Dn(e){const n=t(On.prototype);return Hn.set(n,e),R.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}function Rn(e){return ln(e)||dl(e)}function Pn(e,t){const n=nn(e);if(t===n)return bl(n);if(t instanceof Element){if(Qt(e)===Qt(t))return t;if(!k(n)&&on(t)){const e=nn(t);if(!k(e)&&rn(n,e))return e}}return null}function In(){return Kn(this).length>0}function $n(){return Kn(this)[0]||null}function An(){const e=Kn(this);return e[e.length-1]||null}function Bn(){return Tn(this)}function xn(){const e=ve.call(this);return k(e)?e:Pn(this,e)}function kn(){const e=ve.call(this);if(k(e))return null;const t=Pn(this,e);return t instanceof Element?t:null}function Fn(e){return this===e?0:this.getRootNode()===e?10:zt(this)!==zt(e)?35:pe.call(this,e)}function _n(e){return null!=e&&zt(this)===zt(e)&&0!=(pe.call(this,e)&ee)}function Wn(e){const t=fe.call(this,!1);if(!e)return t;const n=Kn(this);for(let e=0,l=n.length;e<l;e+=1)t.appendChild(n[e].cloneNode(!0));return t}function Un(){if(dl(this)){const e=nn(this);return Ln(k(e)?[]:un(e,fn(this)))}return Le.call(this)}On.prototype=t(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:On},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return Hn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(""===e)return null;const t=Hn.get(this);for(let n=0,l=t.length;n<l;n++){const n=t[l];if(e===Ce.call(n,"id")||e===Ce.call(n,"name"))return n}return null}},[Symbol.toStringTag]:{configurable:!0,get:()=>"HTMLCollection"},toString:{writable:!0,configurable:!0,value:()=>"[object HTMLCollection]"}}),p(On,HTMLCollection);const jn=J.prototype.getRootNode,Gn=x(jn)?function(){let e,t=this;for(;!k(e=ve.call(t));)t=e;return t}:jn;n(J.prototype,{firstChild:{get(){return Rn(this)?$n.call(this):ye.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Rn(this)?An.call(this):Ee.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return Zt(this)||dl(this)?Bn.call(this):we.call(this)},set:function(e){Me.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get(){if(Zt(this))return xn.call(this);const e=ve.call(this);return!k(e)&&ln(e)?nn(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(Zt(this))return kn.call(this);const e=Ne.call(this);return!k(e)&&ln(e)?nn(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Rn(this)?Un.call(this):Le.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Rn(this)?In.call(this):be.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return Wt(this)?pe.call(this,e):Fn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e||null!=e&&(Zt(this)||dl(this)?_n.call(this,e):de.call(this,e))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return Zt(this)||dl(this)?Wn.call(this,e):fe.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){return F(!x(e)&&!!e.composed)?Gn.call(this,e):function(e){const t=nn(e);return k(t)?Gn.call(e):bl(t)}(this)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return Se.call(this)}}});const Kn=function(e){return e.childNodes};c.call(HTMLElement.prototype,"contains")&&l(HTMLElement.prototype,"contains",r(J.prototype,"contains")),c.call(HTMLElement.prototype,"parentElement")&&l(HTMLElement.prototype,"parentElement",r(J.prototype,"parentElement"));const qn=new WeakMap,Yn=new WeakMap;function Xn(e,t,n){if(t===n)return!0;let l=Yn.get(e);return x(l)&&(l=e.composedPath(),Yn.set(e,l)),l.includes(n)}function Vn(e){if(!function(e){return W(e)||U(e)&&!k(e)&&W(e.handleEvent)}(e))return e;let t=qn.get(e);return x(t)&&(t=function(t){const n=st.call(t);if(Xn(t,Zn(t),n))return W(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},qn.set(e,t)),t}const zn=new WeakMap,Qn=new WeakMap;function Jn(e){let n=Qn.get(e);return x(n)&&(n=t(null),Qn.set(e,n)),n}function Zn(e){var t;return null!==(t=Nl.get(e))&&void 0!==t?t:ut.call(e)}const el=new WeakMap;function tl(e){if(!W(e))throw new TypeError;let t=el.get(e);return x(t)&&(t=function(t){let n=st.call(t);Pt(n)||(n=bl(n));Xn(t,Zn(t),n)&&e.call(n,t)},t.placement=1,el.set(e,t)),t}const nl=new WeakMap;function ll(e){if(!W(e))throw new TypeError;let t=nl.get(e);return x(t)&&(t=function(t){const n=st.call(t);Xn(t,Zn(t),n)&&e.call(n,t)},t.placement=0,nl.set(e,t)),t}function ol(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:r,stopPropagation:a}=e,i=Jn(st.call(e))[o];l(e,"stopImmediatePropagation",{value(){t=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0}),l(e,"stopPropagation",{value(){n=!0,a.call(e)},writable:!0,enumerable:!0,configurable:!0});const c=S.call(i);function u(n){R.call(c,(l=>{_(t)&&l.placement===n&&-1!==y.call(i,l)&&l.call(void 0,e)}))}zn.set(e,1),u(1),_(t)&&_(n)&&(zn.set(e,0),u(0)),zn.set(e,2)}function rl(e,t,n){const l=Jn(e);let o=l[t];x(o)&&(o=l[t]=[]),-1===y.call(o,n)&&(0===o.length&&Gt.call(e,t,ol),T.call(o,n))}function al(e,t,n){let l,o;x(o=Jn(e)[t])||-1===(l=y.call(o,n))||(O.call(o,l,1),0===o.length&&qt.call(e,t,ol))}function il(e,t,n){if(W(t)){rl(this,e,ll(t))}}function cl(e,t,n){if(W(t)){al(this,e,ll(t))}}const ul=new WeakMap,{createDocumentFragment:sl}=document;function fl(e){const t=ul.get(e);if(x(t))throw new TypeError;return t}function pl(e){return e[G]}function hl(e,t){e[G]=t}function gl(e){return fl(e).delegatesFocus}function ml(e){return fl(e).host}function bl(e){return fl(e).shadowRoot}function dl(e){const t=ul.get(e);return!x(t)&&e===t.host}function yl(e){const t=ul.get(e);return!x(t)&&e===t.shadowRoot}l(J.prototype,G,{set(e){var t,n;x(e)||(this[K]=e,t=this,n=e.nodeKey,Vt(t,Yt,{value:n,configurable:!0}))},get(){return this[K]},configurable:!0,enumerable:!0}),l(j,"$isNativeShadowRootDefined$",{value:Rt}),x(j[z])&&l(j,z,{value:Et,configurable:!0}),x(j[Q])&&l(j,Q,{value:yt,configurable:!0});let El=0;function wl(e,t){if(ul.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=kt(e),r=sl.call(o),a={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};ul.set(r,a),ul.set(e,a);const i=()=>r,c=i.nodeKey=El++;return Vt(e,Xt,{value:c}),hl(r,i),p(r,Ll.prototype),r}const vl={constructor:{writable:!0,configurable:!0,value:Ll},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"},synthetic:{writable:!1,enumerable:!1,configurable:!1,value:!0}},Tl={activeElement:{enumerable:!0,configurable:!0,get(){const e=ml(this),t=kt(e),n=ht.call(t);if(k(n))return n;if(0==(pe.call(e,n)&ee))return null;let l=n;for(;!rn(e,l);)l=Ne.call(l);return on(l)?null:l}},delegatesFocus:{configurable:!0,get(){return fl(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Hl(this,kt(ml(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Cn(this,kt(ml(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 ml(this)}},mode:{configurable:!0,get(){return fl(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},Nl=new WeakMap,Ml={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return he.call(ml(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ge.call(ml(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return se.call(ml(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return me.call(ml(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){W(n)&&rl(ml(e),t,tl(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return Nl.set(e,this),Kt.apply(ml(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){W(n)&&al(ml(e),t,tl(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return ml(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return Ln(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=ml(this);return this===e?0:this.contains(e)?20:pe.call(t,e)&ee?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=ml(this);return 0!=(pe.call(t,e)&ee)&&rn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return Kn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=Kn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return Kn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return Se.call(ml(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 ml(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=Kn(this);let t="";for(let n=0,l=e.length;n<l;n+=1){const l=e[n];l.nodeType!==ce&&(t+=Tn(l))}return t},set(e){const t=ml(this);Me.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!x(e)&&F(e.composed)?ml(this).getRootNode(e):this}}};function Ll(){throw new TypeError("Illegal constructor")}function Sl(e,t){const n=[];let l;if(e instanceof Window)l=e;else{if(!(e instanceof J))return n;l=e.getRootNode()}let o,r=e;for(;!k(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=k(e)?r.parentNode:e}else r=!yl(r)&&!Pt(r)||!t&&r===l?r instanceof J?r.parentNode:null:r.host;return o=e instanceof Window?e.document:kt(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:a,getPrototypeOf:i,hasOwnProperty:c,isFrozen:u,keys:s,seal:f,setPrototypeOf:p}=Object,{concat:h,copyWithin:g,fill:m,filter:d,find:b,findIndex:y,indexOf:E,join:w,map:v,pop:T,push:N,reduce:M,reverse:L,shift:S,slice:C,some:H,sort:O,splice:D,unshift:R,forEach:P}=Array.prototype,{charCodeAt:I,replace:$,split:A,slice:B,toLowerCase:x}=String.prototype;function k(e){return void 0===e}function F(e){return null===e}function _(e){return!0===e}function W(e){return!1===e}function U(e){return"function"==typeof e}function j(e){return"object"==typeof e}const G="object"==typeof globalThis?globalThis:window,K="$shadowResolver$",q="$$ShadowResolverKey$$",Y="$shadowStaticNodeKey$",X="$shadowToken$",V="$$ShadowTokenKey$$",z="$nativeGetElementById$",Q="$nativeQuerySelectorAll$";G.lwcRuntimeFlags||Object.defineProperty(G,"lwcRuntimeFlags",{value:t(null)});const J=Node,Z=J.prototype,{DOCUMENT_POSITION_CONTAINED_BY:ee,DOCUMENT_POSITION_CONTAINS:te,DOCUMENT_POSITION_PRECEDING:ne,DOCUMENT_POSITION_FOLLOWING:le,ELEMENT_NODE:oe,TEXT_NODE:re,CDATA_SECTION_NODE:ae,PROCESSING_INSTRUCTION_NODE:ie,COMMENT_NODE:ce,DOCUMENT_FRAGMENT_NODE:ue}=J,{appendChild:se,cloneNode:fe,compareDocumentPosition:pe,insertBefore:he,removeChild:ge,replaceChild:me,hasChildNodes:de}=Z,{contains:be}=HTMLElement.prototype,ye=r(Z,"firstChild").get,Ee=r(Z,"lastChild").get,we=r(Z,"textContent").get,ve=r(Z,"parentNode").get,Te=r(Z,"ownerDocument").get,Ne=c.call(Z,"parentElement")?r(Z,"parentElement").get:r(HTMLElement.prototype,"parentElement").get,Me=r(Z,"textContent").set,Le=c.call(Z,"childNodes")?r(Z,"childNodes").get:r(HTMLElement.prototype,"childNodes").get,Se=c.call(Z,"isConnected")?r(Z,"isConnected").get:function(){const e=Te.call(this);return null===e||0!=(pe.call(e,this)&ee)},{getAttribute:Ce,getBoundingClientRect:He,getElementsByTagName:Oe,getElementsByTagNameNS:De,hasAttribute:Re,querySelector:Pe,querySelectorAll:Ie,removeAttribute:$e,setAttribute:Ae}=Element.prototype,Be=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")},xe=r(Element.prototype,"childElementCount").get,ke=r(Element.prototype,"firstElementChild").get,Fe=r(Element.prototype,"lastElementChild").get,_e=r(HTMLElement.prototype,"innerText"),We=_e?_e.get:null,Ue=_e?_e.set:null,je=r(HTMLElement.prototype,"outerText"),Ge=je?je.get:null,Ke=je?je.set:null,qe=c.call(Element.prototype,"innerHTML")?r(Element.prototype,"innerHTML"):r(HTMLElement.prototype,"innerHTML"),Ye=qe.get,Xe=qe.set,Ve=c.call(Element.prototype,"outerHTML")?r(Element.prototype,"outerHTML"):r(HTMLElement.prototype,"outerHTML"),ze=Ve.get,Qe=Ve.set,Je=r(Element.prototype,"tagName").get,Ze=r(HTMLElement.prototype,"tabIndex"),et=Ze.get,tt=Ze.set,nt=c.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,lt=c.call(Element.prototype,"children")?r(Element.prototype,"children").get:r(HTMLElement.prototype,"children").get,{getElementsByClassName:ot}=HTMLElement.prototype,rt=c.call(Element.prototype,"shadowRoot")?r(Element.prototype,"shadowRoot").get:()=>null,at=c.call(Element.prototype,"assignedSlot")?r(Element.prototype,"assignedSlot").get:()=>null;let it,ct;"undefined"!=typeof HTMLSlotElement?(it=HTMLSlotElement.prototype.assignedNodes,ct=HTMLSlotElement.prototype.assignedElements):(it=()=>{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")},ct=()=>{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 ut=r(Event.prototype,"target").get,st=r(Event.prototype,"currentTarget").get,ft=r(FocusEvent.prototype,"relatedTarget").get,pt=c.call(Event.prototype,"composedPath")?Event.prototype.composedPath:()=>[],ht=r(Document.prototype,"activeElement").get,gt=c.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,mt=c.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,dt=r(Document.prototype,"defaultView").get,{createComment:bt,querySelectorAll:yt,getElementById:Et,getElementsByClassName:wt,getElementsByTagName:vt,getElementsByTagNameNS:Tt}=Document.prototype,{getElementsByName:Nt}=HTMLDocument.prototype,{addEventListener:Mt,removeEventListener:Lt,getComputedStyle:St,getSelection:Ct}=window,Ht=MutationObserver,Ot=Ht.prototype.observe;let Dt=null;"undefined"!=typeof ShadowRoot&&(Dt=ShadowRoot);const Rt=!F(Dt),Pt=F(Dt)?()=>!1:e=>e instanceof Dt;const{createElement:It}=Document.prototype;function $t(e){const t=Te.call(e);return null===t?e:t}function At(e){const t=$t(e),n=dt.call(t);if(null===n)throw new TypeError;return n}let Bt;function xt(e){if(k(Bt)){const t=$t(e);Bt=t.body&&"temporary-bypass"===Ce.call(t.body,"data-global-patching-bypass")}return _(Bt)}function kt(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{}p(e,HTMLElement.constructor),p(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,l(Document.prototype,"createElement",{value:function(t,n){const l=It.apply(this,C.call(arguments));return 4===t.length&&115===I.call(t,0)&&108===I.call(t,1)&&111===I.call(t,2)&&116===I.call(t,3)&&p(l,e.prototype),l}})}();const Ft="undefined"!=typeof EventTarget?EventTarget.prototype:J.prototype,{addEventListener:_t,dispatchEvent:Wt,removeEventListener:Ut}=Ft,jt="$$HostElementKey$$",Gt="$$ShadowedNodeKey$$";function Kt(e,t,n){const l=e;{const{value:e}=n;l[t]=e}}function qt(e){return e[jt]}function Yt(e){let t,n=e;for(;!F(n);){if(t=qt(n),!k(t))return t;if(n=ve.call(n),!F(n)&&Zt(n))return}}function Xt(e){return e[Gt]}function Vt(e){return!k(qt(e))}function zt(e){let t=Ne.call(e);for(;!F(t)&&en(t);)e=t,t=Ne.call(e);return e}function Qt(e,t){const n=Xt(e);let l=t instanceof Element?t:Ne.call(t);for(;!F(l)&&l!==e;){const t=Yt(l),o=Ne.call(l);if(t===n)return en(l);if(o===e)return!1;if(F(o)||Yt(o)===t)l=o;else{if(!en(o))return!1;if(l=Jt(zt(o)),!F(l)){if(l===e)return!0;if(Yt(l)===n)return!0}}}return!1}function Jt(e){if(!(e instanceof J))return null;const t=Yt(e);if(k(t))return null;let n=e;for(;!F(n)&&Xt(n)!==t;)n=ve.call(n);return F(n)?null:n}function Zt(e){return en(e)&&Vt(e)}function en(e){return e instanceof HTMLSlotElement}function tn(e,t){const n=Yt(t);if(k(n)){const e=ve.call(t);return!(!F(e)&&Zt(e))}return Xt(e)===n}function nn(e){const t=gl(e);return on(t,kt(Le.call(t)))}function ln(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];!tn(e,o)&&Qt(e,o)&&N.call(n,o)}return n}function on(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];tn(e,o)&&N.call(n,o)}return n}function rn(e,t){for(let n=0,l=t.length;n<l;n+=1)if(tn(e,t[n]))return t[n];return null}function an(e){if(!dl(e)&&!en(e)){return kt(Le.call(e))}if(dl(e)){const t=kt(Ie.call(e,"slot")),n=fl(ml(e));return M.call(t,((e,t)=>(n===fl(t)&&N.apply(e,cn(t)),e)),[])}{const t=kt(Le.call(e)),n=fl(e);return d.call(t,(e=>n===fl(e)))}}function cn(e){const t=Jt(e);if(F(t))return[];const n=kt(Le.call(e));return d.call(n,(e=>!Vt(e)||!tn(t,e)))}const un=/[&\u00A0"]/g,sn=/[&\u00A0<>]/g,{replace:fn,toLowerCase:pn}=String.prototype;function hn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function gn(e){return fn.call(e,un,hn)}const mn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),dn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function bn(e){switch(e.nodeType){case oe:{const{attributes:t}=e,n=Je.call(e);let l="<"+pn.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+gn(e.value)+'"';return l+=">",mn.has(n)?l:l+function(e){let t="";const n=an(e);for(let e=0,l=n.length;e<l;e+=1)t+=bn(n[e]);return t}(e)+"</"+pn.call(n)+">"}case re:{const{data:n,parentNode:l}=e;return l instanceof Element&&dn.has(Je.call(l))?n:(t=n,fn.call(t,sn,hn))}case ae:return`<!CDATA[[${e.data}]]>`;case ie:return`<?${e.target} ${e.data}?>`;case ce:return`\x3c!--${e.data}--\x3e`;default:return""}var t}function yn(e){if(e.nodeType===oe){const t=an(e);let n="";for(let e=0,l=t.length;e<l;e+=1){const l=t[e];l.nodeType!==ce&&(n+=yn(l))}return n}return e.nodeValue}const En=new WeakMap;function wn(){throw new TypeError("Illegal constructor")}function vn(e){const n=t(wn.prototype);return En.set(n,e),P.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}wn.prototype=t(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:wn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return En.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){P.call(En.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return v.call(En.get(this),((e,t)=>[t,e]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return v.call(En.get(this),((e,t)=>t))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return En.get(this)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=En.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]"}}),p(wn,NodeList);const Tn=(e,t)=>{let n;for(;!k(n=e.host);){const l=n.getRootNode();if(l===t)return n;e=l}};function Nn(e,t,n,l){const o=mt.call(t,n,l),r=[],a=function(e){var t;const n=[];let l=e.getRootNode();for(;!k(l);)n.push(l),l=null===(t=l.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!F(o))for(let e=0;e<o.length;e++){const t=o[e];if(Zt(t))continue;const n=t.getRootNode();if(-1!==E.call(a,n)){N.call(r,t);continue}const l=Tn(n,a[0]);k(l)||-1!==E.call(o,l)||-1!==E.call(r,l)||N.call(r,l)}return r}const Mn=new WeakMap;function Ln(){throw new TypeError("Illegal constructor")}function Sn(e){const n=t(Ln.prototype);return Mn.set(n,e),P.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}function Cn(e){return Zt(e)||dl(e)}function Hn(e,t){const n=Jt(e);if(t===n)return ml(n);if(t instanceof Element){if(Yt(e)===Yt(t))return t;if(!F(n)&&en(t)){const e=Jt(t);if(!F(e)&&tn(n,e))return e}}return null}function On(){return Wn(this).length>0}function Dn(){return Wn(this)[0]||null}function Rn(){const e=Wn(this);return e[e.length-1]||null}function Pn(){return yn(this)}function In(){const e=ve.call(this);return F(e)?e:Hn(this,e)}function $n(){const e=ve.call(this);if(F(e))return null;const t=Hn(this,e);return t instanceof Element?t:null}function An(e){return this===e?0:this.getRootNode()===e?10:qt(this)!==qt(e)?35:pe.call(this,e)}function Bn(e){return null!=e&&qt(this)===qt(e)&&0!=(pe.call(this,e)&ee)}function xn(e){const t=fe.call(this,!1);if(!e)return t;const n=Wn(this);for(let e=0,l=n.length;e<l;e+=1)t.appendChild(n[e].cloneNode(!0));return t}function kn(){if(dl(this)){const e=Jt(this);return vn(F(e)?[]:on(e,an(this)))}return Le.call(this)}Ln.prototype=t(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Ln},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return Mn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(""===e)return null;const t=Mn.get(this);for(let n=0,l=t.length;n<l;n++){const n=t[l];if(e===Ce.call(n,"id")||e===Ce.call(n,"name"))return n}return null}},[Symbol.toStringTag]:{configurable:!0,get:()=>"HTMLCollection"},toString:{writable:!0,configurable:!0,value:()=>"[object HTMLCollection]"}}),p(Ln,HTMLCollection);const Fn=J.prototype.getRootNode,_n=k(Fn)?function(){let e,t=this;for(;!F(e=ve.call(t));)t=e;return t}:Fn;n(J.prototype,{firstChild:{get(){return Cn(this)?Dn.call(this):ye.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Cn(this)?Rn.call(this):Ee.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return Vt(this)||dl(this)?Pn.call(this):we.call(this)},set:function(e){Me.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get(){if(Vt(this))return In.call(this);const e=ve.call(this);return!F(e)&&Zt(e)?Jt(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(Vt(this))return $n.call(this);const e=Ne.call(this);return!F(e)&&Zt(e)?Jt(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Cn(this)?kn.call(this):Le.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Cn(this)?On.call(this):de.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return xt(this)?pe.call(this,e):An.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e||null!=e&&(Vt(this)||dl(this)?Bn.call(this,e):be.call(this,e))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return Vt(this)||dl(this)?xn.call(this,e):fe.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){return _(!k(e)&&!!e.composed)?_n.call(this,e):function(e){const t=Jt(e);return F(t)?_n.call(e):ml(t)}(this)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return Se.call(this)}}});const Wn=function(e){return e.childNodes};c.call(HTMLElement.prototype,"contains")&&l(HTMLElement.prototype,"contains",r(J.prototype,"contains")),c.call(HTMLElement.prototype,"parentElement")&&l(HTMLElement.prototype,"parentElement",r(J.prototype,"parentElement"));const Un=new WeakMap,jn=new WeakMap;function Gn(e,t,n){if(t===n)return!0;let l=jn.get(e);return k(l)&&(l=e.composedPath(),jn.set(e,l)),l.includes(n)}function Kn(e){if(!function(e){return U(e)||j(e)&&!F(e)&&U(e.handleEvent)}(e))return e;let t=Un.get(e);return k(t)&&(t=function(t){const n=st.call(t);if(Gn(t,Qn(t),n))return U(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Un.set(e,t)),t}const qn=new WeakMap;function Yn(e){return U(e)?e:e.handleEvent}function Xn(e){return U(e)||U(null==e?void 0:e.handleEvent)}const Vn=new WeakMap;function zn(e){let n=Vn.get(e);return k(n)&&(n=t(null),Vn.set(e,n)),n}function Qn(e){var t;return null!==(t=Tl.get(e))&&void 0!==t?t:ut.call(e)}const Jn=new WeakMap;function Zn(e){if(!Xn(e))throw new TypeError;let t=Jn.get(e);return k(t)&&(t={identity:e,placement:1,handleEvent(t){let n=st.call(t);Pt(n)||(n=ml(n));Gn(t,Qn(t),n)&&Yn(e).call(n,t)}},Jn.set(e,t)),t}const el=new WeakMap;function tl(e){if(!Xn(e))throw new TypeError;let t=el.get(e);return k(t)&&(t={identity:e,placement:0,handleEvent(t){const n=st.call(t);Gn(t,Qn(t),n)&&Yn(e).call(n,t)}},el.set(e,t)),t}function nl(e,t){return y.call(e,(e=>e.identity===t.identity))}function ll(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:r,stopPropagation:a}=e,i=zn(st.call(e))[o];l(e,"stopImmediatePropagation",{value(){t=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0}),l(e,"stopPropagation",{value(){n=!0,a.call(e)},writable:!0,enumerable:!0,configurable:!0});const c=C.call(i);function u(n){P.call(c,(l=>{W(t)&&l.placement===n&&-1!==nl(i,l)&&l.handleEvent.call(void 0,e)}))}qn.set(e,1),u(1),W(t)&&W(n)&&(qn.set(e,0),u(0)),qn.set(e,2)}function ol(e,t,n){const l=zn(e);let o=l[t];k(o)&&(o=l[t]=[]),-1===nl(o,n)&&(0===o.length&&_t.call(e,t,ll),N.call(o,n))}function rl(e,t,n){let l,o;k(o=zn(e)[t])||-1===(l=nl(o,n))||(D.call(o,l,1),0===o.length&&Ut.call(e,t,ll))}function al(e,t,n){if(Xn(t)){ol(this,e,tl(t))}}function il(e,t,n){if(Xn(t)){rl(this,e,tl(t))}}const cl=new WeakMap,{createDocumentFragment:ul}=document;function sl(e){const t=cl.get(e);if(k(t))throw new TypeError;return t}function fl(e){return e[K]}function pl(e,t){e[K]=t}function hl(e){return sl(e).delegatesFocus}function gl(e){return sl(e).host}function ml(e){return sl(e).shadowRoot}function dl(e){const t=cl.get(e);return!k(t)&&e===t.host}function bl(e){const t=cl.get(e);return!k(t)&&e===t.shadowRoot}l(J.prototype,K,{set(e){var t,n;k(e)||(this[q]=e,t=this,n=e.nodeKey,Kt(t,jt,{value:n,configurable:!0}))},get(){return this[q]},configurable:!0,enumerable:!0}),l(G,"$isNativeShadowRootDefined$",{value:Rt}),k(G[z])&&l(G,z,{value:Et,configurable:!0}),k(G[Q])&&l(G,Q,{value:yt,configurable:!0});let yl=0;function El(e,t){if(cl.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=$t(e),r=ul.call(o),a={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};cl.set(r,a),cl.set(e,a);const i=()=>r,c=i.nodeKey=yl++;return Kt(e,Gt,{value:c}),pl(r,i),p(r,Ml.prototype),r}const wl={constructor:{writable:!0,configurable:!0,value:Ml},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"},synthetic:{writable:!1,enumerable:!1,configurable:!1,value:!0}},vl={activeElement:{enumerable:!0,configurable:!0,get(){const e=gl(this),t=$t(e),n=ht.call(t);if(F(n))return n;if(0==(pe.call(e,n)&ee))return null;let l=n;for(;!tn(e,l);)l=Ne.call(l);return en(l)?null:l}},delegatesFocus:{configurable:!0,get(){return sl(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Cl(this,$t(gl(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Nn(this,$t(gl(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 gl(this)}},mode:{configurable:!0,get(){return sl(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},Tl=new WeakMap,Nl={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return he.call(gl(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ge.call(gl(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return se.call(gl(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return me.call(gl(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){Xn(n)&&ol(gl(e),t,Zn(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return Tl.set(e,this),Wt.apply(gl(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){Xn(n)&&rl(gl(e),t,Zn(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return gl(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return vn(nn(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=gl(this);return this===e?0:this.contains(e)?20:pe.call(t,e)&ee?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=gl(this);return 0!=(pe.call(t,e)&ee)&&tn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return Wn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=Wn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return Wn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return Se.call(gl(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 gl(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=Wn(this);let t="";for(let n=0,l=e.length;n<l;n+=1){const l=e[n];l.nodeType!==ce&&(t+=yn(l))}return t},set(e){const t=gl(this);Me.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!k(e)&&_(e.composed)?gl(this).getRootNode(e):this}}};function Ml(){throw new TypeError("Illegal constructor")}function Ll(e,t){const n=[];let l;if(e instanceof Window)l=e;else{if(!(e instanceof J))return n;l=e.getRootNode()}let o,r=e;for(;!F(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=F(e)?r.parentNode:e}else r=!bl(r)&&!Pt(r)||!t&&r===l?r instanceof J?r.parentNode:null:r.host;return o=e instanceof Window?e.document:$t(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,5 +7,5 @@
|
|
|
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 Cl(e,t){if(k(e))return null;const n=Sl(e,!0),l=t;for(let e,t,o,r,a=0;a<l.length;a++)if(e=l[a],o=e instanceof Window?e:e.getRootNode(),o!==t&&(r=n.indexOf(o),t=o),!yl(o)||!x(r)&&r>-1)return e;return null}function Hl(e,t,n,l){const o=gt.call(t,n,l);return k(o)?o:Cl(e,Sl(o,!0))}e(vl,Ml,{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return Dn(b.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=ml(e);return sn(n,Ut(Ie.call(n,t)))}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return Ln(function(e,t){const n=ml(e);return un(n,Ut(Ie.call(n,t)))}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=Kn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=vn(e[n]);return t},set(e){const t=ml(this);Xe.call(t,e)}}},Tl),Ll.prototype=t(DocumentFragment.prototype,vl),l(Ll,Symbol.hasInstance,{value:function(e){return U(e)&&!k(e)&&(Pt(e)||i(e)===Ll.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return Hl(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Cn(this,this,e,t)},l(Document.prototype,"activeElement",{get(){let e=ht.call(this);if(k(e))return e;for(;!x(zt(e));)if(e=Ne.call(e),k(e))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),l(Document.prototype,"getElementById",{value(){const e=Et.apply(this,S.call(arguments));return k(e)?null:x(zt(e))||Wt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelector",{value(){const e=Ut(yt.apply(this,S.call(arguments))),t=d.call(e,(e=>x(zt(e))||Wt(e)));return x(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelectorAll",{value(){const e=Ut(yt.apply(this,S.call(arguments)));return Ln(b.call(e,(e=>x(zt(e))||Wt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByClassName",{value(){const e=Ut(wt.apply(this,S.call(arguments)));return Dn(b.call(e,(e=>x(zt(e))||Wt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagName",{value(){const e=Ut(vt.apply(this,S.call(arguments)));return Dn(b.call(e,(e=>x(zt(e))||Wt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagNameNS",{value(){const e=Ut(Tt.apply(this,S.call(arguments)));return Dn(b.call(e,(e=>x(zt(e))||Wt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(r(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=Ut(Nt.apply(this,S.call(arguments)));return Ln(b.call(e,(e=>x(zt(e))||Wt(e))))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:Ll,configurable:!0,writable:!0});const Ol=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const Dl=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Rl(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!Ol)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",(t=>e=t)),t.click(),!Ol.get.call(e)})()&&(HTMLElement.prototype.click=function(){Gt.call(this,"click",Rl);try{Dl.value.call(this)}finally{qt.call(this,"click",Rl)}}),!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 Pl=CustomEvent;function Il(e,t){const n=new Pl(e,t),l=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>l,configurable:!0,enumerable:!0}}),n}if(Il.prototype=Pl.prototype,window.CustomEvent=Il,"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}})}(function(){const e="undefined"!=typeof HTMLIFrameElement,t="undefined"!=typeof Proxy&&F(Proxy.isCompat);return e&&t})()&&function(){const e=r(HTMLIFrameElement.prototype,"contentWindow"),{get:t}=e;e.get=function(){const e=t.call(this);return k(e)||x(zt(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 $l=MutationObserver,{disconnect:Al,observe:Bl,takeRecords:xl}=$l.prototype,kl="$$lwcObserverCallbackWrapper$$",Fl="$$lwcNodeObservers$$",_l=new WeakMap;function Wl(e){return e[Fl]}function Ul(e){const{addedNodes:l,removedNodes:o,target:r,type:a}=e,i=t(MutationRecord.prototype);return n(i,{addedNodes:{get:()=>l,enumerable:!0,configurable:!0},removedNodes:{get:()=>o,enumerable:!0,configurable:!0},type:{get:()=>a,enumerable:!0,configurable:!0},target:{get:()=>r.shadowRoot,enumerable:!0,configurable:!0}}),i}function jl(e,t){let n=t;for(;!k(n);){const t=Wl(n);if(!x(t)&&(t[0]===e||-1!==y.call(t,e)))return!0;n=n.parentNode}return!1}function Gl(e,t){return N.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:a}=n;if("childList"!==a||x(Jt(l)))jl(t,l)&&T.call(e,n);else if(o.length>0){const r=o[0];if(jl(t,r)){const o=Wl(l);!o||o[0]!==t&&-1===y.call(o,t)?T.call(e,Ul(n)):T.call(e,n)}}else{const o=l.shadowRoot,a=r[0];if(Qt(l)===Qt(a)&&jl(t,l))T.call(e,n);else if(o){const l=Wl(o);!l||l[0]!==t&&-1===y.call(l,t)||T.call(e,Ul(n))}}return e}),[])}function Kl(e){const t=function(e){let t=e[kl];return x(t)&&(t=e[kl]=(t,n)=>{const l=Gl(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new $l(t)}function ql(e,t,n){if(arguments.length>1){const e=S.call(arguments);return e[1]=Vn(e[1]),Mt.apply(this,e)}return Mt.apply(this,arguments)}function Yl(e,t,n){if(arguments.length>1){const e=S.call(arguments);e[1]=Vn(e[1]),Lt.apply(this,e)}Lt.apply(this,arguments)}function Xl(){const e=ut.call(this);if(!(e instanceof J))return e;const t=kt(e),n=Sl(e,this.composed),l=st.call(this);if(!(l instanceof J))return k(l)&&x(zt(e))?e:Cl(t,n);if(l===t||l===t.body)return x(zt(e))?e:Cl(t,n);let o=l,r=n;if(dl(l)){1===zn.get(this)&&(o=bl(l))}return dl(e)&&Nl.has(this)&&(r=Sl(bl(e),this.composed)),Cl(o,r)}function Vl(){const e=ut.call(this);if(!(e instanceof J))return[];const t=Boolean(e.shadowRoot),n=(l=e,ul.has(l));var l;if(t&&!n)return pt.call(this);if(k(st.call(this)))return[];let o=e;return dl(e)&&Nl.has(this)&&(o=bl(e)),Sl(o,this.composed)}function zl(e){const t=r(e.prototype,"relatedTarget").get;l(e.prototype,"relatedTarget",{get(){const e=t.call(this);if(k(e))return null;if(!(e instanceof J&&Zt(e)))return e;let n=st.call(this);return k(n)&&(n=kt(e)),Cl(n,Sl(e,!0))},enumerable:!0,configurable:!0})}Kl.prototype=$l.prototype,Kl.prototype.disconnect=function(){Al.call(this);const e=_l.get(this);x(e)||(R.call(e,(e=>{const t=e[Fl];if(!x(t)){const e=y.call(t,this);-1!==e&&O.call(t,e,1)}})),e.length=0)},Kl.prototype.observe=function(e,t){let n=Wl(e);var l;if(x(n)&&(n=[],l=n,e[Fl]=l),-1===y.call(n,this)&&T.call(n,this),yl(e)&&(e=e.host),_l.has(this)){const t=_l.get(this);-1===y.call(t,e)&&T.call(t,e)}else _l.set(this,[e]);return Bl.call(this,e,t)},Kl.prototype.takeRecords=function(){return Gl(xl.call(this),this)},l(window,"MutationObserver",{value:Kl,configurable:!0,writable:!0}),n(jt,{addEventListener:{value:function(e,t,n){if(dl(this))return il.apply(this,arguments);if(arguments.length<2){const e=S.call(arguments);return e.length>1&&(e[1]=Vn(e[1])),Gt.apply(this,e)}const l=Vn(t);return Gt.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(dl(this))return cl.apply(this,arguments);const l=S.call(arguments);arguments.length>1&&(l[1]=Vn(l[1])),qt.apply(this,l),qt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&n(Window.prototype,{addEventListener:{value:ql,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Yl,enumerable:!0,writable:!0,configurable:!0}}),n(Event.prototype,{target:{get:Xl,enumerable:!0,configurable:!0},currentTarget:{get:function(){const e=st.call(this);return k(e)?null:1===zn.get(this)?bl(e):e},enumerable:!0,configurable:!0},composedPath:{value:Vl,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Xl,enumerable:!0,configurable:!0},path:{get:Vl,enumerable:!0,configurable:!0}}),zl(FocusEvent),zl(MouseEvent);const Ql=c.call(Text.prototype,"assignedSlot")?r(Text.prototype,"assignedSlot").get:()=>null;let Jl;const Zl={childList:!0},eo=new WeakMap;function to(e){const t=Ut(Le.call(e));return N.call(t,((e,t)=>(t instanceof Element&&on(t)?T.apply(e,to(t)):T.call(e,t),e)),[])}function no(){const e=ve.call(this);if(e instanceof Element){const t=rt.call(e);if(Pt(t))return this instanceof Text?Ql.call(this):at.call(this)}return!k(e)&&on(e)&&zt(e)!==zt(this)?e:null}function lo(e,t){let n;const l=zt(e);if(x(l))n=e instanceof HTMLBodyElement?b.call(t,(t=>x(zt(t))||Wt(e))):S.call(t);else if(dl(e)){const l=nn(e);n=k(l)?[]:Jt(e)?cn(e,t):un(l,t)}else n=b.call(t,(e=>Qt(e)===l));return n}function oo(){const e=Kn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=vn(e[n]);return t}function ro(){return vn(this)}function ao(){const e=nn(this),t=k(e)?[]:un(e,fn(this));return Dn(b.call(t,(e=>e instanceof Element)))}function io(){return this.children.length}function co(){return this.children[0]||null}function uo(){const{children:e}=this;return e.item(e.length-1)||null}n(HTMLSlotElement.prototype,{addEventListener:{value(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||eo.get(this)||(eo.set(this,!0),Jl||(Jl=new Ht((e=>{const t=[];R.call(e,(e=>{const{target:n}=e;-1===y.call(t,n)&&(T.call(t,n),Kt.call(n,new CustomEvent("slotchange")))}))}))),Ot.call(Jl,this,Zl))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(Zt(this)){const t=!x(e)&&F(e.flatten)?to(this):pn(this);return b.call(t,(e=>e instanceof Element))}return ct.apply(this,S.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){if(Zt(this)){return!x(e)&&F(e.flatten)?to(this):pn(this)}return it.apply(this,S.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=Ce.call(this,"name");return k(e)?"":e},set(e){Ae.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(Zt(this)){const e=nn(this);return Ln(k(e)?[]:un(e,fn(this)))}return Le.call(this)},enumerable:!0,configurable:!0}}),n(Text.prototype,{assignedSlot:{get:no,enumerable:!0,configurable:!0}}),n(Element.prototype,{innerHTML:{get(){return Zt(this)||dl(this)?oo.call(this):Ye.call(this)},set(e){Xe.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return Zt(this)||dl(this)?ro.call(this):ze.call(this)},set(e){Qe.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e[V]?wl(this,e):Be.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(dl(this)){const e=bl(this);if("open"===e.mode)return e}return rt.call(this)},enumerable:!0,configurable:!0},children:{get(){return Rn(this)?ao.call(this):lt.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Rn(this)?io.call(this):xe.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Rn(this)?co.call(this):ke.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Rn(this)?uo.call(this):Fe.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:no,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=Ut(Ie.apply(this,S.call(arguments)));if(dl(this)){const t=nn(this);return x(Jt(this))?k(t)?null:sn(t,e):function(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}(this,e)}if(Zt(this)){const t=zt(this);if(x(t))return 0===e.length?null:e[0];{const n=d.call(e,(e=>Qt(e)===t));return x(n)?null:n}}{if(!(this instanceof HTMLBodyElement)){const t=e[0];return x(t)?null:t}const t=d.call(e,(e=>x(zt(e))||Wt(this)));return x(t)?null:t}},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){return Ln(function(e,t){let n;if(dl(e)){const l=nn(e);n=x(Jt(e))?k(l)?[]:un(l,t):cn(e,t)}else if(Zt(e)){const l=zt(e);n=x(l)?S.call(t):b.call(t,(e=>Qt(e)===l))}else n=e instanceof HTMLBodyElement?b.call(t,(t=>x(zt(t))||Wt(e))):S.call(t);return n}(this,Ut(Ie.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),n(Element.prototype,{getElementsByClassName:{value(){return Dn(lo(this,Ut(ot.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){return Dn(lo(this,Ut(Oe.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){return Dn(lo(this,Ut(De.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"getElementsByClassName")&&l(HTMLElement.prototype,"getElementsByClassName",r(Element.prototype,"getElementsByClassName"));const so="\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",fo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function po(e){return e.filter((e=>Re.call(e,"tabindex")?"0"===Ce.call(e,"tabindex"):!fo.has(Je.call(e))||!Re.call(e,"disabled")))}const ho=new WeakMap;function go(e){return(!dl(e)||!gl(e))&&(nt.call(e,so)&&function(e){const{width:t,height:n}=He.call(e),l=t>0||n>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function mo(){const e=this.getRootNode();if(e===this){const e=Pe.call(this,so);return void(k(e)||e.focus.apply(e,arguments))}if(e.activeElement===this)return;const t=Ut(Ie.call(this,so));let n=!1;for(;!n&&0!==t.length;){const e=t.shift();e.focus.apply(e,arguments);n=e.getRootNode().activeElement===e}}function bo(e){const t=kt(e),n=po(Ut(yt.call(t,so))),l=po(Ut(Ie.call(e,so))),o=l[0],r=l[l.length-1],a=y.call(n,e),i=a>-1?a:y.call(n,o),c=0===l.length?i+1:y.call(n,r)+1;return{prev:S.call(n,0,i),inner:l,next:S.call(n,c)}}function yo(e,t){const n=pe.call(e,t);return n&ee?0:n&ne?1:n&le?2:-1}function Eo(e){e.preventDefault(),e.stopPropagation()}function wo(e,t){Mt.call(e,"focusin",Eo,!0),Mt.call(e,"focusout",Eo,!0),t(),Lt.call(e,"focusin",Eo,!0),Lt.call(e,"focusout",Eo,!0)}function vo(e,t,n){const l=Ft(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);k(o)?wo(l,(()=>{t.blur()})):wo(l,(()=>{o.focus()}))}let To=!1;function No(){To=!0}function Mo(){To=!1}function Lo(e){if(To)return;const t=st.call(e),n=ut.call(e);if(t!==n)return;const l=ft.call(e);if(k(l))return;const o=bo(t);if(1===yo(t,l)){const e=Co.bind(null,t.getRootNode()),r=d.call(o.inner,e);if(x(r))vo(o.next,n,l);else{wo(Ft(r),(()=>{r.focus()}))}}else t===n&&vo(M.call(o.prev),n,l)}function So(e){if(To)return;const t=ft.call(e);if(k(t))return;const n=st.call(e),l=bo(n);if(-1!==y.call(l.inner,t))return;const o=ut.call(e),r=yo(n,t);1===r&&vo(l.next,o,t),2===r&&vo(M.call(l.prev),o,t)}function Co(e,t){if(!go(t))return!1;const n=kt(t);let l=t.getRootNode();for(;l!==n&&l!==e;){const e=l.host;if("-1"===Ce.call(e,"tabindex"))return!1;l=e&&e.getRootNode()}return!0}function Ho(e){qt.call(e,"focusin",Lo,!0)}function Oo(e){const t=kt(e);ho.get(t)||(ho.set(t,!0),Gt.call(t,"mousedown",No,!0),Gt.call(t,"mouseup",(()=>{setTimeout(Mo)}),!0),Gt.call(t,"dragstart",Mo,!0))}function Do(e){qt.call(e,"focusin",So,!0)}const{blur:Ro,focus:Po}=HTMLElement.prototype;function Io(){return gl(this)&&_(Re.call(this,"tabindex"))?0:et.call(this)}function $o(e){const t=gl(this),n=et.call(this),l=Re.call(this,"tabindex");tt.call(this,e);const o=et.call(this),r=Re.call(this,"tabindex"),a=n!==o;var i;(l&&(a||_(r))&&(-1===n&&Do(this),0===n&&t&&Ho(this)),_(r))||(l&&r&&_(a)||(-1===o&&(Oo(i=this),Ho(i),Gt.call(i,"focusin",So,!0)),0===o&&t&&function(e){Oo(e),Do(e),Gt.call(e,"focusin",Lo,!0)}(this)))}function Ao(){if(gl(this)){const e=function(e){const t=kt(e),n=ht.call(t);return k(n)||0!=(pe.call(e,n)&ee)?n:null}(this);if(!k(e))return void e.blur()}return Ro.call(this)}function Bo(){const e=!To;e&&No(),dl(this)&&gl(this)?mo.call(this):(Po.apply(this,arguments),e&&Mo())}function xo(e,t){e[G]=t;const n=Le.call(e);for(let e=0,l=n.length;e<l;e++)xo(n[e],t)}n(HTMLElement.prototype,{tabIndex:{get(){return dl(this)?Io.call(this):et.call(this)},set(e){return dl(this)?$o.call(this,e):tt.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if(dl(this))return Ao.call(this);Ro.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value(){Bo.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==We&&null!==Ue&&l(HTMLElement.prototype,"innerText",{get(){return We.call(this)},set(e){Ue.call(this,e)},enumerable:!0,configurable:!0}),null!==Ge&&null!==Ke&&l(HTMLElement.prototype,"outerText",{get(){return Ge.call(this)},set(e){Ke.call(this,e)},enumerable:!0,configurable:!0}),l(Element.prototype,Y,{set(e){const t=this[X];x(t)||t===e||$e.call(this,t),x(e)||Ae.call(this,e,""),this[X]=e},get(){return this[X]},configurable:!0}),l(Element.prototype,"$shadowStaticNode$",{set(e){if(e){xo(this,this[G])}this[q]=e},get(){return this[q]},configurable:!0});const ko="$$DomManualKey$$",Fo=function(){};let _o;const Wo={childList:!0};function Uo(e,t,n){const l=pl(e);if(l!==t&&(hl(e,t),e instanceof Element)){if(function(e,t){e[Y]=t}(e,n),dl(e))return;x(l)&&Ot.call(_o,e,Wo);const o=Le.call(e);for(let e=0,l=o.length;e<l;e+=1)Uo(o[e],t,n)}}function jo(){return new Ht((e=>{R.call(e,(e=>{const{target:t,addedNodes:n,removedNodes:l}=e,o=pl(t),r=t[Y];for(let e=0,n=l.length;e<n;e+=1){const n=l[e];pe.call(t,n)&J.DOCUMENT_POSITION_CONTAINED_BY||Uo(n,Fo,void 0)}for(let e=0,l=n.length;e<l;e+=1){const l=n[e];pe.call(t,l)&J.DOCUMENT_POSITION_CONTAINED_BY&&Uo(l,o,r)}}))}))}l(Element.prototype,"$domManual$",{set(e){this[ko]=e,F(e)&&function(e){if(x(_o)&&(_o=jo()),x(pl(e)))throw new Error("Invalid Element");Ot.call(_o,e,Wo)}(this)},get(){return this[ko]},configurable:!0})}();
|
|
10
|
+
*/function Sl(e,t){if(F(e))return null;const n=Ll(e,!0),l=t;for(let e,t,o,r,a=0;a<l.length;a++)if(e=l[a],o=e instanceof Window?e:e.getRootNode(),o!==t&&(r=n.indexOf(o),t=o),!bl(o)||!k(r)&&r>-1)return e;return null}function Cl(e,t,n,l){const o=gt.call(t,n,l);return F(o)?o:Sl(e,Ll(o,!0))}e(wl,Nl,{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return Sn(d.call(nn(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=gl(e);return rn(n,kt(Ie.call(n,t)))}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return vn(function(e,t){const n=gl(e);return on(n,kt(Ie.call(n,t)))}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=Wn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=bn(e[n]);return t},set(e){const t=gl(this);Xe.call(t,e)}}},vl),Ml.prototype=t(DocumentFragment.prototype,wl),l(Ml,Symbol.hasInstance,{value:function(e){return j(e)&&!F(e)&&(Pt(e)||i(e)===Ml.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return Cl(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Nn(this,this,e,t)},l(Document.prototype,"activeElement",{get(){let e=ht.call(this);if(F(e))return e;for(;!k(qt(e));)if(e=Ne.call(e),F(e))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),l(Document.prototype,"getElementById",{value(){const e=Et.apply(this,C.call(arguments));return F(e)?null:k(qt(e))||xt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelector",{value(){const e=kt(yt.apply(this,C.call(arguments))),t=b.call(e,(e=>k(qt(e))||xt(e)));return k(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelectorAll",{value(){const e=kt(yt.apply(this,C.call(arguments)));return vn(d.call(e,(e=>k(qt(e))||xt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByClassName",{value(){const e=kt(wt.apply(this,C.call(arguments)));return Sn(d.call(e,(e=>k(qt(e))||xt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagName",{value(){const e=kt(vt.apply(this,C.call(arguments)));return Sn(d.call(e,(e=>k(qt(e))||xt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagNameNS",{value(){const e=kt(Tt.apply(this,C.call(arguments)));return Sn(d.call(e,(e=>k(qt(e))||xt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(r(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=kt(Nt.apply(this,C.call(arguments)));return vn(d.call(e,(e=>k(qt(e))||xt(e))))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:Ml,configurable:!0,writable:!0});const Hl=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const Ol=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Dl(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(){_t.call(this,"click",Dl);try{Ol.value.call(this)}finally{Ut.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 Rl=CustomEvent;function Pl(e,t){const n=new Rl(e,t),l=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>l,configurable:!0,enumerable:!0}}),n}if(Pl.prototype=Rl.prototype,window.CustomEvent=Pl,"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}})}(function(){const e="undefined"!=typeof HTMLIFrameElement,t="undefined"!=typeof Proxy&&_(Proxy.isCompat);return e&&t})()&&function(){const e=r(HTMLIFrameElement.prototype,"contentWindow"),{get:t}=e;e.get=function(){const e=t.call(this);return F(e)||k(qt(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 Il=MutationObserver,{disconnect:$l,observe:Al,takeRecords:Bl}=Il.prototype,xl="$$lwcObserverCallbackWrapper$$",kl="$$lwcNodeObservers$$",Fl=new WeakMap;function _l(e){return e[kl]}function Wl(e){const{addedNodes:l,removedNodes:o,target:r,type:a}=e,i=t(MutationRecord.prototype);return n(i,{addedNodes:{get:()=>l,enumerable:!0,configurable:!0},removedNodes:{get:()=>o,enumerable:!0,configurable:!0},type:{get:()=>a,enumerable:!0,configurable:!0},target:{get:()=>r.shadowRoot,enumerable:!0,configurable:!0}}),i}function Ul(e,t){let n=t;for(;!F(n);){const t=_l(n);if(!k(t)&&(t[0]===e||-1!==E.call(t,e)))return!0;n=n.parentNode}return!1}function jl(e,t){return M.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:a}=n;if("childList"!==a||k(Xt(l)))Ul(t,l)&&N.call(e,n);else if(o.length>0){const r=o[0];if(Ul(t,r)){const o=_l(l);!o||o[0]!==t&&-1===E.call(o,t)?N.call(e,Wl(n)):N.call(e,n)}}else{const o=l.shadowRoot,a=r[0];if(Yt(l)===Yt(a)&&Ul(t,l))N.call(e,n);else if(o){const l=_l(o);!l||l[0]!==t&&-1===E.call(l,t)||N.call(e,Wl(n))}}return e}),[])}function Gl(e){const t=function(e){let t=e[xl];return k(t)&&(t=e[xl]=(t,n)=>{const l=jl(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new Il(t)}function Kl(e,t,n){if(arguments.length>1){const e=C.call(arguments);return e[1]=Kn(e[1]),Mt.apply(this,e)}return Mt.apply(this,arguments)}function ql(e,t,n){if(arguments.length>1){const e=C.call(arguments);e[1]=Kn(e[1]),Lt.apply(this,e)}Lt.apply(this,arguments)}function Yl(){const e=ut.call(this);if(!(e instanceof J))return e;const t=$t(e),n=Ll(e,this.composed),l=st.call(this);if(!(l instanceof J))return F(l)&&k(qt(e))?e:Sl(t,n);if(l===t||l===t.body)return k(qt(e))?e:Sl(t,n);let o=l,r=n;if(dl(l)){1===qn.get(this)&&(o=ml(l))}return dl(e)&&Tl.has(this)&&(r=Ll(ml(e),this.composed)),Sl(o,r)}function Xl(){const e=ut.call(this);if(!(e instanceof J))return[];const t=Boolean(e.shadowRoot),n=(l=e,cl.has(l));var l;if(t&&!n)return pt.call(this);if(F(st.call(this)))return[];let o=e;return dl(e)&&Tl.has(this)&&(o=ml(e)),Ll(o,this.composed)}function Vl(e){const t=r(e.prototype,"relatedTarget").get;l(e.prototype,"relatedTarget",{get(){const e=t.call(this);if(F(e))return null;if(!(e instanceof J&&Vt(e)))return e;let n=st.call(this);return F(n)&&(n=$t(e)),Sl(n,Ll(e,!0))},enumerable:!0,configurable:!0})}Gl.prototype=Il.prototype,Gl.prototype.disconnect=function(){$l.call(this);const e=Fl.get(this);k(e)||(P.call(e,(e=>{const t=e[kl];if(!k(t)){const e=E.call(t,this);-1!==e&&D.call(t,e,1)}})),e.length=0)},Gl.prototype.observe=function(e,t){let n=_l(e);var l;if(k(n)&&(n=[],l=n,e[kl]=l),-1===E.call(n,this)&&N.call(n,this),bl(e)&&(e=e.host),Fl.has(this)){const t=Fl.get(this);-1===E.call(t,e)&&N.call(t,e)}else Fl.set(this,[e]);return Al.call(this,e,t)},Gl.prototype.takeRecords=function(){return jl(Bl.call(this),this)},l(window,"MutationObserver",{value:Gl,configurable:!0,writable:!0}),n(Ft,{addEventListener:{value:function(e,t,n){if(dl(this))return al.apply(this,arguments);if(arguments.length<2){const e=C.call(arguments);return e.length>1&&(e[1]=Kn(e[1])),_t.apply(this,e)}const l=Kn(t);return _t.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(dl(this))return il.apply(this,arguments);const l=C.call(arguments);arguments.length>1&&(l[1]=Kn(l[1])),Ut.apply(this,l),Ut.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&n(Window.prototype,{addEventListener:{value:Kl,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:ql,enumerable:!0,writable:!0,configurable:!0}}),n(Event.prototype,{target:{get:Yl,enumerable:!0,configurable:!0},currentTarget:{get:function(){const e=st.call(this);return F(e)?null:1===qn.get(this)?ml(e):e},enumerable:!0,configurable:!0},composedPath:{value:Xl,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Yl,enumerable:!0,configurable:!0},path:{get:Xl,enumerable:!0,configurable:!0}}),Vl(FocusEvent),Vl(MouseEvent);const zl=c.call(Text.prototype,"assignedSlot")?r(Text.prototype,"assignedSlot").get:()=>null;let Ql;const Jl={childList:!0},Zl=new WeakMap;function eo(e){const t=kt(Le.call(e));return M.call(t,((e,t)=>(t instanceof Element&&en(t)?N.apply(e,eo(t)):N.call(e,t),e)),[])}function to(){const e=ve.call(this);if(e instanceof Element){const t=rt.call(e);if(Pt(t))return this instanceof Text?zl.call(this):at.call(this)}return!F(e)&&en(e)&&qt(e)!==qt(this)?e:null}function no(e,t){let n;const l=qt(e);if(k(l))n=e instanceof HTMLBodyElement?d.call(t,(t=>k(qt(t))||xt(e))):C.call(t);else if(dl(e)){const l=Jt(e);n=F(l)?[]:Xt(e)?ln(e,t):on(l,t)}else n=d.call(t,(e=>Yt(e)===l));return n}function lo(){const e=Wn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=bn(e[n]);return t}function oo(){return bn(this)}function ro(){const e=Jt(this),t=F(e)?[]:on(e,an(this));return Sn(d.call(t,(e=>e instanceof Element)))}function ao(){return this.children.length}function io(){return this.children[0]||null}function co(){const{children:e}=this;return e.item(e.length-1)||null}n(HTMLSlotElement.prototype,{addEventListener:{value(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||Zl.get(this)||(Zl.set(this,!0),Ql||(Ql=new Ht((e=>{const t=[];P.call(e,(e=>{const{target:n}=e;-1===E.call(t,n)&&(N.call(t,n),Wt.call(n,new CustomEvent("slotchange")))}))}))),Ot.call(Ql,this,Jl))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(Vt(this)){const t=!k(e)&&_(e.flatten)?eo(this):cn(this);return d.call(t,(e=>e instanceof Element))}return ct.apply(this,C.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){if(Vt(this)){return!k(e)&&_(e.flatten)?eo(this):cn(this)}return it.apply(this,C.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=Ce.call(this,"name");return F(e)?"":e},set(e){Ae.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(Vt(this)){const e=Jt(this);return vn(F(e)?[]:on(e,an(this)))}return Le.call(this)},enumerable:!0,configurable:!0}}),n(Text.prototype,{assignedSlot:{get:to,enumerable:!0,configurable:!0}}),n(Element.prototype,{innerHTML:{get(){return Vt(this)||dl(this)?lo.call(this):Ye.call(this)},set(e){Xe.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return Vt(this)||dl(this)?oo.call(this):ze.call(this)},set(e){Qe.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?El(this,e):Be.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(dl(this)){const e=ml(this);if("open"===e.mode)return e}return rt.call(this)},enumerable:!0,configurable:!0},children:{get(){return Cn(this)?ro.call(this):lt.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Cn(this)?ao.call(this):xe.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Cn(this)?io.call(this):ke.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Cn(this)?co.call(this):Fe.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:to,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=kt(Ie.apply(this,C.call(arguments)));if(dl(this)){const t=Jt(this);return k(Xt(this))?F(t)?null:rn(t,e):function(e,t){for(let n=0,l=t.length;n<l;n+=1){const l=t[n];if(!tn(e,l)&&Qt(e,l))return l}return null}(this,e)}if(Vt(this)){const t=qt(this);if(k(t))return 0===e.length?null:e[0];{const n=b.call(e,(e=>Yt(e)===t));return k(n)?null:n}}{if(!(this instanceof HTMLBodyElement)){const t=e[0];return k(t)?null:t}const t=b.call(e,(e=>k(qt(e))||xt(this)));return k(t)?null:t}},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){return vn(function(e,t){let n;if(dl(e)){const l=Jt(e);n=k(Xt(e))?F(l)?[]:on(l,t):ln(e,t)}else if(Vt(e)){const l=qt(e);n=k(l)?C.call(t):d.call(t,(e=>Yt(e)===l))}else n=e instanceof HTMLBodyElement?d.call(t,(t=>k(qt(t))||xt(e))):C.call(t);return n}(this,kt(Ie.apply(this,C.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),n(Element.prototype,{getElementsByClassName:{value(){return Sn(no(this,kt(ot.apply(this,C.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){return Sn(no(this,kt(Oe.apply(this,C.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){return Sn(no(this,kt(De.apply(this,C.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"getElementsByClassName")&&l(HTMLElement.prototype,"getElementsByClassName",r(Element.prototype,"getElementsByClassName"));const uo="\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",so=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function fo(e){return e.filter((e=>Re.call(e,"tabindex")?"0"===Ce.call(e,"tabindex"):!so.has(Je.call(e))||!Re.call(e,"disabled")))}const po=new WeakMap;function ho(e){return(!dl(e)||!hl(e))&&(nt.call(e,uo)&&function(e){const{width:t,height:n}=He.call(e),l=t>0||n>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function go(){const e=this.getRootNode();if(e===this){const e=Pe.call(this,uo);return void(F(e)||e.focus.apply(e,arguments))}if(e.activeElement===this)return;const t=kt(Ie.call(this,uo));let n=!1;for(;!n&&0!==t.length;){const e=t.shift();e.focus.apply(e,arguments);n=e.getRootNode().activeElement===e}}function mo(e){const t=$t(e),n=fo(kt(yt.call(t,uo))),l=fo(kt(Ie.call(e,uo))),o=l[0],r=l[l.length-1],a=E.call(n,e),i=a>-1?a:E.call(n,o),c=0===l.length?i+1:E.call(n,r)+1;return{prev:C.call(n,0,i),inner:l,next:C.call(n,c)}}function bo(e,t){const n=pe.call(e,t);return n&ee?0:n&ne?1:n&le?2:-1}function yo(e){e.preventDefault(),e.stopPropagation()}function Eo(e,t){Mt.call(e,"focusin",yo,!0),Mt.call(e,"focusout",yo,!0),t(),Lt.call(e,"focusin",yo,!0),Lt.call(e,"focusout",yo,!0)}function wo(e,t,n){const l=At(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(So(t.getRootNode(),n))return n}return null}(e,n);F(o)?Eo(l,(()=>{t.blur()})):Eo(l,(()=>{o.focus()}))}let vo=!1;function To(){vo=!0}function No(){vo=!1}function Mo(e){if(vo)return;const t=st.call(e),n=ut.call(e);if(t!==n)return;const l=ft.call(e);if(F(l))return;const o=mo(t);if(1===bo(t,l)){const e=So.bind(null,t.getRootNode()),r=b.call(o.inner,e);if(k(r))wo(o.next,n,l);else{Eo(At(r),(()=>{r.focus()}))}}else t===n&&wo(L.call(o.prev),n,l)}function Lo(e){if(vo)return;const t=ft.call(e);if(F(t))return;const n=st.call(e),l=mo(n);if(-1!==E.call(l.inner,t))return;const o=ut.call(e),r=bo(n,t);1===r&&wo(l.next,o,t),2===r&&wo(L.call(l.prev),o,t)}function So(e,t){if(!ho(t))return!1;const n=$t(t);let l=t.getRootNode();for(;l!==n&&l!==e;){const e=l.host;if("-1"===Ce.call(e,"tabindex"))return!1;l=e&&e.getRootNode()}return!0}function Co(e){Ut.call(e,"focusin",Mo,!0)}function Ho(e){const t=$t(e);po.get(t)||(po.set(t,!0),_t.call(t,"mousedown",To,!0),_t.call(t,"mouseup",(()=>{setTimeout(No)}),!0),_t.call(t,"dragstart",No,!0))}function Oo(e){Ut.call(e,"focusin",Lo,!0)}const{blur:Do,focus:Ro}=HTMLElement.prototype;function Po(){return hl(this)&&W(Re.call(this,"tabindex"))?0:et.call(this)}function Io(e){const t=hl(this),n=et.call(this),l=Re.call(this,"tabindex");tt.call(this,e);const o=et.call(this),r=Re.call(this,"tabindex"),a=n!==o;var i;(l&&(a||W(r))&&(-1===n&&Oo(this),0===n&&t&&Co(this)),W(r))||(l&&r&&W(a)||(-1===o&&(Ho(i=this),Co(i),_t.call(i,"focusin",Lo,!0)),0===o&&t&&function(e){Ho(e),Oo(e),_t.call(e,"focusin",Mo,!0)}(this)))}function $o(){if(hl(this)){const e=function(e){const t=$t(e),n=ht.call(t);return F(n)||0!=(pe.call(e,n)&ee)?n:null}(this);if(!F(e))return void e.blur()}return Do.call(this)}function Ao(){const e=!vo;e&&To(),dl(this)&&hl(this)?go.call(this):(Ro.apply(this,arguments),e&&No())}function Bo(e,t){e[K]=t;const n=Le.call(e);for(let e=0,l=n.length;e<l;e++)Bo(n[e],t)}n(HTMLElement.prototype,{tabIndex:{get(){return dl(this)?Po.call(this):et.call(this)},set(e){return dl(this)?Io.call(this,e):tt.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if(dl(this))return $o.call(this);Do.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value(){Ao.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==We&&null!==Ue&&l(HTMLElement.prototype,"innerText",{get(){return We.call(this)},set(e){Ue.call(this,e)},enumerable:!0,configurable:!0}),null!==Ge&&null!==Ke&&l(HTMLElement.prototype,"outerText",{get(){return Ge.call(this)},set(e){Ke.call(this,e)},enumerable:!0,configurable:!0}),l(Element.prototype,X,{set(e){const t=this[V];k(t)||t===e||$e.call(this,t),k(e)||Ae.call(this,e,""),this[V]=e},get(){return this[V]},configurable:!0}),l(Element.prototype,"$shadowStaticNode$",{set(e){if(e){Bo(this,this[K])}this[Y]=e},get(){return this[Y]},configurable:!0});const xo="$$DomManualKey$$",ko=function(){};let Fo;const _o={childList:!0};function Wo(e,t,n){const l=fl(e);if(l!==t&&(pl(e,t),e instanceof Element)){if(function(e,t){e[X]=t}(e,n),dl(e))return;k(l)&&Ot.call(Fo,e,_o);const o=Le.call(e);for(let e=0,l=o.length;e<l;e+=1)Wo(o[e],t,n)}}function Uo(){return new Ht((e=>{P.call(e,(e=>{const{target:t,addedNodes:n,removedNodes:l}=e,o=fl(t),r=t[X];for(let e=0,n=l.length;e<n;e+=1){const n=l[e];pe.call(t,n)&J.DOCUMENT_POSITION_CONTAINED_BY||Wo(n,ko,void 0)}for(let e=0,l=n.length;e<l;e+=1){const l=n[e];pe.call(t,l)&J.DOCUMENT_POSITION_CONTAINED_BY&&Wo(l,o,r)}}))}))}l(Element.prototype,"$domManual$",{set(e){this[xo]=e,_(e)&&function(e){if(k(Fo)&&(Fo=Uo()),k(fl(e)))throw new Error("Invalid Element");Ot.call(Fo,e,_o)}(this)},get(){return this[xo]},configurable:!0})}();
|
|
11
11
|
//# sourceMappingURL=synthetic-shadow.min.js.map
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
11
11
|
*/
|
|
12
12
|
const { assign, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isFrozen, keys, seal, setPrototypeOf, } = Object;
|
|
13
|
-
const { concat: ArrayConcat, copyWithin: ArrayCopyWithin, fill: ArrayFill, filter: ArrayFilter, find: ArrayFind, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, pop: ArrayPop, push: ArrayPush, reduce: ArrayReduce, reverse: ArrayReverse, shift: ArrayShift, slice: ArraySlice, some: ArraySome, sort: ArraySort, splice: ArraySplice, unshift: ArrayUnshift, forEach, } = Array.prototype;
|
|
13
|
+
const { concat: ArrayConcat, copyWithin: ArrayCopyWithin, fill: ArrayFill, filter: ArrayFilter, find: ArrayFind, findIndex: ArrayFindIndex, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, pop: ArrayPop, push: ArrayPush, reduce: ArrayReduce, reverse: ArrayReverse, shift: ArrayShift, slice: ArraySlice, some: ArraySome, sort: ArraySort, splice: ArraySplice, unshift: ArrayUnshift, forEach, } = Array.prototype;
|
|
14
14
|
const { charCodeAt: StringCharCodeAt, replace: StringReplace, split: StringSplit, slice: StringSlice, toLowerCase: StringToLowerCase, } = String.prototype;
|
|
15
15
|
function isUndefined(obj) {
|
|
16
16
|
return obj === undefined;
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
60
60
|
const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
|
|
61
61
|
const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
|
|
62
|
-
/** version: 2.
|
|
62
|
+
/** version: 2.45.0 */
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
69
69
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
70
70
|
}
|
|
71
|
-
/** version: 2.
|
|
71
|
+
/** version: 2.45.0 */
|
|
72
72
|
|
|
73
73
|
/*
|
|
74
74
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1388,7 +1388,7 @@
|
|
|
1388
1388
|
*/
|
|
1389
1389
|
const EventListenerMap = new WeakMap();
|
|
1390
1390
|
const ComposedPathMap = new WeakMap();
|
|
1391
|
-
function isEventListenerOrEventListenerObject(fnOrObj) {
|
|
1391
|
+
function isEventListenerOrEventListenerObject$1(fnOrObj) {
|
|
1392
1392
|
return (isFunction(fnOrObj) ||
|
|
1393
1393
|
(isObject(fnOrObj) &&
|
|
1394
1394
|
!isNull(fnOrObj) &&
|
|
@@ -1409,7 +1409,7 @@
|
|
|
1409
1409
|
return composedPath.includes(currentTarget);
|
|
1410
1410
|
}
|
|
1411
1411
|
function getEventListenerWrapper(fnOrObj) {
|
|
1412
|
-
if (!isEventListenerOrEventListenerObject(fnOrObj)) {
|
|
1412
|
+
if (!isEventListenerOrEventListenerObject$1(fnOrObj)) {
|
|
1413
1413
|
return fnOrObj;
|
|
1414
1414
|
}
|
|
1415
1415
|
let wrapperFn = EventListenerMap.get(fnOrObj);
|
|
@@ -1437,6 +1437,17 @@
|
|
|
1437
1437
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1438
1438
|
*/
|
|
1439
1439
|
const eventToContextMap = new WeakMap();
|
|
1440
|
+
function getEventHandler(listener) {
|
|
1441
|
+
if (isFunction(listener)) {
|
|
1442
|
+
return listener;
|
|
1443
|
+
}
|
|
1444
|
+
else {
|
|
1445
|
+
return listener.handleEvent;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
function isEventListenerOrEventListenerObject(listener) {
|
|
1449
|
+
return isFunction(listener) || isFunction(listener === null || listener === void 0 ? void 0 : listener.handleEvent);
|
|
1450
|
+
}
|
|
1440
1451
|
const customElementToWrappedListeners = new WeakMap();
|
|
1441
1452
|
function getEventMap(elm) {
|
|
1442
1453
|
let listenerInfo = customElementToWrappedListeners.get(elm);
|
|
@@ -1456,49 +1467,58 @@
|
|
|
1456
1467
|
return (_a = eventToShadowRootMap.get(event)) !== null && _a !== void 0 ? _a : eventTargetGetter.call(event);
|
|
1457
1468
|
}
|
|
1458
1469
|
const shadowRootEventListenerMap = new WeakMap();
|
|
1459
|
-
function
|
|
1460
|
-
if (!
|
|
1470
|
+
function getManagedShadowRootListener(listener) {
|
|
1471
|
+
if (!isEventListenerOrEventListenerObject(listener)) {
|
|
1461
1472
|
throw new TypeError(); // avoiding problems with non-valid listeners
|
|
1462
1473
|
}
|
|
1463
|
-
let
|
|
1464
|
-
if (isUndefined(
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
currentTarget
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1474
|
+
let managedListener = shadowRootEventListenerMap.get(listener);
|
|
1475
|
+
if (isUndefined(managedListener)) {
|
|
1476
|
+
managedListener = {
|
|
1477
|
+
identity: listener,
|
|
1478
|
+
placement: 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */,
|
|
1479
|
+
handleEvent(event) {
|
|
1480
|
+
// currentTarget is always defined inside an event listener
|
|
1481
|
+
let currentTarget = eventCurrentTargetGetter.call(event);
|
|
1482
|
+
// If currentTarget is not an instance of a native shadow root then we're dealing with a
|
|
1483
|
+
// host element whose synthetic shadow root must be accessed via getShadowRoot().
|
|
1484
|
+
if (!isInstanceOfNativeShadowRoot(currentTarget)) {
|
|
1485
|
+
currentTarget = getShadowRoot(currentTarget);
|
|
1486
|
+
}
|
|
1487
|
+
const actualTarget = getActualTarget(event);
|
|
1488
|
+
if (shouldInvokeListener(event, actualTarget, currentTarget)) {
|
|
1489
|
+
getEventHandler(listener).call(currentTarget, event);
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1477
1492
|
};
|
|
1478
|
-
|
|
1479
|
-
shadowRootEventListenerMap.set(listener, shadowRootWrappedListener);
|
|
1493
|
+
shadowRootEventListenerMap.set(listener, managedListener);
|
|
1480
1494
|
}
|
|
1481
|
-
return
|
|
1495
|
+
return managedListener;
|
|
1482
1496
|
}
|
|
1483
1497
|
const customElementEventListenerMap = new WeakMap();
|
|
1484
|
-
function
|
|
1485
|
-
if (!
|
|
1498
|
+
function getManagedCustomElementListener(listener) {
|
|
1499
|
+
if (!isEventListenerOrEventListenerObject(listener)) {
|
|
1486
1500
|
throw new TypeError(); // avoiding problems with non-valid listeners
|
|
1487
1501
|
}
|
|
1488
|
-
let
|
|
1489
|
-
if (isUndefined(
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1502
|
+
let managedListener = customElementEventListenerMap.get(listener);
|
|
1503
|
+
if (isUndefined(managedListener)) {
|
|
1504
|
+
managedListener = {
|
|
1505
|
+
identity: listener,
|
|
1506
|
+
placement: 0 /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */,
|
|
1507
|
+
handleEvent(event) {
|
|
1508
|
+
// currentTarget is always defined inside an event listener
|
|
1509
|
+
const currentTarget = eventCurrentTargetGetter.call(event);
|
|
1510
|
+
const actualTarget = getActualTarget(event);
|
|
1511
|
+
if (shouldInvokeListener(event, actualTarget, currentTarget)) {
|
|
1512
|
+
getEventHandler(listener).call(currentTarget, event);
|
|
1513
|
+
}
|
|
1514
|
+
},
|
|
1497
1515
|
};
|
|
1498
|
-
|
|
1499
|
-
customElementEventListenerMap.set(listener, customElementWrappedListener);
|
|
1516
|
+
customElementEventListenerMap.set(listener, managedListener);
|
|
1500
1517
|
}
|
|
1501
|
-
return
|
|
1518
|
+
return managedListener;
|
|
1519
|
+
}
|
|
1520
|
+
function indexOfManagedListener(listeners, listener) {
|
|
1521
|
+
return ArrayFindIndex.call(listeners, (l) => l.identity === listener.identity);
|
|
1502
1522
|
}
|
|
1503
1523
|
function domListener(evt) {
|
|
1504
1524
|
let immediatePropagationStopped = false;
|
|
@@ -1532,9 +1552,9 @@
|
|
|
1532
1552
|
forEach.call(bookkeeping, (listener) => {
|
|
1533
1553
|
if (isFalse(immediatePropagationStopped) && listener.placement === placement) {
|
|
1534
1554
|
// making sure that the listener was not removed from the original listener queue
|
|
1535
|
-
if (
|
|
1555
|
+
if (indexOfManagedListener(listeners, listener) !== -1) {
|
|
1536
1556
|
// all handlers on the custom element should be called with undefined 'this'
|
|
1537
|
-
listener.call(undefined, evt);
|
|
1557
|
+
listener.handleEvent.call(undefined, evt);
|
|
1538
1558
|
}
|
|
1539
1559
|
}
|
|
1540
1560
|
});
|
|
@@ -1548,31 +1568,30 @@
|
|
|
1548
1568
|
}
|
|
1549
1569
|
eventToContextMap.set(evt, 2 /* EventListenerContext.UNKNOWN_LISTENER */);
|
|
1550
1570
|
}
|
|
1551
|
-
function attachDOMListener(elm, type,
|
|
1571
|
+
function attachDOMListener(elm, type, managedListener) {
|
|
1552
1572
|
const listenerMap = getEventMap(elm);
|
|
1553
|
-
let
|
|
1554
|
-
if (isUndefined(
|
|
1555
|
-
|
|
1573
|
+
let listeners = listenerMap[type];
|
|
1574
|
+
if (isUndefined(listeners)) {
|
|
1575
|
+
listeners = listenerMap[type] = [];
|
|
1556
1576
|
}
|
|
1557
1577
|
// Prevent identical listeners from subscribing to the same event type.
|
|
1558
|
-
// TODO [#1824]: Options will also play a factor
|
|
1559
|
-
if (
|
|
1578
|
+
// TODO [#1824]: Options will also play a factor in deduping if we introduce options support
|
|
1579
|
+
if (indexOfManagedListener(listeners, managedListener) !== -1) {
|
|
1560
1580
|
return;
|
|
1561
1581
|
}
|
|
1562
1582
|
// only add to DOM if there is no other listener on the same placement yet
|
|
1563
|
-
if (
|
|
1564
|
-
// super.addEventListener() - this will not work on
|
|
1583
|
+
if (listeners.length === 0) {
|
|
1565
1584
|
addEventListener.call(elm, type, domListener);
|
|
1566
1585
|
}
|
|
1567
|
-
ArrayPush.call(
|
|
1586
|
+
ArrayPush.call(listeners, managedListener);
|
|
1568
1587
|
}
|
|
1569
|
-
function detachDOMListener(elm, type,
|
|
1588
|
+
function detachDOMListener(elm, type, managedListener) {
|
|
1570
1589
|
const listenerMap = getEventMap(elm);
|
|
1571
|
-
let
|
|
1590
|
+
let index;
|
|
1572
1591
|
let listeners;
|
|
1573
1592
|
if (!isUndefined((listeners = listenerMap[type])) &&
|
|
1574
|
-
(
|
|
1575
|
-
ArraySplice.call(listeners,
|
|
1593
|
+
(index = indexOfManagedListener(listeners, managedListener)) !== -1) {
|
|
1594
|
+
ArraySplice.call(listeners, index, 1);
|
|
1576
1595
|
// only remove from DOM if there is no other listener on the same placement
|
|
1577
1596
|
if (listeners.length === 0) {
|
|
1578
1597
|
removeEventListener.call(elm, type, domListener);
|
|
@@ -1580,33 +1599,29 @@
|
|
|
1580
1599
|
}
|
|
1581
1600
|
}
|
|
1582
1601
|
function addCustomElementEventListener(type, listener, _options) {
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
attachDOMListener(this, type, wrappedListener);
|
|
1602
|
+
if (isEventListenerOrEventListenerObject(listener)) {
|
|
1603
|
+
const managedListener = getManagedCustomElementListener(listener);
|
|
1604
|
+
attachDOMListener(this, type, managedListener);
|
|
1587
1605
|
}
|
|
1588
1606
|
}
|
|
1589
1607
|
function removeCustomElementEventListener(type, listener, _options) {
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
detachDOMListener(this, type, wrappedListener);
|
|
1608
|
+
if (isEventListenerOrEventListenerObject(listener)) {
|
|
1609
|
+
const managedListener = getManagedCustomElementListener(listener);
|
|
1610
|
+
detachDOMListener(this, type, managedListener);
|
|
1594
1611
|
}
|
|
1595
1612
|
}
|
|
1596
1613
|
function addShadowRootEventListener(sr, type, listener, _options) {
|
|
1597
|
-
|
|
1598
|
-
if (isFunction(listener)) {
|
|
1614
|
+
if (isEventListenerOrEventListenerObject(listener)) {
|
|
1599
1615
|
const elm = getHost(sr);
|
|
1600
|
-
const
|
|
1601
|
-
attachDOMListener(elm, type,
|
|
1616
|
+
const managedListener = getManagedShadowRootListener(listener);
|
|
1617
|
+
attachDOMListener(elm, type, managedListener);
|
|
1602
1618
|
}
|
|
1603
1619
|
}
|
|
1604
1620
|
function removeShadowRootEventListener(sr, type, listener, _options) {
|
|
1605
|
-
|
|
1606
|
-
if (isFunction(listener)) {
|
|
1621
|
+
if (isEventListenerOrEventListenerObject(listener)) {
|
|
1607
1622
|
const elm = getHost(sr);
|
|
1608
|
-
const
|
|
1609
|
-
detachDOMListener(elm, type,
|
|
1623
|
+
const managedListener = getManagedShadowRootListener(listener);
|
|
1624
|
+
detachDOMListener(elm, type, managedListener);
|
|
1610
1625
|
}
|
|
1611
1626
|
}
|
|
1612
1627
|
|
|
@@ -4500,7 +4515,7 @@
|
|
|
4500
4515
|
},
|
|
4501
4516
|
configurable: true,
|
|
4502
4517
|
});
|
|
4503
|
-
/** version: 2.
|
|
4518
|
+
/** version: 2.45.0 */
|
|
4504
4519
|
|
|
4505
4520
|
})();
|
|
4506
4521
|
//# sourceMappingURL=synthetic-shadow_debug.js.map
|