/*! art-dialog@7.0.0 | https://github.com/aui/artDialog */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jQuery")):"function"==typeof define&&define.amd?define(["jQuery"],e):"object"==typeof exports?exports.dialog=e(require("jQuery")):t.dialog=e(t.jQuery)}(this,function(t){return function(t){function e(r){if(o[r])return o[r].exports;var i=o[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var o={};return e.m=t,e.c=o,e.i=function(t){return t},e.d=function(t,o,r){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=15)}([function(e,o){e.exports=t},function(t,e,o){var r=o(7);"string"==typeof r&&(r=[[t.i,r,""]]);o(5)(r,{});r.locals&&(t.exports=r.locals)},function(t,e){t.exports={backdropBackground:"#000",backdropOpacity:.7,content:'<span class="ui-dialog-loading">Loading..</span>',title:"",statusbar:"",button:null,ok:null,cancel:null,okValue:"ok",cancelValue:"cancel",cancelDisplay:!0,width:"",height:"",padding:"",skin:"",quickClose:!1,innerHTML:'<div i="dialog" class="ui-dialog"><div class="ui-dialog-arrow-a"></div><div class="ui-dialog-arrow-b"></div><table class="ui-dialog-grid"><tr><td i="header" class="ui-dialog-header"><button i="close" class="ui-dialog-close">&#215;</button><div i="title" class="ui-dialog-title"></div></td></tr><tr><td i="body" class="ui-dialog-body"><div i="content" class="ui-dialog-content"></div></td></tr><tr><td i="footer" class="ui-dialog-footer"><div i="statusbar" class="ui-dialog-statusbar"></div><div i="button" class="ui-dialog-button"></div></td></tr></table></div>'}},function(t,e,o){function r(){this.destroyed=!1,this.__popup=i("<div />").css({display:"none",position:"absolute",outline:0}).attr("tabindex","-1").html(this.innerHTML).appendTo("body"),this.__backdrop=this.__mask=i("<div />").css({opacity:.7,background:"#000"}),this.node=this.__popup[0],this.backdrop=this.__backdrop[0],n++}var i=o(0),n=0,a=!("minWidth"in i("html")[0].style),s=!a;i.extend(r.prototype,{node:null,backdrop:null,fixed:!1,destroyed:!0,open:!1,returnValue:"",autofocus:!0,align:"bottom left",innerHTML:"",className:"ui-popup",show:function(t){if(this.destroyed)return this;var e=this.__popup,o=this.__backdrop;if(this.__activeElement=this.__getActive(),this.open=!0,this.follow=t||this.follow,!this.__ready){if(e.addClass(this.className).attr("role",this.modal?"alertdialog":"dialog").css("position",this.fixed?"fixed":"absolute"),a||i(window).on("resize",i.proxy(this.reset,this)),this.modal){var n={position:"fixed",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",userSelect:"none",zIndex:this.zIndex||r.zIndex};e.addClass(this.className+"-modal"),s||i.extend(n,{position:"absolute",width:i(window).width()+"px",height:i(document).height()+"px"}),o.css(n).attr({tabindex:"0"}).on("focus",i.proxy(this.focus,this)),this.__mask=o.clone(!0).attr("style","").insertAfter(e),o.addClass(this.className+"-backdrop").insertBefore(e),this.__ready=!0}e.html()||e.html(this.innerHTML)}return e.addClass(this.className+"-show").show(),o.show(),this.reset().focus(),this.__dispatchEvent("show"),this},showModal:function(){return this.modal=!0,this.show.apply(this,arguments)},close:function(t){return!this.destroyed&&this.open&&(void 0!==t&&(this.returnValue=t),this.__popup.hide().removeClass(this.className+"-show"),this.__backdrop.hide(),this.open=!1,this.blur(),this.__dispatchEvent("close")),this},remove:function(){if(this.destroyed)return this;this.__dispatchEvent("beforeremove"),r.current===this&&(r.current=null),this.__popup.remove(),this.__backdrop.remove(),this.__mask.remove(),a||i(window).off("resize",this.reset),this.__dispatchEvent("remove");for(var t in this)delete this[t];return this},reset:function(){var t=this.follow;return t?this.__follow(t):this.__center(),this.__dispatchEvent("reset"),this},focus:function(){var t=this.node,e=this.__popup,o=r.current,n=this.zIndex=r.zIndex++;if(o&&o!==this&&o.blur(!1),!i.contains(t,this.__getActive())){var a=e.find("[autofocus]")[0];!this._autofocus&&a?this._autofocus=!0:a=t,this.__focus(a)}return e.css("zIndex",n),r.current=this,e.addClass(this.className+"-focus"),this.__dispatchEvent("focus"),this},blur:function(){var t=this.__activeElement;return arguments[0]!==!1&&this.__focus(t),this._autofocus=!1,this.__popup.removeClass(this.className+"-focus"),this.__dispatchEvent("blur"),this},addEventListener:function(t,e){return this.__getEventListener(t).push(e),this},removeEventListener:function(t,e){for(var o=this.__getEventListener(t),r=0;r<o.length;r++)e===o[r]&&o.splice(r--,1);return this},__getEventListener:function(t){var e=this.__listener;return e||(e=this.__listener={}),e[t]||(e[t]=[]),e[t]},__dispatchEvent:function(t){var e=this.__getEventListener(t);this["on"+t]&&this["on"+t]();for(var o=0;o<e.length;o++)e[o].call(this)},__focus:function(t){try{this.autofocus&&!/^iframe$/i.test(t.nodeName)&&t.focus()}catch(t){}},__getActive:function(){try{var t=document.activeElement,e=t.contentDocument;return e&&e.activeElement||t}catch(t){}},__center:function(){var t=this.__popup,e=i(window),o=i(document),r=this.fixed,n=r?0:o.scrollLeft(),a=r?0:o.scrollTop(),s=e.width(),u=e.height(),f=t.width(),l=t.height(),p=(s-f)/2+n,h=382*(u-l)/1e3+a,c=t[0].style;c.left=Math.max(parseInt(p),n)+"px",c.top=Math.max(parseInt(h),a)+"px"},__follow:function(t){var e=t.parentNode&&i(t),o=this.__popup;if(this.__followSkin&&o.removeClass(this.__followSkin),e){var r=e.offset();if(r.left*r.top<0)return this.__center()}var n=this,a=this.fixed,s=i(window),u=i(document),f=s.width(),l=s.height(),p=u.scrollLeft(),h=u.scrollTop(),c=o.width(),d=o.height(),g=e?e.outerWidth():0,b=e?e.outerHeight():0,w=this.__offset(t),v=w.left,y=w.top,m=a?v-p:v,_=a?y-h:y,x=a?0:p,E=a?0:h,A=x+f-c,k=E+l-d,R={},T=this.align.split(" "),B=this.className+"-",U={top:"bottom",bottom:"top",left:"right",right:"left"},P={top:"top",bottom:"top",left:"left",right:"left"},L=[{top:_-d,bottom:_+b,left:m-c,right:m+g},{top:_,bottom:_-d+b,left:m,right:m-c+g}],S={left:m+g/2-c/2,top:_+b/2-d/2},C={left:[x,A],top:[E,k]};i.each(T,function(t,e){L[t][e]>C[P[e]][1]&&(e=T[t]=U[e]),L[t][e]<C[P[e]][0]&&(T[t]=U[e])}),T[1]||(P[T[1]]="left"===P[T[0]]?"top":"left",L[1][T[1]]=S[P[T[1]]]),B+=T.join("-")+" "+this.className+"-follow",n.__followSkin=B,e&&o.addClass(B),R[P[T[0]]]=parseInt(L[0][T[0]]),R[P[T[1]]]=parseInt(L[1][T[1]]),o.css(R)},__offset:function(t){var e=t.parentNode,o=e?i(t).offset():{left:t.pageX,top:t.pageY};t=e?t:t.target;var r=t.ownerDocument,n=r.defaultView||r.parentWindow;if(n==window)return o;var a=n.frameElement,s=i(r),u=s.scrollLeft(),f=s.scrollTop(),l=i(a).offset(),p=l.left,h=l.top;return{left:o.left+p-u,top:o.top+h-f}}}),r.zIndex=1024,r.current=null,t.exports=r},function(t,e,o){o(1);var r=o(0),i=o(3),n=o(2),a=0,s=new Date-0,u=!("minWidth"in r("html")[0].style),f="createTouch"in document&&!("onmousemove"in document)||/(iPhone|iPad|iPod)/i.test(navigator.userAgent),l=!u&&!f,p=function(t,e,o){var i=t=t||{};"string"!=typeof t&&1!==t.nodeType||(t={content:t,fixed:!f}),t=r.extend(!0,{},p.defaults,t),t.original=i;var n=t.id=t.id||s+a,u=p.get(n);return u?u.focus():(l||(t.fixed=!1),t.quickClose&&(t.modal=!0,t.backdropOpacity=0),r.isArray(t.button)||(t.button=[]),void 0!==o&&(t.cancel=o),t.cancel&&t.button.push({id:"cancel",value:t.cancelValue,callback:t.cancel,display:t.cancelDisplay}),void 0!==e&&(t.ok=e),t.ok&&t.button.push({id:"ok",value:t.okValue,callback:t.ok,autofocus:!0}),p.list[n]=new p.create(t))},h=function(){};h.prototype=i.prototype;var c=p.prototype=new h;p.create=function(t){var e=this;r.extend(this,new i);var o=(t.original,r(this.node).html(t.innerHTML)),n=r(this.backdrop);return this.options=t,this._popup=o,r.each(t,function(t,o){"function"==typeof e[t]?e[t](o):e[t]=o}),t.zIndex&&(i.zIndex=t.zIndex),o.attr({"aria-labelledby":this._$("title").attr("id","title:"+this.id).attr("id"),"aria-describedby":this._$("content").attr("id","content:"+this.id).attr("id")}),this._$("close").css("display",this.cancel===!1?"none":"").attr("title",this.cancelValue).on("click",function(t){e._trigger("cancel"),t.preventDefault()}),this._$("dialog").addClass(this.skin),this._$("body").css("padding",this.padding),t.quickClose&&n.on("onmousedown"in document?"mousedown":"click",function(){return e._trigger("cancel"),!1}),this.addEventListener("show",function(){n.css({opacity:0,background:t.backdropBackground}).animate({opacity:t.backdropOpacity},150)}),this._esc=function(t){var o=t.target,r=o.nodeName,n=/^input|textarea$/i,a=i.current===e,s=t.keyCode;!a||n.test(r)&&"button"!==o.type||27===s&&e._trigger("cancel")},r(document).on("keydown",this._esc),this.addEventListener("remove",function(){r(document).off("keydown",this._esc),delete p.list[this.id]}),a++,p.oncreate(this),this},p.create.prototype=c,r.extend(c,{content:function(t){var e=this._$("content");return"object"==typeof t?(t=r(t),e.empty("").append(t.show()),this.addEventListener("beforeremove",function(){r("body").append(t.hide())})):e.html(t),this.reset()},title:function(t){return this._$("title").text(t),this._$("header")[t?"show":"hide"](),this},width:function(t){return this._$("content").css("width",t),this.reset()},height:function(t){return this._$("content").css("height",t),this.reset()},button:function(t){t=t||[];var e=this,o="",i=0;return this.callbacks={},"string"==typeof t?(o=t,i++):r.each(t,function(t,n){var a=n.id=n.id||n.value,s="";e.callbacks[a]=n.callback,n.display===!1?s=' style="display:none"':i++,o+='<button type="button" i-id="'+a+'"'+s+(n.disabled?" disabled":"")+(n.autofocus?' autofocus class="ui-dialog-autofocus"':"")+">"+n.value+"</button>",e._$("button").on("click","[i-id="+a+"]",function(t){r(this).attr("disabled")||e._trigger(a),t.preventDefault()})}),this._$("button").html(o),this._$("footer")[i?"show":"hide"](),this},statusbar:function(t){return this._$("statusbar").html(t)[t?"show":"hide"](),this},_$:function(t){return this._popup.find("[i="+t+"]")},_trigger:function(t){var e=this.callbacks[t];return"function"!=typeof e||e.call(this)!==!1?this.close().remove():this}}),p.oncreate=r.noop,p.getCurrent=function(){return i.current},p.get=function(t){return void 0===t?p.list:p.list[t]},p.list={},p.defaults=n,t.exports=p},function(t,e,o){function r(t,e){for(var o=0;o<t.length;o++){var r=t[o],i=d[r.id];if(i){i.refs++;for(var n=0;n<i.parts.length;n++)i.parts[n](r.parts[n]);for(;n<r.parts.length;n++)i.parts.push(l(r.parts[n],e))}else{for(var a=[],n=0;n<r.parts.length;n++)a.push(l(r.parts[n],e));d[r.id]={id:r.id,refs:1,parts:a}}}}function i(t){for(var e=[],o={},r=0;r<t.length;r++){var i=t[r],n=i[0],a=i[1],s=i[2],u=i[3],f={css:a,media:s,sourceMap:u};o[n]?o[n].parts.push(f):e.push(o[n]={id:n,parts:[f]})}return e}function n(t,e){var o=w(t.insertInto);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=m[m.length-1];if("top"===t.insertAt)r?r.nextSibling?o.insertBefore(e,r.nextSibling):o.appendChild(e):o.insertBefore(e,o.firstChild),m.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");o.appendChild(e)}}function a(t){t.parentNode.removeChild(t);var e=m.indexOf(t);e>=0&&m.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",f(e,t.attrs),n(t,e),e}function u(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",f(e,t.attrs),n(t,e),e}function f(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}function l(t,e){var o,r,i;if(e.singleton){var n=y++;o=v||(v=s(e)),r=p.bind(null,o,n,!1),i=p.bind(null,o,n,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=u(e),r=c.bind(null,o,e),i=function(){a(o),o.href&&URL.revokeObjectURL(o.href)}):(o=s(e),r=h.bind(null,o),i=function(){a(o)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function p(t,e,o,r){var i=o?"":r.css;if(t.styleSheet)t.styleSheet.cssText=x(e,i);else{var n=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(n,a[e]):t.appendChild(n)}}function h(t,e){var o=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}function c(t,e,o){var r=o.css,i=o.sourceMap,n=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||n)&&(r=_(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var d={},g=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},b=g(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),w=function(t){var e={};return function(o){return void 0===e[o]&&(e[o]=t.call(this,o)),e[o]}}(function(t){return document.querySelector(t)}),v=null,y=0,m=[],_=o(6);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},void 0===e.singleton&&(e.singleton=b()),void 0===e.insertInto&&(e.insertInto="head"),void 0===e.insertAt&&(e.insertAt="bottom");var o=i(t);return r(o,e),function(t){for(var n=[],a=0;a<o.length;a++){var s=o[a],u=d[s.id];u.refs--,n.push(u)}if(t){r(i(t),e)}for(var a=0;a<n.length;a++){var u=n[a];if(0===u.refs){for(var f=0;f<u.parts.length;f++)u.parts[f]();delete d[u.id]}}}};var x=function(){var t=[];return function(e,o){return t[e]=o,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var o=e.protocol+"//"+e.host,r=o+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i))return t;var n;return n=0===i.indexOf("//")?i:0===i.indexOf("/")?o+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(n)+")"})}},function(t,e,o){e=t.exports=o(8)(void 0),e.push([t.i,'',""])},function(t,e,o){(function(e){function o(t,e){var o=t[1]||"",i=t[3];if(!i)return o;if(e){var n=r(i),a=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[o].concat(a).concat([n]).join("\n")}return[o].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+new e(JSON.stringify(t)).toString("base64")+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=o(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var n=this[i][0];"number"==typeof n&&(r[n]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),e.push(a))}},e}}).call(e,o(13).Buffer)},function(t,e){var o={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==o.call(t)}},function(t,e){e.read=function(t,e,o,r,i){var n,a,s=8*i-r-1,u=(1<<s)-1,f=u>>1,l=-7,p=o?i-1:0,h=o?-1:1,c=t[e+p];for(p+=h,n=c&(1<<-l)-1,c>>=-l,l+=s;l>0;n=256*n+t[e+p],p+=h,l-=8);for(a=n&(1<<-l)-1,n>>=-l,l+=r;l>0;a=256*a+t[e+p],p+=h,l-=8);if(0===n)n=1-f;else{if(n===u)return a?NaN:1/0*(c?-1:1);a+=Math.pow(2,r),n-=f}return(c?-1:1)*a*Math.pow(2,n-r)},e.write=function(t,e,o,r,i,n){var a,s,u,f=8*n-i-1,l=(1<<f)-1,p=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,c=r?0:n-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+p>=1?h/u:h*Math.pow(2,1-p),e*u>=2&&(a++,u/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(e*u-1)*Math.pow(2,i),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;t[o+c]=255&s,c+=d,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;t[o+c]=255&a,c+=d,a/=256,f-=8);t[o+c-d]|=128*g}},function(t,e,o){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-r(t)}function n(t){var e,o,i,n,a,s,u=t.length;a=r(t),s=new p(3*u/4-a),i=a>0?u-4:u;var f=0;for(e=0,o=0;e<i;e+=4,o+=3)n=l[t.charCodeAt(e)]<<18|l[t.charCodeAt(e+1)]<<12|l[t.charCodeAt(e+2)]<<6|l[t.charCodeAt(e+3)],s[f++]=n>>16&255,s[f++]=n>>8&255,s[f++]=255&n;return 2===a?(n=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,s[f++]=255&n):1===a&&(n=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,s[f++]=n>>8&255,s[f++]=255&n),s}function a(t){return f[t>>18&63]+f[t>>12&63]+f[t>>6&63]+f[63&t]}function s(t,e,o){for(var r,i=[],n=e;n<o;n+=3)r=(t[n]<<16)+(t[n+1]<<8)+t[n+2],i.push(a(r));return i.join("")}function u(t){for(var e,o=t.length,r=o%3,i="",n=[],a=16383,u=0,l=o-r;u<l;u+=a)n.push(s(t,u,u+a>l?l:u+a));return 1===r?(e=t[o-1],i+=f[e>>2],i+=f[e<<4&63],i+="=="):2===r&&(e=(t[o-2]<<8)+t[o-1],i+=f[e>>10],i+=f[e>>4&63],i+=f[e<<2&63],i+="="),n.push(i),n.join("")}e.byteLength=i,e.toByteArray=n,e.fromByteArray=u;for(var f=[],l=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,d=h.length;c<d;++c)f[c]=h[c],l[h.charCodeAt(c)]=c;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(t,e){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(o=window)}t.exports=o},function(t,e,o){"use strict";(function(t){function r(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function i(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function n(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=a.prototype):(null===t&&(t=new a(e)),t.length=e),t}function a(t,e,o){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(t,e,o);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return s(this,t,e,o)}function s(t,e,o,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?c(t,e,o,r):"string"==typeof e?p(t,e,o):d(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,o,r){return u(e),e<=0?n(t,e):void 0!==o?"string"==typeof r?n(t,e).fill(o,r):n(t,e).fill(o):n(t,e)}function l(t,e){if(u(e),t=n(t,e<0?0:0|g(e)),!a.TYPED_ARRAY_SUPPORT)for(var o=0;o<e;++o)t[o]=0;return t}function p(t,e,o){if("string"==typeof o&&""!==o||(o="utf8"),!a.isEncoding(o))throw new TypeError('"encoding" must be a valid string encoding');var r=0|w(e,o);t=n(t,r);var i=t.write(e,o);return i!==r&&(t=t.slice(0,i)),t}function h(t,e){var o=e.length<0?0:0|g(e.length);t=n(t,o);for(var r=0;r<o;r+=1)t[r]=255&e[r];return t}function c(t,e,o,r){if(e.byteLength,o<0||e.byteLength<o)throw new RangeError("'offset' is out of bounds");if(e.byteLength<o+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===o&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,o):new Uint8Array(e,o,r),a.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=a.prototype):t=h(t,e),t}function d(t,e){if(a.isBuffer(e)){var o=0|g(e.length);return t=n(t,o),0===t.length?t:(e.copy(t,0,0,o),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Q(e.length)?n(t,0):h(t,e);if("Buffer"===e.type&&K(e.data))return h(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),a.alloc(+t)}function w(t,e){if(a.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var o=t.length;if(0===o)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return W(t).length;default:if(r)return q(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,o){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===o||o>this.length)&&(o=this.length),o<=0)return"";if(o>>>=0,e>>>=0,o<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,o);case"utf8":case"utf-8":return U(this,e,o);case"ascii":return L(this,e,o);case"latin1":case"binary":return S(this,e,o);case"base64":return B(this,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,o);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,o){var r=t[e];t[e]=t[o],t[o]=r}function m(t,e,o,r,i){if(0===t.length)return-1;if("string"==typeof o?(r=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,isNaN(o)&&(o=i?0:t.length-1),o<0&&(o=t.length+o),o>=t.length){if(i)return-1;o=t.length-1}else if(o<0){if(!i)return-1;o=0}if("string"==typeof e&&(e=a.from(e,r)),a.isBuffer(e))return 0===e.length?-1:_(t,e,o,r,i);if("number"==typeof e)return e&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,o):Uint8Array.prototype.lastIndexOf.call(t,e,o):_(t,[e],o,r,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,o,r,i){function n(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,o/=2}var f;if(i){var l=-1;for(f=o;f<s;f++)if(n(t,f)===n(e,l===-1?0:f-l)){if(l===-1&&(l=f),f-l+1===u)return l*a}else l!==-1&&(f-=f-l),l=-1}else for(o+u>s&&(o=s-u),f=o;f>=0;f--){for(var p=!0,h=0;h<u;h++)if(n(t,f+h)!==n(e,h)){p=!1;break}if(p)return f}return-1}function x(t,e,o,r){o=Number(o)||0;var i=t.length-o;r?(r=Number(r))>i&&(r=i):r=i;var n=e.length;if(n%2!=0)throw new TypeError("Invalid hex string");r>n/2&&(r=n/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[o+a]=s}return a}function E(t,e,o,r){return J(q(e,t.length-o),t,o,r)}function A(t,e,o,r){return J(H(e),t,o,r)}function k(t,e,o,r){return A(t,e,o,r)}function R(t,e,o,r){return J(W(e),t,o,r)}function T(t,e,o,r){return J(X(e,t.length-o),t,o,r)}function B(t,e,o){return 0===e&&o===t.length?G.fromByteArray(t):G.fromByteArray(t.slice(e,o))}function U(t,e,o){o=Math.min(t.length,o);for(var r=[],i=e;i<o;){var n=t[i],a=null,s=n>239?4:n>223?3:n>191?2:1;if(i+s<=o){var u,f,l,p;switch(s){case 1:n<128&&(a=n);break;case 2:u=t[i+1],128==(192&u)&&(p=(31&n)<<6|63&u)>127&&(a=p);break;case 3:u=t[i+1],f=t[i+2],128==(192&u)&&128==(192&f)&&(p=(15&n)<<12|(63&u)<<6|63&f)>2047&&(p<55296||p>57343)&&(a=p);break;case 4:u=t[i+1],f=t[i+2],l=t[i+3],128==(192&u)&&128==(192&f)&&128==(192&l)&&(p=(15&n)<<18|(63&u)<<12|(63&f)<<6|63&l)>65535&&p<1114112&&(a=p)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return P(r)}function P(t){var e=t.length;if(e<=tt)return String.fromCharCode.apply(String,t);for(var o="",r=0;r<e;)o+=String.fromCharCode.apply(String,t.slice(r,r+=tt));return o}function L(t,e,o){var r="";o=Math.min(t.length,o);for(var i=e;i<o;++i)r+=String.fromCharCode(127&t[i]);return r}function S(t,e,o){var r="";o=Math.min(t.length,o);for(var i=e;i<o;++i)r+=String.fromCharCode(t[i]);return r}function C(t,e,o){var r=t.length;(!e||e<0)&&(e=0),(!o||o<0||o>r)&&(o=r);for(var i="",n=e;n<o;++n)i+=V(t[n]);return i}function I(t,e,o){for(var r=t.slice(e,o),i="",n=0;n<r.length;n+=2)i+=String.fromCharCode(r[n]+256*r[n+1]);return i}function M(t,e,o){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>o)throw new RangeError("Trying to access beyond buffer length")}function O(t,e,o,r,i,n){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<n)throw new RangeError('"value" argument is out of bounds');if(o+r>t.length)throw new RangeError("Index out of range")}function Y(t,e,o,r){e<0&&(e=65535+e+1);for(var i=0,n=Math.min(t.length-o,2);i<n;++i)t[o+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(t,e,o,r){e<0&&(e=4294967295+e+1);for(var i=0,n=Math.min(t.length-o,4);i<n;++i)t[o+i]=e>>>8*(r?i:3-i)&255}function D(t,e,o,r,i,n){if(o+r>t.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function j(t,e,o,r,i){return i||D(t,e,o,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(t,e,o,r,23,4),o+4}function z(t,e,o,r,i){return i||D(t,e,o,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(t,e,o,r,52,8),o+8}function $(t){if(t=F(t).replace(et,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function F(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function V(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,e){e=e||1/0;for(var o,r=t.length,i=null,n=[],a=0;a<r;++a){if((o=t.charCodeAt(a))>55295&&o<57344){if(!i){if(o>56319){(e-=3)>-1&&n.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&n.push(239,191,189);continue}i=o;continue}if(o<56320){(e-=3)>-1&&n.push(239,191,189),i=o;continue}o=65536+(i-55296<<10|o-56320)}else i&&(e-=3)>-1&&n.push(239,191,189);if(i=null,o<128){if((e-=1)<0)break;n.push(o)}else if(o<2048){if((e-=2)<0)break;n.push(o>>6|192,63&o|128)}else if(o<65536){if((e-=3)<0)break;n.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;n.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return n}function H(t){for(var e=[],o=0;o<t.length;++o)e.push(255&t.charCodeAt(o));return e}function X(t,e){for(var o,r,i,n=[],a=0;a<t.length&&!((e-=2)<0);++a)o=t.charCodeAt(a),r=o>>8,i=o%256,n.push(i),n.push(r);return n}function W(t){return G.toByteArray($(t))}function J(t,e,o,r){for(var i=0;i<r&&!(i+o>=e.length||i>=t.length);++i)e[i+o]=t[i];return i}function Q(t){return t!==t}/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
var G=o(11),Z=o(10),K=o(9);e.Buffer=a,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),e.kMaxLength=i(),a.poolSize=8192,a._augment=function(t){return t.__proto__=a.prototype,t},a.from=function(t,e,o){return s(null,t,e,o)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(t,e,o){return f(null,t,e,o)},a.allocUnsafe=function(t){return l(null,t)},a.allocUnsafeSlow=function(t){return l(null,t)},a.isBuffer=function(t){return!(null==t||!t._isBuffer)},a.compare=function(t,e){if(!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var o=t.length,r=e.length,i=0,n=Math.min(o,r);i<n;++i)if(t[i]!==e[i]){o=t[i],r=e[i];break}return o<r?-1:r<o?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,e){if(!K(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var o;if(void 0===e)for(e=0,o=0;o<t.length;++o)e+=t[o].length;var r=a.allocUnsafe(e),i=0;for(o=0;o<t.length;++o){var n=t[o];if(!a.isBuffer(n))throw new TypeError('"list" argument must be an Array of Buffers');n.copy(r,i),i+=n.length}return r},a.byteLength=w,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},a.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?U(this,0,t):v.apply(this,arguments)},a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",o=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,o).match(/.{2}/g).join(" "),this.length>o&&(t+=" ... ")),"<Buffer "+t+">"},a.prototype.compare=function(t,e,o,r,i){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===o&&(o=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||o>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=o)return 0;if(r>=i)return-1;if(e>=o)return 1;if(e>>>=0,o>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var n=i-r,s=o-e,u=Math.min(n,s),f=this.slice(r,i),l=t.slice(e,o),p=0;p<u;++p)if(f[p]!==l[p]){n=f[p],s=l[p];break}return n<s?-1:s<n?1:0},a.prototype.includes=function(t,e,o){return this.indexOf(t,e,o)!==-1},a.prototype.indexOf=function(t,e,o){return m(this,t,e,o,!0)},a.prototype.lastIndexOf=function(t,e,o){return m(this,t,e,o,!1)},a.prototype.write=function(t,e,o,r){if(void 0===e)r="utf8",o=this.length,e=0;else if(void 0===o&&"string"==typeof e)r=e,o=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(o)?(o|=0,void 0===r&&(r="utf8")):(r=o,o=void 0)}var i=this.length-e;if((void 0===o||o>i)&&(o=i),t.length>0&&(o<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var n=!1;;)switch(r){case"hex":return x(this,t,e,o);case"utf8":case"utf-8":return E(this,t,e,o);case"ascii":return A(this,t,e,o);case"latin1":case"binary":return k(this,t,e,o);case"base64":return R(this,t,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,o);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),n=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;a.prototype.slice=function(t,e){var o=this.length;t=~~t,e=void 0===e?o:~~e,t<0?(t+=o)<0&&(t=0):t>o&&(t=o),e<0?(e+=o)<0&&(e=0):e>o&&(e=o),e<t&&(e=t);var r;if(a.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=a.prototype;else{var i=e-t;r=new a(i,void 0);for(var n=0;n<i;++n)r[n]=this[n+t]}return r},a.prototype.readUIntLE=function(t,e,o){t|=0,e|=0,o||M(t,e,this.length);for(var r=this[t],i=1,n=0;++n<e&&(i*=256);)r+=this[t+n]*i;return r},a.prototype.readUIntBE=function(t,e,o){t|=0,e|=0,o||M(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},a.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,o){t|=0,e|=0,o||M(t,e,this.length);for(var r=this[t],i=1,n=0;++n<e&&(i*=256);)r+=this[t+n]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},a.prototype.readIntBE=function(t,e,o){t|=0,e|=0,o||M(t,e,this.length);for(var r=e,i=1,n=this[t+--r];r>0&&(i*=256);)n+=this[t+--r]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},a.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},a.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var o=this[t]|this[t+1]<<8;return 32768&o?4294901760|o:o},a.prototype.readInt16BE=function(t,e){e||M(t,2,this.length);var o=this[t+1]|this[t]<<8;return 32768&o?4294901760|o:o},a.prototype.readInt32LE=function(t,e){return e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return e||M(t,4,this.length),Z.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),Z.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),Z.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),Z.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,o,r){if(t=+t,e|=0,o|=0,!r){O(this,t,e,o,Math.pow(2,8*o)-1,0)}var i=1,n=0;for(this[e]=255&t;++n<o&&(i*=256);)this[e+n]=t/i&255;return e+o},a.prototype.writeUIntBE=function(t,e,o,r){if(t=+t,e|=0,o|=0,!r){O(this,t,e,o,Math.pow(2,8*o)-1,0)}var i=o-1,n=1;for(this[e+i]=255&t;--i>=0&&(n*=256);)this[e+i]=t/n&255;return e+o},a.prototype.writeUInt8=function(t,e,o){return t=+t,e|=0,o||O(this,t,e,1,255,0),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,o){return t=+t,e|=0,o||O(this,t,e,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Y(this,t,e,!0),e+2},a.prototype.writeUInt16BE=function(t,e,o){return t=+t,e|=0,o||O(this,t,e,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Y(this,t,e,!1),e+2},a.prototype.writeUInt32LE=function(t,e,o){return t=+t,e|=0,o||O(this,t,e,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},a.prototype.writeUInt32BE=function(t,e,o){return t=+t,e|=0,o||O(this,t,e,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},a.prototype.writeIntLE=function(t,e,o,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*o-1);O(this,t,e,o,i-1,-i)}var n=0,a=1,s=0;for(this[e]=255&t;++n<o&&(a*=256);)t<0&&0===s&&0!==this[e+n-1]&&(s=1),this[e+n]=(t/a>>0)-s&255;return e+o},a.prototype.writeIntBE=function(t,e,o,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*o-1);O(this,t,e,o,i-1,-i)}var n=o-1,a=1,s=0;for(this[e+n]=255&t;--n>=0&&(a*=256);)t<0&&0===s&&0!==this[e+n+1]&&(s=1),this[e+n]=(t/a>>0)-s&255;return e+o},a.prototype.writeInt8=function(t,e,o){return t=+t,e|=0,o||O(this,t,e,1,127,-128),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,o){return t=+t,e|=0,o||O(this,t,e,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Y(this,t,e,!0),e+2},a.prototype.writeInt16BE=function(t,e,o){return t=+t,e|=0,o||O(this,t,e,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Y(this,t,e,!1),e+2},a.prototype.writeInt32LE=function(t,e,o){return t=+t,e|=0,o||O(this,t,e,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},a.prototype.writeInt32BE=function(t,e,o){return t=+t,e|=0,o||O(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},a.prototype.writeFloatLE=function(t,e,o){return j(this,t,e,!0,o)},a.prototype.writeFloatBE=function(t,e,o){return j(this,t,e,!1,o)},a.prototype.writeDoubleLE=function(t,e,o){return z(this,t,e,!0,o)},a.prototype.writeDoubleBE=function(t,e,o){return z(this,t,e,!1,o)},a.prototype.copy=function(t,e,o,r){if(o||(o=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<o&&(r=o),r===o)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-o&&(r=t.length-e+o);var i,n=r-o;if(this===t&&o<e&&e<r)for(i=n-1;i>=0;--i)t[i+e]=this[i+o];else if(n<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i<n;++i)t[i+e]=this[i+o];else Uint8Array.prototype.set.call(t,this.subarray(o,o+n),e);return n},a.prototype.fill=function(t,e,o,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,o=this.length):"string"==typeof o&&(r=o,o=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<o)throw new RangeError("Out of range index");if(o<=e)return this;e>>>=0,o=void 0===o?this.length:o>>>0,t||(t=0);var n;if("number"==typeof t)for(n=e;n<o;++n)this[n]=t;else{var s=a.isBuffer(t)?t:q(new a(t,r).toString()),u=s.length;for(n=0;n<o-e;++n)this[n+e]=s[n%u]}return this};var et=/[^+\/0-9A-Za-z-_]/g}).call(e,o(12))},function(t,e,o){var r=o(0),i=r(window),n=r(document),a="createTouch"in document,s=document.documentElement,u=!("minWidth"in s.style),f=!u&&"onlosecapture"in s,l="setCapture"in s,p={start:a?"touchstart":"mousedown",over:a?"touchmove":"mousemove",end:a?"touchend":"mouseup"},h=a?function(t){return t.touches||(t=t.originalEvent.touches.item(0)),t}:function(t){return t},c=function(){this.start=r.proxy(this.start,this),this.over=r.proxy(this.over,this),this.end=r.proxy(this.end,this),this.onstart=this.onover=this.onend=r.noop};c.types=p,c.prototype={start:function(t){return t=this.startFix(t),n.on(p.over,this.over).on(p.end,this.end),this.onstart(t),!1},over:function(t){return t=this.overFix(t),this.onover(t),!1},end:function(t){return t=this.endFix(t),n.off(p.over,this.over).off(p.end,this.end),this.onend(t),!1},startFix:function(t){return t=h(t),this.target=r(t.target),this.selectstart=function(){return!1},n.on("selectstart",this.selectstart).on("dblclick",this.end),f?this.target.on("losecapture",this.end):i.on("blur",this.end),l&&this.target[0].setCapture(),t},overFix:function(t){return t=h(t)},endFix:function(t){return t=h(t),n.off("selectstart",this.selectstart).off("dblclick",this.end),f?this.target.off("losecapture",this.end):i.off("blur",this.end),l&&this.target[0].releaseCapture(),t}},c.create=function(t,e){var o,a,s,u,f=r(t),l=new c,p=c.types.start,h=function(){},d=t.className.replace(/^\s|\s.*/g,"")+"-drag-start",g={onstart:h,onover:h,onend:h,off:function(){f.off(p,l.start)}};return l.onstart=function(e){var r="fixed"===f.css("position"),l=n.scrollLeft(),p=n.scrollTop(),h=f.width(),c=f.height();o=0,a=0,s=r?i.width()-h+o:n.width()-h,u=r?i.height()-c+a:n.height()-c;var b=f.offset(),w=this.startLeft=r?b.left-l:b.left,v=this.startTop=r?b.top-p:b.top;this.clientX=e.clientX,this.clientY=e.clientY,f.addClass(d),g.onstart.call(t,e,w,v)},l.onover=function(e){var r=e.clientX-this.clientX+this.startLeft,i=e.clientY-this.clientY+this.startTop,n=f[0].style;r=Math.max(o,Math.min(s,r)),i=Math.max(a,Math.min(u,i)),n.left=r+"px",n.top=i+"px",g.onover.call(t,e,r,i)},l.onend=function(e){var o=f.position(),r=o.left,i=o.top;f.removeClass(d),g.onend.call(t,e,r,i)},l.off=function(){f.off(p,l.start)},e?l.start(e):f.on(p,l.start),g},t.exports=c},function(t,e,o){var r=o(0),i=o(4),n=o(14);i.oncreate=function(t){var e,o=t.options,i=o.original,a=o.url,s=o.oniframeload;if(a&&(this.padding=o.padding=0,e=r("<iframe />"),e.attr({src:a,name:t.id,width:"100%",height:"100%",allowtransparency:"yes",frameborder:"no",scrolling:"no"}).on("load",function(){var r;try{r=e[0].contentWindow.frameElement}catch(t){}r&&(o.width||t.width(e.contents().width()),o.height||t.height(e.contents().height())),s&&s.call(t)}),t.addEventListener("beforeremove",function(){e.attr("src","about:blank").remove()},!1),t.content(e[0]),t.iframeNode=e[0]),!(i instanceof Object))for(var u=function(){t.close().remove()},f=0;f<frames.length;f++)try{if(i instanceof frames[f].Object){r(frames[f]).one("unload",u);break}}catch(t){}r(t.node).on(n.types.start,"[i=title]",function(e){t.follow||(t.focus(),n.create(t.node,e))})},i.get=function(t){if(t&&t.frameElement){var e,o=t.frameElement,r=i.list;for(var n in r)if(e=r[n],e.node.getElementsByTagName("iframe")[0]===o)return e}else if(t)return i.list[t]},t.exports=i}])});
