From a9b82b234b589a293f05170b7b6a02b9db983d5d Mon Sep 17 00:00:00 2001 From: Alexander Nikushkin Date: Mon, 30 Oct 2023 14:47:08 +0500 Subject: [PATCH] upgrade: 2.0 --- composer.json | 2 +- composer.lock | 14 ++++----- public/vendor/moonshine/assets/app.js | 30 +++++++++---------- .../views/pages/ru/installation.blade.php | 2 +- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/composer.json b/composer.json index 14324cde..068e7f39 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^10.0", "lee-to/moonshine-algolia-search": "^1.0", - "moonshine/moonshine": "2.0.0.beta.2", + "moonshine/moonshine": "2.0.0.rc.1", "torchlight/torchlight-laravel": "^0.5.11" }, "require-dev": { diff --git a/composer.lock b/composer.lock index 0a9be277..9fe4eb70 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b4cac22232857a33b733f351361b0c36", + "content-hash": "ea95e11ac8cb9b648d4e50d33b1c2d95", "packages": [ { "name": "algolia/algoliasearch-client-php", @@ -1969,16 +1969,16 @@ }, { "name": "moonshine/moonshine", - "version": "2.0.0-beta.2", + "version": "2.0.0-rc.1", "source": { "type": "git", "url": "https://github.com/moonshine-software/moonshine.git", - "reference": "a0b78f72f48a57dfa976b2c318757490ebf39f2b" + "reference": "1d36fd8ddc80c2c5518b635fa2eec221791c6324" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/moonshine-software/moonshine/zipball/a0b78f72f48a57dfa976b2c318757490ebf39f2b", - "reference": "a0b78f72f48a57dfa976b2c318757490ebf39f2b", + "url": "https://api.github.com/repos/moonshine-software/moonshine/zipball/1d36fd8ddc80c2c5518b635fa2eec221791c6324", + "reference": "1d36fd8ddc80c2c5518b635fa2eec221791c6324", "shasum": "" }, "require": { @@ -2053,7 +2053,7 @@ "type": "open_collective" } ], - "time": "2023-10-26T10:18:34+00:00" + "time": "2023-10-30T09:37:15+00:00" }, { "name": "nesbot/carbon", @@ -9142,7 +9142,7 @@ "aliases": [], "minimum-stability": "stable", "stability-flags": { - "moonshine/moonshine": 10 + "moonshine/moonshine": 5 }, "prefer-stable": true, "prefer-lowest": false, diff --git a/public/vendor/moonshine/assets/app.js b/public/vendor/moonshine/assets/app.js index 41e46ddc..b3963e82 100644 --- a/public/vendor/moonshine/assets/app.js +++ b/public/vendor/moonshine/assets/app.js @@ -1,25 +1,25 @@ -function ap(e,n){return function(){return e.apply(n,arguments)}}const{toString:lp}=Object.prototype,{getPrototypeOf:qu}=Object,Yu=(e=>n=>{const r=lp.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),wr=e=>(e=e.toLowerCase(),n=>Yu(n)===e),ba=e=>n=>typeof n===e,{isArray:Vi}=Array,ko=ba("undefined");function E0(e){return e!==null&&!ko(e)&&e.constructor!==null&&!ko(e.constructor)&&Ur(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const up=wr("ArrayBuffer");function w0(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&up(e.buffer),n}const S0=ba("string"),Ur=ba("function"),cp=ba("number"),zu=e=>e!==null&&typeof e=="object",A0=e=>e===!0||e===!1,Gs=e=>{if(Yu(e)!=="object")return!1;const n=qu(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},O0=wr("Date"),x0=wr("File"),T0=wr("Blob"),C0=wr("FileList"),I0=e=>zu(e)&&Ur(e.pipe),L0=e=>{const n="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||lp.call(e)===n||Ur(e.toString)&&e.toString()===n)},P0=wr("URLSearchParams"),D0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jo(e,n,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,a;if(typeof e!="object"&&(e=[e]),Vi(e))for(o=0,a=e.length;o0;)if(a=r[o],n===a.toLowerCase())return a;return null}const dp=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),hp=e=>!ko(e)&&e!==dp;function gu(){const{caseless:e}=hp(this)&&this||{},n={},r=(o,a)=>{const l=e&&fp(n,a)||a;Gs(n[l])&&Gs(o)?n[l]=gu(n[l],o):Gs(o)?n[l]=gu({},o):Vi(o)?n[l]=o.slice():n[l]=o};for(let o=0,a=arguments.length;o(jo(n,(a,l)=>{r&&Ur(a)?e[l]=ap(a,r):e[l]=a},{allOwnKeys:o}),e),R0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),N0=(e,n,r,o)=>{e.prototype=Object.create(n.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),r&&Object.assign(e.prototype,r)},F0=(e,n,r,o)=>{let a,l,c;const u={};if(n=n||{},e==null)return n;do{for(a=Object.getOwnPropertyNames(e),l=a.length;l-- >0;)c=a[l],(!o||o(c,e,n))&&!u[c]&&(n[c]=e[c],u[c]=!0);e=r!==!1&&qu(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n},k0=(e,n,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=n.length;const o=e.indexOf(n,r);return o!==-1&&o===r},B0=e=>{if(!e)return null;if(Vi(e))return e;let n=e.length;if(!cp(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=e[n];return r},$0=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&qu(Uint8Array)),H0=(e,n)=>{const o=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=o.next())&&!a.done;){const l=a.value;n.call(e,l[0],l[1])}},j0=(e,n)=>{let r;const o=[];for(;(r=e.exec(n))!==null;)o.push(r);return o},U0=wr("HTMLFormElement"),W0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,a){return o.toUpperCase()+a}),nh=(({hasOwnProperty:e})=>(n,r)=>e.call(n,r))(Object.prototype),K0=wr("RegExp"),pp=(e,n)=>{const r=Object.getOwnPropertyDescriptors(e),o={};jo(r,(a,l)=>{n(a,l,e)!==!1&&(o[l]=a)}),Object.defineProperties(e,o)},q0=e=>{pp(e,(n,r)=>{if(Ur(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=e[r];if(Ur(o)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Y0=(e,n)=>{const r={},o=a=>{a.forEach(l=>{r[l]=!0})};return Vi(e)?o(e):o(String(e).split(n)),r},z0=()=>{},V0=(e,n)=>(e=+e,Number.isFinite(e)?e:n),Yl="abcdefghijklmnopqrstuvwxyz",rh="0123456789",gp={DIGIT:rh,ALPHA:Yl,ALPHA_DIGIT:Yl+Yl.toUpperCase()+rh},G0=(e=16,n=gp.ALPHA_DIGIT)=>{let r="";const{length:o}=n;for(;e--;)r+=n[Math.random()*o|0];return r};function X0(e){return!!(e&&Ur(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const J0=e=>{const n=new Array(10),r=(o,a)=>{if(zu(o)){if(n.indexOf(o)>=0)return;if(!("toJSON"in o)){n[a]=o;const l=Vi(o)?[]:{};return jo(o,(c,u)=>{const f=r(c,a+1);!ko(f)&&(l[u]=f)}),n[a]=void 0,l}}return o};return r(e,0)},G={isArray:Vi,isArrayBuffer:up,isBuffer:E0,isFormData:L0,isArrayBufferView:w0,isString:S0,isNumber:cp,isBoolean:A0,isObject:zu,isPlainObject:Gs,isUndefined:ko,isDate:O0,isFile:x0,isBlob:T0,isRegExp:K0,isFunction:Ur,isStream:I0,isURLSearchParams:P0,isTypedArray:$0,isFileList:C0,forEach:jo,merge:gu,extend:M0,trim:D0,stripBOM:R0,inherits:N0,toFlatObject:F0,kindOf:Yu,kindOfTest:wr,endsWith:k0,toArray:B0,forEachEntry:H0,matchAll:j0,isHTMLForm:U0,hasOwnProperty:nh,hasOwnProp:nh,reduceDescriptors:pp,freezeMethods:q0,toObjectSet:Y0,toCamelCase:W0,noop:z0,toFiniteNumber:V0,findKey:fp,global:dp,isContextDefined:hp,ALPHABET:gp,generateString:G0,isSpecCompliantForm:X0,toJSONObject:J0};function ze(e,n,r,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),a&&(this.response=a)}G.inherits(ze,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:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mp=ze.prototype,vp={};["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=>{vp[e]={value:e}});Object.defineProperties(ze,vp);Object.defineProperty(mp,"isAxiosError",{value:!0});ze.from=(e,n,r,o,a,l)=>{const c=Object.create(mp);return G.toFlatObject(e,c,function(f){return f!==Error.prototype},u=>u!=="isAxiosError"),ze.call(c,e.message,n,r,o,a),c.cause=e,c.name=e.name,l&&Object.assign(c,l),c};const Z0=null;function mu(e){return G.isPlainObject(e)||G.isArray(e)}function _p(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function ih(e,n,r){return e?e.concat(n).map(function(a,l){return a=_p(a),!r&&l?"["+a+"]":a}).join(r?".":""):n}function Q0(e){return G.isArray(e)&&!e.some(mu)}const eS=G.toFlatObject(G,{},null,function(n){return/^is[A-Z]/.test(n)});function Ea(e,n,r){if(!G.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,C){return!G.isUndefined(C[A])});const o=r.metaTokens,a=r.visitor||p,l=r.dots,c=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(n);if(!G.isFunction(a))throw new TypeError("visitor must be a function");function h(b){if(b===null)return"";if(G.isDate(b))return b.toISOString();if(!f&&G.isBlob(b))throw new ze("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(b)||G.isTypedArray(b)?f&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,A,C){let R=b;if(b&&!C&&typeof b=="object"){if(G.endsWith(A,"{}"))A=o?A:A.slice(0,-2),b=JSON.stringify(b);else if(G.isArray(b)&&Q0(b)||(G.isFileList(b)||G.endsWith(A,"[]"))&&(R=G.toArray(b)))return A=_p(A),R.forEach(function(H,x){!(G.isUndefined(H)||H===null)&&n.append(c===!0?ih([A],x,l):c===null?A:A+"[]",h(H))}),!1}return mu(b)?!0:(n.append(ih(C,A,l),h(b)),!1)}const g=[],_=Object.assign(eS,{defaultVisitor:p,convertValue:h,isVisitable:mu});function y(b,A){if(!G.isUndefined(b)){if(g.indexOf(b)!==-1)throw Error("Circular reference detected in "+A.join("."));g.push(b),G.forEach(b,function(R,P){(!(G.isUndefined(R)||R===null)&&a.call(n,R,G.isString(P)?P.trim():P,A,_))===!0&&y(R,A?A.concat(P):[P])}),g.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return y(e),n}function oh(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return n[o]})}function Vu(e,n){this._pairs=[],e&&Ea(e,this,n)}const yp=Vu.prototype;yp.append=function(n,r){this._pairs.push([n,r])};yp.toString=function(n){const r=n?function(o){return n.call(this,o,oh)}:oh;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function tS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bp(e,n,r){if(!n)return e;const o=r&&r.encode||tS,a=r&&r.serialize;let l;if(a?l=a(n,r):l=G.isURLSearchParams(n)?n.toString():new Vu(n,r).toString(o),l){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class nS{constructor(){this.handlers=[]}use(n,r,o){return this.handlers.push({fulfilled:n,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){G.forEach(this.handlers,function(o){o!==null&&n(o)})}}const sh=nS,Ep={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rS=typeof URLSearchParams<"u"?URLSearchParams:Vu,iS=typeof FormData<"u"?FormData:null,oS=typeof Blob<"u"?Blob:null,sS=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),aS=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),zn={isBrowser:!0,classes:{URLSearchParams:rS,FormData:iS,Blob:oS},isStandardBrowserEnv:sS,isStandardBrowserWebWorkerEnv:aS,protocols:["http","https","file","blob","url","data"]};function lS(e,n){return Ea(e,new zn.classes.URLSearchParams,Object.assign({visitor:function(r,o,a,l){return zn.isNode&&G.isBuffer(r)?(this.append(o,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},n))}function uS(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function cS(e){const n={},r=Object.keys(e);let o;const a=r.length;let l;for(o=0;o=r.length;return c=!c&&G.isArray(a)?a.length:c,f?(G.hasOwnProp(a,c)?a[c]=[a[c],o]:a[c]=o,!u):((!a[c]||!G.isObject(a[c]))&&(a[c]=[]),n(r,o,a[c],l)&&G.isArray(a[c])&&(a[c]=cS(a[c])),!u)}if(G.isFormData(e)&&G.isFunction(e.entries)){const r={};return G.forEachEntry(e,(o,a)=>{n(uS(o),a,r,0)}),r}return null}const fS={"Content-Type":void 0};function dS(e,n,r){if(G.isString(e))try{return(n||JSON.parse)(e),G.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}const wa={transitional:Ep,adapter:["xhr","http"],transformRequest:[function(n,r){const o=r.getContentType()||"",a=o.indexOf("application/json")>-1,l=G.isObject(n);if(l&&G.isHTMLForm(n)&&(n=new FormData(n)),G.isFormData(n))return a&&a?JSON.stringify(wp(n)):n;if(G.isArrayBuffer(n)||G.isBuffer(n)||G.isStream(n)||G.isFile(n)||G.isBlob(n))return n;if(G.isArrayBufferView(n))return n.buffer;if(G.isURLSearchParams(n))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let u;if(l){if(o.indexOf("application/x-www-form-urlencoded")>-1)return lS(n,this.formSerializer).toString();if((u=G.isFileList(n))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Ea(u?{"files[]":n}:n,f&&new f,this.formSerializer)}}return l||a?(r.setContentType("application/json",!1),dS(n)):n}],transformResponse:[function(n){const r=this.transitional||wa.transitional,o=r&&r.forcedJSONParsing,a=this.responseType==="json";if(n&&G.isString(n)&&(o&&!this.responseType||a)){const c=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(n)}catch(u){if(c)throw u.name==="SyntaxError"?ze.from(u,ze.ERR_BAD_RESPONSE,this,null,this.response):u}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zn.classes.FormData,Blob:zn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};G.forEach(["delete","get","head"],function(n){wa.headers[n]={}});G.forEach(["post","put","patch"],function(n){wa.headers[n]=G.merge(fS)});const Gu=wa,hS=G.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"]),pS=e=>{const n={};let r,o,a;return e&&e.split(` -`).forEach(function(c){a=c.indexOf(":"),r=c.substring(0,a).trim().toLowerCase(),o=c.substring(a+1).trim(),!(!r||n[r]&&hS[r])&&(r==="set-cookie"?n[r]?n[r].push(o):n[r]=[o]:n[r]=n[r]?n[r]+", "+o:o)}),n},ah=Symbol("internals");function mo(e){return e&&String(e).trim().toLowerCase()}function Xs(e){return e===!1||e==null?e:G.isArray(e)?e.map(Xs):String(e)}function gS(e){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)n[o[1]]=o[2];return n}function mS(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function zl(e,n,r,o,a){if(G.isFunction(o))return o.call(this,n,r);if(a&&(n=r),!!G.isString(n)){if(G.isString(o))return n.indexOf(o)!==-1;if(G.isRegExp(o))return o.test(n)}}function vS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,o)=>r.toUpperCase()+o)}function _S(e,n){const r=G.toCamelCase(" "+n);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{value:function(a,l,c){return this[o].call(this,n,a,l,c)},configurable:!0})})}class Sa{constructor(n){n&&this.set(n)}set(n,r,o){const a=this;function l(u,f,h){const p=mo(f);if(!p)throw new Error("header name must be a non-empty string");const g=G.findKey(a,p);(!g||a[g]===void 0||h===!0||h===void 0&&a[g]!==!1)&&(a[g||f]=Xs(u))}const c=(u,f)=>G.forEach(u,(h,p)=>l(h,p,f));return G.isPlainObject(n)||n instanceof this.constructor?c(n,r):G.isString(n)&&(n=n.trim())&&!mS(n)?c(pS(n),r):n!=null&&l(r,n,o),this}get(n,r){if(n=mo(n),n){const o=G.findKey(this,n);if(o){const a=this[o];if(!r)return a;if(r===!0)return gS(a);if(G.isFunction(r))return r.call(this,a,o);if(G.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=mo(n),n){const o=G.findKey(this,n);return!!(o&&this[o]!==void 0&&(!r||zl(this,this[o],o,r)))}return!1}delete(n,r){const o=this;let a=!1;function l(c){if(c=mo(c),c){const u=G.findKey(o,c);u&&(!r||zl(o,o[u],u,r))&&(delete o[u],a=!0)}}return G.isArray(n)?n.forEach(l):l(n),a}clear(n){const r=Object.keys(this);let o=r.length,a=!1;for(;o--;){const l=r[o];(!n||zl(this,this[l],l,n,!0))&&(delete this[l],a=!0)}return a}normalize(n){const r=this,o={};return G.forEach(this,(a,l)=>{const c=G.findKey(o,l);if(c){r[c]=Xs(a),delete r[l];return}const u=n?vS(l):String(l).trim();u!==l&&delete r[l],r[u]=Xs(a),o[u]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return G.forEach(this,(o,a)=>{o!=null&&o!==!1&&(r[a]=n&&G.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const o=new this(n);return r.forEach(a=>o.set(a)),o}static accessor(n){const o=(this[ah]=this[ah]={accessors:{}}).accessors,a=this.prototype;function l(c){const u=mo(c);o[u]||(_S(a,c),o[u]=!0)}return G.isArray(n)?n.forEach(l):l(n),this}}Sa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.freezeMethods(Sa.prototype);G.freezeMethods(Sa);const mr=Sa;function Vl(e,n){const r=this||Gu,o=n||r,a=mr.from(o.headers);let l=o.data;return G.forEach(e,function(u){l=u.call(r,l,a.normalize(),n?n.status:void 0)}),a.normalize(),l}function Sp(e){return!!(e&&e.__CANCEL__)}function Uo(e,n,r){ze.call(this,e??"canceled",ze.ERR_CANCELED,n,r),this.name="CanceledError"}G.inherits(Uo,ze,{__CANCEL__:!0});function yS(e,n,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):n(new ze("Request failed with status code "+r.status,[ze.ERR_BAD_REQUEST,ze.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const bS=zn.isStandardBrowserEnv?function(){return{write:function(r,o,a,l,c,u){const f=[];f.push(r+"="+encodeURIComponent(o)),G.isNumber(a)&&f.push("expires="+new Date(a).toGMTString()),G.isString(l)&&f.push("path="+l),G.isString(c)&&f.push("domain="+c),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(r){const o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function ES(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wS(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}function Ap(e,n){return e&&!ES(n)?wS(e,n):n}const SS=zn.isStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let o;function a(l){let c=l;return n&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=a(window.location.href),function(c){const u=G.isString(c)?a(c):c;return u.protocol===o.protocol&&u.host===o.host}}():function(){return function(){return!0}}();function AS(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function OS(e,n){e=e||10;const r=new Array(e),o=new Array(e);let a=0,l=0,c;return n=n!==void 0?n:1e3,function(f){const h=Date.now(),p=o[l];c||(c=h),r[a]=f,o[a]=h;let g=l,_=0;for(;g!==a;)_+=r[g++],g=g%e;if(a=(a+1)%e,a===l&&(l=(l+1)%e),h-c{const l=a.loaded,c=a.lengthComputable?a.total:void 0,u=l-r,f=o(u),h=l<=c;r=l;const p={loaded:l,total:c,progress:c?l/c:void 0,bytes:u,rate:f||void 0,estimated:f&&c&&h?(c-l)/f:void 0,event:a};p[n?"download":"upload"]=!0,e(p)}}const xS=typeof XMLHttpRequest<"u",TS=xS&&function(e){return new Promise(function(r,o){let a=e.data;const l=mr.from(e.headers).normalize(),c=e.responseType;let u;function f(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}G.isFormData(a)&&(zn.isStandardBrowserEnv||zn.isStandardBrowserWebWorkerEnv)&&l.setContentType(!1);let h=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";l.set("Authorization","Basic "+btoa(y+":"+b))}const p=Ap(e.baseURL,e.url);h.open(e.method.toUpperCase(),bp(p,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function g(){if(!h)return;const y=mr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),A={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:y,config:e,request:h};yS(function(R){r(R),f()},function(R){o(R),f()},A),h=null}if("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)},h.onabort=function(){h&&(o(new ze("Request aborted",ze.ECONNABORTED,e,h)),h=null)},h.onerror=function(){o(new ze("Network Error",ze.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const A=e.transitional||Ep;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),o(new ze(b,A.clarifyTimeoutError?ze.ETIMEDOUT:ze.ECONNABORTED,e,h)),h=null},zn.isStandardBrowserEnv){const y=(e.withCredentials||SS(p))&&e.xsrfCookieName&&bS.read(e.xsrfCookieName);y&&l.set(e.xsrfHeaderName,y)}a===void 0&&l.setContentType(null),"setRequestHeader"in h&&G.forEach(l.toJSON(),function(b,A){h.setRequestHeader(A,b)}),G.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),c&&c!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",lh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",lh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=y=>{h&&(o(!y||y.type?new Uo(null,e,h):y),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const _=AS(p);if(_&&zn.protocols.indexOf(_)===-1){o(new ze("Unsupported protocol "+_+":",ze.ERR_BAD_REQUEST,e));return}h.send(a||null)})},Js={http:Z0,xhr:TS};G.forEach(Js,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const CS={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:n}=e;let r,o;for(let a=0;ae instanceof mr?e.toJSON():e;function Hi(e,n){n=n||{};const r={};function o(h,p,g){return G.isPlainObject(h)&&G.isPlainObject(p)?G.merge.call({caseless:g},h,p):G.isPlainObject(p)?G.merge({},p):G.isArray(p)?p.slice():p}function a(h,p,g){if(G.isUndefined(p)){if(!G.isUndefined(h))return o(void 0,h,g)}else return o(h,p,g)}function l(h,p){if(!G.isUndefined(p))return o(void 0,p)}function c(h,p){if(G.isUndefined(p)){if(!G.isUndefined(h))return o(void 0,h)}else return o(void 0,p)}function u(h,p,g){if(g in n)return o(h,p);if(g in e)return o(void 0,h)}const f={url:l,method:l,data:l,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:u,headers:(h,p)=>a(ch(h),ch(p),!0)};return G.forEach(Object.keys(e).concat(Object.keys(n)),function(p){const g=f[p]||a,_=g(e[p],n[p],p);G.isUndefined(_)&&g!==u||(r[p]=_)}),r}const Op="1.3.4",Xu={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{Xu[e]=function(o){return typeof o===e||"a"+(n<1?"n ":" ")+e}});const fh={};Xu.transitional=function(n,r,o){function a(l,c){return"[Axios v"+Op+"] Transitional option '"+l+"'"+c+(o?". "+o:"")}return(l,c,u)=>{if(n===!1)throw new ze(a(c," has been removed"+(r?" in "+r:"")),ze.ERR_DEPRECATED);return r&&!fh[c]&&(fh[c]=!0,console.warn(a(c," has been deprecated since v"+r+" and will be removed in the near future"))),n?n(l,c,u):!0}};function IS(e,n,r){if(typeof e!="object")throw new ze("options must be an object",ze.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const l=o[a],c=n[l];if(c){const u=e[l],f=u===void 0||c(u,l,e);if(f!==!0)throw new ze("option "+l+" must be "+f,ze.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ze("Unknown option "+l,ze.ERR_BAD_OPTION)}}const vu={assertOptions:IS,validators:Xu},kr=vu.validators;class sa{constructor(n){this.defaults=n,this.interceptors={request:new sh,response:new sh}}request(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=Hi(this.defaults,r);const{transitional:o,paramsSerializer:a,headers:l}=r;o!==void 0&&vu.assertOptions(o,{silentJSONParsing:kr.transitional(kr.boolean),forcedJSONParsing:kr.transitional(kr.boolean),clarifyTimeoutError:kr.transitional(kr.boolean)},!1),a!==void 0&&vu.assertOptions(a,{encode:kr.function,serialize:kr.function},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let c;c=l&&G.merge(l.common,l[r.method]),c&&G.forEach(["delete","get","head","post","put","patch","common"],b=>{delete l[b]}),r.headers=mr.concat(c,l);const u=[];let f=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(r)===!1||(f=f&&A.synchronous,u.unshift(A.fulfilled,A.rejected))});const h=[];this.interceptors.response.forEach(function(A){h.push(A.fulfilled,A.rejected)});let p,g=0,_;if(!f){const b=[uh.bind(this),void 0];for(b.unshift.apply(b,u),b.push.apply(b,h),_=b.length,p=Promise.resolve(r);g<_;)p=p.then(b[g++],b[g++]);return p}_=u.length;let y=r;for(g=0;g<_;){const b=u[g++],A=u[g++];try{y=b(y)}catch(C){A.call(this,C);break}}try{p=uh.call(this,y)}catch(b){return Promise.reject(b)}for(g=0,_=h.length;g<_;)p=p.then(h[g++],h[g++]);return p}getUri(n){n=Hi(this.defaults,n);const r=Ap(n.baseURL,n.url);return bp(r,n.params,n.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(n){sa.prototype[n]=function(r,o){return this.request(Hi(o||{},{method:n,url:r,data:(o||{}).data}))}});G.forEach(["post","put","patch"],function(n){function r(o){return function(l,c,u){return this.request(Hi(u||{},{method:n,headers:o?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}sa.prototype[n]=r(),sa.prototype[n+"Form"]=r(!0)});const Zs=sa;class Ju{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const o=this;this.promise.then(a=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](a);o._listeners=null}),this.promise.then=a=>{let l;const c=new Promise(u=>{o.subscribe(u),l=u}).then(a);return c.cancel=function(){o.unsubscribe(l)},c},n(function(l,c,u){o.reason||(o.reason=new Uo(l,c,u),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}static source(){let n;return{token:new Ju(function(a){n=a}),cancel:n}}}const LS=Ju;function PS(e){return function(r){return e.apply(null,r)}}function DS(e){return G.isObject(e)&&e.isAxiosError===!0}const _u={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(_u).forEach(([e,n])=>{_u[n]=e});const MS=_u;function xp(e){const n=new Zs(e),r=ap(Zs.prototype.request,n);return G.extend(r,Zs.prototype,n,{allOwnKeys:!0}),G.extend(r,n,null,{allOwnKeys:!0}),r.create=function(a){return xp(Hi(e,a))},r}const At=xp(Gu);At.Axios=Zs;At.CanceledError=Uo;At.CancelToken=LS;At.isCancel=Sp;At.VERSION=Op;At.toFormData=Ea;At.AxiosError=ze;At.Cancel=At.CanceledError;At.all=function(n){return Promise.all(n)};At.spread=PS;At.isAxiosError=DS;At.mergeConfig=Hi;At.AxiosHeaders=mr;At.formToJSON=e=>wp(G.isHTMLForm(e)?new FormData(e):e);At.HttpStatusCode=MS;At.default=At;const RS=At;window.axios=RS;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";CSS.supports("selector(:has(*))")||document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector(".layout-wrapper");e&&e.querySelector(":scope > .layout-menu")&&e.classList.add("layout-wrapper--sidebar"),e&&e.querySelector(":scope > .layout-menu-horizontal")&&e.classList.add("layout-wrapper--top-menu")});var yu=!1,bu=!1,fi=[],Eu=-1;function NS(e){FS(e)}function FS(e){fi.includes(e)||fi.push(e),kS()}function Tp(e){let n=fi.indexOf(e);n!==-1&&n>Eu&&fi.splice(n,1)}function kS(){!bu&&!yu&&(yu=!0,queueMicrotask(BS))}function BS(){yu=!1,bu=!0;for(let e=0;ee.effect(n,{scheduler:r=>{wu?NS(r):r()}}),Cp=e.raw}function dh(e){Xi=e}function jS(e){let n=()=>{};return[o=>{let a=Xi(o);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(l=>l())}),e._x_effects.add(a),n=()=>{a!==void 0&&(e._x_effects.delete(a),Wo(a))},a},()=>{n()}]}function xo(e,n,r={}){e.dispatchEvent(new CustomEvent(n,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function Wr(e,n){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(a=>Wr(a,n));return}let r=!1;if(n(e,()=>r=!0),r)return;let o=e.firstElementChild;for(;o;)Wr(o,n),o=o.nextElementSibling}function _r(e,...n){console.warn(`Alpine Warning: ${e}`,...n)}var hh=!1;function US(){hh&&_r("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),hh=!0,document.body||_r("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `