beelink/dist/js/chunk-520d8a08.fa8b550a.js

17 lines
190 KiB
JavaScript
Raw Normal View History

2020-12-04 09:25:43 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-520d8a08"],{"0381":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"03e2":function(e,t,n){"use strict";var r=n("74b3"),o=n("d779"),i=n("0f22"),a=n("76da");function s(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}var c=function(e){e=e||{};var t,n=e.SecretId,r=e.SecretKey,i=e.KeyTime,a=(e.method||e.Method||"get").toLowerCase(),c=y(e.Query||e.params||{}),u=y(e.Headers||e.headers||{}),l=e.Key||"";if(e.UseRawKey?t=e.Pathname||e.pathname||"/"+l:(t=e.Pathname||e.pathname||l,0!==t.indexOf("/")&&(t="/"+t)),!n)return console.error("missing param SecretId");if(!r)return console.error("missing param SecretKey");var d=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t.sort((function(e,t){return e=e.toLowerCase(),t=t.toLowerCase(),e===t?0:e>t?1:-1}))},f=function(e){var t,n,r,o=[],i=d(e);for(t=0;t<i.length;t++)n=i[t],r=void 0===e[n]||null===e[n]?"":""+e[n],n=n.toLowerCase(),n=s(n),r=s(r)||"",o.push(n+"="+r);return o.join("&")},p=Math.round(B(e.SystemClockOffset)/1e3)-1,h=p,m=e.Expires||e.expires;h+=void 0===m?900:1*m||0;var g="sha1",v=n,b=i||p+";"+h,C=i||p+";"+h,w=d(u).join(";").toLowerCase(),S=d(c).join(";").toLowerCase(),x=o.HmacSHA1(C,r).toString(),k=[a,t,f(c),f(u),""].join("\n"),T=["sha1",b,o.SHA1(k).toString(),""].join("\n"),R=o.HmacSHA1(T,x).toString(),_=["q-sign-algorithm="+g,"q-ak="+v,"q-sign-time="+b,"q-key-time="+C,"q-header-list="+w,"q-url-param-list="+S,"q-signature="+R].join("&");return _},u=function(){},l=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&void 0!==e[n]&&null!==e[n]&&(t[n]=e[n]);return t},d=function(e,t){var n,r=new FileReader;FileReader.prototype.readAsBinaryString?(n=FileReader.prototype.readAsBinaryString,r.onload=function(){t(this.result)}):FileReader.prototype.readAsArrayBuffer?n=function(e){var n="",r=new FileReader;r.onload=function(e){for(var o=new Uint8Array(r.result),i=o.byteLength,a=0;a<i;a++)n+=String.fromCharCode(o[a]);t(n)},r.readAsArrayBuffer(e)}:console.error("FileReader not support readAsBinaryString"),n.call(r,e)},f=function(){var e=function(e,t){e=e.split("."),t=t.split(".");for(var n=0;n<t.length;n++)if(e[n]!==t[n])return parseInt(e[n])>parseInt(t[n])?1:-1;return 0},t=function(t){var n=(t.match(/Chrome\/([.\d]+)/)||[])[1],r=(t.match(/QBCore\/([.\d]+)/)||[])[1],o=(t.match(/QQBrowser\/([.\d]+)/)||[])[1],i=n&&e(n,"53.0.2785.116")<0&&r&&e(r,"3.53.991.400")<0&&o&&e(o,"9.0.2524.400")<=0||!1;return i};return t(navigator&&navigator.userAgent)}(),p=function(e,t,n,r,o){var i;if(e.slice?i=e.slice(t,n):e.mozSlice?i=e.mozSlice(t,n):e.webkitSlice&&(i=e.webkitSlice(t,n)),r&&f){var a=new FileReader;a.onload=function(e){i=null,o(new Blob([a.result]))},a.readAsArrayBuffer(i)}else o(i)},h=function(e,t,n,r){n=n||u,e?"string"===typeof t?n(I.md5(t,!0)):Blob&&t instanceof Blob?I.getFileMd5(t,(function(e,t){n(t)}),r):n():n()},m=1048576,g=function(e,t,n){var o=e.size,i=0,a=r.getCtx(),s=function(r){if(r>=o){var c=a.digest("hex");t(null,c)}else{var u=Math.min(o,r+m);I.fileSlice(e,r,u,!1,(function(e){d(e,(function(t){e=null,a=a.update(t,!0),i+=t.length,t=null,n&&n({loaded:i,total:o,percent:Math.round(i/o*1e4)/1e4}),s(r+m)}))}))}};s(0)};function y(e){return x(e,(function(e){return"object"===typeof e?y(e):e}))}function v(e,t){return S(t,(function(n,r){e[r]=t[r]})),e}function b(e){return e instanceof Array}function C(e,t){for(var n=!1,r=0;r<e.length;r++)if(t===e[r]){n=!0;break}return n}function w(e){return b(e)?e:[e]}function S(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function x(e,t){var n=b(e)?[]:{};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r],r));return n}function k(e,t){var n=b(e),r=n?[]:{};for(var o in e)e.hasOwnProperty(o)&&t(e[o],o)&&(n?r.push(e[o]):r[o]=e[o]);return r}var T=function(e){var t,n,r,o="";for(t=0,n=e.length/2;t<n;t++)r=parseInt(e[2*t]+e[2*t+1],16),o+=String.fromCharCode(
2020-11-25 10:00:46 +08:00
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
2020-12-07 17:54:13 +08:00
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},"408a":function(e,t,n){var r=n("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},"44fc":function(e,t,n){"use strict";var r=n("0604");function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},"4b3c":function(e,t,n){"use strict";var r=n("0604");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"52ce":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n("d3b7"),n("96cf");var r=n("1da1"),o=n("89df"),i=n("0619"),a=n.n(i);function s(e,t){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var r,i,s,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=function(){return new Promise((function(e){Object(o["d"])("signature").then((function(t){e(t.data)}))}))},i=new a.a({getSignature:r}),s=i.upload({mediaFile:t}),void 0!=n&&s.on("media_progress",(function(e){n(e)})),c=s.done(),e.abrupt("return",c);case 6:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}},"5b30":function(e,t,n){"use strict";var r=n("0604");e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},6198:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.VodReporter=t.VodReportEvent=void 0;var o,i,a=n("b378"),s=n("151b"),c=n("c8fa");(function(e){e["report_apply"]="report_apply",e["report_cos_upload"]="report_cos_upload",e["report_commit"]="report_commit",e["report_done"]="report_done"})(o=t.VodReportEvent||(t.VodReportEvent={})),function(e){e[e["apply"]=10001]="apply",e[e["cos_upload"]=20001]="cos_upload",e[e["commit"]=10002]="commit",e[e["done"]=40001]="done"}(i||(i={}));var u=function(){function e(e,t){this.baseReportData={version:s.version,platform:3e3,device:navigator.userAgent},this.reportUrl="https://vodreport.qcloud.com/ugcupload_new",this.uploader=e,this.options=t,this.init()}return e.prototype.init=function(){this.uploader.on(o.report_apply,this.onApply.bind(this)),this.uploader.on(o.report_cos_upload,this.onCosUpload.bind(this)),this.uploader.on(o.report_commit,this.onCommit.bind(this)),this.uploader.on(o.report_done,this.onDone.bind(this))},e.prototype.onApply=function(e){try{var t=this.uploader;if(!t.videoFile)return;Object.assign(this.baseReportData,{appId:t.appId,fileSize:t.videoFile.size,fileName:t.videoFile.name,fileType:t.videoFile.type,vodSessionKey:t.vodSessionKey,reqKey:t.reqKey,reportId:t.reportId});var n={reqType:i.apply,errCode:0,vodErrCode:0,errMsg:"",reqTimeCost:Number(new Date)-Number(e.requestStartTime),reqTime:Number(e.requestStartTime)};e.err&&(n.errCode=1,
2020-11-25 10:00:46 +08:00
/*
* [js-sha1]{@link https://github.com/emn178/js-sha1}
*
* @version 0.6.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2017
* @license MIT
*/(function(){"use strict";var root="object"===typeof window?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;NODE_JS&&(root=global);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&"object"===typeof module&&module.exports,AMD=__webpack_require__("3c35"),HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(e){return function(t){return new Sha1(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Sha1},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var n=OUTPUT_TYPES[t];e[n]=createOutputMethod(n)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"===typeof e)return crypto.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(void 0===e.length)return method(e);return crypto.createHash("sha1").update(new Buffer(e)).digest("hex")};return nodeMethod};function Sha1(e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Sha1.prototype.update=function(e){if(!this.finalized){var t="string"!==typeof e;t&&e.constructor===root.ArrayBuffer&&(e=new Uint8Array(e));var n,r,o=0,i=e.length||0,a=this.blocks;while(o<i){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),t)for(r=this.start;o<i&&r<64;++o)a[r>>2]|=e[o]<<SHIFT[3&r++];else for(r=this.start;o<i&&r<64;++o)n=e.charCodeAt(o),n<128?a[r>>2]|=n<<SHIFT[3&r++]:n<2048?(a[r>>2]|=(192|n>>6)<<SHIFT[3&r++],a[r>>2]|=(128|63&n)<<SHIFT[3&r++]):n<55296||n>=57344?(a[r>>2]|=(224|n>>12)<<SHIFT[3&r++],a[r>>2]|=(128|n>>6&63)<<SHIFT[3&r++],a[r>>2]|=(128|63&n)<<SHIFT[3&r++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++o)),a[r>>2]|=(240|n>>18)<<SHIFT[3&r++],a[r>>2]|=(128|n>>12&63)<<SHIFT[3&r++],a[r>>2]|=(128|n>>6&63)<<SHIFT[3&r++],a[r>>2]|=(128|63&n)<<SHIFT[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=64?(this.block=a[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var e,t,n,r=this.h0,o=this.h1,i=this.h2,a=this.h3,s=this.h4,c=this.blocks;for(t=16;t<80;++t)n=c[t-3]^c[t-8]^c[t-14]^c[t-16],c[t]=n<<1|n>>>31;for(t=0;t<20;t+=5)e=o&i|~o&a,n=r<<5|r>>>27,s=n+e+s+1518500249+c[t]<<0,o=o<<30|o>>>2,e=r&o|~r&i,n=s<<5|s>>>27,a=n+e+a+1518500249+c[t+1]<<0,r=r<<30|r>>>2,e=s&r|~s&o,n=a<<5|a>>>27,i=n+e+i+1518500249+c[t+2]<<0,s=s<<30|s>>>2,e=a&s|~a&r,n=i<<5|i>>>27,o=n+e+o+1518500249+c[t+3]<<0,a=a<<30|a>>>2,e=i&a|~i&s,n=o<<5|o>>>27,r=n+e+r+1518500249+c[t+4]<<0,i=i<<30|i>>>2;for(;t<40;t+=5)e=o^i^a,n=r<<5|r>>>27,s=n+e+s+1859775393+c[t]<<0,o=o<<30|o>>>2,e=r^o^i,n=s<<5|s>>>27,a=n+e+a+1859775393+c[t+1]<<0,r=r<<30|r>>>2,e=s^r^o,n=a<<5|a>>>27,i=n+e+i+1859775393+c[t+2]<<0,s=s<<30|s>>>2,e=a^s^r,n=i<<5|i>>>27,o=n+e+o+1859775393+c[t+3]<<0,a=a<<30|a>>>2,e=i^a^s,n=o<<5|o>>>27,r=n+e+r+1859775393+c[t+4]<<0,i=i<<30|i>>>2;for(;t<60;t+=5)e=o&i|o&a|i&a,n=r<<5|r>>>27,s=n+e+s-1894007588+c[t]<<0,o=o<<30|
2020-12-07 17:54:13 +08:00
//# sourceMappingURL=chunk-520d8a08.fa8b550a.js.map