@alepha/devtools 0.15.1 → 0.15.2
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/README.md +14 -4
- package/assets/devtools/actions.html +5 -3
- package/assets/devtools/actions.html.br +0 -0
- package/assets/devtools/actions.html.gz +0 -0
- package/assets/devtools/{asset.CMFNRMve.css → asset.CUUwTesj.css} +1 -1
- package/assets/devtools/asset.CUUwTesj.css.br +0 -0
- package/assets/devtools/{asset.CMFNRMve.css.gz → asset.CUUwTesj.css.gz} +0 -0
- package/assets/devtools/atoms.html +5 -3
- package/assets/devtools/atoms.html.br +0 -0
- package/assets/devtools/atoms.html.gz +0 -0
- package/assets/devtools/caches.html +5 -3
- package/assets/devtools/caches.html.br +0 -0
- package/assets/devtools/caches.html.gz +0 -0
- package/assets/devtools/{chunk.YqHRwxdc.js → chunk.8L5-bmT2.js} +2 -2
- package/assets/devtools/chunk.8L5-bmT2.js.br +0 -0
- package/assets/devtools/chunk.8L5-bmT2.js.gz +0 -0
- package/assets/devtools/chunk.9_-GTbfg.js +1 -0
- package/assets/devtools/chunk.9_-GTbfg.js.br +0 -0
- package/assets/devtools/chunk.9_-GTbfg.js.gz +0 -0
- package/assets/devtools/chunk.B06miRTQ.js +1 -0
- package/assets/devtools/chunk.B06miRTQ.js.br +0 -0
- package/assets/devtools/chunk.B06miRTQ.js.gz +0 -0
- package/assets/devtools/{chunk.DOiJ5r3P.js → chunk.B4XxoeIU.js} +1 -1
- package/assets/devtools/chunk.B4XxoeIU.js.br +0 -0
- package/assets/devtools/chunk.B4XxoeIU.js.gz +0 -0
- package/assets/devtools/chunk.BDGiK8wy.js +1 -0
- package/assets/devtools/chunk.BDGiK8wy.js.br +0 -0
- package/assets/devtools/chunk.BDGiK8wy.js.gz +0 -0
- package/assets/devtools/{chunk.CN7ovTep.js → chunk.BK94oaB2.js} +1 -1
- package/assets/devtools/chunk.BK94oaB2.js.br +0 -0
- package/assets/devtools/chunk.BK94oaB2.js.gz +0 -0
- package/assets/devtools/{chunk.wg5XuK3_.js → chunk.BLgG-Amn.js} +1 -1
- package/assets/devtools/chunk.BLgG-Amn.js.br +0 -0
- package/assets/devtools/chunk.BLgG-Amn.js.gz +0 -0
- package/assets/devtools/{chunk.DZFiDTv5.js → chunk.BOYwUUqI.js} +1 -1
- package/assets/devtools/chunk.BOYwUUqI.js.br +0 -0
- package/assets/devtools/chunk.BOYwUUqI.js.gz +0 -0
- package/assets/devtools/{chunk.CoH_IYrv.js → chunk.BPCHIpy2.js} +1 -1
- package/assets/devtools/chunk.BPCHIpy2.js.br +0 -0
- package/assets/devtools/chunk.BPCHIpy2.js.gz +0 -0
- package/assets/devtools/{chunk.l66LreXu.js → chunk.BRKelMlC.js} +1 -1
- package/assets/devtools/chunk.BRKelMlC.js.br +0 -0
- package/assets/devtools/chunk.BRKelMlC.js.gz +0 -0
- package/assets/devtools/chunk.BrsQ66Fo.js +1 -0
- package/assets/devtools/chunk.BrsQ66Fo.js.br +0 -0
- package/assets/devtools/chunk.BrsQ66Fo.js.gz +0 -0
- package/assets/devtools/{chunk.BiIrl-Hq.js → chunk.Bz4bTzr0.js} +1 -1
- package/assets/devtools/chunk.Bz4bTzr0.js.br +0 -0
- package/assets/devtools/chunk.Bz4bTzr0.js.gz +0 -0
- package/assets/devtools/{chunk.CFLl96SC.js → chunk.CKppnGPU.js} +1 -1
- package/assets/devtools/chunk.CKppnGPU.js.br +0 -0
- package/assets/devtools/chunk.CKppnGPU.js.gz +0 -0
- package/assets/devtools/chunk.CfzSCjsJ.js +1 -0
- package/assets/devtools/chunk.CfzSCjsJ.js.br +0 -0
- package/assets/devtools/chunk.CfzSCjsJ.js.gz +0 -0
- package/assets/devtools/{chunk.Dbm9E6HI.js → chunk.CiLYCLJH.js} +1 -1
- package/assets/devtools/chunk.CiLYCLJH.js.br +0 -0
- package/assets/devtools/chunk.CiLYCLJH.js.gz +0 -0
- package/assets/devtools/chunk.CnHYu38l.js +2 -0
- package/assets/devtools/chunk.CnHYu38l.js.br +0 -0
- package/assets/devtools/chunk.CnHYu38l.js.gz +0 -0
- package/assets/devtools/{chunk.BIGcMrv-.js → chunk.D1-ODKSf.js} +1 -1
- package/assets/devtools/chunk.D1-ODKSf.js.br +0 -0
- package/assets/devtools/chunk.D1-ODKSf.js.gz +0 -0
- package/assets/devtools/chunk.D4SUrYI2.js +1 -0
- package/assets/devtools/chunk.D4SUrYI2.js.br +0 -0
- package/assets/devtools/chunk.D4SUrYI2.js.gz +0 -0
- package/assets/devtools/chunk.DAeCHJ5Z.js +1 -0
- package/assets/devtools/chunk.DAeCHJ5Z.js.br +0 -0
- package/assets/devtools/chunk.DAeCHJ5Z.js.gz +0 -0
- package/assets/devtools/{chunk.CgxElNrD.js → chunk.DN2ng7Ec.js} +1 -1
- package/assets/devtools/chunk.DN2ng7Ec.js.br +3 -0
- package/assets/devtools/chunk.DN2ng7Ec.js.gz +0 -0
- package/assets/devtools/chunk.DXhVYZJu.js +1 -0
- package/assets/devtools/chunk.DXhVYZJu.js.br +0 -0
- package/assets/devtools/chunk.DXhVYZJu.js.gz +0 -0
- package/assets/devtools/{chunk.BWdBHr2F.js → chunk.DgZ24mun.js} +3 -3
- package/assets/devtools/chunk.DgZ24mun.js.br +0 -0
- package/assets/devtools/chunk.DgZ24mun.js.gz +0 -0
- package/assets/devtools/{chunk.DGI4-Nej.js → chunk.DkirMznI.js} +1 -1
- package/assets/devtools/chunk.DkirMznI.js.br +0 -0
- package/assets/devtools/chunk.DkirMznI.js.gz +0 -0
- package/assets/devtools/chunk.Dnb5TqA8.js +1 -0
- package/assets/devtools/chunk.Dnb5TqA8.js.br +0 -0
- package/assets/devtools/chunk.Dnb5TqA8.js.gz +0 -0
- package/assets/devtools/{chunk.9K7EO5hq.js → chunk.DqdWWOSs.js} +1 -1
- package/assets/devtools/chunk.DqdWWOSs.js.br +0 -0
- package/assets/devtools/chunk.DqdWWOSs.js.gz +0 -0
- package/assets/devtools/{chunk.s1U1MhH3.js → chunk.DrLudrGo.js} +1 -1
- package/assets/devtools/chunk.DrLudrGo.js.br +0 -0
- package/assets/devtools/chunk.DrLudrGo.js.gz +0 -0
- package/assets/devtools/{chunk.CMTEfKUa.js → chunk.K-Ms8Mzm.js} +1 -1
- package/assets/devtools/chunk.K-Ms8Mzm.js.br +1 -0
- package/assets/devtools/chunk.K-Ms8Mzm.js.gz +0 -0
- package/assets/devtools/chunk.KgyhVGwW.js +9 -0
- package/assets/devtools/chunk.KgyhVGwW.js.br +0 -0
- package/assets/devtools/chunk.KgyhVGwW.js.gz +0 -0
- package/assets/devtools/{chunk.CUw48lF5.js → chunk.U6B6OT4m.js} +1 -1
- package/assets/devtools/chunk.U6B6OT4m.js.br +0 -0
- package/assets/devtools/chunk.U6B6OT4m.js.gz +0 -0
- package/assets/devtools/chunk.V91GMRqU.js +1 -0
- package/assets/devtools/chunk.V91GMRqU.js.br +0 -0
- package/assets/devtools/chunk.V91GMRqU.js.gz +0 -0
- package/assets/devtools/{chunk.lvb4PIb4.js → chunk.YsQsplrn.js} +1 -1
- package/assets/devtools/chunk.YsQsplrn.js.br +0 -0
- package/assets/devtools/chunk.YsQsplrn.js.gz +0 -0
- package/assets/devtools/{chunk.B4porofG.js → chunk.ax3VFVgz.js} +1 -1
- package/assets/devtools/chunk.ax3VFVgz.js.br +0 -0
- package/assets/devtools/chunk.ax3VFVgz.js.gz +0 -0
- package/assets/devtools/{chunk.BP23bv4G.js → chunk.qLydHlIe.js} +1 -1
- package/assets/devtools/chunk.qLydHlIe.js.br +0 -0
- package/assets/devtools/chunk.qLydHlIe.js.gz +0 -0
- package/assets/devtools/db.html +5 -3
- package/assets/devtools/db.html.br +0 -0
- package/assets/devtools/db.html.gz +0 -0
- package/assets/devtools/entry.DqiMGelS.js +79 -0
- package/assets/devtools/entry.DqiMGelS.js.br +0 -0
- package/assets/devtools/entry.DqiMGelS.js.gz +0 -0
- package/assets/devtools/env.html +5 -3
- package/assets/devtools/env.html.br +0 -0
- package/assets/devtools/env.html.gz +0 -0
- package/assets/devtools/graph.html +5 -3
- package/assets/devtools/graph.html.br +0 -0
- package/assets/devtools/graph.html.gz +0 -0
- package/assets/devtools/index.html +5 -3
- package/assets/devtools/index.html.br +0 -0
- package/assets/devtools/index.html.gz +0 -0
- package/assets/devtools/logs.html +5 -3
- package/assets/devtools/logs.html.br +0 -0
- package/assets/devtools/logs.html.gz +0 -0
- package/assets/devtools/queues.html +5 -3
- package/assets/devtools/queues.html.br +0 -0
- package/assets/devtools/queues.html.gz +0 -0
- package/assets/devtools/topics.html +5 -3
- package/assets/devtools/topics.html.br +0 -0
- package/assets/devtools/topics.html.gz +0 -0
- package/dist/index.d.ts +15 -5
- package/dist/index.js +21 -8
- package/dist/index.js.map +1 -1
- package/package.json +6 -7
- package/src/api/providers/DevToolsDatabaseProvider.ts +2 -2
- package/src/index.ts +19 -5
- package/src/ui/AppRouter.tsx +1 -1
- package/src/ui/components/DevAtomsViewer.tsx +1 -1
- package/src/ui/components/DevCacheInspector.tsx +1 -1
- package/src/ui/components/DevEnvExplorer.tsx +1 -1
- package/src/ui/components/DevLogViewer.tsx +2 -2
- package/src/ui/components/DevTopicsViewer.tsx +1 -1
- package/src/ui/components/actions/DevActionsExplorer.tsx +1 -1
- package/src/ui/components/actions/TryItPanel.tsx +1 -1
- package/src/ui/components/db/DevDbStudio.tsx +1 -1
- package/src/ui/components/graph/DevDependencyGraph.tsx +1 -1
- package/assets/devtools/asset.CMFNRMve.css.br +0 -0
- package/assets/devtools/chunk.9K7EO5hq.js.br +0 -0
- package/assets/devtools/chunk.9K7EO5hq.js.gz +0 -0
- package/assets/devtools/chunk.B4porofG.js.br +0 -0
- package/assets/devtools/chunk.B4porofG.js.gz +0 -0
- package/assets/devtools/chunk.BIGcMrv-.js.br +0 -0
- package/assets/devtools/chunk.BIGcMrv-.js.gz +0 -0
- package/assets/devtools/chunk.BP23bv4G.js.br +0 -0
- package/assets/devtools/chunk.BP23bv4G.js.gz +0 -0
- package/assets/devtools/chunk.BWdBHr2F.js.br +0 -0
- package/assets/devtools/chunk.BWdBHr2F.js.gz +0 -0
- package/assets/devtools/chunk.BfFwPQgv.js +0 -9
- package/assets/devtools/chunk.BfFwPQgv.js.br +0 -0
- package/assets/devtools/chunk.BfFwPQgv.js.gz +0 -0
- package/assets/devtools/chunk.BiIrl-Hq.js.br +0 -0
- package/assets/devtools/chunk.BiIrl-Hq.js.gz +0 -0
- package/assets/devtools/chunk.C8JxGZtc.js +0 -1
- package/assets/devtools/chunk.C8JxGZtc.js.br +0 -0
- package/assets/devtools/chunk.C8JxGZtc.js.gz +0 -0
- package/assets/devtools/chunk.CFLl96SC.js.br +0 -0
- package/assets/devtools/chunk.CFLl96SC.js.gz +0 -0
- package/assets/devtools/chunk.CMTEfKUa.js.br +0 -0
- package/assets/devtools/chunk.CMTEfKUa.js.gz +0 -0
- package/assets/devtools/chunk.CN7ovTep.js.br +0 -0
- package/assets/devtools/chunk.CN7ovTep.js.gz +0 -0
- package/assets/devtools/chunk.CUs8lFwI.js +0 -1
- package/assets/devtools/chunk.CUs8lFwI.js.br +0 -0
- package/assets/devtools/chunk.CUs8lFwI.js.gz +0 -0
- package/assets/devtools/chunk.CUw48lF5.js.br +0 -0
- package/assets/devtools/chunk.CUw48lF5.js.gz +0 -0
- package/assets/devtools/chunk.CdkqxSCz.js +0 -1
- package/assets/devtools/chunk.CdkqxSCz.js.br +0 -0
- package/assets/devtools/chunk.CdkqxSCz.js.gz +0 -0
- package/assets/devtools/chunk.CgxElNrD.js.br +0 -2
- package/assets/devtools/chunk.CgxElNrD.js.gz +0 -0
- package/assets/devtools/chunk.CoH_IYrv.js.br +0 -0
- package/assets/devtools/chunk.CoH_IYrv.js.gz +0 -0
- package/assets/devtools/chunk.D0butndH.js +0 -1
- package/assets/devtools/chunk.D0butndH.js.br +0 -0
- package/assets/devtools/chunk.D0butndH.js.gz +0 -0
- package/assets/devtools/chunk.DGI4-Nej.js.br +0 -0
- package/assets/devtools/chunk.DGI4-Nej.js.gz +0 -0
- package/assets/devtools/chunk.DOiJ5r3P.js.br +0 -0
- package/assets/devtools/chunk.DOiJ5r3P.js.gz +0 -0
- package/assets/devtools/chunk.DZFiDTv5.js.br +0 -0
- package/assets/devtools/chunk.DZFiDTv5.js.gz +0 -0
- package/assets/devtools/chunk.Dbm9E6HI.js.br +0 -0
- package/assets/devtools/chunk.Dbm9E6HI.js.gz +0 -0
- package/assets/devtools/chunk.DdgmE5g8.js +0 -1
- package/assets/devtools/chunk.DdgmE5g8.js.br +0 -0
- package/assets/devtools/chunk.DdgmE5g8.js.gz +0 -0
- package/assets/devtools/chunk.DeN6s4_I.js +0 -1
- package/assets/devtools/chunk.DeN6s4_I.js.br +0 -0
- package/assets/devtools/chunk.DeN6s4_I.js.gz +0 -0
- package/assets/devtools/chunk.DpW9QoyF.js +0 -1
- package/assets/devtools/chunk.DpW9QoyF.js.br +0 -0
- package/assets/devtools/chunk.DpW9QoyF.js.gz +0 -0
- package/assets/devtools/chunk.PcVF_qXP.js +0 -1
- package/assets/devtools/chunk.PcVF_qXP.js.br +0 -0
- package/assets/devtools/chunk.PcVF_qXP.js.gz +0 -0
- package/assets/devtools/chunk.Q6_b9IUt.js +0 -1
- package/assets/devtools/chunk.Q6_b9IUt.js.br +0 -0
- package/assets/devtools/chunk.Q6_b9IUt.js.gz +0 -0
- package/assets/devtools/chunk.YqHRwxdc.js.br +0 -0
- package/assets/devtools/chunk.YqHRwxdc.js.gz +0 -0
- package/assets/devtools/chunk._D_TfCmJ.js +0 -1
- package/assets/devtools/chunk._D_TfCmJ.js.br +0 -0
- package/assets/devtools/chunk._D_TfCmJ.js.gz +0 -0
- package/assets/devtools/chunk.l66LreXu.js.br +0 -0
- package/assets/devtools/chunk.l66LreXu.js.gz +0 -0
- package/assets/devtools/chunk.lvb4PIb4.js.br +0 -0
- package/assets/devtools/chunk.lvb4PIb4.js.gz +0 -0
- package/assets/devtools/chunk.rvqQkpV6.js +0 -2
- package/assets/devtools/chunk.rvqQkpV6.js.br +0 -0
- package/assets/devtools/chunk.rvqQkpV6.js.gz +0 -0
- package/assets/devtools/chunk.s1U1MhH3.js.br +0 -0
- package/assets/devtools/chunk.s1U1MhH3.js.gz +0 -0
- package/assets/devtools/chunk.wg5XuK3_.js.br +0 -0
- package/assets/devtools/chunk.wg5XuK3_.js.gz +0 -0
- package/assets/devtools/entry.Cgjh-xX-.js +0 -79
- package/assets/devtools/entry.Cgjh-xX-.js.br +0 -0
- package/assets/devtools/entry.Cgjh-xX-.js.gz +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunk.B06miRTQ.js","chunk.Dnb5TqA8.js","chunk.BK94oaB2.js","chunk.BlqFPyLh.js","chunk.CfzSCjsJ.js","chunk.BjFrJKj1.js","chunk.B4XxoeIU.js","chunk.DN2ng7Ec.js","chunk.D4SUrYI2.js","chunk.uyVen0u2.js","chunk.CiLYCLJH.js","chunk.DqdWWOSs.js","chunk.CnHYu38l.js","chunk.D1-ODKSf.js","chunk.BLgG-Amn.js","chunk.DXhVYZJu.js","chunk.DrLudrGo.js","chunk.Bz4bTzr0.js","chunk.DAeCHJ5Z.js","chunk.DkirMznI.js","chunk.ax3VFVgz.js","chunk.YsQsplrn.js","chunk.BRKelMlC.js","chunk.BOYwUUqI.js","chunk.BPCHIpy2.js","chunk.BDGiK8wy.js","chunk.CKppnGPU.js","chunk.K-Ms8Mzm.js","chunk.8L5-bmT2.js","chunk.U6B6OT4m.js","chunk.KgyhVGwW.js","chunk.qLydHlIe.js","chunk.BrsQ66Fo.js","chunk.DgZ24mun.js","chunk.9_-GTbfg.js","asset.BZV40eAE.css","chunk.V91GMRqU.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var i3=Object.defineProperty;var s3=(t,e,n)=>e in t?i3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Us=(t,e,n)=>s3(t,typeof e!="symbol"?e+"":e,n);function a3(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const l=Object.getOwnPropertyDescriptor(r,s);l&&Object.defineProperty(t,s,l.get?l:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();const Rn=Symbol.for("Alepha.Kind"),Pn=Symbol.for("Alepha.Module"),ec=Symbol.for("Alepha.Options");class kt extends Error{name="AlephaError"}class l3 extends kt{name="CircularDependencyError";constructor(e,n){super(`Instance not available. Looks like a circular dependency. ? -> ${n?.map(r=>`${r} -> `).join("")}${e} -> ?`)}}class xw extends kt{name="ContainerLockedError";constructor(e="Container is locked. No more providers can be added."){super(e)}}class u3 extends kt{name="TooLateSubstitutionError";constructor(e,n){super(`Service already substituted. Please, substitute Service '${e}' with Service '${n}' before using it.`)}}class c3 extends kt{name="MissingContextError";constructor(){super("Missing context. Did you forget to call Alepha.create()?"),this.name="MissingContextError"}}const zr={},fc=()=>{if(!zr.alepha)throw new c3;return{alepha:zr.alepha,service:zr.service,module:zr.service?.[Pn]}};class di{alepha;options;config;constructor(e){this.alepha=e.alepha,this.options=e.options,this.config={propertyKey:"",service:e.service,module:e.module}}onInit(){}}const us=(t,e)=>{const{alepha:n,service:r}=fc();return Pn in t&&t[Pn]&&n.with(t[Pn]),n.inject(t,{lifetime:"transient",args:[{options:e,alepha:n,service:r??Re}]})};function f3(t){if(typeof t!="function")return!1;const e=Object.getOwnPropertyDescriptor(t,"prototype");return!!e&&!e.writable}const gr=t=>{const{services:e=[],primitives:n=[],name:r}=t;if(!r||!al.NAME_REGEX.test(r))throw new kt(`Invalid module name '${r}'. It should be in the format of 'project.module.submodule'`);const s=class extends al{options=t;register(l){if(t.atoms)for(const c of t.atoms)l.store.register(c);if(typeof t.register=="function"){t.register(l);return}for(const c of e)l.inject(c,{parent:this.constructor})}};Object.defineProperty(s,"name",{value:r,writable:!1});for(const l of e)al.is(l)||(l[Pn]=s);for(const l of n)typeof l[Rn]=="function"&&(l[Rn][Pn]=s);return s};let al=class E2{static NAME_REGEX=/^[a-z-]+(\.[a-z-][a-z0-9-]*)*$/;static is(e){return e.prototype instanceof E2}static of(e){return e[Pn]}};class Wd{static create=()=>{};als;constructor(){this.als=Wd.create()}createContextId(){return crypto.randomUUID()}run(e,n={}){return this.als?(n.registry??=new Map,n.context??=this.createContextId(),this.als.run({...n},e)):e()}exists(){return!!this.get("context")}get(e){if(!this.als)return;const n=this.als.getStore();if(n)return n[e]}set(e,n){if(!this.als)return;const r=this.als.getStore();r&&(r[e]=n)}}const Rt=(t,e={})=>{const{alepha:n,service:r}=fc();return t===n.constructor?n:n.inject(t,{parent:r??n.constructor,...e})};let d3=class{stringify=JSON.stringify;parse=JSON.parse};class x2{}class w2 extends x2{json=Rt(d3);encoder=new TextEncoder;decoder=new TextDecoder;encodeToString(e,n){return this.json.stringify(n)}encodeToBinary(e,n){return this.encoder.encode(this.encodeToString(e,n))}decode(e,n){if(n instanceof Uint8Array){const r=this.decoder.decode(n);return this.json.parse(r)}if(typeof n=="string"){const r=n.trim();return r.startsWith("{")||r.startsWith("[")?this.json.parse(n):n}return n}}const sr=t=>us(T2,t);class T2 extends di{called=0;onInit(){const e=this.options.handler;this.alepha.events.on(this.options.on,{caller:this.config.service,priority:this.options.priority,callback:n=>(this.called+=1,e(n))})}}sr[Rn]=T2;function Xe(t,e){return{...t,...e}}function ns(t,e,n){return t>=e&&t<=n}function ww(t){return ns(t,127462,127487)}function m3(t){return ns(t,65024,65039)}function h3(t){return ns(t,768,879)||ns(t,6832,6911)||ns(t,7616,7679)||ns(t,65056,65071)}function vd(t){return t>65535?2:1}function Tw(t,e){for(;e<t.length;){const n=t.codePointAt(e);if(h3(n)||m3(n))e+=vd(n);else break}return e}function b0(t,e){const n=t.codePointAt(e);let r=e+vd(n);for(r=Tw(t,r);r<t.length-1&&t[r]==="";){const s=t.codePointAt(r+1);r+=1+vd(s),r=Tw(t,r)}return ww(n)&&r<t.length&&ww(t.codePointAt(r))&&(r+=vd(t.codePointAt(r))),r}function C2(t){return ns(t,55296,56319)||ns(t,768,879)||t===8205}function p3(t){let e=0,n=0;for(;n<t.length;)n=b0(t,n),e++;return e}function g3(t,e){if(e===0)return!0;let n=0,r=0;for(;r<t.length;)if(r=b0(t,r),n++,n>=e)return!0;return!1}function y3(t,e){let n=0,r=0;for(;r<t.length;)if(r=b0(t,r),n++,n>e)return!1;return!0}function b3(t,e){if(e===0)return!0;let n=0;for(;n<t.length;){if(C2(t.charCodeAt(n)))return g3(t,e);if(n++,n>=e)return!0}return!1}function v3(t,e){let n=0;for(;n<t.length;){if(C2(t.charCodeAt(n)))return y3(t,e);if(n++,n>e)return!1}return!0}function xt(t){return Array.isArray(t)}function A2(t){return Mt(t)&&Symbol.asyncIterator in t}function Ne(t){return M(typeof t,"bigint")}function Fe(t){return M(typeof t,"boolean")}function v0(t){if(ye(t)||!ai(t))return!1;const e=Function.prototype.toString.call(t);return!!(/^class\s/.test(e)||/\[native code\]/.test(e))}function ai(t){return M(typeof t,"function")}function tm(t){return Number.isInteger(t)}function $2(t){return Mt(t)&&Symbol.iterator in t}function Vn(t){return M(t,null)}function Kt(t){return Number.isFinite(t)}function mi(t){return Mt(t)&&!xt(t)}function Mt(t){return M(typeof t,"object")&&!Vn(t)}function jt(t){return M(typeof t,"string")}function S0(t){return M(typeof t,"symbol")}function ye(t){return M(t,void 0)}function M(t,e){return t===e}function vl(t,e){return t>e}function em(t,e){return t<e}function hi(t,e){return t<=e}function Sl(t,e){return t>=e}function M2(t,e){if(Ne(t)||Ne(e))return BigInt(t)%BigInt(e)===0n;const n=1e-10;if(!Kt(t)||tm(t)&&1/e%1===0)return!0;const r=t%e;return Math.min(Math.abs(r),Math.abs(r-e))<n}function R2(t){if(!Mt(t))return!1;const e=globalThis.Object.getPrototypeOf(t);return Vn(e)?!1:M(typeof e.constructor,"function")&&!(M(e.constructor,globalThis.Object)||M(e.constructor.name,"Object"))}function dc(t){return Ne(t)||Fe(t)||Vn(t)||Kt(t)||jt(t)||ye(t)}function S3(t){return p3(t)}function O2(t,e){return v3(t,e)}function N2(t,e){return b3(t,e)}function gn(t,e,n){for(let r=e;r<t.length;r++)if(!n(t[r],r))return!1;return!0}function yn(t,e,n){let r=!0;for(let s=e;s<t.length;s++)n(t[s],s)||(r=!1);return r}function at(t,e){return M(e,"__proto__")||M(e,"constructor")?Object.prototype.hasOwnProperty.call(t,e):e in t}function E0(t){return yt(t).map(e=>[new RegExp(`^${e}$`),t[e]])}function Qe(t){return Object.entries(t)}function yt(t){return Object.getOwnPropertyNames(t)}function E3(t){return Object.getOwnPropertySymbols(t)}function x0(t){return Object.values(t)}function x3(t,e){if(!Mt(e))return!1;const n=yt(t);return M(n.length,yt(e).length)&&n.every(r=>mc(t[r],e[r]))}function w3(t,e){return xt(e)&&M(t.length,e.length)&&t.every((n,r)=>mc(t[r],e[r]))}function mc(t,e){return xt(t)?w3(t,e):Mt(t)?x3(t,e):M(t,e)}const T3=Object.freeze(Object.defineProperty({__proto__:null,Entries:Qe,EntriesRegExp:E0,Every:gn,EveryAll:yn,GraphemeCount:S3,HasPropertyKey:at,IsArray:xt,IsAsyncIterator:A2,IsBigInt:Ne,IsBoolean:Fe,IsClassInstance:R2,IsConstructor:v0,IsDeepEqual:mc,IsEqual:M,IsFunction:ai,IsGreaterEqualThan:Sl,IsGreaterThan:vl,IsInteger:tm,IsIterator:$2,IsLessEqualThan:hi,IsLessThan:em,IsMaxLength:O2,IsMinLength:N2,IsMultipleOf:M2,IsNull:Vn,IsNumber:Kt,IsObject:Mt,IsObjectNotArray:mi,IsString:jt,IsSymbol:S0,IsUndefined:ye,IsValueLike:dc,Keys:yt,Symbols:E3,Values:x0},Symbol.toStringTag,{value:"Module"})),C3=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function A3(t){return C3.test(t)}function yr(t,e){return`(${t} && ${e})`}function ve(t,e){return`(${t} || ${e})`}function An(t){return`!(${t})`}function Id(t){return`Array.isArray(${t})`}function $3(t){return`Guard.IsAsyncIterator(${t})`}function _2(t){return`typeof ${t} === "bigint"`}function M3(t){return`typeof ${t} === "boolean"`}function R3(t){return`Number.isInteger(${t})`}function O3(t){return`Guard.IsIterator(${t})`}function N3(t){return`${t} === null`}function D2(t){return`Number.isFinite(${t})`}function j2(t){return yr(I2(t),An(Id(t)))}function I2(t){return`typeof ${t} === "object" && ${t} !== null`}function L2(t){return`typeof ${t} === "string"`}function _3(t){return`typeof ${t} === "symbol"`}function Ay(t){return`${t} === undefined`}function D3(t){return`typeof ${t} === "function"`}function j3(t){return`Guard.IsConstructor(${t})`}function lr(t,e){return`${t} === ${e}`}function z2(t,e){return`${t} > ${e}`}function B2(t,e){return`${t} < ${e}`}function El(t,e){return`${t} <= ${e}`}function nm(t,e){return`${t} >= ${e}`}function I3(t,e){return`Guard.IsMinLength(${t}, ${e})`}function L3(t,e){return`Guard.IsMaxLength(${t}, ${e})`}function ea(t,e,n,r){return M(e,"0")?`${t}.every((${n[0]}, ${n[1]}) => ${r})`:`((value, callback) => { for(let index = ${e}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${t}, (${n[0]}, ${n[1]}) => ${r})`}function U2(t){return`Object.entries(${t})`}function na(t){return`Object.getOwnPropertyNames(${t})`}function Ks(t,e){return M(e,'"__proto__"')||M(e,'"constructor"')?`Object.prototype.hasOwnProperty.call(${t}, ${e})`:`${e} in ${t}`}function k2(t,e){return`Guard.IsDeepEqual(${t}, ${e})`}function z3(t){return`[${t.join(", ")}]`}function ur(t,e){return`((${t.join(", ")}) => ${e})`}function ne(t,e){return`${t}(${e.join(", ")})`}function w0(t,e){return`new ${t}(${e.join(", ")})`}function Dt(t,e){return`${t}${A3(e)?`.${e}`:`[${St(e)}]`}`}function St(t){return jt(t)?JSON.stringify(t):`${t}`}function rm(t,e,n){return`(${t} ? ${e} : ${n})`}function om(t){return`{ ${t.join("; ")}; }`}function oi(t,e){return`const ${t} = ${e}`}function P2(t,e){return`if(${t}) { ${e} }`}function im(t){return`return ${t}`}function En(t){return M(t.length,0)?"true":t.reduce((e,n)=>yr(e,n))}function T0(t){return M(t.length,0)?"false":t.reduce((e,n)=>ve(e,n))}function C0(t){return`++${t}`}function B3(t,e){return`Guard.IsMultipleOf(${t}, ${e})`}function U3(t){return t instanceof Boolean}function k3(t){return t instanceof Number}function P3(t){return t instanceof String}function H2(t){return globalThis.ArrayBuffer.isView(t)}function H3(t){return t instanceof globalThis.RegExp}function F3(t){return t instanceof globalThis.Date}function q3(t){return t instanceof globalThis.Set}function G3(t){return t instanceof globalThis.Map}function Y3(t){return Mt(t)&&at(t,"~guard")}function V3(t){return t.map(e=>A0(e))}function K3(t){const e={},n=Object.getOwnPropertyDescriptors(t);for(const r of Object.keys(n)){const s=n[r];at(s,"value")&&Object.defineProperty(e,r,{...s,value:A0(s.value)})}return e}function X3(t){return new RegExp(t.source,t.flags)}function A0(t){return t instanceof RegExp?X3(t):Y3(t)?t:xt(t)?V3(t):Mt(t)?K3(t):t}function F2(t){return A0(t)}const Q3={immutableTypes:!1,maxErrors:8,useEval:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1};function hc(){return Q3}function Z3(t,e,n={}){for(const r of Object.keys(e))Object.defineProperty(t,r,{configurable:!0,writable:!0,enumerable:!1,value:e[r]});return t}function J3(t,e){return{...t,...e}}function Nt(t,e,n={}){const r=J3(e,n);return Z3(r,t)}function Gr(t,e){const n={},r=Object.getOwnPropertyDescriptors(F2(t)),s=new Set(e);for(const l of Object.keys(r))s.has(l)||Object.defineProperty(n,l,r[l]);return n}function Qt(t,e,n){const r=hc(),s=F2(t);for(const l of Object.keys(e))Object.defineProperty(s,l,{configurable:!0,writable:!0,enumerable:r.enumerableKind,value:e[l]});for(const l of Object.keys(n))Object.defineProperty(s,l,{configurable:!0,enumerable:!0,writable:!0,value:n[l]});return s}function Ht(t,e){return Mt(t)&&at(t,"~kind")&&M(t["~kind"],e)}function Ut(t){return Mt(t)}function W3(t){return Nt({"~kind":"OptionalAddAction"},{type:t},{})}function tD(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&M(t["~kind"],"OptionalAddAction")&&Ut(t.type)}function eD(t){return Nt({"~kind":"OptionalRemoveAction"},{type:t},{})}function nD(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&M(t["~kind"],"OptionalRemoveAction")&&Ut(t.type)}function rD(t){return Nt({"~kind":"ReadonlyAddAction"},{type:t},{})}function oD(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&M(t["~kind"],"ReadonlyAddAction")&&Ut(t.type)}function iD(t){return Nt({"~kind":"ReadonlyRemoveAction"},{type:t},{})}function sD(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&M(t["~kind"],"ReadonlyRemoveAction")&&Ut(t.type)}function me(t,e,n){return Nt({"~kind":"Deferred"},{action:t,parameters:e,options:n},{})}function aD(t){return Ht(t,"Deferred")}function q2(t){return Qt(t,{"~immutable":!0},{})}function sm(t){return q2(t)}function Ld(t){return Ut(t)&&at(t,"~immutable")}function $0(t){return Gr(t,["~optional"])}function kr(t){return Qt(t,{"~optional":!0},{})}function M0(t){return kr(t)}function qn(t){return Ut(t)&&at(t,"~optional")}function G2(t){return Gr(t,["~readonly"])}function Pr(t){return Qt(t,{"~readonly":!0},{})}function Y2(t){return Pr(t)}function zd(t){return Ut(t)&&at(t,"~readonly")}function ra(t,e){return Nt({"~kind":"Array"},{type:"array",items:t},e)}function nn(t){return Ht(t,"Array")}function V2(t){return Gr(t,["~kind","type","items"])}function pc(t,e){return Nt({"~kind":"AsyncIterator"},{type:"asyncIterator",iteratorItems:t},e)}function cs(t){return Ht(t,"AsyncIterator")}function lD(t){return Gr(t,["~kind","type","iteratorItems"])}function Cw(t){return{enumerable:hc().enumerableKind,writable:!1,configurable:!1,value:t}}let K2=class{constructor(){globalThis.Object.defineProperty(this,"~kind",Cw("Base")),globalThis.Object.defineProperty(this,"~guard",Cw({check:e=>this.Check(e),errors:e=>this.Errors(e)}))}Check(e){return!0}Errors(e){return[]}Convert(e){return e}Clean(e){return e}Default(e){return e}Create(){throw new Error("Create not implemented")}Clone(){throw Error("Clone not implemented")}};function xl(t){return Ht(t,"Base")}function am(t,e,n={}){return Nt({"~kind":"Constructor"},{type:"constructor",parameters:t,instanceType:e},n)}function jo(t){return Ht(t,"Constructor")}function uD(t){return Gr(t,["~kind","type","parameters","instanceType"])}function lm(t,e,n={}){return Nt({"~kind":"Function"},{type:"function",parameters:t,returnType:e},n)}function Io(t){return Ht(t,"Function")}function cD(t){return Gr(t,["~kind","type","parameters","returnType"])}function cr(t,e){return Nt({"~kind":"Ref"},{$ref:t},e)}function On(t){return Ht(t,"Ref")}function gc(t,e){return Nt({"~kind":"Generic"},{type:"generic",parameters:t,expression:e})}function R0(t){return Ht(t,"Generic")}const fD="(?!)";function Ze(t){return Nt({"~kind":"Never"},{not:{}},t)}function um(t){return Ht(t,"Never")}function dD(){return["(not-resolvable)",Ze()]}function mD(){return["(not-generic)",Ze()]}function hD(t,e,n){return[t,gc(e,n)]}function pD(t,e,n){return e in t?X2(t,e,t[e]):dD()}function X2(t,e,n,r){return R0(n)?hD(e,n.parameters,n.expression):On(n)?pD(t,n.$ref):mD()}function gD(t,e,n){return X2(t,"(anonymous)",e)}function yc(t,e,n){const r=yt(t).reduce((s,l)=>({...s,[l]:Qt(t[l],{},{$id:l})}),{});return Nt({"~kind":"Cyclic"},{$defs:r,$ref:e},n)}function Nn(t){return Ht(t,"Cyclic")}function rn(t,e){return e[t.length]?.(...t)??(()=>{throw Error("Invalid Arguments")})()}function fr(t){return Nt({"~kind":"Unknown"},{},t)}function os(t){return Ht(t,"Unknown")}function $y(...t){const[e,n]=rn(t,{2:(r,s)=>[r,s,s],1:r=>[r,fr(),fr()]});return Nt({"~kind":"Infer"},{type:"infer",name:e,extends:n},{})}function dr(t){return Ht(t,"Infer")}function ll(t){return Nt({"~kind":"Any"},{},t)}function pi(t){return Ht(t,"Any")}function yD(t){return mi(t)}function bD(t){return yt(t).filter(n=>isNaN(n)).reduce((n,r)=>[...n,t[r]],[])}function vD(t,e){const n=yD(t)?bD(t):t;return Nt({"~kind":"Enum"},{enum:n},e)}function uo(t){return Ht(t,"Enum")}function Xs(t,e={}){return Nt({"~kind":"Intersect"},{allOf:t},e)}function xe(t){return Ht(t,"Intersect")}function SD(t){return Gr(t,["~kind","allOf"])}function He(){throw new Error("Unreachable")}let qg;function ED(){try{return new globalThis.Function("null")(),!0}catch{return!1}}function O0(){return ye(qg)&&(qg=ED()),qg&&hc().useEval}function xD(t){const e=new Set;let n=t;for(;n&&n!==Object.prototype;){for(const r of Reflect.ownKeys(n))r!=="constructor"&&typeof r!="symbol"&&e.add(r);n=Object.getPrototypeOf(n)}return[...e]}function wD(t){return typeof t=="number"}var xn;(function(t){t[t.Array=0]="Array",t[t.BigInt=1]="BigInt",t[t.Boolean=2]="Boolean",t[t.Date=3]="Date",t[t.Constructor=4]="Constructor",t[t.Function=5]="Function",t[t.Null=6]="Null",t[t.Number=7]="Number",t[t.Object=8]="Object",t[t.RegExp=9]="RegExp",t[t.String=10]="String",t[t.Symbol=11]="Symbol",t[t.TypeArray=12]="TypeArray",t[t.Undefined=13]="Undefined"})(xn||(xn={}));let il=BigInt("14695981039346656037");const[TD,CD]=[BigInt("1099511628211"),BigInt("18446744073709551616")],AD=Array.from({length:256}).map((t,e)=>BigInt(e)),Q2=new Float64Array(1),Z2=new DataView(Q2.buffer),J2=new Uint8Array(Q2.buffer);function en(t){il=il^AD[t],il=il*TD%CD}function $D(t){en(xn.Array);for(const e of t)is(e)}function MD(t){en(xn.BigInt),Z2.setBigInt64(0,t);for(const e of J2)en(e)}function Aw(t){en(xn.Boolean),en(t?1:0)}function RD(t){en(xn.Constructor),is(t.toString())}function OD(t){en(xn.Date),is(t.getTime())}function ND(t){en(xn.Function),is(t.toString())}function _D(t){en(xn.Null)}function $w(t){en(xn.Number),Z2.setFloat64(0,t,!0);for(const e of J2)en(e)}function DD(t){en(xn.Object);for(const e of xD(t).sort())is(e),is(t[e])}function jD(t){en(xn.RegExp),My(t.toString())}const ID=new TextEncoder;function My(t){en(xn.String);for(const e of ID.encode(t))en(e)}function LD(t){en(xn.Symbol),is(t.toString())}function zD(t){en(xn.TypeArray);const e=new Uint8Array(t.buffer);for(let n=0;n<e.length;n++)en(e[n])}function BD(t){return en(xn.Undefined)}function is(t){return H2(t)?zD(t):F3(t)?OD(t):H3(t)?jD(t):U3(t)?Aw(t.valueOf()):P3(t)?My(t.valueOf()):k3(t)?$w(t.valueOf()):wD(t)?$w(t):xt(t)?$D(t):Fe(t)?Aw(t):Ne(t)?MD(t):v0(t)?RD(t):Vn(t)?_D():Mt(t)?DD(t):jt(t)?My(t):S0(t)?LD(t):ye(t)?BD():ai(t)?ND(t):He()}function W2(t){return il=BigInt("14695981039346656037"),is(t),il}function rc(t){return W2(t).toString(16).padStart(16,"0")}const UD=Object.freeze(Object.defineProperty({__proto__:null,Hash:rc,HashCode:W2},Symbol.toStringTag,{value:"Module"}));function kD(t){switch(t.keyword){case"additionalProperties":return"must not have additional properties";case"anyOf":return"must match a schema in anyOf";case"boolean":return"schema is false";case"const":return"must be equal to constant";case"contains":return"must contain at least 1 valid item";case"dependencies":return`must have properties ${t.params.dependencies.join(", ")} when property ${t.params.property} is present`;case"dependentRequired":return`must have properties ${t.params.dependencies.join(", ")} when property ${t.params.property} is present`;case"enum":return"must be equal to one of the allowed values";case"exclusiveMaximum":return`must be ${t.params.comparison} ${t.params.limit}`;case"exclusiveMinimum":return`must be ${t.params.comparison} ${t.params.limit}`;case"format":return`must match format "${t.params.format}"`;case"if":return`must match "${t.params.failingKeyword}" schema`;case"maxItems":return`must not have more than ${t.params.limit} items`;case"maxLength":return`must not have more than ${t.params.limit} characters`;case"maxProperties":return`must not have more than ${t.params.limit} properties`;case"maximum":return`must be ${t.params.comparison} ${t.params.limit}`;case"minItems":return`must not have fewer than ${t.params.limit} items`;case"minLength":return`must not have fewer than ${t.params.limit} characters`;case"minProperties":return`must not have fewer than ${t.params.limit} properties`;case"minimum":return`must be ${t.params.comparison} ${t.params.limit}`;case"multipleOf":return`must be multiple of ${t.params.multipleOf}`;case"not":return"must not be valid";case"oneOf":return"must match exactly one schema in oneOf";case"pattern":return`must match pattern "${t.params.pattern}"`;case"propertyNames":return`property names ${t.params.propertyNames.join(", ")} are invalid`;case"required":return`must have required properties ${t.params.requiredProperties.join(", ")}`;case"type":return typeof t.params.type=="string"?`must be ${t.params.type}`:`must be either ${t.params.type.join(" or ")}`;case"unevaluatedItems":return"must not have unevaluated items";case"unevaluatedProperties":return"must not have unevaluated properties";case"uniqueItems":return"must not have duplicate items";case"~guard":return"must match check function";case"~refine":return t.params.message;default:return"an unknown validation error occurred"}}let PD=kD;function HD(){return PD}class tC{constructor(e,n){this.type=e,this.decode=n}Encode(e){const n=this.type,r=mr(n)?c=>this.decode(n["~codec"].decode(c)):this.decode,s=mr(n)?c=>n["~codec"].encode(e(c)):e,l={decode:r,encode:s};return Qt(this.type,{"~codec":l},{})}}class eC{constructor(e){this.type=e}Decode(e){return new tC(this.type,e)}}function N0(t){return new eC(t)}function FD(t,e){return N0(t).Decode(e).Encode(()=>{throw Error("Encode not implemented")})}function qD(t,e){return N0(t).Decode(()=>{throw Error("Decode not implemented")}).Encode(e)}function mr(t){return Ut(t)&&at(t,"~codec")&&Mt(t["~codec"])&&at(t["~codec"],"encode")&&at(t["~codec"],"decode")}function GD(t,e){const n=nC(t)?[...t["~refine"],e]:[e];return Qt(t,{"~refine":n},{})}function YD(t,e,n="error"){return GD(t,{refine:e,message:n})}function nC(t){return Ut(t)&&at(t,"~refine")}const VD="-?(?:0|[1-9][0-9]*)n";function _0(t){return Nt({"~kind":"BigInt"},{type:"bigint"},t)}function oa(t){return Ht(t,"BigInt")}function D0(t){return Nt({"~kind":"Boolean"},{type:"boolean"},t)}function gi(t){return Ht(t,"Boolean")}function Bd(t){return Nt({"~kind":"Identifier"},{name:t})}function KD(t){return Ht(t,"Identifier")}const rC="-?(?:0|[1-9][0-9]*)";function dl(t){return Nt({"~kind":"Integer"},{type:"integer"},t)}function co(t){return Ht(t,"Integer")}function bc(t,e){return Nt({"~kind":"Iterator"},{type:"iterator",iteratorItems:t},e)}function fs(t){return Ht(t,"Iterator")}function XD(t){return Gr(t,["~kind","type","iteratorItems"])}class QD extends Error{constructor(e){super("Invalid Literal value"),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}}function ZD(t){return Ne(t)?"bigint":Fe(t)?"boolean":Kt(t)?"number":jt(t)?"string":(()=>{throw new QD(t)})()}function be(t,e){return Nt({"~kind":"Literal"},{type:ZD(t),const:t},e)}function oC(t){return Ne(t)||Fe(t)||Kt(t)||jt(t)}function JD(t){return Ie(t)&&Ne(t.const)}function WD(t){return Ie(t)&&Fe(t.const)}function j0(t){return Ie(t)&&Kt(t.const)}function I0(t){return Ie(t)&&jt(t.const)}function Ie(t){return Ht(t,"Literal")}function Ys(t){return Nt({"~kind":"Null"},{type:"null"},t)}function wl(t){return Ht(t,"Null")}const iC="-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?";function li(t){return Nt({"~kind":"Number"},{type:"number"},t)}function br(t){return Ht(t,"Number")}function L0(t){return Nt({"~kind":"Symbol"},{type:"symbol"},t)}function vc(t){return Ht(t,"Symbol")}function tj(t){return yt(t).filter(e=>!qn(t[e]))}function ej(t){return yt(t)}function sC(t){return x0(t)}function le(t,e={}){const n=tj(t),r=n.length>0?{required:n}:{};return Nt({"~kind":"Object"},{type:"object",...r,properties:t},e)}function $e(t){return Ht(t,"Object")}function nj(t){return Gr(t,["~kind","type","properties","required"])}function Sc(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[s,l,l],1:s=>[s,fr(),fr()]});return Nt({"~kind":"Parameter"},{name:e,extends:n,equals:r},{})}function rj(t){return Ht(t,"Parameter")}function Ec(t,e){return Nt({"~kind":"Promise"},{type:"promise",item:t},e)}function yi(t){return Ht(t,"Promise")}function oj(t){return Gr(t,["~kind","type","item"])}const aC=".*";function Hr(t){return Nt({"~kind":"String"},{type:"string"},t)}function Hn(t){return Ht(t,"String")}function Se(t,e={}){return Nt({"~kind":"Union"},{anyOf:t},e)}function Pt(t){return Ht(t,"Union")}function ij(t){return Gr(t,["~kind","anyOf"])}function lC(t){const e=uI(t);return M(e.length,2)?e[0]:[]}function sj(t){return!0}function uC(t){const[e,...n]=t;return Ut(e)?aj(e)?uC(n):!1:!0}function cC(t){return M(t.length,0)?!1:uC(t)}function aj(t){return Pt(t)?cC(t.anyOf):Ie(t)?sj(t.const):!1}function fC(t){return cC(t)}function dC(t){return Nt({"~kind":"TemplateLiteral"},{type:"string",pattern:t},{})}function mC(t,e,n=[]){const[r,...s]=t;return jt(r)?mC(s,e,[...n,`${r}${e}`]):n}function lj(t,e){return M(t.length,0)?[`${e}`]:mC(t,e)}function hC(t,e,n=[]){const[r,...s]=e;return Ut(r)?hC(t,s,[...n,...pC(t,r)]):n}function pC(t,e){return Pt(e)?hC(t,e.anyOf):Ie(e)?lj(t,e.const):He()}function gC(t,e){const[n,...r]=e;return Ut(n)?gC(pC(t,n),r):t}function uj(t){return t.map(e=>be(e))}function cj(t){const e=gC([],t),n=uj(e);return Se(n)}function fj(t){return M(t.length,0)?He():M(t.length,1)&&Ie(t[0])?t[0]:cj(t)}function yC(t){const e=lC(t);return M(e.length,0)?Hr():fC(e)?fj(e):dC(t)}function bi(t){const e=yC(t);return Yr(e)?Hr():e}function ss(t,e){const n="object",r={[t]:e};return Nt({"~kind":"Record"},{type:n,patternProperties:r})}const cm=`^${rC}$`,fm=`^${iC}$`,Qs=`^${aC}$`;function z0(t,e,n={}){return me("Record",[t,e],n)}function dj(t,e,n={}){return he({},z0(t,e,n))}function B0(t,e,n={}){return dj(t,e,n)}function mj(t,e){return ss(t,e)}function ds(t){return yt(t.patternProperties)[0]}function U0(t){const e=ds(t);return M(e,Qs)?Hr():M(e,cm)?dl():M(e,fm)?li():yC(e)}function Lo(t){return t.patternProperties[ds(t)]}function vr(t){return Ht(t,"Record")}function dm(t){return Nt({"~kind":"Rest"},{type:"rest",items:t},{})}function mm(t){return Ht(t,"Rest")}function bC(t){return Nt({"~kind":"This"},{$ref:"#"},t)}function hj(t){return Ht(t,"This")}function fo(t,e={}){const[n,r,s]=[t,t.length,!1];return Nt({"~kind":"Tuple"},{type:"array",additionalItems:s,items:n,minItems:r},e)}function qe(t){return Ht(t,"Tuple")}function pj(t){return Gr(t,["~kind","type","items","minItems","additionalItems"])}function hm(t){return Nt({"~kind":"Undefined"},{type:"undefined"},t)}function Tl(t){return Ht(t,"Undefined")}function Sd(t){return Nt({"~kind":"Unsafe"},{},t)}function vC(t){return Ht(t,"Unsafe")}function k0(t){return Nt({"~kind":"Void"},{type:"void"},t)}function ms(t){return Ht(t,"Void")}function gj(t,e){return M(t,"Array")?ra(e[0]):M(t,"AsyncIterator")?pc(e[0]):M(t,"Iterator")?bc(e[0]):M(t,"Promise")?Ec(e[0]):M(t,"Awaited")?Ub(e[0]):M(t,"Capitalize")?db(e[0]):M(t,"ConstructorParameters")?yb(e[0]):M(t,"Evaluate")?XA(e[0]):M(t,"Exclude")?bb(e[0],e[1]):M(t,"Extract")?vb(e[0],e[1]):M(t,"Index")?vm(e[0],e[1]):M(t,"InstanceType")?Tb(e[0]):M(t,"Lowercase")?mb(e[0]):M(t,"NonNullable")?Ab(e[0]):M(t,"Omit")?$b(e[0],e[1]):M(t,"Options")?Em(e[0],e[1]):M(t,"Parameters")?Rb(e[0]):M(t,"Partial")?Ob(e[0]):M(t,"Pick")?Nb(e[0],e[1]):M(t,"Readonly")?_b(e[0]):M(t,"KeyOf")?Sm(e[0]):M(t,"Record")?z0(e[0],e[1]):M(t,"Required")?Db(e[0]):M(t,"ReturnType")?jb(e[0]):M(t,"Uncapitalize")?hb(e[0]):M(t,"Uppercase")?pb(e[0]):_A(cr(t),e)}function ia(){throw Error("Unreachable")}const yj=(t,e=[])=>t.reduce((n,r)=>xt(r)&&M(r.length,2)?[...n,r[0]]:[...n,r],[]),vi=t=>{const[e,n]=t;return yj([...e,...n])};function bj(t){return Sc(t[0],t[2],t[4])}function vj(t){return Sc(t[0],t[2],t[2])}function Sj(t){return Sc(t[0],fr(),t[2])}function Ej(t){return Sc(t,fr(),fr())}function xj(t){return vi(t)}function wj(t){return t[1]}function Tj(t){return vi(t)}function Cj(t){return t[1]}function Aj(t){return gj(t[0],t[1])}function $j(t){return null}function Mj(t){return Hr()}function Rj(t){return li()}function Oj(t){return D0()}function Nj(t){return hm()}function _j(t){return Ys()}function Dj(t){return dl()}function jj(t){return _0()}function Ij(t){return fr()}function Lj(t){return ll()}function zj(t){return le({})}function Bj(t){return Ze()}function Uj(t){return L0()}function kj(t){return k0()}function Pj(t){return bC()}function Hj(t){return t[1]}function Fj(t){return be(t)}function qj(t){return M(t.length,3)?[t[0],t[1],...t[2]]:[t[0]]}function Gj(t){return t[1]}function Yj(t){return J0(t)}function Vj(t){return be(BigInt(t))}function Kj(t){return be(M(t,"true"))}function Xj(t){return be(parseFloat(t))}function Qj(t){return be(t)}function Zj(t){return t.length>0}function Jj(t){return t.reduce((e,n)=>M(n.length,3)?[...e,[n[1]]]:[...e,[]],[])}function Wj(t){return M(t.length,6)?[t[1],t[3],t[5]]:[]}function t4(t){return xt(t)&&M(t.length,3)?t[1]:t}const Mw=(t,e)=>e.reduceRight((n,r)=>{const s=r;return M(s.length,1)?vm(n,s[0]):M(s.length,0)?ra(n):ia()},t),Rw=(t,e)=>M(e.length,3)?gb(t,e[0],e[1],e[2]):t;function e4(t){const[e,n,r,s]=t;return Rw(e?Sm(Mw(n,r)):Mw(n,r),s)}function P0(t,e){return M(e.length,3)?(()=>{const[n,r,s]=e,l=P0(r,s);if(M(n,"&"))return xe(l)?Xs([t,...l.allOf]):Xs([t,l]);if(M(n,"|"))return Pt(l)?Se([t,...l.anyOf]):Se([t,l]);ia()})():t}function n4(t){const[e,n]=t;return P0(e,n)}function r4(t){const[e,n]=t;return P0(e,n)}function o4(t){return q2(t[1])}function i4(t){return t[1]}function s4(t){return gc(t[0],t[2])}function a4(t){return M(t.length,4)?$y(t[1],t[3]):M(t.length,2)?$y(t[1],fr()):ia()}function l4(t){return`${t}`}function u4(t){return co(t[3])?cm:br(t[3])?fm:vc(t[3])||Hn(t[3])?Qs:ia()}function c4(t){return t.length>0}function f4(t){return t.length>0}function d4(t){const[e,n,r,s,l]=t;return{[n]:e&&r?Pr(kr(l)):e&&!r?Pr(l):!e&&r?kr(l):l}}function m4(t){return vi(t)}function SC(t){return t.reduce((e,n)=>at(n,cm)||at(n,fm)||at(n,Qs)?[e[0],Xe(e[1],n)]:[Xe(e[0],n),e[1]],[{},{}])}function h4(t){return SC(t[1])}function p4(t){const[e,n]=t,r=M(yt(n).length,0)?{}:{patternProperties:n};return le(e,r)}function g4(t){return M(t.length,5)?Pr(kr(t[4])):M(t.length,3)?t[2]:M(t.length,4)?M(t[2],"readonly")?Pr(t[3]):kr(t[3]):ia()}function y4(t){return Pr(kr(t[1]))}function b4(t){return Pr(t[1])}function v4(t){return kr(t[0])}function S4(t){return M(t.length,2)?dm(t[1]):M(t.length,1)?t[0]:ia()}function E4(t){return vi(t)}function x4(t){return fo(t[1])}function w4(t){return Pr(kr(t[4]))}function T4(t){return Pr(t[3])}function C4(t){return kr(t[3])}function A4(t){return t[2]}function $4(t){return M(t.length,2)?dm(t[1]):M(t.length,1)?t[0]:ia()}function M4(t){return vi(t)}function R4(t){return lm(t[1],t[4])}function O4(t){return am(t[2],t[5])}function Ow(t,e){return M(t,"remove")?iD(e):M(t,"add")?rD(e):e}function N4(t){return M(t.length,2)&&M(t[0],"-")?"remove":M(t.length,2)&&M(t[0],"+")||M(t.length,1)?"add":"none"}function Nw(t,e){return M(t,"remove")?eD(e):M(t,"add")?W3(e):e}function _4(t){return M(t.length,2)&&M(t[0],"-")?"remove":M(t.length,2)&&M(t[0],"+")||M(t.length,1)?"add":"none"}function D4(t){return M(t.length,2)?[t[1]]:[]}function j4(t){return xt(t[6])&&M(t[6].length,1)?Hd(Bd(t[3]),t[5],t[6][0],Ow(t[1],Nw(t[8],t[10]))):Hd(Bd(t[3]),t[5],cr(t[3]),Ow(t[1],Nw(t[8],t[10])))}function I4(t){return cr(t)}function L4(t){return Em(t[2],t[4])}function z4(t){return parseFloat(t)}function B4(t){return M(t,"true")}function U4(t){return null}function k4(t){return{[t[0]]:t[2]}}function P4(t){return vi(t)}function H4(t){return t.reduce((e,n)=>Xe(e,n),{})}function F4(t){return H4(t[1])}function q4(t){return vi(t)}function G4(t){return t[1]}function Y4(t){return _0()}function V4(t){return Hr()}function K4(t){return li()}function X4(t){return dl()}function Q4(t){return Ze()}function Z4(t){return be(t)}function J4(t){return Se(t[1])}function W4(t){return t.length===3?[...t[0],...t[2]]:t.length===1?[...t[0]]:[]}function t6(t){return[t[0],...t[1]]}function e6(t){return t[1]}function n6(t){return vi(t)}function r6(t){return M(t.length,2)?t[1]:[]}function o6(t){const e=t[2],n=t[3],[r,s]=t[4],l=M(yt(s).length,0)?{}:{patternProperties:s};return{[t[1]]:gc(e,bm(n,r,l))}}function i6(t){const e=t[2],[n,r]=t[3],s=M(yt(r).length,0)?{}:{patternProperties:r};return{[t[1]]:bm(e,n,s)}}function s6(t){return{[t[1]]:gc(t[2],t[4])}}function a6(t){return{[t[1]]:t[3]}}function l6(t){return null}function u6(t){return SC(vi(t))}function c6(t){return t[1]}function f6(t){const e=t[0],n=t[1];return QA(Xe(e,n[0]))}function De(t){return xt(t)&&M(t.length,2)}function d6(t,e){return M(e.indexOf(t),0)?[t,e.slice(t.length)]:[]}function Sr(t,e){const[n,...r]=t;return jt(n)?(()=>{const s=d6(n,e);return M(s.length,2)?s:Sr(r,e)})():[]}function Ry(t,e){return Array.from({length:e-t+1},(n,r)=>String.fromCharCode(t+r))}const m6=[...Ry(97,122),...Ry(65,90)],EC="0",xC=Ry(49,57),H0=[EC,...xC],h6=" ",F0=`
|
|
3
|
+
`,xc="_",q0=".",p6="$",wC="-",TC="//",CC="/*",g6="*/";function AC(t){const e=t.indexOf(g6);return M(e,-1)?"":t.slice(e+2)}function $C(t){const e=t.indexOf(F0);return M(e,-1)?"":t.slice(e)}function y6(t){return t.replace(/^[ \t\r\f\v]+/,"")}function Oy(t){const e=y6(t);return e.startsWith(CC)?Oy(AC(e.slice(2))):e.startsWith(TC)?Oy($C(e.slice(2))):e}function ui(t){const e=t.trimStart();return e.startsWith(CC)?ui(AC(e.slice(2))):e.startsWith(TC)?ui($C(e.slice(2))):e}function b6(t,e){return t.includes(e)}function Ud(t,e,n,r=""){const s=Sr(t,n);return De(s)?b6(e,s[0])?Ud(t,e,s[1],r):Ud(t,e,s[1],`${r}${s[0]}`):[r,n]}function MC(t,e){const n=Sr([t],e);return De(n)?n:["",e]}function v6(t){return MC(wC,t)}function S6(t){return Sr(xC,t)}const E6=[...H0,xc];function x6(t){return Ud(E6,[xc],t)}function w6(t){const e=v6(t);return De(e)?(()=>{const n=Sr([EC],e[1]);return De(n)?[`${e[0]}${n[0]}`,n[1]]:(()=>{const r=S6(e[1]);return De(r)?(()=>{const s=x6(r[1]);return De(s)?[`${e[0]}${r[0]}${s[0]}`,s[1]]:[]})():[]})()})():[]}function RC(t){return w6(ui(t))}function T6(t){const e=RC(t);return De(e)?(()=>{const n=Sr(["n"],e[1]);return De(n)?[`${e[0]}`,n[1]]:[]})():[]}function C6(t){return T6(t)}function Gg(t,e){return Sr([t],e)}function Q(t,e){return M(t,"")?["",e]:t.startsWith(F0)?Gg(t,Oy(e)):t.startsWith(h6)?Gg(t,e):Gg(t,ui(e))}const OC=[...m6,xc,p6];function A6(t){return Sr(OC,t)}const $6=[...OC,...H0];function NC(t,e=""){const n=Sr($6,t);return De(n)?NC(n[1],`${e}${n[0]}`):[e,t]}function M6(t){const e=A6(t);return De(e)?(()=>{const n=NC(e[1]);return De(n)?[`${e[0]}${n[0]}`,n[1]]:[]})():[]}function je(t){return M6(ui(t))}const R6=[...H0,xc];function O6(t){return MC(wC,t)}function N6(t){return De(Sr([q0],t))}function _C(t){const e=Ud(R6,[xc],t);return De(e)?M(e[0],"")?[]:[e[0],e[1]]:[]}function _6(t,e){const n=Sr([q0],e);return De(n)?(()=>{const r=_C(n[1]);return De(r)?[`${t}0${n[0]}${r[0]}`,r[1]]:[]})():[]}function D6(t,e){const n=RC(e);return De(n)?(()=>{const r=Sr([q0],n[1]);return De(r)?(()=>{const s=_C(r[1]);return De(s)?[`${t}${n[0]}${r[0]}${s[0]}`,s[1]]:[`${t}${n[0]}`,r[1]]})():[`${t}${n[0]}`,n[1]]})():[]}function j6(t){const e=O6(t);return De(e)?N6(e[1])?_6(e[0],e[1]):D6(e[0],e[1]):[]}function G0(t){return j6(ui(t))}function DC(t,e){const[n,...r]=t;return jt(n)?e.startsWith(n)?!0:DC(r,e):!1}function wc(t,e,n=""){return M(e,"")?[]:DC(t,e)?[n,e]:(()=>{const[r,s]=[e.slice(0,1),e.slice(1)];return wc(t,s,`${n}${r}`)})()}function I6(t,e,n){return n.startsWith(t)?(()=>{const r=wc([e],n.slice(t.length));return De(r)?r[1].startsWith(e)?[`${r[0]}`,r[1].slice(e.length)]:[]:[]})():[]}function L6(t,e,n){return n.startsWith(t)?(()=>{const r=wc([F0,e],n.slice(t.length));return De(r)?r[1].startsWith(e)?[`${r[0]}`,r[1].slice(e.length)]:[]:[]})():[]}function z6(t,e,n,r){return n?I6(t,e,ui(r)):L6(t,e,ui(r))}function B6(t,e){return Sr(t,e)}function U6(t,e){return z6(t,t,!1,e)}function k6(t,e){const n=B6(t,e);return De(n)?U6(n[0],`${n[0]}${n[1]}`):[]}function Y0(t,e){return k6(t,ui(e))}function P6(t,e){const n=wc(t,e);return De(n)?M(n[0],"")?[]:n:[]}const y=(t,e,n=()=>[])=>t.length===2?e(t):n(),H6=t=>y(y(je(t),([e,n])=>y(Q("extends",n),([r,s])=>y(Gt(s),([l,c])=>y(Q("=",c),([f,m])=>y(Gt(m),([p,g])=>[[e,r,l,f,p],g]))))),([e,n])=>[bj(e),n]),F6=t=>y(y(je(t),([e,n])=>y(Q("extends",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[vj(e),n]),q6=t=>y(y(je(t),([e,n])=>y(Q("=",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Sj(e),n]),G6=t=>y(je(t),([e,n])=>[Ej(e),n]),jC=t=>y(y(H6(t),([e,n])=>[e,n],()=>y(F6(t),([e,n])=>[e,n],()=>y(q6(t),([e,n])=>[e,n],()=>y(G6(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),IC=(t,e=[])=>y(y(jC(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>IC(r,[...e,n]),()=>[e,t]),Y6=t=>y(y(IC(t),([e,n])=>y(y(y(jC(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[xj(e),n]),V0=t=>y(y(Q("<",t),([e,n])=>y(Y6(n),([r,s])=>y(Q(">",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[wj(e),n]),LC=(t,e=[])=>y(y(Gt(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>LC(r,[...e,n]),()=>[e,t]),V6=t=>y(y(LC(t),([e,n])=>y(y(y(Gt(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[Tj(e),n]),K6=t=>y(y(Q("<",t),([e,n])=>y(V6(n),([r,s])=>y(Q(">",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Cj(e),n]),X6=t=>y(y(je(t),([e,n])=>y(K6(n),([r,s])=>[[e,r],s])),([e,n])=>[Aj(e),n]),zC=t=>y(y(y(Q(";",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[$j(),n]),BC=t=>y(Q("string",t),([e,n])=>[Mj(),n]),UC=t=>y(Q("number",t),([e,n])=>[Rj(),n]),Q6=t=>y(Q("boolean",t),([e,n])=>[Oj(),n]),Z6=t=>y(Q("undefined",t),([e,n])=>[Nj(),n]),J6=t=>y(Q("null",t),([e,n])=>[_j(),n]),kC=t=>y(Q("integer",t),([e,n])=>[Dj(),n]),W6=t=>y(Q("bigint",t),([e,n])=>[jj(),n]),t5=t=>y(Q("unknown",t),([e,n])=>[Ij(),n]),e5=t=>y(Q("any",t),([e,n])=>[Lj(),n]),n5=t=>y(Q("object",t),([e,n])=>[zj(),n]),r5=t=>y(Q("never",t),([e,n])=>[Bj(),n]),PC=t=>y(Q("symbol",t),([e,n])=>[Uj(),n]),o5=t=>y(Q("void",t),([e,n])=>[kj(),n]),i5=t=>y(Q("this",t),([e,n])=>[Pj(),n]),s5=t=>y(y(BC(t),([e,n])=>[e,n],()=>y(UC(t),([e,n])=>[e,n],()=>y(Q6(t),([e,n])=>[e,n],()=>y(Z6(t),([e,n])=>[e,n],()=>y(J6(t),([e,n])=>[e,n],()=>y(kC(t),([e,n])=>[e,n],()=>y(W6(t),([e,n])=>[e,n],()=>y(t5(t),([e,n])=>[e,n],()=>y(e5(t),([e,n])=>[e,n],()=>y(n5(t),([e,n])=>[e,n],()=>y(r5(t),([e,n])=>[e,n],()=>y(PC(t),([e,n])=>[e,n],()=>y(o5(t),([e,n])=>[e,n],()=>y(i5(t),([e,n])=>[e,n],()=>[])))))))))))))),([e,n])=>[e,n]),a5=t=>y(y(Q("${",t),([e,n])=>y(Gt(n),([r,s])=>y(Q("}",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Hj(e),n]),Yg=t=>y(wc(["${","`"],t),([e,n])=>[Fj(e),n]),HC=t=>y(y(y(Yg(t),([e,n])=>y(a5(n),([r,s])=>y(HC(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>y(y(Yg(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y(y(Yg(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[]))),([e,n])=>[qj(e),n]),FC=t=>y(y(Q("`",t),([e,n])=>y(HC(n),([r,s])=>y(Q("`",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Gj(e),n]),l5=t=>y(FC(t),([e,n])=>[Yj(e),n]),u5=t=>y(C6(t),([e,n])=>[Vj(e),n]),c5=t=>y(y(Q("true",t),([e,n])=>[e,n],()=>y(Q("false",t),([e,n])=>[e,n],()=>[])),([e,n])=>[Kj(e),n]),f5=t=>y(G0(t),([e,n])=>[Xj(e),n]),d5=t=>y(Y0(["'",'"'],t),([e,n])=>[Qj(e),n]),m5=t=>y(y(u5(t),([e,n])=>[e,n],()=>y(c5(t),([e,n])=>[e,n],()=>y(f5(t),([e,n])=>[e,n],()=>y(d5(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),h5=t=>y(y(y(Q("keyof",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[Zj(e),n]),qC=(t,e=[])=>y(y(y(Q("[",t),([n,r])=>y(Gt(r),([s,l])=>y(Q("]",l),([c,f])=>[[n,s,c],f]))),([n,r])=>[n,r],()=>y(y(Q("[",t),([n,r])=>y(Q("]",r),([s,l])=>[[n,s],l])),([n,r])=>[n,r],()=>[])),([n,r])=>qC(r,[...e,n]),()=>[e,t]),p5=t=>y(qC(t),([e,n])=>[Jj(e),n]),g5=t=>y(y(y(Q("extends",t),([e,n])=>y(Gt(n),([r,s])=>y(Q("?",s),([l,c])=>y(Gt(c),([f,m])=>y(Q(":",m),([p,g])=>y(Gt(g),([b,E])=>[[e,r,l,f,p,b],E])))))),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[Wj(e),n]),y5=t=>y(y(y(Q("(",t),([e,n])=>y(Gt(n),([r,s])=>y(Q(")",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>y(s5(t),([e,n])=>[e,n],()=>y(R5(t),([e,n])=>[e,n],()=>y(I5(t),([e,n])=>[e,n],()=>y(l5(t),([e,n])=>[e,n],()=>y(m5(t),([e,n])=>[e,n],()=>y(P5(t),([e,n])=>[e,n],()=>y(k5(t),([e,n])=>[e,n],()=>y(G5(t),([e,n])=>[e,n],()=>y(V5(t),([e,n])=>[e,n],()=>y(X6(t),([e,n])=>[e,n],()=>y(Y5(t),([e,n])=>[e,n],()=>[])))))))))))),([e,n])=>[t4(e),n]),GC=t=>y(y(h5(t),([e,n])=>y(y5(n),([r,s])=>y(p5(s),([l,c])=>y(g5(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[e4(e),n]),YC=t=>y(y(y(Q("&",t),([e,n])=>y(GC(n),([r,s])=>y(YC(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),VC=t=>y(y(GC(t),([e,n])=>y(YC(n),([r,s])=>[[e,r],s])),([e,n])=>[n4(e),n]),KC=t=>y(y(y(Q("|",t),([e,n])=>y(VC(n),([r,s])=>y(KC(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),pm=t=>y(y(VC(t),([e,n])=>y(KC(n),([r,s])=>[[e,r],s])),([e,n])=>[r4(e),n]),b5=t=>y(y(Q("readonly",t),([e,n])=>y(pm(n),([r,s])=>[[e,r],s])),([e,n])=>[o4(e),n]),v5=t=>y(y(Q("|",t),([e,n])=>y(pm(n),([r,s])=>[[e,r],s])),([e,n])=>[i4(e),n]),S5=t=>y(y(V0(t),([e,n])=>y(Q("=",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[s4(e),n]),E5=t=>y(y(y(Q("infer",t),([e,n])=>y(je(n),([r,s])=>y(Q("extends",s),([l,c])=>y(pm(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[e,n],()=>y(y(Q("infer",t),([e,n])=>y(je(n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>[])),([e,n])=>[a4(e),n]),Gt=t=>y(y(E5(t),([e,n])=>[e,n],()=>y(v5(t),([e,n])=>[e,n],()=>y(b5(t),([e,n])=>[e,n],()=>y(pm(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),x5=t=>y(G0(t),([e,n])=>[l4(e),n]),w5=t=>y(je(t),([e,n])=>[e,n]),T5=t=>y(Y0(["'",'"'],t),([e,n])=>[e,n]),C5=t=>y(y(Q("[",t),([e,n])=>y(je(n),([r,s])=>y(Q(":",s),([l,c])=>y(y(kC(c),([f,m])=>[f,m],()=>y(UC(c),([f,m])=>[f,m],()=>y(BC(c),([f,m])=>[f,m],()=>y(PC(c),([f,m])=>[f,m],()=>[])))),([f,m])=>y(Q("]",m),([p,g])=>[[e,r,l,f,p],g]))))),([e,n])=>[u4(e),n]),XC=t=>y(y(x5(t),([e,n])=>[e,n],()=>y(w5(t),([e,n])=>[e,n],()=>y(T5(t),([e,n])=>[e,n],()=>y(C5(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),A5=t=>y(y(y(Q("readonly",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[c4(e),n]),$5=t=>y(y(y(Q("?",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[f4(e),n]),QC=t=>y(y(A5(t),([e,n])=>y(XC(n),([r,s])=>y($5(s),([l,c])=>y(Q(":",c),([f,m])=>y(Gt(m),([p,g])=>[[e,r,l,f,p],g]))))),([e,n])=>[d4(e),n]),ZC=t=>y(y(y(Q(",",t),([e,n])=>y(Q(`
|
|
4
|
+
`,n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q(";",t),([e,n])=>y(Q(`
|
|
5
|
+
`,n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q(",",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y(y(Q(";",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y(y(Q(`
|
|
6
|
+
`,t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[]))))),([e,n])=>[e,n]),JC=(t,e=[])=>y(y(QC(t),([n,r])=>y(ZC(r),([s,l])=>[[n,s],l])),([n,r])=>JC(r,[...e,n]),()=>[e,t]),M5=t=>y(y(JC(t),([e,n])=>y(y(y(QC(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[m4(e),n]),K0=t=>y(y(Q("{",t),([e,n])=>y(M5(n),([r,s])=>y(Q("}",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[h4(e),n]),R5=t=>y(K0(t),([e,n])=>[p4(e),n]),O5=t=>y(y(y(je(t),([e,n])=>y(Q("?",n),([r,s])=>y(Q(":",s),([l,c])=>y(Q("readonly",c),([f,m])=>y(Gt(m),([p,g])=>[[e,r,l,f,p],g]))))),([e,n])=>[e,n],()=>y(y(je(t),([e,n])=>y(Q(":",n),([r,s])=>y(Q("readonly",s),([l,c])=>y(Gt(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[e,n],()=>y(y(je(t),([e,n])=>y(Q("?",n),([r,s])=>y(Q(":",s),([l,c])=>y(Gt(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[e,n],()=>y(y(je(t),([e,n])=>y(Q(":",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>[])))),([e,n])=>[g4(e),n]),N5=t=>y(y(Q("readonly",t),([e,n])=>y(Gt(n),([r,s])=>y(Q("?",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[y4(e),n]),_5=t=>y(y(Q("readonly",t),([e,n])=>y(Gt(n),([r,s])=>[[e,r],s])),([e,n])=>[b4(e),n]),D5=t=>y(y(Gt(t),([e,n])=>y(Q("?",n),([r,s])=>[[e,r],s])),([e,n])=>[v4(e),n]),_w=t=>y(y(O5(t),([e,n])=>[e,n],()=>y(N5(t),([e,n])=>[e,n],()=>y(_5(t),([e,n])=>[e,n],()=>y(D5(t),([e,n])=>[e,n],()=>y(Gt(t),([e,n])=>[e,n],()=>[]))))),([e,n])=>[e,n]),WC=t=>y(y(y(Q("...",t),([e,n])=>y(_w(n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(_w(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[])),([e,n])=>[S4(e),n]),tA=(t,e=[])=>y(y(WC(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>tA(r,[...e,n]),()=>[e,t]),j5=t=>y(y(tA(t),([e,n])=>y(y(y(WC(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[E4(e),n]),I5=t=>y(y(Q("[",t),([e,n])=>y(j5(n),([r,s])=>y(Q("]",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[x4(e),n]),L5=t=>y(y(je(t),([e,n])=>y(Q("?",n),([r,s])=>y(Q(":",s),([l,c])=>y(Q("readonly",c),([f,m])=>y(Gt(m),([p,g])=>[[e,r,l,f,p],g]))))),([e,n])=>[w4(e),n]),z5=t=>y(y(je(t),([e,n])=>y(Q(":",n),([r,s])=>y(Q("readonly",s),([l,c])=>y(Gt(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[T4(e),n]),B5=t=>y(y(je(t),([e,n])=>y(Q("?",n),([r,s])=>y(Q(":",s),([l,c])=>y(Gt(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[C4(e),n]),U5=t=>y(y(je(t),([e,n])=>y(Q(":",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[A4(e),n]),Dw=t=>y(y(L5(t),([e,n])=>[e,n],()=>y(z5(t),([e,n])=>[e,n],()=>y(B5(t),([e,n])=>[e,n],()=>y(U5(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),eA=t=>y(y(y(Q("...",t),([e,n])=>y(Dw(n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Dw(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[])),([e,n])=>[$4(e),n]),nA=(t,e=[])=>y(y(eA(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>nA(r,[...e,n]),()=>[e,t]),rA=t=>y(y(nA(t),([e,n])=>y(y(y(eA(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[M4(e),n]),k5=t=>y(y(Q("(",t),([e,n])=>y(rA(n),([r,s])=>y(Q(")",s),([l,c])=>y(Q("=>",c),([f,m])=>y(Gt(m),([p,g])=>[[e,r,l,f,p],g]))))),([e,n])=>[R4(e),n]),P5=t=>y(y(Q("new",t),([e,n])=>y(Q("(",n),([r,s])=>y(rA(s),([l,c])=>y(Q(")",c),([f,m])=>y(Q("=>",m),([p,g])=>y(Gt(g),([b,E])=>[[e,r,l,f,p,b],E])))))),([e,n])=>[O4(e),n]),H5=t=>y(y(y(Q("+",t),([e,n])=>y(Q("readonly",n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q("-",t),([e,n])=>y(Q("readonly",n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q("readonly",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])))),([e,n])=>[N4(e),n]),F5=t=>y(y(y(Q("+",t),([e,n])=>y(Q("?",n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q("-",t),([e,n])=>y(Q("?",n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q("?",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])))),([e,n])=>[_4(e),n]),q5=t=>y(y(y(Q("as",t),([e,n])=>y(Gt(n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[D4(e),n]),G5=t=>y(y(Q("{",t),([e,n])=>y(H5(n),([r,s])=>y(Q("[",s),([l,c])=>y(je(c),([f,m])=>y(Q("in",m),([p,g])=>y(Gt(g),([b,E])=>y(q5(E),([S,T])=>y(Q("]",T),([w,$])=>y(F5($),([_,L])=>y(Q(":",L),([j,P])=>y(Gt(P),([H,F])=>y(zC(F),([z,k])=>y(Q("}",k),([W,et])=>[[e,r,l,f,p,b,S,w,_,j,H,z,W],et]))))))))))))),([e,n])=>[j4(e),n]),Y5=t=>y(je(t),([e,n])=>[I4(e),n]),V5=t=>y(y(Q("Options",t),([e,n])=>y(Q("<",n),([r,s])=>y(Gt(s),([l,c])=>y(Q(",",c),([f,m])=>y(sA(m),([p,g])=>y(Q(">",g),([b,E])=>[[e,r,l,f,p,b],E])))))),([e,n])=>[L4(e),n]),K5=t=>y(G0(t),([e,n])=>[z4(e),n]),X5=t=>y(y(Q("true",t),([e,n])=>[e,n],()=>y(Q("false",t),([e,n])=>[e,n],()=>[])),([e,n])=>[B4(e),n]),Q5=t=>y(Y0(['"',"'"],t),([e,n])=>[e,n]),Z5=t=>y(Q("null",t),([e,n])=>[U4(),n]),oA=t=>y(y(XC(t),([e,n])=>y(Q(":",n),([r,s])=>y(X0(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[k4(e),n]),iA=(t,e=[])=>y(y(oA(t),([n,r])=>y(ZC(r),([s,l])=>[[n,s],l])),([n,r])=>iA(r,[...e,n]),()=>[e,t]),J5=t=>y(y(iA(t),([e,n])=>y(y(y(oA(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[P4(e),n]),sA=t=>y(y(Q("{",t),([e,n])=>y(J5(n),([r,s])=>y(Q("}",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[F4(e),n]),aA=(t,e=[])=>y(y(X0(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>aA(r,[...e,n]),()=>[e,t]),W5=t=>y(y(aA(t),([e,n])=>y(y(y(X0(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[q4(e),n]),tI=t=>y(y(Q("[",t),([e,n])=>y(W5(n),([r,s])=>y(Q("]",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[G4(e),n]),X0=t=>y(y(K5(t),([e,n])=>[e,n],()=>y(X5(t),([e,n])=>[e,n],()=>y(Q5(t),([e,n])=>[e,n],()=>y(Z5(t),([e,n])=>[e,n],()=>y(sA(t),([e,n])=>[e,n],()=>y(tI(t),([e,n])=>[e,n],()=>[])))))),([e,n])=>[e,n]),eI=t=>y(Q("-?(?:0|[1-9][0-9]*)n",t),([e,n])=>[Y4(),n]),nI=t=>y(Q(".*",t),([e,n])=>[V4(),n]),rI=t=>y(Q("-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?",t),([e,n])=>[K4(),n]),oI=t=>y(Q("-?(?:0|[1-9][0-9]*)",t),([e,n])=>[X4(),n]),iI=t=>y(Q("(?!)",t),([e,n])=>[Q4(),n]),sI=t=>y(P6(["-?(?:0|[1-9][0-9]*)n",".*","-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?","-?(?:0|[1-9][0-9]*)","(?!)","(",")","$","|"],t),([e,n])=>[Z4(e),n]),aI=t=>y(y(eI(t),([e,n])=>[e,n],()=>y(nI(t),([e,n])=>[e,n],()=>y(rI(t),([e,n])=>[e,n],()=>y(oI(t),([e,n])=>[e,n],()=>y(iI(t),([e,n])=>[e,n],()=>y(lI(t),([e,n])=>[e,n],()=>y(sI(t),([e,n])=>[e,n],()=>[]))))))),([e,n])=>[e,n]),lI=t=>y(y(Q("(",t),([e,n])=>y(Q0(n),([r,s])=>y(Q(")",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[J4(e),n]),lA=t=>y(y(y(Ny(t),([e,n])=>y(Q("|",n),([r,s])=>y(lA(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>y(y(Ny(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[]))),([e,n])=>[W4(e),n]),Ny=t=>y(y(aI(t),([e,n])=>y(Q0(n),([r,s])=>[[e,r],s])),([e,n])=>[t6(e),n]),Q0=t=>y(y(lA(t),([e,n])=>[e,n],()=>y(Ny(t),([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),uI=t=>y(y(Q("^",t),([e,n])=>y(Q0(n),([r,s])=>y(Q("$",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e6(e),n]),uA=(t,e=[])=>y(y(Gt(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>uA(r,[...e,n]),()=>[e,t]),cI=t=>y(y(uA(t),([e,n])=>y(y(y(Gt(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[n6(e),n]),cA=t=>y(y(y(Q("extends",t),([e,n])=>y(cI(n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[r6(e),n]),fI=t=>y(y(Q("interface",t),([e,n])=>y(je(n),([r,s])=>y(V0(s),([l,c])=>y(cA(c),([f,m])=>y(K0(m),([p,g])=>[[e,r,l,f,p],g]))))),([e,n])=>[o6(e),n]),dI=t=>y(y(Q("interface",t),([e,n])=>y(je(n),([r,s])=>y(cA(s),([l,c])=>y(K0(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[i6(e),n]),mI=t=>y(y(Q("type",t),([e,n])=>y(je(n),([r,s])=>y(V0(s),([l,c])=>y(Q("=",c),([f,m])=>y(Gt(m),([p,g])=>[[e,r,l,f,p],g]))))),([e,n])=>[s6(e),n]),hI=t=>y(y(Q("type",t),([e,n])=>y(je(n),([r,s])=>y(Q("=",s),([l,c])=>y(Gt(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[a6(e),n]),pI=t=>y(y(y(Q("export",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[l6(),n]),gI=t=>y(y(y(Q(";",t),([e,n])=>y(Q(`
|
|
7
|
+
`,n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q(";",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y(y(Q(`
|
|
8
|
+
`,t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[]))),([e,n])=>[e,n]),fA=(t,e=[])=>y(y(Z0(t),([n,r])=>y(gI(r),([s,l])=>[[n,s],l])),([n,r])=>fA(r,[...e,n]),()=>[e,t]),yI=t=>y(y(fA(t),([e,n])=>y(y(y(Z0(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[u6(e),n]),Z0=t=>y(y(pI(t),([e,n])=>y(y(fI(n),([r,s])=>[r,s],()=>y(dI(n),([r,s])=>[r,s],()=>y(mI(n),([r,s])=>[r,s],()=>y(hI(n),([r,s])=>[r,s],()=>[])))),([r,s])=>y(zC(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[c6(e),n]),bI=t=>y(y(Z0(t),([e,n])=>y(yI(n),([r,s])=>[[e,r],s])),([e,n])=>[f6(e),n]),vI=t=>y(y(bI(t),([e,n])=>[e,n],()=>y(S5(t),([e,n])=>[e,n],()=>y(Gt(t),([e,n])=>[e,n],()=>[]))),([e,n])=>[e,n]);function SI(t){const e=FC(`\`${t}\``);return M(e.length,2)?e[0]:He()}function J0(t,e={}){return me("TemplateLiteral",[t],e)}function dA(t){return he({},J0(t,{}))}function EI(t){const e=SI(t);return dA(e)}function xI(t,e={}){const n=jt(t)?EI(t):dA(t);return Qt(n,{},e)}function Yr(t){return Ht(t,"TemplateLiteral")}function mA(t){return Nt({"~kind":"ExtendsUnion"},{inferred:t})}function W0(t){return Mt(t)&&at(t,"~kind")&&at(t,"inferred")&&M(t["~kind"],"ExtendsUnion")&&Mt(t.inferred)}function Lt(t){return Nt({"~kind":"ExtendsTrue"},{inferred:t})}function tb(t){return Mt(t)&&at(t,"~kind")&&at(t,"inferred")&&M(t["~kind"],"ExtendsTrue")&&Mt(t.inferred)}function re(){return Nt({"~kind":"ExtendsFalse"},{})}function _y(t){return Mt(t)&&at(t,"~kind")&&M(t["~kind"],"ExtendsFalse")}function Ae(t){return W0(t)||tb(t)}const wI=Object.freeze(Object.defineProperty({__proto__:null,ExtendsFalse:re,ExtendsTrue:Lt,ExtendsUnion:mA,IsExtendsFalse:_y,IsExtendsTrue:tb,IsExtendsTrueLike:Ae,IsExtendsUnion:W0},Symbol.toStringTag,{value:"Module"}));function TI(t){return jt(t)||Kt(t)?be(t):Vn(t)?Ys():Ze()}function Cl(t){return t.map(n=>TI(n))}function eb(t){const e=Cl(t);return Se(e)}function nb(t){return eb(t.enum)}function CI(t,e,n,r){const s=Je(t,n,r);return Ae(s)?Lt(Xe(Xe(t,s.inferred),{[e]:n})):re()}function AI(t,e){return Lt(t)}function $I(t,e,n){const r=eb(n);return Je(t,e,r)}function hA(t,e,n){const[r,...s]=n;return Ut(r)?(()=>{const l=Je(t,e,r);return Ae(l)?hA(l.inferred,e,s):re()})():Lt(t)}function MI(t,e,n){const r=bi(n);return Je(t,e,r)}function pA(t,e,n){const[r,...s]=n;return Ut(r)?(()=>{const l=Je(t,e,r);return Ae(l)?Lt(l.inferred):pA(t,e,s)})():re()}function Be(t,e,n){return pi(n)?AI(t):uo(n)?$I(t,e,n.enum):dr(n)?CI(t,n.name,e,n.extends):xe(n)?hA(t,e,n.allOf):Yr(n)?MI(t,e,n.pattern):Pt(n)?pA(t,e,n.anyOf):os(n)?Lt(t):re()}function RI(t,e,n){return dr(n)?Be(t,e,n):pi(n)||os(n)?Lt(t):mA(t)}function OI(t,e){const n=Ld(t),r=Ld(e);return n&&r||!n&&r?!0:!(n&&!r)}function NI(t,e,n,r){return nn(r)?OI(e,r)?Je(t,n,r.items):re():Be(t,e,r)}function _I(t,e,n){return cs(n)?Je(t,e,n.iteratorItems):Be(t,pc(e),n)}function DI(t,e,n){return oa(n)?Lt(t):Be(t,e,n)}function jI(t,e,n){return gi(n)?Lt(t):Be(t,e,n)}function II(t,e,n,r,s){const l=dr(r)?e:r,c=dr(r)?r:e,f=qn(e),m=qn(r),p=Je(t,l,c);return!f&&m?re():Ae(p)?rb(p.inferred,n,s):re()}function LI(t,e,n,r){const[s,...l]=r;return Ut(s)?II(t,e,n,s,l):qn(e)?Lt(t):re()}function zI(t,e,n){const[r,...s]=e;return Ut(r)?LI(t,r,s,n):Lt(t)}function rb(t,e,n){return zI(t,e,n)}function gA(t,e,n){return ms(n)?Lt(t):Je(t,e,n)}function BI(t,e,n,r){return jo(r)?(()=>{const s=rb(t,e,r.parameters);return Ae(s)?gA(s.inferred,n,r.instanceType):re()})():re()}function UI(t,e,n){return Je(t,nb(e),n)}function kI(t,e,n,r){return Io(r)?(()=>{const s=rb(t,e,r.parameters);return Ae(s)?gA(s.inferred,n,r.returnType):re()})():re()}function PI(t,e,n){return co(n)||br(n)?Lt(t):Be(t,e,n)}const ob="equal",HI="disjoint",ib="left-inside",sb="right-inside";function ab(t,e){const n=[os(t)?re():ci({},t,e),os(t)?Lt({}):ci({},e,t)];return Ae(n[0])&&Ae(n[1])?ob:Ae(n[0])&&_y(n[1])?ib:_y(n[0])&&Ae(n[1])?sb:HI}function FI(t){return Pt(t)?Tc(t.anyOf):[t]}function Tc(t){return t.reduce((e,n)=>[...e,...FI(n)],[])}function yA(t){return t.reduceRight((n,r,s)=>({[s]:r,...n}),{})}function qI(t){const e=yA(t.items);return le(e)}function GI(t,e){return zd(t)?!!zd(e):!1}function YI(t,e){return qn(t)?!!qn(e):!1}function VI(t,e){const n=GI(t,e),r=YI(t,e),s=Vr([t,e]),l=G2($0(s));return n&&r?Pr(kr(l)):n&&!r?Pr(l):!n&&r?kr(l):l}function KI(t,e,n){return n in t?n in e?VI(t[n],e[n]):t[n]:n in e?e[n]:Ze()}function XI(t,e){return[...new Set([...yt(e),...yt(t)])].reduce((r,s)=>({...r,[s]:KI(t,e,s)}),{})}function jw(t){return $e(t)?t.properties:qe(t)?yA(t.items):He()}function QI(t,e){const n=jw(t),r=jw(e),s=XI(n,r);return le(s)}function ZI(t,e){const n=ab(t,e);return M(n,ib)?t:M(n,sb)||M(n,ob)?e:Ze()}function Iw(t){return $e(t)||qe(t)}function JI(t,e){const n=Pt(t),r=Pt(e);return n||r}function WI(t,e){const n=Pd(t),r=Pd(e),s=JI(n,r),l=Iw(n),c=Iw(r);return s?Vr([n,r]):l&&c?QI(n,r):l&&!c?n:!l&&c?r:ZI(n,r)}function bA(t,e,n=[]){const[r,...s]=e;return ye(r)?n.length===0?[t]:n:bA(t,s,[...n,WI(t,r)])}function vA(t,e,n=[]){const[r,...s]=t;return Ut(r)?vA(s,e,[...n,...kd([r],e)]):n}function kd(t,e=[]){const[n,...r]=t;return Ut(n)?Pt(n)?kd(r,vA(n.anyOf,e)):kd(r,bA(n,e)):e}function Vr(t){const e=kd(t);return SA(e)}function Cc(t){return SA(t)}function Pd(t){return xe(t)?Vr(t.allOf):Pt(t)?Cc(t.anyOf):t}function gm(t){return M(t.length,1)?t[0]:M(t.length,0)?Ze():Se(t)}function tL(t,e){return e.filter(n=>ab(t,n)!==sb)}function eL(t,e){const n=e.some(r=>{const s=ab(t,r);return M(s,ib)||M(s,ob)});return M(n,!1)}function nL(t,e){const n=Pd(t);return pi(n)?[n]:eL(n,e)?[...tL(n,e),n]:e}function Dy(t,e=[]){const[n,...r]=t;return Ut(n)?$e(n)?Dy(r,[...e,n]):Dy(r,nL(n,e)):e}function SA(t){const e=Dy(t),n=Tc(e);return n.length===0?Ze():n.length===1?n[0]:Se(n)}function rL(t,e,n,r){const s=Et(t,e,n);return Qt(Pd(s),{},r)}function oL(t,e,n,r){return rL(t,e,n,r)}function iL(t,e,n){const r=Vr(e);return Je(t,r,n)}function sL(t,e,n){return fs(n)?Je(t,e,n.iteratorItems):Be(t,bc(e),n)}function ym(t,e,n){return e===n?Lt(t):re()}function aL(t,e,n){return Ie(n)?ym(t,e,n.const):oa(n)?Lt(t):Be(t,be(e),n)}function lL(t,e,n){return Ie(n)?ym(t,e,n.const):gi(n)?Lt(t):Be(t,be(e),n)}function uL(t,e,n){return Ie(n)?ym(t,e,n.const):br(n)?Lt(t):Be(t,be(e),n)}function cL(t,e,n){return Ie(n)?ym(t,e,n.const):Hn(n)?Lt(t):Be(t,be(e),n)}function fL(t,e,n){return Ne(e.const)?aL(t,e.const,n):Fe(e.const)?lL(t,e.const,n):Kt(e.const)?uL(t,e.const,n):jt(e.const)?cL(t,e.const,n):He()}function dL(t,e,n){return dr(n)?Be(t,e,n):Lt(t)}function mL(t,e,n){return wl(n)?Lt(t):Be(t,e,n)}function hL(t,e,n){return br(n)?Lt(t):Be(t,e,n)}function pL(t,e,n){return qn(e)?qn(n)?Lt(t):re():Lt(t)}function gL(t,e,n){return dr(n)&&um(n.extends)?re():(()=>{const r=Je(t,e,n);return Ae(r)?pL(r.inferred,e,n):re()})()}function yL(t,e){return t.reduce((n,r)=>r in e&&Ae(e[r])?{...n,...e[r].inferred}:He(),{})}function bL(t,e,n){const r={};for(const c of yt(n))r[c]=c in e?gL({},e[c],n[c]):qn(n[c])?dr(n[c])?Lt(Xe(t,{[n[c].name]:n[c].extends})):Lt(t):re();const s=x0(r).every(c=>Ae(c)),l=s?yL(yt(r),r):{};return s?Lt(l):re()}function vL(t,e,n){const r=bL(t,e,n);return Ae(r)?Lt(Xe(t,r.inferred)):re()}function SL(t,e,n){return vL(t,e,n)}function EL(t,e,n){return $e(n)?SL(t,e,n.properties):Be(t,le(e),n)}function xL(t,e,n){return yi(n)?Je(t,e,n.item):Be(t,Ec(e),n)}function wL(t,e,n){return Hn(n)?Lt(t):Be(t,e,n)}function TL(t,e,n){return vc(n)?Lt(t):Be(t,e,n)}function CL(t,e,n){const r=bi(e);return Je(t,r,n)}function jy(t,e){return Nt({"~kind":"Inferrable"},{name:t,type:e},{})}function lb(t){return Mt(t)&&at(t,"~kind")&&at(t,"name")&&at(t,"type")&&M(t["~kind"],"Inferrable")&&jt(t.name)&&Mt(t.type)}function EA(t){return mm(t)?dr(t.items)?nn(t.items.extends)?jy(t.items.name,t.items.extends.items):os(t.items.extends)?jy(t.items.name,t.items.extends):void 0:He():void 0}function xA(t){return dr(t)?jy(t.name,t.extends):void 0}function ub(t,e,n=[]){const[r,...s]=t;return Ut(r)?(()=>{const l=Je({},r,e);return Ae(l)?ub(s,e,[...n,r]):void 0})():n}function AL(t,e,n,r){const s=ub(n,r);return xt(s)?Lt(Xe(t,{[e]:fo(s)})):re()}function wA(t,e,n,r){const s=ub(n,r);return xt(s)?Lt(Xe(t,{[e]:Se(s)})):re()}function $L(t){return[...t].reverse()}function Iy(t,e){return e?$L(t):t}function ML(t){const e=t.length>0?t[0]:void 0,n=Ut(e)?EA(e):void 0;return Ut(n)}function RL(t,e,n,r,s,l){const c=Je(t,n,s);return Ae(c)?TA(c.inferred,e,r,l):re()}function OL(t,e,n,r,s){const l=EA(r);return lb(l)?AL(t,l.name,Iy(n,e),l.type):(()=>{const[c,...f]=n;return Ut(c)?RL(t,e,c,f,r,s):re()})()}function NL(t,e,n,r){const[s,...l]=r;return Ut(s)?OL(t,e,n,s,l):M(n.length,0)?Lt(t):re()}function TA(t,e,n,r){return NL(t,e,n,r)}function _L(t,e,n){const r=Bb(t,{callstack:[]},n),s=ML(r);return TA(t,s,Iy(e,s),Iy(r,s))}function CA(t,e,n){const r=xA(n);return lb(r)?wA(t,r.name,e,r.type):(()=>{const[s,...l]=e;return Ut(s)?(()=>{const c=Je(t,s,n);return Ae(c)?CA(c.inferred,l,n):re()})():Lt(t)})()}function DL(t,e,n){const r=Bb(t,{callstack:[]},e);return qe(n)?_L(t,r,n.items):nn(n)?CA(t,r,n.items):Be(t,fo(r),n)}function jL(t,e,n){return ms(n)||Tl(n)?Lt(t):Be(t,e,n)}function AA(t,e,n){const[r,...s]=n;return Ut(r)?(()=>{const l=Je(t,e,r);return Ae(l)?Lt(l.inferred):AA(t,e,s)})():re()}function Ly(t,e,n){const[r,...s]=e;return Ut(r)?(()=>{const l=AA(t,r,n);return Ae(l)?Ly(l.inferred,s,n):re()})():Lt(t)}function IL(t,e,n){const r=xA(n);return lb(r)?wA(t,r.name,e,r.type):Pt(n)?Ly(t,e,n.anyOf):Ly(t,e,[n])}function LL(t,e,n){return dr(n)?Be(t,e,n):pi(n)||os(n)?Lt(t):re()}function zL(t,e,n){return ms(n)?Lt(t):Be(t,e,n)}function Je(t,e,n){return pi(e)?RI(t,e,n):nn(e)?NI(t,e,e.items,n):cs(e)?_I(t,e.iteratorItems,n):oa(e)?DI(t,e,n):gi(e)?jI(t,e,n):jo(e)?BI(t,e.parameters,e.instanceType,n):uo(e)?UI(t,e,n):Io(e)?kI(t,e.parameters,e.returnType,n):co(e)?PI(t,e,n):xe(e)?iL(t,e.allOf,n):fs(e)?sL(t,e.iteratorItems,n):Ie(e)?fL(t,e,n):um(e)?dL(t,e,n):wl(e)?mL(t,e,n):br(e)?hL(t,e,n):$e(e)?EL(t,e.properties,n):yi(e)?xL(t,e.item,n):Hn(e)?wL(t,e,n):vc(e)?TL(t,e,n):Yr(e)?CL(t,e.pattern,n):qe(e)?DL(t,e.items,n):Tl(e)?jL(t,e,n):Pt(e)?IL(t,e.anyOf,n):os(e)?LL(t,e,n):ms(e)?zL(t,e,n):re()}function bm(t,e,n={}){return me("Interface",[t,e],n)}function cb(t){return Ut(t)&&at(t,"action")&&M(t.action,"Interface")}function $A(t,e,n={}){return he({},bm(t,e,n))}function BL(t,e,n){return t.includes(n)?!0:ts([...t,n],e,e[n])}function Lw(t,e,n){const r=sC(n);return Hs(t,e,r)}function Hs(t,e,n){const[r,...s]=n;return Ut(r)?ts(t,e,r)?!0:Hs(t,e,s):!1}function ts(t,e,n){return On(n)?BL(t,e,n.$ref):nn(n)?ts(t,e,n.items):cs(n)?ts(t,e,n.iteratorItems):jo(n)?Hs(t,e,[...n.parameters,n.instanceType]):Io(n)?Hs(t,e,[...n.parameters,n.returnType]):cb(n)?Lw(t,e,n.parameters[1]):xe(n)?Hs(t,e,n.allOf):fs(n)?ts(t,e,n.iteratorItems):$e(n)?Lw(t,e,n.properties):yi(n)?ts(t,e,n.item):Pt(n)?Hs(t,e,n.anyOf):qe(n)?Hs(t,e,n.items):vr(n)?ts(t,e,Lo(n)):!1}function MA(t,e,n){return ts(t,e,n)}function UL(t,e){return e.reduce((n,r)=>r in t?MA([r],t,t[r])?[...n,r]:n:He(),[])}function kL(t){const e=ej(t);return UL(t,e)}function PL(t,e,n){return n.includes(e)?n:e in t?es(t,t[e],[...n,e]):He()}function zw(t,e,n){const r=sC(e);return nl(t,r,n)}function nl(t,e,n){return e.reduce((r,s)=>es(t,s,r),n)}function es(t,e,n){return On(e)?PL(t,e.$ref,n):nn(e)?es(t,e.items,n):cs(e)?es(t,e.iteratorItems,n):jo(e)?nl(t,[...e.parameters,e.instanceType],n):Io(e)?nl(t,[...e.parameters,e.returnType],n):cb(e)?zw(t,e.parameters[1],n):xe(e)?nl(t,e.allOf,n):fs(e)?es(t,e.iteratorItems,n):$e(e)?zw(t,e.properties,n):yi(e)?es(t,e.item,n):Pt(e)?nl(t,e.anyOf,n):qe(e)?nl(t,e.items,n):vr(e)?es(t,Lo(e),n):n}function HL(t,e,n){return es(t,n,[e])}function FL(t){return ll()}function qL(t){return yt(t).reduce((e,n)=>({...e,[n]:xo(t[n])}),{})}function Gu(t){return t.reduce((e,n)=>[...e,xo(n)],[])}function xo(t){return On(t)?FL(t.$ref):nn(t)?ra(xo(t.items),V2(t)):cs(t)?pc(xo(t.iteratorItems)):jo(t)?am(Gu(t.parameters),xo(t.instanceType)):Io(t)?lm(Gu(t.parameters),xo(t.returnType)):xe(t)?Xs(Gu(t.allOf)):fs(t)?bc(xo(t.iteratorItems)):$e(t)?le(qL(t.properties)):yi(t)?Ec(xo(t.item)):vr(t)?B0(U0(t),xo(Lo(t))):Pt(t)?Se(Gu(t.anyOf)):qe(t)?fo(Gu(t.items)):t}function GL(t,e){return e in t?xo(t[e]):fr()}function YL(t){return GL(t.$defs,t.$ref)}function VL(t,e,n){const r=Ao(t,{callstack:[]},e),s=zb({},{callstack:[]},n);return Vr([...r,le(s)])}function KL(t,e){return yt(t).filter(r=>e.includes(r)).reduce((r,s)=>{const l=t[s],c=cb(l)?VL(t,l.parameters[0],l.parameters[1]):l;return{...r,[s]:c}},{})}function XL(t,e,n){const r=HL(t,e,n),s=KL(t,r);return yc(s,e)}function RA(t,e){return e in t?On(t[e])?RA(t,t[e].$ref):t[e]:Ze()}function Ac(t,e){return RA(t,e)}function Bw(t){return Nn(t)?YL(t):t}function ci(t,e,n){const r=Bw(e),s=Bw(n);return Je(t,r,s)}function QL(t,e,n){if(dr(e)||fb(e)||Ae(ci({},e,n)))return;const r={parameter:t,extends:n,received:e};throw new Error("Generic argument does not satify constraint",{cause:r})}function Uw(t,e,n,r,s){const l=Et(t,e,s);return QL(n,l,r),Xe(t,{[n]:l})}function ZL(t,e,n,r,s){const l=Et(t,e,n.extends),c=Et(t,e,n.equals),[f,...m]=s;return Ut(f)?zy(Uw(t,e,n.name,l,f),e,r,m):zy(Uw(t,e,n.name,l,c),e,r,[])}function zy(t,e,n,r){const[s,...l]=n;return Ut(s)?ZL(t,e,s,l,r):t}function JL(t,e,n,r){return zy(t,e,n,r)}function WL(t){return vl(t.length,0)?t[0]:""}function OA(t,e,n,r){const s=Ao(t,e,r);return _A(n,s)}function tz(t,e,n,r){return OA(t,e,cr(n),r)}function ez(t,e,n,r,s,l){const c=Ao(t,e,l),f=JL(t,e,r,c),m=Et(f,{callstack:[...e.callstack,n]},s);return Et(t,e,m)}function NA(t,e,n,r){const[s,l]=gD(t,n);return R0(l)?M(WL(e.callstack),s)?tz(t,e,s,r):ez(t,e,s,l.parameters,l.expression,r):OA(t,e,n,r)}function _A(t,e){return Nt({"~kind":"Call"},{target:t,arguments:e},{})}function nz(t,e){return NA({},{callstack:[]},t,e)}function fb(t){return Ht(t,"Call")}function DA(t){return yi(t)?DA(t.item):t}function rz(t,e,n,r){const s=Et(t,e,n);return Qt(DA(s),{},r)}function oz(t,e,n,r){return de(t,[n])?rz(t,e,n,r):Ub(n,r)}function iz(t,e){return t(e)}function sz(t,e){return jt(e)?be(iz(t,e)):be(e)}function az(t,e){const n=bi(e);return Al(t,n)}function lz(t,e){const n=e.map(r=>Al(t,r));return Se(n)}function Al(t,e){return Ie(e)?sz(t,e.const):Yr(e)?az(t,e.pattern):Pt(e)?lz(t,e.anyOf):e}function db(t,e={}){return me("Capitalize",[t],e)}function uz(t,e={}){return he({},db(t,e))}function mb(t,e={}){return me("Lowercase",[t],e)}function cz(t,e={}){return he({},mb(t,e))}function hb(t,e={}){return me("Uncapitalize",[t],e)}function fz(t,e={}){return he({},hb(t,e))}function pb(t,e={}){return me("Uppercase",[t],e)}function dz(t,e={}){return he({},pb(t,e))}const mz=t=>t[0].toUpperCase()+t.slice(1),hz=t=>t.toLowerCase(),pz=t=>t[0].toLowerCase()+t.slice(1),gz=t=>t.toUpperCase();function yz(t,e,n,r){const s=Et(t,e,n);return Qt(Al(mz,s),{},r)}function bz(t,e,n,r){return de(t,[n])?yz(t,e,n,r):db(n,r)}function vz(t,e,n,r){const s=Et(t,e,n);return Qt(Al(hz,s),{},r)}function Sz(t,e,n,r){return de(t,[n])?vz(t,e,n,r):mb(n,r)}function Ez(t,e,n,r){const s=Et(t,e,n);return Qt(Al(pz,s),{},r)}function xz(t,e,n,r){return de(t,[n])?Ez(t,e,n,r):hb(n,r)}function wz(t,e,n,r){const s=Et(t,e,n);return Qt(Al(gz,s),{},r)}function Tz(t,e,n,r){return de(t,[n])?wz(t,e,n,r):pb(n,r)}function gb(t,e,n,r,s={}){return me("Conditional",[t,e,n,r],s)}function Cz(t,e,n,r,s={}){return he({},gb(t,e,n,r,s))}function Az(t,e,n,r,s,l,c){const f=Et(t,e,n),m=Et(t,e,r),p=ci(t,f,m);return Qt(W0(p)?Se([Et(p.inferred,e,s),Et(t,e,l)]):tb(p)?Et(p.inferred,e,s):Et(t,e,l),{},c)}function $z(t,e,n,r,s,l,c){return de(t,[n,r])?Az(t,e,n,r,s,l,c):gb(n,r,s,l,c)}function yb(t,e={}){return me("ConstructorParameters",[t],e)}function Mz(t,e={}){return he({},yb(t,e))}function Rz(t){return jo(t)?Et({},{callstack:[]},fo(t.parameters)):Ze()}function Oz(t,e,n,r){const s=Et(t,e,n);return Qt(Rz(s),{},r)}function Nz(t,e,n,r){return de(t,[n])?Oz(t,e,n,r):yb(n,r)}function bb(t,e,n={}){return me("Exclude",[t,e],n)}function _z(t,e,n={}){return he({},bb(t,e,n))}function kw(t,e){return t.reduce((n,r)=>[...n,...jA(r,e)],[])}function jA(t,e){const n=ci({},t,e);return Ae(n)?[]:[t]}function Dz(t,e){const n=uo(t)?kw(Cl(t.enum),e):Pt(t)?kw(Tc(t.anyOf),e):jA(t,e);return Cc(n)}function jz(t,e,n,r,s){const l=Et(t,e,n),c=Et(t,e,r);return Qt(Dz(l,c),{},s)}function IA(t,e,n,r,s){return de(t,[n,r])?jz(t,e,n,r,s):bb(n,r,s)}function vb(t,e,n={}){return me("Extract",[t,e],n)}function Iz(t,e,n={}){return he({},vb(t,e,n))}function Pw(t,e){return t.reduce((n,r)=>[...n,...LA(r,e)],[])}function LA(t,e){const n=ci({},t,e);return Ae(n)?[t]:[]}function Lz(t,e){const n=uo(t)?Pw(Cl(t.enum),e):Pt(t)?Pw(Tc(t.anyOf),e):LA(t,e);return Cc(n)}function zz(t,e,n,r,s){const l=Et(t,e,n),c=Et(t,e,r);return Qt(Lz(l,c),{},s)}function Bz(t,e,n,r,s){return de(t,[n,r])?zz(t,e,n,r,s):vb(n,r,s)}const Uz=new RegExp("^(?:0|[1-9][0-9]*)$");function Sb(t){const e=`${t}`;return Uz.test(e)?parseInt(e):t}function kz(t){return be(Sb(t))}function Hw(t){return t.map(e=>zA(e))}function zA(t){return xe(t)?Xs(Hw(t.allOf)):Pt(t)?Se(Hw(t.anyOf)):Ie(t)?kz(t.const):t}function Pz(t,e){const n=zA(e),r=ci({},n,li());return Ae(r)?t:Ze()}function Hz(t,e){const n=Ac(t,e);return $c(n)}function BA(t){return t.reduce((e,n)=>[...e,...$c(n)],[])}function Fz(t){const e=Cl(t);return BA(e)}function qz(t){const e=Vr(t);return $c(e)}function Gz(t){return[`${t}`]}function Yz(t){const e=bi(t);return $c(e)}function $c(t){return Nn(t)?Hz(t.$defs,t.$ref):uo(t)?Fz(t.enum):xe(t)?qz(t.allOf):Ie(t)?Gz(t.const):Yr(t)?Yz(t.pattern):Pt(t)?BA(t.anyOf):[]}function Eb(t){return $c(t)}function Vz(t,e){return e in t?[t[e]]:[]}function Kz(t,e){return e.reduce((n,r)=>[...n,...Vz(t,r)],[])}function Xz(t,e){const n=Eb(e),r=Kz(t,n);return Cc(r)}function Qz(t){return be(Sb(t))}function Fw(t){return t.map(e=>UA(e))}function UA(t){return xe(t)?Xs(Fw(t.allOf)):Pt(t)?Se(Fw(t.anyOf)):Ie(t)?Qz(t.const):t}function Zz(t,e){return t.reduceRight((n,r,s)=>{const l=ci({},be(s),e);return Ae(l)?[r,...n]:n},[])}function Jz(t,e){const n=UA(e),r=Zz(t,n);return gm(r)}function Wz(t){return gm(t)}function t8(t,e){return br(e)||co(e)?Wz(t):Jz(t,e)}function e8(t){return t.reduce((e,n)=>oC(n)?[...e,be(n)]:e,[])}function xb(t){const e=e8(t);return Se(e)}function vm(t,e,n={}){return me("Index",[t,e],n)}function kA(t,e,n={}){const r=xt(e)?xb(e):e;return he({},vm(t,r,n))}function n8(t,e){const n=Ac(t,e);return $l(n)}function r8(t,e){const n=yt(t).filter(g=>!at(e,g)),r=yt(e).filter(g=>!at(t,g)),s=yt(t).filter(g=>at(e,g)),l=n.reduce((g,b)=>({...g,[b]:t[b]}),{}),c=r.reduce((g,b)=>({...g,[b]:e[b]}),{}),f=s.reduce((g,b)=>({...g,[b]:Vr([t[b],e[b]])}),{}),m=Xe(l,c);return Xe(m,f)}function o8(t){return t.reduce((e,n)=>r8(e,$l(n)),{})}function i8(t){const e=qI(fo(t));return $l(e)}function s8(t,e){return yt(t).filter(s=>s in e).reduce((s,l)=>({...s,[l]:Cc([t[l],e[l]])}),{})}function PA(t,e){const[n,...r]=t;return Ut(n)?PA(r,s8(e,$l(n))):e}function a8(t){const[e,...n]=t;return Ut(e)?PA(n,$l(e)):He()}function $l(t){return Nn(t)?n8(t.$defs,t.$ref):xe(t)?o8(t.allOf):Pt(t)?a8(t.anyOf):qe(t)?i8(t.items):$e(t)?t.properties:{}}function wb(t){const e=$l(t);return le(e)}function l8(t){return Nn(t)||xe(t)||Pt(t)?wb(t):t}function u8(t,e){const n=l8(t);return nn(n)?Pz(n.items,e):$e(n)?Xz(n.properties,e):qe(n)?t8(n.items,e):Ze()}function c8(t,e,n,r,s){const l=Et(t,e,n),c=Et(t,e,r);return Qt(u8(l,c),{},s)}function f8(t,e,n,r,s){return de(t,[n,r])?c8(t,e,n,r,s):vm(n,r,s)}function Tb(t,e={}){return me("InstanceType",[t],e)}function d8(t,e={}){return he({},Tb(t,e))}function m8(t){return jo(t)?t.instanceType:Ze()}function h8(t,e,n,r){const s=Et(t,e,n);return Qt(m8(s),{},r)}function p8(t,e,n,r={}){return de(t,[n])?h8(t,e,n,r):Tb(n,r)}function g8(t,e,n,r,s){const l=Ao(t,{callstack:[]},n),c=zb(t,{callstack:[]},r),f=Vr([...l,le(c)]);return Qt(f,{},s)}function y8(t,e,n,r,s){return de(t,n)?g8(t,e,n,r,s):bm(n,r,s)}function Sm(t,e={}){return me("KeyOf",[t],e)}function HA(t,e={}){return he({},Sm(t,e))}function b8(){return Se([li(),Hr(),L0()])}function v8(t){return li()}function S8(t){return t.reduce((n,r)=>oC(r)?[...n,be(Sb(r))]:He(),[])}function E8(t){const e=yt(t),n=S8(e);return gm(n)}function x8(t){return U0(t)}function w8(t){const e=t.map((n,r)=>be(r));return gm(e)}function T8(t){return Nn(t)||xe(t)||Pt(t)?wb(t):t}function C8(t){const e=T8(t);return pi(e)?b8():nn(e)?v8(e.items):$e(e)?E8(e.properties):vr(e)?x8(e):qe(e)?w8(e.items):Ze()}function A8(t,e,n,r){const s=Et(t,e,n);return Qt(C8(s),{},r)}function $8(t,e,n,r){return de(t,[n])?A8(t,e,n,r):Sm(n,r)}function M8(t){const e=bi(t);return Cb(e)}function qw(t){return t.reduce((e,n)=>[...e,...Cb(n)],[])}function Cb(t){return uo(t)?qw(Cl(t.enum)):I0(t)||j0(t)?[t]:Yr(t)?M8(t.pattern):Pt(t)?qw(t.anyOf):[]}function R8(t){return Cb(t)}function Hd(t,e,n,r,s={}){return me("Mapped",[t,e,n,r],s)}function FA(t,e,n,r,s={}){return he({},Hd(t,e,n,r,s))}function O8(t,e,n,r,s){const l=Xe(t,{[n.name]:r}),c=Et(l,e,s);return Yr(c)?bi(c.pattern):c}function N8(t,e,n,r,s){const l=Xe(t,{[n.name]:r});return Et(l,e,s)}function _8(t,e,n,r,s,l){const c=N8(t,e,n,r,l),f=O8(t,e,n,r,s);return I0(f)||j0(f)?{[f.const]:c}:{}}function D8(t,e,n,r,s,l){return r.reduce((c,f)=>({...c,..._8(t,e,n,f,s,l)}),{})}function j8(t,e,n,r,s,l){const c=R8(r),f=D8(t,e,n,c,s,l);return le(f)}function I8(t,e,n,r,s,l,c){const f=Et(t,e,r);return Qt(j8(t,e,n,f,s,l),{},c)}function L8(t,e,n,r,s,l,c){return de(t,[r])?I8(t,e,n,r,s,l,c):Hd(n,r,s,l,c)}function z8(t,e){return yt(t).filter(r=>e.includes(r)).reduce((r,s)=>({...r,[s]:XL(t,s,t[s])}),{})}function B8(t,e){return yt(t).filter(r=>!e.includes(r)).reduce((r,s)=>({...r,[s]:Et(t,{callstack:[]},t[s])}),{})}function U8(t,e){const n=kL(t),r=z8(t,n),s=B8(t,n),l={...r,...s};return Qt(l,{},e)}function k8(t,e,n,r){const s=Xe(t,n);return U8(s,r)}function Ab(t,e={}){return me("NonNullable",[t],e)}function P8(t,e={}){return he({},Ab(t,e))}function H8(t){const e=Se([Ys(),hm()]);return IA({},{callstack:[]},t,e,{})}function F8(t,e,n,r){const s=Et(t,e,n);return Qt(H8(s),{},r)}function q8(t,e,n,r){return de(t,[n])?F8(t,e,n,r):Ab(n,r)}function qA(t){const e=wb(t);return $e(e)?e.properties:He()}function $b(t,e,n={}){return me("Omit",[t,e],n)}function GA(t,e,n={}){const r=xt(e)?xb(e):e;return he({},$b(t,r,n))}function G8(t,e){return yt(t).reduce((r,s)=>e.includes(s)?r:{...r,[s]:t[s]},{})}function Y8(t,e){const n=qA(t),r=Eb(e),s=G8(n,r);return le(s)}function V8(t,e,n,r,s){const l=Et(t,e,n),c=Et(t,e,r);return Qt(Y8(l,c),{},s)}function K8(t,e,n,r,s){return de(t,[n,r])?V8(t,e,n,r,s):$b(n,r,s)}function Em(t,e){return me("Options",[t,e],{})}function Mb(t,e){return he({},Em(t,e))}function X8(t,e,n,r){const s=Et(t,e,n);return Qt(s,{},r)}function Q8(t,e,n,r){return de(t,[n])?X8(t,e,n,r):Em(n,r)}function Rb(t,e={}){return me("Parameters",[t],e)}function Z8(t,e={}){return he({},Rb(t,e))}function J8(t){return Io(t)?Et({},{callstack:[]},fo(t.parameters)):Ze()}function W8(t,e,n,r){const s=Et(t,e,n);return Qt(J8(s),{},r)}function tB(t,e,n,r){return de(t,[n])?W8(t,e,n,r):Rb(n,r)}function Ob(t,e={}){return me("Partial",[t],e)}function YA(t,e={}){return he({},Ob(t,e))}function eB(t,e){const n=Ac(t,e),r=xm(n);return yc(Xe(t,{[e]:r}),e)}function nB(t){const e=t.map(n=>xm(n));return Vr(e)}function rB(t){const e=t.map(n=>xm(n));return Se(e)}function oB(t){const e=yt(t).reduce((r,s)=>({...r,[s]:M0(t[s])}),{});return le(e)}function xm(t){return Nn(t)?eB(t.$defs,t.$ref):xe(t)?nB(t.allOf):Pt(t)?rB(t.anyOf):$e(t)?oB(t.properties):le({})}function iB(t,e,n,r){const s=Et(t,e,n);return Qt(xm(s),{},r)}function sB(t,e,n,r){return de(t,[n])?iB(t,e,n,r):Ob(n,r)}function Nb(t,e,n={}){return me("Pick",[t,e],n)}function VA(t,e,n={}){const r=xt(e)?xb(e):e;return he({},Nb(t,r,n))}function aB(t,e){return yt(t).reduce((r,s)=>e.includes(s)?Xe(r,{[s]:t[s]}):r,{})}function lB(t,e){const n=qA(t),r=Eb(e),s=aB(n,r);return le(s)}function uB(t,e,n,r,s){const l=Et(t,e,n),c=Et(t,e,r);return Qt(lB(l,c),{},s)}function cB(t,e,n,r,s){return de(t,[n,r])?uB(t,e,n,r,s):Nb(n,r,s)}function _b(t,e={}){return me("ReadonlyType",[t],e)}function fB(t,e={}){return he({},_b(t,e))}function dB(t){return sm(ra(t))}function mB(t,e){const n=Ac(t,e),r=wm(n);return yc(Xe(t,{[e]:r}),e)}function hB(t){const e=t.map(n=>wm(n));return Vr(e)}function pB(t){const e=yt(t).reduce((r,s)=>({...r,[s]:Y2(t[s])}),{});return le(e)}function gB(t){return sm(fo(t))}function yB(t){const e=t.map(n=>wm(n));return Se(e)}function wm(t){return nn(t)?dB(t.items):Nn(t)?mB(t.$defs,t.$ref):xe(t)?hB(t.allOf):$e(t)?pB(t.properties):qe(t)?gB(t.items):Pt(t)?yB(t.anyOf):t}function bB(t,e,n,r){const s=Et(t,e,n);return Qt(wm(s),{},r)}function vB(t,e,n,r){return de(t,[n])?bB(t,e,n,r):_b(n,r)}function SB(t){return ss(Qs,t)}function EB(t){return le({true:t,false:t})}function xB(t,e){const n=eb(t);return Tm(n,e)}function wB(t,e){return ss(cm,e)}function TB(t,e){const n=Vr(t);return Tm(n,e)}function CB(t,e){return jt(t)||Kt(t)?le({[t]:e}):M(t,!1)?le({false:e}):M(t,!0)?le({true:e}):le({})}function AB(t,e){return ss(fm,e)}function $B(t,e){return at(t,"pattern")&&(jt(t.pattern)||t.pattern instanceof RegExp)?ss(t.pattern.toString(),e):ss(Qs,e)}function MB(t,e){const n=lC(t);return fC(n)?Tm(bi(t),e):ss(t,e)}function RB(t){return t.some(e=>Hn(e)||br(e)||co(e))}function OB(t,e){return M(RB(t),!0)?ss(Qs,e):void 0}function NB(t,e){return t.reduce((n,r)=>Ie(r)&&(jt(r.const)||Kt(r.const))?{...n,[r.const]:e}:n,{})}function _B(t,e){const n=NB(t,e);return le(n)}function DB(t,e){const n=Tc(t),r=OB(n,e);return Ut(r)?r:_B(n,e)}function Tm(t,e){return pi(t)?SB(e):gi(t)?EB(e):uo(t)?xB(t.enum,e):co(t)?wB(t,e):xe(t)?TB(t.allOf,e):Ie(t)?CB(t.const,e):br(t)?AB(t,e):Pt(t)?DB(t.anyOf,e):Hn(t)?$B(t,e):Yr(t)?MB(t.pattern,e):le({})}function jB(t,e,n,r,s){const l=Et(t,e,n),c=Et(t,e,r);return Qt(Tm(l,c),{},s)}function IB(t,e,n,r,s){return de(t,[n])?jB(t,e,n,r,s):z0(n,r,s)}function LB(t,e,n,r){return r in t?MA([r],t,t[r])?n:Et(t,e,t[r]):n}function zB(t,e){const n=Ac(t,e),r=Cm(n);return yc(Xe(t,{[e]:r}),e)}function BB(t){const e=t.map(n=>Cm(n));return Vr(e)}function UB(t){const e=t.map(n=>Cm(n));return Se(e)}function kB(t){const e=yt(t).reduce((r,s)=>({...r,[s]:$0(t[s])}),{});return le(e)}function Cm(t){return Nn(t)?zB(t.$defs,t.$ref):xe(t)?BB(t.allOf):Pt(t)?UB(t.anyOf):$e(t)?kB(t.properties):le({})}function Db(t,e={}){return me("Required",[t],e)}function PB(t,e={}){return he({},Db(t,e))}function HB(t,e,n,r){const s=Et(t,e,n);return Qt(Cm(s),{},r)}function FB(t,e,n,r){return de(t,[n])?HB(t,e,n,r):Db(n,r)}function jb(t,e={}){return me("ReturnType",[t],e)}function qB(t,e={}){return he({},jb(t,e))}function GB(t){return Io(t)?t.returnType:Ze()}function YB(t,e,n,r){const s=Et(t,e,n);return Qt(GB(s),{},r)}function VB(t,e,n,r){return de(t,[n])?YB(t,e,n,r):jb(n,r)}function KB(t){return t.join("|")}function XB(t){return t.slice(1,t.length-1)}function QB(t,e,n){return hs(e,`${n}${t}`)}function ZB(t,e){return hs(t,`${e}${VD}`)}function JB(t,e){return hs(t,`${e}${rC}`)}function WB(t,e){return hs(t,`${e}${iC}`)}function t9(t,e){return Lb(Se([be("false"),be("true")]),t,e)}function e9(t,e){return hs(t,`${e}${aC}`)}function n9(t,e,n){return hs(e,`${n}${XB(t)}`)}function r9(t,e,n,r=[]){const s=Cl(t);return Ib(s,e,n)}function Ib(t,e,n,r=[]){const[s,...l]=t;return Ut(s)?Ib(l,e,n,[...r,Lb(s,[],"")]):hs(e,`${n}(${KB(r)})`)}function Lb(t,e,n){return uo(t)?r9(t.enum,e,n):co(t)?JB(e,n):Ie(t)?QB(t.const,e,n):oa(t)?ZB(e,n):gi(t)?t9(e,n):br(t)?WB(e,n):Hn(t)?e9(e,n):Yr(t)?n9(t.pattern,e,n):Pt(t)?Ib(t.anyOf,e,n):fD}function hs(t,e){const[n,...r]=t;return Ut(n)?Lb(n,r,e):e}function o9(t){return`^${hs(t,"")}$`}function i9(t){const e=o9(t);return dC(e)}function s9(t,e,n,r){const s=Ao(t,e,n);return Qt(i9(s),{},r)}function a9(t,e,n,r){return de(t,n)?s9(t,e,n,r):J0(n,r)}function l9(t){return mm(t)?qe(t.items)?KA(t.items.items):dr(t.items)?[t]:On(t.items)?[t]:[Ze()]:[t]}function KA(t){return t.reduce((n,r)=>[...n,...l9(r)],[])}function u9(t,e){return e in t}function c9(t,e){return xe(e)?de(t,e.allOf):Pt(e)?de(t,e.anyOf):On(e)?u9(t,e.$ref):!0}function de(t,e){const[n,...r]=e;return Ut(n)?c9(t,n)?de(t,r):!1:!0}function Zu(t,e,n){return sD(t)?Zu(t.type,"remove",n):nD(t)?Zu(t.type,e,"remove"):oD(t)?Zu(t.type,"add",n):tD(t)?Zu(t.type,e,"add"):[t,e,n]}function f9(t,e){return M(t,"remove")?G2(e):M(t,"add")?Pr(e):e}function d9(t,e){return M(t,"remove")?$0(e):M(t,"add")?kr(e):e}function zb(t,e,n){return yt(n).reduce((r,s)=>({...r,[s]:Et(t,e,n[s])}),{})}function Bb(t,e,n){const r=Ao(t,e,n);return KA(r)}function Ao(t,e,n){return n.map(r=>Et(t,e,r))}function m9(t,e,n,r,s){return M(n,"Awaited")?oz(t,e,r[0],s):M(n,"Capitalize")?bz(t,e,r[0],s):M(n,"Conditional")?$z(t,e,r[0],r[1],r[2],r[3],s):M(n,"ConstructorParameters")?Nz(t,e,r[0],s):M(n,"Evaluate")?oL(t,e,r[0],s):M(n,"Exclude")?IA(t,e,r[0],r[1],s):M(n,"Extract")?Bz(t,e,r[0],r[1],s):M(n,"Index")?f8(t,e,r[0],r[1],s):M(n,"InstanceType")?p8(t,e,r[0],s):M(n,"Interface")?y8(t,e,r[0],r[1],s):M(n,"KeyOf")?$8(t,e,r[0],s):M(n,"Lowercase")?Sz(t,e,r[0],s):M(n,"Mapped")?L8(t,e,r[0],r[1],r[2],r[3],s):M(n,"Module")?k8(t,e,r[0],s):M(n,"NonNullable")?q8(t,e,r[0],s):M(n,"Pick")?cB(t,e,r[0],r[1],s):M(n,"Options")?Q8(t,e,r[0],r[1]):M(n,"Parameters")?tB(t,e,r[0],s):M(n,"Partial")?sB(t,e,r[0],s):M(n,"Omit")?K8(t,e,r[0],r[1],s):M(n,"ReadonlyType")?vB(t,e,r[0],s):M(n,"Record")?IB(t,e,r[0],r[1],s):M(n,"Required")?FB(t,e,r[0],s):M(n,"ReturnType")?VB(t,e,r[0],s):M(n,"TemplateLiteral")?a9(t,e,r[0],s):M(n,"Uncapitalize")?xz(t,e,r[0],s):M(n,"Uppercase")?Tz(t,e,r[0],s):me(n,r,s)}function Et(t,e,n){const r=Ld(n),s=Zu(n,zd(n)?"add":"none",qn(n)?"add":"none"),l=xl(s[0])?s[0].Clone():s[0],c=On(l)?LB(t,e,l,l.$ref):nn(l)?ra(Et(t,e,l.items),V2(l)):cs(l)?pc(Et(t,e,l.iteratorItems),lD(l)):fb(l)?NA(t,e,l.target,l.arguments):jo(l)?am(Ao(t,e,l.parameters),Et(t,e,l.instanceType),uD(l)):aD(l)?m9(t,e,l.action,l.parameters,l.options):Io(l)?lm(Ao(t,e,l.parameters),Et(t,e,l.returnType),cD(l)):xe(l)?Xs(Ao(t,e,l.allOf),SD(l)):fs(l)?bc(Et(t,e,l.iteratorItems),XD(l)):$e(l)?le(zb(t,e,l.properties),nj(l)):yi(l)?Ec(Et(t,e,l.item),oj(l)):vr(l)?mj(ds(l),Et(t,e,Lo(l))):mm(l)?dm(Et(t,e,l.items)):qe(l)?fo(Bb(t,e,l.items),pj(l)):Pt(l)?Se(Ao(t,e,l.anyOf),ij(l)):l,f=r?sm(c):c;return f9(s[1],d9(s[2],f))}function he(t,e){return Et(t,{callstack:[]},e)}function Ub(t,e={}){return me("Awaited",[t],e)}function h9(t,e={}){return he({},Ub(t,e))}function XA(t,e={}){return me("Evaluate",[t],e)}function Mc(t,e={}){return he({},XA(t,e))}function QA(t,e={}){return me("Module",[t],e)}function p9(t,e={}){return he({},QA(t,e))}function g9(...t){const[e,n,r]=rn(t,{2:(c,f)=>jt(c)?[{},c,f]:[c,f,{}],3:(c,f,m)=>[c,f,m],1:c=>[{},c,{}]}),s=vI(n),l=xt(s)&&M(s.length,2)?Et(e,{callstack:[]},s[0]):Ze();return Qt(l,{},r)}const y9=Object.freeze(Object.defineProperty({__proto__:null,Any:ll,Array:ra,AsyncIterator:pc,Awaited:h9,Base:K2,BigInt:_0,Boolean:D0,Call:nz,Capitalize:uz,Codec:N0,Conditional:Cz,Constructor:am,ConstructorParameters:Mz,Cyclic:yc,Decode:FD,DecodeBuilder:eC,Encode:qD,EncodeBuilder:tC,Enum:vD,Evaluate:Mc,Exclude:_z,Extends:ci,ExtendsResult:wI,Extract:Iz,Function:lm,Generic:gc,Identifier:Bd,Immutable:sm,Index:kA,Infer:$y,InstanceType:d8,Instantiate:he,Integer:dl,Interface:$A,Intersect:Xs,IsAny:pi,IsArray:nn,IsAsyncIterator:cs,IsBase:xl,IsBigInt:oa,IsBoolean:gi,IsCall:fb,IsCodec:mr,IsConstructor:jo,IsCyclic:Nn,IsEnum:uo,IsFunction:Io,IsGeneric:R0,IsIdentifier:KD,IsImmutable:Ld,IsInfer:dr,IsInteger:co,IsIntersect:xe,IsIterator:fs,IsKind:Ht,IsLiteral:Ie,IsNever:um,IsNull:wl,IsNumber:br,IsObject:$e,IsOptional:qn,IsParameter:rj,IsPromise:yi,IsReadonly:zd,IsRecord:vr,IsRef:On,IsRefine:nC,IsRest:mm,IsSchema:Ut,IsString:Hn,IsSymbol:vc,IsTemplateLiteral:Yr,IsThis:hj,IsTuple:qe,IsUndefined:Tl,IsUnion:Pt,IsUnknown:os,IsUnsafe:vC,IsVoid:ms,Iterator:bc,KeyOf:HA,Literal:be,Lowercase:cz,Mapped:FA,Module:p9,Never:Ze,NonNullable:P8,Null:Ys,Number:li,Object:le,Omit:GA,Optional:M0,Options:Mb,Parameter:Sc,Parameters:Z8,Partial:YA,Pick:VA,Promise:Ec,Readonly:Y2,ReadonlyType:fB,Record:B0,RecordKey:U0,RecordKeyAsPattern:ds,RecordValue:Lo,Ref:cr,Refine:YD,Required:PB,Rest:dm,ReturnType:qB,Script:g9,String:Hr,Symbol:L0,TemplateLiteral:xI,This:bC,Tuple:fo,Uncapitalize:fz,Undefined:hm,Union:Se,Unknown:fr,Unsafe:Sd,Uppercase:dz,Void:k0},Symbol.toStringTag,{value:"Module"})),b9=[0,31,28,31,30,31,30,31,31,30,31,30,31],v9=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function S9(t){return t%4===0&&(t%100!==0||t%400===0)}function kb(t){const e=v9.exec(t);if(!e)return!1;const n=+e[1],r=+e[2],s=+e[3];return r>=1&&r<=12&&s>=1&&s<=(r===2&&S9(n)?29:b9[r])}const E9=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function Pb(t,e=!0){const n=E9.exec(t);if(!n)return!1;const r=+n[1],s=+n[2],l=+n[3],c=n[4]==="-"?-1:1,f=+(n[5]||0),m=+(n[6]||0);if(f>23||m>59||e&&!n[4]&&t.toLowerCase().indexOf("z")===-1)return!1;if(r<=23&&s<=59&&l<60)return!0;const p=s-m*c,g=r-f*c-(p<0?1:0);return(g===23||g===-1)&&(p===59||p===-1)&&l<61}function ZA(t,e=!0){const n=t.split(/T/i);return n.length===2&&kb(n[0])&&Pb(n[1],e)}const x9=/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/;function JA(t){return x9.test(t)}const w9=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function WA(t){return w9.test(t)}const T9=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;function t$(t){return T9.test(t)}const C9=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function e$(t){return C9.test(t)}function Vg(t){const e=t.codePointAt(0);return e===void 0?!1:e>=12352&&e<=12447||e>=12448&&e<=12543&&e!==12539||e>=19968&&e<=40959}function n$(t){if(t.length===0||t.includes(" "))return!1;const e=/[\u002E\u3002\uFF0E\uFF61]/g,n=t.normalize("NFC").replace(e,".");if(n.length>253)return!1;const r=n.split(".");if(r.some(s=>s.length===0))return!1;for(const s of r){if(s.length>63||s.startsWith("-")||s.endsWith("-"))return!1;if(/^xn--/i.test(s)){const m=s.slice(4);if(m.length<2||m.includes("---"))return!1;continue}if(/[\u302E\u302F\u3031\u3032\u3033\u3034\u3035\u303B\u0640\u07FA]/.test(s))return!1;const l=s.charAt(0);if(/[\u0903\u0300\u0488]/.test(l))return!1;for(let m=0;m<s.length;m++){const p=s.charAt(m);if(p==="·"){if(m===0||m===s.length-1)return!1;const g=s.charAt(m-1),b=s.charAt(m+1);if(!/^[lL]$/.test(g)||!/^[lL]$/.test(b))return!1}if(p==="・"){if(s.length===1)return!1;if(m===0){const g=s.charAt(m+1);if(!Vg(g))return!1}else{const g=s.charAt(m-1),b=s.charAt(m+1);if(!Vg(g)||!Vg(b))return!1}}if(p==="͵"){if(m===s.length-1)return!1;const g=s.charAt(m+1);if(!/[\u0370-\u03FF]/.test(g))return!1}if(p==="׳"||p==="״"){if(m===0)return!1;const g=s.charAt(m-1);if(!/[\u05D0-\u05EA]/.test(g))return!1}if(p===""&&(m===0||s.charAt(m-1)!=="्"))return!1}let c=!1,f=!1;for(let m=0;m<s.length;m++){const p=s.charAt(m);/[\u0660-\u0669]/.test(p)&&(c=!0),/[\u06F0-\u06F9]/.test(p)&&(f=!0)}if(c&&f)return!1}return!0}const A9=/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;function r$(t){return A9.test(t)}const $9=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i;function o$(t){return $9.test(t)}function Gw(t){try{return new URL(t,"http://example.com"),!0}catch{return!1}}function i$(t){if(t.includes(" ")||t.includes("\\")||/[\x00-\x1F\x7F]/.test(t)||/%(?![0-9a-fA-F]{2})/.test(t))return!1;if(t==="")return!0;const e=t.indexOf(":");return e>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t.substring(0,e))?Gw(t):t.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&e===-1?!1:Gw(t)}function s$(t){try{return new URL(t),!0}catch{return!1}}const M9=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function a$(t){return M9.test(t)}const R9=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function l$(t){return R9.test(t)}function u$(t){if(t.length===0)return!1;try{return new RegExp(t),!0}catch{return!1}}const O9=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function c$(t){return O9.test(t)}const N9=/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i;function f$(t){return N9.test(t)}const _9=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function d$(t){return _9.test(t)}const D9=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i;function m$(t){return D9.test(t)}const j9=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function h$(t){return j9.test(t)}const I9=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function p$(t){return I9.test(t)}const ge=new Map;function g$(){ge.clear()}function L9(){return[...ge.entries()]}function z9(t,e){ge.set(t,e)}function B9(t){return ge.has(t)}function U9(t){return ge.get(t)}function y$(t,e){return ge.get(t)?.(e)??!0}function b$(){g$(),ge.set("date-time",ZA),ge.set("date",kb),ge.set("duration",JA),ge.set("email",WA),ge.set("hostname",t$),ge.set("idn-email",e$),ge.set("idn-hostname",n$),ge.set("ipv4",r$),ge.set("ipv6",o$),ge.set("iri-reference",i$),ge.set("iri",s$),ge.set("json-pointer-uri-fragment",a$),ge.set("json-pointer",l$),ge.set("regex",u$),ge.set("relative-json-pointer",c$),ge.set("time",Pb),ge.set("uri-reference",f$),ge.set("uri-template",d$),ge.set("uri",m$),ge.set("url",h$),ge.set("uuid",p$)}b$();const By=Object.freeze(Object.defineProperty({__proto__:null,Clear:g$,Entries:L9,Get:U9,Has:B9,IsDate:kb,IsDateTime:ZA,IsDuration:JA,IsEmail:WA,IsHostname:t$,IsIPv4:r$,IsIPv6:o$,IsIdnEmail:e$,IsIdnHostname:n$,IsIri:s$,IsIriReference:i$,IsJsonPointer:l$,IsJsonPointerUriFragment:a$,IsRegex:u$,IsRelativeJsonPointer:c$,IsTime:Pb,IsUri:m$,IsUriReference:f$,IsUriTemplate:d$,IsUrl:h$,IsUuid:p$,Reset:b$,Set:z9,Test:y$},Symbol.toStringTag,{value:"Module"}));function k9(t){return Mt(t)&&at(t,"check")&&at(t,"errors")&&ai(t.check)&&ai(t.errors)}function Hb(t){return at(t,"~guard")&&k9(t["~guard"])}function Fb(t){return at(t,"~refine")&&xt(t["~refine"])&&gn(t["~refine"],0,e=>Mt(e)&&at(e,"refine")&&at(e,"message")&&ai(e.refine)&&jt(e.message))}function No(t){return Mt(t)&&!xt(t)}function Am(t){return Fe(t)}function _e(t){return No(t)||Am(t)}function $m(t){return at(t,"additionalItems")&&_e(t.additionalItems)}function Ml(t){return at(t,"additionalProperties")&&_e(t.additionalProperties)}function qb(t){return at(t,"allOf")&&xt(t.allOf)&&t.allOf.every(e=>_e(e))}function Uy(t){return at(t,"$anchor")&&jt(t.$anchor)}function Gb(t){return at(t,"anyOf")&&xt(t.anyOf)&&t.anyOf.every(e=>_e(e))}function Yb(t){return at(t,"const")}function Rl(t){return at(t,"contains")&&_e(t.contains)}function Ol(t){return at(t,"default")}function Mm(t){return at(t,"dependencies")&&Mt(t.dependencies)&&Object.values(t.dependencies).every(e=>_e(e)||xt(e)&&e.every(n=>jt(n)))}function Rm(t){return at(t,"dependentRequired")&&Mt(t.dependentRequired)&&Object.values(t.dependentRequired).every(e=>xt(e)&&e.every(n=>jt(n)))}function Om(t){return at(t,"dependentSchemas")&&Mt(t.dependentSchemas)&&Object.values(t.dependentSchemas).every(e=>_e(e))}function Yw(t){return at(t,"$dynamicAnchor")&&jt(t.$dynamicAnchor)}function Vb(t){return at(t,"else")&&_e(t.else)}function Kb(t){return at(t,"enum")&&xt(t.enum)}function Nm(t){return at(t,"exclusiveMaximum")&&(Kt(t.exclusiveMaximum)||Ne(t.exclusiveMaximum))}function sa(t){return at(t,"exclusiveMinimum")&&(Kt(t.exclusiveMinimum)||Ne(t.exclusiveMinimum))}function Rc(t){return at(t,"format")&&jt(t.format)}function oc(t){return at(t,"$id")&&jt(t.$id)}function Xb(t){return at(t,"if")&&_e(t.if)}function Nl(t){return at(t,"items")&&(_e(t.items)||xt(t.items)&&t.items.every(e=>_e(e)))}function Qb(t){return Nl(t)&&xt(t.items)}function _m(t){return at(t,"maximum")&&(Kt(t.maximum)||Ne(t.maximum))}function Dm(t){return at(t,"maxContains")&&Kt(t.maxContains)}function jm(t){return at(t,"maxItems")&&Kt(t.maxItems)}function Im(t){return at(t,"maxLength")&&Kt(t.maxLength)}function Lm(t){return at(t,"maxProperties")&&Kt(t.maxProperties)}function aa(t){return at(t,"minimum")&&(Kt(t.minimum)||Ne(t.minimum))}function _l(t){return at(t,"minContains")&&Kt(t.minContains)}function Oc(t){return at(t,"minItems")&&Kt(t.minItems)}function Nc(t){return at(t,"minLength")&&Kt(t.minLength)}function _c(t){return at(t,"minProperties")&&Kt(t.minProperties)}function zm(t){return at(t,"multipleOf")&&(Kt(t.multipleOf)||Ne(t.multipleOf))}function Zb(t){return at(t,"not")&&_e(t.not)}function Jb(t){return at(t,"oneOf")&&xt(t.oneOf)&&t.oneOf.every(e=>_e(e))}function Dc(t){return at(t,"pattern")&&(jt(t.pattern)||t.pattern instanceof RegExp)}function Dl(t){return at(t,"patternProperties")&&Mt(t.patternProperties)&&Object.values(t.patternProperties).every(e=>_e(e))}function la(t){return at(t,"prefixItems")&&xt(t.prefixItems)&&t.prefixItems.every(e=>_e(e))}function jl(t){return at(t,"properties")&&Mt(t.properties)&&Object.values(t.properties).every(e=>_e(e))}function Bm(t){return at(t,"propertyNames")&&(Mt(t.propertyNames)||_e(t.propertyNames))}function P9(t){return at(t,"$recursiveAnchor")&&Fe(t.$recursiveAnchor)}function Kg(t){return P9(t)&&M(t.$recursiveAnchor,!0)}function Wb(t){return at(t,"$recursiveRef")&&jt(t.$recursiveRef)}function tv(t){return at(t,"$ref")&&jt(t.$ref)}function ps(t){return at(t,"required")&&xt(t.required)&&t.required.every(e=>jt(e))}function ev(t){return at(t,"then")&&_e(t.then)}function Um(t){return at(t,"type")&&(jt(t.type)||xt(t.type)&&t.type.every(e=>jt(e)))}function jc(t){return at(t,"uniqueItems")&&Fe(t.uniqueItems)}function Ic(t){return at(t,"unevaluatedItems")&&_e(t.unevaluatedItems)}function Lc(t){return at(t,"unevaluatedProperties")&&_e(t.unevaluatedProperties)}function H9(t){return Ic(t)||Lc(t)||yt(t).some(e=>Fd(t[e]))}function F9(t){return t.some(e=>Fd(e))}function Fd(t){return xt(t)?F9(t):Mt(t)?H9(t):!1}function q9(t,e){return Fd(e)||yt(t).some(n=>Fd(t[n]))}class G9{constructor(e){this.hasUnevaluated=e}UseUnevaluated(){return this.hasUnevaluated}AddIndex(e){return ne(Dt("context","AddIndex"),[e])}AddKey(e){return ne(Dt("context","AddKey"),[e])}Merge(e){return ne(Dt("context","Merge"),[e])}}class Si{constructor(){this.indices=new Set,this.keys=new Set}AddIndex(e){return this.indices.add(e),!0}AddKey(e){return this.keys.add(e),!0}GetIndices(){return this.indices}GetKeys(){return this.keys}Merge(e){for(const n of e)n.indices.forEach(r=>this.indices.add(r)),n.keys.forEach(r=>this.keys.add(r));return!0}}class v$ extends Si{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}}class Ei extends v${constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}}const S$="external_";let ky=0;const ul={identifier:`${S$}${ky}`,variables:[]};function Y9(){ul.identifier=`${S$}${ky}`,ul.variables=[],ky+=1}function ua(t){const e=`${ul.identifier}[${ul.variables.length}]`;return ul.variables.push(t),e}function V9(){return ul}function K9(t,e,n,r){return ne(Dt(Dt(ua(n),"~guard"),"check"),[r])}function X9(t,e,n,r){return n["~guard"].check(r)}function Q9(t,e,n,r,s,l){return s["~guard"].check(l)||e.AddError({keyword:"~guard",schemaPath:n,instancePath:r,params:{errors:s["~guard"].errors(l)}})}function Z9(t,e,n,r){const s=ua(n["~refine"].map(l=>l));return ea(s,St(0),["refinement","_"],ne(Dt("refinement","refine"),[r]))}function J9(t,e,n,r){return gn(n["~refine"],0,(s,l)=>s.refine(r))}function W9(t,e,n,r,s,l){return yn(s["~refine"],0,(c,f)=>c.refine(l)||e.AddError({keyword:"~refine",schemaPath:n,instancePath:r,params:{index:f,message:c.message}}))}let tU=0;function bn(){return`var_${tU++}`}function nv(t){return Nl(t)&&xt(t.items)}function eU(t,e,n,r){if(!nv(n))return St(!0);const[s,l]=[bn(),bn()],c=Oe(t,e,n.additionalItems,s),f=B2(l,St(n.items.length)),m=e.AddIndex(l),p=e.UseUnevaluated()?ve(f,yr(c,m)):ve(f,c);return ne(Dt(r,"every"),[ur([s,l],p)])}function nU(t,e,n,r){return nv(n)?r.every((l,c)=>em(c,n.items.length)||Ee(t,e,n.additionalItems,l)&&e.AddIndex(c)):!0}function rU(t,e,n,r,s,l){return nv(s)?l.every((f,m)=>{const p=`${n}/additionalItems`,g=`${r}/${m}`;return em(m,s.items.length)||Pe(t,e,p,g,s.additionalItems,f)&&e.AddIndex(m)}):!0}function oU(t){return`^${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`}function rv(t){const e=[];return Dl(t)&&e.push(...yt(t.patternProperties)),jl(t)&&e.push(...yt(t.properties).map(oU)),M(e.length,0)?"(?!)":`(${e.join("|")})`}function iU(t,e,n){return ps(e)&&jl(e)&&!Dl(e)&&M(e.additionalProperties,!1)&&M(yt(e.properties).length,e.required.length)}function sU(t,e,n){return lr(Dt(ne(Dt("Object","getOwnPropertyNames"),[n]),"length"),St(e.required.length))}function aU(t,e,n,r){const[s,l]=[bn(),bn()],c=ua(new RegExp(rv(n))),f=Oe(t,e,n.additionalProperties,`${r}[${s}]`),m=ne(Dt(c,"test"),[s]),p=e.AddKey(s),g=e.UseUnevaluated()?ve(m,yr(f,p)):ve(m,f);return ea(na(r),St(0),[s,l],g)}function lU(t,e,n,r){return iU(e,n)?sU(e,n,r):aU(t,e,n,r)}function uU(t,e,n,r){const s=new RegExp(rv(n));return gn(yt(r),0,(c,f)=>s.test(c)||Ee(t,e,n.additionalProperties,r[c])&&e.AddKey(c))}function cU(t,e,n,r,s,l){const c=new RegExp(rv(s)),f=[];return yn(yt(l),0,(p,g)=>{const b=`${n}/additionalProperties`,E=`${r}/${p}`,S=new Ei,T=c.test(p)||Pe(t,S,b,E,s.additionalProperties,l[p])&&e.AddKey(p);return T||f.push(p),T})||e.AddError({keyword:"additionalProperties",schemaPath:n,instancePath:r,params:{additionalProperties:f}})}function km(t,e,n,r,s){const l=oi("results","[]"),c=n.map((g,b)=>oi(`context_${b}`,w0("CheckContext",[]))),f=n.map((g,b)=>oi(`condition_${b}`,ne(ur(["context"],Oe(t,e,g,r)),[`context_${b}`]))),m=n.map((g,b)=>P2(`condition_${b}`,ne(Dt("results","push"),[`context_${b}`]))),p=im(yr(s,e.Merge("results")));return ne(ur([],om([l,...c,...f,...m,p])),[])}function fU(t,e,n,r){return km(t,e,n.allOf,r,lr(Dt("results","length"),St(n.allOf.length)))}function dU(t,e,n,r){return En(n.allOf.map(s=>Oe(t,e,s,r)))}function mU(t,e,n,r){return e.UseUnevaluated()?fU(t,e,n,r):dU(t,e,n,r)}function hU(t,e,n,r){const s=n.allOf.reduce((l,c)=>{const f=new Si;return Ee(t,f,c,r)?[...l,f]:l},[]);return M(s.length,n.allOf.length)&&e.Merge(s)}function pU(t,e,n,r,s,l){const c=[],f=s.allOf.reduce((p,g,b)=>{const E=`${n}/allOf/${b}`,S=new Ei,T=Pe(t,S,E,r,g,l);return T||c.push(S),T?[...p,S]:p},[]),m=M(f.length,s.allOf.length)&&e.Merge(f);return m||c.forEach(p=>p.GetErrors().forEach(g=>e.AddError(g))),m}function gU(t,e,n,r){return km(t,e,n.anyOf,r,z2(Dt("results","length"),St(0)))}function yU(t,e,n,r){return T0(n.anyOf.map(s=>Oe(t,e,s,r)))}function bU(t,e,n,r){return e.UseUnevaluated()?gU(t,e,n,r):yU(t,e,n,r)}function vU(t,e,n,r){const s=n.anyOf.reduce((l,c,f)=>{const m=new Si;return Ee(t,m,c,r)?[...l,m]:l},[]);return vl(s.length,0)&&e.Merge(s)}function SU(t,e,n,r,s,l){const c=[],f=s.anyOf.reduce((p,g,b)=>{const E=new Ei,S=`${n}/anyOf/${b}`,T=Pe(t,E,S,r,g,l);return T||c.push(E),T?[...p,E]:p},[]),m=vl(f.length,0)&&e.Merge(f);return m||c.forEach(p=>p.GetErrors().forEach(g=>e.AddError(g))),m||e.AddError({keyword:"anyOf",schemaPath:n,instancePath:r,params:{}})}function EU(t,e,n,r){return St(!!n)}function E$(t,e,n,r){return n}function xU(t,e,n,r,s,l){return E$(t,e,s)||e.AddError({keyword:"boolean",schemaPath:n,instancePath:r,params:{}})}function wU(t,e,n,r){return dc(n.const)?lr(r,St(n.const)):k2(r,ua(n.const))}function x$(t,e,n,r){return dc(n.const)?M(r,n.const):mc(r,n.const)}function TU(t,e,n,r,s,l){return x$(t,e,s,l)||e.AddError({keyword:"const",schemaPath:n,instancePath:r,params:{allowedValue:s.const}})}function w$(t){return!(_l(t)&&M(t.minContains,0))}function CU(t,e,n,r){if(!w$(n))return St(!0);const s=bn(),l=An(lr(Dt(r,"length"),St(0))),c=ne(Dt(r,"some"),[ur([s],Oe(t,e,n.contains,s))]);return yr(l,c)}function T$(t,e,n,r){return w$(n)?!M(r.length,0)&&r.some(s=>Ee(t,e,n.contains,s)):!0}function AU(t,e,n,r,s,l){return T$(t,e,s,l)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:1}})}function $U(t,e,n,r){const s=lr(Dt(na(r),"length"),St(0)),l=En(Qe(n.dependencies).map(([c,f])=>{const m=An(Ks(r,St(c))),p=Oe(t,e,f,r),g=b=>En(b.map(E=>Ks(r,St(E))));return ve(m,xt(f)?g(f):p)}));return ve(s,l)}function MU(t,e,n,r){const s=M(yt(r).length,0),l=gn(Qe(n.dependencies),0,([c,f])=>!at(r,c)||(xt(f)?f.every(m=>at(r,m)):Ee(t,e,f,r)));return s||l}function RU(t,e,n,r,s,l){const c=M(yt(l).length,0),f=yn(Qe(s.dependencies),0,([m,p])=>{const g=`${n}/dependencies/${m}`;return!at(l,m)||(xt(p)?p.every(b=>at(l,b)||e.AddError({keyword:"dependencies",schemaPath:n,instancePath:r,params:{property:m,dependencies:p}})):Pe(t,e,g,r,p,l))});return c||f}function OU(t,e,n,r){const s=lr(Dt(na(r),"length"),St(0)),l=En(Qe(n.dependentRequired).map(([c,f])=>{const m=An(Ks(r,St(c))),p=En(f.map(g=>Ks(r,St(g))));return ve(m,p)}));return ve(s,l)}function NU(t,e,n,r){const s=M(yt(r).length,0),l=gn(Qe(n.dependentRequired),0,([c,f])=>!at(r,c)||f.every(m=>at(r,m)));return s||l}function _U(t,e,n,r,s,l){const c=M(yt(l).length,0),f=yn(Qe(s.dependentRequired),0,([m,p])=>!at(l,m)||yn(p,0,g=>at(l,g)||e.AddError({keyword:"dependentRequired",schemaPath:n,instancePath:r,params:{property:m,dependencies:p}})));return c||f}function DU(t,e,n,r){const s=lr(Dt(na(r),"length"),St(0)),l=En(Qe(n.dependentSchemas).map(([c,f])=>{const m=An(Ks(r,St(c))),p=Oe(t,e,f,r);return ve(m,p)}));return ve(s,l)}function jU(t,e,n,r){const s=M(yt(r).length,0),l=gn(Qe(n.dependentSchemas),0,([c,f])=>!at(r,c)||Ee(t,e,f,r));return s||l}function IU(t,e,n,r,s,l){const c=M(yt(l).length,0),f=yn(Qe(s.dependentSchemas),0,([m,p])=>{const g=`${n}/dependentSchemas/${m}`;return!at(l,m)||Pe(t,e,g,r,p,l)});return c||f}function LU(t,e,n,r){return T0(n.enum.map(s=>{if(dc(s))return lr(r,St(s));const l=ua(s);return k2(r,l)}))}function C$(t,e,n,r){return n.enum.some(s=>dc(s)?M(r,s):mc(r,s))}function zU(t,e,n,r,s,l){return C$(t,e,s,l)||e.AddError({keyword:"enum",schemaPath:n,instancePath:r,params:{allowedValues:s.enum}})}function BU(t,e,n,r){return B2(r,St(n.exclusiveMaximum))}function A$(t,e,n,r){return em(r,n.exclusiveMaximum)}function UU(t,e,n,r,s,l){return A$(t,e,s,l)||e.AddError({keyword:"exclusiveMaximum",schemaPath:n,instancePath:r,params:{comparison:"<",limit:s.exclusiveMaximum}})}function kU(t,e,n,r){return z2(r,St(n.exclusiveMinimum))}function $$(t,e,n,r){return vl(r,n.exclusiveMinimum)}function PU(t,e,n,r,s,l){return $$(t,e,s,l)||e.AddError({keyword:"exclusiveMinimum",schemaPath:n,instancePath:r,params:{comparison:">",limit:s.exclusiveMinimum}})}function HU(t,e,n,r){return ne(Dt("Format","Test"),[St(n.format),r])}function M$(t,e,n,r){return y$(n.format,r)}function FU(t,e,n,r,s,l){return M$(t,e,s,l)||e.AddError({keyword:"format",schemaPath:n,instancePath:r,params:{format:s.format}})}function qU(t,e,n,r){const s=ev(n)?n.then:!0,l=Vb(n)?n.else:!0;return rm(Oe(t,e,n.if,r),Oe(t,e,s,r),Oe(t,e,l,r))}function GU(t,e,n,r){const s=ev(n)?n.then:!0,l=Vb(n)?n.else:!0;return Ee(t,e,n.if,r)?Ee(t,e,s,r):Ee(t,e,l,r)}function YU(t,e,n,r,s,l){const c=ev(s)?s.then:!0,f=Vb(s)?s.else:!0,m=new Ei,p=Pe(t,m,`${n}/if`,r,s.if,l)?Pe(t,m,`${n}/then`,r,c,l)||e.AddError({keyword:"if",schemaPath:n,instancePath:r,params:{failingKeyword:"then"}}):Pe(t,e,`${n}/else`,r,f,l)||e.AddError({keyword:"if",schemaPath:n,instancePath:r,params:{failingKeyword:"else"}});return p&&e.Merge([m]),p}function VU(t,e,n,r){return En(n.items.map((s,l)=>{const c=El(Dt(r,"length"),St(l)),f=Oe(t,e,s,`${r}[${l}]`),m=e.AddIndex(St(l)),p=e.UseUnevaluated()?yr(f,m):f;return ve(c,p)}))}function KU(t,e,n,r){return gn(n.items,0,(s,l)=>hi(r.length,l)||Ee(t,e,s,r[l])&&e.AddIndex(l))}function XU(t,e,n,r,s,l){return yn(s.items,0,(c,f)=>{const m=`${n}/items/${f}`,p=`${r}/${f}`;return hi(l.length,f)||Pe(t,e,m,p,c,l[f])&&e.AddIndex(f)})}function QU(t,e,n,r){const s=la(n)?n.prefixItems.length:0,l=Oe(t,e,n.items,"element"),c=e.AddIndex("index"),f=e.UseUnevaluated()?yr(l,c):l;return ea(r,St(s),["element","index"],f)}function ZU(t,e,n,r){const s=la(n)?n.prefixItems.length:0;return gn(r,s,(l,c)=>Ee(t,e,n.items,l)&&e.AddIndex(c))}function JU(t,e,n,r,s,l){const c=la(s)?s.prefixItems.length:0;return yn(l,c,(f,m)=>{const p=`${n}/items`,g=`${r}/${m}`;return Pe(t,e,p,g,s.items,f)&&e.AddIndex(m)})}function WU(t,e,n,r){return Qb(n)?VU(t,e,n,r):QU(t,e,n,r)}function tk(t,e,n,r){return Qb(n)?KU(t,e,n,r):ZU(t,e,n,r)}function ek(t,e,n,r,s,l){return Qb(s)?XU(t,e,n,r,s,l):JU(t,e,n,r,s,l)}function R$(t){return Rl(t)}function nk(t,e,n,r){if(!R$(n))return St(!0);const[s,l]=[bn(),bn()],c=ne(Dt(r,"reduce"),[ur([s,l],rm(Oe(t,e,n.contains,l),C0(s),s)),St(0)]);return El(c,St(n.maxContains))}function O$(t,e,n,r){if(!R$(n))return!0;const s=r.reduce((l,c)=>Ee(t,e,n.contains,c)?++l:l,0);return hi(s,n.maxContains)}function rk(t,e,n,r,s,l){const c=_l(s)?s.minContains:1;return O$(t,e,s,l)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:c,maxContains:s.maxContains}})}function ok(t,e,n,r){return El(r,St(n.maximum))}function N$(t,e,n,r){return hi(r,n.maximum)}function ik(t,e,n,r,s,l){return N$(t,e,s,l)||e.AddError({keyword:"maximum",schemaPath:n,instancePath:r,params:{comparison:"<=",limit:s.maximum}})}function sk(t,e,n,r){return El(Dt(r,"length"),St(n.maxItems))}function _$(t,e,n,r){return hi(r.length,n.maxItems)}function ak(t,e,n,r,s,l){return _$(t,e,s,l)||e.AddError({keyword:"maxItems",schemaPath:n,instancePath:r,params:{limit:s.maxItems}})}function lk(t,e,n,r){return L3(r,St(n.maxLength))}function D$(t,e,n,r){return O2(r,n.maxLength)}function uk(t,e,n,r,s,l){return D$(t,e,s,l)||e.AddError({keyword:"maxLength",schemaPath:n,instancePath:r,params:{limit:s.maxLength}})}function ck(t,e,n,r){return El(Dt(na(r),"length"),St(n.maxProperties))}function j$(t,e,n,r){return hi(yt(r).length,n.maxProperties)}function fk(t,e,n,r,s,l){return j$(t,e,s,l)||e.AddError({keyword:"maxProperties",schemaPath:n,instancePath:r,params:{limit:s.maxProperties}})}function I$(t){return Rl(t)}function dk(t,e,n,r){if(!I$(n))return St(!0);const[s,l]=[bn(),bn()],c=ne(Dt(r,"reduce"),[ur([s,l],rm(Oe(t,e,n.contains,l),C0(s),s)),St(0)]);return nm(c,St(n.minContains))}function L$(t,e,n,r){if(!I$(n))return!0;const s=r.reduce((l,c)=>Ee(t,e,n.contains,c)?++l:l,0);return Sl(s,n.minContains)}function mk(t,e,n,r,s,l){return L$(t,e,s,l)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:s.minContains}})}function hk(t,e,n,r){return nm(r,St(n.minimum))}function z$(t,e,n,r){return Sl(r,n.minimum)}function pk(t,e,n,r,s,l){return z$(t,e,s,l)||e.AddError({keyword:"minimum",schemaPath:n,instancePath:r,params:{comparison:">=",limit:s.minimum}})}function gk(t,e,n,r){return nm(Dt(r,"length"),St(n.minItems))}function B$(t,e,n,r){return Sl(r.length,n.minItems)}function yk(t,e,n,r,s,l){return B$(t,e,s,l)||e.AddError({keyword:"minItems",schemaPath:n,instancePath:r,params:{limit:s.minItems}})}function bk(t,e,n,r){return I3(r,St(n.minLength))}function U$(t,e,n,r){return N2(r,n.minLength)}function vk(t,e,n,r,s,l){return U$(t,e,s,l)||e.AddError({keyword:"minLength",schemaPath:n,instancePath:r,params:{limit:s.minLength}})}function Sk(t,e,n,r){return nm(Dt(na(r),"length"),St(n.minProperties))}function k$(t,e,n,r){return Sl(yt(r).length,n.minProperties)}function Ek(t,e,n,r,s,l){return k$(t,e,s,l)||e.AddError({keyword:"minProperties",schemaPath:n,instancePath:r,params:{limit:s.minProperties}})}function xk(t,e,n,r){return B3(r,St(n.multipleOf))}function P$(t,e,n,r){return M2(r,n.multipleOf)}function wk(t,e,n,r,s,l){return P$(t,e,s,l)||e.AddError({keyword:"multipleOf",schemaPath:n,instancePath:r,params:{multipleOf:s.multipleOf}})}function Tk(t,e,n,r){return km(t,e,[n.not],r,An(lr(Dt("results","length"),St(1))))}function Ck(t,e,n,r){return An(Oe(t,e,n.not,r))}function Ak(t,e,n,r){return e.UseUnevaluated()?Tk(t,e,n,r):Ck(t,e,n,r)}function H$(t,e,n,r){const s=new Si;return!Ee(t,s,n.not,r)&&e.Merge([s])}function $k(t,e,n,r,s,l){return H$(t,e,s,l)||e.AddError({keyword:"not",schemaPath:n,instancePath:r,params:{}})}function Mk(t,e,n,r){return km(t,e,n.oneOf,r,lr(Dt("results","length"),St(1)))}function Rk(t,e,n,r){const s=z3(n.oneOf.map(c=>Oe(t,e,c,r))),l=ne(Dt(s,"reduce"),[ur(["count","result"],rm(lr("result",St(!0)),C0("count"),"count")),St(0)]);return lr(l,St(1))}function Ok(t,e,n,r){return e.UseUnevaluated()?Mk(t,e,n,r):Rk(t,e,n,r)}function Nk(t,e,n,r){const s=n.oneOf.reduce((l,c)=>{const f=new Si;return Ee(t,f,c,r)?[...l,f]:l},[]);return M(s.length,1)&&e.Merge(s)}function _k(t,e,n,r,s,l){const c=[],f=[],m=s.oneOf.reduce((g,b,E)=>{const S=new Ei,T=`${n}/oneOf/${E}`,w=Pe(t,S,T,r,b,l);return w&&f.push(E),w||c.push(S),w?[...g,S]:g},[]),p=M(m.length,1)&&e.Merge(m);return!p&&M(f.length,0)&&c.forEach(g=>g.GetErrors().forEach(b=>e.AddError(b))),p||e.AddError({keyword:"oneOf",schemaPath:n,instancePath:r,params:{passingSchemas:f}})}function Dk(t,e,n,r){const s=ua(jt(n.pattern)?new RegExp(n.pattern):n.pattern);return ne(Dt(s,"test"),[r])}function F$(t,e,n,r){return(jt(n.pattern)?new RegExp(n.pattern):n.pattern).test(r)}function jk(t,e,n,r,s,l){return F$(t,e,s,l)||e.AddError({keyword:"pattern",schemaPath:n,instancePath:r,params:{pattern:s.pattern}})}function Ik(t,e,n,r){return En(Qe(n.patternProperties).map(([s,l])=>{const[c,f]=[bn(),bn()],m=ua(new RegExp(s)),p=An(ne(Dt(m,"test"),[c])),g=Oe(t,e,l,f),b=e.AddKey(c),E=e.UseUnevaluated()?ve(p,yr(g,b)):ve(p,g);return ea(U2(r),St(0),[`[${c}, ${f}]`,"_"],E)}))}function Lk(t,e,n,r){return gn(Qe(n.patternProperties),0,([s,l])=>{const c=new RegExp(s);return gn(Qe(r),0,([f,m])=>!c.test(f)||Ee(t,e,l,m)&&e.AddKey(f))})}function zk(t,e,n,r,s,l){return yn(Qe(s.patternProperties),0,([c,f])=>{const m=`${n}/patternProperties/${c}`,p=new RegExp(c);return yn(Qe(l),0,([g,b])=>{const E=`${r}/${g}`;return!p.test(g)||Pe(t,e,m,E,f,b)&&e.AddKey(g)})})}function Bk(t,e,n,r){return En(n.prefixItems.map((s,l)=>{const c=El(Dt(r,"length"),St(l)),f=Oe(t,e,s,`${r}[${l}]`),m=e.AddIndex(St(l)),p=e.UseUnevaluated()?yr(f,m):f;return ve(c,p)}))}function Uk(t,e,n,r){return M(r.length,0)||gn(n.prefixItems,0,(s,l)=>hi(r.length,l)||Ee(t,e,s,r[l])&&e.AddIndex(l))}function kk(t,e,n,r,s,l){return M(l.length,0)||yn(s.prefixItems,0,(c,f)=>{const m=`${n}/prefixItems/${f}`,p=`${r}/${f}`;return hi(l.length,f)||Pe(t,e,m,p,c,l[f])&&e.AddIndex(f)})}function ov(t,e){return t.includes(e)||hc().exactOptionalPropertyTypes}function Pk(t,e){return Ay(Dt(t,e))}function q$(t,e){return ye(t[e])}function Hk(t,e,n,r){const s=ps(n)?n.required:[],l=Qe(n.properties).map(([c,f])=>{const m=An(Ks(r,St(c))),p=Oe(t,e,f,Dt(r,c)),g=e.AddKey(St(c)),b=e.UseUnevaluated()?yr(p,g):p,E=s.includes(c)?b:ve(m,b);return ov(s,c)?E:ve(Pk(r,c),E)});return En(l)}function Fk(t,e,n,r){const s=ps(n)?n.required:[];return gn(Qe(n.properties),0,([c,f])=>{const m=!at(r,c)||Ee(t,e,f,r[c])&&e.AddKey(c);return ov(s,c)?m:q$(r,c)||m})}function qk(t,e,n,r,s,l){const c=ps(s)?s.required:[];return yn(Qe(s.properties),0,([m,p])=>{const g=`${n}/properties/${m}`,b=`${r}/${m}`,E=()=>!at(l,m)||Pe(t,e,g,b,p,l[m])&&e.AddKey(m);return ov(c,m)?E():q$(l,m)||E()})}function Gk(t,e,n,r){const[s,l]=[bn(),bn()];return ea(na(r),St(0),[s,l],Oe(t,e,n.propertyNames,s))}function Yk(t,e,n,r){return gn(yt(r),0,(s,l)=>Ee(t,e,n.propertyNames,s))}function Vk(t,e,n,r,s,l){const c=[];return yn(yt(l),0,(m,p)=>{const g=`${r}/${m}`,b=`${n}/propertyNames`,E=new Ei,S=Pe(t,E,b,g,s.propertyNames,m);return S||c.push(m),S})||e.AddError({keyword:"propertyNames",schemaPath:n,instancePath:r,params:{propertyNames:c}})}function Kk(t,e,n,r){const s=t.RecursiveRef(n.$recursiveRef)??!1;return Pm(t,e,s,r)}function Xk(t,e,n,r){const s=t.RecursiveRef(n.$recursiveRef)??!1;return _e(s)&&Ee(t,e,s,r)}function Qk(t,e,n,r,s,l){const c=t.RecursiveRef(s.$recursiveRef)??!1;return _e(c)&&Pe(t,e,"#",r,c,l)}function Zk(t,e,n,r){const s=ur(["context","value"],Pm(t,e,n,"value")),l=ur(["context","value"],om([oi("nextContext",w0("CheckContext",[])),oi("result",ne(s,["nextContext","value"])),P2("result",e.Merge("[nextContext]")),im("result")]));return ne(l,["context",r])}function Jk(t,e,n,r){return Pm(t,e,n,r)}function Wk(t,e,n,r){const s=t.Ref(n.$ref)??!1;return e.UseUnevaluated()?Zk(t,e,s,r):Jk(t,e,s,r)}function tP(t,e,n,r){const s=t.Ref(n.$ref)??!1,l=new Si,c=_e(s)&&Ee(t,l,s,r);return c&&e.Merge([l]),c}function eP(t,e,n,r,s,l){const c=t.Ref(s.$ref)??!1,f=new Ei,m=_e(c)&&Pe(t,f,"#",r,c,l);return m&&e.Merge([f]),m||f.GetErrors().forEach(p=>e.AddError(p)),m}function nP(t,e,n,r){return En(n.required.map(s=>Ks(r,St(s))))}function rP(t,e,n,r){return gn(n.required,0,s=>at(r,s))}function oP(t,e,n,r,s,l){const c=[];return yn(s.required,0,m=>{const p=at(l,m);return p||c.push(m),p})||e.AddError({keyword:"required",schemaPath:n,instancePath:r,params:{requiredProperties:c}})}function G$(t,e,n,r){return M(n,"object")?j2(r):M(n,"array")?Id(r):M(n,"boolean")?M3(r):M(n,"integer")?R3(r):M(n,"number")?D2(r):M(n,"null")?N3(r):M(n,"string")?L2(r):M(n,"asyncIterator")?$3(r):M(n,"bigint")?_2(r):M(n,"constructor")?j3(r):M(n,"function")?D3(r):M(n,"iterator")?O3(r):M(n,"symbol")?_3(r):M(n,"undefined")||M(n,"void")?Ay(r):St(!0)}function iv(t,e,n,r,s){return M(n,"object")?mi(s):M(n,"array")?xt(s):M(n,"boolean")?Fe(s):M(n,"integer")?tm(s):M(n,"number")?Kt(s):M(n,"null")?Vn(s):M(n,"string")?jt(s):M(n,"asyncIterator")?A2(s):M(n,"bigint")?Ne(s):M(n,"constructor")?v0(s):M(n,"function")?ai(s):M(n,"iterator")?$2(s):M(n,"symbol")?S0(s):M(n,"undefined")||M(n,"void")?ye(s):!0}function iP(t,e,n,r){return T0(n.map(s=>G$(t,e,s,r)))}function Y$(t,e,n,r,s){return n.some(l=>iv(t,e,l,r,s))}function sP(t,e,n,r){return xt(n.type)?iP(t,e,n.type,r):G$(t,e,n.type,r)}function aP(t,e,n,r){return xt(n.type)?Y$(t,e,n.type,n,r):iv(t,e,n.type,n,r)}function lP(t,e,n,r,s,l){return(xt(s.type)?Y$(t,e,s.type,s,l):iv(t,e,s.type,s,l))||e.AddError({keyword:"type",schemaPath:n,instancePath:r,params:{type:s.type}})}function uP(t,e,n,r){const[s,l]=[bn(),bn()],c=ne(Dt("context","GetIndices"),[]),f=ne(Dt("indices","has"),[s]),m=Oe(t,e,n.unevaluatedItems,l),p=ne(Dt("context","AddIndex"),[s]),g=ea(r,St(0),[l,s],yr(ve(f,m),p));return ne(ur(["context"],om([oi("indices",c),im(g)])),["context"])}function cP(t,e,n,r){const s=e.GetIndices();return gn(r,0,(l,c)=>(s.has(c)||Ee(t,e,n.unevaluatedItems,l))&&e.AddIndex(c))}function fP(t,e,n,r,s,l){const c=e.GetIndices(),f=[];return yn(l,0,(p,g)=>{const b=new Ei,E=(c.has(g)||Pe(t,b,n,r,s.unevaluatedItems,p))&&e.AddIndex(g);return E||f.push(g),E})||e.AddError({keyword:"unevaluatedItems",schemaPath:n,instancePath:r,params:{unevaluatedItems:f}})}function dP(t,e,n,r){const[s,l]=[bn(),bn()],c=ne(Dt("context","GetKeys"),[]),f=ne(Dt("keys","has"),[s]),m=ne(Dt("context","AddKey"),[s]),p=Oe(t,e,n.unevaluatedProperties,l),g=ea(U2(r),St(0),[`[${s}, ${l}]`,"_"],ve(f,yr(p,m)));return ne(ur(["context"],om([oi("keys",c),im(g)])),["context"])}function mP(t,e,n,r){const s=e.GetKeys();return gn(Qe(r),0,([l,c])=>s.has(l)||Ee(t,e,n.unevaluatedProperties,c)&&e.AddKey(l))}function hP(t,e,n,r,s,l){const c=e.GetKeys(),f=[];return yn(Qe(l),0,([p,g])=>{const b=new Ei,E=c.has(p)||Pe(t,b,n,r,s.unevaluatedProperties,g)&&e.AddKey(p);return E||f.push(p),E})||e.AddError({keyword:"unevaluatedProperties",schemaPath:n,instancePath:r,params:{unevaluatedProperties:f}})}function sv(t){return!M(t.uniqueItems,!1)}function pP(t,e,n,r){if(!sv(n))return St(!0);const s=Dt(w0("Set",[ne(Dt(r,"map"),[Dt("Hashing","Hash")])]),"size"),l=Dt(r,"length");return lr(s,l)}function gP(t,e,n,r){if(!sv(n))return!0;const s=new Set(r.map(rc)).size,l=r.length;return M(s,l)}function yP(t,e,n,r,s,l){if(!sv(s))return!0;const c=new Set,f=l.reduce((p,g,b)=>{const E=rc(g);return c.has(E)?[...p,b]:(c.add(E),p)},[]);return M(f.length,0)||e.AddError({keyword:"uniqueItems",schemaPath:n,instancePath:r,params:{duplicateItems:f}})}function ic(t,e){return Um(t)&&(xt(t.type)&&t.type.includes(e)||M(t.type,e))}function bP(t){return ic(t,"object")}function vP(t){return No(t)&&(Ml(t)||Mm(t)||Rm(t)||Om(t)||jl(t)||Dl(t)||Bm(t)||_c(t)||Lm(t)||ps(t)||Lc(t))}function SP(t){return ic(t,"array")}function EP(t){return No(t)&&($m(t)||Nl(t)||Rl(t)||Dm(t)||jm(t)||_l(t)||Oc(t)||la(t)||Ic(t)||jc(t))}function xP(t){return ic(t,"string")}function wP(t){return No(t)&&(Nc(t)||Im(t)||Rc(t)||Dc(t))}function TP(t){return ic(t,"number")||ic(t,"bigint")}function CP(t){return No(t)&&(aa(t)||_m(t)||Nm(t)||sa(t)||zm(t))}function Oe(t,e,n,r){t.Push(n);const s=[];if(Am(n))return EU(t,e,n);if(Um(n)&&s.push(sP(t,e,n,r)),vP(n)){const c=[];ps(n)&&c.push(nP(t,e,n,r)),Ml(n)&&c.push(lU(t,e,n,r)),Mm(n)&&c.push($U(t,e,n,r)),Rm(n)&&c.push(OU(t,e,n,r)),Om(n)&&c.push(DU(t,e,n,r)),Dl(n)&&c.push(Ik(t,e,n,r)),jl(n)&&c.push(Hk(t,e,n,r)),Bm(n)&&c.push(Gk(t,e,n,r)),_c(n)&&c.push(Sk(t,e,n,r)),Lm(n)&&c.push(ck(t,e,n,r));const f=En(c),m=ve(An(j2(r)),f);s.push(bP(n)?f:m)}if(EP(n)){const c=[];$m(n)&&c.push(eU(t,e,n,r)),Rl(n)&&c.push(CU(t,e,n,r)),Nl(n)&&c.push(WU(t,e,n,r)),Dm(n)&&c.push(nk(t,e,n,r)),jm(n)&&c.push(sk(t,e,n,r)),_l(n)&&c.push(dk(t,e,n,r)),Oc(n)&&c.push(gk(t,e,n,r)),la(n)&&c.push(Bk(t,e,n,r)),jc(n)&&c.push(pP(t,e,n,r));const f=En(c),m=ve(An(Id(r)),f);s.push(SP(n)?f:m)}if(wP(n)){const c=[];Rc(n)&&c.push(HU(t,e,n,r)),Im(n)&&c.push(lk(t,e,n,r)),Nc(n)&&c.push(bk(t,e,n,r)),Dc(n)&&c.push(Dk(t,e,n,r));const f=En(c),m=ve(An(L2(r)),f);s.push(xP(n)?f:m)}if(CP(n)){const c=[];Nm(n)&&c.push(BU(t,e,n,r)),sa(n)&&c.push(kU(t,e,n,r)),_m(n)&&c.push(ok(t,e,n,r)),aa(n)&&c.push(hk(t,e,n,r)),zm(n)&&c.push(xk(t,e,n,r));const f=En(c),m=ve(An(ve(D2(r),_2(r))),f);s.push(TP(n)?f:m)}Wb(n)&&s.push(Kk(t,e,n,r)),tv(n)&&s.push(Wk(t,e,n,r)),Hb(n)&&s.push(K9(t,e,n,r)),Yb(n)&&s.push(wU(t,e,n,r)),Kb(n)&&s.push(LU(t,e,n,r)),Xb(n)&&s.push(qU(t,e,n,r)),Zb(n)&&s.push(Ak(t,e,n,r)),qb(n)&&s.push(mU(t,e,n,r)),Gb(n)&&s.push(bU(t,e,n,r)),Jb(n)&&s.push(Ok(t,e,n,r)),Ic(n)&&s.push(ve(An(Id(r)),uP(t,e,n,r))),Lc(n)&&s.push(ve(An(I2(r)),dP(t,e,n,r))),Fb(n)&&s.push(Z9(t,e,n,r));const l=En(s);return t.Pop(n),l}function Ee(t,e,n,r){t.Push(n);const s=Am(n)?E$(t,e,n):(!Um(n)||aP(t,e,n,r))&&(!(Mt(r)&&!xt(r))||(!ps(n)||rP(t,e,n,r))&&(!Ml(n)||uU(t,e,n,r))&&(!Mm(n)||MU(t,e,n,r))&&(!Rm(n)||NU(t,e,n,r))&&(!Om(n)||jU(t,e,n,r))&&(!Dl(n)||Lk(t,e,n,r))&&(!jl(n)||Fk(t,e,n,r))&&(!Bm(n)||Yk(t,e,n,r))&&(!_c(n)||k$(t,e,n,r))&&(!Lm(n)||j$(t,e,n,r)))&&(!xt(r)||(!$m(n)||nU(t,e,n,r))&&(!Rl(n)||T$(t,e,n,r))&&(!Nl(n)||tk(t,e,n,r))&&(!Dm(n)||O$(t,e,n,r))&&(!jm(n)||_$(t,e,n,r))&&(!_l(n)||L$(t,e,n,r))&&(!Oc(n)||B$(t,e,n,r))&&(!la(n)||Uk(t,e,n,r))&&(!jc(n)||gP(t,e,n,r)))&&(!jt(r)||(!Rc(n)||M$(t,e,n,r))&&(!Im(n)||D$(t,e,n,r))&&(!Nc(n)||U$(t,e,n,r))&&(!Dc(n)||F$(t,e,n,r)))&&(!(Kt(r)||Ne(r))||(!Nm(n)||A$(t,e,n,r))&&(!sa(n)||$$(t,e,n,r))&&(!_m(n)||N$(t,e,n,r))&&(!aa(n)||z$(t,e,n,r))&&(!zm(n)||P$(t,e,n,r)))&&(!Wb(n)||Xk(t,e,n,r))&&(!tv(n)||tP(t,e,n,r))&&(!Hb(n)||X9(t,e,n,r))&&(!Yb(n)||x$(t,e,n,r))&&(!Kb(n)||C$(t,e,n,r))&&(!Xb(n)||GU(t,e,n,r))&&(!Zb(n)||H$(t,e,n,r))&&(!qb(n)||hU(t,e,n,r))&&(!Gb(n)||vU(t,e,n,r))&&(!Jb(n)||Nk(t,e,n,r))&&(!Ic(n)||!xt(r)||cP(t,e,n,r))&&(!Lc(n)||!Mt(r)||mP(t,e,n,r))&&(!Fb(n)||J9(t,e,n,r));return t.Pop(n),s}function Pe(t,e,n,r,s,l){t.Push(s);const c=Am(s)?xU(t,e,n,r,s):!!(+(!Um(s)||lP(t,e,n,r,s,l))&+(!(Mt(l)&&!xt(l))||!!(+(!ps(s)||oP(t,e,n,r,s,l))&+(!Ml(s)||cU(t,e,n,r,s,l))&+(!Mm(s)||RU(t,e,n,r,s,l))&+(!Rm(s)||_U(t,e,n,r,s,l))&+(!Om(s)||IU(t,e,n,r,s,l))&+(!Dl(s)||zk(t,e,n,r,s,l))&+(!jl(s)||qk(t,e,n,r,s,l))&+(!Bm(s)||Vk(t,e,n,r,s,l))&+(!_c(s)||Ek(t,e,n,r,s,l))&+(!Lm(s)||fk(t,e,n,r,s,l))))&+(!xt(l)||!!(+(!$m(s)||rU(t,e,n,r,s,l))&+(!Rl(s)||AU(t,e,n,r,s,l))&+(!Nl(s)||ek(t,e,n,r,s,l))&+(!Dm(s)||rk(t,e,n,r,s,l))&+(!jm(s)||ak(t,e,n,r,s,l))&+(!_l(s)||mk(t,e,n,r,s,l))&+(!Oc(s)||yk(t,e,n,r,s,l))&+(!la(s)||kk(t,e,n,r,s,l))&+(!jc(s)||yP(t,e,n,r,s,l))))&+(!jt(l)||!!(+(!Rc(s)||FU(t,e,n,r,s,l))&+(!Im(s)||uk(t,e,n,r,s,l))&+(!Nc(s)||vk(t,e,n,r,s,l))&+(!Dc(s)||jk(t,e,n,r,s,l))))&+(!(Kt(l)||Ne(l))||!!(+(!Nm(s)||UU(t,e,n,r,s,l))&+(!sa(s)||PU(t,e,n,r,s,l))&+(!_m(s)||ik(t,e,n,r,s,l))&+(!aa(s)||pk(t,e,n,r,s,l))&+(!zm(s)||wk(t,e,n,r,s,l))))&+(!Wb(s)||Qk(t,e,n,r,s,l))&+(!tv(s)||eP(t,e,n,r,s,l))&+(!Hb(s)||Q9(t,e,n,r,s,l))&+(!Yb(s)||TU(t,e,n,r,s,l))&+(!Kb(s)||zU(t,e,n,r,s,l))&+(!Xb(s)||YU(t,e,n,r,s,l))&+(!Zb(s)||$k(t,e,n,r,s,l))&+(!qb(s)||pU(t,e,n,r,s,l))&+(!Gb(s)||SU(t,e,n,r,s,l))&+(!Jb(s)||_k(t,e,n,r,s,l))&+(!Ic(s)||!xt(l)||fP(t,e,n,r,s,l))&+(!Lc(s)||!Mt(l)||hP(t,e,n,r,s,l)))&&(!Fb(s)||W9(t,e,n,r,s,l));return t.Pop(s),c}const nc=new Map;function AP(t,e,n,r){return t.UseUnevaluated()?ne(`check_${n}`,["context",r]):ne(`check_${n}`,[r])}function $P(t,e,n,r){const s=Oe(t,e,n,"value");return e.UseUnevaluated()?oi(`check_${r}`,ur(["context","value"],s)):oi(`check_${r}`,ur(["value"],s))}function MP(){nc.clear()}function RP(){return[...nc.values()]}function Pm(t,e,n,r){const s=No(n)?rc({__baseURL:t.BaseURL().href,...n}):rc(n),l=AP(e,n,s,r);return nc.has(s)||(nc.set(s,""),nc.set(s,$P(t,e,n,s))),l}function OP(t,e){return Mt(e)?e[t]:void 0}function NP(t,e){return t.reduce((n,r)=>OP(r,n),e)}function _P(t){if(M(t.length,0))return[];const e=t.split("/").map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"));return e.length>0&&e[0]===""?e.slice(1):e}function DP(t,e){const n=_P(e);return NP(n,t)}function jP(t,e,n){if(t.$id===n.hash)return t;const r=new URL(t.$id,e.href),s=new URL(n.href,e.href);if(M(r.pathname,s.pathname))return n.hash.startsWith("#")?V$(t,e,n):t}function IP(t,e,n){const r=new URL(`#${t.$anchor}`,e.href),s=new URL(n.href,e.href);if(M(r.href,s.href))return t}function V$(t,e,n){return n.href.endsWith("#")?t:n.hash.startsWith("#")?DP(t,decodeURIComponent(n.hash.slice(1))):void 0}function LP(t,e,n){if(oc(t)){const r=jP(t,e,n);if(!ye(r))return r}if(Uy(t)){const r=IP(t,e,n);if(!ye(r))return r}return V$(t,e,n)}function zP(t,e,n){return t.reduce((r,s)=>{const l=av(s,e,n);return ye(l)?r:l},void 0)}function BP(t,e,n){return yt(t).reduce((r,s)=>{const l=av(t[s],e,n);return ye(l)?r:l},void 0)}function av(t,e,n){if(e=No(t)&&oc(t)?new URL(t.$id,e.href):e,No(t)){const r=LP(t,e,n);if(!ye(r))return r}if(xt(t))return zP(t,e,n);if(Mt(t))return BP(t,e,n)}function cd(t,e){const n=new URL("http://unknown"),r=oc(t)?new URL(t.$id,n.href):n,s=new URL(e,r.href);return av(t,r,s)}class Hm{constructor(e,n){this.context=e,this.schema=n,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,n)=>new URL(n.$id,e),new URL("http://unknown"))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){No(e)&&(oc(e)&&this.ids.push(e),Uy(e)&&this.anchors.push(e),Kg(e)&&this.recursiveAnchors.push(e),Yw(e)&&this.dynamicAnchors.push(e))}Pop(e){No(e)&&(oc(e)&&this.ids.pop(),Uy(e)&&this.anchors.pop(),Kg(e)&&this.recursiveAnchors.pop(),Yw(e)&&this.dynamicAnchors.pop())}FromContext(e){return at(this.context,e)?this.context[e]:void 0}FromRef(e){return e.startsWith("#")?cd(this.Base(),e):cd(this.schema,e)}Ref(e){return this.FromContext(e)??this.FromRef(e)}RecursiveRef(e){return Kg(this.Base())?cd(this.recursiveAnchors[0],e):cd(this.Base(),e)}}function UP(t){const e=t.Functions().join(`;
|
|
9
|
+
`),n=t.UseUnevaluated()?["const context = new CheckContext({}, {})",`return ${t.Call()}`]:[`return ${t.Call()}`];return`${e}; return (value) => { ${n.join("; ")} }`}function kP(t,e){return new globalThis.Function("CheckContext","Guard","Format","Hashing",t.External().identifier,e)(Si,T3,By,UD,t.External().variables)}function PP(t){const e=new Hm(t.Context(),t.Schema()),n=new Si;return r=>Ee(e,n,t.Schema(),r)}function HP(t,e){return O0()?kP(t,e):PP(t)}class FP{constructor(e,n,r,s,l,c){this.context=e,this.schema=n,this.external=r,this.functions=s,this.call=l,this.useUnevaluated=c}Context(){return this.context}Schema(){return this.schema}UseUnevaluated(){return this.useUnevaluated}External(){return this.external}Functions(){return this.functions}Call(){return this.call}Evaluate(){const e=UP(this),n=HP(this,e);return{IsEvaluated:O0(),Code:e,Check:n}}}function qP(...t){const[e,n]=rn(t,{2:(m,p)=>[m,p],1:m=>[{},m]});Y9(),MP();const r=new Hm(e,n),s=new G9(q9(e,n)),l=Pm(r,s,n,"value"),c=RP(),f=V9();return new FP(e,n,f,c,l,s.UseUnevaluated())}function GP(...t){const[e,n,r]=rn(t,{3:(c,f,m)=>[c,f,m],2:(c,f)=>[{},c,f]}),s=new Hm(e,n),l=new Si;return Ee(s,l,n,r)}function YP(...t){const[e,n,r]=rn(t,{3:(g,b,E)=>[g,b,E],2:(g,b)=>[{},g,b]}),s=hc(),l=HD(),c=[],f=new Hm(e,n),m=new v$(g=>{if(!Sl(c.length,s.maxErrors))return c.push({...g,message:l(g)})});return[Pe(f,m,"#","",n,r),c]}function Fr(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return GP(e,n,r)}function Fm(...t){const[e,n,r]=rn(t,{3:(c,f,m)=>[c,f,m],2:(c,f)=>[{},c,f]}),[s,l]=YP(e,n,r);return l}class lv extends Error{constructor(e,n,r){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:r,value:n},writable:!1,configurable:!1,enumerable:!1})}}function VP(t,e,n){return xt(n)?n.map(r=>io(t,e.items,r)):n}function KP(t,e,n){return e.Clean(n)}function XP(t,e,n){return io({...t,...e.$defs},cr(e.$ref),n)}function QP(t){const e=at(t,"unevaluatedProperties")?{additionalProperties:t.unevaluatedProperties}:{},n=Mc(t);return $e(n)?Mb(n,e):n}function ZP(t,e,n){const r=QP(e);return io(t,r,n)}function K$(t){return at(t,"additionalProperties")?t.additionalProperties:void 0}function JP(t,e,n){if(!Mt(n)||xt(n))return n;const r=K$(e);for(const s of yt(n)){if(at(e.properties,s)){n[s]=io(t,e.properties[s],n[s]);continue}if(Fe(r)&&M(r,!0)||Ut(r)&&Fr(t,r,n[s])){n[s]=io(t,r,n[s]);continue}delete n[s]}return n}function WP(t,e,n){if(!Mt(n))return n;const r=K$(e),[s,l]=[new RegExp(ds(e)),Lo(e)];for(const c of yt(n)){if(s.test(c)){n[c]=io(t,l,n[c]);continue}if(Fe(r)&&M(r,!0)||Ut(r)&&Fr(t,r,n[c])){n[c]=io(t,r,n[c]);continue}delete n[c]}return n}function tH(t,e,n){return at(t,e.$ref)?io(t,t[e.$ref],n):n}function eH(t,e,n){if(!xt(n))return n;const r=Math.min(n.length,e.items.length);for(let s=0;s<r;s++)n[s]=io(t,e.items[s],n[s]);return vl(n.length,r)?n.slice(0,r):n}function nH(t){const e={};for(const n of Object.getOwnPropertyNames(t))e[n]=Gn(t[n]);for(const n of Object.getOwnPropertySymbols(t))e[n]=Gn(t[n]);return e}function rH(t){return R2(t)?t:nH(t)}function oH(t){return t.map(e=>Gn(e))}function iH(t){return t.slice()}function sH(t){return new Map(Gn([...t.entries()]))}function aH(t){return new Set(Gn([...t.values()]))}function Gn(t){return H2(t)?iH(t):G3(t)?sH(t):q3(t)?aH(t):xt(t)?oH(t):Mt(t)?rH(t):t}function lH(t,e,n){for(const r of e.anyOf){const s=io(t,r,Gn(n));if(Fr(t,r,s))return s}return n}function io(t,e,n){return nn(e)?VP(t,e,n):xl(e)?KP(t,e,n):Nn(e)?XP(t,e,n):xe(e)?ZP(t,e,n):$e(e)?JP(t,e,n):vr(e)?WP(t,e,n):On(e)?tH(t,e,n):qe(e)?eH(t,e,n):Pt(e)?lH(t,e,n):n}function qm(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return io(e,n,r)}function uH(t,e,n){return xt(n)?n.map(r=>mo(t,e.items,r)):n}function cH(t,e,n){return e.Convert(n)}function Er(t){return Mt(t)&&at(t,"value")}function $t(t){return{value:t}}function fH(t){return $t(t)}function dH(t){return M(t,!0)?$t(BigInt(1)):$t(BigInt(0))}function mH(t){return $t(BigInt(Math.trunc(t)))}function hH(t){return $t(BigInt(0))}const pH=/^-?(0|[1-9]\d*)n$/,gH=/^-?(0|[1-9]\d*)\.\d+$/,yH=/^-?(0|[1-9]\d*)$/;function bH(t){return pH.test(t)}function vH(t){return gH.test(t)}function SH(t){return yH.test(t)}function EH(t){const e=t.toLowerCase();return bH(t)?$t(BigInt(t.slice(0,t.length-1))):vH(t)?$t(BigInt(t.split(".")[0])):SH(t)?$t(BigInt(t)):M(e,"false")?$t(BigInt(0)):M(e,"true")?$t(BigInt(1)):void 0}function xH(t){return $t(BigInt(0))}function uv(t){return Ne(t)?fH(t):Fe(t)?dH(t):Kt(t)?mH(t):Vn(t)?hH():jt(t)?EH(t):ye(t)?xH():void 0}function wH(t){return M(t,BigInt(0))?$t(!1):M(t,BigInt(1))?$t(!0):void 0}function TH(t){return $t(t)}function CH(t){return M(t,0)?$t(!1):M(t,1)?$t(!0):void 0}function AH(t){return $t(!1)}function $H(t){return M(t.toLowerCase(),"false")?$t(!1):M(t.toLowerCase(),"true")?$t(!0):M(t,"0")?$t(!1):M(t,"1")?$t(!0):void 0}function MH(t){return $t(!1)}function X$(t){return Ne(t)?wH(t):Fe(t)?TH(t):Kt(t)?CH(t):Vn(t)?AH():jt(t)?$H(t):ye(t)?MH():void 0}function RH(t){return M(t,BigInt(0))?$t(null):void 0}function OH(t){return M(t,!1)?$t(null):void 0}function NH(t){return M(t,0)?$t(null):void 0}function _H(t){return $t(null)}function DH(t){const e=t.toLowerCase();return M(e,"undefined")||M(e,"null")||M(t,"")||M(t,"0")?$t(null):void 0}function jH(t){return $t(null)}function IH(t){return Ne(t)?RH(t):Fe(t)?OH(t):Kt(t)?NH(t):Vn(t)?_H():jt(t)?DH(t):ye(t)?jH():void 0}const LH=BigInt(Number.MAX_SAFE_INTEGER),zH=BigInt(Number.MIN_SAFE_INTEGER);function BH(t){return t<=LH&&t>=zH}function Q$(t){return BH(t)?$t(Number(t)):void 0}function UH(t){return $t(t?1:0)}function kH(t){return $t(t)}function PH(t){return $t(0)}function HH(t){const e=+t;if(Kt(e))return $t(e);const n=t.toLowerCase();if(M(n,"false"))return $t(0);if(M(n,"true"))return $t(1);const r=uv(t);return Er(r)?Q$(r.value):void 0}function FH(t){return $t(0)}function cv(t){return Ne(t)?Q$(t):Fe(t)?UH(t):Kt(t)?kH(t):Vn(t)?PH():jt(t)?HH(t):ye(t)?FH():void 0}function qH(t){return $t(t.toString())}function GH(t){return $t(t.toString())}function YH(t){return $t(t.toString())}function VH(t){return $t("null")}function KH(t){return $t(t)}function XH(t){return $t("")}function Z$(t){return Ne(t)?qH(t):Fe(t)?GH(t):Kt(t)?YH(t):Vn(t)?VH():jt(t)?KH(t):ye(t)?XH():void 0}function QH(t){return M(t,BigInt(0))?$t(void 0):void 0}function ZH(t){return M(t,!1)?$t(void 0):void 0}function JH(t){return M(t,0)?$t(void 0):void 0}function WH(t){return $t(void 0)}function t7(t){const e=t.toLowerCase();return M(e,"undefined")||M(e,"null")||M(t,"")||M(t,"0")?$t(void 0):void 0}function e7(t){return $t(void 0)}function J$(t){return Ne(t)?QH(t):Fe(t)?ZH(t):Kt(t)?JH(t):Vn(t)?WH():jt(t)?t7(t):ye(t)?e7():void 0}function n7(t,e,n){if(Ne(n))return n;const r=uv(n);return Er(r)?r.value:n}function r7(t,e,n){if(Fe(n))return n;const r=X$(n);return Er(r)?r.value:n}function o7(t,e,n){return mo({...t,...e.$defs},cr(e.$ref),n)}function W$(t,e,n){if(e.anyOf.some(c=>Fr(t,c,n)))return n;const l=e.anyOf.map(c=>mo(t,c,Gn(n))).find(c=>Fr(t,e,c));return ye(l)?n:l}function i7(t,e,n){const r=nb(e);return W$(t,r,n)}function s7(t,e,n){if(tm(n))return n;const r=cv(n);return Er(r)?Math.trunc(r.value):n}function a7(t,e,n){const r=Mc(e);return mo(t,r,n)}function l7(t,e,n){const r=uv(n);return Er(r)&&M(e.const,r.value)?r.value:n}function u7(t,e,n){const r=X$(n);return Er(r)&&M(e.const,r.value)?r.value:n}function c7(t,e,n){const r=cv(n);return Er(r)&&M(e.const,r.value)?r.value:n}function f7(t,e,n){const r=Z$(n);return Er(r)&&M(e.const,r.value)?r.value:n}function d7(t,e,n){return M(e.const,n)?n:JD(e)?l7(t,e,n):WD(e)?u7(t,e,n):j0(e)?c7(t,e,n):I0(e)?f7(t,e,n):He()}function m7(t,e,n){if(Vn(n))return n;const r=IH(n);return Er(r)?r.value:n}function h7(t,e,n){if(Kt(n))return n;const r=cv(n);return Er(r)?r.value:n}function tM(t,e,n,r){const s=yt(r);for(const[l,c]of e)for(const f of s)l.test(f)||(r[f]=mo(t,n,r[f]));return r}function fv(t,e,n){return qn(t)&&ye(n[e])}function p7(t,e,n){const r=E0(e.properties),s=yt(n);for(const[l,c]of r)for(const f of s)!l.test(f)||fv(c,f,n)||(n[f]=mo(t,c,n[f]));return at(e,"additionalProperties")&&Mt(e.additionalProperties)?tM(t,r,e.additionalProperties,n):n}function g7(t,e,n){return mi(n)?p7(t,e,n):n}function y7(t,e,n){const r=E0(e.patternProperties),s=yt(n);for(const[l,c]of r)for(const f of s)l.test(f)&&(n[f]=mo(t,c,n[f]));return at(e,"additionalProperties")&&Mt(e.additionalProperties)?tM(t,r,e.additionalProperties,n):n}function b7(t,e,n){return mi(n)?y7(t,e,n):n}function v7(t,e,n){return at(t,e.$ref)?mo(t,t[e.$ref],n):n}function S7(t,e,n){if(jt(n))return n;const r=Z$(n);return Er(r)?r.value:n}function E7(t,e,n){const r=bi(e.pattern);return mo(t,r,n)}function x7(t,e,n){if(!xt(n))return n;for(let r=0;r<Math.min(e.items.length,n.length);r++)n[r]=mo(t,e.items[r],n[r]);return n}function w7(t,e,n){if(ye(n))return n;const r=J$(n);return Er(r)?r.value:n}function T7(t,e,n){if(ye(n))return n;const r=J$(n);return Er(r)?void 0:n}function mo(t,e,n){return nn(e)?uH(t,e,n):xl(e)?cH(t,e,n):oa(e)?n7(t,e,n):gi(e)?r7(t,e,n):Nn(e)?o7(t,e,n):uo(e)?i7(t,e,n):co(e)?s7(t,e,n):xe(e)?a7(t,e,n):Ie(e)?d7(t,e,n):wl(e)?m7(t,e,n):br(e)?h7(t,e,n):$e(e)?g7(t,e,n):vr(e)?b7(t,e,n):On(e)?v7(t,e,n):Hn(e)?S7(t,e,n):Yr(e)?E7(t,e,n):qe(e)?x7(t,e,n):Tl(e)?w7(t,e,n):Pt(e)?W$(t,e,n):ms(e)?T7(t,e,n):n}function Gm(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return mo(e,n,r)}function C7(t,e,n){if(!xt(n))return n;for(let r=0;r<n.length;r++)n[r]=Br(t,e.items,n[r]);return n}function A7(t,e,n){return e.Default(n)}function $7(t,e,n){return Br({...t,...e.$defs},cr(e.$ref),n)}function M7(t,e){return ye(e)?ai(t.default)?t.default():Gn(t.default):e}function R7(t,e,n){const r=Mc(e);return Br(t,r,n)}function O7(t,e,n){if(!Mt(n))return n;const r=yt(e.properties);for(const s of r){const l=Br(t,e.properties[s],n[s]);ye(l)&&(qn(e.properties[s])||!at(e.properties[s],"default"))||(n[s]=Br(t,e.properties[s],n[s]))}if(!Ml(e)||Fe(e.additionalProperties))return n;for(const s of yt(n))r.includes(s)||(n[s]=Br(t,e.additionalProperties,n[s]));return n}function N7(t,e,n){if(!Mt(n))return n;const[r,s]=[new RegExp(ds(e)),Lo(e)];for(const l of yt(n))r.test(l)&&Ol(s)&&(n[l]=Br(t,s,n[l]));if(!Ml(e))return n;for(const l of yt(n))r.test(l)||(n[l]=Br(t,e.additionalProperties,n[l]));return n}function _7(t,e,n){return at(t,e.$ref)?Br(t,t[e.$ref],n):n}function D7(t,e,n){if(!xt(n))return n;const[r,s]=[e.items,Math.max(e.items.length,n.length)];for(let l=0;l<s;l++)l<r.length&&(n[l]=Br(t,r[l],n[l]));return n}function j7(t,e,n){for(const r of e.anyOf){const s=Br(t,r,Gn(n));if(Fr(t,r,s))return s}return n}function Br(t,e,n){const r=Ol(e)?M7(e,n):n;return nn(e)?C7(t,e,r):xl(e)?A7(t,e,r):Nn(e)?$7(t,e,r):xe(e)?R7(t,e,r):$e(e)?O7(t,e,r):vr(e)?N7(t,e,r):On(e)?_7(t,e,r):qe(e)?D7(t,e,r):Pt(e)?j7(t,e,r):r}function Ym(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return Br(e,n,r)}function dv(t){return(...e)=>{const[n,r,s]=rn(e,{3:(l,c,f)=>[l,c,f],2:(l,c)=>[{},l,c]});return t.reduce((l,c)=>c(n,r,l),s)}}function I7(t,e,n){return e["~codec"].decode(n)}function L7(t,e,n){return e["~codec"].encode(n)}function _n(t,e,n,r){return mr(n)?M(t,"Decode")?I7(e,n,r):L7(e,n,r):r}function z7(t,e,n,r){if(!xt(r))return He();for(let s=0;s<r.length;s++)r[s]=wn(t,e,n.items,r[s]);return _n(t,e,n,r)}function B7(t,e,n,r){const s=_n(t,e,n,r);if(!xt(s))return s;for(let l=0;l<s.length;l++)s[l]=wn(t,e,n.items,s[l]);return s}function U7(t,e,n,r){return M(t,"Decode")?z7(t,e,n,r):B7(t,e,n,r)}function k7(t,e,n,r){return r=wn(t,{...e,...n.$defs},cr(n.$ref),r),_n(t,e,n,r)}function P7(t,e,n,r){for(const s of n.allOf)r=wn(t,e,s,r);return _n(t,e,n,r)}function H7(t,e,n,r){let s=_n(t,e,n,r);for(const l of n.allOf)s=wn(t,e,l,s);return s}function F7(t,e,n,r){return M(t,"Decode")?P7(t,e,n,r):H7(t,e,n,r)}function q7(t,e,n,r){if(!mi(r))return He();for(const s of yt(n.properties))!at(r,s)||fv(n.properties[s],s,r)||(r[s]=wn(t,e,n.properties[s],r[s]));return _n(t,e,n,r)}function G7(t,e,n,r){const s=_n(t,e,n,r);if(!mi(s))return s;for(const l of yt(n.properties))!at(s,l)||fv(n.properties[l],l,s)||(s[l]=wn(t,e,n.properties[l],s[l]));return s}function Y7(t,e,n,r){return M(t,"Decode")?q7(t,e,n,r):G7(t,e,n,r)}function V7(t,e,n,r){if(!mi(r))return He();const s=new RegExp(ds(n));for(const l of yt(r))s.test(l)||He(),r[l]=wn(t,e,Lo(n),r[l]);return _n(t,e,n,r)}function K7(t,e,n,r){const s=_n(t,e,n,r);if(!mi(s))return s;const l=new RegExp(ds(n));for(const c of yt(s))l.test(c)&&(s[c]=wn(t,e,Lo(n),s[c]));return s}function X7(t,e,n,r){return M(t,"Decode")?V7(t,e,n,r):K7(t,e,n,r)}function Q7(t,e,n,r){return r=at(e,n.$ref)?wn(t,e,e[n.$ref],r):r,_n(t,e,n,r)}function Z7(t,e,n,r){if(!xt(r))return He();for(let s=0;s<Math.min(n.items.length,r.length);s++)r[s]=wn(t,e,n.items[s],r[s]);return _n(t,e,n,r)}function J7(t,e,n,r){const s=_n(t,e,n,r);if(!xt(s))return r;for(let l=0;l<Math.min(n.items.length,s.length);l++)s[l]=wn(t,e,n.items[l],s[l]);return s}function W7(t,e,n,r){return M(t,"Decode")?Z7(t,e,n,r):J7(t,e,n,r)}function tF(t,e,n,r){for(const s of n.anyOf){if(!Fr(e,s,r))continue;const l=wn(t,e,s,r);return _n(t,e,n,l)}return He()}function eF(t,e,n,r){let s=_n(t,e,n,r);for(const l of n.anyOf){const c=wn(t,e,l,Gn(s));if(Fr(e,l,c))return c}return s}function nF(t,e,n,r){return M(t,"Decode")?tF(t,e,n,r):eF(t,e,n,r)}function wn(t,e,n,r){return nn(n)?U7(t,e,n,r):Nn(n)?k7(t,e,n,r):xe(n)?F7(t,e,n,r):$e(n)?Y7(t,e,n,r):vr(n)?X7(t,e,n,r):On(n)?Q7(t,e,n,r):qe(n)?W7(t,e,n,r):Pt(n)?nF(t,e,n,r):_n(t,e,n,r)}class rF extends lv{constructor(e,n){super("Decode",e,n)}}function oF(t,e,n){if(!Fr(t,e,n))throw new rF(n,Fm(t,e,n));return n}function iF(t,e,n){return wn("Decode",t,e,n)}const sF=dv([(t,e,n)=>Gn(n),(t,e,n)=>Ym(t,e,n),(t,e,n)=>Gm(t,e,n),(t,e,n)=>qm(t,e,n),(t,e,n)=>oF(t,e,n),(t,e,n)=>iF(t,e,n)]);function aF(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return sF(e,n,r)}class lF extends lv{constructor(e,n){super("Encode",e,n)}}function uF(t,e,n){if(!Fr(t,e,n))throw new lF(n,Fm(t,e,n));return n}function cF(t,e,n){return wn("Encode",t,e,n)}const fF=dv([(t,e,n)=>Gn(n),(t,e,n)=>cF(t,e,n),(t,e,n)=>Ym(t,e,n),(t,e,n)=>Gm(t,e,n),(t,e,n)=>qm(t,e,n),(t,e,n)=>uF(t,e,n)]);function dF(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return fF(e,n,r)}function mF(t,e){return mr(e)||gs(t,e.items)}function hF(t,e){return mr(e)||eM({...t,...e.$defs},cr(e.$ref))}function pF(t,e){return mr(e)||e.allOf.some(n=>gs(t,n))}function gF(t,e){return mr(e)||yt(e.properties).some(n=>gs(t,e.properties[n]))}function yF(t,e){return mr(e)||gs(t,Lo(e))}function eM(t,e){return Py.has(e.$ref)?!1:(Py.add(e.$ref),mr(e)||at(t,e.$ref)&&gs(t,t[e.$ref]))}function bF(t,e){return mr(e)||e.items.some(n=>gs(t,n))}function vF(t,e){return mr(e)||e.anyOf.some(n=>gs(t,n))}function gs(t,e){return nn(e)?mF(t,e):Nn(e)?hF(t,e):xe(e)?pF(t,e):$e(e)?gF(t,e):vr(e)?yF(t,e):On(e)?eM(t,e):qe(e)?bF(t,e):Pt(e)?vF(t,e):mr(e)}const Py=new Set;function SF(...t){const[e,n]=rn(t,{2:(r,s)=>[r,s],1:r=>[{},r]});return Py.clear(),gs(e,n)}class zc extends Error{constructor(e,n){super(n),this.type=e}}function EF(t,e){return ai(e.default)?e.default(e):Mt(e.default)?Gn(e.default):e.default}function xF(t,e){if(jc(e)&&!Ol(e))throw new zc(e,"Arrays with uniqueItems constraints must specify a default annotation");const n=Oc(e)?e.minItems:0;return Array.from({length:n},()=>xr(t,e.items))}async function*wF(){}function TF(t,e){return wF()}function CF(t,e){return e.Create()}function AF(t,e){return sa(e)?BigInt(e.exclusiveMinimum)+BigInt(1):aa(e)?BigInt(e.minimum):BigInt(0)}function $F(t,e){return!1}function MF(t,e){const n=xr(t,e.instanceType);return class{constructor(){Object.assign(this,n)}}}function RF(t,e){return xr({...t,...e.$defs},cr(e.$ref))}function OF(t,e){return xr(t,nb(e))}function NF(t,e){const n=xr(t,e.returnType);return()=>n}function _F(t,e){return sa(e)&&Kt(e.exclusiveMinimum)?e.exclusiveMinimum+1:aa(e)?e.minimum:0}function DF(t,e){return xr(t,Mc(e))}function*jF(){}function IF(t,e){return jF()}function LF(t,e){return e.const}function zF(t,e){throw new zc(e,"Cannot create TNever types")}function BF(t,e){return null}function UF(t,e){return sa(e)&&Kt(e.exclusiveMinimum)?e.exclusiveMinimum+1:aa(e)?e.minimum:0}function kF(t,e){return(ye(e.required)?[]:e.required).reduce((r,s)=>({...r,[s]:xr(t,e.properties[s])}),{})}function PF(t,e){return Promise.resolve(xr(t,e.item))}function HF(t,e){if(_c(e)&&!Ol(e))throw new zc(e,"Record with the minProperties constraint must have a default annotation");return{}}function FF(t,e){return at(t,e.$ref)?xr(t,t[e.$ref]):(()=>{throw new zc(e,"Unable to deref Ref")})()}function qF(t,e){if((Dc(e)||Rc(e))&&!Ol(e))throw Error("Strings with format or pattern constraints must specify default");const r=Nc(e)?e.minLength:0;return"".padEnd(r)}function GF(t,e){return Symbol()}function YF(t,e){const n=bi(e.pattern);if(Hn(n))throw new zc(e,"Unable to create TemplateLiteral due to infinite type expansion");return xr(t,n)}function VF(t,e){return Array.from({length:e.minItems},(n,r)=>xr(t,e.items[r]))}function KF(t,e){if(M(e.anyOf.length,0))throw Error("Unable to create Union with no variants");return xr(t,e.anyOf[0])}function xr(t,e){return Ol(e)?EF(t,e):nn(e)?xF(t,e):cs(e)?TF():xl(e)?CF(t,e):oa(e)?AF(t,e):gi(e)?$F():jo(e)?MF(t,e):Nn(e)?RF(t,e):uo(e)?OF(t,e):Io(e)?NF(t,e):co(e)?_F(t,e):xe(e)?DF(t,e):fs(e)?IF():Ie(e)?LF(t,e):um(e)?zF(t,e):wl(e)?BF():br(e)?UF(t,e):$e(e)?kF(t,e):yi(e)?PF(t,e):vr(e)?HF(t,e):On(e)?FF(t,e):Hn(e)?qF(t,e):vc(e)?GF():Yr(e)?YF(t,e):qe(e)?VF(t,e):Tl(e)?void 0:Pt(e)?KF(t,e):ms(e)?void 0:void 0}function XF(...t){const[e,n]=rn(t,{2:(r,s)=>[r,s],1:r=>[{},r]});return xr(e,n)}class QF extends lv{constructor(e,n){super("Parse",e,n)}}function ZF(t,e,n){if(!Fr(t,e,n))throw new QF(n,Fm(t,e,n));return n}const nM=dv([(t,e,n)=>Gn(n),(t,e,n)=>Ym(t,e,n),(t,e,n)=>Gm(t,e,n),(t,e,n)=>qm(t,e,n),(t,e,n)=>ZF(t,e,n)]);function JF(...t){const[e,n,r]=rn(t,{3:(l,c,f)=>[l,c,f],2:(l,c)=>[{},l,c]});return Fr(e,n,r)?r:nM(e,n,r)}const WF=le({type:be("insert"),path:Hr(),value:fr()}),tq=Object({type:be("update"),path:Hr(),value:fr()}),eq=le({type:be("delete"),path:Hr()});Se([WF,tq,eq]);const nq=t=>t&&typeof t=="object"&&"format"in t&&t.format==="binary",rq=t=>!!t&&typeof t=="object"&&!Array.isArray(t)&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.size=="number"&&typeof t.stream.bind(t)=="function";class oq{isBigInt=e=>Hn(e)&&"format"in e&&e.format==="bigint";isUUID=e=>Hn(e)&&"format"in e&&e.format==="uuid";isObject=$e;isNumber=br;isString=Hn;isBoolean=gi;isAny=pi;isArray=nn;isOptional=qn;isUnion=Pt;isInteger=co;isNull=wl;isUndefined=Tl;isUnsafe=vC;isRecord=vr;isTuple=qe;isVoid=ms;isLiteral=Ie;isSchema=Ut;isFile=nq;isDateTime=e=>R.schema.isString(e)&&e.format==="date-time";isDate=e=>R.schema.isString(e)&&e.format==="date";isTime=e=>R.schema.isString(e)&&e.format==="time";isDuration=e=>R.schema.isString(e)&&e.format==="duration"}const kn=class kn{static translateError(e,n){return e.cause.message}static setLocale(e){}static isValidBigInt(e){if(typeof e=="number")return Number.isInteger(e);if(!e.trim()||!/^-?\d+$/.test(e))return!1;try{return BigInt(e),!0}catch{return!1}}raw=y9;any=ll;void=k0;undefined=hm;record=B0;union=Se;tuple=fo;null=Ys;const=be;options=Mb;schema=new oq;extend(e,n,r){return $A(Array.isArray(e)?e:[e],n,{additionalProperties:!1,...r})}pick(e,n,r){return VA(e,n,{additionalProperties:!1,...r})}omit(e,n,r){return GA(e,n,{additionalProperties:!1,...r})}partial(e,n){return YA(e,{additionalProperties:!1,...n})}object(e,n){return le(e,{additionalProperties:!1,...n})}array(e,n){return ra(e,{maxItems:kn.DEFAULT_ARRAY_MAX_ITEMS,...n})}string(e={}){return Hr({...e})}text(e={}){const{size:n,...r}=e,s=n==="short"?kn.DEFAULT_SHORT_STRING_MAX_LENGTH:n==="long"?kn.DEFAULT_LONG_STRING_MAX_LENGTH:n==="rich"?kn.DEFAULT_RICH_STRING_MAX_LENGTH:kn.DEFAULT_STRING_MAX_LENGTH;return Hr({maxLength:s,"~options":{trim:e.trim??!0,lowercase:e.lowercase??!1},...r})}json(e){return R.record(R.text(),R.any(),e)}boolean(e){return D0({...e})}number(e){return li({...e})}integer(e){return dl({...e})}int32(e){return dl({minimum:-2147483647,maximum:2147483647,...e})}int64(e){return li({format:"int64",multipleOf:1,minimum:-9007199254740991,maximum:9007199254740991,...e})}optional(e){return M0(e)}nullable(e,n){return Se([Ys(),e],n)}nullify=(e,n)=>FA(Bd("K"),HA(e),cr("K"),Se([kA(e,cr("K")),Ys()]),n);enum(e,n){return Sd(R.text({enum:e,pattern:e.map(r=>`^${r}$`).join("|"),...n}))}bigint(e){return R.string({...e,format:"bigint"})}url(e){return this.string({...e,format:"url"})}binary(e){return this.string({...e,format:"binary"})}uuid(e){return this.string({...e,format:"uuid"})}file(e){return Sd(ll({[ec]:e,format:"binary"}))}stream(){return Sd(ll({format:"stream",type:"string"}))}email(e){return this.text({...e,format:"email",trim:!0,lowercase:!0})}e164(e){return this.text({...e,description:"Phone number in E.164 format, e.g. +1234567890.",pattern:"^\\+[1-9]\\d{1,14}$"})}bcp47(e){return this.text({...e,description:"BCP 47 language tag, e.g. en, en-US, fr, fr-CA.",pattern:"^[a-z]{2,3}(?:-[A-Z]{2})?$"})}shortText(e){return this.text({size:"short",...e})}longText(e){return this.text({size:"long",...e})}richText(e){return this.text({size:"rich",...e})}snakeCase=e=>this.text({pattern:"^[A-Z_-]+$",...e});valueLabel=e=>this.object({value:this.snakeCase({description:"Machine-readable value."}),label:this.text({description:"Human-readable label."}),description:this.optional(this.text({description:"Description of the value.",size:"long"}))},e);datetime=e=>R.text({...e,format:"date-time"});date=e=>R.text({...e,format:"date"});time=e=>R.text({...e,format:"time"});duration=e=>R.text({...e,format:"duration"})};Us(kn,"format",By),By.Set("bigint",e=>kn.isValidBigInt(e)),Us(kn,"DEFAULT_STRING_MAX_LENGTH",255),Us(kn,"DEFAULT_SHORT_STRING_MAX_LENGTH",64),Us(kn,"DEFAULT_LONG_STRING_MAX_LENGTH",1024),Us(kn,"DEFAULT_RICH_STRING_MAX_LENGTH",65535),Us(kn,"DEFAULT_ARRAY_MAX_ITEMS",1e3);let ml=kn;const R=new ml,iq=new Set(["__proto__","constructor","prototype"]);class sq extends x2{cache=new Map;textEncoder=new TextEncoder;textDecoder=new TextDecoder;varCounter=0;useFunctionCompilation=!0;maxArrayLength=1e4;maxStringLength=1e6;maxDepth=50;configure(e){return e.useFunctionCompilation!==void 0&&(this.useFunctionCompilation=e.useFunctionCompilation,this.cache.clear()),e.maxArrayLength!==void 0&&(this.maxArrayLength=e.maxArrayLength),e.maxStringLength!==void 0&&(this.maxStringLength=e.maxStringLength),e.maxDepth!==void 0&&(this.maxDepth=e.maxDepth),this}onConfigure=sr({on:"configure",handler:()=>{this.useFunctionCompilation=this.canUseFunction()}});encodeToString(e,n){return this.getCodec(e).encode(n)}encodeToBinary(e,n){return this.textEncoder.encode(this.encodeToString(e,n))}decode(e,n){if(n instanceof Uint8Array){const r=this.textDecoder.decode(n);return this.getCodec(e).decode(r)}return typeof n=="string"?this.getCodec(e).decode(n):Array.isArray(n)?this.reconstructObject(e,n):n}canUseFunction(){try{return new Function("return true")()===!0}catch{return!1}}validateSchemaKeys(e,n=0,r=new Set){if(!r.has(e)){if(r.add(e),n>this.maxDepth)throw new kt(`Schema depth exceeds maximum allowed (${this.maxDepth})`);if(R.schema.isObject(e)){const l=e.properties;for(const c of Object.keys(l)){if(iq.has(c))throw new kt(`Unsafe schema key "${c}" detected. This key is blocked to prevent prototype pollution.`);this.validateSchemaKeys(l[c],n+1,r)}}else if(R.schema.isArray(e)){const s=e;this.validateSchemaKeys(s.items,n+1,r)}else(R.schema.isUnion(e)||R.schema.isOptional(e))&&this.validateSchemaKeys(this.unwrap(e),n,r)}}validateArrayLength(e){if(e.length>this.maxArrayLength)throw new kt(`Array length (${e.length}) exceeds maximum allowed (${this.maxArrayLength})`)}validateStringLength(e){if(e.length>this.maxStringLength)throw new kt(`String length (${e.length}) exceeds maximum allowed (${this.maxStringLength})`)}getCodec(e){let n=this.cache.get(e);return n||(n=this.useFunctionCompilation?this.compileWithFunction(e):this.compileInterpreted(e),this.cache.set(e,n)),n}nextVar(){return`_${this.varCounter++}`}compileWithFunction(e){this.varCounter=0;const n=this.genEnc(e,"v");this.varCounter=0;const r=this.genDec(e),s=new Function("v",`return JSON.stringify(${n});`),l=new Function("s",`const a=JSON.parse(s);let i=0;${r.code}return ${r.result};`);return{encode:s,decode:l}}compileInterpreted(e){const n=this;return{encode(r){return JSON.stringify(n.interpretEncode(e,r))},decode(r){const s={arr:JSON.parse(r),i:0};return n.interpretDecode(e,s)}}}interpretEncode(e,n){if(R.schema.isString(e)||R.schema.isNumber(e)||R.schema.isInteger(e)||R.schema.isBoolean(e)||this.isEnum(e))return n;if(R.schema.isBigInt(e))return`${n}n`;if(R.schema.isArray(e)){const r=e;return!Array.isArray(n)||R.schema.isString(r.items)||R.schema.isNumber(r.items)||R.schema.isInteger(r.items)||R.schema.isBoolean(r.items)?n:n.map(s=>this.interpretEncode(r.items,s))}if(R.schema.isObject(e)){const r=e,s=r.properties,l=Object.keys(s),c=new Set(r.required||[]),f=[];for(const m of l){const p=s[m],g=!c.has(m)||R.schema.isOptional(p),b=this.isNullable(p),E=this.unwrap(p),S=n[m];g?f.push(S!==void 0?this.interpretEncode(E,S):null):b?f.push(S!==null?this.interpretEncode(E,S):null):f.push(this.interpretEncode(E,S))}return f}if(R.schema.isOptional(e)||R.schema.isUnion(e)){const r=this.unwrap(e);return this.isNullable(e)?n!==null?this.interpretEncode(r,n):null:n!==void 0?this.interpretEncode(r,n):null}return n}interpretDecode(e,n){if(R.schema.isString(e)||R.schema.isNumber(e)||R.schema.isInteger(e)||R.schema.isBoolean(e)||this.isEnum(e))return n.arr[n.i++];if(R.schema.isBigInt(e))return BigInt(n.arr[n.i++].slice(0,-1));if(R.schema.isArray(e)){const r=e,s=n.arr[n.i++];return Array.isArray(s)&&R.schema.isObject(r.items)?s.map(l=>this.interpretDecodeFromValue(r.items,l)):s}if(R.schema.isObject(e)){const r=e,s=r.properties,l=Object.keys(s),c=new Set(r.required||[]),f={};for(const m of l){const p=s[m],g=!c.has(m)||R.schema.isOptional(p),b=this.isNullable(p),E=this.unwrap(p),S=n.arr[n.i++];g?S!==null&&(f[m]=this.interpretDecodeFromValue(E,S)):b?f[m]=S===null?null:this.interpretDecodeFromValue(E,S):f[m]=this.interpretDecodeFromValue(E,S)}return f}if(R.schema.isOptional(e)||R.schema.isUnion(e)){const r=this.unwrap(e),s=n.arr[n.i++];return s===null?this.isNullable(e)?null:void 0:R.schema.isObject(r)||R.schema.isArray(r)?this.interpretDecodeFromValue(r,s):s}return n.arr[n.i++]}interpretDecodeFromValue(e,n){if(R.schema.isString(e)||R.schema.isNumber(e)||R.schema.isInteger(e)||R.schema.isBoolean(e)||this.isEnum(e))return n;if(R.schema.isBigInt(e))return BigInt(n.slice(0,-1));if(R.schema.isArray(e)){if(!Array.isArray(n))return n;const r=e;return R.schema.isObject(r.items)?n.map(s=>this.interpretDecodeFromValue(r.items,s)):n}if(R.schema.isObject(e)){const s=e.properties,l=Object.keys(s),c={};for(let f=0;f<l.length;f++){const m=l[f],p=this.unwrap(s[m]),g=n[f];R.schema.isObject(p)?c[m]=this.interpretDecodeFromValue(p,g):R.schema.isBigInt(p)?c[m]=BigInt(g.slice(0,-1)):c[m]=g}return c}return n}genEnc(e,n){if(R.schema.isString(e)||R.schema.isNumber(e)||R.schema.isInteger(e)||R.schema.isBoolean(e)||this.isEnum(e))return n;if(R.schema.isBigInt(e))return`${n}+'n'`;if(R.schema.isArray(e)){const r=e,s=this.genEnc(r.items,"e");return R.schema.isString(r.items)||R.schema.isNumber(r.items)||R.schema.isInteger(r.items)||R.schema.isBoolean(r.items)?n:`${n}.map(e=>${s})`}if(R.schema.isObject(e)){const r=e,s=r.properties,l=Object.keys(s),c=new Set(r.required||[]),f=[];for(const m of l){const p=s[m],g=!c.has(m)||R.schema.isOptional(p),b=this.isNullable(p),E=this.unwrap(p),S=this.genEnc(E,`${n}.${m}`);g?f.push(`${n}.${m}!==undefined?${S}:null`):b?f.push(`${n}.${m}!==null?${S}:null`):f.push(S)}return`[${f.join(",")}]`}if(R.schema.isOptional(e)||R.schema.isUnion(e)){const r=this.unwrap(e),s=this.genEnc(r,n);return this.isNullable(e)?`${n}!==null?${s}:null`:`${n}!==undefined?${s}:null`}return n}genDec(e){const n=this.nextVar();if(R.schema.isString(e)||R.schema.isNumber(e)||R.schema.isInteger(e)||R.schema.isBoolean(e)||this.isEnum(e))return{code:"",result:"a[i++]"};if(R.schema.isBigInt(e))return{code:"",result:"BigInt(a[i++].slice(0,-1))"};if(R.schema.isArray(e)){const r=e;return R.schema.isObject(r.items)?{code:"",result:`a[i++].map(e=>${this.genDecFromValue(r.items,"e")})`}:{code:"",result:"a[i++]"}}if(R.schema.isObject(e)){const r=e,s=r.properties,l=Object.keys(s),c=new Set(r.required||[]);let f=!0;for(const p of l){const g=s[p],b=!c.has(p)||R.schema.isOptional(g),E=this.isNullable(g),S=this.unwrap(g);if(b||E||R.schema.isObject(S)||R.schema.isArray(S)){f=!1;break}}if(f)return{code:"",result:`{${l.map(g=>`${g}:a[i++]`).join(",")}}`};let m=`const ${n}={};`;for(const p of l){const g=s[p],b=!c.has(p)||R.schema.isOptional(g),E=this.isNullable(g),S=this.unwrap(g);if(b){const T=this.genDecFromValue(S,"t");m+=`{const t=a[i++];if(t!==null){${n}.${p}=${T};}}`}else if(E){const T=this.genDecFromValue(S,"t");m+=`{const t=a[i++];if(t===null){${n}.${p}=null;}else{${n}.${p}=${T};}}`}else if(R.schema.isObject(S)){const T=this.genDecFromValue(S,"a[i++]");m+=`${n}.${p}=${T};`}else if(R.schema.isArray(S)){const T=S;if(R.schema.isObject(T.items)){const w=this.genDecFromValue(T.items,"e");m+=`${n}.${p}=a[i++].map(e=>${w});`}else m+=`${n}.${p}=a[i++];`}else m+=`${n}.${p}=a[i++];`}return{code:m,result:n}}if(R.schema.isOptional(e)||R.schema.isUnion(e)){const r=this.unwrap(e),s=this.genDec(r),l=this.isNullable(e)?"null":"undefined";return{code:`const ${n}t=a[i++];let ${n};if(${n}t===null){${n}=${l};}else{${s.code.replace(/a\[i\+\+\]/g,`${n}t`)}${n}=${s.result.replace(/a\[i\+\+\]/g,`${n}t`)};}`,result:n}}return{code:"",result:"a[i++]"}}genDecFromValue(e,n){if(R.schema.isString(e)||R.schema.isNumber(e)||R.schema.isInteger(e)||R.schema.isBoolean(e)||this.isEnum(e))return n;if(R.schema.isBigInt(e))return`BigInt(${n}.slice(0,-1))`;if(R.schema.isArray(e))return n;if(R.schema.isObject(e)){const s=e.properties,l=Object.keys(s),c=this.nextVar(),f=l.map((m,p)=>{const g=this.unwrap(s[m]),b=`${c}[${p}]`;return R.schema.isObject(g)?`${m}:${this.genDecFromValue(g,b)}`:R.schema.isBigInt(g)?`${m}:BigInt(${b}.slice(0,-1))`:`${m}:${b}`});return`((${c}=${n})=>({${f.join(",")}}))()`}return n}isEnum(e){return"enum"in e&&Array.isArray(e.enum)&&(e.enum?.length??0)>0}isNullable(e){return R.schema.isUnion(e)?e.anyOf?.some(r=>R.schema.isNull(r))??!1:!1}unwrap(e){return"anyOf"in e&&Array.isArray(e.anyOf)&&e.anyOf.find(r=>!R.schema.isNull(r))||e}reconstructObject(e,n){if(!R.schema.isObject(e))return n;const s=e.properties,l=Object.keys(s),c={};let f=0;for(const m of l){const p=s[m],g=R.schema.isOptional(p),b=this.isNullable(p),E=this.unwrap(p),S=n[f++];g?S!==null&&(c[m]=R.schema.isObject(E)?this.reconstructObject(E,S):S):b?c[m]=S===null?null:R.schema.isObject(E)?this.reconstructObject(E,S):S:c[m]=R.schema.isObject(E)?this.reconstructObject(E,S):S}return c}}class mv extends K2{constructor(...e){super();const n=rn(e,{6:(r,s,l,c,f,m)=>[r,s,l,c,f,m],2:(r,s)=>[r,s]});if(n.length===6){const[r,s,l,c,f,m]=n;this.context=r,this.type=s,this.isEvaluated=l,this.hasCodec=c,this.code=f,this.check=m}else{const[r,s]=n,l=qP(r,s).Evaluate();this.hasCodec=SF(r,s),this.context=r,this.type=s,this.isEvaluated=l.IsEvaluated,this.code=l.Code,this.check=l.Check}}IsEvaluated(){return this.isEvaluated}Context(){return this.context}Type(){return this.type}Code(){return this.code}Check(e){return this.check(e)}Errors(e){return O0()&&this.check(e)?[]:Fm(this.context,this.type,e)}Clean(e){return qm(this.context,this.type,e)}Convert(e){return Gm(this.context,this.type,e)}Create(){return XF(this.context,this.type)}Default(e){return Ym(this.context,this.type,e)}Clone(){return new mv(this.context,this.type,this.isEvaluated,this.hasCodec,this.code,this.check)}Parse(e){return this.Check(e)?e:nM(this.context,this.type,e)}Decode(e){return this.hasCodec?aF(this.context,this.type,e):this.Parse(e)}Encode(e){return this.hasCodec?dF(this.context,this.type,e):this.Parse(e)}}function Vw(...t){const[e,n]=rn(t,{2:(r,s)=>[r,s],1:r=>[{},r]});return new mv(e,n)}class Vm extends kt{name="TypeBoxError";cause;value;constructor(e){super(`Invalid input: ${e.message}${e.instancePath?` at ${e.instancePath}`:""}`,{cause:e});const n=e.params;n?.requiredProperties?this.value={path:`/${n.requiredProperties[0]}`,message:"must be defined"}:this.value={path:e.instancePath,message:e.message},this.cause=e}}class aq{cache=new Map;useEval=!0;validate(e,n,r={}){const s=this.beforeParse(e,n,{trim:r.trim??!0,nullToUndefined:r.nullToUndefined??!0,deleteUndefined:r.deleteUndefined??!0});try{return this.useEval?this.getValidator(e).Parse(s):JF(e,s)}catch(l){throw l.cause?.errors?.[0]?new Vm(l.cause.errors[0]):l}}getValidator(e){if(this.cache.has(e))return this.cache.get(e);const n=Vw(e);return this.cache.set(e,n),n}beforeParse(e,n,r){if(!e)return n;if(!(n===null&&!this.isSchemaNullable(e)&&r.nullToUndefined)){if(Array.isArray(n))return n.map(s=>this.beforeParse(e.items,s,r));if(typeof n=="string"&&e.type==="string"){let s=n;return r.trim&&e["~options"]?.trim&&(s=s.trim()),e["~options"]?.lowercase&&(s=s.toLowerCase()),s}if(typeof n=="object"&&n!==null&&e.type==="object"){const s={};for(const l in n){const c=this.beforeParse(e.properties?.[l],n[l],r);c===void 0&&r.deleteUndefined||(s[l]=c)}return s}return n}}isSchemaNullable=e=>e?e.type==="null"||Array.isArray(e.type)&&e.type.includes("null")?!0:e.anyOf?e.anyOf.some(n=>this.isSchemaNullable(n)):e.oneOf?e.oneOf.some(n=>this.isSchemaNullable(n)):e.allOf?e.allOf.some(n=>this.isSchemaNullable(n)):!1:!1;onConfigure=sr({on:"configure",handler:()=>{this.useEval=this.canEval()}});canEval(){try{return Vw(R.object({test:R.string()})).Parse({test:"value"}),!0}catch{return!1}}}class lq{codecs=new Map;jsonCodec=Rt(w2);keylessCodec=Rt(sq);schemaValidator=Rt(aq);default="json";constructor(){this.register({name:"json",codec:this.jsonCodec,default:!0}),this.register({name:"keyless",codec:this.keylessCodec})}register(e){this.codecs.set(e.name,e.codec),e.default&&(this.default=e.name)}getCodec(e){const n=this.codecs.get(e);if(!n)throw new kt(`Codec "${e}" not found. Available codecs: ${Array.from(this.codecs.keys()).join(", ")}`);return n}encode(e,n,r){const s=this.getCodec(r?.encoder??this.default),l=r?.as??"object";return r?.validation!==!1&&(n=this.schemaValidator.validate(e,n,r?.validation)),l==="object"?n:l==="binary"?s.encodeToBinary(e,n):s.encodeToString(e,n)}decode(e,n,r){const s=r?.encoder??this.default;let c=this.getCodec(s).decode(e,n);return r?.validation!==!1&&(c=this.schemaValidator.validate(e,c,r?.validation)),c}validate(e,n,r){return this.schemaValidator.validate(e,n,r)}}class rM{logFn;events={};constructor(e){this.logFn=e}get log(){return this.logFn?.()}clear(){this.events={}}on(e,n){this.events[e]||(this.events[e]=[]);const r=typeof n=="function"?{callback:n}:n;if(r.priority==="first")this.events[e].unshift(r);else if(r.priority==="last")this.events[e].push(r);else{const s=this.events[e].findIndex(l=>l.priority==="last");s!==-1?this.events[e].splice(s,0,r):this.events[e].push(r)}return()=>{this.events[e]=this.events[e].filter(s=>s.callback!==r.callback)}}compile(e,n={}){const r=this.events[e];if(!r||r.length===0)return()=>{};const s=n.catch??!1,l=this.log,c=async(f,m)=>{for(let p=f;p<r.length;p++){const g=r[p];try{const b=g.callback(m);b&&typeof b=="object"&&"then"in b&&(s?await b.catch(E=>{l?.error(`${String(e)}(${g.caller?.name??"unknown"}) ERROR`,E)}):await b)}catch(b){if(s)l?.error(`${String(e)}(${g.caller?.name??"unknown"}) ERROR`,b);else throw b}}};return f=>{for(let m=0;m<r.length;m++){const p=r[m];try{const g=p.callback(f);if(g&&typeof g=="object"&&"then"in g)return s?g.catch(b=>{l?.error(`${String(e)}(${p.caller?.name??"unknown"}) ERROR`,b)}).then(()=>c(m+1,f)):g.then(()=>c(m+1,f))}catch(g){if(s)l?.error(`${String(e)}(${p.caller?.name??"unknown"}) ERROR`,g);else throw g}}}}async emit(e,n,r={}){const s=this.events[e];if(!s||s.length===0)return;if(s.length===1&&!r.log){const c=s[0];try{const f=c.callback(n);f&&typeof f=="object"&&"then"in f&&await f}catch(f){if(r.catch){this.log?.error(`${String(e)}(${c.caller?.name??"unknown"}) ERROR`,f);return}throw f}return}const l={};r.log&&(l.now=performance.now(),this.log?.trace(`${String(e)} ...`));for(const c of s){const f=c.caller?.name??"unknown";r.log&&(l.now2=performance.now(),this.log?.trace(`${String(e)}(${f}) ...`));try{const m=c.callback(n);m&&typeof m=="object"&&"then"in m&&await m}catch(m){if(r.catch){this.log?.error(`${String(e)}(${f}) ERROR`,m);continue}throw r.log?new kt(`Failed during '${String(e)}()' hook for service: ${f}`,{cause:m}):m}r.log&&this.log?.debug(`${String(e)}(${f}) OK [${(performance.now()-l.now2).toFixed(1)}ms]`)}r.log&&this.log?.debug(`${String(e)} OK [${(performance.now()-l.now).toFixed(1)}ms]`)}}const Il=t=>new sl(t);class sl{options;get schema(){return this.options.schema}get key(){return this.options.name}constructor(e){this.options=e}}Il[Rn]="atom";class uq{als=Rt(Wd);events=Rt(rM);codec=Rt(w2);atoms=new Map;store={};constructor(e={}){this.store=e}getAtoms(e=!0){const n=[];if(e&&this.als?.exists())for(const r of this.atoms.values()){const s=this.als.get(r.key);s!==void 0&&n.push({atom:r,value:s})}else for(const[r,s]of this.atoms.entries())n.push({atom:s,value:this.store[r]});return n}register(e){const n=e.key;return this.atoms.has(n)||(this.atoms.set(n,e),n in this.store||this.set(n,e.options.default,{skipContext:!0})),this}get(e){e instanceof sl&&this.register(e);const n=e instanceof sl?e.key:e,r=this.store;return this.als?.exists()?this.als.get(n)??r[n]:r[n]}set(e,n,r){e instanceof sl&&this.register(e);const s=e instanceof sl?e.key:e,l=this.store,c=this.get(s);return c===n?this:(r?.skipContext!==!0&&this.als?.exists()?this.als.set(s,n):l[s]=n,r?.skipEvents!==!0&&this.events?.emit("state:mutate",{key:s,value:n,prevValue:c},{catch:!0}).catch(()=>null),this)}mut(e,n){const r=this.get(e),s=n(r);return this.set(e,s)}has(e){return e in this.store}del(e){return this.set(e,void 0)}push(e,...n){const r=this.get(e)??[];return Array.isArray(r)&&this.set(e,[...r,...n]),this}clear(){return this.store={},this}keys(){return Object.keys(this.store)}}var Kw={};class Re{static create(e={}){typeof process=="object"&&typeof Kw=="object"&&(e.env={...e.env,...Kw}),e.env??={},Object.assign(e.env,{NODE_ENV:"production"});const n=new Re(e);if(n.isTest()){const r=globalThis,s=e["alepha.test.beforeAll"]??r.beforeAll,l=e["alepha.test.afterAll"]??r.afterAll,c=e["alepha.test.afterEach"]??r.afterEach,f=e["alepha.test.onTestFinished"]??r.onTestFinished;s?.(()=>n.start()),l?.(()=>n.stop());try{f?.(()=>n.stop())}catch{}n.store.set("alepha.test.beforeAll",s).set("alepha.test.afterAll",l).set("alepha.test.afterEach",c).set("alepha.test.onTestFinished",f)}return n}locked=!1;configured=!1;started=!1;ready=!1;starting;pendingInstantiations=[];cacheEnv=new Map;modules=[];substitutions=new Map;primitiveRegistry=new Map;registry=new Map;context;events;store;codec;get log(){return this.store.get("alepha.logger")}get env(){return this.store.get("env")??{}}constructor(e={}){this.store=this.inject(uq,{args:[e]}),this.events=this.inject(rM),this.events.logFn=()=>this.log,this.context=this.inject(Wd),this.codec=this.inject(lq)}set(e,n){return this.store.set(e,n),this}isLocked(){return this.locked}isConfigured(){return this.configured}isStarted(){return this.started}isReady(){return this.ready}isCI(){return this.env.GITHUB_ACTIONS?!0:!!this.env.CI}isBrowser(){return typeof window<"u"}isViteDev(){return this.isBrowser()?!1:!!this.env.VITE_ALEPHA_DEV}isBun(){return"Bun"in globalThis}isServerless(){return this.isBrowser()?!1:!!(this.env.VERCEL_REGION||typeof global=="object"&&typeof global.Cloudflare=="object")}isTest(){return this.env.NODE_ENV==="test"}isProduction(){return this.env.NODE_ENV==="production"}async start(){if(this.ready)return this.log?.debug("App is already started, skipping..."),this;if(this.starting)return this.log?.warn("App is already starting, waiting for it to finish..."),this.starting.promise;this.starting=Promise.withResolvers();const e=Date.now();this.log?.info("Starting App...");for(const[r]of this.substitutions.entries())this.inject(r);const n=this.store.get("alepha.target");if(n){this.modules=[],this.registry=new Map,this.primitiveRegistry=new Map,this.pendingInstantiations=[],this.substitutions=new Map,this.events.clear(),delete n[Pn],this.with(n);for(const[r]of this.substitutions.entries())this.inject(r)}return this.locked=!0,await this.events.emit("configure",this,{log:!0}),this.configured=!0,await this.events.emit("start",this,{log:!0}),this.started=!0,await this.events.emit("ready",this,{log:!0}),this.log?.info(`App is now ready [${Date.now()-e}ms]`),this.ready=!0,this.starting.resolve(this),this.starting=void 0,this}async stop(){this.started&&(this.log?.info("Stopping App..."),await this.events.emit("stop",this,{log:!0}),this.log?.info("App is now off"),this.started=!1,this.ready=!1)}has(e,n={}){if(e===Re)return!0;const{inStack:r=!0,inRegistry:s=!0,inSubstitutions:l=!0,registry:c=this.registry}=n,{provide:f}=typeof e=="object"&&"provide"in e?e:{provide:e};if(l&&this.substitutions.get(f)||s&&c.get(f))return!0;if(r){const m=this.substitutions.get(f)?.use;return m&&this.pendingInstantiations.includes(m)?!0:this.pendingInstantiations.includes(f)}return!1}with(e){const n="default"in e?e.default:e;if(this.has(n,{inSubstitutions:!1,inRegistry:!1}))return this;if(typeof n=="object"){if(n.provide===n.use)return this.inject(n.provide),this;if(!this.substitutions.has(n.provide)&&!this.has(n.provide)){if(this.started)throw new xw;Pn in n.provide&&typeof n.provide[Pn]=="function"&&(n.use[Pn]??=n.provide[Pn]),this.substitutions.set(n.provide,{use:n.use})}else if(!n.optional)throw new u3(n.provide.name,n.use.name);return this}return this.inject(n),this}inject(e,n={}){const r=n.lifetime??"singleton",s=n.parent!==void 0?n.parent:zr?.parent??Re,l=r==="transient",c=r==="scoped"?this.context.get("registry")??this.registry:this.registry;if(e===Re)return this;if(typeof e=="string"){for(const[E,S]of c.entries())if(E.name===e)return S.instance;throw new kt(`Service not found: ${e}`)}const f=this.substitutions.get(e);if(f)return this.inject(f.use,{parent:s,lifetime:r});const m=this.pendingInstantiations.indexOf(e);if(m!==-1&&!l)throw new l3(e.name,this.pendingInstantiations.slice(0,m).map(E=>E.name));if(!l){const E=c.get(e);if(E)return!E.parents.includes(s)&&s!==e&&E.parents.push(s),E.instance;if(this.started){const S=e[Pn]?.name;throw new xw(`Container is locked. No more services can be added. Attempted to inject '${e.name}' from '${s?.name}'. ${S?`Module '${S}' is not registered ?`:""}`)}}const p=e[Pn];if(p&&typeof p=="function"&&this.with(p),this.has(e,{registry:c})&&!l)return this.inject(e,{parent:s,lifetime:r});const g=this.new(e,n.args),b={parents:[s],instance:g};if(l||c.set(e,b),g instanceof al){this.modules.push(g);const E=zr.parent;zr.parent=g.constructor,g.register(this),zr.parent=E}return g}parseEnv(e){if(this.cacheEnv.has(e))return this.cacheEnv.get(e);const n=this.codec.validate(e,this.env);for(const r in n)if(typeof n[r]=="string")for(const s in n)n[r]=n[r].replace(new RegExp(`\\$${s}`,"gim"),n[s]);return this.cacheEnv.set(e,n),n}getEnvSchemas(){const e=[];for(const[n,r]of this.cacheEnv.entries())e.push({schema:n,values:r});return e}graph(){for(const[n]of this.substitutions.entries())this.has(n)||this.inject(n);const e={};for(const[n,{parents:r}]of this.registry.entries()){if(n.name===""||al.is(n))continue;e[n.name]={from:r.filter(c=>!!c).map(c=>c.name)};const s=this.substitutions.entries().filter(c=>c[1].use===n).map(c=>c[0].name).toArray();s.length&&(e[n.name].as=s);const l=al.of(n);l&&(e[n.name].module=l.name)}return e}dump(){const e={};for(const[n]of this.cacheEnv.entries()){const r=n;for(const[s,l]of Object.entries(r.properties)){const c=l;e[s]={description:c.description,default:c.default,required:r.required?.includes(s)??void 0,enum:c.enum?[...c.enum]:void 0}}}return{env:e,providers:this.graph()}}services(e){const n=[];for(const[r,s]of this.registry.entries())s.instance instanceof e&&n.push(s.instance);return n}primitives(e){if(typeof e=="string"){const n=e.toLowerCase().replace("$",""),r=`${n}primitive`;for(const[s,l]of this.primitiveRegistry.entries()){const c=s.name.toLowerCase();if(c===n||c===r)return l}return[]}return this.primitiveRegistry.get(e[Rn])??[]}new(e,n=[]){this.pendingInstantiations.push(e),zr.alepha=this,zr.service=e;const r=f3(e)?new e(...n):e(...n)??{},s=r;for(const[l,c]of Object.entries(s))if(c instanceof di&&this.processPrimitive(c,l),typeof c=="object"&&c!==null&&typeof c[ec]=="object"&&"getter"in c[ec]){const f=c[ec].getter;Object.defineProperty(s,l,{get:()=>this.store.get(f)})}return this.pendingInstantiations.pop(),this.pendingInstantiations.length===0&&(zr.alepha=void 0),zr.service=this.pendingInstantiations[this.pendingInstantiations.length-1],r}processPrimitive(e,n=""){e.config.propertyKey=n,e.onInit();const r=e.constructor,s=this.primitiveRegistry.get(r)??[];this.primitiveRegistry.set(r,[...s,e])}}function wo(t){if(t.const!==void 0)return R.const(t.const);if(t.enum&&Array.isArray(t.enum))return t.enum.every(n=>typeof n=="string")?R.enum(t.enum,as({title:t.title,description:t.description,default:t.default})):R.union(t.enum.map(n=>R.const(n)));if(t.anyOf&&Array.isArray(t.anyOf)){const n=t.anyOf.find(s=>s.type==="null"),r=t.anyOf.filter(s=>s.type!=="null");if(n&&r.length===1){const s=wo(r[0]);return R.nullable(s)}return R.union(t.anyOf.map(s=>wo(s)))}if(t.allOf&&Array.isArray(t.allOf)){const n=t.allOf.find(s=>s.type==="null"),r=t.allOf.filter(s=>s.type!=="null");if(n&&r.length===1){const s=wo(r[0]);return R.nullable(s)}if(r.length>0)return wo(r[0])}if(t.oneOf&&Array.isArray(t.oneOf)){const n=t.oneOf.find(s=>s.type==="null"),r=t.oneOf.filter(s=>s.type!=="null");if(n&&r.length===1){const s=wo(r[0]);return R.nullable(s)}return R.union(t.oneOf.map(s=>wo(s)))}switch(Array.isArray(t.type)?t.type[0]:t.type){case"string":return cq(t);case"number":return fq(t);case"integer":return dq(t);case"boolean":return mq(t);case"null":return R.null();case"object":return Xw(t);case"array":return hq(t);default:return t.properties?Xw(t):R.any()}}function as(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>n!==void 0))}function cq(t){const e=as({title:t.title,description:t.description,default:t.default,minLength:t.minLength,maxLength:t.maxLength,pattern:t.pattern}),n=t["~options"]?{...e,"~options":t["~options"]}:e;switch(t.format){case"email":return R.email(n);case"uuid":return R.uuid(n);case"date-time":return R.datetime(n);case"date":return R.date(n);case"time":return R.time(n);case"url":case"uri":return R.url(n);case"binary":return R.binary(n);case"bigint":return R.bigint(n);case"duration":return R.duration(n);case"color":return R.text({...n,format:"color"});case"e164":return R.e164(n);case"bcp47":return R.bcp47(n);default:return t.format?R.string({...n,format:t.format}):R.string(n)}}function fq(t){return R.number(as({title:t.title,description:t.description,default:t.default,minimum:t.minimum,maximum:t.maximum,exclusiveMinimum:t.exclusiveMinimum,exclusiveMaximum:t.exclusiveMaximum,multipleOf:t.multipleOf}))}function dq(t){return R.integer(as({title:t.title,description:t.description,default:t.default,minimum:t.minimum,maximum:t.maximum,exclusiveMinimum:t.exclusiveMinimum,exclusiveMaximum:t.exclusiveMaximum,multipleOf:t.multipleOf}))}function mq(t){return R.boolean(as({title:t.title,description:t.description,default:t.default}))}function Xw(t){if(!t.properties)return R.json(as({title:t.title,description:t.description}));const e=new Set(t.required??[]),n={};for(const[r,s]of Object.entries(t.properties)){let l=wo(s);e.has(r)||(l=R.optional(l)),n[r]=l}return R.object(n,as({title:t.title,description:t.description}))}function hq(t){const e=t.items?wo(t.items):R.any();return R.array(e,as({title:t.title,description:t.description,minItems:t.minItems,maxItems:t.maxItems,uniqueItems:t.uniqueItems}))}const hv=t=>{const{alepha:e}=fc();if(!R.schema.isObject(t))throw new kt("Type must be an TObject");return e.parseEnv(t)},pq=t=>{const{alepha:e}=fc();e.store.register(t);const n=e.store.get(t.key);return{[ec]:{getter:t.key},...n}};R.object({page:R.optional(R.integer({description:"The page number to retrieve.",minimum:0,default:0})),size:R.optional(R.integer({description:"The number of items per page.",minimum:1,maximum:100,default:10})),sort:R.optional(R.text({description:"Sort by field(s). Multiple columns separated by comma. Prefix with '-' for DESC. Examples: 'name' (ASC), '-createdAt' (DESC), 'role,-name' (role ASC, name DESC)"}))});const gq=R.object({number:R.integer({description:"Page number, starting from 0"}),size:R.integer({description:"Number of items per page (requested page size)"}),offset:R.integer({description:"Offset in the dataset (page × size)"}),numberOfElements:R.integer({description:"Number of elements in THIS page (content.length). Different from totalElements which is the total across all pages."}),totalElements:R.optional(R.integer({description:"Total number of elements across all pages. Only available when counting is enabled."})),totalPages:R.optional(R.integer({description:"Total number of pages. Only available when `totalElements` is present."})),isEmpty:R.boolean({description:"Indicates if the current page has no items (numberOfElements === 0)"}),isFirst:R.boolean({description:"Indicates if this is the first page (number === 0)"}),isLast:R.boolean({description:"Indicates if this is the last page (no more pages after this)"}),sort:R.optional(R.object({sorted:R.boolean({description:"Whether the results are sorted"}),fields:R.array(R.object({field:R.text({description:"The field used for sorting"}),direction:R.enum(["asc","desc"],{description:"The direction of the sort. Either 'asc' or 'desc'"})}))}))}),yq=(t,e)=>R.object({content:R.array(t),page:gq},e);ml.prototype.page=t=>yq(t);const bq=(t,e)=>{const n=t instanceof Re?t:Re.create({env:{...e?.env}});if(!(t instanceof Re)){const r=Array.isArray(t)?t:[t];for(const s of r)n.with(s)}return(async()=>{try{await e?.configure?.(n),await n.start(),e?.ready}catch(r){n.log?.error("Alepha failed to start",r)}})(),window.alepha=n,n};function ys(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xg={exports:{}},_t={};var Qw;function vq(){if(Qw)return _t;Qw=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),E=Symbol.iterator;function S(N){return N===null||typeof N!="object"?null:(N=E&&N[E]||N["@@iterator"],typeof N=="function"?N:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,$={};function _(N,G,ot){this.props=N,this.context=G,this.refs=$,this.updater=ot||T}_.prototype.isReactComponent={},_.prototype.setState=function(N,G){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,G,"setState")},_.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function L(){}L.prototype=_.prototype;function j(N,G,ot){this.props=N,this.context=G,this.refs=$,this.updater=ot||T}var P=j.prototype=new L;P.constructor=j,w(P,_.prototype),P.isPureReactComponent=!0;var H=Array.isArray;function F(){}var z={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function W(N,G,ot){var ft=ot.ref;return{$$typeof:t,type:N,key:G,ref:ft!==void 0?ft:null,props:ot}}function et(N,G){return W(N.type,G,N.props)}function it(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function ct(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ot){return G[ot]})}var dt=/\/+/g;function Y(N,G){return typeof N=="object"&&N!==null&&N.key!=null?ct(""+N.key):G.toString(36)}function Z(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(F,F):(N.status="pending",N.then(function(G){N.status==="pending"&&(N.status="fulfilled",N.value=G)},function(G){N.status==="pending"&&(N.status="rejected",N.reason=G)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function O(N,G,ot,ft,mt){var pt=typeof N;(pt==="undefined"||pt==="boolean")&&(N=null);var Tt=!1;if(N===null)Tt=!0;else switch(pt){case"bigint":case"string":case"number":Tt=!0;break;case"object":switch(N.$$typeof){case t:case e:Tt=!0;break;case g:return Tt=N._init,O(Tt(N._payload),G,ot,ft,mt)}}if(Tt)return mt=mt(N),Tt=ft===""?"."+Y(N,0):ft,H(mt)?(ot="",Tt!=null&&(ot=Tt.replace(dt,"$&/")+"/"),O(mt,G,ot,"",function(ie){return ie})):mt!=null&&(it(mt)&&(mt=et(mt,ot+(mt.key==null||N&&N.key===mt.key?"":(""+mt.key).replace(dt,"$&/")+"/")+Tt)),G.push(mt)),1;Tt=0;var Jt=ft===""?".":ft+":";if(H(N))for(var Ot=0;Ot<N.length;Ot++)ft=N[Ot],pt=Jt+Y(ft,Ot),Tt+=O(ft,G,ot,pt,mt);else if(Ot=S(N),typeof Ot=="function")for(N=Ot.call(N),Ot=0;!(ft=N.next()).done;)ft=ft.value,pt=Jt+Y(ft,Ot++),Tt+=O(ft,G,ot,pt,mt);else if(pt==="object"){if(typeof N.then=="function")return O(Z(N),G,ot,ft,mt);throw G=String(N),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Tt}function B(N,G,ot){if(N==null)return N;var ft=[],mt=0;return O(N,ft,"","",function(pt){return G.call(ot,pt,mt++)}),ft}function D(N){if(N._status===-1){var G=N._result;G=G(),G.then(function(ot){(N._status===0||N._status===-1)&&(N._status=1,N._result=ot)},function(ot){(N._status===0||N._status===-1)&&(N._status=2,N._result=ot)}),N._status===-1&&(N._status=0,N._result=G)}if(N._status===1)return N._result.default;throw N._result}var tt=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},nt={map:B,forEach:function(N,G,ot){B(N,function(){G.apply(this,arguments)},ot)},count:function(N){var G=0;return B(N,function(){G++}),G},toArray:function(N){return B(N,function(G){return G})||[]},only:function(N){if(!it(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return _t.Activity=b,_t.Children=nt,_t.Component=_,_t.Fragment=n,_t.Profiler=s,_t.PureComponent=j,_t.StrictMode=r,_t.Suspense=m,_t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,_t.__COMPILER_RUNTIME={__proto__:null,c:function(N){return z.H.useMemoCache(N)}},_t.cache=function(N){return function(){return N.apply(null,arguments)}},_t.cacheSignal=function(){return null},_t.cloneElement=function(N,G,ot){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ft=w({},N.props),mt=N.key;if(G!=null)for(pt in G.key!==void 0&&(mt=""+G.key),G)!k.call(G,pt)||pt==="key"||pt==="__self"||pt==="__source"||pt==="ref"&&G.ref===void 0||(ft[pt]=G[pt]);var pt=arguments.length-2;if(pt===1)ft.children=ot;else if(1<pt){for(var Tt=Array(pt),Jt=0;Jt<pt;Jt++)Tt[Jt]=arguments[Jt+2];ft.children=Tt}return W(N.type,mt,ft)},_t.createContext=function(N){return N={$$typeof:c,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:l,_context:N},N},_t.createElement=function(N,G,ot){var ft,mt={},pt=null;if(G!=null)for(ft in G.key!==void 0&&(pt=""+G.key),G)k.call(G,ft)&&ft!=="key"&&ft!=="__self"&&ft!=="__source"&&(mt[ft]=G[ft]);var Tt=arguments.length-2;if(Tt===1)mt.children=ot;else if(1<Tt){for(var Jt=Array(Tt),Ot=0;Ot<Tt;Ot++)Jt[Ot]=arguments[Ot+2];mt.children=Jt}if(N&&N.defaultProps)for(ft in Tt=N.defaultProps,Tt)mt[ft]===void 0&&(mt[ft]=Tt[ft]);return W(N,pt,mt)},_t.createRef=function(){return{current:null}},_t.forwardRef=function(N){return{$$typeof:f,render:N}},_t.isValidElement=it,_t.lazy=function(N){return{$$typeof:g,_payload:{_status:-1,_result:N},_init:D}},_t.memo=function(N,G){return{$$typeof:p,type:N,compare:G===void 0?null:G}},_t.startTransition=function(N){var G=z.T,ot={};z.T=ot;try{var ft=N(),mt=z.S;mt!==null&&mt(ot,ft),typeof ft=="object"&&ft!==null&&typeof ft.then=="function"&&ft.then(F,tt)}catch(pt){tt(pt)}finally{G!==null&&ot.types!==null&&(G.types=ot.types),z.T=G}},_t.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},_t.use=function(N){return z.H.use(N)},_t.useActionState=function(N,G,ot){return z.H.useActionState(N,G,ot)},_t.useCallback=function(N,G){return z.H.useCallback(N,G)},_t.useContext=function(N){return z.H.useContext(N)},_t.useDebugValue=function(){},_t.useDeferredValue=function(N,G){return z.H.useDeferredValue(N,G)},_t.useEffect=function(N,G){return z.H.useEffect(N,G)},_t.useEffectEvent=function(N){return z.H.useEffectEvent(N)},_t.useId=function(){return z.H.useId()},_t.useImperativeHandle=function(N,G,ot){return z.H.useImperativeHandle(N,G,ot)},_t.useInsertionEffect=function(N,G){return z.H.useInsertionEffect(N,G)},_t.useLayoutEffect=function(N,G){return z.H.useLayoutEffect(N,G)},_t.useMemo=function(N,G){return z.H.useMemo(N,G)},_t.useOptimistic=function(N,G){return z.H.useOptimistic(N,G)},_t.useReducer=function(N,G,ot){return z.H.useReducer(N,G,ot)},_t.useRef=function(N){return z.H.useRef(N)},_t.useState=function(N){return z.H.useState(N)},_t.useSyncExternalStore=function(N,G,ot){return z.H.useSyncExternalStore(N,G,ot)},_t.useTransition=function(){return z.H.useTransition()},_t.version="19.2.4",_t}var Zw;function pv(){return Zw||(Zw=1,Xg.exports=vq()),Xg.exports}var C=pv();const $n=ys(C),oM=a3({__proto__:null,default:$n},[C]),Sq=t=>{const[e,n]=C.useState(!1);return C.useEffect(()=>n(!0),[]),t.disabled||e?t.children:t.fallback};class Jw extends $n.Component{constructor(e){super(e),this.state={}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,n){this.props.onError&&this.props.onError(e,n)}render(){return this.state.error?this.props.fallback(this.state.error):this.props.children}}const iM=C.createContext(void 0);var Qg={exports:{}},Yu={};var Ww;function Eq(){if(Ww)return Yu;Ww=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,s,l){var c=null;if(l!==void 0&&(c=""+l),s.key!==void 0&&(c=""+s.key),"key"in s){l={};for(var f in s)f!=="key"&&(l[f]=s[f])}else l=s;return s=l.ref,{$$typeof:t,type:r,key:c,ref:s!==void 0?s:null,props:l}}return Yu.Fragment=e,Yu.jsx=n,Yu.jsxs=n,Yu}var tT;function xq(){return tT||(tT=1,Qg.exports=Eq()),Qg.exports}var x=xq(),Ed={exports:{}},wq=Ed.exports,eT;function Tq(){return eT||(eT=1,(function(t,e){(function(n,r){t.exports=r()})(wq,(function(){return function(n,r,s){n=n||{};var l=r.prototype,c={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function f(p,g,b,E){return l.fromToBase(p,g,b,E)}s.en.relativeTime=c,l.fromToBase=function(p,g,b,E,S){for(var T,w,$,_=b.$locale().relativeTime||c,L=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],j=L.length,P=0;P<j;P+=1){var H=L[P];H.d&&(T=E?s(p).diff(b,H.d,!0):b.diff(p,H.d,!0));var F=(n.rounding||Math.round)(Math.abs(T));if($=T>0,F<=H.r||!H.r){F<=1&&P>0&&(H=L[P-1]);var z=_[H.l];S&&(F=S(""+F)),w=typeof z=="string"?z.replace("%d",F):z(F,g,H.l,$);break}}if(g)return w;var k=$?_.future:_.past;return typeof k=="function"?k(w):k.replace("%s",w)},l.to=function(p,g){return f(p,g,this,!0)},l.from=function(p,g){return f(p,g,this)};var m=function(p){return p.$u?s.utc():s()};l.toNow=function(p){return this.to(m(this),p)},l.fromNow=function(p){return this.from(m(this),p)}}}))})(Ed)),Ed.exports}var Cq=Tq();const Aq=ys(Cq);var xd={exports:{}},$q=xd.exports,nT;function Mq(){return nT||(nT=1,(function(t,e){(function(n,r){t.exports=r()})($q,(function(){var n,r,s=1e3,l=6e4,c=36e5,f=864e5,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=31536e6,g=2628e6,b=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,E={years:p,months:g,days:f,hours:c,minutes:l,seconds:s,milliseconds:1,weeks:6048e5},S=function(F){return F instanceof P},T=function(F,z,k){return new P(F,k,z.$l)},w=function(F){return r.p(F)+"s"},$=function(F){return F<0},_=function(F){return $(F)?Math.ceil(F):Math.floor(F)},L=function(F){return Math.abs(F)},j=function(F,z){return F?$(F)?{negative:!0,format:""+L(F)+z}:{negative:!1,format:""+F+z}:{negative:!1,format:""}},P=(function(){function F(k,W,et){var it=this;if(this.$d={},this.$l=et,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),W)return T(k*E[w(W)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach((function(Y){it.$d[w(Y)]=k[Y]})),this.calMilliseconds(),this;if(typeof k=="string"){var ct=k.match(b);if(ct){var dt=ct.slice(2).map((function(Y){return Y!=null?Number(Y):0}));return this.$d.years=dt[0],this.$d.months=dt[1],this.$d.weeks=dt[2],this.$d.days=dt[3],this.$d.hours=dt[4],this.$d.minutes=dt[5],this.$d.seconds=dt[6],this.calMilliseconds(),this}}return this}var z=F.prototype;return z.calMilliseconds=function(){var k=this;this.$ms=Object.keys(this.$d).reduce((function(W,et){return W+(k.$d[et]||0)*E[et]}),0)},z.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=_(k/p),k%=p,this.$d.months=_(k/g),k%=g,this.$d.days=_(k/f),k%=f,this.$d.hours=_(k/c),k%=c,this.$d.minutes=_(k/l),k%=l,this.$d.seconds=_(k/s),k%=s,this.$d.milliseconds=k},z.toISOString=function(){var k=j(this.$d.years,"Y"),W=j(this.$d.months,"M"),et=+this.$d.days||0;this.$d.weeks&&(et+=7*this.$d.weeks);var it=j(et,"D"),ct=j(this.$d.hours,"H"),dt=j(this.$d.minutes,"M"),Y=this.$d.seconds||0;this.$d.milliseconds&&(Y+=this.$d.milliseconds/1e3,Y=Math.round(1e3*Y)/1e3);var Z=j(Y,"S"),O=k.negative||W.negative||it.negative||ct.negative||dt.negative||Z.negative,B=ct.format||dt.format||Z.format?"T":"",D=(O?"-":"")+"P"+k.format+W.format+it.format+B+ct.format+dt.format+Z.format;return D==="P"||D==="-P"?"P0D":D},z.toJSON=function(){return this.toISOString()},z.format=function(k){var W=k||"YYYY-MM-DDTHH:mm:ss",et={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return W.replace(m,(function(it,ct){return ct||String(et[it])}))},z.as=function(k){return this.$ms/E[w(k)]},z.get=function(k){var W=this.$ms,et=w(k);return et==="milliseconds"?W%=1e3:W=et==="weeks"?_(W/E[et]):this.$d[et],W||0},z.add=function(k,W,et){var it;return it=W?k*E[w(W)]:S(k)?k.$ms:T(k,this).$ms,T(this.$ms+it*(et?-1:1),this)},z.subtract=function(k,W){return this.add(k,W,!0)},z.locale=function(k){var W=this.clone();return W.$l=k,W},z.clone=function(){return T(this.$ms,this)},z.humanize=function(k){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},z.valueOf=function(){return this.asMilliseconds()},z.milliseconds=function(){return this.get("milliseconds")},z.asMilliseconds=function(){return this.as("milliseconds")},z.seconds=function(){return this.get("seconds")},z.asSeconds=function(){return this.as("seconds")},z.minutes=function(){return this.get("minutes")},z.asMinutes=function(){return this.as("minutes")},z.hours=function(){return this.get("hours")},z.asHours=function(){return this.as("hours")},z.days=function(){return this.get("days")},z.asDays=function(){return this.as("days")},z.weeks=function(){return this.get("weeks")},z.asWeeks=function(){return this.as("weeks")},z.months=function(){return this.get("months")},z.asMonths=function(){return this.as("months")},z.years=function(){return this.get("years")},z.asYears=function(){return this.as("years")},F})(),H=function(F,z,k){return F.add(z.years()*k,"y").add(z.months()*k,"M").add(z.days()*k,"d").add(z.hours()*k,"h").add(z.minutes()*k,"m").add(z.seconds()*k,"s").add(z.milliseconds()*k,"ms")};return function(F,z,k){n=k,r=k().$utils(),k.duration=function(it,ct){var dt=k.locale();return T(it,{$l:dt},ct)},k.isDuration=S;var W=z.prototype.add,et=z.prototype.subtract;z.prototype.add=function(it,ct){return S(it)?H(this,it,1):W.bind(this)(it,ct)},z.prototype.subtract=function(it,ct){return S(it)?H(this,it,-1):et.bind(this)(it,ct)}}}))})(xd)),xd.exports}var Rq=Mq();const Oq=ys(Rq);var wd={exports:{}},Nq=wd.exports,rT;function _q(){return rT||(rT=1,(function(t,e){(function(n,r){t.exports=r()})(Nq,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(l,c,f){var m=c.prototype;f.utc=function(w){var $={date:w,utc:!0,args:arguments};return new c($)},m.utc=function(w){var $=f(this.toDate(),{locale:this.$L,utc:!0});return w?$.add(this.utcOffset(),n):$},m.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var p=m.parse;m.parse=function(w){w.utc&&(this.$u=!0),this.$utils().u(w.$offset)||(this.$offset=w.$offset),p.call(this,w)};var g=m.init;m.init=function(){if(this.$u){var w=this.$d;this.$y=w.getUTCFullYear(),this.$M=w.getUTCMonth(),this.$D=w.getUTCDate(),this.$W=w.getUTCDay(),this.$H=w.getUTCHours(),this.$m=w.getUTCMinutes(),this.$s=w.getUTCSeconds(),this.$ms=w.getUTCMilliseconds()}else g.call(this)};var b=m.utcOffset;m.utcOffset=function(w,$){var _=this.$utils().u;if(_(w))return this.$u?0:_(this.$offset)?b.call(this):this.$offset;if(typeof w=="string"&&(w=(function(H){H===void 0&&(H="");var F=H.match(r);if(!F)return null;var z=(""+F[0]).match(s)||["-",0,0],k=z[0],W=60*+z[1]+ +z[2];return W===0?0:k==="+"?W:-W})(w),w===null))return this;var L=Math.abs(w)<=16?60*w:w;if(L===0)return this.utc($);var j=this.clone();if($)return j.$offset=L,j.$u=!1,j;var P=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(j=this.local().add(L+P,n)).$offset=L,j.$x.$localOffset=P,j};var E=m.format;m.format=function(w){var $=w||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return E.call(this,$)},m.valueOf=function(){var w=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*w},m.isUTC=function(){return!!this.$u},m.toISOString=function(){return this.toDate().toISOString()},m.toString=function(){return this.toDate().toUTCString()};var S=m.toDate;m.toDate=function(w){return w==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():S.call(this)};var T=m.diff;m.diff=function(w,$,_){if(w&&this.$u===w.$u)return T.call(this,w,$,_);var L=this.local(),j=f(w).local();return T.call(L,j,$,_)}}}))})(wd)),wd.exports}var Dq=_q();const jq=ys(Dq);var Td={exports:{}},Iq=Td.exports,oT;function Lq(){return oT||(oT=1,(function(t,e){(function(n,r){t.exports=r()})(Iq,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(s,l,c){var f,m=function(E,S,T){T===void 0&&(T={});var w=new Date(E),$=(function(_,L){L===void 0&&(L={});var j=L.timeZoneName||"short",P=_+"|"+j,H=r[P];return H||(H=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:_,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:j}),r[P]=H),H})(S,T);return $.formatToParts(w)},p=function(E,S){for(var T=m(E,S),w=[],$=0;$<T.length;$+=1){var _=T[$],L=_.type,j=_.value,P=n[L];P>=0&&(w[P]=parseInt(j,10))}var H=w[3],F=H===24?0:H,z=w[0]+"-"+w[1]+"-"+w[2]+" "+F+":"+w[4]+":"+w[5]+":000",k=+E;return(c.utc(z).valueOf()-(k-=k%1e3))/6e4},g=l.prototype;g.tz=function(E,S){E===void 0&&(E=f);var T,w=this.utcOffset(),$=this.toDate(),_=$.toLocaleString("en-US",{timeZone:E}),L=Math.round(($-new Date(_))/1e3/60),j=15*-Math.round($.getTimezoneOffset()/15)-L;if(!Number(j))T=this.utcOffset(0,S);else if(T=c(_,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(j,!0),S){var P=T.utcOffset();T=T.add(w-P,"minute")}return T.$x.$timezone=E,T},g.offsetName=function(E){var S=this.$x.$timezone||c.tz.guess(),T=m(this.valueOf(),S,{timeZoneName:E}).find((function(w){return w.type.toLowerCase()==="timezonename"}));return T&&T.value};var b=g.startOf;g.startOf=function(E,S){if(!this.$x||!this.$x.$timezone)return b.call(this,E,S);var T=c(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return b.call(T,E,S).tz(this.$x.$timezone,!0)},c.tz=function(E,S,T){var w=T&&S,$=T||S||f,_=p(+c(),$);if(typeof E!="string")return c(E).tz($);var L=(function(F,z,k){var W=F-60*z*1e3,et=p(W,k);if(z===et)return[W,z];var it=p(W-=60*(et-z)*1e3,k);return et===it?[W,et]:[F-60*Math.min(et,it)*1e3,Math.max(et,it)]})(c.utc(E,w).valueOf(),_,$),j=L[0],P=L[1],H=c(j).utcOffset(P);return H.$x.$timezone=$,H},c.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},c.tz.setDefault=function(E){f=E}}}))})(Td)),Td.exports}var zq=Lq();const Bq=ys(zq);var Cd={exports:{}},Uq=Cd.exports,iT;function kq(){return iT||(iT=1,(function(t,e){(function(n,r){t.exports=r()})(Uq,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,s,l){var c=s.prototype,f=c.format;l.en.formats=n,c.format=function(m){m===void 0&&(m="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,g=(function(b,E){return b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(S,T,w){var $=w&&w.toUpperCase();return T||E[w]||n[w]||E[$].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(_,L,j){return L||j.slice(1)}))}))})(m,p===void 0?{}:p);return f.call(this,g)}}}))})(Cd)),Cd.exports}var Pq=kq();const Hq=ys(Pq);var Ad={exports:{}},$d={exports:{}},Fq=$d.exports,sT;function gv(){return sT||(sT=1,(function(t,e){(function(n,r){t.exports=r()})(Fq,(function(){var n=1e3,r=6e4,s=36e5,l="millisecond",c="second",f="minute",m="hour",p="day",g="week",b="month",E="quarter",S="year",T="date",w="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,L={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Y){var Z=["th","st","nd","rd"],O=Y%100;return"["+Y+(Z[(O-20)%10]||Z[O]||Z[0])+"]"}},j=function(Y,Z,O){var B=String(Y);return!B||B.length>=Z?Y:""+Array(Z+1-B.length).join(O)+Y},P={s:j,z:function(Y){var Z=-Y.utcOffset(),O=Math.abs(Z),B=Math.floor(O/60),D=O%60;return(Z<=0?"+":"-")+j(B,2,"0")+":"+j(D,2,"0")},m:function Y(Z,O){if(Z.date()<O.date())return-Y(O,Z);var B=12*(O.year()-Z.year())+(O.month()-Z.month()),D=Z.clone().add(B,b),tt=O-D<0,nt=Z.clone().add(B+(tt?-1:1),b);return+(-(B+(O-D)/(tt?D-nt:nt-D))||0)},a:function(Y){return Y<0?Math.ceil(Y)||0:Math.floor(Y)},p:function(Y){return{M:b,y:S,w:g,d:p,D:T,h:m,m:f,s:c,ms:l,Q:E}[Y]||String(Y||"").toLowerCase().replace(/s$/,"")},u:function(Y){return Y===void 0}},H="en",F={};F[H]=L;var z="$isDayjsObject",k=function(Y){return Y instanceof ct||!(!Y||!Y[z])},W=function Y(Z,O,B){var D;if(!Z)return H;if(typeof Z=="string"){var tt=Z.toLowerCase();F[tt]&&(D=tt),O&&(F[tt]=O,D=tt);var nt=Z.split("-");if(!D&&nt.length>1)return Y(nt[0])}else{var N=Z.name;F[N]=Z,D=N}return!B&&D&&(H=D),D||!B&&H},et=function(Y,Z){if(k(Y))return Y.clone();var O=typeof Z=="object"?Z:{};return O.date=Y,O.args=arguments,new ct(O)},it=P;it.l=W,it.i=k,it.w=function(Y,Z){return et(Y,{locale:Z.$L,utc:Z.$u,x:Z.$x,$offset:Z.$offset})};var ct=(function(){function Y(O){this.$L=W(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[z]=!0}var Z=Y.prototype;return Z.parse=function(O){this.$d=(function(B){var D=B.date,tt=B.utc;if(D===null)return new Date(NaN);if(it.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var nt=D.match($);if(nt){var N=nt[2]-1||0,G=(nt[7]||"0").substring(0,3);return tt?new Date(Date.UTC(nt[1],N,nt[3]||1,nt[4]||0,nt[5]||0,nt[6]||0,G)):new Date(nt[1],N,nt[3]||1,nt[4]||0,nt[5]||0,nt[6]||0,G)}}return new Date(D)})(O),this.init()},Z.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},Z.$utils=function(){return it},Z.isValid=function(){return this.$d.toString()!==w},Z.isSame=function(O,B){var D=et(O);return this.startOf(B)<=D&&D<=this.endOf(B)},Z.isAfter=function(O,B){return et(O)<this.startOf(B)},Z.isBefore=function(O,B){return this.endOf(B)<et(O)},Z.$g=function(O,B,D){return it.u(O)?this[B]:this.set(D,O)},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this.$d.getTime()},Z.startOf=function(O,B){var D=this,tt=!!it.u(B)||B,nt=it.p(O),N=function(Ot,ie){var We=it.w(D.$u?Date.UTC(D.$y,ie,Ot):new Date(D.$y,ie,Ot),D);return tt?We:We.endOf(p)},G=function(Ot,ie){return it.w(D.toDate()[Ot].apply(D.toDate("s"),(tt?[0,0,0,0]:[23,59,59,999]).slice(ie)),D)},ot=this.$W,ft=this.$M,mt=this.$D,pt="set"+(this.$u?"UTC":"");switch(nt){case S:return tt?N(1,0):N(31,11);case b:return tt?N(1,ft):N(0,ft+1);case g:var Tt=this.$locale().weekStart||0,Jt=(ot<Tt?ot+7:ot)-Tt;return N(tt?mt-Jt:mt+(6-Jt),ft);case p:case T:return G(pt+"Hours",0);case m:return G(pt+"Minutes",1);case f:return G(pt+"Seconds",2);case c:return G(pt+"Milliseconds",3);default:return this.clone()}},Z.endOf=function(O){return this.startOf(O,!1)},Z.$set=function(O,B){var D,tt=it.p(O),nt="set"+(this.$u?"UTC":""),N=(D={},D[p]=nt+"Date",D[T]=nt+"Date",D[b]=nt+"Month",D[S]=nt+"FullYear",D[m]=nt+"Hours",D[f]=nt+"Minutes",D[c]=nt+"Seconds",D[l]=nt+"Milliseconds",D)[tt],G=tt===p?this.$D+(B-this.$W):B;if(tt===b||tt===S){var ot=this.clone().set(T,1);ot.$d[N](G),ot.init(),this.$d=ot.set(T,Math.min(this.$D,ot.daysInMonth())).$d}else N&&this.$d[N](G);return this.init(),this},Z.set=function(O,B){return this.clone().$set(O,B)},Z.get=function(O){return this[it.p(O)]()},Z.add=function(O,B){var D,tt=this;O=Number(O);var nt=it.p(B),N=function(ft){var mt=et(tt);return it.w(mt.date(mt.date()+Math.round(ft*O)),tt)};if(nt===b)return this.set(b,this.$M+O);if(nt===S)return this.set(S,this.$y+O);if(nt===p)return N(1);if(nt===g)return N(7);var G=(D={},D[f]=r,D[m]=s,D[c]=n,D)[nt]||1,ot=this.$d.getTime()+O*G;return it.w(ot,this)},Z.subtract=function(O,B){return this.add(-1*O,B)},Z.format=function(O){var B=this,D=this.$locale();if(!this.isValid())return D.invalidDate||w;var tt=O||"YYYY-MM-DDTHH:mm:ssZ",nt=it.z(this),N=this.$H,G=this.$m,ot=this.$M,ft=D.weekdays,mt=D.months,pt=D.meridiem,Tt=function(ie,We,cn,Zt){return ie&&(ie[We]||ie(B,tt))||cn[We].slice(0,Zt)},Jt=function(ie){return it.s(N%12||12,ie,"0")},Ot=pt||function(ie,We,cn){var Zt=ie<12?"AM":"PM";return cn?Zt.toLowerCase():Zt};return tt.replace(_,(function(ie,We){return We||(function(cn){switch(cn){case"YY":return String(B.$y).slice(-2);case"YYYY":return it.s(B.$y,4,"0");case"M":return ot+1;case"MM":return it.s(ot+1,2,"0");case"MMM":return Tt(D.monthsShort,ot,mt,3);case"MMMM":return Tt(mt,ot);case"D":return B.$D;case"DD":return it.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return Tt(D.weekdaysMin,B.$W,ft,2);case"ddd":return Tt(D.weekdaysShort,B.$W,ft,3);case"dddd":return ft[B.$W];case"H":return String(N);case"HH":return it.s(N,2,"0");case"h":return Jt(1);case"hh":return Jt(2);case"a":return Ot(N,G,!0);case"A":return Ot(N,G,!1);case"m":return String(G);case"mm":return it.s(G,2,"0");case"s":return String(B.$s);case"ss":return it.s(B.$s,2,"0");case"SSS":return it.s(B.$ms,3,"0");case"Z":return nt}return null})(ie)||nt.replace(":","")}))},Z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Z.diff=function(O,B,D){var tt,nt=this,N=it.p(B),G=et(O),ot=(G.utcOffset()-this.utcOffset())*r,ft=this-G,mt=function(){return it.m(nt,G)};switch(N){case S:tt=mt()/12;break;case b:tt=mt();break;case E:tt=mt()/3;break;case g:tt=(ft-ot)/6048e5;break;case p:tt=(ft-ot)/864e5;break;case m:tt=ft/s;break;case f:tt=ft/r;break;case c:tt=ft/n;break;default:tt=ft}return D?tt:it.a(tt)},Z.daysInMonth=function(){return this.endOf(b).$D},Z.$locale=function(){return F[this.$L]},Z.locale=function(O,B){if(!O)return this.$L;var D=this.clone(),tt=W(O,B,!0);return tt&&(D.$L=tt),D},Z.clone=function(){return it.w(this.$d,this)},Z.toDate=function(){return new Date(this.valueOf())},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toISOString=function(){return this.$d.toISOString()},Z.toString=function(){return this.$d.toUTCString()},Y})(),dt=ct.prototype;return et.prototype=dt,[["$ms",l],["$s",c],["$m",f],["$H",m],["$W",p],["$M",b],["$y",S],["$D",T]].forEach((function(Y){dt[Y[1]]=function(Z){return this.$g(Z,Y[0],Y[1])}})),et.extend=function(Y,Z){return Y.$i||(Y(Z,ct,et),Y.$i=!0),et},et.locale=W,et.isDayjs=k,et.unix=function(Y){return et(1e3*Y)},et.en=F[H],et.Ls=F,et.p={},et}))})($d)),$d.exports}var qq=Ad.exports,aT;function Gq(){return aT||(aT=1,(function(t,e){(function(n,r){t.exports=r(gv())})(qq,(function(n){function r(S){return S&&typeof S=="object"&&"default"in S?S:{default:S}}var s=r(n),l="يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),c={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},f={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},m=/[١٢٣٤٥٦٧٨٩٠]/g,p=/،/g,g=/\d/g,b=/,/g,E={name:"ar",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),months:l,monthsShort:l,weekStart:6,meridiem:function(S){return S>12?"م":"ص"},relativeTime:{future:"بعد %s",past:"منذ %s",s:"ثانية واحدة",m:"دقيقة واحدة",mm:"%d دقائق",h:"ساعة واحدة",hh:"%d ساعات",d:"يوم واحد",dd:"%d أيام",M:"شهر واحد",MM:"%d أشهر",y:"عام واحد",yy:"%d أعوام"},preparse:function(S){return S.replace(m,(function(T){return f[T]})).replace(p,",")},postformat:function(S){return S.replace(g,(function(T){return c[T]})).replace(b,"،")},ordinal:function(S){return S},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return s.default.locale(E,null,!0),E}))})(Ad)),Ad.exports}Gq();var Md={exports:{}},Yq=Md.exports,lT;function Vq(){return lT||(lT=1,(function(t,e){(function(n,r){t.exports=r(gv())})(Yq,(function(n){function r(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var s=r(n),l={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(c){return""+c+(c===1?"er":"")}};return s.default.locale(l,null,!0),l}))})(Md)),Md.exports}Vq();var Kq=gv();const Xq=ys(Kq),ri=Xq;class zo{static PLUGINS=[Oq,Aq,jq,Bq,Hq];alepha=Rt(Re);ref=null;timeouts=[];intervals=[];constructor(){for(const e of zo.PLUGINS)ri.extend(e)}onStart=sr({on:"start",handler:async()=>{await Promise.all(this.intervals.map(async e=>{e.timer==null&&(await e.run(),e.timer=setInterval(e.run,e.duration))}))}});onStop=sr({on:"stop",handler:()=>{for(const e of this.timeouts)this.clearTimeout(e);for(const e of this.intervals)clearInterval(e.timer),e.duration=0,e.timer=null}});setLocale(e){ri.locale(e)}isDateTime(e){return ri.isDayjs(e)}utc(e){return ri.utc(e)}of(e){return ri(e)}toISOString(e=this.now()){return this.of(e).toISOString()}now(){return this.getCurrentDate()}nowISOString(){return this.ref?this.ref.toISOString():new Date().toISOString()}nowMillis(){return this.ref?this.ref.valueOf():Date.now()}getCurrentDate(){return this.ref?this.ref:ri()}duration=(e,n)=>Array.isArray(e)?ri.duration(e[0],e[1]):typeof e=="number"?ri.duration(e,n||"milliseconds"):e;isDurationLike(e){return ri.isDuration(this.duration(e))}async tick(){await new Promise(e=>setTimeout(e,0))}wait(e,n={}){return new Promise(r=>{let s,l;const c=this.createTimeout(()=>{n.signal&&s&&n.signal.removeEventListener("abort",l),r()},e,n.now);n.signal&&(s=()=>this.clearTimeout(c),l=()=>{s(),r()},n.signal.addEventListener("abort",l))})}createInterval(e,n,r=!1){const s={run:e,duration:this.duration(n).asMilliseconds()};return this.intervals.push(s),r&&(s.timer=setInterval(s.run,s.duration)),s}createTimeout(e,n,r){if(this.ref&&r)return this.of(r).add(this.duration(n))<this.now()&&e(),{now:r,duration:0,callback:()=>{},clear:()=>{}};const s={now:r??this.now().valueOf(),duration:this.duration(n).asMilliseconds(),callback:e,clear:()=>this.clearTimeout(s)};return s.timer=setTimeout(()=>{s.callback()},s.duration),this.timeouts.push(s),s}clearTimeout(e){clearTimeout(e.timer),e.duration=0,e.timer=null}clearInterval(e){clearInterval(e.timer),e.duration=0,e.timer=null}async deadline(e,n){const r=new AbortController,s=this.createTimeout(()=>r.abort(),n);try{return await e(r.signal)}finally{this.clearTimeout(s)}}async travel(e,n){this.ref=this.ref||this.now(),this.ref=this.ref.add(this.duration(e,n));const r=this.duration(e,n).asMilliseconds(),s=Date.now();for(const l of this.timeouts){if(!l.timer)continue;clearTimeout(l.timer),l.timer=null;const c=s-l.now;l.duration=l.duration-c-r,l.duration<=0?l.callback():l.timer=setTimeout(()=>{l.callback()},l.duration)}for(const l of this.intervals){if(!l.timer)continue;clearInterval(l.timer),l.timer=null;const c=Math.floor(r/l.duration);for(let f=0;f<c;f++)await l.run()}await this.tick()}pause(){return this.ref=this.ref||this.now(),this.ref}reset(){this.ref=null}}const sM=t=>us(aM,t);class aM extends di{dateTimeProvider=Rt(zo);called=0;onInit(){this.dateTimeProvider.createInterval(async()=>{await this.options.handler(),this.called+=1},this.options.duration)}}sM[Rn]=aM;const lM=gr({name:"alepha.datetime",primitives:[sM],services:[zo]}),Km=()=>{const t=C.useContext(iM);if(!t)throw new kt("Hook 'useAlepha()' must be used within an AlephaContext.Provider");return t},yv=t=>{const e=Km();return C.useMemo(()=>e.inject(t),[])},Qq=R.object({name:R.text({description:"Name of the API link, used for identification."}),group:R.optional(R.text({description:"Group to which the API link belongs, used for categorization."})),path:R.text({description:"Pathname used to access the API link."}),method:R.optional(R.text({description:"HTTP method used for the API link, e.g., GET, POST, etc. If not specified, defaults to GET."})),requestBodyType:R.optional(R.text({description:"Type of the request body for the API link. Default is application/json for POST/PUT/PATCH, null for others."})),service:R.optional(R.text({description:"Service name associated with the API link, used for service discovery."})),rawSchema:R.optional(R.object({body:R.optional(R.string()),response:R.optional(R.string())}))}),uM=R.object({prefix:R.optional(R.text()),links:R.array(Qq)}),Zq=Il({name:"alepha.server.request.apiLinks",schema:R.optional(uM)});class Xm{}class Bc{}class qd{alepha=Rt(Re);formatter=Rt(Bc);destination=Rt(Xm);dateTimeProvider=Rt(zo);levels={SILENT:-1,ERROR:0,WARN:1,INFO:2,DEBUG:3,TRACE:4};service;module;app;appLogLevel="INFO";logLevel="INFO";constructor(e,n){this.service=e,this.module=n,this.app=this.alepha.env.APP_NAME}get context(){return this.alepha.context.get("context")}get level(){const e=this.alepha.store.get("alepha.logger.level");return e&&e!==this.appLogLevel&&(this.appLogLevel=e,this.logLevel=this.parseLevel(this.appLogLevel,this.module)),this.logLevel}parseLevel(e,n){const r=e.toLowerCase().split(/[,;]/);for(const s of r){const l=s.trim();if(l&&(l.includes(":")||l.includes("="))){const[c,f]=l.split(/[:=]/),m=c.trim(),p=f?.trim();if(!p)continue;if(this.matchesPattern(n,m))try{return this.asLogLevel(p)}catch{throw new kt(`Invalid log level '${f?.trim()}' for module pattern '${m}'`)}}}for(const s of r){const l=s.trim();if(l&&!l.includes(":")&&!l.includes("="))try{return this.asLogLevel(l)}catch{throw new Error(`Invalid global log level "${l}"`)}}return"INFO"}matchesPattern(e,n){if(n.includes("*")){const r=n.replace(/\./g,"\\.").replace(/\*/g,".*");return new RegExp(`^${r}`).test(e)}return e.startsWith(n)}asLogLevel(e){const n=e.trim().toUpperCase();if(this.levels[n]!==void 0)return n;throw new kt(`Invalid log level: ${e}`)}error(e,n){this.log("ERROR",e,n)}warn(e,n){this.log("WARN",e,n)}info(e,n){this.log("INFO",e,n)}debug(e,n){this.log("DEBUG",e,n)}trace(e,n){this.log("TRACE",e,n)}log(e,n,r){let s="";typeof n=="string"?s=n:typeof r=="string"&&(s=r);let l;typeof r=="object"&&r?l=r:typeof n=="object"&&n&&(l=n);const c={level:e,message:s,data:l,context:this.context,service:this.service,module:this.module,app:this.app,timestamp:this.dateTimeProvider.nowMillis()};if(this.levels[e]>this.levels[this.level]){this.emit(c);return}const f=this.formatter.format(c);this.emit(c,f),this.destination.write(f,c)}emit(e,n){this.alepha.events.emit("log",{message:n,entry:e},{catch:!0}).catch(()=>null)}}const ho=(t={})=>{const{alepha:e,service:n,module:r}=fc();return Rt(qd,{lifetime:"transient",args:[t.name??n?.name??"Func",r?.name??e.env.MODULE_NAME??"app"]})};ho[Rn]=qd;const Jq=R.object({NO_COLOR:R.optional(R.text()),FORCE_COLOR:R.optional(R.text())});class sc{static COLORS={RESET:"\x1B[0m",BLACK:"\x1B[30m",RED:"\x1B[31m",GREEN:"\x1B[32m",ORANGE:"\x1B[33m",BLUE:"\x1B[34m",PURPLE:"\x1B[35m",CYAN:"\x1B[36m",GREY_LIGHT:"\x1B[37m",GREY_LIGHT_BOLD:"\x1B[1;37m",GREY_DARK:"\x1B[90m",GREY_DARK_BOLD:"\x1B[1;90m",WHITE:"\x1B[97m",WHITE_BOLD:"\x1B[1;97m",SILENT:"",ERROR:"\x1B[31m",WARN:"\x1B[33m",INFO:"\x1B[32m",DEBUG:"\x1B[34m",TRACE:"\x1B[90m"};env=hv(Jq);alepha=Rt(Re);enabled=!0;constructor(){this.enabled=this.isEnabled()}isEnabled(){return this.env.NO_COLOR?!1:this.env.FORCE_COLOR?!0:!this.alepha.isProduction()}set(e,n,r=sc.COLORS.RESET){return this.enabled?`${sc.COLORS[e]}${n}${r}`:n}}class uT extends Xm{write(e){console.log(e)}}class Zg extends Bc{format(e){const n={level:e.level,message:e.message,context:e.context,service:e.service,module:e.module,app:e.app,time:e.timestamp};return e.data instanceof Error?n.error=this.formatJsonError(e.data):n.data=e.data,JSON.stringify(n)}formatJsonError(e){return{name:e.name,message:e.message,stack:e.stack,cause:e.cause instanceof Error?this.formatJsonError(e.cause):void 0}}}class Jg extends Xm{entries=[];options={maxEntries:1e3};write(e,n){this.entries.push({...n,formatted:e}),this.entries.length>this.options.maxEntries&&(this.entries=this.entries.slice(-Math.floor(this.options.maxEntries*.8)))}get logs(){return[...this.entries]}clear(){this.entries=[]}}class Wg extends Bc{color=Rt(sc);alepha=Rt(Re);format(e){const{data:n,timestamp:r}=e;let s="",l="";const c=n instanceof Error;if(c)l=this.formatError(n);else if(n)try{l=JSON.stringify(n)}catch{l="[Unserializable Object]"}s+=this.color.set("GREY_DARK",`[${this.formatTimestamp(r)}]`),s+=" ",s+=this.color.set(e.level,e.level.toUpperCase()),s+=" ",e.app&&(s+=this.color.set("GREY_DARK",`${e.app}`),s+=" "),e.context&&(s+=this.color.set("GREY_DARK",`(${this.formatContext(e.context)})`),s+=" ");const f=this.color.set("GREY_LIGHT",`${e.module}.`),m=this.color.set(this.alepha.isBrowser()?"RESET":"WHITE",e.service);return s+=`<${f}${m}>`,e.message?s+=`: ${this.color.set("CYAN",e.message)}`:s+=":",l&&(c?s+=`
|
|
10
|
+
${l}`:s+=` ${this.color.set("GREY_DARK",l)}`),s}formatTimestamp(e){const n=new Date(e),r=n.getHours(),s=n.getMinutes(),l=n.getSeconds(),c=n.getMilliseconds();return`${this.pad2(r)}:${this.pad2(s)}:${this.pad2(l)}.${this.pad3(c)}`}pad2=e=>(e<10?"0":"")+e;pad3=e=>e<10?`00${e}`:e<100?`0${e}`:`${e}`;formatContext(e){return this.alepha.isProduction()?e:e.slice(0,8)}formatError(e){if(this.alepha.isBrowser())return setTimeout(()=>{console.error(e)}),"";let n=e.stack??e.message;const r=e;for(;r.cause&&r.cause instanceof Error;)n+=`
|
|
11
|
+
Caused by: ${r.cause.stack??r.cause.message}`,r.cause=r.cause.cause;return n}}class cT extends Bc{format(e){let n="";if(n+=`${e.message}`,e.data instanceof Error){n+=`
|
|
12
|
+
${e.data.message}`;let r=e.data.cause;for(;r instanceof Error;)n+=`
|
|
13
|
+
Caused by: ${r.message}`,r=r.cause}return n}}const stt=R.object({level:R.enum(["SILENT","TRACE","DEBUG","INFO","WARN","ERROR"]),message:R.text({size:"rich"}),service:R.text(),module:R.text(),context:R.optional(R.text()),app:R.optional(R.text()),data:R.optional(R.any()),timestamp:R.number()});gr({name:"alepha.logger",primitives:[ho],services:[qd,uT,Jg,Zg,Wg,cT,sc],register:t=>{const e=t.parseEnv(Wq),n=()=>{if(t.isTest()&&!e.LOG_LEVEL){const s=l=>{if(l.task?.result?.state==="fail"){const c=t.inject(Jg);for(const f of c.logs)console.log(f.formatted)}};try{t.store.get("alepha.test.afterEach")?.(s),t.store.get("alepha.test.onTestFinished")?.(s)}catch{}return Jg}return uT},r=()=>e.LOG_FORMAT?e.LOG_FORMAT==="json"?Zg:e.LOG_FORMAT==="raw"?cT:Wg:t.isProduction()&&!t.isBrowser()?Zg:Wg;t.with({optional:!0,provide:Xm,use:n()}),t.with({optional:!0,provide:Bc,use:r()}),t.store.set("alepha.logger",t.inject(qd,{lifetime:"transient",args:["Alepha","alepha.core"]})),t.store.set("alepha.logger.level",e.LOG_LEVEL??(t.isTest()?"trace":"info"))}});const Wq=R.object({LOG_LEVEL:R.optional(R.text({description:`Application log level on startup.
|
|
14
|
+
Levels are: trace, debug, info, warn, error, silent
|
|
15
|
+
Level can be set for a specific module:
|
|
16
|
+
"my.module.name:debug,info" -> Set debug level for my.module.name and info for all other modules
|
|
17
|
+
"alepha:trace,info" -> Set trace level for all alepha modules and info for all other modules`,lowercase:!0})),LOG_FORMAT:R.optional(R.enum(["json","pretty","raw"],{description:"Default log format for the application.",lowercase:!0}))});class tG extends kt{}class Hy{}class Fy{dateTimeProvider=Rt(zo);log=ho();store={};getCalls=[];setCalls=[];delCalls=[];_stats={hits:0,misses:0,sets:0,deletes:0};getError=null;setError=null;delError=null;constructor(e={}){this.getError=e.getError??null,this.setError=e.setError??null,this.delError=e.delError??null}async get(e,n){if(this.getCalls.push({name:e,key:n,timestamp:Date.now()}),this.getError)throw this.getError;const r=this.store[e]?.[n]?.data;return r!==void 0?this._stats.hits++:this._stats.misses++,r}async set(e,n,r,s){if(this.setCalls.push({name:e,key:n,value:r,ttl:s,timestamp:Date.now()}),this._stats.sets++,this.setError)throw this.setError;return this.store[e]==null&&(this.store[e]={}),this.store[e][n]??={},this.store[e][n].data=r,this.log.debug("Setting cache for name",{name:e,key:n,ttl:s}),this.store[e][n].timeout&&(this.dateTimeProvider.clearTimeout(this.store[e][n].timeout),this.store[e][n].timeout=void 0),s&&(this.store[e][n].timeout=this.dateTimeProvider.createTimeout(()=>this.del(e,n),s)),this.store[e][n].data}async del(e,...n){if(this.delCalls.push({name:e,keys:n,timestamp:Date.now()}),this._stats.deletes++,this.delError)throw this.delError;if(n.length===0){if(this.log.debug("Deleting all cache for name",{name:e}),this.store[e])for(const r of Object.keys(this.store[e])){const s=this.store[e][r]?.timeout;s&&this.dateTimeProvider.clearTimeout(s)}delete this.store[e];return}this.log.debug("Deleting cache for name",{name:e,keys:n});for(const r of n){if(this.store[e]==null)break;const s=this.store[e][r]?.timeout;s&&this.dateTimeProvider.clearTimeout(s),delete this.store[e][r]}Object.keys(this.store[e]??{}).length===0&&delete this.store[e]}async has(e,n){return this.store[e]?.[n]?.data!=null}async keys(e,n){const r=this.store[e]??{},s=Object.keys(r);return n?s.filter(l=>l.startsWith(n)):s}async clear(){this.log.debug("Clearing all cache");for(const e of Object.keys(this.store))for(const n of Object.keys(this.store[e])){const r=this.store[e][n]?.timeout;r&&this.dateTimeProvider.clearTimeout(r)}this.store={}}async incr(e,n,r){this.store[e]==null&&(this.store[e]={});const s=this.store[e][n]?.data;let l=0;if(s){const f=new TextDecoder().decode(s);l=Number.parseInt(f,10)||0}const c=l+r;return this.store[e][n]??={},this.store[e][n].data=new TextEncoder().encode(String(c)),c}stats(){return{...this._stats}}wasSet(e,n){return n===void 0?this.setCalls.some(r=>r.name===e):this.setCalls.some(r=>r.name===e&&r.key===n)}wasGet(e,n){return n===void 0?this.getCalls.some(r=>r.name===e):this.getCalls.some(r=>r.name===e&&r.key===n)}wasDeleted(e,n){return n===void 0?this.delCalls.some(r=>r.name===e):this.delCalls.some(r=>r.name===e&&r.keys.includes(n))}size(e){return e===void 0?Object.values(this.store).reduce((n,r)=>n+Object.keys(r).length,0):Object.keys(this.store[e]??{}).length}names(){return Object.keys(this.store)}reset(){for(const e of Object.keys(this.store))for(const n of Object.keys(this.store[e])){const r=this.store[e][n]?.timeout;r&&this.dateTimeProvider.clearTimeout(r)}this.store={},this.getCalls=[],this.setCalls=[],this.delCalls=[],this._stats={hits:0,misses:0,sets:0,deletes:0},this.getError=null,this.setError=null,this.delError=null}}const bv=(t={})=>{const e=us(cM,t);return Object.setPrototypeOf((...r)=>e.run(...r),e)},eG=R.object({CACHE_ENABLED:R.boolean({default:!0}),CACHE_DEFAULT_TTL:R.number({default:300,description:"The default time to live for cache entries. In seconds."})});class cM extends di{env=hv(eG);dateTimeProvider=Rt(zo);provider=this.$provider();encoder=new TextEncoder;decoder=new TextDecoder;codes={BINARY:1,JSON:2,STRING:3};get container(){return this.options.name??`${this.config.service.name}:${this.config.propertyKey}`}async run(...e){const n=this.options.handler;if(!n)throw new Error("Cache handler is not defined.");const r=this.key(...e),s=await this.get(r);if(s)return s;const l=await n(...e);return await this.set(r,l),l}key(...e){return this.options.key?this.options.key(...e):JSON.stringify(e)}async invalidate(...e){const n=[];for(const r of e)if(r.endsWith("*")){const s=await this.provider.keys(this.container,r.slice(0,-1));n.push(...s)}else n.push(r);await this.provider.del(this.container,...n)}async set(e,n,r){const s=this.dateTimeProvider.duration(r??this.options.ttl??[this.env.CACHE_DEFAULT_TTL,"seconds"]).as("milliseconds");await this.provider.set(this.container,e,this.serialize(n),s>0?s:void 0)}async get(e){if(!this.alepha.isStarted()||this.options.disabled||!this.env.CACHE_ENABLED)return;const n=await this.provider.get(this.container,e);if(n)return await this.deserialize(n)}serialize(e){return e instanceof Uint8Array?new Uint8Array([this.codes.BINARY,...e]):typeof e=="string"?new Uint8Array([this.codes.STRING,...this.encoder.encode(e)]):new Uint8Array([this.codes.JSON,...this.encoder.encode(JSON.stringify(e))])}async deserialize(e){const n=e[0],r=e.slice(1);if(n===this.codes.BINARY)return r;if(n===this.codes.JSON)return JSON.parse(this.decoder.decode(r));if(n===this.codes.STRING)return this.decoder.decode(r);throw new tG(`Unknown serialization type: ${n}`)}$provider(){return this.options.provider?this.options.provider==="memory"?this.alepha.inject(Fy):this.alepha.inject(this.options.provider):this.alepha.inject(Hy)}}bv[Rn]=cM;gr({name:"alepha.cache",primitives:[bv],services:[Hy,Fy],register:t=>t.with({optional:!0,provide:Hy,use:Fy})});const nG=(t,e)=>!!t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"&&"status"in t&&typeof t.status=="number"?e?t.status===e:!0:!1;class qy extends kt{name="HttpError";static is=nG;static toJSON(e){const n={error:e.error,status:e.status,message:e.message};return e.details&&(n.details=e.details),e.requestId&&(n.requestId=e.requestId),e.reason&&(n.cause=e.reason),n}error;status;requestId;details;reason;constructor(e,n){super(e.message,{cause:n}),this.status=e.status??500,this.details=e.details,this.requestId=e.requestId,typeof e.cause=="object"?this.reason={name:e.cause.name,message:e.cause.message}:n instanceof Error&&(this.reason={name:n.name,message:n.message}),this.constructor.name==="HttpError"?this.error=e.error??rG[this.status]??"HttpError":this.error=this.constructor.name}}const rG={400:"BadRequestError",401:"UnauthorizedError",403:"ForbiddenError",404:"NotFoundError",405:"MethodNotAllowedError",409:"ConflictError",410:"GoneError",413:"PayloadTooLargeError",415:"UnsupportedMediaTypeError",429:"TooManyRequestsError",500:"InternalServerError",501:"NotImplementedError",502:"BadGatewayError",503:"ServiceUnavailableError",504:"GatewayTimeoutError"},oG=t=>{if(t.requestBodyType==="multipart/form-data")return!0;if(t.schema?.body&&"properties"in t.schema.body){const e=t.schema.body.properties;for(const n in e)if(e[n].format==="binary")return!0}return!1},iG=R.object({error:R.text({description:"HTTP error name"}),status:R.integer({description:"HTTP status code"}),message:R.text({description:"Short text which describe the error",size:"rich"}),details:R.optional(R.text({description:"Detailed description of the error",size:"rich"})),requestId:R.optional(R.text()),cause:R.optional(R.object({name:R.text(),message:R.text({description:"Cause Error message",size:"rich"})}))},{title:"HttpError",description:"Generic response after a failed operation"});class fM{log=ho();alepha=Rt(Re);cache=bv();pendingRequests={};async fetchAction(e){const n=e.action,r=e.options??{},s=e.config??{},l=e.host??"",c={...r.request},f=n.method,m={},p=this.url(l,n,s);return await this.alepha.events.emit("client:onRequest",{route:n,config:s,options:r,headers:m,request:c}),c.method??=f,await this.body(c,m,n,s),c.headers={...s.headers,...Object.fromEntries(new Headers(c.headers).entries()),...m},await this.fetch(p,{...c,schema:n.schema,...r})}async fetch(e,n={}){const r={cache:n.localCache,schema:n.schema?.response,key:n.key};n.method??="GET",this.log.trace("Request",{url:e,method:n.method,body:n.body,headers:n.headers,options:r});const s=await this.cache.get(e);if(s&&n.method==="GET")if(s.etag)n.headers=new Headers(n.headers),n.headers.has("if-none-match")||n.headers.set("if-none-match",s.etag);else return{data:s.data,status:200,statusText:"OK",headers:new Headers};await this.alepha.events.emit("client:beforeFetch",{url:e,options:r,request:n});const l=r.key??JSON.stringify({url:e,method:n.method,body:n.body}),c=this.pendingRequests[l];return c?(this.log.info("Request already pending",l),c):(this.pendingRequests[l]=fetch(e,n).then(async f=>{this.log.debug("Response",{url:e,status:f.status});const m={data:await this.responseData(f,r),status:f.status,statusText:f.statusText,headers:f.headers,raw:f};if(n.method==="GET"){if(r.cache)await this.cache.set(e,{data:m.data},typeof r.cache=="boolean"?void 0:r.cache);else if(!this.alepha.isBrowser()){const p=f.headers.get("etag")??void 0;p&&await this.cache.set(e,{data:m.data,etag:p})}}return m}).finally(()=>{delete this.pendingRequests[l]}),this.pendingRequests[l])}url(e,n,r){let s=e;return n.prefix&&(s+=n.prefix),s+=n.path,s=this.pathVariables(s,n,r),s=this.queryParams(s,n,r),s}async body(e,n,r,s={}){if(typeof e.headers=="object"&&"content-type"in e.headers&&e.headers["content-type"]==="multipart/form-data"||oG(r)){typeof e.headers=="object"&&"content-type"in e.headers&&delete e.headers["content-type"];const c=new FormData;for(const[f,m]of Object.entries(s.body??{})){if(typeof m=="string"){c.append(f,m);continue}if(m instanceof Blob){c.append(f,m);continue}rq(m)&&c.append(f,new File([await m.arrayBuffer()],m.name,{type:m.type}))}e.body=c;return}!e.body&&r.schema?.body&&(n["content-type"]="application/json",e.body=this.alepha.codec.encode(r.schema?.body,s.body,{as:"string"}))}async responseData(e,n){if(e.status===304){let r=e.url;typeof window<"u"&&(r=r.replace(window.location.origin,""));const s=await this.cache.get(r);return s?s.data:""}if(e.status!==204){if(this.isMaybeFile(e))return this.createFileLike(e);if(e.headers.get("Content-Type")?.startsWith("text/"))return await e.text();if(e.headers.get("Content-Type")==="application/json"){const r=await e.json();if(e.status>=400){const s=this.alepha.codec.decode(iG,r),l=new qy(s);throw await this.alepha.events.emit("client:onError",{error:l}),l}return n.schema?this.alepha.codec.decode(n.schema,r):r}if(e.status>=400){const r=new qy({status:e.status,message:`An error occurred while fetching the resource. (${e.statusText})`});throw await this.alepha.events.emit("client:onError",{error:r}),r}return e}}isMaybeFile(e){const n=e.headers.get("Content-Type");return n?e.headers.get("Content-Disposition")?.includes("attachment")?!0:n.startsWith("application/octet-stream")||n.startsWith("application/pdf")||n.startsWith("application/zip")||n.startsWith("image/")||n.startsWith("video/")||n.startsWith("audio/"):!1}createFileLike(e,n=""){const r=(e.headers.get("Content-Disposition")??"").match(/filename="(.+)"/);return{name:r?.[1]?r[1]:n,type:e.headers.get("Content-Type")??"application/octet-stream",size:Number(e.headers.get("Content-Length")??0),lastModified:Date.now(),stream:()=>{throw new Error("Not implemented")},arrayBuffer:async()=>await e.arrayBuffer(),text:async()=>await e.text()}}pathVariables(e,n,r={}){if(typeof r.params=="object"){const s=n.schema?.params?this.alepha.codec.decode(n.schema.params,r.params):r.params;for(const l of Object.keys(s))e=e.replace(`:${l}`,s[l]),e=e.replace(`{${l}}`,s[l])}return e}queryParams(e,n,r={}){if(typeof r.query=="object"){const s=n.schema?.query?this.alepha.codec.decode(n.schema.query,r.query??{}):r.query;for(const l of Object.keys(s))s[l]===void 0&&delete s[l],typeof s[l]=="object"&&(s[l]=JSON.stringify(s[l]));return`${e}?${new URLSearchParams(s).toString()}`}return e}}class sG extends qy{name="UnauthorizedError";constructor(e="Not allowed to access this resource",n){super({message:e,status:401},n)}}class aG{headers={};status;body;redirect(e,n=301){this.status=n,this.headers.location=e}setStatus(e){return this.status=e,this}setHeader(e,n){return this.headers[e.toLowerCase()]=n,this}setBody(e){return this.body=e,this}}R.object({ok:R.boolean({description:"True when operation succeed"}),id:R.optional(R.union([R.text(),R.integer()])),count:R.optional(R.number({description:"Number of resources affected"}))},{title:"Ok",description:"Generic response after a successful operation on a resource"});const dM=gr({name:"alepha.server",primitives:[],services:[fM]});class Uc{static path={apiLinks:"/api/_links"};log=ho();alepha=Rt(Re);httpClient=Rt(fM);serverLinks=[];getServerLinks(){return this.alepha.isBrowser()?(this.log.warn("Getting server links in the browser is not supported. Use `fetchLinks` to get links from the server."),[]):this.serverLinks}registerLink(e){if(this.alepha.isBrowser()){this.log.warn("Registering links in the browser is not supported. Use `fetchLinks` to get links from the server.");return}if(!e.handler&&!e.host)throw new kt("Can't create link - 'handler' or 'host' is required");this.serverLinks.some(n=>n.name===e.name)&&(this.serverLinks=this.serverLinks.filter(n=>n.name!==e.name)),e.rawSchema||(e.rawSchema={},e.schema?.body&&(e.rawSchema.body=JSON.stringify(e.schema.body)),e.schema?.response&&(e.rawSchema.response=JSON.stringify(e.schema.response))),this.serverLinks.push(e)}get links(){const e=this.alepha.store.get("alepha.server.request.apiLinks")?.links;if(e){if(this.alepha.isBrowser())return e;const n=[];for(const r of e){const s=this.serverLinks.find(l=>l.name===r.name);s&&n.push(s)}return n}return this.serverLinks??[]}async fetchLinks(){const{data:e}=await this.httpClient.fetch(`${Uc.path.apiLinks}`,{method:"GET",schema:{response:uM}});return this.alepha.store.set("alepha.server.request.apiLinks",e),e.links}client(e={}){return new Proxy({},{get:(n,r)=>{if(typeof r=="string")return this.createVirtualAction(r,e)}})}can(e){return this.links.some(n=>n.name===e)}async follow(e,n={},r={}){this.log.trace("Following link",{name:e,config:n,options:r});const s=await this.getLinkByName(e,r);return s.handler&&!r.request?(this.log.trace("Local link found",{name:e}),s.handler({method:s.method,url:new URL(`http://localhost${s.path}`),query:n.query??{},body:n.body??{},params:n.params??{},headers:n.headers??{},metadata:{},reply:new aG},r)):(this.log.trace("Remote link found",{name:e,host:s.host,service:s.service}),this.followRemote(s,n,r).then(l=>l.data))}createVirtualAction(e,n={}){const r=async(s={},l={})=>this.follow(e,s,{...n,...l});return Object.defineProperty(r,"name",{value:e,writable:!1}),r.run=async(s={},l={})=>this.follow(e,s,{...n,...l}),r.fetch=async(s={},l={})=>{const c=await this.getLinkByName(e,n);return this.followRemote(c,s,l)},r.can=()=>this.can(e),r.schema=()=>{const s=this.links.find(l=>l.name===e);if(!s)throw new kt(`Link ${e} not found.`);return s.rawSchema&&!s.schema&&(s.schema={},s.schema.body=s.rawSchema?.body?wo(JSON.parse(s.rawSchema.body)):void 0,s.schema.response=s.rawSchema?.response?wo(JSON.parse(s.rawSchema.response)):void 0),s.schema},r}async followRemote(e,n={},r={}){r.request??={},r.request.headers=new Headers(r.request.headers);const s=this.alepha.context.get("request");s?.headers.authorization&&r.request.headers.set("authorization",s.headers.authorization);const l=this.alepha.context.get("context");typeof l=="string"&&r.request.headers.set("x-request-id",l);const c={...e,schema:{body:R.any(),response:R.any()}};return!e.host&&e.service&&(c.path=`/${e.service}${c.path}`),c.path=`${c.prefix??"/api"}${c.path}`,c.prefix=void 0,this.httpClient.fetchAction({host:e.host,config:n,options:r,action:c})}async getLinkByName(e,n={}){this.alepha.isBrowser()&&!this.alepha.store.get("alepha.server.request.apiLinks")&&await this.fetchLinks();const r=this.links.find(s=>s.name===e&&(!n.group||s.group===n.group)&&(!n.service||n.service===s.service));if(!r){const s=new sG(`Action ${e} not found.`);throw await this.alepha.events.emit("client:onError",{route:r,error:s}),s}return n.hostname?{...r,host:n.hostname}:r}}const mM=t=>Rt(Uc).client(t);mM[Rn]="$client";const hM=t=>us(pM,t);class pM extends di{get name(){return this.options.name??this.config.propertyKey}}hM[Rn]=pM;const lG=gr({name:"alepha.server.links",atoms:[Zq],primitives:[hM,mM],services:[Uc]}),gM=(t,e)=>{const n=Km();C.useEffect(()=>{if(!n.isBrowser())return;const r=[];for(const[s,l]of Object.entries(t))r.push(n.events.on(s,l));return()=>{for(const s of r)s()}},e)};function vv(t,e){const n=Km();C.useMemo(()=>{},[e]);const[r,s]=C.useState(n.store.get(t));return C.useEffect(()=>{if(!n.isBrowser())return;const l=t instanceof sl?t.key:t;return n.events.on("state:mutate",c=>{c.key===l&&s(c.value)})},[]),[r,l=>{n.store.set(t,l)}]}const yM=gr({name:"alepha.react.core"});class uG extends Vm{name="ValidationError";constructor(e){super({message:e.message,instancePath:e.path,schemaPath:"",keyword:"not",params:{}})}}const cG=gr({name:"alepha.react.form"});class fG{expand(e){const n=[],r=[];return e.description||e.image||e.url||e.siteName||e.locale||e.type||e.og||e.twitter?(e.description&&n.push({name:"description",content:e.description}),e.url&&r.push({rel:"canonical",href:e.url}),this.expandOpenGraph(e,n),this.expandTwitter(e,n),{meta:n,link:r}):{meta:n,link:r}}expandOpenGraph(e,n){const r=e.og?.title??e.title,s=e.og?.description??e.description,l=e.og?.image??e.image;(e.type||r)&&n.push({property:"og:type",content:e.type??"website"}),e.url&&n.push({property:"og:url",content:e.url}),r&&n.push({property:"og:title",content:r}),s&&n.push({property:"og:description",content:s}),l&&(n.push({property:"og:image",content:l}),e.imageWidth&&n.push({property:"og:image:width",content:String(e.imageWidth)}),e.imageHeight&&n.push({property:"og:image:height",content:String(e.imageHeight)}),e.imageAlt&&n.push({property:"og:image:alt",content:e.imageAlt})),e.siteName&&n.push({property:"og:site_name",content:e.siteName}),e.locale&&n.push({property:"og:locale",content:e.locale})}expandTwitter(e,n){const r=e.twitter?.title??e.title,s=e.twitter?.description??e.description,l=e.twitter?.image??e.image;(e.twitter?.card||r||l)&&n.push({name:"twitter:card",content:e.twitter?.card??(l?"summary_large_image":"summary")}),e.url&&n.push({name:"twitter:url",content:e.url}),r&&n.push({name:"twitter:title",content:r}),s&&n.push({name:"twitter:description",content:s}),l&&(n.push({name:"twitter:image",content:l}),e.imageAlt&&n.push({name:"twitter:image:alt",content:e.imageAlt})),e.twitter?.site&&n.push({name:"twitter:site",content:e.twitter.site}),e.twitter?.creator&&n.push({name:"twitter:creator",content:e.twitter.creator})}}class bM{log=ho();seoExpander=Rt(fG);global=[];warnedAboutHtmlAttributes=!1;resolveGlobalHead(){const e={};for(const n of this.global??[]){const r=typeof n=="function"?n():n;r.htmlAttributes&&(e.htmlAttributes={...e.htmlAttributes,...r.htmlAttributes})}return e}fillHead(e){e.head={...e.head};for(const n of this.global??[]){const r=typeof n=="function"?n():n;this.mergeHead(e,r)}for(const n of e.layers)n.route?.head&&!n.error&&this.fillHeadByPage(n.route,e,n.props??{})}mergeHead(e,n){const{meta:r,link:s}=this.seoExpander.expand(n);e.head={...e.head,...n,meta:[...e.head.meta??[],...r,...n.meta??[]],link:[...e.head.link??[],...s,...n.link??[]],script:[...e.head.script??[],...n.script??[]]}}fillHeadByPage(e,n,r){if(!e.head)return;n.head??={};const s=typeof e.head=="function"?e.head(r,n.head):e.head,{meta:l,link:c}=this.seoExpander.expand(s);n.head.meta=[...n.head.meta??[],...l],n.head.link=[...n.head.link??[],...c],s.title&&(n.head??={},n.head.titleSeparator?n.head.title=`${s.title}${n.head.titleSeparator}${n.head.title}`:n.head.title=s.title,n.head.titleSeparator=s.titleSeparator),s.htmlAttributes&&!this.warnedAboutHtmlAttributes&&(this.warnedAboutHtmlAttributes=!0,this.log.warn("Page-level htmlAttributes are ignored. Use global $head() for htmlAttributes instead, as they are sent before page loaders run for early streaming optimization.")),s.bodyAttributes&&(n.head.bodyAttributes={...n.head.bodyAttributes,...s.bodyAttributes}),s.meta&&(n.head.meta=[...n.head.meta??[],...s.meta??[]]),s.link&&(n.head.link=[...n.head.link??[],...s.link??[]]),s.script&&(n.head.script=[...n.head.script??[],...s.script??[]])}}const Sv=t=>us(vM,t);class vM extends di{provider=Rt(bM);onInit(){this.provider.global=[...this.provider.global??[],this.options]}}Sv[Rn]=vM;class Ev{alepha=Rt(Re);headProvider=Rt(bM);get document(){return window.document}fillAndRenderHead(e){this.alepha.isBrowser()&&(this.headProvider.fillHead(e),e.head&&this.renderHead(this.document,e.head))}getHead(e){return{get title(){return e.title},get htmlAttributes(){const n={};for(const r of e.documentElement.attributes)n[r.name]=r.value;return n},get bodyAttributes(){const n={};for(const r of e.body.attributes)n[r.name]=r.value;return n},get meta(){const n=[];for(const r of e.head.querySelectorAll("meta[name]")){const s=r.getAttribute("name"),l=r.getAttribute("content");s&&l&&n.push({name:s,content:l})}for(const r of e.head.querySelectorAll("meta[property]")){const s=r.getAttribute("property"),l=r.getAttribute("content");s&&l&&n.push({property:s,content:l})}return n}}}renderHead(e,n){if(n.title&&(e.title=n.title),n.bodyAttributes)for(const[r,s]of Object.entries(n.bodyAttributes))s?e.body.setAttribute(r,s):e.body.removeAttribute(r);if(n.htmlAttributes)for(const[r,s]of Object.entries(n.htmlAttributes))s?e.documentElement.setAttribute(r,s):e.documentElement.removeAttribute(r);if(n.meta)for(const r of n.meta)this.renderMetaTag(e,r);if(n.link)for(const r of n.link){const{rel:s,href:l}=r;let c=e.querySelector(`link[rel="${s}"][href="${l}"]`);c||(c=e.createElement("link"),c.setAttribute("rel",s),c.setAttribute("href",l),r.type&&c.setAttribute("type",r.type),r.as&&c.setAttribute("as",r.as),r.crossorigin!=null&&c.setAttribute("crossorigin",""),e.head.appendChild(c))}if(n.script)for(const r of n.script)this.renderScriptTag(e,r)}renderScriptTag(e,n){const r=e.createElement("script");if(typeof n=="string"){r.textContent=n,e.head.appendChild(r);return}const{content:s,...l}=n;if(!(l.src&&e.querySelector(`script[src="${l.src}"]`))){for(const[c,f]of Object.entries(l))f===!0?r.setAttribute(c,""):f!==void 0&&f!==!1&&r.setAttribute(c,String(f));s&&(r.textContent=s),e.head.appendChild(r)}}renderMetaTag(e,n){const{content:r}=n;if(n.property){const s=e.querySelector(`meta[property="${n.property}"]`);if(s)s.setAttribute("content",r);else{const l=e.createElement("meta");l.setAttribute("property",n.property),l.setAttribute("content",r),e.head.appendChild(l)}return}if(n.name){const s=e.querySelector(`meta[name="${n.name}"]`);if(s)s.setAttribute("content",r);else{const l=e.createElement("meta");l.setAttribute("name",n.name),l.setAttribute("content",r),e.head.appendChild(l)}}}}const dG=gr({name:"alepha.react.head",primitives:[Sv],services:[yM,Ev]});class mG{parseRequestCookies(e){const n={},r=e.split(";");for(const s of r){const[l,c]=s.split("=");!l||!c||(n[l.trim()]=c.trim())}return n}serializeResponseCookies(e,n){const r=[];for(const[s,l]of Object.entries(e)){if(l==null){r.push(`${s}=; Path=/; Max-Age=0`);continue}l.value&&r.push(this.cookieToString(s,l,n))}return r}cookieToString(e,n,r){const s=[];return s.push(`${e}=${n.value}`),n.path&&s.push(`Path=${n.path}`),n.maxAge&&s.push(`Max-Age=${n.maxAge}`),n.secure!==!1&&r&&s.push("Secure"),n.httpOnly&&s.push("HttpOnly"),n.sameSite&&s.push(`SameSite=${n.sameSite}`),n.domain&&s.push(`Domain=${n.domain}`),s.join("; ")}}const xv=t=>us(SM,t);class SM extends di{cookieParser=Rt(mG);alepha=Rt(Re);dateTimeProvider=Rt(zo);cookie;get name(){return this.options.name??`${this.config.propertyKey}`}set(e){const n=JSON.stringify(this.alepha.codec.decode(this.options.schema,e)),r=this.options;if(r.compress)throw new kt("Compression is not supported in browser cookies.");if(r.encrypt)throw new kt("Encryption is not supported in browser cookies.");if(r.sign)throw new kt("Signing is not supported in browser cookies.");const s={value:encodeURIComponent(n),path:r.path??"/",sameSite:r.sameSite??"lax",secure:!1,httpOnly:!1,domain:r.domain};r.ttl&&(s.maxAge=this.dateTimeProvider.duration(r.ttl).as("seconds")),document.cookie=this.cookieParser.cookieToString(this.name,s)}get(e){const n=this.cookieParser.parseRequestCookies(document.cookie)[this.name];if(!n)return;const r=decodeURIComponent(n);if(this.options.compress)throw new kt("Compression is not supported in browser cookies.");if(this.options.encrypt)throw new kt("Encryption is not supported in browser cookies.");if(this.options.sign)throw new kt("Signing is not supported in browser cookies.");return this.alepha.codec.decode(this.options.schema,JSON.parse(r))}del(){const e=this.options,n={value:"",path:e.path??"/",sameSite:e.sameSite??"lax",secure:!1,httpOnly:!1,domain:e.domain,maxAge:0};document.cookie=this.cookieParser.cookieToString(this.name,n)}}xv[Rn]=SM;gr({name:"alepha.server.cookies",primitives:[],services:[dM]});class EM{log=ho();alepha=Rt(Re);dateTimeProvider=Rt(zo);cookie=xv({name:"lang",schema:R.text(),ttl:[1,"year"]});registry=[];options={fallbackLang:"en"};dateFormat=new Intl.DateTimeFormat(this.lang);numberFormat=new Intl.NumberFormat(this.lang);get languages(){const e=new Set;for(const n of this.registry)e.add(n.lang);return e.add(this.options.fallbackLang),Array.from(e)}constructor(){this.refreshLocale()}onRender=sr({on:"server:onRequest",priority:"last",handler:async({request:e})=>{this.alepha.store.set("alepha.react.i18n.lang",this.cookie.get(e))}});onStart=sr({on:"start",handler:async()=>{if(this.alepha.isBrowser()){const e=this.cookie.get();e&&this.alepha.store.set("alepha.react.i18n.lang",e);for(const n of this.registry)(n.lang===this.lang||n.lang===this.options.fallbackLang)&&(this.log.trace("Loading language",{lang:n.lang,name:n.name,target:n.target}),n.translations=await n.loader());return}for(const e of this.registry)e.translations=await e.loader()}});refreshLocale(){this.numberFormat=new Intl.NumberFormat(this.lang),this.dateFormat=new Intl.DateTimeFormat(this.lang),this.dateTimeProvider.setLocale(this.lang),ml.setLocale(this.lang)}setLang=async e=>{if(this.alepha.isBrowser()){for(const n of this.registry)if(e===n.lang){if(Object.keys(n.translations).length>0)continue;n.translations=await n.loader()}this.cookie.set(e)}this.alepha.store.set("alepha.react.i18n.lang",e),this.refreshLocale()};mutate=sr({on:"state:mutate",handler:async({key:e,value:n})=>{if(e==="alepha.react.i18n.lang"&&this.alepha.isBrowser()){let r=!1;for(const s of this.registry)if(n===s.lang){if(Object.keys(s.translations).length>0)continue;s.translations=await s.loader(),r=!0}this.refreshLocale(),r&&this.alepha.store.set("alepha.react.i18n.lang",n)}}});get lang(){return this.alepha.store.get("alepha.react.i18n.lang")||this.options.fallbackLang}translate=(e,n=[])=>{for(const r of this.registry)if(r.lang===this.lang&&r.translations[e])return this.render(r.translations[e],n);for(const r of this.registry)if(r.lang===this.options.fallbackLang&&r.translations[e])return this.render(r.translations[e],n);return e};l=(e,n={})=>{if(typeof e=="number"&&!n.date)return new Intl.NumberFormat(this.lang,n.number).format(e);if(e instanceof Date||this.dateTimeProvider.isDateTime(e)||typeof e=="string"&&n.date||typeof e=="number"&&n.date){let r=this.dateTimeProvider.of(e);return n.timezone&&(r=r.tz(n.timezone)),typeof n.date=="string"?n.date==="fromNow"?r.locale(this.lang).fromNow():r.locale(this.lang).format(n.date):n.date?new Intl.DateTimeFormat(this.lang,n.timezone?{...n.date,timeZone:n.timezone}:n.date).format(r.toDate()):n.timezone?new Intl.DateTimeFormat(this.lang,{timeZone:n.timezone}).format(r.toDate()):new Intl.DateTimeFormat(this.lang).format(r.toDate())}return e instanceof Vm?ml.translateError(e,this.lang):e};tr=(e,n={})=>{const r=this.translate(e,n.args||[]);return r===e&&n.default?n.default:r};render(e,n){let r=e;for(let s=0;s<n.length;s++)r=r.replace(`$${s+1}`,n[s]);return r}}const xM=t=>us(wM,t);class wM extends di{provider=Rt(EM);onInit(){this.provider.registry.push({target:this.config.service.name,name:this.options.name??this.config.propertyKey,lang:this.options.lang??this.config.propertyKey,loader:async()=>(await this.options.lazy()).default,translations:{}})}}xM[Rn]=wM;const hG=gr({name:"alepha.react.i18n",primitives:[xM],services:[EM]}),att=Il({name:"alepha.ui.sidebar",schema:R.object({opened:R.boolean(),collapsed:R.boolean(),width:R.number(),defaultWidth:R.number(),collapsedWidth:R.number(),maxWidth:R.number(),collapseThreshold:R.number(),hoverDelay:R.number()}),default:{opened:!1,collapsed:!1,width:300,defaultWidth:300,collapsedWidth:78,maxWidth:500,collapseThreshold:240,hoverDelay:300}}),Ju=Il({name:"alepha.ui.theme",schema:R.object({index:R.integer()}),default:{index:0}}),TM={name:"Default",description:"Default Alepha Theme"},CM={name:"Midnight",description:"Clean, developer-focused design",primaryColor:"pink",primaryShade:{light:7,dark:8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',fontFamilyMonospace:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',headings:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',fontWeight:"600",textWrap:"wrap",sizes:{h1:{fontSize:"2rem",lineHeight:"1.25"},h2:{fontSize:"1.5rem",lineHeight:"1.3"},h3:{fontSize:"1.25rem",lineHeight:"1.4"},h4:{fontSize:"1rem",lineHeight:"1.5"},h5:{fontSize:"0.875rem",lineHeight:"1.5"},h6:{fontSize:"0.75rem",lineHeight:"1.5"}}},radius:{xs:"3px",sm:"6px",md:"6px",lg:"8px",xl:"12px"},defaultRadius:"sm",colors:{dark:["#d0d7de","#8b949e","#6e7681","#484f58","#30363d","#21262d","#161b22","#151b23","#0d1117","#010409"],gray:["#f6f8fa","#eaeef2","#d0d7de","#afb8c1","#8c959f","#6e7781","#57606a","#424a53","#32383f","#24292f"],blue:["#ddf4ff","#b6e3ff","#80ccff","#54aeff","#218bff","#0969da","#0550ae","#033d8b","#0a3069","#002155"],green:["#dafbe1","#aceebb","#6fdd8b","#4ac26b","#2da44e","#1a7f37","#116329","#044f1e","#003d16","#002d11"],red:["#ffebe9","#ffcecb","#ffaba8","#ff8182","#fa4549","#cf222e","#a40e26","#82071e","#660018","#4c0014"]}},Gy=Il({name:"alepha.ui.themeList",schema:R.array(R.json()),default:[TM,CM]});class Yy{alepha=Rt(Re);cookie=xv({name:"theme",schema:Ju.schema,ttl:[1,"year"]});head=Sv(()=>{const e=this.getTheme();return!e||!e.name?{}:{htmlAttributes:{"data-theme":e.name}}});setTheme(e){const n=this.alepha.store.get(Gy)[e];if(!n)throw new kt(`Theme with index ${e} not found`);this.cookie.set({index:e}),this.alepha.store.set(Ju,{index:e}),!(typeof document>"u")&&(document.documentElement.removeAttribute("data-theme"),n.name&&document.documentElement.setAttribute("data-theme",n.name))}getTheme(){const e=this.getThemeIndex(),n=this.alepha.store.get(Gy);return n[e]||n[0]||TM}getThemeIndex(){try{return this.cookie.get()?.index??this.alepha.store.get(Ju)?.index??0}catch{return this.alepha.store.get(Ju)?.index??0}}}class AM{fetch(e,n={}){throw new kt("Fetch is not available for this environment.")}render(e,n={}){throw new kt("Render is not available for this environment.")}}const Cn=t=>us($M,t);class $M extends di{reactPageService=Rt(AM);onInit(){this.options.static&&(this.options.cache??={store:{provider:"memory",ttl:[1,"week"]}})}get name(){return this.options.name??this.config.propertyKey}async render(e){return this.reactPageService.render(this.name,e)}async fetch(e){return this.reactPageService.fetch(this.options.path||"",e)}match(e){return!1}pathname(e){return this.options.path||""}}Cn[Rn]=$M;class pG{routePathRegex=/^\/[A-Za-z0-9._~!$&%'()*+,;=:@{}?/-]*$/;tree={children:{}};cache=new Map;match(e){if(this.cache.has(e))return this.cache.get(e);const n=this.mapParams(this.createRouteMatch(e));return this.cache.set(e,n),n}test(e){if(!this.routePathRegex.test(e))throw new kt(`Route '${e}' is not valid`)}push(e){const n=e.path.replaceAll("//","/");this.test(n);const r=this.createParts(n);let s=this.tree;for(let l=0;l<r.length;l++){const c=l===r.length-1;let f=r[l].toLowerCase();if(f==="*"&&c){s.wildcard={route:e};break}if(f.includes("*"))throw new kt(`Route '${n}' has an invalid wildcard syntax`);if(f.includes("{")||f.includes("}"))if(f.startsWith("{")&&f.endsWith("}"))f=`:${f.slice(1,-1)}`;else throw new kt(`Route '${n}' has an invalid param syntax`);if(f.startsWith(":")){const m=r[l].slice(1).replaceAll("}","");if(!m)throw new kt(`Route '${n}' has an empty param name`);s.param?s.param.name!==m&&(e.mapParams??={},e.mapParams[s.param.name]=m):s.param={name:m,children:{}},c&&(s.param.route=e),s=s.param;continue}s.children[f]||(s.children[f]={children:{}}),c&&(s.children[f].route=e),s=s.children[f]}}createRouteMatch(e){if(e[0]!=="/")throw new kt(`Path '${e}' must start with "/"`);const n=this.createParts(e);let r=this.tree,s;const l={};for(let c=0;c<n.length;c++){const f=n[c].toLowerCase();if(r.children[f])r.wildcard&&(s=r.wildcard),r=r.children[f];else if(r.param)r.wildcard&&(s=r.wildcard),l[r.param.name]=n[c],r=r.param;else return r.wildcard?(l["*"]=n.slice(c).join("/"),{route:r.wildcard.route,params:l}):{route:s?.route,params:l}}return r?.route?{route:r.route,params:l}:r.wildcard?{route:r.wildcard.route,params:l}:{route:s?.route,params:l}}mapParams(e){if(e.route?.mapParams&&e.params)for(const[n,r]of Object.entries(e.route.mapParams))e.params[n]&&(e.params[r]=e.params[n],delete e.params[n]);return e}createParts(e){let n=e.split("?")[0].replaceAll("//","/");return n.endsWith("/")&&n.length>1&&(n=n.slice(0,-1)),n.split("/").slice(1)}}const MM=t=>x.jsxs("div",{style:{width:"100%",minHeight:"90vh",boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',padding:"2rem",...t.style},children:[x.jsx("div",{style:{fontSize:"6rem",fontWeight:200,lineHeight:1},children:"404"}),x.jsx("div",{style:{fontSize:"0.875rem",marginTop:"1rem",opacity:.6},children:"Page not found"})]}),Qm=typeof window<"u",RM=({error:t,alepha:e})=>{const[n,r]=C.useState(!1),[s,l]=C.useState(!1),[c,f]=C.useState(!1),m=C.useRef(null),p=e.isProduction();if(C.useEffect(()=>{const $=setTimeout(()=>f(!0),10);return()=>clearTimeout($)},[]),C.useEffect(()=>{if(!Qm)return;const $=_=>{_.key==="c"&&!_.metaKey&&!_.ctrlKey&&OM(t.stack||t.message)};return window.addEventListener("keydown",$),()=>window.removeEventListener("keydown",$)},[t]),p)return x.jsx(SG,{});const g=gG(t.stack),b=g.filter($=>!$.isNodeModules),E=g.filter($=>$.isNodeModules),S=n?b:b.slice(0,5),T=b.length-5,w=new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"});return x.jsxs("div",{ref:m,style:{...At.overlay,opacity:c?1:0},role:"alertdialog","aria-modal":"true","aria-labelledby":"error-viewer-title",children:[x.jsx("div",{style:At.scanlines,"aria-hidden":"true"}),x.jsxs("div",{style:{...At.container,transform:c?"translateY(0)":"translateY(-20px)",opacity:c?1:0},children:[x.jsxs("div",{style:At.terminalBar,children:[x.jsxs("div",{style:At.terminalDots,children:[x.jsx("span",{style:{...At.dot,backgroundColor:"#ff5f57"}}),x.jsx("span",{style:{...At.dot,backgroundColor:"#febc2e"}}),x.jsx("span",{style:{...At.dot,backgroundColor:"#28c840"}})]}),x.jsx("div",{style:At.terminalTitle,children:x.jsxs("span",{style:At.terminalTitleText,children:["error — ",w]})}),x.jsxs("div",{style:At.terminalActions,children:[x.jsx("kbd",{style:At.kbd,children:"C"}),x.jsx("span",{style:At.kbdLabel,children:"copy"})]})]}),x.jsx(bG,{error:t}),x.jsxs("div",{style:At.stackSection,children:[x.jsxs("div",{style:At.stackHeader,children:[x.jsx("span",{style:At.stackHeaderText,children:"STACK TRACE"}),x.jsxs("span",{style:At.stackCount,children:[b.length," frames",E.length>0&&` · ${E.length} in node_modules`]})]}),x.jsxs("div",{style:At.frameList,children:[S.map(($,_)=>x.jsx(fT,{frame:$,index:_},`${$.raw}-${_}`)),T>0&&!n&&x.jsx(dT,{onClick:()=>r(!0),label:`Show ${T} more frames`}),n&&T>0&&x.jsx(dT,{onClick:()=>r(!1),label:"Collapse"}),E.length>0&&x.jsxs(x.Fragment,{children:[x.jsxs("button",{type:"button",onClick:()=>l(!s),style:At.nodeModulesToggle,children:[x.jsx("span",{style:At.nodeModulesIcon,children:s?"▼":"▶"}),x.jsx("span",{style:At.nodeModulesLabel,children:"node_modules"}),x.jsx("span",{style:At.nodeModulesCount,children:E.length})]}),s&&x.jsx("div",{style:At.nodeModulesFrames,children:E.map(($,_)=>x.jsx(fT,{frame:$,index:b.length+_,dimmed:!0},`nm-${$.raw}-${_}`))})]})]})]}),x.jsx("div",{style:At.footer,children:x.jsxs("span",{style:At.footerText,children:["Press ",x.jsx("kbd",{style:At.kbdInline,children:"C"})," to copy stack trace"]})})]})]})};function gG(t){if(!t)return[];const e=t.split(`
|
|
18
|
+
`).slice(1),n=[];for(const r of e){const s=r.trim();if(!s.startsWith("at "))continue;const l=yG(s);l&&n.push(l)}return n}function yG(t){const e=t.includes("node_modules")||t.includes("node:"),n=t.match(/^at\s+(.+?)\s+\((.+):(\d+):(\d+)\)$/);if(n)return{fn:n[1],file:n[2],line:n[3],col:n[4],raw:t,isNodeModules:e};const r=t.match(/^at\s+(.+):(\d+):(\d+)$/);return r?{fn:"<anonymous>",file:r[1],line:r[2],col:r[3],raw:t,isNodeModules:e}:{fn:"",file:t.replace(/^at\s+/,""),line:"",col:"",raw:t,isNodeModules:e}}function OM(t){return!Qm||!navigator.clipboard?Promise.resolve(!1):navigator.clipboard.writeText(t).then(()=>!0).catch(()=>!1)}function bG({error:t}){const[e,n]=C.useState(!1),[r,s]=C.useState(!1);C.useEffect(()=>{if(!e)return;const c=setTimeout(()=>n(!1),2e3);return()=>clearTimeout(c)},[e]);const l=async()=>{await OM(t.stack||t.message)&&n(!0)};return x.jsxs("div",{style:At.header,children:[x.jsxs("div",{style:At.headerRow,children:[x.jsxs("div",{style:At.errorIndicator,children:[x.jsx("div",{style:At.errorGlow}),x.jsx("div",{style:At.errorBadge,children:t.name})]}),x.jsx("button",{type:"button",onClick:l,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),style:{...At.copyBtn,...r?At.copyBtnHover:{}},children:e?"✓ Copied":"Copy"})]}),x.jsx("h1",{id:"error-viewer-title",style:At.message,children:t.message})]})}function fT({frame:t,index:e,dimmed:n=!1}){const[r,s]=C.useState(!1),l=e===0&&!n,c=t.file.split("/").pop()||t.file,f=t.file.substring(0,t.file.length-c.length),m=t.file&&t.line?`vscode://file${t.file}:${t.line}:${t.col||1}`:null,p=x.jsxs(x.Fragment,{children:[x.jsx("div",{style:{...At.frameIndex,color:l?"#ff6b6b":n?"#555":"#666"},children:String(e+1).padStart(2,"0")}),x.jsxs("div",{style:At.frameContent,children:[t.fn&&x.jsx("div",{style:{...At.fnName,color:n?"#888":"#f0f0f0"},children:vG(t.fn)}),x.jsxs("div",{style:At.filePath,children:[x.jsx("span",{style:{...At.dirPath,opacity:n?.6:.8},children:f}),x.jsx("span",{style:{...At.fileName,color:n?"#5a9aba":"#7cc4eb"},children:c}),t.line&&x.jsxs("span",{style:{...At.lineCol,color:n?"#9a8a40":"#e5b83a"},children:[":",t.line,t.col&&`:${t.col}`]})]})]})]}),g={...At.frame,...l?At.frameFirst:{},backgroundColor:r?"rgba(255,255,255,0.03)":"transparent"};return m&&Qm?x.jsx("a",{href:m,style:{...g,textDecoration:"none"},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:p}):x.jsx("div",{style:g,children:p})}function vG(t){const e=t.match(/^(async\s+)?(.+)$/);if(e?.[1])return x.jsxs(x.Fragment,{children:[x.jsx("span",{style:{color:"#c678dd"},children:"async "}),x.jsx("span",{children:e[2]})]});const n=t.match(/^(.+)\.([^.]+)$/);return n?x.jsxs(x.Fragment,{children:[x.jsx("span",{style:{color:"#e5c07b"},children:n[1]}),x.jsx("span",{style:{color:"#666"},children:"."}),x.jsx("span",{children:n[2]})]}):t}function dT({onClick:t,label:e}){const[n,r]=C.useState(!1);return x.jsx("button",{type:"button",onClick:t,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),style:{...At.expandBtn,backgroundColor:n?"rgba(255,255,255,0.05)":"transparent",color:n?"#aaa":"#777"},children:e})}function SG(){const[t,e]=C.useState(!1),n=()=>{Qm&&window.location.reload()};return x.jsx("div",{style:At.overlay,role:"alertdialog","aria-modal":"true",children:x.jsxs("div",{style:At.prodContainer,children:[x.jsx("div",{style:At.prodIcon,children:x.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[x.jsx("circle",{cx:"12",cy:"12",r:"10"}),x.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),x.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),x.jsx("h1",{style:At.prodTitle,children:"Something went wrong"}),x.jsx("p",{style:At.prodMessage,children:"We encountered an unexpected error. Please try again."}),x.jsx("button",{type:"button",onClick:n,onMouseEnter:()=>e(!0),onMouseLeave:()=>e(!1),style:{...At.prodButton,backgroundColor:t?"#333":"#222",borderColor:t?"#555":"#444"},children:"Reload page"})]})})}const to='ui-monospace, "JetBrains Mono", "Fira Code", SFMono-Regular, Menlo, Monaco, Consolas, monospace',At={overlay:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.92)",display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"40px 20px",overflow:"auto",fontFamily:to,fontSize:"13px",zIndex:99999,transition:"opacity 0.2s ease-out"},scanlines:{position:"fixed",inset:0,background:"repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px)",pointerEvents:"none",zIndex:1e5},container:{width:"100%",maxWidth:"900px",backgroundColor:"#0d0d0d",borderRadius:"8px",overflow:"hidden",boxShadow:"0 0 0 1px #333, 0 25px 80px -12px rgba(0, 0, 0, 0.8)",transition:"transform 0.3s ease-out, opacity 0.3s ease-out"},terminalBar:{display:"flex",alignItems:"center",padding:"12px 16px",backgroundColor:"#1a1a1a",borderBottom:"1px solid #333"},terminalDots:{display:"flex",gap:"8px"},dot:{width:"12px",height:"12px",borderRadius:"50%"},terminalTitle:{flex:1,textAlign:"center"},terminalTitleText:{color:"#777",fontSize:"12px",letterSpacing:"0.5px"},terminalActions:{display:"flex",alignItems:"center",gap:"6px"},kbd:{display:"inline-block",padding:"2px 6px",backgroundColor:"#2a2a2a",borderRadius:"4px",fontSize:"11px",color:"#aaa",border:"1px solid #444"},kbdInline:{display:"inline-block",padding:"1px 5px",backgroundColor:"#222",borderRadius:"3px",fontSize:"11px",color:"#888",border:"1px solid #444",marginLeft:"4px",marginRight:"4px"},kbdLabel:{color:"#777",fontSize:"11px"},header:{padding:"24px",borderBottom:"1px solid #333"},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px"},errorIndicator:{position:"relative",display:"inline-flex"},errorGlow:{position:"absolute",inset:"-4px",background:"radial-gradient(ellipse at center, rgba(255,80,80,0.3) 0%, transparent 70%)",borderRadius:"12px",filter:"blur(8px)"},errorBadge:{position:"relative",display:"inline-block",padding:"6px 14px",backgroundColor:"#3d1a1a",color:"#ff7b7b",fontSize:"12px",fontWeight:600,borderRadius:"6px",border:"1px solid #5a2828",letterSpacing:"0.5px"},copyBtn:{padding:"8px 14px",backgroundColor:"transparent",color:"#888",fontSize:"12px",fontWeight:500,borderWidth:"1px",borderStyle:"solid",borderColor:"#444",borderRadius:"6px",cursor:"pointer",transition:"all 0.15s",fontFamily:to},copyBtnHover:{backgroundColor:"#252525",color:"#bbb",borderColor:"#555"},message:{margin:0,fontSize:"18px",fontWeight:400,color:"#e8e8e8",lineHeight:1.6,wordBreak:"break-word",fontFamily:to},stackSection:{borderTop:"1px solid #2a2a2a"},stackHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 24px",borderBottom:"1px solid #2a2a2a"},stackHeaderText:{fontSize:"10px",fontWeight:600,color:"#666",letterSpacing:"1.5px"},stackCount:{fontSize:"11px",color:"#555"},frameList:{display:"flex",flexDirection:"column"},frame:{display:"flex",alignItems:"flex-start",padding:"12px 24px",borderBottom:"1px solid #222",transition:"background-color 0.1s",cursor:"pointer"},frameFirst:{backgroundColor:"rgba(255, 80, 80, 0.08)",borderLeft:"2px solid #ff6b6b"},frameIndex:{width:"28px",flexShrink:0,fontSize:"11px",fontWeight:500,fontFamily:to},frameContent:{flex:1,minWidth:0},fnName:{fontSize:"13px",fontWeight:500,marginBottom:"4px",fontFamily:to},filePath:{fontSize:"12px",color:"#888",fontFamily:to,wordBreak:"break-all"},dirPath:{color:"#666"},fileName:{color:"#7cc4eb"},lineCol:{color:"#e5b83a"},expandBtn:{width:"100%",padding:"14px 24px",backgroundColor:"transparent",color:"#777",fontSize:"12px",fontWeight:500,border:"none",borderTop:"1px solid #2a2a2a",cursor:"pointer",textAlign:"left",transition:"all 0.15s",fontFamily:to},nodeModulesToggle:{display:"flex",alignItems:"center",gap:"10px",width:"100%",padding:"12px 24px",backgroundColor:"#0a0a0a",color:"#666",fontSize:"11px",fontWeight:500,border:"none",borderTop:"1px solid #2a2a2a",cursor:"pointer",textAlign:"left",fontFamily:to},nodeModulesIcon:{fontSize:"8px",color:"#555"},nodeModulesLabel:{flex:1,letterSpacing:"0.5px"},nodeModulesCount:{color:"#555"},nodeModulesFrames:{backgroundColor:"#080808"},footer:{padding:"14px 24px",borderTop:"1px solid #2a2a2a",backgroundColor:"#0a0a0a"},footerText:{fontSize:"11px",color:"#555"},prodContainer:{textAlign:"center",padding:"60px 40px",backgroundColor:"#0d0d0d",borderRadius:"8px",maxWidth:"400px",border:"1px solid #333"},prodIcon:{width:"64px",height:"64px",margin:"0 auto 24px",color:"#666",display:"flex",alignItems:"center",justifyContent:"center"},prodTitle:{margin:"0 0 12px",fontSize:"18px",fontWeight:500,color:"#f0f0f0",fontFamily:to},prodMessage:{margin:"0 0 28px",fontSize:"13px",color:"#888",lineHeight:1.6,fontFamily:to},prodButton:{padding:"12px 24px",backgroundColor:"#222",color:"#bbb",fontSize:"13px",fontWeight:500,borderWidth:"1px",borderStyle:"solid",borderColor:"#444",borderRadius:"6px",cursor:"pointer",transition:"all 0.15s",fontFamily:to}},NM=C.createContext(void 0);class Rd extends kt{redirect;constructor(e){super("Redirection"),this.redirect=e}}const EG=()=>{const[t]=vv("alepha.react.router.state");if(!t)throw new kt("Missing react router state");return t},xG=t=>{const e=C.use(NM),n=e?.index??0,r=e?.onError,s=EG(),l=Km(),[c,f]=C.useState(s.layers[n]?.element),[m,p]=C.useState(""),g=C.useRef(0),b=C.useRef(0);gM({"react:transition:begin":async({previous:T,state:w})=>{const $=T.layers[n];if(!$||`${w.url.pathname}/`.startsWith(`${$.path}/`))return;const _=mT($.route?.animation,w,"exit");if(_){const L=_.duration||200;b.current=Date.now(),g.current=L,p(_.animation)}else b.current=0,g.current=0,p("")},"react:transition:end":async({state:T})=>{const w=T.layers[n];if(b.current){const $=g.current,_=Date.now()-b.current;_<$&&await new Promise(L=>setTimeout(L,$-_))}if(!w?.cache){f(w?.element);const $=mT(w?.route?.animation,T,"enter");p($?$.animation:"")}}},[]);let E=c??t.children??null;if(m&&(E=x.jsx("div",{style:{display:"flex",flex:1,height:"100%",width:"100%",position:"relative",overflow:"hidden"},children:x.jsx("div",{style:{height:"100%",width:"100%",display:"flex",animation:m},children:E})})),t.errorBoundary===!1)return x.jsx(x.Fragment,{children:E});if(t.errorBoundary)return x.jsx(Jw,{fallback:t.errorBoundary,children:E});const S=T=>{const w=r?.(T,s)??x.jsx(RM,{error:T,alepha:l});return w instanceof Rd?"Redirection inside ErrorBoundary is not allowed.":w};return x.jsx(Jw,{fallback:S,children:E})},Vy=C.memo(xG);function mT(t,e,n="enter"){if(!t)return;const r=300,s=typeof t=="function"?t(e):t;if(typeof s=="string")return n==="exit"?void 0:{duration:r,animation:`${r}ms ${s}`};if(typeof s=="object"){const l=s[n],c=typeof l=="object"?l.duration??r:r,f=typeof l=="object"?l.name:l;if(n==="exit"){const p=typeof l=="object"?l.timing??"":"";return{duration:c,animation:`${c}ms ${p} ${f}`}}const m=typeof l=="object"?l.timing??"":"";return{duration:c,animation:`${c}ms ${m} ${f}`}}}const wG=R.object({REACT_STRICT_MODE:R.boolean({default:!0})});class Gd{log=ho();env=hv(wG);alepha=Rt(Re);pages=[];getPages(){return this.pages}getConcretePages(){const e=[];for(const n of this.pages){if(n.children&&n.children.length>0)continue;const r=this.pathname(n.name);if(r.includes(":")||r.includes("*")){if(typeof n.static=="object"){const s=n.static.entries;if(s&&s.length>0)for(const l of s){const c=l.params,f=this.compile(n.path??"",c);!f.includes(":")&&!f.includes("*")&&e.push({...n,name:c[Object.keys(c)[0]],staticName:n.name,path:f,...l})}}continue}e.push(n)}return e}page(e){for(const n of this.pages)if(n.name===e)return n;throw new kt(`Page '${e}' not found`)}pathname(e,n={}){const r=this.page(e);if(!r)throw new Error(`Page ${e} not found`);let s=r.path??"",l=r.parent;for(;l;)s=`${l.path??""}/${s}`,l=l.parent;if(s=this.compile(s,n.params??{}),n.query){const c=new URLSearchParams(n.query);c.toString()&&(s+=`?${c.toString()}`)}return s.replace(/\/\/+/g,"/")||"/"}url(e,n={}){return new URL(this.pathname(e,n),n.host??"http://localhost")}root(e){const n=C.createElement(iM.Provider,{value:this.alepha},C.createElement(Vy,{},e.layers[0]?.element));return this.env.REACT_STRICT_MODE?C.createElement(C.StrictMode,{},n):n}convertStringObjectToObject=(e,n)=>{if(R.schema.isObject(e)&&typeof n=="object"){for(const r in e.properties)if(R.schema.isObject(e.properties[r])&&typeof n[r]=="string")try{n[r]=this.alepha.codec.decode(e.properties[r],decodeURIComponent(n[r]))}catch{}}return n};async createLayers(e,n,r=[]){let s={};const l=[{route:e}];let c=e.parent;for(;c;)l.unshift({route:c}),c=c.parent;let f=!1;for(let p=0;p<l.length;p++){const g=l[p],b=g.route,E={};try{this.convertStringObjectToObject(b.schema?.query,n.query),E.query=b.schema?.query?this.alepha.codec.decode(b.schema.query,n.query):{}}catch(S){g.error=S;break}try{E.params=b.schema?.params?this.alepha.codec.decode(b.schema.params,n.params):{}}catch(S){g.error=S;break}if(g.config={...E},r?.[p]&&!f&&r[p].name===b.name){const S=$=>$?$.replace(/\/\/+/g,"/"):"/",T=JSON.stringify({part:S(r[p].part),params:r[p].config?.params??{}}),w=JSON.stringify({part:S(b.path),params:E.params??{}});if(T===w){g.props=r[p].props,g.error=r[p].error,g.cache=!0,s={...s,...g.props};continue}f=!0}if(b.loader)try{const S=Object.create(n);Object.assign(S,E,s);const T=await b.loader?.(S)??{};g.props={...T},s={...s,...T}}catch(S){if(S instanceof Rd)return{redirect:S.redirect};this.log.error("Page loader has failed",S),g.error=S;break}}let m="";for(let p=0;p<l.length;p++){const g=l[p],b=g.props??{},E={...g.config?.params};for(const w of Object.keys(E))E[w]=String(E[w]);m+="/",m+=g.route.path?this.compile(g.route.path,E):"";const S=m.replace(/\/+/,"/"),T=this.getErrorHandler(g.route);if(T){const w=n.onError;n.onError=($,_)=>{const L=T($,_);return L===void 0?w($,_):L}}if(!g.error)try{const w=await this.createElement(g.route,{...g.route.props?g.route.props():{},...b,...s});n.layers.push({name:g.route.name,props:b,part:g.route.path,config:g.config,element:this.renderView(p+1,S,w,g.route),index:p+1,path:S,route:g.route,cache:g.cache})}catch(w){g.error=w}if(g.error)try{let w=await n.onError(g.error,n);if(w===void 0)throw g.error;if(w instanceof Rd)return{redirect:w.redirect};w===null&&(w=this.renderError(g.error)),n.layers.push({props:b,error:g.error,name:g.route.name,part:g.route.path,config:g.config,element:this.renderView(p+1,S,w,g.route),index:p+1,path:S,route:g.route});break}catch(w){if(w instanceof Rd)return{redirect:w.redirect};throw w}}return{state:n}}getErrorHandler(e){if(e.errorHandler)return e.errorHandler;let n=e.parent;for(;n;){if(n.errorHandler)return n.errorHandler;n=n.parent}}async createElement(e,n){if(e.lazy&&e.component&&this.log.warn(`Page ${e.name} has both lazy and component options, lazy will be used`),e.lazy){const r=await e.lazy();return C.createElement(r.default,n)}if(e.component)return C.createElement(e.component,n)}renderError(e){return C.createElement(RM,{error:e,alepha:this.alepha})}renderEmptyView(){return C.createElement(Vy,{})}href(e,n={}){const r=this.pages.find(c=>c.name===e.options.name);if(!r)throw new kt(`Page ${e.options.name} not found`);let s=r.path??"",l=r.parent;for(;l;)s=`${l.path??""}/${s}`,l=l.parent;return s=this.compile(s,n),s.replace(/\/\/+/g,"/")||"/"}compile(e,n={}){for(const[r,s]of Object.entries(n))e=e.replace(`:${r}`,s);return e}renderView(e,n,r,s){r??=this.renderEmptyView();const l=s.client?C.createElement(Sq,typeof s.client=="object"?s.client:{},r):r;return C.createElement(NM.Provider,{value:{index:e,path:n,onError:this.getErrorHandler(s)??(c=>this.renderError(c))}},l)}configure=sr({on:"configure",handler:()=>{let e=!1;const n=this.alepha.primitives(Cn),r=s=>{if(s.options.parent)return!0;for(const l of n)if((l.options.children?Array.isArray(l.options.children)?l.options.children:l.options.children():[]).includes(s))return!0};for(const s of n)s.options.path==="/*"&&(e=!0),!r(s)&&this.add(this.map(n,s));!e&&n.length>0&&this.add({path:"/*",name:"notFound",cache:!0,component:MM,onServerResponse:({reply:s})=>{s.status=404}})}});map(e,n){const r=n.options.children?Array.isArray(n.options.children)?n.options.children:n.options.children():[],s=l=>{const c=[];for(const f of e)f.options.parent===l&&c.push(f);return c};return r.push(...s(n)),{...n.options,name:n.name,parent:void 0,children:r.map(l=>this.map(e,l))}}add(e){if(this.alepha.isReady())throw new kt("Router is already initialized");e.name??=this.nextId();const n=e;if(n.match=this.createMatch(n),this.pages.push(n),n.children)for(const r of n.children)r.parent=n,this.add(r)}createMatch(e){let n=e.path??"/",r=e.parent;for(;r;)n=`${r.path??""}/${n}`,r=r.parent;let s=n.replace(/\/\/+/g,"/");return s.endsWith("/")&&s!=="/"&&(s=s.slice(0,-1)),s}_next=0;nextId(){return this._next+=1,`P${this._next}`}}const TG=t=>t&&typeof t=="object"&&typeof t.path=="string"&&typeof t.page=="object";class Ky extends pG{log=ho();alepha=Rt(Re);pageApi=Rt(Gd);browserHeadProvider=Rt(Ev);add(e){this.pageApi.add(e)}configure=sr({on:"configure",handler:async()=>{for(const e of this.pageApi.getPages())(e.component||e.lazy)&&this.push({path:e.match,page:e})}});async transition(e,n=[],r={}){const{pathname:s,search:l}=e,f={url:e,query:{},params:{},layers:[],onError:()=>null,meta:r};await this.alepha.events.emit("react:action:begin",{type:"transition"}),await this.alepha.events.emit("react:transition:begin",{previous:this.alepha.store.get("alepha.react.router.state"),state:f});try{const{route:m,params:p}=this.match(s),g={};if(l)for(const[b,E]of new URLSearchParams(l).entries())g[b]=String(E);if(f.name=m?.page.name,f.query=g,f.params=p??{},TG(m)){const{redirect:b}=await this.pageApi.createLayers(m.page,f,n);if(b)return b}f.layers.length===0&&f.layers.push({name:"not-found",element:C.createElement(MM),index:0,path:"/"}),await this.alepha.events.emit("react:action:success",{type:"transition"}),await this.alepha.events.emit("react:transition:success",{state:f})}catch(m){this.log.error("Transition has failed",m),f.layers=[{name:"error",element:this.pageApi.renderError(m),index:0,path:"/"}],await this.alepha.events.emit("react:action:error",{type:"transition",error:m}),await this.alepha.events.emit("react:transition:error",{error:m,state:f})}if(n)for(let m=0;m<n.length;m++){const p=n[m];f.layers[m]?.name!==p.name&&this.pageApi.page(p.name)?.onLeave?.()}for(let m=0;m<f.layers.length;m++){const p=f.layers[m];n?.[m]?.name!==p.name&&this.pageApi.page(p.name)?.onEnter?.()}this.alepha.store.set("alepha.react.router.state",f),await this.alepha.events.emit("react:action:end",{type:"transition"}),await this.alepha.events.emit("react:transition:end",{state:f}),this.browserHeadProvider.fillAndRenderHead(f)}root(e){return this.pageApi.root(e)}}const CG=Il({name:"alepha.react.browser.options",schema:R.object({scrollRestoration:R.enum(["top","manual"])}),default:{scrollRestoration:"top"}});class Xy{log=ho();client=Rt(Uc);alepha=Rt(Re);router=Rt(Ky);dateTimeProvider=Rt(zo);browserHeadProvider=Rt(Ev);options=pq(CG);get rootId(){return"root"}getRootElement(){const e=this.document.getElementById(this.rootId);if(e)return e;const n=this.document.createElement("div");return n.id=this.rootId,this.document.body.prepend(n),n}transitioning;get state(){return this.alepha.store.get("alepha.react.router.state")}get document(){return window.document}get history(){return window.history}get location(){return window.location}get base(){return"/devtools"}get url(){const e=this.location.pathname+this.location.search;return this.base?e.replace(this.base,""):e}pushState(e,n){const r=this.base+e;n?this.history.replaceState({},"",r):this.history.pushState({},"",r)}async invalidate(e){const n=[];if(this.log.trace("Invalidating layers"),e){const[r]=Object.keys(e),s=e[r];for(const l of this.state.layers){if(l.props?.[r]){n.push({...l,props:{...l.props,[r]:s}});break}n.push(l)}}await this.render({previous:n})}async go(e,n={}){if(this.log.trace(`Going to ${e}`,{url:e,options:n}),await this.render({url:e,previous:n.force?[]:this.state.layers,meta:n.meta}),this.state.url.pathname+this.state.url.search!==e){this.pushState(this.state.url.pathname+this.state.url.search);return}this.pushState(e,n.replace)}async render(e={}){const n=e.previous??this.state.layers,r=e.url??this.url,s=this.dateTimeProvider.now();this.transitioning={to:r,from:this.state?.url.pathname},this.log.debug("Transitioning...",{to:r});const l=await this.router.transition(new URL(`http://localhost${r}`),n,e.meta);if(l)if(this.log.info("Redirecting to",{redirect:l}),l.startsWith("http"))window.location.href=l;else return await this.render({url:l});const c=this.dateTimeProvider.now().diff(s);this.log.info(`Transition OK [${c}ms]`,this.transitioning),this.transitioning=void 0}getHydrationState(){try{if("__ssr"in window&&typeof window.__ssr=="object")return window.__ssr}catch(e){console.error(e)}}onTransitionEnd=sr({on:"react:transition:end",handler:()=>{this.options.scrollRestoration==="top"&&typeof window<"u"&&!this.alepha.isTest()&&(this.log.trace("Restoring scroll position to top"),window.scrollTo(0,0))}});ready=sr({on:"ready",handler:async()=>{const e=this.getHydrationState(),n=e?.layers??[];if(e)for(const[s,l]of Object.entries(e))s!=="layers"&&this.alepha.set(s,l);await this.render({previous:n});const r=this.router.root(this.state);await this.alepha.events.emit("react:browser:render",{element:r,root:this.getRootElement(),hydration:e,state:this.state}),this.browserHeadProvider.fillAndRenderHead(this.state),window.addEventListener("popstate",()=>{this.base+this.state.url.pathname!==this.location.pathname&&(this.log.debug("Popstate event triggered - rendering new state",{url:this.location.pathname+this.location.search}),this.render())})}})}var ty={exports:{}},Vu={},ey={exports:{}},ny={};var hT;function AG(){return hT||(hT=1,(function(t){function e(O,B){var D=O.length;O.push(B);t:for(;0<D;){var tt=D-1>>>1,nt=O[tt];if(0<s(nt,B))O[tt]=B,O[D]=nt,D=tt;else break t}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var B=O[0],D=O.pop();if(D!==B){O[0]=D;t:for(var tt=0,nt=O.length,N=nt>>>1;tt<N;){var G=2*(tt+1)-1,ot=O[G],ft=G+1,mt=O[ft];if(0>s(ot,D))ft<nt&&0>s(mt,ot)?(O[tt]=mt,O[ft]=D,tt=ft):(O[tt]=ot,O[G]=D,tt=G);else if(ft<nt&&0>s(mt,D))O[tt]=mt,O[ft]=D,tt=ft;else break t}}return B}function s(O,B){var D=O.sortIndex-B.sortIndex;return D!==0?D:O.id-B.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var c=Date,f=c.now();t.unstable_now=function(){return c.now()-f}}var m=[],p=[],g=1,b=null,E=3,S=!1,T=!1,w=!1,$=!1,_=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function P(O){for(var B=n(p);B!==null;){if(B.callback===null)r(p);else if(B.startTime<=O)r(p),B.sortIndex=B.expirationTime,e(m,B);else break;B=n(p)}}function H(O){if(w=!1,P(O),!T)if(n(m)!==null)T=!0,F||(F=!0,ct());else{var B=n(p);B!==null&&Z(H,B.startTime-O)}}var F=!1,z=-1,k=5,W=-1;function et(){return $?!0:!(t.unstable_now()-W<k)}function it(){if($=!1,F){var O=t.unstable_now();W=O;var B=!0;try{t:{T=!1,w&&(w=!1,L(z),z=-1),S=!0;var D=E;try{e:{for(P(O),b=n(m);b!==null&&!(b.expirationTime>O&&et());){var tt=b.callback;if(typeof tt=="function"){b.callback=null,E=b.priorityLevel;var nt=tt(b.expirationTime<=O);if(O=t.unstable_now(),typeof nt=="function"){b.callback=nt,P(O),B=!0;break e}b===n(m)&&r(m),P(O)}else r(m);b=n(m)}if(b!==null)B=!0;else{var N=n(p);N!==null&&Z(H,N.startTime-O),B=!1}}break t}finally{b=null,E=D,S=!1}B=void 0}}finally{B?ct():F=!1}}}var ct;if(typeof j=="function")ct=function(){j(it)};else if(typeof MessageChannel<"u"){var dt=new MessageChannel,Y=dt.port2;dt.port1.onmessage=it,ct=function(){Y.postMessage(null)}}else ct=function(){_(it,0)};function Z(O,B){z=_(function(){O(t.unstable_now())},B)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(O){O.callback=null},t.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<O?Math.floor(1e3/O):5},t.unstable_getCurrentPriorityLevel=function(){return E},t.unstable_next=function(O){switch(E){case 1:case 2:case 3:var B=3;break;default:B=E}var D=E;E=B;try{return O()}finally{E=D}},t.unstable_requestPaint=function(){$=!0},t.unstable_runWithPriority=function(O,B){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var D=E;E=O;try{return B()}finally{E=D}},t.unstable_scheduleCallback=function(O,B,D){var tt=t.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?tt+D:tt):D=tt,O){case 1:var nt=-1;break;case 2:nt=250;break;case 5:nt=1073741823;break;case 4:nt=1e4;break;default:nt=5e3}return nt=D+nt,O={id:g++,callback:B,priorityLevel:O,startTime:D,expirationTime:nt,sortIndex:-1},D>tt?(O.sortIndex=D,e(p,O),n(m)===null&&O===n(p)&&(w?(L(z),z=-1):w=!0,Z(H,D-tt))):(O.sortIndex=nt,e(m,O),T||S||(T=!0,F||(F=!0,ct()))),O},t.unstable_shouldYield=et,t.unstable_wrapCallback=function(O){var B=E;return function(){var D=E;E=B;try{return O.apply(this,arguments)}finally{E=D}}}})(ny)),ny}var pT;function $G(){return pT||(pT=1,ey.exports=AG()),ey.exports}var ry={exports:{}},vn={};var gT;function MG(){if(gT)return vn;gT=1;var t=pv();function e(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(m,p,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:m,containerInfo:p,implementation:g}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return vn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,vn.createPortal=function(m,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(e(299));return l(m,p,null,g)},vn.flushSync=function(m){var p=c.T,g=r.p;try{if(c.T=null,r.p=2,m)return m()}finally{c.T=p,r.p=g,r.d.f()}},vn.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(m,p))},vn.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},vn.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var g=p.as,b=f(g,p.crossOrigin),E=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?r.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:E,fetchPriority:S}):g==="script"&&r.d.X(m,{crossOrigin:b,integrity:E,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},vn.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=f(p.as,p.crossOrigin);r.d.M(m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(m)},vn.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,b=f(g,p.crossOrigin);r.d.L(m,g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},vn.preloadModule=function(m,p){if(typeof m=="string")if(p){var g=f(p.as,p.crossOrigin);r.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(m)},vn.requestFormReset=function(m){r.d.r(m)},vn.unstable_batchedUpdates=function(m,p){return m(p)},vn.useFormState=function(m,p,g){return c.H.useFormState(m,p,g)},vn.useFormStatus=function(){return c.H.useHostTransitionStatus()},vn.version="19.2.4",vn}var yT;function _M(){if(yT)return ry.exports;yT=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),ry.exports=MG(),ry.exports}var bT;function RG(){if(bT)return Vu;bT=1;var t=$G(),e=pv(),n=_M();function r(o){var i="https://react.dev/errors/"+o;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+o+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function l(o){var i=o,a=o;if(o.alternate)for(;i.return;)i=i.return;else{o=i;do i=o,(i.flags&4098)!==0&&(a=i.return),o=i.return;while(o)}return i.tag===3?a:null}function c(o){if(o.tag===13){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function f(o){if(o.tag===31){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function m(o){if(l(o)!==o)throw Error(r(188))}function p(o){var i=o.alternate;if(!i){if(i=l(o),i===null)throw Error(r(188));return i!==o?null:o}for(var a=o,u=i;;){var d=a.return;if(d===null)break;var h=d.alternate;if(h===null){if(u=d.return,u!==null){a=u;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===a)return m(d),o;if(h===u)return m(d),i;h=h.sibling}throw Error(r(188))}if(a.return!==u.return)a=d,u=h;else{for(var v=!1,A=d.child;A;){if(A===a){v=!0,a=d,u=h;break}if(A===u){v=!0,u=d,a=h;break}A=A.sibling}if(!v){for(A=h.child;A;){if(A===a){v=!0,a=h,u=d;break}if(A===u){v=!0,u=h,a=d;break}A=A.sibling}if(!v)throw Error(r(189))}}if(a.alternate!==u)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?o:i}function g(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o;for(o=o.child;o!==null;){if(i=g(o),i!==null)return i;o=o.sibling}return null}var b=Object.assign,E=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),j=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),et=Symbol.for("react.memo_cache_sentinel"),it=Symbol.iterator;function ct(o){return o===null||typeof o!="object"?null:(o=it&&o[it]||o["@@iterator"],typeof o=="function"?o:null)}var dt=Symbol.for("react.client.reference");function Y(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===dt?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case w:return"Fragment";case _:return"Profiler";case $:return"StrictMode";case H:return"Suspense";case F:return"SuspenseList";case W:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case T:return"Portal";case j:return o.displayName||"Context";case L:return(o._context.displayName||"Context")+".Consumer";case P:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case z:return i=o.displayName||null,i!==null?i:Y(o.type)||"Memo";case k:i=o._payload,o=o._init;try{return Y(o(i))}catch{}}return null}var Z=Array.isArray,O=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},tt=[],nt=-1;function N(o){return{current:o}}function G(o){0>nt||(o.current=tt[nt],tt[nt]=null,nt--)}function ot(o,i){nt++,tt[nt]=o.current,o.current=i}var ft=N(null),mt=N(null),pt=N(null),Tt=N(null);function Jt(o,i){switch(ot(pt,i),ot(mt,o),ot(ft,null),i.nodeType){case 9:case 11:o=(o=i.documentElement)&&(o=o.namespaceURI)?Gx(o):0;break;default:if(o=i.tagName,i=i.namespaceURI)i=Gx(i),o=Yx(i,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}G(ft),ot(ft,o)}function Ot(){G(ft),G(mt),G(pt)}function ie(o){o.memoizedState!==null&&ot(Tt,o);var i=ft.current,a=Yx(i,o.type);i!==a&&(ot(mt,o),ot(ft,a))}function We(o){mt.current===o&&(G(ft),G(mt)),Tt.current===o&&(G(Tt),Pu._currentValue=D)}var cn,Zt;function on(o){if(cn===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);cn=i&&i[1]||"",Zt=-1<a.stack.indexOf(`
|
|
19
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
20
|
+
`+cn+o+Zt}var go=!1;function $i(o,i){if(!o||go)return"";go=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var lt=function(){throw Error()};if(Object.defineProperty(lt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(lt,[])}catch(J){var X=J}Reflect.construct(o,[],lt)}else{try{lt.call()}catch(J){X=J}o.call(lt.prototype)}}else{try{throw Error()}catch(J){X=J}(lt=o())&&typeof lt.catch=="function"&<.catch(function(){})}}catch(J){if(J&&X&&typeof J.stack=="string")return[J.stack,X.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=u.DetermineComponentFrameRoot(),v=h[0],A=h[1];if(v&&A){var I=v.split(`
|
|
21
|
+
`),K=A.split(`
|
|
22
|
+
`);for(d=u=0;u<I.length&&!I[u].includes("DetermineComponentFrameRoot");)u++;for(;d<K.length&&!K[d].includes("DetermineComponentFrameRoot");)d++;if(u===I.length||d===K.length)for(u=I.length-1,d=K.length-1;1<=u&&0<=d&&I[u]!==K[d];)d--;for(;1<=u&&0<=d;u--,d--)if(I[u]!==K[d]){if(u!==1||d!==1)do if(u--,d--,0>d||I[u]!==K[d]){var rt=`
|
|
23
|
+
`+I[u].replace(" at new "," at ");return o.displayName&&rt.includes("<anonymous>")&&(rt=rt.replace("<anonymous>",o.displayName)),rt}while(1<=u&&0<=d);break}}}finally{go=!1,Error.prepareStackTrace=a}return(a=o?o.displayName||o.name:"")?on(a):""}function Jl(o,i){switch(o.tag){case 26:case 27:case 5:return on(o.type);case 16:return on("Lazy");case 13:return o.child!==i&&i!==null?on("Suspense Fallback"):on("Suspense");case 19:return on("SuspenseList");case 0:case 15:return $i(o.type,!1);case 11:return $i(o.type.render,!1);case 1:return $i(o.type,!0);case 31:return on("Activity");default:return""}}function vs(o){try{var i="",a=null;do i+=Jl(o,a),a=o,o=o.return;while(o);return i}catch(u){return`
|
|
24
|
+
Error generating stack: `+u.message+`
|
|
25
|
+
`+u.stack}}var Xn=Object.prototype.hasOwnProperty,Ss=t.unstable_scheduleCallback,Gc=t.unstable_cancelCallback,zO=t.unstable_shouldYield,BO=t.unstable_requestPaint,Qn=t.unstable_now,UO=t.unstable_getCurrentPriorityLevel,w1=t.unstable_ImmediatePriority,T1=t.unstable_UserBlockingPriority,Yc=t.unstable_NormalPriority,kO=t.unstable_LowPriority,C1=t.unstable_IdlePriority,PO=t.log,HO=t.unstable_setDisableYieldValue,Wl=null,Zn=null;function Mi(o){if(typeof PO=="function"&&HO(o),Zn&&typeof Zn.setStrictMode=="function")try{Zn.setStrictMode(Wl,o)}catch{}}var Jn=Math.clz32?Math.clz32:GO,FO=Math.log,qO=Math.LN2;function GO(o){return o>>>=0,o===0?32:31-(FO(o)/qO|0)|0}var Vc=256,Kc=262144,Xc=4194304;function Es(o){var i=o&42;if(i!==0)return i;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Qc(o,i,a){var u=o.pendingLanes;if(u===0)return 0;var d=0,h=o.suspendedLanes,v=o.pingedLanes;o=o.warmLanes;var A=u&134217727;return A!==0?(u=A&~h,u!==0?d=Es(u):(v&=A,v!==0?d=Es(v):a||(a=A&~o,a!==0&&(d=Es(a))))):(A=u&~h,A!==0?d=Es(A):v!==0?d=Es(v):a||(a=u&~o,a!==0&&(d=Es(a)))),d===0?0:i!==0&&i!==d&&(i&h)===0&&(h=d&-d,a=i&-i,h>=a||h===32&&(a&4194048)!==0)?i:d}function tu(o,i){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&i)===0}function YO(o,i){switch(o){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function A1(){var o=Xc;return Xc<<=1,(Xc&62914560)===0&&(Xc=4194304),o}function _h(o){for(var i=[],a=0;31>a;a++)i.push(o);return i}function eu(o,i){o.pendingLanes|=i,i!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function VO(o,i,a,u,d,h){var v=o.pendingLanes;o.pendingLanes=a,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=a,o.entangledLanes&=a,o.errorRecoveryDisabledLanes&=a,o.shellSuspendCounter=0;var A=o.entanglements,I=o.expirationTimes,K=o.hiddenUpdates;for(a=v&~a;0<a;){var rt=31-Jn(a),lt=1<<rt;A[rt]=0,I[rt]=-1;var X=K[rt];if(X!==null)for(K[rt]=null,rt=0;rt<X.length;rt++){var J=X[rt];J!==null&&(J.lane&=-536870913)}a&=~lt}u!==0&&$1(o,u,0),h!==0&&d===0&&o.tag!==0&&(o.suspendedLanes|=h&~(v&~i))}function $1(o,i,a){o.pendingLanes|=i,o.suspendedLanes&=~i;var u=31-Jn(i);o.entangledLanes|=i,o.entanglements[u]=o.entanglements[u]|1073741824|a&261930}function M1(o,i){var a=o.entangledLanes|=i;for(o=o.entanglements;a;){var u=31-Jn(a),d=1<<u;d&i|o[u]&i&&(o[u]|=i),a&=~d}}function R1(o,i){var a=i&-i;return a=(a&42)!==0?1:Dh(a),(a&(o.suspendedLanes|i))!==0?0:a}function Dh(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function jh(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function O1(){var o=B.p;return o!==0?o:(o=window.event,o===void 0?32:pw(o.type))}function N1(o,i){var a=B.p;try{return B.p=o,i()}finally{B.p=a}}var Ri=Math.random().toString(36).slice(2),fn="__reactFiber$"+Ri,Dn="__reactProps$"+Ri,da="__reactContainer$"+Ri,Ih="__reactEvents$"+Ri,KO="__reactListeners$"+Ri,XO="__reactHandles$"+Ri,_1="__reactResources$"+Ri,nu="__reactMarker$"+Ri;function Lh(o){delete o[fn],delete o[Dn],delete o[Ih],delete o[KO],delete o[XO]}function ma(o){var i=o[fn];if(i)return i;for(var a=o.parentNode;a;){if(i=a[da]||a[fn]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(o=Wx(o);o!==null;){if(a=o[fn])return a;o=Wx(o)}return i}o=a,a=o.parentNode}return null}function ha(o){if(o=o[fn]||o[da]){var i=o.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return o}return null}function ru(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o.stateNode;throw Error(r(33))}function pa(o){var i=o[_1];return i||(i=o[_1]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function sn(o){o[nu]=!0}var D1=new Set,j1={};function xs(o,i){ga(o,i),ga(o+"Capture",i)}function ga(o,i){for(j1[o]=i,o=0;o<i.length;o++)D1.add(i[o])}var QO=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),I1={},L1={};function ZO(o){return Xn.call(L1,o)?!0:Xn.call(I1,o)?!1:QO.test(o)?L1[o]=!0:(I1[o]=!0,!1)}function Zc(o,i,a){if(ZO(i))if(a===null)o.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":o.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){o.removeAttribute(i);return}}o.setAttribute(i,""+a)}}function Jc(o,i,a){if(a===null)o.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(i);return}o.setAttribute(i,""+a)}}function Uo(o,i,a,u){if(u===null)o.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(a);return}o.setAttributeNS(i,a,""+u)}}function Ar(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function z1(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function JO(o,i,a){var u=Object.getOwnPropertyDescriptor(o.constructor.prototype,i);if(!o.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var d=u.get,h=u.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return d.call(this)},set:function(v){a=""+v,h.call(this,v)}}),Object.defineProperty(o,i,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(v){a=""+v},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function zh(o){if(!o._valueTracker){var i=z1(o)?"checked":"value";o._valueTracker=JO(o,i,""+o[i])}}function B1(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var a=i.getValue(),u="";return o&&(u=z1(o)?o.checked?"true":"false":o.value),o=u,o!==a?(i.setValue(o),!0):!1}function Wc(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var WO=/[\n"\\]/g;function $r(o){return o.replace(WO,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Bh(o,i,a,u,d,h,v,A){o.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?o.type=v:o.removeAttribute("type"),i!=null?v==="number"?(i===0&&o.value===""||o.value!=i)&&(o.value=""+Ar(i)):o.value!==""+Ar(i)&&(o.value=""+Ar(i)):v!=="submit"&&v!=="reset"||o.removeAttribute("value"),i!=null?Uh(o,v,Ar(i)):a!=null?Uh(o,v,Ar(a)):u!=null&&o.removeAttribute("value"),d==null&&h!=null&&(o.defaultChecked=!!h),d!=null&&(o.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?o.name=""+Ar(A):o.removeAttribute("name")}function U1(o,i,a,u,d,h,v,A){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(o.type=h),i!=null||a!=null){if(!(h!=="submit"&&h!=="reset"||i!=null)){zh(o);return}a=a!=null?""+Ar(a):"",i=i!=null?""+Ar(i):a,A||i===o.value||(o.value=i),o.defaultValue=i}u=u??d,u=typeof u!="function"&&typeof u!="symbol"&&!!u,o.checked=A?o.checked:!!u,o.defaultChecked=!!u,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(o.name=v),zh(o)}function Uh(o,i,a){i==="number"&&Wc(o.ownerDocument)===o||o.defaultValue===""+a||(o.defaultValue=""+a)}function ya(o,i,a,u){if(o=o.options,i){i={};for(var d=0;d<a.length;d++)i["$"+a[d]]=!0;for(a=0;a<o.length;a++)d=i.hasOwnProperty("$"+o[a].value),o[a].selected!==d&&(o[a].selected=d),d&&u&&(o[a].defaultSelected=!0)}else{for(a=""+Ar(a),i=null,d=0;d<o.length;d++){if(o[d].value===a){o[d].selected=!0,u&&(o[d].defaultSelected=!0);return}i!==null||o[d].disabled||(i=o[d])}i!==null&&(i.selected=!0)}}function k1(o,i,a){if(i!=null&&(i=""+Ar(i),i!==o.value&&(o.value=i),a==null)){o.defaultValue!==i&&(o.defaultValue=i);return}o.defaultValue=a!=null?""+Ar(a):""}function P1(o,i,a,u){if(i==null){if(u!=null){if(a!=null)throw Error(r(92));if(Z(u)){if(1<u.length)throw Error(r(93));u=u[0]}a=u}a==null&&(a=""),i=a}a=Ar(i),o.defaultValue=a,u=o.textContent,u===a&&u!==""&&u!==null&&(o.value=u),zh(o)}function ba(o,i){if(i){var a=o.firstChild;if(a&&a===o.lastChild&&a.nodeType===3){a.nodeValue=i;return}}o.textContent=i}var tN=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function H1(o,i,a){var u=i.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?u?o.setProperty(i,""):i==="float"?o.cssFloat="":o[i]="":u?o.setProperty(i,a):typeof a!="number"||a===0||tN.has(i)?i==="float"?o.cssFloat=a:o[i]=(""+a).trim():o[i]=a+"px"}function F1(o,i,a){if(i!=null&&typeof i!="object")throw Error(r(62));if(o=o.style,a!=null){for(var u in a)!a.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?o.setProperty(u,""):u==="float"?o.cssFloat="":o[u]="");for(var d in i)u=i[d],i.hasOwnProperty(d)&&a[d]!==u&&H1(o,d,u)}else for(var h in i)i.hasOwnProperty(h)&&H1(o,h,i[h])}function kh(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var eN=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),nN=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function tf(o){return nN.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function ko(){}var Ph=null;function Hh(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var va=null,Sa=null;function q1(o){var i=ha(o);if(i&&(o=i.stateNode)){var a=o[Dn]||null;t:switch(o=i.stateNode,i.type){case"input":if(Bh(o,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),i=a.name,a.type==="radio"&&i!=null){for(a=o;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+$r(""+i)+'"][type="radio"]'),i=0;i<a.length;i++){var u=a[i];if(u!==o&&u.form===o.form){var d=u[Dn]||null;if(!d)throw Error(r(90));Bh(u,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(i=0;i<a.length;i++)u=a[i],u.form===o.form&&B1(u)}break t;case"textarea":k1(o,a.value,a.defaultValue);break t;case"select":i=a.value,i!=null&&ya(o,!!a.multiple,i,!1)}}}var Fh=!1;function G1(o,i,a){if(Fh)return o(i,a);Fh=!0;try{var u=o(i);return u}finally{if(Fh=!1,(va!==null||Sa!==null)&&(Hf(),va&&(i=va,o=Sa,Sa=va=null,q1(i),o)))for(i=0;i<o.length;i++)q1(o[i])}}function ou(o,i){var a=o.stateNode;if(a===null)return null;var u=a[Dn]||null;if(u===null)return null;a=u[i];t:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(o=o.type,u=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!u;break t;default:o=!1}if(o)return null;if(a&&typeof a!="function")throw Error(r(231,i,typeof a));return a}var Po=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qh=!1;if(Po)try{var iu={};Object.defineProperty(iu,"passive",{get:function(){qh=!0}}),window.addEventListener("test",iu,iu),window.removeEventListener("test",iu,iu)}catch{qh=!1}var Oi=null,Gh=null,ef=null;function Y1(){if(ef)return ef;var o,i=Gh,a=i.length,u,d="value"in Oi?Oi.value:Oi.textContent,h=d.length;for(o=0;o<a&&i[o]===d[o];o++);var v=a-o;for(u=1;u<=v&&i[a-u]===d[h-u];u++);return ef=d.slice(o,1<u?1-u:void 0)}function nf(o){var i=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&i===13&&(o=13)):o=i,o===10&&(o=13),32<=o||o===13?o:0}function rf(){return!0}function V1(){return!1}function jn(o){function i(a,u,d,h,v){this._reactName=a,this._targetInst=d,this.type=u,this.nativeEvent=h,this.target=v,this.currentTarget=null;for(var A in o)o.hasOwnProperty(A)&&(a=o[A],this[A]=a?a(h):h[A]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?rf:V1,this.isPropagationStopped=V1,this}return b(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=rf)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=rf)},persist:function(){},isPersistent:rf}),i}var ws={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},of=jn(ws),su=b({},ws,{view:0,detail:0}),rN=jn(su),Yh,Vh,au,sf=b({},su,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xh,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==au&&(au&&o.type==="mousemove"?(Yh=o.screenX-au.screenX,Vh=o.screenY-au.screenY):Vh=Yh=0,au=o),Yh)},movementY:function(o){return"movementY"in o?o.movementY:Vh}}),K1=jn(sf),oN=b({},sf,{dataTransfer:0}),iN=jn(oN),sN=b({},su,{relatedTarget:0}),Kh=jn(sN),aN=b({},ws,{animationName:0,elapsedTime:0,pseudoElement:0}),lN=jn(aN),uN=b({},ws,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),cN=jn(uN),fN=b({},ws,{data:0}),X1=jn(fN),dN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mN={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pN(o){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(o):(o=hN[o])?!!i[o]:!1}function Xh(){return pN}var gN=b({},su,{key:function(o){if(o.key){var i=dN[o.key]||o.key;if(i!=="Unidentified")return i}return o.type==="keypress"?(o=nf(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?mN[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xh,charCode:function(o){return o.type==="keypress"?nf(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?nf(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),yN=jn(gN),bN=b({},sf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Q1=jn(bN),vN=b({},su,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xh}),SN=jn(vN),EN=b({},ws,{propertyName:0,elapsedTime:0,pseudoElement:0}),xN=jn(EN),wN=b({},sf,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),TN=jn(wN),CN=b({},ws,{newState:0,oldState:0}),AN=jn(CN),$N=[9,13,27,32],Qh=Po&&"CompositionEvent"in window,lu=null;Po&&"documentMode"in document&&(lu=document.documentMode);var MN=Po&&"TextEvent"in window&&!lu,Z1=Po&&(!Qh||lu&&8<lu&&11>=lu),J1=" ",W1=!1;function tS(o,i){switch(o){case"keyup":return $N.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eS(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Ea=!1;function RN(o,i){switch(o){case"compositionend":return eS(i);case"keypress":return i.which!==32?null:(W1=!0,J1);case"textInput":return o=i.data,o===J1&&W1?null:o;default:return null}}function ON(o,i){if(Ea)return o==="compositionend"||!Qh&&tS(o,i)?(o=Y1(),ef=Gh=Oi=null,Ea=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Z1&&i.locale!=="ko"?null:i.data;default:return null}}var NN={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nS(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i==="input"?!!NN[o.type]:i==="textarea"}function rS(o,i,a,u){va?Sa?Sa.push(u):Sa=[u]:va=u,i=Xf(i,"onChange"),0<i.length&&(a=new of("onChange","change",null,a,u),o.push({event:a,listeners:i}))}var uu=null,cu=null;function _N(o){Ux(o,0)}function af(o){var i=ru(o);if(B1(i))return o}function oS(o,i){if(o==="change")return i}var iS=!1;if(Po){var Zh;if(Po){var Jh="oninput"in document;if(!Jh){var sS=document.createElement("div");sS.setAttribute("oninput","return;"),Jh=typeof sS.oninput=="function"}Zh=Jh}else Zh=!1;iS=Zh&&(!document.documentMode||9<document.documentMode)}function aS(){uu&&(uu.detachEvent("onpropertychange",lS),cu=uu=null)}function lS(o){if(o.propertyName==="value"&&af(cu)){var i=[];rS(i,cu,o,Hh(o)),G1(_N,i)}}function DN(o,i,a){o==="focusin"?(aS(),uu=i,cu=a,uu.attachEvent("onpropertychange",lS)):o==="focusout"&&aS()}function jN(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return af(cu)}function IN(o,i){if(o==="click")return af(i)}function LN(o,i){if(o==="input"||o==="change")return af(i)}function zN(o,i){return o===i&&(o!==0||1/o===1/i)||o!==o&&i!==i}var Wn=typeof Object.is=="function"?Object.is:zN;function fu(o,i){if(Wn(o,i))return!0;if(typeof o!="object"||o===null||typeof i!="object"||i===null)return!1;var a=Object.keys(o),u=Object.keys(i);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var d=a[u];if(!Xn.call(i,d)||!Wn(o[d],i[d]))return!1}return!0}function uS(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function cS(o,i){var a=uS(o);o=0;for(var u;a;){if(a.nodeType===3){if(u=o+a.textContent.length,o<=i&&u>=i)return{node:a,offset:i-o};o=u}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=uS(a)}}function fS(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?fS(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function dS(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var i=Wc(o.document);i instanceof o.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)o=i.contentWindow;else break;i=Wc(o.document)}return i}function Wh(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i&&(i==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||i==="textarea"||o.contentEditable==="true")}var BN=Po&&"documentMode"in document&&11>=document.documentMode,xa=null,tp=null,du=null,ep=!1;function mS(o,i,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ep||xa==null||xa!==Wc(u)||(u=xa,"selectionStart"in u&&Wh(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),du&&fu(du,u)||(du=u,u=Xf(tp,"onSelect"),0<u.length&&(i=new of("onSelect","select",null,i,a),o.push({event:i,listeners:u}),i.target=xa)))}function Ts(o,i){var a={};return a[o.toLowerCase()]=i.toLowerCase(),a["Webkit"+o]="webkit"+i,a["Moz"+o]="moz"+i,a}var wa={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionrun:Ts("Transition","TransitionRun"),transitionstart:Ts("Transition","TransitionStart"),transitioncancel:Ts("Transition","TransitionCancel"),transitionend:Ts("Transition","TransitionEnd")},np={},hS={};Po&&(hS=document.createElement("div").style,"AnimationEvent"in window||(delete wa.animationend.animation,delete wa.animationiteration.animation,delete wa.animationstart.animation),"TransitionEvent"in window||delete wa.transitionend.transition);function Cs(o){if(np[o])return np[o];if(!wa[o])return o;var i=wa[o],a;for(a in i)if(i.hasOwnProperty(a)&&a in hS)return np[o]=i[a];return o}var pS=Cs("animationend"),gS=Cs("animationiteration"),yS=Cs("animationstart"),UN=Cs("transitionrun"),kN=Cs("transitionstart"),PN=Cs("transitioncancel"),bS=Cs("transitionend"),vS=new Map,rp="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");rp.push("scrollEnd");function Zr(o,i){vS.set(o,i),xs(i,[o])}var lf=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Mr=[],Ta=0,op=0;function uf(){for(var o=Ta,i=op=Ta=0;i<o;){var a=Mr[i];Mr[i++]=null;var u=Mr[i];Mr[i++]=null;var d=Mr[i];Mr[i++]=null;var h=Mr[i];if(Mr[i++]=null,u!==null&&d!==null){var v=u.pending;v===null?d.next=d:(d.next=v.next,v.next=d),u.pending=d}h!==0&&SS(a,d,h)}}function cf(o,i,a,u){Mr[Ta++]=o,Mr[Ta++]=i,Mr[Ta++]=a,Mr[Ta++]=u,op|=u,o.lanes|=u,o=o.alternate,o!==null&&(o.lanes|=u)}function ip(o,i,a,u){return cf(o,i,a,u),ff(o)}function As(o,i){return cf(o,null,null,i),ff(o)}function SS(o,i,a){o.lanes|=a;var u=o.alternate;u!==null&&(u.lanes|=a);for(var d=!1,h=o.return;h!==null;)h.childLanes|=a,u=h.alternate,u!==null&&(u.childLanes|=a),h.tag===22&&(o=h.stateNode,o===null||o._visibility&1||(d=!0)),o=h,h=h.return;return o.tag===3?(h=o.stateNode,d&&i!==null&&(d=31-Jn(a),o=h.hiddenUpdates,u=o[d],u===null?o[d]=[i]:u.push(i),i.lane=a|536870912),h):null}function ff(o){if(50<ju)throw ju=0,hg=null,Error(r(185));for(var i=o.return;i!==null;)o=i,i=o.return;return o.tag===3?o.stateNode:null}var Ca={};function HN(o,i,a,u){this.tag=o,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tr(o,i,a,u){return new HN(o,i,a,u)}function sp(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Ho(o,i){var a=o.alternate;return a===null?(a=tr(o.tag,i,o.key,o.mode),a.elementType=o.elementType,a.type=o.type,a.stateNode=o.stateNode,a.alternate=o,o.alternate=a):(a.pendingProps=i,a.type=o.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=o.flags&65011712,a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,i=o.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=o.sibling,a.index=o.index,a.ref=o.ref,a.refCleanup=o.refCleanup,a}function ES(o,i){o.flags&=65011714;var a=o.alternate;return a===null?(o.childLanes=0,o.lanes=i,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,i=a.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),o}function df(o,i,a,u,d,h){var v=0;if(u=o,typeof o=="function")sp(o)&&(v=1);else if(typeof o=="string")v=V_(o,a,ft.current)?26:o==="html"||o==="head"||o==="body"?27:5;else t:switch(o){case W:return o=tr(31,a,i,d),o.elementType=W,o.lanes=h,o;case w:return $s(a.children,d,h,i);case $:v=8,d|=24;break;case _:return o=tr(12,a,i,d|2),o.elementType=_,o.lanes=h,o;case H:return o=tr(13,a,i,d),o.elementType=H,o.lanes=h,o;case F:return o=tr(19,a,i,d),o.elementType=F,o.lanes=h,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case j:v=10;break t;case L:v=9;break t;case P:v=11;break t;case z:v=14;break t;case k:v=16,u=null;break t}v=29,a=Error(r(130,o===null?"null":typeof o,"")),u=null}return i=tr(v,a,i,d),i.elementType=o,i.type=u,i.lanes=h,i}function $s(o,i,a,u){return o=tr(7,o,u,i),o.lanes=a,o}function ap(o,i,a){return o=tr(6,o,null,i),o.lanes=a,o}function xS(o){var i=tr(18,null,null,0);return i.stateNode=o,i}function lp(o,i,a){return i=tr(4,o.children!==null?o.children:[],o.key,i),i.lanes=a,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}var wS=new WeakMap;function Rr(o,i){if(typeof o=="object"&&o!==null){var a=wS.get(o);return a!==void 0?a:(i={value:o,source:i,stack:vs(i)},wS.set(o,i),i)}return{value:o,source:i,stack:vs(i)}}var Aa=[],$a=0,mf=null,mu=0,Or=[],Nr=0,Ni=null,yo=1,bo="";function Fo(o,i){Aa[$a++]=mu,Aa[$a++]=mf,mf=o,mu=i}function TS(o,i,a){Or[Nr++]=yo,Or[Nr++]=bo,Or[Nr++]=Ni,Ni=o;var u=yo;o=bo;var d=32-Jn(u)-1;u&=~(1<<d),a+=1;var h=32-Jn(i)+d;if(30<h){var v=d-d%5;h=(u&(1<<v)-1).toString(32),u>>=v,d-=v,yo=1<<32-Jn(i)+d|a<<d|u,bo=h+o}else yo=1<<h|a<<d|u,bo=o}function up(o){o.return!==null&&(Fo(o,1),TS(o,1,0))}function cp(o){for(;o===mf;)mf=Aa[--$a],Aa[$a]=null,mu=Aa[--$a],Aa[$a]=null;for(;o===Ni;)Ni=Or[--Nr],Or[Nr]=null,bo=Or[--Nr],Or[Nr]=null,yo=Or[--Nr],Or[Nr]=null}function CS(o,i){Or[Nr++]=yo,Or[Nr++]=bo,Or[Nr++]=Ni,yo=i.id,bo=i.overflow,Ni=o}var dn=null,we=null,Xt=!1,_i=null,_r=!1,fp=Error(r(519));function Di(o){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hu(Rr(i,o)),fp}function AS(o){var i=o.stateNode,a=o.type,u=o.memoizedProps;switch(i[fn]=o,i[Dn]=u,a){case"dialog":qt("cancel",i),qt("close",i);break;case"iframe":case"object":case"embed":qt("load",i);break;case"video":case"audio":for(a=0;a<Lu.length;a++)qt(Lu[a],i);break;case"source":qt("error",i);break;case"img":case"image":case"link":qt("error",i),qt("load",i);break;case"details":qt("toggle",i);break;case"input":qt("invalid",i),U1(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":qt("invalid",i);break;case"textarea":qt("invalid",i),P1(i,u.value,u.defaultValue,u.children)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||i.textContent===""+a||u.suppressHydrationWarning===!0||Fx(i.textContent,a)?(u.popover!=null&&(qt("beforetoggle",i),qt("toggle",i)),u.onScroll!=null&&qt("scroll",i),u.onScrollEnd!=null&&qt("scrollend",i),u.onClick!=null&&(i.onclick=ko),i=!0):i=!1,i||Di(o,!0)}function $S(o){for(dn=o.return;dn;)switch(dn.tag){case 5:case 31:case 13:_r=!1;return;case 27:case 3:_r=!0;return;default:dn=dn.return}}function Ma(o){if(o!==dn)return!1;if(!Xt)return $S(o),Xt=!0,!1;var i=o.tag,a;if((a=i!==3&&i!==27)&&((a=i===5)&&(a=o.type,a=!(a!=="form"&&a!=="button")||Rg(o.type,o.memoizedProps)),a=!a),a&&we&&Di(o),$S(o),i===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));we=Jx(o)}else if(i===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));we=Jx(o)}else i===27?(i=we,Vi(o.type)?(o=jg,jg=null,we=o):we=i):we=dn?jr(o.stateNode.nextSibling):null;return!0}function Ms(){we=dn=null,Xt=!1}function dp(){var o=_i;return o!==null&&(Bn===null?Bn=o:Bn.push.apply(Bn,o),_i=null),o}function hu(o){_i===null?_i=[o]:_i.push(o)}var mp=N(null),Rs=null,qo=null;function ji(o,i,a){ot(mp,i._currentValue),i._currentValue=a}function Go(o){o._currentValue=mp.current,G(mp)}function hp(o,i,a){for(;o!==null;){var u=o.alternate;if((o.childLanes&i)!==i?(o.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),o===a)break;o=o.return}}function pp(o,i,a,u){var d=o.child;for(d!==null&&(d.return=o);d!==null;){var h=d.dependencies;if(h!==null){var v=d.child;h=h.firstContext;t:for(;h!==null;){var A=h;h=d;for(var I=0;I<i.length;I++)if(A.context===i[I]){h.lanes|=a,A=h.alternate,A!==null&&(A.lanes|=a),hp(h.return,a,o),u||(v=null);break t}h=A.next}}else if(d.tag===18){if(v=d.return,v===null)throw Error(r(341));v.lanes|=a,h=v.alternate,h!==null&&(h.lanes|=a),hp(v,a,o),v=null}else v=d.child;if(v!==null)v.return=d;else for(v=d;v!==null;){if(v===o){v=null;break}if(d=v.sibling,d!==null){d.return=v.return,v=d;break}v=v.return}d=v}}function Ra(o,i,a,u){o=null;for(var d=i,h=!1;d!==null;){if(!h){if((d.flags&524288)!==0)h=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var v=d.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var A=d.type;Wn(d.pendingProps.value,v.value)||(o!==null?o.push(A):o=[A])}}else if(d===Tt.current){if(v=d.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(o!==null?o.push(Pu):o=[Pu])}d=d.return}o!==null&&pp(i,o,a,u),i.flags|=262144}function hf(o){for(o=o.firstContext;o!==null;){if(!Wn(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Os(o){Rs=o,qo=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function mn(o){return MS(Rs,o)}function pf(o,i){return Rs===null&&Os(o),MS(o,i)}function MS(o,i){var a=i._currentValue;if(i={context:i,memoizedValue:a,next:null},qo===null){if(o===null)throw Error(r(308));qo=i,o.dependencies={lanes:0,firstContext:i},o.flags|=524288}else qo=qo.next=i;return a}var FN=typeof AbortController<"u"?AbortController:function(){var o=[],i=this.signal={aborted:!1,addEventListener:function(a,u){o.push(u)}};this.abort=function(){i.aborted=!0,o.forEach(function(a){return a()})}},qN=t.unstable_scheduleCallback,GN=t.unstable_NormalPriority,Ge={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gp(){return{controller:new FN,data:new Map,refCount:0}}function pu(o){o.refCount--,o.refCount===0&&qN(GN,function(){o.controller.abort()})}var gu=null,yp=0,Oa=0,Na=null;function YN(o,i){if(gu===null){var a=gu=[];yp=0,Oa=Sg(),Na={status:"pending",value:void 0,then:function(u){a.push(u)}}}return yp++,i.then(RS,RS),i}function RS(){if(--yp===0&&gu!==null){Na!==null&&(Na.status="fulfilled");var o=gu;gu=null,Oa=0,Na=null;for(var i=0;i<o.length;i++)(0,o[i])()}}function VN(o,i){var a=[],u={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return o.then(function(){u.status="fulfilled",u.value=i;for(var d=0;d<a.length;d++)(0,a[d])(i)},function(d){for(u.status="rejected",u.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),u}var OS=O.S;O.S=function(o,i){mx=Qn(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&YN(o,i),OS!==null&&OS(o,i)};var Ns=N(null);function bp(){var o=Ns.current;return o!==null?o:pe.pooledCache}function gf(o,i){i===null?ot(Ns,Ns.current):ot(Ns,i.pool)}function NS(){var o=bp();return o===null?null:{parent:Ge._currentValue,pool:o}}var _a=Error(r(460)),vp=Error(r(474)),yf=Error(r(542)),bf={then:function(){}};function _S(o){return o=o.status,o==="fulfilled"||o==="rejected"}function DS(o,i,a){switch(a=o[a],a===void 0?o.push(i):a!==i&&(i.then(ko,ko),i=a),i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,IS(o),o;default:if(typeof i.status=="string")i.then(ko,ko);else{if(o=pe,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=i,o.status="pending",o.then(function(u){if(i.status==="pending"){var d=i;d.status="fulfilled",d.value=u}},function(u){if(i.status==="pending"){var d=i;d.status="rejected",d.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,IS(o),o}throw Ds=i,_a}}function _s(o){try{var i=o._init;return i(o._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ds=a,_a):a}}var Ds=null;function jS(){if(Ds===null)throw Error(r(459));var o=Ds;return Ds=null,o}function IS(o){if(o===_a||o===yf)throw Error(r(483))}var Da=null,yu=0;function vf(o){var i=yu;return yu+=1,Da===null&&(Da=[]),DS(Da,o,i)}function bu(o,i){i=i.props.ref,o.ref=i!==void 0?i:null}function Sf(o,i){throw i.$$typeof===E?Error(r(525)):(o=Object.prototype.toString.call(i),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":o)))}function LS(o){function i(q,U){if(o){var V=q.deletions;V===null?(q.deletions=[U],q.flags|=16):V.push(U)}}function a(q,U){if(!o)return null;for(;U!==null;)i(q,U),U=U.sibling;return null}function u(q){for(var U=new Map;q!==null;)q.key!==null?U.set(q.key,q):U.set(q.index,q),q=q.sibling;return U}function d(q,U){return q=Ho(q,U),q.index=0,q.sibling=null,q}function h(q,U,V){return q.index=V,o?(V=q.alternate,V!==null?(V=V.index,V<U?(q.flags|=67108866,U):V):(q.flags|=67108866,U)):(q.flags|=1048576,U)}function v(q){return o&&q.alternate===null&&(q.flags|=67108866),q}function A(q,U,V,st){return U===null||U.tag!==6?(U=ap(V,q.mode,st),U.return=q,U):(U=d(U,V),U.return=q,U)}function I(q,U,V,st){var wt=V.type;return wt===w?rt(q,U,V.props.children,st,V.key):U!==null&&(U.elementType===wt||typeof wt=="object"&&wt!==null&&wt.$$typeof===k&&_s(wt)===U.type)?(U=d(U,V.props),bu(U,V),U.return=q,U):(U=df(V.type,V.key,V.props,null,q.mode,st),bu(U,V),U.return=q,U)}function K(q,U,V,st){return U===null||U.tag!==4||U.stateNode.containerInfo!==V.containerInfo||U.stateNode.implementation!==V.implementation?(U=lp(V,q.mode,st),U.return=q,U):(U=d(U,V.children||[]),U.return=q,U)}function rt(q,U,V,st,wt){return U===null||U.tag!==7?(U=$s(V,q.mode,st,wt),U.return=q,U):(U=d(U,V),U.return=q,U)}function lt(q,U,V){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=ap(""+U,q.mode,V),U.return=q,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case S:return V=df(U.type,U.key,U.props,null,q.mode,V),bu(V,U),V.return=q,V;case T:return U=lp(U,q.mode,V),U.return=q,U;case k:return U=_s(U),lt(q,U,V)}if(Z(U)||ct(U))return U=$s(U,q.mode,V,null),U.return=q,U;if(typeof U.then=="function")return lt(q,vf(U),V);if(U.$$typeof===j)return lt(q,pf(q,U),V);Sf(q,U)}return null}function X(q,U,V,st){var wt=U!==null?U.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return wt!==null?null:A(q,U,""+V,st);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case S:return V.key===wt?I(q,U,V,st):null;case T:return V.key===wt?K(q,U,V,st):null;case k:return V=_s(V),X(q,U,V,st)}if(Z(V)||ct(V))return wt!==null?null:rt(q,U,V,st,null);if(typeof V.then=="function")return X(q,U,vf(V),st);if(V.$$typeof===j)return X(q,U,pf(q,V),st);Sf(q,V)}return null}function J(q,U,V,st,wt){if(typeof st=="string"&&st!==""||typeof st=="number"||typeof st=="bigint")return q=q.get(V)||null,A(U,q,""+st,wt);if(typeof st=="object"&&st!==null){switch(st.$$typeof){case S:return q=q.get(st.key===null?V:st.key)||null,I(U,q,st,wt);case T:return q=q.get(st.key===null?V:st.key)||null,K(U,q,st,wt);case k:return st=_s(st),J(q,U,V,st,wt)}if(Z(st)||ct(st))return q=q.get(V)||null,rt(U,q,st,wt,null);if(typeof st.then=="function")return J(q,U,V,vf(st),wt);if(st.$$typeof===j)return J(q,U,V,pf(U,st),wt);Sf(U,st)}return null}function gt(q,U,V,st){for(var wt=null,Wt=null,vt=U,Bt=U=0,Vt=null;vt!==null&&Bt<V.length;Bt++){vt.index>Bt?(Vt=vt,vt=null):Vt=vt.sibling;var te=X(q,vt,V[Bt],st);if(te===null){vt===null&&(vt=Vt);break}o&&vt&&te.alternate===null&&i(q,vt),U=h(te,U,Bt),Wt===null?wt=te:Wt.sibling=te,Wt=te,vt=Vt}if(Bt===V.length)return a(q,vt),Xt&&Fo(q,Bt),wt;if(vt===null){for(;Bt<V.length;Bt++)vt=lt(q,V[Bt],st),vt!==null&&(U=h(vt,U,Bt),Wt===null?wt=vt:Wt.sibling=vt,Wt=vt);return Xt&&Fo(q,Bt),wt}for(vt=u(vt);Bt<V.length;Bt++)Vt=J(vt,q,Bt,V[Bt],st),Vt!==null&&(o&&Vt.alternate!==null&&vt.delete(Vt.key===null?Bt:Vt.key),U=h(Vt,U,Bt),Wt===null?wt=Vt:Wt.sibling=Vt,Wt=Vt);return o&&vt.forEach(function(Ji){return i(q,Ji)}),Xt&&Fo(q,Bt),wt}function Ct(q,U,V,st){if(V==null)throw Error(r(151));for(var wt=null,Wt=null,vt=U,Bt=U=0,Vt=null,te=V.next();vt!==null&&!te.done;Bt++,te=V.next()){vt.index>Bt?(Vt=vt,vt=null):Vt=vt.sibling;var Ji=X(q,vt,te.value,st);if(Ji===null){vt===null&&(vt=Vt);break}o&&vt&&Ji.alternate===null&&i(q,vt),U=h(Ji,U,Bt),Wt===null?wt=Ji:Wt.sibling=Ji,Wt=Ji,vt=Vt}if(te.done)return a(q,vt),Xt&&Fo(q,Bt),wt;if(vt===null){for(;!te.done;Bt++,te=V.next())te=lt(q,te.value,st),te!==null&&(U=h(te,U,Bt),Wt===null?wt=te:Wt.sibling=te,Wt=te);return Xt&&Fo(q,Bt),wt}for(vt=u(vt);!te.done;Bt++,te=V.next())te=J(vt,q,Bt,te.value,st),te!==null&&(o&&te.alternate!==null&&vt.delete(te.key===null?Bt:te.key),U=h(te,U,Bt),Wt===null?wt=te:Wt.sibling=te,Wt=te);return o&&vt.forEach(function(o3){return i(q,o3)}),Xt&&Fo(q,Bt),wt}function fe(q,U,V,st){if(typeof V=="object"&&V!==null&&V.type===w&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case S:t:{for(var wt=V.key;U!==null;){if(U.key===wt){if(wt=V.type,wt===w){if(U.tag===7){a(q,U.sibling),st=d(U,V.props.children),st.return=q,q=st;break t}}else if(U.elementType===wt||typeof wt=="object"&&wt!==null&&wt.$$typeof===k&&_s(wt)===U.type){a(q,U.sibling),st=d(U,V.props),bu(st,V),st.return=q,q=st;break t}a(q,U);break}else i(q,U);U=U.sibling}V.type===w?(st=$s(V.props.children,q.mode,st,V.key),st.return=q,q=st):(st=df(V.type,V.key,V.props,null,q.mode,st),bu(st,V),st.return=q,q=st)}return v(q);case T:t:{for(wt=V.key;U!==null;){if(U.key===wt)if(U.tag===4&&U.stateNode.containerInfo===V.containerInfo&&U.stateNode.implementation===V.implementation){a(q,U.sibling),st=d(U,V.children||[]),st.return=q,q=st;break t}else{a(q,U);break}else i(q,U);U=U.sibling}st=lp(V,q.mode,st),st.return=q,q=st}return v(q);case k:return V=_s(V),fe(q,U,V,st)}if(Z(V))return gt(q,U,V,st);if(ct(V)){if(wt=ct(V),typeof wt!="function")throw Error(r(150));return V=wt.call(V),Ct(q,U,V,st)}if(typeof V.then=="function")return fe(q,U,vf(V),st);if(V.$$typeof===j)return fe(q,U,pf(q,V),st);Sf(q,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,U!==null&&U.tag===6?(a(q,U.sibling),st=d(U,V),st.return=q,q=st):(a(q,U),st=ap(V,q.mode,st),st.return=q,q=st),v(q)):a(q,U)}return function(q,U,V,st){try{yu=0;var wt=fe(q,U,V,st);return Da=null,wt}catch(vt){if(vt===_a||vt===yf)throw vt;var Wt=tr(29,vt,null,q.mode);return Wt.lanes=st,Wt.return=q,Wt}}}var js=LS(!0),zS=LS(!1),Ii=!1;function Sp(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ep(o,i){o=o.updateQueue,i.updateQueue===o&&(i.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Li(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function zi(o,i,a){var u=o.updateQueue;if(u===null)return null;if(u=u.shared,(ee&2)!==0){var d=u.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),u.pending=i,i=ff(o),SS(o,null,a),i}return cf(o,u,i,a),ff(o)}function vu(o,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194048)!==0)){var u=i.lanes;u&=o.pendingLanes,a|=u,i.lanes=a,M1(o,a)}}function xp(o,i){var a=o.updateQueue,u=o.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var d=null,h=null;if(a=a.firstBaseUpdate,a!==null){do{var v={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};h===null?d=h=v:h=h.next=v,a=a.next}while(a!==null);h===null?d=h=i:h=h.next=i}else d=h=i;a={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:u.shared,callbacks:u.callbacks},o.updateQueue=a;return}o=a.lastBaseUpdate,o===null?a.firstBaseUpdate=i:o.next=i,a.lastBaseUpdate=i}var wp=!1;function Su(){if(wp){var o=Na;if(o!==null)throw o}}function Eu(o,i,a,u){wp=!1;var d=o.updateQueue;Ii=!1;var h=d.firstBaseUpdate,v=d.lastBaseUpdate,A=d.shared.pending;if(A!==null){d.shared.pending=null;var I=A,K=I.next;I.next=null,v===null?h=K:v.next=K,v=I;var rt=o.alternate;rt!==null&&(rt=rt.updateQueue,A=rt.lastBaseUpdate,A!==v&&(A===null?rt.firstBaseUpdate=K:A.next=K,rt.lastBaseUpdate=I))}if(h!==null){var lt=d.baseState;v=0,rt=K=I=null,A=h;do{var X=A.lane&-536870913,J=X!==A.lane;if(J?(Yt&X)===X:(u&X)===X){X!==0&&X===Oa&&(wp=!0),rt!==null&&(rt=rt.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});t:{var gt=o,Ct=A;X=i;var fe=a;switch(Ct.tag){case 1:if(gt=Ct.payload,typeof gt=="function"){lt=gt.call(fe,lt,X);break t}lt=gt;break t;case 3:gt.flags=gt.flags&-65537|128;case 0:if(gt=Ct.payload,X=typeof gt=="function"?gt.call(fe,lt,X):gt,X==null)break t;lt=b({},lt,X);break t;case 2:Ii=!0}}X=A.callback,X!==null&&(o.flags|=64,J&&(o.flags|=8192),J=d.callbacks,J===null?d.callbacks=[X]:J.push(X))}else J={lane:X,tag:A.tag,payload:A.payload,callback:A.callback,next:null},rt===null?(K=rt=J,I=lt):rt=rt.next=J,v|=X;if(A=A.next,A===null){if(A=d.shared.pending,A===null)break;J=A,A=J.next,J.next=null,d.lastBaseUpdate=J,d.shared.pending=null}}while(!0);rt===null&&(I=lt),d.baseState=I,d.firstBaseUpdate=K,d.lastBaseUpdate=rt,h===null&&(d.shared.lanes=0),Hi|=v,o.lanes=v,o.memoizedState=lt}}function BS(o,i){if(typeof o!="function")throw Error(r(191,o));o.call(i)}function US(o,i){var a=o.callbacks;if(a!==null)for(o.callbacks=null,o=0;o<a.length;o++)BS(a[o],i)}var ja=N(null),Ef=N(0);function kS(o,i){o=ti,ot(Ef,o),ot(ja,i),ti=o|i.baseLanes}function Tp(){ot(Ef,ti),ot(ja,ja.current)}function Cp(){ti=Ef.current,G(ja),G(Ef)}var er=N(null),Dr=null;function Bi(o){var i=o.alternate;ot(Ue,Ue.current&1),ot(er,o),Dr===null&&(i===null||ja.current!==null||i.memoizedState!==null)&&(Dr=o)}function Ap(o){ot(Ue,Ue.current),ot(er,o),Dr===null&&(Dr=o)}function PS(o){o.tag===22?(ot(Ue,Ue.current),ot(er,o),Dr===null&&(Dr=o)):Ui()}function Ui(){ot(Ue,Ue.current),ot(er,er.current)}function nr(o){G(er),Dr===o&&(Dr=null),G(Ue)}var Ue=N(0);function xf(o){for(var i=o;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||_g(a)||Dg(a)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Yo=0,zt=null,ue=null,Ye=null,wf=!1,Ia=!1,Is=!1,Tf=0,xu=0,La=null,KN=0;function Le(){throw Error(r(321))}function $p(o,i){if(i===null)return!1;for(var a=0;a<i.length&&a<o.length;a++)if(!Wn(o[a],i[a]))return!1;return!0}function Mp(o,i,a,u,d,h){return Yo=h,zt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,O.H=o===null||o.memoizedState===null?TE:Fp,Is=!1,h=a(u,d),Is=!1,Ia&&(h=FS(i,a,u,d)),HS(o),h}function HS(o){O.H=Cu;var i=ue!==null&&ue.next!==null;if(Yo=0,Ye=ue=zt=null,wf=!1,xu=0,La=null,i)throw Error(r(300));o===null||Ve||(o=o.dependencies,o!==null&&hf(o)&&(Ve=!0))}function FS(o,i,a,u){zt=o;var d=0;do{if(Ia&&(La=null),xu=0,Ia=!1,25<=d)throw Error(r(301));if(d+=1,Ye=ue=null,o.updateQueue!=null){var h=o.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}O.H=CE,h=i(a,u)}while(Ia);return h}function XN(){var o=O.H,i=o.useState()[0];return i=typeof i.then=="function"?wu(i):i,o=o.useState()[0],(ue!==null?ue.memoizedState:null)!==o&&(zt.flags|=1024),i}function Rp(){var o=Tf!==0;return Tf=0,o}function Op(o,i,a){i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~a}function Np(o){if(wf){for(o=o.memoizedState;o!==null;){var i=o.queue;i!==null&&(i.pending=null),o=o.next}wf=!1}Yo=0,Ye=ue=zt=null,Ia=!1,xu=Tf=0,La=null}function Tn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?zt.memoizedState=Ye=o:Ye=Ye.next=o,Ye}function ke(){if(ue===null){var o=zt.alternate;o=o!==null?o.memoizedState:null}else o=ue.next;var i=Ye===null?zt.memoizedState:Ye.next;if(i!==null)Ye=i,ue=o;else{if(o===null)throw zt.alternate===null?Error(r(467)):Error(r(310));ue=o,o={memoizedState:ue.memoizedState,baseState:ue.baseState,baseQueue:ue.baseQueue,queue:ue.queue,next:null},Ye===null?zt.memoizedState=Ye=o:Ye=Ye.next=o}return Ye}function Cf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wu(o){var i=xu;return xu+=1,La===null&&(La=[]),o=DS(La,o,i),i=zt,(Ye===null?i.memoizedState:Ye.next)===null&&(i=i.alternate,O.H=i===null||i.memoizedState===null?TE:Fp),o}function Af(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return wu(o);if(o.$$typeof===j)return mn(o)}throw Error(r(438,String(o)))}function _p(o){var i=null,a=zt.updateQueue;if(a!==null&&(i=a.memoCache),i==null){var u=zt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(d){return d.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),a===null&&(a=Cf(),zt.updateQueue=a),a.memoCache=i,a=i.data[i.index],a===void 0)for(a=i.data[i.index]=Array(o),u=0;u<o;u++)a[u]=et;return i.index++,a}function Vo(o,i){return typeof i=="function"?i(o):i}function $f(o){var i=ke();return Dp(i,ue,o)}function Dp(o,i,a){var u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var d=o.baseQueue,h=u.pending;if(h!==null){if(d!==null){var v=d.next;d.next=h.next,h.next=v}i.baseQueue=d=h,u.pending=null}if(h=o.baseState,d===null)o.memoizedState=h;else{i=d.next;var A=v=null,I=null,K=i,rt=!1;do{var lt=K.lane&-536870913;if(lt!==K.lane?(Yt<)===lt:(Yo<)===lt){var X=K.revertLane;if(X===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),lt===Oa&&(rt=!0);else if((Yo&X)===X){K=K.next,X===Oa&&(rt=!0);continue}else lt={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},I===null?(A=I=lt,v=h):I=I.next=lt,zt.lanes|=X,Hi|=X;lt=K.action,Is&&a(h,lt),h=K.hasEagerState?K.eagerState:a(h,lt)}else X={lane:lt,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},I===null?(A=I=X,v=h):I=I.next=X,zt.lanes|=lt,Hi|=lt;K=K.next}while(K!==null&&K!==i);if(I===null?v=h:I.next=A,!Wn(h,o.memoizedState)&&(Ve=!0,rt&&(a=Na,a!==null)))throw a;o.memoizedState=h,o.baseState=v,o.baseQueue=I,u.lastRenderedState=h}return d===null&&(u.lanes=0),[o.memoizedState,u.dispatch]}function jp(o){var i=ke(),a=i.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=o;var u=a.dispatch,d=a.pending,h=i.memoizedState;if(d!==null){a.pending=null;var v=d=d.next;do h=o(h,v.action),v=v.next;while(v!==d);Wn(h,i.memoizedState)||(Ve=!0),i.memoizedState=h,i.baseQueue===null&&(i.baseState=h),a.lastRenderedState=h}return[h,u]}function qS(o,i,a){var u=zt,d=ke(),h=Xt;if(h){if(a===void 0)throw Error(r(407));a=a()}else a=i();var v=!Wn((ue||d).memoizedState,a);if(v&&(d.memoizedState=a,Ve=!0),d=d.queue,zp(VS.bind(null,u,d,o),[o]),d.getSnapshot!==i||v||Ye!==null&&Ye.memoizedState.tag&1){if(u.flags|=2048,za(9,{destroy:void 0},YS.bind(null,u,d,a,i),null),pe===null)throw Error(r(349));h||(Yo&127)!==0||GS(u,i,a)}return a}function GS(o,i,a){o.flags|=16384,o={getSnapshot:i,value:a},i=zt.updateQueue,i===null?(i=Cf(),zt.updateQueue=i,i.stores=[o]):(a=i.stores,a===null?i.stores=[o]:a.push(o))}function YS(o,i,a,u){i.value=a,i.getSnapshot=u,KS(i)&&XS(o)}function VS(o,i,a){return a(function(){KS(i)&&XS(o)})}function KS(o){var i=o.getSnapshot;o=o.value;try{var a=i();return!Wn(o,a)}catch{return!0}}function XS(o){var i=As(o,2);i!==null&&Un(i,o,2)}function Ip(o){var i=Tn();if(typeof o=="function"){var a=o;if(o=a(),Is){Mi(!0);try{a()}finally{Mi(!1)}}}return i.memoizedState=i.baseState=o,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:o},i}function QS(o,i,a,u){return o.baseState=a,Dp(o,ue,typeof u=="function"?u:Vo)}function QN(o,i,a,u,d){if(Of(o))throw Error(r(485));if(o=i.action,o!==null){var h={payload:d,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){h.listeners.push(v)}};O.T!==null?a(!0):h.isTransition=!1,u(h),a=i.pending,a===null?(h.next=i.pending=h,ZS(i,h)):(h.next=a.next,i.pending=a.next=h)}}function ZS(o,i){var a=i.action,u=i.payload,d=o.state;if(i.isTransition){var h=O.T,v={};O.T=v;try{var A=a(d,u),I=O.S;I!==null&&I(v,A),JS(o,i,A)}catch(K){Lp(o,i,K)}finally{h!==null&&v.types!==null&&(h.types=v.types),O.T=h}}else try{h=a(d,u),JS(o,i,h)}catch(K){Lp(o,i,K)}}function JS(o,i,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){WS(o,i,u)},function(u){return Lp(o,i,u)}):WS(o,i,a)}function WS(o,i,a){i.status="fulfilled",i.value=a,tE(i),o.state=a,i=o.pending,i!==null&&(a=i.next,a===i?o.pending=null:(a=a.next,i.next=a,ZS(o,a)))}function Lp(o,i,a){var u=o.pending;if(o.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=a,tE(i),i=i.next;while(i!==u)}o.action=null}function tE(o){o=o.listeners;for(var i=0;i<o.length;i++)(0,o[i])()}function eE(o,i){return i}function nE(o,i){if(Xt){var a=pe.formState;if(a!==null){t:{var u=zt;if(Xt){if(we){e:{for(var d=we,h=_r;d.nodeType!==8;){if(!h){d=null;break e}if(d=jr(d.nextSibling),d===null){d=null;break e}}h=d.data,d=h==="F!"||h==="F"?d:null}if(d){we=jr(d.nextSibling),u=d.data==="F!";break t}}Di(u)}u=!1}u&&(i=a[0])}}return a=Tn(),a.memoizedState=a.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eE,lastRenderedState:i},a.queue=u,a=EE.bind(null,zt,u),u.dispatch=a,u=Ip(!1),h=Hp.bind(null,zt,!1,u.queue),u=Tn(),d={state:i,dispatch:null,action:o,pending:null},u.queue=d,a=QN.bind(null,zt,d,h,a),d.dispatch=a,u.memoizedState=o,[i,a,!1]}function rE(o){var i=ke();return oE(i,ue,o)}function oE(o,i,a){if(i=Dp(o,i,eE)[0],o=$f(Vo)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=wu(i)}catch(v){throw v===_a?yf:v}else u=i;i=ke();var d=i.queue,h=d.dispatch;return a!==i.memoizedState&&(zt.flags|=2048,za(9,{destroy:void 0},ZN.bind(null,d,a),null)),[u,h,o]}function ZN(o,i){o.action=i}function iE(o){var i=ke(),a=ue;if(a!==null)return oE(i,a,o);ke(),i=i.memoizedState,a=ke();var u=a.queue.dispatch;return a.memoizedState=o,[i,u,!1]}function za(o,i,a,u){return o={tag:o,create:a,deps:u,inst:i,next:null},i=zt.updateQueue,i===null&&(i=Cf(),zt.updateQueue=i),a=i.lastEffect,a===null?i.lastEffect=o.next=o:(u=a.next,a.next=o,o.next=u,i.lastEffect=o),o}function sE(){return ke().memoizedState}function Mf(o,i,a,u){var d=Tn();zt.flags|=o,d.memoizedState=za(1|i,{destroy:void 0},a,u===void 0?null:u)}function Rf(o,i,a,u){var d=ke();u=u===void 0?null:u;var h=d.memoizedState.inst;ue!==null&&u!==null&&$p(u,ue.memoizedState.deps)?d.memoizedState=za(i,h,a,u):(zt.flags|=o,d.memoizedState=za(1|i,h,a,u))}function aE(o,i){Mf(8390656,8,o,i)}function zp(o,i){Rf(2048,8,o,i)}function JN(o){zt.flags|=4;var i=zt.updateQueue;if(i===null)i=Cf(),zt.updateQueue=i,i.events=[o];else{var a=i.events;a===null?i.events=[o]:a.push(o)}}function lE(o){var i=ke().memoizedState;return JN({ref:i,nextImpl:o}),function(){if((ee&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function uE(o,i){return Rf(4,2,o,i)}function cE(o,i){return Rf(4,4,o,i)}function fE(o,i){if(typeof i=="function"){o=o();var a=i(o);return function(){typeof a=="function"?a():i(null)}}if(i!=null)return o=o(),i.current=o,function(){i.current=null}}function dE(o,i,a){a=a!=null?a.concat([o]):null,Rf(4,4,fE.bind(null,i,o),a)}function Bp(){}function mE(o,i){var a=ke();i=i===void 0?null:i;var u=a.memoizedState;return i!==null&&$p(i,u[1])?u[0]:(a.memoizedState=[o,i],o)}function hE(o,i){var a=ke();i=i===void 0?null:i;var u=a.memoizedState;if(i!==null&&$p(i,u[1]))return u[0];if(u=o(),Is){Mi(!0);try{o()}finally{Mi(!1)}}return a.memoizedState=[u,i],u}function Up(o,i,a){return a===void 0||(Yo&1073741824)!==0&&(Yt&261930)===0?o.memoizedState=i:(o.memoizedState=a,o=px(),zt.lanes|=o,Hi|=o,a)}function pE(o,i,a,u){return Wn(a,i)?a:ja.current!==null?(o=Up(o,a,u),Wn(o,i)||(Ve=!0),o):(Yo&42)===0||(Yo&1073741824)!==0&&(Yt&261930)===0?(Ve=!0,o.memoizedState=a):(o=px(),zt.lanes|=o,Hi|=o,i)}function gE(o,i,a,u,d){var h=B.p;B.p=h!==0&&8>h?h:8;var v=O.T,A={};O.T=A,Hp(o,!1,i,a);try{var I=d(),K=O.S;if(K!==null&&K(A,I),I!==null&&typeof I=="object"&&typeof I.then=="function"){var rt=VN(I,u);Tu(o,i,rt,ir(o))}else Tu(o,i,u,ir(o))}catch(lt){Tu(o,i,{then:function(){},status:"rejected",reason:lt},ir())}finally{B.p=h,v!==null&&A.types!==null&&(v.types=A.types),O.T=v}}function WN(){}function kp(o,i,a,u){if(o.tag!==5)throw Error(r(476));var d=yE(o).queue;gE(o,d,i,D,a===null?WN:function(){return bE(o),a(u)})}function yE(o){var i=o.memoizedState;if(i!==null)return i;i={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:D},next:null};var a={};return i.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:a},next:null},o.memoizedState=i,o=o.alternate,o!==null&&(o.memoizedState=i),i}function bE(o){var i=yE(o);i.next===null&&(i=o.alternate.memoizedState),Tu(o,i.next.queue,{},ir())}function Pp(){return mn(Pu)}function vE(){return ke().memoizedState}function SE(){return ke().memoizedState}function t_(o){for(var i=o.return;i!==null;){switch(i.tag){case 24:case 3:var a=ir();o=Li(a);var u=zi(i,o,a);u!==null&&(Un(u,i,a),vu(u,i,a)),i={cache:gp()},o.payload=i;return}i=i.return}}function e_(o,i,a){var u=ir();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Of(o)?xE(i,a):(a=ip(o,i,a,u),a!==null&&(Un(a,o,u),wE(a,i,u)))}function EE(o,i,a){var u=ir();Tu(o,i,a,u)}function Tu(o,i,a,u){var d={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Of(o))xE(i,d);else{var h=o.alternate;if(o.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var v=i.lastRenderedState,A=h(v,a);if(d.hasEagerState=!0,d.eagerState=A,Wn(A,v))return cf(o,i,d,0),pe===null&&uf(),!1}catch{}if(a=ip(o,i,d,u),a!==null)return Un(a,o,u),wE(a,i,u),!0}return!1}function Hp(o,i,a,u){if(u={lane:2,revertLane:Sg(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Of(o)){if(i)throw Error(r(479))}else i=ip(o,a,u,2),i!==null&&Un(i,o,2)}function Of(o){var i=o.alternate;return o===zt||i!==null&&i===zt}function xE(o,i){Ia=wf=!0;var a=o.pending;a===null?i.next=i:(i.next=a.next,a.next=i),o.pending=i}function wE(o,i,a){if((a&4194048)!==0){var u=i.lanes;u&=o.pendingLanes,a|=u,i.lanes=a,M1(o,a)}}var Cu={readContext:mn,use:Af,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le};Cu.useEffectEvent=Le;var TE={readContext:mn,use:Af,useCallback:function(o,i){return Tn().memoizedState=[o,i===void 0?null:i],o},useContext:mn,useEffect:aE,useImperativeHandle:function(o,i,a){a=a!=null?a.concat([o]):null,Mf(4194308,4,fE.bind(null,i,o),a)},useLayoutEffect:function(o,i){return Mf(4194308,4,o,i)},useInsertionEffect:function(o,i){Mf(4,2,o,i)},useMemo:function(o,i){var a=Tn();i=i===void 0?null:i;var u=o();if(Is){Mi(!0);try{o()}finally{Mi(!1)}}return a.memoizedState=[u,i],u},useReducer:function(o,i,a){var u=Tn();if(a!==void 0){var d=a(i);if(Is){Mi(!0);try{a(i)}finally{Mi(!1)}}}else d=i;return u.memoizedState=u.baseState=d,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:d},u.queue=o,o=o.dispatch=e_.bind(null,zt,o),[u.memoizedState,o]},useRef:function(o){var i=Tn();return o={current:o},i.memoizedState=o},useState:function(o){o=Ip(o);var i=o.queue,a=EE.bind(null,zt,i);return i.dispatch=a,[o.memoizedState,a]},useDebugValue:Bp,useDeferredValue:function(o,i){var a=Tn();return Up(a,o,i)},useTransition:function(){var o=Ip(!1);return o=gE.bind(null,zt,o.queue,!0,!1),Tn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,i,a){var u=zt,d=Tn();if(Xt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=i(),pe===null)throw Error(r(349));(Yt&127)!==0||GS(u,i,a)}d.memoizedState=a;var h={value:a,getSnapshot:i};return d.queue=h,aE(VS.bind(null,u,h,o),[o]),u.flags|=2048,za(9,{destroy:void 0},YS.bind(null,u,h,a,i),null),a},useId:function(){var o=Tn(),i=pe.identifierPrefix;if(Xt){var a=bo,u=yo;a=(u&~(1<<32-Jn(u)-1)).toString(32)+a,i="_"+i+"R_"+a,a=Tf++,0<a&&(i+="H"+a.toString(32)),i+="_"}else a=KN++,i="_"+i+"r_"+a.toString(32)+"_";return o.memoizedState=i},useHostTransitionStatus:Pp,useFormState:nE,useActionState:nE,useOptimistic:function(o){var i=Tn();i.memoizedState=i.baseState=o;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=a,i=Hp.bind(null,zt,!0,a),a.dispatch=i,[o,i]},useMemoCache:_p,useCacheRefresh:function(){return Tn().memoizedState=t_.bind(null,zt)},useEffectEvent:function(o){var i=Tn(),a={impl:o};return i.memoizedState=a,function(){if((ee&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Fp={readContext:mn,use:Af,useCallback:mE,useContext:mn,useEffect:zp,useImperativeHandle:dE,useInsertionEffect:uE,useLayoutEffect:cE,useMemo:hE,useReducer:$f,useRef:sE,useState:function(){return $f(Vo)},useDebugValue:Bp,useDeferredValue:function(o,i){var a=ke();return pE(a,ue.memoizedState,o,i)},useTransition:function(){var o=$f(Vo)[0],i=ke().memoizedState;return[typeof o=="boolean"?o:wu(o),i]},useSyncExternalStore:qS,useId:vE,useHostTransitionStatus:Pp,useFormState:rE,useActionState:rE,useOptimistic:function(o,i){var a=ke();return QS(a,ue,o,i)},useMemoCache:_p,useCacheRefresh:SE};Fp.useEffectEvent=lE;var CE={readContext:mn,use:Af,useCallback:mE,useContext:mn,useEffect:zp,useImperativeHandle:dE,useInsertionEffect:uE,useLayoutEffect:cE,useMemo:hE,useReducer:jp,useRef:sE,useState:function(){return jp(Vo)},useDebugValue:Bp,useDeferredValue:function(o,i){var a=ke();return ue===null?Up(a,o,i):pE(a,ue.memoizedState,o,i)},useTransition:function(){var o=jp(Vo)[0],i=ke().memoizedState;return[typeof o=="boolean"?o:wu(o),i]},useSyncExternalStore:qS,useId:vE,useHostTransitionStatus:Pp,useFormState:iE,useActionState:iE,useOptimistic:function(o,i){var a=ke();return ue!==null?QS(a,ue,o,i):(a.baseState=o,[o,a.queue.dispatch])},useMemoCache:_p,useCacheRefresh:SE};CE.useEffectEvent=lE;function qp(o,i,a,u){i=o.memoizedState,a=a(u,i),a=a==null?i:b({},i,a),o.memoizedState=a,o.lanes===0&&(o.updateQueue.baseState=a)}var Gp={enqueueSetState:function(o,i,a){o=o._reactInternals;var u=ir(),d=Li(u);d.payload=i,a!=null&&(d.callback=a),i=zi(o,d,u),i!==null&&(Un(i,o,u),vu(i,o,u))},enqueueReplaceState:function(o,i,a){o=o._reactInternals;var u=ir(),d=Li(u);d.tag=1,d.payload=i,a!=null&&(d.callback=a),i=zi(o,d,u),i!==null&&(Un(i,o,u),vu(i,o,u))},enqueueForceUpdate:function(o,i){o=o._reactInternals;var a=ir(),u=Li(a);u.tag=2,i!=null&&(u.callback=i),i=zi(o,u,a),i!==null&&(Un(i,o,a),vu(i,o,a))}};function AE(o,i,a,u,d,h,v){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(u,h,v):i.prototype&&i.prototype.isPureReactComponent?!fu(a,u)||!fu(d,h):!0}function $E(o,i,a,u){o=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,u),i.state!==o&&Gp.enqueueReplaceState(i,i.state,null)}function Ls(o,i){var a=i;if("ref"in i){a={};for(var u in i)u!=="ref"&&(a[u]=i[u])}if(o=o.defaultProps){a===i&&(a=b({},a));for(var d in o)a[d]===void 0&&(a[d]=o[d])}return a}function ME(o){lf(o)}function RE(o){console.error(o)}function OE(o){lf(o)}function Nf(o,i){try{var a=o.onUncaughtError;a(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function NE(o,i,a){try{var u=o.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Yp(o,i,a){return a=Li(a),a.tag=3,a.payload={element:null},a.callback=function(){Nf(o,i)},a}function _E(o){return o=Li(o),o.tag=3,o}function DE(o,i,a,u){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var h=u.value;o.payload=function(){return d(h)},o.callback=function(){NE(i,a,u)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(o.callback=function(){NE(i,a,u),typeof d!="function"&&(Fi===null?Fi=new Set([this]):Fi.add(this));var A=u.stack;this.componentDidCatch(u.value,{componentStack:A!==null?A:""})})}function n_(o,i,a,u,d){if(a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=a.alternate,i!==null&&Ra(i,a,d,!0),a=er.current,a!==null){switch(a.tag){case 31:case 13:return Dr===null?Ff():a.alternate===null&&ze===0&&(ze=3),a.flags&=-257,a.flags|=65536,a.lanes=d,u===bf?a.flags|=16384:(i=a.updateQueue,i===null?a.updateQueue=new Set([u]):i.add(u),yg(o,u,d)),!1;case 22:return a.flags|=65536,u===bf?a.flags|=16384:(i=a.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=i):(a=i.retryQueue,a===null?i.retryQueue=new Set([u]):a.add(u)),yg(o,u,d)),!1}throw Error(r(435,a.tag))}return yg(o,u,d),Ff(),!1}if(Xt)return i=er.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=d,u!==fp&&(o=Error(r(422),{cause:u}),hu(Rr(o,a)))):(u!==fp&&(i=Error(r(423),{cause:u}),hu(Rr(i,a))),o=o.current.alternate,o.flags|=65536,d&=-d,o.lanes|=d,u=Rr(u,a),d=Yp(o.stateNode,u,d),xp(o,d),ze!==4&&(ze=2)),!1;var h=Error(r(520),{cause:u});if(h=Rr(h,a),Du===null?Du=[h]:Du.push(h),ze!==4&&(ze=2),i===null)return!0;u=Rr(u,a),a=i;do{switch(a.tag){case 3:return a.flags|=65536,o=d&-d,a.lanes|=o,o=Yp(a.stateNode,u,o),xp(a,o),!1;case 1:if(i=a.type,h=a.stateNode,(a.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Fi===null||!Fi.has(h))))return a.flags|=65536,d&=-d,a.lanes|=d,d=_E(d),DE(d,o,a,u),xp(a,d),!1}a=a.return}while(a!==null);return!1}var Vp=Error(r(461)),Ve=!1;function hn(o,i,a,u){i.child=o===null?zS(i,null,a,u):js(i,o.child,a,u)}function jE(o,i,a,u,d){a=a.render;var h=i.ref;if("ref"in u){var v={};for(var A in u)A!=="ref"&&(v[A]=u[A])}else v=u;return Os(i),u=Mp(o,i,a,v,h,d),A=Rp(),o!==null&&!Ve?(Op(o,i,d),Ko(o,i,d)):(Xt&&A&&up(i),i.flags|=1,hn(o,i,u,d),i.child)}function IE(o,i,a,u,d){if(o===null){var h=a.type;return typeof h=="function"&&!sp(h)&&h.defaultProps===void 0&&a.compare===null?(i.tag=15,i.type=h,LE(o,i,h,u,d)):(o=df(a.type,null,u,i,i.mode,d),o.ref=i.ref,o.return=i,i.child=o)}if(h=o.child,!eg(o,d)){var v=h.memoizedProps;if(a=a.compare,a=a!==null?a:fu,a(v,u)&&o.ref===i.ref)return Ko(o,i,d)}return i.flags|=1,o=Ho(h,u),o.ref=i.ref,o.return=i,i.child=o}function LE(o,i,a,u,d){if(o!==null){var h=o.memoizedProps;if(fu(h,u)&&o.ref===i.ref)if(Ve=!1,i.pendingProps=u=h,eg(o,d))(o.flags&131072)!==0&&(Ve=!0);else return i.lanes=o.lanes,Ko(o,i,d)}return Kp(o,i,a,u,d)}function zE(o,i,a,u){var d=u.children,h=o!==null?o.memoizedState:null;if(o===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((i.flags&128)!==0){if(h=h!==null?h.baseLanes|a:a,o!==null){for(u=i.child=o.child,d=0;u!==null;)d=d|u.lanes|u.childLanes,u=u.sibling;u=d&~h}else u=0,i.child=null;return BE(o,i,h,a,u)}if((a&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},o!==null&&gf(i,h!==null?h.cachePool:null),h!==null?kS(i,h):Tp(),PS(i);else return u=i.lanes=536870912,BE(o,i,h!==null?h.baseLanes|a:a,a,u)}else h!==null?(gf(i,h.cachePool),kS(i,h),Ui(),i.memoizedState=null):(o!==null&&gf(i,null),Tp(),Ui());return hn(o,i,d,a),i.child}function Au(o,i){return o!==null&&o.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function BE(o,i,a,u,d){var h=bp();return h=h===null?null:{parent:Ge._currentValue,pool:h},i.memoizedState={baseLanes:a,cachePool:h},o!==null&&gf(i,null),Tp(),PS(i),o!==null&&Ra(o,i,u,!0),i.childLanes=d,null}function _f(o,i){return i=jf({mode:i.mode,children:i.children},o.mode),i.ref=o.ref,o.child=i,i.return=o,i}function UE(o,i,a){return js(i,o.child,null,a),o=_f(i,i.pendingProps),o.flags|=2,nr(i),i.memoizedState=null,o}function r_(o,i,a){var u=i.pendingProps,d=(i.flags&128)!==0;if(i.flags&=-129,o===null){if(Xt){if(u.mode==="hidden")return o=_f(i,u),i.lanes=536870912,Au(null,o);if(Ap(i),(o=we)?(o=Zx(o,_r),o=o!==null&&o.data==="&"?o:null,o!==null&&(i.memoizedState={dehydrated:o,treeContext:Ni!==null?{id:yo,overflow:bo}:null,retryLane:536870912,hydrationErrors:null},a=xS(o),a.return=i,i.child=a,dn=i,we=null)):o=null,o===null)throw Di(i);return i.lanes=536870912,null}return _f(i,u)}var h=o.memoizedState;if(h!==null){var v=h.dehydrated;if(Ap(i),d)if(i.flags&256)i.flags&=-257,i=UE(o,i,a);else if(i.memoizedState!==null)i.child=o.child,i.flags|=128,i=null;else throw Error(r(558));else if(Ve||Ra(o,i,a,!1),d=(a&o.childLanes)!==0,Ve||d){if(u=pe,u!==null&&(v=R1(u,a),v!==0&&v!==h.retryLane))throw h.retryLane=v,As(o,v),Un(u,o,v),Vp;Ff(),i=UE(o,i,a)}else o=h.treeContext,we=jr(v.nextSibling),dn=i,Xt=!0,_i=null,_r=!1,o!==null&&CS(i,o),i=_f(i,u),i.flags|=4096;return i}return o=Ho(o.child,{mode:u.mode,children:u.children}),o.ref=i.ref,i.child=o,o.return=i,o}function Df(o,i){var a=i.ref;if(a===null)o!==null&&o.ref!==null&&(i.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(o===null||o.ref!==a)&&(i.flags|=4194816)}}function Kp(o,i,a,u,d){return Os(i),a=Mp(o,i,a,u,void 0,d),u=Rp(),o!==null&&!Ve?(Op(o,i,d),Ko(o,i,d)):(Xt&&u&&up(i),i.flags|=1,hn(o,i,a,d),i.child)}function kE(o,i,a,u,d,h){return Os(i),i.updateQueue=null,a=FS(i,u,a,d),HS(o),u=Rp(),o!==null&&!Ve?(Op(o,i,h),Ko(o,i,h)):(Xt&&u&&up(i),i.flags|=1,hn(o,i,a,h),i.child)}function PE(o,i,a,u,d){if(Os(i),i.stateNode===null){var h=Ca,v=a.contextType;typeof v=="object"&&v!==null&&(h=mn(v)),h=new a(u,h),i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Gp,i.stateNode=h,h._reactInternals=i,h=i.stateNode,h.props=u,h.state=i.memoizedState,h.refs={},Sp(i),v=a.contextType,h.context=typeof v=="object"&&v!==null?mn(v):Ca,h.state=i.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(qp(i,a,v,u),h.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(v=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),v!==h.state&&Gp.enqueueReplaceState(h,h.state,null),Eu(i,u,h,d),Su(),h.state=i.memoizedState),typeof h.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(o===null){h=i.stateNode;var A=i.memoizedProps,I=Ls(a,A);h.props=I;var K=h.context,rt=a.contextType;v=Ca,typeof rt=="object"&&rt!==null&&(v=mn(rt));var lt=a.getDerivedStateFromProps;rt=typeof lt=="function"||typeof h.getSnapshotBeforeUpdate=="function",A=i.pendingProps!==A,rt||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(A||K!==v)&&$E(i,h,u,v),Ii=!1;var X=i.memoizedState;h.state=X,Eu(i,u,h,d),Su(),K=i.memoizedState,A||X!==K||Ii?(typeof lt=="function"&&(qp(i,a,lt,u),K=i.memoizedState),(I=Ii||AE(i,a,I,u,X,K,v))?(rt||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(i.flags|=4194308)):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=K),h.props=u,h.state=K,h.context=v,u=I):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{h=i.stateNode,Ep(o,i),v=i.memoizedProps,rt=Ls(a,v),h.props=rt,lt=i.pendingProps,X=h.context,K=a.contextType,I=Ca,typeof K=="object"&&K!==null&&(I=mn(K)),A=a.getDerivedStateFromProps,(K=typeof A=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==lt||X!==I)&&$E(i,h,u,I),Ii=!1,X=i.memoizedState,h.state=X,Eu(i,u,h,d),Su();var J=i.memoizedState;v!==lt||X!==J||Ii||o!==null&&o.dependencies!==null&&hf(o.dependencies)?(typeof A=="function"&&(qp(i,a,A,u),J=i.memoizedState),(rt=Ii||AE(i,a,rt,u,X,J,I)||o!==null&&o.dependencies!==null&&hf(o.dependencies))?(K||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(u,J,I),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(u,J,I)),typeof h.componentDidUpdate=="function"&&(i.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof h.componentDidUpdate!="function"||v===o.memoizedProps&&X===o.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===o.memoizedProps&&X===o.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=J),h.props=u,h.state=J,h.context=I,u=rt):(typeof h.componentDidUpdate!="function"||v===o.memoizedProps&&X===o.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===o.memoizedProps&&X===o.memoizedState||(i.flags|=1024),u=!1)}return h=u,Df(o,i),u=(i.flags&128)!==0,h||u?(h=i.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:h.render(),i.flags|=1,o!==null&&u?(i.child=js(i,o.child,null,d),i.child=js(i,null,a,d)):hn(o,i,a,d),i.memoizedState=h.state,o=i.child):o=Ko(o,i,d),o}function HE(o,i,a,u){return Ms(),i.flags|=256,hn(o,i,a,u),i.child}var Xp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qp(o){return{baseLanes:o,cachePool:NS()}}function Zp(o,i,a){return o=o!==null?o.childLanes&~a:0,i&&(o|=or),o}function FE(o,i,a){var u=i.pendingProps,d=!1,h=(i.flags&128)!==0,v;if((v=h)||(v=o!==null&&o.memoizedState===null?!1:(Ue.current&2)!==0),v&&(d=!0,i.flags&=-129),v=(i.flags&32)!==0,i.flags&=-33,o===null){if(Xt){if(d?Bi(i):Ui(),(o=we)?(o=Zx(o,_r),o=o!==null&&o.data!=="&"?o:null,o!==null&&(i.memoizedState={dehydrated:o,treeContext:Ni!==null?{id:yo,overflow:bo}:null,retryLane:536870912,hydrationErrors:null},a=xS(o),a.return=i,i.child=a,dn=i,we=null)):o=null,o===null)throw Di(i);return Dg(o)?i.lanes=32:i.lanes=536870912,null}var A=u.children;return u=u.fallback,d?(Ui(),d=i.mode,A=jf({mode:"hidden",children:A},d),u=$s(u,d,a,null),A.return=i,u.return=i,A.sibling=u,i.child=A,u=i.child,u.memoizedState=Qp(a),u.childLanes=Zp(o,v,a),i.memoizedState=Xp,Au(null,u)):(Bi(i),Jp(i,A))}var I=o.memoizedState;if(I!==null&&(A=I.dehydrated,A!==null)){if(h)i.flags&256?(Bi(i),i.flags&=-257,i=Wp(o,i,a)):i.memoizedState!==null?(Ui(),i.child=o.child,i.flags|=128,i=null):(Ui(),A=u.fallback,d=i.mode,u=jf({mode:"visible",children:u.children},d),A=$s(A,d,a,null),A.flags|=2,u.return=i,A.return=i,u.sibling=A,i.child=u,js(i,o.child,null,a),u=i.child,u.memoizedState=Qp(a),u.childLanes=Zp(o,v,a),i.memoizedState=Xp,i=Au(null,u));else if(Bi(i),Dg(A)){if(v=A.nextSibling&&A.nextSibling.dataset,v)var K=v.dgst;v=K,u=Error(r(419)),u.stack="",u.digest=v,hu({value:u,source:null,stack:null}),i=Wp(o,i,a)}else if(Ve||Ra(o,i,a,!1),v=(a&o.childLanes)!==0,Ve||v){if(v=pe,v!==null&&(u=R1(v,a),u!==0&&u!==I.retryLane))throw I.retryLane=u,As(o,u),Un(v,o,u),Vp;_g(A)||Ff(),i=Wp(o,i,a)}else _g(A)?(i.flags|=192,i.child=o.child,i=null):(o=I.treeContext,we=jr(A.nextSibling),dn=i,Xt=!0,_i=null,_r=!1,o!==null&&CS(i,o),i=Jp(i,u.children),i.flags|=4096);return i}return d?(Ui(),A=u.fallback,d=i.mode,I=o.child,K=I.sibling,u=Ho(I,{mode:"hidden",children:u.children}),u.subtreeFlags=I.subtreeFlags&65011712,K!==null?A=Ho(K,A):(A=$s(A,d,a,null),A.flags|=2),A.return=i,u.return=i,u.sibling=A,i.child=u,Au(null,u),u=i.child,A=o.child.memoizedState,A===null?A=Qp(a):(d=A.cachePool,d!==null?(I=Ge._currentValue,d=d.parent!==I?{parent:I,pool:I}:d):d=NS(),A={baseLanes:A.baseLanes|a,cachePool:d}),u.memoizedState=A,u.childLanes=Zp(o,v,a),i.memoizedState=Xp,Au(o.child,u)):(Bi(i),a=o.child,o=a.sibling,a=Ho(a,{mode:"visible",children:u.children}),a.return=i,a.sibling=null,o!==null&&(v=i.deletions,v===null?(i.deletions=[o],i.flags|=16):v.push(o)),i.child=a,i.memoizedState=null,a)}function Jp(o,i){return i=jf({mode:"visible",children:i},o.mode),i.return=o,o.child=i}function jf(o,i){return o=tr(22,o,null,i),o.lanes=0,o}function Wp(o,i,a){return js(i,o.child,null,a),o=Jp(i,i.pendingProps.children),o.flags|=2,i.memoizedState=null,o}function qE(o,i,a){o.lanes|=i;var u=o.alternate;u!==null&&(u.lanes|=i),hp(o.return,i,a)}function tg(o,i,a,u,d,h){var v=o.memoizedState;v===null?o.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:d,treeForkCount:h}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=u,v.tail=a,v.tailMode=d,v.treeForkCount=h)}function GE(o,i,a){var u=i.pendingProps,d=u.revealOrder,h=u.tail;u=u.children;var v=Ue.current,A=(v&2)!==0;if(A?(v=v&1|2,i.flags|=128):v&=1,ot(Ue,v),hn(o,i,u,a),u=Xt?mu:0,!A&&o!==null&&(o.flags&128)!==0)t:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&qE(o,a,i);else if(o.tag===19)qE(o,a,i);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break t;for(;o.sibling===null;){if(o.return===null||o.return===i)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(d){case"forwards":for(a=i.child,d=null;a!==null;)o=a.alternate,o!==null&&xf(o)===null&&(d=a),a=a.sibling;a=d,a===null?(d=i.child,i.child=null):(d=a.sibling,a.sibling=null),tg(i,!1,d,a,h,u);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=i.child,i.child=null;d!==null;){if(o=d.alternate,o!==null&&xf(o)===null){i.child=d;break}o=d.sibling,d.sibling=a,a=d,d=o}tg(i,!0,a,null,h,u);break;case"together":tg(i,!1,null,null,void 0,u);break;default:i.memoizedState=null}return i.child}function Ko(o,i,a){if(o!==null&&(i.dependencies=o.dependencies),Hi|=i.lanes,(a&i.childLanes)===0)if(o!==null){if(Ra(o,i,a,!1),(a&i.childLanes)===0)return null}else return null;if(o!==null&&i.child!==o.child)throw Error(r(153));if(i.child!==null){for(o=i.child,a=Ho(o,o.pendingProps),i.child=a,a.return=i;o.sibling!==null;)o=o.sibling,a=a.sibling=Ho(o,o.pendingProps),a.return=i;a.sibling=null}return i.child}function eg(o,i){return(o.lanes&i)!==0?!0:(o=o.dependencies,!!(o!==null&&hf(o)))}function o_(o,i,a){switch(i.tag){case 3:Jt(i,i.stateNode.containerInfo),ji(i,Ge,o.memoizedState.cache),Ms();break;case 27:case 5:ie(i);break;case 4:Jt(i,i.stateNode.containerInfo);break;case 10:ji(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Ap(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(Bi(i),i.flags|=128,null):(a&i.child.childLanes)!==0?FE(o,i,a):(Bi(i),o=Ko(o,i,a),o!==null?o.sibling:null);Bi(i);break;case 19:var d=(o.flags&128)!==0;if(u=(a&i.childLanes)!==0,u||(Ra(o,i,a,!1),u=(a&i.childLanes)!==0),d){if(u)return GE(o,i,a);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ot(Ue,Ue.current),u)break;return null;case 22:return i.lanes=0,zE(o,i,a,i.pendingProps);case 24:ji(i,Ge,o.memoizedState.cache)}return Ko(o,i,a)}function YE(o,i,a){if(o!==null)if(o.memoizedProps!==i.pendingProps)Ve=!0;else{if(!eg(o,a)&&(i.flags&128)===0)return Ve=!1,o_(o,i,a);Ve=(o.flags&131072)!==0}else Ve=!1,Xt&&(i.flags&1048576)!==0&&TS(i,mu,i.index);switch(i.lanes=0,i.tag){case 16:t:{var u=i.pendingProps;if(o=_s(i.elementType),i.type=o,typeof o=="function")sp(o)?(u=Ls(o,u),i.tag=1,i=PE(null,i,o,u,a)):(i.tag=0,i=Kp(null,i,o,u,a));else{if(o!=null){var d=o.$$typeof;if(d===P){i.tag=11,i=jE(null,i,o,u,a);break t}else if(d===z){i.tag=14,i=IE(null,i,o,u,a);break t}}throw i=Y(o)||o,Error(r(306,i,""))}}return i;case 0:return Kp(o,i,i.type,i.pendingProps,a);case 1:return u=i.type,d=Ls(u,i.pendingProps),PE(o,i,u,d,a);case 3:t:{if(Jt(i,i.stateNode.containerInfo),o===null)throw Error(r(387));u=i.pendingProps;var h=i.memoizedState;d=h.element,Ep(o,i),Eu(i,u,null,a);var v=i.memoizedState;if(u=v.cache,ji(i,Ge,u),u!==h.cache&&pp(i,[Ge],a,!0),Su(),u=v.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:v.cache},i.updateQueue.baseState=h,i.memoizedState=h,i.flags&256){i=HE(o,i,u,a);break t}else if(u!==d){d=Rr(Error(r(424)),i),hu(d),i=HE(o,i,u,a);break t}else for(o=i.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,we=jr(o.firstChild),dn=i,Xt=!0,_i=null,_r=!0,a=zS(i,null,u,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ms(),u===d){i=Ko(o,i,a);break t}hn(o,i,u,a)}i=i.child}return i;case 26:return Df(o,i),o===null?(a=rw(i.type,null,i.pendingProps,null))?i.memoizedState=a:Xt||(a=i.type,o=i.pendingProps,u=Qf(pt.current).createElement(a),u[fn]=i,u[Dn]=o,pn(u,a,o),sn(u),i.stateNode=u):i.memoizedState=rw(i.type,o.memoizedProps,i.pendingProps,o.memoizedState),null;case 27:return ie(i),o===null&&Xt&&(u=i.stateNode=tw(i.type,i.pendingProps,pt.current),dn=i,_r=!0,d=we,Vi(i.type)?(jg=d,we=jr(u.firstChild)):we=d),hn(o,i,i.pendingProps.children,a),Df(o,i),o===null&&(i.flags|=4194304),i.child;case 5:return o===null&&Xt&&((d=u=we)&&(u=j_(u,i.type,i.pendingProps,_r),u!==null?(i.stateNode=u,dn=i,we=jr(u.firstChild),_r=!1,d=!0):d=!1),d||Di(i)),ie(i),d=i.type,h=i.pendingProps,v=o!==null?o.memoizedProps:null,u=h.children,Rg(d,h)?u=null:v!==null&&Rg(d,v)&&(i.flags|=32),i.memoizedState!==null&&(d=Mp(o,i,XN,null,null,a),Pu._currentValue=d),Df(o,i),hn(o,i,u,a),i.child;case 6:return o===null&&Xt&&((o=a=we)&&(a=I_(a,i.pendingProps,_r),a!==null?(i.stateNode=a,dn=i,we=null,o=!0):o=!1),o||Di(i)),null;case 13:return FE(o,i,a);case 4:return Jt(i,i.stateNode.containerInfo),u=i.pendingProps,o===null?i.child=js(i,null,u,a):hn(o,i,u,a),i.child;case 11:return jE(o,i,i.type,i.pendingProps,a);case 7:return hn(o,i,i.pendingProps,a),i.child;case 8:return hn(o,i,i.pendingProps.children,a),i.child;case 12:return hn(o,i,i.pendingProps.children,a),i.child;case 10:return u=i.pendingProps,ji(i,i.type,u.value),hn(o,i,u.children,a),i.child;case 9:return d=i.type._context,u=i.pendingProps.children,Os(i),d=mn(d),u=u(d),i.flags|=1,hn(o,i,u,a),i.child;case 14:return IE(o,i,i.type,i.pendingProps,a);case 15:return LE(o,i,i.type,i.pendingProps,a);case 19:return GE(o,i,a);case 31:return r_(o,i,a);case 22:return zE(o,i,a,i.pendingProps);case 24:return Os(i),u=mn(Ge),o===null?(d=bp(),d===null&&(d=pe,h=gp(),d.pooledCache=h,h.refCount++,h!==null&&(d.pooledCacheLanes|=a),d=h),i.memoizedState={parent:u,cache:d},Sp(i),ji(i,Ge,d)):((o.lanes&a)!==0&&(Ep(o,i),Eu(i,null,null,a),Su()),d=o.memoizedState,h=i.memoizedState,d.parent!==u?(d={parent:u,cache:u},i.memoizedState=d,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=d),ji(i,Ge,u)):(u=h.cache,ji(i,Ge,u),u!==d.cache&&pp(i,[Ge],a,!0))),hn(o,i,i.pendingProps.children,a),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Xo(o){o.flags|=4}function ng(o,i,a,u,d){if((i=(o.mode&32)!==0)&&(i=!1),i){if(o.flags|=16777216,(d&335544128)===d)if(o.stateNode.complete)o.flags|=8192;else if(vx())o.flags|=8192;else throw Ds=bf,vp}else o.flags&=-16777217}function VE(o,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!lw(i))if(vx())o.flags|=8192;else throw Ds=bf,vp}function If(o,i){i!==null&&(o.flags|=4),o.flags&16384&&(i=o.tag!==22?A1():536870912,o.lanes|=i,Pa|=i)}function $u(o,i){if(!Xt)switch(o.tailMode){case"hidden":i=o.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?o.tail=null:a.sibling=null;break;case"collapsed":a=o.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?i||o.tail===null?o.tail=null:o.tail.sibling=null:u.sibling=null}}function Te(o){var i=o.alternate!==null&&o.alternate.child===o.child,a=0,u=0;if(i)for(var d=o.child;d!==null;)a|=d.lanes|d.childLanes,u|=d.subtreeFlags&65011712,u|=d.flags&65011712,d.return=o,d=d.sibling;else for(d=o.child;d!==null;)a|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=o,d=d.sibling;return o.subtreeFlags|=u,o.childLanes=a,i}function i_(o,i,a){var u=i.pendingProps;switch(cp(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(i),null;case 1:return Te(i),null;case 3:return a=i.stateNode,u=null,o!==null&&(u=o.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),Go(Ge),Ot(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(o===null||o.child===null)&&(Ma(i)?Xo(i):o===null||o.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,dp())),Te(i),null;case 26:var d=i.type,h=i.memoizedState;return o===null?(Xo(i),h!==null?(Te(i),VE(i,h)):(Te(i),ng(i,d,null,u,a))):h?h!==o.memoizedState?(Xo(i),Te(i),VE(i,h)):(Te(i),i.flags&=-16777217):(o=o.memoizedProps,o!==u&&Xo(i),Te(i),ng(i,d,o,u,a)),null;case 27:if(We(i),a=pt.current,d=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==u&&Xo(i);else{if(!u){if(i.stateNode===null)throw Error(r(166));return Te(i),null}o=ft.current,Ma(i)?AS(i):(o=tw(d,u,a),i.stateNode=o,Xo(i))}return Te(i),null;case 5:if(We(i),d=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==u&&Xo(i);else{if(!u){if(i.stateNode===null)throw Error(r(166));return Te(i),null}if(h=ft.current,Ma(i))AS(i);else{var v=Qf(pt.current);switch(h){case 1:h=v.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:h=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":h=v.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":h=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":h=v.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof u.is=="string"?v.createElement("select",{is:u.is}):v.createElement("select"),u.multiple?h.multiple=!0:u.size&&(h.size=u.size);break;default:h=typeof u.is=="string"?v.createElement(d,{is:u.is}):v.createElement(d)}}h[fn]=i,h[Dn]=u;t:for(v=i.child;v!==null;){if(v.tag===5||v.tag===6)h.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===i)break t;for(;v.sibling===null;){if(v.return===null||v.return===i)break t;v=v.return}v.sibling.return=v.return,v=v.sibling}i.stateNode=h;t:switch(pn(h,d,u),d){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break t;case"img":u=!0;break t;default:u=!1}u&&Xo(i)}}return Te(i),ng(i,i.type,o===null?null:o.memoizedProps,i.pendingProps,a),null;case 6:if(o&&i.stateNode!=null)o.memoizedProps!==u&&Xo(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(r(166));if(o=pt.current,Ma(i)){if(o=i.stateNode,a=i.memoizedProps,u=null,d=dn,d!==null)switch(d.tag){case 27:case 5:u=d.memoizedProps}o[fn]=i,o=!!(o.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||Fx(o.nodeValue,a)),o||Di(i,!0)}else o=Qf(o).createTextNode(u),o[fn]=i,i.stateNode=o}return Te(i),null;case 31:if(a=i.memoizedState,o===null||o.memoizedState!==null){if(u=Ma(i),a!==null){if(o===null){if(!u)throw Error(r(318));if(o=i.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[fn]=i}else Ms(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Te(i),o=!1}else a=dp(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=a),o=!0;if(!o)return i.flags&256?(nr(i),i):(nr(i),null);if((i.flags&128)!==0)throw Error(r(558))}return Te(i),null;case 13:if(u=i.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(d=Ma(i),u!==null&&u.dehydrated!==null){if(o===null){if(!d)throw Error(r(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[fn]=i}else Ms(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Te(i),d=!1}else d=dp(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=d),d=!0;if(!d)return i.flags&256?(nr(i),i):(nr(i),null)}return nr(i),(i.flags&128)!==0?(i.lanes=a,i):(a=u!==null,o=o!==null&&o.memoizedState!==null,a&&(u=i.child,d=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(d=u.alternate.memoizedState.cachePool.pool),h=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool),h!==d&&(u.flags|=2048)),a!==o&&a&&(i.child.flags|=8192),If(i,i.updateQueue),Te(i),null);case 4:return Ot(),o===null&&Tg(i.stateNode.containerInfo),Te(i),null;case 10:return Go(i.type),Te(i),null;case 19:if(G(Ue),u=i.memoizedState,u===null)return Te(i),null;if(d=(i.flags&128)!==0,h=u.rendering,h===null)if(d)$u(u,!1);else{if(ze!==0||o!==null&&(o.flags&128)!==0)for(o=i.child;o!==null;){if(h=xf(o),h!==null){for(i.flags|=128,$u(u,!1),o=h.updateQueue,i.updateQueue=o,If(i,o),i.subtreeFlags=0,o=a,a=i.child;a!==null;)ES(a,o),a=a.sibling;return ot(Ue,Ue.current&1|2),Xt&&Fo(i,u.treeForkCount),i.child}o=o.sibling}u.tail!==null&&Qn()>kf&&(i.flags|=128,d=!0,$u(u,!1),i.lanes=4194304)}else{if(!d)if(o=xf(h),o!==null){if(i.flags|=128,d=!0,o=o.updateQueue,i.updateQueue=o,If(i,o),$u(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!Xt)return Te(i),null}else 2*Qn()-u.renderingStartTime>kf&&a!==536870912&&(i.flags|=128,d=!0,$u(u,!1),i.lanes=4194304);u.isBackwards?(h.sibling=i.child,i.child=h):(o=u.last,o!==null?o.sibling=h:i.child=h,u.last=h)}return u.tail!==null?(o=u.tail,u.rendering=o,u.tail=o.sibling,u.renderingStartTime=Qn(),o.sibling=null,a=Ue.current,ot(Ue,d?a&1|2:a&1),Xt&&Fo(i,u.treeForkCount),o):(Te(i),null);case 22:case 23:return nr(i),Cp(),u=i.memoizedState!==null,o!==null?o.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(a&536870912)!==0&&(i.flags&128)===0&&(Te(i),i.subtreeFlags&6&&(i.flags|=8192)):Te(i),a=i.updateQueue,a!==null&&If(i,a.retryQueue),a=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==a&&(i.flags|=2048),o!==null&&G(Ns),null;case 24:return a=null,o!==null&&(a=o.memoizedState.cache),i.memoizedState.cache!==a&&(i.flags|=2048),Go(Ge),Te(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function s_(o,i){switch(cp(i),i.tag){case 1:return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return Go(Ge),Ot(),o=i.flags,(o&65536)!==0&&(o&128)===0?(i.flags=o&-65537|128,i):null;case 26:case 27:case 5:return We(i),null;case 31:if(i.memoizedState!==null){if(nr(i),i.alternate===null)throw Error(r(340));Ms()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 13:if(nr(i),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Ms()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return G(Ue),null;case 4:return Ot(),null;case 10:return Go(i.type),null;case 22:case 23:return nr(i),Cp(),o!==null&&G(Ns),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 24:return Go(Ge),null;case 25:return null;default:return null}}function KE(o,i){switch(cp(i),i.tag){case 3:Go(Ge),Ot();break;case 26:case 27:case 5:We(i);break;case 4:Ot();break;case 31:i.memoizedState!==null&&nr(i);break;case 13:nr(i);break;case 19:G(Ue);break;case 10:Go(i.type);break;case 22:case 23:nr(i),Cp(),o!==null&&G(Ns);break;case 24:Go(Ge)}}function Mu(o,i){try{var a=i.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var d=u.next;a=d;do{if((a.tag&o)===o){u=void 0;var h=a.create,v=a.inst;u=h(),v.destroy=u}a=a.next}while(a!==d)}}catch(A){ae(i,i.return,A)}}function ki(o,i,a){try{var u=i.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var h=d.next;u=h;do{if((u.tag&o)===o){var v=u.inst,A=v.destroy;if(A!==void 0){v.destroy=void 0,d=i;var I=a,K=A;try{K()}catch(rt){ae(d,I,rt)}}}u=u.next}while(u!==h)}}catch(rt){ae(i,i.return,rt)}}function XE(o){var i=o.updateQueue;if(i!==null){var a=o.stateNode;try{US(i,a)}catch(u){ae(o,o.return,u)}}}function QE(o,i,a){a.props=Ls(o.type,o.memoizedProps),a.state=o.memoizedState;try{a.componentWillUnmount()}catch(u){ae(o,i,u)}}function Ru(o,i){try{var a=o.ref;if(a!==null){switch(o.tag){case 26:case 27:case 5:var u=o.stateNode;break;case 30:u=o.stateNode;break;default:u=o.stateNode}typeof a=="function"?o.refCleanup=a(u):a.current=u}}catch(d){ae(o,i,d)}}function vo(o,i){var a=o.ref,u=o.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(d){ae(o,i,d)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){ae(o,i,d)}else a.current=null}function ZE(o){var i=o.type,a=o.memoizedProps,u=o.stateNode;try{t:switch(i){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break t;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(d){ae(o,o.return,d)}}function rg(o,i,a){try{var u=o.stateNode;M_(u,o.type,a,i),u[Dn]=i}catch(d){ae(o,o.return,d)}}function JE(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Vi(o.type)||o.tag===4}function og(o){t:for(;;){for(;o.sibling===null;){if(o.return===null||JE(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Vi(o.type)||o.flags&2||o.child===null||o.tag===4)continue t;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function ig(o,i,a){var u=o.tag;if(u===5||u===6)o=o.stateNode,i?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(o,i):(i=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,i.appendChild(o),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=ko));else if(u!==4&&(u===27&&Vi(o.type)&&(a=o.stateNode,i=null),o=o.child,o!==null))for(ig(o,i,a),o=o.sibling;o!==null;)ig(o,i,a),o=o.sibling}function Lf(o,i,a){var u=o.tag;if(u===5||u===6)o=o.stateNode,i?a.insertBefore(o,i):a.appendChild(o);else if(u!==4&&(u===27&&Vi(o.type)&&(a=o.stateNode),o=o.child,o!==null))for(Lf(o,i,a),o=o.sibling;o!==null;)Lf(o,i,a),o=o.sibling}function WE(o){var i=o.stateNode,a=o.memoizedProps;try{for(var u=o.type,d=i.attributes;d.length;)i.removeAttributeNode(d[0]);pn(i,u,a),i[fn]=o,i[Dn]=a}catch(h){ae(o,o.return,h)}}var Qo=!1,Ke=!1,sg=!1,tx=typeof WeakSet=="function"?WeakSet:Set,an=null;function a_(o,i){if(o=o.containerInfo,$g=rd,o=dS(o),Wh(o)){if("selectionStart"in o)var a={start:o.selectionStart,end:o.selectionEnd};else t:{a=(a=o.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var d=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{a.nodeType,h.nodeType}catch{a=null;break t}var v=0,A=-1,I=-1,K=0,rt=0,lt=o,X=null;e:for(;;){for(var J;lt!==a||d!==0&<.nodeType!==3||(A=v+d),lt!==h||u!==0&<.nodeType!==3||(I=v+u),lt.nodeType===3&&(v+=lt.nodeValue.length),(J=lt.firstChild)!==null;)X=lt,lt=J;for(;;){if(lt===o)break e;if(X===a&&++K===d&&(A=v),X===h&&++rt===u&&(I=v),(J=lt.nextSibling)!==null)break;lt=X,X=lt.parentNode}lt=J}a=A===-1||I===-1?null:{start:A,end:I}}else a=null}a=a||{start:0,end:0}}else a=null;for(Mg={focusedElem:o,selectionRange:a},rd=!1,an=i;an!==null;)if(i=an,o=i.child,(i.subtreeFlags&1028)!==0&&o!==null)o.return=i,an=o;else for(;an!==null;){switch(i=an,h=i.alternate,o=i.flags,i.tag){case 0:if((o&4)!==0&&(o=i.updateQueue,o=o!==null?o.events:null,o!==null))for(a=0;a<o.length;a++)d=o[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&h!==null){o=void 0,a=i,d=h.memoizedProps,h=h.memoizedState,u=a.stateNode;try{var gt=Ls(a.type,d);o=u.getSnapshotBeforeUpdate(gt,h),u.__reactInternalSnapshotBeforeUpdate=o}catch(Ct){ae(a,a.return,Ct)}}break;case 3:if((o&1024)!==0){if(o=i.stateNode.containerInfo,a=o.nodeType,a===9)Ng(o);else if(a===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Ng(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=i.sibling,o!==null){o.return=i.return,an=o;break}an=i.return}}function ex(o,i,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Jo(o,a),u&4&&Mu(5,a);break;case 1:if(Jo(o,a),u&4)if(o=a.stateNode,i===null)try{o.componentDidMount()}catch(v){ae(a,a.return,v)}else{var d=Ls(a.type,i.memoizedProps);i=i.memoizedState;try{o.componentDidUpdate(d,i,o.__reactInternalSnapshotBeforeUpdate)}catch(v){ae(a,a.return,v)}}u&64&&XE(a),u&512&&Ru(a,a.return);break;case 3:if(Jo(o,a),u&64&&(o=a.updateQueue,o!==null)){if(i=null,a.child!==null)switch(a.child.tag){case 27:case 5:i=a.child.stateNode;break;case 1:i=a.child.stateNode}try{US(o,i)}catch(v){ae(a,a.return,v)}}break;case 27:i===null&&u&4&&WE(a);case 26:case 5:Jo(o,a),i===null&&u&4&&ZE(a),u&512&&Ru(a,a.return);break;case 12:Jo(o,a);break;case 31:Jo(o,a),u&4&&ox(o,a);break;case 13:Jo(o,a),u&4&&ix(o,a),u&64&&(o=a.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(a=g_.bind(null,a),L_(o,a))));break;case 22:if(u=a.memoizedState!==null||Qo,!u){i=i!==null&&i.memoizedState!==null||Ke,d=Qo;var h=Ke;Qo=u,(Ke=i)&&!h?Wo(o,a,(a.subtreeFlags&8772)!==0):Jo(o,a),Qo=d,Ke=h}break;case 30:break;default:Jo(o,a)}}function nx(o){var i=o.alternate;i!==null&&(o.alternate=null,nx(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&Lh(i)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Me=null,In=!1;function Zo(o,i,a){for(a=a.child;a!==null;)rx(o,i,a),a=a.sibling}function rx(o,i,a){if(Zn&&typeof Zn.onCommitFiberUnmount=="function")try{Zn.onCommitFiberUnmount(Wl,a)}catch{}switch(a.tag){case 26:Ke||vo(a,i),Zo(o,i,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ke||vo(a,i);var u=Me,d=In;Vi(a.type)&&(Me=a.stateNode,In=!1),Zo(o,i,a),Bu(a.stateNode),Me=u,In=d;break;case 5:Ke||vo(a,i);case 6:if(u=Me,d=In,Me=null,Zo(o,i,a),Me=u,In=d,Me!==null)if(In)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(a.stateNode)}catch(h){ae(a,i,h)}else try{Me.removeChild(a.stateNode)}catch(h){ae(a,i,h)}break;case 18:Me!==null&&(In?(o=Me,Xx(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.stateNode),Xa(o)):Xx(Me,a.stateNode));break;case 4:u=Me,d=In,Me=a.stateNode.containerInfo,In=!0,Zo(o,i,a),Me=u,In=d;break;case 0:case 11:case 14:case 15:ki(2,a,i),Ke||ki(4,a,i),Zo(o,i,a);break;case 1:Ke||(vo(a,i),u=a.stateNode,typeof u.componentWillUnmount=="function"&&QE(a,i,u)),Zo(o,i,a);break;case 21:Zo(o,i,a);break;case 22:Ke=(u=Ke)||a.memoizedState!==null,Zo(o,i,a),Ke=u;break;default:Zo(o,i,a)}}function ox(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Xa(o)}catch(a){ae(i,i.return,a)}}}function ix(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Xa(o)}catch(a){ae(i,i.return,a)}}function l_(o){switch(o.tag){case 31:case 13:case 19:var i=o.stateNode;return i===null&&(i=o.stateNode=new tx),i;case 22:return o=o.stateNode,i=o._retryCache,i===null&&(i=o._retryCache=new tx),i;default:throw Error(r(435,o.tag))}}function zf(o,i){var a=l_(o);i.forEach(function(u){if(!a.has(u)){a.add(u);var d=y_.bind(null,o,u);u.then(d,d)}})}function Ln(o,i){var a=i.deletions;if(a!==null)for(var u=0;u<a.length;u++){var d=a[u],h=o,v=i,A=v;t:for(;A!==null;){switch(A.tag){case 27:if(Vi(A.type)){Me=A.stateNode,In=!1;break t}break;case 5:Me=A.stateNode,In=!1;break t;case 3:case 4:Me=A.stateNode.containerInfo,In=!0;break t}A=A.return}if(Me===null)throw Error(r(160));rx(h,v,d),Me=null,In=!1,h=d.alternate,h!==null&&(h.return=null),d.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)sx(i,o),i=i.sibling}var Jr=null;function sx(o,i){var a=o.alternate,u=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Ln(i,o),zn(o),u&4&&(ki(3,o,o.return),Mu(3,o),ki(5,o,o.return));break;case 1:Ln(i,o),zn(o),u&512&&(Ke||a===null||vo(a,a.return)),u&64&&Qo&&(o=o.updateQueue,o!==null&&(u=o.callbacks,u!==null&&(a=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=a===null?u:a.concat(u))));break;case 26:var d=Jr;if(Ln(i,o),zn(o),u&512&&(Ke||a===null||vo(a,a.return)),u&4){var h=a!==null?a.memoizedState:null;if(u=o.memoizedState,a===null)if(u===null)if(o.stateNode===null){t:{u=o.type,a=o.memoizedProps,d=d.ownerDocument||d;e:switch(u){case"title":h=d.getElementsByTagName("title")[0],(!h||h[nu]||h[fn]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=d.createElement(u),d.head.insertBefore(h,d.querySelector("head > title"))),pn(h,u,a),h[fn]=o,sn(h),u=h;break t;case"link":var v=sw("link","href",d).get(u+(a.href||""));if(v){for(var A=0;A<v.length;A++)if(h=v[A],h.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&h.getAttribute("rel")===(a.rel==null?null:a.rel)&&h.getAttribute("title")===(a.title==null?null:a.title)&&h.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){v.splice(A,1);break e}}h=d.createElement(u),pn(h,u,a),d.head.appendChild(h);break;case"meta":if(v=sw("meta","content",d).get(u+(a.content||""))){for(A=0;A<v.length;A++)if(h=v[A],h.getAttribute("content")===(a.content==null?null:""+a.content)&&h.getAttribute("name")===(a.name==null?null:a.name)&&h.getAttribute("property")===(a.property==null?null:a.property)&&h.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&h.getAttribute("charset")===(a.charSet==null?null:a.charSet)){v.splice(A,1);break e}}h=d.createElement(u),pn(h,u,a),d.head.appendChild(h);break;default:throw Error(r(468,u))}h[fn]=o,sn(h),u=h}o.stateNode=u}else aw(d,o.type,o.stateNode);else o.stateNode=iw(d,u,o.memoizedProps);else h!==u?(h===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):h.count--,u===null?aw(d,o.type,o.stateNode):iw(d,u,o.memoizedProps)):u===null&&o.stateNode!==null&&rg(o,o.memoizedProps,a.memoizedProps)}break;case 27:Ln(i,o),zn(o),u&512&&(Ke||a===null||vo(a,a.return)),a!==null&&u&4&&rg(o,o.memoizedProps,a.memoizedProps);break;case 5:if(Ln(i,o),zn(o),u&512&&(Ke||a===null||vo(a,a.return)),o.flags&32){d=o.stateNode;try{ba(d,"")}catch(gt){ae(o,o.return,gt)}}u&4&&o.stateNode!=null&&(d=o.memoizedProps,rg(o,d,a!==null?a.memoizedProps:d)),u&1024&&(sg=!0);break;case 6:if(Ln(i,o),zn(o),u&4){if(o.stateNode===null)throw Error(r(162));u=o.memoizedProps,a=o.stateNode;try{a.nodeValue=u}catch(gt){ae(o,o.return,gt)}}break;case 3:if(Wf=null,d=Jr,Jr=Zf(i.containerInfo),Ln(i,o),Jr=d,zn(o),u&4&&a!==null&&a.memoizedState.isDehydrated)try{Xa(i.containerInfo)}catch(gt){ae(o,o.return,gt)}sg&&(sg=!1,ax(o));break;case 4:u=Jr,Jr=Zf(o.stateNode.containerInfo),Ln(i,o),zn(o),Jr=u;break;case 12:Ln(i,o),zn(o);break;case 31:Ln(i,o),zn(o),u&4&&(u=o.updateQueue,u!==null&&(o.updateQueue=null,zf(o,u)));break;case 13:Ln(i,o),zn(o),o.child.flags&8192&&o.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Uf=Qn()),u&4&&(u=o.updateQueue,u!==null&&(o.updateQueue=null,zf(o,u)));break;case 22:d=o.memoizedState!==null;var I=a!==null&&a.memoizedState!==null,K=Qo,rt=Ke;if(Qo=K||d,Ke=rt||I,Ln(i,o),Ke=rt,Qo=K,zn(o),u&8192)t:for(i=o.stateNode,i._visibility=d?i._visibility&-2:i._visibility|1,d&&(a===null||I||Qo||Ke||zs(o)),a=null,i=o;;){if(i.tag===5||i.tag===26){if(a===null){I=a=i;try{if(h=I.stateNode,d)v=h.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{A=I.stateNode;var lt=I.memoizedProps.style,X=lt!=null&<.hasOwnProperty("display")?lt.display:null;A.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(gt){ae(I,I.return,gt)}}}else if(i.tag===6){if(a===null){I=i;try{I.stateNode.nodeValue=d?"":I.memoizedProps}catch(gt){ae(I,I.return,gt)}}}else if(i.tag===18){if(a===null){I=i;try{var J=I.stateNode;d?Qx(J,!0):Qx(I.stateNode,!1)}catch(gt){ae(I,I.return,gt)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===o)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break t;for(;i.sibling===null;){if(i.return===null||i.return===o)break t;a===i&&(a=null),i=i.return}a===i&&(a=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=o.updateQueue,u!==null&&(a=u.retryQueue,a!==null&&(u.retryQueue=null,zf(o,a))));break;case 19:Ln(i,o),zn(o),u&4&&(u=o.updateQueue,u!==null&&(o.updateQueue=null,zf(o,u)));break;case 30:break;case 21:break;default:Ln(i,o),zn(o)}}function zn(o){var i=o.flags;if(i&2){try{for(var a,u=o.return;u!==null;){if(JE(u)){a=u;break}u=u.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var d=a.stateNode,h=og(o);Lf(o,h,d);break;case 5:var v=a.stateNode;a.flags&32&&(ba(v,""),a.flags&=-33);var A=og(o);Lf(o,A,v);break;case 3:case 4:var I=a.stateNode.containerInfo,K=og(o);ig(o,K,I);break;default:throw Error(r(161))}}catch(rt){ae(o,o.return,rt)}o.flags&=-3}i&4096&&(o.flags&=-4097)}function ax(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var i=o;ax(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),o=o.sibling}}function Jo(o,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)ex(o,i.alternate,i),i=i.sibling}function zs(o){for(o=o.child;o!==null;){var i=o;switch(i.tag){case 0:case 11:case 14:case 15:ki(4,i,i.return),zs(i);break;case 1:vo(i,i.return);var a=i.stateNode;typeof a.componentWillUnmount=="function"&&QE(i,i.return,a),zs(i);break;case 27:Bu(i.stateNode);case 26:case 5:vo(i,i.return),zs(i);break;case 22:i.memoizedState===null&&zs(i);break;case 30:zs(i);break;default:zs(i)}o=o.sibling}}function Wo(o,i,a){for(a=a&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,d=o,h=i,v=h.flags;switch(h.tag){case 0:case 11:case 15:Wo(d,h,a),Mu(4,h);break;case 1:if(Wo(d,h,a),u=h,d=u.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(K){ae(u,u.return,K)}if(u=h,d=u.updateQueue,d!==null){var A=u.stateNode;try{var I=d.shared.hiddenCallbacks;if(I!==null)for(d.shared.hiddenCallbacks=null,d=0;d<I.length;d++)BS(I[d],A)}catch(K){ae(u,u.return,K)}}a&&v&64&&XE(h),Ru(h,h.return);break;case 27:WE(h);case 26:case 5:Wo(d,h,a),a&&u===null&&v&4&&ZE(h),Ru(h,h.return);break;case 12:Wo(d,h,a);break;case 31:Wo(d,h,a),a&&v&4&&ox(d,h);break;case 13:Wo(d,h,a),a&&v&4&&ix(d,h);break;case 22:h.memoizedState===null&&Wo(d,h,a),Ru(h,h.return);break;case 30:break;default:Wo(d,h,a)}i=i.sibling}}function ag(o,i){var a=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(o!=null&&o.refCount++,a!=null&&pu(a))}function lg(o,i){o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&pu(o))}function Wr(o,i,a,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)lx(o,i,a,u),i=i.sibling}function lx(o,i,a,u){var d=i.flags;switch(i.tag){case 0:case 11:case 15:Wr(o,i,a,u),d&2048&&Mu(9,i);break;case 1:Wr(o,i,a,u);break;case 3:Wr(o,i,a,u),d&2048&&(o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&pu(o)));break;case 12:if(d&2048){Wr(o,i,a,u),o=i.stateNode;try{var h=i.memoizedProps,v=h.id,A=h.onPostCommit;typeof A=="function"&&A(v,i.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(I){ae(i,i.return,I)}}else Wr(o,i,a,u);break;case 31:Wr(o,i,a,u);break;case 13:Wr(o,i,a,u);break;case 23:break;case 22:h=i.stateNode,v=i.alternate,i.memoizedState!==null?h._visibility&2?Wr(o,i,a,u):Ou(o,i):h._visibility&2?Wr(o,i,a,u):(h._visibility|=2,Ba(o,i,a,u,(i.subtreeFlags&10256)!==0||!1)),d&2048&&ag(v,i);break;case 24:Wr(o,i,a,u),d&2048&&lg(i.alternate,i);break;default:Wr(o,i,a,u)}}function Ba(o,i,a,u,d){for(d=d&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var h=o,v=i,A=a,I=u,K=v.flags;switch(v.tag){case 0:case 11:case 15:Ba(h,v,A,I,d),Mu(8,v);break;case 23:break;case 22:var rt=v.stateNode;v.memoizedState!==null?rt._visibility&2?Ba(h,v,A,I,d):Ou(h,v):(rt._visibility|=2,Ba(h,v,A,I,d)),d&&K&2048&&ag(v.alternate,v);break;case 24:Ba(h,v,A,I,d),d&&K&2048&&lg(v.alternate,v);break;default:Ba(h,v,A,I,d)}i=i.sibling}}function Ou(o,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var a=o,u=i,d=u.flags;switch(u.tag){case 22:Ou(a,u),d&2048&&ag(u.alternate,u);break;case 24:Ou(a,u),d&2048&&lg(u.alternate,u);break;default:Ou(a,u)}i=i.sibling}}var Nu=8192;function Ua(o,i,a){if(o.subtreeFlags&Nu)for(o=o.child;o!==null;)ux(o,i,a),o=o.sibling}function ux(o,i,a){switch(o.tag){case 26:Ua(o,i,a),o.flags&Nu&&o.memoizedState!==null&&K_(a,Jr,o.memoizedState,o.memoizedProps);break;case 5:Ua(o,i,a);break;case 3:case 4:var u=Jr;Jr=Zf(o.stateNode.containerInfo),Ua(o,i,a),Jr=u;break;case 22:o.memoizedState===null&&(u=o.alternate,u!==null&&u.memoizedState!==null?(u=Nu,Nu=16777216,Ua(o,i,a),Nu=u):Ua(o,i,a));break;default:Ua(o,i,a)}}function cx(o){var i=o.alternate;if(i!==null&&(o=i.child,o!==null)){i.child=null;do i=o.sibling,o.sibling=null,o=i;while(o!==null)}}function _u(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var u=i[a];an=u,dx(u,o)}cx(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)fx(o),o=o.sibling}function fx(o){switch(o.tag){case 0:case 11:case 15:_u(o),o.flags&2048&&ki(9,o,o.return);break;case 3:_u(o);break;case 12:_u(o);break;case 22:var i=o.stateNode;o.memoizedState!==null&&i._visibility&2&&(o.return===null||o.return.tag!==13)?(i._visibility&=-3,Bf(o)):_u(o);break;default:_u(o)}}function Bf(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var u=i[a];an=u,dx(u,o)}cx(o)}for(o=o.child;o!==null;){switch(i=o,i.tag){case 0:case 11:case 15:ki(8,i,i.return),Bf(i);break;case 22:a=i.stateNode,a._visibility&2&&(a._visibility&=-3,Bf(i));break;default:Bf(i)}o=o.sibling}}function dx(o,i){for(;an!==null;){var a=an;switch(a.tag){case 0:case 11:case 15:ki(8,a,i);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var u=a.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:pu(a.memoizedState.cache)}if(u=a.child,u!==null)u.return=a,an=u;else t:for(a=o;an!==null;){u=an;var d=u.sibling,h=u.return;if(nx(u),u===a){an=null;break t}if(d!==null){d.return=h,an=d;break t}an=h}}}var u_={getCacheForType:function(o){var i=mn(Ge),a=i.data.get(o);return a===void 0&&(a=o(),i.data.set(o,a)),a},cacheSignal:function(){return mn(Ge).controller.signal}},c_=typeof WeakMap=="function"?WeakMap:Map,ee=0,pe=null,Ft=null,Yt=0,se=0,rr=null,Pi=!1,ka=!1,ug=!1,ti=0,ze=0,Hi=0,Bs=0,cg=0,or=0,Pa=0,Du=null,Bn=null,fg=!1,Uf=0,mx=0,kf=1/0,Pf=null,Fi=null,tn=0,qi=null,Ha=null,ei=0,dg=0,mg=null,hx=null,ju=0,hg=null;function ir(){return(ee&2)!==0&&Yt!==0?Yt&-Yt:O.T!==null?Sg():O1()}function px(){if(or===0)if((Yt&536870912)===0||Xt){var o=Kc;Kc<<=1,(Kc&3932160)===0&&(Kc=262144),or=o}else or=536870912;return o=er.current,o!==null&&(o.flags|=32),or}function Un(o,i,a){(o===pe&&(se===2||se===9)||o.cancelPendingCommit!==null)&&(Fa(o,0),Gi(o,Yt,or,!1)),eu(o,a),((ee&2)===0||o!==pe)&&(o===pe&&((ee&2)===0&&(Bs|=a),ze===4&&Gi(o,Yt,or,!1)),So(o))}function gx(o,i,a){if((ee&6)!==0)throw Error(r(327));var u=!a&&(i&127)===0&&(i&o.expiredLanes)===0||tu(o,i),d=u?m_(o,i):gg(o,i,!0),h=u;do{if(d===0){ka&&!u&&Gi(o,i,0,!1);break}else{if(a=o.current.alternate,h&&!f_(a)){d=gg(o,i,!1),h=!1;continue}if(d===2){if(h=i,o.errorRecoveryDisabledLanes&h)var v=0;else v=o.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){i=v;t:{var A=o;d=Du;var I=A.current.memoizedState.isDehydrated;if(I&&(Fa(A,v).flags|=256),v=gg(A,v,!1),v!==2){if(ug&&!I){A.errorRecoveryDisabledLanes|=h,Bs|=h,d=4;break t}h=Bn,Bn=d,h!==null&&(Bn===null?Bn=h:Bn.push.apply(Bn,h))}d=v}if(h=!1,d!==2)continue}}if(d===1){Fa(o,0),Gi(o,i,0,!0);break}t:{switch(u=o,h=d,h){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Gi(u,i,or,!Pi);break t;case 2:Bn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(d=Uf+300-Qn(),10<d)){if(Gi(u,i,or,!Pi),Qc(u,0,!0)!==0)break t;ei=i,u.timeoutHandle=Vx(yx.bind(null,u,a,Bn,Pf,fg,i,or,Bs,Pa,Pi,h,"Throttled",-0,0),d);break t}yx(u,a,Bn,Pf,fg,i,or,Bs,Pa,Pi,h,null,-0,0)}}break}while(!0);So(o)}function yx(o,i,a,u,d,h,v,A,I,K,rt,lt,X,J){if(o.timeoutHandle=-1,lt=i.subtreeFlags,lt&8192||(lt&16785408)===16785408){lt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ko},ux(i,h,lt);var gt=(h&62914560)===h?Uf-Qn():(h&4194048)===h?mx-Qn():0;if(gt=X_(lt,gt),gt!==null){ei=h,o.cancelPendingCommit=gt(Cx.bind(null,o,i,h,a,u,d,v,A,I,rt,lt,null,X,J)),Gi(o,h,v,!K);return}}Cx(o,i,h,a,u,d,v,A,I)}function f_(o){for(var i=o;;){var a=i.tag;if((a===0||a===11||a===15)&&i.flags&16384&&(a=i.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var d=a[u],h=d.getSnapshot;d=d.value;try{if(!Wn(h(),d))return!1}catch{return!1}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Gi(o,i,a,u){i&=~cg,i&=~Bs,o.suspendedLanes|=i,o.pingedLanes&=~i,u&&(o.warmLanes|=i),u=o.expirationTimes;for(var d=i;0<d;){var h=31-Jn(d),v=1<<h;u[h]=-1,d&=~v}a!==0&&$1(o,a,i)}function Hf(){return(ee&6)===0?(Iu(0),!1):!0}function pg(){if(Ft!==null){if(se===0)var o=Ft.return;else o=Ft,qo=Rs=null,Np(o),Da=null,yu=0,o=Ft;for(;o!==null;)KE(o.alternate,o),o=o.return;Ft=null}}function Fa(o,i){var a=o.timeoutHandle;a!==-1&&(o.timeoutHandle=-1,N_(a)),a=o.cancelPendingCommit,a!==null&&(o.cancelPendingCommit=null,a()),ei=0,pg(),pe=o,Ft=a=Ho(o.current,null),Yt=i,se=0,rr=null,Pi=!1,ka=tu(o,i),ug=!1,Pa=or=cg=Bs=Hi=ze=0,Bn=Du=null,fg=!1,(i&8)!==0&&(i|=i&32);var u=o.entangledLanes;if(u!==0)for(o=o.entanglements,u&=i;0<u;){var d=31-Jn(u),h=1<<d;i|=o[d],u&=~h}return ti=i,uf(),a}function bx(o,i){zt=null,O.H=Cu,i===_a||i===yf?(i=jS(),se=3):i===vp?(i=jS(),se=4):se=i===Vp?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,rr=i,Ft===null&&(ze=1,Nf(o,Rr(i,o.current)))}function vx(){var o=er.current;return o===null?!0:(Yt&4194048)===Yt?Dr===null:(Yt&62914560)===Yt||(Yt&536870912)!==0?o===Dr:!1}function Sx(){var o=O.H;return O.H=Cu,o===null?Cu:o}function Ex(){var o=O.A;return O.A=u_,o}function Ff(){ze=4,Pi||(Yt&4194048)!==Yt&&er.current!==null||(ka=!0),(Hi&134217727)===0&&(Bs&134217727)===0||pe===null||Gi(pe,Yt,or,!1)}function gg(o,i,a){var u=ee;ee|=2;var d=Sx(),h=Ex();(pe!==o||Yt!==i)&&(Pf=null,Fa(o,i)),i=!1;var v=ze;t:do try{if(se!==0&&Ft!==null){var A=Ft,I=rr;switch(se){case 8:pg(),v=6;break t;case 3:case 2:case 9:case 6:er.current===null&&(i=!0);var K=se;if(se=0,rr=null,qa(o,A,I,K),a&&ka){v=0;break t}break;default:K=se,se=0,rr=null,qa(o,A,I,K)}}d_(),v=ze;break}catch(rt){bx(o,rt)}while(!0);return i&&o.shellSuspendCounter++,qo=Rs=null,ee=u,O.H=d,O.A=h,Ft===null&&(pe=null,Yt=0,uf()),v}function d_(){for(;Ft!==null;)xx(Ft)}function m_(o,i){var a=ee;ee|=2;var u=Sx(),d=Ex();pe!==o||Yt!==i?(Pf=null,kf=Qn()+500,Fa(o,i)):ka=tu(o,i);t:do try{if(se!==0&&Ft!==null){i=Ft;var h=rr;e:switch(se){case 1:se=0,rr=null,qa(o,i,h,1);break;case 2:case 9:if(_S(h)){se=0,rr=null,wx(i);break}i=function(){se!==2&&se!==9||pe!==o||(se=7),So(o)},h.then(i,i);break t;case 3:se=7;break t;case 4:se=5;break t;case 7:_S(h)?(se=0,rr=null,wx(i)):(se=0,rr=null,qa(o,i,h,7));break;case 5:var v=null;switch(Ft.tag){case 26:v=Ft.memoizedState;case 5:case 27:var A=Ft;if(v?lw(v):A.stateNode.complete){se=0,rr=null;var I=A.sibling;if(I!==null)Ft=I;else{var K=A.return;K!==null?(Ft=K,qf(K)):Ft=null}break e}}se=0,rr=null,qa(o,i,h,5);break;case 6:se=0,rr=null,qa(o,i,h,6);break;case 8:pg(),ze=6;break t;default:throw Error(r(462))}}h_();break}catch(rt){bx(o,rt)}while(!0);return qo=Rs=null,O.H=u,O.A=d,ee=a,Ft!==null?0:(pe=null,Yt=0,uf(),ze)}function h_(){for(;Ft!==null&&!zO();)xx(Ft)}function xx(o){var i=YE(o.alternate,o,ti);o.memoizedProps=o.pendingProps,i===null?qf(o):Ft=i}function wx(o){var i=o,a=i.alternate;switch(i.tag){case 15:case 0:i=kE(a,i,i.pendingProps,i.type,void 0,Yt);break;case 11:i=kE(a,i,i.pendingProps,i.type.render,i.ref,Yt);break;case 5:Np(i);default:KE(a,i),i=Ft=ES(i,ti),i=YE(a,i,ti)}o.memoizedProps=o.pendingProps,i===null?qf(o):Ft=i}function qa(o,i,a,u){qo=Rs=null,Np(i),Da=null,yu=0;var d=i.return;try{if(n_(o,d,i,a,Yt)){ze=1,Nf(o,Rr(a,o.current)),Ft=null;return}}catch(h){if(d!==null)throw Ft=d,h;ze=1,Nf(o,Rr(a,o.current)),Ft=null;return}i.flags&32768?(Xt||u===1?o=!0:ka||(Yt&536870912)!==0?o=!1:(Pi=o=!0,(u===2||u===9||u===3||u===6)&&(u=er.current,u!==null&&u.tag===13&&(u.flags|=16384))),Tx(i,o)):qf(i)}function qf(o){var i=o;do{if((i.flags&32768)!==0){Tx(i,Pi);return}o=i.return;var a=i_(i.alternate,i,ti);if(a!==null){Ft=a;return}if(i=i.sibling,i!==null){Ft=i;return}Ft=i=o}while(i!==null);ze===0&&(ze=5)}function Tx(o,i){do{var a=s_(o.alternate,o);if(a!==null){a.flags&=32767,Ft=a;return}if(a=o.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!i&&(o=o.sibling,o!==null)){Ft=o;return}Ft=o=a}while(o!==null);ze=6,Ft=null}function Cx(o,i,a,u,d,h,v,A,I){o.cancelPendingCommit=null;do Gf();while(tn!==0);if((ee&6)!==0)throw Error(r(327));if(i!==null){if(i===o.current)throw Error(r(177));if(h=i.lanes|i.childLanes,h|=op,VO(o,a,h,v,A,I),o===pe&&(Ft=pe=null,Yt=0),Ha=i,qi=o,ei=a,dg=h,mg=d,hx=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,b_(Yc,function(){return Ox(),null})):(o.callbackNode=null,o.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=O.T,O.T=null,d=B.p,B.p=2,v=ee,ee|=4;try{a_(o,i,a)}finally{ee=v,B.p=d,O.T=u}}tn=1,Ax(),$x(),Mx()}}function Ax(){if(tn===1){tn=0;var o=qi,i=Ha,a=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var u=B.p;B.p=2;var d=ee;ee|=4;try{sx(i,o);var h=Mg,v=dS(o.containerInfo),A=h.focusedElem,I=h.selectionRange;if(v!==A&&A&&A.ownerDocument&&fS(A.ownerDocument.documentElement,A)){if(I!==null&&Wh(A)){var K=I.start,rt=I.end;if(rt===void 0&&(rt=K),"selectionStart"in A)A.selectionStart=K,A.selectionEnd=Math.min(rt,A.value.length);else{var lt=A.ownerDocument||document,X=lt&<.defaultView||window;if(X.getSelection){var J=X.getSelection(),gt=A.textContent.length,Ct=Math.min(I.start,gt),fe=I.end===void 0?Ct:Math.min(I.end,gt);!J.extend&&Ct>fe&&(v=fe,fe=Ct,Ct=v);var q=cS(A,Ct),U=cS(A,fe);if(q&&U&&(J.rangeCount!==1||J.anchorNode!==q.node||J.anchorOffset!==q.offset||J.focusNode!==U.node||J.focusOffset!==U.offset)){var V=lt.createRange();V.setStart(q.node,q.offset),J.removeAllRanges(),Ct>fe?(J.addRange(V),J.extend(U.node,U.offset)):(V.setEnd(U.node,U.offset),J.addRange(V))}}}}for(lt=[],J=A;J=J.parentNode;)J.nodeType===1&<.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<lt.length;A++){var st=lt[A];st.element.scrollLeft=st.left,st.element.scrollTop=st.top}}rd=!!$g,Mg=$g=null}finally{ee=d,B.p=u,O.T=a}}o.current=i,tn=2}}function $x(){if(tn===2){tn=0;var o=qi,i=Ha,a=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var u=B.p;B.p=2;var d=ee;ee|=4;try{ex(o,i.alternate,i)}finally{ee=d,B.p=u,O.T=a}}tn=3}}function Mx(){if(tn===4||tn===3){tn=0,BO();var o=qi,i=Ha,a=ei,u=hx;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?tn=5:(tn=0,Ha=qi=null,Rx(o,o.pendingLanes));var d=o.pendingLanes;if(d===0&&(Fi=null),jh(a),i=i.stateNode,Zn&&typeof Zn.onCommitFiberRoot=="function")try{Zn.onCommitFiberRoot(Wl,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=O.T,d=B.p,B.p=2,O.T=null;try{for(var h=o.onRecoverableError,v=0;v<u.length;v++){var A=u[v];h(A.value,{componentStack:A.stack})}}finally{O.T=i,B.p=d}}(ei&3)!==0&&Gf(),So(o),d=o.pendingLanes,(a&261930)!==0&&(d&42)!==0?o===hg?ju++:(ju=0,hg=o):ju=0,Iu(0)}}function Rx(o,i){(o.pooledCacheLanes&=i)===0&&(i=o.pooledCache,i!=null&&(o.pooledCache=null,pu(i)))}function Gf(){return Ax(),$x(),Mx(),Ox()}function Ox(){if(tn!==5)return!1;var o=qi,i=dg;dg=0;var a=jh(ei),u=O.T,d=B.p;try{B.p=32>a?32:a,O.T=null,a=mg,mg=null;var h=qi,v=ei;if(tn=0,Ha=qi=null,ei=0,(ee&6)!==0)throw Error(r(331));var A=ee;if(ee|=4,fx(h.current),lx(h,h.current,v,a),ee=A,Iu(0,!1),Zn&&typeof Zn.onPostCommitFiberRoot=="function")try{Zn.onPostCommitFiberRoot(Wl,h)}catch{}return!0}finally{B.p=d,O.T=u,Rx(o,i)}}function Nx(o,i,a){i=Rr(a,i),i=Yp(o.stateNode,i,2),o=zi(o,i,2),o!==null&&(eu(o,2),So(o))}function ae(o,i,a){if(o.tag===3)Nx(o,o,a);else for(;i!==null;){if(i.tag===3){Nx(i,o,a);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Fi===null||!Fi.has(u))){o=Rr(a,o),a=_E(2),u=zi(i,a,2),u!==null&&(DE(a,u,i,o),eu(u,2),So(u));break}}i=i.return}}function yg(o,i,a){var u=o.pingCache;if(u===null){u=o.pingCache=new c_;var d=new Set;u.set(i,d)}else d=u.get(i),d===void 0&&(d=new Set,u.set(i,d));d.has(a)||(ug=!0,d.add(a),o=p_.bind(null,o,i,a),i.then(o,o))}function p_(o,i,a){var u=o.pingCache;u!==null&&u.delete(i),o.pingedLanes|=o.suspendedLanes&a,o.warmLanes&=~a,pe===o&&(Yt&a)===a&&(ze===4||ze===3&&(Yt&62914560)===Yt&&300>Qn()-Uf?(ee&2)===0&&Fa(o,0):cg|=a,Pa===Yt&&(Pa=0)),So(o)}function _x(o,i){i===0&&(i=A1()),o=As(o,i),o!==null&&(eu(o,i),So(o))}function g_(o){var i=o.memoizedState,a=0;i!==null&&(a=i.retryLane),_x(o,a)}function y_(o,i){var a=0;switch(o.tag){case 31:case 13:var u=o.stateNode,d=o.memoizedState;d!==null&&(a=d.retryLane);break;case 19:u=o.stateNode;break;case 22:u=o.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(i),_x(o,a)}function b_(o,i){return Ss(o,i)}var Yf=null,Ga=null,bg=!1,Vf=!1,vg=!1,Yi=0;function So(o){o!==Ga&&o.next===null&&(Ga===null?Yf=Ga=o:Ga=Ga.next=o),Vf=!0,bg||(bg=!0,S_())}function Iu(o,i){if(!vg&&Vf){vg=!0;do for(var a=!1,u=Yf;u!==null;){if(o!==0){var d=u.pendingLanes;if(d===0)var h=0;else{var v=u.suspendedLanes,A=u.pingedLanes;h=(1<<31-Jn(42|o)+1)-1,h&=d&~(v&~A),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(a=!0,Lx(u,h))}else h=Yt,h=Qc(u,u===pe?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||tu(u,h)||(a=!0,Lx(u,h));u=u.next}while(a);vg=!1}}function v_(){Dx()}function Dx(){Vf=bg=!1;var o=0;Yi!==0&&O_()&&(o=Yi);for(var i=Qn(),a=null,u=Yf;u!==null;){var d=u.next,h=jx(u,i);h===0?(u.next=null,a===null?Yf=d:a.next=d,d===null&&(Ga=a)):(a=u,(o!==0||(h&3)!==0)&&(Vf=!0)),u=d}tn!==0&&tn!==5||Iu(o),Yi!==0&&(Yi=0)}function jx(o,i){for(var a=o.suspendedLanes,u=o.pingedLanes,d=o.expirationTimes,h=o.pendingLanes&-62914561;0<h;){var v=31-Jn(h),A=1<<v,I=d[v];I===-1?((A&a)===0||(A&u)!==0)&&(d[v]=YO(A,i)):I<=i&&(o.expiredLanes|=A),h&=~A}if(i=pe,a=Yt,a=Qc(o,o===i?a:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),u=o.callbackNode,a===0||o===i&&(se===2||se===9)||o.cancelPendingCommit!==null)return u!==null&&u!==null&&Gc(u),o.callbackNode=null,o.callbackPriority=0;if((a&3)===0||tu(o,a)){if(i=a&-a,i===o.callbackPriority)return i;switch(u!==null&&Gc(u),jh(a)){case 2:case 8:a=T1;break;case 32:a=Yc;break;case 268435456:a=C1;break;default:a=Yc}return u=Ix.bind(null,o),a=Ss(a,u),o.callbackPriority=i,o.callbackNode=a,i}return u!==null&&u!==null&&Gc(u),o.callbackPriority=2,o.callbackNode=null,2}function Ix(o,i){if(tn!==0&&tn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var a=o.callbackNode;if(Gf()&&o.callbackNode!==a)return null;var u=Yt;return u=Qc(o,o===pe?u:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),u===0?null:(gx(o,u,i),jx(o,Qn()),o.callbackNode!=null&&o.callbackNode===a?Ix.bind(null,o):null)}function Lx(o,i){if(Gf())return null;gx(o,i,!0)}function S_(){__(function(){(ee&6)!==0?Ss(w1,v_):Dx()})}function Sg(){if(Yi===0){var o=Oa;o===0&&(o=Vc,Vc<<=1,(Vc&261888)===0&&(Vc=256)),Yi=o}return Yi}function zx(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:tf(""+o)}function Bx(o,i){var a=i.ownerDocument.createElement("input");return a.name=i.name,a.value=i.value,o.id&&a.setAttribute("form",o.id),i.parentNode.insertBefore(a,i),o=new FormData(o),a.parentNode.removeChild(a),o}function E_(o,i,a,u,d){if(i==="submit"&&a&&a.stateNode===d){var h=zx((d[Dn]||null).action),v=u.submitter;v&&(i=(i=v[Dn]||null)?zx(i.formAction):v.getAttribute("formAction"),i!==null&&(h=i,v=null));var A=new of("action","action",null,u,d);o.push({event:A,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Yi!==0){var I=v?Bx(d,v):new FormData(d);kp(a,{pending:!0,data:I,method:d.method,action:h},null,I)}}else typeof h=="function"&&(A.preventDefault(),I=v?Bx(d,v):new FormData(d),kp(a,{pending:!0,data:I,method:d.method,action:h},h,I))},currentTarget:d}]})}}for(var Eg=0;Eg<rp.length;Eg++){var xg=rp[Eg],x_=xg.toLowerCase(),w_=xg[0].toUpperCase()+xg.slice(1);Zr(x_,"on"+w_)}Zr(pS,"onAnimationEnd"),Zr(gS,"onAnimationIteration"),Zr(yS,"onAnimationStart"),Zr("dblclick","onDoubleClick"),Zr("focusin","onFocus"),Zr("focusout","onBlur"),Zr(UN,"onTransitionRun"),Zr(kN,"onTransitionStart"),Zr(PN,"onTransitionCancel"),Zr(bS,"onTransitionEnd"),ga("onMouseEnter",["mouseout","mouseover"]),ga("onMouseLeave",["mouseout","mouseover"]),ga("onPointerEnter",["pointerout","pointerover"]),ga("onPointerLeave",["pointerout","pointerover"]),xs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xs("onBeforeInput",["compositionend","keypress","textInput","paste"]),xs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),T_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lu));function Ux(o,i){i=(i&4)!==0;for(var a=0;a<o.length;a++){var u=o[a],d=u.event;u=u.listeners;t:{var h=void 0;if(i)for(var v=u.length-1;0<=v;v--){var A=u[v],I=A.instance,K=A.currentTarget;if(A=A.listener,I!==h&&d.isPropagationStopped())break t;h=A,d.currentTarget=K;try{h(d)}catch(rt){lf(rt)}d.currentTarget=null,h=I}else for(v=0;v<u.length;v++){if(A=u[v],I=A.instance,K=A.currentTarget,A=A.listener,I!==h&&d.isPropagationStopped())break t;h=A,d.currentTarget=K;try{h(d)}catch(rt){lf(rt)}d.currentTarget=null,h=I}}}}function qt(o,i){var a=i[Ih];a===void 0&&(a=i[Ih]=new Set);var u=o+"__bubble";a.has(u)||(kx(i,o,2,!1),a.add(u))}function wg(o,i,a){var u=0;i&&(u|=4),kx(a,o,u,i)}var Kf="_reactListening"+Math.random().toString(36).slice(2);function Tg(o){if(!o[Kf]){o[Kf]=!0,D1.forEach(function(a){a!=="selectionchange"&&(T_.has(a)||wg(a,!1,o),wg(a,!0,o))});var i=o.nodeType===9?o:o.ownerDocument;i===null||i[Kf]||(i[Kf]=!0,wg("selectionchange",!1,i))}}function kx(o,i,a,u){switch(pw(i)){case 2:var d=J_;break;case 8:d=W_;break;default:d=Ug}a=d.bind(null,i,a,o),d=void 0,!qh||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),u?d!==void 0?o.addEventListener(i,a,{capture:!0,passive:d}):o.addEventListener(i,a,!0):d!==void 0?o.addEventListener(i,a,{passive:d}):o.addEventListener(i,a,!1)}function Cg(o,i,a,u,d){var h=u;if((i&1)===0&&(i&2)===0&&u!==null)t:for(;;){if(u===null)return;var v=u.tag;if(v===3||v===4){var A=u.stateNode.containerInfo;if(A===d)break;if(v===4)for(v=u.return;v!==null;){var I=v.tag;if((I===3||I===4)&&v.stateNode.containerInfo===d)return;v=v.return}for(;A!==null;){if(v=ma(A),v===null)return;if(I=v.tag,I===5||I===6||I===26||I===27){u=h=v;continue t}A=A.parentNode}}u=u.return}G1(function(){var K=h,rt=Hh(a),lt=[];t:{var X=vS.get(o);if(X!==void 0){var J=of,gt=o;switch(o){case"keypress":if(nf(a)===0)break t;case"keydown":case"keyup":J=yN;break;case"focusin":gt="focus",J=Kh;break;case"focusout":gt="blur",J=Kh;break;case"beforeblur":case"afterblur":J=Kh;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=K1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=iN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=SN;break;case pS:case gS:case yS:J=lN;break;case bS:J=xN;break;case"scroll":case"scrollend":J=rN;break;case"wheel":J=TN;break;case"copy":case"cut":case"paste":J=cN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Q1;break;case"toggle":case"beforetoggle":J=AN}var Ct=(i&4)!==0,fe=!Ct&&(o==="scroll"||o==="scrollend"),q=Ct?X!==null?X+"Capture":null:X;Ct=[];for(var U=K,V;U!==null;){var st=U;if(V=st.stateNode,st=st.tag,st!==5&&st!==26&&st!==27||V===null||q===null||(st=ou(U,q),st!=null&&Ct.push(zu(U,st,V))),fe)break;U=U.return}0<Ct.length&&(X=new J(X,gt,null,a,rt),lt.push({event:X,listeners:Ct}))}}if((i&7)===0){t:{if(X=o==="mouseover"||o==="pointerover",J=o==="mouseout"||o==="pointerout",X&&a!==Ph&&(gt=a.relatedTarget||a.fromElement)&&(ma(gt)||gt[da]))break t;if((J||X)&&(X=rt.window===rt?rt:(X=rt.ownerDocument)?X.defaultView||X.parentWindow:window,J?(gt=a.relatedTarget||a.toElement,J=K,gt=gt?ma(gt):null,gt!==null&&(fe=l(gt),Ct=gt.tag,gt!==fe||Ct!==5&&Ct!==27&&Ct!==6)&&(gt=null)):(J=null,gt=K),J!==gt)){if(Ct=K1,st="onMouseLeave",q="onMouseEnter",U="mouse",(o==="pointerout"||o==="pointerover")&&(Ct=Q1,st="onPointerLeave",q="onPointerEnter",U="pointer"),fe=J==null?X:ru(J),V=gt==null?X:ru(gt),X=new Ct(st,U+"leave",J,a,rt),X.target=fe,X.relatedTarget=V,st=null,ma(rt)===K&&(Ct=new Ct(q,U+"enter",gt,a,rt),Ct.target=V,Ct.relatedTarget=fe,st=Ct),fe=st,J&>)e:{for(Ct=C_,q=J,U=gt,V=0,st=q;st;st=Ct(st))V++;st=0;for(var wt=U;wt;wt=Ct(wt))st++;for(;0<V-st;)q=Ct(q),V--;for(;0<st-V;)U=Ct(U),st--;for(;V--;){if(q===U||U!==null&&q===U.alternate){Ct=q;break e}q=Ct(q),U=Ct(U)}Ct=null}else Ct=null;J!==null&&Px(lt,X,J,Ct,!1),gt!==null&&fe!==null&&Px(lt,fe,gt,Ct,!0)}}t:{if(X=K?ru(K):window,J=X.nodeName&&X.nodeName.toLowerCase(),J==="select"||J==="input"&&X.type==="file")var Wt=oS;else if(nS(X))if(iS)Wt=LN;else{Wt=jN;var vt=DN}else J=X.nodeName,!J||J.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?K&&kh(K.elementType)&&(Wt=oS):Wt=IN;if(Wt&&(Wt=Wt(o,K))){rS(lt,Wt,a,rt);break t}vt&&vt(o,X,K),o==="focusout"&&K&&X.type==="number"&&K.memoizedProps.value!=null&&Uh(X,"number",X.value)}switch(vt=K?ru(K):window,o){case"focusin":(nS(vt)||vt.contentEditable==="true")&&(xa=vt,tp=K,du=null);break;case"focusout":du=tp=xa=null;break;case"mousedown":ep=!0;break;case"contextmenu":case"mouseup":case"dragend":ep=!1,mS(lt,a,rt);break;case"selectionchange":if(BN)break;case"keydown":case"keyup":mS(lt,a,rt)}var Bt;if(Qh)t:{switch(o){case"compositionstart":var Vt="onCompositionStart";break t;case"compositionend":Vt="onCompositionEnd";break t;case"compositionupdate":Vt="onCompositionUpdate";break t}Vt=void 0}else Ea?tS(o,a)&&(Vt="onCompositionEnd"):o==="keydown"&&a.keyCode===229&&(Vt="onCompositionStart");Vt&&(Z1&&a.locale!=="ko"&&(Ea||Vt!=="onCompositionStart"?Vt==="onCompositionEnd"&&Ea&&(Bt=Y1()):(Oi=rt,Gh="value"in Oi?Oi.value:Oi.textContent,Ea=!0)),vt=Xf(K,Vt),0<vt.length&&(Vt=new X1(Vt,o,null,a,rt),lt.push({event:Vt,listeners:vt}),Bt?Vt.data=Bt:(Bt=eS(a),Bt!==null&&(Vt.data=Bt)))),(Bt=MN?RN(o,a):ON(o,a))&&(Vt=Xf(K,"onBeforeInput"),0<Vt.length&&(vt=new X1("onBeforeInput","beforeinput",null,a,rt),lt.push({event:vt,listeners:Vt}),vt.data=Bt)),E_(lt,o,K,a,rt)}Ux(lt,i)})}function zu(o,i,a){return{instance:o,listener:i,currentTarget:a}}function Xf(o,i){for(var a=i+"Capture",u=[];o!==null;){var d=o,h=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||h===null||(d=ou(o,a),d!=null&&u.unshift(zu(o,d,h)),d=ou(o,i),d!=null&&u.push(zu(o,d,h))),o.tag===3)return u;o=o.return}return[]}function C_(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Px(o,i,a,u,d){for(var h=i._reactName,v=[];a!==null&&a!==u;){var A=a,I=A.alternate,K=A.stateNode;if(A=A.tag,I!==null&&I===u)break;A!==5&&A!==26&&A!==27||K===null||(I=K,d?(K=ou(a,h),K!=null&&v.unshift(zu(a,K,I))):d||(K=ou(a,h),K!=null&&v.push(zu(a,K,I)))),a=a.return}v.length!==0&&o.push({event:i,listeners:v})}var A_=/\r\n?/g,$_=/\u0000|\uFFFD/g;function Hx(o){return(typeof o=="string"?o:""+o).replace(A_,`
|
|
26
|
+
`).replace($_,"")}function Fx(o,i){return i=Hx(i),Hx(o)===i}function ce(o,i,a,u,d,h){switch(a){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||ba(o,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&ba(o,""+u);break;case"className":Jc(o,"class",u);break;case"tabIndex":Jc(o,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Jc(o,a,u);break;case"style":F1(o,u,h);break;case"data":if(i!=="object"){Jc(o,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||a!=="href")){o.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){o.removeAttribute(a);break}u=tf(""+u),o.setAttribute(a,u);break;case"action":case"formAction":if(typeof u=="function"){o.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(a==="formAction"?(i!=="input"&&ce(o,i,"name",d.name,d,null),ce(o,i,"formEncType",d.formEncType,d,null),ce(o,i,"formMethod",d.formMethod,d,null),ce(o,i,"formTarget",d.formTarget,d,null)):(ce(o,i,"encType",d.encType,d,null),ce(o,i,"method",d.method,d,null),ce(o,i,"target",d.target,d,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){o.removeAttribute(a);break}u=tf(""+u),o.setAttribute(a,u);break;case"onClick":u!=null&&(o.onclick=ko);break;case"onScroll":u!=null&&qt("scroll",o);break;case"onScrollEnd":u!=null&&qt("scrollend",o);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(a=u.__html,a!=null){if(d.children!=null)throw Error(r(60));o.innerHTML=a}}break;case"multiple":o.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":o.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){o.removeAttribute("xlink:href");break}a=tf(""+u),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?o.setAttribute(a,""+u):o.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?o.setAttribute(a,""):o.removeAttribute(a);break;case"capture":case"download":u===!0?o.setAttribute(a,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?o.setAttribute(a,u):o.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?o.setAttribute(a,u):o.removeAttribute(a);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?o.removeAttribute(a):o.setAttribute(a,u);break;case"popover":qt("beforetoggle",o),qt("toggle",o),Zc(o,"popover",u);break;case"xlinkActuate":Uo(o,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Uo(o,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Uo(o,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Uo(o,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Uo(o,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Uo(o,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Uo(o,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Uo(o,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Uo(o,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Zc(o,"is",u);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=eN.get(a)||a,Zc(o,a,u))}}function Ag(o,i,a,u,d,h){switch(a){case"style":F1(o,u,h);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(a=u.__html,a!=null){if(d.children!=null)throw Error(r(60));o.innerHTML=a}}break;case"children":typeof u=="string"?ba(o,u):(typeof u=="number"||typeof u=="bigint")&&ba(o,""+u);break;case"onScroll":u!=null&&qt("scroll",o);break;case"onScrollEnd":u!=null&&qt("scrollend",o);break;case"onClick":u!=null&&(o.onclick=ko);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!j1.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),i=a.slice(2,d?a.length-7:void 0),h=o[Dn]||null,h=h!=null?h[a]:null,typeof h=="function"&&o.removeEventListener(i,h,d),typeof u=="function")){typeof h!="function"&&h!==null&&(a in o?o[a]=null:o.hasAttribute(a)&&o.removeAttribute(a)),o.addEventListener(i,u,d);break t}a in o?o[a]=u:u===!0?o.setAttribute(a,""):Zc(o,a,u)}}}function pn(o,i,a){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qt("error",o),qt("load",o);var u=!1,d=!1,h;for(h in a)if(a.hasOwnProperty(h)){var v=a[h];if(v!=null)switch(h){case"src":u=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:ce(o,i,h,v,a,null)}}d&&ce(o,i,"srcSet",a.srcSet,a,null),u&&ce(o,i,"src",a.src,a,null);return;case"input":qt("invalid",o);var A=h=v=d=null,I=null,K=null;for(u in a)if(a.hasOwnProperty(u)){var rt=a[u];if(rt!=null)switch(u){case"name":d=rt;break;case"type":v=rt;break;case"checked":I=rt;break;case"defaultChecked":K=rt;break;case"value":h=rt;break;case"defaultValue":A=rt;break;case"children":case"dangerouslySetInnerHTML":if(rt!=null)throw Error(r(137,i));break;default:ce(o,i,u,rt,a,null)}}U1(o,h,A,I,K,v,d,!1);return;case"select":qt("invalid",o),u=v=h=null;for(d in a)if(a.hasOwnProperty(d)&&(A=a[d],A!=null))switch(d){case"value":h=A;break;case"defaultValue":v=A;break;case"multiple":u=A;default:ce(o,i,d,A,a,null)}i=h,a=v,o.multiple=!!u,i!=null?ya(o,!!u,i,!1):a!=null&&ya(o,!!u,a,!0);return;case"textarea":qt("invalid",o),h=d=u=null;for(v in a)if(a.hasOwnProperty(v)&&(A=a[v],A!=null))switch(v){case"value":u=A;break;case"defaultValue":d=A;break;case"children":h=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(91));break;default:ce(o,i,v,A,a,null)}P1(o,u,d,h);return;case"option":for(I in a)a.hasOwnProperty(I)&&(u=a[I],u!=null)&&(I==="selected"?o.selected=u&&typeof u!="function"&&typeof u!="symbol":ce(o,i,I,u,a,null));return;case"dialog":qt("beforetoggle",o),qt("toggle",o),qt("cancel",o),qt("close",o);break;case"iframe":case"object":qt("load",o);break;case"video":case"audio":for(u=0;u<Lu.length;u++)qt(Lu[u],o);break;case"image":qt("error",o),qt("load",o);break;case"details":qt("toggle",o);break;case"embed":case"source":case"link":qt("error",o),qt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in a)if(a.hasOwnProperty(K)&&(u=a[K],u!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:ce(o,i,K,u,a,null)}return;default:if(kh(i)){for(rt in a)a.hasOwnProperty(rt)&&(u=a[rt],u!==void 0&&Ag(o,i,rt,u,a,void 0));return}}for(A in a)a.hasOwnProperty(A)&&(u=a[A],u!=null&&ce(o,i,A,u,a,null))}function M_(o,i,a,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,h=null,v=null,A=null,I=null,K=null,rt=null;for(J in a){var lt=a[J];if(a.hasOwnProperty(J)&<!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":I=lt;default:u.hasOwnProperty(J)||ce(o,i,J,null,u,lt)}}for(var X in u){var J=u[X];if(lt=a[X],u.hasOwnProperty(X)&&(J!=null||lt!=null))switch(X){case"type":h=J;break;case"name":d=J;break;case"checked":K=J;break;case"defaultChecked":rt=J;break;case"value":v=J;break;case"defaultValue":A=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,i));break;default:J!==lt&&ce(o,i,X,J,u,lt)}}Bh(o,v,A,I,K,rt,h,d);return;case"select":J=v=A=X=null;for(h in a)if(I=a[h],a.hasOwnProperty(h)&&I!=null)switch(h){case"value":break;case"multiple":J=I;default:u.hasOwnProperty(h)||ce(o,i,h,null,u,I)}for(d in u)if(h=u[d],I=a[d],u.hasOwnProperty(d)&&(h!=null||I!=null))switch(d){case"value":X=h;break;case"defaultValue":A=h;break;case"multiple":v=h;default:h!==I&&ce(o,i,d,h,u,I)}i=A,a=v,u=J,X!=null?ya(o,!!a,X,!1):!!u!=!!a&&(i!=null?ya(o,!!a,i,!0):ya(o,!!a,a?[]:"",!1));return;case"textarea":J=X=null;for(A in a)if(d=a[A],a.hasOwnProperty(A)&&d!=null&&!u.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:ce(o,i,A,null,u,d)}for(v in u)if(d=u[v],h=a[v],u.hasOwnProperty(v)&&(d!=null||h!=null))switch(v){case"value":X=d;break;case"defaultValue":J=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==h&&ce(o,i,v,d,u,h)}k1(o,X,J);return;case"option":for(var gt in a)X=a[gt],a.hasOwnProperty(gt)&&X!=null&&!u.hasOwnProperty(gt)&&(gt==="selected"?o.selected=!1:ce(o,i,gt,null,u,X));for(I in u)X=u[I],J=a[I],u.hasOwnProperty(I)&&X!==J&&(X!=null||J!=null)&&(I==="selected"?o.selected=X&&typeof X!="function"&&typeof X!="symbol":ce(o,i,I,X,u,J));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ct in a)X=a[Ct],a.hasOwnProperty(Ct)&&X!=null&&!u.hasOwnProperty(Ct)&&ce(o,i,Ct,null,u,X);for(K in u)if(X=u[K],J=a[K],u.hasOwnProperty(K)&&X!==J&&(X!=null||J!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,i));break;default:ce(o,i,K,X,u,J)}return;default:if(kh(i)){for(var fe in a)X=a[fe],a.hasOwnProperty(fe)&&X!==void 0&&!u.hasOwnProperty(fe)&&Ag(o,i,fe,void 0,u,X);for(rt in u)X=u[rt],J=a[rt],!u.hasOwnProperty(rt)||X===J||X===void 0&&J===void 0||Ag(o,i,rt,X,u,J);return}}for(var q in a)X=a[q],a.hasOwnProperty(q)&&X!=null&&!u.hasOwnProperty(q)&&ce(o,i,q,null,u,X);for(lt in u)X=u[lt],J=a[lt],!u.hasOwnProperty(lt)||X===J||X==null&&J==null||ce(o,i,lt,X,u,J)}function qx(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function R_(){if(typeof performance.getEntriesByType=="function"){for(var o=0,i=0,a=performance.getEntriesByType("resource"),u=0;u<a.length;u++){var d=a[u],h=d.transferSize,v=d.initiatorType,A=d.duration;if(h&&A&&qx(v)){for(v=0,A=d.responseEnd,u+=1;u<a.length;u++){var I=a[u],K=I.startTime;if(K>A)break;var rt=I.transferSize,lt=I.initiatorType;rt&&qx(lt)&&(I=I.responseEnd,v+=rt*(I<A?1:(A-K)/(I-K)))}if(--u,i+=8*(h+v)/(d.duration/1e3),o++,10<o)break}}if(0<o)return i/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var $g=null,Mg=null;function Qf(o){return o.nodeType===9?o:o.ownerDocument}function Gx(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Yx(o,i){if(o===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&i==="foreignObject"?0:o}function Rg(o,i){return o==="textarea"||o==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Og=null;function O_(){var o=window.event;return o&&o.type==="popstate"?o===Og?!1:(Og=o,!0):(Og=null,!1)}var Vx=typeof setTimeout=="function"?setTimeout:void 0,N_=typeof clearTimeout=="function"?clearTimeout:void 0,Kx=typeof Promise=="function"?Promise:void 0,__=typeof queueMicrotask=="function"?queueMicrotask:typeof Kx<"u"?function(o){return Kx.resolve(null).then(o).catch(D_)}:Vx;function D_(o){setTimeout(function(){throw o})}function Vi(o){return o==="head"}function Xx(o,i){var a=i,u=0;do{var d=a.nextSibling;if(o.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(u===0){o.removeChild(d),Xa(i);return}u--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")u++;else if(a==="html")Bu(o.ownerDocument.documentElement);else if(a==="head"){a=o.ownerDocument.head,Bu(a);for(var h=a.firstChild;h;){var v=h.nextSibling,A=h.nodeName;h[nu]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&h.rel.toLowerCase()==="stylesheet"||a.removeChild(h),h=v}}else a==="body"&&Bu(o.ownerDocument.body);a=d}while(a);Xa(i)}function Qx(o,i){var a=o;o=0;do{var u=a.nextSibling;if(a.nodeType===1?i?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(i?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),u&&u.nodeType===8)if(a=u.data,a==="/$"){if(o===0)break;o--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||o++;a=u}while(a)}function Ng(o){var i=o.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var a=i;switch(i=i.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ng(a),Lh(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}o.removeChild(a)}}function j_(o,i,a,u){for(;o.nodeType===1;){var d=a;if(o.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(u){if(!o[nu])switch(i){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(h=o.getAttribute("rel"),h==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(h!==d.rel||o.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||o.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||o.getAttribute("title")!==(d.title==null?null:d.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(h=o.getAttribute("src"),(h!==(d.src==null?null:d.src)||o.getAttribute("type")!==(d.type==null?null:d.type)||o.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&h&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(i==="input"&&o.type==="hidden"){var h=d.name==null?null:""+d.name;if(d.type==="hidden"&&o.getAttribute("name")===h)return o}else return o;if(o=jr(o.nextSibling),o===null)break}return null}function I_(o,i,a){if(i==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!a||(o=jr(o.nextSibling),o===null))return null;return o}function Zx(o,i){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!i||(o=jr(o.nextSibling),o===null))return null;return o}function _g(o){return o.data==="$?"||o.data==="$~"}function Dg(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function L_(o,i){var a=o.ownerDocument;if(o.data==="$~")o._reactRetry=i;else if(o.data!=="$?"||a.readyState!=="loading")i();else{var u=function(){i(),a.removeEventListener("DOMContentLoaded",u)};a.addEventListener("DOMContentLoaded",u),o._reactRetry=u}}function jr(o){for(;o!=null;o=o.nextSibling){var i=o.nodeType;if(i===1||i===3)break;if(i===8){if(i=o.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return o}var jg=null;function Jx(o){o=o.nextSibling;for(var i=0;o;){if(o.nodeType===8){var a=o.data;if(a==="/$"||a==="/&"){if(i===0)return jr(o.nextSibling);i--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||i++}o=o.nextSibling}return null}function Wx(o){o=o.previousSibling;for(var i=0;o;){if(o.nodeType===8){var a=o.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(i===0)return o;i--}else a!=="/$"&&a!=="/&"||i++}o=o.previousSibling}return null}function tw(o,i,a){switch(i=Qf(a),o){case"html":if(o=i.documentElement,!o)throw Error(r(452));return o;case"head":if(o=i.head,!o)throw Error(r(453));return o;case"body":if(o=i.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Bu(o){for(var i=o.attributes;i.length;)o.removeAttributeNode(i[0]);Lh(o)}var Ir=new Map,ew=new Set;function Zf(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var ni=B.d;B.d={f:z_,r:B_,D:U_,C:k_,L:P_,m:H_,X:q_,S:F_,M:G_};function z_(){var o=ni.f(),i=Hf();return o||i}function B_(o){var i=ha(o);i!==null&&i.tag===5&&i.type==="form"?bE(i):ni.r(o)}var Ya=typeof document>"u"?null:document;function nw(o,i,a){var u=Ya;if(u&&typeof i=="string"&&i){var d=$r(i);d='link[rel="'+o+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),ew.has(d)||(ew.add(d),o={rel:o,crossOrigin:a,href:i},u.querySelector(d)===null&&(i=u.createElement("link"),pn(i,"link",o),sn(i),u.head.appendChild(i)))}}function U_(o){ni.D(o),nw("dns-prefetch",o,null)}function k_(o,i){ni.C(o,i),nw("preconnect",o,i)}function P_(o,i,a){ni.L(o,i,a);var u=Ya;if(u&&o&&i){var d='link[rel="preload"][as="'+$r(i)+'"]';i==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+$r(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+$r(a.imageSizes)+'"]')):d+='[href="'+$r(o)+'"]';var h=d;switch(i){case"style":h=Va(o);break;case"script":h=Ka(o)}Ir.has(h)||(o=b({rel:"preload",href:i==="image"&&a&&a.imageSrcSet?void 0:o,as:i},a),Ir.set(h,o),u.querySelector(d)!==null||i==="style"&&u.querySelector(Uu(h))||i==="script"&&u.querySelector(ku(h))||(i=u.createElement("link"),pn(i,"link",o),sn(i),u.head.appendChild(i)))}}function H_(o,i){ni.m(o,i);var a=Ya;if(a&&o){var u=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+$r(u)+'"][href="'+$r(o)+'"]',h=d;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ka(o)}if(!Ir.has(h)&&(o=b({rel:"modulepreload",href:o},i),Ir.set(h,o),a.querySelector(d)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ku(h)))return}u=a.createElement("link"),pn(u,"link",o),sn(u),a.head.appendChild(u)}}}function F_(o,i,a){ni.S(o,i,a);var u=Ya;if(u&&o){var d=pa(u).hoistableStyles,h=Va(o);i=i||"default";var v=d.get(h);if(!v){var A={loading:0,preload:null};if(v=u.querySelector(Uu(h)))A.loading=5;else{o=b({rel:"stylesheet",href:o,"data-precedence":i},a),(a=Ir.get(h))&&Ig(o,a);var I=v=u.createElement("link");sn(I),pn(I,"link",o),I._p=new Promise(function(K,rt){I.onload=K,I.onerror=rt}),I.addEventListener("load",function(){A.loading|=1}),I.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Jf(v,i,u)}v={type:"stylesheet",instance:v,count:1,state:A},d.set(h,v)}}}function q_(o,i){ni.X(o,i);var a=Ya;if(a&&o){var u=pa(a).hoistableScripts,d=Ka(o),h=u.get(d);h||(h=a.querySelector(ku(d)),h||(o=b({src:o,async:!0},i),(i=Ir.get(d))&&Lg(o,i),h=a.createElement("script"),sn(h),pn(h,"link",o),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(d,h))}}function G_(o,i){ni.M(o,i);var a=Ya;if(a&&o){var u=pa(a).hoistableScripts,d=Ka(o),h=u.get(d);h||(h=a.querySelector(ku(d)),h||(o=b({src:o,async:!0,type:"module"},i),(i=Ir.get(d))&&Lg(o,i),h=a.createElement("script"),sn(h),pn(h,"link",o),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(d,h))}}function rw(o,i,a,u){var d=(d=pt.current)?Zf(d):null;if(!d)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(i=Va(a.href),a=pa(d).hoistableStyles,u=a.get(i),u||(u={type:"style",instance:null,count:0,state:null},a.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){o=Va(a.href);var h=pa(d).hoistableStyles,v=h.get(o);if(v||(d=d.ownerDocument||d,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(o,v),(h=d.querySelector(Uu(o)))&&!h._p&&(v.instance=h,v.state.loading=5),Ir.has(o)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ir.set(o,a),h||Y_(d,o,a,v.state))),i&&u===null)throw Error(r(528,""));return v}if(i&&u!==null)throw Error(r(529,""));return null;case"script":return i=a.async,a=a.src,typeof a=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ka(a),a=pa(d).hoistableScripts,u=a.get(i),u||(u={type:"script",instance:null,count:0,state:null},a.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Va(o){return'href="'+$r(o)+'"'}function Uu(o){return'link[rel="stylesheet"]['+o+"]"}function ow(o){return b({},o,{"data-precedence":o.precedence,precedence:null})}function Y_(o,i,a,u){o.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=o.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),pn(i,"link",a),sn(i),o.head.appendChild(i))}function Ka(o){return'[src="'+$r(o)+'"]'}function ku(o){return"script[async]"+o}function iw(o,i,a){if(i.count++,i.instance===null)switch(i.type){case"style":var u=o.querySelector('style[data-href~="'+$r(a.href)+'"]');if(u)return i.instance=u,sn(u),u;var d=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(o.ownerDocument||o).createElement("style"),sn(u),pn(u,"style",d),Jf(u,a.precedence,o),i.instance=u;case"stylesheet":d=Va(a.href);var h=o.querySelector(Uu(d));if(h)return i.state.loading|=4,i.instance=h,sn(h),h;u=ow(a),(d=Ir.get(d))&&Ig(u,d),h=(o.ownerDocument||o).createElement("link"),sn(h);var v=h;return v._p=new Promise(function(A,I){v.onload=A,v.onerror=I}),pn(h,"link",u),i.state.loading|=4,Jf(h,a.precedence,o),i.instance=h;case"script":return h=Ka(a.src),(d=o.querySelector(ku(h)))?(i.instance=d,sn(d),d):(u=a,(d=Ir.get(h))&&(u=b({},a),Lg(u,d)),o=o.ownerDocument||o,d=o.createElement("script"),sn(d),pn(d,"link",u),o.head.appendChild(d),i.instance=d);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,Jf(u,a.precedence,o));return i.instance}function Jf(o,i,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=u.length?u[u.length-1]:null,h=d,v=0;v<u.length;v++){var A=u[v];if(A.dataset.precedence===i)h=A;else if(h!==d)break}h?h.parentNode.insertBefore(o,h.nextSibling):(i=a.nodeType===9?a.head:a,i.insertBefore(o,i.firstChild))}function Ig(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.title==null&&(o.title=i.title)}function Lg(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.integrity==null&&(o.integrity=i.integrity)}var Wf=null;function sw(o,i,a){if(Wf===null){var u=new Map,d=Wf=new Map;d.set(a,u)}else d=Wf,u=d.get(a),u||(u=new Map,d.set(a,u));if(u.has(o))return u;for(u.set(o,null),a=a.getElementsByTagName(o),d=0;d<a.length;d++){var h=a[d];if(!(h[nu]||h[fn]||o==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var v=h.getAttribute(i)||"";v=o+v;var A=u.get(v);A?A.push(h):u.set(v,[h])}}return u}function aw(o,i,a){o=o.ownerDocument||o,o.head.insertBefore(a,i==="title"?o.querySelector("head > title"):null)}function V_(o,i,a){if(a===1||i.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(o=i.disabled,typeof i.precedence=="string"&&o==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function lw(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function K_(o,i,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Va(u.href),h=i.querySelector(Uu(d));if(h){i=h._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(o.count++,o=td.bind(o),i.then(o,o)),a.state.loading|=4,a.instance=h,sn(h);return}h=i.ownerDocument||i,u=ow(u),(d=Ir.get(d))&&Ig(u,d),h=h.createElement("link"),sn(h);var v=h;v._p=new Promise(function(A,I){v.onload=A,v.onerror=I}),pn(h,"link",u),a.instance=h}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,i),(i=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=td.bind(o),i.addEventListener("load",a),i.addEventListener("error",a))}}var zg=0;function X_(o,i){return o.stylesheets&&o.count===0&&nd(o,o.stylesheets),0<o.count||0<o.imgCount?function(a){var u=setTimeout(function(){if(o.stylesheets&&nd(o,o.stylesheets),o.unsuspend){var h=o.unsuspend;o.unsuspend=null,h()}},6e4+i);0<o.imgBytes&&zg===0&&(zg=62500*R_());var d=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&nd(o,o.stylesheets),o.unsuspend)){var h=o.unsuspend;o.unsuspend=null,h()}},(o.imgBytes>zg?50:800)+i);return o.unsuspend=a,function(){o.unsuspend=null,clearTimeout(u),clearTimeout(d)}}:null}function td(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nd(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var ed=null;function nd(o,i){o.stylesheets=null,o.unsuspend!==null&&(o.count++,ed=new Map,i.forEach(Q_,o),ed=null,td.call(o))}function Q_(o,i){if(!(i.state.loading&4)){var a=ed.get(o);if(a)var u=a.get(null);else{a=new Map,ed.set(o,a);for(var d=o.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<d.length;h++){var v=d[h];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(a.set(v.dataset.precedence,v),u=v)}u&&a.set(null,u)}d=i.instance,v=d.getAttribute("data-precedence"),h=a.get(v)||u,h===u&&a.set(null,d),a.set(v,d),this.count++,u=td.bind(this),d.addEventListener("load",u),d.addEventListener("error",u),h?h.parentNode.insertBefore(d,h.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(d,o.firstChild)),i.state.loading|=4}}var Pu={$$typeof:j,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function Z_(o,i,a,u,d,h,v,A,I){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=_h(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_h(0),this.hiddenUpdates=_h(null),this.identifierPrefix=u,this.onUncaughtError=d,this.onCaughtError=h,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map}function uw(o,i,a,u,d,h,v,A,I,K,rt,lt){return o=new Z_(o,i,a,v,I,K,rt,lt,A),i=1,h===!0&&(i|=24),h=tr(3,null,null,i),o.current=h,h.stateNode=o,i=gp(),i.refCount++,o.pooledCache=i,i.refCount++,h.memoizedState={element:u,isDehydrated:a,cache:i},Sp(h),o}function cw(o){return o?(o=Ca,o):Ca}function fw(o,i,a,u,d,h){d=cw(d),u.context===null?u.context=d:u.pendingContext=d,u=Li(i),u.payload={element:a},h=h===void 0?null:h,h!==null&&(u.callback=h),a=zi(o,u,i),a!==null&&(Un(a,o,i),vu(a,o,i))}function dw(o,i){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var a=o.retryLane;o.retryLane=a!==0&&a<i?a:i}}function Bg(o,i){dw(o,i),(o=o.alternate)&&dw(o,i)}function mw(o){if(o.tag===13||o.tag===31){var i=As(o,67108864);i!==null&&Un(i,o,67108864),Bg(o,67108864)}}function hw(o){if(o.tag===13||o.tag===31){var i=ir();i=Dh(i);var a=As(o,i);a!==null&&Un(a,o,i),Bg(o,i)}}var rd=!0;function J_(o,i,a,u){var d=O.T;O.T=null;var h=B.p;try{B.p=2,Ug(o,i,a,u)}finally{B.p=h,O.T=d}}function W_(o,i,a,u){var d=O.T;O.T=null;var h=B.p;try{B.p=8,Ug(o,i,a,u)}finally{B.p=h,O.T=d}}function Ug(o,i,a,u){if(rd){var d=kg(u);if(d===null)Cg(o,i,u,od,a),gw(o,u);else if(e3(d,o,i,a,u))u.stopPropagation();else if(gw(o,u),i&4&&-1<t3.indexOf(o)){for(;d!==null;){var h=ha(d);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var v=Es(h.pendingLanes);if(v!==0){var A=h;for(A.pendingLanes|=2,A.entangledLanes|=2;v;){var I=1<<31-Jn(v);A.entanglements[1]|=I,v&=~I}So(h),(ee&6)===0&&(kf=Qn()+500,Iu(0))}}break;case 31:case 13:A=As(h,2),A!==null&&Un(A,h,2),Hf(),Bg(h,2)}if(h=kg(u),h===null&&Cg(o,i,u,od,a),h===d)break;d=h}d!==null&&u.stopPropagation()}else Cg(o,i,u,null,a)}}function kg(o){return o=Hh(o),Pg(o)}var od=null;function Pg(o){if(od=null,o=ma(o),o!==null){var i=l(o);if(i===null)o=null;else{var a=i.tag;if(a===13){if(o=c(i),o!==null)return o;o=null}else if(a===31){if(o=f(i),o!==null)return o;o=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return od=o,null}function pw(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(UO()){case w1:return 2;case T1:return 8;case Yc:case kO:return 32;case C1:return 268435456;default:return 32}default:return 32}}var Hg=!1,Ki=null,Xi=null,Qi=null,Hu=new Map,Fu=new Map,Zi=[],t3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function gw(o,i){switch(o){case"focusin":case"focusout":Ki=null;break;case"dragenter":case"dragleave":Xi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":Hu.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fu.delete(i.pointerId)}}function qu(o,i,a,u,d,h){return o===null||o.nativeEvent!==h?(o={blockedOn:i,domEventName:a,eventSystemFlags:u,nativeEvent:h,targetContainers:[d]},i!==null&&(i=ha(i),i!==null&&mw(i)),o):(o.eventSystemFlags|=u,i=o.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),o)}function e3(o,i,a,u,d){switch(i){case"focusin":return Ki=qu(Ki,o,i,a,u,d),!0;case"dragenter":return Xi=qu(Xi,o,i,a,u,d),!0;case"mouseover":return Qi=qu(Qi,o,i,a,u,d),!0;case"pointerover":var h=d.pointerId;return Hu.set(h,qu(Hu.get(h)||null,o,i,a,u,d)),!0;case"gotpointercapture":return h=d.pointerId,Fu.set(h,qu(Fu.get(h)||null,o,i,a,u,d)),!0}return!1}function yw(o){var i=ma(o.target);if(i!==null){var a=l(i);if(a!==null){if(i=a.tag,i===13){if(i=c(a),i!==null){o.blockedOn=i,N1(o.priority,function(){hw(a)});return}}else if(i===31){if(i=f(a),i!==null){o.blockedOn=i,N1(o.priority,function(){hw(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){o.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}o.blockedOn=null}function id(o){if(o.blockedOn!==null)return!1;for(var i=o.targetContainers;0<i.length;){var a=kg(o.nativeEvent);if(a===null){a=o.nativeEvent;var u=new a.constructor(a.type,a);Ph=u,a.target.dispatchEvent(u),Ph=null}else return i=ha(a),i!==null&&mw(i),o.blockedOn=a,!1;i.shift()}return!0}function bw(o,i,a){id(o)&&a.delete(i)}function n3(){Hg=!1,Ki!==null&&id(Ki)&&(Ki=null),Xi!==null&&id(Xi)&&(Xi=null),Qi!==null&&id(Qi)&&(Qi=null),Hu.forEach(bw),Fu.forEach(bw)}function sd(o,i){o.blockedOn===i&&(o.blockedOn=null,Hg||(Hg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,n3)))}var ad=null;function vw(o){ad!==o&&(ad=o,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ad===o&&(ad=null);for(var i=0;i<o.length;i+=3){var a=o[i],u=o[i+1],d=o[i+2];if(typeof u!="function"){if(Pg(u||a)===null)continue;break}var h=ha(a);h!==null&&(o.splice(i,3),i-=3,kp(h,{pending:!0,data:d,method:a.method,action:u},u,d))}}))}function Xa(o){function i(I){return sd(I,o)}Ki!==null&&sd(Ki,o),Xi!==null&&sd(Xi,o),Qi!==null&&sd(Qi,o),Hu.forEach(i),Fu.forEach(i);for(var a=0;a<Zi.length;a++){var u=Zi[a];u.blockedOn===o&&(u.blockedOn=null)}for(;0<Zi.length&&(a=Zi[0],a.blockedOn===null);)yw(a),a.blockedOn===null&&Zi.shift();if(a=(o.ownerDocument||o).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var d=a[u],h=a[u+1],v=d[Dn]||null;if(typeof h=="function")v||vw(a);else if(v){var A=null;if(h&&h.hasAttribute("formAction")){if(d=h,v=h[Dn]||null)A=v.formAction;else if(Pg(d)!==null)continue}else A=v.action;typeof A=="function"?a[u+1]=A:(a.splice(u,3),u-=3),vw(a)}}}function Sw(){function o(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(v){return d=v})},focusReset:"manual",scroll:"manual"})}function i(){d!==null&&(d(),d=null),u||setTimeout(a,20)}function a(){if(!u&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,d=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(a,100),function(){u=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),d!==null&&(d(),d=null)}}}function Fg(o){this._internalRoot=o}ld.prototype.render=Fg.prototype.render=function(o){var i=this._internalRoot;if(i===null)throw Error(r(409));var a=i.current,u=ir();fw(a,u,o,i,null,null)},ld.prototype.unmount=Fg.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var i=o.containerInfo;fw(o.current,2,null,o,null,null),Hf(),i[da]=null}};function ld(o){this._internalRoot=o}ld.prototype.unstable_scheduleHydration=function(o){if(o){var i=O1();o={blockedOn:null,target:o,priority:i};for(var a=0;a<Zi.length&&i!==0&&i<Zi[a].priority;a++);Zi.splice(a,0,o),a===0&&yw(o)}};var Ew=e.version;if(Ew!=="19.2.4")throw Error(r(527,Ew,"19.2.4"));B.findDOMNode=function(o){var i=o._reactInternals;if(i===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=p(i),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var r3={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ud=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ud.isDisabled&&ud.supportsFiber)try{Wl=ud.inject(r3),Zn=ud}catch{}}return Vu.createRoot=function(o,i){if(!s(o))throw Error(r(299));var a=!1,u="",d=ME,h=RE,v=OE;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(h=i.onCaughtError),i.onRecoverableError!==void 0&&(v=i.onRecoverableError)),i=uw(o,1,!1,null,null,a,u,null,d,h,v,Sw),o[da]=i.current,Tg(o),new Fg(i)},Vu.hydrateRoot=function(o,i,a){if(!s(o))throw Error(r(299));var u=!1,d="",h=ME,v=RE,A=OE,I=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(A=a.onRecoverableError),a.formState!==void 0&&(I=a.formState)),i=uw(o,1,!0,i,a??null,u,d,I,h,v,A,Sw),i.context=cw(null),a=i.current,u=ir(),u=Dh(u),d=Li(u),d.callback=null,zi(a,d,u),a=u,i.current.lanes=a,eu(i,a),So(i),o[da]=i.current,Tg(o),new ld(i)},Vu.version="19.2.4",Vu}var vT;function OG(){if(vT)return ty.exports;vT=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),ty.exports=RG(),ty.exports}var ST=OG();class ET{log=ho();root;onBrowserRender=sr({on:"react:browser:render",handler:async({hydration:e,root:n,element:r})=>{e?.layers?(this.root=ST.hydrateRoot(n,r),this.log.info("Hydrated root element")):(this.root??=ST.createRoot(n),this.root.render(r),this.log.info("Created root element"))}})}class Qy{alepha=Rt(Re);pageApi=Rt(Gd);get state(){return this.alepha.store.get("alepha.react.router.state")}get pages(){return this.pageApi.getPages()}get concretePages(){return this.pageApi.getConcretePages()}get browser(){if(this.alepha.isBrowser())return this.alepha.inject(Xy)}isActive(e,n={}){const r=this.state.url.pathname;let s=r===e||r===`${e}/`||`${r}/`===e;return n.startWith&&!s&&(s=r.startsWith(e)),s}node(e,n={}){const r=this.pageApi.page(e);return!r.lazy&&!r.component?{...r,label:r.label??r.name,children:void 0}:{...r,label:r.label??r.name,href:this.path(e,n),children:void 0}}path(e,n={}){return this.pageApi.pathname(e,{params:{...this.state?.params,...n.params},query:n.query})}async reload(){this.browser&&await this.go(this.location.pathname+this.location.search,{replace:!0,force:!0})}getURL(){return this.browser?new URL(this.location.href):this.state.url}get location(){if(!this.browser)throw new Error("Browser is required");return this.browser.location}get current(){return this.state}get pathname(){return this.state.url.pathname}get query(){const e={};for(const[n,r]of new URLSearchParams(this.state.url.search).entries())e[n]=String(r);return e}async back(){this.browser?.history.back()}async forward(){this.browser?.history.forward()}async invalidate(e){await this.browser?.invalidate(e)}async go(e,n){for(const r of this.pages)if(r.name===e){await this.browser?.go(this.path(e,n),n);return}await this.browser?.go(e,n)}anchor(e,n={}){let r=e;for(const s of this.pages)if(s.name===e){r=this.path(e,n);break}return{href:this.base(r),onClick:s=>{s.stopPropagation(),s.preventDefault(),this.go(r,n).catch(console.error)}}}base(e){return"/devtools"+e}setQueryParams(e,n={}){const r=typeof e=="function"?e:()=>e,s=new URLSearchParams(r(this.query)).toString(),l=s?`${this.pathname}?${s}`:this.pathname;n.push?window.history.pushState({},"",l):window.history.replaceState({},"",l)}}const NG=()=>yv(Qy);gr({name:"alepha.react.router",primitives:[Cn],services:[Gd,Ky,Xy,Qy,ET,AM],register:t=>t.with(yM).with(lM).with(dM).with(lG).with(Gd).with(Xy).with(Ky).with(ET).with(Qy)});var To=function(){return To=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},To.apply(this,arguments)};function DM(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function _G(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,l;r<s;r++)(l||!(r in e))&&(l||(l=Array.prototype.slice.call(e,0,r)),l[r]=e[r]);return t.concat(l||Array.prototype.slice.call(e))}var Od="right-scroll-bar-position",Nd="width-before-scroll-bar",DG="with-scroll-bars-hidden",jG="--removed-body-scroll-bar-size";function oy(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function IG(t,e){var n=C.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=e,n.facade}var LG=typeof window<"u"?C.useLayoutEffect:C.useEffect,xT=new WeakMap;function zG(t,e){var n=IG(null,function(r){return t.forEach(function(s){return oy(s,r)})});return LG(function(){var r=xT.get(n);if(r){var s=new Set(r),l=new Set(t),c=n.current;s.forEach(function(f){l.has(f)||oy(f,null)}),l.forEach(function(f){s.has(f)||oy(f,c)})}xT.set(n,t)},[t]),n}function BG(t){return t}function UG(t,e){e===void 0&&(e=BG);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(l){var c=e(l,r);return n.push(c),function(){n=n.filter(function(f){return f!==c})}},assignSyncMedium:function(l){for(r=!0;n.length;){var c=n;n=[],c.forEach(l)}n={push:function(f){return l(f)},filter:function(){return n}}},assignMedium:function(l){r=!0;var c=[];if(n.length){var f=n;n=[],f.forEach(l),c=n}var m=function(){var g=c;c=[],g.forEach(l)},p=function(){return Promise.resolve().then(m)};p(),n={push:function(g){c.push(g),p()},filter:function(g){return c=c.filter(g),n}}}};return s}function kG(t){t===void 0&&(t={});var e=UG(null);return e.options=To({async:!0,ssr:!1},t),e}var jM=function(t){var e=t.sideCar,n=DM(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return C.createElement(r,To({},n))};jM.isSideCarExport=!0;function PG(t,e){return t.useMedium(e),jM}var IM=kG(),iy=function(){},Zm=C.forwardRef(function(t,e){var n=C.useRef(null),r=C.useState({onScrollCapture:iy,onWheelCapture:iy,onTouchMoveCapture:iy}),s=r[0],l=r[1],c=t.forwardProps,f=t.children,m=t.className,p=t.removeScrollBar,g=t.enabled,b=t.shards,E=t.sideCar,S=t.noRelative,T=t.noIsolation,w=t.inert,$=t.allowPinchZoom,_=t.as,L=_===void 0?"div":_,j=t.gapMode,P=DM(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),H=E,F=zG([n,e]),z=To(To({},P),s);return C.createElement(C.Fragment,null,g&&C.createElement(H,{sideCar:IM,removeScrollBar:p,shards:b,noRelative:S,noIsolation:T,inert:w,setCallbacks:l,allowPinchZoom:!!$,lockRef:n,gapMode:j}),c?C.cloneElement(C.Children.only(f),To(To({},z),{ref:F})):C.createElement(L,To({},z,{className:m,ref:F}),f))});Zm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zm.classNames={fullWidth:Nd,zeroRight:Od};var HG=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function FG(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=HG();return e&&t.setAttribute("nonce",e),t}function qG(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function GG(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var YG=function(){var t=0,e=null;return{add:function(n){t==0&&(e=FG())&&(qG(e,n),GG(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},VG=function(){var t=YG();return function(e,n){C.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},LM=function(){var t=VG(),e=function(n){var r=n.styles,s=n.dynamic;return t(r,s),null};return e},KG={left:0,top:0,right:0,gap:0},sy=function(t){return parseInt(t||"",10)||0},XG=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],s=e[t==="padding"?"paddingRight":"marginRight"];return[sy(n),sy(r),sy(s)]},QG=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return KG;var e=XG(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},ZG=LM(),cl="data-scroll-locked",JG=function(t,e,n,r){var s=t.left,l=t.top,c=t.right,f=t.gap;return n===void 0&&(n="margin"),`
|
|
27
|
+
.`.concat(DG,` {
|
|
28
|
+
overflow: hidden `).concat(r,`;
|
|
29
|
+
padding-right: `).concat(f,"px ").concat(r,`;
|
|
30
|
+
}
|
|
31
|
+
body[`).concat(cl,`] {
|
|
32
|
+
overflow: hidden `).concat(r,`;
|
|
33
|
+
overscroll-behavior: contain;
|
|
34
|
+
`).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
35
|
+
padding-left: `.concat(s,`px;
|
|
36
|
+
padding-top: `).concat(l,`px;
|
|
37
|
+
padding-right: `).concat(c,`px;
|
|
38
|
+
margin-left:0;
|
|
39
|
+
margin-top:0;
|
|
40
|
+
margin-right: `).concat(f,"px ").concat(r,`;
|
|
41
|
+
`),n==="padding"&&"padding-right: ".concat(f,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.`).concat(Od,` {
|
|
45
|
+
right: `).concat(f,"px ").concat(r,`;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.`).concat(Nd,` {
|
|
49
|
+
margin-right: `).concat(f,"px ").concat(r,`;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.`).concat(Od," .").concat(Od,` {
|
|
53
|
+
right: 0 `).concat(r,`;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.`).concat(Nd," .").concat(Nd,` {
|
|
57
|
+
margin-right: 0 `).concat(r,`;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
body[`).concat(cl,`] {
|
|
61
|
+
`).concat(jG,": ").concat(f,`px;
|
|
62
|
+
}
|
|
63
|
+
`)},wT=function(){var t=parseInt(document.body.getAttribute(cl)||"0",10);return isFinite(t)?t:0},WG=function(){C.useEffect(function(){return document.body.setAttribute(cl,(wT()+1).toString()),function(){var t=wT()-1;t<=0?document.body.removeAttribute(cl):document.body.setAttribute(cl,t.toString())}},[])},tY=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,s=r===void 0?"margin":r;WG();var l=C.useMemo(function(){return QG(s)},[s]);return C.createElement(ZG,{styles:JG(l,!e,s,n?"":"!important")})},Zy=!1;if(typeof window<"u")try{var fd=Object.defineProperty({},"passive",{get:function(){return Zy=!0,!0}});window.addEventListener("test",fd,fd),window.removeEventListener("test",fd,fd)}catch{Zy=!1}var Qa=Zy?{passive:!1}:!1,eY=function(t){return t.tagName==="TEXTAREA"},zM=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!eY(t)&&n[e]==="visible")},nY=function(t){return zM(t,"overflowY")},rY=function(t){return zM(t,"overflowX")},TT=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=BM(t,r);if(s){var l=UM(t,r),c=l[1],f=l[2];if(c>f)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},oY=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},iY=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},BM=function(t,e){return t==="v"?nY(e):rY(e)},UM=function(t,e){return t==="v"?oY(e):iY(e)},sY=function(t,e){return t==="h"&&e==="rtl"?-1:1},aY=function(t,e,n,r,s){var l=sY(t,window.getComputedStyle(e).direction),c=l*r,f=n.target,m=e.contains(f),p=!1,g=c>0,b=0,E=0;do{if(!f)break;var S=UM(t,f),T=S[0],w=S[1],$=S[2],_=w-$-l*T;(T||_)&&BM(t,f)&&(b+=_,E+=T);var L=f.parentNode;f=L&&L.nodeType===Node.DOCUMENT_FRAGMENT_NODE?L.host:L}while(!m&&f!==document.body||m&&(e.contains(f)||e===f));return(g&&Math.abs(b)<1||!g&&Math.abs(E)<1)&&(p=!0),p},dd=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},CT=function(t){return[t.deltaX,t.deltaY]},AT=function(t){return t&&"current"in t?t.current:t},lY=function(t,e){return t[0]===e[0]&&t[1]===e[1]},uY=function(t){return`
|
|
64
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
65
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
66
|
+
`)},cY=0,Za=[];function fY(t){var e=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),s=C.useState(cY++)[0],l=C.useState(LM)[0],c=C.useRef(t);C.useEffect(function(){c.current=t},[t]),C.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var w=_G([t.lockRef.current],(t.shards||[]).map(AT),!0).filter(Boolean);return w.forEach(function($){return $.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),w.forEach(function($){return $.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var f=C.useCallback(function(w,$){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!c.current.allowPinchZoom;var _=dd(w),L=n.current,j="deltaX"in w?w.deltaX:L[0]-_[0],P="deltaY"in w?w.deltaY:L[1]-_[1],H,F=w.target,z=Math.abs(j)>Math.abs(P)?"h":"v";if("touches"in w&&z==="h"&&F.type==="range")return!1;var k=window.getSelection(),W=k&&k.anchorNode,et=W?W===F||W.contains(F):!1;if(et)return!1;var it=TT(z,F);if(!it)return!0;if(it?H=z:(H=z==="v"?"h":"v",it=TT(z,F)),!it)return!1;if(!r.current&&"changedTouches"in w&&(j||P)&&(r.current=H),!H)return!0;var ct=r.current||H;return aY(ct,$,w,ct==="h"?j:P)},[]),m=C.useCallback(function(w){var $=w;if(!(!Za.length||Za[Za.length-1]!==l)){var _="deltaY"in $?CT($):dd($),L=e.current.filter(function(H){return H.name===$.type&&(H.target===$.target||$.target===H.shadowParent)&&lY(H.delta,_)})[0];if(L&&L.should){$.cancelable&&$.preventDefault();return}if(!L){var j=(c.current.shards||[]).map(AT).filter(Boolean).filter(function(H){return H.contains($.target)}),P=j.length>0?f($,j[0]):!c.current.noIsolation;P&&$.cancelable&&$.preventDefault()}}},[]),p=C.useCallback(function(w,$,_,L){var j={name:w,delta:$,target:_,should:L,shadowParent:dY(_)};e.current.push(j),setTimeout(function(){e.current=e.current.filter(function(P){return P!==j})},1)},[]),g=C.useCallback(function(w){n.current=dd(w),r.current=void 0},[]),b=C.useCallback(function(w){p(w.type,CT(w),w.target,f(w,t.lockRef.current))},[]),E=C.useCallback(function(w){p(w.type,dd(w),w.target,f(w,t.lockRef.current))},[]);C.useEffect(function(){return Za.push(l),t.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:E}),document.addEventListener("wheel",m,Qa),document.addEventListener("touchmove",m,Qa),document.addEventListener("touchstart",g,Qa),function(){Za=Za.filter(function(w){return w!==l}),document.removeEventListener("wheel",m,Qa),document.removeEventListener("touchmove",m,Qa),document.removeEventListener("touchstart",g,Qa)}},[]);var S=t.removeScrollBar,T=t.inert;return C.createElement(C.Fragment,null,T?C.createElement(l,{styles:uY(s)}):null,S?C.createElement(tY,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function dY(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const mY=PG(IM,fY);var Yd=C.forwardRef(function(t,e){return C.createElement(Zm,To({},t,{ref:e,sideCar:mY}))});Yd.classNames=Zm.classNames;function $o(t){return Object.keys(t)}function ay(t){return t&&typeof t=="object"&&!Array.isArray(t)}function wv(t,e){const n={...t},r=e;return ay(t)&&ay(e)&&Object.keys(e).forEach(s=>{ay(r[s])&&s in t?n[s]=wv(n[s],r[s]):n[s]=r[s]}),n}function hY(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function pY(t){return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:t.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function gY(t){const e=pY(t);return typeof e=="number"?e:typeof e=="string"?e.includes("calc")||e.includes("var")?e:e.includes("px")?Number(e.replace("px","")):e.includes("rem")?Number(e.replace("rem",""))*16:e.includes("em")?Number(e.replace("em",""))*16:Number(e):NaN}function $T(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}function kM(t,{shouldScale:e=!1}={}){function n(r){if(r===0||r==="0")return`0${t}`;if(typeof r=="number"){const s=`${r/16}${t}`;return e?$T(s):s}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(l=>n(l)).join(",");if(r.includes(" "))return r.split(" ").map(l=>n(l)).join(" ");const s=r.replace("px","");if(!Number.isNaN(Number(s))){const l=`${Number(s)/16}${t}`;return e?$T(l):l}}return r}return n}const ut=kM("rem",{shouldScale:!0}),MT=kM("em");function Jm(t){return Object.keys(t).reduce((e,n)=>(t[n]!==void 0&&(e[n]=t[n]),e),{})}function PM(t){if(typeof t=="number")return!0;if(typeof t=="string"){if(t.startsWith("calc(")||t.startsWith("var(")||t.includes(" ")&&t.trim()!=="")return!0;const e=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return t.trim().split(/\s+/).every(r=>e.test(r))}return!1}function yY(t){return Array.isArray(t)||t===null?!1:typeof t=="object"?t.type!==C.Fragment:!1}function Ll(t){const e=C.createContext(null);return[({children:s,value:l})=>x.jsx(e.Provider,{value:l,children:s}),()=>{const s=C.useContext(e);if(s===null)throw new Error(t);return s}]}function Tv(t=null){const e=C.createContext(t);return[({children:s,value:l})=>x.jsx(e.Provider,{value:l,children:s}),()=>C.useContext(e)]}const bY={app:100,modal:200,popover:300,overlay:400,max:9999};function wr(t){return bY[t]}function ln(t,e="size",n=!0){if(t!==void 0)return PM(t)?n?ut(t):t:`var(--${e}-${t})`}function Cv(t){return ln(t,"mantine-spacing")}function Tr(t){return t===void 0?"var(--mantine-radius-default)":ln(t,"mantine-radius")}function ar(t){return ln(t,"mantine-font-size")}function vY(t){return ln(t,"mantine-line-height",!1)}function HM(t){if(t)return ln(t,"mantine-shadow",!1)}function FM(t,e,n){return e===void 0&&n===void 0?t:e!==void 0&&n===void 0?Math.max(t,e):Math.min(e===void 0&&n!==void 0?t:Math.max(t,e),n)}function rs(t="mantine-"){return`${t}${Math.random().toString(36).slice(2,11)}`}function Fs(t){const e=C.useRef(t);return C.useEffect(()=>{e.current=t}),C.useMemo(()=>((...n)=>e.current?.(...n)),[])}function Wm(t,e){const{delay:n,flushOnUnmount:r,leading:s}=typeof e=="number"?{delay:e,flushOnUnmount:!1,leading:!1}:e,l=Fs(t),c=C.useRef(0),f=C.useMemo(()=>{const m=Object.assign((...p)=>{window.clearTimeout(c.current);const g=m._isFirstCall;m._isFirstCall=!1;function b(){window.clearTimeout(c.current),c.current=0,m._isFirstCall=!0}if(s&&g){l(...p);const T=()=>{b()},w=()=>{c.current!==0&&(b(),l(...p))},$=()=>{b()};m.flush=w,m.cancel=$,c.current=window.setTimeout(T,n);return}if(s&&!g){const T=()=>{c.current!==0&&(b(),l(...p))},w=()=>{b()};m.flush=T,m.cancel=w;const $=()=>{b()};c.current=window.setTimeout($,n);return}const E=()=>{c.current!==0&&(b(),l(...p))},S=()=>{b()};m.flush=E,m.cancel=S,c.current=window.setTimeout(E,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return m},[l,n,s]);return C.useEffect(()=>()=>{r?f.flush():f.cancel()},[f,r]),f}function SY(t={timeout:2e3}){const[e,n]=C.useState(null),[r,s]=C.useState(!1),[l,c]=C.useState(null),f=g=>{window.clearTimeout(l),c(window.setTimeout(()=>s(!1),t.timeout)),s(g)};return{copy:g=>{"clipboard"in navigator?navigator.clipboard.writeText(g).then(()=>f(!0)).catch(b=>n(b)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{s(!1),n(null),window.clearTimeout(l)},error:e,copied:r}}function EY(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch{return t.addListener(e),()=>t.removeListener(e)}}function xY(t,e){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function wY(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,s]=C.useState(n?e:xY(t));return C.useEffect(()=>{try{const l=window.matchMedia(t);return s(l.matches),EY(l,c=>s(c.matches))}catch{return}},[t]),r||!1}const zl=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Bl(t,e){const n=C.useRef(!1);C.useEffect(()=>()=>{n.current=!1},[]),C.useEffect(()=>{if(n.current)return t();n.current=!0},e)}function TY({opened:t,shouldReturnFocus:e=!0}){const n=C.useRef(null),r=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return Bl(()=>{let s=-1;const l=c=>{c.key==="Tab"&&window.clearTimeout(s)};return document.addEventListener("keydown",l),t?n.current=document.activeElement:e&&(s=window.setTimeout(r,10)),()=>{window.clearTimeout(s),document.removeEventListener("keydown",l)}},[t,e]),r}const CY=/input|select|textarea|button|object/,qM="a, input, select, textarea, button, object, [tabindex]";function AY(t){return t.style.display==="none"}function $Y(t){if(t.getAttribute("aria-hidden")||t.getAttribute("hidden")||t.getAttribute("type")==="hidden")return!1;let n=t;for(;n&&!(n===document.body||n.nodeType===11);){if(AY(n))return!1;n=n.parentNode}return!0}function GM(t){let e=t.getAttribute("tabindex");return e===null&&(e=void 0),parseInt(e,10)}function Jy(t){const e=t.nodeName.toLowerCase(),n=!Number.isNaN(GM(t));return(CY.test(e)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||n)&&$Y(t)}function YM(t){const e=GM(t);return(Number.isNaN(e)||e>=0)&&Jy(t)}function MY(t){return Array.from(t.querySelectorAll(qM)).filter(YM)}function RY(t,e){const n=MY(t);if(!n.length){e.preventDefault();return}const r=n[e.shiftKey?0:n.length-1],s=t.getRootNode();let l=r===s.activeElement||t===s.activeElement;const c=s.activeElement;if(c.tagName==="INPUT"&&c.getAttribute("type")==="radio"&&(l=n.filter(g=>g.getAttribute("type")==="radio"&&g.getAttribute("name")===c.getAttribute("name")).includes(r)),!l)return;e.preventDefault();const m=n[e.shiftKey?n.length-1:0];m&&m.focus()}function OY(t=!0){const e=C.useRef(null),n=s=>{let l=s.querySelector("[data-autofocus]");if(!l){const c=Array.from(s.querySelectorAll(qM));l=c.find(YM)||c.find(Jy)||null,!l&&Jy(s)&&(l=s)}l&&l.focus({preventScroll:!0})},r=C.useCallback(s=>{t&&s!==null&&e.current!==s&&(s?(setTimeout(()=>{s.getRootNode()&&n(s)}),e.current=s):e.current=null)},[t]);return C.useEffect(()=>{if(!t)return;e.current&&setTimeout(()=>n(e.current));const s=l=>{l.key==="Tab"&&e.current&&RY(e.current,l)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[t]),r}const NY=t=>(t+1)%1e6;function _Y(){const[,t]=C.useReducer(NY,0);return t}const DY=$n.useId||(()=>{});function jY(){const t=DY();return t?`mantine-${t.replace(/:/g,"")}`:""}function Av(t){const e=jY(),[n,r]=C.useState(e);return zl(()=>{r(rs())},[]),typeof t=="string"?t:typeof window>"u"?e:n}function IY(t,e,n){C.useEffect(()=>(window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)),[t,e])}function Wy(t,e){if(typeof t=="function")return t(e);typeof t=="object"&&t!==null&&"current"in t&&(t.current=e)}function VM(...t){const e=new Map;return n=>{if(t.forEach(r=>{const s=Wy(r,n);s&&e.set(r,s)}),e.size>0)return()=>{t.forEach(r=>{const s=e.get(r);s&&typeof s=="function"?s():Wy(r,null)}),e.clear()}}}function xi(...t){return C.useCallback(VM(...t),t)}function LY({value:t,defaultValue:e,finalValue:n,onChange:r=()=>{}}){const[s,l]=C.useState(e!==void 0?e:n),c=(f,...m)=>{l(f),r?.(f,...m)};return t!==void 0?[t,r,!0]:[s,c,!1]}function th(t,e){return wY("(prefers-reduced-motion: reduce)",t,e)}const zY={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function md(t){const e=t.replace("Key","").toLowerCase();return zY[t]||e}function BY(t){const e=t.toLowerCase().split("+").map(l=>l.trim()),n={alt:e.includes("alt"),ctrl:e.includes("ctrl"),meta:e.includes("meta"),mod:e.includes("mod"),shift:e.includes("shift"),plus:e.includes("[plus]")},r=["alt","ctrl","meta","shift","mod"],s=e.find(l=>!r.includes(l));return{...n,key:s==="[plus]"?"+":s}}function UY(t,e,n){const{alt:r,ctrl:s,meta:l,mod:c,shift:f,key:m}=t,{altKey:p,ctrlKey:g,metaKey:b,shiftKey:E,key:S,code:T}=e;if(r!==p)return!1;if(c){if(!g&&!b)return!1}else if(s!==g||l!==b)return!1;return f!==E?!1:!!(m&&(n?md(T)===md(m):md(S??T)===md(m)))}function kY(t,e){return n=>UY(BY(t),n,e)}function PY(t,e,n=!1){return t.target instanceof HTMLElement?(n||!t.target.isContentEditable)&&!e.includes(t.target.tagName):!0}function HY(t,e=["INPUT","TEXTAREA","SELECT"],n=!1){C.useEffect(()=>{const r=s=>{t.forEach(([l,c,f={preventDefault:!0,usePhysicalKeys:!1}])=>{kY(l,f.usePhysicalKeys)(s)&&PY(s,e,n)&&(f.preventDefault&&s.preventDefault(),c(s))})};return document.documentElement.addEventListener("keydown",r),()=>document.documentElement.removeEventListener("keydown",r)},[t])}function FY(t,e){window.dispatchEvent(new CustomEvent(t,{detail:e}))}function qY(t){function e(r){const s=Object.keys(r).reduce((l,c)=>(l[`${t}:${c}`]=f=>r[c](f.detail),l),{});zl(()=>(Object.keys(s).forEach(l=>{window.removeEventListener(l,s[l]),window.addEventListener(l,s[l])}),()=>Object.keys(s).forEach(l=>{window.removeEventListener(l,s[l])})),[s])}function n(r){return(...s)=>FY(`${t}:${String(r)}`,s[0])}return[e,n]}function KM(t){const e=$n.version;return typeof $n.version!="string"||e.startsWith("18.")?t?.ref:t?.props?.ref}function $v(t){const e=C.Children.toArray(t);return e.length!==1||!yY(e[0])?null:e[0]}function ltt(t){return t}function XM(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=XM(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Yn(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=XM(t))&&(r&&(r+=" "),r+=e);return r}const GY={};function YY(t){const e={};return t.forEach(n=>{Object.entries(n).forEach(([r,s])=>{e[r]?e[r]=Yn(e[r],s):e[r]=s})}),e}function kc({theme:t,classNames:e,props:n,stylesCtx:r}){const l=(Array.isArray(e)?e:[e]).map(c=>typeof c=="function"?c(t,n,r):c||GY);return YY(l)}function ac({theme:t,styles:e,props:n,stylesCtx:r}){return(Array.isArray(e)?e:[e]).reduce((l,c)=>typeof c=="function"?{...l,...c(t,n,r)}:{...l,...c},{})}const QM=C.createContext(null);function bs(){const t=C.useContext(QM);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function VY(){return bs().cssVariablesResolver}function KY(){return bs().classNamesPrefix}function Mv(){return bs().getStyleNonce}function XY(){return bs().withStaticClasses}function QY(){return bs().headless}function ZY(){return bs().stylesTransform?.sx}function JY(){return bs().stylesTransform?.styles}function ZM(){return bs().env||"default"}function WY(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}function tV(t){let e=t.replace("#","");if(e.length===3){const c=e.split("");e=[c[0],c[0],c[1],c[1],c[2],c[2]].join("")}if(e.length===8){const c=parseInt(e.slice(6,8),16)/255;return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16),a:c}}const n=parseInt(e,16),r=n>>16&255,s=n>>8&255,l=n&255;return{r,g:s,b:l,a:1}}function eV(t){const[e,n,r,s]=t.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:e,g:n,b:r,a:s===void 0?1:s}}function nV(t){const e=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=t.match(e);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),s=parseInt(n[2],10)/100,l=parseInt(n[3],10)/100,c=n[5]?parseFloat(n[5]):void 0,f=(1-Math.abs(2*l-1))*s,m=r/60,p=f*(1-Math.abs(m%2-1)),g=l-f/2;let b,E,S;return m>=0&&m<1?(b=f,E=p,S=0):m>=1&&m<2?(b=p,E=f,S=0):m>=2&&m<3?(b=0,E=f,S=p):m>=3&&m<4?(b=0,E=p,S=f):m>=4&&m<5?(b=p,E=0,S=f):(b=f,E=0,S=p),{r:Math.round((b+g)*255),g:Math.round((E+g)*255),b:Math.round((S+g)*255),a:c||1}}function Rv(t){return WY(t)?tV(t):t.startsWith("rgb")?eV(t):t.startsWith("hsl")?nV(t):{r:0,g:0,b:0,a:1}}function hd(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, black ${e*100}%)`;const{r:n,g:r,b:s,a:l}=Rv(t),c=1-e,f=m=>Math.round(m*c);return`rgba(${f(n)}, ${f(r)}, ${f(s)}, ${l})`}function lc(t,e){return typeof t.primaryShade=="number"?t.primaryShade:e==="dark"?t.primaryShade.dark:t.primaryShade.light}function ly(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function rV(t){const e=t.match(/oklch\((.*?)%\s/);return e?parseFloat(e[1]):null}function oV(t){if(t.startsWith("oklch("))return(rV(t)||0)/100;const{r:e,g:n,b:r}=Rv(t),s=e/255,l=n/255,c=r/255,f=ly(s),m=ly(l),p=ly(c);return .2126*f+.7152*m+.0722*p}function Ku(t,e=.179){return t.startsWith("var(")?!1:oV(t)>e}function Ul({color:t,theme:e,colorScheme:n}){if(typeof t!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`);if(t==="bright")return{color:t,value:n==="dark"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:Ku(n==="dark"?e.white:e.black,e.luminanceThreshold),variable:"--mantine-color-bright"};if(t==="dimmed")return{color:t,value:n==="dark"?e.colors.dark[2]:e.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Ku(n==="dark"?e.colors.dark[2]:e.colors.gray[6],e.luminanceThreshold),variable:"--mantine-color-dimmed"};if(t==="white"||t==="black")return{color:t,value:t==="white"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:Ku(t==="white"?e.white:e.black,e.luminanceThreshold),variable:`--mantine-color-${t}`};const[r,s]=t.split("."),l=s?Number(s):void 0,c=r in e.colors;if(c){const f=l!==void 0?e.colors[r][l]:e.colors[r][lc(e,n||"light")];return{color:r,value:f,shade:l,isThemeColor:c,isLight:Ku(f,e.luminanceThreshold),variable:s?`--mantine-color-${r}-${l}`:`--mantine-color-${r}-filled`}}return{color:t,value:t,isThemeColor:c,isLight:Ku(t,e.luminanceThreshold),shade:l,variable:void 0}}function Zs(t,e){const n=Ul({color:t||e.primaryColor,theme:e});return n.variable?`var(${n.variable})`:t}function t0(t,e){const n={from:t?.from||e.defaultGradient.from,to:t?.to||e.defaultGradient.to,deg:t?.deg??e.defaultGradient.deg??0},r=Zs(n.from,e),s=Zs(n.to,e);return`linear-gradient(${n.deg}deg, ${r} 0%, ${s} 100%)`}function Eo(t,e){if(typeof t!="string"||e>1||e<0)return"rgba(0, 0, 0, 1)";if(t.startsWith("var(")){const l=(1-e)*100;return`color-mix(in srgb, ${t}, transparent ${l}%)`}if(t.startsWith("oklch"))return t.includes("/")?t.replace(/\/\s*[\d.]+\s*\)/,`/ ${e})`):t.replace(")",` / ${e})`);const{r:n,g:r,b:s}=Rv(t);return`rgba(${n}, ${r}, ${s}, ${e})`}const Ja=Eo,iV=({color:t,theme:e,variant:n,gradient:r,autoContrast:s})=>{const l=Ul({color:t,theme:e}),c=typeof s=="boolean"?s:e.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const f=c&&l.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return l.isThemeColor?l.shade===void 0?{background:`var(--mantine-color-${t}-filled)`,hover:`var(--mantine-color-${t}-filled-hover)`,color:f,border:`${ut(1)} solid transparent`}:{background:`var(--mantine-color-${l.color}-${l.shade})`,hover:`var(--mantine-color-${l.color}-${l.shade===9?8:l.shade+1})`,color:f,border:`${ut(1)} solid transparent`}:{background:t,hover:hd(t,.1),color:f,border:`${ut(1)} solid transparent`}}if(n==="light"){if(l.isThemeColor){if(l.shade===void 0)return{background:`var(--mantine-color-${t}-light)`,hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${ut(1)} solid transparent`};const f=e.colors[l.color][l.shade];return{background:Eo(f,.1),hover:Eo(f,.12),color:`var(--mantine-color-${l.color}-${Math.min(l.shade,6)})`,border:`${ut(1)} solid transparent`}}return{background:Eo(t,.1),hover:Eo(t,.12),color:t,border:`${ut(1)} solid transparent`}}if(n==="outline")return l.isThemeColor?l.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${t}-outline-hover)`,color:`var(--mantine-color-${t}-outline)`,border:`${ut(1)} solid var(--mantine-color-${t}-outline)`}:{background:"transparent",hover:Eo(e.colors[l.color][l.shade],.05),color:`var(--mantine-color-${l.color}-${l.shade})`,border:`${ut(1)} solid var(--mantine-color-${l.color}-${l.shade})`}:{background:"transparent",hover:Eo(t,.05),color:t,border:`${ut(1)} solid ${t}`};if(n==="subtle"){if(l.isThemeColor){if(l.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${ut(1)} solid transparent`};const f=e.colors[l.color][l.shade];return{background:"transparent",hover:Eo(f,.12),color:`var(--mantine-color-${l.color}-${Math.min(l.shade,6)})`,border:`${ut(1)} solid transparent`}}return{background:"transparent",hover:Eo(t,.12),color:t,border:`${ut(1)} solid transparent`}}return n==="transparent"?l.isThemeColor?l.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${t}-light-color)`,border:`${ut(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${l.color}-${Math.min(l.shade,6)})`,border:`${ut(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:t,border:`${ut(1)} solid transparent`}:n==="white"?l.isThemeColor?l.shade===void 0?{background:"var(--mantine-color-white)",hover:hd(e.white,.01),color:`var(--mantine-color-${t}-filled)`,border:`${ut(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:hd(e.white,.01),color:`var(--mantine-color-${l.color}-${l.shade})`,border:`${ut(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:hd(e.white,.01),color:t,border:`${ut(1)} solid transparent`}:n==="gradient"?{background:t0(r,e),hover:t0(r,e),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${ut(1)} solid var(--mantine-color-default-border)`}:{}},sV={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},RT="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",Ov={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:sV,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:iV,autoContrast:!1,luminanceThreshold:.3,fontFamily:RT,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:RT,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:ut(34),lineHeight:"1.3"},h2:{fontSize:ut(26),lineHeight:"1.35"},h3:{fontSize:ut(22),lineHeight:"1.4"},h4:{fontSize:ut(18),lineHeight:"1.45"},h5:{fontSize:ut(16),lineHeight:"1.5"},h6:{fontSize:ut(14),lineHeight:"1.5"}}},fontSizes:{xs:ut(12),sm:ut(14),md:ut(16),lg:ut(18),xl:ut(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:ut(2),sm:ut(4),md:ut(8),lg:ut(16),xl:ut(32)},spacing:{xs:ut(10),sm:ut(12),md:ut(16),lg:ut(20),xl:ut(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), 0 ${ut(1)} ${ut(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ut(10)} ${ut(15)} ${ut(-5)}, rgba(0, 0, 0, 0.04) 0 ${ut(7)} ${ut(7)} ${ut(-5)}`,md:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ut(20)} ${ut(25)} ${ut(-5)}, rgba(0, 0, 0, 0.04) 0 ${ut(10)} ${ut(10)} ${ut(-5)}`,lg:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ut(28)} ${ut(23)} ${ut(-7)}, rgba(0, 0, 0, 0.04) 0 ${ut(12)} ${ut(12)} ${ut(-7)}`,xl:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ut(36)} ${ut(28)} ${ut(-7)}, rgba(0, 0, 0, 0.04) 0 ${ut(17)} ${ut(17)} ${ut(-7)}`},other:{},components:{}};function OT(t){return t==="auto"||t==="dark"||t==="light"}function aV({key:t="mantine-color-scheme-value"}={}){let e;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(t);return OT(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(t,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{e=r=>{r.storageArea===window.localStorage&&r.key===t&&OT(r.newValue)&&n(r.newValue)},window.addEventListener("storage",e)},unsubscribe:()=>{window.removeEventListener("storage",e)},clear:()=>{window.localStorage.removeItem(t)}}}const lV="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",NT="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function uy(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}function _T(t){if(!(t.primaryColor in t.colors))throw new Error(lV);if(typeof t.primaryShade=="object"&&(!uy(t.primaryShade.dark)||!uy(t.primaryShade.light)))throw new Error(NT);if(typeof t.primaryShade=="number"&&!uy(t.primaryShade))throw new Error(NT)}function uV(t,e){if(!e)return _T(t),t;const n=wv(t,e);return e.fontFamily&&!e.headings?.fontFamily&&(n.headings.fontFamily=e.fontFamily),_T(n),n}const Nv=C.createContext(null),cV=()=>C.useContext(Nv)||Ov;function Kn(){const t=C.useContext(Nv);if(!t)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return t}function JM({theme:t,children:e,inherit:n=!0}){const r=cV(),s=C.useMemo(()=>uV(n?r:Ov,t),[t,r,n]);return x.jsx(Nv.Provider,{value:s,children:e})}JM.displayName="@mantine/core/MantineThemeProvider";function fV(){const t=Kn(),e=Mv(),n=$o(t.breakpoints).reduce((r,s)=>{const l=t.breakpoints[s].includes("px"),c=gY(t.breakpoints[s]),f=l?`${c-.1}px`:MT(c-.1),m=l?`${c}px`:MT(c);return`${r}@media (max-width: ${f}) {.mantine-visible-from-${s} {display: none !important;}}@media (min-width: ${m}) {.mantine-hidden-from-${s} {display: none !important;}}`},"");return x.jsx("style",{"data-mantine-styles":"classes",nonce:e?.(),dangerouslySetInnerHTML:{__html:n}})}function cy(t){return Object.entries(t).map(([e,n])=>`${e}: ${n};`).join("")}function WM(t,e){const n=e?[e]:[":root",":host"],r=cy(t.variables),s=r?`${n.join(", ")}{${r}}`:"",l=cy(t.dark),c=cy(t.light),f=g=>n.map(b=>b===":host"?`${b}([data-mantine-color-scheme="${g}"])`:`${b}[data-mantine-color-scheme="${g}"]`).join(", "),m=l?`${f("dark")}{${l}}`:"",p=c?`${f("light")}{${c}}`:"";return`${s}
|
|
67
|
+
|
|
68
|
+
${m}
|
|
69
|
+
|
|
70
|
+
${p}`}function tR({color:t,theme:e,autoContrast:n}){return(typeof n=="boolean"?n:e.autoContrast)&&Ul({color:t||e.primaryColor,theme:e}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function DT(t,e){return tR({color:t.colors[t.primaryColor][lc(t,e)],theme:t,autoContrast:null})}function pd({theme:t,color:e,colorScheme:n,name:r=e,withColorValues:s=!0}){if(!t.colors[e])return{};if(n==="light"){const f=lc(t,"light"),m={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${f})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${f===9?8:f+1})`,[`--mantine-color-${r}-light`]:Ja(t.colors[e][f],.1),[`--mantine-color-${r}-light-hover`]:Ja(t.colors[e][f],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${f})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${f})`,[`--mantine-color-${r}-outline-hover`]:Ja(t.colors[e][f],.05)};return s?{[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9],...m}:m}const l=lc(t,"dark"),c={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${l})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${l===9?8:l+1})`,[`--mantine-color-${r}-light`]:Ja(t.colors[e][Math.max(0,l-2)],.15),[`--mantine-color-${r}-light-hover`]:Ja(t.colors[e][Math.max(0,l-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(l-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(l-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Ja(t.colors[e][Math.max(l-4,0)],.05)};return s?{[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9],...c}:c}function dV(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}function Wa(t,e,n){$o(e).forEach(r=>Object.assign(t,{[`--mantine-${n}-${r}`]:e[r]}))}const eR=t=>{const e=lc(t,"light"),n=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:ut(t.defaultRadius),r={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":t.scale.toString(),"--mantine-cursor-type":t.cursorType,"--mantine-webkit-font-smoothing":t.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":t.fontSmoothing?"grayscale":"unset","--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-line-height":t.lineHeights.md,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":t.headings.fontWeight,"--mantine-heading-text-wrap":t.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${t.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${t.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${t.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${t.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${t.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":DT(t,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":t.black,"--mantine-color-body":t.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-${e})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":DT(t,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};Wa(r.variables,t.breakpoints,"breakpoint"),Wa(r.variables,t.spacing,"spacing"),Wa(r.variables,t.fontSizes,"font-size"),Wa(r.variables,t.lineHeights,"line-height"),Wa(r.variables,t.shadows,"shadow"),Wa(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((l,c)=>{r.variables[`--mantine-primary-color-${c}`]=`var(--mantine-color-${t.primaryColor}-${c})`}),$o(t.colors).forEach(l=>{const c=t.colors[l];if(dV(c)){Object.assign(r.light,pd({theme:t,name:c.name,color:c.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,pd({theme:t,name:c.name,color:c.dark,colorScheme:"dark",withColorValues:!0}));return}c.forEach((f,m)=>{r.variables[`--mantine-color-${l}-${m}`]=f}),Object.assign(r.light,pd({theme:t,color:l,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,pd({theme:t,color:l,colorScheme:"dark",withColorValues:!1}))});const s=t.headings.sizes;return $o(s).forEach(l=>{r.variables[`--mantine-${l}-font-size`]=s[l].fontSize,r.variables[`--mantine-${l}-line-height`]=s[l].lineHeight,r.variables[`--mantine-${l}-font-weight`]=s[l].fontWeight||t.headings.fontWeight}),r};function mV({theme:t,generator:e}){const n=eR(t),r=e?.(t);return r?wv(n,r):n}const fy=eR(Ov);function hV(t){const e={variables:{},light:{},dark:{}};return $o(t.variables).forEach(n=>{fy.variables[n]!==t.variables[n]&&(e.variables[n]=t.variables[n])}),$o(t.light).forEach(n=>{fy.light[n]!==t.light[n]&&(e.light[n]=t.light[n])}),$o(t.dark).forEach(n=>{fy.dark[n]!==t.dark[n]&&(e.dark[n]=t.dark[n])}),e}function pV(t){return WM({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}function nR({cssVariablesSelector:t,deduplicateCssVariables:e}){const n=Kn(),r=Mv(),s=VY(),l=mV({theme:n,generator:s}),c=(t===void 0||t===":root"||t===":host")&&e,f=c?hV(l):l,m=WM(f,t);return m?x.jsx("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${m}${c?"":pV(t)}`}}):null}nR.displayName="@mantine/CssVariables";function tl(t,e){const n=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,r=t!=="auto"?t:n?"dark":"light";e()?.setAttribute("data-mantine-color-scheme",r)}function gV({manager:t,defaultColorScheme:e,getRootElement:n,forceColorScheme:r}){const s=C.useRef(null),[l,c]=C.useState(()=>t.get(e)),f=r||l,m=C.useCallback(g=>{r||(tl(g,n),c(g),t.set(g))},[t.set,f,r]),p=C.useCallback(()=>{c(e),tl(e,n),t.clear()},[t.clear,e]);return C.useEffect(()=>(t.subscribe(m),t.unsubscribe),[t.subscribe,t.unsubscribe]),zl(()=>{tl(t.get(e),n)},[]),C.useEffect(()=>{if(r)return tl(r,n),()=>{};r===void 0&&tl(l,n),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const g=b=>{l==="auto"&&tl(b.matches?"dark":"light",n)};return s.current?.addEventListener("change",g),()=>s.current?.removeEventListener("change",g)},[l,r]),{colorScheme:f,setColorScheme:m,clearColorScheme:p}}function yV({respectReducedMotion:t,getRootElement:e}){zl(()=>{t&&e()?.setAttribute("data-respect-reduced-motion","true")},[t])}function rR({theme:t,children:e,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:s=!0,deduplicateCssVariables:l=!0,withCssVariables:c=!0,cssVariablesSelector:f,classNamesPrefix:m="mantine",colorSchemeManager:p=aV(),defaultColorScheme:g="light",getRootElement:b=()=>document.documentElement,cssVariablesResolver:E,forceColorScheme:S,stylesTransform:T,env:w}){const{colorScheme:$,setColorScheme:_,clearColorScheme:L}=gV({defaultColorScheme:g,forceColorScheme:S,manager:p,getRootElement:b});return yV({respectReducedMotion:t?.respectReducedMotion||!1,getRootElement:b}),x.jsx(QM.Provider,{value:{colorScheme:$,setColorScheme:_,clearColorScheme:L,getRootElement:b,classNamesPrefix:m,getStyleNonce:n,cssVariablesResolver:E,cssVariablesSelector:f??":root",withStaticClasses:r,stylesTransform:T,env:w},children:x.jsxs(JM,{theme:t,children:[c&&x.jsx(nR,{cssVariablesSelector:f,deduplicateCssVariables:l}),s&&x.jsx(fV,{}),e]})})}rR.displayName="@mantine/core/MantineProvider";function oR({classNames:t,styles:e,props:n,stylesCtx:r}){const s=Kn();return{resolvedClassNames:kc({theme:s,classNames:t,props:n,stylesCtx:r||void 0}),resolvedStyles:ac({theme:s,styles:e,props:n,stylesCtx:r||void 0})}}const bV={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function vV({theme:t,options:e,unstyled:n}){return Yn(e?.focusable&&!n&&(t.focusClassName||bV[t.focusRing]),e?.active&&!n&&t.activeClassName)}function SV({selector:t,stylesCtx:e,options:n,props:r,theme:s}){return kc({theme:s,classNames:n?.classNames,props:n?.props||r,stylesCtx:e})[t]}function jT({selector:t,stylesCtx:e,theme:n,classNames:r,props:s}){return kc({theme:n,classNames:r,props:s,stylesCtx:e})[t]}function EV({rootSelector:t,selector:e,className:n}){return t===e?n:void 0}function xV({selector:t,classes:e,unstyled:n}){return n?void 0:e[t]}function wV({themeName:t,classNamesPrefix:e,selector:n,withStaticClass:r}){return r===!1?[]:t.map(s=>`${e}-${s}-${n}`)}function TV({themeName:t,theme:e,selector:n,props:r,stylesCtx:s}){return t.map(l=>kc({theme:e,classNames:e.components[l]?.classNames,props:r,stylesCtx:s})?.[n])}function CV({options:t,classes:e,selector:n,unstyled:r}){return t?.variant&&!r?e[`${n}--${t.variant}`]:void 0}function AV({theme:t,options:e,themeName:n,selector:r,classNamesPrefix:s,classNames:l,classes:c,unstyled:f,className:m,rootSelector:p,props:g,stylesCtx:b,withStaticClasses:E,headless:S,transformedStyles:T}){return Yn(vV({theme:t,options:e,unstyled:f||S}),TV({theme:t,themeName:n,selector:r,props:g,stylesCtx:b}),CV({options:e,classes:c,selector:r,unstyled:f}),jT({selector:r,stylesCtx:b,theme:t,classNames:l,props:g}),jT({selector:r,stylesCtx:b,theme:t,classNames:T,props:g}),SV({selector:r,stylesCtx:b,options:e,props:g,theme:t}),EV({rootSelector:p,selector:r,className:m}),xV({selector:r,classes:c,unstyled:f||S}),E&&!S&&wV({themeName:n,classNamesPrefix:s,selector:r,withStaticClass:e?.withStaticClass}),e?.className)}function $V({theme:t,themeName:e,props:n,stylesCtx:r,selector:s}){return e.map(l=>ac({theme:t,styles:t.components[l]?.styles,props:n,stylesCtx:r})[s]).reduce((l,c)=>({...l,...c}),{})}function e0({style:t,theme:e}){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...e0({style:r,theme:e})}),{}):typeof t=="function"?t(e):t??{}}function MV(t){return t.reduce((e,n)=>(n&&Object.keys(n).forEach(r=>{e[r]={...e[r],...Jm(n[r])}}),e),{})}function RV({vars:t,varsResolver:e,theme:n,props:r,stylesCtx:s,selector:l,themeName:c,headless:f}){return MV([f?{}:e?.(n,r,s),...c.map(m=>n.components?.[m]?.vars?.(n,r,s)),t?.(n,r,s)])?.[l]}function OV({theme:t,themeName:e,selector:n,options:r,props:s,stylesCtx:l,rootSelector:c,styles:f,style:m,vars:p,varsResolver:g,headless:b,withStylesTransform:E}){return{...!E&&$V({theme:t,themeName:e,props:s,stylesCtx:l,selector:n}),...!E&&ac({theme:t,styles:f,props:s,stylesCtx:l})[n],...!E&&ac({theme:t,styles:r?.styles,props:r?.props||s,stylesCtx:l})[n],...RV({theme:t,props:s,stylesCtx:l,vars:p,varsResolver:g,selector:n,themeName:e,headless:b}),...c===n?e0({style:m,theme:t}):null,...e0({style:r?.style,theme:t})}}function NV({props:t,stylesCtx:e,themeName:n}){const r=Kn(),s=JY()?.();return{getTransformedStyles:c=>s?[...c.map(m=>s(m,{props:t,theme:r,ctx:e})),...n.map(m=>s(r.components[m]?.styles,{props:t,theme:r,ctx:e}))].filter(Boolean):[],withStylesTransform:!!s}}function oe({name:t,classes:e,props:n,stylesCtx:r,className:s,style:l,rootSelector:c="root",unstyled:f,classNames:m,styles:p,vars:g,varsResolver:b,attributes:E}){const S=Kn(),T=KY(),w=XY(),$=QY(),_=(Array.isArray(t)?t:[t]).filter(P=>P),{withStylesTransform:L,getTransformedStyles:j}=NV({props:n,stylesCtx:r,themeName:_});return(P,H)=>({className:AV({theme:S,options:H,themeName:_,selector:P,classNamesPrefix:T,classNames:m,classes:e,unstyled:f,className:s,rootSelector:c,props:n,stylesCtx:r,withStaticClasses:w,headless:$,transformedStyles:j([H?.styles,p])}),style:OV({theme:S,themeName:_,selector:P,options:H,props:n,stylesCtx:r,rootSelector:c,styles:p,style:l,vars:g,varsResolver:b,headless:$,withStylesTransform:L}),...E?.[P]})}function _V(t,e){return typeof t=="boolean"?t:e.autoContrast}const DV=({defaultColorScheme:t,localStorageKey:e,forceColorScheme:n})=>n?`document.documentElement.setAttribute("data-mantine-color-scheme", '${n}');`:`try {
|
|
71
|
+
var _colorScheme = window.localStorage.getItem("${e}");
|
|
72
|
+
var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${t}";
|
|
73
|
+
var computedColorScheme = colorScheme !== "auto" ? colorScheme : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
74
|
+
document.documentElement.setAttribute("data-mantine-color-scheme", computedColorScheme);
|
|
75
|
+
} catch (e) {}
|
|
76
|
+
`;function jV({defaultColorScheme:t="light",localStorageKey:e="mantine-color-scheme-value",forceColorScheme:n,...r}){const s=["light","dark","auto"].includes(t)?t:"light";return x.jsx("script",{...r,"data-mantine-script":!0,dangerouslySetInnerHTML:{__html:DV({defaultColorScheme:s,localStorageKey:e,forceColorScheme:n})}})}function bt(t,e,n){const r=Kn(),s=r.components[t]?.defaultProps,l=typeof s=="function"?s(r):s;return{...e,...l,...Jm(n)}}function dy(t){return $o(t).reduce((e,n)=>t[n]!==void 0?`${e}${hY(n)}:${t[n]};`:e,"").trim()}function IV({selector:t,styles:e,media:n,container:r}){const s=e?dy(e):"",l=Array.isArray(n)?n.map(f=>`@media${f.query}{${t}{${dy(f.styles)}}}`):[],c=Array.isArray(r)?r.map(f=>`@container ${f.query}{${t}{${dy(f.styles)}}}`):[];return`${s?`${t}{${s}}`:""}${l.join("")}${c.join("")}`.trim()}function iR(t){const e=Mv();return x.jsx("style",{"data-mantine-styles":"inline",nonce:e?.(),dangerouslySetInnerHTML:{__html:IV(t)}})}function _v(t){const{m:e,mx:n,my:r,mt:s,mb:l,ml:c,mr:f,me:m,ms:p,p:g,px:b,py:E,pt:S,pb:T,pl:w,pr:$,pe:_,ps:L,bd:j,bdrs:P,bg:H,c:F,opacity:z,ff:k,fz:W,fw:et,lts:it,ta:ct,lh:dt,fs:Y,tt:Z,td:O,w:B,miw:D,maw:tt,h:nt,mih:N,mah:G,bgsz:ot,bgp:ft,bgr:mt,bga:pt,pos:Tt,top:Jt,left:Ot,bottom:ie,right:We,inset:cn,display:Zt,flex:on,hiddenFrom:go,visibleFrom:$i,lightHidden:Jl,darkHidden:vs,sx:Xn,...Ss}=t;return{styleProps:Jm({m:e,mx:n,my:r,mt:s,mb:l,ml:c,mr:f,me:m,ms:p,p:g,px:b,py:E,pt:S,pb:T,pl:w,pr:$,pe:_,ps:L,bd:j,bg:H,c:F,opacity:z,ff:k,fz:W,fw:et,lts:it,ta:ct,lh:dt,fs:Y,tt:Z,td:O,w:B,miw:D,maw:tt,h:nt,mih:N,mah:G,bgsz:ot,bgp:ft,bgr:mt,bga:pt,pos:Tt,top:Jt,left:Ot,bottom:ie,right:We,inset:cn,display:Zt,flex:on,bdrs:P,hiddenFrom:go,visibleFrom:$i,lightHidden:Jl,darkHidden:vs,sx:Xn}),rest:Ss}}const LV={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function Dv(t,e){const n=Ul({color:t,theme:e});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function zV(t,e){const n=Ul({color:t,theme:e});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Dv(t,e)}function BV(t,e){if(typeof t=="number")return ut(t);if(typeof t=="string"){const[n,r,...s]=t.split(" ").filter(c=>c.trim()!=="");let l=`${ut(n)}`;return r&&(l+=` ${r}`),s.length>0&&(l+=` ${Dv(s.join(" "),e)}`),l.trim()}return t}const IT={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function UV(t){return typeof t=="string"&&t in IT?IT[t]:t}const kV=["h1","h2","h3","h4","h5","h6"];function PV(t,e){return typeof t=="string"&&t in e.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&kV.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?ut(t):t}function HV(t){return t}const FV=["h1","h2","h3","h4","h5","h6"];function qV(t,e){return typeof t=="string"&&t in e.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&FV.includes(t)?`var(--mantine-${t}-line-height)`:t}function GV(t,e){return typeof t=="string"&&t in e.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?ut(t):t}function YV(t){return typeof t=="number"?ut(t):t}function VV(t,e){if(typeof t=="number")return ut(t);if(typeof t=="string"){const n=t.replace("-","");if(!(n in e.spacing))return ut(t);const r=`--mantine-spacing-${n}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t}const my={color:Dv,textColor:zV,fontSize:PV,spacing:VV,radius:GV,identity:HV,size:YV,lineHeight:qV,fontFamily:UV,border:BV};function LT(t){return t.replace("(min-width: ","").replace("em)","")}function KV({media:t,...e}){const r=Object.keys(t).sort((s,l)=>Number(LT(s))-Number(LT(l))).map(s=>({query:s,styles:t[s]}));return{...e,media:r}}function XV(t){if(typeof t!="object"||t===null)return!1;const e=Object.keys(t);return!(e.length===1&&e[0]==="base")}function QV(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function ZV(t){return typeof t=="object"&&t!==null?$o(t).filter(e=>e!=="base"):[]}function JV(t,e){return typeof t=="object"&&t!==null&&e in t?t[e]:t}function sR({styleProps:t,data:e,theme:n}){return KV($o(t).reduce((r,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return r;const l=e[s],c=Array.isArray(l.property)?l.property:[l.property],f=QV(t[s]);if(!XV(t[s]))return c.forEach(p=>{r.inlineStyles[p]=my[l.type](f,n)}),r;r.hasResponsiveStyles=!0;const m=ZV(t[s]);return c.forEach(p=>{f!=null&&(r.styles[p]=my[l.type](f,n)),m.forEach(g=>{const b=`(min-width: ${n.breakpoints[g]})`;r.media[b]={...r.media[b],[p]:my[l.type](JV(t[s],g),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function aR(){return`__m__-${C.useId().replace(/[:«»]/g,"")}`}function jv(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...jv(r,e)}),{}):typeof t=="function"?t(e):t??{}}function utt(t){return t}function lR(t){return t.startsWith("data-")?t:`data-${t}`}function WV(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r===void 0||r===""||r===!1||r===null||(e[lR(n)]=t[n]),e},{})}function uR(t){return t?typeof t=="string"?{[lR(t)]:!0}:Array.isArray(t)?[...t].reduce((e,n)=>({...e,...uR(n)}),{}):WV(t):null}function n0(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...n0(r,e)}),{}):typeof t=="function"?t(e):t??{}}function tK({theme:t,style:e,vars:n,styleProps:r}){const s=n0(e,t),l=n0(n,t);return{...s,...l,...r}}const cR=C.forwardRef(({component:t,style:e,__vars:n,className:r,variant:s,mod:l,size:c,hiddenFrom:f,visibleFrom:m,lightHidden:p,darkHidden:g,renderRoot:b,__size:E,...S},T)=>{const w=Kn(),$=t||"div",{styleProps:_,rest:L}=_v(S),P=ZY()?.()?.(_.sx),H=aR(),F=sR({styleProps:_,theme:w,data:LV}),z={ref:T,style:tK({theme:w,style:e,vars:n,styleProps:F.inlineStyles}),className:Yn(r,P,{[H]:F.hasResponsiveStyles,"mantine-light-hidden":p,"mantine-dark-hidden":g,[`mantine-hidden-from-${f}`]:f,[`mantine-visible-from-${m}`]:m}),"data-variant":s,"data-size":PM(c)?void 0:c||void 0,size:E,...uR(l),...L};return x.jsxs(x.Fragment,{children:[F.hasResponsiveStyles&&x.jsx(iR,{selector:`.${H}`,styles:F.styles,media:F.media}),typeof b=="function"?b(z):x.jsx($,{...z})]})});cR.displayName="@mantine/core/Box";const ht=cR;function fR(t){return t}function ctt(t){const e=t;return n=>{const r=C.forwardRef((s,l)=>x.jsx(e,{...n,...s,ref:l}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r}}function It(t){const e=C.forwardRef(t);return e.extend=fR,e.withProps=n=>{const r=C.forwardRef((s,l)=>x.jsx(e,{...n,...s,ref:l}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e}function po(t){const e=C.forwardRef(t);return e.withProps=n=>{const r=C.forwardRef((s,l)=>x.jsx(e,{...n,...s,ref:l}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e.extend=fR,e}const eK=C.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Iv(){return C.useContext(eK)}var eh=_M();const Wu=ys(eh);function nK(t){if(!t||typeof t=="string")return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function hy(t){return t?.current?t.current.scrollHeight:"auto"}const Xu=typeof window<"u"&&window.requestAnimationFrame,zT=0,rK=t=>({height:0,overflow:"hidden",...t?{}:{display:"none"}});function oK({transitionDuration:t,transitionTimingFunction:e="ease",onTransitionEnd:n=()=>{},opened:r,keepMounted:s=!1}){const l=C.useRef(null),c=rK(s),[f,m]=C.useState(r?{}:c),p=T=>{eh.flushSync(()=>m(T))},g=T=>{p(w=>({...w,...T}))};function b(T){const w=t||nK(T);return{transition:`height ${w}ms ${e}, opacity ${w}ms ${e}`}}Bl(()=>{typeof Xu=="function"&&Xu(r?()=>{g({willChange:"height",display:"block",overflow:"hidden"}),Xu(()=>{const T=hy(l);g({...b(T),height:T})})}:()=>{const T=hy(l);g({...b(T),willChange:"height",height:T}),Xu(()=>g({height:zT,overflow:"hidden"}))})},[r]);const E=T=>{if(!(T.target!==l.current||T.propertyName!=="height"))if(r){const w=hy(l);w===f.height?p({}):g({height:w}),n()}else f.height===zT&&(p(c),n())};function S({style:T={},refKey:w="ref",...$}={}){const _=$[w],L={"aria-hidden":!r,...$,[w]:VM(l,_),onTransitionEnd:E,style:{boxSizing:"border-box",...T,...f}};return $n.version.startsWith("18")?r||(L.inert=""):L.inert=!r,L}return S}const iK={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},dR=It((t,e)=>{const{children:n,in:r,transitionDuration:s,transitionTimingFunction:l,style:c,onTransitionEnd:f,animateOpacity:m,keepMounted:p,...g}=bt("Collapse",iK,t),b=Kn(),E=th(),T=(b.respectReducedMotion?E:!1)?0:s,w=oK({opened:r,transitionDuration:T,transitionTimingFunction:l,onTransitionEnd:f,keepMounted:p});return T===0?r?x.jsx(ht,{...g,children:n}):null:x.jsx(ht,{...w({style:{opacity:r||!m?1:0,transition:m?`opacity ${T}ms ${l}`:"none",...jv(c,b)},ref:e,...g}),children:n})});dR.displayName="@mantine/core/Collapse";function nh(){return typeof window<"u"}function kl(t){return mR(t)?(t.nodeName||"").toLowerCase():"#document"}function Fn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Bo(t){var e;return(e=(mR(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function mR(t){return nh()?t instanceof Node||t instanceof Fn(t).Node:!1}function Ce(t){return nh()?t instanceof Element||t instanceof Fn(t).Element:!1}function hr(t){return nh()?t instanceof HTMLElement||t instanceof Fn(t).HTMLElement:!1}function r0(t){return!nh()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Fn(t).ShadowRoot}const sK=new Set(["inline","contents"]);function Pc(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=qr(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!sK.has(s)}const aK=new Set(["table","td","th"]);function lK(t){return aK.has(kl(t))}const uK=[":popover-open",":modal"];function rh(t){return uK.some(e=>{try{return t.matches(e)}catch{return!1}})}const cK=["transform","translate","scale","rotate","perspective"],fK=["transform","translate","scale","rotate","perspective","filter"],dK=["paint","layout","strict","content"];function Lv(t){const e=oh(),n=Ce(t)?qr(t):t;return cK.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||fK.some(r=>(n.willChange||"").includes(r))||dK.some(r=>(n.contain||"").includes(r))}function mK(t){let e=fi(t);for(;hr(e)&&!ii(e);){if(Lv(e))return e;if(rh(e))return null;e=fi(e)}return null}function oh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hK=new Set(["html","body","#document"]);function ii(t){return hK.has(kl(t))}function qr(t){return Fn(t).getComputedStyle(t)}function ih(t){return Ce(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function fi(t){if(kl(t)==="html")return t;const e=t.assignedSlot||t.parentNode||r0(t)&&t.host||Bo(t);return r0(e)?e.host:e}function hR(t){const e=fi(t);return ii(e)?t.ownerDocument?t.ownerDocument.body:t.body:hr(e)&&Pc(e)?e:hR(e)}function si(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=hR(t),l=s===((r=t.ownerDocument)==null?void 0:r.body),c=Fn(s);if(l){const f=o0(c);return e.concat(c,c.visualViewport||[],Pc(s)?s:[],f&&n?si(f):[])}return e.concat(s,si(s,[],n))}function o0(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}const pK=["top","right","bottom","left"],so=Math.min,Sn=Math.max,Vd=Math.round,gd=Math.floor,Mo=t=>({x:t,y:t}),gK={left:"right",right:"left",bottom:"top",top:"bottom"},yK={start:"end",end:"start"};function i0(t,e,n){return Sn(t,so(e,n))}function _o(t,e){return typeof t=="function"?t(e):t}function ao(t){return t.split("-")[0]}function Pl(t){return t.split("-")[1]}function zv(t){return t==="x"?"y":"x"}function Bv(t){return t==="y"?"height":"width"}const bK=new Set(["top","bottom"]);function no(t){return bK.has(ao(t))?"y":"x"}function Uv(t){return zv(no(t))}function vK(t,e,n){n===void 0&&(n=!1);const r=Pl(t),s=Uv(t),l=Bv(s);let c=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(c=Kd(c)),[c,Kd(c)]}function SK(t){const e=Kd(t);return[s0(t),e,s0(e)]}function s0(t){return t.replace(/start|end/g,e=>yK[e])}const BT=["left","right"],UT=["right","left"],EK=["top","bottom"],xK=["bottom","top"];function wK(t,e,n){switch(t){case"top":case"bottom":return n?e?UT:BT:e?BT:UT;case"left":case"right":return e?EK:xK;default:return[]}}function TK(t,e,n,r){const s=Pl(t);let l=wK(ao(t),n==="start",r);return s&&(l=l.map(c=>c+"-"+s),e&&(l=l.concat(l.map(s0)))),l}function Kd(t){return t.replace(/left|right|bottom|top/g,e=>gK[e])}function CK(t){return{top:0,right:0,bottom:0,left:0,...t}}function kv(t){return typeof t!="number"?CK(t):{top:t,right:t,bottom:t,left:t}}function hl(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function AK(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function $K(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}function MK(){return/apple/i.test(navigator.vendor)}function RK(){return AK().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function OK(){return $K().includes("jsdom/")}const kT="data-floating-ui-focusable",NK="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function PT(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function uc(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&r0(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function rl(t){return"composedPath"in t?t.composedPath()[0]:t.target}function py(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function _K(t){return t.matches("html,body")}function qs(t){return t?.ownerDocument||document}function DK(t){return hr(t)&&t.matches(NK)}function jK(t){if(!t||OK())return!0;try{return t.matches(":focus-visible")}catch{return!0}}function IK(t){return t?t.hasAttribute(kT)?t:t.querySelector("["+kT+"]")||t:null}function _d(t,e,n){return n===void 0&&(n=!0),t.filter(s=>{var l;return s.parentId===e&&(!n||((l=s.context)==null?void 0:l.open))}).flatMap(s=>[s,..._d(t,s.id,n)])}function LK(t){return"nativeEvent"in t}function a0(t,e){const n=["mouse","pen"];return n.push("",void 0),n.includes(t)}var zK=typeof document<"u",BK=function(){},Ro=zK?C.useLayoutEffect:BK;const UK={...oM};function yd(t){const e=C.useRef(t);return Ro(()=>{e.current=t}),e}const kK=UK.useInsertionEffect,PK=kK||(t=>t());function Co(t){const e=C.useRef(()=>{});return PK(()=>{e.current=t}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return e.current==null?void 0:e.current(...r)},[])}function HT(t,e,n){let{reference:r,floating:s}=t;const l=no(e),c=Uv(e),f=Bv(c),m=ao(e),p=l==="y",g=r.x+r.width/2-s.width/2,b=r.y+r.height/2-s.height/2,E=r[f]/2-s[f]/2;let S;switch(m){case"top":S={x:g,y:r.y-s.height};break;case"bottom":S={x:g,y:r.y+r.height};break;case"right":S={x:r.x+r.width,y:b};break;case"left":S={x:r.x-s.width,y:b};break;default:S={x:r.x,y:r.y}}switch(Pl(e)){case"start":S[c]-=E*(n&&p?-1:1);break;case"end":S[c]+=E*(n&&p?-1:1);break}return S}async function HK(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:l,rects:c,elements:f,strategy:m}=t,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:E=!1,padding:S=0}=_o(e,t),T=kv(S),$=f[E?b==="floating"?"reference":"floating":b],_=hl(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement($)))==null||n?$:$.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:p,rootBoundary:g,strategy:m})),L=b==="floating"?{x:r,y:s,width:c.floating.width,height:c.floating.height}:c.reference,j=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),P=await(l.isElement==null?void 0:l.isElement(j))?await(l.getScale==null?void 0:l.getScale(j))||{x:1,y:1}:{x:1,y:1},H=hl(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:L,offsetParent:j,strategy:m}):L);return{top:(_.top-H.top+T.top)/P.y,bottom:(H.bottom-_.bottom+T.bottom)/P.y,left:(_.left-H.left+T.left)/P.x,right:(H.right-_.right+T.right)/P.x}}const FK=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:l=[],platform:c}=n,f=l.filter(Boolean),m=await(c.isRTL==null?void 0:c.isRTL(e));let p=await c.getElementRects({reference:t,floating:e,strategy:s}),{x:g,y:b}=HT(p,r,m),E=r,S={},T=0;for(let $=0;$<f.length;$++){var w;const{name:_,fn:L}=f[$],{x:j,y:P,data:H,reset:F}=await L({x:g,y:b,initialPlacement:r,placement:E,strategy:s,middlewareData:S,rects:p,platform:{...c,detectOverflow:(w=c.detectOverflow)!=null?w:HK},elements:{reference:t,floating:e}});g=j??g,b=P??b,S={...S,[_]:{...S[_],...H}},F&&T<=50&&(T++,typeof F=="object"&&(F.placement&&(E=F.placement),F.rects&&(p=F.rects===!0?await c.getElementRects({reference:t,floating:e,strategy:s}):F.rects),{x:g,y:b}=HT(p,E,m)),$=-1)}return{x:g,y:b,placement:E,strategy:s,middlewareData:S}},qK=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:l,platform:c,elements:f,middlewareData:m}=e,{element:p,padding:g=0}=_o(t,e)||{};if(p==null)return{};const b=kv(g),E={x:n,y:r},S=Uv(s),T=Bv(S),w=await c.getDimensions(p),$=S==="y",_=$?"top":"left",L=$?"bottom":"right",j=$?"clientHeight":"clientWidth",P=l.reference[T]+l.reference[S]-E[S]-l.floating[T],H=E[S]-l.reference[S],F=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p));let z=F?F[j]:0;(!z||!await(c.isElement==null?void 0:c.isElement(F)))&&(z=f.floating[j]||l.floating[T]);const k=P/2-H/2,W=z/2-w[T]/2-1,et=so(b[_],W),it=so(b[L],W),ct=et,dt=z-w[T]-it,Y=z/2-w[T]/2+k,Z=i0(ct,Y,dt),O=!m.arrow&&Pl(s)!=null&&Y!==Z&&l.reference[T]/2-(Y<ct?et:it)-w[T]/2<0,B=O?Y<ct?Y-ct:Y-dt:0;return{[S]:E[S]+B,data:{[S]:Z,centerOffset:Y-Z-B,...O&&{alignmentOffset:B}},reset:O}}}),GK=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:l,rects:c,initialPlacement:f,platform:m,elements:p}=e,{mainAxis:g=!0,crossAxis:b=!0,fallbackPlacements:E,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:w=!0,...$}=_o(t,e);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const _=ao(s),L=no(f),j=ao(f)===f,P=await(m.isRTL==null?void 0:m.isRTL(p.floating)),H=E||(j||!w?[Kd(f)]:SK(f)),F=T!=="none";!E&&F&&H.push(...TK(f,w,T,P));const z=[f,...H],k=await m.detectOverflow(e,$),W=[];let et=((r=l.flip)==null?void 0:r.overflows)||[];if(g&&W.push(k[_]),b){const Y=vK(s,c,P);W.push(k[Y[0]],k[Y[1]])}if(et=[...et,{placement:s,overflows:W}],!W.every(Y=>Y<=0)){var it,ct;const Y=(((it=l.flip)==null?void 0:it.index)||0)+1,Z=z[Y];if(Z&&(!(b==="alignment"?L!==no(Z):!1)||et.every(D=>no(D.placement)===L?D.overflows[0]>0:!0)))return{data:{index:Y,overflows:et},reset:{placement:Z}};let O=(ct=et.filter(B=>B.overflows[0]<=0).sort((B,D)=>B.overflows[1]-D.overflows[1])[0])==null?void 0:ct.placement;if(!O)switch(S){case"bestFit":{var dt;const B=(dt=et.filter(D=>{if(F){const tt=no(D.placement);return tt===L||tt==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(tt=>tt>0).reduce((tt,nt)=>tt+nt,0)]).sort((D,tt)=>D[1]-tt[1])[0])==null?void 0:dt[0];B&&(O=B);break}case"initialPlacement":O=f;break}if(s!==O)return{reset:{placement:O}}}return{}}}};function FT(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function qT(t){return pK.some(e=>t[e]>=0)}const YK=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:s="referenceHidden",...l}=_o(t,e);switch(s){case"referenceHidden":{const c=await r.detectOverflow(e,{...l,elementContext:"reference"}),f=FT(c,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:qT(f)}}}case"escaped":{const c=await r.detectOverflow(e,{...l,altBoundary:!0}),f=FT(c,n.floating);return{data:{escapedOffsets:f,escaped:qT(f)}}}default:return{}}}}};function pR(t){const e=so(...t.map(l=>l.left)),n=so(...t.map(l=>l.top)),r=Sn(...t.map(l=>l.right)),s=Sn(...t.map(l=>l.bottom));return{x:e,y:n,width:r-e,height:s-n}}function VK(t){const e=t.slice().sort((s,l)=>s.y-l.y),n=[];let r=null;for(let s=0;s<e.length;s++){const l=e[s];!r||l.y-r.y>r.height/2?n.push([l]):n[n.length-1].push(l),r=l}return n.map(s=>hl(pR(s)))}const KK=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:r,rects:s,platform:l,strategy:c}=e,{padding:f=2,x:m,y:p}=_o(t,e),g=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(r.reference))||[]),b=VK(g),E=hl(pR(g)),S=kv(f);function T(){if(b.length===2&&b[0].left>b[1].right&&m!=null&&p!=null)return b.find($=>m>$.left-S.left&&m<$.right+S.right&&p>$.top-S.top&&p<$.bottom+S.bottom)||E;if(b.length>=2){if(no(n)==="y"){const et=b[0],it=b[b.length-1],ct=ao(n)==="top",dt=et.top,Y=it.bottom,Z=ct?et.left:it.left,O=ct?et.right:it.right,B=O-Z,D=Y-dt;return{top:dt,bottom:Y,left:Z,right:O,width:B,height:D,x:Z,y:dt}}const $=ao(n)==="left",_=Sn(...b.map(et=>et.right)),L=so(...b.map(et=>et.left)),j=b.filter(et=>$?et.left===L:et.right===_),P=j[0].top,H=j[j.length-1].bottom,F=L,z=_,k=z-F,W=H-P;return{top:P,bottom:H,left:F,right:z,width:k,height:W,x:F,y:P}}return E}const w=await l.getElementRects({reference:{getBoundingClientRect:T},floating:r.floating,strategy:c});return s.reference.x!==w.reference.x||s.reference.y!==w.reference.y||s.reference.width!==w.reference.width||s.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},gR=new Set(["left","top"]);async function XK(t,e){const{placement:n,platform:r,elements:s}=t,l=await(r.isRTL==null?void 0:r.isRTL(s.floating)),c=ao(n),f=Pl(n),m=no(n)==="y",p=gR.has(c)?-1:1,g=l&&m?-1:1,b=_o(e,t);let{mainAxis:E,crossAxis:S,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return f&&typeof T=="number"&&(S=f==="end"?T*-1:T),m?{x:S*g,y:E*p}:{x:E*p,y:S*g}}const QK=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:l,placement:c,middlewareData:f}=e,m=await XK(e,t);return c===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:s+m.x,y:l+m.y,data:{...m,placement:c}}}}},ZK=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s,platform:l}=e,{mainAxis:c=!0,crossAxis:f=!1,limiter:m={fn:_=>{let{x:L,y:j}=_;return{x:L,y:j}}},...p}=_o(t,e),g={x:n,y:r},b=await l.detectOverflow(e,p),E=no(ao(s)),S=zv(E);let T=g[S],w=g[E];if(c){const _=S==="y"?"top":"left",L=S==="y"?"bottom":"right",j=T+b[_],P=T-b[L];T=i0(j,T,P)}if(f){const _=E==="y"?"top":"left",L=E==="y"?"bottom":"right",j=w+b[_],P=w-b[L];w=i0(j,w,P)}const $=m.fn({...e,[S]:T,[E]:w});return{...$,data:{x:$.x-n,y:$.y-r,enabled:{[S]:c,[E]:f}}}}}},JK=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:s,rects:l,middlewareData:c}=e,{offset:f=0,mainAxis:m=!0,crossAxis:p=!0}=_o(t,e),g={x:n,y:r},b=no(s),E=zv(b);let S=g[E],T=g[b];const w=_o(f,e),$=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(m){const j=E==="y"?"height":"width",P=l.reference[E]-l.floating[j]+$.mainAxis,H=l.reference[E]+l.reference[j]-$.mainAxis;S<P?S=P:S>H&&(S=H)}if(p){var _,L;const j=E==="y"?"width":"height",P=gR.has(ao(s)),H=l.reference[b]-l.floating[j]+(P&&((_=c.offset)==null?void 0:_[b])||0)+(P?0:$.crossAxis),F=l.reference[b]+l.reference[j]+(P?0:((L=c.offset)==null?void 0:L[b])||0)-(P?$.crossAxis:0);T<H?T=H:T>F&&(T=F)}return{[E]:S,[b]:T}}}},WK=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:s,rects:l,platform:c,elements:f}=e,{apply:m=()=>{},...p}=_o(t,e),g=await c.detectOverflow(e,p),b=ao(s),E=Pl(s),S=no(s)==="y",{width:T,height:w}=l.floating;let $,_;b==="top"||b==="bottom"?($=b,_=E===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(_=b,$=E==="end"?"top":"bottom");const L=w-g.top-g.bottom,j=T-g.left-g.right,P=so(w-g[$],L),H=so(T-g[_],j),F=!e.middlewareData.shift;let z=P,k=H;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(k=j),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(z=L),F&&!E){const et=Sn(g.left,0),it=Sn(g.right,0),ct=Sn(g.top,0),dt=Sn(g.bottom,0);S?k=T-2*(et!==0||it!==0?et+it:Sn(g.left,g.right)):z=w-2*(ct!==0||dt!==0?ct+dt:Sn(g.top,g.bottom))}await m({...e,availableWidth:k,availableHeight:z});const W=await c.getDimensions(f.floating);return T!==W.width||w!==W.height?{reset:{rects:!0}}:{}}}};function yR(t){const e=qr(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=hr(t),l=s?t.offsetWidth:n,c=s?t.offsetHeight:r,f=Vd(n)!==l||Vd(r)!==c;return f&&(n=l,r=c),{width:n,height:r,$:f}}function Pv(t){return Ce(t)?t:t.contextElement}function fl(t){const e=Pv(t);if(!hr(e))return Mo(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:l}=yR(e);let c=(l?Vd(n.width):n.width)/r,f=(l?Vd(n.height):n.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const tX=Mo(0);function bR(t){const e=Fn(t);return!oh()||!e.visualViewport?tX:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function eX(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Fn(t)?!1:e}function Js(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),l=Pv(t);let c=Mo(1);e&&(r?Ce(r)&&(c=fl(r)):c=fl(t));const f=eX(l,n,r)?bR(l):Mo(0);let m=(s.left+f.x)/c.x,p=(s.top+f.y)/c.y,g=s.width/c.x,b=s.height/c.y;if(l){const E=Fn(l),S=r&&Ce(r)?Fn(r):r;let T=E,w=o0(T);for(;w&&r&&S!==T;){const $=fl(w),_=w.getBoundingClientRect(),L=qr(w),j=_.left+(w.clientLeft+parseFloat(L.paddingLeft))*$.x,P=_.top+(w.clientTop+parseFloat(L.paddingTop))*$.y;m*=$.x,p*=$.y,g*=$.x,b*=$.y,m+=j,p+=P,T=Fn(w),w=o0(T)}}return hl({width:g,height:b,x:m,y:p})}function sh(t,e){const n=ih(t).scrollLeft;return e?e.left+n:Js(Bo(t)).left+n}function vR(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-sh(t,n),s=n.top+e.scrollTop;return{x:r,y:s}}function nX(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const l=s==="fixed",c=Bo(r),f=e?rh(e.floating):!1;if(r===c||f&&l)return n;let m={scrollLeft:0,scrollTop:0},p=Mo(1);const g=Mo(0),b=hr(r);if((b||!b&&!l)&&((kl(r)!=="body"||Pc(c))&&(m=ih(r)),hr(r))){const S=Js(r);p=fl(r),g.x=S.x+r.clientLeft,g.y=S.y+r.clientTop}const E=c&&!b&&!l?vR(c,m):Mo(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-m.scrollLeft*p.x+g.x+E.x,y:n.y*p.y-m.scrollTop*p.y+g.y+E.y}}function rX(t){return Array.from(t.getClientRects())}function oX(t){const e=Bo(t),n=ih(t),r=t.ownerDocument.body,s=Sn(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),l=Sn(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+sh(t);const f=-n.scrollTop;return qr(r).direction==="rtl"&&(c+=Sn(e.clientWidth,r.clientWidth)-s),{width:s,height:l,x:c,y:f}}const GT=25;function iX(t,e){const n=Fn(t),r=Bo(t),s=n.visualViewport;let l=r.clientWidth,c=r.clientHeight,f=0,m=0;if(s){l=s.width,c=s.height;const g=oh();(!g||g&&e==="fixed")&&(f=s.offsetLeft,m=s.offsetTop)}const p=sh(r);if(p<=0){const g=r.ownerDocument,b=g.body,E=getComputedStyle(b),S=g.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,T=Math.abs(r.clientWidth-b.clientWidth-S);T<=GT&&(l-=T)}else p<=GT&&(l+=p);return{width:l,height:c,x:f,y:m}}const sX=new Set(["absolute","fixed"]);function aX(t,e){const n=Js(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,l=hr(t)?fl(t):Mo(1),c=t.clientWidth*l.x,f=t.clientHeight*l.y,m=s*l.x,p=r*l.y;return{width:c,height:f,x:m,y:p}}function YT(t,e,n){let r;if(e==="viewport")r=iX(t,n);else if(e==="document")r=oX(Bo(t));else if(Ce(e))r=aX(e,n);else{const s=bR(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return hl(r)}function SR(t,e){const n=fi(t);return n===e||!Ce(n)||ii(n)?!1:qr(n).position==="fixed"||SR(n,e)}function lX(t,e){const n=e.get(t);if(n)return n;let r=si(t,[],!1).filter(f=>Ce(f)&&kl(f)!=="body"),s=null;const l=qr(t).position==="fixed";let c=l?fi(t):t;for(;Ce(c)&&!ii(c);){const f=qr(c),m=Lv(c);!m&&f.position==="fixed"&&(s=null),(l?!m&&!s:!m&&f.position==="static"&&!!s&&sX.has(s.position)||Pc(c)&&!m&&SR(t,c))?r=r.filter(g=>g!==c):s=f,c=fi(c)}return e.set(t,r),r}function uX(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const c=[...n==="clippingAncestors"?rh(e)?[]:lX(e,this._c):[].concat(n),r],f=c[0],m=c.reduce((p,g)=>{const b=YT(e,g,s);return p.top=Sn(b.top,p.top),p.right=so(b.right,p.right),p.bottom=so(b.bottom,p.bottom),p.left=Sn(b.left,p.left),p},YT(e,f,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function cX(t){const{width:e,height:n}=yR(t);return{width:e,height:n}}function fX(t,e,n){const r=hr(e),s=Bo(e),l=n==="fixed",c=Js(t,!0,l,e);let f={scrollLeft:0,scrollTop:0};const m=Mo(0);function p(){m.x=sh(s)}if(r||!r&&!l)if((kl(e)!=="body"||Pc(s))&&(f=ih(e)),r){const S=Js(e,!0,l,e);m.x=S.x+e.clientLeft,m.y=S.y+e.clientTop}else s&&p();l&&!r&&s&&p();const g=s&&!r&&!l?vR(s,f):Mo(0),b=c.left+f.scrollLeft-m.x-g.x,E=c.top+f.scrollTop-m.y-g.y;return{x:b,y:E,width:c.width,height:c.height}}function gy(t){return qr(t).position==="static"}function VT(t,e){if(!hr(t)||qr(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Bo(t)===n&&(n=n.ownerDocument.body),n}function ER(t,e){const n=Fn(t);if(rh(t))return n;if(!hr(t)){let s=fi(t);for(;s&&!ii(s);){if(Ce(s)&&!gy(s))return s;s=fi(s)}return n}let r=VT(t,e);for(;r&&lK(r)&&gy(r);)r=VT(r,e);return r&&ii(r)&&gy(r)&&!Lv(r)?n:r||mK(t)||n}const dX=async function(t){const e=this.getOffsetParent||ER,n=this.getDimensions,r=await n(t.floating);return{reference:fX(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mX(t){return qr(t).direction==="rtl"}const hX={convertOffsetParentRelativeRectToViewportRelativeRect:nX,getDocumentElement:Bo,getClippingRect:uX,getOffsetParent:ER,getElementRects:dX,getClientRects:rX,getDimensions:cX,getScale:fl,isElement:Ce,isRTL:mX};function xR(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function pX(t,e){let n=null,r;const s=Bo(t);function l(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function c(f,m){f===void 0&&(f=!1),m===void 0&&(m=1),l();const p=t.getBoundingClientRect(),{left:g,top:b,width:E,height:S}=p;if(f||e(),!E||!S)return;const T=gd(b),w=gd(s.clientWidth-(g+E)),$=gd(s.clientHeight-(b+S)),_=gd(g),j={rootMargin:-T+"px "+-w+"px "+-$+"px "+-_+"px",threshold:Sn(0,so(1,m))||1};let P=!0;function H(F){const z=F[0].intersectionRatio;if(z!==m){if(!P)return c();z?c(!1,z):r=setTimeout(()=>{c(!1,1e-7)},1e3)}z===1&&!xR(p,t.getBoundingClientRect())&&c(),P=!1}try{n=new IntersectionObserver(H,{...j,root:s.ownerDocument})}catch{n=new IntersectionObserver(H,j)}n.observe(t)}return c(!0),l}function gX(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:m=!1}=r,p=Pv(t),g=s||l?[...p?si(p):[],...si(e)]:[];g.forEach(_=>{s&&_.addEventListener("scroll",n,{passive:!0}),l&&_.addEventListener("resize",n)});const b=p&&f?pX(p,n):null;let E=-1,S=null;c&&(S=new ResizeObserver(_=>{let[L]=_;L&&L.target===p&&S&&(S.unobserve(e),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var j;(j=S)==null||j.observe(e)})),n()}),p&&!m&&S.observe(p),S.observe(e));let T,w=m?Js(t):null;m&&$();function $(){const _=Js(t);w&&!xR(w,_)&&n(),w=_,T=requestAnimationFrame($)}return n(),()=>{var _;g.forEach(L=>{s&&L.removeEventListener("scroll",n),l&&L.removeEventListener("resize",n)}),b?.(),(_=S)==null||_.disconnect(),S=null,m&&cancelAnimationFrame(T)}}const yX=QK,bX=ZK,vX=GK,SX=WK,EX=YK,KT=qK,xX=KK,wX=JK,TX=(t,e,n)=>{const r=new Map,s={platform:hX,...n},l={...s.platform,_c:r};return FK(t,e,{...s,platform:l})};var CX=typeof document<"u",AX=function(){},Dd=CX?C.useLayoutEffect:AX;function Xd(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Xd(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const l=s[r];if(!(l==="_owner"&&t.$$typeof)&&!Xd(t[l],e[l]))return!1}return!0}return t!==t&&e!==e}function wR(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function XT(t,e){const n=wR(t);return Math.round(e*n)/n}function yy(t){const e=C.useRef(t);return Dd(()=>{e.current=t}),e}function $X(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:l,floating:c}={},transform:f=!0,whileElementsMounted:m,open:p}=t,[g,b]=C.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[E,S]=C.useState(r);Xd(E,r)||S(r);const[T,w]=C.useState(null),[$,_]=C.useState(null),L=C.useCallback(D=>{D!==F.current&&(F.current=D,w(D))},[]),j=C.useCallback(D=>{D!==z.current&&(z.current=D,_(D))},[]),P=l||T,H=c||$,F=C.useRef(null),z=C.useRef(null),k=C.useRef(g),W=m!=null,et=yy(m),it=yy(s),ct=yy(p),dt=C.useCallback(()=>{if(!F.current||!z.current)return;const D={placement:e,strategy:n,middleware:E};it.current&&(D.platform=it.current),TX(F.current,z.current,D).then(tt=>{const nt={...tt,isPositioned:ct.current!==!1};Y.current&&!Xd(k.current,nt)&&(k.current=nt,eh.flushSync(()=>{b(nt)}))})},[E,e,n,it,ct]);Dd(()=>{p===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,b(D=>({...D,isPositioned:!1})))},[p]);const Y=C.useRef(!1);Dd(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Dd(()=>{if(P&&(F.current=P),H&&(z.current=H),P&&H){if(et.current)return et.current(P,H,dt);dt()}},[P,H,dt,et,W]);const Z=C.useMemo(()=>({reference:F,floating:z,setReference:L,setFloating:j}),[L,j]),O=C.useMemo(()=>({reference:P,floating:H}),[P,H]),B=C.useMemo(()=>{const D={position:n,left:0,top:0};if(!O.floating)return D;const tt=XT(O.floating,g.x),nt=XT(O.floating,g.y);return f?{...D,transform:"translate("+tt+"px, "+nt+"px)",...wR(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:tt,top:nt}},[n,f,O.floating,g.x,g.y]);return C.useMemo(()=>({...g,update:dt,refs:Z,elements:O,floatingStyles:B}),[g,dt,Z,O,B])}const MX=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?KT({element:r.current,padding:s}).fn(n):{}:r?KT({element:r,padding:s}).fn(n):{}}}},RX=(t,e)=>({...yX(t),options:[t,e]}),TR=(t,e)=>({...bX(t),options:[t,e]}),ftt=(t,e)=>({...wX(t),options:[t,e]}),QT=(t,e)=>({...vX(t),options:[t,e]}),dtt=(t,e)=>({...SX(t),options:[t,e]}),mtt=(t,e)=>({...EX(t),options:[t,e]}),by=(t,e)=>({...xX(t),options:[t,e]}),OX=(t,e)=>({...MX(t),options:[t,e]});function CR(t){const e=C.useRef(void 0),n=C.useCallback(r=>{const s=t.map(l=>{if(l!=null){if(typeof l=="function"){const c=l,f=c(r);return typeof f=="function"?f:()=>{c(null)}}return l.current=r,()=>{l.current=null}}});return()=>{s.forEach(l=>l?.())}},t);return C.useMemo(()=>t.every(r=>r==null)?null:r=>{e.current&&(e.current(),e.current=void 0),r!=null&&(e.current=n(r))},t)}const NX="data-floating-ui-focusable",ZT="active",JT="selected",_X={...oM};let WT=!1,DX=0;const t2=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+DX++;function jX(){const[t,e]=C.useState(()=>WT?t2():void 0);return Ro(()=>{t==null&&e(t2())},[]),C.useEffect(()=>{WT=!0},[]),t}const IX=_X.useId,AR=IX||jX;function LX(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(s=>s(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){var r;(r=t.get(e))==null||r.delete(n)}}}const zX=C.createContext(null),BX=C.createContext(null),Hv=()=>{var t;return((t=C.useContext(zX))==null?void 0:t.id)||null},Fv=()=>C.useContext(BX);function qv(t){return"data-floating-ui-"+t}function Lr(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}const e2=qv("safe-polygon");function jd(t,e,n){if(n&&!a0(n))return 0;if(typeof t=="number")return t;if(typeof t=="function"){const r=t();return typeof r=="number"?r:r?.[e]}return t?.[e]}function vy(t){return typeof t=="function"?t():t}function UX(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,events:l,elements:c}=t,{enabled:f=!0,delay:m=0,handleClose:p=null,mouseOnly:g=!1,restMs:b=0,move:E=!0}=e,S=Fv(),T=Hv(),w=yd(p),$=yd(m),_=yd(n),L=yd(b),j=C.useRef(),P=C.useRef(-1),H=C.useRef(),F=C.useRef(-1),z=C.useRef(!0),k=C.useRef(!1),W=C.useRef(()=>{}),et=C.useRef(!1),it=Co(()=>{var B;const D=(B=s.current.openEvent)==null?void 0:B.type;return D?.includes("mouse")&&D!=="mousedown"});C.useEffect(()=>{if(!f)return;function B(D){let{open:tt}=D;tt||(Lr(P),Lr(F),z.current=!0,et.current=!1)}return l.on("openchange",B),()=>{l.off("openchange",B)}},[f,l]),C.useEffect(()=>{if(!f||!w.current||!n)return;function B(tt){it()&&r(!1,tt,"hover")}const D=qs(c.floating).documentElement;return D.addEventListener("mouseleave",B),()=>{D.removeEventListener("mouseleave",B)}},[c.floating,n,r,f,w,it]);const ct=C.useCallback(function(B,D,tt){D===void 0&&(D=!0),tt===void 0&&(tt="hover");const nt=jd($.current,"close",j.current);nt&&!H.current?(Lr(P),P.current=window.setTimeout(()=>r(!1,B,tt),nt)):D&&(Lr(P),r(!1,B,tt))},[$,r]),dt=Co(()=>{W.current(),H.current=void 0}),Y=Co(()=>{if(k.current){const B=qs(c.floating).body;B.style.pointerEvents="",B.removeAttribute(e2),k.current=!1}}),Z=Co(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);C.useEffect(()=>{if(!f)return;function B(G){if(Lr(P),z.current=!1,g&&!a0(j.current)||vy(L.current)>0&&!jd($.current,"open"))return;const ot=jd($.current,"open",j.current);ot?P.current=window.setTimeout(()=>{_.current||r(!0,G,"hover")},ot):n||r(!0,G,"hover")}function D(G){if(Z()){Y();return}W.current();const ot=qs(c.floating);if(Lr(F),et.current=!1,w.current&&s.current.floatingContext){n||Lr(P),H.current=w.current({...s.current.floatingContext,tree:S,x:G.clientX,y:G.clientY,onClose(){Y(),dt(),Z()||ct(G,!0,"safe-polygon")}});const mt=H.current;ot.addEventListener("mousemove",mt),W.current=()=>{ot.removeEventListener("mousemove",mt)};return}(j.current!=="touch"||!uc(c.floating,G.relatedTarget))&&ct(G)}function tt(G){Z()||s.current.floatingContext&&(w.current==null||w.current({...s.current.floatingContext,tree:S,x:G.clientX,y:G.clientY,onClose(){Y(),dt(),Z()||ct(G)}})(G))}function nt(){Lr(P)}function N(G){Z()||ct(G,!1)}if(Ce(c.domReference)){const G=c.domReference,ot=c.floating;return n&&G.addEventListener("mouseleave",tt),E&&G.addEventListener("mousemove",B,{once:!0}),G.addEventListener("mouseenter",B),G.addEventListener("mouseleave",D),ot&&(ot.addEventListener("mouseleave",tt),ot.addEventListener("mouseenter",nt),ot.addEventListener("mouseleave",N)),()=>{n&&G.removeEventListener("mouseleave",tt),E&&G.removeEventListener("mousemove",B),G.removeEventListener("mouseenter",B),G.removeEventListener("mouseleave",D),ot&&(ot.removeEventListener("mouseleave",tt),ot.removeEventListener("mouseenter",nt),ot.removeEventListener("mouseleave",N))}}},[c,f,t,g,E,ct,dt,Y,r,n,_,S,$,w,s,Z,L]),Ro(()=>{var B;if(f&&n&&(B=w.current)!=null&&(B=B.__options)!=null&&B.blockPointerEvents&&it()){k.current=!0;const tt=c.floating;if(Ce(c.domReference)&&tt){var D;const nt=qs(c.floating).body;nt.setAttribute(e2,"");const N=c.domReference,G=S==null||(D=S.nodesRef.current.find(ot=>ot.id===T))==null||(D=D.context)==null?void 0:D.elements.floating;return G&&(G.style.pointerEvents=""),nt.style.pointerEvents="none",N.style.pointerEvents="auto",tt.style.pointerEvents="auto",()=>{nt.style.pointerEvents="",N.style.pointerEvents="",tt.style.pointerEvents=""}}}},[f,n,T,c,S,w,it]),Ro(()=>{n||(j.current=void 0,et.current=!1,dt(),Y())},[n,dt,Y]),C.useEffect(()=>()=>{dt(),Lr(P),Lr(F),Y()},[f,c.domReference,dt,Y]);const O=C.useMemo(()=>{function B(D){j.current=D.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(D){const{nativeEvent:tt}=D;function nt(){!z.current&&!_.current&&r(!0,tt,"hover")}g&&!a0(j.current)||n||vy(L.current)===0||et.current&&D.movementX**2+D.movementY**2<2||(Lr(F),j.current==="touch"?nt():(et.current=!0,F.current=window.setTimeout(nt,vy(L.current))))}}},[g,r,n,_,L]);return C.useMemo(()=>f?{reference:O}:{},[f,O])}const l0=()=>{},$R=C.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:l0,setState:l0,isInstantPhase:!1}),kX=()=>C.useContext($R);function PX(t){const{children:e,delay:n,timeoutMs:r=0}=t,[s,l]=C.useReducer((m,p)=>({...m,...p}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),c=C.useRef(null),f=C.useCallback(m=>{l({currentId:m})},[]);return Ro(()=>{s.currentId?c.current===null?c.current=s.currentId:s.isInstantPhase||l({isInstantPhase:!0}):(s.isInstantPhase&&l({isInstantPhase:!1}),c.current=null)},[s.currentId,s.isInstantPhase]),x.jsx($R.Provider,{value:C.useMemo(()=>({...s,setState:l,setCurrentId:f}),[s,f]),children:e})}function HX(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,floatingId:s}=t,{id:l,enabled:c=!0}=e,f=l??s,m=kX(),{currentId:p,setCurrentId:g,initialDelay:b,setState:E,timeoutMs:S}=m;return Ro(()=>{c&&p&&(E({delay:{open:1,close:jd(b,"close")}}),p!==f&&r(!1))},[c,f,r,E,p,b]),Ro(()=>{function T(){r(!1),E({delay:b,currentId:null})}if(c&&p&&!n&&p===f){if(S){const w=window.setTimeout(T,S);return()=>{clearTimeout(w)}}T()}},[c,n,E,p,f,r,b,S]),Ro(()=>{c&&(g===l0||!n||g(f))},[c,n,g,f]),m}const FX={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},qX={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},n2=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t?.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t?.outsidePress)!=null?n:!0}};function GX(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,elements:s,dataRef:l}=t,{enabled:c=!0,escapeKey:f=!0,outsidePress:m=!0,outsidePressEvent:p="pointerdown",referencePress:g=!1,referencePressEvent:b="pointerdown",ancestorScroll:E=!1,bubbles:S,capture:T}=e,w=Fv(),$=Co(typeof m=="function"?m:()=>!1),_=typeof m=="function"?$:m,L=C.useRef(!1),{escapeKey:j,outsidePress:P}=n2(S),{escapeKey:H,outsidePress:F}=n2(T),z=C.useRef(!1),k=Co(Y=>{var Z;if(!n||!c||!f||Y.key!=="Escape"||z.current)return;const O=(Z=l.current.floatingContext)==null?void 0:Z.nodeId,B=w?_d(w.nodesRef.current,O):[];if(!j&&(Y.stopPropagation(),B.length>0)){let D=!0;if(B.forEach(tt=>{var nt;if((nt=tt.context)!=null&&nt.open&&!tt.context.dataRef.current.__escapeKeyBubbles){D=!1;return}}),!D)return}r(!1,LK(Y)?Y.nativeEvent:Y,"escape-key")}),W=Co(Y=>{var Z;const O=()=>{var B;k(Y),(B=rl(Y))==null||B.removeEventListener("keydown",O)};(Z=rl(Y))==null||Z.addEventListener("keydown",O)}),et=Co(Y=>{var Z;const O=l.current.insideReactTree;l.current.insideReactTree=!1;const B=L.current;if(L.current=!1,p==="click"&&B||O||typeof _=="function"&&!_(Y))return;const D=rl(Y),tt="["+qv("inert")+"]",nt=qs(s.floating).querySelectorAll(tt);let N=Ce(D)?D:null;for(;N&&!ii(N);){const mt=fi(N);if(ii(mt)||!Ce(mt))break;N=mt}if(nt.length&&Ce(D)&&!_K(D)&&!uc(D,s.floating)&&Array.from(nt).every(mt=>!uc(N,mt)))return;if(hr(D)&&dt){const mt=ii(D),pt=qr(D),Tt=/auto|scroll/,Jt=mt||Tt.test(pt.overflowX),Ot=mt||Tt.test(pt.overflowY),ie=Jt&&D.clientWidth>0&&D.scrollWidth>D.clientWidth,We=Ot&&D.clientHeight>0&&D.scrollHeight>D.clientHeight,cn=pt.direction==="rtl",Zt=We&&(cn?Y.offsetX<=D.offsetWidth-D.clientWidth:Y.offsetX>D.clientWidth),on=ie&&Y.offsetY>D.clientHeight;if(Zt||on)return}const G=(Z=l.current.floatingContext)==null?void 0:Z.nodeId,ot=w&&_d(w.nodesRef.current,G).some(mt=>{var pt;return py(Y,(pt=mt.context)==null?void 0:pt.elements.floating)});if(py(Y,s.floating)||py(Y,s.domReference)||ot)return;const ft=w?_d(w.nodesRef.current,G):[];if(ft.length>0){let mt=!0;if(ft.forEach(pt=>{var Tt;if((Tt=pt.context)!=null&&Tt.open&&!pt.context.dataRef.current.__outsidePressBubbles){mt=!1;return}}),!mt)return}r(!1,Y,"outside-press")}),it=Co(Y=>{var Z;const O=()=>{var B;et(Y),(B=rl(Y))==null||B.removeEventListener(p,O)};(Z=rl(Y))==null||Z.addEventListener(p,O)});C.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=j,l.current.__outsidePressBubbles=P;let Y=-1;function Z(nt){r(!1,nt,"ancestor-scroll")}function O(){window.clearTimeout(Y),z.current=!0}function B(){Y=window.setTimeout(()=>{z.current=!1},oh()?5:0)}const D=qs(s.floating);f&&(D.addEventListener("keydown",H?W:k,H),D.addEventListener("compositionstart",O),D.addEventListener("compositionend",B)),_&&D.addEventListener(p,F?it:et,F);let tt=[];return E&&(Ce(s.domReference)&&(tt=si(s.domReference)),Ce(s.floating)&&(tt=tt.concat(si(s.floating))),!Ce(s.reference)&&s.reference&&s.reference.contextElement&&(tt=tt.concat(si(s.reference.contextElement)))),tt=tt.filter(nt=>{var N;return nt!==((N=D.defaultView)==null?void 0:N.visualViewport)}),tt.forEach(nt=>{nt.addEventListener("scroll",Z,{passive:!0})}),()=>{f&&(D.removeEventListener("keydown",H?W:k,H),D.removeEventListener("compositionstart",O),D.removeEventListener("compositionend",B)),_&&D.removeEventListener(p,F?it:et,F),tt.forEach(nt=>{nt.removeEventListener("scroll",Z)}),window.clearTimeout(Y)}},[l,s,f,_,p,n,r,E,c,j,P,k,H,W,et,F,it]),C.useEffect(()=>{l.current.insideReactTree=!1},[l,_,p]);const ct=C.useMemo(()=>({onKeyDown:k,...g&&{[FX[b]]:Y=>{r(!1,Y.nativeEvent,"reference-press")},...b!=="click"&&{onClick(Y){r(!1,Y.nativeEvent,"reference-press")}}}}),[k,r,g,b]),dt=C.useMemo(()=>({onKeyDown:k,onMouseDown(){L.current=!0},onMouseUp(){L.current=!0},[qX[p]]:()=>{l.current.insideReactTree=!0}}),[k,p,l]);return C.useMemo(()=>c?{reference:ct,floating:dt}:{},[c,ct,dt])}function YX(t){const{open:e=!1,onOpenChange:n,elements:r}=t,s=AR(),l=C.useRef({}),[c]=C.useState(()=>LX()),f=Hv()!=null,[m,p]=C.useState(r.reference),g=Co((S,T,w)=>{l.current.openEvent=S?T:void 0,c.emit("openchange",{open:S,event:T,reason:w,nested:f}),n?.(S,T,w)}),b=C.useMemo(()=>({setPositionReference:p}),[]),E=C.useMemo(()=>({reference:m||r.reference||null,floating:r.floating||null,domReference:r.reference}),[m,r.reference,r.floating]);return C.useMemo(()=>({dataRef:l,open:e,onOpenChange:g,elements:E,events:c,floatingId:s,refs:b}),[e,g,E,c,s,b])}function MR(t){t===void 0&&(t={});const{nodeId:e}=t,n=YX({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,s=r.elements,[l,c]=C.useState(null),[f,m]=C.useState(null),g=s?.domReference||l,b=C.useRef(null),E=Fv();Ro(()=>{g&&(b.current=g)},[g]);const S=$X({...t,elements:{...s,...f&&{reference:f}}}),T=C.useCallback(j=>{const P=Ce(j)?{getBoundingClientRect:()=>j.getBoundingClientRect(),getClientRects:()=>j.getClientRects(),contextElement:j}:j;m(P),S.refs.setReference(P)},[S.refs]),w=C.useCallback(j=>{(Ce(j)||j===null)&&(b.current=j,c(j)),(Ce(S.refs.reference.current)||S.refs.reference.current===null||j!==null&&!Ce(j))&&S.refs.setReference(j)},[S.refs]),$=C.useMemo(()=>({...S.refs,setReference:w,setPositionReference:T,domReference:b}),[S.refs,w,T]),_=C.useMemo(()=>({...S.elements,domReference:g}),[S.elements,g]),L=C.useMemo(()=>({...S,...r,refs:$,elements:_,nodeId:e}),[S,$,_,e,r]);return Ro(()=>{r.dataRef.current.floatingContext=L;const j=E?.nodesRef.current.find(P=>P.id===e);j&&(j.context=L)}),C.useMemo(()=>({...S,context:L,refs:$,elements:_}),[S,$,_,L])}function Sy(){return RK()&&MK()}function VX(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:s,dataRef:l,elements:c}=t,{enabled:f=!0,visibleOnly:m=!0}=e,p=C.useRef(!1),g=C.useRef(-1),b=C.useRef(!0);C.useEffect(()=>{if(!f)return;const S=Fn(c.domReference);function T(){!n&&hr(c.domReference)&&c.domReference===PT(qs(c.domReference))&&(p.current=!0)}function w(){b.current=!0}function $(){b.current=!1}return S.addEventListener("blur",T),Sy()&&(S.addEventListener("keydown",w,!0),S.addEventListener("pointerdown",$,!0)),()=>{S.removeEventListener("blur",T),Sy()&&(S.removeEventListener("keydown",w,!0),S.removeEventListener("pointerdown",$,!0))}},[c.domReference,n,f]),C.useEffect(()=>{if(!f)return;function S(T){let{reason:w}=T;(w==="reference-press"||w==="escape-key")&&(p.current=!0)}return s.on("openchange",S),()=>{s.off("openchange",S)}},[s,f]),C.useEffect(()=>()=>{Lr(g)},[]);const E=C.useMemo(()=>({onMouseLeave(){p.current=!1},onFocus(S){if(p.current)return;const T=rl(S.nativeEvent);if(m&&Ce(T)){if(Sy()&&!S.relatedTarget){if(!b.current&&!DK(T))return}else if(!jK(T))return}r(!0,S.nativeEvent,"focus")},onBlur(S){p.current=!1;const T=S.relatedTarget,w=S.nativeEvent,$=Ce(T)&&T.hasAttribute(qv("focus-guard"))&&T.getAttribute("data-type")==="outside";g.current=window.setTimeout(()=>{var _;const L=PT(c.domReference?c.domReference.ownerDocument:document);!T&&L===c.domReference||uc((_=l.current.floatingContext)==null?void 0:_.refs.floating.current,L)||uc(c.domReference,L)||$||r(!1,w,"focus")})}}),[l,c.domReference,r,m]);return C.useMemo(()=>f?{reference:E}:{},[f,E])}function Ey(t,e,n){const r=new Map,s=n==="item";let l=t;if(s&&t){const{[ZT]:c,[JT]:f,...m}=t;l=m}return{...n==="floating"&&{tabIndex:-1,[NX]:""},...l,...e.map(c=>{const f=c?c[n]:null;return typeof f=="function"?t?f(t):null:f}).concat(t).reduce((c,f)=>(f&&Object.entries(f).forEach(m=>{let[p,g]=m;if(!(s&&[ZT,JT].includes(p)))if(p.indexOf("on")===0){if(r.has(p)||r.set(p,[]),typeof g=="function"){var b;(b=r.get(p))==null||b.push(g),c[p]=function(){for(var E,S=arguments.length,T=new Array(S),w=0;w<S;w++)T[w]=arguments[w];return(E=r.get(p))==null?void 0:E.map($=>$(...T)).find($=>$!==void 0)}}}else c[p]=g}),c),{})}}function KX(t){t===void 0&&(t=[]);const e=t.map(f=>f?.reference),n=t.map(f=>f?.floating),r=t.map(f=>f?.item),s=C.useCallback(f=>Ey(f,t,"reference"),e),l=C.useCallback(f=>Ey(f,t,"floating"),n),c=C.useCallback(f=>Ey(f,t,"item"),r);return C.useMemo(()=>({getReferenceProps:s,getFloatingProps:l,getItemProps:c}),[s,l,c])}const XX=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function QX(t,e){var n,r;e===void 0&&(e={});const{open:s,elements:l,floatingId:c}=t,{enabled:f=!0,role:m="dialog"}=e,p=AR(),g=((n=l.domReference)==null?void 0:n.id)||p,b=C.useMemo(()=>{var L;return((L=IK(l.floating))==null?void 0:L.id)||c},[l.floating,c]),E=(r=XX.get(m))!=null?r:m,T=Hv()!=null,w=C.useMemo(()=>E==="tooltip"||m==="label"?{["aria-"+(m==="label"?"labelledby":"describedby")]:s?b:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":E==="alertdialog"?"dialog":E,"aria-controls":s?b:void 0,...E==="listbox"&&{role:"combobox"},...E==="menu"&&{id:g},...E==="menu"&&T&&{role:"menuitem"},...m==="select"&&{"aria-autocomplete":"none"},...m==="combobox"&&{"aria-autocomplete":"list"}},[E,b,T,s,g,m]),$=C.useMemo(()=>{const L={id:b,...E&&{role:E}};return E==="tooltip"||m==="label"?L:{...L,...E==="menu"&&{"aria-labelledby":g}}},[E,b,g,m]),_=C.useCallback(L=>{let{active:j,selected:P}=L;const H={role:"option",...j&&{id:b+"-fui-option"}};switch(m){case"select":case"combobox":return{...H,"aria-selected":P}}return{}},[b,m]);return C.useMemo(()=>f?{reference:w,floating:$,item:_}:{},[f,w,$,_])}var Gv={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const[ZX,Kr]=Ll("ScrollArea.Root component was not found in tree");function pl(t,e){const n=Fs(e);zl(()=>{let r=0;if(t){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return s.observe(t),()=>{window.cancelAnimationFrame(r),s.unobserve(t)}}},[t,n])}const JX=C.forwardRef((t,e)=>{const{style:n,...r}=t,s=Kr(),[l,c]=C.useState(0),[f,m]=C.useState(0),p=!!(l&&f);return pl(s.scrollbarX,()=>{const g=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(g),m(g)}),pl(s.scrollbarY,()=>{const g=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(g),c(g)}),p?x.jsx("div",{...r,ref:e,style:{...n,width:l,height:f}}):null}),WX=C.forwardRef((t,e)=>{const n=Kr(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?x.jsx(JX,{...t,ref:e}):null}),tQ={scrollHideDelay:1e3,type:"hover"},RR=C.forwardRef((t,e)=>{const{type:n,scrollHideDelay:r,scrollbars:s,getStyles:l,...c}=bt("ScrollAreaRoot",tQ,t),[f,m]=C.useState(null),[p,g]=C.useState(null),[b,E]=C.useState(null),[S,T]=C.useState(null),[w,$]=C.useState(null),[_,L]=C.useState(0),[j,P]=C.useState(0),[H,F]=C.useState(!1),[z,k]=C.useState(!1),W=xi(e,et=>m(et));return x.jsx(ZX,{value:{type:n,scrollHideDelay:r,scrollArea:f,viewport:p,onViewportChange:g,content:b,onContentChange:E,scrollbarX:S,onScrollbarXChange:T,scrollbarXEnabled:H,onScrollbarXEnabledChange:F,scrollbarY:w,onScrollbarYChange:$,scrollbarYEnabled:z,onScrollbarYEnabledChange:k,onCornerWidthChange:L,onCornerHeightChange:P,getStyles:l},children:x.jsx(ht,{...c,ref:W,__vars:{"--sa-corner-width":s!=="xy"?"0px":`${_}px`,"--sa-corner-height":s!=="xy"?"0px":`${j}px`}})})});RR.displayName="@mantine/core/ScrollAreaRoot";function OR(t,e){const n=t/e;return Number.isNaN(n)?0:n}function ah(t){const e=OR(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function NR(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function eQ(t,[e,n]){return Math.min(n,Math.max(e,t))}function r2(t,e,n="ltr"){const r=ah(e),s=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,l=e.scrollbar.size-s,c=e.content-e.viewport,f=l-r,m=n==="ltr"?[0,c]:[c*-1,0],p=eQ(t,m);return NR([0,c],[0,f])(p)}function nQ(t,e,n,r="ltr"){const s=ah(n),l=s/2,c=e||l,f=s-c,m=n.scrollbar.paddingStart+c,p=n.scrollbar.size-n.scrollbar.paddingEnd-f,g=n.content-n.viewport,b=r==="ltr"?[0,g]:[g*-1,0];return NR([m,p],b)(t)}function _R(t,e){return t>0&&t<e}function Qd(t){return t?parseInt(t,10):0}function Vs(t,e,{checkForDefaultPrevented:n=!0}={}){return r=>{t?.(r),(n===!1||!r.defaultPrevented)&&e?.(r)}}const[rQ,DR]=Ll("ScrollAreaScrollbar was not found in tree"),jR=C.forwardRef((t,e)=>{const{sizes:n,hasThumb:r,onThumbChange:s,onThumbPointerUp:l,onThumbPointerDown:c,onThumbPositionChange:f,onDragScroll:m,onWheelScroll:p,onResize:g,...b}=t,E=Kr(),[S,T]=C.useState(null),w=xi(e,k=>T(k)),$=C.useRef(null),_=C.useRef(""),{viewport:L}=E,j=n.content-n.viewport,P=Fs(p),H=Fs(f),F=Wm(g,10),z=k=>{if($.current){const W=k.clientX-$.current.left,et=k.clientY-$.current.top;m({x:W,y:et})}};return C.useEffect(()=>{const k=W=>{const et=W.target;S?.contains(et)&&P(W,j)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[L,S,j,P]),C.useEffect(H,[n,H]),pl(S,F),pl(E.content,F),x.jsx(rQ,{value:{scrollbar:S,hasThumb:r,onThumbChange:Fs(s),onThumbPointerUp:Fs(l),onThumbPositionChange:H,onThumbPointerDown:Fs(c)},children:x.jsx("div",{...b,ref:w,"data-mantine-scrollbar":!0,style:{position:"absolute",...b.style},onPointerDown:Vs(t.onPointerDown,k=>{k.preventDefault(),k.button===0&&(k.target.setPointerCapture(k.pointerId),$.current=S.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",z(k))}),onPointerMove:Vs(t.onPointerMove,z),onPointerUp:Vs(t.onPointerUp,k=>{const W=k.target;W.hasPointerCapture(k.pointerId)&&(k.preventDefault(),W.releasePointerCapture(k.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,$.current=null}})})}),IR=C.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:s,...l}=t,c=Kr(),[f,m]=C.useState(),p=C.useRef(null),g=xi(e,p,c.onScrollbarXChange);return C.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),x.jsx(jR,{"data-orientation":"horizontal",...l,ref:g,sizes:n,style:{...s,"--sa-thumb-width":`${ah(n)}px`},onThumbPointerDown:b=>t.onThumbPointerDown(b.x),onDragScroll:b=>t.onDragScroll(b.x),onWheelScroll:(b,E)=>{if(c.viewport){const S=c.viewport.scrollLeft+b.deltaX;t.onWheelScroll(S),_R(S,E)&&b.preventDefault()}},onResize:()=>{p.current&&c.viewport&&f&&r({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:Qd(f.paddingLeft),paddingEnd:Qd(f.paddingRight)}})}})});IR.displayName="@mantine/core/ScrollAreaScrollbarX";const LR=C.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:s,...l}=t,c=Kr(),[f,m]=C.useState(),p=C.useRef(null),g=xi(e,p,c.onScrollbarYChange);return C.useEffect(()=>{p.current&&m(window.getComputedStyle(p.current))},[]),x.jsx(jR,{...l,"data-orientation":"vertical",ref:g,sizes:n,style:{"--sa-thumb-height":`${ah(n)}px`,...s},onThumbPointerDown:b=>t.onThumbPointerDown(b.y),onDragScroll:b=>t.onDragScroll(b.y),onWheelScroll:(b,E)=>{if(c.viewport){const S=c.viewport.scrollTop+b.deltaY;t.onWheelScroll(S),_R(S,E)&&b.preventDefault()}},onResize:()=>{p.current&&c.viewport&&f&&r({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:Qd(f.paddingTop),paddingEnd:Qd(f.paddingBottom)}})}})});LR.displayName="@mantine/core/ScrollAreaScrollbarY";const lh=C.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,{dir:s}=Iv(),l=Kr(),c=C.useRef(null),f=C.useRef(0),[m,p]=C.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=OR(m.viewport,m.content),b={...r,sizes:m,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:S=>{c.current=S},onThumbPointerUp:()=>{f.current=0},onThumbPointerDown:S=>{f.current=S}},E=(S,T)=>nQ(S,f.current,m,T);return n==="horizontal"?x.jsx(IR,{...b,ref:e,onThumbPositionChange:()=>{if(l.viewport&&c.current){const S=l.viewport.scrollLeft,T=r2(S,m,s);c.current.style.transform=`translate3d(${T}px, 0, 0)`}},onWheelScroll:S=>{l.viewport&&(l.viewport.scrollLeft=S)},onDragScroll:S=>{l.viewport&&(l.viewport.scrollLeft=E(S,s))}}):n==="vertical"?x.jsx(LR,{...b,ref:e,onThumbPositionChange:()=>{if(l.viewport&&c.current){const S=l.viewport.scrollTop,T=r2(S,m);m.scrollbar.size===0?c.current.style.setProperty("--thumb-opacity","0"):c.current.style.setProperty("--thumb-opacity","1"),c.current.style.transform=`translate3d(0, ${T}px, 0)`}},onWheelScroll:S=>{l.viewport&&(l.viewport.scrollTop=S)},onDragScroll:S=>{l.viewport&&(l.viewport.scrollTop=E(S))}}):null});lh.displayName="@mantine/core/ScrollAreaScrollbarVisible";const Yv=C.forwardRef((t,e)=>{const n=Kr(),{forceMount:r,...s}=t,[l,c]=C.useState(!1),f=t.orientation==="horizontal",m=Wm(()=>{if(n.viewport){const p=n.viewport.offsetWidth<n.viewport.scrollWidth,g=n.viewport.offsetHeight<n.viewport.scrollHeight;c(f?p:g)}},10);return pl(n.viewport,m),pl(n.content,m),r||l?x.jsx(lh,{"data-state":l?"visible":"hidden",...s,ref:e}):null});Yv.displayName="@mantine/core/ScrollAreaScrollbarAuto";const zR=C.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Kr(),[l,c]=C.useState(!1);return C.useEffect(()=>{const{scrollArea:f}=s;let m=0;if(f){const p=()=>{window.clearTimeout(m),c(!0)},g=()=>{m=window.setTimeout(()=>c(!1),s.scrollHideDelay)};return f.addEventListener("pointerenter",p),f.addEventListener("pointerleave",g),()=>{window.clearTimeout(m),f.removeEventListener("pointerenter",p),f.removeEventListener("pointerleave",g)}}},[s.scrollArea,s.scrollHideDelay]),n||l?x.jsx(Yv,{"data-state":l?"visible":"hidden",...r,ref:e}):null});zR.displayName="@mantine/core/ScrollAreaScrollbarHover";const oQ=C.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Kr(),l=t.orientation==="horizontal",[c,f]=C.useState("hidden"),m=Wm(()=>f("idle"),100);return C.useEffect(()=>{if(c==="idle"){const p=window.setTimeout(()=>f("hidden"),s.scrollHideDelay);return()=>window.clearTimeout(p)}},[c,s.scrollHideDelay]),C.useEffect(()=>{const{viewport:p}=s,g=l?"scrollLeft":"scrollTop";if(p){let b=p[g];const E=()=>{const S=p[g];b!==S&&(f("scrolling"),m()),b=S};return p.addEventListener("scroll",E),()=>p.removeEventListener("scroll",E)}},[s.viewport,l,m]),n||c!=="hidden"?x.jsx(lh,{"data-state":c==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:Vs(t.onPointerEnter,()=>f("interacting")),onPointerLeave:Vs(t.onPointerLeave,()=>f("idle"))}):null}),u0=C.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Kr(),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=s,f=t.orientation==="horizontal";return C.useEffect(()=>(f?l(!0):c(!0),()=>{f?l(!1):c(!1)}),[f,l,c]),s.type==="hover"?x.jsx(zR,{...r,ref:e,forceMount:n}):s.type==="scroll"?x.jsx(oQ,{...r,ref:e,forceMount:n}):s.type==="auto"?x.jsx(Yv,{...r,ref:e,forceMount:n}):s.type==="always"?x.jsx(lh,{...r,ref:e}):null});u0.displayName="@mantine/core/ScrollAreaScrollbar";function iQ(t,e=()=>{}){let n={left:t.scrollLeft,top:t.scrollTop},r=0;return(function s(){const l={left:t.scrollLeft,top:t.scrollTop},c=n.left!==l.left,f=n.top!==l.top;(c||f)&&e(),n=l,r=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(r)}const BR=C.forwardRef((t,e)=>{const{style:n,...r}=t,s=Kr(),l=DR(),{onThumbPositionChange:c}=l,f=xi(e,g=>l.onThumbChange(g)),m=C.useRef(void 0),p=Wm(()=>{m.current&&(m.current(),m.current=void 0)},100);return C.useEffect(()=>{const{viewport:g}=s;if(g){const b=()=>{if(p(),!m.current){const E=iQ(g,c);m.current=E,c()}};return c(),g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[s.viewport,p,c]),x.jsx("div",{"data-state":l.hasThumb?"visible":"hidden",...r,ref:f,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Vs(t.onPointerDownCapture,g=>{const E=g.target.getBoundingClientRect(),S=g.clientX-E.left,T=g.clientY-E.top;l.onThumbPointerDown({x:S,y:T})}),onPointerUp:Vs(t.onPointerUp,l.onThumbPointerUp)})});BR.displayName="@mantine/core/ScrollAreaThumb";const c0=C.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=DR();return n||s.hasThumb?x.jsx(BR,{ref:e,...r}):null});c0.displayName="@mantine/core/ScrollAreaThumb";const UR=C.forwardRef(({children:t,style:e,onWheel:n,...r},s)=>{const l=Kr(),c=xi(s,l.onViewportChange),f=m=>{if(n?.(m),l.scrollbarXEnabled&&l.viewport&&m.shiftKey){const{scrollTop:p,scrollHeight:g,clientHeight:b,scrollWidth:E,clientWidth:S}=l.viewport,T=p<1,w=p>=g-b-1;E>S&&(T||w)&&m.stopPropagation()}};return x.jsx(ht,{...r,ref:c,onWheel:f,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e},children:x.jsx("div",{...l.getStyles("content"),ref:l.onContentChange,children:t})})});UR.displayName="@mantine/core/ScrollAreaViewport";const kR={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},sQ=(t,{scrollbarSize:e,overscrollBehavior:n,scrollbars:r})=>{let s=n;return n&&r&&(r==="x"?s=`${n} auto`:r==="y"&&(s=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":ut(e),"--scrollarea-over-scroll-behavior":s}}},Hl=It((t,e)=>{const n=bt("ScrollArea",kR,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,scrollbarSize:m,vars:p,type:g,scrollHideDelay:b,viewportProps:E,viewportRef:S,onScrollPositionChange:T,children:w,offsetScrollbars:$,scrollbars:_,onBottomReached:L,onTopReached:j,overscrollBehavior:P,attributes:H,...F}=n,[z,k]=C.useState(!1),[W,et]=C.useState(!1),[it,ct]=C.useState(!1),dt=oe({name:"ScrollArea",props:n,classes:Gv,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:H,vars:p,varsResolver:sQ}),Y=C.useRef(null),Z=CR([S,Y]);return C.useEffect(()=>{if(!Y.current||$!=="present")return;const O=Y.current,B=new ResizeObserver(()=>{const{scrollHeight:D,clientHeight:tt,scrollWidth:nt,clientWidth:N}=O;et(D>tt),ct(nt>N)});return B.observe(O),()=>B.disconnect()},[Y,$]),x.jsxs(RR,{getStyles:dt,type:g==="never"?"always":g,scrollHideDelay:b,ref:e,scrollbars:_,...dt("root"),...F,children:[x.jsx(UR,{...E,...dt("viewport",{style:E?.style}),ref:Z,"data-offset-scrollbars":$===!0?"xy":$||void 0,"data-scrollbars":_||void 0,"data-horizontal-hidden":$==="present"&&!it?"true":void 0,"data-vertical-hidden":$==="present"&&!W?"true":void 0,onScroll:O=>{E?.onScroll?.(O),T?.({x:O.currentTarget.scrollLeft,y:O.currentTarget.scrollTop});const{scrollTop:B,scrollHeight:D,clientHeight:tt}=O.currentTarget;B-(D-tt)>=-.8&&L?.(),B===0&&j?.()},children:w}),(_==="xy"||_==="x")&&x.jsx(u0,{...dt("scrollbar"),orientation:"horizontal","data-hidden":g==="never"||$==="present"&&!it?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:x.jsx(c0,{...dt("thumb")})}),(_==="xy"||_==="y")&&x.jsx(u0,{...dt("scrollbar"),orientation:"vertical","data-hidden":g==="never"||$==="present"&&!W?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:x.jsx(c0,{...dt("thumb")})}),x.jsx(WX,{...dt("corner"),"data-hovered":z||void 0,"data-hidden":g==="never"||void 0})]})});Hl.displayName="@mantine/core/ScrollArea";const Vv=It((t,e)=>{const{children:n,classNames:r,styles:s,scrollbarSize:l,scrollHideDelay:c,type:f,dir:m,offsetScrollbars:p,overscrollBehavior:g,viewportRef:b,onScrollPositionChange:E,unstyled:S,variant:T,viewportProps:w,scrollbars:$,style:_,vars:L,onBottomReached:j,onTopReached:P,onOverflowChange:H,...F}=bt("ScrollAreaAutosize",kR,t),z=C.useRef(null),k=CR([b,z]),[W,et]=C.useState(!1),it=C.useRef(!1);return C.useEffect(()=>{if(!H)return;const ct=z.current;if(!ct)return;const dt=()=>{const Z=ct.scrollHeight>ct.clientHeight;Z!==W&&(it.current?H?.(Z):(it.current=!0,Z&&H?.(!0)),et(Z))};dt();const Y=new ResizeObserver(dt);return Y.observe(ct),()=>Y.disconnect()},[H,W]),x.jsx(ht,{...F,ref:e,style:[{display:"flex",overflow:"hidden"},_],children:x.jsx(ht,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...$==="y"&&{minWidth:0},...$==="x"&&{minHeight:0},...$==="xy"&&{minWidth:0,minHeight:0},...$===!1&&{minWidth:0,minHeight:0}},children:x.jsx(Hl,{classNames:r,styles:s,scrollHideDelay:c,scrollbarSize:l,type:f,dir:m,offsetScrollbars:p,overscrollBehavior:g,viewportRef:k,onScrollPositionChange:E,unstyled:S,variant:T,viewportProps:w,vars:L,scrollbars:$,onBottomReached:j,onTopReached:P,"data-autosize":"true",children:n})})})});Hl.classes=Gv;Vv.displayName="@mantine/core/ScrollAreaAutosize";Vv.classes=Gv;Hl.Autosize=Vv;var PR={root:"m_87cf2631"};const aQ={__staticSelector:"UnstyledButton"},Fl=po((t,e)=>{const n=bt("UnstyledButton",aQ,t),{className:r,component:s="button",__staticSelector:l,unstyled:c,classNames:f,styles:m,style:p,attributes:g,...b}=n,E=oe({name:l,props:n,classes:PR,className:r,style:p,classNames:f,styles:m,unstyled:c,attributes:g});return x.jsx(ht,{...E("root",{focusable:!0}),component:s,ref:e,type:s==="button"?"button":void 0,...b})});Fl.classes=PR;Fl.displayName="@mantine/core/UnstyledButton";var HR={root:"m_515a97f8"};const Kv=It((t,e)=>{const n=bt("VisuallyHidden",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,attributes:p,...g}=n,b=oe({name:"VisuallyHidden",classes:HR,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:p});return x.jsx(ht,{component:"span",ref:e,...b("root"),...g})});Kv.classes=HR;Kv.displayName="@mantine/core/VisuallyHidden";var FR={root:"m_1b7284a3"};const lQ=(t,{radius:e,shadow:n})=>({root:{"--paper-radius":e===void 0?void 0:Tr(e),"--paper-shadow":HM(n)}}),Xv=po((t,e)=>{const n=bt("Paper",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,withBorder:m,vars:p,radius:g,shadow:b,variant:E,mod:S,attributes:T,...w}=n,$=oe({name:"Paper",props:n,classes:FR,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:T,vars:p,varsResolver:lQ});return x.jsx(ht,{ref:e,mod:[{"data-with-border":m},S],...$("root"),variant:E,...w})});Xv.classes=FR;Xv.displayName="@mantine/core/Paper";function o2(t,e,n,r){return t==="center"||r==="center"?{top:e}:t==="end"?{bottom:n}:t==="start"?{top:n}:{}}function i2(t,e,n,r,s){return t==="center"||r==="center"?{left:e}:t==="end"?{[s==="ltr"?"right":"left"]:n}:t==="start"?{[s==="ltr"?"left":"right"]:n}:{}}const uQ={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function cQ({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:s,arrowX:l,arrowY:c,dir:f}){const[m,p="center"]=t.split("-"),g={width:e,height:e,transform:"rotate(45deg)",position:"absolute",[uQ[m]]:r},b=-e/2;return m==="left"?{...g,...o2(p,c,n,s),right:b,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:m==="right"?{...g,...o2(p,c,n,s),left:b,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:m==="top"?{...g,...i2(p,l,n,s,f),bottom:b,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:m==="bottom"?{...g,...i2(p,l,n,s,f),top:b,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const f0=C.forwardRef(({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:s,visible:l,arrowX:c,arrowY:f,style:m,...p},g)=>{const{dir:b}=Iv();return l?x.jsx("div",{...p,ref:g,style:{...m,...cQ({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:s,dir:b,arrowX:c,arrowY:f})}}):null});f0.displayName="@mantine/core/FloatingArrow";function fQ(t,e){if(t==="rtl"&&(e.includes("right")||e.includes("left"))){const[n,r]=e.split("-"),s=n==="right"?"left":"right";return r===void 0?s:`${s}-${r}`}return e}var qR={root:"m_9814e45f"};const dQ={zIndex:wr("modal")},mQ=(t,{gradient:e,color:n,backgroundOpacity:r,blur:s,radius:l,zIndex:c})=>({root:{"--overlay-bg":e||(n!==void 0||r!==void 0)&&Eo(n||"#000",r??.6)||void 0,"--overlay-filter":s?`blur(${ut(s)})`:void 0,"--overlay-radius":l===void 0?void 0:Tr(l),"--overlay-z-index":c?.toString()}}),Qv=po((t,e)=>{const n=bt("Overlay",dQ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,fixed:p,center:g,children:b,radius:E,zIndex:S,gradient:T,blur:w,color:$,backgroundOpacity:_,mod:L,attributes:j,...P}=n,H=oe({name:"Overlay",props:n,classes:qR,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:j,vars:m,varsResolver:mQ});return x.jsx(ht,{ref:e,...H("root"),mod:[{center:g,fixed:p},L],...P,children:b})});Qv.classes=qR;Qv.displayName="@mantine/core/Overlay";function xy(t){const e=document.createElement("div");return e.setAttribute("data-portal","true"),typeof t.className=="string"&&e.classList.add(...t.className.split(" ").filter(Boolean)),typeof t.style=="object"&&Object.assign(e.style,t.style),typeof t.id=="string"&&e.setAttribute("id",t.id),e}function hQ({target:t,reuseTargetNode:e,...n}){if(t)return typeof t=="string"?document.querySelector(t)||xy(n):t;if(e){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const s=xy(n);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return xy(n)}const pQ={reuseTargetNode:!0},GR=It((t,e)=>{const{children:n,target:r,reuseTargetNode:s,...l}=bt("Portal",pQ,t),[c,f]=C.useState(!1),m=C.useRef(null);return zl(()=>(f(!0),m.current=hQ({target:r,reuseTargetNode:s,...l}),Wy(e,m.current),!r&&!s&&m.current&&document.body.appendChild(m.current),()=>{!r&&!s&&m.current&&document.body.removeChild(m.current)}),[r]),!c||!m.current?null:eh.createPortal(x.jsx(x.Fragment,{children:n}),m.current)});GR.displayName="@mantine/core/Portal";const Ws=It(({withinPortal:t=!0,children:e,...n},r)=>ZM()==="test"||!t?x.jsx(x.Fragment,{children:e}):x.jsx(GR,{ref:r,...n,children:e}));Ws.displayName="@mantine/core/OptionalPortal";const Qu=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),bd={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Qu("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Qu("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Qu("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Qu("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Qu("top"),common:{transformOrigin:"top right"}}},s2={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function gQ({transition:t,state:e,duration:n,timingFunction:r}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof t=="string"?t in bd?{transitionProperty:bd[t].transitionProperty,...s,...bd[t].common,...bd[t][s2[e]]}:{}:{transitionProperty:t.transitionProperty,...s,...t.common,...t[s2[e]]}}function yQ({duration:t,exitDuration:e,timingFunction:n,mounted:r,onEnter:s,onExit:l,onEntered:c,onExited:f,enterDelay:m,exitDelay:p}){const g=Kn(),b=th(),E=g.respectReducedMotion?b:!1,[S,T]=C.useState(E?0:t),[w,$]=C.useState(r?"entered":"exited"),_=C.useRef(-1),L=C.useRef(-1),j=C.useRef(-1);function P(){window.clearTimeout(_.current),window.clearTimeout(L.current),cancelAnimationFrame(j.current)}const H=z=>{P();const k=z?s:l,W=z?c:f,et=E?0:z?t:e;T(et),et===0?(typeof k=="function"&&k(),typeof W=="function"&&W(),$(z?"entered":"exited")):j.current=requestAnimationFrame(()=>{Wu.flushSync(()=>{$(z?"pre-entering":"pre-exiting")}),j.current=requestAnimationFrame(()=>{typeof k=="function"&&k(),$(z?"entering":"exiting"),_.current=window.setTimeout(()=>{typeof W=="function"&&W(),$(z?"entered":"exited")},et)})})},F=z=>{if(P(),typeof(z?m:p)!="number"){H(z);return}L.current=window.setTimeout(()=>{H(z)},z?m:p)};return Bl(()=>{F(r)},[r]),C.useEffect(()=>()=>{P()},[]),{transitionDuration:S,transitionStatus:w,transitionTimingFunction:n||"ease"}}function ta({keepMounted:t,transition:e="fade",duration:n=250,exitDuration:r=n,mounted:s,children:l,timingFunction:c="ease",onExit:f,onEntered:m,onEnter:p,onExited:g,enterDelay:b,exitDelay:E}){const S=ZM(),{transitionDuration:T,transitionStatus:w,transitionTimingFunction:$}=yQ({mounted:s,exitDuration:r,duration:n,timingFunction:c,onExit:f,onEntered:m,onEnter:p,onExited:g,enterDelay:b,exitDelay:E});return T===0||S==="test"?s?x.jsx(x.Fragment,{children:l({})}):t?l({display:"none"}):null:w==="exited"?t?l({display:"none"}):null:x.jsx(x.Fragment,{children:l(gQ({transition:e,duration:T,state:w,timingFunction:$}))})}ta.displayName="@mantine/core/Transition";function Zv({children:t,active:e=!0,refProp:n="ref",innerRef:r}){const s=OY(e),l=xi(s,r),c=$v(t);return c?C.cloneElement(c,{[n]:l}):t}function YR(t){return x.jsx(Kv,{tabIndex:-1,"data-autofocus":!0,...t})}Zv.displayName="@mantine/core/FocusTrap";YR.displayName="@mantine/core/FocusTrapInitialFocus";Zv.InitialFocus=YR;var ro={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const VR=C.forwardRef(({className:t,...e},n)=>x.jsxs(ht,{component:"span",className:Yn(ro.barsLoader,t),...e,ref:n,children:[x.jsx("span",{className:ro.bar}),x.jsx("span",{className:ro.bar}),x.jsx("span",{className:ro.bar})]}));VR.displayName="@mantine/core/Bars";const KR=C.forwardRef(({className:t,...e},n)=>x.jsxs(ht,{component:"span",className:Yn(ro.dotsLoader,t),...e,ref:n,children:[x.jsx("span",{className:ro.dot}),x.jsx("span",{className:ro.dot}),x.jsx("span",{className:ro.dot})]}));KR.displayName="@mantine/core/Dots";const XR=C.forwardRef(({className:t,...e},n)=>x.jsx(ht,{component:"span",className:Yn(ro.ovalLoader,t),...e,ref:n}));XR.displayName="@mantine/core/Oval";const QR={bars:VR,oval:XR,dots:KR},bQ={loaders:QR,type:"oval"},vQ=(t,{size:e,color:n})=>({root:{"--loader-size":ln(e,"loader-size"),"--loader-color":n?Zs(n,t):void 0}}),ql=It((t,e)=>{const n=bt("Loader",bQ,t),{size:r,color:s,type:l,vars:c,className:f,style:m,classNames:p,styles:g,unstyled:b,loaders:E,variant:S,children:T,attributes:w,...$}=n,_=oe({name:"Loader",props:n,classes:ro,className:f,style:m,classNames:p,styles:g,unstyled:b,attributes:w,vars:c,varsResolver:vQ});return T?x.jsx(ht,{..._("root"),ref:e,...$,children:T}):x.jsx(ht,{..._("root"),ref:e,component:E[l],variant:S,size:r,...$})});ql.defaultLoaders=QR;ql.classes=ro;ql.displayName="@mantine/core/Loader";var Gl={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const a2={orientation:"horizontal"},SQ=(t,{borderWidth:e})=>({group:{"--ai-border-width":ut(e)}}),Jv=It((t,e)=>{const n=bt("ActionIconGroup",a2,t),{className:r,style:s,classNames:l,styles:c,unstyled:f,orientation:m,vars:p,borderWidth:g,variant:b,mod:E,attributes:S,...T}=bt("ActionIconGroup",a2,t),w=oe({name:"ActionIconGroup",props:n,classes:Gl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:p,varsResolver:SQ,rootSelector:"group"});return x.jsx(ht,{...w("group"),ref:e,variant:b,mod:[{"data-orientation":m},E],role:"group",...T})});Jv.classes=Gl;Jv.displayName="@mantine/core/ActionIconGroup";const EQ=(t,{radius:e,color:n,gradient:r,variant:s,autoContrast:l,size:c})=>{const f=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:l});return{groupSection:{"--section-height":ln(c,"section-height"),"--section-padding-x":ln(c,"section-padding-x"),"--section-fz":ar(c),"--section-radius":e===void 0?void 0:Tr(e),"--section-bg":n||s?f.background:void 0,"--section-color":f.color,"--section-bd":n||s?f.border:void 0}}},Wv=It((t,e)=>{const n=bt("ActionIconGroupSection",null,t),{className:r,style:s,classNames:l,styles:c,unstyled:f,vars:m,variant:p,gradient:g,radius:b,autoContrast:E,attributes:S,...T}=n,w=oe({name:"ActionIconGroupSection",props:n,classes:Gl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:m,varsResolver:EQ,rootSelector:"groupSection"});return x.jsx(ht,{...w("groupSection"),ref:e,variant:p,...T})});Wv.classes=Gl;Wv.displayName="@mantine/core/ActionIconGroupSection";const xQ=(t,{size:e,radius:n,variant:r,gradient:s,color:l,autoContrast:c})=>{const f=t.variantColorResolver({color:l||t.primaryColor,theme:t,gradient:s,variant:r||"filled",autoContrast:c});return{root:{"--ai-size":ln(e,"ai-size"),"--ai-radius":n===void 0?void 0:Tr(n),"--ai-bg":l||r?f.background:void 0,"--ai-hover":l||r?f.hover:void 0,"--ai-hover-color":l||r?f.hoverColor:void 0,"--ai-color":f.color,"--ai-bd":l||r?f.border:void 0}}},gl=po((t,e)=>{const n=bt("ActionIcon",null,t),{className:r,unstyled:s,variant:l,classNames:c,styles:f,style:m,loading:p,loaderProps:g,size:b,color:E,radius:S,__staticSelector:T,gradient:w,vars:$,children:_,disabled:L,"data-disabled":j,autoContrast:P,mod:H,attributes:F,...z}=n,k=oe({name:["ActionIcon",T],props:n,className:r,style:m,classes:Gl,classNames:c,styles:f,unstyled:s,attributes:F,vars:$,varsResolver:xQ});return x.jsxs(Fl,{...k("root",{active:!L&&!p&&!j}),...z,unstyled:s,variant:l,size:b,disabled:L||p,ref:e,mod:[{loading:p,disabled:L||j},H],children:[typeof p=="boolean"&&x.jsx(ta,{mounted:p,transition:"slide-down",duration:150,children:W=>x.jsx(ht,{component:"span",...k("loader",{style:W}),"aria-hidden":!0,children:x.jsx(ql,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...g})})}),x.jsx(ht,{component:"span",mod:{loading:p},...k("icon"),children:_})]})});gl.classes=Gl;gl.displayName="@mantine/core/ActionIcon";gl.Group=Jv;gl.GroupSection=Wv;const ZR=C.forwardRef(({size:t="var(--cb-icon-size, 70%)",style:e,...n},r)=>x.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:t,height:t},ref:r,...n,children:x.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));ZR.displayName="@mantine/core/CloseIcon";var JR={root:"m_86a44da5","root--subtle":"m_220c80f2"};const wQ={variant:"subtle"},TQ=(t,{size:e,radius:n,iconSize:r})=>({root:{"--cb-size":ln(e,"cb-size"),"--cb-radius":n===void 0?void 0:Tr(n),"--cb-icon-size":ut(r)}}),Hc=po((t,e)=>{const n=bt("CloseButton",wQ,t),{iconSize:r,children:s,vars:l,radius:c,className:f,classNames:m,style:p,styles:g,unstyled:b,"data-disabled":E,disabled:S,variant:T,icon:w,mod:$,attributes:_,__staticSelector:L,...j}=n,P=oe({name:L||"CloseButton",props:n,className:f,style:p,classes:JR,classNames:m,styles:g,unstyled:b,attributes:_,vars:l,varsResolver:TQ});return x.jsxs(Fl,{ref:e,...j,unstyled:b,variant:T,disabled:S,mod:[{disabled:S||E},$],...P("root",{variant:T,active:!S&&!E}),children:[w||x.jsx(ZR,{}),s]})});Hc.classes=JR;Hc.displayName="@mantine/core/CloseButton";function CQ(t){return C.Children.toArray(t).filter(Boolean)}var WR={root:"m_4081bf90"};const AQ={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},$Q=(t,{grow:e,preventGrowOverflow:n,gap:r,align:s,justify:l,wrap:c},{childWidth:f})=>({root:{"--group-child-width":e&&n?f:void 0,"--group-gap":Cv(r),"--group-align":s,"--group-justify":l,"--group-wrap":c}}),Yl=It((t,e)=>{const n=bt("Group",AQ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,children:m,gap:p,align:g,justify:b,wrap:E,grow:S,preventGrowOverflow:T,vars:w,variant:$,__size:_,mod:L,attributes:j,...P}=n,H=CQ(m),F=H.length,z=Cv(p??"md"),W={childWidth:`calc(${100/F}% - (${z} - ${z} / ${F}))`},et=oe({name:"Group",props:n,stylesCtx:W,className:s,style:l,classes:WR,classNames:r,styles:c,unstyled:f,attributes:j,vars:w,varsResolver:$Q});return x.jsx(ht,{...et("root"),ref:e,variant:$,mod:[{grow:S},L],size:_,...P,children:H})});Yl.classes=WR;Yl.displayName="@mantine/core/Group";const[MQ,wi]=Ll("ModalBase component was not found in tree");function RQ({opened:t,transitionDuration:e}){const[n,r]=C.useState(t),s=C.useRef(-1),c=th()?0:e;return C.useEffect(()=>(t?(r(!0),window.clearTimeout(s.current)):c===0?r(!1):s.current=window.setTimeout(()=>r(!1),c),()=>window.clearTimeout(s.current)),[t,c]),n}function OQ({id:t,transitionProps:e,opened:n,trapFocus:r,closeOnEscape:s,onClose:l,returnFocus:c}){const f=Av(t),[m,p]=C.useState(!1),[g,b]=C.useState(!1),E=typeof e?.duration=="number"?e?.duration:200,S=RQ({opened:n,transitionDuration:E});return IY("keydown",T=>{T.key==="Escape"&&s&&!T.isComposing&&n&&T.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&l()},{capture:!0}),TY({opened:n,shouldReturnFocus:r&&c}),{_id:f,titleMounted:m,bodyMounted:g,shouldLockScroll:S,setTitleMounted:p,setBodyMounted:b}}const tO=C.forwardRef(({keepMounted:t,opened:e,onClose:n,id:r,transitionProps:s,onExitTransitionEnd:l,onEnterTransitionEnd:c,trapFocus:f,closeOnEscape:m,returnFocus:p,closeOnClickOutside:g,withinPortal:b,portalProps:E,lockScroll:S,children:T,zIndex:w,shadow:$,padding:_,__vars:L,unstyled:j,removeScrollProps:P,...H},F)=>{const{_id:z,titleMounted:k,bodyMounted:W,shouldLockScroll:et,setTitleMounted:it,setBodyMounted:ct}=OQ({id:r,transitionProps:s,opened:e,trapFocus:f,closeOnEscape:m,onClose:n,returnFocus:p}),{key:dt,...Y}=P||{};return x.jsx(Ws,{...E,withinPortal:b,children:x.jsx(MQ,{value:{opened:e,onClose:n,closeOnClickOutside:g,onExitTransitionEnd:l,onEnterTransitionEnd:c,transitionProps:{...s,keepMounted:t},getTitleId:()=>`${z}-title`,getBodyId:()=>`${z}-body`,titleMounted:k,bodyMounted:W,setTitleMounted:it,setBodyMounted:ct,trapFocus:f,closeOnEscape:m,zIndex:w,unstyled:j},children:x.jsx(Yd,{enabled:et&&S,...Y,children:x.jsx(ht,{ref:F,...H,__vars:{...L,"--mb-z-index":(w||wr("modal")).toString(),"--mb-shadow":HM($),"--mb-padding":Cv(_)},children:T})},dt)})})});tO.displayName="@mantine/core/ModalBase";var yl={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function NQ(){const t=wi();return C.useEffect(()=>(t.setBodyMounted(!0),()=>t.setBodyMounted(!1)),[]),t.getBodyId()}const eO=C.forwardRef(({className:t,...e},n)=>{const r=NQ(),s=wi();return x.jsx(ht,{ref:n,...e,id:r,className:Yn({[yl.body]:!s.unstyled},t)})});eO.displayName="@mantine/core/ModalBaseBody";const nO=C.forwardRef(({className:t,onClick:e,...n},r)=>{const s=wi();return x.jsx(Hc,{ref:r,...n,onClick:l=>{s.onClose(),e?.(l)},className:Yn({[yl.close]:!s.unstyled},t),unstyled:s.unstyled})});nO.displayName="@mantine/core/ModalBaseCloseButton";const rO=C.forwardRef(({transitionProps:t,className:e,innerProps:n,onKeyDown:r,style:s,...l},c)=>{const f=wi();return x.jsx(ta,{mounted:f.opened,transition:"pop",...f.transitionProps,onExited:()=>{f.onExitTransitionEnd?.(),f.transitionProps?.onExited?.()},onEntered:()=>{f.onEnterTransitionEnd?.(),f.transitionProps?.onEntered?.()},...t,children:m=>x.jsx("div",{...n,className:Yn({[yl.inner]:!f.unstyled},n.className),children:x.jsx(Zv,{active:f.opened&&f.trapFocus,innerRef:c,children:x.jsx(Xv,{...l,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":f.bodyMounted?f.getBodyId():void 0,"aria-labelledby":f.titleMounted?f.getTitleId():void 0,style:[s,m],className:Yn({[yl.content]:!f.unstyled},e),unstyled:f.unstyled,children:l.children})})})})});rO.displayName="@mantine/core/ModalBaseContent";const oO=C.forwardRef(({className:t,...e},n)=>{const r=wi();return x.jsx(ht,{component:"header",ref:n,className:Yn({[yl.header]:!r.unstyled},t),...e})});oO.displayName="@mantine/core/ModalBaseHeader";const _Q={duration:200,timingFunction:"ease",transition:"fade"};function DQ(t){const e=wi();return{..._Q,...e.transitionProps,...t}}const iO=C.forwardRef(({onClick:t,transitionProps:e,style:n,visible:r,...s},l)=>{const c=wi(),f=DQ(e);return x.jsx(ta,{mounted:r!==void 0?r:c.opened,...f,transition:"fade",children:m=>x.jsx(Qv,{ref:l,fixed:!0,style:[n,m],zIndex:c.zIndex,unstyled:c.unstyled,onClick:p=>{t?.(p),c.closeOnClickOutside&&c.onClose()},...s})})});iO.displayName="@mantine/core/ModalBaseOverlay";function jQ(){const t=wi();return C.useEffect(()=>(t.setTitleMounted(!0),()=>t.setTitleMounted(!1)),[]),t.getTitleId()}const sO=C.forwardRef(({className:t,...e},n)=>{const r=jQ(),s=wi();return x.jsx(ht,{component:"h2",ref:n,className:Yn({[yl.title]:!s.unstyled},t),...e,id:r})});sO.displayName="@mantine/core/ModalBaseTitle";function IQ({children:t}){return x.jsx(x.Fragment,{children:t})}const[LQ,zQ]=Tv({size:"sm"});var Xr={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const aO=It((t,e)=>{const n=bt("InputClearButton",null,t),{size:r,variant:s,vars:l,classNames:c,styles:f,...m}=n,p=zQ(),{resolvedClassNames:g,resolvedStyles:b}=oR({classNames:c,styles:f,props:n});return x.jsx(Hc,{variant:s||"transparent",ref:e,size:r||p?.size||"sm",classNames:g,styles:b,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...m.style},...m})});aO.displayName="@mantine/core/InputClearButton";const BQ={xs:7,sm:8,md:10,lg:12,xl:15};function UQ({__clearable:t,__clearSection:e,rightSection:n,__defaultRightSection:r,size:s="sm"}){const l=t&&e;return l&&(n||r)?x.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:BQ[s]},children:[l,n||r]}):n===null?null:n||l||r}const[kQ,uh]=Tv({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),PQ=(t,{size:e})=>({description:{"--input-description-size":e===void 0?void 0:`calc(${ar(e)} - ${ut(2)})`}}),ch=It((t,e)=>{const n=bt("InputDescription",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,size:p,__staticSelector:g,__inheritStyles:b=!0,attributes:E,variant:S,...T}=bt("InputDescription",null,n),w=uh(),$=oe({name:["InputWrapper",g],props:n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:E,rootSelector:"description",vars:m,varsResolver:PQ}),_=b&&w?.getStyles||$;return x.jsx(ht,{component:"p",ref:e,variant:S,size:p,..._("description",w?.getStyles?{className:s,style:l}:void 0),...T})});ch.classes=Xr;ch.displayName="@mantine/core/InputDescription";const HQ=(t,{size:e})=>({error:{"--input-error-size":e===void 0?void 0:`calc(${ar(e)} - ${ut(2)})`}}),fh=It((t,e)=>{const n=bt("InputError",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,size:p,attributes:g,__staticSelector:b,__inheritStyles:E=!0,variant:S,...T}=n,w=oe({name:["InputWrapper",b],props:n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:g,rootSelector:"error",vars:m,varsResolver:HQ}),$=uh(),_=E&&$?.getStyles||w;return x.jsx(ht,{component:"p",ref:e,variant:S,size:p,..._("error",$?.getStyles?{className:s,style:l}:void 0),...T})});fh.classes=Xr;fh.displayName="@mantine/core/InputError";const l2={labelElement:"label"},FQ=(t,{size:e})=>({label:{"--input-label-size":ar(e),"--input-asterisk-color":void 0}}),dh=It((t,e)=>{const n=bt("InputLabel",l2,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,labelElement:p,size:g,required:b,htmlFor:E,onMouseDown:S,children:T,__staticSelector:w,variant:$,mod:_,attributes:L,...j}=bt("InputLabel",l2,n),P=oe({name:["InputWrapper",w],props:n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:L,rootSelector:"label",vars:m,varsResolver:FQ}),H=uh(),F=H?.getStyles||P;return x.jsxs(ht,{...F("label",H?.getStyles?{className:s,style:l}:void 0),component:p,variant:$,size:g,ref:e,htmlFor:p==="label"?E:void 0,mod:[{required:b},_],onMouseDown:z=>{S?.(z),!z.defaultPrevented&&z.detail>1&&z.preventDefault()},...j,children:[T,b&&x.jsx("span",{...F("required"),"aria-hidden":!0,children:" *"})]})});dh.classes=Xr;dh.displayName="@mantine/core/InputLabel";const t1=It((t,e)=>{const n=bt("InputPlaceholder",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,__staticSelector:p,variant:g,error:b,mod:E,attributes:S,...T}=n,w=oe({name:["InputPlaceholder",p],props:n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:S,rootSelector:"placeholder"});return x.jsx(ht,{...w("placeholder"),mod:[{error:!!b},E],component:"span",variant:g,ref:e,...T})});t1.classes=Xr;t1.displayName="@mantine/core/InputPlaceholder";function qQ(t,{hasDescription:e,hasError:n}){const r=t.findIndex(m=>m==="input"),s=t.slice(0,r),l=t.slice(r+1),c=e&&s.includes("description")||n&&s.includes("error");return{offsetBottom:e&&l.includes("description")||n&&l.includes("error"),offsetTop:c}}const GQ={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},YQ=(t,{size:e})=>({label:{"--input-label-size":ar(e),"--input-asterisk-color":void 0},error:{"--input-error-size":e===void 0?void 0:`calc(${ar(e)} - ${ut(2)})`},description:{"--input-description-size":e===void 0?void 0:`calc(${ar(e)} - ${ut(2)})`}}),e1=It((t,e)=>{const n=bt("InputWrapper",GQ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,size:p,variant:g,__staticSelector:b,inputContainer:E,inputWrapperOrder:S,label:T,error:w,description:$,labelProps:_,descriptionProps:L,errorProps:j,labelElement:P,children:H,withAsterisk:F,id:z,required:k,__stylesApiProps:W,mod:et,attributes:it,...ct}=n,dt=oe({name:["InputWrapper",b],props:W||n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:it,vars:m,varsResolver:YQ}),Y={size:p,variant:g,__staticSelector:b},Z=Av(z),O=typeof F=="boolean"?F:k,B=j?.id||`${Z}-error`,D=L?.id||`${Z}-description`,tt=Z,nt=!!w&&typeof w!="boolean",N=!!$,G=`${nt?B:""} ${N?D:""}`,ot=G.trim().length>0?G.trim():void 0,ft=_?.id||`${Z}-label`,mt=T&&x.jsx(dh,{labelElement:P,id:ft,htmlFor:tt,required:O,...Y,..._,children:T},"label"),pt=N&&x.jsx(ch,{...L,...Y,size:L?.size||Y.size,id:L?.id||D,children:$},"description"),Tt=x.jsx(C.Fragment,{children:E(H)},"input"),Jt=nt&&C.createElement(fh,{...j,...Y,size:j?.size||Y.size,key:"error",id:j?.id||B},w),Ot=S.map(ie=>{switch(ie){case"label":return mt;case"input":return Tt;case"description":return pt;case"error":return Jt;default:return null}});return x.jsx(kQ,{value:{getStyles:dt,describedBy:ot,inputId:tt,labelId:ft,...qQ(S,{hasDescription:N,hasError:nt})},children:x.jsx(ht,{ref:e,variant:g,size:p,mod:[{error:!!w},et],...dt("root"),...ct,children:Ot})})});e1.classes=Xr;e1.displayName="@mantine/core/InputWrapper";const VQ={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},KQ=(t,e,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":ln(e.size,"input-height"),"--input-fz":ar(e.size),"--input-radius":e.radius===void 0?void 0:Tr(e.radius),"--input-left-section-width":e.leftSectionWidth!==void 0?ut(e.leftSectionWidth):void 0,"--input-right-section-width":e.rightSectionWidth!==void 0?ut(e.rightSectionWidth):void 0,"--input-padding-y":e.multiline?ln(e.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":e.leftSectionPointerEvents,"--input-right-section-pointer-events":e.rightSectionPointerEvents}}),pr=po((t,e)=>{const n=bt("Input",VQ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,required:m,__staticSelector:p,__stylesApiProps:g,size:b,wrapperProps:E,error:S,disabled:T,leftSection:w,leftSectionProps:$,leftSectionWidth:_,rightSection:L,rightSectionProps:j,rightSectionWidth:P,rightSectionPointerEvents:H,leftSectionPointerEvents:F,variant:z,vars:k,pointer:W,multiline:et,radius:it,id:ct,withAria:dt,withErrorStyles:Y,mod:Z,inputSize:O,attributes:B,__clearSection:D,__clearable:tt,__defaultRightSection:nt,...N}=n,{styleProps:G,rest:ot}=_v(N),ft=uh(),mt={offsetBottom:ft?.offsetBottom,offsetTop:ft?.offsetTop},pt=oe({name:["Input",p],props:g||n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:B,stylesCtx:mt,rootSelector:"wrapper",vars:k,varsResolver:KQ}),Tt=dt?{required:m,disabled:T,"aria-invalid":!!S,"aria-describedby":ft?.describedBy,id:ft?.inputId||ct}:{},Jt=UQ({__clearable:tt,__clearSection:D,rightSection:L,__defaultRightSection:nt,size:b});return x.jsx(LQ,{value:{size:b||"sm"},children:x.jsxs(ht,{...pt("wrapper"),...G,...E,mod:[{error:!!S&&Y,pointer:W,disabled:T,multiline:et,"data-with-right-section":!!Jt,"data-with-left-section":!!w},Z],variant:z,size:b,children:[w&&x.jsx("div",{...$,"data-position":"left",...pt("section",{className:$?.className,style:$?.style}),children:w}),x.jsx(ht,{component:"input",...ot,...Tt,ref:e,required:m,mod:{disabled:T,error:!!S&&Y},variant:z,__size:O,...pt("input")}),Jt&&x.jsx("div",{...j,"data-position":"right",...pt("section",{className:j?.className,style:j?.style}),children:Jt})]})})});pr.classes=Xr;pr.Wrapper=e1;pr.Label=dh;pr.Error=fh;pr.Description=ch;pr.Placeholder=t1;pr.ClearButton=aO;pr.displayName="@mantine/core/Input";function XQ(t,e,n){const r=bt(t,e,n),{label:s,description:l,error:c,required:f,classNames:m,styles:p,className:g,unstyled:b,__staticSelector:E,__stylesApiProps:S,errorProps:T,labelProps:w,descriptionProps:$,wrapperProps:_,id:L,size:j,style:P,inputContainer:H,inputWrapperOrder:F,withAsterisk:z,variant:k,vars:W,mod:et,attributes:it,...ct}=r,{styleProps:dt,rest:Y}=_v(ct),Z={label:s,description:l,error:c,required:f,classNames:m,className:g,__staticSelector:E,__stylesApiProps:S||r,errorProps:T,labelProps:w,descriptionProps:$,unstyled:b,styles:p,size:j,style:P,inputContainer:H,inputWrapperOrder:F,withAsterisk:z,variant:k,id:L,mod:et,attributes:it,..._};return{...Y,classNames:m,styles:p,unstyled:b,wrapperProps:{...Z,...dt},inputProps:{required:f,classNames:m,styles:p,unstyled:b,size:j,__staticSelector:E,__stylesApiProps:S||r,error:c,variant:k,id:L,attributes:it}}}const QQ={__staticSelector:"InputBase",withAria:!0,size:"sm"},mh=po((t,e)=>{const{inputProps:n,wrapperProps:r,...s}=XQ("InputBase",QQ,t);return x.jsx(pr.Wrapper,{...r,children:x.jsx(pr,{...n,...s,ref:e})})});mh.classes={...pr.classes,...pr.Wrapper.classes};mh.displayName="@mantine/core/InputBase";const ZQ={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var lO={root:"m_8bffd616"};const n1=po((t,e)=>{const n=bt("Flex",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,gap:p,rowGap:g,columnGap:b,align:E,justify:S,wrap:T,direction:w,attributes:$,..._}=n,L=oe({name:"Flex",classes:lO,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:$,vars:m}),j=Kn(),P=aR(),H=sR({styleProps:{gap:p,rowGap:g,columnGap:b,align:E,justify:S,wrap:T,direction:w},theme:j,data:ZQ});return x.jsxs(x.Fragment,{children:[H.hasResponsiveStyles&&x.jsx(iR,{selector:`.${P}`,styles:H.styles,media:H.media}),x.jsx(ht,{ref:e,...L("root",{className:P,style:Jm(H.inlineStyles)}),..._})]})});n1.classes=lO;n1.displayName="@mantine/core/Flex";var uO={root:"m_b6d8b162"};function JQ(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const WQ={inherit:!1},tZ=(t,{variant:e,lineClamp:n,gradient:r,size:s,color:l})=>({root:{"--text-fz":ar(s),"--text-lh":vY(s),"--text-gradient":e==="gradient"?t0(r,t):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":l?Zs(l,t):void 0}}),oo=po((t,e)=>{const n=bt("Text",WQ,t),{lineClamp:r,truncate:s,inline:l,inherit:c,gradient:f,span:m,__staticSelector:p,vars:g,className:b,style:E,classNames:S,styles:T,unstyled:w,variant:$,mod:_,size:L,attributes:j,...P}=n,H=oe({name:["Text",p],props:n,classes:uO,className:b,style:E,classNames:S,styles:T,unstyled:w,attributes:j,vars:g,varsResolver:tZ});return x.jsx(ht,{...H("root",{focusable:!0}),ref:e,component:m?"span":"p",variant:$,mod:[{"data-truncate":JQ(s),"data-line-clamp":typeof r=="number","data-inline":l,"data-inherit":c},_],size:L,...P})});oo.classes=uO;oo.displayName="@mantine/core/Text";var Vl={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const u2={orientation:"horizontal"},eZ=(t,{borderWidth:e})=>({group:{"--button-border-width":ut(e)}}),r1=It((t,e)=>{const n=bt("ButtonGroup",u2,t),{className:r,style:s,classNames:l,styles:c,unstyled:f,orientation:m,vars:p,borderWidth:g,variant:b,mod:E,attributes:S,...T}=bt("ButtonGroup",u2,t),w=oe({name:"ButtonGroup",props:n,classes:Vl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:p,varsResolver:eZ,rootSelector:"group"});return x.jsx(ht,{...w("group"),ref:e,variant:b,mod:[{"data-orientation":m},E],role:"group",...T})});r1.classes=Vl;r1.displayName="@mantine/core/ButtonGroup";const nZ=(t,{radius:e,color:n,gradient:r,variant:s,autoContrast:l,size:c})=>{const f=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:l});return{groupSection:{"--section-height":ln(c,"section-height"),"--section-padding-x":ln(c,"section-padding-x"),"--section-fz":c?.includes("compact")?ar(c.replace("compact-","")):ar(c),"--section-radius":e===void 0?void 0:Tr(e),"--section-bg":n||s?f.background:void 0,"--section-color":f.color,"--section-bd":n||s?f.border:void 0}}},o1=It((t,e)=>{const n=bt("ButtonGroupSection",null,t),{className:r,style:s,classNames:l,styles:c,unstyled:f,vars:m,variant:p,gradient:g,radius:b,autoContrast:E,attributes:S,...T}=n,w=oe({name:"ButtonGroupSection",props:n,classes:Vl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:m,varsResolver:nZ,rootSelector:"groupSection"});return x.jsx(ht,{...w("groupSection"),ref:e,variant:p,...T})});o1.classes=Vl;o1.displayName="@mantine/core/ButtonGroupSection";const rZ={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${ut(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},oZ=(t,{radius:e,color:n,gradient:r,variant:s,size:l,justify:c,autoContrast:f})=>{const m=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:f});return{root:{"--button-justify":c,"--button-height":ln(l,"button-height"),"--button-padding-x":ln(l,"button-padding-x"),"--button-fz":l?.includes("compact")?ar(l.replace("compact-","")):ar(l),"--button-radius":e===void 0?void 0:Tr(e),"--button-bg":n||s?m.background:void 0,"--button-hover":n||s?m.hover:void 0,"--button-color":m.color,"--button-bd":n||s?m.border:void 0,"--button-hover-color":n||s?m.hoverColor:void 0}}},lo=po((t,e)=>{const n=bt("Button",null,t),{style:r,vars:s,className:l,color:c,disabled:f,children:m,leftSection:p,rightSection:g,fullWidth:b,variant:E,radius:S,loading:T,loaderProps:w,gradient:$,classNames:_,styles:L,unstyled:j,"data-disabled":P,autoContrast:H,mod:F,attributes:z,...k}=n,W=oe({name:"Button",props:n,classes:Vl,className:l,style:r,classNames:_,styles:L,unstyled:j,attributes:z,vars:s,varsResolver:oZ}),et=!!p,it=!!g;return x.jsxs(Fl,{ref:e,...W("root",{active:!f&&!T&&!P}),unstyled:j,variant:E,disabled:f||T,mod:[{disabled:f||P,loading:T,block:b,"with-left-section":et,"with-right-section":it},F],...k,children:[typeof T=="boolean"&&x.jsx(ta,{mounted:T,transition:rZ,duration:150,children:ct=>x.jsx(ht,{component:"span",...W("loader",{style:ct}),"aria-hidden":!0,children:x.jsx(ql,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...w})})}),x.jsxs("span",{...W("inner"),children:[p&&x.jsx(ht,{component:"span",...W("section"),mod:{position:"left"},children:p}),x.jsx(ht,{component:"span",mod:{loading:T},...W("label"),children:m}),g&&x.jsx(ht,{component:"span",...W("section"),mod:{position:"right"},children:g})]})]})});lo.classes=Vl;lo.displayName="@mantine/core/Button";lo.Group=r1;lo.GroupSection=o1;const iZ={timeout:1e3};function cO(t){const{children:e,timeout:n,value:r,...s}=bt("CopyButton",iZ,t),l=SY({timeout:n}),c=()=>l.copy(r);return x.jsx(x.Fragment,{children:e({copy:c,copied:l.copied,...s})})}cO.displayName="@mantine/core/CopyButton";function c2({color:t,theme:e,defaultShade:n}){const r=Ul({color:t,theme:e});return r.isThemeColor?r.shade===void 0?`var(--mantine-color-${r.color}-${n})`:`var(${r.variable})`:t}var fO={root:"m_bcb3f3c2"};const sZ={color:"yellow"},aZ=(t,{color:e})=>({root:{"--mark-bg-dark":c2({color:e,theme:t,defaultShade:5}),"--mark-bg-light":c2({color:e,theme:t,defaultShade:2})}}),i1=It((t,e)=>{const n=bt("Mark",sZ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,color:p,variant:g,attributes:b,...E}=n,S=oe({name:"Mark",props:n,className:s,style:l,classes:fO,classNames:r,styles:c,unstyled:f,attributes:b,vars:m,varsResolver:aZ});return x.jsx(ht,{component:"mark",ref:e,variant:g,...S("root"),...E})});i1.classes=fO;i1.displayName="@mantine/core/Mark";function f2(t){return t.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function lZ(t,e){if(e==null)return[{chunk:t,highlighted:!1}];const n=Array.isArray(e)?e.map(f2):f2(e);if(!(Array.isArray(n)?n.filter(f=>f.trim().length>0).length>0:n.trim()!==""))return[{chunk:t,highlighted:!1}];const s=typeof n=="string"?n.trim():n.filter(f=>f.trim().length!==0).map(f=>f.trim()).sort((f,m)=>m.length-f.length).join("|"),l=new RegExp(`(${s})`,"gi");return t.split(l).map(f=>({chunk:f,highlighted:l.test(f)})).filter(({chunk:f})=>f)}const s1=po((t,e)=>{const{unstyled:n,children:r,highlight:s,highlightStyles:l,color:c,...f}=bt("Highlight",null,t),m=lZ(r,s);return x.jsx(oo,{unstyled:n,ref:e,...f,__staticSelector:"Highlight",children:m.map(({chunk:p,highlighted:g},b)=>g?x.jsx(i1,{unstyled:n,color:c,style:l,"data-highlight":p,children:p},b):x.jsx("span",{children:p},b))})});s1.classes=oo.classes;s1.displayName="@mantine/core/Highlight";function d0(){return d0=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d0.apply(null,arguments)}function dO(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var Ti={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const[uZ,Kl]=Ll("Modal component was not found in tree"),hh=It((t,e)=>{const n=bt("ModalBody",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Kl();return x.jsx(eO,{ref:e,...p.getStyles("body",{classNames:r,style:l,styles:c,className:s}),...m})});hh.classes=Ti;hh.displayName="@mantine/core/ModalBody";const ph=It((t,e)=>{const n=bt("ModalCloseButton",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Kl();return x.jsx(nO,{ref:e,...p.getStyles("close",{classNames:r,style:l,styles:c,className:s}),...m})});ph.classes=Ti;ph.displayName="@mantine/core/ModalCloseButton";const gh=It((t,e)=>{const n=bt("ModalContent",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,children:m,__hidden:p,...g}=n,b=Kl(),E=b.scrollAreaComponent||IQ;return x.jsx(rO,{...b.getStyles("content",{className:s,style:l,styles:c,classNames:r}),innerProps:b.getStyles("inner",{className:s,style:l,styles:c,classNames:r}),"data-full-screen":b.fullScreen||void 0,"data-modal-content":!0,"data-hidden":p||void 0,ref:e,...g,children:x.jsx(E,{style:{maxHeight:b.fullScreen?"100dvh":`calc(100dvh - (${ut(b.yOffset)} * 2))`},children:m})})});gh.classes=Ti;gh.displayName="@mantine/core/ModalContent";const yh=It((t,e)=>{const n=bt("ModalHeader",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Kl();return x.jsx(oO,{ref:e,...p.getStyles("header",{classNames:r,style:l,styles:c,className:s}),...m})});yh.classes=Ti;yh.displayName="@mantine/core/ModalHeader";const bh=It((t,e)=>{const n=bt("ModalOverlay",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Kl();return x.jsx(iO,{ref:e,...p.getStyles("overlay",{classNames:r,style:l,styles:c,className:s}),...m})});bh.classes=Ti;bh.displayName="@mantine/core/ModalOverlay";const cZ={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:wr("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},fZ=(t,{radius:e,size:n,yOffset:r,xOffset:s})=>({root:{"--modal-radius":e===void 0?void 0:Tr(e),"--modal-size":ln(n,"modal-size"),"--modal-y-offset":ut(r),"--modal-x-offset":ut(s)}}),vh=It((t,e)=>{const n=bt("ModalRoot",cZ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,yOffset:p,scrollAreaComponent:g,radius:b,fullScreen:E,centered:S,xOffset:T,__staticSelector:w,attributes:$,..._}=n,L=oe({name:w,classes:Ti,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:$,vars:m,varsResolver:fZ});return x.jsx(uZ,{value:{yOffset:p,scrollAreaComponent:g,getStyles:L,fullScreen:E},children:x.jsx(tO,{ref:e,...L("root"),"data-full-screen":E||void 0,"data-centered":S||void 0,"data-offset-scrollbars":g===Hl.Autosize||void 0,unstyled:f,..._})})});vh.classes=Ti;vh.displayName="@mantine/core/ModalRoot";const[dZ,mZ]=Tv();function mO({children:t}){const[e,n]=C.useState([]),[r,s]=C.useState(wr("modal"));return x.jsx(dZ,{value:{stack:e,addModal:(l,c)=>{n(f=>[...new Set([...f,l])]),s(f=>typeof c=="number"&&typeof f=="number"?Math.max(f,c):f)},removeModal:l=>n(c=>c.filter(f=>f!==l)),getZIndex:l=>`calc(${r} + ${e.indexOf(l)} + 1)`,currentId:e[e.length-1],maxZIndex:r},children:t})}mO.displayName="@mantine/core/ModalStack";const Sh=It((t,e)=>{const n=bt("ModalTitle",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Kl();return x.jsx(sO,{ref:e,...p.getStyles("title",{classNames:r,style:l,styles:c,className:s}),...m})});Sh.classes=Ti;Sh.displayName="@mantine/core/ModalTitle";const hZ={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:wr("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Qr=It((t,e)=>{const{title:n,withOverlay:r,overlayProps:s,withCloseButton:l,closeButtonProps:c,children:f,radius:m,opened:p,stackId:g,zIndex:b,...E}=bt("Modal",hZ,t),S=mZ(),T=!!n||l,w=S&&g?{closeOnEscape:S.currentId===g,trapFocus:S.currentId===g,zIndex:S.getZIndex(g)}:{},$=r===!1?!1:g&&S?S.currentId===g:p;return C.useEffect(()=>{S&&g&&(p?S.addModal(g,b||wr("modal")):S.removeModal(g))},[p,g,b]),x.jsxs(vh,{ref:e,radius:m,opened:p,zIndex:S&&g?S.getZIndex(g):b,...E,...w,children:[r&&x.jsx(bh,{visible:$,transitionProps:S&&g?{duration:0}:void 0,...s}),x.jsxs(gh,{radius:m,__hidden:S&&g&&p?g!==S.currentId:!1,children:[T&&x.jsxs(yh,{children:[n&&x.jsx(Sh,{children:n}),l&&x.jsx(ph,{...c})]}),x.jsx(hh,{children:f})]})]})});Qr.classes=Ti;Qr.displayName="@mantine/core/Modal";Qr.Root=vh;Qr.Overlay=bh;Qr.Content=gh;Qr.Body=hh;Qr.Header=yh;Qr.Title=Sh;Qr.CloseButton=ph;Qr.Stack=mO;var hO={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const pZ={withCloseButton:!0},gZ=(t,{radius:e,color:n})=>({root:{"--notification-radius":e===void 0?void 0:Tr(e),"--notification-color":n?Zs(n,t):void 0}}),a1=It((t,e)=>{const n=bt("Notification",pZ,t),{className:r,color:s,radius:l,loading:c,withCloseButton:f,withBorder:m,title:p,icon:g,children:b,onClose:E,closeButtonProps:S,classNames:T,style:w,styles:$,unstyled:_,vars:L,mod:j,loaderProps:P,role:H,attributes:F,...z}=n,k=oe({name:"Notification",classes:hO,props:n,className:r,style:w,classNames:T,styles:$,unstyled:_,attributes:F,vars:L,varsResolver:gZ});return x.jsxs(ht,{...k("root"),mod:[{"data-with-icon":!!g||c,"data-with-border":m},j],ref:e,role:H||"alert",...z,children:[g&&!c&&x.jsx("div",{...k("icon"),children:g}),c&&x.jsx(ql,{size:28,color:s,...P,...k("loader")}),x.jsxs("div",{...k("body"),children:[p&&x.jsx("div",{...k("title"),children:p}),x.jsx(ht,{...k("description"),mod:{"data-with-title":!!p},children:b})]}),f&&x.jsx(Hc,{iconSize:16,color:"gray",...S,unstyled:_,onClick:E,...k("closeButton")})]})});a1.classes=hO;a1.displayName="@mantine/core/Notification";var Fc={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd","stripes-animation-vertical":"m_e0fb7a86",label:"m_91e40b74"};const[yZ,pO]=Ll("Progress.Root component was not found in tree"),l1=It((t,e)=>{const{classNames:n,className:r,style:s,styles:l,vars:c,...f}=bt("ProgressLabel",null,t),m=pO();return x.jsx(ht,{ref:e,...m.getStyles("label",{className:r,style:s,classNames:n,styles:l}),...f})});l1.classes=Fc;l1.displayName="@mantine/core/ProgressLabel";const bZ=(t,{size:e,radius:n,transitionDuration:r})=>({root:{"--progress-size":ln(e,"progress-size"),"--progress-radius":n===void 0?void 0:Tr(n),"--progress-transition-duration":typeof r=="number"?`${r}ms`:void 0}}),Eh=It((t,e)=>{const n=bt("ProgressRoot",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,autoContrast:p,transitionDuration:g,orientation:b,attributes:E,mod:S,...T}=n,w=oe({name:"Progress",classes:Fc,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:E,vars:m,varsResolver:bZ});return x.jsx(yZ,{value:{getStyles:w,autoContrast:p},children:x.jsx(ht,{ref:e,mod:[{orientation:b},S],...w("root"),...T})})});Eh.classes=Fc;Eh.displayName="@mantine/core/ProgressRoot";const vZ={withAria:!0},xh=It((t,e)=>{const{classNames:n,className:r,style:s,styles:l,vars:c,value:f,withAria:m,color:p,striped:g,animated:b,mod:E,...S}=bt("ProgressSection",vZ,t),T=pO(),w=Kn(),$=m?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":f,"aria-valuetext":`${f}%`}:{};return x.jsx(ht,{ref:e,...T.getStyles("section",{className:r,classNames:n,styles:l,style:s}),...S,...$,mod:[{striped:g||b,animated:b},E],__vars:{"--progress-section-size":`${f}%`,"--progress-section-color":Zs(p,w),"--progress-label-color":_V(T.autoContrast,w)?tR({color:p,theme:w,autoContrast:T.autoContrast}):void 0}})});xh.classes=Fc;xh.displayName="@mantine/core/ProgressSection";const Xl=It((t,e)=>{const n=bt("Progress",null,t),{value:r,classNames:s,styles:l,vars:c,color:f,striped:m,animated:p,"aria-label":g,...b}=n,{resolvedClassNames:E,resolvedStyles:S}=oR({classNames:s,styles:l,props:n});return x.jsx(Eh,{ref:e,classNames:E,styles:S,vars:c,...b,children:x.jsx(xh,{value:r,color:f,striped:m,animated:p,"aria-label":g})})});Xl.classes=Fc;Xl.displayName="@mantine/core/Progress";Xl.Section=xh;Xl.Root=Eh;Xl.Label=l1;const SZ={duration:100,transition:"fade"};function d2(t,e){return{...SZ,...e,...t}}var wh={tooltip:"m_1b3c8819",arrow:"m_f898399f"};function EZ({offset:t,position:e,defaultOpened:n}){const[r,s]=C.useState(n),l=C.useRef(null),{x:c,y:f,elements:m,refs:p,update:g,placement:b}=MR({placement:e,middleware:[TR({crossAxis:!0,padding:5,rootBoundary:"document"})]}),E=b.includes("right")?t:e.includes("left")?t*-1:0,S=b.includes("bottom")?t:e.includes("top")?t*-1:0,T=C.useCallback(({clientX:w,clientY:$})=>{p.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:w,y:$,left:w+E,top:$+S,right:w,bottom:$}}})},[m.reference]);return C.useEffect(()=>{if(p.floating.current){const w=l.current;w.addEventListener("mousemove",T);const $=si(p.floating.current);return $.forEach(_=>{_.addEventListener("scroll",g)}),()=>{w.removeEventListener("mousemove",T),$.forEach(_=>{_.removeEventListener("scroll",g)})}}},[m.reference,p.floating.current,g,T,r]),{handleMouseMove:T,x:c,y:f,opened:r,setOpened:s,boundaryRef:l,floating:p.setFloating}}const xZ={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:wr("popover")},wZ=(t,{radius:e,color:n})=>({tooltip:{"--tooltip-radius":e===void 0?void 0:Tr(e),"--tooltip-bg":n?Zs(n,t):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),u1=It((t,e)=>{const n=bt("TooltipFloating",xZ,t),{children:r,refProp:s,withinPortal:l,style:c,className:f,classNames:m,styles:p,unstyled:g,radius:b,color:E,label:S,offset:T,position:w,multiline:$,zIndex:_,disabled:L,defaultOpened:j,variant:P,vars:H,portalProps:F,attributes:z,...k}=n,W=Kn(),et=oe({name:"TooltipFloating",props:n,classes:wh,className:f,style:c,classNames:m,styles:p,unstyled:g,attributes:z,rootSelector:"tooltip",vars:H,varsResolver:wZ}),{handleMouseMove:it,x:ct,y:dt,opened:Y,boundaryRef:Z,floating:O,setOpened:B}=EZ({offset:T,position:w,defaultOpened:j}),D=$v(r);if(!D)throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const tt=xi(Z,KM(D),e),nt=D.props,N=ot=>{nt.onMouseEnter?.(ot),it(ot),B(!0)},G=ot=>{nt.onMouseLeave?.(ot),B(!1)};return x.jsxs(x.Fragment,{children:[x.jsx(Ws,{...F,withinPortal:l,children:x.jsx(ht,{...k,...et("tooltip",{style:{...jv(c,W),zIndex:_,display:!L&&Y?"block":"none",top:(dt&&Math.round(dt))??"",left:(ct&&Math.round(ct))??""}}),variant:P,ref:O,mod:{multiline:$},children:S})}),C.cloneElement(D,{...nt,[s]:tt,onMouseEnter:N,onMouseLeave:G})]})});u1.classes=wh;u1.displayName="@mantine/core/TooltipFloating";const gO=C.createContext(!1),TZ=gO.Provider,CZ=()=>C.useContext(gO),AZ={openDelay:0,closeDelay:0};function c1(t){const{openDelay:e,closeDelay:n,children:r}=bt("TooltipGroup",AZ,t);return x.jsx(TZ,{value:!0,children:x.jsx(PX,{delay:{open:e,close:n},children:r})})}c1.displayName="@mantine/core/TooltipGroup";c1.extend=t=>t;function $Z(t){if(t===void 0)return{shift:!0,flip:!0};const e={...t};return t.shift===void 0&&(e.shift=!0),t.flip===void 0&&(e.flip=!0),e}function MZ(t){const e=$Z(t.middlewares),n=[RX(t.offset)];return e.shift&&n.push(TR(typeof e.shift=="boolean"?{padding:8}:{padding:8,...e.shift})),e.flip&&n.push(typeof e.flip=="boolean"?QT():QT(e.flip)),n.push(OX({element:t.arrowRef,padding:t.arrowOffset})),e.inline?n.push(typeof e.inline=="boolean"?by():by(e.inline)):t.inline&&n.push(by()),n}function RZ(t){const[e,n]=C.useState(t.defaultOpened),s=typeof t.opened=="boolean"?t.opened:e,l=CZ(),c=Av(),f=C.useCallback(H=>{n(H),H&&_(c)},[c]),{x:m,y:p,context:g,refs:b,placement:E,middlewareData:{arrow:{x:S,y:T}={}}}=MR({strategy:t.strategy,placement:t.position,open:s,onOpenChange:f,middleware:MZ(t),whileElementsMounted:gX}),{delay:w,currentId:$,setCurrentId:_}=HX(g,{id:c}),{getReferenceProps:L,getFloatingProps:j}=KX([UX(g,{enabled:t.events?.hover,delay:l?w:{open:t.openDelay,close:t.closeDelay},mouseOnly:!t.events?.touch}),VX(g,{enabled:t.events?.focus,visibleOnly:!0}),QX(g,{role:"tooltip"}),GX(g,{enabled:typeof t.opened>"u"})]);Bl(()=>{t.onPositionChange?.(E)},[E]);const P=s&&$&&$!==c;return{x:m,y:p,arrowX:S,arrowY:T,reference:b.setReference,floating:b.setFloating,getFloatingProps:j,getReferenceProps:L,isGroupPhase:P,opened:s,placement:E}}const m2={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:wr("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},OZ=(t,{radius:e,color:n,variant:r,autoContrast:s})=>{const l=t.variantColorResolver({theme:t,color:n||t.primaryColor,autoContrast:s,variant:r||"filled"});return{tooltip:{"--tooltip-radius":e===void 0?void 0:Tr(e),"--tooltip-bg":n?l.background:void 0,"--tooltip-color":n?l.color:void 0}}},qc=It((t,e)=>{const n=bt("Tooltip",m2,t),{children:r,position:s,refProp:l,label:c,openDelay:f,closeDelay:m,onPositionChange:p,opened:g,defaultOpened:b,withinPortal:E,radius:S,color:T,classNames:w,styles:$,unstyled:_,style:L,className:j,withArrow:P,arrowSize:H,arrowOffset:F,arrowRadius:z,arrowPosition:k,offset:W,transitionProps:et,multiline:it,events:ct,zIndex:dt,disabled:Y,positionDependencies:Z,onClick:O,onMouseEnter:B,onMouseLeave:D,inline:tt,variant:nt,keepMounted:N,vars:G,portalProps:ot,mod:ft,floatingStrategy:mt,middlewares:pt,autoContrast:Tt,attributes:Jt,target:Ot,...ie}=bt("Tooltip",m2,n),{dir:We}=Iv(),cn=C.useRef(null),Zt=RZ({position:fQ(We,s),closeDelay:m,openDelay:f,onPositionChange:p,opened:g,defaultOpened:b,events:ct,arrowRef:cn,arrowOffset:F,offset:typeof W=="number"?W+(P?H/2:0):W,positionDependencies:[...Z,Ot??r],inline:tt,strategy:mt,middlewares:pt});C.useEffect(()=>{const Xn=Ot instanceof HTMLElement?Ot:typeof Ot=="string"?document.querySelector(Ot):Ot?.current||null;Xn&&Zt.reference(Xn)},[Ot,Zt]);const on=oe({name:"Tooltip",props:n,classes:wh,className:j,style:L,classNames:w,styles:$,unstyled:_,attributes:Jt,rootSelector:"tooltip",vars:G,varsResolver:OZ}),go=$v(r);if(!Ot&&!go)return null;if(Ot){const Xn=d2(et,{duration:100,transition:"fade"});return x.jsx(x.Fragment,{children:x.jsx(Ws,{...ot,withinPortal:E,children:x.jsx(ta,{...Xn,keepMounted:N,mounted:!Y&&!!Zt.opened,duration:Zt.isGroupPhase?10:Xn.duration,children:Ss=>x.jsxs(ht,{...ie,"data-fixed":mt==="fixed"||void 0,variant:nt,mod:[{multiline:it},ft],...Zt.getFloatingProps({ref:Zt.floating,className:on("tooltip").className,style:{...on("tooltip").style,...Ss,zIndex:dt,top:Zt.y??0,left:Zt.x??0}}),children:[c,x.jsx(f0,{ref:cn,arrowX:Zt.arrowX,arrowY:Zt.arrowY,visible:P,position:Zt.placement,arrowSize:H,arrowOffset:F,arrowRadius:z,arrowPosition:k,...on("arrow")})]})})})})}const $i=go.props,Jl=xi(Zt.reference,KM(go),e),vs=d2(et,{duration:100,transition:"fade"});return x.jsxs(x.Fragment,{children:[x.jsx(Ws,{...ot,withinPortal:E,children:x.jsx(ta,{...vs,keepMounted:N,mounted:!Y&&!!Zt.opened,duration:Zt.isGroupPhase?10:vs.duration,children:Xn=>x.jsxs(ht,{...ie,"data-fixed":mt==="fixed"||void 0,variant:nt,mod:[{multiline:it},ft],...Zt.getFloatingProps({ref:Zt.floating,className:on("tooltip").className,style:{...on("tooltip").style,...Xn,zIndex:dt,top:Zt.y??0,left:Zt.x??0}}),children:[c,x.jsx(f0,{ref:cn,arrowX:Zt.arrowX,arrowY:Zt.arrowY,visible:P,position:Zt.placement,arrowSize:H,arrowOffset:F,arrowRadius:z,arrowPosition:k,...on("arrow")})]})})}),C.cloneElement(go,Zt.getReferenceProps({onClick:O,onMouseEnter:B,onMouseLeave:D,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,...$i,className:Yn(j,$i.className),[l]:Jl}))]})});qc.classes=wh;qc.displayName="@mantine/core/Tooltip";qc.Floating=u1;qc.Group=c1;const f1=It((t,e)=>{const n=bt("TextInput",null,t);return x.jsx(mh,{component:"input",ref:e,...n,__staticSelector:"TextInput"})});f1.classes=mh.classes;f1.displayName="@mantine/core/TextInput";const d1=C.createContext(null);d1.displayName="@mantine/modals/ModalsContext";function NZ(){const t=C.useContext(d1);if(!t)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return t}function _Z({id:t,cancelProps:e,confirmProps:n,labels:r={cancel:"",confirm:""},closeOnConfirm:s=!0,closeOnCancel:l=!0,groupProps:c,onCancel:f,onConfirm:m,children:p}){const{cancel:g,confirm:b}=r,E=NZ(),S=w=>{typeof e?.onClick=="function"&&e?.onClick(w),typeof f=="function"&&f(),l&&E.closeModal(t)},T=w=>{typeof n?.onClick=="function"&&n?.onClick(w),typeof m=="function"&&m(),s&&E.closeModal(t)};return x.jsxs(x.Fragment,{children:[p&&x.jsx(ht,{mb:"md",children:p}),x.jsxs(Yl,{mt:p?0:"md",justify:"flex-end",...c,children:[x.jsx(lo,{variant:"default",...e,onClick:S,children:e?.children||g}),x.jsx(lo,{...n,onClick:T,children:n?.children||b})]})]})}const[DZ,ca]=qY("mantine-modals"),jZ=t=>{const e=t.modalId||rs();return ca("openModal")({...t,modalId:e}),e},IZ=t=>{const e=t.modalId||rs();return ca("openConfirmModal")({...t,modalId:e}),e},LZ=t=>{const e=t.modalId||rs();return ca("openContextModal")({...t,modalId:e}),e},zZ=ca("closeModal"),BZ=ca("closeAllModals"),UZ=t=>ca("updateModal")(t),kZ=t=>ca("updateContextModal")(t),wy={open:jZ,close:zZ,closeAll:BZ,openConfirmModal:IZ,openContextModal:LZ,updateModal:UZ,updateContextModal:kZ};function h2(t,e){e&&t.type==="confirm"&&t.props.onCancel?.(),t.props.onClose?.()}function PZ(t,e){switch(e.type){case"OPEN":return{current:e.modal,modals:[...t.modals,e.modal]};case"CLOSE":{const n=t.modals.find(s=>s.id===e.modalId);if(!n)return t;h2(n,e.canceled);const r=t.modals.filter(s=>s.id!==e.modalId);return{current:r[r.length-1]||t.current,modals:r}}case"CLOSE_ALL":return t.modals.length?(t.modals.concat().reverse().forEach(n=>{h2(n,e.canceled)}),{current:t.current,modals:[]}):t;case"UPDATE":{const{modalId:n,newProps:r}=e,s=t.modals.map(c=>c.id!==n?c:c.type==="content"||c.type==="confirm"?{...c,props:{...c.props,...r}}:c.type==="context"?{...c,props:{...c.props,...r,innerProps:{...c.props.innerProps,...r.innerProps}}}:c),l=t.current?.id===n&&s.find(c=>c.id===n)||t.current;return{...t,modals:s,current:l}}default:return t}}function HZ(t){if(!t)return{confirmProps:{},modalProps:{}};const{id:e,children:n,onCancel:r,onConfirm:s,closeOnConfirm:l,closeOnCancel:c,cancelProps:f,confirmProps:m,groupProps:p,labels:g,...b}=t;return{confirmProps:{id:e,children:n,onCancel:r,onConfirm:s,closeOnConfirm:l,closeOnCancel:c,cancelProps:f,confirmProps:m,groupProps:p,labels:g},modalProps:{id:e,...b}}}function FZ({children:t,modalProps:e,labels:n,modals:r}){const[s,l]=C.useReducer(PZ,{modals:[],current:null}),c=C.useRef(s);c.current=s;const f=C.useCallback(L=>{l({type:"CLOSE_ALL",canceled:L})},[c,l]),m=C.useCallback(({modalId:L,...j})=>{const P=L||rs();return l({type:"OPEN",modal:{id:P,type:"content",props:j}}),P},[l]),p=C.useCallback(({modalId:L,...j})=>{const P=L||rs();return l({type:"OPEN",modal:{id:P,type:"confirm",props:j}}),P},[l]),g=C.useCallback((L,{modalId:j,...P})=>{const H=j||rs();return l({type:"OPEN",modal:{id:H,type:"context",props:P,ctx:L}}),H},[l]),b=C.useCallback((L,j)=>{l({type:"CLOSE",modalId:L,canceled:j})},[c,l]),E=C.useCallback(({modalId:L,...j})=>{l({type:"UPDATE",modalId:L,newProps:j})},[l]),S=C.useCallback(({modalId:L,...j})=>{l({type:"UPDATE",modalId:L,newProps:j})},[l]);DZ({openModal:m,openConfirmModal:p,openContextModal:({modal:L,...j})=>g(L,j),closeModal:b,closeContextModal:b,closeAllModals:f,updateModal:E,updateContextModal:S});const T={modalProps:e||{},modals:s.modals,openModal:m,openConfirmModal:p,openContextModal:g,closeModal:b,closeContextModal:b,closeAll:f,updateModal:E,updateContextModal:S},w=()=>{const L=c.current.current;switch(L?.type){case"context":{const{innerProps:j,...P}=L.props,H=r[L.ctx];return{modalProps:P,content:x.jsx(H,{innerProps:j,context:T,id:L.id})}}case"confirm":{const{modalProps:j,confirmProps:P}=HZ(L.props);return{modalProps:j,content:x.jsx(_Z,{...P,id:L.id,labels:L.props.labels||n})}}case"content":{const{children:j,...P}=L.props;return{modalProps:P,content:j}}default:return{modalProps:{},content:null}}},{modalProps:$,content:_}=w();return x.jsxs(d1.Provider,{value:T,children:[x.jsx(Qr,{zIndex:wr("modal")+1,...e,...$,opened:s.modals.length>0,onClose:()=>b(s.current?.id),children:_}),t]})}function m1(t){let e=t,n=!1;const r=new Set;return{getState(){return e},updateState(s){e=typeof s=="function"?s(e):s},setState(s){this.updateState(s),r.forEach(l=>l(e))},initialize(s){n||(e=s,n=!0)},subscribe(s){return r.add(s),()=>r.delete(s)}}}function h1(t){return C.useSyncExternalStore(t.subscribe,()=>t.getState(),()=>t.getState())}function qZ(t,e,n){const r=[],s=[],l={};for(const c of t){const f=c.position||e;l[f]=l[f]||0,l[f]+=1,l[f]<=n?s.push(c):r.push(c)}return{notifications:s,queue:r}}const GZ=()=>m1({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),fa=GZ(),YZ=(t=fa)=>h1(t);function Ql(t,e){const n=t.getState(),r=e([...n.notifications,...n.queue]),s=qZ(r,n.defaultPosition,n.limit);t.setState({notifications:s.notifications,queue:s.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function VZ(t,e=fa){const n=t.id||rs();return Ql(e,r=>t.id&&r.some(s=>s.id===t.id)?r:[...r,{...t,id:n}]),n}function yO(t,e=fa){return Ql(e,n=>n.filter(r=>r.id===t?(r.onClose?.(r),!1):!0)),t}function KZ(t,e=fa){return Ql(e,n=>n.map(r=>r.id===t.id?{...r,...t}:r)),t.id}function XZ(t=fa){Ql(t,()=>[])}function QZ(t=fa){Ql(t,e=>e.slice(0,t.getState().limit))}const ls={show:VZ,hide:yO,update:KZ,clean:XZ,cleanQueue:QZ,updateState:Ql};function m0(t,e){return m0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},m0(t,e)}function bO(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,m0(t,e)}const p2={disabled:!1},Zd=$n.createContext(null);var ZZ=function(e){return e.scrollTop},tc="unmounted",ks="exited",Ps="entering",ol="entered",h0="exiting",Ci=(function(t){bO(e,t);function e(r,s){var l;l=t.call(this,r,s)||this;var c=s,f=c&&!c.isMounting?r.enter:r.appear,m;return l.appearStatus=null,r.in?f?(m=ks,l.appearStatus=Ps):m=ol:r.unmountOnExit||r.mountOnEnter?m=tc:m=ks,l.state={status:m},l.nextCallback=null,l}e.getDerivedStateFromProps=function(s,l){var c=s.in;return c&&l.status===tc?{status:ks}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var l=null;if(s!==this.props){var c=this.state.status;this.props.in?c!==Ps&&c!==ol&&(l=Ps):(c===Ps||c===ol)&&(l=h0)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,l,c,f;return l=c=f=s,s!=null&&typeof s!="number"&&(l=s.exit,c=s.enter,f=s.appear!==void 0?s.appear:c),{exit:l,enter:c,appear:f}},n.updateStatus=function(s,l){if(s===void 0&&(s=!1),l!==null)if(this.cancelNextCallback(),l===Ps){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Wu.findDOMNode(this);c&&ZZ(c)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ks&&this.setState({status:tc})},n.performEnter=function(s){var l=this,c=this.props.enter,f=this.context?this.context.isMounting:s,m=this.props.nodeRef?[f]:[Wu.findDOMNode(this),f],p=m[0],g=m[1],b=this.getTimeouts(),E=f?b.appear:b.enter;if(!s&&!c||p2.disabled){this.safeSetState({status:ol},function(){l.props.onEntered(p)});return}this.props.onEnter(p,g),this.safeSetState({status:Ps},function(){l.props.onEntering(p,g),l.onTransitionEnd(E,function(){l.safeSetState({status:ol},function(){l.props.onEntered(p,g)})})})},n.performExit=function(){var s=this,l=this.props.exit,c=this.getTimeouts(),f=this.props.nodeRef?void 0:Wu.findDOMNode(this);if(!l||p2.disabled){this.safeSetState({status:ks},function(){s.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:h0},function(){s.props.onExiting(f),s.onTransitionEnd(c.exit,function(){s.safeSetState({status:ks},function(){s.props.onExited(f)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,l){l=this.setNextCallback(l),this.setState(s,l)},n.setNextCallback=function(s){var l=this,c=!0;return this.nextCallback=function(f){c&&(c=!1,l.nextCallback=null,s(f))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},n.onTransitionEnd=function(s,l){this.setNextCallback(l);var c=this.props.nodeRef?this.props.nodeRef.current:Wu.findDOMNode(this),f=s==null&&!this.props.addEndListener;if(!c||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=m[0],g=m[1];this.props.addEndListener(p,g)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===tc)return null;var l=this.props,c=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var f=dO(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $n.createElement(Zd.Provider,{value:null},typeof c=="function"?c(s,f):$n.cloneElement($n.Children.only(c),f))},e})($n.Component);Ci.contextType=Zd;Ci.propTypes={};function el(){}Ci.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:el,onEntering:el,onEntered:el,onExit:el,onExiting:el,onExited:el};Ci.UNMOUNTED=tc;Ci.EXITED=ks;Ci.ENTERING=Ps;Ci.ENTERED=ol;Ci.EXITING=h0;function JZ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p1(t,e){var n=function(l){return e&&C.isValidElement(l)?e(l):l},r=Object.create(null);return t&&C.Children.map(t,function(s){return s}).forEach(function(s){r[s.key]=n(s)}),r}function WZ(t,e){t=t||{},e=e||{};function n(g){return g in e?e[g]:t[g]}var r=Object.create(null),s=[];for(var l in t)l in e?s.length&&(r[l]=s,s=[]):s.push(l);var c,f={};for(var m in e){if(r[m])for(c=0;c<r[m].length;c++){var p=r[m][c];f[r[m][c]]=n(p)}f[m]=n(m)}for(c=0;c<s.length;c++)f[s[c]]=n(s[c]);return f}function Gs(t,e,n){return n[e]!=null?n[e]:t.props[e]}function tJ(t,e){return p1(t.children,function(n){return C.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:Gs(n,"appear",t),enter:Gs(n,"enter",t),exit:Gs(n,"exit",t)})})}function eJ(t,e,n){var r=p1(t.children),s=WZ(e,r);return Object.keys(s).forEach(function(l){var c=s[l];if(C.isValidElement(c)){var f=l in e,m=l in r,p=e[l],g=C.isValidElement(p)&&!p.props.in;m&&(!f||g)?s[l]=C.cloneElement(c,{onExited:n.bind(null,c),in:!0,exit:Gs(c,"exit",t),enter:Gs(c,"enter",t)}):!m&&f&&!g?s[l]=C.cloneElement(c,{in:!1}):m&&f&&C.isValidElement(p)&&(s[l]=C.cloneElement(c,{onExited:n.bind(null,c),in:p.props.in,exit:Gs(c,"exit",t),enter:Gs(c,"enter",t)}))}}),s}var nJ=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},rJ={component:"div",childFactory:function(e){return e}},Wi=(function(t){bO(e,t);function e(r,s){var l;l=t.call(this,r,s)||this;var c=l.handleExited.bind(JZ(l));return l.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},l}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(s,l){var c=l.children,f=l.handleExited,m=l.firstRender;return{children:m?tJ(s,f):eJ(s,c,f),firstRender:!1}},n.handleExited=function(s,l){var c=p1(this.props.children);s.key in c||(s.props.onExited&&s.props.onExited(l),this.mounted&&this.setState(function(f){var m=d0({},f.children);return delete m[s.key],{children:m}}))},n.render=function(){var s=this.props,l=s.component,c=s.childFactory,f=dO(s,["component","childFactory"]),m=this.state.contextValue,p=nJ(this.state.children).map(c);return delete f.appear,delete f.enter,delete f.exit,l===null?$n.createElement(Zd.Provider,{value:m},p):$n.createElement(Zd.Provider,{value:m},$n.createElement(l,f,p))},e})($n.Component);Wi.propTypes={};Wi.defaultProps=rJ;const vO=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function oJ(t,e){return t.reduce((n,r)=>(n[r.position||e].push(r),n),vO.reduce((n,r)=>(n[r]=[],n),{}))}const g2={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},iJ={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function sJ({state:t,maxHeight:e,position:n,transitionDuration:r}){const[s,l]=n.split("-"),c=l==="center"?`${s}-center`:l,f={opacity:0,maxHeight:e,transform:g2[c],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},m={opacity:1,transform:iJ[c]},p={opacity:0,maxHeight:0,transform:g2[c]};return{...f,...{entering:m,entered:m,exiting:p,exited:p}[t]}}function aJ(t,e){return typeof e=="number"?e:e===!1||t===!1?!1:t}const SO=C.forwardRef(({data:t,onHide:e,autoClose:n,...r},s)=>{const{autoClose:l,message:c,...f}=t,m=aJ(n,t.autoClose),p=C.useRef(-1),g=()=>window.clearTimeout(p.current),b=()=>{e(t.id),g()},E=()=>{typeof m=="number"&&(p.current=window.setTimeout(b,m))};return C.useEffect(()=>{t.onOpen?.(t)},[]),C.useEffect(()=>(E(),g),[m]),x.jsx(a1,{...r,...f,onClose:b,ref:s,onMouseEnter:g,onMouseLeave:E,children:c})});SO.displayName="@mantine/notifications/NotificationContainer";var EO={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const lJ=Ci,uJ={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:wr("overlay"),store:fa,withinPortal:!0},cJ=(t,{zIndex:e,containerWidth:n})=>({root:{"--notifications-z-index":e?.toString(),"--notifications-container-width":ut(n)}}),Ai=It((t,e)=>{const n=bt("Notifications",uJ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,position:p,autoClose:g,transitionDuration:b,containerWidth:E,notificationMaxHeight:S,limit:T,zIndex:w,store:$,portalProps:_,withinPortal:L,...j}=n,P=Kn(),H=YZ($),F=_Y(),z=th(),k=C.useRef({}),W=C.useRef(0),it=(P.respectReducedMotion?z:!1)?1:b,ct=oe({name:"Notifications",classes:EO,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,vars:m,varsResolver:cJ});C.useEffect(()=>{$?.updateState(Z=>({...Z,limit:T||5,defaultPosition:p}))},[T,p]),Bl(()=>{H.notifications.length>W.current&&setTimeout(()=>F(),0),W.current=H.notifications.length},[H.notifications]);const dt=oJ(H.notifications,p),Y=vO.reduce((Z,O)=>(Z[O]=dt[O].map(({style:B,...D})=>x.jsx(lJ,{timeout:it,onEnter:()=>k.current[D.id].offsetHeight,nodeRef:{current:k.current[D.id]},children:tt=>x.jsx(SO,{ref:nt=>{nt&&(k.current[D.id]=nt)},data:D,onHide:nt=>yO(nt,$),autoClose:g,...ct("notification",{style:{...sJ({state:tt,position:O,transitionDuration:it,maxHeight:S}),...B}})})},D.id)),Z),{});return x.jsxs(Ws,{withinPortal:L,..._,children:[x.jsx(ht,{...ct("root"),"data-position":"top-center",ref:e,...j,children:x.jsx(Wi,{children:Y["top-center"]})}),x.jsx(ht,{...ct("root"),"data-position":"top-left",...j,children:x.jsx(Wi,{children:Y["top-left"]})}),x.jsx(ht,{...ct("root",{className:Yd.classNames.fullWidth}),"data-position":"top-right",...j,children:x.jsx(Wi,{children:Y["top-right"]})}),x.jsx(ht,{...ct("root",{className:Yd.classNames.fullWidth}),"data-position":"bottom-right",...j,children:x.jsx(Wi,{children:Y["bottom-right"]})}),x.jsx(ht,{...ct("root"),"data-position":"bottom-left",...j,children:x.jsx(Wi,{children:Y["bottom-left"]})}),x.jsx(ht,{...ct("root"),"data-position":"bottom-center",...j,children:x.jsx(Wi,{children:Y["bottom-center"]})})]})});Ai.classes=EO;Ai.displayName="@mantine/notifications/Notifications";Ai.show=ls.show;Ai.hide=ls.hide;Ai.update=ls.update;Ai.clean=ls.clean;Ai.cleanQueue=ls.cleanQueue;Ai.updateState=ls.updateState;var fJ={root:"m_8f2832ae",section:"m_7a0fe999"};function y2(t){let e=.5;return t>=0&&t<=20?e=10:t>=20&&t<=50?e=4:t>=50&&t<=80?e=2:t>=80&&t<=99?e=1:t>=99&&t<=100&&(e=0),t+e}const dJ=()=>m1({mounted:!1,progress:0,interval:0,step:1,stepInterval:100,timeouts:[]}),mJ=t=>h1(t);function Ur(t,e){const n=e.getState();e.setState({...n,...t(e.getState())})}function hJ(t){Ur(e=>({progress:Math.max(e.progress-e.step,0)}),t)}function pJ(t,e){Ur(()=>({progress:FM(t,0,100),mounted:!0}),e)}function g1(t){Ur(e=>(window.clearInterval(e.interval),e.timeouts.forEach(n=>window.clearTimeout(n)),{timeouts:[]}),t)}function gJ(t){g1(t),Ur(e=>{const n=window.setTimeout(()=>{Ur(()=>({mounted:!1}),t)},50),r=window.setTimeout(()=>{Ur(()=>({progress:0}),t)},e.stepInterval+50);return{progress:100,timeouts:[n,r]}},t)}function yJ(t){Ur(e=>({progress:y2(e.progress),mounted:!0}),t),Ur(e=>(window.clearInterval(e.interval),{interval:window.setInterval(()=>{Ur(r=>({progress:y2(r.progress),mounted:!0}),t)},e.stepInterval),mounted:!0}),t)}function xO(t){Ur(e=>(window.clearInterval(e.interval),{interval:-1}),t)}function y1(t){g1(t),xO(t),Ur(()=>({progress:0,mounted:!1}),t)}function bJ(t){Ur(e=>{const n=Math.min(e.progress+e.step,100),r=n!==100&&n!==0;if(!r){const s=window.setTimeout(()=>y1(t),e.stepInterval+50);return{progress:n,mounted:r,timeouts:[...e.timeouts,s]}}return{progress:n,mounted:r}},t)}function vJ(){const t=dJ();return[t,{start:()=>yJ(t),stop:()=>xO(t),reset:()=>y1(t),set:n=>pJ(n,t),increment:()=>bJ(t),decrement:()=>hJ(t),complete:()=>gJ(t),cleanup:()=>g1(t)}]}const[SJ,p0]=vJ(),{start:htt,stop:ptt,reset:gtt,set:ytt,increment:btt,decrement:vtt,complete:Stt,cleanup:Ett}=p0;function wO({initialProgress:t=0,color:e,size:n=3,stepInterval:r=500,withinPortal:s=!0,portalProps:l,zIndex:c=wr("max"),store:f=SJ,...m}){f.initialize({mounted:!1,progress:t,interval:-1,step:1,stepInterval:r,timeouts:[]});const p=mJ(f);return C.useEffect(()=>()=>y1(f),[f]),x.jsx(Ws,{...l,withinPortal:s,children:x.jsx(Xl,{radius:0,value:p.progress,size:n,color:e,classNames:fJ,"data-mounted":p.mounted||void 0,__vars:{"--nprogress-z-index":c?.toString()},...m})})}wO.displayName="@mantine/nprogress/NavigationProgress";const EJ=()=>{vv(Ju);const t=yv(Yy);return[t.getTheme(),r=>{t.setTheme(r.index)}]};var xJ={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const un=(t,e,n,r)=>{const s=C.forwardRef(({color:l="currentColor",size:c=24,stroke:f=2,title:m,className:p,children:g,...b},E)=>C.createElement("svg",{ref:E,...xJ[t],width:c,height:c,className:["tabler-icon",`tabler-icon-${e}`,p].join(" "),strokeWidth:f,stroke:l,...b},[m&&C.createElement("title",{key:"svg-title"},m),...r.map(([S,T])=>C.createElement(S,T)),...Array.isArray(g)?g:[g]]));return s.displayName=`${n}`,s};const wJ=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],TJ=un("outline","alert-triangle","AlertTriangle",wJ);const CJ=[["path",{d:"M4 13h5",key:"svg-0"}],["path",{d:"M12 16v-8h3a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-3",key:"svg-1"}],["path",{d:"M20 8v8",key:"svg-2"}],["path",{d:"M9 16v-5.5a2.5 2.5 0 0 0 -5 0v5.5",key:"svg-3"}]],AJ=un("outline","api","Api",CJ);const $J=[["path",{d:"M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2",key:"svg-0"}],["path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10",key:"svg-1"}],["path",{d:"M10 12l4 0",key:"svg-2"}]],MJ=un("outline","archive","Archive",$J);const RJ=[["path",{d:"M12 12v.01",key:"svg-0"}],["path",{d:"M19.071 4.929c-1.562 -1.562 -6 .337 -9.9 4.243c-3.905 3.905 -5.804 8.337 -4.242 9.9c1.562 1.561 6 -.338 9.9 -4.244c3.905 -3.905 5.804 -8.337 4.242 -9.9",key:"svg-1"}],["path",{d:"M4.929 4.929c-1.562 1.562 .337 6 4.243 9.9c3.905 3.905 8.337 5.804 9.9 4.242c1.561 -1.562 -.338 -6 -4.244 -9.9c-3.905 -3.905 -8.337 -5.804 -9.9 -4.242",key:"svg-2"}]],OJ=un("outline","atom","Atom",RJ);const NJ=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],TO=un("outline","check","Check",NJ);const _J=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],DJ=un("outline","chevron-down","ChevronDown",_J);const jJ=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],IJ=un("outline","chevron-right","ChevronRight",jJ);const LJ=[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],zJ=un("outline","copy","Copy",LJ);const BJ=[["path",{d:"M10 13a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M13.45 11.55l2.05 -2.05",key:"svg-1"}],["path",{d:"M6.4 20a9 9 0 1 1 11.2 0l-11.2 0",key:"svg-2"}]],UJ=un("outline","dashboard","Dashboard",BJ);const kJ=[["path",{d:"M4 6a8 3 0 1 0 16 0a8 3 0 1 0 -16 0",key:"svg-0"}],["path",{d:"M4 6v6a8 3 0 0 0 16 0v-6",key:"svg-1"}],["path",{d:"M4 12v6a8 3 0 0 0 16 0v-6",key:"svg-2"}]],PJ=un("outline","database","Database",kJ);const HJ=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]],FJ=un("outline","info-circle","InfoCircle",HJ);const qJ=[["path",{d:"M4 12h.01",key:"svg-0"}],["path",{d:"M4 6h.01",key:"svg-1"}],["path",{d:"M4 18h.01",key:"svg-2"}],["path",{d:"M8 18h2",key:"svg-3"}],["path",{d:"M8 12h2",key:"svg-4"}],["path",{d:"M8 6h2",key:"svg-5"}],["path",{d:"M14 6h6",key:"svg-6"}],["path",{d:"M14 12h6",key:"svg-7"}],["path",{d:"M14 18h6",key:"svg-8"}]],GJ=un("outline","logs","Logs",qJ);const YJ=[["path",{d:"M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1",key:"svg-0"}]],VJ=un("outline","message-circle","MessageCircle",YJ);const KJ=[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],XJ=un("outline","search","Search",KJ);const QJ=[["path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4",key:"svg-0"}],["path",{d:"M4 12l8 4l8 -4",key:"svg-1"}],["path",{d:"M4 16l8 4l8 -4",key:"svg-2"}]],ZJ=un("outline","stack-2","Stack2",QJ);const JJ=[["path",{d:"M14 20a2 2 0 1 0 -4 0a2 2 0 0 0 4 0",key:"svg-0"}],["path",{d:"M14 4a2 2 0 1 0 -4 0a2 2 0 0 0 4 0",key:"svg-1"}],["path",{d:"M6 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0",key:"svg-2"}],["path",{d:"M22 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0",key:"svg-3"}],["path",{d:"M13.5 5.5l5 5",key:"svg-4"}],["path",{d:"M5.5 13.5l5 5",key:"svg-5"}],["path",{d:"M13.5 18.5l5 -5",key:"svg-6"}],["path",{d:"M10.5 5.5l-5 5",key:"svg-7"}]],WJ=un("outline","topology-ring","TopologyRing",JJ);const tW=[["path",{d:"M5 4c-2.5 5 -2.5 10 0 16m14 -16c2.5 5 2.5 10 0 16m-10 -11h1c1 0 1 1 2.016 3.527c.984 2.473 .984 3.473 1.984 3.473h1",key:"svg-0"}],["path",{d:"M8 16c1.5 0 3 -2 4 -3.5s2.5 -3.5 4 -3.5",key:"svg-1"}]],eW=un("outline","variable","Variable",tW);const nW=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],rW=un("outline","x","X",nW);class g0{raw=ls;options={default:{radius:"md",withBorder:!0,withCloseButton:!0,autoClose:5e3,position:"top-center"}};show(e){ls.show({...this.options.default,...e})}info(e){typeof e=="string"&&(e={message:e}),this.show({color:"blue",icon:x.jsx(FJ,{size:20}),title:"Info",message:"Information notification",...e})}success(e){typeof e=="string"&&(e={message:e}),this.show({color:"green",icon:x.jsx(TO,{size:16}),title:"Success",message:"Operation completed successfully",...e})}warning(e){typeof e=="string"&&(e={message:e}),this.show({color:"yellow",icon:x.jsx(TJ,{size:20}),title:"Warning",message:"Please review this warning",...e})}danger(e){typeof e=="string"&&(e={message:e}),this.show({color:"red",icon:x.jsx(rW,{size:20}),title:"Error",message:"An error occurred",...e})}}const oW=()=>yv(g0),iW=()=>m1({opened:!1,empty:!1,selected:-1,listId:"",query:"",registeredActions:new Set}),sW=t=>h1(t);function bl(t,e){const n=e.getState();e.setState({...n,...t(e.getState())})}function CO(t){bl(()=>({opened:!0,selected:-1}),t)}function AO(t){bl(()=>({opened:!1}),t)}function $O(t){bl(e=>({opened:!e.opened,selected:e.opened?e.selected:-1}),t)}function MO(t,e){e.updateState(n=>({...n,selected:t}))}function aW(t,e){e.updateState(n=>({...n,listId:t}))}function Jd(t,e=document){const n=e.querySelector(t);if(n)return n;const r=e instanceof ShadowRoot?e.host.children:e.children;for(let s=0;s<r.length;s+=1){const l=r[s];if(l.shadowRoot){const f=Jd(t,l.shadowRoot);if(f)return f}const c=Jd(t,l);if(c)return c}return null}function Th(t,e){const n=e.getState(),r=n.listId?Jd(`#${n.listId}`):null,s=r?.querySelector("[data-selected]"),l=r?.querySelectorAll("[data-action]")??[],c=t===-1?l.length-1:t===l.length?0:t,f=FM(c,0,l.length-1);return s?.removeAttribute("data-selected"),l[f]?.scrollIntoView({block:"nearest"}),l[f]?.setAttribute("data-selected","true"),MO(f,e),f}function lW(t){return Th(t.getState().selected+1,t)}function uW(t){return Th(t.getState().selected-1,t)}function cW(t){const e=t.getState();Jd(`#${e.listId} [data-selected]`)?.click()}function fW(t,e){const n=e.getState();return n.registeredActions.add(t),()=>{n.registeredActions.delete(t)}}function dW(t,e){bl(()=>({query:t}),e),Promise.resolve().then(()=>{Th(0,e),bl(n=>({empty:n.query.trim().length>0&&n.registeredActions.size===0||!1}),e)})}function mW({clearQuery:t},e){e.updateState(n=>({...n,selected:-1,query:t?"":n.query,empty:t?!1:n.empty}))}const Oo={open:CO,close:AO,toggle:$O,updateState:bl,setSelectedAction:MO,setListId:aW,selectAction:Th,selectNextAction:lW,selectPreviousAction:uW,triggerSelectedAction:cW,registerAction:fW,setQuery:dW,clearSpotlightState:mW};function hW(){const t=iW();return[t,{open:()=>CO(t),close:()=>AO(t),toggle:()=>$O(t)}]}const[RO,Ch]=hW(),{open:xtt,close:wtt,toggle:Ttt}=Ch;function OO(t){const e=t;return e.group!==void 0&&Array.isArray(e.actions)}function pW(t){return Array.isArray(t)?t.map(e=>e.trim()).join(",").toLowerCase().trim():typeof t=="string"?t.toLowerCase().trim():""}function gW(t){return t.reduce((e,n)=>"actions"in n?[...e,...n.actions.map(r=>({...r,group:n.group}))]:[...e,n],[])}function yW(t){const e={},n=[];return t.forEach(r=>{r.group?(e[r.group]||(e[r.group]={pushed:!1,data:{group:r.group,actions:[]}}),e[r.group].data.actions.push(r),e[r.group].pushed||(e[r.group].pushed=!0,n.push(e[r.group].data))):n.push(r)}),n}const bW=(t,e)=>{const n=t.trim().toLowerCase(),r=[[],[]];return gW(e).forEach(l=>{l.label?.toLowerCase().includes(n)?r[0].push(l):(l.description?.toLowerCase().includes(n)||pW(l.keywords).includes(n))&&r[1].push(l)}),yW(r.flat())};function NO(t,e){if(!Array.isArray(t))return[];let n=0;return t.reduce((r,s)=>{if(n>=e)return r;if(OO(s)){const l=NO(s.actions,e-n);r.push({group:s.group,actions:l}),n+=l.length}else r.push(s),n+=1;return r},[])}var Do={root:"m_d2b315db",content:"m_3cd250e0",body:"m_d2abce9b",search:"m_f366a061",actionsList:"m_6e463822",action:"m_d49bb8ef",actionBody:"m_3d475731",actionSection:"m_832642f6",actionLabel:"m_6c2a1345",actionDescription:"m_a6d9d78d",empty:"m_82f78f74",footer:"m_ddcaf054",actionsGroup:"m_5a3e5f7b"};const[vW,Zl]=Ll("Spotlight component was not found in tree"),SW={dimmedSections:!0,highlightQuery:!1},cc=It((t,e)=>{const n=bt("SpotlightAction",SW,t),{className:r,style:s,classNames:l,styles:c,id:f,description:m,label:p,leftSection:g,rightSection:b,children:E,dimmedSections:S,highlightQuery:T,highlightColor:w,closeSpotlightOnTrigger:$,onClick:_,onMouseDown:L,keywords:j,vars:P,...H}=n,F=Zl(),z={classNames:l,styles:c},k=T&&typeof p=="string"?x.jsx(s1,{component:"span",highlight:F.query,color:w,...F.getStyles("actionLabel",z),children:p}):x.jsx("span",{...F.getStyles("actionLabel",z),children:p});return x.jsx(Fl,{ref:e,"data-action":!0,...F.getStyles("action",{className:r,style:s,...z}),...H,onMouseDown:W=>{W.preventDefault(),L?.(W)},onClick:W=>{_?.(W),($??F.closeOnActionTrigger)&&Oo.close(F.store)},tabIndex:-1,children:E||x.jsxs(x.Fragment,{children:[g&&x.jsx(ht,{component:"span",mod:{position:"left",dimmed:S},...F.getStyles("actionSection",z),children:g}),x.jsxs("span",{...F.getStyles("actionBody",z),children:[k,x.jsx("span",{...F.getStyles("actionDescription",z),children:m})]}),b&&x.jsx(ht,{component:"span",mod:{position:"right",dimmed:S},...F.getStyles("actionSection",z),children:b})]})})});cc.classes=Do;cc.displayName="@mantine/spotlight/SpotlightAction";const Ah=It((t,e)=>{const{className:n,style:r,styles:s,classNames:l,label:c,children:f,...m}=bt("SpotlightActionsGroup",null,t),p=Zl();return x.jsx(ht,{...p.getStyles("actionsGroup",{className:n,style:r,classNames:l,styles:s}),ref:e,...m,__vars:{"--spotlight-label":`'${c?.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`},children:f})});Ah.classes=Do;Ah.displayName="@mantine/core/SpotlightActionsGroup";const $h=It((t,e)=>{const{className:n,style:r,id:s,children:l,vars:c,classNames:f,styles:m,...p}=bt("SpotlightActionsList",null,t),g=Zl(),b=`mantine-${C.useId().replace(/:/g,"")}`,E=s||b;return C.useEffect(()=>(Oo.setListId(E,g.store),()=>Oo.setListId("",g.store)),[]),x.jsx(Hl.Autosize,{...g.getStyles("actionsList",{className:n,style:r,classNames:f,styles:m}),ref:e,type:"scroll",scrollbarSize:"var(--spotlight-actions-list-padding)",offsetScrollbars:"y",id:E,...p,children:l})});$h.classes=Do;$h.displayName="@mantine/spotlight/SpotlightActionsList";const Mh=It((t,e)=>{const{className:n,style:r,classNames:s,styles:l,...c}=bt("SpotlightEmpty",null,t),f=Zl();return x.jsx(ht,{ref:e,...f.getStyles("empty",{classNames:s,styles:l,className:n,style:r}),...c})});Mh.classes=Do;Mh.displayName="@mantine/spotlight/SpotlightEmpty";const b1=It((t,e)=>{const{className:n,style:r,classNames:s,styles:l,...c}=bt("SpotlightFooter",null,t),f=Zl();return x.jsx(ht,{ref:e,...f.getStyles("footer",{className:n,classNames:s,style:r,styles:l}),...c})});b1.classes=Do;b1.displayName="@mantine/spotlight/SpotlightFooter";function EW(t,e){if(!t)return[];const n=()=>Oo.open(e);return Array.isArray(t)?t.map(r=>[r,n]):[[t,n]]}const xW={size:600,yOffset:80,zIndex:wr("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:RO,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",maxHeight:400},Rh=It((t,e)=>{const n=bt("SpotlightRoot",xW,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,store:p,children:g,query:b,onQueryChange:E,transitionProps:S,clearQueryOnClose:T,shortcut:w,tagsToIgnore:$,triggerOnContentEditable:_,disabled:L,onSpotlightOpen:j,onSpotlightClose:P,forceOpened:H,closeOnActionTrigger:F,maxHeight:z,scrollable:k,attributes:W,...et}=n,it=Kn(),{opened:ct,query:dt}=sW(p),Y=typeof b=="string"?b:dt,Z=B=>{E?.(B),Oo.setQuery(B,p)},O=oe({name:"Spotlight",classes:Do,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:W});return HY(EW(w,p),$,_),Bl(()=>{ct?j?.():P?.()},[ct]),L?null:x.jsx(vW,{value:{getStyles:O,query:Y,setQuery:Z,store:p,closeOnActionTrigger:F},children:x.jsx(Qr,{ref:e,...et,withCloseButton:!1,opened:ct||!!H,padding:0,onClose:()=>Oo.close(p),className:s,style:l,classNames:kc({theme:it,classNames:[Do,r],props:n,stylesCtx:void 0}),styles:ac({theme:it,styles:c,props:n,stylesCtx:void 0}),transitionProps:{...S,onExited:()=>{T&&Z(""),Oo.clearSpotlightState({clearQuery:T},p),S?.onExited?.()}},__vars:{"--spotlight-max-height":k?ut(z):void 0},__staticSelector:"Spotlight","data-scrollable":k||void 0,children:g})})});Rh.classes=Do;Rh.displayName="@mantine/spotlight/SpotlightRoot";const wW={size:"lg"},Oh=It((t,e)=>{const{classNames:n,styles:r,onKeyDown:s,onChange:l,vars:c,value:f,...m}=bt("SpotlightSearch",wW,t),p=Zl(),g=p.getStyles("search"),[b,E]=C.useState(!1),S=T=>{s?.(T),!b&&(T.nativeEvent.code==="ArrowDown"&&(T.preventDefault(),Oo.selectNextAction(p.store)),T.nativeEvent.code==="ArrowUp"&&(T.preventDefault(),Oo.selectPreviousAction(p.store)),(T.nativeEvent.code==="Enter"||T.nativeEvent.code==="NumpadEnter")&&(T.preventDefault(),Oo.triggerSelectedAction(p.store)))};return x.jsx(pr,{ref:e,classNames:[{input:g.className},n],styles:[{input:g.style},r],...m,value:f??p.query,onChange:T=>{p.setQuery(T.currentTarget.value),l?.(T)},onKeyDown:S,onCompositionStart:()=>E(!0),onCompositionEnd:()=>E(!1)})});Oh.classes=Do;Oh.displayName="@mantine/spotlight/SpotlightSearch";const TW={size:600,yOffset:80,limit:1/0,zIndex:wr("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:RO,filter:bW,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K"},Cr=It((t,e)=>{const n=bt("Spotlight",TW,t),{searchProps:r,filter:s,query:l,onQueryChange:c,actions:f,nothingFound:m,highlightQuery:p,limit:g,scrollAreaProps:b,...E}=n,[S,T]=LY({value:l,defaultValue:"",finalValue:"",onChange:c}),w=NO(s(S,f),g).map($=>{if(OO($)){const _=$.actions.map(({id:L,...j})=>x.jsx(cc,{highlightQuery:p,...j},L));return x.jsx(Ah,{label:$.group,children:_},$.group)}return x.jsx(cc,{highlightQuery:p,...$},$.id)});return x.jsxs(Rh,{...E,query:S,onQueryChange:T,ref:e,children:[x.jsx(Oh,{...r}),x.jsxs($h,{...b,children:[w,w.length===0&&m&&x.jsx(Mh,{children:m})]})]})});Cr.classes=Do;Cr.displayName="@mantine/spotlight/Spotlight";Cr.Search=Oh;Cr.ActionsList=$h;Cr.Action=cc;Cr.Empty=Mh;Cr.ActionsGroup=Ah;Cr.Footer=b1;Cr.Root=Rh;Cr.open=Ch.open;Cr.close=Ch.close;Cr.toggle=Ch.toggle;const v1={colors:{background:"var(--alepha-background)",surface:"var(--alepha-surface)",elevated:"var(--alepha-elevated)",border:"var(--alepha-border)"},sizes:{icon:{xs:12,sm:16,md:20,lg:24,xl:32}}};function CW(t){return C.isValidElement(t)?!1:typeof t=="function"||typeof t=="object"&&t!==null&&"$$typeof"in t}const AW=t=>{if(!t)return null;if(C.isValidElement(t))return t;if(CW(t)){const e=t;return x.jsx(e,{size:v1.sizes.icon.md})}return t},$W=t=>{const e=t.shortcut??"mod+K",n=t.searchPlaceholder??"Search...",r=t.nothingFound??"Nothing found...",s=NG(),[l]=vv("alepha.server.request.user"),c=C.useMemo(()=>s.concretePages.filter(f=>!(f.can&&!f.can())).map(f=>({id:f.name,label:f.label??f.name,description:f.description,onClick:()=>f.staticName?s.go(f.staticName,{params:f.params}):s.go(f.name),leftSection:AW(f.icon)})),[l]);return x.jsx(Cr,{actions:c,shortcut:e,limit:10,searchProps:{leftSection:x.jsx(XJ,{size:v1.sizes.icon.md}),placeholder:n},nothingFound:r})},MW=t=>{const e=oW(),[n]=EJ();gM({"react:transition:begin":()=>{p0.start()},"react:transition:end":()=>{p0.complete()},"react:action:error":({error:s})=>{s instanceof uG||s instanceof Vm||e.danger({title:s.name||"Error",message:s.message??"An error occurred while processing your action."})}},[]);const r=t.mantine?.defaultColorScheme??n.defaultColorScheme;return x.jsxs(x.Fragment,{children:[x.jsx(jV,{defaultColorScheme:r,...t.colorSchemeScript}),x.jsxs(rR,{...t.mantine,defaultColorScheme:r,theme:{...n,...t.mantine?.theme},children:[x.jsx(Ai,{...t.notifications}),x.jsx(wO,{...t.navigationProgress}),x.jsxs(FZ,{...t.modals,children:[t.omnibar!==!1&&x.jsx($W,{...t.omnibar}),t.children??x.jsx(Vy,{})]})]})]})};class _O{root=Cn({path:"/",component:MW})}const RW=(t="sm")=>{const e={xs:{text:"xs",icon:12,gap:2},sm:{text:"sm",icon:14,gap:4},md:{text:"md",icon:16,gap:6},lg:{text:"lg",icon:18,gap:8},xl:{text:"xl",icon:20,gap:10}};return e[t]||e.sm},OW=t=>t.split(`
|
|
77
|
+
`).map(e=>e.trim()).filter(e=>e.length>0),NW=({error:t,showStack:e=!0,copyable:n=!0,size:r="sm"})=>{const[s,l]=C.useState(!1),c=RW(r),f=c.icon+2,m=t instanceof Error,p=m?t.name:"Error",g=m?t.message:String(t),b=m?t.stack:void 0,E=b?OW(b):[],S=()=>m?`${p}: ${g}${b?`
|
|
78
|
+
|
|
79
|
+
${b}`:""}`:String(t);return x.jsxs(ht,{pos:"relative",w:"100%",children:[n&&x.jsx(ht,{pos:"absolute",top:0,right:0,style:{zIndex:1},children:x.jsx(cO,{value:S(),children:({copied:T,copy:w})=>x.jsx(qc,{label:T?"Copied":"Copy Error",children:x.jsx(gl,{color:T?"teal":"gray",variant:"subtle",onClick:w,size:r,children:T?x.jsx(TO,{size:f}):x.jsx(zJ,{size:f})})})})}),x.jsxs(ht,{pt:n?30:0,children:[x.jsxs(ht,{style:{display:"flex",alignItems:"flex-start",gap:c.gap},children:[x.jsxs(oo,{component:"span",c:"red",ff:"monospace",fw:600,size:c.text,children:[p,":"]}),x.jsx(oo,{component:"span",ff:"monospace",size:c.text,style:{wordBreak:"break-word"},children:g})]}),e&&E.length>1&&x.jsxs(ht,{mt:"sm",children:[x.jsxs(ht,{style:{display:"flex",alignItems:"center",gap:c.gap,cursor:"pointer"},onClick:()=>l(!s),children:[x.jsx(gl,{size:"xs",variant:"transparent",c:"dimmed",children:s?x.jsx(DJ,{size:c.icon}):x.jsx(IJ,{size:c.icon})}),x.jsxs(oo,{c:"dimmed",size:c.text,fw:500,children:["Stack Trace (",E.length-1," frames)"]})]}),x.jsx(dR,{in:s,children:x.jsx(ht,{mt:"xs",pl:"md",style:{borderLeft:"1px solid var(--mantine-color-default-border)"},children:E.slice(1).map((T,w)=>x.jsx(oo,{ff:"monospace",size:"xs",c:"dimmed",style:{whiteSpace:"pre-wrap",wordBreak:"break-all"},children:T},w))})})]})]})]})},_W=({options:t,onClose:e})=>x.jsxs(x.Fragment,{children:[t?.message&&x.jsx(oo,{mb:"md",children:t.message}),x.jsx(Yl,{justify:"flex-end",children:x.jsx(lo,{onClick:e,children:t?.okLabel||"OK"})})]}),DW=({options:t,onConfirm:e})=>x.jsxs(x.Fragment,{children:[t?.message&&x.jsx(oo,{mb:"md",children:t.message}),x.jsxs(Yl,{justify:"flex-end",children:[x.jsx(lo,{variant:"subtle",onClick:()=>e(!1),children:t?.cancelLabel||"Cancel"}),x.jsx(lo,{color:t?.confirmColor||"blue",onClick:()=>e(!0),children:t?.confirmLabel||"Confirm"})]})]}),jW=({options:t,onSubmit:e})=>{const[n,r]=C.useState(t?.defaultValue||""),s=C.useRef(null);C.useEffect(()=>{s.current?.focus()},[]);const l=()=>{(!t?.required||n.trim())&&e(n)},c=f=>{f.key==="Enter"&&l()};return x.jsxs(x.Fragment,{children:[t?.message&&x.jsx(oo,{mb:"md",children:t.message}),x.jsx(f1,{ref:s,label:t?.label,placeholder:t?.placeholder,value:n,onChange:f=>r(f.currentTarget.value),onKeyDown:c,required:t?.required,mb:"md"}),x.jsxs(Yl,{justify:"flex-end",children:[x.jsx(lo,{variant:"subtle",onClick:()=>e(null),children:t?.cancelLabel||"Cancel"}),x.jsx(lo,{onClick:l,disabled:t?.required&&!n.trim(),children:t?.submitLabel||"OK"})]})]})};class b2{options={default:{centered:!0,withCloseButton:!0,size:"md",overlayProps:{backgroundOpacity:.55,blur:3},transitionProps:{transition:"pop",duration:200}}};alert(e){return new Promise(n=>{const r=this.open({...e,title:e?.title||"Alert",content:x.jsx(_W,{options:e,onClose:()=>{this.close(r),n()}})})})}confirm(e){return new Promise(n=>{const r=this.open({...e,title:e?.title||"Confirm",closeOnClickOutside:!1,closeOnEscape:!1,content:x.jsx(DW,{options:e,onConfirm:s=>{this.close(r),n(s)}})})})}prompt(e){return new Promise(n=>{const r=this.open({...e,title:e?.title||"Input",closeOnClickOutside:!1,closeOnEscape:!1,content:x.jsx(jW,{options:e,onSubmit:s=>{this.close(r),n(s)}})})})}open(e){return wy.open({...this.options.default,...e,children:e?.content||e?.message})}close(e){e?wy.close(e):wy.closeAll()}error(e,n){this.open({size:"lg",title:n?.title||"Error",...n,content:x.jsx(n1,{bdrs:"md",w:"100%",flex:1,p:"sm",bg:v1.colors.surface,children:x.jsx(NW,{size:"xs",error:e,showStack:n?.showStack??!0})})})}form(e){return Promise.resolve(null)}loading(e){}image(e,n){}}const Ty=(t,e,n)=>(Object.assign(t,{[e]:n??{}}),t),DO=Symbol.for("Alepha.Postgres.Default"),IW=Symbol.for("Alepha.Postgres.PrimaryKey"),Ctt=Symbol.for("Alepha.Postgres.CreatedAt"),Att=Symbol.for("Alepha.Postgres.UpdatedAt"),$tt=Symbol.for("Alepha.Postgres.DeletedAt"),Mtt=Symbol.for("Alepha.Postgres.Version"),Rtt=Symbol.for("Alepha.Postgres.Identity"),Ott=Symbol.for("Alepha.Postgres.Enum"),Ntt=Symbol.for("Alepha.Postgres.Ref"),LW=Symbol.for("Alepha.Postgres.Serial"),Mn=Symbol.for("drizzle:entityKind");function zW(t,e){if(!t||typeof t!="object")return!1;if(t instanceof e)return!0;if(!Object.prototype.hasOwnProperty.call(e,Mn))throw new Error(`Class "${e.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(t).constructor;if(n)for(;n;){if(Mn in n&&n[Mn]===e[Mn])return!0;n=Object.getPrototypeOf(n)}return!1}class BW{constructor(e,n){this.table=e,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[Mn]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(e){return e}mapToDriverValue(e){return e}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}}class UW{static[Mn]="ColumnBuilder";config;constructor(e,n,r){this.config={name:e,keyAsName:e==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:r,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(e){return this.config.default=e,this.config.hasDefault=!0,this}$defaultFn(e){return this.config.defaultFn=e,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(e){return this.config.onUpdateFn=e,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(e){this.config.name===""&&(this.config.name=e)}}const y0=Symbol.for("drizzle:Name");class kW{static[Mn]="PgForeignKeyBuilder";reference;_onUpdate="no action";_onDelete="no action";constructor(e,n){this.reference=()=>{const{name:r,columns:s,foreignColumns:l}=e();return{name:r,columns:s,foreignTable:l[0].table,foreignColumns:l}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(e){return this._onUpdate=e===void 0?"no action":e,this}onDelete(e){return this._onDelete=e===void 0?"no action":e,this}build(e){return new PW(e,this)}}class PW{constructor(e,n){this.table=e,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[Mn]="PgForeignKey";reference;onUpdate;onDelete;getName(){const{name:e,columns:n,foreignColumns:r}=this.reference(),s=n.map(f=>f.name),l=r.map(f=>f.name),c=[this.table[y0],...s,r[0].table[y0],...l];return e??`${c.join("_")}_fk`}}function HW(t,...e){return t(...e)}function FW(t,e){return`${t[y0]}_${e.join("_")}_unique`}function v2(t,e,n){for(let r=e;r<t.length;r++){const s=t[r];if(s==="\\"){r++;continue}if(s==='"')return[t.slice(e,r).replace(/\\/g,""),r+1];if(!n&&(s===","||s==="}"))return[t.slice(e,r).replace(/\\/g,""),r]}return[t.slice(e).replace(/\\/g,""),t.length]}function jO(t,e=0){const n=[];let r=e,s=!1;for(;r<t.length;){const l=t[r];if(l===","){(s||r===e)&&n.push(""),s=!0,r++;continue}if(s=!1,l==="\\"){r+=2;continue}if(l==='"'){const[m,p]=v2(t,r+1,!0);n.push(m),r=p;continue}if(l==="}")return[n,r+1];if(l==="{"){const[m,p]=jO(t,r+1);n.push(m),r=p;continue}const[c,f]=v2(t,r,!1);n.push(c),r=f}return[n,r]}function qW(t){const[e]=jO(t,1);return e}function IO(t){return`{${t.map(e=>Array.isArray(e)?IO(e):typeof e=="string"?`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${e}`).join(",")}}`}class LO extends UW{foreignKeyConfigs=[];static[Mn]="PgColumnBuilder";array(e){return new YW(this.config.name,this,e)}references(e,n={}){return this.foreignKeyConfigs.push({ref:e,actions:n}),this}unique(e,n){return this.config.isUnique=!0,this.config.uniqueName=e,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(e){return this.config.generated={as:e,type:"always",mode:"stored"},this}buildForeignKeys(e,n){return this.foreignKeyConfigs.map(({ref:r,actions:s})=>HW((l,c)=>{const f=new kW(()=>{const m=l();return{columns:[e],foreignColumns:[m]}});return c.onUpdate&&f.onUpdate(c.onUpdate),c.onDelete&&f.onDelete(c.onDelete),f.build(n)},r,s))}buildExtraConfigColumn(e){return new GW(e,this.config)}}class S1 extends BW{constructor(e,n){n.uniqueName||(n.uniqueName=FW(e,[n.name])),super(e,n),this.table=e}static[Mn]="PgColumn"}class GW extends S1{static[Mn]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(e){return this.indexConfig.opClass=e,this}}class YW extends LO{static[Mn]="PgArrayBuilder";constructor(e,n,r){super(e,"array","PgArray"),this.config.baseBuilder=n,this.config.size=r}build(e){const n=this.config.baseBuilder.build(e);return new E1(e,this.config,n)}}class E1 extends S1{constructor(e,n,r,s){super(e,n),this.baseColumn=r,this.range=s,this.size=n.size}size;static[Mn]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(e){return typeof e=="string"&&(e=qW(e)),e.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(e,n=!1){const r=e.map(s=>s===null?null:zW(this.baseColumn,E1)?this.baseColumn.mapToDriverValue(s,!0):this.baseColumn.mapToDriverValue(s));return n?r:IO(r)}}function VW(t,e){return{name:typeof t=="string"&&t.length>0?t:"",config:typeof t=="object"?t:e}}typeof TextDecoder>"u"||new TextDecoder;class KW extends LO{static[Mn]="PgCustomColumnBuilder";constructor(e,n,r){super(e,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=r}build(e){return new XW(e,this.config)}}class XW extends S1{static[Mn]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(e,n){super(e,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(e){return typeof this.mapFrom=="function"?this.mapFrom(e):e}mapToDriverValue(e){return typeof this.mapTo=="function"?this.mapTo(e):e}}function QW(t){return(e,n)=>{const{name:r,config:s}=VW(e,n);return new KW(r,s,t)}}const Cy=(t,e)=>QW({dataType:()=>"jsonb",toDriver:n=>JSON.stringify(n),fromDriver:n=>n&&typeof n=="string"?JSON.parse(n):n})(t,{document:e}).$type(),ZW=t=>{const e={};for(const n in t.properties){const r=t.properties[n];DO in r?e[n]=R.optional(r):e[n]=r}return R.object(e,"options"in Cy&&typeof Cy.options=="object"?{...Cy.options}:{})},JW=t=>{const e={};for(const n in t.properties){const r=t.properties[n];R.schema.isOptional(r)?e[n]=R.optional(R.union([r,R.raw.Null()])):e[n]=r}return R.object(e,"options"in t&&typeof t.options=="object"?{...t.options}:{})},WW=t=>new Nh(t);class Nh{options;constructor(e){this.options=e}alias(e){const n=new Nh(this.options);return new Proxy(n,{get(r,s,l){return s==="$alias"?e:Reflect.get(r,s,l)}})}get cols(){const e={};for(const n of Object.keys(this.schema.properties))e[n]={name:n,entity:this};return e}get name(){return this.options.name}get schema(){return this.options.schema}get insertSchema(){return ZW(this.options.schema)}get updateSchema(){return JW(this.options.schema)}}WW[Rn]=Nh;Ty(Ty(Ty(R.integer(),IW),LW),DO);gr({name:"alepha.orm",primitives:[],services:[lM]});gr({name:"alepha.ui",services:[b2,g0,Yy,_O],register:t=>{t.with(hG),t.with(dG),t.with(cG),t.with(Yy),t.with(b2),t.with(g0)}});const ttt="modulepreload",ett=function(t){return"/devtools/"+t},S2={},eo=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){let m=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");s=m(n.map(p=>{if(p=ett(p),p in S2)return;S2[p]=!0;const g=p.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${b}`))return;const E=document.createElement("link");if(E.rel=g?"stylesheet":ttt,g||(E.as="script"),E.crossOrigin="",E.href=p,f&&E.setAttribute("nonce",f),document.head.appendChild(E),g)return new Promise((S,T)=>{E.addEventListener("load",S),E.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${p}`)))})}))}function l(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return s.then(c=>{for(const f of c||[])f.status==="rejected"&&l(f.reason);return e().catch(l)})};class ntt extends _O{layout=Cn({parent:this.root,lazy:()=>eo(()=>import("./chunk.B06miRTQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),[Symbol.for("alepha.page.preload")]:"bfc0f5d4"});dashboard=Cn({path:"/",label:"Dashboard",icon:x.jsx(UJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.CiLYCLJH.js"),__vite__mapDeps([10,11])),[Symbol.for("alepha.page.preload")]:"6f78c010"});actions=Cn({path:"/actions",label:"Actions",icon:x.jsx(AJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.CnHYu38l.js"),__vite__mapDeps([12,13,14,15,16,9,17,18,3,7,19,8])),[Symbol.for("alepha.page.preload")]:"832bc884"});queues=Cn({path:"/queues",label:"Queues",icon:x.jsx(ZJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.ax3VFVgz.js"),__vite__mapDeps([20,2])),[Symbol.for("alepha.page.preload")]:"f057fce9"});topics=Cn({path:"/topics",label:"Topics",icon:x.jsx(VJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.YsQsplrn.js"),__vite__mapDeps([21,22,3,6,13,14,23,18,17,24,16,9])),[Symbol.for("alepha.page.preload")]:"9b55d83f"});caches=Cn({path:"/caches",label:"Caches",icon:x.jsx(MJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.BDGiK8wy.js"),__vite__mapDeps([25,13,14,23,18,3,26,24,27])),[Symbol.for("alepha.page.preload")]:"6d769362"});env=Cn({path:"/env",label:"Environment",icon:x.jsx(eW,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.8L5-bmT2.js"),__vite__mapDeps([28,13,14,15,26,27])),[Symbol.for("alepha.page.preload")]:"9fe5fa6f"});atoms=Cn({path:"/atoms",label:"Atoms",icon:x.jsx(OJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.U6B6OT4m.js"),__vite__mapDeps([29,22,3,6,13,14,18,30,5,31,16,9])),[Symbol.for("alepha.page.preload")]:"f3532adc"});db=Cn({path:"/db",label:"DB Studio",icon:x.jsx(PJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.BrsQ66Fo.js"),__vite__mapDeps([32,13,14,18,3,26])),[Symbol.for("alepha.page.preload")]:"ebed1358"});graph=Cn({path:"/graph",label:"Graph",icon:x.jsx(WJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.DgZ24mun.js"),__vite__mapDeps([33,13,8,9,34,31,4,5,6,14,11,19,35])),[Symbol.for("alepha.page.preload")]:"4fded5f0"});logs=Cn({path:"/logs",label:"Logs",icon:x.jsx(GJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.V91GMRqU.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,27,24,14,34,31,30,8,9,16,26])),[Symbol.for("alepha.page.preload")]:"a84b8869"})}const x1=Re.create();x1.with(ntt);x1.set(Gy,[CM]);bq(x1);export{FJ as $,Ch as A,ht as B,XJ as C,Sq as D,NG as E,n1 as F,AW as G,gM as H,iR as I,DJ as J,IJ as K,v1 as L,QM as M,Vy as N,UJ as O,AJ as P,ZJ as Q,Yd as R,VJ as S,oo as T,Fl as U,MJ as V,PJ as W,eW as X,OJ as Y,WJ as Z,GJ as _,zl as a,Ntt as a$,dR as a0,LY as a1,Tr as a2,ctt as a3,mh as a4,yv as a5,fM as a6,Yl as a7,lo as a8,ql as a9,Tv as aA,Bl as aB,oV as aC,XQ as aD,pr as aE,Wy as aF,Jm as aG,aR as aH,uh as aI,_v as aJ,utt as aK,ar as aL,gY as aM,ta as aN,Vm as aO,Xq as aP,Qr as aQ,kt as aR,Ty as aS,DO as aT,IW as aU,Rtt as aV,Mtt as aW,Ctt as aX,Att as aY,$tt as aZ,Ott as a_,Xv as aa,cO as ab,gl as ac,TO as ad,zJ as ae,Hl as af,qc as ag,f1 as ah,rW as ai,xi as aj,b2 as ak,Iv as al,_V as am,tR as an,pv as ao,ys as ap,$n as aq,TJ as ar,Hc as as,R as at,ho as au,Rt as av,Re as aw,Km as ax,FM as ay,oR as az,Mv as b,yq as b0,CW as b1,Wm as b2,zo as b3,WW as b4,ri as b5,stt as b6,EM as b7,EG as b8,Ul as b9,yY as ba,$v as bb,dO as bc,d0 as bd,KM as be,TY as bf,Ws as bg,Zv as bh,f0 as bi,ZM as bj,MR as bk,gX as bl,RX as bm,mtt as bn,QT as bo,TR as bp,by as bq,OX as br,dtt as bs,ftt as bt,fQ as bu,Qv as bv,HM as bw,Qd as bx,rs as by,Ll as c,bt as d,Yn as e,It as f,ut as g,Cv as h,MT as i,x as j,$o as k,Kn as l,bs as m,IY as n,oe as o,po as p,Av as q,C as r,wr as s,ltt as t,wY as u,ln as v,Zs as w,un as x,vv as y,att as z};
|