@imenam/mcp-organizer 1.0.12 → 1.0.13
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.
|
@@ -43,11 +43,14 @@ export interface ApiResponseData {
|
|
|
43
43
|
export declare const UPSTREAM_ERROR_HEADER = "X-Organizer-Error-Source";
|
|
44
44
|
/** Nom du cookie de session de la GUI. */
|
|
45
45
|
export declare const SESSION_COOKIE_NAME = "organizer_session";
|
|
46
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Réponse de `GET /api/health`, route publique.
|
|
48
|
+
*
|
|
49
|
+
* Ni version de l'application ni version du schéma : elles renseignaient un
|
|
50
|
+
* inconnu sur la version déployée (revue de sécurité du 2026-10-25).
|
|
51
|
+
*/
|
|
47
52
|
export declare const HealthResponseSchema: z.ZodObject<{
|
|
48
53
|
status: z.ZodLiteral<"ok">;
|
|
49
|
-
version: z.ZodString;
|
|
50
|
-
schemaVersion: z.ZodNumber;
|
|
51
54
|
accountsExist: z.ZodBoolean;
|
|
52
55
|
}, z.core.$strip>;
|
|
53
56
|
export type HealthResponse = z.infer<typeof HealthResponseSchema>;
|
|
@@ -10,11 +10,14 @@ export const API_ERROR_KINDS = ["invalid", "unauthorized", "forbidden", "not_fou
|
|
|
10
10
|
export const UPSTREAM_ERROR_HEADER = "X-Organizer-Error-Source";
|
|
11
11
|
/** Nom du cookie de session de la GUI. */
|
|
12
12
|
export const SESSION_COOKIE_NAME = "organizer_session";
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Réponse de `GET /api/health`, route publique.
|
|
15
|
+
*
|
|
16
|
+
* Ni version de l'application ni version du schéma : elles renseignaient un
|
|
17
|
+
* inconnu sur la version déployée (revue de sécurité du 2026-10-25).
|
|
18
|
+
*/
|
|
14
19
|
export const HealthResponseSchema = z.object({
|
|
15
20
|
status: z.literal("ok"),
|
|
16
|
-
version: z.string(),
|
|
17
|
-
schemaVersion: z.number().int(),
|
|
18
21
|
/** Faux tant qu'aucun compte n'existe : la connexion est alors impossible. */
|
|
19
22
|
accountsExist: z.boolean(),
|
|
20
23
|
});
|
package/dist/src/gui-api.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActivateRequestSchema, ChangePasswordRequestSchema, CreateSpaceRequestSchema, InviteRequestSchema, LoginRequestSchema, RenameSpaceRequestSchema, UpdateProfileRequestSchema, } from "../shared/schemas/api.schema.js";
|
|
2
|
-
import { schemaVersion } from "./core/migrations.js";
|
|
3
2
|
import { ForbiddenError, InvariantError, NotFoundError, OrganizerError, UnauthorizedError } from "./core/errors.js";
|
|
4
3
|
import { authenticate, changePassword, login, logout, redeemAccessLink, resolveAccessLink, updateDisplayName } from "./core/accounts.js";
|
|
5
4
|
import { acceptReceivedInvitation, createSharedSpace, declineReceivedInvitation, deleteSpace, inviteToSpace, leaveSpace, listMembers, listMemberSuggestions, listReceivedInvitations, listSpaces, removeMember, renameSpace, resendInvitation, revokeInvitation, } from "./core/spaces.js";
|
|
@@ -109,8 +108,6 @@ function now(ctx) {
|
|
|
109
108
|
publicRoute("GET", "/health", (ctx) => {
|
|
110
109
|
const health = {
|
|
111
110
|
status: "ok",
|
|
112
|
-
version: ctx.version,
|
|
113
|
-
schemaVersion: schemaVersion(ctx.store.db),
|
|
114
111
|
accountsExist: ctx.store.countUsers() > 0,
|
|
115
112
|
};
|
|
116
113
|
return { body: health };
|
|
@@ -60,7 +60,7 @@ Error generating stack: `+e.message+`
|
|
|
60
60
|
|
|
61
61
|
`)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=se,c=!nt.jitless,l=c&&ce.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?Pr([],p,i,f,d,e,f?.abortEarly===!0):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function Lr(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Te(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>je(e,r,rt())))}),t)}var Rr=F(`$ZodUnion`,(e,t)=>{Mn.init(e,t),Ke(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),Ke(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),Ke(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),Ke(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>E(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Lr(t,r,e,i)):Lr(o,r,e,i)}});function zr(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}var Br=F(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Rr.init(e,t);let n=e._zod.parse;Ke(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||O(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=ee(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=w(()=>zr(t));e._zod.parse=(i,a)=>{let o=i.value;if(!se(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),Vr=F(`$ZodIntersection`,(e,t)=>{Mn.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Ur(e,t,n)):Ur(e,i,a)}});function Hr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(le(e)&&le(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=Hr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Hr(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ur(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=Hr(t.value,n.value);if(!c.valid){if(Te(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Wr=F(`$ZodRecord`,(e,t)=>{Mn.init(e,t);let n=nt.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!le(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>je(e,i,rt())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...De(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...De(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e)){if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e)}l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&cn.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>je(e,i,rt())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...De(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...De(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),Gr=F(`$ZodEnum`,(e,t)=>{Mn.init(e,t);let n=b(t.entries),r=new Set(n);e._zod.values=r,Ke(e,`pattern`,e=>{let t=b(e.def.entries).filter(e=>de.has(typeof e));return RegExp(t.length?`^(${t.map(e=>fe(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Kr=F(`$ZodLiteral`,(e,t)=>{Mn.init(e,t);let n=new Set(t.values);e._zod.values=n,Ke(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?fe(e):e?fe(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),qr=F(`$ZodTransform`,(e,t)=>{Mn.init(e,t),e._zod.optin=`optional`,nt.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new tt(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new et;return n.value=i,n}});function Jr(e,t){return e.value=t.issues.length?void 0:t.value,e}var Yr=F(`$ZodOptional`,(e,t)=>{Mn.init(e,t),Ke(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,Ke(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),Ke(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${E(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>Jr(e,t)):Jr(e,r)}return t.innerType._zod.run(e,n)}}),Xr=F(`$ZodExactOptional`,(e,t)=>{Yr.init(e,t),Ke(e,`values`,e=>e.def.innerType._zod.values),Ke(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Zr=F(`$ZodNullable`,(e,t)=>{Mn.init(e,t),Ke(e,`optin`,e=>e.def.innerType._zod.optin),Ke(e,`optout`,e=>e.def.innerType._zod.optout),Ke(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${E(t.source)}|null)$`):void 0}),Ke(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Qr=F(`$ZodDefault`,(e,t)=>{Mn.init(e,t),e._zod.optin=`defaulted`,Ke(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>$r(e,t)):$r(r,t)}});function $r(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ei=F(`$ZodPrefault`,(e,t)=>{Mn.init(e,t),e._zod.optin=`defaulted`,Ke(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ti=F(`$ZodNonOptional`,(e,t)=>{Mn.init(e,t),Ke(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>ni(t,e)):ni(i,e)}});function ni(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function ri(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>je(e,r,rt()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var ii=F(`$ZodCatch`,(e,t)=>{Mn.init(e,t),Ke(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),Ke(e,`optout`,e=>e.def.innerType._zod.optout),Ke(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>ri(e,r,t,n)):ri(e,r,t,n)}}),ai=F(`$ZodPipe`,(e,t)=>{Mn.init(e,t),Ke(e,`values`,e=>e.def.in._zod.values),Ke(e,`optin`,e=>e.def.in._zod.optin),Ke(e,`optout`,e=>e.def.out._zod.optout),Ke(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>oi(e,t.in,n)):oi(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>oi(e,t.out,n)):oi(r,t.out,n)}});function oi(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var si=F(`$ZodReadonly`,(e,t)=>{Mn.init(e,t),Ke(e,`propValues`,e=>e.def.innerType._zod.propValues),Ke(e,`values`,e=>e.def.innerType._zod.values),Ke(e,`optin`,e=>e.def.innerType?._zod?.optin),Ke(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(ci):ci(r)}});function ci(e){return e.memo||(e.value=Object.freeze(e.value)),e}var li=F(`$ZodCustom`,(e,t)=>{fn.init(e,t),Mn.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>ui(t,n,r,e));ui(i,n,r,e)}});function ui(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ie(e))}}var di=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},fi=`~memo`,pi=[];function mi(e){return typeof e==`object`&&!!e}function hi(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var gi=new WeakMap,_i=0,vi=1,yi=2;function bi(e,t,n){let r=gi.get(e);if(r!==void 0)return r?yi:_i;if(t.has(e))return yi;t.add(e);let i=_i,a=e=>{if(i!==yi&&e?._zod){let r=bi(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=_i;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?vi:o.value?._zod?bi(o.value,t,n):_i;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=ee(c);s(e?o(e,!0):vi),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?bi(r,t,!1):vi);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),xi(e,i)}function xi(e,t){return t!==vi&&gi.set(e,t===yi),t}function Si(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var Ci,wi=[],Ti={alloc(e,t,n){let r=Ci;if(!r)return n;Ci=void 0;let i={value:n,issues:null};return r.set(t.value,i),wi.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&Di(n,e.value))throw new di;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=bi(e,new Set,!1);if(i===_i)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===yi||r?n=!0:r=!0}let l=s.value;if(!mi(l))return t(s,c);let u=c[fi];u||(u={buckets:new WeakMap,backEdges:void 0},c[fi]=u);let d;i===c?d=a:(d=Si(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...hi(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;Ci=d;let p=wi.length,m=t(s,c);Ci=void 0;let h=wi.length>p?wi.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?hi(e.issues):pi),e)):(h&&(h.issues=m.issues.length?hi(m.issues):pi),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function Ei(){return Ti}function Di(e,t){let n=e[fi]?.backEdges;return n!==void 0&&mi(t)&&n.has(t)}var Oi=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(Fe(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${me(e.values[0])}`:`Invalid option: expected one of ${x(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${x(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function ki(){return{localeError:Oi()}}var Ai,ji=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Mi(){return new ji}(Ai=globalThis).__zod_globalRegistry??(Ai.__zod_globalRegistry=Mi());var Ni=globalThis.__zod_globalRegistry;function Pi(e){return e.checks&&=[...e.checks],e}function Fi(e,t){return new e(Pi({type:`string`,...M(t)}))}function Ii(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...M(t)})}function Li(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...M(t)})}function Ri(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...M(t)})}function zi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...M(t)})}function Bi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...M(t)})}function Vi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...M(t)})}function Hi(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...M(t)})}function Ui(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...M(t)})}function Wi(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...M(t)})}function Gi(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...M(t)})}function Ki(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...M(t)})}function qi(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...M(t)})}function Ji(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...M(t)})}function Yi(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...M(t)})}function Xi(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...M(t)})}function Zi(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...M(t)})}function Qi(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...M(t)})}function $i(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...M(t)})}function ea(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...M(t)})}function ta(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...M(t)})}function na(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...M(t)})}function ra(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...M(t)})}function ia(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...M(t)})}function aa(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...M(t)})}function oa(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...M(t)})}function sa(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...M(t)})}function ca(e,t){return new e(Pi({type:`number`,checks:[],...M(t)}))}function I(e,t){return new e(Pi({type:`number`,coerce:!0,checks:[],...M(t)}))}function la(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...M(t)})}function ua(e,t){return new e({type:`boolean`,...M(t)})}function da(e){return new e({type:`unknown`})}function fa(e,t){return new e({type:`never`,...M(t)})}function pa(e,t){return new hn({check:`less_than`,...M(t),value:e,inclusive:!1})}function ma(e,t){return new hn({check:`less_than`,...M(t),value:e,inclusive:!0})}function ha(e,t){return new gn({check:`greater_than`,...M(t),value:e,inclusive:!1})}function ga(e,t){return new gn({check:`greater_than`,...M(t),value:e,inclusive:!0})}function _a(e,t){return new _n({check:`multiple_of`,...M(t),value:e})}function va(e,t){return new yn({check:`max_length`,...M(t),maximum:e})}function ya(e,t){return new bn({check:`min_length`,...M(t),minimum:e})}function ba(e,t){return new xn({check:`length_equals`,...M(t),length:e})}function xa(e,t){return new Cn({check:`string_format`,format:`regex`,...M(t),pattern:e})}function Sa(e){return new wn({check:`string_format`,format:`lowercase`,...M(e)})}function Ca(e){return new Tn({check:`string_format`,format:`uppercase`,...M(e)})}function wa(e,t){return new En({check:`string_format`,format:`includes`,...M(t),includes:e})}function Ta(e,t){return new Dn({check:`string_format`,format:`starts_with`,...M(t),prefix:e})}function Ea(e,t){return new On({check:`string_format`,format:`ends_with`,...M(t),suffix:e})}function Da(e){return new kn({check:`overwrite`,tx:e})}function Oa(e){return Da(t=>t.normalize(e))}function ka(){return Da(e=>e.trim())}function Aa(){return Da(e=>e.toLowerCase())}function ja(){return Da(e=>e.toUpperCase())}function Ma(){return Da(e=>ae(e))}function Na(e,t,n){return new e({type:`array`,element:t,...M(n)})}function Pa(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...M(n)})}function Fa(e,t){let n=Ia(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Ie(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Ie(r))}},e(t.value,t)),t);return n}function Ia(e,t){let n=new fn({check:`custom`,...M(t)});return n._zod.check=e,n}function La(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&O(e,t,n[t]);return e}function Ra(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Ni,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function za(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function Ba(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Ba(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&La(o.schema,c),t.io===`input`&&Xa(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Va(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Ha(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${Va(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+Va(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
62
62
|
|
|
63
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function Ua(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;Ua(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var Wa=new Set([`type`,`properties`,`required`,`additionalProperties`]),Ga=[`oneOf`,`anyOf`];function Ka(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function qa(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!Wa.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??Ka(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}O(n,r,e.length===1?e[0]:qa(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=Ka(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Ja(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of Wa)if(t in e)return;let n=t.filter(e=>Ga.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=qa(t);else{let e=n[0],i=Ga.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>qa([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,La(e,r))}function Ya(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):La(i,s),La(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())Ua(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Ja(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}La(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,O(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Qa(t,`input`,e.processors),output:Qa(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Xa(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Xa(r.element,n);if(r.type===`set`)return Xa(r.valueType,n);if(r.type===`lazy`)return Xa(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return Xa(r.innerType,n);if(r.type===`intersection`)return Xa(r.left,n)||Xa(r.right,n);if(r.type===`record`||r.type===`map`)return Xa(r.keyType,n)||Xa(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Xa(r.in,n)||Xa(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Xa(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Xa(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Xa(e,n))return!0;return!!(r.rest&&Xa(r.rest,n))}return!1}var Za=(e,t={})=>n=>{let r=Ra({...n,processors:t});return Ba(e,r),Ha(r,e),Ya(r,e)},Qa=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Ra({...i??{},target:a,io:t,processors:n});return Ba(e,o),Ha(o,e),Ya(o,e)},$a=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},eo=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},to=(e,t)=>{$a(e,`minimum`,t),eo(e,`maximum`,t)},no=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},ro=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},io=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},ao=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},oo=(e,t)=>$a(e,`minimum`,t.minimum),so=(e,t)=>eo(e,`maximum`,t.maximum),co=e=>(t,n)=>{ao(t,n.format);let[r,i]=e[n.format];$a(t,`minimum`,r),eo(t,`maximum`,i)},lo={greater_than:(e,t)=>$a(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>eo(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>no(e,t.value),number_format:co(ge),bigint_format:co(_e),min_length:oo,max_length:so,length_equals:(e,t)=>to(e,t.length),min_size:oo,max_size:so,size_equals:(e,t)=>to(e,t.size),string_format:(e,t)=>{ao(e,t.format),t.pattern&&ro(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>io(e,t.mime)};function uo(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)lo[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&$a(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&$a(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&eo(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&eo(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&no(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&io(t,i.mime);for(let e of i.patterns??[])ro(t,e);return t}var fo={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},po=new Map([[mr,Yt],[gr,Xt]]),mo=e=>po.get(e)??e,ho=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=uo(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=fo[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(mo);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},go=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=uo(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):za(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},_o=(e,t,n,r)=>{n.type=`boolean`},vo=(e,t,n,r)=>{n.not={}},yo=(e,t,n,r)=>{let i=e._zod.def,a=b(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},bo=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(za(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(za(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},xo=(e,t,n,r)=>{za(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},So=(e,t,n,r)=>{za(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},Co=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=uo(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Ba(a.element,t,{...r,path:[...r.path,`items`]})};function wo(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?wo(t.out):t.type===`catch`?wo(t.innerType):e._zod.optin}var To=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&za(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)O(i.properties,e,Ba(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?wo(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Ba(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Eo=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Ba(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Do=(e,t,n,r)=>{let i=e._zod.def,a=Ba(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Ba(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)};function Oo(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=Oo(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>Oo(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i&&(p.type=`string`,a||(p.pattern=(r.includes(`number`)?cn:sn).source)),p}var ko=new WeakMap;function Ao(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of ko.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=Oo(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var jo=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=uo(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=Ba(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)O(i.patternProperties,mo(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=Ba(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=ko.get(t);n||(n=[],ko.set(t,n),t.deferred.push(()=>Ao(t))),n.push(e)}i.additionalProperties=Ba(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&wo(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},Mo=(e,t,n,r)=>{let i=e._zod.def,a=Ba(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},No=(e,t,n,r)=>{let i=e._zod.def;Ba(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Po=Symbol();function Fo(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(za(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),Po):JSON.parse(o)}var Io=(e,t,n,r)=>{let i=e._zod.def;Ba(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=Fo(i.defaultValue,e,t,n,r);o!==Po&&(n.default=o)},Lo=(e,t,n,r)=>{let i=e._zod.def;Ba(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=Fo(i.defaultValue,e,t,n,r);o!==Po&&(n._prefault=o)},Ro=(e,t,n,r)=>{let i=e._zod.def;Ba(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{za(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},zo=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Ba(o,t,r);let s=t.seen.get(e);s.ref=o},Bo=(e,t,n,r)=>{let i=e._zod.def;Ba(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Vo=(e,t,n,r)=>{let i=e._zod.def;Ba(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ho=new WeakSet([Object.prototype,Error.prototype]);function Uo(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var Wo=F(`ZodError`,(e,t)=>{lt.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);Ho.has(n)||(Ho.add(n),Uo(n,`format`,e=>t=>ft(e,t)),Uo(n,`flatten`,e=>t=>dt(e,t)),Uo(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,S,2)}),Uo(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,S,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),Go=mt(Wo),Ko=ht(Wo),L=gt(Wo),qo=vt(Wo),Jo=wt(Wo),Yo=Tt(Wo),Xo=Et(Wo),Zo=Dt(Wo),Qo=Ot(Wo),$o=kt(Wo),es=At(Wo),ts=jt(Wo);function ns(){nt.localeError||rt(ki())}function rs(){nt.memoizer||rt({memoizer:Ei()})}var is=F(`ZodType`,(e,t)=>(ns(),Mn.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(j(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return pe(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(xc(e,t))},superRefine(e,t){return this.check(Sc(e,t))},overwrite(e){return this.check(Da(e))},optional(){return rc(this)},exactOptional(){return ac(this)},nullable(){return sc(this)},nullish(){return rc(sc(this))},nonoptional(e){return pc(this,e)},array(){return V(this)},or(e){return Us([this,e])},and(e){return qs(this,e)},transform(e){return _c(this,tc(e))},default(e){return lc(this,e)},prefault(e){return dc(this,e)},catch(e){return hc(this,e)},pipe(e){return _c(this,e)},readonly(){return yc(this)},describe(e){let t=this.clone();return Ni.add(t,{description:e}),t},meta(...e){if(e.length===0)return Ni.get(this);let t=this.clone();return Ni.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return ze(this,`~standard`,{...Fn(this),jsonSchema:{input:Qa(this,`input`),output:Qa(this,`output`)}})},set"~standard"(e){Re(this,`~standard`,e)},parse:function e(t,n){return Go(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Ko(this,t,n,{callee:e})},safeParse(e,t){return L(this,e,t)},async safeParseAsync(e,t){return qo(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Re(this,`spa`,e)},validate(e,t){return xt(this,e,t)},validateAsync(e,t){return Ct(this,e,t)},encode:function e(t,n){return Jo(this,t,n,{callee:e})},decode:function e(t,n){return Yo(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Xo(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Zo(this,t,n,{callee:e})},safeEncode(e,t){return Qo(this,e,t)},safeDecode(e,t){return $o(this,e,t)},async safeEncodeAsync(e,t){return es(this,e,t)},async safeDecodeAsync(e,t){return ts(this,e,t)},toJSONSchema(e){return Za(this,{})(e)},get description(){return Ni.get(this)?.description},get _def(){return this._zod.def}}),as=F(`_ZodString`,(e,t)=>{In.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ho(e,t,n,r)},Be({format:e=>uo(e).format??null,minLength:e=>uo(e).minimum??null,maxLength:e=>uo(e).maximum??null},{regex(...e){return this.check(xa(...e))},includes(...e){return this.check(wa(...e))},startsWith(...e){return this.check(Ta(...e))},endsWith(...e){return this.check(Ea(...e))},min(...e){return this.check(ya(...e))},max(...e){return this.check(va(...e))},length(...e){return this.check(ba(...e))},nonempty(...e){return this.check(ya(1,...e))},lowercase(e){return this.check(Sa(e))},uppercase(e){return this.check(Ca(e))},trim(){return this.check(ka())},normalize(...e){return this.check(Oa(...e))},toLowerCase(){return this.check(Aa())},toUpperCase(){return this.check(ja())},slugify(){return this.check(Ma())}})),os=F(`ZodString`,(e,t)=>{In.init(e,t),as.init(e,t)},{email(e){return this.check(Ii(fs,e))},url(e){return this.check(Hi(gs,e))},jwt(e){return this.check(ra(js,e))},emoji(e){return this.check(Ui(_s,e))},guid(e){return this.check(Li(ms,e))},uuid(e){return this.check(Ri(hs,e))},uuidv4(e){return this.check(zi(hs,e))},uuidv6(e){return this.check(Bi(hs,e))},uuidv7(e){return this.check(Vi(hs,e))},nanoid(e){return this.check(Wi(vs,e))},cuid(e){return this.check(Gi(ys,e))},cuid2(e){return this.check(Ki(bs,e))},ulid(e){return this.check(qi(xs,e))},base64(e){return this.check(ea(Os,e))},base64url(e){return this.check(ta(ks,e))},xid(e){return this.check(Ji(Ss,e))},ksuid(e){return this.check(Yi(Cs,e))},ipv4(e){return this.check(Xi(ws,e))},ipv6(e){return this.check(Zi(Ts,e))},cidrv4(e){return this.check(Qi(Es,e))},cidrv6(e){return this.check($i(Ds,e))},e164(e){return this.check(na(As,e))},datetime(e){return this.check(ia(cs,e))},date(e){return this.check(aa(ls,e))},time(e){return this.check(oa(us,e))},duration(e){return this.check(sa(ds,e))}});function R(e){return Fi(os,e)}var ss=F(`ZodStringFormat`,(e,t)=>{Ln.init(e,t),as.init(e,t)}),cs=F(`ZodISODateTime`,(e,t)=>{nr.init(e,t),ss.init(e,t)}),ls=F(`ZodISODate`,(e,t)=>{rr.init(e,t),ss.init(e,t)}),us=F(`ZodISOTime`,(e,t)=>{ir.init(e,t),ss.init(e,t)}),ds=F(`ZodISODuration`,(e,t)=>{ar.init(e,t),ss.init(e,t)}),fs=F(`ZodEmail`,(e,t)=>{Bn.init(e,t),ss.init(e,t)});function ps(e){return Ii(fs,e)}var ms=F(`ZodGUID`,(e,t)=>{Rn.init(e,t),ss.init(e,t)}),hs=F(`ZodUUID`,(e,t)=>{zn.init(e,t),ss.init(e,t)}),gs=F(`ZodURL`,(e,t)=>{Jn.init(e,t),ss.init(e,t)}),_s=F(`ZodEmoji`,(e,t)=>{Yn.init(e,t),ss.init(e,t)}),vs=F(`ZodNanoID`,(e,t)=>{Xn.init(e,t),ss.init(e,t)}),ys=F(`ZodCUID`,(e,t)=>{Zn.init(e,t),ss.init(e,t)}),bs=F(`ZodCUID2`,(e,t)=>{Qn.init(e,t),ss.init(e,t)}),xs=F(`ZodULID`,(e,t)=>{$n.init(e,t),ss.init(e,t)}),Ss=F(`ZodXID`,(e,t)=>{er.init(e,t),ss.init(e,t)}),Cs=F(`ZodKSUID`,(e,t)=>{tr.init(e,t),ss.init(e,t)}),ws=F(`ZodIPv4`,(e,t)=>{or.init(e,t),ss.init(e,t)}),Ts=F(`ZodIPv6`,(e,t)=>{lr.init(e,t),ss.init(e,t)}),Es=F(`ZodCIDRv4`,(e,t)=>{ur.init(e,t),ss.init(e,t)}),Ds=F(`ZodCIDRv6`,(e,t)=>{fr.init(e,t),ss.init(e,t)}),Os=F(`ZodBase64`,(e,t)=>{hr.init(e,t),ss.init(e,t)}),ks=F(`ZodBase64URL`,(e,t)=>{vr.init(e,t),ss.init(e,t)}),As=F(`ZodE164`,(e,t)=>{yr.init(e,t),ss.init(e,t)}),js=F(`ZodJWT`,(e,t)=>{xr.init(e,t),ss.init(e,t)}),Ms=F(`ZodNumber`,(e,t)=>{Sr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>go(e,t,n,r),e.isFinite=!0},Be({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=uo(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=uo(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=uo(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>uo(e).format??null},{gt(e,t){return this.check(ha(e,t))},gte(e,t){return this.check(ga(e,t))},min(e,t){return this.check(ga(e,t))},lt(e,t){return this.check(pa(e,t))},lte(e,t){return this.check(ma(e,t))},max(e,t){return this.check(ma(e,t))},int(e){return this.check(Ps(e))},safe(e){return this.check(Ps(e))},positive(e){return this.check(ha(0,e))},nonnegative(e){return this.check(ga(0,e))},negative(e){return this.check(pa(0,e))},nonpositive(e){return this.check(ma(0,e))},multipleOf(e,t){return this.check(_a(e,t))},step(e,t){return this.check(_a(e,t))},finite(){return this}}));function z(e){return ca(Ms,e)}var Ns=F(`ZodNumberFormat`,(e,t)=>{Cr.init(e,t),Ms.init(e,t)});function Ps(e){return la(Ns,e)}var Fs=F(`ZodBoolean`,(e,t)=>{wr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_o(e,t,n,r)});function B(e){return ua(Fs,e)}var Is=F(`ZodUnknown`,(e,t)=>{Tr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Ls(){return da(Is)}var Rs=F(`ZodNever`,(e,t)=>{Er.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vo(e,t,n,r)});function zs(e){return fa(Rs,e)}var Bs=F(`ZodArray`,(e,t)=>{rs(),Ar.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Co(e,t,n,r),e.element=t.element},{min(e,t){return this.check(ya(e,t))},nonempty(e){return this.check(ya(1,e))},max(e,t){return this.check(va(e,t))},length(e,t){return this.check(ba(e,t))},unwrap(){return this.element}});function V(e,t){return Na(Bs,e,t)}var Vs=F(`ZodObject`,(e,t)=>{rs(),Ir.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>To(e,t,n,r),qe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return Zs(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(j(this._zod.def,{catchall:e}))},passthrough(){return this.clone(j(this._zod.def,{catchall:Ls()}))},loose(){return this.clone(j(this._zod.def,{catchall:Ls()}))},strict(){return this.clone(j(this._zod.def,{catchall:zs()}))},strip(){return this.clone(j(this._zod.def,{catchall:void 0}))},extend(e){return ye(this,e)},safeExtend(e){return xe(this,e)},merge(e){return Se(this,e)},pick(e){return N(this,e)},omit(e){return ve(this,e)},partial(...e){return Ce(nc,this,e[0])},exactPartial(...e){return Ce(ic,this,e[0],`exactPartial`)},required(...e){return we(fc,this,e[0])}});function H(e,t){return new Vs({type:`object`,shape:e??{},...M(t)})}var Hs=F(`ZodUnion`,(e,t)=>{Rr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Eo(e,t,n,r),e.options=t.options});function Us(e,t){return new Hs({type:`union`,options:e,...M(t)})}var Ws=F(`ZodDiscriminatedUnion`,(e,t)=>{Hs.init(e,t),Br.init(e,t)});function Gs(e,t,n){return new Ws({type:`union`,options:t,discriminator:e,...M(n)})}var Ks=F(`ZodIntersection`,(e,t)=>{Vr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Do(e,t,n,r)});function qs(e,t){return new Ks({type:`intersection`,left:e,right:t})}var Js=F(`ZodRecord`,(e,t)=>{rs(),Wr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jo(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function Ys(e,t,n){return!t||!t._zod?new Js({type:`record`,keyType:R(),valueType:e,...M(t)}):new Js({type:`record`,keyType:e,valueType:t,...M(n)})}var Xs=F(`ZodEnum`,(e,t)=>{Gr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yo(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Xs({...t,checks:[],...M(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Xs({...t,checks:[],...M(r),entries:i})}});function Zs(e,t){return new Xs({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...M(t)})}var Qs=F(`ZodLiteral`,(e,t)=>{Kr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bo(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function $s(e,t){return new Qs({type:`literal`,values:Array.isArray(e)?e:[e],...M(t)})}var ec=F(`ZodTransform`,(e,t)=>{rs(),qr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>So(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new tt(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ie(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Ie(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function tc(e){return new ec({type:`transform`,transform:e})}var nc=F(`ZodOptional`,(e,t)=>{Yr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rc(e){return new nc({type:`optional`,innerType:e})}var ic=F(`ZodExactOptional`,(e,t)=>{Xr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ac(e){return new ic({type:`optional`,innerType:e})}var oc=F(`ZodNullable`,(e,t)=>{Zr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function sc(e){return new oc({type:`nullable`,innerType:e})}var cc=F(`ZodDefault`,(e,t)=>{Qr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Io(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lc(e,t){return new cc({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ue(t)}})}var uc=F(`ZodPrefault`,(e,t)=>{ei.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function dc(e,t){return new uc({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ue(t)}})}var fc=F(`ZodNonOptional`,(e,t)=>{ti.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>No(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function pc(e,t){return new fc({type:`nonoptional`,innerType:e,...M(t)})}var mc=F(`ZodCatch`,(e,t)=>{ii.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ro(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function hc(e,t){return new mc({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Ye(t)})}var gc=F(`ZodPipe`,(e,t)=>{ai.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zo(e,t,n,r),e.in=t.in,e.out=t.out});function _c(e,t){return new gc({type:`pipe`,in:e,out:t})}var vc=F(`ZodReadonly`,(e,t)=>{si.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yc(e){return new vc({type:`readonly`,innerType:e})}var bc=F(`ZodCustom`,(e,t)=>{li.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xo(e,t,n,r)});function xc(e,t={}){return Pa(bc,e,t)}function Sc(e,t){return Fa(e,t)}function Cc(e){return ia(cs,e)}function wc(e){return I(Ms,e)}var Tc=`X-Organizer-Error-Source`,Ec=H({status:$s(`ok`),version:R(),schemaVersion:z().int(),accountsExist:B()}),Dc=Zs([`invited`,`active`,`disabled`]),Oc=Zs([`invite`,`reset`]),kc=Zs([`personal`,`shared`]),Ac=Zs([`owner`,`member`]),jc=Zs([`standard`,`test`]),Mc=[`todo`,`doing`,`review`,`done`],Nc=Zs(Mc),Pc=[`low`,`medium`,`high`,`critical`],Fc=Zs(Pc),Ic=Zs([`kanban`,`list`,`matrix`]),Lc=Zs([`status`,`priority`,`none`]),Rc=Zs([`ok`,`ko`,`blocked`,`untested`]),zc=Zs([`manual`,`agent`]),Bc=[`idea`,`remark`,`test_review`,`message`,`idea_promotion`],Vc=Zs(Bc),Hc=Zs([`pending`,`processing`,`done`,`failed`,`cancelled`]),Uc=Zs([`create`,`update`,`delete`,`move`,`assign`]),Wc=Zs([`user`,`agent`]),Gc=Zs([`assigned`,`comment`,`follow_ups`]),Kc=Zs([`user`,`user_settings`,`space`,`membership`,`invitation`,`task`,`tag`,`checklist_item`,`test_checkpoint`,`test_result`,`test_review`,`comment`,`attachment`,`idea`,`agent_request`,`agent_action`,`follow_up`,`agent_token`,`notification`,`board_view`,`agent_instructions`]),qc=Zs([`task`,`idea`]),U=R().min(1),W=Cc(),Jc=R().trim().toLowerCase().pipe(ps()),Yc=R().regex(/^[A-Z][A-Z0-9]{1,9}$/,`must be 2 to 10 uppercase letters or digits, starting with a letter`),Xc=z().finite();H({id:U,email:Jc,displayName:R().min(1).nullable(),passwordHash:R().min(1).nullable(),status:Dc,isAdmin:B(),createdAt:W}),H({id:U,userId:U,purpose:Oc,invitationId:U.nullable(),tokenHash:R().min(1),expiresAt:W,usedAt:W.nullable(),createdAt:W}),H({idHash:R().min(1),userId:U,createdAt:W,expiresAt:W}),H({id:U,userId:U,spaceId:U,name:R().trim().min(1),prefix:R().min(1),tokenHash:R().regex(/^[0-9a-f]{64}$/),createdAt:W,lastUsedAt:W.nullable(),expiresAt:W.nullable(),revokedAt:W.nullable(),isRunner:B()});var Zc=z().int().min(5).max(20),Qc=H({notifyAssignApp:B(),notifyAssignEmail:B(),notifyCommentApp:B(),notifyCommentEmail:B(),notifyFollowUpApp:B(),notifyFollowUpEmail:B()});Qc.extend({userId:U,assistantHistory:Zc}),Qc.extend({userId:U,spaceId:U}),H({id:U,name:R().trim().min(1),kind:kc,ownerId:U,keyPrefix:Yc,nextTaskNumber:z().int().min(1),runnerAllowed:B(),createdAt:W});var $c=4e3;H({spaceId:U.nullable(),text:R().trim().min(1).max($c),updatedAt:W,updatedBy:U.nullable()}),H({spaceId:U,userId:U,role:Ac,joinedAt:W}),H({id:U,spaceId:U,email:Jc,invitedBy:U,createdAt:W,expiresAt:W,acceptedAt:W.nullable(),revokedAt:W.nullable(),declinedAt:W.nullable()});var el=H({id:U,spaceId:U,number:z().int().min(1),parentId:U.nullable(),depth:z().int().min(0).max(2),type:jc,title:R().trim().min(1),description:R(),status:Nc,priority:Fc,position:Xc,testedTaskId:U.nullable(),createdBy:U,createdAt:W,updatedAt:W,version:z().int().min(1)});H({taskId:U,userId:U}),H({id:U,spaceId:U,name:R().trim().min(1)}),H({taskId:U,tagId:U}),H({id:U,taskId:U,text:R().trim().min(1),done:B(),position:Xc}),H({id:U,taskId:U,text:R().trim().min(1),position:Xc}),H({checkpointId:U,testerId:U,result:Rc,comment:R(),updatedAt:W}),H({id:U,taskId:U,testerId:U,text:R(),submittedAt:W.nullable(),requestId:U.nullable()}),H({id:U,taskId:U,authorId:U,body:R().trim().min(1),createdAt:W,editedAt:W.nullable(),requestId:U.nullable(),replyToCommentId:U.nullable().default(null)}),H({id:U,taskId:U,uploaderId:U,filename:R().min(1),mime:R().min(1),size:z().int().min(0),storagePath:R().min(1),createdAt:W});var tl=H({id:U,spaceId:U,authorId:U,text:R().trim().min(1),origin:zc,requestId:U.nullable(),promotedTaskId:U.nullable(),archivedAt:W.nullable(),createdAt:W});H({id:U,spaceId:U,userId:U,name:R().trim().min(1).max(40),layout:Ic,groupBy:Lc,thenBy:Lc,showEmptyGroups:B(),statuses:V(Nc),priorities:V(Fc),assigneeIds:V(U),unassigned:B(),position:Xc,createdAt:W,updatedAt:W}).refine(e=>e.layout===`list`||e.groupBy!==`none`,{message:`a kanban or matrix view must be grouped by status or priority`,path:[`groupBy`]}).refine(e=>e.layout!==`kanban`||e.thenBy===`none`,{message:`a kanban view has a single grouping`,path:[`thenBy`]}).refine(e=>e.layout!==`matrix`||e.thenBy!==`none`,{message:`a matrix view needs a second grouping`,path:[`thenBy`]}).refine(e=>e.thenBy===`none`||e.groupBy!==`none`&&e.thenBy!==e.groupBy,{message:`the second grouping must follow a first one and differ from it`,path:[`thenBy`]}),H({id:U,authorId:U,targetSpaceId:U,kind:Vc,contextTaskId:U.nullable(),contextIdeaId:U.nullable(),text:R().trim().min(1),status:Hc,reply:R().nullable(),failureReason:R().nullable(),parentRequestId:U.nullable(),commentId:U.nullable(),createdAt:W,updatedAt:W,claimedAt:W.nullable(),claimedByTokenId:U.nullable(),completedAt:W.nullable(),cancelledBy:U.nullable(),stoppedAt:W.nullable(),stoppedBy:U.nullable()}),H({id:U,requestId:U,position:z().int().min(1),text:R().trim().min(1),doneAt:W.nullable(),doneBy:U.nullable(),doneByRequestId:U.nullable()}),H({id:U,requestId:U,seq:z().int().min(1),entityType:Kc,entityId:U,operation:Uc,before:Ls().nullable(),after:Ls().nullable(),summary:R().min(1),createdAt:W,undoneAt:W.nullable(),undoneBy:U.nullable(),tokenId:U.nullable()});var nl=el.extend({assigneeIds:V(U),tagIds:V(U)}),rl=tl;H({entityType:qc,entityId:U,version:z().int().min(1),snapshot:Us([nl,rl]).nullable(),actorType:Wc,actorId:U,requestId:U.nullable(),tokenId:U.nullable(),createdAt:W}),H({id:U,userId:U,type:Gc,taskId:U.nullable(),actorType:Wc,actorId:U.nullable(),requestId:U.nullable(),commentId:U.nullable(),inApp:B(),createdAt:W,readAt:W.nullable(),emailedAt:W.nullable(),emailError:R().nullable()});var il=H({seq:z().int().min(1),spaceId:U.nullable(),userId:U.nullable(),entityType:Kc,entityId:U,taskId:U.nullable(),actorType:Wc.nullable(),at:W}),al=R().min(8,`Le mot de passe doit faire au moins 8 caractères.`),ol=R().trim().min(1,`Le nom affiché est requis.`).max(80),sl=R().trim().min(1,`Le nom de l'espace est requis.`).max(80),cl=H({id:U,email:Jc,displayName:R().nullable(),status:Dc,isAdmin:B()});H({email:R().trim().min(1,`L'adresse e-mail est requise.`),password:R().min(1,`Le mot de passe est requis.`)});var ll=H({user:cl}),ul=H({email:Jc,purpose:Oc,displayName:R().nullable(),expiresAt:W});H({displayName:ol,password:al}),H({displayName:ol}),H({currentPassword:R().min(1,`Le mot de passe actuel est requis.`),newPassword:al});var dl=H({ok:$s(!0)}),fl=H({id:U,name:R(),kind:kc,keyPrefix:Yc,ownerId:U,role:Ac}),pl=H({spaces:V(fl)});H({name:sl,keyPrefix:R().trim().toUpperCase().pipe(Yc).optional()}),H({name:sl});var ml=H({todo:z().int().nonnegative(),doing:z().int().nonnegative(),review:z().int().nonnegative(),done:z().int().nonnegative()}),hl=H({userId:U,email:Jc,displayName:R().nullable(),role:Ac,assignedTasks:ml}),gl=H({id:U,email:Jc,createdAt:W,expiresAt:W,expired:B()}),_l=H({space:fl,members:V(hl),invitations:V(gl)}),vl=H({suggestions:V(H({userId:U,email:Jc,displayName:R().nullable(),sharedSpaces:V(R())}))});H({email:R().trim().toLowerCase().min(1,`L'adresse e-mail est requise.`).pipe(ps(`Adresse e-mail invalide.`))});var yl=H({path:R().min(1),expiresAt:W}),bl=H({emailSent:B(),reason:R().nullable()}),xl=Gs(`outcome`,[H({outcome:$s(`member_added`),member:hl}),H({outcome:$s(`invited`),invitation:gl,link:yl,email:bl})]),Sl=H({invitation:gl,link:yl.nullable(),email:bl}),Cl=H({invitations:V(H({id:U,spaceId:U,spaceName:R(),invitedByName:R(),createdAt:W,expiresAt:W}))}),wl=R().trim().min(1,`Le titre est requis.`).max(200,`Le titre dépasse 200 caractères.`),Tl=R().trim().min(1,`Un tag ne peut pas être vide.`).max(40,`Un tag dépasse 40 caractères.`),El=H({userId:U,displayName:R().nullable(),email:Jc}),Dl=H({id:U,name:R()}),Ol=H({done:z().int().min(0),total:z().int().min(0)}),kl=H({total:z().int().min(0),verified:z().int().min(0),ok:z().int().min(0),ko:z().int().min(0),blocked:z().int().min(0),untested:z().int().min(0)}),Al=H({id:U,key:R(),parentId:U.nullable(),depth:z().int(),type:jc,title:R(),description:R(),status:Nc,priority:Fc,position:Xc,assigneeIds:V(U),tagIds:V(U),subtasks:Ol,test:kl.nullable(),get children(){return V(Al)}});H({type:jc.optional(),priority:Fc.optional(),assignee:U.optional(),tag:U.optional()});var jl=z().int().min(0),Ml=H({byStatus:Ys(Nc,jl),remainingByPriority:Ys(Fc,jl)}),Nl=H({spaceId:U,members:V(El),tags:V(Dl),tasks:V(Al),progress:Ml}),Pl=H({id:U,key:R(),spaceId:U,parentId:U.nullable(),depth:z().int(),type:jc,title:R(),description:R(),status:Nc,priority:Fc,assigneeIds:V(U),tagIds:V(U),testedTaskId:U.nullable(),createdBy:U,createdAt:W,updatedAt:W,version:z().int()}),Fl=H({id:U,key:R(),title:R()});H({spaceId:U.optional()}).strict();var Il=H({id:U,text:R(),done:B(),position:Xc}),Ll=H({id:U,text:R(),doneAt:W.nullable(),doneByName:R().nullable(),doneByRequestId:U.nullable()}),Rl=H({id:U,authorId:U,authorName:R(),body:R(),createdAt:W,editedAt:W.nullable(),byAgent:B(),agentRequest:H({id:U,status:Hc,failureReason:R().nullable(),stopped:B(),openFollowUps:z().int().min(0),canCancel:B(),canRelaunch:B()}).nullable(),replyTo:H({commentId:U,authorName:R(),excerpt:R()}).nullable(),reply:H({requestId:U,followUps:V(Ll),liveActions:z().int().min(0),canUndo:B()}).nullable()}),zl=H({id:U,filename:R(),mime:R(),size:z().int(),uploaderId:U,createdAt:W}),Bl=H({id:U,text:R(),position:Xc}),Vl=H({checkpointId:U,result:Rc,comment:R(),updatedAt:W}),Hl=H({id:U,testerId:U,testerName:R(),text:R(),submittedAt:W,requestId:U.nullable(),requestStatus:Hc.nullable()}),Ul=H({userId:U,results:V(Vl),draft:R()}),Wl=H({userId:U,name:R(),results:V(Vl)}),Gl=H({checkpoints:V(Bl),summary:kl,testers:V(Ul),pastTesters:V(Wl),reviews:V(Hl)}),Kl=H({task:Pl,ancestors:V(Fl),testedTask:Fl.nullable(),children:V(Al),checklist:V(Il),test:Gl.nullable(),comments:V(Rl),attachments:V(zl),members:V(El),tags:V(Dl),agentEdit:H({actionId:U,at:W}).nullable()});H({title:wl,parentId:U.nullable().optional(),status:Nc.optional(),type:jc.optional(),priority:Fc.optional(),description:R().optional()}),H({title:wl.optional(),description:R().optional(),status:Nc.optional(),priority:Fc.optional(),type:jc.optional(),parentId:U.nullable().optional(),testedTaskId:U.nullable().optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),`Aucune modification demandée.`),H({status:Nc,afterId:U.nullable()}),H({userIds:V(U)}),H({names:V(Tl)});var ql=R().trim().min(1,`L'élément de checklist est vide.`).max(500);H({text:ql}),H({text:ql.optional(),done:B().optional()}).refine(e=>e.text!==void 0||e.done!==void 0,`Aucune modification demandée.`),H({afterId:U.nullable()}),H({text:R().trim().min(1,`Le point de vérification est vide.`).max(500)});var Jl=2e3;H({result:Rc.optional(),comment:R().trim().max(Jl,`Le commentaire dépasse ${Jl} caractères.`).optional()}).refine(e=>e.result!==void 0||e.comment!==void 0,`Aucune modification demandée.`);var Yl=1e4;H({text:R().max(Yl,`La review dépasse ${Yl} caractères.`)});var Xl=H({draft:R()});H({text:R().trim().min(1,`La review est vide : décrivez ce que vous avez constaté.`).max(Yl,`La review dépasse ${Yl} caractères.`)}),H({body:R().trim().min(1,`Le commentaire est vide.`).max(1e4)});var Zl=R().regex(/^[\w.+-]+\/[\w.+-]+$/,`Type de fichier invalide.`);H({filename:R().trim().min(1,`Le fichier n'a pas de nom.`).max(255),mime:Zl,contentBase64:R()});var Ql=H({seq:z().int().min(0),changes:V(il)}),$l=H({notifications:V(H({id:U,type:Gc,spaceId:U,taskId:U.nullable(),taskKey:R().nullable(),taskTitle:R().nullable(),requestId:U.nullable(),requestExcerpt:R().nullable(),openFollowUps:z().int().min(0).nullable(),actorType:Wc,actorId:U.nullable(),actorName:R().nullable(),commentExcerpt:R().nullable(),createdAt:W,readAt:W.nullable(),emailedAt:W.nullable(),emailError:R().nullable()})),unreadCount:z().int().min(0),hasMore:B()});H({limit:wc().int().min(1).max(50).default(20),offset:wc().int().min(0).default(0)});var eu=H({unreadCount:z().int().min(0)}),tu=H({notifyAssignApp:B(),notifyAssignEmail:B(),notifyCommentApp:B(),notifyCommentEmail:B(),notifyFollowUpApp:B(),notifyFollowUpEmail:B(),assistantHistory:Zc,email:H({enabled:B(),reason:R().nullable()}),transcription:H({enabled:B(),reason:R().nullable()})});H({notifyAssignApp:B().optional(),notifyAssignEmail:B().optional(),notifyCommentApp:B().optional(),notifyCommentEmail:B().optional(),notifyFollowUpApp:B().optional(),notifyFollowUpEmail:B().optional(),assistantHistory:Zc.optional()}).strict().refine(e=>Object.values(e).some(e=>e!==void 0),`Aucune modification demandée.`);var nu=Qc.extend({custom:B(),email:H({enabled:B(),reason:R().nullable()})});Qc.partial().extend({custom:B()}).strict().refine(e=>e.custom||[e.notifyAssignApp,e.notifyAssignEmail,e.notifyCommentApp,e.notifyCommentEmail,e.notifyFollowUpApp,e.notifyFollowUpEmail].every(e=>e===void 0),`Un espace qui suit les préférences du compte n'a pas de préférences propres.`);var ru=1e4,iu=[`idea`,`remark`,`message`],au=R().trim().min(1,`La demande est vide : écrivez ce que vous voulez confier à l'agent.`).max(ru,`La demande dépasse ${ru} caractères.`);H({kind:Zs(iu),text:au,contextTaskId:U.nullable().optional()}),H({text:au}),H({text:au}),H({done:B()}).strict();var ou=H({id:U,seq:z().int(),entityType:Kc,operation:Uc,label:R(),summary:R(),taskId:U.nullable(),createdAt:W,undoneAt:W.nullable(),undoneByName:R().nullable()}),su=H({tokenId:U,name:R(),ownerName:R(),isRunner:B()}),cu=H({id:U,kind:Vc,status:Hc,text:R(),authorId:U,authorName:R(),authorEmail:R(),targetSpaceId:U,targetSpaceName:R(),contextTask:Fl.nullable(),reply:R().nullable(),followUps:V(Ll),failureReason:R().nullable(),parent:H({id:U,text:R(),openFollowUps:z().int().min(0)}).nullable(),canFollowUp:B(),createdAt:W,updatedAt:W,claimedAt:W.nullable(),agent:su.nullable(),completedAt:W.nullable(),cancelledByName:R().nullable(),canEdit:B(),stoppedByName:R().nullable(),canStop:B(),canRelaunch:B(),canUndo:B(),actions:V(ou)}),lu=H({at:W,message:R()}),uu=H({requests:V(cu),pendingCount:z().int().min(0),agents:V(su.extend({lastUsedAt:W.nullable(),listening:B()})),runnerAllowed:B(),runnerDisabledReason:R().nullable(),runnerFailure:lu.nullable(),runnerSession:H({startedAt:W}).nullable()}),du=H({versions:V(H({version:z().int(),createdAt:W,actorType:Wc,actorName:R(),requestId:U.nullable(),changes:V(R()),current:B()}))});H({filename:R().trim().min(1,`L'enregistrement n'a pas de nom.`).max(255),mime:Zl,contentBase64:R()});var fu=H({text:R()}),pu=H({id:U,name:R(),kind:kc,keyPrefix:R(),runnerAllowed:B(),hasInstructions:B(),members:V(H({id:U,name:R(),email:Jc}))}),mu=H({id:U,email:Jc,displayName:R().nullable(),status:Dc,isAdmin:B(),spaces:V(pu)}),hu=H({enabled:B(),disabledReason:R().nullable()}),gu=H({users:V(mu),allowedCount:z().int().min(0),spaceCount:z().int().min(0),runner:hu}),_u=H({pendingCount:z().int().min(1)}),vu=H({abortedRequests:z().int().min(0)}),yu=H({killed:z().int().min(0),remaining:z().int().min(0),abortedRequests:z().int().min(0)});H({allowed:B()}).strict();var bu=H({maxTurns:z().int().min(1).max(500),maxMinutes:z().int().min(1).max(120),maxBudgetUsd:z().positive().max(1e3).nullable()}).strict(),xu=Zs([`completed`,`failed`,`stopped`,`timeout`,`max_turns`,`max_budget`]),Su=H({id:U,spaceId:U.nullable(),spaceName:R(),startedAt:W,endedAt:W,outcome:xu,model:R().nullable(),turns:z().int().min(0).nullable(),costUsd:z().min(0).nullable(),inputTokens:z().int().min(0),outputTokens:z().int().min(0),cacheReadTokens:z().int().min(0),cacheCreationTokens:z().int().min(0)});H({days:wc().int().min(1).max(90).default(14)});var Cu=H({days:z().int().min(1),sessions:V(Su)}),wu=H({text:R(),updatedAt:W,updatedByName:R().nullable()}),Tu=H({instructions:wu.nullable()}),Eu=H({instructions:wu.nullable(),site:wu.nullable(),canEdit:B()});H({text:R().max($c)}).strict();var Du=3650,Ou=`org_`,ku=Zs([`active`,`inactive`,`expired`,`revoked`]);H({name:R().trim().min(1,`Le nom du jeton est requis.`).max(80,`Le nom du jeton dépasse 80 caractères.`),spaceId:U,expiresInDays:z().int().min(1,`Durée de validité invalide.`).max(Du,`Durée de validité invalide.`).nullable()});var Au=H({id:U,name:R(),prefix:R(),space:H({id:U,name:R(),kind:kc}),state:ku,createdAt:W,lastUsedAt:W.nullable(),expiresAt:W.nullable(),revokedAt:W.nullable()}),ju=H({tokens:V(Au)}),Mu=H({token:Au,value:R().startsWith(Ou),mcpJson:R()}),Nu=5e3,Pu=R().trim().min(1,`L'idée est vide : écrivez-la avant de l'ajouter.`).max(Nu,`L'idée dépasse ${Nu} caractères.`),Fu=H({id:U,text:R(),origin:zc,authorId:U,authorName:R(),createdAt:W,archivedAt:W.nullable(),promotedTask:Fl.nullable(),pendingPromotion:H({requestId:U,status:Zs([`pending`,`processing`])}).nullable()}),Iu=H({ideas:V(Fu),activeCount:z().int().min(0)});H({text:Pu}),H({archived:B()}),H({title:wl,type:jc,priority:Fc});var Lu=H({name:R().trim().min(1,`Donnez un nom à la vue.`).max(40,`Le nom d'une vue dépasse 40 caractères.`),layout:Ic,groupBy:Lc,thenBy:Lc,showEmptyGroups:B(),statuses:V(Nc),priorities:V(Fc),assigneeIds:V(U),unassigned:B()}),Ru=Lu.extend({id:U}),zu=H({views:V(Ru)});Lu.strict(),Lu.partial().strict().refine(e=>Object.values(e).some(e=>e!==void 0),`Aucune modification demandée.`);var Bu=class extends Error{status;constructor(e,t){super(t),this.name=`ApiError`,this.status=e}},Vu=new Set;function Hu(e){return Vu.add(e),()=>Vu.delete(e)}async function G(e,t,n,r={}){let i,a=r.body!==void 0;try{i=await fetch(`api/${t}`,{method:e,headers:a?{Accept:`application/json`,"Content-Type":`application/json`}:{Accept:`application/json`},body:a?JSON.stringify(r.body):r.form,credentials:`same-origin`})}catch(e){throw new Bu(0,`Serveur injoignable : ${e instanceof Error?e.message:String(e)}`)}let o=await i.json().catch(()=>null);if(!i.ok){let e=o?.error,t=i.headers.get(Tc)===`upstream`;throw i.status===401&&r.authenticated!==!1&&!t&&Vu.forEach(e=>e()),new Bu(i.status,typeof e==`string`?e:`Erreur HTTP ${i.status}`)}let s=n.safeParse(o);if(!s.success)throw new Bu(i.status,`Réponse inattendue du serveur pour ${e} api/${t}.`);return s.data}var K=encodeURIComponent,Uu=()=>G(`GET`,`health`,Ec,{authenticated:!1}),Wu=()=>G(`GET`,`auth/me`,ll,{authenticated:!1}),Gu=(e,t)=>G(`POST`,`auth/login`,ll,{body:{email:e,password:t},authenticated:!1}),Ku=()=>G(`POST`,`auth/logout`,dl,{authenticated:!1}),qu=e=>G(`GET`,`access-links/${K(e)}`,ul,{authenticated:!1}),Ju=(e,t)=>G(`POST`,`access-links/${K(e)}`,ll,{body:t,authenticated:!1}),Yu=async()=>(await G(`GET`,`spaces`,pl)).spaces,Xu=e=>G(`POST`,`spaces`,fl,{body:e}),Zu=(e,t)=>G(`PATCH`,`spaces/${K(e)}`,fl,{body:{name:t}}),Qu=e=>G(`DELETE`,`spaces/${K(e)}`,dl),$u=e=>G(`POST`,`spaces/${K(e)}/leave`,dl),ed=e=>G(`GET`,`spaces/${K(e)}/members`,_l),td=async e=>(await G(`GET`,`spaces/${K(e)}/member-suggestions`,vl)).suggestions,nd=(e,t)=>G(`DELETE`,`spaces/${K(e)}/members/${K(t)}`,dl),rd=(e,t)=>G(`POST`,`spaces/${K(e)}/invitations`,xl,{body:{email:t}}),id=(e,t)=>G(`POST`,`spaces/${K(e)}/invitations/${K(t)}/resend`,Sl),ad=(e,t)=>G(`DELETE`,`spaces/${K(e)}/invitations/${K(t)}`,dl),od=async()=>(await G(`GET`,`invitations`,Cl)).invitations,sd=e=>G(`POST`,`invitations/${K(e)}/accept`,fl),cd=e=>G(`POST`,`invitations/${K(e)}/decline`,dl);function ld(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!==void 0&&t.set(n,r);let n=t.toString();return n?`?${n}`:``}var ud=(e,t={})=>G(`GET`,`spaces/${K(e)}/tasks${ld(t)}`,Nl),dd=(e,t)=>G(`POST`,`spaces/${K(e)}/tasks`,Pl,{body:t}),fd=e=>G(`GET`,`tasks/${K(e)}`,Kl),pd=(e,t)=>G(`GET`,`task-keys/${K(e)}${t?`?spaceId=${encodeURIComponent(t)}`:``}`,Fl),md=(e,t)=>G(`PATCH`,`tasks/${K(e)}`,Pl,{body:t}),hd=e=>G(`DELETE`,`tasks/${K(e)}`,dl),gd=(e,t,n)=>G(`POST`,`tasks/${K(e)}/move`,Pl,{body:{status:t,afterId:n}}),_d=(e,t)=>G(`PUT`,`tasks/${K(e)}/assignees`,Pl,{body:{userIds:t}}),vd=(e,t)=>G(`PUT`,`tasks/${K(e)}/tags`,Pl,{body:{names:t}}),yd=(e,t)=>G(`POST`,`tasks/${K(e)}/checklist`,Il,{body:{text:t}}),bd=(e,t)=>G(`PATCH`,`checklist/${K(e)}`,Il,{body:t}),xd=e=>G(`DELETE`,`checklist/${K(e)}`,dl),Sd=(e,t)=>G(`POST`,`checklist/${K(e)}/move`,Il,{body:{afterId:t}}),Cd=(e,t)=>G(`POST`,`tasks/${K(e)}/checkpoints`,Bl,{body:{text:t}}),wd=(e,t)=>G(`PATCH`,`checkpoints/${K(e)}`,Bl,{body:{text:t}}),Td=e=>G(`DELETE`,`checkpoints/${K(e)}`,dl),Ed=(e,t)=>G(`POST`,`checkpoints/${K(e)}/move`,Bl,{body:{afterId:t}}),Dd=(e,t)=>G(`PUT`,`checkpoints/${K(e)}/result`,Vl,{body:t}),Od=(e,t)=>G(`PUT`,`tasks/${K(e)}/review`,Xl,{body:{text:t}}),kd=(e,t)=>G(`POST`,`tasks/${K(e)}/review/submit`,Hl,{body:{text:t}}),Ad=(e,t)=>G(`POST`,`tasks/${K(e)}/comments`,Rl,{body:{body:t}}),jd=(e,t)=>G(`PATCH`,`comments/${K(e)}`,Rl,{body:{body:t}}),Md=e=>G(`DELETE`,`comments/${K(e)}`,dl);function Nd(e,t){let n=new FormData;return n.append(`file`,t,t.name),G(`POST`,`tasks/${K(e)}/attachments`,zl,{form:n})}var Pd=e=>`api/attachments/${K(e)}`,Fd=e=>G(`DELETE`,`attachments/${K(e)}`,dl),Id=(e,t=0)=>G(`GET`,`notifications?limit=${e}&offset=${t}`,$l),Ld=e=>G(`POST`,`notifications/${K(e)}/read`,eu),Rd=()=>G(`POST`,`notifications/read-all`,eu),zd=e=>G(`PATCH`,`profile`,ll,{body:{displayName:e}}),Bd=(e,t)=>G(`POST`,`profile/password`,dl,{body:{currentPassword:e,newPassword:t}}).then(()=>void 0),Vd=()=>G(`GET`,`settings`,tu),Hd=e=>G(`PUT`,`settings`,tu,{body:e}),Ud=e=>G(`GET`,`spaces/${e}/notification-settings`,nu),Wd=(e,t)=>G(`PUT`,`spaces/${e}/notification-settings`,nu,{body:t}),Gd=()=>G(`GET`,`tokens`,ju),Kd=e=>G(`POST`,`tokens`,Mu,{body:e}),qd=e=>G(`POST`,`tokens/${K(e)}/revoke`,Au),Jd=()=>G(`GET`,`admin/spaces`,gu),Yd=(e,t)=>G(`PUT`,`admin/spaces/${K(e)}/runner`,pu,{body:{allowed:t}}),Xd=e=>G(`POST`,`spaces/${K(e)}/runner/run`,_u),Zd=e=>G(`POST`,`spaces/${K(e)}/runner/stop`,vu),Qd=()=>G(`POST`,`admin/runner/kill-all`,yu),$d=()=>G(`GET`,`admin/runner/settings`,bu),ef=e=>G(`PUT`,`admin/runner/settings`,bu,{body:e}),tf=()=>G(`GET`,`admin/runner/usage`,Cu),nf=()=>G(`GET`,`admin/agent-instructions`,Tu),rf=e=>G(`PUT`,`admin/agent-instructions`,Tu,{body:{text:e}}),af=e=>G(`GET`,`spaces/${K(e)}/agent-instructions`,Eu),of=(e,t)=>G(`PUT`,`spaces/${K(e)}/agent-instructions`,Eu,{body:{text:t}}),sf=e=>G(`GET`,`spaces/${K(e)}/requests`,uu),cf=(e,t)=>G(`POST`,`spaces/${K(e)}/requests`,cu,{body:t}),lf=(e,t)=>G(`PATCH`,`requests/${K(e)}`,cu,{body:{text:t}}),uf=e=>G(`POST`,`requests/${K(e)}/cancel`,cu),df=e=>G(`POST`,`requests/${K(e)}/stop`,cu),ff=e=>G(`POST`,`requests/${K(e)}/relaunch`,cu),pf=e=>G(`POST`,`requests/${K(e)}/undo`,cu),mf=(e,t)=>G(`POST`,`requests/${K(e)}/suites`,cu,{body:{text:t}}),hf=(e,t)=>G(`PUT`,`follow-ups/${K(e)}`,cu,{body:{done:t}}),gf=e=>G(`POST`,`agent-actions/${K(e)}/undo`,cu),_f=e=>G(`GET`,`tasks/${K(e)}/versions`,du),vf=(e,t)=>G(`POST`,`tasks/${K(e)}/versions/${t}/restore`,du),yf=e=>G(`GET`,`spaces/${K(e)}/views`,zu),bf=(e,t)=>G(`POST`,`spaces/${K(e)}/views`,Ru,{body:t}),xf=(e,t)=>G(`PATCH`,`views/${K(e)}`,Ru,{body:t}),Sf=e=>G(`DELETE`,`views/${K(e)}`,dl),Cf=e=>G(`GET`,`spaces/${K(e)}/ideas`,Iu),wf=(e,t)=>G(`POST`,`spaces/${K(e)}/ideas`,Fu,{body:{text:t}}),Tf=(e,t)=>G(`PATCH`,`ideas/${K(e)}`,Fu,{body:{archived:t}}),Ef=(e,t)=>G(`POST`,`ideas/${K(e)}/promote`,Fu,{body:t}),Df=e=>G(`POST`,`ideas/${K(e)}/delegate`,Fu);async function Of(e,t){let n=new FormData;return n.append(`file`,e,t),(await G(`POST`,`transcribe`,fu,{form:n})).text}var kf=e=>G(`GET`,e===null?`changes`:`changes?since=${e}`,Ql);function q(e){return e instanceof Error?e.message:String(e)}var Af={dashboard:`#/tableau-de-bord`,ideas:`#/idees`,agent:`#/agent`,settings:`#/parametres`,"space-settings":`#/espace`,administration:`#/administration`,menu:`#/menu`},jf=`#/connexion`;function Mf(e){return`#/task/${encodeURIComponent(e)}`}function Nf(e){return`#/agent/demande/${encodeURIComponent(e)}`}function Pf(e,t){return`#/cle/${encodeURIComponent(e)}${t?`/${encodeURIComponent(t)}`:``}`}function Ff(e){let t=e.replace(/^#/,``),n=/^\/activation\/([A-Za-z0-9_-]+)$/.exec(t);if(n)return{name:`activation`,token:n[1]};let r=/^\/task\/([^/]+)$/.exec(t);if(r)return{name:`task`,id:decodeURIComponent(r[1])};let i=/^\/cle\/([^/]+)(?:\/([^/]+))?$/.exec(t);if(i)return{name:`task-key`,key:decodeURIComponent(i[1]),spaceId:i[2]?decodeURIComponent(i[2]):null};if(t===`/connexion`)return{name:`login`};if(t===`/idees`)return{name:`ideas`};if(t===`/agent`)return{name:`agent`,requestId:null};let a=/^\/agent\/demande\/([^/]+)$/.exec(t);return a?{name:`agent`,requestId:decodeURIComponent(a[1])}:t===`/parametres`?{name:`settings`}:t===`/espace`?{name:`space-settings`}:t===`/administration`?{name:`administration`}:t===`/menu`?{name:`menu`}:{name:`dashboard`}}function If(e){return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)}function Lf(){return Ff((0,v.useSyncExternalStore)(If,()=>window.location.hash))}function Rf(e){window.location.hash!==e&&(window.location.hash=e)}var zf=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},Bf=(e=>e?zf(e):zf),Vf=e=>e;function Hf(e,t=Vf){let n=v.useSyncExternalStore(e.subscribe,v.useCallback(()=>t(e.getState()),[e,t]),v.useCallback(()=>t(e.getInitialState()),[e,t]));return v.useDebugValue(n),n}var Uf=e=>{let t=Bf(e),n=e=>Hf(t,e);return Object.assign(n,t),n},Wf=(e=>e?Uf(e):Uf),Gf=Wf(e=>({status:`checking`,user:null,accountsExist:!0,error:null,init:async()=>{try{e({accountsExist:(await Uu()).accountsExist,error:null})}catch(t){e({status:`anonymous`,error:q(t)});return}try{let{user:t}=await Wu();e({status:`authenticated`,user:t})}catch(t){t instanceof Bu&&t.status===401?e({status:`anonymous`,user:null}):e({status:`anonymous`,user:null,error:q(t)})}},login:async(t,n)=>{let{user:r}=await Gu(t,n);e({status:`authenticated`,user:r,accountsExist:!0,error:null})},activate:async(t,n,r)=>{let{user:i}=await Ju(t,{displayName:n,password:r});e({status:`authenticated`,user:i,accountsExist:!0,error:null})},logout:async()=>{await Ku(),e({status:`anonymous`,user:null})},rename:async t=>{let{user:n}=await zd(t);e({user:n})},expire:()=>e({status:`anonymous`,user:null})})),J=`organizer.currentSpaceId`;function Kf(){try{return window.localStorage.getItem(J)}catch{return null}}function qf(e){try{window.localStorage.setItem(J,e)}catch{}}function Jf(e,t){return t&&e.some(e=>e.id===t)?t:e[0]?.id??null}var Yf=Wf((e,t)=>({spaces:[],currentSpaceId:null,loading:!1,error:null,load:async()=>{e({loading:!0});try{let n=await Yu();e({spaces:n,currentSpaceId:Jf(n,t().currentSpaceId??Kf()),loading:!1,error:null})}catch(t){e({loading:!1,error:q(t)})}},select:t=>{qf(t),e({currentSpaceId:t})},create:async e=>{let n=await Xu(e);return await t().load(),t().select(n.id),n},rename:async(e,n)=>{await Zu(e,n),await t().load()},remove:async n=>{await Qu(n),e({currentSpaceId:null}),await t().load()},leave:async n=>{await $u(n),e({currentSpaceId:null}),await t().load()},reset:()=>e({spaces:[],currentSpaceId:null,error:null})}));function Xf(){return Yf(e=>e.spaces.find(t=>t.id===e.currentSpaceId)??null)}var Zf=Wf((e,t)=>({invitations:[],error:null,load:async()=>{try{e({invitations:await od(),error:null})}catch(t){e({error:q(t)})}},accept:async n=>{e({error:null});try{let e=await sd(n);await Yf.getState().load(),Yf.getState().select(e.id)}catch(t){e({error:q(t)})}await t().load()},decline:async n=>{e({error:null});try{await cd(n)}catch(t){e({error:q(t)})}await t().load()},reset:()=>e({invitations:[],error:null})})),Qf=Wf((e,t)=>({items:[],unreadCount:0,hasMore:!1,error:null,load:async()=>{try{let n=await Id(Math.max(20,t().items.length));e({items:n.notifications,unreadCount:n.unreadCount,hasMore:n.hasMore,error:null})}catch(t){e({error:q(t)})}},loadMore:async()=>{try{let n=await Id(20,t().items.length);e({items:[...t().items,...n.notifications],unreadCount:n.unreadCount,hasMore:n.hasMore,error:null})}catch(t){e({error:q(t)})}},markRead:async n=>{let r=new Date().toISOString();e({items:t().items.map(e=>e.id===n&&e.readAt===null?{...e,readAt:r}:e)});try{let{unreadCount:t}=await Ld(n);e({unreadCount:t,error:null})}catch(n){e({error:q(n)}),await t().load()}},markAllRead:async()=>{try{let{unreadCount:n}=await Rd();e({unreadCount:n,error:null}),await t().load()}catch(t){e({error:q(t)})}},reset:()=>e({items:[],unreadCount:0,hasMore:!1,error:null})})),$f=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function ep(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:$f(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var tp=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},np=e=>{let t=tp(e);return t.charAt(0).toUpperCase()+t.slice(1)},rp=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ip={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function ap(e){return e!=null}function op(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??ip.width,a=e.size??e.height??ip.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?rp(...c):rp(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??ip[`stroke-width`])*Number(e.size??e.width??ip.width)/Number(t.size??t.width??ip.width):t.strokeWidth??ip[`stroke-width`];return[`svg`,{...Object.entries(ip).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&ap(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&ap(t.width)&&{[r(`width`)]:t.width},...`height`in t&&ap(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function sp(e,t={}){return op(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var cp=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},lp=(0,v.createContext)({}),up=()=>(0,v.useContext)(lp),dp=(0,v.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:y=``}=up()??{},b=!!c||cp(d),[x,S,C=[]]=sp(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:rp(y,s),hasA11yProp:b,attributes:d});return(0,v.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function Y(e,t=[],n=[]){let r=typeof e==`string`?ep(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(dp,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=np(r.name)),i}var fp={name:`archive-restore`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h2`,key:`tvwodi`}],[`path`,{d:`M20 8v11a2 2 0 0 1-2 2h-2`,key:`1gkqxj`}],[`path`,{d:`m9 15 3-3 3 3`,key:`1pd0qc`}],[`path`,{d:`M12 12v9`,key:`192myk`}]]};fp.node;var pp=Y(fp),mp={name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]};mp.node;var hp=Y(mp),gp={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};gp.node;var _p=Y(gp),vp={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};vp.node;var yp=Y(vp),bp={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};bp.node;var xp=Y(bp),Sp={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Sp.node;var Cp=Y(Sp),wp={name:`at-sign`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`,key:`7n84p3`}]]};wp.node;var Tp=Y(wp),Ep={name:`ban`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]};Ep.node;var Dp=Y(Ep),Op={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]};Op.node;var kp=Y(Op),Ap={name:`bot-message-square`,size:24,node:[[`path`,{d:`M12 6V2H8`,key:`1155em`}],[`path`,{d:`M15 11v2`,key:`i11awn`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 16a2 2 0 0 1-2 2H8.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 4 20.286V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2z`,key:`11gyqh`}],[`path`,{d:`M9 11v2`,key:`1ueba0`}]]};Ap.node;var jp=Y(Ap),Mp={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};Mp.node;var Np=Y(Mp),Pp={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Pp.node;var Fp=Y(Pp),Ip={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Ip.node;var Lp=Y(Ip),Rp={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Rp.node;var zp=Y(Rp),Bp={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};Bp.node;var Vp=Y(Bp),Hp={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Hp.node;var Up=Y(Hp),Wp={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Wp.node;var Gp=Y(Wp),Kp={name:`circle-user`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662`,key:`154egf`}]],aliases:[`user-circle`]};Kp.node;var qp=Y(Kp),Jp={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};Jp.node;var Yp=Y(Jp),Xp={name:`clipboard-check`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m9 14 2 2 4-4`,key:`df797q`}]]};Xp.node;var Zp=Y(Xp),Qp={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Qp.node;var $p=Y(Qp),em={name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]};em.node;var tm=Y(em),nm={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};nm.node;var rm=Y(nm),im={name:`corner-down-right`,size:24,node:[[`path`,{d:`m15 10 5 5-5 5`,key:`qqa56n`}],[`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`,key:`z08zvw`}]]};im.node;var am=Y(im),om={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};om.node;var sm=Y(om),cm={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};cm.node;var lm=Y(cm),um={name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]};um.node;var dm=Y(um),fm={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};fm.node;var pm=Y(fm),mm={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};mm.node;var hm=Y(mm),gm={name:`grip-vertical`,size:24,node:[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]};gm.node;var _m=Y(gm),vm={name:`hourglass`,size:24,node:[[`path`,{d:`M5 22h14`,key:`ehvnwv`}],[`path`,{d:`M5 2h14`,key:`pdyrp9`}],[`path`,{d:`M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22`,key:`1d314k`}],[`path`,{d:`M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2`,key:`1vvvr6`}]]};vm.node;var ym=Y(vm),bm={name:`layout-dashboard`,size:24,node:[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]};bm.node;var xm=Y(bm),Sm={name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]};Sm.node;var Cm=Y(Sm),wm={name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]};wm.node;var Tm=Y(wm),Em={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};Em.node;var Dm=Y(Em),Om={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};Om.node;var km=Y(Om),Am={name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]};Am.node;var jm=Y(Am),Mm={name:`list-tree`,size:24,node:[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]};Mm.node;var Nm=Y(Mm),Pm={name:`list`,size:24,node:[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]};Pm.node;var Fm=Y(Pm),Im={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Im.node;var Lm=Y(Im),Rm={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};Rm.node;var zm=Y(Rm),Bm={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};Bm.node;var Vm=Y(Bm),Hm={name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]};Hm.node;var Um=Y(Hm),Wm={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};Wm.node;var Gm=Y(Wm),Km={name:`message-square-text`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]};Km.node;var qm=Y(Km),Jm={name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]};Jm.node;var Ym=Y(Jm),Xm={name:`messages-square`,size:24,node:[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]};Xm.node;var Zm=Y(Xm),Qm={name:`mic`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]};Qm.node;var $m=Y(Qm),eh={name:`octagon-x`,size:24,node:[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-octagon`]};eh.node;var th=Y(eh),nh={name:`paperclip`,size:24,node:[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]};nh.node;var rh=Y(nh),ih={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};ih.node;var ah=Y(ih),oh={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};oh.node;var sh=Y(oh),ch={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};ch.node;var lh=Y(ch),uh={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};uh.node;var dh=Y(uh),fh={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};fh.node;var ph=Y(fh),mh={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};mh.node;var hh=Y(mh),gh={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};gh.node;var _h=Y(gh),vh={name:`send-horizontal`,size:24,node:[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]],aliases:[`send-horizonal`]};vh.node;var yh=Y(vh),bh={name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]};bh.node;var xh=Y(bh),Sh={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};Sh.node;var Ch=Y(Sh),wh={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};wh.node;var Th=Y(wh),Eh={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};Eh.node;var Dh=Y(Eh),Oh={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};Oh.node;var kh=Y(Oh),Ah={name:`tag`,size:24,node:[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]};Ah.node;var jh=Y(Ah),Mh={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Mh.node;var Nh=Y(Mh),Ph={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};Ph.node;var Fh=Y(Ph),Ih={name:`user-plus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]};Ih.node;var Lh=Y(Ih),Rh={name:`user-minus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]};Rh.node;var zh=Y(Rh),Bh={name:`user-x`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`17`,x2:`22`,y1:`8`,y2:`13`,key:`3nzzx3`}],[`line`,{x1:`22`,x2:`17`,y1:`8`,y2:`13`,key:`1swrse`}]]};Bh.node;var Vh=Y(Bh),Hh={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};Hh.node;var Uh=Y(Hh),Wh={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Wh.node;var Gh=Y(Wh),Kh=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),X=o(((e,t)=>{t.exports=Kh()}))();function qh({children:e}){return(0,X.jsx)(`div`,{className:`auth-page`,children:(0,X.jsxs)(`main`,{className:`auth-card`,children:[(0,X.jsxs)(`div`,{className:`auth-brand`,children:[(0,X.jsx)(`span`,{className:`auth-logo`,"aria-hidden":`true`,children:(0,X.jsx)(km,{size:16})}),(0,X.jsx)(`span`,{className:`auth-brand-name`,children:`mcp-organizer`})]}),e]})})}function Jh({label:e,aside:t,children:n}){return(0,X.jsxs)(`label`,{className:`field`,children:[(0,X.jsxs)(`span`,{className:`field-label-row`,children:[(0,X.jsx)(`span`,{className:`field-label`,children:e}),t]}),n]})}function Yh({token:e}){let t=Gf(e=>e.activate),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(``),[f,p]=(0,v.useState)(null),[m,h]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let t=!1;return qu(e).then(e=>{t||(r(e),s(e.displayName??``))},e=>!t&&a(q(e))),()=>{t=!0}},[e]);async function g(n){if(n.preventDefault(),c.length<8)return p(`Le mot de passe doit faire au moins 8 caractères.`);if(c!==u)return p(`Les deux mots de passe diffèrent.`);h(!0),p(null);try{await t(e,o,c),Rf(Af.dashboard)}catch(e){p(q(e))}finally{h(!1)}}if(i)return(0,X.jsxs)(qh,{children:[(0,X.jsx)(`p`,{className:`form-error`,role:`alert`,children:i}),(0,X.jsx)(`button`,{className:`button button-ghost button-block`,type:`button`,onClick:()=>Rf(jf),children:`Aller à la connexion`})]});if(!n)return(0,X.jsx)(qh,{children:(0,X.jsx)(`p`,{className:`form-help`,children:`Vérification du lien…`})});let _=n.purpose===`invite`;return(0,X.jsx)(qh,{children:(0,X.jsxs)(`form`,{className:`auth-form`,onSubmit:g,noValidate:!0,children:[(0,X.jsxs)(`p`,{className:`auth-intro`,children:[_?`Activez votre compte`:`Choisissez un nouveau mot de passe`,(0,X.jsx)(`span`,{className:`auth-email`,children:n.email})]}),(0,X.jsx)(Jh,{label:`Nom affiché`,children:(0,X.jsx)(`input`,{className:`input`,autoComplete:`name`,placeholder:`Prénom Nom`,value:o,onChange:e=>s(e.target.value),autoFocus:!0})}),(0,X.jsx)(Jh,{label:`Mot de passe`,children:(0,X.jsx)(`input`,{className:`input`,type:`password`,autoComplete:`new-password`,placeholder:`8 caractères minimum`,value:c,onChange:e=>l(e.target.value)})}),(0,X.jsx)(Jh,{label:`Confirmation`,children:(0,X.jsx)(`input`,{className:`input`,type:`password`,autoComplete:`new-password`,placeholder:`Saisissez-le à nouveau`,value:u,onChange:e=>d(e.target.value)})}),f&&(0,X.jsx)(`p`,{className:`form-error`,role:`alert`,children:f}),(0,X.jsx)(`button`,{className:`button button-primary button-block`,type:`submit`,disabled:m,children:m?`Activation…`:_?`Activer mon compte`:`Enregistrer le mot de passe`})]})})}function Xh({command:e}){let t=e.split(` `);return(0,X.jsx)(`code`,{className:`command-line`,children:t.map((e,n)=>(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`span`,{className:`command-word`,children:e}),n<t.length-1&&` `]},n))})}function Zh(){let{login:e,accountsExist:t,error:n}=Gf(),[r,i]=(0,v.useState)(``),[a,o]=(0,v.useState)(``),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(!1);async function d(t){t.preventDefault(),u(!0),c(null);try{await e(r,a),Rf(Af.dashboard)}catch(e){c(q(e))}finally{u(!1)}}return(0,X.jsx)(qh,{children:(0,X.jsxs)(`form`,{className:`auth-form`,onSubmit:d,noValidate:!0,children:[(0,X.jsx)(Jh,{label:`E-mail`,children:(0,X.jsx)(`input`,{className:`input`,type:`email`,autoComplete:`username`,placeholder:`nom@exemple.fr`,value:r,onChange:e=>i(e.target.value),required:!0,autoFocus:!0})}),(0,X.jsx)(Jh,{label:`Mot de passe`,children:(0,X.jsx)(`input`,{className:`input`,type:`password`,autoComplete:`current-password`,placeholder:`Votre mot de passe`,value:a,onChange:e=>o(e.target.value),required:!0})}),(s??n)&&(0,X.jsx)(`p`,{className:`form-error`,role:`alert`,children:s??n}),!t&&!s&&(0,X.jsxs)(`div`,{className:`form-help first-account-help`,children:[(0,X.jsx)(`p`,{children:`Aucun compte n’existe encore. Créez le premier dans le dossier du site cloné :`}),(0,X.jsx)(Xh,{command:`node dist/src/index.js --set-user <email> --name="Prénom Nom"`}),(0,X.jsx)(`p`,{children:`ou avec le paquet npm :`}),(0,X.jsx)(Xh,{command:`npx -y @imenam/mcp-organizer --set-user <email> --name="Prénom Nom"`}),(0,X.jsxs)(`p`,{children:[`ou avec les variables `,`ORGANIZER_ADMIN_EMAIL, ORGANIZER_ADMIN_NAME et ORGANIZER_ADMIN_PASSWORD`,`, puis redémarrez le site.`]})]}),(0,X.jsx)(`button`,{className:`button button-primary button-block`,type:`submit`,disabled:l,children:l?`Connexion…`:`Se connecter`})]})})}var Qh=window.matchMedia(`(max-width: 760px)`);function $h(e){return Qh.addEventListener(`change`,e),()=>Qh.removeEventListener(`change`,e)}function eg(){return(0,v.useSyncExternalStore)($h,()=>Qh.matches)}var tg=Wf((e,t)=>{async function n(n){e({error:null});try{return await n(),await t().reload(),!0}catch(n){return e({error:q(n)}),await t().reload(),!1}}return{spaceId:null,data:null,error:null,load:async n=>{t().spaceId!==n&&e({spaceId:n,data:null,error:null});try{let r=await sf(n);t().spaceId===n&&e({data:r})}catch(r){t().spaceId===n&&e({error:q(r)})}},reload:async()=>{let{spaceId:e,load:n}=t();e&&await n(e)},create:async e=>{let{spaceId:n}=t();if(!n)throw Error(`Aucun espace ouvert.`);await cf(n,e),await t().reload()},update:(e,t)=>n(()=>lf(e,t)),cancel:async e=>void await n(()=>uf(e)),stop:async e=>void await n(()=>df(e)),relaunch:async e=>void await n(()=>ff(e)),undoAction:async e=>void await n(()=>gf(e)),undoBatch:async e=>void await n(()=>pf(e)),createSuite:(e,t)=>n(()=>mf(e,t)),setFollowUp:async(r,i)=>{let{data:a}=t();if(a){let t=i?new Date().toISOString():null,n=a.requests.map(e=>e.followUps.some(e=>e.id===r)?{...e,followUps:e.followUps.map(e=>e.id===r?{...e,doneAt:t,doneByRequestId:null}:e)}:e);e({data:{...a,requests:n}})}await n(()=>hf(r,i))},clearError:()=>e({error:null}),reset:()=>e({spaceId:null,data:null,error:null})}}),ng={todo:`À faire`,doing:`En cours`,review:`En revue`,done:`Terminé`},rg={low:`Basse`,medium:`Moyenne`,high:`Haute`,critical:`Critique`},ig={standard:`Standard`,test:`Test`},ag=Mc,og=Pc,sg=[`ok`,`ko`,`blocked`,`untested`],cg={ok:`OK`,ko:`KO`,blocked:`Bloqué`,untested:`À vérifier`},lg={pending:`soumise`,processing:`en cours de traitement`,done:`traitée par l’agent`,failed:`en échec`,cancelled:`annulée`},ug={todo:{one:`à faire`,many:`à faire`},doing:{one:`en cours`,many:`en cours`},review:{one:`en revue`,many:`en revue`},done:{one:`terminée`,many:`terminées`}};function dg(e){let t=ag.reduce((t,n)=>t+e[n],0);if(t===0)return null;let n=ag.filter(t=>e[t]>0).map(t=>{let n=ug[t];return`${e[t]} ${e[t]===1?n.one:n.many}`});return`${t} ${t===1?`tâche`:`tâches`} (${n.join(`, `)})`}function fg(e){return e===`high`||e===`critical`}function pg(e){return e.displayName??e.email}function mg(e,t){return t.flatMap(t=>e.filter(e=>e.userId===t))}function hg(e,t=Date.now()){let n=Math.floor((t-Date.parse(e))/6e4);if(n<1)return`à l’instant`;if(n<60)return`il y a ${n} min`;let r=Math.floor(n/60);if(r<24)return`il y a ${r} h`;let i=Math.floor(r/24);return i<30?`il y a ${i} j`:new Date(e).toLocaleDateString(`fr-FR`)}function gg(e,t=new Date){let n=new Date(e),r=Math.floor((t.getTime()-n.getTime())/6e4);if(r<1)return`à l’instant`;if(r<60)return`il y a ${r} min`;let i=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1),a=n.toLocaleTimeString(`fr-FR`,{hour:`2-digit`,minute:`2-digit`});return r<1440&&n.getDate()===t.getDate()?`il y a ${Math.floor(r/60)} h`:n>=i&&n.getDate()===i.getDate()?`hier à ${a}`:`${n.toLocaleDateString(`fr-FR`,{day:`numeric`,month:`short`})} à ${a}`}function _g(e){return e<1024?`${e} o`:e<1048576?`${Math.round(e/1024)} Ko`:`${(e/1048576).toFixed(1).replace(`.`,`,`)} Mo`}function vg(e,t,n,r){let i=e.find(e=>e.id===t);if(!i)return e;let a=e.filter(e=>e.id!==t),o={...i,status:n},s=r===null?a.findIndex(e=>e.status===n):a.findIndex(e=>e.id===r)+1;return s<0&&(s=a.length),[...a.slice(0,s),o,...a.slice(s)]}function yg(e,t=new Date){let n=new Date(e);if(n.toDateString()===t.toDateString())return hg(e,t.getTime());let r=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1);return n.toDateString()===r.toDateString()?`hier`:n.toLocaleDateString(`fr-FR`,{day:`numeric`,month:`short`})}var bg=Wf((e,t)=>({spaceId:null,data:null,filters:{},error:null,load:async n=>{t().spaceId!==n&&e({spaceId:n,data:null,filters:{}});try{let r=await ud(n,t().filters);t().spaceId===n&&e({data:r,error:null})}catch(r){t().spaceId===n&&e({error:q(r)})}},reload:async()=>{let{spaceId:e,load:n}=t();e&&await n(e)},setFilters:n=>{e({filters:n}),t().reload()},createTask:async(e,n)=>{let{spaceId:r}=t();r&&(await dd(r,{title:n,...e}),await t().reload())},move:async(n,r,i)=>{let{data:a}=t();a&&e({data:{...a,tasks:vg(a.tasks,n,r,i)}});try{await gd(n,r,i)}catch(t){e({error:`Déplacement refusé : ${q(t)}`})}await t().reload()},regroup:async(n,r)=>{let{data:i}=t();i&&e({data:{...i,tasks:i.tasks.map(e=>e.id===n?{...e,...r}:e)}});try{await md(n,r)}catch(t){e({error:`Déplacement refusé : ${q(t)}`})}await t().reload()},clearError:()=>e({error:null})})),xg=Wf((e,t)=>{async function n(n){e({error:null});try{return await n(),await t().reload(),!0}catch(n){return e({error:q(n)}),await t().reload(),!1}}return{spaceId:null,data:null,error:null,load:async n=>{t().spaceId!==n&&e({spaceId:n,data:null,error:null});try{let r=await Cf(n);t().spaceId===n&&e({data:r})}catch(r){t().spaceId===n&&e({error:q(r)})}},reload:async()=>{let{spaceId:e,load:n}=t();e&&await n(e)},add:e=>{let{spaceId:r}=t();return r?n(()=>wf(r,e)):Promise.resolve(!1)},setArchived:(e,t)=>n(()=>Tf(e,t)),promote:(e,t)=>n(()=>Ef(e,t)),delegate:e=>n(()=>Df(e)),cancelPromotion:e=>n(()=>uf(e)),clearError:()=>e({error:null})}}),Sg=Wf((e,t)=>({taskId:null,data:null,loadError:null,error:null,load:async n=>{t().taskId!==n&&e({taskId:n,data:null,loadError:null,error:null});try{let r=await fd(n);t().taskId===n&&e({data:r,loadError:null})}catch(r){t().taskId===n&&e({loadError:q(r)})}},reload:async()=>{let{taskId:e,load:n}=t();e&&await n(e)},run:async n=>{e({error:null});try{return await n(),await t().reload(),!0}catch(n){return e({error:q(n)}),await t().reload(),!1}},moveChild:async(n,r,i)=>{let{data:a}=t();a&&e({data:{...a,children:vg(a.children,n,r,i)}}),await t().run(()=>gd(n,r,i))},clearError:()=>e({error:null})}));function Cg(e,t){return e.find(e=>e.id===t)??e[0]??null}var wg=Wf((e,t)=>({spaceId:null,views:null,activeId:null,error:null,load:async n=>{t().spaceId!==n&&e({spaceId:n,views:null,activeId:null,error:null});try{let{views:r}=await yf(n);t().spaceId===n&&e({views:r})}catch(r){t().spaceId===n&&e({error:q(r)})}},reload:async()=>{let{spaceId:e,load:n}=t();e&&await n(e)},select:t=>e({activeId:t}),reloadAndShow:async n=>{await t().reload(),t().views?.some(e=>e.id===n)&&e({activeId:n})},create:async n=>{let{spaceId:r}=t();if(!r)return!1;e({error:null});try{let i=await bf(r,n);return await t().reload(),e({activeId:i.id}),!0}catch(t){return e({error:q(t)}),!1}},update:async(n,r)=>{let{views:i}=t();i&&e({views:i.map(e=>e.id===n?{...e,...r}:e),error:null});try{return await xf(n,r),!0}catch(n){return e({error:q(n)}),await t().reload(),!1}},remove:async n=>{e({error:null});try{return await Sf(n),await t().reload(),!0}catch(t){return e({error:q(t)}),!1}},clearError:()=>e({error:null})})),Tg=3e3,Eg=new Set([`space`,`membership`]),Dg=new Set([`notification`,`user_settings`,`board_view`]),Og=new Set([`task`,`tag`,`membership`,`test_checkpoint`,`test_result`]),kg=new Set([`agent_request`,`agent_action`,`follow_up`]),Ag=new Set([`idea`,`agent_request`,`task`]);function jg(e){let t=Gf.getState().user?.id;e.some(e=>Eg.has(e.entityType)||e.userId!==null&&e.userId===t&&!Dg.has(e.entityType))&&Yf.getState().load(),e.some(e=>e.entityType===`notification`)&&Qf.getState().load(),e.some(e=>e.entityType===`invitation`&&e.userId===t)&&Zf.getState().load();let n=wg.getState(),r=e.filter(e=>e.entityType===`board_view`&&e.userId===t);if(n.views&&r.length>0){let e=r.filter(e=>e.actorType===`agent`).at(-1);e?n.reloadAndShow(e.entityId):n.reload()}let i=bg.getState();i.data&&e.some(e=>e.spaceId===i.spaceId&&Og.has(e.entityType))&&i.reload();let a=tg.getState();a.spaceId&&e.some(e=>e.spaceId===a.spaceId&&kg.has(e.entityType))&&a.reload();let o=xg.getState();o.data&&e.some(e=>e.spaceId===o.spaceId&&Ag.has(e.entityType))&&o.reload();let s=Sg.getState();if(s.taskId){let t=s.data?.task.spaceId;e.some(e=>e.taskId===s.taskId||t!==void 0&&e.spaceId===t&&Og.has(e.entityType))&&s.reload()}}function Mg(){(0,v.useEffect)(()=>{let e=null,t=null,n=!1;async function r(){try{let t=await kf(e);if(n)return;e!==null&&t.changes.length>0&&jg(t.changes),e=t.seq}catch(e){console.error(`[mcp-organizer] Polling api/changes failed: ${q(e)}`)}n||(t=setTimeout(()=>void r(),Tg))}return r(),()=>{n=!0,t&&clearTimeout(t)}},[])}var Ng=6e5;function Pg(e){return e!==null&&Date.now()-Date.parse(e)<Ng}function Fg({agents:e}){return e.length===0?(0,X.jsxs)(`p`,{className:`agent-presence`,children:[(0,X.jsx)(`span`,{className:`presence-dot`,"aria-hidden":`true`}),`Aucun agent sur cet espace`,(0,X.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,X.jsx)(`a`,{className:`link-button link-muted`,href:Af.settings,children:`Ajouter un agent`})]}):(0,X.jsx)(`ul`,{className:`agent-presence`,"aria-label":`Agents de l’espace`,children:e.map(e=>{let t=e.lastUsedAt?`dernier passage ${hg(e.lastUsedAt)}`:`jamais passé`;return(0,X.jsxs)(`li`,{className:`agent-presence-item`,title:`Jeton de ${e.ownerName}`,children:[(0,X.jsx)(`span`,{className:e.listening||Pg(e.lastUsedAt)?`presence-dot presence-dot-on`:`presence-dot`,"aria-hidden":`true`}),(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`span`,{className:`agent-presence-name`,children:e.name}),` · `,e.ownerName,` ·`,` `,e.listening?(0,X.jsx)(`span`,{className:`agent-presence-listening`,children:`à l’écoute`}):t]})]},e.tokenId)})})}var Ig=new Set([`de`,`du`,`des`,`la`,`le`,`les`,`l`,`d`,`et`,`a`,`au`,`aux`,`en`,`the`,`of`,`and`]);function Lg(e){return e.normalize(`NFD`).replace(/[̀-ͯ]/g,``).toUpperCase().split(/[^A-Z0-9]+/).filter(e=>e.length>0)}function Rg(e){let t=Lg(e).map(e=>e.replace(/^[0-9]+/,``)).filter(e=>e.length>0),n=t.filter(e=>!Ig.has(e.toLowerCase())),r=n.length>0?n:t;return r.length===0?`ESP`:r.length===1?r[0].slice(0,3).padEnd(2,`X`):r.slice(0,4).map(e=>e[0]).join(``)}function zg(e,t){let n=(e&&e.trim()!==``?e:t.split(`@`)[0]).normalize(`NFD`).replace(/[̀-ͯ]/g,``).split(/[^A-Za-z0-9]+/).filter(e=>e.length>0);return n.length===0?`?`:n.length===1?n[0].slice(0,2).toUpperCase():(n[0][0]+n[1][0]).toUpperCase()}var Bg=[[`#1d2740`,`#93b4ff`],[`#1d2f2a`,`#6ee7b7`],[`#33270f`,`#e3a33b`],[`#2a1f3d`,`#c4a3ff`],[`#3a1d27`,`#fda4bf`]];function Vg(e){let t=0;for(let n of e)t=t*31+n.charCodeAt(0)>>>0;return Bg[t%Bg.length]}function Hg({id:e,displayName:t,email:n,size:r=22}){let[i,a]=Vg(e);return(0,X.jsx)(`span`,{className:`avatar`,style:{background:i,color:a,width:r,height:r,fontSize:Math.round(r*.36)},"aria-hidden":`true`,children:zg(t,n)})}function Ug({members:e,size:t=20}){return e.length===0?null:(0,X.jsx)(`span`,{className:`avatar-stack`,"aria-label":e.map(e=>e.displayName??e.email).join(`, `),children:e.map(e=>(0,X.jsx)(Hg,{id:e.userId,displayName:e.displayName,email:e.email,size:t},e.userId))})}function Wg({space:e}){if(e.kind===`personal`)return(0,X.jsx)(`span`,{className:`space-mark space-mark-personal`,"aria-hidden":`true`,children:(0,X.jsx)(zm,{size:13,strokeWidth:2})});let[t,n]=Vg(e.id);return(0,X.jsx)(`span`,{className:`space-mark`,style:{background:t,color:n},"aria-hidden":`true`,children:e.name.trim().charAt(0).toUpperCase()})}function Gg(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Kg=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qg=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jg={};function Yg(e,t){return((t||Jg).jsx?qg:Kg).test(e)}var Xg=/[ \t\n\f\r]/g;function Zg(e){return typeof e==`object`?e.type===`text`&&Qg(e.value):Qg(e)}function Qg(e){return e.replace(Xg,``)===``}var $g=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};$g.prototype.normal={},$g.prototype.property={},$g.prototype.space=void 0;function e_(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new $g(n,r,t)}function t_(e){return e.toLowerCase()}var n_=class{constructor(e,t){this.attribute=t,this.property=e}};n_.prototype.attribute=``,n_.prototype.booleanish=!1,n_.prototype.boolean=!1,n_.prototype.commaOrSpaceSeparated=!1,n_.prototype.commaSeparated=!1,n_.prototype.defined=!1,n_.prototype.mustUseProperty=!1,n_.prototype.number=!1,n_.prototype.overloadedBoolean=!1,n_.prototype.property=``,n_.prototype.spaceSeparated=!1,n_.prototype.space=void 0;var r_=s({boolean:()=>Z,booleanish:()=>a_,commaOrSpaceSeparated:()=>l_,commaSeparated:()=>c_,number:()=>Q,overloadedBoolean:()=>o_,spaceSeparated:()=>s_}),i_=0,Z=u_(),a_=u_(),o_=u_(),Q=u_(),s_=u_(),c_=u_(),l_=u_();function u_(){return 2**++i_}var d_=Object.keys(r_),f_=class extends n_{constructor(e,t,n,r){let i=-1;if(super(e,t),p_(this,`space`,r),typeof n==`number`)for(;++i<d_.length;){let e=d_[i];p_(this,d_[i],(n&r_[e])===r_[e])}}};f_.prototype.defined=!0;function p_(e,t,n){n&&(e[t]=n)}function m_(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new f_(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[t_(r)]=r,n[t_(a.attribute)]=r}return new $g(t,n,e.space)}var h_=m_({properties:{ariaActiveDescendant:null,ariaAtomic:a_,ariaAutoComplete:null,ariaBusy:a_,ariaChecked:a_,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:s_,ariaCurrent:null,ariaDescribedBy:s_,ariaDetails:null,ariaDisabled:a_,ariaDropEffect:s_,ariaErrorMessage:null,ariaExpanded:a_,ariaFlowTo:s_,ariaGrabbed:a_,ariaHasPopup:null,ariaHidden:a_,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s_,ariaLevel:Q,ariaLive:null,ariaModal:a_,ariaMultiLine:a_,ariaMultiSelectable:a_,ariaOrientation:null,ariaOwns:s_,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:a_,ariaReadOnly:a_,ariaRelevant:null,ariaRequired:a_,ariaRoleDescription:s_,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:a_,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function g_(e,t){return t in e?e[t]:t}function __(e,t){return g_(e,t.toLowerCase())}var v_=m_({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:c_,acceptCharset:s_,accessKey:s_,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alpha:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:s_,autoFocus:Z,autoPlay:Z,blocking:s_,capture:null,charSet:null,checked:Z,cite:null,className:s_,closedBy:null,colorSpace:null,cols:Q,colSpan:Q,command:null,commandFor:null,content:null,contentEditable:a_,controls:Z,controlsList:s_,coords:Q|c_,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:o_,draggable:a_,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:s_,height:Q,hidden:o_,high:Q,href:null,hrefLang:null,htmlFor:s_,httpEquiv:s_,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:s_,itemRef:s_,itemScope:Z,itemType:s_,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Z,optimum:Q,pattern:null,ping:s_,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:s_,required:Z,reversed:Z,rows:Q,rowSpan:Q,sandbox:s_,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootCustomElementRegistry:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shadowRootSerializable:Z,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:a_,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:a_,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:s_,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:a_,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Z,disablePictureInPicture:Z,disableRemotePlayback:Z,exportParts:c_,part:s_,prefix:null,property:null,results:Q,security:null,unselectable:null},space:`html`,transform:__}),y_=m_({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,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`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,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`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,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`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:l_,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:s_,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:c_,g2:c_,glyphName:c_,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:l_,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:s_,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:l_,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:l_,rev:l_,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:l_,requiredFeatures:l_,requiredFonts:l_,requiredFormats:l_,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:l_,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:l_,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:l_,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:g_}),b_=m_({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),x_=m_({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:__}),S_=m_({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),C_={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},w_=/[A-Z]/g,T_=/-[a-z]/g,E_=/^data[-\w.:]+$/i;function D_(e,t){let n=t_(t),r=t,i=n_;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&E_.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(T_,k_);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!T_.test(e)){let n=e.replace(w_,O_);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=f_}return new i(r,t)}function O_(e){return`-`+e.toLowerCase()}function k_(e){return e.charAt(1).toUpperCase()}var A_=e_([h_,v_,b_,x_,S_],`html`),j_=e_([h_,y_,b_,x_,S_],`svg`);function M_(e){return e.join(` `).trim()}var N_=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
63
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function Ua(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;Ua(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var Wa=new Set([`type`,`properties`,`required`,`additionalProperties`]),Ga=[`oneOf`,`anyOf`];function Ka(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function qa(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!Wa.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??Ka(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}O(n,r,e.length===1?e[0]:qa(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=Ka(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Ja(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of Wa)if(t in e)return;let n=t.filter(e=>Ga.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=qa(t);else{let e=n[0],i=Ga.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>qa([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,La(e,r))}function Ya(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):La(i,s),La(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())Ua(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Ja(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}La(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,O(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Qa(t,`input`,e.processors),output:Qa(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Xa(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Xa(r.element,n);if(r.type===`set`)return Xa(r.valueType,n);if(r.type===`lazy`)return Xa(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return Xa(r.innerType,n);if(r.type===`intersection`)return Xa(r.left,n)||Xa(r.right,n);if(r.type===`record`||r.type===`map`)return Xa(r.keyType,n)||Xa(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Xa(r.in,n)||Xa(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Xa(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Xa(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Xa(e,n))return!0;return!!(r.rest&&Xa(r.rest,n))}return!1}var Za=(e,t={})=>n=>{let r=Ra({...n,processors:t});return Ba(e,r),Ha(r,e),Ya(r,e)},Qa=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Ra({...i??{},target:a,io:t,processors:n});return Ba(e,o),Ha(o,e),Ya(o,e)},$a=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},eo=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},to=(e,t)=>{$a(e,`minimum`,t),eo(e,`maximum`,t)},no=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},ro=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},io=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},ao=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},oo=(e,t)=>$a(e,`minimum`,t.minimum),so=(e,t)=>eo(e,`maximum`,t.maximum),co=e=>(t,n)=>{ao(t,n.format);let[r,i]=e[n.format];$a(t,`minimum`,r),eo(t,`maximum`,i)},lo={greater_than:(e,t)=>$a(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>eo(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>no(e,t.value),number_format:co(ge),bigint_format:co(_e),min_length:oo,max_length:so,length_equals:(e,t)=>to(e,t.length),min_size:oo,max_size:so,size_equals:(e,t)=>to(e,t.size),string_format:(e,t)=>{ao(e,t.format),t.pattern&&ro(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>io(e,t.mime)};function uo(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)lo[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&$a(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&$a(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&eo(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&eo(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&no(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&io(t,i.mime);for(let e of i.patterns??[])ro(t,e);return t}var fo={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},po=new Map([[mr,Yt],[gr,Xt]]),mo=e=>po.get(e)??e,ho=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=uo(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=fo[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(mo);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},go=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=uo(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):za(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},_o=(e,t,n,r)=>{n.type=`boolean`},vo=(e,t,n,r)=>{n.not={}},yo=(e,t,n,r)=>{let i=e._zod.def,a=b(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},bo=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(za(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(za(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},xo=(e,t,n,r)=>{za(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},So=(e,t,n,r)=>{za(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},Co=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=uo(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Ba(a.element,t,{...r,path:[...r.path,`items`]})};function wo(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?wo(t.out):t.type===`catch`?wo(t.innerType):e._zod.optin}var To=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&za(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)O(i.properties,e,Ba(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?wo(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Ba(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Eo=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Ba(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Do=(e,t,n,r)=>{let i=e._zod.def,a=Ba(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Ba(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)};function Oo(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=Oo(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>Oo(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i&&(p.type=`string`,a||(p.pattern=(r.includes(`number`)?cn:sn).source)),p}var ko=new WeakMap;function Ao(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of ko.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=Oo(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var jo=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=uo(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=Ba(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)O(i.patternProperties,mo(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=Ba(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=ko.get(t);n||(n=[],ko.set(t,n),t.deferred.push(()=>Ao(t))),n.push(e)}i.additionalProperties=Ba(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&wo(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},Mo=(e,t,n,r)=>{let i=e._zod.def,a=Ba(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},No=(e,t,n,r)=>{let i=e._zod.def;Ba(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Po=Symbol();function Fo(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(za(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),Po):JSON.parse(o)}var Io=(e,t,n,r)=>{let i=e._zod.def;Ba(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=Fo(i.defaultValue,e,t,n,r);o!==Po&&(n.default=o)},Lo=(e,t,n,r)=>{let i=e._zod.def;Ba(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=Fo(i.defaultValue,e,t,n,r);o!==Po&&(n._prefault=o)},Ro=(e,t,n,r)=>{let i=e._zod.def;Ba(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{za(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},zo=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Ba(o,t,r);let s=t.seen.get(e);s.ref=o},Bo=(e,t,n,r)=>{let i=e._zod.def;Ba(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Vo=(e,t,n,r)=>{let i=e._zod.def;Ba(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ho=new WeakSet([Object.prototype,Error.prototype]);function Uo(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var Wo=F(`ZodError`,(e,t)=>{lt.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);Ho.has(n)||(Ho.add(n),Uo(n,`format`,e=>t=>ft(e,t)),Uo(n,`flatten`,e=>t=>dt(e,t)),Uo(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,S,2)}),Uo(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,S,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),Go=mt(Wo),Ko=ht(Wo),L=gt(Wo),qo=vt(Wo),Jo=wt(Wo),Yo=Tt(Wo),Xo=Et(Wo),Zo=Dt(Wo),Qo=Ot(Wo),$o=kt(Wo),es=At(Wo),ts=jt(Wo);function ns(){nt.localeError||rt(ki())}function rs(){nt.memoizer||rt({memoizer:Ei()})}var is=F(`ZodType`,(e,t)=>(ns(),Mn.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(j(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return pe(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(xc(e,t))},superRefine(e,t){return this.check(Sc(e,t))},overwrite(e){return this.check(Da(e))},optional(){return rc(this)},exactOptional(){return ac(this)},nullable(){return sc(this)},nullish(){return rc(sc(this))},nonoptional(e){return pc(this,e)},array(){return V(this)},or(e){return Us([this,e])},and(e){return qs(this,e)},transform(e){return _c(this,tc(e))},default(e){return lc(this,e)},prefault(e){return dc(this,e)},catch(e){return hc(this,e)},pipe(e){return _c(this,e)},readonly(){return yc(this)},describe(e){let t=this.clone();return Ni.add(t,{description:e}),t},meta(...e){if(e.length===0)return Ni.get(this);let t=this.clone();return Ni.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return ze(this,`~standard`,{...Fn(this),jsonSchema:{input:Qa(this,`input`),output:Qa(this,`output`)}})},set"~standard"(e){Re(this,`~standard`,e)},parse:function e(t,n){return Go(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Ko(this,t,n,{callee:e})},safeParse(e,t){return L(this,e,t)},async safeParseAsync(e,t){return qo(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Re(this,`spa`,e)},validate(e,t){return xt(this,e,t)},validateAsync(e,t){return Ct(this,e,t)},encode:function e(t,n){return Jo(this,t,n,{callee:e})},decode:function e(t,n){return Yo(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Xo(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Zo(this,t,n,{callee:e})},safeEncode(e,t){return Qo(this,e,t)},safeDecode(e,t){return $o(this,e,t)},async safeEncodeAsync(e,t){return es(this,e,t)},async safeDecodeAsync(e,t){return ts(this,e,t)},toJSONSchema(e){return Za(this,{})(e)},get description(){return Ni.get(this)?.description},get _def(){return this._zod.def}}),as=F(`_ZodString`,(e,t)=>{In.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ho(e,t,n,r)},Be({format:e=>uo(e).format??null,minLength:e=>uo(e).minimum??null,maxLength:e=>uo(e).maximum??null},{regex(...e){return this.check(xa(...e))},includes(...e){return this.check(wa(...e))},startsWith(...e){return this.check(Ta(...e))},endsWith(...e){return this.check(Ea(...e))},min(...e){return this.check(ya(...e))},max(...e){return this.check(va(...e))},length(...e){return this.check(ba(...e))},nonempty(...e){return this.check(ya(1,...e))},lowercase(e){return this.check(Sa(e))},uppercase(e){return this.check(Ca(e))},trim(){return this.check(ka())},normalize(...e){return this.check(Oa(...e))},toLowerCase(){return this.check(Aa())},toUpperCase(){return this.check(ja())},slugify(){return this.check(Ma())}})),os=F(`ZodString`,(e,t)=>{In.init(e,t),as.init(e,t)},{email(e){return this.check(Ii(fs,e))},url(e){return this.check(Hi(gs,e))},jwt(e){return this.check(ra(js,e))},emoji(e){return this.check(Ui(_s,e))},guid(e){return this.check(Li(ms,e))},uuid(e){return this.check(Ri(hs,e))},uuidv4(e){return this.check(zi(hs,e))},uuidv6(e){return this.check(Bi(hs,e))},uuidv7(e){return this.check(Vi(hs,e))},nanoid(e){return this.check(Wi(vs,e))},cuid(e){return this.check(Gi(ys,e))},cuid2(e){return this.check(Ki(bs,e))},ulid(e){return this.check(qi(xs,e))},base64(e){return this.check(ea(Os,e))},base64url(e){return this.check(ta(ks,e))},xid(e){return this.check(Ji(Ss,e))},ksuid(e){return this.check(Yi(Cs,e))},ipv4(e){return this.check(Xi(ws,e))},ipv6(e){return this.check(Zi(Ts,e))},cidrv4(e){return this.check(Qi(Es,e))},cidrv6(e){return this.check($i(Ds,e))},e164(e){return this.check(na(As,e))},datetime(e){return this.check(ia(cs,e))},date(e){return this.check(aa(ls,e))},time(e){return this.check(oa(us,e))},duration(e){return this.check(sa(ds,e))}});function R(e){return Fi(os,e)}var ss=F(`ZodStringFormat`,(e,t)=>{Ln.init(e,t),as.init(e,t)}),cs=F(`ZodISODateTime`,(e,t)=>{nr.init(e,t),ss.init(e,t)}),ls=F(`ZodISODate`,(e,t)=>{rr.init(e,t),ss.init(e,t)}),us=F(`ZodISOTime`,(e,t)=>{ir.init(e,t),ss.init(e,t)}),ds=F(`ZodISODuration`,(e,t)=>{ar.init(e,t),ss.init(e,t)}),fs=F(`ZodEmail`,(e,t)=>{Bn.init(e,t),ss.init(e,t)});function ps(e){return Ii(fs,e)}var ms=F(`ZodGUID`,(e,t)=>{Rn.init(e,t),ss.init(e,t)}),hs=F(`ZodUUID`,(e,t)=>{zn.init(e,t),ss.init(e,t)}),gs=F(`ZodURL`,(e,t)=>{Jn.init(e,t),ss.init(e,t)}),_s=F(`ZodEmoji`,(e,t)=>{Yn.init(e,t),ss.init(e,t)}),vs=F(`ZodNanoID`,(e,t)=>{Xn.init(e,t),ss.init(e,t)}),ys=F(`ZodCUID`,(e,t)=>{Zn.init(e,t),ss.init(e,t)}),bs=F(`ZodCUID2`,(e,t)=>{Qn.init(e,t),ss.init(e,t)}),xs=F(`ZodULID`,(e,t)=>{$n.init(e,t),ss.init(e,t)}),Ss=F(`ZodXID`,(e,t)=>{er.init(e,t),ss.init(e,t)}),Cs=F(`ZodKSUID`,(e,t)=>{tr.init(e,t),ss.init(e,t)}),ws=F(`ZodIPv4`,(e,t)=>{or.init(e,t),ss.init(e,t)}),Ts=F(`ZodIPv6`,(e,t)=>{lr.init(e,t),ss.init(e,t)}),Es=F(`ZodCIDRv4`,(e,t)=>{ur.init(e,t),ss.init(e,t)}),Ds=F(`ZodCIDRv6`,(e,t)=>{fr.init(e,t),ss.init(e,t)}),Os=F(`ZodBase64`,(e,t)=>{hr.init(e,t),ss.init(e,t)}),ks=F(`ZodBase64URL`,(e,t)=>{vr.init(e,t),ss.init(e,t)}),As=F(`ZodE164`,(e,t)=>{yr.init(e,t),ss.init(e,t)}),js=F(`ZodJWT`,(e,t)=>{xr.init(e,t),ss.init(e,t)}),Ms=F(`ZodNumber`,(e,t)=>{Sr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>go(e,t,n,r),e.isFinite=!0},Be({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=uo(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=uo(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=uo(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>uo(e).format??null},{gt(e,t){return this.check(ha(e,t))},gte(e,t){return this.check(ga(e,t))},min(e,t){return this.check(ga(e,t))},lt(e,t){return this.check(pa(e,t))},lte(e,t){return this.check(ma(e,t))},max(e,t){return this.check(ma(e,t))},int(e){return this.check(Ps(e))},safe(e){return this.check(Ps(e))},positive(e){return this.check(ha(0,e))},nonnegative(e){return this.check(ga(0,e))},negative(e){return this.check(pa(0,e))},nonpositive(e){return this.check(ma(0,e))},multipleOf(e,t){return this.check(_a(e,t))},step(e,t){return this.check(_a(e,t))},finite(){return this}}));function z(e){return ca(Ms,e)}var Ns=F(`ZodNumberFormat`,(e,t)=>{Cr.init(e,t),Ms.init(e,t)});function Ps(e){return la(Ns,e)}var Fs=F(`ZodBoolean`,(e,t)=>{wr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_o(e,t,n,r)});function B(e){return ua(Fs,e)}var Is=F(`ZodUnknown`,(e,t)=>{Tr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Ls(){return da(Is)}var Rs=F(`ZodNever`,(e,t)=>{Er.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vo(e,t,n,r)});function zs(e){return fa(Rs,e)}var Bs=F(`ZodArray`,(e,t)=>{rs(),Ar.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Co(e,t,n,r),e.element=t.element},{min(e,t){return this.check(ya(e,t))},nonempty(e){return this.check(ya(1,e))},max(e,t){return this.check(va(e,t))},length(e,t){return this.check(ba(e,t))},unwrap(){return this.element}});function V(e,t){return Na(Bs,e,t)}var Vs=F(`ZodObject`,(e,t)=>{rs(),Ir.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>To(e,t,n,r),qe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return Zs(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(j(this._zod.def,{catchall:e}))},passthrough(){return this.clone(j(this._zod.def,{catchall:Ls()}))},loose(){return this.clone(j(this._zod.def,{catchall:Ls()}))},strict(){return this.clone(j(this._zod.def,{catchall:zs()}))},strip(){return this.clone(j(this._zod.def,{catchall:void 0}))},extend(e){return ye(this,e)},safeExtend(e){return xe(this,e)},merge(e){return Se(this,e)},pick(e){return N(this,e)},omit(e){return ve(this,e)},partial(...e){return Ce(nc,this,e[0])},exactPartial(...e){return Ce(ic,this,e[0],`exactPartial`)},required(...e){return we(fc,this,e[0])}});function H(e,t){return new Vs({type:`object`,shape:e??{},...M(t)})}var Hs=F(`ZodUnion`,(e,t)=>{Rr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Eo(e,t,n,r),e.options=t.options});function Us(e,t){return new Hs({type:`union`,options:e,...M(t)})}var Ws=F(`ZodDiscriminatedUnion`,(e,t)=>{Hs.init(e,t),Br.init(e,t)});function Gs(e,t,n){return new Ws({type:`union`,options:t,discriminator:e,...M(n)})}var Ks=F(`ZodIntersection`,(e,t)=>{Vr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Do(e,t,n,r)});function qs(e,t){return new Ks({type:`intersection`,left:e,right:t})}var Js=F(`ZodRecord`,(e,t)=>{rs(),Wr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jo(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function Ys(e,t,n){return!t||!t._zod?new Js({type:`record`,keyType:R(),valueType:e,...M(t)}):new Js({type:`record`,keyType:e,valueType:t,...M(n)})}var Xs=F(`ZodEnum`,(e,t)=>{Gr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yo(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Xs({...t,checks:[],...M(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Xs({...t,checks:[],...M(r),entries:i})}});function Zs(e,t){return new Xs({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...M(t)})}var Qs=F(`ZodLiteral`,(e,t)=>{Kr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bo(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function $s(e,t){return new Qs({type:`literal`,values:Array.isArray(e)?e:[e],...M(t)})}var ec=F(`ZodTransform`,(e,t)=>{rs(),qr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>So(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new tt(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ie(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Ie(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function tc(e){return new ec({type:`transform`,transform:e})}var nc=F(`ZodOptional`,(e,t)=>{Yr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rc(e){return new nc({type:`optional`,innerType:e})}var ic=F(`ZodExactOptional`,(e,t)=>{Xr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ac(e){return new ic({type:`optional`,innerType:e})}var oc=F(`ZodNullable`,(e,t)=>{Zr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function sc(e){return new oc({type:`nullable`,innerType:e})}var cc=F(`ZodDefault`,(e,t)=>{Qr.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Io(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lc(e,t){return new cc({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ue(t)}})}var uc=F(`ZodPrefault`,(e,t)=>{ei.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function dc(e,t){return new uc({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ue(t)}})}var fc=F(`ZodNonOptional`,(e,t)=>{ti.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>No(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function pc(e,t){return new fc({type:`nonoptional`,innerType:e,...M(t)})}var mc=F(`ZodCatch`,(e,t)=>{ii.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ro(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function hc(e,t){return new mc({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Ye(t)})}var gc=F(`ZodPipe`,(e,t)=>{ai.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zo(e,t,n,r),e.in=t.in,e.out=t.out});function _c(e,t){return new gc({type:`pipe`,in:e,out:t})}var vc=F(`ZodReadonly`,(e,t)=>{si.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yc(e){return new vc({type:`readonly`,innerType:e})}var bc=F(`ZodCustom`,(e,t)=>{li.init(e,t),is.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xo(e,t,n,r)});function xc(e,t={}){return Pa(bc,e,t)}function Sc(e,t){return Fa(e,t)}function Cc(e){return ia(cs,e)}function wc(e){return I(Ms,e)}var Tc=`X-Organizer-Error-Source`,Ec=H({status:$s(`ok`),accountsExist:B()}),Dc=Zs([`invited`,`active`,`disabled`]),Oc=Zs([`invite`,`reset`]),kc=Zs([`personal`,`shared`]),Ac=Zs([`owner`,`member`]),jc=Zs([`standard`,`test`]),Mc=[`todo`,`doing`,`review`,`done`],Nc=Zs(Mc),Pc=[`low`,`medium`,`high`,`critical`],Fc=Zs(Pc),Ic=Zs([`kanban`,`list`,`matrix`]),Lc=Zs([`status`,`priority`,`none`]),Rc=Zs([`ok`,`ko`,`blocked`,`untested`]),zc=Zs([`manual`,`agent`]),Bc=[`idea`,`remark`,`test_review`,`message`,`idea_promotion`],Vc=Zs(Bc),Hc=Zs([`pending`,`processing`,`done`,`failed`,`cancelled`]),Uc=Zs([`create`,`update`,`delete`,`move`,`assign`]),Wc=Zs([`user`,`agent`]),Gc=Zs([`assigned`,`comment`,`follow_ups`]),Kc=Zs([`user`,`user_settings`,`space`,`membership`,`invitation`,`task`,`tag`,`checklist_item`,`test_checkpoint`,`test_result`,`test_review`,`comment`,`attachment`,`idea`,`agent_request`,`agent_action`,`follow_up`,`agent_token`,`notification`,`board_view`,`agent_instructions`]),qc=Zs([`task`,`idea`]),U=R().min(1),W=Cc(),Jc=R().trim().toLowerCase().pipe(ps()),Yc=R().regex(/^[A-Z][A-Z0-9]{1,9}$/,`must be 2 to 10 uppercase letters or digits, starting with a letter`),Xc=z().finite();H({id:U,email:Jc,displayName:R().min(1).nullable(),passwordHash:R().min(1).nullable(),status:Dc,isAdmin:B(),createdAt:W}),H({id:U,userId:U,purpose:Oc,invitationId:U.nullable(),tokenHash:R().min(1),expiresAt:W,usedAt:W.nullable(),createdAt:W}),H({idHash:R().min(1),userId:U,createdAt:W,expiresAt:W}),H({id:U,userId:U,spaceId:U,name:R().trim().min(1),prefix:R().min(1),tokenHash:R().regex(/^[0-9a-f]{64}$/),createdAt:W,lastUsedAt:W.nullable(),expiresAt:W.nullable(),revokedAt:W.nullable(),isRunner:B()});var Zc=z().int().min(5).max(20),Qc=H({notifyAssignApp:B(),notifyAssignEmail:B(),notifyCommentApp:B(),notifyCommentEmail:B(),notifyFollowUpApp:B(),notifyFollowUpEmail:B()});Qc.extend({userId:U,assistantHistory:Zc}),Qc.extend({userId:U,spaceId:U}),H({id:U,name:R().trim().min(1),kind:kc,ownerId:U,keyPrefix:Yc,nextTaskNumber:z().int().min(1),runnerAllowed:B(),createdAt:W});var $c=4e3;H({spaceId:U.nullable(),text:R().trim().min(1).max($c),updatedAt:W,updatedBy:U.nullable()}),H({spaceId:U,userId:U,role:Ac,joinedAt:W}),H({id:U,spaceId:U,email:Jc,invitedBy:U,createdAt:W,expiresAt:W,acceptedAt:W.nullable(),revokedAt:W.nullable(),declinedAt:W.nullable()});var el=H({id:U,spaceId:U,number:z().int().min(1),parentId:U.nullable(),depth:z().int().min(0).max(2),type:jc,title:R().trim().min(1),description:R(),status:Nc,priority:Fc,position:Xc,testedTaskId:U.nullable(),createdBy:U,createdAt:W,updatedAt:W,version:z().int().min(1)});H({taskId:U,userId:U}),H({id:U,spaceId:U,name:R().trim().min(1)}),H({taskId:U,tagId:U}),H({id:U,taskId:U,text:R().trim().min(1),done:B(),position:Xc}),H({id:U,taskId:U,text:R().trim().min(1),position:Xc}),H({checkpointId:U,testerId:U,result:Rc,comment:R(),updatedAt:W}),H({id:U,taskId:U,testerId:U,text:R(),submittedAt:W.nullable(),requestId:U.nullable()}),H({id:U,taskId:U,authorId:U,body:R().trim().min(1),createdAt:W,editedAt:W.nullable(),requestId:U.nullable(),replyToCommentId:U.nullable().default(null)}),H({id:U,taskId:U,uploaderId:U,filename:R().min(1),mime:R().min(1),size:z().int().min(0),storagePath:R().min(1),createdAt:W});var tl=H({id:U,spaceId:U,authorId:U,text:R().trim().min(1),origin:zc,requestId:U.nullable(),promotedTaskId:U.nullable(),archivedAt:W.nullable(),createdAt:W});H({id:U,spaceId:U,userId:U,name:R().trim().min(1).max(40),layout:Ic,groupBy:Lc,thenBy:Lc,showEmptyGroups:B(),statuses:V(Nc),priorities:V(Fc),assigneeIds:V(U),unassigned:B(),position:Xc,createdAt:W,updatedAt:W}).refine(e=>e.layout===`list`||e.groupBy!==`none`,{message:`a kanban or matrix view must be grouped by status or priority`,path:[`groupBy`]}).refine(e=>e.layout!==`kanban`||e.thenBy===`none`,{message:`a kanban view has a single grouping`,path:[`thenBy`]}).refine(e=>e.layout!==`matrix`||e.thenBy!==`none`,{message:`a matrix view needs a second grouping`,path:[`thenBy`]}).refine(e=>e.thenBy===`none`||e.groupBy!==`none`&&e.thenBy!==e.groupBy,{message:`the second grouping must follow a first one and differ from it`,path:[`thenBy`]}),H({id:U,authorId:U,targetSpaceId:U,kind:Vc,contextTaskId:U.nullable(),contextIdeaId:U.nullable(),text:R().trim().min(1),status:Hc,reply:R().nullable(),failureReason:R().nullable(),parentRequestId:U.nullable(),commentId:U.nullable(),createdAt:W,updatedAt:W,claimedAt:W.nullable(),claimedByTokenId:U.nullable(),completedAt:W.nullable(),cancelledBy:U.nullable(),stoppedAt:W.nullable(),stoppedBy:U.nullable()}),H({id:U,requestId:U,position:z().int().min(1),text:R().trim().min(1),doneAt:W.nullable(),doneBy:U.nullable(),doneByRequestId:U.nullable()}),H({id:U,requestId:U,seq:z().int().min(1),entityType:Kc,entityId:U,operation:Uc,before:Ls().nullable(),after:Ls().nullable(),summary:R().min(1),createdAt:W,undoneAt:W.nullable(),undoneBy:U.nullable(),tokenId:U.nullable()});var nl=el.extend({assigneeIds:V(U),tagIds:V(U)}),rl=tl;H({entityType:qc,entityId:U,version:z().int().min(1),snapshot:Us([nl,rl]).nullable(),actorType:Wc,actorId:U,requestId:U.nullable(),tokenId:U.nullable(),createdAt:W}),H({id:U,userId:U,type:Gc,taskId:U.nullable(),actorType:Wc,actorId:U.nullable(),requestId:U.nullable(),commentId:U.nullable(),inApp:B(),createdAt:W,readAt:W.nullable(),emailedAt:W.nullable(),emailError:R().nullable()});var il=H({seq:z().int().min(1),spaceId:U.nullable(),userId:U.nullable(),entityType:Kc,entityId:U,taskId:U.nullable(),actorType:Wc.nullable(),at:W}),al=R().min(8,`Le mot de passe doit faire au moins 8 caractères.`),ol=R().trim().min(1,`Le nom affiché est requis.`).max(80),sl=R().trim().min(1,`Le nom de l'espace est requis.`).max(80),cl=H({id:U,email:Jc,displayName:R().nullable(),status:Dc,isAdmin:B()});H({email:R().trim().min(1,`L'adresse e-mail est requise.`),password:R().min(1,`Le mot de passe est requis.`)});var ll=H({user:cl}),ul=H({email:Jc,purpose:Oc,displayName:R().nullable(),expiresAt:W});H({displayName:ol,password:al}),H({displayName:ol}),H({currentPassword:R().min(1,`Le mot de passe actuel est requis.`),newPassword:al});var dl=H({ok:$s(!0)}),fl=H({id:U,name:R(),kind:kc,keyPrefix:Yc,ownerId:U,role:Ac}),pl=H({spaces:V(fl)});H({name:sl,keyPrefix:R().trim().toUpperCase().pipe(Yc).optional()}),H({name:sl});var ml=H({todo:z().int().nonnegative(),doing:z().int().nonnegative(),review:z().int().nonnegative(),done:z().int().nonnegative()}),hl=H({userId:U,email:Jc,displayName:R().nullable(),role:Ac,assignedTasks:ml}),gl=H({id:U,email:Jc,createdAt:W,expiresAt:W,expired:B()}),_l=H({space:fl,members:V(hl),invitations:V(gl)}),vl=H({suggestions:V(H({userId:U,email:Jc,displayName:R().nullable(),sharedSpaces:V(R())}))});H({email:R().trim().toLowerCase().min(1,`L'adresse e-mail est requise.`).pipe(ps(`Adresse e-mail invalide.`))});var yl=H({path:R().min(1),expiresAt:W}),bl=H({emailSent:B(),reason:R().nullable()}),xl=Gs(`outcome`,[H({outcome:$s(`member_added`),member:hl}),H({outcome:$s(`invited`),invitation:gl,link:yl,email:bl})]),Sl=H({invitation:gl,link:yl.nullable(),email:bl}),Cl=H({invitations:V(H({id:U,spaceId:U,spaceName:R(),invitedByName:R(),createdAt:W,expiresAt:W}))}),wl=R().trim().min(1,`Le titre est requis.`).max(200,`Le titre dépasse 200 caractères.`),Tl=R().trim().min(1,`Un tag ne peut pas être vide.`).max(40,`Un tag dépasse 40 caractères.`),El=H({userId:U,displayName:R().nullable(),email:Jc}),Dl=H({id:U,name:R()}),Ol=H({done:z().int().min(0),total:z().int().min(0)}),kl=H({total:z().int().min(0),verified:z().int().min(0),ok:z().int().min(0),ko:z().int().min(0),blocked:z().int().min(0),untested:z().int().min(0)}),Al=H({id:U,key:R(),parentId:U.nullable(),depth:z().int(),type:jc,title:R(),description:R(),status:Nc,priority:Fc,position:Xc,assigneeIds:V(U),tagIds:V(U),subtasks:Ol,test:kl.nullable(),get children(){return V(Al)}});H({type:jc.optional(),priority:Fc.optional(),assignee:U.optional(),tag:U.optional()});var jl=z().int().min(0),Ml=H({byStatus:Ys(Nc,jl),remainingByPriority:Ys(Fc,jl)}),Nl=H({spaceId:U,members:V(El),tags:V(Dl),tasks:V(Al),progress:Ml}),Pl=H({id:U,key:R(),spaceId:U,parentId:U.nullable(),depth:z().int(),type:jc,title:R(),description:R(),status:Nc,priority:Fc,assigneeIds:V(U),tagIds:V(U),testedTaskId:U.nullable(),createdBy:U,createdAt:W,updatedAt:W,version:z().int()}),Fl=H({id:U,key:R(),title:R()});H({spaceId:U.optional()}).strict();var Il=H({id:U,text:R(),done:B(),position:Xc}),Ll=H({id:U,text:R(),doneAt:W.nullable(),doneByName:R().nullable(),doneByRequestId:U.nullable()}),Rl=H({id:U,authorId:U,authorName:R(),body:R(),createdAt:W,editedAt:W.nullable(),byAgent:B(),agentRequest:H({id:U,status:Hc,failureReason:R().nullable(),stopped:B(),openFollowUps:z().int().min(0),canCancel:B(),canRelaunch:B()}).nullable(),replyTo:H({commentId:U,authorName:R(),excerpt:R()}).nullable(),reply:H({requestId:U,followUps:V(Ll),liveActions:z().int().min(0),canUndo:B()}).nullable()}),zl=H({id:U,filename:R(),mime:R(),size:z().int(),uploaderId:U,createdAt:W}),Bl=H({id:U,text:R(),position:Xc}),Vl=H({checkpointId:U,result:Rc,comment:R(),updatedAt:W}),Hl=H({id:U,testerId:U,testerName:R(),text:R(),submittedAt:W,requestId:U.nullable(),requestStatus:Hc.nullable()}),Ul=H({userId:U,results:V(Vl),draft:R()}),Wl=H({userId:U,name:R(),results:V(Vl)}),Gl=H({checkpoints:V(Bl),summary:kl,testers:V(Ul),pastTesters:V(Wl),reviews:V(Hl)}),Kl=H({task:Pl,ancestors:V(Fl),testedTask:Fl.nullable(),children:V(Al),checklist:V(Il),test:Gl.nullable(),comments:V(Rl),attachments:V(zl),members:V(El),tags:V(Dl),agentEdit:H({actionId:U,at:W}).nullable()});H({title:wl,parentId:U.nullable().optional(),status:Nc.optional(),type:jc.optional(),priority:Fc.optional(),description:R().optional()}),H({title:wl.optional(),description:R().optional(),status:Nc.optional(),priority:Fc.optional(),type:jc.optional(),parentId:U.nullable().optional(),testedTaskId:U.nullable().optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),`Aucune modification demandée.`),H({status:Nc,afterId:U.nullable()}),H({userIds:V(U)}),H({names:V(Tl)});var ql=R().trim().min(1,`L'élément de checklist est vide.`).max(500);H({text:ql}),H({text:ql.optional(),done:B().optional()}).refine(e=>e.text!==void 0||e.done!==void 0,`Aucune modification demandée.`),H({afterId:U.nullable()}),H({text:R().trim().min(1,`Le point de vérification est vide.`).max(500)});var Jl=2e3;H({result:Rc.optional(),comment:R().trim().max(Jl,`Le commentaire dépasse ${Jl} caractères.`).optional()}).refine(e=>e.result!==void 0||e.comment!==void 0,`Aucune modification demandée.`);var Yl=1e4;H({text:R().max(Yl,`La review dépasse ${Yl} caractères.`)});var Xl=H({draft:R()});H({text:R().trim().min(1,`La review est vide : décrivez ce que vous avez constaté.`).max(Yl,`La review dépasse ${Yl} caractères.`)}),H({body:R().trim().min(1,`Le commentaire est vide.`).max(1e4)});var Zl=R().regex(/^[\w.+-]+\/[\w.+-]+$/,`Type de fichier invalide.`);H({filename:R().trim().min(1,`Le fichier n'a pas de nom.`).max(255),mime:Zl,contentBase64:R()});var Ql=H({seq:z().int().min(0),changes:V(il)}),$l=H({notifications:V(H({id:U,type:Gc,spaceId:U,taskId:U.nullable(),taskKey:R().nullable(),taskTitle:R().nullable(),requestId:U.nullable(),requestExcerpt:R().nullable(),openFollowUps:z().int().min(0).nullable(),actorType:Wc,actorId:U.nullable(),actorName:R().nullable(),commentExcerpt:R().nullable(),createdAt:W,readAt:W.nullable(),emailedAt:W.nullable(),emailError:R().nullable()})),unreadCount:z().int().min(0),hasMore:B()});H({limit:wc().int().min(1).max(50).default(20),offset:wc().int().min(0).default(0)});var eu=H({unreadCount:z().int().min(0)}),tu=H({notifyAssignApp:B(),notifyAssignEmail:B(),notifyCommentApp:B(),notifyCommentEmail:B(),notifyFollowUpApp:B(),notifyFollowUpEmail:B(),assistantHistory:Zc,email:H({enabled:B(),reason:R().nullable()}),transcription:H({enabled:B(),reason:R().nullable()})});H({notifyAssignApp:B().optional(),notifyAssignEmail:B().optional(),notifyCommentApp:B().optional(),notifyCommentEmail:B().optional(),notifyFollowUpApp:B().optional(),notifyFollowUpEmail:B().optional(),assistantHistory:Zc.optional()}).strict().refine(e=>Object.values(e).some(e=>e!==void 0),`Aucune modification demandée.`);var nu=Qc.extend({custom:B(),email:H({enabled:B(),reason:R().nullable()})});Qc.partial().extend({custom:B()}).strict().refine(e=>e.custom||[e.notifyAssignApp,e.notifyAssignEmail,e.notifyCommentApp,e.notifyCommentEmail,e.notifyFollowUpApp,e.notifyFollowUpEmail].every(e=>e===void 0),`Un espace qui suit les préférences du compte n'a pas de préférences propres.`);var ru=1e4,iu=[`idea`,`remark`,`message`],au=R().trim().min(1,`La demande est vide : écrivez ce que vous voulez confier à l'agent.`).max(ru,`La demande dépasse ${ru} caractères.`);H({kind:Zs(iu),text:au,contextTaskId:U.nullable().optional()}),H({text:au}),H({text:au}),H({done:B()}).strict();var ou=H({id:U,seq:z().int(),entityType:Kc,operation:Uc,label:R(),summary:R(),taskId:U.nullable(),createdAt:W,undoneAt:W.nullable(),undoneByName:R().nullable()}),su=H({tokenId:U,name:R(),ownerName:R(),isRunner:B()}),cu=H({id:U,kind:Vc,status:Hc,text:R(),authorId:U,authorName:R(),authorEmail:R(),targetSpaceId:U,targetSpaceName:R(),contextTask:Fl.nullable(),reply:R().nullable(),followUps:V(Ll),failureReason:R().nullable(),parent:H({id:U,text:R(),openFollowUps:z().int().min(0)}).nullable(),canFollowUp:B(),createdAt:W,updatedAt:W,claimedAt:W.nullable(),agent:su.nullable(),completedAt:W.nullable(),cancelledByName:R().nullable(),canEdit:B(),stoppedByName:R().nullable(),canStop:B(),canRelaunch:B(),canUndo:B(),actions:V(ou)}),lu=H({at:W,message:R()}),uu=H({requests:V(cu),pendingCount:z().int().min(0),agents:V(su.extend({lastUsedAt:W.nullable(),listening:B()})),runnerAllowed:B(),runnerDisabledReason:R().nullable(),runnerFailure:lu.nullable(),runnerSession:H({startedAt:W}).nullable()}),du=H({versions:V(H({version:z().int(),createdAt:W,actorType:Wc,actorName:R(),requestId:U.nullable(),changes:V(R()),current:B()}))});H({filename:R().trim().min(1,`L'enregistrement n'a pas de nom.`).max(255),mime:Zl,contentBase64:R()});var fu=H({text:R()}),pu=H({id:U,name:R(),kind:kc,keyPrefix:R(),runnerAllowed:B(),hasInstructions:B(),members:V(H({id:U,name:R(),email:Jc}))}),mu=H({id:U,email:Jc,displayName:R().nullable(),status:Dc,isAdmin:B(),spaces:V(pu)}),hu=H({enabled:B(),disabledReason:R().nullable()}),gu=H({users:V(mu),allowedCount:z().int().min(0),spaceCount:z().int().min(0),runner:hu}),_u=H({pendingCount:z().int().min(1)}),vu=H({abortedRequests:z().int().min(0)}),yu=H({killed:z().int().min(0),remaining:z().int().min(0),abortedRequests:z().int().min(0)});H({allowed:B()}).strict();var bu=H({maxTurns:z().int().min(1).max(500),maxMinutes:z().int().min(1).max(120),maxBudgetUsd:z().positive().max(1e3).nullable()}).strict(),xu=Zs([`completed`,`failed`,`stopped`,`timeout`,`max_turns`,`max_budget`]),Su=H({id:U,spaceId:U.nullable(),spaceName:R(),startedAt:W,endedAt:W,outcome:xu,model:R().nullable(),turns:z().int().min(0).nullable(),costUsd:z().min(0).nullable(),inputTokens:z().int().min(0),outputTokens:z().int().min(0),cacheReadTokens:z().int().min(0),cacheCreationTokens:z().int().min(0)});H({days:wc().int().min(1).max(90).default(14)});var Cu=H({days:z().int().min(1),sessions:V(Su)}),wu=H({text:R(),updatedAt:W,updatedByName:R().nullable()}),Tu=H({instructions:wu.nullable()}),Eu=H({instructions:wu.nullable(),site:wu.nullable(),canEdit:B()});H({text:R().max($c)}).strict();var Du=3650,Ou=`org_`,ku=Zs([`active`,`inactive`,`expired`,`revoked`]);H({name:R().trim().min(1,`Le nom du jeton est requis.`).max(80,`Le nom du jeton dépasse 80 caractères.`),spaceId:U,expiresInDays:z().int().min(1,`Durée de validité invalide.`).max(Du,`Durée de validité invalide.`).nullable()});var Au=H({id:U,name:R(),prefix:R(),space:H({id:U,name:R(),kind:kc}),state:ku,createdAt:W,lastUsedAt:W.nullable(),expiresAt:W.nullable(),revokedAt:W.nullable()}),ju=H({tokens:V(Au)}),Mu=H({token:Au,value:R().startsWith(Ou),mcpJson:R()}),Nu=5e3,Pu=R().trim().min(1,`L'idée est vide : écrivez-la avant de l'ajouter.`).max(Nu,`L'idée dépasse ${Nu} caractères.`),Fu=H({id:U,text:R(),origin:zc,authorId:U,authorName:R(),createdAt:W,archivedAt:W.nullable(),promotedTask:Fl.nullable(),pendingPromotion:H({requestId:U,status:Zs([`pending`,`processing`])}).nullable()}),Iu=H({ideas:V(Fu),activeCount:z().int().min(0)});H({text:Pu}),H({archived:B()}),H({title:wl,type:jc,priority:Fc});var Lu=H({name:R().trim().min(1,`Donnez un nom à la vue.`).max(40,`Le nom d'une vue dépasse 40 caractères.`),layout:Ic,groupBy:Lc,thenBy:Lc,showEmptyGroups:B(),statuses:V(Nc),priorities:V(Fc),assigneeIds:V(U),unassigned:B()}),Ru=Lu.extend({id:U}),zu=H({views:V(Ru)});Lu.strict(),Lu.partial().strict().refine(e=>Object.values(e).some(e=>e!==void 0),`Aucune modification demandée.`);var Bu=class extends Error{status;constructor(e,t){super(t),this.name=`ApiError`,this.status=e}},Vu=new Set;function Hu(e){return Vu.add(e),()=>Vu.delete(e)}async function G(e,t,n,r={}){let i,a=r.body!==void 0;try{i=await fetch(`api/${t}`,{method:e,headers:a?{Accept:`application/json`,"Content-Type":`application/json`}:{Accept:`application/json`},body:a?JSON.stringify(r.body):r.form,credentials:`same-origin`})}catch(e){throw new Bu(0,`Serveur injoignable : ${e instanceof Error?e.message:String(e)}`)}let o=await i.json().catch(()=>null);if(!i.ok){let e=o?.error,t=i.headers.get(Tc)===`upstream`;throw i.status===401&&r.authenticated!==!1&&!t&&Vu.forEach(e=>e()),new Bu(i.status,typeof e==`string`?e:`Erreur HTTP ${i.status}`)}let s=n.safeParse(o);if(!s.success)throw new Bu(i.status,`Réponse inattendue du serveur pour ${e} api/${t}.`);return s.data}var K=encodeURIComponent,Uu=()=>G(`GET`,`health`,Ec,{authenticated:!1}),Wu=()=>G(`GET`,`auth/me`,ll,{authenticated:!1}),Gu=(e,t)=>G(`POST`,`auth/login`,ll,{body:{email:e,password:t},authenticated:!1}),Ku=()=>G(`POST`,`auth/logout`,dl,{authenticated:!1}),qu=e=>G(`GET`,`access-links/${K(e)}`,ul,{authenticated:!1}),Ju=(e,t)=>G(`POST`,`access-links/${K(e)}`,ll,{body:t,authenticated:!1}),Yu=async()=>(await G(`GET`,`spaces`,pl)).spaces,Xu=e=>G(`POST`,`spaces`,fl,{body:e}),Zu=(e,t)=>G(`PATCH`,`spaces/${K(e)}`,fl,{body:{name:t}}),Qu=e=>G(`DELETE`,`spaces/${K(e)}`,dl),$u=e=>G(`POST`,`spaces/${K(e)}/leave`,dl),ed=e=>G(`GET`,`spaces/${K(e)}/members`,_l),td=async e=>(await G(`GET`,`spaces/${K(e)}/member-suggestions`,vl)).suggestions,nd=(e,t)=>G(`DELETE`,`spaces/${K(e)}/members/${K(t)}`,dl),rd=(e,t)=>G(`POST`,`spaces/${K(e)}/invitations`,xl,{body:{email:t}}),id=(e,t)=>G(`POST`,`spaces/${K(e)}/invitations/${K(t)}/resend`,Sl),ad=(e,t)=>G(`DELETE`,`spaces/${K(e)}/invitations/${K(t)}`,dl),od=async()=>(await G(`GET`,`invitations`,Cl)).invitations,sd=e=>G(`POST`,`invitations/${K(e)}/accept`,fl),cd=e=>G(`POST`,`invitations/${K(e)}/decline`,dl);function ld(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!==void 0&&t.set(n,r);let n=t.toString();return n?`?${n}`:``}var ud=(e,t={})=>G(`GET`,`spaces/${K(e)}/tasks${ld(t)}`,Nl),dd=(e,t)=>G(`POST`,`spaces/${K(e)}/tasks`,Pl,{body:t}),fd=e=>G(`GET`,`tasks/${K(e)}`,Kl),pd=(e,t)=>G(`GET`,`task-keys/${K(e)}${t?`?spaceId=${encodeURIComponent(t)}`:``}`,Fl),md=(e,t)=>G(`PATCH`,`tasks/${K(e)}`,Pl,{body:t}),hd=e=>G(`DELETE`,`tasks/${K(e)}`,dl),gd=(e,t,n)=>G(`POST`,`tasks/${K(e)}/move`,Pl,{body:{status:t,afterId:n}}),_d=(e,t)=>G(`PUT`,`tasks/${K(e)}/assignees`,Pl,{body:{userIds:t}}),vd=(e,t)=>G(`PUT`,`tasks/${K(e)}/tags`,Pl,{body:{names:t}}),yd=(e,t)=>G(`POST`,`tasks/${K(e)}/checklist`,Il,{body:{text:t}}),bd=(e,t)=>G(`PATCH`,`checklist/${K(e)}`,Il,{body:t}),xd=e=>G(`DELETE`,`checklist/${K(e)}`,dl),Sd=(e,t)=>G(`POST`,`checklist/${K(e)}/move`,Il,{body:{afterId:t}}),Cd=(e,t)=>G(`POST`,`tasks/${K(e)}/checkpoints`,Bl,{body:{text:t}}),wd=(e,t)=>G(`PATCH`,`checkpoints/${K(e)}`,Bl,{body:{text:t}}),Td=e=>G(`DELETE`,`checkpoints/${K(e)}`,dl),Ed=(e,t)=>G(`POST`,`checkpoints/${K(e)}/move`,Bl,{body:{afterId:t}}),Dd=(e,t)=>G(`PUT`,`checkpoints/${K(e)}/result`,Vl,{body:t}),Od=(e,t)=>G(`PUT`,`tasks/${K(e)}/review`,Xl,{body:{text:t}}),kd=(e,t)=>G(`POST`,`tasks/${K(e)}/review/submit`,Hl,{body:{text:t}}),Ad=(e,t)=>G(`POST`,`tasks/${K(e)}/comments`,Rl,{body:{body:t}}),jd=(e,t)=>G(`PATCH`,`comments/${K(e)}`,Rl,{body:{body:t}}),Md=e=>G(`DELETE`,`comments/${K(e)}`,dl);function Nd(e,t){let n=new FormData;return n.append(`file`,t,t.name),G(`POST`,`tasks/${K(e)}/attachments`,zl,{form:n})}var Pd=e=>`api/attachments/${K(e)}`,Fd=e=>G(`DELETE`,`attachments/${K(e)}`,dl),Id=(e,t=0)=>G(`GET`,`notifications?limit=${e}&offset=${t}`,$l),Ld=e=>G(`POST`,`notifications/${K(e)}/read`,eu),Rd=()=>G(`POST`,`notifications/read-all`,eu),zd=e=>G(`PATCH`,`profile`,ll,{body:{displayName:e}}),Bd=(e,t)=>G(`POST`,`profile/password`,dl,{body:{currentPassword:e,newPassword:t}}).then(()=>void 0),Vd=()=>G(`GET`,`settings`,tu),Hd=e=>G(`PUT`,`settings`,tu,{body:e}),Ud=e=>G(`GET`,`spaces/${e}/notification-settings`,nu),Wd=(e,t)=>G(`PUT`,`spaces/${e}/notification-settings`,nu,{body:t}),Gd=()=>G(`GET`,`tokens`,ju),Kd=e=>G(`POST`,`tokens`,Mu,{body:e}),qd=e=>G(`POST`,`tokens/${K(e)}/revoke`,Au),Jd=()=>G(`GET`,`admin/spaces`,gu),Yd=(e,t)=>G(`PUT`,`admin/spaces/${K(e)}/runner`,pu,{body:{allowed:t}}),Xd=e=>G(`POST`,`spaces/${K(e)}/runner/run`,_u),Zd=e=>G(`POST`,`spaces/${K(e)}/runner/stop`,vu),Qd=()=>G(`POST`,`admin/runner/kill-all`,yu),$d=()=>G(`GET`,`admin/runner/settings`,bu),ef=e=>G(`PUT`,`admin/runner/settings`,bu,{body:e}),tf=()=>G(`GET`,`admin/runner/usage`,Cu),nf=()=>G(`GET`,`admin/agent-instructions`,Tu),rf=e=>G(`PUT`,`admin/agent-instructions`,Tu,{body:{text:e}}),af=e=>G(`GET`,`spaces/${K(e)}/agent-instructions`,Eu),of=(e,t)=>G(`PUT`,`spaces/${K(e)}/agent-instructions`,Eu,{body:{text:t}}),sf=e=>G(`GET`,`spaces/${K(e)}/requests`,uu),cf=(e,t)=>G(`POST`,`spaces/${K(e)}/requests`,cu,{body:t}),lf=(e,t)=>G(`PATCH`,`requests/${K(e)}`,cu,{body:{text:t}}),uf=e=>G(`POST`,`requests/${K(e)}/cancel`,cu),df=e=>G(`POST`,`requests/${K(e)}/stop`,cu),ff=e=>G(`POST`,`requests/${K(e)}/relaunch`,cu),pf=e=>G(`POST`,`requests/${K(e)}/undo`,cu),mf=(e,t)=>G(`POST`,`requests/${K(e)}/suites`,cu,{body:{text:t}}),hf=(e,t)=>G(`PUT`,`follow-ups/${K(e)}`,cu,{body:{done:t}}),gf=e=>G(`POST`,`agent-actions/${K(e)}/undo`,cu),_f=e=>G(`GET`,`tasks/${K(e)}/versions`,du),vf=(e,t)=>G(`POST`,`tasks/${K(e)}/versions/${t}/restore`,du),yf=e=>G(`GET`,`spaces/${K(e)}/views`,zu),bf=(e,t)=>G(`POST`,`spaces/${K(e)}/views`,Ru,{body:t}),xf=(e,t)=>G(`PATCH`,`views/${K(e)}`,Ru,{body:t}),Sf=e=>G(`DELETE`,`views/${K(e)}`,dl),Cf=e=>G(`GET`,`spaces/${K(e)}/ideas`,Iu),wf=(e,t)=>G(`POST`,`spaces/${K(e)}/ideas`,Fu,{body:{text:t}}),Tf=(e,t)=>G(`PATCH`,`ideas/${K(e)}`,Fu,{body:{archived:t}}),Ef=(e,t)=>G(`POST`,`ideas/${K(e)}/promote`,Fu,{body:t}),Df=e=>G(`POST`,`ideas/${K(e)}/delegate`,Fu);async function Of(e,t){let n=new FormData;return n.append(`file`,e,t),(await G(`POST`,`transcribe`,fu,{form:n})).text}var kf=e=>G(`GET`,e===null?`changes`:`changes?since=${e}`,Ql);function q(e){return e instanceof Error?e.message:String(e)}var Af={dashboard:`#/tableau-de-bord`,ideas:`#/idees`,agent:`#/agent`,settings:`#/parametres`,"space-settings":`#/espace`,administration:`#/administration`,menu:`#/menu`},jf=`#/connexion`;function Mf(e){return`#/task/${encodeURIComponent(e)}`}function Nf(e){return`#/agent/demande/${encodeURIComponent(e)}`}function Pf(e,t){return`#/cle/${encodeURIComponent(e)}${t?`/${encodeURIComponent(t)}`:``}`}function Ff(e){let t=e.replace(/^#/,``),n=/^\/activation\/([A-Za-z0-9_-]+)$/.exec(t);if(n)return{name:`activation`,token:n[1]};let r=/^\/task\/([^/]+)$/.exec(t);if(r)return{name:`task`,id:decodeURIComponent(r[1])};let i=/^\/cle\/([^/]+)(?:\/([^/]+))?$/.exec(t);if(i)return{name:`task-key`,key:decodeURIComponent(i[1]),spaceId:i[2]?decodeURIComponent(i[2]):null};if(t===`/connexion`)return{name:`login`};if(t===`/idees`)return{name:`ideas`};if(t===`/agent`)return{name:`agent`,requestId:null};let a=/^\/agent\/demande\/([^/]+)$/.exec(t);return a?{name:`agent`,requestId:decodeURIComponent(a[1])}:t===`/parametres`?{name:`settings`}:t===`/espace`?{name:`space-settings`}:t===`/administration`?{name:`administration`}:t===`/menu`?{name:`menu`}:{name:`dashboard`}}function If(e){return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)}function Lf(){return Ff((0,v.useSyncExternalStore)(If,()=>window.location.hash))}function Rf(e){window.location.hash!==e&&(window.location.hash=e)}var zf=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},Bf=(e=>e?zf(e):zf),Vf=e=>e;function Hf(e,t=Vf){let n=v.useSyncExternalStore(e.subscribe,v.useCallback(()=>t(e.getState()),[e,t]),v.useCallback(()=>t(e.getInitialState()),[e,t]));return v.useDebugValue(n),n}var Uf=e=>{let t=Bf(e),n=e=>Hf(t,e);return Object.assign(n,t),n},Wf=(e=>e?Uf(e):Uf),Gf=Wf(e=>({status:`checking`,user:null,accountsExist:!0,error:null,init:async()=>{try{e({accountsExist:(await Uu()).accountsExist,error:null})}catch(t){e({status:`anonymous`,error:q(t)});return}try{let{user:t}=await Wu();e({status:`authenticated`,user:t})}catch(t){t instanceof Bu&&t.status===401?e({status:`anonymous`,user:null}):e({status:`anonymous`,user:null,error:q(t)})}},login:async(t,n)=>{let{user:r}=await Gu(t,n);e({status:`authenticated`,user:r,accountsExist:!0,error:null})},activate:async(t,n,r)=>{let{user:i}=await Ju(t,{displayName:n,password:r});e({status:`authenticated`,user:i,accountsExist:!0,error:null})},logout:async()=>{await Ku(),e({status:`anonymous`,user:null})},rename:async t=>{let{user:n}=await zd(t);e({user:n})},expire:()=>e({status:`anonymous`,user:null})})),J=`organizer.currentSpaceId`;function Kf(){try{return window.localStorage.getItem(J)}catch{return null}}function qf(e){try{window.localStorage.setItem(J,e)}catch{}}function Jf(e,t){return t&&e.some(e=>e.id===t)?t:e[0]?.id??null}var Yf=Wf((e,t)=>({spaces:[],currentSpaceId:null,loading:!1,error:null,load:async()=>{e({loading:!0});try{let n=await Yu();e({spaces:n,currentSpaceId:Jf(n,t().currentSpaceId??Kf()),loading:!1,error:null})}catch(t){e({loading:!1,error:q(t)})}},select:t=>{qf(t),e({currentSpaceId:t})},create:async e=>{let n=await Xu(e);return await t().load(),t().select(n.id),n},rename:async(e,n)=>{await Zu(e,n),await t().load()},remove:async n=>{await Qu(n),e({currentSpaceId:null}),await t().load()},leave:async n=>{await $u(n),e({currentSpaceId:null}),await t().load()},reset:()=>e({spaces:[],currentSpaceId:null,error:null})}));function Xf(){return Yf(e=>e.spaces.find(t=>t.id===e.currentSpaceId)??null)}var Zf=Wf((e,t)=>({invitations:[],error:null,load:async()=>{try{e({invitations:await od(),error:null})}catch(t){e({error:q(t)})}},accept:async n=>{e({error:null});try{let e=await sd(n);await Yf.getState().load(),Yf.getState().select(e.id)}catch(t){e({error:q(t)})}await t().load()},decline:async n=>{e({error:null});try{await cd(n)}catch(t){e({error:q(t)})}await t().load()},reset:()=>e({invitations:[],error:null})})),Qf=Wf((e,t)=>({items:[],unreadCount:0,hasMore:!1,error:null,load:async()=>{try{let n=await Id(Math.max(20,t().items.length));e({items:n.notifications,unreadCount:n.unreadCount,hasMore:n.hasMore,error:null})}catch(t){e({error:q(t)})}},loadMore:async()=>{try{let n=await Id(20,t().items.length);e({items:[...t().items,...n.notifications],unreadCount:n.unreadCount,hasMore:n.hasMore,error:null})}catch(t){e({error:q(t)})}},markRead:async n=>{let r=new Date().toISOString();e({items:t().items.map(e=>e.id===n&&e.readAt===null?{...e,readAt:r}:e)});try{let{unreadCount:t}=await Ld(n);e({unreadCount:t,error:null})}catch(n){e({error:q(n)}),await t().load()}},markAllRead:async()=>{try{let{unreadCount:n}=await Rd();e({unreadCount:n,error:null}),await t().load()}catch(t){e({error:q(t)})}},reset:()=>e({items:[],unreadCount:0,hasMore:!1,error:null})})),$f=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function ep(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:$f(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var tp=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},np=e=>{let t=tp(e);return t.charAt(0).toUpperCase()+t.slice(1)},rp=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ip={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function ap(e){return e!=null}function op(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??ip.width,a=e.size??e.height??ip.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?rp(...c):rp(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??ip[`stroke-width`])*Number(e.size??e.width??ip.width)/Number(t.size??t.width??ip.width):t.strokeWidth??ip[`stroke-width`];return[`svg`,{...Object.entries(ip).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&ap(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&ap(t.width)&&{[r(`width`)]:t.width},...`height`in t&&ap(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function sp(e,t={}){return op(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var cp=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},lp=(0,v.createContext)({}),up=()=>(0,v.useContext)(lp),dp=(0,v.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:y=``}=up()??{},b=!!c||cp(d),[x,S,C=[]]=sp(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:rp(y,s),hasA11yProp:b,attributes:d});return(0,v.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function Y(e,t=[],n=[]){let r=typeof e==`string`?ep(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(dp,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=np(r.name)),i}var fp={name:`archive-restore`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h2`,key:`tvwodi`}],[`path`,{d:`M20 8v11a2 2 0 0 1-2 2h-2`,key:`1gkqxj`}],[`path`,{d:`m9 15 3-3 3 3`,key:`1pd0qc`}],[`path`,{d:`M12 12v9`,key:`192myk`}]]};fp.node;var pp=Y(fp),mp={name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]};mp.node;var hp=Y(mp),gp={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};gp.node;var _p=Y(gp),vp={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};vp.node;var yp=Y(vp),bp={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};bp.node;var xp=Y(bp),Sp={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Sp.node;var Cp=Y(Sp),wp={name:`at-sign`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`,key:`7n84p3`}]]};wp.node;var Tp=Y(wp),Ep={name:`ban`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]};Ep.node;var Dp=Y(Ep),Op={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]};Op.node;var kp=Y(Op),Ap={name:`bot-message-square`,size:24,node:[[`path`,{d:`M12 6V2H8`,key:`1155em`}],[`path`,{d:`M15 11v2`,key:`i11awn`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 16a2 2 0 0 1-2 2H8.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 4 20.286V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2z`,key:`11gyqh`}],[`path`,{d:`M9 11v2`,key:`1ueba0`}]]};Ap.node;var jp=Y(Ap),Mp={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};Mp.node;var Np=Y(Mp),Pp={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Pp.node;var Fp=Y(Pp),Ip={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Ip.node;var Lp=Y(Ip),Rp={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Rp.node;var zp=Y(Rp),Bp={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};Bp.node;var Vp=Y(Bp),Hp={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Hp.node;var Up=Y(Hp),Wp={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Wp.node;var Gp=Y(Wp),Kp={name:`circle-user`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662`,key:`154egf`}]],aliases:[`user-circle`]};Kp.node;var qp=Y(Kp),Jp={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};Jp.node;var Yp=Y(Jp),Xp={name:`clipboard-check`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m9 14 2 2 4-4`,key:`df797q`}]]};Xp.node;var Zp=Y(Xp),Qp={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Qp.node;var $p=Y(Qp),em={name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]};em.node;var tm=Y(em),nm={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};nm.node;var rm=Y(nm),im={name:`corner-down-right`,size:24,node:[[`path`,{d:`m15 10 5 5-5 5`,key:`qqa56n`}],[`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`,key:`z08zvw`}]]};im.node;var am=Y(im),om={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};om.node;var sm=Y(om),cm={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};cm.node;var lm=Y(cm),um={name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]};um.node;var dm=Y(um),fm={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};fm.node;var pm=Y(fm),mm={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};mm.node;var hm=Y(mm),gm={name:`grip-vertical`,size:24,node:[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]};gm.node;var _m=Y(gm),vm={name:`hourglass`,size:24,node:[[`path`,{d:`M5 22h14`,key:`ehvnwv`}],[`path`,{d:`M5 2h14`,key:`pdyrp9`}],[`path`,{d:`M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22`,key:`1d314k`}],[`path`,{d:`M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2`,key:`1vvvr6`}]]};vm.node;var ym=Y(vm),bm={name:`layout-dashboard`,size:24,node:[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]};bm.node;var xm=Y(bm),Sm={name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]};Sm.node;var Cm=Y(Sm),wm={name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]};wm.node;var Tm=Y(wm),Em={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};Em.node;var Dm=Y(Em),Om={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};Om.node;var km=Y(Om),Am={name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]};Am.node;var jm=Y(Am),Mm={name:`list-tree`,size:24,node:[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]};Mm.node;var Nm=Y(Mm),Pm={name:`list`,size:24,node:[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]};Pm.node;var Fm=Y(Pm),Im={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Im.node;var Lm=Y(Im),Rm={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};Rm.node;var zm=Y(Rm),Bm={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};Bm.node;var Vm=Y(Bm),Hm={name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]};Hm.node;var Um=Y(Hm),Wm={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};Wm.node;var Gm=Y(Wm),Km={name:`message-square-text`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]};Km.node;var qm=Y(Km),Jm={name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]};Jm.node;var Ym=Y(Jm),Xm={name:`messages-square`,size:24,node:[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]};Xm.node;var Zm=Y(Xm),Qm={name:`mic`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]};Qm.node;var $m=Y(Qm),eh={name:`octagon-x`,size:24,node:[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-octagon`]};eh.node;var th=Y(eh),nh={name:`paperclip`,size:24,node:[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]};nh.node;var rh=Y(nh),ih={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};ih.node;var ah=Y(ih),oh={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};oh.node;var sh=Y(oh),ch={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};ch.node;var lh=Y(ch),uh={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};uh.node;var dh=Y(uh),fh={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};fh.node;var ph=Y(fh),mh={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};mh.node;var hh=Y(mh),gh={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};gh.node;var _h=Y(gh),vh={name:`send-horizontal`,size:24,node:[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]],aliases:[`send-horizonal`]};vh.node;var yh=Y(vh),bh={name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]};bh.node;var xh=Y(bh),Sh={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};Sh.node;var Ch=Y(Sh),wh={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};wh.node;var Th=Y(wh),Eh={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};Eh.node;var Dh=Y(Eh),Oh={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};Oh.node;var kh=Y(Oh),Ah={name:`tag`,size:24,node:[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]};Ah.node;var jh=Y(Ah),Mh={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Mh.node;var Nh=Y(Mh),Ph={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};Ph.node;var Fh=Y(Ph),Ih={name:`user-plus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]};Ih.node;var Lh=Y(Ih),Rh={name:`user-minus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]};Rh.node;var zh=Y(Rh),Bh={name:`user-x`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`17`,x2:`22`,y1:`8`,y2:`13`,key:`3nzzx3`}],[`line`,{x1:`22`,x2:`17`,y1:`8`,y2:`13`,key:`1swrse`}]]};Bh.node;var Vh=Y(Bh),Hh={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};Hh.node;var Uh=Y(Hh),Wh={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Wh.node;var Gh=Y(Wh),Kh=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),X=o(((e,t)=>{t.exports=Kh()}))();function qh({children:e}){return(0,X.jsx)(`div`,{className:`auth-page`,children:(0,X.jsxs)(`main`,{className:`auth-card`,children:[(0,X.jsxs)(`div`,{className:`auth-brand`,children:[(0,X.jsx)(`span`,{className:`auth-logo`,"aria-hidden":`true`,children:(0,X.jsx)(km,{size:16})}),(0,X.jsx)(`span`,{className:`auth-brand-name`,children:`mcp-organizer`})]}),e]})})}function Jh({label:e,aside:t,children:n}){return(0,X.jsxs)(`label`,{className:`field`,children:[(0,X.jsxs)(`span`,{className:`field-label-row`,children:[(0,X.jsx)(`span`,{className:`field-label`,children:e}),t]}),n]})}function Yh({token:e}){let t=Gf(e=>e.activate),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(``),[f,p]=(0,v.useState)(null),[m,h]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let t=!1;return qu(e).then(e=>{t||(r(e),s(e.displayName??``))},e=>!t&&a(q(e))),()=>{t=!0}},[e]);async function g(n){if(n.preventDefault(),c.length<8)return p(`Le mot de passe doit faire au moins 8 caractères.`);if(c!==u)return p(`Les deux mots de passe diffèrent.`);h(!0),p(null);try{await t(e,o,c),Rf(Af.dashboard)}catch(e){p(q(e))}finally{h(!1)}}if(i)return(0,X.jsxs)(qh,{children:[(0,X.jsx)(`p`,{className:`form-error`,role:`alert`,children:i}),(0,X.jsx)(`button`,{className:`button button-ghost button-block`,type:`button`,onClick:()=>Rf(jf),children:`Aller à la connexion`})]});if(!n)return(0,X.jsx)(qh,{children:(0,X.jsx)(`p`,{className:`form-help`,children:`Vérification du lien…`})});let _=n.purpose===`invite`;return(0,X.jsx)(qh,{children:(0,X.jsxs)(`form`,{className:`auth-form`,onSubmit:g,noValidate:!0,children:[(0,X.jsxs)(`p`,{className:`auth-intro`,children:[_?`Activez votre compte`:`Choisissez un nouveau mot de passe`,(0,X.jsx)(`span`,{className:`auth-email`,children:n.email})]}),(0,X.jsx)(Jh,{label:`Nom affiché`,children:(0,X.jsx)(`input`,{className:`input`,autoComplete:`name`,placeholder:`Prénom Nom`,value:o,onChange:e=>s(e.target.value),autoFocus:!0})}),(0,X.jsx)(Jh,{label:`Mot de passe`,children:(0,X.jsx)(`input`,{className:`input`,type:`password`,autoComplete:`new-password`,placeholder:`8 caractères minimum`,value:c,onChange:e=>l(e.target.value)})}),(0,X.jsx)(Jh,{label:`Confirmation`,children:(0,X.jsx)(`input`,{className:`input`,type:`password`,autoComplete:`new-password`,placeholder:`Saisissez-le à nouveau`,value:u,onChange:e=>d(e.target.value)})}),f&&(0,X.jsx)(`p`,{className:`form-error`,role:`alert`,children:f}),(0,X.jsx)(`button`,{className:`button button-primary button-block`,type:`submit`,disabled:m,children:m?`Activation…`:_?`Activer mon compte`:`Enregistrer le mot de passe`})]})})}function Xh({command:e}){let t=e.split(` `);return(0,X.jsx)(`code`,{className:`command-line`,children:t.map((e,n)=>(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`span`,{className:`command-word`,children:e}),n<t.length-1&&` `]},n))})}function Zh(){let{login:e,accountsExist:t,error:n}=Gf(),[r,i]=(0,v.useState)(``),[a,o]=(0,v.useState)(``),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(!1);async function d(t){t.preventDefault(),u(!0),c(null);try{await e(r,a),Rf(Af.dashboard)}catch(e){c(q(e))}finally{u(!1)}}return(0,X.jsx)(qh,{children:(0,X.jsxs)(`form`,{className:`auth-form`,onSubmit:d,noValidate:!0,children:[(0,X.jsx)(Jh,{label:`E-mail`,children:(0,X.jsx)(`input`,{className:`input`,type:`email`,autoComplete:`username`,placeholder:`nom@exemple.fr`,value:r,onChange:e=>i(e.target.value),required:!0,autoFocus:!0})}),(0,X.jsx)(Jh,{label:`Mot de passe`,children:(0,X.jsx)(`input`,{className:`input`,type:`password`,autoComplete:`current-password`,placeholder:`Votre mot de passe`,value:a,onChange:e=>o(e.target.value),required:!0})}),(s??n)&&(0,X.jsx)(`p`,{className:`form-error`,role:`alert`,children:s??n}),!t&&!s&&(0,X.jsxs)(`div`,{className:`form-help first-account-help`,children:[(0,X.jsx)(`p`,{children:`Aucun compte n’existe encore. Créez le premier dans le dossier du site cloné :`}),(0,X.jsx)(Xh,{command:`node dist/src/index.js --set-user <email> --name="Prénom Nom"`}),(0,X.jsx)(`p`,{children:`ou avec le paquet npm :`}),(0,X.jsx)(Xh,{command:`npx -y @imenam/mcp-organizer --set-user <email> --name="Prénom Nom"`}),(0,X.jsxs)(`p`,{children:[`ou avec les variables `,`ORGANIZER_ADMIN_EMAIL, ORGANIZER_ADMIN_NAME et ORGANIZER_ADMIN_PASSWORD`,`, puis redémarrez le site.`]})]}),(0,X.jsx)(`button`,{className:`button button-primary button-block`,type:`submit`,disabled:l,children:l?`Connexion…`:`Se connecter`})]})})}var Qh=window.matchMedia(`(max-width: 760px)`);function $h(e){return Qh.addEventListener(`change`,e),()=>Qh.removeEventListener(`change`,e)}function eg(){return(0,v.useSyncExternalStore)($h,()=>Qh.matches)}var tg=Wf((e,t)=>{async function n(n){e({error:null});try{return await n(),await t().reload(),!0}catch(n){return e({error:q(n)}),await t().reload(),!1}}return{spaceId:null,data:null,error:null,load:async n=>{t().spaceId!==n&&e({spaceId:n,data:null,error:null});try{let r=await sf(n);t().spaceId===n&&e({data:r})}catch(r){t().spaceId===n&&e({error:q(r)})}},reload:async()=>{let{spaceId:e,load:n}=t();e&&await n(e)},create:async e=>{let{spaceId:n}=t();if(!n)throw Error(`Aucun espace ouvert.`);await cf(n,e),await t().reload()},update:(e,t)=>n(()=>lf(e,t)),cancel:async e=>void await n(()=>uf(e)),stop:async e=>void await n(()=>df(e)),relaunch:async e=>void await n(()=>ff(e)),undoAction:async e=>void await n(()=>gf(e)),undoBatch:async e=>void await n(()=>pf(e)),createSuite:(e,t)=>n(()=>mf(e,t)),setFollowUp:async(r,i)=>{let{data:a}=t();if(a){let t=i?new Date().toISOString():null,n=a.requests.map(e=>e.followUps.some(e=>e.id===r)?{...e,followUps:e.followUps.map(e=>e.id===r?{...e,doneAt:t,doneByRequestId:null}:e)}:e);e({data:{...a,requests:n}})}await n(()=>hf(r,i))},clearError:()=>e({error:null}),reset:()=>e({spaceId:null,data:null,error:null})}}),ng={todo:`À faire`,doing:`En cours`,review:`En revue`,done:`Terminé`},rg={low:`Basse`,medium:`Moyenne`,high:`Haute`,critical:`Critique`},ig={standard:`Standard`,test:`Test`},ag=Mc,og=Pc,sg=[`ok`,`ko`,`blocked`,`untested`],cg={ok:`OK`,ko:`KO`,blocked:`Bloqué`,untested:`À vérifier`},lg={pending:`soumise`,processing:`en cours de traitement`,done:`traitée par l’agent`,failed:`en échec`,cancelled:`annulée`},ug={todo:{one:`à faire`,many:`à faire`},doing:{one:`en cours`,many:`en cours`},review:{one:`en revue`,many:`en revue`},done:{one:`terminée`,many:`terminées`}};function dg(e){let t=ag.reduce((t,n)=>t+e[n],0);if(t===0)return null;let n=ag.filter(t=>e[t]>0).map(t=>{let n=ug[t];return`${e[t]} ${e[t]===1?n.one:n.many}`});return`${t} ${t===1?`tâche`:`tâches`} (${n.join(`, `)})`}function fg(e){return e===`high`||e===`critical`}function pg(e){return e.displayName??e.email}function mg(e,t){return t.flatMap(t=>e.filter(e=>e.userId===t))}function hg(e,t=Date.now()){let n=Math.floor((t-Date.parse(e))/6e4);if(n<1)return`à l’instant`;if(n<60)return`il y a ${n} min`;let r=Math.floor(n/60);if(r<24)return`il y a ${r} h`;let i=Math.floor(r/24);return i<30?`il y a ${i} j`:new Date(e).toLocaleDateString(`fr-FR`)}function gg(e,t=new Date){let n=new Date(e),r=Math.floor((t.getTime()-n.getTime())/6e4);if(r<1)return`à l’instant`;if(r<60)return`il y a ${r} min`;let i=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1),a=n.toLocaleTimeString(`fr-FR`,{hour:`2-digit`,minute:`2-digit`});return r<1440&&n.getDate()===t.getDate()?`il y a ${Math.floor(r/60)} h`:n>=i&&n.getDate()===i.getDate()?`hier à ${a}`:`${n.toLocaleDateString(`fr-FR`,{day:`numeric`,month:`short`})} à ${a}`}function _g(e){return e<1024?`${e} o`:e<1048576?`${Math.round(e/1024)} Ko`:`${(e/1048576).toFixed(1).replace(`.`,`,`)} Mo`}function vg(e,t,n,r){let i=e.find(e=>e.id===t);if(!i)return e;let a=e.filter(e=>e.id!==t),o={...i,status:n},s=r===null?a.findIndex(e=>e.status===n):a.findIndex(e=>e.id===r)+1;return s<0&&(s=a.length),[...a.slice(0,s),o,...a.slice(s)]}function yg(e,t=new Date){let n=new Date(e);if(n.toDateString()===t.toDateString())return hg(e,t.getTime());let r=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1);return n.toDateString()===r.toDateString()?`hier`:n.toLocaleDateString(`fr-FR`,{day:`numeric`,month:`short`})}var bg=Wf((e,t)=>({spaceId:null,data:null,filters:{},error:null,load:async n=>{t().spaceId!==n&&e({spaceId:n,data:null,filters:{}});try{let r=await ud(n,t().filters);t().spaceId===n&&e({data:r,error:null})}catch(r){t().spaceId===n&&e({error:q(r)})}},reload:async()=>{let{spaceId:e,load:n}=t();e&&await n(e)},setFilters:n=>{e({filters:n}),t().reload()},createTask:async(e,n)=>{let{spaceId:r}=t();r&&(await dd(r,{title:n,...e}),await t().reload())},move:async(n,r,i)=>{let{data:a}=t();a&&e({data:{...a,tasks:vg(a.tasks,n,r,i)}});try{await gd(n,r,i)}catch(t){e({error:`Déplacement refusé : ${q(t)}`})}await t().reload()},regroup:async(n,r)=>{let{data:i}=t();i&&e({data:{...i,tasks:i.tasks.map(e=>e.id===n?{...e,...r}:e)}});try{await md(n,r)}catch(t){e({error:`Déplacement refusé : ${q(t)}`})}await t().reload()},clearError:()=>e({error:null})})),xg=Wf((e,t)=>{async function n(n){e({error:null});try{return await n(),await t().reload(),!0}catch(n){return e({error:q(n)}),await t().reload(),!1}}return{spaceId:null,data:null,error:null,load:async n=>{t().spaceId!==n&&e({spaceId:n,data:null,error:null});try{let r=await Cf(n);t().spaceId===n&&e({data:r})}catch(r){t().spaceId===n&&e({error:q(r)})}},reload:async()=>{let{spaceId:e,load:n}=t();e&&await n(e)},add:e=>{let{spaceId:r}=t();return r?n(()=>wf(r,e)):Promise.resolve(!1)},setArchived:(e,t)=>n(()=>Tf(e,t)),promote:(e,t)=>n(()=>Ef(e,t)),delegate:e=>n(()=>Df(e)),cancelPromotion:e=>n(()=>uf(e)),clearError:()=>e({error:null})}}),Sg=Wf((e,t)=>({taskId:null,data:null,loadError:null,error:null,load:async n=>{t().taskId!==n&&e({taskId:n,data:null,loadError:null,error:null});try{let r=await fd(n);t().taskId===n&&e({data:r,loadError:null})}catch(r){t().taskId===n&&e({loadError:q(r)})}},reload:async()=>{let{taskId:e,load:n}=t();e&&await n(e)},run:async n=>{e({error:null});try{return await n(),await t().reload(),!0}catch(n){return e({error:q(n)}),await t().reload(),!1}},moveChild:async(n,r,i)=>{let{data:a}=t();a&&e({data:{...a,children:vg(a.children,n,r,i)}}),await t().run(()=>gd(n,r,i))},clearError:()=>e({error:null})}));function Cg(e,t){return e.find(e=>e.id===t)??e[0]??null}var wg=Wf((e,t)=>({spaceId:null,views:null,activeId:null,error:null,load:async n=>{t().spaceId!==n&&e({spaceId:n,views:null,activeId:null,error:null});try{let{views:r}=await yf(n);t().spaceId===n&&e({views:r})}catch(r){t().spaceId===n&&e({error:q(r)})}},reload:async()=>{let{spaceId:e,load:n}=t();e&&await n(e)},select:t=>e({activeId:t}),reloadAndShow:async n=>{await t().reload(),t().views?.some(e=>e.id===n)&&e({activeId:n})},create:async n=>{let{spaceId:r}=t();if(!r)return!1;e({error:null});try{let i=await bf(r,n);return await t().reload(),e({activeId:i.id}),!0}catch(t){return e({error:q(t)}),!1}},update:async(n,r)=>{let{views:i}=t();i&&e({views:i.map(e=>e.id===n?{...e,...r}:e),error:null});try{return await xf(n,r),!0}catch(n){return e({error:q(n)}),await t().reload(),!1}},remove:async n=>{e({error:null});try{return await Sf(n),await t().reload(),!0}catch(t){return e({error:q(t)}),!1}},clearError:()=>e({error:null})})),Tg=3e3,Eg=new Set([`space`,`membership`]),Dg=new Set([`notification`,`user_settings`,`board_view`]),Og=new Set([`task`,`tag`,`membership`,`test_checkpoint`,`test_result`]),kg=new Set([`agent_request`,`agent_action`,`follow_up`]),Ag=new Set([`idea`,`agent_request`,`task`]);function jg(e){let t=Gf.getState().user?.id;e.some(e=>Eg.has(e.entityType)||e.userId!==null&&e.userId===t&&!Dg.has(e.entityType))&&Yf.getState().load(),e.some(e=>e.entityType===`notification`)&&Qf.getState().load(),e.some(e=>e.entityType===`invitation`&&e.userId===t)&&Zf.getState().load();let n=wg.getState(),r=e.filter(e=>e.entityType===`board_view`&&e.userId===t);if(n.views&&r.length>0){let e=r.filter(e=>e.actorType===`agent`).at(-1);e?n.reloadAndShow(e.entityId):n.reload()}let i=bg.getState();i.data&&e.some(e=>e.spaceId===i.spaceId&&Og.has(e.entityType))&&i.reload();let a=tg.getState();a.spaceId&&e.some(e=>e.spaceId===a.spaceId&&kg.has(e.entityType))&&a.reload();let o=xg.getState();o.data&&e.some(e=>e.spaceId===o.spaceId&&Ag.has(e.entityType))&&o.reload();let s=Sg.getState();if(s.taskId){let t=s.data?.task.spaceId;e.some(e=>e.taskId===s.taskId||t!==void 0&&e.spaceId===t&&Og.has(e.entityType))&&s.reload()}}function Mg(){(0,v.useEffect)(()=>{let e=null,t=null,n=!1;async function r(){try{let t=await kf(e);if(n)return;e!==null&&t.changes.length>0&&jg(t.changes),e=t.seq}catch(e){console.error(`[mcp-organizer] Polling api/changes failed: ${q(e)}`)}n||(t=setTimeout(()=>void r(),Tg))}return r(),()=>{n=!0,t&&clearTimeout(t)}},[])}var Ng=6e5;function Pg(e){return e!==null&&Date.now()-Date.parse(e)<Ng}function Fg({agents:e}){return e.length===0?(0,X.jsxs)(`p`,{className:`agent-presence`,children:[(0,X.jsx)(`span`,{className:`presence-dot`,"aria-hidden":`true`}),`Aucun agent sur cet espace`,(0,X.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,X.jsx)(`a`,{className:`link-button link-muted`,href:Af.settings,children:`Ajouter un agent`})]}):(0,X.jsx)(`ul`,{className:`agent-presence`,"aria-label":`Agents de l’espace`,children:e.map(e=>{let t=e.lastUsedAt?`dernier passage ${hg(e.lastUsedAt)}`:`jamais passé`;return(0,X.jsxs)(`li`,{className:`agent-presence-item`,title:`Jeton de ${e.ownerName}`,children:[(0,X.jsx)(`span`,{className:e.listening||Pg(e.lastUsedAt)?`presence-dot presence-dot-on`:`presence-dot`,"aria-hidden":`true`}),(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`span`,{className:`agent-presence-name`,children:e.name}),` · `,e.ownerName,` ·`,` `,e.listening?(0,X.jsx)(`span`,{className:`agent-presence-listening`,children:`à l’écoute`}):t]})]},e.tokenId)})})}var Ig=new Set([`de`,`du`,`des`,`la`,`le`,`les`,`l`,`d`,`et`,`a`,`au`,`aux`,`en`,`the`,`of`,`and`]);function Lg(e){return e.normalize(`NFD`).replace(/[̀-ͯ]/g,``).toUpperCase().split(/[^A-Z0-9]+/).filter(e=>e.length>0)}function Rg(e){let t=Lg(e).map(e=>e.replace(/^[0-9]+/,``)).filter(e=>e.length>0),n=t.filter(e=>!Ig.has(e.toLowerCase())),r=n.length>0?n:t;return r.length===0?`ESP`:r.length===1?r[0].slice(0,3).padEnd(2,`X`):r.slice(0,4).map(e=>e[0]).join(``)}function zg(e,t){let n=(e&&e.trim()!==``?e:t.split(`@`)[0]).normalize(`NFD`).replace(/[̀-ͯ]/g,``).split(/[^A-Za-z0-9]+/).filter(e=>e.length>0);return n.length===0?`?`:n.length===1?n[0].slice(0,2).toUpperCase():(n[0][0]+n[1][0]).toUpperCase()}var Bg=[[`#1d2740`,`#93b4ff`],[`#1d2f2a`,`#6ee7b7`],[`#33270f`,`#e3a33b`],[`#2a1f3d`,`#c4a3ff`],[`#3a1d27`,`#fda4bf`]];function Vg(e){let t=0;for(let n of e)t=t*31+n.charCodeAt(0)>>>0;return Bg[t%Bg.length]}function Hg({id:e,displayName:t,email:n,size:r=22}){let[i,a]=Vg(e);return(0,X.jsx)(`span`,{className:`avatar`,style:{background:i,color:a,width:r,height:r,fontSize:Math.round(r*.36)},"aria-hidden":`true`,children:zg(t,n)})}function Ug({members:e,size:t=20}){return e.length===0?null:(0,X.jsx)(`span`,{className:`avatar-stack`,"aria-label":e.map(e=>e.displayName??e.email).join(`, `),children:e.map(e=>(0,X.jsx)(Hg,{id:e.userId,displayName:e.displayName,email:e.email,size:t},e.userId))})}function Wg({space:e}){if(e.kind===`personal`)return(0,X.jsx)(`span`,{className:`space-mark space-mark-personal`,"aria-hidden":`true`,children:(0,X.jsx)(zm,{size:13,strokeWidth:2})});let[t,n]=Vg(e.id);return(0,X.jsx)(`span`,{className:`space-mark`,style:{background:t,color:n},"aria-hidden":`true`,children:e.name.trim().charAt(0).toUpperCase()})}function Gg(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Kg=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qg=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jg={};function Yg(e,t){return((t||Jg).jsx?qg:Kg).test(e)}var Xg=/[ \t\n\f\r]/g;function Zg(e){return typeof e==`object`?e.type===`text`&&Qg(e.value):Qg(e)}function Qg(e){return e.replace(Xg,``)===``}var $g=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};$g.prototype.normal={},$g.prototype.property={},$g.prototype.space=void 0;function e_(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new $g(n,r,t)}function t_(e){return e.toLowerCase()}var n_=class{constructor(e,t){this.attribute=t,this.property=e}};n_.prototype.attribute=``,n_.prototype.booleanish=!1,n_.prototype.boolean=!1,n_.prototype.commaOrSpaceSeparated=!1,n_.prototype.commaSeparated=!1,n_.prototype.defined=!1,n_.prototype.mustUseProperty=!1,n_.prototype.number=!1,n_.prototype.overloadedBoolean=!1,n_.prototype.property=``,n_.prototype.spaceSeparated=!1,n_.prototype.space=void 0;var r_=s({boolean:()=>Z,booleanish:()=>a_,commaOrSpaceSeparated:()=>l_,commaSeparated:()=>c_,number:()=>Q,overloadedBoolean:()=>o_,spaceSeparated:()=>s_}),i_=0,Z=u_(),a_=u_(),o_=u_(),Q=u_(),s_=u_(),c_=u_(),l_=u_();function u_(){return 2**++i_}var d_=Object.keys(r_),f_=class extends n_{constructor(e,t,n,r){let i=-1;if(super(e,t),p_(this,`space`,r),typeof n==`number`)for(;++i<d_.length;){let e=d_[i];p_(this,d_[i],(n&r_[e])===r_[e])}}};f_.prototype.defined=!0;function p_(e,t,n){n&&(e[t]=n)}function m_(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new f_(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[t_(r)]=r,n[t_(a.attribute)]=r}return new $g(t,n,e.space)}var h_=m_({properties:{ariaActiveDescendant:null,ariaAtomic:a_,ariaAutoComplete:null,ariaBusy:a_,ariaChecked:a_,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:s_,ariaCurrent:null,ariaDescribedBy:s_,ariaDetails:null,ariaDisabled:a_,ariaDropEffect:s_,ariaErrorMessage:null,ariaExpanded:a_,ariaFlowTo:s_,ariaGrabbed:a_,ariaHasPopup:null,ariaHidden:a_,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s_,ariaLevel:Q,ariaLive:null,ariaModal:a_,ariaMultiLine:a_,ariaMultiSelectable:a_,ariaOrientation:null,ariaOwns:s_,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:a_,ariaReadOnly:a_,ariaRelevant:null,ariaRequired:a_,ariaRoleDescription:s_,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:a_,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function g_(e,t){return t in e?e[t]:t}function __(e,t){return g_(e,t.toLowerCase())}var v_=m_({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:c_,acceptCharset:s_,accessKey:s_,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alpha:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:s_,autoFocus:Z,autoPlay:Z,blocking:s_,capture:null,charSet:null,checked:Z,cite:null,className:s_,closedBy:null,colorSpace:null,cols:Q,colSpan:Q,command:null,commandFor:null,content:null,contentEditable:a_,controls:Z,controlsList:s_,coords:Q|c_,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:o_,draggable:a_,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:s_,height:Q,hidden:o_,high:Q,href:null,hrefLang:null,htmlFor:s_,httpEquiv:s_,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:s_,itemRef:s_,itemScope:Z,itemType:s_,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Z,optimum:Q,pattern:null,ping:s_,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:s_,required:Z,reversed:Z,rows:Q,rowSpan:Q,sandbox:s_,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootCustomElementRegistry:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shadowRootSerializable:Z,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:a_,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:a_,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:s_,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:a_,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Z,disablePictureInPicture:Z,disableRemotePlayback:Z,exportParts:c_,part:s_,prefix:null,property:null,results:Q,security:null,unselectable:null},space:`html`,transform:__}),y_=m_({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,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`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,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`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,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`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:l_,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:s_,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:c_,g2:c_,glyphName:c_,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:l_,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:s_,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:l_,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:l_,rev:l_,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:l_,requiredFeatures:l_,requiredFonts:l_,requiredFormats:l_,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:l_,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:l_,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:l_,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:g_}),b_=m_({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),x_=m_({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:__}),S_=m_({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),C_={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},w_=/[A-Z]/g,T_=/-[a-z]/g,E_=/^data[-\w.:]+$/i;function D_(e,t){let n=t_(t),r=t,i=n_;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&E_.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(T_,k_);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!T_.test(e)){let n=e.replace(w_,O_);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=f_}return new i(r,t)}function O_(e){return`-`+e.toLowerCase()}function k_(e){return e.charAt(1).toUpperCase()}var A_=e_([h_,v_,b_,x_,S_],`html`),j_=e_([h_,y_,b_,x_,S_],`svg`);function M_(e){return e.join(` `).trim()}var N_=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
64
64
|
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),P_=o(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(N_());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),F_=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),I_=o(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(P_()),i=F_();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),L_=z_(`end`),R_=z_(`start`);function z_(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function B_(e){let t=R_(e),n=L_(e);if(t&&n)return{start:t,end:n}}function V_(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?U_(e.position):`start`in e||`end`in e?U_(e):`line`in e||`column`in e?H_(e):``}function H_(e){return W_(e&&e.line)+`:`+W_(e&&e.column)}function U_(e){return H_(e&&e.start)+`-`+H_(e&&e.end)}function W_(e){return e&&typeof e==`number`?e:1}var G_=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=V_(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};G_.prototype.file=``,G_.prototype.name=``,G_.prototype.reason=``,G_.prototype.message=``,G_.prototype.stack=``,G_.prototype.column=void 0,G_.prototype.line=void 0,G_.prototype.ancestors=void 0,G_.prototype.cause=void 0,G_.prototype.fatal=void 0,G_.prototype.place=void 0,G_.prototype.ruleId=void 0,G_.prototype.source=void 0;var K_=l(I_(),1),q_={}.hasOwnProperty,J_=new Map,Y_=/[A-Z]/g,X_=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Z_=new Set([`td`,`th`]),Q_=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function $_(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=uv(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=lv(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?j_:A_,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=ev(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function ev(e,t,n){if(t.type===`element`)return tv(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return nv(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return iv(e,t,n);if(t.type===`mdxjsEsm`)return rv(e,t);if(t.type===`root`)return av(e,t,n);if(t.type===`text`)return ov(e,t)}function tv(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=j_,e.schema=i),e.ancestors.push(t);let a=gv(e,t.tagName,!1),o=dv(e,t),s=pv(e,t);return X_.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Zg(e)})),sv(e,o,a,t),cv(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function nv(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}_v(e,t.position)}function rv(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);_v(e,t.position)}function iv(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=j_,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:gv(e,t.name,!0),o=fv(e,t),s=pv(e,t);return sv(e,o,a,t),cv(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function av(e,t,n){let r={};return cv(r,pv(e,t)),e.create(t,e.Fragment,r,n)}function ov(e,t){return t.value}function sv(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function cv(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function lv(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function uv(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=R_(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function dv(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&q_.call(t.properties,i)){let a=mv(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Z_.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function fv(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else _v(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else _v(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function pv(e,t){let n=[],r=-1,i=e.passKeys?new Map:J_;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=ev(e,a,o);s!==void 0&&n.push(s)}return n}function mv(e,t,n){let r=D_(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Gg(n):M_(n)),r.property===`style`){let t=typeof n==`object`?n:hv(e,String(n));return e.stylePropertyNameCase===`css`&&(t=vv(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?C_[r.property]||r.property:r.attribute,n]}}function hv(e,t){try{return(0,K_.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new G_("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Q_+`#cannot-parse-style-attribute`,r}}function gv(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Yg(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Yg(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return q_.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);_v(e)}function _v(e,t){let n=new G_("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Q_+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function vv(e){let t={},n;for(n in e)q_.call(e,n)&&(t[yv(n)]=e[n]);return t}function yv(e){let t=e.replace(Y_,bv);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function bv(e){return`-`+e.toLowerCase()}var xv={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},Sv={};function Cv(e,t){let n=t||Sv;return wv(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function wv(e,t,n){if(Ev(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return Tv(e.children,t,n)}return Array.isArray(e)?Tv(e,t,n):``}function Tv(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=wv(e[i],t,n);return r.join(``)}function Ev(e){return!!(e&&typeof e==`object`)}var Dv=document.createElement(`i`);function Ov(e){let t=`&`+e+`;`;Dv.innerHTML=t;let n=Dv.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function kv(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Av(e,t){return e.length>0?(kv(e,e.length,0,t),e):t}var jv={}.hasOwnProperty;function Mv(e){let t={},n=-1;for(;++n<e.length;)Nv(t,e[n]);return t}function Nv(e,t){let n;for(n in t){let r=(jv.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){jv.call(r,a)||(r[a]=[]);let e=i[a];Pv(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Pv(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);kv(e,0,0,r)}function Fv(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function Iv(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var Lv=Jv(/[A-Za-z]/),Rv=Jv(/[\dA-Za-z]/),zv=Jv(/[#-'*+\--9=?A-Z^-~]/);function Bv(e){return e!==null&&(e<32||e===127)}var Vv=Jv(/\d/),Hv=Jv(/[\dA-Fa-f]/),Uv=Jv(/[!-/:-@[-`{-~]/);function $(e){return e!==null&&e<-2}function Wv(e){return e!==null&&(e<0||e===32)}function Gv(e){return e===-2||e===-1||e===32}var Kv=Jv(/\p{P}|\p{S}/u),qv=Jv(/\s/);function Jv(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Yv(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&Rv(e.charCodeAt(n+1))&&Rv(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Xv(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Gv(r)?(e.enter(n),s(r)):t(r)}function s(r){return Gv(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function Zv(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&Gv(t)?(e.enter(r),c(t)):l(t)}function c(t){return Gv(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var Qv={tokenize:$v};function $v(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Xv(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return $(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var ey=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){ty(this,e,t,n,!1)}addBefore(e,t,n){ty(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function ty(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var ny={tokenize:iy},ry={tokenize:ay};function iy(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new ey;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ry,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(ry,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return $(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new ey;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function ay(e,t,n){return Xv(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function oy(e){if(e===null||Wv(e)||qv(e))return 1;if(Kv(e))return 2}function sy(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var cy={name:`attention`,resolveAll:ly,tokenize:uy};function ly(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};dy(o,-a),dy(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=Av(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=Av(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=Av(r,sy(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=Av(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=Av(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),kv(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function uy(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=oy(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=oy(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function dy(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var fy={name:`autolink`,tokenize:py};function py(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Lv(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Rv(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Rv(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Bv(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):zv(t)?(e.consume(t),l):n(t)}function u(e){return Rv(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Rv(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var my={partial:!0,tokenize:hy};function hy(e,t,n){return r;function r(t){return Gv(t)?Xv(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||$(e)?t(e):n(e)}}var gy={continuation:{tokenize:vy},exit:yy,name:`blockQuote`,tokenize:_y};function _y(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Gv(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function vy(e,t,n){let r=this;return i;function i(t){return Gv(t)?Xv(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(gy,t,n)(r)}}function yy(e){e.exit(`blockQuote`)}var by={name:`characterEscape`,tokenize:xy};function xy(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Uv(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Sy={name:`characterReference`,tokenize:Cy};function Cy(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Rv,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Hv,u):(e.enter(`characterReferenceValue`),a=7,o=Vv,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Rv&&!Ov(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var wy={partial:!0,tokenize:Ty};function Ty(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Ey={concrete:!0,name:`codeFenced`,tokenize:Dy};function Dy(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Gv(t)?Xv(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||$(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(wy,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||$(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Gv(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Xv(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||$(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||$(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Gv(t)?Xv(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||$(t)?e.check(wy,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||$(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Gv(t)?Xv(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Gv(t)?Xv(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||$(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var Oy={name:`codeIndented`,tokenize:Ay},ky={partial:!0,tokenize:jy};function Ay(e,t,n){return r;function r(t){return e.enter(`codeIndented`),Zv(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):$(t)?e.attempt(ky,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||$(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function jy(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):$(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):Zv(e,t,a,`linePrefix`,4,4)(o)}function a(e){return $(e)?i(e):n(e)}}var My={name:`codeText`,previous:Py,resolve:Ny,tokenize:Fy};function Ny(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Py(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Fy(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):$(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||$(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var Iy=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Ly(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Ly(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ly(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);Ly(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Ly(this.left,t.reverse())}}}};function Ly(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ry(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Iy(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,zy(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return kv(e,0,1/0,u.slice(0)),!l}function zy(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var By={resolve:Hy,tokenize:Uy},Vy={partial:!0,tokenize:Wy};function Hy(e){return Ry(e),e}function Uy(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):$(t)?e.check(Vy,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Wy(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Xv(e,a,`linePrefix`)}function a(i){if(i===null||$(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Gy(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Bv(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||$(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Wv(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Bv(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Ky(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):$(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||$(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Gv(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function qy(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):$(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Xv(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||$(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Jy(e,t){let n;return r;function r(i){return $(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Gv(i)?Xv(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Yy={name:`definition`,tokenize:Zy},Xy={partial:!0,tokenize:Qy};function Zy(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Ky.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=Iv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Wv(t)?Jy(e,l)(t):l(t)}function l(t){return Gy(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Xy,d,d)(t)}function d(t){return Gv(t)?Xv(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||$(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Qy(e,t,n){return r;function r(t){return Wv(t)?Jy(e,i)(t):n(t)}function i(t){return qy(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Gv(t)?Xv(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||$(e)?t(e):n(e)}}var $y={name:`hardBreakEscape`,tokenize:eb};function eb(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return $(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var tb={name:`headingAtx`,resolve:nb,tokenize:rb};function nb(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};kv(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function rb(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Wv(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||$(n)?(e.exit(`atxHeading`),t(n)):Gv(n)?Xv(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Wv(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var ib=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),ab=[`pre`,`script`,`style`,`textarea`],ob={concrete:!0,name:`htmlFlow`,resolveTo:cb,tokenize:lb},sb={partial:!0,tokenize:ub};function cb(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function lb(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ie):Lv(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Lv(a)?(e.consume(a),i=4,r.interrupt?t:ie):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ie):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return Lv(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Wv(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&ab.includes(l)?(i=1,r.interrupt?t(s):O(s)):ib.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Rv(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return Gv(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||Lv(t)?(e.consume(t),b):Gv(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||Rv(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Gv(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Gv(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||$(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Wv(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Gv(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||$(t)?O(t):Gv(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),ne):t===60&&i===1?(e.consume(t),A):t===62&&i===4?(e.consume(t),ae):t===63&&i===3?(e.consume(t),ie):t===93&&i===5?(e.consume(t),j):$(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(sb,oe,ee)(t)):t===null||$(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),O)}function ee(t){return e.check(wy,k,oe)(t)}function k(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),te}function te(t){return t===null||$(t)?ee(t):(e.enter(`htmlFlowData`),O(t))}function ne(t){return t===45?(e.consume(t),ie):O(t)}function A(t){return t===47?(e.consume(t),o=``,re):O(t)}function re(t){if(t===62){let n=o.toLowerCase();return ab.includes(n)?(e.consume(t),ae):O(t)}return Lv(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),re):O(t)}function j(t){return t===93?(e.consume(t),ie):O(t)}function ie(t){return t===62?(e.consume(t),ae):t===45&&i===2?(e.consume(t),ie):O(t)}function ae(t){return t===null||$(t)?(e.exit(`htmlFlowData`),oe(t)):(e.consume(t),ae)}function oe(n){return e.exit(`htmlFlow`),t(n)}}function ub(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(my,t,n)}}var db={name:`htmlText`,tokenize:fb};function fb(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Lv(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Lv(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):$(t)?(o=d,A(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?ne(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):$(t)?(o=h,A(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?ne(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?ne(t):$(t)?(o=v,A(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):$(t)?(o=y,A(t)):(e.consume(t),y)}function b(e){return e===62?ne(e):y(e)}function x(t){return Lv(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Rv(t)?(e.consume(t),S):C(t)}function C(t){return $(t)?(o=C,A(t)):Gv(t)?(e.consume(t),C):ne(t)}function w(t){return t===45||Rv(t)?(e.consume(t),w):t===47||t===62||Wv(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),ne):t===58||t===95||Lv(t)?(e.consume(t),E):$(t)?(o=T,A(t)):Gv(t)?(e.consume(t),T):ne(t)}function E(t){return t===45||t===46||t===58||t===95||Rv(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):$(t)?(o=D,A(t)):Gv(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ee):$(t)?(o=O,A(t)):Gv(t)?(e.consume(t),O):(e.consume(t),k)}function ee(t){return t===i?(e.consume(t),i=void 0,te):t===null?n(t):$(t)?(o=ee,A(t)):(e.consume(t),ee)}function k(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Wv(t)?T(t):(e.consume(t),k)}function te(e){return e===47||e===62||Wv(e)?T(e):n(e)}function ne(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function A(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),re}function re(t){return Gv(t)?Xv(e,j,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):j(t)}function j(t){return e.enter(`htmlTextData`),o(t)}}var pb={name:`labelEnd`,resolveAll:_b,resolveTo:vb,tokenize:yb},mb={tokenize:bb},hb={tokenize:xb},gb={tokenize:Sb};function _b(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&kv(e,0,e.length,n),e}function vb(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=Av(o,e.slice(i+1,i+r+3)),o=Av(o,[[`enter`,l,t]]),o=Av(o,sy(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=Av(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=Av(o,e.slice(a+1)),o=Av(o,[[`exit`,s,t]]),kv(e,i,e.length,o),e}function yb(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(Iv(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(mb,u,o?u:d)(t):t===91?e.attempt(hb,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(gb,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function bb(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Wv(t)?Jy(e,a)(t):a(t)}function a(t){return t===41?u(t):Gy(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Wv(t)?Jy(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?qy(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Wv(t)?Jy(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function xb(e,t,n){let r=this;return i;function i(t){return Ky.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(Iv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Sb(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var Cb={name:`labelStartImage`,resolveAll:pb.resolveAll,tokenize:wb};function wb(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var Tb={name:`labelStartLink`,resolveAll:pb.resolveAll,tokenize:Eb};function Eb(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var Db={name:`lineEnding`,tokenize:Ob};function Ob(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Xv(e,t,`linePrefix`)}}var kb={name:`thematicBreak`,tokenize:Ab};function Ab(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||$(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Gv(t)?Xv(e,s,`whitespace`)(t):s(t))}}var jb={continuation:{tokenize:Fb},exit:Lb,name:`list`,tokenize:Pb},Mb={partial:!0,tokenize:Rb},Nb={partial:!0,tokenize:Ib};function Pb(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Vv(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(kb,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Vv(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(my,r.interrupt?n:u,e.attempt(Mb,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Gv(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Fb(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(my,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Xv(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Gv(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Nb,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Xv(e,e.attempt(jb,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Ib(e,t,n){let r=this;return Xv(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Lb(e){e.exit(this.containerState.type)}function Rb(e,t,n){let r=this;return Xv(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Gv(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var zb={name:`setextUnderline`,resolveTo:Bb,tokenize:Vb};function Bb(e,t){let n=new ey,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function Vb(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Gv(t)?Xv(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||$(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Hb={tokenize:Ub};function Ub(e){let t=this,n=e.attempt(my,r,e.attempt(this.parser.constructs.flowInitial,i,Xv(e,e.attempt(this.parser.constructs.flow,i,e.attempt(By,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Wb={resolveAll:Jb()},Gb=qb(`string`),Kb=qb(`text`);function qb(e){return{resolveAll:Jb(e===`text`?Yb:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Jb(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Yb(e,t){let n=new ey,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var Xb=s({attentionMarkers:()=>ix,contentInitial:()=>Qb,disable:()=>ax,document:()=>Zb,flow:()=>ex,flowInitial:()=>$b,insideSpan:()=>rx,string:()=>tx,text:()=>nx}),Zb={42:jb,43:jb,45:jb,48:jb,49:jb,50:jb,51:jb,52:jb,53:jb,54:jb,55:jb,56:jb,57:jb,62:gy},Qb={91:Yy},$b={[-2]:Oy,[-1]:Oy,32:Oy},ex={35:tb,42:kb,45:[zb,kb],60:ob,61:zb,95:kb,96:Ey,126:Ey},tx={38:Sy,92:by},nx={[-5]:Db,[-4]:Db,[-3]:Db,33:Cb,38:Sy,42:cy,60:[fy,db],91:Tb,92:[$y,by],93:pb,95:cy,96:My},rx={null:[cy,Wb]},ix={null:[42,95]},ax={null:[]};function ox(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Av(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=sy(a,l.events,l),l.events):[]}function f(e,t){return cx(p(e),t)}function p(e){return sx(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){$(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&kv(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function sx(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function cx(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
65
65
|
`;break;case-3:o=`\r
|
|
66
66
|
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function lx(e){let t={constructs:Mv([Xb,...(e||{}).extensions||[]]),content:n(Qv),defined:[],document:n(ny),flow:n(Hb),lazy:{},string:n(Gb),text:n(Kb)};return t;function n(e){return n;function n(n){return ox(t,e,n)}}}function ux(e){for(;!Ry(e););return e}var dx=/[\0\t\n\r]/g;function fx(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){dx.lastIndex=c;let n=dx.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var px=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function mx(e){return e.replace(px,hx)}function hx(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Fv(n.slice(t?2:1),t?16:10)}return Ov(n)||e}var gx={}.hasOwnProperty;function _x(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),vx(n)(ux(lx(n).document().write(fx()(e,t,!0))))}function vx(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(xe),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(P),blockQuote:o(me),characterEscape:E,characterReference:E,codeFenced:o(he),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(he,s),codeText:o(ge,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(_e),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(N),hardBreakEscape:o(ve),hardBreakTrailing:o(ve),htmlFlow:o(ye,s),htmlFlowData:E,htmlText:o(ye,s),htmlTextData:E,image:o(be),label:s,link:o(xe),listItem:o(Ce),listItemValue:p,listOrdered:o(Se,f),listUnordered:o(Se),paragraph:o(we),reference:ce,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(P),strong:o(Te),thematicBreak:o(De)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:M,autolinkProtocol:pe,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:de,characterReference:fe,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(ne),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(ee),hardBreakTrailing:l(ee),htmlFlow:l(k),htmlFlowData:D,htmlText:l(te),htmlTextData:D,image:l(re),label:ie,labelText:j,lineEnding:O,link:l(A),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:le,resourceDestinationString:ae,resourceTitleString:oe,resource:se,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};bx(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),gx.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||Sx).call(o,void 0,e[0])}for(r.position={start:yx(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:yx(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:yx(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+V_({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Sx).call(this,e,r[0])),n.position.end=yx(e.end)}function d(){return Cv(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Iv(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Ee(),n.position={start:yx(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=yx(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=yx(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function ee(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function re(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function j(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=mx(t),n.identifier=Iv(t).toLowerCase()}function ie(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function se(){this.data.inReference=void 0}function ce(){this.data.referenceType=`collapsed`}function le(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Iv(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ue(e){this.data.characterReferenceType=e.type}function de(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Fv(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Ov(t);let i=this.stack[this.stack.length-1];i.value+=r}function fe(e){let t=this.stack.pop();t.position.end=yx(e.end)}function pe(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function M(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function me(){return{type:`blockquote`,children:[],position:void 0}}function he(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function ge(){return{type:`inlineCode`,value:``,position:void 0}}function _e(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function N(){return{type:`emphasis`,children:[],position:void 0}}function P(){return{type:`heading`,depth:0,children:[],position:void 0}}function ve(){return{type:`break`,position:void 0}}function ye(){return{type:`html`,value:``,position:void 0}}function be(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function xe(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function Se(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function Ce(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function we(){return{type:`paragraph`,children:[],position:void 0}}function Te(){return{type:`strong`,children:[],position:void 0}}function Ee(){return{type:`text`,value:``,position:void 0}}function De(){return{type:`thematicBreak`,position:void 0}}}function yx(e){return{line:e.line,column:e.column,offset:e.offset}}function bx(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?bx(e,r):xx(e,r)}}function xx(e,t){let n;for(n in t)if(gx.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Sx(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+V_({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+V_({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+V_({start:t.start,end:t.end})+`) is still open`)}function Cx(e){let t=this;t.parser=n;function n(n){return _x(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function wx(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Tx(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
package/gui/dist/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
6
6
|
<title>Organizer</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/index-
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-CkZPrGSS.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="./assets/index-CVwckTU6.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imenam/mcp-organizer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "MCP server with a multi-user web GUI to organize tasks in personal and shared spaces; requests to the AI are queued and processed by the connected agent, every agent action is logged and undoable.",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"scripts": {
|