text: !function e(){!function(){function t(e){var t={exports:{}};return e(t,t.exports),t.exports}function r(){for(var e=0;e<Fa.length;e++)Fa[e][0](Fa[e][1]);Fa=[],Na=!1}function n(e,t){Fa.push([e,t]),Na||(Na=!0,Ha(r,0))}function o(e,t){function r(e){a(t,e)}function n(e){c(t,e)}try{e(r,n)}catch(o){n(o)}}function i(e){var t=e.owner,r=t._state,n=t._data,o=e[r],i=e.then;if("function"==typeof o){r=Da;try{n=o(n)}catch(l){c(i,l)}}s(i,n)||(r===Da&&a(i,n),r===Ma&&c(i,n))}function s(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==typeof t)){var n=t.then;if("function"==typeof n)return n.call(t,function(n){r||(r=!0,t===n?l(e,n):a(e,n))},function(t){r||(r=!0,c(e,t))}),!0}}catch(o){return r||c(e,o),!0}return!1}function a(e,t){e!==t&&s(e,t)||l(e,t)}function l(e,t){e._state===Oa&&(e._state=ka,e._data=t,n(u,e))}function c(e,t){e._state===Oa&&(e._state=ka,e._data=t,n(h,e))}function p(e){e._then=e._then.forEach(i)}function u(e){e._state=Da,p(e)}function h(e){e._state=Ma,p(e),!e._handled&&ja&&La.process.emit("unhandledRejection",e._data,e)}function d(e){La.process.emit("rejectionHandled",e)}function f(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof f==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],o(e,this)}function m(e,t){function r(){this.constructor=e}Ba(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function v(e,t,r){if(r&&e[t]){var n=e[t].toString();r.toString=function(){return n}}e[t]=r}function y(e,t,r){var n=r.getter,o=r.setter,i=r.value,s=Ya.objectGetOwnPropertyDescriptor(e,t);if((n||o)&&i)throw new Error("Cannot both specify accessors and a value or writable attribute.");return i?(Ya.objectHasOwnProperty.call(s,"writable")||(s.writable=!!s.set,delete s.get,delete s.set),s.value=i):(Ya.objectHasOwnProperty.call(s,"writable")&&(delete s.value,delete s.writable),null!==n&&v(s,"get",n),null!==o&&v(s,"set",o)),s}function E(e,t,r){var n=y(e,t,r);Ya.objectDefineProperty(e,t,n)}function S(e,t){var r=Ya.objectGetOwnPropertyDescriptor(e,"name");r&&(r.value=t,Ya.objectDefineProperty(e,"name",r))}function b(e,t){Ya.objectDefineProperty(e,Ga.nativeStrRepresentation,{value:Ya.Function.prototype.toString.call(t),configurable:!0})}function _(e,t){S(e,t.name),b(e,t)}function w(e){return!Ya.objectHasOwnProperty.call(e,Ga.nativeStrRepresentation)}function x(e,t,r){var n=e[t];w(n)&&(_(r,n),e[t]=r)}function C(e,t,r,n){void 0===n&&(n=!1);var o=e[t].prototype;x(e,t,r),r.prototype=o,n&&(o.constructor=r)}function T(e){return"string"==typeof e?e.replace(/(^\s+)|(\s+$)/g,""):e}function A(e){var t={};if(!e)return t;for(var r=0,n=ql;r<n.length;r++){var o=n[r],i=o.name,s=o.flag;e.indexOf(s)>-1&&(t[i]=!0)}return t}function P(e){if(!e)return null;for(var t="",r=0,n=ql;r<n.length;r++){var o=n[r],i=o.name,s=o.flag;e[i]&&(t+=s)}return t||null}function I(e){return"null"===e?"":e.replace(Ll,function(e,t){return t?"s*":""})}function N(e){return e?Ol.test(e)?e.replace(Ol,"https://"):"http://"+e:"null"}function L(e,t){if(e=e.replace(/^www./i,""),t=t.replace(/^www./i,""),e===t)return!0;var r=t.lastIndexOf(e);return"."===t[r-1]&&t.length===r+e.length}function O(e,t){if(!t)return!0;var r=V(t),n=!r.host;if(n)return!0;var o=V(e),i=H(e);if(r.host===o.host&&r.protocol===o.protocol)return!0;var s=i?i.destResourceInfo:o;if(!s)return!1;var a=!r.protocol||r.protocol===s.protocol,l=!s.port&&!r.port||s.port&&s.port.toString()===r.port;return a&&!!l&&s.hostname===r.hostname}function k(e){var t=V(e);return t.protocol=t.protocol&&t.protocol.toLowerCase(),t.host=t.host&&t.host.toLowerCase(),G(t)}function D(e){return null===e&&/iPad|iPhone/i.test(window.navigator.userAgent)?"":String(e).replace(/[\n\t]/g,"")}function M(e,t){var r=[t.sessionId];t.windowId&&r.push(t.windowId);var n=[r.join(jl)];t.resourceType&&n.push(t.resourceType),t.charset&&n.push(t.charset.toLowerCase()),"number"==typeof t.credentials&&n.push(t.credentials.toString()),t.reqOrigin&&n.push(encodeURIComponent(I(t.reqOrigin)));var o=n.join(Rl),i=t.proxyProtocol||"http:";return i+"//"+t.proxyHostname+":"+t.proxyPort+"/"+o+"/"+k(e)}function R(e){return"file:"===e.protocol?"null":G({protocol:e.protocol,host:e.host,hostname:e.hostname,port:String(e.port||"")})}function j(e){var t=e.split(Rl),r=t[0],n=t[1],o=t.slice(2);if(!r)return null;var i=r.split(jl),s=i[0],a=i[1],l={sessionId:s,resourceType:n||null};if(a&&(l.windowId=a),n&&o.length){var c=A(n);c.isScript||c.isServiceWorker?l.charset=o[0]:c.isWebSocket?l.reqOrigin=decodeURIComponent(N(o[0])):c.isIframe&&o[0]?l.reqOrigin=decodeURIComponent(N(o[0])):c.isAjax&&(l.credentials=parseInt(o[0]),2===o.length&&(l.reqOrigin=decodeURIComponent(N(o[1]))))}return l}function H(e){var t=V(e);if(!t.partAfterHost)return null;var r=t.partAfterHost.match(Pl);if(!r)return null;var n=j(r[1]);if(!n)return null;var o=r[2],i=o.replace(/#[\S\s]*$/,"");if(!K(i)&&!Dl.test(o))return null;var s;return K(i)?s=Wl:(o=J(o),s=V(o)),{destUrl:o,destResourceInfo:s,partAfterHost:t.partAfterHost,proxy:{hostname:t.hostname||"",port:t.port||""},sessionId:n.sessionId,resourceType:n.resourceType,charset:n.charset,reqOrigin:n.reqOrigin,windowId:n.windowId,credentials:n.credentials}}function F(e){return e.replace(Al,"")}function V(e){if(e=q(e),!e)return{};var t=e.match(Cl);return t?{protocol:t[1],auth:t[2],host:t[3],hostname:t[4],port:t[5],partAfterHost:t[6]}:{}}function U(e){e=T(e||"");var t=Ml.test(e);if(t)return!1;var r=e.match(Tl);return!r||Dl.test(r[0])}function B(e,t){if(t=t||M,U(e)){var r=t(e),n=H(r);return n?G(n.destResourceInfo):e}return e}function G(e){if(!("file:"===e.protocol||"about:"===e.protocol||e.host||e.hostname&&e.port))return e.partAfterHost||"";var t=e.protocol||"";return"about:"!==e.protocol&&(t+="//"),e.auth&&(t+=e.auth+"@"),e.host?t+=e.host:e.hostname&&(t+=e.hostname,e.port&&(t+=":"+e.port)),e.partAfterHost&&(t+=e.partAfterHost),t}function W(e,t){return void 0===t&&(t=""),e.match(Nl)||t.match(Nl)?e.replace(/^(file:)?\/+(\/\/\/.*$)/i,"$1$2").replace(/^(file:)?\/*([A-Za-z]):/i,"$1///$2:"):e.replace(/^(https?:)?\/+(\/\/.*$)/i,"$1$2")}function q(e){return W(D(e))}function z(e,t){if(!Y(t))return t;var r=Hl.test(e),n=Hl.test(t);return r&&!n?t+="/":e&&!r&&n&&(t=t.replace(Hl,"")),t}function K(e){return Ul.indexOf(e)!==-1}function X(e){var t=V(e);return"file:"!==t.protocol&&!t.host}function $(e){var t=parseInt(e,10);return t>0&&t<=65535}function Y(e){var t=V(e);return"file:"===t.protocol||"about:"===t.protocol||!!t.hostname&&(!t.port||$(t.port))}function Q(e){var t=V(e);return!t.partAfterHost&&t.protocol&&Il.test(t.protocol)?e+"/":e}function J(e){var t=V(e),r="https:"===t.protocol&&t.port===Gl||"http:"===t.protocol&&t.port===Bl;return r?(t.host=t.hostname,t.port="",G(t)):e}function Z(e){return e=J(e),e=Q(e)}function ee(e,t,r,n){var o=new RegExp("("+t.protocol+"//"+t.hostname+":(?:"+t.port+"|"+t.crossDomainPort+")/)[^/"+Rl+"]+","g"),i="$1"+r+(n?jl+n:"");return e.replace(o,i)}function te(e,t){var r=e.match(kl);return r&&r[3]?r[1]+t(r[3])+(r[4]||""):e}function re(){if(Ql)return Ql;var e=gt(za.global);return e&&Ht(e)?Yl.get().referer:za.global.location.toString()}function ne(e){Ql=e}function oe(e,t){return t&&(t=ie(t)),O(e,t)}function ie(e,t){var r=D(e);if(r&&0===r.indexOf("//")){var n=ue().protocol;r=n+W(r,n)}else r=W(r);return za.isInWorker?"blob:"!==self.location.protocol?new Ya.URL(r,Jl()).href:e:Xl.resolve(r,t||document)}function se(){var e=re(),t=H(e);return(null===t||void 0===t?void 0:t.reqOrigin)?t.reqOrigin+"/":""}function ae(e){Jl=e}function le(e){var t=Jl();return t=t.replace(/(#.*)$/,""),t+e}function ce(e){var t=Xl.getResolverElement(document),r=V(e).port;Ya.anchorHrefSetter.call(t,Jl());var n=Ya.anchorHostnameGetter.call(t),o=Ya.anchorPathnameGetter.call(t);return"/"!==o.charAt(0)&&(o="/"+o),{protocol:Ya.anchorProtocolGetter.call(t),port:r?Ya.anchorPortGetter.call(t):"",hostname:n,host:r?Ya.anchorHostGetter.call(t):n,pathname:o,hash:t.hash,search:Ya.anchorSearchGetter.call(t)}}function pe(e){var t=new Ya.URL(e);return{protocol:t.protocol,port:t.port,hostname:t.hostname,host:t.host,pathname:t.pathname,hash:t.hash,search:t.search}}function ue(){var e=Jl();return za.isInWorker?pe(e):ce(e)}function he(){return R(ue())}function de(e){return e.isScript||e.isServiceWorker?self.document&&document[Ga.documentCharset]||null:null}function fe(e){ic=e}function me(e,t){var r=null,n=t.top!==t,o=t.location.toString();if(n)r=o;else{var i=lc(o);r=i&&i.destUrl}return Ie(r)&&X(e)?"":(e=Z(e),ic(e))}function ge(e){sc=e}function ve(e,t){var r=lc(e),n=null;if(r&&(e=r.destUrl,n=r.resourceType),n){var o=Ne(n);o.isIframe=!1,n=Le(o)}var i=!oe(re(),e),s=i?Yl.get().crossDomainProxyPort:location.port.toString();return ic(e,{windowId:t,proxyPort:s,resourceType:n})}function ye(e){return Yl.get().crossDomainProxyPort===e?location.port.toString():Yl.get().crossDomainProxyPort}function Ee(e){ac=e}function Se(e){return G(e)}function be(e){lc=e}function _e(e){return V(e)}function we(){return R({protocol:location.protocol,hostname:location.hostname,port:Yl.get().crossDomainProxyPort})}function xe(e){cc=e}function Ce(e,t,r,n){var o=H(e);if(o){var i=o.sessionId,s=o.proxy,a=Xl.changeUrlPart(o.destUrl,t,r,document);return ic(a,{proxyHostname:s.hostname,proxyPort:s.port,sessionId:i,resourceType:n})}return e}function Te(e){var t=ac(e);return tc.test(t)}function Ae(e,t){return L(e,t)}function Pe(e){return U(e)}function Ie(e){return K(e)}function Ne(e){return A(e)}function Le(e){return P(e)}function Oe(e,t){return ic(e).replace(ec,"")===ic(t).replace(ec,"")}function ke(e){var t=lc(e);return t?t.destUrl:e}function De(e){if(!Pe(e))return null;var t=_e(ac(e));if(!t)return null;var r=F(t.partAfterHost);return r.replace(rc,"/")||"/"}function Me(e,t){var r=!oe(re(),e),n={resourceType:Le({isAjax:!0}),credentials:t};return r&&(n.proxyPort=Yl.get().crossDomainProxyPort,n.reqOrigin=he()),ic(e,n)}function Re(e){e=e||"";var t=parseInt(e.replace("px",""),10);return isNaN(t)?0:t}function je(e,t,r,n){e=e.documentElement||e;var o=Ve(e,r,n);return o&&o[t]}function He(e,t,r){e=e.documentElement||e,e.style[t]=r}function Fe(e){return{bottom:Re(je(e,"borderBottomWidth")),left:Re(je(e,"borderLeftWidth")),right:Re(je(e,"borderRightWidth")),top:Re(je(e,"borderTopWidth"))}}function Ve(e,t,r){t=t||document,r=r||window;var n=t.defaultView||r;return n.getComputedStyle(e,null)}function Ue(e){return{bottom:Re(je(e,"marginBottom")),left:Re(je(e,"marginLeft")),right:Re(je(e,"marginRight")),top:Re(je(e,"marginTop"))}}function Be(e){return{bottom:Re(je(e,"paddingBottom")),left:Re(je(e,"paddingLeft")),right:Re(je(e,"paddingRight")),top:Re(je(e,"paddingTop"))}}function Ge(e){var t=zt(e),r=window;if(t&&Dt(e)){var n=ft(e);n&&(r=Ya.contentWindowGetter.call(n))}var o=t?r:e;return{left:Qe(o),top:Je(o)}}function We(e){if(!e)return null;if(yr(e))return e.document.documentElement.clientWidth;if(Er(e)){var t=e.documentElement,r="clientWidth",n="scrollWidth",o="offsetWidth";return t[r]>=t[n]?t[r]:Math.max(e.body[n],t[n],e.body[o],t[o])}var i=e.offsetWidth;return i-=Re(je(e,"paddingLeft")),i-=Re(je(e,"paddingRight")),i-=Re(je(e,"borderLeftWidth")),i-=Re(je(e,"borderRightWidth"))}function qe(e){if(!e)return null;if(yr(e))return e.document.documentElement.clientHeight;if(Er(e)){var t=e.documentElement,r="clientHeight",n="scrollHeight",o="offsetHeight";return t[r]>=t[n]?t[r]:Math.max(e.body[n],t[n],e.body[o],t[o])}var i=e.offsetHeight;return i-=Re(je(e,"paddingTop")),i-=Re(je(e,"paddingBottom")),i-=Re(je(e,"borderTopWidth")),i-=Re(je(e,"borderBottomWidth"))}function ze(e){if(!e)return null;if(yr(e))return e.document.documentElement.clientWidth;if(Er(e))return e.documentElement.clientWidth;var t=e.offsetWidth;return t-=Re(je(e,"borderLeftWidth")),t-=Re(je(e,"borderRightWidth"))}function Ke(e){if(!e)return null;if(yr(e))return e.document.documentElement.clientHeight;if(Er(e))return e.documentElement.clientHeight;var t=e.offsetHeight;return t-=Re(je(e,"borderTopWidth")),t-=Re(je(e,"borderBottomWidth"))}function Xe(e){var t=$e(e),r=Be(e),n=e.scrollHeight-(r.top+r.bottom),o=bt(e).length;return 1===t?qe(e):pl&&t>o?Math.round(n/o):Math.round(n/Math.max(o,t))}function $e(e){if(vl&&dc||nl)return 1;var t=Ya.getAttribute.call(e,"size"),r=Ya.getAttribute.call(e,"multiple"),n=t?parseInt(t,10):1;return r&&(!t||n<1)&&(n=kc),n}function Ye(e){var t=St(e),r=Nt(e);return ar(t)&&$e(t)>1&&("option"===r||"optgroup"===r)&&(!fl||e.label)}function Qe(e){return e?yr(e)?e.pageXOffset:Er(e)?e.defaultView.pageXOffset:e.scrollLeft:null}function Je(e){return e?yr(e)?e.pageYOffset:Er(e)?e.defaultView.pageYOffset:e.scrollTop:null}function Ze(e,t){if(e)if(yr(e)||Er(e)){var r=xt(e).defaultView,n=Je(e);Ya.scrollTo.call(r,t,n)}else e.scrollLeft=t}function et(e,t){if(e)if(yr(e)||Er(e)){var r=xt(e).defaultView,n=Qe(e);Ya.scrollTo.call(r,n,t)}else e.scrollTop=t}function tt(e){if(e){for(var t=e.offsetParent||document.body;t&&!/^(?:body|html)$/i.test(t.nodeName)&&"static"===je(t,"position");)t=t.offsetParent;return t}}function rt(e){if(!e||yr(e)||Er(e))return null;var t=e.getBoundingClientRect(),r=e.ownerDocument,n=r.documentElement;if(!n.contains(e)||e===n)return{top:t.top,left:t.left};var o=r.defaultView,i=n.clientTop||r.body.clientTop||0,s=n.clientLeft||r.body.clientLeft||0,a=o.pageYOffset||n.scrollTop||r.body.scrollTop,l=o.pageXOffset||n.scrollLeft||r.body.scrollLeft;return t=e.getBoundingClientRect(),{top:t.top+a-i,left:t.left+l-s}}function nt(e,t){if(!kt(e,t))return!1;for(;e;){if("none"===je(e,"display",t)||"hidden"===je(e,"visibility",t))return!1;e=Ot(e)}return!0}function ot(e){var t=ft(e);return t&&!nt(t,xt(t))}function it(e){return It(e)?Ya.elementQuerySelector:Dr(e)||Mr(e)?Ya.documentFragmentQuerySelector:Ya.querySelector}function st(e){return It(e)?Ya.elementQuerySelectorAll:Dr(e)||Mr(e)?Ya.documentFragmentQuerySelectorAll:Ya.querySelectorAll}function at(e){return e.offsetWidth<=0&&e.offsetHeight<=0}function lt(e){var t=Nt(e);return!!t&&(Kc.test(t)||Xc.test(t))}function ct(e){var t=null;try{t=e.__proto__}catch(r){var n=vl||gl;return e.replace&&(n||!!e.assign)}if(!t)return!1;var o=Ya.objectToString.call(t);return"[object LocationPrototype]"===o||"[object Location]"===o}function pt(e,t){for(;e;){if(qr(e,t))return e;e=Ya.nodeParentNodeGetter.call(e)}return null}function ut(e){return hc?e&&"object"==typeof e?Ya.objectToString.call(Ya.objectGetPrototypeOf(e)):"":Ya.objectToString.call(e)}function ht(e){for(var t=e||document,r=Ya.documentActiveElementGetter.call(t),n=It(r)?r:t.body;n&&n.shadowRoot;){var o=n.shadowRoot.activeElement;if(!o)break;n=o}return n}function dt(e,t){var r=bt(e);return r.indexOf(t)}function ft(e){var t=e[Ga.processedContext];return gt(t)}function mt(e){var t=null;try{t=Ya.contentDocumentGetter.call(e).location.href}catch(r){t=null}var n=Ya.getAttribute.call(e,"src"+_l.storedAttrPostfix)||Ya.getAttribute.call(e,"src")||Ya.iframeSrcGetter.call(e),o=t&&Pe(t)&&lc(t),i=n&&Pe(n)&&lc(n);return{documentLocation:o?o.destUrl:t,srcLocation:i?i.destUrl:n}}function gt(e){try{return e.frameElement}catch(t){return null}}function vt(e){var t=zr(e,"map"),r=Ya.getAttribute.call(t,"name"),n='[usemap="#'+r+'"]';return Ya.querySelector.call(xt(e),n)}function yt(e){var t=e.parent,r=null;if(e===e.top)return e;if(t===e.top||At(e,t))return t;try{r=t.frameElement}catch(n){r=null}return null!==r&&Ht(r)?yt(t):t}function Et(){if(!Mc){var e=Ya.createElement.call(document,"div");e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.width="100px",Ya.appendChild.call(document.body,e);var t=e.offsetWidth-e.clientWidth;Mc=t;var r=Ya.nodeParentNodeGetter.call(e);r.removeChild(e)}return Mc}function St(e){var t=Ya.nodeParentNodeGetter.call(e);return zr(t,"select")}function bt(e){for(var t=Ya.elementQuerySelectorAll.call(e,"optgroup, option"),r=[],n=Ya.nodeListLengthGetter.call(t),o=0;o<n;o++){var i=t[o],s=!fl||("optgroup"!==Nt(i)||i.label);s&&r.push(i)}return r}function _t(e){var t=e,r=e.parent;if(t===e.top)return t;for(;r;){if(!At(e,r)){var n=gt(r);n&&Ht(n)||(t=r)}r=r!==e.top?r.parent:null}return t}function wt(e,t,r){var n=st(e).call(e,t);if(r)for(var o=Ya.nodeListLengthGetter.call(n),i=0;i<o;i++)r(n[i]);return n}function xt(e){if(e.documentElement)return e;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument;var t=Nr(e)&&Ya.nodeParentNodeGetter.call(e);return t?xt(t):document}function Ct(e){var t=!1,r=null;return r=Lr(e)?e.parentElement||Ya.nodeParentNodeGetter.call(e):e,!!r&&(t=r.isContentEditable&&!lt(r),dr(r)&&(t||"on"===xt(e).designMode))}function Tt(e,t){var r=mt(e);if(!t&&null===r.documentLocation)return!0;var n=t?r.srcLocation:r.documentLocation;return!(!n||!Pe(n))&&!oe(location.toString(),n)}function At(e,t){try{if(e===t)return!1;var r=e.location.toString(),n=t.location.toString();return!(!Pe(r)||!Pe(n))&&!oe(r,n)}catch(o){return!0}}function Pt(e){return e!==e.top}function It(e){return e instanceof Ya.elementClass||e&&Bc.test(ut(e))&&Nr(e)&&e.tagName}function Nt(e){return e&&"string"==typeof e.tagName?e.tagName.toLowerCase():""}function Lt(e){for(var t=Ya.nodeParentNodeGetter.call(e);t&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t=Ya.nodeParentNodeGetter.call(t);return t&&t[ep]}function Ot(e){var t=Ya.nodeParentNodeGetter.call(e);return t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t[ep]?t[ep]:t}function kt(e,t){var r=t||document;if(!r.documentElement)return!1;if(r.documentElement.contains(e))return!0;var n=Lt(e);return!!n&&kt(n)}function Dt(e,t){var r=t||xt(e);return window.document!==r}function Mt(e){return e===_l.focusPseudoClass||e===_l.hoverPseudoClass||e.indexOf(_l.storedAttrPostfix)!==-1}function Rt(e){return"[object HTMLIFrameElement]"===ut(e)}function jt(e){return"[object HTMLFrameElement]"===ut(e)}function Ht(e){var t=mt(e),r=t.srcLocation,n=t.documentLocation;if(null===n)return!1;if(Ya.contentWindowGetter.call(e)[Ga.documentWasCleaned])return!0;var o=Pe(n);return!o&&!Ya.getAttribute.call(e,"src")||(!r||!Pe(r))&&!o}function Ft(e){return Ya.iframeSrcdocGetter&&Ya.hasAttribute.call(e,"srcdoc")}function Vt(e){return"[object HTMLImageElement]"===ut(e)}function Ut(e){return"[object HTMLInputElement]"===ut(e)}function Bt(e){return"[object HTMLTitleElement]"===ut(e)}function Gt(e){return"[object HTMLButtonElement]"===ut(e)}function Wt(e){return"[object HTMLFieldSetElement]"===ut(e)}function qt(e){return"[object HTMLOptGroupElement]"===ut(e)}function zt(e){return"[object HTMLHtmlElement]"===ut(e)}function Kt(e){return"[object HTMLBodyElement]"===ut(e)}function Xt(e){var t,r=Ya.nodeParentNodeGetter.call(e);return"html"===Nt(r)&&"#document"===(null===(t=Ya.nodeParentNodeGetter.call(r))||void 0===t?void 0:t.nodeName)}function $t(e){return"[object HTMLHeadElement]"===ut(e)}function Yt(e){var t=ut(e);return"[object HTMLHeadElement]"===t||"[object HTMLBodyElement]"===t}function Qt(e){var t=ut(e);return"[object HTMLHeadElement]"===t||"[object HTMLBodyElement]"===t||"[object HTMLHtmlElement]"===t}function Jt(e){return"[object HTMLBaseElement]"===ut(e)}function Zt(e){return"[object HTMLScriptElement]"===ut(e)}function er(e){return"[object HTMLStyleElement]"===ut(e)}function tr(e){return"[object HTMLLabelElement]"===ut(e)}function rr(e){return"[object HTMLTextAreaElement]"===ut(e)}function nr(e){return"[object HTMLOptionElement]"===ut(e)}function or(e){return Ut(e)&&"radio"===e.type.toLowerCase()}function ir(e){return Ut(e)&&"color"===e.type.toLowerCase()}function sr(e){return Ut(e)&&"checkbox"===e.type.toLowerCase()}function ar(e){return"[object HTMLSelectElement]"===ut(e)}function lr(e){return"[object HTMLFormElement]"===ut(e)}function cr(e){return Ut(e)&&"file"===e.type.toLowerCase()}function pr(e){return Ut(e)&&Jc.test(e.type.toLowerCase())}function ur(e){return Kt(e)&&Xt(e)&&Ya.htmlCollectionLengthGetter.call(Ya.elementChildrenGetter.call(e))}function hr(e){return Rc.indexOf(ut(e))!==-1}function dr(e){return!(Or(e)||kr(e)||$c.test(e.nodeName))}function fr(e){var t=Ya.getAttribute.call(e,"tabIndex");return t=parseInt(t,10),isNaN(t)?null:t}function mr(e){return qr(e,":disabled")}function gr(e){if(!e)return!1;var t=fr(e),r=mr(e),n="hidden"===je(e,"visibility"),o="none"===je(e,"display"),i=yl?at(e)&&!nr(e):at(e);return!(r||n||o||i)&&((!nr(e)||!pl)&&(Rr(e)?null!==t||qr(e,"a[href]"):!(!Hr(e)||!pl)||(qr(e,Zc)||null!==t)))}function vr(e){return!!e[Ga.shadowUIElement]}function yr(e){try{if((pl||ml)&&e&&e===e.window&&(e=e.window),!e||!e.toString||Hc!==ut(e))return!1}catch(t){try{return!!e.top}catch(r){return!1}}try{Ya.winLocalStorageGetter.call(e)}catch(n){return!1}return!0}function Er(e){if(e instanceof Ya.documentClass)return!0;try{return e&&Fc.test(ut(e))}catch(t){return!1}}function Sr(e){return e&&"[object Blob]"===ut(e)}function br(e){return!!e&&(pl||vl||gl?ct(e):e instanceof Ya.locationClass||"[object Location]"===Ya.objectToString.call(e))}function _r(e){return e instanceof Ya.svgElementClass||e&&Uc.test(ut(e))}function wr(e){return!!zr(e,"svg")}function xr(e){return!!(Ya.Headers&&e instanceof Ya.Headers)||e&&"[object Headers]"===ut(e)}function Cr(e){return!!(Ya.Request&&e instanceof Ya.Request)||e&&"[object Request]"===ut(e)}function Tr(e){return e.readOnly||"readonly"===e.getAttribute("readonly")}function Ar(e){var t=e.getAttribute("type");return Ut(e)&&t?Yc.test(t):Yc.test(e.type)}function Pr(e){return Ar(e)||rr(e)}function Ir(e){return Pr(e)&&!Tr(e)}function Nr(e){return e&&e.nodeType===zc}function Lr(e){return"[object Text]"===ut(e)}function Or(e){return Vc.test(ut(e))}function kr(e){return"[object Comment]"===ut(e)}function Dr(e){return"[object DocumentFragment]"===ut(e)}function Mr(e){return"[object ShadowRoot]"===ut(e)}function Rr(e){return"[object HTMLAnchorElement]"===ut(e)}function jr(e){return"[object HTMLTableElement]"===ut(e)}function Hr(e){return ut(e)===qc}function Fr(e){return"[object WebSocket]"===ut(e)}function Vr(e){return"[object MessageEvent]"===ut(e)}function Ur(e){return"[object PerformanceNavigationTiming]"===ut(e)}function Br(e){return e instanceof Ya.ArrayBuffer||e&&Gc.test(ut(e))}function Gr(e){return e&&Ya.arrayBufferIsView(e)}function Wr(e){return e instanceof Ya.DataView||e&&Wc.test(ut(e))}function qr(e,t){return!!Nr(e)&&Ya.matches.call(e,t)}function zr(e,t){return Nr(e)?Ya.closest?Ya.closest.call(e,t):pt(e,t):null}function Kr(e,t){if(e)for(var r=t.split(/\s+/),n=0,o=r;n<o.length;n++){var i=o[n];Ya.tokenListAdd.call(Ya.elementClassListGetter.call(e),i)}}function Xr(e,t){if(e)for(var r=t.split(/\s+/),n=0,o=r;n<o.length;n++){var i=o[n];Ya.tokenListRemove.call(Ya.elementClassListGetter.call(e),i)}}function $r(e,t){return!!e&&Ya.tokenListContains.call(Ya.elementClassListGetter.call(e),t)}function Yr(){var e=Ya.querySelector.call(document,"."+xl.charset);return e&&e.getAttribute("charset")}function Qr(e,t){for(var r=[],n=Jr(e);n;)(!t&&Nr(n)||t&&qr(n,t))&&r.push(n),n=Jr(n);return r}function Jr(e){return e=e.assignedSlot||e,Ya.nodeParentNodeGetter.call(e)||e.host}function Zr(e,t,r){for(void 0===t&&(t=!1),t||(e=Ya.nodeParentNodeGetter.call(e));e;){if("function"!=typeof r||r(e))return e;e=Ya.nodeParentNodeGetter.call(e)}return null}function en(e){for(var t=[],r=Ya.nodeListLengthGetter.call(e),n=0;n<r;n++)t.push(e[n]);return t}function tn(e){return cr(e)?[e]:en(st(e).call(e,"input[type=file]"))}function rn(e){return Rt(e)?[e]:en(st(e).call(e,"iframe,frame"))}function nn(e){return Zt(e)?[e]:en(st(e).call(e,"script"))}function on(e){return Ut(e)&&Qc.test(e.type)}function sn(e){if(!on(e))return!1;var t="number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd;return!t}function an(e){if(!tr(e))return null;var t=xt(e);return e.control||e.htmlFor&&Ya.getElementById.call(t,e.htmlFor)}function ln(){return{indent:null,base:null,parse:null,format:{indent:{style:"    ",base:0},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1},directive:!1,raw:!0,verbatim:null}}function cn(e){if(e<128)return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||36===e||95===e||92===e;var t=String.fromCharCode(e);return lp.test(t)}function pn(e){return 10===e||13===e||8232===e||8233===e}function un(e){return 32===e||9===e||pn(e)||11===e||12===e||160===e||e>=5760&&ap.indexOf(e)>=0}function hn(e){return e>=48&&e<=57}function dn(e,t){var r="";for(t|=0;t>0;t>>>=1,e+=e)1&t&&(r+=e);return r}function fn(e,t){function r(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof RegExp)}var n,o;for(n in t)t.hasOwnProperty(n)&&(o=t[n],r(o)?r(e[n])?fn(e[n],o):e[n]=fn({},o):e[n]=o);return e}function mn(e){var t,r,n,o,i;if(e===1/0)return _c?"null":wc?"1e400":"1e+400";if(t=""+e,!wc||t.length<3)return t;for(r=t.indexOf("."),_c||48!==t.charCodeAt(0)||1!==r||(r=0,t=t.slice(1)),n=t,t=t.replace("e+","e"),o=0,(i=n.indexOf("e"))>0&&(o=+n.slice(i+1),n=n.slice(0,i)),r>=0&&(o-=n.length-r-1,n=+(n.slice(0,r)+n.slice(r+1))+""),i=0;48===n.charCodeAt(n.length+i-1);)--i;return 0!==i&&(o-=i,n=n.slice(0,i)),0!==o&&(n+="e"+o),(n.length<t.length||xc&&e>1e12&&Math.floor(e)===e&&(n="0x"+e.toString(16)).length<t.length)&&+n===e&&(t=n),t}function gn(e,t){return 8232===(e&-2)?(t?"u":"\\u")+(8232===e?"2028":"2029"):10===e||13===e?(t?"":"\\")+(10===e?"n":"r"):String.fromCharCode(e)}function vn(e){var t,r,n,o,i,s,a,l;if(r=e.toString(),e.source){if(t=r.match(/\/([^/]*)$/),!t)return r;for(n=t[1],r="",a=!1,l=!1,o=0,i=e.source.length;o<i;++o)s=e.source.charCodeAt(o),l?(r+=gn(s,l),l=!1):(a?93===s&&(a=!1):47===s?r+="\\":91===s&&(a=!0),r+=gn(s,l),l=92===s);return"/"+r+"/"+n}return r}function yn(e,t){var r,n="\\";switch(e){case 8:n+="b";break;case 12:n+="f";break;case 9:n+="t";break;default:r=e.toString(16).toUpperCase(),n+=_c||e>255?"u"+"0000".slice(r.length)+r:0!==e||hn(t)?11===e?"x0B":"x"+"00".slice(r.length)+r:"0"}return n}function En(e){var t="\\";switch(e){case 92:t+="\\";break;case 10:t+="n";break;case 13:t+="r";break;case 8232:t+="u2028";break;case 8233:t+="u2029"}return t}function Sn(e){var t,r,n,o;for(o="double"===Cc?'"':"'",t=0,r=e.length;t<r;++t){if(n=e.charCodeAt(t),39===n){o='"';break}if(34===n){o="'";break}92===n&&++t}return o+e+o}function bn(e){var t,r,n,o,i,s="",a=0,l=0;for(t=0,r=e.length;t<r;++t){if(n=e.charCodeAt(t),39===n)++a;else if(34===n)++l;else if(47===n&&_c)s+="\\";else{if(pn(n)||92===n){s+=En(n);continue}if(_c&&n<32||!(_c||Tc||n>=32&&n<=126)){s+=yn(n,e.charCodeAt(t+1));continue}}s+=String.fromCharCode(n)}if(o=!("double"===Cc||"auto"===Cc&&l<a),i=o?"'":'"',!(o?a:l))return i+s+i;for(e=s,s=i,t=0,r=e.length;t<r;++t)n=e.charCodeAt(t),(39===n&&o||34===n&&!o)&&(s+="\\"),s+=String.fromCharCode(n);return s+i}function _n(e,t){if(!e.length)return t;if(!t.length)return e;var r=e.charCodeAt(e.length-1),n=t.charCodeAt(0);return cn(r)&&cn(n)||r===n&&(43===r||45===r)||47===r&&105===n?e+mp.space+t:un(r)||un(n)?e+t:e+mp.optSpace+t}function wn(){var e=mp.indent;return mp.indent+=mp.indentUnit,e}function xn(e){return e.type===np.BlockStatement?mp.optSpace:e.type===np.EmptyStatement?"":mp.newline+mp.indent+mp.indentUnit}function Cn(e){return e.type===np.BlockStatement?mp.optSpace:mp.newline+mp.indent}function Tn(e,t){var r=e[Lc.verbatim],n="string"==typeof r,o=n||void 0===r.precedence?ip.Sequence:r.precedence,i=o<t.precedence,s=n?r:r.content,a=s.split(/\r\n|\n/),l=a.length;i&&(mp.js+="("),mp.js+=a[0];for(var c=1;c<l;c++)mp.js+=mp.newline+mp.indent+a[c];i&&(mp.js+=")")}function An(e){var t=e.params,r=t.length,n=r-1,o=e.type===np.ArrowFunctionExpression&&1===r&&t[0].type===np.Identifier;if(o)mp.js+=t[0].name;else{mp.js+="(";for(var i=0;i<r;++i){var s=t[i];t[i].type===np.Identifier?mp.js+=s.name:gp[s.type](s,cp.e4),i!==n&&(mp.js+=","+mp.optSpace)}mp.js+=")"}}function Pn(e){var t=e.body;if(An(e),e.type===np.ArrowFunctionExpression&&(mp.js+=mp.optSpace+"=>"),e.expression){mp.js+=mp.optSpace;var r=Dn(t,cp.e4);"{"===r.charAt(0)&&(r="("+r+")"),mp.js+=r}else mp.js+=xn(t),vp[t.type](t,cp.s8)}function In(e,t){var r=e.operator,n=sp[e.operator],o=n<t.precedence,i=t.allowIn||o,s=cp.e16(n,i),a=Dn(e.left,s);o|="in"===r&&!i,o&&(mp.js+="("),a=47===a.charCodeAt(a.length-1)&&cn(r.charCodeAt(0))?a+mp.space+r:_n(a,r),s.precedence++;var l=Dn(e.right,s);"/"===r&&"/"===l.charAt(0)||"<"===r.slice(-1)&&"!--"===l.slice(0,3)?a+=mp.space+l:a=_n(a,l),mp.js+=a,o&&(mp.js+=")")}function Nn(e){var t=e.elements,r=t.length;if(r){var n=r-1,o=r>1,i=wn(),s=mp.newline+mp.indent;mp.js+="[";for(var a=0;a<r;a++){var l=t[a];o&&(mp.js+=s),l&&gp[l.type](l,cp.e4),a===n&&l||(mp.js+=",")}mp.indent=i,o&&(mp.js+=mp.newline+mp.indent),mp.js+="]"}else mp.js+="[]"}function Ln(e){var t=e.blocks,r=e.filter,n=e.type===np.GeneratorExpression,o=n?"(":"[",i=Dn(e.body,cp.e4);if(t){for(var s=wn(),a=t.length,l=0;l<a;++l){var c=Dn(t[l],cp.e5);o=l>0?_n(o,c):o+c}mp.indent=s}if(r){var p=Dn(r,cp.e5);o=_n(o,"if"+mp.optSpace),o=_n(o,"("+p+")")}o=_n(o,i),o+=n?")":"]",mp.js+=o}function On(e,t,r){for(var n=r.length,o=n-1,i=0;i<n;++i){var s=Mn(r[i],cp.s7);e=_n(e,s),(t||i!==o)&&(e+=Cn(r[i].body))}return e}function kn(e,t,r){var n=t.body,o=t.left,i=!Pc&&r.semicolonOptional,s=wn(),a=t.await?" await":"",l="for"+a+mp.optSpace+"(";if(o.type===np.VariableDeclaration){var c=wn();l+=o.kind+mp.space+Mn(o.declarations[0],cp.s6),mp.indent=c}else l+=Dn(o,cp.e10);l=_n(l,e);var p=Dn(t.right,cp.e4);l=_n(l,p)+")",mp.indent=s,mp.js+=l+xn(n),vp[n.type](n,cp.s4(i))}function Dn(e,t){var r=mp.js;mp.js="",gp[e.type](e,t);var n=mp.js;return mp.js=r,n}function Mn(e,t){var r=mp.js;mp.js="",vp[e.type](e,t);var n=mp.js;return mp.js=r,n}function Rn(e){return mp.js="",vp[e.type]?vp[e.type](e,cp.s7):gp[e.type](e,cp.e19),mp.js}function jn(e){return function(t,r){Lc.verbatim&&t.hasOwnProperty(Lc.verbatim)?Tn(t,r):e(t,r)}}function Hn(){var e={};for(var t in hp)hp.hasOwnProperty(t)&&(e[t]=jn(hp[t]));return e}function Fn(e){return{type:op.Identifier,name:e}}function Vn(e){return{type:op.ExpressionStatement,expression:e}}function Un(e,t,r){return{type:op.AssignmentExpression,operator:t,left:e,right:r}}function Bn(e,t){return{type:op.CallExpression,callee:e,arguments:t,optional:!1}}function Gn(e){return{type:op.ArrayExpression,elements:e}}function Wn(e,t,r){return{type:op.MemberExpression,object:e,property:t,computed:r,optional:!1}}function qn(e,t,r){return{type:op.BinaryExpression,left:e,right:r,operator:t}}function zn(e){return{type:op.SequenceExpression,expressions:e}}function Kn(){return{type:op.ThisExpression}}function Xn(e,t,r){return{type:op.LogicalExpression,left:e,right:r,operator:t}}function $n(e){return void 0===e&&(e=null),{type:op.ReturnStatement,argument:e}}function Yn(e,t,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=!1),{type:op.FunctionExpression,id:e,params:t,body:r,async:n,generator:o}}function Qn(e,t){return{type:op.UnaryExpression,operator:e,prefix:!0,argument:t}}function Jn(){return Qn("void",eo(0))}function Zn(e,t,r){return{type:op.ConditionalExpression,test:e,consequent:t,alternate:r}}function eo(e){return{type:op.Literal,value:e}}function to(e,t){return Vn(Un(e,"=",t))}function ro(e){return{type:op.BlockStatement,body:e}}function no(e,t){return void 0===t&&(t=null),{type:op.VariableDeclarator,id:e,init:t}}function oo(e,t){return{type:op.VariableDeclaration,declarations:t,kind:e}}function io(e,t){var r=[e],n=Fn(Ep.processScript);return t&&r.push(eo(!0)),Bn(n,r)}function so(e){var t=Fn(Ep.getLocation);return Bn(t,[e])}function ao(e,t,r){var n=Fn(bp.generateName()),o=Fn(Ep.setLocation),i=Bn(o,[e,n]),s=Un(e,"=",n),a=Fn("call"),l=Yn(null,[],ro([oo("var",[no(n,t)]),$n(Xn(i,"||",s))])),c=Wn(l,a,!1),p=Bn(c,[Kn()]);return r?zn([eo(0),p]):p}function lo(e,t,r){var n=Fn(Ep.setProperty);return Bn(n,[t,eo(e),r])}function co(e,t,r){var n=Fn(Ep.callMethod),o=Gn(r);return Bn(n,[e,t,o])}function po(e,t){var r=Fn(Ep.getProperty);
  return Bn(r,[t,eo(e)])}function uo(e,t){var r=Fn(Ep.getProperty);return Bn(r,[t,e])}function ho(e,t,r){var n=Fn(Ep.setProperty);return Bn(n,[t,e,r])}function fo(e){var t=Fn(Ep.getEval);return Bn(t,[e])}function mo(e,t){var r=t(String(e.value),P({isScript:!0}));return eo(r)}function go(e,t){var r=Fn(Ep.getProxyUrl),n=[e];return t&&n.push(eo(t)),Bn(r,n)}function vo(e){var t=Fn(Ep.getPostMessage),r=e.type===op.MemberExpression?[e.object]:[eo(null),e];return Bn(t,r)}function yo(e){var t=Fn(Ep.arrayFrom);return Bn(t,[e])}function Eo(e,t){return Un(e,"=",qn(e,"+",t))}function So(e){var t=Fn(Ep.processHtml),r=Fn("parent"),n=Fn("window"),o=Wn(r,t,!1),i=Bn(o,[n,e.expression]);return Vn(i)}function bo(e){for(var t=[],r=0,n=e;r<n.length;r++){var o=n[r];t.push(no(Fn(o)))}return oo("var",t)}function _o(e){return Ap(xp,String(e))}function wo(e){return Ap(Cp,String(e))}function xo(e,t,r,n){var o=r[n];o instanceof Array?e?o[o.indexOf(e)]=t:o.unshift(t):r[n]=t,e?(t.originStart=t.start=e.start,t.originEnd=t.end=e.end):t.start=t.end=t.originStart=t.originEnd=o[1]?o[1].start:r.start+1}function Co(e,t){for(var r=[],n=[],o=0,i=e.body;o<i.length;o++){var s=i[o];s.type===op.VariableDeclaration&&r.push.apply(r,s.declarations)}for(var a=0,l=r;a<l.length;a++){var c=l[a];if(c.type===op.VariableDeclarator&&(c.id.type===op.Identifier&&n.push(c.id),c.id.type===op.ArrayPattern&&n.push.apply(n,c.id.elements),c.id.type===op.ObjectPattern))for(var p=0,u=c.id.properties;p<u.length;p++){var h=u[p];"value"in h&&n.push(h.value)}}for(var d=0,f=n;d<f.length;d++){var m=f[d];m&&m.type===op.Identifier&&t(m)}}function To(e){var t,r=e.left,n=[],o=(null===(t=r.declarations[0])||void 0===t?void 0:t.id.type)===op.ArrayPattern,i=e.body.type===op.BlockStatement;if(o&&i){var s=r.declarations[0].id,a=s.elements;Co(e.body,function(e){for(var t=0,r=a;t<r.length;t++){var o=r[t];o&&o.name===e.name&&n.push(o)}});for(var l=0,c=n;l<c.length;l++){var p=c[l],u=Fn(bp.generateName());xo(p,u,s,"elements")}}}function Ao(e,t,r,n){var o=e.value,i=e.computed||e.key.type===op.Literal,s=Wn(t,e.key,i);Do(o,s,r,n)}function Po(e,t){var r=Fn(Ep.restObject);return Bn(r,[e,Gn(t)])}function Io(e,t){var r=Fn(Ep.restArray);return Bn(r,[e,eo(t)])}function No(e,t,r){if(e.type===op.Identifier&&bp.isHHTempVariable(e.name))return e;var n=Fn(r||bp.generateName(r));return t(n,e,!0),n}function Lo(e,t,r,n){if(t){var o=e.properties,i=o.length&&o[o.length-1].type===op.RestElement,s=No(t,r,n),a=[],l=[];if(n||(n=s.name),i)for(var c=0;c<o.length-1;c++){var p=o[c],u=p.key;if(u.type===op.Identifier)a.push(p.computed?u:eo(u.name));else if(u.type===op.Literal)a.push(u);else{var h=Fn(bp.generateName());r(h,u,!0),a.push(h),p.key=h}}for(var c=0;c<o.length;c++){var p=o[c];if(p.type===op.RestElement)r(p.argument,Po(s,a));else{var d=p,f=bp.generateName(n,d.key,c);l.indexOf(f)>-1&&(f=bp.generateName(f,void 0,c)),l.push(f),Ao(d,s,r,f)}}}}function Oo(e,t,r,n){if(t){t.type!==op.ArrayExpression&&(t=yo(t));var o=No(t,r,n);n||(n=o.name);for(var i=0;i<e.elements.length;i++){var s=e.elements[i];s&&(s.type===op.RestElement?(t=Io(o,i),s=s.argument):t=Wn(o,eo(i),!0),Do(s,t,r,bp.generateName(n,void 0,i)))}}}function ko(e,t,r,n){if(t){var o=e.left,i=e.right,s=No(t,r,n),a=qn(s,"===",Jn()),l=Zn(a,i,s);n||(n=s.name),n+="$assign",Do(o,l,r,n)}}function Do(e,t,r,n){e.type===op.ObjectPattern?Lo(e,t,r,n):e.type===op.ArrayPattern?Oo(e,t,r,n):e.type===op.AssignmentPattern?ko(e,t,r,n):r(e,t)}function Mo(e){return{nodeReplacementRequireTransform:!1,nodeTypes:e,condition:function(e){for(var t=0,r=e.params;t<r.length;t++){var n=r[t];if(n.type===op.AssignmentPattern&&(n=n.left),n.type===op.ObjectPattern||n.type===op.ArrayPattern)return!0}return!1},run:function(e){for(var t=[],r=0,n=e.params;r<n.length;r++){var o=n[r],i=e,s="params";if(o.type===op.AssignmentPattern&&(i=o,o=o.left,s="left"),o.type===op.ObjectPattern&&o.properties.length||o.type===op.ArrayPattern&&o.elements.length){var a=Fn(bp.generateName());xo(o,a,i,s),t.push(no(o,a))}}if(!t.length)return null;var l=oo("var",t);if(e.body.type!==op.BlockStatement){var c=$n(e.body);return xo(e.body,ro([l,c]),e,"body"),e.expression=!1,e}return xo(null,l,e.body,"body"),l.reTransform=!0,null}}}function Ro(){for(var e=new Map,t=0,r=eu;t<r.length;t++){var n=r[t],o=n.nodeTypes,i=e.get(o);i||(i=[],e.set(o,i)),i.push(n)}return e}function jo(e){var t=H(e);return t&&t.destUrl}function Ho(e,t){t=t.replace(ou,"");var r=jo(t);return r?e.replace(t,r):e}function Fo(e){if(!e)return e;for(var t=e.split("\n"),r=0;r<t.length;r++)for(var n=t[r],o=0,i=ru;o<i.length;o++){var s=i[o];if(s.test(n)){t[r]=n.replace(s,Ho);break}}return t.join("\n")}function Vo(e){if(!e)return null;for(var t=nu.exec(e);t;){var r=jo(t[1]);if(r)return nu.lastIndex=0,r;t=nu.exec(e)}return null}function Uo(e,t){var r=e.originStart,n=e.originEnd;return{start:r,end:n,node:e,parentType:t}}function Bo(e,t,r,n){for(var o=lu(e),i=0,s=o;i<s.length;i++){var a=s[i],l=e[a],c=au.call(l);if("[object Array]"===c)for(var p=l,u=0,h=p;u<h.length;u++){var d=h[u];d&&$o(d,t,r,e,a,n)}else"[object Object]"===c&&$o(l,t,r,e,a,n)}}function Go(e){return void 0!==e.originStart&&void 0!==e.originEnd}function Wo(e,t,r,n){var o=e.hasTransformedAncestor||e.newExpressionAncestor&&Go(e.newExpressionAncestor);o||(e.newExpressionAncestor&&e.newExpressionAncestorParent?(xo(e.newExpressionAncestor,e.newExpressionAncestor,e.newExpressionAncestorParent,e.newExpressionAncestorKey),t.push(Uo(e.newExpressionAncestor,e.newExpressionAncestorParent.type))):t.push(Uo(r,n)))}function qo(e,t,r,n){var o=n.get();if(o.length){var i=bo(o);xo(null,i,e,"body"),Wo(r,t,i,e.type)}}function zo(e,t){void 0===e&&(e=!1),$p.wrapLastExpr=e,Yp.resolver=t;var r="undefined"==typeof window;r?Qp.getBaseUrl=function(){return"undefined"==typeof Qp.baseUrl&&(Qp.baseUrl=t?H(t("./")).destUrl:""),Qp.baseUrl}:Qp.getBaseUrl=function(){if("undefined"==typeof Qp.baseUrl){var e=(new Error).stack;Qp.baseUrl=e&&Vo(e)||""}return Qp.baseUrl}}function Ko(){$p.wrapLastExpr=!1,Yp.resolver=void 0,Qp.baseUrl=void 0}function Xo(e,t){var r=tu.get(e.type);if(r)for(var n=0,o=r;n<o.length;n++){var i=o[n];if(i.condition(e,t))return i}return null}function $o(e,t,r,n,o,i){var s=e.type===op.BlockStatement,a=!1;if(s&&(i=new bp),!e.reTransform&&Go(e))Wo(r,t,e,n.type),a=!0;else{for(var l=e,c=Xo(e,n),p=null;c&&(p=c.run(p||e,n,o,i))&&(a=!0,c.nodeReplacementRequireTransform);)c=Xo(p,n),e=p;a&&p&&(xo(l,p,n,o),Wo(r,t,p,n.type))}r=su.create(r,e,n,o,a),Bo(e,t,r,i),s&&qo(e,t,r,i)}function Yo(e,t,r){void 0===t&&(t=!1);var n=[],o=new su,i=new bp;return bp.resetCounter(),zo(t,r),Bo(e,n,o,i),qo(e,n,o,i),Ko(),n}function Qo(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}function Jo(e){return"object"==typeof Node?e instanceof Node:"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function Zo(e){return!(!e||!e.jquery)}function ei(e){if(e){if("function"==typeof e||Zo(e)||Jo(e))return!1;if("object"==typeof e)for(var t in e)if(e.hasOwnProperty(t)&&!ei(e[t]))return!1}return!0}function ti(e){return e.replace(Eu,"").replace(Su,"")}function ri(e,t,r){var n=yu.replace(gu,t?'"use strict";':"").replace(vu,r?"var "+Ep.swScopeHeaderValue+" = "+uu(r)+";":"");return n+e+"\n"+fu}function ni(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}function oi(e){var t=e.match(Zu);return t?t[0]:null}function ii(e){do e=e.replace(eh,"\n");while(eh.test(e));return e}function si(e){var t=oi(e),r=t?e.substring(t.length):e;return r=ti(r),r=ai(r),{bom:t,preprocessed:r}}function ai(e){return e.replace(oh,"")}function li(e,t,r,n,o){return t&&(e=ri(e,n,o)),r?r+e:e}function ci(e,t){return rh.test(t)?e:e.replace(rh,"")}function pi(e,t){e=t?"("+e+")":e;try{return Ju.parse(e,sh)}catch(r){return null}}function ui(e,t){var r=yp(e,{format:{quotes:"double",escapeless:!0,compact:!0}});return t?ci(r,t):r}function hi(e){var t=th.test(e),r=pi(e,t);return!r&&t&&(r=pi(e,!1),t=!1),{ast:r,isObject:t}}function di(e){var t=e.body[0];return 1===e.body.length&&t.type===op.ExpressionStatement&&t.expression.type===op.ArrayExpression}function fi(e){if(e.body.length){var t=e.body[0];if(t.type===op.ExpressionStatement&&t.expression.type===op.Literal)return"use strict"===t.expression.value}return!1}function mi(e,t,r){var n=r?-1:0,o=[],i=0;if(!t.length)return e;t.sort(function(e,t){return e.start-t.start||e.end-t.end||(e.node.type===op.VariableDeclaration?0:1)-(t.node.type===op.VariableDeclaration?0:1)});for(var s=0,a=t;s<a.length;s++){var l=a[s],c=l.start+n,p=l.end+n,u=l.node.type===op.SequenceExpression&&l.parentType!==op.ExpressionStatement&&l.parentType!==op.SequenceExpression;o.push(e.substring(i,c)),o.push(u?"(":" "),o.push(ui(l.node,e.substring(c,p))),o.push(u?")":" "),i+=p-i}return o.push(e.substring(i)),o.join("")}function gi(e){return ih.test(e)}function vi(e,t,r,n,o){void 0===t&&(t=!1),void 0===r&&(r=!1);var i=si(e),s=i.bom,a=i.preprocessed,l=ii(a),c=hi(l),p=c.ast,u=c.isObject;if(!p)return e;t=t&&!u&&!di(p);var h=Yo(p,r,n),d=h.length?mi(l,h,u):a;return d=li(d,t,s,fi(p),o),u&&(d=d.replace(nh,"$1")),d}function yi(e,t,r,n){var o=y(e,r,{value:n});Ya.objectDefineProperty(t,r,o)}function Ei(e){try{return e.location.toString()}catch(t){return}}function Si(e){return null===e?"null":"undefined"}function bi(e){return null===e||void 0===e}function _i(e){var t=typeof e;return"object"!==t&&"function"!==t}function wi(e){return('\n        <script class="'+xl.selfRemovingScript+"\">\n            (function () {\n                var currentScript = document.currentScript;\n\n                /* NOTE: IE11 doesn't support the 'currentScript' property */\n                if (!currentScript) {\n                    var scripts       = document.scripts;\n                    var scriptsLength = scripts.length;\n\n                    currentScript = scripts[scriptsLength - 1];\n                }\n\n                currentScript.parentNode.removeChild(currentScript);\n\n                "+e+"\n            })();\n        </script>\n    ").replace(/\n\s*|\/\*[\S\s]*?\*\//g,"")}function xi(e){var t=Ya.nodeParentNodeGetter.call(e);return t&&Ya.removeChild.call(t,e),e}function Ci(){try{Pd.location&&Pd.location.toString()}catch(e){Pd=Ya.createHTMLDocument.call(document.implementation,"title"),Id=Ya.createDocumentFragment.call(Pd),Id[Td]=!0}return Pd}function Ti(e){return e.replace(vd,yd).replace(fd,md).replace(hd,dd)}function Ai(e){return e.replace(Ed,"<!doctype$1>").replace(gd,"<$2$1$4$3").replace(ud,"$1")}function Pi(e){return/^\s*(<\s*(!doctype|html|head|body)[^>]*>)/i.test(e)}function Ii(e,t){var r=Ya.createElement.call(Ci(),"div");e=Ti(e),Ya.appendChild.call(Id,r),Ya.elementInnerHTMLSetter.call(r,e);var n=t(r)?Ya.elementInnerHTMLGetter.call(r):e;return xi(r),n=Ai(n),pl&&!ml&&e!==n&&(n=Fi(e,n)),n}function Ni(e){var t=qd.getUrlAttr(e);if(t&&Ya.hasAttribute.call(e,t)){var r=Vh.getStoredAttrName(t);Ya.hasAttribute.call(e,r)&&(Ya.setAttribute.call(e,t,Ya.getAttribute.call(e,r)),Ya.removeAttribute.call(e,r))}}function Li(e){if(Ya.hasAttribute.call(e,"autocomplete")){var t=Vh.getStoredAttrName("autocomplete");if(Ya.hasAttribute.call(e,t)){var r=Ya.getAttribute.call(e,t);Vh.isAddedAutocompleteAttr("autocomplete",r)?Ya.removeAttribute.call(e,"autocomplete"):Ya.setAttribute.call(e,"autocomplete",r),Ya.removeAttribute.call(e,t)}}}function Oi(e){var t=qd.getTargetAttr(e);if(t&&Ya.hasAttribute.call(e,t)){var r=Vh.getStoredAttrName(t);Ya.hasAttribute.call(e,r)&&(Ya.setAttribute.call(e,t,Ya.getAttribute.call(e,r)),Ya.removeAttribute.call(e,r))}}function ki(e){if("iframe"===qd.adapter.getTagName(e)&&Ya.hasAttribute.call(e,"sandbox")){var t=Vh.getStoredAttrName("sandbox");Ya.hasAttribute.call(e,t)&&(Ya.setAttribute.call(e,"sandbox",Ya.getAttribute.call(e,t)),Ya.removeAttribute.call(e,t))}}function Di(e){if(Ya.hasAttribute.call(e,"style")){var t=Vh.getStoredAttrName("style");Ya.hasAttribute.call(e,t)&&(Ya.setAttribute.call(e,"style",Ya.getAttribute.call(e,t)),Ya.removeAttribute.call(e,t))}}function Mi(e){return Ii(e,function(e){var t=!1;return wt(e,_d,function(e){Ni(e),Li(e),Oi(e),ki(e),Di(e),t=!0}),wt(e,wd,function(e){var r=Ya.nodeParentNodeGetter.call(e);r&&(Ya.removeChild.call(r,e),t=!0)}),wt(e,"script",function(e){var r=Ya.nodeTextContentGetter.call(e),n=ti(r);r!==n&&(Ya.nodeTextContentSetter.call(e,n),t=!0)}),wt(e,"style",function(e){var r=Ya.nodeTextContentGetter.call(e),n=wh.cleanUp(r,lc);r!==n&&(Ya.nodeTextContentSetter.call(e,n),t=!0)}),wt(e,xd,function(e){Ya.removeAttribute.call(e,_l.hoverPseudoClass),Ya.removeAttribute.call(e,_l.focusPseudoClass),t=!0}),wt(e,Cd,function(e){var r=Ya.elementInnerHTMLGetter.call(e);r.indexOf(od.iframeInit)!==-1&&(Ya.elementInnerHTMLSetter.call(e,r.replace(od.iframeInit,"")),t=!0)}),t})}function Ri(e,t){void 0===t&&(t={});var r=t.parentTag,n=t.prepareDom,o=t.processedContext,i=t.isPage;return Ii(e,function(e){var t=null,s=[],a=[],l=0,c=Xl.getBaseUrl(document);n&&n(e),Ya.htmlCollectionLengthGetter.call(Ya.elementChildrenGetter.call(e))&&(a=Ya.elementQuerySelectorAll.call(e,"*"),l=Ya.nodeListLengthGetter.call(a));var p=Ya.elementQuerySelector.call(e,"base");p&&Xl.updateBase(Ya.getAttribute.call(p,"href"),document);for(var u=0;u<l;u++){var h=a[u];if(Zt(h)){var d=Ya.nodeTextContentGetter.call(h);Ya.nodeTextContentSetter.call(h,Ai(d))}h[Ga.processedContext]=o,qd.processElement(h,cc);var f=Nt(h);f===ld||f===cd?s.push(h):f===ad&&(t=h)}if(!r)if(s.length)for(var m=0,g=s;m<g.length;m++){var v=g[m],y=Ya.elementQuerySelector.call(v,Ad);y?Ya.insertAdjacentHTML.call(y,id.beforeBegin,od.iframeInit):Ya.insertAdjacentHTML.call(v,id.beforeEnd,od.iframeInit)}else t&&pl?Ya.insertAdjacentHTML.call(t,id.afterEnd,od.iframeInit):i&&Ya.insertAdjacentHTML.call(e,id.afterBegin,od.iframeInit);return Xl.updateBase(c,document),!0})}function ji(){Id=null,Pd=null}function Hi(e){for(;Ya.nodeParentNodeGetter.call(e);)e=Ya.nodeParentNodeGetter.call(e);return!!e[Td]}function Fi(e,t){var r=e.match(Sd),n=0;return r?t.replace(Sd,function(e){var t=r[n],o=t?t.match(bd):null;return t&&n++,t?e.replace(bd,function(){var e=o?o.join(""):"";return o&&(o=null),e}):e}):t}function Vi(){var e=_t(window),t=e[Bd];return t||(t=[],Ya.objectDefineProperty(e,Bd,{value:t})),t}function Ui(e){for(var t=Vi(),r=t.length-1;r>=0;r--)try{if(t[r]===e)return}catch(n){t.splice(r,1)}t.push(e)}function Bi(e){var t=Vi(),r=t.indexOf(e);r!==-1&&t.splice(r,1)}function Gi(e){for(var t=Vi(),r=0;r<t.length;r++)try{if(t[r].name===e)return t[r]}catch(n){t.splice(r,1),r--}return null}function Wi(e){var t=Ya.createElement.call(document,"input");return t.type="hidden",t.name=_l.uploadInfoHiddenInputName,Mf.markElementAsShadow(t),Ya.inputValueSetter.call(t,"[]"),Ya.appendChild.call(e,t),Mf.markFormAsShadow(e),t}function qi(e){var t='[name="'+_l.uploadInfoHiddenInputName+'"]';return Ya.elementQuerySelector.call(e,t)||Wi(e)}function zi(e,t){for(var r=0;r<e.length;r++)if(e[r].id===t.id||e[r].name===t.name)return r;return-1}function Ki(e,t,r){var n=Xi(e);if(n){var o=[];t=Ya.arraySlice.call(t);for(var i=0,s=t.length;i<s;i++){var a=t[i];o.push({name:a.name,type:a.type,data:a.base64})}var l=zi(n,e),c={id:e.id,name:e.name,files:o,value:r};l===-1?n.push(c):n[l]=c,$i(e,n)}}function Xi(e){return e.form?pu(Ya.inputValueGetter.call(qi(e.form))):null}function $i(e,t){if(e.form){var r=qi(e.form);Ya.inputValueSetter.call(r,uu(t))}}function Yi(e){var t=Xi(e);if(t){var r=zi(t,e);if(r!==-1)return t.splice(r,1),$i(e,t),!0}return!1}function Qi(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t||Ji(e)}function Ji(e){e.stopImmediatePropagation?e.stopImmediatePropagation():e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0}function Zi(e){return"object"==typeof e&&e&&"function"==typeof e.handleEvent}function es(e){return"function"==typeof e||Zi(e)}function ts(e,t,r){return Zi(t)?t.handleEvent.call(t,r):t.call(e,r)}function rs(e){return Xd.indexOf(e)!==-1}function ns(e,t){return function(){return e.apply(t,arguments)}}function os(e,t,r){return function(){var n=t[r].apply(t,arguments);return ls(e),n}}function is(e){if(e.length)for(var t=0;t<e.length;t++)delete e[e[t].name],delete e[t]}function ss(e,t){for(var r=0,n={},o=0,i=t;o<i.length;o++){var s=i[o];if(!Mt(s.name)){var a=t[Vh.getStoredAttrName(s.name)];if(a){if(Vh.isAddedAutocompleteAttr(s.name,a.value))continue;s=Ya.cloneNode.call(s),s.value=a.value}n[s.name]={value:s,configurable:!0,enumerable:!0},n[r]={value:s,configurable:!0},r++}}n.length={value:r,configurable:!0},Ya.objectDefineProperties(e,n)}function as(e){if(e[of])return ls(e),e[of];var t=Ya.elementAttributesGetter.call(e);if(!t)return t;for(var r=0,n=t;r<n.length;r++){var o=n[r];if(Mt(o.name))return nf.prototype=t,e[of]=new nf(e,t),e[of]}return t}function ls(e){var t=e[of];t&&(is(t),ss(t,Ya.elementAttributesGetter.call(e)))}function cs(e){return void 0===e&&(e=""),e=e.toLowerCase(),lf.indexOf(e)!==-1}function ps(e,t){var r=Ya.getAttribute.call(e,"shape"),n=Ya.getAttribute.call(e,"coords"),o=0;if("default"===r)return fs(t);if(!r||!n)return null;if(n=n.split(","),!n.length)return null;for(o=0;o<n.length;o++)if(n[o]=parseInt(n[o],10),"number"!=typeof n[o])return null;var i=null;switch(r){case"rect":4===n.length&&(i={height:n[3]-n[1],left:n[0],top:n[1],width:n[2]-n[0]});break;case"circle":3===n.length&&(i={height:2*n[2],left:n[0]-n[2],top:n[1]-n[2],width:2*n[2]});break;case"poly":if(n.length>=6&&n.length%2===0){for(i={},i.left=i.right=n[0],i.top=i.bottom=n[1],o=2;o<n.length;o+=2)i.left=n[o]<i.left?n[o]:i.left,i.right=n[o]>i.right?n[o]:i.right;for(o=3;o<n.length;o+=2)i.top=n[o]<i.top?n[o]:i.top,i.bottom=n[o]>i.bottom?n[o]:i.bottom;i.height=i.bottom-i.top,i.width=i.right-i.left}}if(i){var s=ys(t);i.left+=s.left,i.top+=s.top}return i}function us(e){var t=vt(e);if(t){if(/^map$/i.test(e.tagName))return fs(t);if(/^area$/i.test(e.tagName)){var r=ps(e,t);if(r)return r}}return{height:0,left:0,top:0,width:0}}function hs(e){var t=St(e);if(t){var r=fs(t),n=Fe(t),o=ze(t)===t.clientWidth?0:Et(),i=Xe(t),s=dt(t,e),a=Math.max(s-Je(t)/i,0);return{height:i,left:r.left+n.left,top:r.top+n.top+Be(t).top+a*i,width:r.width-(n.left+n.right)-o}}return fs(e)}function ds(e){var t=qr(e,"tspan")||qr(e,"tref")||"textpath"===Nt(e),r=e.getBoundingClientRect(),n={height:t?e.offsetHeight:r.height,left:r.left+(document.body.scrollLeft||document.documentElement.scrollLeft),top:r.top+(document.body.scrollTop||document.documentElement.scrollTop),width:t?e.offsetWidth:r.width};if(t){var o=tt(e),i=rt(e),s=rt(o),a=qr(o,"body");return{height:n.height||r.height,left:a?e.offsetLeft||i.left:s.left+e.offsetLeft,top:a?e.offsetTop||i.top:s.top+e.offsetTop,width:n.width||r.width}}if(fl||pl)return n;var l=Ya.getAttribute.call(e,"stroke-width")||je(e,"stroke-width");return l=l?+l.replace(/px|em|ex|pt|pc|cm|mm|in/,""):1,l&&+l%2!==0&&(l=+l+1),!(qr(e,"line")||qr(e,"polyline")||qr(e,"polygon")||qr(e,"path"))||n.width&&n.height?(qr(e,"polygon")&&(n.height+=2*l,n.left-=l,n.top-=l,n.width+=2*l),n.height+=l,n.left-=l/2,n.top-=l/2,n.width+=l):!n.width&&n.height?(n.left-=l/2,n.width=l):n.width&&!n.height&&(n.height=l,n.top-=l/2),n}function fs(e){var t={};if(hr(e))t=us(e);else if(Ye(e))t=hs(e);else{var r=ys(e),n=wr(e)?ds(e):e.getBoundingClientRect();t={height:n.height,left:r.left,top:r.top,width:n.width}}return t.height=Math.round(t.height),t.left=Math.round(t.left),t.top=Math.round(t.top),t.width=Math.round(t.width),t}function ms(e,t,r){if("iframe"!==Nt(e))return!1;var n=fs(e),o=Fe(e),i=Be(e),s=n.left+o.left+i.left,a=n.top+o.top+i.top,l=n.left+n.width-o.right-i.right,c=n.top+n.height-o.bottom-i.bottom;return t>=s&&t<=l&&r>=a&&r<=c}function gs(e,t,r){var n=wr(e),o=n?ds(e):null;return{left:n?o.left+t.left:r.left+t.left,top:n?o.top+t.top:r.top+t.top}}function vs(e,t,r,n,o){var i=Fe(o);t.left+=i.left,t.top+=i.top;var s=ys(o),a=Be(o),l=null;if(wr(e)){var c=ds(e);l={x:c.left-(document.body.scrollLeft||document.documentElement.scrollLeft)+t.left,y:c.top-(document.body.scrollTop||document.documentElement.scrollTop)+t.top}}else l=Es({x:r.left+t.left,y:r.top+t.top},n);return{left:s.left+l.x+a.left,top:s.top+l.y+a.top}}function ys(e,t){if(void 0===t&&(t=Math.round),hr(e)){var r=us(e);return{left:r.left,top:r.top}}var n=xt(e),o=Dt(e,n),i=o?ft(n):null,s=rt(n===e?n.documentElement:e),a=n.body?Fe(n.body):{left:0,top:0},l=o&&i?vs:gs,c=l(e,a,s,n,i),p=c.left,u=c.top;return"function"==typeof t&&(p=t(p),u=t(u)),{left:p,top:u}}function Es(e,t){var r=t||document,n=Qe(r),o=Je(r),i=Qe(r.body),s=Je(r.body),a=0===n&&0!==i?i:n,l=0===o&&0!==s?s:o;return{x:e.x-a,y:e.y-l}}function Ss(e){for(var t=function(e){var t=Cf++;Ya.objectDefineProperty(Af.prototype,t,{get:function(){this.item(t)}})},r=0;r<e;r++)t()}function bs(e,t,r){if(t!==r){for(var n=function(){var r=t++;Ya.objectDefineProperty(e,r,{enumerable:!0,configurable:!0,get:function(){return e.item(r)}})};t<r;)n();for(;t>r;)delete e[--t];var o=Cf-xf;r>o&&Ss(r-o)}}function _s(e,t,r){if(r){for(var n=0,o=t;n<o.length;n++){var i=o[n];r.indexOf(i)===-1&&delete e[i]}for(var s=function(t){return e._collection[t]?void Ya.objectDefineProperty(e,t,{configurable:!0,get:function(){return this._refreshCollection(),e._collection[t]}}):"continue"},a=0,l=r;a<l.length;a++){var c=l[a];s(c)}}}function ws(e,t){var r=e._collection,n=e._namedProps?[]:null,o=e._filteredCollection;o.length=0;for(var i=0;i<t;i++){var s=r[i];if(!vr(s)&&(o.push(s),n)){var a=Ya.getAttribute.call(s,"name");null!==a&&n.push(a)}}return n}function xs(e,t){return e instanceof t==!1}function Cs(e,t){if(t.length<e.pattern.length)return!1;for(var r=0,n=0,o=null;r<e.pattern.length;){if(o=t[n]&e.mask[r],o!==e.pattern[r])return!1;n++,r++}return!0}function Ts(e,t){Br(t[0])?t=t[0]:Gr(t[0])&&(t=Wr(t[0])?t[0].buffer:t[0]);for(var r=new Ya.Uint8Array(t),n=0,o=e;n<o.length;n++){var i=o[n];if(Cs(i,r))return i.mime}return r=null,""}function As(e){return Ts(Rf,e)||Ts(jf,e)||Ts(Hf,e)||Ts(Ff,e)}function Ps(e,t){for(var r=e.length-1;r>=0;r--)try{if(e[r].iframe===t)return e[r]}catch(n){e.splice(r,1)}}function Is(e,t){var r=_t(e),n=e!==r?gt(e):null,o=r[qf];o||(o=[],Ya.objectDefineProperty(r,qf,{value:o}));var i=Ps(o,n);i?i.sandbox=t:o.push({iframe:n,sandbox:t})}function Ns(e){var t=_t(e),r=t[qf],n=e!==t?e.frameElement:null;if(r){var o=Ps(r,n);return o?o.sandbox:null}return null}function Ls(e,t){var r=Ya.anchorHrefGetter.call(e);return Xf||ks(),r?(Ya.anchorHrefSetter.call(Xf,ke(r)),t.call(Xf)):t.call($f)}function Os(e,t,r){var n=Ya.anchorHrefGetter.call(e);return Xf||ks(),n&&(Ya.anchorHrefSetter.call(Xf,ke(n)),t.call(Xf,r),e.setAttribute("href",Ya.anchorHrefGetter.call(Xf))),r}function ks(){Xf=Ya.createElement.call(document,"a"),$f=Ya.createElement.call(document,"a")}function Ds(){Xf=null,$f=null}function Ms(e){return e[Yf]}function Rs(e,t){t=pl&&al>10&&/MSPointer/.test(t)?t.replace("MS","").toLowerCase():t;var r=Ms(e);return r&&r[t]}function js(e){return!!e[Yf]}function Hs(e,t){for(var r=Ms(e)||{},n=0;n<t.length;n++)r[t[n]]||(r[t[n]]={internalBeforeHandlers:[],internalAfterHandlers:[],outerHandlers:[],outerHandlersWrapper:null,wrappers:[],cancelOuterHandlers:!1});js(e)||Ya.objectDefineProperty(e,Yf,{value:r,writable:!0})}function Fs(e){delete e[Yf]}function Vs(e,t,r){for(var n=Ms(e),o=0,i=t;o<i.length;o++){var s=i[o];n[s].internalAfterHandlers.unshift(r),Ya.addEventListener.call(e,s,r)}}function Us(e,t,r){for(var n=Ms(e),o=0,i=t;o<i.length;o++){var s=i[o];n[s].internalBeforeHandlers.unshift(r)}}function Bs(e,t,r){for(var n=Ms(e),o=0,i=t;o<i.length;o++){var s=i[o];n[s].internalBeforeHandlers.push(r)}}function Gs(e,t,r){for(var n=Ms(e),o=0,i=t;o<i.length;o++){var s=i[o],a=n[s].internalBeforeHandlers,l=a.indexOf(r);l>-1&&a.splice(l,1)}}function Ws(e,t,r,n){e.outerHandlers.push({fn:t,useCapture:n||!1}),e.wrappers.push(r)}function qs(e,t,r){for(var n=e.outerHandlers,o=e.wrappers,i=null,s=0;s<n.length;s++){var a=n[s];if(a.fn===t&&(a.useCapture||!1)===(r||!1))return i=o[s],o.splice(s,1),n.splice(s,1),i}return null}function zs(e,t){for(var r=Ms(e),n=0,o=r[t].internalAfterHandlers;n<o.length;n++){var i=o[n];Ya.removeEventListener.call(e,t,i),Ya.addEventListener.call(e,t,i)}}function Ks(){}function Xs(e,t,r){var n=e[t];switch(r.length){case 1:return n.call(e,r[0]);case 2:return n.call(e,r[0],r[1]);case 3:return n.call(e,r[0],r[1],r[2]);case 4:return n.call(e,r[0],r[1],r[2],r[3]);case 5:return n.call(e,r[0],r[1],r[2],r[3],r[4]);default:return n.apply(e,r)}}function $s(e,t){return e.sid===t.sid&&e.key===t.key&&e.domain===t.domain&&e.path===t.path}function Ys(e){for(var t=[],r=[],n=0;n<e.length;n++){for(var o=n+1;o<e.length;o++)if($s(e[n],e[o])){if(e[n].lastAccessed>e[o].lastAccessed){var i=e[n];e[n]=e[o],e[o]=i}t.push(e[n]);break}o===e.length&&r.push(e[n])}return{outdated:t,actual:r}}function Qs(e){return(e.isServerSync?Am.server:"")+(e.isClientSync?Am.client:"")+(e.isWindowSync?Am.window:"")}function Js(e){var t=Qs(e),r=encodeURIComponent(e.key),n=encodeURIComponent(e.domain),o=encodeURIComponent(e.path),i="Infinity"!==e.expires?e.expires.getTime().toString(wm):"",s=e.lastAccessed.getTime().toString(wm);return t+"|"+e.sid+"|"+r+"|"+n+"|"+o+"|"+i+"|"+s}function Zs(e){for(var t=e?e.split(";"):"",r=[],n=0,o=t;n<o.length;n++){var i=o[n],s=ra(T(i));s&&r.push(s)}return Ys(r)}function ea(e){e.syncKey=e.syncKey||Js(e),e.cookieStr=e.cookieStr||e.syncKey+"="+e.value}function ta(e){return e.cookieStr?e.cookieStr+";path=/":Js(e)+"="+e.value+";path=/"}function ra(e){var t=Tm.exec(e)||[],r=t[1],n=t[2],o=void 0!==r&&void 0!==n&&r.split("|");return o&&o.length!==Cm?null:{isServerSync:o[0].indexOf(Am.server)>-1,isClientSync:o[0].indexOf(Am.client)>-1,isWindowSync:o[0].indexOf(Am.window)>-1,sid:o[1],key:decodeURIComponent(o[2]),domain:decodeURIComponent(o[3]),path:decodeURIComponent(o[4]),expires:o[5]?new Date(parseInt(o[5],wm)):"Infinity",lastAccessed:new Date(parseInt(o[6],wm)),syncKey:r,value:n,cookieStr:e}}function na(e,t){var r,n;"server"in t&&(e.isServerSync=t.server),"client"in t&&(e.isClientSync=t.client),"window"in t&&(e.isWindowSync=t.window);var o=Qs(e);e.syncKey=null===(r=e.syncKey)||void 0===r?void 0:r.replace(Pm,o),e.cookieStr=null===(n=e.cookieStr)||void 0===n?void 0:n.replace(Pm,o)}function oa(e,t){return t.isServerSync===e.isServerSync&&t.sid===e.sid&&t.key===e.key&&t.domain===e.domain&&t.path===e.path&&t.lastAccessed>e.lastAccessed}function ia(e){return e.syncKey+xm}function sa(){if(!Nm)for(Nm=window.top;Nm.opener&&Nm!==Nm.opener;)Nm=Nm.opener.top;return Nm}function aa(e){e=T(e);var t=jm.exec(e);t&&(e=e.slice(0,t.index));var r=e.indexOf(";"),n=r>-1?e.substr(0,r):e,o=Rm.exec(n);if(!o)return null;var i={key:o[1]?T(o[2]):"",value:T(o[3])};if(r===-1)return i;var s=T(e.slice(r).replace(/^\s*;\s*/,""));if(0===s.length)return i;for(var a=s.split(/\s*;\s*/);a.length;){var l=a.shift(),c=l.indexOf("="),p=null,u=null,h=null;switch(c===-1?p=l:(p=l.substr(0,c),u=T(l.substr(c+1))),p=T(p.toLowerCase())){case"expires":u=u.replace(Hm,"$1 $2 $3"),h=ha(Date.parse(u)),h&&(i.expires=h);break;case"max-age":i.maxAge=u;break;case"path":i.path=u;break;case"secure":i.secure=!0;break;case"httponly":i.httpOnly=!0;break;case"domain":i.domain=T(u.replace(/^\./,""))}}return i}function la(e){var t=e.value||"";return""!==e.key&&(t=e.key+"="+t),t}function ca(e,t){var r=t.hostname,n=t.pathname;if(e.domain||(e.domain=r),!e.path||"/"!==e.path.charAt(0)){var o=n,i=o.slice(0,o.lastIndexOf("/"));e.path=i||"/"}e.expires||(e.expires="Infinity")}function pa(e,t){if(!t)return!0;if(e=e.toLowerCase(),t=t.toLowerCase(),e===t)return!0;var r=e.indexOf(t);return r>0&&e.length===t.length+r&&"."===e.charAt(r-1)}function ua(e,t){return!t||"/"!==t.charAt(0)||e===t||e.length>t.length&&0===e.indexOf(t)&&("/"===t.charAt(t.length-1)||"/"===e.charAt(t.length))}function ha(e){if(arguments.length){if(isNaN(e))return null}else e=Ya.dateNow();return e=1e3*Math.floor(e/1e3),new Ya.date(e)}function da(e){e=e.replace(/\r\n$/,"");var t=[];if(""===e)return t;e=e.split(/\r\n/);for(var r=0,n=e;r<n.length;r++){var o=n[r];"#"!==o&&t.push(o)}return t}function fa(e){return"text"===e?"text/plain":"url"===e?"text/uri-list":e}function ma(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e=e||{};var n=null,o=null;"object"!=typeof e&&"[object Function]"!==e.toString()&&(e={});for(var i=0;i<t.length;i++)if(n=t[i],null!==n)for(var s in n)o=n[s],e!==o&&void 0!==o&&(e[s]=o);return e}function ga(e){return e.configurable=!0,e.enumerable=!0,e}function va(e){return Lg+e}function ya(e){return e.indexOf(Lg)>-1}function Ea(e){return e.replace(Lg,"")}function Sa(e){var t=String(e).toLowerCase();return t===xh.wwwAuthenticate||t===xh.proxyAuthenticate}function ba(e){return Og+e}function _a(e){return e.indexOf(Og)>-1}function wa(e){return e.replace(Og,"")}function xa(e){var t=String(e).toLowerCase();return t===xh.authorization||t===xh.proxyAuthorization}function Ca(e){switch(e=String(e).toLowerCase()){case"omit":return Va.omit;case"same-origin":return Va.sameOrigin;case"include":return Va.include;default:return Va.unknown}}function Ta(e,t){return Yg+e+"|"+t}function Aa(){var e=new Ya.Uint16Array(1);return Ya.cryptoGetRandomValues.call(Ya.crypto,e),e[0]}function Pa(){return new Ua(function(e){return Ya.setTimeout.call(window,e,0)})}function Ia(){var e=Ya.querySelector.call(document,Sv);e&&xi(e)}var Na,La="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Oa="pending",ka="settled",Da="fulfilled",Ma="rejected",Ra=function(){},ja="undefined"!=typeof La&&"undefined"!=typeof La.process&&"function"==typeof La.process.emit,Ha="undefined"==typeof setImmediate?setTimeout:setImmediate,Fa=[];f.prototype={constructor:f,_state:Oa,_then:null,_data:void 0,_handled:!1,then:function(e,t){var r={owner:this,then:new this.constructor(Ra),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===Ma&&ja&&n(d,this)),this._state===Da||this._state===Ma?n(i,r):this._then.push(r),r.then},"catch":function(e){return this.then(null,e)}},f.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new f(function(t,r){function n(e){return s++,function(r){i[e]=r,--s||t(i)}}for(var o,i=[],s=0,a=0;a<e.length;a++)o=e[a],o&&"function"==typeof o.then?o.then(n(a),r):i[a]=o;s||t(i)})},f.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new f(function(t,r){for(var n,o=0;o<e.length;o++)n=e[o],n&&"function"==typeof n.then?n.then(t,r):t(n)})},f.resolve=function(e){return e&&"object"==typeof e&&e.constructor===f?e:new f(function(t){t(e)})},f.reject=function(e){return new f(function(t,r){r(e)})};var Va,Ua=f,Ba=function(e,t){return(Ba=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},Ga={processDomMethodName:"hammerhead|process-dom-method",processedContext:"hammerhead|processed-context",documentWasCleaned:"hammerhead|document-was-cleaned",documentCharset:"hammerhead|document-charset",iframeNativeMethods:"hammerhead|iframe-native-methods",hammerhead:"%hammerhead%",selection:"hammerhead|selection",shadowUIElement:"hammerhead|shadow-ui-element",forceProxySrcForImage:"hammerhead|image|force-proxy-src-flag",skipNextLoadEventForImage:"hammerhead|image|skip-next-load-event-flag",cachedImage:"hammerhead|image|cached-image",sandboxIsReattached:"hammerhead|sandbox-is-reattached",nativeStrRepresentation:"hammerhead|native-string-representation",currentBaseUrl:"hammerhead|current-base-url"},Wa="undefined"==typeof window&&"object"==typeof self,qa=Wa?self:window,za={isInWorker:Wa,global:qa,isServiceWorker:Wa&&!qa.XMLHttpRequest},Ka=Object.freeze({__proto__:null,createOverriddenDescriptor:y,overrideDescriptor:E,overrideStringRepresentation:_,isNativeFunction:w,overrideFunction:x,overrideConstructor:C}),Xa=/\[native code]/,$a=function(){function e(e,t){t=t||za.global,this.refreshWindowMeths(t,za.isInWorker),this.refreshWorkerMeths(t),za.isInWorker||(this.refreshDocumentMeths(e,t),this.refreshElementMeths(e,t))}return e._getDocumentPropOwnerName=function(e,t){
  return e.hasOwnProperty(t)?"Document":"HTMLDocument"},e.prototype.getStoragesPropsOwner=function(e){return this.isStoragePropsLocatedInProto?e.Window.prototype:e},e.prototype.refreshWorkerMeths=function(e){this.importScripts=e.importScripts},e.prototype.refreshDocumentMeths=function(t,r){t=t||document,r=r||window;var n=r.Document.prototype;this.createDocumentFragment=n.createDocumentFragment,this.createElement=n.createElement,this.createElementNS=n.createElementNS,this.createTextNode=n.createTextNode,this.documentOpenPropOwnerName=e._getDocumentPropOwnerName(n,"open"),this.documentClosePropOwnerName=e._getDocumentPropOwnerName(n,"close"),this.documentWritePropOwnerName=e._getDocumentPropOwnerName(n,"write"),this.documentWriteLnPropOwnerName=e._getDocumentPropOwnerName(n,"writeln"),this.documentOpen=r[this.documentOpenPropOwnerName].prototype.open,this.documentClose=r[this.documentClosePropOwnerName].prototype.close,this.documentWrite=r[this.documentWritePropOwnerName].prototype.write,this.documentWriteLn=r[this.documentWriteLnPropOwnerName].prototype.writeln,this.elementFromPoint=n.elementFromPoint,this.caretRangeFromPoint=n.caretRangeFromPoint,this.caretPositionFromPoint=n.caretPositionFromPoint,this.getElementById=n.getElementById,this.getElementsByClassName=n.getElementsByClassName,this.getElementsByName=n.getElementsByName,this.getElementsByTagName=n.getElementsByTagName,this.querySelector=n.querySelector,this.querySelectorAll=n.querySelectorAll,this.createHTMLDocument=r.DOMImplementation.prototype.createHTMLDocument,t.registerElement&&(this.registerElement=n.registerElement),r.EventTarget||(this.documentAddEventListener=n.addEventListener,this.documentRemoveEventListener=n.removeEventListener),this.documentCreateEvent=n.createEvent,this.documentCreateTouch=n.createTouch,this.documentCreateTouchList=n.createTouchList,this.documentCookiePropOwnerName=e._getDocumentPropOwnerName(n,"cookie");var o=r.Object.getOwnPropertyDescriptor(r[this.documentCookiePropOwnerName].prototype,"cookie");if(!this.isNativeCode(o.get)||!this.isNativeCode(o.get.toString))try{var i=r.parent["%hammerhead%"].nativeMethods;o.get=i.documentCookieGetter,o.set=i.documentCookieSetter}catch(s){}this.documentReferrerGetter=r.Object.getOwnPropertyDescriptor(n,"referrer").get,this.documentStyleSheetsGetter=r.Object.getOwnPropertyDescriptor(n,"styleSheets").get,this.documentActiveElementGetter=r.Object.getOwnPropertyDescriptor(n,"activeElement").get,this.documentCookieGetter=o.get,this.documentCookieSetter=o.set;var a=r.Object.getOwnPropertyDescriptor(n,"documentURI");a&&(this.documentDocumentURIGetter=a.get);var l=r.Object.getOwnPropertyDescriptor(n,"title");this.documentTitleGetter=l.get,this.documentTitleSetter=l.set},e.prototype.refreshElementMeths=function(e,t){var r=this;t=t||window;var n=function(t){return r.createElement.call(e||document,t)},o=n("div"),i=function(t){return r.createTextNode.call(e||document,t)},s=i("text");if(this.appendChild=t.Node.prototype.appendChild,this.append=t.Element.prototype.append,this.prepend=t.Element.prototype.prepend,this.after=t.Element.prototype.after,this.attachShadow=t.Element.prototype.attachShadow,this.replaceChild=o.replaceChild,this.cloneNode=o.cloneNode,this.elementGetElementsByClassName=o.getElementsByClassName,this.elementGetElementsByTagName=o.getElementsByTagName,this.elementQuerySelector=o.querySelector,this.elementQuerySelectorAll=o.querySelectorAll,this.getAttribute=o.getAttribute,this.getAttributeNS=o.getAttributeNS,this.insertBefore=o.insertBefore,this.insertCell=n("tr").insertCell,this.insertTableRow=n("table").insertRow,this.insertTBodyRow=n("tbody").insertRow,this.removeAttribute=o.removeAttribute,this.removeAttributeNS=o.removeAttributeNS,this.removeChild=t.Node.prototype.removeChild,this.remove=t.Element.prototype.remove,this.elementReplaceWith=t.Element.prototype.replaceWith,this.setAttribute=o.setAttribute,this.setAttributeNS=o.setAttributeNS,this.hasAttribute=o.hasAttribute,this.hasAttributeNS=o.hasAttributeNS,this.hasAttributes=o.hasAttributes,this.anchorToString=t.HTMLAnchorElement.prototype.toString,this.matches=o.matches||o.msMatchesSelector,this.closest=o.closest,this.insertAdjacentMethodsOwner=t.Element.prototype.hasOwnProperty("insertAdjacentElement")?t.Element.prototype:t.HTMLElement.prototype,this.insertAdjacentElement=this.insertAdjacentMethodsOwner.insertAdjacentElement,this.insertAdjacentHTML=this.insertAdjacentMethodsOwner.insertAdjacentHTML,this.insertAdjacentText=this.insertAdjacentMethodsOwner.insertAdjacentText,this.appendData=s.appendData,!this.isNativeCode(this.elementGetElementsByTagName))try{var a=t.parent["%hammerhead%"].nativeMethods;this.elementGetElementsByTagName=a.elementGetElementsByTagName}catch(l){}t.EventTarget?(this.addEventListener=t.EventTarget.prototype.addEventListener,this.removeEventListener=t.EventTarget.prototype.removeEventListener,this.dispatchEvent=t.EventTarget.prototype.dispatchEvent):(this.addEventListener=o.addEventListener,this.removeEventListener=o.removeEventListener,this.dispatchEvent=o.dispatchEvent),this.blur=o.blur,this.click=o.click,this.focus=o.focus,this.select=window.TextRange?n("body").createTextRange().select:null,this.setSelectionRange=n("input").setSelectionRange,this.textAreaSetSelectionRange=n("textarea").setSelectionRange,this.svgFocus=t.SVGElement?t.SVGElement.prototype.focus:this.focus,this.svgBlur=t.SVGElement?t.SVGElement.prototype.blur:this.blur,this.htmlElementStylePropOwnerName=t.Element.prototype.hasOwnProperty("style")?"Element":"HTMLElement";var c=t.Object.getOwnPropertyDescriptor(t[this.htmlElementStylePropOwnerName].prototype,"style");this.htmlElementStyleGetter=c.get,c.set&&(this.htmlElementStyleSetter=c.set);var p=t.Object.getOwnPropertyDescriptor(t.CSSStyleDeclaration.prototype,"cssText");this.styleCssTextGetter=p.get,this.styleCssTextSetter=p.set},e.prototype._refreshGettersAndSetters=function(e,t){void 0===t&&(t=!1),e=e||window;var r=e.constructor.prototype;this.isEventPropsLocatedInProto=r.hasOwnProperty("onerror");var n=this.isEventPropsLocatedInProto?r:e,o=e.Object.getOwnPropertyDescriptor(n,"onbeforeunload"),i=e.Object.getOwnPropertyDescriptor(n,"onunload"),s=e.Object.getOwnPropertyDescriptor(n,"onpagehide"),a=e.Object.getOwnPropertyDescriptor(n,"onmessage"),l=e.Object.getOwnPropertyDescriptor(n,"onerror"),c=e.Object.getOwnPropertyDescriptor(n,"onhashchange");this.winOnBeforeUnloadSetter=o&&o.set,this.winOnUnloadSetter=i&&i.set,this.winOnPageHideSetter=s&&s.set,this.winOnMessageSetter=a&&a.set,this.winOnErrorSetter=l&&l.set,this.winOnHashChangeSetter=c&&c.set;var p=e.Object.getOwnPropertyDescriptor(n,"onunhandledrejection");if(p&&(this.winOnUnhandledRejectionSetter=p.set),e.WebSocket){var u=e.Object.getOwnPropertyDescriptor(e.WebSocket.prototype,"url");u&&u.get&&u.configurable&&(this.webSocketUrlGetter=u.get)}this.messageEventOriginGetter=e.Object.getOwnPropertyDescriptor(e.MessageEvent.prototype,"origin").get,e.PerformanceNavigationTiming&&(this.performanceEntryNameGetter=e.Object.getOwnPropertyDescriptor(e.PerformanceEntry.prototype,"name").get);var h=e.Object.getOwnPropertyDescriptor(e.MessageEvent.prototype,"data");if(h&&(this.messageEventDataGetter=h.get),e.fetch&&(this.responseStatusGetter=e.Object.getOwnPropertyDescriptor(e.Response.prototype,"status").get,this.responseTypeGetter=e.Object.getOwnPropertyDescriptor(e.Response.prototype,"type").get,this.responseUrlGetter=e.Object.getOwnPropertyDescriptor(e.Response.prototype,"url").get,this.requestUrlGetter=e.Object.getOwnPropertyDescriptor(e.Request.prototype,"url").get,this.requestReferrerGetter=e.Object.getOwnPropertyDescriptor(e.Request.prototype,"referrer").get),e.XMLHttpRequest){var d=e.Object.getOwnPropertyDescriptor(e.XMLHttpRequest.prototype,"responseURL");d&&(this.xhrResponseURLGetter=d.get)}if(e.Window){this.isStoragePropsLocatedInProto=e.Window.prototype.hasOwnProperty("localStorage");var f=this.getStoragesPropsOwner(e);this.winLocalStorageGetter=e.Object.getOwnPropertyDescriptor(f,"localStorage").get,this.winSessionStorageGetter=e.Object.getOwnPropertyDescriptor(f,"sessionStorage").get}if(!t){this.storageGetItem=e.Storage.prototype.getItem,this.storageSetItem=e.Storage.prototype.setItem,this.storageRemoveItem=e.Storage.prototype.removeItem,this.storageClear=e.Storage.prototype.clear,this.storageKey=e.Storage.prototype.key,this.storageLengthGetter=e.Object.getOwnPropertyDescriptor(e.Storage.prototype,"length");var m=e.Object.getOwnPropertyDescriptor(e.HTMLObjectElement.prototype,"data"),g=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"type"),v=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"value"),y=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"disabled"),E=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"required"),S=e.Object.getOwnPropertyDescriptor(e.HTMLTextAreaElement.prototype,"value"),b=e.Object.getOwnPropertyDescriptor(e.HTMLImageElement.prototype,"src"),_=e.Object.getOwnPropertyDescriptor(e.HTMLScriptElement.prototype,"src"),w=e.Object.getOwnPropertyDescriptor(e.HTMLScriptElement.prototype,"integrity"),x=e.Object.getOwnPropertyDescriptor(e.HTMLEmbedElement.prototype,"src"),C=e.Object.getOwnPropertyDescriptor(e.HTMLSourceElement.prototype,"src"),T=e.Object.getOwnPropertyDescriptor(e.HTMLMediaElement.prototype,"src"),A=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"src"),P=e.Object.getOwnPropertyDescriptor(e.HTMLFrameElement.prototype,"src"),I=e.Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"src"),N=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"href"),L=e.Object.getOwnPropertyDescriptor(e.HTMLLinkElement.prototype,"href"),O=e.Object.getOwnPropertyDescriptor(e.HTMLLinkElement.prototype,"integrity"),k=e.Object.getOwnPropertyDescriptor(e.HTMLLinkElement.prototype,"rel"),D=e.Object.getOwnPropertyDescriptor(e.HTMLLinkElement.prototype,"as"),M=e.Object.getOwnPropertyDescriptor(e.HTMLAreaElement.prototype,"href"),R=e.Object.getOwnPropertyDescriptor(e.HTMLBaseElement.prototype,"href"),j=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"host"),H=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"hostname"),F=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"pathname"),V=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"port"),U=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"protocol"),B=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"search"),G=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"target"),W=e.Object.getOwnPropertyDescriptor(e.HTMLFormElement.prototype,"target"),q=e.Object.getOwnPropertyDescriptor(e.HTMLAreaElement.prototype,"target"),z=e.Object.getOwnPropertyDescriptor(e.HTMLBaseElement.prototype,"target"),K=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"formTarget"),X=e.Object.getOwnPropertyDescriptor(e.HTMLButtonElement.prototype,"formTarget"),$=e.Object.getOwnPropertyDescriptor(e.SVGImageElement.prototype,"href"),Y=e.Object.getOwnPropertyDescriptor(e.SVGAnimatedString.prototype,"animVal"),Q=e.Object.getOwnPropertyDescriptor(e.SVGAnimatedString.prototype,"baseVal"),J=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"autocomplete"),Z=e.Object.getOwnPropertyDescriptor(e.HTMLFormElement.prototype,"action"),ee=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"formAction"),te=e.Object.getOwnPropertyDescriptor(e.HTMLButtonElement.prototype,"formAction"),re=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"textContent"),ne=e.Object.getOwnPropertyDescriptor(e.HTMLElement.prototype,"innerText"),oe=e.Object.getOwnPropertyDescriptor(e.HTMLScriptElement.prototype,"text"),ie=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"text"),se=e.Object.getOwnPropertyDescriptor(e.HTMLTitleElement.prototype,"text"),ae=e.Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"sandbox"),le=e.Object.getOwnPropertyDescriptor(e.HTMLMetaElement.prototype,"httpEquiv"),ce=e.Object.getOwnPropertyDescriptor(e,"origin");ce&&(this.windowOriginGetter=ce.get,this.windowOriginSetter=ce.set),y&&(this.inputDisabledSetter=y.set,this.inputDisabledGetter=y.get),this.elementHTMLPropOwnerName=e.Element.prototype.hasOwnProperty("innerHTML")?"Element":"HTMLElement";var pe=e.Object.getOwnPropertyDescriptor(e[this.elementHTMLPropOwnerName].prototype,"innerHTML"),ue=e.Object.getOwnPropertyDescriptor(e[this.elementHTMLPropOwnerName].prototype,"outerHTML");this.objectDataSetter=m.set,this.inputTypeSetter=g.set,this.inputValueSetter=v.set,this.inputRequiredSetter=E.set,this.textAreaValueSetter=S.set,this.imageSrcSetter=b.set,this.scriptSrcSetter=_.set,this.embedSrcSetter=x.set,this.sourceSrcSetter=C.set,this.mediaSrcSetter=T.set,this.inputSrcSetter=A.set,this.frameSrcSetter=P.set,this.iframeSrcSetter=I.set,this.anchorHrefSetter=N.set,this.linkHrefSetter=L.set,this.linkRelSetter=k.set,this.linkAsSetter=D&&D.set,this.areaHrefSetter=M.set,this.baseHrefSetter=R.set,this.anchorHostSetter=j.set,this.anchorHostnameSetter=H.set,this.anchorPathnameSetter=F.set,this.anchorPortSetter=V.set,this.anchorProtocolSetter=U.set,this.anchorSearchSetter=B.set,this.anchorTargetSetter=G.set,this.formTargetSetter=W.set,this.areaTargetSetter=q.set,this.baseTargetSetter=z.set,this.inputFormTargetSetter=K.set,this.buttonFormTargetSetter=X.set,this.svgAnimStrBaseValSetter=Q.set,this.inputAutocompleteSetter=J.set,this.formActionSetter=Z.set,this.inputFormActionSetter=ee.set,this.buttonFormActionSetter=te.set,this.iframeSandboxSetter=ae.set,this.metaHttpEquivSetter=le.set,this.htmlElementOnloadSetter=e.Object.getOwnPropertyDescriptor(e.HTMLElement.prototype,"onload").set,this.nodeTextContentSetter=re.set,this.htmlElementInnerTextSetter=ne.set,this.scriptTextSetter=oe.set,this.anchorTextSetter=ie.set,this.elementInnerHTMLSetter=pe.set,this.elementOuterHTMLSetter=ue.set,w&&O&&(this.scriptIntegritySetter=w.set,this.linkIntegritySetter=O.set),this.titleElementTextSetter=se.set,this.elementClassListPropOwnerName=e.Element.prototype.hasOwnProperty("classList")?"Element":"HTMLElement",this.elementClassListGetter=e.Object.getOwnPropertyDescriptor(e[this.elementClassListPropOwnerName].prototype,"classList").get,this.htmlCollectionLengthGetter=e.Object.getOwnPropertyDescriptor(e.HTMLCollection.prototype,"length").get,this.nodeListLengthGetter=e.Object.getOwnPropertyDescriptor(e.NodeList.prototype,"length").get,this.elementChildElementCountGetter=e.Object.getOwnPropertyDescriptor(e.Element.prototype,"childElementCount").get,this.inputFilesGetter=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"files").get,this.styleSheetHrefGetter=e.Object.getOwnPropertyDescriptor(e.StyleSheet.prototype,"href").get,this.objectDataGetter=m.get,this.inputTypeGetter=g.get,this.inputValueGetter=v.get,this.inputRequiredGetter=E.get,this.textAreaValueGetter=S.get,this.imageSrcGetter=b.get,this.scriptSrcGetter=_.get,this.embedSrcGetter=x.get,this.sourceSrcGetter=C.get,this.mediaSrcGetter=T.get,this.inputSrcGetter=A.get,this.frameSrcGetter=P.get,this.iframeSrcGetter=I.get,this.anchorHrefGetter=N.get,this.linkHrefGetter=L.get,this.linkRelGetter=k.get,this.areaHrefGetter=M.get,this.baseHrefGetter=R.get,this.anchorHostGetter=j.get,this.anchorHostnameGetter=H.get,this.anchorPathnameGetter=F.get,this.anchorPortGetter=V.get,this.anchorProtocolGetter=U.get,this.anchorSearchGetter=B.get,this.anchorTargetGetter=G.get,this.formTargetGetter=W.get,this.areaTargetGetter=q.get,this.baseTargetGetter=z.get,this.inputFormTargetGetter=K.get,this.buttonFormTargetGetter=X.get,this.svgImageHrefGetter=$.get,this.svgAnimStrAnimValGetter=Y.get,this.svgAnimStrBaseValGetter=Q.get,this.inputAutocompleteGetter=J.get,this.formActionGetter=Z.get,this.inputFormActionGetter=ee.get,this.buttonFormActionGetter=te.get,this.iframeSandboxGetter=ae.get,this.metaHttpEquivGetter=le.get,this.contentWindowGetter=e.Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"contentWindow").get,this.contentDocumentGetter=e.Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"contentDocument").get,this.frameContentWindowGetter=e.Object.getOwnPropertyDescriptor(e.HTMLFrameElement.prototype,"contentWindow").get,this.nodeTextContentGetter=re.get,this.htmlElementInnerTextGetter=ne.get,this.scriptTextGetter=oe.get,this.anchorTextGetter=ie.get,this.elementInnerHTMLGetter=pe.get,this.elementOuterHTMLGetter=ue.get,this.nodeFirstChildGetter=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"firstChild").get,this.nodeLastChildGetter=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"lastChild").get,this.nodeNextSiblingGetter=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"nextSibling").get,this.nodePrevSiblingGetter=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"previousSibling").get,this.nodeParentNodeGetter=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"parentNode").get,this.nodeChildNodesGetter=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"childNodes").get,this.elementFirstElementChildGetter=e.Object.getOwnPropertyDescriptor(e.Element.prototype,"firstElementChild").get,this.elementLastElementChildGetter=e.Object.getOwnPropertyDescriptor(e.Element.prototype,"lastElementChild").get,this.elementNextElementSiblingGetter=e.Object.getOwnPropertyDescriptor(e.Element.prototype,"nextElementSibling").get,this.elementPrevElementSiblingGetter=e.Object.getOwnPropertyDescriptor(e.Element.prototype,"previousElementSibling").get,w&&O&&(this.scriptIntegrityGetter=w.get,this.linkIntegrityGetter=O.get);var he=e.Element.prototype.hasOwnProperty("children")?e.Element.prototype:e.HTMLElement.prototype;this.elementChildrenGetter=e.Object.getOwnPropertyDescriptor(he,"children").get;var de=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"origin");de&&(this.anchorOriginGetter=de.get);var fe=e.Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"srcdoc");fe&&(this.iframeSrcdocGetter=fe.get,this.iframeSrcdocSetter=fe.set);var me=e.Object.getOwnPropertyDescriptor(e.CSSStyleSheet.prototype,"href");me&&(this.cssStyleSheetHrefGetter=me.get);var ge=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"baseURI");ge&&(this.nodeBaseURIGetter=ge.get),this.elementAttributesPropOwnerName=e.Element.prototype.hasOwnProperty("attributes")?"Element":"Node",this.elementAttributesGetter=e.Object.getOwnPropertyDescriptor(e[this.elementAttributesPropOwnerName].prototype,"attributes").get;var ve=e.Object.getOwnPropertyDescriptor(e.HTMLHtmlElement.prototype,"manifest");ve&&(this.htmlManifestGetter=ve.get,this.htmlManifestSetter=ve.set),this.titleElementTextGetter=se.get,this.mutationRecordNextSiblingGetter=e.Object.getOwnPropertyDescriptor(e.MutationRecord.prototype,"nextSibling").get,this.mutationRecordPrevSiblingGetter=e.Object.getOwnPropertyDescriptor(e.MutationRecord.prototype,"previousSibling").get}},e.prototype.refreshWindowMeths=function(e,t){void 0===t&&(t=!1),e=e||window;var r=e.constructor.prototype;if(this.eval=e.eval,this.formSubmit=e.HTMLFormElement&&e.HTMLFormElement.prototype.submit,this.documentFragmentQuerySelector=e.DocumentFragment&&e.DocumentFragment.prototype.querySelector,this.documentFragmentQuerySelectorAll=e.DocumentFragment&&e.DocumentFragment.prototype.querySelectorAll,this.preventDefault=e.Event.prototype.preventDefault,this.historyPushState=e.history&&e.history.pushState,this.historyReplaceState=e.history&&e.history.replaceState,this.postMessage=e.postMessage||r.postMessage,this.windowOpen=e.open||r.open,this.setTimeout=e.setTimeout||r.setTimeout,this.setInterval=e.setInterval||r.setInterval,this.clearTimeout=e.clearTimeout||r.clearTimeout,this.clearInterval=e.clearInterval||r.clearInterval,this.registerProtocolHandler=e.navigator.registerProtocolHandler,this.sendBeacon=e.Navigator&&e.Navigator.prototype.sendBeacon,e.XMLHttpRequest){var n=(e.EventTarget||e.XMLHttpRequest).prototype;this.xhrAbort=e.XMLHttpRequest.prototype.abort,this.xhrOpen=e.XMLHttpRequest.prototype.open,this.xhrSend=e.XMLHttpRequest.prototype.send,this.xhrAddEventListener=n.addEventListener,this.xhrRemoveEventListener=n.removeEventListener,this.xhrDispatchEvent=n.dispatchEvent,this.xhrGetResponseHeader=e.XMLHttpRequest.prototype.getResponseHeader,this.xhrGetAllResponseHeaders=e.XMLHttpRequest.prototype.getAllResponseHeaders,this.xhrSetRequestHeader=e.XMLHttpRequest.prototype.setRequestHeader,this.xhrOverrideMimeType=e.XMLHttpRequest.prototype.overrideMimeType}try{this.registerServiceWorker=e.navigator.serviceWorker.register,this.getRegistrationServiceWorker=e.navigator.serviceWorker.getRegistration}catch(o){this.registerServiceWorker=null,this.getRegistrationServiceWorker=null}this.createContextualFragment=e.Range&&e.Range.prototype.createContextualFragment;var i=e.performance;if(i){var s=e.performance.now||e.Performance.prototype.now;this.performanceNow=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.apply(i,e)}}if(this.fetch=e.fetch,this.Request=e.Request,e.Headers&&(this.Headers=e.Headers,this.headersSet=e.Headers.prototype.set,this.headersGet=e.Headers.prototype.get,this.headersDelete=e.Headers.prototype["delete"],this.headersEntries=e.Headers.prototype.entries,this.headersForEach=e.Headers.prototype.forEach,this.headersValues=e.Headers.prototype.values),this.windowAddEventListener=e.addEventListener||r.addEventListener,this.windowRemoveEventListener=e.removeEventListener||r.removeEventListener,this.windowDispatchEvent=e.dispatchEvent,this.WindowPointerEvent=e.PointerEvent||r.PointerEvent,this.WindowMSPointerEvent=e.MSPointerEvent||r.MSPointerEvent,this.WindowTouch=e.Touch||r.Touch,this.WindowTouchEvent=e.TouchEvent||r.TouchEvent,this.WindowKeyboardEvent=e.KeyboardEvent||r.KeyboardEvent,this.WindowFocusEvent=e.FocusEvent||r.FocusEvent,this.WindowTextEvent=e.TextEvent||r.TextEvent,this.WindowInputEvent=e.InputEvent||r.InputEvent,this.WindowMouseEvent=e.MouseEvent||r.MouseEvent,this.eventTargetGetter=e.Object.getOwnPropertyDescriptor(e.Event.prototype,"target").get,this.canvasContextDrawImage=e.CanvasRenderingContext2D&&e.CanvasRenderingContext2D.prototype.drawImage,this.formDataAppend=e.FormData&&e.FormData.prototype.append,this.date=e.Date,this.dateNow=e.Date.now,this.math=e.Math,this.mathRandom=e.Math.random,this.objectToString=e.Object.prototype.toString,this.objectAssign=e.Object.assign,this.objectKeys=e.Object.keys,this.objectDefineProperty=e.Object.defineProperty,this.objectDefineProperties=e.Object.defineProperties,this.objectCreate=e.Object.create,this.objectIsExtensible=e.Object.isExtensible,this.objectIsFrozen=e.Object.isFrozen,this.objectGetOwnPropertyDescriptor=e.Object.getOwnPropertyDescriptor,this.objectHasOwnProperty=e.Object.hasOwnProperty,this.objectGetOwnPropertyNames=e.Object.getOwnPropertyNames,this.objectGetPrototypeOf=e.Object.getPrototypeOf,this.objectSetPrototypeOf=e.Object.setPrototypeOf,this.objectGetOwnPropertySymbols=e.Object.getOwnPropertySymbols,this.arraySlice=e.Array.prototype.slice,this.arrayConcat=e.Array.prototype.concat,this.arrayFilter=e.Array.prototype.filter,this.arrayFind=e.Array.prototype.find,this.arrayMap=e.Array.prototype.map,this.arrayJoin=e.Array.prototype.join,this.arraySplice=e.Array.prototype.splice,this.arrayUnshift=e.Array.prototype.unshift,this.arrayForEach=e.Array.prototype.forEach,this.arrayIndexOf=e.Array.prototype.indexOf,this.arraySome=e.Array.prototype.some,this.arrayReverse=e.Array.prototype.reverse,this.arrayReduce=e.Array.prototype.reduce,this.arrayFrom=e.Array.from,this.isArray=e.Array.isArray,this.DOMParserParseFromString=e.DOMParser&&e.DOMParser.prototype.parseFromString,this.arrayBufferIsView=e.ArrayBuffer.prototype.constructor.isView,!t){this.tokenListAdd=e.DOMTokenList.prototype.add,this.tokenListRemove=e.DOMTokenList.prototype.remove,this.tokenListReplace=e.DOMTokenList.prototype.replace,this.tokenListSupports=e.DOMTokenList.prototype.supports,this.tokenListToggle=e.DOMTokenList.prototype.toggle,this.tokenListContains=e.DOMTokenList.prototype.contains;var a=e.Object.getOwnPropertyDescriptor(e.DOMTokenList.prototype,"value");a&&(this.tokenListValueSetter=a.set),this.styleGetPropertyValue=e.CSSStyleDeclaration.prototype.getPropertyValue,this.styleSetProperty=e.CSSStyleDeclaration.prototype.setProperty,this.styleRemoveProperty=e.CSSStyleDeclaration.prototype.removeProperty,this.styleInsertRule=e.CSSStyleSheet.prototype.insertRule,this.scrollTo=e.scrollTo}e.Promise&&(this.promiseThen=e.Promise.prototype.then,this.promiseReject=e.Promise.reject),this.console=e.console,this.console&&(this.consoleMeths={log:e.console.log,warn:e.console.warn,error:e.console.error,info:e.console.info}),this.crypto=e.crypto||e.msCrypto,this.cryptoGetRandomValues=this.crypto&&this.crypto.getRandomValues,this.refreshClasses(e),this._refreshGettersAndSetters(e,t)},e.prototype.refreshClasses=function(e){this.windowClass=e.Window,this.documentClass=e.Document,this.locationClass=e.Location,this.elementClass=e.Element,this.svgElementClass=e.SVGElement,this.Worker=e.Worker,this.MessageChannel=e.MessageChannel,this.Array=e.Array,this.ArrayBuffer=e.ArrayBuffer,this.Uint8Array=e.Uint8Array,this.Uint16Array=e.Uint16Array,this.Uint32Array=e.Uint32Array,this.DataView=e.DataView,this.Blob=e.Blob,this.XMLHttpRequest=e.XMLHttpRequest,this.Image=e.Image,this.Function=e.Function,this.functionToString=e.Function.prototype.toString,this.Error=e.Error,this.FontFace=e.FontFace,this.StorageEvent=e.StorageEvent,this.MutationObserver=e.MutationObserver,this.EventSource=e.EventSource,this.Proxy=e.Proxy,this.WebSocket=e.WebSocket,this.HTMLCollection=e.HTMLCollection,this.NodeList=e.NodeList,this.Node=e.Node,this.URL=e.URL,this.DataTransfer=e.DataTransfer,this.DataTransferItemList=e.DataTransferItemList,this.DataTransferItem=e.DataTransferItem,this.FileList=e.FileList,e.File&&"function"==typeof e.File&&(this.File=e.File)},e.prototype.refreshElectronMeths=function(e){return(!this.createScript||!w(e.createScript))&&(this.createScript=e.createScript,this.runInDebugContext=e.runInDebugContext,this.runInContext=e.runInContext,this.runInNewContext=e.runInNewContext,this.runInThisContext=e.runInThisContext,!0)},e._ensureDocumentMethodRestore=function(e,t,r,n){t[r]=n,e[r]!==t[r]&&(e[r]=n)},e.prototype.restoreDocumentMeths=function(t,r){var n=t.Document.prototype;e._ensureDocumentMethodRestore(r,n,"createDocumentFragment",this.createDocumentFragment),e._ensureDocumentMethodRestore(r,n,"createElement",this.createElement),e._ensureDocumentMethodRestore(r,n,"createElementNS",this.createElementNS),e._ensureDocumentMethodRestore(r,n,"elementFromPoint",this.elementFromPoint),e._ensureDocumentMethodRestore(r,n,"caretRangeFromPoint",this.caretRangeFromPoint),e._ensureDocumentMethodRestore(r,n,"caretPositionFromPoint",this.caretPositionFromPoint),e._ensureDocumentMethodRestore(r,n,"getElementById",this.getElementById),e._ensureDocumentMethodRestore(r,n,"getElementsByClassName",this.getElementsByClassName),e._ensureDocumentMethodRestore(r,n,"getElementsByName",this.getElementsByName),e._ensureDocumentMethodRestore(r,n,"getElementsByTagName",this.getElementsByTagName),e._ensureDocumentMethodRestore(r,n,"querySelector",this.querySelector),e._ensureDocumentMethodRestore(r,n,"querySelectorAll",this.querySelectorAll),t.EventTarget||(e._ensureDocumentMethodRestore(r,n,"addEventListener",this.documentAddEventListener),e._ensureDocumentMethodRestore(r,n,"removeEventListener",this.documentRemoveEventListener)),e._ensureDocumentMethodRestore(r,n,"createEvent",this.documentCreateEvent),e._ensureDocumentMethodRestore(r,n,"createTouch",this.documentCreateTouch),e._ensureDocumentMethodRestore(r,n,"createTouchList",this.documentCreateTouchList),e._ensureDocumentMethodRestore(r,t[this.documentOpenPropOwnerName].prototype,"open",this.documentOpen),e._ensureDocumentMethodRestore(r,t[this.documentClosePropOwnerName].prototype,"close",this.documentClose),e._ensureDocumentMethodRestore(r,t[this.documentWritePropOwnerName].prototype,"write",this.documentWrite),e._ensureDocumentMethodRestore(r,t[this.documentWriteLnPropOwnerName].prototype,"writeln",this.documentWriteLn)},e.prototype.refreshIfNecessary=function(e,t){var r=this,n=function(e){try{return e()}catch(t){return!0}},o=n(function(){return!e.createElement||w(document.createElement)}),i=n(function(){var t=r.createElement.call(e,"div");return w(t.getAttribute)}),s=n(function(){return r.setTimeout.call(t,function(){},0),w(t.XMLHttpRequest.prototype.open)});o&&this.refreshDocumentMeths(e,t),i&&this.refreshElementMeths(e,t),s&&this.refreshWindowMeths(t)},e.prototype.isNativeCode=function(e){return Xa.test(this.functionToString.call(e))},e}(),Ya=new $a,Qa=t(function(e){!function(t,r,n){e.exports?e.exports=n():t[r]=n()}(La,"bowser",function(){function e(e){function t(t){var r=e.match(t);return r&&r.length>1&&r[1]||""}function r(t){var r=e.match(t);return r&&r.length>1&&r[2]||""}var n=t(/(ipod|iphone|ipad)/i).toLowerCase(),o=/like android/i.test(e),i=!o&&/android/i.test(e),a=/nexus\s*[0-6]\s*/i.test(e),l=!a&&/nexus\s*[0-9]+/i.test(e),c=/CrOS/.test(e),p=/silk/i.test(e),u=/sailfish/i.test(e),h=/tizen/i.test(e),d=/(web|hpw)os/i.test(e),f=/windows phone/i.test(e);/SamsungBrowser/i.test(e);var m,g=!f&&/windows/i.test(e),v=!n&&!p&&/macintosh/i.test(e),y=!i&&!u&&!h&&!d&&/linux/i.test(e),E=t(/edge\/(\d+(\.\d+)?)/i),S=t(/version\/(\d+(\.\d+)?)/i),b=/tablet/i.test(e),_=!b&&/[^-]mobi/i.test(e),w=/xbox/i.test(e);/opera/i.test(e)?m={name:"Opera",opera:s,version:S||t(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr|opios/i.test(e)?m={name:"Opera",opera:s,version:t(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||S}:/SamsungBrowser/i.test(e)?m={name:"Samsung Internet for Android",samsungBrowser:s,version:S||t(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(e)?m={name:"Opera Coast",coast:s,version:S||t(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?m={name:"Yandex Browser",yandexbrowser:s,version:S||t(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?m={name:"UC Browser",ucbrowser:s,version:t(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?m={name:"Maxthon",maxthon:s,version:t(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?m={name:"Epiphany",epiphany:s,version:t(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?m={name:"Puffin",puffin:s,version:t(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?m={name:"Sleipnir",sleipnir:s,version:t(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?m={name:"K-Meleon",kMeleon:s,version:t(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:f?(m={name:"Windows Phone",windowsphone:s},E?(m.msedge=s,m.version=E):(m.msie=s,m.version=t(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?m={name:"Internet Explorer",msie:s,version:t(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?m={name:"Chrome",chromeos:s,chromeBook:s,chrome:s,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(e)?m={name:"Microsoft Edge",msedge:s,version:E}:/vivaldi/i.test(e)?m={name:"Vivaldi",vivaldi:s,version:t(/vivaldi\/(\d+(\.\d+)?)/i)||S}:u?m={name:"Sailfish",sailfish:s,version:t(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?m={name:"SeaMonkey",seamonkey:s,version:t(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(m={name:"Firefox",firefox:s,version:t(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(m.firefoxos=s)):p?m={name:"Amazon Silk",silk:s,version:t(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?m={name:"PhantomJS",phantom:s,version:t(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?m={name:"SlimerJS",slimer:s,version:t(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?m={name:"BlackBerry",blackberry:s,version:S||t(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:d?(m={name:"WebOS",webos:s,version:S||t(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(m.touchpad=s)):/bada/i.test(e)?m={name:"Bada",bada:s,version:t(/dolfin\/(\d+(\.\d+)?)/i)
  }:h?m={name:"Tizen",tizen:s,version:t(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||S}:/qupzilla/i.test(e)?m={name:"QupZilla",qupzilla:s,version:t(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||S}:/chromium/i.test(e)?m={name:"Chromium",chromium:s,version:t(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||S}:/chrome|crios|crmo/i.test(e)?m={name:"Chrome",chrome:s,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:i?m={name:"Android",version:S}:/safari|applewebkit/i.test(e)?(m={name:"Safari",safari:s},S&&(m.version=S)):n?(m={name:"iphone"==n?"iPhone":"ipad"==n?"iPad":"iPod"},S&&(m.version=S)):m=/googlebot/i.test(e)?{name:"Googlebot",googlebot:s,version:t(/googlebot\/(\d+(\.\d+))/i)||S}:{name:t(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!m.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(m.name=m.name||"Blink",m.blink=s):(m.name=m.name||"Webkit",m.webkit=s),!m.version&&S&&(m.version=S)):!m.opera&&/gecko\//i.test(e)&&(m.name=m.name||"Gecko",m.gecko=s,m.version=m.version||t(/gecko\/(\d+(\.\d+)?)/i)),m.windowsphone||m.msedge||!i&&!m.silk?m.windowsphone||m.msedge||!n?v?m.mac=s:w?m.xbox=s:g?m.windows=s:y&&(m.linux=s):(m[n]=s,m.ios=s):m.android=s;var x="";m.windowsphone?x=t(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):n?(x=t(/os (\d+([_\s]\d+)*) like mac os x/i),x=x.replace(/[_\s]/g,".")):i?x=t(/android[ \/-](\d+(\.\d+)*)/i):m.webos?x=t(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):m.blackberry?x=t(/rim\stablet\sos\s(\d+(\.\d+)*)/i):m.bada?x=t(/bada\/(\d+(\.\d+)*)/i):m.tizen&&(x=t(/tizen[\/\s](\d+(\.\d+)*)/i)),x&&(m.osversion=x);var C=x.split(".")[0];return b||l||"ipad"==n||i&&(3==C||C>=4&&!_)||m.silk?m.tablet=s:(_||"iphone"==n||"ipod"==n||i||a||m.blackberry||m.webos||m.bada)&&(m.mobile=s),m.msedge||m.msie&&m.version>=10||m.yandexbrowser&&m.version>=15||m.vivaldi&&m.version>=1||m.chrome&&m.version>=20||m.samsungBrowser&&m.version>=4||m.firefox&&m.version>=20||m.safari&&m.version>=6||m.opera&&m.version>=10||m.ios&&m.osversion&&m.osversion.split(".")[0]>=6||m.blackberry&&m.version>=10.1||m.chromium&&m.version>=20?m.a=s:m.msie&&m.version<10||m.chrome&&m.version<20||m.firefox&&m.version<20||m.safari&&m.version<6||m.opera&&m.version<10||m.ios&&m.osversion&&m.osversion.split(".")[0]<6||m.chromium&&m.version<20?m.c=s:m.x=s,m}function t(e){return e.split(".").length}function r(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r++)n.push(t(e[r]));return n}function n(e){for(var n=Math.max(t(e[0]),t(e[1])),o=r(e,function(e){var o=n-t(e);return e+=new Array(o+1).join(".0"),r(e.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});--n>=0;){if(o[0][n]>o[1][n])return 1;if(o[0][n]!==o[1][n])return-1;if(0===n)return 0}}function o(t,r,o){var i=a;"string"==typeof r&&(o=r,r=void 0),void 0===r&&(r=!1),o&&(i=e(o));var s=""+i.version;for(var l in t)if(t.hasOwnProperty(l)&&i[l]){if("string"!=typeof t[l])throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(t));return n([s,t[l]])<0}return r}function i(e,t,r){return!o(e,t,r)}var s=!0,a=e("undefined"!=typeof navigator?navigator.userAgent||"":"");return a.test=function(e){for(var t=0;t<e.length;++t){var r=e[t];if("string"==typeof r&&r in a)return!0}return!1},a.isUnsupportedBrowser=o,a.compareVersions=n,a.check=i,a._detect=e,a})}),Ja=navigator.userAgent.toLowerCase(),Za=Qa._detect(Ja),el=Ja.match(/applewebkit\/(\d+(:?\.\d+)*)/),tl=Qa.compareVersions,rl=!!Za.mac,nl=!!Za.android,ol=!!Za.ios,il=!!Za.mobile,sl=!!Za.tablet,al=parseInt(Za.version,10),ll=Za.version,cl=el&&el[1]||"",pl=!(!Za.msie&&!Za.msedge),ul=pl&&11===al,hl=pl&&10===al,dl=pl&&9===al,fl=!!Za.firefox,ml=!!Za.msedge,gl=!!Za.chrome,vl=!!Za.safari,yl=!(!Za.webkit&&!Za.blink),El=/electron/g.test(Ja),Sl=Object.freeze({__proto__:null,compareVersions:tl,isMacPlatform:rl,isAndroid:nl,isIOS:ol,isMobile:il,isTablet:sl,version:al,fullVersion:ll,webkitVersion:cl,isIE:pl,isIE11:ul,isIE10:hl,isIE9:dl,isFirefox:fl,isMSEdge:ml,isChrome:gl,isSafari:vl,isWebKit:yl,isElectron:El}),bl=function(){function e(){this.eventsListeners=Ya.objectCreate(null)}return e.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.eventsListeners[e];if(n)for(var o=0;n[o];){if(pl)try{n[o].toString()}catch(i){Ya.arraySplice.call(n,o,1);continue}n[o++].apply(this,t)}},e.prototype.off=function(e,t){var r=this.eventsListeners[e];r&&(this.eventsListeners[e]=Ya.arrayFilter.call(r,function(e){return e!==t}))},e.prototype.on=function(e,t){return this.eventsListeners[e]=this.eventsListeners[e]||[],this.eventsListeners[e].indexOf(t)===-1&&this.eventsListeners[e].push(t),t},e}(),_l={storedAttrPostfix:"-hammerhead-stored-value",hoverPseudoClass:"data-hammerhead-hovered",focusPseudoClass:"data-hammerhead-focused",uploadInfoHiddenInputName:"hammerhead|upload-info-hidden-input-name"},wl="-hammerhead-shadow-ui",xl={postfix:wl,charset:"charset"+wl,script:"script"+wl,selfRemovingScript:"self-removing-script"+wl,uiStylesheet:"ui-stylesheet"+wl},Cl=/^\s*([\w-]+?:)?(?:\/\/(?:([^/]+)@)?(([^/%?;#: ]*)(?::(\d+))?))?(.*?)\s*$/,Tl=/^([\w-]+?:)(\/\/|[^\\/]|$)/,Al=/(\?.+|#[^#]*)$/,Pl=/^\/([^/]+?)\/([\S\s]+)$/,Il=/^https?:/,Nl=/^file:/i,Ll=/^http(s)?:\/\//,Ol=/^s\*/,kl=/^(.+?[;,]\s*(?:url\s*=\s*)?(['"])?)(.+?)?(\2)?$/i,Dl=/^(?:https?|file):/i,Ml=/^#/,Rl="!",jl="*",Hl=/\/$/,Fl="about:blank",Vl="about:error",Ul=[Fl,Vl],Bl="80",Gl="443";!function(e){e[e.include=0]="include",e[e.sameOrigin=1]="sameOrigin",e[e.omit=2]="omit",e[e.unknown=3]="unknown"}(Va||(Va={}));var Wl={protocol:"about:",host:"",hostname:"",port:"",partAfterHost:""},ql=[{name:"isIframe",flag:"i"},{name:"isForm",flag:"f"},{name:"isScript",flag:"s"},{name:"isEventSource",flag:"e"},{name:"isHtmlImport",flag:"h"},{name:"isWebSocket",flag:"w"},{name:"isServiceWorker",flag:"c"},{name:"isAjax",flag:"a"},{name:"isObject",flag:"o"}],zl=Object.freeze({__proto__:null,SUPPORTED_PROTOCOL_RE:Dl,HASH_RE:Ml,REQUEST_DESCRIPTOR_VALUES_SEPARATOR:Rl,REQUEST_DESCRIPTOR_SESSION_INFO_VALUES_SEPARATOR:jl,TRAILING_SLASH_RE:Hl,SPECIAL_BLANK_PAGE:Fl,SPECIAL_ERROR_PAGE:Vl,SPECIAL_PAGES:Ul,HTTP_DEFAULT_PORT:Bl,HTTPS_DEFAULT_PORT:Gl,get Credentials(){return Va},parseResourceType:A,getResourceTypeString:P,restoreShortOrigin:N,isSubDomain:L,sameOriginCheck:O,getURLString:D,getProxyUrl:M,getDomain:R,parseProxyUrl:H,getPathname:F,parseUrl:V,isSupportedProtocol:U,resolveUrlAsDest:B,formatUrl:G,correctMultipleSlashes:W,processSpecialChars:q,ensureTrailingSlash:z,isSpecialPage:K,isRelativeUrl:X,isValidUrl:Y,ensureOriginTrailingSlash:Q,omitDefaultPort:J,prepareUrl:Z,updateScriptImportUrls:ee,processMetaRefreshContent:te}),Kl="hammerhead|document-url-resolver",Xl={_createResolver:function(e){var t=Ya.createHTMLDocument.call(e.implementation,"title"),r=Ya.createElement.call(t,"a"),n=Ya.createElement.call(t,"base");return Ya.appendChild.call(t.body,r),Ya.appendChild.call(t.head,n),t},_getResolver:function(e){return e[Kl]||Ya.objectDefineProperty(e,Kl,{value:this._createResolver(e),writable:!0}),e[Kl]},_isNestedIframeWithoutSrc:function(e){if(!e||!e.parent||e.parent===e||e.parent.parent===e.parent)return!1;var t=gt(window);return!!t&&Ht(t)},init:function(e){this.updateBase(Jl(),e)},getResolverElement:function(e){return Ya.nodeFirstChildGetter.call(this._getResolver(e).body)},resolve:function(e,t){var r=this.getResolverElement(t),n=null;if(null===e)Ya.removeAttribute.call(r,"href");else{Ya.anchorHrefSetter.call(r,e),n=Ya.anchorHrefGetter.call(r);var o=e&&(!n||"/"===n.charAt(0))&&this._isNestedIframeWithoutSrc(t.defaultView);if(o)return this.resolve(e,window.parent.document)}return z(e,n)},updateBase:function(e,t){var r=this._getResolver(t),n=Ya.elementGetElementsByTagName.call(r.head,"base")[0];e=e||Jl();var o=V(e),i="file:"!==o.protocol&&"about:"!==o.protocol&&!o.host,s=/^\/\//.test(e)&&!!o.host;if(i||s){var a=Jl();this.updateBase(a,t),e=this.resolve(e,t)}Ya.setAttribute.call(n,"href",e)},getBaseUrl:function(e){var t=Ya.elementGetElementsByTagName.call(this._getResolver(e).head,"base")[0];return Ya.getAttribute.call(t,"href")},changeUrlPart:function(e,t,r,n){var o=this.getResolverElement(n);return Ya.anchorHrefSetter.call(o,e),t.call(o,r),Ya.anchorHrefGetter.call(o)},dispose:function(e){e[Kl]=null}},$l=function(){function e(){this._settings={isFirstPageLoad:!0,sessionId:"",forceProxySrcForImage:!1,crossDomainProxyPort:"",referer:"",serviceMsgUrl:"",transportWorkerUrl:"",iframeTaskScriptTemplate:"",cookie:"",allowMultipleWindows:!1,isRecordMode:!1,windowId:""}}return e.prototype.set=function(e){this._settings=e},e.prototype.get=function(){return this._settings},e}(),Yl=new $l,Ql=null,Jl=function(){var e=re(),t=H(e);return t?t.destUrl:e},Zl=Object.freeze({__proto__:null,getLocation:re,forceLocation:ne,sameOriginCheck:oe,resolveUrl:ie,get get(){return Jl},getReferrer:se,overrideGet:ae,withHash:le,getParsed:ue,getOriginHeader:he}),ec=/#[\S\s]*$/,tc=/^wss?:/i,rc=/\/[^/]*$/,nc=function(){for(var e=za.isInWorker?{location:_e(self.location.origin),parent:null}:window,t=e.location;!t.hostname;)e=e.parent,t=e.location;return{hostname:t.hostname,port:t.port.toString(),protocol:t.protocol}}(),oc=Rl,ic=function(e,t){e=D(e);var r=t&&t.resourceType,n=A(r);if(!n.isWebSocket&&!Pe(e)&&!Ie(e))return e;var o=ie(e,t&&t.doc);if(n.isWebSocket&&!Te(o)||!Y(o))return e;var i=t&&t.proxyHostname||nc.hostname,s=t&&t.proxyPort||nc.port,a=t&&t.proxyProtocol||nc.protocol,l=n.isWebSocket?a.replace("http","ws"):a,c=t&&t.sessionId||Yl.get().sessionId,p=t&&t.windowId||Yl.get().windowId,u=t&&t.credentials,h=t&&t.charset,d=t&&t.reqOrigin,f=ye(s),m=H(o),g=!!m&&m.proxy.hostname===i&&(m.proxy.port===s||m.proxy.port===f);if(g){if(r&&m.resourceType===r)return o;var v=G(m.destResourceInfo);return ic(v,{proxyProtocol:l,proxyHostname:i,proxyPort:s,sessionId:c,resourceType:r,charset:h,reqOrigin:d,credentials:u})}var y=V(o);if(!y.protocol)return e;if(h=h||de(n),y.protocol===a&&y.hostname===i&&y.port===s){var E=ue();y.protocol=E.protocol,y.host=E.host,y.hostname=E.hostname,y.port=E.port||"",o=G(y)}return n.isWebSocket&&(y.protocol=y.protocol.replace("ws","http"),o=G(y),d=d||he()),n.isIframe&&s===Yl.get().crossDomainProxyPort&&(d=d||he()),M(o,{proxyProtocol:l,proxyHostname:i,proxyPort:s,sessionId:c,resourceType:r,charset:h,reqOrigin:d,windowId:p,credentials:u})},sc=function(e){return ic(e,{proxyPort:Yl.get().crossDomainProxyPort,resourceType:P({isIframe:!0})})},ac=function(e){return B(e,ic)},lc=function(e){return H(e)},cc=function(e,t,r,n){return void 0===n&&(n=!1),ic(e,{resourceType:t,charset:r,proxyPort:n?Yl.get().crossDomainProxyPort:nc.port})},pc=Object.freeze({__proto__:null,DEFAULT_PROXY_SETTINGS:nc,REQUEST_DESCRIPTOR_VALUES_SEPARATOR:oc,get getProxyUrl(){return ic},overrideGetProxyUrl:fe,getNavigationUrl:me,get getCrossDomainIframeProxyUrl(){return sc},overrideGetCrossDomainIframeProxyUrl:ge,getPageProxyUrl:ve,getCrossDomainProxyPort:ye,get resolveUrlAsDest(){return ac},overrideResolveUrlAsDest:Ee,formatUrl:Se,get parseProxyUrl(){return lc},overrideParseProxyUrl:be,parseUrl:_e,get convertToProxyUrl(){return cc},getCrossDomainProxyOrigin:we,overrideConvertToProxyUrl:xe,changeDestUrlPart:Ce,isValidWebSocketUrl:Te,isSubDomain:Ae,isSupportedProtocol:Pe,isSpecialPage:Ie,parseResourceType:Ne,stringifyResourceType:Le,isChangedOnlyHash:Oe,getDestinationUrl:ke,getScope:De,getAjaxProxyUrl:Me}),uc=!1,hc=!1,dc=!1,fc=!1,mc=!1,gc=!1,vc=!1,yc=!1;if(Ya.createElement){var Ec=Ya.createElement.call(document,"form"),Sc=Ya.getElementsByName.call(document,"");uc=Ya.formActionGetter.call(Ec)===window.location.toString(),hc=Ya.objectToString.call(window)===Ya.objectToString.call(Window.prototype),dc="ontouchstart"in window,fc=pl&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),mc=(il||sl)&&dc,gc=!!window.DataTransfer,vc=!!Ya.objectGetOwnPropertyDescriptor.call(window.Object,NamedNodeMap.prototype,"getNamedItem"),yc=Ya.objectGetPrototypeOf.call(window.Object,Sc)===Ya.HTMLCollection.prototype}var bc,_c,wc,xc,Cc,Tc,Ac,Pc,Ic,Nc,Lc,Oc=Object.freeze({__proto__:null,get emptyActionAttrFallbacksToTheLocation(){return uc},get instanceAndPrototypeToStringAreEqual(){return hc},get hasTouchEvents(){return dc},get hasTouchPoints(){return fc},get isTouchDevice(){return mc},get hasDataTransfer(){return gc},get attrGetNamedItemIsNotEnumerable(){return vc},get getElementsByNameReturnsHTMLCollection(){return yc}}),kc=4,Dc=Object.freeze({__proto__:null,get:je,set:He,getBordersWidth:Fe,getComputedStyle:Ve,getElementMargin:Ue,getElementPadding:Be,getElementScroll:Ge,getWidth:We,getHeight:qe,getInnerWidth:ze,getInnerHeight:Ke,getOptionHeight:Xe,getSelectElementSize:$e,isVisibleChild:Ye,getScrollLeft:Qe,getScrollTop:Je,setScrollLeft:Ze,setScrollTop:et,getOffsetParent:tt,getOffset:rt,isElementVisible:nt,isElementInInvisibleIframe:ot}),Mc=0,Rc=["[object HTMLMapElement]","[object HTMLAreaElement]"],jc="undefined"==typeof window,Hc=jc?"":ut(window),Fc=/^\[object .*?Document]$/i,Vc=/^\[object .*?ProcessingInstruction]$/i,Uc=/^\[object SVG\w+?Element]$/i,Bc=/^\[object HTML.*?Element]$/i,Gc=/^\[object ArrayBuffer]$/i,Wc=/^\[object DataView]$/i,qc=jc?"":ut(Ya.createElement.call(document,"td")),zc=jc?-1:Node.ELEMENT_NODE,Kc=/^(select|option|applet|area|audio|canvas|datalist|keygen|map|meter|object|progress|source|track|video|img)$/,Xc=/^(input|textarea|button)$/,$c=/^(script|style)$/i,Yc=/^(email|number|password|search|tel|text|url)$/,Qc=/^(number|email)$/,Jc=/^(color|date|datetime-local|month|week)$/,Zc='input, select, textarea, button, body, iframe, [contenteditable="true"], [contenteditable=""], [tabIndex]',ep="hammerhead|element|shadow-root-parent",tp=Object.freeze({__proto__:null,instanceToString:ut,getActiveElement:ht,getChildVisibleIndex:dt,getIframeByElement:ft,getIframeLocation:mt,getFrameElement:gt,getMapContainer:vt,getParentWindowWithSrc:yt,getScrollbarSize:Et,getSelectParent:St,getSelectVisibleChildren:bt,getTopSameDomainWindow:_t,find:wt,findDocument:xt,isContentEditableElement:Ct,isCrossDomainIframe:Tt,isCrossDomainWindows:At,isIframeWindow:Pt,isDomElement:It,getTagName:Nt,SHADOW_ROOT_PARENT_ELEMENT:ep,getNodeShadowRootParent:Lt,getParentExceptShadowRoot:Ot,isElementInDocument:kt,isElementInIframe:Dt,isHammerheadAttr:Mt,isIframeElement:Rt,isFrameElement:jt,isIframeWithoutSrc:Ht,isIframeWithSrcdoc:Ft,isImgElement:Vt,isInputElement:Ut,isTitleElement:Bt,isButtonElement:Gt,isFieldSetElement:Wt,isOptGroupElement:qt,isHtmlElement:zt,isBodyElement:Kt,isPageBody:Xt,isHeadElement:$t,isHeadOrBodyElement:Yt,isHeadOrBodyOrHtmlElement:Qt,isBaseElement:Jt,isScriptElement:Zt,isStyleElement:er,isLabelElement:tr,isTextAreaElement:rr,isOptionElement:nr,isRadioButtonElement:or,isColorInputElement:ir,isCheckboxElement:sr,isSelectElement:ar,isFormElement:lr,isFileInput:cr,isInputWithNativeDialog:pr,isBodyElementWithChildren:ur,isMapElement:hr,isRenderedNode:dr,getTabIndex:fr,isElementDisabled:mr,isElementFocusable:gr,isShadowUIElement:vr,isWindow:yr,isDocument:Er,isBlob:Sr,isLocation:br,isSVGElement:_r,isSVGElementOrChild:wr,isFetchHeaders:xr,isFetchRequest:Cr,isElementReadOnly:Tr,isTextEditableInput:Ar,isTextEditableElement:Pr,isTextEditableElementAndEditingAllowed:Ir,isElementNode:Nr,isTextNode:Lr,isProcessingInstructionNode:Or,isCommentNode:kr,isDocumentFragmentNode:Dr,isShadowRoot:Mr,isAnchorElement:Rr,isTableElement:jr,isTableDataCellElement:Hr,isWebSocket:Fr,isMessageEvent:Vr,isPerformanceNavigationTiming:Ur,isArrayBuffer:Br,isArrayBufferView:Gr,isDataView:Wr,matches:qr,closest:zr,addClass:Kr,removeClass:Xr,hasClass:$r,parseDocumentCharset:Yr,getParents:Qr,findParent:Zr,nodeListToArray:en,getFileInputs:tn,getIframes:rn,getScripts:nn,isNumberOrEmailInput:on,isInputWithoutSelectionProperties:sn,getAssociatedElement:an}),rp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.window=null,t.nativeMethods=Ya,t.document=null,t}return m(t,e),t.prototype.isDeactivated=function(){try{if(this.document.body,this.window[Ga.hammerhead]){var e=gt(this.window);return!!e&&!kt(e,xt(e))}}catch(t){}return!0},t.prototype.attach=function(e,t){this.window=e,this.document=t||e.document},t}(bl),np={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportBatchSpecifier:"ExportBatchSpecifier",ExportDeclaration:"ExportDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportSpecifier:"ImportSpecifier",ImportDeclaration:"ImportDeclaration",ChainExpression:"ChainExpression",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleDeclaration:"ModuleDeclaration",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},op=np,ip={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:3,LogicalAND:4,BitwiseOR:5,BitwiseXOR:6,BitwiseAND:7,Equality:8,Relational:9,BitwiseSHIFT:10,Additive:11,Multiplicative:12,Unary:13,Exponentiation:14,Postfix:14,Await:14,Call:15,New:16,TaggedTemplate:17,OptionalChaining:17,Member:18,Primary:19},sp={"||":ip.LogicalOR,"&&":ip.LogicalAND,"|":ip.BitwiseOR,"^":ip.BitwiseXOR,"&":ip.BitwiseAND,"==":ip.Equality,"!=":ip.Equality,"===":ip.Equality,"!==":ip.Equality,is:ip.Equality,isnt:ip.Equality,"<":ip.Relational,">":ip.Relational,"<=":ip.Relational,">=":ip.Relational,"in":ip.Relational,"instanceof":ip.Relational,"<<":ip.BitwiseSHIFT,">>":ip.BitwiseSHIFT,">>>":ip.BitwiseSHIFT,"+":ip.Additive,"-":ip.Additive,"*":ip.Multiplicative,"%":ip.Multiplicative,"/":ip.Multiplicative,"??":ip.Coalesce,"**":ip.Exponentiation},ap=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],lp=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ０-９Ａ-Ｚ＿ａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ]");bc=Array.isArray,bc||(bc=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var cp={e1:function(e){return{precedence:ip.Assignment,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e2:function(e){return{precedence:ip.LogicalOR,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e3:{precedence:ip.Call,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!1},e4:{precedence:ip.Assignment,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e5:{precedence:ip.Sequence,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e6:function(e){return{precedence:ip.New,allowIn:!0,allowCall:!1,allowUnparenthesizedNew:e}},e7:{precedence:ip.Unary,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e8:{precedence:ip.Postfix,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e9:{precedence:void 0,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e10:{precedence:ip.Call,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e11:function(e){return{precedence:ip.Call,allowIn:!0,allowCall:e,allowUnparenthesizedNew:!1}},e12:{precedence:ip.Primary,allowIn:!1,allowCall:!1,allowUnparenthesizedNew:!0},e13:{precedence:ip.Primary,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e14:{precedence:ip.Sequence,allowIn:!1,allowCall:!0,allowUnparenthesizedNew:!0},e15:function(e){return{precedence:ip.Sequence,allowIn:!0,allowCall:e,allowUnparenthesizedNew:!0}},e16:function(e,t){return{precedence:e,allowIn:t,allowCall:!0,allowUnparenthesizedNew:!0}},e17:function(e){return{precedence:ip.Call,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e18:function(e){return{precedence:ip.Assignment,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e19:{precedence:ip.Sequence,allowIn:!0,allowCall:!0,semicolonOptional:!1},e20:{precedence:ip.Await,allowCall:!0},s1:function(e,t){return{allowIn:!0,functionBody:!1,directiveContext:e,semicolonOptional:t}},s2:{allowIn:!0,functionBody:!1,directiveContext:!1,semicolonOptional:!0},s3:function(e){return{allowIn:e,functionBody:!1,directiveContext:!1,semicolonOptional:!1}},s4:function(e){return{allowIn:!0,functionBody:!1,directiveContext:!1,semicolonOptional:e}},s5:function(e){return{allowIn:!0,functionBody:!1,directiveContext:!0,semicolonOptional:e}},s6:{allowIn:!1,functionBody:!1,directiveContext:!1,semicolonOptional:!1},s7:{allowIn:!0,functionBody:!1,directiveContext:!1,semicolonOptional:!1},s8:{allowIn:!0,functionBody:!0,directiveContext:!1,semicolonOptional:!1}},pp=/[.eExX]|^0[0-9]+/,up=/[0-9]$/,hp={SequenceExpression:function(e,t){var r=e.expressions,n=r.length,o=n-1,i=ip.Sequence<t.precedence,s=cp.e1(t.allowIn||i);i&&(mp.js+="(");for(var a=0;a<n;a++){var l=r[a];gp[l.type](l,s),a!==o&&(mp.js+=","+mp.optSpace)}i&&(mp.js+=")")},AssignmentExpression:function(e,t){var r=e.left,n=e.right,o=ip.Assignment<t.precedence,i=t.allowIn||o;o&&(mp.js+="("),gp[r.type](r,cp.e17(i)),mp.js+=mp.optSpace+e.operator+mp.optSpace,gp[n.type](n,cp.e18(i)),o&&(mp.js+=")")},AssignmentPattern:function(e){var t={left:e.left,right:e.right,operator:"="};gp.AssignmentExpression(t,cp.e4)},ArrowFunctionExpression:function(e,t){var r=ip.ArrowFunction<t.precedence;r&&(mp.js+="("),e.async&&(mp.js+="async "),Pn(e),r&&(mp.js+=")")},AwaitExpression:function(e,t){var r=ip.Await<t.precedence;r&&(mp.js+="("),mp.js+=e.all?"await* ":"await ",gp[e.argument.type](e.argument,cp.e20),r&&(mp.js+=")")},ConditionalExpression:function(e,t){var r=e.test,n=e.consequent,o=e.alternate,i=ip.Conditional<t.precedence,s=t.allowIn||i,a=cp.e2(s),l=cp.e1(s);i&&(mp.js+="("),gp[r.type](r,a),mp.js+=mp.optSpace+"?"+mp.optSpace,gp[n.type](n,l),mp.js+=mp.optSpace+":"+mp.optSpace,gp[o.type](o,l),i&&(mp.js+=")")},LogicalExpression:In,BinaryExpression:In,CallExpression:function(e,t){var r=e.callee,n=e.arguments,o=n.length,i=o-1,s=!t.allowCall||ip.Call<t.precedence;s&&(mp.js+="("),gp[r.type](r,cp.e3),e.optional&&(mp.js+="?."),mp.js+="(";for(var a=0;a<o;++a){var l=n[a];gp[l.type](l,cp.e4),a!==i&&(mp.js+=","+mp.optSpace)}mp.js+=")",s&&(mp.js+=")")},NewExpression:function(e,t){var r=e.arguments,n=ip.New<t.precedence,o=r.length,i=o-1,s=!t.allowUnparenthesizedNew||Ac||o>0,a=Dn(e.callee,cp.e6(!s));if(n&&(mp.js+="("),mp.js+=_n("new",a),s){mp.js+="(";for(var l=0;l<o;++l){var c=r[l];gp[c.type](c,cp.e4),l!==i&&(mp.js+=","+mp.optSpace)}mp.js+=")"}n&&(mp.js+=")")},MemberExpression:function(e,t){var r=e.object,n=e.property,o=ip.Member<t.precedence,i=!e.computed&&r.type===np.Literal&&"number"==typeof r.value;if(o&&(mp.js+="("),i){var s=Dn(r,cp.e11(t.allowCall)),a=up.test(s)&&!pp.test(s);mp.js+=a?s+".":s}else gp[r.type](r,cp.e11(t.allowCall));e.computed?(e.optional&&(mp.js+="?."),mp.js+="[",gp[n.type](n,cp.e15(t.allowCall)),mp.js+="]"):mp.js+=(e.optional?"?.":".")+n.name,o&&(mp.js+=")")},UnaryExpression:function(e,t){var r=ip.Unary<t.precedence,n=e.operator,o=Dn(e.argument,cp.e7);if(r&&(mp.js+="("),""===mp.optSpace||n.length>2)mp.js+=_n(n,o);else{mp.js+=n;var i=n.charCodeAt(n.length-1),s=o.charCodeAt(0);(i===s&&(43===i||45===i)||cn(i)&&cn(s))&&(mp.js+=mp.space),mp.js+=o}r&&(mp.js+=")")},YieldExpression:function(e,t){var r=e.argument,n=e.delegate?"yield*":"yield",o=ip.Yield<t.precedence;if(o&&(mp.js+="("),r){var i=Dn(r,cp.e4);n=_n(n,i)}mp.js+=n,o&&(mp.js+=")")},UpdateExpression:function(e,t){var r=e.argument,n=e.operator,o=e.prefix,i=o?ip.Unary:ip.Postfix,s=i<t.precedence;s&&(mp.js+="("),o?(mp.js+=n,gp[r.type](r,cp.e8)):(gp[r.type](r,cp.e8),mp.js+=n),s&&(mp.js+=")")},FunctionExpression:function(e){var t=!!e.generator;e.async&&(mp.js+="async "),mp.js+=t?"function*":"function",e.id?(mp.js+=t?mp.optSpace:mp.space,mp.js+=e.id.name):mp.js+=mp.optSpace,Pn(e)},ExportBatchSpecifier:function(){mp.js+="*"},ArrayPattern:Nn,ArrayExpression:Nn,ClassExpression:function(e){var t=e.id,r=e.superClass,n=e.body,o="class";if(t){var i=Dn(t,cp.e9);o=_n(o,i)}if(r){var s=Dn(r,cp.e4);s=_n("extends",s),o=_n(o,s)}mp.js+=o+mp.optSpace,vp[n.type](n,cp.s2)},MetaProperty:function(e,t){var r=e.meta,n=e.property,o=ip.Member<t.precedence;o&&(mp.js+="("),mp.js+=("string"==typeof r?r:r.name)+"."+("string"==typeof n?n:n.name),o&&(mp.js+=")")},MethodDefinition:function(e){var t=e["static"]?"static"+mp.optSpace:"",r=Dn(e.key,cp.e5);e.computed&&(r="["+r+"]"),"get"===e.kind||"set"===e.kind?(r=_n(e.kind,r),mp.js+=_n(t,r)):e.value.generator?mp.js+=t+"*"+r:e.value.async?mp.js+=t+"async "+r:mp.js+=_n(t,r),Pn(e.value)},Property:function(e){var t=e.value,r=e.kind,n=Dn(e.key,cp.e4);e.computed&&(n="["+n+"]"),"get"===r||"set"===r?(mp.js+=r+mp.space+n,Pn(t)):e.shorthand?mp.js+=n:e.method?(t.generator?n="*"+n:t.async&&(n="async "+n),mp.js+=n,Pn(t)):(mp.js+=n+":"+mp.optSpace,gp[t.type](t,cp.e4))},ObjectExpression:function(e){var t=e.properties,r=t.length;if(r){var n=r-1,o=wn();mp.js+="{";for(var i=0;i<r;i++){var s=t[i],a=s.type||np.Property;mp.js+=mp.newline+mp.indent,gp[a](s,cp.e5),i!==n&&(mp.js+=",")}mp.indent=o,mp.js+=mp.newline+mp.indent+"}"}else mp.js+="{}"},ObjectPattern:function(e){var t=e.properties,r=t.length;if(r){var n=r-1,o=!1;if(1===r)o=t[0].value.type!==np.Identifier;else for(var i=0;i<r;i++)if(!t[i].shorthand){o=!0;break}mp.js+=o?"{"+mp.newline:"{";for(var s=wn(),a=","+(o?mp.newline:mp.optSpace),i=0;i<r;i++){var l=t[i];o&&(mp.js+=mp.indent),gp[l.type](l,cp.e5),i!==n&&(mp.js+=a)}mp.indent=s,mp.js+=o?mp.newline+mp.indent+"}":"}"}else mp.js+="{}"},ThisExpression:function(){mp.js+="this"},Identifier:function(e,t,r){mp.js+=e.name},ImportExpression:function(e,t){var r=ip.Call<t.precedence,n=e.source;r&&(mp.js+="("),mp.js+="import(",gp[n.type](n,cp.e4),mp.js+=")",r&&(mp.js+=")")},ImportSpecifier:function(e){mp.js+=e.imported.name,e.local&&(mp.js+=mp.space+"as"+mp.space+e.local.name)},ExportSpecifier:function(e){mp.js+=e.local.name,e.exported&&(mp.js+=mp.space+"as"+mp.space+e.exported.name)},ChainExpression:function(e,t){var r=ip.OptionalChaining<t.precedence,n=e.expression;t=t||{};var o={precedence:ip.OptionalChaining,allowIn:t.allowIn,allowCall:t.allowCall,allowUnparenthesizedNew:t.allowUnparenthesizedNew};r&&(o.allowCall=!0,mp.js+="("),gp[n.type](n,o),r&&(mp.js+=")")},Literal:function(e){if(Lc.raw&&void 0!==e.raw)mp.js+=e.raw;else if(null===e.value)mp.js+="null";else{var t=typeof e.value;"string"===t?mp.js+=bn(e.value):"number"===t?mp.js+=mn(e.value):"boolean"===t?mp.js+=e.value?"true":"false":mp.js+=vn(e.value)}},GeneratorExpression:Ln,ComprehensionExpression:Ln,ComprehensionBlock:function(e){var t=e.left,r=void 0,n=Dn(e.right,cp.e5);r=t.type===np.VariableDeclaration?t.kind+mp.space+Mn(t.declarations[0],cp.s6):Dn(t,cp.e10),r=_n(r,e.of?"of":"in"),mp.js+="for"+mp.optSpace+"("+_n(r,n)+")"},RestElement:function(e){mp.js+="..."+e.argument.name},SpreadElement:function(e){var t=e.argument;mp.js+="...",gp[t.type](t,cp.e4)},TaggedTemplateExpression:function(e,t){var r=e.tag,n=e.quasi,o=ip.TaggedTemplate<t.precedence;o&&(mp.js+="("),gp[r.type](r,cp.e11(t.allowCall)),gp[n.type](n,cp.e12),o&&(mp.js+=")")},TemplateElement:function(e){mp.js+=e.value.raw},TemplateLiteral:function(e){var t=e.quasis,r=e.expressions,n=t.length,o=n-1;mp.js+="`";for(var i=0;i<n;++i){var s=t[i];if(gp[s.type](s,cp.e13),i!==o){var a=r[i];mp.js+="${"+mp.optSpace,gp[a.type](a,cp.e5),mp.js+=mp.optSpace+"}"}}mp.js+="`"},Super:function(){mp.js+="super"}},dp=/^{|^class(?:\s|{)|^(async )?function(?:\s|\*|\()/,fp={BlockStatement:function(e,t){var r=e.body,n=r.length,o=n-1,i=wn();mp.js+="{"+mp.newline;for(var s=0;s<n;s++){var a=r[s];mp.js+=mp.indent,vp[a.type](a,cp.s1(t.functionBody,s===o)),mp.js+=mp.newline}mp.indent=i,mp.js+=mp.indent+"}"},BreakStatement:function(e,t){e.label?mp.js+="break "+e.label.name:mp.js+="break",!Pc&&t.semicolonOptional||(mp.js+=";")},ContinueStatement:function(e,t){e.label?mp.js+="continue "+e.label.name:mp.js+="continue",!Pc&&t.semicolonOptional||(mp.js+=";")},ClassBody:function(e){var t=e.body,r=t.length,n=r-1,o=wn();mp.js+="{"+mp.newline;for(var i=0;i<r;i++){var s=t[i],a=s.type||np.Property;mp.js+=mp.indent,gp[a](s,cp.e5),i!==n&&(mp.js+=mp.newline)}mp.indent=o,mp.js+=mp.newline+mp.indent+"}"},ClassDeclaration:function(e){var t=e.body,r=e.superClass,n="class "+e.id.name;if(r){var o=Dn(r,cp.e4);n+=mp.space+_n("extends",o)}mp.js+=n+mp.optSpace,vp[t.type](t,cp.s2)},DirectiveStatement:function(e,t){Lc.raw&&e.raw?mp.js+=e.raw:mp.js+=Sn(e.directive),!Pc&&t.semicolonOptional||(mp.js+=";")},DoWhileStatement:function(e,t){var r=e.body,n=e.test,o=xn(r)+Mn(r,cp.s7)+Cn(r),i=_n("do",o);mp.js+=_n(i,"while"+mp.optSpace+"("),gp[n.type](n,cp.e5),mp.js+=")",!Pc&&t.semicolonOptional||(mp.js+=";")},CatchClause:function(e){var t=e.param,r=e.guard,n=e.body,o=wn();mp.js+="catch"+mp.optSpace,t&&(mp.js+="(",gp[t.type](t,cp.e5)),r&&(mp.js+=" if ",gp[r.type](r,cp.e5)),mp.indent=o,t&&(mp.js+=")"),mp.js+=xn(n),vp[n.type](n,cp.s7)},DebuggerStatement:function(e,t){mp.js+="debugger",!Pc&&t.semicolonOptional||(mp.js+=";")},EmptyStatement:function(){mp.js+=";"},ExportAllDeclaration:function(e,t){fp.ExportDeclaration(e,t,!0)},ExportDeclaration:function(e,t,r){var n=e.specifiers,o=e.declaration,i=Pc||!t.semicolonOptional;if(e["default"]){var s=Dn(o,cp.e4);mp.js+=_n("export default",s),i&&(mp.js+=";")}else if(n||r){var a="export";if(r)a+=mp.optSpace+"*";else if(0===n.length)a+=mp.optSpace+"{"+mp.optSpace+"}";else if(n[0].type===np.ExportBatchSpecifier){var l=Dn(n[0],cp.e5);a=_n(a,l)}else{var c=wn(),p=n.length,u=p-1;a+=mp.optSpace+"{";for(var h=0;h<p;++h)a+=mp.newline+mp.indent,a+=Dn(n[h],cp.e5),h!==u&&(a+=",");mp.indent=c,
  a+=mp.newline+mp.indent+"}"}e.source?(mp.js+=_n(a,"from"+mp.optSpace),gp.Literal(e.source)):mp.js+=a,i&&(mp.js+=";")}else if(o){var s=Mn(o,cp.s4(!i));mp.js+=_n("export",s)}},ExportNamedDeclaration:function(e,t){fp.ExportDeclaration(e,t)},ExpressionStatement:function(e,t){var r=Dn(e.expression,cp.e5),n=dp.test(r)||Nc&&t.directiveContext&&e.expression.type===np.Literal&&"string"==typeof e.expression.value;n?mp.js+="("+r+")":mp.js+=r,!Pc&&t.semicolonOptional||(mp.js+=";")},ImportDeclaration:function(e,t){var r=e.specifiers,n="import",o=r.length;if(o){var i=!!r[0]["default"],s=i?1:0,a=o-1;if(i&&(n=_n(n,r[0].id.name)),s<o){if(i&&(n+=","),n+=mp.optSpace+"{",s===a)n+=mp.optSpace+Dn(r[s],cp.e5)+mp.optSpace;else{for(var l=wn(),c=s;c<o;c++)n+=mp.newline+mp.indent+Dn(r[c],cp.e5),c!==a&&(n+=",");mp.indent=l,n+=mp.newline+mp.indent}n+="}"+mp.optSpace}n=_n(n,"from")}mp.js+=n+mp.optSpace,gp.Literal(e.source),!Pc&&t.semicolonOptional||(mp.js+=";")},VariableDeclarator:function(e,t){var r=e.id,n=e.init,o=cp.e1(t.allowIn);n?(gp[r.type](r,o),mp.js+=mp.optSpace+"="+mp.optSpace,gp[n.type](n,o)):r.type===np.Identifier?mp.js+=r.name:gp[r.type](r,o)},VariableDeclaration:function(e,t){var r=e.declarations,n=r.length,o=n>1?wn():mp.indent,i=cp.s3(t.allowIn);mp.js+=e.kind;for(var s=0;s<n;s++){var a=r[s];mp.js+=0===s?mp.space:","+mp.optSpace,vp[a.type](a,i)}!Pc&&t.semicolonOptional||(mp.js+=";"),mp.indent=o},ThrowStatement:function(e,t){var r=Dn(e.argument,cp.e5);mp.js+=_n("throw",r),!Pc&&t.semicolonOptional||(mp.js+=";")},TryStatement:function(e){var t=e.block,r=e.finalizer,n="try"+xn(t)+Mn(t,cp.s7)+Cn(t),o=e.handlers||e.guardedHandlers;o&&(n=On(n,r,o)),e.handler&&(o=bc(e.handler)?e.handler:[e.handler],n=On(n,r,o)),r&&(n=_n(n,"finally"+xn(r)),n+=Mn(r,cp.s7)),mp.js+=n},SwitchStatement:function(e){var t=e.cases,r=e.discriminant,n=wn();if(mp.js+="switch"+mp.optSpace+"(",gp[r.type](r,cp.e5),mp.js+=")"+mp.optSpace+"{"+mp.newline,mp.indent=n,t)for(var o=t.length,i=o-1,s=0;s<o;s++){var a=t[s];mp.js+=mp.indent,vp[a.type](a,cp.s4(s===i)),mp.js+=mp.newline}mp.js+=mp.indent+"}"},SwitchCase:function(e,t){var r=e.consequent,n=r[0],o=e.test,i=0,s=!Pc&&t.semicolonOptional,a=r.length,l=a-1,c=wn();if(o){var p=Dn(o,cp.e5);mp.js+=_n("case",p)+":"}else mp.js+="default:";for(a&&n.type===np.BlockStatement&&(i++,mp.js+=xn(n),vp[n.type](n,cp.s7));i<a;i++){var u=r[i],h=i===l&&s;mp.js+=mp.newline+mp.indent,vp[u.type](u,cp.s4(h))}mp.indent=c},IfStatement:function(e,t){var r=e.consequent,n=e.test,o=wn(),i=!Pc&&t.semicolonOptional;if(mp.js+="if"+mp.optSpace+"(",gp[n.type](n,cp.e5),mp.js+=")",mp.indent=o,mp.js+=xn(r),e.alternate){var s=Mn(r,cp.s7)+Cn(r),a=Mn(e.alternate,cp.s4(i));a=e.alternate.type===np.IfStatement?"else "+a:_n("else",xn(e.alternate)+a),mp.js+=_n(s,a)}else vp[r.type](r,cp.s4(i))},ForStatement:function(e,t){var r=e.init,n=e.test,o=e.body,i=e.update,s=!Pc&&t.semicolonOptional,a=wn();mp.js+="for"+mp.optSpace+"(",r?r.type===np.VariableDeclaration?vp[r.type](r,cp.s6):(gp[r.type](r,cp.e14),mp.js+=";"):mp.js+=";",n&&(mp.js+=mp.optSpace,gp[n.type](n,cp.e5)),mp.js+=";",i&&(mp.js+=mp.optSpace,gp[i.type](i,cp.e5)),mp.js+=")",mp.indent=a,mp.js+=xn(o),vp[o.type](o,cp.s4(s))},ForInStatement:function(e,t){kn("in",e,t)},ForOfStatement:function(e,t){kn("of",e,t)},LabeledStatement:function(e,t){var r=e.body,n=!Pc&&t.semicolonOptional,o=mp.indent;mp.js+=e.label.name+":"+xn(r),r.type!==np.BlockStatement&&(o=wn()),vp[r.type](r,cp.s4(n)),mp.indent=o},ModuleDeclaration:function(e,t){mp.js+="module"+mp.space+e.id.name+mp.space+"from"+mp.optSpace,gp.Literal(e.source),!Pc&&t.semicolonOptional||(mp.js+=";")},Program:function(e){var t=e.body,r=t.length,n=r-1;Ic&&r>0&&(mp.js+="\n");for(var o=0;o<r;o++){var i=t[o];mp.js+=mp.indent,vp[i.type](i,cp.s5(!Ic&&o===n)),o!==n&&(mp.js+=mp.newline)}},FunctionDeclaration:function(e){var t=!!e.generator;e.async&&(mp.js+="async "),mp.js+=t?"function*"+mp.optSpace:"function"+mp.space,mp.js+=e.id.name,Pn(e)},ReturnStatement:function(e,t){var r=e.argument;if(r){var n=Dn(r,cp.e5);mp.js+=_n("return",n)}else mp.js+="return";!Pc&&t.semicolonOptional||(mp.js+=";")},WhileStatement:function(e,t){var r=e.body,n=e.test,o=!Pc&&t.semicolonOptional,i=wn();mp.js+="while"+mp.optSpace+"(",gp[n.type](n,cp.e5),mp.js+=")",mp.indent=i,mp.js+=xn(r),vp[r.type](r,cp.s4(o))},WithStatement:function(e,t){var r=e.body,n=e.object,o=!Pc&&t.semicolonOptional,i=wn();mp.js+="with"+mp.optSpace+"(",gp[n.type](n,cp.e5),mp.js+=")",mp.indent=i,mp.js+=xn(r),vp[r.type](r,cp.s4(o))}},mp={js:"",newline:"\n",optSpace:" ",space:" ",indentUnit:"    ",indent:""},gp=void 0,vp=fp,yp=function(e,t){var r=ln();return null!=t?("string"==typeof t.indent&&(r.format.indent.style=t.indent),"number"==typeof t.base&&(r.format.indent.base=t.base),t=fn(r,t),mp.indentUnit=t.format.indent.style,"string"==typeof t.base?mp.indent=t.base:mp.indent=dn(mp.indentUnit,t.format.indent.base)):(t=r,mp.indentUnit=t.format.indent.style,mp.indent=dn(mp.indentUnit,t.format.indent.base)),_c=t.format.json,wc=t.format.renumber,xc=!_c&&t.format.hexadecimal,Cc=_c?"double":t.format.quotes,Tc=t.format.escapeless,mp.newline=t.format.newline,mp.optSpace=t.format.space,t.format.compact&&(mp.newline=mp.optSpace=mp.indentUnit=mp.indent=""),mp.space=mp.optSpace?mp.optSpace:" ",Ac=t.format.parentheses,Pc=t.format.semicolons,Ic=t.format.safeConcatenation,Nc=t.directive,_c?null:t.parse,Lc=t,gp=Lc.verbatim?Hn():hp,Rn(e)},Ep={getLocation:"__get$Loc",setLocation:"__set$Loc",getProperty:"__get$",setProperty:"__set$",callMethod:"__call$",processScript:"__proc$Script",processHtml:"__proc$Html",getEval:"__get$Eval",getPostMessage:"__get$PostMessage",getProxyUrl:"__get$ProxyUrl",restArray:"__rest$Array",arrayFrom:"__arrayFrom$",restObject:"__rest$Object",swScopeHeaderValue:"__swScopeHeaderValue"},Sp="_hh$temp",bp=function(){function e(){this._list=[]}return e.resetCounter=function(){e._counter=0},e.generateName=function(t,r,n){if(!t)return Sp+e._counter++;if(r){if(r.type===op.Identifier)return t+"$"+r.name;if(r.type===op.Literal&&r.value)return t+"$"+r.value.toString().replace(/[^a-zA-Z0-9]/g,"")}return t+"$i"+n},e.isHHTempVariable=function(e){return 0===e.indexOf(Sp)},e.prototype.append=function(e){this._list.push(e)},e.prototype.get=function(){return this._list},e._counter=0,e}(),_p=["postMessage","replace","assign"],wp=["href","location"],xp=new RegExp("^("+_p.join("|")+")$"),Cp=new RegExp("^("+wp.join("|")+")$"),Tp=RegExp.prototype.test,Ap=function(e,t){return e.test?e.test(t):Tp.call(e,t)},Pp=Object.freeze({__proto__:null,METHODS:_p,PROPERTIES:wp,shouldInstrumentMethod:_o,shouldInstrumentProperty:wo}),Ip={nodeReplacementRequireTransform:!0,nodeTypes:op.MemberExpression,condition:function(e,t){return!(!e.computed||!t)&&(!(e.property.type===op.Literal&&!wo(e.property.value))&&(e.object.type!==op.Super&&((t.type!==op.AssignmentExpression||t.left!==e)&&((t.type!==op.UnaryExpression||"delete"!==t.operator)&&((t.type!==op.UpdateExpression||"++"!==t.operator&&"--"!==t.operator)&&((t.type!==op.CallExpression||t.callee!==e)&&((t.type!==op.NewExpression||t.callee!==e)&&(t.type!==op.ForInStatement||t.left!==e))))))))},run:function(e){return uo(e.property,e.object)}},Np={nodeReplacementRequireTransform:!0,nodeTypes:op.AssignmentExpression,condition:function(e){var t=e.left;return(t.type!==op.MemberExpression||t.object.type!==op.Super)&&(!("="!==e.operator||t.type!==op.MemberExpression||!t.computed)&&(t.property.type!==op.Literal||wo(t.property.value)))},run:function(e){var t=e.left;return ho(t.property,t.object,e.right)}},Lp={nodeReplacementRequireTransform:!0,nodeTypes:op.AssignmentExpression,condition:function(e){if("+="!==e.operator)return!1;var t=e.left;if(t.type===op.Identifier)return wo(t.name);if(t.type===op.MemberExpression){if(t.computed)return t.property.type===op.Literal?wo(t.property.value):t.property.type!==op.UpdateExpression;if(t.property.type===op.Identifier)return wo(t.property.name)}return!1},run:function(e){return Eo(e.left,e.right)}},Op={nodeReplacementRequireTransform:!1,nodeTypes:op.CallExpression,condition:function(e){if(!e.arguments.length)return!1;var t=e.callee;return t.type===op.Identifier&&"eval"===t.name||t.type===op.MemberExpression&&"eval"===(t.property.type===op.Identifier&&t.property.name||t.property.type===op.Literal&&t.property.value)},run:function(e){var t=io(e.arguments[0]);return xo(e.arguments[0],t,e,"arguments"),null}},kp={nodeReplacementRequireTransform:!1,nodeTypes:op.CallExpression,condition:function(e){if(e.callee.type===op.MemberExpression&&e.callee.property.type===op.Identifier&&"bind"===e.callee.property.name){var t=e.callee.object;if(t.type===op.MemberExpression&&"eval"===(t.property.type===op.Identifier&&t.property.name||t.property.type===op.Literal&&t.property.value))return!0;if(t.type===op.Identifier&&"eval"===t.name)return!0}return!1},run:function(e){var t=e.callee,r=fo(t.object);return xo(t.object,r,t,"object"),null}},Dp=/^(call|apply)$/,Mp={nodeReplacementRequireTransform:!1,nodeTypes:op.CallExpression,condition:function(e){if(e.arguments.length<2)return!1;if(e.callee.type===op.MemberExpression&&e.callee.property.type===op.Identifier&&Dp.test(e.callee.property.name)){var t=e.callee.object;if(t.type===op.Identifier&&"eval"===t.name)return!0;if(t.type===op.MemberExpression&&"eval"===(t.property.type===op.Identifier&&t.property.name||t.property.type===op.Literal&&t.property.value))return!0}return!1},run:function(e){var t=e.callee,r=t.property,n=io(e.arguments[1],"apply"===r.name);return xo(e.arguments[1],n,e,"arguments"),null}},Rp={nodeReplacementRequireTransform:!1,nodeTypes:op.Identifier,condition:function(e,t){return!("eval"!==e.name||!t)&&((t.type!==op.CallExpression||t.callee!==e)&&(t.type!==op.MethodDefinition&&(t.type!==op.ClassDeclaration&&(t.type!==op.MemberExpression&&((t.type!==op.FunctionExpression&&t.type!==op.FunctionDeclaration||t.id!==e)&&((t.type!==op.FunctionExpression&&t.type!==op.FunctionDeclaration&&t.type!==op.ArrowFunctionExpression||t.params.indexOf(e)===-1)&&((t.type!==op.Property||t.key!==e)&&((t.type!==op.Property||t.value!==e||!t.shorthand)&&((t.type!==op.AssignmentExpression&&t.type!==op.AssignmentPattern||t.left!==e)&&((t.type!==op.VariableDeclarator||t.id!==e)&&((t.type!==op.UpdateExpression||"++"!==t.operator&&"--"!==t.operator)&&((t.type!==op.CallExpression||t.callee.type!==op.Identifier||t.callee.name!==Ep.getEval)&&(t.type!==op.RestElement&&(t.type!==op.ExportSpecifier&&t.type!==op.ImportSpecifier))))))))))))))},run:fo},jp={nodeReplacementRequireTransform:!1,nodeTypes:op.MemberExpression,condition:function(e,t){return!!t&&((t.type!==op.MemberExpression||t.property!==e&&t.object!==e)&&((t.type!==op.CallExpression||t.callee!==e)&&((t.type!==op.AssignmentExpression||t.left!==e)&&((t.type!==op.CallExpression||t.callee.type!==op.Identifier||t.callee.name!==Ep.getEval)&&(e.property.type===op.Identifier&&"eval"===e.property.name||e.property.type===op.Literal&&"eval"===e.property.value)))))},run:fo},Hp={nodeReplacementRequireTransform:!1,nodeTypes:op.Identifier,condition:function(e,t){return!("postMessage"!==e.name||!t)&&(t.type!==op.MemberExpression&&(t.type!==op.MethodDefinition&&(t.type!==op.ClassDeclaration&&((t.type!==op.FunctionExpression&&t.type!==op.FunctionDeclaration||t.id!==e)&&((t.type!==op.FunctionExpression&&t.type!==op.FunctionDeclaration&&t.type!==op.ArrowFunctionExpression||t.params.indexOf(e)===-1)&&((t.type!==op.Property||t.key!==e)&&((t.type!==op.Property||t.value!==e||!t.shorthand)&&((t.type!==op.AssignmentExpression&&t.type!==op.AssignmentPattern||t.left!==e)&&((t.type!==op.VariableDeclarator||t.id!==e)&&((t.type!==op.UpdateExpression||"++"!==t.operator&&"--"!==t.operator)&&((t.type!==op.CallExpression||t.callee.type!==op.Identifier||t.callee.name!==Ep.getPostMessage&&(t.callee.name!==Ep.callMethod||t.arguments[1]!==e))&&(t.type!==op.RestElement&&(t.type!==op.ExportSpecifier&&t.type!==op.ImportSpecifier)))))))))))))},run:vo},Fp={nodeReplacementRequireTransform:!1,nodeTypes:op.MemberExpression,condition:function(e,t){return!!t&&((t.type!==op.MemberExpression||t.property!==e&&t.object!==e)&&((t.type!==op.CallExpression||t.callee!==e)&&((t.type!==op.AssignmentExpression||t.left!==e)&&((t.type!==op.CallExpression||t.callee.type!==op.Identifier||t.callee.name!==Ep.getPostMessage)&&(e.property.type===op.Identifier&&"postMessage"===e.property.name||e.property.type===op.Literal&&"postMessage"===e.property.value)))))},run:vo},Vp=/^(call|apply|bind)$/,Up={nodeReplacementRequireTransform:!1,nodeTypes:op.CallExpression,condition:function(e){if(e.callee.type===op.MemberExpression&&e.callee.property.type===op.Identifier&&Vp.test(e.callee.property.name)){if(e.arguments.length<2&&"bind"!==e.callee.property.name)return!1;var t=e.callee.object;if(t.type===op.MemberExpression&&"postMessage"===(t.property.type===op.Identifier&&t.property.name||t.property.type===op.Literal&&t.property.value))return!0;if(t.type===op.Identifier&&"postMessage"===t.name)return!0}return!1},run:function(e){var t=e.callee,r=vo(t.object);return xo(t.object,r,t,"object"),null}},Bp={nodeReplacementRequireTransform:!1,nodeTypes:op.ForInStatement,condition:function(e){return e.left.type===op.MemberExpression},run:function(e){var t=Fn(bp.generateName()),r=oo("var",[no(t)]),n=to(e.left,t);return e.body.type!==op.BlockStatement?xo(e.body,ro([n,e.body]),e,"body"):xo(null,n,e.body,"body"),xo(e.left,r,e,"left"),null}},Gp={nodeReplacementRequireTransform:!1,nodeTypes:op.ForOfStatement,condition:function(e){var t=e.left;return t.type===op.VariableDeclaration&&(t=t.declarations[0].id),t.type===op.ObjectPattern||t.type===op.ArrayPattern},run:function(e){var t,r=Fn(bp.generateName()),n=e.left;if(n.type===op.VariableDeclaration)To(e),t=oo(n.kind,[no(n.declarations[0].id,r)]),t.reTransform=!0,xo(n.declarations[0].id,r,n.declarations[0],"id");else{var o=oo("var",[no(r)]);t=to(n,r),xo(n,o,e,"left")}return e.body.type===op.BlockStatement?xo(null,t,e.body,"body"):xo(e.body,ro([t,e.body]),e,"body"),null}},Wp={nodeReplacementRequireTransform:!1,nodeTypes:op.Identifier,condition:function(e,t){return!("location"!==e.name||!t)&&((t.type!==op.VariableDeclarator||t.id!==e)&&((t.type!==op.AssignmentExpression&&t.type!==op.AssignmentPattern||t.left!==e)&&((t.type!==op.FunctionExpression&&t.type!==op.FunctionDeclaration||t.id!==e)&&((t.type!==op.MemberExpression||t.property!==e)&&((t.type!==op.Property||t.key!==e)&&((t.type!==op.Property||t.value!==e||!t.shorthand)&&((t.type!==op.UpdateExpression||"++"!==t.operator&&"--"!==t.operator)&&((t.type!==op.FunctionExpression&&t.type!==op.FunctionDeclaration&&t.type!==op.ArrowFunctionExpression||t.params.indexOf(e)===-1)&&((t.type!==op.CallExpression||t.callee.type!==op.Identifier||t.callee.name!==Ep.getLocation)&&(t.type!==op.MethodDefinition&&(t.type!==op.ClassDeclaration&&(t.type!==op.RestElement&&(t.type!==op.ExportSpecifier&&t.type!==op.ImportSpecifier)))))))))))))},run:so},qp={nodeReplacementRequireTransform:!1,nodeTypes:op.AssignmentExpression,condition:function(e){return"="===e.operator&&e.left.type===op.Identifier&&"location"===e.left.name},run:function(e,t,r){if(!t)return null;var n="arguments"!==r&&"consequent"!==r&&"alternate"!==r&&(t.type!==op.SequenceExpression||t.expressions[0]===e);return ao(e.left,e.right,n)}},zp={nodeReplacementRequireTransform:!0,nodeTypes:op.MemberExpression,condition:function(e,t){return!(e.computed||!t)&&(!(e.property.type===op.Identifier&&!wo(e.property.name))&&(e.object.type!==op.Super&&((t.type!==op.AssignmentExpression||t.left!==e)&&((t.type!==op.UnaryExpression||"delete"!==t.operator)&&((t.type!==op.CallExpression||t.callee!==e)&&((t.type!==op.UpdateExpression||"++"!==t.operator&&"--"!==t.operator)&&((t.type!==op.NewExpression||t.callee!==e)&&(t.type!==op.ForInStatement||t.left!==e))))))))},run:function(e){return po(e.property.name,e.object)}},Kp={nodeReplacementRequireTransform:!0,nodeTypes:op.AssignmentExpression,condition:function(e){return(e.left.type!==op.MemberExpression||e.left.object.type!==op.Super)&&("="===e.operator&&e.left.type===op.MemberExpression&&!e.left.computed&&e.left.property.type===op.Identifier&&wo(e.left.property.name))},run:function(e){var t=e.left,r=t.property;return lo(r.name,t.object,e.right)}},Xp={nodeReplacementRequireTransform:!0,nodeTypes:op.CallExpression,condition:function(e){var t=e.callee;return t.type===op.MemberExpression&&(t.object.type!==op.Super&&(t.computed?t.property.type!==op.Literal||_o(t.property.value):t.property.type===op.Identifier&&_o(t.property.name)))},run:function(e){var t=e.callee,r=t.computed?t.property:eo(t.property.name);return co(t.object,r,e.arguments)}},$p={nodeReplacementRequireTransform:!0,nodeTypes:op.ExpressionStatement,condition:function(e,t){return!!$p.wrapLastExpr&&!!t&&t.type===op.Program&&t.body[t.body.length-1]===e},run:function(e){return $p.wrapLastExpr=!1,So(e)}},Yp={nodeReplacementRequireTransform:!1,nodeTypes:op.Literal,condition:function(e,t){return!!t&&(t.type===op.ImportDeclaration||t.type===op.ExportAllDeclaration||t.type===op.ExportNamedDeclaration)&&t.source===e},run:function(e){return Yp.resolver?mo(e,Yp.resolver):null}},Qp={nodeReplacementRequireTransform:!0,nodeTypes:op.ImportExpression,condition:function(){return!0},run:function(e){var t,r=go(e.source,null===(t=Qp.getBaseUrl)||void 0===t?void 0:t.call(Qp));return xo(e.source,r,e,"source"),null}},Jp={nodeReplacementRequireTransform:!0,nodeTypes:op.VariableDeclaration,condition:function(e,t){if((null===t||void 0===t?void 0:t.type)===op.ForInStatement)return!1;for(var r=0,n=e.declarations;r<n.length;r++){var o=n[r];if(o.id.type===op.ObjectPattern||o.id.type===op.ArrayPattern)return!0}return!1},run:function(e){for(var t=[],r=0,n=e.declarations;r<n.length;r++){var o=n[r];Do(o.id,o.init||null,function(e,r){return t.push(no(e,r))})}return oo(e.kind,t)}},Zp={nodeReplacementRequireTransform:!0,nodeTypes:op.AssignmentExpression,condition:function(e){return"="===e.operator&&(e.left.type===op.ObjectPattern||e.left.type===op.ArrayPattern)},run:function(e,t,r,n){var o=[],i=!0,s=null;return Do(e.left,e.right,function(e,t,r){i&&(i=!1,r&&(s=e)),o.push(Un(e,"=",t)),r&&n&&n.append(e.name)}),s&&o.push(s),zn(o)}},eu=[Mo(op.FunctionDeclaration),Mo(op.FunctionExpression),Mo(op.ArrowFunctionExpression),Zp,Ip,Np,Lp,Op,kp,Mp,Rp,jp,Hp,Fp,Up,Bp,Gp,Wp,qp,zp,Kp,Xp,$p,Yp,Qp,Jp],tu=Ro(),ru=[/^\s*at .*\((\S+)\)/,/^\s*at (\S+)/,/^.*@(\S+)/,/(.+)/],nu=/(?:^|\n)(?:\s*at |.*@)(?:.*\()?(\S+?):\d+:\d+\)?/g,ou=/:\d+:\d+$/,iu=Object.freeze({__proto__:null,replaceProxiedUrlsInStack:Fo,getFirstDestUrl:Vo}),su=function(){function e(){this.hasTransformedAncestor=!1}return e.create=function(t,r,n,o,i){void 0===i&&(i=!1);var s=r.type===op.NewExpression,a=s&&!t.newExpressionAncestor,l=new e;return l.hasTransformedAncestor=t.hasTransformedAncestor||i,l.newExpressionAncestor=a?r:t.newExpressionAncestor,l.newExpressionAncestorParent=a?n:t.newExpressionAncestorParent,l.newExpressionAncestorKey=a?o:t.newExpressionAncestorKey,l},e}(),au=Object.prototype.toString,lu=Object.keys,cu={hammerhead:"/hammerhead.js",task:"/task.js",iframeTask:"/iframe-task.js",messaging:"/messaging",transportWorker:"/transport-worker.js",workerHammerhead:"/worker-hammerhead.js"},pu=JSON.parse,uu=JSON.stringify,hu=Object.freeze({__proto__:null,parse:pu,stringify:uu,isSerializable:ei}),du="/*hammerhead|script|start*/",fu="/*hammerhead|script|end*/",mu="/*hammerhead|script|processing-header-end*/",gu="{strict-placeholder}",vu="{sw-scope-header-value}",yu=("\n    "+du+"\n    "+gu+"\n    "+vu+"\n\n    if (typeof window !== 'undefined' && window){\n        window['"+Ga.processDomMethodName+"'] && window['"+Ga.processDomMethodName+"']();\n\n        if (window."+Ep.getProperty+" && typeof "+Ep.getProperty+" === 'undefined')\n            var "+Ep.getLocation+" = window."+Ep.getLocation+",\n                "+Ep.setLocation+" = window."+Ep.setLocation+",\n                "+Ep.setProperty+" = window."+Ep.setProperty+",\n                "+Ep.getProperty+" = window."+Ep.getProperty+",\n                "+Ep.callMethod+" = window."+Ep.callMethod+",\n                "+Ep.getEval+" = window."+Ep.getEval+",\n                "+Ep.processScript+" = window."+Ep.processScript+",\n                "+Ep.processHtml+" = window."+Ep.processHtml+",\n                "+Ep.getPostMessage+" = window."+Ep.getPostMessage+",\n                "+Ep.getProxyUrl+" = window."+Ep.getProxyUrl+",\n                "+Ep.restArray+" = window."+Ep.restArray+",\n                "+Ep.restObject+" = window."+Ep.restObject+",\n                "+Ep.arrayFrom+" = window."+Ep.arrayFrom+";\n    } else {\n        if (typeof "+Ep.getProperty+" === 'undefined')\n            var "+Ep.getLocation+" = function(l){return l},\n                "+Ep.setLocation+" = function(l,v){return l = v},\n                "+Ep.setProperty+" = function(o,p,v){return o[p] = v},\n                "+Ep.getProperty+" = function(o,p){return o[p]},\n                "+Ep.callMethod+" = function(o,p,a){return o[p].apply(o,a)},\n                "+Ep.getEval+" = function(e){return e},\n                "+Ep.processScript+" = function(s){return s},\n                "+Ep.processHtml+" = function(h){return h},\n                "+Ep.getPostMessage+" = function(w,p){return arguments.length===1?w.postMessage:p},\n                "+Ep.getProxyUrl+" = function(u,d){return u},\n                "+Ep.restArray+" = function(a,i){return Array.prototype.slice.call(a, i)},\n                "+Ep.restObject+" = function(o,p){var k=Object.keys(o),n={};for(var i=0;i<k.length;++i)if(p.indexOf(k[i])<0)n[k[i]]=o[k[i]];return n},\n                "+Ep.arrayFrom+' = function(r){if(!r)return r;return!Array.isArray(r)&&"function"==typeof r[Symbol.iterator]?Array.from(r):r};\n        if (typeof importScripts !== "undefined" && /\\[native code]/g.test(importScripts.toString()))\n            importScripts((location.origin || (location.protocol + "//" + location.host)) + "'+cu.workerHammerhead+'");\n    }\n    '+mu+"\n").replace(/\n(?!$)\s*/g,""),Eu=new RegExp(Qo(du)+"[\\S\\s]+?"+Qo(mu)+"\n?","gi"),Su=new RegExp("\n?"+Qo(fu)+"\\s*","gi"),bu=Object.freeze({__proto__:null,SCRIPT_PROCESSING_START_COMMENT:du,SCRIPT_PROCESSING_END_COMMENT:fu,SCRIPT_PROCESSING_END_HEADER_COMMENT:mu,remove:ti,add:ri}),_u=t(function(e,t){function r(e,t){for(var r=65536,n=0;n<t.length;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}}function n(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):t!==!1&&r(e,p)))}function o(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):t!==!1&&(r(e,p)||r(e,u)))))}t.__esModule=!0,t.isIdentifierStart=n,t.isIdentifierChar=o,t.reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"};var i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this";t.keywords={5:i,"5module":i+" export import",6:i+" const class extends export import super"},t.keywordRelationalOperator=/^in(stanceof)?$/;var s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",a="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏０-９＿",l=new RegExp("["+s+"]"),c=new RegExp("["+s+a+"]");s=a=null;var p=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239]}),wu=t(function(e,t){function r(e,t){return new o(e,{beforeExpr:!0,binop:t})}function n(e,t){return void 0===t&&(t={}),t.keyword=e,a[e]=new o(e,t)}t.__esModule=!0;var o=function(){function e(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null}return e}();t.TokenType=o;var i={beforeExpr:!0},s={startsExpr:!0},a=t.keywords={};t.types={num:new o("num",s),regexp:new o("regexp",s),string:new o("string",s),name:new o("name",s),eof:new o("eof"),bracketL:new o("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new o("]"),braceL:new o("{",{beforeExpr:!0,startsExpr:!0}),braceR:new o("}"),parenL:new o("(",{beforeExpr:!0,startsExpr:!0}),parenR:new o(")"),comma:new o(",",i),semi:new o(";",i),colon:new o(":",i),dot:new o("."),question:new o("?",i),questionDot:new o("?."),arrow:new o("=>",i),template:new o("template"),invalidTemplate:new o("invalidTemplate"),ellipsis:new o("...",i),backQuote:new o("`",s),dollarBraceL:new o("${",{beforeExpr:!0,startsExpr:!0}),eq:new o("=",{beforeExpr:!0,isAssign:!0}),assign:new o("_=",{beforeExpr:!0,isAssign:!0}),incDec:new o("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new o("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:r("||",1),logicalAND:r("&&",2),bitwiseOR:r("|",3),bitwiseXOR:r("^",4),bitwiseAND:r("&",5),equality:r("==/!=/===/!==",6),relational:r("</>/<=/>=",7),bitShift:r("<</>>/>>>",8),plusMin:new o("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:r("%",10),star:r("*",10),slash:r("/",10),starstar:new o("**",{beforeExpr:!0}),coalesce:r("??",1),_break:n("break"),_case:n("case",i),_catch:n("catch"),_continue:n("continue"),_debugger:n("debugger"),_default:n("default",i),_do:n("do",{isLoop:!0,beforeExpr:!0}),_else:n("else",i),_finally:n("finally"),_for:n("for",{isLoop:!0}),_function:n("function",s),_if:n("if"),_return:n("return",i),_switch:n("switch"),_throw:n("throw",i),_try:n("try"),_var:n("var"),_const:n("const"),_while:n("while",{isLoop:!0}),_with:n("with"),_new:n("new",{beforeExpr:!0,startsExpr:!0}),_this:n("this",s),_super:n("super",s),_class:n("class",s),_extends:n("extends",i),_export:n("export"),_import:n("import",s),_null:n("null",s),_true:n("true",s),_false:n("false",s),_in:n("in",{beforeExpr:!0,binop:7}),_instanceof:n("instanceof",{beforeExpr:!0,binop:7}),_typeof:n("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:n("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:n("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})}}),xu=t(function(e,t){function r(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}t.__esModule=!0,t.isNewLine=r;var n=t.lineBreak=/\r\n?|\n|\u2028|\u2029/;t.lineBreakG=new RegExp(n.source,"g"),t.nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,t.skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g}),Cu=t(function(e,t){function r(e,t){return i.call(e,t)}function n(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}t.__esModule=!0,t.has=r,t.wordsRegexp=n;var o=Object.prototype,i=o.hasOwnProperty,s=o.toString;t.isArray=Array.isArray||function(e){return"[object Array]"===s.call(e)}}),Tu=t(function(e,t){function r(e,t){for(var r=1,o=0;;){xu.lineBreakG.lastIndex=o;var i=xu.lineBreakG.exec(e);if(!(i&&i.index<t))return new n(r,t-o);++r,o=i.index+i[0].length}}t.__esModule=!0,t.SourceLocation=t.Position=void 0,t.getLineInfo=r;var n=function(){function e(e,t){this.line=e,this.column=t}return e.prototype.offset=function(t){return new e(this.line,this.column+t)},e}();t.Position=n;var o=function(){function e(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)}return e}();t.SourceLocation=o}),Au=t(function(e,t){function r(e){var t={};for(var r in o)t[r]=e&&(0,Cu.has)(e,r)?e[r]:o[r];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!i&&"object"==typeof console&&console.warn&&(i=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),(0,Cu.isArray)(t.onToken)){var s=t.onToken;t.onToken=function(e){return s.push(e)}}return(0,Cu.isArray)(t.onComment)&&(t.onComment=n(t,t.onComment)),t}function n(e,t){return function(r,n,o,i,s,a){var l={type:r?"Block":"Line",value:n,start:o,end:i};e.locations&&(l.loc=new Tu.SourceLocation(this,s,a)),e.ranges&&(l.range=[o,i]),t.push(l)}}t.__esModule=!0,t.defaultOptions=void 0,t.getOptions=r;var o=t.defaultOptions={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},i=!1}),Pu=t(function(e,t){function r(e,t){return o|(e?i:0)|(t?s:0)}t.__esModule=!0,t.functionFlags=r;
  var n=t.SCOPE_TOP=1,o=t.SCOPE_FUNCTION=2;t.SCOPE_VAR=n|o;var i=t.SCOPE_ASYNC=4,s=t.SCOPE_GENERATOR=8;t.SCOPE_ARROW=16,t.SCOPE_SIMPLE_CATCH=32,t.SCOPE_SUPER=64,t.SCOPE_DIRECT_SUPER=128,t.BIND_NONE=0,t.BIND_VAR=1,t.BIND_LEXICAL=2,t.BIND_FUNCTION=3,t.BIND_SIMPLE_CATCH=4,t.BIND_OUTSIDE=5}),Iu=t(function(e,t){t.__esModule=!0,t.Parser=void 0;var r=function(){function e(e,t,r){this.options=e=(0,Au.getOptions)(e),this.sourceFile=e.sourceFile,this.keywords=(0,Cu.wordsRegexp)(_u.keywords[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";e.allowReserved!==!0&&(n=_u.reservedWords[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=(0,Cu.wordsRegexp)(n);var o=(n?n+" ":"")+_u.reservedWords.strict;this.reservedWordsStrict=(0,Cu.wordsRegexp)(o),this.reservedWordsStrictBind=(0,Cu.wordsRegexp)(o+" "+_u.reservedWords.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(xu.lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=wu.types.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Pu.SCOPE_TOP),this.regexpState=null}return e.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Object.defineProperty(e.prototype,"inFunction",{get:function(){return(this.currentVarScope().flags&Pu.SCOPE_FUNCTION)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inGenerator",{get:function(){return(this.currentVarScope().flags&Pu.SCOPE_GENERATOR)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inAsync",{get:function(){return(this.currentVarScope().flags&Pu.SCOPE_ASYNC)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowSuper",{get:function(){return(this.currentThisScope().flags&Pu.SCOPE_SUPER)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowDirectSuper",{get:function(){return(this.currentThisScope().flags&Pu.SCOPE_DIRECT_SUPER)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treatFunctionsAsVar",{get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inNonArrowFunction",{get:function(){return(this.currentThisScope().flags&Pu.SCOPE_FUNCTION)>0},enumerable:!0,configurable:!0}),e.extend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},e.parse=function(e,t){return new this(t,e).parse()},e.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},e.tokenizer=function(e,t){return new this(t,e)},e}();t.Parser=r}),Nu=ni,Lu=Iu.Parser.prototype,Ou=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Lu.strictDirective=function(e){for(;;){xu.skipWhiteSpace.lastIndex=e,e+=xu.skipWhiteSpace.exec(this.input)[0].length;var t=Ou.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2]))return!1;e+=t[0].length,xu.skipWhiteSpace.lastIndex=e,e+=xu.skipWhiteSpace.exec(this.input)[0].length,";"===this.input[e]&&e++}},Lu.eat=function(e){return this.type===e&&(this.next(),!0)},Lu.isContextual=function(e){return this.type===wu.types.name&&this.value===e&&!this.containsEsc},Lu.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},Lu.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Lu.canInsertSemicolon=function(){return this.type===wu.types.eof||this.type===wu.types.braceR||xu.lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},Lu.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Lu.semicolon=function(){this.eat(wu.types.semi)||this.insertSemicolon()||this.unexpected()},Lu.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Lu.expect=function(e){this.eat(e)||this.unexpected()},Lu.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},Lu.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}},Lu.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;return t?(r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),void(n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property"))):r>=0||n>=0},Lu.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Lu.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var ku=Object.defineProperty({DestructuringErrors:Nu},"__esModule",{value:!0}),Du=Iu.Parser.prototype;Du.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==wu.types.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=Object.keys(this.undefinedExports),o=Array.isArray(n),i=0,n=o?n:n[Symbol.iterator]();;){var s;if(o){if(i>=n.length)break;s=n[i++]}else{if(i=n.next(),i.done)break;s=i.value}var a=s;this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Mu={kind:"loop"},Ru={kind:"switch"};Du.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;xu.skipWhiteSpace.lastIndex=this.pos;var t=xu.skipWhiteSpace.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(91===n)return!0;if(e)return!1;if(123===n)return!0;if((0,_u.isIdentifierStart)(n,!0)){for(var o=r+1;(0,_u.isIdentifierChar)(this.input.charCodeAt(o),!0);)++o;var i=this.input.slice(r,o);if(!_u.keywordRelationalOperator.test(i))return!0}return!1},Du.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;xu.skipWhiteSpace.lastIndex=this.pos;var e=xu.skipWhiteSpace.exec(this.input),t=this.pos+e[0].length;return!(xu.lineBreak.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!==this.input.length&&(0,_u.isIdentifierChar)(this.input.charAt(t+8)))},Du.parseStatement=function(e,t,r){var n,o=this.type,i=this.startNode();switch(this.isLet(e)&&(o=wu.types._var,n="let"),o){case wu.types._break:case wu.types._continue:return this.parseBreakContinueStatement(i,o.keyword);case wu.types._debugger:return this.parseDebuggerStatement(i);case wu.types._do:return this.parseDoStatement(i);case wu.types._for:return this.parseForStatement(i);case wu.types._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case wu.types._class:return e&&this.unexpected(),this.parseClass(i,!0);case wu.types._if:return this.parseIfStatement(i);case wu.types._return:return this.parseReturnStatement(i);case wu.types._switch:return this.parseSwitchStatement(i);case wu.types._throw:return this.parseThrowStatement(i);case wu.types._try:return this.parseTryStatement(i);case wu.types._const:case wu.types._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(i,n);case wu.types._while:return this.parseWhileStatement(i);case wu.types._with:return this.parseWithStatement(i);case wu.types.braceL:return this.parseBlock(!0,i);case wu.types.semi:return this.parseEmptyStatement(i);case wu.types._export:case wu.types._import:if(this.options.ecmaVersion>10&&o===wu.types._import){xu.skipWhiteSpace.lastIndex=this.pos;var s=xu.skipWhiteSpace.exec(this.input),a=this.pos+s[0].length,l=this.input.charCodeAt(a);if(40===l||46===l)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),o===wu.types._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var c=this.value,p=this.parseExpression();return o===wu.types.name&&"Identifier"===p.type&&this.eat(wu.types.colon)?this.parseLabeledStatement(i,c,p,e):this.parseExpressionStatement(i,p)}},Du.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(wu.types.semi)||this.insertSemicolon()?e.label=null:this.type!==wu.types.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var o=this.labels[n];if(null==e.label||o.name===e.label.name){if(null!=o.kind&&(r||"loop"===o.kind))break;if(e.label&&r)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},Du.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},Du.parseDoStatement=function(e){return this.next(),this.labels.push(Mu),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(wu.types._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(wu.types.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},Du.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Mu),this.enterScope(0),this.expect(wu.types.parenL),this.type===wu.types.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===wu.types._var||this.type===wu.types._const||r){var n=this.startNode(),o=r?"let":this.value;return this.next(),this.parseVar(n,!0,o),this.finishNode(n,"VariableDeclaration"),(this.type===wu.types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length?(this.options.ecmaVersion>=9&&(this.type===wu.types._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var i=new ku.DestructuringErrors,s=this.parseExpression(!0,i);return this.type===wu.types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===wu.types._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(s,!1,i),this.checkLValPattern(s),this.parseForIn(e,s)):(this.checkExpressionErrors(i,!0),t>-1&&this.unexpected(t),this.parseFor(e,s))},Du.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,Hu|(r?0:Fu),!1,t)},Du.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(wu.types._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},Du.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(wu.types.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},Du.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(wu.types.braceL),this.labels.push(Ru),this.enterScope(0);for(var t,r=!1;this.type!==wu.types.braceR;)if(this.type===wu.types._case||this.type===wu.types._default){var n=this.type===wu.types._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(wu.types.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},Du.parseThrowStatement=function(e){return this.next(),xu.lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var ju=[];Du.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===wu.types._catch){var t=this.startNode();if(this.next(),this.eat(wu.types.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?Pu.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(t.param,r?Pu.BIND_SIMPLE_CATCH:Pu.BIND_LEXICAL),this.expect(wu.types.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(wu.types._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},Du.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},Du.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Mu),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},Du.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},Du.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},Du.parseLabeledStatement=function(e,t,r,n){for(var o=this.labels,i=Array.isArray(o),s=0,o=i?o:o[Symbol.iterator]();;){var a;if(i){if(s>=o.length)break;a=o[s++]}else{if(s=o.next(),s.done)break;a=s.value}var l=a;l.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var c=this.type.isLoop?"loop":this.type===wu.types._switch?"switch":null,p=this.labels.length-1;p>=0;p--){var l=this.labels[p];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=c}return this.labels.push({name:t,kind:c,statementStart:this.start}),e.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},Du.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},Du.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(wu.types.braceL),e&&this.enterScope(0);this.type!==wu.types.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},Du.parseFor=function(e,t){return e.init=t,this.expect(wu.types.semi),e.test=this.type===wu.types.semi?null:this.parseExpression(),this.expect(wu.types.semi),e.update=this.type===wu.types.parenR?null:this.parseExpression(),this.expect(wu.types.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},Du.parseForIn=function(e,t){var r=this.type===wu.types._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(wu.types.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},Du.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(wu.types.eq)?n.init=this.parseMaybeAssign(t):"const"!==r||this.type===wu.types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===n.id.type||t&&(this.type===wu.types._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(wu.types.comma))break}return e},Du.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?Pu.BIND_VAR:Pu.BIND_LEXICAL,!1)};var Hu=1,Fu=2,Vu=4;Du.parseFunction=function(e,t,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===wu.types.star&&t&Fu&&this.unexpected(),e.generator=this.eat(wu.types.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&Hu&&(e.id=t&Vu&&this.type!==wu.types.name?null:this.parseIdent(),!e.id||t&Fu||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Pu.BIND_VAR:Pu.BIND_LEXICAL:Pu.BIND_FUNCTION));var o=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope((0,Pu.functionFlags)(e.async,e.generator)),t&Hu||(e.id=this.type===wu.types.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=o,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(e,t&Hu?"FunctionDeclaration":"FunctionExpression")},Du.parseFunctionParams=function(e){this.expect(wu.types.parenL),e.params=this.parseBindingList(wu.types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Du.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),o=!1;for(n.body=[],this.expect(wu.types.braceL);this.type!==wu.types.braceR;){var i=this.parseClassElement(null!==e.superClass);i&&(n.body.push(i),"MethodDefinition"===i.type&&"constructor"===i.kind&&(o&&this.raise(i.start,"Duplicate constructor in the same class"),o=!0))}return this.strict=r,this.next(),e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},Du.parseClassElement=function(e){var t=this;if(this.eat(wu.types.semi))return null;var r=this.startNode(),n=function(e,n){void 0===n&&(n=!1);var o=t.start,i=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===wu.types.parenL||n&&t.canInsertSemicolon())||(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(o,i),r.key.name=e,t.finishNode(r.key,"Identifier"),!1))};r.kind="method",r["static"]=n("static");var o=this.eat(wu.types.star),i=!1;o||(this.options.ecmaVersion>=8&&n("async",!0)?(i=!0,o=this.options.ecmaVersion>=9&&this.eat(wu.types.star)):n("get")?r.kind="get":n("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var s=r.key,a=!1;return r.computed||r["static"]||!("Identifier"===s.type&&"constructor"===s.name||"Literal"===s.type&&"constructor"===s.value)?r["static"]&&"Identifier"===s.type&&"prototype"===s.name&&this.raise(s.start,"Classes may not have a static property named prototype"):("method"!==r.kind&&this.raise(s.start,"Constructor can't have get/set modifier"),o&&this.raise(s.start,"Constructor can't be a generator"),i&&this.raise(s.start,"Constructor can't be an async method"),r.kind="constructor",a=e),this.parseClassMethod(r,o,i,a),"get"===r.kind&&0!==r.value.params.length&&this.raiseRecoverable(r.value.start,"getter should have no params"),"set"===r.kind&&1!==r.value.params.length&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),"set"===r.kind&&"RestElement"===r.value.params[0].type&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r},Du.parseClassMethod=function(e,t,r,n){return e.value=this.parseMethod(t,r,n),this.finishNode(e,"MethodDefinition")},Du.parseClassId=function(e,t){this.type===wu.types.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Pu.BIND_LEXICAL,!1)):(t===!0&&this.unexpected(),e.id=null)},Du.parseClassSuper=function(e){e.superClass=this.eat(wu.types._extends)?this.parseExprSubscripts():null},Du.parseExport=function(e,t){if(this.next(),this.eat(wu.types.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==wu.types.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(wu.types._default)){this.checkExport(t,"default",this.lastTokStart);var r=void 0;if(this.type===wu.types._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,Hu|Vu,!1,r)}else if(this.type===wu.types._class){var o=this.startNode();e.declaration=this.parseClass(o,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==wu.types.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=e.specifiers,s=Array.isArray(i),a=0,i=s?i:i[Symbol.iterator]();;){var l;if(s){if(a>=i.length)break;l=i[a++]}else{if(a=i.next(),a.done)break;l=a.value}var c=l;this.checkUnreserved(c.local),this.checkLocalExport(c.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},Du.checkExport=function(e,t,r){e&&((0,Cu.has)(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},Du.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===r)for(var n=t.properties,o=Array.isArray(n),i=0,n=o?n:n[Symbol.iterator]();;){var s;if(o){if(i>=n.length)break;s=n[i++]}else{if(i=n.next(),i.done)break;s=i.value}var a=s;this.checkPatternExport(e,a)}else if("ArrayPattern"===r)for(var l=t.elements,c=Array.isArray(l),p=0,l=c?l:l[Symbol.iterator]();;){var u;if(c){if(p>=l.length)break;u=l[p++]}else{if(p=l.next(),p.done)break;u=p.value}var h=u;h&&this.checkPatternExport(e,h)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===r&&this.checkPatternExport(e,t.expression)},Du.checkVariableExport=function(e,t){if(e)for(var r=t,n=Array.isArray(r),o=0,r=n?r:r[Symbol.iterator]();;){var i;if(n){if(o>=r.length)break;i=r[o++]}else{if(o=r.next(),o.done)break;i=o.value}var s=i;this.checkPatternExport(e,s.id)}},Du.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Du.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(wu.types.braceL);!this.eat(wu.types.braceR);){if(r)r=!1;else if(this.expect(wu.types.comma),this.afterTrailingComma(wu.types.braceR))break;var n=this.startNode();n.local=this.parseIdent(!0),n.exported=this.eatContextual("as")?this.parseIdent(!0):n.local,this.checkExport(e,n.exported.name,n.exported.start),t.push(this.finishNode(n,"ExportSpecifier"))}return t},Du.parseImport=function(e){return this.next(),this.type===wu.types.string?(e.specifiers=ju,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===wu.types.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},Du.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===wu.types.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLValSimple(r.local,Pu.BIND_LEXICAL),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(wu.types.comma))return e}if(this.type===wu.types.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLValSimple(r.local,Pu.BIND_LEXICAL),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(wu.types.braceL);!this.eat(wu.types.braceR);){if(t)t=!1;else if(this.expect(wu.types.comma),this.afterTrailingComma(wu.types.braceR))break;var r=this.startNode();r.imported=this.parseIdent(!0),this.eatContextual("as")?r.local=this.parseIdent():(this.checkUnreserved(r.imported),r.local=r.imported),this.checkLValSimple(r.local,Pu.BIND_LEXICAL),e.push(this.finishNode(r,"ImportSpecifier"))}return e},Du.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},Du.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Uu=Iu.Parser.prototype;Uu.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=e.properties,o=Array.isArray(n),i=0,n=o?n:n[Symbol.iterator]();;){var s;if(o){if(i>=n.length)break;s=n[i++]}else{if(i=n.next(),i.done)break;s=i.value}var a=s;this.toAssignable(a,t),"RestElement"!==a.type||"ArrayPattern"!==a.argument.type&&"ObjectPattern"!==a.argument.type||this.raise(a.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},Uu.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var o=e[n];o&&this.toAssignable(o,t)}if(r){var i=e[r-1];6===this.options.ecmaVersion&&t&&i&&"RestElement"===i.type&&"Identifier"!==i.argument.type&&this.unexpected(i.argument.start)}return e},Uu.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Uu.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==wu.types.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Uu.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case wu.types.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(wu.types.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case wu.types.braceL:return this.parseObj(!0)}return this.parseIdent()},Uu.parseBindingList=function(e,t,r){for(var n=[],o=!0;!this.eat(e);)if(o?o=!1:this.expect(wu.types.comma),t&&this.type===wu.types.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===wu.types.ellipsis){var i=this.parseRestBinding();this.parseBindingListItem(i),n.push(i),this.type===wu.types.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var s=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(s),n.push(s)}return n},Uu.parseBindingListItem=function(e){return e},Uu.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(wu.types.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},Uu.checkLValSimple=function(e,t,r){void 0===t&&(t=Pu.BIND_NONE);var n=t!==Pu.BIND_NONE;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(t===Pu.BIND_LEXICAL&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&((0,Cu.has)(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==Pu.BIND_OUTSIDE&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},Uu.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=Pu.BIND_NONE),e.type){case"ObjectPattern":for(var n=e.properties,o=Array.isArray(n),i=0,n=o?n:n[Symbol.iterator]();;){var s;if(o){if(i>=n.length)break;s=n[i++]}else{if(i=n.next(),i.done)break;s=i.value}var a=s;this.checkLValInnerPattern(a,t,r)}break;case"ArrayPattern":for(var l=e.elements,c=Array.isArray(l),p=0,l=c?l:l[Symbol.iterator]();;){var u;if(c){if(p>=l.length)break;u=l[p++]}else{if(p=l.next(),p.done)break;u=p.value}var h=u;h&&this.checkLValInnerPattern(h,t,r)}break;default:this.checkLValSimple(e,t,r)}},Uu.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=Pu.BIND_NONE),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var Bu=Iu.Parser.prototype;Bu.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,o=e.key;switch(o.type){case"Identifier":n=o.name;break;case"Literal":n=String(o.value);break;default:return}var i=e.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===n&&"init"===i&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=o.start):this.raiseRecoverable(o.start,"Redefinition of __proto__ property")),t.proto=!0));n="$"+n;var s=t[n];if(s){var a=void 0;a="init"===i?this.strict&&s.init||s.get||s.set:s.init||s[i],a&&this.raiseRecoverable(o.start,"Redefinition of property")}else s=t[n]={init:!1,get:!1,set:!1};s[i]=!0}},Bu.parseExpression=function(e,t){var r=this.start,n=this.startLoc,o=this.parseMaybeAssign(e,t);
  if(this.type===wu.types.comma){var i=this.startNodeAt(r,n);for(i.expressions=[o];this.eat(wu.types.comma);)i.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(i,"SequenceExpression")}return o},Bu.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,o=-1,i=-1;t?(o=t.parenthesizedAssign,i=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new ku.DestructuringErrors,n=!0);var s=this.start,a=this.startLoc;this.type!==wu.types.parenL&&this.type!==wu.types.name||(this.potentialArrowAt=this.start);var l=this.parseMaybeConditional(e,t);if(r&&(l=r.call(this,l,s,a)),this.type.isAssign){var c=this.startNodeAt(s,a);return c.operator=this.value,this.type===wu.types.eq&&(l=this.toAssignable(l,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===wu.types.eq?this.checkLValPattern(l):this.checkLValSimple(l),c.left=l,this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),o>-1&&(t.parenthesizedAssign=o),i>-1&&(t.trailingComma=i),l},Bu.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,o=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return o;if(this.eat(wu.types.question)){var i=this.startNodeAt(r,n);return i.test=o,i.consequent=this.parseMaybeAssign(),this.expect(wu.types.colon),i.alternate=this.parseMaybeAssign(e),this.finishNode(i,"ConditionalExpression")}return o},Bu.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,o=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)?o:o.start===r&&"ArrowFunctionExpression"===o.type?o:this.parseExprOp(o,r,n,-1,e)},Bu.parseExprOp=function(e,t,r,n,o){var i=this.type.binop;if(null!=i&&(!o||this.type!==wu.types._in)&&i>n){var s=this.type===wu.types.logicalOR||this.type===wu.types.logicalAND,a=this.type===wu.types.coalesce;a&&(i=wu.types.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1),c,p,i,o),h=this.buildBinary(t,r,e,u,l,s||a);return(s&&this.type===wu.types.coalesce||a&&(this.type===wu.types.logicalOR||this.type===wu.types.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(h,t,r,n,o)}return e},Bu.buildBinary=function(e,t,r,n,o,i){var s=this.startNodeAt(e,t);return s.left=r,s.operator=o,s.right=n,this.finishNode(s,i?"LogicalExpression":"BinaryExpression")},Bu.parseMaybeUnary=function(e,t){var r,n=this.start,o=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))r=this.parseAwait(),t=!0;else if(this.type.prefix){var i=this.startNode(),s=this.type===wu.types.incDec;i.operator=this.value,i.prefix=!0,this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),s?this.checkLValSimple(i.argument):this.strict&&"delete"===i.operator&&"Identifier"===i.argument.type?this.raiseRecoverable(i.start,"Deleting local variable in strict mode"):t=!0,r=this.finishNode(i,s?"UpdateExpression":"UnaryExpression")}else{if(r=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var i=this.startNodeAt(n,o);i.operator=this.value,i.prefix=!1,i.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(i,"UpdateExpression")}}return!t&&this.eat(wu.types.starstar)?this.buildBinary(n,o,r,this.parseMaybeUnary(null,!1),"**",!1):r},Bu.parseExprSubscripts=function(e){var t=this.start,r=this.startLoc,n=this.parseExprAtom(e);if("ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return n;var o=this.parseSubscripts(n,t,r);return e&&"MemberExpression"===o.type&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o},Bu.parseSubscripts=function(e,t,r,n){for(var o=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,i=!1;;){var s=this.parseSubscript(e,t,r,n,o,i);if(s.optional&&(i=!0),s===e||"ArrowFunctionExpression"===s.type){if(i){var a=this.startNodeAt(t,r);a.expression=s,s=this.finishNode(a,"ChainExpression")}return s}e=s}},Bu.parseSubscript=function(e,t,r,n,o,i){var s=this.options.ecmaVersion>=11,a=s&&this.eat(wu.types.questionDot);n&&a&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(wu.types.bracketL);if(l||a&&this.type!==wu.types.parenL&&this.type!==wu.types.backQuote||this.eat(wu.types.dot)){var c=this.startNodeAt(t,r);c.object=e,c.property=l?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),c.computed=!!l,l&&this.expect(wu.types.bracketR),s&&(c.optional=a),e=this.finishNode(c,"MemberExpression")}else if(!n&&this.eat(wu.types.parenL)){var p=new ku.DestructuringErrors,u=this.yieldPos,h=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(wu.types.parenR,this.options.ecmaVersion>=8,!1,p);if(o&&!a&&!this.canInsertSemicolon()&&this.eat(wu.types.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=h,this.awaitIdentPos=d,this.parseArrowExpression(this.startNodeAt(t,r),f,!0);this.checkExpressionErrors(p,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var c=this.startNodeAt(t,r);c.callee=e,c.arguments=f,s&&(c.optional=a),e=this.finishNode(c,"CallExpression")}else if(this.type===wu.types.backQuote){(a||i)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var c=this.startNodeAt(t,r);c.tag=e,c.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(c,"TaggedTemplateExpression")}return e},Bu.parseExprAtom=function(e){this.type===wu.types.slash&&this.readRegexp();var t,r=this.potentialArrowAt===this.start;switch(this.type){case wu.types._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type!==wu.types.parenL||this.allowDirectSuper||this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==wu.types.dot&&this.type!==wu.types.bracketL&&this.type!==wu.types.parenL&&this.unexpected(),this.finishNode(t,"Super");case wu.types._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case wu.types.name:var n=this.start,o=this.startLoc,i=this.containsEsc,s=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!i&&"async"===s.name&&!this.canInsertSemicolon()&&this.eat(wu.types._function))return this.parseFunction(this.startNodeAt(n,o),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(wu.types.arrow))return this.parseArrowExpression(this.startNodeAt(n,o),[s],!1);if(this.options.ecmaVersion>=8&&"async"===s.name&&this.type===wu.types.name&&!i)return s=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(wu.types.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,o),[s],!0)}return s;case wu.types.regexp:var a=this.value;return t=this.parseLiteral(a.value),t.regex={pattern:a.pattern,flags:a.flags},t;case wu.types.num:case wu.types.string:return this.parseLiteral(this.value);case wu.types._null:case wu.types._true:case wu.types._false:return t=this.startNode(),t.value=this.type===wu.types._null?null:this.type===wu.types._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case wu.types.parenL:var l=this.start,c=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),c;case wu.types.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(wu.types.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case wu.types.braceL:return this.parseObj(!1,e);case wu.types._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case wu.types._class:return this.parseClass(this.startNode(),!1);case wu.types._new:return this.parseNew();case wu.types.backQuote:return this.parseTemplate();case wu.types._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Bu.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case wu.types.parenL:return this.parseDynamicImport(e);case wu.types.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},Bu.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(wu.types.parenR)){var t=this.start;this.eat(wu.types.comma)&&this.eat(wu.types.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},Bu.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},Bu.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},Bu.parseParenExpression=function(){this.expect(wu.types.parenL);var e=this.parseExpression();return this.expect(wu.types.parenR),e},Bu.parseParenAndDistinguishExpression=function(e){var t,r=this.start,n=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var i=this.start,s=this.startLoc,a=[],l=!0,c=!1,p=new ku.DestructuringErrors,u=this.yieldPos,h=this.awaitPos,d=void 0;for(this.yieldPos=0,this.awaitPos=0;this.type!==wu.types.parenR;){if(l?l=!1:this.expect(wu.types.comma),o&&this.afterTrailingComma(wu.types.parenR,!0)){c=!0;break}if(this.type===wu.types.ellipsis){d=this.start,a.push(this.parseParenItem(this.parseRestBinding())),this.type===wu.types.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}a.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(wu.types.parenR),e&&!this.canInsertSemicolon()&&this.eat(wu.types.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=h,this.parseParenArrowList(r,n,a);a.length&&!c||this.unexpected(this.lastTokStart),d&&this.unexpected(d),this.checkExpressionErrors(p,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=h||this.awaitPos,a.length>1?(t=this.startNodeAt(i,s),t.expressions=a,this.finishNodeAt(t,"SequenceExpression",f,m)):t=a[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(r,n);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},Bu.parseParenItem=function(e){return e},Bu.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var Gu=[];Bu.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(wu.types.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var n=this.start,o=this.startLoc,i=this.type===wu.types._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,o,!0),i&&"ImportExpression"===e.callee.type&&this.raise(n,"Cannot use new with import()"),this.eat(wu.types.parenL)?e.arguments=this.parseExprList(wu.types.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Gu,this.finishNode(e,"NewExpression")},Bu.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===wu.types.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===wu.types.backQuote,this.finishNode(r,"TemplateElement")},Bu.parseTemplate=function(e){var t=(void 0===e?{}:e).isTagged,r=void 0!==t&&t,n=this.startNode();this.next(),n.expressions=[];var o=this.parseTemplateElement({isTagged:r});for(n.quasis=[o];!o.tail;)this.type===wu.types.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(wu.types.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(wu.types.braceR),n.quasis.push(o=this.parseTemplateElement({isTagged:r}));return this.next(),this.finishNode(n,"TemplateLiteral")},Bu.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===wu.types.name||this.type===wu.types.num||this.type===wu.types.string||this.type===wu.types.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===wu.types.star)&&!xu.lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},Bu.parseObj=function(e,t){var r=this.startNode(),n=!0,o={};for(r.properties=[],this.next();!this.eat(wu.types.braceR);){if(n)n=!1;else if(this.expect(wu.types.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(wu.types.braceR))break;var i=this.parseProperty(e,t);e||this.checkPropClash(i,o,t),r.properties.push(i)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},Bu.parseProperty=function(e,t){var r,n,o,i,s=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(wu.types.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===wu.types.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(this.type===wu.types.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),s.argument=this.parseMaybeAssign(!1,t),this.type===wu.types.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(o=this.start,i=this.startLoc),e||(r=this.eat(wu.types.star)));var a=this.containsEsc;return this.parsePropertyName(s),!e&&!a&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(s)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(wu.types.star),this.parsePropertyName(s,t)):n=!1,this.parsePropertyValue(s,e,r,n,o,i,t,a),this.finishNode(s,"Property")},Bu.parsePropertyValue=function(e,t,r,n,o,i,s,a){if((r||n)&&this.type===wu.types.colon&&this.unexpected(),this.eat(wu.types.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===wu.types.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===wu.types.comma||this.type===wu.types.braceR||this.type===wu.types.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=o),e.kind="init",t?e.value=this.parseMaybeDefault(o,i,this.copyNode(e.key)):this.type===wu.types.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(o,i,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var l="get"===e.kind?0:1;if(e.value.params.length!==l){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},Bu.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(wu.types.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(wu.types.bracketR),e.key;e.computed=!1}return e.key=this.type===wu.types.num||this.type===wu.types.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Bu.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Bu.parseMethod=function(e,t,r){var n=this.startNode(),o=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope((0,Pu.functionFlags)(t,n.generator)|Pu.SCOPE_SUPER|(r?Pu.SCOPE_DIRECT_SUPER:0)),this.expect(wu.types.parenL),n.params=this.parseBindingList(wu.types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0),this.yieldPos=o,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(n,"FunctionExpression")},Bu.parseArrowExpression=function(e,t,r){var n=this.yieldPos,o=this.awaitPos,i=this.awaitIdentPos;return this.enterScope((0,Pu.functionFlags)(r,!1)|Pu.SCOPE_ARROW),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=i,this.finishNode(e,"ArrowFunctionExpression")},Bu.parseFunctionBody=function(e,t,r){var n=t&&this.type!==wu.types.braceL,o=this.strict,i=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);o&&!s||(i=this.strictDirective(this.end),i&&s&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var a=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!o&&!i&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Pu.BIND_OUTSIDE),e.body=this.parseBlock(!1,void 0,i&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=a}this.exitScope()},Bu.isSimpleParamList=function(e){for(var t=e,r=Array.isArray(t),n=0,t=r?t:t[Symbol.iterator]();;){var o;if(r){if(n>=t.length)break;o=t[n++]}else{if(n=t.next(),n.done)break;o=n.value}var i=o;if("Identifier"!==i.type)return!1}return!0},Bu.checkParams=function(e,t){for(var r=Object.create(null),n=e.params,o=Array.isArray(n),i=0,n=o?n:n[Symbol.iterator]();;){var s;if(o){if(i>=n.length)break;s=n[i++]}else{if(i=n.next(),i.done)break;s=i.value}var a=s;this.checkLValInnerPattern(a,Pu.BIND_VAR,t?null:r)}},Bu.parseExprList=function(e,t,r,n){for(var o=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(wu.types.comma),t&&this.afterTrailingComma(e))break;var s=void 0;r&&this.type===wu.types.comma?s=null:this.type===wu.types.ellipsis?(s=this.parseSpread(n),n&&this.type===wu.types.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):s=this.parseMaybeAssign(!1,n),o.push(s)}return o},Bu.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;if(this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var o=this.strict?this.reservedWordsStrict:this.reservedWords;o.test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))}},Bu.parseIdent=function(e,t){var r=this.startNode();return this.type===wu.types.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,"class"!==r.name&&"function"!==r.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),"await"!==r.name||this.awaitIdentPos||(this.awaitIdentPos=r.start)),r},Bu.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===wu.types.semi||this.canInsertSemicolon()||this.type!==wu.types.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(wu.types.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},Bu.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0),this.finishNode(e,"AwaitExpression")};var Wu=Iu.Parser.prototype;Wu.raise=function(e,t){var r=(0,Tu.getLineInfo)(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},Wu.raiseRecoverable=Wu.raise,Wu.curPosition=function(){if(this.options.locations)return new Tu.Position(this.curLine,this.pos-this.lineStart)};var qu=Iu.Parser.prototype,zu=function(){function e(e){this.flags=e,this["var"]=[],this.lexical=[],this.functions=[]}return e}();qu.enterScope=function(e){this.scopeStack.push(new zu(e))},qu.exitScope=function(){this.scopeStack.pop()},qu.treatFunctionsAsVarInScope=function(e){return e.flags&Pu.SCOPE_FUNCTION||!this.inModule&&e.flags&Pu.SCOPE_TOP},qu.declareName=function(e,t,r){var n=!1;if(t===Pu.BIND_LEXICAL){var o=this.currentScope();n=o.lexical.indexOf(e)>-1||o.functions.indexOf(e)>-1||o["var"].indexOf(e)>-1,o.lexical.push(e),this.inModule&&o.flags&Pu.SCOPE_TOP&&delete this.undefinedExports[e]}else if(t===Pu.BIND_SIMPLE_CATCH){var o=this.currentScope();o.lexical.push(e)}else if(t===Pu.BIND_FUNCTION){var o=this.currentScope();n=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o["var"].indexOf(e)>-1,o.functions.push(e)}else for(var i=this.scopeStack.length-1;i>=0;--i){var o=this.scopeStack[i];if(o.lexical.indexOf(e)>-1&&!(o.flags&Pu.SCOPE_SIMPLE_CATCH&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){n=!0;break}if(o["var"].push(e),this.inModule&&o.flags&Pu.SCOPE_TOP&&delete this.undefinedExports[e],o.flags&Pu.SCOPE_VAR)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},qu.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0]["var"].indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},qu.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},qu.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Pu.SCOPE_VAR)return t}},qu.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Pu.SCOPE_VAR&&!(t.flags&Pu.SCOPE_ARROW))return t}};var Ku=t(function(e,t){function r(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}t.__esModule=!0,t.Node=void 0;var n=function(){function e(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new Tu.SourceLocation(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])}return e}();t.Node=n;var o=Iu.Parser.prototype;o.startNode=function(){return new n(this,this.start,this.startLoc)},o.startNodeAt=function(e,t){return new n(this,e,t)},o.finishNode=function(e,t){return r.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},o.finishNodeAt=function(e,t,n,o){return r.call(this,e,t,n,o)},o.copyNode=function(e){var t=new n(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t}}),Xu=t(function(e,t){t.__esModule=!0,t.types=t.TokContext=void 0;var r=function(){function e(e,t,r,n,o){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!o}return e}();t.TokContext=r;var n=t.types={b_stat:new r("{",(!1)),b_expr:new r("{",(!0)),b_tmpl:new r("${",(!1)),p_stat:new r("(",(!1)),p_expr:new r("(",(!0)),q_tmpl:new r("`",(!0),(!0),function(e){return e.tryReadTemplateToken()}),f_stat:new r("function",(!1)),f_expr:new r("function",(!0)),f_expr_gen:new r("function",(!0),(!1),null,(!0)),f_gen:new r("function",(!1),(!1),null,(!0))},o=Iu.Parser.prototype;o.initialContext=function(){return[n.b_stat]},o.braceIsBlock=function(e){var t=this.curContext();return t===n.f_expr||t===n.f_stat||(e!==wu.types.colon||t!==n.b_stat&&t!==n.b_expr?e===wu.types._return||e===wu.types.name&&this.exprAllowed?xu.lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):e===wu.types._else||e===wu.types.semi||e===wu.types.eof||e===wu.types.parenR||e===wu.types.arrow||(e===wu.types.braceL?t===n.b_stat:e!==wu.types._var&&e!==wu.types._const&&e!==wu.types.name&&!this.exprAllowed):!t.isExpr)},o.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},o.updateContext=function(e){var t,r=this.type;r.keyword&&e===wu.types.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},wu.types.parenR.updateContext=wu.types.braceR.updateContext=function(){if(1===this.context.length)return void(this.exprAllowed=!0);var e=this.context.pop();e===n.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},wu.types.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?n.b_stat:n.b_expr),this.exprAllowed=!0},wu.types.dollarBraceL.updateContext=function(){this.context.push(n.b_tmpl),this.exprAllowed=!0},wu.types.parenL.updateContext=function(e){var t=e===wu.types._if||e===wu.types._for||e===wu.types._with||e===wu.types._while;this.context.push(t?n.p_stat:n.p_expr),this.exprAllowed=!0},wu.types.incDec.updateContext=function(){},wu.types._function.updateContext=wu.types._class.updateContext=function(e){!e.beforeExpr||e===wu.types._else||e===wu.types.semi&&this.curContext()!==n.p_stat||e===wu.types._return&&xu.lineBreak.test(this.input.slice(this.lastTokEnd,this.start))||(e===wu.types.colon||e===wu.types.braceL)&&this.curContext()===n.b_stat?this.context.push(n.f_stat):this.context.push(n.f_expr),this.exprAllowed=!1},wu.types.backQuote.updateContext=function(){this.curContext()===n.q_tmpl?this.context.pop():this.context.push(n.q_tmpl),this.exprAllowed=!1},wu.types.star.updateContext=function(e){if(e===wu.types._function){var t=this.context.length-1;this.context[t]===n.f_expr?this.context[t]=n.f_expr_gen:this.context[t]=n.f_gen}this.exprAllowed=!0},wu.types.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==wu.types.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t}}),$u=t(function(e,t){function r(e){var t=f[e]={binary:(0,Cu.wordsRegexp)(a[e]+" "+l),nonBinary:{General_Category:(0,Cu.wordsRegexp)(l),Script:(0,Cu.wordsRegexp)(d[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}t.__esModule=!0;var n="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",o=n+" Extended_Pictographic",i=o,s=i+" EBase EComp EMod EPres ExtPict",a={9:n,10:o,11:i,12:s},l="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",c="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",p=c+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",u=p+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",h=u+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",d={
  9:c,10:p,11:u,12:h},f={};r(9),r(10),r(11),r(12),t["default"]=f,e.exports=t["default"]}),Yu=t(function(e,t){function r(e){return e&&e.__esModule?e:{"default":e}}function n(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(1023&e)+56320))}function o(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function i(e){return(0,_u.isIdentifierStart)(e,!0)||36===e||95===e}function s(e){return(0,_u.isIdentifierChar)(e,!0)||36===e||95===e||8204===e||8205===e}function a(e){return e>=65&&e<=90||e>=97&&e<=122}function l(e){return e>=0&&e<=1114111}function c(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function p(e){return a(e)||95===e}function u(e){return p(e)||h(e)}function h(e){return e>=48&&e<=57}function d(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function f(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function m(e){return e>=48&&e<=55}t.__esModule=!0,t.RegExpValidationState=void 0;var g=r($u),v=Iu.Parser.prototype,y=function(){function e(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=g["default"][e.options.ecmaVersion>=12?12:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]}return e.prototype.reset=function(e,t,r){var n=r.indexOf("u")!==-1;this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},e.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},e.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var o=r.charCodeAt(e);if(!t&&!this.switchU||o<=55295||o>=57344||e+1>=n)return o;var i=r.charCodeAt(e+1);return i>=56320&&i<=57343?(o<<10)+i-56613888:o},e.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var o,i=r.charCodeAt(e);return!t&&!this.switchU||i<=55295||i>=57344||e+1>=n||(o=r.charCodeAt(e+1))<56320||o>57343?e+1:e+2},e.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},e.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},e.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},e.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},e}();t.RegExpValidationState=y,v.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n<r.length;n++){var o=r.charAt(n);t.indexOf(o)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(o,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},v.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},v.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=e.backReferenceNames,r=Array.isArray(t),n=0,t=r?t:t[Symbol.iterator]();;){var o;if(r){if(n>=t.length)break;o=t[n++]}else{if(n=t.next(),n.done)break;o=n.value}var i=o;e.groupNames.indexOf(i)===-1&&e.raise("Invalid named capture referenced")}},v.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},v.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},v.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!(e.switchU?!this.regexp_eatAtom(e):!this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},v.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},v.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},v.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},v.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,o=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(o=e.lastIntValue),e.eat(125)))return o!==-1&&o<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},v.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},v.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},v.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},v.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},v.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},v.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},v.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!o(t)&&(e.lastIntValue=t,e.advance(),!0)},v.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!o(r);)e.advance();return e.pos!==t},v.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(t===-1||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},v.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},v.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},v.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=n(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=n(e.lastIntValue);return!0}return!1},v.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),i(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},v.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),s(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},v.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},v.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},v.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},v.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},v.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},v.regexp_eatZero=function(e){return 48===e.current()&&!h(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},v.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},v.regexp_eatControlLetter=function(e){var t=e.current();return!!a(t)&&(e.lastIntValue=t%32,e.advance(),!0)},v.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(n&&o>=55296&&o<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(o-55296)+(s-56320)+65536,!0}e.pos=i,e.lastIntValue=o}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&l(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=r}return!1},v.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},v.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},v.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(c(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},v.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var o=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,o),!0}return!1},v.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){(0,Cu.has)(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},v.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},v.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";p(t=e.current());)e.lastStringValue+=n(t),e.advance();return""!==e.lastStringValue},v.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";u(t=e.current());)e.lastStringValue+=n(t),e.advance();return""!==e.lastStringValue},v.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},v.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},v.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||t!==-1&&r!==-1||e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}},v.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||m(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},v.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},v.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!h(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},v.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},v.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;h(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},v.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;d(r=e.current());)e.lastIntValue=16*e.lastIntValue+f(r),e.advance();return e.pos!==t},v.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},v.regexp_eatOctalDigit=function(e){var t=e.current();return m(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},v.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var o=e.current();if(!d(o))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+f(o),e.advance()}return!0}}),Qu=t(function(e,t){function r(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function n(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function o(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(1023&e)+56320))}t.__esModule=!0,t.Token=void 0;var i=function(){function e(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Tu.SourceLocation(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])}return e}();t.Token=i;var s=Iu.Parser.prototype;s.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new i(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},s.getToken=function(){return this.next(),new i(this)},"undefined"!=typeof Symbol&&(s[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===wu.types.eof,value:t}}}}),s.curContext=function(){return this.context[this.context.length-1]},s.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(wu.types.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},s.readToken=function(e){return(0,_u.isIdentifierStart)(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},s.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344)return e;var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888},s.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){xu.lineBreakG.lastIndex=t;for(var n=void 0;(n=xu.lineBreakG.exec(this.input))&&n.index<this.pos;)++this.curLine,this.lineStart=n.index+n[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())},s.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!(0,xu.isNewLine)(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},s.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&xu.nonASCIIwhitespace.test(String.fromCharCode(e))))break e;++this.pos}}},s.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},s.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(wu.types.ellipsis)):(++this.pos,this.finishToken(wu.types.dot))},s.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(wu.types.assign,2):this.finishOp(wu.types.slash,1)},s.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?wu.types.star:wu.types.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=wu.types.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(wu.types.assign,r+1):this.finishOp(n,r)},s.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(61===r)return this.finishOp(wu.types.assign,3)}return this.finishOp(124===e?wu.types.logicalOR:wu.types.logicalAND,2)}return 61===t?this.finishOp(wu.types.assign,2):this.finishOp(124===e?wu.types.bitwiseOR:wu.types.bitwiseAND,1)},s.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(wu.types.assign,2):this.finishOp(wu.types.bitwiseXOR,1)},s.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!xu.lineBreak.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(wu.types.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(wu.types.assign,2):this.finishOp(wu.types.plusMin,1)},s.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(wu.types.assign,r+1):this.finishOp(wu.types.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(wu.types.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},s.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(wu.types.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(wu.types.arrow)):this.finishOp(61===e?wu.types.eq:wu.types.prefix,1)},s.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(wu.types.questionDot,2)}if(63===t){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(61===r)return this.finishOp(wu.types.assign,3)}return this.finishOp(wu.types.coalesce,2)}}return this.finishOp(wu.types.question,1)},s.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(wu.types.parenL);case 41:return++this.pos,this.finishToken(wu.types.parenR);case 59:return++this.pos,this.finishToken(wu.types.semi);case 44:return++this.pos,this.finishToken(wu.types.comma);case 91:return++this.pos,this.finishToken(wu.types.bracketL);case 93:return++this.pos,this.finishToken(wu.types.bracketR);case 123:return++this.pos,this.finishToken(wu.types.braceL);case 125:return++this.pos,this.finishToken(wu.types.braceR);case 58:return++this.pos,this.finishToken(wu.types.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(wu.types.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(wu.types.prefix,1)}this.raise(this.pos,"Unexpected character '"+o(e)+"'")},s.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},s.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(xu.lineBreak.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var o=this.input.slice(r,this.pos);++this.pos;var i=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(i);var a=this.regexpState||(this.regexpState=new Yu.RegExpValidationState(this));a.reset(r,o,s),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var l=null;try{l=new RegExp(o,s)}catch(c){}return this.finishToken(wu.types.regexp,{pattern:o,flags:s,value:l})},s.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,o=r&&48===this.input.charCodeAt(this.pos),i=this.pos,s=0,a=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var p=this.input.charCodeAt(this.pos),u=void 0;if(n&&95===p)o&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=p;else{if(u=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0,u>=e)break;a=p,s=s*e+u}}return n&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===i||null!=t&&this.pos-i!==t?null:s},s.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=n(this.input.slice(t,this.pos)),++this.pos):(0,_u.isIdentifierStart)(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(wu.types.num,r)},s.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var o=this.pos-t>=2&&48===this.input.charCodeAt(t);o&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!o&&!e&&this.options.ecmaVersion>=11&&110===i){var s=n(this.input.slice(t,this.pos));return++this.pos,(0,_u.isIdentifierStart)(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(wu.types.num,s)}o&&/[89]/.test(this.input.slice(t,this.pos))&&(o=!1),46!==i||o||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||o||(i=this.input.charCodeAt(++this.pos),43!==i&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),(0,_u.isIdentifierStart)(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=r(this.input.slice(t,this.pos),o);return this.finishToken(wu.types.num,a)},s.readCodePoint=function(){var e,t=this.input.charCodeAt(this.pos);if(123===t){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else e=this.readHexChar(4);return e},s.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):((0,xu.isNewLine)(n,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(wu.types.string,t)};var a={};s.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==a)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},s.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw a;this.raise(e,t)},s.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==wu.types.template&&this.type!==wu.types.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(wu.types.template,e)):36===r?(this.pos+=2,this.finishToken(wu.types.dollarBraceL)):(++this.pos,this.finishToken(wu.types.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if((0,xu.isNewLine)(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},s.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(wu.types.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},s.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return o(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\x0B";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return(0,xu.isNewLine)(t)?"":String.fromCharCode(t)}},s.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},s.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var o=this.fullCharCodeAtPos();if((0,_u.isIdentifierChar)(o,n))this.pos+=o<=65535?1:2;else{if(92!==o)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var i=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?_u.isIdentifierStart:_u.isIdentifierChar)(s,n)||this.invalidStringToken(i,"Invalid Unicode escape"),e+=this.input.substr(this.pos-6,6),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},s.readWord=function(){var e=this.readWord1(),t=wu.types.name;return this.keywords.test(e)&&(t=wu.keywords[e]),this.finishToken(t,e)}}),Ju=t(function(e,t){function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function n(e,t){return Iu.Parser.parse(e,t)}function o(e,t,r){return Iu.Parser.parseExpressionAt(e,t,r)}function i(e,t){return Iu.Parser.tokenizer(e,t)}t.__esModule=!0,t.nonASCIIwhitespace=t.lineBreakG=t.lineBreak=t.isNewLine=t.Token=t.isIdentifierStart=t.isIdentifierChar=t.tokContexts=t.TokContext=t.keywordTypes=t.tokTypes=t.TokenType=t.Node=t.getLineInfo=t.SourceLocation=t.Position=t.defaultOptions=t.Parser=t.version=void 0,t.parse=n,t.parseExpressionAt=o,t.tokenizer=i;var s=r(Cu),a=t.version="8.1.0";t.Parser=Iu.Parser,t.defaultOptions=Au.defaultOptions,t.Position=Tu.Position,t.SourceLocation=Tu.SourceLocation,t.getLineInfo=Tu.getLineInfo,t.Node=Ku.Node,t.TokenType=wu.TokenType,t.tokTypes=wu.types,t.keywordTypes=wu.keywords,t.TokContext=Xu.TokContext,t.tokContexts=Xu.types,t.isIdentifierChar=_u.isIdentifierChar,t.isIdentifierStart=_u.isIdentifierStart,t.Token=Qu.Token,t.isNewLine=xu.isNewLine,t.lineBreak=xu.lineBreak,t.lineBreakG=xu.lineBreakG,t.nonASCIIwhitespace=xu.nonASCIIwhitespace,Iu.Parser.acorn={Parser:Iu.Parser,version:a,defaultOptions:Au.defaultOptions,Position:Tu.Position,SourceLocation:Tu.SourceLocation,getLineInfo:Tu.getLineInfo,Node:Ku.Node,TokenType:wu.TokenType,tokTypes:wu.types,keywordTypes:wu.keywords,TokContext:Xu.TokContext,tokContexts:Xu.types,isIdentifierChar:_u.isIdentifierChar,isIdentifierStart:_u.isIdentifierStart,Token:Qu.Token,isNewLine:xu.isNewLine,lineBreak:xu.lineBreak,lineBreakG:xu.lineBreakG,nonASCIIwhitespace:xu.nonASCIIwhitespace};var l=s.wordsRegexp,c={};s.wordsRegexp=function(e){return c[e]||(c[e]=l(e)),c[e]}}),Zu=/^(\xEF\xBB\xBF|\xFE\xFF|\xFF\xFE|\x00\x00\xFE\xFF|\xFF\xFE\x00\x00|\x2B\x2F\x76\x38|\x2B\x2F\x76\x39|\x2B\x2F\x76\x2B|\x2B\x2F\x76\x2F|\xF7\x64\x4C|\xDD\x73\x66\x73|\x0E\xFE\xFF|\xFB\xEE\x28|\x84\x31\x95\x33)/,eh=/(^|\n)\s*<!--[^\n]*(\n|$)/g,th=/^\s*\{.*\}\s*$/,rh=/;\s*$/,nh=/^\s*\((.*)\);\s*$/,oh=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)/gm,ih=new RegExp([Qo(Ep.getLocation),Qo(Ep.setLocation),Qo(Ep.getProperty),Qo(Ep.setProperty),Qo(Ep.callMethod),Qo(Ep.processScript),Qo(Ep.processHtml),Qo(Ep.getPostMessage),Qo(Ep.getProxyUrl)].join("|")),sh={allowReturnOutsideFunction:!0,
  allowImportExportEverywhere:!0,ecmaVersion:11},ah=Object.freeze({__proto__:null,isScriptProcessed:gi,processScript:vi}),lh={href:["a","link","image","area","base"],src:["img","embed","script","source","video","audio","input","frame","iframe"],action:["form"],formaction:["button","input"],manifest:["html"],data:["object"]},ch=["href","src","action","formaction","manifest","data"],ph={target:["a","form","area","base"],formtarget:["input","button"]},uh=["target","formtarget"],hh=["sandbox","autocomplete","target","formtarget","style"],dh=/\/\*\s*[#@]\s*sourceMappingURL\s*=[\s\S]*?\*\/|\/\/[\t ]*[#@][\t ]*sourceMappingURL[\t ]*=.*/gi,fh=/(url\s*\(\s*(['"]?))([^\s]*?)(\2\s*\))|(@import\s+(['"]))([^\s]*?)(\6)/g,mh=/((?:(\W?)(\w+))?\[\s*)(\w+)(\s*\^?=)/g,gh="/*hammerhead|stylesheet|start*/",vh="/*hammerhead|stylesheet|end*/",yh=/:\s*hover(\W)/gi,Eh=new RegExp("\\["+_l.hoverPseudoClass+"\\](\\W)","ig"),Sh=new RegExp("\\s*"+Qo(gh),"gi"),bh=new RegExp(Qo(gh)+"\n?|"+("\n?"+Qo(vh)+"\\s*"),"gi"),_h=function(){function e(){this.STYLESHEET_PROCESSING_START_COMMENT=gh,this.STYLESHEET_PROCESSING_END_COMMENT=vh}return e.prototype.process=function(e,t,r){return!e||"string"!=typeof e||r&&Sh.test(e)?e:(e=e.replace(yh,"["+_l.hoverPseudoClass+"]$1"),e=e.replace(dh,""),e=this._replaceStylesheetUrls(e,t),e=this._replaceUrlAttributes(e),r&&(e=gh+"\n"+e+"\n"+vh),e)},e.prototype.cleanUp=function(e,t){return"string"!=typeof e?e:(e=e.replace(Eh,":hover$1").replace(_l.storedAttrPostfix,""),e=this._removeStylesheetProcessingComments(e),this._replaceStylesheetUrls(e,function(e){var r=t(e);return r?r.destUrl:e}))},e.prototype._removeStylesheetProcessingComments=function(e){var t=e.split(bh),r=t.length>=3;if(!r)return e;for(var n=0;n<t.length;n+=2){for(var o=0,i=t[n].length-1;i>=0&&/\s/.test(t[n][i]);i--)o++;t[n]=t[n].substring(0,t[n].length-o)}return t.join("")},e.prototype._replaceStylesheetUrls=function(e,t){return e.replace(fh,function(e,r,n,o,i,s,a,l,c){var p=r||s,u=o||l,h=K(u)?u:t(u),d=i||c;return u?p+h+d:e})},e.prototype._replaceUrlAttributes=function(e){return e.replace(mh,function(e,t,r,n,o,i){var s="."===r||"#"===r?"":n;return s&&lh[o]&&lh[o].indexOf(s)!==-1?t+Vh.getStoredAttrName(o)+i:e})},e}(),wh=new _h,xh={authorization:"authorization",wwwAuthenticate:"www-authenticate",proxyAuthorization:"proxy-authorization",proxyAuthenticate:"proxy-authenticate",host:"host",referer:"referer",origin:"origin",contentLength:"content-length",cookie:"cookie",setCookie:"set-cookie",ifModifiedSince:"if-modified-since",ifNoneMatch:"if-none-match",contentType:"content-type",location:"location",xFrameOptions:"x-frame-options",sourceMap:"sourcemap",referrerPolicy:"referrer-policy",refresh:"refresh",link:"link",cacheControl:"cache-control",pragma:"pragma",eTag:"etag",contentDisposition:"content-disposition",accept:"accept",contentEncoding:"content-encoding",expires:"expires",trailer:"trailer",transferEncoding:"transfer-encoding",serviceWorkerAllowed:"service-worker-allowed",accessControlAllowOrigin:"access-control-allow-origin",accessControlAllowCredentials:"access-control-allow-credentials",contentSecurityPolicy:"content-security-policy",contentSecurityPolicyReportOnly:"content-security-policy-report-only",xContentSecurityPolicy:"x-content-security-policy",xContentSecurityPolicyReportOnly:"x-content-security-policy-report-only",xWebkitCsp:"x-webkit-csp"},Ch="http://www.w3.org/XML/1998/namespace",Th="http://www.w3.org/1999/xlink",Ah=/^(\s)*\/\/<!\[CDATA\[([\s\S]*)\/\/\]\]>(\s)*$/,Ph=/(\/\/[^\n]*|\n\s*)-->[^\n]*([\n\s]*)?$/,Ih=/^(\s)*<!--[^\n]*\n/,Nh=/-->\s*$/,Lh=/^\s*javascript\s*:/i,Oh=/^\s*(application\/(x-)?(ecma|java)script|text\/(javascript(1\.[0-5])?|((x-)?ecma|x-java|js|live)script)|module)\s*$/i,kh=["animate","animateColor","animateMotion","animateTransform","mpath","set","linearGradient","radialGradient","stop","a","altglyph","color-profile","cursor","feimage","filter","font-face-uri","glyphref","image","mpath","pattern","script","textpath","use","tref"],Dh=["script","link"],Mh=["a","form","area","input","button"],Rh="script",jh="modulepreload",Hh="hammerhead|element-processed",Fh="hammerhead|autocomplete-attribute-absence-marker",Vh=function(){function e(e){this.adapter=e,this.HTML_PROCESSING_REQUIRED_EVENT="hammerhead|event|html-processing-required",this.SVG_XLINK_HREF_TAGS=kh,this.AUTOCOMPLETE_ATTRIBUTE_ABSENCE_MARKER=Fh,this.PROCESSED_PRELOAD_LINK_CONTENT_TYPE=Rh,this.MODULE_PRELOAD_LINK_REL=jh,this.forceProxySrcForImage=!1,this.allowMultipleWindows=!1,this.EVENTS=this.adapter.EVENTS,this.elementProcessorPatterns=this._createProcessorPatterns(this.adapter)}return e.isTagWithTargetAttr=function(e){return!!e&&ph.target.indexOf(e)>-1},e.isTagWithFormTargetAttr=function(e){return!!e&&ph.formtarget.indexOf(e)>-1},e.isTagWithIntegrityAttr=function(e){return!!e&&Dh.indexOf(e)!==-1},e.isIframeFlagTag=function(e){return!!e&&Mh.indexOf(e)!==-1},e.isAddedAutocompleteAttr=function(e,t){return"autocomplete"===e&&t===Fh},e.processJsAttrValue=function(e,t){var r=t.isJsProtocol,n=t.isEventAttr;return r&&(e=e.replace(Lh,"")),e=vi(e,!1,r&&!n,void 0),r&&(e="javascript:"+e),e},e.getStoredAttrName=function(e){return e+_l.storedAttrPostfix},e.isJsProtocol=function(e){return Lh.test(e)},e._isHtmlImportLink=function(e,t){return!!e&&!!t&&"link"===e&&"import"===t},e.isElementProcessed=function(e){return e[Hh]},e.setElementProcessed=function(e,t){e[Hh]=t},e.prototype._getRelAttribute=function(e){return String(this.adapter.getAttr(e,"rel")).toLowerCase()},e.prototype._getAsAttribute=function(e){return String(this.adapter.getAttr(e,"as")).toLowerCase()},e.prototype._createProcessorPatterns=function(t){var r=this,n={HAS_HREF_ATTR:function(e){return r.isUrlAttr(e,"href")},HAS_SRC_ATTR:function(e){return r.isUrlAttr(e,"src")},HAS_ACTION_ATTR:function(e){return r.isUrlAttr(e,"action")},HAS_FORMACTION_ATTR:function(e){return r.isUrlAttr(e,"formaction")},HAS_FORMTARGET_ATTR:function(r){return e.isTagWithFormTargetAttr(t.getTagName(r))&&t.hasAttr(r,"formtarget")},HAS_MANIFEST_ATTR:function(e){return r.isUrlAttr(e,"manifest")},HAS_DATA_ATTR:function(e){return r.isUrlAttr(e,"data")},HAS_SRCDOC_ATTR:function(e){var n=r.adapter.getTagName(e);return("iframe"===n||"frame"===n)&&t.hasAttr(e,"srcdoc")},HTTP_EQUIV_META:function(e){var r=t.getTagName(e);return"meta"===r&&t.hasAttr(e,"http-equiv")},ALL:function(){return!0},IS_SCRIPT:function(e){return"script"===t.getTagName(e)},IS_LINK:function(e){return"link"===t.getTagName(e)},IS_INPUT:function(e){return"input"===t.getTagName(e)},IS_FILE_INPUT:function(e){return"input"===t.getTagName(e)&&t.hasAttr(e,"type")&&"file"===t.getAttr(e,"type").toLowerCase()},IS_STYLE:function(e){return"style"===t.getTagName(e)},HAS_EVENT_HANDLER:function(e){return t.hasEventHandler(e)},IS_SANDBOXED_IFRAME:function(e){var r=t.getTagName(e);return("iframe"===r||"frame"===r)&&t.hasAttr(e,"sandbox")},IS_SVG_ELEMENT_WITH_XLINK_HREF_ATTR:function(e){return t.isSVGElement(e)&&t.hasAttr(e,"xlink:href")&&kh.indexOf(t.getTagName(e))!==-1},IS_SVG_ELEMENT_WITH_XML_BASE_ATTR:function(e){return t.isSVGElement(e)&&t.hasAttr(e,"xml:base")}};return[{selector:n.HAS_FORMTARGET_ATTR,targetAttr:"formtarget",elementProcessors:[this._processTargetBlank]},{selector:n.HAS_HREF_ATTR,urlAttr:"href",targetAttr:"target",elementProcessors:[this._processTargetBlank,this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_SRC_ATTR,urlAttr:"src",targetAttr:"target",elementProcessors:[this._processTargetBlank,this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_ACTION_ATTR,urlAttr:"action",targetAttr:"target",elementProcessors:[this._processTargetBlank,this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_FORMACTION_ATTR,urlAttr:"formaction",targetAttr:"formtarget",elementProcessors:[this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_MANIFEST_ATTR,urlAttr:"manifest",elementProcessors:[this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_DATA_ATTR,urlAttr:"data",elementProcessors:[this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_SRCDOC_ATTR,elementProcessors:[this._processSrcdocAttr]},{selector:n.HTTP_EQUIV_META,urlAttr:"content",elementProcessors:[this._processMetaElement]},{selector:n.IS_SCRIPT,elementProcessors:[this._processScriptElement,this._processIntegrityAttr]},{selector:n.ALL,elementProcessors:[this._processStyleAttr]},{selector:n.IS_LINK,relAttr:"rel",elementProcessors:[this._processIntegrityAttr,this._processRelPrefetch]},{selector:n.IS_STYLE,elementProcessors:[this._processStylesheetElement]},{selector:n.IS_INPUT,elementProcessors:[this._processAutoComplete]},{selector:n.IS_FILE_INPUT,elementProcessors:[this._processRequired]},{selector:n.HAS_EVENT_HANDLER,elementProcessors:[this._processEvtAttr]},{selector:n.IS_SANDBOXED_IFRAME,elementProcessors:[this._processSandboxedIframe]},{selector:n.IS_SVG_ELEMENT_WITH_XLINK_HREF_ATTR,urlAttr:"xlink:href",elementProcessors:[this._processSVGXLinkHrefAttr,this._processUrlAttrs]},{selector:n.IS_SVG_ELEMENT_WITH_XML_BASE_ATTR,urlAttr:"xml:base",elementProcessors:[this._processUrlAttrs]}]},e.prototype.processElement=function(t,r){if(!e.isElementProcessed(t))for(var n=0,o=this.elementProcessorPatterns;n<o.length;n++){var i=o[n];if(i.selector(t)&&!this._isShadowElement(t)){for(var s=0,a=i.elementProcessors;s<a.length;s++){var l=a[s];l.call(this,t,r,i)}e.setElementProcessed(t,!0)}}},e.prototype.getElementResourceType=function(e){var t=this.adapter.getTagName(e);return P("link"!==t||this._getAsAttribute(e)!==Rh&&this._getRelAttribute(e)!==jh?{isIframe:"iframe"===t||"frame"===t||this._isOpenLinkInIframe(e),isForm:"form"===t||"input"===t||"button"===t,isScript:"script"===t,isHtmlImport:"link"===t&&"import"===this._getRelAttribute(e),isObject:"object"===t}:{isScript:!0})},e.prototype.isUrlAttr=function(e,t,r){var n=this.adapter.getTagName(e);return t=t?t.toLowerCase():t,!(!lh[t]||lh[t].indexOf(n)===-1)||this.adapter.isSVGElement(e)&&("xml:base"===t||"base"===t&&r===Ch)},e.prototype.getUrlAttr=function(e){for(var t=this.adapter.getTagName(e),r=0,n=ch;r<n.length;r++){var o=n[r];if(lh[o].indexOf(t)!==-1)return o}return null},e.prototype.getTargetAttr=function(e){for(var t=this.adapter.getTagName(e),r=0,n=uh;r<n.length;r++){var o=n[r];if(ph[o].indexOf(t)>-1)return o}return null},e.prototype._isOpenLinkInIframe=function(t){var r=this.adapter.getTagName(t),n=this.getTargetAttr(t),o=n?this.adapter.getAttr(t,n):null,i=this._getRelAttribute(t);if("_top"!==o){var s="input"===r&&"image"===this.adapter.getAttr(t,"type"),a=!s&&e.isIframeFlagTag(r)||e._isHtmlImportLink(r,i),l=!!o&&"_"!==o[0];if("_parent"===o)return a&&!this.adapter.isTopParentIframe(t);if(a&&(this.adapter.hasIframeParent(t)||l&&this.adapter.isExistingTarget(o,t)))return!0}return!1},e.prototype._isShadowElement=function(e){var t=this.adapter.getClassName(e);return"string"==typeof t&&t.indexOf(xl.postfix)>-1},e.prototype._processAutoComplete=function(t){var r=e.getStoredAttrName("autocomplete"),n=this.adapter.hasAttr(t,r),o=this.adapter.getAttr(t,n?r:"autocomplete");n||this.adapter.setAttr(t,r,o||""===o?o:Fh),this.adapter.setAttr(t,"autocomplete","off")},e.prototype._processRequired=function(t){var r=e.getStoredAttrName("required"),n=this.adapter.hasAttr(t,r);if(!n&&this.adapter.hasAttr(t,"required")){var o=this.adapter.getAttr(t,"required");this.adapter.setAttr(t,r,o),this.adapter.removeAttr(t,"required")}},e.prototype._processIntegrityAttr=function(t){var r=e.getStoredAttrName("integrity"),n=this.adapter.hasAttr(t,r)&&!this.adapter.hasAttr(t,"integrity"),o=this.adapter.getAttr(t,n?r:"integrity");o&&this.adapter.setAttr(t,r,o),n||this.adapter.removeAttr(t,"integrity")},e.prototype._processRelPrefetch=function(t,r,n){if(n.relAttr){var o=e.getStoredAttrName(n.relAttr),i=this.adapter.hasAttr(t,o)&&!this.adapter.hasAttr(t,n.relAttr),s=this.adapter.getAttr(t,i?o:n.relAttr);if(s){var a=T(s.toLowerCase());"prefetch"===a&&(this.adapter.setAttr(t,o,s),i||this.adapter.removeAttr(t,n.relAttr))}}},e.prototype._processJsAttr=function(t,r,n){var o=n.isJsProtocol,i=n.isEventAttr,s=e.getStoredAttrName(r),a=this.adapter.hasAttr(t,s),l=this.adapter.getAttr(t,a?s:r)||"",c=e.processJsAttrValue(l,{isJsProtocol:o,isEventAttr:i});l!==c&&(this.adapter.setAttr(t,s,l),this.adapter.setAttr(t,r,c))},e.prototype._processEvtAttr=function(t){for(var r=this.adapter.EVENTS,n=0;n<r.length;n++){var o=this.adapter.getAttr(t,r[n]);o&&this._processJsAttr(t,r[n],{isJsProtocol:e.isJsProtocol(o),isEventAttr:!0})}},e.prototype._processMetaElement=function(e,t,r){var n=(this.adapter.getAttr(e,"http-equiv")||"").toLowerCase();if(n===xh.refresh&&r.urlAttr){var o=this.adapter.getAttr(e,r.urlAttr)||"";o=te(o,t),this.adapter.setAttr(e,r.urlAttr,o)}else n===xh.contentSecurityPolicy&&(this.adapter.removeAttr(e,"http-equiv"),this.adapter.removeAttr(e,"content"))},e.prototype._processSandboxedIframe=function(t){var r=this.adapter.getAttr(t,"sandbox")||"",n=r.indexOf("allow-same-origin")!==-1,o=r.indexOf("allow-scripts")!==-1,i=e.getStoredAttrName("sandbox");this.adapter.setAttr(t,i,r),n&&o||(r+=n?"":" allow-same-origin",r+=o?"":" allow-scripts"),this.adapter.setAttr(t,"sandbox",r)},e.prototype._processScriptElement=function(e,t){var r=this.adapter.getScriptContent(e);if(r&&this.adapter.needToProcessContent(e)){var n=gi(r);if(!n){var o=this.adapter.getAttr(e,"type"),i=!o||Oh.test(o);if(i){var s=r,a="",l=s.match(Ih),c="",p=null,u=Ah.test(s);l&&(a=l[0],p=s.match(Ph),p?c=p[0]:Nh.test(a)||(c="//-->"),s=s.replace(a,"").replace(c,"")),u&&(s=s.replace(Ah,"$2")),s=a+vi(s,!0,!1,t)+c,u&&(s="\n//<![CDATA[\n"+s+"//]]>"),this.adapter.setScriptContent(e,s)}}}},e.prototype._processStyleAttr=function(e,t){var r=this.adapter.getAttr(e,"style");r&&this.adapter.setAttr(e,"style",wh.process(r,t,!1))},e.prototype._processStylesheetElement=function(e,t){var r=this.adapter.getStyleContent(e);r&&t&&this.adapter.needToProcessContent(e)&&(r=wh.process(r,t,!0),this.adapter.setStyleContent(e,r))},e.prototype._processTargetBlank=function(t,r,n){if(!this.allowMultipleWindows&&n.targetAttr){var o=e.getStoredAttrName(n.targetAttr),i=this.adapter.hasAttr(t,o);if(!i){var s=this.adapter.getAttr(t,n.targetAttr);s=s&&s.replace(/\s/g,""),"_blank"===s&&(this.adapter.setAttr(t,n.targetAttr,"_top"),this.adapter.setAttr(t,o,s))}}},e.prototype._processUrlAttrs=function(t,r,n){if(n.urlAttr){var o=e.getStoredAttrName(n.urlAttr),i=this.adapter.getAttr(t,n.urlAttr),s=!!i&&K(i),a=this.adapter.hasAttr(t,o);if((i||""===i)&&!a&&(U(i)||s)){var l=this.adapter.getTagName(t),c="iframe"===l||"frame"===l,p="script"===l,u="a"===l,h=n.targetAttr?this.adapter.getAttr(t,n.targetAttr):null;if(this.adapter.needToProcessUrl(l,h||"")){var d=this.getElementResourceType(t)||"",f=V(i),m="file:"!==f.protocol&&!f.host,g=p&&this.adapter.getAttr(t,"charset")||"",v="img"===l&&""===i,y=c&&""===i,E=H(r("/")),S=!1,b=i;c&&!s&&!m&&E&&(S=!this.adapter.sameOriginCheck(E.destUrl,i)),s&&!u||v||y||(b="img"!==l||this.forceProxySrcForImage?r(i,d,g,S):B(i,r)),this.adapter.setAttr(t,o,i),this.adapter.setAttr(t,n.urlAttr,b)}}}},e.prototype._processSrcdocAttr=function(t){var r=e.getStoredAttrName("srcdoc"),n=this.adapter.getAttr(t,"srcdoc")||"",o=this.adapter.processSrcdocAttr(n);this.adapter.setAttr(t,r,n),this.adapter.setAttr(t,"srcdoc",o)},e.prototype._processUrlJsAttr=function(t,r,n){n.urlAttr&&e.isJsProtocol(this.adapter.getAttr(t,n.urlAttr)||"")&&this._processJsAttr(t,n.urlAttr,{isJsProtocol:!0,isEventAttr:!1})},e.prototype._processSVGXLinkHrefAttr=function(t,r,n){if(n.urlAttr){var o=this.adapter.getAttr(t,n.urlAttr)||"";if(Ml.test(o)){var i=e.getStoredAttrName(n.urlAttr);this.adapter.setAttr(t,i,o)}}},e}(),Uh=new WeakMap,Bh=function(){function e(){}return e}();Bh.prototype=DOMStringList.prototype;var Gh=function(e){function t(t,r){var n=e.call(this)||this,o=t.location.ancestorOrigins,i=o.length,s=t.parent;Uh.set(n,i);for(var a=function(e){var t=Zh.getLocationWrapper(s),i=t===s.location;yi(o,l,e.toString(),i?"":t.origin),i&&r&&r(s,function(t){return yi(o,n,e,t)}),s=s.parent},l=this,c=0;c<i;c++)a(c);return n}return m(t,e),t.prototype.item=function(e){return this[e]},t.prototype.contains=function(e){"string"!=typeof e&&(e=String(e));for(var t=Uh.get(this)||0,r=0;r<t;r++)if(this[r]===e)return!0;return!1},Object.defineProperty(t.prototype,"length",{get:function(){return Uh.get(this)},enumerable:!0,configurable:!0}),t}(Bh),Wh=Number.MAX_SAFE_INTEGER||9007199254740991,qh=Number.MIN_SAFE_INTEGER||-9007199254740991,zh=function(){function e(){this._id=qh}return e.prototype.increment=function(){return this._id=this._id===Wh?qh:this._id+1,this._id},Object.defineProperty(e.prototype,"value",{get:function(){return this._id},enumerable:!0,configurable:!0}),e}(),Kh="hammerhead|command|get-origin",Xh="hammerhead|command|origin-received",$h=function(){function e(){}return e}();$h.prototype=Location.prototype;var Yh=function(e){function t(t,r,n){var o=e.call(this)||this,i=lc(Ei(t)),s=i?i.resourceType:"",a=Ne(s),l=Ya.objectHasOwnProperty.call(t.Location.prototype,"href"),c=l?t.Location.prototype:t.location,p={};a.isIframe=a.isIframe||Pt(t);var u=P({isIframe:a.isIframe,isForm:a.isForm}),h=function(){if(Pt(t)&&t.location.href===Fl)return Fl;var e=Jl(),r=Xl.getResolverElement(t.document);Ya.anchorHrefSetter.call(r,e);var n=Ya.anchorHrefGetter.call(r);return z(n,e)},d=function(e){if("string"!=typeof e&&(e=String(e)),e=Z(e),Vh.isJsProtocol(e))return Vh.processJsAttrValue(e,{isJsProtocol:!0,isEventAttr:!1});var r=Ei(t),n=null;if(t!==t.parent){var o=Ei(t.parent),i=lc(o);if(i&&i.proxy){var a=i.proxy.port;n=O(o,e)?a:ye(a)}}var l=r&&Oe(r,e),c=l?s:u;return ic(e,{resourceType:c,proxyPort:n})};if(p.href=y(c,"href",{getter:h,setter:function(e){var r=d(e);return t.location.href=r,n(r),e}}),p.search=y(c,"search",{getter:function(){return t.location.search},setter:function(e){var r=Ce(t.location.toString(),Ya.anchorSearchSetter,e,u);return t.location=r,n(r),e}}),p.origin=y(c,"origin",{getter:function(){return R(ue())},setter:function(e){return e}}),p.hash=y(c,"hash",{getter:function(){return t.location.hash},setter:function(e){return t.location.hash=e,e}}),t.location.ancestorOrigins){var f=Ya.objectCreate(null),m=new zh,g=function(e,t){var n=m.increment();f[n]=t,r.sendServiceMsg({id:n,cmd:Kh},e)};r&&r.on(r.SERVICE_MSG_RECEIVED_EVENT,function(e){var t=e.message,n=e.source;if(t.cmd===Kh)r.sendServiceMsg({id:t.id,cmd:Xh,origin:o.origin},n);else if(t.cmd===Xh){var i=f[t.id];i&&i(t.origin)}});var v=new Gh(t,r?g:void 0);p.ancestorOrigins=y(c,"ancestorOrigins",{getter:function(){return v}})}var E=function(e,r){p[e]=y(c,e,{getter:function(){var r=gt(t),n=r&&Ht(r),o=n?t.location:ue();return o[e]},setter:function(e){var o=Ce(t.location.toString(),r,e,u);return t.location=o,n(o),e}})};if(E("port",Ya.anchorPortSetter),E("host",Ya.anchorHostSetter),E("hostname",Ya.anchorHostnameSetter),E("pathname",Ya.anchorPathnameSetter),E("protocol",Ya.anchorProtocolSetter),p.assign=y(c,"assign",{value:function(e){var r=d(e),o=t.location.assign(r);return n(r),o}}),p.replace=y(c,"replace",{value:function(e){var r=d(e),o=t.location.replace(r);return n(r),o}}),p.reload=y(c,"reload",{value:function(e){var r=t.location.reload(e);return n(t.location.toString()),r}}),p.toString=y(c,"toString",{value:h}),!l&&Ya.objectHasOwnProperty.call(t.location,"valueOf")&&(p.valueOf=y(c,"valueOf",{value:function(){return o}})),Ya.objectDefineProperties(o,p),ul)return o;for(var S=Ya.objectKeys(Location.prototype),b=o,_=function(e,r){if("function"==typeof e[r]){var n=e[r];e[r]=function(){var e=this===b?t.location:this;return n.apply(e,arguments)}}},w=0,x=S;w<x.length;w++){var C=x[w];if(!(C in p)){var T=Ya.objectGetOwnPropertyDescriptor(Location.prototype,C);_(T,"get"),_(T,"set"),_(T,"value"),Ya.objectDefineProperty(b,C,T),Ya.consoleMeths.log("testcafe-hammerhead: unwrapped Location.prototype."+C+" descriptor!")}}return o}return m(t,e),t}($h);"function"!=typeof Location?Yh.toString=function(){return Location.toString()}:_(Yh,Location);var Qh,Jh="hammerhead|location-wrapper",Zh=function(e){function t(t){var r=e.call(this)||this;return r._messageSandbox=t,r.LOCATION_CHANGED_EVENT="hammerhead|event|location-changed",r._locationChangedEventCallback=function(e){return r.emit(r.LOCATION_CHANGED_EVENT,e)},r}return m(t,e),t.isLocationWrapper=function(e){return e instanceof Yh},t.getLocationWrapper=function(e){if(pl&&At(window,e))return e.location;try{return e[Jh]}catch(t){return e.location}},t.prototype.attach=function(t){e.prototype.attach.call(this,t);var r=t.document,n=new Yh(t,this._messageSandbox,this._locationChangedEventCallback);Ya.objectDefineProperty(t,Jh,{value:n,configurable:!0}),Ya.objectDefineProperty(r,Jh,{value:n,configurable:!0}),Ya.objectDefineProperty(t,Ep.getLocation,{value:function(e){return br(e)?n:e},configurable:!0}),Ya.objectDefineProperty(t,Ep.setLocation,{value:function(e,t){return br(e)&&"string"==typeof t?(n.href=t,t):null},configurable:!0})},t}(rp),ed=Object.freeze({__proto__:null,inaccessibleTypeToStr:Si,isNullOrUndefined:bi,isPrimitiveType:_i}),td="hammerhead|iframe-window-inited",rd=function(e){function t(t,r){var n=e.call(this)||this;return n._nodeMutation=t,n._cookieSandbox=r,n.RUN_TASK_SCRIPT_EVENT="hammerhead|event|run-task-script",n.EVAL_HAMMERHEAD_SCRIPT_EVENT="hammerhead|event|eval-hammerhead-script",n.EVAL_EXTERNAL_SCRIPT_EVENT="hammerhead|event|eval-external-script",n.IFRAME_DOCUMENT_CREATED_EVENT="hammerhead|event|iframe-document-created",n.on(n.RUN_TASK_SCRIPT_EVENT,n.iframeReadyToInitHandler),n._nodeMutation.on(n._nodeMutation.IFRAME_ADDED_TO_DOM_EVENT,function(e){return n.processIframe(e)}),n.iframeNativeMethodsBackup=null,n}return m(t,e),t.prototype._shouldSaveIframeNativeMethods=function(e){if(!yl)return!1;var t=this.nativeMethods.getAttribute.call(e,"src");return Vh.isJsProtocol(t)},t.prototype._ensureIframeNativeMethodsForChrome=function(e){var t=Ya.contentWindowGetter.call(e),r=Ya.contentDocumentGetter.call(e);this.iframeNativeMethodsBackup?(this.iframeNativeMethodsBackup.restoreDocumentMeths(t,r),this.iframeNativeMethodsBackup=null):this._shouldSaveIframeNativeMethods(e)&&(this.iframeNativeMethodsBackup=new this.nativeMethods.constructor(r,t))},t.prototype._ensureIframeNativeMethodsForIE=function(e){var t=Ya.contentWindowGetter.call(e),r=Ya.contentDocumentGetter.call(e),n=t[Ga.iframeNativeMethods];n&&(n.restoreDocumentMeths(t,r),delete t[Ga.iframeNativeMethods])},t.prototype._ensureIframeNativeMethods=function(e){this._ensureIframeNativeMethodsForChrome(e),this._ensureIframeNativeMethodsForIE(e)},t.prototype._emitEvents=function(e){this.emit(this.EVAL_HAMMERHEAD_SCRIPT_EVENT,{iframe:e}),this.emit(this.EVAL_EXTERNAL_SCRIPT_EVENT,{iframe:e}),this.emit(this.RUN_TASK_SCRIPT_EVENT,e)},t.prototype._raiseReadyToInitEvent=function(e){if(Ht(e)){var r=Ya.contentWindowGetter.call(e),n=Ya.contentDocumentGetter.call(e);t.isIframeInitialized(e)?r[td]||r[Ga.hammerhead]||(this._ensureIframeNativeMethods(e),Ya.objectDefineProperty(r,td,{value:!0}),this._emitEvents(e),r[Ga.processDomMethodName]()):w(n.write)&&this.emit(this.IFRAME_DOCUMENT_CREATED_EVENT,{iframe:e})}},t.isIframeInitialized=function(e){var t=Ya.contentWindowGetter.call(e),r=Ya.contentDocumentGetter.call(e);return fl?"uninitialized"!==r.readyState:pl?!!r.documentElement||t[Ga.documentWasCleaned]:!(!t[Ga.documentWasCleaned]&&Ft(e))||"about:srcdoc"===t.location.href},t.isWindowInited=function(e){return e[td]},t.prototype.iframeReadyToInitHandler=function(e){var t=Yl.get().iframeTaskScriptTemplate,r=function(e){return e.replace(/\$/g,"$$$$")},n=uu(this._cookieSandbox.getCookie()),o=Yl.get().referer||this.window.location.toString(),i=uu(t),s=t.replace("{{{cookie}}}",r(n)).replace("{{{referer}}}",r(uu(o))).replace("{{{iframeTaskScriptTemplate}}}",r(i)),a=Ya.contentWindowGetter.call(e);a.eval.call(a,s)},t.prototype.onIframeBeganToRun=function(e){this._raiseReadyToInitEvent(e)},t.prototype.processIframe=function(e){var t=this;vr(e)||((Rt(e)&&Ya.contentWindowGetter.call(e)||jt(e)&&Ya.frameContentWindowGetter.call(e))&&this._raiseReadyToInitEvent(e),this.nativeMethods.addEventListener.call(e,"load",function(){return t._raiseReadyToInitEvent(e)}))},t}(rp),nd=function(){function e(){this.EVENTS=["onblur","onchange","onclick","oncontextmenu","oncopy","oncut","ondblclick","onerror","onfocus","onfocusin","onfocusout","onhashchange","onkeydown","onkeypress","onkeyup","onload","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpaste","onreset","onresize","onscroll","onselect","onsubmit","ontextinput","onunload","onwheel","onpointerdown","onpointerup","onpointercancel","onpointermove","onpointerover","onpointerout","onpointerenter","onpointerleave","ongotpointercapture","onlostpointercapture","onmspointerdown","onmspointerup","onmspointercancel","onmspointermove","onmspointerover","onmspointerout","onmspointerenter","onmspointerleave","onmsgotpointercapture","onmslostpointercapture"]}return e}(),od={iframeInit:wi('\n        var parentHammerhead = null;\n\n        if (!window["'+Ga.hammerhead+'"])\n            Object.defineProperty(window, "'+Ga.documentWasCleaned+'", { value: true, configurable: true });\n\n        try {\n            parentHammerhead = window.parent["'+Ga.hammerhead+'"];\n        } catch(e) {}\n\n        if (parentHammerhead)\n            parentHammerhead.sandbox.onIframeDocumentRecreated(window.frameElement);\n    '),onWindowRecreation:wi('\n        var hammerhead = window["'+Ga.hammerhead+'"];\n        var sandbox    = hammerhead && hammerhead.sandbox;\n\n        if (!sandbox) {\n            try {\n                sandbox = window.parent["'+Ga.hammerhead+'"].sandboxUtils.backup.get(window);\n            } catch(e) {}\n        }\n\n        if (sandbox) {\n            Object.defineProperty(window, "'+Ga.documentWasCleaned+'", { value: true, configurable: true });\n\n            sandbox.node.mutation.onDocumentCleaned(window, document);\n\n            /* NOTE: B234357 */\n            sandbox.node.processNodes(null, document);\n        }\n    '),onBodyCreated:wi('\n        if (window["'+Ga.hammerhead+'"])\n            window["'+Ga.hammerhead+'"].sandbox.node.raiseBodyCreatedEvent();\n    '),onOriginFirstTitleLoaded:wi('\n        window["'+Ga.hammerhead+'"].sandbox.node.onOriginFirstTitleElementInHeadLoaded();\n    '),restoreStorages:wi('\n        window.localStorage.setItem("%s", %s);\n        window.sessionStorage.setItem("%s", %s);\n    ')};!function(e){e.beforeBegin="beforebegin",e.afterBegin="afterbegin",e.beforeEnd="beforeend",e.afterEnd="afterend"}(Qh||(Qh={}));var id=Qh,sd="hh_fake_tag_name_",ad="hh_fake_doctype",ld=sd+"head",cd=sd+"body",pd="hh_fake_attr",ud=new RegExp("(<\\/?)"+sd,"ig"),hd=/(<\/?)(html|head|body|table|tbody|tfoot|thead|tr|td|th|caption|colgroup)((?:\s[^>]*)?>)/gi,dd="$1"+sd+"$2$3",fd=/<(\/?(?:col|noscript))(\s[^>]*?)?(\s?\/)?>/gi,md="<br "+pd+'="$1|$3"$2>',gd=new RegExp("<br([^>]*?) "+pd+'="([^|]+)\\|([^"]*)"([^>]*)',"ig"),vd=/<!doctype([^>]*)>/gi,yd="<"+ad+">$1</"+ad+">",Ed=new RegExp("<"+ad+">([\\S\\s]*?)</"+ad+">","ig"),Sd=/<svg\s?[^>]*>/gi,bd=/\s(?:NS[0-9]+:[^"']+('|")[\S\s]*?\1|[^:]+:NS[0-9]+=(?:""|''))/g,_d=function(){for(var e=[],t=0,r=ch;t<r.length;t++){var n=r[t];e.push(Vh.getStoredAttrName(n))}for(var o=0,i=hh;o<i.length;o++){var n=i[o];e.push(Vh.getStoredAttrName(n))}return"["+e.join("],[")+"]"}(),wd='[class*="'+xl.postfix+'"]',xd="["+_l.hoverPseudoClass+"],["+_l.focusPseudoClass+"]",Cd=ld+", "+cd,Td="hammerhead|html-parser-element-flag",Ad='script,link[rel="stylesheet"]',Pd=Ya.createHTMLDocument.call(document.implementation,"title"),Id=Ya.createDocumentFragment.call(Pd);Id[Td]=!0;var Nd=Object.freeze({__proto__:null,isPageHtml:Pi,cleanUpHtml:Mi,processHtml:Ri,dispose:ji,isInternalHtmlParserElement:Hi}),Ld="hammerhead_write_marker_begin",Od="hammerhead_write_marker_end",kd="<"+Ld+"></"+Ld+">",Dd="<"+Od+"></"+Od+">",Md=new RegExp("^[\\S\\s]*"+kd,"g"),Rd=new RegExp(Dd+"[\\S\\s]*$","g"),jd=/^<[^>]+>/g,Hd=/<\/[^<>]+>$/g,Fd=/<\/?(?:[A-Za-z][^>]*)?$/g,Vd="hammerhead|unclosed-element-flag",Ud=function(){function e(e,t){this.window=e,this.document=t,this.pending="",this.parentTagChain=[],this.isBeginMarkerInDOM=!1,this.isEndMarkerInDOM=!1,this.isClosingContentEl=!1,this.isNonClosedComment=!1,this.isAddContentToEl=!1,this.contentForProcessing="",this.nonClosedEl=null,this.cachedStartsWithClosingTagRegExps={}}return e.prototype._cutPending=function(e){var t=e.match(Fd);return this.pending=t?t[0]:"",this.pending?e.substring(0,e.length-this.pending.length):e},e.prototype._wrapHtmlChunk=function(e){var t=this.parentTagChain.length?"<"+this.parentTagChain.join("><")+">":"";return this.isNonClosedComment&&(t+="<!--"),t+kd+e+Dd},e.prototype._unwrapHtmlChunk=function(e){return e?(e=e.replace(Md,"").replace(Rd,""),this.isBeginMarkerInDOM||(e=this.isNonClosedComment?e.slice(4):e.replace(jd,"")),this.isEndMarkerInDOM||(e=this.isNonClosedComment?e.slice(0,-3):e.replace(Hd,"")),!this.isBeginMarkerInDOM&&this.isEndMarkerInDOM&&(this.isNonClosedComment=!1),e):e},e._setUnclosedElementFlag=function(e){(Zt(e)||er(e))&&(e[Vd]=!0)},e.hasUnclosedElementFlag=function(e){return!!e[Vd]},e._searchBeginMarker=function(e){var t=Ya.elementQuerySelector.call(e,Ld);if(t)return t;for(t=e;Ya.elementFirstElementChildGetter.call(t);)t=Ya.elementFirstElementChildGetter.call(t);var r=Ya.nodeParentNodeGetter.call(t);return Ya.nodeFirstChildGetter.call(r)!==t?t=Ya.nodeFirstChildGetter.call(r):kr(Ya.nodeFirstChildGetter.call(t))&&(t=Ya.nodeFirstChildGetter.call(t)),t},e._searchEndMarker=function(e){var t=Ya.elementQuerySelector.call(e,Od);if(t)return t;for(t=e;Ya.elementLastElementChildGetter.call(t);)t=Ya.elementLastElementChildGetter.call(t);var r=Ya.nodeParentNodeGetter.call(t);return Ya.nodeLastChildGetter.call(r)!==t?t=Ya.nodeLastChildGetter.call(r):kr(Ya.nodeLastChildGetter.call(t))&&(t=Ya.nodeLastChildGetter.call(t)),t},e.prototype._updateParentTagChain=function(e,t){var r=Nt(t)!==Od?t:Ya.nodeParentNodeGetter.call(t);for(kr(t)&&(this.isNonClosedComment=!0,r=Ya.nodeParentNodeGetter.call(t)),this.parentTagChain=[];r!==e;)this.parentTagChain.unshift(Nt(r)),r=Ya.nodeParentNodeGetter.call(r)},e.prototype._processBeginMarkerInContent=function(t){var r=t;if(e._setUnclosedElementFlag(r),this.isClosingContentEl&&(Zt(r)||er(r)))this.contentForProcessing=Ya.nodeTextContentGetter.call(this.nonClosedEl)+Ya.nodeTextContentGetter.call(r).replace(Md,""),Ya.nodeTextContentSetter.call(r,"");else{var n=Ya.nodeTextContentGetter.call(r);Ya.nodeTextContentSetter.call(r,n.replace(Md,""))}t=Ya.createElement.call(document,Ld);var o=Ya.nodeParentNodeGetter.call(r);Ya.insertBefore.call(o,t,r)},e._createStartsWithClosingTagRegExp=function(e){for(var t=[e.charAt(e.length-1),"?"],r=e.length-2;r>-1;r--)t.unshift("(?:",e.charAt(r)),t.push(")?");return t.unshift("^</"),t.push("$"),new RegExp(t.join(""),"i")},e.prototype._getStartsWithClosingTagRegExp=function(t){return t=t.toLowerCase(),this.cachedStartsWithClosingTagRegExps[t]||(this.cachedStartsWithClosingTagRegExps[t]=e._createStartsWithClosingTagRegExp(t)),this.cachedStartsWithClosingTagRegExps[t]},e.prototype._processEndMarkerInContent=function(t){var r=t,n=Ya.nodeTextContentGetter.call(r);if(e._setUnclosedElementFlag(r),Ya.nodeTextContentSetter.call(r,n.replace(Rd,"")),t=Ya.createElement.call(document,Od),this.pending){var o=this._getStartsWithClosingTagRegExp(r.tagName),i=o.test(this.pending);if(!i){var s=Ya.nodeTextContentGetter.call(r)+this.pending;Ya.nodeTextContentSetter.call(r,s),this.pending=""}}var a=Ya.nodeParentNodeGetter.call(r);Ya.appendChild.call(a,t)},e._addOnDocumentRecreationScript=function(e){var t=Ya.createElement.call(e.ownerDocument,"span"),r=Ya.nodeParentNodeGetter.call(e);Ya.insertBefore.call(r,t,e),Ya.elementOuterHTMLSetter.call(t,od.onWindowRecreation)},e.prototype._prepareDom=function(t,r){var n=e._searchBeginMarker(t),o=e._searchEndMarker(t);this.isBeginMarkerInDOM=Nt(n)===Ld,this.isEndMarkerInDOM=Nt(o)===Od,this.isAddContentToEl=n===o,
  this.isClosingContentEl=!this.isBeginMarkerInDOM&&!this.isAddContentToEl,this.isAddContentToEl||(this._updateParentTagChain(t,o),r&&e._addOnDocumentRecreationScript(o)),this.isBeginMarkerInDOM||this.isEndMarkerInDOM?this.isBeginMarkerInDOM&&!this.isEndMarkerInDOM?this._processEndMarkerInContent(o):!this.isBeginMarkerInDOM&&this.isEndMarkerInDOM&&this._processBeginMarkerInContent(n):(this._processBeginMarkerInContent(n),this._processEndMarkerInContent(o))},e.prototype._processHtmlChunk=function(e,t){var r=this;return e=this._cutPending(this.pending+e),e=this._wrapHtmlChunk(e),e=Ri(e,{prepareDom:function(e){return r._prepareDom(e,t)},processedContext:this.window}),e=this._unwrapHtmlChunk(e),e&&this.isBeginMarkerInDOM&&(fl||pl)&&!Pi(e)&&(e=od.iframeInit+e),e},e.prototype.write=function(e,t,r){var n=this._processHtmlChunk(Ya.arrayJoin.call(e,""),r);if(this.nonClosedEl&&this.contentForProcessing){var o=this.contentForProcessing;Zt(this.nonClosedEl)?o=vi(this.contentForProcessing,!0,!1,cc):er(this.nonClosedEl)&&(o=wh.process(this.contentForProcessing,ic,!0)),Ya.nodeTextContentSetter.call(this.nonClosedEl,o),this.contentForProcessing=""}var i=t?Ya.documentWriteLn:Ya.documentWrite,s=i.call(this.document,n);if(r&&pl)return s;if(!this.isEndMarkerInDOM&&!this.isAddContentToEl){for(var a=this.document.documentElement;Ya.elementLastElementChildGetter.call(a);)a=Ya.elementLastElementChildGetter.call(a);this.nonClosedEl=a}return s},e}(),Bd="hammerhead|windows-storage",Gd=Object.freeze({__proto__:null,add:Ui,remove:Bi,findByName:Gi}),Wd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._srcdocMode=!1,t}return m(t,e),t.prototype.removeAttr=function(e,t){return Ya.removeAttribute.call(e,t)},t.prototype.getAttr=function(e,t){return Ya.getAttribute.call(e,t)},t.prototype.hasAttr=function(e,t){return e.hasAttribute(t)},t.prototype.isSVGElement=function(e){return _r(e)},t.prototype.getClassName=function(e){return e.className},t.prototype.hasEventHandler=function(e){for(var t=Ya.elementAttributesGetter.call(e),r=0,n=t;r<n.length;r++){var o=n[r];if(this.EVENTS.indexOf(o.name)!==-1)return!0}return!1},t.prototype.getTagName=function(e){return Nt(e)},t.prototype.setAttr=function(e,t,r){return Ya.setAttribute.call(e,t,r)},t.prototype.setScriptContent=function(e,t){Ya.nodeTextContentSetter.call(e,t)},t.prototype.getScriptContent=function(e){return Ya.nodeTextContentGetter.call(e)},t.prototype.getStyleContent=function(e){return Ya.elementInnerHTMLGetter.call(e)},t.prototype.setStyleContent=function(e,t){Ya.elementInnerHTMLSetter.call(e,t)},t.prototype.needToProcessContent=function(e){return!Ud.hasUnclosedElementFlag(e)},t.prototype.needToProcessUrl=function(){return!0},t.prototype.hasIframeParent=function(e){if(this._srcdocMode)return!0;try{return e[Ga.processedContext]?window.top!==e[Ga.processedContext]:window.top.document!==xt(e)}catch(t){return!0}},t.prototype.getProxyUrl=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ic.apply(void 0,e)},t.prototype.isTopParentIframe=function(e){var t=e[Ga.processedContext];return t&&window.top===t.parent},t.prototype.sameOriginCheck=function(e,t){return oe(e,t)},t.prototype.isExistingTarget=function(e){return!!Gi(e)},t.prototype.processSrcdocAttr=function(e){this._srcdocMode=!0;var t=Ri(e,{isPage:!0});return this._srcdocMode=!1,t},t}(nd),qd=new Vh(new Wd),zd=function(e){function t(t,r,n,o,i){var s=e.call(this)||this;return s._nodeSandbox=t,s._shadowUI=r,s._cookieSandbox=n,s._iframeSandbox=o,s._documentTitleStorageInitializer=i,s.writers=new Map,s}return m(t,e),t.forceProxySrcForImageIfNecessary=function(e){Vt(e)&&Yl.get().forceProxySrcForImage&&(e[Ga.forceProxySrcForImage]=!0)},t._isDocumentInDesignMode=function(e){return"on"===e.designMode},t.prototype._isUninitializedIframeWithoutSrc=function(e){var t=gt(e);return e!==e.top&&t&&Ht(t)&&!rd.isIframeInitialized(t)},t.prototype._beforeDocumentCleaned=function(){this._nodeSandbox.mutation.onBeforeDocumentCleaned(this.document)},t.prototype._onDocumentClosed=function(){this._nodeSandbox.mutation.onDocumentClosed(this.document)},t._shouldEmitDocumentCleanedEvents=function(e){if(pl){if("loading"!==e.readyState)return!0;var t=e.defaultView;if(t[Ga.documentWasCleaned])return!1;var r=t&&gt(t);return r&&Ht(r)}return"loading"!==e.readyState&&"uninitialized"!==e.readyState},t.prototype._performDocumentWrite=function(e,r,n){var o=t._shouldEmitDocumentCleanedEvents(this.document);o&&this._beforeDocumentCleaned();var i=this.writers.get(e).write(r,n,o);return o||this._nodeSandbox.processNodes(null,this.document),i},t._definePropertyDescriptor=function(e,t,r,n){n.configurable?Ya.objectDefineProperty(e,r,n):t.hasOwnProperty(r)||Ya.objectDefineProperty(t,r,n)},t.prototype.iframeDocumentOpen=function(e,t,r){var n=e.frameElement,o=Ya.documentOpen.apply(t,r);return Ya.objectDefineProperty(e,Ga.documentWasCleaned,{value:!0,configurable:!0}),this._nodeSandbox.iframeSandbox.onIframeBeganToRun(n),o},t.prototype.attach=function(r,n,o){var i=this;void 0===o&&(o=!1),this.writers.size||e.prototype.attach.call(this,r,n),this.writers.has(n)||(this.writers.set(n,new Ud(r,n)),this._nodeSandbox.mutation.on(this._nodeSandbox.mutation.BEFORE_DOCUMENT_CLEANED_EVENT,function(){i.writers.set(n,new Ud(r,n))}));var s=this,a=r.Document.prototype,l={open:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s._isUninitializedIframeWithoutSrc(r);if(n||s._beforeDocumentCleaned(),pl)return r.parent[Ga.hammerhead].sandbox.node.doc.iframeDocumentOpen(r,this,e);var o=Ya.documentOpen.apply(this,e),i=r[Ga.hammerhead]?r[Ga.hammerhead].nativeMethods.objectDefineProperty:r.Object.defineProperty;if(i(r,Ga.documentWasCleaned,{value:!0,configurable:!0}),n){var a=gt(r);a&&s._iframeSandbox.processIframe(a)}else s._nodeSandbox.mutation.onDocumentCleaned(r,this);return o},close:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];pl&&!rd.isWindowInited(r)&&Ya.restoreDocumentMeths(r,this),t._isDocumentInDesignMode(this)&&Mf.removeSelfRemovingScripts(this);var o=Ya.documentClose.apply(this,e);s._isUninitializedIframeWithoutSrc(r)||s._onDocumentClosed();var i=gt(r);return i&&s._nodeSandbox.iframeSandbox.onIframeBeganToRun(i),o},write:function(){return s._performDocumentWrite(this,arguments)},writeln:function(){return s._performDocumentWrite(this,arguments,!0)}};x(r[Ya.documentOpenPropOwnerName].prototype,"open",l.open),x(r[Ya.documentClosePropOwnerName].prototype,"close",l.close),x(r[Ya.documentWritePropOwnerName].prototype,"write",l.write),x(r[Ya.documentWriteLnPropOwnerName].prototype,"writeln",l.writeln),x(n,"open",l.open),x(n,"close",l.close),x(n,"write",l.write),x(n,"writeln",l.writeln),n.open!==l.open&&x(n,"open",l.open),x(a,"createElement",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Ya.createElement.apply(this,e);return t.forceProxySrcForImageIfNecessary(n),qd.processElement(n,cc),s._nodeSandbox.processNodes(n),n}),x(a,"createElementNS",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Ya.createElementNS.apply(this,e);return t.forceProxySrcForImageIfNecessary(n),qd.processElement(n,cc),s._nodeSandbox.processNodes(n),n}),x(a,"createDocumentFragment",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ya.createDocumentFragment.apply(this,e);return s._nodeSandbox.processNodes(r),r});var c=r.HTMLDocument.prototype,p="";Ya.documentDocumentURIGetter&&E(a,"documentURI",{getter:function(){return ke(Ya.documentDocumentURIGetter.call(this))}});var u=y(a,"referrer",{getter:function(){var e=ke(Ya.documentReferrerGetter.call(this));return e===we()+"/"?se():Ie(e)?"":e}});t._definePropertyDescriptor(a,c,"referrer",u);var h=y(a,"URL",{getter:function(){return Zh.getLocationWrapper(this).href}});t._definePropertyDescriptor(a,c,"URL",h);var d=Ya.objectHasOwnProperty.call(a,"domain")?a:c,f=y(d,"domain",{getter:function(){return p||Zh.getLocationWrapper(r).hostname},setter:function(e){p=e}});t._definePropertyDescriptor(d,c,"domain",f),E(a,"styleSheets",{getter:function(){var e=Ya.documentStyleSheetsGetter.call(this);return s._shadowUI._filterStyleSheetList(e,e.length)}});var m=r[Ya.documentCookiePropOwnerName].prototype;E(m,"cookie",{getter:function(){return s._cookieSandbox.getCookie()},setter:function(e){return s._cookieSandbox.setCookie(String(e))}}),E(a,"activeElement",{getter:function(){var e=Ya.documentActiveElementGetter.call(this);return e&&vr(e)?s._shadowUI.getLastActiveElement()||this.body:e}}),this._documentTitleStorageInitializer&&!o&&E(a,"title",{getter:function(){return s._documentTitleStorageInitializer.storage.getTitle()},setter:function(e){s._documentTitleStorageInitializer.storage.setTitle(e)}})},t}(rp),Kd=Object.freeze({__proto__:null,addInputInfo:Ki,getFormInfo:Xi,setFormInfo:$i,removeInputInfo:Yi}),Xd=["blur","focus","focusin","focusout","click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","beforeinput","input","keydown","keyup"],$d={left:0,middle:1,right:2},Yd={noButton:0,leftButton:1,rightButton:2},Qd={noButton:0,leftButton:1,middleButton:2,rightButton:3},Jd={altKey:"Alt",ctrlKey:"Control",shiftKey:"Shift",metaKey:"Meta"},Zd=["click","dblclick","contextmenu","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","touchstart","touchmove","touchend","keydown","keypress","keyup","textInput","textinput","input","change","focus","blur","MSPointerDown","MSPointerMove","MSPointerOver","MSPointerOut","MSPointerUp","pointerdown","pointermove","pointerover","pointerout","pointerup","pointerenter","pointerleave","dragstart","drop","focusin","focusout"],ef=!(!Ya.WindowPointerEvent&&!Ya.WindowMSPointerEvent),tf=Object.freeze({__proto__:null,BUTTON:$d,BUTTONS_PARAMETER:Yd,WHICH_PARAMETER:Qd,KEYBOARD_MODIFIERS_PARAMETER:Jd,DOM_EVENTS:Zd,preventDefault:Qi,stopPropagation:Ji,isObjectEventListener:Zi,isValidEventListener:es,callEventListener:ts,isComposedEvent:rs,hasPointerEvents:ef}),rf=["setNamedItem","setNamedItemNS","removeNamedItem","removeNamedItemNS","getNamedItem","getNamedItemNS"],nf=function(){function e(e,t){var r=this;ss(this,t),this.item=function(e){return r[e]};for(var n in t)"function"==typeof this[n]&&"item"!==n&&(this[n]=rf.indexOf(n)!==-1?os(e,t,n):ns(t[n],t));vc&&(this.getNamedItem=os(e,t,"getNamedItem"))}return e}(),of="hammerhead|element-attribute-wrappers",sf=function(){function e(){var e=this;this._mutations=Ya.objectCreate(null),this._isDomContentLoaded=!1,Ya.addEventListener.call(document,"DOMContentLoaded",function(){for(var t=0,r=Ya.objectKeys(e._mutations);t<r.length;t++){var n=r[t];e._updateVersion(n)}e._isDomContentLoaded=!0})}return e.prototype._updateVersion=function(e){e in this._mutations&&this._mutations[e].increment()},e.prototype._processElement=function(e){if(e.tagName&&!vr(e)){var t=Nt(e);this._updateVersion("*"),this._updateVersion(t)}},e.prototype._processChildren=function(e){if(e.querySelectorAll)for(var t=st(e).call(e,"*"),r=Ya.nodeListLengthGetter.call(t),n=0;n<r;n++)this._processElement(t[n])},e.prototype.onElementChanged=function(e){this._processElement(e),this._processChildren(e)},e.prototype.onChildrenChanged=function(e){this._processChildren(e)},e.prototype.isDomContentLoaded=function(){return this._isDomContentLoaded},e.prototype.isOutdated=function(e,t){var r=e in this._mutations;r||(this._mutations[e]=new zh);var n=this._mutations[e].value;return t<n},e.prototype.getVersion=function(e){return e in this._mutations?this._mutations[e].value:-(1/0)},e}(),af=new sf,lf=["_blank","_self","_parent","_top"],cf=[xh.refresh,xh.contentSecurityPolicy],pf=function(e){function t(t,r,n,o,i,s){var a=e.call(this)||this;return a._nodeSandbox=t,a._uploadSandbox=r,a._iframeSandbox=n,a._shadowUI=o,a._eventSandbox=i,a._childWindowSandbox=s,a.BEFORE_FORM_SUBMIT_EVENT="hammerhead|event|before-form-submit",a.SCRIPT_ELEMENT_ADDED_EVENT="hammerhead|event|script-added",a.overriddenMethods=null,a}return m(t,e),t._onTargetChanged=function(e){var t=Nt(e),r=qd.getTargetAttr(e);if(Vh.isIframeFlagTag(t)){var n="";"target"===r?n="form"===t?"action":"href":"formtarget"===r&&(n="formaction");var o=Vh.getStoredAttrName(n);if(e.hasAttribute(o)){var i=e.getAttribute(o);Pe(i)&&e.setAttribute(n,i)}}},t._setProxiedSrc=function(e){if(!e[Ga.forceProxySrcForImage]){var t=Ya.imageSrcGetter.call(e),r=!!t&&e.complete&&!e[Ga.cachedImage];e[Ga.forceProxySrcForImage]=!0,t&&e.setAttribute("src",t),e[Ga.skipNextLoadEventForImage]=r}},t.prototype.getAttributeCore=function(e,t,r){var n=String(t[r?1:0]),o=n.toLowerCase(),i=r?t[0]:null,s=r?Ya.getAttributeNS:Ya.getAttribute,a=Nt(e);if("style"===o)return wh.cleanUp(s.apply(e,t),lc);if(qd.isUrlAttr(e,o,i)||qd.EVENTS.indexOf(o)!==-1||hh.indexOf(o)!==-1){var l=Vh.getStoredAttrName(n),c=s.apply(e,r?[i,l]:[l]);if(Vh.isAddedAutocompleteAttr(o,c))return null;e.hasAttribute(l)&&(t[r?1:0]=l)}else if(!r&&("integrity"===o&&Vh.isTagWithIntegrityAttr(a)||"rel"===o&&"link"===a||"required"===o&&cr(e)||"srcdoc"===o&&"iframe"===a)){var p=Vh.getStoredAttrName(n);Ya.hasAttribute.call(e,p)&&(t[0]=p)}return s.apply(e,t)},t.prototype.setAttributeCore=function(e,r,n){var o=n?r[0]:null,i=String(r[n?1:0]),s=i.toLowerCase(),a=n?2:1,l=String(r[a]),c=n?Ya.setAttributeNS:Ya.setAttribute,p=Nt(e),u=qd.isUrlAttr(e,i,o),h=qd.EVENTS.indexOf(i)!==-1,d=!1,f=!1,m=Ie(l),g=Pe(l);if(u&&!g&&!m||h){var v=Vh.isJsProtocol(l),y=Vh.getStoredAttrName(i);(u&&v||h)&&(r[a]=Vh.processJsAttrValue(l,{isJsProtocol:v,isEventAttr:h})),c.apply(e,n?[o,y,l]:[y,l])}else if(u&&(g||m)){var E=Vh.getStoredAttrName(i);if(c.apply(e,n?[o,E,l]:[E,l]),"img"!==p||e[Ga.forceProxySrcForImage]){if("img"===p&&(e[Ga.skipNextLoadEventForImage]=!1),""!==l&&(!m||"a"===p)){var S="iframe"===p||"frame"===p,b="script"===p,_=g&&!oe(location.toString(),l),w=qd.getElementResourceType(e),x=b&&e.charset,C=e.ownerDocument||this.document;if("formaction"===s&&!Ya.hasAttribute.call(e,"formtarget")&&(w=Le({isForm:!0}),e.form&&Ya.hasAttribute.call(e.form,"action"))){var A=lc(Ya.formActionGetter.call(e.form));A&&(w=A.resourceType)}t._isHrefAttrForBaseElement(e,i)&&kt(e,C)&&Xl.updateBase(l,C),r[a]=S&&_?sc(l):ic(l,{resourceType:w,charset:x,doc:C})}}else!l||m||lc(l)||(r[a]=e[Ga.forceProxySrcForImage]?ic(l):ac(l));Ya.nodeParentNodeGetter.call(e)||Ya.objectDefineProperty(e,Ga.currentBaseUrl,{value:Xl.getBaseUrl(document),configurable:!0,writable:!0})}else if("autocomplete"===s){var P=Vh.getStoredAttrName(i);c.apply(e,n?[o,P,l]:[P,l]),r[a]="off"}else if("target"===s&&Vh.isTagWithTargetAttr(p)||"formtarget"===s&&Vh.isTagWithFormTargetAttr(p)){var I=Ya.getAttribute.call(e,s),N=this.getCorrectedTarget(l);if(N===I)return null;var L=Vh.getStoredAttrName(i);c.apply(e,n?[o,L,l]:[L,l]),r[a]=N,d=!0}else if("sandbox"===i){var O=Vh.getStoredAttrName(i),k=l.indexOf("allow-same-origin")!==-1,D=l.indexOf("allow-scripts")!==-1;c.apply(e,n?[o,O,l]:[O,l]),k&&D||(r[a]+=k?"":" allow-same-origin",r[a]+=D?"":" allow-scripts"),e[this._nodeSandbox.win.SANDBOX_DOM_TOKEN_LIST_UPDATE_FN]&&e[this._nodeSandbox.win.SANDBOX_DOM_TOKEN_LIST_UPDATE_FN](l)}else if("meta"===p&&"http-equiv"===i){var M=l.toLowerCase();if(cf.indexOf(M)!==-1)return null}else if("xlink:href"===s&&qd.SVG_XLINK_HREF_TAGS.indexOf(p)!==-1&&_r(e)){var R=Vh.getStoredAttrName(i);c.apply(e,n?[o,R,l]:[R,l]),Ml.test(l)||(r[a]=ic(l))}else if("style"===s)r[a]=wh.process(l,ic);else{if(!n&&"integrity"===s&&Vh.isTagWithIntegrityAttr(p)){var j=Vh.getStoredAttrName(i);return c.apply(e,[j,l])}if(n||"rel"!==s||"link"!==p)if(n||"as"!==s||"link"!==p){if(!n&&"required"===s&&cr(e)){var H=Vh.getStoredAttrName(i);Ya.removeAttribute.call(e,i),r[0]=H}else if(!n&&"type"===s&&Ut(e)){var F=Ya.getAttribute.call(e,s),V=l.toLowerCase(),H=Vh.getStoredAttrName("required"),U=Ya.hasAttribute.call(e,H)?Ya.getAttribute.call(e,H):Ya.getAttribute.call(e,"required"),B=!F||V!==F.toLowerCase();B&&null!==U&&("file"===V?(Ya.setAttribute.call(e,H,U),Ya.removeAttribute.call(e,"required")):"file"===F&&(Ya.setAttribute.call(e,"required",U),Ya.removeAttribute.call(e,H)))}else if(!n&&"srcdoc"===s&&"iframe"===p){var G=Vh.getStoredAttrName(i);c.apply(e,[G,l]),r[a]=qd.adapter.processSrcdocAttr(l)}}else{var W=Ya.getAttribute.call(e,"as");f=l!==W&&(l===qd.PROCESSED_PRELOAD_LINK_CONTENT_TYPE||W===qd.PROCESSED_PRELOAD_LINK_CONTENT_TYPE)}else{var W=Ya.getAttribute.call(e,"rel"),q=T(l.toLowerCase()),z=Vh.getStoredAttrName(i);f=l!==W&&(l===qd.MODULE_PRELOAD_LINK_REL||W===qd.MODULE_PRELOAD_LINK_REL),"prefetch"===q?(Ya.removeAttribute.call(e,i),r[0]=z):Ya.removeAttribute.call(e,z)}}var K=c.apply(e,r);return"img"!==p||e[Ga.forceProxySrcForImage]||!e.complete||fl||(e[Ga.cachedImage]=!0),d&&t._onTargetChanged(e),f&&Ya.hasAttribute.call(e,"href")&&this.setAttributeCore(e,["href",Ya.getAttribute.call(e,"href")]),K},t.prototype._hasAttributeCore=function(e,t,r){var n=r?1:0,o=r?Ya.hasAttributeNS:Ya.hasAttribute,i=Vh.getStoredAttrName("autocomplete"),s=Ya.getAttribute.call(e,i),a=Nt(e);if("string"==typeof t[n]&&Vh.isAddedAutocompleteAttr(t[n],s))return!1;if(!r&&"integrity"===t[0]&&Vh.isTagWithIntegrityAttr(a))t[0]=Vh.getStoredAttrName("integrity");else{if(!r&&"rel"===t[0]&&"link"===a){var l=Vh.getStoredAttrName(t[0]);return o.apply(e,t)||o.apply(e,[l])}if(!r&&"required"===t[0]&&cr(e)){var c=Vh.getStoredAttrName(t[0]);return o.apply(e,t)||o.call(e,c)}}return o.apply(e,t)},t.prototype.removeAttributeCore=function(e,r,n){var o=String(r[n?1:0]),i=o.toLowerCase(),s=n?Ya.removeAttributeNS:Ya.removeAttribute,a=Nt(e),l=void 0;if(qd.isUrlAttr(e,i,n?r[0]:null)||"sandbox"===i||"autocomplete"===i||qd.EVENTS.indexOf(i)!==-1||"target"===i&&Vh.isTagWithTargetAttr(a)||"formtarget"===i&&Vh.isTagWithFormTargetAttr(a)){var c=Vh.getStoredAttrName(o);"autocomplete"===i?Ya.setAttribute.call(e,c,qd.AUTOCOMPLETE_ATTRIBUTE_ABSENCE_MARKER):s.apply(e,n?[r[0],c]:[c])}else if(n||"rel"!==i||"link"!==a){if(!n&&"required"===i&&cr(e)){var p=Vh.getStoredAttrName(o);s.call(e,p)}else if(!n&&"type"===i&&Ut(e)){var p=Vh.getStoredAttrName("required");if(Ya.hasAttribute.call(e,p)){var u=Ya.getAttribute.call(e,p);Ya.setAttribute.call(e,"required",u),Ya.removeAttribute.call(e,p)}}}else{var h=Vh.getStoredAttrName(o);s.apply(e,[h])}return t._isHrefAttrForBaseElement(e,i)&&Xl.updateBase(Jl(),this.document),"autocomplete"!==i&&(l=s.apply(e,r)),("target"===i&&Vh.isTagWithTargetAttr(a)||"formtarget"===i&&Vh.isTagWithFormTargetAttr(a))&&t._onTargetChanged(e),l},t._getChildNodesArray=function(e,t){var r=[],n=t[0],o=t[1];if(0===e.length)return r;for(var i=n;i<o;i++){var s=e[i];if(Dr(s)){var a=Ya.nodeChildNodesGetter.call(s);r.push.apply(r,en(a))}else"string"!=typeof s&&r.push(s)}return r},t.prototype._addNodeCore=function(e,r,n,o,i,s,a){void 0===s&&(s=!0),void 0===a&&(a=!1),this._prepareNodesForInsertion(o,n,e,a);var l=null,c=t._getChildNodesArray(o,n);if(s&&ur(e)&&kt(e)){var p=Ya.arraySlice.apply(o,n);l=this._shadowUI.insertBeforeRoot(p)}else l=i.apply(r,o);for(var u=0,h=c;u<h.length;u++){var d=h[u];this._onElementAdded(d)}return l},t.prototype._removeNodeCore=function(e,t,r,n){this._onRemoveFileInputInfo(r),this._onRemoveIframe(r);var o=n.apply(e,t);return this._onElementRemoved(r),o},t.prototype._prepareNodesForInsertion=function(e,r,n,o){if(void 0===o&&(o=!1),0!==e.length)for(var i=r[0],s=r[1],a=i;a<s;a++){var l=e[a];Lr(l)?l.data=t._processTextContent(l.data,n):It(l)||Dr(l)||kr(l)?this._nodeSandbox.processNodes(l):(o&&(l=String(l)),"string"==typeof l&&(e[a]=t._processTextContent(l,n)))}},t.prototype._insertAdjacentTextOrElement=function(e,t,r){var n,o,i=null===(o=null===(n=t[0])||void 0===n?void 0:n.toLocaleLowerCase)||void 0===o?void 0:o.call(n),s=i===id.beforeBegin||i===id.afterEnd?Ya.nodeParentNodeGetter.call(e):e;return s?this._addNodeCore(s,e,[1,2],t,r,i===id.beforeEnd):Ya.insertAdjacentElement.apply(e,t)},t.prototype._createOverriddenMethods=function(){var e=this;this.overriddenMethods={appendData:function(e){var r=Ya.nodeParentNodeGetter.call(this);Ya.nodeTextContentSetter.call(this,Ya.nodeTextContentGetter.call(this)+e),r&&(this.data=t._processTextContent(this.data,r))},insertRow:function(){var t=jr(this)?Ya.insertTableRow:Ya.insertTBodyRow,r=t.apply(this,arguments);return e._nodeSandbox.processNodes(r),r},insertCell:function(){var t=Ya.insertCell.apply(this,arguments);return e._nodeSandbox.processNodes(t),t},insertAdjacentHTML:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n,o,i=null===(o=null===(n=t[0])||void 0===n?void 0:n.toLocaleLowerCase)||void 0===o?void 0:o.call(n),s=t[1],a=i===id.beforeBegin||i===id.afterEnd?Ya.nodeParentNodeGetter.call(this):this;t.length>1&&null!==s&&a&&(t[1]=Ri(String(s),{parentTag:a.tagName,processedContext:a[Ga.processedContext]})),Ya.insertAdjacentHTML.apply(this,t),a&&(e._nodeSandbox.processNodes(a),af.onChildrenChanged(a))},insertAdjacentElement:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._insertAdjacentTextOrElement(this,t,Ya.insertAdjacentElement)},insertAdjacentText:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._insertAdjacentTextOrElement(this,t,Ya.insertAdjacentText)},formSubmit:function(){e._ensureTargetContainsExistingBrowsingContext(this);var t={form:this,preventSubmit:!1};return e.emit(e.BEFORE_FORM_SUBMIT_EVENT,t),t.preventSubmit?null:Ya.formSubmit.apply(this,arguments)},insertBefore:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._addNodeCore(this,this,[0,1],t,Ya.insertBefore,!t[1])},appendChild:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._addNodeCore(this,this,[0,1],t,Ya.appendChild)},append:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._addNodeCore(this,this,[0,t.length],t,Ya.append,!0,!0)},prepend:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._addNodeCore(this,this,[0,t.length],t,Ya.prepend,!1)},after:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=Ya.nodeParentNodeGetter.call(this);return n?e._addNodeCore(n,this,[0,t.length],t,Ya.after,!1):Ya.after.apply(this,t)},removeChild:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._removeNodeCore(this,t,t[0],Ya.removeChild)},remove:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._removeNodeCore(this,t,this,Ya.remove)},elementReplaceWith:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=Ya.nodeParentNodeGetter.call(this);if(!o)return Ya.elementReplaceWith.apply(this,r);var i=[0,r.length];e._prepareNodesForInsertion(r,i,o);var s=t._getChildNodesArray(r,i);e._onRemoveFileInputInfo(this),e._onRemoveIframe(this);var a=Ya.elementReplaceWith.apply(this,r);e._onElementRemoved(this);for(var l=0,c=s;l<c.length;l++){var p=c[l];e._onElementAdded(p)}return a},replaceChild:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r[0],i=r[1];Lr(o)&&(o.data=t._processTextContent(o.data,this)),e._onRemoveFileInputInfo(i);var s=Ya.replaceChild.apply(this,arguments);return e._onAddFileInputInfo(o),af.onElementChanged(o),af.onElementChanged(i),s},cloneNode:function(){var t=Ya.cloneNode.apply(this,arguments);return e._nodeSandbox.processNodes(t),t},attachShadow:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ya.attachShadow.apply(this,e);return Ya.objectDefineProperty(r,ep,{value:this}),r},getAttribute:function(){return e.getAttributeCore(this,arguments)},getAttributeNS:function(){return e.getAttributeCore(this,arguments,!0)},setAttribute:function(){var t=e.setAttributeCore(this,arguments);return ls(this),t},setAttributeNS:function(){var t=e.setAttributeCore(this,arguments,!0);return ls(this),t},removeAttribute:function(){var t=e.removeAttributeCore(this,arguments);return ls(this),t},removeAttributeNS:function(){var t=e.removeAttributeCore(this,arguments,!0);return ls(this),t},querySelector:function(){return"string"==typeof arguments[0]&&(arguments[0]=bf.processSelector(arguments[0])),it(this).apply(this,arguments)},querySelectorAll:function(){return"string"==typeof arguments[0]&&(arguments[0]=bf.processSelector(arguments[0])),st(this).apply(this,arguments)},hasAttribute:function(){return e._hasAttributeCore(this,arguments,!1)},hasAttributeNS:function(){return e._hasAttributeCore(this,arguments,!0)},hasAttributes:function(){return 2===Ya.elementAttributesGetter.call(this).length&&Ya.elementAttributesGetter.call(this).getNamedItem("autocomplete")&&Ya.elementAttributesGetter.call(this).getNamedItem(Vh.getStoredAttrName("autocomplete"))?e._hasAttributeCore(this,["autocomplete"],!1):Ya.hasAttributes.apply(this,arguments)},anchorToString:function(){return ke(Ya.anchorToString.call(this))},registerElement:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[1];if(r&&r.prototype&&r.prototype.createdCallback){var n=r.prototype.createdCallback;r.prototype.createdCallback=function(){Hi(this)||n.call(this)}}return Ya.registerElement.apply(this,e)}}},t._processTextContent=function(e,t){return t.tagName?Zt(t)?vi(e,!0,!1,cc):er(t)?wh.process(e,ic):e:e},t._isHrefAttrForBaseElement=function(e,t){return Jt(e)&&"href"===t},t._removeFileInputInfo=function(e){Yi(e)},t._hasShadowUIParentOrContainsShadowUIClassPostfix=function(e){var t=Ya.nodeParentNodeGetter.call(e);return t&&vr(t)||Mf.containsShadowUIClassPostfix(e)},t.prototype._isFirstBaseTagOnPage=function(e){var t=e.ownerDocument||this.document;return Ya.querySelector.call(t,"base")===e},t.prototype._onAddFileInputInfo=function(e){if(It(e))for(var t=tn(e),r=0,n=t;r<n.length;r++){var o=n[r];this.addFileInputInfo(o)}},t.prototype._onRemoveFileInputInfo=function(e){It(e)&&(cr(e)?t._removeFileInputInfo(e):wt(e,"input[type=file]",t._removeFileInputInfo))},t.prototype._onRemoveIframe=function(e){It(e)&&Rt(e)&&Bi(Ya.contentWindowGetter.call(e))},t.prototype._onElementAdded=function(e){if(t._hasShadowUIParentOrContainsShadowUIClassPostfix(e)&&Mf.markElementAndChildrenAsShadow(e),(It(e)||Er(e))&&kt(e)){for(var r=rn(e),n=0,o=r;n<o.length;n++){var i=o[n];this.onIframeAddedToDOM(i)}for(var s=nn(e),a=0,l=s;a<l.length;a++){var c=l[a];this.emit(this.SCRIPT_ELEMENT_ADDED_EVENT,{el:c})}af.onElementChanged(e)}if((Ut(e)||Gt(e))&&e.form&&Ya.hasAttribute.call(e,"formaction")&&e.setAttribute("formaction",e.getAttribute("formaction")),Kt(e)&&this._shadowUI.onBodyElementMutation(),this._onAddFileInputInfo(e),Jt(e)&&this._isFirstBaseTagOnPage(e)){var p=Vh.getStoredAttrName("href"),u=e.getAttribute(p);null!==u&&Xl.updateBase(u,this.document)}},t.prototype._onElementRemoved=function(e){if(Kt(e))this._shadowUI.onBodyElementMutation();else if(Jt(e)){var t=Ya.querySelector.call(this.document,"base"),r=t&&t.getAttribute(Vh.getStoredAttrName("href"));Xl.updateBase(r||Jl(),this.document)}af.onElementChanged(e)},t.prototype._reprocessElementsAssociatedWithIframe=function(e){if(e.name)for(var t=Ya.querySelectorAll.call(this.document,'*[target="'+e.name+'"]'),r=0,n=t;r<n.length;r++){var o=n[r];this._reprocessElementAssociatedWithIframe(o)}},t.prototype._reprocessElementAssociatedWithIframe=function(e){var t=qd.getUrlAttr(e),r=Vh.getStoredAttrName(t);Ya.removeAttribute.call(e,r),Vh.setElementProcessed(e,!1),qd.processElement(e,cc)},t.prototype.addFileInputInfo=function(e){var t=this._uploadSandbox.infoManager;Ki(e,t.getFiles(e),t.getValue(e))},t.prototype.onIframeAddedToDOM=function(e){Tt(e,!0)||this._nodeSandbox.mutation.onIframeAddedToDOM(e),Ui(Ya.contentWindowGetter.call(e)),this._reprocessElementsAssociatedWithIframe(e)},t.prototype.attach=function(r){e.prototype.attach.call(this,r),this._createOverriddenMethods(),x(r.Element.prototype,"setAttribute",this.overriddenMethods.setAttribute),x(r.Element.prototype,"setAttributeNS",this.overriddenMethods.setAttributeNS),x(r.Element.prototype,"getAttribute",this.overriddenMethods.getAttribute),x(r.Element.prototype,"getAttributeNS",this.overriddenMethods.getAttributeNS),x(r.Element.prototype,"removeAttribute",this.overriddenMethods.removeAttribute),x(r.Element.prototype,"removeAttributeNS",this.overriddenMethods.removeAttributeNS),x(r.Element.prototype,"cloneNode",this.overriddenMethods.cloneNode),x(r.Element.prototype,"querySelector",this.overriddenMethods.querySelector),x(r.Element.prototype,"querySelectorAll",this.overriddenMethods.querySelectorAll),x(r.Element.prototype,"hasAttribute",this.overriddenMethods.hasAttribute),x(r.Element.prototype,"hasAttributeNS",this.overriddenMethods.hasAttributeNS),x(r.Element.prototype,"hasAttributes",this.overriddenMethods.hasAttributes),Ya.attachShadow&&x(r.Element.prototype,"attachShadow",this.overriddenMethods.attachShadow),x(r.Node.prototype,"cloneNode",this.overriddenMethods.cloneNode),x(r.Node.prototype,"appendChild",this.overriddenMethods.appendChild),x(r.Node.prototype,"removeChild",this.overriddenMethods.removeChild),x(r.Node.prototype,"insertBefore",this.overriddenMethods.insertBefore),x(r.Node.prototype,"replaceChild",this.overriddenMethods.replaceChild),Ya.append&&x(r.Element.prototype,"append",this.overriddenMethods.append),Ya.prepend&&x(r.Element.prototype,"prepend",this.overriddenMethods.prepend),Ya.after&&x(r.Element.prototype,"after",this.overriddenMethods.after),Ya.remove&&x(r.Element.prototype,"remove",this.overriddenMethods.remove),Ya.elementReplaceWith&&x(r.Element.prototype,"replaceWith",this.overriddenMethods.elementReplaceWith),x(r.DocumentFragment.prototype,"querySelector",this.overriddenMethods.querySelector),x(r.DocumentFragment.prototype,"querySelectorAll",this.overriddenMethods.querySelectorAll),x(r.HTMLTableElement.prototype,"insertRow",this.overriddenMethods.insertRow),x(r.HTMLTableSectionElement.prototype,"insertRow",this.overriddenMethods.insertRow),x(r.HTMLTableRowElement.prototype,"insertCell",this.overriddenMethods.insertCell),x(r.HTMLFormElement.prototype,"submit",this.overriddenMethods.formSubmit),x(r.HTMLAnchorElement.prototype,"toString",this.overriddenMethods.anchorToString),x(r.CharacterData.prototype,"appendData",this.overriddenMethods.appendData),r.Document.prototype.registerElement&&x(r.Document.prototype,"registerElement",this.overriddenMethods.registerElement),x(Ya.insertAdjacentMethodsOwner,"insertAdjacentHTML",this.overriddenMethods.insertAdjacentHTML),x(Ya.insertAdjacentMethodsOwner,"insertAdjacentElement",this.overriddenMethods.insertAdjacentElement),x(Ya.insertAdjacentMethodsOwner,"insertAdjacentText",this.overriddenMethods.insertAdjacentText),this._setValidBrowsingContextOnElementClick(r),this._eventSandbox.listeners.on(this._eventSandbox.listeners.EVENT_LISTENER_ATTACHED_EVENT,function(e){"load"===e.eventType&&Vt(e.el)&&t._setProxiedSrc(e.el)}),E(r.HTMLElement.prototype,"onload",{getter:null,setter:function(e){Vt(this)&&es(e)&&t._setProxiedSrc(this),Ya.htmlElementOnloadSetter.call(this,e)}})},t.prototype._ensureTargetContainsExistingBrowsingContext=function(e){if(!Yl.get().allowMultipleWindows&&Ya.hasAttribute.call(e,"target")){var t=Ya.getAttribute.call(e,"target"),r=Ya.getAttribute.call(e,Vh.getStoredAttrName("target"));e.setAttribute("target",r||t)}},t.prototype._setValidBrowsingContextOnElementClick=function(e){var t=this;this._eventSandbox.listeners.initElementListening(e,["click"]),this._eventSandbox.listeners.addInternalEventBeforeListener(e,["click"],function(e){var r=Ya.eventTargetGetter.call(e);Ut(r)&&r.form&&(r=r.form);var n=Nt(r);Vh.isTagWithTargetAttr(n)&&t._ensureTargetContainsExistingBrowsingContext(r)})},t.prototype._setProxiedSrcUrlOnError=function(e){e.addEventListener("error",function(t){var r=Ya.getAttribute.call(e,Vh.getStoredAttrName("src")),n=Ya.imageSrcGetter.call(e);r&&!lc(n)&&Pe(n)&&!Ie(n)&&(Ya.setAttribute.call(e,"src",ic(r)),Ji(t))},!1)},t.prototype.getCorrectedTarget=function(e){return void 0===e&&(e=""),Yl.get().allowMultipleWindows?e:e&&!cs(e)&&!Gi(e)||/_blank/i.test(e)?"_top":e},t.prototype._handleImageLoadEventRaising=function(e){this._eventSandbox.listeners.initElementListening(e,["load"]),this._eventSandbox.listeners.addInternalEventBeforeListener(e,["load"],function(t,r,n,o,i){
  e[Ga.cachedImage]&&(e[Ga.cachedImage]=!1),e[Ga.skipNextLoadEventForImage]&&(e[Ga.skipNextLoadEventForImage]=!1,n(),i())}),e[Ga.forceProxySrcForImage]||Yl.get().forceProxySrcForImage||this._setProxiedSrcUrlOnError(e)},t.prototype._processBaseTag=function(e){if(this._isFirstBaseTagOnPage(e)){var t=Ya.getAttribute.call(e,Vh.getStoredAttrName("href"));null!==t&&Xl.updateBase(t,e.ownerDocument||this.document)}},t.prototype._reProcessElementWithTargetAttr=function(e,t){var r=qd.getTargetAttr(e);Vh.isIframeFlagTag(t)&&"_parent"===Ya.getAttribute.call(e,r)&&qd.processElement(e,cc)},t.prototype.processElement=function(e){var t=Nt(e);switch(t){case"a":this._childWindowSandbox.handleClickOnLinkOrArea(e);break;case"img":this._handleImageLoadEventRaising(e);break;case"iframe":case"frame":this._iframeSandbox.processIframe(e);break;case"base":this._processBaseTag(e);break;case"area":this._childWindowSandbox.handleClickOnLinkOrArea(e)}this._reProcessElementWithTargetAttr(e,t)},t}(rp),uf="",hf="hammerhead|document-title-storage|internal-prop-name",df=function(e){function t(t){var r=e.call(this)||this;return r._document=t,r}return m(t,e),t.prototype._ensureFirstTitleElement=function(){var e=this.getFirstTitleElement();return e?e:(e=Ya.createElement.call(this._document,"title"),Ya.appendChild.call(this._document.head,e),this.emit("titleElementAdded"),e)},t.prototype._getValueFromFirstTitleElement=function(){var e=this.getFirstTitleElement();return e?this.getTitleElementPropertyValue(e):uf},t.prototype._setValueForFirstTitleElement=function(e){var t=this._ensureFirstTitleElement();this.setTitleElementPropertyValue(t,e)},t.prototype._getTitleElement=function(e){return this._document&&this._document.head&&Ya.elementQuerySelectorAll.call(this._document.head,"title")[e]},t.prototype.getFirstTitleElement=function(){return this._getTitleElement(0)},t.prototype.getSecondTitleElement=function(){return this._getTitleElement(1)},t.prototype.getTitle=function(){return this._getValueFromFirstTitleElement()},t.prototype.setTitle=function(e){e=String(e),this._setValueForFirstTitleElement(e)},t.prototype.getTitleElementPropertyValue=function(e){return e[hf]||uf},t.prototype.setTitleElementPropertyValue=function(e,t){t=String(t),this.isElementProcessed(e)?e[hf]=t:Ya.objectDefineProperty(e,hf,{value:t,writable:!0})},t.prototype.getDocument=function(){return this._document},t.prototype.isElementProcessed=function(e){return hf in e},Object.defineProperty(t,"DEFAULT_TITLE_VALUE",{get:function(){return uf},enumerable:!0,configurable:!0}),t}(bl),ff=function(){function e(e){var t=this;this.storage=e,this.storage.on("titleElementAdded",function(){return t._processFirstTitleElement()})}return e.prototype._setProxiedTitleValue=function(){var e=Yl.get(),t=e.sessionId,r=e.windowId,n=t+"*"+r;Ya.documentTitleSetter.call(this.storage.getDocument(),n)},e.prototype._processFirstTitleElement=function(){var e=this.storage.getFirstTitleElement();if(!e)return!1;if(this.storage.isElementProcessed(e))return!1;var t=Ya.titleElementTextGetter.call(e);return this.storage.setTitleElementPropertyValue(e,t),this._setProxiedTitleValue(),!0},e.prototype.onAttach=function(){this._processFirstTitleElement()},e.prototype.onPageTitleLoaded=function(){if(!this._processFirstTitleElement()){var e=this.storage.getFirstTitleElement(),t=this.storage.getSecondTitleElement();if(t){var r=Ya.titleElementTextGetter.call(t)||Ya.htmlElementInnerTextGetter.call(t),n=Ya.titleElementTextGetter.call(e);Ya.titleElementTextSetter.call(t,n),xi(e),this.storage.setTitleElementPropertyValue(t,r)}}},e}(),mf=/\[([\w-]+)(\^?=.+?)]/g,gf=/^\W+\s*#/,vf=/\s*:focus\b/gi,yf=/:hover\b/gi,Ef=Node.DOCUMENT_FRAGMENT_NODE,Sf=function(e){function t(r,n,o,i,s,a,l){var c=e.call(this)||this;return c.mutation=r,c.iframeSandbox=n,c._eventSandbox=o,c._uploadSandbox=i,c.shadowUI=s,c._cookieSandbox=a,c._childWindowSandbox=l,c.raiseBodyCreatedEvent=c._onBodyCreated,Ya.objectDefineProperty(document,Ga.documentCharset,{value:Yr(),writable:!0}),c._documentTitleStorageInitializer=t._createDocumentTitleStorageInitializer(),c.doc=new zd(c,c.shadowUI,c._cookieSandbox,c.iframeSandbox,c._documentTitleStorageInitializer),c.win=new Em(c,c._eventSandbox,c._uploadSandbox,c.mutation,c._childWindowSandbox,c._documentTitleStorageInitializer),c.element=new pf(c,c._uploadSandbox,c.iframeSandbox,c.shadowUI,c._eventSandbox,c._childWindowSandbox),c}return m(t,e),t._createDocumentTitleStorageInitializer=function(){if(Pt(window))return null;var e=new df(document);return new ff(e)},t.prototype._onBodyCreated=function(){this._eventSandbox.listeners.initDocumentBodyListening(this.document),this.mutation.onBodyCreated(this.document.body)},t.prototype._processElement=function(e){var t=e[Ga.processedContext],r=!!e[Ga.currentBaseUrl]&&e[Ga.currentBaseUrl]!==Xl.getBaseUrl(this.document);if(r||!vr(e)&&t!==this.window){var n=null;t&&(n=qd.getUrlAttr(e),n=n&&e.hasAttribute(n)?n:null);var o=Ya.objectIsExtensible(e),i=t&&!Ya.objectIsFrozen(e);(o||i)&&Ya.objectDefineProperty(e,Ga.processedContext,{value:this.window,writable:!0}),n&&e.setAttribute(n,e.getAttribute(n)),r&&delete e[Ga.currentBaseUrl],this.element.processElement(e)}},t.prototype.onOriginFirstTitleElementInHeadLoaded=function(){this._documentTitleStorageInitializer&&this._documentTitleStorageInitializer.onPageTitleLoaded()},t.prototype.processNodes=function(e,t){if(e){if(e.querySelectorAll){e.nodeType!==Ef&&this._processElement(e);for(var r=st(e).call(e,"*"),n=Ya.nodeListLengthGetter.call(r),o=0;o<n;o++)this._processElement(r[o])}}else t=t||this.document,t.documentElement&&this.processNodes(t.documentElement)},t.prototype.attach=function(t){var r=this,n=t.document,o=!1;e.prototype.attach.call(this,t,n),this._documentTitleStorageInitializer&&this._documentTitleStorageInitializer.onAttach(),this.iframeSandbox.on(this.iframeSandbox.IFRAME_DOCUMENT_CREATED_EVENT,function(e){var t=e.iframe,n=Ya.contentWindowGetter.call(t),o=Ya.contentDocumentGetter.call(t),i=new r.nativeMethods.constructor(o,n);n[Ga.iframeNativeMethods]=i,r.doc.attach(n,o,!0)}),Ya.objectDefineProperty(t,Ga.processDomMethodName,{value:function(e,t){o||r.shadowUI.onBodyElementMutation(),r.processNodes(e,t)},configurable:!0}),n.addEventListener("DOMContentLoaded",function(){o=!0,r.processNodes(null,n)},!1),this.doc.attach(t,n),this.win.attach(t),this.element.attach(t)},t._processAttributeSelector=function(e){return mf.test(e)?e+","+e.replace(mf,function(e,t,r){return ch.indexOf(t)===-1||gf.test(r)?e:(t=Vh.getStoredAttrName(t),"["+t+r+"]")}):e},t._processPseudoClassSelectors=function(e){return pl||(e=e.replace(vf,"["+_l.focusPseudoClass+"]")),e=e.replace(yf,"["+_l.hoverPseudoClass+"]")},t.processSelector=function(e){return e&&(e=t._processPseudoClassSelectors(e),e=t._processAttributeSelector(e)),e},t}(rp),bf=Sf,_f=Object.freeze({__proto__:null,getElementRectangle:fs,shouldIgnoreEventInsideIframe:ms,getOffsetPosition:ys,offsetToClientCoords:Es}),wf=["button","fieldset","form","iframe","input","map","meta","object","output","param","select","textarea"],xf=10,Cf=0,Tf=function(){function e(){}return e}();Tf.prototype=HTMLCollection.prototype;var Af=function(e){function t(t,r){var n=e.call(this)||this;return r=r.toLowerCase(),Ya.objectDefineProperties(n,{_collection:{value:t},_filteredCollection:{value:[]},_tagName:{value:r},_version:{value:-(1/0),writable:!0},_namedProps:{value:wf.indexOf(r)!==-1?[]:null},_lastNativeLength:{value:0,writable:!0}}),n._refreshCollection(),n}return m(t,e),t.prototype.item=function(e){return this._refreshCollection(),this._filteredCollection[e]},Object.defineProperty(t.prototype,"length",{get:function(){return this._refreshCollection(),this._filteredCollection.length},enumerable:!0,configurable:!0}),t.prototype._refreshCollection=function(){var e=this._lastNativeLength,t=Ya.htmlCollectionLengthGetter.call(this._collection);if(this._lastNativeLength=t,af.isOutdated(this._tagName,this._version)||!af.isDomContentLoaded()&&e!==t){var r=this._filteredCollection.length,n=ws(this,t);this._version=af.getVersion(this._tagName),bs(this,r,this._filteredCollection.length),_s(this,this._namedProps,n)}},t}(Tf),Pf={constructor:{value:Af.constructor,configurable:!0,enumerable:!1,writable:!0},_refreshCollection:{value:Af.prototype._refreshCollection,enumerable:!1}};HTMLCollection.prototype.namedItem&&(Pf.namedItem={value:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._refreshCollection();var r=this._collection.namedItem.apply(this._collection,e);return r&&vr(r)?null:r},enumerable:!0,configurable:!0,writable:!0}),Ya.objectDefineProperties(Af.prototype,Pf),Ss(xf);var If=/fixed|relative|absolute/,Nf=/\.((?:\\.|[-\w]|[^\x00-\xa0])+)/g,Lf="hammerhead|shadow-ui|container-flag",Of="hammerhead|shadow-ui|container-collection-flag",kf="hammerhead|shadow-ui|html-collection-wrapper",Df=function(e){function t(t,r,n,o){var i=e.call(this)||this;return i._nodeMutation=t,i._messageSandbox=r,i._iframeSandbox=n,i._ieDebugSandbox=o,i.BODY_CONTENT_CHANGED_COMMAND="hammerhead|command|body-content-changed",i.ROOT_CLASS="root",i.ROOT_ID="root",i.HIDDEN_CLASS="hidden",i.BLIND_CLASS="blind",i.root=null,i.lastActiveElement=null,i.uiStyleSheetsHtmlBackup=null,i.wrapperCreators=i._createWrapperCreators(),i._initEventCallbacks(),i}return m(t,e),t.prototype._initEventCallbacks=function(){var e=this;this.runTaskScriptEventCallback=function(t){var r=Ya.contentDocumentGetter.call(t),n=r.head,o=r.body;e._restoreUIStyleSheets(n,e._getUIStyleSheetsHtml()),e.markShadowUIContainers(n,o)},this.beforeDocumentCleanedEventCallback=function(){e.uiStyleSheetsHtmlBackup=e._getUIStyleSheetsHtml()},this.documentCleanedEventCallback=function(t){e._restoreUIStyleSheets(t.document.head,e.uiStyleSheetsHtmlBackup),e.uiStyleSheetsHtmlBackup=null,e.markShadowUIContainers(e.document.head,e.document.body)},this.documentClosedEventCallback=function(t){e._restoreUIStyleSheets(t.head,e.uiStyleSheetsHtmlBackup),e.uiStyleSheetsHtmlBackup=null,e.markShadowUIContainers(t.head,t.body)},this.bodyContentChangedEventCallback=function(t){var r=t[Ga.processedContext];r!==window?e._messageSandbox.sendServiceMsg({cmd:e.BODY_CONTENT_CHANGED_COMMAND},r):e.onBodyElementMutation()},this.serviceMsgReceivedEventCallback=function(t){t.message.cmd===e.BODY_CONTENT_CHANGED_COMMAND&&e.onBodyElementMutation()},this.bodyCreatedEventCallback=function(t){return e.markShadowUIContainers(e.document.head,t)}},t._filterElement=function(e){return e&&vr(e)?null:e},t.prototype._filterList=function(e,t,r){for(var n=[],o=0;o<t;o++){var i=r(e[o]);i&&n.push(e[o])}if(pl&&e instanceof StyleSheetList)for(var s=function(e){e.id&&Ya.objectDefineProperty(n,e.id,{get:function(){return e}})},a=0,l=n;a<l.length;a++){var c=l[a];s(c)}return Ya.objectDefineProperty(n,"item",{value:function(e){return e>=n.length?null:n[e]}}),e.namedItem&&Ya.objectDefineProperty(n,"namedItem",{value:function(t){return e.namedItem(t)}}),n.length===t?e:n},t.prototype._filterNodeList=function(e,r){return this._filterList(e,r,function(e){return t._filterElement(e)})},t.prototype._filterStyleSheetList=function(e,r){return this._filterList(e,r,function(e){return t._filterElement(e.ownerNode)})},t._getFirstNonShadowElement=function(e){for(var r=Ya.nodeListLengthGetter.call(e),n=0;n<r;n++)if(t._filterElement(e[n]))return e[n];return null},t.prototype._createWrapperCreators=function(){var e=this;return{getElementsByClassName:function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=Ya[t].apply(this,r),i=Ya.htmlCollectionLengthGetter.call(o);return e._filterNodeList(o,i)}},getElementsByTagName:function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=Ya[e].apply(this,t),o=t[0];return"string"!=typeof o||!Qt(this)&&!lr(this)&&"input"!==o.toLowerCase()&&"getElementsByTagName"!==e?n:(n[kf]?n[kf]._refreshCollection():n[kf]=new Af(n,o),n[kf])}},querySelector:function(e,r){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];"string"==typeof n[0]&&(n[0]=bf.processSelector(n[0]));var i=Ya[e].apply(this,n),s=t._filterElement(i);return!i||s?s:t._getFirstNonShadowElement(Ya[r].apply(this,n))}},querySelectorAll:function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]=bf.processSelector(r[0]));var o=Ya[t].apply(this,r),i=Ya.nodeListLengthGetter.call(o);return e._filterNodeList(o,i)}}}},t.prototype._markShadowUIContainerAndCollections=function(e){var r=Ya.elementChildrenGetter.call(e);t._markAsShadowContainer(e),t.markAsShadowContainerCollection(r),t.markAsShadowContainerCollection(Ya.nodeChildNodesGetter.call(e))},t.prototype.markShadowUIContainers=function(e,t){e&&this._markShadowUIContainerAndCollections(e),t&&this._markShadowUIContainerAndCollections(t)},t.prototype._bringRootToWindowTopLeft=function(){for(var e=!1,t=Ya.nodeParentNodeGetter.call(this.root);t;){var r=je(t,"position");If.test(r)&&(e=!0),t=Ya.nodeParentNodeGetter.call(t)}if(e){var n=ys(this.root);if(0!==n.left||0!==n.top){var o=parseFloat(je(this.root,"left"))||0,i=parseFloat(je(this.root,"top"))||0,s=o-n.left+"px",a=i-n.top+"px";He(this.root,"left",s),He(this.root,"top",a)}}},t.prototype._overrideDocumentMethods=function(e,r){var n=this,o=e.Document.prototype;x(o,"elementFromPoint",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.addClass(n.getRoot(),n.HIDDEN_CLASS);var o=t._filterElement(Ya.elementFromPoint.apply(this,e));return n.removeClass(n.getRoot(),n.HIDDEN_CLASS),o}),r.caretRangeFromPoint&&x(o,"caretRangeFromPoint",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.addClass(n.getRoot(),n.HIDDEN_CLASS);var o=Ya.caretRangeFromPoint.apply(this,e);return o&&o.startContainer&&!t._filterElement(o.startContainer)&&(o=null),n.removeClass(n.getRoot(),n.HIDDEN_CLASS),o}),r.caretPositionFromPoint&&x(o,"caretPositionFromPoint",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.addClass(n.getRoot(),n.HIDDEN_CLASS);var o=Ya.caretPositionFromPoint.apply(this,e);return o&&o.offsetNode&&!t._filterElement(o.offsetNode)&&(o=null),n.removeClass(n.getRoot(),n.HIDDEN_CLASS),o}),x(o,"getElementById",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t._filterElement(Ya.getElementById.apply(this,e))}),x(o,"getElementsByName",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ya.getElementsByName.apply(this,e),o=yc?Ya.htmlCollectionLengthGetter.call(r):Ya.nodeListLengthGetter.call(r);return n._filterNodeList(r,o)}),x(o,"getElementsByClassName",this.wrapperCreators.getElementsByClassName("getElementsByClassName")),x(o,"getElementsByTagName",this.wrapperCreators.getElementsByTagName("getElementsByTagName")),x(o,"querySelector",this.wrapperCreators.querySelector("querySelector","querySelectorAll")),x(o,"querySelectorAll",this.wrapperCreators.querySelectorAll("querySelectorAll"))},t.prototype._overrideElementMethods=function(e){var t=e.Element.prototype,r=e.HTMLBodyElement.prototype,n=e.HTMLHeadElement.prototype;x(t,"getElementsByTagName",this.wrapperCreators.getElementsByTagName("elementGetElementsByTagName")),x(r,"getElementsByClassName",this.wrapperCreators.getElementsByClassName("elementGetElementsByClassName")),x(r,"querySelector",this.wrapperCreators.querySelector("elementQuerySelector","elementQuerySelectorAll")),x(r,"querySelectorAll",this.wrapperCreators.querySelectorAll("elementQuerySelectorAll")),x(n,"getElementsByClassName",r.getElementsByClassName),x(n,"querySelector",r.querySelector),x(n,"querySelectorAll",r.querySelectorAll)},t.prototype._getUIStyleSheetsHtml=function(){for(var e="link."+xl.uiStylesheet,t=this.nativeMethods.querySelectorAll.call(this.document,e),r=this.nativeMethods.nodeListLengthGetter.call(t),n="",o=0;o<r;o++)n+=Ya.elementOuterHTMLGetter.call(t[o]);return n},t.prototype._restoreUIStyleSheets=function(e,r){if(e&&r){var n=this.nativeMethods.createElement.call(this.document,"div");Ya.elementInnerHTMLSetter.call(n,r);for(var o=Ya.elementChildrenGetter.call(n),i=Ya.htmlCollectionLengthGetter.call(o),s=0;s<i;s++){var a=o[0];t.markElementAsShadow(a),this.nativeMethods.removeChild.call(n,a),this.nativeMethods.appendChild.call(e,a)}}},t.prototype._markElementsAsShadowInHead=function(e){for(var r=Ya.elementChildrenGetter.call(e),n=Ya.htmlCollectionLengthGetter.call(r),o=0;o<n;o++){var i=r[o];t.containsShadowUIClassPostfix(i)&&t.markElementAsShadow(i)}},t.prototype.getRoot=function(){var e=this;if(gl&&!t.isShadowContainer(this.document.body)&&this._markShadowUIContainerAndCollections(this.document.body),!this.root||!this.document.body.contains(this.root))if(this.root)Ya.appendChild.call(this.document.body,this.root);else{this.root=Ya.createElement.call(this.document,"div"),Ya.setAttribute.call(this.root,"id",t.patchId(this.ROOT_ID)),Ya.setAttribute.call(this.root,"contenteditable","false"),this.addClass(this.root,this.ROOT_CLASS),t.markElementAsShadow(this.root),Ya.appendChild.call(this.document.body,this.root);for(var r=Ya.documentAddEventListener||Ya.addEventListener,n=0,o=qd.EVENTS;n<o.length;n++){var i=o[n];Ya.addEventListener.call(this.root,i,Ji)}this._bringRootToWindowTopLeft(),r.call(this.document,"DOMContentLoaded",function(){e.onBodyElementMutation(),e._bringRootToWindowTopLeft()})}return this.root},t.prototype.attach=function(t){e.prototype.attach.call(this,t,t.document),this.markShadowUIContainers(this.document.head,this.document.body),this._overrideDocumentMethods(t,t.document),this._overrideElementMethods(t),t.document.head&&this._markElementsAsShadowInHead(t.document.head),this._initEvents()},t.prototype._initEvents=function(){this._iframeSandbox.on(this._iframeSandbox.RUN_TASK_SCRIPT_EVENT,this.runTaskScriptEventCallback),this._nodeMutation.on(this._nodeMutation.BEFORE_DOCUMENT_CLEANED_EVENT,this.beforeDocumentCleanedEventCallback),this._nodeMutation.on(this._nodeMutation.DOCUMENT_CLEANED_EVENT,this.documentCleanedEventCallback),this._nodeMutation.on(this._nodeMutation.DOCUMENT_CLOSED_EVENT,this.documentClosedEventCallback),this._nodeMutation.on(this._nodeMutation.BODY_CONTENT_CHANGED_EVENT,this.bodyContentChangedEventCallback),this._messageSandbox.on(this._messageSandbox.SERVICE_MSG_RECEIVED_EVENT,this.serviceMsgReceivedEventCallback),this._nodeMutation.on(this._nodeMutation.BODY_CREATED_EVENT,this.bodyCreatedEventCallback)},t.prototype.onBodyElementMutation=function(){if(this.root&&this.document.body){var e=zr(this.root,"html"),t=!this.nativeMethods.elementNextElementSiblingGetter.call(this.root),r=Ya.nodeParentNodeGetter.call(this.root)===this.document.body;e&&t&&r||this.nativeMethods.appendChild.call(this.document.body,this.root),this.markShadowUIContainers(this.document.head,this.document.body)}},t.prototype.getFirstChild=function(e){var t=Ya.nodeChildNodesGetter.call(e),r=Ya.nodeListLengthGetter.call(t),n=this._filterNodeList(t,r);return n[0]||null},t.prototype.getFirstElementChild=function(e){var t=Ya.elementChildrenGetter.call(e),r=Ya.htmlCollectionLengthGetter.call(t);return this._filterNodeList(t,r)[0]||null},t.prototype.getLastChild=function(e){var t=Ya.nodeChildNodesGetter.call(e),r=Ya.nodeListLengthGetter.call(t),n=this._filterNodeList(t,r),o=t===n?r-1:n.length-1;return o>=0?n[o]:null},t.prototype.getLastElementChild=function(e){var t=Ya.elementChildrenGetter.call(e),r=Ya.htmlCollectionLengthGetter.call(t),n=this._filterNodeList(t,r),o=t===n?r-1:n.length-1;return o>=0?n[o]:null},t.prototype.getNextSibling=function(e){if(!e)return e;do e=Ya.nodeNextSiblingGetter.call(e);while(e&&vr(e));return e},t.prototype.getPrevSibling=function(e){if(!e)return e;do e=Ya.nodePrevSiblingGetter.call(e);while(e&&vr(e));return e},t.prototype.getMutationRecordNextSibling=function(e){if(!e)return e;for(;e&&vr(e);)e=Ya.nodeNextSiblingGetter.call(e);return e},t.prototype.getMutationRecordPrevSibling=function(e){if(!e)return e;for(;e&&vr(e);)e=Ya.nodePrevSiblingGetter.call(e);return e},t.prototype.getNextElementSibling=function(e){do e=Ya.elementNextElementSiblingGetter.call(e);while(e&&vr(e));return e},t.prototype.getPrevElementSibling=function(e){do e=Ya.elementPrevElementSiblingGetter.call(e);while(e&&vr(e));return e},t._checkElementsPosition=function(e,t){if(t){for(var r=[],n=0;n<t;n++){var o=e[n];vr(o)&&r.push(o)}for(var i=r.length&&Ya.nodeParentNodeGetter.call(r[0]),s=0,a=r;s<a.length;s++){var l=a[s];Ya.appendChild.call(i,l)}}},t._hasFlag=function(e,t){try{return!!e[t]}catch(r){return!1}},t._hasCollectionFlagForIE=function(e,t){try{if(t in e)return e[t];var r=Ya.nodeParentNodeGetter.call(e[0]),n=Yt(r)||lr(r);return Ya.objectDefineProperty(e,Of,{value:n,configurable:!0}),n}catch(o){return!1}},t.isShadowContainer=function(e){return t._hasFlag(e,Lf)},t.isShadowContainerCollection=function(e,r){return pl&&r?t._hasCollectionFlagForIE(e,Of):t._hasFlag(e,Of)},t._isShadowUIChildListMutation=function(e){if(vr(e.target))return!0;for(var t=Ya.nodeListLengthGetter.call(e.removedNodes),r=0;r<t;r++)if(vr(e.removedNodes[r]))return!0;for(var n=Ya.nodeListLengthGetter.call(e.addedNodes),r=0;r<n;r++)if(vr(e.addedNodes[r]))return!0;return!1},t._isShadowUIAttributeMutation=function(e){return vr(e.target)||Mt(e.attributeName)},t._isShadowUICharacterDataMutation=function(e){return vr(e.target)},t.isShadowUIMutation=function(e){switch(e.type){case"childList":return t._isShadowUIChildListMutation(e);case"attributes":return t._isShadowUIAttributeMutation(e);case"characterData":return t._isShadowUICharacterDataMutation(e);default:return!1}},t.removeSelfRemovingScripts=function(e){for(var t=Ya.querySelectorAll.call(e,"."+xl.selfRemovingScript),r=Ya.nodeListLengthGetter.call(t),n=0;n<r;n++)xi(t[n])},t.prototype.getShadowUICollectionLength=function(e,r){for(var n=0,o=0;o<r;o++)vr(e[o])&&n++;return n&&!this._ieDebugSandbox.isDebuggerInitiator()&&t._checkElementsPosition(e,r),r-n},t.prototype.addClass=function(e,r){var n=t.patchClassNames(r);Kr(e,n)},t.prototype.removeClass=function(e,r){var n=t.patchClassNames(r);Xr(e,n)},t.hasClass=function(e,r){var n=t.patchClassNames(r);return $r(e,n)},t.patchId=function(e){return e+xl.postfix},t.patchClassNames=function(e){for(var t=e.split(/\s+/),r=0;r<t.length;r++)t[r]+=xl.postfix;return t.join(" ")},t.prototype.select=function(e,t){var r=e.replace(Nf,function(e){return e+xl.postfix});return t?Ya.elementQuerySelectorAll.call(t,r):Ya.querySelectorAll.call(this.document,r)},t.prototype.setBlind=function(e){e?this.addClass(this.getRoot(),this.BLIND_CLASS):this.removeClass(this.getRoot(),this.BLIND_CLASS)},t.prototype.getLastActiveElement=function(){return this.lastActiveElement},t.prototype.setLastActiveElement=function(e){this.lastActiveElement=e},t.prototype.insertBeforeRoot=function(e){var t=this.getRoot(),r=this.nativeMethods.nodeParentNodeGetter.call(t),n=this.nativeMethods.nodeLastChildGetter.call(r);if(n!=t&&Ya.appendChild.call(r,t),e.length>1||"object"!=typeof e[0]){for(var o=document.createDocumentFragment.call(this.document),i=0,s=e;i<s.length;i++){var a=s[i];"string"==typeof a&&(a=Ya.createTextNode.call(this.document,a)),Ya.appendChild.call(o,a)}return Ya.insertBefore.call(r,o,t)}return Ya.insertBefore.call(r,e[0],t)},t.markElementAsShadow=function(e){e[Ga.shadowUIElement]=!0},t.markFormAsShadow=function(e){var r=Ya.elementChildrenGetter.call(e);t._markAsShadowContainer(e),t.markAsShadowContainerCollection(e.elements),t.markAsShadowContainerCollection(r);var n=Ya.nodeChildNodesGetter.call(e);t.markAsShadowContainerCollection(n)},t.markElementAndChildrenAsShadow=function(e){if(t.markElementAsShadow(e),e.querySelectorAll)for(var r=st(e).call(e,"*"),n=Ya.nodeListLengthGetter.call(r),o=0;o<n;o++)t.markElementAsShadow(r[o])},t._markAsShadowContainer=function(e){Ya.objectDefineProperty(e,Lf,{value:!0})},t.markAsShadowContainerCollection=function(e){Ya.objectDefineProperty(e,Of,{value:!0,configurable:!0})},t.containsShadowUIClassPostfix=function(e){return"string"==typeof e.className&&e.className.indexOf(xl.postfix)!==-1},t}(rp),Mf=Df,Rf=[{mime:"image/x-icon",pattern:[0,0,1,0],mask:[255,255,255,255]},{mime:"image/x-icon",pattern:[0,0,2,0],mask:[255,255,255,255]},{mime:"image/bmp",pattern:[66,77],mask:[255,255]},{mime:"image/gif",pattern:[71,73,70,56,55,97],mask:[255,255,255,255,255,255]},{mime:"image/gif",pattern:[71,73,70,56,57,97],mask:[255,255,255,255,255,255]},{mime:"image/webp",pattern:[82,73,70,70,0,0,0,0,87,69,66,80,86,80],mask:[255,255,255,255,0,0,0,0,255,255,255,255,255,255]},{mime:"image/png",pattern:[137,80,78,71,13,10,26,10],mask:[255,255,255,255,255,255,255,255]},{mime:"image/jpeg",pattern:[255,216,255],mask:[255,255,255]}],jf=[{mime:"audio/basic",pattern:[46,115,110,100],mask:[255,255,255,255]},{mime:"audio/aiff",pattern:[70,79,82,77,0,0,0,0,65,73,70,70],mask:[255,255,255,255,0,0,0,0,255,255,255,255]},{mime:"audio/mpeg",pattern:[73,68,51],mask:[255,255,255]},{mime:"application/ogg",pattern:[79,103,103,83,0],mask:[255,255,255,255,255]},{mime:"audio/midi",pattern:[77,84,104,100,0,0,0,6],mask:[255,255,255,255,255,255,255,255]},{mime:"video/avi",pattern:[82,73,70,70,0,0,0,0,65,86,73,32],mask:[255,255,255,255,0,0,0,0,255,255,255,255]},{mime:"audio/wave",pattern:[82,73,70,70,0,0,0,0,87,65,86,69],mask:[255,255,255,255,0,0,0,0,255,255,255,255]}],Hf=[{mime:"application/vnd.ms-fontobject",pattern:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,80],mask:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255]},{mime:"application/octet-stream",pattern:[0,1,0,0],mask:[255,255,255,255]},{mime:"application/octet-stream",pattern:[79,84,84,79],mask:[255,255,255,255]},{mime:"application/octet-stream",pattern:[116,116,99,102],mask:[255,255,255,255]},{mime:"application/font-woff",pattern:[119,79,70,70],mask:[255,255,255,255]}],Ff=[{mime:"application/x-gzip",pattern:[31,139,8],mask:[255,255,255]},{mime:"application/zip",pattern:[80,75,3,4],mask:[255,255,255,255]},{mime:"application/x-rar-compressed",pattern:[82,97,114,32,26,7,0],mask:[255,255,255,255,255,255,255]}],Vf={getUploadedFiles:"hammerhead|command|get-uploaded-files",setCookie:"hammerhead|command|set-cookie",uploadFiles:"hammerhead|command|upload-files"},Uf=function(){function e(t){var r=this;Ya.objectDefineProperty(this,"length",{get:function(){return t.length}});for(var n=0;n<t.length;n++)this[n]=e._createFileWrapper(t[n]);this.item=function(e){return r[e]}}return e._base64ToBlob=function(e,t,r){var n=t.info.type||"";r=r||512;for(var o=atob(e),i=[],s=0;s<o.length;s+=r){for(var a=o.slice(s,s+r),l=new Array(a.length),c=0;c<a.length;c++)l[c]=a.charCodeAt(c);i.push(new Uint8Array(l))}return Ya.File?new File(i,t.info.name,{type:n,lastModified:t.info.lastModified}):new Blob(i,{type:n})},e._createFileWrapper=function(t){var r=null;return r=window.Blob?t.blob?Ya.File?new File([t.blob],t.info.name,{type:t.info.type,lastModified:t.info.lastModified}):new Blob([t.blob],{type:t.info.type}):e._base64ToBlob(t.data,t):{size:t.info.size,type:t.info.type},r.name=t.info.name,t.info.lastModifiedDate&&(r.lastModifiedDate=t.info.lastModifiedDate),r.base64=t.data,r},e}();window.FileList&&(Uf.prototype=FileList.prototype);var Bf,Gf="C:\\fakepath\\",Wf=function(){function e(e){this._transport=e,this.uploadInfo=[]}return e._getFileListData=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var o=n[r];t.push(o.base64)}return t},e.formatValue=function(e){var t="";if(e="string"==typeof e?[e]:e,e&&e.length){if(!yl)return e[0].split("/").pop();t=Gf+e[0].split("/").pop()}return t},e.getFileNames=function(e,t){var r=[];if(e)for(var n=0,o=e;n<o.length;n++){var i=o[n];r.push(i.name)}else t.lastIndexOf("\\")!==-1&&r.push(t.substr(t.lastIndexOf("\\")+1));return r},e.prototype.loadFilesInfoFromServer=function(e){return this._transport.asyncServiceMsg({cmd:Vf.getUploadedFiles,filePaths:"string"==typeof e?[e]:e})},e.prepareFileListWrapper=function(e){for(var t=[],r=[],n=0,o=e;n<o.length;n++){var i=o[n];i.err?t.push(i):r.push(i)}return{errs:t,fileList:new Uf(r)}},e.prototype.sendFilesInfoToServer=function(t,r){return this._transport.asyncServiceMsg({cmd:Vf.uploadFiles,data:e._getFileListData(t),fileNames:r})},e.prototype.clearUploadInfo=function(e){var t=this.getUploadInfo(e);return t?(t.files=new Uf([]),t.value="",Yi(e)):null},e.prototype.getFiles=function(e){var t=this.getUploadInfo(e);return t?t.files:new Uf([])},e.prototype.getUploadInfo=function(e){for(var t=0,r=this.uploadInfo;t<r.length;t++){var n=r[t];if(n.input===e)return n}return null},e.prototype.getValue=function(e){var t=this.getUploadInfo(e);return t?t.value:""},e.prototype.loadFileListData=function(e,t){return t.length?new Ua(function(e){var r=new FileReader,n=[],o=0,i=t[o];r.addEventListener("load",function(s){var a={type:i.type,name:i.name};"number"==typeof i.lastModified&&(a.lastModified=i.lastModified),i.lastModifiedDate&&(a.lastModifiedDate=i.lastModifiedDate);var l=Ya.eventTargetGetter.call(s).result;n.push({data:l.substr(l.indexOf(",")+1),blob:i.slice(0,i.size),info:a}),t[++o]?(i=t[o],r.readAsDataURL(i)):e(new Uf(n))}),r.readAsDataURL(i)}):Ua.resolve(new Uf([]))},e.prototype.setUploadInfo=function(e,t,r){var n=this.getUploadInfo(e);n||(n={input:e},this.uploadInfo.push(n)),n.files=t,n.value=r,Ki(e,t,r)},e}(),qf="hammerhead|sandbox-backup",zf=Object.freeze({__proto__:null,create:Is,get:Ns}),Kf=function(e){function t(t,r,n){var o=e.call(this)||this;return o._listeners=t,o._eventSimulator=r,o.START_FILE_UPLOADING_EVENT="hammerhead|event|start-file-uploading",o.END_FILE_UPLOADING_EVENT="hammerhead|event|end-file-uploading",o.infoManager=new Wf(n),o}return m(t,e),t.prototype._riseChangeEvent=function(e){this._eventSimulator.change(e)},t._getCurrentInfoManager=function(e){var t=e[Ga.processedContext];return Ns(t).upload.infoManager},t.prototype.attach=function(r){var n=this;e.prototype.attach.call(this,r),this._listeners.addInternalEventBeforeListener(r,["change"],function(e,r){var o=Ya.eventTargetGetter.call(e),i=t._getCurrentInfoManager(o);if(!r&&cr(o)){Ji(e),Qi(e);var s=Ya.inputValueGetter.call(o);if(s||i.getValue(o)){var a=Ya.inputFilesGetter.call(o),l=Wf.getFileNames(a,s);n.emit(n.START_FILE_UPLOADING_EVENT,l,o),i.loadFileListData(o,a).then(function(e){return i.setUploadInfo(o,e,s),n.infoManager.sendFilesInfoToServer(e,l)}).then(function(e){n._riseChangeEvent(o),n.emit(n.END_FILE_UPLOADING_EVENT,e)})}}}),Yl.get().isRecordMode||!pl&&!fl||this._listeners.addInternalEventBeforeListener(r,["click"],function(e,t){t&&cr(Ya.eventTargetGetter.call(e))&&Qi(e,!0)})},t.getFiles=function(e){var r=Ya.inputFilesGetter.call(e);return void 0!==r?t._getCurrentInfoManager(e).getFiles(e):void 0},t.getUploadElementValue=function(e){return t._getCurrentInfoManager(e).getValue(e)},t.prototype.setUploadElementValue=function(e,r){""===r&&t._getCurrentInfoManager(e).clearUploadInfo(e)&&ul&&this._riseChangeEvent(e)},t._shouldRaiseChangeEvent=function(e,t){if(!t)return!0;var r=t.files;if(e.length!==r.length||fl||rl&&gl||vl)return!0;for(var n=0,o=e;n<o.length;n++){for(var i=o[n],s=!1,a=0,l=r;a<l.length;a++){var c=l[a];if(i.name===c.name){s=!0;break}}if(s===!1)return!0}return!1},t.prototype.doUpload=function(e,r){var n=this,o=t._getCurrentInfoManager(e);return r=r||[],this.infoManager.loadFilesInfoFromServer(r).then(function(e){return Wf.prepareFileListWrapper(e)}).then(function(i){if(!i.errs.length){var s=Wf.formatValue(r),a=o.getUploadInfo(e),l=t._shouldRaiseChangeEvent(i.fileList,a);o.setUploadInfo(e,i.fileList,s),l&&n._riseChangeEvent(e)}return i.errs})},t}(rp),Xf=Ya.createElement.call(document,"a"),$f=Ya.createElement.call(document,"a"),Yf="hammerhead|element-listening-events-storage-prop",Qf=Object.freeze({__proto__:null,getElementCtx:Ms,getEventCtx:Rs,isElementListening:js,addListeningElement:Hs,removeListeningElement:Fs,addInternalAfterHandler:Vs,addFirstInternalBeforeHandler:Us,addInternalBeforeHandler:Bs,removeInternalBeforeHandler:Gs,wrapEventListener:Ws,getWrapper:qs,updateInternalAfterHandlers:zs}),Jf=["click","mousedown","mouseup","dblclick","contextmenu","mousemove","mouseover","mouseout","pointerdown","pointermove","pointerover","pointerout","pointerup","MSPointerDown","MSPointerMove","MSPointerOver","MSPointerOut","MSPointerUp","touchstart","touchmove","touchend","keydown","keypress","keyup","change","focus","blur","focusin","focusout"],Zf="hammerhead|event-sandbox-dispatch-event-flag",em=function(e){
  function t(){var t=e.call(this)||this;return t.EVENT_LISTENER_ATTACHED_EVENT="hammerhead|event|event-listener-attached",t.EVENT_LISTENER_DETACHED_EVENT="hammerhead|event|event-listener-detached",t.listeningCtx=Qf,t.addInternalEventBeforeListener=t.listeningCtx.addInternalBeforeHandler,t.addFirstInternalEventBeforeListener=t.listeningCtx.addFirstInternalBeforeHandler,t.addInternalEventAfterListener=t.listeningCtx.addInternalAfterHandler,t.removeInternalEventBeforeListener=t.listeningCtx.removeInternalBeforeHandler,t}return m(t,e),t.getNativeAddEventListener=function(e){return ul?yr(e)?Ya.windowAddEventListener:void 0!==e.body?Ya.documentAddEventListener:Ya.addEventListener:Ya.addEventListener},t.getNativeRemoveEventListener=function(e){return ul?yr(e)?Ya.windowRemoveEventListener:void 0!==e.body?Ya.documentRemoveEventListener:Ya.removeEventListener:Ya.removeEventListener},t._isIEServiceHandler=function(e){return"[object FunctionWrapper]"===e.toString()},t._getEventListenerWrapper=function(e,r){return function(n){return t._isIEServiceHandler(r)||e.cancelOuterHandlers?null:"function"==typeof e.outerHandlersWrapper?e.outerHandlersWrapper.call(this,n,r):ts(this,r,n)}},t._isDifferentHandler=function(e,t,r){for(var n=0,o=e;n<o.length;n++){var i=o[n];if(i.fn===t&&i.useCapture===r)return!1}return!0},t._getUseCaptureParam=function(e){return e&&"boolean"==typeof e?e:!(!e||"object"!=typeof e)&&!!e.capture},t.prototype._createEventHandler=function(){var e=this;return function(t){var r=this,n=r[Ga.processedContext]||window,o=!1,i=!1,s=!1,a=e.listeningCtx.getEventCtx(r,t.type);if(a){var l=a.internalBeforeHandlers;a.cancelOuterHandlers=!1;for(var c=function(e){o=!0,Qi(t,e)},p=function(){i||(a.cancelOuterHandlers=!0),i=!0},u=function(){s=!0,Ji(t)},h=Ya.arraySlice.call(l),d=0,f=h;d<f.length;d++){var m=f[d];if(m.call(r,t,n[Zf],c,p,u),o||s)break}}}},t.prototype.createOverriddenMethods=function(){var e=this;return{addEventListener:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r[0],i=r[1],s=this,a=t._getUseCaptureParam(r[2]),l=Rs(s,o),c=t.getNativeAddEventListener(s);if(!l||!es(i))return c.apply(s,r);var p=t._isDifferentHandler(l.outerHandlers,i,a);if(!p)return null;var u=t._getEventListenerWrapper(l,i);r[1]=u,Ws(l,i,u,a);var h=c.apply(s,r);return zs(s,o),e.emit(e.EVENT_LISTENER_ATTACHED_EVENT,{el:s,eventType:o,listener:i}),h},removeEventListener:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r[0],i=r[1],s=this,a=t._getUseCaptureParam(r[2]),l=t.getNativeRemoveEventListener(s),c=Rs(s,o);if(!c||!es(i))return l.apply(s,r);var p=qs(c,i,a);r[1]=p;var u=l.apply(s,r);return e.emit(e.EVENT_LISTENER_DETACHED_EVENT,{el:s,listener:i,eventType:o}),u}}},t.prototype.initElementListening=function(e,r){void 0===r&&(r=Jf);for(var n=t.getNativeAddEventListener(e),o=0,i=r;o<i.length;o++){var s=i[o];this.listeningCtx.getEventCtx(e,s)||n.call(e,s,this._createEventHandler(),!0)}if(this.listeningCtx.addListeningElement(e,r),ul){var a=this.createOverriddenMethods();e.addEventListener?w(e.addEventListener)&&(x(e,"addEventListener",a.addEventListener),x(e,"removeEventListener",a.removeEventListener)):(e.addEventListener=a.addEventListener,e.removeEventListener=a.removeEventListener,_(e.addEventListener,Ya.addEventListener),_(e.removeEventListener,Ya.removeEventListener))}},t.prototype.initDocumentBodyListening=function(e){if(Hs(e.body,Zd),ul){var t=this.createOverriddenMethods();x(e.body,"addEventListener",t.addEventListener),x(e.body,"removeEventListener",t.removeEventListener)}},t.prototype.restartElementListening=function(e){var r=t.getNativeAddEventListener(e),n=this.listeningCtx.getElementCtx(e);if(n)for(var o=Ya.objectKeys(n),i=0,s=o;i<s.length;i++){var a=s[i];r.call(e,a,this._createEventHandler(),!0)}},t.prototype.cancelElementListening=function(e){this.listeningCtx.removeListeningElement(e),e.body&&this.listeningCtx.removeListeningElement(e.body)},t.beforeDispatchEvent=function(e){var t=e[Ga.processedContext]||window;t[Zf]=(t[Zf]||0)+1},t.afterDispatchEvent=function(e){var t=e[Ga.processedContext]||window;t[Zf]--,t[Zf]||delete t[Zf]},t.prototype.setEventListenerWrapper=function(e,t,r){this.listeningCtx.isElementListening(e)||this.initElementListening(e,t);for(var n=0,o=t;n<o.length;n++){var i=o[n],s=this.listeningCtx.getEventCtx(e,i);s.outerHandlersWrapper=r}},t.prototype.getEventListeners=function(e,t){var r=this.listeningCtx.getEventCtx(e,t);return r?Ya.arrayMap.call(r.outerHandlers,function(e){return e.fn}):null},t}(bl);!function(e){e.form="_self",e.linkOrArea="_self",e.windowOpen="_blank"}(Bf||(Bf={}));var tm=Bf,rm="hammerhead|set-service-worker-settings",nm="hammerhead|set-blob-worker-settings",om=function(){for(var e=[],t=Ya.objectKeys(Ep),r=0,n=t;r<n.length;r++){var o=n[r];e.push(Ep[o])}return e}(),im=/^http/i,sm=["https:","wss:","file:"],am=["localhost","127.0.0.1"],lm=["text/javascript","application/javascript","application/x-javascript"],cm="hammerhead|context-svg-image-element",pm="hammerhead|sandbox-dom-token-list",um="hammerhead|sandbox-dom-token-list-owner",hm="hammerhead|sandbox-dom-token-list-update",dm="hammerhead|is-proxy-object|internal-prop-name",fm="hammerhead|is-proxy-object|internal-prop-value",mm="hammerhead|proxy-handler-flag",gm="No stack trace available",vm="Error",ym=["error","unhandledrejection","hashchange"],Em=function(e){function t(t,r,n,o,i,s){var a=e.call(this)||this;return a._childWindowSandbox=i,a._documentTitleStorageInitializer=s,a.UNCAUGHT_JS_ERROR_EVENT="hammerhead|event|uncaught-js-error",a.UNHANDLED_REJECTION_EVENT="hammerhead|event|unhandled-rejection",a.HASH_CHANGE_EVENT="hammerhead|event|hashchange-event",a.nodeSandbox=t,a.messageSandbox=r.message,a.listenersSandbox=r.listeners,a.elementEditingWatcher=r.elementEditingWatcher,a.eventSimulator=r.eventSimulator,a.uploadSandbox=n,a.shadowUI=t.shadowUI,a.nodeMutation=o,a.SANDBOX_DOM_TOKEN_LIST_UPDATE_FN=hm,a}return m(t,e),t._prepareStack=function(e,t){return t&&t.indexOf(e)!==-1?t:(t=t||"    "+gm,e+"\n"+t)},t._isProcessableBlobParts=function(e){for(var t=!1,r=0,n=e;r<n.length;r++){var o=n[r];if(t||"string"!=typeof o){if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)return!1}else t=!0}return t},t._isProcessableBlob=function(e,r){var n=r&&r.type&&r.type.toString().toLowerCase()||As(e);return(!n||lm.indexOf(n)!==-1)&&t._isProcessableBlobParts(e)},t.prototype._getWindowOpenTarget=function(e){return e?this.nodeSandbox.element.getCorrectedTarget(String(e)):Yl.get().allowMultipleWindows?tm.windowOpen:"_self"},t.prototype._raiseUncaughtJsErrorEvent=function(e,r,n){if(!At(n,n.top)){var o=Pt(n),i=Jl(),s=null,a=null;e===this.UNHANDLED_REJECTION_EVENT?(s=t._formatUnhandledRejectionReason(r.reason),a=r.reason&&r.reason.stack):e===this.UNCAUGHT_JS_ERROR_EVENT&&(s=r.error?r.error.message:r.message,a=r.error&&r.error.stack),a=t._prepareStack(s,a),a=Fo(a),o?(this.emit(e,{msg:s,pageUrl:i,stack:a,inIframe:!0}),this.messageSandbox.sendServiceMsg({msg:s,pageUrl:i,stack:a,cmd:e},n.top)):this.emit(e,{msg:s,pageUrl:i,stack:a})}},t.prototype._reattachHandler=function(e,t){var r=em.getNativeAddEventListener(e),n=em.getNativeRemoveEventListener(e);n.call(e,t,this),r.call(e,t,this)},t._formatUnhandledRejectionReason=function(e){if(!_i(e)){if(e instanceof Ya.Error){var t=e.name||vm;return t+": "+e.message}return Ya.objectToString.call(e)}return String(e)},t._getUrlAttr=function(e,t){var r=Ya.getAttribute.call(e,t),n=e.ownerDocument||document;return""===r||null===r&&"action"===t&&uc?Xl.resolve("",n):null===r?"":Ml.test(r)?Xl.resolve(r,n):Y(r)?ac(r):Xl.resolve(r,n)},t._removeProcessingInstructions=function(e){return e?(e=ti(e),wh.cleanUp(e,lc)):e},t._processTextPropValue=function(e,t){var r=null!==t&&void 0!==t?String(t):t;if(r){if(Zt(e))return vi(r,!0,!1,cc);if(er(e))return wh.process(r,ic,!0)}return r},t.prototype._overrideUrlAttrDescriptors=function(e,r){for(var n=this,o=0,i=r;o<i.length;o++){var s=i[o];E(s.prototype,e,{getter:function(){return t._getUrlAttr(this,e)},setter:function(t){n.nodeSandbox.element.setAttributeCore(this,[e,t])}})}},t.prototype._overrideAttrDescriptors=function(e,t){for(var r=this,n=0,o=t;n<o.length;n++){var i=o[n];E(i.prototype,e,{getter:function(){return r.nodeSandbox.element.getAttributeCore(this,[e])||""},setter:function(t){r.nodeSandbox.element.setAttributeCore(this,[e,t])}})}},t.prototype._overrideUrlPropDescriptor=function(e,t,r){E(window.HTMLAnchorElement.prototype,e,{getter:function(){return Ls(this,t)},setter:function(e){Os(this,r,e)}})},t.prototype._overrideEventPropDescriptor=function(e,t,r){var n=this,o=Ya.isEventPropsLocatedInProto?e.Window.prototype:e;E(o,"on"+t,{getter:null,setter:function(o){r.call(e,o),n.listenersSandbox.emit(n.listenersSandbox.EVENT_LISTENER_ATTACHED_EVENT,{el:e,listener:o,eventType:t})}})},t.prototype._createOverriddenDOMTokenListMethod=function(e){var t=this;return function(){var r=e.apply(this,arguments),n=this[um];return n&&t.nodeSandbox.element.setAttributeCore(n,["sandbox",this.toString()]),r}},t._patchFunctionPrototype=function(e,t){if(t&&"function"!=typeof t){var r=Ya.objectGetPrototypeOf(t);if(r){for(var n=Ya.objectGetPrototypeOf(r);n&&n!==Ya.Function.prototype;)n=Ya.objectGetPrototypeOf(n);n&&Ya.objectSetPrototypeOf(e,r)}}},t._isSecureOrigin=function(e){var t=_e(ac(e));return sm.indexOf(t.protocol)===-1&&am.indexOf(t.hostname)===-1},t.prototype._setSandboxedTextForTitleElements=function(e){if(!Pt(window))for(var t=st(e).call(e,"title"),r=0,n=t;r<n.length;r++){var o=n[r];if(Bt(o)){var i=Ya.titleElementTextGetter.call(o);this._documentTitleStorageInitializer.storage.setTitleElementPropertyValue(o,i)}}},t.isProxyObject=function(e){try{return e[dm]===fm}catch(t){return!1}},t.prototype.handleEvent=function(e){e.defaultPrevented||("unhandledrejection"===e.type?this._raiseUncaughtJsErrorEvent(this.UNHANDLED_REJECTION_EVENT,e,this.window):"error"===e.type?e.message.indexOf("NS_ERROR_NOT_INITIALIZED")!==-1?e.preventDefault():this._raiseUncaughtJsErrorEvent(this.UNCAUGHT_JS_ERROR_EVENT,e,window):"hashchange"===e.type&&this.emit(this.HASH_CHANGE_EVENT))},t.prototype.attach=function(r){var n=this;e.prototype.attach.call(this,r);var o=this.messageSandbox,i=this.nodeSandbox,s=this;if(Ya.arrayForEach.call(ym,function(e){n._reattachHandler(r,e)}),this.listenersSandbox.initElementListening(r,ym),this.listenersSandbox.on(this.listenersSandbox.EVENT_LISTENER_ATTACHED_EVENT,function(e){e.el===r&&ym.indexOf(e.eventType)!==-1&&n._reattachHandler(r,e.eventType)}),this._overrideEventPropDescriptor(r,"error",Ya.winOnErrorSetter),this._overrideEventPropDescriptor(r,"hashchange",Ya.winOnHashChangeSetter),Ya.winOnUnhandledRejectionSetter&&this._overrideEventPropDescriptor(r,"unhandledrejection",Ya.winOnUnhandledRejectionSetter),o.on(o.SERVICE_MSG_RECEIVED_EVENT,function(e){var t=e.message,r=t.msg,o=t.pageUrl,i=t.stack,a=t.cmd;a!==n.UNCAUGHT_JS_ERROR_EVENT&&a!==n.UNHANDLED_REJECTION_EVENT||s.emit(a,{msg:r,pageUrl:o,stack:i})}),x(r.CanvasRenderingContext2D.prototype,"drawImage",function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=t[0];if(Vt(o)&&!o[Ga.forceProxySrcForImage]){var i=Ya.imageSrcGetter.call(o);oe(location.toString(),i)&&(o=Ya.createElement.call(r.document,"img"),Ya.imageSrcSetter.call(o,ic(i)),t[0]=o,o.complete||Ya.addEventListener.call(o,"load",function(){return Ya.canvasContextDrawImage.apply(e,t)}))}return Ya.canvasContextDrawImage.apply(this,t)}),Ya.objectAssign&&x(r.Object,"assign",function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=[e],i=typeof e;if(e&&("object"===i||"function"===i)&&t.length)for(var s=0,a=t;s<a.length;s++){var l=a[s],c=typeof l;if(!l||"object"!==c&&"function"!==c)Ya.objectAssign.call(this,e,l);else for(var p=Ya.objectGetOwnPropertySymbols.call(r.Object,l),u=Ya.arrayConcat.call(Ya.objectKeys.call(r.Object,l),p),h=0,d=u;h<d.length;h++){var f=d[h];r[Ep.setProperty](e,f,l[f])}}else o=Ya.arrayConcat.call(o,t);return Ya.objectAssign.apply(this,o)}),x(r,"open",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[0]=ic(e[0]),e[1]=s._getWindowOpenTarget(e[1]),s._childWindowSandbox.handleWindowOpen(r,e)}),r.FontFace&&C(r,"FontFace",function(e,t,r){return t=wh.process(t,cc),new Ya.FontFace(e,t,r)}),r.Worker&&C(r,"Worker",function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=xs(this,c);if(0===arguments.length)return r?Ya.Worker():new Ya.Worker;if(r)return Ya.Worker.apply(this,e);var n=e[0];"string"!=typeof n&&(n=String(n)),n=ic(n,{resourceType:Le({isScript:!0})});var o=1===arguments.length?new Ya.Worker(n):new Ya.Worker(n,e[1]);return"blob:"==_e(n).protocol&&o.postMessage({cmd:nm,sessionId:Yl.get().sessionId,windowId:Yl.get().windowId,origin:he()}),o},!0),r.Blob&&C(r,"Blob",function(e,r){return 0===arguments.length?new Ya.Blob:(t._isProcessableBlob(e,r)&&(e=[vi(e.join(""),!0,!1,cc)]),1===arguments.length?new Ya.Blob(e):new Ya.Blob(e,r))}),Ya.File&&C(r,"File",function(e,r,n){return 0===arguments.length?new Ya.File:(t._isProcessableBlob(e,n)&&(e=[vi(e.join(""),!0,!1,cc)]),new Ya.File(e,r,n))}),r.EventSource&&(C(r,"EventSource",function(e,t){if(arguments.length){var r=ic(e,{resourceType:Le({isEventSource:!0})});return 1===arguments.length?new Ya.EventSource(r):new Ya.EventSource(r,t)}return new Ya.EventSource}),r.EventSource.CONNECTING=Ya.EventSource.CONNECTING,r.EventSource.OPEN=Ya.EventSource.OPEN,r.EventSource.CLOSED=Ya.EventSource.CLOSED),r.MutationObserver&&(C(r,"MutationObserver",function(e){var t=function(t){for(var r=[],n=0,o=t;n<o.length;n++){var i=o[n];Mf.isShadowUIMutation(i)||r.push(i)}r.length&&e.call(this,r,this)};return new Ya.MutationObserver(t)}),r.WebKitMutationObserver&&(r.WebKitMutationObserver=r.MutationObserver)),r.Proxy&&(C(r,"Proxy",function(e,t){if(t.get&&!t.get[mm]){var n=t.get;t.get=function(e,t,o){if(t===dm)return fm;if(om.indexOf(t)>-1)return r[t];var i=n.call(this,e,t,o);return"eval"===t&&i[_m.WRAPPED_EVAL_FN]?i[_m.WRAPPED_EVAL_FN]:i},Ya.objectDefineProperty(t.get,mm,{value:!0,enumerable:!1})}return new Ya.Proxy(e,t)}),r.Proxy.revocable=Ya.Proxy.revocable),Ya.registerServiceWorker&&x(r.navigator.serviceWorker,"register",function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=e[0],i=e[1];if("string"==typeof o){if(t._isSecureOrigin(o))return Ua.reject(nl||ml&&al>=17?new Error("Only secure origins are allowed."):new DOMException("Only secure origins are allowed.","SecurityError"));e[0]=ic(o,{resourceType:Le({isServiceWorker:!0})})}return e[1]={scope:"/"},Ya.registerServiceWorker.apply(r.navigator.serviceWorker,e).then(function(t){return new Ua(function(r,n){var s=lc(e[0]),a=t.installing;if(!a)return void r(t);var l=new Ya.MessageChannel;a.postMessage({cmd:rm,currentScope:De(o),optsScope:De(i&&i.scope),protocol:s.destResourceInfo.protocol,host:s.destResourceInfo.host},[l.port1]),l.port2.onmessage=function(e){var o=Ya.messageEventDataGetter.call(e);o.error?n(new Error(o.error)):r(t)}})})}),Ya.getRegistrationServiceWorker&&x(r.navigator.serviceWorker,"getRegistration",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"string"==typeof e[0]&&(e[0]="/"),Ya.getRegistrationServiceWorker.apply(r.navigator.serviceWorker,e)}),r.Range.prototype.createContextualFragment&&x(r.Range.prototype,"createContextualFragment",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0];"string"==typeof r&&(e[0]=Ri(r,{processedContext:this.startContainer&&this.startContainer[Ga.processedContext]}));var n=Ya.createContextualFragment.apply(this,e);return i.processNodes(n),n}),r.EventTarget){var a=this.listenersSandbox.createOverriddenMethods();x(r.EventTarget.prototype,"addEventListener",a.addEventListener),x(r.EventTarget.prototype,"removeEventListener",a.removeEventListener)}if(C(r,"Image",function(){var e=null;return e=arguments.length?1===arguments.length?new Ya.Image(arguments[0]):new Ya.Image(arguments[0],arguments[1]):new Ya.Image,e[Ga.forceProxySrcForImage]=!0,i.processNodes(e),e}),C(r,"Function",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e.length-1;"string"==typeof e[n]&&(e[n]=vi(e[n],!1,!1,cc));var o=Ya.Function.apply(this,e);return t._patchFunctionPrototype(o,this),o},!0),x(Ya.Function.prototype,"toString",function(){return Ya.objectHasOwnProperty.call(this,Ga.nativeStrRepresentation)?this[Ga.nativeStrRepresentation]:Ya.functionToString.call(this)}),"function"==typeof r.history.pushState&&"function"==typeof r.history.replaceState){var l=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t[2];return t.length>2&&null!==n&&(pl||void 0!==n)&&(t[2]=ic(n)),e.apply(this,t)}};x(r.history,"pushState",l(Ya.historyPushState)),x(r.history,"replaceState",l(Ya.historyReplaceState))}Ya.sendBeacon&&x(r.Navigator.prototype,"sendBeacon",function(){return"string"==typeof arguments[0]&&(arguments[0]=ic(arguments[0])),Ya.sendBeacon.apply(this,arguments)}),r.navigator.registerProtocolHandler&&x(r.navigator,"registerProtocolHandler",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=1;if("string"==typeof e[r]){var n=ue().hostname,o=!1;if(fl){var i=_e(e[r]);o=i.hostname&&n===i.hostname}else o=oe(Jl(),e[r]);o&&(e[r]=ic(e[r]))}return Ya.registerProtocolHandler.apply(navigator,e)}),r.FormData&&x(r.FormData.prototype,"append",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],n=e[1];r!==_l.uploadInfoHiddenInputName&&(2===e.length&&Sr(n)&&"name"in n&&(e[2]=n.name),Ya.formDataAppend.apply(this,e))}),r.WebSocket&&(C(r,"WebSocket",function(e,t){if(0===arguments.length)return new Ya.WebSocket;var r=ic(e,{resourceType:Le({isWebSocket:!0})});return 1===arguments.length?new Ya.WebSocket(r):2===arguments.length?new Ya.WebSocket(r,t):new Ya.WebSocket(r,t,arguments[2])}),r.WebSocket.CONNECTING=Ya.WebSocket.CONNECTING,r.WebSocket.OPEN=Ya.WebSocket.OPEN,r.WebSocket.CLOSING=Ya.WebSocket.CLOSING,r.WebSocket.CLOSED=Ya.WebSocket.CLOSED,Ya.webSocketUrlGetter&&E(r.WebSocket.prototype,"url",{getter:function(){var e=Ya.webSocketUrlGetter.call(this),t=lc(e);return t&&t.destUrl?t.destUrl.replace(im,"ws"):e}})),E(r.MessageEvent.prototype,"origin",{getter:function(){var e=Ya.eventTargetGetter.call(this),t=Ya.messageEventOriginGetter.call(this);if(Fr(e)){var r=_e(e.url);if(r)return r.protocol+"//"+r.host}else if(yr(e)){var n=Ya.messageEventDataGetter.call(this);if(n)return n.originUrl}return t}}),E(r.HTMLCollection.prototype,"length",{getter:function(){var e=Ya.htmlCollectionLengthGetter.call(this);return Mf.isShadowContainerCollection(this,e)?s.shadowUI.getShadowUICollectionLength(this,e):e}}),E(r.NodeList.prototype,"length",{getter:function(){var e=Ya.nodeListLengthGetter.call(this);return Mf.isShadowContainerCollection(this)?s.shadowUI.getShadowUICollectionLength(this,e):e}}),E(r.Element.prototype,"childElementCount",{getter:function(){if(Mf.isShadowContainer(this)){var e=Ya.elementChildrenGetter.call(this),t=Ya.htmlCollectionLengthGetter.call(e);return s.shadowUI.getShadowUICollectionLength(e,t)}return Ya.elementChildElementCountGetter.call(this)}}),Ya.performanceEntryNameGetter&&E(r.PerformanceEntry.prototype,"name",{getter:function(){var e=Ya.performanceEntryNameGetter.call(this);if(Ur(this)){var t=lc(e);if(t)return t.destUrl}return e}}),E(r.HTMLInputElement.prototype,"files",{getter:function(){return"file"===this.type.toLowerCase()?Kf.getFiles(this):Ya.inputFilesGetter.call(this)}}),E(r.HTMLInputElement.prototype,"value",{getter:function(){return"file"===this.type.toLowerCase()?Kf.getUploadElementValue(this):Ya.inputValueGetter.call(this)},setter:function(e){if("file"===this.type.toLowerCase())return s.uploadSandbox.setUploadElementValue(this,e);Ya.inputValueSetter.call(this,e);var t=e!==Ya.inputValueGetter.call(this);t&&!vr(this)&&Ir(this)&&s.elementEditingWatcher.restartWatchingElementEditing(this)}}),gl&&E(r.HTMLInputElement.prototype,"disabled",{getter:null,setter:function(e){if(Ya.documentActiveElementGetter.call(document)===this){var t=s.elementEditingWatcher.getElementSavedValue(this),r=Ya.inputValueGetter.call(this);s.elementEditingWatcher.isEditingObserved(this)&&r!==t&&s.eventSimulator.change(this),s.elementEditingWatcher.stopWatching(this)}Ya.inputDisabledSetter.call(this,e)}}),E(r.HTMLInputElement.prototype,"required",{getter:function(){return null!==s.nodeSandbox.element.getAttributeCore(this,["required"])},setter:function(e){"file"!==this.type.toLowerCase()?Ya.inputRequiredSetter.call(this,e):e?s.nodeSandbox.element.setAttributeCore(this,["required",""]):s.nodeSandbox.element.removeAttributeCore(this,["required"])}}),E(r.HTMLTextAreaElement.prototype,"value",{getter:null,setter:function(e){Ya.textAreaValueSetter.call(this,e),!vr(this)&&Ir(this)&&s.elementEditingWatcher.restartWatchingElementEditing(this)}}),this._overrideUrlAttrDescriptors("data",[r.HTMLObjectElement]),this._overrideUrlAttrDescriptors("src",[r.HTMLImageElement,r.HTMLScriptElement,r.HTMLEmbedElement,r.HTMLSourceElement,r.HTMLMediaElement,r.HTMLInputElement,r.HTMLFrameElement,r.HTMLIFrameElement]),this._overrideUrlAttrDescriptors("action",[r.HTMLFormElement]),this._overrideUrlAttrDescriptors("formAction",[r.HTMLInputElement,r.HTMLButtonElement]),this._overrideUrlAttrDescriptors("href",[r.HTMLAnchorElement,r.HTMLLinkElement,r.HTMLAreaElement,r.HTMLBaseElement]),Ya.htmlManifestGetter&&this._overrideUrlAttrDescriptors("manifest",[r.HTMLHtmlElement]),this._overrideAttrDescriptors("target",[r.HTMLAnchorElement,r.HTMLFormElement,r.HTMLAreaElement,r.HTMLBaseElement]),this._overrideAttrDescriptors("formTarget",[r.HTMLInputElement,r.HTMLButtonElement]),this._overrideAttrDescriptors("autocomplete",[r.HTMLInputElement]),this._overrideAttrDescriptors("httpEquiv",[r.HTMLMetaElement]),Ya.scriptIntegrityGetter&&Ya.linkIntegrityGetter&&(this._overrideAttrDescriptors("integrity",[r.HTMLScriptElement]),this._overrideAttrDescriptors("integrity",[r.HTMLLinkElement])),this._overrideAttrDescriptors("rel",[r.HTMLLinkElement]),Ya.linkAsSetter&&this._overrideAttrDescriptors("as",[r.HTMLLinkElement]),E(r.HTMLInputElement.prototype,"type",{getter:null,setter:function(e){s.nodeSandbox.element.setAttributeCore(this,["type",e])}}),E(r.HTMLIFrameElement.prototype,"sandbox",{getter:function(){var e=this[pm];if(!e){var t=Ya.createElement.call(document,"span");e=Ya.elementClassListGetter.call(t),t.className=s.nodeSandbox.element.getAttributeCore(this,["sandbox"])||"",Ya.objectDefineProperty(e,um,{value:this}),Ya.objectDefineProperty(this,pm,{value:e}),Ya.objectDefineProperty(this,hm,{value:function(e){t.className=e}})}return e},setter:function(e){s.nodeSandbox.element.setAttributeCore(this,["sandbox",e]),this[hm]&&this[hm](s.nodeSandbox.element.getAttributeCore(this,["sandbox"])||"")}}),Ya.iframeSrcdocGetter&&E(r.HTMLIFrameElement.prototype,"srcdoc",{getter:function(){return s.nodeSandbox.element.getAttributeCore(this,["srcdoc"])||""},setter:function(e){s.nodeSandbox.element.setAttributeCore(this,["srcdoc",e])}}),this._overrideUrlPropDescriptor("port",Ya.anchorPortGetter,Ya.anchorPortSetter),this._overrideUrlPropDescriptor("host",Ya.anchorHostGetter,Ya.anchorHostSetter),this._overrideUrlPropDescriptor("hostname",Ya.anchorHostnameGetter,Ya.anchorHostnameSetter),this._overrideUrlPropDescriptor("pathname",Ya.anchorPathnameGetter,Ya.anchorPathnameSetter),this._overrideUrlPropDescriptor("protocol",Ya.anchorProtocolGetter,Ya.anchorProtocolSetter),this._overrideUrlPropDescriptor("search",Ya.anchorSearchGetter,Ya.anchorSearchSetter),E(r.SVGImageElement.prototype,"href",{getter:function(){var e=Ya.svgImageHrefGetter.call(this);return e[cm]||Ya.objectDefineProperty(e,cm,{value:this,configurable:!0}),e}}),E(r.SVGAnimatedString.prototype,"baseVal",{getter:function(){var e=Ya.svgAnimStrBaseValGetter.call(this);return this[cm]&&(e=ke(e)),e},setter:function(e){var t=this[cm];if(t){var r=Ya.hasAttributeNS.call(t,Th,"href");s.nodeSandbox.element.setAttributeCore(t,[r?"xlink:href":"href",e]),e=ic(e)}Ya.svgAnimStrBaseValSetter.call(this,e)}}),E(r.SVGAnimatedString.prototype,"animVal",{getter:function(){var e=Ya.svgAnimStrAnimValGetter.call(this);return this[cm]?ke(e):e}}),Ya.anchorOriginGetter&&E(r.HTMLAnchorElement.prototype,"origin",{getter:function(){return Ls(this,Ya.anchorOriginGetter)}}),E(r.StyleSheet.prototype,"href",{getter:function(){return ke(Ya.styleSheetHrefGetter.call(this))}}),Ya.cssStyleSheetHrefGetter&&E(r.CSSStyleSheet.prototype,"href",{getter:function(){return ke(Ya.cssStyleSheetHrefGetter.call(this))}}),Ya.nodeBaseURIGetter&&E(r.Node.prototype,"baseURI",{getter:function(){return ke(Ya.nodeBaseURIGetter.call(this))}}),r.DOMParser&&x(r.DOMParser.prototype,"parseFromString",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r,n=e[0],o=e[1];e.length>1&&"string"==typeof n&&"text/html"===o&&(r=Ri(n),e[0]=r);var i=Ya.DOMParserParseFromString.apply(this,e);return r&&Mf.removeSelfRemovingScripts(i),i}),E(r.Node.prototype,"firstChild",{getter:function(){return Mf.isShadowContainer(this)?s.shadowUI.getFirstChild(this):Ya.nodeFirstChildGetter.call(this)}}),E(r.Element.prototype,"firstElementChild",{getter:function(){return Mf.isShadowContainer(this)?s.shadowUI.getFirstElementChild(this):Ya.elementFirstElementChildGetter.call(this)}}),E(r.Node.prototype,"lastChild",{getter:function(){return Mf.isShadowContainer(this)?s.shadowUI.getLastChild(this):Ya.nodeLastChildGetter.call(this)}}),E(r.Element.prototype,"lastElementChild",{getter:function(){return Mf.isShadowContainer(this)?s.shadowUI.getLastElementChild(this):Ya.elementLastElementChildGetter.call(this)}}),E(r.Node.prototype,"nextSibling",{getter:function(){return s.shadowUI.getNextSibling(this)}}),E(r.Node.prototype,"previousSibling",{getter:function(){return s.shadowUI.getPrevSibling(this)}}),E(r.Element.prototype,"nextElementSibling",{getter:function(){return s.shadowUI.getNextElementSibling(this)}}),E(r.Element.prototype,"previousElementSibling",{getter:function(){return s.shadowUI.getPrevElementSibling(this)}}),E(r[Ya.elementHTMLPropOwnerName].prototype,"innerHTML",{getter:function(){if(s._documentTitleStorageInitializer&&Bt(this))return s._documentTitleStorageInitializer.storage.getTitleElementPropertyValue(this);var e=Ya.elementInnerHTMLGetter.call(this);return Zt(this)?ti(e):er(this)?wh.cleanUp(e,lc):Mi(e)},setter:function(e){if(s._documentTitleStorageInitializer&&Bt(this))return void s._documentTitleStorageInitializer.storage.setTitleElementPropertyValue(this,e);var t=this,n=er(t),o=Zt(t),i=null!==e&&void 0!==e?String(e):e;if(i&&(i=n?wh.process(i,ic,!0):o?vi(i,!0,!1,cc):Ri(i,{parentTag:t.tagName,processedContext:t[Ga.processedContext]})),n||o||af.onChildrenChanged(t),Ya.elementInnerHTMLSetter.call(t,i),s._setSandboxedTextForTitleElements(t),!n&&!o){if(af.onChildrenChanged(t),s.document.body===t){var a=s.shadowUI.getRoot();s.shadowUI.markShadowUIContainers(s.document.head,t),Mf.markElementAndChildrenAsShadow(a)}else vr(t)&&Mf.markElementAndChildrenAsShadow(t);var l=xt(t),c=l?l.defaultView:null;c&&c!==r&&c[Ga.processDomMethodName]?c[Ga.processDomMethodName](t,l):r[Ga.processDomMethodName]&&r[Ga.processDomMethodName](t),r.self&&(zt(t)||Kt(t))&&Ya.setTimeout.call(r,function(){return s.nodeMutation.onBodyContentChanged(t)},0)}}}),E(r[Ya.elementHTMLPropOwnerName].prototype,"outerHTML",{getter:function(){var e=Ya.elementOuterHTMLGetter.call(this);return Mi(e)},setter:function(e){var t=this,n=Ya.nodeParentNodeGetter.call(t);if(af.onElementChanged(t),n&&null!==e&&void 0!==e){var o=xt(n),i=o?o.defaultView:null;Ya.elementOuterHTMLSetter.call(t,Ri(String(e),{parentTag:n&&n.tagName,processedContext:t[Ga.processedContext]})),s._setSandboxedTextForTitleElements(n),af.onChildrenChanged(n),i&&i!==r&&i[Ga.processDomMethodName]?i[Ga.processDomMethodName](n,o):r[Ga.processDomMethodName]&&r[Ga.processDomMethodName](n),r.self&&Kt(t)&&Ya.setTimeout.call(r,function(){return s.shadowUI.onBodyElementMutation()},0)}else Ya.elementOuterHTMLSetter.call(t,e)}}),E(r.HTMLElement.prototype,"innerText",{getter:function(){if(s._documentTitleStorageInitializer&&Bt(this))return s._documentTitleStorageInitializer.storage.getTitleElementPropertyValue(this);var e=Ya.htmlElementInnerTextGetter.call(this);return t._removeProcessingInstructions(e)},setter:function(e){if(s._documentTitleStorageInitializer&&Bt(this))return void s._documentTitleStorageInitializer.storage.setTitleElementPropertyValue(this,e);var r=t._processTextPropValue(this,e);af.onChildrenChanged(this),Ya.htmlElementInnerTextSetter.call(this,r)}}),E(r.HTMLScriptElement.prototype,"text",{getter:function(){var e=Ya.scriptTextGetter.call(this);return ti(e)},setter:function(e){var t=e?vi(String(e),!0,!1,cc):e;Ya.scriptTextSetter.call(this,t)}}),E(r.HTMLAnchorElement.prototype,"text",{getter:function(){var e=Ya.anchorTextGetter.call(this);return t._removeProcessingInstructions(e)},setter:function(e){var r=t._processTextPropValue(this,e);af.onChildrenChanged(this),Ya.anchorTextSetter.call(this,r)}}),E(r.Node.prototype,"textContent",{getter:function(){if(s._documentTitleStorageInitializer&&Bt(this))return s._documentTitleStorageInitializer.storage.getTitleElementPropertyValue(this);var e=Ya.nodeTextContentGetter.call(this);return t._removeProcessingInstructions(e)},setter:function(e){if(s._documentTitleStorageInitializer&&Bt(this))return void s._documentTitleStorageInitializer.storage.setTitleElementPropertyValue(this,e);var r=t._processTextPropValue(this,e);af.onChildrenChanged(this),Ya.nodeTextContentSetter.call(this,r)}}),E(r[Ya.elementAttributesPropOwnerName].prototype,"attributes",{getter:function(){return as(this)}}),x(r.DOMTokenList.prototype,"add",this._createOverriddenDOMTokenListMethod(Ya.tokenListAdd)),x(r.DOMTokenList.prototype,"remove",this._createOverriddenDOMTokenListMethod(Ya.tokenListRemove)),x(r.DOMTokenList.prototype,"toggle",this._createOverriddenDOMTokenListMethod(Ya.tokenListToggle)),Ya.tokenListReplace&&x(r.DOMTokenList.prototype,"replace",this._createOverriddenDOMTokenListMethod(Ya.tokenListReplace)),Ya.tokenListSupports&&x(r.DOMTokenList.prototype,"supports",function(){if(this[um]){var e=Ya.iframeSandboxGetter.call(this[um]);return Ya.tokenListSupports.apply(e,arguments)}return Ya.tokenListSupports.apply(this,arguments)}),Ya.tokenListValueSetter&&E(r.DOMTokenList.prototype,"value",{getter:null,setter:function(e){var t=this[um];Ya.tokenListValueSetter.call(this,e),t&&s.nodeSandbox.element.setAttributeCore(t,["sandbox",this.value])}}),x(r.DOMImplementation.prototype,"createHTMLDocument",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ya.createHTMLDocument.apply(this,e);return Xl.init(r),r}),E(r.MutationRecord.prototype,"nextSibling",{getter:function(){var e=Ya.mutationRecordNextSiblingGetter.call(this);return s.shadowUI.getMutationRecordNextSibling(e)}}),E(r.MutationRecord.prototype,"previousSibling",{getter:function(){var e=Ya.mutationRecordPrevSiblingGetter.call(this);return s.shadowUI.getMutationRecordPrevSibling(e)}}),Ya.windowOriginGetter&&E(r,"origin",{getter:function(){var e=Ya.windowOriginGetter.call(this);if(!e||"null"===e)return e;var t=gt(s.window);if(t){var r=s.nodeSandbox.element.getAttributeCore(t,["sandbox"]);if("string"==typeof r&&r.indexOf("allow-same-origin")===-1)return"null"}var n=ue();return n&&"file:"===n.protocol?"null":he()},setter:function(e){return Ya.windowOriginSetter.call(this,e)}}),this._documentTitleStorageInitializer&&E(r.HTMLTitleElement.prototype,"text",{getter:function(){return s._documentTitleStorageInitializer.storage.getTitleElementPropertyValue(this)},setter:function(e){s._documentTitleStorageInitializer.storage.setTitleElementPropertyValue(this,e)}})},t}(rp),Sm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t._error=function(e){throw new Error(e)},t._setCrossDomainLocation=function(e,t){var r="";if("string"!=typeof t&&(t=String(t)),Vh.isJsProtocol(t))r=Vh.processJsAttrValue(t,{isJsProtocol:!0,isEventAttr:!1});else{
  var n=Le({isIframe:!0});t=Z(t),r=e!==window.top.location?ic(t,{resourceType:n}):ic(t,{proxyPort:Yl.get().crossDomainProxyPort})}return e.href=r,t},t._getLocation=function(e){var t=Zh.getLocationWrapper(e);if(t)return t;if(!e.location)return e.location;var r=yr(e)?e:e.defaultView;return new Yh(r,null,Ks)},t._setLocation=function(e,r){var n=yr(e)?e:e.defaultView,o=Zh.getLocationWrapper(n);return!o||o===e.location||pl&&At(window,n)?t._setCrossDomainLocation(e.location,r):o&&(o.href=r),r},t._propertyGetter=function(e,r){return bi(e)&&t._error("Cannot read property '"+r+"' of "+Si(e)),"string"==typeof r&&wo(r)&&!Em.isProxyObject(e)&&t._ACCESSORS[r].condition(e)?t._ACCESSORS[r].get(e):e[r]},t._propertySetter=function(e,r,n){return bi(e)&&t._error("Cannot set property '"+r+"' of "+Si(e)),"string"==typeof r&&wo(r)&&!Em.isProxyObject(e)&&t._ACCESSORS[r].condition(e)?t._ACCESSORS[r].set(e,n):e[r]=n},t.prototype.attach=function(r){var n;e.prototype.attach.call(this,r),Ya.objectDefineProperties(r,(n={},n[Ep.getProperty]={value:t._propertyGetter,configurable:!0},n[Ep.setProperty]={value:t._propertySetter,configurable:!0},n))},t._ACCESSORS={href:{condition:br,get:function(e){return e.href},set:t._setCrossDomainLocation},location:{condition:function(e){return Er(e)||yr(e)},get:t._getLocation,set:t._setLocation}},t}(rp),bm=function(e){function t(r){var n=e.call(this)||this;return n._messageSandbox=r,n.methodWrappers={postMessage:{condition:yr,method:function(e,t){return r.postMessage(e,t)}},replace:{condition:br,method:function(e,r){return e.replace(ic(r[0],{resourceType:t._getLocationResourceType(e)}))}},assign:{condition:br,method:function(e,r){return e.assign(ic(r[0],{resourceType:t._getLocationResourceType(e)}))}}},n}return m(t,e),t._error=function(e){throw new Error(e)},t._getLocationResourceType=function(e){return window.top.location===e?null:Le({isIframe:!0})},t._isPostMessageFn=function(e,t){return e.postMessage===e.postMessage?e.postMessage===t:t&&"function"==typeof t.toString&&t.toString()===e.postMessage.toString()},t.prototype.attach=function(r){var n=this;e.prototype.attach.call(this,r),Ya.objectDefineProperty(r,Ep.callMethod,{value:function(e,r,o){return bi(e)&&t._error("Cannot call method '"+r+"' of "+Si(e)),"function"!=typeof e[r]&&t._error("'"+r+"' is not a function"),"string"==typeof r&&_o(r)&&n.methodWrappers[r].condition(e)?n.methodWrappers[r].method(e,o):Xs(e,r,o)},configurable:!0});var o=this;Ya.objectDefineProperty(r,Ep.getPostMessage,{value:function(e,r){return 1!==arguments.length||yr(e)?2!==arguments.length||t._isPostMessageFn(this,r)?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o._messageSandbox.postMessage(this,e)}:r:e.postMessage},configurable:!0})},t}(rp),_m=function(e){function t(t,r){var n=e.call(this)||this;return n._methodCallInstrumentation=new bm(t.message),n._locationAccessorsInstrumentation=new Zh(r),n._propertyAccessorsInstrumentation=new Sm,n}return m(t,e),t.prototype.attach=function(r){var n=this;e.prototype.attach.call(this,r),this._methodCallInstrumentation.attach(r),this._locationAccessorsInstrumentation.attach(r),this._propertyAccessorsInstrumentation.attach(r),Ya.objectDefineProperty(r,Ep.getEval,{value:function(e){if(e!==r.eval)return e;var n=function(t){return"string"==typeof t&&(t=vi(t)),e(t)};return Ya.objectDefineProperty(n,t.WRAPPED_EVAL_FN,{value:e}),n},configurable:!0}),Ya.objectDefineProperty(r,Ep.processScript,{value:function(e,t){if(t){if(e&&e.length&&"string"==typeof e[0]){for(var r=[vi(e[0],!1)],n=1;n<e.length;n++)r.push(e[n]);return r}}else if("string"==typeof e)return vi(e,!1);return e},configurable:!0}),Ya.objectDefineProperty(r,Ep.processHtml,{value:function(e,t){return"string"==typeof t&&(t=Ri("<html><body>"+t+"</body></html>",{processedContext:e})),t},configurable:!0}),Ya.objectDefineProperty(r,Ep.getProxyUrl,{value:function(e,t){var r=Xl.getBaseUrl(n.document),o=t&&t!==r;o&&Xl.updateBase(t,n.document);var i=ic(e,{resourceType:Le({isScript:!0})});return o&&Xl.updateBase(r,n.document),i},configurable:!0}),Ya.objectDefineProperty(r,Ep.restArray,{value:function(e,t){return Ya.arraySlice.call(e,t)},configurable:!0}),Ya.objectDefineProperty(r,Ep.arrayFrom,{value:function(e){if(!e)return e;var t=!Ya.isArray.call(Ya.Array,e)&&"function"==typeof e[Symbol.iterator];return t?Ya.arrayFrom.call(Ya.Array,e):e},configurable:!0}),Ya.objectDefineProperty(r,Ep.restObject,{value:function(e,t){for(var r={},n=Ya.objectKeys(e),o=0,i=n;o<i.length;o++){var s=i[o];t.indexOf(s)<0&&(r[s]=e[s])}return r},configurable:!0})},t.WRAPPED_EVAL_FN="hammerhead|code-instrumentation|wrapped-eval-fn",t}(rp),wm=36,xm="=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",Cm=7,Tm=/(?:^([^=]+)=([\s\S]*))?/,Am={server:"s",client:"c",window:"w"},Pm=new RegExp("^["+Am.server+Am.client+Am.window+"]+"),Im=Object.freeze({__proto__:null,SYNCHRONIZATION_TYPE:Am,parseClientSyncCookieStr:Zs,prepareSyncCookieProperties:ea,formatSyncCookie:ta,parseSyncCookie:ra,changeSyncType:na,isOutdatedSyncCookie:oa,generateDeleteSyncCookieStr:ia}),Nm=null,Lm="hammerhead|command|sync-cookie-start",Om="hammerhead|command|sync-cookie-done",km=500,Dm=5,Mm=function(){function e(e,t,r){this._cookieSandbox=e,this._messageSandbox=t,this._childWindowSandbox=r,this._win=null,this._messageIdGenerator=null,this._resolversMap=new Map}return e._getCookieSandbox=function(e){try{var t=e[Ga.hammerhead].sandbox.cookie;return t.document&&t}catch(r){return null}},e.prototype._onMsgReceived=function(e){var t=this,r=e.message,n=e.source;if(r.cmd===Lm)this._cookieSandbox.syncWindowCookie(r.cookies),this._win!==this._win.top?this._messageSandbox.sendServiceMsg({id:r.id,cmd:Om},n):this._win!==sa()?this.syncBetweenWindows(r.cookies,n).then(function(){return t._messageSandbox.sendServiceMsg({id:r.id,cmd:Om},n)}):this.syncBetweenWindows(r.cookies,n);else if(r.cmd===Om){var o=this._resolversMap.get(r.id);o&&o()}},e.prototype._getWindowsForSync=function(e,t,r){void 0===r&&(r=[]),t!==e&&t!==this._win.top&&r.push(t);for(var n=0,o=t.frames;n<o.length;n++){var i=o[n];this._getWindowsForSync(e,i,r)}return r},e.prototype._sendSyncMessage=function(e,t,r){var n=this,o=this._messageIdGenerator.increment(),i=0;return new Ua(function(s){var a=null,l=function(){Ya.clearTimeout.call(n._win,a),n._resolversMap["delete"](o),s()},c=function(){i++<Dm||!e.parent?(n._messageSandbox.sendServiceMsg({id:o,cmd:t,cookies:r},e),a=Ya.setTimeout.call(n._win,c,km*i)):l()};n._resolversMap.set(o,l),c()})},e.prototype._delegateSyncBetweenWindowsToMainTopWindow=function(t){var r=sa(),n=e._getCookieSandbox(r);n?(n.syncWindowCookie(t),n.getWindowSync().syncBetweenWindows(t,this._win)):this._messageSandbox.sendServiceMsg({cmd:Lm,cookies:t},r)},e.prototype._removeSyncCookie=function(e){for(var t=this._win.document,r=e[0].isClientSync&&Ya.documentCookieGetter.call(t),n=0,o=e;n<o.length;n++){var i=o[n];Ya.documentCookieSetter.call(t,ia(i))}var s=e[0];r&&Bm.isSyncCookieExists(s,r)&&(na(s,{window:!1}),Ya.documentCookieSetter.call(t,ta(s)))},e.prototype.syncBetweenWindows=function(t,r){var n=this,o=sa();if(this._win!==this._win.top||this._win!==o&&!r)return this._delegateSyncBetweenWindowsToMainTopWindow(t),Ua.resolve();var i=this._getWindowsForSync(r,this._win),s=[];if(this._win===o)for(var a=0,l=this._childWindowSandbox.getChildWindows();a<l.length;a++){var c=l[a],p=e._getCookieSandbox(c);p?s.push(p.getWindowSync().syncBetweenWindows(t,this._win)):s.push(this._sendSyncMessage(c,Lm,t))}for(var u=0,h=i;u<h.length;u++){var c=h[u],p=e._getCookieSandbox(c);p?p.syncWindowCookie(t):s.push(this._sendSyncMessage(c,Lm,t))}if(s.length){var d=Ua.all(s);return this._win===o?d.then(function(){return n._removeSyncCookie(t)}):d.then()}return this._removeSyncCookie(t),Ua.resolve()},e.prototype.attach=function(e){var t=this;this._win=e,this._messageSandbox.on(this._messageSandbox.SERVICE_MSG_RECEIVED_EVENT,function(e){return t._onMsgReceived(e)}),e===e.top&&(this._messageIdGenerator=this._messageIdGenerator||new zh,this._resolversMap=this._resolversMap||new Map)},e}(),Rm=/^((?:=)?([^=;]*)\s*=\s*)?([^\n\r\0]*)/,jm=/;+$/,Hm=/((?:\s|,)[0-9]{1,2})(?:\s|-)([A-Za-z]{3})(?:\s|-)([0-9]{4}\s)/,Fm=Object.freeze({__proto__:null,parse:aa,formatClientString:la,setDefaultValues:ca,domainMatch:pa,pathMatch:ua,getUTCDate:ha}),Vm=4096,Um=new Ya.date(0).toUTCString(),Bm=function(e){function t(t,r,n){var o=e.call(this)||this;return o._unloadSandbox=r,o._windowSync=new Mm(o,t,n),o}return m(t,e),t._removeAllSyncCookie=function(){for(var e=Ya.documentCookieGetter.call(document),t=Zs(e),r=Yl.get().sessionId,n=0,o=t.outdated;n<o.length;n++){var i=o[n];Ya.documentCookieSetter.call(document,ia(i))}for(var s=0,a=t.actual;s<a.length;s++){var l=a[s];l.sid===r&&(l.isWindowSync||l.isServerSync)&&(Ya.documentCookieSetter.call(document,ia(l)),l.isClientSync&&(na(l,{window:!1}),Ya.documentCookieSetter.call(document,ta(l))))}},t.prototype._canSetCookie=function(e,t){if(t&&(e.length>Vm||"file:"===ue().protocol))return!1;var r="key"+Ya.mathRandom.call(Ya.math)+"=value";Ya.documentCookieSetter.call(this.document,r);var n=!Ya.documentCookieGetter.call(this.document);return n||Ya.documentCookieSetter.call(this.document,r+";expires="+Um),!n},t._updateClientCookieStr=function(e,t){for(var r=Yl.get().cookie,n=r?r.split(";"):[],o=[],i=!1,s=""===e?null:e+"=",a=0,l=n;a<l.length;a++){var c=l[a];c=T(c);var p=s?0===c.indexOf(s):c.indexOf("=")===-1;p?null!==t&&(o.push(t),i=!0):o.push(c)}i||null===t||o.push(t),Yl.get().cookie=o.join("; ")},t.prototype.getCookie=function(){return this.syncCookie(),Yl.get().cookie||""},t.prototype.setCookie=function(e){var r="string"==typeof e;if(this._canSetCookie(e,r)){var n=r?aa(e):e;if(n&&!n.httpOnly){var o=ue();if(pa(o.hostname,n.domain)){if((!n.secure||"https:"===o.protocol)&&ua(o.pathname,n.path)){var i=ha(),s=null;(!n.expires||"Infinity"===n.expires||n.expires>i)&&(s=la(n)),t._updateClientCookieStr(n.key,s)}r&&(ca(n,o),this._syncClientCookie(n),this.syncCookie())}}}},t.prototype.syncCookie=function(){for(var e=Ya.documentCookieGetter.call(this.document),t=Zs(e),r=Yl.get().sessionId,n=[],o=0,i=t.outdated;o<i.length;o++){var s=i[o];Ya.documentCookieSetter.call(this.document,ia(s))}for(var a=0,l=t.actual;a<l.length;a++){var c=l[a];c.sid===r&&(c.isServerSync?n.push(c):c.isWindowSync&&this.setCookie(c))}n.length&&this._syncServerCookie(n)},t.prototype._syncServerCookie=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.setCookie(n),Ya.documentCookieSetter.call(this.document,ia(n)),na(n,{server:!1,window:!0}),Ya.documentCookieSetter.call(this.document,ta(n))}this._windowSync.syncBetweenWindows(e)},t.prototype._syncClientCookie=function(e){e.isClientSync=!0,e.isWindowSync=!0,e.sid=Yl.get().sessionId,e.lastAccessed=new Ya.date,ea(e),Ya.documentCookieSetter.call(this.document,ta(e)),this._windowSync.syncBetweenWindows([e])},t.isSyncCookieExists=function(e,t){var r=t.indexOf(e.cookieStr),n=r+e.cookieStr.length;return r>-1&&(t.length===n||";"===t.charAt(n))},t.prototype.syncWindowCookie=function(e){for(var r=Ya.documentCookieGetter.call(this.document),n=0,o=e;n<o.length;n++){var i=o[n];t.isSyncCookieExists(i,r)&&this.setCookie(i)}},t.prototype.getWindowSync=function(){return this._windowSync},t.prototype.attach=function(r){e.prototype.attach.call(this,r),this._windowSync.attach(r),r===sa()&&this._unloadSandbox.on(this._unloadSandbox.UNLOAD_EVENT,t._removeAllSyncCookie)},t}(rp),Gm="hammerhead|editing-observed",Wm="hammerhead|previous-value",qm=function(){function e(e){var t=this;this._eventSimulator=e,this._onChange=function(e){return t.stopWatching(Ya.eventTargetGetter.call(e))},this._onBlur=function(e){var r=Ya.eventTargetGetter.call(e);t.processElementChanging(r)||t.stopWatching(r)}}return e._getValue=function(e){return Ut(e)?Ya.inputValueGetter.call(e):rr(e)?Ya.textAreaValueGetter.call(e):e.value},e.prototype.stopWatching=function(e){e&&(Ya.removeEventListener.call(e,"blur",this._onBlur),Ya.removeEventListener.call(e,"change",this._onChange),void 0!==e[Gm]&&delete e[Gm],void 0!==e[Wm]&&delete e[Wm])},e.prototype.watchElementEditing=function(t){var r;t&&!t[Gm]&&Ir(t)&&!vr(t)&&(Ya.objectDefineProperties(t,(r={},r[Gm]={value:!0,configurable:!0,writable:!0},r[Wm]={value:e._getValue(t),configurable:!0,writable:!0},r)),Ya.addEventListener.call(t,"blur",this._onBlur),Ya.addEventListener.call(t,"change",this._onChange))},e.prototype.restartWatchingElementEditing=function(t){t&&t[Gm]&&(t[Wm]=e._getValue(t))},e.prototype.processElementChanging=function(t){return!(!t||!t[Gm]||e._getValue(t)===t[Wm])&&(this._eventSimulator.change(t),this.restartWatchingElementEditing(t),!0)},e.prototype.getElementSavedValue=function(e){return e[Wm]},e.prototype.isEditingObserved=function(e){return e[Gm]},e}(),zm="hammerhead|event|window-activated",Km="hammerhead|event|window-deactivated",Xm=function(e){function t(t){var r=e.call(this)||this;return r._messageSandbox=t,r._isIframeWindow=!1,r._activeWindow=null,r._isActive=!1,r}return m(t,e),t.prototype._notifyPrevActiveWindow=function(){try{this._activeWindow.top&&this._activeWindow!==this._activeWindow.top&&this._messageSandbox.sendServiceMsg({cmd:Km},this._activeWindow)}catch(e){}},t.prototype.attach=function(t){var r=this;e.prototype.attach.call(this,t),this._isIframeWindow=Pt(t),this._activeWindow=this._isIframeWindow?null:t.top,this._isActive=!this._isIframeWindow,this._messageSandbox.on(this._messageSandbox.SERVICE_MSG_RECEIVED_EVENT,function(e){e.message.cmd===zm?(r._notifyPrevActiveWindow(),r._isActive=!1,r._activeWindow=e.source):e.message.cmd===Km&&(r._isActive=!1)})},t.prototype.isCurrentWindowActive=function(){return this._isActive},t.prototype.makeCurrentWindowActive=function(){this._isActive=!0,this._isIframeWindow?this._messageSandbox.sendServiceMsg({cmd:zm},this.window.top):(this._notifyPrevActiveWindow(),this._activeWindow=this.window)},t}(rp),$m="hammerhead|event|internal-",Ym=gl,Qm={bubbles:{focus:"focusin",blur:"focusout"},nonBubbles:{focusin:"focus",focusout:"blur"}},Jm=function(e){function t(t,r,n,o,i){var s=e.call(this)||this;return s._listeners=t,s._eventSimulator=r,s._timersSandbox=o,s._topWindow=null,s._lastFocusedElement=null,s._scrollState={},s._activeWindowTracker=new Xm(n),s._elementEditingWatcher=i,s}return m(t,e),t._getNativeMeth=function(e,t){if(_r(e)){if("focus"===t)return Ya.svgFocus;if("blur"===t)return Ya.svgBlur}return Ya[t]},t._restoreElementScroll=function(e,t){var r=Ge(e);r.left!==t.left&&Ze(e,t.left),r.top!==t.top&&et(e,t.top)},t.prototype._onChangeActiveElement=function(e){this._lastFocusedElement!==e&&(this._lastFocusedElement&&Ya.getAttribute.call(this._lastFocusedElement,_l.focusPseudoClass)&&Ya.removeAttribute.call(this._lastFocusedElement,_l.focusPseudoClass),!gr(e)||Kt(e)&&null===fr(e)?this._lastFocusedElement=null:(this._lastFocusedElement=e,Ya.setAttribute.call(e,_l.focusPseudoClass,!0)))},t.prototype._shouldUseLabelHtmlForElement=function(e,t){return"focus"===t&&!!e.htmlFor&&!gr(e)},t.prototype._getElementNonScrollableParentsScrollState=function(e){for(var t=[],r=Qr(e),n=0,o=r;n<o.length;n++){var i=o[n];"hidden"===je(i,"overflow")&&t.push({element:i,state:Ge(i)})}return t},t.prototype._restoreElementNonScrollableParentsScrollState=function(e){for(var r=0,n=e;r<n.length;r++){var o=n[r];t._restoreElementScroll(o.element,o.state)}},t.prototype._saveScrollStateIfNecessary=function(e,t){t&&(this._scrollState.windowScroll=Ge(this.window)),pl&&(this._scrollState.elementNonScrollableParentsScrollState=this._getElementNonScrollableParentsScrollState(e))},t.prototype._restoreScrollStateIfNecessary=function(e){e&&t._restoreElementScroll(this.window,this._scrollState.windowScroll),pl&&this._restoreElementNonScrollableParentsScrollState(this._scrollState.elementNonScrollableParentsScrollState)},t.prototype._raiseEvent=function(e,r,n,o){var i=this,s=function(){if(pl&&al<12?i.window.setTimeout(function(){i.window.setTimeout(function(){delete e[t.getInternalEventFlag(r)]},0)},0):delete e[t.getInternalEventFlag(r)],o.withoutHandlers){if("focus"===r&&Ym){var s=function(e,t,r,n,o){n(),o()};i._listeners.addInternalEventBeforeListener(window,["focus"],s),i._eventSimulator.focus(e,o.relatedTarget),i._listeners.removeInternalEventBeforeListener(window,["focus"],s)}}else{var a=Qm.bubbles[r],l=ul||ml&&al<17&&"blur"===r;o.isAsync?(i._eventSimulator[a](e,o.relatedTarget),i._timersSandbox.deferFunction(function(){return i._eventSimulator[r](e,o.relatedTarget)})):l?(i._eventSimulator[a](e,o.relatedTarget),i._eventSimulator[r](e,o.relatedTarget)):(i._eventSimulator[r](e,o.relatedTarget),i._eventSimulator[a](e,o.relatedTarget))}n()};if(e[r]){if(this._saveScrollStateIfNecessary(e,o.preventScrolling),tr(e)&&this._shouldUseLabelHtmlForElement(e,r)){var a=Ya.getElementById.call(xt(e),e.htmlFor);if(!a)return void n();e=a}e[t.getInternalEventFlag(r)]=!0,o.focusedOnChange||t._getNativeMeth(e,r).call(e),this._restoreScrollStateIfNecessary(o.preventScrolling);var l=xt(e),c=ht(l),p=Ya.nodeParentNodeGetter.call(e),u=p===document?null:zr(p,"[tabindex]");if("focus"===r&&c!==e&&u&&o.forMouseEvent){var h=yl||vl||pl;this._raiseEvent(u,"focus",s,{preventScrolling:h,forMouseEvent:o.forMouseEvent})}else"blur"===r&&c===e&&e!==l.body?this._raiseEvent(l.body,"focus",s,{withoutHandlers:!0}):mr(e)?n():s()}else s()},t.getInternalEventFlag=function(e){return $m+e},t.getNonBubblesEventType=function(e){return Qm.nonBubbles[e]},t.prototype.attach=function(t){var r=this;e.prototype.attach.call(this,t),this._activeWindowTracker.attach(t),this._topWindow=At(t,t.top)?t:t.top,this._listeners.addInternalEventBeforeListener(t,["focus","blur"],function(){var e=ht(r.document);r._onChangeActiveElement(e)})},t.prototype._raiseSelectionChange=function(e,t){ml&&t&&Pr(t)&&this._eventSimulator.selectionchange(t),"function"==typeof e&&e()},t.prototype.focus=function(e,t,r,n,o,i){var s=this,a=!o||yl||!ot(e),l=(e[Ga.processedContext]||this.window).document;if(!a||o&&!nt(e,l))return null;var c=Dt(e),p=c?ft(e):null,u=xt(e),h=Kt(e),d=ht(),f=xt(d),m=!1,g=!1,v=!1,y=Ct(e),E=this._activeWindowTracker.isCurrentWindowActive();m=d===e?!(h&&y&&!E):h&&!(y||pl);var S=!1,b=function(){E||vr(e)||s._activeWindowTracker.makeCurrentWindowActive();var o={withoutHandlers:m||r,isAsync:S,forMouseEvent:n,preventScrolling:i,relatedTarget:d};s._raiseEvent(e,"focus",function(){r||s._elementEditingWatcher.watchElementEditing(e),c&&p&&ht(s._topWindow.document)!==p?s._raiseEvent(p,"focus",function(){return s._raiseSelectionChange(t,e)},{withoutHandlers:!0,isAsync:S}):s._raiseSelectionChange(t,e)},o)};if(o&&pl){if((this._eventSimulator.isSavedWindowsEventsExists()||al>10)&&this.window.event&&"focus"===this.window.event.type&&this.window.event.srcElement===e)return this._raiseSelectionChange(t,e),null;al<12&&(S=!0)}return d&&d.tagName&&(d!==e&&(u!==f&&d===f.body?g=!1:d===u.body?!r&&pl&&(S?this._timersSandbox.setTimeout.call(this.window,function(){return s._eventSimulator.blur(d)},0):this._eventSimulator.blur(d)):gr(e)&&(g=!0)),v=u!==f&&Dt(d,f)),v&&!g?pl?(this._eventSimulator.blur(ft(d)),b()):this.blur(ft(d),b,!0,o):g?this.blur(d,function(e){v?s.blur(ft(d),b,!0,o):e?"function"==typeof t&&t():b()},r,o,e):b(),null},t.prototype.blur=function(e,t,r,n,o){var i=xt(e),s=ht(i),a=n&&pl&&al<12;s!==e&&(r=!0);var l=!1;if(!r){var c=function(t){l=Ya.eventTargetGetter.call(t)===e};Ym&&this._listeners.addInternalEventBeforeListener(window,["focus"],c),this._elementEditingWatcher.processElementChanging(e),Ym&&this._listeners.removeInternalEventBeforeListener(window,["focus"],c),this._elementEditingWatcher.stopWatching(e)}var p={withoutHandlers:r,isAsync:a,relatedTarget:o,focusedOnChange:l};this._raiseEvent(e,"blur",function(){"function"==typeof t&&t(l)},p)},t.prototype.dispose=function(){this._lastFocusedElement=null},t}(rp),Zm=function(e){function t(t){var r=e.call(this)||this;return r._listeners=t,r._hoverElementFixed=!1,r._lastHoveredElement=null,r}return m(t,e),t._setHoverMarker=function(e,t){for(t&&Ya.setAttribute.call(t,_l.hoverPseudoClass,"");e&&e.tagName&&e!==t;){Ya.setAttribute.call(e,_l.hoverPseudoClass,"");var r=an(e);r&&Ya.setAttribute.call(r,_l.hoverPseudoClass,""),e=Ya.nodeParentNodeGetter.call(e)}},t.prototype._clearHoverMarkerUntilJointParent=function(e){var t=null;if(this._lastHoveredElement){for(var r=this._lastHoveredElement;r&&r.tagName&&r.contains;){var n=an(r);if(n&&Ya.removeAttribute.call(n,_l.hoverPseudoClass),r.contains(e)){t=r;break}Ya.removeAttribute.call(r,_l.hoverPseudoClass),r=Ya.nodeParentNodeGetter.call(r)}t&&Ya.removeAttribute.call(t,_l.hoverPseudoClass)}return t},t.prototype._onHover=function(e){var t=Ya.eventTargetGetter.call(e),r=e.clientX,n=e.clientY,o=pl&&ms(t,r,n);o||this._hover(t)},t.prototype._hover=function(e){if(!this._hoverElementFixed&&!vr(e)){var r=this._clearHoverMarkerUntilJointParent(e);t._setHoverMarker(e,r),this._lastHoveredElement=e}},t.prototype.fixHoveredElement=function(){this._hoverElementFixed=!0},t.prototype.freeHoveredElement=function(){this._hoverElementFixed=!1},t.prototype.attach=function(t){var r=this;e.prototype.attach.call(this,t),this._listeners.addInternalEventBeforeListener(t,["mouseover","touchstart"],function(e){return r._onHover(e)})},t.prototype.dispose=function(){this._lastHoveredElement=null},t}(rp),eg=function(){function e(e){this.focusBlurSandbox=e.focusBlur,this.timersSandbox=e.timers,this.listeners=e.listeners,this.eventSimulator=e.eventSimulator;var t=this,r=this.eventSimulator,n=this.listeners,o=this.timersSandbox;this.setSelectionRangeWrapper=function(){var e=arguments[0],n=arguments[1],o=arguments[2]||"none",i=this,s=rr(i)?Ya.textAreaSetSelectionRange:Ya.setSelectionRange,a=ht(xt(i)),l=xt(i),c=!1,p=function(){var a,l=sn(i),p=i.type;l&&i.setAttribute("type","text");try{a=s.call(i,e,n,o)}catch(u){a=s.call(i,0,0,o)}return l&&(i[Ga.selection]={selectionStart:i.selectionStart,selectionEnd:i.selectionEnd,selectionDirection:i.selectionDirection},i.setAttribute("type",p),c&&(t.focusBlurSandbox.blur(i,null,!0),t.focusBlurSandbox.focus(i,null,!0),ht(xt(i))!==i&&t.focusBlurSandbox.focus(i,null,!0))),ml&&r.selectionchange(i),a};if(a===i)return c=!0,p();var u=ul||ml&&(17===al&&!l.hasFocus()||al>17);return t.wrapSetterSelection(i,p,u)},this.selectWrapper=function(){var e=this.parentElement();if(!e||ht(xt(e))===e)return Ya.select.call(this);var t=null,i=!1,s=function(t){Ya.eventTargetGetter.call(t)!==e&&"none"!==e.style.display||(i=!0)};return n.addInternalEventBeforeListener(document,["focus"],s),t=Ya.select.call(this),o.setTimeout.call(window,function(){o.setTimeout.call(window,function(){n.removeInternalEventBeforeListener(document,["focus"],s),i||r.focus(e)},0)},0),t}}return e.prototype.setSelection=function(e,t,r,n){e.setSelectionRange?e.setSelectionRange(t,r,n):(e.selectionStart=t,e.selectionEnd=r)},e.prototype.getSelection=function(e){var t=e[Ga.selection];return{start:t?t.selectionStart:e.selectionStart,end:t?t.selectionEnd:e.selectionEnd,direction:t?t.selectionDirection:e.selectionDirection}},e.prototype.wrapSetterSelection=function(e,t,r,n){var o=this,i=xt(e),s=ht(i),a=null,l=!1;r=r&&s!==e;var c=function(t){Ya.eventTargetGetter.call(t)!==e&&"none"!==e.style.display||(l=!0)};return r&&this.listeners.addInternalEventBeforeListener(document,["focus"],c),em.beforeDispatchEvent(e),em.beforeDispatchEvent(e),a=t(),em.afterDispatchEvent(e),em.afterDispatchEvent(e),r&&(s=ht(i),s!==e&&(yl||ml&&al>17)&&(l&&(e[Jm.getInternalEventFlag("focus")]=!0),e.focus()),ul?this.timersSandbox.setTimeout.call(window,function(){o.timersSandbox.setTimeout.call(window,function(){o.listeners.removeInternalEventBeforeListener(document,["focus"],c),l||o.eventSimulator.focus(e)},0)},0):(this.listeners.removeInternalEventBeforeListener(document,["focus"],c),l||(n&&fl?this.focusBlurSandbox.focus(e,null,!0,!1,!0):this.eventSimulator.focus(e)))),a},e}(),tg={string:"string",file:"file"},rg=function(){function e(e,t,r){Ya.objectDefineProperty(this,"kind",{enumerable:!0,get:function(){return e}}),Ya.objectDefineProperty(this,"type",{enumerable:!0,get:function(){return t}}),Ya.objectDefineProperty(this,"getAsString",{configurable:!0,enumerable:!0,get:function(){return function(t){if(!arguments.length)throw new Error("Failed to execute 'getAsString' on 'DataTransferItem': 1 argument required, but only 0 present.");"function"==typeof t&&e===tg.string&&Ya.setTimeout.call(window,function(){return t(r)},0)}}}),Ya.objectDefineProperty(this,"getAsFile",{configurable:!0,enumerable:!0,get:function(){return function(){return e!==tg.file?null:r}}})}return e}();Ya.DataTransferItem&&(rg.prototype=Ya.DataTransferItem.prototype);var ng={readwrite:"readwrite",readonly:"readonly","protected":"protected"},og=function(){function e(e){var t=this,r=[],n=[],o=function(){for(var e=[],t=0,n=r;t<n.length;t++){var o=n[t];e.push(o.type)}return e},i=function(){for(var e=0;void 0!==r[e]||void 0!==t[e];){var n=r[e];Ya.objectDefineProperty(t,e,{enumerable:void 0!==n,configurable:!0,value:n}),e++}},s=function(e){var t=!1;e=fa(e),"url"===e&&(t=!0);for(var o="",i=0;i<r.length;i++)r[i].type===e&&(o=n[i]);return t&&o&&(o=da(o)[0]),o},a=function(e){e=fa(e);for(var t=0;t<r.length;t++)if(r[t].type===e){r.splice(t,1),n.splice(t,1);break}i()},l=function(e,t,o){var l=null;if("string"==typeof e){var c=t.toString().toLowerCase(),p=s(c);if(!o&&p)throw new Error("Failed to execute 'add' on 'DataTransferItemList': An item already exists for type '"+c+"'.");p&&a(c),l=new rg(tg.string,fa(t),e)}else l=new rg(tg.file,null,e);return r.push(l),n.push(e),i(),l};this.getAndHideInternalMethods=function(){var e={getTypes:o,getItemData:s,removeItem:a,addItem:l};return delete t.getAndHideInternalMethods,e},Ya.objectDefineProperty(this,"length",{enumerable:!0,get:function(){return r.length}}),Ya.objectDefineProperty(this,"remove",{configurable:!0,enumerable:!0,get:function(){return function(t){e.mode===ng.readwrite&&(r.splice(t,1),n.splice(t,1),i())}}}),Ya.objectDefineProperty(this,"clear",{configurable:!0,enumerable:!0,get:function(){return function(){e.mode===ng.readwrite&&(r=[],n=[],i())}}}),Ya.objectDefineProperty(this,"add",{configurable:!0,enumerable:!0,get:function(){return function(t,r){if(!arguments.length)throw new Error("Failed to execute 'add' on 'DataTransferItemList': 1 argument required, but only 0 present.");if(1===arguments.length&&"string"==typeof t)throw new Error("Failed to execute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.");if(e.mode===ng.readwrite)return l(t,r,!1)}}})}return e}();Ya.DataTransferItemList&&(og.prototype=Ya.DataTransferItemList.prototype);var ig=function(){function e(){Ya.objectDefineProperty(this,"length",{enumerable:!0,get:function(){return 0}}),Ya.objectDefineProperty(this,"item",{enumerable:!0,get:function(){return function(){}}})}return e}();Ya.FileList&&(ig.prototype=Ya.FileList.prototype);var sg={none:"none",copy:"copy",link:"link",move:"move"},ag={uninitialized:"uninitialized",none:"none",copy:"copy",copyLink:"copyLink",copyMove:"copyMove",link:"link",linkMove:"linkMove",move:"move",all:"all"},lg=function(){function e(e){var t=sg.none,r=ag.uninitialized,n=new og(e),o=n.getAndHideInternalMethods(),i=new ig,s=new og(e),a=s.getAndHideInternalMethods(),l=function(){return e.mode===ng["protected"]?s:n},c=function(){return e.mode===ng["protected"]?a:o};Ya.objectDefineProperty(this,"dropEffect",{configurable:!0,enumerable:!0,get:function(){return t},set:function(e){return sg[e]&&(t=sg[e]),e}}),Ya.objectDefineProperty(this,"effectAllowed",{configurable:!0,enumerable:!0,get:function(){return r},set:function(e){return ag[e]&&(r=ag[e]),e}}),ul||Ya.objectDefineProperty(this,"items",{configurable:!0,enumerable:!0,get:l}),Ya.objectDefineProperty(this,"types",{configurable:!0,enumerable:!0,get:function(){return c().getTypes()}}),Ya.objectDefineProperty(this,"files",{configurable:!0,enumerable:!0,get:function(){return i}}),ul||(this.setDragImage=function(){}),this.getData=function(e){if(!arguments.length)throw new Error("Failed to execute 'getData' on 'DataTransfer': 1 argument required, but only 0 present.");return e=e.toString().toLowerCase(),c().getItemData(e)},this.setData=function(t,r){if(arguments.length<2)throw new Error("Failed to execute 'setData' on 'DataTransfer': 2 argument required, but only "+arguments.length+" present.");e.mode===ng.readwrite&&(t=t.toString().toLowerCase(),o.addItem(r,t,!0))},this.clearData=function(t){e.mode===ng.readwrite&&(void 0===t?n.clear():o.removeItem(t))}}return e}();gc&&(lg.prototype=Ya.DataTransfer.prototype);var cg,pg=function(){function e(){this.mode=ng.readwrite}return e.prototype.setReadOnlyMode=function(){this.mode=ng.readonly},e.prototype.setProtectedMode=function(){this.mode=ng["protected"]},e}(),ug=function(e){function t(t,r,n,o,i,s,a){var l=e.call(this)||this;return l._shadowUI=s,l.EVENT_PREVENTED_EVENT="hammerhead|event|event-prevented",l.listeners=t,l.elementEditingWatcher=n,l.unload=o,l.timers=a,l.eventSimulator=r,l.focusBlur=new Jm(t,r,i,a,n),l.selection=new eg(l),l.hover=new Zm(t),l._shadowUI=s,l.message=i,l.DataTransfer=lg,l.DragDataStore=pg,l._overriddenMethods=null,l._onFocus=null,l._cancelInternalEvents=null,l._createOverriddenMethods(),l._createInternalHandlers(),l}return m(t,e),t.prototype._createOverriddenMethods=function(){var e=this.selection,t=this.focusBlur,r=this.eventSimulator,n=this;this._overriddenMethods={dispatchEvent:function(){em.beforeDispatchEvent(this);var e=ul&&yr(this)?Ya.windowDispatchEvent.apply(this,arguments):Ya.dispatchEvent.apply(this,arguments);return em.afterDispatchEvent(this),e},click:function(){em.beforeDispatchEvent(this);var e=r.nativeClick(this,Ya.click);return em.afterDispatchEvent(this),e},setSelectionRange:function(){return e.setSelectionRangeWrapper.apply(this,arguments)},select:function(){return e.selectWrapper.call(this)},focus:function(){return t.focus(this,null,!1,!1,!0)},blur:function(){return t.blur(this,null,!1,!0)},preventDefault:function(){return n.emit(n.EVENT_PREVENTED_EVENT,this),Ya.preventDefault.call(this)}}},t.prototype._createInternalHandlers=function(){var e=this._shadowUI,t=this.document,r=this.eventSimulator;this._onFocus=function(r){var n=Ya.eventTargetGetter.call(r),o=ht(t);vr(n)||vr(o)||e.setLastActiveElement(o)},this._cancelInternalEvents=function(e,t,n,o,i){var s=Jm.getNonBubblesEventType(e.type)||e.type,a=Jm.getInternalEventFlag(s),l=Ya.eventTargetGetter.call(e);l[a]&&!e[r.DISPATCHED_EVENT_FLAG]&&i()}},t.prototype._preventInputNativeDialogs=function(e){var t=fl||pl;t&&this.listeners.addInternalEventBeforeListener(e,["click"],function(e,t){t&&pr(Ya.eventTargetGetter.call(e))&&Qi(e,!0)})},t.prototype.attach=function(t){e.prototype.attach.call(this,t),x(t.HTMLInputElement.prototype,"setSelectionRange",this._overriddenMethods.setSelectionRange),x(t.HTMLTextAreaElement.prototype,"setSelectionRange",this._overriddenMethods.setSelectionRange),ul?(x(t.Window.prototype,"dispatchEvent",this._overriddenMethods.dispatchEvent),x(t.Document.prototype,"dispatchEvent",this._overriddenMethods.dispatchEvent),x(t.HTMLElement.prototype,"dispatchEvent",this._overriddenMethods.dispatchEvent),x(t.SVGElement.prototype,"dispatchEvent",this._overriddenMethods.dispatchEvent)):x(t.EventTarget.prototype,"dispatchEvent",this._overriddenMethods.dispatchEvent),x(t.HTMLElement.prototype,"focus",this._overriddenMethods.focus),x(t.HTMLElement.prototype,"blur",this._overriddenMethods.blur),x(t.HTMLElement.prototype,"click",this._overriddenMethods.click),x(t.Event.prototype,"preventDefault",this._overriddenMethods.preventDefault),t.Window.focus=this._overriddenMethods.focus,_(t.Window.focus,Ya.focus),t.Window.blur=this._overriddenMethods.blur,_(t.Window.blur,Ya.blur),t.TextRange&&t.TextRange.prototype.select&&x(t.TextRange.prototype,"select",this._overriddenMethods.select),this.listeners.initElementListening(document,Zd),this.listeners.initElementListening(t,Zd.concat(["load","beforeunload","pagehide","unload","message"])),this.listeners.addInternalEventBeforeListener(t,["focus"],this._onFocus),this.listeners.addInternalEventBeforeListener(t,["focus","blur","change","focusin","focusout"],this._cancelInternalEvents),
  this._preventInputNativeDialogs(t),this.unload.attach(t),this.message.attach(t),this.timers.attach(t),this.focusBlur.attach(t),this.hover.attach(t)},t.prototype.reattach=function(e){this.listeners.restartElementListening(e.document),this.listeners.restartElementListening(e)},t}(rp),hg=25,dg=.5,fg={noButton:-1,leftButton:0,rightButton:2},mg={click:pl?0:1,dblclick:pl?0:2,mousedown:1,mouseup:1},gg=/^key\w+$/,vg=/^((mouse\w+)|((dbl)?click)|(contextmenu)|(drag\w*)|(drop))$/,yg=/^touch\w+$/,Eg=/^focus(in|out)$/,Sg=1,bg=["mouseover","mouseenter","mouseout"],_g={mousedown:"pointerdown",mouseup:"pointerup",mousemove:"pointermove",mouseover:"pointerover",mouseenter:"pointerenter",mouseout:"pointerout"},wg={touchstart:"pointerdown",touchend:"pointerup",touchmove:"pointermove"},xg=[Gt,Wt,Ut,qt,nr,ar,rr],Cg=function(){function e(){this.DISPATCHED_EVENT_FLAG="hammerhead|dispatched-event",this.touchIdentifier=Ya.dateNow(),this.savedWindowEvents=[],this.savedNativeClickCount=0,this.browserWithNewEventsStyle=!ul}return e._dispatchStorageEvent=function(e,t){var r=Ya.documentCreateEvent.call(document,"StorageEvent");return r.initStorageEvent("storage",t.canBubble,t.cancelable,t.key,t.oldValue,t.newValue,t.url,null),Ya.objectDefineProperty(r,"storageArea",{get:function(){return t.storageArea},configurable:!0}),null===t.key&&Ya.objectDefineProperty(r,"key",{get:function(){return null},configurable:!0}),e.dispatchEvent(r)},e.prototype._dispatchTouchEvent=function(e,t){if(ms(e,t.clientX,t.clientY))return!0;var r=Ya.documentCreateEvent.call(document,"TouchEvent");return r.initTouchEvent?ol?r.initTouchEvent(t.type,t.canBubble,t.cancelable,t.view,t.detail,t.screenX,t.screenY,t.pageX,t.pageY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.touches,t.targetTouches,t.changedTouches,void 0===t.scale?1:t.scale,void 0===t.rotation?0:t.rotation):12===r.initTouchEvent.length?r.initTouchEvent(t.type,t.canBubble,t.cancelable,t.view,t.detail,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.touches,t.targetTouches,t.changedTouches):r.initTouchEvent(t.touches,t.targetTouches,t.changedTouches,t.type,t.view,t.screenX,t.screenY,t.pageX-t.view.pageXOffset,t.pageY-t.view.pageYOffset,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey):r=new Ya.WindowTouchEvent(t.type,{touches:t.touches,targetTouches:t.targetTouches,changedTouches:t.changedTouches,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,metaKey:t.metaKey,bubbles:t.canBubble,cancelable:t.cancelable,cancelBubble:!1,defaultPrevented:!1,detail:t.detail,view:t.view}),ef&&this._dispatchPointerEvent(e,t),e.dispatchEvent(r)},e._getUIEventArgs=function(e,t){void 0===t&&(t={});var r="detail"in t?t.detail:mg[e];return{type:e,composed:t.composed,canBubble:t.canBubble!==!1,cancelable:t.cancelable!==!1,view:t.view||window,detail:r||0,ctrlKey:t.ctrlKey||!1,altKey:t.altKey||!1,shiftKey:t.shiftKey||!1,metaKey:t.metaKey||!1}},e._getStorageEventArgs=function(e){return void 0===e&&(e={}),ma(e,{canBubble:e.canBubble!==!1,cancelable:e.cancelable!==!1})},e._getMouseEventArgs=function(t,r){return void 0===r&&(r={}),ma(e._getUIEventArgs(t,r),{screenX:r.screenX||0,screenY:r.screenY||0,clientX:r.clientX||0,clientY:r.clientY||0,button:void 0===r.button?$d.left:r.button,buttons:void 0===r.buttons?Yd.leftButton:r.buttons,relatedTarget:r.relatedTarget||null,which:r.which})},e._getKeyEventArgs=function(t,r){var n={keyCode:r.keyCode||0,charCode:r.charCode||0,which:"press"===t?r.charCode:r.keyCode};return"keyIdentifier"in r&&(n.keyIdentifier=r.keyIdentifier),"key"in r&&(n.key=r.key),ma(e._getUIEventArgs(t,r),n)},e._getModifiersAsString=function(e){var t="";for(var r in Jd)Ya.objectHasOwnProperty.call(Jd,r)&&e[r]&&(t+=Jd[r]+" ");return t},e._prepareMouseEventOptions=function(e){void 0===e&&(e={});var t=void 0===e.buttons?Yd.noButton:e.buttons,r=$d.left;return e.buttons=t,e.button=e.button||r,yl&&(e.which=Qd.leftButton,e.buttons===Yd.noButton&&(e.which=Qd.noButton),e.buttons===Yd.rightButton&&(e.which=Qd.rightButton)),e},e._isDisabled=function(e){return e&&e.hasAttribute&&Ya.hasAttribute.call(e,"disabled")},e.prototype._simulateEvent=function(t,r,n,o){var i=this;void 0===o&&(o={});var s=null,a=null,l="click"===r&&Rr(t),c=ma(n?{clientX:n.clientX,clientY:n.clientY,screenX:n.screenX,screenY:n.screenY,altKey:!l&&n.alt,shiftKey:!l&&n.shift,ctrlKey:!l&&n.ctrl,metaKey:n.meta,button:n.button,which:n.which,buttons:n.buttons,relatedTarget:n.relatedTarget}:{},o);return c.composed=rs(r),c.relatedTarget||(c.relatedTarget=document.body),"storage"===r?(c=ma(c,n),s=e._getStorageEventArgs(c),a=e._dispatchStorageEvent):vg.test(r)?(n&&void 0!==n.button&&(c=ma(c,{button:n.button})),s=e._getMouseEventArgs(r,c),a=function(e,t){return i._dispatchMouseRelatedEvents(e,t,n)}):gg.test(r)?(!n||void 0===n.keyCode&&void 0===n.charCode||(c=ma(c,{key:n.key||void 0,keyCode:n.keyCode||0,charCode:n.charCode||0}),"keyIdentifier"in n&&(c.keyIdentifier=n.keyIdentifier),"key"in n&&(c.key=n.key)),s=e._getKeyEventArgs(r,c),a=function(e,t){return i._dispatchKeyEvent(e,t)}):yg.test(r)&&(s=this._getTouchEventArgs(r,ma(c,{target:t})),a=function(e,t){return i._dispatchTouchEvent(e,t)}),a(t,s)},e.prototype._getTouchEventArgs=function(t,r){var n,o;void 0===r&&(r={});var i=ma(e._getUIEventArgs(t,r),{screenX:r.screenX||0,screenY:r.screenY||0,clientX:r.clientX||0,clientY:r.clientY||0,pageX:r.clientX||0,pageY:r.clientY||0,identifier:this._getTouchIdentifier(t)});return Ya.documentCreateTouch?ol?i.touch=Ya.documentCreateTouch.call(document,i.view,r.target,i.identifier,i.clientX,i.clientY,0,0):i.touch=Ya.documentCreateTouch.call(document,i.view,r.target,i.identifier,i.pageX,i.pageY,i.screenX,i.screenY,i.clientX,i.clientY,null,null,void 0===i.rotation?0:i.rotation):i.touch=new Ya.WindowTouch({identifier:i.identifier,target:r.target,clientX:i.clientX,clientY:i.clientY,pageX:i.pageX,pageY:i.pageY,screenX:i.screenX,screenY:i.screenY,rotationAngle:0,radiusX:hg,radiusY:hg,force:dg}),i.changedTouches=[i.touch],i.touches="touchend"===i.type?[]:i.changedTouches,Ya.documentCreateTouchList&&(i.changedTouches=(n=Ya.documentCreateTouchList).call.apply(n,g([document],i.changedTouches)),i.touches=(o=Ya.documentCreateTouchList).call.apply(o,g([document],i.touches))),i.targetTouches=i.touches,i},e.prototype._getTouchIdentifier=function(e){return"touchstart"===e&&this.touchIdentifier++,this.touchIdentifier},e.prototype._raiseNativeClick=function(e,t){var r=Dt(e)&&ft(e),n=r?Ya.contentWindowGetter.call(r):window,o=n.event;ul&&delete n.event,t.call(e),ul&&o&&Ya.objectDefineProperty(n,"event",{get:function(){return o},configurable:!0})},e.prototype._dispatchKeyEvent=function(t,r){var n=null;if(this.browserWithNewEventsStyle&&Ya.WindowKeyboardEvent){var o={bubbles:r.canBubble,composed:r.composed,cancelable:r.cancelable,cancelBubble:!1,defaultPrevented:!1,view:r.view,detail:r.detail,ctrlKey:r.ctrlKey,altKey:r.altKey,shiftKey:r.shiftKey,metaKey:r.metaKey,keyCode:r.keyCode,charCode:r.charCode,which:r.which};"keyIdentifier"in r&&(o.keyIdentifier=r.keyIdentifier),"key"in r&&(o.key=r.key),n=new Ya.WindowKeyboardEvent(r.type,o)}else Ya.documentCreateEvent&&(n=Ya.documentCreateEvent.call(document,"KeyboardEvent"),n.initKeyboardEvent(r.type,r.canBubble,r.cancelable,r.view,"",0,e._getModifiersAsString(r),!1,""));if(n){Ya.objectDefineProperty(n,"keyCode",{configurable:!0,enumerable:!0,get:function(){return r.keyCode}}),Ya.objectDefineProperty(n,"charCode",{configurable:!0,enumerable:!0,get:function(){return r.charCode}}),Ya.objectDefineProperty(n,"which",{configurable:!0,enumerable:!0,get:function(){return r.which}}),"key"in r&&Ya.objectDefineProperty(n,"key",{configurable:!0,enumerable:!0,get:function(){return r.key}}),"keyIdentifier"in r&&Ya.objectDefineProperty(n,"keyIdentifier",{configurable:!0,enumerable:!0,get:function(){return r.keyIdentifier}});var i=!1,s=!0;this.browserWithNewEventsStyle&&(n.preventDefault=function(){return i=!0,Ya.preventDefault.call(n),!1}),ml&&Ya.objectDefineProperty(n,"returnValue",{get:function(){return s},set:function(e){e===!1&&n.preventDefault(),s=e}});var a=this._raiseDispatchEvent(t,n);return ml?s&&!i:pl?a:!i}return null},e.prototype._getPointerEventTypeInfo=function(e){return _g[e]?{eventType:_g[e],pointerType:"mouse"}:wg[e]?{eventType:wg[e],pointerType:"touch"}:null},e.prototype._dispatchPointerEvent=function(e,t){var r=this._getPointerEventTypeInfo(t.type);if(r){var n=r.eventType,o=r.pointerType,i=null,s=ys(e),a=Fe(e),l=Es({x:s.left+a.left,y:s.top+a.top}),c=ma({width:1,height:1,pressure:0,tiltX:0,tiltY:0,pointerId:1,pointerType:o,timeStamp:Ya.dateNow(),isPrimary:!0},t);c.type=n,c.offsetX=t.clientX-l.x,c.offsetY=t.clientY-l.y,"mousemove"!==t.type&&"mouseover"!==t.type&&"mouseout"!==t.type||(c.button=t.buttons===Yd.noButton?fg.noButton:c.button),ul?(c.rotation=0,i=Ya.documentCreateEvent.call(document,"PointerEvent"),i.initPointerEvent(c.type,c.canBubble,c.cancelable,window,c.detail,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,c.button,null,c.offsetX,c.offsetY,c.width,c.height,c.pressure,c.rotation,c.tiltX,c.tiltY,c.pointerId,c.pointerType,c.timeStamp,c.isPrimary),Ya.objectDefineProperty(i,"target",{get:function(){return e},configurable:!0}),Ya.objectDefineProperty(i,"relatedTarget",{get:function(){return t.relatedTarget},configurable:!0}),Ya.objectDefineProperty(i,"buttons",{get:function(){return t.buttons}})):(c.bubbles=!0,c.cancelable=!0,i=new Ya.WindowPointerEvent(n,c)),this._raiseDispatchEvent(e,i)}},e.prototype._elementCanBeDisabled=function(e){for(var t=0,r=xg;t<r.length;t++){var n=r[t];if(n(e))return!0}return!1},e.prototype._dispatchMouseRelatedEvents=function(e,t,r){if(void 0===r&&(r={}),"mouseover"!==t.type&&"mouseenter"!==t.type&&ms(e,t.clientX,t.clientY))return!0;if(pl&&("click"===t.type||"mouseup"===t.type||"mousedown"===t.type)){var n=Ya.nodeParentNodeGetter.call(e),o=zr(n,"button");n&&o&&"submit"===Ya.getAttribute.call(o,"type")&&(e=o)}return!ef||mc&&!bg.includes(t.type)||this._dispatchPointerEvent(e,t),this._dispatchMouseEvent(e,t,r)},e.prototype._dispatchMouseEvent=function(t,r,n){var o=this,i=n.dataTransfer,s=n.timeStamp,a=Zr(t,!1,function(t){return o._elementCanBeDisabled(t)&&e._isDisabled(t)}),l=a&&this._elementCanBeDisabled(t)||e._isDisabled(t)&&this._elementCanBeDisabled(t);if(l)return null;var c=null;return this.browserWithNewEventsStyle&&Ya.WindowMouseEvent?c=new Ya.WindowMouseEvent(r.type,{bubbles:r.canBubble,composed:r.composed,cancelable:r.cancelable,view:window,detail:r.detail,screenX:r.screenX,screenY:r.screenY,clientX:r.clientX,clientY:r.clientY,ctrlKey:r.ctrlKey,altKey:r.altKey,shiftKey:r.shiftKey,metaKey:r.metaKey,button:r.button,buttons:r.buttons,relatedTarget:r.relatedTarget}):(c=Ya.documentCreateEvent.call(document,"MouseEvents"),c.initMouseEvent(r.type,r.canBubble,r.cancelable,window,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget),Ya.objectDefineProperty(c,"buttons",{get:function(){return r.buttons}})),void 0!==r.which&&yl&&Ya.objectDefineProperty(c,"which",{get:function(){return r.which}}),s&&!pl&&Ya.objectDefineProperty(c,"timeStamp",{get:function(){return s}}),i&&Ya.objectDefineProperty(c,"dataTransfer",{configurable:!0,enumerable:!0,get:function(){return i}}),this._raiseDispatchEvent(t,c)},e.prototype._dispatchFocusEvent=function(e,t,r){void 0===r&&(r=null);var n=null,o=Eg.test(t);return this.browserWithNewEventsStyle&&Ya.WindowFocusEvent?n=new Ya.WindowFocusEvent(t,{bubbles:o,composed:rs(t),cancelable:!1,cancelBubble:!1,relatedTarget:r,defaultPrevented:!1}):Ya.documentCreateEvent&&(n=Ya.documentCreateEvent.call(document,"FocusEvent"),n.initFocusEvent(t,o,!0,null,0,o?r:null)),n?(n[this.DISPATCHED_EVENT_FLAG]=!0,this._raiseDispatchEvent(e,n)):null},e.prototype._dispatchTextEvent=function(e,t){if(Ya.WindowTextEvent&&Ya.documentCreateEvent){var r=Ya.documentCreateEvent.call(document,"TextEvent"),n={eventType:ul?"textinput":"textInput",bubbles:!0,cancelable:!0,view:window,data:t,inputMethod:Sg,locale:navigator.language};return r.initTextEvent(n.eventType,n.bubbles,n.cancelable,n.view,n.data,n.inputMethod,n.locale),this._raiseDispatchEvent(e,r)}return null},e.prototype._dispatchInputEvent=function(e,t,r){if(!Ya.WindowInputEvent)return this._dispatchEvent(e,t,!0);var n={bubbles:!0,composed:rs(t),cancelable:!0,view:window,inputType:"insertText"};void 0!==r&&(n.data=r);var o=new Ya.WindowInputEvent(t,n);return this._raiseDispatchEvent(e,o)},e.prototype._dispatchEvent=function(e,t,r,n){var o=null;return Ya.documentCreateEvent&&(o=Ya.documentCreateEvent.call(document,"Events"),o.initEvent(t,r,!0)),o?(n&&(o[n]=!0),this._raiseDispatchEvent(e,o)):null},e.prototype._raiseDispatchEvent=function(e,t){var r=Dt(e)&&ft(e),n=r?Ya.contentWindowGetter.call(r):window;ul&&r&&n&&Ya.objectDefineProperty(n,"event",{get:function(){return window.event},configurable:!0});var o=e.dispatchEvent(t);return ul&&n&&delete n.event,o},e.prototype.click=function(e,t){return this._simulateEvent(e,"click",t,{button:$d.left,buttons:Yd.noButton})},e.prototype.nativeClick=function(e,t){this._raiseNativeClick(e,t)},e.prototype.dblclick=function(e,t){return this._simulateEvent(e,"dblclick",t,{button:$d.left,buttons:Yd.noButton})},e.prototype.rightclick=function(e,t){return this._simulateEvent(e,"click",t,{button:$d.right,buttons:Yd.rightButton})},e.prototype.contextmenu=function(e,t){return this._simulateEvent(e,"contextmenu",t,{button:$d.right,buttons:Yd.noButton})},e.prototype.mousedown=function(e,t){void 0===t&&(t={});var r=void 0===t.button?$d.left:t.button,n=r===$d.left?Yd.leftButton:Yd.rightButton;return t.button=r,t.buttons=void 0===t.buttons?n:t.buttons,this._simulateEvent(e,"mousedown",t)},e.prototype.mouseup=function(e,t){void 0===t&&(t={});var r=void 0===t.button?$d.left:t.button;return this._simulateEvent(e,"mouseup",t,{button:r,buttons:Yd.noButton})},e.prototype.mouseover=function(t,r){return r=e._prepareMouseEventOptions(r),this._simulateEvent(t,"mouseover",r)},e.prototype.mousemove=function(t,r){return r=e._prepareMouseEventOptions(r),this._simulateEvent(t,"mousemove",r,{cancelable:!1})},e.prototype.mouseout=function(t,r){return r=e._prepareMouseEventOptions(r),this._simulateEvent(t,"mouseout",r)},e.prototype.mouseenter=function(t,r){return r=e._prepareMouseEventOptions(r),this._simulateEvent(t,"mouseenter",r,{canBubble:!1})},e.prototype.mouseleave=function(t,r){return r=e._prepareMouseEventOptions(r),this._simulateEvent(t,"mouseleave",r,{canBubble:!1})},e.prototype.keypress=function(e,t){return this._simulateEvent(e,"keypress",t)},e.prototype.keyup=function(e,t){return this._simulateEvent(e,"keyup",t)},e.prototype.keydown=function(e,t){return this._simulateEvent(e,"keydown",t)},e.prototype.blur=function(e,t){return this._dispatchFocusEvent(e,"blur",t)},e.prototype.focus=function(e,t){return this._dispatchFocusEvent(e,"focus",t)},e.prototype.focusin=function(e,t){return this._dispatchFocusEvent(e,"focusin",t)},e.prototype.focusout=function(e,t){return this._dispatchFocusEvent(e,"focusout",t)},e.prototype.storage=function(e,t){return this._simulateEvent(e,"storage",t)},e.prototype.change=function(e){return this._dispatchEvent(e,"change",!0,this.DISPATCHED_EVENT_FLAG)},e.prototype.textInput=function(e,t){return this._dispatchTextEvent(e,t)},e.prototype.beforeInput=function(e,t){return this._dispatchInputEvent(e,"beforeinput",t)},e.prototype.input=function(e,t){return this._dispatchInputEvent(e,"input",t)},e.prototype.submit=function(e){return this._dispatchEvent(e,"submit",!0)},e.prototype.selectionchange=function(e){return this._dispatchEvent(e,"selectionchange",!1)},e.prototype.touchstart=function(e,t){return this._simulateEvent(e,"touchstart",t)},e.prototype.touchend=function(e,t){return this._simulateEvent(e,"touchend",t)},e.prototype.touchmove=function(e,t){return this._simulateEvent(e,"touchmove",t)},e.prototype.dragstart=function(e,t){return this._simulateEvent(e,"dragstart",t)},e.prototype.drag=function(e,t){return this._simulateEvent(e,"drag",t)},e.prototype.dragenter=function(e,t){return this._simulateEvent(e,"dragenter",t)},e.prototype.dragover=function(e,t){return this._simulateEvent(e,"dragover",t)},e.prototype.dragleave=function(e,t){return this._simulateEvent(e,"dragleave",t)},e.prototype.drop=function(e,t){return this._simulateEvent(e,"drop",t)},e.prototype.dragend=function(e,t){return this._simulateEvent(e,"dragend",t)},e.prototype.isSavedWindowsEventsExists=function(){return this.savedWindowEvents&&this.savedWindowEvents.length},e}();!function(e){e.Service="hammerhead|service-msg",e.User="hammerhead|user-msg"}(cg||(cg={}));var Tg=function(e){function t(t,r){var n=e.call(this)||this;return n._listeners=t,n._unloadSandbox=r,n.PING_DELAY=200,n.PING_IFRAME_TIMEOUT=7e3,n.PING_IFRAME_MIN_TIMEOUT=100,n.SERVICE_MSG_RECEIVED_EVENT="hammerhead|event|service-msg-received",n.RECEIVE_MSG_FN="hammerhead|receive-msg-function",n.topWindow=null,n.window=null,n.storedOnMessageHandler=null,n.isWindowUnloaded=!1,n.iframeInternalMsgQueue=[],n}return m(t,e),t._getMessageData=function(e){var t=Vr(e)?Ya.messageEventDataGetter.call(e):e.data;return"string"==typeof t?pu(t):t},t._isWindowAvailable=function(e){try{return!!e.postMessage}catch(t){return!1}},t.prototype._onMessage=function(e){var r=t._getMessageData(e);r.type===cg.Service&&e.source&&(this.pingCmd&&r.message.cmd===this.pingCmd&&r.message.isPingResponse?(this.pingCallback(),this.pingCallback=null,this.pingCmd=null):this.emit(this.SERVICE_MSG_RECEIVED_EVENT,{message:r.message,source:e.source,ports:e.ports}))},t.prototype._onWindowMessage=function(e,r){var n=t._getMessageData(e);if(n.type!==cg.Service){var o=Jl();if("*"===n.targetUrl||oe(o,n.targetUrl))return ts(this.window,r,e)}return null},t._wrapMessage=function(e,t,r){var n=ue(),o=Se({protocol:n.protocol,host:n.host});return{message:t,originUrl:o,targetUrl:r,type:e}},t.prototype._removeInternalMsgFromQueue=function(e){for(var t=0,r=this.iframeInternalMsgQueue.length;t<r;t++)if(this.iframeInternalMsgQueue[t].sendFunc===e)return this.iframeInternalMsgQueue.splice(t,1),!0;return!1},t.prototype.attach=function(t){var r=this;e.prototype.attach.call(this,t),this.topWindow=t.top,this.isWindowUnloaded=!1,this._unloadSandbox.on(this._unloadSandbox.UNLOAD_EVENT,function(){for(r.isWindowUnloaded=!0;r.iframeInternalMsgQueue.length;){var e=r.iframeInternalMsgQueue[0];Ya.clearTimeout.call(r.window,e.timeoutId),e.sendFunc()}});var n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xs(r,"_onMessage",e)},o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xs(r,"_onWindowMessage",e)};this._listeners.addInternalEventBeforeListener(t,["message"],n),this._listeners.setEventListenerWrapper(t,["message"],o),Ya.objectDefineProperty(t,this.RECEIVE_MSG_FN,{value:n,configurable:!0}),E(t.MessageEvent.prototype,"data",{getter:function(){var e=Ya.eventTargetGetter.call(this),t=Ya.messageEventDataGetter.call(this);return t&&t.type!==cg.Service&&yr(e)?t.message:t}});var i=Ya.isEventPropsLocatedInProto?t.Window.prototype:t;E(i,"onmessage",{getter:function(){return r.storedOnMessageHandler},setter:function(e){r.storedOnMessageHandler="function"==typeof e?e:null,Ya.winOnMessageSetter.call(t,r.storedOnMessageHandler?function(t){return r._onWindowMessage(t,e)}:null)}})},t.prototype.postMessage=function(e,r){var n=r[1]||he();return r[1]="*",r[0]=t._wrapMessage(cg.User,r[0],n),Xs(e,"postMessage",r)},t.prototype.sendServiceMsg=function(e,r,n){var o=this,i=t._wrapMessage(cg.Service,e),s=!At(r,this.window)&&!!r[this.RECEIVE_MSG_FN];if(!s)return t._isWindowAvailable(r)&&r.postMessage(i,"*",n);var a=function(e){if(e||o._removeInternalMsgFromQueue(a))try{r[o.RECEIVE_MSG_FN]({data:pu(uu(i)),source:o.window,ports:n})}catch(t){}};if(this.isWindowUnloaded)a(!0);else{var l=_t(this.window),c=Ya.setTimeout.call(l,a,10);this.iframeInternalMsgQueue.push({timeoutId:c,sendFunc:a})}return null},t.prototype.pingIframe=function(e,t,r){var n=this;return new Ua(function(o,i){var s=null,a=null,l=null,c=function(){l=Ya.contentWindowGetter.call(e),l&&n.sendServiceMsg({cmd:n.pingCmd,isPingRequest:!0},l)},p=function(){Ya.clearInterval.call(n.window,s),Ya.clearTimeout.call(n.window,a),n.pingCallback=null,n.pingCmd=null,s=null,a=null};a=Ya.setTimeout.call(n.window,function(){p(),i()},r?n.PING_IFRAME_MIN_TIMEOUT:n.PING_IFRAME_TIMEOUT),n.pingCallback=function(){p(),o()},n.pingCmd=t,c(),s=Ya.setInterval.call(n.window,c,n.PING_DELAY)})},t}(rp),Ag=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.BEFORE_DOCUMENT_CLEANED_EVENT="hammerhead|event|before-document-cleaned",t.DOCUMENT_CLEANED_EVENT="hammerhead|event|document-cleaned",t.DOCUMENT_CLOSED_EVENT="hammerhead|event|document-closed",t.BODY_CONTENT_CHANGED_EVENT="hammerhead|event|body-content-changed",t.BODY_CREATED_EVENT="hammerhead|event|body-created",t.IFRAME_ADDED_TO_DOM_EVENT="hammerhead|event|iframe-added-to-dom",t}return m(t,e),t.prototype.onIframeAddedToDOM=function(e){this.emit(this.IFRAME_ADDED_TO_DOM_EVENT,e)},t.prototype.onBeforeDocumentCleaned=function(e){this.emit(this.BEFORE_DOCUMENT_CLEANED_EVENT,e)},t.prototype.onDocumentCleaned=function(e,t){this.emit(this.DOCUMENT_CLEANED_EVENT,{window:e,document:t})},t.prototype.onDocumentClosed=function(e){this.emit(this.DOCUMENT_CLOSED_EVENT,e)},t.prototype.onBodyContentChanged=function(e){this.emit(this.BODY_CONTENT_CHANGED_EVENT,e)},t.prototype.onBodyCreated=function(e){this.emit(this.BODY_CREATED_EVENT,e)},t}(bl),Pg=function(e){function t(){var t=e.call(this)||this;return t.timeouts=[],t.deferredFunctions=[],t.setTimeout=Ya.setTimeout,t}return m(t,e),t.prototype._wrapTimeoutFunctionsArguments=function(e){var t=this,r="string"==typeof e[0],n=r?null:e[0],o=r?vi(e[0],!1):null;if(pl&&al<12){var i=this,s=r?function(){var e=t.window.eval;return e(o)}:n;e[0]=function(){return i._callDeferredFunction(s,arguments)}}else r&&(e[0]=o);return e},t.prototype._callDeferredFunction=function(e,t){if(this.timeouts.length){for(var r=[],n=[],o=0;o<this.timeouts.length;o++)r.push(this.timeouts[o]),n.push(this.deferredFunctions[o]);this.timeouts=[],this.deferredFunctions=[];for(var i=0;i<r.length;i++)Ya.clearInterval.call(this.window,r[i]),n[i]();return this._callDeferredFunction(e,t)}return e.apply(this.window,t)},t.prototype.attach=function(t){e.prototype.attach.call(this,t);var r=this;x(t,"setTimeout",function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Ya.setTimeout.apply(t,r._wrapTimeoutFunctionsArguments(e))}),x(t,"setInterval",function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Ya.setInterval.apply(t,r._wrapTimeoutFunctionsArguments(e))}),this.setTimeout=t.setTimeout},t.prototype.deferFunction=function(e){var t=this,r=function(){e();for(var n=0;n<t.deferredFunctions.length;n++)if(t.deferredFunctions[n]===r){t.deferredFunctions.splice(n,1),t.timeouts.splice(n,1);break}};this.deferredFunctions.push(r),this.timeouts.push(Ya.setTimeout.call(window,r,0))},t}(rp),Ig=function(e){function t(r){var n=e.call(this)||this;return n._listeners=r,n.BEFORE_UNLOAD_EVENT="hammerhead|event|before-unload",n.BEFORE_BEFORE_UNLOAD_EVENT="hammerhead|event|before-before-unload",n.UNLOAD_EVENT="hammerhead|event|unload",n.beforeUnloadProperties={storedReturnValue:"",prevented:!1,storedHandler:null,nativeEventName:t._getBeforeUnloadEventName(),eventName:n.BEFORE_UNLOAD_EVENT,eventPropSetter:t._getBeforeUnloadPropSetter()},n.unloadProperties={storedReturnValue:"",prevented:!1,storedHandler:null,nativeEventName:"unload",eventName:n.UNLOAD_EVENT,eventPropSetter:Ya.winOnUnloadSetter},n}return m(t,e),t._getBeforeUnloadEventName=function(){return ol?"pagehide":"beforeunload"},t._getBeforeUnloadPropSetter=function(){return ol?Ya.winOnPageHideSetter:Ya.winOnBeforeUnloadSetter},t.prototype._emitEvent=function(e){this.emit(e.eventName,{returnValue:e.storedReturnValue,prevented:e.prevented})},t._prepareStoredReturnValue=function(e){if("string"==typeof e)return e;try{return String(e)}catch(t){return""}},t.prototype._createEventHandler=function(e){return function(r,n){Ya.objectDefineProperty(r,"returnValue",ga({get:function(){return e.storedReturnValue},set:function(r){e.storedReturnValue=t._prepareStoredReturnValue(r),e.prevented=!fl||""!==r}})),Ya.objectDefineProperty(r,"preventDefault",ga({get:function(){return function(){return e.prevented=!0,!0}},set:function(){}}));var o=n.call(this,r);void 0!==o&&(e.storedReturnValue=t._prepareStoredReturnValue(o),e.prevented=!0)}},t.prototype._reattachListener=function(e){var t=em.getNativeAddEventListener(this.window),r=em.getNativeRemoveEventListener(this.window);r.call(this.window,e.nativeEventName,this),t.call(this.window,e.nativeEventName,this)},t.prototype._setEventListenerWrapper=function(e){this._listeners.setEventListenerWrapper(window,[e.nativeEventName],this._createEventHandler(e))},t.prototype._addEventListener=function(e){var t=this,r=em.getNativeAddEventListener(window);r.call(window,e.nativeEventName,this),this._listeners.on(this._listeners.EVENT_LISTENER_ATTACHED_EVENT,function(r){r.el===window&&r.eventType===e.nativeEventName&&t._reattachListener(e)})},t.prototype._overrideEventDescriptor=function(e){var t=this,r=Ya.isEventPropsLocatedInProto?window.Window.prototype:window;E(r,"on"+e.nativeEventName,{getter:function(){return e.storedHandler},setter:function(r){return t.setOnEvent(e,window,r)}})},t.prototype._attachEvent=function(e){this._setEventListenerWrapper(e),this._addEventListener(e),this._overrideEventDescriptor(e)},t.prototype.attach=function(t){var r=this;e.prototype.attach.call(this,t),this._attachEvent(this.beforeUnloadProperties),this._attachEvent(this.unloadProperties),this._listeners.addInternalEventBeforeListener(t,[this.beforeUnloadProperties.nativeEventName],function(){return r.emit(r.BEFORE_BEFORE_UNLOAD_EVENT)})},t.prototype.setOnEvent=function(e,t,r){var n=this;"function"==typeof r?(e.storedHandler=r,e.eventPropSetter.call(t,function(t){return n._createEventHandler(e)(t,r)}),this._reattachListener(e)):(e.storedHandler=null,e.eventPropSetter.call(t,null))},t.prototype.handleEvent=function(e){e.type===this.beforeUnloadProperties.nativeEventName?this._emitEvent(this.beforeUnloadProperties):e.type===this.unloadProperties.nativeEventName&&this._emitEvent(this.unloadProperties)},t}(rp),Ng=function(e){function t(t){var r=e.call(this)||this;return r._waitHammerheadSettings=t,t&&t.then(function(){r._waitHammerheadSettings=null}),r}return m(t,e),t.prototype.gettingSettingInProgress=function(){return!!this._waitHammerheadSettings},t.prototype.delayUntilGetSettings=function(e){return this._waitHammerheadSettings.then(e)},t}(rp),Lg="~~~TestCafe added this prefix to hide the authentication dialog box~~~",Og="~~~TestCafe added this prefix to control the authorization flow~~~",kg=Object.freeze({__proto__:null,addAuthenticatePrefix:va,hasAuthenticatePrefix:ya,removeAuthenticatePrefix:Ea,isAuthenticateHeader:Sa,addAuthorizationPrefix:ba,hasAuthorizationPrefix:_a,removeAuthorizationPrefix:wa,isAuthorizationHeader:xa}),Dg=["UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE"],Mg=function(e){function t(t,r){var n=e.call(this,r)||this;return n._cookieSandbox=t,n.XHR_COMPLETED_EVENT="hammerhead|event|xhr-completed",n.XHR_ERROR_EVENT="hammerhead|event|xhr-error",n.BEFORE_XHR_SEND_EVENT="hammerhead|event|before-xhr-send",n}return m(t,e),t.createNativeXHR=function(){var e=new Ya.XMLHttpRequest;return e.open=Ya.xhrOpen,e.abort=Ya.xhrAbort,e.send=Ya.xhrSend,e.addEventListener=Ya.xhrAddEventListener||Ya.addEventListener,e.removeEventListener=Ya.xhrRemoveEventListener||Ya.removeEventListener,e.setRequestHeader=Ya.xhrSetRequestHeader,e.getResponseHeader=Ya.xhrGetResponseHeader,e.getAllResponseHeaders=Ya.xhrGetAllResponseHeaders,e.overrideMimeType=Ya.xhrOverrideMimeType,e.dispatchEvent=Ya.xhrDispatchEvent||Ya.dispatchEvent,e},t.openNativeXhr=function(e,t,r){e.open("POST",t,r),e.setRequestHeader(xh.cacheControl,"no-cache, no-store, must-revalidate")},t._reopenXhr=function(e,t){var r=t.openArgs[1],n=e.withCredentials;t.withCredentials=n,t.openArgs[1]=Me(r,n?Va.include:Va.sameOrigin),Ya.xhrOpen.apply(e,t.openArgs),t.openArgs[1]=r;for(var o=0,i=t.headers;o<i.length;o++){var s=i[o];Ya.xhrSetRequestHeader.apply(e,s)}},t.prototype.attach=function(r){e.prototype.attach.call(this,r);for(var n=this,o=r.XMLHttpRequest.prototype,i=function(){var e=Ya.xhrRemoveEventListener||Ya.removeEventListener;n.emit(n.XHR_COMPLETED_EVENT,{xhr:this}),e.call(this,"loadend",i)},s=function(){if(!(this.readyState<this.HEADERS_RECEIVED)){var e=Ya.xhrRemoveEventListener||Ya.removeEventListener;n._cookieSandbox.syncCookie(),e.call(this,"readystatechange",s)}},a=function(){var e=Ya.xhrAddEventListener||Ya.addEventListener,t=new Ya.XMLHttpRequest;return e.call(t,"loadend",i),e.call(t,"readystatechange",s),t},l=0,c=Dg;l<c.length;l++){var p=c[l];Ya.objectDefineProperty(a,p,Ya.objectGetOwnPropertyDescriptor(Ya.XMLHttpRequest,p))}C(r,"XMLHttpRequest",a),Ya.objectDefineProperty(o,"constructor",{value:a}),x(o,"abort",function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return n.gettingSettingInProgress()?void n.delayUntilGetSettings(function(){return e.abort.apply(e,t)}):(Ya.xhrAbort.apply(this,t),void n.emit(n.XHR_ERROR_EVENT,{err:new Error("XHR aborted"),xhr:this}))}),x(o,"open",function(){for(var e=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=r[1];return ic(i)===i?void Ya.xhrOpen.apply(this,r):n.gettingSettingInProgress()?void n.delayUntilGetSettings(function(){return e.open.apply(e,r)}):(i="string"==typeof i?i:String(i),r[1]=Me(i,this.withCredentials?Va.include:Va.sameOrigin),Ya.xhrOpen.apply(this,r),r[1]=i,void t.REQUESTS_OPTIONS.set(this,{withCredentials:this.withCredentials,openArgs:r,headers:[]}))}),x(o,"send",function(){for(var e=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n.gettingSettingInProgress())return void n.delayUntilGetSettings(function(){return e.send.apply(e,r)});var a=t.REQUESTS_OPTIONS.get(this);a.withCredentials!==this.withCredentials&&t._reopenXhr(this,a),n.emit(n.BEFORE_XHR_SEND_EVENT,{xhr:this}),Ya.xhrSend.apply(this,r),this.readyState===this.DONE&&i.call(this),s.call(this)}),x(o,"setRequestHeader",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];xa(e[0])&&(e[1]=ba(e[1])),Ya.xhrSetRequestHeader.apply(this,e);var n=t.REQUESTS_OPTIONS.get(this);n&&n.headers.push([String(e[0]),String(e[1])])}),Ya.xhrResponseURLGetter&&E(r.XMLHttpRequest.prototype,"responseURL",{getter:function(){return ke(Ya.xhrResponseURLGetter.call(this))}}),x(o,"getResponseHeader",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ya.xhrGetResponseHeader.apply(this,e);return r&&Sa(e[0])&&(r=Ea(r)),r}),x(o,"getAllResponseHeaders",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=Ya.xhrGetAllResponseHeaders.apply(this,e);ya(r);)r=Ea(r);return r})},t.REQUESTS_OPTIONS=new WeakMap,t}(Ng),Rg=Ca(Ya.Request&&new Ya.Request(location.toString()).credentials),jg=function(e){function t(t,r){var n=e.call(this,r)||this;return n.cookieSandbox=t,n.FETCH_REQUEST_SENT_EVENT="hammerhead|event|fetch-request-sent-event",n}return m(t,e),t._removeAuthHeadersPrefix=function(e,t){return xa(e)?wa(t):Sa(e)?Ea(t):t},t._processInit=function(e){var t=e.headers;if(!t)return e;xr(t)||(t=t?new Ya.Headers(t):new Ya.Headers,e.headers=t);var r=Ya.headersGet.call(t,xh.authorization),n=Ya.headersGet.call(t,xh.proxyAuthorization);return null===r||_a(r)||Ya.headersSet.call(t,xh.authorization,ba(r)),null===n||_a(n)||Ya.headersSet.call(t,xh.proxyAuthorization,ba(n)),e},t._processArguments=function(e){var r=e[0],n=e[1],o="string"==typeof r,i=Ca(n&&n.credentials);if(Cr(r))i!==Va.unknown&&(e[0]=Me(r.url,i)),n&&n.headers&&"worker"!==r.destination&&(e[1]=t._processInit(n));else{var s=o?r:String(r),a=i===Va.unknown?Rg:i;e[0]=Me(s,a),e[1]=t._processInit(n||{})}},t._processHeaderEntry=function(e,r){if(void 0===r&&(r=!1),e.done)return e;var n=t._removeAuthHeadersPrefix(e.value[0],e.value[1]);
  return r?e.value=n:e.value[1]=n,e},t._entriesWrapper=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Ya.headersEntries.apply(this,e),o=n.next;return n.next=function(){return t._processHeaderEntry(o.call(n))},n},t._valuesWrapper=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Ya.headersEntries.apply(this,e),o=n.next;return n.next=function(){return t._processHeaderEntry(o.call(n),!0)},n},t.prototype.attach=function(r){if(e.prototype.attach.call(this,r,r.document),Ya.fetch){var n=this;C(r,"Request",function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._processArguments(e),r.Headers.prototype.entries=r.Headers.prototype[Symbol.iterator]=Ya.headersEntries;var o=1===e.length?new Ya.Request(e[0]):new Ya.Request(e[0],e[1]);return r.Headers.prototype.entries=r.Headers.prototype[Symbol.iterator]=t._entriesWrapper,o}),E(r.Request.prototype,"url",{getter:function(){return ke(Ya.requestUrlGetter.call(this))}}),E(r.Request.prototype,"referrer",{getter:function(){return ke(Ya.requestReferrerGetter.call(this))}}),x(r,"fetch",function(){for(var e=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n.gettingSettingInProgress())return n.delayUntilGetSettings(function(){return e.fetch.apply(e,o)});if(!o.length&&!vl)return Ya.fetch.apply(this,o);try{t._processArguments(o)}catch(s){return Ya.promiseReject.call(n.window.Promise,s)}r.Headers.prototype.entries=r.Headers.prototype[Symbol.iterator]=Ya.headersEntries;var a=Ya.fetch.apply(this,o);return r.Headers.prototype.entries=r.Headers.prototype[Symbol.iterator]=t._entriesWrapper,n.emit(n.FETCH_REQUEST_SENT_EVENT,a),Ya.promiseThen.call(a,function(e){return n.cookieSandbox.syncCookie(),e})}),E(r.Response.prototype,"url",{getter:function(){return ke(Ya.responseUrlGetter.call(this))}}),x(r.Headers.prototype,"entries",t._entriesWrapper),x(r.Headers.prototype,Symbol.iterator,t._entriesWrapper),x(r.Headers.prototype,"values",t._valuesWrapper),x(r.Headers.prototype,"forEach",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e[0];return"function"==typeof n&&(e[0]=function(e,r,o){e=t._removeAuthHeadersPrefix(r,e),n.call(this,e,r,o)}),Ya.headersForEach.apply(this,e)}),x(r.Headers.prototype,"get",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Ya.headersGet.apply(this,e);return n&&t._removeAuthHeadersPrefix(e[0],n)}),x(r.Headers.prototype,"set",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return xa(e[0])&&(e[1]=ba(e[1])),Ya.headersSet.apply(this,e)})}},t}(Ng),Hg="hammerhead|get-storage-wrapper",Fg=pl?"":null,Vg=new WeakMap,Ug=0,Bg=1,Gg=function(){function e(){}return e}();Gg.prototype=Storage.prototype;var Wg=function(e){function t(t,r,n){var o=e.call(this)||this;return Vg.set(o,{win:t,ctx:t,lastState:null,eventEmitter:new bl,nativeStorage:r,nativeStorageKey:n}),o.loadStorage(),o}return m(t,e),Object.defineProperty(t.prototype,"internal",{get:function(){return Vg.get(this)},enumerable:!0,configurable:!0}),t.create=function(e,r,n){var o=new t(e,r,n);return e.Proxy?new Ya.Proxy(o,{get:function(e,t){return t===Hg?e:e[t]},set:function(e,t,r){return e.setItem(t,r),!0},deleteProperty:function(e,t){return e.removeItem(t),!0}}):o},t.prototype.setContext=function(e){this.internal.ctx=e},t.prototype.getContext=function(){return this.internal.ctx},t.prototype.saveToNativeStorage=function(){var e=uu(this.getCurrentState());this.internal.nativeStorage[this.internal.nativeStorageKey]!==e&&(this.internal.nativeStorage[this.internal.nativeStorageKey]=e)},t.prototype.getCurrentState=function(){for(var e=Ya.objectKeys(this),t=[[],[]],r=0,n=e;r<n.length;r++){var o=n[r];t[Ug].push(o),t[Bg].push(this[o])}return t},t.prototype.restore=function(e){this.clearStorage(),this.loadStorage(e)},t.prototype.clearStorage=function(){for(var e=Ya.objectKeys(this),t=!1,r=0,n=e;r<n.length;r++){var o=n[r];delete this[o],t=!0}return t&&(this.internal.lastState=this.getCurrentState()),t},t.prototype.loadStorage=function(e){e||(e=this.internal.nativeStorage[this.internal.nativeStorageKey]);for(var t=pu(e||"[[],[]]"),r=t[Ug].length,n=0;n<r;n++)this[t[Ug][n]]=t[Bg][n];this.internal.lastState=t},t.prototype.raiseStorageChanged=function(e,t,r){var n=null;try{var o=lc(this.internal.ctx.location.toString());n=o?o.destUrl:Jl()}catch(i){this.internal.ctx=this.internal.win,n=Jl()}this.internal.eventEmitter.emit("change",{key:e,oldValue:t,newValue:r,url:n})},t.prototype.checkStorageChanged=function(){for(var e=this.internal.lastState,t=this.getCurrentState(),r=0;r<e[Ug].length;r++){var n=e[Ug][r],o=e[Bg][r],i=t[Ug].indexOf(n);i!==-1?(t[Bg][i]!==o&&this.raiseStorageChanged(t[Ug][i],o,t[Bg][i]),t[Ug].splice(i,1),t[Bg].splice(i,1)):this.raiseStorageChanged(n,o,null)}for(var s=0;s<t[Ug].length;s++)this.raiseStorageChanged(t[Ug][s],Fg,t[Bg][s]);this.internal.lastState=this.getCurrentState()},t.prototype.addChangeEventListener=function(e){this.internal.eventEmitter.on("change",e)},t.prototype.removeChangeEventListener=function(e){this.internal.eventEmitter.off("change",e)},t.prototype.unwrapProxy=function(){if(Ya.Proxy){var e=this[Hg];return e||this}return this},t}(Gg),qg=Ya.objectKeys(Wg.prototype);qg.indexOf("internal")===-1&&qg.push("internal");for(var zg=0,Kg=qg;zg<Kg.length;zg++){var Xg=Kg[zg];"constructor"!==Xg&&"internal"!==Xg&&Ya.objectDefineProperty(Wg.prototype,Xg,{value:Wg.prototype[Xg],configurable:!1,enumerable:!1,writable:!1})}var $g=Ya.objectGetOwnPropertyDescriptor(Wg.prototype,"internal");$g.configurable=!1,$g.enumerable=!1,Ya.objectDefineProperty(Wg.prototype,"internal",$g),Ya.objectDefineProperty(Wg.prototype,"constructor",Ya.objectGetOwnPropertyDescriptor(Storage.prototype,"constructor")),Ya.objectDefineProperty(Wg,"INTERNAL_METHODS",{value:qg});var Yg="hammerhead|storage-wrapper|",Qg="hammerhead|api-key-prefix|",Jg=Ya.arrayConcat.call(Ya.objectKeys(Storage.prototype),Wg.INTERNAL_METHODS),Zg=function(e){function t(t,r,n){var o=e.call(this)||this;return o._listeners=t,o._unloadSandbox=r,o._eventSimulator=n,o.localStorageProxy=null,o.sessionStorageProxy=null,o.intervalId=null,o.isLocked=!1,o}return m(t,e),t.prototype._simulateStorageEvent=function(e,t){if(!this.isDeactivated()&&e.unwrapProxy().getContext()!==this.window){var r=t;r.storageArea=e,this._eventSimulator.storage(this.window,r)}},t.prototype._createStorageWrappers=function(){var e=this,t=ue().host,r=Yl.get().sessionId,n=Ta(r,t),o=_t(this.window),i=o[Ga.hammerhead],s=i.sandbox.storageSandbox;if(s!==this)this.localStorageProxy=s.localStorageProxy,this.sessionStorageProxy=s.sessionStorageProxy;else{var a=this.nativeMethods.winLocalStorageGetter.call(this.window),l=this.nativeMethods.winSessionStorageGetter.call(this.window);this.localStorageProxy=Wg.create(this.window,a,n),this.sessionStorageProxy=Wg.create(this.window,l,n);var c=function(){e.isLocked||(e.localStorageProxy.unwrapProxy().saveToNativeStorage(),e.sessionStorageProxy.unwrapProxy().saveToNativeStorage())};this._unloadSandbox.on(this._unloadSandbox.UNLOAD_EVENT,c),wv.pageNavigationWatch.on(wv.pageNavigationWatch.PAGE_NAVIGATION_TRIGGERED_EVENT,c)}},t.prototype._overrideStorageEvent=function(){"object"!=typeof StorageEvent&&C(this.window,"StorageEvent",function(e,t){var r=null===t||void 0===t?void 0:t.storageArea;r&&delete t.storageArea;var n;return n=0===arguments.length?new Ya.StorageEvent:1===arguments.length?new Ya.StorageEvent(e):new Ya.StorageEvent(e,t),r&&Ya.objectDefineProperty(n,"storageArea",{get:function(){return r},set:function(){}}),n})},t.prototype.clear=function(){var e=this.localStorageProxy.unwrapProxy(),t=this.sessionStorageProxy.unwrapProxy();Ya.storageRemoveItem.call(e.internal.nativeStorage,e.internal.nativeStorageKey),Ya.storageRemoveItem.call(t.internal.nativeStorage,t.internal.nativeStorageKey)},t.prototype.lock=function(){this.isLocked=!0},t.prototype.backup=function(){return{localStorage:uu(this.localStorageProxy.unwrapProxy().getCurrentState()),sessionStorage:uu(this.sessionStorageProxy.unwrapProxy().getCurrentState())}},t.prototype.restore=function(e){var t=e.localStorage,r=e.sessionStorage;this.localStorageProxy.unwrapProxy().restore(t),this.sessionStorageProxy.unwrapProxy().restore(r)},t.prototype._overrideStorageProps=function(){x(window.Storage.prototype,"clear",function(){var e=this.unwrapProxy();e.clearStorage()&&e.raiseStorageChanged(null,null,null)}),x(window.Storage.prototype,"getItem",function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'getItem' on 'Storage': 1 argument required, but only 0 present.");var r=this.unwrapProxy(),n=t._wrapKey(e);return Ya.objectHasOwnProperty.call(r,n)?r[n]:null}),x(window.Storage.prototype,"key",function(e){if(0===arguments.length)throw new TypeError("TypeError: Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");e%=4294967296,isNaN(e)&&(e=0);var r=this.unwrapProxy(),n=Ya.objectKeys(r),o=e>=0&&e<n.length;return o?t._unwrapKey(n[e]):null}),x(window.Storage.prototype,"removeItem",function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'removeItem' on 'Storage': 1 argument required, but only 0 present.");var r=this.unwrapProxy(),n=t._wrapKey(e);delete r[n],r.checkStorageChanged()}),x(window.Storage.prototype,"setItem",function(e,r){if(arguments.length<2)throw new TypeError("Failed to execute 'setItem' on 'Storage': 2 arguments required, but only "+arguments.length+" present.");var n=this.unwrapProxy(),o=t._wrapKey(e);n[o]=String(r),n.checkStorageChanged()}),E(window.Storage.prototype,"length",{getter:function(){return Ya.objectKeys(this).length},setter:null})},t.prototype._overrideStoragesGetters=function(){var e=this,t=this.nativeMethods.getStoragesPropsOwner(window),r=!this.nativeMethods.isStoragePropsLocatedInProto||!this.nativeMethods.objectHasOwnProperty.call(window,"localStorage");r&&this.nativeMethods.objectDefineProperties(window,{localStorage:y(t,"localStorage",{getter:function(){return e.localStorageProxy.unwrapProxy().setContext(window),e.localStorageProxy}}),sessionStorage:y(t,"sessionStorage",{getter:function(){return e.sessionStorageProxy.unwrapProxy().setContext(window),e.sessionStorageProxy}})})},t._wrapKey=function(e){var t=String(e);return Jg.indexOf(t)!==-1?Qg+t:t},t._unwrapKey=function(e){return e.replace(Qg,"")},t.prototype.attach=function(t){var r=this;e.prototype.attach.call(this,t),this._overrideStorageProps(),this._createStorageWrappers();var n=this.localStorageProxy.unwrapProxy(),o=this.sessionStorageProxy.unwrapProxy();this.intervalId=Ya.setInterval.call(this.window,function(){n.checkStorageChanged(),o.checkStorageChanged()},10),this.localStorageChangeHandler=function(e){return r._simulateStorageEvent(r.localStorageProxy,e)},this.sessionStorageChangeHandler=function(e){return r._simulateStorageEvent(r.sessionStorageProxy,e)},n.addChangeEventListener(this.localStorageChangeHandler),o.addChangeEventListener(this.sessionStorageChangeHandler),this._listeners.initElementListening(t,["storage"]),this._listeners.addInternalEventBeforeListener(t,["storage"],function(e,t,r){return!t&&r()}),this._overrideStorageEvent(),this._overrideStoragesGetters()},t.prototype.dispose=function(){this.localStorageProxy.unwrapProxy().removeChangeEventListener(this.localStorageChangeHandler),this.sessionStorageProxy.unwrapProxy().removeChangeEventListener(this.sessionStorageChangeHandler);var e=_t(this.window);this.window!==e||e.frameElement||Ya.clearInterval.call(this.window,this.intervalId)},t}(rp),ev=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t._createFnWrapper=function(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return"string"==typeof r[0]&&(r[0]=vi(r[0])),t.apply(e,r)}},t._overrideElectronModulePaths=function(e){var t=e.require,r=t("path"),n=ue();if("file:"===n.protocol){var o="win32"===e.process.platform&&"/"===n.pathname[0]?n.pathname.substr(1):n.pathname;e.__filename=r.normalize(decodeURIComponent(o)),e.__dirname=r.dirname(e.__filename),e.module.filename=e.__filename,e.module.paths=e.module.paths.concat(t("module")._nodeModulePaths(e.__dirname))}},t.prototype.attach=function(r){if(e.prototype.attach.call(this,r),r.require){var n=r.require("vm");if(n){var o=this.nativeMethods;o.refreshElectronMeths(n)&&(x(n,"createScript",t._createFnWrapper(n,o.createScript)),n.runInDebugContext&&x(n,"runInDebugContext",t._createFnWrapper(n,o.runInDebugContext)),x(n,"runInContext",t._createFnWrapper(n,o.runInContext)),x(n,"runInNewContext",t._createFnWrapper(n,o.runInNewContext)),x(n,"runInThisContext",t._createFnWrapper(n,o.runInThisContext)),t._overrideElectronModulePaths(r))}}},t}(rp),tv=function(e){function t(t){var r=e.call(this)||this;return r._messageSandbox=t,r.CONSOLE_METH_CALLED_EVENT="hammerhead|event|console-meth-called",r._serviceMsgReceivedEventCallback=function(e){var t=e.message;t.cmd===r.CONSOLE_METH_CALLED_EVENT&&r.emit(r.CONSOLE_METH_CALLED_EVENT,{meth:t.meth,line:t.line})},r}return m(t,e),t.prototype._toString=function(e){try{return String(e)}catch(t){return"object"}},t.prototype._proxyConsoleMeth=function(e){var t=this;x(this.window.console,e,function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(!At(window,window.top)){var o=Pt(window),i=Ya.arrayMap.call(r,t._toString).join(" ");o?(t.emit(t.CONSOLE_METH_CALLED_EVENT,{meth:e,line:i,inIframe:!0}),t._messageSandbox.sendServiceMsg({meth:e,line:i,cmd:t.CONSOLE_METH_CALLED_EVENT},window.top)):t.emit(t.CONSOLE_METH_CALLED_EVENT,{meth:e,line:i})}t.nativeMethods.consoleMeths[e].apply(t.nativeMethods.console,r)})},t.prototype.attach=function(t){e.prototype.attach.call(this,t),this._proxyConsoleMeth("log"),this._proxyConsoleMeth("info"),this._proxyConsoleMeth("error"),this._proxyConsoleMeth("warn"),this._messageSandbox.on(this._messageSandbox.SERVICE_MSG_RECEIVED_EVENT,this._serviceMsgReceivedEventCallback)},t}(rp),rv="hammerhead|style|is-processed",nv="hammerhead|style|proxy-object",ov="hammerhead|style|proxy-target",iv=function(e){function t(){var r=e.call(this)||this;return r.URL_PROPS=["background","backgroundImage","borderImage","borderImageSource","listStyle","listStyleImage","cursor"],r.DASHED_URL_PROPS=t._generateDashedProps(r.URL_PROPS),r.FEATURES=r._detectBrowserFeatures(),r}return m(t,e),t._convertToDashed=function(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()},t._generateDashedProps=function(e){for(var r=[],n=0,o=e;n<o.length;n++){var i=o[n],s=t._convertToDashed(i);i!==s&&r.push(s)}return r},t.prototype._detectBrowserFeatures=function(){var e={};if(e.css2PropertiesProtoContainsAllProps=!!window.CSS2Properties,e.cssStyleDeclarationProtoContainsUrlProps=this.nativeMethods.objectHasOwnProperty.call(window.CSSStyleDeclaration.prototype,"background"),e.cssStyleDeclarationProtoContainsDashedProps=this.nativeMethods.objectHasOwnProperty.call(window.CSSStyleDeclaration.prototype,"background-image"),e.cssStyleDeclarationContainsAllProps=e.cssStyleDeclarationProtoContainsUrlProps&&e.cssStyleDeclarationProtoContainsDashedProps,!e.css2PropertiesProtoContainsAllProps&&!e.cssStyleDeclarationProtoContainsUrlProps){var t=this.nativeMethods.createElement.call(document,"div"),r=!1,n=this.nativeMethods.objectGetOwnPropertyDescriptor.call(window.Object,t.style,"background");n.configurable&&(delete n.value,delete n.writable,n.set=function(){r=!0},this.nativeMethods.objectDefineProperty(t.style,"background",n),t.style.background="url"),e.propsCannotBeOverridden=!n.configurable||!r}return e},t.prototype._overrideStyleProp=function(e,r){var n=this.nativeMethods,o=t._convertToDashed(r);E(e,r,{getter:function(){var e=n.styleGetPropertyValue.call(this,o);return wh.cleanUp(e,lc)},setter:function(e){"string"==typeof e&&(e=wh.process(e,ic)),n.styleSetProperty.call(this,o,e)}})},t.prototype._overrideStyleInstanceProp=function(e,r){var n=this.nativeMethods,o=t._convertToDashed(r);E(e,r,{getter:function(){var e=n.styleGetPropertyValue.call(this,o);return wh.cleanUp(e,lc)},setter:function(e){"string"==typeof e&&(e=wh.process(e,ic)),n.styleSetProperty.call(this,o,e)}})},t.prototype._processStyleInstance=function(e){var t=e[rv];if(!t){for(var r=0,n=this.DASHED_URL_PROPS;r<n.length;r++){var o=n[r];this._overrideStyleInstanceProp(e,o)}if(!this.FEATURES.cssStyleDeclarationProtoContainsUrlProps)for(var i=0,s=this.URL_PROPS;i<s.length;i++){var o=s[i];this._overrideStyleInstanceProp(e,o)}this.nativeMethods.objectDefineProperty(e,rv,{value:!0})}return e},t.prototype._getStyleProxy=function(e){var t=this,r=e[nv];return r||(r=new this.nativeMethods.Proxy(e,{get:function(e,r){return t.URL_PROPS.indexOf(r)!==-1||t.DASHED_URL_PROPS.indexOf(r)!==-1?wh.cleanUp(e[r],lc):r===ov?e:e[r]},set:function(e,r,n){return t.URL_PROPS.indexOf(r)===-1&&t.DASHED_URL_PROPS.indexOf(r)===-1||"string"==typeof n&&(n=wh.process(n,ic)),e[r]=n,!0}}),this.nativeMethods.objectDefineProperty(e,nv,{value:r})),r},t.prototype._overrideCSSStyleDeclarationFunctionsCtx=function(e){var t=e.CSSStyleDeclaration.prototype,r=function(r){var o=n.nativeMethods.objectGetOwnPropertyDescriptor.call(e.Object,t,r).value;n.nativeMethods.objectHasOwnProperty.call(t,r)&&"function"==typeof o&&(t[r]=function(){return o.apply(this[ov]||this,arguments)},_(t[r],o))},n=this;for(var o in t)r(o)},t.prototype.attach=function(t){e.prototype.attach.call(this,t);var r=this.nativeMethods,n=this;if(E(t[r.htmlElementStylePropOwnerName].prototype,"style",{getter:this.FEATURES.css2PropertiesProtoContainsAllProps||this.FEATURES.cssStyleDeclarationContainsAllProps?null:function(){var e=r.htmlElementStyleGetter.call(this);return n.FEATURES.propsCannotBeOverridden?n._getStyleProxy(e):n._processStyleInstance(e)},setter:r.htmlElementStyleSetter?function(e){var t=wh.process(e,ic);r.htmlElementStyleSetter.call(this,t)}:null}),this.FEATURES.css2PropertiesProtoContainsAllProps){for(var o=0,i=this.URL_PROPS;o<i.length;o++){var s=i[o];this._overrideStyleProp(t.CSS2Properties.prototype,s)}for(var a=0,l=this.DASHED_URL_PROPS;a<l.length;a++){var s=l[a];this._overrideStyleProp(t.CSS2Properties.prototype,s)}}else{if(this.FEATURES.cssStyleDeclarationProtoContainsUrlProps)for(var c=0,p=this.URL_PROPS;c<p.length;c++){var s=p[c];this._overrideStyleProp(t.CSSStyleDeclaration.prototype,s)}if(this.FEATURES.cssStyleDeclarationProtoContainsDashedProps)for(var u=0,h=this.DASHED_URL_PROPS;u<h.length;u++){var s=h[u];this._overrideStyleProp(t.CSSStyleDeclaration.prototype,s)}}E(t.CSSStyleDeclaration.prototype,"cssText",{getter:function(){var e=r.styleCssTextGetter.call(this);return wh.cleanUp(e,lc)},setter:function(e){"string"==typeof e&&(e=wh.process(e,ic)),r.styleCssTextSetter.call(this,e)}}),x(t.CSSStyleSheet.prototype,"insertRule",function(e,t){var n=wh.process(e,ic);return r.styleInsertRule.call(this,n,t)}),x(t.CSSStyleDeclaration.prototype,"getPropertyValue",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.styleGetPropertyValue.apply(this,e);return wh.cleanUp(n,lc)}),x(t.CSSStyleDeclaration.prototype,"setProperty",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[1];return"string"==typeof n&&(e[1]=wh.process(n,ic)),r.styleSetProperty.apply(this,e)}),x(t.CSSStyleDeclaration.prototype,"removeProperty",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.styleRemoveProperty.apply(this,e);return wh.cleanUp(n,lc)}),this.FEATURES.propsCannotBeOverridden&&this._overrideCSSStyleDeclarationFunctionsCtx(t)},t}(rp),sv="__BROWSERTOOLS_CONSOLE_SAFEFUNC",av=function(e){function t(){var t=e.call(this)||this;return t._isDebuggerInitiator=!1,t}return m(t,e),t.prototype._createFuncWrapper=function(e){var t=this;return"function"==typeof e?function(e,r){var n=t;return function(){n._isDebuggerInitiator=!0;try{var t=e(arguments);return n._isDebuggerInitiator=!1,t}catch(o){r(o)}n._isDebuggerInitiator=!1}}:e},t.prototype.isDebuggerInitiator=function(){return this._isDebuggerInitiator},t.prototype.attach=function(e){var t=this;if(pl){var r=this.nativeMethods.objectGetOwnPropertyDescriptor(e,sv),n=void 0;r&&!r.value||(r&&(n=this._createFuncWrapper(r.value)),this.nativeMethods.objectDefineProperty(e,sv,{set:function(e){n=t._createFuncWrapper(e)},get:function(){return n}}))}},t}(rp),lv="width=500px, height=500px",cv="hammerhead|command|store-child-window",pv=function(e){function t(t,r){var n=e.call(this)||this;return n._messageSandbox=t,n._listeners=r,n.WINDOW_OPENED_EVENT="hammerhead|event|window-opened",n}return m(t,e),t._shouldOpenInNewWindowOnElementAction=function(e,t){var r="string"==typeof Ya.getAttribute.call(e,"download");if(r)return!1;var n=this._calculateTargetForElement(e);return this._shouldOpenInNewWindow(n,t)},t._shouldOpenInNewWindow=function(e,t){return e=e||t,e=e.toLowerCase(),cs(e)?"_blank"===e:!Gi(e)},t.prototype._openUrlInNewWindow=function(e,t,r,n){var o=Aa().toString();r=r||lv,t=t||o;var i=ve(e,o),s=n||this.window,a=Ya.windowOpen.call(s,i,t,r);return this._tryToStoreChildWindow(a,sa()),this.emit(this.WINDOW_OPENED_EVENT,{windowId:o,window:a}),{windowId:o,wnd:a}},t._calculateTargetForElement=function(e){var t=Ya.querySelector.call(xt(e),"base");return e.target||(null===t||void 0===t?void 0:t.target)},t.prototype.handleClickOnLinkOrArea=function(e){var r=this;Yl.get().allowMultipleWindows&&(this._listeners.initElementListening(e,["click"]),this._listeners.addInternalEventAfterListener(e,["click"],function(n){if(!n.defaultPrevented&&t._shouldOpenInNewWindowOnElementAction(e,tm.linkOrArea)){var o=Ya.anchorHrefGetter.call(e);n.preventDefault(),r._openUrlInNewWindowIfNotPrevented(o,n)}}))},t.prototype._openUrlInNewWindowIfNotPrevented=function(e,t){var r=this,n=!1,o=!1,i=function(){n=!0,em.getNativeRemoveEventListener(window).call(window,"click",i),o||r._openUrlInNewWindow(e)};em.getNativeAddEventListener(window).call(window,"click",i);var s=t.preventDefault;t.preventDefault=function(){return o=!0,s.call(t)},Pa().then(function(){n||i()})},t.prototype.handleWindowOpen=function(e,r){var n=r[0],o=r[1],i=r[2];if(Yl.get().allowMultipleWindows&&t._shouldOpenInNewWindow(o,tm.windowOpen)){var s=this._openUrlInNewWindow(n,o,i,e);return s.wnd}return Ya.windowOpen.apply(e,r)},t.prototype._handleFormSubmitting=function(e){var r=this;Yl.get().allowMultipleWindows&&(this._listeners.initElementListening(e,["submit"]),this._listeners.addInternalEventBeforeListener(e,["submit"],function(e){var n=Ya.eventTargetGetter.call(e);if(lr(n)&&t._shouldOpenInNewWindowOnElementAction(n,tm.form)){var o=ic(Fl),i=r._openUrlInNewWindow(o),s=Ya.formActionGetter.call(n),a=ve(s,i.windowId);Ya.formActionSetter.call(n,a),Ya.formTargetSetter.call(n,i.windowId)}}))},t.prototype._tryToStoreChildWindow=function(e,t){try{return t[Ga.hammerhead].sandbox.childWindow.addWindow(e),!0}catch(r){return!1}},t.prototype._setupChildWindowCollecting=function(e){var t=this;if(!Pt(e)){var r=sa();e!==r?this._tryToStoreChildWindow(e,r)||this._messageSandbox.sendServiceMsg({cmd:cv},r):(this._childWindows=new Set,this._messageSandbox.on(this._messageSandbox.SERVICE_MSG_RECEIVED_EVENT,function(e){var r=e.message,n=e.source;r.cmd===cv&&t._childWindows.add(n)}))}},t.prototype.addWindow=function(e){this._childWindows.add(e)},t.prototype.getChildWindows=function(){var e=this,t=[];return this._childWindows.forEach(function(r){r.parent?t.push(r):e._childWindows["delete"](r)}),t},t.prototype.attach=function(t){e.prototype.attach.call(this,t,t.document),this._handleFormSubmitting(t),this._setupChildWindowCollecting(t)},t}(rp),uv=function(t){function r(e){var r=t.call(this)||this;Is(window,r),Ui(window);var n=new av,o=new em,i=new Ag,s=new Ig(o),a=new Tg(o,s),l=new Cg,c=new qm(l),p=new Pg,u=new pv(a,o),h=new Bm(a,s,u);return r.ieDebug=n,r.cookie=h,r.childWindow=u,r.storageSandbox=new Zg(o,s,l),r.xhr=new Mg(h),r.fetch=new jg(h),r.iframe=new rd(i,h),r.shadowUI=new Mf(i,a,r.iframe,n),r.upload=new Kf(o,l,e),r.event=new ug(o,l,c,s,a,r.shadowUI,p),r.node=new bf(i,r.iframe,r.event,r.upload,r.shadowUI,h,r.childWindow),r.codeInstrumentation=new _m(r.event,a),r.console=new tv(a),r.style=new iv,r.unload=s,El&&(r.electron=new ev),r.windowStorage=Gd,r}return m(r,t),r._canUseSandbox=function(e){try{e.off()}catch(t){return!1}return!0},r.prototype.onIframeDocumentRecreated=function(e){if(e){var t=Ya.contentWindowGetter.call(e),n=Ya.contentDocumentGetter.call(e),o=Ns(t);o&&r._canUseSandbox(o)?t[Ga.sandboxIsReattached]&&o.document===n||o.reattach(t,n):(t[Ga.iframeNativeMethods]&&delete t[Ga.iframeNativeMethods],this.nativeMethods.restoreDocumentMeths(t,n),this.iframe.onIframeBeganToRun(e))}},r.prototype.reattach=function(e,t){Ya.objectDefineProperty(e,Ga.sandboxIsReattached,{value:!0,configurable:!1}),pl&&this.nativeMethods.refreshIfNecessary(t,e),Xl.init(t),this.event.reattach(e),this.shadowUI.attach(e),this.codeInstrumentation.attach(e),this.node.doc.attach(e,t),this.console.attach(e),this.childWindow.attach(e)},r.prototype.attach=function(r){var n=this;t.prototype.attach.call(this,r),Ya.objectDefineProperty(r,Ga.sandboxIsReattached,{value:!0,configurable:!1}),Xl.init(this.document),this.iframe.on(this.iframe.EVAL_HAMMERHEAD_SCRIPT_EVENT,function(t){Ya.contentWindowGetter.call(t.iframe).eval("("+e.toString()+")();//# sourceURL=hammerhead.js")}),this.node.mutation.on(this.node.mutation.DOCUMENT_CLEANED_EVENT,function(e){return n.reattach(e.window,e.document)}),this.ieDebug.attach(r),this.iframe.attach(r),this.xhr.attach(r),this.fetch.attach(r),this.storageSandbox.attach(r),this.codeInstrumentation.attach(r),this.shadowUI.attach(r),this.event.attach(r),this.node.attach(r),this.upload.attach(r),this.cookie.attach(r),this.console.attach(r),this.style.attach(r),this.childWindow.attach(r),this.electron&&this.electron.attach(r),this.unload.on(this.unload.UNLOAD_EVENT,function(){return n.dispose()})},r.prototype._removeInternalProperties=function(){var e=this.event.listeners.listeningCtx.removeListeningElement;e(this.window),e(this.document);for(var t=Ya.querySelectorAll.call(this.document,"*"),r=Ya.nodeListLengthGetter.call(t),n=0;n<r;n++){var o=t[n];delete o[Ga.processedContext],e(o)}},r.prototype.dispose=function(){this.event.hover.dispose(),this.event.focusBlur.dispose(),ji(),Ds(),Xl.dispose(this.document),this.storageSandbox.dispose(),this._removeInternalProperties()},r}(rp),hv=50,dv=function(){function e(){this._activeServiceMsgCount=0}return e._getStoredMessages=function(){var e=Ya.winLocalStorageGetter.call(window),t=Ya.storageGetItem.call(e,Yl.get().sessionId);return t?pu(t):[]},e._storeMessage=function(t){var r=e._getStoredMessages(),n=Ya.winLocalStorageGetter.call(window);r.push(t),Ya.storageSetItem.call(n,Yl.get().sessionId,uu(r))},e._removeMessageFromStore=function(t){for(var r=e._getStoredMessages(),n=Ya.winLocalStorageGetter.call(window),o=0;o<r.length;o++)if(r[o].cmd===t){r.splice(o,1);break}Ya.storageSetItem.call(n,Yl.get().sessionId,uu(r))},e.prototype.batchUpdate=function(){var t=e._getStoredMessages();if(!t.length)return Ua.resolve();var r=[],n=Ya.winLocalStorageGetter.call(window);Ya.storageRemoveItem.call(n,Yl.get().sessionId);for(var o=0,i=t;o<i.length;o++){var s=i[o];r.push(this.queuedAsyncServiceMsg(s))}return Ua.all(r)},e.prototype.waitForServiceMessagesCompleted=function(e){var t=this;return new Ua(function(r){if(!t._activeServiceMsgCount)return void r();var n=null,o=Ya.setTimeout.call(window,function(){Ya.clearInterval.call(window,n),r()},e);n=Ya.setInterval.call(window,function(){t._activeServiceMsgCount||(Ya.clearInterval.call(window,n),Ya.clearTimeout.call(window,o),r())},hv)})},e}(),fv="hammerhead|transport|set-initial-worker-settings",mv="hammerhead|transport|handle-port",gv="hammerhead|command|get-message-port",vv="hammerhead|command|set-message-port",yv=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r._transportWorker=null,r._idGenerator=new zh,r._messageCallbacks=new Map,r._queue=[],r._shouldAddReferer=t._shouldAddReferer(),r}return m(t,e),t.prototype.start=function(e){var t=this;window===window.top?(this._transportWorker=new Ya.Worker(Yl.get().transportWorkerUrl,{name:"Transport"}),this._transportWorker.postMessage({cmd:fv,sessionId:Yl.get().sessionId,serviceMsgUrl:Yl.get().serviceMsgUrl}),this._transportWorker.addEventListener("message",function(e){return t._onWorkerMessage(e)}),this._processQueue()):e.sendServiceMsg({cmd:gv},window.top),e.on(e.SERVICE_MSG_RECEIVED_EVENT,function(r){var n=r.message,o=r.source,i=r.ports;if(n.cmd===gv){var s=new Ya.MessageChannel;e.sendServiceMsg({cmd:vv},o,[s.port1]),t._transportWorker.postMessage({cmd:mv},[s.port2])}else n.cmd===vv&&(t._transportWorker=i[0],t._transportWorker.onmessage=function(e){return t._onWorkerMessage(e)},t._processQueue())})},t.prototype._processQueue=function(){for(var e=0,t=this._queue;e<t.length;e++){var r=t[e];this._transportWorker.postMessage(r)}this._queue.length=0},t._shouldAddReferer=function(){var e=gt(window);return e&&Ht(e)},t.prototype._onWorkerMessage=function(e){var t=e.data,r=t.id,n=t.result;this._messageCallbacks.has(r)&&(this._messageCallbacks.get(r)(n.err,n.data),this._messageCallbacks["delete"](r))},t.prototype.asyncServiceMsg=function(e,t){var r=this;return void 0===t&&(t=!1),new Ua(function(n,o){var i=r._idGenerator.increment();++r._activeServiceMsgCount,r._shouldAddReferer&&(e.referer=Yl.get().referer),r._messageCallbacks.set(i,function(t,i){--r._activeServiceMsgCount,t?(e.disableResending||!yl&&!fl||(dv._removeMessageFromStore(e.cmd),dv._storeMessage(e),n()),e.allowRejecting&&o(new Error(t))):n(i)}),r._transportWorker?r._transportWorker.postMessage({id:i,queued:t,msg:e}):r._queue.push({id:i,queued:t,msg:e})})},t.prototype.queuedAsyncServiceMsg=function(e){return this.asyncServiceMsg(e,!0)},t}(dv),Ev=function(e){function t(t,r,n){var o=e.call(this)||this;return o._eventSandbox=t,o._codeInstrumentation=r,o._elementSandbox=n,o.PAGE_NAVIGATION_TRIGGERED_EVENT="hammerhead|event|page-navigation-triggered",o._lastLocationValue=window.location.toString(),o}return m(t,e),t.prototype._formWatch=function(e,r){var n=function(e){var r=t._getTargetWindow(e);t._onNavigationTriggeredInWindow(r,Ya.formActionGetter.call(e))};e.on(e.BEFORE_FORM_SUBMIT_EVENT,function(e){return n(e.form)}),r.listeners.initElementListening(window,["submit"]),r.listeners.addInternalEventBeforeListener(window,["submit"],function(e){var t=!1,o=Ya.eventTargetGetter.call(e);if(lr(o)){var i=function(r){t=t||r===e};r.on(r.EVENT_PREVENTED_EVENT,i),Pa().then(function(){r.off(r.EVENT_PREVENTED_EVENT,i),e.defaultPrevented||t||n(o)})}})},t._getTargetWindow=function(e){var t=Ya.getAttribute.call(e,Vh.getStoredAttrName("target"))||Ya.getAttribute.call(e,"target")||"_self";switch(t){case"_top":return window.top;case"_parent":return window.parent;case"_self":return window;default:return Gi(t)}},t.prototype._linkWatch=function(e){e.listeners.initElementListening(window,["click"]),e.listeners.addInternalEventBeforeListener(window,["click"],function(r){var n=Ya.eventTargetGetter.call(r),o=Rr(n)?n:zr(n,"a");if(o&&!vr(o)){var i=!1,s=t._getTargetWindow(o),a=Ya.anchorHrefGetter.call(o),l=function(e){i=i||e===r};e.on(e.EVENT_PREVENTED_EVENT,l),Pa().then(function(){e.off(e.EVENT_PREVENTED_EVENT,l),r.defaultPrevented||i||t._onNavigationTriggeredInWindow(s,a)})}})},t.prototype._locationWatch=function(e){var t=this,r=e._locationAccessorsInstrumentation,n=function(e){return t.onNavigationTriggered(e)};r.on(r.LOCATION_CHANGED_EVENT,n)},t._onNavigationTriggeredInWindow=function(e,t){try{e[Ga.hammerhead].pageNavigationWatch.onNavigationTriggered(t)}catch(r){}},t.prototype.onNavigationTriggered=function(e){var t=this._lastLocationValue;if(this._lastLocationValue=window.location.toString(),(e===t||"#"!==e.charAt(0)&&!Oe(t,e))&&!Vh.isJsProtocol(e)){var r=H(e);r&&this.emit(this.PAGE_NAVIGATION_TRIGGERED_EVENT,r.destUrl)}},t.prototype.start=function(){this._locationWatch(this._codeInstrumentation),this._linkWatch(this._eventSandbox),this._formWatch(this._elementSandbox,this._eventSandbox)},t}(bl),Sv="."+xl.script,bv=function(){
  function e(){var e=this;this.win=null,this.transport=new yv,this.sandbox=new uv(this.transport),this.pageNavigationWatch=new Ev(this.sandbox.event,this.sandbox.codeInstrumentation,this.sandbox.node.element),this.EVENTS={beforeFormSubmit:this.sandbox.node.element.BEFORE_FORM_SUBMIT_EVENT,beforeBeforeUnload:this.sandbox.event.unload.BEFORE_BEFORE_UNLOAD_EVENT,beforeUnload:this.sandbox.event.unload.BEFORE_UNLOAD_EVENT,unload:this.sandbox.event.unload.UNLOAD_EVENT,bodyCreated:this.sandbox.node.mutation.BODY_CREATED_EVENT,documentCleaned:this.sandbox.node.mutation.DOCUMENT_CLEANED_EVENT,uncaughtJsError:this.sandbox.node.win.UNCAUGHT_JS_ERROR_EVENT,unhandledRejection:this.sandbox.node.win.UNHANDLED_REJECTION_EVENT,startFileUploading:this.sandbox.upload.START_FILE_UPLOADING_EVENT,endFileUploading:this.sandbox.upload.END_FILE_UPLOADING_EVENT,evalIframeScript:this.sandbox.iframe.EVAL_EXTERNAL_SCRIPT_EVENT,xhrCompleted:this.sandbox.xhr.XHR_COMPLETED_EVENT,xhrError:this.sandbox.xhr.XHR_ERROR_EVENT,beforeXhrSend:this.sandbox.xhr.BEFORE_XHR_SEND_EVENT,fetchSent:this.sandbox.fetch.FETCH_REQUEST_SENT_EVENT,pageNavigationTriggered:this.pageNavigationWatch.PAGE_NAVIGATION_TRIGGERED_EVENT,scriptElementAdded:this.sandbox.node.element.SCRIPT_ELEMENT_ADDED_EVENT,consoleMethCalled:this.sandbox.console.CONSOLE_METH_CALLED_EVENT,windowOpened:this.sandbox.childWindow.WINDOW_OPENED_EVENT},this.PROCESSING_INSTRUCTIONS={dom:{script:Ep,internal_attributes:_l,internal_props:Ga}},this.SHADOW_UI_CLASS_NAME=xl,this.SESSION_COMMAND=Vf,this.EventEmitter=bl,this.doUpload=function(t,r){return e.sandbox.upload.doUpload(t,r)},this.createNativeXHR=Mg.createNativeXHR,this.processScript=vi,this.Promise=Ua,this.json=hu,this.nativeMethods=this.sandbox.nativeMethods,this.shadowUI=this.sandbox.shadowUI,this.storages=this.sandbox.storageSandbox,this.eventSandbox={listeners:this.sandbox.event.listeners,hover:this.sandbox.event.hover,focusBlur:this.sandbox.event.focusBlur,elementEditingWatcher:this.sandbox.event.elementEditingWatcher,eventSimulator:this.sandbox.event.eventSimulator,selection:this.sandbox.event.selection,message:this.sandbox.event.message,timers:this.sandbox.event.timers,DataTransfer:this.sandbox.event.DataTransfer,DragDataStore:this.sandbox.event.DragDataStore};var t={script:ah,header:bu,instrumentation:Pp};this.utils={browser:Sl,dom:tp,event:tf,position:_f,style:Dc,types:ed,trim:T,extend:ma,html:Nd,url:pc,featureDetection:Oc,destLocation:Zl,overriding:Ka,cookie:Fm,getMimeType:As,urlResolver:Xl,processing:t,removeInjectedScript:Ia},this.sharedUtils={cookie:Im,url:zl,headers:kg,stackProcessing:iu,selfRemovingScripts:od},this.settings=Yl,this.sandboxes={XhrSandbox:Mg,StyleSandbox:iv,ShadowUISandbox:Mf,ElectronSandbox:ev,UploadSandbox:Kf,ChildWindowSandbox:pv},this.sandboxUtils={hiddenInfo:Kd,listeningContext:Qf,backup:zf,domMutationTracker:af,defaultTarget:tm,UploadInfoManager:Wf,FileListWrapper:Uf,EventListeners:em,StorageWrapper:Wg,CodeInstrumentation:_m,LocationInstrumentation:Zh,LocationWrapper:Yh},this.processors={styleProcessor:wh,domProcessor:qd,DomProcessor:Vh}}return e.prototype._getEventOwner=function(e){switch(e){case this.EVENTS.pageNavigationTriggered:return this.pageNavigationWatch;case this.EVENTS.beforeUnload:case this.EVENTS.beforeBeforeUnload:case this.EVENTS.unload:return this.sandbox.event.unload;case this.EVENTS.bodyCreated:case this.EVENTS.documentCleaned:return this.sandbox.node.mutation;case this.EVENTS.uncaughtJsError:case this.EVENTS.unhandledRejection:return this.sandbox.node.win;case this.EVENTS.startFileUploading:case this.EVENTS.endFileUploading:return this.sandbox.upload;case this.EVENTS.evalIframeScript:return this.sandbox.iframe;case this.EVENTS.xhrCompleted:case this.EVENTS.xhrError:case this.EVENTS.beforeXhrSend:return this.sandbox.xhr;case this.EVENTS.beforeFormSubmit:case this.EVENTS.scriptElementAdded:return this.sandbox.node.element;case this.EVENTS.fetchSent:return this.sandbox.fetch;case this.EVENTS.consoleMethCalled:return this.sandbox.console;case this.EVENTS.windowOpened:return this.sandbox.childWindow;default:return null}},e._cleanLocalStorageServiceData=function(e,t){var r=Ya.winLocalStorageGetter.call(t);Ya.storageRemoveItem.call(r,e)},e.prototype.on=function(e,t){var r=this._getEventOwner(e);r&&r.on(e,t)},e.prototype.off=function(e,t){var r=this._getEventOwner(e);r&&r.off(e,t)},e.prototype.navigateTo=function(e,t){var r=this,n=me(e,this.win);n&&(this.win.location=n,t&&this.sandbox.node.win.on(this.sandbox.node.win.HASH_CHANGE_EVENT,function(){r.win.location.reload(!0)}))},e.prototype.start=function(t,r){this.win=r||window,Yl.set(t),t.isFirstPageLoad&&e._cleanLocalStorageServiceData(t.sessionId,this.win),qd.forceProxySrcForImage=t.forceProxySrcForImage,qd.allowMultipleWindows=t.allowMultipleWindows,this.transport.start(this.eventSandbox.message),this.sandbox.attach(this.win),this.pageNavigationWatch.start()},e}(),_v=new bv;Ya.objectDefineProperty(window,Ga.hammerhead,{value:_v,configurable:!0});var wv=_v;return wv}()}(),window["%hammerhead%"].utils.removeInjectedScript();