diff --git a/config/breadcrumbs.php b/config/breadcrumbs.php index 0cfb2b1185..f3e95cf7fd 100644 --- a/config/breadcrumbs.php +++ b/config/breadcrumbs.php @@ -47,7 +47,7 @@ return [ | */ - 'view' => 'partials/layout/breadcrumbs', + 'view' => 'partials/layout/v4/breadcrumbs', /* |-------------------------------------------------------------------------- diff --git a/package-lock.json b/package-lock.json index 78d3a7d8ff..2a0b519301 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,10 @@ "": { "dependencies": { "@fortawesome/fontawesome-free": "^6.4.0", - "alpinejs": "^3.12.3" + "@popperjs/core": "^2.11.8", + "alpinejs": "^3.12.3", + "bootstrap": "^5.3.0", + "date-fns": "^2.30.0" }, "devDependencies": { "axios": "^1.1.2", @@ -15,6 +18,17 @@ "vite": "^4.0.0" } }, + "node_modules/@babel/runtime": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.6.tgz", + "integrity": "sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==", + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@esbuild/android-arm": { "version": "0.18.11", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.11.tgz", @@ -376,6 +390,15 @@ "node": ">=6" } }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, "node_modules/@vue/reactivity": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.1.5.tgz", @@ -436,6 +459,24 @@ "node": ">=8" } }, + "node_modules/bootstrap": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.0.tgz", + "integrity": "sha512-UnBV3E3v4STVNQdms6jSGO2CvOkjUMdDAVR2V5N4uCMdaIkaQjbcEAMqRimDHIs4uqBYzDAKCQwCB+97tJgHQw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "@popperjs/core": "^2.11.7" + } + }, "node_modules/braces": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", @@ -487,6 +528,21 @@ "node": ">= 0.8" } }, + "node_modules/date-fns": { + "version": "2.30.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", + "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", + "dependencies": { + "@babel/runtime": "^7.21.0" + }, + "engines": { + "node": ">=0.11" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + } + }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -781,6 +837,11 @@ "node": ">=8.10.0" } }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" + }, "node_modules/rollup": { "version": "3.26.2", "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.26.2.tgz", @@ -905,6 +966,14 @@ } }, "dependencies": { + "@babel/runtime": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.6.tgz", + "integrity": "sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==", + "requires": { + "regenerator-runtime": "^0.13.11" + } + }, "@esbuild/android-arm": { "version": "0.18.11", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.11.tgz", @@ -1064,6 +1133,11 @@ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.4.0.tgz", "integrity": "sha512-0NyytTlPJwB/BF5LtRV8rrABDbe3TdTXqNB3PdZ+UUUZAEIrdOJdmABqKjt4AXwIoJNaRVVZEXxpNrqvE1GAYQ==" }, + "@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==" + }, "@vue/reactivity": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.1.5.tgz", @@ -1118,6 +1192,12 @@ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true }, + "bootstrap": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.0.tgz", + "integrity": "sha512-UnBV3E3v4STVNQdms6jSGO2CvOkjUMdDAVR2V5N4uCMdaIkaQjbcEAMqRimDHIs4uqBYzDAKCQwCB+97tJgHQw==", + "requires": {} + }, "braces": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", @@ -1152,6 +1232,14 @@ "delayed-stream": "~1.0.0" } }, + "date-fns": { + "version": "2.30.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", + "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", + "requires": { + "@babel/runtime": "^7.21.0" + } + }, "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -1341,6 +1429,11 @@ "picomatch": "^2.2.1" } }, + "regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" + }, "rollup": { "version": "3.26.2", "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.26.2.tgz", diff --git a/package.json b/package.json index 1f51547ff8..46de4dca9c 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,9 @@ }, "dependencies": { "@fortawesome/fontawesome-free": "^6.4.0", - "alpinejs": "^3.12.3" + "@popperjs/core": "^2.11.8", + "alpinejs": "^3.12.3", + "bootstrap": "^5.3.0", + "date-fns": "^2.30.0" } } diff --git a/public/build/assets/app-9ad4de64.js b/public/build/assets/app-9ad4de64.js deleted file mode 100644 index 29f00b44c0..0000000000 --- a/public/build/assets/app-9ad4de64.js +++ /dev/null @@ -1,7 +0,0 @@ -var ei=Object.defineProperty;var ti=(e,t,n)=>t in e?ei(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var B=(e,t,n)=>(ti(e,typeof t!="symbol"?t+"":t,n),n);function hn(e,t){return function(){return e.apply(t,arguments)}}const{toString:ni}=Object.prototype,{getPrototypeOf:At}=Object,Ne=(e=>t=>{const n=ni.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>Ne(t)===e),Me=e=>t=>typeof t===e,{isArray:Q}=Array,le=Me("undefined");function ri(e){return e!==null&&!le(e)&&e.constructor!==null&&!le(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _n=F("ArrayBuffer");function ii(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_n(e.buffer),t}const si=Me("string"),T=Me("function"),mn=Me("number"),Fe=e=>e!==null&&typeof e=="object",oi=e=>e===!0||e===!1,xe=e=>{if(Ne(e)!=="object")return!1;const t=At(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ai=F("Date"),ci=F("File"),ui=F("Blob"),li=F("FileList"),fi=e=>Fe(e)&&T(e.pipe),di=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||T(e.append)&&((t=Ne(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},pi=F("URLSearchParams"),hi=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pe(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Q(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const gn=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),bn=e=>!le(e)&&e!==gn;function rt(){const{caseless:e}=bn(this)&&this||{},t={},n=(r,i)=>{const s=e&&yn(t,i)||i;xe(t[s])&&xe(r)?t[s]=rt(t[s],r):xe(r)?t[s]=rt({},r):Q(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r(pe(t,(i,s)=>{n&&T(i)?e[s]=hn(i,n):e[s]=i},{allOwnKeys:r}),e),mi=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),yi=(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)},gi=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&At(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},bi=(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},wi=e=>{if(!e)return null;if(Q(e))return e;let t=e.length;if(!mn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},xi=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&At(Uint8Array)),Ei=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Si=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ai=F("HTMLFormElement"),vi=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Gt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Oi=F("RegExp"),wn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};pe(n,(i,s)=>{t(i,s,e)!==!1&&(r[s]=i)}),Object.defineProperties(e,r)},Ri=e=>{wn(e,(t,n)=>{if(T(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(T(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+"'")})}})},Ti=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Q(e)?r(e):r(String(e).split(t)),n},Ci=()=>{},Pi=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ge="abcdefghijklmnopqrstuvwxyz",Xt="0123456789",xn={DIGIT:Xt,ALPHA:Ge,ALPHA_DIGIT:Ge+Ge.toUpperCase()+Xt},Ni=(e=16,t=xn.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Mi(e){return!!(e&&T(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Fi=e=>{const t=new Array(10),n=(r,i)=>{if(Fe(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=Q(r)?[]:{};return pe(r,(o,a)=>{const u=n(o,i+1);!le(u)&&(s[a]=u)}),t[i]=void 0,s}}return r};return n(e,0)},Li=F("AsyncFunction"),Bi=e=>e&&(Fe(e)||T(e))&&T(e.then)&&T(e.catch),l={isArray:Q,isArrayBuffer:_n,isBuffer:ri,isFormData:di,isArrayBufferView:ii,isString:si,isNumber:mn,isBoolean:oi,isObject:Fe,isPlainObject:xe,isUndefined:le,isDate:ai,isFile:ci,isBlob:ui,isRegExp:Oi,isFunction:T,isStream:fi,isURLSearchParams:pi,isTypedArray:xi,isFileList:li,forEach:pe,merge:rt,extend:_i,trim:hi,stripBOM:mi,inherits:yi,toFlatObject:gi,kindOf:Ne,kindOfTest:F,endsWith:bi,toArray:wi,forEachEntry:Ei,matchAll:Si,isHTMLForm:Ai,hasOwnProperty:Gt,hasOwnProp:Gt,reduceDescriptors:wn,freezeMethods:Ri,toObjectSet:Ti,toCamelCase:vi,noop:Ci,toFiniteNumber:Pi,findKey:yn,global:gn,isContextDefined:bn,ALPHABET:xn,generateString:Ni,isSpecCompliantForm:Mi,toJSONObject:Fi,isAsyncFn:Li,isThenable:Bi};function b(e,t,n,r,i){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),i&&(this.response=i)}l.inherits(b,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.response&&this.response.status?this.response.status:null}}});const En=b.prototype,Sn={};["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=>{Sn[e]={value:e}});Object.defineProperties(b,Sn);Object.defineProperty(En,"isAxiosError",{value:!0});b.from=(e,t,n,r,i,s)=>{const o=Object.create(En);return l.toFlatObject(e,o,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),b.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const Ii=null;function it(e){return l.isPlainObject(e)||l.isArray(e)}function An(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function Yt(e,t,n){return e?e.concat(t).map(function(i,s){return i=An(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function ji(e){return l.isArray(e)&&!e.some(it)}const Di=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function Le(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(y,h){return!l.isUndefined(h[y])});const r=n.metaTokens,i=n.visitor||f,s=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(l.isDate(p))return p.toISOString();if(!u&&l.isBlob(p))throw new b("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(p)||l.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,y,h){let g=p;if(p&&!h&&typeof p=="object"){if(l.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(l.isArray(p)&&ji(p)||(l.isFileList(p)||l.endsWith(y,"[]"))&&(g=l.toArray(p)))return y=An(y),g.forEach(function(E,R){!(l.isUndefined(E)||E===null)&&t.append(o===!0?Yt([y],R,s):o===null?y:y+"[]",c(E))}),!1}return it(p)?!0:(t.append(Yt(h,y,s),c(p)),!1)}const d=[],_=Object.assign(Di,{defaultVisitor:f,convertValue:c,isVisitable:it});function m(p,y){if(!l.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),l.forEach(p,function(g,w){(!(l.isUndefined(g)||g===null)&&i.call(t,g,l.isString(w)?w.trim():w,y,_))===!0&&m(g,y?y.concat(w):[w])}),d.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Qt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vt(e,t){this._pairs=[],e&&Le(e,this,t)}const vn=vt.prototype;vn.append=function(t,n){this._pairs.push([t,n])};vn.toString=function(t){const n=t?function(r){return t.call(this,r,Qt)}:Qt;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function $i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function On(e,t,n){if(!t)return e;const r=n&&n.encode||$i,i=n&&n.serialize;let s;if(i?s=i(t,n):s=l.isURLSearchParams(t)?t.toString():new vt(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Ui{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 Zt=Ui,Rn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ki=typeof URLSearchParams<"u"?URLSearchParams:vt,Hi=typeof FormData<"u"?FormData:null,zi=typeof Blob<"u"?Blob:null,qi=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Ki=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),M={isBrowser:!0,classes:{URLSearchParams:ki,FormData:Hi,Blob:zi},isStandardBrowserEnv:qi,isStandardBrowserWebWorkerEnv:Ki,protocols:["http","https","file","blob","url","data"]};function Vi(e,t){return Le(e,new M.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return M.isNode&&l.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Wi(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ji(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r=n.length;return o=!o&&l.isArray(i)?i.length:o,u?(l.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!l.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&l.isArray(i[o])&&(i[o]=Ji(i[o])),!a)}if(l.isFormData(e)&&l.isFunction(e.entries)){const n={};return l.forEachEntry(e,(r,i)=>{t(Wi(r),i,n,0)}),n}return null}const Gi={"Content-Type":void 0};function Xi(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(n||JSON.stringify)(e)}const Be={transitional:Rn,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=l.isObject(t);if(s&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return i&&i?JSON.stringify(Tn(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(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 a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vi(t,this.formSerializer).toString();if((a=l.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Le(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),Xi(t)):t}],transformResponse:[function(t){const n=this.transitional||Be.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&l.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?b.from(a,b.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:M.classes.FormData,Blob:M.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};l.forEach(["delete","get","head"],function(t){Be.headers[t]={}});l.forEach(["post","put","patch"],function(t){Be.headers[t]=l.merge(Gi)});const Ot=Be,Yi=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"]),Qi=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&Yi[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},en=Symbol("internals");function re(e){return e&&String(e).trim().toLowerCase()}function Ee(e){return e===!1||e==null?e:l.isArray(e)?e.map(Ee):String(e)}function Zi(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 es=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xe(e,t,n,r,i){if(l.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!l.isString(t)){if(l.isString(r))return t.indexOf(r)!==-1;if(l.isRegExp(r))return r.test(t)}}function ts(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ns(e,t){const n=l.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}class Ie{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,u,c){const f=re(u);if(!f)throw new Error("header name must be a non-empty string");const d=l.findKey(i,f);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||u]=Ee(a))}const o=(a,u)=>l.forEach(a,(c,f)=>s(c,f,u));return l.isPlainObject(t)||t instanceof this.constructor?o(t,n):l.isString(t)&&(t=t.trim())&&!es(t)?o(Qi(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=re(t),t){const r=l.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Zi(i);if(l.isFunction(n))return n.call(this,i,r);if(l.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=re(t),t){const r=l.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Xe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=re(o),o){const a=l.findKey(r,o);a&&(!n||Xe(r,r[a],a,n))&&(delete r[a],i=!0)}}return l.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||Xe(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return l.forEach(this,(i,s)=>{const o=l.findKey(r,s);if(o){n[o]=Ee(i),delete n[s];return}const a=t?ts(s):String(s).trim();a!==s&&delete n[s],n[a]=Ee(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return l.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=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(i=>r.set(i)),r}static accessor(t){const r=(this[en]=this[en]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=re(o);r[a]||(ns(i,o),r[a]=!0)}return l.isArray(t)?t.forEach(s):s(t),this}}Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);l.freezeMethods(Ie.prototype);l.freezeMethods(Ie);const L=Ie;function Ye(e,t){const n=this||Ot,r=t||n,i=L.from(r.headers);let s=r.data;return l.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Cn(e){return!!(e&&e.__CANCEL__)}function he(e,t,n){b.call(this,e??"canceled",b.ERR_CANCELED,t,n),this.name="CanceledError"}l.inherits(he,b,{__CANCEL__:!0});function rs(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new b("Request failed with status code "+n.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const is=M.isStandardBrowserEnv?function(){return{write:function(n,r,i,s,o,a){const u=[];u.push(n+"="+encodeURIComponent(r)),l.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),l.isString(s)&&u.push("path="+s),l.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function ss(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function os(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Pn(e,t){return e&&!ss(t)?os(e,t):t}const as=M.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{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=i(window.location.href),function(o){const a=l.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function cs(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function us(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),f=r[s];o||(o=c),n[i]=u,r[i]=c;let d=s,_=0;for(;d!==i;)_+=n[d++],d=d%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-n,u=r(a),c=s<=o;n=s;const f={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:u||void 0,estimated:u&&o&&c?(o-s)/u:void 0,event:i};f[t?"download":"upload"]=!0,e(f)}}const ls=typeof XMLHttpRequest<"u",fs=ls&&function(e){return new Promise(function(n,r){let i=e.data;const s=L.from(e.headers).normalize(),o=e.responseType;let a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}l.isFormData(i)&&(M.isStandardBrowserEnv||M.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(m+":"+p))}const f=Pn(e.baseURL,e.url);c.open(e.method.toUpperCase(),On(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function d(){if(!c)return;const m=L.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};rs(function(g){n(g),u()},function(g){r(g),u()},y),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(r(new b("Request aborted",b.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new b("Network Error",b.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||Rn;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),r(new b(p,y.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,e,c)),c=null},M.isStandardBrowserEnv){const m=(e.withCredentials||as(f))&&e.xsrfCookieName&&is.read(e.xsrfCookieName);m&&s.set(e.xsrfHeaderName,m)}i===void 0&&s.setContentType(null),"setRequestHeader"in c&&l.forEach(s.toJSON(),function(p,y){c.setRequestHeader(y,p)}),l.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",tn(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",tn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=m=>{c&&(r(!m||m.type?new he(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const _=cs(f);if(_&&M.protocols.indexOf(_)===-1){r(new b("Unsupported protocol "+_+":",b.ERR_BAD_REQUEST,e));return}c.send(i||null)})},Se={http:Ii,xhr:fs};l.forEach(Se,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ds={getAdapter:e=>{e=l.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;ie instanceof L?e.toJSON():e;function G(e,t){t=t||{};const n={};function r(c,f,d){return l.isPlainObject(c)&&l.isPlainObject(f)?l.merge.call({caseless:d},c,f):l.isPlainObject(f)?l.merge({},f):l.isArray(f)?f.slice():f}function i(c,f,d){if(l.isUndefined(f)){if(!l.isUndefined(c))return r(void 0,c,d)}else return r(c,f,d)}function s(c,f){if(!l.isUndefined(f))return r(void 0,f)}function o(c,f){if(l.isUndefined(f)){if(!l.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function a(c,f,d){if(d in t)return r(c,f);if(d in e)return r(void 0,c)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,f)=>i(rn(c),rn(f),!0)};return l.forEach(Object.keys(Object.assign({},e,t)),function(f){const d=u[f]||i,_=d(e[f],t[f],f);l.isUndefined(_)&&d!==a||(n[f]=_)}),n}const Nn="1.4.0",Rt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Rt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const sn={};Rt.transitional=function(t,n,r){function i(s,o){return"[Axios v"+Nn+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new b(i(o," has been removed"+(n?" in "+n:"")),b.ERR_DEPRECATED);return n&&!sn[o]&&(sn[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,a):!0}};function ps(e,t,n){if(typeof e!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],u=a===void 0||o(a,s,e);if(u!==!0)throw new b("option "+s+" must be "+u,b.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new b("Unknown option "+s,b.ERR_BAD_OPTION)}}const st={assertOptions:ps,validators:Rt},I=st.validators;class Oe{constructor(t){this.defaults=t,this.interceptors={request:new Zt,response:new Zt}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=G(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&st.assertOptions(r,{silentJSONParsing:I.transitional(I.boolean),forcedJSONParsing:I.transitional(I.boolean),clarifyTimeoutError:I.transitional(I.boolean)},!1),i!=null&&(l.isFunction(i)?n.paramsSerializer={serialize:i}:st.assertOptions(i,{encode:I.function,serialize:I.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=s&&l.merge(s.common,s[n.method]),o&&l.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=L.concat(o,s);const a=[];let u=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(u=u&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let f,d=0,_;if(!u){const p=[nn.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),_=p.length,f=Promise.resolve(n);d<_;)f=f.then(p[d++],p[d++]);return f}_=a.length;let m=n;for(d=0;d<_;){const p=a[d++],y=a[d++];try{m=p(m)}catch(h){y.call(this,h);break}}try{f=nn.call(this,m)}catch(p){return Promise.reject(p)}for(d=0,_=c.length;d<_;)f=f.then(c[d++],c[d++]);return f}getUri(t){t=G(this.defaults,t);const n=Pn(t.baseURL,t.url);return On(n,t.params,t.paramsSerializer)}}l.forEach(["delete","get","head","options"],function(t){Oe.prototype[t]=function(n,r){return this.request(G(r||{},{method:t,url:n,data:(r||{}).data}))}});l.forEach(["post","put","patch"],function(t){function n(r){return function(s,o,a){return this.request(G(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}Oe.prototype[t]=n(),Oe.prototype[t+"Form"]=n(!0)});const Ae=Oe;class Tt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new he(s,o,a),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)}static source(){let t;return{token:new Tt(function(i){t=i}),cancel:t}}}const hs=Tt;function _s(e){return function(n){return e.apply(null,n)}}function ms(e){return l.isObject(e)&&e.isAxiosError===!0}const ot={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(ot).forEach(([e,t])=>{ot[t]=e});const ys=ot;function Mn(e){const t=new Ae(e),n=hn(Ae.prototype.request,t);return l.extend(n,Ae.prototype,t,{allOwnKeys:!0}),l.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Mn(G(e,i))},n}const A=Mn(Ot);A.Axios=Ae;A.CanceledError=he;A.CancelToken=hs;A.isCancel=Cn;A.VERSION=Nn;A.toFormData=Le;A.AxiosError=b;A.Cancel=A.CanceledError;A.all=function(t){return Promise.all(t)};A.spread=_s;A.isAxiosError=ms;A.mergeConfig=G;A.AxiosHeaders=L;A.formToJSON=e=>Tn(l.isHTMLForm(e)?new FormData(e):e);A.HttpStatusCode=ys;A.default=A;const gs=A;var at=!1,ct=!1,q=[],ut=-1;function bs(e){ws(e)}function ws(e){q.includes(e)||q.push(e),xs()}function Fn(e){let t=q.indexOf(e);t!==-1&&t>ut&&q.splice(t,1)}function xs(){!ct&&!at&&(at=!0,queueMicrotask(Es))}function Es(){at=!1,ct=!0;for(let e=0;ee.effect(t,{scheduler:n=>{lt?bs(n):n()}}),Ln=e.raw}function on(e){ee=e}function vs(e){let t=()=>{};return[r=>{let i=ee(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(s=>s())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),_e(i))},i},()=>{t()}]}var Bn=[],In=[],jn=[];function Os(e){jn.push(e)}function Dn(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,In.push(t))}function Rs(e){Bn.push(e)}function Ts(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function $n(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}var Ct=new MutationObserver(Ft),Pt=!1;function Nt(){Ct.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Pt=!0}function Un(){Cs(),Ct.disconnect(),Pt=!1}var ae=[],Ze=!1;function Cs(){ae=ae.concat(Ct.takeRecords()),ae.length&&!Ze&&(Ze=!0,queueMicrotask(()=>{Ps(),Ze=!1}))}function Ps(){Ft(ae),ae.length=0}function v(e){if(!Pt)return e();Un();let t=e();return Nt(),t}var Mt=!1,Re=[];function Ns(){Mt=!0}function Ms(){Mt=!1,Ft(Re),Re=[]}function Ft(e){if(Mt){Re=Re.concat(e);return}let t=[],n=[],r=new Map,i=new Map;for(let s=0;so.nodeType===1&&t.push(o)),e[s].removedNodes.forEach(o=>o.nodeType===1&&n.push(o))),e[s].type==="attributes")){let o=e[s].target,a=e[s].attributeName,u=e[s].oldValue,c=()=>{r.has(o)||r.set(o,[]),r.get(o).push({name:a,value:o.getAttribute(a)})},f=()=>{i.has(o)||i.set(o,[]),i.get(o).push(a)};o.hasAttribute(a)&&u===null?c():o.hasAttribute(a)?(f(),c()):f()}i.forEach((s,o)=>{$n(o,s)}),r.forEach((s,o)=>{Bn.forEach(a=>a(o,s))});for(let s of n)if(!t.includes(s)&&(In.forEach(o=>o(s)),s._x_cleanups))for(;s._x_cleanups.length;)s._x_cleanups.pop()();t.forEach(s=>{s._x_ignoreSelf=!0,s._x_ignore=!0});for(let s of t)n.includes(s)||s.isConnected&&(delete s._x_ignoreSelf,delete s._x_ignore,jn.forEach(o=>o(s)),s._x_ignore=!0,s._x_ignoreSelf=!0);t.forEach(s=>{delete s._x_ignoreSelf,delete s._x_ignore}),t=null,n=null,r=null,i=null}function kn(e){return ye(X(e))}function me(e,t,n){return e._x_dataStack=[t,...X(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function X(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?X(e.host):e.parentNode?X(e.parentNode):[]}function ye(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(i=>i.hasOwnProperty(r)),get:(n,r)=>(e.find(i=>{if(i.hasOwnProperty(r)){let s=Object.getOwnPropertyDescriptor(i,r);if(s.get&&s.get._x_alreadyBound||s.set&&s.set._x_alreadyBound)return!0;if((s.get||s.set)&&s.enumerable){let o=s.get,a=s.set,u=s;o=o&&o.bind(t),a=a&&a.bind(t),o&&(o._x_alreadyBound=!0),a&&(a._x_alreadyBound=!0),Object.defineProperty(i,r,{...u,get:o,set:a})}return!0}return!1})||{})[r],set:(n,r,i)=>{let s=e.find(o=>o.hasOwnProperty(r));return s?s[r]=i:e[e.length-1][r]=i,!0}});return t}function Hn(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([s,{value:o,enumerable:a}])=>{if(a===!1||o===void 0)return;let u=i===""?s:`${i}.${s}`;typeof o=="object"&&o!==null&&o._x_interceptor?r[s]=o.initialize(e,u,s):t(o)&&o!==r&&!(o instanceof Element)&&n(o,u)})};return n(e)}function zn(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,s){return e(this.initialValue,()=>Fs(r,i),o=>ft(r,i,o),i,s)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(s,o,a)=>{let u=r.initialize(s,o,a);return n.initialValue=u,i(s,o,a)}}else n.initialValue=r;return n}}function Fs(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function ft(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),ft(e[t[0]],t.slice(1),n)}}var qn={};function P(e,t){qn[e]=t}function dt(e,t){return Object.entries(qn).forEach(([n,r])=>{let i=null;function s(){if(i)return i;{let[o,a]=Xn(t);return i={interceptor:zn,...o},Dn(t,a),i}}Object.defineProperty(e,`$${n}`,{get(){return r(t,s())},enumerable:!1})}),e}function Ls(e,t,n,...r){try{return n(...r)}catch(i){fe(i,e,t)}}function fe(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} - -${n?'Expression: "'+n+`" - -`:""}`,t),setTimeout(()=>{throw e},0)}var ve=!0;function Kn(e){let t=ve;ve=!1;let n=e();return ve=t,n}function K(e,t,n={}){let r;return O(e,t)(i=>r=i,n),r}function O(...e){return Vn(...e)}var Vn=Wn;function Bs(e){Vn=e}function Wn(e,t){let n={};dt(n,e);let r=[n,...X(e)],i=typeof t=="function"?Is(r,t):Ds(r,t,e);return Ls.bind(null,e,t,i)}function Is(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let s=t.apply(ye([r,...e]),i);Te(n,s)}}var et={};function js(e,t){if(et[e])return et[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(async()=>{ ${e} })()`:e,s=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(o){return fe(o,t,e),Promise.resolve()}})();return et[e]=s,s}function Ds(e,t,n){let r=js(t,n);return(i=()=>{},{scope:s={},params:o=[]}={})=>{r.result=void 0,r.finished=!1;let a=ye([s,...e]);if(typeof r=="function"){let u=r(r,a).catch(c=>fe(c,n,t));r.finished?(Te(i,r.result,a,o,n),r.result=void 0):u.then(c=>{Te(i,c,a,o,n)}).catch(c=>fe(c,n,t)).finally(()=>r.result=void 0)}}}function Te(e,t,n,r,i){if(ve&&typeof t=="function"){let s=t.apply(n,r);s instanceof Promise?s.then(o=>Te(e,o,n,r)).catch(o=>fe(o,i,t)):e(s)}else typeof t=="object"&&t instanceof Promise?t.then(s=>e(s)):e(t)}var Lt="x-";function te(e=""){return Lt+e}function $s(e){Lt=e}var pt={};function S(e,t){return pt[e]=t,{before(n){if(!pt[n]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const r=z.indexOf(n);z.splice(r>=0?r:z.indexOf("DEFAULT"),0,e)}}}function Bt(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let s=Object.entries(e._x_virtualDirectives).map(([a,u])=>({name:a,value:u})),o=Jn(s);s=s.map(a=>o.find(u=>u.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(s)}let r={};return t.map(Zn((s,o)=>r[s]=o)).filter(tr).map(Hs(r,n)).sort(zs).map(s=>ks(e,s))}function Jn(e){return Array.from(e).map(Zn()).filter(t=>!tr(t))}var ht=!1,oe=new Map,Gn=Symbol();function Us(e){ht=!0;let t=Symbol();Gn=t,oe.set(t,[]);let n=()=>{for(;oe.get(t).length;)oe.get(t).shift()();oe.delete(t)},r=()=>{ht=!1,n()};e(n),r()}function Xn(e){let t=[],n=a=>t.push(a),[r,i]=vs(e);return t.push(i),[{Alpine:be,effect:r,cleanup:n,evaluateLater:O.bind(O,e),evaluate:K.bind(K,e)},()=>t.forEach(a=>a())]}function ks(e,t){let n=()=>{},r=pt[t.type]||n,[i,s]=Xn(e);Ts(e,t.original,s);let o=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),ht?oe.get(Gn).push(r):r())};return o.runCleanups=s,o}var Yn=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),Qn=e=>e;function Zn(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=er.reduce((s,o)=>o(s),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var er=[];function It(e){er.push(e)}function tr({name:e}){return nr().test(e)}var nr=()=>new RegExp(`^${Lt}([^:^.]+)\\b`);function Hs(e,t){return({name:n,value:r})=>{let i=n.match(nr()),s=n.match(/:([a-zA-Z0-9\-:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:i?i[1]:null,value:s?s[1]:null,modifiers:o.map(u=>u.replace(".","")),expression:r,original:a}}}var _t="DEFAULT",z=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",_t,"teleport"];function zs(e,t){let n=z.indexOf(e.type)===-1?_t:e.type,r=z.indexOf(t.type)===-1?_t:t.type;return z.indexOf(n)-z.indexOf(r)}function ce(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function D(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>D(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)D(r,t),r=r.nextElementSibling}function $(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var an=!1;function qs(){an&&$("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),an=!0,document.body||$("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's ` +--}} +{{-- +--}} diff --git a/resources/views/partials/layout/v4/sidebar.blade.php b/resources/views/partials/layout/v4/sidebar.blade.php new file mode 100644 index 0000000000..5496a0cc35 --- /dev/null +++ b/resources/views/partials/layout/v4/sidebar.blade.php @@ -0,0 +1,232 @@ + + + diff --git a/vite.config.js b/vite.config.js index 4a78780b36..573e6aad95 100644 --- a/vite.config.js +++ b/vite.config.js @@ -10,7 +10,11 @@ const host = 'firefly.sd.local'; export default defineConfig({ plugins: [ laravel({ - input: ['resources/assets/v4/sass/app.scss', 'resources/assets/v4/app.js'], + input: [ + 'resources/assets/v4/sass/app.scss', + 'resources/assets/v4/app.js', + 'resources/assets/v4/index.js' + ], refresh: true, }),