Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.6 不能用.. #114

Open
zhaohz7 opened this issue Feb 1, 2022 · 1 comment
Open

2.1.6 不能用.. #114

zhaohz7 opened this issue Feb 1, 2022 · 1 comment

Comments

@zhaohz7
Copy link

zhaohz7 commented Feb 1, 2022

Uncaught (in promise) Error: Request failed with status code 403
已经按照manual操作了,奈飞字幕不显示

@zhaohz7
Copy link
Author

zhaohz7 commented Feb 1, 2022

!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=612)}({109:function(t,e){var r,n,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(t){r=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(t){n=i}}();var u,c=[],f=!1,l=-1;function p(){f&&u&&(f=!1,u.length?c=u.concat(c):l=-1,c.length&&d())}function d(){if(!f){var t=s(p);f=!0;for(var e=c.length;e;){for(u=c,c=[];++l<e;)u&&u[l].run();l=-1,e=c.length}u=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new h(t,e)),1!==c.length||f||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},116:function(t,e,r){"use strict";var n=r(571),o=r(572),a=r(299);t.exports={formats:a,parse:o,stringify:n}},12:function(t,e,r){"use strict";function n(t,e,r,n,o,a,i){try{var s=ta,u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function s(t){n(i,o,a,s,u,"next",t)}function u(t){n(i,o,a,s,u,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return o}))},154:function(t,e,r){t.exports=r.p+"icon-128.png"},253:function(t,e,r){"use strict";(function(e){var n=r(57),o=r(578),a={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,u={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e)&&(s=r(304)),s),transformRequest:[function(t,e){return o(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, /"}},n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(a)})),t.exports=u}).call(this,r(109))},254:function(t,e,r){var n,o,a,i,s;n=r(573),o=r(300).utf8,a=r(301),i=r(300).bin,(s=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?i.stringToBytes(t):o.stringToBytes(t):a(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var r=n.bytesToWords(t),u=8t.length,c=1732584193,f=-271733879,l=-1732584194,p=271733878,d=0;d<r.length;d++)r[d]=16711935&(r[d]<<8|r[d]>>>24)|4278255360&(r[d]<<24|r[d]>>>8);r[u>>>5]|=128<<u%32,r[14+(u+64>>>9<<4)]=u;var h=s._ff,m=s._gg,y=s._hh,g=s._ii;for(d=0;d<r.length;d+=16){var v=c,b=f,w=l,x=p;c=h(c,f,l,p,r[d+0],7,-680876936),p=h(p,c,f,l,r[d+1],12,-389564586),l=h(l,p,c,f,r[d+2],17,606105819),f=h(f,l,p,c,r[d+3],22,-1044525330),c=h(c,f,l,p,r[d+4],7,-176418897),p=h(p,c,f,l,r[d+5],12,1200080426),l=h(l,p,c,f,r[d+6],17,-1473231341),f=h(f,l,p,c,r[d+7],22,-45705983),c=h(c,f,l,p,r[d+8],7,1770035416),p=h(p,c,f,l,r[d+9],12,-1958414417),l=h(l,p,c,f,r[d+10],17,-42063),f=h(f,l,p,c,r[d+11],22,-1990404162),c=h(c,f,l,p,r[d+12],7,1804603682),p=h(p,c,f,l,r[d+13],12,-40341101),l=h(l,p,c,f,r[d+14],17,-1502002290),c=m(c,f=h(f,l,p,c,r[d+15],22,1236535329),l,p,r[d+1],5,-165796510),p=m(p,c,f,l,r[d+6],9,-1069501632),l=m(l,p,c,f,r[d+11],14,643717713),f=m(f,l,p,c,r[d+0],20,-373897302),c=m(c,f,l,p,r[d+5],5,-701558691),p=m(p,c,f,l,r[d+10],9,38016083),l=m(l,p,c,f,r[d+15],14,-660478335),f=m(f,l,p,c,r[d+4],20,-405537848),c=m(c,f,l,p,r[d+9],5,568446438),p=m(p,c,f,l,r[d+14],9,-1019803690),l=m(l,p,c,f,r[d+3],14,-187363961),f=m(f,l,p,c,r[d+8],20,1163531501),c=m(c,f,l,p,r[d+13],5,-1444681467),p=m(p,c,f,l,r[d+2],9,-51403784),l=m(l,p,c,f,r[d+7],14,1735328473),c=y(c,f=m(f,l,p,c,r[d+12],20,-1926607734),l,p,r[d+5],4,-378558),p=y(p,c,f,l,r[d+8],11,-2022574463),l=y(l,p,c,f,r[d+11],16,1839030562),f=y(f,l,p,c,r[d+14],23,-35309556),c=y(c,f,l,p,r[d+1],4,-1530992060),p=y(p,c,f,l,r[d+4],11,1272893353),l=y(l,p,c,f,r[d+7],16,-155497632),f=y(f,l,p,c,r[d+10],23,-1094730640),c=y(c,f,l,p,r[d+13],4,681279174),p=y(p,c,f,l,r[d+0],11,-358537222),l=y(l,p,c,f,r[d+3],16,-722521979),f=y(f,l,p,c,r[d+6],23,76029189),c=y(c,f,l,p,r[d+9],4,-640364487),p=y(p,c,f,l,r[d+12],11,-421815835),l=y(l,p,c,f,r[d+15],16,530742520),c=g(c,f=y(f,l,p,c,r[d+2],23,-995338651),l,p,r[d+0],6,-198630844),p=g(p,c,f,l,r[d+7],10,1126891415),l=g(l,p,c,f,r[d+14],15,-1416354905),f=g(f,l,p,c,r[d+5],21,-57434055),c=g(c,f,l,p,r[d+12],6,1700485571),p=g(p,c,f,l,r[d+3],10,-1894986606),l=g(l,p,c,f,r[d+10],15,-1051523),f=g(f,l,p,c,r[d+1],21,-2054922799),c=g(c,f,l,p,r[d+8],6,1873313359),p=g(p,c,f,l,r[d+15],10,-30611744),l=g(l,p,c,f,r[d+6],15,-1560198380),f=g(f,l,p,c,r[d+13],21,1309151649),c=g(c,f,l,p,r[d+4],6,-145523070),p=g(p,c,f,l,r[d+11],10,-1120210379),l=g(l,p,c,f,r[d+2],15,718787259),f=g(f,l,p,c,r[d+9],21,-343485551),c=c+v>>>0,f=f+b>>>0,l=l+w>>>0,p=p+x>>>0}return n.endian([c,f,l,p])})._ff=function(t,e,r,n,o,a,i){var s=t+(e&r|~e&n)+(o>>>0)+i;return(s<<a|s>>>32-a)+e},s._gg=function(t,e,r,n,o,a,i){var s=t+(e&n|r&~n)+(o>>>0)+i;return(s<<a|s>>>32-a)+e},s._hh=function(t,e,r,n,o,a,i){var s=t+(e^r^n)+(o>>>0)+i;return(s<<a|s>>>32-a)+e},s._ii=function(t,e,r,n,o,a,i){var s=t+(r^(e|~n))+(o>>>0)+i;return(s<<a|s>>>32-a)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(s(t,e));return e&&e.asBytes?r:e&&e.asString?i.bytesToString(r):n.bytesToHex(r)}},290:function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},291:function(t,e,r){"use strict";var n=r(49);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var a;if(r)a=r(e);else if(n.isURLSearchParams(e))a=e.toString();else{var i=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))})))})),a=i.join("&")}if(a){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}},292:function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.CANCEL)}},293:function(t,e,r){"use strict";(function(e){var n=r(49),o=r(559),a={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,u={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(s=r(294)),s),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, /"}},n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(a)})),t.exports=u}).call(this,r(109))},294:function(t,e,r){"use strict";var n=r(49),o=r(560),a=r(562),i=r(291),s=r(563),u=r(566),c=r(567),f=r(295);t.exports=function(t){return new Promise((function(e,r){var l=t.data,p=t.headers;n.isFormData(l)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+m)}var y=s(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),i(y,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,a={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:t,request:d};o(e,r,a),d=null}},d.onabort=function(){d&&(r(f("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){r(f("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var g=(t.withCredentials||c(y))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;g&&(p[t.xsrfHeaderName]=g)}if("setRequestHeader"in d&&n.forEach(p,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:d.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),r(t),d=null)})),l||(l=null),d.send(l)}))}},295:function(t,e,r){"use strict";var n=r(561);t.exports=function(t,e,r,o,a){var i=new Error(t);return n(i,e,r,o,a)}},296:function(t,e,r){"use strict";var n=r(49);t.exports=function(t,e){e=e||{};var r={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function c(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=u(void 0,t[o])):r[o]=u(t[o],e[o])}n.forEach(o,(function(t){n.isUndefined(e[t])||(r[t]=u(void 0,e[t]))})),n.forEach(a,c),n.forEach(i,(function(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=u(void 0,t[o])):r[o]=u(void 0,e[o])})),n.forEach(s,(function(n){n in e?r[n]=u(t[n],e[n]):n in t&&(r[n]=u(void 0,t[n]))}));var f=o.concat(a).concat(i).concat(s),l=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return n.forEach(l,c),r}},297:function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.CANCEL=!0,t.exports=n},298:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],a=o.obj[o.prop],i=Object.keys(a),s=0;s<i.length;++s){var u=i[s],c=a[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:a,prop:u}),r.push(c))}return function(t){for(var e;t.length;){var r=t.pop();if(e=r.obj[r.prop],Array.isArray(e)){for(var n=[],o=0;o<e.length;++o)void 0!==e[o]&&n.push(e[o]);r.obj[r.prop]=n}}return e}(e)},decode:function(t){try{return decodeURIComponent(t.replace(/+/g," "))}catch(e){return t}},encode:function(t){if(0===t.length)return t;for(var e="string"==typeof t?t:String(t),r="",n=0;n<e.length;++n){var a=e.charCodeAt(n);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?r+=e.charAt(n):a<128?r+=o[a]:a<2048?r+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?r+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(n+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(n)),r+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return r},isBuffer:function(t){return null!=t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(Array.isArray(e))e.push(r);else{if("object"!=typeof e)return[e,r];(o.plainObjects||o.allowPrototypes||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if("object"!=typeof e)return[e].concat(r);var i=e;return Array.isArray(e)&&!Array.isArray(r)&&(i=a(e,o)),Array.isArray(e)&&Array.isArray(r)?(r.forEach((function(r,a){n.call(e,a)?e[a]&&"object"==typeof e[a]?e[a]=t(e[a],r,o):e.push(r):e[a]=r})),e):Object.keys(r).reduce((function(e,a){var i=r[a];return n.call(e,a)?e[a]=t(e[a],i,o):e[a]=i,e}),i)}}},299:function(t,e,r){"use strict";var n=String.prototype.replace,o=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return n.call(t,o,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},300:function(t,e){var r={utf8:{stringToBytes:function(t){return r.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=r},301:function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},302:function(t,e,r){t.exports=r(576)},303:function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},304:function(t,e,r){"use strict";var n=r(57),o=r(579),a=r(581),i=r(582),s=r(583),u=r(305),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||r(584);t.exports=function(t){return new Promise((function(e,f){var l=t.data,p=t.headers;n.isFormData(l)&&delete p["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||s(t.url)||(d=new window.XDomainRequest,h="onload",m=!0,d.onprogress=function(){},d.ontimeout=function(){}),t.auth){var y=t.auth.username||"",g=t.auth.password||"";p.Authorization="Basic "+c(y+":"+g)}if(d.open(t.method.toUpperCase(),a(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d[h]=function(){if(d&&(4===d.readyState||m)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?i(d.getAllResponseHeaders()):null,n={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:r,config:t,request:d};o(e,f,n),d=null}},d.onerror=function(){f(u("Network Error",t,null,d)),d=null},d.ontimeout=function(){f(u("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var v=r(585),b=(t.withCredentials||s(t.url))&&t.xsrfCookieName?v.read(t.xsrfCookieName):void 0;b&&(p[t.xsrfHeaderName]=b)}if("setRequestHeader"in d&&n.forEach(p,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:d.setRequestHeader(e,t)})),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),f(t),d=null)})),void 0===l&&(l=null),d.send(l)}))}},305:function(t,e,r){"use strict";var n=r(580);t.exports=function(t,e,r,o,a){var i=new Error(t);return n(i,e,r,o,a)}},306:function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.CANCEL)}},307:function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.CANCEL=!0,t.exports=n},308:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrayStringify=function(t){return t.map((function(t){return"q="+encodeURIComponent(t)})).join("&")},e.parseMultiple=function(t){return t.map((function(t){var e=t[0][0][0];return e.indexOf("")>-1?e.match(/(.?)</b>/g).map((function(t){return t.match(/(.)</b>/)[1]})).join(""):e}))}},309:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={Automatic:"auto",Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy",Azerbaijani:"az",Basque:"eu",Belarusian:"be",Bengali:"bn",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb",Chichewa:"ny","Chinese Simplified":"zh-cn","Chinese Traditional":"zh-tw",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et",Filipino:"tl",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"iw",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Javanese:"jw",Kannada:"kn",Kazakh:"kk",Khmer:"km",Korean:"ko","Kurdish (Kurmanji)":"ku",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv",Lithuanian:"lt",Luxembourgish:"lb",Macedonian:"mk",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"ma",Romanian:"ro",Russian:"ru",Samoan:"sm","Scots Gaelic":"gd",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd",Sinhala:"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv",Tajik:"tg",Tamil:"ta",Telugu:"te",Thai:"th",Turkish:"tr",Ukrainian:"uk",Urdu:"ur",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"};function o(t){if(!t)return!1;if(n[t])return n[t];var e=Object.keys(n).filter((function(e){var r=t.toLowerCase();return n[e]===r}));return!!e[0]&&n[e[0]]}e.isSupport=function(t){return Boolean(o(t))},e.getCode=o,e.getAllLanguage=function(){return Object.keys(n)},e.getAllCode=function(){return Object.keys(n).map((function(t){return n[t]}))},e.default=n},322:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(574),o=r(308);e.parseMultiple=o.parseMultiple;var a=r(309);e.isSupport=a.isSupport,e.getAllLanguage=a.getAllLanguage,e.getAllCode=a.getAllCode,e.default=function(t,e){var r;return"string"==typeof t?(r=[t],!e.format&&(e.format="text")):(r=t,!e.format&&(e.format="html")),n.default(r,e)}},34:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r.d(e,"a",(function(){return a}))},4:function(t,e,r){t.exports=r(81)},49:function(t,e,r){"use strict";var n=r(290),o=Object.prototype.toString;function a(t){return"[object Array]"===o.call(t)}function i(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===o.call(t)}function f(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:a,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!i(t)&&null!==t.constructor&&!i(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:u,isUndefined:i,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:f,merge:function t(){var e={};function r(r,n){u(e[n])&&u(r)?e[n]=t(e[n],r):u(r)?e[n]=t({},r):a(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)f(arguments[n],r);return e},extend:function(t,e,r){return f(e,(function(e,o){t[o]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.replace(/^\s/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},5:function(t,e,r){"use strict";r.r(e),r.d(e,"getItem",(function(){return i})),r.d(e,"setItem",(function(){return s}));var n=r(4),o=r.n(n),a=r(12),i=function(){var t=Object(a.a)(o.a.mark((function t(e){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){chrome.storage.sync.get(e,(function(r){t(r[e])}))})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),s=function(){var t=Object(a.a)(o.a.mark((function t(e,r){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n={})[e]=r,chrome.storage.sync.set(n);case 3:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},554:function(t,e,r){"use strict";var n=r(49),o=r(290),a=r(555),i=r(296);function s(t){var e=new a(t),r=o(a.prototype.request,e);return n.extend(r,a.prototype,e),n.extend(r,e),r}var u=s(r(293));u.Axios=a,u.create=function(t){return s(i(u.defaults,t))},u.Cancel=r(297),u.CancelToken=r(568),u.isCancel=r(292),u.all=function(t){return Promise.all(t)},u.spread=r(569),u.isAxiosError=r(570),t.exports=u,t.exports.default=u},555:function(t,e,r){"use strict";var n=r(49),o=r(291),a=r(556),i=r(557),s=r(296);function u(t){this.defaults=t,this.interceptors={request:new a,response:new a}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[i,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)r=r.then(e.shift(),e.shift());return r},u.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^?/,"")},n.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,r,n){return this.request(s(n||{},{method:t,url:e,data:r}))}})),t.exports=u},556:function(t,e,r){"use strict";var n=r(49);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},557:function(t,e,r){"use strict";var n=r(49),o=r(558),a=r(292),i=r(293);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||i.adapter)(t).then((function(e){return s(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(s(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},558:function(t,e,r){"use strict";var n=r(49);t.exports=function(t,e,r){return n.forEach(r,(function(r){t=r(t,e)})),t}},559:function(t,e,r){"use strict";var n=r(49);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},560:function(t,e,r){"use strict";var n=r(295);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},561:function(t,e,r){"use strict";t.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},562:function(t,e,r){"use strict";var n=r(49);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,a,i){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\s*)("+t+")=([^;])"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},563:function(t,e,r){"use strict";var n=r(564),o=r(565);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},564:function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d+-.]:)?///i.test(t)}},565:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(//+$/,"")+"/"+e.replace(/^/+/,""):t}},566:function(t,e,r){"use strict";var n=r(49),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,a,i={};return t?(n.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=n.trim(t.substr(0,a)).toLowerCase(),r=n.trim(t.substr(a+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([r]):i[e]?i[e]+", "+r:r}})),i):i}},567:function(t,e,r){"use strict";var n=r(49);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},568:function(t,e,r){"use strict";var n=r(297);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},569:function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},57:function(t,e,r){"use strict";var n=r(303),o=r(301),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return null!==t&&"object"==typeof t}function u(t){return"[object Function]"===a.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===a.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===a.call(t)},isFile:function(t){return"[object File]"===a.call(t)},isBlob:function(t){return"[object Blob]"===a.call(t)},isFunction:u,isStream:function(t){return s(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function t(){var e={};function r(r,n){"object"==typeof e[n]&&"object"==typeof r?e[n]=t(e[n],r):e[n]=r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return e},extend:function(t,e,r){return c(e,(function(e,o){t[o]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},570:function(t,e,r){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},571:function(t,e,r){"use strict";var n=r(298),o=r(299),a={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},i=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(t){return i.call(t)},skipNulls:!1,strictNullHandling:!1},u=function t(e,r,o,a,i,u,c,f,l,p,d,h){var m=e;if("function"==typeof c)m=c(r,m);else if(m instanceof Date)m=p(m);else if(null===m){if(a)return u&&!h?u(r,s.encoder):r;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||n.isBuffer(m))return u?[d(h?r:u(r,s.encoder))+"="+d(u(m,s.encoder))]:[d(r)+"="+d(String(m))];var y,g=[];if(void 0===m)return g;if(Array.isArray(c))y=c;else{var v=Object.keys(m);y=f?v.sort(f):v}for(var b=0;b<y.length;++b){var w=y[b];i&&null===m[w]||(g=Array.isArray(m)?g.concat(t(m[w],o(r,w),o,a,i,u,c,f,l,p,d,h)):g.concat(t(m[w],r+(l?"."+w:"["+w+"]"),o,a,i,u,c,f,l,p,d,h)))}return g};t.exports=function(t,e){var r=t,i=e?n.assign({},e):{};if(null!==i.encoder&&void 0!==i.encoder&&"function"!=typeof i.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===i.delimiter?s.delimiter:i.delimiter,f="boolean"==typeof i.strictNullHandling?i.strictNullHandling:s.strictNullHandling,l="boolean"==typeof i.skipNulls?i.skipNulls:s.skipNulls,p="boolean"==typeof i.encode?i.encode:s.encode,d="function"==typeof i.encoder?i.encoder:s.encoder,h="function"==typeof i.sort?i.sort:null,m=void 0!==i.allowDots&&i.allowDots,y="function"==typeof i.serializeDate?i.serializeDate:s.serializeDate,g="boolean"==typeof i.encodeValuesOnly?i.encodeValuesOnly:s.encodeValuesOnly;if(void 0===i.format)i.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,i.format))throw new TypeError("Unknown format option provided.");var v,b,w=o.formatters[i.format];"function"==typeof i.filter?r=(b=i.filter)("",r):Array.isArray(i.filter)&&(v=b=i.filter);var x,j=[];if("object"!=typeof r||null===r)return"";x=i.arrayFormat in a?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var O=a[x];v||(v=Object.keys(r)),h&&v.sort(h);for(var S=0;S<v.length;++S){var C=v[S];l&&null===r[C]||(j=j.concat(u(r[C],C,O,f,l,p?d:null,b,h,m,y,w,g)))}var E=j.join(c),A=!0===i.addQueryPrefix?"?":"";return E.length>0?A+E:""}},572:function(t,e,r){"use strict";var n=r(298),o=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},i=function(t,e,r){if(t){var n=r.allowDots?t.replace(/.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(n),s=i?n.slice(0,i.index):n,u=[];if(s){if(!r.plainObjects&&o.call(Object.prototype,s)&&!r.allowPrototypes)return;u.push(s)}for(var c=0;null!==(i=a.exec(n))&&c<r.depth;){if(c+=1,!r.plainObjects&&o.call(Object.prototype,i[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(i[1])}return i&&u.push("["+n.slice(i.index)+"]"),function(t,e,r){for(var n=e,o=t.length-1;o>=0;--o){var a,i=t[o];if("[]"===i)a=(a=[]).concat(n);else{a=r.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,u=parseInt(s,10);!isNaN(u)&&i!==s&&String(u)===s&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(a=[])[u]=n:a[s]=n}n=a}return n}(u,e,r)}};t.exports=function(t,e){var r=e?n.assign({},e):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:a.delimiter,r.depth="number"==typeof r.depth?r.depth:a.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:a.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:a.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:a.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:a.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:a.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:a.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:a.strictNullHandling,""===t||null==t)return r.plainObjects?Object.create(null):{};for(var s="string"==typeof t?function(t,e){for(var r={},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=e.parameterLimit===1/0?void 0:e.parameterLimit,s=n.split(e.delimiter,i),u=0;u<s.length;++u){var c,f,l=s[u],p=l.indexOf("]="),d=-1===p?l.indexOf("="):p+1;-1===d?(c=e.decoder(l,a.decoder),f=e.strictNullHandling?null:""):(c=e.decoder(l.slice(0,d),a.decoder),f=e.decoder(l.slice(d+1),a.decoder)),o.call(r,c)?r[c]=[].concat(r[c]).concat(f):r[c]=f}return r}(t,r):t,u=r.plainObjects?Object.create(null):{},c=Object.keys(s),f=0;f<c.length;++f){var l=c[f],p=i(l,s[l],r);u=n.merge(u,p,r)}return n.compact(u)}},573:function(t,e){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var e=[],n=0;n<t.length;n+=3)for(var o=t[n]<<16|t[n+1]<<8|t[n+2],a=0;a<4;a++)8n+6a<=8t.length?e.push(r.charAt(o>>>6(3-a)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],n=0,o=0;n<t.length;o=++n%4)0!=o&&e.push((r.indexOf(t.charAt(n-1))&Math.pow(2,-2o+8)-1)<<2o|r.indexOf(t.charAt(n))>>>6-2o);return e}},t.exports=n},574:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(575),a=r(302),i=r(308),s=r(309);e.default=function(t,e){var r;return e.from&&(s.isSupport(e.from)||((r=new Error).language=e.from)),s.isSupport(e.to)||((r=new Error).language=e.to),r?(r.code=400,r.message="The language '"+r.language+"' is not supported",new Promise((function(t,e){e(r)}))):o.get(t.join(""),{tld:e.tld||"com",proxy:e.proxy||!1}).then((function(r){var o={anno:3,client:"webapp",format:e.format,v:1,key:null,logld:"vTE_20190506_00",sl:e.from||"auto",tl:e.to||"zh-CN",hl:"zh-CN",sp:"nmt",tc:2,sr:1,tk:r.value,mode:1},s=n({method:"POST",headers:{"content-type":"application/x-www-form-urlencoded","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36",Accept:"application/json, text/plain, /","X-Requested-With":"XMLHttpRequest"},data:i.arrayStringify(t),url:"/translate_a/t",baseURL:"https://translate.googleapis.com",params:o,proxy:e.proxy||!1},e.config),u="https://cors-anywhere.herokuapp.com/";return e.browersUrl&&(u=e.browersUrl),e.browers&&(s.baseURL=u+s.baseURL),a.default(s)}))}},575:function(t,e,r){var n=r(302);var o=null,a=function(t){return function(){return t}},i=function(t,e){for(var r=0;r<e.length-2;r+=3){var n="a"<=(n=e.charAt(r+2))?n.charCodeAt(0)-87:Number(n);n="+"==e.charAt(r+1)?t>>>n:t<<n;t="+"==e.charAt(r)?t+n&4294967295:t^n}return t},s={TKK:"0"};t.exports.get=function(t,e){return function(t){return t=t||{tld:"com"},new Promise((function(e,r){var o=Math.floor(Date.now()/36e5);Number(s.TKK.split(".")[0])===o?e():n({url:"https://translate.google."+t.tld,proxy:t.proxy}).then((function(t){var r=t.data.match(/tkk:\s?'(.+?)'/i);r&&(s.TKK=r[1]),e()})).catch((function(t){var e=new Error;e.code="BAD_NETWORK",e.message=t.message,r(e)}))}))}(e).then((function(){var e=function(t){var e;if(null!==o)e=o;else{e=a(String.fromCharCode(84));var r=a(String.fromCharCode(75));(e=[e(),e()])[1]=r(),e=(o=s[e.join(r())]||"")||""}var n=a(String.fromCharCode(116));r=a(String.fromCharCode(107)),(n=[n(),n()])[1]=r(),r="&"+n.join("")+"=",n=e.split("."),e=Number(n[0])||0;for(var u=[],c=0,f=0;f<t.length;f++){var l=t.charCodeAt(f);128>l?u[c++]=l:(2048>l?u[c++]=l>>6|192:(55296==(64512&l)&&f+1<t.length&&56320==(64512&t.charCodeAt(f+1))?(l=65536+((1023&l)<<10)+(1023&t.charCodeAt(++f)),u[c++]=l>>18|240,u[c++]=l>>12&63|128):u[c++]=l>>12|224,u[c++]=l>>6&63|128),u[c++]=63&l|128)}for(t=e,c=0;c<u.length;c++)t+=u[c],t=i(t,"+-a^+6");return t=i(t,"+-3^+b+-f"),0>(t^=Number(n[1])||0)&&(t=2147483648+(2147483647&t)),r+((t%=1e6).toString()+".")+(t^e)}(t);return{name:"tk",value:e=e.replace("&tk=","")}})).catch((function(t){throw t}))}},576:function(t,e,r){"use strict";var n=r(57),o=r(303),a=r(577),i=r(253);function s(t){var e=new a(t),r=o(a.prototype.request,e);return n.extend(r,a.prototype,e),n.extend(r,e),r}var u=s(i);u.Axios=a,u.create=function(t){return s(n.merge(i,t))},u.Cancel=r(307),u.CancelToken=r(591),u.isCancel=r(306),u.all=function(t){return Promise.all(t)},u.spread=r(592),t.exports=u,t.exports.default=u},577:function(t,e,r){"use strict";var n=r(253),o=r(57),a=r(586),i=r(587);function s(t){this.defaults=t,this.interceptors={request:new a,response:new a}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(n,this.defaults,{method:"get"},t)).method=t.method.toLowerCase();var e=[i,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)r=r.then(e.shift(),e.shift());return r},o.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,r){return this.request(o.merge(r||{},{method:t,url:e}))}})),o.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,r,n){return this.request(o.merge(n||{},{method:t,url:e,data:r}))}})),t.exports=s},578:function(t,e,r){"use strict";var n=r(57);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},579:function(t,e,r){"use strict";var n=r(305);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},580:function(t,e,r){"use strict";t.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t}},581:function(t,e,r){"use strict";var n=r(57);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var a;if(r)a=r(e);else if(n.isURLSearchParams(e))a=e.toString();else{var i=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)&&(e+="[]"),n.isArray(t)||(t=[t]),n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))})))})),a=i.join("&")}return a&&(t+=(-1===t.indexOf("?")?"?":"&")+a),t}},582:function(t,e,r){"use strict";var n=r(57),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,a,i={};return t?(n.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=n.trim(t.substr(0,a)).toLowerCase(),r=n.trim(t.substr(a+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([r]):i[e]?i[e]+", "+r:r}})),i):i}},583:function(t,e,r){"use strict";var n=r(57);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},584:function(t,e,r){"use strict";function n(){this.message="String contains an invalid character"}n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=function(t){for(var e,r,o=String(t),a="",i=0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.charAt(0|i)||(s="=",i%1);a+=s.charAt(63&e>>8-i%18)){if((r=o.charCodeAt(i+=3/4))>255)throw new n;e=e<<8|r}return a}},585:function(t,e,r){"use strict";var n=r(57);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,a,i){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\s*)("+t+")=([^;])"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},586:function(t,e,r){"use strict";var n=r(57);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},587:function(t,e,r){"use strict";var n=r(57),o=r(588),a=r(306),i=r(253),s=r(589),u=r(590);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!s(t.url)&&(t.url=u(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||i.adapter)(t).then((function(e){return c(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},588:function(t,e,r){"use strict";var n=r(57);t.exports=function(t,e,r){return n.forEach(r,(function(r){t=r(t,e)})),t}},589:function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d+-.]:)?///i.test(t)}},590:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(//+$/,"")+"/"+e.replace(/^/+/,""):t}},591:function(t,e,r){"use strict";var n=r(307);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},592:function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},593:function(t,e,r){t.exports=r.p+"icon-48.png"},612:function(t,e,r){"use strict";r.r(e);var n,o=r(34),a=r(4),i=r.n(a),s=r(12),u=r(79),c=r.n(u),f=r(116),l=r.n(f),p=r(254),d=r.n(p),h=new Uint8Array(16);function m(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(h)}var y=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var g=function(t){return"string"==typeof t&&y.test(t)},v=[],b=0;b<256;++b)v.push((b+256).toString(16).substr(1));var w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(v[t[e+0]]+v[t[e+1]]+v[t[e+2]]+v[t[e+3]]+"-"+v[t[e+4]]+v[t[e+5]]+"-"+v[t[e+6]]+v[t[e+7]]+"-"+v[t[e+8]]+v[t[e+9]]+"-"+v[t[e+10]]+v[t[e+11]]+v[t[e+12]]+v[t[e+13]]+v[t[e+14]]+v[t[e+15]]).toLowerCase();if(!g(r))throw TypeError("Stringified UUID is invalid");return r};var x=function(t,e,r){var n=(t=t||{}).random||(t.rng||m)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var o=0;o<16;++o)e[r+o]=n[o];return e}return w(n)},j=r(5),O=r(322),S=r.n(O),C=["DE","EN","FR","IT","JA","ES","NL","PL","PT","RU","ZH"],E=function(){var t=Object(s.a)(i.a.mark((function t(e){var r,n,o,a,s,u,f,p,h,m,y;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="",n="",t.next=4,(new Date).getTime();case 4:return o=t.sent,t.next=7,Object(j.getItem)("language");case 7:return a=t.sent,t.next=10,Object(j.getItem)("origin_lang");case 10:return s=t.sent,t.next=13,Object(j.getItem)("trans_api").then((function(t){r=t.youdao.key,n=t.youdao.id}));case 13:return u={q:e,appKey:n,salt:o,from:s,to:"zh-cn"===a?"zh-CHS":a,sign:d()(n+e+o+r)},f={method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},data:l.a.stringify(u),url:"https://openapi.youdao.com/api"},t.next=17,c()(f);case 17:return p=t.sent,h=[p.data.query,p.data.translation[0]],m=h[0],y=h[1],t.abrupt("return",{origin:m,translate:y});case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),A=function(){var t=Object(s.a)(i.a.mark((function t(e){var r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(j.getItem)("language");case 2:return r=t.sent,t.abrupt("return",S()(e,{tld:"cn",to:"zh"===r?"zh-CN":r,browers:!0}));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),T=function(){var t=Object(s.a)(i.a.mark((function t(e){var r,n,o,a,s,u,f,p,h,m;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="",n="",t.next=4,(new Date).getTime();case 4:return o=t.sent,t.next=7,Object(j.getItem)("language");case 7:return a=t.sent,t.next=10,Object(j.getItem)("origin_lang");case 10:return s=t.sent,t.next=13,Object(j.getItem)("trans_api").then((function(t){r=t.baidu.key,n=t.baidu.id}));case 13:return u={q:e,appid:n,salt:o,from:s,to:"zh-cn"===a?"zh":a,sign:d()(n+e+o+r)},f={method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},data:l.a.stringify(u),url:"https://fanyi-api.baidu.com/api/trans/vip/translate"},t.next=17,c()(f);case 17:if(p=t.sent,h=p.data.trans_result[0],h.src,""===(m=h.dst)||" "===m||void 0===m){t.next=21;break}return t.abrupt("return",{origin:e,translate:m});case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),k=function(){var t=Object(s.a)(i.a.mark((function t(e){var r,n,o,a,s,u;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=null,t.next=3,Object(j.getItem)("trans_api").then((function(t){r=t.yandex.id}));case 3:return t.next=5,Object(j.getItem)("language");case 5:return n=t.sent,t.next=8,Object(j.getItem)("origin_lang");case 8:return o=t.sent,a={lang:(o="auto"===o?"":o+"-")+("zh-cn"===n?"zh":n),text:e,key:r},s={method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},data:l.a.stringify(a),url:"https://translate.yandex.net/api/v1.5/tr.json/translate"},t.next=14,c()(s);case 14:if(200!==(u=t.sent).data.code){t.next=19;break}return t.abrupt("return",{origin:e,translate:u.data.text[0]});case 19:return t.abrupt("return",{origin:e,translate:"接口配置错误"});case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),L=function(){var t=Object(s.a)(i.a.mark((function t(e){var r,n,o,a,s,u;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(j.getItem)("language");case 2:return t.sent,t.next=5,Object(j.getItem)("origin_lang");case 5:return r=t.sent,n="",t.next=9,Object(j.getItem)("trans_api").then((function(t){n=t.deepl.key}));case 9:return o={auth_key:n,text:e,source_lang:r,target_lang:"ZH"},-1===C.indexOf(String.prototype.toUpperCase.call(r))&&delete o.source_lang,a={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:l.a.stringify(o),url:"https://api.deepl.com/v2/translate"},t.next=14,c()(a);case 14:if(200!==(s=t.sent).status){t.next=20;break}return u=s.data.translations&&s.data.translations[0]&&s.data.translations[0].text?s.data.translations[0].text:"翻译失败",t.abrupt("return",{origin:e,translate:u});case 20:return t.abrupt("return",{origin:e,translate:"接口配置错误"});case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),R=function(){var t=Object(s.a)(i.a.mark((function t(e){var r,n,o,a,s,u;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(j.getItem)("language");case 2:return t.sent,t.next=5,Object(j.getItem)("origin_lang");case 5:return r=t.sent,n="",t.next=9,Object(j.getItem)("trans_api").then((function(t){n=t.a_translator.key}));case 9:return o={auth_key:n,text:e,source_lang:r,target_lang:"ZH"},-1===C.indexOf(String.prototype.toUpperCase.call(r))&&delete o.source_lang,a={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:l.a.stringify(o),url:"https://a-translator-api.nerdynerd.org/v2/translate"},t.next=14,c()(a);case 14:if(200!==(s=t.sent).status){t.next=20;break}return u=s.data.translations&&s.data.translations[0]&&s.data.translations[0].text?s.data.translations[0].text:"翻译失败",t.abrupt("return",{origin:e,translate:u});case 20:return t.abrupt("return",{origin:e,translate:"接口配置错误"});case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),=function(){var t=Object(s.a)(i.a.mark((function t(e){var r,n,o,a,s,u;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(j.getItem)("language");case 2:return r=t.sent,t.next=5,Object(j.getItem)("origin_lang");case 5:return n=t.sent,o="",t.next=9,Object(j.getItem)("trans_api").then((function(t){o=t.caiyun.key}));case 9:return a={method:"POST",headers:{"content-type":"application/json","x-authorization":"token "+o},data:{source:e,trans_type:n+"2"+(r="zh-cn"===r?"zh":r),request_id:"demo",detect:!0},url:"http://api.interpreter.caiyunai.com/v1/translator"},t.next=15,c()(a);case 15:if(200!==(s=t.sent).status){t.next=21;break}return u=s.data.target?s.data.target:"翻译失败",t.abrupt("return",{origin:e,translate:u});case 21:return t.abrupt("return",{origin:e,translate:"接口配置错误"});case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),P=function(){var t=Object(s.a)(i.a.mark((function t(e){var r,n,o,a,s,u;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(j.getItem)("language");case 2:return r=t.sent,t.next=5,Object(j.getItem)("origin_lang");case 5:return n=t.sent,o="",t.next=9,Object(j.getItem)("trans_api").then((function(t){o=t.microsofttranslate.key}));case 9:return r="zh-cn"===r?"zh-Hans":r,a={baseURL:"https://api.cognitive.microsofttranslator.com",url:"/translate",method:"POST",headers:{"Ocp-Apim-Subscription-Key":o,"Ocp-Apim-Subscription-Region":"global","Content-type":"application/json","X-ClientTraceId":x().toString()},params:{"api-version":"3.0",from:"auto"==n?"en":n,to:["".concat(r)]},data:[{text:e}],responseType:"json"},t.next=14,c()(a);case 14:if(200!==(s=t.sent).status){t.next=21;break}return u=s.data[0].translations?s.data[0].translations[0]:"翻译失败",t.abrupt("return",{origin:e,translate:u.text});case 21:return t.abrupt("return",{origin:e,translate:"接口配置错误"});case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();r(593),r(154),chrome.runtime.onInstalled.addListener((function(t){if("install"==t.reason)chrome.storage.sync.set({status:!1,backgroundColor:"#000000",backgroundOpacity:1,origin_font:22,origin_color:"#ffffff",origin_weight:700,trans_font:28,trans_color:"#ffffff",trans_weight:700,language:"zh-cn",origin_lang:"auto",trans_way:"youdao",trans_api:{youdao:{id:"",key:""},baidu:{id:"",key:""},yandex:{id:""},deepl:{id:"",key:""},a_translator:{key:""},caiyun:{key:""},microsofttranslate:{key:""}},txt:{}});else if("update"==t.reason)chrome.runtime.getManifest().version}));var N=function(){var t=Object(s.a)(i.a.mark((function t(e){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(j.getItem)("trans_way");case 2:r=t.sent,t.t0=r,t.next="youdao"===t.t0?6:"google"===t.t0?9:"baidu"===t.t0?13:"yandex"===t.t0?16:"a_translator"===t.t0?19:"deepl"===t.t0?22:"caiyun"===t.t0?25:"microsofttranslate"===t.t0?28:31;break;case 6:return t.next=8,E(e);case 8:return t.abrupt("return",t.sent);case 9:return t.next=11,A(e);case 11:return n=t.sent,t.abrupt("return",{origin:e,translate:n.data[0]});case 13:return t.next=15,T(e);case 15:return t.abrupt("return",t.sent);case 16:return t.next=18,k(e);case 18:return t.abrupt("return",t.sent);case 19:return t.next=21,R(e);case 21:return t.abrupt("return",t.sent);case 22:return t.next=24,L(e);case 24:return t.abrupt("return",t.sent);case 25:return t.next=27,(e);case 27:return t.abrupt("return",t.sent);case 28:return t.next=30,P(e);case 30:return t.abrupt("return",t.sent);case 31:return t.abrupt("break",32);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();chrome.runtime.onMessage.addListener(function(){var t=Object(s.a)(i.a.mark((function t(e,r,n){var a,s;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.text,t.next=3,N(a);case 3:s=t.sent,chrome.tabs.query({active:!0,currentWindow:!0},(function(t){chrome.tabs.sendMessage(t[0].id,Object(o.a)({},s))}));case 6:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}())},79:function(t,e,r){t.exports=r(554)},81:function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function s(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,a=Object.create(o.prototype),i=new j(n||[]);return a._invoke=function(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return S()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=b(i,r);if(s){if(s===c)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var f=u(t,e,r);if("normal"===f.type){if(n=r.done?"completed":"suspendedYield",f.arg===c)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n="completed",r.method="throw",r.arg=f.arg)}}}(t,r,i),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var c={};function f(){}function l(){}function p(){}var d={};d[o]=function(){return this};var h=Object.getPrototypeOf,m=h&&h(h(O([])));m&&m!==e&&r.call(m,o)&&(d=m);var y=p.prototype=f.prototype=Object.create(d);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function v(t,e){var n;this._invoke=function(o,a){function i(){return new e((function(n,i){!function n(o,a,i,s){var c=u(t[o],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(l).then((function(t){f.value=t,i(f)}),(function(t){return n("throw",t,i,s)}))}s(c.arg)}(o,a,n,i)}))}return n=n?n.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,c;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:S}}function S(){return{value:void 0,done:!0}}return l.prototype=y.constructor=p,p.constructor=l,p[i]=l.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.proto=p,i in t||(t[i]="GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(v.prototype),v.prototype[a]=function(){return this},t.AsyncIterator=v,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new v(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(y),y[i]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,c):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant