1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/public/build/assets/index-08e160a7.js

3 lines
16 KiB
JavaScript
Raw Normal View History

2023-09-26 00:24:51 +02:00
import{g as Ge}from"./_commonjsHelpers-725317a4.js";var ne={exports:{}},Be=function(r,n){return function(){for(var t=new Array(arguments.length),a=0;a<t.length;a++)t[a]=arguments[a];return r.apply(n,t)}},Ye=Be,w=Object.prototype.toString;function ie(e){return Array.isArray(e)}function re(e){return typeof e>"u"}function Qe(e){return e!==null&&!re(e)&&e.constructor!==null&&!re(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function De(e){return w.call(e)==="[object ArrayBuffer]"}function Ze(e){return w.call(e)==="[object FormData]"}function er(e){var r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&De(e.buffer),r}function rr(e){return typeof e=="string"}function tr(e){return typeof e=="number"}function je(e){return e!==null&&typeof e=="object"}function T(e){if(w.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function nr(e){return w.call(e)==="[object Date]"}function ir(e){return w.call(e)==="[object File]"}function ar(e){return w.call(e)==="[object Blob]"}function $e(e){return w.call(e)==="[object Function]"}function sr(e){return je(e)&&$e(e.pipe)}function or(e){return w.call(e)==="[object URLSearchParams]"}function ur(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function fr(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ae(e,r){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ie(e))for(var n=0,i=e.length;n<i;n++)r.call(null,e[n],n,e);else for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.call(null,e[t],t,e)}function te(){var e={};function r(t,a){T(e[a])&&T(t)?e[a]=te(e[a],t):T(t)?e[a]=te({},t):ie(t)?e[a]=t.slice():e[a]=t}for(var n=0,i=arguments.length;n<i;n++)ae(arguments[n],r);return e}function lr(e,r,n){return ae(r,function(t,a){n&&typeof t=="function"?e[a]=Ye(t,n):e[a]=t}),e}function cr(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var p={isArray:ie,isArrayBuffer:De,isBuffer:Qe,isFormData:Ze,isArrayBufferView:er,isString:rr,isNumber:tr,isObject:je,isPlainObject:T,isUndefined:re,isDate:nr,isFile:ir,isBlob:ar,isFunction:$e,isStream:sr,isURLSearchParams:or,isStandardBrowserEnv:fr,forEach:ae,merge:te,extend:lr,trim:ur,stripBOM:cr},x=p;function ce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var _e=function(r,n,i){if(!n)return r;var t;if(i)t=i(n);else if(x.isURLSearchParams(n))t=n.toString();else{var a=[];x.forEach(n,function(l,f){l===null||typeof l>"u"||(x.isArray(l)?f=f+"[]":l=[l],x.forEach(l,function(s){x.isDate(s)?s=s.toISOString():x.isObject(s)&&(s=JSON.stringify(s)),a.push(ce(f)+"="+ce(s))}))}),t=a.join("&")}if(t){var u=r.indexOf("#");u!==-1&&(r=r.slice(0,u)),r+=(r.indexOf("?")===-1?"?":"&")+t}return r},dr=p;function U(){this.handlers=[]}U.prototype.use=function(r,n,i){return this.handlers.push({fulfilled:r,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1};U.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)};U.prototype.forEach=function(r){dr.forEach(this.handlers,function(i){i!==null&&r(i)})};var hr=U,pr=p,mr=function(r,n){pr.forEach(r,function(t,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(r[n]=t,delete r[a])})},Ie=function(r,n,i,t,a){return r.config=n,i&&(r.code=i),r.request=t,r.response=a,r.isAxiosError=!0,r.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}},r},$,de;function ke(){if(de)return $;de=1;var e=Ie;return $=function(n,i,t,a,u){var o=new Error(n);return e(o,i,t,a,u)},$}var _,he;function vr(){if(he)return _;he=1;var e=ke();return _=function(n,i,t){var a=t.config.validateStatus
`),function(f){if(o=f.indexOf(":"),a=e.trim(f.substr(0,o)).toLowerCase(),u=e.trim(f.substr(o+1)),a){if(t[a]&&r.indexOf(a)>=0)return;a==="set-cookie"?t[a]=(t[a]?t[a]:[]).concat([u]):t[a]=t[a]?t[a]+", "+u:u}}),t},M}var J,Ee;function Cr(){if(Ee)return J;Ee=1;var e=p;return J=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),t;function a(u){var o=u;return n&&(i.setAttribute("href",o),o=i.href),i.setAttribute("href",o),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return t=a(window.location.href),function(o){var l=e.isString(o)?a(o):o;return l.protocol===t.protocol&&l.host===t.host}}():function(){return function(){return!0}}(),J}var z,we;function L(){if(we)return z;we=1;function e(r){this.message=r}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,z=e,z}var V,Re;function Ce(){if(Re)return V;Re=1;var e=p,r=vr(),n=br(),i=_e,t=wr(),a=Rr(),u=Cr(),o=ke(),l=B(),f=L();return V=function(s){return new Promise(function(h,E){var q=s.data,A=s.headers,N=s.responseType,C;function oe(){s.cancelToken&&s.cancelToken.unsubscribe(C),s.signal&&s.signal.removeEventListener("abort",C)}e.isFormData(q)&&delete A["Content-Type"];var d=new XMLHttpRequest;if(s.auth){var Xe=s.auth.username||"",We=s.auth.password?unescape(encodeURIComponent(s.auth.password)):"";A.Authorization="Basic "+btoa(Xe+":"+We)}var ue=t(s.baseURL,s.url);d.open(s.method.toUpperCase(),i(ue,s.params,s.paramsSerializer),!0),d.timeout=s.timeout;function fe(){if(d){var b="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,S=!N||N==="text"||N==="json"?d.responseText:d.response,R={data:S,status:d.status,statusText:d.statusText,headers:b,config:s,request:d};r(function(j){h(j),oe()},function(j){E(j),oe()},R),d=null}}if("onloadend"in d?d.onloadend=fe:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(fe)},d.onabort=function(){d&&(E(o("Request aborted",s,"ECONNABORTED",d)),d=null)},d.onerror=function(){E(o("Network Error",s,null,d)),d=null},d.ontimeout=function(){var S=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",R=s.transitional||l.transitional;s.timeoutErrorMessage&&(S=s.timeoutErrorMessage),E(o(S,s,R.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},e.isStandardBrowserEnv()){var le=(s.withCredentials||u(ue))&&s.xsrfCookieName?n.read(s.xsrfCookieName):void 0;le&&(A[s.xsrfHeaderName]=le)}"setRequestHeader"in d&&e.forEach(A,function(S,R){typeof q>"u"&&R.toLowerCase()==="content-type"?delete A[R]:d.setRequestHeader(R,S)}),e.isUndefined(s.withCredentials)||(d.withCredentials=!!s.withCredentials),N&&N!=="json"&&(d.responseType=s.responseType),typeof s.onDownloadProgress=="function"&&d.addEventListener("progress",s.onDownloadProgress),typeof s.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",s.onUploadProgress),(s.cancelToken||s.signal)&&(C=function(b){d&&(E(!b||b&&b.type?new f("canceled"):b),d.abort(),d=null)},s.cancelToken&&s.cancelToken.subscribe(C),s.signal&&(s.signal.aborted?C():s.signal.addEventListener("abort",C))),q||(q=null),d.send(q)})},V}var X,Se;function B(){if(Se)return X;Se=1;var e=p,r=mr,n=Ie,i={"Content-Type":"application/x-www-form-urlencoded"};function t(l,f){!e.isUndefined(l)&&e.isUndefined(l["Content-Type"])&&(l["Content-Type"]=f)}function a(){var l;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(l=Ce()),l}function u(l,f,c){if(e.isString(l))try{return(f||JSON.parse)(l),e.trim(l)}catch(s){if(s.name!=="SyntaxError")throw s}return(c||JSON.stringify)(l)}var o={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:a(),transformRequest:[function(f,c){return r(c,"Accept"),r(c,"Content-Type"),e.is