@alepha/devtools 0.15.4 → 0.15.5
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/assets/devtools/actions.html +3 -3
- package/assets/devtools/actions.html.br +0 -0
- package/assets/devtools/actions.html.gz +0 -0
- package/assets/devtools/asset.BJSLFcNT.css +1 -0
- package/assets/devtools/asset.BJSLFcNT.css.br +0 -0
- package/assets/devtools/{asset.CUUwTesj.css.gz → asset.BJSLFcNT.css.gz} +0 -0
- package/assets/devtools/atoms.html +3 -3
- package/assets/devtools/atoms.html.br +0 -0
- package/assets/devtools/atoms.html.gz +0 -0
- package/assets/devtools/caches.html +3 -3
- package/assets/devtools/caches.html.br +0 -0
- package/assets/devtools/caches.html.gz +0 -0
- package/assets/devtools/{chunk.plCe1Vwk.js → chunk.9UE-TDmM.js} +1 -1
- package/assets/devtools/chunk.9UE-TDmM.js.br +0 -0
- package/assets/devtools/chunk.9UE-TDmM.js.gz +0 -0
- package/assets/devtools/{chunk.BYw9RTNZ.js → chunk.BHxnE1kV.js} +1 -1
- package/assets/devtools/chunk.BHxnE1kV.js.br +0 -0
- package/assets/devtools/chunk.BHxnE1kV.js.gz +0 -0
- package/assets/devtools/{chunk.ClYEvjjk.js → chunk.BJnTQtYx.js} +1 -1
- package/assets/devtools/chunk.BJnTQtYx.js.br +2 -0
- package/assets/devtools/chunk.BJnTQtYx.js.gz +0 -0
- package/assets/devtools/{chunk.DjMiOB4_.js → chunk.BZ-MON9S.js} +1 -1
- package/assets/devtools/chunk.BZ-MON9S.js.br +0 -0
- package/assets/devtools/chunk.BZ-MON9S.js.gz +0 -0
- package/assets/devtools/{chunk.BKeiNpZN.js → chunk.B_3Bwa5b.js} +1 -1
- package/assets/devtools/chunk.B_3Bwa5b.js.br +0 -0
- package/assets/devtools/chunk.B_3Bwa5b.js.gz +0 -0
- package/assets/devtools/{chunk.DGiOCunw.js → chunk.Bb0FAZMv.js} +1 -1
- package/assets/devtools/chunk.Bb0FAZMv.js.br +0 -0
- package/assets/devtools/chunk.Bb0FAZMv.js.gz +0 -0
- package/assets/devtools/{chunk.JqUdzWl6.js → chunk.Bq3jHJWW.js} +1 -1
- package/assets/devtools/chunk.Bq3jHJWW.js.br +0 -0
- package/assets/devtools/chunk.Bq3jHJWW.js.gz +0 -0
- package/assets/devtools/{chunk.CJlnGw1S.js → chunk.BxbQjapd.js} +1 -1
- package/assets/devtools/chunk.BxbQjapd.js.br +0 -0
- package/assets/devtools/chunk.BxbQjapd.js.gz +0 -0
- package/assets/devtools/{chunk.D06kB6Ym.js → chunk.ByNKWOOW.js} +1 -1
- package/assets/devtools/chunk.ByNKWOOW.js.br +0 -0
- package/assets/devtools/chunk.ByNKWOOW.js.gz +0 -0
- package/assets/devtools/{chunk.D-abBFDq.js → chunk.By_Dci-t.js} +1 -1
- package/assets/devtools/chunk.By_Dci-t.js.br +0 -0
- package/assets/devtools/chunk.By_Dci-t.js.gz +0 -0
- package/assets/devtools/chunk.C39_Jg92.js +1 -0
- package/assets/devtools/chunk.C39_Jg92.js.br +0 -0
- package/assets/devtools/chunk.C39_Jg92.js.gz +0 -0
- package/assets/devtools/{chunk.D0wx1CNI.js → chunk.C5vcO6ci.js} +1 -1
- package/assets/devtools/chunk.C5vcO6ci.js.br +0 -0
- package/assets/devtools/chunk.C5vcO6ci.js.gz +0 -0
- package/assets/devtools/{chunk.BzM7ER7Q.js → chunk.CEMGNgR8.js} +1 -1
- package/assets/devtools/chunk.CEMGNgR8.js.br +0 -0
- package/assets/devtools/chunk.CEMGNgR8.js.gz +0 -0
- package/assets/devtools/{chunk.BRvGzx4Z.js → chunk.CMs831K8.js} +1 -1
- package/assets/devtools/chunk.CMs831K8.js.br +0 -0
- package/assets/devtools/chunk.CMs831K8.js.gz +0 -0
- package/assets/devtools/{chunk.VTMXAJC6.js → chunk.CVSnwZVj.js} +1 -1
- package/assets/devtools/chunk.CVSnwZVj.js.br +0 -0
- package/assets/devtools/chunk.CVSnwZVj.js.gz +0 -0
- package/assets/devtools/{chunk.6FHGgu4o.js → chunk.CxlIm93S.js} +1 -1
- package/assets/devtools/chunk.CxlIm93S.js.br +0 -0
- package/assets/devtools/chunk.CxlIm93S.js.gz +0 -0
- package/assets/devtools/{chunk.BLPoqamD.js → chunk.D8Zx2d84.js} +1 -1
- package/assets/devtools/chunk.D8Zx2d84.js.br +0 -0
- package/assets/devtools/chunk.D8Zx2d84.js.gz +0 -0
- package/assets/devtools/{chunk.DdQKcont.js → chunk.D9k-tvPV.js} +1 -1
- package/assets/devtools/chunk.D9k-tvPV.js.br +0 -0
- package/assets/devtools/chunk.D9k-tvPV.js.gz +0 -0
- package/assets/devtools/{chunk.CZOSxV2E.js → chunk.DAXSdsjw.js} +1 -1
- package/assets/devtools/chunk.DAXSdsjw.js.br +0 -0
- package/assets/devtools/chunk.DAXSdsjw.js.gz +0 -0
- package/assets/devtools/{chunk.BLRSfNfT.js → chunk.DB50RmbI.js} +1 -1
- package/assets/devtools/chunk.DB50RmbI.js.br +0 -0
- package/assets/devtools/chunk.DB50RmbI.js.gz +0 -0
- package/assets/devtools/{chunk.BrKdm6Sb.js → chunk.DQ4jfyFm.js} +1 -1
- package/assets/devtools/chunk.DQ4jfyFm.js.br +0 -0
- package/assets/devtools/chunk.DQ4jfyFm.js.gz +0 -0
- package/assets/devtools/{chunk.D8oqA7fh.js → chunk.DS3W-YAa.js} +1 -1
- package/assets/devtools/chunk.DS3W-YAa.js.br +0 -0
- package/assets/devtools/chunk.DS3W-YAa.js.gz +0 -0
- package/assets/devtools/{chunk.CFRKkktr.js → chunk.DTrbqH0C.js} +1 -1
- package/assets/devtools/chunk.DTrbqH0C.js.br +0 -0
- package/assets/devtools/chunk.DTrbqH0C.js.gz +0 -0
- package/assets/devtools/{chunk.BSg4Kjs-.js → chunk.DYu2Kn_0.js} +1 -1
- package/assets/devtools/chunk.DYu2Kn_0.js.br +0 -0
- package/assets/devtools/chunk.DYu2Kn_0.js.gz +0 -0
- package/assets/devtools/{chunk.CCy0GI_s.js → chunk.DnocEn4r.js} +1 -1
- package/assets/devtools/chunk.DnocEn4r.js.br +0 -0
- package/assets/devtools/chunk.DnocEn4r.js.gz +0 -0
- package/assets/devtools/{chunk._oyZXgMC.js → chunk.DtqQCeAj.js} +1 -1
- package/assets/devtools/chunk.DtqQCeAj.js.br +1 -0
- package/assets/devtools/chunk.DtqQCeAj.js.gz +0 -0
- package/assets/devtools/{chunk.Cas0t8F5.js → chunk.DtreVhNu.js} +1 -1
- package/assets/devtools/chunk.DtreVhNu.js.br +0 -0
- package/assets/devtools/chunk.DtreVhNu.js.gz +0 -0
- package/assets/devtools/chunk.Dyhfd98M.js +1 -0
- package/assets/devtools/chunk.Dyhfd98M.js.br +0 -0
- package/assets/devtools/chunk.Dyhfd98M.js.gz +0 -0
- package/assets/devtools/{chunk.Cf3d2zjg.js → chunk.Dzb_dhg1.js} +1 -1
- package/assets/devtools/chunk.Dzb_dhg1.js.br +0 -0
- package/assets/devtools/chunk.Dzb_dhg1.js.gz +0 -0
- package/assets/devtools/{chunk.BV5mF0Co.js → chunk.PvdrSA5J.js} +1 -1
- package/assets/devtools/chunk.PvdrSA5J.js.br +0 -0
- package/assets/devtools/chunk.PvdrSA5J.js.gz +0 -0
- package/assets/devtools/{chunk.BEZMZ7cU.js → chunk.SkQJX15J.js} +1 -1
- package/assets/devtools/chunk.SkQJX15J.js.br +0 -0
- package/assets/devtools/chunk.SkQJX15J.js.gz +0 -0
- package/assets/devtools/{chunk.CjAS4aWI.js → chunk.U5tHwlLn.js} +1 -1
- package/assets/devtools/chunk.U5tHwlLn.js.br +0 -0
- package/assets/devtools/chunk.U5tHwlLn.js.gz +0 -0
- package/assets/devtools/{chunk.DQrcztZO.js → chunk.l29gR4Ri.js} +1 -1
- package/assets/devtools/chunk.l29gR4Ri.js.br +0 -0
- package/assets/devtools/chunk.l29gR4Ri.js.gz +0 -0
- package/assets/devtools/db.html +3 -3
- package/assets/devtools/db.html.br +0 -0
- package/assets/devtools/db.html.gz +0 -0
- package/assets/devtools/{entry.CfgGy8wg.js → entry.ETzhI2TP.js} +18 -18
- package/assets/devtools/entry.ETzhI2TP.js.br +0 -0
- package/assets/devtools/entry.ETzhI2TP.js.gz +0 -0
- package/assets/devtools/env.html +3 -3
- package/assets/devtools/env.html.br +0 -0
- package/assets/devtools/env.html.gz +0 -0
- package/assets/devtools/graph.html +3 -3
- package/assets/devtools/graph.html.br +0 -0
- package/assets/devtools/graph.html.gz +0 -0
- package/assets/devtools/index.html +3 -3
- package/assets/devtools/index.html.br +0 -0
- package/assets/devtools/index.html.gz +0 -0
- package/assets/devtools/logs.html +3 -3
- package/assets/devtools/logs.html.br +0 -0
- package/assets/devtools/logs.html.gz +0 -0
- package/assets/devtools/queues.html +3 -3
- package/assets/devtools/queues.html.br +0 -0
- package/assets/devtools/queues.html.gz +0 -0
- package/assets/devtools/topics.html +3 -3
- package/assets/devtools/topics.html.br +0 -0
- package/assets/devtools/topics.html.gz +0 -0
- package/package.json +4 -4
- package/src/ui/components/DevLayout.tsx +2 -3
- package/assets/devtools/asset.CUUwTesj.css +0 -1
- package/assets/devtools/asset.CUUwTesj.css.br +0 -0
- package/assets/devtools/chunk.6FHGgu4o.js.br +0 -0
- package/assets/devtools/chunk.6FHGgu4o.js.gz +0 -0
- package/assets/devtools/chunk.BEZMZ7cU.js.br +0 -0
- package/assets/devtools/chunk.BEZMZ7cU.js.gz +0 -0
- package/assets/devtools/chunk.BKeiNpZN.js.br +0 -0
- package/assets/devtools/chunk.BKeiNpZN.js.gz +0 -0
- package/assets/devtools/chunk.BLPoqamD.js.br +0 -0
- package/assets/devtools/chunk.BLPoqamD.js.gz +0 -0
- package/assets/devtools/chunk.BLRSfNfT.js.br +0 -0
- package/assets/devtools/chunk.BLRSfNfT.js.gz +0 -0
- package/assets/devtools/chunk.BRvGzx4Z.js.br +0 -0
- package/assets/devtools/chunk.BRvGzx4Z.js.gz +0 -0
- package/assets/devtools/chunk.BSg4Kjs-.js.br +0 -0
- package/assets/devtools/chunk.BSg4Kjs-.js.gz +0 -0
- package/assets/devtools/chunk.BV5mF0Co.js.br +0 -0
- package/assets/devtools/chunk.BV5mF0Co.js.gz +0 -0
- package/assets/devtools/chunk.BYw9RTNZ.js.br +0 -0
- package/assets/devtools/chunk.BYw9RTNZ.js.gz +0 -0
- package/assets/devtools/chunk.BrKdm6Sb.js.br +0 -0
- package/assets/devtools/chunk.BrKdm6Sb.js.gz +0 -0
- package/assets/devtools/chunk.BzM7ER7Q.js.br +0 -0
- package/assets/devtools/chunk.BzM7ER7Q.js.gz +0 -0
- package/assets/devtools/chunk.CCy0GI_s.js.br +0 -0
- package/assets/devtools/chunk.CCy0GI_s.js.gz +0 -0
- package/assets/devtools/chunk.CFRKkktr.js.br +0 -0
- package/assets/devtools/chunk.CFRKkktr.js.gz +0 -0
- package/assets/devtools/chunk.CJlnGw1S.js.br +0 -0
- package/assets/devtools/chunk.CJlnGw1S.js.gz +0 -0
- package/assets/devtools/chunk.CZOSxV2E.js.br +0 -0
- package/assets/devtools/chunk.CZOSxV2E.js.gz +0 -0
- package/assets/devtools/chunk.CZp8Oawk.js +0 -1
- package/assets/devtools/chunk.CZp8Oawk.js.br +0 -0
- package/assets/devtools/chunk.CZp8Oawk.js.gz +0 -0
- package/assets/devtools/chunk.Cas0t8F5.js.br +0 -0
- package/assets/devtools/chunk.Cas0t8F5.js.gz +0 -0
- package/assets/devtools/chunk.Cf3d2zjg.js.br +0 -0
- package/assets/devtools/chunk.Cf3d2zjg.js.gz +0 -0
- package/assets/devtools/chunk.CjAS4aWI.js.br +0 -0
- package/assets/devtools/chunk.CjAS4aWI.js.gz +0 -0
- package/assets/devtools/chunk.ClYEvjjk.js.br +0 -2
- package/assets/devtools/chunk.ClYEvjjk.js.gz +0 -0
- package/assets/devtools/chunk.D-abBFDq.js.br +0 -0
- package/assets/devtools/chunk.D-abBFDq.js.gz +0 -0
- package/assets/devtools/chunk.D06kB6Ym.js.br +0 -0
- package/assets/devtools/chunk.D06kB6Ym.js.gz +0 -0
- package/assets/devtools/chunk.D0wx1CNI.js.br +0 -0
- package/assets/devtools/chunk.D0wx1CNI.js.gz +0 -0
- package/assets/devtools/chunk.D8oqA7fh.js.br +0 -0
- package/assets/devtools/chunk.D8oqA7fh.js.gz +0 -0
- package/assets/devtools/chunk.DGiOCunw.js.br +0 -0
- package/assets/devtools/chunk.DGiOCunw.js.gz +0 -0
- package/assets/devtools/chunk.DHfKeDbH.js +0 -1
- package/assets/devtools/chunk.DHfKeDbH.js.br +0 -0
- package/assets/devtools/chunk.DHfKeDbH.js.gz +0 -0
- package/assets/devtools/chunk.DQrcztZO.js.br +0 -0
- package/assets/devtools/chunk.DQrcztZO.js.gz +0 -0
- package/assets/devtools/chunk.DdQKcont.js.br +0 -0
- package/assets/devtools/chunk.DdQKcont.js.gz +0 -0
- package/assets/devtools/chunk.DjMiOB4_.js.br +0 -0
- package/assets/devtools/chunk.DjMiOB4_.js.gz +0 -0
- package/assets/devtools/chunk.JqUdzWl6.js.br +0 -0
- package/assets/devtools/chunk.JqUdzWl6.js.gz +0 -0
- package/assets/devtools/chunk.VTMXAJC6.js.br +0 -0
- package/assets/devtools/chunk.VTMXAJC6.js.gz +0 -0
- package/assets/devtools/chunk._oyZXgMC.js.br +0 -0
- package/assets/devtools/chunk._oyZXgMC.js.gz +0 -0
- package/assets/devtools/chunk.plCe1Vwk.js.br +0 -0
- package/assets/devtools/chunk.plCe1Vwk.js.gz +0 -0
- package/assets/devtools/entry.CfgGy8wg.js.br +0 -0
- package/assets/devtools/entry.CfgGy8wg.js.gz +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunk.
|
|
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"),nc=Symbol.for("Alepha.Options");class Ut extends Error{name="AlephaError"}class l3 extends Ut{name="CircularDependencyError";constructor(e,n){super(`Instance not available. Looks like a circular dependency. ? -> ${n?.map(r=>`${r} -> `).join("")}${e} -> ?`)}}class Ew extends Ut{name="ContainerLockedError";constructor(e="Container is locked. No more providers can be added."){super(e)}}class u3 extends Ut{name="TooLateSubstitutionError";constructor(e,n){super(`Service already substituted. Please, substitute Service '${e}' with Service '${n}' before using it.`)}}class c3 extends Ut{name="MissingContextError";constructor(){super("Missing context. Did you forget to call Alepha.create()?"),this.name="MissingContextError"}}const zr={},vl=()=>{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}=vl();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 Ut(`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 S2{static NAME_REGEX=/^[a-z-]+(\.[a-z-][a-z0-9-]*)*$/;static is(e){return e.prototype instanceof S2}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}=vl();return t===n.constructor?n:n.inject(t,{parent:r??n.constructor,...e})};let d3=class{stringify=JSON.stringify;parse=JSON.parse};class E2{}class x2 extends E2{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(w2,t);class w2 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]=w2;function Xe(t,e){return{...t,...e}}function ns(t,e,n){return t>=e&&t<=n}function xw(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 ww(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=ww(t,r);r<t.length-1&&t[r]==="";){const s=t.codePointAt(r+1);r+=1+vd(s),r=ww(t,r)}return xw(n)&&r<t.length&&xw(t.codePointAt(r))&&(r+=vd(t.codePointAt(r))),r}function T2(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(T2(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(T2(t.charCodeAt(n)))return y3(t,e);if(n++,n>e)return!1}return!0}function xt(t){return Array.isArray(t)}function C2(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 A2(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 Sl(t,e){return t>e}function em(t,e){return t<e}function hi(t,e){return t<=e}function El(t,e){return t>=e}function $2(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 M2(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 R2(t,e){return v3(t,e)}function O2(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:C2,IsBigInt:Ne,IsBoolean:Fe,IsClassInstance:M2,IsConstructor:v0,IsDeepEqual:mc,IsEqual:M,IsFunction:ai,IsGreaterEqualThan:El,IsGreaterThan:Sl,IsInteger:tm,IsIterator:A2,IsLessEqualThan:hi,IsLessThan:em,IsMaxLength:R2,IsMinLength:O2,IsMultipleOf:$2,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 N2(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 _2(t){return`Number.isFinite(${t})`}function D2(t){return yr(j2(t),An(Id(t)))}function j2(t){return`typeof ${t} === "object" && ${t} !== null`}function I2(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 L2(t,e){return`${t} > ${e}`}function z2(t,e){return`${t} < ${e}`}function xl(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 B2(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 U2(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 k2(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 P2(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 H2(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(H2(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=H2(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 kt(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")&&kt(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")&&kt(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")&&kt(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")&&kt(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 F2(t){return Qt(t,{"~immutable":!0},{})}function sm(t){return F2(t)}function Ld(t){return kt(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 kt(t)&&at(t,"~optional")}function q2(t){return Gr(t,["~readonly"])}function Pr(t){return Qt(t,{"~readonly":!0},{})}function G2(t){return Pr(t)}function zd(t){return kt(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 Y2(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 Tw(t){return{enumerable:hc().enumerableKind,writable:!1,configurable:!1,value:t}}let V2=class{constructor(){globalThis.Object.defineProperty(this,"~kind",Tw("Base")),globalThis.Object.defineProperty(this,"~guard",Tw({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 wl(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?K2(t,e,t[e]):dD()}function K2(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 K2(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)),X2=new Float64Array(1),Q2=new DataView(X2.buffer),Z2=new Uint8Array(X2.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),Q2.setBigInt64(0,t);for(const e of Z2)en(e)}function Cw(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 Aw(t){en(xn.Number),Q2.setFloat64(0,t,!0);for(const e of Z2)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 P2(t)?zD(t):F3(t)?OD(t):H3(t)?jD(t):U3(t)?Cw(t.valueOf()):P3(t)?My(t.valueOf()):k3(t)?Aw(t.valueOf()):wD(t)?Aw(t):xt(t)?$D(t):Fe(t)?Cw(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 J2(t){return il=BigInt("14695981039346656037"),is(t),il}function oc(t){return J2(t).toString(16).padStart(16,"0")}const UD=Object.freeze(Object.defineProperty({__proto__:null,Hash:oc,HashCode:J2},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 W2{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 tC{constructor(e){this.type=e}Decode(e){return new W2(this.type,e)}}function N0(t){return new tC(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 kt(t)&&at(t,"~codec")&&Mt(t["~codec"])&&at(t["~codec"],"encode")&&at(t["~codec"],"decode")}function GD(t,e){const n=eC(t)?[...t["~refine"],e]:[e];return Qt(t,{"~refine":n},{})}function YD(t,e,n="error"){return GD(t,{refine:e,message:n})}function eC(t){return kt(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 nC="-?(?: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 rC(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 Tl(t){return Ht(t,"Null")}const oC="-?(?: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 iC(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 sC=".*";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 aC(t){const e=uI(t);return M(e.length,2)?e[0]:[]}function sj(t){return!0}function lC(t){const[e,...n]=t;return kt(e)?aj(e)?lC(n):!1:!0}function uC(t){return M(t.length,0)?!1:lC(t)}function aj(t){return Pt(t)?uC(t.anyOf):Ie(t)?sj(t.const):!1}function cC(t){return uC(t)}function fC(t){return Nt({"~kind":"TemplateLiteral"},{type:"string",pattern:t},{})}function dC(t,e,n=[]){const[r,...s]=t;return jt(r)?dC(s,e,[...n,`${r}${e}`]):n}function lj(t,e){return M(t.length,0)?[`${e}`]:dC(t,e)}function mC(t,e,n=[]){const[r,...s]=e;return kt(r)?mC(t,s,[...n,...hC(t,r)]):n}function hC(t,e){return Pt(e)?mC(t,e.anyOf):Ie(e)?lj(t,e.const):He()}function pC(t,e){const[n,...r]=e;return kt(n)?pC(hC(t,n),r):t}function uj(t){return t.map(e=>be(e))}function cj(t){const e=pC([],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 gC(t){const e=aC(t);return M(e.length,0)?Hr():cC(e)?fj(e):fC(t)}function bi(t){const e=gC(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=`^${nC}$`,fm=`^${oC}$`,Qs=`^${sC}$`;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():gC(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 yC(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 Cl(t){return Ht(t,"Undefined")}function Sd(t){return Nt({"~kind":"Unsafe"},{},t)}function bC(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")?KA(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]):NA(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 yC()}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 $w=(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),Mw=(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 Mw(e?Sm($w(n,r)):$w(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 F2(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 vC(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 vC(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 Rw(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 Ow(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],Rw(t[1],Ow(t[8],t[10]))):Hd(Bd(t[3]),t[5],cr(t[3]),Rw(t[1],Ow(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 vC(vi(t))}function c6(t){return t[1]}function f6(t){const e=t[0],n=t[1];return XA(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)],SC="0",EC=Ry(49,57),H0=[SC,...EC],h6=" ",F0=`
|
|
3
|
-
`,xc="_",q0=".",
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunk.C39_Jg92.js","chunk.9UE-TDmM.js","chunk.DtqQCeAj.js","chunk.BlqFPyLh.js","chunk.C5vcO6ci.js","chunk.BjFrJKj1.js","chunk.DnocEn4r.js","chunk.BZ-MON9S.js","chunk.DQ4jfyFm.js","chunk.D9k-tvPV.js","chunk.By_Dci-t.js","chunk.CVSnwZVj.js","chunk.CEMGNgR8.js","chunk.DYu2Kn_0.js","chunk.Bb0FAZMv.js","chunk.uyVen0u2.js","chunk.DTrbqH0C.js","chunk.Dzb_dhg1.js","chunk.l29gR4Ri.js","chunk.DS3W-YAa.js","chunk.U5tHwlLn.js","chunk.BxbQjapd.js","chunk.Bq3jHJWW.js","chunk.PvdrSA5J.js","chunk.BHxnE1kV.js","chunk.D8Zx2d84.js","chunk.ByNKWOOW.js","chunk.BJnTQtYx.js","chunk.SkQJX15J.js","chunk.DB50RmbI.js","chunk.B_3Bwa5b.js","chunk.CMs831K8.js","chunk.DtreVhNu.js","chunk.DAXSdsjw.js","chunk.CxlIm93S.js","asset.BZV40eAE.css","chunk.Dyhfd98M.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var s3=Object.defineProperty;var a3=(t,e,n)=>e in t?s3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Us=(t,e,n)=>a3(t,typeof e!="symbol"?e+"":e,n);function l3(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"),nc=Symbol.for("Alepha.Options");class Ut extends Error{name="AlephaError"}class u3 extends Ut{name="CircularDependencyError";constructor(e,n){super(`Instance not available. Looks like a circular dependency. ? -> ${n?.map(r=>`${r} -> `).join("")}${e} -> ?`)}}class Ew extends Ut{name="ContainerLockedError";constructor(e="Container is locked. No more providers can be added."){super(e)}}class c3 extends Ut{name="TooLateSubstitutionError";constructor(e,n){super(`Service already substituted. Please, substitute Service '${e}' with Service '${n}' before using it.`)}}class f3 extends Ut{name="MissingContextError";constructor(){super("Missing context. Did you forget to call Alepha.create()?"),this.name="MissingContextError"}}const zr={},vl=()=>{if(!zr.alepha)throw new f3;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}=vl();return Pn in t&&t[Pn]&&n.with(t[Pn]),n.inject(t,{lifetime:"transient",args:[{options:e,alepha:n,service:r??Re}]})};function d3(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 Ut(`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 S2{static NAME_REGEX=/^[a-z-]+(\.[a-z-][a-z0-9-]*)*$/;static is(e){return e.prototype instanceof S2}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}=vl();return t===n.constructor?n:n.inject(t,{parent:r??n.constructor,...e})};let m3=class{stringify=JSON.stringify;parse=JSON.parse};class E2{}class x2 extends E2{json=Rt(m3);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(w2,t);class w2 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]=w2;function Xe(t,e){return{...t,...e}}function ns(t,e,n){return t>=e&&t<=n}function xw(t){return ns(t,127462,127487)}function h3(t){return ns(t,65024,65039)}function p3(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 ww(t,e){for(;e<t.length;){const n=t.codePointAt(e);if(p3(n)||h3(n))e+=vd(n);else break}return e}function b0(t,e){const n=t.codePointAt(e);let r=e+vd(n);for(r=ww(t,r);r<t.length-1&&t[r]==="";){const s=t.codePointAt(r+1);r+=1+vd(s),r=ww(t,r)}return xw(n)&&r<t.length&&xw(t.codePointAt(r))&&(r+=vd(t.codePointAt(r))),r}function T2(t){return ns(t,55296,56319)||ns(t,768,879)||t===8205}function g3(t){let e=0,n=0;for(;n<t.length;)n=b0(t,n),e++;return e}function y3(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 b3(t,e){let n=0,r=0;for(;r<t.length;)if(r=b0(t,r),n++,n>e)return!1;return!0}function v3(t,e){if(e===0)return!0;let n=0;for(;n<t.length;){if(T2(t.charCodeAt(n)))return y3(t,e);if(n++,n>=e)return!0}return!1}function S3(t,e){let n=0;for(;n<t.length;){if(T2(t.charCodeAt(n)))return b3(t,e);if(n++,n>e)return!1}return!0}function xt(t){return Array.isArray(t)}function C2(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 A2(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 Sl(t,e){return t>e}function em(t,e){return t<e}function hi(t,e){return t<=e}function El(t,e){return t>=e}function $2(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 M2(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 E3(t){return g3(t)}function R2(t,e){return S3(t,e)}function O2(t,e){return v3(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 x3(t){return Object.getOwnPropertySymbols(t)}function x0(t){return Object.values(t)}function w3(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 T3(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)?T3(t,e):Mt(t)?w3(t,e):M(t,e)}const C3=Object.freeze(Object.defineProperty({__proto__:null,Entries:Qe,EntriesRegExp:E0,Every:gn,EveryAll:yn,GraphemeCount:E3,HasPropertyKey:at,IsArray:xt,IsAsyncIterator:C2,IsBigInt:Ne,IsBoolean:Fe,IsClassInstance:M2,IsConstructor:v0,IsDeepEqual:mc,IsEqual:M,IsFunction:ai,IsGreaterEqualThan:El,IsGreaterThan:Sl,IsInteger:tm,IsIterator:A2,IsLessEqualThan:hi,IsLessThan:em,IsMaxLength:R2,IsMinLength:O2,IsMultipleOf:$2,IsNull:Vn,IsNumber:Kt,IsObject:Mt,IsObjectNotArray:mi,IsString:jt,IsSymbol:S0,IsUndefined:ye,IsValueLike:dc,Keys:yt,Symbols:x3,Values:x0},Symbol.toStringTag,{value:"Module"})),A3=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function $3(t){return A3.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 M3(t){return`Guard.IsAsyncIterator(${t})`}function N2(t){return`typeof ${t} === "bigint"`}function R3(t){return`typeof ${t} === "boolean"`}function O3(t){return`Number.isInteger(${t})`}function N3(t){return`Guard.IsIterator(${t})`}function _3(t){return`${t} === null`}function _2(t){return`Number.isFinite(${t})`}function D2(t){return yr(j2(t),An(Id(t)))}function j2(t){return`typeof ${t} === "object" && ${t} !== null`}function I2(t){return`typeof ${t} === "string"`}function D3(t){return`typeof ${t} === "symbol"`}function Ay(t){return`${t} === undefined`}function j3(t){return`typeof ${t} === "function"`}function I3(t){return`Guard.IsConstructor(${t})`}function lr(t,e){return`${t} === ${e}`}function L2(t,e){return`${t} > ${e}`}function z2(t,e){return`${t} < ${e}`}function xl(t,e){return`${t} <= ${e}`}function nm(t,e){return`${t} >= ${e}`}function L3(t,e){return`Guard.IsMinLength(${t}, ${e})`}function z3(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 B2(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 U2(t,e){return`Guard.IsDeepEqual(${t}, ${e})`}function B3(t){return`[${t.join(", ")}]`}function ur(t,e){return`((${t.join(", ")}) => ${e})`}function re(t,e){return`${t}(${e.join(", ")})`}function w0(t,e){return`new ${t}(${e.join(", ")})`}function Dt(t,e){return`${t}${$3(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 k2(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 U3(t,e){return`Guard.IsMultipleOf(${t}, ${e})`}function k3(t){return t instanceof Boolean}function P3(t){return t instanceof Number}function H3(t){return t instanceof String}function P2(t){return globalThis.ArrayBuffer.isView(t)}function F3(t){return t instanceof globalThis.RegExp}function q3(t){return t instanceof globalThis.Date}function G3(t){return t instanceof globalThis.Set}function Y3(t){return t instanceof globalThis.Map}function V3(t){return Mt(t)&&at(t,"~guard")}function K3(t){return t.map(e=>A0(e))}function X3(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 Q3(t){return new RegExp(t.source,t.flags)}function A0(t){return t instanceof RegExp?Q3(t):V3(t)?t:xt(t)?K3(t):Mt(t)?X3(t):t}function H2(t){return A0(t)}const Z3={immutableTypes:!1,maxErrors:8,useEval:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1};function hc(){return Z3}function J3(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 W3(t,e){return{...t,...e}}function Nt(t,e,n={}){const r=W3(e,n);return J3(r,t)}function Gr(t,e){const n={},r=Object.getOwnPropertyDescriptors(H2(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=H2(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 kt(t){return Mt(t)}function tD(t){return Nt({"~kind":"OptionalAddAction"},{type:t},{})}function eD(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&M(t["~kind"],"OptionalAddAction")&&kt(t.type)}function nD(t){return Nt({"~kind":"OptionalRemoveAction"},{type:t},{})}function rD(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&M(t["~kind"],"OptionalRemoveAction")&&kt(t.type)}function oD(t){return Nt({"~kind":"ReadonlyAddAction"},{type:t},{})}function iD(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&M(t["~kind"],"ReadonlyAddAction")&&kt(t.type)}function sD(t){return Nt({"~kind":"ReadonlyRemoveAction"},{type:t},{})}function aD(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&M(t["~kind"],"ReadonlyRemoveAction")&&kt(t.type)}function he(t,e,n){return Nt({"~kind":"Deferred"},{action:t,parameters:e,options:n},{})}function lD(t){return Ht(t,"Deferred")}function F2(t){return Qt(t,{"~immutable":!0},{})}function sm(t){return F2(t)}function Ld(t){return kt(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 kt(t)&&at(t,"~optional")}function q2(t){return Gr(t,["~readonly"])}function Pr(t){return Qt(t,{"~readonly":!0},{})}function G2(t){return Pr(t)}function zd(t){return kt(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 Y2(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 uD(t){return Gr(t,["~kind","type","iteratorItems"])}function Tw(t){return{enumerable:hc().enumerableKind,writable:!1,configurable:!1,value:t}}let V2=class{constructor(){globalThis.Object.defineProperty(this,"~kind",Tw("Base")),globalThis.Object.defineProperty(this,"~guard",Tw({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 wl(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 cD(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 fD(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 dD="(?!)";function Ze(t){return Nt({"~kind":"Never"},{not:{}},t)}function um(t){return Ht(t,"Never")}function mD(){return["(not-resolvable)",Ze()]}function hD(){return["(not-generic)",Ze()]}function pD(t,e,n){return[t,gc(e,n)]}function gD(t,e,n){return e in t?K2(t,e,t[e]):mD()}function K2(t,e,n,r){return R0(n)?pD(e,n.parameters,n.expression):On(n)?gD(t,n.$ref):hD()}function yD(t,e,n){return K2(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 bD(t){return mi(t)}function vD(t){return yt(t).filter(n=>isNaN(n)).reduce((n,r)=>[...n,t[r]],[])}function SD(t,e){const n=bD(t)?vD(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 ED(t){return Gr(t,["~kind","allOf"])}function He(){throw new Error("Unreachable")}let qg;function xD(){try{return new globalThis.Function("null")(),!0}catch{return!1}}function O0(){return ye(qg)&&(qg=xD()),qg&&hc().useEval}function wD(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 TD(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[CD,AD]=[BigInt("1099511628211"),BigInt("18446744073709551616")],$D=Array.from({length:256}).map((t,e)=>BigInt(e)),X2=new Float64Array(1),Q2=new DataView(X2.buffer),Z2=new Uint8Array(X2.buffer);function en(t){il=il^$D[t],il=il*CD%AD}function MD(t){en(xn.Array);for(const e of t)is(e)}function RD(t){en(xn.BigInt),Q2.setBigInt64(0,t);for(const e of Z2)en(e)}function Cw(t){en(xn.Boolean),en(t?1:0)}function OD(t){en(xn.Constructor),is(t.toString())}function ND(t){en(xn.Date),is(t.getTime())}function _D(t){en(xn.Function),is(t.toString())}function DD(t){en(xn.Null)}function Aw(t){en(xn.Number),Q2.setFloat64(0,t,!0);for(const e of Z2)en(e)}function jD(t){en(xn.Object);for(const e of wD(t).sort())is(e),is(t[e])}function ID(t){en(xn.RegExp),My(t.toString())}const LD=new TextEncoder;function My(t){en(xn.String);for(const e of LD.encode(t))en(e)}function zD(t){en(xn.Symbol),is(t.toString())}function BD(t){en(xn.TypeArray);const e=new Uint8Array(t.buffer);for(let n=0;n<e.length;n++)en(e[n])}function UD(t){return en(xn.Undefined)}function is(t){return P2(t)?BD(t):q3(t)?ND(t):F3(t)?ID(t):k3(t)?Cw(t.valueOf()):H3(t)?My(t.valueOf()):P3(t)?Aw(t.valueOf()):TD(t)?Aw(t):xt(t)?MD(t):Fe(t)?Cw(t):Ne(t)?RD(t):v0(t)?OD(t):Vn(t)?DD():Mt(t)?jD(t):jt(t)?My(t):S0(t)?zD(t):ye(t)?UD():ai(t)?_D(t):He()}function J2(t){return il=BigInt("14695981039346656037"),is(t),il}function oc(t){return J2(t).toString(16).padStart(16,"0")}const kD=Object.freeze(Object.defineProperty({__proto__:null,Hash:oc,HashCode:J2},Symbol.toStringTag,{value:"Module"}));function PD(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 HD=PD;function FD(){return HD}class W2{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 tC{constructor(e){this.type=e}Decode(e){return new W2(this.type,e)}}function N0(t){return new tC(t)}function qD(t,e){return N0(t).Decode(e).Encode(()=>{throw Error("Encode not implemented")})}function GD(t,e){return N0(t).Decode(()=>{throw Error("Decode not implemented")}).Encode(e)}function mr(t){return kt(t)&&at(t,"~codec")&&Mt(t["~codec"])&&at(t["~codec"],"encode")&&at(t["~codec"],"decode")}function YD(t,e){const n=eC(t)?[...t["~refine"],e]:[e];return Qt(t,{"~refine":n},{})}function VD(t,e,n="error"){return YD(t,{refine:e,message:n})}function eC(t){return kt(t)&&at(t,"~refine")}const KD="-?(?: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 XD(t){return Ht(t,"Identifier")}const nC="-?(?: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 QD(t){return Gr(t,["~kind","type","iteratorItems"])}class ZD extends Error{constructor(e){super("Invalid Literal value"),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}}function JD(t){return Ne(t)?"bigint":Fe(t)?"boolean":Kt(t)?"number":jt(t)?"string":(()=>{throw new ZD(t)})()}function be(t,e){return Nt({"~kind":"Literal"},{type:JD(t),const:t},e)}function rC(t){return Ne(t)||Fe(t)||Kt(t)||jt(t)}function WD(t){return Ie(t)&&Ne(t.const)}function tj(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 Tl(t){return Ht(t,"Null")}const oC="-?(?: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 ej(t){return yt(t).filter(e=>!qn(t[e]))}function nj(t){return yt(t)}function iC(t){return x0(t)}function ue(t,e={}){const n=ej(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 rj(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 oj(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 ij(t){return Gr(t,["~kind","type","item"])}const sC=".*";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 sj(t){return Gr(t,["~kind","anyOf"])}function aC(t){const e=cI(t);return M(e.length,2)?e[0]:[]}function aj(t){return!0}function lC(t){const[e,...n]=t;return kt(e)?lj(e)?lC(n):!1:!0}function uC(t){return M(t.length,0)?!1:lC(t)}function lj(t){return Pt(t)?uC(t.anyOf):Ie(t)?aj(t.const):!1}function cC(t){return uC(t)}function fC(t){return Nt({"~kind":"TemplateLiteral"},{type:"string",pattern:t},{})}function dC(t,e,n=[]){const[r,...s]=t;return jt(r)?dC(s,e,[...n,`${r}${e}`]):n}function uj(t,e){return M(t.length,0)?[`${e}`]:dC(t,e)}function mC(t,e,n=[]){const[r,...s]=e;return kt(r)?mC(t,s,[...n,...hC(t,r)]):n}function hC(t,e){return Pt(e)?mC(t,e.anyOf):Ie(e)?uj(t,e.const):He()}function pC(t,e){const[n,...r]=e;return kt(n)?pC(hC(t,n),r):t}function cj(t){return t.map(e=>be(e))}function fj(t){const e=pC([],t),n=cj(e);return Se(n)}function dj(t){return M(t.length,0)?He():M(t.length,1)&&Ie(t[0])?t[0]:fj(t)}function gC(t){const e=aC(t);return M(e.length,0)?Hr():cC(e)?dj(e):fC(t)}function bi(t){const e=gC(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=`^${nC}$`,fm=`^${oC}$`,Qs=`^${sC}$`;function z0(t,e,n={}){return he("Record",[t,e],n)}function mj(t,e,n={}){return ee({},z0(t,e,n))}function B0(t,e,n={}){return mj(t,e,n)}function hj(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():gC(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 yC(t){return Nt({"~kind":"This"},{$ref:"#"},t)}function pj(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 gj(t){return Gr(t,["~kind","type","items","minItems","additionalItems"])}function hm(t){return Nt({"~kind":"Undefined"},{type:"undefined"},t)}function Cl(t){return Ht(t,"Undefined")}function Sd(t){return Nt({"~kind":"Unsafe"},{},t)}function bC(t){return Ht(t,"Unsafe")}function k0(t){return Nt({"~kind":"Void"},{type:"void"},t)}function ms(t){return Ht(t,"Void")}function yj(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")?KA(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]):NA(cr(t),e)}function ia(){throw Error("Unreachable")}const bj=(t,e=[])=>t.reduce((n,r)=>xt(r)&&M(r.length,2)?[...n,r[0]]:[...n,r],[]),vi=t=>{const[e,n]=t;return bj([...e,...n])};function vj(t){return Sc(t[0],t[2],t[4])}function Sj(t){return Sc(t[0],t[2],t[2])}function Ej(t){return Sc(t[0],fr(),t[2])}function xj(t){return Sc(t,fr(),fr())}function wj(t){return vi(t)}function Tj(t){return t[1]}function Cj(t){return vi(t)}function Aj(t){return t[1]}function $j(t){return yj(t[0],t[1])}function Mj(t){return null}function Rj(t){return Hr()}function Oj(t){return li()}function Nj(t){return D0()}function _j(t){return hm()}function Dj(t){return Ys()}function jj(t){return dl()}function Ij(t){return _0()}function Lj(t){return fr()}function zj(t){return ll()}function Bj(t){return ue({})}function Uj(t){return Ze()}function kj(t){return L0()}function Pj(t){return k0()}function Hj(t){return yC()}function Fj(t){return t[1]}function qj(t){return be(t)}function Gj(t){return M(t.length,3)?[t[0],t[1],...t[2]]:[t[0]]}function Yj(t){return t[1]}function Vj(t){return J0(t)}function Kj(t){return be(BigInt(t))}function Xj(t){return be(M(t,"true"))}function Qj(t){return be(parseFloat(t))}function Zj(t){return be(t)}function Jj(t){return t.length>0}function Wj(t){return t.reduce((e,n)=>M(n.length,3)?[...e,[n[1]]]:[...e,[]],[])}function t4(t){return M(t.length,6)?[t[1],t[3],t[5]]:[]}function e4(t){return xt(t)&&M(t.length,3)?t[1]:t}const $w=(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),Mw=(t,e)=>M(e.length,3)?gb(t,e[0],e[1],e[2]):t;function n4(t){const[e,n,r,s]=t;return Mw(e?Sm($w(n,r)):$w(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 r4(t){const[e,n]=t;return P0(e,n)}function o4(t){const[e,n]=t;return P0(e,n)}function i4(t){return F2(t[1])}function s4(t){return t[1]}function a4(t){return gc(t[0],t[2])}function l4(t){return M(t.length,4)?$y(t[1],t[3]):M(t.length,2)?$y(t[1],fr()):ia()}function u4(t){return`${t}`}function c4(t){return co(t[3])?cm:br(t[3])?fm:vc(t[3])||Hn(t[3])?Qs:ia()}function f4(t){return t.length>0}function d4(t){return t.length>0}function m4(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 h4(t){return vi(t)}function vC(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 p4(t){return vC(t[1])}function g4(t){const[e,n]=t,r=M(yt(n).length,0)?{}:{patternProperties:n};return ue(e,r)}function y4(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 b4(t){return Pr(kr(t[1]))}function v4(t){return Pr(t[1])}function S4(t){return kr(t[0])}function E4(t){return M(t.length,2)?dm(t[1]):M(t.length,1)?t[0]:ia()}function x4(t){return vi(t)}function w4(t){return fo(t[1])}function T4(t){return Pr(kr(t[4]))}function C4(t){return Pr(t[3])}function A4(t){return kr(t[3])}function $4(t){return t[2]}function M4(t){return M(t.length,2)?dm(t[1]):M(t.length,1)?t[0]:ia()}function R4(t){return vi(t)}function O4(t){return lm(t[1],t[4])}function N4(t){return am(t[2],t[5])}function Rw(t,e){return M(t,"remove")?sD(e):M(t,"add")?oD(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 Ow(t,e){return M(t,"remove")?nD(e):M(t,"add")?tD(e):e}function D4(t){return M(t.length,2)&&M(t[0],"-")?"remove":M(t.length,2)&&M(t[0],"+")||M(t.length,1)?"add":"none"}function j4(t){return M(t.length,2)?[t[1]]:[]}function I4(t){return xt(t[6])&&M(t[6].length,1)?Hd(Bd(t[3]),t[5],t[6][0],Rw(t[1],Ow(t[8],t[10]))):Hd(Bd(t[3]),t[5],cr(t[3]),Rw(t[1],Ow(t[8],t[10])))}function L4(t){return cr(t)}function z4(t){return Em(t[2],t[4])}function B4(t){return parseFloat(t)}function U4(t){return M(t,"true")}function k4(t){return null}function P4(t){return{[t[0]]:t[2]}}function H4(t){return vi(t)}function F4(t){return t.reduce((e,n)=>Xe(e,n),{})}function q4(t){return F4(t[1])}function G4(t){return vi(t)}function Y4(t){return t[1]}function V4(t){return _0()}function K4(t){return Hr()}function X4(t){return li()}function Q4(t){return dl()}function Z4(t){return Ze()}function J4(t){return be(t)}function W4(t){return Se(t[1])}function t6(t){return t.length===3?[...t[0],...t[2]]:t.length===1?[...t[0]]:[]}function e6(t){return[t[0],...t[1]]}function n6(t){return t[1]}function r6(t){return vi(t)}function o6(t){return M(t.length,2)?t[1]:[]}function i6(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 s6(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 a6(t){return{[t[1]]:gc(t[2],t[4])}}function l6(t){return{[t[1]]:t[3]}}function u6(t){return null}function c6(t){return vC(vi(t))}function f6(t){return t[1]}function d6(t){const e=t[0],n=t[1];return XA(Xe(e,n[0]))}function De(t){return xt(t)&&M(t.length,2)}function m6(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=m6(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 h6=[...Ry(97,122),...Ry(65,90)],SC="0",EC=Ry(49,57),H0=[SC,...EC],p6=" ",F0=`
|
|
3
|
+
`,xc="_",q0=".",g6="$",xC="-",wC="//",TC="/*",y6="*/";function CC(t){const e=t.indexOf(y6);return M(e,-1)?"":t.slice(e+2)}function AC(t){const e=t.indexOf(F0);return M(e,-1)?"":t.slice(e)}function b6(t){return t.replace(/^[ \t\r\f\v]+/,"")}function Oy(t){const e=b6(t);return e.startsWith(TC)?Oy(CC(e.slice(2))):e.startsWith(wC)?Oy(AC(e.slice(2))):e}function ui(t){const e=t.trimStart();return e.startsWith(TC)?ui(CC(e.slice(2))):e.startsWith(wC)?ui(AC(e.slice(2))):e}function v6(t,e){return t.includes(e)}function Ud(t,e,n,r=""){const s=Sr(t,n);return De(s)?v6(e,s[0])?Ud(t,e,s[1],r):Ud(t,e,s[1],`${r}${s[0]}`):[r,n]}function $C(t,e){const n=Sr([t],e);return De(n)?n:["",e]}function S6(t){return $C(xC,t)}function E6(t){return Sr(EC,t)}const x6=[...H0,xc];function w6(t){return Ud(x6,[xc],t)}function T6(t){const e=S6(t);return De(e)?(()=>{const n=Sr([SC],e[1]);return De(n)?[`${e[0]}${n[0]}`,n[1]]:(()=>{const r=E6(e[1]);return De(r)?(()=>{const s=w6(r[1]);return De(s)?[`${e[0]}${r[0]}${s[0]}`,s[1]]:[]})():[]})()})():[]}function MC(t){return T6(ui(t))}function C6(t){const e=MC(t);return De(e)?(()=>{const n=Sr(["n"],e[1]);return De(n)?[`${e[0]}`,n[1]]:[]})():[]}function A6(t){return C6(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(p6)?Gg(t,e):Gg(t,ui(e))}const RC=[...h6,xc,g6];function $6(t){return Sr(RC,t)}const M6=[...RC,...H0];function OC(t,e=""){const n=Sr(M6,t);return De(n)?OC(n[1],`${e}${n[0]}`):[e,t]}function R6(t){const e=$6(t);return De(e)?(()=>{const n=OC(e[1]);return De(n)?[`${e[0]}${n[0]}`,n[1]]:[]})():[]}function je(t){return R6(ui(t))}const O6=[...H0,xc];function N6(t){return $C(xC,t)}function _6(t){return De(Sr([q0],t))}function NC(t){const e=Ud(O6,[xc],t);return De(e)?M(e[0],"")?[]:[e[0],e[1]]:[]}function D6(t,e){const n=Sr([q0],e);return De(n)?(()=>{const r=NC(n[1]);return De(r)?[`${t}0${n[0]}${r[0]}`,r[1]]:[]})():[]}function j6(t,e){const n=MC(e);return De(n)?(()=>{const r=Sr([q0],n[1]);return De(r)?(()=>{const s=NC(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 I6(t){const e=N6(t);return De(e)?_6(e[1])?D6(e[0],e[1]):j6(e[0],e[1]):[]}function G0(t){return I6(ui(t))}function _C(t,e){const[n,...r]=t;return jt(n)?e.startsWith(n)?!0:_C(r,e):!1}function wc(t,e,n=""){return M(e,"")?[]:_C(t,e)?[n,e]:(()=>{const[r,s]=[e.slice(0,1),e.slice(1)];return wc(t,s,`${n}${r}`)})()}function L6(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 z6(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 B6(t,e,n,r){return n?L6(t,e,ui(r)):z6(t,e,ui(r))}function U6(t,e){return Sr(t,e)}function k6(t,e){return B6(t,t,!1,e)}function P6(t,e){const n=U6(t,e);return De(n)?k6(n[0],`${n[0]}${n[1]}`):[]}function Y0(t,e){return P6(t,ui(e))}function H6(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(),F6=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])=>[vj(e),n]),q6=t=>y(y(je(t),([e,n])=>y(Q("extends",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Sj(e),n]),G6=t=>y(y(je(t),([e,n])=>y(Q("=",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Ej(e),n]),Y6=t=>y(je(t),([e,n])=>[xj(e),n]),DC=t=>y(y(F6(t),([e,n])=>[e,n],()=>y(q6(t),([e,n])=>[e,n],()=>y(G6(t),([e,n])=>[e,n],()=>y(Y6(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),jC=(t,e=[])=>y(y(DC(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>jC(r,[...e,n]),()=>[e,t]),V6=t=>y(y(jC(t),([e,n])=>y(y(y(DC(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[wj(e),n]),V0=t=>y(y(Q("<",t),([e,n])=>y(V6(n),([r,s])=>y(Q(">",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Tj(e),n]),IC=(t,e=[])=>y(y(Gt(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>IC(r,[...e,n]),()=>[e,t]),K6=t=>y(y(IC(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])=>[Cj(e),n]),X6=t=>y(y(Q("<",t),([e,n])=>y(K6(n),([r,s])=>y(Q(">",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Aj(e),n]),Q6=t=>y(y(je(t),([e,n])=>y(X6(n),([r,s])=>[[e,r],s])),([e,n])=>[$j(e),n]),LC=t=>y(y(y(Q(";",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[Mj(),n]),zC=t=>y(Q("string",t),([e,n])=>[Rj(),n]),BC=t=>y(Q("number",t),([e,n])=>[Oj(),n]),Z6=t=>y(Q("boolean",t),([e,n])=>[Nj(),n]),J6=t=>y(Q("undefined",t),([e,n])=>[_j(),n]),W6=t=>y(Q("null",t),([e,n])=>[Dj(),n]),UC=t=>y(Q("integer",t),([e,n])=>[jj(),n]),t5=t=>y(Q("bigint",t),([e,n])=>[Ij(),n]),e5=t=>y(Q("unknown",t),([e,n])=>[Lj(),n]),n5=t=>y(Q("any",t),([e,n])=>[zj(),n]),r5=t=>y(Q("object",t),([e,n])=>[Bj(),n]),o5=t=>y(Q("never",t),([e,n])=>[Uj(),n]),kC=t=>y(Q("symbol",t),([e,n])=>[kj(),n]),i5=t=>y(Q("void",t),([e,n])=>[Pj(),n]),s5=t=>y(Q("this",t),([e,n])=>[Hj(),n]),a5=t=>y(y(zC(t),([e,n])=>[e,n],()=>y(BC(t),([e,n])=>[e,n],()=>y(Z6(t),([e,n])=>[e,n],()=>y(J6(t),([e,n])=>[e,n],()=>y(W6(t),([e,n])=>[e,n],()=>y(UC(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(o5(t),([e,n])=>[e,n],()=>y(kC(t),([e,n])=>[e,n],()=>y(i5(t),([e,n])=>[e,n],()=>y(s5(t),([e,n])=>[e,n],()=>[])))))))))))))),([e,n])=>[e,n]),l5=t=>y(y(Q("${",t),([e,n])=>y(Gt(n),([r,s])=>y(Q("}",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Fj(e),n]),Yg=t=>y(wc(["${","`"],t),([e,n])=>[qj(e),n]),PC=t=>y(y(y(Yg(t),([e,n])=>y(l5(n),([r,s])=>y(PC(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])=>[Gj(e),n]),HC=t=>y(y(Q("`",t),([e,n])=>y(PC(n),([r,s])=>y(Q("`",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Yj(e),n]),u5=t=>y(HC(t),([e,n])=>[Vj(e),n]),c5=t=>y(A6(t),([e,n])=>[Kj(e),n]),f5=t=>y(y(Q("true",t),([e,n])=>[e,n],()=>y(Q("false",t),([e,n])=>[e,n],()=>[])),([e,n])=>[Xj(e),n]),d5=t=>y(G0(t),([e,n])=>[Qj(e),n]),m5=t=>y(Y0(["'",'"'],t),([e,n])=>[Zj(e),n]),h5=t=>y(y(c5(t),([e,n])=>[e,n],()=>y(f5(t),([e,n])=>[e,n],()=>y(d5(t),([e,n])=>[e,n],()=>y(m5(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),p5=t=>y(y(y(Q("keyof",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[Jj(e),n]),FC=(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])=>FC(r,[...e,n]),()=>[e,t]),g5=t=>y(FC(t),([e,n])=>[Wj(e),n]),y5=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])=>[t4(e),n]),b5=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(a5(t),([e,n])=>[e,n],()=>y(O5(t),([e,n])=>[e,n],()=>y(L5(t),([e,n])=>[e,n],()=>y(u5(t),([e,n])=>[e,n],()=>y(h5(t),([e,n])=>[e,n],()=>y(H5(t),([e,n])=>[e,n],()=>y(P5(t),([e,n])=>[e,n],()=>y(Y5(t),([e,n])=>[e,n],()=>y(K5(t),([e,n])=>[e,n],()=>y(Q6(t),([e,n])=>[e,n],()=>y(V5(t),([e,n])=>[e,n],()=>[])))))))))))),([e,n])=>[e4(e),n]),qC=t=>y(y(p5(t),([e,n])=>y(b5(n),([r,s])=>y(g5(s),([l,c])=>y(y5(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[n4(e),n]),GC=t=>y(y(y(Q("&",t),([e,n])=>y(qC(n),([r,s])=>y(GC(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),YC=t=>y(y(qC(t),([e,n])=>y(GC(n),([r,s])=>[[e,r],s])),([e,n])=>[r4(e),n]),VC=t=>y(y(y(Q("|",t),([e,n])=>y(YC(n),([r,s])=>y(VC(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(YC(t),([e,n])=>y(VC(n),([r,s])=>[[e,r],s])),([e,n])=>[o4(e),n]),v5=t=>y(y(Q("readonly",t),([e,n])=>y(pm(n),([r,s])=>[[e,r],s])),([e,n])=>[i4(e),n]),S5=t=>y(y(Q("|",t),([e,n])=>y(pm(n),([r,s])=>[[e,r],s])),([e,n])=>[s4(e),n]),E5=t=>y(y(V0(t),([e,n])=>y(Q("=",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[a4(e),n]),x5=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])=>[l4(e),n]),Gt=t=>y(y(x5(t),([e,n])=>[e,n],()=>y(S5(t),([e,n])=>[e,n],()=>y(v5(t),([e,n])=>[e,n],()=>y(pm(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),w5=t=>y(G0(t),([e,n])=>[u4(e),n]),T5=t=>y(je(t),([e,n])=>[e,n]),C5=t=>y(Y0(["'",'"'],t),([e,n])=>[e,n]),A5=t=>y(y(Q("[",t),([e,n])=>y(je(n),([r,s])=>y(Q(":",s),([l,c])=>y(y(UC(c),([f,m])=>[f,m],()=>y(BC(c),([f,m])=>[f,m],()=>y(zC(c),([f,m])=>[f,m],()=>y(kC(c),([f,m])=>[f,m],()=>[])))),([f,m])=>y(Q("]",m),([p,g])=>[[e,r,l,f,p],g]))))),([e,n])=>[c4(e),n]),KC=t=>y(y(w5(t),([e,n])=>[e,n],()=>y(T5(t),([e,n])=>[e,n],()=>y(C5(t),([e,n])=>[e,n],()=>y(A5(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),$5=t=>y(y(y(Q("readonly",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[f4(e),n]),M5=t=>y(y(y(Q("?",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[d4(e),n]),XC=t=>y(y($5(t),([e,n])=>y(KC(n),([r,s])=>y(M5(s),([l,c])=>y(Q(":",c),([f,m])=>y(Gt(m),([p,g])=>[[e,r,l,f,p],g]))))),([e,n])=>[m4(e),n]),QC=t=>y(y(y(Q(",",t),([e,n])=>y(Q(`
|
|
4
4
|
`,n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q(";",t),([e,n])=>y(Q(`
|
|
5
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]),ZC=(t,e=[])=>y(y(XC(t),([n,r])=>y(QC(r),([s,l])=>[[n,s],l])),([n,r])=>ZC(r,[...e,n]),()=>[e,t]),
|
|
6
|
+
`,t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[]))))),([e,n])=>[e,n]),ZC=(t,e=[])=>y(y(XC(t),([n,r])=>y(QC(r),([s,l])=>[[n,s],l])),([n,r])=>ZC(r,[...e,n]),()=>[e,t]),R5=t=>y(y(ZC(t),([e,n])=>y(y(y(XC(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[h4(e),n]),K0=t=>y(y(Q("{",t),([e,n])=>y(R5(n),([r,s])=>y(Q("}",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[p4(e),n]),O5=t=>y(K0(t),([e,n])=>[g4(e),n]),N5=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])=>[y4(e),n]),_5=t=>y(y(Q("readonly",t),([e,n])=>y(Gt(n),([r,s])=>y(Q("?",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[b4(e),n]),D5=t=>y(y(Q("readonly",t),([e,n])=>y(Gt(n),([r,s])=>[[e,r],s])),([e,n])=>[v4(e),n]),j5=t=>y(y(Gt(t),([e,n])=>y(Q("?",n),([r,s])=>[[e,r],s])),([e,n])=>[S4(e),n]),Nw=t=>y(y(N5(t),([e,n])=>[e,n],()=>y(_5(t),([e,n])=>[e,n],()=>y(D5(t),([e,n])=>[e,n],()=>y(j5(t),([e,n])=>[e,n],()=>y(Gt(t),([e,n])=>[e,n],()=>[]))))),([e,n])=>[e,n]),JC=t=>y(y(y(Q("...",t),([e,n])=>y(Nw(n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Nw(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[])),([e,n])=>[E4(e),n]),WC=(t,e=[])=>y(y(JC(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>WC(r,[...e,n]),()=>[e,t]),I5=t=>y(y(WC(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])=>[x4(e),n]),L5=t=>y(y(Q("[",t),([e,n])=>y(I5(n),([r,s])=>y(Q("]",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[w4(e),n]),z5=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])=>[T4(e),n]),B5=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])=>[C4(e),n]),U5=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])=>[A4(e),n]),k5=t=>y(y(je(t),([e,n])=>y(Q(":",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[$4(e),n]),_w=t=>y(y(z5(t),([e,n])=>[e,n],()=>y(B5(t),([e,n])=>[e,n],()=>y(U5(t),([e,n])=>[e,n],()=>y(k5(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),tA=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])=>[M4(e),n]),eA=(t,e=[])=>y(y(tA(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>eA(r,[...e,n]),()=>[e,t]),nA=t=>y(y(eA(t),([e,n])=>y(y(y(tA(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[R4(e),n]),P5=t=>y(y(Q("(",t),([e,n])=>y(nA(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])=>[O4(e),n]),H5=t=>y(y(Q("new",t),([e,n])=>y(Q("(",n),([r,s])=>y(nA(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])=>[N4(e),n]),F5=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])=>[_4(e),n]),q5=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])=>[D4(e),n]),G5=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])=>[j4(e),n]),Y5=t=>y(y(Q("{",t),([e,n])=>y(F5(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(G5(E),([S,T])=>y(Q("]",T),([w,$])=>y(q5($),([_,L])=>y(Q(":",L),([j,P])=>y(Gt(P),([H,F])=>y(LC(F),([z,k])=>y(Q("}",k),([W,et])=>[[e,r,l,f,p,b,S,w,_,j,H,z,W],et]))))))))))))),([e,n])=>[I4(e),n]),V5=t=>y(je(t),([e,n])=>[L4(e),n]),K5=t=>y(y(Q("Options",t),([e,n])=>y(Q("<",n),([r,s])=>y(Gt(s),([l,c])=>y(Q(",",c),([f,m])=>y(iA(m),([p,g])=>y(Q(">",g),([b,E])=>[[e,r,l,f,p,b],E])))))),([e,n])=>[z4(e),n]),X5=t=>y(G0(t),([e,n])=>[B4(e),n]),Q5=t=>y(y(Q("true",t),([e,n])=>[e,n],()=>y(Q("false",t),([e,n])=>[e,n],()=>[])),([e,n])=>[U4(e),n]),Z5=t=>y(Y0(['"',"'"],t),([e,n])=>[e,n]),J5=t=>y(Q("null",t),([e,n])=>[k4(),n]),rA=t=>y(y(KC(t),([e,n])=>y(Q(":",n),([r,s])=>y(X0(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[P4(e),n]),oA=(t,e=[])=>y(y(rA(t),([n,r])=>y(QC(r),([s,l])=>[[n,s],l])),([n,r])=>oA(r,[...e,n]),()=>[e,t]),W5=t=>y(y(oA(t),([e,n])=>y(y(y(rA(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[H4(e),n]),iA=t=>y(y(Q("{",t),([e,n])=>y(W5(n),([r,s])=>y(Q("}",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[q4(e),n]),sA=(t,e=[])=>y(y(X0(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>sA(r,[...e,n]),()=>[e,t]),tI=t=>y(y(sA(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])=>[G4(e),n]),eI=t=>y(y(Q("[",t),([e,n])=>y(tI(n),([r,s])=>y(Q("]",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Y4(e),n]),X0=t=>y(y(X5(t),([e,n])=>[e,n],()=>y(Q5(t),([e,n])=>[e,n],()=>y(Z5(t),([e,n])=>[e,n],()=>y(J5(t),([e,n])=>[e,n],()=>y(iA(t),([e,n])=>[e,n],()=>y(eI(t),([e,n])=>[e,n],()=>[])))))),([e,n])=>[e,n]),nI=t=>y(Q("-?(?:0|[1-9][0-9]*)n",t),([e,n])=>[V4(),n]),rI=t=>y(Q(".*",t),([e,n])=>[K4(),n]),oI=t=>y(Q("-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?",t),([e,n])=>[X4(),n]),iI=t=>y(Q("-?(?:0|[1-9][0-9]*)",t),([e,n])=>[Q4(),n]),sI=t=>y(Q("(?!)",t),([e,n])=>[Z4(),n]),aI=t=>y(H6(["-?(?:0|[1-9][0-9]*)n",".*","-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?","-?(?:0|[1-9][0-9]*)","(?!)","(",")","$","|"],t),([e,n])=>[J4(e),n]),lI=t=>y(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(sI(t),([e,n])=>[e,n],()=>y(uI(t),([e,n])=>[e,n],()=>y(aI(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])=>[W4(e),n]),aA=t=>y(y(y(Ny(t),([e,n])=>y(Q("|",n),([r,s])=>y(aA(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])=>[t6(e),n]),Ny=t=>y(y(lI(t),([e,n])=>y(Q0(n),([r,s])=>[[e,r],s])),([e,n])=>[e6(e),n]),Q0=t=>y(y(aA(t),([e,n])=>[e,n],()=>y(Ny(t),([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),cI=t=>y(y(Q("^",t),([e,n])=>y(Q0(n),([r,s])=>y(Q("$",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[n6(e),n]),lA=(t,e=[])=>y(y(Gt(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>lA(r,[...e,n]),()=>[e,t]),fI=t=>y(y(lA(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])=>[r6(e),n]),uA=t=>y(y(y(Q("extends",t),([e,n])=>y(fI(n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[o6(e),n]),dI=t=>y(y(Q("interface",t),([e,n])=>y(je(n),([r,s])=>y(V0(s),([l,c])=>y(uA(c),([f,m])=>y(K0(m),([p,g])=>[[e,r,l,f,p],g]))))),([e,n])=>[i6(e),n]),mI=t=>y(y(Q("interface",t),([e,n])=>y(je(n),([r,s])=>y(uA(s),([l,c])=>y(K0(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[s6(e),n]),hI=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])=>[a6(e),n]),pI=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])=>[l6(e),n]),gI=t=>y(y(y(Q("export",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[u6(),n]),yI=t=>y(y(y(Q(";",t),([e,n])=>y(Q(`
|
|
7
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]),cA=(t,e=[])=>y(y(Z0(t),([n,r])=>y(gI(r),([s,l])=>[[n,s],l])),([n,r])=>cA(r,[...e,n]),()=>[e,t]),yI=t=>y(y(cA(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(LC(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=HC(`\`${t}\``);return M(e.length,2)?e[0]:He()}function J0(t,e={}){return me("TemplateLiteral",[t],e)}function fA(t){return he({},J0(t,{}))}function EI(t){const e=SI(t);return fA(e)}function xI(t,e={}){const n=jt(t)?EI(t):fA(t);return Qt(n,{},e)}function Yr(t){return Ht(t,"TemplateLiteral")}function dA(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:dA,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 Al(t){return t.map(n=>TI(n))}function eb(t){const e=Al(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 mA(t,e,n){const[r,...s]=n;return kt(r)?(()=>{const l=Je(t,e,r);return Ae(l)?mA(l.inferred,e,s):re()})():Lt(t)}function MI(t,e,n){const r=bi(n);return Je(t,e,r)}function hA(t,e,n){const[r,...s]=n;return kt(r)?(()=>{const l=Je(t,e,r);return Ae(l)?Lt(l.inferred):hA(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)?mA(t,e,n.allOf):Yr(n)?MI(t,e,n.pattern):Pt(n)?hA(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):dA(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 kt(s)?II(t,e,n,s,l):qn(e)?Lt(t):re()}function zI(t,e,n){const[r,...s]=e;return kt(r)?LI(t,r,s,n):Lt(t)}function rb(t,e,n){return zI(t,e,n)}function pA(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)?pA(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)?pA(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 gA(t){return t.reduceRight((n,r,s)=>({[s]:r,...n}),{})}function qI(t){const e=gA(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=q2($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 Dw(t){return $e(t)?t.properties:qe(t)?gA(t.items):He()}function QI(t,e){const n=Dw(t),r=Dw(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 jw(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=jw(n),c=jw(r);return s?Vr([n,r]):l&&c?QI(n,r):l&&!c?n:!l&&c?r:ZI(n,r)}function yA(t,e,n=[]){const[r,...s]=e;return ye(r)?n.length===0?[t]:n:yA(t,s,[...n,WI(t,r)])}function bA(t,e,n=[]){const[r,...s]=t;return kt(r)?bA(s,e,[...n,...kd([r],e)]):n}function kd(t,e=[]){const[n,...r]=t;return kt(n)?Pt(n)?kd(r,bA(n.anyOf,e)):kd(r,yA(n,e)):e}function Vr(t){const e=kd(t);return vA(e)}function Cc(t){return vA(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 kt(n)?$e(n)?Dy(r,[...e,n]):Dy(r,nL(n,e)):e}function vA(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 Tl(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 SA(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 EA(t){return dr(t)?jy(t.name,t.extends):void 0}function ub(t,e,n=[]){const[r,...s]=t;return kt(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 xA(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=kt(e)?SA(e):void 0;return kt(n)}function RL(t,e,n,r,s,l){const c=Je(t,n,s);return Ae(c)?wA(c.inferred,e,r,l):re()}function OL(t,e,n,r,s){const l=SA(r);return lb(l)?AL(t,l.name,Iy(n,e),l.type):(()=>{const[c,...f]=n;return kt(c)?RL(t,e,c,f,r,s):re()})()}function NL(t,e,n,r){const[s,...l]=r;return kt(s)?OL(t,e,n,s,l):M(n.length,0)?Lt(t):re()}function wA(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 wA(t,s,Iy(e,s),Iy(r,s))}function TA(t,e,n){const r=EA(n);return lb(r)?xA(t,r.name,e,r.type):(()=>{const[s,...l]=e;return kt(s)?(()=>{const c=Je(t,s,n);return Ae(c)?TA(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)?TA(t,r,n.items):Be(t,fo(r),n)}function jL(t,e,n){return ms(n)||Cl(n)?Lt(t):Be(t,e,n)}function CA(t,e,n){const[r,...s]=n;return kt(r)?(()=>{const l=Je(t,e,r);return Ae(l)?Lt(l.inferred):CA(t,e,s)})():re()}function Ly(t,e,n){const[r,...s]=e;return kt(r)?(()=>{const l=CA(t,r,n);return Ae(l)?Ly(l.inferred,s,n):re()})():Lt(t)}function IL(t,e,n){const r=EA(n);return lb(r)?xA(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):Tl(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):Cl(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 kt(t)&&at(t,"action")&&M(t.action,"Interface")}function AA(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 Iw(t,e,n){const r=iC(n);return Hs(t,e,r)}function Hs(t,e,n){const[r,...s]=n;return kt(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)?Iw(t,e,n.parameters[1]):xe(n)?Hs(t,e,n.allOf):fs(n)?ts(t,e,n.iteratorItems):$e(n)?Iw(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 $A(t,e,n){return ts(t,e,n)}function UL(t,e){return e.reduce((n,r)=>r in t?$A([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 Lw(t,e,n){const r=iC(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)?Lw(t,e.parameters[1],n):xe(e)?nl(t,e.allOf,n):fs(e)?es(t,e.iteratorItems,n):$e(e)?Lw(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 Yu(t){return t.reduce((e,n)=>[...e,xo(n)],[])}function xo(t){return On(t)?FL(t.$ref):nn(t)?ra(xo(t.items),Y2(t)):cs(t)?pc(xo(t.iteratorItems)):jo(t)?am(Yu(t.parameters),xo(t.instanceType)):Io(t)?lm(Yu(t.parameters),xo(t.returnType)):xe(t)?Xs(Yu(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(Yu(t.anyOf)):qe(t)?fo(Yu(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 MA(t,e){return e in t?On(t[e])?MA(t,t[e].$ref):t[e]:Ze()}function Ac(t,e){return MA(t,e)}function zw(t){return Nn(t)?YL(t):t}function ci(t,e,n){const r=zw(e),s=zw(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 Bw(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 kt(f)?zy(Bw(t,e,n.name,l,f),e,r,m):zy(Bw(t,e,n.name,l,c),e,r,[])}function zy(t,e,n,r){const[s,...l]=n;return kt(s)?ZL(t,e,s,l,r):t}function JL(t,e,n,r){return zy(t,e,n,r)}function WL(t){return Sl(t.length,0)?t[0]:""}function RA(t,e,n,r){const s=Ao(t,e,r);return NA(n,s)}function tz(t,e,n,r){return RA(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 OA(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):RA(t,e,n,r)}function NA(t,e){return Nt({"~kind":"Call"},{target:t,arguments:e},{})}function nz(t,e){return OA({},{callstack:[]},t,e)}function fb(t){return Ht(t,"Call")}function _A(t){return yi(t)?_A(t.item):t}function rz(t,e,n,r){const s=Et(t,e,n);return Qt(_A(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 $l(t,n)}function lz(t,e){const n=e.map(r=>$l(t,r));return Se(n)}function $l(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($l(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($l(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($l(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($l(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 Uw(t,e){return t.reduce((n,r)=>[...n,...DA(r,e)],[])}function DA(t,e){const n=ci({},t,e);return Ae(n)?[]:[t]}function Dz(t,e){const n=uo(t)?Uw(Al(t.enum),e):Pt(t)?Uw(Tc(t.anyOf),e):DA(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 jA(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 kw(t,e){return t.reduce((n,r)=>[...n,...IA(r,e)],[])}function IA(t,e){const n=ci({},t,e);return Ae(n)?[t]:[]}function Lz(t,e){const n=uo(t)?kw(Al(t.enum),e):Pt(t)?kw(Tc(t.anyOf),e):IA(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 Pw(t){return t.map(e=>LA(e))}function LA(t){return xe(t)?Xs(Pw(t.allOf)):Pt(t)?Se(Pw(t.anyOf)):Ie(t)?kz(t.const):t}function Pz(t,e){const n=LA(e),r=ci({},n,li());return Ae(r)?t:Ze()}function Hz(t,e){const n=Ac(t,e);return $c(n)}function zA(t){return t.reduce((e,n)=>[...e,...$c(n)],[])}function Fz(t){const e=Al(t);return zA(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)?zA(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 Hw(t){return t.map(e=>BA(e))}function BA(t){return xe(t)?Xs(Hw(t.allOf)):Pt(t)?Se(Hw(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=BA(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)=>rC(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 UA(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 Ml(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,Ml(n)),{})}function i8(t){const e=qI(fo(t));return Ml(e)}function s8(t,e){return yt(t).filter(s=>s in e).reduce((s,l)=>({...s,[l]:Cc([t[l],e[l]])}),{})}function kA(t,e){const[n,...r]=t;return kt(n)?kA(r,s8(e,Ml(n))):e}function a8(t){const[e,...n]=t;return kt(e)?kA(n,Ml(e)):He()}function Ml(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=Ml(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 PA(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)=>rC(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 Fw(t){return t.reduce((e,n)=>[...e,...Cb(n)],[])}function Cb(t){return uo(t)?Fw(Al(t.enum)):I0(t)||j0(t)?[t]:Yr(t)?M8(t.pattern):Pt(t)?Fw(t.anyOf):[]}function R8(t){return Cb(t)}function Hd(t,e,n,r,s={}){return me("Mapped",[t,e,n,r],s)}function HA(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 jA({},{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 FA(t){const e=wb(t);return $e(e)?e.properties:He()}function $b(t,e,n={}){return me("Omit",[t,e],n)}function qA(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=FA(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 GA(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 YA(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=FA(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]:G2(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=aC(t);return cC(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 kt(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?$A([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}${nC}`)}function WB(t,e){return hs(t,`${e}${oC}`)}function t9(t,e){return Lb(Se([be("false"),be("true")]),t,e)}function e9(t,e){return hs(t,`${e}${sC}`)}function n9(t,e,n){return hs(e,`${n}${XB(t)}`)}function r9(t,e,n,r=[]){const s=Al(t);return Ib(s,e,n)}function Ib(t,e,n,r=[]){const[s,...l]=t;return kt(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 kt(n)?Lb(n,r,e):e}function o9(t){return`^${hs(t,"")}$`}function i9(t){const e=o9(t);return fC(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)?VA(t.items.items):dr(t.items)?[t]:On(t.items)?[t]:[Ze()]:[t]}function VA(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 kt(n)?c9(t,n)?de(t,r):!1:!0}function Ju(t,e,n){return sD(t)?Ju(t.type,"remove",n):nD(t)?Ju(t.type,e,"remove"):oD(t)?Ju(t.type,"add",n):tD(t)?Ju(t.type,e,"add"):[t,e,n]}function f9(t,e){return M(t,"remove")?q2(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 VA(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")?jA(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=Ju(n,zd(n)?"add":"none",qn(n)?"add":"none"),l=wl(s[0])?s[0].Clone():s[0],c=On(l)?LB(t,e,l,l.$ref):nn(l)?ra(Et(t,e,l.items),Y2(l)):cs(l)?pc(Et(t,e,l.iteratorItems),lD(l)):fb(l)?OA(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 KA(t,e={}){return me("Evaluate",[t],e)}function Mc(t,e={}){return he({},KA(t,e))}function XA(t,e={}){return me("Module",[t],e)}function p9(t,e={}){return he({},XA(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:V2,BigInt:_0,Boolean:D0,Call:nz,Capitalize:uz,Codec:N0,Conditional:Cz,Constructor:am,ConstructorParameters:Mz,Cyclic:yc,Decode:FD,DecodeBuilder:tC,Encode:qD,EncodeBuilder:W2,Enum:vD,Evaluate:Mc,Exclude:_z,Extends:ci,ExtendsResult:wI,Extract:Iz,Function:lm,Generic:gc,Identifier:Bd,Immutable:sm,Index:UA,Infer:$y,InstanceType:d8,Instantiate:he,Integer:dl,Interface:AA,Intersect:Xs,IsAny:pi,IsArray:nn,IsAsyncIterator:cs,IsBase:wl,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:Tl,IsNumber:br,IsObject:$e,IsOptional:qn,IsParameter:rj,IsPromise:yi,IsReadonly:zd,IsRecord:vr,IsRef:On,IsRefine:eC,IsRest:mm,IsSchema:kt,IsString:Hn,IsSymbol:vc,IsTemplateLiteral:Yr,IsThis:hj,IsTuple:qe,IsUndefined:Cl,IsUnion:Pt,IsUnknown:os,IsUnsafe:bC,IsVoid:ms,Iterator:bc,KeyOf:PA,Literal:be,Lowercase:cz,Mapped:HA,Module:p9,Never:Ze,NonNullable:P8,Null:Ys,Number:li,Object:le,Omit:qA,Optional:M0,Options:Mb,Parameter:Sc,Parameters:Z8,Partial:GA,Pick:YA,Promise:Ec,Readonly:G2,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:yC,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 QA(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 ZA(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 JA(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 WA(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 t$(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 e$(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 n$(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 r$(t){return $9.test(t)}function qw(t){try{return new URL(t,"http://example.com"),!0}catch{return!1}}function o$(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))?qw(t):t.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&e===-1?!1:qw(t)}function i$(t){try{return new URL(t),!0}catch{return!1}}const M9=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function s$(t){return M9.test(t)}const R9=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function a$(t){return R9.test(t)}function l$(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 u$(t){return O9.test(t)}const N9=/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i;function c$(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 f$(t){return _9.test(t)}const D9=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i;function d$(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 m$(t){return j9.test(t)}const I9=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function h$(t){return I9.test(t)}const ge=new Map;function p$(){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 g$(t,e){return ge.get(t)?.(e)??!0}function y$(){p$(),ge.set("date-time",QA),ge.set("date",kb),ge.set("duration",ZA),ge.set("email",JA),ge.set("hostname",WA),ge.set("idn-email",t$),ge.set("idn-hostname",e$),ge.set("ipv4",n$),ge.set("ipv6",r$),ge.set("iri-reference",o$),ge.set("iri",i$),ge.set("json-pointer-uri-fragment",s$),ge.set("json-pointer",a$),ge.set("regex",l$),ge.set("relative-json-pointer",u$),ge.set("time",Pb),ge.set("uri-reference",c$),ge.set("uri-template",f$),ge.set("uri",d$),ge.set("url",m$),ge.set("uuid",h$)}y$();const By=Object.freeze(Object.defineProperty({__proto__:null,Clear:p$,Entries:L9,Get:U9,Has:B9,IsDate:kb,IsDateTime:QA,IsDuration:ZA,IsEmail:JA,IsHostname:WA,IsIPv4:n$,IsIPv6:r$,IsIdnEmail:t$,IsIdnHostname:e$,IsIri:i$,IsIriReference:o$,IsJsonPointer:a$,IsJsonPointerUriFragment:s$,IsRegex:l$,IsRelativeJsonPointer:u$,IsTime:Pb,IsUri:d$,IsUriReference:c$,IsUriTemplate:f$,IsUrl:m$,IsUuid:h$,Reset:y$,Set:z9,Test:g$},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 Rl(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 Ol(t){return at(t,"contains")&&_e(t.contains)}function Nl(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 Gw(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 ic(t){return at(t,"$id")&&jt(t.$id)}function Xb(t){return at(t,"if")&&_e(t.if)}function _l(t){return at(t,"items")&&(_e(t.items)||xt(t.items)&&t.items.every(e=>_e(e)))}function Qb(t){return _l(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 Dl(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 jl(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 Il(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 b$ extends Si{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}}class Ei extends b${constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}}const v$="external_";let ky=0;const ul={identifier:`${v$}${ky}`,variables:[]};function Y9(){ul.identifier=`${v$}${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 _l(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=z2(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 jl(t)&&e.push(...yt(t.patternProperties)),Il(t)&&e.push(...yt(t.properties).map(oU)),M(e.length,0)?"(?!)":`(${e.join("|")})`}function iU(t,e,n){return ps(e)&&Il(e)&&!jl(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)=>k2(`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,L2(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 Sl(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=Sl(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 S$(t,e,n,r){return n}function xU(t,e,n,r,s,l){return S$(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)):U2(r,ua(n.const))}function E$(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 E$(t,e,s,l)||e.AddError({keyword:"const",schemaPath:n,instancePath:r,params:{allowedValue:s.const}})}function x$(t){return!(Dl(t)&&M(t.minContains,0))}function CU(t,e,n,r){if(!x$(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 w$(t,e,n,r){return x$(n)?!M(r.length,0)&&r.some(s=>Ee(t,e,n.contains,s)):!0}function AU(t,e,n,r,s,l){return w$(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 U2(r,l)}))}function T$(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 T$(t,e,s,l)||e.AddError({keyword:"enum",schemaPath:n,instancePath:r,params:{allowedValues:s.enum}})}function BU(t,e,n,r){return z2(r,St(n.exclusiveMaximum))}function C$(t,e,n,r){return em(r,n.exclusiveMaximum)}function UU(t,e,n,r,s,l){return C$(t,e,s,l)||e.AddError({keyword:"exclusiveMaximum",schemaPath:n,instancePath:r,params:{comparison:"<",limit:s.exclusiveMaximum}})}function kU(t,e,n,r){return L2(r,St(n.exclusiveMinimum))}function A$(t,e,n,r){return Sl(r,n.exclusiveMinimum)}function PU(t,e,n,r,s,l){return A$(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 $$(t,e,n,r){return g$(n.format,r)}function FU(t,e,n,r,s,l){return $$(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=xl(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 M$(t){return Ol(t)}function nk(t,e,n,r){if(!M$(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 xl(c,St(n.maxContains))}function R$(t,e,n,r){if(!M$(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=Dl(s)?s.minContains:1;return R$(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 xl(r,St(n.maximum))}function O$(t,e,n,r){return hi(r,n.maximum)}function ik(t,e,n,r,s,l){return O$(t,e,s,l)||e.AddError({keyword:"maximum",schemaPath:n,instancePath:r,params:{comparison:"<=",limit:s.maximum}})}function sk(t,e,n,r){return xl(Dt(r,"length"),St(n.maxItems))}function N$(t,e,n,r){return hi(r.length,n.maxItems)}function ak(t,e,n,r,s,l){return N$(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 _$(t,e,n,r){return R2(r,n.maxLength)}function uk(t,e,n,r,s,l){return _$(t,e,s,l)||e.AddError({keyword:"maxLength",schemaPath:n,instancePath:r,params:{limit:s.maxLength}})}function ck(t,e,n,r){return xl(Dt(na(r),"length"),St(n.maxProperties))}function D$(t,e,n,r){return hi(yt(r).length,n.maxProperties)}function fk(t,e,n,r,s,l){return D$(t,e,s,l)||e.AddError({keyword:"maxProperties",schemaPath:n,instancePath:r,params:{limit:s.maxProperties}})}function j$(t){return Ol(t)}function dk(t,e,n,r){if(!j$(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 I$(t,e,n,r){if(!j$(n))return!0;const s=r.reduce((l,c)=>Ee(t,e,n.contains,c)?++l:l,0);return El(s,n.minContains)}function mk(t,e,n,r,s,l){return I$(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 L$(t,e,n,r){return El(r,n.minimum)}function pk(t,e,n,r,s,l){return L$(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 z$(t,e,n,r){return El(r.length,n.minItems)}function yk(t,e,n,r,s,l){return z$(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 B$(t,e,n,r){return O2(r,n.minLength)}function vk(t,e,n,r,s,l){return B$(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 U$(t,e,n,r){return El(yt(r).length,n.minProperties)}function Ek(t,e,n,r,s,l){return U$(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 k$(t,e,n,r){return $2(r,n.multipleOf)}function wk(t,e,n,r,s,l){return k$(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 P$(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 P$(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 H$(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 H$(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(B2(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=xl(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 F$(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:F$(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():F$(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"])),k2("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 q$(t,e,n,r){return M(n,"object")?D2(r):M(n,"array")?Id(r):M(n,"boolean")?M3(r):M(n,"integer")?R3(r):M(n,"number")?_2(r):M(n,"null")?N3(r):M(n,"string")?I2(r):M(n,"asyncIterator")?$3(r):M(n,"bigint")?N2(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")?C2(s):M(n,"bigint")?Ne(s):M(n,"constructor")?v0(s):M(n,"function")?ai(s):M(n,"iterator")?A2(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=>q$(t,e,s,r)))}function G$(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):q$(t,e,n.type,r)}function aP(t,e,n,r){return xt(n.type)?G$(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)?G$(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(B2(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(oc)).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=oc(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 sc(t,e){return Um(t)&&(xt(t.type)&&t.type.includes(e)||M(t.type,e))}function bP(t){return sc(t,"object")}function vP(t){return No(t)&&(Rl(t)||Mm(t)||Rm(t)||Om(t)||Il(t)||jl(t)||Bm(t)||_c(t)||Lm(t)||ps(t)||Lc(t))}function SP(t){return sc(t,"array")}function EP(t){return No(t)&&($m(t)||_l(t)||Ol(t)||Dm(t)||jm(t)||Dl(t)||Oc(t)||la(t)||Ic(t)||jc(t))}function xP(t){return sc(t,"string")}function wP(t){return No(t)&&(Nc(t)||Im(t)||Rc(t)||Dc(t))}function TP(t){return sc(t,"number")||sc(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)),Rl(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)),jl(n)&&c.push(Ik(t,e,n,r)),Il(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(D2(r)),f);s.push(bP(n)?f:m)}if(EP(n)){const c=[];$m(n)&&c.push(eU(t,e,n,r)),Ol(n)&&c.push(CU(t,e,n,r)),_l(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)),Dl(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(I2(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(_2(r),N2(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(j2(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)?S$(t,e,n):(!Um(n)||aP(t,e,n,r))&&(!(Mt(r)&&!xt(r))||(!ps(n)||rP(t,e,n,r))&&(!Rl(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))&&(!jl(n)||Lk(t,e,n,r))&&(!Il(n)||Fk(t,e,n,r))&&(!Bm(n)||Yk(t,e,n,r))&&(!_c(n)||U$(t,e,n,r))&&(!Lm(n)||D$(t,e,n,r)))&&(!xt(r)||(!$m(n)||nU(t,e,n,r))&&(!Ol(n)||w$(t,e,n,r))&&(!_l(n)||tk(t,e,n,r))&&(!Dm(n)||R$(t,e,n,r))&&(!jm(n)||N$(t,e,n,r))&&(!Dl(n)||I$(t,e,n,r))&&(!Oc(n)||z$(t,e,n,r))&&(!la(n)||Uk(t,e,n,r))&&(!jc(n)||gP(t,e,n,r)))&&(!jt(r)||(!Rc(n)||$$(t,e,n,r))&&(!Im(n)||_$(t,e,n,r))&&(!Nc(n)||B$(t,e,n,r))&&(!Dc(n)||H$(t,e,n,r)))&&(!(Kt(r)||Ne(r))||(!Nm(n)||C$(t,e,n,r))&&(!sa(n)||A$(t,e,n,r))&&(!_m(n)||O$(t,e,n,r))&&(!aa(n)||L$(t,e,n,r))&&(!zm(n)||k$(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)||E$(t,e,n,r))&&(!Kb(n)||T$(t,e,n,r))&&(!Xb(n)||GU(t,e,n,r))&&(!Zb(n)||P$(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))&+(!Rl(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))&+(!jl(s)||zk(t,e,n,r,s,l))&+(!Il(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))&+(!Ol(s)||AU(t,e,n,r,s,l))&+(!_l(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))&+(!Dl(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 rc=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(){rc.clear()}function RP(){return[...rc.values()]}function Pm(t,e,n,r){const s=No(n)?oc({__baseURL:t.BaseURL().href,...n}):oc(n),l=AP(e,n,s,r);return rc.has(s)||(rc.set(s,""),rc.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("#")?Y$(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 Y$(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(ic(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 Y$(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)&&ic(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=ic(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)&&(ic(e)&&this.ids.push(e),Uy(e)&&this.anchors.push(e),Kg(e)&&this.recursiveAnchors.push(e),Gw(e)&&this.dynamicAnchors.push(e))}Pop(e){No(e)&&(ic(e)&&this.ids.pop(),Uy(e)&&this.anchors.pop(),Kg(e)&&this.recursiveAnchors.pop(),Gw(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 b$(g=>{if(!El(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 V$(t){return at(t,"additionalProperties")?t.additionalProperties:void 0}function JP(t,e,n){if(!Mt(n)||xt(n))return n;const r=V$(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)||kt(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=V$(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)||kt(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 Sl(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 M2(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 P2(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):wl(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 K$(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 X$(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)?X$(r.value):void 0}function FH(t){return $t(0)}function cv(t){return Ne(t)?X$(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 Q$(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 Z$(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=K$(n);return Er(r)?r.value:n}function o7(t,e,n){return mo({...t,...e.$defs},cr(e.$ref),n)}function J$(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 J$(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=K$(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=Q$(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 W$(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)?W$(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)?W$(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=Q$(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=Z$(n);return Er(r)?r.value:n}function T7(t,e,n){if(ye(n))return n;const r=Z$(n);return Er(r)?void 0:n}function mo(t,e,n){return nn(e)?uH(t,e,n):wl(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):Tl(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):Cl(e)?w7(t,e,n):Pt(e)?J$(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(!Rl(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)&&Nl(s)&&(n[l]=Br(t,s,n[l]));if(!Rl(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=Nl(e)?M7(e,n):n;return nn(e)?C7(t,e,r):wl(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)||tM({...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 tM(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)?tM(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)&&!Nl(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)&&!Nl(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))&&!Nl(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 Nl(e)?EF(t,e):nn(e)?xF(t,e):cs(e)?TF():wl(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):Tl(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):Cl(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 eM=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:eM(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=Tl;isUndefined=Cl;isUnsafe=bC;isRecord=vr;isTuple=qe;isVoid=ms;isLiteral=Ie;isSchema=kt;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 AA(Array.isArray(e)?e:[e],n,{additionalProperties:!1,...r})}pick(e,n,r){return YA(e,n,{additionalProperties:!1,...r})}omit(e,n,r){return qA(e,n,{additionalProperties:!1,...r})}partial(e,n){return GA(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)=>HA(Bd("K"),PA(e),cr("K"),Se([UA(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({[nc]: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 E2{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 Ut(`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 Ut(`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 Ut(`Array length (${e.length}) exceeds maximum allowed (${this.maxArrayLength})`)}validateStringLength(e){if(e.length>this.maxStringLength)throw new Ut(`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 V2{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:eM(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 Yw(...t){const[e,n]=rn(t,{2:(r,s)=>[r,s],1:r=>[{},r]});return new mv(e,n)}class Vm extends Ut{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=Yw(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 Yw(R.object({test:R.string()})).Parse({test:"value"}),!0}catch{return!1}}}class lq{codecs=new Map;jsonCodec=Rt(x2);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 Ut(`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 nM{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 Ut(`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 Ll=t=>new sl(t);class sl{options;get schema(){return this.options.schema}get key(){return this.options.name}constructor(e){this.options=e}}Ll[Rn]="atom";class uq{als=Rt(Wd);events=Rt(nM);codec=Rt(x2);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 Vw={};class Re{static create(e={}){typeof process=="object"&&typeof Vw=="object"&&(e.env={...e.env,...Vw}),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(nM),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();try{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)}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}catch(e){this.starting.reject(e);const n=this.starting.promise;return this.starting=void 0,n}return 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 Ew;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 Ut(`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 Ew(`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[nc]=="object"&&"getter"in c[nc]){const f=c[nc].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 Kw(t);case"array":return hq(t);default:return t.properties?Kw(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 Kw(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}=vl();if(!R.schema.isObject(t))throw new Ut("Type must be an TObject");return e.parseEnv(t)},pq=t=>{const{alepha:e}=vl();e.store.register(t);const n=e.store.get(t.key);return{[nc]:{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},vq="modulepreload",Sq=function(t){return"/devtools/"+t},Xw={},to=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=Sq(p),p in Xw)return;Xw[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":vq,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)})};function ys(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xg={exports:{}},Vu={};var Qw;function Eq(){if(Qw)return Vu;Qw=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 Vu.Fragment=e,Vu.jsx=n,Vu.jsxs=n,Vu}var Zw;function xq(){return Zw||(Zw=1,Xg.exports=Eq()),Xg.exports}var x=xq(),Qg={exports:{}},_t={};var Jw;function wq(){if(Jw)return _t;Jw=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 Ww;function pv(){return Ww||(Ww=1,Qg.exports=wq()),Qg.exports}var C=pv();const $n=ys(C),rM=a3({__proto__:null,default:$n},[C]),Tq=t=>{const[e,n]=C.useState(!1);return C.useEffect(()=>n(!0),[]),t.disabled||e?t.children:t.fallback};class tT 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 oM=C.createContext(void 0);var Ed={exports:{}},Cq=Ed.exports,eT;function Aq(){return eT||(eT=1,(function(t,e){(function(n,r){t.exports=r()})(Cq,(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 $q=Aq();const Mq=ys($q);var xd={exports:{}},Rq=xd.exports,nT;function Oq(){return nT||(nT=1,(function(t,e){(function(n,r){t.exports=r()})(Rq,(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 Nq=Oq();const _q=ys(Nq);var wd={exports:{}},Dq=wd.exports,rT;function jq(){return rT||(rT=1,(function(t,e){(function(n,r){t.exports=r()})(Dq,(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 Iq=jq();const Lq=ys(Iq);var Td={exports:{}},zq=Td.exports,oT;function Bq(){return oT||(oT=1,(function(t,e){(function(n,r){t.exports=r()})(zq,(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 Uq=Bq();const kq=ys(Uq);var Cd={exports:{}},Pq=Cd.exports,iT;function Hq(){return iT||(iT=1,(function(t,e){(function(n,r){t.exports=r()})(Pq,(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 Fq=Hq();const qq=ys(Fq);var Ad={exports:{}},$d={exports:{}},Gq=$d.exports,sT;function gv(){return sT||(sT=1,(function(t,e){(function(n,r){t.exports=r()})(Gq,(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 Yq=Ad.exports,aT;function Vq(){return aT||(aT=1,(function(t,e){(function(n,r){t.exports=r(gv())})(Yq,(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}Vq();var Md={exports:{}},Kq=Md.exports,lT;function Xq(){return lT||(lT=1,(function(t,e){(function(n,r){t.exports=r(gv())})(Kq,(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}Xq();var Qq=gv();const Zq=ys(Qq),ri=Zq;class zo{static PLUGINS=[_q,Mq,Lq,kq,qq];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 iM=t=>us(sM,t);class sM extends di{dateTimeProvider=Rt(zo);called=0;onInit(){this.dateTimeProvider.createInterval(async()=>{await this.options.handler(),this.called+=1},this.options.duration)}}iM[Rn]=sM;const aM=gr({name:"alepha.datetime",primitives:[iM],services:[zo]}),Km=()=>{const t=C.useContext(oM);if(!t)throw new Ut("Hook 'useAlepha()' must be used within an AlephaContext.Provider");return t},yv=t=>{const e=Km();return C.useMemo(()=>e.inject(t),[])},Jq=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())}))}),lM=R.object({prefix:R.optional(R.text()),links:R.array(Jq)}),Wq=Ll({name:"alepha.server.request.apiLinks",schema:R.optional(lM)});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 Ut(`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 Ut(`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}=vl();return Rt(qd,{lifetime:"transient",args:[t.name??n?.name??"Func",r?.name??e.env.MODULE_NAME??"app"]})};ho[Rn]=qd;const tG=R.object({NO_COLOR:R.optional(R.text()),FORCE_COLOR:R.optional(R.text())});class ac{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(tG);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=ac.COLORS.RESET){return this.enabled?`${ac.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(ac);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)}),"";
|
|
11
|
-
Caused by: ${
|
|
8
|
+
`,t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[]))),([e,n])=>[e,n]),cA=(t,e=[])=>y(y(Z0(t),([n,r])=>y(yI(r),([s,l])=>[[n,s],l])),([n,r])=>cA(r,[...e,n]),()=>[e,t]),bI=t=>y(y(cA(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])=>[c6(e),n]),Z0=t=>y(y(gI(t),([e,n])=>y(y(dI(n),([r,s])=>[r,s],()=>y(mI(n),([r,s])=>[r,s],()=>y(hI(n),([r,s])=>[r,s],()=>y(pI(n),([r,s])=>[r,s],()=>[])))),([r,s])=>y(LC(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[f6(e),n]),vI=t=>y(y(Z0(t),([e,n])=>y(bI(n),([r,s])=>[[e,r],s])),([e,n])=>[d6(e),n]),SI=t=>y(y(vI(t),([e,n])=>[e,n],()=>y(E5(t),([e,n])=>[e,n],()=>y(Gt(t),([e,n])=>[e,n],()=>[]))),([e,n])=>[e,n]);function EI(t){const e=HC(`\`${t}\``);return M(e.length,2)?e[0]:He()}function J0(t,e={}){return he("TemplateLiteral",[t],e)}function fA(t){return ee({},J0(t,{}))}function xI(t){const e=EI(t);return fA(e)}function wI(t,e={}){const n=jt(t)?xI(t):fA(t);return Qt(n,{},e)}function Yr(t){return Ht(t,"TemplateLiteral")}function dA(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 oe(){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 TI=Object.freeze(Object.defineProperty({__proto__:null,ExtendsFalse:oe,ExtendsTrue:Lt,ExtendsUnion:dA,IsExtendsFalse:_y,IsExtendsTrue:tb,IsExtendsTrueLike:Ae,IsExtendsUnion:W0},Symbol.toStringTag,{value:"Module"}));function CI(t){return jt(t)||Kt(t)?be(t):Vn(t)?Ys():Ze()}function Al(t){return t.map(n=>CI(n))}function eb(t){const e=Al(t);return Se(e)}function nb(t){return eb(t.enum)}function AI(t,e,n,r){const s=Je(t,n,r);return Ae(s)?Lt(Xe(Xe(t,s.inferred),{[e]:n})):oe()}function $I(t,e){return Lt(t)}function MI(t,e,n){const r=eb(n);return Je(t,e,r)}function mA(t,e,n){const[r,...s]=n;return kt(r)?(()=>{const l=Je(t,e,r);return Ae(l)?mA(l.inferred,e,s):oe()})():Lt(t)}function RI(t,e,n){const r=bi(n);return Je(t,e,r)}function hA(t,e,n){const[r,...s]=n;return kt(r)?(()=>{const l=Je(t,e,r);return Ae(l)?Lt(l.inferred):hA(t,e,s)})():oe()}function Be(t,e,n){return pi(n)?$I(t):uo(n)?MI(t,e,n.enum):dr(n)?AI(t,n.name,e,n.extends):xe(n)?mA(t,e,n.allOf):Yr(n)?RI(t,e,n.pattern):Pt(n)?hA(t,e,n.anyOf):os(n)?Lt(t):oe()}function OI(t,e,n){return dr(n)?Be(t,e,n):pi(n)||os(n)?Lt(t):dA(t)}function NI(t,e){const n=Ld(t),r=Ld(e);return n&&r||!n&&r?!0:!(n&&!r)}function _I(t,e,n,r){return nn(r)?NI(e,r)?Je(t,n,r.items):oe():Be(t,e,r)}function DI(t,e,n){return cs(n)?Je(t,e,n.iteratorItems):Be(t,pc(e),n)}function jI(t,e,n){return oa(n)?Lt(t):Be(t,e,n)}function II(t,e,n){return gi(n)?Lt(t):Be(t,e,n)}function LI(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?oe():Ae(p)?rb(p.inferred,n,s):oe()}function zI(t,e,n,r){const[s,...l]=r;return kt(s)?LI(t,e,n,s,l):qn(e)?Lt(t):oe()}function BI(t,e,n){const[r,...s]=e;return kt(r)?zI(t,r,s,n):Lt(t)}function rb(t,e,n){return BI(t,e,n)}function pA(t,e,n){return ms(n)?Lt(t):Je(t,e,n)}function UI(t,e,n,r){return jo(r)?(()=>{const s=rb(t,e,r.parameters);return Ae(s)?pA(s.inferred,n,r.instanceType):oe()})():oe()}function kI(t,e,n){return Je(t,nb(e),n)}function PI(t,e,n,r){return Io(r)?(()=>{const s=rb(t,e,r.parameters);return Ae(s)?pA(s.inferred,n,r.returnType):oe()})():oe()}function HI(t,e,n){return co(n)||br(n)?Lt(t):Be(t,e,n)}const ob="equal",FI="disjoint",ib="left-inside",sb="right-inside";function ab(t,e){const n=[os(t)?oe():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:FI}function qI(t){return Pt(t)?Tc(t.anyOf):[t]}function Tc(t){return t.reduce((e,n)=>[...e,...qI(n)],[])}function gA(t){return t.reduceRight((n,r,s)=>({[s]:r,...n}),{})}function GI(t){const e=gA(t.items);return ue(e)}function YI(t,e){return zd(t)?!!zd(e):!1}function VI(t,e){return qn(t)?!!qn(e):!1}function KI(t,e){const n=YI(t,e),r=VI(t,e),s=Vr([t,e]),l=q2($0(s));return n&&r?Pr(kr(l)):n&&!r?Pr(l):!n&&r?kr(l):l}function XI(t,e,n){return n in t?n in e?KI(t[n],e[n]):t[n]:n in e?e[n]:Ze()}function QI(t,e){return[...new Set([...yt(e),...yt(t)])].reduce((r,s)=>({...r,[s]:XI(t,e,s)}),{})}function Dw(t){return $e(t)?t.properties:qe(t)?gA(t.items):He()}function ZI(t,e){const n=Dw(t),r=Dw(e),s=QI(n,r);return ue(s)}function JI(t,e){const n=ab(t,e);return M(n,ib)?t:M(n,sb)||M(n,ob)?e:Ze()}function jw(t){return $e(t)||qe(t)}function WI(t,e){const n=Pt(t),r=Pt(e);return n||r}function tL(t,e){const n=Pd(t),r=Pd(e),s=WI(n,r),l=jw(n),c=jw(r);return s?Vr([n,r]):l&&c?ZI(n,r):l&&!c?n:!l&&c?r:JI(n,r)}function yA(t,e,n=[]){const[r,...s]=e;return ye(r)?n.length===0?[t]:n:yA(t,s,[...n,tL(t,r)])}function bA(t,e,n=[]){const[r,...s]=t;return kt(r)?bA(s,e,[...n,...kd([r],e)]):n}function kd(t,e=[]){const[n,...r]=t;return kt(n)?Pt(n)?kd(r,bA(n.anyOf,e)):kd(r,yA(n,e)):e}function Vr(t){const e=kd(t);return vA(e)}function Cc(t){return vA(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 eL(t,e){return e.filter(n=>ab(t,n)!==sb)}function nL(t,e){const n=e.some(r=>{const s=ab(t,r);return M(s,ib)||M(s,ob)});return M(n,!1)}function rL(t,e){const n=Pd(t);return pi(n)?[n]:nL(n,e)?[...eL(n,e),n]:e}function Dy(t,e=[]){const[n,...r]=t;return kt(n)?$e(n)?Dy(r,[...e,n]):Dy(r,rL(n,e)):e}function vA(t){const e=Dy(t),n=Tc(e);return n.length===0?Ze():n.length===1?n[0]:Se(n)}function oL(t,e,n,r){const s=Et(t,e,n);return Qt(Pd(s),{},r)}function iL(t,e,n,r){return oL(t,e,n,r)}function sL(t,e,n){const r=Vr(e);return Je(t,r,n)}function aL(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):oe()}function lL(t,e,n){return Ie(n)?ym(t,e,n.const):oa(n)?Lt(t):Be(t,be(e),n)}function uL(t,e,n){return Ie(n)?ym(t,e,n.const):gi(n)?Lt(t):Be(t,be(e),n)}function cL(t,e,n){return Ie(n)?ym(t,e,n.const):br(n)?Lt(t):Be(t,be(e),n)}function fL(t,e,n){return Ie(n)?ym(t,e,n.const):Hn(n)?Lt(t):Be(t,be(e),n)}function dL(t,e,n){return Ne(e.const)?lL(t,e.const,n):Fe(e.const)?uL(t,e.const,n):Kt(e.const)?cL(t,e.const,n):jt(e.const)?fL(t,e.const,n):He()}function mL(t,e,n){return dr(n)?Be(t,e,n):Lt(t)}function hL(t,e,n){return Tl(n)?Lt(t):Be(t,e,n)}function pL(t,e,n){return br(n)?Lt(t):Be(t,e,n)}function gL(t,e,n){return qn(e)?qn(n)?Lt(t):oe():Lt(t)}function yL(t,e,n){return dr(n)&&um(n.extends)?oe():(()=>{const r=Je(t,e,n);return Ae(r)?gL(r.inferred,e,n):oe()})()}function bL(t,e){return t.reduce((n,r)=>r in e&&Ae(e[r])?{...n,...e[r].inferred}:He(),{})}function vL(t,e,n){const r={};for(const c of yt(n))r[c]=c in e?yL({},e[c],n[c]):qn(n[c])?dr(n[c])?Lt(Xe(t,{[n[c].name]:n[c].extends})):Lt(t):oe();const s=x0(r).every(c=>Ae(c)),l=s?bL(yt(r),r):{};return s?Lt(l):oe()}function SL(t,e,n){const r=vL(t,e,n);return Ae(r)?Lt(Xe(t,r.inferred)):oe()}function EL(t,e,n){return SL(t,e,n)}function xL(t,e,n){return $e(n)?EL(t,e,n.properties):Be(t,ue(e),n)}function wL(t,e,n){return yi(n)?Je(t,e,n.item):Be(t,Ec(e),n)}function TL(t,e,n){return Hn(n)?Lt(t):Be(t,e,n)}function CL(t,e,n){return vc(n)?Lt(t):Be(t,e,n)}function AL(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 SA(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 EA(t){return dr(t)?jy(t.name,t.extends):void 0}function ub(t,e,n=[]){const[r,...s]=t;return kt(r)?(()=>{const l=Je({},r,e);return Ae(l)?ub(s,e,[...n,r]):void 0})():n}function $L(t,e,n,r){const s=ub(n,r);return xt(s)?Lt(Xe(t,{[e]:fo(s)})):oe()}function xA(t,e,n,r){const s=ub(n,r);return xt(s)?Lt(Xe(t,{[e]:Se(s)})):oe()}function ML(t){return[...t].reverse()}function Iy(t,e){return e?ML(t):t}function RL(t){const e=t.length>0?t[0]:void 0,n=kt(e)?SA(e):void 0;return kt(n)}function OL(t,e,n,r,s,l){const c=Je(t,n,s);return Ae(c)?wA(c.inferred,e,r,l):oe()}function NL(t,e,n,r,s){const l=SA(r);return lb(l)?$L(t,l.name,Iy(n,e),l.type):(()=>{const[c,...f]=n;return kt(c)?OL(t,e,c,f,r,s):oe()})()}function _L(t,e,n,r){const[s,...l]=r;return kt(s)?NL(t,e,n,s,l):M(n.length,0)?Lt(t):oe()}function wA(t,e,n,r){return _L(t,e,n,r)}function DL(t,e,n){const r=Bb(t,{callstack:[]},n),s=RL(r);return wA(t,s,Iy(e,s),Iy(r,s))}function TA(t,e,n){const r=EA(n);return lb(r)?xA(t,r.name,e,r.type):(()=>{const[s,...l]=e;return kt(s)?(()=>{const c=Je(t,s,n);return Ae(c)?TA(c.inferred,l,n):oe()})():Lt(t)})()}function jL(t,e,n){const r=Bb(t,{callstack:[]},e);return qe(n)?DL(t,r,n.items):nn(n)?TA(t,r,n.items):Be(t,fo(r),n)}function IL(t,e,n){return ms(n)||Cl(n)?Lt(t):Be(t,e,n)}function CA(t,e,n){const[r,...s]=n;return kt(r)?(()=>{const l=Je(t,e,r);return Ae(l)?Lt(l.inferred):CA(t,e,s)})():oe()}function Ly(t,e,n){const[r,...s]=e;return kt(r)?(()=>{const l=CA(t,r,n);return Ae(l)?Ly(l.inferred,s,n):oe()})():Lt(t)}function LL(t,e,n){const r=EA(n);return lb(r)?xA(t,r.name,e,r.type):Pt(n)?Ly(t,e,n.anyOf):Ly(t,e,[n])}function zL(t,e,n){return dr(n)?Be(t,e,n):pi(n)||os(n)?Lt(t):oe()}function BL(t,e,n){return ms(n)?Lt(t):Be(t,e,n)}function Je(t,e,n){return pi(e)?OI(t,e,n):nn(e)?_I(t,e,e.items,n):cs(e)?DI(t,e.iteratorItems,n):oa(e)?jI(t,e,n):gi(e)?II(t,e,n):jo(e)?UI(t,e.parameters,e.instanceType,n):uo(e)?kI(t,e,n):Io(e)?PI(t,e.parameters,e.returnType,n):co(e)?HI(t,e,n):xe(e)?sL(t,e.allOf,n):fs(e)?aL(t,e.iteratorItems,n):Ie(e)?dL(t,e,n):um(e)?mL(t,e,n):Tl(e)?hL(t,e,n):br(e)?pL(t,e,n):$e(e)?xL(t,e.properties,n):yi(e)?wL(t,e.item,n):Hn(e)?TL(t,e,n):vc(e)?CL(t,e,n):Yr(e)?AL(t,e.pattern,n):qe(e)?jL(t,e.items,n):Cl(e)?IL(t,e,n):Pt(e)?LL(t,e.anyOf,n):os(e)?zL(t,e,n):ms(e)?BL(t,e,n):oe()}function bm(t,e,n={}){return he("Interface",[t,e],n)}function cb(t){return kt(t)&&at(t,"action")&&M(t.action,"Interface")}function AA(t,e,n={}){return ee({},bm(t,e,n))}function UL(t,e,n){return t.includes(n)?!0:ts([...t,n],e,e[n])}function Iw(t,e,n){const r=iC(n);return Hs(t,e,r)}function Hs(t,e,n){const[r,...s]=n;return kt(r)?ts(t,e,r)?!0:Hs(t,e,s):!1}function ts(t,e,n){return On(n)?UL(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)?Iw(t,e,n.parameters[1]):xe(n)?Hs(t,e,n.allOf):fs(n)?ts(t,e,n.iteratorItems):$e(n)?Iw(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 $A(t,e,n){return ts(t,e,n)}function kL(t,e){return e.reduce((n,r)=>r in t?$A([r],t,t[r])?[...n,r]:n:He(),[])}function PL(t){const e=nj(t);return kL(t,e)}function HL(t,e,n){return n.includes(e)?n:e in t?es(t,t[e],[...n,e]):He()}function Lw(t,e,n){const r=iC(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)?HL(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)?Lw(t,e.parameters[1],n):xe(e)?nl(t,e.allOf,n):fs(e)?es(t,e.iteratorItems,n):$e(e)?Lw(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 FL(t,e,n){return es(t,n,[e])}function qL(t){return ll()}function GL(t){return yt(t).reduce((e,n)=>({...e,[n]:xo(t[n])}),{})}function Yu(t){return t.reduce((e,n)=>[...e,xo(n)],[])}function xo(t){return On(t)?qL(t.$ref):nn(t)?ra(xo(t.items),Y2(t)):cs(t)?pc(xo(t.iteratorItems)):jo(t)?am(Yu(t.parameters),xo(t.instanceType)):Io(t)?lm(Yu(t.parameters),xo(t.returnType)):xe(t)?Xs(Yu(t.allOf)):fs(t)?bc(xo(t.iteratorItems)):$e(t)?ue(GL(t.properties)):yi(t)?Ec(xo(t.item)):vr(t)?B0(U0(t),xo(Lo(t))):Pt(t)?Se(Yu(t.anyOf)):qe(t)?fo(Yu(t.items)):t}function YL(t,e){return e in t?xo(t[e]):fr()}function VL(t){return YL(t.$defs,t.$ref)}function KL(t,e,n){const r=Ao(t,{callstack:[]},e),s=zb({},{callstack:[]},n);return Vr([...r,ue(s)])}function XL(t,e){return yt(t).filter(r=>e.includes(r)).reduce((r,s)=>{const l=t[s],c=cb(l)?KL(t,l.parameters[0],l.parameters[1]):l;return{...r,[s]:c}},{})}function QL(t,e,n){const r=FL(t,e,n),s=XL(t,r);return yc(s,e)}function MA(t,e){return e in t?On(t[e])?MA(t,t[e].$ref):t[e]:Ze()}function Ac(t,e){return MA(t,e)}function zw(t){return Nn(t)?VL(t):t}function ci(t,e,n){const r=zw(e),s=zw(n);return Je(t,r,s)}function ZL(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 Bw(t,e,n,r,s){const l=Et(t,e,s);return ZL(n,l,r),Xe(t,{[n]:l})}function JL(t,e,n,r,s){const l=Et(t,e,n.extends),c=Et(t,e,n.equals),[f,...m]=s;return kt(f)?zy(Bw(t,e,n.name,l,f),e,r,m):zy(Bw(t,e,n.name,l,c),e,r,[])}function zy(t,e,n,r){const[s,...l]=n;return kt(s)?JL(t,e,s,l,r):t}function WL(t,e,n,r){return zy(t,e,n,r)}function tz(t){return Sl(t.length,0)?t[0]:""}function RA(t,e,n,r){const s=Ao(t,e,r);return NA(n,s)}function ez(t,e,n,r){return RA(t,e,cr(n),r)}function nz(t,e,n,r,s,l){const c=Ao(t,e,l),f=WL(t,e,r,c),m=Et(f,{callstack:[...e.callstack,n]},s);return Et(t,e,m)}function OA(t,e,n,r){const[s,l]=yD(t,n);return R0(l)?M(tz(e.callstack),s)?ez(t,e,s,r):nz(t,e,s,l.parameters,l.expression,r):RA(t,e,n,r)}function NA(t,e){return Nt({"~kind":"Call"},{target:t,arguments:e},{})}function rz(t,e){return OA({},{callstack:[]},t,e)}function fb(t){return Ht(t,"Call")}function _A(t){return yi(t)?_A(t.item):t}function oz(t,e,n,r){const s=Et(t,e,n);return Qt(_A(s),{},r)}function iz(t,e,n,r){return me(t,[n])?oz(t,e,n,r):Ub(n,r)}function sz(t,e){return t(e)}function az(t,e){return jt(e)?be(sz(t,e)):be(e)}function lz(t,e){const n=bi(e);return $l(t,n)}function uz(t,e){const n=e.map(r=>$l(t,r));return Se(n)}function $l(t,e){return Ie(e)?az(t,e.const):Yr(e)?lz(t,e.pattern):Pt(e)?uz(t,e.anyOf):e}function db(t,e={}){return he("Capitalize",[t],e)}function cz(t,e={}){return ee({},db(t,e))}function mb(t,e={}){return he("Lowercase",[t],e)}function fz(t,e={}){return ee({},mb(t,e))}function hb(t,e={}){return he("Uncapitalize",[t],e)}function dz(t,e={}){return ee({},hb(t,e))}function pb(t,e={}){return he("Uppercase",[t],e)}function mz(t,e={}){return ee({},pb(t,e))}const hz=t=>t[0].toUpperCase()+t.slice(1),pz=t=>t.toLowerCase(),gz=t=>t[0].toLowerCase()+t.slice(1),yz=t=>t.toUpperCase();function bz(t,e,n,r){const s=Et(t,e,n);return Qt($l(hz,s),{},r)}function vz(t,e,n,r){return me(t,[n])?bz(t,e,n,r):db(n,r)}function Sz(t,e,n,r){const s=Et(t,e,n);return Qt($l(pz,s),{},r)}function Ez(t,e,n,r){return me(t,[n])?Sz(t,e,n,r):mb(n,r)}function xz(t,e,n,r){const s=Et(t,e,n);return Qt($l(gz,s),{},r)}function wz(t,e,n,r){return me(t,[n])?xz(t,e,n,r):hb(n,r)}function Tz(t,e,n,r){const s=Et(t,e,n);return Qt($l(yz,s),{},r)}function Cz(t,e,n,r){return me(t,[n])?Tz(t,e,n,r):pb(n,r)}function gb(t,e,n,r,s={}){return he("Conditional",[t,e,n,r],s)}function Az(t,e,n,r,s={}){return ee({},gb(t,e,n,r,s))}function $z(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 Mz(t,e,n,r,s,l,c){return me(t,[n,r])?$z(t,e,n,r,s,l,c):gb(n,r,s,l,c)}function yb(t,e={}){return he("ConstructorParameters",[t],e)}function Rz(t,e={}){return ee({},yb(t,e))}function Oz(t){return jo(t)?Et({},{callstack:[]},fo(t.parameters)):Ze()}function Nz(t,e,n,r){const s=Et(t,e,n);return Qt(Oz(s),{},r)}function _z(t,e,n,r){return me(t,[n])?Nz(t,e,n,r):yb(n,r)}function bb(t,e,n={}){return he("Exclude",[t,e],n)}function Dz(t,e,n={}){return ee({},bb(t,e,n))}function Uw(t,e){return t.reduce((n,r)=>[...n,...DA(r,e)],[])}function DA(t,e){const n=ci({},t,e);return Ae(n)?[]:[t]}function jz(t,e){const n=uo(t)?Uw(Al(t.enum),e):Pt(t)?Uw(Tc(t.anyOf),e):DA(t,e);return Cc(n)}function Iz(t,e,n,r,s){const l=Et(t,e,n),c=Et(t,e,r);return Qt(jz(l,c),{},s)}function jA(t,e,n,r,s){return me(t,[n,r])?Iz(t,e,n,r,s):bb(n,r,s)}function vb(t,e,n={}){return he("Extract",[t,e],n)}function Lz(t,e,n={}){return ee({},vb(t,e,n))}function kw(t,e){return t.reduce((n,r)=>[...n,...IA(r,e)],[])}function IA(t,e){const n=ci({},t,e);return Ae(n)?[t]:[]}function zz(t,e){const n=uo(t)?kw(Al(t.enum),e):Pt(t)?kw(Tc(t.anyOf),e):IA(t,e);return Cc(n)}function Bz(t,e,n,r,s){const l=Et(t,e,n),c=Et(t,e,r);return Qt(zz(l,c),{},s)}function Uz(t,e,n,r,s){return me(t,[n,r])?Bz(t,e,n,r,s):vb(n,r,s)}const kz=new RegExp("^(?:0|[1-9][0-9]*)$");function Sb(t){const e=`${t}`;return kz.test(e)?parseInt(e):t}function Pz(t){return be(Sb(t))}function Pw(t){return t.map(e=>LA(e))}function LA(t){return xe(t)?Xs(Pw(t.allOf)):Pt(t)?Se(Pw(t.anyOf)):Ie(t)?Pz(t.const):t}function Hz(t,e){const n=LA(e),r=ci({},n,li());return Ae(r)?t:Ze()}function Fz(t,e){const n=Ac(t,e);return $c(n)}function zA(t){return t.reduce((e,n)=>[...e,...$c(n)],[])}function qz(t){const e=Al(t);return zA(e)}function Gz(t){const e=Vr(t);return $c(e)}function Yz(t){return[`${t}`]}function Vz(t){const e=bi(t);return $c(e)}function $c(t){return Nn(t)?Fz(t.$defs,t.$ref):uo(t)?qz(t.enum):xe(t)?Gz(t.allOf):Ie(t)?Yz(t.const):Yr(t)?Vz(t.pattern):Pt(t)?zA(t.anyOf):[]}function Eb(t){return $c(t)}function Kz(t,e){return e in t?[t[e]]:[]}function Xz(t,e){return e.reduce((n,r)=>[...n,...Kz(t,r)],[])}function Qz(t,e){const n=Eb(e),r=Xz(t,n);return Cc(r)}function Zz(t){return be(Sb(t))}function Hw(t){return t.map(e=>BA(e))}function BA(t){return xe(t)?Xs(Hw(t.allOf)):Pt(t)?Se(Hw(t.anyOf)):Ie(t)?Zz(t.const):t}function Jz(t,e){return t.reduceRight((n,r,s)=>{const l=ci({},be(s),e);return Ae(l)?[r,...n]:n},[])}function Wz(t,e){const n=BA(e),r=Jz(t,n);return gm(r)}function t8(t){return gm(t)}function e8(t,e){return br(e)||co(e)?t8(t):Wz(t,e)}function n8(t){return t.reduce((e,n)=>rC(n)?[...e,be(n)]:e,[])}function xb(t){const e=n8(t);return Se(e)}function vm(t,e,n={}){return he("Index",[t,e],n)}function UA(t,e,n={}){const r=xt(e)?xb(e):e;return ee({},vm(t,r,n))}function r8(t,e){const n=Ac(t,e);return Ml(n)}function o8(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 i8(t){return t.reduce((e,n)=>o8(e,Ml(n)),{})}function s8(t){const e=GI(fo(t));return Ml(e)}function a8(t,e){return yt(t).filter(s=>s in e).reduce((s,l)=>({...s,[l]:Cc([t[l],e[l]])}),{})}function kA(t,e){const[n,...r]=t;return kt(n)?kA(r,a8(e,Ml(n))):e}function l8(t){const[e,...n]=t;return kt(e)?kA(n,Ml(e)):He()}function Ml(t){return Nn(t)?r8(t.$defs,t.$ref):xe(t)?i8(t.allOf):Pt(t)?l8(t.anyOf):qe(t)?s8(t.items):$e(t)?t.properties:{}}function wb(t){const e=Ml(t);return ue(e)}function u8(t){return Nn(t)||xe(t)||Pt(t)?wb(t):t}function c8(t,e){const n=u8(t);return nn(n)?Hz(n.items,e):$e(n)?Qz(n.properties,e):qe(n)?e8(n.items,e):Ze()}function f8(t,e,n,r,s){const l=Et(t,e,n),c=Et(t,e,r);return Qt(c8(l,c),{},s)}function d8(t,e,n,r,s){return me(t,[n,r])?f8(t,e,n,r,s):vm(n,r,s)}function Tb(t,e={}){return he("InstanceType",[t],e)}function m8(t,e={}){return ee({},Tb(t,e))}function h8(t){return jo(t)?t.instanceType:Ze()}function p8(t,e,n,r){const s=Et(t,e,n);return Qt(h8(s),{},r)}function g8(t,e,n,r={}){return me(t,[n])?p8(t,e,n,r):Tb(n,r)}function y8(t,e,n,r,s){const l=Ao(t,{callstack:[]},n),c=zb(t,{callstack:[]},r),f=Vr([...l,ue(c)]);return Qt(f,{},s)}function b8(t,e,n,r,s){return me(t,n)?y8(t,e,n,r,s):bm(n,r,s)}function Sm(t,e={}){return he("KeyOf",[t],e)}function PA(t,e={}){return ee({},Sm(t,e))}function v8(){return Se([li(),Hr(),L0()])}function S8(t){return li()}function E8(t){return t.reduce((n,r)=>rC(r)?[...n,be(Sb(r))]:He(),[])}function x8(t){const e=yt(t),n=E8(e);return gm(n)}function w8(t){return U0(t)}function T8(t){const e=t.map((n,r)=>be(r));return gm(e)}function C8(t){return Nn(t)||xe(t)||Pt(t)?wb(t):t}function A8(t){const e=C8(t);return pi(e)?v8():nn(e)?S8(e.items):$e(e)?x8(e.properties):vr(e)?w8(e):qe(e)?T8(e.items):Ze()}function $8(t,e,n,r){const s=Et(t,e,n);return Qt(A8(s),{},r)}function M8(t,e,n,r){return me(t,[n])?$8(t,e,n,r):Sm(n,r)}function R8(t){const e=bi(t);return Cb(e)}function Fw(t){return t.reduce((e,n)=>[...e,...Cb(n)],[])}function Cb(t){return uo(t)?Fw(Al(t.enum)):I0(t)||j0(t)?[t]:Yr(t)?R8(t.pattern):Pt(t)?Fw(t.anyOf):[]}function O8(t){return Cb(t)}function Hd(t,e,n,r,s={}){return he("Mapped",[t,e,n,r],s)}function HA(t,e,n,r,s={}){return ee({},Hd(t,e,n,r,s))}function N8(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 _8(t,e,n,r,s){const l=Xe(t,{[n.name]:r});return Et(l,e,s)}function D8(t,e,n,r,s,l){const c=_8(t,e,n,r,l),f=N8(t,e,n,r,s);return I0(f)||j0(f)?{[f.const]:c}:{}}function j8(t,e,n,r,s,l){return r.reduce((c,f)=>({...c,...D8(t,e,n,f,s,l)}),{})}function I8(t,e,n,r,s,l){const c=O8(r),f=j8(t,e,n,c,s,l);return ue(f)}function L8(t,e,n,r,s,l,c){const f=Et(t,e,r);return Qt(I8(t,e,n,f,s,l),{},c)}function z8(t,e,n,r,s,l,c){return me(t,[r])?L8(t,e,n,r,s,l,c):Hd(n,r,s,l,c)}function B8(t,e){return yt(t).filter(r=>e.includes(r)).reduce((r,s)=>({...r,[s]:QL(t,s,t[s])}),{})}function U8(t,e){return yt(t).filter(r=>!e.includes(r)).reduce((r,s)=>({...r,[s]:Et(t,{callstack:[]},t[s])}),{})}function k8(t,e){const n=PL(t),r=B8(t,n),s=U8(t,n),l={...r,...s};return Qt(l,{},e)}function P8(t,e,n,r){const s=Xe(t,n);return k8(s,r)}function Ab(t,e={}){return he("NonNullable",[t],e)}function H8(t,e={}){return ee({},Ab(t,e))}function F8(t){const e=Se([Ys(),hm()]);return jA({},{callstack:[]},t,e,{})}function q8(t,e,n,r){const s=Et(t,e,n);return Qt(F8(s),{},r)}function G8(t,e,n,r){return me(t,[n])?q8(t,e,n,r):Ab(n,r)}function FA(t){const e=wb(t);return $e(e)?e.properties:He()}function $b(t,e,n={}){return he("Omit",[t,e],n)}function qA(t,e,n={}){const r=xt(e)?xb(e):e;return ee({},$b(t,r,n))}function Y8(t,e){return yt(t).reduce((r,s)=>e.includes(s)?r:{...r,[s]:t[s]},{})}function V8(t,e){const n=FA(t),r=Eb(e),s=Y8(n,r);return ue(s)}function K8(t,e,n,r,s){const l=Et(t,e,n),c=Et(t,e,r);return Qt(V8(l,c),{},s)}function X8(t,e,n,r,s){return me(t,[n,r])?K8(t,e,n,r,s):$b(n,r,s)}function Em(t,e){return he("Options",[t,e],{})}function Mb(t,e){return ee({},Em(t,e))}function Q8(t,e,n,r){const s=Et(t,e,n);return Qt(s,{},r)}function Z8(t,e,n,r){return me(t,[n])?Q8(t,e,n,r):Em(n,r)}function Rb(t,e={}){return he("Parameters",[t],e)}function J8(t,e={}){return ee({},Rb(t,e))}function W8(t){return Io(t)?Et({},{callstack:[]},fo(t.parameters)):Ze()}function tB(t,e,n,r){const s=Et(t,e,n);return Qt(W8(s),{},r)}function eB(t,e,n,r){return me(t,[n])?tB(t,e,n,r):Rb(n,r)}function Ob(t,e={}){return he("Partial",[t],e)}function GA(t,e={}){return ee({},Ob(t,e))}function nB(t,e){const n=Ac(t,e),r=xm(n);return yc(Xe(t,{[e]:r}),e)}function rB(t){const e=t.map(n=>xm(n));return Vr(e)}function oB(t){const e=t.map(n=>xm(n));return Se(e)}function iB(t){const e=yt(t).reduce((r,s)=>({...r,[s]:M0(t[s])}),{});return ue(e)}function xm(t){return Nn(t)?nB(t.$defs,t.$ref):xe(t)?rB(t.allOf):Pt(t)?oB(t.anyOf):$e(t)?iB(t.properties):ue({})}function sB(t,e,n,r){const s=Et(t,e,n);return Qt(xm(s),{},r)}function aB(t,e,n,r){return me(t,[n])?sB(t,e,n,r):Ob(n,r)}function Nb(t,e,n={}){return he("Pick",[t,e],n)}function YA(t,e,n={}){const r=xt(e)?xb(e):e;return ee({},Nb(t,r,n))}function lB(t,e){return yt(t).reduce((r,s)=>e.includes(s)?Xe(r,{[s]:t[s]}):r,{})}function uB(t,e){const n=FA(t),r=Eb(e),s=lB(n,r);return ue(s)}function cB(t,e,n,r,s){const l=Et(t,e,n),c=Et(t,e,r);return Qt(uB(l,c),{},s)}function fB(t,e,n,r,s){return me(t,[n,r])?cB(t,e,n,r,s):Nb(n,r,s)}function _b(t,e={}){return he("ReadonlyType",[t],e)}function dB(t,e={}){return ee({},_b(t,e))}function mB(t){return sm(ra(t))}function hB(t,e){const n=Ac(t,e),r=wm(n);return yc(Xe(t,{[e]:r}),e)}function pB(t){const e=t.map(n=>wm(n));return Vr(e)}function gB(t){const e=yt(t).reduce((r,s)=>({...r,[s]:G2(t[s])}),{});return ue(e)}function yB(t){return sm(fo(t))}function bB(t){const e=t.map(n=>wm(n));return Se(e)}function wm(t){return nn(t)?mB(t.items):Nn(t)?hB(t.$defs,t.$ref):xe(t)?pB(t.allOf):$e(t)?gB(t.properties):qe(t)?yB(t.items):Pt(t)?bB(t.anyOf):t}function vB(t,e,n,r){const s=Et(t,e,n);return Qt(wm(s),{},r)}function SB(t,e,n,r){return me(t,[n])?vB(t,e,n,r):_b(n,r)}function EB(t){return ss(Qs,t)}function xB(t){return ue({true:t,false:t})}function wB(t,e){const n=eb(t);return Tm(n,e)}function TB(t,e){return ss(cm,e)}function CB(t,e){const n=Vr(t);return Tm(n,e)}function AB(t,e){return jt(t)||Kt(t)?ue({[t]:e}):M(t,!1)?ue({false:e}):M(t,!0)?ue({true:e}):ue({})}function $B(t,e){return ss(fm,e)}function MB(t,e){return at(t,"pattern")&&(jt(t.pattern)||t.pattern instanceof RegExp)?ss(t.pattern.toString(),e):ss(Qs,e)}function RB(t,e){const n=aC(t);return cC(n)?Tm(bi(t),e):ss(t,e)}function OB(t){return t.some(e=>Hn(e)||br(e)||co(e))}function NB(t,e){return M(OB(t),!0)?ss(Qs,e):void 0}function _B(t,e){return t.reduce((n,r)=>Ie(r)&&(jt(r.const)||Kt(r.const))?{...n,[r.const]:e}:n,{})}function DB(t,e){const n=_B(t,e);return ue(n)}function jB(t,e){const n=Tc(t),r=NB(n,e);return kt(r)?r:DB(n,e)}function Tm(t,e){return pi(t)?EB(e):gi(t)?xB(e):uo(t)?wB(t.enum,e):co(t)?TB(t,e):xe(t)?CB(t.allOf,e):Ie(t)?AB(t.const,e):br(t)?$B(t,e):Pt(t)?jB(t.anyOf,e):Hn(t)?MB(t,e):Yr(t)?RB(t.pattern,e):ue({})}function IB(t,e,n,r,s){const l=Et(t,e,n),c=Et(t,e,r);return Qt(Tm(l,c),{},s)}function LB(t,e,n,r,s){return me(t,[n])?IB(t,e,n,r,s):z0(n,r,s)}function zB(t,e,n,r){return r in t?$A([r],t,t[r])?n:Et(t,e,t[r]):n}function BB(t,e){const n=Ac(t,e),r=Cm(n);return yc(Xe(t,{[e]:r}),e)}function UB(t){const e=t.map(n=>Cm(n));return Vr(e)}function kB(t){const e=t.map(n=>Cm(n));return Se(e)}function PB(t){const e=yt(t).reduce((r,s)=>({...r,[s]:$0(t[s])}),{});return ue(e)}function Cm(t){return Nn(t)?BB(t.$defs,t.$ref):xe(t)?UB(t.allOf):Pt(t)?kB(t.anyOf):$e(t)?PB(t.properties):ue({})}function Db(t,e={}){return he("Required",[t],e)}function HB(t,e={}){return ee({},Db(t,e))}function FB(t,e,n,r){const s=Et(t,e,n);return Qt(Cm(s),{},r)}function qB(t,e,n,r){return me(t,[n])?FB(t,e,n,r):Db(n,r)}function jb(t,e={}){return he("ReturnType",[t],e)}function GB(t,e={}){return ee({},jb(t,e))}function YB(t){return Io(t)?t.returnType:Ze()}function VB(t,e,n,r){const s=Et(t,e,n);return Qt(YB(s),{},r)}function KB(t,e,n,r){return me(t,[n])?VB(t,e,n,r):jb(n,r)}function XB(t){return t.join("|")}function QB(t){return t.slice(1,t.length-1)}function ZB(t,e,n){return hs(e,`${n}${t}`)}function JB(t,e){return hs(t,`${e}${KD}`)}function WB(t,e){return hs(t,`${e}${nC}`)}function t9(t,e){return hs(t,`${e}${oC}`)}function e9(t,e){return Lb(Se([be("false"),be("true")]),t,e)}function n9(t,e){return hs(t,`${e}${sC}`)}function r9(t,e,n){return hs(e,`${n}${QB(t)}`)}function o9(t,e,n,r=[]){const s=Al(t);return Ib(s,e,n)}function Ib(t,e,n,r=[]){const[s,...l]=t;return kt(s)?Ib(l,e,n,[...r,Lb(s,[],"")]):hs(e,`${n}(${XB(r)})`)}function Lb(t,e,n){return uo(t)?o9(t.enum,e,n):co(t)?WB(e,n):Ie(t)?ZB(t.const,e,n):oa(t)?JB(e,n):gi(t)?e9(e,n):br(t)?t9(e,n):Hn(t)?n9(e,n):Yr(t)?r9(t.pattern,e,n):Pt(t)?Ib(t.anyOf,e,n):dD}function hs(t,e){const[n,...r]=t;return kt(n)?Lb(n,r,e):e}function i9(t){return`^${hs(t,"")}$`}function s9(t){const e=i9(t);return fC(e)}function a9(t,e,n,r){const s=Ao(t,e,n);return Qt(s9(s),{},r)}function l9(t,e,n,r){return me(t,n)?a9(t,e,n,r):J0(n,r)}function u9(t){return mm(t)?qe(t.items)?VA(t.items.items):dr(t.items)?[t]:On(t.items)?[t]:[Ze()]:[t]}function VA(t){return t.reduce((n,r)=>[...n,...u9(r)],[])}function c9(t,e){return e in t}function f9(t,e){return xe(e)?me(t,e.allOf):Pt(e)?me(t,e.anyOf):On(e)?c9(t,e.$ref):!0}function me(t,e){const[n,...r]=e;return kt(n)?f9(t,n)?me(t,r):!1:!0}function Ju(t,e,n){return aD(t)?Ju(t.type,"remove",n):rD(t)?Ju(t.type,e,"remove"):iD(t)?Ju(t.type,"add",n):eD(t)?Ju(t.type,e,"add"):[t,e,n]}function d9(t,e){return M(t,"remove")?q2(e):M(t,"add")?Pr(e):e}function m9(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 VA(r)}function Ao(t,e,n){return n.map(r=>Et(t,e,r))}function h9(t,e,n,r,s){return M(n,"Awaited")?iz(t,e,r[0],s):M(n,"Capitalize")?vz(t,e,r[0],s):M(n,"Conditional")?Mz(t,e,r[0],r[1],r[2],r[3],s):M(n,"ConstructorParameters")?_z(t,e,r[0],s):M(n,"Evaluate")?iL(t,e,r[0],s):M(n,"Exclude")?jA(t,e,r[0],r[1],s):M(n,"Extract")?Uz(t,e,r[0],r[1],s):M(n,"Index")?d8(t,e,r[0],r[1],s):M(n,"InstanceType")?g8(t,e,r[0],s):M(n,"Interface")?b8(t,e,r[0],r[1],s):M(n,"KeyOf")?M8(t,e,r[0],s):M(n,"Lowercase")?Ez(t,e,r[0],s):M(n,"Mapped")?z8(t,e,r[0],r[1],r[2],r[3],s):M(n,"Module")?P8(t,e,r[0],s):M(n,"NonNullable")?G8(t,e,r[0],s):M(n,"Pick")?fB(t,e,r[0],r[1],s):M(n,"Options")?Z8(t,e,r[0],r[1]):M(n,"Parameters")?eB(t,e,r[0],s):M(n,"Partial")?aB(t,e,r[0],s):M(n,"Omit")?X8(t,e,r[0],r[1],s):M(n,"ReadonlyType")?SB(t,e,r[0],s):M(n,"Record")?LB(t,e,r[0],r[1],s):M(n,"Required")?qB(t,e,r[0],s):M(n,"ReturnType")?KB(t,e,r[0],s):M(n,"TemplateLiteral")?l9(t,e,r[0],s):M(n,"Uncapitalize")?wz(t,e,r[0],s):M(n,"Uppercase")?Cz(t,e,r[0],s):he(n,r,s)}function Et(t,e,n){const r=Ld(n),s=Ju(n,zd(n)?"add":"none",qn(n)?"add":"none"),l=wl(s[0])?s[0].Clone():s[0],c=On(l)?zB(t,e,l,l.$ref):nn(l)?ra(Et(t,e,l.items),Y2(l)):cs(l)?pc(Et(t,e,l.iteratorItems),uD(l)):fb(l)?OA(t,e,l.target,l.arguments):jo(l)?am(Ao(t,e,l.parameters),Et(t,e,l.instanceType),cD(l)):lD(l)?h9(t,e,l.action,l.parameters,l.options):Io(l)?lm(Ao(t,e,l.parameters),Et(t,e,l.returnType),fD(l)):xe(l)?Xs(Ao(t,e,l.allOf),ED(l)):fs(l)?bc(Et(t,e,l.iteratorItems),QD(l)):$e(l)?ue(zb(t,e,l.properties),rj(l)):yi(l)?Ec(Et(t,e,l.item),ij(l)):vr(l)?hj(ds(l),Et(t,e,Lo(l))):mm(l)?dm(Et(t,e,l.items)):qe(l)?fo(Bb(t,e,l.items),gj(l)):Pt(l)?Se(Ao(t,e,l.anyOf),sj(l)):l,f=r?sm(c):c;return d9(s[1],m9(s[2],f))}function ee(t,e){return Et(t,{callstack:[]},e)}function Ub(t,e={}){return he("Awaited",[t],e)}function p9(t,e={}){return ee({},Ub(t,e))}function KA(t,e={}){return he("Evaluate",[t],e)}function Mc(t,e={}){return ee({},KA(t,e))}function XA(t,e={}){return he("Module",[t],e)}function g9(t,e={}){return ee({},XA(t,e))}function y9(...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=SI(n),l=xt(s)&&M(s.length,2)?Et(e,{callstack:[]},s[0]):Ze();return Qt(l,{},r)}const b9=Object.freeze(Object.defineProperty({__proto__:null,Any:ll,Array:ra,AsyncIterator:pc,Awaited:p9,Base:V2,BigInt:_0,Boolean:D0,Call:rz,Capitalize:cz,Codec:N0,Conditional:Az,Constructor:am,ConstructorParameters:Rz,Cyclic:yc,Decode:qD,DecodeBuilder:tC,Encode:GD,EncodeBuilder:W2,Enum:SD,Evaluate:Mc,Exclude:Dz,Extends:ci,ExtendsResult:TI,Extract:Lz,Function:lm,Generic:gc,Identifier:Bd,Immutable:sm,Index:UA,Infer:$y,InstanceType:m8,Instantiate:ee,Integer:dl,Interface:AA,Intersect:Xs,IsAny:pi,IsArray:nn,IsAsyncIterator:cs,IsBase:wl,IsBigInt:oa,IsBoolean:gi,IsCall:fb,IsCodec:mr,IsConstructor:jo,IsCyclic:Nn,IsEnum:uo,IsFunction:Io,IsGeneric:R0,IsIdentifier:XD,IsImmutable:Ld,IsInfer:dr,IsInteger:co,IsIntersect:xe,IsIterator:fs,IsKind:Ht,IsLiteral:Ie,IsNever:um,IsNull:Tl,IsNumber:br,IsObject:$e,IsOptional:qn,IsParameter:oj,IsPromise:yi,IsReadonly:zd,IsRecord:vr,IsRef:On,IsRefine:eC,IsRest:mm,IsSchema:kt,IsString:Hn,IsSymbol:vc,IsTemplateLiteral:Yr,IsThis:pj,IsTuple:qe,IsUndefined:Cl,IsUnion:Pt,IsUnknown:os,IsUnsafe:bC,IsVoid:ms,Iterator:bc,KeyOf:PA,Literal:be,Lowercase:fz,Mapped:HA,Module:g9,Never:Ze,NonNullable:H8,Null:Ys,Number:li,Object:ue,Omit:qA,Optional:M0,Options:Mb,Parameter:Sc,Parameters:J8,Partial:GA,Pick:YA,Promise:Ec,Readonly:G2,ReadonlyType:dB,Record:B0,RecordKey:U0,RecordKeyAsPattern:ds,RecordValue:Lo,Ref:cr,Refine:VD,Required:HB,Rest:dm,ReturnType:GB,Script:y9,String:Hr,Symbol:L0,TemplateLiteral:wI,This:yC,Tuple:fo,Uncapitalize:dz,Undefined:hm,Union:Se,Unknown:fr,Unsafe:Sd,Uppercase:mz,Void:k0},Symbol.toStringTag,{value:"Module"})),v9=[0,31,28,31,30,31,30,31,31,30,31,30,31],S9=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function E9(t){return t%4===0&&(t%100!==0||t%400===0)}function kb(t){const e=S9.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&&E9(n)?29:v9[r])}const x9=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function Pb(t,e=!0){const n=x9.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 QA(t,e=!0){const n=t.split(/T/i);return n.length===2&&kb(n[0])&&Pb(n[1],e)}const w9=/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/;function ZA(t){return w9.test(t)}const T9=/^(?!.*\.\.)[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 JA(t){return T9.test(t)}const C9=/^(?=.{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 WA(t){return C9.test(t)}const A9=/^(?!.*\.\.)[\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 t$(t){return A9.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 e$(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 $9=/^(?:(?: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 n$(t){return $9.test(t)}const M9=/^((([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 r$(t){return M9.test(t)}function qw(t){try{return new URL(t,"http://example.com"),!0}catch{return!1}}function o$(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))?qw(t):t.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&e===-1?!1:qw(t)}function i$(t){try{return new URL(t),!0}catch{return!1}}const R9=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function s$(t){return R9.test(t)}const O9=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function a$(t){return O9.test(t)}function l$(t){if(t.length===0)return!1;try{return new RegExp(t),!0}catch{return!1}}const N9=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function u$(t){return N9.test(t)}const _9=/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i;function c$(t){return _9.test(t)}const D9=/^(?:(?:[^\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 f$(t){return D9.test(t)}const j9=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i;function d$(t){return j9.test(t)}const I9=/^(?: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 m$(t){return I9.test(t)}const L9=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function h$(t){return L9.test(t)}const ge=new Map;function p$(){ge.clear()}function z9(){return[...ge.entries()]}function B9(t,e){ge.set(t,e)}function U9(t){return ge.has(t)}function k9(t){return ge.get(t)}function g$(t,e){return ge.get(t)?.(e)??!0}function y$(){p$(),ge.set("date-time",QA),ge.set("date",kb),ge.set("duration",ZA),ge.set("email",JA),ge.set("hostname",WA),ge.set("idn-email",t$),ge.set("idn-hostname",e$),ge.set("ipv4",n$),ge.set("ipv6",r$),ge.set("iri-reference",o$),ge.set("iri",i$),ge.set("json-pointer-uri-fragment",s$),ge.set("json-pointer",a$),ge.set("regex",l$),ge.set("relative-json-pointer",u$),ge.set("time",Pb),ge.set("uri-reference",c$),ge.set("uri-template",f$),ge.set("uri",d$),ge.set("url",m$),ge.set("uuid",h$)}y$();const By=Object.freeze(Object.defineProperty({__proto__:null,Clear:p$,Entries:z9,Get:k9,Has:U9,IsDate:kb,IsDateTime:QA,IsDuration:ZA,IsEmail:JA,IsHostname:WA,IsIPv4:n$,IsIPv6:r$,IsIdnEmail:t$,IsIdnHostname:e$,IsIri:i$,IsIriReference:o$,IsJsonPointer:a$,IsJsonPointerUriFragment:s$,IsRegex:l$,IsRelativeJsonPointer:u$,IsTime:Pb,IsUri:d$,IsUriReference:c$,IsUriTemplate:f$,IsUrl:m$,IsUuid:h$,Reset:y$,Set:B9,Test:g$},Symbol.toStringTag,{value:"Module"}));function P9(t){return Mt(t)&&at(t,"check")&&at(t,"errors")&&ai(t.check)&&ai(t.errors)}function Hb(t){return at(t,"~guard")&&P9(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 Rl(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 Ol(t){return at(t,"contains")&&_e(t.contains)}function Nl(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 Gw(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 ic(t){return at(t,"$id")&&jt(t.$id)}function Xb(t){return at(t,"if")&&_e(t.if)}function _l(t){return at(t,"items")&&(_e(t.items)||xt(t.items)&&t.items.every(e=>_e(e)))}function Qb(t){return _l(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 Dl(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 jl(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 Il(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 H9(t){return at(t,"$recursiveAnchor")&&Fe(t.$recursiveAnchor)}function Kg(t){return H9(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 F9(t){return Ic(t)||Lc(t)||yt(t).some(e=>Fd(t[e]))}function q9(t){return t.some(e=>Fd(e))}function Fd(t){return xt(t)?q9(t):Mt(t)?F9(t):!1}function G9(t,e){return Fd(e)||yt(t).some(n=>Fd(t[n]))}class Y9{constructor(e){this.hasUnevaluated=e}UseUnevaluated(){return this.hasUnevaluated}AddIndex(e){return re(Dt("context","AddIndex"),[e])}AddKey(e){return re(Dt("context","AddKey"),[e])}Merge(e){return re(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 b$ extends Si{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}}class Ei extends b${constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}}const v$="external_";let ky=0;const ul={identifier:`${v$}${ky}`,variables:[]};function V9(){ul.identifier=`${v$}${ky}`,ul.variables=[],ky+=1}function ua(t){const e=`${ul.identifier}[${ul.variables.length}]`;return ul.variables.push(t),e}function K9(){return ul}function X9(t,e,n,r){return re(Dt(Dt(ua(n),"~guard"),"check"),[r])}function Q9(t,e,n,r){return n["~guard"].check(r)}function Z9(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 J9(t,e,n,r){const s=ua(n["~refine"].map(l=>l));return ea(s,St(0),["refinement","_"],re(Dt("refinement","refine"),[r]))}function W9(t,e,n,r){return gn(n["~refine"],0,(s,l)=>s.refine(r))}function tU(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 eU=0;function bn(){return`var_${eU++}`}function nv(t){return _l(t)&&xt(t.items)}function nU(t,e,n,r){if(!nv(n))return St(!0);const[s,l]=[bn(),bn()],c=Oe(t,e,n.additionalItems,s),f=z2(l,St(n.items.length)),m=e.AddIndex(l),p=e.UseUnevaluated()?ve(f,yr(c,m)):ve(f,c);return re(Dt(r,"every"),[ur([s,l],p)])}function rU(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 oU(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 iU(t){return`^${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`}function rv(t){const e=[];return jl(t)&&e.push(...yt(t.patternProperties)),Il(t)&&e.push(...yt(t.properties).map(iU)),M(e.length,0)?"(?!)":`(${e.join("|")})`}function sU(t,e,n){return ps(e)&&Il(e)&&!jl(e)&&M(e.additionalProperties,!1)&&M(yt(e.properties).length,e.required.length)}function aU(t,e,n){return lr(Dt(re(Dt("Object","getOwnPropertyNames"),[n]),"length"),St(e.required.length))}function lU(t,e,n,r){const[s,l]=[bn(),bn()],c=ua(new RegExp(rv(n))),f=Oe(t,e,n.additionalProperties,`${r}[${s}]`),m=re(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 uU(t,e,n,r){return sU(e,n)?aU(e,n,r):lU(t,e,n,r)}function cU(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 fU(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}`,re(ur(["context"],Oe(t,e,g,r)),[`context_${b}`]))),m=n.map((g,b)=>k2(`condition_${b}`,re(Dt("results","push"),[`context_${b}`]))),p=im(yr(s,e.Merge("results")));return re(ur([],om([l,...c,...f,...m,p])),[])}function dU(t,e,n,r){return km(t,e,n.allOf,r,lr(Dt("results","length"),St(n.allOf.length)))}function mU(t,e,n,r){return En(n.allOf.map(s=>Oe(t,e,s,r)))}function hU(t,e,n,r){return e.UseUnevaluated()?dU(t,e,n,r):mU(t,e,n,r)}function pU(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 gU(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 yU(t,e,n,r){return km(t,e,n.anyOf,r,L2(Dt("results","length"),St(0)))}function bU(t,e,n,r){return T0(n.anyOf.map(s=>Oe(t,e,s,r)))}function vU(t,e,n,r){return e.UseUnevaluated()?yU(t,e,n,r):bU(t,e,n,r)}function SU(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 Sl(s.length,0)&&e.Merge(s)}function EU(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=Sl(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 xU(t,e,n,r){return St(!!n)}function S$(t,e,n,r){return n}function wU(t,e,n,r,s,l){return S$(t,e,s)||e.AddError({keyword:"boolean",schemaPath:n,instancePath:r,params:{}})}function TU(t,e,n,r){return dc(n.const)?lr(r,St(n.const)):U2(r,ua(n.const))}function E$(t,e,n,r){return dc(n.const)?M(r,n.const):mc(r,n.const)}function CU(t,e,n,r,s,l){return E$(t,e,s,l)||e.AddError({keyword:"const",schemaPath:n,instancePath:r,params:{allowedValue:s.const}})}function x$(t){return!(Dl(t)&&M(t.minContains,0))}function AU(t,e,n,r){if(!x$(n))return St(!0);const s=bn(),l=An(lr(Dt(r,"length"),St(0))),c=re(Dt(r,"some"),[ur([s],Oe(t,e,n.contains,s))]);return yr(l,c)}function w$(t,e,n,r){return x$(n)?!M(r.length,0)&&r.some(s=>Ee(t,e,n.contains,s)):!0}function $U(t,e,n,r,s,l){return w$(t,e,s,l)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:1}})}function MU(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 RU(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 OU(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 NU(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 _U(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 DU(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 jU(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 IU(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 LU(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 zU(t,e,n,r){return T0(n.enum.map(s=>{if(dc(s))return lr(r,St(s));const l=ua(s);return U2(r,l)}))}function T$(t,e,n,r){return n.enum.some(s=>dc(s)?M(r,s):mc(r,s))}function BU(t,e,n,r,s,l){return T$(t,e,s,l)||e.AddError({keyword:"enum",schemaPath:n,instancePath:r,params:{allowedValues:s.enum}})}function UU(t,e,n,r){return z2(r,St(n.exclusiveMaximum))}function C$(t,e,n,r){return em(r,n.exclusiveMaximum)}function kU(t,e,n,r,s,l){return C$(t,e,s,l)||e.AddError({keyword:"exclusiveMaximum",schemaPath:n,instancePath:r,params:{comparison:"<",limit:s.exclusiveMaximum}})}function PU(t,e,n,r){return L2(r,St(n.exclusiveMinimum))}function A$(t,e,n,r){return Sl(r,n.exclusiveMinimum)}function HU(t,e,n,r,s,l){return A$(t,e,s,l)||e.AddError({keyword:"exclusiveMinimum",schemaPath:n,instancePath:r,params:{comparison:">",limit:s.exclusiveMinimum}})}function FU(t,e,n,r){return re(Dt("Format","Test"),[St(n.format),r])}function $$(t,e,n,r){return g$(n.format,r)}function qU(t,e,n,r,s,l){return $$(t,e,s,l)||e.AddError({keyword:"format",schemaPath:n,instancePath:r,params:{format:s.format}})}function GU(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 YU(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 VU(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 KU(t,e,n,r){return En(n.items.map((s,l)=>{const c=xl(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 XU(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 QU(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 ZU(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 JU(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 WU(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 tk(t,e,n,r){return Qb(n)?KU(t,e,n,r):ZU(t,e,n,r)}function ek(t,e,n,r){return Qb(n)?XU(t,e,n,r):JU(t,e,n,r)}function nk(t,e,n,r,s,l){return Qb(s)?QU(t,e,n,r,s,l):WU(t,e,n,r,s,l)}function M$(t){return Ol(t)}function rk(t,e,n,r){if(!M$(n))return St(!0);const[s,l]=[bn(),bn()],c=re(Dt(r,"reduce"),[ur([s,l],rm(Oe(t,e,n.contains,l),C0(s),s)),St(0)]);return xl(c,St(n.maxContains))}function R$(t,e,n,r){if(!M$(n))return!0;const s=r.reduce((l,c)=>Ee(t,e,n.contains,c)?++l:l,0);return hi(s,n.maxContains)}function ok(t,e,n,r,s,l){const c=Dl(s)?s.minContains:1;return R$(t,e,s,l)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:c,maxContains:s.maxContains}})}function ik(t,e,n,r){return xl(r,St(n.maximum))}function O$(t,e,n,r){return hi(r,n.maximum)}function sk(t,e,n,r,s,l){return O$(t,e,s,l)||e.AddError({keyword:"maximum",schemaPath:n,instancePath:r,params:{comparison:"<=",limit:s.maximum}})}function ak(t,e,n,r){return xl(Dt(r,"length"),St(n.maxItems))}function N$(t,e,n,r){return hi(r.length,n.maxItems)}function lk(t,e,n,r,s,l){return N$(t,e,s,l)||e.AddError({keyword:"maxItems",schemaPath:n,instancePath:r,params:{limit:s.maxItems}})}function uk(t,e,n,r){return z3(r,St(n.maxLength))}function _$(t,e,n,r){return R2(r,n.maxLength)}function ck(t,e,n,r,s,l){return _$(t,e,s,l)||e.AddError({keyword:"maxLength",schemaPath:n,instancePath:r,params:{limit:s.maxLength}})}function fk(t,e,n,r){return xl(Dt(na(r),"length"),St(n.maxProperties))}function D$(t,e,n,r){return hi(yt(r).length,n.maxProperties)}function dk(t,e,n,r,s,l){return D$(t,e,s,l)||e.AddError({keyword:"maxProperties",schemaPath:n,instancePath:r,params:{limit:s.maxProperties}})}function j$(t){return Ol(t)}function mk(t,e,n,r){if(!j$(n))return St(!0);const[s,l]=[bn(),bn()],c=re(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 I$(t,e,n,r){if(!j$(n))return!0;const s=r.reduce((l,c)=>Ee(t,e,n.contains,c)?++l:l,0);return El(s,n.minContains)}function hk(t,e,n,r,s,l){return I$(t,e,s,l)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:s.minContains}})}function pk(t,e,n,r){return nm(r,St(n.minimum))}function L$(t,e,n,r){return El(r,n.minimum)}function gk(t,e,n,r,s,l){return L$(t,e,s,l)||e.AddError({keyword:"minimum",schemaPath:n,instancePath:r,params:{comparison:">=",limit:s.minimum}})}function yk(t,e,n,r){return nm(Dt(r,"length"),St(n.minItems))}function z$(t,e,n,r){return El(r.length,n.minItems)}function bk(t,e,n,r,s,l){return z$(t,e,s,l)||e.AddError({keyword:"minItems",schemaPath:n,instancePath:r,params:{limit:s.minItems}})}function vk(t,e,n,r){return L3(r,St(n.minLength))}function B$(t,e,n,r){return O2(r,n.minLength)}function Sk(t,e,n,r,s,l){return B$(t,e,s,l)||e.AddError({keyword:"minLength",schemaPath:n,instancePath:r,params:{limit:s.minLength}})}function Ek(t,e,n,r){return nm(Dt(na(r),"length"),St(n.minProperties))}function U$(t,e,n,r){return El(yt(r).length,n.minProperties)}function xk(t,e,n,r,s,l){return U$(t,e,s,l)||e.AddError({keyword:"minProperties",schemaPath:n,instancePath:r,params:{limit:s.minProperties}})}function wk(t,e,n,r){return U3(r,St(n.multipleOf))}function k$(t,e,n,r){return $2(r,n.multipleOf)}function Tk(t,e,n,r,s,l){return k$(t,e,s,l)||e.AddError({keyword:"multipleOf",schemaPath:n,instancePath:r,params:{multipleOf:s.multipleOf}})}function Ck(t,e,n,r){return km(t,e,[n.not],r,An(lr(Dt("results","length"),St(1))))}function Ak(t,e,n,r){return An(Oe(t,e,n.not,r))}function $k(t,e,n,r){return e.UseUnevaluated()?Ck(t,e,n,r):Ak(t,e,n,r)}function P$(t,e,n,r){const s=new Si;return!Ee(t,s,n.not,r)&&e.Merge([s])}function Mk(t,e,n,r,s,l){return P$(t,e,s,l)||e.AddError({keyword:"not",schemaPath:n,instancePath:r,params:{}})}function Rk(t,e,n,r){return km(t,e,n.oneOf,r,lr(Dt("results","length"),St(1)))}function Ok(t,e,n,r){const s=B3(n.oneOf.map(c=>Oe(t,e,c,r))),l=re(Dt(s,"reduce"),[ur(["count","result"],rm(lr("result",St(!0)),C0("count"),"count")),St(0)]);return lr(l,St(1))}function Nk(t,e,n,r){return e.UseUnevaluated()?Rk(t,e,n,r):Ok(t,e,n,r)}function _k(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 Dk(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 jk(t,e,n,r){const s=ua(jt(n.pattern)?new RegExp(n.pattern):n.pattern);return re(Dt(s,"test"),[r])}function H$(t,e,n,r){return(jt(n.pattern)?new RegExp(n.pattern):n.pattern).test(r)}function Ik(t,e,n,r,s,l){return H$(t,e,s,l)||e.AddError({keyword:"pattern",schemaPath:n,instancePath:r,params:{pattern:s.pattern}})}function Lk(t,e,n,r){return En(Qe(n.patternProperties).map(([s,l])=>{const[c,f]=[bn(),bn()],m=ua(new RegExp(s)),p=An(re(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(B2(r),St(0),[`[${c}, ${f}]`,"_"],E)}))}function zk(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 Bk(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 Uk(t,e,n,r){return En(n.prefixItems.map((s,l)=>{const c=xl(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 kk(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 Pk(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 Hk(t,e){return Ay(Dt(t,e))}function F$(t,e){return ye(t[e])}function Fk(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(Hk(r,c),E)});return En(l)}function qk(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:F$(r,c)||m})}function Gk(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():F$(l,m)||E()})}function Yk(t,e,n,r){const[s,l]=[bn(),bn()];return ea(na(r),St(0),[s,l],Oe(t,e,n.propertyNames,s))}function Vk(t,e,n,r){return gn(yt(r),0,(s,l)=>Ee(t,e,n.propertyNames,s))}function Kk(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 Xk(t,e,n,r){const s=t.RecursiveRef(n.$recursiveRef)??!1;return Pm(t,e,s,r)}function Qk(t,e,n,r){const s=t.RecursiveRef(n.$recursiveRef)??!1;return _e(s)&&Ee(t,e,s,r)}function Zk(t,e,n,r,s,l){const c=t.RecursiveRef(s.$recursiveRef)??!1;return _e(c)&&Pe(t,e,"#",r,c,l)}function Jk(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",re(s,["nextContext","value"])),k2("result",e.Merge("[nextContext]")),im("result")]));return re(l,["context",r])}function Wk(t,e,n,r){return Pm(t,e,n,r)}function tP(t,e,n,r){const s=t.Ref(n.$ref)??!1;return e.UseUnevaluated()?Jk(t,e,s,r):Wk(t,e,s,r)}function eP(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 nP(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 rP(t,e,n,r){return En(n.required.map(s=>Ks(r,St(s))))}function oP(t,e,n,r){return gn(n.required,0,s=>at(r,s))}function iP(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 q$(t,e,n,r){return M(n,"object")?D2(r):M(n,"array")?Id(r):M(n,"boolean")?R3(r):M(n,"integer")?O3(r):M(n,"number")?_2(r):M(n,"null")?_3(r):M(n,"string")?I2(r):M(n,"asyncIterator")?M3(r):M(n,"bigint")?N2(r):M(n,"constructor")?I3(r):M(n,"function")?j3(r):M(n,"iterator")?N3(r):M(n,"symbol")?D3(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")?C2(s):M(n,"bigint")?Ne(s):M(n,"constructor")?v0(s):M(n,"function")?ai(s):M(n,"iterator")?A2(s):M(n,"symbol")?S0(s):M(n,"undefined")||M(n,"void")?ye(s):!0}function sP(t,e,n,r){return T0(n.map(s=>q$(t,e,s,r)))}function G$(t,e,n,r,s){return n.some(l=>iv(t,e,l,r,s))}function aP(t,e,n,r){return xt(n.type)?sP(t,e,n.type,r):q$(t,e,n.type,r)}function lP(t,e,n,r){return xt(n.type)?G$(t,e,n.type,n,r):iv(t,e,n.type,n,r)}function uP(t,e,n,r,s,l){return(xt(s.type)?G$(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 cP(t,e,n,r){const[s,l]=[bn(),bn()],c=re(Dt("context","GetIndices"),[]),f=re(Dt("indices","has"),[s]),m=Oe(t,e,n.unevaluatedItems,l),p=re(Dt("context","AddIndex"),[s]),g=ea(r,St(0),[l,s],yr(ve(f,m),p));return re(ur(["context"],om([oi("indices",c),im(g)])),["context"])}function fP(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 dP(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 mP(t,e,n,r){const[s,l]=[bn(),bn()],c=re(Dt("context","GetKeys"),[]),f=re(Dt("keys","has"),[s]),m=re(Dt("context","AddKey"),[s]),p=Oe(t,e,n.unevaluatedProperties,l),g=ea(B2(r),St(0),[`[${s}, ${l}]`,"_"],ve(f,yr(p,m)));return re(ur(["context"],om([oi("keys",c),im(g)])),["context"])}function hP(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 pP(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 gP(t,e,n,r){if(!sv(n))return St(!0);const s=Dt(w0("Set",[re(Dt(r,"map"),[Dt("Hashing","Hash")])]),"size"),l=Dt(r,"length");return lr(s,l)}function yP(t,e,n,r){if(!sv(n))return!0;const s=new Set(r.map(oc)).size,l=r.length;return M(s,l)}function bP(t,e,n,r,s,l){if(!sv(s))return!0;const c=new Set,f=l.reduce((p,g,b)=>{const E=oc(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 sc(t,e){return Um(t)&&(xt(t.type)&&t.type.includes(e)||M(t.type,e))}function vP(t){return sc(t,"object")}function SP(t){return No(t)&&(Rl(t)||Mm(t)||Rm(t)||Om(t)||Il(t)||jl(t)||Bm(t)||_c(t)||Lm(t)||ps(t)||Lc(t))}function EP(t){return sc(t,"array")}function xP(t){return No(t)&&($m(t)||_l(t)||Ol(t)||Dm(t)||jm(t)||Dl(t)||Oc(t)||la(t)||Ic(t)||jc(t))}function wP(t){return sc(t,"string")}function TP(t){return No(t)&&(Nc(t)||Im(t)||Rc(t)||Dc(t))}function CP(t){return sc(t,"number")||sc(t,"bigint")}function AP(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 xU(t,e,n);if(Um(n)&&s.push(aP(t,e,n,r)),SP(n)){const c=[];ps(n)&&c.push(rP(t,e,n,r)),Rl(n)&&c.push(uU(t,e,n,r)),Mm(n)&&c.push(MU(t,e,n,r)),Rm(n)&&c.push(NU(t,e,n,r)),Om(n)&&c.push(jU(t,e,n,r)),jl(n)&&c.push(Lk(t,e,n,r)),Il(n)&&c.push(Fk(t,e,n,r)),Bm(n)&&c.push(Yk(t,e,n,r)),_c(n)&&c.push(Ek(t,e,n,r)),Lm(n)&&c.push(fk(t,e,n,r));const f=En(c),m=ve(An(D2(r)),f);s.push(vP(n)?f:m)}if(xP(n)){const c=[];$m(n)&&c.push(nU(t,e,n,r)),Ol(n)&&c.push(AU(t,e,n,r)),_l(n)&&c.push(tk(t,e,n,r)),Dm(n)&&c.push(rk(t,e,n,r)),jm(n)&&c.push(ak(t,e,n,r)),Dl(n)&&c.push(mk(t,e,n,r)),Oc(n)&&c.push(yk(t,e,n,r)),la(n)&&c.push(Uk(t,e,n,r)),jc(n)&&c.push(gP(t,e,n,r));const f=En(c),m=ve(An(Id(r)),f);s.push(EP(n)?f:m)}if(TP(n)){const c=[];Rc(n)&&c.push(FU(t,e,n,r)),Im(n)&&c.push(uk(t,e,n,r)),Nc(n)&&c.push(vk(t,e,n,r)),Dc(n)&&c.push(jk(t,e,n,r));const f=En(c),m=ve(An(I2(r)),f);s.push(wP(n)?f:m)}if(AP(n)){const c=[];Nm(n)&&c.push(UU(t,e,n,r)),sa(n)&&c.push(PU(t,e,n,r)),_m(n)&&c.push(ik(t,e,n,r)),aa(n)&&c.push(pk(t,e,n,r)),zm(n)&&c.push(wk(t,e,n,r));const f=En(c),m=ve(An(ve(_2(r),N2(r))),f);s.push(CP(n)?f:m)}Wb(n)&&s.push(Xk(t,e,n,r)),tv(n)&&s.push(tP(t,e,n,r)),Hb(n)&&s.push(X9(t,e,n,r)),Yb(n)&&s.push(TU(t,e,n,r)),Kb(n)&&s.push(zU(t,e,n,r)),Xb(n)&&s.push(GU(t,e,n,r)),Zb(n)&&s.push($k(t,e,n,r)),qb(n)&&s.push(hU(t,e,n,r)),Gb(n)&&s.push(vU(t,e,n,r)),Jb(n)&&s.push(Nk(t,e,n,r)),Ic(n)&&s.push(ve(An(Id(r)),cP(t,e,n,r))),Lc(n)&&s.push(ve(An(j2(r)),mP(t,e,n,r))),Fb(n)&&s.push(J9(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)?S$(t,e,n):(!Um(n)||lP(t,e,n,r))&&(!(Mt(r)&&!xt(r))||(!ps(n)||oP(t,e,n,r))&&(!Rl(n)||cU(t,e,n,r))&&(!Mm(n)||RU(t,e,n,r))&&(!Rm(n)||_U(t,e,n,r))&&(!Om(n)||IU(t,e,n,r))&&(!jl(n)||zk(t,e,n,r))&&(!Il(n)||qk(t,e,n,r))&&(!Bm(n)||Vk(t,e,n,r))&&(!_c(n)||U$(t,e,n,r))&&(!Lm(n)||D$(t,e,n,r)))&&(!xt(r)||(!$m(n)||rU(t,e,n,r))&&(!Ol(n)||w$(t,e,n,r))&&(!_l(n)||ek(t,e,n,r))&&(!Dm(n)||R$(t,e,n,r))&&(!jm(n)||N$(t,e,n,r))&&(!Dl(n)||I$(t,e,n,r))&&(!Oc(n)||z$(t,e,n,r))&&(!la(n)||kk(t,e,n,r))&&(!jc(n)||yP(t,e,n,r)))&&(!jt(r)||(!Rc(n)||$$(t,e,n,r))&&(!Im(n)||_$(t,e,n,r))&&(!Nc(n)||B$(t,e,n,r))&&(!Dc(n)||H$(t,e,n,r)))&&(!(Kt(r)||Ne(r))||(!Nm(n)||C$(t,e,n,r))&&(!sa(n)||A$(t,e,n,r))&&(!_m(n)||O$(t,e,n,r))&&(!aa(n)||L$(t,e,n,r))&&(!zm(n)||k$(t,e,n,r)))&&(!Wb(n)||Qk(t,e,n,r))&&(!tv(n)||eP(t,e,n,r))&&(!Hb(n)||Q9(t,e,n,r))&&(!Yb(n)||E$(t,e,n,r))&&(!Kb(n)||T$(t,e,n,r))&&(!Xb(n)||YU(t,e,n,r))&&(!Zb(n)||P$(t,e,n,r))&&(!qb(n)||pU(t,e,n,r))&&(!Gb(n)||SU(t,e,n,r))&&(!Jb(n)||_k(t,e,n,r))&&(!Ic(n)||!xt(r)||fP(t,e,n,r))&&(!Lc(n)||!Mt(r)||hP(t,e,n,r))&&(!Fb(n)||W9(t,e,n,r));return t.Pop(n),s}function Pe(t,e,n,r,s,l){t.Push(s);const c=Am(s)?wU(t,e,n,r,s):!!(+(!Um(s)||uP(t,e,n,r,s,l))&+(!(Mt(l)&&!xt(l))||!!(+(!ps(s)||iP(t,e,n,r,s,l))&+(!Rl(s)||fU(t,e,n,r,s,l))&+(!Mm(s)||OU(t,e,n,r,s,l))&+(!Rm(s)||DU(t,e,n,r,s,l))&+(!Om(s)||LU(t,e,n,r,s,l))&+(!jl(s)||Bk(t,e,n,r,s,l))&+(!Il(s)||Gk(t,e,n,r,s,l))&+(!Bm(s)||Kk(t,e,n,r,s,l))&+(!_c(s)||xk(t,e,n,r,s,l))&+(!Lm(s)||dk(t,e,n,r,s,l))))&+(!xt(l)||!!(+(!$m(s)||oU(t,e,n,r,s,l))&+(!Ol(s)||$U(t,e,n,r,s,l))&+(!_l(s)||nk(t,e,n,r,s,l))&+(!Dm(s)||ok(t,e,n,r,s,l))&+(!jm(s)||lk(t,e,n,r,s,l))&+(!Dl(s)||hk(t,e,n,r,s,l))&+(!Oc(s)||bk(t,e,n,r,s,l))&+(!la(s)||Pk(t,e,n,r,s,l))&+(!jc(s)||bP(t,e,n,r,s,l))))&+(!jt(l)||!!(+(!Rc(s)||qU(t,e,n,r,s,l))&+(!Im(s)||ck(t,e,n,r,s,l))&+(!Nc(s)||Sk(t,e,n,r,s,l))&+(!Dc(s)||Ik(t,e,n,r,s,l))))&+(!(Kt(l)||Ne(l))||!!(+(!Nm(s)||kU(t,e,n,r,s,l))&+(!sa(s)||HU(t,e,n,r,s,l))&+(!_m(s)||sk(t,e,n,r,s,l))&+(!aa(s)||gk(t,e,n,r,s,l))&+(!zm(s)||Tk(t,e,n,r,s,l))))&+(!Wb(s)||Zk(t,e,n,r,s,l))&+(!tv(s)||nP(t,e,n,r,s,l))&+(!Hb(s)||Z9(t,e,n,r,s,l))&+(!Yb(s)||CU(t,e,n,r,s,l))&+(!Kb(s)||BU(t,e,n,r,s,l))&+(!Xb(s)||VU(t,e,n,r,s,l))&+(!Zb(s)||Mk(t,e,n,r,s,l))&+(!qb(s)||gU(t,e,n,r,s,l))&+(!Gb(s)||EU(t,e,n,r,s,l))&+(!Jb(s)||Dk(t,e,n,r,s,l))&+(!Ic(s)||!xt(l)||dP(t,e,n,r,s,l))&+(!Lc(s)||!Mt(l)||pP(t,e,n,r,s,l)))&&(!Fb(s)||tU(t,e,n,r,s,l));return t.Pop(s),c}const rc=new Map;function $P(t,e,n,r){return t.UseUnevaluated()?re(`check_${n}`,["context",r]):re(`check_${n}`,[r])}function MP(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 RP(){rc.clear()}function OP(){return[...rc.values()]}function Pm(t,e,n,r){const s=No(n)?oc({__baseURL:t.BaseURL().href,...n}):oc(n),l=$P(e,n,s,r);return rc.has(s)||(rc.set(s,""),rc.set(s,MP(t,e,n,s))),l}function NP(t,e){return Mt(e)?e[t]:void 0}function _P(t,e){return t.reduce((n,r)=>NP(r,n),e)}function DP(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 jP(t,e){const n=DP(e);return _P(n,t)}function IP(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("#")?Y$(t,e,n):t}function LP(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 Y$(t,e,n){return n.href.endsWith("#")?t:n.hash.startsWith("#")?jP(t,decodeURIComponent(n.hash.slice(1))):void 0}function zP(t,e,n){if(ic(t)){const r=IP(t,e,n);if(!ye(r))return r}if(Uy(t)){const r=LP(t,e,n);if(!ye(r))return r}return Y$(t,e,n)}function BP(t,e,n){return t.reduce((r,s)=>{const l=av(s,e,n);return ye(l)?r:l},void 0)}function UP(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)&&ic(t)?new URL(t.$id,e.href):e,No(t)){const r=zP(t,e,n);if(!ye(r))return r}if(xt(t))return BP(t,e,n);if(Mt(t))return UP(t,e,n)}function cd(t,e){const n=new URL("http://unknown"),r=ic(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)&&(ic(e)&&this.ids.push(e),Uy(e)&&this.anchors.push(e),Kg(e)&&this.recursiveAnchors.push(e),Gw(e)&&this.dynamicAnchors.push(e))}Pop(e){No(e)&&(ic(e)&&this.ids.pop(),Uy(e)&&this.anchors.pop(),Kg(e)&&this.recursiveAnchors.pop(),Gw(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 kP(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 PP(t,e){return new globalThis.Function("CheckContext","Guard","Format","Hashing",t.External().identifier,e)(Si,C3,By,kD,t.External().variables)}function HP(t){const e=new Hm(t.Context(),t.Schema()),n=new Si;return r=>Ee(e,n,t.Schema(),r)}function FP(t,e){return O0()?PP(t,e):HP(t)}class qP{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=kP(this),n=FP(this,e);return{IsEvaluated:O0(),Code:e,Check:n}}}function GP(...t){const[e,n]=rn(t,{2:(m,p)=>[m,p],1:m=>[{},m]});V9(),RP();const r=new Hm(e,n),s=new Y9(G9(e,n)),l=Pm(r,s,n,"value"),c=OP(),f=K9();return new qP(e,n,f,c,l,s.UseUnevaluated())}function YP(...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 VP(...t){const[e,n,r]=rn(t,{3:(g,b,E)=>[g,b,E],2:(g,b)=>[{},g,b]}),s=hc(),l=FD(),c=[],f=new Hm(e,n),m=new b$(g=>{if(!El(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 YP(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]=VP(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 KP(t,e,n){return xt(n)?n.map(r=>io(t,e.items,r)):n}function XP(t,e,n){return e.Clean(n)}function QP(t,e,n){return io({...t,...e.$defs},cr(e.$ref),n)}function ZP(t,e){const n=at(e,"unevaluatedProperties")?{additionalProperties:e.unevaluatedProperties}:{},r=ee(t,e),s=Mc(r);return $e(s)?Mb(s,n):s}function JP(t,e,n){const r=ZP(t,e);return io(t,r,n)}function V$(t){return at(t,"additionalProperties")?t.additionalProperties:void 0}function WP(t,e,n){if(!Mt(n)||xt(n))return n;const r=V$(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)||kt(r)&&Fr(t,r,n[s])){n[s]=io(t,r,n[s]);continue}delete n[s]}return n}function tH(t,e,n){if(!Mt(n))return n;const r=V$(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)||kt(r)&&Fr(t,r,n[c])){n[c]=io(t,r,n[c]);continue}delete n[c]}return n}function eH(t,e,n){return at(t,e.$ref)?io(t,t[e.$ref],n):n}function nH(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 Sl(n.length,r)?n.slice(0,r):n}function rH(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 oH(t){return M2(t)?t:rH(t)}function iH(t){return t.map(e=>Gn(e))}function sH(t){return t.slice()}function aH(t){return new Map(Gn([...t.entries()]))}function lH(t){return new Set(Gn([...t.values()]))}function Gn(t){return P2(t)?sH(t):Y3(t)?aH(t):G3(t)?lH(t):xt(t)?iH(t):Mt(t)?oH(t):t}function uH(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)?KP(t,e,n):wl(e)?XP(t,e,n):Nn(e)?QP(t,e,n):xe(e)?JP(t,e,n):$e(e)?WP(t,e,n):vr(e)?tH(t,e,n):On(e)?eH(t,e,n):qe(e)?nH(t,e,n):Pt(e)?uH(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 cH(t,e,n){return xt(n)?n.map(r=>mo(t,e.items,r)):n}function fH(t,e,n){return e.Convert(n)}function Er(t){return Mt(t)&&at(t,"value")}function $t(t){return{value:t}}function dH(t){return $t(t)}function mH(t){return M(t,!0)?$t(BigInt(1)):$t(BigInt(0))}function hH(t){return $t(BigInt(Math.trunc(t)))}function pH(t){return $t(BigInt(0))}const gH=/^-?(0|[1-9]\d*)n$/,yH=/^-?(0|[1-9]\d*)\.\d+$/,bH=/^-?(0|[1-9]\d*)$/;function vH(t){return gH.test(t)}function SH(t){return yH.test(t)}function EH(t){return bH.test(t)}function xH(t){const e=t.toLowerCase();return vH(t)?$t(BigInt(t.slice(0,t.length-1))):SH(t)?$t(BigInt(t.split(".")[0])):EH(t)?$t(BigInt(t)):M(e,"false")?$t(BigInt(0)):M(e,"true")?$t(BigInt(1)):void 0}function wH(t){return $t(BigInt(0))}function uv(t){return Ne(t)?dH(t):Fe(t)?mH(t):Kt(t)?hH(t):Vn(t)?pH():jt(t)?xH(t):ye(t)?wH():void 0}function TH(t){return M(t,BigInt(0))?$t(!1):M(t,BigInt(1))?$t(!0):void 0}function CH(t){return $t(t)}function AH(t){return M(t,0)?$t(!1):M(t,1)?$t(!0):void 0}function $H(t){return $t(!1)}function MH(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 RH(t){return $t(!1)}function K$(t){return Ne(t)?TH(t):Fe(t)?CH(t):Kt(t)?AH(t):Vn(t)?$H():jt(t)?MH(t):ye(t)?RH():void 0}function OH(t){return M(t,BigInt(0))?$t(null):void 0}function NH(t){return M(t,!1)?$t(null):void 0}function _H(t){return M(t,0)?$t(null):void 0}function DH(t){return $t(null)}function jH(t){const e=t.toLowerCase();return M(e,"undefined")||M(e,"null")||M(t,"")||M(t,"0")?$t(null):void 0}function IH(t){return $t(null)}function LH(t){return Ne(t)?OH(t):Fe(t)?NH(t):Kt(t)?_H(t):Vn(t)?DH():jt(t)?jH(t):ye(t)?IH():void 0}const zH=BigInt(Number.MAX_SAFE_INTEGER),BH=BigInt(Number.MIN_SAFE_INTEGER);function UH(t){return t<=zH&&t>=BH}function X$(t){return UH(t)?$t(Number(t)):void 0}function kH(t){return $t(t?1:0)}function PH(t){return $t(t)}function HH(t){return $t(0)}function FH(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)?X$(r.value):void 0}function qH(t){return $t(0)}function cv(t){return Ne(t)?X$(t):Fe(t)?kH(t):Kt(t)?PH(t):Vn(t)?HH():jt(t)?FH(t):ye(t)?qH():void 0}function GH(t){return $t(t.toString())}function YH(t){return $t(t.toString())}function VH(t){return $t(t.toString())}function KH(t){return $t("null")}function XH(t){return $t(t)}function QH(t){return $t("")}function Q$(t){return Ne(t)?GH(t):Fe(t)?YH(t):Kt(t)?VH(t):Vn(t)?KH():jt(t)?XH(t):ye(t)?QH():void 0}function ZH(t){return M(t,BigInt(0))?$t(void 0):void 0}function JH(t){return M(t,!1)?$t(void 0):void 0}function WH(t){return M(t,0)?$t(void 0):void 0}function t7(t){return $t(void 0)}function e7(t){const e=t.toLowerCase();return M(e,"undefined")||M(e,"null")||M(t,"")||M(t,"0")?$t(void 0):void 0}function n7(t){return $t(void 0)}function Z$(t){return Ne(t)?ZH(t):Fe(t)?JH(t):Kt(t)?WH(t):Vn(t)?t7():jt(t)?e7(t):ye(t)?n7():void 0}function r7(t,e,n){if(Ne(n))return n;const r=uv(n);return Er(r)?r.value:n}function o7(t,e,n){if(Fe(n))return n;const r=K$(n);return Er(r)?r.value:n}function i7(t,e,n){return mo({...t,...e.$defs},cr(e.$ref),n)}function J$(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 s7(t,e,n){const r=nb(e);return J$(t,r,n)}function a7(t,e,n){if(tm(n))return n;const r=cv(n);return Er(r)?Math.trunc(r.value):n}function l7(t,e,n){const r=ee(t,e),s=Mc(r);return mo(t,s,n)}function u7(t,e,n){const r=uv(n);return Er(r)&&M(e.const,r.value)?r.value:n}function c7(t,e,n){const r=K$(n);return Er(r)&&M(e.const,r.value)?r.value:n}function f7(t,e,n){const r=cv(n);return Er(r)&&M(e.const,r.value)?r.value:n}function d7(t,e,n){const r=Q$(n);return Er(r)&&M(e.const,r.value)?r.value:n}function m7(t,e,n){return M(e.const,n)?n:WD(e)?u7(t,e,n):tj(e)?c7(t,e,n):j0(e)?f7(t,e,n):I0(e)?d7(t,e,n):He()}function h7(t,e,n){if(Vn(n))return n;const r=LH(n);return Er(r)?r.value:n}function p7(t,e,n){if(Kt(n))return n;const r=cv(n);return Er(r)?r.value:n}function W$(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 g7(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)?W$(t,r,e.additionalProperties,n):n}function y7(t,e,n){return mi(n)?g7(t,e,n):n}function b7(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)?W$(t,r,e.additionalProperties,n):n}function v7(t,e,n){return mi(n)?b7(t,e,n):n}function S7(t,e,n){return at(t,e.$ref)?mo(t,t[e.$ref],n):n}function E7(t,e,n){if(jt(n))return n;const r=Q$(n);return Er(r)?r.value:n}function x7(t,e,n){const r=bi(e.pattern);return mo(t,r,n)}function w7(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 T7(t,e,n){if(ye(n))return n;const r=Z$(n);return Er(r)?r.value:n}function C7(t,e,n){if(ye(n))return n;const r=Z$(n);return Er(r)?void 0:n}function mo(t,e,n){return nn(e)?cH(t,e,n):wl(e)?fH(t,e,n):oa(e)?r7(t,e,n):gi(e)?o7(t,e,n):Nn(e)?i7(t,e,n):uo(e)?s7(t,e,n):co(e)?a7(t,e,n):xe(e)?l7(t,e,n):Ie(e)?m7(t,e,n):Tl(e)?h7(t,e,n):br(e)?p7(t,e,n):$e(e)?y7(t,e,n):vr(e)?v7(t,e,n):On(e)?S7(t,e,n):Hn(e)?E7(t,e,n):Yr(e)?x7(t,e,n):qe(e)?w7(t,e,n):Cl(e)?T7(t,e,n):Pt(e)?J$(t,e,n):ms(e)?C7(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 A7(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 $7(t,e,n){return e.Default(n)}function M7(t,e,n){return Br({...t,...e.$defs},cr(e.$ref),n)}function R7(t,e){return ye(e)?ai(t.default)?t.default():Gn(t.default):e}function O7(t,e,n){const r=ee(t,e),s=Mc(r);return Br(t,s,n)}function N7(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(!Rl(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 _7(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)&&Nl(s)&&(n[l]=Br(t,s,n[l]));if(!Rl(e))return n;for(const l of yt(n))r.test(l)||(n[l]=Br(t,e.additionalProperties,n[l]));return n}function D7(t,e,n){return at(t,e.$ref)?Br(t,t[e.$ref],n):n}function j7(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 I7(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=Nl(e)?R7(e,n):n;return nn(e)?A7(t,e,r):wl(e)?$7(t,e,r):Nn(e)?M7(t,e,r):xe(e)?O7(t,e,r):$e(e)?N7(t,e,r):vr(e)?_7(t,e,r):On(e)?D7(t,e,r):qe(e)?j7(t,e,r):Pt(e)?I7(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 L7(t,e,n){return e["~codec"].decode(n)}function z7(t,e,n){return e["~codec"].encode(n)}function _n(t,e,n,r){return mr(n)?M(t,"Decode")?L7(e,n,r):z7(e,n,r):r}function B7(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 U7(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 k7(t,e,n,r){return M(t,"Decode")?B7(t,e,n,r):U7(t,e,n,r)}function P7(t,e,n,r){return r=wn(t,{...e,...n.$defs},cr(n.$ref),r),_n(t,e,n,r)}function H7(t,e,n,r){for(const s of n.allOf)r=wn(t,e,s,r);return _n(t,e,n,r)}function F7(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 q7(t,e,n,r){return M(t,"Decode")?H7(t,e,n,r):F7(t,e,n,r)}function G7(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 Y7(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 V7(t,e,n,r){return M(t,"Decode")?G7(t,e,n,r):Y7(t,e,n,r)}function K7(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 X7(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 Q7(t,e,n,r){return M(t,"Decode")?K7(t,e,n,r):X7(t,e,n,r)}function Z7(t,e,n,r){return r=at(e,n.$ref)?wn(t,e,e[n.$ref],r):r,_n(t,e,n,r)}function J7(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 W7(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 tF(t,e,n,r){return M(t,"Decode")?J7(t,e,n,r):W7(t,e,n,r)}function eF(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 nF(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 rF(t,e,n,r){return M(t,"Decode")?eF(t,e,n,r):nF(t,e,n,r)}function wn(t,e,n,r){return nn(n)?k7(t,e,n,r):Nn(n)?P7(t,e,n,r):xe(n)?q7(t,e,n,r):$e(n)?V7(t,e,n,r):vr(n)?Q7(t,e,n,r):On(n)?Z7(t,e,n,r):qe(n)?tF(t,e,n,r):Pt(n)?rF(t,e,n,r):_n(t,e,n,r)}class oF extends lv{constructor(e,n){super("Decode",e,n)}}function iF(t,e,n){if(!Fr(t,e,n))throw new oF(n,Fm(t,e,n));return n}function sF(t,e,n){return wn("Decode",t,e,n)}const aF=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)=>iF(t,e,n),(t,e,n)=>sF(t,e,n)]);function lF(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return aF(e,n,r)}class uF extends lv{constructor(e,n){super("Encode",e,n)}}function cF(t,e,n){if(!Fr(t,e,n))throw new uF(n,Fm(t,e,n));return n}function fF(t,e,n){return wn("Encode",t,e,n)}const dF=dv([(t,e,n)=>Gn(n),(t,e,n)=>fF(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)=>cF(t,e,n)]);function mF(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return dF(e,n,r)}function hF(t,e){return mr(e)||gs(t,e.items)}function pF(t,e){return mr(e)||tM({...t,...e.$defs},cr(e.$ref))}function gF(t,e){return mr(e)||e.allOf.some(n=>gs(t,n))}function yF(t,e){return mr(e)||yt(e.properties).some(n=>gs(t,e.properties[n]))}function bF(t,e){return mr(e)||gs(t,Lo(e))}function tM(t,e){return Py.has(e.$ref)?!1:(Py.add(e.$ref),mr(e)||at(t,e.$ref)&&gs(t,t[e.$ref]))}function vF(t,e){return mr(e)||e.items.some(n=>gs(t,n))}function SF(t,e){return mr(e)||e.anyOf.some(n=>gs(t,n))}function gs(t,e){return nn(e)?hF(t,e):Nn(e)?pF(t,e):xe(e)?gF(t,e):$e(e)?yF(t,e):vr(e)?bF(t,e):On(e)?tM(t,e):qe(e)?vF(t,e):Pt(e)?SF(t,e):mr(e)}const Py=new Set;function EF(...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 xF(t,e){return ai(e.default)?e.default(e):Mt(e.default)?Gn(e.default):e.default}function wF(t,e){if(jc(e)&&!Nl(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*TF(){}function CF(t,e){return TF()}function AF(t,e){return e.Create()}function $F(t,e){return sa(e)?BigInt(e.exclusiveMinimum)+BigInt(1):aa(e)?BigInt(e.minimum):BigInt(0)}function MF(t,e){return!1}function RF(t,e){const n=xr(t,e.instanceType);return class{constructor(){Object.assign(this,n)}}}function OF(t,e){return xr({...t,...e.$defs},cr(e.$ref))}function NF(t,e){return xr(t,nb(e))}function _F(t,e){const n=xr(t,e.returnType);return()=>n}function DF(t,e){return sa(e)&&Kt(e.exclusiveMinimum)?e.exclusiveMinimum+1:aa(e)?e.minimum:0}function jF(t,e){const n=ee(t,e),r=Mc(n);return xr(t,r)}function*IF(){}function LF(t,e){return IF()}function zF(t,e){return e.const}function BF(t,e){throw new zc(e,"Cannot create TNever types")}function UF(t,e){return null}function kF(t,e){return sa(e)&&Kt(e.exclusiveMinimum)?e.exclusiveMinimum+1:aa(e)?e.minimum:0}function PF(t,e){return(ye(e.required)?[]:e.required).reduce((r,s)=>({...r,[s]:xr(t,e.properties[s])}),{})}function HF(t,e){return Promise.resolve(xr(t,e.item))}function FF(t,e){if(_c(e)&&!Nl(e))throw new zc(e,"Record with the minProperties constraint must have a default annotation");return{}}function qF(t,e){return at(t,e.$ref)?xr(t,t[e.$ref]):(()=>{throw new zc(e,"Unable to deref Ref")})()}function GF(t,e){if((Dc(e)||Rc(e))&&!Nl(e))throw Error("Strings with format or pattern constraints must specify default");const r=Nc(e)?e.minLength:0;return"".padEnd(r)}function YF(t,e){return Symbol()}function VF(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 KF(t,e){return Array.from({length:e.minItems},(n,r)=>xr(t,e.items[r]))}function XF(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 Nl(e)?xF(t,e):nn(e)?wF(t,e):cs(e)?CF():wl(e)?AF(t,e):oa(e)?$F(t,e):gi(e)?MF():jo(e)?RF(t,e):Nn(e)?OF(t,e):uo(e)?NF(t,e):Io(e)?_F(t,e):co(e)?DF(t,e):xe(e)?jF(t,e):fs(e)?LF():Ie(e)?zF(t,e):um(e)?BF(t,e):Tl(e)?UF():br(e)?kF(t,e):$e(e)?PF(t,e):yi(e)?HF(t,e):vr(e)?FF(t,e):On(e)?qF(t,e):Hn(e)?GF(t,e):vc(e)?YF():Yr(e)?VF(t,e):qe(e)?KF(t,e):Cl(e)?void 0:Pt(e)?XF(t,e):ms(e)?void 0:void 0}function QF(...t){const[e,n]=rn(t,{2:(r,s)=>[r,s],1:r=>[{},r]});return xr(e,n)}class ZF extends lv{constructor(e,n){super("Parse",e,n)}}function JF(t,e,n){if(!Fr(t,e,n))throw new ZF(n,Fm(t,e,n));return n}const eM=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)=>JF(t,e,n)]);function WF(...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:eM(e,n,r)}const tq=ue({type:be("insert"),path:Hr(),value:fr()}),eq=Object({type:be("update"),path:Hr(),value:fr()}),nq=ue({type:be("delete"),path:Hr()});Se([tq,eq,nq]);const rq=t=>t&&typeof t=="object"&&"format"in t&&t.format==="binary",oq=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 iq{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=Tl;isUndefined=Cl;isUnsafe=bC;isRecord=vr;isTuple=qe;isVoid=ms;isLiteral=Ie;isSchema=kt;isFile=rq;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=b9;any=ll;void=k0;undefined=hm;record=B0;union=Se;tuple=fo;null=Ys;const=be;options=Mb;schema=new iq;extend(e,n,r){return AA(Array.isArray(e)?e:[e],n,{additionalProperties:!1,...r})}pick(e,n,r){return YA(e,n,{additionalProperties:!1,...r})}omit(e,n,r){return qA(e,n,{additionalProperties:!1,...r})}partial(e,n){return GA(e,{additionalProperties:!1,...n})}object(e,n){return ue(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)=>HA(Bd("K"),PA(e),cr("K"),Se([UA(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({[nc]: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,sq=new Set(["__proto__","constructor","prototype"]);class aq extends E2{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 Ut(`Schema depth exceeds maximum allowed (${this.maxDepth})`);if(R.schema.isObject(e)){const l=e.properties;for(const c of Object.keys(l)){if(sq.has(c))throw new Ut(`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 Ut(`Array length (${e.length}) exceeds maximum allowed (${this.maxArrayLength})`)}validateStringLength(e){if(e.length>this.maxStringLength)throw new Ut(`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 V2{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=GP(r,s).Evaluate();this.hasCodec=EF(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 QF(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:eM(this.context,this.type,e)}Decode(e){return this.hasCodec?lF(this.context,this.type,e):this.Parse(e)}Encode(e){return this.hasCodec?mF(this.context,this.type,e):this.Parse(e)}}function Yw(...t){const[e,n]=rn(t,{2:(r,s)=>[r,s],1:r=>[{},r]});return new mv(e,n)}class Vm extends Ut{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 lq{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):WF(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=Yw(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 Yw(R.object({test:R.string()})).Parse({test:"value"}),!0}catch{return!1}}}class uq{codecs=new Map;jsonCodec=Rt(x2);keylessCodec=Rt(aq);schemaValidator=Rt(lq);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 Ut(`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 nM{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 Ut(`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 Ll=t=>new sl(t);class sl{options;get schema(){return this.options.schema}get key(){return this.options.name}constructor(e){this.options=e}}Ll[Rn]="atom";class cq{als=Rt(Wd);events=Rt(nM);codec=Rt(x2);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 Vw={};class Re{static create(e={}){typeof process=="object"&&typeof Vw=="object"&&(e.env={...e.env,...Vw}),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(cq,{args:[e]}),this.events=this.inject(nM),this.events.logFn=()=>this.log,this.context=this.inject(Wd),this.codec=this.inject(uq)}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();try{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)}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}catch(e){this.starting.reject(e);const n=this.starting.promise;return this.starting=void 0,n}return 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 Ew;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 c3(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 Ut(`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 u3(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 Ew(`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=d3(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[nc]=="object"&&"getter"in c[nc]){const f=c[nc].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 fq(t);case"number":return dq(t);case"integer":return mq(t);case"boolean":return hq(t);case"null":return R.null();case"object":return Kw(t);case"array":return pq(t);default:return t.properties?Kw(t):R.any()}}function as(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>n!==void 0))}function fq(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 dq(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 mq(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 hq(t){return R.boolean(as({title:t.title,description:t.description,default:t.default}))}function Kw(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 pq(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}=vl();if(!R.schema.isObject(t))throw new Ut("Type must be an TObject");return e.parseEnv(t)},gq=t=>{const{alepha:e}=vl();e.store.register(t);const n=e.store.get(t.key);return{[nc]:{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 yq=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'"})}))}))}),bq=(t,e)=>R.object({content:R.array(t),page:yq},e);ml.prototype.page=t=>bq(t);const vq=(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},Sq="modulepreload",Eq=function(t){return"/devtools/"+t},Xw={},to=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=Eq(p),p in Xw)return;Xw[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":Sq,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)})};function ys(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xg={exports:{}},Vu={};var Qw;function xq(){if(Qw)return Vu;Qw=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 Vu.Fragment=e,Vu.jsx=n,Vu.jsxs=n,Vu}var Zw;function wq(){return Zw||(Zw=1,Xg.exports=xq()),Xg.exports}var x=wq(),Qg={exports:{}},_t={};var Jw;function Tq(){if(Jw)return _t;Jw=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(se){return se})):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 Ww;function pv(){return Ww||(Ww=1,Qg.exports=Tq()),Qg.exports}var C=pv();const $n=ys(C),rM=l3({__proto__:null,default:$n},[C]),Cq=t=>{const[e,n]=C.useState(!1);return C.useEffect(()=>n(!0),[]),t.disabled||e?t.children:t.fallback};class tT 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 oM=C.createContext(void 0);var Ed={exports:{}},Aq=Ed.exports,eT;function $q(){return eT||(eT=1,(function(t,e){(function(n,r){t.exports=r()})(Aq,(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 Mq=$q();const Rq=ys(Mq);var xd={exports:{}},Oq=xd.exports,nT;function Nq(){return nT||(nT=1,(function(t,e){(function(n,r){t.exports=r()})(Oq,(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 _q=Nq();const Dq=ys(_q);var wd={exports:{}},jq=wd.exports,rT;function Iq(){return rT||(rT=1,(function(t,e){(function(n,r){t.exports=r()})(jq,(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 Lq=Iq();const zq=ys(Lq);var Td={exports:{}},Bq=Td.exports,oT;function Uq(){return oT||(oT=1,(function(t,e){(function(n,r){t.exports=r()})(Bq,(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 kq=Uq();const Pq=ys(kq);var Cd={exports:{}},Hq=Cd.exports,iT;function Fq(){return iT||(iT=1,(function(t,e){(function(n,r){t.exports=r()})(Hq,(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 qq=Fq();const Gq=ys(qq);var Ad={exports:{}},$d={exports:{}},Yq=$d.exports,sT;function gv(){return sT||(sT=1,(function(t,e){(function(n,r){t.exports=r()})(Yq,(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,se){var We=it.w(D.$u?Date.UTC(D.$y,se,Ot):new Date(D.$y,se,Ot),D);return tt?We:We.endOf(p)},G=function(Ot,se){return it.w(D.toDate()[Ot].apply(D.toDate("s"),(tt?[0,0,0,0]:[23,59,59,999]).slice(se)),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(se,We,cn,Zt){return se&&(se[We]||se(B,tt))||cn[We].slice(0,Zt)},Jt=function(se){return it.s(N%12||12,se,"0")},Ot=pt||function(se,We,cn){var Zt=se<12?"AM":"PM";return cn?Zt.toLowerCase():Zt};return tt.replace(_,(function(se,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})(se)||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 Vq=Ad.exports,aT;function Kq(){return aT||(aT=1,(function(t,e){(function(n,r){t.exports=r(gv())})(Vq,(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}Kq();var Md={exports:{}},Xq=Md.exports,lT;function Qq(){return lT||(lT=1,(function(t,e){(function(n,r){t.exports=r(gv())})(Xq,(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}Qq();var Zq=gv();const Jq=ys(Zq),ri=Jq;class zo{static PLUGINS=[Dq,Rq,zq,Pq,Gq];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 iM=t=>us(sM,t);class sM extends di{dateTimeProvider=Rt(zo);called=0;onInit(){this.dateTimeProvider.createInterval(async()=>{await this.options.handler(),this.called+=1},this.options.duration)}}iM[Rn]=sM;const aM=gr({name:"alepha.datetime",primitives:[iM],services:[zo]}),Km=()=>{const t=C.useContext(oM);if(!t)throw new Ut("Hook 'useAlepha()' must be used within an AlephaContext.Provider");return t},yv=t=>{const e=Km();return C.useMemo(()=>e.inject(t),[])},Wq=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())}))}),lM=R.object({prefix:R.optional(R.text()),links:R.array(Wq)}),tG=Ll({name:"alepha.server.request.apiLinks",schema:R.optional(lM)});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 Ut(`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 Ut(`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}=vl();return Rt(qd,{lifetime:"transient",args:[t.name??n?.name??"Func",r?.name??e.env.MODULE_NAME??"app"]})};ho[Rn]=qd;const eG=R.object({NO_COLOR:R.optional(R.text()),FORCE_COLOR:R.optional(R.text())});class ac{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(eG);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=ac.COLORS.RESET){return this.enabled?`${ac.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(ac);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)}),"";const n=this.alepha.store.get("alepha.vite.server");n?.ssrFixStacktrace(e);let r=e.stack??e.message;const s=e;for(;s.cause&&s.cause instanceof Error;)n?.ssrFixStacktrace(s.cause),r+=`
|
|
11
|
+
Caused by: ${s.cause.stack??s.cause.message}`,s.cause=s.cause.cause;return r}}class cT extends Bc{format(e){let n="";if(n+=`${e.message}`,e.data instanceof Error){n+=`
|
|
12
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 att=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,ac],register:t=>{const e=t.parseEnv(
|
|
13
|
+
Caused by: ${r.message}`,r=r.cause}return n}}const att=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,ac],register:t=>{const e=t.parseEnv(nG),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 nG=R.object({LOG_LEVEL:R.optional(R.text({description:`Application log level on startup.
|
|
14
14
|
Levels are: trace, debug, info, warn, error, silent
|
|
15
15
|
Level can be set for a specific module:
|
|
16
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 nG extends Ut{}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(uM,t);return Object.setPrototypeOf((...r)=>e.run(...r),e)},rG=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 uM extends di{env=hv(rG);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 nG(`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]=uM;gr({name:"alepha.cache",primitives:[bv],services:[Hy,Fy],register:t=>t.with({optional:!0,provide:Hy,use:Fy})});const oG=(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 Ut{name="HttpError";static is=oG;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??iG[this.status]??"HttpError":this.error=this.constructor.name}}const iG={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"},sG=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},aG=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 cM{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"||sG(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(aG,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 lG extends qy{name="UnauthorizedError";constructor(e="Not allowed to access this resource",n){super({message:e,status:401},n)}}class uG{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 fM=gr({name:"alepha.server",primitives:[],services:[cM]});class Uc{static path={apiLinks:"/api/_links"};log=ho();alepha=Rt(Re);httpClient=Rt(cM);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 Ut("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:lM}});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 uG},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 Ut(`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 lG(`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 dM=t=>Rt(Uc).client(t);dM[Rn]="$client";const mM=t=>us(hM,t);class hM extends di{get name(){return this.options.name??this.config.propertyKey}}mM[Rn]=hM;const cG=gr({name:"alepha.server.links",atoms:[Wq],primitives:[mM,dM],services:[Uc]}),pM=(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 gM=gr({name:"alepha.react.core"});class fG extends Vm{name="ValidationError";constructor(e){super({message:e.message,instancePath:e.path,schemaPath:"",keyword:"not",params:{}})}}const dG=gr({name:"alepha.react.form"});class mG{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 yM{log=ho();seoExpander=Rt(mG);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(bM,t);class bM extends di{provider=Rt(yM);onInit(){this.provider.global=[...this.provider.global??[],this.options]}}Sv[Rn]=bM;class Ev{alepha=Rt(Re);headProvider=Rt(yM);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 hG=gr({name:"alepha.react.head",primitives:[Sv],services:[gM,Ev]});class pG{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(vM,t);class vM extends di{cookieParser=Rt(pG);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 Ut("Compression is not supported in browser cookies.");if(r.encrypt)throw new Ut("Encryption is not supported in browser cookies.");if(r.sign)throw new Ut("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 Ut("Compression is not supported in browser cookies.");if(this.options.encrypt)throw new Ut("Encryption is not supported in browser cookies.");if(this.options.sign)throw new Ut("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]=vM;gr({name:"alepha.server.cookies",primitives:[],services:[fM]});class SM{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 EM=t=>us(xM,t);class xM extends di{provider=Rt(SM);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:{}})}}EM[Rn]=xM;const gG=gr({name:"alepha.react.i18n",primitives:[EM],services:[SM]}),ltt=Ll({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}}),Wu=Ll({name:"alepha.ui.theme",schema:R.object({index:R.integer()}),default:{index:0}}),wM={name:"Default",description:"Default Alepha Theme"},TM={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=Ll({name:"alepha.ui.themeList",schema:R.array(R.json()),default:[wM,TM]});class Yy{alepha=Rt(Re);cookie=xv({name:"theme",schema:Wu.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 Ut(`Theme with index ${e} not found`);this.cookie.set({index:e}),this.alepha.store.set(Wu,{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]||wM}getThemeIndex(){try{return this.cookie.get()?.index??this.alepha.store.get(Wu)?.index??0}catch{return this.alepha.store.get(Wu)?.index??0}}}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 CM(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 yG(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 Rd="right-scroll-bar-position",Od="width-before-scroll-bar",bG="with-scroll-bars-hidden",vG="--removed-body-scroll-bar-size";function ty(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function SG(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 EG=typeof window<"u"?C.useLayoutEffect:C.useEffect,fT=new WeakMap;function xG(t,e){var n=SG(null,function(r){return t.forEach(function(s){return ty(s,r)})});return EG(function(){var r=fT.get(n);if(r){var s=new Set(r),l=new Set(t),c=n.current;s.forEach(function(f){l.has(f)||ty(f,null)}),l.forEach(function(f){s.has(f)||ty(f,c)})}fT.set(n,t)},[t]),n}function wG(t){return t}function TG(t,e){e===void 0&&(e=wG);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 CG(t){t===void 0&&(t={});var e=TG(null);return e.options=To({async:!0,ssr:!1},t),e}var AM=function(t){var e=t.sideCar,n=CM(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))};AM.isSideCarExport=!0;function AG(t,e){return t.useMedium(e),AM}var $M=CG(),ey=function(){},Qm=C.forwardRef(function(t,e){var n=C.useRef(null),r=C.useState({onScrollCapture:ey,onWheelCapture:ey,onTouchMoveCapture:ey}),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=CM(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),H=E,F=xG([n,e]),z=To(To({},P),s);return C.createElement(C.Fragment,null,g&&C.createElement(H,{sideCar:$M,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))});Qm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qm.classNames={fullWidth:Od,zeroRight:Rd};var $G=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function MG(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=$G();return e&&t.setAttribute("nonce",e),t}function RG(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function OG(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var NG=function(){var t=0,e=null;return{add:function(n){t==0&&(e=MG())&&(RG(e,n),OG(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},_G=function(){var t=NG();return function(e,n){C.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},MM=function(){var t=_G(),e=function(n){var r=n.styles,s=n.dynamic;return t(r,s),null};return e},DG={left:0,top:0,right:0,gap:0},ny=function(t){return parseInt(t||"",10)||0},jG=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[ny(n),ny(r),ny(s)]},IG=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return DG;var e=jG(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])}},LG=MM(),cl="data-scroll-locked",zG=function(t,e,n,r){var s=t.left,l=t.top,c=t.right,f=t.gap;return n===void 0&&(n="margin"),`
|
|
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 rG extends Ut{}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(uM,t);return Object.setPrototypeOf((...r)=>e.run(...r),e)},oG=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 uM extends di{env=hv(oG);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 rG(`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]=uM;gr({name:"alepha.cache",primitives:[bv],services:[Hy,Fy],register:t=>t.with({optional:!0,provide:Hy,use:Fy})});const iG=(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 Ut{name="HttpError";static is=iG;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??sG[this.status]??"HttpError":this.error=this.constructor.name}}const sG={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"},aG=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},lG=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 cM{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"||aG(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}oq(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(lG,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 uG extends qy{name="UnauthorizedError";constructor(e="Not allowed to access this resource",n){super({message:e,status:401},n)}}class cG{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 fM=gr({name:"alepha.server",primitives:[],services:[cM]});class Uc{static path={apiLinks:"/api/_links"};log=ho();alepha=Rt(Re);httpClient=Rt(cM);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 Ut("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:lM}});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 cG},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 Ut(`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 uG(`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 dM=t=>Rt(Uc).client(t);dM[Rn]="$client";const mM=t=>us(hM,t);class hM extends di{get name(){return this.options.name??this.config.propertyKey}}mM[Rn]=hM;const fG=gr({name:"alepha.server.links",atoms:[tG],primitives:[mM,dM],services:[Uc]}),pM=(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 gM=gr({name:"alepha.react.core"});class dG extends Vm{name="ValidationError";constructor(e){super({message:e.message,instancePath:e.path,schemaPath:"",keyword:"not",params:{}})}}const mG=gr({name:"alepha.react.form"});class hG{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 yM{log=ho();seoExpander=Rt(hG);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(bM,t);class bM extends di{provider=Rt(yM);onInit(){this.provider.global=[...this.provider.global??[],this.options]}}Sv[Rn]=bM;class Ev{alepha=Rt(Re);headProvider=Rt(yM);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 vM=gr({name:"alepha.react.head",primitives:[Sv],services:[gM,Ev]});class pG{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(pG);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 Ut("Compression is not supported in browser cookies.");if(r.encrypt)throw new Ut("Encryption is not supported in browser cookies.");if(r.sign)throw new Ut("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 Ut("Compression is not supported in browser cookies.");if(this.options.encrypt)throw new Ut("Encryption is not supported in browser cookies.");if(this.options.sign)throw new Ut("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:[fM]});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 gG=gr({name:"alepha.react.i18n",primitives:[xM],services:[EM]}),ltt=Ll({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}}),Wu=Ll({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=Ll({name:"alepha.ui.themeList",schema:R.array(R.json()),default:[TM,CM]});class Yy{alepha=Rt(Re);cookie=xv({name:"theme",schema:Wu.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 Ut(`Theme with index ${e} not found`);this.cookie.set({index:e}),this.alepha.store.set(Wu,{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(Wu)?.index??0}catch{return this.alepha.store.get(Wu)?.index??0}}}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 AM(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 yG(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 Rd="right-scroll-bar-position",Od="width-before-scroll-bar",bG="with-scroll-bars-hidden",vG="--removed-body-scroll-bar-size";function ty(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function SG(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 EG=typeof window<"u"?C.useLayoutEffect:C.useEffect,fT=new WeakMap;function xG(t,e){var n=SG(null,function(r){return t.forEach(function(s){return ty(s,r)})});return EG(function(){var r=fT.get(n);if(r){var s=new Set(r),l=new Set(t),c=n.current;s.forEach(function(f){l.has(f)||ty(f,null)}),l.forEach(function(f){s.has(f)||ty(f,c)})}fT.set(n,t)},[t]),n}function wG(t){return t}function TG(t,e){e===void 0&&(e=wG);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 CG(t){t===void 0&&(t={});var e=TG(null);return e.options=To({async:!0,ssr:!1},t),e}var $M=function(t){var e=t.sideCar,n=AM(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))};$M.isSideCarExport=!0;function AG(t,e){return t.useMedium(e),$M}var MM=CG(),ey=function(){},Qm=C.forwardRef(function(t,e){var n=C.useRef(null),r=C.useState({onScrollCapture:ey,onWheelCapture:ey,onTouchMoveCapture:ey}),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=AM(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),H=E,F=xG([n,e]),z=To(To({},P),s);return C.createElement(C.Fragment,null,g&&C.createElement(H,{sideCar:MM,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))});Qm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qm.classNames={fullWidth:Od,zeroRight:Rd};var $G=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function MG(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=$G();return e&&t.setAttribute("nonce",e),t}function RG(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function OG(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var NG=function(){var t=0,e=null;return{add:function(n){t==0&&(e=MG())&&(RG(e,n),OG(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},_G=function(){var t=NG();return function(e,n){C.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},RM=function(){var t=_G(),e=function(n){var r=n.styles,s=n.dynamic;return t(r,s),null};return e},DG={left:0,top:0,right:0,gap:0},ny=function(t){return parseInt(t||"",10)||0},jG=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[ny(n),ny(r),ny(s)]},IG=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return DG;var e=jG(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])}},LG=RM(),cl="data-scroll-locked",zG=function(t,e,n,r){var s=t.left,l=t.top,c=t.right,f=t.gap;return n===void 0&&(n="margin"),`
|
|
18
18
|
.`.concat(bG,` {
|
|
19
19
|
overflow: hidden `).concat(r,`;
|
|
20
20
|
padding-right: `).concat(f,"px ").concat(r,`;
|
|
@@ -51,29 +51,29 @@ Level can be set for a specific module:
|
|
|
51
51
|
body[`).concat(cl,`] {
|
|
52
52
|
`).concat(vG,": ").concat(f,`px;
|
|
53
53
|
}
|
|
54
|
-
`)},dT=function(){var t=parseInt(document.body.getAttribute(cl)||"0",10);return isFinite(t)?t:0},BG=function(){C.useEffect(function(){return document.body.setAttribute(cl,(dT()+1).toString()),function(){var t=dT()-1;t<=0?document.body.removeAttribute(cl):document.body.setAttribute(cl,t.toString())}},[])},UG=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,s=r===void 0?"margin":r;BG();var l=C.useMemo(function(){return IG(s)},[s]);return C.createElement(LG,{styles:zG(l,!e,s,n?"":"!important")})},Vy=!1;if(typeof window<"u")try{var fd=Object.defineProperty({},"passive",{get:function(){return Vy=!0,!0}});window.addEventListener("test",fd,fd),window.removeEventListener("test",fd,fd)}catch{Vy=!1}var Qa=Vy?{passive:!1}:!1,kG=function(t){return t.tagName==="TEXTAREA"},
|
|
54
|
+
`)},dT=function(){var t=parseInt(document.body.getAttribute(cl)||"0",10);return isFinite(t)?t:0},BG=function(){C.useEffect(function(){return document.body.setAttribute(cl,(dT()+1).toString()),function(){var t=dT()-1;t<=0?document.body.removeAttribute(cl):document.body.setAttribute(cl,t.toString())}},[])},UG=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,s=r===void 0?"margin":r;BG();var l=C.useMemo(function(){return IG(s)},[s]);return C.createElement(LG,{styles:zG(l,!e,s,n?"":"!important")})},Vy=!1;if(typeof window<"u")try{var fd=Object.defineProperty({},"passive",{get:function(){return Vy=!0,!0}});window.addEventListener("test",fd,fd),window.removeEventListener("test",fd,fd)}catch{Vy=!1}var Qa=Vy?{passive:!1}:!1,kG=function(t){return t.tagName==="TEXTAREA"},OM=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!kG(t)&&n[e]==="visible")},PG=function(t){return OM(t,"overflowY")},HG=function(t){return OM(t,"overflowX")},mT=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=NM(t,r);if(s){var l=_M(t,r),c=l[1],f=l[2];if(c>f)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},FG=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},qG=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},NM=function(t,e){return t==="v"?PG(e):HG(e)},_M=function(t,e){return t==="v"?FG(e):qG(e)},GG=function(t,e){return t==="h"&&e==="rtl"?-1:1},YG=function(t,e,n,r,s){var l=GG(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=_M(t,f),T=S[0],w=S[1],$=S[2],_=w-$-l*T;(T||_)&&NM(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]},hT=function(t){return[t.deltaX,t.deltaY]},pT=function(t){return t&&"current"in t?t.current:t},VG=function(t,e){return t[0]===e[0]&&t[1]===e[1]},KG=function(t){return`
|
|
55
55
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
56
56
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
57
|
-
`)},XG=0,Za=[];function QG(t){var e=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),s=C.useState(XG++)[0],l=C.useState(MM)[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=yG([t.lockRef.current],(t.shards||[]).map(pT),!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=mT(z,F);if(!it)return!0;if(it?H=z:(H=z==="v"?"h":"v",it=mT(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 YG(ct,$,w,ct==="h"?j:P)},[]),m=C.useCallback(function(w){var $=w;if(!(!Za.length||Za[Za.length-1]!==l)){var _="deltaY"in $?hT($):dd($),L=e.current.filter(function(H){return H.name===$.type&&(H.target===$.target||$.target===H.shadowParent)&&VG(H.delta,_)})[0];if(L&&L.should){$.cancelable&&$.preventDefault();return}if(!L){var j=(c.current.shards||[]).map(pT).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:ZG(_)};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,hT(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:KG(s)}):null,S?C.createElement(UG,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function ZG(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const JG=AG($M,QG);var Gd=C.forwardRef(function(t,e){return C.createElement(Qm,To({},t,{ref:e,sideCar:JG}))});Gd.classNames=Qm.classNames;function $o(t){return Object.keys(t)}function ry(t){return t&&typeof t=="object"&&!Array.isArray(t)}function wv(t,e){const n={...t},r=e;return ry(t)&&ry(e)&&Object.keys(e).forEach(s=>{ry(r[s])&&s in t?n[s]=wv(n[s],r[s]):n[s]=r[s]}),n}function WG(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function tY(t){return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:t.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function eY(t){const e=tY(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 gT(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}function _M(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?gT(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?gT(l):l}}return r}return n}const ut=_M("rem",{shouldScale:!0}),yT=_M("em");function Zm(t){return Object.keys(t).reduce((e,n)=>(t[n]!==void 0&&(e[n]=t[n]),e),{})}function DM(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 nY(t){return Array.isArray(t)||t===null?!1:typeof t=="object"?t.type!==C.Fragment:!1}function zl(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 rY={app:100,modal:200,popover:300,overlay:400,max:9999};function wr(t){return rY[t]}function ln(t,e="size",n=!0){if(t!==void 0)return DM(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 oY(t){return ln(t,"mantine-line-height",!1)}function jM(t){if(t)return ln(t,"mantine-shadow",!1)}function IM(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 Jm(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 iY(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 sY(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch{return t.addListener(e),()=>t.removeListener(e)}}function aY(t,e){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function lY(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,s]=C.useState(n?e:aY(t));return C.useEffect(()=>{try{const l=window.matchMedia(t);return s(l.matches),sY(l,c=>s(c.matches))}catch{return}},[t]),r||!1}const Bl=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Ul(t,e){const n=C.useRef(!1);C.useEffect(()=>()=>{n.current=!1},[]),C.useEffect(()=>{if(n.current)return t();n.current=!0},e)}function uY({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 Ul(()=>{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/,LM="a, input, select, textarea, button, object, [tabindex]";function fY(t){return t.style.display==="none"}function dY(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(fY(n))return!1;n=n.parentNode}return!0}function zM(t){let e=t.getAttribute("tabindex");return e===null&&(e=void 0),parseInt(e,10)}function Ky(t){const e=t.nodeName.toLowerCase(),n=!Number.isNaN(zM(t));return(cY.test(e)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||n)&&dY(t)}function BM(t){const e=zM(t);return(Number.isNaN(e)||e>=0)&&Ky(t)}function mY(t){return Array.from(t.querySelectorAll(LM)).filter(BM)}function hY(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 pY(t=!0){const e=C.useRef(null),n=s=>{let l=s.querySelector("[data-autofocus]");if(!l){const c=Array.from(s.querySelectorAll(LM));l=c.find(BM)||c.find(Ky)||null,!l&&Ky(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&&hY(e.current,l)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[t]),r}const gY=t=>(t+1)%1e6;function yY(){const[,t]=C.useReducer(gY,0);return t}const bY=$n.useId||(()=>{});function vY(){const t=bY();return t?`mantine-${t.replace(/:/g,"")}`:""}function Av(t){const e=vY(),[n,r]=C.useState(e);return Bl(()=>{r(rs())},[]),typeof t=="string"?t:typeof window>"u"?e:n}function SY(t,e,n){C.useEffect(()=>(window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)),[t,e])}function Xy(t,e){if(typeof t=="function")return t(e);typeof t=="object"&&t!==null&&"current"in t&&(t.current=e)}function UM(...t){const e=new Map;return n=>{if(t.forEach(r=>{const s=Xy(r,n);s&&e.set(r,s)}),e.size>0)return()=>{t.forEach(r=>{const s=e.get(r);s&&typeof s=="function"?s():Xy(r,null)}),e.clear()}}}function xi(...t){return C.useCallback(UM(...t),t)}function EY({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 Wm(t,e){return lY("(prefers-reduced-motion: reduce)",t,e)}const xY={" ":"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 xY[t]||e}function wY(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 TY(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 CY(t,e){return n=>TY(wY(t),n,e)}function AY(t,e,n=!1){return t.target instanceof HTMLElement?(n||!t.target.isContentEditable)&&!e.includes(t.target.tagName):!0}function $Y(t,e=["INPUT","TEXTAREA","SELECT"],n=!1){C.useEffect(()=>{const r=s=>{t.forEach(([l,c,f={preventDefault:!0,usePhysicalKeys:!1}])=>{CY(l,f.usePhysicalKeys)(s)&&AY(s,e,n)&&(f.preventDefault&&s.preventDefault(),c(s))})};return document.documentElement.addEventListener("keydown",r),()=>document.documentElement.removeEventListener("keydown",r)},[t])}function MY(t,e){window.dispatchEvent(new CustomEvent(t,{detail:e}))}function RY(t){function e(r){const s=Object.keys(r).reduce((l,c)=>(l[`${t}:${c}`]=f=>r[c](f.detail),l),{});Bl(()=>(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)=>MY(`${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||!nY(e[0])?null:e[0]}function utt(t){return t}function PM(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=PM(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=PM(t))&&(r&&(r+=" "),r+=e);return r}const OY={};function NY(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||OY);return NY(l)}function lc({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 HM=C.createContext(null);function bs(){const t=C.useContext(HM);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function _Y(){return bs().cssVariablesResolver}function DY(){return bs().classNamesPrefix}function Mv(){return bs().getStyleNonce}function jY(){return bs().withStaticClasses}function IY(){return bs().headless}function LY(){return bs().stylesTransform?.sx}function zY(){return bs().stylesTransform?.styles}function FM(){return bs().env||"default"}function BY(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}function UY(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 kY(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 PY(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 BY(t)?UY(t):t.startsWith("rgb")?kY(t):t.startsWith("hsl")?PY(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 uc(t,e){return typeof t.primaryShade=="number"?t.primaryShade:e==="dark"?t.primaryShade.dark:t.primaryShade.light}function oy(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function HY(t){const e=t.match(/oklch\((.*?)%\s/);return e?parseFloat(e[1]):null}function FY(t){if(t.startsWith("oklch("))return(HY(t)||0)/100;const{r:e,g:n,b:r}=Rv(t),s=e/255,l=n/255,c=r/255,f=oy(s),m=oy(l),p=oy(c);return .2126*f+.7152*m+.0722*p}function Ku(t,e=.179){return t.startsWith("var(")?!1:FY(t)>e}function kl({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][uc(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=kl({color:t||e.primaryColor,theme:e});return n.variable?`var(${n.variable})`:t}function Qy(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,qY=({color:t,theme:e,variant:n,gradient:r,autoContrast:s})=>{const l=kl({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:Qy(r,e),hover:Qy(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)`}:{}},GY={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"]},bT="-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:GY,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:qY,autoContrast:!1,luminanceThreshold:.3,fontFamily:bT,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:bT,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 vT(t){return t==="auto"||t==="dark"||t==="light"}function YY({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 vT(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&&vT(r.newValue)&&n(r.newValue)},window.addEventListener("storage",e)},unsubscribe:()=>{window.removeEventListener("storage",e)},clear:()=>{window.localStorage.removeItem(t)}}}const VY="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",ST="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function iy(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}function ET(t){if(!(t.primaryColor in t.colors))throw new Error(VY);if(typeof t.primaryShade=="object"&&(!iy(t.primaryShade.dark)||!iy(t.primaryShade.light)))throw new Error(ST);if(typeof t.primaryShade=="number"&&!iy(t.primaryShade))throw new Error(ST)}function KY(t,e){if(!e)return ET(t),t;const n=wv(t,e);return e.fontFamily&&!e.headings?.fontFamily&&(n.headings.fontFamily=e.fontFamily),ET(n),n}const Nv=C.createContext(null),XY=()=>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 qM({theme:t,children:e,inherit:n=!0}){const r=XY(),s=C.useMemo(()=>KY(n?r:Ov,t),[t,r,n]);return x.jsx(Nv.Provider,{value:s,children:e})}qM.displayName="@mantine/core/MantineThemeProvider";function QY(){const t=Kn(),e=Mv(),n=$o(t.breakpoints).reduce((r,s)=>{const l=t.breakpoints[s].includes("px"),c=eY(t.breakpoints[s]),f=l?`${c-.1}px`:yT(c-.1),m=l?`${c}px`:yT(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 sy(t){return Object.entries(t).map(([e,n])=>`${e}: ${n};`).join("")}function GM(t,e){const n=e?[e]:[":root",":host"],r=sy(t.variables),s=r?`${n.join(", ")}{${r}}`:"",l=sy(t.dark),c=sy(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}
|
|
57
|
+
`)},XG=0,Za=[];function QG(t){var e=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),s=C.useState(XG++)[0],l=C.useState(RM)[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=yG([t.lockRef.current],(t.shards||[]).map(pT),!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=mT(z,F);if(!it)return!0;if(it?H=z:(H=z==="v"?"h":"v",it=mT(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 YG(ct,$,w,ct==="h"?j:P)},[]),m=C.useCallback(function(w){var $=w;if(!(!Za.length||Za[Za.length-1]!==l)){var _="deltaY"in $?hT($):dd($),L=e.current.filter(function(H){return H.name===$.type&&(H.target===$.target||$.target===H.shadowParent)&&VG(H.delta,_)})[0];if(L&&L.should){$.cancelable&&$.preventDefault();return}if(!L){var j=(c.current.shards||[]).map(pT).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:ZG(_)};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,hT(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:KG(s)}):null,S?C.createElement(UG,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function ZG(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const JG=AG(MM,QG);var Gd=C.forwardRef(function(t,e){return C.createElement(Qm,To({},t,{ref:e,sideCar:JG}))});Gd.classNames=Qm.classNames;function $o(t){return Object.keys(t)}function ry(t){return t&&typeof t=="object"&&!Array.isArray(t)}function wv(t,e){const n={...t},r=e;return ry(t)&&ry(e)&&Object.keys(e).forEach(s=>{ry(r[s])&&s in t?n[s]=wv(n[s],r[s]):n[s]=r[s]}),n}function WG(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function tY(t){return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:t.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function eY(t){const e=tY(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 gT(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}function DM(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?gT(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?gT(l):l}}return r}return n}const ut=DM("rem",{shouldScale:!0}),yT=DM("em");function Zm(t){return Object.keys(t).reduce((e,n)=>(t[n]!==void 0&&(e[n]=t[n]),e),{})}function jM(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 nY(t){return Array.isArray(t)||t===null?!1:typeof t=="object"?t.type!==C.Fragment:!1}function zl(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 rY={app:100,modal:200,popover:300,overlay:400,max:9999};function wr(t){return rY[t]}function ln(t,e="size",n=!0){if(t!==void 0)return jM(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 oY(t){return ln(t,"mantine-line-height",!1)}function IM(t){if(t)return ln(t,"mantine-shadow",!1)}function LM(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 Jm(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 iY(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 sY(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch{return t.addListener(e),()=>t.removeListener(e)}}function aY(t,e){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function lY(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,s]=C.useState(n?e:aY(t));return C.useEffect(()=>{try{const l=window.matchMedia(t);return s(l.matches),sY(l,c=>s(c.matches))}catch{return}},[t]),r||!1}const Bl=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Ul(t,e){const n=C.useRef(!1);C.useEffect(()=>()=>{n.current=!1},[]),C.useEffect(()=>{if(n.current)return t();n.current=!0},e)}function uY({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 Ul(()=>{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/,zM="a, input, select, textarea, button, object, [tabindex]";function fY(t){return t.style.display==="none"}function dY(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(fY(n))return!1;n=n.parentNode}return!0}function BM(t){let e=t.getAttribute("tabindex");return e===null&&(e=void 0),parseInt(e,10)}function Ky(t){const e=t.nodeName.toLowerCase(),n=!Number.isNaN(BM(t));return(cY.test(e)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||n)&&dY(t)}function UM(t){const e=BM(t);return(Number.isNaN(e)||e>=0)&&Ky(t)}function mY(t){return Array.from(t.querySelectorAll(zM)).filter(UM)}function hY(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 pY(t=!0){const e=C.useRef(null),n=s=>{let l=s.querySelector("[data-autofocus]");if(!l){const c=Array.from(s.querySelectorAll(zM));l=c.find(UM)||c.find(Ky)||null,!l&&Ky(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&&hY(e.current,l)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[t]),r}const gY=t=>(t+1)%1e6;function yY(){const[,t]=C.useReducer(gY,0);return t}const bY=$n.useId||(()=>{});function vY(){const t=bY();return t?`mantine-${t.replace(/:/g,"")}`:""}function Av(t){const e=vY(),[n,r]=C.useState(e);return Bl(()=>{r(rs())},[]),typeof t=="string"?t:typeof window>"u"?e:n}function SY(t,e,n){C.useEffect(()=>(window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)),[t,e])}function Xy(t,e){if(typeof t=="function")return t(e);typeof t=="object"&&t!==null&&"current"in t&&(t.current=e)}function kM(...t){const e=new Map;return n=>{if(t.forEach(r=>{const s=Xy(r,n);s&&e.set(r,s)}),e.size>0)return()=>{t.forEach(r=>{const s=e.get(r);s&&typeof s=="function"?s():Xy(r,null)}),e.clear()}}}function xi(...t){return C.useCallback(kM(...t),t)}function EY({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 Wm(t,e){return lY("(prefers-reduced-motion: reduce)",t,e)}const xY={" ":"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 xY[t]||e}function wY(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 TY(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 CY(t,e){return n=>TY(wY(t),n,e)}function AY(t,e,n=!1){return t.target instanceof HTMLElement?(n||!t.target.isContentEditable)&&!e.includes(t.target.tagName):!0}function $Y(t,e=["INPUT","TEXTAREA","SELECT"],n=!1){C.useEffect(()=>{const r=s=>{t.forEach(([l,c,f={preventDefault:!0,usePhysicalKeys:!1}])=>{CY(l,f.usePhysicalKeys)(s)&&AY(s,e,n)&&(f.preventDefault&&s.preventDefault(),c(s))})};return document.documentElement.addEventListener("keydown",r),()=>document.documentElement.removeEventListener("keydown",r)},[t])}function MY(t,e){window.dispatchEvent(new CustomEvent(t,{detail:e}))}function RY(t){function e(r){const s=Object.keys(r).reduce((l,c)=>(l[`${t}:${c}`]=f=>r[c](f.detail),l),{});Bl(()=>(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)=>MY(`${t}:${String(r)}`,s[0])}return[e,n]}function PM(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||!nY(e[0])?null:e[0]}function utt(t){return t}function HM(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=HM(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=HM(t))&&(r&&(r+=" "),r+=e);return r}const OY={};function NY(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||OY);return NY(l)}function lc({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 FM=C.createContext(null);function bs(){const t=C.useContext(FM);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function _Y(){return bs().cssVariablesResolver}function DY(){return bs().classNamesPrefix}function Mv(){return bs().getStyleNonce}function jY(){return bs().withStaticClasses}function IY(){return bs().headless}function LY(){return bs().stylesTransform?.sx}function zY(){return bs().stylesTransform?.styles}function qM(){return bs().env||"default"}function BY(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}function UY(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 kY(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 PY(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 BY(t)?UY(t):t.startsWith("rgb")?kY(t):t.startsWith("hsl")?PY(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 uc(t,e){return typeof t.primaryShade=="number"?t.primaryShade:e==="dark"?t.primaryShade.dark:t.primaryShade.light}function oy(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function HY(t){const e=t.match(/oklch\((.*?)%\s/);return e?parseFloat(e[1]):null}function FY(t){if(t.startsWith("oklch("))return(HY(t)||0)/100;const{r:e,g:n,b:r}=Rv(t),s=e/255,l=n/255,c=r/255,f=oy(s),m=oy(l),p=oy(c);return .2126*f+.7152*m+.0722*p}function Ku(t,e=.179){return t.startsWith("var(")?!1:FY(t)>e}function kl({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][uc(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=kl({color:t||e.primaryColor,theme:e});return n.variable?`var(${n.variable})`:t}function Qy(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,qY=({color:t,theme:e,variant:n,gradient:r,autoContrast:s})=>{const l=kl({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:Qy(r,e),hover:Qy(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)`}:{}},GY={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"]},bT="-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:GY,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:qY,autoContrast:!1,luminanceThreshold:.3,fontFamily:bT,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:bT,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 vT(t){return t==="auto"||t==="dark"||t==="light"}function YY({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 vT(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&&vT(r.newValue)&&n(r.newValue)},window.addEventListener("storage",e)},unsubscribe:()=>{window.removeEventListener("storage",e)},clear:()=>{window.localStorage.removeItem(t)}}}const VY="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",ST="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function iy(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}function ET(t){if(!(t.primaryColor in t.colors))throw new Error(VY);if(typeof t.primaryShade=="object"&&(!iy(t.primaryShade.dark)||!iy(t.primaryShade.light)))throw new Error(ST);if(typeof t.primaryShade=="number"&&!iy(t.primaryShade))throw new Error(ST)}function KY(t,e){if(!e)return ET(t),t;const n=wv(t,e);return e.fontFamily&&!e.headings?.fontFamily&&(n.headings.fontFamily=e.fontFamily),ET(n),n}const Nv=C.createContext(null),XY=()=>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 GM({theme:t,children:e,inherit:n=!0}){const r=XY(),s=C.useMemo(()=>KY(n?r:Ov,t),[t,r,n]);return x.jsx(Nv.Provider,{value:s,children:e})}GM.displayName="@mantine/core/MantineThemeProvider";function QY(){const t=Kn(),e=Mv(),n=$o(t.breakpoints).reduce((r,s)=>{const l=t.breakpoints[s].includes("px"),c=eY(t.breakpoints[s]),f=l?`${c-.1}px`:yT(c-.1),m=l?`${c}px`:yT(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 sy(t){return Object.entries(t).map(([e,n])=>`${e}: ${n};`).join("")}function YM(t,e){const n=e?[e]:[":root",":host"],r=sy(t.variables),s=r?`${n.join(", ")}{${r}}`:"",l=sy(t.dark),c=sy(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}
|
|
58
58
|
|
|
59
59
|
${m}
|
|
60
60
|
|
|
61
|
-
${p}`}function YM({color:t,theme:e,autoContrast:n}){return(typeof n=="boolean"?n:e.autoContrast)&&kl({color:t||e.primaryColor,theme:e}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function xT(t,e){return YM({color:t.colors[t.primaryColor][uc(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=uc(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=uc(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 ZY(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 VM=t=>{const e=uc(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":xT(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":xT(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(ZY(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 JY({theme:t,generator:e}){const n=VM(t),r=e?.(t);return r?wv(n,r):n}const ay=VM(Ov);function WY(t){const e={variables:{},light:{},dark:{}};return $o(t.variables).forEach(n=>{ay.variables[n]!==t.variables[n]&&(e.variables[n]=t.variables[n])}),$o(t.light).forEach(n=>{ay.light[n]!==t.light[n]&&(e.light[n]=t.light[n])}),$o(t.dark).forEach(n=>{ay.dark[n]!==t.dark[n]&&(e.dark[n]=t.dark[n])}),e}function tV(t){return GM({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}function KM({cssVariablesSelector:t,deduplicateCssVariables:e}){const n=Kn(),r=Mv(),s=_Y(),l=JY({theme:n,generator:s}),c=(t===void 0||t===":root"||t===":host")&&e,f=c?WY(l):l,m=GM(f,t);return m?x.jsx("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${m}${c?"":tV(t)}`}}):null}KM.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 eV({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]),Bl(()=>{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 nV({respectReducedMotion:t,getRootElement:e}){Bl(()=>{t&&e()?.setAttribute("data-respect-reduced-motion","true")},[t])}function XM({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=YY(),defaultColorScheme:g="light",getRootElement:b=()=>document.documentElement,cssVariablesResolver:E,forceColorScheme:S,stylesTransform:T,env:w}){const{colorScheme:$,setColorScheme:_,clearColorScheme:L}=eV({defaultColorScheme:g,forceColorScheme:S,manager:p,getRootElement:b});return nV({respectReducedMotion:t?.respectReducedMotion||!1,getRootElement:b}),x.jsx(HM.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(qM,{theme:t,children:[c&&x.jsx(KM,{cssVariablesSelector:f,deduplicateCssVariables:l}),s&&x.jsx(QY,{}),e]})})}XM.displayName="@mantine/core/MantineProvider";function QM({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:lc({theme:s,styles:e,props:n,stylesCtx:r||void 0})}}const rV={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function oV({theme:t,options:e,unstyled:n}){return Yn(e?.focusable&&!n&&(t.focusClassName||rV[t.focusRing]),e?.active&&!n&&t.activeClassName)}function iV({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 wT({selector:t,stylesCtx:e,theme:n,classNames:r,props:s}){return kc({theme:n,classNames:r,props:s,stylesCtx:e})[t]}function sV({rootSelector:t,selector:e,className:n}){return t===e?n:void 0}function aV({selector:t,classes:e,unstyled:n}){return n?void 0:e[t]}function lV({themeName:t,classNamesPrefix:e,selector:n,withStaticClass:r}){return r===!1?[]:t.map(s=>`${e}-${s}-${n}`)}function uV({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 fV({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(oV({theme:t,options:e,unstyled:f||S}),uV({theme:t,themeName:n,selector:r,props:g,stylesCtx:b}),cV({options:e,classes:c,selector:r,unstyled:f}),wT({selector:r,stylesCtx:b,theme:t,classNames:l,props:g}),wT({selector:r,stylesCtx:b,theme:t,classNames:T,props:g}),iV({selector:r,stylesCtx:b,options:e,props:g,theme:t}),sV({rootSelector:p,selector:r,className:m}),aV({selector:r,classes:c,unstyled:f||S}),E&&!S&&lV({themeName:n,classNamesPrefix:s,selector:r,withStaticClass:e?.withStaticClass}),e?.className)}function dV({theme:t,themeName:e,props:n,stylesCtx:r,selector:s}){return e.map(l=>lc({theme:t,styles:t.components[l]?.styles,props:n,stylesCtx:r})[s]).reduce((l,c)=>({...l,...c}),{})}function Zy({style:t,theme:e}){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...Zy({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],...Zm(n[r])}}),e),{})}function hV({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 pV({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&&dV({theme:t,themeName:e,props:s,stylesCtx:l,selector:n}),...!E&&lc({theme:t,styles:f,props:s,stylesCtx:l})[n],...!E&&lc({theme:t,styles:r?.styles,props:r?.props||s,stylesCtx:l})[n],...hV({theme:t,props:s,stylesCtx:l,vars:p,varsResolver:g,selector:n,themeName:e,headless:b}),...c===n?Zy({style:m,theme:t}):null,...Zy({style:r?.style,theme:t})}}function gV({props:t,stylesCtx:e,themeName:n}){const r=Kn(),s=zY()?.();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=DY(),w=jY(),$=IY(),_=(Array.isArray(t)?t:[t]).filter(P=>P),{withStylesTransform:L,getTransformedStyles:j}=gV({props:n,stylesCtx:r,themeName:_});return(P,H)=>({className:fV({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:pV({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 yV(t,e){return typeof t=="boolean"?t:e.autoContrast}const bV=({defaultColorScheme:t,localStorageKey:e,forceColorScheme:n})=>n?`document.documentElement.setAttribute("data-mantine-color-scheme", '${n}');`:`try {
|
|
61
|
+
${p}`}function VM({color:t,theme:e,autoContrast:n}){return(typeof n=="boolean"?n:e.autoContrast)&&kl({color:t||e.primaryColor,theme:e}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function xT(t,e){return VM({color:t.colors[t.primaryColor][uc(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=uc(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=uc(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 ZY(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 KM=t=>{const e=uc(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":xT(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":xT(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(ZY(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 JY({theme:t,generator:e}){const n=KM(t),r=e?.(t);return r?wv(n,r):n}const ay=KM(Ov);function WY(t){const e={variables:{},light:{},dark:{}};return $o(t.variables).forEach(n=>{ay.variables[n]!==t.variables[n]&&(e.variables[n]=t.variables[n])}),$o(t.light).forEach(n=>{ay.light[n]!==t.light[n]&&(e.light[n]=t.light[n])}),$o(t.dark).forEach(n=>{ay.dark[n]!==t.dark[n]&&(e.dark[n]=t.dark[n])}),e}function tV(t){return YM({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}function XM({cssVariablesSelector:t,deduplicateCssVariables:e}){const n=Kn(),r=Mv(),s=_Y(),l=JY({theme:n,generator:s}),c=(t===void 0||t===":root"||t===":host")&&e,f=c?WY(l):l,m=YM(f,t);return m?x.jsx("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${m}${c?"":tV(t)}`}}):null}XM.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 eV({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]),Bl(()=>{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 nV({respectReducedMotion:t,getRootElement:e}){Bl(()=>{t&&e()?.setAttribute("data-respect-reduced-motion","true")},[t])}function QM({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=YY(),defaultColorScheme:g="light",getRootElement:b=()=>document.documentElement,cssVariablesResolver:E,forceColorScheme:S,stylesTransform:T,env:w}){const{colorScheme:$,setColorScheme:_,clearColorScheme:L}=eV({defaultColorScheme:g,forceColorScheme:S,manager:p,getRootElement:b});return nV({respectReducedMotion:t?.respectReducedMotion||!1,getRootElement:b}),x.jsx(FM.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(GM,{theme:t,children:[c&&x.jsx(XM,{cssVariablesSelector:f,deduplicateCssVariables:l}),s&&x.jsx(QY,{}),e]})})}QM.displayName="@mantine/core/MantineProvider";function ZM({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:lc({theme:s,styles:e,props:n,stylesCtx:r||void 0})}}const rV={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function oV({theme:t,options:e,unstyled:n}){return Yn(e?.focusable&&!n&&(t.focusClassName||rV[t.focusRing]),e?.active&&!n&&t.activeClassName)}function iV({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 wT({selector:t,stylesCtx:e,theme:n,classNames:r,props:s}){return kc({theme:n,classNames:r,props:s,stylesCtx:e})[t]}function sV({rootSelector:t,selector:e,className:n}){return t===e?n:void 0}function aV({selector:t,classes:e,unstyled:n}){return n?void 0:e[t]}function lV({themeName:t,classNamesPrefix:e,selector:n,withStaticClass:r}){return r===!1?[]:t.map(s=>`${e}-${s}-${n}`)}function uV({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 fV({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(oV({theme:t,options:e,unstyled:f||S}),uV({theme:t,themeName:n,selector:r,props:g,stylesCtx:b}),cV({options:e,classes:c,selector:r,unstyled:f}),wT({selector:r,stylesCtx:b,theme:t,classNames:l,props:g}),wT({selector:r,stylesCtx:b,theme:t,classNames:T,props:g}),iV({selector:r,stylesCtx:b,options:e,props:g,theme:t}),sV({rootSelector:p,selector:r,className:m}),aV({selector:r,classes:c,unstyled:f||S}),E&&!S&&lV({themeName:n,classNamesPrefix:s,selector:r,withStaticClass:e?.withStaticClass}),e?.className)}function dV({theme:t,themeName:e,props:n,stylesCtx:r,selector:s}){return e.map(l=>lc({theme:t,styles:t.components[l]?.styles,props:n,stylesCtx:r})[s]).reduce((l,c)=>({...l,...c}),{})}function Zy({style:t,theme:e}){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...Zy({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],...Zm(n[r])}}),e),{})}function hV({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 pV({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&&dV({theme:t,themeName:e,props:s,stylesCtx:l,selector:n}),...!E&&lc({theme:t,styles:f,props:s,stylesCtx:l})[n],...!E&&lc({theme:t,styles:r?.styles,props:r?.props||s,stylesCtx:l})[n],...hV({theme:t,props:s,stylesCtx:l,vars:p,varsResolver:g,selector:n,themeName:e,headless:b}),...c===n?Zy({style:m,theme:t}):null,...Zy({style:r?.style,theme:t})}}function gV({props:t,stylesCtx:e,themeName:n}){const r=Kn(),s=zY()?.();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 ie({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=DY(),w=jY(),$=IY(),_=(Array.isArray(t)?t:[t]).filter(P=>P),{withStylesTransform:L,getTransformedStyles:j}=gV({props:n,stylesCtx:r,themeName:_});return(P,H)=>({className:fV({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:pV({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 yV(t,e){return typeof t=="boolean"?t:e.autoContrast}const bV=({defaultColorScheme:t,localStorageKey:e,forceColorScheme:n})=>n?`document.documentElement.setAttribute("data-mantine-color-scheme", '${n}');`:`try {
|
|
62
62
|
var _colorScheme = window.localStorage.getItem("${e}");
|
|
63
63
|
var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${t}";
|
|
64
64
|
var computedColorScheme = colorScheme !== "auto" ? colorScheme : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
65
65
|
document.documentElement.setAttribute("data-mantine-color-scheme", computedColorScheme);
|
|
66
66
|
} catch (e) {}
|
|
67
|
-
`;function vV({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:bV({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,...Zm(n)}}function ly(t){return $o(t).reduce((e,n)=>t[n]!==void 0?`${e}${WG(n)}:${t[n]};`:e,"").trim()}function SV({selector:t,styles:e,media:n,container:r}){const s=e?ly(e):"",l=Array.isArray(n)?n.map(f=>`@media${f.query}{${t}{${ly(f.styles)}}}`):[],c=Array.isArray(r)?r.map(f=>`@container ${f.query}{${t}{${ly(f.styles)}}}`):[];return`${s?`${t}{${s}}`:""}${l.join("")}${c.join("")}`.trim()}function ZM(t){const e=Mv();return x.jsx("style",{"data-mantine-styles":"inline",nonce:e?.(),dangerouslySetInnerHTML:{__html:SV(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:Wl,darkHidden:vs,sx:Xn,...Ss}=t;return{styleProps:Zm({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:Wl,darkHidden:vs,sx:Xn}),rest:Ss}}const EV={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=kl({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 xV(t,e){const n=kl({color:t,theme:e});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Dv(t,e)}function wV(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 TT={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 TV(t){return typeof t=="string"&&t in TT?TT[t]:t}const CV=["h1","h2","h3","h4","h5","h6"];function AV(t,e){return typeof t=="string"&&t in e.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&CV.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?ut(t):t}function $V(t){return t}const MV=["h1","h2","h3","h4","h5","h6"];function RV(t,e){return typeof t=="string"&&t in e.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&MV.includes(t)?`var(--mantine-${t}-line-height)`:t}function OV(t,e){return typeof t=="string"&&t in e.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?ut(t):t}function NV(t){return typeof t=="number"?ut(t):t}function _V(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 uy={color:Dv,textColor:xV,fontSize:AV,spacing:_V,radius:OV,identity:$V,size:NV,lineHeight:RV,fontFamily:TV,border:wV};function CT(t){return t.replace("(min-width: ","").replace("em)","")}function DV({media:t,...e}){const r=Object.keys(t).sort((s,l)=>Number(CT(s))-Number(CT(l))).map(s=>({query:s,styles:t[s]}));return{...e,media:r}}function jV(t){if(typeof t!="object"||t===null)return!1;const e=Object.keys(t);return!(e.length===1&&e[0]==="base")}function IV(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function LV(t){return typeof t=="object"&&t!==null?$o(t).filter(e=>e!=="base"):[]}function zV(t,e){return typeof t=="object"&&t!==null&&e in t?t[e]:t}function JM({styleProps:t,data:e,theme:n}){return DV($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=IV(t[s]);if(!jV(t[s]))return c.forEach(p=>{r.inlineStyles[p]=uy[l.type](f,n)}),r;r.hasResponsiveStyles=!0;const m=LV(t[s]);return c.forEach(p=>{f!=null&&(r.styles[p]=uy[l.type](f,n)),m.forEach(g=>{const b=`(min-width: ${n.breakpoints[g]})`;r.media[b]={...r.media[b],[p]:uy[l.type](zV(t[s],g),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function WM(){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 ctt(t){return t}function tR(t){return t.startsWith("data-")?t:`data-${t}`}function BV(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r===void 0||r===""||r===!1||r===null||(e[tR(n)]=t[n]),e},{})}function eR(t){return t?typeof t=="string"?{[tR(t)]:!0}:Array.isArray(t)?[...t].reduce((e,n)=>({...e,...eR(n)}),{}):BV(t):null}function Jy(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...Jy(r,e)}),{}):typeof t=="function"?t(e):t??{}}function UV({theme:t,style:e,vars:n,styleProps:r}){const s=Jy(e,t),l=Jy(n,t);return{...s,...l,...r}}const nR=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=LY()?.()?.(_.sx),H=WM(),F=JM({styleProps:_,theme:w,data:EV}),z={ref:T,style:UV({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":DM(c)?void 0:c||void 0,size:E,...eR(l),...L};return x.jsxs(x.Fragment,{children:[F.hasResponsiveStyles&&x.jsx(ZM,{selector:`.${H}`,styles:F.styles,media:F.media}),typeof b=="function"?b(z):x.jsx($,{...z})]})});nR.displayName="@mantine/core/Box";const ht=nR;function rR(t){return t}function ftt(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=rR,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=rR,e}const kV=C.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Iv(){return C.useContext(kV)}var cy={exports:{}},vn={};var AT;function PV(){if(AT)return vn;AT=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 $T;function oR(){if($T)return cy.exports;$T=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(),cy.exports=PV(),cy.exports}var th=oR();const tc=ys(th);function HV(t){if(!t||typeof t=="string")return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function fy(t){return t?.current?t.current.scrollHeight:"auto"}const Xu=typeof window<"u"&&window.requestAnimationFrame,MT=0,FV=t=>({height:0,overflow:"hidden",...t?{}:{display:"none"}});function qV({transitionDuration:t,transitionTimingFunction:e="ease",onTransitionEnd:n=()=>{},opened:r,keepMounted:s=!1}){const l=C.useRef(null),c=FV(s),[f,m]=C.useState(r?{}:c),p=T=>{th.flushSync(()=>m(T))},g=T=>{p(w=>({...w,...T}))};function b(T){const w=t||HV(T);return{transition:`height ${w}ms ${e}, opacity ${w}ms ${e}`}}Ul(()=>{typeof Xu=="function"&&Xu(r?()=>{g({willChange:"height",display:"block",overflow:"hidden"}),Xu(()=>{const T=fy(l);g({...b(T),height:T})})}:()=>{const T=fy(l);g({...b(T),willChange:"height",height:T}),Xu(()=>g({height:MT,overflow:"hidden"}))})},[r]);const E=T=>{if(!(T.target!==l.current||T.propertyName!=="height"))if(r){const w=fy(l);w===f.height?p({}):g({height:w}),n()}else f.height===MT&&(p(c),n())};function S({style:T={},refKey:w="ref",...$}={}){const _=$[w],L={"aria-hidden":!r,...$,[w]:UM(l,_),onTransitionEnd:E,style:{boxSizing:"border-box",...T,...f}};return $n.version.startsWith("18")?r||(L.inert=""):L.inert=!r,L}return S}const GV={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},iR=It((t,e)=>{const{children:n,in:r,transitionDuration:s,transitionTimingFunction:l,style:c,onTransitionEnd:f,animateOpacity:m,keepMounted:p,...g}=bt("Collapse",GV,t),b=Kn(),E=Wm(),T=(b.respectReducedMotion?E:!1)?0:s,w=qV({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})});iR.displayName="@mantine/core/Collapse";function eh(){return typeof window<"u"}function Pl(t){return sR(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=(sR(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function sR(t){return eh()?t instanceof Node||t instanceof Fn(t).Node:!1}function Ce(t){return eh()?t instanceof Element||t instanceof Fn(t).Element:!1}function hr(t){return eh()?t instanceof HTMLElement||t instanceof Fn(t).HTMLElement:!1}function Wy(t){return!eh()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Fn(t).ShadowRoot}const YV=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)&&!YV.has(s)}const VV=new Set(["table","td","th"]);function KV(t){return VV.has(Pl(t))}const XV=[":popover-open",":modal"];function nh(t){return XV.some(e=>{try{return t.matches(e)}catch{return!1}})}const QV=["transform","translate","scale","rotate","perspective"],ZV=["transform","translate","scale","rotate","perspective","filter"],JV=["paint","layout","strict","content"];function Lv(t){const e=rh(),n=Ce(t)?qr(t):t;return QV.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)||ZV.some(r=>(n.willChange||"").includes(r))||JV.some(r=>(n.contain||"").includes(r))}function WV(t){let e=fi(t);for(;hr(e)&&!ii(e);){if(Lv(e))return e;if(nh(e))return null;e=fi(e)}return null}function rh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tK=new Set(["html","body","#document"]);function ii(t){return tK.has(Pl(t))}function qr(t){return Fn(t).getComputedStyle(t)}function oh(t){return Ce(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function fi(t){if(Pl(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wy(t)&&t.host||Bo(t);return Wy(e)?e.host:e}function aR(t){const e=fi(t);return ii(e)?t.ownerDocument?t.ownerDocument.body:t.body:hr(e)&&Pc(e)?e:aR(e)}function si(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=aR(t),l=s===((r=t.ownerDocument)==null?void 0:r.body),c=Fn(s);if(l){const f=t0(c);return e.concat(c,c.visualViewport||[],Pc(s)?s:[],f&&n?si(f):[])}return e.concat(s,si(s,[],n))}function t0(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}const eK=["top","right","bottom","left"],so=Math.min,Sn=Math.max,Yd=Math.round,gd=Math.floor,Mo=t=>({x:t,y:t}),nK={left:"right",right:"left",bottom:"top",top:"bottom"},rK={start:"end",end:"start"};function e0(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 Hl(t){return t.split("-")[1]}function zv(t){return t==="x"?"y":"x"}function Bv(t){return t==="y"?"height":"width"}const oK=new Set(["top","bottom"]);function no(t){return oK.has(ao(t))?"y":"x"}function Uv(t){return zv(no(t))}function iK(t,e,n){n===void 0&&(n=!1);const r=Hl(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=Vd(c)),[c,Vd(c)]}function sK(t){const e=Vd(t);return[n0(t),e,n0(e)]}function n0(t){return t.replace(/start|end/g,e=>rK[e])}const RT=["left","right"],OT=["right","left"],aK=["top","bottom"],lK=["bottom","top"];function uK(t,e,n){switch(t){case"top":case"bottom":return n?e?OT:RT:e?RT:OT;case"left":case"right":return e?aK:lK;default:return[]}}function cK(t,e,n,r){const s=Hl(t);let l=uK(ao(t),n==="start",r);return s&&(l=l.map(c=>c+"-"+s),e&&(l=l.concat(l.map(n0)))),l}function Vd(t){return t.replace(/left|right|bottom|top/g,e=>nK[e])}function fK(t){return{top:0,right:0,bottom:0,left:0,...t}}function kv(t){return typeof t!="number"?fK(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 dK(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function mK(){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 hK(){return/apple/i.test(navigator.vendor)}function pK(){return dK().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function gK(){return mK().includes("jsdom/")}const NT="data-floating-ui-focusable",yK="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function _T(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 cc(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Wy(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 dy(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 bK(t){return t.matches("html,body")}function qs(t){return t?.ownerDocument||document}function vK(t){return hr(t)&&t.matches(yK)}function SK(t){if(!t||gK())return!0;try{return t.matches(":focus-visible")}catch{return!0}}function EK(t){return t?t.hasAttribute(NT)?t:t.querySelector("["+NT+"]")||t:null}function Nd(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,...Nd(t,s.id,n)])}function xK(t){return"nativeEvent"in t}function r0(t,e){const n=["mouse","pen"];return n.push("",void 0),n.includes(t)}var wK=typeof document<"u",TK=function(){},Ro=wK?C.useLayoutEffect:TK;const CK={...rM};function yd(t){const e=C.useRef(t);return Ro(()=>{e.current=t}),e}const AK=CK.useInsertionEffect,$K=AK||(t=>t());function Co(t){const e=C.useRef(()=>{});return $K(()=>{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 DT(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(Hl(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 MK(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 RK=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}=DT(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:MK},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}=DT(p,E,m)),$=-1)}return{x:g,y:b,placement:E,strategy:s,middlewareData:S}},OK=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=e0(ct,Y,dt),O=!m.arrow&&Hl(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}}}),NK=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?[Vd(f)]:sK(f)),F=T!=="none";!E&&F&&H.push(...cK(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=iK(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 jT(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function IT(t){return eK.some(e=>t[e]>=0)}const _K=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=jT(c,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:IT(f)}}}case"escaped":{const c=await r.detectOverflow(e,{...l,altBoundary:!0}),f=jT(c,n.floating);return{data:{escapedOffsets:f,escaped:IT(f)}}}default:return{}}}}};function lR(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 DK(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(lR(s)))}const jK=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=DK(g),E=hl(lR(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}}:{}}}},uR=new Set(["left","top"]);async function IK(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=Hl(n),m=no(n)==="y",p=uR.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 LK=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 IK(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=e0(j,T,P)}if(f){const _=E==="y"?"top":"left",L=E==="y"?"bottom":"right",j=w+b[_],P=w-b[L];w=e0(j,w,P)}const $=m.fn({...e,[S]:T,[E]:w});return{...$,data:{x:$.x-n,y:$.y-r,enabled:{[S]:c,[E]:f}}}}}},BK=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=uR.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}}}},UK=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=Hl(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 cR(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=Yd(n)!==l||Yd(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}=cR(e);let c=(l?Yd(n.width):n.width)/r,f=(l?Yd(n.height):n.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const kK=Mo(0);function fR(t){const e=Fn(t);return!rh()||!e.visualViewport?kK:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function PK(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=PK(l,n,r)?fR(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=t0(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=t0(T)}}return hl({width:g,height:b,x:m,y:p})}function ih(t,e){const n=oh(t).scrollLeft;return e?e.left+n:Js(Bo(t)).left+n}function dR(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-ih(t,n),s=n.top+e.scrollTop;return{x:r,y:s}}function HK(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const l=s==="fixed",c=Bo(r),f=e?nh(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)&&((Pl(r)!=="body"||Pc(c))&&(m=oh(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?dR(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 FK(t){return Array.from(t.getClientRects())}function qK(t){const e=Bo(t),n=oh(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+ih(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 LT=25;function GK(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=rh();(!g||g&&e==="fixed")&&(f=s.offsetLeft,m=s.offsetTop)}const p=ih(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<=LT&&(l-=T)}else p<=LT&&(l+=p);return{width:l,height:c,x:f,y:m}}const YK=new Set(["absolute","fixed"]);function VK(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 zT(t,e,n){let r;if(e==="viewport")r=GK(t,n);else if(e==="document")r=qK(Bo(t));else if(Ce(e))r=VK(e,n);else{const s=fR(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return hl(r)}function mR(t,e){const n=fi(t);return n===e||!Ce(n)||ii(n)?!1:qr(n).position==="fixed"||mR(n,e)}function KK(t,e){const n=e.get(t);if(n)return n;let r=si(t,[],!1).filter(f=>Ce(f)&&Pl(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&&YK.has(s.position)||Pc(c)&&!m&&mR(t,c))?r=r.filter(g=>g!==c):s=f,c=fi(c)}return e.set(t,r),r}function XK(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const c=[...n==="clippingAncestors"?nh(e)?[]:KK(e,this._c):[].concat(n),r],f=c[0],m=c.reduce((p,g)=>{const b=zT(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},zT(e,f,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function QK(t){const{width:e,height:n}=cR(t);return{width:e,height:n}}function ZK(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=ih(s)}if(r||!r&&!l)if((Pl(e)!=="body"||Pc(s))&&(f=oh(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?dR(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 my(t){return qr(t).position==="static"}function BT(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 hR(t,e){const n=Fn(t);if(nh(t))return n;if(!hr(t)){let s=fi(t);for(;s&&!ii(s);){if(Ce(s)&&!my(s))return s;s=fi(s)}return n}let r=BT(t,e);for(;r&&KV(r)&&my(r);)r=BT(r,e);return r&&ii(r)&&my(r)&&!Lv(r)?n:r||WV(t)||n}const JK=async function(t){const e=this.getOffsetParent||hR,n=this.getDimensions,r=await n(t.floating);return{reference:ZK(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function WK(t){return qr(t).direction==="rtl"}const tX={convertOffsetParentRelativeRectToViewportRelativeRect:HK,getDocumentElement:Bo,getClippingRect:XK,getOffsetParent:hR,getElementRects:JK,getClientRects:FK,getDimensions:QK,getScale:fl,isElement:Ce,isRTL:WK};function pR(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function eX(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&&!pR(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 nX(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?eX(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&&!pR(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 rX=LK,oX=zK,iX=NK,sX=UK,aX=_K,UT=OK,lX=jK,uX=BK,cX=(t,e,n)=>{const r=new Map,s={platform:tX,...n},l={...s.platform,_c:r};return RK(t,e,{...s,platform:l})};var fX=typeof document<"u",dX=function(){},_d=fX?C.useLayoutEffect:dX;function Kd(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(!Kd(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)&&!Kd(t[l],e[l]))return!1}return!0}return t!==t&&e!==e}function gR(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function kT(t,e){const n=gR(t);return Math.round(e*n)/n}function hy(t){const e=C.useRef(t);return _d(()=>{e.current=t}),e}function mX(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);Kd(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=hy(m),it=hy(s),ct=hy(p),dt=C.useCallback(()=>{if(!F.current||!z.current)return;const D={placement:e,strategy:n,middleware:E};it.current&&(D.platform=it.current),cX(F.current,z.current,D).then(tt=>{const nt={...tt,isPositioned:ct.current!==!1};Y.current&&!Kd(k.current,nt)&&(k.current=nt,th.flushSync(()=>{b(nt)}))})},[E,e,n,it,ct]);_d(()=>{p===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,b(D=>({...D,isPositioned:!1})))},[p]);const Y=C.useRef(!1);_d(()=>(Y.current=!0,()=>{Y.current=!1}),[]),_d(()=>{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=kT(O.floating,g.x),nt=kT(O.floating,g.y);return f?{...D,transform:"translate("+tt+"px, "+nt+"px)",...gR(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 hX=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?UT({element:r.current,padding:s}).fn(n):{}:r?UT({element:r,padding:s}).fn(n):{}}}},pX=(t,e)=>({...rX(t),options:[t,e]}),yR=(t,e)=>({...oX(t),options:[t,e]}),dtt=(t,e)=>({...uX(t),options:[t,e]}),PT=(t,e)=>({...iX(t),options:[t,e]}),mtt=(t,e)=>({...sX(t),options:[t,e]}),htt=(t,e)=>({...aX(t),options:[t,e]}),py=(t,e)=>({...lX(t),options:[t,e]}),gX=(t,e)=>({...hX(t),options:[t,e]});function bR(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 yX="data-floating-ui-focusable",HT="active",FT="selected",bX={...rM};let qT=!1,vX=0;const GT=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+vX++;function SX(){const[t,e]=C.useState(()=>qT?GT():void 0);return Ro(()=>{t==null&&e(GT())},[]),C.useEffect(()=>{qT=!0},[]),t}const EX=bX.useId,vR=EX||SX;function xX(){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 wX=C.createContext(null),TX=C.createContext(null),Hv=()=>{var t;return((t=C.useContext(wX))==null?void 0:t.id)||null},Fv=()=>C.useContext(TX);function qv(t){return"data-floating-ui-"+t}function Lr(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}const YT=qv("safe-polygon");function Dd(t,e,n){if(n&&!r0(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 gy(t){return typeof t=="function"?t():t}function CX(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=Dd($.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(YT),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&&!r0(j.current)||gy(L.current)>0&&!Dd($.current,"open"))return;const ot=Dd($.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"||!cc(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(YT,"");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&&!r0(j.current)||n||gy(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,gy(L.current))))}}},[g,r,n,_,L]);return C.useMemo(()=>f?{reference:O}:{},[f,O])}const o0=()=>{},SR=C.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:o0,setState:o0,isInstantPhase:!1}),AX=()=>C.useContext(SR);function $X(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(SR.Provider,{value:C.useMemo(()=>({...s,setState:l,setCurrentId:f}),[s,f]),children:e})}function MX(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,floatingId:s}=t,{id:l,enabled:c=!0}=e,f=l??s,m=AX(),{currentId:p,setCurrentId:g,initialDelay:b,setState:E,timeoutMs:S}=m;return Ro(()=>{c&&p&&(E({delay:{open:1,close:Dd(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===o0||!n||g(f))},[c,n,g,f]),m}const RX={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},OX={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},VT=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 NX(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}=VT(S),{escapeKey:H,outsidePress:F}=VT(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?Nd(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,xK(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)&&!bK(D)&&!cc(D,s.floating)&&Array.from(nt).every(mt=>!cc(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&&Nd(w.nodesRef.current,G).some(mt=>{var pt;return dy(Y,(pt=mt.context)==null?void 0:pt.elements.floating)});if(dy(Y,s.floating)||dy(Y,s.domReference)||ot)return;const ft=w?Nd(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},rh()?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&&{[RX[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},[OX[p]]:()=>{l.current.insideReactTree=!0}}),[k,p,l]);return C.useMemo(()=>c?{reference:ct,floating:dt}:{},[c,ct,dt])}function _X(t){const{open:e=!1,onOpenChange:n,elements:r}=t,s=vR(),l=C.useRef({}),[c]=C.useState(()=>xX()),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 ER(t){t===void 0&&(t={});const{nodeId:e}=t,n=_X({...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=mX({...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 yy(){return pK()&&hK()}function DX(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===_T(qs(c.domReference))&&(p.current=!0)}function w(){b.current=!0}function $(){b.current=!1}return S.addEventListener("blur",T),yy()&&(S.addEventListener("keydown",w,!0),S.addEventListener("pointerdown",$,!0)),()=>{S.removeEventListener("blur",T),yy()&&(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(yy()&&!S.relatedTarget){if(!b.current&&!vK(T))return}else if(!SK(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=_T(c.domReference?c.domReference.ownerDocument:document);!T&&L===c.domReference||cc((_=l.current.floatingContext)==null?void 0:_.refs.floating.current,L)||cc(c.domReference,L)||$||r(!1,w,"focus")})}}),[l,c.domReference,r,m]);return C.useMemo(()=>f?{reference:E}:{},[f,E])}function by(t,e,n){const r=new Map,s=n==="item";let l=t;if(s&&t){const{[HT]:c,[FT]:f,...m}=t;l=m}return{...n==="floating"&&{tabIndex:-1,[yX]:""},...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&&[HT,FT].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 jX(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=>by(f,t,"reference"),e),l=C.useCallback(f=>by(f,t,"floating"),n),c=C.useCallback(f=>by(f,t,"item"),r);return C.useMemo(()=>({getReferenceProps:s,getFloatingProps:l,getItemProps:c}),[s,l,c])}const IX=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function LX(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=vR(),g=((n=l.domReference)==null?void 0:n.id)||p,b=C.useMemo(()=>{var L;return((L=EK(l.floating))==null?void 0:L.id)||c},[l.floating,c]),E=(r=IX.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]=zl("ScrollArea.Root component was not found in tree");function pl(t,e){const n=Fs(e);Bl(()=>{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 BX=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}),UX=C.forwardRef((t,e)=>{const n=Kr(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?x.jsx(BX,{...t,ref:e}):null}),kX={scrollHideDelay:1e3,type:"hover"},xR=C.forwardRef((t,e)=>{const{type:n,scrollHideDelay:r,scrollbars:s,getStyles:l,...c}=bt("ScrollAreaRoot",kX,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`}})})});xR.displayName="@mantine/core/ScrollAreaRoot";function wR(t,e){const n=t/e;return Number.isNaN(n)?0:n}function sh(t){const e=wR(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function TR(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 PX(t,[e,n]){return Math.min(n,Math.max(e,t))}function KT(t,e,n="ltr"){const r=sh(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=PX(t,m);return TR([0,c],[0,f])(p)}function HX(t,e,n,r="ltr"){const s=sh(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 TR([m,p],b)(t)}function CR(t,e){return t>0&&t<e}function Xd(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[FX,AR]=zl("ScrollAreaScrollbar was not found in tree"),$R=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=Jm(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(FX,{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}})})}),MR=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($R,{"data-orientation":"horizontal",...l,ref:g,sizes:n,style:{...s,"--sa-thumb-width":`${sh(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),CR(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:Xd(f.paddingLeft),paddingEnd:Xd(f.paddingRight)}})}})});MR.displayName="@mantine/core/ScrollAreaScrollbarX";const RR=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($R,{...l,"data-orientation":"vertical",ref:g,sizes:n,style:{"--sa-thumb-height":`${sh(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),CR(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:Xd(f.paddingTop),paddingEnd:Xd(f.paddingBottom)}})}})});RR.displayName="@mantine/core/ScrollAreaScrollbarY";const ah=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=wR(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)=>HX(S,f.current,m,T);return n==="horizontal"?x.jsx(MR,{...b,ref:e,onThumbPositionChange:()=>{if(l.viewport&&c.current){const S=l.viewport.scrollLeft,T=KT(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(RR,{...b,ref:e,onThumbPositionChange:()=>{if(l.viewport&&c.current){const S=l.viewport.scrollTop,T=KT(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});ah.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=Jm(()=>{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(ah,{"data-state":l?"visible":"hidden",...s,ref:e}):null});Yv.displayName="@mantine/core/ScrollAreaScrollbarAuto";const OR=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});OR.displayName="@mantine/core/ScrollAreaScrollbarHover";const qX=C.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Kr(),l=t.orientation==="horizontal",[c,f]=C.useState("hidden"),m=Jm(()=>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(ah,{"data-state":c==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:Vs(t.onPointerEnter,()=>f("interacting")),onPointerLeave:Vs(t.onPointerLeave,()=>f("idle"))}):null}),i0=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(OR,{...r,ref:e,forceMount:n}):s.type==="scroll"?x.jsx(qX,{...r,ref:e,forceMount:n}):s.type==="auto"?x.jsx(Yv,{...r,ref:e,forceMount:n}):s.type==="always"?x.jsx(ah,{...r,ref:e}):null});i0.displayName="@mantine/core/ScrollAreaScrollbar";function GX(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 NR=C.forwardRef((t,e)=>{const{style:n,...r}=t,s=Kr(),l=AR(),{onThumbPositionChange:c}=l,f=xi(e,g=>l.onThumbChange(g)),m=C.useRef(void 0),p=Jm(()=>{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=GX(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)})});NR.displayName="@mantine/core/ScrollAreaThumb";const s0=C.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=AR();return n||s.hasThumb?x.jsx(NR,{ref:e,...r}):null});s0.displayName="@mantine/core/ScrollAreaThumb";const _R=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})})});_R.displayName="@mantine/core/ScrollAreaViewport";const DR={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},YX=(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}}},Fl=It((t,e)=>{const n=bt("ScrollArea",DR,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:YX}),Y=C.useRef(null),Z=bR([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(xR,{getStyles:dt,type:g==="never"?"always":g,scrollHideDelay:b,ref:e,scrollbars:_,...dt("root"),...F,children:[x.jsx(_R,{...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(i0,{...dt("scrollbar"),orientation:"horizontal","data-hidden":g==="never"||$==="present"&&!it?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:x.jsx(s0,{...dt("thumb")})}),(_==="xy"||_==="y")&&x.jsx(i0,{...dt("scrollbar"),orientation:"vertical","data-hidden":g==="never"||$==="present"&&!W?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:x.jsx(s0,{...dt("thumb")})}),x.jsx(UX,{...dt("corner"),"data-hovered":z||void 0,"data-hidden":g==="never"||void 0})]})});Fl.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",DR,t),z=C.useRef(null),k=bR([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(Fl,{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})})})});Fl.classes=Gv;Vv.displayName="@mantine/core/ScrollAreaAutosize";Vv.classes=Gv;Fl.Autosize=Vv;var jR={root:"m_87cf2631"};const VX={__staticSelector:"UnstyledButton"},ql=po((t,e)=>{const n=bt("UnstyledButton",VX,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:jR,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})});ql.classes=jR;ql.displayName="@mantine/core/UnstyledButton";var IR={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:IR,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=IR;Kv.displayName="@mantine/core/VisuallyHidden";var LR={root:"m_1b7284a3"};const KX=(t,{radius:e,shadow:n})=>({root:{"--paper-radius":e===void 0?void 0:Tr(e),"--paper-shadow":jM(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:LR,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:T,vars:p,varsResolver:KX});return x.jsx(ht,{ref:e,mod:[{"data-with-border":m},S],...$("root"),variant:E,...w})});Xv.classes=LR;Xv.displayName="@mantine/core/Paper";function XT(t,e,n,r){return t==="center"||r==="center"?{top:e}:t==="end"?{bottom:n}:t==="start"?{top:n}:{}}function QT(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 XX={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function QX({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",[XX[m]]:r},b=-e/2;return m==="left"?{...g,...XT(p,c,n,s),right:b,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:m==="right"?{...g,...XT(p,c,n,s),left:b,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:m==="top"?{...g,...QT(p,l,n,s,f),bottom:b,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:m==="bottom"?{...g,...QT(p,l,n,s,f),top:b,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const a0=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,...QX({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:s,dir:b,arrowX:c,arrowY:f})}}):null});a0.displayName="@mantine/core/FloatingArrow";function ZX(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 zR={root:"m_9814e45f"};const JX={zIndex:wr("modal")},WX=(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",JX,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:zR,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:j,vars:m,varsResolver:WX});return x.jsx(ht,{ref:e,...H("root"),mod:[{center:g,fixed:p},L],...P,children:b})});Qv.classes=zR;Qv.displayName="@mantine/core/Overlay";function vy(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 tQ({target:t,reuseTargetNode:e,...n}){if(t)return typeof t=="string"?document.querySelector(t)||vy(n):t;if(e){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const s=vy(n);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return vy(n)}const eQ={reuseTargetNode:!0},BR=It((t,e)=>{const{children:n,target:r,reuseTargetNode:s,...l}=bt("Portal",eQ,t),[c,f]=C.useState(!1),m=C.useRef(null);return Bl(()=>(f(!0),m.current=tQ({target:r,reuseTargetNode:s,...l}),Xy(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:th.createPortal(x.jsx(x.Fragment,{children:n}),m.current)});BR.displayName="@mantine/core/Portal";const Ws=It(({withinPortal:t=!0,children:e,...n},r)=>FM()==="test"||!t?x.jsx(x.Fragment,{children:e}):x.jsx(BR,{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"}}},ZT={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function nQ({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][ZT[e]]}:{}:{transitionProperty:t.transitionProperty,...s,...t.common,...t[ZT[e]]}}function rQ({duration:t,exitDuration:e,timingFunction:n,mounted:r,onEnter:s,onExit:l,onEntered:c,onExited:f,enterDelay:m,exitDelay:p}){const g=Kn(),b=Wm(),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(()=>{tc.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 Ul(()=>{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=FM(),{transitionDuration:T,transitionStatus:w,transitionTimingFunction:$}=rQ({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(nQ({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=pY(e),l=xi(s,r),c=$v(t);return c?C.cloneElement(c,{[n]:l}):t}function UR(t){return x.jsx(Kv,{tabIndex:-1,"data-autofocus":!0,...t})}Zv.displayName="@mantine/core/FocusTrap";UR.displayName="@mantine/core/FocusTrapInitialFocus";Zv.InitialFocus=UR;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 kR=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})]}));kR.displayName="@mantine/core/Bars";const PR=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})]}));PR.displayName="@mantine/core/Dots";const HR=C.forwardRef(({className:t,...e},n)=>x.jsx(ht,{component:"span",className:Yn(ro.ovalLoader,t),...e,ref:n}));HR.displayName="@mantine/core/Oval";const FR={bars:kR,oval:HR,dots:PR},oQ={loaders:FR,type:"oval"},iQ=(t,{size:e,color:n})=>({root:{"--loader-size":ln(e,"loader-size"),"--loader-color":n?Zs(n,t):void 0}}),Gl=It((t,e)=>{const n=bt("Loader",oQ,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:iQ});return T?x.jsx(ht,{..._("root"),ref:e,...$,children:T}):x.jsx(ht,{..._("root"),ref:e,component:E[l],variant:S,size:r,...$})});Gl.defaultLoaders=FR;Gl.classes=ro;Gl.displayName="@mantine/core/Loader";var Yl={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const JT={orientation:"horizontal"},sQ=(t,{borderWidth:e})=>({group:{"--ai-border-width":ut(e)}}),Jv=It((t,e)=>{const n=bt("ActionIconGroup",JT,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",JT,t),w=oe({name:"ActionIconGroup",props:n,classes:Yl,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=Yl;Jv.displayName="@mantine/core/ActionIconGroup";const aQ=(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:Yl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:m,varsResolver:aQ,rootSelector:"groupSection"});return x.jsx(ht,{...w("groupSection"),ref:e,variant:p,...T})});Wv.classes=Yl;Wv.displayName="@mantine/core/ActionIconGroupSection";const lQ=(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:Yl,classNames:c,styles:f,unstyled:s,attributes:F,vars:$,varsResolver:lQ});return x.jsxs(ql,{...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(Gl,{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=Yl;gl.displayName="@mantine/core/ActionIcon";gl.Group=Jv;gl.GroupSection=Wv;const qR=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"})}));qR.displayName="@mantine/core/CloseIcon";var GR={root:"m_86a44da5","root--subtle":"m_220c80f2"};const uQ={variant:"subtle"},cQ=(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",uQ,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:GR,classNames:m,styles:g,unstyled:b,attributes:_,vars:l,varsResolver:cQ});return x.jsxs(ql,{ref:e,...j,unstyled:b,variant:T,disabled:S,mod:[{disabled:S||E},$],...P("root",{variant:T,active:!S&&!E}),children:[w||x.jsx(qR,{}),s]})});Hc.classes=GR;Hc.displayName="@mantine/core/CloseButton";function fQ(t){return C.Children.toArray(t).filter(Boolean)}var YR={root:"m_4081bf90"};const dQ={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},mQ=(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}}),Vl=It((t,e)=>{const n=bt("Group",dQ,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=fQ(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:YR,classNames:r,styles:c,unstyled:f,attributes:j,vars:w,varsResolver:mQ});return x.jsx(ht,{...et("root"),ref:e,variant:$,mod:[{grow:S},L],size:_,...P,children:H})});Vl.classes=YR;Vl.displayName="@mantine/core/Group";const[hQ,wi]=zl("ModalBase component was not found in tree");function pQ({opened:t,transitionDuration:e}){const[n,r]=C.useState(t),s=C.useRef(-1),c=Wm()?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 gQ({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=pQ({opened:n,transitionDuration:E});return SY("keydown",T=>{T.key==="Escape"&&s&&!T.isComposing&&n&&T.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&l()},{capture:!0}),uY({opened:n,shouldReturnFocus:r&&c}),{_id:f,titleMounted:m,bodyMounted:g,shouldLockScroll:S,setTitleMounted:p,setBodyMounted:b}}const VR=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}=gQ({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(hQ,{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(Gd,{enabled:et&&S,...Y,children:x.jsx(ht,{ref:F,...H,__vars:{...L,"--mb-z-index":(w||wr("modal")).toString(),"--mb-shadow":jM($),"--mb-padding":Cv(_)},children:T})},dt)})})});VR.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 yQ(){const t=wi();return C.useEffect(()=>(t.setBodyMounted(!0),()=>t.setBodyMounted(!1)),[]),t.getBodyId()}const KR=C.forwardRef(({className:t,...e},n)=>{const r=yQ(),s=wi();return x.jsx(ht,{ref:n,...e,id:r,className:Yn({[yl.body]:!s.unstyled},t)})});KR.displayName="@mantine/core/ModalBaseBody";const XR=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})});XR.displayName="@mantine/core/ModalBaseCloseButton";const QR=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})})})})});QR.displayName="@mantine/core/ModalBaseContent";const ZR=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})});ZR.displayName="@mantine/core/ModalBaseHeader";const bQ={duration:200,timingFunction:"ease",transition:"fade"};function vQ(t){const e=wi();return{...bQ,...e.transitionProps,...t}}const JR=C.forwardRef(({onClick:t,transitionProps:e,style:n,visible:r,...s},l)=>{const c=wi(),f=vQ(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})})});JR.displayName="@mantine/core/ModalBaseOverlay";function SQ(){const t=wi();return C.useEffect(()=>(t.setTitleMounted(!0),()=>t.setTitleMounted(!1)),[]),t.getTitleId()}const WR=C.forwardRef(({className:t,...e},n)=>{const r=SQ(),s=wi();return x.jsx(ht,{component:"h2",ref:n,className:Yn({[yl.title]:!s.unstyled},t),...e,id:r})});WR.displayName="@mantine/core/ModalBaseTitle";function EQ({children:t}){return x.jsx(x.Fragment,{children:t})}const[xQ,wQ]=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 tO=It((t,e)=>{const n=bt("InputClearButton",null,t),{size:r,variant:s,vars:l,classNames:c,styles:f,...m}=n,p=wQ(),{resolvedClassNames:g,resolvedStyles:b}=QM({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})});tO.displayName="@mantine/core/InputClearButton";const TQ={xs:7,sm:8,md:10,lg:12,xl:15};function CQ({__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:TQ[s]},children:[l,n||r]}):n===null?null:n||l||r}const[AQ,lh]=Tv({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),$Q=(t,{size:e})=>({description:{"--input-description-size":e===void 0?void 0:`calc(${ar(e)} - ${ut(2)})`}}),uh=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=lh(),$=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:$Q}),_=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})});uh.classes=Xr;uh.displayName="@mantine/core/InputDescription";const MQ=(t,{size:e})=>({error:{"--input-error-size":e===void 0?void 0:`calc(${ar(e)} - ${ut(2)})`}}),ch=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:MQ}),$=lh(),_=E&&$?.getStyles||w;return x.jsx(ht,{component:"p",ref:e,variant:S,size:p,..._("error",$?.getStyles?{className:s,style:l}:void 0),...T})});ch.classes=Xr;ch.displayName="@mantine/core/InputError";const WT={labelElement:"label"},RQ=(t,{size:e})=>({label:{"--input-label-size":ar(e),"--input-asterisk-color":void 0}}),fh=It((t,e)=>{const n=bt("InputLabel",WT,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",WT,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:RQ}),H=lh(),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:" *"})]})});fh.classes=Xr;fh.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 OQ(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 NQ={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},_Q=(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",NQ,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:_Q}),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(fh,{labelElement:P,id:ft,htmlFor:tt,required:O,...Y,..._,children:T},"label"),pt=N&&x.jsx(uh,{...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(ch,{...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(AQ,{value:{getStyles:dt,describedBy:ot,inputId:tt,labelId:ft,...OQ(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 DQ={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},jQ=(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",DQ,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=lh(),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:jQ}),Tt=dt?{required:m,disabled:T,"aria-invalid":!!S,"aria-describedby":ft?.describedBy,id:ft?.inputId||ct}:{},Jt=CQ({__clearable:tt,__clearSection:D,rightSection:L,__defaultRightSection:nt,size:b});return x.jsx(xQ,{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=fh;pr.Error=ch;pr.Description=uh;pr.Placeholder=t1;pr.ClearButton=tO;pr.displayName="@mantine/core/Input";function IQ(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 LQ={__staticSelector:"InputBase",withAria:!0,size:"sm"},dh=po((t,e)=>{const{inputProps:n,wrapperProps:r,...s}=IQ("InputBase",LQ,t);return x.jsx(pr.Wrapper,{...r,children:x.jsx(pr,{...n,...s,ref:e})})});dh.classes={...pr.classes,...pr.Wrapper.classes};dh.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 eO={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:eO,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:$,vars:m}),j=Kn(),P=WM(),H=JM({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(ZM,{selector:`.${P}`,styles:H.styles,media:H.media}),x.jsx(ht,{ref:e,...L("root",{className:P,style:Zm(H.inlineStyles)}),..._})]})});n1.classes=eO;n1.displayName="@mantine/core/Flex";var nO={root:"m_b6d8b162"};function BQ(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const UQ={inherit:!1},kQ=(t,{variant:e,lineClamp:n,gradient:r,size:s,color:l})=>({root:{"--text-fz":ar(s),"--text-lh":oY(s),"--text-gradient":e==="gradient"?Qy(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",UQ,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:nO,className:b,style:E,classNames:S,styles:T,unstyled:w,attributes:j,vars:g,varsResolver:kQ});return x.jsx(ht,{...H("root",{focusable:!0}),ref:e,component:m?"span":"p",variant:$,mod:[{"data-truncate":BQ(s),"data-line-clamp":typeof r=="number","data-inline":l,"data-inherit":c},_],size:L,...P})});oo.classes=nO;oo.displayName="@mantine/core/Text";var Kl={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const t2={orientation:"horizontal"},PQ=(t,{borderWidth:e})=>({group:{"--button-border-width":ut(e)}}),r1=It((t,e)=>{const n=bt("ButtonGroup",t2,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",t2,t),w=oe({name:"ButtonGroup",props:n,classes:Kl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:p,varsResolver:PQ,rootSelector:"group"});return x.jsx(ht,{...w("group"),ref:e,variant:b,mod:[{"data-orientation":m},E],role:"group",...T})});r1.classes=Kl;r1.displayName="@mantine/core/ButtonGroup";const HQ=(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:Kl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:m,varsResolver:HQ,rootSelector:"groupSection"});return x.jsx(ht,{...w("groupSection"),ref:e,variant:p,...T})});o1.classes=Kl;o1.displayName="@mantine/core/ButtonGroupSection";const FQ={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${ut(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},qQ=(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:Kl,className:l,style:r,classNames:_,styles:L,unstyled:j,attributes:z,vars:s,varsResolver:qQ}),et=!!p,it=!!g;return x.jsxs(ql,{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:FQ,duration:150,children:ct=>x.jsx(ht,{component:"span",...W("loader",{style:ct}),"aria-hidden":!0,children:x.jsx(Gl,{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=Kl;lo.displayName="@mantine/core/Button";lo.Group=r1;lo.GroupSection=o1;const GQ={timeout:1e3};function rO(t){const{children:e,timeout:n,value:r,...s}=bt("CopyButton",GQ,t),l=iY({timeout:n}),c=()=>l.copy(r);return x.jsx(x.Fragment,{children:e({copy:c,copied:l.copied,...s})})}rO.displayName="@mantine/core/CopyButton";function e2({color:t,theme:e,defaultShade:n}){const r=kl({color:t,theme:e});return r.isThemeColor?r.shade===void 0?`var(--mantine-color-${r.color}-${n})`:`var(${r.variable})`:t}var oO={root:"m_bcb3f3c2"};const YQ={color:"yellow"},VQ=(t,{color:e})=>({root:{"--mark-bg-dark":e2({color:e,theme:t,defaultShade:5}),"--mark-bg-light":e2({color:e,theme:t,defaultShade:2})}}),i1=It((t,e)=>{const n=bt("Mark",YQ,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:oO,classNames:r,styles:c,unstyled:f,attributes:b,vars:m,varsResolver:VQ});return x.jsx(ht,{component:"mark",ref:e,variant:g,...S("root"),...E})});i1.classes=oO;i1.displayName="@mantine/core/Mark";function n2(t){return t.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function KQ(t,e){if(e==null)return[{chunk:t,highlighted:!1}];const n=Array.isArray(e)?e.map(n2):n2(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=KQ(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 l0(){return l0=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},l0.apply(null,arguments)}function iO(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[XQ,Xl]=zl("Modal component was not found in tree"),mh=It((t,e)=>{const n=bt("ModalBody",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Xl();return x.jsx(KR,{ref:e,...p.getStyles("body",{classNames:r,style:l,styles:c,className:s}),...m})});mh.classes=Ti;mh.displayName="@mantine/core/ModalBody";const hh=It((t,e)=>{const n=bt("ModalCloseButton",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Xl();return x.jsx(XR,{ref:e,...p.getStyles("close",{classNames:r,style:l,styles:c,className:s}),...m})});hh.classes=Ti;hh.displayName="@mantine/core/ModalCloseButton";const ph=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=Xl(),E=b.scrollAreaComponent||EQ;return x.jsx(QR,{...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})})});ph.classes=Ti;ph.displayName="@mantine/core/ModalContent";const gh=It((t,e)=>{const n=bt("ModalHeader",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Xl();return x.jsx(ZR,{ref:e,...p.getStyles("header",{classNames:r,style:l,styles:c,className:s}),...m})});gh.classes=Ti;gh.displayName="@mantine/core/ModalHeader";const yh=It((t,e)=>{const n=bt("ModalOverlay",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Xl();return x.jsx(JR,{ref:e,...p.getStyles("overlay",{classNames:r,style:l,styles:c,className:s}),...m})});yh.classes=Ti;yh.displayName="@mantine/core/ModalOverlay";const QQ={__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"},ZQ=(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)}}),bh=It((t,e)=>{const n=bt("ModalRoot",QQ,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:ZQ});return x.jsx(XQ,{value:{yOffset:p,scrollAreaComponent:g,getStyles:L,fullScreen:E},children:x.jsx(VR,{ref:e,...L("root"),"data-full-screen":E||void 0,"data-centered":S||void 0,"data-offset-scrollbars":g===Fl.Autosize||void 0,unstyled:f,..._})})});bh.classes=Ti;bh.displayName="@mantine/core/ModalRoot";const[JQ,WQ]=Tv();function sO({children:t}){const[e,n]=C.useState([]),[r,s]=C.useState(wr("modal"));return x.jsx(JQ,{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})}sO.displayName="@mantine/core/ModalStack";const vh=It((t,e)=>{const n=bt("ModalTitle",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Xl();return x.jsx(WR,{ref:e,...p.getStyles("title",{classNames:r,style:l,styles:c,className:s}),...m})});vh.classes=Ti;vh.displayName="@mantine/core/ModalTitle";const tZ={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",tZ,t),S=WQ(),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(bh,{ref:e,radius:m,opened:p,zIndex:S&&g?S.getZIndex(g):b,...E,...w,children:[r&&x.jsx(yh,{visible:$,transitionProps:S&&g?{duration:0}:void 0,...s}),x.jsxs(ph,{radius:m,__hidden:S&&g&&p?g!==S.currentId:!1,children:[T&&x.jsxs(gh,{children:[n&&x.jsx(vh,{children:n}),l&&x.jsx(hh,{...c})]}),x.jsx(mh,{children:f})]})]})});Qr.classes=Ti;Qr.displayName="@mantine/core/Modal";Qr.Root=bh;Qr.Overlay=yh;Qr.Content=ph;Qr.Body=mh;Qr.Header=gh;Qr.Title=vh;Qr.CloseButton=hh;Qr.Stack=sO;var aO={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const eZ={withCloseButton:!0},nZ=(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",eZ,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:aO,props:n,className:r,style:w,classNames:T,styles:$,unstyled:_,attributes:F,vars:L,varsResolver:nZ});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(Gl,{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=aO;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[rZ,lO]=zl("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=lO();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 oZ=(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}}),Sh=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:oZ});return x.jsx(rZ,{value:{getStyles:w,autoContrast:p},children:x.jsx(ht,{ref:e,mod:[{orientation:b},S],...w("root"),...T})})});Sh.classes=Fc;Sh.displayName="@mantine/core/ProgressRoot";const iZ={withAria:!0},Eh=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",iZ,t),T=lO(),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":yV(T.autoContrast,w)?YM({color:p,theme:w,autoContrast:T.autoContrast}):void 0}})});Eh.classes=Fc;Eh.displayName="@mantine/core/ProgressSection";const Ql=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}=QM({classNames:s,styles:l,props:n});return x.jsx(Sh,{ref:e,classNames:E,styles:S,vars:c,...b,children:x.jsx(Eh,{value:r,color:f,striped:m,animated:p,"aria-label":g})})});Ql.classes=Fc;Ql.displayName="@mantine/core/Progress";Ql.Section=Eh;Ql.Root=Sh;Ql.Label=l1;const sZ={duration:100,transition:"fade"};function r2(t,e){return{...sZ,...e,...t}}var xh={tooltip:"m_1b3c8819",arrow:"m_f898399f"};function aZ({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}=ER({placement:e,middleware:[yR({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 lZ={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:wr("popover")},uZ=(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",lZ,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:xh,className:f,style:c,classNames:m,styles:p,unstyled:g,attributes:z,rootSelector:"tooltip",vars:H,varsResolver:uZ}),{handleMouseMove:it,x:ct,y:dt,opened:Y,boundaryRef:Z,floating:O,setOpened:B}=aZ({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=xh;u1.displayName="@mantine/core/TooltipFloating";const uO=C.createContext(!1),cZ=uO.Provider,fZ=()=>C.useContext(uO),dZ={openDelay:0,closeDelay:0};function c1(t){const{openDelay:e,closeDelay:n,children:r}=bt("TooltipGroup",dZ,t);return x.jsx(cZ,{value:!0,children:x.jsx($X,{delay:{open:e,close:n},children:r})})}c1.displayName="@mantine/core/TooltipGroup";c1.extend=t=>t;function mZ(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 hZ(t){const e=mZ(t.middlewares),n=[pX(t.offset)];return e.shift&&n.push(yR(typeof e.shift=="boolean"?{padding:8}:{padding:8,...e.shift})),e.flip&&n.push(typeof e.flip=="boolean"?PT():PT(e.flip)),n.push(gX({element:t.arrowRef,padding:t.arrowOffset})),e.inline?n.push(typeof e.inline=="boolean"?py():py(e.inline)):t.inline&&n.push(py()),n}function pZ(t){const[e,n]=C.useState(t.defaultOpened),s=typeof t.opened=="boolean"?t.opened:e,l=fZ(),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}={}}}=ER({strategy:t.strategy,placement:t.position,open:s,onOpenChange:f,middleware:hZ(t),whileElementsMounted:nX}),{delay:w,currentId:$,setCurrentId:_}=MX(g,{id:c}),{getReferenceProps:L,getFloatingProps:j}=jX([CX(g,{enabled:t.events?.hover,delay:l?w:{open:t.openDelay,close:t.closeDelay},mouseOnly:!t.events?.touch}),DX(g,{enabled:t.events?.focus,visibleOnly:!0}),LX(g,{role:"tooltip"}),NX(g,{enabled:typeof t.opened>"u"})]);Ul(()=>{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 o2={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}},gZ=(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",o2,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",o2,n),{dir:We}=Iv(),cn=C.useRef(null),Zt=pZ({position:ZX(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:xh,className:j,style:L,classNames:w,styles:$,unstyled:_,attributes:Jt,rootSelector:"tooltip",vars:G,varsResolver:gZ}),go=$v(r);if(!Ot&&!go)return null;if(Ot){const Xn=r2(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(a0,{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,Wl=xi(Zt.reference,kM(go),e),vs=r2(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(a0,{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]:Wl}))]})});qc.classes=xh;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(dh,{component:"input",ref:e,...n,__staticSelector:"TextInput"})});f1.classes=dh.classes;f1.displayName="@mantine/core/TextInput";const d1=C.createContext(null);d1.displayName="@mantine/modals/ModalsContext";function yZ(){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 bZ({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=yZ(),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(Vl,{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[vZ,ca]=RY("mantine-modals"),SZ=t=>{const e=t.modalId||rs();return ca("openModal")({...t,modalId:e}),e},EZ=t=>{const e=t.modalId||rs();return ca("openConfirmModal")({...t,modalId:e}),e},xZ=t=>{const e=t.modalId||rs();return ca("openContextModal")({...t,modalId:e}),e},wZ=ca("closeModal"),TZ=ca("closeAllModals"),CZ=t=>ca("updateModal")(t),AZ=t=>ca("updateContextModal")(t),Sy={open:SZ,close:wZ,closeAll:TZ,openConfirmModal:EZ,openContextModal:xZ,updateModal:CZ,updateContextModal:AZ};function i2(t,e){e&&t.type==="confirm"&&t.props.onCancel?.(),t.props.onClose?.()}function $Z(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;i2(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=>{i2(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 MZ(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 RZ({children:t,modalProps:e,labels:n,modals:r}){const[s,l]=C.useReducer($Z,{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]);vZ({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}=MZ(L.props);return{modalProps:j,content:x.jsx(bZ,{...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]})}var OZ={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,...OZ[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 NZ=[["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"}]],_Z=un("outline","alert-triangle","AlertTriangle",NZ);const DZ=[["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"}]],jZ=un("outline","api","Api",DZ);const IZ=[["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"}]],LZ=un("outline","archive","Archive",IZ);const zZ=[["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"}]],BZ=un("outline","atom","Atom",zZ);const UZ=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],cO=un("outline","check","Check",UZ);const kZ=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],PZ=un("outline","chevron-down","ChevronDown",kZ);const HZ=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],FZ=un("outline","chevron-right","ChevronRight",HZ);const qZ=[["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"}]],GZ=un("outline","copy","Copy",qZ);const YZ=[["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"}]],VZ=un("outline","dashboard","Dashboard",YZ);const KZ=[["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"}]],XZ=un("outline","database","Database",KZ);const QZ=[["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"}]],ZZ=un("outline","info-circle","InfoCircle",QZ);const JZ=[["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"}]],WZ=un("outline","logs","Logs",JZ);const tJ=[["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"}]],eJ=un("outline","message-circle","MessageCircle",tJ);const nJ=[["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"}]],rJ=un("outline","search","Search",nJ);const oJ=[["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"}]],iJ=un("outline","stack-2","Stack2",oJ);const sJ=[["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"}]],aJ=un("outline","topology-ring","TopologyRing",sJ);const lJ=[["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"}]],uJ=un("outline","variable","Variable",lJ);const cJ=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],fJ=un("outline","x","X",cJ),dJ=(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},mJ=t=>t.split(`
|
|
67
|
+
`;function vV({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:bV({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,...Zm(n)}}function ly(t){return $o(t).reduce((e,n)=>t[n]!==void 0?`${e}${WG(n)}:${t[n]};`:e,"").trim()}function SV({selector:t,styles:e,media:n,container:r}){const s=e?ly(e):"",l=Array.isArray(n)?n.map(f=>`@media${f.query}{${t}{${ly(f.styles)}}}`):[],c=Array.isArray(r)?r.map(f=>`@container ${f.query}{${t}{${ly(f.styles)}}}`):[];return`${s?`${t}{${s}}`:""}${l.join("")}${c.join("")}`.trim()}function JM(t){const e=Mv();return x.jsx("style",{"data-mantine-styles":"inline",nonce:e?.(),dangerouslySetInnerHTML:{__html:SV(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:se,right:We,inset:cn,display:Zt,flex:on,hiddenFrom:go,visibleFrom:$i,lightHidden:Wl,darkHidden:vs,sx:Xn,...Ss}=t;return{styleProps:Zm({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:se,right:We,inset:cn,display:Zt,flex:on,bdrs:P,hiddenFrom:go,visibleFrom:$i,lightHidden:Wl,darkHidden:vs,sx:Xn}),rest:Ss}}const EV={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=kl({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 xV(t,e){const n=kl({color:t,theme:e});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Dv(t,e)}function wV(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 TT={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 TV(t){return typeof t=="string"&&t in TT?TT[t]:t}const CV=["h1","h2","h3","h4","h5","h6"];function AV(t,e){return typeof t=="string"&&t in e.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&CV.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?ut(t):t}function $V(t){return t}const MV=["h1","h2","h3","h4","h5","h6"];function RV(t,e){return typeof t=="string"&&t in e.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&MV.includes(t)?`var(--mantine-${t}-line-height)`:t}function OV(t,e){return typeof t=="string"&&t in e.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?ut(t):t}function NV(t){return typeof t=="number"?ut(t):t}function _V(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 uy={color:Dv,textColor:xV,fontSize:AV,spacing:_V,radius:OV,identity:$V,size:NV,lineHeight:RV,fontFamily:TV,border:wV};function CT(t){return t.replace("(min-width: ","").replace("em)","")}function DV({media:t,...e}){const r=Object.keys(t).sort((s,l)=>Number(CT(s))-Number(CT(l))).map(s=>({query:s,styles:t[s]}));return{...e,media:r}}function jV(t){if(typeof t!="object"||t===null)return!1;const e=Object.keys(t);return!(e.length===1&&e[0]==="base")}function IV(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function LV(t){return typeof t=="object"&&t!==null?$o(t).filter(e=>e!=="base"):[]}function zV(t,e){return typeof t=="object"&&t!==null&&e in t?t[e]:t}function WM({styleProps:t,data:e,theme:n}){return DV($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=IV(t[s]);if(!jV(t[s]))return c.forEach(p=>{r.inlineStyles[p]=uy[l.type](f,n)}),r;r.hasResponsiveStyles=!0;const m=LV(t[s]);return c.forEach(p=>{f!=null&&(r.styles[p]=uy[l.type](f,n)),m.forEach(g=>{const b=`(min-width: ${n.breakpoints[g]})`;r.media[b]={...r.media[b],[p]:uy[l.type](zV(t[s],g),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function tR(){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 ctt(t){return t}function eR(t){return t.startsWith("data-")?t:`data-${t}`}function BV(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r===void 0||r===""||r===!1||r===null||(e[eR(n)]=t[n]),e},{})}function nR(t){return t?typeof t=="string"?{[eR(t)]:!0}:Array.isArray(t)?[...t].reduce((e,n)=>({...e,...nR(n)}),{}):BV(t):null}function Jy(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...Jy(r,e)}),{}):typeof t=="function"?t(e):t??{}}function UV({theme:t,style:e,vars:n,styleProps:r}){const s=Jy(e,t),l=Jy(n,t);return{...s,...l,...r}}const rR=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=LY()?.()?.(_.sx),H=tR(),F=WM({styleProps:_,theme:w,data:EV}),z={ref:T,style:UV({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":jM(c)?void 0:c||void 0,size:E,...nR(l),...L};return x.jsxs(x.Fragment,{children:[F.hasResponsiveStyles&&x.jsx(JM,{selector:`.${H}`,styles:F.styles,media:F.media}),typeof b=="function"?b(z):x.jsx($,{...z})]})});rR.displayName="@mantine/core/Box";const ht=rR;function oR(t){return t}function ftt(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=oR,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=oR,e}const kV=C.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Iv(){return C.useContext(kV)}var cy={exports:{}},vn={};var AT;function PV(){if(AT)return vn;AT=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 $T;function iR(){if($T)return cy.exports;$T=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(),cy.exports=PV(),cy.exports}var th=iR();const tc=ys(th);function HV(t){if(!t||typeof t=="string")return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function fy(t){return t?.current?t.current.scrollHeight:"auto"}const Xu=typeof window<"u"&&window.requestAnimationFrame,MT=0,FV=t=>({height:0,overflow:"hidden",...t?{}:{display:"none"}});function qV({transitionDuration:t,transitionTimingFunction:e="ease",onTransitionEnd:n=()=>{},opened:r,keepMounted:s=!1}){const l=C.useRef(null),c=FV(s),[f,m]=C.useState(r?{}:c),p=T=>{th.flushSync(()=>m(T))},g=T=>{p(w=>({...w,...T}))};function b(T){const w=t||HV(T);return{transition:`height ${w}ms ${e}, opacity ${w}ms ${e}`}}Ul(()=>{typeof Xu=="function"&&Xu(r?()=>{g({willChange:"height",display:"block",overflow:"hidden"}),Xu(()=>{const T=fy(l);g({...b(T),height:T})})}:()=>{const T=fy(l);g({...b(T),willChange:"height",height:T}),Xu(()=>g({height:MT,overflow:"hidden"}))})},[r]);const E=T=>{if(!(T.target!==l.current||T.propertyName!=="height"))if(r){const w=fy(l);w===f.height?p({}):g({height:w}),n()}else f.height===MT&&(p(c),n())};function S({style:T={},refKey:w="ref",...$}={}){const _=$[w],L={"aria-hidden":!r,...$,[w]:kM(l,_),onTransitionEnd:E,style:{boxSizing:"border-box",...T,...f}};return $n.version.startsWith("18")?r||(L.inert=""):L.inert=!r,L}return S}const GV={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},sR=It((t,e)=>{const{children:n,in:r,transitionDuration:s,transitionTimingFunction:l,style:c,onTransitionEnd:f,animateOpacity:m,keepMounted:p,...g}=bt("Collapse",GV,t),b=Kn(),E=Wm(),T=(b.respectReducedMotion?E:!1)?0:s,w=qV({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})});sR.displayName="@mantine/core/Collapse";function eh(){return typeof window<"u"}function Pl(t){return aR(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=(aR(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function aR(t){return eh()?t instanceof Node||t instanceof Fn(t).Node:!1}function Ce(t){return eh()?t instanceof Element||t instanceof Fn(t).Element:!1}function hr(t){return eh()?t instanceof HTMLElement||t instanceof Fn(t).HTMLElement:!1}function Wy(t){return!eh()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Fn(t).ShadowRoot}const YV=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)&&!YV.has(s)}const VV=new Set(["table","td","th"]);function KV(t){return VV.has(Pl(t))}const XV=[":popover-open",":modal"];function nh(t){return XV.some(e=>{try{return t.matches(e)}catch{return!1}})}const QV=["transform","translate","scale","rotate","perspective"],ZV=["transform","translate","scale","rotate","perspective","filter"],JV=["paint","layout","strict","content"];function Lv(t){const e=rh(),n=Ce(t)?qr(t):t;return QV.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)||ZV.some(r=>(n.willChange||"").includes(r))||JV.some(r=>(n.contain||"").includes(r))}function WV(t){let e=fi(t);for(;hr(e)&&!ii(e);){if(Lv(e))return e;if(nh(e))return null;e=fi(e)}return null}function rh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tK=new Set(["html","body","#document"]);function ii(t){return tK.has(Pl(t))}function qr(t){return Fn(t).getComputedStyle(t)}function oh(t){return Ce(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function fi(t){if(Pl(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wy(t)&&t.host||Bo(t);return Wy(e)?e.host:e}function lR(t){const e=fi(t);return ii(e)?t.ownerDocument?t.ownerDocument.body:t.body:hr(e)&&Pc(e)?e:lR(e)}function si(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=lR(t),l=s===((r=t.ownerDocument)==null?void 0:r.body),c=Fn(s);if(l){const f=t0(c);return e.concat(c,c.visualViewport||[],Pc(s)?s:[],f&&n?si(f):[])}return e.concat(s,si(s,[],n))}function t0(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}const eK=["top","right","bottom","left"],so=Math.min,Sn=Math.max,Yd=Math.round,gd=Math.floor,Mo=t=>({x:t,y:t}),nK={left:"right",right:"left",bottom:"top",top:"bottom"},rK={start:"end",end:"start"};function e0(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 Hl(t){return t.split("-")[1]}function zv(t){return t==="x"?"y":"x"}function Bv(t){return t==="y"?"height":"width"}const oK=new Set(["top","bottom"]);function no(t){return oK.has(ao(t))?"y":"x"}function Uv(t){return zv(no(t))}function iK(t,e,n){n===void 0&&(n=!1);const r=Hl(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=Vd(c)),[c,Vd(c)]}function sK(t){const e=Vd(t);return[n0(t),e,n0(e)]}function n0(t){return t.replace(/start|end/g,e=>rK[e])}const RT=["left","right"],OT=["right","left"],aK=["top","bottom"],lK=["bottom","top"];function uK(t,e,n){switch(t){case"top":case"bottom":return n?e?OT:RT:e?RT:OT;case"left":case"right":return e?aK:lK;default:return[]}}function cK(t,e,n,r){const s=Hl(t);let l=uK(ao(t),n==="start",r);return s&&(l=l.map(c=>c+"-"+s),e&&(l=l.concat(l.map(n0)))),l}function Vd(t){return t.replace(/left|right|bottom|top/g,e=>nK[e])}function fK(t){return{top:0,right:0,bottom:0,left:0,...t}}function kv(t){return typeof t!="number"?fK(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 dK(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function mK(){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 hK(){return/apple/i.test(navigator.vendor)}function pK(){return dK().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function gK(){return mK().includes("jsdom/")}const NT="data-floating-ui-focusable",yK="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function _T(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 cc(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Wy(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 dy(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 bK(t){return t.matches("html,body")}function qs(t){return t?.ownerDocument||document}function vK(t){return hr(t)&&t.matches(yK)}function SK(t){if(!t||gK())return!0;try{return t.matches(":focus-visible")}catch{return!0}}function EK(t){return t?t.hasAttribute(NT)?t:t.querySelector("["+NT+"]")||t:null}function Nd(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,...Nd(t,s.id,n)])}function xK(t){return"nativeEvent"in t}function r0(t,e){const n=["mouse","pen"];return n.push("",void 0),n.includes(t)}var wK=typeof document<"u",TK=function(){},Ro=wK?C.useLayoutEffect:TK;const CK={...rM};function yd(t){const e=C.useRef(t);return Ro(()=>{e.current=t}),e}const AK=CK.useInsertionEffect,$K=AK||(t=>t());function Co(t){const e=C.useRef(()=>{});return $K(()=>{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 DT(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(Hl(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 MK(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 RK=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}=DT(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:MK},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}=DT(p,E,m)),$=-1)}return{x:g,y:b,placement:E,strategy:s,middlewareData:S}},OK=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=e0(ct,Y,dt),O=!m.arrow&&Hl(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}}}),NK=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?[Vd(f)]:sK(f)),F=T!=="none";!E&&F&&H.push(...cK(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=iK(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 jT(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function IT(t){return eK.some(e=>t[e]>=0)}const _K=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=jT(c,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:IT(f)}}}case"escaped":{const c=await r.detectOverflow(e,{...l,altBoundary:!0}),f=jT(c,n.floating);return{data:{escapedOffsets:f,escaped:IT(f)}}}default:return{}}}}};function uR(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 DK(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(uR(s)))}const jK=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=DK(g),E=hl(uR(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}}:{}}}},cR=new Set(["left","top"]);async function IK(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=Hl(n),m=no(n)==="y",p=cR.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 LK=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 IK(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=e0(j,T,P)}if(f){const _=E==="y"?"top":"left",L=E==="y"?"bottom":"right",j=w+b[_],P=w-b[L];w=e0(j,w,P)}const $=m.fn({...e,[S]:T,[E]:w});return{...$,data:{x:$.x-n,y:$.y-r,enabled:{[S]:c,[E]:f}}}}}},BK=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=cR.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}}}},UK=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=Hl(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 fR(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=Yd(n)!==l||Yd(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}=fR(e);let c=(l?Yd(n.width):n.width)/r,f=(l?Yd(n.height):n.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const kK=Mo(0);function dR(t){const e=Fn(t);return!rh()||!e.visualViewport?kK:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function PK(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=PK(l,n,r)?dR(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=t0(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=t0(T)}}return hl({width:g,height:b,x:m,y:p})}function ih(t,e){const n=oh(t).scrollLeft;return e?e.left+n:Js(Bo(t)).left+n}function mR(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-ih(t,n),s=n.top+e.scrollTop;return{x:r,y:s}}function HK(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const l=s==="fixed",c=Bo(r),f=e?nh(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)&&((Pl(r)!=="body"||Pc(c))&&(m=oh(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?mR(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 FK(t){return Array.from(t.getClientRects())}function qK(t){const e=Bo(t),n=oh(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+ih(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 LT=25;function GK(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=rh();(!g||g&&e==="fixed")&&(f=s.offsetLeft,m=s.offsetTop)}const p=ih(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<=LT&&(l-=T)}else p<=LT&&(l+=p);return{width:l,height:c,x:f,y:m}}const YK=new Set(["absolute","fixed"]);function VK(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 zT(t,e,n){let r;if(e==="viewport")r=GK(t,n);else if(e==="document")r=qK(Bo(t));else if(Ce(e))r=VK(e,n);else{const s=dR(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return hl(r)}function hR(t,e){const n=fi(t);return n===e||!Ce(n)||ii(n)?!1:qr(n).position==="fixed"||hR(n,e)}function KK(t,e){const n=e.get(t);if(n)return n;let r=si(t,[],!1).filter(f=>Ce(f)&&Pl(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&&YK.has(s.position)||Pc(c)&&!m&&hR(t,c))?r=r.filter(g=>g!==c):s=f,c=fi(c)}return e.set(t,r),r}function XK(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const c=[...n==="clippingAncestors"?nh(e)?[]:KK(e,this._c):[].concat(n),r],f=c[0],m=c.reduce((p,g)=>{const b=zT(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},zT(e,f,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function QK(t){const{width:e,height:n}=fR(t);return{width:e,height:n}}function ZK(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=ih(s)}if(r||!r&&!l)if((Pl(e)!=="body"||Pc(s))&&(f=oh(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?mR(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 my(t){return qr(t).position==="static"}function BT(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 pR(t,e){const n=Fn(t);if(nh(t))return n;if(!hr(t)){let s=fi(t);for(;s&&!ii(s);){if(Ce(s)&&!my(s))return s;s=fi(s)}return n}let r=BT(t,e);for(;r&&KV(r)&&my(r);)r=BT(r,e);return r&&ii(r)&&my(r)&&!Lv(r)?n:r||WV(t)||n}const JK=async function(t){const e=this.getOffsetParent||pR,n=this.getDimensions,r=await n(t.floating);return{reference:ZK(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function WK(t){return qr(t).direction==="rtl"}const tX={convertOffsetParentRelativeRectToViewportRelativeRect:HK,getDocumentElement:Bo,getClippingRect:XK,getOffsetParent:pR,getElementRects:JK,getClientRects:FK,getDimensions:QK,getScale:fl,isElement:Ce,isRTL:WK};function gR(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function eX(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&&!gR(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 nX(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?eX(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&&!gR(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 rX=LK,oX=zK,iX=NK,sX=UK,aX=_K,UT=OK,lX=jK,uX=BK,cX=(t,e,n)=>{const r=new Map,s={platform:tX,...n},l={...s.platform,_c:r};return RK(t,e,{...s,platform:l})};var fX=typeof document<"u",dX=function(){},_d=fX?C.useLayoutEffect:dX;function Kd(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(!Kd(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)&&!Kd(t[l],e[l]))return!1}return!0}return t!==t&&e!==e}function yR(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function kT(t,e){const n=yR(t);return Math.round(e*n)/n}function hy(t){const e=C.useRef(t);return _d(()=>{e.current=t}),e}function mX(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);Kd(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=hy(m),it=hy(s),ct=hy(p),dt=C.useCallback(()=>{if(!F.current||!z.current)return;const D={placement:e,strategy:n,middleware:E};it.current&&(D.platform=it.current),cX(F.current,z.current,D).then(tt=>{const nt={...tt,isPositioned:ct.current!==!1};Y.current&&!Kd(k.current,nt)&&(k.current=nt,th.flushSync(()=>{b(nt)}))})},[E,e,n,it,ct]);_d(()=>{p===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,b(D=>({...D,isPositioned:!1})))},[p]);const Y=C.useRef(!1);_d(()=>(Y.current=!0,()=>{Y.current=!1}),[]),_d(()=>{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=kT(O.floating,g.x),nt=kT(O.floating,g.y);return f?{...D,transform:"translate("+tt+"px, "+nt+"px)",...yR(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 hX=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?UT({element:r.current,padding:s}).fn(n):{}:r?UT({element:r,padding:s}).fn(n):{}}}},pX=(t,e)=>({...rX(t),options:[t,e]}),bR=(t,e)=>({...oX(t),options:[t,e]}),dtt=(t,e)=>({...uX(t),options:[t,e]}),PT=(t,e)=>({...iX(t),options:[t,e]}),mtt=(t,e)=>({...sX(t),options:[t,e]}),htt=(t,e)=>({...aX(t),options:[t,e]}),py=(t,e)=>({...lX(t),options:[t,e]}),gX=(t,e)=>({...hX(t),options:[t,e]});function vR(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 yX="data-floating-ui-focusable",HT="active",FT="selected",bX={...rM};let qT=!1,vX=0;const GT=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+vX++;function SX(){const[t,e]=C.useState(()=>qT?GT():void 0);return Ro(()=>{t==null&&e(GT())},[]),C.useEffect(()=>{qT=!0},[]),t}const EX=bX.useId,SR=EX||SX;function xX(){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 wX=C.createContext(null),TX=C.createContext(null),Hv=()=>{var t;return((t=C.useContext(wX))==null?void 0:t.id)||null},Fv=()=>C.useContext(TX);function qv(t){return"data-floating-ui-"+t}function Lr(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}const YT=qv("safe-polygon");function Dd(t,e,n){if(n&&!r0(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 gy(t){return typeof t=="function"?t():t}function CX(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=Dd($.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(YT),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&&!r0(j.current)||gy(L.current)>0&&!Dd($.current,"open"))return;const ot=Dd($.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"||!cc(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(YT,"");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&&!r0(j.current)||n||gy(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,gy(L.current))))}}},[g,r,n,_,L]);return C.useMemo(()=>f?{reference:O}:{},[f,O])}const o0=()=>{},ER=C.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:o0,setState:o0,isInstantPhase:!1}),AX=()=>C.useContext(ER);function $X(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(ER.Provider,{value:C.useMemo(()=>({...s,setState:l,setCurrentId:f}),[s,f]),children:e})}function MX(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,floatingId:s}=t,{id:l,enabled:c=!0}=e,f=l??s,m=AX(),{currentId:p,setCurrentId:g,initialDelay:b,setState:E,timeoutMs:S}=m;return Ro(()=>{c&&p&&(E({delay:{open:1,close:Dd(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===o0||!n||g(f))},[c,n,g,f]),m}const RX={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},OX={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},VT=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 NX(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}=VT(S),{escapeKey:H,outsidePress:F}=VT(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?Nd(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,xK(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)&&!bK(D)&&!cc(D,s.floating)&&Array.from(nt).every(mt=>!cc(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),se=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=se&&Y.offsetY>D.clientHeight;if(Zt||on)return}const G=(Z=l.current.floatingContext)==null?void 0:Z.nodeId,ot=w&&Nd(w.nodesRef.current,G).some(mt=>{var pt;return dy(Y,(pt=mt.context)==null?void 0:pt.elements.floating)});if(dy(Y,s.floating)||dy(Y,s.domReference)||ot)return;const ft=w?Nd(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},rh()?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&&{[RX[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},[OX[p]]:()=>{l.current.insideReactTree=!0}}),[k,p,l]);return C.useMemo(()=>c?{reference:ct,floating:dt}:{},[c,ct,dt])}function _X(t){const{open:e=!1,onOpenChange:n,elements:r}=t,s=SR(),l=C.useRef({}),[c]=C.useState(()=>xX()),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 xR(t){t===void 0&&(t={});const{nodeId:e}=t,n=_X({...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=mX({...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 yy(){return pK()&&hK()}function DX(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===_T(qs(c.domReference))&&(p.current=!0)}function w(){b.current=!0}function $(){b.current=!1}return S.addEventListener("blur",T),yy()&&(S.addEventListener("keydown",w,!0),S.addEventListener("pointerdown",$,!0)),()=>{S.removeEventListener("blur",T),yy()&&(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(yy()&&!S.relatedTarget){if(!b.current&&!vK(T))return}else if(!SK(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=_T(c.domReference?c.domReference.ownerDocument:document);!T&&L===c.domReference||cc((_=l.current.floatingContext)==null?void 0:_.refs.floating.current,L)||cc(c.domReference,L)||$||r(!1,w,"focus")})}}),[l,c.domReference,r,m]);return C.useMemo(()=>f?{reference:E}:{},[f,E])}function by(t,e,n){const r=new Map,s=n==="item";let l=t;if(s&&t){const{[HT]:c,[FT]:f,...m}=t;l=m}return{...n==="floating"&&{tabIndex:-1,[yX]:""},...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&&[HT,FT].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 jX(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=>by(f,t,"reference"),e),l=C.useCallback(f=>by(f,t,"floating"),n),c=C.useCallback(f=>by(f,t,"item"),r);return C.useMemo(()=>({getReferenceProps:s,getFloatingProps:l,getItemProps:c}),[s,l,c])}const IX=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function LX(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=SR(),g=((n=l.domReference)==null?void 0:n.id)||p,b=C.useMemo(()=>{var L;return((L=EK(l.floating))==null?void 0:L.id)||c},[l.floating,c]),E=(r=IX.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]=zl("ScrollArea.Root component was not found in tree");function pl(t,e){const n=Fs(e);Bl(()=>{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 BX=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}),UX=C.forwardRef((t,e)=>{const n=Kr(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?x.jsx(BX,{...t,ref:e}):null}),kX={scrollHideDelay:1e3,type:"hover"},wR=C.forwardRef((t,e)=>{const{type:n,scrollHideDelay:r,scrollbars:s,getStyles:l,...c}=bt("ScrollAreaRoot",kX,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`}})})});wR.displayName="@mantine/core/ScrollAreaRoot";function TR(t,e){const n=t/e;return Number.isNaN(n)?0:n}function sh(t){const e=TR(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function CR(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 PX(t,[e,n]){return Math.min(n,Math.max(e,t))}function KT(t,e,n="ltr"){const r=sh(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=PX(t,m);return CR([0,c],[0,f])(p)}function HX(t,e,n,r="ltr"){const s=sh(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 CR([m,p],b)(t)}function AR(t,e){return t>0&&t<e}function Xd(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[FX,$R]=zl("ScrollAreaScrollbar was not found in tree"),MR=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=Jm(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(FX,{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}})})}),RR=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(MR,{"data-orientation":"horizontal",...l,ref:g,sizes:n,style:{...s,"--sa-thumb-width":`${sh(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),AR(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:Xd(f.paddingLeft),paddingEnd:Xd(f.paddingRight)}})}})});RR.displayName="@mantine/core/ScrollAreaScrollbarX";const OR=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(MR,{...l,"data-orientation":"vertical",ref:g,sizes:n,style:{"--sa-thumb-height":`${sh(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),AR(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:Xd(f.paddingTop),paddingEnd:Xd(f.paddingBottom)}})}})});OR.displayName="@mantine/core/ScrollAreaScrollbarY";const ah=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=TR(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)=>HX(S,f.current,m,T);return n==="horizontal"?x.jsx(RR,{...b,ref:e,onThumbPositionChange:()=>{if(l.viewport&&c.current){const S=l.viewport.scrollLeft,T=KT(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(OR,{...b,ref:e,onThumbPositionChange:()=>{if(l.viewport&&c.current){const S=l.viewport.scrollTop,T=KT(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});ah.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=Jm(()=>{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(ah,{"data-state":l?"visible":"hidden",...s,ref:e}):null});Yv.displayName="@mantine/core/ScrollAreaScrollbarAuto";const NR=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});NR.displayName="@mantine/core/ScrollAreaScrollbarHover";const qX=C.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Kr(),l=t.orientation==="horizontal",[c,f]=C.useState("hidden"),m=Jm(()=>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(ah,{"data-state":c==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:Vs(t.onPointerEnter,()=>f("interacting")),onPointerLeave:Vs(t.onPointerLeave,()=>f("idle"))}):null}),i0=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(NR,{...r,ref:e,forceMount:n}):s.type==="scroll"?x.jsx(qX,{...r,ref:e,forceMount:n}):s.type==="auto"?x.jsx(Yv,{...r,ref:e,forceMount:n}):s.type==="always"?x.jsx(ah,{...r,ref:e}):null});i0.displayName="@mantine/core/ScrollAreaScrollbar";function GX(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 _R=C.forwardRef((t,e)=>{const{style:n,...r}=t,s=Kr(),l=$R(),{onThumbPositionChange:c}=l,f=xi(e,g=>l.onThumbChange(g)),m=C.useRef(void 0),p=Jm(()=>{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=GX(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)})});_R.displayName="@mantine/core/ScrollAreaThumb";const s0=C.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=$R();return n||s.hasThumb?x.jsx(_R,{ref:e,...r}):null});s0.displayName="@mantine/core/ScrollAreaThumb";const DR=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})})});DR.displayName="@mantine/core/ScrollAreaViewport";const jR={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},YX=(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}}},Fl=It((t,e)=>{const n=bt("ScrollArea",jR,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=ie({name:"ScrollArea",props:n,classes:Gv,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:H,vars:p,varsResolver:YX}),Y=C.useRef(null),Z=vR([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(wR,{getStyles:dt,type:g==="never"?"always":g,scrollHideDelay:b,ref:e,scrollbars:_,...dt("root"),...F,children:[x.jsx(DR,{...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(i0,{...dt("scrollbar"),orientation:"horizontal","data-hidden":g==="never"||$==="present"&&!it?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:x.jsx(s0,{...dt("thumb")})}),(_==="xy"||_==="y")&&x.jsx(i0,{...dt("scrollbar"),orientation:"vertical","data-hidden":g==="never"||$==="present"&&!W?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:x.jsx(s0,{...dt("thumb")})}),x.jsx(UX,{...dt("corner"),"data-hovered":z||void 0,"data-hidden":g==="never"||void 0})]})});Fl.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",jR,t),z=C.useRef(null),k=vR([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(Fl,{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})})})});Fl.classes=Gv;Vv.displayName="@mantine/core/ScrollAreaAutosize";Vv.classes=Gv;Fl.Autosize=Vv;var IR={root:"m_87cf2631"};const VX={__staticSelector:"UnstyledButton"},ql=po((t,e)=>{const n=bt("UnstyledButton",VX,t),{className:r,component:s="button",__staticSelector:l,unstyled:c,classNames:f,styles:m,style:p,attributes:g,...b}=n,E=ie({name:l,props:n,classes:IR,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})});ql.classes=IR;ql.displayName="@mantine/core/UnstyledButton";var LR={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=ie({name:"VisuallyHidden",classes:LR,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=LR;Kv.displayName="@mantine/core/VisuallyHidden";var zR={root:"m_1b7284a3"};const KX=(t,{radius:e,shadow:n})=>({root:{"--paper-radius":e===void 0?void 0:Tr(e),"--paper-shadow":IM(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,$=ie({name:"Paper",props:n,classes:zR,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:T,vars:p,varsResolver:KX});return x.jsx(ht,{ref:e,mod:[{"data-with-border":m},S],...$("root"),variant:E,...w})});Xv.classes=zR;Xv.displayName="@mantine/core/Paper";function XT(t,e,n,r){return t==="center"||r==="center"?{top:e}:t==="end"?{bottom:n}:t==="start"?{top:n}:{}}function QT(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 XX={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function QX({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",[XX[m]]:r},b=-e/2;return m==="left"?{...g,...XT(p,c,n,s),right:b,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:m==="right"?{...g,...XT(p,c,n,s),left:b,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:m==="top"?{...g,...QT(p,l,n,s,f),bottom:b,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:m==="bottom"?{...g,...QT(p,l,n,s,f),top:b,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const a0=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,...QX({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:s,dir:b,arrowX:c,arrowY:f})}}):null});a0.displayName="@mantine/core/FloatingArrow";function ZX(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 BR={root:"m_9814e45f"};const JX={zIndex:wr("modal")},WX=(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",JX,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=ie({name:"Overlay",props:n,classes:BR,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:j,vars:m,varsResolver:WX});return x.jsx(ht,{ref:e,...H("root"),mod:[{center:g,fixed:p},L],...P,children:b})});Qv.classes=BR;Qv.displayName="@mantine/core/Overlay";function vy(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 tQ({target:t,reuseTargetNode:e,...n}){if(t)return typeof t=="string"?document.querySelector(t)||vy(n):t;if(e){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const s=vy(n);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return vy(n)}const eQ={reuseTargetNode:!0},UR=It((t,e)=>{const{children:n,target:r,reuseTargetNode:s,...l}=bt("Portal",eQ,t),[c,f]=C.useState(!1),m=C.useRef(null);return Bl(()=>(f(!0),m.current=tQ({target:r,reuseTargetNode:s,...l}),Xy(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:th.createPortal(x.jsx(x.Fragment,{children:n}),m.current)});UR.displayName="@mantine/core/Portal";const Ws=It(({withinPortal:t=!0,children:e,...n},r)=>qM()==="test"||!t?x.jsx(x.Fragment,{children:e}):x.jsx(UR,{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"}}},ZT={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function nQ({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][ZT[e]]}:{}:{transitionProperty:t.transitionProperty,...s,...t.common,...t[ZT[e]]}}function rQ({duration:t,exitDuration:e,timingFunction:n,mounted:r,onEnter:s,onExit:l,onEntered:c,onExited:f,enterDelay:m,exitDelay:p}){const g=Kn(),b=Wm(),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(()=>{tc.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 Ul(()=>{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=qM(),{transitionDuration:T,transitionStatus:w,transitionTimingFunction:$}=rQ({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(nQ({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=pY(e),l=xi(s,r),c=$v(t);return c?C.cloneElement(c,{[n]:l}):t}function kR(t){return x.jsx(Kv,{tabIndex:-1,"data-autofocus":!0,...t})}Zv.displayName="@mantine/core/FocusTrap";kR.displayName="@mantine/core/FocusTrapInitialFocus";Zv.InitialFocus=kR;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 PR=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})]}));PR.displayName="@mantine/core/Bars";const HR=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})]}));HR.displayName="@mantine/core/Dots";const FR=C.forwardRef(({className:t,...e},n)=>x.jsx(ht,{component:"span",className:Yn(ro.ovalLoader,t),...e,ref:n}));FR.displayName="@mantine/core/Oval";const qR={bars:PR,oval:FR,dots:HR},oQ={loaders:qR,type:"oval"},iQ=(t,{size:e,color:n})=>({root:{"--loader-size":ln(e,"loader-size"),"--loader-color":n?Zs(n,t):void 0}}),Gl=It((t,e)=>{const n=bt("Loader",oQ,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,_=ie({name:"Loader",props:n,classes:ro,className:f,style:m,classNames:p,styles:g,unstyled:b,attributes:w,vars:c,varsResolver:iQ});return T?x.jsx(ht,{..._("root"),ref:e,...$,children:T}):x.jsx(ht,{..._("root"),ref:e,component:E[l],variant:S,size:r,...$})});Gl.defaultLoaders=qR;Gl.classes=ro;Gl.displayName="@mantine/core/Loader";var Yl={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const JT={orientation:"horizontal"},sQ=(t,{borderWidth:e})=>({group:{"--ai-border-width":ut(e)}}),Jv=It((t,e)=>{const n=bt("ActionIconGroup",JT,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",JT,t),w=ie({name:"ActionIconGroup",props:n,classes:Yl,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=Yl;Jv.displayName="@mantine/core/ActionIconGroup";const aQ=(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=ie({name:"ActionIconGroupSection",props:n,classes:Yl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:m,varsResolver:aQ,rootSelector:"groupSection"});return x.jsx(ht,{...w("groupSection"),ref:e,variant:p,...T})});Wv.classes=Yl;Wv.displayName="@mantine/core/ActionIconGroupSection";const lQ=(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=ie({name:["ActionIcon",T],props:n,className:r,style:m,classes:Yl,classNames:c,styles:f,unstyled:s,attributes:F,vars:$,varsResolver:lQ});return x.jsxs(ql,{...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(Gl,{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=Yl;gl.displayName="@mantine/core/ActionIcon";gl.Group=Jv;gl.GroupSection=Wv;const GR=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"})}));GR.displayName="@mantine/core/CloseIcon";var YR={root:"m_86a44da5","root--subtle":"m_220c80f2"};const uQ={variant:"subtle"},cQ=(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",uQ,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=ie({name:L||"CloseButton",props:n,className:f,style:p,classes:YR,classNames:m,styles:g,unstyled:b,attributes:_,vars:l,varsResolver:cQ});return x.jsxs(ql,{ref:e,...j,unstyled:b,variant:T,disabled:S,mod:[{disabled:S||E},$],...P("root",{variant:T,active:!S&&!E}),children:[w||x.jsx(GR,{}),s]})});Hc.classes=YR;Hc.displayName="@mantine/core/CloseButton";function fQ(t){return C.Children.toArray(t).filter(Boolean)}var VR={root:"m_4081bf90"};const dQ={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},mQ=(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}}),Vl=It((t,e)=>{const n=bt("Group",dQ,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=fQ(m),F=H.length,z=Cv(p??"md"),W={childWidth:`calc(${100/F}% - (${z} - ${z} / ${F}))`},et=ie({name:"Group",props:n,stylesCtx:W,className:s,style:l,classes:VR,classNames:r,styles:c,unstyled:f,attributes:j,vars:w,varsResolver:mQ});return x.jsx(ht,{...et("root"),ref:e,variant:$,mod:[{grow:S},L],size:_,...P,children:H})});Vl.classes=VR;Vl.displayName="@mantine/core/Group";const[hQ,wi]=zl("ModalBase component was not found in tree");function pQ({opened:t,transitionDuration:e}){const[n,r]=C.useState(t),s=C.useRef(-1),c=Wm()?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 gQ({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=pQ({opened:n,transitionDuration:E});return SY("keydown",T=>{T.key==="Escape"&&s&&!T.isComposing&&n&&T.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&l()},{capture:!0}),uY({opened:n,shouldReturnFocus:r&&c}),{_id:f,titleMounted:m,bodyMounted:g,shouldLockScroll:S,setTitleMounted:p,setBodyMounted:b}}const KR=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}=gQ({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(hQ,{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(Gd,{enabled:et&&S,...Y,children:x.jsx(ht,{ref:F,...H,__vars:{...L,"--mb-z-index":(w||wr("modal")).toString(),"--mb-shadow":IM($),"--mb-padding":Cv(_)},children:T})},dt)})})});KR.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 yQ(){const t=wi();return C.useEffect(()=>(t.setBodyMounted(!0),()=>t.setBodyMounted(!1)),[]),t.getBodyId()}const XR=C.forwardRef(({className:t,...e},n)=>{const r=yQ(),s=wi();return x.jsx(ht,{ref:n,...e,id:r,className:Yn({[yl.body]:!s.unstyled},t)})});XR.displayName="@mantine/core/ModalBaseBody";const QR=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})});QR.displayName="@mantine/core/ModalBaseCloseButton";const ZR=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})})})})});ZR.displayName="@mantine/core/ModalBaseContent";const JR=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})});JR.displayName="@mantine/core/ModalBaseHeader";const bQ={duration:200,timingFunction:"ease",transition:"fade"};function vQ(t){const e=wi();return{...bQ,...e.transitionProps,...t}}const WR=C.forwardRef(({onClick:t,transitionProps:e,style:n,visible:r,...s},l)=>{const c=wi(),f=vQ(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})})});WR.displayName="@mantine/core/ModalBaseOverlay";function SQ(){const t=wi();return C.useEffect(()=>(t.setTitleMounted(!0),()=>t.setTitleMounted(!1)),[]),t.getTitleId()}const tO=C.forwardRef(({className:t,...e},n)=>{const r=SQ(),s=wi();return x.jsx(ht,{component:"h2",ref:n,className:Yn({[yl.title]:!s.unstyled},t),...e,id:r})});tO.displayName="@mantine/core/ModalBaseTitle";function EQ({children:t}){return x.jsx(x.Fragment,{children:t})}const[xQ,wQ]=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 eO=It((t,e)=>{const n=bt("InputClearButton",null,t),{size:r,variant:s,vars:l,classNames:c,styles:f,...m}=n,p=wQ(),{resolvedClassNames:g,resolvedStyles:b}=ZM({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})});eO.displayName="@mantine/core/InputClearButton";const TQ={xs:7,sm:8,md:10,lg:12,xl:15};function CQ({__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:TQ[s]},children:[l,n||r]}):n===null?null:n||l||r}const[AQ,lh]=Tv({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),$Q=(t,{size:e})=>({description:{"--input-description-size":e===void 0?void 0:`calc(${ar(e)} - ${ut(2)})`}}),uh=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=lh(),$=ie({name:["InputWrapper",g],props:n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:E,rootSelector:"description",vars:m,varsResolver:$Q}),_=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})});uh.classes=Xr;uh.displayName="@mantine/core/InputDescription";const MQ=(t,{size:e})=>({error:{"--input-error-size":e===void 0?void 0:`calc(${ar(e)} - ${ut(2)})`}}),ch=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=ie({name:["InputWrapper",b],props:n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:g,rootSelector:"error",vars:m,varsResolver:MQ}),$=lh(),_=E&&$?.getStyles||w;return x.jsx(ht,{component:"p",ref:e,variant:S,size:p,..._("error",$?.getStyles?{className:s,style:l}:void 0),...T})});ch.classes=Xr;ch.displayName="@mantine/core/InputError";const WT={labelElement:"label"},RQ=(t,{size:e})=>({label:{"--input-label-size":ar(e),"--input-asterisk-color":void 0}}),fh=It((t,e)=>{const n=bt("InputLabel",WT,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",WT,n),P=ie({name:["InputWrapper",w],props:n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:L,rootSelector:"label",vars:m,varsResolver:RQ}),H=lh(),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:" *"})]})});fh.classes=Xr;fh.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=ie({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 OQ(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 NQ={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},_Q=(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",NQ,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=ie({name:["InputWrapper",b],props:W||n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:it,vars:m,varsResolver:_Q}),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(fh,{labelElement:P,id:ft,htmlFor:tt,required:O,...Y,..._,children:T},"label"),pt=N&&x.jsx(uh,{...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(ch,{...j,...Y,size:j?.size||Y.size,key:"error",id:j?.id||B},w),Ot=S.map(se=>{switch(se){case"label":return mt;case"input":return Tt;case"description":return pt;case"error":return Jt;default:return null}});return x.jsx(AQ,{value:{getStyles:dt,describedBy:ot,inputId:tt,labelId:ft,...OQ(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 DQ={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},jQ=(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",DQ,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=lh(),mt={offsetBottom:ft?.offsetBottom,offsetTop:ft?.offsetTop},pt=ie({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:jQ}),Tt=dt?{required:m,disabled:T,"aria-invalid":!!S,"aria-describedby":ft?.describedBy,id:ft?.inputId||ct}:{},Jt=CQ({__clearable:tt,__clearSection:D,rightSection:L,__defaultRightSection:nt,size:b});return x.jsx(xQ,{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=fh;pr.Error=ch;pr.Description=uh;pr.Placeholder=t1;pr.ClearButton=eO;pr.displayName="@mantine/core/Input";function IQ(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 LQ={__staticSelector:"InputBase",withAria:!0,size:"sm"},dh=po((t,e)=>{const{inputProps:n,wrapperProps:r,...s}=IQ("InputBase",LQ,t);return x.jsx(pr.Wrapper,{...r,children:x.jsx(pr,{...n,...s,ref:e})})});dh.classes={...pr.classes,...pr.Wrapper.classes};dh.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 nO={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=ie({name:"Flex",classes:nO,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:$,vars:m}),j=Kn(),P=tR(),H=WM({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(JM,{selector:`.${P}`,styles:H.styles,media:H.media}),x.jsx(ht,{ref:e,...L("root",{className:P,style:Zm(H.inlineStyles)}),..._})]})});n1.classes=nO;n1.displayName="@mantine/core/Flex";var rO={root:"m_b6d8b162"};function BQ(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const UQ={inherit:!1},kQ=(t,{variant:e,lineClamp:n,gradient:r,size:s,color:l})=>({root:{"--text-fz":ar(s),"--text-lh":oY(s),"--text-gradient":e==="gradient"?Qy(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",UQ,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=ie({name:["Text",p],props:n,classes:rO,className:b,style:E,classNames:S,styles:T,unstyled:w,attributes:j,vars:g,varsResolver:kQ});return x.jsx(ht,{...H("root",{focusable:!0}),ref:e,component:m?"span":"p",variant:$,mod:[{"data-truncate":BQ(s),"data-line-clamp":typeof r=="number","data-inline":l,"data-inherit":c},_],size:L,...P})});oo.classes=rO;oo.displayName="@mantine/core/Text";var Kl={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const t2={orientation:"horizontal"},PQ=(t,{borderWidth:e})=>({group:{"--button-border-width":ut(e)}}),r1=It((t,e)=>{const n=bt("ButtonGroup",t2,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",t2,t),w=ie({name:"ButtonGroup",props:n,classes:Kl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:p,varsResolver:PQ,rootSelector:"group"});return x.jsx(ht,{...w("group"),ref:e,variant:b,mod:[{"data-orientation":m},E],role:"group",...T})});r1.classes=Kl;r1.displayName="@mantine/core/ButtonGroup";const HQ=(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=ie({name:"ButtonGroupSection",props:n,classes:Kl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:m,varsResolver:HQ,rootSelector:"groupSection"});return x.jsx(ht,{...w("groupSection"),ref:e,variant:p,...T})});o1.classes=Kl;o1.displayName="@mantine/core/ButtonGroupSection";const FQ={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${ut(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},qQ=(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=ie({name:"Button",props:n,classes:Kl,className:l,style:r,classNames:_,styles:L,unstyled:j,attributes:z,vars:s,varsResolver:qQ}),et=!!p,it=!!g;return x.jsxs(ql,{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:FQ,duration:150,children:ct=>x.jsx(ht,{component:"span",...W("loader",{style:ct}),"aria-hidden":!0,children:x.jsx(Gl,{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=Kl;lo.displayName="@mantine/core/Button";lo.Group=r1;lo.GroupSection=o1;const GQ={timeout:1e3};function oO(t){const{children:e,timeout:n,value:r,...s}=bt("CopyButton",GQ,t),l=iY({timeout:n}),c=()=>l.copy(r);return x.jsx(x.Fragment,{children:e({copy:c,copied:l.copied,...s})})}oO.displayName="@mantine/core/CopyButton";function e2({color:t,theme:e,defaultShade:n}){const r=kl({color:t,theme:e});return r.isThemeColor?r.shade===void 0?`var(--mantine-color-${r.color}-${n})`:`var(${r.variable})`:t}var iO={root:"m_bcb3f3c2"};const YQ={color:"yellow"},VQ=(t,{color:e})=>({root:{"--mark-bg-dark":e2({color:e,theme:t,defaultShade:5}),"--mark-bg-light":e2({color:e,theme:t,defaultShade:2})}}),i1=It((t,e)=>{const n=bt("Mark",YQ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,color:p,variant:g,attributes:b,...E}=n,S=ie({name:"Mark",props:n,className:s,style:l,classes:iO,classNames:r,styles:c,unstyled:f,attributes:b,vars:m,varsResolver:VQ});return x.jsx(ht,{component:"mark",ref:e,variant:g,...S("root"),...E})});i1.classes=iO;i1.displayName="@mantine/core/Mark";function n2(t){return t.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function KQ(t,e){if(e==null)return[{chunk:t,highlighted:!1}];const n=Array.isArray(e)?e.map(n2):n2(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=KQ(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 l0(){return l0=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},l0.apply(null,arguments)}function sO(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[XQ,Xl]=zl("Modal component was not found in tree"),mh=It((t,e)=>{const n=bt("ModalBody",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Xl();return x.jsx(XR,{ref:e,...p.getStyles("body",{classNames:r,style:l,styles:c,className:s}),...m})});mh.classes=Ti;mh.displayName="@mantine/core/ModalBody";const hh=It((t,e)=>{const n=bt("ModalCloseButton",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Xl();return x.jsx(QR,{ref:e,...p.getStyles("close",{classNames:r,style:l,styles:c,className:s}),...m})});hh.classes=Ti;hh.displayName="@mantine/core/ModalCloseButton";const ph=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=Xl(),E=b.scrollAreaComponent||EQ;return x.jsx(ZR,{...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})})});ph.classes=Ti;ph.displayName="@mantine/core/ModalContent";const gh=It((t,e)=>{const n=bt("ModalHeader",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Xl();return x.jsx(JR,{ref:e,...p.getStyles("header",{classNames:r,style:l,styles:c,className:s}),...m})});gh.classes=Ti;gh.displayName="@mantine/core/ModalHeader";const yh=It((t,e)=>{const n=bt("ModalOverlay",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Xl();return x.jsx(WR,{ref:e,...p.getStyles("overlay",{classNames:r,style:l,styles:c,className:s}),...m})});yh.classes=Ti;yh.displayName="@mantine/core/ModalOverlay";const QQ={__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"},ZQ=(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)}}),bh=It((t,e)=>{const n=bt("ModalRoot",QQ,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=ie({name:w,classes:Ti,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:$,vars:m,varsResolver:ZQ});return x.jsx(XQ,{value:{yOffset:p,scrollAreaComponent:g,getStyles:L,fullScreen:E},children:x.jsx(KR,{ref:e,...L("root"),"data-full-screen":E||void 0,"data-centered":S||void 0,"data-offset-scrollbars":g===Fl.Autosize||void 0,unstyled:f,..._})})});bh.classes=Ti;bh.displayName="@mantine/core/ModalRoot";const[JQ,WQ]=Tv();function aO({children:t}){const[e,n]=C.useState([]),[r,s]=C.useState(wr("modal"));return x.jsx(JQ,{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})}aO.displayName="@mantine/core/ModalStack";const vh=It((t,e)=>{const n=bt("ModalTitle",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,p=Xl();return x.jsx(tO,{ref:e,...p.getStyles("title",{classNames:r,style:l,styles:c,className:s}),...m})});vh.classes=Ti;vh.displayName="@mantine/core/ModalTitle";const tZ={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",tZ,t),S=WQ(),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(bh,{ref:e,radius:m,opened:p,zIndex:S&&g?S.getZIndex(g):b,...E,...w,children:[r&&x.jsx(yh,{visible:$,transitionProps:S&&g?{duration:0}:void 0,...s}),x.jsxs(ph,{radius:m,__hidden:S&&g&&p?g!==S.currentId:!1,children:[T&&x.jsxs(gh,{children:[n&&x.jsx(vh,{children:n}),l&&x.jsx(hh,{...c})]}),x.jsx(mh,{children:f})]})]})});Qr.classes=Ti;Qr.displayName="@mantine/core/Modal";Qr.Root=bh;Qr.Overlay=yh;Qr.Content=ph;Qr.Body=mh;Qr.Header=gh;Qr.Title=vh;Qr.CloseButton=hh;Qr.Stack=aO;var lO={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const eZ={withCloseButton:!0},nZ=(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",eZ,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=ie({name:"Notification",classes:lO,props:n,className:r,style:w,classNames:T,styles:$,unstyled:_,attributes:F,vars:L,varsResolver:nZ});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(Gl,{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=lO;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[rZ,uO]=zl("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=uO();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 oZ=(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}}),Sh=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=ie({name:"Progress",classes:Fc,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:E,vars:m,varsResolver:oZ});return x.jsx(rZ,{value:{getStyles:w,autoContrast:p},children:x.jsx(ht,{ref:e,mod:[{orientation:b},S],...w("root"),...T})})});Sh.classes=Fc;Sh.displayName="@mantine/core/ProgressRoot";const iZ={withAria:!0},Eh=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",iZ,t),T=uO(),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":yV(T.autoContrast,w)?VM({color:p,theme:w,autoContrast:T.autoContrast}):void 0}})});Eh.classes=Fc;Eh.displayName="@mantine/core/ProgressSection";const Ql=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}=ZM({classNames:s,styles:l,props:n});return x.jsx(Sh,{ref:e,classNames:E,styles:S,vars:c,...b,children:x.jsx(Eh,{value:r,color:f,striped:m,animated:p,"aria-label":g})})});Ql.classes=Fc;Ql.displayName="@mantine/core/Progress";Ql.Section=Eh;Ql.Root=Sh;Ql.Label=l1;const sZ={duration:100,transition:"fade"};function r2(t,e){return{...sZ,...e,...t}}var xh={tooltip:"m_1b3c8819",arrow:"m_f898399f"};function aZ({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}=xR({placement:e,middleware:[bR({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 lZ={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:wr("popover")},uZ=(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",lZ,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=ie({name:"TooltipFloating",props:n,classes:xh,className:f,style:c,classNames:m,styles:p,unstyled:g,attributes:z,rootSelector:"tooltip",vars:H,varsResolver:uZ}),{handleMouseMove:it,x:ct,y:dt,opened:Y,boundaryRef:Z,floating:O,setOpened:B}=aZ({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,PM(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=xh;u1.displayName="@mantine/core/TooltipFloating";const cO=C.createContext(!1),cZ=cO.Provider,fZ=()=>C.useContext(cO),dZ={openDelay:0,closeDelay:0};function c1(t){const{openDelay:e,closeDelay:n,children:r}=bt("TooltipGroup",dZ,t);return x.jsx(cZ,{value:!0,children:x.jsx($X,{delay:{open:e,close:n},children:r})})}c1.displayName="@mantine/core/TooltipGroup";c1.extend=t=>t;function mZ(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 hZ(t){const e=mZ(t.middlewares),n=[pX(t.offset)];return e.shift&&n.push(bR(typeof e.shift=="boolean"?{padding:8}:{padding:8,...e.shift})),e.flip&&n.push(typeof e.flip=="boolean"?PT():PT(e.flip)),n.push(gX({element:t.arrowRef,padding:t.arrowOffset})),e.inline?n.push(typeof e.inline=="boolean"?py():py(e.inline)):t.inline&&n.push(py()),n}function pZ(t){const[e,n]=C.useState(t.defaultOpened),s=typeof t.opened=="boolean"?t.opened:e,l=fZ(),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}={}}}=xR({strategy:t.strategy,placement:t.position,open:s,onOpenChange:f,middleware:hZ(t),whileElementsMounted:nX}),{delay:w,currentId:$,setCurrentId:_}=MX(g,{id:c}),{getReferenceProps:L,getFloatingProps:j}=jX([CX(g,{enabled:t.events?.hover,delay:l?w:{open:t.openDelay,close:t.closeDelay},mouseOnly:!t.events?.touch}),DX(g,{enabled:t.events?.focus,visibleOnly:!0}),LX(g,{role:"tooltip"}),NX(g,{enabled:typeof t.opened>"u"})]);Ul(()=>{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 o2={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}},gZ=(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",o2,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,...se}=bt("Tooltip",o2,n),{dir:We}=Iv(),cn=C.useRef(null),Zt=pZ({position:ZX(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=ie({name:"Tooltip",props:n,classes:xh,className:j,style:L,classNames:w,styles:$,unstyled:_,attributes:Jt,rootSelector:"tooltip",vars:G,varsResolver:gZ}),go=$v(r);if(!Ot&&!go)return null;if(Ot){const Xn=r2(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,{...se,"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(a0,{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,Wl=xi(Zt.reference,PM(go),e),vs=r2(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,{...se,"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(a0,{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]:Wl}))]})});qc.classes=xh;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(dh,{component:"input",ref:e,...n,__staticSelector:"TextInput"})});f1.classes=dh.classes;f1.displayName="@mantine/core/TextInput";const d1=C.createContext(null);d1.displayName="@mantine/modals/ModalsContext";function yZ(){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 bZ({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=yZ(),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(Vl,{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[vZ,ca]=RY("mantine-modals"),SZ=t=>{const e=t.modalId||rs();return ca("openModal")({...t,modalId:e}),e},EZ=t=>{const e=t.modalId||rs();return ca("openConfirmModal")({...t,modalId:e}),e},xZ=t=>{const e=t.modalId||rs();return ca("openContextModal")({...t,modalId:e}),e},wZ=ca("closeModal"),TZ=ca("closeAllModals"),CZ=t=>ca("updateModal")(t),AZ=t=>ca("updateContextModal")(t),Sy={open:SZ,close:wZ,closeAll:TZ,openConfirmModal:EZ,openContextModal:xZ,updateModal:CZ,updateContextModal:AZ};function i2(t,e){e&&t.type==="confirm"&&t.props.onCancel?.(),t.props.onClose?.()}function $Z(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;i2(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=>{i2(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 MZ(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 RZ({children:t,modalProps:e,labels:n,modals:r}){const[s,l]=C.useReducer($Z,{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]);vZ({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}=MZ(L.props);return{modalProps:j,content:x.jsx(bZ,{...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]})}var OZ={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,...OZ[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 NZ=[["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"}]],_Z=un("outline","alert-triangle","AlertTriangle",NZ);const DZ=[["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"}]],jZ=un("outline","api","Api",DZ);const IZ=[["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"}]],LZ=un("outline","archive","Archive",IZ);const zZ=[["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"}]],BZ=un("outline","atom","Atom",zZ);const UZ=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],fO=un("outline","check","Check",UZ);const kZ=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],PZ=un("outline","chevron-down","ChevronDown",kZ);const HZ=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],FZ=un("outline","chevron-right","ChevronRight",HZ);const qZ=[["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"}]],GZ=un("outline","copy","Copy",qZ);const YZ=[["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"}]],VZ=un("outline","dashboard","Dashboard",YZ);const KZ=[["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"}]],XZ=un("outline","database","Database",KZ);const QZ=[["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"}]],ZZ=un("outline","info-circle","InfoCircle",QZ);const JZ=[["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"}]],WZ=un("outline","logs","Logs",JZ);const tJ=[["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"}]],eJ=un("outline","message-circle","MessageCircle",tJ);const nJ=[["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"}]],rJ=un("outline","search","Search",nJ);const oJ=[["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"}]],iJ=un("outline","stack-2","Stack2",oJ);const sJ=[["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"}]],aJ=un("outline","topology-ring","TopologyRing",sJ);const lJ=[["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"}]],uJ=un("outline","variable","Variable",lJ);const cJ=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],fJ=un("outline","x","X",cJ),dJ=(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},mJ=t=>t.split(`
|
|
68
68
|
`).map(e=>e.trim()).filter(e=>e.length>0),hJ=({error:t,showStack:e=!0,copyable:n=!0,size:r="sm"})=>{const[s,l]=C.useState(!1),c=dJ(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?mJ(b):[],S=()=>m?`${p}: ${g}${b?`
|
|
69
69
|
|
|
70
|
-
${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(rO,{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(cO,{size:f}):x.jsx(GZ,{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(PZ,{size:c.icon}):x.jsx(FZ,{size:c.icon})}),x.jsxs(oo,{c:"dimmed",size:c.text,fw:500,children:["Stack Trace (",E.length-1," frames)"]})]}),x.jsx(iR,{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))})})]})]})]})},pJ=({options:t,onClose:e})=>x.jsxs(x.Fragment,{children:[t?.message&&x.jsx(oo,{mb:"md",children:t.message}),x.jsx(Vl,{justify:"flex-end",children:x.jsx(lo,{onClick:e,children:t?.okLabel||"OK"})})]}),gJ=({options:t,onConfirm:e})=>x.jsxs(x.Fragment,{children:[t?.message&&x.jsx(oo,{mb:"md",children:t.message}),x.jsxs(Vl,{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"})]})]}),yJ=({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(Vl,{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"})]})]})},m1={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}}};class s2{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(pJ,{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(gJ,{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(yJ,{options:e,onSubmit:s=>{this.close(r),n(s)}})})})}open(e){return Sy.open({...this.options.default,...e,children:e?.content||e?.message})}close(e){e?Sy.close(e):Sy.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:m1.colors.surface,children:x.jsx(hJ,{size:"xs",error:e,showStack:n?.showStack??!0})})})}form(e){return Promise.resolve(null)}loading(e){}image(e,n){}}function h1(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 p1(t){return C.useSyncExternalStore(t.subscribe,()=>t.getState(),()=>t.getState())}function bJ(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 vJ=()=>h1({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),fa=vJ(),SJ=(t=fa)=>p1(t);function Zl(t,e){const n=t.getState(),r=e([...n.notifications,...n.queue]),s=bJ(r,n.defaultPosition,n.limit);t.setState({notifications:s.notifications,queue:s.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function EJ(t,e=fa){const n=t.id||rs();return Zl(e,r=>t.id&&r.some(s=>s.id===t.id)?r:[...r,{...t,id:n}]),n}function fO(t,e=fa){return Zl(e,n=>n.filter(r=>r.id===t?(r.onClose?.(r),!1):!0)),t}function xJ(t,e=fa){return Zl(e,n=>n.map(r=>r.id===t.id?{...r,...t}:r)),t.id}function wJ(t=fa){Zl(t,()=>[])}function TJ(t=fa){Zl(t,e=>e.slice(0,t.getState().limit))}const ls={show:EJ,hide:fO,update:xJ,clean:wJ,cleanQueue:TJ,updateState:Zl};function u0(t,e){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},u0(t,e)}function dO(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,u0(t,e)}const a2={disabled:!1},Qd=$n.createContext(null);var CJ=function(e){return e.scrollTop},ec="unmounted",ks="exited",Ps="entering",ol="entered",c0="exiting",Ci=(function(t){dO(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=ec:m=ks,l.state={status:m},l.nextCallback=null,l}e.getDerivedStateFromProps=function(s,l){var c=s.in;return c&&l.status===ec?{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=c0)}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:tc.findDOMNode(this);c&&CJ(c)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ks&&this.setState({status:ec})},n.performEnter=function(s){var l=this,c=this.props.enter,f=this.context?this.context.isMounting:s,m=this.props.nodeRef?[f]:[tc.findDOMNode(this),f],p=m[0],g=m[1],b=this.getTimeouts(),E=f?b.appear:b.enter;if(!s&&!c||a2.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:tc.findDOMNode(this);if(!l||a2.disabled){this.safeSetState({status:ks},function(){s.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:c0},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:tc.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===ec)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=iO(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $n.createElement(Qd.Provider,{value:null},typeof c=="function"?c(s,f):$n.cloneElement($n.Children.only(c),f))},e})($n.Component);Ci.contextType=Qd;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=ec;Ci.EXITED=ks;Ci.ENTERING=Ps;Ci.ENTERED=ol;Ci.EXITING=c0;function AJ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g1(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 $J(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 MJ(t,e){return g1(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 RJ(t,e,n){var r=g1(t.children),s=$J(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 OJ=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},NJ={component:"div",childFactory:function(e){return e}},Wi=(function(t){dO(e,t);function e(r,s){var l;l=t.call(this,r,s)||this;var c=l.handleExited.bind(AJ(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?MJ(s,f):RJ(s,c,f),firstRender:!1}},n.handleExited=function(s,l){var c=g1(this.props.children);s.key in c||(s.props.onExited&&s.props.onExited(l),this.mounted&&this.setState(function(f){var m=l0({},f.children);return delete m[s.key],{children:m}}))},n.render=function(){var s=this.props,l=s.component,c=s.childFactory,f=iO(s,["component","childFactory"]),m=this.state.contextValue,p=OJ(this.state.children).map(c);return delete f.appear,delete f.enter,delete f.exit,l===null?$n.createElement(Qd.Provider,{value:m},p):$n.createElement(Qd.Provider,{value:m},$n.createElement(l,f,p))},e})($n.Component);Wi.propTypes={};Wi.defaultProps=NJ;const mO=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function _J(t,e){return t.reduce((n,r)=>(n[r.position||e].push(r),n),mO.reduce((n,r)=>(n[r]=[],n),{}))}const l2={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},DJ={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function jJ({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:l2[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:DJ[c]},p={opacity:0,maxHeight:0,transform:l2[c]};return{...f,...{entering:m,entered:m,exiting:p,exited:p}[t]}}function IJ(t,e){return typeof e=="number"?e:e===!1||t===!1?!1:t}const hO=C.forwardRef(({data:t,onHide:e,autoClose:n,...r},s)=>{const{autoClose:l,message:c,...f}=t,m=IJ(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})});hO.displayName="@mantine/notifications/NotificationContainer";var pO={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const LJ=Ci,zJ={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:wr("overlay"),store:fa,withinPortal:!0},BJ=(t,{zIndex:e,containerWidth:n})=>({root:{"--notifications-z-index":e?.toString(),"--notifications-container-width":ut(n)}}),Ai=It((t,e)=>{const n=bt("Notifications",zJ,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=SJ($),F=yY(),z=Wm(),k=C.useRef({}),W=C.useRef(0),it=(P.respectReducedMotion?z:!1)?1:b,ct=oe({name:"Notifications",classes:pO,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,vars:m,varsResolver:BJ});C.useEffect(()=>{$?.updateState(Z=>({...Z,limit:T||5,defaultPosition:p}))},[T,p]),Ul(()=>{H.notifications.length>W.current&&setTimeout(()=>F(),0),W.current=H.notifications.length},[H.notifications]);const dt=_J(H.notifications,p),Y=mO.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(hO,{ref:nt=>{nt&&(k.current[D.id]=nt)},data:D,onHide:nt=>fO(nt,$),autoClose:g,...ct("notification",{style:{...jJ({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:Gd.classNames.fullWidth}),"data-position":"top-right",...j,children:x.jsx(Wi,{children:Y["top-right"]})}),x.jsx(ht,{...ct("root",{className:Gd.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=pO;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;class f0{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(ZZ,{size:20}),title:"Info",message:"Information notification",...e})}success(e){typeof e=="string"&&(e={message:e}),this.show({color:"green",icon:x.jsx(cO,{size:16}),title:"Success",message:"Operation completed successfully",...e})}warning(e){typeof e=="string"&&(e={message:e}),this.show({color:"yellow",icon:x.jsx(_Z,{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(fJ,{size:20}),title:"Error",message:"An error occurred",...e})}}class gO{fetch(e,n={}){throw new Ut("Fetch is not available for this environment.")}render(e,n={}){throw new Ut("Render is not available for this environment.")}}const Cn=t=>us(yO,t);class yO extends di{reactPageService=Rt(gO);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)}}Cn[Rn]=yO;class UJ{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 Ut(`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 Ut(`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 Ut(`Route '${n}' has an invalid param syntax`);if(f.startsWith(":")){const m=r[l].slice(1).replaceAll("}","");if(!m)throw new Ut(`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 Ut(`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 bO=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"})]}),wh=typeof window<"u",vO=({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(!wh)return;const $=_=>{_.key==="c"&&!_.metaKey&&!_.ctrlKey&&SO(t.stack||t.message)};return window.addEventListener("keydown",$),()=>window.removeEventListener("keydown",$)},[t]),p)return x.jsx(qJ,{});const g=kJ(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(HJ,{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(u2,{frame:$,index:_},`${$.raw}-${_}`)),T>0&&!n&&x.jsx(c2,{onClick:()=>r(!0),label:`Show ${T} more frames`}),n&&T>0&&x.jsx(c2,{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(u2,{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 kJ(t){if(!t)return[];const e=t.split(`
|
|
71
|
-
`).slice(1),n=[];for(const r of e){const s=r.trim();if(!s.startsWith("at "))continue;const l=PJ(s);l&&n.push(l)}return n}function PJ(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 SO(t){return!wh||!navigator.clipboard?Promise.resolve(!1):navigator.clipboard.writeText(t).then(()=>!0).catch(()=>!1)}function HJ({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 SO(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 u2({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:FJ(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&&wh?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 FJ(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 c2({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 qJ(){const[t,e]=C.useState(!1),n=()=>{wh&&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 eo='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:eo,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:eo},copyBtnHover:{backgroundColor:"#252525",color:"#bbb",borderColor:"#555"},message:{margin:0,fontSize:"18px",fontWeight:400,color:"#e8e8e8",lineHeight:1.6,wordBreak:"break-word",fontFamily:eo},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:eo},frameContent:{flex:1,minWidth:0},fnName:{fontSize:"13px",fontWeight:500,marginBottom:"4px",fontFamily:eo},filePath:{fontSize:"12px",color:"#888",fontFamily:eo,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:eo},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:eo},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:eo},prodMessage:{margin:"0 0 28px",fontSize:"13px",color:"#888",lineHeight:1.6,fontFamily:eo},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:eo}},EO=C.createContext(void 0);class jd extends Ut{redirect;constructor(e){super("Redirection"),this.redirect=e}}const GJ=()=>{const[t]=vv("alepha.react.router.state");if(!t)throw new Ut("Missing react router state");return t},YJ=t=>{const e=C.use(EO),n=e?.index??0,r=e?.onError,s=GJ(),l=Km(),[c,f]=C.useState(s.layers[n]?.element),[m,p]=C.useState(""),g=C.useRef(0),b=C.useRef(0);pM({"react:transition:begin":async({previous:T,state:w})=>{const $=T.layers[n];if(!$||`${w.url.pathname}/`.startsWith(`${$.path}/`))return;const _=f2($.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 $=f2(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(tT,{fallback:t.errorBoundary,children:E});const S=T=>{const w=r?.(T,s)??x.jsx(vO,{error:T,alepha:l});return w instanceof jd?"Redirection inside ErrorBoundary is not allowed.":w};return x.jsx(tT,{fallback:S,children:E})},d0=C.memo(YJ);function f2(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 VJ=R.object({REACT_STRICT_MODE:R.boolean({default:!0})});class Zd{log=ho();env=hv(VJ);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 Ut(`Page '${e}' not found`)}pathname(e,n={}){const r=this.page(e);if(!r)throw new Ut(`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(oM.Provider,{value:this.alepha},C.createElement(d0,{},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 jd)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 jd)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 jd)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(vO,{error:e,alepha:this.alepha})}renderEmptyView(){return C.createElement(d0,{})}href(e,n={}){const r=this.pages.find(c=>c.name===e.options.name);if(!r)throw new Ut(`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(Tq,typeof s.client=="object"?s.client:{},r):r;return C.createElement(EO.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:bO,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 Ut("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 KJ=t=>t&&typeof t=="object"&&typeof t.path=="string"&&typeof t.page=="object";class m0 extends UJ{log=ho();alepha=Rt(Re);pageApi=Rt(Zd);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??{},KJ(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(bO),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 XJ=Ll({name:"alepha.react.browser.options",schema:R.object({scrollRestoration:R.enum(["top","manual"])}),default:{scrollRestoration:"top"}});class h0{log=ho();client=Rt(Uc);alepha=Rt(Re);router=Rt(m0);dateTimeProvider=Rt(zo);browserHeadProvider=Rt(Ev);options=pq(XJ);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 push(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 Ey={exports:{}},Zu={},xy={exports:{}},wy={};var d2;function QJ(){return d2||(d2=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}}}})(wy)),wy}var m2;function ZJ(){return m2||(m2=1,xy.exports=QJ()),xy.exports}var h2;function JJ(){if(h2)return Zu;h2=1;var t=ZJ(),e=pv(),n=oR();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)?qx(o):0;break;default:if(o=i.tagName,i=i.namespaceURI)i=qx(i),o=Gx(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=Gx(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),Hu._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(`
|
|
70
|
+
${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(oO,{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(fO,{size:f}):x.jsx(GZ,{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(PZ,{size:c.icon}):x.jsx(FZ,{size:c.icon})}),x.jsxs(oo,{c:"dimmed",size:c.text,fw:500,children:["Stack Trace (",E.length-1," frames)"]})]}),x.jsx(sR,{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))})})]})]})]})},pJ=({options:t,onClose:e})=>x.jsxs(x.Fragment,{children:[t?.message&&x.jsx(oo,{mb:"md",children:t.message}),x.jsx(Vl,{justify:"flex-end",children:x.jsx(lo,{onClick:e,children:t?.okLabel||"OK"})})]}),gJ=({options:t,onConfirm:e})=>x.jsxs(x.Fragment,{children:[t?.message&&x.jsx(oo,{mb:"md",children:t.message}),x.jsxs(Vl,{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"})]})]}),yJ=({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(Vl,{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"})]})]})},m1={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}}};class s2{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(pJ,{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(gJ,{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(yJ,{options:e,onSubmit:s=>{this.close(r),n(s)}})})})}open(e){return Sy.open({...this.options.default,...e,children:e?.content||e?.message})}close(e){e?Sy.close(e):Sy.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:m1.colors.surface,children:x.jsx(hJ,{size:"xs",error:e,showStack:n?.showStack??!0})})})}form(e){return Promise.resolve(null)}loading(e){}image(e,n){}}function h1(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 p1(t){return C.useSyncExternalStore(t.subscribe,()=>t.getState(),()=>t.getState())}function bJ(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 vJ=()=>h1({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),fa=vJ(),SJ=(t=fa)=>p1(t);function Zl(t,e){const n=t.getState(),r=e([...n.notifications,...n.queue]),s=bJ(r,n.defaultPosition,n.limit);t.setState({notifications:s.notifications,queue:s.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function EJ(t,e=fa){const n=t.id||rs();return Zl(e,r=>t.id&&r.some(s=>s.id===t.id)?r:[...r,{...t,id:n}]),n}function dO(t,e=fa){return Zl(e,n=>n.filter(r=>r.id===t?(r.onClose?.(r),!1):!0)),t}function xJ(t,e=fa){return Zl(e,n=>n.map(r=>r.id===t.id?{...r,...t}:r)),t.id}function wJ(t=fa){Zl(t,()=>[])}function TJ(t=fa){Zl(t,e=>e.slice(0,t.getState().limit))}const ls={show:EJ,hide:dO,update:xJ,clean:wJ,cleanQueue:TJ,updateState:Zl};function u0(t,e){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},u0(t,e)}function mO(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,u0(t,e)}const a2={disabled:!1},Qd=$n.createContext(null);var CJ=function(e){return e.scrollTop},ec="unmounted",ks="exited",Ps="entering",ol="entered",c0="exiting",Ci=(function(t){mO(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=ec:m=ks,l.state={status:m},l.nextCallback=null,l}e.getDerivedStateFromProps=function(s,l){var c=s.in;return c&&l.status===ec?{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=c0)}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:tc.findDOMNode(this);c&&CJ(c)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ks&&this.setState({status:ec})},n.performEnter=function(s){var l=this,c=this.props.enter,f=this.context?this.context.isMounting:s,m=this.props.nodeRef?[f]:[tc.findDOMNode(this),f],p=m[0],g=m[1],b=this.getTimeouts(),E=f?b.appear:b.enter;if(!s&&!c||a2.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:tc.findDOMNode(this);if(!l||a2.disabled){this.safeSetState({status:ks},function(){s.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:c0},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:tc.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===ec)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=sO(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $n.createElement(Qd.Provider,{value:null},typeof c=="function"?c(s,f):$n.cloneElement($n.Children.only(c),f))},e})($n.Component);Ci.contextType=Qd;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=ec;Ci.EXITED=ks;Ci.ENTERING=Ps;Ci.ENTERED=ol;Ci.EXITING=c0;function AJ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g1(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 $J(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 MJ(t,e){return g1(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 RJ(t,e,n){var r=g1(t.children),s=$J(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 OJ=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},NJ={component:"div",childFactory:function(e){return e}},Wi=(function(t){mO(e,t);function e(r,s){var l;l=t.call(this,r,s)||this;var c=l.handleExited.bind(AJ(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?MJ(s,f):RJ(s,c,f),firstRender:!1}},n.handleExited=function(s,l){var c=g1(this.props.children);s.key in c||(s.props.onExited&&s.props.onExited(l),this.mounted&&this.setState(function(f){var m=l0({},f.children);return delete m[s.key],{children:m}}))},n.render=function(){var s=this.props,l=s.component,c=s.childFactory,f=sO(s,["component","childFactory"]),m=this.state.contextValue,p=OJ(this.state.children).map(c);return delete f.appear,delete f.enter,delete f.exit,l===null?$n.createElement(Qd.Provider,{value:m},p):$n.createElement(Qd.Provider,{value:m},$n.createElement(l,f,p))},e})($n.Component);Wi.propTypes={};Wi.defaultProps=NJ;const hO=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function _J(t,e){return t.reduce((n,r)=>(n[r.position||e].push(r),n),hO.reduce((n,r)=>(n[r]=[],n),{}))}const l2={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},DJ={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function jJ({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:l2[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:DJ[c]},p={opacity:0,maxHeight:0,transform:l2[c]};return{...f,...{entering:m,entered:m,exiting:p,exited:p}[t]}}function IJ(t,e){return typeof e=="number"?e:e===!1||t===!1?!1:t}const pO=C.forwardRef(({data:t,onHide:e,autoClose:n,...r},s)=>{const{autoClose:l,message:c,...f}=t,m=IJ(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})});pO.displayName="@mantine/notifications/NotificationContainer";var gO={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const LJ=Ci,zJ={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:wr("overlay"),store:fa,withinPortal:!0},BJ=(t,{zIndex:e,containerWidth:n})=>({root:{"--notifications-z-index":e?.toString(),"--notifications-container-width":ut(n)}}),Ai=It((t,e)=>{const n=bt("Notifications",zJ,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=SJ($),F=yY(),z=Wm(),k=C.useRef({}),W=C.useRef(0),it=(P.respectReducedMotion?z:!1)?1:b,ct=ie({name:"Notifications",classes:gO,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,vars:m,varsResolver:BJ});C.useEffect(()=>{$?.updateState(Z=>({...Z,limit:T||5,defaultPosition:p}))},[T,p]),Ul(()=>{H.notifications.length>W.current&&setTimeout(()=>F(),0),W.current=H.notifications.length},[H.notifications]);const dt=_J(H.notifications,p),Y=hO.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(pO,{ref:nt=>{nt&&(k.current[D.id]=nt)},data:D,onHide:nt=>dO(nt,$),autoClose:g,...ct("notification",{style:{...jJ({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:Gd.classNames.fullWidth}),"data-position":"top-right",...j,children:x.jsx(Wi,{children:Y["top-right"]})}),x.jsx(ht,{...ct("root",{className:Gd.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=gO;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;class f0{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(ZZ,{size:20}),title:"Info",message:"Information notification",...e})}success(e){typeof e=="string"&&(e={message:e}),this.show({color:"green",icon:x.jsx(fO,{size:16}),title:"Success",message:"Operation completed successfully",...e})}warning(e){typeof e=="string"&&(e={message:e}),this.show({color:"yellow",icon:x.jsx(_Z,{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(fJ,{size:20}),title:"Error",message:"An error occurred",...e})}}class yO{fetch(e,n={}){throw new Ut("Fetch is not available for this environment.")}render(e,n={}){throw new Ut("Render is not available for this environment.")}}const Cn=t=>us(bO,t);class bO extends di{reactPageService=Rt(yO);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)}}Cn[Rn]=bO;class UJ{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 Ut(`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 Ut(`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 Ut(`Route '${n}' has an invalid param syntax`);if(f.startsWith(":")){const m=r[l].slice(1).replaceAll("}","");if(!m)throw new Ut(`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 Ut(`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 vO=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"})]}),wh=typeof window<"u",SO=({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(!wh)return;const $=_=>{_.key==="c"&&!_.metaKey&&!_.ctrlKey&&EO(t.stack||t.message)};return window.addEventListener("keydown",$),()=>window.removeEventListener("keydown",$)},[t]),p)return x.jsx(qJ,{});const g=kJ(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(HJ,{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(u2,{frame:$,index:_},`${$.raw}-${_}`)),T>0&&!n&&x.jsx(c2,{onClick:()=>r(!0),label:`Show ${T} more frames`}),n&&T>0&&x.jsx(c2,{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(u2,{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 kJ(t){if(!t)return[];const e=t.split(`
|
|
71
|
+
`).slice(1),n=[];for(const r of e){const s=r.trim();if(!s.startsWith("at "))continue;const l=PJ(s);l&&n.push(l)}return n}function PJ(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 EO(t){return!wh||!navigator.clipboard?Promise.resolve(!1):navigator.clipboard.writeText(t).then(()=>!0).catch(()=>!1)}function HJ({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 EO(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 u2({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:FJ(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&&wh?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 FJ(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 c2({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 qJ(){const[t,e]=C.useState(!1),n=()=>{wh&&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 eo='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:eo,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:eo},copyBtnHover:{backgroundColor:"#252525",color:"#bbb",borderColor:"#555"},message:{margin:0,fontSize:"18px",fontWeight:400,color:"#e8e8e8",lineHeight:1.6,wordBreak:"break-word",fontFamily:eo},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:eo},frameContent:{flex:1,minWidth:0},fnName:{fontSize:"13px",fontWeight:500,marginBottom:"4px",fontFamily:eo},filePath:{fontSize:"12px",color:"#888",fontFamily:eo,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:eo},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:eo},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:eo},prodMessage:{margin:"0 0 28px",fontSize:"13px",color:"#888",lineHeight:1.6,fontFamily:eo},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:eo}},xO=C.createContext(void 0);class jd extends Ut{redirect;constructor(e){super("Redirection"),this.redirect=e}}const GJ=()=>{const[t]=vv("alepha.react.router.state");if(!t)throw new Ut("Missing react router state");return t},YJ=t=>{const e=C.use(xO),n=e?.index??0,r=e?.onError,s=GJ(),l=Km(),[c,f]=C.useState(s.layers[n]?.element),[m,p]=C.useState(""),g=C.useRef(0),b=C.useRef(0);pM({"react:transition:begin":async({previous:T,state:w})=>{const $=T.layers[n];if(!$||`${w.url.pathname}/`.startsWith(`${$.path}/`))return;const _=f2($.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 $=f2(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(tT,{fallback:t.errorBoundary,children:E});const S=T=>{const w=r?.(T,s)??x.jsx(SO,{error:T,alepha:l});return w instanceof jd?"Redirection inside ErrorBoundary is not allowed.":w};return x.jsx(tT,{fallback:S,children:E})},d0=C.memo(YJ);function f2(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 VJ=R.object({REACT_STRICT_MODE:R.boolean({default:!0})});class Zd{log=ho();env=hv(VJ);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 Ut(`Page '${e}' not found`)}pathname(e,n={}){const r=this.page(e);if(!r)throw new Ut(`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(oM.Provider,{value:this.alepha},C.createElement(d0,{},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 jd)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 jd)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 jd)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(SO,{error:e,alepha:this.alepha})}renderEmptyView(){return C.createElement(d0,{})}href(e,n={}){const r=this.pages.find(c=>c.name===e.options.name);if(!r)throw new Ut(`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(Cq,typeof s.client=="object"?s.client:{},r):r;return C.createElement(xO.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:vO,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 Ut("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 KJ=t=>t&&typeof t=="object"&&typeof t.path=="string"&&typeof t.page=="object";class m0 extends UJ{log=ho();alepha=Rt(Re);pageApi=Rt(Zd);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??{},KJ(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(vO),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 XJ=Ll({name:"alepha.react.browser.options",schema:R.object({scrollRestoration:R.enum(["top","manual"])}),default:{scrollRestoration:"top"}});class h0{log=ho();client=Rt(Uc);alepha=Rt(Re);router=Rt(m0);dateTimeProvider=Rt(zo);browserHeadProvider=Rt(Ev);options=gq(XJ);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 push(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 Ey={exports:{}},Zu={},xy={exports:{}},wy={};var d2;function QJ(){return d2||(d2=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}}}})(wy)),wy}var m2;function ZJ(){return m2||(m2=1,xy.exports=QJ()),xy.exports}var h2;function JJ(){if(h2)return Zu;h2=1;var t=ZJ(),e=pv(),n=iR();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)?qx(o):0;break;default:if(o=i.tagName,i=i.namespaceURI)i=qx(i),o=Gx(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 se(o){o.memoizedState!==null&&ot(Tt,o);var i=ft.current,a=Gx(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),Hu._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(`
|
|
72
72
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
73
73
|
`+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(`
|
|
74
74
|
`),K=A.split(`
|
|
75
75
|
`);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=`
|
|
76
76
|
`+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 Wl(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+=Wl(o,a),a=o,o=o.return;while(o);return i}catch(u){return`
|
|
77
77
|
Error generating stack: `+u.message+`
|
|
78
|
-
`+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,x1=t.unstable_ImmediatePriority,w1=t.unstable_UserBlockingPriority,Yc=t.unstable_NormalPriority,kO=t.unstable_LowPriority,T1=t.unstable_IdlePriority,PO=t.log,HO=t.unstable_setDisableYieldValue,tu=null,Zn=null;function Mi(o){if(typeof PO=="function"&&HO(o),Zn&&typeof Zn.setStrictMode=="function")try{Zn.setStrictMode(tu,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 eu(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 C1(){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 nu(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&&A1(o,u,0),h!==0&&d===0&&o.tag!==0&&(o.suspendedLanes|=h&~(v&~i))}function A1(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 $1(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 M1(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 R1(){var o=B.p;return o!==0?o:(o=window.event,o===void 0?32:hw(o.type))}function O1(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,N1="__reactResources$"+Ri,ru="__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=Jx(o);o!==null;){if(a=o[fn])return a;o=Jx(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 ou(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[N1];return i||(i=o[N1]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function sn(o){o[ru]=!0}var _1=new Set,D1={};function xs(o,i){ga(o,i),ga(o+"Capture",i)}function ga(o,i){for(D1[o]=i,o=0;o<i.length;o++)_1.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]*$"),j1={},I1={};function ZO(o){return Xn.call(I1,o)?!0:Xn.call(j1,o)?!1:QO.test(o)?I1[o]=!0:(j1[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 L1(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=L1(o)?"checked":"value";o._valueTracker=JO(o,i,""+o[i])}}function z1(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var a=i.getValue(),u="";return o&&(u=L1(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 B1(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 U1(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 k1(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 P1(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 H1(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&&P1(o,d,u)}else for(var h in i)i.hasOwnProperty(h)&&P1(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 F1(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&&z1(u)}break t;case"textarea":U1(o,a.value,a.defaultValue);break t;case"select":i=a.value,i!=null&&ya(o,!!a.multiple,i,!1)}}}var Fh=!1;function q1(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,F1(i),o)))for(i=0;i<o.length;i++)F1(o[i])}}function iu(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 su={};Object.defineProperty(su,"passive",{get:function(){qh=!0}}),window.addEventListener("test",su,su),window.removeEventListener("test",su,su)}catch{qh=!1}var Oi=null,Gh=null,ef=null;function G1(){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 Y1(){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:Y1,this.isPropagationStopped=Y1,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),au=b({},ws,{view:0,detail:0}),rN=jn(au),Yh,Vh,lu,sf=b({},au,{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!==lu&&(lu&&o.type==="mousemove"?(Yh=o.screenX-lu.screenX,Vh=o.screenY-lu.screenY):Vh=Yh=0,lu=o),Yh)},movementY:function(o){return"movementY"in o?o.movementY:Vh}}),V1=jn(sf),oN=b({},sf,{dataTransfer:0}),iN=jn(oN),sN=b({},au,{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}),K1=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({},au,{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}),X1=jn(bN),vN=b({},au,{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,uu=null;Po&&"documentMode"in document&&(uu=document.documentMode);var MN=Po&&"TextEvent"in window&&!uu,Q1=Po&&(!Qh||uu&&8<uu&&11>=uu),Z1=" ",J1=!1;function W1(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 tS(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 tS(i);case"keypress":return i.which!==32?null:(J1=!0,Z1);case"textInput":return o=i.data,o===Z1&&J1?null:o;default:return null}}function ON(o,i){if(Ea)return o==="compositionend"||!Qh&&W1(o,i)?(o=G1(),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 Q1&&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 eS(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i==="input"?!!NN[o.type]:i==="textarea"}function nS(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 cu=null,fu=null;function _N(o){Bx(o,0)}function af(o){var i=ou(o);if(z1(i))return o}function rS(o,i){if(o==="change")return i}var oS=!1;if(Po){var Zh;if(Po){var Jh="oninput"in document;if(!Jh){var iS=document.createElement("div");iS.setAttribute("oninput","return;"),Jh=typeof iS.oninput=="function"}Zh=Jh}else Zh=!1;oS=Zh&&(!document.documentMode||9<document.documentMode)}function sS(){cu&&(cu.detachEvent("onpropertychange",aS),fu=cu=null)}function aS(o){if(o.propertyName==="value"&&af(fu)){var i=[];nS(i,fu,o,Hh(o)),q1(_N,i)}}function DN(o,i,a){o==="focusin"?(sS(),cu=i,fu=a,cu.attachEvent("onpropertychange",aS)):o==="focusout"&&sS()}function jN(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return af(fu)}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 du(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 lS(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function uS(o,i){var a=lS(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=lS(a)}}function cS(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?cS(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function fS(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,mu=null,ep=!1;function dS(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}),mu&&du(mu,u)||(mu=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={},mS={};Po&&(mS=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 mS)return np[o]=i[a];return o}var hS=Cs("animationend"),pS=Cs("animationiteration"),gS=Cs("animationstart"),UN=Cs("transitionrun"),kN=Cs("transitionstart"),PN=Cs("transitioncancel"),yS=Cs("transitionend"),bS=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){bS.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&&vS(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 vS(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<Iu)throw Iu=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 SS(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 ES(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 xS=new WeakMap;function Rr(o,i){if(typeof o=="object"&&o!==null){var a=xS.get(o);return a!==void 0?a:(i={value:o,source:i,stack:vs(i)},xS.set(o,i),i)}return{value:o,source:i,stack:vs(i)}}var Aa=[],$a=0,mf=null,hu=0,Or=[],Nr=0,Ni=null,yo=1,bo="";function Fo(o,i){Aa[$a++]=hu,Aa[$a++]=mf,mf=o,hu=i}function wS(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),wS(o,1,0))}function cp(o){for(;o===mf;)mf=Aa[--$a],Aa[$a]=null,hu=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 TS(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 pu(Rr(i,o)),fp}function CS(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<zu.length;a++)qt(zu[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),B1(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),k1(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||Hx(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 AS(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 AS(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),AS(o),i===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));we=Zx(o)}else if(i===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));we=Zx(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 pu(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(Hu):o=[Hu])}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 $S(Rs,o)}function pf(o,i){return Rs===null&&Os(o),$S(o,i)}function $S(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 gu(o){o.refCount--,o.refCount===0&&qN(GN,function(){o.controller.abort()})}var yu=null,yp=0,Oa=0,Na=null;function YN(o,i){if(yu===null){var a=yu=[];yp=0,Oa=Sg(),Na={status:"pending",value:void 0,then:function(u){a.push(u)}}}return yp++,i.then(MS,MS),i}function MS(){if(--yp===0&&yu!==null){Na!==null&&(Na.status="fulfilled");var o=yu;yu=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 RS=O.S;O.S=function(o,i){dx=Qn(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&YN(o,i),RS!==null&&RS(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 OS(){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 NS(o){return o=o.status,o==="fulfilled"||o==="rejected"}function _S(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,jS(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,jS(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 DS(){if(Ds===null)throw Error(r(459));var o=Ds;return Ds=null,o}function jS(o){if(o===_a||o===yf)throw Error(r(483))}var Da=null,bu=0;function vf(o){var i=bu;return bu+=1,Da===null&&(Da=[]),_S(Da,o,i)}function vu(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 IS(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),vu(U,V),U.return=q,U):(U=df(V.type,V.key,V.props,null,q.mode,st),vu(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),vu(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),vu(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),vu(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{bu=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=IS(!0),LS=IS(!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),vS(o,null,a),i}return cf(o,u,i,a),ff(o)}function Su(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,$1(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 Eu(){if(wp){var o=Na;if(o!==null)throw o}}function xu(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 zS(o,i){if(typeof o!="function")throw Error(r(191,o));o.call(i)}function BS(o,i){var a=o.callbacks;if(a!==null)for(o.callbacks=null,o=0;o<a.length;o++)zS(a[o],i)}var ja=N(null),Ef=N(0);function US(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 kS(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,wu=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?wE:Fp,Is=!1,h=a(u,d),Is=!1,Ia&&(h=HS(i,a,u,d)),PS(o),h}function PS(o){O.H=Au;var i=ue!==null&&ue.next!==null;if(Yo=0,Ye=ue=zt=null,wf=!1,wu=0,La=null,i)throw Error(r(300));o===null||Ve||(o=o.dependencies,o!==null&&hf(o)&&(Ve=!0))}function HS(o,i,a,u){zt=o;var d=0;do{if(Ia&&(La=null),wu=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=TE,h=i(a,u)}while(Ia);return h}function XN(){var o=O.H,i=o.useState()[0];return i=typeof i.then=="function"?Tu(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,wu=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 Tu(o){var i=wu;return wu+=1,La===null&&(La=[]),o=_S(La,o,i),i=zt,(Ye===null?i.memoizedState:Ye.next)===null&&(i=i.alternate,O.H=i===null||i.memoizedState===null?wE:Fp),o}function Af(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Tu(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 FS(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(YS.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},GS.bind(null,u,d,a,i),null),pe===null)throw Error(r(349));h||(Yo&127)!==0||qS(u,i,a)}return a}function qS(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 GS(o,i,a,u){i.value=a,i.getSnapshot=u,VS(i)&&KS(o)}function YS(o,i,a){return a(function(){VS(i)&&KS(o)})}function VS(o){var i=o.getSnapshot;o=o.value;try{var a=i();return!Wn(o,a)}catch{return!0}}function KS(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 XS(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,QS(i,h)):(h.next=a.next,i.pending=a.next=h)}}function QS(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),ZS(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),ZS(o,i,h)}catch(K){Lp(o,i,K)}}function ZS(o,i,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){JS(o,i,u)},function(u){return Lp(o,i,u)}):JS(o,i,a)}function JS(o,i,a){i.status="fulfilled",i.value=a,WS(i),o.state=a,i=o.pending,i!==null&&(a=i.next,a===i?o.pending=null:(a=a.next,i.next=a,QS(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,WS(i),i=i.next;while(i!==u)}o.action=null}function WS(o){o=o.listeners;for(var i=0;i<o.length;i++)(0,o[i])()}function tE(o,i){return i}function eE(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:tE,lastRenderedState:i},a.queue=u,a=SE.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 nE(o){var i=ke();return rE(i,ue,o)}function rE(o,i,a){if(i=Dp(o,i,tE)[0],o=$f(Vo)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=Tu(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 oE(o){var i=ke(),a=ue;if(a!==null)return rE(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 iE(){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 sE(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 aE(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 lE(o,i){return Rf(4,2,o,i)}function uE(o,i){return Rf(4,4,o,i)}function cE(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 fE(o,i,a){a=a!=null?a.concat([o]):null,Rf(4,4,cE.bind(null,i,o),a)}function Bp(){}function dE(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 mE(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=hx(),zt.lanes|=o,Hi|=o,a)}function hE(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=hx(),zt.lanes|=o,Hi|=o,i)}function pE(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);Cu(o,i,rt,ir(o))}else Cu(o,i,u,ir(o))}catch(lt){Cu(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=gE(o).queue;pE(o,d,i,D,a===null?WN:function(){return yE(o),a(u)})}function gE(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 yE(o){var i=gE(o);i.next===null&&(i=o.alternate.memoizedState),Cu(o,i.next.queue,{},ir())}function Pp(){return mn(Hu)}function bE(){return ke().memoizedState}function vE(){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),Su(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)?EE(i,a):(a=ip(o,i,a,u),a!==null&&(Un(a,o,u),xE(a,i,u)))}function SE(o,i,a){var u=ir();Cu(o,i,a,u)}function Cu(o,i,a,u){var d={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Of(o))EE(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),xE(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 EE(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 xE(o,i,a){if((a&4194048)!==0){var u=i.lanes;u&=o.pendingLanes,a|=u,i.lanes=a,$1(o,a)}}var Au={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};Au.useEffectEvent=Le;var wE={readContext:mn,use:Af,useCallback:function(o,i){return Tn().memoizedState=[o,i===void 0?null:i],o},useContext:mn,useEffect:sE,useImperativeHandle:function(o,i,a){a=a!=null?a.concat([o]):null,Mf(4194308,4,cE.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=SE.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=pE.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||qS(u,i,a)}d.memoizedState=a;var h={value:a,getSnapshot:i};return d.queue=h,sE(YS.bind(null,u,h,o),[o]),u.flags|=2048,za(9,{destroy:void 0},GS.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:eE,useActionState:eE,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:dE,useContext:mn,useEffect:zp,useImperativeHandle:fE,useInsertionEffect:lE,useLayoutEffect:uE,useMemo:mE,useReducer:$f,useRef:iE,useState:function(){return $f(Vo)},useDebugValue:Bp,useDeferredValue:function(o,i){var a=ke();return hE(a,ue.memoizedState,o,i)},useTransition:function(){var o=$f(Vo)[0],i=ke().memoizedState;return[typeof o=="boolean"?o:Tu(o),i]},useSyncExternalStore:FS,useId:bE,useHostTransitionStatus:Pp,useFormState:nE,useActionState:nE,useOptimistic:function(o,i){var a=ke();return XS(a,ue,o,i)},useMemoCache:_p,useCacheRefresh:vE};Fp.useEffectEvent=aE;var TE={readContext:mn,use:Af,useCallback:dE,useContext:mn,useEffect:zp,useImperativeHandle:fE,useInsertionEffect:lE,useLayoutEffect:uE,useMemo:mE,useReducer:jp,useRef:iE,useState:function(){return jp(Vo)},useDebugValue:Bp,useDeferredValue:function(o,i){var a=ke();return ue===null?Up(a,o,i):hE(a,ue.memoizedState,o,i)},useTransition:function(){var o=jp(Vo)[0],i=ke().memoizedState;return[typeof o=="boolean"?o:Tu(o),i]},useSyncExternalStore:FS,useId:bE,useHostTransitionStatus:Pp,useFormState:oE,useActionState:oE,useOptimistic:function(o,i){var a=ke();return ue!==null?XS(a,ue,o,i):(a.baseState=o,[o,a.queue.dispatch])},useMemoCache:_p,useCacheRefresh:vE};TE.useEffectEvent=aE;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),Su(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),Su(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),Su(i,o,a))}};function CE(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?!du(a,u)||!du(d,h):!0}function AE(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 $E(o){lf(o)}function ME(o){console.error(o)}function RE(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 OE(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 NE(o){return o=Li(o),o.tag=3,o}function _E(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(){OE(i,a,u)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(o.callback=function(){OE(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}),pu(Rr(o,a)))):(u!==fp&&(i=Error(r(423),{cause:u}),pu(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),ju===null?ju=[h]:ju.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=NE(d),_E(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?LS(i,null,a,u):js(i,o.child,a,u)}function DE(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 jE(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,IE(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:du,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 IE(o,i,a,u,d){if(o!==null){var h=o.memoizedProps;if(du(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 LE(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 zE(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?US(i,h):Tp(),kS(i);else return u=i.lanes=536870912,zE(o,i,h!==null?h.baseLanes|a:a,a,u)}else h!==null?(gf(i,h.cachePool),US(i,h),Ui(),i.memoizedState=null):(o!==null&&gf(i,null),Tp(),Ui());return hn(o,i,d,a),i.child}function $u(o,i){return o!==null&&o.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function zE(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(),kS(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 BE(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,$u(null,o);if(Ap(i),(o=we)?(o=Qx(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=ES(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=BE(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=M1(u,a),v!==0&&v!==h.retryLane))throw h.retryLane=v,As(o,v),Un(u,o,v),Vp;Ff(),i=BE(o,i,a)}else o=h.treeContext,we=jr(v.nextSibling),dn=i,Xt=!0,_i=null,_r=!1,o!==null&&TS(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 UE(o,i,a,u,d,h){return Os(i),i.updateQueue=null,a=HS(i,u,a,d),PS(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 kE(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),xu(i,u,h,d),Eu(),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)&&AE(i,h,u,v),Ii=!1;var X=i.memoizedState;h.state=X,xu(i,u,h,d),Eu(),K=i.memoizedState,A||X!==K||Ii?(typeof lt=="function"&&(qp(i,a,lt,u),K=i.memoizedState),(I=Ii||CE(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)&&AE(i,h,u,I),Ii=!1,X=i.memoizedState,h.state=X,xu(i,u,h,d),Eu();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||CE(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 PE(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:OS()}}function Zp(o,i,a){return o=o!==null?o.childLanes&~a:0,i&&(o|=or),o}function HE(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=Qx(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=ES(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,$u(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=$u(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,pu({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=M1(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&&TS(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,$u(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=OS(),A={baseLanes:A.baseLanes|a,cachePool:d}),u.memoizedState=A,u.childLanes=Zp(o,v,a),i.memoizedState=Xp,$u(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 FE(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 qE(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?hu:0,!A&&o!==null&&(o.flags&128)!==0)t:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&FE(o,a,i);else if(o.tag===19)FE(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?HE(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 qE(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,LE(o,i,a,i.pendingProps);case 24:ji(i,Ge,o.memoizedState.cache)}return Ko(o,i,a)}function GE(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&&wS(i,hu,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=kE(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=DE(null,i,o,u,a);break t}else if(d===z){i.tag=14,i=jE(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),kE(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),xu(i,u,null,a);var v=i.memoizedState;if(u=v.cache,ji(i,Ge,u),u!==h.cache&&pp(i,[Ge],a,!0),Eu(),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=PE(o,i,u,a);break t}else if(u!==d){d=Rr(Error(r(424)),i),pu(d),i=PE(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=LS(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=nw(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=nw(i.type,o.memoizedProps,i.pendingProps,o.memoizedState),null;case 27:return ie(i),o===null&&Xt&&(u=i.stateNode=Wx(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),Hu._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 HE(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 DE(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 jE(o,i,i.type,i.pendingProps,a);case 15:return IE(o,i,i.type,i.pendingProps,a);case 19:return qE(o,i,a);case 31:return r_(o,i,a);case 22:return LE(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),xu(i,null,null,a),Eu()),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(bx())o.flags|=8192;else throw Ds=bf,vp}else o.flags&=-16777217}function YE(o,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!aw(i))if(bx())o.flags|=8192;else throw Ds=bf,vp}function If(o,i){i!==null&&(o.flags|=4),o.flags&16384&&(i=o.tag!==22?C1():536870912,o.lanes|=i,Pa|=i)}function Mu(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),YE(i,h)):(Te(i),ng(i,d,null,u,a))):h?h!==o.memoizedState?(Xo(i),Te(i),YE(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)?CS(i):(o=Wx(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))CS(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||Hx(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)Mu(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,Mu(u,!1),o=h.updateQueue,i.updateQueue=o,If(i,o),i.subtreeFlags=0,o=a,a=i.child;a!==null;)SS(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,Mu(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),Mu(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,Mu(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 VE(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 Ru(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 KE(o){var i=o.updateQueue;if(i!==null){var a=o.stateNode;try{BS(i,a)}catch(u){ae(o,o.return,u)}}}function XE(o,i,a){a.props=Ls(o.type,o.memoizedProps),a.state=o.memoizedState;try{a.componentWillUnmount()}catch(u){ae(o,i,u)}}function Ou(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 QE(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 ZE(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||ZE(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 JE(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,WE=typeof WeakSet=="function"?WeakSet:Set,an=null;function a_(o,i){if(o=o.containerInfo,$g=rd,o=fS(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 tx(o,i,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Jo(o,a),u&4&&Ru(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&&KE(a),u&512&&Ou(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{BS(o,i)}catch(v){ae(a,a.return,v)}}break;case 27:i===null&&u&4&&JE(a);case 26:case 5:Jo(o,a),i===null&&u&4&&QE(a),u&512&&Ou(a,a.return);break;case 12:Jo(o,a);break;case 31:Jo(o,a),u&4&&rx(o,a);break;case 13:Jo(o,a),u&4&&ox(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 ex(o){var i=o.alternate;i!==null&&(o.alternate=null,ex(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;)nx(o,i,a),a=a.sibling}function nx(o,i,a){if(Zn&&typeof Zn.onCommitFiberUnmount=="function")try{Zn.onCommitFiberUnmount(tu,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),Uu(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,Kx(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.stateNode),Xa(o)):Kx(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"&&XE(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 rx(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 ox(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 WE),i;case 22:return o=o.stateNode,i=o._retryCache,i===null&&(i=o._retryCache=new WE),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));nx(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;)ix(i,o),i=i.sibling}var Jr=null;function ix(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),Ru(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[ru]||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=iw("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=iw("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 sw(d,o.type,o.stateNode);else o.stateNode=ow(d,u,o.memoizedProps);else h!==u?(h===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):h.count--,u===null?sw(d,o.type,o.stateNode):ow(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,sx(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?Xx(J,!0):Xx(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(ZE(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 sx(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var i=o;sx(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;)tx(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"&&XE(i,i.return,a),zs(i);break;case 27:Uu(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),Ru(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++)zS(I[d],A)}catch(K){ae(u,u.return,K)}}a&&v&64&&KE(h),Ou(h,h.return);break;case 27:JE(h);case 26:case 5:Wo(d,h,a),a&&u===null&&v&4&&QE(h),Ou(h,h.return);break;case 12:Wo(d,h,a);break;case 31:Wo(d,h,a),a&&v&4&&rx(d,h);break;case 13:Wo(d,h,a),a&&v&4&&ox(d,h);break;case 22:h.memoizedState===null&&Wo(d,h,a),Ou(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&&gu(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&&gu(o))}function Wr(o,i,a,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)ax(o,i,a,u),i=i.sibling}function ax(o,i,a,u){var d=i.flags;switch(i.tag){case 0:case 11:case 15:Wr(o,i,a,u),d&2048&&Ru(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&&gu(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):Nu(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),Ru(8,v);break;case 23:break;case 22:var rt=v.stateNode;v.memoizedState!==null?rt._visibility&2?Ba(h,v,A,I,d):Nu(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 Nu(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:Nu(a,u),d&2048&&ag(u.alternate,u);break;case 24:Nu(a,u),d&2048&&lg(u.alternate,u);break;default:Nu(a,u)}i=i.sibling}}var _u=8192;function Ua(o,i,a){if(o.subtreeFlags&_u)for(o=o.child;o!==null;)lx(o,i,a),o=o.sibling}function lx(o,i,a){switch(o.tag){case 26:Ua(o,i,a),o.flags&_u&&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=_u,_u=16777216,Ua(o,i,a),_u=u):Ua(o,i,a));break;default:Ua(o,i,a)}}function ux(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 Du(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,fx(u,o)}ux(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)cx(o),o=o.sibling}function cx(o){switch(o.tag){case 0:case 11:case 15:Du(o),o.flags&2048&&ki(9,o,o.return);break;case 3:Du(o);break;case 12:Du(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)):Du(o);break;default:Du(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,fx(u,o)}ux(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 fx(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:gu(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(ex(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,ju=null,Bn=null,fg=!1,Uf=0,dx=0,kf=1/0,Pf=null,Fi=null,tn=0,qi=null,Ha=null,ei=0,dg=0,mg=null,mx=null,Iu=0,hg=null;function ir(){return(ee&2)!==0&&Yt!==0?Yt&-Yt:O.T!==null?Sg():R1()}function hx(){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)),nu(o,a),((ee&2)===0||o!==pe)&&(o===pe&&((ee&2)===0&&(Bs|=a),ze===4&&Gi(o,Yt,or,!1)),So(o))}function px(o,i,a){if((ee&6)!==0)throw Error(r(327));var u=!a&&(i&127)===0&&(i&o.expiredLanes)===0||eu(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=ju;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=Yx(gx.bind(null,u,a,Bn,Pf,fg,i,or,Bs,Pa,Pi,h,"Throttled",-0,0),d);break t}gx(u,a,Bn,Pf,fg,i,or,Bs,Pa,Pi,h,null,-0,0)}}break}while(!0);So(o)}function gx(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},lx(i,h,lt);var gt=(h&62914560)===h?Uf-Qn():(h&4194048)===h?dx-Qn():0;if(gt=X_(lt,gt),gt!==null){ei=h,o.cancelPendingCommit=gt(Tx.bind(null,o,i,h,a,u,d,v,A,I,rt,lt,null,X,J)),Gi(o,h,v,!K);return}}Tx(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&&A1(o,a,i)}function Hf(){return(ee&6)===0?(Lu(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,bu=0,o=Ft;for(;o!==null;)VE(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=eu(o,i),ug=!1,Pa=or=cg=Bs=Hi=ze=0,Bn=ju=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 yx(o,i){zt=null,O.H=Au,i===_a||i===yf?(i=DS(),se=3):i===vp?(i=DS(),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 bx(){var o=er.current;return o===null?!0:(Yt&4194048)===Yt?Dr===null:(Yt&62914560)===Yt||(Yt&536870912)!==0?o===Dr:!1}function vx(){var o=O.H;return O.H=Au,o===null?Au:o}function Sx(){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=vx(),h=Sx();(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){yx(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;)Ex(Ft)}function m_(o,i){var a=ee;ee|=2;var u=vx(),d=Sx();pe!==o||Yt!==i?(Pf=null,kf=Qn()+500,Fa(o,i)):ka=eu(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(NS(h)){se=0,rr=null,xx(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:NS(h)?(se=0,rr=null,xx(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?aw(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){yx(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();)Ex(Ft)}function Ex(o){var i=GE(o.alternate,o,ti);o.memoizedProps=o.pendingProps,i===null?qf(o):Ft=i}function xx(o){var i=o,a=i.alternate;switch(i.tag){case 15:case 0:i=UE(a,i,i.pendingProps,i.type,void 0,Yt);break;case 11:i=UE(a,i,i.pendingProps,i.type.render,i.ref,Yt);break;case 5:Np(i);default:VE(a,i),i=Ft=SS(i,ti),i=GE(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,bu=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))),wx(i,o)):qf(i)}function qf(o){var i=o;do{if((i.flags&32768)!==0){wx(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 wx(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 Tx(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,mx=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,b_(Yc,function(){return Rx(),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,Cx(),Ax(),$x()}}function Cx(){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{ix(i,o);var h=Mg,v=fS(o.containerInfo),A=h.focusedElem,I=h.selectionRange;if(v!==A&&A&&A.ownerDocument&&cS(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=uS(A,Ct),U=uS(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 Ax(){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{tx(o,i.alternate,i)}finally{ee=d,B.p=u,O.T=a}}tn=3}}function $x(){if(tn===4||tn===3){tn=0,BO();var o=qi,i=Ha,a=ei,u=mx;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?tn=5:(tn=0,Ha=qi=null,Mx(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(tu,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?Iu++:(Iu=0,hg=o):Iu=0,Lu(0)}}function Mx(o,i){(o.pooledCacheLanes&=i)===0&&(i=o.pooledCache,i!=null&&(o.pooledCache=null,gu(i)))}function Gf(){return Cx(),Ax(),$x(),Rx()}function Rx(){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,cx(h.current),ax(h,h.current,v,a),ee=A,Lu(0,!1),Zn&&typeof Zn.onPostCommitFiberRoot=="function")try{Zn.onPostCommitFiberRoot(tu,h)}catch{}return!0}finally{B.p=d,O.T=u,Mx(o,i)}}function Ox(o,i,a){i=Rr(a,i),i=Yp(o.stateNode,i,2),o=zi(o,i,2),o!==null&&(nu(o,2),So(o))}function ae(o,i,a){if(o.tag===3)Ox(o,o,a);else for(;i!==null;){if(i.tag===3){Ox(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=NE(2),u=zi(i,a,2),u!==null&&(_E(a,u,i,o),nu(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 Nx(o,i){i===0&&(i=C1()),o=As(o,i),o!==null&&(nu(o,i),So(o))}function g_(o){var i=o.memoizedState,a=0;i!==null&&(a=i.retryLane),Nx(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),Nx(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 Lu(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,Ix(u,h))}else h=Yt,h=Qc(u,u===pe?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||eu(u,h)||(a=!0,Ix(u,h));u=u.next}while(a);vg=!1}}function v_(){_x()}function _x(){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=Dx(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||Lu(o),Yi!==0&&(Yi=0)}function Dx(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||eu(o,a)){if(i=a&-a,i===o.callbackPriority)return i;switch(u!==null&&Gc(u),jh(a)){case 2:case 8:a=w1;break;case 32:a=Yc;break;case 268435456:a=T1;break;default:a=Yc}return u=jx.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 jx(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:(px(o,u,i),Dx(o,Qn()),o.callbackNode!=null&&o.callbackNode===a?jx.bind(null,o):null)}function Ix(o,i){if(Gf())return null;px(o,i,!0)}function S_(){__(function(){(ee&6)!==0?Ss(x1,v_):_x()})}function Sg(){if(Yi===0){var o=Oa;o===0&&(o=Vc,Vc<<=1,(Vc&261888)===0&&(Vc=256)),Yi=o}return Yi}function Lx(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:tf(""+o)}function zx(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=Lx((d[Dn]||null).action),v=u.submitter;v&&(i=(i=v[Dn]||null)?Lx(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?zx(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?zx(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(hS,"onAnimationEnd"),Zr(pS,"onAnimationIteration"),Zr(gS,"onAnimationStart"),Zr("dblclick","onDoubleClick"),Zr("focusin","onFocus"),Zr("focusout","onBlur"),Zr(UN,"onTransitionRun"),Zr(kN,"onTransitionStart"),Zr(PN,"onTransitionCancel"),Zr(yS,"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 zu="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(zu));function Bx(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)||(Ux(i,o,2,!1),a.add(u))}function wg(o,i,a){var u=0;i&&(u|=4),Ux(a,o,u,i)}var Kf="_reactListening"+Math.random().toString(36).slice(2);function Tg(o){if(!o[Kf]){o[Kf]=!0,_1.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 Ux(o,i,a,u){switch(hw(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}q1(function(){var K=h,rt=Hh(a),lt=[];t:{var X=bS.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=V1;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 hS:case pS:case gS:J=lN;break;case yS: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=X1;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=iu(U,q),st!=null&&Ct.push(Bu(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=V1,st="onMouseLeave",q="onMouseEnter",U="mouse",(o==="pointerout"||o==="pointerover")&&(Ct=X1,st="onPointerLeave",q="onPointerEnter",U="pointer"),fe=J==null?X:ou(J),V=gt==null?X:ou(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&&kx(lt,X,J,Ct,!1),gt!==null&&fe!==null&&kx(lt,fe,gt,Ct,!0)}}t:{if(X=K?ou(K):window,J=X.nodeName&&X.nodeName.toLowerCase(),J==="select"||J==="input"&&X.type==="file")var Wt=rS;else if(eS(X))if(oS)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=rS):Wt=IN;if(Wt&&(Wt=Wt(o,K))){nS(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?ou(K):window,o){case"focusin":(eS(vt)||vt.contentEditable==="true")&&(xa=vt,tp=K,mu=null);break;case"focusout":mu=tp=xa=null;break;case"mousedown":ep=!0;break;case"contextmenu":case"mouseup":case"dragend":ep=!1,dS(lt,a,rt);break;case"selectionchange":if(BN)break;case"keydown":case"keyup":dS(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?W1(o,a)&&(Vt="onCompositionEnd"):o==="keydown"&&a.keyCode===229&&(Vt="onCompositionStart");Vt&&(Q1&&a.locale!=="ko"&&(Ea||Vt!=="onCompositionStart"?Vt==="onCompositionEnd"&&Ea&&(Bt=G1()):(Oi=rt,Gh="value"in Oi?Oi.value:Oi.textContent,Ea=!0)),vt=Xf(K,Vt),0<vt.length&&(Vt=new K1(Vt,o,null,a,rt),lt.push({event:Vt,listeners:vt}),Bt?Vt.data=Bt:(Bt=tS(a),Bt!==null&&(Vt.data=Bt)))),(Bt=MN?RN(o,a):ON(o,a))&&(Vt=Xf(K,"onBeforeInput"),0<Vt.length&&(vt=new K1("onBeforeInput","beforeinput",null,a,rt),lt.push({event:vt,listeners:Vt}),vt.data=Bt)),E_(lt,o,K,a,rt)}Bx(lt,i)})}function Bu(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=iu(o,a),d!=null&&u.unshift(Bu(o,d,h)),d=iu(o,i),d!=null&&u.push(Bu(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 kx(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=iu(a,h),K!=null&&v.unshift(Bu(a,K,I))):d||(K=iu(a,h),K!=null&&v.push(Bu(a,K,I)))),a=a.return}v.length!==0&&o.push({event:i,listeners:v})}var A_=/\r\n?/g,$_=/\u0000|\uFFFD/g;function Px(o){return(typeof o=="string"?o:""+o).replace(A_,`
|
|
79
|
-
`).replace($_,"")}function Hx(o,i){return i=Px(i),Px(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":H1(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":H1(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(!D1.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)}}B1(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)}k1(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<zu.length;u++)qt(zu[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)}U1(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 Fx(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&&Fx(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&&Fx(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 qx(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 Gx(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 Yx=typeof setTimeout=="function"?setTimeout:void 0,N_=typeof clearTimeout=="function"?clearTimeout:void 0,Vx=typeof Promise=="function"?Promise:void 0,__=typeof queueMicrotask=="function"?queueMicrotask:typeof Vx<"u"?function(o){return Vx.resolve(null).then(o).catch(D_)}:Yx;function D_(o){setTimeout(function(){throw o})}function Vi(o){return o==="head"}function Kx(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")Uu(o.ownerDocument.documentElement);else if(a==="head"){a=o.ownerDocument.head,Uu(a);for(var h=a.firstChild;h;){var v=h.nextSibling,A=h.nodeName;h[ru]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&h.rel.toLowerCase()==="stylesheet"||a.removeChild(h),h=v}}else a==="body"&&Uu(o.ownerDocument.body);a=d}while(a);Xa(i)}function Xx(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[ru])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 Qx(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 Zx(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 Jx(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 Wx(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 Uu(o){for(var i=o.attributes;i.length;)o.removeAttributeNode(i[0]);Lh(o)}var Ir=new Map,tw=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"?yE(i):ni.r(o)}var Ya=typeof document>"u"?null:document;function ew(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+'"]'),tw.has(d)||(tw.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),ew("dns-prefetch",o,null)}function k_(o,i){ni.C(o,i),ew("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(ku(h))||i==="script"&&u.querySelector(Pu(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(Pu(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(ku(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(Pu(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(Pu(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 nw(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(ku(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 ku(o){return'link[rel="stylesheet"]['+o+"]"}function rw(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 Pu(o){return"script[async]"+o}function ow(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(ku(d));if(h)return i.state.loading|=4,i.instance=h,sn(h),h;u=rw(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(Pu(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 iw(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[ru]||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 sw(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 aw(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(ku(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=rw(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 Hu={$$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 lw(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 uw(o){return o?(o=Ca,o):Ca}function cw(o,i,a,u,d,h){d=uw(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),Su(a,o,i))}function fw(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){fw(o,i),(o=o.alternate)&&fw(o,i)}function dw(o){if(o.tag===13||o.tag===31){var i=As(o,67108864);i!==null&&Un(i,o,67108864),Bg(o,67108864)}}function mw(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),pw(o,u);else if(e3(d,o,i,a,u))u.stopPropagation();else if(pw(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,Lu(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 hw(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 x1:return 2;case w1:return 8;case Yc:case kO:return 32;case T1:return 268435456;default:return 32}default:return 32}}var Hg=!1,Ki=null,Xi=null,Qi=null,Fu=new Map,qu=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 pw(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":Fu.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":qu.delete(i.pointerId)}}function Gu(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&&dw(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=Gu(Ki,o,i,a,u,d),!0;case"dragenter":return Xi=Gu(Xi,o,i,a,u,d),!0;case"mouseover":return Qi=Gu(Qi,o,i,a,u,d),!0;case"pointerover":var h=d.pointerId;return Fu.set(h,Gu(Fu.get(h)||null,o,i,a,u,d)),!0;case"gotpointercapture":return h=d.pointerId,qu.set(h,Gu(qu.get(h)||null,o,i,a,u,d)),!0}return!1}function gw(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,O1(o.priority,function(){mw(a)});return}}else if(i===31){if(i=f(a),i!==null){o.blockedOn=i,O1(o.priority,function(){mw(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&&dw(i),o.blockedOn=a,!1;i.shift()}return!0}function yw(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),Fu.forEach(yw),qu.forEach(yw)}function sd(o,i){o.blockedOn===i&&(o.blockedOn=null,Hg||(Hg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,n3)))}var ad=null;function bw(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),Fu.forEach(i),qu.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);)gw(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||bw(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),bw(a)}}}function vw(){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();cw(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;cw(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=R1();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&&gw(o)}};var Sw=e.version;if(Sw!=="19.2.4")throw Error(r(527,Sw,"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{tu=ud.inject(r3),Zn=ud}catch{}}return Zu.createRoot=function(o,i){if(!s(o))throw Error(r(299));var a=!1,u="",d=$E,h=ME,v=RE;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=lw(o,1,!1,null,null,a,u,null,d,h,v,vw),o[da]=i.current,Tg(o),new Fg(i)},Zu.hydrateRoot=function(o,i,a){if(!s(o))throw Error(r(299));var u=!1,d="",h=$E,v=ME,A=RE,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=lw(o,1,!0,i,a??null,u,d,I,h,v,A,vw),i.context=uw(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,nu(i,a),So(i),o[da]=i.current,Tg(o),new ld(i)},Zu.version="19.2.4",Zu}var p2;function WJ(){if(p2)return Ey.exports;p2=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(),Ey.exports=JJ(),Ey.exports}var g2=WJ();class y2{log=ho();root;onBrowserRender=sr({on:"react:browser:render",handler:async({hydration:e,root:n,element:r})=>{e?.layers?(this.root=g2.hydrateRoot(n,r),this.log.info("Hydrated root element")):(this.root??=g2.createRoot(n),this.root.render(r),this.log.info("Created root element"))}})}class p0{alepha=Rt(Re);pageApi=Rt(Zd);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(h0)}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.push(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 push(e,n){for(const r of this.pages)if(r.name===e){await this.browser?.push(this.path(e,n),n);return}await this.browser?.push(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.push(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 tW=()=>yv(p0);gr({name:"alepha.react.router",primitives:[Cn],services:[Zd,m0,h0,p0,y2,gO],register:t=>t.with(gM).with(aM).with(fM).with(cG).with(Zd).with(h0).with(m0).with(y2).with(p0)});var eW={root:"m_8f2832ae",section:"m_7a0fe999"};function b2(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 nW=()=>h1({mounted:!1,progress:0,interval:0,step:1,stepInterval:100,timeouts:[]}),rW=t=>p1(t);function Ur(t,e){const n=e.getState();e.setState({...n,...t(e.getState())})}function oW(t){Ur(e=>({progress:Math.max(e.progress-e.step,0)}),t)}function iW(t,e){Ur(()=>({progress:IM(t,0,100),mounted:!0}),e)}function y1(t){Ur(e=>(window.clearInterval(e.interval),e.timeouts.forEach(n=>window.clearTimeout(n)),{timeouts:[]}),t)}function sW(t){y1(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 aW(t){Ur(e=>({progress:b2(e.progress),mounted:!0}),t),Ur(e=>(window.clearInterval(e.interval),{interval:window.setInterval(()=>{Ur(r=>({progress:b2(r.progress),mounted:!0}),t)},e.stepInterval),mounted:!0}),t)}function xO(t){Ur(e=>(window.clearInterval(e.interval),{interval:-1}),t)}function b1(t){y1(t),xO(t),Ur(()=>({progress:0,mounted:!1}),t)}function lW(t){Ur(e=>{const n=Math.min(e.progress+e.step,100),r=n!==100&&n!==0;if(!r){const s=window.setTimeout(()=>b1(t),e.stepInterval+50);return{progress:n,mounted:r,timeouts:[...e.timeouts,s]}}return{progress:n,mounted:r}},t)}function uW(){const t=nW();return[t,{start:()=>aW(t),stop:()=>xO(t),reset:()=>b1(t),set:n=>iW(n,t),increment:()=>lW(t),decrement:()=>oW(t),complete:()=>sW(t),cleanup:()=>y1(t)}]}const[cW,g0]=uW(),{start:ptt,stop:gtt,reset:ytt,set:btt,increment:vtt,decrement:Stt,complete:Ett,cleanup:xtt}=g0;function wO({initialProgress:t=0,color:e,size:n=3,stepInterval:r=500,withinPortal:s=!0,portalProps:l,zIndex:c=wr("max"),store:f=cW,...m}){f.initialize({mounted:!1,progress:t,interval:-1,step:1,stepInterval:r,timeouts:[]});const p=rW(f);return C.useEffect(()=>()=>b1(f),[f]),x.jsx(Ws,{...l,withinPortal:s,children:x.jsx(Ql,{radius:0,value:p.progress,size:n,color:e,classNames:eW,"data-mounted":p.mounted||void 0,__vars:{"--nprogress-z-index":c?.toString()},...m})})}wO.displayName="@mantine/nprogress/NavigationProgress";const fW=()=>{vv(Wu);const t=yv(Yy);return[t.getTheme(),r=>{t.setTheme(r.index)}]},dW=()=>yv(f0),mW=()=>h1({opened:!1,empty:!1,selected:-1,listId:"",query:"",registeredActions:new Set}),hW=t=>p1(t);function bl(t,e){const n=e.getState();e.setState({...n,...t(e.getState())})}function TO(t){bl(()=>({opened:!0,selected:-1}),t)}function CO(t){bl(()=>({opened:!1}),t)}function AO(t){bl(e=>({opened:!e.opened,selected:e.opened?e.selected:-1}),t)}function $O(t,e){e.updateState(n=>({...n,selected:t}))}function pW(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=IM(c,0,l.length-1);return s?.removeAttribute("data-selected"),l[f]?.scrollIntoView({block:"nearest"}),l[f]?.setAttribute("data-selected","true"),$O(f,e),f}function gW(t){return Th(t.getState().selected+1,t)}function yW(t){return Th(t.getState().selected-1,t)}function bW(t){const e=t.getState();Jd(`#${e.listId} [data-selected]`)?.click()}function vW(t,e){const n=e.getState();return n.registeredActions.add(t),()=>{n.registeredActions.delete(t)}}function SW(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 EW({clearQuery:t},e){e.updateState(n=>({...n,selected:-1,query:t?"":n.query,empty:t?!1:n.empty}))}const Oo={open:TO,close:CO,toggle:AO,updateState:bl,setSelectedAction:$O,setListId:pW,selectAction:Th,selectNextAction:gW,selectPreviousAction:yW,triggerSelectedAction:bW,registerAction:vW,setQuery:SW,clearSpotlightState:EW};function xW(){const t=mW();return[t,{open:()=>TO(t),close:()=>CO(t),toggle:()=>AO(t)}]}const[MO,Ch]=xW(),{open:wtt,close:Ttt,toggle:Ctt}=Ch;function RO(t){const e=t;return e.group!==void 0&&Array.isArray(e.actions)}function wW(t){return Array.isArray(t)?t.map(e=>e.trim()).join(",").toLowerCase().trim():typeof t=="string"?t.toLowerCase().trim():""}function TW(t){return t.reduce((e,n)=>"actions"in n?[...e,...n.actions.map(r=>({...r,group:n.group}))]:[...e,n],[])}function CW(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 AW=(t,e)=>{const n=t.trim().toLowerCase(),r=[[],[]];return TW(e).forEach(l=>{l.label?.toLowerCase().includes(n)?r[0].push(l):(l.description?.toLowerCase().includes(n)||wW(l.keywords).includes(n))&&r[1].push(l)}),CW(r.flat())};function OO(t,e){if(!Array.isArray(t))return[];let n=0;return t.reduce((r,s)=>{if(n>=e)return r;if(RO(s)){const l=OO(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[$W,Jl]=zl("Spotlight component was not found in tree"),MW={dimmedSections:!0,highlightQuery:!1},fc=It((t,e)=>{const n=bt("SpotlightAction",MW,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=Jl(),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(ql,{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})]})})});fc.classes=Do;fc.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=Jl();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=Jl(),b=`mantine-${C.useId().replace(/:/g,"")}`,E=s||b;return C.useEffect(()=>(Oo.setListId(E,g.store),()=>Oo.setListId("",g.store)),[]),x.jsx(Fl.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=Jl();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 v1=It((t,e)=>{const{className:n,style:r,classNames:s,styles:l,...c}=bt("SpotlightFooter",null,t),f=Jl();return x.jsx(ht,{ref:e,...f.getStyles("footer",{className:n,classNames:s,style:r,styles:l}),...c})});v1.classes=Do;v1.displayName="@mantine/spotlight/SpotlightFooter";function RW(t,e){if(!t)return[];const n=()=>Oo.open(e);return Array.isArray(t)?t.map(r=>[r,n]):[[t,n]]}const OW={size:600,yOffset:80,zIndex:wr("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:MO,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",maxHeight:400},Rh=It((t,e)=>{const n=bt("SpotlightRoot",OW,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}=hW(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 $Y(RW(w,p),$,_),Ul(()=>{ct?j?.():P?.()},[ct]),L?null:x.jsx($W,{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:lc({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 NW={size:"lg"},Oh=It((t,e)=>{const{classNames:n,styles:r,onKeyDown:s,onChange:l,vars:c,value:f,...m}=bt("SpotlightSearch",NW,t),p=Jl(),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 _W={size:600,yOffset:80,limit:1/0,zIndex:wr("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:MO,filter:AW,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K"},Cr=It((t,e)=>{const n=bt("Spotlight",_W,t),{searchProps:r,filter:s,query:l,onQueryChange:c,actions:f,nothingFound:m,highlightQuery:p,limit:g,scrollAreaProps:b,...E}=n,[S,T]=EY({value:l,defaultValue:"",finalValue:"",onChange:c}),w=OO(s(S,f),g).map($=>{if(RO($)){const _=$.actions.map(({id:L,...j})=>x.jsx(fc,{highlightQuery:p,...j},L));return x.jsx(Ah,{label:$.group,children:_},$.group)}return x.jsx(fc,{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=fc;Cr.Empty=Mh;Cr.ActionsGroup=Ah;Cr.Footer=v1;Cr.Root=Rh;Cr.open=Ch.open;Cr.close=Ch.close;Cr.toggle=Ch.toggle;function DW(t){return C.isValidElement(t)?!1:typeof t=="function"||typeof t=="object"&&t!==null&&"$$typeof"in t}const jW=t=>{if(!t)return null;if(C.isValidElement(t))return t;if(DW(t)){const e=t;return x.jsx(e,{size:m1.sizes.icon.md})}return t},IW=t=>{const e=t.shortcut??"mod+K",n=t.searchPlaceholder??"Search...",r=t.nothingFound??"Nothing found...",s=tW(),[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.push(f.staticName,{params:f.params}):s.push(f.name),leftSection:jW(f.icon)})),[l]);return x.jsx(Cr,{actions:c,shortcut:e,limit:10,searchProps:{leftSection:x.jsx(rJ,{size:m1.sizes.icon.md}),placeholder:n},nothingFound:r})},LW=t=>{const e=dW(),[n]=fW();pM({"react:transition:begin":()=>{g0.start()},"react:transition:end":()=>{g0.complete()},"react:action:error":({error:s})=>{s instanceof fG||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(vV,{defaultColorScheme:r,...t.colorSchemeScript}),x.jsxs(XM,{...t.mantine,defaultColorScheme:r,theme:{...n,...t.mantine?.theme},children:[x.jsx(Ai,{...t.notifications}),x.jsx(wO,{...t.navigationProgress}),x.jsxs(RZ,{...t.modals,children:[t.omnibar!==!1&&x.jsx(IW,{...t.omnibar}),t.children??x.jsx(d0,{})]})]})]})};class NO{root=Cn({path:"/",component:LW})}const Ty=(t,e,n)=>(Object.assign(t,{[e]:n??{}}),t),_O=Symbol.for("Alepha.Postgres.Default"),zW=Symbol.for("Alepha.Postgres.PrimaryKey"),Att=Symbol.for("Alepha.Postgres.CreatedAt"),$tt=Symbol.for("Alepha.Postgres.UpdatedAt"),Mtt=Symbol.for("Alepha.Postgres.DeletedAt"),Rtt=Symbol.for("Alepha.Postgres.Version"),Ott=Symbol.for("Alepha.Postgres.Identity"),Ntt=Symbol.for("Alepha.Postgres.Enum"),_tt=Symbol.for("Alepha.Postgres.Ref"),BW=Symbol.for("Alepha.Postgres.Serial"),Mn=Symbol.for("drizzle:entityKind");function UW(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 kW{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 PW{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 HW{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 FW(e,this)}}class FW{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 qW(t,...e){return t(...e)}function GW(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 DO(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]=DO(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 YW(t){const[e]=DO(t,1);return e}function jO(t){return`{${t.map(e=>Array.isArray(e)?jO(e):typeof e=="string"?`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${e}`).join(",")}}`}class IO extends PW{foreignKeyConfigs=[];static[Mn]="PgColumnBuilder";array(e){return new KW(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})=>qW((l,c)=>{const f=new HW(()=>{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 VW(e,this.config)}}class S1 extends kW{constructor(e,n){n.uniqueName||(n.uniqueName=GW(e,[n.name])),super(e,n),this.table=e}static[Mn]="PgColumn"}class VW 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 KW extends IO{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=YW(e)),e.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(e,n=!1){const r=e.map(s=>s===null?null:UW(this.baseColumn,E1)?this.baseColumn.mapToDriverValue(s,!0):this.baseColumn.mapToDriverValue(s));return n?r:jO(r)}}function XW(t,e){return{name:typeof t=="string"&&t.length>0?t:"",config:typeof t=="object"?t:e}}typeof TextDecoder>"u"||new TextDecoder;class QW extends IO{static[Mn]="PgCustomColumnBuilder";constructor(e,n,r){super(e,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=r}build(e){return new ZW(e,this.config)}}class ZW 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 JW(t){return(e,n)=>{const{name:r,config:s}=XW(e,n);return new QW(r,s,t)}}const Cy=(t,e)=>JW({dataType:()=>"jsonb",toDriver:n=>JSON.stringify(n),fromDriver:n=>n&&typeof n=="string"?JSON.parse(n):n})(t,{document:e}).$type(),WW=t=>{const e={};for(const n in t.properties){const r=t.properties[n];_O in r?e[n]=R.optional(r):e[n]=r}return R.object(e,"options"in Cy&&typeof Cy.options=="object"?{...Cy.options}:{})},ttt=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}:{})},ett=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 WW(this.options.schema)}get updateSchema(){return ttt(this.options.schema)}}ett[Rn]=Nh;Ty(Ty(Ty(R.integer(),zW),BW),_O);gr({name:"alepha.orm",primitives:[],services:[aM]});gr({name:"alepha.ui",services:[s2,f0,Yy,NO],register:t=>{t.with(gG),t.with(hG),t.with(dG),t.with(Yy),t.with(s2),t.with(f0)}});const ntt=(t={})=>{const{alepha:e}=vl();return t.themes&&e.store.set(Gy,t.themes),e.inject(NO)};class rtt{ui=ntt({themes:[TM]});layout=Cn({parent:this.ui.root,lazy:()=>to(()=>import("./chunk.DHfKeDbH.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(VZ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.BrKdm6Sb.js"),__vite__mapDeps([10,11])),[Symbol.for("alepha.page.preload")]:"6f78c010"});actions=Cn({path:"/actions",label:"Actions",icon:x.jsx(jZ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.D-abBFDq.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(iJ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.CjAS4aWI.js"),__vite__mapDeps([20,2])),[Symbol.for("alepha.page.preload")]:"f057fce9"});topics=Cn({path:"/topics",label:"Topics",icon:x.jsx(eJ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.CJlnGw1S.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(LZ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.BLPoqamD.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(uJ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.BEZMZ7cU.js"),__vite__mapDeps([28,13,14,15,26,27])),[Symbol.for("alepha.page.preload")]:"9fe5fa6f"});atoms=Cn({path:"/atoms",label:"Atoms",icon:x.jsx(BZ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.BLRSfNfT.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(XZ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.Cas0t8F5.js"),__vite__mapDeps([32,13,14,18,3,26])),[Symbol.for("alepha.page.preload")]:"ebed1358"});graph=Cn({path:"/graph",label:"Graph",icon:x.jsx(aJ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.CZOSxV2E.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(WZ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.CZp8Oawk.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 LO=Re.create();LO.with(rtt);bq(LO);export{WZ as $,vv as A,ht as B,ltt as C,Ch as D,rJ as E,n1 as F,Tq as G,jW as H,ZM as I,pM as J,PZ as K,FZ as L,HM as M,m1 as N,d0 as O,VZ as P,jZ as Q,Gd as R,iJ as S,oo as T,ql as U,eJ as V,LZ as W,XZ as X,uJ as Y,BZ as Z,aJ as _,Bl as a,_tt as a$,ZZ as a0,iR as a1,EY as a2,ftt as a3,dh as a4,yv as a5,cM as a6,Vl as a7,lo as a8,Gl as a9,Tv as aA,Ul as aB,FY as aC,IQ as aD,pr as aE,Xy as aF,Zm as aG,WM as aH,lh as aI,_v as aJ,ctt as aK,ar as aL,eY as aM,ta as aN,Vm as aO,Zq as aP,Qr as aQ,Ut as aR,Ty as aS,_O as aT,zW as aU,Ott as aV,Rtt as aW,Att as aX,$tt as aY,Mtt as aZ,Ntt as a_,Xv as aa,rO as ab,gl as ac,cO as ad,GZ as ae,Fl as af,qc as ag,f1 as ah,fJ as ai,xi as aj,s2 as ak,Iv as al,yV as am,YM as an,pv as ao,ys as ap,$n as aq,_Z as ar,Hc as as,R as at,ho as au,Rt as av,Re as aw,Km as ax,IM as ay,QM as az,Mv as b,yq as b0,DW as b1,Jm as b2,zo as b3,ett as b4,ri as b5,att as b6,SM as b7,kl as b8,nY as b9,$v as ba,GJ as bb,iO as bc,l0 as bd,kM as be,uY as bf,Ws as bg,Zv as bh,a0 as bi,FM as bj,ER as bk,nX as bl,pX as bm,htt as bn,PT as bo,yR as bp,py as bq,gX as br,mtt as bs,dtt as bt,ZX as bu,Qv as bv,jM as bw,Xd as bx,rs as by,zl as c,bt as d,Yn as e,It as f,ut as g,Cv as h,yT as i,x as j,$o as k,Kn as l,bs as m,SY as n,oe as o,po as p,Av as q,C as r,wr as s,utt as t,lY as u,ln as v,Zs as w,Tr as x,un as y,tW as z};
|
|
78
|
+
`+u.stack}}var Xn=Object.prototype.hasOwnProperty,Ss=t.unstable_scheduleCallback,Gc=t.unstable_cancelCallback,BO=t.unstable_shouldYield,UO=t.unstable_requestPaint,Qn=t.unstable_now,kO=t.unstable_getCurrentPriorityLevel,x1=t.unstable_ImmediatePriority,w1=t.unstable_UserBlockingPriority,Yc=t.unstable_NormalPriority,PO=t.unstable_LowPriority,T1=t.unstable_IdlePriority,HO=t.log,FO=t.unstable_setDisableYieldValue,tu=null,Zn=null;function Mi(o){if(typeof HO=="function"&&FO(o),Zn&&typeof Zn.setStrictMode=="function")try{Zn.setStrictMode(tu,o)}catch{}}var Jn=Math.clz32?Math.clz32:YO,qO=Math.log,GO=Math.LN2;function YO(o){return o>>>=0,o===0?32:31-(qO(o)/GO|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 eu(o,i){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&i)===0}function VO(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 C1(){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 nu(o,i){o.pendingLanes|=i,i!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function KO(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&&A1(o,u,0),h!==0&&d===0&&o.tag!==0&&(o.suspendedLanes|=h&~(v&~i))}function A1(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 $1(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 M1(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 R1(){var o=B.p;return o!==0?o:(o=window.event,o===void 0?32:hw(o.type))}function O1(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,XO="__reactListeners$"+Ri,QO="__reactHandles$"+Ri,N1="__reactResources$"+Ri,ru="__reactMarker$"+Ri;function Lh(o){delete o[fn],delete o[Dn],delete o[Ih],delete o[XO],delete o[QO]}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=Jx(o);o!==null;){if(a=o[fn])return a;o=Jx(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 ou(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[N1];return i||(i=o[N1]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function sn(o){o[ru]=!0}var _1=new Set,D1={};function xs(o,i){ga(o,i),ga(o+"Capture",i)}function ga(o,i){for(D1[o]=i,o=0;o<i.length;o++)_1.add(i[o])}var ZO=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]*$"),j1={},I1={};function JO(o){return Xn.call(I1,o)?!0:Xn.call(j1,o)?!1:ZO.test(o)?I1[o]=!0:(j1[o]=!0,!1)}function Zc(o,i,a){if(JO(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 L1(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function WO(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=L1(o)?"checked":"value";o._valueTracker=WO(o,i,""+o[i])}}function z1(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var a=i.getValue(),u="";return o&&(u=L1(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 tN=/[\n"\\]/g;function $r(o){return o.replace(tN,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 B1(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 U1(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 k1(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 eN=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 P1(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||eN.has(i)?i==="float"?o.cssFloat=a:o[i]=(""+a).trim():o[i]=a+"px"}function H1(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&&P1(o,d,u)}else for(var h in i)i.hasOwnProperty(h)&&P1(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 nN=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"]]),rN=/^[\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 rN.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 F1(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&&z1(u)}break t;case"textarea":U1(o,a.value,a.defaultValue);break t;case"select":i=a.value,i!=null&&ya(o,!!a.multiple,i,!1)}}}var Fh=!1;function q1(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,F1(i),o)))for(i=0;i<o.length;i++)F1(o[i])}}function iu(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 su={};Object.defineProperty(su,"passive",{get:function(){qh=!0}}),window.addEventListener("test",su,su),window.removeEventListener("test",su,su)}catch{qh=!1}var Oi=null,Gh=null,ef=null;function G1(){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 Y1(){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:Y1,this.isPropagationStopped=Y1,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),au=b({},ws,{view:0,detail:0}),oN=jn(au),Yh,Vh,lu,sf=b({},au,{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!==lu&&(lu&&o.type==="mousemove"?(Yh=o.screenX-lu.screenX,Vh=o.screenY-lu.screenY):Vh=Yh=0,lu=o),Yh)},movementY:function(o){return"movementY"in o?o.movementY:Vh}}),V1=jn(sf),iN=b({},sf,{dataTransfer:0}),sN=jn(iN),aN=b({},au,{relatedTarget:0}),Kh=jn(aN),lN=b({},ws,{animationName:0,elapsedTime:0,pseudoElement:0}),uN=jn(lN),cN=b({},ws,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),fN=jn(cN),dN=b({},ws,{data:0}),K1=jn(dN),mN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hN={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"},pN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gN(o){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(o):(o=pN[o])?!!i[o]:!1}function Xh(){return gN}var yN=b({},au,{key:function(o){if(o.key){var i=mN[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"?hN[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}}),bN=jn(yN),vN=b({},sf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),X1=jn(vN),SN=b({},au,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xh}),EN=jn(SN),xN=b({},ws,{propertyName:0,elapsedTime:0,pseudoElement:0}),wN=jn(xN),TN=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}),CN=jn(TN),AN=b({},ws,{newState:0,oldState:0}),$N=jn(AN),MN=[9,13,27,32],Qh=Po&&"CompositionEvent"in window,uu=null;Po&&"documentMode"in document&&(uu=document.documentMode);var RN=Po&&"TextEvent"in window&&!uu,Q1=Po&&(!Qh||uu&&8<uu&&11>=uu),Z1=" ",J1=!1;function W1(o,i){switch(o){case"keyup":return MN.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tS(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Ea=!1;function ON(o,i){switch(o){case"compositionend":return tS(i);case"keypress":return i.which!==32?null:(J1=!0,Z1);case"textInput":return o=i.data,o===Z1&&J1?null:o;default:return null}}function NN(o,i){if(Ea)return o==="compositionend"||!Qh&&W1(o,i)?(o=G1(),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 Q1&&i.locale!=="ko"?null:i.data;default:return null}}var _N={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 eS(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i==="input"?!!_N[o.type]:i==="textarea"}function nS(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 cu=null,fu=null;function DN(o){Bx(o,0)}function af(o){var i=ou(o);if(z1(i))return o}function rS(o,i){if(o==="change")return i}var oS=!1;if(Po){var Zh;if(Po){var Jh="oninput"in document;if(!Jh){var iS=document.createElement("div");iS.setAttribute("oninput","return;"),Jh=typeof iS.oninput=="function"}Zh=Jh}else Zh=!1;oS=Zh&&(!document.documentMode||9<document.documentMode)}function sS(){cu&&(cu.detachEvent("onpropertychange",aS),fu=cu=null)}function aS(o){if(o.propertyName==="value"&&af(fu)){var i=[];nS(i,fu,o,Hh(o)),q1(DN,i)}}function jN(o,i,a){o==="focusin"?(sS(),cu=i,fu=a,cu.attachEvent("onpropertychange",aS)):o==="focusout"&&sS()}function IN(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return af(fu)}function LN(o,i){if(o==="click")return af(i)}function zN(o,i){if(o==="input"||o==="change")return af(i)}function BN(o,i){return o===i&&(o!==0||1/o===1/i)||o!==o&&i!==i}var Wn=typeof Object.is=="function"?Object.is:BN;function du(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 lS(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function uS(o,i){var a=lS(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=lS(a)}}function cS(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?cS(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function fS(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 UN=Po&&"documentMode"in document&&11>=document.documentMode,xa=null,tp=null,mu=null,ep=!1;function dS(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}),mu&&du(mu,u)||(mu=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={},mS={};Po&&(mS=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 mS)return np[o]=i[a];return o}var hS=Cs("animationend"),pS=Cs("animationiteration"),gS=Cs("animationstart"),kN=Cs("transitionrun"),PN=Cs("transitionstart"),HN=Cs("transitioncancel"),yS=Cs("transitionend"),bS=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){bS.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&&vS(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 vS(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<Iu)throw Iu=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 FN(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 FN(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 SS(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=K_(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 ES(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 xS=new WeakMap;function Rr(o,i){if(typeof o=="object"&&o!==null){var a=xS.get(o);return a!==void 0?a:(i={value:o,source:i,stack:vs(i)},xS.set(o,i),i)}return{value:o,source:i,stack:vs(i)}}var Aa=[],$a=0,mf=null,hu=0,Or=[],Nr=0,Ni=null,yo=1,bo="";function Fo(o,i){Aa[$a++]=hu,Aa[$a++]=mf,mf=o,hu=i}function wS(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),wS(o,1,0))}function cp(o){for(;o===mf;)mf=Aa[--$a],Aa[$a]=null,hu=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 TS(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 pu(Rr(i,o)),fp}function CS(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<zu.length;a++)qt(zu[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),B1(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),k1(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||Hx(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 AS(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 AS(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),AS(o),i===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));we=Zx(o)}else if(i===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));we=Zx(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 pu(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(Hu):o=[Hu])}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 $S(Rs,o)}function pf(o,i){return Rs===null&&Os(o),$S(o,i)}function $S(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 qN=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()})}},GN=t.unstable_scheduleCallback,YN=t.unstable_NormalPriority,Ge={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gp(){return{controller:new qN,data:new Map,refCount:0}}function gu(o){o.refCount--,o.refCount===0&&GN(YN,function(){o.controller.abort()})}var yu=null,yp=0,Oa=0,Na=null;function VN(o,i){if(yu===null){var a=yu=[];yp=0,Oa=Sg(),Na={status:"pending",value:void 0,then:function(u){a.push(u)}}}return yp++,i.then(MS,MS),i}function MS(){if(--yp===0&&yu!==null){Na!==null&&(Na.status="fulfilled");var o=yu;yu=null,Oa=0,Na=null;for(var i=0;i<o.length;i++)(0,o[i])()}}function KN(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 RS=O.S;O.S=function(o,i){dx=Qn(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&VN(o,i),RS!==null&&RS(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 OS(){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 NS(o){return o=o.status,o==="fulfilled"||o==="rejected"}function _S(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,jS(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,jS(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 DS(){if(Ds===null)throw Error(r(459));var o=Ds;return Ds=null,o}function jS(o){if(o===_a||o===yf)throw Error(r(483))}var Da=null,bu=0;function vf(o){var i=bu;return bu+=1,Da===null&&(Da=[]),_S(Da,o,i)}function vu(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 IS(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),vu(U,V),U.return=q,U):(U=df(V.type,V.key,V.props,null,q.mode,st),vu(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),vu(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(i3){return i(q,i3)}),Xt&&Fo(q,Bt),wt}function de(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),vu(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),vu(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),de(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 de(q,U,vf(V),st);if(V.$$typeof===j)return de(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{bu=0;var wt=de(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=IS(!0),LS=IS(!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,(ne&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),vS(o,null,a),i}return cf(o,u,i,a),ff(o)}function Su(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,$1(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 Eu(){if(wp){var o=Na;if(o!==null)throw o}}function xu(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 de=a;switch(Ct.tag){case 1:if(gt=Ct.payload,typeof gt=="function"){lt=gt.call(de,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(de,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 zS(o,i){if(typeof o!="function")throw Error(r(191,o));o.call(i)}function BS(o,i){var a=o.callbacks;if(a!==null)for(o.callbacks=null,o=0;o<a.length;o++)zS(a[o],i)}var ja=N(null),Ef=N(0);function US(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 kS(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,ce=null,Ye=null,wf=!1,Ia=!1,Is=!1,Tf=0,wu=0,La=null,XN=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?wE:Fp,Is=!1,h=a(u,d),Is=!1,Ia&&(h=HS(i,a,u,d)),PS(o),h}function PS(o){O.H=Au;var i=ce!==null&&ce.next!==null;if(Yo=0,Ye=ce=zt=null,wf=!1,wu=0,La=null,i)throw Error(r(300));o===null||Ve||(o=o.dependencies,o!==null&&hf(o)&&(Ve=!0))}function HS(o,i,a,u){zt=o;var d=0;do{if(Ia&&(La=null),wu=0,Ia=!1,25<=d)throw Error(r(301));if(d+=1,Ye=ce=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=TE,h=i(a,u)}while(Ia);return h}function QN(){var o=O.H,i=o.useState()[0];return i=typeof i.then=="function"?Tu(i):i,o=o.useState()[0],(ce!==null?ce.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=ce=zt=null,Ia=!1,wu=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(ce===null){var o=zt.alternate;o=o!==null?o.memoizedState:null}else o=ce.next;var i=Ye===null?zt.memoizedState:Ye.next;if(i!==null)Ye=i,ce=o;else{if(o===null)throw zt.alternate===null?Error(r(467)):Error(r(310));ce=o,o={memoizedState:ce.memoizedState,baseState:ce.baseState,baseQueue:ce.baseQueue,queue:ce.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 Tu(o){var i=wu;return wu+=1,La===null&&(La=[]),o=_S(La,o,i),i=zt,(Ye===null?i.memoizedState:Ye.next)===null&&(i=i.alternate,O.H=i===null||i.memoizedState===null?wE:Fp),o}function Af(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Tu(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,ce,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 FS(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((ce||d).memoizedState,a);if(v&&(d.memoizedState=a,Ve=!0),d=d.queue,zp(YS.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},GS.bind(null,u,d,a,i),null),pe===null)throw Error(r(349));h||(Yo&127)!==0||qS(u,i,a)}return a}function qS(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 GS(o,i,a,u){i.value=a,i.getSnapshot=u,VS(i)&&KS(o)}function YS(o,i,a){return a(function(){VS(i)&&KS(o)})}function VS(o){var i=o.getSnapshot;o=o.value;try{var a=i();return!Wn(o,a)}catch{return!0}}function KS(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 XS(o,i,a,u){return o.baseState=a,Dp(o,ce,typeof u=="function"?u:Vo)}function ZN(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,QS(i,h)):(h.next=a.next,i.pending=a.next=h)}}function QS(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),ZS(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),ZS(o,i,h)}catch(K){Lp(o,i,K)}}function ZS(o,i,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){JS(o,i,u)},function(u){return Lp(o,i,u)}):JS(o,i,a)}function JS(o,i,a){i.status="fulfilled",i.value=a,WS(i),o.state=a,i=o.pending,i!==null&&(a=i.next,a===i?o.pending=null:(a=a.next,i.next=a,QS(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,WS(i),i=i.next;while(i!==u)}o.action=null}function WS(o){o=o.listeners;for(var i=0;i<o.length;i++)(0,o[i])()}function tE(o,i){return i}function eE(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:tE,lastRenderedState:i},a.queue=u,a=SE.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=ZN.bind(null,zt,d,h,a),d.dispatch=a,u.memoizedState=o,[i,a,!1]}function nE(o){var i=ke();return rE(i,ce,o)}function rE(o,i,a){if(i=Dp(o,i,tE)[0],o=$f(Vo)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=Tu(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},JN.bind(null,d,a),null)),[u,h,o]}function JN(o,i){o.action=i}function oE(o){var i=ke(),a=ce;if(a!==null)return rE(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 iE(){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;ce!==null&&u!==null&&$p(u,ce.memoizedState.deps)?d.memoizedState=za(i,h,a,u):(zt.flags|=o,d.memoizedState=za(1|i,h,a,u))}function sE(o,i){Mf(8390656,8,o,i)}function zp(o,i){Rf(2048,8,o,i)}function WN(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 aE(o){var i=ke().memoizedState;return WN({ref:i,nextImpl:o}),function(){if((ne&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function lE(o,i){return Rf(4,2,o,i)}function uE(o,i){return Rf(4,4,o,i)}function cE(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 fE(o,i,a){a=a!=null?a.concat([o]):null,Rf(4,4,cE.bind(null,i,o),a)}function Bp(){}function dE(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 mE(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=hx(),zt.lanes|=o,Hi|=o,a)}function hE(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=hx(),zt.lanes|=o,Hi|=o,i)}function pE(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=KN(I,u);Cu(o,i,rt,ir(o))}else Cu(o,i,u,ir(o))}catch(lt){Cu(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 t_(){}function kp(o,i,a,u){if(o.tag!==5)throw Error(r(476));var d=gE(o).queue;pE(o,d,i,D,a===null?t_:function(){return yE(o),a(u)})}function gE(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 yE(o){var i=gE(o);i.next===null&&(i=o.alternate.memoizedState),Cu(o,i.next.queue,{},ir())}function Pp(){return mn(Hu)}function bE(){return ke().memoizedState}function vE(){return ke().memoizedState}function e_(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),Su(u,i,a)),i={cache:gp()},o.payload=i;return}i=i.return}}function n_(o,i,a){var u=ir();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Of(o)?EE(i,a):(a=ip(o,i,a,u),a!==null&&(Un(a,o,u),xE(a,i,u)))}function SE(o,i,a){var u=ir();Cu(o,i,a,u)}function Cu(o,i,a,u){var d={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Of(o))EE(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),xE(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 EE(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 xE(o,i,a){if((a&4194048)!==0){var u=i.lanes;u&=o.pendingLanes,a|=u,i.lanes=a,$1(o,a)}}var Au={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};Au.useEffectEvent=Le;var wE={readContext:mn,use:Af,useCallback:function(o,i){return Tn().memoizedState=[o,i===void 0?null:i],o},useContext:mn,useEffect:sE,useImperativeHandle:function(o,i,a){a=a!=null?a.concat([o]):null,Mf(4194308,4,cE.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=n_.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=SE.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=pE.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||qS(u,i,a)}d.memoizedState=a;var h={value:a,getSnapshot:i};return d.queue=h,sE(YS.bind(null,u,h,o),[o]),u.flags|=2048,za(9,{destroy:void 0},GS.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=XN++,i="_"+i+"r_"+a.toString(32)+"_";return o.memoizedState=i},useHostTransitionStatus:Pp,useFormState:eE,useActionState:eE,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=e_.bind(null,zt)},useEffectEvent:function(o){var i=Tn(),a={impl:o};return i.memoizedState=a,function(){if((ne&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Fp={readContext:mn,use:Af,useCallback:dE,useContext:mn,useEffect:zp,useImperativeHandle:fE,useInsertionEffect:lE,useLayoutEffect:uE,useMemo:mE,useReducer:$f,useRef:iE,useState:function(){return $f(Vo)},useDebugValue:Bp,useDeferredValue:function(o,i){var a=ke();return hE(a,ce.memoizedState,o,i)},useTransition:function(){var o=$f(Vo)[0],i=ke().memoizedState;return[typeof o=="boolean"?o:Tu(o),i]},useSyncExternalStore:FS,useId:bE,useHostTransitionStatus:Pp,useFormState:nE,useActionState:nE,useOptimistic:function(o,i){var a=ke();return XS(a,ce,o,i)},useMemoCache:_p,useCacheRefresh:vE};Fp.useEffectEvent=aE;var TE={readContext:mn,use:Af,useCallback:dE,useContext:mn,useEffect:zp,useImperativeHandle:fE,useInsertionEffect:lE,useLayoutEffect:uE,useMemo:mE,useReducer:jp,useRef:iE,useState:function(){return jp(Vo)},useDebugValue:Bp,useDeferredValue:function(o,i){var a=ke();return ce===null?Up(a,o,i):hE(a,ce.memoizedState,o,i)},useTransition:function(){var o=jp(Vo)[0],i=ke().memoizedState;return[typeof o=="boolean"?o:Tu(o),i]},useSyncExternalStore:FS,useId:bE,useHostTransitionStatus:Pp,useFormState:oE,useActionState:oE,useOptimistic:function(o,i){var a=ke();return ce!==null?XS(a,ce,o,i):(a.baseState=o,[o,a.queue.dispatch])},useMemoCache:_p,useCacheRefresh:vE};TE.useEffectEvent=aE;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),Su(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),Su(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),Su(i,o,a))}};function CE(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?!du(a,u)||!du(d,h):!0}function AE(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 $E(o){lf(o)}function ME(o){console.error(o)}function RE(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 OE(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 NE(o){return o=Li(o),o.tag=3,o}function _E(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(){OE(i,a,u)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(o.callback=function(){OE(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 r_(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}),pu(Rr(o,a)))):(u!==fp&&(i=Error(r(423),{cause:u}),pu(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),ju===null?ju=[h]:ju.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=NE(d),_E(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?LS(i,null,a,u):js(i,o.child,a,u)}function DE(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 jE(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,IE(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:du,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 IE(o,i,a,u,d){if(o!==null){var h=o.memoizedProps;if(du(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 LE(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 zE(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?US(i,h):Tp(),kS(i);else return u=i.lanes=536870912,zE(o,i,h!==null?h.baseLanes|a:a,a,u)}else h!==null?(gf(i,h.cachePool),US(i,h),Ui(),i.memoizedState=null):(o!==null&&gf(i,null),Tp(),Ui());return hn(o,i,d,a),i.child}function $u(o,i){return o!==null&&o.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function zE(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(),kS(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 BE(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 o_(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,$u(null,o);if(Ap(i),(o=we)?(o=Qx(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=ES(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=BE(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=M1(u,a),v!==0&&v!==h.retryLane))throw h.retryLane=v,As(o,v),Un(u,o,v),Vp;Ff(),i=BE(o,i,a)}else o=h.treeContext,we=jr(v.nextSibling),dn=i,Xt=!0,_i=null,_r=!1,o!==null&&TS(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 UE(o,i,a,u,d,h){return Os(i),i.updateQueue=null,a=HS(i,u,a,d),PS(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 kE(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),xu(i,u,h,d),Eu(),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)&&AE(i,h,u,v),Ii=!1;var X=i.memoizedState;h.state=X,xu(i,u,h,d),Eu(),K=i.memoizedState,A||X!==K||Ii?(typeof lt=="function"&&(qp(i,a,lt,u),K=i.memoizedState),(I=Ii||CE(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)&&AE(i,h,u,I),Ii=!1,X=i.memoizedState,h.state=X,xu(i,u,h,d),Eu();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||CE(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 PE(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:OS()}}function Zp(o,i,a){return o=o!==null?o.childLanes&~a:0,i&&(o|=or),o}function HE(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=Qx(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=ES(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,$u(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=$u(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,pu({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=M1(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&&TS(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,$u(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=OS(),A={baseLanes:A.baseLanes|a,cachePool:d}),u.memoizedState=A,u.childLanes=Zp(o,v,a),i.memoizedState=Xp,$u(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 FE(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 qE(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?hu:0,!A&&o!==null&&(o.flags&128)!==0)t:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&FE(o,a,i);else if(o.tag===19)FE(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 i_(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:se(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?HE(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 qE(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,LE(o,i,a,i.pendingProps);case 24:ji(i,Ge,o.memoizedState.cache)}return Ko(o,i,a)}function GE(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,i_(o,i,a);Ve=(o.flags&131072)!==0}else Ve=!1,Xt&&(i.flags&1048576)!==0&&wS(i,hu,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=kE(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=DE(null,i,o,u,a);break t}else if(d===z){i.tag=14,i=jE(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),kE(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),xu(i,u,null,a);var v=i.memoizedState;if(u=v.cache,ji(i,Ge,u),u!==h.cache&&pp(i,[Ge],a,!0),Eu(),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=PE(o,i,u,a);break t}else if(u!==d){d=Rr(Error(r(424)),i),pu(d),i=PE(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=LS(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=nw(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=nw(i.type,o.memoizedProps,i.pendingProps,o.memoizedState),null;case 27:return se(i),o===null&&Xt&&(u=i.stateNode=Wx(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=I_(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)),se(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,QN,null,null,a),Hu._currentValue=d),Df(o,i),hn(o,i,u,a),i.child;case 6:return o===null&&Xt&&((o=a=we)&&(a=L_(a,i.pendingProps,_r),a!==null?(i.stateNode=a,dn=i,we=null,o=!0):o=!1),o||Di(i)),null;case 13:return HE(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 DE(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 jE(o,i,i.type,i.pendingProps,a);case 15:return IE(o,i,i.type,i.pendingProps,a);case 19:return qE(o,i,a);case 31:return o_(o,i,a);case 22:return LE(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),xu(i,null,null,a),Eu()),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(bx())o.flags|=8192;else throw Ds=bf,vp}else o.flags&=-16777217}function YE(o,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!aw(i))if(bx())o.flags|=8192;else throw Ds=bf,vp}function If(o,i){i!==null&&(o.flags|=4),o.flags&16384&&(i=o.tag!==22?C1():536870912,o.lanes|=i,Pa|=i)}function Mu(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 s_(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),YE(i,h)):(Te(i),ng(i,d,null,u,a))):h?h!==o.memoizedState?(Xo(i),Te(i),YE(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)?CS(i):(o=Wx(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))CS(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||Hx(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)Mu(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,Mu(u,!1),o=h.updateQueue,i.updateQueue=o,If(i,o),i.subtreeFlags=0,o=a,a=i.child;a!==null;)SS(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,Mu(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),Mu(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,Mu(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 a_(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 VE(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 Ru(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){le(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){le(d,I,rt)}}}u=u.next}while(u!==h)}}catch(rt){le(i,i.return,rt)}}function KE(o){var i=o.updateQueue;if(i!==null){var a=o.stateNode;try{BS(i,a)}catch(u){le(o,o.return,u)}}}function XE(o,i,a){a.props=Ls(o.type,o.memoizedProps),a.state=o.memoizedState;try{a.componentWillUnmount()}catch(u){le(o,i,u)}}function Ou(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){le(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){le(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){le(o,i,d)}else a.current=null}function QE(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){le(o,o.return,d)}}function rg(o,i,a){try{var u=o.stateNode;R_(u,o.type,a,i),u[Dn]=i}catch(d){le(o,o.return,d)}}function ZE(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||ZE(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 JE(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){le(o,o.return,h)}}var Qo=!1,Ke=!1,sg=!1,WE=typeof WeakSet=="function"?WeakSet:Set,an=null;function l_(o,i){if(o=o.containerInfo,$g=rd,o=fS(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){le(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 tx(o,i,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Jo(o,a),u&4&&Ru(5,a);break;case 1:if(Jo(o,a),u&4)if(o=a.stateNode,i===null)try{o.componentDidMount()}catch(v){le(a,a.return,v)}else{var d=Ls(a.type,i.memoizedProps);i=i.memoizedState;try{o.componentDidUpdate(d,i,o.__reactInternalSnapshotBeforeUpdate)}catch(v){le(a,a.return,v)}}u&64&&KE(a),u&512&&Ou(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{BS(o,i)}catch(v){le(a,a.return,v)}}break;case 27:i===null&&u&4&&JE(a);case 26:case 5:Jo(o,a),i===null&&u&4&&QE(a),u&512&&Ou(a,a.return);break;case 12:Jo(o,a);break;case 31:Jo(o,a),u&4&&rx(o,a);break;case 13:Jo(o,a),u&4&&ox(o,a),u&64&&(o=a.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(a=y_.bind(null,a),z_(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 ex(o){var i=o.alternate;i!==null&&(o.alternate=null,ex(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;)nx(o,i,a),a=a.sibling}function nx(o,i,a){if(Zn&&typeof Zn.onCommitFiberUnmount=="function")try{Zn.onCommitFiberUnmount(tu,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),Uu(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){le(a,i,h)}else try{Me.removeChild(a.stateNode)}catch(h){le(a,i,h)}break;case 18:Me!==null&&(In?(o=Me,Kx(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.stateNode),Xa(o)):Kx(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"&&XE(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 rx(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Xa(o)}catch(a){le(i,i.return,a)}}}function ox(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){le(i,i.return,a)}}function u_(o){switch(o.tag){case 31:case 13:case 19:var i=o.stateNode;return i===null&&(i=o.stateNode=new WE),i;case 22:return o=o.stateNode,i=o._retryCache,i===null&&(i=o._retryCache=new WE),i;default:throw Error(r(435,o.tag))}}function zf(o,i){var a=u_(o);i.forEach(function(u){if(!a.has(u)){a.add(u);var d=b_.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));nx(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;)ix(i,o),i=i.sibling}var Jr=null;function ix(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),Ru(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[ru]||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=iw("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=iw("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 sw(d,o.type,o.stateNode);else o.stateNode=ow(d,u,o.memoizedProps);else h!==u?(h===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):h.count--,u===null?sw(d,o.type,o.stateNode):ow(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){le(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){le(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){le(o,o.return,gt)}sg&&(sg=!1,sx(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){le(I,I.return,gt)}}}else if(i.tag===6){if(a===null){I=i;try{I.stateNode.nodeValue=d?"":I.memoizedProps}catch(gt){le(I,I.return,gt)}}}else if(i.tag===18){if(a===null){I=i;try{var J=I.stateNode;d?Xx(J,!0):Xx(I.stateNode,!1)}catch(gt){le(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(ZE(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){le(o,o.return,rt)}o.flags&=-3}i&4096&&(o.flags&=-4097)}function sx(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var i=o;sx(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;)tx(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"&&XE(i,i.return,a),zs(i);break;case 27:Uu(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),Ru(4,h);break;case 1:if(Wo(d,h,a),u=h,d=u.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(K){le(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++)zS(I[d],A)}catch(K){le(u,u.return,K)}}a&&v&64&&KE(h),Ou(h,h.return);break;case 27:JE(h);case 26:case 5:Wo(d,h,a),a&&u===null&&v&4&&QE(h),Ou(h,h.return);break;case 12:Wo(d,h,a);break;case 31:Wo(d,h,a),a&&v&4&&rx(d,h);break;case 13:Wo(d,h,a),a&&v&4&&ox(d,h);break;case 22:h.memoizedState===null&&Wo(d,h,a),Ou(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&&gu(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&&gu(o))}function Wr(o,i,a,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)ax(o,i,a,u),i=i.sibling}function ax(o,i,a,u){var d=i.flags;switch(i.tag){case 0:case 11:case 15:Wr(o,i,a,u),d&2048&&Ru(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&&gu(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){le(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):Nu(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),Ru(8,v);break;case 23:break;case 22:var rt=v.stateNode;v.memoizedState!==null?rt._visibility&2?Ba(h,v,A,I,d):Nu(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 Nu(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:Nu(a,u),d&2048&&ag(u.alternate,u);break;case 24:Nu(a,u),d&2048&&lg(u.alternate,u);break;default:Nu(a,u)}i=i.sibling}}var _u=8192;function Ua(o,i,a){if(o.subtreeFlags&_u)for(o=o.child;o!==null;)lx(o,i,a),o=o.sibling}function lx(o,i,a){switch(o.tag){case 26:Ua(o,i,a),o.flags&_u&&o.memoizedState!==null&&X_(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=_u,_u=16777216,Ua(o,i,a),_u=u):Ua(o,i,a));break;default:Ua(o,i,a)}}function ux(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 Du(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,fx(u,o)}ux(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)cx(o),o=o.sibling}function cx(o){switch(o.tag){case 0:case 11:case 15:Du(o),o.flags&2048&&ki(9,o,o.return);break;case 3:Du(o);break;case 12:Du(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)):Du(o);break;default:Du(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,fx(u,o)}ux(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 fx(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:gu(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(ex(u),u===a){an=null;break t}if(d!==null){d.return=h,an=d;break t}an=h}}}var c_={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}},f_=typeof WeakMap=="function"?WeakMap:Map,ne=0,pe=null,Ft=null,Yt=0,ae=0,rr=null,Pi=!1,ka=!1,ug=!1,ti=0,ze=0,Hi=0,Bs=0,cg=0,or=0,Pa=0,ju=null,Bn=null,fg=!1,Uf=0,dx=0,kf=1/0,Pf=null,Fi=null,tn=0,qi=null,Ha=null,ei=0,dg=0,mg=null,mx=null,Iu=0,hg=null;function ir(){return(ne&2)!==0&&Yt!==0?Yt&-Yt:O.T!==null?Sg():R1()}function hx(){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&&(ae===2||ae===9)||o.cancelPendingCommit!==null)&&(Fa(o,0),Gi(o,Yt,or,!1)),nu(o,a),((ne&2)===0||o!==pe)&&(o===pe&&((ne&2)===0&&(Bs|=a),ze===4&&Gi(o,Yt,or,!1)),So(o))}function px(o,i,a){if((ne&6)!==0)throw Error(r(327));var u=!a&&(i&127)===0&&(i&o.expiredLanes)===0||eu(o,i),d=u?h_(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&&!d_(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=ju;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=Yx(gx.bind(null,u,a,Bn,Pf,fg,i,or,Bs,Pa,Pi,h,"Throttled",-0,0),d);break t}gx(u,a,Bn,Pf,fg,i,or,Bs,Pa,Pi,h,null,-0,0)}}break}while(!0);So(o)}function gx(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},lx(i,h,lt);var gt=(h&62914560)===h?Uf-Qn():(h&4194048)===h?dx-Qn():0;if(gt=Q_(lt,gt),gt!==null){ei=h,o.cancelPendingCommit=gt(Tx.bind(null,o,i,h,a,u,d,v,A,I,rt,lt,null,X,J)),Gi(o,h,v,!K);return}}Tx(o,i,h,a,u,d,v,A,I)}function d_(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&&A1(o,a,i)}function Hf(){return(ne&6)===0?(Lu(0),!1):!0}function pg(){if(Ft!==null){if(ae===0)var o=Ft.return;else o=Ft,qo=Rs=null,Np(o),Da=null,bu=0,o=Ft;for(;o!==null;)VE(o.alternate,o),o=o.return;Ft=null}}function Fa(o,i){var a=o.timeoutHandle;a!==-1&&(o.timeoutHandle=-1,__(a)),a=o.cancelPendingCommit,a!==null&&(o.cancelPendingCommit=null,a()),ei=0,pg(),pe=o,Ft=a=Ho(o.current,null),Yt=i,ae=0,rr=null,Pi=!1,ka=eu(o,i),ug=!1,Pa=or=cg=Bs=Hi=ze=0,Bn=ju=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 yx(o,i){zt=null,O.H=Au,i===_a||i===yf?(i=DS(),ae=3):i===vp?(i=DS(),ae=4):ae=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 bx(){var o=er.current;return o===null?!0:(Yt&4194048)===Yt?Dr===null:(Yt&62914560)===Yt||(Yt&536870912)!==0?o===Dr:!1}function vx(){var o=O.H;return O.H=Au,o===null?Au:o}function Sx(){var o=O.A;return O.A=c_,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=ne;ne|=2;var d=vx(),h=Sx();(pe!==o||Yt!==i)&&(Pf=null,Fa(o,i)),i=!1;var v=ze;t:do try{if(ae!==0&&Ft!==null){var A=Ft,I=rr;switch(ae){case 8:pg(),v=6;break t;case 3:case 2:case 9:case 6:er.current===null&&(i=!0);var K=ae;if(ae=0,rr=null,qa(o,A,I,K),a&&ka){v=0;break t}break;default:K=ae,ae=0,rr=null,qa(o,A,I,K)}}m_(),v=ze;break}catch(rt){yx(o,rt)}while(!0);return i&&o.shellSuspendCounter++,qo=Rs=null,ne=u,O.H=d,O.A=h,Ft===null&&(pe=null,Yt=0,uf()),v}function m_(){for(;Ft!==null;)Ex(Ft)}function h_(o,i){var a=ne;ne|=2;var u=vx(),d=Sx();pe!==o||Yt!==i?(Pf=null,kf=Qn()+500,Fa(o,i)):ka=eu(o,i);t:do try{if(ae!==0&&Ft!==null){i=Ft;var h=rr;e:switch(ae){case 1:ae=0,rr=null,qa(o,i,h,1);break;case 2:case 9:if(NS(h)){ae=0,rr=null,xx(i);break}i=function(){ae!==2&&ae!==9||pe!==o||(ae=7),So(o)},h.then(i,i);break t;case 3:ae=7;break t;case 4:ae=5;break t;case 7:NS(h)?(ae=0,rr=null,xx(i)):(ae=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?aw(v):A.stateNode.complete){ae=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}}ae=0,rr=null,qa(o,i,h,5);break;case 6:ae=0,rr=null,qa(o,i,h,6);break;case 8:pg(),ze=6;break t;default:throw Error(r(462))}}p_();break}catch(rt){yx(o,rt)}while(!0);return qo=Rs=null,O.H=u,O.A=d,ne=a,Ft!==null?0:(pe=null,Yt=0,uf(),ze)}function p_(){for(;Ft!==null&&!BO();)Ex(Ft)}function Ex(o){var i=GE(o.alternate,o,ti);o.memoizedProps=o.pendingProps,i===null?qf(o):Ft=i}function xx(o){var i=o,a=i.alternate;switch(i.tag){case 15:case 0:i=UE(a,i,i.pendingProps,i.type,void 0,Yt);break;case 11:i=UE(a,i,i.pendingProps,i.type.render,i.ref,Yt);break;case 5:Np(i);default:VE(a,i),i=Ft=SS(i,ti),i=GE(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,bu=0;var d=i.return;try{if(r_(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))),wx(i,o)):qf(i)}function qf(o){var i=o;do{if((i.flags&32768)!==0){wx(i,Pi);return}o=i.return;var a=s_(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 wx(o,i){do{var a=a_(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 Tx(o,i,a,u,d,h,v,A,I){o.cancelPendingCommit=null;do Gf();while(tn!==0);if((ne&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,KO(o,a,h,v,A,I),o===pe&&(Ft=pe=null,Yt=0),Ha=i,qi=o,ei=a,dg=h,mg=d,mx=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,v_(Yc,function(){return Rx(),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=ne,ne|=4;try{l_(o,i,a)}finally{ne=v,B.p=d,O.T=u}}tn=1,Cx(),Ax(),$x()}}function Cx(){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=ne;ne|=4;try{ix(i,o);var h=Mg,v=fS(o.containerInfo),A=h.focusedElem,I=h.selectionRange;if(v!==A&&A&&A.ownerDocument&&cS(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),de=I.end===void 0?Ct:Math.min(I.end,gt);!J.extend&&Ct>de&&(v=de,de=Ct,Ct=v);var q=uS(A,Ct),U=uS(A,de);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>de?(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{ne=d,B.p=u,O.T=a}}o.current=i,tn=2}}function Ax(){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=ne;ne|=4;try{tx(o,i.alternate,i)}finally{ne=d,B.p=u,O.T=a}}tn=3}}function $x(){if(tn===4||tn===3){tn=0,UO();var o=qi,i=Ha,a=ei,u=mx;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?tn=5:(tn=0,Ha=qi=null,Mx(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(tu,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?Iu++:(Iu=0,hg=o):Iu=0,Lu(0)}}function Mx(o,i){(o.pooledCacheLanes&=i)===0&&(i=o.pooledCache,i!=null&&(o.pooledCache=null,gu(i)))}function Gf(){return Cx(),Ax(),$x(),Rx()}function Rx(){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,(ne&6)!==0)throw Error(r(331));var A=ne;if(ne|=4,cx(h.current),ax(h,h.current,v,a),ne=A,Lu(0,!1),Zn&&typeof Zn.onPostCommitFiberRoot=="function")try{Zn.onPostCommitFiberRoot(tu,h)}catch{}return!0}finally{B.p=d,O.T=u,Mx(o,i)}}function Ox(o,i,a){i=Rr(a,i),i=Yp(o.stateNode,i,2),o=zi(o,i,2),o!==null&&(nu(o,2),So(o))}function le(o,i,a){if(o.tag===3)Ox(o,o,a);else for(;i!==null;){if(i.tag===3){Ox(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=NE(2),u=zi(i,a,2),u!==null&&(_E(a,u,i,o),nu(u,2),So(u));break}}i=i.return}}function yg(o,i,a){var u=o.pingCache;if(u===null){u=o.pingCache=new f_;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=g_.bind(null,o,i,a),i.then(o,o))}function g_(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?(ne&2)===0&&Fa(o,0):cg|=a,Pa===Yt&&(Pa=0)),So(o)}function Nx(o,i){i===0&&(i=C1()),o=As(o,i),o!==null&&(nu(o,i),So(o))}function y_(o){var i=o.memoizedState,a=0;i!==null&&(a=i.retryLane),Nx(o,a)}function b_(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),Nx(o,a)}function v_(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,E_())}function Lu(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,Ix(u,h))}else h=Yt,h=Qc(u,u===pe?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||eu(u,h)||(a=!0,Ix(u,h));u=u.next}while(a);vg=!1}}function S_(){_x()}function _x(){Vf=bg=!1;var o=0;Yi!==0&&N_()&&(o=Yi);for(var i=Qn(),a=null,u=Yf;u!==null;){var d=u.next,h=Dx(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||Lu(o),Yi!==0&&(Yi=0)}function Dx(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]=VO(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&&(ae===2||ae===9)||o.cancelPendingCommit!==null)return u!==null&&u!==null&&Gc(u),o.callbackNode=null,o.callbackPriority=0;if((a&3)===0||eu(o,a)){if(i=a&-a,i===o.callbackPriority)return i;switch(u!==null&&Gc(u),jh(a)){case 2:case 8:a=w1;break;case 32:a=Yc;break;case 268435456:a=T1;break;default:a=Yc}return u=jx.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 jx(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:(px(o,u,i),Dx(o,Qn()),o.callbackNode!=null&&o.callbackNode===a?jx.bind(null,o):null)}function Ix(o,i){if(Gf())return null;px(o,i,!0)}function E_(){D_(function(){(ne&6)!==0?Ss(x1,S_):_x()})}function Sg(){if(Yi===0){var o=Oa;o===0&&(o=Vc,Vc<<=1,(Vc&261888)===0&&(Vc=256)),Yi=o}return Yi}function Lx(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:tf(""+o)}function zx(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 x_(o,i,a,u,d){if(i==="submit"&&a&&a.stateNode===d){var h=Lx((d[Dn]||null).action),v=u.submitter;v&&(i=(i=v[Dn]||null)?Lx(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?zx(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?zx(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],w_=xg.toLowerCase(),T_=xg[0].toUpperCase()+xg.slice(1);Zr(w_,"on"+T_)}Zr(hS,"onAnimationEnd"),Zr(pS,"onAnimationIteration"),Zr(gS,"onAnimationStart"),Zr("dblclick","onDoubleClick"),Zr("focusin","onFocus"),Zr("focusout","onBlur"),Zr(kN,"onTransitionRun"),Zr(PN,"onTransitionStart"),Zr(HN,"onTransitionCancel"),Zr(yS,"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 zu="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(" "),C_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zu));function Bx(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)||(Ux(i,o,2,!1),a.add(u))}function wg(o,i,a){var u=0;i&&(u|=4),Ux(a,o,u,i)}var Kf="_reactListening"+Math.random().toString(36).slice(2);function Tg(o){if(!o[Kf]){o[Kf]=!0,_1.forEach(function(a){a!=="selectionchange"&&(C_.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 Ux(o,i,a,u){switch(hw(i)){case 2:var d=W_;break;case 8:d=t3;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}q1(function(){var K=h,rt=Hh(a),lt=[];t:{var X=bS.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=bN;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=V1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=sN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=EN;break;case hS:case pS:case gS:J=uN;break;case yS:J=wN;break;case"scroll":case"scrollend":J=oN;break;case"wheel":J=CN;break;case"copy":case"cut":case"paste":J=fN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=X1;break;case"toggle":case"beforetoggle":J=$N}var Ct=(i&4)!==0,de=!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=iu(U,q),st!=null&&Ct.push(Bu(U,st,V))),de)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&&(de=l(gt),Ct=gt.tag,gt!==de||Ct!==5&&Ct!==27&&Ct!==6)&&(gt=null)):(J=null,gt=K),J!==gt)){if(Ct=V1,st="onMouseLeave",q="onMouseEnter",U="mouse",(o==="pointerout"||o==="pointerover")&&(Ct=X1,st="onPointerLeave",q="onPointerEnter",U="pointer"),de=J==null?X:ou(J),V=gt==null?X:ou(gt),X=new Ct(st,U+"leave",J,a,rt),X.target=de,X.relatedTarget=V,st=null,ma(rt)===K&&(Ct=new Ct(q,U+"enter",gt,a,rt),Ct.target=V,Ct.relatedTarget=de,st=Ct),de=st,J&>)e:{for(Ct=A_,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&&kx(lt,X,J,Ct,!1),gt!==null&&de!==null&&kx(lt,de,gt,Ct,!0)}}t:{if(X=K?ou(K):window,J=X.nodeName&&X.nodeName.toLowerCase(),J==="select"||J==="input"&&X.type==="file")var Wt=rS;else if(eS(X))if(oS)Wt=zN;else{Wt=IN;var vt=jN}else J=X.nodeName,!J||J.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?K&&kh(K.elementType)&&(Wt=rS):Wt=LN;if(Wt&&(Wt=Wt(o,K))){nS(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?ou(K):window,o){case"focusin":(eS(vt)||vt.contentEditable==="true")&&(xa=vt,tp=K,mu=null);break;case"focusout":mu=tp=xa=null;break;case"mousedown":ep=!0;break;case"contextmenu":case"mouseup":case"dragend":ep=!1,dS(lt,a,rt);break;case"selectionchange":if(UN)break;case"keydown":case"keyup":dS(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?W1(o,a)&&(Vt="onCompositionEnd"):o==="keydown"&&a.keyCode===229&&(Vt="onCompositionStart");Vt&&(Q1&&a.locale!=="ko"&&(Ea||Vt!=="onCompositionStart"?Vt==="onCompositionEnd"&&Ea&&(Bt=G1()):(Oi=rt,Gh="value"in Oi?Oi.value:Oi.textContent,Ea=!0)),vt=Xf(K,Vt),0<vt.length&&(Vt=new K1(Vt,o,null,a,rt),lt.push({event:Vt,listeners:vt}),Bt?Vt.data=Bt:(Bt=tS(a),Bt!==null&&(Vt.data=Bt)))),(Bt=RN?ON(o,a):NN(o,a))&&(Vt=Xf(K,"onBeforeInput"),0<Vt.length&&(vt=new K1("onBeforeInput","beforeinput",null,a,rt),lt.push({event:vt,listeners:Vt}),vt.data=Bt)),x_(lt,o,K,a,rt)}Bx(lt,i)})}function Bu(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=iu(o,a),d!=null&&u.unshift(Bu(o,d,h)),d=iu(o,i),d!=null&&u.push(Bu(o,d,h))),o.tag===3)return u;o=o.return}return[]}function A_(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function kx(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=iu(a,h),K!=null&&v.unshift(Bu(a,K,I))):d||(K=iu(a,h),K!=null&&v.push(Bu(a,K,I)))),a=a.return}v.length!==0&&o.push({event:i,listeners:v})}var $_=/\r\n?/g,M_=/\u0000|\uFFFD/g;function Px(o){return(typeof o=="string"?o:""+o).replace($_,`
|
|
79
|
+
`).replace(M_,"")}function Hx(o,i){return i=Px(i),Px(o)===i}function fe(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":H1(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"&&fe(o,i,"name",d.name,d,null),fe(o,i,"formEncType",d.formEncType,d,null),fe(o,i,"formMethod",d.formMethod,d,null),fe(o,i,"formTarget",d.formTarget,d,null)):(fe(o,i,"encType",d.encType,d,null),fe(o,i,"method",d.method,d,null),fe(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=nN.get(a)||a,Zc(o,a,u))}}function Ag(o,i,a,u,d,h){switch(a){case"style":H1(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(!D1.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:fe(o,i,h,v,a,null)}}d&&fe(o,i,"srcSet",a.srcSet,a,null),u&&fe(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:fe(o,i,u,rt,a,null)}}B1(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:fe(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:fe(o,i,v,A,a,null)}k1(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":fe(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<zu.length;u++)qt(zu[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:fe(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&&fe(o,i,A,u,a,null))}function R_(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)||fe(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&&fe(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)||fe(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&&fe(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:fe(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&&fe(o,i,v,d,u,h)}U1(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:fe(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":fe(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)&&fe(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:fe(o,i,K,X,u,J)}return;default:if(kh(i)){for(var de in a)X=a[de],a.hasOwnProperty(de)&&X!==void 0&&!u.hasOwnProperty(de)&&Ag(o,i,de,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)&&fe(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||fe(o,i,lt,X,u,J)}function Fx(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function O_(){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&&Fx(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&&Fx(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 qx(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 Gx(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 N_(){var o=window.event;return o&&o.type==="popstate"?o===Og?!1:(Og=o,!0):(Og=null,!1)}var Yx=typeof setTimeout=="function"?setTimeout:void 0,__=typeof clearTimeout=="function"?clearTimeout:void 0,Vx=typeof Promise=="function"?Promise:void 0,D_=typeof queueMicrotask=="function"?queueMicrotask:typeof Vx<"u"?function(o){return Vx.resolve(null).then(o).catch(j_)}:Yx;function j_(o){setTimeout(function(){throw o})}function Vi(o){return o==="head"}function Kx(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")Uu(o.ownerDocument.documentElement);else if(a==="head"){a=o.ownerDocument.head,Uu(a);for(var h=a.firstChild;h;){var v=h.nextSibling,A=h.nodeName;h[ru]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&h.rel.toLowerCase()==="stylesheet"||a.removeChild(h),h=v}}else a==="body"&&Uu(o.ownerDocument.body);a=d}while(a);Xa(i)}function Xx(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 I_(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[ru])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 L_(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 Qx(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 z_(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 Zx(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 Jx(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 Wx(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 Uu(o){for(var i=o.attributes;i.length;)o.removeAttributeNode(i[0]);Lh(o)}var Ir=new Map,tw=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:B_,r:U_,D:k_,C:P_,L:H_,m:F_,X:G_,S:q_,M:Y_};function B_(){var o=ni.f(),i=Hf();return o||i}function U_(o){var i=ha(o);i!==null&&i.tag===5&&i.type==="form"?yE(i):ni.r(o)}var Ya=typeof document>"u"?null:document;function ew(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+'"]'),tw.has(d)||(tw.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 k_(o){ni.D(o),ew("dns-prefetch",o,null)}function P_(o,i){ni.C(o,i),ew("preconnect",o,i)}function H_(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(ku(h))||i==="script"&&u.querySelector(Pu(h))||(i=u.createElement("link"),pn(i,"link",o),sn(i),u.head.appendChild(i)))}}function F_(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(Pu(h)))return}u=a.createElement("link"),pn(u,"link",o),sn(u),a.head.appendChild(u)}}}function q_(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(ku(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 G_(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(Pu(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 Y_(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(Pu(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 nw(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(ku(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||V_(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 ku(o){return'link[rel="stylesheet"]['+o+"]"}function rw(o){return b({},o,{"data-precedence":o.precedence,precedence:null})}function V_(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 Pu(o){return"script[async]"+o}function ow(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(ku(d));if(h)return i.state.loading|=4,i.instance=h,sn(h),h;u=rw(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(Pu(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 iw(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[ru]||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 sw(o,i,a){o=o.ownerDocument||o,o.head.insertBefore(a,i==="title"?o.querySelector("head > title"):null)}function K_(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 aw(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function X_(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(ku(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=rw(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 Q_(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*O_());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(Z_,o),ed=null,td.call(o))}function Z_(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 Hu={$$typeof:j,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function J_(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 lw(o,i,a,u,d,h,v,A,I,K,rt,lt){return o=new J_(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 uw(o){return o?(o=Ca,o):Ca}function cw(o,i,a,u,d,h){d=uw(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),Su(a,o,i))}function fw(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){fw(o,i),(o=o.alternate)&&fw(o,i)}function dw(o){if(o.tag===13||o.tag===31){var i=As(o,67108864);i!==null&&Un(i,o,67108864),Bg(o,67108864)}}function mw(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 W_(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 t3(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),pw(o,u);else if(n3(d,o,i,a,u))u.stopPropagation();else if(pw(o,u),i&4&&-1<e3.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),(ne&6)===0&&(kf=Qn()+500,Lu(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 hw(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(kO()){case x1:return 2;case w1:return 8;case Yc:case PO:return 32;case T1:return 268435456;default:return 32}default:return 32}}var Hg=!1,Ki=null,Xi=null,Qi=null,Fu=new Map,qu=new Map,Zi=[],e3="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 pw(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":Fu.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":qu.delete(i.pointerId)}}function Gu(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&&dw(i)),o):(o.eventSystemFlags|=u,i=o.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),o)}function n3(o,i,a,u,d){switch(i){case"focusin":return Ki=Gu(Ki,o,i,a,u,d),!0;case"dragenter":return Xi=Gu(Xi,o,i,a,u,d),!0;case"mouseover":return Qi=Gu(Qi,o,i,a,u,d),!0;case"pointerover":var h=d.pointerId;return Fu.set(h,Gu(Fu.get(h)||null,o,i,a,u,d)),!0;case"gotpointercapture":return h=d.pointerId,qu.set(h,Gu(qu.get(h)||null,o,i,a,u,d)),!0}return!1}function gw(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,O1(o.priority,function(){mw(a)});return}}else if(i===31){if(i=f(a),i!==null){o.blockedOn=i,O1(o.priority,function(){mw(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&&dw(i),o.blockedOn=a,!1;i.shift()}return!0}function yw(o,i,a){id(o)&&a.delete(i)}function r3(){Hg=!1,Ki!==null&&id(Ki)&&(Ki=null),Xi!==null&&id(Xi)&&(Xi=null),Qi!==null&&id(Qi)&&(Qi=null),Fu.forEach(yw),qu.forEach(yw)}function sd(o,i){o.blockedOn===i&&(o.blockedOn=null,Hg||(Hg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,r3)))}var ad=null;function bw(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),Fu.forEach(i),qu.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);)gw(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||bw(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),bw(a)}}}function vw(){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();cw(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;cw(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=R1();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&&gw(o)}};var Sw=e.version;if(Sw!=="19.2.4")throw Error(r(527,Sw,"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 o3={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{tu=ud.inject(o3),Zn=ud}catch{}}return Zu.createRoot=function(o,i){if(!s(o))throw Error(r(299));var a=!1,u="",d=$E,h=ME,v=RE;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=lw(o,1,!1,null,null,a,u,null,d,h,v,vw),o[da]=i.current,Tg(o),new Fg(i)},Zu.hydrateRoot=function(o,i,a){if(!s(o))throw Error(r(299));var u=!1,d="",h=$E,v=ME,A=RE,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=lw(o,1,!0,i,a??null,u,d,I,h,v,A,vw),i.context=uw(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,nu(i,a),So(i),o[da]=i.current,Tg(o),new ld(i)},Zu.version="19.2.4",Zu}var p2;function WJ(){if(p2)return Ey.exports;p2=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(),Ey.exports=JJ(),Ey.exports}var g2=WJ();class y2{log=ho();root;onBrowserRender=sr({on:"react:browser:render",handler:async({hydration:e,root:n,element:r})=>{e?.layers?(this.root=g2.hydrateRoot(n,r),this.log.info("Hydrated root element")):(this.root??=g2.createRoot(n),this.root.render(r),this.log.info("Created root element"))}})}class p0{alepha=Rt(Re);pageApi=Rt(Zd);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(h0)}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.push(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 push(e,n){for(const r of this.pages)if(r.name===e){await this.browser?.push(this.path(e,n),n);return}await this.browser?.push(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.push(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 tW=()=>yv(p0);gr({name:"alepha.react.router",primitives:[Cn],services:[Zd,m0,h0,p0,y2,yO],register:t=>t.with(gM).with(vM).with(aM).with(fM).with(fG).with(Zd).with(h0).with(m0).with(y2).with(p0)});var eW={root:"m_8f2832ae",section:"m_7a0fe999"};function b2(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 nW=()=>h1({mounted:!1,progress:0,interval:0,step:1,stepInterval:100,timeouts:[]}),rW=t=>p1(t);function Ur(t,e){const n=e.getState();e.setState({...n,...t(e.getState())})}function oW(t){Ur(e=>({progress:Math.max(e.progress-e.step,0)}),t)}function iW(t,e){Ur(()=>({progress:LM(t,0,100),mounted:!0}),e)}function y1(t){Ur(e=>(window.clearInterval(e.interval),e.timeouts.forEach(n=>window.clearTimeout(n)),{timeouts:[]}),t)}function sW(t){y1(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 aW(t){Ur(e=>({progress:b2(e.progress),mounted:!0}),t),Ur(e=>(window.clearInterval(e.interval),{interval:window.setInterval(()=>{Ur(r=>({progress:b2(r.progress),mounted:!0}),t)},e.stepInterval),mounted:!0}),t)}function wO(t){Ur(e=>(window.clearInterval(e.interval),{interval:-1}),t)}function b1(t){y1(t),wO(t),Ur(()=>({progress:0,mounted:!1}),t)}function lW(t){Ur(e=>{const n=Math.min(e.progress+e.step,100),r=n!==100&&n!==0;if(!r){const s=window.setTimeout(()=>b1(t),e.stepInterval+50);return{progress:n,mounted:r,timeouts:[...e.timeouts,s]}}return{progress:n,mounted:r}},t)}function uW(){const t=nW();return[t,{start:()=>aW(t),stop:()=>wO(t),reset:()=>b1(t),set:n=>iW(n,t),increment:()=>lW(t),decrement:()=>oW(t),complete:()=>sW(t),cleanup:()=>y1(t)}]}const[cW,g0]=uW(),{start:ptt,stop:gtt,reset:ytt,set:btt,increment:vtt,decrement:Stt,complete:Ett,cleanup:xtt}=g0;function TO({initialProgress:t=0,color:e,size:n=3,stepInterval:r=500,withinPortal:s=!0,portalProps:l,zIndex:c=wr("max"),store:f=cW,...m}){f.initialize({mounted:!1,progress:t,interval:-1,step:1,stepInterval:r,timeouts:[]});const p=rW(f);return C.useEffect(()=>()=>b1(f),[f]),x.jsx(Ws,{...l,withinPortal:s,children:x.jsx(Ql,{radius:0,value:p.progress,size:n,color:e,classNames:eW,"data-mounted":p.mounted||void 0,__vars:{"--nprogress-z-index":c?.toString()},...m})})}TO.displayName="@mantine/nprogress/NavigationProgress";const fW=()=>{vv(Wu);const t=yv(Yy);return[t.getTheme(),r=>{t.setTheme(r.index)}]},dW=()=>yv(f0),mW=()=>h1({opened:!1,empty:!1,selected:-1,listId:"",query:"",registeredActions:new Set}),hW=t=>p1(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 pW(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=LM(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 gW(t){return Th(t.getState().selected+1,t)}function yW(t){return Th(t.getState().selected-1,t)}function bW(t){const e=t.getState();Jd(`#${e.listId} [data-selected]`)?.click()}function vW(t,e){const n=e.getState();return n.registeredActions.add(t),()=>{n.registeredActions.delete(t)}}function SW(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 EW({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:pW,selectAction:Th,selectNextAction:gW,selectPreviousAction:yW,triggerSelectedAction:bW,registerAction:vW,setQuery:SW,clearSpotlightState:EW};function xW(){const t=mW();return[t,{open:()=>CO(t),close:()=>AO(t),toggle:()=>$O(t)}]}const[RO,Ch]=xW(),{open:wtt,close:Ttt,toggle:Ctt}=Ch;function OO(t){const e=t;return e.group!==void 0&&Array.isArray(e.actions)}function wW(t){return Array.isArray(t)?t.map(e=>e.trim()).join(",").toLowerCase().trim():typeof t=="string"?t.toLowerCase().trim():""}function TW(t){return t.reduce((e,n)=>"actions"in n?[...e,...n.actions.map(r=>({...r,group:n.group}))]:[...e,n],[])}function CW(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 AW=(t,e)=>{const n=t.trim().toLowerCase(),r=[[],[]];return TW(e).forEach(l=>{l.label?.toLowerCase().includes(n)?r[0].push(l):(l.description?.toLowerCase().includes(n)||wW(l.keywords).includes(n))&&r[1].push(l)}),CW(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[$W,Jl]=zl("Spotlight component was not found in tree"),MW={dimmedSections:!0,highlightQuery:!1},fc=It((t,e)=>{const n=bt("SpotlightAction",MW,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=Jl(),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(ql,{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})]})})});fc.classes=Do;fc.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=Jl();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=Jl(),b=`mantine-${C.useId().replace(/:/g,"")}`,E=s||b;return C.useEffect(()=>(Oo.setListId(E,g.store),()=>Oo.setListId("",g.store)),[]),x.jsx(Fl.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=Jl();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 v1=It((t,e)=>{const{className:n,style:r,classNames:s,styles:l,...c}=bt("SpotlightFooter",null,t),f=Jl();return x.jsx(ht,{ref:e,...f.getStyles("footer",{className:n,classNames:s,style:r,styles:l}),...c})});v1.classes=Do;v1.displayName="@mantine/spotlight/SpotlightFooter";function RW(t,e){if(!t)return[];const n=()=>Oo.open(e);return Array.isArray(t)?t.map(r=>[r,n]):[[t,n]]}const OW={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",OW,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}=hW(p),Y=typeof b=="string"?b:dt,Z=B=>{E?.(B),Oo.setQuery(B,p)},O=ie({name:"Spotlight",classes:Do,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:W});return $Y(RW(w,p),$,_),Ul(()=>{ct?j?.():P?.()},[ct]),L?null:x.jsx($W,{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:lc({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 NW={size:"lg"},Oh=It((t,e)=>{const{classNames:n,styles:r,onKeyDown:s,onChange:l,vars:c,value:f,...m}=bt("SpotlightSearch",NW,t),p=Jl(),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 _W={size:600,yOffset:80,limit:1/0,zIndex:wr("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:RO,filter:AW,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K"},Cr=It((t,e)=>{const n=bt("Spotlight",_W,t),{searchProps:r,filter:s,query:l,onQueryChange:c,actions:f,nothingFound:m,highlightQuery:p,limit:g,scrollAreaProps:b,...E}=n,[S,T]=EY({value:l,defaultValue:"",finalValue:"",onChange:c}),w=NO(s(S,f),g).map($=>{if(OO($)){const _=$.actions.map(({id:L,...j})=>x.jsx(fc,{highlightQuery:p,...j},L));return x.jsx(Ah,{label:$.group,children:_},$.group)}return x.jsx(fc,{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=fc;Cr.Empty=Mh;Cr.ActionsGroup=Ah;Cr.Footer=v1;Cr.Root=Rh;Cr.open=Ch.open;Cr.close=Ch.close;Cr.toggle=Ch.toggle;function DW(t){return C.isValidElement(t)?!1:typeof t=="function"||typeof t=="object"&&t!==null&&"$$typeof"in t}const jW=t=>{if(!t)return null;if(C.isValidElement(t))return t;if(DW(t)){const e=t;return x.jsx(e,{size:m1.sizes.icon.md})}return t},IW=t=>{const e=t.shortcut??"mod+K",n=t.searchPlaceholder??"Search...",r=t.nothingFound??"Nothing found...",s=tW(),[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.push(f.staticName,{params:f.params}):s.push(f.name),leftSection:jW(f.icon)})),[l]);return x.jsx(Cr,{actions:c,shortcut:e,limit:10,searchProps:{leftSection:x.jsx(rJ,{size:m1.sizes.icon.md}),placeholder:n},nothingFound:r})},LW=t=>{const e=dW(),[n]=fW();pM({"react:transition:begin":()=>{g0.start()},"react:transition:end":()=>{g0.complete()},"react:action:error":({error:s})=>{s instanceof dG||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(vV,{defaultColorScheme:r,...t.colorSchemeScript}),x.jsxs(QM,{...t.mantine,defaultColorScheme:r,theme:{...n,...t.mantine?.theme},children:[x.jsx(Ai,{...t.notifications}),x.jsx(TO,{...t.navigationProgress}),x.jsxs(RZ,{...t.modals,children:[t.omnibar!==!1&&x.jsx(IW,{...t.omnibar}),t.children??x.jsx(d0,{})]})]})]})};class _O{root=Cn({path:"/",component:LW})}const Ty=(t,e,n)=>(Object.assign(t,{[e]:n??{}}),t),DO=Symbol.for("Alepha.Postgres.Default"),zW=Symbol.for("Alepha.Postgres.PrimaryKey"),Att=Symbol.for("Alepha.Postgres.CreatedAt"),$tt=Symbol.for("Alepha.Postgres.UpdatedAt"),Mtt=Symbol.for("Alepha.Postgres.DeletedAt"),Rtt=Symbol.for("Alepha.Postgres.Version"),Ott=Symbol.for("Alepha.Postgres.Identity"),Ntt=Symbol.for("Alepha.Postgres.Enum"),_tt=Symbol.for("Alepha.Postgres.Ref"),BW=Symbol.for("Alepha.Postgres.Serial"),Mn=Symbol.for("drizzle:entityKind");function UW(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 kW{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 PW{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 HW{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 FW(e,this)}}class FW{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 qW(t,...e){return t(...e)}function GW(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 YW(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 PW{foreignKeyConfigs=[];static[Mn]="PgColumnBuilder";array(e){return new KW(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})=>qW((l,c)=>{const f=new HW(()=>{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 VW(e,this.config)}}class S1 extends kW{constructor(e,n){n.uniqueName||(n.uniqueName=GW(e,[n.name])),super(e,n),this.table=e}static[Mn]="PgColumn"}class VW 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 KW 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=YW(e)),e.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(e,n=!1){const r=e.map(s=>s===null?null:UW(this.baseColumn,E1)?this.baseColumn.mapToDriverValue(s,!0):this.baseColumn.mapToDriverValue(s));return n?r:IO(r)}}function XW(t,e){return{name:typeof t=="string"&&t.length>0?t:"",config:typeof t=="object"?t:e}}typeof TextDecoder>"u"||new TextDecoder;class QW 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 ZW(e,this.config)}}class ZW 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 JW(t){return(e,n)=>{const{name:r,config:s}=XW(e,n);return new QW(r,s,t)}}const Cy=(t,e)=>JW({dataType:()=>"jsonb",toDriver:n=>JSON.stringify(n),fromDriver:n=>n&&typeof n=="string"?JSON.parse(n):n})(t,{document:e}).$type(),WW=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}:{})},ttt=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}:{})},ett=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 WW(this.options.schema)}get updateSchema(){return ttt(this.options.schema)}}ett[Rn]=Nh;Ty(Ty(Ty(R.integer(),zW),BW),DO);gr({name:"alepha.orm",primitives:[],services:[aM]});gr({name:"alepha.ui",services:[s2,f0,Yy,_O],register:t=>{t.with(gG),t.with(vM),t.with(mG),t.with(Yy),t.with(s2),t.with(f0)}});const ntt=(t={})=>{const{alepha:e}=vl();return t.themes&&e.store.set(Gy,t.themes),e.inject(_O)};class rtt{ui=ntt({themes:[CM]});layout=Cn({parent:this.ui.root,lazy:()=>to(()=>import("./chunk.C39_Jg92.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),[Symbol.for("alepha.page.preload")]:"bfc0f5d4"});dashboard=Cn({path:"/",label:"Dashboard",icon:x.jsx(VZ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.DQ4jfyFm.js"),__vite__mapDeps([8,9])),[Symbol.for("alepha.page.preload")]:"6f78c010"});actions=Cn({path:"/actions",label:"Actions",icon:x.jsx(jZ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.By_Dci-t.js"),__vite__mapDeps([10,11,12,13,14,15,16,17,3,7,18,19])),[Symbol.for("alepha.page.preload")]:"832bc884"});queues=Cn({path:"/queues",label:"Queues",icon:x.jsx(iJ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.U5tHwlLn.js"),__vite__mapDeps([20,2])),[Symbol.for("alepha.page.preload")]:"f057fce9"});topics=Cn({path:"/topics",label:"Topics",icon:x.jsx(eJ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.BxbQjapd.js"),__vite__mapDeps([21,22,3,6,11,12,23,17,16,24,14,15])),[Symbol.for("alepha.page.preload")]:"9b55d83f"});caches=Cn({path:"/caches",label:"Caches",icon:x.jsx(LZ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.D8Zx2d84.js"),__vite__mapDeps([25,11,12,23,17,3,26,24,27])),[Symbol.for("alepha.page.preload")]:"6d769362"});env=Cn({path:"/env",label:"Environment",icon:x.jsx(uJ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.SkQJX15J.js"),__vite__mapDeps([28,11,12,13,26,27])),[Symbol.for("alepha.page.preload")]:"9fe5fa6f"});atoms=Cn({path:"/atoms",label:"Atoms",icon:x.jsx(BZ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.DB50RmbI.js"),__vite__mapDeps([29,22,3,6,11,12,17,30,5,31,14,15])),[Symbol.for("alepha.page.preload")]:"f3532adc"});db=Cn({path:"/db",label:"DB Studio",icon:x.jsx(XZ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.DtreVhNu.js"),__vite__mapDeps([32,11,12,17,3,26])),[Symbol.for("alepha.page.preload")]:"ebed1358"});graph=Cn({path:"/graph",label:"Graph",icon:x.jsx(aJ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.DAXSdsjw.js"),__vite__mapDeps([33,11,19,15,34,31,4,5,6,12,9,18,35])),[Symbol.for("alepha.page.preload")]:"4fded5f0"});logs=Cn({path:"/logs",label:"Logs",icon:x.jsx(WZ,{}),static:!0,parent:this.layout,lazy:()=>to(()=>import("./chunk.Dyhfd98M.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,27,24,12,34,31,30,19,15,14,26])),[Symbol.for("alepha.page.preload")]:"a84b8869"})}const zO=Re.create();zO.with(rtt);vq(zO);export{WZ as $,vv as A,ht as B,ltt as C,Ch as D,rJ as E,n1 as F,Cq as G,jW as H,JM as I,pM as J,PZ as K,FZ as L,FM as M,m1 as N,d0 as O,VZ as P,jZ as Q,Gd as R,iJ as S,oo as T,ql as U,eJ as V,LZ as W,XZ as X,uJ as Y,BZ as Z,aJ as _,Bl as a,_tt as a$,ZZ as a0,sR as a1,EY as a2,ftt as a3,dh as a4,yv as a5,cM as a6,Vl as a7,lo as a8,Gl as a9,Tv as aA,Ul as aB,FY as aC,IQ as aD,pr as aE,Xy as aF,Zm as aG,tR as aH,lh as aI,_v as aJ,ctt as aK,ar as aL,eY as aM,ta as aN,Vm as aO,Jq as aP,Qr as aQ,Ut as aR,Ty as aS,DO as aT,zW as aU,Ott as aV,Rtt as aW,Att as aX,$tt as aY,Mtt as aZ,Ntt as a_,Xv as aa,oO as ab,gl as ac,fO as ad,GZ as ae,Fl as af,qc as ag,f1 as ah,fJ as ai,xi as aj,s2 as ak,Iv as al,yV as am,VM as an,pv as ao,ys as ap,$n as aq,_Z as ar,Hc as as,R as at,ho as au,Rt as av,Re as aw,Km as ax,LM as ay,ZM as az,Mv as b,bq as b0,DW as b1,Jm as b2,zo as b3,ett as b4,ri as b5,att as b6,EM as b7,kl as b8,nY as b9,$v as ba,GJ as bb,sO as bc,l0 as bd,PM as be,uY as bf,Ws as bg,Zv as bh,a0 as bi,qM as bj,xR as bk,nX as bl,pX as bm,htt as bn,PT as bo,bR as bp,py as bq,gX as br,mtt as bs,dtt as bt,ZX as bu,Qv as bv,IM as bw,Xd as bx,rs as by,zl as c,bt as d,Yn as e,It as f,ut as g,Cv as h,yT as i,x as j,$o as k,Kn as l,bs as m,SY as n,ie as o,po as p,Av as q,C as r,wr as s,utt as t,lY as u,ln as v,Zs as w,Tr as x,un as y,tW as z};
|