dialog.js 45 KB

12345678
  1. /*! art.dialog@7.0.0 | https://github.com/aui/artDialog */
  2. !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=4)}([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),u=!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"),u||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(),u=e.width(),s=e.height(),f=t.width(),l=t.height(),p=(u-f)/2+n,h=382*(s-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,u=i(window),s=i(document),f=u.width(),l=u.height(),p=s.scrollLeft(),h=s.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(" "),U=this.className+"-",B={top:"bottom",bottom:"top",left:"right",right:"left"},P={top:"top",bottom:"top",left:"left",right:"left"},S=[{top:_-d,bottom:_+b,left:m-c,right:m+g},{top:_,bottom:_-d+b,left:m,right:m-c+g}],L={left:m+g/2-c/2,top:_+b/2-d/2},I={left:[x,A],top:[E,k]};i.each(T,function(t,e){S[t][e]>I[P[e]][1]&&(e=T[t]=B[e]),S[t][e]<I[P[e]][0]&&(T[t]=B[e])}),T[1]||(P[T[1]]="left"===P[T[0]]?"top":"left",S[1][T[1]]=L[P[T[1]]]),U+=T.join("-")+" "+this.className+"-follow",n.__followSkin=U,e&&o.addClass(U),R[P[T[0]]]=parseInt(S[0][T[0]]),R[P[T[1]]]=parseInt(S[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,u=i(r),s=u.scrollLeft(),f=u.scrollTop(),l=i(a).offset(),p=l.left,h=l.top;return{left:o.left+p-s,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,u=new Date-0,s=!("minWidth"in r("html")[0].style),f="createTouch"in document&&!("onmousemove"in document)||/(iPhone|iPad|iPod)/i.test(navigator.userAgent),l=!s&&!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||u+a,s=p.get(n);return s?s.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,u=t.keyCode;!a||n.test(r)&&"button"!==o.type||27===u&&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,u="";e.callbacks[a]=n.callback,n.display===!1?u=' style="display:none"':i++,o+='<button type="button" i-id="'+a+'"'+u+(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],u=i[2],s=i[3],f={css:a,media:u,sourceMap:s};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 u(t){var e=document.createElement("style");return t.attrs.type="text/css",f(e,t.attrs),n(t,e),e}function s(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=u(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=s(e),r=c.bind(null,o,e),i=function(){a(o),o.href&&URL.revokeObjectURL(o.href)}):(o=u(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"}),u=t.href;t.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}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 u=o[a],s=d[u.id];s.refs--,n.push(s)}if(t){r(i(t),e)}for(var a=0;a<n.length;a++){var s=n[a];if(0===s.refs){for(var f=0;f<s.parts.length;f++)s.parts[f]();delete d[s.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,'.ui-dialog{*zoom:1;_float:left;position:relative;background-color:#fff;border:1px solid #999;border-radius:6px;outline:0;background-clip:padding-box;font-family:Helvetica,arial,sans-serif;font-size:14px;line-height:1.428571429;color:#333;opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform .15s ease-in-out,opacity .15s ease-in-out;transition:transform .15s ease-in-out,opacity .15s ease-in-out}.ui-popup-show .ui-dialog{opacity:1;-webkit-transform:scale(1);transform:scale(1)}.ui-popup-focus .ui-dialog{box-shadow:0 0 8px rgba(0,0,0,.1)}.ui-popup-modal .ui-dialog{box-shadow:0 0 8px rgba(0,0,0,.1),0 0 256px hsla(0,0%,100%,.3)}.ui-dialog-grid{width:auto;margin:0;border:0 none;border-collapse:collapse;border-spacing:0;background:transparent}.ui-dialog-body,.ui-dialog-footer,.ui-dialog-header{padding:0;border:0 none;text-align:left;background:transparent}.ui-dialog-header{white-space:nowrap;border-bottom:1px solid #e5e5e5}.ui-dialog-close{position:relative;_position:absolute;float:right;top:13px;right:13px;_height:26px;padding:0 4px;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20);cursor:pointer;background:transparent;_background:#fff;border:0;-webkit-appearance:none}.ui-dialog-close:focus,.ui-dialog-close:hover{color:#000;text-decoration:none;cursor:pointer;outline:0;opacity:.5;filter:alpha(opacity=50)}.ui-dialog-title{margin:0;line-height:1.428571429;min-height:16.428571429px;padding:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:700;cursor:default}.ui-dialog-body{padding:20px;text-align:center}.ui-dialog-content{display:inline-block;position:relative;vertical-align:middle;*zoom:1;*display:inline;text-align:left}.ui-dialog-footer{padding:0 20px 20px}.ui-dialog-statusbar{float:left;margin-right:20px;padding:6px 0;line-height:1.428571429;font-size:14px;color:#888;white-space:nowrap}.ui-dialog-statusbar label:hover{color:#333}.ui-dialog-statusbar .label,.ui-dialog-statusbar input{vertical-align:middle}.ui-dialog-button{float:right;white-space:nowrap}.ui-dialog-footer button,.ui-dialog-footer button+button{margin-bottom:0;margin-left:5px}.ui-dialog-footer button{width:auto;overflow:visible;display:inline-block;padding:6px 12px;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.ui-dialog-footer button:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.ui-dialog-footer button:focus,.ui-dialog-footer button:hover{color:#333;text-decoration:none}.ui-dialog-footer button:active{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.ui-dialog-footer button[disabled]{pointer-events:none;cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.ui-dialog-footer button{color:#333;background-color:#fff;border-color:#ccc}.ui-dialog-footer button:active,.ui-dialog-footer button:focus,.ui-dialog-footer button:hover{color:#333;background-color:#ebebeb;border-color:#adadad}.ui-dialog-footer button:active{background-image:none}.ui-dialog-footer button[disabled],.ui-dialog-footer button[disabled]:active,.ui-dialog-footer button[disabled]:focus,.ui-dialog-footer button[disabled]:hover{background-color:#fff;border-color:#ccc}.ui-dialog-footer button.ui-dialog-autofocus{color:#fff;background-color:#428bca;border-color:#357ebd}.ui-dialog-footer button.ui-dialog-autofocus:active,.ui-dialog-footer button.ui-dialog-autofocus:focus,.ui-dialog-footer button.ui-dialog-autofocus:hover{color:#fff;background-color:#3276b1;border-color:#285e8e}.ui-dialog-footer button.ui-dialog-autofocus:active{background-image:none}.ui-popup-top-left .ui-dialog,.ui-popup-top-right .ui-dialog,.ui-popup-top .ui-dialog{top:-8px}.ui-popup-bottom-left .ui-dialog,.ui-popup-bottom-right .ui-dialog,.ui-popup-bottom .ui-dialog{top:8px}.ui-popup-left-bottom .ui-dialog,.ui-popup-left-top .ui-dialog,.ui-popup-left .ui-dialog{left:-8px}.ui-popup-right-bottom .ui-dialog,.ui-popup-right-top .ui-dialog,.ui-popup-right .ui-dialog{left:8px}.ui-dialog-arrow-a,.ui-dialog-arrow-b{position:absolute;display:none;width:0;height:0;overflow:hidden;_color:#ff3fff;_filter:chroma(color=#FF3FFF);border:8px dashed transparent}.ui-popup-follow .ui-dialog-arrow-a,.ui-popup-follow .ui-dialog-arrow-b{display:block}.ui-popup-top-left .ui-dialog-arrow-a,.ui-popup-top-right .ui-dialog-arrow-a,.ui-popup-top .ui-dialog-arrow-a{bottom:-16px;border-top:8px solid #7c7c7c}.ui-popup-top-left .ui-dialog-arrow-b,.ui-popup-top-right .ui-dialog-arrow-b,.ui-popup-top .ui-dialog-arrow-b{bottom:-15px;border-top:8px solid #fff}.ui-popup-top-left .ui-dialog-arrow-a,.ui-popup-top-left .ui-dialog-arrow-b{left:15px}.ui-popup-top .ui-dialog-arrow-a,.ui-popup-top .ui-dialog-arrow-b{left:50%;margin-left:-8px}.ui-popup-top-right .ui-dialog-arrow-a,.ui-popup-top-right .ui-dialog-arrow-b{right:15px}.ui-popup-bottom-left .ui-dialog-arrow-a,.ui-popup-bottom-right .ui-dialog-arrow-a,.ui-popup-bottom .ui-dialog-arrow-a{top:-16px;border-bottom:8px solid #7c7c7c}.ui-popup-bottom-left .ui-dialog-arrow-b,.ui-popup-bottom-right .ui-dialog-arrow-b,.ui-popup-bottom .ui-dialog-arrow-b{top:-15px;border-bottom:8px solid #fff}.ui-popup-bottom-left .ui-dialog-arrow-a,.ui-popup-bottom-left .ui-dialog-arrow-b{left:15px}.ui-popup-bottom .ui-dialog-arrow-a,.ui-popup-bottom .ui-dialog-arrow-b{margin-left:-8px;left:50%}.ui-popup-bottom-right .ui-dialog-arrow-a,.ui-popup-bottom-right .ui-dialog-arrow-b{right:15px}.ui-popup-left-bottom .ui-dialog-arrow-a,.ui-popup-left-top .ui-dialog-arrow-a,.ui-popup-left .ui-dialog-arrow-a{right:-16px;border-left:8px solid #7c7c7c}.ui-popup-left-bottom .ui-dialog-arrow-b,.ui-popup-left-top .ui-dialog-arrow-b,.ui-popup-left .ui-dialog-arrow-b{right:-15px;border-left:8px solid #fff}.ui-popup-left-top .ui-dialog-arrow-a,.ui-popup-left-top .ui-dialog-arrow-b{top:15px}.ui-popup-left .ui-dialog-arrow-a,.ui-popup-left .ui-dialog-arrow-b{margin-top:-8px;top:50%}.ui-popup-left-bottom .ui-dialog-arrow-a,.ui-popup-left-bottom .ui-dialog-arrow-b{bottom:15px}.ui-popup-right-bottom .ui-dialog-arrow-a,.ui-popup-right-top .ui-dialog-arrow-a,.ui-popup-right .ui-dialog-arrow-a{left:-16px;border-right:8px solid #7c7c7c}.ui-popup-right-bottom .ui-dialog-arrow-b,.ui-popup-right-top .ui-dialog-arrow-b,.ui-popup-right .ui-dialog-arrow-b{left:-15px;border-right:8px solid #fff}.ui-popup-right-top .ui-dialog-arrow-a,.ui-popup-right-top .ui-dialog-arrow-b{top:15px}.ui-popup-right .ui-dialog-arrow-a,.ui-popup-right .ui-dialog-arrow-b{margin-top:-8px;top:50%}.ui-popup-right-bottom .ui-dialog-arrow-a,.ui-popup-right-bottom .ui-dialog-arrow-b{bottom:15px}@-webkit-keyframes ui-dialog-loading{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes ui-dialog-loading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ui-dialog-loading{vertical-align:middle;position:relative;display:block;*zoom:1;*display:inline;overflow:hidden;width:32px;height:32px;top:50%;margin:-16px auto 0;font-size:0;text-indent:-999em;color:#666;width:100%\\9;text-indent:0\\9;line-height:32px\\9;text-align:center\\9;font-size:12px\\9}.ui-dialog-loading:after{position:absolute;content:"";width:3px;height:3px;margin:14.5px 0 0 14.5px;border-radius:100%;box-shadow:0 -10px 0 1px #ccc,10px 0 #ccc,0 10px #ccc,-10px 0 #ccc,-7px -7px 0 .5px #ccc,7px -7px 0 1.5px #ccc,7px 7px #ccc,-7px 7px #ccc;-webkit-transform:rotate(1turn);-webkit-animation:ui-dialog-loading 1.5s infinite linear;transform:rotate(1turn);animation:ui-dialog-loading 1.5s infinite linear;display:none\\9}',""])},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,u=8*i-r-1,s=(1<<u)-1,f=s>>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+=u;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===s)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,u,s,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?(u=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),e+=a+p>=1?h/s:h*Math.pow(2,1-p),e*s>=2&&(a++,s/=2),a+p>=l?(u=0,a=l):a+p>=1?(u=(e*s-1)*Math.pow(2,i),a+=p):(u=e*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;t[o+c]=255&u,c+=d,u/=256,i-=8);for(a=a<<i|u,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,u,s=t.length;a=r(t),u=new p(3*s/4-a),i=a>0?s-4:s;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)],u[f++]=n>>16&255,u[f++]=n>>8&255,u[f++]=255&n;return 2===a?(n=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,u[f++]=255&n):1===a&&(n=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,u[f++]=n>>8&255,u[f++]=255&n),u}function a(t){return f[t>>18&63]+f[t>>12&63]+f[t>>6&63]+f[63&t]}function u(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 s(t){for(var e,o=t.length,r=o%3,i="",n=[],a=16383,s=0,l=o-r;s<l;s+=a)n.push(u(t,s,s+a>l?l:s+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=s;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 u(this,t,e,o)}function u(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 s(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 s(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(s(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||X(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 Q(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 I(this,e,o);case"utf8":case"utf-8":return B(this,e,o);case"ascii":return S(this,e,o);case"latin1":case"binary":return L(this,e,o);case"base64":return U(this,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(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,u=t.length,s=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,u/=2,s/=2,o/=2}var f;if(i){var l=-1;for(f=o;f<u;f++)if(n(t,f)===n(e,l===-1?0:f-l)){if(l===-1&&(l=f),f-l+1===s)return l*a}else l!==-1&&(f-=f-l),l=-1}else for(o+s>u&&(o=u-s),f=o;f>=0;f--){for(var p=!0,h=0;h<s;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 u=parseInt(e.substr(2*a,2),16);if(isNaN(u))return a;t[o+a]=u}return a}function E(t,e,o,r){return W(q(e,t.length-o),t,o,r)}function A(t,e,o,r){return W(H(e),t,o,r)}function k(t,e,o,r){return A(t,e,o,r)}function R(t,e,o,r){return W(Q(e),t,o,r)}function T(t,e,o,r){return W(J(e,t.length-o),t,o,r)}function U(t,e,o){return 0===e&&o===t.length?G.fromByteArray(t):G.fromByteArray(t.slice(e,o))}function B(t,e,o){o=Math.min(t.length,o);for(var r=[],i=e;i<o;){var n=t[i],a=null,u=n>239?4:n>223?3:n>191?2:1;if(i+u<=o){var s,f,l,p;switch(u){case 1:n<128&&(a=n);break;case 2:s=t[i+1],128==(192&s)&&(p=(31&n)<<6|63&s)>127&&(a=p);break;case 3:s=t[i+1],f=t[i+2],128==(192&s)&&128==(192&f)&&(p=(15&n)<<12|(63&s)<<6|63&f)>2047&&(p<55296||p>57343)&&(a=p);break;case 4:s=t[i+1],f=t[i+2],l=t[i+3],128==(192&s)&&128==(192&f)&&128==(192&l)&&(p=(15&n)<<18|(63&s)<<12|(63&f)<<6|63&l)>65535&&p<1114112&&(a=p)}}null===a?(a=65533,u=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=u}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 S(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 L(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 I(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 C(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 O(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 M(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 J(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 Q(t){return G.toByteArray($(t))}function W(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 X(t){return t!==t}/*!
  3. * The buffer module from node.js, for the browser.
  4. *
  5. * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
  6. * @license MIT
  7. */
  8. 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 u(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?B(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,u=o-e,s=Math.min(n,u),f=this.slice(r,i),l=t.slice(e,o),p=0;p<s;++p)if(f[p]!==l[p]){n=f[p],u=l[p];break}return n<u?-1:u<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||O(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||O(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||O(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return e||O(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||O(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||O(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||O(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||O(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},a.prototype.readInt16LE=function(t,e){e||O(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||O(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||O(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||O(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||O(t,4,this.length),Z.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),Z.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),Z.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return e||O(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){M(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){M(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||M(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||M(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||M(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||M(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||M(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);M(this,t,e,o,i-1,-i)}var n=0,a=1,u=0;for(this[e]=255&t;++n<o&&(a*=256);)t<0&&0===u&&0!==this[e+n-1]&&(u=1),this[e+n]=(t/a>>0)-u&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);M(this,t,e,o,i-1,-i)}var n=o-1,a=1,u=0;for(this[e+n]=255&t;--n>=0&&(a*=256);)t<0&&0===u&&0!==this[e+n+1]&&(u=1),this[e+n]=(t/a>>0)-u&255;return e+o},a.prototype.writeInt8=function(t,e,o){return t=+t,e|=0,o||M(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||M(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||M(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||M(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||M(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 u=a.isBuffer(t)?t:q(new a(t,r).toString()),s=u.length;for(n=0;n<o-e;++n)this[n+e]=u[n%s]}return this};var et=/[^+\/0-9A-Za-z-_]/g}).call(e,o(12))}])});