lwc 2.5.5-canary1 → 2.5.6
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 +23 -25
- package/dist/engine-dom/iife/es2017/engine-dom.js +24 -26
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +24 -26
- package/dist/engine-dom/iife/es5/engine-dom.js +13 -15
- package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +13 -15
- package/dist/engine-dom/umd/es2017/engine-dom.js +25 -27
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +25 -27
- package/dist/engine-dom/umd/es5/engine-dom.js +14 -16
- package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +14 -16
- package/dist/engine-server/commonjs/es2017/engine-server.js +23 -25
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
- package/dist/engine-server/esm/es2017/engine-server.js +23 -25
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +9 -39
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +10 -40
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +10 -40
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +10 -40
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +10 -40
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +11 -41
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +11 -41
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +11 -41
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +11 -41
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +3 -3
- package/dist/wire-service/iife/es2017/wire-service_debug.js +3 -3
- package/dist/wire-service/iife/es5/wire-service.js +3 -3
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +3 -3
- package/dist/wire-service/umd/es2017/wire-service.js +4 -4
- package/dist/wire-service/umd/es2017/wire-service_debug.js +4 -4
- package/dist/wire-service/umd/es5/wire-service.js +4 -4
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +4 -4
- package/package.json +8 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";var e,t;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=Object.assign,o=Object.create,a=Object.defineProperties,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,s=Object.hasOwnProperty,f=Object.setPrototypeOf,h=Array.prototype,p=h.filter,g=h.find,m=h.indexOf,v=h.map,d=h.push,b=h.reduce,E=h.reverse,y=h.slice,w=h.splice,T=h.forEach,N=String.prototype.charCodeAt;function L(e){return void 0===e}function M(e){return null===e}function C(e){return!0===e}function S(e){return!1===e}function O(e){return"function"==typeof e}function A(e){return"object"===r(e)}var H,_,R=function(){if("object"===("undefined"==typeof globalThis?"undefined":r(globalThis)))return globalThis;var e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}(),P="$shadowResolver$",D="$shadowToken$",$=Node,B=$.prototype,I=$.DOCUMENT_POSITION_CONTAINED_BY,k=$.DOCUMENT_POSITION_PRECEDING,x=$.DOCUMENT_POSITION_FOLLOWING,F=$.ELEMENT_NODE,W=$.TEXT_NODE,j=$.CDATA_SECTION_NODE,U=$.PROCESSING_INSTRUCTION_NODE,K=$.COMMENT_NODE,G=B.appendChild,q=B.cloneNode,X=B.compareDocumentPosition,V=B.insertBefore,Y=B.removeChild,z=B.replaceChild,J=B.hasChildNodes,Q=HTMLElement.prototype.contains,Z=u(B,"firstChild").get,ee=u(B,"lastChild").get,te=u(B,"textContent").get,ne=u(B,"parentNode").get,re=u(B,"ownerDocument").get,le=s.call(B,"parentElement")?u(B,"parentElement").get:u(HTMLElement.prototype,"parentElement").get,oe=u(B,"textContent").set,ae=s.call(B,"childNodes")?u(B,"childNodes").get:u(HTMLElement.prototype,"childNodes").get,ie=s.call(B,"isConnected")?u(B,"isConnected").get:function(){var e=re.call(this);return null===e||0!=(X.call(e,this)&I)},ue=Element.prototype,ce=ue.getAttribute,se=ue.getBoundingClientRect,fe=ue.getElementsByTagName,he=ue.getElementsByTagNameNS,pe=ue.hasAttribute,ge=ue.querySelector,me=ue.querySelectorAll,ve=ue.removeAttribute,de=ue.setAttribute,be=s.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:function(){throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},Ee=u(Element.prototype,"childElementCount").get,ye=u(Element.prototype,"firstElementChild").get,we=u(Element.prototype,"lastElementChild").get,Te=u(HTMLElement.prototype,"innerText"),Ne=Te?Te.get:null,Le=Te?Te.set:null,Me=u(HTMLElement.prototype,"outerText"),Ce=Me?Me.get:null,Se=Me?Me.set:null,Oe=s.call(Element.prototype,"innerHTML")?u(Element.prototype,"innerHTML"):u(HTMLElement.prototype,"innerHTML"),Ae=Oe.get,He=Oe.set,_e=s.call(Element.prototype,"outerHTML")?u(Element.prototype,"outerHTML"):u(HTMLElement.prototype,"outerHTML"),Re=_e.get,Pe=_e.set,De=u(Element.prototype,"tagName").get,$e=u(HTMLElement.prototype,"tabIndex"),Be=$e.get,Ie=$e.set,ke=s.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,xe=s.call(Element.prototype,"children")?u(Element.prototype,"children").get:u(HTMLElement.prototype,"children").get,Fe=HTMLElement.prototype.getElementsByClassName,We=s.call(Element.prototype,"shadowRoot")?u(Element.prototype,"shadowRoot").get:function(){return null};"undefined"!=typeof HTMLSlotElement?(H=HTMLSlotElement.prototype.assignedNodes,_=HTMLSlotElement.prototype.assignedElements):(H=function(){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")},_=function(){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")});var je=u(Event.prototype,"target").get,Ue=u(Event.prototype,"currentTarget").get,Ke=u(FocusEvent.prototype,"relatedTarget").get,Ge=s.call(Event.prototype,"composedPath")?Event.prototype.composedPath:function(){return[]},qe=u(Document.prototype,"activeElement").get,Xe=s.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,Ve=s.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,Ye=u(Document.prototype,"defaultView").get,ze=Document.prototype,Je=ze.querySelectorAll,Qe=ze.getElementById,Ze=ze.getElementsByClassName,et=ze.getElementsByTagName,tt=ze.getElementsByTagNameNS,nt=HTMLDocument.prototype.getElementsByName,rt=window,lt=rt.addEventListener,ot=rt.removeEventListener,at=rt.getComputedStyle,it=rt.getSelection,ut=MutationObserver,ct=ut.prototype.observe,st=null;"undefined"!=typeof ShadowRoot&&(st=ShadowRoot);var ft=!M(st),ht=M(st)?function(){return!1}:function(e){return e instanceof st};var pt,gt=Document.prototype.createElement;function mt(e){var t=re.call(e);return null===t?e:t}function vt(e){var t=mt(e),n=Ye.call(t);if(null===n)throw new TypeError;return n}function dt(e){if(L(pt)){var t=mt(e);pt=t.body&&"temporary-bypass"===ce.call(t.body,"data-global-patching-bypass")}return C(pt)}function bt(e){var t=e.length,n=[];if(t>0)for(var r=0;r<t;r++)n[r]=e[r];return n}"undefined"==typeof HTMLSlotElement&&function(){var e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};f(e,HTMLElement.constructor),f(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,i(Document.prototype,"createElement",{value:function(t,n){var r=gt.apply(this,y.call(arguments));return 4===t.length&&115===N.call(t,0)&&108===N.call(t,1)&&111===N.call(t,2)&&116===N.call(t,3)&&f(r,e.prototype),r}})}(),R.lwcRuntimeFlags||Object.defineProperty(R,"lwcRuntimeFlags",{value:o(null)});var Et=R.lwcRuntimeFlags,yt="undefined"!=typeof EventTarget?EventTarget.prototype:$.prototype,wt=yt.addEventListener,Tt=yt.dispatchEvent,Nt=yt.removeEventListener,Lt=new WeakMap,Mt=new WeakMap;function Ct(e,t,n){if(t===n)return!0;var r=Mt.get(e);return L(r)&&(r=e.composedPath(),Mt.set(e,r)),r.includes(n)}function St(e){if(!function(e){return O(e)||A(e)&&!M(e)&&O(e.handleEvent)}(e))return e;var t=Lt.get(e);return L(t)&&(t=function(t){var n,r=Ue.call(t),l=t.composed;Et.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE?n=!(or.has(t)&&S(l)):n=Ct(t,Dt(t),r);if(n)return O(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Lt.set(e,t)),t}var Ot=new WeakMap;function At(e,t){return!!(X.call(e,t)&I)}var Ht={composed:!1};function _t(e,t){var n=e.getRootNode(t);return"mode"in n&&"delegatesFocus"in n&&(n=Jn(n)),n}var Rt=new WeakMap;function Pt(e){var t=Rt.get(e);return L(t)&&(t=o(null),Rt.set(e,t)),t}function Dt(e){var t;return null!==(t=or.get(e))&&void 0!==t?t:je.call(e)}var $t=new WeakMap;function Bt(e){if(!O(e))throw new TypeError;var t=$t.get(e);return L(t)&&((t=function(t){var n,r=Ue.call(t);(ht(r)||(r=Qn(r)),Et.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)?n=function(e){var t=e.composed,n=je.call(e),r=Ue.call(e);if(n===r)return or.get(e)===Qn(n);if(C(t))return!0;if(C(or.has(e)))return!1;var l=_t(n,Ht),o=r;return At(l,o)||l===o}(t):n=Ct(t,Dt(t),r);n&&e.call(r,t)}).placement=1,$t.set(e,t)),t}var It=new WeakMap;function kt(e){if(!O(e))throw new TypeError;var t=It.get(e);return L(t)&&((t=function(t){var n,r=Ue.call(t);Et.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE?n=function(e){if(C(e.composed))return!0;if(or.has(e))return!1;var t=je.call(e),n=Ue.call(e);if(t===n)return!0;return At(_t(t,Ht),n)}(t):n=Ct(t,Dt(t),r);n&&e.call(r,t)}).placement=0,It.set(e,t)),t}function xt(e){var t=!1,n=!1,r=e.type,l=e.stopImmediatePropagation,o=e.stopPropagation,a=Pt(Ue.call(e))[r];i(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),i(e,"stopPropagation",{value:function(){n=!0,o.call(e)},writable:!0,enumerable:!0,configurable:!0});var u=y.call(a);function c(n){T.call(u,(function(r){S(t)&&r.placement===n&&-1!==m.call(a,r)&&r.call(void 0,e)}))}Ot.set(e,1),c(1),S(t)&&S(n)&&(Ot.set(e,0),c(0)),Ot.set(e,2)}function Ft(e,t,n){var r=Pt(e),l=r[t];L(l)&&(l=r[t]=[]),-1===m.call(l,n)&&(0===l.length&&wt.call(e,t,xt),d.call(l,n))}function Wt(e,t,n){var r,l;L(l=Pt(e)[t])||-1===(r=m.call(l,n))||(w.call(l,r,1),0===l.length&&Nt.call(e,t,xt))}function jt(e,t,n){O(t)&&Ft(this,e,kt(t))}function Ut(e,t,n){O(t)&&Wt(this,e,kt(t))}var Kt="$$HostElementKey$$",Gt="$$ShadowedNodeKey$$";function qt(e,t,n){var r=e,l=n.value;r[t]=l}function Xt(e){return e[Kt]}function Vt(e){for(var t,n=e;!M(n);){if(!L(t=Xt(n)))return t;n=ne.call(n)}}function Yt(e){return e[Gt]}function zt(e){return!L(Xt(e))}function Jt(e){return zt(e)||Zn(e)||function(e){var t,n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null,!1);for(;!M(t=n.nextNode());)if(Zn(t))return!0;return!1}(e)}function Qt(e){for(var t=le.call(e);!M(t)&&nn(t);)e=t,t=le.call(e);return e}function Zt(e,t){for(var n=Yt(e),r=t instanceof Element?t:le.call(t);!M(r)&&r!==e;){var l=Vt(r),o=le.call(r);if(l===n)return nn(r);if(o===e)return!1;if(M(o)||Vt(o)===l)r=o;else{if(!nn(o))return!1;if(!M(r=en(Qt(o)))){if(r===e)return!0;if(Vt(r)===n)return!0}}}return!1}function en(e){if(!(e instanceof $))return null;var t=Vt(e);if(L(t))return null;for(var n=e;!M(n)&&Yt(n)!==t;)n=ne.call(n);return M(n)?null:n}function tn(e){return nn(e)&&zt(e)}function nn(e){return e instanceof HTMLSlotElement}function rn(e,t){var n=Vt(t);return L(n)||Yt(e)===n}function ln(e){var t=Jn(e);return un(t,bt(ae.call(t)))}function on(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];!rn(e,o)&&Zt(e,o)&&d.call(n,o)}return n}function an(e,t){for(var n=0,r=t.length;n<r;n+=1){var l=t[n];if(!rn(e,l)&&Zt(e,l))return l}return null}function un(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];rn(e,o)&&d.call(n,o)}return n}function cn(e,t){for(var n=0,r=t.length;n<r;n+=1)if(rn(e,t[n]))return t[n];return null}function sn(e){if(!Zn(e)&&!nn(e))return bt(ae.call(e));if(Zn(e)){var t=bt(me.call(e,"slot")),n=Vn(Qn(e));return b.call(t,(function(e,t){return n===Vn(t)&&d.apply(e,fn(t)),e}),[])}var r=bt(ae.call(e)),l=Vn(e);return p.call(r,(function(e){return l===Vn(e)}))}function fn(e){var t=en(e);if(M(t))return[];var n=bt(ae.call(e));return p.call(n,(function(e){return!zt(e)||!rn(t,e)}))}function hn(e){switch(e.nodeType){case F:for(var t=sn(e),n="",r=0,l=t.length;r<l;r+=1){var o=t[r];o.nodeType!==K&&(n+=hn(o))}return n;default:return e.nodeValue}}var pn=new WeakMap;function gn(){throw new TypeError("Illegal constructor")}function mn(e){var t=o(gn.prototype);return pn.set(t,e),T.call(e,(function(e,n){i(t,n,{value:e,enumerable:!0,configurable:!0})})),t}gn.prototype=o(NodeList.prototype,(n(e={constructor:{writable:!0,configurable:!0,value:gn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return pn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){T.call(pn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(pn.get(this),(function(e,t){return[t,e]}))}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(pn.get(this),(function(e,t){return t}))}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return pn.get(this)}}},Symbol.iterator,{writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=pn.get(e);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}}),n(e,Symbol.toStringTag,{configurable:!0,get:function(){return"NodeList"}}),n(e,"toString",{writable:!0,configurable:!0,value:function(){return"[object NodeList]"}}),e)),f(gn,NodeList);var vn=new WeakMap;function dn(){throw new TypeError("Illegal constructor")}function bn(e){var t=o(dn.prototype);return vn.set(t,e),T.call(e,(function(e,n){i(t,n,{value:e,enumerable:!0,configurable:!0})})),t}dn.prototype=o(HTMLCollection.prototype,(n(t={constructor:{writable:!0,configurable:!0,value:dn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return vn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(""===e)return null;for(var t=vn.get(this),n=0,r=t.length;n<r;n++){var l=t[r];if(e===ce.call(l,"id")||e===ce.call(l,"name"))return l}return null}}},Symbol.toStringTag,{configurable:!0,get:function(){return"HTMLCollection"}}),n(t,"toString",{writable:!0,configurable:!0,value:function(){return"[object HTMLCollection]"}}),t)),f(dn,HTMLCollection);var En=/[&\u00A0"]/g,yn=/[&\u00A0<>]/g,wn=String.prototype,Tn=wn.replace,Nn=wn.toLowerCase;function Ln(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function Mn(e){return Tn.call(e,En,Ln)}var Cn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Sn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function On(e){switch(e.nodeType){case F:for(var t,n=e.attributes,r=De.call(e),l="<"+Nn.call(r),o=0;t=n[o];o++)l+=" "+t.name+'="'+Mn(t.value)+'"';return l+=">",Cn.has(r)?l:l+function(e){for(var t="",n=sn(e),r=0,l=n.length;r<l;r+=1)t+=On(n[r]);return t}(e)+"</"+Nn.call(r)+">";case W:var a=e.data,i=e.parentNode;return i instanceof Element&&Sn.has(De.call(i))?a:function(e){return Tn.call(e,yn,Ln)}(a);case j:return"<!CDATA[[".concat(e.data,"]]>");case U:return"<?".concat(e.target," ").concat(e.data,"?>");case K:return"\x3c!--".concat(e.data,"--\x3e");default:return""}}function An(e){return tn(e)||Zn(e)}function Hn(e,t){var n=en(e);if(t===n)return Qn(n);if(t instanceof Element){if(Vt(e)===Vt(t))return t;if(!M(n)&&nn(t)){var r=en(t);if(!M(r)&&rn(n,r))return r}}return null}function _n(){return Un(this).length>0}function Rn(){return Un(this)[0]||null}function Pn(){var e=Un(this);return e[e.length-1]||null}function Dn(){return hn(this)}function $n(){var e=ne.call(this);return M(e)?e:Hn(this,e)}function Bn(){var e=ne.call(this);if(M(e))return null;var t=Hn(this,e);return t instanceof Element?t:null}function In(e){return this.getRootNode()===e?10:Xt(this)!==Xt(e)?35:X.call(this,e)}function kn(e){return null!=e&&Xt(this)===Xt(e)&&0!=(X.call(this,e)&I)}function xn(e){var t=q.call(this,!1);if(!e)return t;for(var n=Un(this),r=0,l=n.length;r<l;r+=1)t.appendChild(n[r].cloneNode(!0));return t}function Fn(){if(Zn(this)){var e=en(this);return mn(M(e)?sn(this):un(e,sn(this)))}return ae.call(this)}var Wn=$.prototype.getRootNode,jn=L(Wn)?function(){for(var e,t=this;!M(e=ne.call(t));)t=e;return t}:Wn;a($.prototype,{firstChild:{get:function(){return An(this)?Rn.call(this):Z.call(this)},enumerable:!0,configurable:!0},lastChild:{get:function(){return An(this)?Pn.call(this):ee.call(this)},enumerable:!0,configurable:!0},textContent:{get:function(){return Et.ENABLE_NODE_PATCH?dt(this)?te.call(this):Dn.call(this):Jt(this)?Dn.call(this):te.call(this)},set:function(e){oe.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get:function(){if(zt(this))return $n.call(this);var e=ne.call(this);return!M(e)&&tn(e)?en(e):e},enumerable:!0,configurable:!0},parentElement:{get:function(){if(zt(this))return Bn.call(this);var e=le.call(this);return!M(e)&&tn(e)?en(e):e},enumerable:!0,configurable:!0},childNodes:{get:function(){return An(this)?Fn.call(this):ae.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value:function(){return An(this)?_n.call(this):J.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value:function(e){return dt(this)?X.call(this,e):In.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value:function(e){return this===e||(Et.ENABLE_NODE_PATCH?dt(this)?Q.call(this,e):kn.call(this,e):null!=e&&(zt(this)||Zn(this)?kn.call(this,e):Q.call(this,e)))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value:function(e){return Et.ENABLE_NODE_PATCH?C(e)?dt(this)?q.call(this,e):xn.call(this,e):q.call(this,e):zt(this)||Zn(this)?xn.call(this,e):q.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){var t,n;return C(!L(e)&&!!e.composed)?jn.call(this,e):M(n=en(t=this))?jn.call(t):Qn(n)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get:function(){return ie.call(this)}}});var Un=function(e){return e.childNodes};function Kn(e,t,n,r){var l=Ve.call(t,n,r),o=[],a=function(e){for(var t,n=[],r=e.getRootNode();!L(r);)n.push(r),r=null===(t=r.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!M(l))for(var i=0;i<l.length;i++){var u=l[i];-1===a.indexOf(u.getRootNode())||tn(u)||o.push(u)}return o}s.call(HTMLElement.prototype,"contains")&&i(HTMLElement.prototype,"contains",u($.prototype,"contains")),s.call(HTMLElement.prototype,"parentElement")&&i(HTMLElement.prototype,"parentElement",u($.prototype,"parentElement"));var Gn=new WeakMap,qn=document.createDocumentFragment;function Xn(e){var t=Gn.get(e);if(L(t))throw new TypeError;return t}function Vn(e){return e.$shadowResolver$}function Yn(e,t){e.$shadowResolver$=t}function zn(e){return Xn(e).delegatesFocus}function Jn(e){return Xn(e).host}function Qn(e){return Xn(e).shadowRoot}function Zn(e){var t=Gn.get(e);return!L(t)&&e===t.host}function er(e){var t=Gn.get(e);return!L(t)&&e===t.shadowRoot}i($.prototype,P,{set:function(e){var t,n;L(e)||(this.$$ShadowResolverKey$$=e,t=this,n=e.nodeKey,qt(t,Kt,{value:n,configurable:!0}))},get:function(){return this.$$ShadowResolverKey$$},configurable:!0,enumerable:!0}),i(R,"$isNativeShadowRootDefined$",{value:ft});var tr=0;function nr(e,t){if(Gn.has(e))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");var n=t.mode,r=t.delegatesFocus,l=mt(e),o=qn.call(l),a={mode:n,delegatesFocus:!!r,host:e,shadowRoot:o};Gn.set(o,a),Gn.set(e,a);var i=function(){return o},u=i.nodeKey=tr++;return qt(e,Gt,{value:u}),Yn(o,i),f(o,ar.prototype),o}var rr={constructor:{writable:!0,configurable:!0,value:ar},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}}},lr={activeElement:{enumerable:!0,configurable:!0,get:function(){var e=Jn(this),t=mt(e),n=qe.call(t);if(M(n))return n;if(0==(X.call(e,n)&I))return null;for(var r=n;!rn(e,r);)r=le.call(r);return nn(r)?null:r}},delegatesFocus:{configurable:!0,get:function(){return Xn(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return cr(this,mt(Jn(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return Kn(this,mt(Jn(this)),e,t)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get:function(){return Jn(this)}},mode:{configurable:!0,get:function(){return Xn(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}},or=new WeakMap;function ar(){throw new TypeError("Illegal constructor")}function ir(e,t){var n,r=[];if(e instanceof Window)n=e;else{if(!(e instanceof $))return r;n=e.getRootNode()}for(var l,o=e;!M(o);)if(r.push(o),o instanceof Element||o instanceof Text){var a=o.assignedSlot;o=M(a)?o.parentNode:a}else o=!er(o)&&!ht(o)||!t&&o===n?o instanceof $?o.parentNode:null:o.host;return l=e instanceof Window?e.document:mt(e),r[r.length-1]===l&&r.push(window),r}
|
|
1
|
+
!function(){"use strict";var e,t;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var l=Object.assign,o=Object.create,a=Object.defineProperties,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,s=Object.hasOwnProperty,f=Object.setPrototypeOf,h=Array.prototype,p=h.filter,g=h.find,m=h.indexOf,v=h.map,b=h.push,d=h.reduce,E=h.reverse,y=h.slice,w=h.splice,T=h.forEach,N=String.prototype.charCodeAt;function L(e){return void 0===e}function M(e){return null===e}function C(e){return!0===e}function S(e){return!1===e}function O(e){return"function"==typeof e}function A(e){return"object"===r(e)}var H,_,R=function(){if("object"===("undefined"==typeof globalThis?"undefined":r(globalThis)))return globalThis;var e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}(),P="$shadowResolver$",D="$shadowToken$",$=Node,B=$.prototype,I=$.DOCUMENT_POSITION_CONTAINED_BY,k=$.DOCUMENT_POSITION_PRECEDING,x=$.DOCUMENT_POSITION_FOLLOWING,F=$.ELEMENT_NODE,W=$.TEXT_NODE,j=$.CDATA_SECTION_NODE,U=$.PROCESSING_INSTRUCTION_NODE,K=$.COMMENT_NODE,G=B.appendChild,q=B.cloneNode,X=B.compareDocumentPosition,V=B.insertBefore,Y=B.removeChild,z=B.replaceChild,J=B.hasChildNodes,Q=HTMLElement.prototype.contains,Z=u(B,"firstChild").get,ee=u(B,"lastChild").get,te=u(B,"textContent").get,ne=u(B,"parentNode").get,re=u(B,"ownerDocument").get,le=s.call(B,"parentElement")?u(B,"parentElement").get:u(HTMLElement.prototype,"parentElement").get,oe=u(B,"textContent").set,ae=s.call(B,"childNodes")?u(B,"childNodes").get:u(HTMLElement.prototype,"childNodes").get,ie=s.call(B,"isConnected")?u(B,"isConnected").get:function(){var e=re.call(this);return null===e||0!=(X.call(e,this)&I)},ue=Element.prototype,ce=ue.getAttribute,se=ue.getBoundingClientRect,fe=ue.getElementsByTagName,he=ue.getElementsByTagNameNS,pe=ue.hasAttribute,ge=ue.querySelector,me=ue.querySelectorAll,ve=ue.removeAttribute,be=ue.setAttribute,de=s.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:function(){throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},Ee=u(Element.prototype,"childElementCount").get,ye=u(Element.prototype,"firstElementChild").get,we=u(Element.prototype,"lastElementChild").get,Te=u(HTMLElement.prototype,"innerText"),Ne=Te?Te.get:null,Le=Te?Te.set:null,Me=u(HTMLElement.prototype,"outerText"),Ce=Me?Me.get:null,Se=Me?Me.set:null,Oe=s.call(Element.prototype,"innerHTML")?u(Element.prototype,"innerHTML"):u(HTMLElement.prototype,"innerHTML"),Ae=Oe.get,He=Oe.set,_e=s.call(Element.prototype,"outerHTML")?u(Element.prototype,"outerHTML"):u(HTMLElement.prototype,"outerHTML"),Re=_e.get,Pe=_e.set,De=u(Element.prototype,"tagName").get,$e=u(HTMLElement.prototype,"tabIndex"),Be=$e.get,Ie=$e.set,ke=s.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,xe=s.call(Element.prototype,"children")?u(Element.prototype,"children").get:u(HTMLElement.prototype,"children").get,Fe=HTMLElement.prototype.getElementsByClassName,We=s.call(Element.prototype,"shadowRoot")?u(Element.prototype,"shadowRoot").get:function(){return null};"undefined"!=typeof HTMLSlotElement?(H=HTMLSlotElement.prototype.assignedNodes,_=HTMLSlotElement.prototype.assignedElements):(H=function(){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")},_=function(){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")});var je=u(Event.prototype,"target").get,Ue=u(Event.prototype,"currentTarget").get,Ke=u(FocusEvent.prototype,"relatedTarget").get,Ge=s.call(Event.prototype,"composedPath")?Event.prototype.composedPath:function(){return[]},qe=u(Document.prototype,"activeElement").get,Xe=s.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,Ve=s.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,Ye=u(Document.prototype,"defaultView").get,ze=Document.prototype,Je=ze.querySelectorAll,Qe=ze.getElementById,Ze=ze.getElementsByClassName,et=ze.getElementsByTagName,tt=ze.getElementsByTagNameNS,nt=HTMLDocument.prototype.getElementsByName,rt=window,lt=rt.addEventListener,ot=rt.removeEventListener,at=rt.getComputedStyle,it=rt.getSelection,ut=MutationObserver,ct=ut.prototype.observe,st=null;"undefined"!=typeof ShadowRoot&&(st=ShadowRoot);var ft=!M(st),ht=M(st)?function(){return!1}:function(e){return e instanceof st};var pt,gt=Document.prototype.createElement;function mt(e){var t=re.call(e);return null===t?e:t}function vt(e){var t=mt(e),n=Ye.call(t);if(null===n)throw new TypeError;return n}function bt(e){if(L(pt)){var t=mt(e);pt=t.body&&"temporary-bypass"===ce.call(t.body,"data-global-patching-bypass")}return C(pt)}function dt(e){var t=e.length,n=[];if(t>0)for(var r=0;r<t;r++)n[r]=e[r];return n}"undefined"==typeof HTMLSlotElement&&function(){var e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};f(e,HTMLElement.constructor),f(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,i(Document.prototype,"createElement",{value:function(t,n){var r=gt.apply(this,y.call(arguments));return 4===t.length&&115===N.call(t,0)&&108===N.call(t,1)&&111===N.call(t,2)&&116===N.call(t,3)&&f(r,e.prototype),r}})}(),R.lwcRuntimeFlags||Object.defineProperty(R,"lwcRuntimeFlags",{value:o(null)});var Et=R.lwcRuntimeFlags,yt="undefined"!=typeof EventTarget?EventTarget.prototype:$.prototype,wt=yt.addEventListener,Tt=yt.dispatchEvent,Nt=yt.removeEventListener,Lt=new WeakMap,Mt=new WeakMap;function Ct(e,t,n){if(t===n)return!0;var r=Mt.get(e);return L(r)&&(r=e.composedPath(),Mt.set(e,r)),r.includes(n)}function St(e){if(!function(e){return O(e)||A(e)&&!M(e)&&O(e.handleEvent)}(e))return e;var t=Lt.get(e);return L(t)&&(t=function(t){var n,r=Ue.call(t),l=t.composed;Et.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE?n=!(lr.has(t)&&S(l)):n=Ct(t,Dt(t),r);if(n)return O(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Lt.set(e,t)),t}var Ot=new WeakMap;function At(e,t){return!!(X.call(e,t)&I)}var Ht={composed:!1};function _t(e,t){var n=e.getRootNode(t);return Zn(n)&&(n=zn(n)),n}var Rt=new WeakMap;function Pt(e){var t=Rt.get(e);return L(t)&&(t=o(null),Rt.set(e,t)),t}function Dt(e){var t;return null!==(t=lr.get(e))&&void 0!==t?t:je.call(e)}var $t=new WeakMap;function Bt(e){if(!O(e))throw new TypeError;var t=$t.get(e);return L(t)&&((t=function(t){var n,r=Ue.call(t);(ht(r)||(r=Jn(r)),Et.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)?n=function(e){var t=e.composed,n=je.call(e),r=Ue.call(e);if(n===r)return lr.get(e)===Jn(n);if(C(t))return!0;if(C(lr.has(e)))return!1;var l=_t(n,Ht),o=r;return At(l,o)||l===o}(t):n=Ct(t,Dt(t),r);n&&e.call(r,t)}).placement=1,$t.set(e,t)),t}var It=new WeakMap;function kt(e){if(!O(e))throw new TypeError;var t=It.get(e);return L(t)&&((t=function(t){var n,r=Ue.call(t);Et.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE?n=function(e){if(C(e.composed))return!0;if(lr.has(e))return!1;var t=je.call(e),n=Ue.call(e);if(t===n)return!0;return At(_t(t,Ht),n)}(t):n=Ct(t,Dt(t),r);n&&e.call(r,t)}).placement=0,It.set(e,t)),t}function xt(e){var t=!1,n=!1,r=e.type,l=e.stopImmediatePropagation,o=e.stopPropagation,a=Pt(Ue.call(e))[r];i(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),i(e,"stopPropagation",{value:function(){n=!0,o.call(e)},writable:!0,enumerable:!0,configurable:!0});var u=y.call(a);function c(n){T.call(u,(function(r){S(t)&&r.placement===n&&-1!==m.call(a,r)&&r.call(void 0,e)}))}Ot.set(e,1),c(1),S(t)&&S(n)&&(Ot.set(e,0),c(0)),Ot.set(e,2)}function Ft(e,t,n){var r=Pt(e),l=r[t];L(l)&&(l=r[t]=[]),-1===m.call(l,n)&&(0===l.length&&wt.call(e,t,xt),b.call(l,n))}function Wt(e,t,n){var r,l;L(l=Pt(e)[t])||-1===(r=m.call(l,n))||(w.call(l,r,1),0===l.length&&Nt.call(e,t,xt))}function jt(e,t,n){O(t)&&Ft(this,e,kt(t))}function Ut(e,t,n){O(t)&&Wt(this,e,kt(t))}var Kt="$$HostElementKey$$",Gt="$$ShadowedNodeKey$$";function qt(e,t,n){var r=e,l=n.value;r[t]=l}function Xt(e){return e[Kt]}function Vt(e){for(var t,n=e;!M(n);){if(!L(t=Xt(n)))return t;n=ne.call(n)}}function Yt(e){return e[Gt]}function zt(e){return!L(Xt(e))}function Jt(e){for(var t=le.call(e);!M(t)&&tn(t);)e=t,t=le.call(e);return e}function Qt(e,t){for(var n=Yt(e),r=t instanceof Element?t:le.call(t);!M(r)&&r!==e;){var l=Vt(r),o=le.call(r);if(l===n)return tn(r);if(o===e)return!1;if(M(o)||Vt(o)===l)r=o;else{if(!tn(o))return!1;if(!M(r=Zt(Jt(o)))){if(r===e)return!0;if(Vt(r)===n)return!0}}}return!1}function Zt(e){if(!(e instanceof $))return null;var t=Vt(e);if(L(t))return null;for(var n=e;!M(n)&&Yt(n)!==t;)n=ne.call(n);return M(n)?null:n}function en(e){return tn(e)&&zt(e)}function tn(e){return e instanceof HTMLSlotElement}function nn(e,t){var n=Vt(t);return L(n)||Yt(e)===n}function rn(e){var t=zn(e);return an(t,dt(ae.call(t)))}function ln(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];!nn(e,o)&&Qt(e,o)&&b.call(n,o)}return n}function on(e,t){for(var n=0,r=t.length;n<r;n+=1){var l=t[n];if(!nn(e,l)&&Qt(e,l))return l}return null}function an(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];nn(e,o)&&b.call(n,o)}return n}function un(e,t){for(var n=0,r=t.length;n<r;n+=1)if(nn(e,t[n]))return t[n];return null}function cn(e){if(!Qn(e)&&!tn(e))return dt(ae.call(e));if(Qn(e)){var t=dt(me.call(e,"slot")),n=Xn(Jn(e));return d.call(t,(function(e,t){return n===Xn(t)&&b.apply(e,sn(t)),e}),[])}var r=dt(ae.call(e)),l=Xn(e);return p.call(r,(function(e){return l===Xn(e)}))}function sn(e){var t=Zt(e);if(M(t))return[];var n=dt(ae.call(e));return p.call(n,(function(e){return!zt(e)||!nn(t,e)}))}function fn(e){if(e.nodeType===F){for(var t=cn(e),n="",r=0,l=t.length;r<l;r+=1){var o=t[r];o.nodeType!==K&&(n+=fn(o))}return n}return e.nodeValue}var hn=new WeakMap;function pn(){throw new TypeError("Illegal constructor")}function gn(e){var t=o(pn.prototype);return hn.set(t,e),T.call(e,(function(e,n){i(t,n,{value:e,enumerable:!0,configurable:!0})})),t}pn.prototype=o(NodeList.prototype,(n(e={constructor:{writable:!0,configurable:!0,value:pn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return hn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){T.call(hn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(hn.get(this),(function(e,t){return[t,e]}))}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(hn.get(this),(function(e,t){return t}))}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return hn.get(this)}}},Symbol.iterator,{writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=hn.get(e);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}}),n(e,Symbol.toStringTag,{configurable:!0,get:function(){return"NodeList"}}),n(e,"toString",{writable:!0,configurable:!0,value:function(){return"[object NodeList]"}}),e)),f(pn,NodeList);var mn=new WeakMap;function vn(){throw new TypeError("Illegal constructor")}function bn(e){var t=o(vn.prototype);return mn.set(t,e),T.call(e,(function(e,n){i(t,n,{value:e,enumerable:!0,configurable:!0})})),t}vn.prototype=o(HTMLCollection.prototype,(n(t={constructor:{writable:!0,configurable:!0,value:vn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return mn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(""===e)return null;for(var t=mn.get(this),n=0,r=t.length;n<r;n++){var l=t[r];if(e===ce.call(l,"id")||e===ce.call(l,"name"))return l}return null}}},Symbol.toStringTag,{configurable:!0,get:function(){return"HTMLCollection"}}),n(t,"toString",{writable:!0,configurable:!0,value:function(){return"[object HTMLCollection]"}}),t)),f(vn,HTMLCollection);var dn=/[&\u00A0"]/g,En=/[&\u00A0<>]/g,yn=String.prototype,wn=yn.replace,Tn=yn.toLowerCase;function Nn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function Ln(e){return wn.call(e,dn,Nn)}var Mn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Cn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Sn(e){switch(e.nodeType){case F:for(var t,n=e.attributes,r=De.call(e),l="<"+Tn.call(r),o=0;t=n[o];o++)l+=" "+t.name+'="'+Ln(t.value)+'"';return l+=">",Mn.has(r)?l:l+function(e){for(var t="",n=cn(e),r=0,l=n.length;r<l;r+=1)t+=Sn(n[r]);return t}(e)+"</"+Tn.call(r)+">";case W:var a=e.data,i=e.parentNode;return i instanceof Element&&Cn.has(De.call(i))?a:function(e){return wn.call(e,En,Nn)}(a);case j:return"<!CDATA[[".concat(e.data,"]]>");case U:return"<?".concat(e.target," ").concat(e.data,"?>");case K:return"\x3c!--".concat(e.data,"--\x3e");default:return""}}function On(e){return en(e)||Qn(e)}function An(e,t){var n=Zt(e);if(t===n)return Jn(n);if(t instanceof Element){if(Vt(e)===Vt(t))return t;if(!M(n)&&tn(t)){var r=Zt(t);if(!M(r)&&nn(n,r))return r}}return null}function Hn(){return jn(this).length>0}function _n(){return jn(this)[0]||null}function Rn(){var e=jn(this);return e[e.length-1]||null}function Pn(){return fn(this)}function Dn(){var e=ne.call(this);return M(e)?e:An(this,e)}function $n(){var e=ne.call(this);if(M(e))return null;var t=An(this,e);return t instanceof Element?t:null}function Bn(e){return this.getRootNode()===e?10:Xt(this)!==Xt(e)?35:X.call(this,e)}function In(e){return null!=e&&Xt(this)===Xt(e)&&0!=(X.call(this,e)&I)}function kn(e){var t=q.call(this,!1);if(!e)return t;for(var n=jn(this),r=0,l=n.length;r<l;r+=1)t.appendChild(n[r].cloneNode(!0));return t}function xn(){if(Qn(this)){var e=Zt(this);return gn(M(e)?[]:an(e,cn(this)))}return ae.call(this)}var Fn=$.prototype.getRootNode,Wn=L(Fn)?function(){for(var e,t=this;!M(e=ne.call(t));)t=e;return t}:Fn;a($.prototype,{firstChild:{get:function(){return On(this)?_n.call(this):Z.call(this)},enumerable:!0,configurable:!0},lastChild:{get:function(){return On(this)?Rn.call(this):ee.call(this)},enumerable:!0,configurable:!0},textContent:{get:function(){return Et.ENABLE_NODE_PATCH?bt(this)?te.call(this):Pn.call(this):zt(this)||Qn(this)?Pn.call(this):te.call(this)},set:function(e){oe.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get:function(){if(zt(this))return Dn.call(this);var e=ne.call(this);return!M(e)&&en(e)?Zt(e):e},enumerable:!0,configurable:!0},parentElement:{get:function(){if(zt(this))return $n.call(this);var e=le.call(this);return!M(e)&&en(e)?Zt(e):e},enumerable:!0,configurable:!0},childNodes:{get:function(){return On(this)?xn.call(this):ae.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value:function(){return On(this)?Hn.call(this):J.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value:function(e){return bt(this)?X.call(this,e):Bn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value:function(e){return this===e||(Et.ENABLE_NODE_PATCH?bt(this)?Q.call(this,e):In.call(this,e):null!=e&&(zt(this)||Qn(this)?In.call(this,e):Q.call(this,e)))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value:function(e){return Et.ENABLE_NODE_PATCH?C(e)?bt(this)?q.call(this,e):kn.call(this,e):q.call(this,e):zt(this)||Qn(this)?kn.call(this,e):q.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){var t,n;return C(!L(e)&&!!e.composed)?Wn.call(this,e):M(n=Zt(t=this))?Wn.call(t):Jn(n)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get:function(){return ie.call(this)}}});var jn=function(e){return e.childNodes};function Un(e,t,n,r){var l=Ve.call(t,n,r),o=[],a=function(e){for(var t,n=[],r=e.getRootNode();!L(r);)n.push(r),r=null===(t=r.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!M(l))for(var i=0;i<l.length;i++){var u=l[i];-1===a.indexOf(u.getRootNode())||en(u)||o.push(u)}return o}s.call(HTMLElement.prototype,"contains")&&i(HTMLElement.prototype,"contains",u($.prototype,"contains")),s.call(HTMLElement.prototype,"parentElement")&&i(HTMLElement.prototype,"parentElement",u($.prototype,"parentElement"));var Kn=new WeakMap,Gn=document.createDocumentFragment;function qn(e){var t=Kn.get(e);if(L(t))throw new TypeError;return t}function Xn(e){return e.$shadowResolver$}function Vn(e,t){e.$shadowResolver$=t}function Yn(e){return qn(e).delegatesFocus}function zn(e){return qn(e).host}function Jn(e){return qn(e).shadowRoot}function Qn(e){var t=Kn.get(e);return!L(t)&&e===t.host}function Zn(e){var t=Kn.get(e);return!L(t)&&e===t.shadowRoot}i($.prototype,P,{set:function(e){var t,n;L(e)||(this.$$ShadowResolverKey$$=e,t=this,n=e.nodeKey,qt(t,Kt,{value:n,configurable:!0}))},get:function(){return this.$$ShadowResolverKey$$},configurable:!0,enumerable:!0}),i(R,"$isNativeShadowRootDefined$",{value:ft});var er=0;function tr(e,t){if(Kn.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.");var n=t.mode,r=t.delegatesFocus,l=mt(e),o=Gn.call(l),a={mode:n,delegatesFocus:!!r,host:e,shadowRoot:o};Kn.set(o,a),Kn.set(e,a);var i=function(){return o},u=i.nodeKey=er++;return qt(e,Gt,{value:u}),Vn(o,i),f(o,ar.prototype),o}var nr={constructor:{writable:!0,configurable:!0,value:ar},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}}},rr={activeElement:{enumerable:!0,configurable:!0,get:function(){var e=zn(this),t=mt(e),n=qe.call(t);if(M(n))return n;if(0==(X.call(e,n)&I))return null;for(var r=n;!nn(e,r);)r=le.call(r);return tn(r)?null:r}},delegatesFocus:{configurable:!0,get:function(){return qn(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return cr(this,mt(zn(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return Un(this,mt(zn(this)),e,t)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get:function(){return zn(this)}},mode:{configurable:!0,get:function(){return qn(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}},lr=new WeakMap,or={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return V.call(zn(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return Y.call(zn(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return G.call(zn(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return z.call(zn(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){O(n)&&Ft(zn(e),t,Bt(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return lr.set(e,this),Tt.apply(zn(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){O(n)&&Wt(zn(e),t,Bt(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return zn(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return gn(rn(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=zn(this);return this===e?0:this.contains(e)?20:X.call(t,e)&I?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=zn(this);return 0!=(X.call(t,e)&I)&&nn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return jn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=jn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return jn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return ie.call(zn(this))}},nextSibling:{enumerable:!0,configurable:!0,get:function(){return null}},previousSibling:{enumerable:!0,configurable:!0,get:function(){return null}},nodeName:{enumerable:!0,configurable:!0,get:function(){return"#document-fragment"}},nodeType:{enumerable:!0,configurable:!0,get:function(){return 11}},nodeValue:{enumerable:!0,configurable:!0,get:function(){return null}},ownerDocument:{enumerable:!0,configurable:!0,get:function(){return zn(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:function(){return null}},parentNode:{enumerable:!0,configurable:!0,get:function(){return null}},textContent:{enumerable:!0,configurable:!0,get:function(){for(var e=jn(this),t="",n=0,r=e.length;n<r;n+=1){var l=e[n];l.nodeType!==K&&(t+=fn(l))}return t},set:function(e){var t=zn(this);oe.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return!L(e)&&C(e.composed)?zn(this).getRootNode(e):this}}};function ar(){throw new TypeError("Illegal constructor")}function ir(e,t){var n,r=[];if(e instanceof Window)n=e;else{if(!(e instanceof $))return r;n=e.getRootNode()}for(var l,o=e;!M(o);)if(r.push(o),o instanceof Element||o instanceof Text){var a=o.assignedSlot;o=M(a)?o.parentNode:a}else o=!Zn(o)&&!ht(o)||!t&&o===n?o instanceof $?o.parentNode:null:o.host;return l=e instanceof Window?e.document:mt(e),r[r.length-1]===l&&r.push(window),r}
|
|
2
2
|
/**
|
|
3
3
|
@license
|
|
4
4
|
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
8
8
|
Code distributed by Google as part of the polymer project is also
|
|
9
9
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10
|
-
*/function ur(e,t){if(M(e))return null;for(var n,r,l,o,a=ir(e,!0),i=t,u=0;u<i.length;u++)if((l=(n=i[u])instanceof Window?n:n.getRootNode())!==r&&(o=a.indexOf(l),r=l),!er(l)||!L(o)&&o>-1)return n;return null}function cr(e,t,n,r){var l=Xe.call(t,n,r);return M(l)?l:ur(e,ir(l,!0))}l(rr,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return V.call(Jn(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return Y.call(Jn(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return G.call(Jn(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return z.call(Jn(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){O(n)&&Ft(Jn(e),t,Bt(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return or.set(e,this),Tt.apply(Jn(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){O(n)&&Wt(Jn(e),t,Bt(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return Jn(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return mn(ln(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=Jn(this);return this===e?0:this.contains(e)?20:X.call(t,e)&I?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=Jn(this);return 0!=(X.call(t,e)&I)&&rn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return Un(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=Un(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Un(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return ie.call(Jn(this))}},nextSibling:{enumerable:!0,configurable:!0,get:function(){return null}},previousSibling:{enumerable:!0,configurable:!0,get:function(){return null}},nodeName:{enumerable:!0,configurable:!0,get:function(){return"#document-fragment"}},nodeType:{enumerable:!0,configurable:!0,get:function(){return 11}},nodeValue:{enumerable:!0,configurable:!0,get:function(){return null}},ownerDocument:{enumerable:!0,configurable:!0,get:function(){return Jn(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:function(){return null}},parentNode:{enumerable:!0,configurable:!0,get:function(){return null}},textContent:{enumerable:!0,configurable:!0,get:function(){for(var e=Un(this),t="",n=0,r=e.length;n<r;n+=1){var l=e[n];l.nodeType!==K&&(t+=hn(l))}return t},set:function(e){var t=Jn(this);oe.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return!L(e)&&C(e.composed)?Jn(this).getRootNode(e):this}}},{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return bn(p.call(ln(this),(function(e){return e instanceof Element})))}},firstElementChild:{enumerable:!0,configurable:!0,get:function(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get:function(){var e=this.children;return e.item(e.length-1)||null}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return t=e,cn(n=Jn(this),bt(me.call(n,t)));var t,n}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return mn((t=e,un(n=Jn(this),bt(me.call(n,t)))));var t,n}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=Un(this),t="",n=0,r=e.length;n<r;n+=1)t+=On(e[n]);return t},set:function(e){var t=Jn(this);He.call(t,e)}}},lr),ar.prototype=o(DocumentFragment.prototype,rr),i(ar,Symbol.hasInstance,{value:function(e){return A(e)&&!M(e)&&(ht(e)||c(e)===ar.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return cr(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Kn(this,this,e,t)},i(Document.prototype,"activeElement",{get:function(){var e=qe.call(this);if(M(e))return e;for(;!L(Xt(e));)if(M(e=le.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),i(Document.prototype,"getElementById",{value:function(){var e=Qe.apply(this,y.call(arguments));return M(e)?null:L(Xt(e))||dt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"querySelector",{value:function(){var e=bt(Je.apply(this,y.call(arguments))),t=g.call(e,(function(e){return L(Xt(e))||dt(e)}));return L(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"querySelectorAll",{value:function(){var e=bt(Je.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||dt(e)}));return mn(t)},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"getElementsByClassName",{value:function(){var e=bt(Ze.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||dt(e)}));return bn(t)},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"getElementsByTagName",{value:function(){var e=bt(et.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||dt(e)}));return bn(t)},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=bt(tt.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||dt(e)}));return bn(t)},writable:!0,enumerable:!0,configurable:!0}),i(u(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=bt(nt.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||dt(e)}));return mn(t)},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:ar,configurable:!0,writable:!0});var sr=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var fr=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function hr(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!sr)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",(function(t){return e=t})),t.click(),!sr.get.call(e)})()&&(HTMLElement.prototype.click=function(){wt.call(this,"click",hr);try{fr.value.call(this)}finally{Nt.call(this,"click",hr)}}),!0!==new Event("test",{composed:!0}).composed&&function(){var e=l(o(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}),t=Event;function n(e,n){var r=new t(e,n),l=!(!n||!n.composed);return Object.defineProperties(r,{composed:{get:function(){return l},configurable:!0,enumerable:!0}}),r}n.prototype=t.prototype,n.AT_TARGET=t.AT_TARGET,n.BUBBLING_PHASE=t.BUBBLING_PHASE,n.CAPTURING_PHASE=t.CAPTURING_PHASE,n.NONE=t.NONE,window.Event=n,Object.defineProperties(Event.prototype,{composed:{get:function(){var t=this.type;return 1===e[t]},configurable:!0,enumerable:!0}})}();var pr,gr,mr=CustomEvent;function vr(e,t){var n=new mr(e,t),r=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:function(){return r},configurable:!0,enumerable:!0}}),n}if(vr.prototype=mr.prototype,window.CustomEvent=vr,"undefined"!=typeof ClipboardEvent){var dr=l(o(null),{copy:1,cut:1,paste:1});a(ClipboardEvent.prototype,{composed:{get:function(){var e=this.type;return 1===dr[e]},configurable:!0,enumerable:!0}})}"undefined"!=typeof HTMLIFrameElement&&(pr=u(HTMLIFrameElement.prototype,"contentWindow"),gr=pr.get,pr.get=function(){var e,t=gr.call(this);return M(t)||L(Xt(this))?t:(e=t,{addEventListener:function(){return e.addEventListener.apply(e,arguments)},blur:function(){return e.blur.apply(e,arguments)},close:function(){return e.close.apply(e,arguments)},focus:function(){return e.focus.apply(e,arguments)},postMessage:function(){return e.postMessage.apply(e,arguments)},removeEventListener:function(){return e.removeEventListener.apply(e,arguments)},get closed(){return e.closed},get frames(){return e.frames},get length(){return e.length},get location(){return e.location},set location(t){e.location=t},get opener(){return e.opener},get parent(){return e.parent},get self(){return e.self},get top(){return e.top},get window(){return e.window}})},i(HTMLIFrameElement.prototype,"contentWindow",pr));var br,Er=MutationObserver,yr=Er.prototype,wr=yr.disconnect,Tr=yr.observe,Nr=yr.takeRecords,Lr="$$lwcObserverCallbackWrapper$$",Mr=new WeakMap;function Cr(e){return e.$$lwcNodeObservers$$}function Sr(e){var t=e.addedNodes,n=e.removedNodes,r=e.target,l=e.type,i=o(MutationRecord.prototype);return a(i,{addedNodes:{get:function(){return t},enumerable:!0,configurable:!0},removedNodes:{get:function(){return n},enumerable:!0,configurable:!0},type:{get:function(){return l},enumerable:!0,configurable:!0},target:{get:function(){return r.shadowRoot},enumerable:!0,configurable:!0}}),i}function Or(e,t){for(var n=t;!M(n);){var r=Cr(n);if(!L(r)&&(r[0]===e||-1!==m.call(r,e)))return!0;n=n.parentNode}return!1}function Ar(e,t){return b.call(e,(function(e,n){var r=n.target,l=n.addedNodes,o=n.removedNodes;if("childList"!==n.type||L(Yt(r)))Or(t,r)&&d.call(e,n);else if(l.length>0){var a=l[0];if(Or(t,a)){var i=Cr(r);!i||i[0]!==t&&-1===m.call(i,t)?d.call(e,Sr(n)):d.call(e,n)}}else{var u=r.shadowRoot,c=o[0];if(Vt(r)===Vt(c)&&Or(t,r))d.call(e,n);else if(u){var s=Cr(u);!s||s[0]!==t&&-1===m.call(s,t)||d.call(e,Sr(n))}}return e}),[])}function Hr(e){var t=function(e){var t=e[Lr];return L(t)&&(t=e[Lr]=function(t,n){var r=Ar(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new Er(t)}function _r(e,t,n){if(arguments.length>1){var r=y.call(arguments);return r[1]=St(r[1]),lt.apply(this,r)}return lt.apply(this,arguments)}function Rr(e,t,n){if(arguments.length>1){var r=y.call(arguments);r[1]=St(r[1]),ot.apply(this,r)}ot.apply(this,arguments)}function Pr(){var e=je.call(this);if(!(e instanceof $))return e;var t=mt(e),n=ir(e,this.composed),r=Ue.call(this);if(!(r instanceof $))return M(r)&&L(Xt(e))?e:ur(t,n);if(r===t||r===t.body)return L(Xt(e))?e:ur(t,n);var l=r,o=n;Zn(r)&&(1===Ot.get(this)&&(l=Qn(r)));return Zn(e)&&or.has(this)&&(o=ir(Qn(e),this.composed)),ur(l,o)}function Dr(){var e=je.call(this);if(!(e instanceof $))return[];var t,n=Boolean(e.shadowRoot),r=(t=e,Gn.has(t));if(n&&!r)return Ge.call(this);if(M(Ue.call(this)))return[];var l=e;return Zn(e)&&or.has(this)&&(l=Qn(e)),ir(l,this.composed)}function $r(e){var t=u(e.prototype,"relatedTarget").get;i(e.prototype,"relatedTarget",{get:function(){var e=t.call(this);if(M(e))return null;if(!(e instanceof $&&zt(e)))return e;var n=Ue.call(this);return M(n)&&(n=mt(e)),ur(n,ir(e,!0))},enumerable:!0,configurable:!0})}Hr.prototype=Er.prototype,Hr.prototype.disconnect=function(){var e=this;wr.call(this);var t=Mr.get(this);L(t)||(T.call(t,(function(t){var n=t.$$lwcNodeObservers$$;if(!L(n)){var r=m.call(n,e);-1!==r&&w.call(n,r,1)}})),t.length=0)},Hr.prototype.observe=function(e,t){var n,r=Cr(e);if(L(r)&&(n=r=[],e.$$lwcNodeObservers$$=n),-1===m.call(r,this)&&d.call(r,this),er(e)&&(e=e.host),Mr.has(this)){var l=Mr.get(this);-1===m.call(l,e)&&d.call(l,e)}else Mr.set(this,[e]);return Tr.call(this,e,t)},Hr.prototype.takeRecords=function(){return Ar(Nr.call(this),this)},i(window,"MutationObserver",{value:Hr,configurable:!0,writable:!0}),a(yt,{addEventListener:{value:function(e,t,n){if(Zn(this))return jt.apply(this,arguments);if(arguments.length<2){var r=y.call(arguments);return r.length>1&&(r[1]=St(r[1])),wt.apply(this,r)}var l=St(t);return wt.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(Zn(this))return Ut.apply(this,arguments);var r=y.call(arguments);arguments.length>1&&(r[1]=St(r[1])),Nt.apply(this,r),Nt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&a(Window.prototype,{addEventListener:{value:_r,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Rr,enumerable:!0,writable:!0,configurable:!0}}),a(Event.prototype,{target:{get:Pr,enumerable:!0,configurable:!0},currentTarget:{get:function(){var e=Ue.call(this);return M(e)?null:1===Ot.get(this)?Qn(e):e},enumerable:!0,configurable:!0},composedPath:{value:Dr,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Pr,enumerable:!0,configurable:!0},path:{get:Dr,enumerable:!0,configurable:!0}}),$r(FocusEvent),$r(MouseEvent);var Br={childList:!0},Ir=new WeakMap;function kr(e){var t=bt(ae.call(e));return b.call(t,(function(e,t){return t instanceof Element&&nn(t)?d.apply(e,kr(t)):d.call(e,t),e}),[])}function xr(){var e=ne.call(this);return!M(e)&&nn(e)&&Xt(e)!==Xt(this)?e:null}function Fr(e,t){var n,r=Xt(e);if(L(r))n=e instanceof HTMLBodyElement?p.call(t,(function(t){return L(Xt(t))||dt(e)})):y.call(t);else if(Zn(e)){var l=en(e);n=M(l)?[]:Yt(e)?on(e,t):un(l,t)}else n=p.call(t,(function(e){return Vt(e)===r}));return n}function Wr(){for(var e=Un(this),t="",n=0,r=e.length;n<r;n+=1)t+=On(e[n]);return t}function jr(){return On(this)}function Ur(){var e=en(this),t=M(e)?[]:un(e,sn(this));return bn(p.call(t,(function(e){return e instanceof Element})))}function Kr(){return this.children.length}function Gr(){return this.children[0]||null}function qr(){var e=this.children;return e.item(e.length-1)||null}function Xr(e,t,n){var r;if(Zn(e)){var l=en(e);r=M(l)?[]:Yt(e)?on(e,t):un(l,t)}else if(zt(e)){var o=Xt(e);if(L(o))if(1===n){var a=Vt(e);r=p.call(t,(function(e){return Vt(e)===a}))}else r=y.call(t);else r=p.call(t,(function(e){return Vt(e)===o}))}else r=e instanceof HTMLBodyElement||1===n?p.call(t,(function(t){return L(Xt(t))||dt(e)})):y.call(t);return r}a(HTMLSlotElement.prototype,{addEventListener:{value:function(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||Ir.get(this)||(Ir.set(this,!0),br||(br=new ut((function(e){var t=[];T.call(e,(function(e){var n=e.target;-1===m.call(t,n)&&(d.call(t,n),Tt.call(n,new CustomEvent("slotchange")))}))}))),ct.call(br,this,Br))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value:function(e){if(zt(this)){var t=!L(e)&&C(e.flatten),n=t?kr(this):fn(this);return p.call(n,(function(e){return e instanceof Element}))}return _.apply(this,y.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value:function(e){if(zt(this)){var t=!L(e)&&C(e.flatten);return t?kr(this):fn(this)}return H.apply(this,y.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get:function(){var e=ce.call(this,"name");return M(e)?"":e},set:function(e){de.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get:function(){if(zt(this)){var e=en(this);return mn(M(e)?[]:un(e,sn(this)))}return ae.call(this)},enumerable:!0,configurable:!0}}),a(Text.prototype,{assignedSlot:{get:xr,enumerable:!0,configurable:!0}}),a(Element.prototype,{innerHTML:{get:function(){return Et.ENABLE_ELEMENT_PATCH?dt(this)?Ae.call(this):Wr.call(this):Jt(this)?Wr.call(this):Ae.call(this)},set:function(e){He.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get:function(){return Et.ENABLE_ELEMENT_PATCH?dt(this)?Re.call(this):jr.call(this):Jt(this)?jr.call(this):Re.call(this)},set:function(e){Pe.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?nr(this,e):be.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(Zn(this)){var e=Qn(this);if("open"===e.mode)return e}return We.call(this)},enumerable:!0,configurable:!0},children:{get:function(){return An(this)?Ur.call(this):xe.call(this)},enumerable:!0,configurable:!0},childElementCount:{get:function(){return An(this)?Kr.call(this):Ee.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get:function(){return An(this)?Gr.call(this):ye.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get:function(){return An(this)?qr.call(this):we.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:xr,enumerable:!0,configurable:!0}}),s.call(HTMLElement.prototype,"innerHTML")&&i(HTMLElement.prototype,"innerHTML",u(Element.prototype,"innerHTML")),s.call(HTMLElement.prototype,"outerHTML")&&i(HTMLElement.prototype,"outerHTML",u(Element.prototype,"outerHTML")),s.call(HTMLElement.prototype,"children")&&i(HTMLElement.prototype,"children",u(Element.prototype,"children")),a(Element.prototype,{querySelector:{value:function(){var e=this,t=bt(me.apply(this,y.call(arguments)));if(Zn(this)){var n=en(this);return M(n)?null:Yt(this)?an(this,t):cn(n,t)}if(zt(this)){var r=Xt(this);if(L(r)){if(!Et.ENABLE_NODE_LIST_PATCH)return 0===t.length?null:t[0];var l=Vt(this),o=g.call(t,(function(e){return Vt(e)===l}));return L(o)?null:o}var a=g.call(t,(function(e){return Vt(e)===r}));return L(a)?null:a}if(!(Et.ENABLE_NODE_LIST_PATCH||this instanceof HTMLBodyElement)){var i=t[0];return L(i)?null:i}var u=g.call(t,(function(t){return L(Xt(t))||dt(e)}));return L(u)?null:u},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value:function(){var e=bt(me.apply(this,y.call(arguments)));if(!Et.ENABLE_NODE_LIST_PATCH){var t=Xr(this,e,0);return mn(t)}return mn(Xr(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),a(Element.prototype,{getElementsByClassName:{value:function(){var e=bt(Fe.apply(this,y.call(arguments)));if(!Et.ENABLE_HTML_COLLECTIONS_PATCH)return bn(Fr(this,e));var t=Xr(this,e,1);return bn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value:function(){var e=bt(fe.apply(this,y.call(arguments)));if(!Et.ENABLE_HTML_COLLECTIONS_PATCH)return bn(Fr(this,e));var t=Xr(this,e,1);return bn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value:function(){var e=bt(he.apply(this,y.call(arguments)));if(!Et.ENABLE_HTML_COLLECTIONS_PATCH)return bn(Fr(this,e));var t=Xr(this,e,1);return bn(t)},writable:!0,enumerable:!0,configurable:!0}}),s.call(HTMLElement.prototype,"getElementsByClassName")&&i(HTMLElement.prototype,"getElementsByClassName",u(Element.prototype,"getElementsByClassName"));var Vr="\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",Yr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function zr(e){return e.filter((function(e){return pe.call(e,"tabindex")?"0"===ce.call(e,"tabindex"):!Yr.has(De.call(e))||!pe.call(e,"disabled")}))}var Jr=new WeakMap;function Qr(e){return(!Zn(e)||!zn(e))&&(ke.call(e,Vr)&&function(e){var t=se.call(e),n=t.width,r=t.height,l=n>0||r>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function Zr(){var e=this.getRootNode();if(e!==this){var t=e;if(t.activeElement!==this)for(var n=bt(me.call(this,Vr)),r=!1;!r&&0!==n.length;){var l=n.shift();l.focus.apply(l,arguments);var o=l.getRootNode();r=o.activeElement===l}}else{var a=ge.call(this,Vr);M(a)||a.focus.apply(a,arguments)}}function el(e){var t=mt(e),n=zr(bt(Je.call(t,Vr))),r=zr(bt(me.call(e,Vr))),l=r[0],o=r[r.length-1],a=m.call(n,e),i=a>-1?a:m.call(n,l),u=0===r.length?i+1:m.call(n,o)+1;return{prev:y.call(n,0,i),inner:r,next:y.call(n,u)}}function tl(e,t){var n=X.call(e,t);return n&I?0:n&k?1:n&x?2:-1}function nl(e){e.preventDefault(),e.stopPropagation()}function rl(e,t){lt.call(e,"focusin",nl,!0),lt.call(e,"focusout",nl,!0),t(),ot.call(e,"focusin",nl,!0),ot.call(e,"focusout",nl,!0)}function ll(e,t,n){var r=vt(n),l=function(e,t){var n=e.length;if(n>0)for(var r=0;r<n;r+=1){var l=e[r];if(fl(t.getRootNode(),l))return l}return null}(e,n);M(l)?rl(r,(function(){t.blur()})):rl(r,(function(){l.focus()}))}var ol=!1;function al(){ol=!0}function il(){ol=!1}function ul(){return!ol}function cl(e){if(!ol){var t=Ue.call(e),n=je.call(e);if(t===n){var r=Ke.call(e);if(!M(r)){var l=el(t);if(1===tl(t,r)){var o=fl.bind(null,t.getRootNode()),a=g.call(l.inner,o);if(L(a))ll(l.next,n,r);else rl(vt(a),(function(){a.focus()}))}else t===n&&ll(E.call(l.prev),n,r)}}}}function sl(e){if(!ol){var t=Ke.call(e);if(!M(t)){var n=Ue.call(e),r=el(n);if(-1===m.call(r.inner,t)){var l=je.call(e),o=tl(n,t);1===o&&ll(r.next,l,t),2===o&&ll(E.call(r.prev),l,t)}}}}function fl(e,t){if(!Qr(t))return!1;for(var n=mt(t),r=t.getRootNode();r!==n&&r!==e;){var l=r.host;if("-1"===ce.call(l,"tabindex"))return!1;r=l&&l.getRootNode()}return!0}function hl(e){Nt.call(e,"focusin",cl,!0)}function pl(e){var t=mt(e);Jr.get(t)||(Jr.set(t,!0),wt.call(t,"mousedown",al,!0),wt.call(t,"mouseup",(function(){setTimeout(il)}),!0),wt.call(t,"dragstart",il,!0))}function gl(e){Nt.call(e,"focusin",sl,!0)}function ml(e){var t=vt(e);return at.call(t,e)}function vl(e){var t=vt(e);return it.call(t)}function dl(e){return"visible"===e.visibility&&"none"!==e.display}function bl(e){var t=[];if(function(e){return e.nodeType===F}(e)){var n=e.tagName,r=ml(e);if("OPTION"===n)return[1,Ne.call(e),1];if("TEXTAREA"===n)return[];for(var l=e.childNodes,o=0,a=l.length;o<a;o++)d.apply(t,bl(l[o]));if(!dl(r))return"SELECT"===n||"DATALIST"===n?[]:t;"BR"===n&&t.push("\n");var i=r.display;"table-cell"===i&&t.push("\t"),"table-row"===i&&t.push("\n"),"P"===n&&(t.unshift(2),t.push(2)),"block"!==i&&"table-caption"!==i&&"flex"!==i&&"table"!==i||(t.unshift(1),t.push(1))}else(function(e){return e.nodeType===W})(e)&&t.push(function(e){var t=vl(e);if(null===t)return e.textContent||"";var n=document.createRange();n.selectNodeContents(e);var r=n.getBoundingClientRect();return r.height<=0||r.width<=0?"":(t.removeAllRanges(),t.addRange(n),t.toString()||e.textContent||"")}(e));return t}function El(e){if(!dl(ml(e)))return hn(e)||"";for(var t=function(e){var t=vt(e),n=vl(e);if(null===n)return null;for(var r=[],l=0;l<n.rangeCount;l++)r.push(n.getRangeAt(l));var o={element:e,onselect:t.onselect,onselectstart:t.onselectstart,onselectionchange:t.onselectionchange,ranges:r};return t.onselect=null,t.onselectstart=null,t.onselectionchange=null,o}(e),n=[],r=e.childNodes,l=0,o=r.length;l<o;l++)d.apply(n,bl(r[l]));!function(e){if(null!==e){var t=e.element,n=e.onselect,r=e.onselectstart,l=e.onselectionchange,o=e.ranges,a=vt(t),i=vl(t);i.removeAllRanges();for(var u=0;u<o.length;u++)i.addRange(o[u]);a.onselect=n,a.onselectstart=r,a.onselectionchange=l}}(t);for(var a="",i=0,u=0,c=n.length;u<c;u++){var s=n[u];if("string"==typeof s){if(i>0){for(var f=0;f<i;f++)a+="\n";i=0}s.length>0&&(a+=s)}else{if(0==a.length)continue;s>i&&(i=s)}}return a}var yl=HTMLElement.prototype,wl=yl.blur,Tl=yl.focus;function Nl(){return zn(this)&&S(pe.call(this,"tabindex"))?0:Be.call(this)}function Ll(e){var t=zn(this),n=Be.call(this),r=pe.call(this,"tabindex");Ie.call(this,e);var l,o=Be.call(this),a=pe.call(this,"tabindex"),i=n!==o;(r&&(i||S(a))&&(-1===n&&gl(this),0===n&&t&&hl(this)),S(a))||(r&&a&&S(i)||(-1===o&&(pl(l=this),hl(l),wt.call(l,"focusin",sl,!0)),0===o&&t&&function(e){pl(e),gl(e),wt.call(e,"focusin",cl,!0)}(this)))}function Ml(){if(zn(this)){var e=(n=mt(t=this),M(r=qe.call(n))||0!=(X.call(t,r)&I)?r:null);if(!M(e))return void e.blur()}var t,n,r;return wl.call(this)}function Cl(){var e=ul();e&&al(),Zn(this)&&zn(this)?Zr.call(this):(Tl.apply(this,arguments),e&&il())}a(HTMLElement.prototype,{tabIndex:{get:function(){return Zn(this)?Nl.call(this):Be.call(this)},set:function(e){return Zn(this)?Ll.call(this,e):Ie.call(this,e)},enumerable:!0,configurable:!0},blur:{value:function(){if(Zn(this))return Ml.call(this);wl.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value:function(){Cl.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Ne&&null!==Le&&i(HTMLElement.prototype,"innerText",{get:function(){return Et.ENABLE_INNER_OUTER_TEXT_PATCH?Et.ENABLE_ELEMENT_PATCH?dt(this)?Ne.call(this):El(this):zt(this)||Zn(this)?El(this):Ne.call(this):Ne.call(this)},set:function(e){Le.call(this,e)},enumerable:!0,configurable:!0}),null!==Ce&&null!==Se&&i(HTMLElement.prototype,"outerText",{get:function(){return Et.ENABLE_INNER_OUTER_TEXT_PATCH?Et.ENABLE_ELEMENT_PATCH?dt(this)?Ce.call(this):El(this):zt(this)||Zn(this)?El(this):Ce.call(this):Ce.call(this)},set:function(e){Se.call(this,e)},enumerable:!0,configurable:!0}),i(Element.prototype,D,{set:function(e){var t=this.$$ShadowTokenKey$$;L(t)||t===e||ve.call(this,t),L(e)||de.call(this,e,""),this.$$ShadowTokenKey$$=e},get:function(){return this.$$ShadowTokenKey$$},configurable:!0});var Sl,Ol=function(){},Al={childList:!0};function Hl(e,t,n){var r=Vn(e);if(r!==t&&(Yn(e,t),e instanceof Element)){if(function(e,t){e.$shadowToken$=t}(e,n),Zn(e))return;L(r)&&ct.call(Sl,e,Al);for(var l=ae.call(e),o=0,a=l.length;o<a;o+=1)Hl(l[o],t,n)}}function _l(e){if(L(Sl)&&(Sl=new ut((function(e){T.call(e,(function(e){for(var t=e.target,n=e.addedNodes,r=e.removedNodes,l=Vn(t),o=function(e){return e.$shadowToken$}(t),a=0,i=r.length;a<i;a+=1){var u=r[a];X.call(t,u)&$.DOCUMENT_POSITION_CONTAINED_BY||Hl(u,Ol,void 0)}for(var c=0,s=n.length;c<s;c+=1){var f=n[c];X.call(t,f)&$.DOCUMENT_POSITION_CONTAINED_BY&&Hl(f,l,o)}}))}))),L(Vn(e)))throw new Error("Invalid Element");ct.call(Sl,e,Al)}i(Element.prototype,"$domManual$",{set:function(e){this.$$DomManualKey$$=e,C(e)&&_l(this)},get:function(){return this.$$DomManualKey$$},configurable:!0})}();
|
|
10
|
+
*/function ur(e,t){if(M(e))return null;for(var n,r,l,o,a=ir(e,!0),i=t,u=0;u<i.length;u++)if((l=(n=i[u])instanceof Window?n:n.getRootNode())!==r&&(o=a.indexOf(l),r=l),!Zn(l)||!L(o)&&o>-1)return n;return null}function cr(e,t,n,r){var l=Xe.call(t,n,r);return M(l)?l:ur(e,ir(l,!0))}l(nr,or,{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return bn(p.call(rn(this),(function(e){return e instanceof Element})))}},firstElementChild:{enumerable:!0,configurable:!0,get:function(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get:function(){var e=this.children;return e.item(e.length-1)||null}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return t=e,un(n=zn(this),dt(me.call(n,t)));var t,n}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return gn((t=e,an(n=zn(this),dt(me.call(n,t)))));var t,n}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=jn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Sn(e[n]);return t},set:function(e){var t=zn(this);He.call(t,e)}}},rr),ar.prototype=o(DocumentFragment.prototype,nr),i(ar,Symbol.hasInstance,{value:function(e){return A(e)&&!M(e)&&(ht(e)||c(e)===ar.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return cr(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Un(this,this,e,t)},i(Document.prototype,"activeElement",{get:function(){var e=qe.call(this);if(M(e))return e;for(;!L(Xt(e));)if(M(e=le.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),i(Document.prototype,"getElementById",{value:function(){var e=Qe.apply(this,y.call(arguments));return M(e)?null:L(Xt(e))||bt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"querySelector",{value:function(){var e=dt(Je.apply(this,y.call(arguments))),t=g.call(e,(function(e){return L(Xt(e))||bt(e)}));return L(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"querySelectorAll",{value:function(){var e=dt(Je.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||bt(e)}));return gn(t)},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"getElementsByClassName",{value:function(){var e=dt(Ze.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||bt(e)}));return bn(t)},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"getElementsByTagName",{value:function(){var e=dt(et.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||bt(e)}));return bn(t)},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=dt(tt.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||bt(e)}));return bn(t)},writable:!0,enumerable:!0,configurable:!0}),i(u(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=dt(nt.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||bt(e)}));return gn(t)},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:ar,configurable:!0,writable:!0});var sr=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var fr=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function hr(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!sr)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",(function(t){return e=t})),t.click(),!sr.get.call(e)})()&&(HTMLElement.prototype.click=function(){wt.call(this,"click",hr);try{fr.value.call(this)}finally{Nt.call(this,"click",hr)}}),!0!==new Event("test",{composed:!0}).composed&&function(){var e=l(o(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}),t=Event;function n(e,n){var r=new t(e,n),l=!(!n||!n.composed);return Object.defineProperties(r,{composed:{get:function(){return l},configurable:!0,enumerable:!0}}),r}n.prototype=t.prototype,n.AT_TARGET=t.AT_TARGET,n.BUBBLING_PHASE=t.BUBBLING_PHASE,n.CAPTURING_PHASE=t.CAPTURING_PHASE,n.NONE=t.NONE,window.Event=n,Object.defineProperties(Event.prototype,{composed:{get:function(){var t=this.type;return 1===e[t]},configurable:!0,enumerable:!0}})}();var pr,gr,mr=CustomEvent;function vr(e,t){var n=new mr(e,t),r=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:function(){return r},configurable:!0,enumerable:!0}}),n}if(vr.prototype=mr.prototype,window.CustomEvent=vr,"undefined"!=typeof ClipboardEvent){var br=l(o(null),{copy:1,cut:1,paste:1});a(ClipboardEvent.prototype,{composed:{get:function(){var e=this.type;return 1===br[e]},configurable:!0,enumerable:!0}})}"undefined"!=typeof HTMLIFrameElement&&(pr=u(HTMLIFrameElement.prototype,"contentWindow"),gr=pr.get,pr.get=function(){var e,t=gr.call(this);return M(t)||L(Xt(this))?t:(e=t,{addEventListener:function(){return e.addEventListener.apply(e,arguments)},blur:function(){return e.blur.apply(e,arguments)},close:function(){return e.close.apply(e,arguments)},focus:function(){return e.focus.apply(e,arguments)},postMessage:function(){return e.postMessage.apply(e,arguments)},removeEventListener:function(){return e.removeEventListener.apply(e,arguments)},get closed(){return e.closed},get frames(){return e.frames},get length(){return e.length},get location(){return e.location},set location(t){e.location=t},get opener(){return e.opener},get parent(){return e.parent},get self(){return e.self},get top(){return e.top},get window(){return e.window}})},i(HTMLIFrameElement.prototype,"contentWindow",pr));var dr,Er=MutationObserver,yr=Er.prototype,wr=yr.disconnect,Tr=yr.observe,Nr=yr.takeRecords,Lr="$$lwcObserverCallbackWrapper$$",Mr=new WeakMap;function Cr(e){return e.$$lwcNodeObservers$$}function Sr(e){var t=e.addedNodes,n=e.removedNodes,r=e.target,l=e.type,i=o(MutationRecord.prototype);return a(i,{addedNodes:{get:function(){return t},enumerable:!0,configurable:!0},removedNodes:{get:function(){return n},enumerable:!0,configurable:!0},type:{get:function(){return l},enumerable:!0,configurable:!0},target:{get:function(){return r.shadowRoot},enumerable:!0,configurable:!0}}),i}function Or(e,t){for(var n=t;!M(n);){var r=Cr(n);if(!L(r)&&(r[0]===e||-1!==m.call(r,e)))return!0;n=n.parentNode}return!1}function Ar(e,t){return d.call(e,(function(e,n){var r=n.target,l=n.addedNodes,o=n.removedNodes;if("childList"!==n.type||L(Yt(r)))Or(t,r)&&b.call(e,n);else if(l.length>0){var a=l[0];if(Or(t,a)){var i=Cr(r);!i||i[0]!==t&&-1===m.call(i,t)?b.call(e,Sr(n)):b.call(e,n)}}else{var u=r.shadowRoot,c=o[0];if(Vt(r)===Vt(c)&&Or(t,r))b.call(e,n);else if(u){var s=Cr(u);!s||s[0]!==t&&-1===m.call(s,t)||b.call(e,Sr(n))}}return e}),[])}function Hr(e){var t=function(e){var t=e[Lr];return L(t)&&(t=e[Lr]=function(t,n){var r=Ar(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new Er(t)}function _r(e,t,n){if(arguments.length>1){var r=y.call(arguments);return r[1]=St(r[1]),lt.apply(this,r)}return lt.apply(this,arguments)}function Rr(e,t,n){if(arguments.length>1){var r=y.call(arguments);r[1]=St(r[1]),ot.apply(this,r)}ot.apply(this,arguments)}function Pr(){var e=je.call(this);if(!(e instanceof $))return e;var t=mt(e),n=ir(e,this.composed),r=Ue.call(this);if(!(r instanceof $))return M(r)&&L(Xt(e))?e:ur(t,n);if(r===t||r===t.body)return L(Xt(e))?e:ur(t,n);var l=r,o=n;Qn(r)&&(1===Ot.get(this)&&(l=Jn(r)));return Qn(e)&&lr.has(this)&&(o=ir(Jn(e),this.composed)),ur(l,o)}function Dr(){var e=je.call(this);if(!(e instanceof $))return[];var t,n=Boolean(e.shadowRoot),r=(t=e,Kn.has(t));if(n&&!r)return Ge.call(this);if(M(Ue.call(this)))return[];var l=e;return Qn(e)&&lr.has(this)&&(l=Jn(e)),ir(l,this.composed)}function $r(e){var t=u(e.prototype,"relatedTarget").get;i(e.prototype,"relatedTarget",{get:function(){var e=t.call(this);if(M(e))return null;if(!(e instanceof $&&zt(e)))return e;var n=Ue.call(this);return M(n)&&(n=mt(e)),ur(n,ir(e,!0))},enumerable:!0,configurable:!0})}Hr.prototype=Er.prototype,Hr.prototype.disconnect=function(){var e=this;wr.call(this);var t=Mr.get(this);L(t)||(T.call(t,(function(t){var n=t.$$lwcNodeObservers$$;if(!L(n)){var r=m.call(n,e);-1!==r&&w.call(n,r,1)}})),t.length=0)},Hr.prototype.observe=function(e,t){var n,r=Cr(e);if(L(r)&&(n=r=[],e.$$lwcNodeObservers$$=n),-1===m.call(r,this)&&b.call(r,this),Zn(e)&&(e=e.host),Mr.has(this)){var l=Mr.get(this);-1===m.call(l,e)&&b.call(l,e)}else Mr.set(this,[e]);return Tr.call(this,e,t)},Hr.prototype.takeRecords=function(){return Ar(Nr.call(this),this)},i(window,"MutationObserver",{value:Hr,configurable:!0,writable:!0}),a(yt,{addEventListener:{value:function(e,t,n){if(Qn(this))return jt.apply(this,arguments);if(arguments.length<2){var r=y.call(arguments);return r.length>1&&(r[1]=St(r[1])),wt.apply(this,r)}var l=St(t);return wt.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(Qn(this))return Ut.apply(this,arguments);var r=y.call(arguments);arguments.length>1&&(r[1]=St(r[1])),Nt.apply(this,r),Nt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&a(Window.prototype,{addEventListener:{value:_r,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Rr,enumerable:!0,writable:!0,configurable:!0}}),a(Event.prototype,{target:{get:Pr,enumerable:!0,configurable:!0},currentTarget:{get:function(){var e=Ue.call(this);return M(e)?null:1===Ot.get(this)?Jn(e):e},enumerable:!0,configurable:!0},composedPath:{value:Dr,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Pr,enumerable:!0,configurable:!0},path:{get:Dr,enumerable:!0,configurable:!0}}),$r(FocusEvent),$r(MouseEvent);var Br={childList:!0},Ir=new WeakMap;function kr(e){var t=dt(ae.call(e));return d.call(t,(function(e,t){return t instanceof Element&&tn(t)?b.apply(e,kr(t)):b.call(e,t),e}),[])}function xr(){var e=ne.call(this);return!M(e)&&tn(e)&&Xt(e)!==Xt(this)?e:null}function Fr(e,t){var n,r=Xt(e);if(L(r))n=e instanceof HTMLBodyElement?p.call(t,(function(t){return L(Xt(t))||bt(e)})):y.call(t);else if(Qn(e)){var l=Zt(e);n=M(l)?[]:Yt(e)?ln(e,t):an(l,t)}else n=p.call(t,(function(e){return Vt(e)===r}));return n}function Wr(){for(var e=jn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Sn(e[n]);return t}function jr(){return Sn(this)}function Ur(){var e=Zt(this),t=M(e)?[]:an(e,cn(this));return bn(p.call(t,(function(e){return e instanceof Element})))}function Kr(){return this.children.length}function Gr(){return this.children[0]||null}function qr(){var e=this.children;return e.item(e.length-1)||null}function Xr(e,t,n){var r;if(Qn(e)){var l=Zt(e);r=M(l)?[]:Yt(e)?ln(e,t):an(l,t)}else if(zt(e)){var o=Xt(e);if(L(o))if(1===n){var a=Vt(e);r=p.call(t,(function(e){return Vt(e)===a}))}else r=y.call(t);else r=p.call(t,(function(e){return Vt(e)===o}))}else r=e instanceof HTMLBodyElement||1===n?p.call(t,(function(t){return L(Xt(t))||bt(e)})):y.call(t);return r}a(HTMLSlotElement.prototype,{addEventListener:{value:function(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||Ir.get(this)||(Ir.set(this,!0),dr||(dr=new ut((function(e){var t=[];T.call(e,(function(e){var n=e.target;-1===m.call(t,n)&&(b.call(t,n),Tt.call(n,new CustomEvent("slotchange")))}))}))),ct.call(dr,this,Br))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value:function(e){if(zt(this)){var t=!L(e)&&C(e.flatten),n=t?kr(this):sn(this);return p.call(n,(function(e){return e instanceof Element}))}return _.apply(this,y.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value:function(e){if(zt(this)){var t=!L(e)&&C(e.flatten);return t?kr(this):sn(this)}return H.apply(this,y.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get:function(){var e=ce.call(this,"name");return M(e)?"":e},set:function(e){be.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get:function(){if(zt(this)){var e=Zt(this);return gn(M(e)?[]:an(e,cn(this)))}return ae.call(this)},enumerable:!0,configurable:!0}}),a(Text.prototype,{assignedSlot:{get:xr,enumerable:!0,configurable:!0}}),a(Element.prototype,{innerHTML:{get:function(){return Et.ENABLE_ELEMENT_PATCH?bt(this)?Ae.call(this):Wr.call(this):zt(this)||Qn(this)?Wr.call(this):Ae.call(this)},set:function(e){He.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get:function(){return Et.ENABLE_ELEMENT_PATCH?bt(this)?Re.call(this):jr.call(this):zt(this)||Qn(this)?jr.call(this):Re.call(this)},set:function(e){Pe.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?tr(this,e):de.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(Qn(this)){var e=Jn(this);if("open"===e.mode)return e}return We.call(this)},enumerable:!0,configurable:!0},children:{get:function(){return On(this)?Ur.call(this):xe.call(this)},enumerable:!0,configurable:!0},childElementCount:{get:function(){return On(this)?Kr.call(this):Ee.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get:function(){return On(this)?Gr.call(this):ye.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get:function(){return On(this)?qr.call(this):we.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:xr,enumerable:!0,configurable:!0}}),s.call(HTMLElement.prototype,"innerHTML")&&i(HTMLElement.prototype,"innerHTML",u(Element.prototype,"innerHTML")),s.call(HTMLElement.prototype,"outerHTML")&&i(HTMLElement.prototype,"outerHTML",u(Element.prototype,"outerHTML")),s.call(HTMLElement.prototype,"children")&&i(HTMLElement.prototype,"children",u(Element.prototype,"children")),a(Element.prototype,{querySelector:{value:function(){var e=this,t=dt(me.apply(this,y.call(arguments)));if(Qn(this)){var n=Zt(this);return M(n)?null:Yt(this)?on(this,t):un(n,t)}if(zt(this)){var r=Xt(this);if(L(r)){if(!Et.ENABLE_NODE_LIST_PATCH)return 0===t.length?null:t[0];var l=Vt(this),o=g.call(t,(function(e){return Vt(e)===l}));return L(o)?null:o}var a=g.call(t,(function(e){return Vt(e)===r}));return L(a)?null:a}if(!(Et.ENABLE_NODE_LIST_PATCH||this instanceof HTMLBodyElement)){var i=t[0];return L(i)?null:i}var u=g.call(t,(function(t){return L(Xt(t))||bt(e)}));return L(u)?null:u},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value:function(){var e=dt(me.apply(this,y.call(arguments)));if(!Et.ENABLE_NODE_LIST_PATCH){var t=Xr(this,e,0);return gn(t)}return gn(Xr(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),a(Element.prototype,{getElementsByClassName:{value:function(){var e=dt(Fe.apply(this,y.call(arguments)));if(!Et.ENABLE_HTML_COLLECTIONS_PATCH)return bn(Fr(this,e));var t=Xr(this,e,1);return bn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value:function(){var e=dt(fe.apply(this,y.call(arguments)));if(!Et.ENABLE_HTML_COLLECTIONS_PATCH)return bn(Fr(this,e));var t=Xr(this,e,1);return bn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value:function(){var e=dt(he.apply(this,y.call(arguments)));if(!Et.ENABLE_HTML_COLLECTIONS_PATCH)return bn(Fr(this,e));var t=Xr(this,e,1);return bn(t)},writable:!0,enumerable:!0,configurable:!0}}),s.call(HTMLElement.prototype,"getElementsByClassName")&&i(HTMLElement.prototype,"getElementsByClassName",u(Element.prototype,"getElementsByClassName"));var Vr="\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",Yr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function zr(e){return e.filter((function(e){return pe.call(e,"tabindex")?"0"===ce.call(e,"tabindex"):!Yr.has(De.call(e))||!pe.call(e,"disabled")}))}var Jr=new WeakMap;function Qr(e){return(!Qn(e)||!Yn(e))&&(ke.call(e,Vr)&&function(e){var t=se.call(e),n=t.width,r=t.height,l=n>0||r>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function Zr(){var e=this.getRootNode();if(e!==this){var t=e;if(t.activeElement!==this)for(var n=dt(me.call(this,Vr)),r=!1;!r&&0!==n.length;){var l=n.shift();l.focus.apply(l,arguments);var o=l.getRootNode();r=o.activeElement===l}}else{var a=ge.call(this,Vr);M(a)||a.focus.apply(a,arguments)}}function el(e){var t=mt(e),n=zr(dt(Je.call(t,Vr))),r=zr(dt(me.call(e,Vr))),l=r[0],o=r[r.length-1],a=m.call(n,e),i=a>-1?a:m.call(n,l),u=0===r.length?i+1:m.call(n,o)+1;return{prev:y.call(n,0,i),inner:r,next:y.call(n,u)}}function tl(e,t){var n=X.call(e,t);return n&I?0:n&k?1:n&x?2:-1}function nl(e){e.preventDefault(),e.stopPropagation()}function rl(e,t){lt.call(e,"focusin",nl,!0),lt.call(e,"focusout",nl,!0),t(),ot.call(e,"focusin",nl,!0),ot.call(e,"focusout",nl,!0)}function ll(e,t,n){var r=vt(n),l=function(e,t){var n=e.length;if(n>0)for(var r=0;r<n;r+=1){var l=e[r];if(fl(t.getRootNode(),l))return l}return null}(e,n);M(l)?rl(r,(function(){t.blur()})):rl(r,(function(){l.focus()}))}var ol=!1;function al(){ol=!0}function il(){ol=!1}function ul(){return!ol}function cl(e){if(!ol){var t=Ue.call(e),n=je.call(e);if(t===n){var r=Ke.call(e);if(!M(r)){var l=el(t);if(1===tl(t,r)){var o=fl.bind(null,t.getRootNode()),a=g.call(l.inner,o);if(L(a))ll(l.next,n,r);else rl(vt(a),(function(){a.focus()}))}else t===n&&ll(E.call(l.prev),n,r)}}}}function sl(e){if(!ol){var t=Ke.call(e);if(!M(t)){var n=Ue.call(e),r=el(n);if(-1===m.call(r.inner,t)){var l=je.call(e),o=tl(n,t);1===o&&ll(r.next,l,t),2===o&&ll(E.call(r.prev),l,t)}}}}function fl(e,t){if(!Qr(t))return!1;for(var n=mt(t),r=t.getRootNode();r!==n&&r!==e;){var l=r.host;if("-1"===ce.call(l,"tabindex"))return!1;r=l&&l.getRootNode()}return!0}function hl(e){Nt.call(e,"focusin",cl,!0)}function pl(e){var t=mt(e);Jr.get(t)||(Jr.set(t,!0),wt.call(t,"mousedown",al,!0),wt.call(t,"mouseup",(function(){setTimeout(il)}),!0),wt.call(t,"dragstart",il,!0))}function gl(e){Nt.call(e,"focusin",sl,!0)}function ml(e){var t=vt(e);return at.call(t,e)}function vl(e){var t=vt(e);return it.call(t)}function bl(e){return"visible"===e.visibility&&"none"!==e.display}function dl(e){var t=[];if(function(e){return e.nodeType===F}(e)){var n=e.tagName,r=ml(e);if("OPTION"===n)return[1,Ne.call(e),1];if("TEXTAREA"===n)return[];for(var l=e.childNodes,o=0,a=l.length;o<a;o++)b.apply(t,dl(l[o]));if(!bl(r))return"SELECT"===n||"DATALIST"===n?[]:t;"BR"===n&&t.push("\n");var i=r.display;"table-cell"===i&&t.push("\t"),"table-row"===i&&t.push("\n"),"P"===n&&(t.unshift(2),t.push(2)),"block"!==i&&"table-caption"!==i&&"flex"!==i&&"table"!==i||(t.unshift(1),t.push(1))}else(function(e){return e.nodeType===W})(e)&&t.push(function(e){var t=vl(e);if(null===t)return e.textContent||"";var n=document.createRange();n.selectNodeContents(e);var r=n.getBoundingClientRect();return r.height<=0||r.width<=0?"":(t.removeAllRanges(),t.addRange(n),t.toString()||e.textContent||"")}(e));return t}function El(e){if(!bl(ml(e)))return fn(e)||"";for(var t=function(e){var t=vt(e),n=vl(e);if(null===n)return null;for(var r=[],l=0;l<n.rangeCount;l++)r.push(n.getRangeAt(l));var o={element:e,onselect:t.onselect,onselectstart:t.onselectstart,onselectionchange:t.onselectionchange,ranges:r};return t.onselect=null,t.onselectstart=null,t.onselectionchange=null,o}(e),n=[],r=e.childNodes,l=0,o=r.length;l<o;l++)b.apply(n,dl(r[l]));!function(e){if(null!==e){var t=e.element,n=e.onselect,r=e.onselectstart,l=e.onselectionchange,o=e.ranges,a=vt(t),i=vl(t);i.removeAllRanges();for(var u=0;u<o.length;u++)i.addRange(o[u]);a.onselect=n,a.onselectstart=r,a.onselectionchange=l}}(t);for(var a="",i=0,u=0,c=n.length;u<c;u++){var s=n[u];if("string"==typeof s){if(i>0){for(var f=0;f<i;f++)a+="\n";i=0}s.length>0&&(a+=s)}else{if(0==a.length)continue;s>i&&(i=s)}}return a}var yl=HTMLElement.prototype,wl=yl.blur,Tl=yl.focus;function Nl(){return Yn(this)&&S(pe.call(this,"tabindex"))?0:Be.call(this)}function Ll(e){var t=Yn(this),n=Be.call(this),r=pe.call(this,"tabindex");Ie.call(this,e);var l,o=Be.call(this),a=pe.call(this,"tabindex"),i=n!==o;(r&&(i||S(a))&&(-1===n&&gl(this),0===n&&t&&hl(this)),S(a))||(r&&a&&S(i)||(-1===o&&(pl(l=this),hl(l),wt.call(l,"focusin",sl,!0)),0===o&&t&&function(e){pl(e),gl(e),wt.call(e,"focusin",cl,!0)}(this)))}function Ml(){if(Yn(this)){var e=(n=mt(t=this),M(r=qe.call(n))||0!=(X.call(t,r)&I)?r:null);if(!M(e))return void e.blur()}var t,n,r;return wl.call(this)}function Cl(){var e=ul();e&&al(),Qn(this)&&Yn(this)?Zr.call(this):(Tl.apply(this,arguments),e&&il())}a(HTMLElement.prototype,{tabIndex:{get:function(){return Qn(this)?Nl.call(this):Be.call(this)},set:function(e){return Qn(this)?Ll.call(this,e):Ie.call(this,e)},enumerable:!0,configurable:!0},blur:{value:function(){if(Qn(this))return Ml.call(this);wl.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value:function(){Cl.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Ne&&null!==Le&&i(HTMLElement.prototype,"innerText",{get:function(){return Et.ENABLE_INNER_OUTER_TEXT_PATCH?Et.ENABLE_ELEMENT_PATCH?bt(this)?Ne.call(this):El(this):zt(this)||Qn(this)?El(this):Ne.call(this):Ne.call(this)},set:function(e){Le.call(this,e)},enumerable:!0,configurable:!0}),null!==Ce&&null!==Se&&i(HTMLElement.prototype,"outerText",{get:function(){return Et.ENABLE_INNER_OUTER_TEXT_PATCH?Et.ENABLE_ELEMENT_PATCH?bt(this)?Ce.call(this):El(this):zt(this)||Qn(this)?El(this):Ce.call(this):Ce.call(this)},set:function(e){Se.call(this,e)},enumerable:!0,configurable:!0}),i(Element.prototype,D,{set:function(e){var t=this.$$ShadowTokenKey$$;L(t)||t===e||ve.call(this,t),L(e)||be.call(this,e,""),this.$$ShadowTokenKey$$=e},get:function(){return this.$$ShadowTokenKey$$},configurable:!0});var Sl,Ol=function(){},Al={childList:!0};function Hl(e,t,n){var r=Xn(e);if(r!==t&&(Vn(e,t),e instanceof Element)){if(function(e,t){e.$shadowToken$=t}(e,n),Qn(e))return;L(r)&&ct.call(Sl,e,Al);for(var l=ae.call(e),o=0,a=l.length;o<a;o+=1)Hl(l[o],t,n)}}function _l(e){if(L(Sl)&&(Sl=new ut((function(e){T.call(e,(function(e){for(var t=e.target,n=e.addedNodes,r=e.removedNodes,l=Xn(t),o=function(e){return e.$shadowToken$}(t),a=0,i=r.length;a<i;a+=1){var u=r[a];X.call(t,u)&$.DOCUMENT_POSITION_CONTAINED_BY||Hl(u,Ol,void 0)}for(var c=0,s=n.length;c<s;c+=1){var f=n[c];X.call(t,f)&$.DOCUMENT_POSITION_CONTAINED_BY&&Hl(f,l,o)}}))}))),L(Xn(e)))throw new Error("Invalid Element");ct.call(Sl,e,Al)}i(Element.prototype,"$domManual$",{set:function(e){this.$$DomManualKey$$=e,C(e)&&_l(this)},get:function(){return this.$$DomManualKey$$},configurable:!0})}();
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
var KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
118
118
|
var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
119
119
|
var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
120
|
-
/** version: 2.5.
|
|
120
|
+
/** version: 2.5.6 */
|
|
121
121
|
|
|
122
122
|
/*
|
|
123
123
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
var runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
451
|
-
/** version: 2.5.
|
|
451
|
+
/** version: 2.5.6 */
|
|
452
452
|
|
|
453
453
|
/*
|
|
454
454
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -546,9 +546,9 @@
|
|
|
546
546
|
};
|
|
547
547
|
|
|
548
548
|
function getRootNodeHost(node, options) {
|
|
549
|
-
var rootNode = node.getRootNode(options);
|
|
549
|
+
var rootNode = node.getRootNode(options);
|
|
550
550
|
|
|
551
|
-
if (
|
|
551
|
+
if (isSyntheticShadowRoot(rootNode)) {
|
|
552
552
|
rootNode = getHost(rootNode);
|
|
553
553
|
}
|
|
554
554
|
|
|
@@ -922,15 +922,6 @@
|
|
|
922
922
|
function isNodeShadowed(node) {
|
|
923
923
|
return !isUndefined(getNodeOwnerKey(node));
|
|
924
924
|
}
|
|
925
|
-
/**
|
|
926
|
-
* Returns true if this node is a shadow host, is in a shadow host, or contains a shadow host
|
|
927
|
-
* anywhere in its tree.
|
|
928
|
-
*/
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
function isNodeOrDescendantsShadowed(node) {
|
|
932
|
-
return isNodeShadowed(node) || isSyntheticShadowHost(node) || containsHost(node);
|
|
933
|
-
}
|
|
934
925
|
/*
|
|
935
926
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
936
927
|
* All rights reserved.
|
|
@@ -1661,7 +1652,7 @@
|
|
|
1661
1652
|
function childNodesGetterPatched() {
|
|
1662
1653
|
if (isSyntheticShadowHost(this)) {
|
|
1663
1654
|
var owner = getNodeOwner(this);
|
|
1664
|
-
var childNodes = isNull(owner) ?
|
|
1655
|
+
var childNodes = isNull(owner) ? [] : getAllMatches(owner, getFilteredChildNodes(this));
|
|
1665
1656
|
|
|
1666
1657
|
return createStaticNodeList(childNodes);
|
|
1667
1658
|
} // nothing to do here since this does not have a synthetic shadow attached to it
|
|
@@ -1762,8 +1753,7 @@
|
|
|
1762
1753
|
textContent: {
|
|
1763
1754
|
get: function get() {
|
|
1764
1755
|
if (!runtimeFlags.ENABLE_NODE_PATCH) {
|
|
1765
|
-
|
|
1766
|
-
if (isNodeOrDescendantsShadowed(this)) {
|
|
1756
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1767
1757
|
return textContentGetterPatched.call(this);
|
|
1768
1758
|
}
|
|
1769
1759
|
|
|
@@ -2052,22 +2042,6 @@
|
|
|
2052
2042
|
function isSyntheticShadowRoot(node) {
|
|
2053
2043
|
var shadowRootRecord = InternalSlot.get(node);
|
|
2054
2044
|
return !isUndefined(shadowRootRecord) && node === shadowRootRecord.shadowRoot;
|
|
2055
|
-
} // Return true if any descendant is a host element
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
function containsHost(node) {
|
|
2059
|
-
// IE requires all arguments
|
|
2060
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker#browser_compatibility
|
|
2061
|
-
var walker = document.createTreeWalker(node, NodeFilter.SHOW_ELEMENT, null, false);
|
|
2062
|
-
var descendant;
|
|
2063
|
-
|
|
2064
|
-
while (!isNull(descendant = walker.nextNode())) {
|
|
2065
|
-
if (isSyntheticShadowHost(descendant)) {
|
|
2066
|
-
return true;
|
|
2067
|
-
}
|
|
2068
|
-
}
|
|
2069
|
-
|
|
2070
|
-
return false;
|
|
2071
2045
|
}
|
|
2072
2046
|
|
|
2073
2047
|
var uid = 0;
|
|
@@ -4084,10 +4058,7 @@
|
|
|
4084
4058
|
innerHTML: {
|
|
4085
4059
|
get: function get() {
|
|
4086
4060
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4087
|
-
|
|
4088
|
-
// or if any of its descendants are synthetic shadow hosts, then we can't
|
|
4089
|
-
// use the native innerHTML because it would expose private node internals.
|
|
4090
|
-
if (isNodeOrDescendantsShadowed(this)) {
|
|
4061
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4091
4062
|
return innerHTMLGetterPatched.call(this);
|
|
4092
4063
|
}
|
|
4093
4064
|
|
|
@@ -4110,8 +4081,7 @@
|
|
|
4110
4081
|
outerHTML: {
|
|
4111
4082
|
get: function get() {
|
|
4112
4083
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4113
|
-
|
|
4114
|
-
if (isNodeOrDescendantsShadowed(this)) {
|
|
4084
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4115
4085
|
return outerHTMLGetterPatched.call(this);
|
|
4116
4086
|
}
|
|
4117
4087
|
|
|
@@ -5465,6 +5435,6 @@
|
|
|
5465
5435
|
},
|
|
5466
5436
|
configurable: true
|
|
5467
5437
|
});
|
|
5468
|
-
/** version: 2.5.
|
|
5438
|
+
/** version: 2.5.6 */
|
|
5469
5439
|
|
|
5470
|
-
}()
|
|
5440
|
+
})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
3
3
|
factory();
|
|
4
|
-
}((function () { 'use strict';
|
|
4
|
+
})((function () { 'use strict';
|
|
5
5
|
|
|
6
6
|
/* proxy-compat-disable */
|
|
7
7
|
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
// we can't use typeof since it will fail when transpiling.
|
|
200
200
|
|
|
201
201
|
const hasNativeSymbolSupport = /*@__PURE__*/(() => Symbol('x').toString() === 'Symbol(x)')();
|
|
202
|
-
/** version: 2.5.
|
|
202
|
+
/** version: 2.5.6 */
|
|
203
203
|
|
|
204
204
|
/*
|
|
205
205
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
const runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
541
|
-
/** version: 2.5.
|
|
541
|
+
/** version: 2.5.6 */
|
|
542
542
|
|
|
543
543
|
/*
|
|
544
544
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -644,9 +644,9 @@
|
|
|
644
644
|
};
|
|
645
645
|
|
|
646
646
|
function getRootNodeHost(node, options) {
|
|
647
|
-
let rootNode = node.getRootNode(options);
|
|
647
|
+
let rootNode = node.getRootNode(options);
|
|
648
648
|
|
|
649
|
-
if (
|
|
649
|
+
if (isSyntheticShadowRoot(rootNode)) {
|
|
650
650
|
rootNode = getHost(rootNode);
|
|
651
651
|
}
|
|
652
652
|
|
|
@@ -1043,15 +1043,6 @@
|
|
|
1043
1043
|
function isNodeShadowed(node) {
|
|
1044
1044
|
return !isUndefined(getNodeOwnerKey(node));
|
|
1045
1045
|
}
|
|
1046
|
-
/**
|
|
1047
|
-
* Returns true if this node is a shadow host, is in a shadow host, or contains a shadow host
|
|
1048
|
-
* anywhere in its tree.
|
|
1049
|
-
*/
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
function isNodeOrDescendantsShadowed(node) {
|
|
1053
|
-
return isNodeShadowed(node) || isSyntheticShadowHost(node) || containsHost(node);
|
|
1054
|
-
}
|
|
1055
1046
|
/*
|
|
1056
1047
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
1057
1048
|
* All rights reserved.
|
|
@@ -1822,7 +1813,7 @@
|
|
|
1822
1813
|
function childNodesGetterPatched() {
|
|
1823
1814
|
if (isSyntheticShadowHost(this)) {
|
|
1824
1815
|
const owner = getNodeOwner(this);
|
|
1825
|
-
const childNodes = isNull(owner) ?
|
|
1816
|
+
const childNodes = isNull(owner) ? [] : getAllMatches(owner, getFilteredChildNodes(this));
|
|
1826
1817
|
|
|
1827
1818
|
if (process.env.NODE_ENV !== 'production' && isFalse(hasNativeSymbolSupport) && isExternalChildNodeAccessorFlagOn()) {
|
|
1828
1819
|
// inserting a comment node as the first childNode to trick the IE11
|
|
@@ -1933,8 +1924,7 @@
|
|
|
1933
1924
|
textContent: {
|
|
1934
1925
|
get() {
|
|
1935
1926
|
if (!runtimeFlags.ENABLE_NODE_PATCH) {
|
|
1936
|
-
|
|
1937
|
-
if (isNodeOrDescendantsShadowed(this)) {
|
|
1927
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1938
1928
|
return textContentGetterPatched.call(this);
|
|
1939
1929
|
}
|
|
1940
1930
|
|
|
@@ -2267,22 +2257,6 @@
|
|
|
2267
2257
|
function isSyntheticShadowRoot(node) {
|
|
2268
2258
|
const shadowRootRecord = InternalSlot.get(node);
|
|
2269
2259
|
return !isUndefined(shadowRootRecord) && node === shadowRootRecord.shadowRoot;
|
|
2270
|
-
} // Return true if any descendant is a host element
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
function containsHost(node) {
|
|
2274
|
-
// IE requires all arguments
|
|
2275
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker#browser_compatibility
|
|
2276
|
-
const walker = document.createTreeWalker(node, NodeFilter.SHOW_ELEMENT, null, false);
|
|
2277
|
-
let descendant;
|
|
2278
|
-
|
|
2279
|
-
while (!isNull(descendant = walker.nextNode())) {
|
|
2280
|
-
if (isSyntheticShadowHost(descendant)) {
|
|
2281
|
-
return true;
|
|
2282
|
-
}
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
return false;
|
|
2286
2260
|
}
|
|
2287
2261
|
|
|
2288
2262
|
let uid = 0;
|
|
@@ -4452,10 +4426,7 @@
|
|
|
4452
4426
|
innerHTML: {
|
|
4453
4427
|
get() {
|
|
4454
4428
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4455
|
-
|
|
4456
|
-
// or if any of its descendants are synthetic shadow hosts, then we can't
|
|
4457
|
-
// use the native innerHTML because it would expose private node internals.
|
|
4458
|
-
if (isNodeOrDescendantsShadowed(this)) {
|
|
4429
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4459
4430
|
return innerHTMLGetterPatched.call(this);
|
|
4460
4431
|
}
|
|
4461
4432
|
|
|
@@ -4480,8 +4451,7 @@
|
|
|
4480
4451
|
outerHTML: {
|
|
4481
4452
|
get() {
|
|
4482
4453
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4483
|
-
|
|
4484
|
-
if (isNodeOrDescendantsShadowed(this)) {
|
|
4454
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4485
4455
|
return outerHTMLGetterPatched.call(this);
|
|
4486
4456
|
}
|
|
4487
4457
|
|
|
@@ -5864,6 +5834,6 @@
|
|
|
5864
5834
|
|
|
5865
5835
|
configurable: true
|
|
5866
5836
|
});
|
|
5867
|
-
/** version: 2.5.
|
|
5837
|
+
/** version: 2.5.6 */
|
|
5868
5838
|
|
|
5869
|
-
}))
|
|
5839
|
+
}));
|