webpackJsonp([2],{"+HRN":function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){e.copy(t,r)}var o=r("X3l8").Buffer;e.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),r=this.head,n=0;r;)i(r.data,t,n),n+=r.data.length,r=r.next;return t},e}()},"/MLu":function(e,t,r){e.exports=r("cSWu").PassThrough},1:function(e,t){},"3eLu":function(e,t,r){"use strict";function n(e){return r.i(a.a)({url:"/service-ota/upgradePackages",method:"post",data:e})}function i(e){return r.i(a.a)({url:"/service-ota/upgradePackage",method:"post",data:e})}function o(e){return r.i(a.a)({url:"/service-ota/upgradePackage",method:"delete",data:e})}function s(e){return r.i(a.a)({url:"/service-ota/upgradePackage/"+e,method:"delete"})}t.a=n,t.d=i,t.b=o,t.c=s;var a=r("Vo7i")},"4/4u":function(e,t,r){e.exports=r("cSWu").Transform},"4lE3":function(e,t,r){var n=r("fNc5");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);r("rjj0")("aad91ca2",n,!0)},"7dSG":function(e,t,r){"use strict";(function(t,n,i){function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){E(t,e)}}function s(e){return j.from(e)}function a(e){return j.isBuffer(e)||e instanceof B}function u(){}function l(e,t){A=A||r("DsFX"),e=e||{},this.objectMode=!!e.objectMode,t instanceof A&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){m(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function f(e){if(A=A||r("DsFX"),!(D.call(f,this)||this instanceof A))return new f(e);this._writableState=new l(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),T.call(this)}function h(e,t){var r=new Error("write after end");e.emit("error",r),F(t,r)}function c(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),F(n,o),i=!1),i}function d(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=j.from(t,r)),t}function p(e,t,r,n,i,o){if(!r){var s=d(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length-1?n:F;f.WritableState=l;var R=r("jOgh");R.inherits=r("LC74");var O={deprecate:r("iP15")},T=r("UcPO"),j=r("X3l8").Buffer,B=i.Uint8Array||function(){},N=r("x0Ha");R.inherits(f,T),l.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(l.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var D;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(D=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(e){return!!D.call(this,e)||e&&e._writableState instanceof l}})):D=function(e){return e instanceof this},f.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},f.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=a(e)&&!n.objectMode;return o&&!j.isBuffer(e)&&(e=s(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=u),n.ended?h(this,r):(o||c(this,n,e,r))&&(n.pendingcb++,i=p(this,n,o,e,t,r)),i},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},f.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},f.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},f.prototype._writev=null,f.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||L(this,n,r)},Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),f.prototype.destroy=N.destroy,f.prototype._undestroy=N.undestroy,f.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,r("W2nU"),r("162o").setImmediate,r("DuR2"))},"87vf":function(e,t,r){e.exports=r("7dSG")},"9DG0":function(e,t,r){function n(){i.call(this)}e.exports=n;var i=r("vzCy").EventEmitter;r("LC74")(n,i),n.Readable=r("cSWu"),n.Writable=r("87vf"),n.Duplex=r("SDM6"),n.Transform=r("4/4u"),n.PassThrough=r("/MLu"),n.Stream=n,n.prototype.pipe=function(e,t){function r(t){e.writable&&!1===e.write(t)&&l.pause&&l.pause()}function n(){l.readable&&l.resume&&l.resume()}function o(){f||(f=!0,e.end())}function s(){f||(f=!0,"function"==typeof e.destroy&&e.destroy())}function a(e){if(u(),0===i.listenerCount(this,"error"))throw e}function u(){l.removeListener("data",r),e.removeListener("drain",n),l.removeListener("end",o),l.removeListener("close",s),l.removeListener("error",a),e.removeListener("error",a),l.removeListener("end",u),l.removeListener("close",u),e.removeListener("close",u)}var l=this;l.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(l.on("end",o),l.on("close",s));var f=!1;return l.on("error",a),e.on("error",a),l.on("end",u),l.on("close",u),e.on("close",u),e.emit("pipe",l),e}},"9bCr":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"上传文件",prop:"mediaUuid"}},[r("el-tag",{attrs:{type:"danger"}},[e._v("请上传zip文件升级包,文件传输过程中请勿操作页面")]),e._v(" "),r("el-upload",{attrs:{action:e.updata.url,"show-file-list":!0,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload,data:e.updata.data,fileList:e.fileList,"on-remove":e.handleRemove}},[r("el-button",{attrs:{plain:"",type:"primary"}},[e._v("点击上传")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"版本",prop:"versionCode"}},[r("el-input",{staticStyle:{width:"50%"},model:{value:e.ruleForm.versionCode,callback:function(t){e.$set(e.ruleForm,"versionCode",t)},expression:"ruleForm.versionCode"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"包类型",prop:"fileType"}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:e.ruleForm.fileType,callback:function(t){e.$set(e.ruleForm,"fileType",t)},expression:"ruleForm.fileType"}},e._l(e.options,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),r("el-form-item",{attrs:{label:"文件名",prop:"fileName"}},[r("el-input",{staticStyle:{width:"50%"},attrs:{disabled:!0},model:{value:e.ruleForm.fileName,callback:function(t){e.$set(e.ruleForm,"fileName",t)},expression:"ruleForm.fileName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"路径",prop:"filePath"}},[r("el-input",{staticStyle:{width:"50%"},attrs:{disabled:!0},model:{value:e.ruleForm.filePath,callback:function(t){e.$set(e.ruleForm,"filePath",t)},expression:"ruleForm.filePath"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"MD5",prop:"md5Code"}},[r("el-input",{staticStyle:{width:"50%"},attrs:{disabled:!0},model:{value:e.ruleForm.md5Code,callback:function(t){e.$set(e.ruleForm,"md5Code",t)},expression:"ruleForm.md5Code"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"大小",prop:"fileSize"}},[r("el-input",{staticStyle:{width:"50%"},attrs:{disabled:!0},model:{value:e.ruleForm.fileSize,callback:function(t){e.$set(e.ruleForm,"fileSize",t)},expression:"ruleForm.fileSize"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"厂商",prop:"manufacturer"}},[r("el-input",{staticStyle:{width:"50%"},model:{value:e.ruleForm.manufacturer,callback:function(t){e.$set(e.ruleForm,"manufacturer",t)},expression:"ruleForm.manufacturer"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"设备",prop:"deviceType"}},[r("el-input",{staticStyle:{width:"50%"},model:{value:e.ruleForm.deviceType,callback:function(t){e.$set(e.ruleForm,"deviceType",t)},expression:"ruleForm.deviceType"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"型号",prop:"deviceModel"}},[r("el-input",{staticStyle:{width:"50%"},model:{value:e.ruleForm.deviceModel,callback:function(t){e.$set(e.ruleForm,"deviceModel",t)},expression:"ruleForm.deviceModel"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"客户",prop:"customer"}},[r("el-input",{staticStyle:{width:"50%"},model:{value:e.ruleForm.customer,callback:function(t){e.$set(e.ruleForm,"customer",t)},expression:"ruleForm.customer"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"ReleaseNote",prop:"releaseNote"}},[r("el-input",{staticStyle:{width:"50%"},attrs:{type:"textarea"},model:{value:e.ruleForm.releaseNote,callback:function(t){e.$set(e.ruleForm,"releaseNote",t)},expression:"ruleForm.releaseNote"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("立即创建")]),e._v(" "),r("el-button",{on:{click:function(t){e.resetForm("ruleForm")}}},[e._v("重置")])],1)],1)],1)},i=[],o={render:n,staticRenderFns:i};t.a=o},CBWy:function(e,t,r){"use strict";var n=r("JSQk");e.exports=function(e,t){function r(){var t=a*o,r=t+o>=e.size?e.size:t+o;l.readAsArrayBuffer(i.call(e,t,r))}var i=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,o=2097152,s=Math.ceil(e.size/o),a=0,u=new n.ArrayBuffer,l=new FileReader;r(),l.onloadend=function(e){u.append(e.target.result),a++,a>>32-i,r)}function r(e,r,n,i,o,s,a){return t(r&n|~r&i,e,r,o,s,a)}function n(e,r,n,i,o,s,a){return t(r&i|n&~i,e,r,o,s,a)}function i(e,r,n,i,o,s,a){return t(r^n^i,e,r,o,s,a)}function o(e,r,n,i,o,s,a){return t(n^(r|~i),e,r,o,s,a)}function s(e,t){var s=e[0],a=e[1],u=e[2],l=e[3];s=r(s,a,u,l,t[0],7,-680876936),l=r(l,s,a,u,t[1],12,-389564586),u=r(u,l,s,a,t[2],17,606105819),a=r(a,u,l,s,t[3],22,-1044525330),s=r(s,a,u,l,t[4],7,-176418897),l=r(l,s,a,u,t[5],12,1200080426),u=r(u,l,s,a,t[6],17,-1473231341),a=r(a,u,l,s,t[7],22,-45705983),s=r(s,a,u,l,t[8],7,1770035416),l=r(l,s,a,u,t[9],12,-1958414417),u=r(u,l,s,a,t[10],17,-42063),a=r(a,u,l,s,t[11],22,-1990404162),s=r(s,a,u,l,t[12],7,1804603682),l=r(l,s,a,u,t[13],12,-40341101),u=r(u,l,s,a,t[14],17,-1502002290),a=r(a,u,l,s,t[15],22,1236535329),s=n(s,a,u,l,t[1],5,-165796510),l=n(l,s,a,u,t[6],9,-1069501632),u=n(u,l,s,a,t[11],14,643717713),a=n(a,u,l,s,t[0],20,-373897302),s=n(s,a,u,l,t[5],5,-701558691),l=n(l,s,a,u,t[10],9,38016083),u=n(u,l,s,a,t[15],14,-660478335),a=n(a,u,l,s,t[4],20,-405537848),s=n(s,a,u,l,t[9],5,568446438),l=n(l,s,a,u,t[14],9,-1019803690),u=n(u,l,s,a,t[3],14,-187363961),a=n(a,u,l,s,t[8],20,1163531501),s=n(s,a,u,l,t[13],5,-1444681467),l=n(l,s,a,u,t[2],9,-51403784),u=n(u,l,s,a,t[7],14,1735328473),a=n(a,u,l,s,t[12],20,-1926607734),s=i(s,a,u,l,t[5],4,-378558),l=i(l,s,a,u,t[8],11,-2022574463),u=i(u,l,s,a,t[11],16,1839030562),a=i(a,u,l,s,t[14],23,-35309556),s=i(s,a,u,l,t[1],4,-1530992060),l=i(l,s,a,u,t[4],11,1272893353),u=i(u,l,s,a,t[7],16,-155497632),a=i(a,u,l,s,t[10],23,-1094730640),s=i(s,a,u,l,t[13],4,681279174),l=i(l,s,a,u,t[0],11,-358537222),u=i(u,l,s,a,t[3],16,-722521979),a=i(a,u,l,s,t[6],23,76029189),s=i(s,a,u,l,t[9],4,-640364487),l=i(l,s,a,u,t[12],11,-421815835),u=i(u,l,s,a,t[15],16,530742520),a=i(a,u,l,s,t[2],23,-995338651),s=o(s,a,u,l,t[0],6,-198630844),l=o(l,s,a,u,t[7],10,1126891415),u=o(u,l,s,a,t[14],15,-1416354905),a=o(a,u,l,s,t[5],21,-57434055),s=o(s,a,u,l,t[12],6,1700485571),l=o(l,s,a,u,t[3],10,-1894986606),u=o(u,l,s,a,t[10],15,-1051523),a=o(a,u,l,s,t[1],21,-2054922799),s=o(s,a,u,l,t[8],6,1873313359),l=o(l,s,a,u,t[15],10,-30611744),u=o(u,l,s,a,t[6],15,-1560198380),a=o(a,u,l,s,t[13],21,1309151649),s=o(s,a,u,l,t[4],6,-145523070),l=o(l,s,a,u,t[11],10,-1120210379),u=o(u,l,s,a,t[2],15,718787259),a=o(a,u,l,s,t[9],21,-343485551),e[0]=y(s,e[0]),e[1]=y(a,e[1]),e[2]=y(u,e[2]),e[3]=y(l,e[3])}function a(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function u(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function l(e){var t,r,n,i,o,u,l=e.length,f=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)s(f,a(e.substring(t-64,t)));for(e=e.substring(t-64),r=e.length,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(s(f,n),t=0;t<16;t+=1)n[t]=0;return i=8*l,i=i.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(i[2],16),u=parseInt(i[1],16)||0,n[14]=o,n[15]=u,s(f,n),f}function f(e){var t,r,n,i,o,a,l=e.length,f=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)s(f,u(e.subarray(t-64,t)));for(e=t-64>2]|=e[t]<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(s(f,n),t=0;t<16;t+=1)n[t]=0;return i=8*l,i=i.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(i[2],16),a=parseInt(i[1],16)||0,n[14]=o,n[15]=a,s(f,n),f}function h(e){var t,r="";for(t=0;t<4;t+=1)r+=_[e>>8*t+4&15]+_[e>>8*t&15];return r}function c(e){var t;for(t=0;t>16)+(t>>16)+(r>>16)<<16|65535&r}),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return e=0|e||0,e<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(r,n){var i,o,s,a,u=this.byteLength,l=t(r,u),f=u;return n!==e&&(f=t(n,u)),l>f?new ArrayBuffer(0):(i=f-l,o=new ArrayBuffer(i),s=new Uint8Array(o),a=new Uint8Array(this,l,i),s.set(a),o)}}(),m.prototype.append=function(e){return this.appendBinary(d(e)),this},m.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,r=this._buff.length;for(t=64;t<=r;t+=64)s(this._hash,a(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},m.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=c(this._hash),e&&(r=v(r)),this.reset(),r},m.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},m.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},m.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},m.prototype._finish=function(e,t){var r,n,i,o=t;if(e[o>>2]|=128<<(o%4<<3),o>55)for(s(this._hash,e),o=0;o<16;o+=1)e[o]=0;r=8*this._length,r=r.toString(16).match(/(.*?)(.{0,8})$/),n=parseInt(r[2],16),i=parseInt(r[1],16)||0,e[14]=n,e[15]=i,s(this._hash,e)},m.hash=function(e,t){return m.hashBinary(d(e),t)},m.hashBinary=function(e,t){var r=l(e),n=c(r);return t?v(n):n},m.ArrayBuffer=function(){this.reset()},m.ArrayBuffer.prototype.append=function(e){var t,r=b(this._buff.buffer,e,!0),n=r.length;for(this._length+=e.byteLength,t=64;t<=n;t+=64)s(this._hash,u(r.subarray(t-64,t)));return this._buff=t-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=c(this._hash),e&&(r=v(r)),this.reset(),r},m.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.ArrayBuffer.prototype.getState=function(){var e=m.prototype.getState.call(this);return e.buff=g(e.buff),e},m.ArrayBuffer.prototype.setState=function(e){return e.buff=p(e.buff,!0),m.prototype.setState.call(this,e)},m.ArrayBuffer.prototype.destroy=m.prototype.destroy,m.ArrayBuffer.prototype._finish=m.prototype._finish,m.ArrayBuffer.hash=function(e,t){var r=f(new Uint8Array(e)),n=c(r);return t?v(n):n},m})},LC74:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},Rt1F:function(e,t,r){"use strict";(function(t,n){function i(e){return D.from(e)}function o(e){return D.isBuffer(e)||e instanceof U}function s(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?j(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function a(e,t){T=T||r("DsFX"),e=e||{},this.objectMode=!!e.objectMode,t instanceof T&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new I,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(z||(z=r("X4X3").StringDecoder),this.decoder=new z(e.encoding),this.encoding=e.encoding)}function u(e){if(T=T||r("DsFX"),!(this instanceof u))return new u(e);this._readableState=new a(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),N.call(this)}function l(e,t,r,n,o){var s=e._readableState;if(null===t)s.reading=!1,g(e,s);else{var a;o||(a=h(s,t)),a?e.emit("error",a):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===D.prototype||(t=i(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):f(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?f(e,s,t,!1):m(e,s)):f(e,s,t,!1))):n||(s.reading=!1)}return c(s)}function f(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&b(e)),m(e,t)}function h(e,t){var r;return o(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function c(e){return!e.ended&&(e.needReadable||e.length=V?e=V:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function p(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=d(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function g(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,b(e)}}function b(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(W("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?O(v,e):v(e))}function v(e){W("emit readable"),e.emit("readable"),x(e)}function m(e,t){t.readingMore||(t.readingMore=!0,O(y,e,t))}function y(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=L(e,t.buffer,t.decoder),r}function L(e,t,r){var n;return eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}function F(e,t){var r=D.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0===(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}function A(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,O(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return W("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?A(this):b(this),null;if(0===(e=p(e,t))&&t.ended)return 0===t.length&&A(this),null;var n=t.needReadable;W("need readable",n),(0===t.length||t.length-e0?C(e,t):null,null===i?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&A(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(e,t){function r(e,t){W("onunpipe"),e===c&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function i(){W("onend"),e.end()}function o(){W("cleanup"),e.removeListener("close",l),e.removeListener("finish",f),e.removeListener("drain",b),e.removeListener("error",u),e.removeListener("unpipe",r),c.removeListener("end",i),c.removeListener("end",h),c.removeListener("data",a),v=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||b()}function a(t){W("ondata"),m=!1,!1!==e.write(t)||m||((1===d.pipesCount&&d.pipes===e||d.pipesCount>1&&-1!==R(d.pipes,e))&&!v&&(W("false write response, pause",c._readableState.awaitDrain),c._readableState.awaitDrain++,m=!0),c.pause())}function u(t){W("onerror",t),h(),e.removeListener("error",u),0===B(e,"error")&&e.emit("error",t)}function l(){e.removeListener("finish",f),h()}function f(){W("onfinish"),e.removeListener("close",l),h()}function h(){W("unpipe"),c.unpipe(e)}var c=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=e;break;case 1:d.pipes=[d.pipes,e];break;default:d.pipes.push(e)}d.pipesCount+=1,W("pipe count=%d opts=%j",d.pipesCount,t);var p=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr,g=p?i:h;d.endEmitted?O(g):c.once("end",g),e.on("unpipe",r);var b=_(c);e.on("drain",b);var v=!1,m=!1;return c.on("data",a),s(e,"error",u),e.once("close",l),e.once("finish",f),e.emit("pipe",c),d.flowing||(W("pipe resume"),c.resume()),e},u.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o>5==6?2:e>>4==14?3:e>>3==30?4:-1}function a(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0)}function u(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(r);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(r+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(r+2)}}function l(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function f(e,t){var r=a(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function d(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function p(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}var m=r("X3l8").Buffer,y=m.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>>32-t}function o(e,t,r,n,o,s,a){return i(e+(t&r|~t&n)+o+s|0,a)+t|0}function s(e,t,r,n,o,s,a){return i(e+(t&n|r&~n)+o+s|0,a)+t|0}function a(e,t,r,n,o,s,a){return i(e+(t^r^n)+o+s|0,a)+t|0}function u(e,t,r,n,o,s,a){return i(e+(r^(t|~n))+o+s|0,a)+t|0}var l=r("LC74"),f=r("wVeK"),h=new Array(16);l(n,f),n.prototype._update=function(){for(var e=h,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,l=this._d;r=o(r,n,i,l,e[0],3614090360,7),l=o(l,r,n,i,e[1],3905402710,12),i=o(i,l,r,n,e[2],606105819,17),n=o(n,i,l,r,e[3],3250441966,22),r=o(r,n,i,l,e[4],4118548399,7),l=o(l,r,n,i,e[5],1200080426,12),i=o(i,l,r,n,e[6],2821735955,17),n=o(n,i,l,r,e[7],4249261313,22),r=o(r,n,i,l,e[8],1770035416,7),l=o(l,r,n,i,e[9],2336552879,12),i=o(i,l,r,n,e[10],4294925233,17),n=o(n,i,l,r,e[11],2304563134,22),r=o(r,n,i,l,e[12],1804603682,7),l=o(l,r,n,i,e[13],4254626195,12),i=o(i,l,r,n,e[14],2792965006,17),n=o(n,i,l,r,e[15],1236535329,22),r=s(r,n,i,l,e[1],4129170786,5),l=s(l,r,n,i,e[6],3225465664,9),i=s(i,l,r,n,e[11],643717713,14),n=s(n,i,l,r,e[0],3921069994,20),r=s(r,n,i,l,e[5],3593408605,5),l=s(l,r,n,i,e[10],38016083,9),i=s(i,l,r,n,e[15],3634488961,14),n=s(n,i,l,r,e[4],3889429448,20),r=s(r,n,i,l,e[9],568446438,5),l=s(l,r,n,i,e[14],3275163606,9),i=s(i,l,r,n,e[3],4107603335,14),n=s(n,i,l,r,e[8],1163531501,20),r=s(r,n,i,l,e[13],2850285829,5),l=s(l,r,n,i,e[2],4243563512,9),i=s(i,l,r,n,e[7],1735328473,14),n=s(n,i,l,r,e[12],2368359562,20),r=a(r,n,i,l,e[5],4294588738,4),l=a(l,r,n,i,e[8],2272392833,11),i=a(i,l,r,n,e[11],1839030562,16),n=a(n,i,l,r,e[14],4259657740,23),r=a(r,n,i,l,e[1],2763975236,4),l=a(l,r,n,i,e[4],1272893353,11),i=a(i,l,r,n,e[7],4139469664,16),n=a(n,i,l,r,e[10],3200236656,23),r=a(r,n,i,l,e[13],681279174,4),l=a(l,r,n,i,e[0],3936430074,11),i=a(i,l,r,n,e[3],3572445317,16),n=a(n,i,l,r,e[6],76029189,23),r=a(r,n,i,l,e[9],3654602809,4),l=a(l,r,n,i,e[12],3873151461,11),i=a(i,l,r,n,e[15],530742520,16),n=a(n,i,l,r,e[2],3299628645,23),r=u(r,n,i,l,e[0],4096336452,6),l=u(l,r,n,i,e[7],1126891415,10),i=u(i,l,r,n,e[14],2878612391,15),n=u(n,i,l,r,e[5],4237533241,21),r=u(r,n,i,l,e[12],1700485571,6),l=u(l,r,n,i,e[3],2399980690,10),i=u(i,l,r,n,e[10],4293915773,15),n=u(n,i,l,r,e[1],2240044497,21),r=u(r,n,i,l,e[8],1873313359,6),l=u(l,r,n,i,e[15],4264355552,10),i=u(i,l,r,n,e[6],2734768916,15),n=u(n,i,l,r,e[13],1309151649,21),r=u(r,n,i,l,e[4],4149444226,6),l=u(l,r,n,i,e[11],3174756917,10),i=u(i,l,r,n,e[2],718787259,15),n=u(n,i,l,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+l|0},n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=n}).call(t,r("EuP9").Buffer)},f48b:function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}e.exports=n;var i=r("D1Va"),o=r("jOgh");o.inherits=r("LC74"),o.inherits(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},fNc5:function(e,t,r){t=e.exports=r("FZ+f")(!0),t.push([e.i,".el-upload-list{width:50%}","",{version:3,sources:["D:/projects/gitLab/wxpos/posadmin/src/views/ota/version/add.vue"],names:[],mappings:"AACA,gBACI,SAAW,CACd",file:"add.vue",sourcesContent:["\n.el-upload-list{\n width: 50%;\n}\n"],sourceRoot:""}])},iP15:function(e,t,r){(function(t){function r(e,t){function r(){if(!i){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}if(n("noDeprecation"))return e;var i=!1;return r}function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=r}).call(t,r("DuR2"))},iVxu:function(e,t,r){e.exports=r("CBWy")},jOgh:function(e,t,r){(function(e){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===b(e)}function n(e){return"boolean"==typeof e}function i(e){return null===e}function o(e){return null==e}function s(e){return"number"==typeof e}function a(e){return"string"==typeof e}function u(e){return"symbol"==typeof e}function l(e){return void 0===e}function f(e){return"[object RegExp]"===b(e)}function h(e){return"object"==typeof e&&null!==e}function c(e){return"[object Date]"===b(e)}function d(e){return"[object Error]"===b(e)||e instanceof Error}function p(e){return"function"==typeof e}function g(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function b(e){return Object.prototype.toString.call(e)}t.isArray=r,t.isBoolean=n,t.isNull=i,t.isNullOrUndefined=o,t.isNumber=s,t.isString=a,t.isSymbol=u,t.isUndefined=l,t.isRegExp=f,t.isObject=h,t.isDate=c,t.isError=d,t.isFunction=p,t.isPrimitive=g,t.isBuffer=e.isBuffer}).call(t,r("EuP9").Buffer)},t7x4:function(e,t,r){"use strict";var n=r("V8q2"),i=r("3eLu"),o=r("eCz2"),s=(r.n(o),r("iVxu")),a=r.n(s),u=r("zL8q");r.n(u);t.a={created:function(){var e=this;r.i(n.a)("otadev").then(function(t){e.updata.data.policy=t.result.policy,e.updata.data.OSSAccessKeyId=t.result.accessid,e.updata.data.success_action_status="200",e.updata.data.signature=t.result.signature,e.updata.url=t.result.host}),r.i(n.d)().then(function(t){e.mediaUrl=t.result})},data:function(){return{fileList:[],loadingInstance:null,options:[{value:"0",label:"增量包"},{value:"1",label:"全量包"}],ruleForm:{fileName:"",filePath:"",md5Code:"",fileSize:"",versionCode:"",manufacturer:"",deviceType:"",deviceModel:"",customer:"",fileType:"",releaseNote:""},rules:{versionCode:[{required:!0,message:"请输入版本",trigger:"blur"}],fileType:[{required:!0,message:"请上选择包类型",trigger:"blur"}]},updata:{url:"",data:{}},selected:[],mediaUrl:""}},methods:{handleRemove:function(e,t){this.ruleForm={fileName:"",filePath:"",md5Code:"",fileSize:"",versionCode:"",manufacturer:"",deviceType:"",deviceModel:"",customer:"",fileType:"",releaseNote:""}},submitForm:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return!1;r.i(i.d)(t.ruleForm).then(function(e){var r=t.$router;t.$message({message:"操作成功",type:"success",duration:1e3,onClose:function(){r.push({path:"index"})}})})})},resetForm:function(e){this.$refs[e].resetFields()},handleAvatarSuccess:function(e,t){console.log(t),this.ruleForm.fileName=t.name,this.ruleForm.filePath=this.mediaUrl,this.ruleForm.fileSize=t.size,this.fileList=[]},beforeAvatarUpload:function(e){var t=e.name,r="",n=this.findPackageType(t);if(r="zeng"==n?t.split("-")[2].split(".")[0]+"."+t.split("-")[2].split(".")[1]+"."+t.split("-")[3].split(".")[0]:"quan"==n?t.split(".")[2]+"."+t.split(".")[3]+"."+t.split(".")[4]:"1.0."+t.substring(0,t.lastIndexOf(".")).split("#")[1],r.indexOf("undefined")>=0)return this.$message.error("包名称错误!"),!1;this.updata.data.key="otadev/"+e.name,this.ruleForm.versionCode=r;var i=this.ruleForm;return a()(e,function(e,t){i.md5Code=t}),!0},findPackageType:function(e){if(e.indexOf("#")>=0)return"pda";var t=e.split(".");return t[t.length-2].indexOf("-")>=0?"zeng":"quan"}}}},vzCy:function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!i(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,i,a,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var f=new Error('Uncaught, unspecified "error" event. ('+t+")");throw f.context=t,f}if(r=this._events[e],s(r))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),r.apply(this,a)}else if(o(r))for(a=Array.prototype.slice.call(arguments,1),l=r.slice(),i=l.length,u=0;u0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var r,i,s,a;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],s=r.length,i=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(a=s;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){i=a;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],n(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},wVeK:function(e,t,r){"use strict";function n(e,t){if(!o.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}function i(e){s.call(this),this._block=o.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var o=r("X3l8").Buffer,s=r("9DG0").Transform;r("LC74")(i,s),i.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(n(e,"Data"),this._finalized)throw new Error("Digest already called");o.isBuffer(e)||(e=o.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var s=this._blockOffset;s0;++a)this._length[a]+=u,(u=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*u);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},x0Ha:function(e,t,r){"use strict";function n(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;if(n||i)return void(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||s(o,this,e));this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(s(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit("error",t)}var s=r("ypnx");e.exports={destroy:n,undestroy:i}},ypnx:function(e,t,r){"use strict";(function(t){function r(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(a-1),s=0;s