ots/frontend/app.js

2 lines
1.2 MiB
JavaScript
Raw Normal View History

/*! For license information please see app.js.LICENSE.txt */
(()=>{var t={9669:(t,o,e)=>{t.exports=e(1609)},5448:(t,o,e)=>{"use strict";var r=e(4867),i=e(6026),n=e(4372),a=e(5327),l=e(4097),d=e(4109),s=e(7985),m=e(5061);t.exports=function(t){return new Promise((function(o,e){var c=t.data,p=t.headers,u=t.responseType;r.isFormData(c)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.Authorization="Basic "+btoa(b+":"+g)}var h=l(t.baseURL,t.url);function v(){if(f){var r="getAllResponseHeaders"in f?d(f.getAllResponseHeaders()):null,n={data:u&&"text"!==u&&"json"!==u?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:t,request:f};i(o,e,n),f=null}}if(f.open(t.method.toUpperCase(),a(h,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(v)},f.onabort=function(){f&&(e(m("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){e(m("Network Error",t,null,f)),f=null},f.ontimeout=function(){var o="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(o=t.timeoutErrorMessage),e(m(o,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var x=(t.withCredentials||s(h))&&t.xsrfCookieName?n.read(t.xsrfCookieName):void 0;x&&(p[t.xsrfHeaderName]=x)}"setRequestHeader"in f&&r.forEach(p,(function(t,o){void 0===c&&"content-type"===o.toLowerCase()?delete p[o]:f.setRequestHeader(o,t)})),r.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),u&&"json"!==u&&(f.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),e(t),f=null)})),c||(c=null),f.send(c)}))}},1609:(t,o,e)=>{"use strict";var r=e(4867),i=e(1849),n=e(321),a=e(7185);function l(t){var o=new n(t),e=i(n.prototype.request,o);return r.extend(e,n.prototype,o),r.extend(e,o),e}var d=l(e(5655));d.Axios=n,d.create=function(t){return l(a(d.defaults,t))},d.Cancel=e(5263),d.CancelToken=e(4972),d.isCancel=e(6502),d.all=function(t){return Promise.all(t)},d.spread=e(8713),d.isAxiosError=e(6268),t.exports=d,t.exports.default=d},5263:t=>{"use strict";function o(t){this.message=t}o.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},o.prototype.__CANCEL__=!0,t.exports=o},4972:(t,o,e)=>{"use strict";var r=e(5263);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var o;this.promise=new Promise((function(t){o=t}));var e=this;t((function(t){e.reason||(e.reason=new r(t),o(e.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(o){t=o})),cancel:t}},t.exports=i},6502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,o,e)=>{"use strict";var r=e(4867),i=e(5327),n=e(782),a=e(3572),l=e(7185),d=e(4875),s=d.validators;function m(t){this.defaults=t,this.interceptors={request:new n,response:new n}}m.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=l(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var o=t.transitional;void 0!==o&&d.assertOptions(o,{silentJSONParsing:s.transitional(s.boolean,"1.0.0"),forcedJSONParsing:s.transitional(s.boolean,"1.0.0"),clarifyTimeoutError:s.transitional(s.boolean,"1.0.0")},!1);var e=[],r=!0;this.interceptors.request.forEach((function(o){"function"==typeof o.runWhen&&!1===o.runWhen(t)||(r=r&&o.synchronous,e.unshift(o.fulfilled,o.rejected))}));var i,n=[];if(this.interceptors.response.forEach((function(t){n.push(t.fulfilled,t.rejected)})),!r){var m=[a,void 0];for(Array.prototype.unshift.apply(m,e),m=m.concat(n