@luminix/support 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/support.cjs +1 -1
- package/dist/support.js +900 -897
- package/package.json +1 -1
- package/types/App/Application.d.ts +1 -0
- package/types/App/Interfaces.d.ts +1 -0
package/dist/support.cjs
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
`);return o===-1?"":s.stack.slice(o+1)})();try{if(!n.stack)n.stack=i;else if(i){const o=i.indexOf(`
|
|
7
7
|
`),a=o===-1?-1:i.indexOf(`
|
|
8
8
|
`,o+1),u=a===-1?"":i.slice(a+1);String(n.stack).endsWith(u)||(n.stack+=`
|
|
9
|
-
`+i)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=we(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&St.assertOptions(n,{silentJSONParsing:G.transitional(G.boolean),forcedJSONParsing:G.transitional(G.boolean),clarifyTimeoutError:G.transitional(G.boolean),legacyInterceptorReqResOrdering:G.transitional(G.boolean)},!1),s!=null&&(d.isFunction(s)?r.paramsSerializer={serialize:s}:St.assertOptions(s,{encode:G.function,serialize:G.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),St.assertOptions(r,{baseUrl:G.spelling("baseURL"),withXsrfToken:G.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&d.merge(i.common,i[r.method]);i&&d.forEach(["delete","get","head","post","put","patch","query","common"],_=>{delete i[_]}),r.headers=U.concat(o,i);const a=[];let u=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(r)===!1)return;u=u&&y.synchronous;const p=r.transitional||Lr;p&&p.legacyInterceptorReqResOrdering?a.unshift(y.fulfilled,y.rejected):a.push(y.fulfilled,y.rejected)});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let c,w=0,g;if(!u){const _=[An.bind(this),void 0];for(_.unshift(...a),_.push(...f),g=_.length,c=Promise.resolve(r);w<g;)c=c.then(_[w++],_[w++]);return c}g=a.length;let b=r;for(;w<g;){const _=a[w++],y=a[w++];try{b=_(b)}catch(p){y.call(this,p);break}}try{c=An.call(this,b)}catch(_){return Promise.reject(_)}for(w=0,g=f.length;w<g;)c=c.then(f[w++],f[w++]);return c}getUri(t){t=we(this.defaults,t);const r=Ls(t.baseURL,t.url,t.allowAbsoluteUrls);return Ns(r,t.params,t.paramsSerializer)}};d.forEach(["delete","get","head","options"],function(t){ye.prototype[t]=function(r,n){return this.request(we(n||{},{method:t,url:r,data:(n||{}).data}))}});d.forEach(["post","put","patch","query"],function(t){function r(n){return function(i,o,a){return this.request(we(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ye.prototype[t]=r(),t!=="query"&&(ye.prototype[t+"Form"]=r(!0))});let Za=class Bs{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{n.subscribe(a),i=a}).then(s);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,a){n.reason||(n.reason=new at(i,o,a),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Bs(function(s){t=s}),cancel:t}}};function Qa(e){return function(r){return e.apply(null,r)}}function Ya(e){return d.isObject(e)&&e.isAxiosError===!0}const wr={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(wr).forEach(([e,t])=>{wr[t]=e});function zs(e){const t=new ye(e),r=Es(ye.prototype.request,t);return d.extend(r,ye.prototype,t,{allOwnKeys:!0}),d.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return zs(we(e,s))},r}const F=zs(ot);F.Axios=ye;F.CanceledError=at;F.CancelToken=Za;F.isCancel=Fs;F.VERSION=Mr;F.toFormData=Mt;F.AxiosError=A;F.Cancel=F.CanceledError;F.all=function(t){return Promise.all(t)};F.spread=Qa;F.isAxiosError=Ya;F.mergeConfig=we;F.AxiosHeaders=U;F.formToJSON=e=>Ds(d.isHTMLForm(e)?new FormData(e):e);F.getAdapter=Us.getAdapter;F.HttpStatusCode=wr;F.default=F;const{Axios:ey,AxiosError:ty,CanceledError:ry,isCancel:ny,CancelToken:sy,VERSION:iy,all:oy,Cancel:ay,isAxiosError:ka,spread:uy,toFormData:Rn,AxiosHeaders:fy,HttpStatusCode:cy,formToJSON:ly,getAdapter:hy,mergeConfig:dy,create:py}=F;var Bt=Symbol.for("immer-nothing"),De=Symbol.for("immer-draftable"),P=Symbol.for("immer-state"),Hs=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function I(e,...t){if(process.env.NODE_ENV!=="production"){const r=Hs[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var be=Object.getPrototypeOf;function oe(e){return!!e&&!!e[P]}function K(e){var t;return e?qs(e)||Array.isArray(e)||!!e[De]||!!((t=e.constructor)!=null&&t[De])||ut(e)||ft(e):!1}var eu=Object.prototype.constructor.toString();function qs(e){if(!e||typeof e!="object")return!1;const t=be(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===eu}function tu(e){return oe(e)||I(15,e),e[P].base_}function Ie(e,t){_e(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function _e(e){const t=e[P];return t?t.type_:Array.isArray(e)?1:ut(e)?2:ft(e)?3:0}function Ze(e,t){return _e(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ar(e,t){return _e(e)===2?e.get(t):e[t]}function Ws(e,t,r){const n=_e(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ru(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ut(e){return e instanceof Map}function ft(e){return e instanceof Set}function L(e){return e.copy_||e.base_}function br(e,t){if(ut(e))return new Map(e);if(ft(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=qs(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[P];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){const o=s[i],a=n[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(be(e),n)}else{const n=be(e);if(n!==null&&r)return{...e};const s=Object.create(n);return Object.assign(s,e)}}function zt(e,t=!1){return Ht(e)||oe(e)||!K(e)||(_e(e)>1&&(e.set=e.add=e.clear=e.delete=nu),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>zt(n,!0))),e}function nu(){I(2)}function Ht(e){return Object.isFrozen(e)}var _r={};function Ee(e){const t=_r[e];return t||I(0,e),t}function Js(e,t){_r[e]||(_r[e]=t)}var Qe;function At(){return Qe}function su(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function On(e,t){t&&(Ee("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Er(e){Sr(e),e.drafts_.forEach(iu),e.drafts_=null}function Sr(e){e===Qe&&(Qe=e.parent_)}function Pn(e){return Qe=su(Qe,e)}function iu(e){const t=e[P];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function vn(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[P].modified_&&(Er(t),I(4)),K(e)&&(e=xt(t,e),t.parent_||Rt(t,e)),t.patches_&&Ee("Patches").generateReplacementPatches_(r[P].base_,e,t.patches_,t.inversePatches_)):e=xt(t,r,[]),Er(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Bt?e:void 0}function xt(e,t,r){if(Ht(t))return t;const n=t[P];if(!n)return Ie(t,(s,i)=>$n(e,n,t,s,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Rt(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const s=n.copy_;let i=s,o=!1;n.type_===3&&(i=new Set(s),s.clear(),o=!0),Ie(i,(a,u)=>$n(e,n,s,a,u,r,o)),Rt(e,s,!1),r&&e.patches_&&Ee("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function $n(e,t,r,n,s,i,o){if(process.env.NODE_ENV!=="production"&&s===r&&I(5),oe(s)){const a=i&&t&&t.type_!==3&&!Ze(t.assigned_,n)?i.concat(n):void 0,u=xt(e,s,a);if(Ws(r,n,u),oe(u))e.canAutoFreeze_=!1;else return}else o&&r.add(s);if(K(s)&&!Ht(s)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;xt(e,s),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&Rt(e,s)}}function Rt(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zt(t,r)}function ou(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:At(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=n,i=Br;r&&(s=[n],i=Ye);const{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,a}var Br={get(e,t){if(t===P)return e;const r=L(e);if(!Ze(r,t))return au(e,r,t);const n=r[t];return e.finalized_||!K(n)?n:n===ur(e.base_,t)?(fr(e),e.copy_[t]=ke(n,e)):n},has(e,t){return t in L(e)},ownKeys(e){return Reflect.ownKeys(L(e))},set(e,t,r){const n=Gs(L(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const s=ur(L(e),t),i=s==null?void 0:s[P];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(ru(r,s)&&(r!==void 0||Ze(e.base_,t)))return!0;fr(e),ie(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ur(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,fr(e),ie(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=L(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){I(11)},getPrototypeOf(e){return be(e.base_)},setPrototypeOf(){I(12)}},Ye={};Ie(Br,(e,t)=>{Ye[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ye.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&I(13),Ye.set.call(this,e,t,void 0)};Ye.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&I(14),Br.set.call(this,e[0],t,r,e[0])};function ur(e,t){const r=e[P];return(r?L(r):e)[t]}function au(e,t,r){var s;const n=Gs(t,r);return n?"value"in n?n.value:(s=n.get)==null?void 0:s.call(e.draft_):void 0}function Gs(e,t){if(!(t in e))return;let r=be(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=be(r)}}function ie(e){e.modified_||(e.modified_=!0,e.parent_&&ie(e.parent_))}function fr(e){e.copy_||(e.copy_=br(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Vs=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const o=this;return function(u=i,...f){return o.produce(u,c=>r.call(this,c,...f))}}typeof r!="function"&&I(6),n!==void 0&&typeof n!="function"&&I(7);let s;if(K(t)){const i=Pn(this),o=ke(t,void 0);let a=!0;try{s=r(o),a=!1}finally{a?Er(i):Sr(i)}return On(i,n),vn(s,i)}else if(!t||typeof t!="object"){if(s=r(t),s===void 0&&(s=t),s===Bt&&(s=void 0),this.autoFreeze_&&zt(s,!0),n){const i=[],o=[];Ee("Patches").generateReplacementPatches_(t,s,i,o),n(i,o)}return s}else I(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...a)=>this.produceWithPatches(o,u=>t(u,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){K(e)||I(8),oe(e)&&(e=Ks(e));const t=Pn(this),r=ke(e,void 0);return r[P].isManual_=!0,Sr(t),r}finishDraft(e,t){const r=e&&e[P];(!r||!r.isManual_)&&I(9);const{scope_:n}=r;return On(n,t),vn(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));const n=Ee("Patches").applyPatches_;return oe(e)?n(e,t):this.produce(e,s=>n(s,t))}};function ke(e,t){const r=ut(e)?Ee("MapSet").proxyMap_(e,t):ft(e)?Ee("MapSet").proxySet_(e,t):ou(e,t);return(t?t.scope_:At()).drafts_.push(r),r}function Ks(e){return oe(e)||I(10,e),Xs(e)}function Xs(e){if(!K(e)||Ht(e))return e;const t=e[P];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=br(e,t.scope_.immer_.useStrictShallowCopy_)}else r=br(e,!0);return Ie(r,(n,s)=>{Ws(r,n,Xs(s))}),t&&(t.finalized_=!1),r}function uu(){process.env.NODE_ENV!=="production"&&Hs.push('Sets cannot have "replace" patches.',function(g){return"Unsupported patch operation: "+g},function(g){return"Cannot apply patch, path doesn't resolve: "+g},"Patching reserved attributes like __proto__, prototype and constructor is not allowed");const t="replace",r="add",n="remove";function s(g,b,_,y){switch(g.type_){case 0:case 2:return o(g,b,_,y);case 1:return i(g,b,_,y);case 3:return a(g,b,_,y)}}function i(g,b,_,y){let{base_:p,assigned_:m}=g,x=g.copy_;x.length<p.length&&([p,x]=[x,p],[_,y]=[y,_]);for(let S=0;S<p.length;S++)if(m[S]&&x[S]!==p[S]){const T=b.concat([S]);_.push({op:t,path:T,value:w(x[S])}),y.push({op:t,path:T,value:w(p[S])})}for(let S=p.length;S<x.length;S++){const T=b.concat([S]);_.push({op:r,path:T,value:w(x[S])})}for(let S=x.length-1;p.length<=S;--S){const T=b.concat([S]);y.push({op:n,path:T})}}function o(g,b,_,y){const{base_:p,copy_:m}=g;Ie(g.assigned_,(x,S)=>{const T=ar(p,x),$=ar(m,x),R=S?Ze(p,x)?t:r:n;if(T===$&&R===t)return;const v=b.concat(x);_.push(R===n?{op:R,path:v}:{op:R,path:v,value:$}),y.push(R===r?{op:n,path:v}:R===n?{op:r,path:v,value:w(T)}:{op:t,path:v,value:w(T)})})}function a(g,b,_,y){let{base_:p,copy_:m}=g,x=0;p.forEach(S=>{if(!m.has(S)){const T=b.concat([x]);_.push({op:n,path:T,value:S}),y.unshift({op:r,path:T,value:S})}x++}),x=0,m.forEach(S=>{if(!p.has(S)){const T=b.concat([x]);_.push({op:r,path:T,value:S}),y.unshift({op:n,path:T,value:S})}x++})}function u(g,b,_,y){_.push({op:t,path:[],value:b===Bt?void 0:b}),y.push({op:t,path:[],value:g})}function f(g,b){return b.forEach(_=>{const{path:y,op:p}=_;let m=g;for(let $=0;$<y.length-1;$++){const R=_e(m);let v=y[$];typeof v!="string"&&typeof v!="number"&&(v=""+v),(R===0||R===1)&&(v==="__proto__"||v==="constructor")&&I(19),typeof m=="function"&&v==="prototype"&&I(19),m=ar(m,v),typeof m!="object"&&I(18,y.join("/"))}const x=_e(m),S=c(_.value),T=y[y.length-1];switch(p){case t:switch(x){case 2:return m.set(T,S);case 3:I(16);default:return m[T]=S}case r:switch(x){case 1:return T==="-"?m.push(S):m.splice(T,0,S);case 2:return m.set(T,S);case 3:return m.add(S);default:return m[T]=S}case n:switch(x){case 1:return m.splice(T,1);case 2:return m.delete(T);case 3:return m.delete(_.value);default:return delete m[T]}default:I(17,p)}}),g}function c(g){if(!K(g))return g;if(Array.isArray(g))return g.map(c);if(ut(g))return new Map(Array.from(g.entries()).map(([_,y])=>[_,c(y)]));if(ft(g))return new Set(Array.from(g).map(c));const b=Object.create(be(g));for(const _ in g)b[_]=c(g[_]);return Ze(g,De)&&(b[De]=g[De]),b}function w(g){return oe(g)?c(g):g}Js("Patches",{applyPatches_:f,generatePatches_:s,generateReplacementPatches_:u})}function fu(){class e extends Map{constructor(u,f){super(),this[P]={type_:2,parent_:f,scope_:f?f.scope_:At(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:u,draft_:this,isManual_:!1,revoked_:!1}}get size(){return L(this[P]).size}has(u){return L(this[P]).has(u)}set(u,f){const c=this[P];return o(c),(!L(c).has(u)||L(c).get(u)!==f)&&(r(c),ie(c),c.assigned_.set(u,!0),c.copy_.set(u,f),c.assigned_.set(u,!0)),this}delete(u){if(!this.has(u))return!1;const f=this[P];return o(f),r(f),ie(f),f.base_.has(u)?f.assigned_.set(u,!1):f.assigned_.delete(u),f.copy_.delete(u),!0}clear(){const u=this[P];o(u),L(u).size&&(r(u),ie(u),u.assigned_=new Map,Ie(u.base_,f=>{u.assigned_.set(f,!1)}),u.copy_.clear())}forEach(u,f){const c=this[P];L(c).forEach((w,g,b)=>{u.call(f,this.get(g),g,this)})}get(u){const f=this[P];o(f);const c=L(f).get(u);if(f.finalized_||!K(c)||c!==f.base_.get(u))return c;const w=ke(c,f);return r(f),f.copy_.set(u,w),w}keys(){return L(this[P]).keys()}values(){const u=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const f=u.next();return f.done?f:{done:!1,value:this.get(f.value)}}}}entries(){const u=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const f=u.next();if(f.done)return f;const c=this.get(f.value);return{done:!1,value:[f.value,c]}}}}[Symbol.iterator](){return this.entries()}}function t(a,u){return new e(a,u)}function r(a){a.copy_||(a.assigned_=new Map,a.copy_=new Map(a.base_))}class n extends Set{constructor(u,f){super(),this[P]={type_:3,parent_:f,scope_:f?f.scope_:At(),modified_:!1,finalized_:!1,copy_:void 0,base_:u,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return L(this[P]).size}has(u){const f=this[P];return o(f),f.copy_?!!(f.copy_.has(u)||f.drafts_.has(u)&&f.copy_.has(f.drafts_.get(u))):f.base_.has(u)}add(u){const f=this[P];return o(f),this.has(u)||(i(f),ie(f),f.copy_.add(u)),this}delete(u){if(!this.has(u))return!1;const f=this[P];return o(f),i(f),ie(f),f.copy_.delete(u)||(f.drafts_.has(u)?f.copy_.delete(f.drafts_.get(u)):!1)}clear(){const u=this[P];o(u),L(u).size&&(i(u),ie(u),u.copy_.clear())}values(){const u=this[P];return o(u),i(u),u.copy_.values()}entries(){const u=this[P];return o(u),i(u),u.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(u,f){const c=this.values();let w=c.next();for(;!w.done;)u.call(f,w.value,w.value,this),w=c.next()}}function s(a,u){return new n(a,u)}function i(a){a.copy_||(a.copy_=new Set,a.base_.forEach(u=>{if(K(u)){const f=ke(u,a);a.drafts_.set(u,f),a.copy_.add(f)}else a.copy_.add(u)}))}function o(a){a.revoked_&&I(3,JSON.stringify(L(a)))}Js("MapSet",{proxyMap_:t,proxySet_:s})}var W=new Vs,Ce=W.produce,cu=W.produceWithPatches.bind(W),lu=W.setAutoFreeze.bind(W),hu=W.setUseStrictShallowCopy.bind(W),du=W.applyPatches.bind(W),pu=W.createDraft.bind(W),gu=W.finishDraft.bind(W);function yu(e){return e}function mu(e){return e}const wu=Object.freeze(Object.defineProperty({__proto__:null,Immer:Vs,applyPatches:du,castDraft:yu,castImmutable:mu,createDraft:pu,current:Ks,enableMapSet:fu,enablePatches:uu,finishDraft:gu,freeze:zt,immerable:De,isDraft:oe,isDraftable:K,nothing:Bt,original:tu,produce:Ce,produceWithPatches:cu,setAutoFreeze:lu,setUseStrictShallowCopy:hu},Symbol.toStringTag,{value:"Module"}));let bu=()=>({emit(e,...t){for(let r=0,n=this.events[e]||[],s=n.length;r<s;r++)n[r](...t)},events:{},on(e,t){var r;return((r=this.events)[e]||(r[e]=[])).push(t),()=>{var n;this.events[e]=(n=this.events[e])==null?void 0:n.filter(s=>t!==s)}}});class qt{constructor(){B(this,"emitter");this.emitter=bu()}on(t,r){return this.emitter.on(t,r)}once(t,r){const n=this.emitter.on(t,s=>{n(),r(s)})}emit(t,...r){this.emitter.emit(t,...r)}flushEvents(){this.emitter.events={}}}var ps,gs;class _u extends(gs=Error,ps=Symbol.toStringTag,gs){constructor(){super("[Luminix] Embed element not found. Make sure to include the `@luminixEmbed()` directive in your Blade template.");B(this,ps,"NoEmbedException")}}const Zs=(e,t="data")=>{if(!document.querySelector("#luminix-embed"))throw new _u;const r=document.getElementById(`luminix-${t}::`+e);return r?r.dataset.json&&r.dataset.value?JSON.parse(r.dataset.value):r.dataset.value:null};var Qs=typeof global=="object"&&global&&global.Object===Object&&global,Eu=typeof self=="object"&&self&&self.Object===Object&&self,Q=Qs||Eu||Function("return this")(),X=Q.Symbol,Ys=Object.prototype,Su=Ys.hasOwnProperty,Tu=Ys.toString,Ge=X?X.toStringTag:void 0;function Au(e){var t=Su.call(e,Ge),r=e[Ge];try{e[Ge]=void 0;var n=!0}catch{}var s=Tu.call(e);return n&&(t?e[Ge]=r:delete e[Ge]),s}var xu=Object.prototype,Ru=xu.toString;function Ou(e){return Ru.call(e)}var Pu="[object Null]",vu="[object Undefined]",Cn=X?X.toStringTag:void 0;function Te(e){return e==null?e===void 0?vu:Pu:Cn&&Cn in Object(e)?Au(e):Ou(e)}function te(e){return e!=null&&typeof e=="object"}var $u="[object Symbol]";function Wt(e){return typeof e=="symbol"||te(e)&&Te(e)==$u}function zr(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}var H=Array.isArray,Nn=X?X.prototype:void 0,Dn=Nn?Nn.toString:void 0;function Jt(e){if(typeof e=="string")return e;if(H(e))return zr(e,Jt)+"";if(Wt(e))return Dn?Dn.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Cu=/\s/;function Nu(e){for(var t=e.length;t--&&Cu.test(e.charAt(t)););return t}var Du=/^\s+/;function ks(e){return e&&e.slice(0,Nu(e)+1).replace(Du,"")}function q(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fn=NaN,Fu=/^[-+]0x[0-9a-f]+$/i,Iu=/^0b[01]+$/i,Lu=/^0o[0-7]+$/i,ju=parseInt;function Tr(e){if(typeof e=="number")return e;if(Wt(e))return Fn;if(q(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=q(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ks(e);var r=Iu.test(e);return r||Lu.test(e)?ju(e.slice(2),r?2:8):Fu.test(e)?Fn:+e}var In=1/0,Mu=17976931348623157e292;function Uu(e){if(!e)return e===0?e:0;if(e=Tr(e),e===In||e===-In){var t=e<0?-1:1;return t*Mu}return e===e?e:0}function Hr(e){var t=Uu(e),r=t%1;return t===t?r?t-r:t:0}function ei(e){return e}var Bu="[object AsyncFunction]",zu="[object Function]",Hu="[object GeneratorFunction]",qu="[object Proxy]";function qr(e){if(!q(e))return!1;var t=Te(e);return t==zu||t==Hu||t==Bu||t==qu}var cr=Q["__core-js_shared__"],Ln=function(){var e=/[^.]+$/.exec(cr&&cr.keys&&cr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Wu(e){return!!Ln&&Ln in e}var Ju=Function.prototype,Gu=Ju.toString;function Ae(e){if(e!=null){try{return Gu.call(e)}catch{}try{return e+""}catch{}}return""}var Vu=/[\\^$.*+?()[\]{}|]/g,Ku=/^\[object .+?Constructor\]$/,Xu=Function.prototype,Zu=Object.prototype,Qu=Xu.toString,Yu=Zu.hasOwnProperty,ku=RegExp("^"+Qu.call(Yu).replace(Vu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ef(e){if(!q(e)||Wu(e))return!1;var t=qr(e)?ku:Ku;return t.test(Ae(e))}function tf(e,t){return e==null?void 0:e[t]}function xe(e,t){var r=tf(e,t);return ef(r)?r:void 0}var Ar=xe(Q,"WeakMap"),jn=Object.create,rf=function(){function e(){}return function(t){if(!q(t))return{};if(jn)return jn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function nf(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wr(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var sf=800,of=16,af=Date.now;function uf(e){var t=0,r=0;return function(){var n=af(),s=of-(n-r);if(r=n,s>0){if(++t>=sf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ff(e){return function(){return e}}var Ot=function(){try{var e=xe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),cf=Ot?function(e,t){return Ot(e,"toString",{configurable:!0,enumerable:!1,value:ff(t),writable:!0})}:ei,ti=uf(cf);function lf(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function hf(e,t,r,n){for(var s=e.length,i=r+-1;++i<s;)if(t(e[i],i,e))return i;return-1}function df(e){return e!==e}function pf(e,t,r){for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}function ri(e,t,r){return t===t?pf(e,t,r):hf(e,df,r)}var gf=9007199254740991,yf=/^(?:0|[1-9]\d*)$/;function Gt(e,t){var r=typeof e;return t=t??gf,!!t&&(r=="number"||r!="symbol"&&yf.test(e))&&e>-1&&e%1==0&&e<t}function Jr(e,t,r){t=="__proto__"&&Ot?Ot(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ct(e,t){return e===t||e!==e&&t!==t}var mf=Object.prototype,wf=mf.hasOwnProperty;function Gr(e,t,r){var n=e[t];(!(wf.call(e,t)&&ct(n,r))||r===void 0&&!(t in e))&&Jr(e,t,r)}function Be(e,t,r,n){var s=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var a=t[i],u=void 0;u===void 0&&(u=e[a]),s?Jr(r,a,u):Gr(r,a,u)}return r}var Mn=Math.max;function ni(e,t,r){return t=Mn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,s=-1,i=Mn(n.length-t,0),o=Array(i);++s<i;)o[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=r(o),nf(e,this,a)}}function bf(e,t){return ti(ni(e,t,ei),e+"")}var _f=9007199254740991;function Vr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_f}function lt(e){return e!=null&&Vr(e.length)&&!qr(e)}function Ef(e,t,r){if(!q(r))return!1;var n=typeof t;return(n=="number"?lt(r)&&Gt(t,r.length):n=="string"&&t in r)?ct(r[t],e):!1}function Sf(e){return bf(function(t,r){var n=-1,s=r.length,i=s>1?r[s-1]:void 0,o=s>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(s--,i):void 0,o&&Ef(r[0],r[1],o)&&(i=s<3?void 0:i,s=1),t=Object(t);++n<s;){var a=r[n];a&&e(t,a,n,i)}return t})}var Tf=Object.prototype;function Vt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Tf;return e===r}function Af(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var xf="[object Arguments]";function Un(e){return te(e)&&Te(e)==xf}var si=Object.prototype,Rf=si.hasOwnProperty,Of=si.propertyIsEnumerable,Le=Un(function(){return arguments}())?Un:function(e){return te(e)&&Rf.call(e,"callee")&&!Of.call(e,"callee")};function Pf(){return!1}var ii=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bn=ii&&typeof module=="object"&&module&&!module.nodeType&&module,vf=Bn&&Bn.exports===ii,zn=vf?Q.Buffer:void 0,$f=zn?zn.isBuffer:void 0,je=$f||Pf,Cf="[object Arguments]",Nf="[object Array]",Df="[object Boolean]",Ff="[object Date]",If="[object Error]",Lf="[object Function]",jf="[object Map]",Mf="[object Number]",Uf="[object Object]",Bf="[object RegExp]",zf="[object Set]",Hf="[object String]",qf="[object WeakMap]",Wf="[object ArrayBuffer]",Jf="[object DataView]",Gf="[object Float32Array]",Vf="[object Float64Array]",Kf="[object Int8Array]",Xf="[object Int16Array]",Zf="[object Int32Array]",Qf="[object Uint8Array]",Yf="[object Uint8ClampedArray]",kf="[object Uint16Array]",ec="[object Uint32Array]",D={};D[Gf]=D[Vf]=D[Kf]=D[Xf]=D[Zf]=D[Qf]=D[Yf]=D[kf]=D[ec]=!0;D[Cf]=D[Nf]=D[Wf]=D[Df]=D[Jf]=D[Ff]=D[If]=D[Lf]=D[jf]=D[Mf]=D[Uf]=D[Bf]=D[zf]=D[Hf]=D[qf]=!1;function tc(e){return te(e)&&Vr(e.length)&&!!D[Te(e)]}function Kr(e){return function(t){return e(t)}}var oi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ke=oi&&typeof module=="object"&&module&&!module.nodeType&&module,rc=Ke&&Ke.exports===oi,lr=rc&&Qs.process,Me=function(){try{var e=Ke&&Ke.require&&Ke.require("util").types;return e||lr&&lr.binding&&lr.binding("util")}catch{}}(),Hn=Me&&Me.isTypedArray,Kt=Hn?Kr(Hn):tc,nc=Object.prototype,sc=nc.hasOwnProperty;function ai(e,t){var r=H(e),n=!r&&Le(e),s=!r&&!n&&je(e),i=!r&&!n&&!s&&Kt(e),o=r||n||s||i,a=o?Af(e.length,String):[],u=a.length;for(var f in e)(t||sc.call(e,f))&&!(o&&(f=="length"||s&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Gt(f,u)))&&a.push(f);return a}function ui(e,t){return function(r){return e(t(r))}}var ic=ui(Object.keys,Object),oc=Object.prototype,ac=oc.hasOwnProperty;function fi(e){if(!Vt(e))return ic(e);var t=[];for(var r in Object(e))ac.call(e,r)&&r!="constructor"&&t.push(r);return t}function Xt(e){return lt(e)?ai(e):fi(e)}function uc(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var fc=Object.prototype,cc=fc.hasOwnProperty;function lc(e){if(!q(e))return uc(e);var t=Vt(e),r=[];for(var n in e)n=="constructor"&&(t||!cc.call(e,n))||r.push(n);return r}function ht(e){return lt(e)?ai(e,!0):lc(e)}var hc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dc=/^\w*$/;function pc(e,t){if(H(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Wt(e)?!0:dc.test(e)||!hc.test(e)||t!=null&&e in Object(t)}var et=xe(Object,"create");function gc(){this.__data__=et?et(null):{},this.size=0}function yc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mc="__lodash_hash_undefined__",wc=Object.prototype,bc=wc.hasOwnProperty;function _c(e){var t=this.__data__;if(et){var r=t[e];return r===mc?void 0:r}return bc.call(t,e)?t[e]:void 0}var Ec=Object.prototype,Sc=Ec.hasOwnProperty;function Tc(e){var t=this.__data__;return et?t[e]!==void 0:Sc.call(t,e)}var Ac="__lodash_hash_undefined__";function xc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=et&&t===void 0?Ac:t,this}function Se(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Se.prototype.clear=gc;Se.prototype.delete=yc;Se.prototype.get=_c;Se.prototype.has=Tc;Se.prototype.set=xc;function Rc(){this.__data__=[],this.size=0}function Zt(e,t){for(var r=e.length;r--;)if(ct(e[r][0],t))return r;return-1}var Oc=Array.prototype,Pc=Oc.splice;function vc(e){var t=this.__data__,r=Zt(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Pc.call(t,r,1),--this.size,!0}function $c(e){var t=this.__data__,r=Zt(t,e);return r<0?void 0:t[r][1]}function Cc(e){return Zt(this.__data__,e)>-1}function Nc(e,t){var r=this.__data__,n=Zt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ae(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ae.prototype.clear=Rc;ae.prototype.delete=vc;ae.prototype.get=$c;ae.prototype.has=Cc;ae.prototype.set=Nc;var tt=xe(Q,"Map");function Dc(){this.size=0,this.__data__={hash:new Se,map:new(tt||ae),string:new Se}}function Fc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qt(e,t){var r=e.__data__;return Fc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ic(e){var t=Qt(this,e).delete(e);return this.size-=t?1:0,t}function Lc(e){return Qt(this,e).get(e)}function jc(e){return Qt(this,e).has(e)}function Mc(e,t){var r=Qt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ue(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ue.prototype.clear=Dc;ue.prototype.delete=Ic;ue.prototype.get=Lc;ue.prototype.has=jc;ue.prototype.set=Mc;var Uc="Expected a function";function Xr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Uc);var r=function(){var n=arguments,s=t?t.apply(this,n):n[0],i=r.cache;if(i.has(s))return i.get(s);var o=e.apply(this,n);return r.cache=i.set(s,o)||i,o};return r.cache=new(Xr.Cache||ue),r}Xr.Cache=ue;var Bc=500;function zc(e){var t=Xr(e,function(n){return r.size===Bc&&r.clear(),n}),r=t.cache;return t}var Hc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qc=/\\(\\)?/g,Wc=zc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Hc,function(r,n,s,i){t.push(s?i.replace(qc,"$1"):n||r)}),t});function fe(e){return e==null?"":Jt(e)}function ze(e,t){return H(e)?e:pc(e,t)?[e]:Wc(fe(e))}function rt(e){if(typeof e=="string"||Wt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Zr(e,t){t=ze(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[rt(t[r++])];return r&&r==n?e:void 0}function Jc(e,t,r){var n=e==null?void 0:Zr(e,t);return n===void 0?r:n}function Qr(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}var qn=X?X.isConcatSpreadable:void 0;function Gc(e){return H(e)||Le(e)||!!(qn&&e&&e[qn])}function Vc(e,t,r,n,s){var i=-1,o=e.length;for(r||(r=Gc),s||(s=[]);++i<o;){var a=e[i];r(a)?Qr(s,a):s[s.length]=a}return s}function Kc(e){var t=e==null?0:e.length;return t?Vc(e):[]}function ci(e){return ti(ni(e,void 0,Kc),e+"")}var Yr=ui(Object.getPrototypeOf,Object),Xc="[object Object]",Zc=Function.prototype,Qc=Object.prototype,li=Zc.toString,Yc=Qc.hasOwnProperty,kc=li.call(Object);function hi(e){if(!te(e)||Te(e)!=Xc)return!1;var t=Yr(e);if(t===null)return!0;var r=Yc.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&li.call(r)==kc}function di(e,t,r){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),r=r>s?s:r,r<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(s);++n<s;)i[n]=e[n+t];return i}function kr(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:di(e,t,r)}var el="\\ud800-\\udfff",tl="\\u0300-\\u036f",rl="\\ufe20-\\ufe2f",nl="\\u20d0-\\u20ff",sl=tl+rl+nl,il="\\ufe0e\\ufe0f",ol="\\u200d",al=RegExp("["+ol+el+sl+il+"]");function Yt(e){return al.test(e)}function ul(e){return e.split("")}var pi="\\ud800-\\udfff",fl="\\u0300-\\u036f",cl="\\ufe20-\\ufe2f",ll="\\u20d0-\\u20ff",hl=fl+cl+ll,dl="\\ufe0e\\ufe0f",pl="["+pi+"]",xr="["+hl+"]",Rr="\\ud83c[\\udffb-\\udfff]",gl="(?:"+xr+"|"+Rr+")",gi="[^"+pi+"]",yi="(?:\\ud83c[\\udde6-\\uddff]){2}",mi="[\\ud800-\\udbff][\\udc00-\\udfff]",yl="\\u200d",wi=gl+"?",bi="["+dl+"]?",ml="(?:"+yl+"(?:"+[gi,yi,mi].join("|")+")"+bi+wi+")*",wl=bi+wi+ml,bl="(?:"+[gi+xr+"?",xr,yi,mi,pl].join("|")+")",_l=RegExp(Rr+"(?="+Rr+")|"+bl+wl,"g");function El(e){return e.match(_l)||[]}function Pt(e){return Yt(e)?El(e):ul(e)}function _i(e){return function(t){t=fe(t);var r=Yt(t)?Pt(t):void 0,n=r?r[0]:t.charAt(0),s=r?kr(r,1).join(""):t.slice(1);return n[e]()+s}}var vt=_i("toUpperCase");function Ei(e){return vt(fe(e).toLowerCase())}function Sl(e,t,r,n){for(var s=-1,i=e==null?0:e.length;++s<i;)r=t(r,e[s],s,e);return r}function Tl(e){return function(t){return e==null?void 0:e[t]}}var Al={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},xl=Tl(Al),Rl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ol="\\u0300-\\u036f",Pl="\\ufe20-\\ufe2f",vl="\\u20d0-\\u20ff",$l=Ol+Pl+vl,Cl="["+$l+"]",Nl=RegExp(Cl,"g");function Dl(e){return e=fe(e),e&&e.replace(Rl,xl).replace(Nl,"")}var Fl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Il(e){return e.match(Fl)||[]}var Ll=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function jl(e){return Ll.test(e)}var Si="\\ud800-\\udfff",Ml="\\u0300-\\u036f",Ul="\\ufe20-\\ufe2f",Bl="\\u20d0-\\u20ff",zl=Ml+Ul+Bl,Ti="\\u2700-\\u27bf",Ai="a-z\\xdf-\\xf6\\xf8-\\xff",Hl="\\xac\\xb1\\xd7\\xf7",ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wl="\\u2000-\\u206f",Jl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xi="A-Z\\xc0-\\xd6\\xd8-\\xde",Gl="\\ufe0e\\ufe0f",Ri=Hl+ql+Wl+Jl,Oi="['’]",Wn="["+Ri+"]",Vl="["+zl+"]",Pi="\\d+",Kl="["+Ti+"]",vi="["+Ai+"]",$i="[^"+Si+Ri+Pi+Ti+Ai+xi+"]",Xl="\\ud83c[\\udffb-\\udfff]",Zl="(?:"+Vl+"|"+Xl+")",Ql="[^"+Si+"]",Ci="(?:\\ud83c[\\udde6-\\uddff]){2}",Ni="[\\ud800-\\udbff][\\udc00-\\udfff]",ve="["+xi+"]",Yl="\\u200d",Jn="(?:"+vi+"|"+$i+")",kl="(?:"+ve+"|"+$i+")",Gn="(?:"+Oi+"(?:d|ll|m|re|s|t|ve))?",Vn="(?:"+Oi+"(?:D|LL|M|RE|S|T|VE))?",Di=Zl+"?",Fi="["+Gl+"]?",eh="(?:"+Yl+"(?:"+[Ql,Ci,Ni].join("|")+")"+Fi+Di+")*",th="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nh=Fi+Di+eh,sh="(?:"+[Kl,Ci,Ni].join("|")+")"+nh,ih=RegExp([ve+"?"+vi+"+"+Gn+"(?="+[Wn,ve,"$"].join("|")+")",kl+"+"+Vn+"(?="+[Wn,ve+Jn,"$"].join("|")+")",ve+"?"+Jn+"+"+Gn,ve+"+"+Vn,rh,th,Pi,sh].join("|"),"g");function oh(e){return e.match(ih)||[]}function ah(e,t,r){return e=fe(e),t=t,t===void 0?jl(e)?oh(e):Il(e):e.match(t)||[]}var uh="['’]",fh=RegExp(uh,"g");function kt(e){return function(t){return Sl(ah(Dl(t).replace(fh,"")),e,"")}}var ch=kt(function(e,t,r){return t=t.toLowerCase(),e+(r?Ei(t):t)});function lh(){this.__data__=new ae,this.size=0}function hh(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function dh(e){return this.__data__.get(e)}function ph(e){return this.__data__.has(e)}var gh=200;function yh(e,t){var r=this.__data__;if(r instanceof ae){var n=r.__data__;if(!tt||n.length<gh-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ue(n)}return r.set(e,t),this.size=r.size,this}function ee(e){var t=this.__data__=new ae(e);this.size=t.size}ee.prototype.clear=lh;ee.prototype.delete=hh;ee.prototype.get=dh;ee.prototype.has=ph;ee.prototype.set=yh;function mh(e,t){return e&&Be(t,Xt(t),e)}function wh(e,t){return e&&Be(t,ht(t),e)}var Ii=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Kn=Ii&&typeof module=="object"&&module&&!module.nodeType&&module,bh=Kn&&Kn.exports===Ii,Xn=bh?Q.Buffer:void 0,Zn=Xn?Xn.allocUnsafe:void 0;function Li(e,t){if(t)return e.slice();var r=e.length,n=Zn?Zn(r):new e.constructor(r);return e.copy(n),n}function _h(e,t){for(var r=-1,n=e==null?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}function ji(){return[]}var Eh=Object.prototype,Sh=Eh.propertyIsEnumerable,Qn=Object.getOwnPropertySymbols,en=Qn?function(e){return e==null?[]:(e=Object(e),_h(Qn(e),function(t){return Sh.call(e,t)}))}:ji;function Th(e,t){return Be(e,en(e),t)}var Ah=Object.getOwnPropertySymbols,Mi=Ah?function(e){for(var t=[];e;)Qr(t,en(e)),e=Yr(e);return t}:ji;function xh(e,t){return Be(e,Mi(e),t)}function Ui(e,t,r){var n=t(e);return H(e)?n:Qr(n,r(e))}function Or(e){return Ui(e,Xt,en)}function Bi(e){return Ui(e,ht,Mi)}var Pr=xe(Q,"DataView"),vr=xe(Q,"Promise"),$r=xe(Q,"Set"),Yn="[object Map]",Rh="[object Object]",kn="[object Promise]",es="[object Set]",ts="[object WeakMap]",rs="[object DataView]",Oh=Ae(Pr),Ph=Ae(tt),vh=Ae(vr),$h=Ae($r),Ch=Ae(Ar),V=Te;(Pr&&V(new Pr(new ArrayBuffer(1)))!=rs||tt&&V(new tt)!=Yn||vr&&V(vr.resolve())!=kn||$r&&V(new $r)!=es||Ar&&V(new Ar)!=ts)&&(V=function(e){var t=Te(e),r=t==Rh?e.constructor:void 0,n=r?Ae(r):"";if(n)switch(n){case Oh:return rs;case Ph:return Yn;case vh:return kn;case $h:return es;case Ch:return ts}return t});var Nh=Object.prototype,Dh=Nh.hasOwnProperty;function Fh(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Dh.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var $t=Q.Uint8Array;function tn(e){var t=new e.constructor(e.byteLength);return new $t(t).set(new $t(e)),t}function Ih(e,t){var r=t?tn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Lh=/\w*$/;function jh(e){var t=new e.constructor(e.source,Lh.exec(e));return t.lastIndex=e.lastIndex,t}var ns=X?X.prototype:void 0,ss=ns?ns.valueOf:void 0;function Mh(e){return ss?Object(ss.call(e)):{}}function zi(e,t){var r=t?tn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Uh="[object Boolean]",Bh="[object Date]",zh="[object Map]",Hh="[object Number]",qh="[object RegExp]",Wh="[object Set]",Jh="[object String]",Gh="[object Symbol]",Vh="[object ArrayBuffer]",Kh="[object DataView]",Xh="[object Float32Array]",Zh="[object Float64Array]",Qh="[object Int8Array]",Yh="[object Int16Array]",kh="[object Int32Array]",ed="[object Uint8Array]",td="[object Uint8ClampedArray]",rd="[object Uint16Array]",nd="[object Uint32Array]";function sd(e,t,r){var n=e.constructor;switch(t){case Vh:return tn(e);case Uh:case Bh:return new n(+e);case Kh:return Ih(e,r);case Xh:case Zh:case Qh:case Yh:case kh:case ed:case td:case rd:case nd:return zi(e,r);case zh:return new n;case Hh:case Jh:return new n(e);case qh:return jh(e);case Wh:return new n;case Gh:return Mh(e)}}function Hi(e){return typeof e.constructor=="function"&&!Vt(e)?rf(Yr(e)):{}}var id="[object Map]";function od(e){return te(e)&&V(e)==id}var is=Me&&Me.isMap,ad=is?Kr(is):od,ud="[object Set]";function fd(e){return te(e)&&V(e)==ud}var os=Me&&Me.isSet,cd=os?Kr(os):fd,ld=1,hd=2,dd=4,qi="[object Arguments]",pd="[object Array]",gd="[object Boolean]",yd="[object Date]",md="[object Error]",Wi="[object Function]",wd="[object GeneratorFunction]",bd="[object Map]",_d="[object Number]",Ji="[object Object]",Ed="[object RegExp]",Sd="[object Set]",Td="[object String]",Ad="[object Symbol]",xd="[object WeakMap]",Rd="[object ArrayBuffer]",Od="[object DataView]",Pd="[object Float32Array]",vd="[object Float64Array]",$d="[object Int8Array]",Cd="[object Int16Array]",Nd="[object Int32Array]",Dd="[object Uint8Array]",Fd="[object Uint8ClampedArray]",Id="[object Uint16Array]",Ld="[object Uint32Array]",N={};N[qi]=N[pd]=N[Rd]=N[Od]=N[gd]=N[yd]=N[Pd]=N[vd]=N[$d]=N[Cd]=N[Nd]=N[bd]=N[_d]=N[Ji]=N[Ed]=N[Sd]=N[Td]=N[Ad]=N[Dd]=N[Fd]=N[Id]=N[Ld]=!0;N[md]=N[Wi]=N[xd]=!1;function Xe(e,t,r,n,s,i){var o,a=t&ld,u=t&hd,f=tⅆif(r&&(o=s?r(e,n,s,i):r(e)),o!==void 0)return o;if(!q(e))return e;var c=H(e);if(c){if(o=Fh(e),!a)return Wr(e,o)}else{var w=V(e),g=w==Wi||w==wd;if(je(e))return Li(e,a);if(w==Ji||w==qi||g&&!s){if(o=u||g?{}:Hi(e),!a)return u?xh(e,wh(o,e)):Th(e,mh(o,e))}else{if(!N[w])return s?e:{};o=sd(e,w,a)}}i||(i=new ee);var b=i.get(e);if(b)return b;i.set(e,o),cd(e)?e.forEach(function(p){o.add(Xe(p,t,r,p,e,i))}):ad(e)&&e.forEach(function(p,m){o.set(m,Xe(p,t,r,m,e,i))});var _=f?u?Bi:Or:u?ht:Xt,y=c?void 0:_(e);return lf(y||e,function(p,m){y&&(m=p,p=e[m]),Gr(o,m,Xe(p,t,r,m,e,i))}),o}var jd=1,Md=4;function Ud(e){return Xe(e,jd|Md)}var Bd="__lodash_hash_undefined__";function zd(e){return this.__data__.set(e,Bd),this}function Hd(e){return this.__data__.has(e)}function Ct(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ue;++t<r;)this.add(e[t])}Ct.prototype.add=Ct.prototype.push=zd;Ct.prototype.has=Hd;function qd(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Wd(e,t){return e.has(t)}var Jd=1,Gd=2;function Gi(e,t,r,n,s,i){var o=r&Jd,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var f=i.get(e),c=i.get(t);if(f&&c)return f==t&&c==e;var w=-1,g=!0,b=r&Gd?new Ct:void 0;for(i.set(e,t),i.set(t,e);++w<a;){var _=e[w],y=t[w];if(n)var p=o?n(y,_,w,t,e,i):n(_,y,w,e,t,i);if(p!==void 0){if(p)continue;g=!1;break}if(b){if(!qd(t,function(m,x){if(!Wd(b,x)&&(_===m||s(_,m,r,n,i)))return b.push(x)})){g=!1;break}}else if(!(_===y||s(_,y,r,n,i))){g=!1;break}}return i.delete(e),i.delete(t),g}function Vd(e){var t=-1,r=Array(e.size);return e.forEach(function(n,s){r[++t]=[s,n]}),r}function Kd(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Xd=1,Zd=2,Qd="[object Boolean]",Yd="[object Date]",kd="[object Error]",ep="[object Map]",tp="[object Number]",rp="[object RegExp]",np="[object Set]",sp="[object String]",ip="[object Symbol]",op="[object ArrayBuffer]",ap="[object DataView]",as=X?X.prototype:void 0,hr=as?as.valueOf:void 0;function up(e,t,r,n,s,i,o){switch(r){case ap:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case op:return!(e.byteLength!=t.byteLength||!i(new $t(e),new $t(t)));case Qd:case Yd:case tp:return ct(+e,+t);case kd:return e.name==t.name&&e.message==t.message;case rp:case sp:return e==t+"";case ep:var a=Vd;case np:var u=n&Xd;if(a||(a=Kd),e.size!=t.size&&!u)return!1;var f=o.get(e);if(f)return f==t;n|=Zd,o.set(e,t);var c=Gi(a(e),a(t),n,s,i,o);return o.delete(e),c;case ip:if(hr)return hr.call(e)==hr.call(t)}return!1}var fp=1,cp=Object.prototype,lp=cp.hasOwnProperty;function hp(e,t,r,n,s,i){var o=r&fp,a=Or(e),u=a.length,f=Or(t),c=f.length;if(u!=c&&!o)return!1;for(var w=u;w--;){var g=a[w];if(!(o?g in t:lp.call(t,g)))return!1}var b=i.get(e),_=i.get(t);if(b&&_)return b==t&&_==e;var y=!0;i.set(e,t),i.set(t,e);for(var p=o;++w<u;){g=a[w];var m=e[g],x=t[g];if(n)var S=o?n(x,m,g,t,e,i):n(m,x,g,e,t,i);if(!(S===void 0?m===x||s(m,x,r,n,i):S)){y=!1;break}p||(p=g=="constructor")}if(y&&!p){var T=e.constructor,$=t.constructor;T!=$&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof $=="function"&&$ instanceof $)&&(y=!1)}return i.delete(e),i.delete(t),y}var dp=1,us="[object Arguments]",fs="[object Array]",mt="[object Object]",pp=Object.prototype,cs=pp.hasOwnProperty;function gp(e,t,r,n,s,i){var o=H(e),a=H(t),u=o?fs:V(e),f=a?fs:V(t);u=u==us?mt:u,f=f==us?mt:f;var c=u==mt,w=f==mt,g=u==f;if(g&&je(e)){if(!je(t))return!1;o=!0,c=!1}if(g&&!c)return i||(i=new ee),o||Kt(e)?Gi(e,t,r,n,s,i):up(e,t,u,r,n,s,i);if(!(r&dp)){var b=c&&cs.call(e,"__wrapped__"),_=w&&cs.call(t,"__wrapped__");if(b||_){var y=b?e.value():e,p=_?t.value():t;return i||(i=new ee),s(y,p,r,n,i)}}return g?(i||(i=new ee),hp(e,t,r,n,s,i)):!1}function Vi(e,t,r,n,s){return e===t?!0:e==null||t==null||!te(e)&&!te(t)?e!==e&&t!==t:gp(e,t,r,n,Vi,s)}function yp(e,t){return e!=null&&t in Object(e)}function Ki(e,t,r){t=ze(t,e);for(var n=-1,s=t.length,i=!1;++n<s;){var o=rt(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=s?i:(s=e==null?0:e.length,!!s&&Vr(s)&&Gt(o,s)&&(H(e)||Le(e)))}function mp(e,t){return e!=null&&Ki(e,t,yp)}function wp(e){return function(t){return t==null?void 0:t[e]}}function bp(e){return function(t,r,n){for(var s=-1,i=Object(t),o=n(t),a=o.length;a--;){var u=o[++s];if(r(i[u],u,i)===!1)break}return t}}var _p=bp(),dr=function(){return Q.Date.now()},Ep="Expected a function",Sp=Math.max,Tp=Math.min;function Xi(e,t,r){var n,s,i,o,a,u,f=0,c=!1,w=!1,g=!0;if(typeof e!="function")throw new TypeError(Ep);t=Tr(t)||0,q(r)&&(c=!!r.leading,w="maxWait"in r,i=w?Sp(Tr(r.maxWait)||0,t):i,g="trailing"in r?!!r.trailing:g);function b(R){var v=n,re=s;return n=s=void 0,f=R,o=e.apply(re,v),o}function _(R){return f=R,a=setTimeout(m,t),c?b(R):o}function y(R){var v=R-u,re=R-f,He=t-v;return w?Tp(He,i-re):He}function p(R){var v=R-u,re=R-f;return u===void 0||v>=t||v<0||w&&re>=i}function m(){var R=dr();if(p(R))return x(R);a=setTimeout(m,y(R))}function x(R){return a=void 0,g&&n?b(R):(n=s=void 0,o)}function S(){a!==void 0&&clearTimeout(a),f=0,n=u=s=a=void 0}function T(){return a===void 0?o:x(dr())}function $(){var R=dr(),v=p(R);if(n=arguments,s=this,u=R,v){if(a===void 0)return _(u);if(w)return clearTimeout(a),a=setTimeout(m,t),b(u)}return a===void 0&&(a=setTimeout(m,t)),o}return $.cancel=S,$.flush=T,$}function Cr(e,t,r){(r!==void 0&&!ct(e[t],r)||r===void 0&&!(t in e))&&Jr(e,t,r)}function Ap(e){return te(e)&<(e)}function Nr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function xp(e){return Be(e,ht(e))}function Rp(e,t,r,n,s,i,o){var a=Nr(e,r),u=Nr(t,r),f=o.get(u);if(f){Cr(e,r,f);return}var c=i?i(a,u,r+"",e,t,o):void 0,w=c===void 0;if(w){var g=H(u),b=!g&&je(u),_=!g&&!b&&Kt(u);c=u,g||b||_?H(a)?c=a:Ap(a)?c=Wr(a):b?(w=!1,c=Li(u,!0)):_?(w=!1,c=zi(u,!0)):c=[]:hi(u)||Le(u)?(c=a,Le(a)?c=xp(a):(!q(a)||qr(a))&&(c=Hi(u))):w=!1}w&&(o.set(u,c),s(c,u,n,i,o),o.delete(u)),Cr(e,r,c)}function Zi(e,t,r,n,s){e!==t&&_p(t,function(i,o){if(s||(s=new ee),q(i))Rp(e,t,o,r,Zi,n,s);else{var a=n?n(Nr(e,o),i,o+"",e,t,s):void 0;a===void 0&&(a=i),Cr(e,o,a)}},ht)}function Op(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Pp=Object.prototype,vp=Pp.hasOwnProperty;function $p(e,t){return e!=null&&vp.call(e,t)}function Cp(e,t){return e!=null&&Ki(e,t,$p)}function Np(e,t){return zr(t,function(r){return e[r]})}function Dp(e){return e==null?[]:Np(e,Xt(e))}function Fp(e,t){return t.length<2?e:Zr(e,di(t,0,-1))}var Ip="[object Map]",Lp="[object Set]",jp=Object.prototype,Mp=jp.hasOwnProperty;function Up(e){if(e==null)return!0;if(lt(e)&&(H(e)||typeof e=="string"||typeof e.splice=="function"||je(e)||Kt(e)||Le(e)))return!e.length;var t=V(e);if(t==Ip||t==Lp)return!e.size;if(Vt(e))return!fi(e).length;for(var r in e)if(Mp.call(e,r))return!1;return!0}function Bp(e,t){return Vi(e,t)}var zp=kt(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Hp=_i("toLowerCase"),Qi=Sf(function(e,t,r){Zi(e,t,r)}),qp=Object.prototype,Wp=qp.hasOwnProperty;function Yi(e,t){t=ze(t,e);var r=-1,n=t.length;if(!n)return!0;for(;++r<n;){var s=rt(t[r]);if(s==="__proto__"&&!Wp.call(e,"__proto__")||(s==="constructor"||s==="prototype")&&r<n-1)return!1}var i=Fp(e,t);return i==null||delete i[rt(Op(t))]}function Jp(e){return hi(e)?void 0:e}var Gp=1,Vp=2,Kp=4,Xp=ci(function(e,t){var r={};if(e==null)return r;var n=!1;t=zr(t,function(i){return i=ze(i,e),n||(n=i.length>1),i}),Be(e,Bi(e),r),n&&(r=Xe(r,Gp|Vp|Kp,Jp));for(var s=t.length;s--;)Yi(r,t[s]);return r});function ki(e,t,r,n){if(!q(e))return e;t=ze(t,e);for(var s=-1,i=t.length,o=i-1,a=e;a!=null&&++s<i;){var u=rt(t[s]),f=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(s!=o){var c=a[u];f=void 0,f===void 0&&(f=q(c)?c:Gt(t[s+1])?[]:{})}Gr(a,u,f),a=a[u]}return e}function Zp(e,t,r){for(var n=-1,s=t.length,i={};++n<s;){var o=t[n],a=Zr(e,o);r(a,o)&&ki(i,ze(o,e),a)}return i}var Qp=9007199254740991,Yp=Math.floor;function ls(e,t){var r="";if(!e||t<1||t>Qp)return r;do t%2&&(r+=e),t=Yp(t/2),t&&(e+=e);while(t);return r}var kp=wp("length"),eo="\\ud800-\\udfff",eg="\\u0300-\\u036f",tg="\\ufe20-\\ufe2f",rg="\\u20d0-\\u20ff",ng=eg+tg+rg,sg="\\ufe0e\\ufe0f",ig="["+eo+"]",Dr="["+ng+"]",Fr="\\ud83c[\\udffb-\\udfff]",og="(?:"+Dr+"|"+Fr+")",to="[^"+eo+"]",ro="(?:\\ud83c[\\udde6-\\uddff]){2}",no="[\\ud800-\\udbff][\\udc00-\\udfff]",ag="\\u200d",so=og+"?",io="["+sg+"]?",ug="(?:"+ag+"(?:"+[to,ro,no].join("|")+")"+io+so+")*",fg=io+so+ug,cg="(?:"+[to+Dr+"?",Dr,ro,no,ig].join("|")+")",hs=RegExp(Fr+"(?="+Fr+")|"+cg+fg,"g");function lg(e){for(var t=hs.lastIndex=0;hs.test(e);)++t;return t}function er(e){return Yt(e)?lg(e):kp(e)}var hg=Math.ceil;function Nt(e,t){t=t===void 0?" ":Jt(t);var r=t.length;if(r<2)return r?ls(t,e):t;var n=ls(t,hg(e/er(t)));return Yt(t)?kr(Pt(n),0,e).join(""):n.slice(0,e)}var dg=Math.ceil,pg=Math.floor;function gg(e,t,r){e=fe(e),t=Hr(t);var n=t?er(e):0;if(!t||n>=t)return e;var s=(t-n)/2;return Nt(pg(s),r)+e+Nt(dg(s),r)}function yg(e,t,r){e=fe(e),t=Hr(t);var n=t?er(e):0;return t&&n<t?e+Nt(t-n,r):e}function mg(e,t,r){e=fe(e),t=Hr(t);var n=t?er(e):0;return t&&n<t?Nt(t-n,r)+e:e}function wg(e,t){return Zp(e,t,function(r,n){return mp(e,n)})}var bg=ci(function(e,t){return e==null?{}:wg(e,t)}),_g=Math.floor,Eg=Math.random;function Sg(e,t){return e+_g(Eg()*(t-e+1))}function oo(e,t){var r=-1,n=e.length,s=n-1;for(t=t===void 0?n:t;++r<t;){var i=Sg(r,s),o=e[i];e[i]=e[r],e[r]=o}return e.length=t,e}function Tg(e,t,r){return e==null?e:ki(e,t,r)}function Ag(e){return oo(Wr(e))}function xg(e){return oo(Dp(e))}function Rg(e){var t=H(e)?Ag:xg;return t(e)}var Og=kt(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),ds=kt(function(e,t,r){return e+(r?" ":"")+vt(t)}),Pg="Expected a function";function vg(e,t,r){var n=!0,s=!0;if(typeof e!="function")throw new TypeError(Pg);return q(r)&&(n="leading"in r?!!r.leading:n,s="trailing"in r?!!r.trailing:s),Xi(e,t,{leading:n,maxWait:t,trailing:s})}function $g(e,t){for(var r=e.length;r--&&ri(t,e[r],0)>-1;);return r}function Cg(e,t){for(var r=-1,n=e.length;++r<n&&ri(t,e[r],0)>-1;);return r}function Ng(e,t,r){if(e=fe(e),e&&t===void 0)return ks(e);if(!e||!(t=Jt(t)))return e;var n=Pt(e),s=Pt(t),i=Cg(n,s),o=$g(n,s)+1;return kr(n,i,o).join("")}function Dg(e,t){return e==null?!0:Yi(e,t)}class Fg extends qt{constructor(r=[]){super();B(this,"_configuration",{});B(this,"singletons",{});B(this,"loaders",{});this.providers=r}get services(){return Object.entries(this.loaders).map(([r,n])=>({name:r,...n}))}get configuration(){return this._configuration}loadConfiguration(){if(document.getElementById("luminix-data::config")){const r=Zs("config");r&&typeof r=="object"&&this.withConfiguration(r)}}bind(r,n){if(typeof r!="string")throw new TypeError("Service name must be a string.");this.loaders[r]={loader:n}}singleton(r,n){if(typeof r!="string")throw new TypeError("Service name must be a string.");this.loaders[r]={loader:n,singleton:!0}}instance(r,n){if(typeof r!="string")throw new TypeError("Service name must be a string.");this.loaders[r]={loader:()=>n,singleton:!0}}make(r){const n=this.loaders[r];if(!n)throw new Error(`Service '${r}' is not bound in the container.`);return n.singleton?(this.singletons[r]||(this.singletons[r]=n.loader()),this.singletons[r]):n.loader()}withConfiguration(r){return Qi(this._configuration,r),this}withProviders(r){return this.providers.push(...r),this}create(){if(this.services.length>0){console.warn("[Luminix] Application already created. Skipping double invocation of `create()`. If you want to re-create the application, please flush it first.");return}this.loadConfiguration();const r=this.providers.map(n=>new n(this));this.emit("init",r),r.forEach(n=>{n.register&&n.register()}),this.emit("booting"),r.forEach(n=>{n.boot&&n.boot()}),this.emit("booted"),this.once("flushing",()=>{r.forEach(n=>{n.flush&&n.flush()})}),this.emit("ready")}flush(){this.emit("flushing"),this.singletons={},this.loaders={},this._configuration={},this.providers=[],this.emit("flushed"),this.flushEvents()}dump(r=!1){const n={configuration:this.configuration,services:this.services,providers:this.providers,singletons:this.singletons};if(r===!0)return n;const s=this.make("log");r===!1&&s.info(n),s.info(r,n)}}function Re(e){return class extends e{constructor(...r){super(...r);B(this,"_macros",{});return new Proxy(this,{get(n,s,i){return Reflect.has(n,s)?Reflect.get(n,s,i):typeof s=="string"&&n.hasMacro(s)?n._macros[s].bind(n):Reflect.get(n,s,i)}})}macro(r,n){if(typeof n!="function")throw new TypeError("Macro must be a function");this._macros[r]=n}hasMacro(r){return r in this._macros&&typeof this._macros[r]=="function"}flushMacros(){this._macros={}}}}class Ig{get(t,r,n){return Jc(t,r,n)}has(t,r){return Cp(t,r)}isEmpty(t){return Up(t)}isEqual(t,r){return Bp(t,r)}merge(t,...r){let n;try{n=structuredClone(t)}catch{n=Ud(t)}return Qi(n,...r),n}omit(t,...r){return Xp(t,...r)}pick(t,...r){return bg(t,...r)}set(t,r,n){Tg(t,r,n)}unset(t,r){Dg(t,r)}fromQuery(t){const r={};for(const[n,s]of t.entries())this.set(r,n,s);return r}fromFormData(t){return this.fromQuery(t)}toQuery(t){return Rn(t,new URLSearchParams)}toFormData(t){return Rn(t,new FormData)}}const O=new(Re(Ig));class Dt{constructor(t,r){this._response=t,this._error=r}error(){return this._error}body(){return typeof this._response.data=="object"?JSON.stringify(this._response.data):String(this._response.data)}json(t,r){return t?O.get(this._response.data,t,r):this._response.data}has(t){return O.has(this._response.data,t)}status(){return Number(this._response.status)}successful(){return this.status()>=200&&this.status()<300}redirect(){return this.status()>=300&&this.status()<400}clientError(){return this.status()>=400&&this.status()<500}serverError(){return this.status()>=500}failed(){return this.clientError()||this.serverError()}header(t){return this._response.headers[t]}headers(){return this._response.headers}ok(){return this.status()===200}created(){return this.status()===201}accepted(){return this.status()===202}noContent(){return this.status()===204}movedPermanently(){return this.status()===301}found(){return this.status()===302}badRequest(){return this.status()===400}unauthorized(){return this.status()===401}paymentRequired(){return this.status()===402}forbidden(){return this.status()===403}notFound(){return this.status()===404}requestTimeout(){return this.status()===408}conflict(){return this.status()===409}unprocessableEntity(){return this.status()===422}tooManyRequests(){return this.status()===429}throw(){if(this.failed())throw this._error||new Error(this.body());return this}throwIf(t){return typeof t=="function"?t(this)?this.throw():this:t?this.throw():this}throwUnless(t){return typeof t=="function"?t(this)?this:this.throw():t?this:this.throw()}throwIfStatus(t){return typeof t=="function"&&t(this.status(),this)?this.throw():this.status()===t?this.throw():this}throwUnlessStatus(t){return typeof t=="function"&&!t(this.status(),this)?this.throw():this.status()===t?this:this.throw()}throwIfClientError(){return this.clientError()?this.throw():this}throwIfServerError(){return this.serverError()?this.throw():this}}var ys;ys=Symbol.toStringTag;class $e{constructor(t){B(this,"promise");B(this,"response");B(this,ys,"Request");this.promise=new Promise((r,n)=>{F(t).then(s=>{this.response=new Dt(s),r(this.response)}).catch(s=>{ka(s)&&s.response?(this.response=new Dt(s.response,s),r(this.response)):n(s)})})}then(t,r){return this.promise.then(t,r)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}}class Lg{constructor(t={}){this.options=t}parseData(t){return O.get(this.options,"headers[Content-Type]","application/json")==="application/x-www-form-urlencoded"&&t?O.toFormData(t||{}):t}baseUrl(t){return O.set(this.options,"baseURL",t),this}asForm(){return O.set(this.options,"headers[Content-Type]","application/x-www-form-urlencoded"),this}accept(t){return O.set(this.options,"headers[Accept]",t),this}acceptJson(){return this.accept("application/json")}withHeaders(t){return O.set(this.options,"headers",O.merge(this.options.headers??{},t)),this}replaceHeaders(t){return O.set(this.options,"headers",t),this}withOptions(t){return this.options=O.merge(this.options,t),this}replaceOptions(t){return this.options=t,this}withQueryParameters(t){const r=typeof t=="string"?O.fromQuery(new URLSearchParams(t)):t instanceof URLSearchParams?O.fromQuery(t):t;return O.set(this.options,"params",O.merge(this.options.params||{},r)),this}replaceQueryParameters(t){return O.set(this.options,"params",typeof t=="string"?O.fromQuery(new URLSearchParams(t)):t instanceof URLSearchParams?O.fromQuery(t):t),this}withData(t){const r=O.get(this.options,"data",{}),n=r instanceof FormData?O.fromFormData(r):r;return O.set(this.options,"data",this.parseData(O.merge(n,t))),this}replaceData(t){return O.set(this.options,"data",this.parseData(t)),this}withBasicAuth(t,r){return O.set(this.options,"headers.Authorization",`Basic ${btoa(`${t}:${r}`)}`),this}withToken(t){return O.set(this.options,"headers.Authorization",`Bearer ${t}`),this}get(t,r){return new $e({...this.options,params:r??this.options.params,url:t})}post(t,r){return new $e({...this.options,method:"post",url:t,data:this.parseData(r??this.options.data)})}put(t,r){return new $e({...this.options,method:"put",url:t,data:this.parseData(r??this.options.data)})}patch(t,r){return new $e({...this.options,method:"patch",url:t,data:this.parseData(r??this.options.data)})}delete(t,r){return new $e({...this.options,method:"delete",params:r??this.options.params,url:t})}}class jg{cartesian(...t){return t.reduce((r,n)=>r.flatMap(s=>n.map(i=>[s,i].flat())))}sampleSize(t,r){return this.shuffle(t).slice(0,r)}shuffle(t){return Rg(t)}}const Ve=new(Re(jg)),se=e=>{e.emit("change",{items:e.all(),source:e})},wt=(e,t)=>Array.isArray(e)?e[t]??null:e.get(t);function bt(e){return e instanceof me}var ms,ws,l;const E=class E extends qt{constructor(r=[]){super();cn(this,l);B(this,ms,"Collection");ln(this,l,r)}get items(){return[...h(this,l)]}[(ws=Symbol.iterator,ms=Symbol.toStringTag,ws)](){return h(this,l)[Symbol.iterator]()}all(){return[...h(this,l)]}average(r){return typeof r=="string"?this.avg(r):this.avg()}avg(r){return typeof r=="string"?this.sum(r)/h(this,l).length:this.sum()/h(this,l).length}chunk(r){const n=[];for(let s=0;s<h(this,l).length;s+=r)n.push(h(this,l).slice(s,s+r));return new E(n.map(s=>new E(s)))}chunkWhile(r){const n=[];let s=new E;for(let i=0;i<h(this,l).length;i++)r(h(this,l)[i],i,s)?s.push(h(this,l)[i]):(n.push(s),s=new E);return s.count()>0&&n.push(s),new E(n)}collapse(){return new E(h(this,l).flat())}collect(){return new E(h(this,l))}combine(r){const n={};return h(this,l).forEach((s,i)=>{if(typeof s!="string")throw new TypeError("The `combine` method expects the keys to be strings");n[s]=wt(r,i)}),n}concat(r){return Array.isArray(r)?new E([...h(this,l),...r]):new E([...h(this,l),...r.all()])}contains(r,n){return typeof r=="function"?h(this,l).some((s,i)=>r(s,i,this)):h(this,l).some(s=>{if(typeof n>"u")return s==r;if(typeof r!="string")throw new TypeError("The key must be a string");return s[r]==n})}containsOneItem(){return h(this,l).length===1}containsStrict(r,n){return typeof r=="function"?h(this,l).some((s,i)=>r(s,i,this)):h(this,l).some(s=>{if(typeof n>"u")return s===r;if(typeof r!="string")throw new TypeError("The key must be a string");return s[r]===n})}count(){return h(this,l).length}countBy(r){return typeof r=="function"?h(this,l).reduce((n,s,i)=>{const o=r(s,i,this);return n[o]=n[o]?n[o]+1:1,n},{}):h(this,l).reduce((n,s)=>{if(!["string","number"].includes(typeof s))throw new TypeError("The countBy method expects the items to be strings or numbers");return n[String(s)]=n[String(s)]?n[String(s)]+1:1,n},{})}crossJoin(...r){return new E(Ve.cartesian(h(this,l),...r.map(n=>Array.isArray(n)?n:n.all())))}diff(r){return Array.isArray(r)?new E(h(this,l).filter(n=>!r.includes(n))):new E(h(this,l).filter(n=>!r.contains(n)))}doesntContain(r,n){return typeof r=="function"?h(this,l).every((s,i)=>!r(s,i,this)):h(this,l).every(s=>{if(typeof n>"u")return s!=r;if(typeof r!="string")throw new TypeError("The key must be a string");return s[r]!=n})}dump(){console.log(this.toArray())}duplicates(r){return typeof r=="string"?new E(h(this,l).reduce((n,s,i)=>(h(this,l).slice(i+1).some(o=>o[r]==s[r])&&n.push(s[r]),n),[])):new E(h(this,l).reduce((n,s,i)=>(h(this,l).slice(i+1).some(o=>o==s)&&n.push(s),n),[]))}duplicatesStrict(r){return typeof r=="string"?new E(h(this,l).reduce((n,s,i)=>(h(this,l).slice(i+1).some(o=>o[r]===s[r])&&n.push(s[r]),n),[])):new E(h(this,l).reduce((n,s,i)=>(h(this,l).slice(i+1).some(o=>o===s)&&n.push(s),n),[]))}each(r){let n=0;for(const s of this){if(r(s,n,this)===!1)break;n++}return this}eachSpread(r){for(const n of this){if(!Array.isArray(n)&&!bt(n))throw new TypeError("The items in the collection must be arrays or collections");const s=Array.isArray(n)?n:n.all();if(r(...s)===!1)break}return this}ensure(r){const n=Array.isArray(r)?r:[r];return h(this,l).forEach((s,i)=>{if(!n.some(o=>typeof o=="string"?typeof s===o:s instanceof o))throw new TypeError(`The item at index ${i} is not of the expected type`)}),this}every(r){return h(this,l).every((n,s)=>r(n,s,this))}except(r){return new E(h(this,l).filter((n,s)=>!r.includes(s)))}filter(r){return new E(h(this,l).filter((n,s)=>typeof r!="function"?!!n:r(n,s,this)))}first(r){return typeof r=="function"?h(this,l).find((n,s)=>r(n,s,this))??null:h(this,l)[0]??null}firstOrFail(r){const n=this.first(r);if(n===null)throw new Error("No matching item found");return n}firstWhere(r,n,s){if(typeof r!="string")throw new TypeError("The key must be a string");if(typeof n>"u")return this.first(i=>!!i[r]);if(typeof s>"u")return h(this,l).find(i=>i[r]==n)??null;if(typeof n!="string")throw new TypeError("The operator must be a string");return s===null?h(this,l).find(i=>i[r]===null)??null:h(this,l).find(i=>{switch(n){case"=":return i[r]==s;case"!=":return i[r]!=s;case">":return i[r]>s;case"<":return i[r]<s;case">=":return i[r]>=s;case"<=":return i[r]<=s;default:throw new Error("Unsupported operator")}})??null}flatMap(r){return new E(h(this,l).flatMap((n,s)=>r(n,s,this)))}forget(r){return h(this,l).splice(r,1),se(this),this}forPage(r,n){return new E(h(this,l).slice((r-1)*n,r*n))}get(r,n){if(typeof r!="number")throw new TypeError("The key must be a number");return typeof n>"u"?h(this,l)[r]??null:typeof n=="function"?h(this,l)[r]??n():h(this,l)[r]??n}groupBy(r){const n=Array.isArray(r)?r:[r];return h(this,l).reduce((s,i,o)=>{const a=n.map(f=>{if(typeof f=="function"){const c=f(i,o,this);return Array.isArray(c)?c:[c]}return[String(i[f])]});return Ve.cartesian(...a).forEach(f=>{const c=Array.isArray(f)?f.join("."):f;O.set(s,c,[...O.get(s,c,[]),i])}),s},{})}has(r){return h(this,l).length>r}hasAny(r){return r.some(n=>this.has(n))}implode(r,n){if(typeof n>"u"){if(typeof r!="string")throw new TypeError("The glue must be a string");if(!h(this,l).every(s=>["string","number"].includes(typeof s)))throw new TypeError("The items must be strings or numbers");return h(this,l).join(r)}if(typeof r=="function")return h(this,l).map((s,i)=>r(s,i,this)).join(n);if(typeof r!="string")throw new TypeError("The key must be a string");if(!h(this,l).every(s=>typeof s=="object"))throw new TypeError("The items must be objects");return h(this,l).map(s=>s[r]).join(n)}intersect(r){return Array.isArray(r)?new E(h(this,l).filter(n=>r.includes(n))):new E(h(this,l).filter(n=>r.contains(n)))}isEmpty(){return h(this,l).length===0}isNotEmpty(){return!this.isEmpty()}join(r,n){return typeof n>"u"?h(this,l).join(r):h(this,l).slice(0,-1).join(r)+n+h(this,l)[h(this,l).length-1]}keyBy(r){if(typeof r=="function")return h(this,l).reduce((n,s,i)=>(n[r(s,i,this)]=s,n),{});if(typeof r!="string")throw new TypeError("The key must be a string");return h(this,l).reduce((n,s)=>(n[String(s[r])]=s,n),{})}last(r){return typeof r=="function"?h(this,l).toReversed().find((n,s)=>r(n,s,this))??null:h(this,l)[h(this,l).length-1]??null}map(r){return new E(h(this,l).map((n,s)=>r(n,s,this)))}mapInto(r){return new E(h(this,l).map(n=>new r(n)))}mapSpread(r){return new E(h(this,l).map(n=>{if(!Array.isArray(n)&&!bt(n))throw new TypeError("The items in the collection must be arrays or collections");const s=Array.isArray(n)?n:n.all();return r(...s)}))}mapToGroups(r){return h(this,l).reduce((n,s,i)=>{const o=r(s,i,this);return Object.entries(o).forEach(([a,u])=>{n[a]=n[a]??[],n[a].push(u)}),n},{})}mapWithKeys(r){return h(this,l).reduce((n,s,i)=>{const o=r(s,i,this);return Object.entries(o).forEach(([a,u])=>{n[a]=u}),n},{})}max(r){return typeof r=="string"?h(this,l).reduce((n,s)=>s[r]>n?s[r]:n,h(this,l)[0][r]):h(this,l).reduce((n,s)=>s>n?s:n,h(this,l)[0])}median(r){if(typeof r=="string"){const i=this.pluck(r).sort(),o=Math.floor(i.count()/2);return i.count()%2===0?new E([wt(i,o-1),wt(i,o)]).avg():wt(i,o)}const n=h(this,l).toSorted(),s=Math.floor(n.length/2);return n.length%2===0?new E([n[s-1],n[s]]).avg():n[s]??null}merge(r){return Array.isArray(r)?new E([...h(this,l),...r]):new E([...h(this,l),...r.all()])}min(r){return typeof r=="string"?h(this,l).reduce((n,s)=>s[r]<n?s[r]:n,h(this,l)[0][r]):h(this,l).reduce((n,s)=>s<n?s:n,h(this,l)[0])}mode(r){const n=typeof r=="string"?this.filter(i=>["number","string"].includes(typeof i[r])).countBy(i=>i[r]):this.countBy(),s=Math.max(...Object.values(n));return Object.entries(n).filter(([,i])=>i===s).map(([i])=>i)}nth(r,n=0){return this.chunk(r).filter(s=>s.count()>n).map(s=>s.get(n))}only(r){return new E(h(this,l).filter((n,s)=>r.includes(s)))}pad(r,n=null){const s=h(this,l).slice();for(;s.length<Math.abs(r);)r>0?s.push(n):s.unshift(n);return new E(s)}partition(r){return[this.filter(r),this.reject(r)]}percentage(r,n=2){return Math.round(100*(10^n)*this.filter(r).count()/h(this,l).length)/(10^n)}pipe(r){return r(this)}pipeInto(r){return new r(this)}pipeThrough(r){return r.reduce((n,s)=>{if(!bt(n)&&!Array.isArray(n))throw new TypeError("The pipeline expects the carry to be a collection or an array");return s(bt(n)?n:new E(n))},this)}pluck(r){return this.map(n=>n[r])}pop(r=1){const n=h(this,l).splice(h(this,l).length-r,r);return se(this),r===1?n[0]??null:new E(n)}prepend(r){const n=h(this,l).unshift(r);return se(this),n}pull(r){const n=h(this,l).splice(r,1)[0]??null;return se(this),n}push(...r){const n=h(this,l).push(...r);return se(this),n}put(r,n){return h(this,l).splice(r,1,n),se(this),this}random(r=1){if(h(this,l).length<r)throw new Error("The collection has fewer items than the requested amount");const n=new E(Ve.sampleSize(h(this,l),r));return r===1?n.first():n}reduce(r,n=null){return h(this,l).reduce((s,i,o)=>r(s,i,o,this),n)}reject(r){return this.filter((n,s)=>!r(n,s,this))}replace(r){const n=h(this,l).slice();return Object.entries(r).forEach(([s,i])=>{n[parseInt(s)]=i}),new E(n)}reverse(){return new E(h(this,l).toReversed())}search(r,n=!1){if(typeof r!="function"||h(this,l).every(i=>typeof i=="function")){const i=h(this,l).findIndex(o=>n?o===r:o==r);return i===-1?!1:i}const s=h(this,l).findIndex((i,o)=>r(i,o,this));return s===-1?!1:s}select(r){return this.map(n=>r.reduce((s,i)=>(s[i]=n[i],s),{}))}shift(r=1){const n=h(this,l).splice(0,r);return se(this),r===1?n[0]??null:new E(n)}shuffle(){return new E(Ve.shuffle(h(this,l)))}skip(r){return new E(h(this,l).slice(r))}skipUntil(r){return typeof r=="function"?this.skip(h(this,l).findIndex((n,s)=>r(n,s,this))):this.skip(h(this,l).findIndex(n=>n==r))}skipWhile(r){return typeof r=="function"?this.skip(h(this,l).findIndex((n,s)=>!r(n,s,this))):this.skip(h(this,l).findIndex(n=>n!=r))}slice(r,n){return typeof n>"u"?new E(h(this,l).slice(r)):typeof r>"u"?new E(h(this,l).slice(0,n)):new E(h(this,l).slice(r,r+n))}sliding(r,n=1){const s=[];for(let i=0;i<h(this,l).length&&!(i+r>h(this,l).length);i+=n)s.push(h(this,l).slice(i,i+r));return new E(s.map(i=>new E(i)))}sole(r,n){if(typeof r=="function"){const s=this.filter(r);return s.count()===1?s.first():null}if(typeof r=="string"){const s=this.where(r,n);return s.count()===1?s.first():null}return h(this,l).length===1?this.first():null}some(...r){return this.contains(...r)}sort(r){return new E(h(this,l).toSorted(r))}sortBy(r,n="asc"){if(typeof r=="function"){let s=-1;return new E(h(this,l).toSorted((i,o)=>(s++,r(i,s,this)-r(o,s,this))))}if(Array.isArray(r))return r.every(s=>Array.isArray(s))?new E(h(this,l).toSorted((s,i)=>{for(const[o,a]of r){const u=s[o]??-1/0,f=i[o]??-1/0;if(u>f)return a==="asc"?1:-1;if(u<f)return a==="asc"?-1:1}return 0})):new E(h(this,l).toSorted((s,i)=>{for(const o of r){const a=o(s,i);if(a!==0)return a}return 0}));if(typeof r!="string")throw new TypeError("The key must be a string");return new E(h(this,l).toSorted((s,i)=>{const o=s[r]??-1/0,a=i[r]??-1/0;return o>a?n==="asc"?1:-1:o<a?n==="asc"?-1:1:0}))}sortDesc(){return this.sort((r,n)=>r>n?-1:r<n?1:0)}splice(r,n,...s){const i=n===void 0?h(this,l).length:n,o=h(this,l).splice(r,i,...s);return se(this),new E(o)}split(r){const n=[];for(let s=0;s<r;s++){const i=h(this,l).slice(n.flat().length,n.flat().length+Math.min(Math.ceil((h(this,l).length-n.flat().length)/(r-s)),h(this,l).length-n.flat().length));n.push(new E(i))}return new E(n)}splitIn(r){const n=Math.ceil(h(this,l).length/r);return this.chunk(n)}sum(r){return typeof r=="string"?h(this,l).reduce((n,s)=>{const i=s[r];if(typeof i!="number")throw new TypeError("The items must be numbers");return n+i},0):h(this,l).reduce((n,s)=>{if(typeof s!="number")throw new TypeError("The items must be numbers");return n+s},0)}take(r){return new E(h(this,l).slice(0,r))}takeUntil(r){return typeof r=="function"?this.take(h(this,l).findIndex((n,s)=>r(n,s,this))):this.take(h(this,l).findIndex(n=>n==r))}takeWhile(r){return typeof r=="function"?this.take(h(this,l).findIndex((n,s)=>!r(n,s,this))):this.take(h(this,l).findIndex(n=>n!=r))}tap(r){return r(this),this}toArray(){const r=n=>typeof n!="object"?n:Array.isArray(n)?n.map(r):n&&"toArray"in n&&typeof n.toArray=="function"?n.toArray():n&&"toJson"in n&&typeof n.toJson=="function"?n.toJson():n;return h(this,l).map(r)}toJson(){return JSON.stringify(h(this,l))}transform(r){for(const[n,s]of h(this,l).entries())h(this,l).splice(n,1,r(s,n,this));return se(this),this}unique(r){return typeof r=="string"?new E([...new Set(h(this,l).map(n=>n[r]))].map(n=>h(this,l).find(s=>s[r]==n))):new E([...new Set(h(this,l))])}uniqueStrict(r){return typeof r=="string"?new E([...new Set(h(this,l).map(n=>n[r]))].map(n=>h(this,l).find(s=>s[r]===n))):new E([...new Set(h(this,l))])}unless(r,n,s){return r?typeof s=="function"&&s(this):n(this),this}unlessEmpty(r,n){return this.whenNotEmpty(r,n)}unlessNotEmpty(r,n){return this.whenEmpty(r,n)}value(r){return h(this,l).length===0?null:h(this,l)[0][r]}when(r,n,s){return r?n(this):typeof s=="function"&&s(this),this}whenEmpty(r,n){return this.isEmpty()?r(this):typeof n=="function"&&n(this),this}whenNotEmpty(r,n){return this.isNotEmpty()?r(this):typeof n=="function"&&n(this),this}where(r,n,s){if(typeof s>"u")return new E(h(this,l).filter(o=>o[r]==n));if(typeof n!="string")throw new TypeError("The operator must be a string");if(s===null)return new E(h(this,l).filter(o=>o[r]===null));const i={"=":o=>o[r]==s,"!=":o=>o[r]!=s,">":o=>o[r]>s,"<":o=>o[r]<s,">=":o=>o[r]>=s,"<=":o=>o[r]<=s};if(!(n in i))throw new Error("Unsupported operator");return new E(h(this,l).filter((o,a)=>i[n](o,a,this)))}whereStrict(r,n,s){if(typeof s>"u")return new E(h(this,l).filter(o=>o[r]===n));if(typeof n!="string")throw new TypeError("The operator must be a string");if(s===null)return new E(h(this,l).filter(o=>o[r]===null));const i={"=":o=>o[r]===s,"!=":o=>o[r]!==s,">":o=>o[r]>s,"<":o=>o[r]<s,">=":o=>o[r]>=s,"<=":o=>o[r]<=s};if(!(n in i))throw new Error("Unsupported operator");return new E(h(this,l).filter((o,a)=>i[n](o,a,this)))}whereBetween(r,[n,s]){return new E(h(this,l).filter(i=>i[r]>=n&&i[r]<=s))}whereNotBetween(r,[n,s]){return new E(h(this,l).filter(i=>i[r]<n||i[r]>s))}whereIn(r,n){return new E(h(this,l).filter(s=>n.includes(s[r])))}whereNotIn(r,n){return new E(h(this,l).filter(s=>!n.includes(s[r])))}whereNull(r){return new E(h(this,l).filter(n=>n[r]===null))}whereNotNull(r){return new E(h(this,l).filter(n=>n[r]!==null))}whereInstanceOf(r){return new E(h(this,l).filter(n=>n instanceof r))}zip(r){return Array.isArray(r)?new E(h(this,l).map((n,s)=>[n,r[s]??null])):new E(h(this,l).map((n,s)=>[n,r.get(s)]))}};l=new WeakMap;let me=E;function Mg(e,t){return new class extends e{constructor(){return super(),new Proxy(this,{get(r,n){if(Reflect.has(r,n))return Reflect.get(r,n);const s=r.getFacadeAccessor(),i=typeof s=="string"?t.make(s):s;if(!i)throw new Error(`Service ${String(s)} does not exist.`);return Reflect.get(i,n,i)}})}}}class rn extends qt{constructor(r){super();B(this,"locked",[]);this.bag=r,Object.freeze(this.bag)}get(r,n){return O.get(this.bag,r,n)}set(r,n){if(this.locked.some(s=>r.startsWith(s)))throw new Error(`Cannot set a locked path "${r}"`);if(typeof n=="object"&&n!==null&&this.locked.some(s=>O.has(n,s.slice(r.length+1))))throw new Error(`Cannot set a path "${r}" that would override a locked path`);if(r==="."){if(this.locked.length)throw new Error("Cannot set the root path when there are locked paths");if(typeof n!="object"||n===null)throw new TypeError("Value must be an object");this.bag=Ce(this.bag,()=>n),this.emit("change",{path:r,value:n,type:"set",source:this});return}this.bag=Ce(this.bag,s=>{O.set(s,r,n)}),this.emit("change",{path:r,value:n,type:"set",source:this})}merge(r,n){if(typeof n!="object"||n===null)throw new TypeError("Value must be an object");if(r==="."){if(this.locked.some(i=>O.has(n,i)))throw new Error(`Cannot merge a path "${r}" that would override a locked path`);this.bag=Ce(this.bag,i=>({...i,...n})),this.emit("change",{path:r,value:n,type:"merge",source:this});return}const s=this.get(r);if(typeof s=="object"&&s!==null)return this.set(r,{...s,...n});if(s===null||typeof s>"u")return this.set(r,n);throw new Error(`Cannot merge a non-object path "${r}"`)}has(r){return O.has(this.bag,r)}delete(r){if(this.locked.some(n=>r.startsWith(n)))throw new Error(`Cannot delete a locked path "${r}"`);this.bag=Ce(this.bag,n=>{O.unset(n,r)}),this.emit("change",{path:r,value:null,type:"delete",source:this})}lock(r){if(!this.has(r))throw new Error(`Cannot lock a non-existing path "${r}"`);this.locked.push(r)}clone(){return new rn(this.bag)}all(){return this.bag}isEmpty(){return O.isEmpty(this.bag)}}var bs,_s;class Ug extends(_s=Error,bs=Symbol.toStringTag,_s){constructor(r,n){super(`[Luminix] Cannot create reducer '${r}' on '${n}' as it is a reserved property`);B(this,bs,"ReducerOverrideException")}}function Bg(e){return class extends e{constructor(...r){super(...r);B(this,"_reducers",{});return new Proxy(this,{get(n,s,i){return typeof s=="symbol"||s in n?Reflect.get(n,s,i):(o,...a)=>{const{[s]:u=new me}=n._reducers;return K(o)?Ce(o,f=>u.sortBy("priority").reduce((c,w)=>w.callback(c,...a),f)):u.sortBy("priority").reduce((f,c)=>c.callback(f,...a),o)}}})}reducer(r,n,s=10){if(r in this)throw new Ug(r,this);return this._reducers[r]||(this._reducers[r]=new me),this._reducers[r].push({callback:n,priority:s}),()=>this.removeReducer(r,n)}removeReducer(r,n){const s=this._reducers[r].search(i=>i.callback===n);s!==!1&&this._reducers[r].pull(s)}getReducer(r){return this._reducers[r]||(this._reducers[r]=new me),this._reducers[r]}hasReducer(r){return!!this._reducers[r]&&this._reducers[r].count()>0}clearReducer(r){this._reducers[r]&&this._reducers[r].splice(0,this._reducers[r].count())}flushReducers(){Object.values(this._reducers).forEach(r=>r.splice(0,r.count()))}}}class zg{constructor(t){this.app=t}}function Hg(e){return e instanceof Dt&&e.unprocessableEntity()&&typeof e.json("message")=="string"&&typeof e.json("errors")=="object"&&e.json("errors")!==null&&Object.values(e.json("errors")).every(t=>Array.isArray(t)&&t.every(r=>typeof r=="string"))}class qg{after(t,r){return t.includes(r)?t.split(r).slice(1).join(""):""}afterLast(t,r){return t.includes(r)?t.split(r).slice(-1).join(""):""}before(t,r){return t.includes(r)?t.split(r).slice(0,1).join(""):""}beforeLast(t,r){return t.includes(r)?t.split(r).slice(0,-1).join(""):""}camel(t){return ch(t)}lcfirst(t){return Hp(t)}lower(t){return t.toLowerCase()}kebab(t){return zp(t)}padBoth(t,r,n){return gg(t,r,n)}padLeft(t,r,n){return mg(t,r,n)}padRight(t,r,n){return yg(t,r,n)}human(t){return Ei(ds(t))}studly(t){return vt(this.camel(t))}snake(t){return Og(t)}title(t){return ds(t)}trim(t,r){return Ng(t,r)}ucfirst(t){return vt(t)}upper(t){return t.toUpperCase()}}const Ne=new(Re(qg));class Wg{parse(t){return t instanceof Date?t:new Date(t)}toDateTimeLocal(t){const r=this.parse(t),n=`${r.getFullYear()}`,s=`${Ne.padLeft(`${r.getMonth()+1}`,2,"0")}`,i=`${Ne.padLeft(`${r.getDate()}`,2,"0")}`,o=`${Ne.padLeft(`${r.getHours()}`,2,"0")}`,a=`${Ne.padLeft(`${r.getMinutes()}`,2,"0")}`;return`${n}-${s}-${i}T${o}:${a}`}}const Jg=new(Re(Wg));class Gg{throttle(t,r,n){return vg(t,r,n)}debounce(t,r,n){return Xi(t,r,n)}}const Vg=new(Re(Gg));class Kg{fromObject(t){return O.toQuery(t)}toObject(t){return O.fromQuery(t)}merge(...t){const r=new URLSearchParams;return t.forEach(n=>{(typeof n=="string"?new URLSearchParams(Ne.after(n,"?")):n).forEach((i,o)=>{r.set(o,i)})}),r}}const Xg=new(Re(Kg));exports.Application=Fg;exports.Arr=Ve;exports.Client=Lg;exports.Collection=me;exports.DateTime=Jg;exports.EventSource=qt;exports.Func=Vg;exports.Macroable=Re;exports.MakeFacade=Mg;exports.Obj=O;exports.PropertyBag=rn;exports.Query=Xg;exports.Reducible=Bg;exports.Request=$e;exports.Response=Dt;exports.ServiceProvider=zg;exports.Str=Ne;exports.axios=F;exports.immer=wu;exports.isValidationError=Hg;exports.reader=Zs;
|
|
9
|
+
`+i)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=we(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&St.assertOptions(n,{silentJSONParsing:G.transitional(G.boolean),forcedJSONParsing:G.transitional(G.boolean),clarifyTimeoutError:G.transitional(G.boolean),legacyInterceptorReqResOrdering:G.transitional(G.boolean)},!1),s!=null&&(d.isFunction(s)?r.paramsSerializer={serialize:s}:St.assertOptions(s,{encode:G.function,serialize:G.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),St.assertOptions(r,{baseUrl:G.spelling("baseURL"),withXsrfToken:G.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&d.merge(i.common,i[r.method]);i&&d.forEach(["delete","get","head","post","put","patch","query","common"],_=>{delete i[_]}),r.headers=U.concat(o,i);const a=[];let u=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(r)===!1)return;u=u&&y.synchronous;const p=r.transitional||Lr;p&&p.legacyInterceptorReqResOrdering?a.unshift(y.fulfilled,y.rejected):a.push(y.fulfilled,y.rejected)});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let c,w=0,g;if(!u){const _=[An.bind(this),void 0];for(_.unshift(...a),_.push(...f),g=_.length,c=Promise.resolve(r);w<g;)c=c.then(_[w++],_[w++]);return c}g=a.length;let b=r;for(;w<g;){const _=a[w++],y=a[w++];try{b=_(b)}catch(p){y.call(this,p);break}}try{c=An.call(this,b)}catch(_){return Promise.reject(_)}for(w=0,g=f.length;w<g;)c=c.then(f[w++],f[w++]);return c}getUri(t){t=we(this.defaults,t);const r=Ls(t.baseURL,t.url,t.allowAbsoluteUrls);return Ns(r,t.params,t.paramsSerializer)}};d.forEach(["delete","get","head","options"],function(t){ye.prototype[t]=function(r,n){return this.request(we(n||{},{method:t,url:r,data:(n||{}).data}))}});d.forEach(["post","put","patch","query"],function(t){function r(n){return function(i,o,a){return this.request(we(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ye.prototype[t]=r(),t!=="query"&&(ye.prototype[t+"Form"]=r(!0))});let Za=class Bs{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{n.subscribe(a),i=a}).then(s);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,a){n.reason||(n.reason=new at(i,o,a),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Bs(function(s){t=s}),cancel:t}}};function Qa(e){return function(r){return e.apply(null,r)}}function Ya(e){return d.isObject(e)&&e.isAxiosError===!0}const wr={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(wr).forEach(([e,t])=>{wr[t]=e});function zs(e){const t=new ye(e),r=Es(ye.prototype.request,t);return d.extend(r,ye.prototype,t,{allOwnKeys:!0}),d.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return zs(we(e,s))},r}const F=zs(ot);F.Axios=ye;F.CanceledError=at;F.CancelToken=Za;F.isCancel=Fs;F.VERSION=Mr;F.toFormData=Mt;F.AxiosError=A;F.Cancel=F.CanceledError;F.all=function(t){return Promise.all(t)};F.spread=Qa;F.isAxiosError=Ya;F.mergeConfig=we;F.AxiosHeaders=U;F.formToJSON=e=>Ds(d.isHTMLForm(e)?new FormData(e):e);F.getAdapter=Us.getAdapter;F.HttpStatusCode=wr;F.default=F;const{Axios:ey,AxiosError:ty,CanceledError:ry,isCancel:ny,CancelToken:sy,VERSION:iy,all:oy,Cancel:ay,isAxiosError:ka,spread:uy,toFormData:Rn,AxiosHeaders:fy,HttpStatusCode:cy,formToJSON:ly,getAdapter:hy,mergeConfig:dy,create:py}=F;var Bt=Symbol.for("immer-nothing"),De=Symbol.for("immer-draftable"),P=Symbol.for("immer-state"),Hs=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function I(e,...t){if(process.env.NODE_ENV!=="production"){const r=Hs[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var be=Object.getPrototypeOf;function oe(e){return!!e&&!!e[P]}function K(e){var t;return e?qs(e)||Array.isArray(e)||!!e[De]||!!((t=e.constructor)!=null&&t[De])||ut(e)||ft(e):!1}var eu=Object.prototype.constructor.toString();function qs(e){if(!e||typeof e!="object")return!1;const t=be(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===eu}function tu(e){return oe(e)||I(15,e),e[P].base_}function Ie(e,t){_e(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function _e(e){const t=e[P];return t?t.type_:Array.isArray(e)?1:ut(e)?2:ft(e)?3:0}function Ze(e,t){return _e(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ar(e,t){return _e(e)===2?e.get(t):e[t]}function Ws(e,t,r){const n=_e(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ru(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ut(e){return e instanceof Map}function ft(e){return e instanceof Set}function L(e){return e.copy_||e.base_}function br(e,t){if(ut(e))return new Map(e);if(ft(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=qs(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[P];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){const o=s[i],a=n[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(be(e),n)}else{const n=be(e);if(n!==null&&r)return{...e};const s=Object.create(n);return Object.assign(s,e)}}function zt(e,t=!1){return Ht(e)||oe(e)||!K(e)||(_e(e)>1&&(e.set=e.add=e.clear=e.delete=nu),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>zt(n,!0))),e}function nu(){I(2)}function Ht(e){return Object.isFrozen(e)}var _r={};function Ee(e){const t=_r[e];return t||I(0,e),t}function Js(e,t){_r[e]||(_r[e]=t)}var Qe;function At(){return Qe}function su(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function On(e,t){t&&(Ee("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Er(e){Sr(e),e.drafts_.forEach(iu),e.drafts_=null}function Sr(e){e===Qe&&(Qe=e.parent_)}function Pn(e){return Qe=su(Qe,e)}function iu(e){const t=e[P];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function vn(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[P].modified_&&(Er(t),I(4)),K(e)&&(e=xt(t,e),t.parent_||Rt(t,e)),t.patches_&&Ee("Patches").generateReplacementPatches_(r[P].base_,e,t.patches_,t.inversePatches_)):e=xt(t,r,[]),Er(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Bt?e:void 0}function xt(e,t,r){if(Ht(t))return t;const n=t[P];if(!n)return Ie(t,(s,i)=>$n(e,n,t,s,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Rt(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const s=n.copy_;let i=s,o=!1;n.type_===3&&(i=new Set(s),s.clear(),o=!0),Ie(i,(a,u)=>$n(e,n,s,a,u,r,o)),Rt(e,s,!1),r&&e.patches_&&Ee("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function $n(e,t,r,n,s,i,o){if(process.env.NODE_ENV!=="production"&&s===r&&I(5),oe(s)){const a=i&&t&&t.type_!==3&&!Ze(t.assigned_,n)?i.concat(n):void 0,u=xt(e,s,a);if(Ws(r,n,u),oe(u))e.canAutoFreeze_=!1;else return}else o&&r.add(s);if(K(s)&&!Ht(s)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;xt(e,s),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&Rt(e,s)}}function Rt(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zt(t,r)}function ou(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:At(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=n,i=Br;r&&(s=[n],i=Ye);const{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,a}var Br={get(e,t){if(t===P)return e;const r=L(e);if(!Ze(r,t))return au(e,r,t);const n=r[t];return e.finalized_||!K(n)?n:n===ur(e.base_,t)?(fr(e),e.copy_[t]=ke(n,e)):n},has(e,t){return t in L(e)},ownKeys(e){return Reflect.ownKeys(L(e))},set(e,t,r){const n=Gs(L(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const s=ur(L(e),t),i=s==null?void 0:s[P];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(ru(r,s)&&(r!==void 0||Ze(e.base_,t)))return!0;fr(e),ie(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ur(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,fr(e),ie(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=L(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){I(11)},getPrototypeOf(e){return be(e.base_)},setPrototypeOf(){I(12)}},Ye={};Ie(Br,(e,t)=>{Ye[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ye.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&I(13),Ye.set.call(this,e,t,void 0)};Ye.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&I(14),Br.set.call(this,e[0],t,r,e[0])};function ur(e,t){const r=e[P];return(r?L(r):e)[t]}function au(e,t,r){var s;const n=Gs(t,r);return n?"value"in n?n.value:(s=n.get)==null?void 0:s.call(e.draft_):void 0}function Gs(e,t){if(!(t in e))return;let r=be(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=be(r)}}function ie(e){e.modified_||(e.modified_=!0,e.parent_&&ie(e.parent_))}function fr(e){e.copy_||(e.copy_=br(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Vs=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const o=this;return function(u=i,...f){return o.produce(u,c=>r.call(this,c,...f))}}typeof r!="function"&&I(6),n!==void 0&&typeof n!="function"&&I(7);let s;if(K(t)){const i=Pn(this),o=ke(t,void 0);let a=!0;try{s=r(o),a=!1}finally{a?Er(i):Sr(i)}return On(i,n),vn(s,i)}else if(!t||typeof t!="object"){if(s=r(t),s===void 0&&(s=t),s===Bt&&(s=void 0),this.autoFreeze_&&zt(s,!0),n){const i=[],o=[];Ee("Patches").generateReplacementPatches_(t,s,i,o),n(i,o)}return s}else I(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...a)=>this.produceWithPatches(o,u=>t(u,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){K(e)||I(8),oe(e)&&(e=Ks(e));const t=Pn(this),r=ke(e,void 0);return r[P].isManual_=!0,Sr(t),r}finishDraft(e,t){const r=e&&e[P];(!r||!r.isManual_)&&I(9);const{scope_:n}=r;return On(n,t),vn(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));const n=Ee("Patches").applyPatches_;return oe(e)?n(e,t):this.produce(e,s=>n(s,t))}};function ke(e,t){const r=ut(e)?Ee("MapSet").proxyMap_(e,t):ft(e)?Ee("MapSet").proxySet_(e,t):ou(e,t);return(t?t.scope_:At()).drafts_.push(r),r}function Ks(e){return oe(e)||I(10,e),Xs(e)}function Xs(e){if(!K(e)||Ht(e))return e;const t=e[P];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=br(e,t.scope_.immer_.useStrictShallowCopy_)}else r=br(e,!0);return Ie(r,(n,s)=>{Ws(r,n,Xs(s))}),t&&(t.finalized_=!1),r}function uu(){process.env.NODE_ENV!=="production"&&Hs.push('Sets cannot have "replace" patches.',function(g){return"Unsupported patch operation: "+g},function(g){return"Cannot apply patch, path doesn't resolve: "+g},"Patching reserved attributes like __proto__, prototype and constructor is not allowed");const t="replace",r="add",n="remove";function s(g,b,_,y){switch(g.type_){case 0:case 2:return o(g,b,_,y);case 1:return i(g,b,_,y);case 3:return a(g,b,_,y)}}function i(g,b,_,y){let{base_:p,assigned_:m}=g,x=g.copy_;x.length<p.length&&([p,x]=[x,p],[_,y]=[y,_]);for(let S=0;S<p.length;S++)if(m[S]&&x[S]!==p[S]){const T=b.concat([S]);_.push({op:t,path:T,value:w(x[S])}),y.push({op:t,path:T,value:w(p[S])})}for(let S=p.length;S<x.length;S++){const T=b.concat([S]);_.push({op:r,path:T,value:w(x[S])})}for(let S=x.length-1;p.length<=S;--S){const T=b.concat([S]);y.push({op:n,path:T})}}function o(g,b,_,y){const{base_:p,copy_:m}=g;Ie(g.assigned_,(x,S)=>{const T=ar(p,x),$=ar(m,x),R=S?Ze(p,x)?t:r:n;if(T===$&&R===t)return;const v=b.concat(x);_.push(R===n?{op:R,path:v}:{op:R,path:v,value:$}),y.push(R===r?{op:n,path:v}:R===n?{op:r,path:v,value:w(T)}:{op:t,path:v,value:w(T)})})}function a(g,b,_,y){let{base_:p,copy_:m}=g,x=0;p.forEach(S=>{if(!m.has(S)){const T=b.concat([x]);_.push({op:n,path:T,value:S}),y.unshift({op:r,path:T,value:S})}x++}),x=0,m.forEach(S=>{if(!p.has(S)){const T=b.concat([x]);_.push({op:r,path:T,value:S}),y.unshift({op:n,path:T,value:S})}x++})}function u(g,b,_,y){_.push({op:t,path:[],value:b===Bt?void 0:b}),y.push({op:t,path:[],value:g})}function f(g,b){return b.forEach(_=>{const{path:y,op:p}=_;let m=g;for(let $=0;$<y.length-1;$++){const R=_e(m);let v=y[$];typeof v!="string"&&typeof v!="number"&&(v=""+v),(R===0||R===1)&&(v==="__proto__"||v==="constructor")&&I(19),typeof m=="function"&&v==="prototype"&&I(19),m=ar(m,v),typeof m!="object"&&I(18,y.join("/"))}const x=_e(m),S=c(_.value),T=y[y.length-1];switch(p){case t:switch(x){case 2:return m.set(T,S);case 3:I(16);default:return m[T]=S}case r:switch(x){case 1:return T==="-"?m.push(S):m.splice(T,0,S);case 2:return m.set(T,S);case 3:return m.add(S);default:return m[T]=S}case n:switch(x){case 1:return m.splice(T,1);case 2:return m.delete(T);case 3:return m.delete(_.value);default:return delete m[T]}default:I(17,p)}}),g}function c(g){if(!K(g))return g;if(Array.isArray(g))return g.map(c);if(ut(g))return new Map(Array.from(g.entries()).map(([_,y])=>[_,c(y)]));if(ft(g))return new Set(Array.from(g).map(c));const b=Object.create(be(g));for(const _ in g)b[_]=c(g[_]);return Ze(g,De)&&(b[De]=g[De]),b}function w(g){return oe(g)?c(g):g}Js("Patches",{applyPatches_:f,generatePatches_:s,generateReplacementPatches_:u})}function fu(){class e extends Map{constructor(u,f){super(),this[P]={type_:2,parent_:f,scope_:f?f.scope_:At(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:u,draft_:this,isManual_:!1,revoked_:!1}}get size(){return L(this[P]).size}has(u){return L(this[P]).has(u)}set(u,f){const c=this[P];return o(c),(!L(c).has(u)||L(c).get(u)!==f)&&(r(c),ie(c),c.assigned_.set(u,!0),c.copy_.set(u,f),c.assigned_.set(u,!0)),this}delete(u){if(!this.has(u))return!1;const f=this[P];return o(f),r(f),ie(f),f.base_.has(u)?f.assigned_.set(u,!1):f.assigned_.delete(u),f.copy_.delete(u),!0}clear(){const u=this[P];o(u),L(u).size&&(r(u),ie(u),u.assigned_=new Map,Ie(u.base_,f=>{u.assigned_.set(f,!1)}),u.copy_.clear())}forEach(u,f){const c=this[P];L(c).forEach((w,g,b)=>{u.call(f,this.get(g),g,this)})}get(u){const f=this[P];o(f);const c=L(f).get(u);if(f.finalized_||!K(c)||c!==f.base_.get(u))return c;const w=ke(c,f);return r(f),f.copy_.set(u,w),w}keys(){return L(this[P]).keys()}values(){const u=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const f=u.next();return f.done?f:{done:!1,value:this.get(f.value)}}}}entries(){const u=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const f=u.next();if(f.done)return f;const c=this.get(f.value);return{done:!1,value:[f.value,c]}}}}[Symbol.iterator](){return this.entries()}}function t(a,u){return new e(a,u)}function r(a){a.copy_||(a.assigned_=new Map,a.copy_=new Map(a.base_))}class n extends Set{constructor(u,f){super(),this[P]={type_:3,parent_:f,scope_:f?f.scope_:At(),modified_:!1,finalized_:!1,copy_:void 0,base_:u,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return L(this[P]).size}has(u){const f=this[P];return o(f),f.copy_?!!(f.copy_.has(u)||f.drafts_.has(u)&&f.copy_.has(f.drafts_.get(u))):f.base_.has(u)}add(u){const f=this[P];return o(f),this.has(u)||(i(f),ie(f),f.copy_.add(u)),this}delete(u){if(!this.has(u))return!1;const f=this[P];return o(f),i(f),ie(f),f.copy_.delete(u)||(f.drafts_.has(u)?f.copy_.delete(f.drafts_.get(u)):!1)}clear(){const u=this[P];o(u),L(u).size&&(i(u),ie(u),u.copy_.clear())}values(){const u=this[P];return o(u),i(u),u.copy_.values()}entries(){const u=this[P];return o(u),i(u),u.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(u,f){const c=this.values();let w=c.next();for(;!w.done;)u.call(f,w.value,w.value,this),w=c.next()}}function s(a,u){return new n(a,u)}function i(a){a.copy_||(a.copy_=new Set,a.base_.forEach(u=>{if(K(u)){const f=ke(u,a);a.drafts_.set(u,f),a.copy_.add(f)}else a.copy_.add(u)}))}function o(a){a.revoked_&&I(3,JSON.stringify(L(a)))}Js("MapSet",{proxyMap_:t,proxySet_:s})}var W=new Vs,Ce=W.produce,cu=W.produceWithPatches.bind(W),lu=W.setAutoFreeze.bind(W),hu=W.setUseStrictShallowCopy.bind(W),du=W.applyPatches.bind(W),pu=W.createDraft.bind(W),gu=W.finishDraft.bind(W);function yu(e){return e}function mu(e){return e}const wu=Object.freeze(Object.defineProperty({__proto__:null,Immer:Vs,applyPatches:du,castDraft:yu,castImmutable:mu,createDraft:pu,current:Ks,enableMapSet:fu,enablePatches:uu,finishDraft:gu,freeze:zt,immerable:De,isDraft:oe,isDraftable:K,nothing:Bt,original:tu,produce:Ce,produceWithPatches:cu,setAutoFreeze:lu,setUseStrictShallowCopy:hu},Symbol.toStringTag,{value:"Module"}));let bu=()=>({emit(e,...t){for(let r=0,n=this.events[e]||[],s=n.length;r<s;r++)n[r](...t)},events:{},on(e,t){var r;return((r=this.events)[e]||(r[e]=[])).push(t),()=>{var n;this.events[e]=(n=this.events[e])==null?void 0:n.filter(s=>t!==s)}}});class qt{constructor(){B(this,"emitter");this.emitter=bu()}on(t,r){return this.emitter.on(t,r)}once(t,r){const n=this.emitter.on(t,s=>{n(),r(s)})}emit(t,...r){this.emitter.emit(t,...r)}flushEvents(){this.emitter.events={}}}var ps,gs;class _u extends(gs=Error,ps=Symbol.toStringTag,gs){constructor(){super("[Luminix] Embed element not found. Make sure to include the `@luminixEmbed()` directive in your Blade template.");B(this,ps,"NoEmbedException")}}const Zs=(e,t="data")=>{if(!document.querySelector("#luminix-embed"))throw new _u;const r=document.getElementById(`luminix-${t}::`+e);return r?r.dataset.json&&r.dataset.value?JSON.parse(r.dataset.value):r.dataset.value:null};var Qs=typeof global=="object"&&global&&global.Object===Object&&global,Eu=typeof self=="object"&&self&&self.Object===Object&&self,Q=Qs||Eu||Function("return this")(),X=Q.Symbol,Ys=Object.prototype,Su=Ys.hasOwnProperty,Tu=Ys.toString,Ge=X?X.toStringTag:void 0;function Au(e){var t=Su.call(e,Ge),r=e[Ge];try{e[Ge]=void 0;var n=!0}catch{}var s=Tu.call(e);return n&&(t?e[Ge]=r:delete e[Ge]),s}var xu=Object.prototype,Ru=xu.toString;function Ou(e){return Ru.call(e)}var Pu="[object Null]",vu="[object Undefined]",Cn=X?X.toStringTag:void 0;function Te(e){return e==null?e===void 0?vu:Pu:Cn&&Cn in Object(e)?Au(e):Ou(e)}function te(e){return e!=null&&typeof e=="object"}var $u="[object Symbol]";function Wt(e){return typeof e=="symbol"||te(e)&&Te(e)==$u}function zr(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}var H=Array.isArray,Nn=X?X.prototype:void 0,Dn=Nn?Nn.toString:void 0;function Jt(e){if(typeof e=="string")return e;if(H(e))return zr(e,Jt)+"";if(Wt(e))return Dn?Dn.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Cu=/\s/;function Nu(e){for(var t=e.length;t--&&Cu.test(e.charAt(t)););return t}var Du=/^\s+/;function ks(e){return e&&e.slice(0,Nu(e)+1).replace(Du,"")}function q(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fn=NaN,Fu=/^[-+]0x[0-9a-f]+$/i,Iu=/^0b[01]+$/i,Lu=/^0o[0-7]+$/i,ju=parseInt;function Tr(e){if(typeof e=="number")return e;if(Wt(e))return Fn;if(q(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=q(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ks(e);var r=Iu.test(e);return r||Lu.test(e)?ju(e.slice(2),r?2:8):Fu.test(e)?Fn:+e}var In=1/0,Mu=17976931348623157e292;function Uu(e){if(!e)return e===0?e:0;if(e=Tr(e),e===In||e===-In){var t=e<0?-1:1;return t*Mu}return e===e?e:0}function Hr(e){var t=Uu(e),r=t%1;return t===t?r?t-r:t:0}function ei(e){return e}var Bu="[object AsyncFunction]",zu="[object Function]",Hu="[object GeneratorFunction]",qu="[object Proxy]";function qr(e){if(!q(e))return!1;var t=Te(e);return t==zu||t==Hu||t==Bu||t==qu}var cr=Q["__core-js_shared__"],Ln=function(){var e=/[^.]+$/.exec(cr&&cr.keys&&cr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Wu(e){return!!Ln&&Ln in e}var Ju=Function.prototype,Gu=Ju.toString;function Ae(e){if(e!=null){try{return Gu.call(e)}catch{}try{return e+""}catch{}}return""}var Vu=/[\\^$.*+?()[\]{}|]/g,Ku=/^\[object .+?Constructor\]$/,Xu=Function.prototype,Zu=Object.prototype,Qu=Xu.toString,Yu=Zu.hasOwnProperty,ku=RegExp("^"+Qu.call(Yu).replace(Vu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ef(e){if(!q(e)||Wu(e))return!1;var t=qr(e)?ku:Ku;return t.test(Ae(e))}function tf(e,t){return e==null?void 0:e[t]}function xe(e,t){var r=tf(e,t);return ef(r)?r:void 0}var Ar=xe(Q,"WeakMap"),jn=Object.create,rf=function(){function e(){}return function(t){if(!q(t))return{};if(jn)return jn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function nf(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wr(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var sf=800,of=16,af=Date.now;function uf(e){var t=0,r=0;return function(){var n=af(),s=of-(n-r);if(r=n,s>0){if(++t>=sf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ff(e){return function(){return e}}var Ot=function(){try{var e=xe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),cf=Ot?function(e,t){return Ot(e,"toString",{configurable:!0,enumerable:!1,value:ff(t),writable:!0})}:ei,ti=uf(cf);function lf(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function hf(e,t,r,n){for(var s=e.length,i=r+-1;++i<s;)if(t(e[i],i,e))return i;return-1}function df(e){return e!==e}function pf(e,t,r){for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}function ri(e,t,r){return t===t?pf(e,t,r):hf(e,df,r)}var gf=9007199254740991,yf=/^(?:0|[1-9]\d*)$/;function Gt(e,t){var r=typeof e;return t=t??gf,!!t&&(r=="number"||r!="symbol"&&yf.test(e))&&e>-1&&e%1==0&&e<t}function Jr(e,t,r){t=="__proto__"&&Ot?Ot(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ct(e,t){return e===t||e!==e&&t!==t}var mf=Object.prototype,wf=mf.hasOwnProperty;function Gr(e,t,r){var n=e[t];(!(wf.call(e,t)&&ct(n,r))||r===void 0&&!(t in e))&&Jr(e,t,r)}function Be(e,t,r,n){var s=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var a=t[i],u=void 0;u===void 0&&(u=e[a]),s?Jr(r,a,u):Gr(r,a,u)}return r}var Mn=Math.max;function ni(e,t,r){return t=Mn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,s=-1,i=Mn(n.length-t,0),o=Array(i);++s<i;)o[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=r(o),nf(e,this,a)}}function bf(e,t){return ti(ni(e,t,ei),e+"")}var _f=9007199254740991;function Vr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_f}function lt(e){return e!=null&&Vr(e.length)&&!qr(e)}function Ef(e,t,r){if(!q(r))return!1;var n=typeof t;return(n=="number"?lt(r)&&Gt(t,r.length):n=="string"&&t in r)?ct(r[t],e):!1}function Sf(e){return bf(function(t,r){var n=-1,s=r.length,i=s>1?r[s-1]:void 0,o=s>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(s--,i):void 0,o&&Ef(r[0],r[1],o)&&(i=s<3?void 0:i,s=1),t=Object(t);++n<s;){var a=r[n];a&&e(t,a,n,i)}return t})}var Tf=Object.prototype;function Vt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Tf;return e===r}function Af(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var xf="[object Arguments]";function Un(e){return te(e)&&Te(e)==xf}var si=Object.prototype,Rf=si.hasOwnProperty,Of=si.propertyIsEnumerable,Le=Un(function(){return arguments}())?Un:function(e){return te(e)&&Rf.call(e,"callee")&&!Of.call(e,"callee")};function Pf(){return!1}var ii=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bn=ii&&typeof module=="object"&&module&&!module.nodeType&&module,vf=Bn&&Bn.exports===ii,zn=vf?Q.Buffer:void 0,$f=zn?zn.isBuffer:void 0,je=$f||Pf,Cf="[object Arguments]",Nf="[object Array]",Df="[object Boolean]",Ff="[object Date]",If="[object Error]",Lf="[object Function]",jf="[object Map]",Mf="[object Number]",Uf="[object Object]",Bf="[object RegExp]",zf="[object Set]",Hf="[object String]",qf="[object WeakMap]",Wf="[object ArrayBuffer]",Jf="[object DataView]",Gf="[object Float32Array]",Vf="[object Float64Array]",Kf="[object Int8Array]",Xf="[object Int16Array]",Zf="[object Int32Array]",Qf="[object Uint8Array]",Yf="[object Uint8ClampedArray]",kf="[object Uint16Array]",ec="[object Uint32Array]",D={};D[Gf]=D[Vf]=D[Kf]=D[Xf]=D[Zf]=D[Qf]=D[Yf]=D[kf]=D[ec]=!0;D[Cf]=D[Nf]=D[Wf]=D[Df]=D[Jf]=D[Ff]=D[If]=D[Lf]=D[jf]=D[Mf]=D[Uf]=D[Bf]=D[zf]=D[Hf]=D[qf]=!1;function tc(e){return te(e)&&Vr(e.length)&&!!D[Te(e)]}function Kr(e){return function(t){return e(t)}}var oi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ke=oi&&typeof module=="object"&&module&&!module.nodeType&&module,rc=Ke&&Ke.exports===oi,lr=rc&&Qs.process,Me=function(){try{var e=Ke&&Ke.require&&Ke.require("util").types;return e||lr&&lr.binding&&lr.binding("util")}catch{}}(),Hn=Me&&Me.isTypedArray,Kt=Hn?Kr(Hn):tc,nc=Object.prototype,sc=nc.hasOwnProperty;function ai(e,t){var r=H(e),n=!r&&Le(e),s=!r&&!n&&je(e),i=!r&&!n&&!s&&Kt(e),o=r||n||s||i,a=o?Af(e.length,String):[],u=a.length;for(var f in e)(t||sc.call(e,f))&&!(o&&(f=="length"||s&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Gt(f,u)))&&a.push(f);return a}function ui(e,t){return function(r){return e(t(r))}}var ic=ui(Object.keys,Object),oc=Object.prototype,ac=oc.hasOwnProperty;function fi(e){if(!Vt(e))return ic(e);var t=[];for(var r in Object(e))ac.call(e,r)&&r!="constructor"&&t.push(r);return t}function Xt(e){return lt(e)?ai(e):fi(e)}function uc(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var fc=Object.prototype,cc=fc.hasOwnProperty;function lc(e){if(!q(e))return uc(e);var t=Vt(e),r=[];for(var n in e)n=="constructor"&&(t||!cc.call(e,n))||r.push(n);return r}function ht(e){return lt(e)?ai(e,!0):lc(e)}var hc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dc=/^\w*$/;function pc(e,t){if(H(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Wt(e)?!0:dc.test(e)||!hc.test(e)||t!=null&&e in Object(t)}var et=xe(Object,"create");function gc(){this.__data__=et?et(null):{},this.size=0}function yc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mc="__lodash_hash_undefined__",wc=Object.prototype,bc=wc.hasOwnProperty;function _c(e){var t=this.__data__;if(et){var r=t[e];return r===mc?void 0:r}return bc.call(t,e)?t[e]:void 0}var Ec=Object.prototype,Sc=Ec.hasOwnProperty;function Tc(e){var t=this.__data__;return et?t[e]!==void 0:Sc.call(t,e)}var Ac="__lodash_hash_undefined__";function xc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=et&&t===void 0?Ac:t,this}function Se(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Se.prototype.clear=gc;Se.prototype.delete=yc;Se.prototype.get=_c;Se.prototype.has=Tc;Se.prototype.set=xc;function Rc(){this.__data__=[],this.size=0}function Zt(e,t){for(var r=e.length;r--;)if(ct(e[r][0],t))return r;return-1}var Oc=Array.prototype,Pc=Oc.splice;function vc(e){var t=this.__data__,r=Zt(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Pc.call(t,r,1),--this.size,!0}function $c(e){var t=this.__data__,r=Zt(t,e);return r<0?void 0:t[r][1]}function Cc(e){return Zt(this.__data__,e)>-1}function Nc(e,t){var r=this.__data__,n=Zt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ae(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ae.prototype.clear=Rc;ae.prototype.delete=vc;ae.prototype.get=$c;ae.prototype.has=Cc;ae.prototype.set=Nc;var tt=xe(Q,"Map");function Dc(){this.size=0,this.__data__={hash:new Se,map:new(tt||ae),string:new Se}}function Fc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qt(e,t){var r=e.__data__;return Fc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ic(e){var t=Qt(this,e).delete(e);return this.size-=t?1:0,t}function Lc(e){return Qt(this,e).get(e)}function jc(e){return Qt(this,e).has(e)}function Mc(e,t){var r=Qt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ue(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ue.prototype.clear=Dc;ue.prototype.delete=Ic;ue.prototype.get=Lc;ue.prototype.has=jc;ue.prototype.set=Mc;var Uc="Expected a function";function Xr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Uc);var r=function(){var n=arguments,s=t?t.apply(this,n):n[0],i=r.cache;if(i.has(s))return i.get(s);var o=e.apply(this,n);return r.cache=i.set(s,o)||i,o};return r.cache=new(Xr.Cache||ue),r}Xr.Cache=ue;var Bc=500;function zc(e){var t=Xr(e,function(n){return r.size===Bc&&r.clear(),n}),r=t.cache;return t}var Hc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qc=/\\(\\)?/g,Wc=zc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Hc,function(r,n,s,i){t.push(s?i.replace(qc,"$1"):n||r)}),t});function fe(e){return e==null?"":Jt(e)}function ze(e,t){return H(e)?e:pc(e,t)?[e]:Wc(fe(e))}function rt(e){if(typeof e=="string"||Wt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Zr(e,t){t=ze(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[rt(t[r++])];return r&&r==n?e:void 0}function Jc(e,t,r){var n=e==null?void 0:Zr(e,t);return n===void 0?r:n}function Qr(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}var qn=X?X.isConcatSpreadable:void 0;function Gc(e){return H(e)||Le(e)||!!(qn&&e&&e[qn])}function Vc(e,t,r,n,s){var i=-1,o=e.length;for(r||(r=Gc),s||(s=[]);++i<o;){var a=e[i];r(a)?Qr(s,a):s[s.length]=a}return s}function Kc(e){var t=e==null?0:e.length;return t?Vc(e):[]}function ci(e){return ti(ni(e,void 0,Kc),e+"")}var Yr=ui(Object.getPrototypeOf,Object),Xc="[object Object]",Zc=Function.prototype,Qc=Object.prototype,li=Zc.toString,Yc=Qc.hasOwnProperty,kc=li.call(Object);function hi(e){if(!te(e)||Te(e)!=Xc)return!1;var t=Yr(e);if(t===null)return!0;var r=Yc.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&li.call(r)==kc}function di(e,t,r){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),r=r>s?s:r,r<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(s);++n<s;)i[n]=e[n+t];return i}function kr(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:di(e,t,r)}var el="\\ud800-\\udfff",tl="\\u0300-\\u036f",rl="\\ufe20-\\ufe2f",nl="\\u20d0-\\u20ff",sl=tl+rl+nl,il="\\ufe0e\\ufe0f",ol="\\u200d",al=RegExp("["+ol+el+sl+il+"]");function Yt(e){return al.test(e)}function ul(e){return e.split("")}var pi="\\ud800-\\udfff",fl="\\u0300-\\u036f",cl="\\ufe20-\\ufe2f",ll="\\u20d0-\\u20ff",hl=fl+cl+ll,dl="\\ufe0e\\ufe0f",pl="["+pi+"]",xr="["+hl+"]",Rr="\\ud83c[\\udffb-\\udfff]",gl="(?:"+xr+"|"+Rr+")",gi="[^"+pi+"]",yi="(?:\\ud83c[\\udde6-\\uddff]){2}",mi="[\\ud800-\\udbff][\\udc00-\\udfff]",yl="\\u200d",wi=gl+"?",bi="["+dl+"]?",ml="(?:"+yl+"(?:"+[gi,yi,mi].join("|")+")"+bi+wi+")*",wl=bi+wi+ml,bl="(?:"+[gi+xr+"?",xr,yi,mi,pl].join("|")+")",_l=RegExp(Rr+"(?="+Rr+")|"+bl+wl,"g");function El(e){return e.match(_l)||[]}function Pt(e){return Yt(e)?El(e):ul(e)}function _i(e){return function(t){t=fe(t);var r=Yt(t)?Pt(t):void 0,n=r?r[0]:t.charAt(0),s=r?kr(r,1).join(""):t.slice(1);return n[e]()+s}}var vt=_i("toUpperCase");function Ei(e){return vt(fe(e).toLowerCase())}function Sl(e,t,r,n){for(var s=-1,i=e==null?0:e.length;++s<i;)r=t(r,e[s],s,e);return r}function Tl(e){return function(t){return e==null?void 0:e[t]}}var Al={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},xl=Tl(Al),Rl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ol="\\u0300-\\u036f",Pl="\\ufe20-\\ufe2f",vl="\\u20d0-\\u20ff",$l=Ol+Pl+vl,Cl="["+$l+"]",Nl=RegExp(Cl,"g");function Dl(e){return e=fe(e),e&&e.replace(Rl,xl).replace(Nl,"")}var Fl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Il(e){return e.match(Fl)||[]}var Ll=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function jl(e){return Ll.test(e)}var Si="\\ud800-\\udfff",Ml="\\u0300-\\u036f",Ul="\\ufe20-\\ufe2f",Bl="\\u20d0-\\u20ff",zl=Ml+Ul+Bl,Ti="\\u2700-\\u27bf",Ai="a-z\\xdf-\\xf6\\xf8-\\xff",Hl="\\xac\\xb1\\xd7\\xf7",ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wl="\\u2000-\\u206f",Jl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xi="A-Z\\xc0-\\xd6\\xd8-\\xde",Gl="\\ufe0e\\ufe0f",Ri=Hl+ql+Wl+Jl,Oi="['’]",Wn="["+Ri+"]",Vl="["+zl+"]",Pi="\\d+",Kl="["+Ti+"]",vi="["+Ai+"]",$i="[^"+Si+Ri+Pi+Ti+Ai+xi+"]",Xl="\\ud83c[\\udffb-\\udfff]",Zl="(?:"+Vl+"|"+Xl+")",Ql="[^"+Si+"]",Ci="(?:\\ud83c[\\udde6-\\uddff]){2}",Ni="[\\ud800-\\udbff][\\udc00-\\udfff]",ve="["+xi+"]",Yl="\\u200d",Jn="(?:"+vi+"|"+$i+")",kl="(?:"+ve+"|"+$i+")",Gn="(?:"+Oi+"(?:d|ll|m|re|s|t|ve))?",Vn="(?:"+Oi+"(?:D|LL|M|RE|S|T|VE))?",Di=Zl+"?",Fi="["+Gl+"]?",eh="(?:"+Yl+"(?:"+[Ql,Ci,Ni].join("|")+")"+Fi+Di+")*",th="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nh=Fi+Di+eh,sh="(?:"+[Kl,Ci,Ni].join("|")+")"+nh,ih=RegExp([ve+"?"+vi+"+"+Gn+"(?="+[Wn,ve,"$"].join("|")+")",kl+"+"+Vn+"(?="+[Wn,ve+Jn,"$"].join("|")+")",ve+"?"+Jn+"+"+Gn,ve+"+"+Vn,rh,th,Pi,sh].join("|"),"g");function oh(e){return e.match(ih)||[]}function ah(e,t,r){return e=fe(e),t=t,t===void 0?jl(e)?oh(e):Il(e):e.match(t)||[]}var uh="['’]",fh=RegExp(uh,"g");function kt(e){return function(t){return Sl(ah(Dl(t).replace(fh,"")),e,"")}}var ch=kt(function(e,t,r){return t=t.toLowerCase(),e+(r?Ei(t):t)});function lh(){this.__data__=new ae,this.size=0}function hh(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function dh(e){return this.__data__.get(e)}function ph(e){return this.__data__.has(e)}var gh=200;function yh(e,t){var r=this.__data__;if(r instanceof ae){var n=r.__data__;if(!tt||n.length<gh-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ue(n)}return r.set(e,t),this.size=r.size,this}function ee(e){var t=this.__data__=new ae(e);this.size=t.size}ee.prototype.clear=lh;ee.prototype.delete=hh;ee.prototype.get=dh;ee.prototype.has=ph;ee.prototype.set=yh;function mh(e,t){return e&&Be(t,Xt(t),e)}function wh(e,t){return e&&Be(t,ht(t),e)}var Ii=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Kn=Ii&&typeof module=="object"&&module&&!module.nodeType&&module,bh=Kn&&Kn.exports===Ii,Xn=bh?Q.Buffer:void 0,Zn=Xn?Xn.allocUnsafe:void 0;function Li(e,t){if(t)return e.slice();var r=e.length,n=Zn?Zn(r):new e.constructor(r);return e.copy(n),n}function _h(e,t){for(var r=-1,n=e==null?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}function ji(){return[]}var Eh=Object.prototype,Sh=Eh.propertyIsEnumerable,Qn=Object.getOwnPropertySymbols,en=Qn?function(e){return e==null?[]:(e=Object(e),_h(Qn(e),function(t){return Sh.call(e,t)}))}:ji;function Th(e,t){return Be(e,en(e),t)}var Ah=Object.getOwnPropertySymbols,Mi=Ah?function(e){for(var t=[];e;)Qr(t,en(e)),e=Yr(e);return t}:ji;function xh(e,t){return Be(e,Mi(e),t)}function Ui(e,t,r){var n=t(e);return H(e)?n:Qr(n,r(e))}function Or(e){return Ui(e,Xt,en)}function Bi(e){return Ui(e,ht,Mi)}var Pr=xe(Q,"DataView"),vr=xe(Q,"Promise"),$r=xe(Q,"Set"),Yn="[object Map]",Rh="[object Object]",kn="[object Promise]",es="[object Set]",ts="[object WeakMap]",rs="[object DataView]",Oh=Ae(Pr),Ph=Ae(tt),vh=Ae(vr),$h=Ae($r),Ch=Ae(Ar),V=Te;(Pr&&V(new Pr(new ArrayBuffer(1)))!=rs||tt&&V(new tt)!=Yn||vr&&V(vr.resolve())!=kn||$r&&V(new $r)!=es||Ar&&V(new Ar)!=ts)&&(V=function(e){var t=Te(e),r=t==Rh?e.constructor:void 0,n=r?Ae(r):"";if(n)switch(n){case Oh:return rs;case Ph:return Yn;case vh:return kn;case $h:return es;case Ch:return ts}return t});var Nh=Object.prototype,Dh=Nh.hasOwnProperty;function Fh(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Dh.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var $t=Q.Uint8Array;function tn(e){var t=new e.constructor(e.byteLength);return new $t(t).set(new $t(e)),t}function Ih(e,t){var r=t?tn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Lh=/\w*$/;function jh(e){var t=new e.constructor(e.source,Lh.exec(e));return t.lastIndex=e.lastIndex,t}var ns=X?X.prototype:void 0,ss=ns?ns.valueOf:void 0;function Mh(e){return ss?Object(ss.call(e)):{}}function zi(e,t){var r=t?tn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Uh="[object Boolean]",Bh="[object Date]",zh="[object Map]",Hh="[object Number]",qh="[object RegExp]",Wh="[object Set]",Jh="[object String]",Gh="[object Symbol]",Vh="[object ArrayBuffer]",Kh="[object DataView]",Xh="[object Float32Array]",Zh="[object Float64Array]",Qh="[object Int8Array]",Yh="[object Int16Array]",kh="[object Int32Array]",ed="[object Uint8Array]",td="[object Uint8ClampedArray]",rd="[object Uint16Array]",nd="[object Uint32Array]";function sd(e,t,r){var n=e.constructor;switch(t){case Vh:return tn(e);case Uh:case Bh:return new n(+e);case Kh:return Ih(e,r);case Xh:case Zh:case Qh:case Yh:case kh:case ed:case td:case rd:case nd:return zi(e,r);case zh:return new n;case Hh:case Jh:return new n(e);case qh:return jh(e);case Wh:return new n;case Gh:return Mh(e)}}function Hi(e){return typeof e.constructor=="function"&&!Vt(e)?rf(Yr(e)):{}}var id="[object Map]";function od(e){return te(e)&&V(e)==id}var is=Me&&Me.isMap,ad=is?Kr(is):od,ud="[object Set]";function fd(e){return te(e)&&V(e)==ud}var os=Me&&Me.isSet,cd=os?Kr(os):fd,ld=1,hd=2,dd=4,qi="[object Arguments]",pd="[object Array]",gd="[object Boolean]",yd="[object Date]",md="[object Error]",Wi="[object Function]",wd="[object GeneratorFunction]",bd="[object Map]",_d="[object Number]",Ji="[object Object]",Ed="[object RegExp]",Sd="[object Set]",Td="[object String]",Ad="[object Symbol]",xd="[object WeakMap]",Rd="[object ArrayBuffer]",Od="[object DataView]",Pd="[object Float32Array]",vd="[object Float64Array]",$d="[object Int8Array]",Cd="[object Int16Array]",Nd="[object Int32Array]",Dd="[object Uint8Array]",Fd="[object Uint8ClampedArray]",Id="[object Uint16Array]",Ld="[object Uint32Array]",N={};N[qi]=N[pd]=N[Rd]=N[Od]=N[gd]=N[yd]=N[Pd]=N[vd]=N[$d]=N[Cd]=N[Nd]=N[bd]=N[_d]=N[Ji]=N[Ed]=N[Sd]=N[Td]=N[Ad]=N[Dd]=N[Fd]=N[Id]=N[Ld]=!0;N[md]=N[Wi]=N[xd]=!1;function Xe(e,t,r,n,s,i){var o,a=t&ld,u=t&hd,f=tⅆif(r&&(o=s?r(e,n,s,i):r(e)),o!==void 0)return o;if(!q(e))return e;var c=H(e);if(c){if(o=Fh(e),!a)return Wr(e,o)}else{var w=V(e),g=w==Wi||w==wd;if(je(e))return Li(e,a);if(w==Ji||w==qi||g&&!s){if(o=u||g?{}:Hi(e),!a)return u?xh(e,wh(o,e)):Th(e,mh(o,e))}else{if(!N[w])return s?e:{};o=sd(e,w,a)}}i||(i=new ee);var b=i.get(e);if(b)return b;i.set(e,o),cd(e)?e.forEach(function(p){o.add(Xe(p,t,r,p,e,i))}):ad(e)&&e.forEach(function(p,m){o.set(m,Xe(p,t,r,m,e,i))});var _=f?u?Bi:Or:u?ht:Xt,y=c?void 0:_(e);return lf(y||e,function(p,m){y&&(m=p,p=e[m]),Gr(o,m,Xe(p,t,r,m,e,i))}),o}var jd=1,Md=4;function Ud(e){return Xe(e,jd|Md)}var Bd="__lodash_hash_undefined__";function zd(e){return this.__data__.set(e,Bd),this}function Hd(e){return this.__data__.has(e)}function Ct(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ue;++t<r;)this.add(e[t])}Ct.prototype.add=Ct.prototype.push=zd;Ct.prototype.has=Hd;function qd(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Wd(e,t){return e.has(t)}var Jd=1,Gd=2;function Gi(e,t,r,n,s,i){var o=r&Jd,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var f=i.get(e),c=i.get(t);if(f&&c)return f==t&&c==e;var w=-1,g=!0,b=r&Gd?new Ct:void 0;for(i.set(e,t),i.set(t,e);++w<a;){var _=e[w],y=t[w];if(n)var p=o?n(y,_,w,t,e,i):n(_,y,w,e,t,i);if(p!==void 0){if(p)continue;g=!1;break}if(b){if(!qd(t,function(m,x){if(!Wd(b,x)&&(_===m||s(_,m,r,n,i)))return b.push(x)})){g=!1;break}}else if(!(_===y||s(_,y,r,n,i))){g=!1;break}}return i.delete(e),i.delete(t),g}function Vd(e){var t=-1,r=Array(e.size);return e.forEach(function(n,s){r[++t]=[s,n]}),r}function Kd(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Xd=1,Zd=2,Qd="[object Boolean]",Yd="[object Date]",kd="[object Error]",ep="[object Map]",tp="[object Number]",rp="[object RegExp]",np="[object Set]",sp="[object String]",ip="[object Symbol]",op="[object ArrayBuffer]",ap="[object DataView]",as=X?X.prototype:void 0,hr=as?as.valueOf:void 0;function up(e,t,r,n,s,i,o){switch(r){case ap:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case op:return!(e.byteLength!=t.byteLength||!i(new $t(e),new $t(t)));case Qd:case Yd:case tp:return ct(+e,+t);case kd:return e.name==t.name&&e.message==t.message;case rp:case sp:return e==t+"";case ep:var a=Vd;case np:var u=n&Xd;if(a||(a=Kd),e.size!=t.size&&!u)return!1;var f=o.get(e);if(f)return f==t;n|=Zd,o.set(e,t);var c=Gi(a(e),a(t),n,s,i,o);return o.delete(e),c;case ip:if(hr)return hr.call(e)==hr.call(t)}return!1}var fp=1,cp=Object.prototype,lp=cp.hasOwnProperty;function hp(e,t,r,n,s,i){var o=r&fp,a=Or(e),u=a.length,f=Or(t),c=f.length;if(u!=c&&!o)return!1;for(var w=u;w--;){var g=a[w];if(!(o?g in t:lp.call(t,g)))return!1}var b=i.get(e),_=i.get(t);if(b&&_)return b==t&&_==e;var y=!0;i.set(e,t),i.set(t,e);for(var p=o;++w<u;){g=a[w];var m=e[g],x=t[g];if(n)var S=o?n(x,m,g,t,e,i):n(m,x,g,e,t,i);if(!(S===void 0?m===x||s(m,x,r,n,i):S)){y=!1;break}p||(p=g=="constructor")}if(y&&!p){var T=e.constructor,$=t.constructor;T!=$&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof $=="function"&&$ instanceof $)&&(y=!1)}return i.delete(e),i.delete(t),y}var dp=1,us="[object Arguments]",fs="[object Array]",mt="[object Object]",pp=Object.prototype,cs=pp.hasOwnProperty;function gp(e,t,r,n,s,i){var o=H(e),a=H(t),u=o?fs:V(e),f=a?fs:V(t);u=u==us?mt:u,f=f==us?mt:f;var c=u==mt,w=f==mt,g=u==f;if(g&&je(e)){if(!je(t))return!1;o=!0,c=!1}if(g&&!c)return i||(i=new ee),o||Kt(e)?Gi(e,t,r,n,s,i):up(e,t,u,r,n,s,i);if(!(r&dp)){var b=c&&cs.call(e,"__wrapped__"),_=w&&cs.call(t,"__wrapped__");if(b||_){var y=b?e.value():e,p=_?t.value():t;return i||(i=new ee),s(y,p,r,n,i)}}return g?(i||(i=new ee),hp(e,t,r,n,s,i)):!1}function Vi(e,t,r,n,s){return e===t?!0:e==null||t==null||!te(e)&&!te(t)?e!==e&&t!==t:gp(e,t,r,n,Vi,s)}function yp(e,t){return e!=null&&t in Object(e)}function Ki(e,t,r){t=ze(t,e);for(var n=-1,s=t.length,i=!1;++n<s;){var o=rt(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=s?i:(s=e==null?0:e.length,!!s&&Vr(s)&&Gt(o,s)&&(H(e)||Le(e)))}function mp(e,t){return e!=null&&Ki(e,t,yp)}function wp(e){return function(t){return t==null?void 0:t[e]}}function bp(e){return function(t,r,n){for(var s=-1,i=Object(t),o=n(t),a=o.length;a--;){var u=o[++s];if(r(i[u],u,i)===!1)break}return t}}var _p=bp(),dr=function(){return Q.Date.now()},Ep="Expected a function",Sp=Math.max,Tp=Math.min;function Xi(e,t,r){var n,s,i,o,a,u,f=0,c=!1,w=!1,g=!0;if(typeof e!="function")throw new TypeError(Ep);t=Tr(t)||0,q(r)&&(c=!!r.leading,w="maxWait"in r,i=w?Sp(Tr(r.maxWait)||0,t):i,g="trailing"in r?!!r.trailing:g);function b(R){var v=n,re=s;return n=s=void 0,f=R,o=e.apply(re,v),o}function _(R){return f=R,a=setTimeout(m,t),c?b(R):o}function y(R){var v=R-u,re=R-f,He=t-v;return w?Tp(He,i-re):He}function p(R){var v=R-u,re=R-f;return u===void 0||v>=t||v<0||w&&re>=i}function m(){var R=dr();if(p(R))return x(R);a=setTimeout(m,y(R))}function x(R){return a=void 0,g&&n?b(R):(n=s=void 0,o)}function S(){a!==void 0&&clearTimeout(a),f=0,n=u=s=a=void 0}function T(){return a===void 0?o:x(dr())}function $(){var R=dr(),v=p(R);if(n=arguments,s=this,u=R,v){if(a===void 0)return _(u);if(w)return clearTimeout(a),a=setTimeout(m,t),b(u)}return a===void 0&&(a=setTimeout(m,t)),o}return $.cancel=S,$.flush=T,$}function Cr(e,t,r){(r!==void 0&&!ct(e[t],r)||r===void 0&&!(t in e))&&Jr(e,t,r)}function Ap(e){return te(e)&<(e)}function Nr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function xp(e){return Be(e,ht(e))}function Rp(e,t,r,n,s,i,o){var a=Nr(e,r),u=Nr(t,r),f=o.get(u);if(f){Cr(e,r,f);return}var c=i?i(a,u,r+"",e,t,o):void 0,w=c===void 0;if(w){var g=H(u),b=!g&&je(u),_=!g&&!b&&Kt(u);c=u,g||b||_?H(a)?c=a:Ap(a)?c=Wr(a):b?(w=!1,c=Li(u,!0)):_?(w=!1,c=zi(u,!0)):c=[]:hi(u)||Le(u)?(c=a,Le(a)?c=xp(a):(!q(a)||qr(a))&&(c=Hi(u))):w=!1}w&&(o.set(u,c),s(c,u,n,i,o),o.delete(u)),Cr(e,r,c)}function Zi(e,t,r,n,s){e!==t&&_p(t,function(i,o){if(s||(s=new ee),q(i))Rp(e,t,o,r,Zi,n,s);else{var a=n?n(Nr(e,o),i,o+"",e,t,s):void 0;a===void 0&&(a=i),Cr(e,o,a)}},ht)}function Op(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Pp=Object.prototype,vp=Pp.hasOwnProperty;function $p(e,t){return e!=null&&vp.call(e,t)}function Cp(e,t){return e!=null&&Ki(e,t,$p)}function Np(e,t){return zr(t,function(r){return e[r]})}function Dp(e){return e==null?[]:Np(e,Xt(e))}function Fp(e,t){return t.length<2?e:Zr(e,di(t,0,-1))}var Ip="[object Map]",Lp="[object Set]",jp=Object.prototype,Mp=jp.hasOwnProperty;function Up(e){if(e==null)return!0;if(lt(e)&&(H(e)||typeof e=="string"||typeof e.splice=="function"||je(e)||Kt(e)||Le(e)))return!e.length;var t=V(e);if(t==Ip||t==Lp)return!e.size;if(Vt(e))return!fi(e).length;for(var r in e)if(Mp.call(e,r))return!1;return!0}function Bp(e,t){return Vi(e,t)}var zp=kt(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Hp=_i("toLowerCase"),Qi=Sf(function(e,t,r){Zi(e,t,r)}),qp=Object.prototype,Wp=qp.hasOwnProperty;function Yi(e,t){t=ze(t,e);var r=-1,n=t.length;if(!n)return!0;for(;++r<n;){var s=rt(t[r]);if(s==="__proto__"&&!Wp.call(e,"__proto__")||(s==="constructor"||s==="prototype")&&r<n-1)return!1}var i=Fp(e,t);return i==null||delete i[rt(Op(t))]}function Jp(e){return hi(e)?void 0:e}var Gp=1,Vp=2,Kp=4,Xp=ci(function(e,t){var r={};if(e==null)return r;var n=!1;t=zr(t,function(i){return i=ze(i,e),n||(n=i.length>1),i}),Be(e,Bi(e),r),n&&(r=Xe(r,Gp|Vp|Kp,Jp));for(var s=t.length;s--;)Yi(r,t[s]);return r});function ki(e,t,r,n){if(!q(e))return e;t=ze(t,e);for(var s=-1,i=t.length,o=i-1,a=e;a!=null&&++s<i;){var u=rt(t[s]),f=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(s!=o){var c=a[u];f=void 0,f===void 0&&(f=q(c)?c:Gt(t[s+1])?[]:{})}Gr(a,u,f),a=a[u]}return e}function Zp(e,t,r){for(var n=-1,s=t.length,i={};++n<s;){var o=t[n],a=Zr(e,o);r(a,o)&&ki(i,ze(o,e),a)}return i}var Qp=9007199254740991,Yp=Math.floor;function ls(e,t){var r="";if(!e||t<1||t>Qp)return r;do t%2&&(r+=e),t=Yp(t/2),t&&(e+=e);while(t);return r}var kp=wp("length"),eo="\\ud800-\\udfff",eg="\\u0300-\\u036f",tg="\\ufe20-\\ufe2f",rg="\\u20d0-\\u20ff",ng=eg+tg+rg,sg="\\ufe0e\\ufe0f",ig="["+eo+"]",Dr="["+ng+"]",Fr="\\ud83c[\\udffb-\\udfff]",og="(?:"+Dr+"|"+Fr+")",to="[^"+eo+"]",ro="(?:\\ud83c[\\udde6-\\uddff]){2}",no="[\\ud800-\\udbff][\\udc00-\\udfff]",ag="\\u200d",so=og+"?",io="["+sg+"]?",ug="(?:"+ag+"(?:"+[to,ro,no].join("|")+")"+io+so+")*",fg=io+so+ug,cg="(?:"+[to+Dr+"?",Dr,ro,no,ig].join("|")+")",hs=RegExp(Fr+"(?="+Fr+")|"+cg+fg,"g");function lg(e){for(var t=hs.lastIndex=0;hs.test(e);)++t;return t}function er(e){return Yt(e)?lg(e):kp(e)}var hg=Math.ceil;function Nt(e,t){t=t===void 0?" ":Jt(t);var r=t.length;if(r<2)return r?ls(t,e):t;var n=ls(t,hg(e/er(t)));return Yt(t)?kr(Pt(n),0,e).join(""):n.slice(0,e)}var dg=Math.ceil,pg=Math.floor;function gg(e,t,r){e=fe(e),t=Hr(t);var n=t?er(e):0;if(!t||n>=t)return e;var s=(t-n)/2;return Nt(pg(s),r)+e+Nt(dg(s),r)}function yg(e,t,r){e=fe(e),t=Hr(t);var n=t?er(e):0;return t&&n<t?e+Nt(t-n,r):e}function mg(e,t,r){e=fe(e),t=Hr(t);var n=t?er(e):0;return t&&n<t?Nt(t-n,r)+e:e}function wg(e,t){return Zp(e,t,function(r,n){return mp(e,n)})}var bg=ci(function(e,t){return e==null?{}:wg(e,t)}),_g=Math.floor,Eg=Math.random;function Sg(e,t){return e+_g(Eg()*(t-e+1))}function oo(e,t){var r=-1,n=e.length,s=n-1;for(t=t===void 0?n:t;++r<t;){var i=Sg(r,s),o=e[i];e[i]=e[r],e[r]=o}return e.length=t,e}function Tg(e,t,r){return e==null?e:ki(e,t,r)}function Ag(e){return oo(Wr(e))}function xg(e){return oo(Dp(e))}function Rg(e){var t=H(e)?Ag:xg;return t(e)}var Og=kt(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),ds=kt(function(e,t,r){return e+(r?" ":"")+vt(t)}),Pg="Expected a function";function vg(e,t,r){var n=!0,s=!0;if(typeof e!="function")throw new TypeError(Pg);return q(r)&&(n="leading"in r?!!r.leading:n,s="trailing"in r?!!r.trailing:s),Xi(e,t,{leading:n,maxWait:t,trailing:s})}function $g(e,t){for(var r=e.length;r--&&ri(t,e[r],0)>-1;);return r}function Cg(e,t){for(var r=-1,n=e.length;++r<n&&ri(t,e[r],0)>-1;);return r}function Ng(e,t,r){if(e=fe(e),e&&t===void 0)return ks(e);if(!e||!(t=Jt(t)))return e;var n=Pt(e),s=Pt(t),i=Cg(n,s),o=$g(n,s)+1;return kr(n,i,o).join("")}function Dg(e,t){return e==null?!0:Yi(e,t)}class Fg extends qt{constructor(r=[]){super();B(this,"_configuration",{});B(this,"singletons",{});B(this,"loaders",{});this.providers=r}get services(){return Object.entries(this.loaders).map(([r,n])=>({name:r,...n}))}get configuration(){return this._configuration}loadConfiguration(){if(document.getElementById("luminix-data::config")){const r=Zs("config");r&&typeof r=="object"&&this.withConfiguration(r)}}bind(r,n){if(typeof r!="string")throw new TypeError("Service name must be a string.");this.loaders[r]={loader:n}}singleton(r,n){if(typeof r!="string")throw new TypeError("Service name must be a string.");this.loaders[r]={loader:n,singleton:!0}}instance(r,n){if(typeof r!="string")throw new TypeError("Service name must be a string.");this.loaders[r]={loader:()=>n,singleton:!0}}has(r){return r in this.loaders}make(r){const n=this.loaders[r];if(!n)throw new Error(`Service '${r}' is not bound in the container.`);return n.singleton?(this.singletons[r]||(this.singletons[r]=n.loader()),this.singletons[r]):n.loader()}withConfiguration(r){return Qi(this._configuration,r),this}withProviders(r){return this.providers.push(...r),this}create(){if(this.services.length>0){console.warn("[Luminix] Application already created. Skipping double invocation of `create()`. If you want to re-create the application, please flush it first.");return}this.loadConfiguration();const r=this.providers.map(n=>new n(this));this.emit("init",r),r.forEach(n=>{n.register&&n.register()}),this.emit("booting"),r.forEach(n=>{n.boot&&n.boot()}),this.emit("booted"),this.once("flushing",()=>{r.forEach(n=>{n.flush&&n.flush()})}),this.emit("ready")}flush(){this.emit("flushing"),this.singletons={},this.loaders={},this._configuration={},this.providers=[],this.emit("flushed"),this.flushEvents()}dump(r=!1){const n={configuration:this.configuration,services:this.services,providers:this.providers,singletons:this.singletons};if(r===!0)return n;const s=this.make("log");r===!1&&s.info(n),s.info(r,n)}}function Re(e){return class extends e{constructor(...r){super(...r);B(this,"_macros",{});return new Proxy(this,{get(n,s,i){return Reflect.has(n,s)?Reflect.get(n,s,i):typeof s=="string"&&n.hasMacro(s)?n._macros[s].bind(n):Reflect.get(n,s,i)}})}macro(r,n){if(typeof n!="function")throw new TypeError("Macro must be a function");this._macros[r]=n}hasMacro(r){return r in this._macros&&typeof this._macros[r]=="function"}flushMacros(){this._macros={}}}}class Ig{get(t,r,n){return Jc(t,r,n)}has(t,r){return Cp(t,r)}isEmpty(t){return Up(t)}isEqual(t,r){return Bp(t,r)}merge(t,...r){let n;try{n=structuredClone(t)}catch{n=Ud(t)}return Qi(n,...r),n}omit(t,...r){return Xp(t,...r)}pick(t,...r){return bg(t,...r)}set(t,r,n){Tg(t,r,n)}unset(t,r){Dg(t,r)}fromQuery(t){const r={};for(const[n,s]of t.entries())this.set(r,n,s);return r}fromFormData(t){return this.fromQuery(t)}toQuery(t){return Rn(t,new URLSearchParams)}toFormData(t){return Rn(t,new FormData)}}const O=new(Re(Ig));class Dt{constructor(t,r){this._response=t,this._error=r}error(){return this._error}body(){return typeof this._response.data=="object"?JSON.stringify(this._response.data):String(this._response.data)}json(t,r){return t?O.get(this._response.data,t,r):this._response.data}has(t){return O.has(this._response.data,t)}status(){return Number(this._response.status)}successful(){return this.status()>=200&&this.status()<300}redirect(){return this.status()>=300&&this.status()<400}clientError(){return this.status()>=400&&this.status()<500}serverError(){return this.status()>=500}failed(){return this.clientError()||this.serverError()}header(t){return this._response.headers[t]}headers(){return this._response.headers}ok(){return this.status()===200}created(){return this.status()===201}accepted(){return this.status()===202}noContent(){return this.status()===204}movedPermanently(){return this.status()===301}found(){return this.status()===302}badRequest(){return this.status()===400}unauthorized(){return this.status()===401}paymentRequired(){return this.status()===402}forbidden(){return this.status()===403}notFound(){return this.status()===404}requestTimeout(){return this.status()===408}conflict(){return this.status()===409}unprocessableEntity(){return this.status()===422}tooManyRequests(){return this.status()===429}throw(){if(this.failed())throw this._error||new Error(this.body());return this}throwIf(t){return typeof t=="function"?t(this)?this.throw():this:t?this.throw():this}throwUnless(t){return typeof t=="function"?t(this)?this:this.throw():t?this:this.throw()}throwIfStatus(t){return typeof t=="function"&&t(this.status(),this)?this.throw():this.status()===t?this.throw():this}throwUnlessStatus(t){return typeof t=="function"&&!t(this.status(),this)?this.throw():this.status()===t?this:this.throw()}throwIfClientError(){return this.clientError()?this.throw():this}throwIfServerError(){return this.serverError()?this.throw():this}}var ys;ys=Symbol.toStringTag;class $e{constructor(t){B(this,"promise");B(this,"response");B(this,ys,"Request");this.promise=new Promise((r,n)=>{F(t).then(s=>{this.response=new Dt(s),r(this.response)}).catch(s=>{ka(s)&&s.response?(this.response=new Dt(s.response,s),r(this.response)):n(s)})})}then(t,r){return this.promise.then(t,r)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}}class Lg{constructor(t={}){this.options=t}parseData(t){return O.get(this.options,"headers[Content-Type]","application/json")==="application/x-www-form-urlencoded"&&t?O.toFormData(t||{}):t}baseUrl(t){return O.set(this.options,"baseURL",t),this}asForm(){return O.set(this.options,"headers[Content-Type]","application/x-www-form-urlencoded"),this}accept(t){return O.set(this.options,"headers[Accept]",t),this}acceptJson(){return this.accept("application/json")}withHeaders(t){return O.set(this.options,"headers",O.merge(this.options.headers??{},t)),this}replaceHeaders(t){return O.set(this.options,"headers",t),this}withOptions(t){return this.options=O.merge(this.options,t),this}replaceOptions(t){return this.options=t,this}withQueryParameters(t){const r=typeof t=="string"?O.fromQuery(new URLSearchParams(t)):t instanceof URLSearchParams?O.fromQuery(t):t;return O.set(this.options,"params",O.merge(this.options.params||{},r)),this}replaceQueryParameters(t){return O.set(this.options,"params",typeof t=="string"?O.fromQuery(new URLSearchParams(t)):t instanceof URLSearchParams?O.fromQuery(t):t),this}withData(t){const r=O.get(this.options,"data",{}),n=r instanceof FormData?O.fromFormData(r):r;return O.set(this.options,"data",this.parseData(O.merge(n,t))),this}replaceData(t){return O.set(this.options,"data",this.parseData(t)),this}withBasicAuth(t,r){return O.set(this.options,"headers.Authorization",`Basic ${btoa(`${t}:${r}`)}`),this}withToken(t){return O.set(this.options,"headers.Authorization",`Bearer ${t}`),this}get(t,r){return new $e({...this.options,params:r??this.options.params,url:t})}post(t,r){return new $e({...this.options,method:"post",url:t,data:this.parseData(r??this.options.data)})}put(t,r){return new $e({...this.options,method:"put",url:t,data:this.parseData(r??this.options.data)})}patch(t,r){return new $e({...this.options,method:"patch",url:t,data:this.parseData(r??this.options.data)})}delete(t,r){return new $e({...this.options,method:"delete",params:r??this.options.params,url:t})}}class jg{cartesian(...t){return t.reduce((r,n)=>r.flatMap(s=>n.map(i=>[s,i].flat())))}sampleSize(t,r){return this.shuffle(t).slice(0,r)}shuffle(t){return Rg(t)}}const Ve=new(Re(jg)),se=e=>{e.emit("change",{items:e.all(),source:e})},wt=(e,t)=>Array.isArray(e)?e[t]??null:e.get(t);function bt(e){return e instanceof me}var ms,ws,l;const E=class E extends qt{constructor(r=[]){super();cn(this,l);B(this,ms,"Collection");ln(this,l,r)}get items(){return[...h(this,l)]}[(ws=Symbol.iterator,ms=Symbol.toStringTag,ws)](){return h(this,l)[Symbol.iterator]()}all(){return[...h(this,l)]}average(r){return typeof r=="string"?this.avg(r):this.avg()}avg(r){return typeof r=="string"?this.sum(r)/h(this,l).length:this.sum()/h(this,l).length}chunk(r){const n=[];for(let s=0;s<h(this,l).length;s+=r)n.push(h(this,l).slice(s,s+r));return new E(n.map(s=>new E(s)))}chunkWhile(r){const n=[];let s=new E;for(let i=0;i<h(this,l).length;i++)r(h(this,l)[i],i,s)?s.push(h(this,l)[i]):(n.push(s),s=new E);return s.count()>0&&n.push(s),new E(n)}collapse(){return new E(h(this,l).flat())}collect(){return new E(h(this,l))}combine(r){const n={};return h(this,l).forEach((s,i)=>{if(typeof s!="string")throw new TypeError("The `combine` method expects the keys to be strings");n[s]=wt(r,i)}),n}concat(r){return Array.isArray(r)?new E([...h(this,l),...r]):new E([...h(this,l),...r.all()])}contains(r,n){return typeof r=="function"?h(this,l).some((s,i)=>r(s,i,this)):h(this,l).some(s=>{if(typeof n>"u")return s==r;if(typeof r!="string")throw new TypeError("The key must be a string");return s[r]==n})}containsOneItem(){return h(this,l).length===1}containsStrict(r,n){return typeof r=="function"?h(this,l).some((s,i)=>r(s,i,this)):h(this,l).some(s=>{if(typeof n>"u")return s===r;if(typeof r!="string")throw new TypeError("The key must be a string");return s[r]===n})}count(){return h(this,l).length}countBy(r){return typeof r=="function"?h(this,l).reduce((n,s,i)=>{const o=r(s,i,this);return n[o]=n[o]?n[o]+1:1,n},{}):h(this,l).reduce((n,s)=>{if(!["string","number"].includes(typeof s))throw new TypeError("The countBy method expects the items to be strings or numbers");return n[String(s)]=n[String(s)]?n[String(s)]+1:1,n},{})}crossJoin(...r){return new E(Ve.cartesian(h(this,l),...r.map(n=>Array.isArray(n)?n:n.all())))}diff(r){return Array.isArray(r)?new E(h(this,l).filter(n=>!r.includes(n))):new E(h(this,l).filter(n=>!r.contains(n)))}doesntContain(r,n){return typeof r=="function"?h(this,l).every((s,i)=>!r(s,i,this)):h(this,l).every(s=>{if(typeof n>"u")return s!=r;if(typeof r!="string")throw new TypeError("The key must be a string");return s[r]!=n})}dump(){console.log(this.toArray())}duplicates(r){return typeof r=="string"?new E(h(this,l).reduce((n,s,i)=>(h(this,l).slice(i+1).some(o=>o[r]==s[r])&&n.push(s[r]),n),[])):new E(h(this,l).reduce((n,s,i)=>(h(this,l).slice(i+1).some(o=>o==s)&&n.push(s),n),[]))}duplicatesStrict(r){return typeof r=="string"?new E(h(this,l).reduce((n,s,i)=>(h(this,l).slice(i+1).some(o=>o[r]===s[r])&&n.push(s[r]),n),[])):new E(h(this,l).reduce((n,s,i)=>(h(this,l).slice(i+1).some(o=>o===s)&&n.push(s),n),[]))}each(r){let n=0;for(const s of this){if(r(s,n,this)===!1)break;n++}return this}eachSpread(r){for(const n of this){if(!Array.isArray(n)&&!bt(n))throw new TypeError("The items in the collection must be arrays or collections");const s=Array.isArray(n)?n:n.all();if(r(...s)===!1)break}return this}ensure(r){const n=Array.isArray(r)?r:[r];return h(this,l).forEach((s,i)=>{if(!n.some(o=>typeof o=="string"?typeof s===o:s instanceof o))throw new TypeError(`The item at index ${i} is not of the expected type`)}),this}every(r){return h(this,l).every((n,s)=>r(n,s,this))}except(r){return new E(h(this,l).filter((n,s)=>!r.includes(s)))}filter(r){return new E(h(this,l).filter((n,s)=>typeof r!="function"?!!n:r(n,s,this)))}first(r){return typeof r=="function"?h(this,l).find((n,s)=>r(n,s,this))??null:h(this,l)[0]??null}firstOrFail(r){const n=this.first(r);if(n===null)throw new Error("No matching item found");return n}firstWhere(r,n,s){if(typeof r!="string")throw new TypeError("The key must be a string");if(typeof n>"u")return this.first(i=>!!i[r]);if(typeof s>"u")return h(this,l).find(i=>i[r]==n)??null;if(typeof n!="string")throw new TypeError("The operator must be a string");return s===null?h(this,l).find(i=>i[r]===null)??null:h(this,l).find(i=>{switch(n){case"=":return i[r]==s;case"!=":return i[r]!=s;case">":return i[r]>s;case"<":return i[r]<s;case">=":return i[r]>=s;case"<=":return i[r]<=s;default:throw new Error("Unsupported operator")}})??null}flatMap(r){return new E(h(this,l).flatMap((n,s)=>r(n,s,this)))}forget(r){return h(this,l).splice(r,1),se(this),this}forPage(r,n){return new E(h(this,l).slice((r-1)*n,r*n))}get(r,n){if(typeof r!="number")throw new TypeError("The key must be a number");return typeof n>"u"?h(this,l)[r]??null:typeof n=="function"?h(this,l)[r]??n():h(this,l)[r]??n}groupBy(r){const n=Array.isArray(r)?r:[r];return h(this,l).reduce((s,i,o)=>{const a=n.map(f=>{if(typeof f=="function"){const c=f(i,o,this);return Array.isArray(c)?c:[c]}return[String(i[f])]});return Ve.cartesian(...a).forEach(f=>{const c=Array.isArray(f)?f.join("."):f;O.set(s,c,[...O.get(s,c,[]),i])}),s},{})}has(r){return h(this,l).length>r}hasAny(r){return r.some(n=>this.has(n))}implode(r,n){if(typeof n>"u"){if(typeof r!="string")throw new TypeError("The glue must be a string");if(!h(this,l).every(s=>["string","number"].includes(typeof s)))throw new TypeError("The items must be strings or numbers");return h(this,l).join(r)}if(typeof r=="function")return h(this,l).map((s,i)=>r(s,i,this)).join(n);if(typeof r!="string")throw new TypeError("The key must be a string");if(!h(this,l).every(s=>typeof s=="object"))throw new TypeError("The items must be objects");return h(this,l).map(s=>s[r]).join(n)}intersect(r){return Array.isArray(r)?new E(h(this,l).filter(n=>r.includes(n))):new E(h(this,l).filter(n=>r.contains(n)))}isEmpty(){return h(this,l).length===0}isNotEmpty(){return!this.isEmpty()}join(r,n){return typeof n>"u"?h(this,l).join(r):h(this,l).slice(0,-1).join(r)+n+h(this,l)[h(this,l).length-1]}keyBy(r){if(typeof r=="function")return h(this,l).reduce((n,s,i)=>(n[r(s,i,this)]=s,n),{});if(typeof r!="string")throw new TypeError("The key must be a string");return h(this,l).reduce((n,s)=>(n[String(s[r])]=s,n),{})}last(r){return typeof r=="function"?h(this,l).toReversed().find((n,s)=>r(n,s,this))??null:h(this,l)[h(this,l).length-1]??null}map(r){return new E(h(this,l).map((n,s)=>r(n,s,this)))}mapInto(r){return new E(h(this,l).map(n=>new r(n)))}mapSpread(r){return new E(h(this,l).map(n=>{if(!Array.isArray(n)&&!bt(n))throw new TypeError("The items in the collection must be arrays or collections");const s=Array.isArray(n)?n:n.all();return r(...s)}))}mapToGroups(r){return h(this,l).reduce((n,s,i)=>{const o=r(s,i,this);return Object.entries(o).forEach(([a,u])=>{n[a]=n[a]??[],n[a].push(u)}),n},{})}mapWithKeys(r){return h(this,l).reduce((n,s,i)=>{const o=r(s,i,this);return Object.entries(o).forEach(([a,u])=>{n[a]=u}),n},{})}max(r){return typeof r=="string"?h(this,l).reduce((n,s)=>s[r]>n?s[r]:n,h(this,l)[0][r]):h(this,l).reduce((n,s)=>s>n?s:n,h(this,l)[0])}median(r){if(typeof r=="string"){const i=this.pluck(r).sort(),o=Math.floor(i.count()/2);return i.count()%2===0?new E([wt(i,o-1),wt(i,o)]).avg():wt(i,o)}const n=h(this,l).toSorted(),s=Math.floor(n.length/2);return n.length%2===0?new E([n[s-1],n[s]]).avg():n[s]??null}merge(r){return Array.isArray(r)?new E([...h(this,l),...r]):new E([...h(this,l),...r.all()])}min(r){return typeof r=="string"?h(this,l).reduce((n,s)=>s[r]<n?s[r]:n,h(this,l)[0][r]):h(this,l).reduce((n,s)=>s<n?s:n,h(this,l)[0])}mode(r){const n=typeof r=="string"?this.filter(i=>["number","string"].includes(typeof i[r])).countBy(i=>i[r]):this.countBy(),s=Math.max(...Object.values(n));return Object.entries(n).filter(([,i])=>i===s).map(([i])=>i)}nth(r,n=0){return this.chunk(r).filter(s=>s.count()>n).map(s=>s.get(n))}only(r){return new E(h(this,l).filter((n,s)=>r.includes(s)))}pad(r,n=null){const s=h(this,l).slice();for(;s.length<Math.abs(r);)r>0?s.push(n):s.unshift(n);return new E(s)}partition(r){return[this.filter(r),this.reject(r)]}percentage(r,n=2){return Math.round(100*(10^n)*this.filter(r).count()/h(this,l).length)/(10^n)}pipe(r){return r(this)}pipeInto(r){return new r(this)}pipeThrough(r){return r.reduce((n,s)=>{if(!bt(n)&&!Array.isArray(n))throw new TypeError("The pipeline expects the carry to be a collection or an array");return s(bt(n)?n:new E(n))},this)}pluck(r){return this.map(n=>n[r])}pop(r=1){const n=h(this,l).splice(h(this,l).length-r,r);return se(this),r===1?n[0]??null:new E(n)}prepend(r){const n=h(this,l).unshift(r);return se(this),n}pull(r){const n=h(this,l).splice(r,1)[0]??null;return se(this),n}push(...r){const n=h(this,l).push(...r);return se(this),n}put(r,n){return h(this,l).splice(r,1,n),se(this),this}random(r=1){if(h(this,l).length<r)throw new Error("The collection has fewer items than the requested amount");const n=new E(Ve.sampleSize(h(this,l),r));return r===1?n.first():n}reduce(r,n=null){return h(this,l).reduce((s,i,o)=>r(s,i,o,this),n)}reject(r){return this.filter((n,s)=>!r(n,s,this))}replace(r){const n=h(this,l).slice();return Object.entries(r).forEach(([s,i])=>{n[parseInt(s)]=i}),new E(n)}reverse(){return new E(h(this,l).toReversed())}search(r,n=!1){if(typeof r!="function"||h(this,l).every(i=>typeof i=="function")){const i=h(this,l).findIndex(o=>n?o===r:o==r);return i===-1?!1:i}const s=h(this,l).findIndex((i,o)=>r(i,o,this));return s===-1?!1:s}select(r){return this.map(n=>r.reduce((s,i)=>(s[i]=n[i],s),{}))}shift(r=1){const n=h(this,l).splice(0,r);return se(this),r===1?n[0]??null:new E(n)}shuffle(){return new E(Ve.shuffle(h(this,l)))}skip(r){return new E(h(this,l).slice(r))}skipUntil(r){return typeof r=="function"?this.skip(h(this,l).findIndex((n,s)=>r(n,s,this))):this.skip(h(this,l).findIndex(n=>n==r))}skipWhile(r){return typeof r=="function"?this.skip(h(this,l).findIndex((n,s)=>!r(n,s,this))):this.skip(h(this,l).findIndex(n=>n!=r))}slice(r,n){return typeof n>"u"?new E(h(this,l).slice(r)):typeof r>"u"?new E(h(this,l).slice(0,n)):new E(h(this,l).slice(r,r+n))}sliding(r,n=1){const s=[];for(let i=0;i<h(this,l).length&&!(i+r>h(this,l).length);i+=n)s.push(h(this,l).slice(i,i+r));return new E(s.map(i=>new E(i)))}sole(r,n){if(typeof r=="function"){const s=this.filter(r);return s.count()===1?s.first():null}if(typeof r=="string"){const s=this.where(r,n);return s.count()===1?s.first():null}return h(this,l).length===1?this.first():null}some(...r){return this.contains(...r)}sort(r){return new E(h(this,l).toSorted(r))}sortBy(r,n="asc"){if(typeof r=="function"){let s=-1;return new E(h(this,l).toSorted((i,o)=>(s++,r(i,s,this)-r(o,s,this))))}if(Array.isArray(r))return r.every(s=>Array.isArray(s))?new E(h(this,l).toSorted((s,i)=>{for(const[o,a]of r){const u=s[o]??-1/0,f=i[o]??-1/0;if(u>f)return a==="asc"?1:-1;if(u<f)return a==="asc"?-1:1}return 0})):new E(h(this,l).toSorted((s,i)=>{for(const o of r){const a=o(s,i);if(a!==0)return a}return 0}));if(typeof r!="string")throw new TypeError("The key must be a string");return new E(h(this,l).toSorted((s,i)=>{const o=s[r]??-1/0,a=i[r]??-1/0;return o>a?n==="asc"?1:-1:o<a?n==="asc"?-1:1:0}))}sortDesc(){return this.sort((r,n)=>r>n?-1:r<n?1:0)}splice(r,n,...s){const i=n===void 0?h(this,l).length:n,o=h(this,l).splice(r,i,...s);return se(this),new E(o)}split(r){const n=[];for(let s=0;s<r;s++){const i=h(this,l).slice(n.flat().length,n.flat().length+Math.min(Math.ceil((h(this,l).length-n.flat().length)/(r-s)),h(this,l).length-n.flat().length));n.push(new E(i))}return new E(n)}splitIn(r){const n=Math.ceil(h(this,l).length/r);return this.chunk(n)}sum(r){return typeof r=="string"?h(this,l).reduce((n,s)=>{const i=s[r];if(typeof i!="number")throw new TypeError("The items must be numbers");return n+i},0):h(this,l).reduce((n,s)=>{if(typeof s!="number")throw new TypeError("The items must be numbers");return n+s},0)}take(r){return new E(h(this,l).slice(0,r))}takeUntil(r){return typeof r=="function"?this.take(h(this,l).findIndex((n,s)=>r(n,s,this))):this.take(h(this,l).findIndex(n=>n==r))}takeWhile(r){return typeof r=="function"?this.take(h(this,l).findIndex((n,s)=>!r(n,s,this))):this.take(h(this,l).findIndex(n=>n!=r))}tap(r){return r(this),this}toArray(){const r=n=>typeof n!="object"?n:Array.isArray(n)?n.map(r):n&&"toArray"in n&&typeof n.toArray=="function"?n.toArray():n&&"toJson"in n&&typeof n.toJson=="function"?n.toJson():n;return h(this,l).map(r)}toJson(){return JSON.stringify(h(this,l))}transform(r){for(const[n,s]of h(this,l).entries())h(this,l).splice(n,1,r(s,n,this));return se(this),this}unique(r){return typeof r=="string"?new E([...new Set(h(this,l).map(n=>n[r]))].map(n=>h(this,l).find(s=>s[r]==n))):new E([...new Set(h(this,l))])}uniqueStrict(r){return typeof r=="string"?new E([...new Set(h(this,l).map(n=>n[r]))].map(n=>h(this,l).find(s=>s[r]===n))):new E([...new Set(h(this,l))])}unless(r,n,s){return r?typeof s=="function"&&s(this):n(this),this}unlessEmpty(r,n){return this.whenNotEmpty(r,n)}unlessNotEmpty(r,n){return this.whenEmpty(r,n)}value(r){return h(this,l).length===0?null:h(this,l)[0][r]}when(r,n,s){return r?n(this):typeof s=="function"&&s(this),this}whenEmpty(r,n){return this.isEmpty()?r(this):typeof n=="function"&&n(this),this}whenNotEmpty(r,n){return this.isNotEmpty()?r(this):typeof n=="function"&&n(this),this}where(r,n,s){if(typeof s>"u")return new E(h(this,l).filter(o=>o[r]==n));if(typeof n!="string")throw new TypeError("The operator must be a string");if(s===null)return new E(h(this,l).filter(o=>o[r]===null));const i={"=":o=>o[r]==s,"!=":o=>o[r]!=s,">":o=>o[r]>s,"<":o=>o[r]<s,">=":o=>o[r]>=s,"<=":o=>o[r]<=s};if(!(n in i))throw new Error("Unsupported operator");return new E(h(this,l).filter((o,a)=>i[n](o,a,this)))}whereStrict(r,n,s){if(typeof s>"u")return new E(h(this,l).filter(o=>o[r]===n));if(typeof n!="string")throw new TypeError("The operator must be a string");if(s===null)return new E(h(this,l).filter(o=>o[r]===null));const i={"=":o=>o[r]===s,"!=":o=>o[r]!==s,">":o=>o[r]>s,"<":o=>o[r]<s,">=":o=>o[r]>=s,"<=":o=>o[r]<=s};if(!(n in i))throw new Error("Unsupported operator");return new E(h(this,l).filter((o,a)=>i[n](o,a,this)))}whereBetween(r,[n,s]){return new E(h(this,l).filter(i=>i[r]>=n&&i[r]<=s))}whereNotBetween(r,[n,s]){return new E(h(this,l).filter(i=>i[r]<n||i[r]>s))}whereIn(r,n){return new E(h(this,l).filter(s=>n.includes(s[r])))}whereNotIn(r,n){return new E(h(this,l).filter(s=>!n.includes(s[r])))}whereNull(r){return new E(h(this,l).filter(n=>n[r]===null))}whereNotNull(r){return new E(h(this,l).filter(n=>n[r]!==null))}whereInstanceOf(r){return new E(h(this,l).filter(n=>n instanceof r))}zip(r){return Array.isArray(r)?new E(h(this,l).map((n,s)=>[n,r[s]??null])):new E(h(this,l).map((n,s)=>[n,r.get(s)]))}};l=new WeakMap;let me=E;function Mg(e,t){return new class extends e{constructor(){return super(),new Proxy(this,{get(r,n){if(Reflect.has(r,n))return Reflect.get(r,n);const s=r.getFacadeAccessor(),i=typeof s=="string"?t.make(s):s;if(!i)throw new Error(`Service ${String(s)} does not exist.`);return Reflect.get(i,n,i)}})}}}class rn extends qt{constructor(r){super();B(this,"locked",[]);this.bag=r,Object.freeze(this.bag)}get(r,n){return O.get(this.bag,r,n)}set(r,n){if(this.locked.some(s=>r.startsWith(s)))throw new Error(`Cannot set a locked path "${r}"`);if(typeof n=="object"&&n!==null&&this.locked.some(s=>O.has(n,s.slice(r.length+1))))throw new Error(`Cannot set a path "${r}" that would override a locked path`);if(r==="."){if(this.locked.length)throw new Error("Cannot set the root path when there are locked paths");if(typeof n!="object"||n===null)throw new TypeError("Value must be an object");this.bag=Ce(this.bag,()=>n),this.emit("change",{path:r,value:n,type:"set",source:this});return}this.bag=Ce(this.bag,s=>{O.set(s,r,n)}),this.emit("change",{path:r,value:n,type:"set",source:this})}merge(r,n){if(typeof n!="object"||n===null)throw new TypeError("Value must be an object");if(r==="."){if(this.locked.some(i=>O.has(n,i)))throw new Error(`Cannot merge a path "${r}" that would override a locked path`);this.bag=Ce(this.bag,i=>({...i,...n})),this.emit("change",{path:r,value:n,type:"merge",source:this});return}const s=this.get(r);if(typeof s=="object"&&s!==null)return this.set(r,{...s,...n});if(s===null||typeof s>"u")return this.set(r,n);throw new Error(`Cannot merge a non-object path "${r}"`)}has(r){return O.has(this.bag,r)}delete(r){if(this.locked.some(n=>r.startsWith(n)))throw new Error(`Cannot delete a locked path "${r}"`);this.bag=Ce(this.bag,n=>{O.unset(n,r)}),this.emit("change",{path:r,value:null,type:"delete",source:this})}lock(r){if(!this.has(r))throw new Error(`Cannot lock a non-existing path "${r}"`);this.locked.push(r)}clone(){return new rn(this.bag)}all(){return this.bag}isEmpty(){return O.isEmpty(this.bag)}}var bs,_s;class Ug extends(_s=Error,bs=Symbol.toStringTag,_s){constructor(r,n){super(`[Luminix] Cannot create reducer '${r}' on '${n}' as it is a reserved property`);B(this,bs,"ReducerOverrideException")}}function Bg(e){return class extends e{constructor(...r){super(...r);B(this,"_reducers",{});return new Proxy(this,{get(n,s,i){return typeof s=="symbol"||s in n?Reflect.get(n,s,i):(o,...a)=>{const{[s]:u=new me}=n._reducers;return K(o)?Ce(o,f=>u.sortBy("priority").reduce((c,w)=>w.callback(c,...a),f)):u.sortBy("priority").reduce((f,c)=>c.callback(f,...a),o)}}})}reducer(r,n,s=10){if(r in this)throw new Ug(r,this);return this._reducers[r]||(this._reducers[r]=new me),this._reducers[r].push({callback:n,priority:s}),()=>this.removeReducer(r,n)}removeReducer(r,n){const s=this._reducers[r].search(i=>i.callback===n);s!==!1&&this._reducers[r].pull(s)}getReducer(r){return this._reducers[r]||(this._reducers[r]=new me),this._reducers[r]}hasReducer(r){return!!this._reducers[r]&&this._reducers[r].count()>0}clearReducer(r){this._reducers[r]&&this._reducers[r].splice(0,this._reducers[r].count())}flushReducers(){Object.values(this._reducers).forEach(r=>r.splice(0,r.count()))}}}class zg{constructor(t){this.app=t}}function Hg(e){return e instanceof Dt&&e.unprocessableEntity()&&typeof e.json("message")=="string"&&typeof e.json("errors")=="object"&&e.json("errors")!==null&&Object.values(e.json("errors")).every(t=>Array.isArray(t)&&t.every(r=>typeof r=="string"))}class qg{after(t,r){return t.includes(r)?t.split(r).slice(1).join(""):""}afterLast(t,r){return t.includes(r)?t.split(r).slice(-1).join(""):""}before(t,r){return t.includes(r)?t.split(r).slice(0,1).join(""):""}beforeLast(t,r){return t.includes(r)?t.split(r).slice(0,-1).join(""):""}camel(t){return ch(t)}lcfirst(t){return Hp(t)}lower(t){return t.toLowerCase()}kebab(t){return zp(t)}padBoth(t,r,n){return gg(t,r,n)}padLeft(t,r,n){return mg(t,r,n)}padRight(t,r,n){return yg(t,r,n)}human(t){return Ei(ds(t))}studly(t){return vt(this.camel(t))}snake(t){return Og(t)}title(t){return ds(t)}trim(t,r){return Ng(t,r)}ucfirst(t){return vt(t)}upper(t){return t.toUpperCase()}}const Ne=new(Re(qg));class Wg{parse(t){return t instanceof Date?t:new Date(t)}toDateTimeLocal(t){const r=this.parse(t),n=`${r.getFullYear()}`,s=`${Ne.padLeft(`${r.getMonth()+1}`,2,"0")}`,i=`${Ne.padLeft(`${r.getDate()}`,2,"0")}`,o=`${Ne.padLeft(`${r.getHours()}`,2,"0")}`,a=`${Ne.padLeft(`${r.getMinutes()}`,2,"0")}`;return`${n}-${s}-${i}T${o}:${a}`}}const Jg=new(Re(Wg));class Gg{throttle(t,r,n){return vg(t,r,n)}debounce(t,r,n){return Xi(t,r,n)}}const Vg=new(Re(Gg));class Kg{fromObject(t){return O.toQuery(t)}toObject(t){return O.fromQuery(t)}merge(...t){const r=new URLSearchParams;return t.forEach(n=>{(typeof n=="string"?new URLSearchParams(Ne.after(n,"?")):n).forEach((i,o)=>{r.set(o,i)})}),r}}const Xg=new(Re(Kg));exports.Application=Fg;exports.Arr=Ve;exports.Client=Lg;exports.Collection=me;exports.DateTime=Jg;exports.EventSource=qt;exports.Func=Vg;exports.Macroable=Re;exports.MakeFacade=Mg;exports.Obj=O;exports.PropertyBag=rn;exports.Query=Xg;exports.Reducible=Bg;exports.Request=$e;exports.Response=Dt;exports.ServiceProvider=zg;exports.Str=Ne;exports.axios=F;exports.immer=wu;exports.isValidationError=Hg;exports.reader=Zs;
|