varr="undefined"!=typeofwindow&&"undefined"!=typeofdocument&&"undefined"!=typeofnavigator,n=function(){for(vart=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(r&&navigator.userAgent.indexOf(t[e])>=0)return1;return0}();varo=r&&window.Promise?function(t){vare=!1;returnfunction(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){vare=!1;returnfunction(){e||(e=!0,setTimeout((function(){e=!1,t()}),n))}};functiona(t){returnt&&"[object Function]"==={}.toString.call(t)}functioni(t,e){if(1!==t.nodeType)return[];varr=t.ownerDocument.defaultView.getComputedStyle(t,null);returne?r[e]:r}functionl(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}functions(t){if(!t)returndocument.body;switch(t.nodeName){case"HTML":case"BODY":returnt.ownerDocument.body;case"#document":returnt.body}vare=i(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(r+o+n)?t:s(l(t))}functionc(t){returnt&&t.referenceNode?t.referenceNode:t}vard=r&&!(!window.MSInputMethodContext||!document.documentMode),u=r&&/MSIE 10/.test(navigator.userAgent);functionp(t){return11===t?d:10===t?u:d||u}functionh(t){if(!t)returndocument.documentElement;for(vare=p(10)?document.body:null,r=t.offsetParent||null;r===e&&t.nextElementSibling;)r=(t=t.nextElementSibling).offsetParent;varn=r&&r.nodeName;returnn&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===i(r,"position")?h(r):r:t?t.ownerDocument.documentElement:document.documentElement}functionf(t){returnnull!==t.parentNode?f(t.parentNode):t}functionm(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))returndocument.documentElement;varr=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?t:e,o=r?e:t,a=document.createRange();a.setStart(n,0),a.setEnd(o,0);vari,l,s=a.commonAncestorContainer;if(t!==s&&e!==s||n.contains(o))return"BODY"===(l=(i=s).nodeName)||"HTML"!==l&&h(i.firstElementChild)!==i?h(s):s;varc=f(t);returnc.host?m(c.host,e):m(t,f(e).host)}functionb(t){vare=arguments.length>1&&void0!==arguments[1]?arguments[1]:"top",r="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){varo=t.ownerDocument.documentElement,a=t.ownerDocument.scrollingElement||o;returna[r]}returnt[r]}functiong(t,e){varr=arguments.length>2&&void0!==arguments[2]&&arguments[2],n=b(e,"top"),o=b(e,"left"),a=r?-1:1;returnt.top+=n*a,t.bottom+=n*a,t.left+=o*a,t.right+=o*a,t}functionv(t,e){varr="x"===e?"Left":"Top",n="Left"===r?"Right":"Bottom";returnparseFloat(t["border"+r+"Width"])+parseFloat(t["border"+n+"Width"])}functiony(t,e,r,n){returnMath.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],p(10)?parseInt(r["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}functionx(t){vare=t.body,r=t.documentElement,n=p(10)&&getComputedStyle(r);return{height:y("Height",e,r,n),width:y("Width",e,r,n)}}varw=function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")},k=function(){functiont(t,e){for(varr=0;r<e.length;r++){varn=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}returnfunction(e,r,n){returnr&&t(e.prototype,r),n&&t(e,n),e}}(),z=function(t,e,r){returneint?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},B=Object.assign||function(t){for(vare=1;e<arguments.length;e++){varr=arguments[e];for(varninr)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}returnt};functionC(t){returnB({},t,{right:t.left+t.width,bottom:t.top+t.height})}functionM(t){vare={};try{if(p(10)){e=t.getBoundingClientRect();varr=b(t,"top"),n=b(t,"left");e.top+=r,e.left+=n,e.bottom+=r,e.right+=n}elsee=t.getBoundingClientRect()}catch(t){}varo={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},a="HTML"===t.nodeName?x(t.ownerDocument):{},l=a.width||t.clientWidth||o.width,s=a.height||t.clientHeight||o.height,c=t.offsetWidth-l,d=t.offsetHeight-s;if(c||d){varu=i(t);c-=v(u,"x"),d-
varn=r(215),o=r(216),a=r(217);functioni(){returns.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functionl(t,e){if(i()<e)thrownewRangeError("Invalid typed array length");returns.TYPED_ARRAY_SUPPORT?(t=newUint8Array(e)).__proto__=s.prototype:(null===t&&(t=news(e)),t.length=e),t}functions(t,e,r){if(!(s.TYPED_ARRAY_SUPPORT||thisinstanceofs))returnnews(t,e,r);if("number"==typeoft){if("string"==typeofe)thrownewError("If encoding is specified then the first argument must be a string");returnu(this,t)}returnc(this,t,e,r)}functionc(t,e,r,n){if("number"==typeofe)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&einstanceofArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)thrownewRangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))thrownewRangeError("'length' is out of bounds");e=void0===r&&void0===n?newUint8Array(e):void0===n?newUint8Array(e,r):newUint8Array(e,r,n);s.TYPED_ARRAY_SUPPORT?(t=e).__proto__=s.prototype:t=p(t,e);returnt}(t,e,r,n):"string"==typeofe?function(t,e,r){"string"==typeofr&&""!==r||(r="utf8");if(!s.isEncoding(r))thrownewTypeError('"encoding" must be a valid string encoding');varn=0|f(e,r),o=(t=l(t,n)).write(e,r);o!==n&&(t=t.slice(0,o));returnt}(t,e,r):function(t,e){if(s.isBuffer(e)){varr=0|h(e.length);return0===(t=l(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeofArrayBuffer&&e.bufferinstanceofArrayBuffer||"length"ine)return"number"!=typeofe.length||(n=e.length)!=n?l(t,0):p(t,e);if("Buffer"===e.type&&a(e.data))returnp(t,e.data)}varn;thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}functiond(t){if("number"!=typeoft)thrownewTypeError('"size" argument must be a number');if(t<0)thrownewRangeError('"size" argument must not be negative')}functionu(t,e){if(d(e),t=l(t,e<0?0:0|h(e)),!s.TYPED_ARRAY_SUPPORT)for(varr=0;r<e;++r)t[r]=0;returnt}functionp(t,e){varr=e.length<0?0:0|h(e.length);t=l(t,r);for(varn=0;n<r;n+=1)t[n]=255&e[n];returnt}functionh(t){if(t>=i())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return0|t}functionf(t,e){if(s.isBuffer(t))returnt.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(t)||tinstanceofArrayBuffer))returnt.byteLength;"string"!=typeoft&&(t=""+t);varr=t.length;if(0===r)return0;for(varn=!1;;)switch(e){case"ascii":case"latin1":case"binary":returnr;case"utf8":case"utf-8":casevoid0:returnj(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*r;case"hex":returnr>>>1;case"base64":returnR(t).length;default:if(n)returnj(t).length;e=(""+e).toLowerCase(),n=!0}}functionm(t,e,r){varn=!1;if((void0===e||e<0)&&(e=0),e>this.length)return"";if((void0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":returnI(this,e,r);case"utf8":case"utf-8":returnM(this,e,r);case"ascii":returnS(this,e,r);case"latin1":case"binary":returnA(this,e,r);case"base64":returnC(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return_(this,e,r);default:if(n)thrownewTypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}functionb(t,e,r){varn=t[e];t[e]=t[r],t[r]=n}functiong(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeofr?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}elseif(r<0){if(!o)return-1;r=0}if("string"==typeofe&&(e=s.from(e,n)),s.isBuffer(e))return0===e.length?-1:v(t,e,r,n,o);if("number"==typeofe)returne&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeofUint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,o);thrownewTypeError("val must be string, number or Buffer")}functionv(t,e,r,n,o){vara,i=1,l=t.length,s=e.length;if(void0!==n&&("ucs2"===(n=String(n).toLowerCase())||"