-
Notifications
You must be signed in to change notification settings - Fork 0
/
982.805d4e25d108e9c18960.js
1 lines (1 loc) · 16.5 KB
/
982.805d4e25d108e9c18960.js
1
(self.webpackChunksparkworks_console=self.webpackChunksparkworks_console||[]).push([[982],{9982:function(h,v,t){h.exports=t(73899)},22190:function(h,v,t){"use strict";var n=t(65259),p=t(60527),d=t(26076),e=t(32409),s=t(622),c=t(60824),f=t(32248),o=t(96233),u=t(14714),i=t(74130);h.exports=function(r){return new Promise(function(E,b){var P,S=r.data,R=r.headers,N=r.responseType;function g(){r.cancelToken&&r.cancelToken.unsubscribe(P),r.signal&&r.signal.removeEventListener("abort",P)}n.isFormData(S)&&delete R["Content-Type"];var m=new XMLHttpRequest;if(r.auth){var A=r.auth.username||"",B=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";R.Authorization="Basic "+btoa(A+":"+B)}var U=s(r.baseURL,r.url);function a(){if(m){var w="getAllResponseHeaders"in m?c(m.getAllResponseHeaders()):null;p(function(j){E(j),g()},function(j){b(j),g()},{data:N&&"text"!==N&&"json"!==N?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:w,config:r,request:m}),m=null}}if(m.open(r.method.toUpperCase(),e(U,r.params,r.paramsSerializer),!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=a:m.onreadystatechange=function(){!m||4!==m.readyState||0===m.status&&(!m.responseURL||0!==m.responseURL.indexOf("file:"))||setTimeout(a)},m.onabort=function(){!m||(b(o("Request aborted",r,"ECONNABORTED",m)),m=null)},m.onerror=function(){b(o("Network Error",r,null,m)),m=null},m.ontimeout=function(){var O=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";r.timeoutErrorMessage&&(O=r.timeoutErrorMessage),b(o(O,r,(r.transitional||u.transitional).clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},n.isStandardBrowserEnv()){var C=(r.withCredentials||f(U))&&r.xsrfCookieName?d.read(r.xsrfCookieName):void 0;C&&(R[r.xsrfHeaderName]=C)}"setRequestHeader"in m&&n.forEach(R,function(O,y){void 0===S&&"content-type"===y.toLowerCase()?delete R[y]:m.setRequestHeader(y,O)}),n.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),N&&"json"!==N&&(m.responseType=r.responseType),"function"==typeof r.onDownloadProgress&&m.addEventListener("progress",r.onDownloadProgress),"function"==typeof r.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",r.onUploadProgress),(r.cancelToken||r.signal)&&(P=function(O){!m||(b(!O||O&&O.type?new i("canceled"):O),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(P),r.signal&&(r.signal.aborted?P():r.signal.addEventListener("abort",P))),S||(S=null),m.send(S)})}},73899:function(h,v,t){"use strict";var n=t(65259),p=t(89404),d=t(71482),e=t(42439),f=function c(o){var u=new d(o),i=p(d.prototype.request,u);return n.extend(i,d.prototype,u),n.extend(i,u),i.create=function(r){return c(e(o,r))},i}(t(14714));f.Axios=d,f.Cancel=t(74130),f.CancelToken=t(7720),f.isCancel=t(22871),f.VERSION=t(34792).version,f.all=function(u){return Promise.all(u)},f.spread=t(88297),f.isAxiosError=t(4078),h.exports=f,h.exports.default=f},74130:function(h){"use strict";function v(t){this.message=t}v.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},v.prototype.__CANCEL__=!0,h.exports=v},7720:function(h,v,t){"use strict";var n=t(74130);function p(d){if("function"!=typeof d)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(f){e=f});var s=this;this.promise.then(function(c){if(s._listeners){var f,o=s._listeners.length;for(f=0;f<o;f++)s._listeners[f](c);s._listeners=null}}),this.promise.then=function(c){var f,o=new Promise(function(u){s.subscribe(u),f=u}).then(c);return o.cancel=function(){s.unsubscribe(f)},o},d(function(f){s.reason||(s.reason=new n(f),e(s.reason))})}p.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},p.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},p.prototype.unsubscribe=function(e){if(this._listeners){var s=this._listeners.indexOf(e);-1!==s&&this._listeners.splice(s,1)}},p.source=function(){var e;return{token:new p(function(f){e=f}),cancel:e}},h.exports=p},22871:function(h){"use strict";h.exports=function(t){return!(!t||!t.__CANCEL__)}},71482:function(h,v,t){"use strict";var n=t(65259),p=t(32409),d=t(18362),e=t(5727),s=t(42439),c=t(80899),f=c.validators;function o(u){this.defaults=u,this.interceptors={request:new d,response:new d}}o.prototype.request=function(i,l){"string"==typeof i?(l=l||{}).url=i:l=i||{},(l=s(this.defaults,l)).method=l.method?l.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var r=l.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:f.transitional(f.boolean),forcedJSONParsing:f.transitional(f.boolean),clarifyTimeoutError:f.transitional(f.boolean)},!1);var x=[],E=!0;this.interceptors.request.forEach(function(A){"function"==typeof A.runWhen&&!1===A.runWhen(l)||(E=E&&A.synchronous,x.unshift(A.fulfilled,A.rejected))});var S,b=[];if(this.interceptors.response.forEach(function(A){b.push(A.fulfilled,A.rejected)}),!E){var R=[e,void 0];for(Array.prototype.unshift.apply(R,x),R=R.concat(b),S=Promise.resolve(l);R.length;)S=S.then(R.shift(),R.shift());return S}for(var N=l;x.length;){var P=x.shift(),g=x.shift();try{N=P(N)}catch(m){g(m);break}}try{S=e(N)}catch(m){return Promise.reject(m)}for(;b.length;)S=S.then(b.shift(),b.shift());return S},o.prototype.getUri=function(i){return i=s(this.defaults,i),p(i.url,i.params,i.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(i){o.prototype[i]=function(l,r){return this.request(s(r||{},{method:i,url:l,data:(r||{}).data}))}}),n.forEach(["post","put","patch"],function(i){o.prototype[i]=function(l,r,x){return this.request(s(x||{},{method:i,url:l,data:r}))}}),h.exports=o},18362:function(h,v,t){"use strict";var n=t(65259);function p(){this.handlers=[]}p.prototype.use=function(e,s,c){return this.handlers.push({fulfilled:e,rejected:s,synchronous:!!c&&c.synchronous,runWhen:c?c.runWhen:null}),this.handlers.length-1},p.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},p.prototype.forEach=function(e){n.forEach(this.handlers,function(c){null!==c&&e(c)})},h.exports=p},622:function(h,v,t){"use strict";var n=t(14959),p=t(67284);h.exports=function(e,s){return e&&!n(s)?p(e,s):s}},96233:function(h,v,t){"use strict";var n=t(44554);h.exports=function(d,e,s,c,f){var o=new Error(d);return n(o,e,s,c,f)}},5727:function(h,v,t){"use strict";var n=t(65259),p=t(18160),d=t(22871),e=t(14714),s=t(74130);function c(f){if(f.cancelToken&&f.cancelToken.throwIfRequested(),f.signal&&f.signal.aborted)throw new s("canceled")}h.exports=function(o){return c(o),o.headers=o.headers||{},o.data=p.call(o,o.data,o.headers,o.transformRequest),o.headers=n.merge(o.headers.common||{},o.headers[o.method]||{},o.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(l){delete o.headers[l]}),(o.adapter||e.adapter)(o).then(function(l){return c(o),l.data=p.call(o,l.data,l.headers,o.transformResponse),l},function(l){return d(l)||(c(o),l&&l.response&&(l.response.data=p.call(o,l.response.data,l.response.headers,o.transformResponse))),Promise.reject(l)})}},44554:function(h){"use strict";h.exports=function(t,n,p,d,e){return t.config=n,p&&(t.code=p),t.request=d,t.response=e,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,status:this.response&&this.response.status?this.response.status:null}},t}},42439:function(h,v,t){"use strict";var n=t(65259);h.exports=function(d,e){e=e||{};var s={};function c(r,x){return n.isPlainObject(r)&&n.isPlainObject(x)?n.merge(r,x):n.isPlainObject(x)?n.merge({},x):n.isArray(x)?x.slice():x}function f(r){return n.isUndefined(e[r])?n.isUndefined(d[r])?void 0:c(void 0,d[r]):c(d[r],e[r])}function o(r){if(!n.isUndefined(e[r]))return c(void 0,e[r])}function u(r){return n.isUndefined(e[r])?n.isUndefined(d[r])?void 0:c(void 0,d[r]):c(void 0,e[r])}function i(r){return r in e?c(d[r],e[r]):r in d?c(void 0,d[r]):void 0}var l={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:i};return n.forEach(Object.keys(d).concat(Object.keys(e)),function(x){var E=l[x]||f,b=E(x);n.isUndefined(b)&&E!==i||(s[x]=b)}),s}},60527:function(h,v,t){"use strict";var n=t(96233);h.exports=function(d,e,s){var c=s.config.validateStatus;s.status&&c&&!c(s.status)?e(n("Request failed with status code "+s.status,s.config,null,s.request,s)):d(s)}},18160:function(h,v,t){"use strict";var n=t(65259),p=t(14714);h.exports=function(e,s,c){var f=this||p;return n.forEach(c,function(u){e=u.call(f,e,s)}),e}},14714:function(h,v,t){"use strict";var n=t(65259),p=t(59778),d=t(44554),e={"Content-Type":"application/x-www-form-urlencoded"};function s(u,i){!n.isUndefined(u)&&n.isUndefined(u["Content-Type"])&&(u["Content-Type"]=i)}var u,o={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=t(22190)),u),transformRequest:[function(i,l){return p(l,"Accept"),p(l,"Content-Type"),n.isFormData(i)||n.isArrayBuffer(i)||n.isBuffer(i)||n.isStream(i)||n.isFile(i)||n.isBlob(i)?i:n.isArrayBufferView(i)?i.buffer:n.isURLSearchParams(i)?(s(l,"application/x-www-form-urlencoded;charset=utf-8"),i.toString()):n.isObject(i)||l&&"application/json"===l["Content-Type"]?(s(l,"application/json"),function(u,i,l){if(n.isString(u))try{return(0,JSON.parse)(u),n.trim(u)}catch(r){if("SyntaxError"!==r.name)throw r}return(0,JSON.stringify)(u)}(i)):i}],transformResponse:[function(i){var l=this.transitional||o.transitional,E=!(l&&l.silentJSONParsing)&&"json"===this.responseType;if(E||l&&l.forcedJSONParsing&&n.isString(i)&&i.length)try{return JSON.parse(i)}catch(b){if(E)throw"SyntaxError"===b.name?d(b,this,"E_JSON_PARSE"):b}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(i){o.headers[i]={}}),n.forEach(["post","put","patch"],function(i){o.headers[i]=n.merge(e)}),h.exports=o},34792:function(h){h.exports={version:"0.26.0"}},89404:function(h){"use strict";h.exports=function(t,n){return function(){for(var d=new Array(arguments.length),e=0;e<d.length;e++)d[e]=arguments[e];return t.apply(n,d)}}},32409:function(h,v,t){"use strict";var n=t(65259);function p(d){return encodeURIComponent(d).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}h.exports=function(e,s,c){if(!s)return e;var f;if(c)f=c(s);else if(n.isURLSearchParams(s))f=s.toString();else{var o=[];n.forEach(s,function(l,r){null==l||(n.isArray(l)?r+="[]":l=[l],n.forEach(l,function(E){n.isDate(E)?E=E.toISOString():n.isObject(E)&&(E=JSON.stringify(E)),o.push(p(r)+"="+p(E))}))}),f=o.join("&")}if(f){var u=e.indexOf("#");-1!==u&&(e=e.slice(0,u)),e+=(-1===e.indexOf("?")?"?":"&")+f}return e}},67284:function(h){"use strict";h.exports=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}},26076:function(h,v,t){"use strict";var n=t(65259);h.exports=n.isStandardBrowserEnv()?{write:function(e,s,c,f,o,u){var i=[];i.push(e+"="+encodeURIComponent(s)),n.isNumber(c)&&i.push("expires="+new Date(c).toGMTString()),n.isString(f)&&i.push("path="+f),n.isString(o)&&i.push("domain="+o),!0===u&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var s=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},14959:function(h){"use strict";h.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},4078:function(h,v,t){"use strict";var n=t(65259);h.exports=function(d){return n.isObject(d)&&!0===d.isAxiosError}},32248:function(h,v,t){"use strict";var n=t(65259);h.exports=n.isStandardBrowserEnv()?function(){var s,d=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");function c(f){var o=f;return d&&(e.setAttribute("href",o),o=e.href),e.setAttribute("href",o),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return s=c(window.location.href),function(o){var u=n.isString(o)?c(o):o;return u.protocol===s.protocol&&u.host===s.host}}():function(){return!0}},59778:function(h,v,t){"use strict";var n=t(65259);h.exports=function(d,e){n.forEach(d,function(c,f){f!==e&&f.toUpperCase()===e.toUpperCase()&&(d[e]=c,delete d[f])})}},60824:function(h,v,t){"use strict";var n=t(65259),p=["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"];h.exports=function(e){var c,f,o,s={};return e&&n.forEach(e.split("\n"),function(i){if(o=i.indexOf(":"),c=n.trim(i.substr(0,o)).toLowerCase(),f=n.trim(i.substr(o+1)),c){if(s[c]&&p.indexOf(c)>=0)return;s[c]="set-cookie"===c?(s[c]?s[c]:[]).concat([f]):s[c]?s[c]+", "+f:f}}),s}},88297:function(h){"use strict";h.exports=function(t){return function(p){return t.apply(null,p)}}},80899:function(h,v,t){"use strict";var n=t(34792).version,p={};["object","boolean","number","function","string","symbol"].forEach(function(s,c){p[s]=function(o){return typeof o===s||"a"+(c<1?"n ":" ")+s}});var d={};p.transitional=function(c,f,o){function u(i,l){return"[Axios v"+n+"] Transitional option '"+i+"'"+l+(o?". "+o:"")}return function(i,l,r){if(!1===c)throw new Error(u(l," has been removed"+(f?" in "+f:"")));return f&&!d[l]&&(d[l]=!0,console.warn(u(l," has been deprecated since v"+f+" and will be removed in the near future"))),!c||c(i,l,r)}},h.exports={assertOptions:function(s,c,f){if("object"!=typeof s)throw new TypeError("options must be an object");for(var o=Object.keys(s),u=o.length;u-- >0;){var i=o[u],l=c[i];if(l){var r=s[i],x=void 0===r||l(r,i,s);if(!0!==x)throw new TypeError("option "+i+" must be "+x)}else if(!0!==f)throw Error("Unknown option "+i)}},validators:p}},65259:function(h,v,t){"use strict";var n=t(89404),p=Object.prototype.toString;function d(a){return Array.isArray(a)}function e(a){return void 0===a}function c(a){return"[object ArrayBuffer]"===p.call(a)}function l(a){return null!==a&&"object"==typeof a}function r(a){if("[object Object]"!==p.call(a))return!1;var C=Object.getPrototypeOf(a);return null===C||C===Object.prototype}function S(a){return"[object Function]"===p.call(a)}function m(a,C){if(null!=a)if("object"!=typeof a&&(a=[a]),d(a))for(var w=0,O=a.length;w<O;w++)C.call(null,a[w],w,a);else for(var y in a)Object.prototype.hasOwnProperty.call(a,y)&&C.call(null,a[y],y,a)}h.exports={isArray:d,isArrayBuffer:c,isBuffer:function(a){return null!==a&&!e(a)&&null!==a.constructor&&!e(a.constructor)&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)},isFormData:function(a){return"[object FormData]"===p.call(a)},isArrayBufferView:function(a){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(a):a&&a.buffer&&c(a.buffer)},isString:function(a){return"string"==typeof a},isNumber:function(a){return"number"==typeof a},isObject:l,isPlainObject:r,isUndefined:e,isDate:function(a){return"[object Date]"===p.call(a)},isFile:function(a){return"[object File]"===p.call(a)},isBlob:function(a){return"[object Blob]"===p.call(a)},isFunction:S,isStream:function(a){return l(a)&&S(a.pipe)},isURLSearchParams:function(a){return"[object URLSearchParams]"===p.call(a)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:m,merge:function A(){var a={};function C(y,T){a[T]=r(a[T])&&r(y)?A(a[T],y):r(y)?A({},y):d(y)?y.slice():y}for(var w=0,O=arguments.length;w<O;w++)m(arguments[w],C);return a},extend:function(a,C,w){return m(C,function(y,T){a[T]=w&&"function"==typeof y?n(y,w):y}),a},trim:function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")},stripBOM:function(a){return 65279===a.charCodeAt(0)&&(a=a.slice(1)),a}}}}]);