From eb98a6c58aab38e3dcba5f99803818aecd38920a Mon Sep 17 00:00:00 2001 From: Louis Charette Date: Sat, 5 Oct 2024 22:34:58 -0400 Subject: [PATCH] Add Activities to Dashboard --- .../views/Dashboard/DashboardActivities.vue | 42 + app/assets/views/DashboardView.vue | 3 +- dist/DashboardView-CDywR_mi.cjs | 6 - dist/DashboardView-CWbg9J12.cjs | 6 + ...-BzVrZAyo.js => DashboardView-DAlMYGe4.js} | 1012 +++++++++-------- dist/routes.cjs | 2 +- dist/routes.js | 2 +- .../Dashboard/DashboardActivities.vue.d.ts | 2 + 8 files changed, 598 insertions(+), 477 deletions(-) create mode 100644 app/assets/views/Dashboard/DashboardActivities.vue delete mode 100644 dist/DashboardView-CDywR_mi.cjs create mode 100644 dist/DashboardView-CWbg9J12.cjs rename dist/{DashboardView-BzVrZAyo.js => DashboardView-DAlMYGe4.js} (64%) create mode 100644 dist/views/Dashboard/DashboardActivities.vue.d.ts diff --git a/app/assets/views/Dashboard/DashboardActivities.vue b/app/assets/views/Dashboard/DashboardActivities.vue new file mode 100644 index 0000000..af4b16c --- /dev/null +++ b/app/assets/views/Dashboard/DashboardActivities.vue @@ -0,0 +1,42 @@ + + + diff --git a/app/assets/views/DashboardView.vue b/app/assets/views/DashboardView.vue index d896ff7..a7d872b 100644 --- a/app/assets/views/DashboardView.vue +++ b/app/assets/views/DashboardView.vue @@ -3,6 +3,7 @@ import { useDashboardApi } from '../composable/dashboard' import DashboardStats from './Dashboard/DashboardStats.vue' import DashboardRecentUsers from './Dashboard/DashboardRecentUsers.vue' import DashboardSystemInfo from './Dashboard/DashboardSystemInfo.vue' +import DashboardActivities from './Dashboard/DashboardActivities.vue' const dashboard = useDashboardApi() dashboard.load() @@ -30,7 +31,7 @@ dashboard.load()
- +
diff --git a/dist/DashboardView-CDywR_mi.cjs b/dist/DashboardView-CDywR_mi.cjs deleted file mode 100644 index 1dd4561..0000000 --- a/dist/DashboardView-CDywR_mi.cjs +++ /dev/null @@ -1,6 +0,0 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),et=require("pinia"),tt=require("./moment-Bp7fbP4q.cjs");function xe(e,t){return function(){return e.apply(t,arguments)}}const{toString:nt}=Object.prototype,{getPrototypeOf:le}=Object,W=(e=>t=>{const n=nt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>W(t)===e),K=e=>t=>typeof t===e,{isArray:L}=Array,q=K("undefined");function rt(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ke=C("ArrayBuffer");function st(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ke(e.buffer),t}const ot=K("string"),_=K("function"),Pe=K("number"),G=e=>e!==null&&typeof e=="object",it=e=>e===!0||e===!1,M=e=>{if(W(e)!=="object")return!1;const t=le(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},at=C("Date"),ct=C("File"),lt=C("Blob"),ut=C("FileList"),dt=e=>G(e)&&_(e.pipe),ft=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_(e.append)&&((t=W(e))==="formdata"||t==="object"&&_(e.toString)&&e.toString()==="[object FormData]"))},pt=C("URLSearchParams"),[mt,ht,yt,Et]=["ReadableStream","Request","Response","Headers"].map(C),bt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),L(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const D=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,De=e=>!q(e)&&e!==D;function ne(){const{caseless:e}=De(this)&&this||{},t={},n=(r,s)=>{const o=e&&Be(t,s)||s;M(t[o])&&M(r)?t[o]=ne(t[o],r):M(r)?t[o]=ne({},r):L(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(I(t,(s,o)=>{n&&_(s)?e[o]=xe(s,n):e[o]=s},{allOwnKeys:r}),e),gt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),St=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Rt=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&le(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Nt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ot=e=>{if(!e)return null;if(L(e))return e;let t=e.length;if(!Pe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Tt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&le(Uint8Array)),At=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},_t=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ct=C("HTMLFormElement"),xt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),he=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kt=C("RegExp"),Fe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Pt=e=>{Fe(e,(t,n)=>{if(_(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(_(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Bt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return L(e)?r(e):r(String(e).split(t)),n},Dt=()=>{},Ft=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Z="abcdefghijklmnopqrstuvwxyz",ye="0123456789",Ue={DIGIT:ye,ALPHA:Z,ALPHA_DIGIT:Z+Z.toUpperCase()+ye},Ut=(e=16,t=Ue.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Lt(e){return!!(e&&_(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Vt=e=>{const t=new Array(10),n=(r,s)=>{if(G(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=L(r)?[]:{};return I(r,(i,l)=>{const f=n(i,s+1);!q(f)&&(o[l]=f)}),t[s]=void 0,o}}return r};return n(e,0)},jt=C("AsyncFunction"),qt=e=>e&&(G(e)||_(e))&&_(e.then)&&_(e.catch),Le=((e,t)=>e?setImmediate:t?((n,r)=>(D.addEventListener("message",({source:s,data:o})=>{s===D&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),D.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_(D.postMessage)),It=typeof queueMicrotask<"u"?queueMicrotask.bind(D):typeof process<"u"&&process.nextTick||Le,a={isArray:L,isArrayBuffer:ke,isBuffer:rt,isFormData:ft,isArrayBufferView:st,isString:ot,isNumber:Pe,isBoolean:it,isObject:G,isPlainObject:M,isReadableStream:mt,isRequest:ht,isResponse:yt,isHeaders:Et,isUndefined:q,isDate:at,isFile:ct,isBlob:lt,isRegExp:kt,isFunction:_,isStream:dt,isURLSearchParams:pt,isTypedArray:Tt,isFileList:ut,forEach:I,merge:ne,extend:wt,trim:bt,stripBOM:gt,inherits:St,toFlatObject:Rt,kindOf:W,kindOfTest:C,endsWith:Nt,toArray:Ot,forEachEntry:At,matchAll:_t,isHTMLForm:Ct,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:Fe,freezeMethods:Pt,toObjectSet:Bt,toCamelCase:xt,noop:Dt,toFiniteNumber:Ft,findKey:Be,global:D,isContextDefined:De,ALPHABET:Ue,generateString:Ut,isSpecCompliantForm:Lt,toJSONObject:Vt,isAsyncFn:jt,isThenable:qt,setImmediate:Le,asap:It};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(y,Error,{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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Ve=y.prototype,je={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{je[e]={value:e}});Object.defineProperties(y,je);Object.defineProperty(Ve,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,o)=>{const i=Object.create(Ve);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const vt=null;function re(e){return a.isPlainObject(e)||a.isArray(e)}function qe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ee(e,t,n){return e?e.concat(t).map(function(s,o){return s=qe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Ht(e){return a.isArray(e)&&!e.some(re)}const Mt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function X(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,h){return!a.isUndefined(h[E])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(a.isDate(m))return m.toISOString();if(!f&&a.isBlob(m))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(m)||a.isTypedArray(m)?f&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,E,h){let w=m;if(m&&!h&&typeof m=="object"){if(a.endsWith(E,"{}"))E=r?E:E.slice(0,-2),m=JSON.stringify(m);else if(a.isArray(m)&&Ht(m)||(a.isFileList(m)||a.endsWith(E,"[]"))&&(w=a.toArray(m)))return E=qe(E),w.forEach(function(N,x){!(a.isUndefined(N)||N===null)&&t.append(i===!0?Ee([E],x,o):i===null?E:E+"[]",u(N))}),!1}return re(m)?!0:(t.append(Ee(h,E,o),u(m)),!1)}const p=[],b=Object.assign(Mt,{defaultVisitor:d,convertValue:u,isVisitable:re});function S(m,E){if(!a.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));p.push(m),a.forEach(m,function(w,R){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(R)?R.trim():R,E,b))===!0&&S(w,E?E.concat(R):[R])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function be(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ue(e,t){this._pairs=[],e&&X(e,this,t)}const Ie=ue.prototype;Ie.append=function(t,n){this._pairs.push([t,n])};Ie.toString=function(t){const n=t?function(r){return t.call(this,r,be)}:be;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function zt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ve(e,t,n){if(!t)return e;const r=n&&n.encode||zt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new ue(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class we{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const He={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jt=typeof URLSearchParams<"u"?URLSearchParams:ue,$t=typeof FormData<"u"?FormData:null,Wt=typeof Blob<"u"?Blob:null,Kt={isBrowser:!0,classes:{URLSearchParams:Jt,FormData:$t,Blob:Wt},protocols:["http","https","file","blob","url","data"]},de=typeof window<"u"&&typeof document<"u",se=typeof navigator=="object"&&navigator||void 0,Gt=de&&(!se||["ReactNative","NativeScript","NS"].indexOf(se.product)<0),Xt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qt=de&&window.location.href||"http://localhost",Zt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:de,hasStandardBrowserEnv:Gt,hasStandardBrowserWebWorkerEnv:Xt,navigator:se,origin:Qt},Symbol.toStringTag,{value:"Module"})),T={...Zt,...Kt};function Yt(e,t){return X(e,new T.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return T.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function en(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function tn(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=tn(s[i])),!l)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(en(r),s,n,0)}),n}return null}function nn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const v={transitional:He,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Me(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Yt(t,this.formSerializer).toString();if((l=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return X(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),nn(t)):t}],transformResponse:[function(t){const n=this.transitional||v.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?y.from(l,y.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{v.headers[e]={}});const rn=a.toObjectSet(["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"]),sn=e=>{const t={};let n,r,s;return e&&e.split(` -`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&rn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ge=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function z(e){return e===!1||e==null?e:a.isArray(e)?e.map(z):String(e)}function on(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const an=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Y(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function cn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ln(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class A{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,f,u){const d=j(f);if(!d)throw new Error("header name must be a non-empty string");const p=a.findKey(s,d);(!p||s[p]===void 0||u===!0||u===void 0&&s[p]!==!1)&&(s[p||f]=z(l))}const i=(l,f)=>a.forEach(l,(u,d)=>o(u,d,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!an(t))i(sn(t),n);else if(a.isHeaders(t))for(const[l,f]of t.entries())o(f,l,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=j(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return on(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Y(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const l=a.findKey(r,i);l&&(!n||Y(r,r[l],l,n))&&(delete r[l],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Y(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=z(s),delete n[o];return}const l=t?cn(o):String(o).trim();l!==o&&delete n[o],n[l]=z(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ge]=this[ge]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=j(i);r[l]||(ln(s,i),r[l]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(A);function ee(e,t){const n=this||v,r=t||n,s=A.from(r.headers);let o=r.data;return a.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function ze(e){return!!(e&&e.__CANCEL__)}function V(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(V,y,{__CANCEL__:!0});function Je(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function un(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function dn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),d=r[o];i||(i=u),n[s]=f,r[s]=u;let p=o,b=0;for(;p!==s;)b+=n[p++],p=p%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i{n=d,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),p=d-n;p>=r?i(u,d):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-p)))},()=>s&&i(s)]}const J=(e,t,n=3)=>{let r=0;const s=dn(50,250);return fn(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,f=i-r,u=s(f),d=i<=l;r=i;const p={loaded:i,total:l,progress:l?i/l:void 0,bytes:f,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},Se=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Re=e=>(...t)=>a.asap(()=>e(...t)),pn=T.hasStandardBrowserEnv?function(){const t=T.navigator&&/(msie|trident)/i.test(T.navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const l=a.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),mn=T.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $e(e,t){return e&&!hn(t)?yn(e,t):t}const Ne=e=>e instanceof A?{...e}:e;function U(e,t){t=t||{};const n={};function r(u,d,p){return a.isPlainObject(u)&&a.isPlainObject(d)?a.merge.call({caseless:p},u,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function s(u,d,p){if(a.isUndefined(d)){if(!a.isUndefined(u))return r(void 0,u,p)}else return r(u,d,p)}function o(u,d){if(!a.isUndefined(d))return r(void 0,d)}function i(u,d){if(a.isUndefined(d)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,p){if(p in t)return r(u,d);if(p in e)return r(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,d)=>s(Ne(u),Ne(d),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=f[d]||s,b=p(e[d],t[d],d);a.isUndefined(b)&&p!==l||(n[d]=b)}),n}const We=e=>{const t=U({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=A.from(i),t.url=ve($e(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let f;if(a.isFormData(n)){if(T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...d]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(T.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&pn(t.url))){const u=s&&o&&mn.read(o);u&&i.set(s,u)}return t},En=typeof XMLHttpRequest<"u",bn=En&&function(e){return new Promise(function(n,r){const s=We(e);let o=s.data;const i=A.from(s.headers).normalize();let{responseType:l,onUploadProgress:f,onDownloadProgress:u}=s,d,p,b,S,m;function E(){S&&S(),m&&m(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function w(){if(!h)return;const N=A.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),O={data:!l||l==="text"||l==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:N,config:e,request:h};Je(function(B){n(B),E()},function(B){r(B),E()},O),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new y("Request aborted",y.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let x=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const O=s.transitional||He;s.timeoutErrorMessage&&(x=s.timeoutErrorMessage),r(new y(x,O.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(x,O){h.setRequestHeader(O,x)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),l&&l!=="json"&&(h.responseType=s.responseType),u&&([b,m]=J(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([p,S]=J(f),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(d=N=>{h&&(r(!N||N.type?new V(null,e,h):N),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const R=un(s.url);if(R&&T.protocols.indexOf(R)===-1){r(new y("Unsupported protocol "+R+":",y.ERR_BAD_REQUEST,e));return}h.send(o||null)})},wn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,l();const d=u instanceof Error?u:this.reason;r.abort(d instanceof y?d:new V(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(l),f}},gn=function*(e,t){let n=e.byteLength;if(n{const s=Sn(e,t);let o=0,i,l=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:d}=await s.next();if(u){l(),f.close();return}let p=d.byteLength;if(n){let b=o+=p;n(b)}f.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(f){return l(f),s.return()}},{highWaterMark:2})},Q=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ke=Q&&typeof ReadableStream=="function",Nn=Q&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ge=(e,...t)=>{try{return!!e(...t)}catch{return!1}},On=Ke&&Ge(()=>{let e=!1;const t=new Request(T.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Te=64*1024,oe=Ke&&Ge(()=>a.isReadableStream(new Response("").body)),$={stream:oe&&(e=>e.body)};Q&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!$[t]&&($[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new y(`Response type '${t}' is not supported`,y.ERR_NOT_SUPPORT,r)})})})(new Response);const Tn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(T.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await Nn(e)).byteLength},An=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Tn(t)},_n=Q&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:f,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:b}=We(e);u=u?(u+"").toLowerCase():"text";let S=wn([s,o&&o.toAbortSignal()],i),m;const E=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let h;try{if(f&&On&&n!=="get"&&n!=="head"&&(h=await An(d,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(a.isFormData(r)&&(k=O.headers.get("content-type"))&&d.setContentType(k),O.body){const[B,H]=Se(h,J(Re(f)));r=Oe(O.body,Te,B,H)}}a.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;m=new Request(t,{...b,signal:S,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:w?p:void 0});let R=await fetch(m);const N=oe&&(u==="stream"||u==="response");if(oe&&(l||N&&E)){const O={};["status","statusText","headers"].forEach(me=>{O[me]=R[me]});const k=a.toFiniteNumber(R.headers.get("content-length")),[B,H]=l&&Se(k,J(Re(l),!0))||[];R=new Response(Oe(R.body,Te,B,()=>{H&&H(),E&&E()}),O)}u=u||"text";let x=await $[a.findKey($,u)||"text"](R,e);return!N&&E&&E(),await new Promise((O,k)=>{Je(O,k,{data:x,headers:A.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:m})})}catch(w){throw E&&E(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,e,m),{cause:w.cause||w}):y.from(w,w&&w.code,e,m)}}),ie={http:vt,xhr:bn,fetch:_n};a.forEach(ie,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ae=e=>`- ${e}`,Cn=e=>a.isFunction(e)||e===null||e===!1,Xe={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${l} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : -`+o.map(Ae).join(` -`):" "+Ae(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ie};function te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new V(null,e)}function _e(e){return te(e),e.headers=A.from(e.headers),e.data=ee.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xe.getAdapter(e.adapter||v.adapter)(e).then(function(r){return te(e),r.data=ee.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return ze(r)||(te(e),r&&r.response&&(r.response.data=ee.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const Qe="1.7.7",fe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ce={};fe.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Qe+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new y(s(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!Ce[i]&&(Ce[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function xn(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],f=l===void 0||i(l,o,e);if(f!==!0)throw new y("option "+o+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+o,y.ERR_BAD_OPTION)}}const ae={assertOptions:xn,validators:fe},P=ae.validators;class F{constructor(t){this.defaults=t,this.interceptors={request:new we,response:new we}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=U(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&ae.assertOptions(r,{silentJSONParsing:P.transitional(P.boolean),forcedJSONParsing:P.transitional(P.boolean),clarifyTimeoutError:P.transitional(P.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:ae.assertOptions(s,{encode:P.function,serialize:P.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=A.concat(i,o);const l=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const u=[];this.interceptors.response.forEach(function(E){u.push(E.fulfilled,E.rejected)});let d,p=0,b;if(!f){const m=[_e.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),b=m.length,d=Promise.resolve(n);p{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new V(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new pe(function(s){t=s}),cancel:t}}}function kn(e){return function(n){return e.apply(null,n)}}function Pn(e){return a.isObject(e)&&e.isAxiosError===!0}const ce={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ce).forEach(([e,t])=>{ce[t]=e});function Ze(e){const t=new F(e),n=xe(F.prototype.request,t);return a.extend(n,F.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ze(U(e,s))},n}const g=Ze(v);g.Axios=F;g.CanceledError=V;g.CancelToken=pe;g.isCancel=ze;g.VERSION=Qe;g.toFormData=X;g.AxiosError=y;g.Cancel=g.CanceledError;g.all=function(t){return Promise.all(t)};g.spread=kn;g.isAxiosError=Pn;g.mergeConfig=U;g.AxiosHeaders=A;g.formToJSON=e=>Me(a.isHTMLForm(e)?new FormData(e):e);g.getAdapter=Xe.getAdapter;g.HttpStatusCode=ce;g.default=g;var Ye=(e=>(e.Primary="Primary",e.Success="Success",e.Warning="Warning",e.Danger="Danger",e))(Ye||{});const Bn={counter:{users:0,roles:0,groups:0},info:{frameworkVersion:"",phpVersion:"",database:{connection:"",name:"",type:"",version:""},server:"",projectPath:""},sprinkles:{},users:[]},Dn=et.defineStore("dashboardApi",{state:()=>({data:Bn}),actions:{async load(){return g.get("/api/dashboard").then(e=>(this.data=e.data,this.data)).catch(e=>{throw{description:"An error as occurred",style:Ye.Danger,closeBtn:!0,...e.response.data}})}}}),Fn=c.defineComponent({__name:"DashboardStats",props:{users:{},roles:{},groups:{}},setup(e){return(t,n)=>{const r=c.resolveComponent("UFInfoBox");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(r,{value:t.users,label:"Users",faIcon:"user",to:{name:"admin.users"}},null,8,["value"]),c.createVNode(r,{value:t.roles,label:"Roles",faIcon:"address-card",to:{name:"admin.roles"}},null,8,["value"]),c.createVNode(r,{value:t.groups,label:"Groups",faIcon:"users",to:{name:"admin.groups"}},null,8,["value"])],64)}}}),Un={class:"uk-grid uk-flex-center","uk-grid":""},Ln=["src"],Vn={class:"uk-margin-remove"},jn={class:"uk-margin-remove uk-text-meta"},qn=c.defineComponent({__name:"DashboardRecentUsers",props:{users:{}},setup(e){return(t,n)=>{const r=c.resolveComponent("RouterLink"),s=c.resolveComponent("UFCardBox");return c.openBlock(),c.createBlock(s,{title:"Latest Users"},{footer:c.withCtx(()=>[c.createVNode(r,{to:{name:"admin.users"},class:"uk-text-center"},{default:c.withCtx(()=>n[0]||(n[0]=[c.createTextVNode("View All Users")])),_:1})]),default:c.withCtx(()=>[c.createElementVNode("div",Un,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.users,o=>(c.openBlock(),c.createElementBlock("div",{key:o.id,class:"uk-text-center"},[c.createVNode(r,{to:{name:"admin.user",params:{user_name:o.user_name}},class:"uk-text-decoration-none uk-link-text"},{default:c.withCtx(()=>[c.createElementVNode("img",{src:o.avatar,alt:"User Image",class:"uk-border-circle"},null,8,Ln),c.createElementVNode("p",Vn,c.toDisplayString(o.full_name),1),c.createElementVNode("p",jn,c.toDisplayString(c.unref(tt.hooks)(o.created_at).fromNow()),1)]),_:2},1032,["to"])]))),128))])]),_:1})}}}),In={class:"uk-description-list"},vn={class:"uk-list uk-list-disc uk-list-collapse"},Hn=c.defineComponent({__name:"DashboardSystemInfo",props:{info:{},sprinkles:{}},setup(e){return(t,n)=>{const r=c.resolveComponent("UFCardBox");return c.openBlock(),c.createBlock(r,{title:"System Information"},{default:c.withCtx(()=>[c.createElementVNode("dl",In,[n[0]||(n[0]=c.createElementVNode("dt",null,"Framework version",-1)),c.createElementVNode("dd",null,[c.createElementVNode("pre",null,[c.createElementVNode("code",null,c.toDisplayString(t.info.frameworkVersion),1)])]),n[1]||(n[1]=c.createElementVNode("dt",null,"PHP version",-1)),c.createElementVNode("dd",null,[c.createElementVNode("pre",null,[c.createElementVNode("code",null,c.toDisplayString(t.info.phpVersion),1)])]),n[2]||(n[2]=c.createElementVNode("dt",null,"Webserver software",-1)),c.createElementVNode("dd",null,[c.createElementVNode("pre",null,[c.createElementVNode("code",null,c.toDisplayString(t.info.server),1)])]),n[3]||(n[3]=c.createElementVNode("dt",null,"Database connection",-1)),c.createElementVNode("dd",null,[c.createElementVNode("pre",null,[c.createElementVNode("code",null,c.toDisplayString(t.info.database.connection),1)])]),n[4]||(n[4]=c.createElementVNode("dt",null,"Database version",-1)),c.createElementVNode("dd",null,[c.createElementVNode("pre",null,[c.createElementVNode("code",null,c.toDisplayString(t.info.database.type)+" "+c.toDisplayString(t.info.database.version),1)])]),n[5]||(n[5]=c.createElementVNode("dt",null,"Database name",-1)),c.createElementVNode("dd",null,[c.createElementVNode("pre",null,[c.createElementVNode("code",null,c.toDisplayString(t.info.database.name),1)])]),n[6]||(n[6]=c.createElementVNode("dt",null,"Project directory",-1)),c.createElementVNode("dd",null,[c.createElementVNode("pre",null,[c.createElementVNode("code",null,c.toDisplayString(t.info.projectPath),1)])]),n[7]||(n[7]=c.createElementVNode("dt",null,"Loaded sprinkles",-1)),c.createElementVNode("dd",null,[c.createElementVNode("ul",vn,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.sprinkles,s=>(c.openBlock(),c.createElementBlock("li",{key:s},c.toDisplayString(s),1))),128))])])])]),_:1})}}}),Mn={class:"uk-child-width-expand","uk-grid":""},zn={class:"uk-child-width-1-2","uk-grid":""},Jn={class:"uk-child-width-1-1","uk-grid":""},$n=c.defineComponent({__name:"DashboardView",setup(e){const t=Dn();return t.load(),(n,r)=>{const s=c.resolveComponent("UFHeaderPage"),o=c.resolveComponent("UFCardBox");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(s,{title:"Dashboard"}),c.createElementVNode("div",Mn,[c.createVNode(Fn,{users:c.unref(t).data.counter.users,roles:c.unref(t).data.counter.roles,groups:c.unref(t).data.counter.groups},null,8,["users","roles","groups"])]),c.createElementVNode("div",zn,[c.createElementVNode("div",null,[c.createElementVNode("div",Jn,[c.createElementVNode("div",null,[c.createVNode(qn,{users:c.unref(t).data.users},null,8,["users"])]),c.createElementVNode("div",null,[c.createVNode(Hn,{info:c.unref(t).data.info,sprinkles:c.unref(t).data.sprinkles},null,8,["info","sprinkles"])])])]),c.createElementVNode("div",null,[c.createVNode(o,{title:"Activities"})])])],64)}}});exports.default=$n; diff --git a/dist/DashboardView-CWbg9J12.cjs b/dist/DashboardView-CWbg9J12.cjs new file mode 100644 index 0000000..d6c4886 --- /dev/null +++ b/dist/DashboardView-CWbg9J12.cjs @@ -0,0 +1,6 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),tt=require("pinia"),ne=require("./moment-Bp7fbP4q.cjs");function ke(e,t){return function(){return e.apply(t,arguments)}}const{toString:nt}=Object.prototype,{getPrototypeOf:ue}=Object,W=(e=>t=>{const n=nt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>W(t)===e),K=e=>t=>typeof t===e,{isArray:U}=Array,v=K("undefined");function rt(e){return e!==null&&!v(e)&&e.constructor!==null&&!v(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const De=C("ArrayBuffer");function ot(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&De(e.buffer),t}const st=K("string"),A=K("function"),Pe=K("number"),G=e=>e!==null&&typeof e=="object",it=e=>e===!0||e===!1,M=e=>{if(W(e)!=="object")return!1;const t=ue(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},at=C("Date"),lt=C("File"),ct=C("Blob"),ut=C("FileList"),dt=e=>G(e)&&A(e.pipe),ft=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=W(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},pt=C("URLSearchParams"),[mt,ht,yt,Et]=["ReadableStream","Request","Response","Headers"].map(C),bt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function q(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),U(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const B=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fe=e=>!v(e)&&e!==B;function re(){const{caseless:e}=Fe(this)&&this||{},t={},n=(r,o)=>{const s=e&&Be(t,o)||o;M(t[s])&&M(r)?t[s]=re(t[s],r):M(r)?t[s]=re({},r):U(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(q(t,(o,s)=>{n&&A(o)?e[s]=ke(o,n):e[s]=o},{allOwnKeys:r}),e),gt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),St=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Rt=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ue(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Nt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},_t=e=>{if(!e)return null;if(U(e))return e;let t=e.length;if(!Pe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Tt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ue(Uint8Array)),Ot=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},At=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ct=C("HTMLFormElement"),xt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ye=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kt=C("RegExp"),Ve=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};q(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},Dt=e=>{Ve(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Pt=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return U(e)?r(e):r(String(e).split(t)),n},Bt=()=>{},Ft=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Q="abcdefghijklmnopqrstuvwxyz",Ee="0123456789",Ue={DIGIT:Ee,ALPHA:Q,ALPHA_DIGIT:Q+Q.toUpperCase()+Ee},Vt=(e=16,t=Ue.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ut(e){return!!(e&&A(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Lt=e=>{const t=new Array(10),n=(r,o)=>{if(G(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=U(r)?[]:{};return q(r,(i,c)=>{const f=n(i,o+1);!v(f)&&(s[c]=f)}),t[o]=void 0,s}}return r};return n(e,0)},jt=C("AsyncFunction"),vt=e=>e&&(G(e)||A(e))&&A(e.then)&&A(e.catch),Le=((e,t)=>e?setImmediate:t?((n,r)=>(B.addEventListener("message",({source:o,data:s})=>{o===B&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),B.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(B.postMessage)),qt=typeof queueMicrotask<"u"?queueMicrotask.bind(B):typeof process<"u"&&process.nextTick||Le,l={isArray:U,isArrayBuffer:De,isBuffer:rt,isFormData:ft,isArrayBufferView:ot,isString:st,isNumber:Pe,isBoolean:it,isObject:G,isPlainObject:M,isReadableStream:mt,isRequest:ht,isResponse:yt,isHeaders:Et,isUndefined:v,isDate:at,isFile:lt,isBlob:ct,isRegExp:kt,isFunction:A,isStream:dt,isURLSearchParams:pt,isTypedArray:Tt,isFileList:ut,forEach:q,merge:re,extend:wt,trim:bt,stripBOM:gt,inherits:St,toFlatObject:Rt,kindOf:W,kindOfTest:C,endsWith:Nt,toArray:_t,forEachEntry:Ot,matchAll:At,isHTMLForm:Ct,hasOwnProperty:ye,hasOwnProp:ye,reduceDescriptors:Ve,freezeMethods:Dt,toObjectSet:Pt,toCamelCase:xt,noop:Bt,toFiniteNumber:Ft,findKey:Be,global:B,isContextDefined:Fe,ALPHABET:Ue,generateString:Vt,isSpecCompliantForm:Ut,toJSONObject:Lt,isAsyncFn:jt,isThenable:vt,setImmediate:Le,asap:qt};function y(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}l.inherits(y,Error,{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:l.toJSONObject(this.config),code:this.code,status:this.status}}});const je=y.prototype,ve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ve[e]={value:e}});Object.defineProperties(y,ve);Object.defineProperty(je,"isAxiosError",{value:!0});y.from=(e,t,n,r,o,s)=>{const i=Object.create(je);return l.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),y.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const It=null;function oe(e){return l.isPlainObject(e)||l.isArray(e)}function qe(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function be(e,t,n){return e?e.concat(t).map(function(o,s){return o=qe(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Ht(e){return l.isArray(e)&&!e.some(oe)}const Mt=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function X(e,t,n){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=l.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,h){return!l.isUndefined(h[E])});const r=n.metaTokens,o=n.visitor||d,s=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(l.isDate(m))return m.toISOString();if(!f&&l.isBlob(m))throw new y("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(m)||l.isTypedArray(m)?f&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,E,h){let w=m;if(m&&!h&&typeof m=="object"){if(l.endsWith(E,"{}"))E=r?E:E.slice(0,-2),m=JSON.stringify(m);else if(l.isArray(m)&&Ht(m)||(l.isFileList(m)||l.endsWith(E,"[]"))&&(w=l.toArray(m)))return E=qe(E),w.forEach(function(N,x){!(l.isUndefined(N)||N===null)&&t.append(i===!0?be([E],x,s):i===null?E:E+"[]",u(N))}),!1}return oe(m)?!0:(t.append(be(h,E,s),u(m)),!1)}const p=[],b=Object.assign(Mt,{defaultVisitor:d,convertValue:u,isVisitable:oe});function S(m,E){if(!l.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));p.push(m),l.forEach(m,function(w,R){(!(l.isUndefined(w)||w===null)&&o.call(t,w,l.isString(R)?R.trim():R,E,b))===!0&&S(w,E?E.concat(R):[R])}),p.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return S(e),t}function we(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function de(e,t){this._pairs=[],e&&X(e,this,t)}const Ie=de.prototype;Ie.append=function(t,n){this._pairs.push([t,n])};Ie.toString=function(t){const n=t?function(r){return t.call(this,r,we)}:we;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function zt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He(e,t,n){if(!t)return e;const r=n&&n.encode||zt,o=n&&n.serialize;let s;if(o?s=o(t,n):s=l.isURLSearchParams(t)?t.toString():new de(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class ge{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$t=typeof URLSearchParams<"u"?URLSearchParams:de,Jt=typeof FormData<"u"?FormData:null,Wt=typeof Blob<"u"?Blob:null,Kt={isBrowser:!0,classes:{URLSearchParams:$t,FormData:Jt,Blob:Wt},protocols:["http","https","file","blob","url","data"]},fe=typeof window<"u"&&typeof document<"u",se=typeof navigator=="object"&&navigator||void 0,Gt=fe&&(!se||["ReactNative","NativeScript","NS"].indexOf(se.product)<0),Xt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yt=fe&&window.location.href||"http://localhost",Qt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fe,hasStandardBrowserEnv:Gt,hasStandardBrowserWebWorkerEnv:Xt,navigator:se,origin:Yt},Symbol.toStringTag,{value:"Module"})),T={...Qt,...Kt};function Zt(e,t){return X(e,new T.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return T.isNode&&l.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function en(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function tn(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&l.isArray(o)?o.length:i,f?(l.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!l.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&l.isArray(o[i])&&(o[i]=tn(o[i])),!c)}if(l.isFormData(e)&&l.isFunction(e.entries)){const n={};return l.forEachEntry(e,(r,o)=>{t(en(r),o,n,0)}),n}return null}function nn(e,t,n){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const I={transitional:Me,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=l.isObject(t);if(s&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return o?JSON.stringify(ze(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(t)||l.isReadableStream(t))return t;if(l.isArrayBufferView(t))return t.buffer;if(l.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Zt(t,this.formSerializer).toString();if((c=l.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return X(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),nn(t)):t}],transformResponse:[function(t){const n=this.transitional||I.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(l.isResponse(t)||l.isReadableStream(t))return t;if(t&&l.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],e=>{I.headers[e]={}});const rn=l.toObjectSet(["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"]),on=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&rn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Se=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function z(e){return e===!1||e==null?e:l.isArray(e)?e.map(z):String(e)}function sn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const an=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Z(e,t,n,r,o){if(l.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!l.isString(t)){if(l.isString(r))return t.indexOf(r)!==-1;if(l.isRegExp(r))return r.test(t)}}function ln(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cn(e,t){const n=l.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class O{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,f,u){const d=j(f);if(!d)throw new Error("header name must be a non-empty string");const p=l.findKey(o,d);(!p||o[p]===void 0||u===!0||u===void 0&&o[p]!==!1)&&(o[p||f]=z(c))}const i=(c,f)=>l.forEach(c,(u,d)=>s(u,d,f));if(l.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(l.isString(t)&&(t=t.trim())&&!an(t))i(on(t),n);else if(l.isHeaders(t))for(const[c,f]of t.entries())s(f,c,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=j(t),t){const r=l.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return sn(o);if(l.isFunction(n))return n.call(this,o,r);if(l.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=l.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Z(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=j(i),i){const c=l.findKey(r,i);c&&(!n||Z(r,r[c],c,n))&&(delete r[c],o=!0)}}return l.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Z(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return l.forEach(this,(o,s)=>{const i=l.findKey(r,s);if(i){n[i]=z(o),delete n[s];return}const c=t?ln(s):String(s).trim();c!==s&&delete n[s],n[c]=z(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return l.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&l.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Se]=this[Se]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=j(i);r[c]||(cn(o,i),r[c]=!0)}return l.isArray(t)?t.forEach(s):s(t),this}}O.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);l.reduceDescriptors(O.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});l.freezeMethods(O);function ee(e,t){const n=this||I,r=t||n,o=O.from(r.headers);let s=r.data;return l.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function $e(e){return!!(e&&e.__CANCEL__)}function L(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}l.inherits(L,y,{__CANCEL__:!0});function Je(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function un(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function dn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),d=r[s];i||(i=u),n[o]=f,r[o]=u;let p=s,b=0;for(;p!==o;)b+=n[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i{n=d,o=null,s&&(clearTimeout(s),s=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),p=d-n;p>=r?i(u,d):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},r-p)))},()=>o&&i(o)]}const $=(e,t,n=3)=>{let r=0;const o=dn(50,250);return fn(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,f=i-r,u=o(f),d=i<=c;r=i;const p={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&d?(c-i)/u:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},Re=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ne=e=>(...t)=>l.asap(()=>e(...t)),pn=T.hasStandardBrowserEnv?function(){const t=T.navigator&&/(msie|trident)/i.test(T.navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const c=l.isString(i)?o(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),mn=T.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];l.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),l.isString(r)&&i.push("path="+r),l.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function We(e,t){return e&&!hn(t)?yn(e,t):t}const _e=e=>e instanceof O?{...e}:e;function V(e,t){t=t||{};const n={};function r(u,d,p){return l.isPlainObject(u)&&l.isPlainObject(d)?l.merge.call({caseless:p},u,d):l.isPlainObject(d)?l.merge({},d):l.isArray(d)?d.slice():d}function o(u,d,p){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u,p)}else return r(u,d,p)}function s(u,d){if(!l.isUndefined(d))return r(void 0,d)}function i(u,d){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function c(u,d,p){if(p in t)return r(u,d);if(p in e)return r(void 0,u)}const f={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(u,d)=>o(_e(u),_e(d),!0)};return l.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=f[d]||o,b=p(e[d],t[d],d);l.isUndefined(b)&&p!==c||(n[d]=b)}),n}const Ke=e=>{const t=V({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=O.from(i),t.url=He(We(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(l.isFormData(n)){if(T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...d]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(T.hasStandardBrowserEnv&&(r&&l.isFunction(r)&&(r=r(t)),r||r!==!1&&pn(t.url))){const u=o&&s&&mn.read(s);u&&i.set(o,u)}return t},En=typeof XMLHttpRequest<"u",bn=En&&function(e){return new Promise(function(n,r){const o=Ke(e);let s=o.data;const i=O.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=o,d,p,b,S,m;function E(){S&&S(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function w(){if(!h)return;const N=O.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),_={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:N,config:e,request:h};Je(function(P){n(P),E()},function(P){r(P),E()},_),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new y("Request aborted",y.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||Me;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),r(new y(x,_.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,h)),h=null},s===void 0&&i.setContentType(null),"setRequestHeader"in h&&l.forEach(i.toJSON(),function(x,_){h.setRequestHeader(_,x)}),l.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),c&&c!=="json"&&(h.responseType=o.responseType),u&&([b,m]=$(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([p,S]=$(f),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(d=N=>{h&&(r(!N||N.type?new L(null,e,h):N),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const R=un(o.url);if(R&&T.protocols.indexOf(R)===-1){r(new y("Unsupported protocol "+R+":",y.ERR_BAD_REQUEST,e));return}h.send(s||null)})},wn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(u){if(!o){o=!0,c();const d=u instanceof Error?u:this.reason;r.abort(d instanceof y?d:new L(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,s(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:f}=r;return f.unsubscribe=()=>l.asap(c),f}},gn=function*(e,t){let n=e.byteLength;if(n{const o=Sn(e,t);let s=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:d}=await o.next();if(u){c(),f.close();return}let p=d.byteLength;if(n){let b=s+=p;n(b)}f.enqueue(new Uint8Array(d))}catch(u){throw c(u),u}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},Y=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ge=Y&&typeof ReadableStream=="function",Nn=Y&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Xe=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_n=Ge&&Xe(()=>{let e=!1;const t=new Request(T.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Oe=64*1024,ie=Ge&&Xe(()=>l.isReadableStream(new Response("").body)),J={stream:ie&&(e=>e.body)};Y&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!J[t]&&(J[t]=l.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new y(`Response type '${t}' is not supported`,y.ERR_NOT_SUPPORT,r)})})})(new Response);const Tn=async e=>{if(e==null)return 0;if(l.isBlob(e))return e.size;if(l.isSpecCompliantForm(e))return(await new Request(T.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(l.isArrayBufferView(e)||l.isArrayBuffer(e))return e.byteLength;if(l.isURLSearchParams(e)&&(e=e+""),l.isString(e))return(await Nn(e)).byteLength},On=async(e,t)=>{const n=l.toFiniteNumber(e.getContentLength());return n??Tn(t)},An=Y&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:b}=Ke(e);u=u?(u+"").toLowerCase():"text";let S=wn([o,s&&s.toAbortSignal()],i),m;const E=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let h;try{if(f&&_n&&n!=="get"&&n!=="head"&&(h=await On(d,r))!==0){let _=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(l.isFormData(r)&&(k=_.headers.get("content-type"))&&d.setContentType(k),_.body){const[P,H]=Re(h,$(Ne(f)));r=Te(_.body,Oe,P,H)}}l.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;m=new Request(t,{...b,signal:S,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:w?p:void 0});let R=await fetch(m);const N=ie&&(u==="stream"||u==="response");if(ie&&(c||N&&E)){const _={};["status","statusText","headers"].forEach(he=>{_[he]=R[he]});const k=l.toFiniteNumber(R.headers.get("content-length")),[P,H]=c&&Re(k,$(Ne(c),!0))||[];R=new Response(Te(R.body,Oe,P,()=>{H&&H(),E&&E()}),_)}u=u||"text";let x=await J[l.findKey(J,u)||"text"](R,e);return!N&&E&&E(),await new Promise((_,k)=>{Je(_,k,{data:x,headers:O.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:m})})}catch(w){throw E&&E(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,e,m),{cause:w.cause||w}):y.from(w,w&&w.code,e,m)}}),ae={http:It,xhr:bn,fetch:An};l.forEach(ae,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ae=e=>`- ${e}`,Cn=e=>l.isFunction(e)||e===null||e===!1,Ye={getAdapter:e=>{e=l.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since : +`+s.map(Ae).join(` +`):" "+Ae(s[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ae};function te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new L(null,e)}function Ce(e){return te(e),e.headers=O.from(e.headers),e.data=ee.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ye.getAdapter(e.adapter||I.adapter)(e).then(function(r){return te(e),r.data=ee.call(e,e.transformResponse,r),r.headers=O.from(r.headers),r},function(r){return $e(r)||(te(e),r&&r.response&&(r.response.data=ee.call(e,e.transformResponse,r.response),r.response.headers=O.from(r.response.headers))),Promise.reject(r)})}const Qe="1.7.7",pe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xe={};pe.transitional=function(t,n,r){function o(s,i){return"[Axios v"+Qe+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,c)=>{if(t===!1)throw new y(o(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!xe[i]&&(xe[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,c):!0}};function xn(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const c=e[s],f=c===void 0||i(c,s,e);if(f!==!0)throw new y("option "+s+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+s,y.ERR_BAD_OPTION)}}const le={assertOptions:xn,validators:pe},D=le.validators;class F{constructor(t){this.defaults=t,this.interceptors={request:new ge,response:new ge}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=V(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&le.assertOptions(r,{silentJSONParsing:D.transitional(D.boolean),forcedJSONParsing:D.transitional(D.boolean),clarifyTimeoutError:D.transitional(D.boolean)},!1),o!=null&&(l.isFunction(o)?n.paramsSerializer={serialize:o}:le.assertOptions(o,{encode:D.function,serialize:D.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&l.merge(s.common,s[n.method]);s&&l.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=O.concat(i,s);const c=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,c.unshift(E.fulfilled,E.rejected))});const u=[];this.interceptors.response.forEach(function(E){u.push(E.fulfilled,E.rejected)});let d,p=0,b;if(!f){const m=[Ce.bind(this),void 0];for(m.unshift.apply(m,c),m.push.apply(m,u),b=m.length,d=Promise.resolve(n);p{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{r.subscribe(c),s=c}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,c){r.reason||(r.reason=new L(s,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new me(function(o){t=o}),cancel:t}}}function kn(e){return function(n){return e.apply(null,n)}}function Dn(e){return l.isObject(e)&&e.isAxiosError===!0}const ce={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ce).forEach(([e,t])=>{ce[t]=e});function Ze(e){const t=new F(e),n=ke(F.prototype.request,t);return l.extend(n,F.prototype,t,{allOwnKeys:!0}),l.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ze(V(e,o))},n}const g=Ze(I);g.Axios=F;g.CanceledError=L;g.CancelToken=me;g.isCancel=$e;g.VERSION=Qe;g.toFormData=X;g.AxiosError=y;g.Cancel=g.CanceledError;g.all=function(t){return Promise.all(t)};g.spread=kn;g.isAxiosError=Dn;g.mergeConfig=V;g.AxiosHeaders=O;g.formToJSON=e=>ze(l.isHTMLForm(e)?new FormData(e):e);g.getAdapter=Ye.getAdapter;g.HttpStatusCode=ce;g.default=g;var et=(e=>(e.Primary="Primary",e.Success="Success",e.Warning="Warning",e.Danger="Danger",e))(et||{});const Pn={counter:{users:0,roles:0,groups:0},info:{frameworkVersion:"",phpVersion:"",database:{connection:"",name:"",type:"",version:""},server:"",projectPath:""},sprinkles:{},users:[]},Bn=tt.defineStore("dashboardApi",{state:()=>({data:Pn}),actions:{async load(){return g.get("/api/dashboard").then(e=>(this.data=e.data,this.data)).catch(e=>{throw{description:"An error as occurred",style:et.Danger,closeBtn:!0,...e.response.data}})}}}),Fn=a.defineComponent({__name:"DashboardStats",props:{users:{},roles:{},groups:{}},setup(e){return(t,n)=>{const r=a.resolveComponent("UFInfoBox");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(r,{value:t.users,label:"Users",faIcon:"user",to:{name:"admin.users"}},null,8,["value"]),a.createVNode(r,{value:t.roles,label:"Roles",faIcon:"address-card",to:{name:"admin.roles"}},null,8,["value"]),a.createVNode(r,{value:t.groups,label:"Groups",faIcon:"users",to:{name:"admin.groups"}},null,8,["value"])],64)}}}),Vn={class:"uk-grid uk-flex-center","uk-grid":""},Un=["src"],Ln={class:"uk-margin-remove"},jn={class:"uk-margin-remove uk-text-meta"},vn=a.defineComponent({__name:"DashboardRecentUsers",props:{users:{}},setup(e){return(t,n)=>{const r=a.resolveComponent("RouterLink"),o=a.resolveComponent("UFCardBox");return a.openBlock(),a.createBlock(o,{title:"Latest Users"},{footer:a.withCtx(()=>[a.createVNode(r,{to:{name:"admin.users"},class:"uk-text-center"},{default:a.withCtx(()=>n[0]||(n[0]=[a.createTextVNode("View All Users")])),_:1})]),default:a.withCtx(()=>[a.createElementVNode("div",Vn,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.users,s=>(a.openBlock(),a.createElementBlock("div",{key:s.id,class:"uk-text-center"},[a.createVNode(r,{to:{name:"admin.user",params:{user_name:s.user_name}},class:"uk-text-decoration-none uk-link-text"},{default:a.withCtx(()=>[a.createElementVNode("img",{src:s.avatar,alt:"User Image",class:"uk-border-circle"},null,8,Un),a.createElementVNode("p",Ln,a.toDisplayString(s.full_name),1),a.createElementVNode("p",jn,a.toDisplayString(a.unref(ne.hooks)(s.created_at).fromNow()),1)]),_:2},1032,["to"])]))),128))])]),_:1})}}}),qn={class:"uk-description-list"},In={class:"uk-list uk-list-disc uk-list-collapse"},Hn=a.defineComponent({__name:"DashboardSystemInfo",props:{info:{},sprinkles:{}},setup(e){return(t,n)=>{const r=a.resolveComponent("UFCardBox");return a.openBlock(),a.createBlock(r,{title:"System Information"},{default:a.withCtx(()=>[a.createElementVNode("dl",qn,[n[0]||(n[0]=a.createElementVNode("dt",null,"Framework version",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.frameworkVersion),1)])]),n[1]||(n[1]=a.createElementVNode("dt",null,"PHP version",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.phpVersion),1)])]),n[2]||(n[2]=a.createElementVNode("dt",null,"Webserver software",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.server),1)])]),n[3]||(n[3]=a.createElementVNode("dt",null,"Database connection",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.database.connection),1)])]),n[4]||(n[4]=a.createElementVNode("dt",null,"Database version",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.database.type)+" "+a.toDisplayString(t.info.database.version),1)])]),n[5]||(n[5]=a.createElementVNode("dt",null,"Database name",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.database.name),1)])]),n[6]||(n[6]=a.createElementVNode("dt",null,"Project directory",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.projectPath),1)])]),n[7]||(n[7]=a.createElementVNode("dt",null,"Loaded sprinkles",-1)),a.createElementVNode("dd",null,[a.createElementVNode("ul",In,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.sprinkles,o=>(a.openBlock(),a.createElementBlock("li",{key:o},a.toDisplayString(o),1))),128))])])])]),_:1})}}}),Mn={class:"uk-text-meta"},zn=a.defineComponent({__name:"DashboardActivities",setup(e){return(t,n)=>{const r=a.resolveComponent("UFSprunjeHeader"),o=a.resolveComponent("UFSprunjeColumn"),s=a.resolveComponent("RouterLink"),i=a.resolveComponent("UFSprunjeTable"),c=a.resolveComponent("UFCardBox");return a.openBlock(),a.createBlock(c,{title:"Latest Activities"},{default:a.withCtx(()=>[a.createVNode(i,{dataUrl:"/api/activities",defaultSorts:{occurred_at:"desc"},"no-pagination":""},{header:a.withCtx(()=>[a.createVNode(r,null,{default:a.withCtx(()=>n[0]||(n[0]=[a.createTextVNode("Activity Time")])),_:1}),a.createVNode(r,null,{default:a.withCtx(()=>n[1]||(n[1]=[a.createTextVNode("User")])),_:1}),a.createVNode(r,null,{default:a.withCtx(()=>n[2]||(n[2]=[a.createTextVNode("Description")])),_:1})]),body:a.withCtx(({item:f})=>[a.createVNode(o,null,{default:a.withCtx(()=>[a.createElementVNode("div",null,a.toDisplayString(a.unref(ne.hooks)(f.occurred_at).format("dddd")),1),a.createElementVNode("div",null,a.toDisplayString(a.unref(ne.hooks)(f.occurred_at).format("MMM Do, YYYY h:mm a")),1)]),_:2},1024),a.createVNode(o,null,{default:a.withCtx(()=>[a.createElementVNode("strong",null,[a.createVNode(s,{to:{name:"admin.user",params:{user_name:f.user.user_name}}},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.user.full_name)+" ("+a.toDisplayString(f.user.user_name)+") ",1)]),_:2},1032,["to"])]),a.createElementVNode("div",Mn,a.toDisplayString(f.user.email),1)]),_:2},1024),a.createVNode(o,null,{default:a.withCtx(()=>[a.createElementVNode("div",null,a.toDisplayString(f.ip_address),1),a.createElementVNode("div",null,[a.createElementVNode("i",null,a.toDisplayString(f.description),1)])]),_:2},1024)]),_:1})]),_:1})}}}),$n={class:"uk-child-width-expand","uk-grid":""},Jn={class:"uk-child-width-1-2","uk-grid":""},Wn={class:"uk-child-width-1-1","uk-grid":""},Kn=a.defineComponent({__name:"DashboardView",setup(e){const t=Bn();return t.load(),(n,r)=>{const o=a.resolveComponent("UFHeaderPage");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(o,{title:"Dashboard"}),a.createElementVNode("div",$n,[a.createVNode(Fn,{users:a.unref(t).data.counter.users,roles:a.unref(t).data.counter.roles,groups:a.unref(t).data.counter.groups},null,8,["users","roles","groups"])]),a.createElementVNode("div",Jn,[a.createElementVNode("div",null,[a.createElementVNode("div",Wn,[a.createElementVNode("div",null,[a.createVNode(vn,{users:a.unref(t).data.users},null,8,["users"])]),a.createElementVNode("div",null,[a.createVNode(Hn,{info:a.unref(t).data.info,sprinkles:a.unref(t).data.sprinkles},null,8,["info","sprinkles"])])])]),a.createElementVNode("div",null,[a.createVNode(zn)])])],64)}}});exports.default=Kn; diff --git a/dist/DashboardView-BzVrZAyo.js b/dist/DashboardView-DAlMYGe4.js similarity index 64% rename from dist/DashboardView-BzVrZAyo.js rename to dist/DashboardView-DAlMYGe4.js index 58d09cb..3f13b28 100644 --- a/dist/DashboardView-BzVrZAyo.js +++ b/dist/DashboardView-DAlMYGe4.js @@ -1,48 +1,48 @@ -import { defineComponent as ee, resolveComponent as H, openBlock as D, createElementBlock as v, Fragment as te, createVNode as N, createBlock as qe, withCtx as J, createTextVNode as ft, createElementVNode as m, renderList as Ie, toDisplayString as C, unref as L } from "vue"; -import { defineStore as dt } from "pinia"; -import { h as pt } from "./moment-h96o7c8I.js"; -function He(e, t) { +import { defineComponent as K, resolveComponent as F, openBlock as B, createElementBlock as M, Fragment as ne, createVNode as T, createBlock as Ee, withCtx as A, createTextVNode as J, createElementVNode as m, renderList as He, toDisplayString as O, unref as D } from "vue"; +import { defineStore as pt } from "pinia"; +import { h as de } from "./moment-h96o7c8I.js"; +function Me(e, t) { return function() { return e.apply(t, arguments); }; } -const { toString: ht } = Object.prototype, { getPrototypeOf: we } = Object, ne = /* @__PURE__ */ ((e) => (t) => { +const { toString: ht } = Object.prototype, { getPrototypeOf: Se } = Object, re = /* @__PURE__ */ ((e) => (t) => { const n = ht.call(t); return e[n] || (e[n] = n.slice(8, -1).toLowerCase()); -})(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => ne(t) === e), re = (e) => (t) => typeof t === e, { isArray: M } = Array, $ = re("undefined"); +})(/* @__PURE__ */ Object.create(null)), N = (e) => (e = e.toLowerCase(), (t) => re(t) === e), se = (e) => (t) => typeof t === e, { isArray: z } = Array, W = se("undefined"); function mt(e) { - return e !== null && !$(e) && e.constructor !== null && !$(e.constructor) && x(e.constructor.isBuffer) && e.constructor.isBuffer(e); + return e !== null && !W(e) && e.constructor !== null && !W(e.constructor) && k(e.constructor.isBuffer) && e.constructor.isBuffer(e); } -const ve = P("ArrayBuffer"); +const ze = N("ArrayBuffer"); function yt(e) { let t; - return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ve(e.buffer), t; + return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ze(e.buffer), t; } -const bt = re("string"), x = re("function"), Me = re("number"), se = (e) => e !== null && typeof e == "object", wt = (e) => e === !0 || e === !1, X = (e) => { - if (ne(e) !== "object") +const bt = se("string"), k = se("function"), Ve = se("number"), oe = (e) => e !== null && typeof e == "object", wt = (e) => e === !0 || e === !1, Q = (e) => { + if (re(e) !== "object") return !1; - const t = we(e); + const t = Se(e); return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e); -}, gt = P("Date"), Et = P("File"), St = P("Blob"), Rt = P("FileList"), Ot = (e) => se(e) && x(e.pipe), Tt = (e) => { +}, gt = N("Date"), Et = N("File"), St = N("Blob"), Rt = N("FileList"), _t = (e) => oe(e) && k(e.pipe), Ot = (e) => { let t; - return e && (typeof FormData == "function" && e instanceof FormData || x(e.append) && ((t = ne(e)) === "formdata" || // detect form-data instance - t === "object" && x(e.toString) && e.toString() === "[object FormData]")); -}, At = P("URLSearchParams"), [_t, xt, Ct, Pt] = ["ReadableStream", "Request", "Response", "Headers"].map(P), Nt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); -function W(e, t, { allOwnKeys: n = !1 } = {}) { + return e && (typeof FormData == "function" && e instanceof FormData || k(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance + t === "object" && k(e.toString) && e.toString() === "[object FormData]")); +}, Tt = N("URLSearchParams"), [At, xt, Ct, Pt] = ["ReadableStream", "Request", "Response", "Headers"].map(N), kt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); +function G(e, t, { allOwnKeys: n = !1 } = {}) { if (e === null || typeof e > "u") return; let r, s; - if (typeof e != "object" && (e = [e]), M(e)) + if (typeof e != "object" && (e = [e]), z(e)) for (r = 0, s = e.length; r < s; r++) t.call(null, e[r], r, e); else { const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length; - let c; + let l; for (r = 0; r < i; r++) - c = o[r], t.call(null, e[c], c, e); + l = o[r], t.call(null, e[l], l, e); } } -function ze(e, t) { +function $e(e, t) { t = t.toLowerCase(); const n = Object.keys(e); let r = n.length, s; @@ -51,46 +51,46 @@ function ze(e, t) { return s; return null; } -const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ve = (e) => !$(e) && e !== j; -function fe() { - const { caseless: e } = Ve(this) && this || {}, t = {}, n = (r, s) => { - const o = e && ze(t, s) || s; - X(t[o]) && X(r) ? t[o] = fe(t[o], r) : X(r) ? t[o] = fe({}, r) : M(r) ? t[o] = r.slice() : t[o] = r; +const I = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Je = (e) => !W(e) && e !== I; +function pe() { + const { caseless: e } = Je(this) && this || {}, t = {}, n = (r, s) => { + const o = e && $e(t, s) || s; + Q(t[o]) && Q(r) ? t[o] = pe(t[o], r) : Q(r) ? t[o] = pe({}, r) : z(r) ? t[o] = r.slice() : t[o] = r; }; for (let r = 0, s = arguments.length; r < s; r++) - arguments[r] && W(arguments[r], n); + arguments[r] && G(arguments[r], n); return t; } -const kt = (e, t, n, { allOwnKeys: r } = {}) => (W(t, (s, o) => { - n && x(s) ? e[o] = He(s, n) : e[o] = s; -}, { allOwnKeys: r }), e), Ft = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Bt = (e, t, n, r) => { +const Nt = (e, t, n, { allOwnKeys: r } = {}) => (G(t, (s, o) => { + n && k(s) ? e[o] = Me(s, n) : e[o] = s; +}, { allOwnKeys: r }), e), Ft = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ut = (e, t, n, r) => { e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n); }, Dt = (e, t, n, r) => { let s, o, i; - const c = {}; + const l = {}; if (t = t || {}, e == null) return t; do { for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; ) - i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0); - e = n !== !1 && we(e); + i = s[o], (!r || r(i, e, t)) && !l[i] && (t[i] = e[i], l[i] = !0); + e = n !== !1 && Se(e); } while (e && (!n || n(e, t)) && e !== Object.prototype); return t; -}, Ut = (e, t, n) => { +}, Bt = (e, t, n) => { e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length; const r = e.indexOf(t, n); return r !== -1 && r === n; }, Lt = (e) => { if (!e) return null; - if (M(e)) return e; + if (z(e)) return e; let t = e.length; - if (!Me(t)) return null; + if (!Ve(t)) return null; const n = new Array(t); for (; t-- > 0; ) n[t] = e[t]; return n; -}, jt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && we(Uint8Array)), qt = (e, t) => { +}, jt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Se(Uint8Array)), qt = (e, t) => { const r = (e && e[Symbol.iterator]).call(e); let s; for (; (s = r.next()) && !s.done; ) { @@ -103,23 +103,23 @@ const kt = (e, t, n, { allOwnKeys: r } = {}) => (W(t, (s, o) => { for (; (n = e.exec(t)) !== null; ) r.push(n); return r; -}, Ht = P("HTMLFormElement"), vt = (e) => e.toLowerCase().replace( +}, vt = N("HTMLFormElement"), Ht = (e) => e.toLowerCase().replace( /[-_\s]([a-z\d])(\w*)/g, function(n, r, s) { return r.toUpperCase() + s; } -), Te = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Mt = P("RegExp"), Je = (e, t) => { +), xe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Mt = N("RegExp"), We = (e, t) => { const n = Object.getOwnPropertyDescriptors(e), r = {}; - W(n, (s, o) => { + G(n, (s, o) => { let i; (i = t(s, o, e)) !== !1 && (r[o] = i || s); }), Object.defineProperties(e, r); }, zt = (e) => { - Je(e, (t, n) => { - if (x(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1) + We(e, (t, n) => { + if (k(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1) return !1; const r = e[n]; - if (x(r)) { + if (k(r)) { if (t.enumerable = !1, "writable" in t) { t.writable = !1; return; @@ -135,13 +135,13 @@ const kt = (e, t, n, { allOwnKeys: r } = {}) => (W(t, (s, o) => { n[o] = !0; }); }; - return M(e) ? r(e) : r(String(e).split(t)), n; -}, Jt = () => { -}, $t = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, ae = "abcdefghijklmnopqrstuvwxyz", Ae = "0123456789", $e = { - DIGIT: Ae, - ALPHA: ae, - ALPHA_DIGIT: ae + ae.toUpperCase() + Ae -}, Wt = (e = 16, t = $e.ALPHA_DIGIT) => { + return z(e) ? r(e) : r(String(e).split(t)), n; +}, $t = () => { +}, Jt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, le = "abcdefghijklmnopqrstuvwxyz", Ce = "0123456789", Ke = { + DIGIT: Ce, + ALPHA: le, + ALPHA_DIGIT: le + le.toUpperCase() + Ce +}, Wt = (e = 16, t = Ke.ALPHA_DIGIT) => { let n = ""; const { length: r } = t; for (; e--; ) @@ -149,91 +149,91 @@ const kt = (e, t, n, { allOwnKeys: r } = {}) => (W(t, (s, o) => { return n; }; function Kt(e) { - return !!(e && x(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]); + return !!(e && k(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]); } const Gt = (e) => { const t = new Array(10), n = (r, s) => { - if (se(r)) { + if (oe(r)) { if (t.indexOf(r) >= 0) return; if (!("toJSON" in r)) { t[s] = r; - const o = M(r) ? [] : {}; - return W(r, (i, c) => { + const o = z(r) ? [] : {}; + return G(r, (i, l) => { const f = n(i, s + 1); - !$(f) && (o[c] = f); + !W(f) && (o[l] = f); }), t[s] = void 0, o; } } return r; }; return n(e, 0); -}, Xt = P("AsyncFunction"), Qt = (e) => e && (se(e) || x(e)) && x(e.then) && x(e.catch), We = ((e, t) => e ? setImmediate : t ? ((n, r) => (j.addEventListener("message", ({ source: s, data: o }) => { - s === j && o === n && r.length && r.shift()(); +}, Xt = N("AsyncFunction"), Yt = (e) => e && (oe(e) || k(e)) && k(e.then) && k(e.catch), Ge = ((e, t) => e ? setImmediate : t ? ((n, r) => (I.addEventListener("message", ({ source: s, data: o }) => { + s === I && o === n && r.length && r.shift()(); }, !1), (s) => { - r.push(s), j.postMessage(n, "*"); + r.push(s), I.postMessage(n, "*"); }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))( typeof setImmediate == "function", - x(j.postMessage) -), Zt = typeof queueMicrotask < "u" ? queueMicrotask.bind(j) : typeof process < "u" && process.nextTick || We, a = { - isArray: M, - isArrayBuffer: ve, + k(I.postMessage) +), Qt = typeof queueMicrotask < "u" ? queueMicrotask.bind(I) : typeof process < "u" && process.nextTick || Ge, a = { + isArray: z, + isArrayBuffer: ze, isBuffer: mt, - isFormData: Tt, + isFormData: Ot, isArrayBufferView: yt, isString: bt, - isNumber: Me, + isNumber: Ve, isBoolean: wt, - isObject: se, - isPlainObject: X, - isReadableStream: _t, + isObject: oe, + isPlainObject: Q, + isReadableStream: At, isRequest: xt, isResponse: Ct, isHeaders: Pt, - isUndefined: $, + isUndefined: W, isDate: gt, isFile: Et, isBlob: St, isRegExp: Mt, - isFunction: x, - isStream: Ot, - isURLSearchParams: At, + isFunction: k, + isStream: _t, + isURLSearchParams: Tt, isTypedArray: jt, isFileList: Rt, - forEach: W, - merge: fe, - extend: kt, - trim: Nt, + forEach: G, + merge: pe, + extend: Nt, + trim: kt, stripBOM: Ft, - inherits: Bt, + inherits: Ut, toFlatObject: Dt, - kindOf: ne, - kindOfTest: P, - endsWith: Ut, + kindOf: re, + kindOfTest: N, + endsWith: Bt, toArray: Lt, forEachEntry: qt, matchAll: It, - isHTMLForm: Ht, - hasOwnProperty: Te, - hasOwnProp: Te, + isHTMLForm: vt, + hasOwnProperty: xe, + hasOwnProp: xe, // an alias to avoid ESLint no-prototype-builtins detection - reduceDescriptors: Je, + reduceDescriptors: We, freezeMethods: zt, toObjectSet: Vt, - toCamelCase: vt, - noop: Jt, - toFiniteNumber: $t, - findKey: ze, - global: j, - isContextDefined: Ve, - ALPHABET: $e, + toCamelCase: Ht, + noop: $t, + toFiniteNumber: Jt, + findKey: $e, + global: I, + isContextDefined: Je, + ALPHABET: Ke, generateString: Wt, isSpecCompliantForm: Kt, toJSONObject: Gt, isAsyncFn: Xt, - isThenable: Qt, - setImmediate: We, - asap: Zt + isThenable: Yt, + setImmediate: Ge, + asap: Qt }; function y(e, t, n, r, s) { Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null); @@ -259,7 +259,7 @@ a.inherits(y, Error, { }; } }); -const Ke = y.prototype, Ge = {}; +const Xe = y.prototype, Ye = {}; [ "ERR_BAD_OPTION_VALUE", "ERR_BAD_OPTION", @@ -275,35 +275,35 @@ const Ke = y.prototype, Ge = {}; "ERR_INVALID_URL" // eslint-disable-next-line func-names ].forEach((e) => { - Ge[e] = { value: e }; + Ye[e] = { value: e }; }); -Object.defineProperties(y, Ge); -Object.defineProperty(Ke, "isAxiosError", { value: !0 }); +Object.defineProperties(y, Ye); +Object.defineProperty(Xe, "isAxiosError", { value: !0 }); y.from = (e, t, n, r, s, o) => { - const i = Object.create(Ke); + const i = Object.create(Xe); return a.toFlatObject(e, i, function(f) { return f !== Error.prototype; - }, (c) => c !== "isAxiosError"), y.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i; + }, (l) => l !== "isAxiosError"), y.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i; }; -const Yt = null; -function de(e) { +const Zt = null; +function he(e) { return a.isPlainObject(e) || a.isArray(e); } -function Xe(e) { +function Qe(e) { return a.endsWith(e, "[]") ? e.slice(0, -2) : e; } -function _e(e, t, n) { +function Pe(e, t, n) { return e ? e.concat(t).map(function(s, o) { - return s = Xe(s), !n && o ? "[" + s + "]" : s; + return s = Qe(s), !n && o ? "[" + s + "]" : s; }).join(n ? "." : "") : t; } function en(e) { - return a.isArray(e) && !e.some(de); + return a.isArray(e) && !e.some(he); } const tn = a.toFlatObject(a, {}, null, function(t) { return /^is[A-Z]/.test(t); }); -function oe(e, t, n) { +function ie(e, t, n) { if (!a.isObject(e)) throw new TypeError("target must be an object"); t = t || new FormData(), n = a.toFlatObject(n, { @@ -316,7 +316,7 @@ function oe(e, t, n) { const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t); if (!a.isFunction(s)) throw new TypeError("visitor must be a function"); - function l(p) { + function c(p) { if (p === null) return ""; if (a.isDate(p)) return p.toISOString(); @@ -330,20 +330,20 @@ function oe(e, t, n) { if (a.endsWith(b, "{}")) b = r ? b : b.slice(0, -2), p = JSON.stringify(p); else if (a.isArray(p) && en(p) || (a.isFileList(p) || a.endsWith(b, "[]")) && (g = a.toArray(p))) - return b = Xe(b), g.forEach(function(O, k) { - !(a.isUndefined(O) || O === null) && t.append( + return b = Qe(b), g.forEach(function(_, U) { + !(a.isUndefined(_) || _ === null) && t.append( // eslint-disable-next-line no-nested-ternary - i === !0 ? _e([b], k, o) : i === null ? b : b + "[]", - l(O) + i === !0 ? Pe([b], U, o) : i === null ? b : b + "[]", + c(_) ); }), !1; } - return de(p) ? !0 : (t.append(_e(h, b, o), l(p)), !1); + return he(p) ? !0 : (t.append(Pe(h, b, o), c(p)), !1); } const d = [], w = Object.assign(tn, { defaultVisitor: u, - convertValue: l, - isVisitable: de + convertValue: c, + isVisitable: he }); function S(p, b) { if (!a.isUndefined(p)) { @@ -364,7 +364,7 @@ function oe(e, t, n) { throw new TypeError("data must be an object"); return S(e), t; } -function xe(e) { +function ke(e) { const t = { "!": "%21", "'": "%27", @@ -378,17 +378,17 @@ function xe(e) { return t[r]; }); } -function ge(e, t) { - this._pairs = [], e && oe(e, this, t); +function Re(e, t) { + this._pairs = [], e && ie(e, this, t); } -const Qe = ge.prototype; -Qe.append = function(t, n) { +const Ze = Re.prototype; +Ze.append = function(t, n) { this._pairs.push([t, n]); }; -Qe.toString = function(t) { +Ze.toString = function(t) { const n = t ? function(r) { - return t.call(this, r, xe); - } : xe; + return t.call(this, r, ke); + } : ke; return this._pairs.map(function(s) { return n(s[0]) + "=" + n(s[1]); }, "").join("&"); @@ -396,18 +396,18 @@ Qe.toString = function(t) { function nn(e) { return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); } -function Ze(e, t, n) { +function et(e, t, n) { if (!t) return e; const r = n && n.encode || nn, s = n && n.serialize; let o; - if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new ge(t, n).toString(r), o) { + if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Re(t, n).toString(r), o) { const i = e.indexOf("#"); i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o; } return e; } -class Ce { +class Ne { constructor() { this.handlers = []; } @@ -461,11 +461,11 @@ class Ce { }); } } -const Ye = { +const tt = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 -}, rn = typeof URLSearchParams < "u" ? URLSearchParams : ge, sn = typeof FormData < "u" ? FormData : null, on = typeof Blob < "u" ? Blob : null, an = { +}, rn = typeof URLSearchParams < "u" ? URLSearchParams : Re, sn = typeof FormData < "u" ? FormData : null, on = typeof Blob < "u" ? Blob : null, an = { isBrowser: !0, classes: { URLSearchParams: rn, @@ -473,22 +473,22 @@ const Ye = { Blob: on }, protocols: ["http", "https", "file", "blob", "url", "data"] -}, Ee = typeof window < "u" && typeof document < "u", pe = typeof navigator == "object" && navigator || void 0, cn = Ee && (!pe || ["ReactNative", "NativeScript", "NS"].indexOf(pe.product) < 0), ln = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef -self instanceof WorkerGlobalScope && typeof self.importScripts == "function", un = Ee && window.location.href || "http://localhost", fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, _e = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, ln = _e && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), cn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef +self instanceof WorkerGlobalScope && typeof self.importScripts == "function", un = _e && window.location.href || "http://localhost", fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - hasBrowserEnv: Ee, - hasStandardBrowserEnv: cn, - hasStandardBrowserWebWorkerEnv: ln, - navigator: pe, + hasBrowserEnv: _e, + hasStandardBrowserEnv: ln, + hasStandardBrowserWebWorkerEnv: cn, + navigator: me, origin: un -}, Symbol.toStringTag, { value: "Module" })), A = { +}, Symbol.toStringTag, { value: "Module" })), C = { ...fn, ...an }; function dn(e, t) { - return oe(e, new A.classes.URLSearchParams(), Object.assign({ + return ie(e, new C.classes.URLSearchParams(), Object.assign({ visitor: function(n, r, s, o) { - return A.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments); + return C.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments); } }, t)); } @@ -504,12 +504,12 @@ function hn(e) { o = n[r], t[o] = e[o]; return t; } -function et(e) { +function nt(e) { function t(n, r, s, o) { let i = n[o++]; if (i === "__proto__") return !0; - const c = Number.isFinite(+i), f = o >= n.length; - return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = hn(s[i])), !c); + const l = Number.isFinite(+i), f = o >= n.length; + return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !l) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = hn(s[i])), !l); } if (a.isFormData(e) && a.isFunction(e.entries)) { const n = {}; @@ -529,27 +529,27 @@ function mn(e, t, n) { } return (0, JSON.stringify)(e); } -const K = { - transitional: Ye, +const X = { + transitional: tt, adapter: ["xhr", "http", "fetch"], transformRequest: [function(t, n) { const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t); if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t)) - return s ? JSON.stringify(et(t)) : t; + return s ? JSON.stringify(nt(t)) : t; if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t)) return t; if (a.isArrayBufferView(t)) return t.buffer; if (a.isURLSearchParams(t)) return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString(); - let c; + let l; if (o) { if (r.indexOf("application/x-www-form-urlencoded") > -1) return dn(t, this.formSerializer).toString(); - if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { + if ((l = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { const f = this.env && this.env.FormData; - return oe( - c ? { "files[]": t } : t, + return ie( + l ? { "files[]": t } : t, f && new f(), this.formSerializer ); @@ -558,16 +558,16 @@ const K = { return o || s ? (n.setContentType("application/json", !1), mn(t)) : t; }], transformResponse: [function(t) { - const n = this.transitional || K.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json"; + const n = this.transitional || X.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json"; if (a.isResponse(t) || a.isReadableStream(t)) return t; if (t && a.isString(t) && (r && !this.responseType || s)) { const i = !(n && n.silentJSONParsing) && s; try { return JSON.parse(t); - } catch (c) { + } catch (l) { if (i) - throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c; + throw l.name === "SyntaxError" ? y.from(l, y.ERR_BAD_RESPONSE, this, null, this.response) : l; } } return t; @@ -582,8 +582,8 @@ const K = { maxContentLength: -1, maxBodyLength: -1, env: { - FormData: A.classes.FormData, - Blob: A.classes.Blob + FormData: C.classes.FormData, + Blob: C.classes.Blob }, validateStatus: function(t) { return t >= 200 && t < 300; @@ -596,7 +596,7 @@ const K = { } }; a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => { - K.headers[e] = {}; + X.headers[e] = {}; }); const yn = a.toObjectSet([ "age", @@ -623,12 +623,12 @@ const yn = a.toObjectSet([ `).forEach(function(i) { s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && yn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r); }), t; -}, Pe = Symbol("internals"); -function V(e) { +}, Fe = Symbol("internals"); +function $(e) { return e && String(e).trim().toLowerCase(); } -function Q(e) { - return e === !1 || e == null ? e : a.isArray(e) ? e.map(Q) : String(e); +function Z(e) { + return e === !1 || e == null ? e : a.isArray(e) ? e.map(Z) : String(e); } function wn(e) { const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; @@ -662,33 +662,33 @@ function Sn(e, t) { }); }); } -class _ { +class P { constructor(t) { t && this.set(t); } set(t, n, r) { const s = this; - function o(c, f, l) { - const u = V(f); + function o(l, f, c) { + const u = $(f); if (!u) throw new Error("header name must be a non-empty string"); const d = a.findKey(s, u); - (!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] = Q(c)); + (!d || s[d] === void 0 || c === !0 || c === void 0 && s[d] !== !1) && (s[d || f] = Z(l)); } - const i = (c, f) => a.forEach(c, (l, u) => o(l, u, f)); + const i = (l, f) => a.forEach(l, (c, u) => o(c, u, f)); if (a.isPlainObject(t) || t instanceof this.constructor) i(t, n); else if (a.isString(t) && (t = t.trim()) && !gn(t)) i(bn(t), n); else if (a.isHeaders(t)) - for (const [c, f] of t.entries()) - o(f, c, r); + for (const [l, f] of t.entries()) + o(f, l, r); else t != null && o(n, t, r); return this; } get(t, n) { - if (t = V(t), t) { + if (t = $(t), t) { const r = a.findKey(this, t); if (r) { const s = this[r]; @@ -705,7 +705,7 @@ class _ { } } has(t, n) { - if (t = V(t), t) { + if (t = $(t), t) { const r = a.findKey(this, t); return !!(r && this[r] !== void 0 && (!n || ce(this, this[r], r, n))); } @@ -715,9 +715,9 @@ class _ { const r = this; let s = !1; function o(i) { - if (i = V(i), i) { - const c = a.findKey(r, i); - c && (!n || ce(r, r[c], c, n)) && (delete r[c], s = !0); + if (i = $(i), i) { + const l = a.findKey(r, i); + l && (!n || ce(r, r[l], l, n)) && (delete r[l], s = !0); } } return a.isArray(t) ? t.forEach(o) : o(t), s; @@ -736,11 +736,11 @@ class _ { return a.forEach(this, (s, o) => { const i = a.findKey(r, o); if (i) { - n[i] = Q(s), delete n[o]; + n[i] = Z(s), delete n[o]; return; } - const c = t ? En(o) : String(o).trim(); - c !== o && delete n[o], n[c] = Q(s), r[c] = !0; + const l = t ? En(o) : String(o).trim(); + l !== o && delete n[o], n[l] = Z(s), r[l] = !0; }), this; } concat(...t) { @@ -770,18 +770,18 @@ class _ { return n.forEach((s) => r.set(s)), r; } static accessor(t) { - const r = (this[Pe] = this[Pe] = { + const r = (this[Fe] = this[Fe] = { accessors: {} }).accessors, s = this.prototype; function o(i) { - const c = V(i); - r[c] || (Sn(s, i), r[c] = !0); + const l = $(i); + r[l] || (Sn(s, i), r[l] = !0); } return a.isArray(t) ? t.forEach(o) : o(t), this; } } -_.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); -a.reduceDescriptors(_.prototype, ({ value: e }, t) => { +P.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); +a.reduceDescriptors(P.prototype, ({ value: e }, t) => { let n = t[0].toUpperCase() + t.slice(1); return { get: () => e, @@ -790,24 +790,24 @@ a.reduceDescriptors(_.prototype, ({ value: e }, t) => { } }; }); -a.freezeMethods(_); -function le(e, t) { - const n = this || K, r = t || n, s = _.from(r.headers); +a.freezeMethods(P); +function ue(e, t) { + const n = this || X, r = t || n, s = P.from(r.headers); let o = r.data; - return a.forEach(e, function(c) { - o = c.call(n, o, s.normalize(), t ? t.status : void 0); + return a.forEach(e, function(l) { + o = l.call(n, o, s.normalize(), t ? t.status : void 0); }), s.normalize(), o; } -function tt(e) { +function rt(e) { return !!(e && e.__CANCEL__); } -function z(e, t, n) { +function V(e, t, n) { y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError"; } -a.inherits(z, y, { +a.inherits(V, y, { __CANCEL__: !0 }); -function nt(e, t, n) { +function st(e, t, n) { const r = n.config.validateStatus; !n.status || !r || r(n.status) ? e(n) : t(new y( "Request failed with status code " + n.status, @@ -821,65 +821,65 @@ function Rn(e) { const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e); return t && t[1] || ""; } -function On(e, t) { +function _n(e, t) { e = e || 10; const n = new Array(e), r = new Array(e); let s = 0, o = 0, i; return t = t !== void 0 ? t : 1e3, function(f) { - const l = Date.now(), u = r[o]; - i || (i = l), n[s] = f, r[s] = l; + const c = Date.now(), u = r[o]; + i || (i = c), n[s] = f, r[s] = c; let d = o, w = 0; for (; d !== s; ) w += n[d++], d = d % e; - if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t) + if (s = (s + 1) % e, s === o && (o = (o + 1) % e), c - i < t) return; - const S = u && l - u; + const S = u && c - u; return S ? Math.round(w * 1e3 / S) : void 0; }; } -function Tn(e, t) { +function On(e, t) { let n = 0, r = 1e3 / t, s, o; - const i = (l, u = Date.now()) => { - n = u, s = null, o && (clearTimeout(o), o = null), e.apply(null, l); + const i = (c, u = Date.now()) => { + n = u, s = null, o && (clearTimeout(o), o = null), e.apply(null, c); }; - return [(...l) => { + return [(...c) => { const u = Date.now(), d = u - n; - d >= r ? i(l, u) : (s = l, o || (o = setTimeout(() => { + d >= r ? i(c, u) : (s = c, o || (o = setTimeout(() => { o = null, i(s); }, r - d))); }, () => s && i(s)]; } -const Z = (e, t, n = 3) => { +const ee = (e, t, n = 3) => { let r = 0; - const s = On(50, 250); - return Tn((o) => { - const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), u = i <= c; + const s = _n(50, 250); + return On((o) => { + const i = o.loaded, l = o.lengthComputable ? o.total : void 0, f = i - r, c = s(f), u = i <= l; r = i; const d = { loaded: i, - total: c, - progress: c ? i / c : void 0, + total: l, + progress: l ? i / l : void 0, bytes: f, - rate: l || void 0, - estimated: l && c && u ? (c - i) / l : void 0, + rate: c || void 0, + estimated: c && l && u ? (l - i) / c : void 0, event: o, - lengthComputable: c != null, + lengthComputable: l != null, [t ? "download" : "upload"]: !0 }; e(d); }, n); -}, Ne = (e, t) => { +}, Ue = (e, t) => { const n = e != null; return [(r) => t[0]({ lengthComputable: n, total: e, loaded: r }), t[1]]; -}, ke = (e) => (...t) => a.asap(() => e(...t)), An = A.hasStandardBrowserEnv ? ( +}, De = (e) => (...t) => a.asap(() => e(...t)), Tn = C.hasStandardBrowserEnv ? ( // Standard browser envs have full support of the APIs needed to test // whether the request URL is of the same origin as current location. function() { - const t = A.navigator && /(msie|trident)/i.test(A.navigator.userAgent), n = document.createElement("a"); + const t = C.navigator && /(msie|trident)/i.test(C.navigator.userAgent), n = document.createElement("a"); let r; function s(o) { let i = o; @@ -895,8 +895,8 @@ const Z = (e, t, n = 3) => { }; } return r = s(window.location.href), function(i) { - const c = a.isString(i) ? s(i) : i; - return c.protocol === r.protocol && c.host === r.host; + const l = a.isString(i) ? s(i) : i; + return l.protocol === r.protocol && l.host === r.host; }; }() ) : ( @@ -906,7 +906,7 @@ const Z = (e, t, n = 3) => { return !0; }; }() -), _n = A.hasStandardBrowserEnv ? ( +), An = C.hasStandardBrowserEnv ? ( // Standard browser envs support document.cookie { write(e, t, n, r, s, o) { @@ -939,37 +939,37 @@ function xn(e) { function Cn(e, t) { return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e; } -function rt(e, t) { +function ot(e, t) { return e && !xn(t) ? Cn(e, t) : t; } -const Fe = (e) => e instanceof _ ? { ...e } : e; -function I(e, t) { +const Be = (e) => e instanceof P ? { ...e } : e; +function H(e, t) { t = t || {}; const n = {}; - function r(l, u, d) { - return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: d }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u; + function r(c, u, d) { + return a.isPlainObject(c) && a.isPlainObject(u) ? a.merge.call({ caseless: d }, c, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u; } - function s(l, u, d) { + function s(c, u, d) { if (a.isUndefined(u)) { - if (!a.isUndefined(l)) - return r(void 0, l, d); - } else return r(l, u, d); + if (!a.isUndefined(c)) + return r(void 0, c, d); + } else return r(c, u, d); } - function o(l, u) { + function o(c, u) { if (!a.isUndefined(u)) return r(void 0, u); } - function i(l, u) { + function i(c, u) { if (a.isUndefined(u)) { - if (!a.isUndefined(l)) - return r(void 0, l); + if (!a.isUndefined(c)) + return r(void 0, c); } else return r(void 0, u); } - function c(l, u, d) { + function l(c, u, d) { if (d in t) - return r(l, u); + return r(c, u); if (d in e) - return r(void 0, l); + return r(void 0, c); } const f = { url: o, @@ -999,41 +999,41 @@ function I(e, t) { cancelToken: i, socketPath: i, responseEncoding: i, - validateStatus: c, - headers: (l, u) => s(Fe(l), Fe(u), !0) + validateStatus: l, + headers: (c, u) => s(Be(c), Be(u), !0) }; return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) { const d = f[u] || s, w = d(e[u], t[u], u); - a.isUndefined(w) && d !== c || (n[u] = w); + a.isUndefined(w) && d !== l || (n[u] = w); }), n; } -const st = (e) => { - const t = I({}, e); - let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t; - t.headers = i = _.from(i), t.url = Ze(rt(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set( +const it = (e) => { + const t = H({}, e); + let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: l } = t; + t.headers = i = P.from(i), t.url = et(ot(t.baseURL, t.url), e.params, e.paramsSerializer), l && i.set( "Authorization", - "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : "")) + "Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : "")) ); let f; if (a.isFormData(n)) { - if (A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv) + if (C.hasStandardBrowserEnv || C.hasStandardBrowserWebWorkerEnv) i.setContentType(void 0); else if ((f = i.getContentType()) !== !1) { - const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : []; - i.setContentType([l || "multipart/form-data", ...u].join("; ")); + const [c, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : []; + i.setContentType([c || "multipart/form-data", ...u].join("; ")); } } - if (A.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && An(t.url))) { - const l = s && o && _n.read(o); - l && i.set(s, l); + if (C.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Tn(t.url))) { + const c = s && o && An.read(o); + c && i.set(s, c); } return t; -}, Pn = typeof XMLHttpRequest < "u", Nn = Pn && function(e) { +}, Pn = typeof XMLHttpRequest < "u", kn = Pn && function(e) { return new Promise(function(n, r) { - const s = st(e); + const s = it(e); let o = s.data; - const i = _.from(s.headers).normalize(); - let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, d, w, S, p; + const i = P.from(s.headers).normalize(); + let { responseType: l, onUploadProgress: f, onDownloadProgress: c } = s, u, d, w, S, p; function b() { S && S(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u); } @@ -1042,21 +1042,21 @@ const st = (e) => { function g() { if (!h) return; - const O = _.from( + const _ = P.from( "getAllResponseHeaders" in h && h.getAllResponseHeaders() - ), T = { - data: !c || c === "text" || c === "json" ? h.responseText : h.response, + ), x = { + data: !l || l === "text" || l === "json" ? h.responseText : h.response, status: h.status, statusText: h.statusText, - headers: O, + headers: _, config: e, request: h }; - nt(function(U) { - n(U), b(); - }, function(U) { - r(U), b(); - }, T), h = null; + st(function(q) { + n(q), b(); + }, function(q) { + r(q), b(); + }, x), h = null; } "onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() { !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g); @@ -1065,48 +1065,48 @@ const st = (e) => { }, h.onerror = function() { r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null; }, h.ontimeout = function() { - let k = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded"; - const T = s.transitional || Ye; - s.timeoutErrorMessage && (k = s.timeoutErrorMessage), r(new y( - k, - T.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED, + let U = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded"; + const x = s.transitional || tt; + s.timeoutErrorMessage && (U = s.timeoutErrorMessage), r(new y( + U, + x.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED, e, h )), h = null; - }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(k, T) { - h.setRequestHeader(T, k); - }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([w, p] = Z(l, !0), h.addEventListener("progress", w)), f && h.upload && ([d, S] = Z(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (u = (O) => { - h && (r(!O || O.type ? new z(null, e, h) : O), h.abort(), h = null); + }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(U, x) { + h.setRequestHeader(x, U); + }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), l && l !== "json" && (h.responseType = s.responseType), c && ([w, p] = ee(c, !0), h.addEventListener("progress", w)), f && h.upload && ([d, S] = ee(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (u = (_) => { + h && (r(!_ || _.type ? new V(null, e, h) : _), h.abort(), h = null); }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u))); const R = Rn(s.url); - if (R && A.protocols.indexOf(R) === -1) { + if (R && C.protocols.indexOf(R) === -1) { r(new y("Unsupported protocol " + R + ":", y.ERR_BAD_REQUEST, e)); return; } h.send(o || null); }); -}, kn = (e, t) => { +}, Nn = (e, t) => { const { length: n } = e = e ? e.filter(Boolean) : []; if (t || n) { let r = new AbortController(), s; - const o = function(l) { + const o = function(c) { if (!s) { - s = !0, c(); - const u = l instanceof Error ? l : this.reason; - r.abort(u instanceof y ? u : new z(u instanceof Error ? u.message : u)); + s = !0, l(); + const u = c instanceof Error ? c : this.reason; + r.abort(u instanceof y ? u : new V(u instanceof Error ? u.message : u)); } }; let i = t && setTimeout(() => { i = null, o(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT)); }, t); - const c = () => { - e && (i && clearTimeout(i), i = null, e.forEach((l) => { - l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o); + const l = () => { + e && (i && clearTimeout(i), i = null, e.forEach((c) => { + c.unsubscribe ? c.unsubscribe(o) : c.removeEventListener("abort", o); }), e = null); }; - e.forEach((l) => l.addEventListener("abort", o)); + e.forEach((c) => c.addEventListener("abort", o)); const { signal: f } = r; - return f.unsubscribe = () => a.asap(c), f; + return f.unsubscribe = () => a.asap(l), f; } }, Fn = function* (e, t) { let n = e.byteLength; @@ -1117,7 +1117,7 @@ const st = (e) => { let r = 0, s; for (; r < n; ) s = r + t, yield e.slice(r, s), r = s; -}, Bn = async function* (e, t) { +}, Un = async function* (e, t) { for await (const n of Dn(e)) yield* Fn(n, t); }, Dn = async function* (e) { @@ -1136,17 +1136,17 @@ const st = (e) => { } finally { await t.cancel(); } -}, Be = (e, t, n, r) => { - const s = Bn(e, t); - let o = 0, i, c = (f) => { +}, Le = (e, t, n, r) => { + const s = Un(e, t); + let o = 0, i, l = (f) => { i || (i = !0, r && r(f)); }; return new ReadableStream({ async pull(f) { try { - const { done: l, value: u } = await s.next(); - if (l) { - c(), f.close(); + const { done: c, value: u } = await s.next(); + if (c) { + l(), f.close(); return; } let d = u.byteLength; @@ -1155,25 +1155,25 @@ const st = (e) => { n(w); } f.enqueue(new Uint8Array(u)); - } catch (l) { - throw c(l), l; + } catch (c) { + throw l(c), c; } }, cancel(f) { - return c(f), s.return(); + return l(f), s.return(); } }, { highWaterMark: 2 }); -}, ie = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ot = ie && typeof ReadableStream == "function", Un = ie && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), it = (e, ...t) => { +}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", at = ae && typeof ReadableStream == "function", Bn = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), lt = (e, ...t) => { try { return !!e(...t); } catch { return !1; } -}, Ln = ot && it(() => { +}, Ln = at && lt(() => { let e = !1; - const t = new Request(A.origin, { + const t = new Request(C.origin, { body: new ReadableStream(), method: "POST", get duplex() { @@ -1181,12 +1181,12 @@ const st = (e) => { } }).headers.has("Content-Type"); return e && !t; -}), De = 64 * 1024, he = ot && it(() => a.isReadableStream(new Response("").body)), Y = { - stream: he && ((e) => e.body) +}), je = 64 * 1024, ye = at && lt(() => a.isReadableStream(new Response("").body)), te = { + stream: ye && ((e) => e.body) }; -ie && ((e) => { +ae && ((e) => { ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => { - !Y[t] && (Y[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => { + !te[t] && (te[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => { throw new y(`Response type '${t}' is not supported`, y.ERR_NOT_SUPPORT, r); }); }); @@ -1197,18 +1197,18 @@ const jn = async (e) => { if (a.isBlob(e)) return e.size; if (a.isSpecCompliantForm(e)) - return (await new Request(A.origin, { + return (await new Request(C.origin, { method: "POST", body: e }).arrayBuffer()).byteLength; if (a.isArrayBufferView(e) || a.isArrayBuffer(e)) return e.byteLength; if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e)) - return (await Un(e)).byteLength; + return (await Bn(e)).byteLength; }, qn = async (e, t) => { const n = a.toFiniteNumber(e.getContentLength()); return n ?? jn(t); -}, In = ie && (async (e) => { +}, In = ae && (async (e) => { let { url: t, method: n, @@ -1216,32 +1216,32 @@ const jn = async (e) => { signal: s, cancelToken: o, timeout: i, - onDownloadProgress: c, + onDownloadProgress: l, onUploadProgress: f, - responseType: l, + responseType: c, headers: u, withCredentials: d = "same-origin", fetchOptions: w - } = st(e); - l = l ? (l + "").toLowerCase() : "text"; - let S = kn([s, o && o.toAbortSignal()], i), p; + } = it(e); + c = c ? (c + "").toLowerCase() : "text"; + let S = Nn([s, o && o.toAbortSignal()], i), p; const b = S && S.unsubscribe && (() => { S.unsubscribe(); }); let h; try { if (f && Ln && n !== "get" && n !== "head" && (h = await qn(u, r)) !== 0) { - let T = new Request(t, { + let x = new Request(t, { method: "POST", body: r, duplex: "half" - }), F; - if (a.isFormData(r) && (F = T.headers.get("content-type")) && u.setContentType(F), T.body) { - const [U, G] = Ne( + }), L; + if (a.isFormData(r) && (L = x.headers.get("content-type")) && u.setContentType(L), x.body) { + const [q, Y] = Ue( h, - Z(ke(f)) + ee(De(f)) ); - r = Be(T.body, De, U, G); + r = Le(x.body, je, q, Y); } } a.isString(d) || (d = d ? "include" : "omit"); @@ -1256,29 +1256,29 @@ const jn = async (e) => { credentials: g ? d : void 0 }); let R = await fetch(p); - const O = he && (l === "stream" || l === "response"); - if (he && (c || O && b)) { - const T = {}; - ["status", "statusText", "headers"].forEach((Oe) => { - T[Oe] = R[Oe]; + const _ = ye && (c === "stream" || c === "response"); + if (ye && (l || _ && b)) { + const x = {}; + ["status", "statusText", "headers"].forEach((Ae) => { + x[Ae] = R[Ae]; }); - const F = a.toFiniteNumber(R.headers.get("content-length")), [U, G] = c && Ne( - F, - Z(ke(c), !0) + const L = a.toFiniteNumber(R.headers.get("content-length")), [q, Y] = l && Ue( + L, + ee(De(l), !0) ) || []; R = new Response( - Be(R.body, De, U, () => { - G && G(), b && b(); + Le(R.body, je, q, () => { + Y && Y(), b && b(); }), - T + x ); } - l = l || "text"; - let k = await Y[a.findKey(Y, l) || "text"](R, e); - return !O && b && b(), await new Promise((T, F) => { - nt(T, F, { - data: k, - headers: _.from(R.headers), + c = c || "text"; + let U = await te[a.findKey(te, c) || "text"](R, e); + return !_ && b && b(), await new Promise((x, L) => { + st(x, L, { + data: U, + headers: P.from(R.headers), status: R.status, statusText: R.statusText, config: e, @@ -1293,12 +1293,12 @@ const jn = async (e) => { } ) : y.from(g, g && g.code, e, p); } -}), me = { - http: Yt, - xhr: Nn, +}), be = { + http: Zt, + xhr: kn, fetch: In }; -a.forEach(me, (e, t) => { +a.forEach(be, (e, t) => { if (e) { try { Object.defineProperty(e, "name", { value: t }); @@ -1307,7 +1307,7 @@ a.forEach(me, (e, t) => { Object.defineProperty(e, "adapterName", { value: t }); } }); -const Ue = (e) => `- ${e}`, Hn = (e) => a.isFunction(e) || e === null || e === !1, at = { +const qe = (e) => `- ${e}`, vn = (e) => a.isFunction(e) || e === null || e === !1, ct = { getAdapter: (e) => { e = a.isArray(e) ? e : [e]; const { length: t } = e; @@ -1316,7 +1316,7 @@ const Ue = (e) => `- ${e}`, Hn = (e) => a.isFunction(e) || e === null || e === ! for (let o = 0; o < t; o++) { n = e[o]; let i; - if (r = n, !Hn(n) && (r = me[(i = String(n)).toLowerCase()], r === void 0)) + if (r = n, !vn(n) && (r = be[(i = String(n)).toLowerCase()], r === void 0)) throw new y(`Unknown adapter '${i}'`); if (r) break; @@ -1324,11 +1324,11 @@ const Ue = (e) => `- ${e}`, Hn = (e) => a.isFunction(e) || e === null || e === ! } if (!r) { const o = Object.entries(s).map( - ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build") + ([l, f]) => `adapter ${l} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build") ); let i = t ? o.length > 1 ? `since : -` + o.map(Ue).join(` -`) : " " + Ue(o[0]) : "as no adapter specified"; +` + o.map(qe).join(` +`) : " " + qe(o[0]) : "as no adapter specified"; throw new y( "There is no suitable adapter to dispatch the request " + i, "ERR_NOT_SUPPORT" @@ -1336,56 +1336,56 @@ const Ue = (e) => `- ${e}`, Hn = (e) => a.isFunction(e) || e === null || e === ! } return r; }, - adapters: me + adapters: be }; -function ue(e) { +function fe(e) { if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) - throw new z(null, e); + throw new V(null, e); } -function Le(e) { - return ue(e), e.headers = _.from(e.headers), e.data = le.call( +function Ie(e) { + return fe(e), e.headers = P.from(e.headers), e.data = ue.call( e, e.transformRequest - ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), at.getAdapter(e.adapter || K.adapter)(e).then(function(r) { - return ue(e), r.data = le.call( + ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ct.getAdapter(e.adapter || X.adapter)(e).then(function(r) { + return fe(e), r.data = ue.call( e, e.transformResponse, r - ), r.headers = _.from(r.headers), r; + ), r.headers = P.from(r.headers), r; }, function(r) { - return tt(r) || (ue(e), r && r.response && (r.response.data = le.call( + return rt(r) || (fe(e), r && r.response && (r.response.data = ue.call( e, e.transformResponse, r.response - ), r.response.headers = _.from(r.response.headers))), Promise.reject(r); + ), r.response.headers = P.from(r.response.headers))), Promise.reject(r); }); } -const ct = "1.7.7", Se = {}; +const ut = "1.7.7", Oe = {}; ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => { - Se[e] = function(r) { + Oe[e] = function(r) { return typeof r === e || "a" + (t < 1 ? "n " : " ") + e; }; }); -const je = {}; -Se.transitional = function(t, n, r) { +const ve = {}; +Oe.transitional = function(t, n, r) { function s(o, i) { - return "[Axios v" + ct + "] Transitional option '" + o + "'" + i + (r ? ". " + r : ""); + return "[Axios v" + ut + "] Transitional option '" + o + "'" + i + (r ? ". " + r : ""); } - return (o, i, c) => { + return (o, i, l) => { if (t === !1) throw new y( s(i, " has been removed" + (n ? " in " + n : "")), y.ERR_DEPRECATED ); - return n && !je[i] && (je[i] = !0, console.warn( + return n && !ve[i] && (ve[i] = !0, console.warn( s( i, " has been deprecated since v" + n + " and will be removed in the near future" ) - )), t ? t(o, i, c) : !0; + )), t ? t(o, i, l) : !0; }; }; -function vn(e, t, n) { +function Hn(e, t, n) { if (typeof e != "object") throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE); const r = Object.keys(e); @@ -1393,7 +1393,7 @@ function vn(e, t, n) { for (; s-- > 0; ) { const o = r[s], i = t[o]; if (i) { - const c = e[o], f = c === void 0 || i(c, o, e); + const l = e[o], f = l === void 0 || i(l, o, e); if (f !== !0) throw new y("option " + o + " must be " + f, y.ERR_BAD_OPTION_VALUE); continue; @@ -1402,15 +1402,15 @@ function vn(e, t, n) { throw new y("Unknown option " + o, y.ERR_BAD_OPTION); } } -const ye = { - assertOptions: vn, - validators: Se -}, B = ye.validators; -class q { +const we = { + assertOptions: Hn, + validators: Oe +}, j = we.validators; +class v { constructor(t) { this.defaults = t, this.interceptors = { - request: new Ce(), - response: new Ce() + request: new Ne(), + response: new Ne() }; } /** @@ -1439,17 +1439,17 @@ class q { } } _request(t, n) { - typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = I(this.defaults, n); + typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = H(this.defaults, n); const { transitional: r, paramsSerializer: s, headers: o } = n; - r !== void 0 && ye.assertOptions(r, { - silentJSONParsing: B.transitional(B.boolean), - forcedJSONParsing: B.transitional(B.boolean), - clarifyTimeoutError: B.transitional(B.boolean) + r !== void 0 && we.assertOptions(r, { + silentJSONParsing: j.transitional(j.boolean), + forcedJSONParsing: j.transitional(j.boolean), + clarifyTimeoutError: j.transitional(j.boolean) }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = { serialize: s - } : ye.assertOptions(s, { - encode: B.function, - serialize: B.function + } : we.assertOptions(s, { + encode: j.function, + serialize: j.function }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase(); let i = o && a.merge( o.common, @@ -1460,27 +1460,27 @@ class q { (p) => { delete o[p]; } - ), n.headers = _.concat(i, o); - const c = []; + ), n.headers = P.concat(i, o); + const l = []; let f = !0; this.interceptors.request.forEach(function(b) { - typeof b.runWhen == "function" && b.runWhen(n) === !1 || (f = f && b.synchronous, c.unshift(b.fulfilled, b.rejected)); + typeof b.runWhen == "function" && b.runWhen(n) === !1 || (f = f && b.synchronous, l.unshift(b.fulfilled, b.rejected)); }); - const l = []; + const c = []; this.interceptors.response.forEach(function(b) { - l.push(b.fulfilled, b.rejected); + c.push(b.fulfilled, b.rejected); }); let u, d = 0, w; if (!f) { - const p = [Le.bind(this), void 0]; - for (p.unshift.apply(p, c), p.push.apply(p, l), w = p.length, u = Promise.resolve(n); d < w; ) + const p = [Ie.bind(this), void 0]; + for (p.unshift.apply(p, l), p.push.apply(p, c), w = p.length, u = Promise.resolve(n); d < w; ) u = u.then(p[d++], p[d++]); return u; } - w = c.length; + w = l.length; let S = n; for (d = 0; d < w; ) { - const p = c[d++], b = c[d++]; + const p = l[d++], b = l[d++]; try { S = p(S); } catch (h) { @@ -1489,23 +1489,23 @@ class q { } } try { - u = Le.call(this, S); + u = Ie.call(this, S); } catch (p) { return Promise.reject(p); } - for (d = 0, w = l.length; d < w; ) - u = u.then(l[d++], l[d++]); + for (d = 0, w = c.length; d < w; ) + u = u.then(c[d++], c[d++]); return u; } getUri(t) { - t = I(this.defaults, t); - const n = rt(t.baseURL, t.url); - return Ze(n, t.params, t.paramsSerializer); + t = H(this.defaults, t); + const n = ot(t.baseURL, t.url); + return et(n, t.params, t.paramsSerializer); } } a.forEach(["delete", "get", "head", "options"], function(t) { - q.prototype[t] = function(n, r) { - return this.request(I(r || {}, { + v.prototype[t] = function(n, r) { + return this.request(H(r || {}, { method: t, url: n, data: (r || {}).data @@ -1514,8 +1514,8 @@ a.forEach(["delete", "get", "head", "options"], function(t) { }); a.forEach(["post", "put", "patch"], function(t) { function n(r) { - return function(o, i, c) { - return this.request(I(c || {}, { + return function(o, i, l) { + return this.request(H(l || {}, { method: t, headers: r ? { "Content-Type": "multipart/form-data" @@ -1525,9 +1525,9 @@ a.forEach(["post", "put", "patch"], function(t) { })); }; } - q.prototype[t] = n(), q.prototype[t + "Form"] = n(!0); + v.prototype[t] = n(), v.prototype[t + "Form"] = n(!0); }); -class Re { +class Te { constructor(t) { if (typeof t != "function") throw new TypeError("executor must be a function."); @@ -1544,14 +1544,14 @@ class Re { r._listeners = null; }), this.promise.then = (s) => { let o; - const i = new Promise((c) => { - r.subscribe(c), o = c; + const i = new Promise((l) => { + r.subscribe(l), o = l; }).then(s); return i.cancel = function() { r.unsubscribe(o); }, i; - }, t(function(o, i, c) { - r.reason || (r.reason = new z(o, i, c), n(r.reason)); + }, t(function(o, i, l) { + r.reason || (r.reason = new V(o, i, l), n(r.reason)); }); } /** @@ -1593,7 +1593,7 @@ class Re { static source() { let t; return { - token: new Re(function(s) { + token: new Te(function(s) { t = s; }), cancel: t @@ -1608,7 +1608,7 @@ function Mn(e) { function zn(e) { return a.isObject(e) && e.isAxiosError === !0; } -const be = { +const ge = { Continue: 100, SwitchingProtocols: 101, Processing: 102, @@ -1673,22 +1673,22 @@ const be = { NotExtended: 510, NetworkAuthenticationRequired: 511 }; -Object.entries(be).forEach(([e, t]) => { - be[t] = e; +Object.entries(ge).forEach(([e, t]) => { + ge[t] = e; }); -function lt(e) { - const t = new q(e), n = He(q.prototype.request, t); - return a.extend(n, q.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) { - return lt(I(e, s)); +function ft(e) { + const t = new v(e), n = Me(v.prototype.request, t); + return a.extend(n, v.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) { + return ft(H(e, s)); }, n; } -const E = lt(K); -E.Axios = q; -E.CanceledError = z; -E.CancelToken = Re; -E.isCancel = tt; -E.VERSION = ct; -E.toFormData = oe; +const E = ft(X); +E.Axios = v; +E.CanceledError = V; +E.CancelToken = Te; +E.isCancel = rt; +E.VERSION = ut; +E.toFormData = ie; E.AxiosError = y; E.Cancel = E.CanceledError; E.all = function(t) { @@ -1696,13 +1696,13 @@ E.all = function(t) { }; E.spread = Mn; E.isAxiosError = zn; -E.mergeConfig = I; -E.AxiosHeaders = _; -E.formToJSON = (e) => et(a.isHTMLForm(e) ? new FormData(e) : e); -E.getAdapter = at.getAdapter; -E.HttpStatusCode = be; +E.mergeConfig = H; +E.AxiosHeaders = P; +E.formToJSON = (e) => nt(a.isHTMLForm(e) ? new FormData(e) : e); +E.getAdapter = ct.getAdapter; +E.HttpStatusCode = ge; E.default = E; -var ut = /* @__PURE__ */ ((e) => (e.Primary = "Primary", e.Success = "Success", e.Warning = "Warning", e.Danger = "Danger", e))(ut || {}); +var dt = /* @__PURE__ */ ((e) => (e.Primary = "Primary", e.Success = "Success", e.Warning = "Warning", e.Danger = "Danger", e))(dt || {}); const Vn = { counter: { users: 0, @@ -1723,7 +1723,7 @@ const Vn = { }, sprinkles: {}, users: [] -}, Jn = dt("dashboardApi", { +}, $n = pt("dashboardApi", { state: () => ({ data: Vn }), @@ -1732,14 +1732,14 @@ const Vn = { return E.get("/api/dashboard").then((e) => (this.data = e.data, this.data)).catch((e) => { throw { description: "An error as occurred", - style: ut.Danger, + style: dt.Danger, closeBtn: !0, ...e.response.data }; }); } } -}), $n = /* @__PURE__ */ ee({ +}), Jn = /* @__PURE__ */ K({ __name: "DashboardStats", props: { users: {}, @@ -1748,21 +1748,21 @@ const Vn = { }, setup(e) { return (t, n) => { - const r = H("UFInfoBox"); - return D(), v(te, null, [ - N(r, { + const r = F("UFInfoBox"); + return B(), M(ne, null, [ + T(r, { value: t.users, label: "Users", faIcon: "user", to: { name: "admin.users" } }, null, 8, ["value"]), - N(r, { + T(r, { value: t.roles, label: "Roles", faIcon: "address-card", to: { name: "admin.roles" } }, null, 8, ["value"]), - N(r, { + T(r, { value: t.groups, label: "Groups", faIcon: "users", @@ -1774,44 +1774,44 @@ const Vn = { }), Wn = { class: "uk-grid uk-flex-center", "uk-grid": "" -}, Kn = ["src"], Gn = { class: "uk-margin-remove" }, Xn = { class: "uk-margin-remove uk-text-meta" }, Qn = /* @__PURE__ */ ee({ +}, Kn = ["src"], Gn = { class: "uk-margin-remove" }, Xn = { class: "uk-margin-remove uk-text-meta" }, Yn = /* @__PURE__ */ K({ __name: "DashboardRecentUsers", props: { users: {} }, setup(e) { return (t, n) => { - const r = H("RouterLink"), s = H("UFCardBox"); - return D(), qe(s, { title: "Latest Users" }, { - footer: J(() => [ - N(r, { + const r = F("RouterLink"), s = F("UFCardBox"); + return B(), Ee(s, { title: "Latest Users" }, { + footer: A(() => [ + T(r, { to: { name: "admin.users" }, class: "uk-text-center" }, { - default: J(() => n[0] || (n[0] = [ - ft("View All Users") + default: A(() => n[0] || (n[0] = [ + J("View All Users") ])), _: 1 }) ]), - default: J(() => [ + default: A(() => [ m("div", Wn, [ - (D(!0), v(te, null, Ie(t.users, (o) => (D(), v("div", { + (B(!0), M(ne, null, He(t.users, (o) => (B(), M("div", { key: o.id, class: "uk-text-center" }, [ - N(r, { + T(r, { to: { name: "admin.user", params: { user_name: o.user_name } }, class: "uk-text-decoration-none uk-link-text" }, { - default: J(() => [ + default: A(() => [ m("img", { src: o.avatar, alt: "User Image", class: "uk-border-circle" }, null, 8, Kn), - m("p", Gn, C(o.full_name), 1), - m("p", Xn, C(L(pt)(o.created_at).fromNow()), 1) + m("p", Gn, O(o.full_name), 1), + m("p", Xn, O(D(de)(o.created_at).fromNow()), 1) ]), _: 2 }, 1032, ["to"]) @@ -1822,7 +1822,7 @@ const Vn = { }); }; } -}), Zn = { class: "uk-description-list" }, Yn = { class: "uk-list uk-list-disc uk-list-collapse" }, er = /* @__PURE__ */ ee({ +}), Qn = { class: "uk-description-list" }, Zn = { class: "uk-list uk-list-disc uk-list-collapse" }, er = /* @__PURE__ */ K({ __name: "DashboardSystemInfo", props: { info: {}, @@ -1830,56 +1830,56 @@ const Vn = { }, setup(e) { return (t, n) => { - const r = H("UFCardBox"); - return D(), qe(r, { title: "System Information" }, { - default: J(() => [ - m("dl", Zn, [ + const r = F("UFCardBox"); + return B(), Ee(r, { title: "System Information" }, { + default: A(() => [ + m("dl", Qn, [ n[0] || (n[0] = m("dt", null, "Framework version", -1)), m("dd", null, [ m("pre", null, [ - m("code", null, C(t.info.frameworkVersion), 1) + m("code", null, O(t.info.frameworkVersion), 1) ]) ]), n[1] || (n[1] = m("dt", null, "PHP version", -1)), m("dd", null, [ m("pre", null, [ - m("code", null, C(t.info.phpVersion), 1) + m("code", null, O(t.info.phpVersion), 1) ]) ]), n[2] || (n[2] = m("dt", null, "Webserver software", -1)), m("dd", null, [ m("pre", null, [ - m("code", null, C(t.info.server), 1) + m("code", null, O(t.info.server), 1) ]) ]), n[3] || (n[3] = m("dt", null, "Database connection", -1)), m("dd", null, [ m("pre", null, [ - m("code", null, C(t.info.database.connection), 1) + m("code", null, O(t.info.database.connection), 1) ]) ]), n[4] || (n[4] = m("dt", null, "Database version", -1)), m("dd", null, [ m("pre", null, [ - m("code", null, C(t.info.database.type) + " " + C(t.info.database.version), 1) + m("code", null, O(t.info.database.type) + " " + O(t.info.database.version), 1) ]) ]), n[5] || (n[5] = m("dt", null, "Database name", -1)), m("dd", null, [ m("pre", null, [ - m("code", null, C(t.info.database.name), 1) + m("code", null, O(t.info.database.name), 1) ]) ]), n[6] || (n[6] = m("dt", null, "Project directory", -1)), m("dd", null, [ m("pre", null, [ - m("code", null, C(t.info.projectPath), 1) + m("code", null, O(t.info.projectPath), 1) ]) ]), n[7] || (n[7] = m("dt", null, "Loaded sprinkles", -1)), m("dd", null, [ - m("ul", Yn, [ - (D(!0), v(te, null, Ie(t.sprinkles, (s) => (D(), v("li", { key: s }, C(s), 1))), 128)) + m("ul", Zn, [ + (B(!0), M(ne, null, He(t.sprinkles, (s) => (B(), M("li", { key: s }, O(s), 1))), 128)) ]) ]) ]) @@ -1888,48 +1888,124 @@ const Vn = { }); }; } -}), tr = { +}), tr = { class: "uk-text-meta" }, nr = /* @__PURE__ */ K({ + __name: "DashboardActivities", + setup(e) { + return (t, n) => { + const r = F("UFSprunjeHeader"), s = F("UFSprunjeColumn"), o = F("RouterLink"), i = F("UFSprunjeTable"), l = F("UFCardBox"); + return B(), Ee(l, { title: "Latest Activities" }, { + default: A(() => [ + T(i, { + dataUrl: "/api/activities", + defaultSorts: { occurred_at: "desc" }, + "no-pagination": "" + }, { + header: A(() => [ + T(r, null, { + default: A(() => n[0] || (n[0] = [ + J("Activity Time") + ])), + _: 1 + }), + T(r, null, { + default: A(() => n[1] || (n[1] = [ + J("User") + ])), + _: 1 + }), + T(r, null, { + default: A(() => n[2] || (n[2] = [ + J("Description") + ])), + _: 1 + }) + ]), + body: A(({ item: f }) => [ + T(s, null, { + default: A(() => [ + m("div", null, O(D(de)(f.occurred_at).format("dddd")), 1), + m("div", null, O(D(de)(f.occurred_at).format("MMM Do, YYYY h:mm a")), 1) + ]), + _: 2 + }, 1024), + T(s, null, { + default: A(() => [ + m("strong", null, [ + T(o, { + to: { + name: "admin.user", + params: { user_name: f.user.user_name } + } + }, { + default: A(() => [ + J(O(f.user.full_name) + " (" + O(f.user.user_name) + ") ", 1) + ]), + _: 2 + }, 1032, ["to"]) + ]), + m("div", tr, O(f.user.email), 1) + ]), + _: 2 + }, 1024), + T(s, null, { + default: A(() => [ + m("div", null, O(f.ip_address), 1), + m("div", null, [ + m("i", null, O(f.description), 1) + ]) + ]), + _: 2 + }, 1024) + ]), + _: 1 + }) + ]), + _: 1 + }); + }; + } +}), rr = { class: "uk-child-width-expand", "uk-grid": "" -}, nr = { +}, sr = { class: "uk-child-width-1-2", "uk-grid": "" -}, rr = { +}, or = { class: "uk-child-width-1-1", "uk-grid": "" -}, ar = /* @__PURE__ */ ee({ +}, cr = /* @__PURE__ */ K({ __name: "DashboardView", setup(e) { - const t = Jn(); + const t = $n(); return t.load(), (n, r) => { - const s = H("UFHeaderPage"), o = H("UFCardBox"); - return D(), v(te, null, [ - N(s, { title: "Dashboard" }), - m("div", tr, [ - N($n, { - users: L(t).data.counter.users, - roles: L(t).data.counter.roles, - groups: L(t).data.counter.groups + const s = F("UFHeaderPage"); + return B(), M(ne, null, [ + T(s, { title: "Dashboard" }), + m("div", rr, [ + T(Jn, { + users: D(t).data.counter.users, + roles: D(t).data.counter.roles, + groups: D(t).data.counter.groups }, null, 8, ["users", "roles", "groups"]) ]), - m("div", nr, [ + m("div", sr, [ m("div", null, [ - m("div", rr, [ + m("div", or, [ m("div", null, [ - N(Qn, { - users: L(t).data.users + T(Yn, { + users: D(t).data.users }, null, 8, ["users"]) ]), m("div", null, [ - N(er, { - info: L(t).data.info, - sprinkles: L(t).data.sprinkles + T(er, { + info: D(t).data.info, + sprinkles: D(t).data.sprinkles }, null, 8, ["info", "sprinkles"]) ]) ]) ]), m("div", null, [ - N(o, { title: "Activities" }) + T(nr) ]) ]) ], 64); @@ -1937,5 +2013,5 @@ const Vn = { } }); export { - ar as default + cr as default }; diff --git a/dist/routes.cjs b/dist/routes.cjs index decb118..3798c50 100644 --- a/dist/routes.cjs +++ b/dist/routes.cjs @@ -1 +1 @@ -"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=[{path:"dashboard",name:"admin.dashboard",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./DashboardView-CDywR_mi.cjs"))}],n=[{path:"activities",name:"admin.activities",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./ActivitiesView-CChZXv12.cjs"))}],o=[{path:"groups",name:"admin.groups",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./GroupsView-CHH2UtUT.cjs")),children:[{path:"g/:slug",name:"admin.group",component:()=>Promise.resolve().then(()=>require("./GroupView-Cvy93KmK.cjs"))}]}],t=[{path:"permissions",name:"admin.permissions",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./PermissionsView-acweHORb.cjs")),children:[{path:"p/:id",name:"admin.permission",component:()=>Promise.resolve().then(()=>require("./PermissionView-CZvtwzCa.cjs"))}]}],i=[{path:"roles",name:"admin.roles",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./RolesView-Cozv064j.cjs")),children:[{path:"r/:slug",name:"admin.role",component:()=>Promise.resolve().then(()=>require("./RoleView-D859yBSb.cjs"))}]}],s=[{path:"users",name:"admin.users",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./UsersView-DQT5sLlv.cjs")),children:[{path:"u/:user_name",name:"admin.user",component:()=>Promise.resolve().then(()=>require("./UserView-DI4zS3sA.cjs"))}]}],r=[...e,...n,...o,...t,...i,...s];exports.AdminActivitiesRoutes=n;exports.AdminDashboardRoutes=e;exports.AdminGroupsRoutes=o;exports.AdminPermissionsRoutes=t;exports.AdminRolesRoutes=i;exports.AdminUsersRoutes=s;exports.default=r; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=[{path:"dashboard",name:"admin.dashboard",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./DashboardView-CWbg9J12.cjs"))}],n=[{path:"activities",name:"admin.activities",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./ActivitiesView-CChZXv12.cjs"))}],o=[{path:"groups",name:"admin.groups",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./GroupsView-CHH2UtUT.cjs")),children:[{path:"g/:slug",name:"admin.group",component:()=>Promise.resolve().then(()=>require("./GroupView-Cvy93KmK.cjs"))}]}],t=[{path:"permissions",name:"admin.permissions",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./PermissionsView-acweHORb.cjs")),children:[{path:"p/:id",name:"admin.permission",component:()=>Promise.resolve().then(()=>require("./PermissionView-CZvtwzCa.cjs"))}]}],i=[{path:"roles",name:"admin.roles",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./RolesView-Cozv064j.cjs")),children:[{path:"r/:slug",name:"admin.role",component:()=>Promise.resolve().then(()=>require("./RoleView-D859yBSb.cjs"))}]}],s=[{path:"users",name:"admin.users",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./UsersView-DQT5sLlv.cjs")),children:[{path:"u/:user_name",name:"admin.user",component:()=>Promise.resolve().then(()=>require("./UserView-DI4zS3sA.cjs"))}]}],r=[...e,...n,...o,...t,...i,...s];exports.AdminActivitiesRoutes=n;exports.AdminDashboardRoutes=e;exports.AdminGroupsRoutes=o;exports.AdminPermissionsRoutes=t;exports.AdminRolesRoutes=i;exports.AdminUsersRoutes=s;exports.default=r; diff --git a/dist/routes.js b/dist/routes.js index 8c47533..f92c299 100644 --- a/dist/routes.js +++ b/dist/routes.js @@ -7,7 +7,7 @@ const n = [ redirect: { name: "account.login" } } }, - component: () => import("./DashboardView-BzVrZAyo.js") + component: () => import("./DashboardView-DAlMYGe4.js") } ], t = [ { diff --git a/dist/views/Dashboard/DashboardActivities.vue.d.ts b/dist/views/Dashboard/DashboardActivities.vue.d.ts new file mode 100644 index 0000000..2a9e71a --- /dev/null +++ b/dist/views/Dashboard/DashboardActivities.vue.d.ts @@ -0,0 +1,2 @@ +declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; +export default _default;