lwc 2.37.3 → 2.38.1
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 +196 -127
- package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -0
- package/dist/engine-dom/iife/es2017/engine-dom.js +196 -127
- package/dist/engine-dom/iife/es2017/engine-dom.js.map +1 -0
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -1
- package/dist/engine-dom/iife/es2017/engine-dom.min.js.map +1 -0
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +184 -118
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js.map +1 -0
- package/dist/engine-dom/iife/es5/engine-dom.js +226 -157
- package/dist/engine-dom/iife/es5/engine-dom.js.map +1 -0
- package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -1
- package/dist/engine-dom/iife/es5/engine-dom.min.js.map +1 -0
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +214 -148
- package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -0
- package/dist/engine-dom/umd/es2017/engine-dom.js +196 -127
- package/dist/engine-dom/umd/es2017/engine-dom.js.map +1 -0
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -1
- package/dist/engine-dom/umd/es2017/engine-dom.min.js.map +1 -0
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +184 -118
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js.map +1 -0
- package/dist/engine-dom/umd/es5/engine-dom.js +226 -157
- package/dist/engine-dom/umd/es5/engine-dom.js.map +1 -0
- package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -1
- package/dist/engine-dom/umd/es5/engine-dom.min.js.map +1 -0
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +214 -148
- package/dist/engine-dom/umd/es5/engine-dom_debug.js.map +1 -0
- package/dist/engine-server/commonjs/es2017/engine-server.js +181 -129
- package/dist/engine-server/commonjs/es2017/engine-server.js.map +1 -0
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -1
- package/dist/engine-server/commonjs/es2017/engine-server.min.js.map +1 -0
- package/dist/engine-server/esm/es2017/engine-server.js +181 -129
- package/dist/engine-server/esm/es2017/engine-server.js.map +1 -0
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +12 -5
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js.map +1 -0
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +12 -5
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js.map +1 -0
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js.map +1 -0
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +12 -5
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js.map +1 -0
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +8 -5
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js.map +1 -0
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js.map +1 -0
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +8 -5
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js.map +1 -0
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +12 -5
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js.map +1 -0
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +3 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js.map +1 -0
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +12 -5
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js.map +1 -0
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +8 -5
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js.map +1 -0
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js.map +1 -0
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +8 -5
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js.map +1 -0
- package/dist/wire-service/esm/es2017/wire-service.js +3 -2
- package/dist/wire-service/esm/es2017/wire-service.js.map +1 -0
- package/dist/wire-service/iife/es2017/wire-service.js +3 -2
- package/dist/wire-service/iife/es2017/wire-service.js.map +1 -0
- package/dist/wire-service/iife/es2017/wire-service.min.js +1 -0
- package/dist/wire-service/iife/es2017/wire-service.min.js.map +1 -0
- package/dist/wire-service/iife/es2017/wire-service_debug.js +3 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js.map +1 -0
- package/dist/wire-service/iife/es5/wire-service.js +3 -2
- package/dist/wire-service/iife/es5/wire-service.js.map +1 -0
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -0
- package/dist/wire-service/iife/es5/wire-service.min.js.map +1 -0
- package/dist/wire-service/iife/es5/wire-service_debug.js +3 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js.map +1 -0
- package/dist/wire-service/umd/es2017/wire-service.js +3 -2
- package/dist/wire-service/umd/es2017/wire-service.js.map +1 -0
- package/dist/wire-service/umd/es2017/wire-service.min.js +1 -0
- package/dist/wire-service/umd/es2017/wire-service.min.js.map +1 -0
- package/dist/wire-service/umd/es2017/wire-service_debug.js +3 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js.map +1 -0
- package/dist/wire-service/umd/es5/wire-service.js +3 -2
- package/dist/wire-service/umd/es5/wire-service.js.map +1 -0
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -0
- package/dist/wire-service/umd/es5/wire-service.min.js.map +1 -0
- package/dist/wire-service/umd/es5/wire-service_debug.js +3 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js.map +1 -0
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e){"function"==typeof define&&define.amd?define(e):e()}((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,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:R,forEach:D}=Array.prototype,{charCodeAt:P,replace:I,split:A,slice:$,toLowerCase:B}=String.prototype;function _(e){return void 0===e}function x(e){return null===e}function F(e){return!0===e}function k(e){return!1===e}function W(e){return"function"==typeof e}function U(e){return"object"==typeof e}const G="object"==typeof globalThis?globalThis:window,j="$shadowResolver$",K="$$ShadowResolverKey$$",q="$shadowStaticNodeKey$",Y="$shadowToken$",X="$$ShadowTokenKey$$",V="$$lwc-synthetic-mode",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:Re,hasAttribute:De,querySelector:Pe,querySelectorAll:Ie,removeAttribute:Ae,setAttribute:$e}=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")},_e=r(Element.prototype,"childElementCount").get,xe=r(Element.prototype,"firstElementChild").get,Fe=r(Element.prototype,"lastElementChild").get,ke=r(HTMLElement.prototype,"innerText"),We=ke?ke.get:null,Ue=ke?ke.set:null,Ge=r(HTMLElement.prototype,"outerText"),je=Ge?Ge.get:null,Ke=Ge?Ge.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 Rt=null;"undefined"!=typeof ShadowRoot&&(Rt=ShadowRoot);const Dt=!x(Rt),Pt=x(Rt)?()=>!1:e=>e instanceof Rt;const{createElement:It}=Document.prototype,At=115,$t=108,Bt=111,_t=116;function xt(e){const t=Te.call(e);return null===t?e:t}function Ft(e){const t=xt(e),n=dt.call(t);if(null===n)throw new TypeError;return n}let kt;function Wt(e){if(_(kt)){const t=xt(e);kt=t.body&&"temporary-bypass"===Ce.call(t.body,"data-global-patching-bypass")}return F(kt)}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)===At&&P.call(t,1)===$t&&P.call(t,2)===Bt&&P.call(t,3)===_t&&p(l,e.prototype),l}})}();const Gt="undefined"!=typeof EventTarget?EventTarget.prototype:J.prototype,{addEventListener:jt,dispatchEvent:Kt,removeEventListener:qt}=Gt,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(;!x(n);){if(t=zt(n),!_(t))return t;if(n=ve.call(n),lwcRuntimeFlags.ENABLE_LIGHT_GET_ROOT_NODE_PATCH&&!x(n)&&ln(n))return}}function Jt(e){return e[Xt]}function Zt(e){return!_(zt(e))}function en(e){let t=Ne.call(e);for(;!x(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(;!x(l)&&l!==e;){const t=Qt(l),o=Ne.call(l);if(t===n)return on(l);if(o===e)return!1;if(x(o)||Qt(o)===t)l=o;else{if(!on(o))return!1;if(l=nn(en(o)),!x(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(_(t))return null;let n=e;for(;!x(n)&&Jt(n)!==t;)n=ve.call(n);return x(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(_(n)){if(lwcRuntimeFlags.ENABLE_LIGHT_GET_ROOT_NODE_PATCH){const e=ve.call(t);if(!x(e)&&ln(e))return!1}return!0}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(!bl(e)&&!on(e)){return Ut(Le.call(e))}if(bl(e)){const t=Ut(Ie.call(e,"slot")),n=pl(dl(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 d.call(t,(e=>n===pl(e)))}}function pn(e){const t=nn(e);if(x(t))return[];const n=Ut(Le.call(e));return d.call(n,(e=>!Zt(e)||!rn(t,e)))}const hn=/[&\u00A0"]/g,gn=/[&\u00A0<>]/g,{replace:mn,toLowerCase:dn}=String.prototype;function bn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function yn(e){return mn.call(e,hn,bn)}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="<"+dn.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)+"</"+dn.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,bn))}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),D.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){D.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(;!_(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(;!_(l);)n.push(l),l=null===(t=l.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!x(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]);_(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 Rn(e){const n=t(On.prototype);return Hn.set(n,e),D.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}function Dn(e){return ln(e)||bl(e)}function Pn(e,t){const n=nn(e);if(t===n)return dl(n);if(t instanceof Element){if(Qt(e)===Qt(t))return t;if(!x(n)&&on(t)){const e=nn(t);if(!x(e)&&rn(n,e))return e}}return null}function In(){return Kn(this).length>0}function An(){return Kn(this)[0]||null}function $n(){const e=Kn(this);return e[e.length-1]||null}function Bn(){return Tn(this)}function _n(){const e=ve.call(this);return x(e)?e:Pn(this,e)}function xn(){const e=ve.call(this);if(x(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 kn(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(bl(this)){const e=nn(this);return Ln(x(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 Gn=J.prototype.getRootNode,jn=_(Gn)?function(){let e,t=this;for(;!x(e=ve.call(t));)t=e;return t}:Gn;n(J.prototype,{firstChild:{get(){return Dn(this)?An.call(this):ye.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Dn(this)?$n.call(this):Ee.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return Zt(this)||bl(this)?Bn.call(this):we.call(this)},set:function(e){Me.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get(){if(Zt(this))return _n.call(this);const e=ve.call(this);return!x(e)&&ln(e)?nn(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(Zt(this))return xn.call(this);const e=Ne.call(this);return!x(e)&&ln(e)?nn(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Dn(this)?Un.call(this):Le.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Dn(this)?In.call(this):de.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)||bl(this)?kn.call(this,e):be.call(this,e))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return Zt(this)||bl(this)?Wn.call(this,e):fe.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){return F(!_(e)&&!!e.composed)?jn.call(this,e):function(e){const t=nn(e);return x(t)?jn.call(e):dl(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 _(l)&&(l=e.composedPath(),Yn.set(e,l)),l.includes(n)}function Vn(e){if(!function(e){return W(e)||U(e)&&!x(e)&&W(e.handleEvent)}(e))return e;let t=qn.get(e);return _(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 _(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 _(t)&&(t=function(t){let n=st.call(t);Pt(n)||(n=dl(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 _(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){D.call(c,(l=>{k(t)&&l.placement===n&&-1!==y.call(i,l)&&l.call(void 0,e)}))}zn.set(e,1),u(1),k(t)&&k(n)&&(zn.set(e,0),u(0)),zn.set(e,2)}function rl(e,t,n){const l=Jn(e);let o=l[t];_(o)&&(o=l[t]=[]),-1===y.call(o,n)&&(0===o.length&&jt.call(e,t,ol),T.call(o,n))}function al(e,t,n){let l,o;_(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(_(t))throw new TypeError;return t}function pl(e){return e[j]}function hl(e,t){e[j]=t}function gl(e){return fl(e).delegatesFocus}function ml(e){return fl(e).host}function dl(e){return fl(e).shadowRoot}function bl(e){const t=ul.get(e);return!_(t)&&e===t.host}function yl(e){const t=ul.get(e);return!_(t)&&e===t.shadowRoot}l(J.prototype,j,{set(e){var t,n;_(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(G,"$isNativeShadowRootDefined$",{value:Dt}),_(G[z])&&l(G,z,{value:Et}),_(G[Q])&&l(G,Q,{value:yt});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=xt(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=xt(e),n=ht.call(t);if(x(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,xt(ml(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Cn(this,xt(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!_(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(;!x(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=x(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:xt(e),n[n.length-1]===o&&n.push(window),n}
|
|
1
|
+
!function(e){"function"==typeof define&&define.amd?define(e):e()}((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:R,forEach:D}=Array.prototype,{charCodeAt:P,replace:I,split:A,slice:$,toLowerCase:B}=String.prototype;function _(e){return void 0===e}function x(e){return null===e}function F(e){return!0===e}function k(e){return!1===e}function W(e){return"function"==typeof e}function U(e){return"object"==typeof e}const G="object"==typeof globalThis?globalThis:window,j="$shadowResolver$",K="$$ShadowResolverKey$$",q="$shadowStaticNodeKey$",Y="$shadowToken$",X="$$ShadowTokenKey$$",V="$$lwc-synthetic-mode",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: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:Re,hasAttribute:De,querySelector:Pe,querySelectorAll:Ie,removeAttribute:Ae,setAttribute:$e}=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")},_e=r(Element.prototype,"childElementCount").get,xe=r(Element.prototype,"firstElementChild").get,Fe=r(Element.prototype,"lastElementChild").get,ke=r(HTMLElement.prototype,"innerText"),We=ke?ke.get:null,Ue=ke?ke.set:null,Ge=r(HTMLElement.prototype,"outerText"),je=Ge?Ge.get:null,Ke=Ge?Ge.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 Rt=null;"undefined"!=typeof ShadowRoot&&(Rt=ShadowRoot);const Dt=!x(Rt),Pt=x(Rt)?()=>!1:e=>e instanceof Rt;const{createElement:It}=Document.prototype,At=115,$t=108,Bt=111,_t=116;function xt(e){const t=Te.call(e);return null===t?e:t}function Ft(e){const t=xt(e),n=bt.call(t);if(null===n)throw new TypeError;return n}let kt;function Wt(e){if(_(kt)){const t=xt(e);kt=t.body&&"temporary-bypass"===Ce.call(t.body,"data-global-patching-bypass")}return F(kt)}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)===At&&P.call(t,1)===$t&&P.call(t,2)===Bt&&P.call(t,3)===_t&&p(l,e.prototype),l}})}();const Gt="undefined"!=typeof EventTarget?EventTarget.prototype:J.prototype,{addEventListener:jt,dispatchEvent:Kt,removeEventListener:qt}=Gt,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(;!x(n);){if(t=zt(n),!_(t))return t;if(n=ve.call(n),lwcRuntimeFlags.ENABLE_LIGHT_GET_ROOT_NODE_PATCH&&!x(n)&&ln(n))return}}function Jt(e){return e[Xt]}function Zt(e){return!_(zt(e))}function en(e){let t=Ne.call(e);for(;!x(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(;!x(l)&&l!==e;){const t=Qt(l),o=Ne.call(l);if(t===n)return on(l);if(o===e)return!1;if(x(o)||Qt(o)===t)l=o;else{if(!on(o))return!1;if(l=nn(en(o)),!x(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(_(t))return null;let n=e;for(;!x(n)&&Jt(n)!==t;)n=ve.call(n);return x(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(_(n)){if(lwcRuntimeFlags.ENABLE_LIGHT_GET_ROOT_NODE_PATCH){const e=ve.call(t);if(!x(e)&&ln(e))return!1}return!0}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(x(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),D.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){D.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(;!_(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(;!_(l);)n.push(l),l=null===(t=l.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!x(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]);_(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 Rn(e){const n=t(On.prototype);return Hn.set(n,e),D.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}function Dn(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(!x(n)&&on(t)){const e=nn(t);if(!x(e)&&rn(n,e))return e}}return null}function In(){return Kn(this).length>0}function An(){return Kn(this)[0]||null}function $n(){const e=Kn(this);return e[e.length-1]||null}function Bn(){return Tn(this)}function _n(){const e=ve.call(this);return x(e)?e:Pn(this,e)}function xn(){const e=ve.call(this);if(x(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 kn(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(x(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 Gn=J.prototype.getRootNode,jn=_(Gn)?function(){let e,t=this;for(;!x(e=ve.call(t));)t=e;return t}:Gn;n(J.prototype,{firstChild:{get(){return Dn(this)?An.call(this):ye.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Dn(this)?$n.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 _n.call(this);const e=ve.call(this);return!x(e)&&ln(e)?nn(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(Zt(this))return xn.call(this);const e=Ne.call(this);return!x(e)&&ln(e)?nn(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Dn(this)?Un.call(this):Le.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Dn(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)?kn.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(!_(e)&&!!e.composed)?jn.call(this,e):function(e){const t=nn(e);return x(t)?jn.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 _(l)&&(l=e.composedPath(),Yn.set(e,l)),l.includes(n)}function Vn(e){if(!function(e){return W(e)||U(e)&&!x(e)&&W(e.handleEvent)}(e))return e;let t=qn.get(e);return _(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 _(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 _(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 _(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){D.call(c,(l=>{k(t)&&l.placement===n&&-1!==y.call(i,l)&&l.call(void 0,e)}))}zn.set(e,1),u(1),k(t)&&k(n)&&(zn.set(e,0),u(0)),zn.set(e,2)}function rl(e,t,n){const l=Jn(e);let o=l[t];_(o)&&(o=l[t]=[]),-1===y.call(o,n)&&(0===o.length&&jt.call(e,t,ol),T.call(o,n))}function al(e,t,n){let l,o;_(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(_(t))throw new TypeError;return t}function pl(e){return e[j]}function hl(e,t){e[j]=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!_(t)&&e===t.host}function yl(e){const t=ul.get(e);return!_(t)&&e===t.shadowRoot}l(J.prototype,j,{set(e){var t,n;_(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(G,"$isNativeShadowRootDefined$",{value:Dt}),_(G[z])&&l(G,z,{value:Et,configurable:!0}),_(G[Q])&&l(G,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=xt(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=xt(e),n=ht.call(t);if(x(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,xt(ml(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Cn(this,xt(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!_(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(;!x(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=x(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:xt(e),n[n.length-1]===o&&n.push(window),n}
|
|
2
2
|
/**
|
|
3
3
|
@license
|
|
4
4
|
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
@@ -7,4 +7,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(x(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)||!_(r)&&r>-1)return e;return null}function Hl(e,t,n,l){const o=gt.call(t,n,l);return x(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 Rn(d.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)&&!x(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(x(e))return e;for(;!_(zt(e));)if(e=Ne.call(e),x(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 x(e)?null:_(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=b.call(e,(e=>_(zt(e))||Wt(e)));return _(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(d.call(e,(e=>_(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 Rn(d.call(e,(e=>_(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 Rn(d.call(e,(e=>_(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 Rn(d.call(e,(e=>_(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(d.call(e,(e=>_(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 Rl=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Dl(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(){jt.call(this,"click",Dl);try{Rl.value.call(this)}finally{qt.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 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 x(e)||_(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 Al=MutationObserver,{disconnect:$l,observe:Bl,takeRecords:_l}=Al.prototype,xl="$$lwcObserverCallbackWrapper$$",Fl="$$lwcNodeObservers$$",kl=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 Gl(e,t){let n=t;for(;!x(n);){const t=Wl(n);if(!_(t)&&(t[0]===e||-1!==y.call(t,e)))return!0;n=n.parentNode}return!1}function jl(e,t){return N.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:a}=n;if("childList"!==a||_(Jt(l)))Gl(t,l)&&T.call(e,n);else if(o.length>0){const r=o[0];if(Gl(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)&&Gl(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[xl];return _(t)&&(t=e[xl]=(t,n)=>{const l=jl(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new Al(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=xt(e),n=Sl(e,this.composed),l=st.call(this);if(!(l instanceof J))return x(l)&&_(zt(e))?e:Cl(t,n);if(l===t||l===t.body)return _(zt(e))?e:Cl(t,n);let o=l,r=n;if(bl(l)){1===zn.get(this)&&(o=dl(l))}return bl(e)&&Nl.has(this)&&(r=Sl(dl(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(x(st.call(this)))return[];let o=e;return bl(e)&&Nl.has(this)&&(o=dl(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(x(e))return null;if(!(e instanceof J&&Zt(e)))return e;let n=st.call(this);return x(n)&&(n=xt(e)),Cl(n,Sl(e,!0))},enumerable:!0,configurable:!0})}Kl.prototype=Al.prototype,Kl.prototype.disconnect=function(){$l.call(this);const e=kl.get(this);_(e)||(D.call(e,(e=>{const t=e[Fl];if(!_(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(_(n)&&(n=[],l=n,e[Fl]=l),-1===y.call(n,this)&&T.call(n,this),yl(e)&&(e=e.host),kl.has(this)){const t=kl.get(this);-1===y.call(t,e)&&T.call(t,e)}else kl.set(this,[e]);return Bl.call(this,e,t)},Kl.prototype.takeRecords=function(){return jl(_l.call(this),this)},l(window,"MutationObserver",{value:Kl,configurable:!0,writable:!0}),n(Gt,{addEventListener:{value:function(e,t,n){if(bl(this))return il.apply(this,arguments);if(arguments.length<2){const e=S.call(arguments);return e.length>1&&(e[1]=Vn(e[1])),jt.apply(this,e)}const l=Vn(t);return jt.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(bl(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 x(e)?null:1===zn.get(this)?dl(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!x(e)&&on(e)&&zt(e)!==zt(this)?e:null}function lo(e,t){let n;const l=zt(e);if(_(l))n=e instanceof HTMLBodyElement?d.call(t,(t=>_(zt(t))||Wt(e))):S.call(t);else if(bl(e)){const l=nn(e);n=x(l)?[]:Jt(e)?cn(e,t):un(l,t)}else n=d.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=x(e)?[]:un(e,fn(this));return Rn(d.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=[];D.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=!_(e)&&F(e.flatten)?to(this):pn(this);return d.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!_(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 x(e)?"":e},set(e){$e.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(Zt(this)){const e=nn(this);return Ln(x(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)||bl(this)?oo.call(this):Ye.call(this)},set(e){Xe.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return Zt(this)||bl(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(bl(this)){const e=dl(this);if("open"===e.mode)return e}return rt.call(this)},enumerable:!0,configurable:!0},children:{get(){return Dn(this)?ao.call(this):lt.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Dn(this)?io.call(this):_e.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Dn(this)?co.call(this):xe.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Dn(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(bl(this)){const t=nn(this);return _(Jt(this))?x(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(_(t))return 0===e.length?null:e[0];{const n=b.call(e,(e=>Qt(e)===t));return _(n)?null:n}}{if(!(this instanceof HTMLBodyElement)){const t=e[0];return _(t)?null:t}const t=b.call(e,(e=>_(zt(e))||Wt(this)));return _(t)?null:t}},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){return Ln(function(e,t){let n;if(bl(e)){const l=nn(e);n=_(Jt(e))?x(l)?[]:un(l,t):cn(e,t)}else if(Zt(e)){const l=zt(e);n=_(l)?S.call(t):d.call(t,(e=>Qt(e)===l))}else n=e instanceof HTMLBodyElement?d.call(t,(t=>_(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 Rn(lo(this,Ut(ot.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){return Rn(lo(this,Ut(Oe.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){return Rn(lo(this,Ut(Re.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=>De.call(e,"tabindex")?"0"===Ce.call(e,"tabindex"):!fo.has(Je.call(e))||!De.call(e,"disabled")))}const ho=new WeakMap;function go(e){return(!bl(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(x(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=xt(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);x(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(x(l))return;const o=bo(t);if(1===yo(t,l)){const e=Co.bind(null,t.getRootNode()),r=b.call(o.inner,e);if(_(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(x(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=xt(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=xt(e);ho.get(t)||(ho.set(t,!0),jt.call(t,"mousedown",No,!0),jt.call(t,"mouseup",(()=>{setTimeout(Mo)}),!0),jt.call(t,"dragstart",Mo,!0))}function Ro(e){qt.call(e,"focusin",So,!0)}const{blur:Do,focus:Po}=HTMLElement.prototype;function Io(){return gl(this)&&k(De.call(this,"tabindex"))?0:et.call(this)}function Ao(e){const t=gl(this),n=et.call(this),l=De.call(this,"tabindex");tt.call(this,e);const o=et.call(this),r=De.call(this,"tabindex"),a=n!==o;var i;(l&&(a||k(r))&&(-1===n&&Ro(this),0===n&&t&&Ho(this)),k(r))||(l&&r&&k(a)||(-1===o&&(Oo(i=this),Ho(i),jt.call(i,"focusin",So,!0)),0===o&&t&&function(e){Oo(e),Ro(e),jt.call(e,"focusin",Lo,!0)}(this)))}function $o(){if(gl(this)){const e=function(e){const t=xt(e),n=ht.call(t);return x(n)||0!=(pe.call(e,n)&ee)?n:null}(this);if(!x(e))return void e.blur()}return Do.call(this)}function Bo(){const e=!To;e&&No(),bl(this)&&gl(this)?mo.call(this):(Po.apply(this,arguments),e&&Mo())}function _o(e,t){e[j]=t;const n=Le.call(e);for(let e=0,l=n.length;e<l;e++)_o(n[e],t)}n(HTMLElement.prototype,{tabIndex:{get(){return bl(this)?Io.call(this):et.call(this)},set(e){return bl(this)?Ao.call(this,e):tt.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if(bl(this))return $o.call(this);Do.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!==je&&null!==Ke&&l(HTMLElement.prototype,"outerText",{get(){return je.call(this)},set(e){Ke.call(this,e)},enumerable:!0,configurable:!0}),l(Element.prototype,Y,{set(e){const t=this[X];_(t)||t===e||Ae.call(this,t),_(e)||$e.call(this,e,""),this[X]=e},get(){return this[X]},configurable:!0}),l(Element.prototype,"$shadowStaticNode$",{set(e){if(e){_o(this,this[j])}this[q]=e},get(){return this[q]},configurable:!0});const xo="$$DomManualKey$$",Fo=function(){};let ko;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),bl(e))return;_(l)&&Ot.call(ko,e,Wo);const o=Le.call(e);for(let e=0,l=o.length;e<l;e+=1)Uo(o[e],t,n)}}function Go(){return new Ht((e=>{D.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[xo]=e,F(e)&&function(e){if(_(ko)&&(ko=Go()),_(pl(e)))throw new Error("Invalid Element");Ot.call(ko,e,Wo)}(this)},get(){return this[xo]},configurable:!0})}));
|
|
10
|
+
*/function Cl(e,t){if(x(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)||!_(r)&&r>-1)return e;return null}function Hl(e,t,n,l){const o=gt.call(t,n,l);return x(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 Rn(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)&&!x(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(x(e))return e;for(;!_(zt(e));)if(e=Ne.call(e),x(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 x(e)?null:_(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=>_(zt(e))||Wt(e)));return _(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=>_(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 Rn(b.call(e,(e=>_(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 Rn(b.call(e,(e=>_(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 Rn(b.call(e,(e=>_(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=>_(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 Rl=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Dl(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(){jt.call(this,"click",Dl);try{Rl.value.call(this)}finally{qt.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 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 x(e)||_(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 Al=MutationObserver,{disconnect:$l,observe:Bl,takeRecords:_l}=Al.prototype,xl="$$lwcObserverCallbackWrapper$$",Fl="$$lwcNodeObservers$$",kl=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 Gl(e,t){let n=t;for(;!x(n);){const t=Wl(n);if(!_(t)&&(t[0]===e||-1!==y.call(t,e)))return!0;n=n.parentNode}return!1}function jl(e,t){return N.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:a}=n;if("childList"!==a||_(Jt(l)))Gl(t,l)&&T.call(e,n);else if(o.length>0){const r=o[0];if(Gl(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)&&Gl(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[xl];return _(t)&&(t=e[xl]=(t,n)=>{const l=jl(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new Al(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=xt(e),n=Sl(e,this.composed),l=st.call(this);if(!(l instanceof J))return x(l)&&_(zt(e))?e:Cl(t,n);if(l===t||l===t.body)return _(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(x(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(x(e))return null;if(!(e instanceof J&&Zt(e)))return e;let n=st.call(this);return x(n)&&(n=xt(e)),Cl(n,Sl(e,!0))},enumerable:!0,configurable:!0})}Kl.prototype=Al.prototype,Kl.prototype.disconnect=function(){$l.call(this);const e=kl.get(this);_(e)||(D.call(e,(e=>{const t=e[Fl];if(!_(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(_(n)&&(n=[],l=n,e[Fl]=l),-1===y.call(n,this)&&T.call(n,this),yl(e)&&(e=e.host),kl.has(this)){const t=kl.get(this);-1===y.call(t,e)&&T.call(t,e)}else kl.set(this,[e]);return Bl.call(this,e,t)},Kl.prototype.takeRecords=function(){return jl(_l.call(this),this)},l(window,"MutationObserver",{value:Kl,configurable:!0,writable:!0}),n(Gt,{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])),jt.apply(this,e)}const l=Vn(t);return jt.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 x(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!x(e)&&on(e)&&zt(e)!==zt(this)?e:null}function lo(e,t){let n;const l=zt(e);if(_(l))n=e instanceof HTMLBodyElement?b.call(t,(t=>_(zt(t))||Wt(e))):S.call(t);else if(dl(e)){const l=nn(e);n=x(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=x(e)?[]:un(e,fn(this));return Rn(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=[];D.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=!_(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!_(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 x(e)?"":e},set(e){$e.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(Zt(this)){const e=nn(this);return Ln(x(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 Dn(this)?ao.call(this):lt.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Dn(this)?io.call(this):_e.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Dn(this)?co.call(this):xe.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Dn(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 _(Jt(this))?x(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(_(t))return 0===e.length?null:e[0];{const n=d.call(e,(e=>Qt(e)===t));return _(n)?null:n}}{if(!(this instanceof HTMLBodyElement)){const t=e[0];return _(t)?null:t}const t=d.call(e,(e=>_(zt(e))||Wt(this)));return _(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=_(Jt(e))?x(l)?[]:un(l,t):cn(e,t)}else if(Zt(e)){const l=zt(e);n=_(l)?S.call(t):b.call(t,(e=>Qt(e)===l))}else n=e instanceof HTMLBodyElement?b.call(t,(t=>_(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 Rn(lo(this,Ut(ot.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){return Rn(lo(this,Ut(Oe.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){return Rn(lo(this,Ut(Re.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=>De.call(e,"tabindex")?"0"===Ce.call(e,"tabindex"):!fo.has(Je.call(e))||!De.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(x(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=xt(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);x(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(x(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(_(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(x(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=xt(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=xt(e);ho.get(t)||(ho.set(t,!0),jt.call(t,"mousedown",No,!0),jt.call(t,"mouseup",(()=>{setTimeout(Mo)}),!0),jt.call(t,"dragstart",Mo,!0))}function Ro(e){qt.call(e,"focusin",So,!0)}const{blur:Do,focus:Po}=HTMLElement.prototype;function Io(){return gl(this)&&k(De.call(this,"tabindex"))?0:et.call(this)}function Ao(e){const t=gl(this),n=et.call(this),l=De.call(this,"tabindex");tt.call(this,e);const o=et.call(this),r=De.call(this,"tabindex"),a=n!==o;var i;(l&&(a||k(r))&&(-1===n&&Ro(this),0===n&&t&&Ho(this)),k(r))||(l&&r&&k(a)||(-1===o&&(Oo(i=this),Ho(i),jt.call(i,"focusin",So,!0)),0===o&&t&&function(e){Oo(e),Ro(e),jt.call(e,"focusin",Lo,!0)}(this)))}function $o(){if(gl(this)){const e=function(e){const t=xt(e),n=ht.call(t);return x(n)||0!=(pe.call(e,n)&ee)?n:null}(this);if(!x(e))return void e.blur()}return Do.call(this)}function Bo(){const e=!To;e&&No(),dl(this)&&gl(this)?mo.call(this):(Po.apply(this,arguments),e&&Mo())}function _o(e,t){e[j]=t;const n=Le.call(e);for(let e=0,l=n.length;e<l;e++)_o(n[e],t)}n(HTMLElement.prototype,{tabIndex:{get(){return dl(this)?Io.call(this):et.call(this)},set(e){return dl(this)?Ao.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(){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!==je&&null!==Ke&&l(HTMLElement.prototype,"outerText",{get(){return je.call(this)},set(e){Ke.call(this,e)},enumerable:!0,configurable:!0}),l(Element.prototype,Y,{set(e){const t=this[X];_(t)||t===e||Ae.call(this,t),_(e)||$e.call(this,e,""),this[X]=e},get(){return this[X]},configurable:!0}),l(Element.prototype,"$shadowStaticNode$",{set(e){if(e){_o(this,this[j])}this[q]=e},get(){return this[q]},configurable:!0});const xo="$$DomManualKey$$",Fo=function(){};let ko;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;_(l)&&Ot.call(ko,e,Wo);const o=Le.call(e);for(let e=0,l=o.length;e<l;e+=1)Uo(o[e],t,n)}}function Go(){return new Ht((e=>{D.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[xo]=e,F(e)&&function(e){if(_(ko)&&(ko=Go()),_(pl(e)))throw new Error("Invalid Element");Ot.call(ko,e,Wo)}(this)},get(){return this[xo]},configurable:!0})}));
|
|
11
|
+
//# sourceMappingURL=synthetic-shadow.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"synthetic-shadow.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
62
62
|
const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
|
|
63
63
|
const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
|
|
64
|
-
/** version: 2.
|
|
64
|
+
/** version: 2.38.1 */
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
71
71
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
72
72
|
}
|
|
73
|
-
/** version: 2.
|
|
73
|
+
/** version: 2.38.1 */
|
|
74
74
|
|
|
75
75
|
/*
|
|
76
76
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1654,11 +1654,17 @@
|
|
|
1654
1654
|
// The isUndefined check is because two copies of synthetic shadow may be loaded on the same page, and this
|
|
1655
1655
|
// would throw an error if we tried to redefine it. Plus the whole point is to expose the native method.
|
|
1656
1656
|
if (isUndefined(_globalThis[KEY__NATIVE_GET_ELEMENT_BY_ID])) {
|
|
1657
|
-
defineProperty(_globalThis, KEY__NATIVE_GET_ELEMENT_BY_ID, {
|
|
1657
|
+
defineProperty(_globalThis, KEY__NATIVE_GET_ELEMENT_BY_ID, {
|
|
1658
|
+
value: getElementById,
|
|
1659
|
+
configurable: true,
|
|
1660
|
+
});
|
|
1658
1661
|
}
|
|
1659
1662
|
// See note above.
|
|
1660
1663
|
if (isUndefined(_globalThis[KEY__NATIVE_QUERY_SELECTOR_ALL])) {
|
|
1661
|
-
defineProperty(_globalThis, KEY__NATIVE_QUERY_SELECTOR_ALL, {
|
|
1664
|
+
defineProperty(_globalThis, KEY__NATIVE_QUERY_SELECTOR_ALL, {
|
|
1665
|
+
value: querySelectorAll,
|
|
1666
|
+
configurable: true,
|
|
1667
|
+
});
|
|
1662
1668
|
}
|
|
1663
1669
|
function getShadowRootResolver(node) {
|
|
1664
1670
|
return node[KEY__SHADOW_RESOLVER];
|
|
@@ -4500,6 +4506,7 @@
|
|
|
4500
4506
|
},
|
|
4501
4507
|
configurable: true,
|
|
4502
4508
|
});
|
|
4503
|
-
/** version: 2.
|
|
4509
|
+
/** version: 2.38.1 */
|
|
4504
4510
|
|
|
4505
4511
|
}));
|
|
4512
|
+
//# sourceMappingURL=synthetic-shadow_debug.js.map
|