@sentry/junior-dashboard 0.139.0 → 0.140.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +1 -1
- package/dist/client/api.d.ts +2 -2
- package/dist/client.js +2 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/client/pages/tasks/TasksPage.tsx +1 -1
package/dist/client.js
CHANGED
|
@@ -72,7 +72,7 @@ Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}
|
|
|
72
72
|
|
|
73
73
|
`)}g.write("payload.value = newResult;"),g.write("return payload;");let h=g.compile();return(b,C)=>h(p,b,C)},r,i=hs,A=!bs.jitless,c=A&&uk.value,u=t.catchall,l;e._zod.parse=(p,g)=>{l??(l=o.value);let f=p.value;return i(f)?A&&c&&g?.async===!1&&g.jitless!==!0?(r||(r=a(t.shape)),p=r(p,g),u?eL([],f,p,g,l,e):p):n(p,g):(p.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),p)}});function j3(e,t,n,o){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;let a=e.filter(r=>!mA(r));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(i=>aa(i,o,Pt())))}),t)}var zl=I("$ZodUnion",(e,t)=>{ie.init(e,t),he(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),he(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),he(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),he(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>Nl(a.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,a)=>{if(n)return n(o,a);let r=!1,i=[];for(let A of t.options){let s=A._zod.run({value:o.value,issues:[]},a);if(s instanceof Promise)i.push(s),r=!0;else{if(s.issues.length===0)return s;i.push(s)}}return r?Promise.all(i).then(A=>j3(A,o,e,a)):j3(i,o,e,a)}});function P3(e,t,n,o){let a=e.filter(r=>r.issues.length===0);return a.length===1?(t.value=a[0].value,t):(a.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(i=>aa(i,o,Pt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var eQ=I("$ZodXor",(e,t)=>{zl.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,a)=>{if(n)return n(o,a);let r=!1,i=[];for(let A of t.options){let s=A._zod.run({value:o.value,issues:[]},a);s instanceof Promise?(i.push(s),r=!0):i.push(s)}return r?Promise.all(i).then(A=>P3(A,o,e,a)):P3(i,o,e,a)}}),tQ=I("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,zl.init(e,t);let n=e._zod.parse;he(e._zod,"propValues",()=>{let a={};for(let r of t.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[A,s]of Object.entries(i)){a[A]||(a[A]=new Set);for(let c of s)a[A].add(c)}}return a});let o=gu(()=>{let a=t.options,r=new Map;for(let i of a){let A=i._zod.propValues?.[t.discriminator];if(!A||A.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let s of A){if(r.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);r.set(s,i)}}return r});e._zod.parse=(a,r)=>{let i=a.value;if(!hs(i))return a.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),a;let A=o.value.get(i?.[t.discriminator]);return A?A._zod.run(a,r):t.unionFallback||r.direction==="backward"?n(a,r):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:i,path:[t.discriminator],inst:e}),a)}}),nQ=I("$ZodIntersection",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let a=n.value,r=t.left._zod.run({value:a,issues:[]},o),i=t.right._zod.run({value:a,issues:[]},o);return r instanceof Promise||i instanceof Promise?Promise.all([r,i]).then(([s,c])=>G3(n,s,c)):G3(n,r,i)}});function m0(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(gA(e)&&gA(t)){let n=Object.keys(t),o=Object.keys(e).filter(r=>n.indexOf(r)!==-1),a={...e,...t};for(let r of o){let i=m0(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};a[r]=i.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let a=e[o],r=t[o],i=m0(a,r);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function G3(e,t,n){let o=new Map,a;for(let A of t.issues)if(A.code==="unrecognized_keys"){a??(a=A);for(let s of A.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(A);for(let A of n.issues)if(A.code==="unrecognized_keys")for(let s of A.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(A);let r=[...o].filter(([,A])=>A.l&&A.r).map(([A])=>A);if(r.length&&a&&e.issues.push({...a,keys:r}),mA(e))return e;let i=m0(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var ub=I("$ZodTuple",(e,t)=>{ie.init(e,t);let n=t.items;e._zod.parse=(o,a)=>{let r=o.value;if(!Array.isArray(r))return o.issues.push({input:r,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let i=[],A=H3(n,"optin"),s=H3(n,"optout");if(!t.rest){if(r.length<A)return o.issues.push({code:"too_small",minimum:A,inclusive:!0,input:r,inst:e,origin:"array"}),o;r.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:r,inst:e,origin:"array"})}let c=new Array(n.length);for(let u=0;u<n.length;u++){let l=n[u]._zod.run({value:r[u],issues:[]},a);l instanceof Promise?i.push(l.then(p=>{c[u]=p})):c[u]=l}if(t.rest){let u=n.length-1,l=r.slice(n.length);for(let p of l){u++;let g=t.rest._zod.run({value:p,issues:[]},a);g instanceof Promise?i.push(g.then(f=>U3(f,o,u))):U3(g,o,u)}}return i.length?Promise.all(i).then(()=>T3(c,o,n,r,s)):T3(c,o,n,r,s)}});function H3(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function U3(e,t,n){e.issues.length&&t.issues.push(...wa(n,e.issues)),t.value[n]=e.value}function T3(e,t,n,o,a){for(let r=0;r<n.length;r++){let i=e[r],A=r<o.length;if(i.issues.length){if(!A&&r>=a){t.value.length=r;break}t.issues.push(...wa(r,i.issues))}t.value[r]=i.value}for(let r=t.value.length-1;r>=o.length&&(n[r]._zod.optout==="optional"&&t.value[r]===void 0);r--)t.value.length=r;return t}var aQ=I("$ZodRecord",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!gA(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;let r=[],i=t.keyType._zod.values;if(i){n.value={};let A=new Set;for(let c of i)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){A.add(typeof c=="number"?c.toString():c);let u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(g=>aa(g,o,Pt())),input:c,path:[c],inst:e});continue}let l=u.value,p=t.valueType._zod.run({value:a[c],issues:[]},o);p instanceof Promise?r.push(p.then(g=>{g.issues.length&&n.issues.push(...wa(c,g.issues)),n.value[l]=g.value})):(p.issues.length&&n.issues.push(...wa(c,p.issues)),n.value[l]=p.value)}let s;for(let c in a)A.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:s})}else{n.value={};for(let A of Reflect.ownKeys(a)){if(A==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,A))continue;let s=t.keyType._zod.run({value:A,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof A=="string"&&tb.test(A)&&s.issues.length){let l=t.keyType._zod.run({value:Number(A),issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");l.issues.length===0&&(s=l)}if(s.issues.length){t.mode==="loose"?n.value[A]=a[A]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(l=>aa(l,o,Pt())),input:A,path:[A],inst:e});continue}let u=t.valueType._zod.run({value:a[A],issues:[]},o);u instanceof Promise?r.push(u.then(l=>{l.issues.length&&n.issues.push(...wa(A,l.issues)),n.value[s.value]=l.value})):(u.issues.length&&n.issues.push(...wa(A,u.issues)),n.value[s.value]=u.value)}}return r.length?Promise.all(r).then(()=>n):n}}),oQ=I("$ZodMap",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!(a instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:a,inst:e}),n;let r=[];n.value=new Map;for(let[i,A]of a){let s=t.keyType._zod.run({value:i,issues:[]},o),c=t.valueType._zod.run({value:A,issues:[]},o);s instanceof Promise||c instanceof Promise?r.push(Promise.all([s,c]).then(([u,l])=>{O3(u,l,n,i,a,e,o)})):O3(s,c,n,i,a,e,o)}return r.length?Promise.all(r).then(()=>n):n}});function O3(e,t,n,o,a,r,i){e.issues.length&&($l.has(typeof o)?n.issues.push(...wa(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:a,inst:r,issues:e.issues.map(A=>aa(A,i,Pt()))})),t.issues.length&&($l.has(typeof o)?n.issues.push(...wa(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:a,inst:r,key:o,issues:t.issues.map(A=>aa(A,i,Pt()))})),n.value.set(e.value,t.value)}var rQ=I("$ZodSet",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!(a instanceof Set))return n.issues.push({input:a,inst:e,expected:"set",code:"invalid_type"}),n;let r=[];n.value=new Set;for(let i of a){let A=t.valueType._zod.run({value:i,issues:[]},o);A instanceof Promise?r.push(A.then(s=>q3(s,n))):q3(A,n)}return r.length?Promise.all(r).then(()=>n):n}});function q3(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var iQ=I("$ZodEnum",(e,t)=>{ie.init(e,t);let n=Rl(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(a=>$l.has(typeof a)).map(a=>typeof a=="string"?co(a):a.toString()).join("|")})$`),e._zod.parse=(a,r)=>{let i=a.value;return o.has(i)||a.issues.push({code:"invalid_value",values:n,input:i,inst:e}),a}}),AQ=I("$ZodLiteral",(e,t)=>{if(ie.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?co(o):o?co(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,a)=>{let r=o.value;return n.has(r)||o.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),o}}),sQ=I("$ZodFile",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;return a instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:a,inst:e}),n}}),cQ=I("$ZodTransform",(e,t)=>{ie.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new dA(e.constructor.name);let a=t.transform(n.value,n);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(i=>(n.value=i,n.fallback=!0,n));if(a instanceof Promise)throw new Fo;return n.value=a,n.fallback=!0,n}});function z3(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var db=I("$ZodOptional",(e,t)=>{ie.init(e,t),e._zod.optin="optional",e._zod.optout="optional",he(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),he(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Nl(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){let a=n.value,r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>z3(i,a)):z3(r,a)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),uQ=I("$ZodExactOptional",(e,t)=>{db.init(e,t),he(e._zod,"values",()=>t.innerType._zod.values),he(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),dQ=I("$ZodNullable",(e,t)=>{ie.init(e,t),he(e._zod,"optin",()=>t.innerType._zod.optin),he(e._zod,"optout",()=>t.innerType._zod.optout),he(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Nl(n.source)}|null)$`):void 0}),he(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),lQ=I("$ZodDefault",(e,t)=>{ie.init(e,t),e._zod.optin="optional",he(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>Y3(r,t)):Y3(a,t)}});function Y3(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var pQ=I("$ZodPrefault",(e,t)=>{ie.init(e,t),e._zod.optin="optional",he(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),gQ=I("$ZodNonOptional",(e,t)=>{ie.init(e,t),he(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>K3(r,e)):K3(a,e)}});function K3(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var mQ=I("$ZodSuccess",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new dA("ZodSuccess");let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>(n.value=r.issues.length===0,n)):(n.value=a.issues.length===0,n)}}),fQ=I("$ZodCatch",(e,t)=>{ie.init(e,t),e._zod.optin="optional",he(e._zod,"optout",()=>t.innerType._zod.optout),he(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>aa(i,o,Pt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(r=>aa(r,o,Pt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),bQ=I("$ZodNaN",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),lb=I("$ZodPipe",(e,t)=>{ie.init(e,t),he(e._zod,"values",()=>t.in._zod.values),he(e._zod,"optin",()=>t.in._zod.optin),he(e._zod,"optout",()=>t.out._zod.optout),he(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let r=t.out._zod.run(n,o);return r instanceof Promise?r.then(i=>ob(i,t.in,o)):ob(r,t.in,o)}let a=t.in._zod.run(n,o);return a instanceof Promise?a.then(r=>ob(r,t.out,o)):ob(a,t.out,o)}});function ob(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Yl=I("$ZodCodec",(e,t)=>{ie.init(e,t),he(e._zod,"values",()=>t.in._zod.values),he(e._zod,"optin",()=>t.in._zod.optin),he(e._zod,"optout",()=>t.out._zod.optout),he(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>rb(i,t,o)):rb(r,t,o)}else{let r=t.out._zod.run(n,o);return r instanceof Promise?r.then(i=>rb(i,t,o)):rb(r,t,o)}}});function rb(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let a=t.transform(e.value,e);return a instanceof Promise?a.then(r=>ib(e,r,t.out,n)):ib(e,a,t.out,n)}else{let a=t.reverseTransform(e.value,e);return a instanceof Promise?a.then(r=>ib(e,r,t.in,n)):ib(e,a,t.in,n)}}function ib(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}var hQ=I("$ZodPreprocess",(e,t)=>{lb.init(e,t)}),BQ=I("$ZodReadonly",(e,t)=>{ie.init(e,t),he(e._zod,"propValues",()=>t.innerType._zod.propValues),he(e._zod,"values",()=>t.innerType._zod.values),he(e._zod,"optin",()=>t.innerType?._zod?.optin),he(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(J3):J3(a)}});function J3(e){return e.value=Object.freeze(e.value),e}var yQ=I("$ZodTemplateLiteral",(e,t)=>{ie.init(e,t);let n=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let a=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!a)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let r=a.startsWith("^")?1:0,i=a.endsWith("$")?a.length-1:a.length;n.push(a.slice(r,i))}else if(o===null||lk.has(typeof o))n.push(co(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,a)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),CQ=I("$ZodFunction",(e,t)=>(ie.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let a=e._def.input?Of(e._def.input,o):o,r=Reflect.apply(n,this,a);return e._def.output?Of(e._def.output,r):r}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let a=e._def.input?await qf(e._def.input,o):o,r=await Reflect.apply(n,this,a);return e._def.output?await qf(e._def.output,r):r}},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new ub({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),wQ=I("$ZodPromise",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(a=>t.innerType._zod.run({value:a,issues:[]},o))}),EQ=I("$ZodLazy",(e,t)=>{ie.init(e,t),he(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),he(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),he(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),he(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),he(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),kQ=I("$ZodCustom",(e,t)=>{ot.init(e,t),ie.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,a=t.fn(o);if(a instanceof Promise)return a.then(r=>W3(r,n,o,e));W3(a,n,o,e)}});function W3(e,t,n,o){if(!e){let a={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(a.params=o._zod.def.params),t.issues.push(mu(a))}}var Jl={};F(Jl,{ar:()=>nL,az:()=>aL,be:()=>rL,bg:()=>iL,ca:()=>AL,cs:()=>sL,da:()=>cL,de:()=>uL,el:()=>dL,en:()=>pb,eo:()=>lL,es:()=>pL,fa:()=>gL,fi:()=>mL,fr:()=>fL,frCA:()=>bL,he:()=>hL,hr:()=>BL,hu:()=>yL,hy:()=>wL,id:()=>EL,is:()=>kL,it:()=>QL,ja:()=>IL,ka:()=>_L,kh:()=>vL,km:()=>gb,ko:()=>xL,lt:()=>FL,mk:()=>SL,ms:()=>LL,nl:()=>RL,no:()=>NL,ota:()=>$L,pl:()=>jL,ps:()=>ML,pt:()=>PL,ro:()=>GL,ru:()=>UL,sl:()=>TL,sv:()=>OL,ta:()=>qL,th:()=>zL,tr:()=>YL,ua:()=>KL,uk:()=>mb,ur:()=>JL,uz:()=>WL,vi:()=>ZL,yo:()=>eR,zhCN:()=>VL,zhTW:()=>XL});var PV=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(a){return e[a]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${a.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${A}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${r}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${A}`}case"invalid_value":return a.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${N(a.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${a.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${a.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${a.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${a.prefix}"`:r.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${r.suffix}"`:r.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${r.includes}"`:r.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${r.pattern}`:`${n[r.format]??a.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${a.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${a.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${a.keys.length>1?"\u0629":""}: ${v(a.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${a.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${a.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function nL(){return{localeError:PV()}}var GV=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(a){return e[a]??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",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${a.expected}, daxil olan ${A}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${r}, daxil olan ${A}`}case"invalid_value":return a.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${N(a.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${r}${a.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${r}${a.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${r.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:r.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${r.suffix}" il\u0259 bitm\u0259lidir`:r.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${r.includes}" daxil olmal\u0131d\u0131r`:r.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${r.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[r.format]??a.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${a.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${a.keys.length>1?"lar":""}: ${v(a.keys,", ")}`;case"invalid_key":return`${a.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${a.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function aL(){return{localeError:GV()}}function oL(e,t,n,o){let a=Math.abs(e),r=a%10,i=a%100;return i>=11&&i<=19?o:r===1?t:r>=2&&r<=4?n:o}var HV=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(a){return e[a]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${a.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${A}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${r}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${A}`}case"invalid_value":return a.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${N(a.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);if(i){let A=Number(a.maximum),s=oL(A,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${r}${a.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);if(i){let A=Number(a.minimum),s=oL(A,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${r}${a.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${r.includes}"`:r.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[r.format]??a.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${a.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${v(a.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${a.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${a.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function rL(){return{localeError:HV()}}var UV=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(a){return e[a]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${a.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${A}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${r}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${A}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${N(a.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${r}${a.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${r}${a.minimum.toString()} ${i.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;if(r.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${r.prefix}"`;if(r.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${r.suffix}"`;if(r.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${r.includes}"`;if(r.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${r.pattern}`;let i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return r.format==="emoji"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="datetime"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="date"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),r.format==="time"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="duration"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${i} ${n[r.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${a.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${a.keys.length>1?"\u043E\u0432\u0435":""}: ${v(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${a.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function iL(){return{localeError:UV()}}var TV=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(a){return e[a]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",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:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${a.expected}, s'ha rebut ${A}`:`Tipus inv\xE0lid: s'esperava ${r}, s'ha rebut ${A}`}case"invalid_value":return a.values.length===1?`Valor inv\xE0lid: s'esperava ${N(a.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${v(a.values," o ")}`;case"too_big":{let r=a.inclusive?"com a m\xE0xim":"menys de",i=t(a.origin);return i?`Massa gran: s'esperava que ${a.origin??"el valor"} contingu\xE9s ${r} ${a.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${a.origin??"el valor"} fos ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"com a m\xEDnim":"m\xE9s de",i=t(a.origin);return i?`Massa petit: s'esperava que ${a.origin} contingu\xE9s ${r} ${a.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${a.origin} fos ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${r.prefix}"`:r.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${r.suffix}"`:r.format==="includes"?`Format inv\xE0lid: ha d'incloure "${r.includes}"`:r.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${r.pattern}`:`Format inv\xE0lid per a ${n[r.format]??a.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${a.divisor}`;case"unrecognized_keys":return`Clau${a.keys.length>1?"s":""} no reconeguda${a.keys.length>1?"s":""}: ${v(a.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${a.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${a.origin}`;default:return"Entrada inv\xE0lida"}}};function AL(){return{localeError:TV()}}var OV=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(a){return e[a]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",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:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${a.expected}, obdr\u017Eeno ${A}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${r}, obdr\u017Eeno ${A}`}case"invalid_value":return a.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${N(a.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${r}${a.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED b\xFDt ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${r}${a.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED b\xFDt ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${r.prefix}"`:r.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${r.suffix}"`:r.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${r.includes}"`:r.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${r.pattern}`:`Neplatn\xFD form\xE1t ${n[r.format]??a.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${a.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${v(a.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${a.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${a.origin}`;default:return"Neplatn\xFD vstup"}}};function sL(){return{localeError:OV()}}var qV=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(a){return e[a]??null}let n={regex:"input",email:"e-mailadresse",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 dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ugyldigt input: forventede instanceof ${a.expected}, fik ${A}`:`Ugyldigt input: forventede ${r}, fik ${A}`}case"invalid_value":return a.values.length===1?`Ugyldig v\xE6rdi: forventede ${N(a.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin),A=o[a.origin]??a.origin;return i?`For stor: forventede ${A??"value"} ${i.verb} ${r} ${a.maximum.toString()} ${i.unit??"elementer"}`:`For stor: forventede ${A??"value"} havde ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin),A=o[a.origin]??a.origin;return i?`For lille: forventede ${A} ${i.verb} ${r} ${a.minimum.toString()} ${i.unit}`:`For lille: forventede ${A} havde ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ugyldig streng: skal starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: skal ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: skal indeholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${n[r.format]??a.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${v(a.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${a.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${a.origin}`;default:return"Ugyldigt input"}}};function cL(){return{localeError:qV()}}var zV=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(a){return e[a]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",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-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${a.expected}, erhalten ${A}`:`Ung\xFCltige Eingabe: erwartet ${r}, erhalten ${A}`}case"invalid_value":return a.values.length===1?`Ung\xFCltige Eingabe: erwartet ${N(a.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${r}${a.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${r}${a.maximum.toString()} ist`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Zu klein: erwartet, dass ${a.origin} ${r}${a.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${a.origin} ${r}${a.minimum.toString()} ist`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ung\xFCltiger String: muss mit "${r.prefix}" beginnen`:r.format==="ends_with"?`Ung\xFCltiger String: muss mit "${r.suffix}" enden`:r.format==="includes"?`Ung\xFCltiger String: muss "${r.includes}" enthalten`:r.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${r.pattern} entsprechen`:`Ung\xFCltig: ${n[r.format]??a.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${a.divisor} sein`;case"unrecognized_keys":return`${a.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${v(a.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${a.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${a.origin}`;default:return"Ung\xFCltige Eingabe"}}};function uL(){return{localeError:zV()}}var YV=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(a){return e[a]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",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 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return typeof a.expected=="string"&&/^[A-Z]/.test(a.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${a.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${A}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${A}`}case"invalid_value":return a.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${N(a.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${r}${a.maximum.toString()} ${i.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${r}${a.minimum.toString()} ${i.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${r.prefix}"`:r.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${r.suffix}"`:r.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${r.includes}"`:r.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${r.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[r.format]??a.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${a.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${a.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${a.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${v(a.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${a.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${a.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function dL(){return{localeError:YV()}}var KV=()=>{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(a){return e[a]??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",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return`Invalid input: expected ${r}, received ${A}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${N(a.values[0])}`:`Invalid option: expected one of ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${i.unit}`:`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${v(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Invalid discriminator value. Expected ${a.options.map(i=>`'${i}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function pb(){return{localeError:KV()}}var JV=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(a){return e[a]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${a.expected}, ricevi\u011Dis ${A}`:`Nevalida enigo: atendi\u011Dis ${r}, ricevi\u011Dis ${A}`}case"invalid_value":return a.values.length===1?`Nevalida enigo: atendi\u011Dis ${N(a.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${r}${a.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Tro malgranda: atendi\u011Dis ke ${a.origin} havu ${r}${a.minimum.toString()} ${i.unit}`:`Tro malgranda: atendi\u011Dis ke ${a.origin} estu ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${r.prefix}"`:r.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${r.suffix}"`:r.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${r.includes}"`:r.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${n[r.format]??a.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${a.divisor}`;case"unrecognized_keys":return`Nekonata${a.keys.length>1?"j":""} \u015Dlosilo${a.keys.length>1?"j":""}: ${v(a.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${a.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${a.origin}`;default:return"Nevalida enigo"}}};function lL(){return{localeError:JV()}}var WV=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(a){return e[a]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${a.expected}, recibido ${A}`:`Entrada inv\xE1lida: se esperaba ${r}, recibido ${A}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: se esperaba ${N(a.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin),A=o[a.origin]??a.origin;return i?`Demasiado grande: se esperaba que ${A??"valor"} tuviera ${r}${a.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${A??"valor"} fuera ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin),A=o[a.origin]??a.origin;return i?`Demasiado peque\xF1o: se esperaba que ${A} tuviera ${r}${a.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${A} fuera ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${r.prefix}"`:r.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${r.suffix}"`:r.format==="includes"?`Cadena inv\xE1lida: debe incluir "${r.includes}"`:r.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${r.pattern}`:`Inv\xE1lido ${n[r.format]??a.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":return`Llave${a.keys.length>1?"s":""} desconocida${a.keys.length>1?"s":""}: ${v(a.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[a.origin]??a.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[a.origin]??a.origin}`;default:return"Entrada inv\xE1lida"}}};function pL(){return{localeError:WV()}}var ZV=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(a){return e[a]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${a.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${A} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${r} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${A} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return a.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${N(a.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${v(a.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:r.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:r.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${r.includes}" \u0628\u0627\u0634\u062F`:r.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${r.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[r.format]??a.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${a.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${a.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${v(a.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${a.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${a.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function gL(){return{localeError:ZV()}}var VV=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(a){return e[a]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Virheellinen tyyppi: odotettiin instanceof ${a.expected}, oli ${A}`:`Virheellinen tyyppi: odotettiin ${r}, oli ${A}`}case"invalid_value":return a.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${N(a.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${r}${a.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${r}${a.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${r.prefix}"`:r.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${r.suffix}"`:r.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${r.includes}"`:r.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${r.pattern}`:`Virheellinen ${n[r.format]??a.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${a.divisor} monikerta`;case"unrecognized_keys":return`${a.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${v(a.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function mL(){return{localeError:VV()}}var XV=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(a){return e[a]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",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:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Entr\xE9e invalide : instanceof ${a.expected} attendu, ${A} re\xE7u`:`Entr\xE9e invalide : ${r} attendu, ${A} re\xE7u`}case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : ${N(a.values[0])} attendu`:`Option invalide : une valeur parmi ${v(a.values,"|")} attendue`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Trop grand : ${o[a.origin]??"valeur"} doit ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[a.origin]??"valeur"} doit \xEAtre ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Trop petit : ${o[a.origin]??"valeur"} doit ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`Trop petit : ${o[a.origin]??"valeur"} doit \xEAtre ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${r.pattern}`:`${n[r.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${a.divisor}`;case"unrecognized_keys":return`Cl\xE9${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${v(a.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${a.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entr\xE9e invalide"}}};function fL(){return{localeError:XV()}}var eX=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(a){return e[a]??null}let n={regex:"entr\xE9e",email:"adresse courriel",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:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Entr\xE9e invalide : attendu instanceof ${a.expected}, re\xE7u ${A}`:`Entr\xE9e invalide : attendu ${r}, re\xE7u ${A}`}case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : attendu ${N(a.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"\u2264":"<",i=t(a.origin);return i?`Trop grand : attendu que ${a.origin??"la valeur"} ait ${r}${a.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${a.origin??"la valeur"} soit ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"\u2265":">",i=t(a.origin);return i?`Trop petit : attendu que ${a.origin} ait ${r}${a.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${a.origin} soit ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${r.pattern}`:`${n[r.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${a.divisor}`;case"unrecognized_keys":return`Cl\xE9${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${v(a.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${a.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entr\xE9e invalide"}}};function bL(){return{localeError:eX()}}var tX=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=c=>c?e[c]:void 0,o=c=>{let u=n(c);return u?u.label:c??e.unknown.label},a=c=>`\u05D4${o(c)}`,r=c=>(n(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",i=c=>c?t[c]??null:null,A={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},s={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let u=c.expected,l=s[u??""]??o(u),p=M(c.input),g=s[p]??e[p]?.label??p;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${l}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${N(c.values[0])}`;let u=c.values.map(g=>N(g));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${u[0]} \u05D0\u05D5 ${u[1]}`;let l=u[u.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${u.slice(0,-1).join(", ")} \u05D0\u05D5 ${l}`}case"too_big":{let u=i(c.origin),l=a(c.origin??"value");if(c.origin==="string")return`${u?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let f=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}`}if(c.origin==="array"||c.origin==="set"){let f=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",B=c.inclusive?`${c.maximum} ${u?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${u?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${l} ${f} \u05DC\u05D4\u05DB\u05D9\u05DC ${B}`.trim()}let p=c.inclusive?"<=":"<",g=r(c.origin??"value");return u?.unit?`${u.longLabel} \u05DE\u05D3\u05D9: ${l} ${g} ${p}${c.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${l} ${g} ${p}${c.maximum.toString()}`}case"too_small":{let u=i(c.origin),l=a(c.origin??"value");if(c.origin==="string")return`${u?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let f=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}`}if(c.origin==="array"||c.origin==="set"){let f=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let y=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${l} ${f} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`}let B=c.inclusive?`${c.minimum} ${u?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${u?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${l} ${f} \u05DC\u05D4\u05DB\u05D9\u05DC ${B}`.trim()}let p=c.inclusive?">=":">",g=r(c.origin??"value");return u?.unit?`${u.shortLabel} \u05DE\u05D3\u05D9: ${l} ${g} ${p}${c.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${l} ${g} ${p}${c.minimum.toString()}`}case"invalid_format":{let u=c;if(u.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${u.prefix}"`;if(u.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${u.suffix}"`;if(u.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${u.includes}"`;if(u.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${u.pattern}`;let l=A[u.format],p=l?.label??u.format,f=(l?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${f}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${v(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${a(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function hL(){return{localeError:tX()}}var nX=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(a){return e[a]??null}let n={regex:"unos",email:"email adresa",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 datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${a.expected}, a primljeno je ${A}`:`Neispravan unos: o\u010Dekuje se ${r}, a primljeno je ${A}`}case"invalid_value":return a.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${N(a.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin),A=o[a.origin]??a.origin;return i?`Preveliko: o\u010Dekivano da ${A??"vrijednost"} ima ${r}${a.maximum.toString()} ${i.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${A??"vrijednost"} bude ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin),A=o[a.origin]??a.origin;return i?`Premalo: o\u010Dekivano da ${A} ima ${r}${a.minimum.toString()} ${i.unit}`:`Premalo: o\u010Dekivano da ${A} bude ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${r.prefix}"`:r.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${r.suffix}"`:r.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${r.includes}"`:r.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${r.pattern}`:`Neispravna ${n[r.format]??a.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${a.divisor}`;case"unrecognized_keys":return`Neprepoznat${a.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${v(a.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[a.origin]??a.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[a.origin]??a.origin}`;default:return"Neispravan unos"}}};function BL(){return{localeError:nX()}}var aX=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(a){return e[a]??null}let n={regex:"bemenet",email:"email c\xEDm",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 id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${a.expected}, a kapott \xE9rt\xE9k ${A}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${r}, a kapott \xE9rt\xE9k ${A}`}case"invalid_value":return a.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${N(a.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`T\xFAl nagy: ${a.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${r}${a.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${a.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} m\xE9rete t\xFAl kicsi ${r}${a.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} t\xFAl kicsi ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\xC9rv\xE9nytelen string: "${r.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:r.format==="ends_with"?`\xC9rv\xE9nytelen string: "${r.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:r.format==="includes"?`\xC9rv\xE9nytelen string: "${r.includes}" \xE9rt\xE9ket kell tartalmaznia`:r.format==="regex"?`\xC9rv\xE9nytelen string: ${r.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[r.format]??a.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${a.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${a.keys.length>1?"s":""}: ${v(a.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${a.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${a.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function yL(){return{localeError:aX()}}function CL(e,t,n){return Math.abs(e)===1?t:n}function Cu(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var oX=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(a){return e[a]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${a.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${A}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${r}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${A}`}case"invalid_value":return a.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${N(a.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);if(i){let A=Number(a.maximum),s=CL(A,i.unit.one,i.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Cu(a.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${r}${a.maximum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Cu(a.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);if(i){let A=Number(a.minimum),s=CL(A,i.unit.one,i.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Cu(a.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${r}${a.minimum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Cu(a.origin)} \u056C\u056B\u0576\u056B ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${r.prefix}"-\u0578\u057E`:r.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${r.suffix}"-\u0578\u057E`:r.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${r.includes}"`:r.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${r.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[r.format]??a.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${a.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${a.keys.length>1?"\u0576\u0565\u0580":""}. ${v(a.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Cu(a.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Cu(a.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function wL(){return{localeError:oX()}}var rX=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(a){return e[a]??null}let n={regex:"input",email:"alamat email",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:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Input tidak valid: diharapkan instanceof ${a.expected}, diterima ${A}`:`Input tidak valid: diharapkan ${r}, diterima ${A}`}case"invalid_value":return a.values.length===1?`Input tidak valid: diharapkan ${N(a.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Terlalu besar: diharapkan ${a.origin??"value"} memiliki ${r}${a.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${a.origin??"value"} menjadi ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Terlalu kecil: diharapkan ${a.origin} memiliki ${r}${a.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${a.origin} menjadi ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`String tidak valid: harus dimulai dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak valid: harus berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak valid: harus menyertakan "${r.includes}"`:r.format==="regex"?`String tidak valid: harus sesuai pola ${r.pattern}`:`${n[r.format]??a.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${a.keys.length>1?"s":""}: ${v(a.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${a.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${a.origin}`;default:return"Input tidak valid"}}};function EL(){return{localeError:rX()}}var iX=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(a){return e[a]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${A} \xFEar sem \xE1 a\xF0 vera instanceof ${a.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${A} \xFEar sem \xE1 a\xF0 vera ${r}`}case"invalid_value":return a.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${N(a.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} hafi ${r}${a.maximum.toString()} ${i.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} s\xE9 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} hafi ${r}${a.minimum.toString()} ${i.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} s\xE9 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${r.prefix}"`:r.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${r.suffix}"`:r.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${r.includes}"`:r.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${r.pattern}`:`Rangt ${n[r.format]??a.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${a.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${a.keys.length>1?"ir lyklar":"ur lykill"}: ${v(a.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${a.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${a.origin}`;default:return"Rangt gildi"}}};function kL(){return{localeError:iX()}}var AX=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(a){return e[a]??null}let n={regex:"input",email:"indirizzo email",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:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Input non valido: atteso instanceof ${a.expected}, ricevuto ${A}`:`Input non valido: atteso ${r}, ricevuto ${A}`}case"invalid_value":return a.values.length===1?`Input non valido: atteso ${N(a.values[0])}`:`Opzione non valida: atteso uno tra ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Troppo grande: ${a.origin??"valore"} deve avere ${r}${a.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${a.origin??"valore"} deve essere ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Troppo piccolo: ${a.origin} deve avere ${r}${a.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${a.origin} deve essere ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Stringa non valida: deve iniziare con "${r.prefix}"`:r.format==="ends_with"?`Stringa non valida: deve terminare con "${r.suffix}"`:r.format==="includes"?`Stringa non valida: deve includere "${r.includes}"`:r.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${r.pattern}`:`Input non valido: ${n[r.format]??a.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${a.divisor}`;case"unrecognized_keys":return`Chiav${a.keys.length>1?"i":"e"} non riconosciut${a.keys.length>1?"e":"a"}: ${v(a.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${a.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${a.origin}`;default:return"Input non valido"}}};function QL(){return{localeError:AX()}}var sX=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(a){return e[a]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${a.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${A}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${r}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${A}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return a.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${N(a.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${v(a.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let r=a.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=t(a.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${i.unit??"\u8981\u7D20"}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let r=a.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=t(a.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${i.unit}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${r.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[r.format]??a.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${a.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${a.keys.length>1?"\u7FA4":""}: ${v(a.keys,"\u3001")}`;case"invalid_key":return`${a.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${a.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function IL(){return{localeError:sX()}}var cX=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(a){return e[a]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${a.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${A}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${A}`}case"invalid_value":return a.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${N(a.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${v(a.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin} \u10D8\u10E7\u10DD\u10E1 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${r.prefix}"-\u10D8\u10D7`:r.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${r.suffix}"-\u10D8\u10D7`:r.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${r.includes}"-\u10E1`:r.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${r.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${a.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${a.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${v(a.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${a.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${a.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function _L(){return{localeError:cX()}}var uX=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(a){return e[a]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${a.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${A}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${A}`}case"invalid_value":return a.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${N(a.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${a.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${r} ${a.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${r.prefix}"`:r.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${r.suffix}"`:r.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${r.includes}"`:r.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${r.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${a.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${v(a.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${a.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${a.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function gb(){return{localeError:uX()}}function vL(){return gb()}var dX=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(a){return e[a]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${a.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${A}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${r}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${A}\uC785\uB2C8\uB2E4`}case"invalid_value":return a.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${N(a.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${v(a.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let r=a.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=r==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",A=t(a.origin),s=A?.unit??"\uC694\uC18C";return A?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()}${s} ${r}${i}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()} ${r}${i}`}case"too_small":{let r=a.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=r==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",A=t(a.origin),s=A?.unit??"\uC694\uC18C";return A?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()}${s} ${r}${i}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()} ${r}${i}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:r.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${r.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[r.format]??a.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${a.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${v(a.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${a.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${a.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function xL(){return{localeError:dX()}}var Kl=e=>e.charAt(0).toUpperCase()+e.slice(1);function DL(e){let t=Math.abs(e),n=t%10,o=t%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var lX=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(a,r,i,A){let s=e[a]??null;return s===null?s:{unit:s.unit[r],verb:s.verb[A][i?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Gautas tipas ${A}, o tik\u0117tasi - instanceof ${a.expected}`:`Gautas tipas ${A}, o tik\u0117tasi - ${r}`}case"invalid_value":return a.values.length===1?`Privalo b\u016Bti ${N(a.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${v(a.values,"|")} pasirinkim\u0173`;case"too_big":{let r=o[a.origin]??a.origin,i=t(a.origin,DL(Number(a.maximum)),a.inclusive??!1,"smaller");if(i?.verb)return`${Kl(r??a.origin??"reik\u0161m\u0117")} ${i.verb} ${a.maximum.toString()} ${i.unit??"element\u0173"}`;let A=a.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Kl(r??a.origin??"reik\u0161m\u0117")} turi b\u016Bti ${A} ${a.maximum.toString()} ${i?.unit}`}case"too_small":{let r=o[a.origin]??a.origin,i=t(a.origin,DL(Number(a.minimum)),a.inclusive??!1,"bigger");if(i?.verb)return`${Kl(r??a.origin??"reik\u0161m\u0117")} ${i.verb} ${a.minimum.toString()} ${i.unit??"element\u0173"}`;let A=a.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Kl(r??a.origin??"reik\u0161m\u0117")} turi b\u016Bti ${A} ${a.minimum.toString()} ${i?.unit}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${r.prefix}"`:r.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${r.suffix}"`:r.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${r.includes}"`:r.format==="regex"?`Eilut\u0117 privalo atitikti ${r.pattern}`:`Neteisingas ${n[r.format]??a.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${a.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${a.keys.length>1?"i":"as"} rakt${a.keys.length>1?"ai":"as"}: ${v(a.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let r=o[a.origin]??a.origin;return`${Kl(r??a.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function FL(){return{localeError:lX()}}var pX=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(a){return e[a]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${a.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${A}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${A}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${N(a.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${r}${a.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin} \u0434\u0430 \u0438\u043C\u0430 ${r}${a.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${r.pattern}`:`Invalid ${n[r.format]??a.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${v(a.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${a.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${a.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function SL(){return{localeError:pX()}}var gX=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(a){return e[a]??null}let n={regex:"input",email:"alamat e-mel",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:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Input tidak sah: dijangka instanceof ${a.expected}, diterima ${A}`:`Input tidak sah: dijangka ${r}, diterima ${A}`}case"invalid_value":return a.values.length===1?`Input tidak sah: dijangka ${N(a.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Terlalu besar: dijangka ${a.origin??"nilai"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${a.origin??"nilai"} adalah ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Terlalu kecil: dijangka ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${a.origin} adalah ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`String tidak sah: mesti bermula dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak sah: mesti mengandungi "${r.includes}"`:r.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${r.pattern}`:`${n[r.format]??a.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${v(a.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${a.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${a.origin}`;default:return"Input tidak sah"}}};function LL(){return{localeError:gX()}}var mX=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(a){return e[a]??null}let n={regex:"invoer",email:"emailadres",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 datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ongeldige invoer: verwacht instanceof ${a.expected}, ontving ${A}`:`Ongeldige invoer: verwacht ${r}, ontving ${A}`}case"invalid_value":return a.values.length===1?`Ongeldige invoer: verwacht ${N(a.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin),A=a.origin==="date"?"laat":a.origin==="string"?"lang":"groot";return i?`Te ${A}: verwacht dat ${a.origin??"waarde"} ${r}${a.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`:`Te ${A}: verwacht dat ${a.origin??"waarde"} ${r}${a.maximum.toString()} is`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin),A=a.origin==="date"?"vroeg":a.origin==="string"?"kort":"klein";return i?`Te ${A}: verwacht dat ${a.origin} ${r}${a.minimum.toString()} ${i.unit} ${i.verb}`:`Te ${A}: verwacht dat ${a.origin} ${r}${a.minimum.toString()} is`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ongeldige tekst: moet met "${r.prefix}" beginnen`:r.format==="ends_with"?`Ongeldige tekst: moet op "${r.suffix}" eindigen`:r.format==="includes"?`Ongeldige tekst: moet "${r.includes}" bevatten`:r.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`:`Ongeldig: ${n[r.format]??a.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${a.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${a.keys.length>1?"s":""}: ${v(a.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${a.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${a.origin}`;default:return"Ongeldige invoer"}}};function RL(){return{localeError:mX()}}var fX=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(a){return e[a]??null}let n={regex:"input",email:"e-postadresse",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 dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ugyldig input: forventet instanceof ${a.expected}, fikk ${A}`:`Ugyldig input: forventet ${r}, fikk ${A}`}case"invalid_value":return a.values.length===1?`Ugyldig verdi: forventet ${N(a.values[0])}`:`Ugyldig valg: forventet en av ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${r}${a.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`For lite(n): forventet ${a.origin} til \xE5 ha ${r}${a.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${a.origin} til \xE5 ha ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${n[r.format]??a.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${v(a.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${a.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${a.origin}`;default:return"Ugyldig input"}}};function NL(){return{localeError:fX()}}var bX=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(a){return e[a]??null}let n={regex:"giren",email:"epostag\xE2h",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 heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`F\xE2sit giren: umulan instanceof ${a.expected}, al\u0131nan ${A}`:`F\xE2sit giren: umulan ${r}, al\u0131nan ${A}`}case"invalid_value":return a.values.length===1?`F\xE2sit giren: umulan ${N(a.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${r}${a.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${r}${a.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${r}${a.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${r}${a.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let r=a;return r.format==="starts_with"?`F\xE2sit metin: "${r.prefix}" ile ba\u015Flamal\u0131.`:r.format==="ends_with"?`F\xE2sit metin: "${r.suffix}" ile bitmeli.`:r.format==="includes"?`F\xE2sit metin: "${r.includes}" ihtiv\xE2 etmeli.`:r.format==="regex"?`F\xE2sit metin: ${r.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[r.format]??a.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${a.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${a.keys.length>1?"s":""}: ${v(a.keys,", ")}`;case"invalid_key":return`${a.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${a.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function $L(){return{localeError:bX()}}var hX=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(a){return e[a]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${a.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${A} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${r} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${A} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return a.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${N(a.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${v(a.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} \u0648\u064A`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} \u0648\u064A`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:r.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:r.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${r.includes}" \u0648\u0644\u0631\u064A`:r.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${r.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[r.format]??a.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${a.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${a.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${v(a.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${a.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${a.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function ML(){return{localeError:hX()}}var BX=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(a){return e[a]??null}let n={regex:"wyra\u017Cenie",email:"adres email",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:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${a.expected}, otrzymano ${A}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${r}, otrzymano ${A}`}case"invalid_value":return a.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${N(a.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${a.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${a.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${r.prefix}"`:r.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${r.suffix}"`:r.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${r.includes}"`:r.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${r.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[r.format]??a.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${a.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${a.keys.length>1?"s":""}: ${v(a.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${a.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${a.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function jL(){return{localeError:BX()}}var yX=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(a){return e[a]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",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:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Tipo inv\xE1lido: esperado instanceof ${a.expected}, recebido ${A}`:`Tipo inv\xE1lido: esperado ${r}, recebido ${A}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperado ${N(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Muito grande: esperado que ${a.origin??"valor"} tivesse ${r}${a.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${a.origin??"valor"} fosse ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Muito pequeno: esperado que ${a.origin} tivesse ${r}${a.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${a.origin} fosse ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${r.prefix}"`:r.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${r.suffix}"`:r.format==="includes"?`Texto inv\xE1lido: deve incluir "${r.includes}"`:r.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${r.pattern}`:`${n[r.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":return`Chave${a.keys.length>1?"s":""} desconhecida${a.keys.length>1?"s":""}: ${v(a.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${a.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${a.origin}`;default:return"Campo inv\xE1lido"}}};function PL(){return{localeError:yX()}}var CX=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(a){return e[a]??null}let n={regex:"intrare",email:"adres\u0103 de email",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:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return`Intrare invalid\u0103: a\u0219teptat ${r}, primit ${A}`}case"invalid_value":return a.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${N(a.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Prea mare: a\u0219teptat ca ${a.origin??"valoarea"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${a.origin??"valoarea"} s\u0103 fie ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Prea mic: a\u0219teptat ca ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`Prea mic: a\u0219teptat ca ${a.origin} s\u0103 fie ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${r.prefix}"`:r.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${r.suffix}"`:r.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${r.includes}"`:r.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${r.pattern}`:`Format invalid: ${n[r.format]??a.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${a.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${v(a.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${a.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${a.origin}`;default:return"Intrare invalid\u0103"}}};function GL(){return{localeError:CX()}}function HL(e,t,n,o){let a=Math.abs(e),r=a%10,i=a%100;return i>=11&&i<=19?o:r===1?t:r>=2&&r<=4?n:o}var wX=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(a){return e[a]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${a.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${A}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${r}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${A}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${N(a.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);if(i){let A=Number(a.maximum),s=HL(A,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${a.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);if(i){let A=Number(a.minimum),s=HL(A,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${a.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin} \u0431\u0443\u0434\u0435\u0442 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${a.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${a.keys.length>1?"\u0438":""}: ${v(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${a.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function UL(){return{localeError:wX()}}var EX=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(a){return e[a]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",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 datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${a.expected}, prejeto ${A}`:`Neveljaven vnos: pri\u010Dakovano ${r}, prejeto ${A}`}case"invalid_value":return a.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${N(a.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} imelo ${r}${a.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${a.origin} imelo ${r}${a.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${r.prefix}"`:r.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${r.suffix}"`:r.format==="includes"?`Neveljaven niz: mora vsebovati "${r.includes}"`:r.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`:`Neveljaven ${n[r.format]??a.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${a.divisor}`;case"unrecognized_keys":return`Neprepoznan${a.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${v(a.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${a.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${a.origin}`;default:return"Neveljaven vnos"}}};function TL(){return{localeError:EX()}}var kX=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(a){return e[a]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",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-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${a.expected}, fick ${A}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${r}, fick ${A}`}case"invalid_value":return a.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${N(a.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${a.origin??"v\xE4rdet"} att ha ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${r.prefix}"`:r.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${r.suffix}"`:r.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${r.includes}"`:r.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${r.pattern}"`:`Ogiltig(t) ${n[r.format]??a.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${v(a.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${a.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${a.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function OL(){return{localeError:kX()}}var QX=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(a){return e[a]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${a.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${A}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${A}`}case"invalid_value":return a.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${N(a.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${v(a.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${a.maximum.toString()} ${i.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${a.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin} ${r}${a.minimum.toString()} ${i.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin} ${r}${a.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${r.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${a.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${a.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${v(a.keys,", ")}`;case"invalid_key":return`${a.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${a.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function qL(){return{localeError:QX()}}var IX=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(a){return e[a]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${a.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${A}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${r} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${A}`}case"invalid_value":return a.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${N(a.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=t(a.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=t(a.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${r.prefix}"`:r.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${r.suffix}"`:r.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${r.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:r.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${r.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[r.format]??a.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${a.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${v(a.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${a.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${a.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function zL(){return{localeError:IX()}}var _X=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(a){return e[a]??null}let n={regex:"girdi",email:"e-posta adresi",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 tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${a.expected}, al\u0131nan ${A}`:`Ge\xE7ersiz de\u011Fer: beklenen ${r}, al\u0131nan ${A}`}case"invalid_value":return a.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${N(a.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${r}${a.maximum.toString()} ${i.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${r}${a.minimum.toString()} ${i.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ge\xE7ersiz metin: "${r.prefix}" ile ba\u015Flamal\u0131`:r.format==="ends_with"?`Ge\xE7ersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Ge\xE7ersiz metin: "${r.includes}" i\xE7ermeli`:r.format==="regex"?`Ge\xE7ersiz metin: ${r.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[r.format]??a.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${a.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${a.keys.length>1?"lar":""}: ${v(a.keys,", ")}`;case"invalid_key":return`${a.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${a.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function YL(){return{localeError:_X()}}var vX=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(a){return e[a]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${a.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${A}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${r}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${A}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${N(a.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} \u0431\u0443\u0434\u0435 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${a.keys.length>1?"\u0456":""}: ${v(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${a.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function mb(){return{localeError:vX()}}function KL(){return mb()}var xX=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(a){return e[a]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${a.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${A} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${r} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${A} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return a.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${N(a.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${v(a.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${r}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${r}${a.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u06D2 ${r}${a.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u0627 ${r}${a.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${r.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${a.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${a.keys.length>1?"\u0632":""}: ${v(a.keys,"\u060C ")}`;case"invalid_key":return`${a.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${a.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function JL(){return{localeError:xX()}}var DX=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(a){return e[a]??null}let n={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${a.expected}, qabul qilingan ${A}`:`Noto\u2018g\u2018ri kirish: kutilgan ${r}, qabul qilingan ${A}`}case"invalid_value":return a.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${N(a.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Juda katta: kutilgan ${a.origin??"qiymat"} ${r}${a.maximum.toString()} ${i.unit} ${i.verb}`:`Juda katta: kutilgan ${a.origin??"qiymat"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Juda kichik: kutilgan ${a.origin} ${r}${a.minimum.toString()} ${i.unit} ${i.verb}`:`Juda kichik: kutilgan ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${r.prefix}" bilan boshlanishi kerak`:r.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${r.suffix}" bilan tugashi kerak`:r.format==="includes"?`Noto\u2018g\u2018ri satr: "${r.includes}" ni o\u2018z ichiga olishi kerak`:r.format==="regex"?`Noto\u2018g\u2018ri satr: ${r.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[r.format]??a.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${a.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${a.keys.length>1?"lar":""}: ${v(a.keys,", ")}`;case"invalid_key":return`${a.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${a.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function WL(){return{localeError:DX()}}var FX=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(a){return e[a]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",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:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${a.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${A}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${r}, nh\u1EADn \u0111\u01B0\u1EE3c ${A}`}case"invalid_value":return a.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${N(a.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${r.prefix}"`:r.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${r.suffix}"`:r.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${r.includes}"`:r.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${r.pattern}`:`${n[r.format]??a.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${a.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${v(a.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${a.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${a.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function ZL(){return{localeError:FX()}}var SX=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(a){return e[a]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${a.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${A}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${r}\uFF0C\u5B9E\u9645\u63A5\u6536 ${A}`}case"invalid_value":return a.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${N(a.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${r}${a.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${r}${a.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.prefix}" \u5F00\u5934`:r.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.suffix}" \u7ED3\u5C3E`:r.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${r.pattern}`:`\u65E0\u6548${n[r.format]??a.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${a.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${v(a.keys,", ")}`;case"invalid_key":return`${a.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${a.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function VL(){return{localeError:SX()}}var LX=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(a){return e[a]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${a.expected}\uFF0C\u4F46\u6536\u5230 ${A}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${r}\uFF0C\u4F46\u6536\u5230 ${A}`}case"invalid_value":return a.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${N(a.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${r}${a.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${r}${a.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.prefix}" \u958B\u982D`:r.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.suffix}" \u7D50\u5C3E`:r.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${r.pattern}`:`\u7121\u6548\u7684 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${a.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${a.keys.length>1?"\u5011":""}\uFF1A${v(a.keys,"\u3001")}`;case"invalid_key":return`${a.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${a.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function XL(){return{localeError:LX()}}var RX=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(a){return e[a]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=M(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${a.expected}, \xE0m\u1ECD\u0300 a r\xED ${A}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${r}, \xE0m\u1ECD\u0300 a r\xED ${A}`}case"invalid_value":return a.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${N(a.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${v(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin??"iye"} ${i.verb} ${r}${a.maximum} ${i.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${r}${a.maximum}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin} ${i.verb} ${r}${a.minimum} ${i.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${r}${a.minimum}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${r.prefix}"`:r.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${r.suffix}"`:r.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${r.includes}"`:r.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${r.pattern}`:`A\u1E63\xEC\u1E63e: ${n[r.format]??a.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${a.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${v(a.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${a.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${a.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function eR(){return{localeError:RX()}}var tR,QQ=Symbol("ZodOutput"),IQ=Symbol("ZodInput"),fb=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let a={...o,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function bb(){return new fb}(tR=globalThis).__zod_globalRegistry??(tR.__zod_globalRegistry=bb());var Rn=globalThis.__zod_globalRegistry;function _Q(e,t){return new e({type:"string",...H(t)})}function vQ(e,t){return new e({type:"string",coerce:!0,...H(t)})}function hb(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...H(t)})}function Wl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...H(t)})}function Bb(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...H(t)})}function yb(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...H(t)})}function Cb(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...H(t)})}function wb(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...H(t)})}function Zl(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...H(t)})}function Eb(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...H(t)})}function kb(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...H(t)})}function Qb(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...H(t)})}function Ib(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...H(t)})}function _b(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...H(t)})}function vb(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...H(t)})}function xb(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...H(t)})}function Db(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...H(t)})}function Fb(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...H(t)})}function xQ(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...H(t)})}function Sb(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...H(t)})}function Lb(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...H(t)})}function Rb(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...H(t)})}function Nb(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...H(t)})}function $b(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...H(t)})}function Mb(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...H(t)})}var DQ={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function FQ(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...H(t)})}function SQ(e,t){return new e({type:"string",format:"date",check:"string_format",...H(t)})}function LQ(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...H(t)})}function RQ(e,t){return new e({type:"string",format:"duration",check:"string_format",...H(t)})}function NQ(e,t){return new e({type:"number",checks:[],...H(t)})}function $Q(e,t){return new e({type:"number",coerce:!0,checks:[],...H(t)})}function MQ(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...H(t)})}function jQ(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...H(t)})}function PQ(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...H(t)})}function GQ(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...H(t)})}function HQ(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...H(t)})}function UQ(e,t){return new e({type:"boolean",...H(t)})}function TQ(e,t){return new e({type:"boolean",coerce:!0,...H(t)})}function OQ(e,t){return new e({type:"bigint",...H(t)})}function qQ(e,t){return new e({type:"bigint",coerce:!0,...H(t)})}function zQ(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...H(t)})}function YQ(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...H(t)})}function KQ(e,t){return new e({type:"symbol",...H(t)})}function JQ(e,t){return new e({type:"undefined",...H(t)})}function WQ(e,t){return new e({type:"null",...H(t)})}function ZQ(e){return new e({type:"any"})}function VQ(e){return new e({type:"unknown"})}function XQ(e,t){return new e({type:"never",...H(t)})}function eI(e,t){return new e({type:"void",...H(t)})}function tI(e,t){return new e({type:"date",...H(t)})}function nI(e,t){return new e({type:"date",coerce:!0,...H(t)})}function aI(e,t){return new e({type:"nan",...H(t)})}function gr(e,t){return new nb({check:"less_than",...H(t),value:e,inclusive:!1})}function Ga(e,t){return new nb({check:"less_than",...H(t),value:e,inclusive:!0})}function mr(e,t){return new ab({check:"greater_than",...H(t),value:e,inclusive:!1})}function oa(e,t){return new ab({check:"greater_than",...H(t),value:e,inclusive:!0})}function jb(e){return mr(0,e)}function Pb(e){return gr(0,e)}function Gb(e){return Ga(0,e)}function Hb(e){return oa(0,e)}function fA(e,t){return new Wk({check:"multiple_of",...H(t),value:e})}function bA(e,t){return new Xk({check:"max_size",...H(t),maximum:e})}function fr(e,t){return new e0({check:"min_size",...H(t),minimum:e})}function Cs(e,t){return new t0({check:"size_equals",...H(t),size:e})}function ws(e,t){return new n0({check:"max_length",...H(t),maximum:e})}function pi(e,t){return new a0({check:"min_length",...H(t),minimum:e})}function Es(e,t){return new o0({check:"length_equals",...H(t),length:e})}function wu(e,t){return new r0({check:"string_format",format:"regex",...H(t),pattern:e})}function Eu(e){return new i0({check:"string_format",format:"lowercase",...H(e)})}function ku(e){return new A0({check:"string_format",format:"uppercase",...H(e)})}function Qu(e,t){return new s0({check:"string_format",format:"includes",...H(t),includes:e})}function Iu(e,t){return new c0({check:"string_format",format:"starts_with",...H(t),prefix:e})}function _u(e,t){return new u0({check:"string_format",format:"ends_with",...H(t),suffix:e})}function Ub(e,t,n){return new d0({check:"property",property:e,schema:t,...H(n)})}function vu(e,t){return new l0({check:"mime_type",mime:e,...H(t)})}function So(e){return new p0({check:"overwrite",tx:e})}function xu(e){return So(t=>t.normalize(e))}function Du(){return So(e=>e.trim())}function Fu(){return So(e=>e.toLowerCase())}function Su(){return So(e=>e.toUpperCase())}function Lu(){return So(e=>ck(e))}function oI(e,t,n){return new e({type:"array",element:t,...H(n)})}function $X(e,t,n){return new e({type:"union",options:t,...H(n)})}function MX(e,t,n){return new e({type:"union",options:t,inclusive:!1,...H(n)})}function jX(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...H(o)})}function PX(e,t,n){return new e({type:"intersection",left:t,right:n})}function GX(e,t,n,o){let a=n instanceof ie,r=a?o:n,i=a?n:null;return new e({type:"tuple",items:t,rest:i,...H(r)})}function HX(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...H(o)})}function UX(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...H(o)})}function TX(e,t,n){return new e({type:"set",valueType:t,...H(n)})}function OX(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(a=>[a,a])):t;return new e({type:"enum",entries:o,...H(n)})}function qX(e,t,n){return new e({type:"enum",entries:t,...H(n)})}function zX(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...H(n)})}function rI(e,t){return new e({type:"file",...H(t)})}function YX(e,t){return new e({type:"transform",transform:t})}function KX(e,t){return new e({type:"optional",innerType:t})}function JX(e,t){return new e({type:"nullable",innerType:t})}function WX(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():dk(n)}})}function ZX(e,t,n){return new e({type:"nonoptional",innerType:t,...H(n)})}function VX(e,t){return new e({type:"success",innerType:t})}function XX(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function eee(e,t,n){return new e({type:"pipe",in:t,out:n})}function tee(e,t){return new e({type:"readonly",innerType:t})}function nee(e,t,n){return new e({type:"template_literal",parts:t,...H(n)})}function aee(e,t){return new e({type:"lazy",getter:t})}function oee(e,t){return new e({type:"promise",innerType:t})}function iI(e,t,n){let o=H(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function AI(e,t,n){return new e({type:"custom",check:"custom",fn:t,...H(n)})}function sI(e,t){let n=nR(o=>(o.addIssue=a=>{if(typeof a=="string")o.issues.push(mu(a,o.value,n._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=o.value),r.inst??(r.inst=n),r.continue??(r.continue=!n._zod.def.abort),o.issues.push(mu(r))}},e(o.value,o)),t);return n}function nR(e,t){let n=new ot({check:"custom",...H(t)});return n._zod.check=e,n}function cI(e){let t=new ot({check:"describe"});return t._zod.onattach=[n=>{let o=Rn.get(n)??{};Rn.add(n,{...o,description:e})}],t._zod.check=()=>{},t}function uI(e){let t=new ot({check:"meta"});return t._zod.onattach=[n=>{let o=Rn.get(n)??{};Rn.add(n,{...o,...e})}],t._zod.check=()=>{},t}function dI(e,t){let n=H(t),o=n.truthy??["true","1","yes","on","y","enabled"],a=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),a=a.map(g=>typeof g=="string"?g.toLowerCase():g));let r=new Set(o),i=new Set(a),A=e.Codec??Yl,s=e.Boolean??ql,c=e.String??ys,u=new c({type:"string",error:n.error}),l=new s({type:"boolean",error:n.error}),p=new A({type:"pipe",in:u,out:l,transform:((g,f)=>{let B=g;return n.case!=="sensitive"&&(B=B.toLowerCase()),r.has(B)?!0:i.has(B)?!1:(f.issues.push({code:"invalid_value",expected:"stringbool",values:[...r,...i],input:f.value,inst:p,continue:!1}),{})}),reverseTransform:((g,f)=>g===!0?o[0]||"true":a[0]||"false"),error:n.error});return p}function Ru(e,t,n,o={}){let a=H(o),r={...H(o),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:A=>n.test(A),...a};return n instanceof RegExp&&(r.pattern=n),new e(r)}function hA(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??Rn,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Ue(e,t,n={path:[],schemaPath:[]}){var o;let a=e._zod.def,r=t.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;let i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);let A=e._zod.toJSONSchema?.();if(A)i.schema=A;else{let u={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,u);else{let p=i.schema,g=t.processors[a.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);g(e,t,p,u)}let l=e._zod.parent;l&&(i.ref||(i.ref=l),Ue(l,t,u),t.seen.get(l).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&ra(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((o=i.schema).default??(o.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function BA(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let i of e.seen.entries()){let A=e.metadataRegistry.get(i[0])?.id;if(A){let s=o.get(A);if(s&&s!==i[0])throw new Error(`Duplicate schema id "${A}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(A,i[0])}}let a=i=>{let A=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let l=e.external.registry.get(i[0])?.id,p=e.external.uri??(f=>f);if(l)return{ref:p(l)};let g=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=g,{defId:g,ref:`${p("__shared")}#/${A}/${g}`}}if(i[1]===n)return{ref:"#"};let c=`#/${A}/`,u=i[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+u}},r=i=>{if(i[1].schema.$ref)return;let A=i[1],{ref:s,defId:c}=a(i);A.def={...A.schema},c&&(A.defId=c);let u=A.schema;for(let l in u)delete u[l];u.$ref=s};if(e.cycles==="throw")for(let i of e.seen.entries()){let A=i[1];if(A.cycle)throw new Error(`Cycle detected: #/${A.cycle?.join("/")}/<root>
|
|
74
74
|
|
|
75
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let A=i[1];if(t===i[0]){r(i);continue}if(e.external){let c=e.external.registry.get(i[0])?.id;if(t!==i[0]&&c){r(i);continue}}if(e.metadataRegistry.get(i[0])?.id){r(i);continue}if(A.cycle){r(i);continue}if(A.count>1&&e.reused==="ref"){r(i);continue}}}function yA(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=A=>{let s=e.seen.get(A);if(s.ref===null)return;let c=s.def??s.schema,u={...c},l=s.ref;if(s.ref=null,l){o(l);let g=e.seen.get(l),f=g.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(f)):Object.assign(c,f),Object.assign(c,u),A._zod.parent===l)for(let y in c)y==="$ref"||y==="allOf"||y in u||delete c[y];if(f.$ref&&g.def)for(let y in c)y==="$ref"||y==="allOf"||y in g.def&&JSON.stringify(c[y])===JSON.stringify(g.def[y])&&delete c[y]}let p=A._zod.parent;if(p&&p!==l){o(p);let g=e.seen.get(p);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let f in c)f==="$ref"||f==="allOf"||f in g.def&&JSON.stringify(c[f])===JSON.stringify(g.def[f])&&delete c[f]}e.override({zodSchema:A,jsonSchema:c,path:s.path??[]})};for(let A of[...e.seen.entries()].reverse())o(A[0]);let a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let A=e.external.registry.get(t)?.id;if(!A)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(A)}Object.assign(a,n.def??n.schema);let r=e.metadataRegistry.get(t)?.id;r!==void 0&&a.id===r&&delete a.id;let i=e.external?.defs??{};for(let A of e.seen.entries()){let s=A[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?a.$defs=i:a.definitions=i);try{let A=JSON.parse(JSON.stringify(a));return Object.defineProperty(A,"~standard",{value:{...t["~standard"],jsonSchema:{input:Nu(t,"input",e.processors),output:Nu(t,"output",e.processors)}},enumerable:!1,writable:!1}),A}catch{throw new Error("Error converting schema to JSON.")}}function ra(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return ra(o.element,n);if(o.type==="set")return ra(o.valueType,n);if(o.type==="lazy")return ra(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return ra(o.innerType,n);if(o.type==="intersection")return ra(o.left,n)||ra(o.right,n);if(o.type==="record"||o.type==="map")return ra(o.keyType,n)||ra(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ra(o.in,n)||ra(o.out,n);if(o.type==="object"){for(let a in o.shape)if(ra(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(let a of o.options)if(ra(a,n))return!0;return!1}if(o.type==="tuple"){for(let a of o.items)if(ra(a,n))return!0;return!!(o.rest&&ra(o.rest,n))}return!1}var lI=(e,t={})=>n=>{let o=hA({...n,processors:t});return Ue(e,o),BA(o,e),yA(o,e)},Nu=(e,t,n={})=>o=>{let{libraryOptions:a,target:r}=o??{},i=hA({...a??{},target:r,io:t,processors:n});return Ue(e,i),BA(i,e),yA(i,e)};var ree={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},pI=(e,t,n,o)=>{let a=n;a.type="string";let{minimum:r,maximum:i,format:A,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof i=="number"&&(a.maxLength=i),A&&(a.format=ree[A]??A,a.format===""&&delete a.format,A==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){let u=[...s];u.length===1?a.pattern=u[0].source:u.length>1&&(a.allOf=[...u.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},gI=(e,t,n,o)=>{let a=n,{minimum:r,maximum:i,format:A,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof A=="string"&&A.includes("int")?a.type="integer":a.type="number";let l=typeof u=="number"&&u>=(r??Number.NEGATIVE_INFINITY),p=typeof c=="number"&&c<=(i??Number.POSITIVE_INFINITY),g=t.target==="draft-04"||t.target==="openapi-3.0";l?g?(a.minimum=u,a.exclusiveMinimum=!0):a.exclusiveMinimum=u:typeof r=="number"&&(a.minimum=r),p?g?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof i=="number"&&(a.maximum=i),typeof s=="number"&&(a.multipleOf=s)},mI=(e,t,n,o)=>{n.type="boolean"},fI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},bI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},hI=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},BI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},yI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},CI=(e,t,n,o)=>{n.not={}},wI=(e,t,n,o)=>{},EI=(e,t,n,o)=>{},kI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},QI=(e,t,n,o)=>{let a=e._zod.def,r=Rl(a.entries);r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),n.enum=r},II=(e,t,n,o)=>{let a=e._zod.def,r=[];for(let i of a.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(i))}else r.push(i);if(r.length!==0)if(r.length===1){let i=r[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),r.every(i=>typeof i=="boolean")&&(n.type="boolean"),r.every(i=>i===null)&&(n.type="null"),n.enum=r},_I=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},vI=(e,t,n,o)=>{let a=n,r=e._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},xI=(e,t,n,o)=>{let a=n,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:A,mime:s}=e._zod.bag;i!==void 0&&(r.minLength=i),A!==void 0&&(r.maxLength=A),s?s.length===1?(r.contentMediaType=s[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(a,r)},DI=(e,t,n,o)=>{n.type="boolean"},FI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},SI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},LI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},RI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},NI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},$I=(e,t,n,o)=>{let a=n,r=e._zod.def,{minimum:i,maximum:A}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof A=="number"&&(a.maxItems=A),a.type="array",a.items=Ue(r.element,t,{...o,path:[...o.path,"items"]})},MI=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object",a.properties={};let i=r.shape;for(let c in i)a.properties[c]=Ue(i[c],t,{...o,path:[...o.path,"properties",c]});let A=new Set(Object.keys(i)),s=new Set([...A].filter(c=>{let u=r.shape[c]._zod;return t.io==="input"?u.optin===void 0:u.optout===void 0}));s.size>0&&(a.required=Array.from(s)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=Ue(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},Ob=(e,t,n,o)=>{let a=e._zod.def,r=a.inclusive===!1,i=a.options.map((A,s)=>Ue(A,t,{...o,path:[...o.path,r?"oneOf":"anyOf",s]}));r?n.oneOf=i:n.anyOf=i},jI=(e,t,n,o)=>{let a=e._zod.def,r=Ue(a.left,t,{...o,path:[...o.path,"allOf",0]}),i=Ue(a.right,t,{...o,path:[...o.path,"allOf",1]}),A=c=>"allOf"in c&&Object.keys(c).length===1,s=[...A(r)?r.allOf:[r],...A(i)?i.allOf:[i]];n.allOf=s},PI=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",A=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=r.items.map((p,g)=>Ue(p,t,{...o,path:[...o.path,i,g]})),c=r.rest?Ue(r.rest,t,{...o,path:[...o.path,A,...t.target==="openapi-3.0"?[r.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=s,c&&(a.items=c)):t.target==="openapi-3.0"?(a.items={anyOf:s},c&&a.items.anyOf.push(c),a.minItems=s.length,c||(a.maxItems=s.length)):(a.items=s,c&&(a.additionalItems=c));let{minimum:u,maximum:l}=e._zod.bag;typeof u=="number"&&(a.minItems=u),typeof l=="number"&&(a.maxItems=l)},GI=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object";let i=r.keyType,s=i._zod.bag?.patterns;if(r.mode==="loose"&&s&&s.size>0){let u=Ue(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(let l of s)a.patternProperties[l.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=Ue(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=Ue(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=i._zod.values;if(c){let u=[...c].filter(l=>typeof l=="string"||typeof l=="number");u.length>0&&(a.required=u)}},HI=(e,t,n,o)=>{let a=e._zod.def,r=Ue(a.innerType,t,o),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},UI=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},TI=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},OI=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},qI=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},zI=(e,t,n,o)=>{let a=e._zod.def,r=a.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?r?a.out:a.in:a.out;Ue(i,t,o);let A=t.seen.get(e);A.ref=i},YI=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.readOnly=!0},KI=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},qb=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},JI=(e,t,n,o)=>{let a=e._zod.innerType;Ue(a,t,o);let r=t.seen.get(e);r.ref=a},Tb={string:pI,number:gI,boolean:mI,bigint:fI,symbol:bI,null:hI,undefined:BI,void:yI,never:CI,any:wI,unknown:EI,date:kI,enum:QI,literal:II,nan:_I,template_literal:vI,file:xI,success:DI,custom:FI,function:SI,transform:LI,map:RI,set:NI,array:$I,object:MI,union:Ob,intersection:jI,tuple:PI,record:GI,nullable:HI,nonoptional:UI,default:TI,prefault:OI,catch:qI,pipe:zI,readonly:YI,promise:KI,optional:qb,lazy:JI};function zb(e,t){if("_idmap"in e){let o=e,a=hA({...t,processors:Tb}),r={};for(let s of o._idmap.entries()){let[c,u]=s;Ue(u,a)}let i={},A={registry:o,uri:t?.uri,defs:r};a.external=A;for(let s of o._idmap.entries()){let[c,u]=s;BA(a,u),i[c]=yA(a,u)}if(Object.keys(r).length>0){let s=a.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[s]:r}}return{schemas:i}}let n=hA({...t,processors:Tb});return Ue(e,n),BA(n,e),yA(n,e)}var Yb=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=hA({processors:Tb,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return Ue(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),BA(this.ctx,t);let o=yA(this.ctx,t),{"~standard":a,...r}=o;return r}};var aR={};var Vl={};F(Vl,{ZodAny:()=>B_,ZodArray:()=>E_,ZodBase64:()=>gh,ZodBase64URL:()=>mh,ZodBigInt:()=>Tu,ZodBigIntFormat:()=>hh,ZodBoolean:()=>Uu,ZodCIDRv4:()=>lh,ZodCIDRv6:()=>ph,ZodCUID:()=>rh,ZodCUID2:()=>ih,ZodCatch:()=>q_,ZodCodec:()=>up,ZodCustom:()=>dp,ZodCustomStringFormat:()=>Gu,ZodDate:()=>rp,ZodDefault:()=>P_,ZodDiscriminatedUnion:()=>Q_,ZodE164:()=>fh,ZodEmail:()=>nh,ZodEmoji:()=>ah,ZodEnum:()=>ju,ZodExactOptional:()=>$_,ZodFile:()=>R_,ZodFunction:()=>tv,ZodGUID:()=>ep,ZodIPv4:()=>uh,ZodIPv6:()=>dh,ZodIntersection:()=>I_,ZodJWT:()=>bh,ZodKSUID:()=>ch,ZodLazy:()=>V_,ZodLiteral:()=>L_,ZodMAC:()=>l_,ZodMap:()=>F_,ZodNaN:()=>Y_,ZodNanoID:()=>oh,ZodNever:()=>C_,ZodNonOptional:()=>kh,ZodNull:()=>b_,ZodNullable:()=>j_,ZodNumber:()=>Hu,ZodNumberFormat:()=>Qs,ZodObject:()=>Ap,ZodOptional:()=>Eh,ZodPipe:()=>cp,ZodPrefault:()=>H_,ZodPreprocess:()=>K_,ZodPromise:()=>ev,ZodReadonly:()=>J_,ZodRecord:()=>Mu,ZodSet:()=>S_,ZodString:()=>Pu,ZodStringFormat:()=>Xe,ZodSuccess:()=>O_,ZodSymbol:()=>m_,ZodTemplateLiteral:()=>Z_,ZodTransform:()=>N_,ZodTuple:()=>v_,ZodType:()=>ge,ZodULID:()=>Ah,ZodURL:()=>op,ZodUUID:()=>br,ZodUndefined:()=>f_,ZodUnion:()=>sp,ZodUnknown:()=>y_,ZodVoid:()=>w_,ZodXID:()=>sh,ZodXor:()=>k_,_ZodString:()=>th,_default:()=>G_,_function:()=>lN,any:()=>TR,array:()=>ip,base64:()=>IR,base64url:()=>_R,bigint:()=>jR,boolean:()=>g_,catch:()=>z_,check:()=>pN,cidrv4:()=>kR,cidrv6:()=>QR,codec:()=>sN,cuid:()=>fR,cuid2:()=>bR,custom:()=>gN,date:()=>qR,describe:()=>mN,discriminatedUnion:()=>ZR,e164:()=>vR,email:()=>iR,emoji:()=>gR,enum:()=>Ch,exactOptional:()=>M_,file:()=>oN,float32:()=>RR,float64:()=>NR,function:()=>lN,guid:()=>AR,hash:()=>LR,hex:()=>SR,hostname:()=>FR,httpUrl:()=>pR,instanceof:()=>bN,int:()=>Xb,int32:()=>$R,int64:()=>PR,intersection:()=>__,invertCodec:()=>cN,ipv4:()=>CR,ipv6:()=>ER,json:()=>BN,jwt:()=>xR,keyof:()=>zR,ksuid:()=>yR,lazy:()=>X_,literal:()=>aN,looseObject:()=>JR,looseRecord:()=>XR,mac:()=>wR,map:()=>eN,meta:()=>fN,nan:()=>AN,nanoid:()=>mR,nativeEnum:()=>nN,never:()=>Bh,nonoptional:()=>T_,null:()=>h_,nullable:()=>np,nullish:()=>rN,number:()=>p_,object:()=>YR,optional:()=>tp,partialRecord:()=>VR,pipe:()=>eh,prefault:()=>U_,preprocess:()=>yN,promise:()=>dN,readonly:()=>W_,record:()=>D_,refine:()=>nv,set:()=>tN,strictObject:()=>KR,string:()=>Xl,stringFormat:()=>DR,stringbool:()=>hN,success:()=>iN,superRefine:()=>av,symbol:()=>HR,templateLiteral:()=>uN,transform:()=>wh,tuple:()=>x_,uint32:()=>MR,uint64:()=>GR,ulid:()=>hR,undefined:()=>UR,union:()=>yh,unknown:()=>ks,url:()=>lR,uuid:()=>sR,uuidv4:()=>cR,uuidv6:()=>uR,uuidv7:()=>dR,void:()=>OR,xid:()=>BR,xor:()=>WR});var Kb={};F(Kb,{endsWith:()=>_u,gt:()=>mr,gte:()=>oa,includes:()=>Qu,length:()=>Es,lowercase:()=>Eu,lt:()=>gr,lte:()=>Ga,maxLength:()=>ws,maxSize:()=>bA,mime:()=>vu,minLength:()=>pi,minSize:()=>fr,multipleOf:()=>fA,negative:()=>Pb,nonnegative:()=>Hb,nonpositive:()=>Gb,normalize:()=>xu,overwrite:()=>So,positive:()=>jb,property:()=>Ub,regex:()=>wu,size:()=>Cs,slugify:()=>Lu,startsWith:()=>Iu,toLowerCase:()=>Fu,toUpperCase:()=>Su,trim:()=>Du,uppercase:()=>ku});var $u={};F($u,{ZodISODate:()=>Wb,ZodISODateTime:()=>Jb,ZodISODuration:()=>Vb,ZodISOTime:()=>Zb,date:()=>ZI,datetime:()=>WI,duration:()=>XI,time:()=>VI});var Jb=I("ZodISODateTime",(e,t)=>{_0.init(e,t),Xe.init(e,t)});function WI(e){return FQ(Jb,e)}var Wb=I("ZodISODate",(e,t)=>{v0.init(e,t),Xe.init(e,t)});function ZI(e){return SQ(Wb,e)}var Zb=I("ZodISOTime",(e,t)=>{x0.init(e,t),Xe.init(e,t)});function VI(e){return LQ(Zb,e)}var Vb=I("ZodISODuration",(e,t)=>{D0.init(e,t),Xe.init(e,t)});function XI(e){return RQ(Vb,e)}var oR=(e,t)=>{Pl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Hl(e,n)},flatten:{value:n=>Gl(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,pu,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,pu,2)}},isEmpty:{get(){return e.issues.length===0}}})},Aee=I("ZodError",oR),ka=I("ZodError",oR,{Parent:Error});var e_=fu(ka),t_=bu(ka),n_=hu(ka),a_=Bu(ka),o_=zf(ka),r_=Yf(ka),i_=Kf(ka),A_=Jf(ka),s_=Wf(ka),c_=Zf(ka),u_=Vf(ka),d_=Xf(ka);var rR=new WeakMap;function ap(e,t,n){let o=Object.getPrototypeOf(e),a=rR.get(o);if(a||(a=new Set,rR.set(o,a)),!a.has(t)){a.add(t);for(let r in n){let i=n[r];Object.defineProperty(o,r,{configurable:!0,enumerable:!1,get(){let A=i.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:A}),A},set(A){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:A})}})}}}var ge=I("ZodType",(e,t)=>(ie.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Nu(e,"input"),output:Nu(e,"output")}}),e.toJSONSchema=lI(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>e_(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>n_(e,n,o),e.parseAsync=async(n,o)=>t_(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>a_(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>o_(e,n,o),e.decode=(n,o)=>r_(e,n,o),e.encodeAsync=async(n,o)=>i_(e,n,o),e.decodeAsync=async(n,o)=>A_(e,n,o),e.safeEncode=(n,o)=>s_(e,n,o),e.safeDecode=(n,o)=>c_(e,n,o),e.safeEncodeAsync=async(n,o)=>u_(e,n,o),e.safeDecodeAsync=async(n,o)=>d_(e,n,o),ap(e,"ZodType",{check(...n){let o=this.def;return this.clone(j.mergeDefs(o,{checks:[...o.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return na(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(nv(n,o))},superRefine(n,o){return this.check(av(n,o))},overwrite(n){return this.check(So(n))},optional(){return tp(this)},exactOptional(){return M_(this)},nullable(){return np(this)},nullish(){return tp(np(this))},nonoptional(n){return T_(this,n)},array(){return ip(this)},or(n){return yh([this,n])},and(n){return __(this,n)},transform(n){return eh(this,wh(n))},default(n){return G_(this,n)},prefault(n){return U_(this,n)},catch(n){return z_(this,n)},pipe(n){return eh(this,n)},readonly(){return W_(this)},describe(n){let o=this.clone();return Rn.add(o,{description:n}),o},meta(...n){if(n.length===0)return Rn.get(this);let o=this.clone();return Rn.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Rn.get(e)?.description},configurable:!0}),e)),th=I("_ZodString",(e,t)=>{ys.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,a,r)=>pI(e,o,a,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,ap(e,"_ZodString",{regex(...o){return this.check(wu(...o))},includes(...o){return this.check(Qu(...o))},startsWith(...o){return this.check(Iu(...o))},endsWith(...o){return this.check(_u(...o))},min(...o){return this.check(pi(...o))},max(...o){return this.check(ws(...o))},length(...o){return this.check(Es(...o))},nonempty(...o){return this.check(pi(1,...o))},lowercase(o){return this.check(Eu(o))},uppercase(o){return this.check(ku(o))},trim(){return this.check(Du())},normalize(...o){return this.check(xu(...o))},toLowerCase(){return this.check(Fu())},toUpperCase(){return this.check(Su())},slugify(){return this.check(Lu())}})}),Pu=I("ZodString",(e,t)=>{ys.init(e,t),th.init(e,t),e.email=n=>e.check(hb(nh,n)),e.url=n=>e.check(Zl(op,n)),e.jwt=n=>e.check(Mb(bh,n)),e.emoji=n=>e.check(Eb(ah,n)),e.guid=n=>e.check(Wl(ep,n)),e.uuid=n=>e.check(Bb(br,n)),e.uuidv4=n=>e.check(yb(br,n)),e.uuidv6=n=>e.check(Cb(br,n)),e.uuidv7=n=>e.check(wb(br,n)),e.nanoid=n=>e.check(kb(oh,n)),e.guid=n=>e.check(Wl(ep,n)),e.cuid=n=>e.check(Qb(rh,n)),e.cuid2=n=>e.check(Ib(ih,n)),e.ulid=n=>e.check(_b(Ah,n)),e.base64=n=>e.check(Rb(gh,n)),e.base64url=n=>e.check(Nb(mh,n)),e.xid=n=>e.check(vb(sh,n)),e.ksuid=n=>e.check(xb(ch,n)),e.ipv4=n=>e.check(Db(uh,n)),e.ipv6=n=>e.check(Fb(dh,n)),e.cidrv4=n=>e.check(Sb(lh,n)),e.cidrv6=n=>e.check(Lb(ph,n)),e.e164=n=>e.check($b(fh,n)),e.datetime=n=>e.check(WI(n)),e.date=n=>e.check(ZI(n)),e.time=n=>e.check(VI(n)),e.duration=n=>e.check(XI(n))});function Xl(e){return _Q(Pu,e)}var Xe=I("ZodStringFormat",(e,t)=>{Ve.init(e,t),th.init(e,t)}),nh=I("ZodEmail",(e,t)=>{h0.init(e,t),Xe.init(e,t)});function iR(e){return hb(nh,e)}var ep=I("ZodGUID",(e,t)=>{f0.init(e,t),Xe.init(e,t)});function AR(e){return Wl(ep,e)}var br=I("ZodUUID",(e,t)=>{b0.init(e,t),Xe.init(e,t)});function sR(e){return Bb(br,e)}function cR(e){return yb(br,e)}function uR(e){return Cb(br,e)}function dR(e){return wb(br,e)}var op=I("ZodURL",(e,t)=>{B0.init(e,t),Xe.init(e,t)});function lR(e){return Zl(op,e)}function pR(e){return Zl(op,{protocol:Pa.httpProtocol,hostname:Pa.domain,...j.normalizeParams(e)})}var ah=I("ZodEmoji",(e,t)=>{y0.init(e,t),Xe.init(e,t)});function gR(e){return Eb(ah,e)}var oh=I("ZodNanoID",(e,t)=>{C0.init(e,t),Xe.init(e,t)});function mR(e){return kb(oh,e)}var rh=I("ZodCUID",(e,t)=>{w0.init(e,t),Xe.init(e,t)});function fR(e){return Qb(rh,e)}var ih=I("ZodCUID2",(e,t)=>{E0.init(e,t),Xe.init(e,t)});function bR(e){return Ib(ih,e)}var Ah=I("ZodULID",(e,t)=>{k0.init(e,t),Xe.init(e,t)});function hR(e){return _b(Ah,e)}var sh=I("ZodXID",(e,t)=>{Q0.init(e,t),Xe.init(e,t)});function BR(e){return vb(sh,e)}var ch=I("ZodKSUID",(e,t)=>{I0.init(e,t),Xe.init(e,t)});function yR(e){return xb(ch,e)}var uh=I("ZodIPv4",(e,t)=>{F0.init(e,t),Xe.init(e,t)});function CR(e){return Db(uh,e)}var l_=I("ZodMAC",(e,t)=>{L0.init(e,t),Xe.init(e,t)});function wR(e){return xQ(l_,e)}var dh=I("ZodIPv6",(e,t)=>{S0.init(e,t),Xe.init(e,t)});function ER(e){return Fb(dh,e)}var lh=I("ZodCIDRv4",(e,t)=>{R0.init(e,t),Xe.init(e,t)});function kR(e){return Sb(lh,e)}var ph=I("ZodCIDRv6",(e,t)=>{N0.init(e,t),Xe.init(e,t)});function QR(e){return Lb(ph,e)}var gh=I("ZodBase64",(e,t)=>{M0.init(e,t),Xe.init(e,t)});function IR(e){return Rb(gh,e)}var mh=I("ZodBase64URL",(e,t)=>{j0.init(e,t),Xe.init(e,t)});function _R(e){return Nb(mh,e)}var fh=I("ZodE164",(e,t)=>{P0.init(e,t),Xe.init(e,t)});function vR(e){return $b(fh,e)}var bh=I("ZodJWT",(e,t)=>{G0.init(e,t),Xe.init(e,t)});function xR(e){return Mb(bh,e)}var Gu=I("ZodCustomStringFormat",(e,t)=>{H0.init(e,t),Xe.init(e,t)});function DR(e,t,n={}){return Ru(Gu,e,t,n)}function FR(e){return Ru(Gu,"hostname",Pa.hostname,e)}function SR(e){return Ru(Gu,"hex",Pa.hex,e)}function LR(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,a=Pa[o];if(!a)throw new Error(`Unrecognized hash format: ${o}`);return Ru(Gu,o,a,t)}var Hu=I("ZodNumber",(e,t)=>{sb.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,a,r)=>gI(e,o,a,r),ap(e,"ZodNumber",{gt(o,a){return this.check(mr(o,a))},gte(o,a){return this.check(oa(o,a))},min(o,a){return this.check(oa(o,a))},lt(o,a){return this.check(gr(o,a))},lte(o,a){return this.check(Ga(o,a))},max(o,a){return this.check(Ga(o,a))},int(o){return this.check(Xb(o))},safe(o){return this.check(Xb(o))},positive(o){return this.check(mr(0,o))},nonnegative(o){return this.check(oa(0,o))},negative(o){return this.check(gr(0,o))},nonpositive(o){return this.check(Ga(0,o))},multipleOf(o,a){return this.check(fA(o,a))},step(o,a){return this.check(fA(o,a))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function p_(e){return NQ(Hu,e)}var Qs=I("ZodNumberFormat",(e,t)=>{U0.init(e,t),Hu.init(e,t)});function Xb(e){return MQ(Qs,e)}function RR(e){return jQ(Qs,e)}function NR(e){return PQ(Qs,e)}function $R(e){return GQ(Qs,e)}function MR(e){return HQ(Qs,e)}var Uu=I("ZodBoolean",(e,t)=>{ql.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>mI(e,n,o,a)});function g_(e){return UQ(Uu,e)}var Tu=I("ZodBigInt",(e,t)=>{cb.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,a,r)=>fI(e,o,a,r),e.gte=(o,a)=>e.check(oa(o,a)),e.min=(o,a)=>e.check(oa(o,a)),e.gt=(o,a)=>e.check(mr(o,a)),e.gte=(o,a)=>e.check(oa(o,a)),e.min=(o,a)=>e.check(oa(o,a)),e.lt=(o,a)=>e.check(gr(o,a)),e.lte=(o,a)=>e.check(Ga(o,a)),e.max=(o,a)=>e.check(Ga(o,a)),e.positive=o=>e.check(mr(BigInt(0),o)),e.negative=o=>e.check(gr(BigInt(0),o)),e.nonpositive=o=>e.check(Ga(BigInt(0),o)),e.nonnegative=o=>e.check(oa(BigInt(0),o)),e.multipleOf=(o,a)=>e.check(fA(o,a));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function jR(e){return OQ(Tu,e)}var hh=I("ZodBigIntFormat",(e,t)=>{T0.init(e,t),Tu.init(e,t)});function PR(e){return zQ(hh,e)}function GR(e){return YQ(hh,e)}var m_=I("ZodSymbol",(e,t)=>{O0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>bI(e,n,o,a)});function HR(e){return KQ(m_,e)}var f_=I("ZodUndefined",(e,t)=>{q0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>BI(e,n,o,a)});function UR(e){return JQ(f_,e)}var b_=I("ZodNull",(e,t)=>{z0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>hI(e,n,o,a)});function h_(e){return WQ(b_,e)}var B_=I("ZodAny",(e,t)=>{Y0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>wI(e,n,o,a)});function TR(){return ZQ(B_)}var y_=I("ZodUnknown",(e,t)=>{K0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>EI(e,n,o,a)});function ks(){return VQ(y_)}var C_=I("ZodNever",(e,t)=>{J0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>CI(e,n,o,a)});function Bh(e){return XQ(C_,e)}var w_=I("ZodVoid",(e,t)=>{W0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>yI(e,n,o,a)});function OR(e){return eI(w_,e)}var rp=I("ZodDate",(e,t)=>{Z0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,a,r)=>kI(e,o,a,r),e.min=(o,a)=>e.check(oa(o,a)),e.max=(o,a)=>e.check(Ga(o,a));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function qR(e){return tI(rp,e)}var E_=I("ZodArray",(e,t)=>{V0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>$I(e,n,o,a),e.element=t.element,ap(e,"ZodArray",{min(n,o){return this.check(pi(n,o))},nonempty(n){return this.check(pi(1,n))},max(n,o){return this.check(ws(n,o))},length(n,o){return this.check(Es(n,o))},unwrap(){return this.element}})});function ip(e,t){return oI(E_,e,t)}function zR(e){let t=e._zod.def.shape;return Ch(Object.keys(t))}var Ap=I("ZodObject",(e,t)=>{X0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>MI(e,n,o,a),j.defineLazy(e,"shape",()=>t.shape),ap(e,"ZodObject",{keyof(){return Ch(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:ks()})},loose(){return this.clone({...this._zod.def,catchall:ks()})},strict(){return this.clone({...this._zod.def,catchall:Bh()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return j.extend(this,n)},safeExtend(n){return j.safeExtend(this,n)},merge(n){return j.merge(this,n)},pick(n){return j.pick(this,n)},omit(n){return j.omit(this,n)},partial(...n){return j.partial(Eh,this,n[0])},required(...n){return j.required(kh,this,n[0])}})});function YR(e,t){let n={type:"object",shape:e??{},...j.normalizeParams(t)};return new Ap(n)}function KR(e,t){return new Ap({type:"object",shape:e,catchall:Bh(),...j.normalizeParams(t)})}function JR(e,t){return new Ap({type:"object",shape:e,catchall:ks(),...j.normalizeParams(t)})}var sp=I("ZodUnion",(e,t)=>{zl.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ob(e,n,o,a),e.options=t.options});function yh(e,t){return new sp({type:"union",options:e,...j.normalizeParams(t)})}var k_=I("ZodXor",(e,t)=>{sp.init(e,t),eQ.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ob(e,n,o,a),e.options=t.options});function WR(e,t){return new k_({type:"union",options:e,inclusive:!1,...j.normalizeParams(t)})}var Q_=I("ZodDiscriminatedUnion",(e,t)=>{sp.init(e,t),tQ.init(e,t)});function ZR(e,t,n){return new Q_({type:"union",options:t,discriminator:e,...j.normalizeParams(n)})}var I_=I("ZodIntersection",(e,t)=>{nQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>jI(e,n,o,a)});function __(e,t){return new I_({type:"intersection",left:e,right:t})}var v_=I("ZodTuple",(e,t)=>{ub.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>PI(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function x_(e,t,n){let o=t instanceof ie,a=o?n:t,r=o?t:null;return new v_({type:"tuple",items:e,rest:r,...j.normalizeParams(a)})}var Mu=I("ZodRecord",(e,t)=>{aQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>GI(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function D_(e,t,n){return!t||!t._zod?new Mu({type:"record",keyType:Xl(),valueType:e,...j.normalizeParams(t)}):new Mu({type:"record",keyType:e,valueType:t,...j.normalizeParams(n)})}function VR(e,t,n){let o=na(e);return o._zod.values=void 0,new Mu({type:"record",keyType:o,valueType:t,...j.normalizeParams(n)})}function XR(e,t,n){return new Mu({type:"record",keyType:e,valueType:t,mode:"loose",...j.normalizeParams(n)})}var F_=I("ZodMap",(e,t)=>{oQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>RI(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(fr(...n)),e.nonempty=n=>e.check(fr(1,n)),e.max=(...n)=>e.check(bA(...n)),e.size=(...n)=>e.check(Cs(...n))});function eN(e,t,n){return new F_({type:"map",keyType:e,valueType:t,...j.normalizeParams(n)})}var S_=I("ZodSet",(e,t)=>{rQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>NI(e,n,o,a),e.min=(...n)=>e.check(fr(...n)),e.nonempty=n=>e.check(fr(1,n)),e.max=(...n)=>e.check(bA(...n)),e.size=(...n)=>e.check(Cs(...n))});function tN(e,t){return new S_({type:"set",valueType:e,...j.normalizeParams(t)})}var ju=I("ZodEnum",(e,t)=>{iQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,a,r)=>QI(e,o,a,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,a)=>{let r={};for(let i of o)if(n.has(i))r[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new ju({...t,checks:[],...j.normalizeParams(a),entries:r})},e.exclude=(o,a)=>{let r={...t.entries};for(let i of o)if(n.has(i))delete r[i];else throw new Error(`Key ${i} not found in enum`);return new ju({...t,checks:[],...j.normalizeParams(a),entries:r})}});function Ch(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new ju({type:"enum",entries:n,...j.normalizeParams(t)})}function nN(e,t){return new ju({type:"enum",entries:e,...j.normalizeParams(t)})}var L_=I("ZodLiteral",(e,t)=>{AQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>II(e,n,o,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function aN(e,t){return new L_({type:"literal",values:Array.isArray(e)?e:[e],...j.normalizeParams(t)})}var R_=I("ZodFile",(e,t)=>{sQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>xI(e,n,o,a),e.min=(n,o)=>e.check(fr(n,o)),e.max=(n,o)=>e.check(bA(n,o)),e.mime=(n,o)=>e.check(vu(Array.isArray(n)?n:[n],o))});function oN(e){return rI(R_,e)}var N_=I("ZodTransform",(e,t)=>{cQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>LI(e,n,o,a),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new dA(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(j.issue(r,n.value,t));else{let i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(j.issue(i))}};let a=t.transform(n.value,n);return a instanceof Promise?a.then(r=>(n.value=r,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function wh(e){return new N_({type:"transform",transform:e})}var Eh=I("ZodOptional",(e,t)=>{db.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>qb(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function tp(e){return new Eh({type:"optional",innerType:e})}var $_=I("ZodExactOptional",(e,t)=>{uQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>qb(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function M_(e){return new $_({type:"optional",innerType:e})}var j_=I("ZodNullable",(e,t)=>{dQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>HI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function np(e){return new j_({type:"nullable",innerType:e})}function rN(e){return tp(np(e))}var P_=I("ZodDefault",(e,t)=>{lQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>TI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function G_(e,t){return new P_({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}var H_=I("ZodPrefault",(e,t)=>{pQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>OI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function U_(e,t){return new H_({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}var kh=I("ZodNonOptional",(e,t)=>{gQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>UI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function T_(e,t){return new kh({type:"nonoptional",innerType:e,...j.normalizeParams(t)})}var O_=I("ZodSuccess",(e,t)=>{mQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>DI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function iN(e){return new O_({type:"success",innerType:e})}var q_=I("ZodCatch",(e,t)=>{fQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>qI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function z_(e,t){return new q_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Y_=I("ZodNaN",(e,t)=>{bQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>_I(e,n,o,a)});function AN(e){return aI(Y_,e)}var cp=I("ZodPipe",(e,t)=>{lb.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>zI(e,n,o,a),e.in=t.in,e.out=t.out});function eh(e,t){return new cp({type:"pipe",in:e,out:t})}var up=I("ZodCodec",(e,t)=>{cp.init(e,t),Yl.init(e,t)});function sN(e,t,n){return new up({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function cN(e){let t=e._zod.def;return new up({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var K_=I("ZodPreprocess",(e,t)=>{cp.init(e,t),hQ.init(e,t)}),J_=I("ZodReadonly",(e,t)=>{BQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>YI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function W_(e){return new J_({type:"readonly",innerType:e})}var Z_=I("ZodTemplateLiteral",(e,t)=>{yQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>vI(e,n,o,a)});function uN(e,t){return new Z_({type:"template_literal",parts:e,...j.normalizeParams(t)})}var V_=I("ZodLazy",(e,t)=>{EQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>JI(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function X_(e){return new V_({type:"lazy",getter:e})}var ev=I("ZodPromise",(e,t)=>{wQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>KI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function dN(e){return new ev({type:"promise",innerType:e})}var tv=I("ZodFunction",(e,t)=>{CQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>SI(e,n,o,a)});function lN(e){return new tv({type:"function",input:Array.isArray(e?.input)?x_(e?.input):e?.input??ip(ks()),output:e?.output??ks()})}var dp=I("ZodCustom",(e,t)=>{kQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>FI(e,n,o,a)});function pN(e){let t=new ot({check:"custom"});return t._zod.check=e,t}function gN(e,t){return iI(dp,e??(()=>!0),t)}function nv(e,t={}){return AI(dp,e,t)}function av(e,t){return sI(e,t)}var mN=cI,fN=uI;function bN(e,t={}){let n=new dp({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...j.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var hN=(...e)=>dI({Codec:up,Boolean:Uu,String:Pu},...e);function BN(e){let t=X_(()=>yh([Xl(e),p_(),g_(),h_(),ip(t),D_(Xl(),t)]));return t}function yN(e,t){return new K_({type:"pipe",in:wh(e),out:t})}var cee={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function uee(e){Pt({customError:e})}function dee(){return Pt().customError}var ov;ov||(ov={});var K={...Vl,...Kb,iso:$u},lee=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function pee(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function gee(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let a=n[1];if(!a||!t.defs[a])throw new Error(`Reference not found: ${e}`);return t.defs[a]}throw new Error(`Reference not found: ${e}`)}function CN(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return K.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let a=e.$ref;if(t.refs.has(a))return t.refs.get(a);if(t.processing.has(a))return K.lazy(()=>{if(!t.refs.has(a))throw new Error(`Circular reference not resolved: ${a}`);return t.refs.get(a)});t.processing.add(a);let r=gee(a,t),i=qn(r,t);return t.refs.set(a,i),t.processing.delete(a),i}if(e.enum!==void 0){let a=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&a.length===1&&a[0]===null)return K.null();if(a.length===0)return K.never();if(a.length===1)return K.literal(a[0]);if(a.every(i=>typeof i=="string"))return K.enum(a);let r=a.map(i=>K.literal(i));return r.length<2?r[0]:K.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return K.literal(e.const);let n=e.type;if(Array.isArray(n)){let a=n.map(r=>{let i={...e,type:r};return CN(i,t)});return a.length===0?K.never():a.length===1?a[0]:K.union(a)}if(!n)return K.any();let o;switch(n){case"string":{let a=K.string();if(e.format){let r=e.format;r==="email"?a=a.check(K.email()):r==="uri"||r==="uri-reference"?a=a.check(K.url()):r==="uuid"||r==="guid"?a=a.check(K.uuid()):r==="date-time"?a=a.check(K.iso.datetime()):r==="date"?a=a.check(K.iso.date()):r==="time"?a=a.check(K.iso.time()):r==="duration"?a=a.check(K.iso.duration()):r==="ipv4"?a=a.check(K.ipv4()):r==="ipv6"?a=a.check(K.ipv6()):r==="mac"?a=a.check(K.mac()):r==="cidr"?a=a.check(K.cidrv4()):r==="cidr-v6"?a=a.check(K.cidrv6()):r==="base64"?a=a.check(K.base64()):r==="base64url"?a=a.check(K.base64url()):r==="e164"?a=a.check(K.e164()):r==="jwt"?a=a.check(K.jwt()):r==="emoji"?a=a.check(K.emoji()):r==="nanoid"?a=a.check(K.nanoid()):r==="cuid"?a=a.check(K.cuid()):r==="cuid2"?a=a.check(K.cuid2()):r==="ulid"?a=a.check(K.ulid()):r==="xid"?a=a.check(K.xid()):r==="ksuid"&&(a=a.check(K.ksuid()))}typeof e.minLength=="number"&&(a=a.min(e.minLength)),typeof e.maxLength=="number"&&(a=a.max(e.maxLength)),e.pattern&&(a=a.regex(new RegExp(e.pattern))),o=a;break}case"number":case"integer":{let a=n==="integer"?K.number().int():K.number();typeof e.minimum=="number"&&(a=a.min(e.minimum)),typeof e.maximum=="number"&&(a=a.max(e.maximum)),typeof e.exclusiveMinimum=="number"?a=a.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(a=a.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?a=a.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(a=a.lt(e.maximum)),typeof e.multipleOf=="number"&&(a=a.multipleOf(e.multipleOf)),o=a;break}case"boolean":{o=K.boolean();break}case"null":{o=K.null();break}case"object":{let a={},r=e.properties||{},i=new Set(e.required||[]);for(let[s,c]of Object.entries(r)){let u=qn(c,t);a[s]=i.has(s)?u:u.optional()}if(e.propertyNames){let s=qn(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?qn(e.additionalProperties,t):K.any();if(Object.keys(a).length===0){o=K.record(s,c);break}let u=K.object(a).passthrough(),l=K.looseRecord(s,c);o=K.intersection(u,l);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),u=[];for(let p of c){let g=qn(s[p],t),f=K.string().regex(new RegExp(p));u.push(K.looseRecord(f,g))}let l=[];if(Object.keys(a).length>0&&l.push(K.object(a).passthrough()),l.push(...u),l.length===0)o=K.object({}).passthrough();else if(l.length===1)o=l[0];else{let p=K.intersection(l[0],l[1]);for(let g=2;g<l.length;g++)p=K.intersection(p,l[g]);o=p}break}let A=K.object(a);e.additionalProperties===!1?o=A.strict():typeof e.additionalProperties=="object"?o=A.catchall(qn(e.additionalProperties,t)):o=A.passthrough();break}case"array":{let a=e.prefixItems,r=e.items;if(a&&Array.isArray(a)){let i=a.map(s=>qn(s,t)),A=r&&typeof r=="object"&&!Array.isArray(r)?qn(r,t):void 0;A?o=K.tuple(i).rest(A):o=K.tuple(i),typeof e.minItems=="number"&&(o=o.check(K.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(K.maxLength(e.maxItems)))}else if(Array.isArray(r)){let i=r.map(s=>qn(s,t)),A=e.additionalItems&&typeof e.additionalItems=="object"?qn(e.additionalItems,t):void 0;A?o=K.tuple(i).rest(A):o=K.tuple(i),typeof e.minItems=="number"&&(o=o.check(K.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(K.maxLength(e.maxItems)))}else if(r!==void 0){let i=qn(r,t),A=K.array(i);typeof e.minItems=="number"&&(A=A.min(e.minItems)),typeof e.maxItems=="number"&&(A=A.max(e.maxItems)),o=A}else o=K.array(K.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function qn(e,t){if(typeof e=="boolean")return e?K.any():K.never();let n=CN(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let A=e.anyOf.map(c=>qn(c,t)),s=K.union(A);n=o?K.intersection(n,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let A=e.oneOf.map(c=>qn(c,t)),s=K.xor(A);n=o?K.intersection(n,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:K.any();else{let A=o?n:qn(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)A=K.intersection(A,qn(e.allOf[c],t));n=A}e.nullable===!0&&t.version==="openapi-3.0"&&(n=K.nullable(n)),e.readOnly===!0&&(n=K.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let a={},r=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let A of r)A in e&&(a[A]=e[A]);let i=["contentEncoding","contentMediaType","contentSchema"];for(let A of i)A in e&&(a[A]=e[A]);for(let A of Object.keys(e))lee.has(A)||(a[A]=e[A]);return Object.keys(a).length>0&&t.registry.add(n,a),e.description&&(n=n.describe(e.description)),n}function wN(e,t){if(typeof e=="boolean")return e?K.any():K.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=pee(n,t?.defaultTarget),a=n.$defs||n.definitions||{},r={version:o,defs:a,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Rn};return qn(n,r)}var rv={};F(rv,{bigint:()=>hee,boolean:()=>bee,date:()=>Bee,number:()=>fee,string:()=>mee});function mee(e){return vQ(Pu,e)}function fee(e){return $Q(Hu,e)}function bee(e){return TQ(Uu,e)}function hee(e){return qQ(Tu,e)}function Bee(e){return nI(rp,e)}Pt(pb());var yee=d.object({input:d.number().finite().nonnegative().optional(),output:d.number().finite().nonnegative().optional(),cacheRead:d.number().finite().nonnegative().optional(),cacheWrite:d.number().finite().nonnegative().optional(),total:d.number().finite().nonnegative().optional()}).strict(),EN=d.object({inputTokens:d.number().int().nonnegative().optional(),outputTokens:d.number().int().nonnegative().optional(),cachedInputTokens:d.number().int().nonnegative().optional(),cacheCreationTokens:d.number().int().nonnegative().optional(),reasoningTokens:d.number().int().nonnegative().optional(),totalTokens:d.number().int().nonnegative().optional(),cost:yee.optional()}).strict();var _=Symbol.for("drizzle:entityKind");function un(e,t){if(!e||typeof e!="object")return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,_))throw new Error(`Class "${t.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(e).constructor;if(n)for(;n;){if(_ in n&&n[_]===t[_])return!0;n=Object.getPrototypeOf(n)}return!1}var Is=class{constructor(t,n){this.table=t,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[_]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(t){return t}mapToDriverValue(t){return t}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}};var Qh=class{static[_]="ColumnBuilder";config;constructor(t,n,o){this.config={name:t,keyAsName:t==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:o,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(t){return this.config.default=t,this.config.hasDefault=!0,this}$defaultFn(t){return this.config.defaultFn=t,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(t){return this.config.onUpdateFn=t,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(t){this.config.name===""&&(this.config.name=t)}};var mi=Symbol.for("drizzle:Name");var Ih=class{static[_]="PgForeignKeyBuilder";reference;_onUpdate="no action";_onDelete="no action";constructor(t,n){this.reference=()=>{let{name:o,columns:a,foreignColumns:r}=t();return{name:o,columns:a,foreignTable:r[0].table,foreignColumns:r}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(t){return this._onUpdate=t===void 0?"no action":t,this}onDelete(t){return this._onDelete=t===void 0?"no action":t,this}build(t){return new iv(t,this)}},iv=class{constructor(t,n){this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[_]="PgForeignKey";reference;onUpdate;onDelete;getName(){let{name:t,columns:n,foreignColumns:o}=this.reference(),a=n.map(A=>A.name),r=o.map(A=>A.name),i=[this.table[mi],...a,o[0].table[mi],...r];return t??`${i.join("_")}_fk`}};function _h(e,...t){return e(...t)}function cv(e,t){return`${e[mi]}_${t.join("_")}_unique`}var Av=class{constructor(t,n){this.name=n,this.columns=t}static[_]="PgUniqueConstraintBuilder";columns;nullsNotDistinctConfig=!1;nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(t){return new sv(t,this.columns,this.nullsNotDistinctConfig,this.name)}},kN=class{static[_]="PgUniqueOnConstraintBuilder";name;constructor(t){this.name=t}on(...t){return new Av(t,this.name)}},sv=class{constructor(t,n,o,a){this.table=t,this.columns=n,this.name=a??cv(this.table,this.columns.map(r=>r.name)),this.nullsNotDistinct=o}static[_]="PgUniqueConstraint";columns;name;nullsNotDistinct=!1;getName(){return this.name}};function QN(e,t,n){for(let o=t;o<e.length;o++){let a=e[o];if(a==="\\"){o++;continue}if(a==='"')return[e.slice(t,o).replace(/\\/g,""),o+1];if(!n&&(a===","||a==="}"))return[e.slice(t,o).replace(/\\/g,""),o]}return[e.slice(t).replace(/\\/g,""),e.length]}function IN(e,t=0){let n=[],o=t,a=!1;for(;o<e.length;){let r=e[o];if(r===","){(a||o===t)&&n.push(""),a=!0,o++;continue}if(a=!1,r==="\\"){o+=2;continue}if(r==='"'){let[s,c]=QN(e,o+1,!0);n.push(s),o=c;continue}if(r==="}")return[n,o+1];if(r==="{"){let[s,c]=IN(e,o+1);n.push(s),o=c;continue}let[i,A]=QN(e,o,!1);n.push(i),o=A}return[n,o]}function _N(e){let[t]=IN(e,1);return t}function uv(e){return`{${e.map(t=>Array.isArray(t)?uv(t):typeof t=="string"?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}var Z=class extends Qh{foreignKeyConfigs=[];static[_]="PgColumnBuilder";array(t){return new lv(this.config.name,this,t)}references(t,n={}){return this.foreignKeyConfigs.push({ref:t,actions:n}),this}unique(t,n){return this.config.isUnique=!0,this.config.uniqueName=t,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(t){return this.config.generated={as:t,type:"always",mode:"stored"},this}buildForeignKeys(t,n){return this.foreignKeyConfigs.map(({ref:o,actions:a})=>_h((r,i)=>{let A=new Ih(()=>{let s=r();return{columns:[t],foreignColumns:[s]}});return i.onUpdate&&A.onUpdate(i.onUpdate),i.onDelete&&A.onDelete(i.onDelete),A.build(n)},o,a))}buildExtraConfigColumn(t){return new dv(t,this.config)}},z=class extends Is{constructor(t,n){n.uniqueName||(n.uniqueName=cv(t,[n.name])),super(t,n),this.table=t}static[_]="PgColumn"},dv=class extends z{static[_]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(t){return this.indexConfig.opClass=t,this}},Ou=class{static[_]="IndexedColumn";constructor(t,n,o,a){this.name=t,this.keyAsName=n,this.type=o,this.indexConfig=a}name;keyAsName;type;indexConfig},lv=class extends Z{static[_]="PgArrayBuilder";constructor(t,n,o){super(t,"array","PgArray"),this.config.baseBuilder=n,this.config.size=o}build(t){let n=this.config.baseBuilder.build(t);return new pv(t,this.config,n)}},pv=class e extends z{constructor(t,n,o,a){super(t,n),this.baseColumn=o,this.range=a,this.size=n.size}size;static[_]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(t){return typeof t=="string"&&(t=_N(t)),t.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(t,n=!1){let o=t.map(a=>a===null?null:un(this.baseColumn,e)?this.baseColumn.mapToDriverValue(a,!0):this.baseColumn.mapToDriverValue(a));return n?o:uv(o)}};var vN=class extends Z{static[_]="PgEnumObjectColumnBuilder";constructor(t,n){super(t,"string","PgEnumObjectColumn"),this.config.enum=n}build(t){return new gv(t,this.config)}},gv=class extends z{static[_]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}},xN=Symbol.for("drizzle:isPgEnum");function FN(e){return!!e&&typeof e=="function"&&xN in e&&e[xN]===!0}var DN=class extends Z{static[_]="PgEnumColumnBuilder";constructor(t,n){super(t,"string","PgEnumColumn"),this.config.enum=n}build(t){return new mv(t,this.config)}},mv=class extends z{static[_]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}};var qu=class{static[_]="Subquery";constructor(t,n,o,a=!1,r=[]){this._={brand:"Subquery",sql:t,selectedFields:n,alias:o,isWith:a,usedTables:r}}},SN=class extends qu{static[_]="WithSubquery"};var LN="0.45.2";var fv,bv,RN={startActiveSpan(e,t){return fv?(bv||(bv=fv.trace.getTracer("drizzle-orm",LN)),_h((n,o)=>o.startActiveSpan(e,a=>{try{return t(a)}catch(r){throw a.setStatus({code:n.SpanStatusCode.ERROR,message:r instanceof Error?r.message:"Unknown error"}),r}finally{a.end()}}),fv,bv)):t()}};var zu=Symbol.for("drizzle:ViewBaseConfig");var hv=Symbol.for("drizzle:Schema"),NN=Symbol.for("drizzle:Columns"),$N=Symbol.for("drizzle:ExtraConfigColumns"),Bv=Symbol.for("drizzle:OriginalName"),yv=Symbol.for("drizzle:BaseName"),lp=Symbol.for("drizzle:IsAlias"),MN=Symbol.for("drizzle:ExtraConfigBuilder"),Cee=Symbol.for("drizzle:IsDrizzleTable"),Kt=class{static[_]="Table";static Symbol={Name:mi,Schema:hv,OriginalName:Bv,Columns:NN,ExtraConfigColumns:$N,BaseName:yv,IsAlias:lp,ExtraConfigBuilder:MN};[mi];[Bv];[hv];[NN];[$N];[yv];[lp]=!1;[Cee]=!0;[MN]=void 0;constructor(t,n,o){this[mi]=this[Bv]=t,this[hv]=n,this[yv]=o}};var jN=class{static[_]="FakePrimitiveParam"};function wee(e){return e!=null&&typeof e.getSQL=="function"}function Eee(e){let t={sql:"",params:[]};for(let n of e)t.sql+=n.sql,t.params.push(...n.params),n.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...n.typings));return t}var Ha=class{static[_]="StringChunk";value;constructor(t){this.value=Array.isArray(t)?t:[t]}getSQL(){return new Jt([this])}},Jt=class e{constructor(t){this.queryChunks=t;for(let n of t)if(un(n,Kt)){let o=n[Kt.Symbol.Schema];this.usedTables.push(o===void 0?n[Kt.Symbol.Name]:o+"."+n[Kt.Symbol.Name])}}static[_]="SQL";decoder=PN;shouldInlineParams=!1;usedTables=[];append(t){return this.queryChunks.push(...t.queryChunks),this}toQuery(t){return RN.startActiveSpan("drizzle.buildSQL",n=>{let o=this.buildQueryFromSourceParams(this.queryChunks,t);return n?.setAttributes({"drizzle.query.text":o.sql,"drizzle.query.params":JSON.stringify(o.params)}),o})}buildQueryFromSourceParams(t,n){let o=Object.assign({},n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:a,escapeName:r,escapeParam:i,prepareTyping:A,inlineParams:s,paramStartIndex:c}=o;return Eee(t.map(u=>{if(un(u,Ha))return{sql:u.value.join(""),params:[]};if(un(u,pp))return{sql:r(u.value),params:[]};if(u===void 0)return{sql:"",params:[]};if(Array.isArray(u)){let l=[new Ha("(")];for(let[p,g]of u.entries())l.push(g),p<u.length-1&&l.push(new Ha(", "));return l.push(new Ha(")")),this.buildQueryFromSourceParams(l,o)}if(un(u,e))return this.buildQueryFromSourceParams(u.queryChunks,{...o,inlineParams:s||u.shouldInlineParams});if(un(u,Kt)){let l=u[Kt.Symbol.Schema],p=u[Kt.Symbol.Name];return{sql:l===void 0||u[lp]?r(p):r(l)+"."+r(p),params:[]}}if(un(u,Is)){let l=a.getColumnCasing(u);if(n.invokeSource==="indexes")return{sql:r(l),params:[]};let p=u.table[Kt.Symbol.Schema];return{sql:u.table[lp]||p===void 0?r(u.table[Kt.Symbol.Name])+"."+r(l):r(p)+"."+r(u.table[Kt.Symbol.Name])+"."+r(l),params:[]}}if(un(u,Cv)){let l=u[zu].schema,p=u[zu].name;return{sql:l===void 0||u[zu].isAlias?r(p):r(l)+"."+r(p),params:[]}}if(un(u,vh)){if(un(u.value,gp))return{sql:i(c.value++,u),params:[u],typings:["none"]};let l=u.value===null?null:u.encoder.mapToDriverValue(u.value);if(un(l,e))return this.buildQueryFromSourceParams([l],o);if(s)return{sql:this.mapInlineParam(l,o),params:[]};let p=["none"];return A&&(p=[A(u.encoder)]),{sql:i(c.value++,l),params:[l],typings:p}}return un(u,gp)?{sql:i(c.value++,u),params:[u],typings:["none"]}:un(u,e.Aliased)&&u.fieldAlias!==void 0?{sql:r(u.fieldAlias),params:[]}:un(u,qu)?u._.isWith?{sql:r(u._.alias),params:[]}:this.buildQueryFromSourceParams([new Ha("("),u._.sql,new Ha(") "),new pp(u._.alias)],o):FN(u)?u.schema?{sql:r(u.schema)+"."+r(u.enumName),params:[]}:{sql:r(u.enumName),params:[]}:wee(u)?u.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([u.getSQL()],o):this.buildQueryFromSourceParams([new Ha("("),u.getSQL(),new Ha(")")],o):s?{sql:this.mapInlineParam(u,o),params:[]}:{sql:i(c.value++,u),params:[u],typings:["none"]}}))}mapInlineParam(t,{escapeString:n}){if(t===null)return"null";if(typeof t=="number"||typeof t=="boolean")return t.toString();if(typeof t=="string")return n(t);if(typeof t=="object"){let o=t.toString();return n(o==="[object Object]"?JSON.stringify(t):o)}throw new Error("Unexpected param value: "+t)}getSQL(){return this}as(t){return t===void 0?this:new e.Aliased(this,t)}mapWith(t){return this.decoder=typeof t=="function"?{mapFromDriverValue:t}:t,this}inlineParams(){return this.shouldInlineParams=!0,this}if(t){return t?this:void 0}},pp=class{constructor(t){this.value=t}static[_]="Name";brand;getSQL(){return new Jt([this])}};var PN={mapFromDriverValue:e=>e},GN={mapToDriverValue:e=>e},eEe={...PN,...GN},vh=class{constructor(t,n=GN){this.value=t,this.encoder=n}static[_]="Param";brand;getSQL(){return new Jt([this])}};function Yu(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!=="")&&n.push(new Ha(e[0]));for(let[o,a]of t.entries())n.push(a,new Ha(e[o+1]));return new Jt(n)}(e=>{function t(){return new Jt([])}e.empty=t;function n(s){return new Jt(s)}e.fromList=n;function o(s){return new Jt([new Ha(s)])}e.raw=o;function a(s,c){let u=[];for(let[l,p]of s.entries())l>0&&c!==void 0&&u.push(c),u.push(p);return new Jt(u)}e.join=a;function r(s){return new pp(s)}e.identifier=r;function i(s){return new gp(s)}e.placeholder=i;function A(s,c){return new vh(s,c)}e.param=A})(Yu||(Yu={}));(e=>{class t{constructor(o,a){this.sql=o,this.fieldAlias=a}static[_]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(Jt||(Jt={}));var gp=class{constructor(t){this.name=t}static[_]="Placeholder";getSQL(){return new Jt([this])}};var kee=Symbol.for("drizzle:IsDrizzleView"),Cv=class{static[_]="View";[zu];[kee]=!0;constructor({name:t,schema:n,selectedFields:o,query:a}){this[zu]={name:t,originalName:t,schema:n,selectedFields:o,query:a,isExisting:!a,isAlias:!1}}getSQL(){return new Jt([this])}};Is.prototype.getSQL=function(){return new Jt([this])};Kt.prototype.getSQL=function(){return new Jt([this])};qu.prototype.getSQL=function(){return new Jt([this])};function ve(e,t){return{name:typeof e=="string"&&e.length>0?e:"",config:typeof e=="object"?e:t}}var nEe=typeof TextDecoder>"u"?null:new TextDecoder;var fi=class extends Z{static[_]="PgIntColumnBaseBuilder";generatedAlwaysAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"always",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"always"};return this.config.hasDefault=!0,this.config.notNull=!0,this}generatedByDefaultAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"byDefault",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"byDefault"};return this.config.hasDefault=!0,this.config.notNull=!0,this}};var wv=class extends fi{static[_]="PgBigInt53Builder";constructor(t){super(t,"number","PgBigInt53")}build(t){return new Ev(t,this.config)}},Ev=class extends z{static[_]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},kv=class extends fi{static[_]="PgBigInt64Builder";constructor(t){super(t,"bigint","PgBigInt64")}build(t){return new Qv(t,this.config)}},Qv=class extends z{static[_]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(t){return BigInt(t)}};function HN(e,t){let{name:n,config:o}=ve(e,t);return o.mode==="number"?new wv(n):new kv(n)}var Iv=class extends Z{static[_]="PgBigSerial53Builder";constructor(t){super(t,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new _v(t,this.config)}},_v=class extends z{static[_]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},vv=class extends Z{static[_]="PgBigSerial64Builder";constructor(t){super(t,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(t){return new xv(t,this.config)}},xv=class extends z{static[_]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(t){return BigInt(t)}};function UN(e,t){let{name:n,config:o}=ve(e,t);return o.mode==="number"?new Iv(n):new vv(n)}var Dv=class extends Z{static[_]="PgBooleanBuilder";constructor(t){super(t,"boolean","PgBoolean")}build(t){return new Fv(t,this.config)}},Fv=class extends z{static[_]="PgBoolean";getSQLType(){return"boolean"}};function TN(e){return new Dv(e??"")}var Sv=class extends Z{static[_]="PgCharBuilder";constructor(t,n){super(t,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new Lv(t,this.config)}},Lv=class extends z{static[_]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}};function ON(e,t={}){let{name:n,config:o}=ve(e,t);return new Sv(n,o)}var Rv=class extends Z{static[_]="PgCidrBuilder";constructor(t){super(t,"string","PgCidr")}build(t){return new Nv(t,this.config)}},Nv=class extends z{static[_]="PgCidr";getSQLType(){return"cidr"}};function qN(e){return new Rv(e??"")}var $v=class extends Z{static[_]="PgCustomColumnBuilder";constructor(t,n,o){super(t,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=o}build(t){return new Mv(t,this.config)}},Mv=class extends z{static[_]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(t,n){super(t,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(t){return typeof this.mapFrom=="function"?this.mapFrom(t):t}mapToDriverValue(t){return typeof this.mapTo=="function"?this.mapTo(t):t}};function zN(e){return(t,n)=>{let{name:o,config:a}=ve(t,n);return new $v(o,a,e)}}var hr=class extends Z{static[_]="PgDateColumnBaseBuilder";defaultNow(){return this.default(Yu`now()`)}};var jv=class extends hr{static[_]="PgDateBuilder";constructor(t){super(t,"date","PgDate")}build(t){return new Pv(t,this.config)}},Pv=class extends z{static[_]="PgDate";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?new Date(t):t}mapToDriverValue(t){return t.toISOString()}},Gv=class extends hr{static[_]="PgDateStringBuilder";constructor(t){super(t,"string","PgDateString")}build(t){return new Hv(t,this.config)}},Hv=class extends z{static[_]="PgDateString";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?t:t.toISOString().slice(0,-14)}};function YN(e,t){let{name:n,config:o}=ve(e,t);return o?.mode==="date"?new jv(n):new Gv(n)}var Uv=class extends Z{static[_]="PgDoublePrecisionBuilder";constructor(t){super(t,"number","PgDoublePrecision")}build(t){return new Tv(t,this.config)}},Tv=class extends z{static[_]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(t){return typeof t=="string"?Number.parseFloat(t):t}};function KN(e){return new Uv(e??"")}var Ov=class extends Z{static[_]="PgInetBuilder";constructor(t){super(t,"string","PgInet")}build(t){return new qv(t,this.config)}},qv=class extends z{static[_]="PgInet";getSQLType(){return"inet"}};function JN(e){return new Ov(e??"")}var zv=class extends fi{static[_]="PgIntegerBuilder";constructor(t){super(t,"number","PgInteger")}build(t){return new Yv(t,this.config)}},Yv=class extends z{static[_]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(t){return typeof t=="string"?Number.parseInt(t):t}};function WN(e){return new zv(e??"")}var Kv=class extends Z{static[_]="PgIntervalBuilder";constructor(t,n){super(t,"string","PgInterval"),this.config.intervalConfig=n}build(t){return new Jv(t,this.config)}},Jv=class extends z{static[_]="PgInterval";fields=this.config.intervalConfig.fields;precision=this.config.intervalConfig.precision;getSQLType(){let t=this.fields?` ${this.fields}`:"",n=this.precision?`(${this.precision})`:"";return`interval${t}${n}`}};function ZN(e,t={}){let{name:n,config:o}=ve(e,t);return new Kv(n,o)}var Wv=class extends Z{static[_]="PgJsonBuilder";constructor(t){super(t,"json","PgJson")}build(t){return new Zv(t,this.config)}},Zv=class extends z{static[_]="PgJson";constructor(t,n){super(t,n)}getSQLType(){return"json"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function VN(e){return new Wv(e??"")}var Vv=class extends Z{static[_]="PgJsonbBuilder";constructor(t){super(t,"json","PgJsonb")}build(t){return new Xv(t,this.config)}},Xv=class extends z{static[_]="PgJsonb";constructor(t,n){super(t,n)}getSQLType(){return"jsonb"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function xh(e){return new Vv(e??"")}var ex=class extends Z{static[_]="PgLineBuilder";constructor(t){super(t,"array","PgLine")}build(t){return new tx(t,this.config)}},tx=class extends z{static[_]="PgLine";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o),Number.parseFloat(a)]}mapToDriverValue(t){return`{${t[0]},${t[1]},${t[2]}}`}},nx=class extends Z{static[_]="PgLineABCBuilder";constructor(t){super(t,"json","PgLineABC")}build(t){return new ax(t,this.config)}},ax=class extends z{static[_]="PgLineABC";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return{a:Number.parseFloat(n),b:Number.parseFloat(o),c:Number.parseFloat(a)}}mapToDriverValue(t){return`{${t.a},${t.b},${t.c}}`}};function XN(e,t){let{name:n,config:o}=ve(e,t);return!o?.mode||o.mode==="tuple"?new ex(n):new nx(n)}var ox=class extends Z{static[_]="PgMacaddrBuilder";constructor(t){super(t,"string","PgMacaddr")}build(t){return new rx(t,this.config)}},rx=class extends z{static[_]="PgMacaddr";getSQLType(){return"macaddr"}};function e$(e){return new ox(e??"")}var ix=class extends Z{static[_]="PgMacaddr8Builder";constructor(t){super(t,"string","PgMacaddr8")}build(t){return new Ax(t,this.config)}},Ax=class extends z{static[_]="PgMacaddr8";getSQLType(){return"macaddr8"}};function t$(e){return new ix(e??"")}var sx=class extends Z{static[_]="PgNumericBuilder";constructor(t,n,o){super(t,"string","PgNumeric"),this.config.precision=n,this.config.scale=o}build(t){return new cx(t,this.config)}},cx=class extends z{static[_]="PgNumeric";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="string"?t:String(t)}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},ux=class extends Z{static[_]="PgNumericNumberBuilder";constructor(t,n,o){super(t,"number","PgNumericNumber"),this.config.precision=n,this.config.scale=o}build(t){return new dx(t,this.config)}},dx=class extends z{static[_]="PgNumericNumber";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},lx=class extends Z{static[_]="PgNumericBigIntBuilder";constructor(t,n,o){super(t,"bigint","PgNumericBigInt"),this.config.precision=n,this.config.scale=o}build(t){return new px(t,this.config)}},px=class extends z{static[_]="PgNumericBigInt";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}};function n$(e,t){let{name:n,config:o}=ve(e,t),a=o?.mode;return a==="number"?new ux(n,o?.precision,o?.scale):a==="bigint"?new lx(n,o?.precision,o?.scale):new sx(n,o?.precision,o?.scale)}var gx=class extends Z{static[_]="PgPointTupleBuilder";constructor(t){super(t,"array","PgPointTuple")}build(t){return new mx(t,this.config)}},mx=class extends z{static[_]="PgPointTuple";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o)]}return[t.x,t.y]}mapToDriverValue(t){return`(${t[0]},${t[1]})`}},fx=class extends Z{static[_]="PgPointObjectBuilder";constructor(t){super(t,"json","PgPointObject")}build(t){return new bx(t,this.config)}},bx=class extends z{static[_]="PgPointObject";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return{x:Number.parseFloat(n),y:Number.parseFloat(o)}}return t}mapToDriverValue(t){return`(${t.x},${t.y})`}};function a$(e,t){let{name:n,config:o}=ve(e,t);return!o?.mode||o.mode==="tuple"?new gx(n):new fx(n)}function Qee(e){let t=[];for(let n=0;n<e.length;n+=2)t.push(Number.parseInt(e.slice(n,n+2),16));return new Uint8Array(t)}function o$(e,t){let n=new ArrayBuffer(8),o=new DataView(n);for(let a=0;a<8;a++)o.setUint8(a,e[t+a]);return o.getFloat64(0,!0)}function hx(e){let t=Qee(e),n=0,o=t[n];n+=1;let a=new DataView(t.buffer),r=a.getUint32(n,o===1);n+=4;let i;if(r&536870912&&(i=a.getUint32(n,o===1),n+=4),(r&65535)===1){let A=o$(t,n);n+=8;let s=o$(t,n);return n+=8,[A,s]}throw new Error("Unsupported geometry type")}var Bx=class extends Z{static[_]="PgGeometryBuilder";constructor(t){super(t,"array","PgGeometry")}build(t){return new yx(t,this.config)}},yx=class extends z{static[_]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){return hx(t)}mapToDriverValue(t){return`point(${t[0]} ${t[1]})`}},Cx=class extends Z{static[_]="PgGeometryObjectBuilder";constructor(t){super(t,"json","PgGeometryObject")}build(t){return new wx(t,this.config)}},wx=class extends z{static[_]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){let n=hx(t);return{x:n[0],y:n[1]}}mapToDriverValue(t){return`point(${t.x} ${t.y})`}};function r$(e,t){let{name:n,config:o}=ve(e,t);return!o?.mode||o.mode==="tuple"?new Bx(n):new Cx(n)}var Ex=class extends Z{static[_]="PgRealBuilder";constructor(t,n){super(t,"number","PgReal"),this.config.length=n}build(t){return new kx(t,this.config)}},kx=class extends z{static[_]="PgReal";constructor(t,n){super(t,n)}getSQLType(){return"real"}mapFromDriverValue=t=>typeof t=="string"?Number.parseFloat(t):t};function i$(e){return new Ex(e??"")}var Qx=class extends Z{static[_]="PgSerialBuilder";constructor(t){super(t,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new Ix(t,this.config)}},Ix=class extends z{static[_]="PgSerial";getSQLType(){return"serial"}};function A$(e){return new Qx(e??"")}var _x=class extends fi{static[_]="PgSmallIntBuilder";constructor(t){super(t,"number","PgSmallInt")}build(t){return new vx(t,this.config)}},vx=class extends z{static[_]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=t=>typeof t=="string"?Number(t):t};function s$(e){return new _x(e??"")}var xx=class extends Z{static[_]="PgSmallSerialBuilder";constructor(t){super(t,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new Dx(t,this.config)}},Dx=class extends z{static[_]="PgSmallSerial";getSQLType(){return"smallserial"}};function c$(e){return new xx(e??"")}var Fx=class extends Z{static[_]="PgTextBuilder";constructor(t,n){super(t,"string","PgText"),this.config.enumValues=n.enum}build(t){return new Sx(t,this.config)}},Sx=class extends z{static[_]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}};function Lo(e,t={}){let{name:n,config:o}=ve(e,t);return new Fx(n,o)}var Lx=class extends hr{constructor(t,n,o){super(t,"string","PgTime"),this.withTimezone=n,this.precision=o,this.config.withTimezone=n,this.config.precision=o}static[_]="PgTimeBuilder";build(t){return new Rx(t,this.config)}},Rx=class extends z{static[_]="PgTime";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`time${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}};function u$(e,t={}){let{name:n,config:o}=ve(e,t);return new Lx(n,o.withTimezone??!1,o.precision)}var Nx=class extends hr{static[_]="PgTimestampBuilder";constructor(t,n,o){super(t,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=o}build(t){return new $x(t,this.config)}},$x=class extends z{static[_]="PgTimestamp";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":` (${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){return typeof t=="string"?new Date(this.withTimezone?t:t+"+0000"):t}mapToDriverValue=t=>t.toISOString()},Mx=class extends hr{static[_]="PgTimestampStringBuilder";constructor(t,n,o){super(t,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=o}build(t){return new jx(t,this.config)}},jx=class extends z{static[_]="PgTimestampString";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){if(typeof t=="string")return t;let n=t.toISOString().slice(0,-1).replace("T"," ");if(this.withTimezone){let o=t.getTimezoneOffset(),a=o<=0?"+":"-";return`${n}${a}${Math.floor(Math.abs(o)/60).toString().padStart(2,"0")}`}return n}};function Dh(e,t={}){let{name:n,config:o}=ve(e,t);return o?.mode==="string"?new Mx(n,o.withTimezone??!1,o.precision):new Nx(n,o?.withTimezone??!1,o?.precision)}var Px=class extends Z{static[_]="PgUUIDBuilder";constructor(t){super(t,"string","PgUUID")}defaultRandom(){return this.default(Yu`gen_random_uuid()`)}build(t){return new Gx(t,this.config)}},Gx=class extends z{static[_]="PgUUID";getSQLType(){return"uuid"}};function d$(e){return new Px(e??"")}var Hx=class extends Z{static[_]="PgVarcharBuilder";constructor(t,n){super(t,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new Ux(t,this.config)}},Ux=class extends z{static[_]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}};function l$(e,t={}){let{name:n,config:o}=ve(e,t);return new Hx(n,o)}var Tx=class extends Z{static[_]="PgBinaryVectorBuilder";constructor(t,n){super(t,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(t){return new Ox(t,this.config)}},Ox=class extends z{static[_]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}};function p$(e,t){let{name:n,config:o}=ve(e,t);return new Tx(n,o)}var qx=class extends Z{static[_]="PgHalfVectorBuilder";constructor(t,n){super(t,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(t){return new zx(t,this.config)}},zx=class extends z{static[_]="PgHalfVector";dimensions=this.config.dimensions;getSQLType(){return`halfvec(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function g$(e,t){let{name:n,config:o}=ve(e,t);return new qx(n,o)}var Yx=class extends Z{static[_]="PgSparseVectorBuilder";constructor(t,n){super(t,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(t){return new Kx(t,this.config)}},Kx=class extends z{static[_]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}};function m$(e,t){let{name:n,config:o}=ve(e,t);return new Yx(n,o)}var Jx=class extends Z{static[_]="PgVectorBuilder";constructor(t,n){super(t,"array","PgVector"),this.config.dimensions=n.dimensions}build(t){return new Wx(t,this.config)}},Wx=class extends z{static[_]="PgVector";dimensions=this.config.dimensions;getSQLType(){return`vector(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function f$(e,t){let{name:n,config:o}=ve(e,t);return new Jx(n,o)}function b$(){return{bigint:HN,bigserial:UN,boolean:TN,char:ON,cidr:qN,customType:zN,date:YN,doublePrecision:KN,inet:JN,integer:WN,interval:ZN,json:VN,jsonb:xh,line:XN,macaddr:e$,macaddr8:t$,numeric:n$,point:a$,geometry:r$,real:i$,serial:A$,smallint:s$,smallserial:c$,text:Lo,time:u$,timestamp:Dh,uuid:d$,varchar:l$,bit:p$,halfvec:g$,sparsevec:m$,vector:f$}}var Zx=Symbol.for("drizzle:PgInlineForeignKeys"),h$=Symbol.for("drizzle:EnableRLS"),mp=class extends Kt{static[_]="PgTable";static Symbol=Object.assign({},Kt.Symbol,{InlineForeignKeys:Zx,EnableRLS:h$});[Zx]=[];[h$]=!1;[Kt.Symbol.ExtraConfigBuilder]=void 0;[Kt.Symbol.ExtraConfigColumns]={}};function Iee(e,t,n,o,a=e){let r=new mp(e,o,a),i=typeof t=="function"?t(b$()):t,A=Object.fromEntries(Object.entries(i).map(([u,l])=>{let p=l;p.setName(u);let g=p.build(r);return r[Zx].push(...p.buildForeignKeys(g,r)),[u,g]})),s=Object.fromEntries(Object.entries(i).map(([u,l])=>{let p=l;p.setName(u);let g=p.buildExtraConfigColumn(r);return[u,g]})),c=Object.assign(r,A);return c[Kt.Symbol.Columns]=A,c[Kt.Symbol.ExtraConfigColumns]=s,n&&(c[mp.Symbol.ExtraConfigBuilder]=n),Object.assign(c,{enableRLS:()=>(c[mp.Symbol.EnableRLS]=!0,c)})}var B$=(e,t,n)=>Iee(e,t,n,void 0);var Fh=class{constructor(t,n){this.unique=t,this.name=n}static[_]="PgIndexBuilderOn";on(...t){return new fp(t.map(n=>{if(un(n,Jt))return n;n=n;let o=new Ou(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=JSON.parse(JSON.stringify(n.defaultConfig)),o}),this.unique,!1,this.name)}onOnly(...t){return new fp(t.map(n=>{if(un(n,Jt))return n;n=n;let o=new Ou(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=n.defaultConfig,o}),this.unique,!0,this.name)}using(t,...n){return new fp(n.map(o=>{if(un(o,Jt))return o;o=o;let a=new Ou(o.name,!!o.keyAsName,o.columnType,o.indexConfig);return o.indexConfig=JSON.parse(JSON.stringify(o.defaultConfig)),a}),this.unique,!0,this.name,t)}},fp=class{static[_]="PgIndexBuilder";config;constructor(t,n,o,a,r="btree"){this.config={name:a,columns:t,unique:n,only:o,method:r}}concurrently(){return this.config.concurrently=!0,this}with(t){return this.config.with=t,this}where(t){return this.config.where=t,this}build(t){return new Vx(this.config,t)}},Vx=class{static[_]="PgIndex";config;constructor(t,n){this.config={...t,table:n}}};function y$(e){return new Fh(!1,e)}function C$(e){return new Fh(!0,e)}var w$=e=>Dh(e,{withTimezone:!0}),E$=d.enum(["channel","dm","group","local_conversation","thread","web_session"]),fQe=B$("junior_destinations",{id:Lo("id").primaryKey(),provider:Lo("provider").notNull(),providerTenantId:Lo("provider_tenant_id").notNull().default(""),providerDestinationId:Lo("provider_destination_id").notNull(),kind:Lo("kind").$type().notNull(),parentDestinationId:Lo("parent_destination_id"),displayName:Lo("display_name"),visibility:Lo("visibility").$type().notNull().default("unknown"),metadata:xh("metadata_json"),createdAt:w$("created_at").notNull(),updatedAt:w$("updated_at").notNull()},e=>[C$("junior_destinations_provider_destination_uidx").on(e.provider,e.providerTenantId,e.providerDestinationId),y$("junior_destinations_provider_kind_idx").on(e.provider,e.kind)]);function _ee(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var vee=d.object({kind:d.literal("resource_link"),key:d.string().trim().min(1).max(256),label:d.string().trim().min(1).max(256),url:d.string().url().max(2048).refine(_ee,"URL must use HTTP or HTTPS."),description:d.string().trim().min(1).max(512).optional(),status:d.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),k$=d.discriminatedUnion("kind",[vee]),yQe=d.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/),xee=d.enum(["activity","brain","calendar","check","database","info","key","link","sparkles","warning"]),Dee=d.object({description:d.string().trim().min(1).max(2e3).optional(),metadata:d.array(d.string().trim().min(1).max(120)).max(8).optional(),title:d.string().trim().min(1).max(4e3)}).strict(),Q$=d.object({details:d.array(Dee).max(100).optional(),icon:xee.optional(),preview:d.string().trim().min(1).max(500).optional(),title:d.string().trim().min(1).max(120)}).strict();var I$=d.string().regex(/^T[A-Z0-9]+$/),Fee=d.string().regex(/^(C|G|D)[A-Z0-9]+$/),_$=d.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),Sh=d.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),Ae=d.string().refine(e=>e.trim().length>0),CA=Ae.refine(e=>e===e.trim()),wQe=d.enum(["slack","local"]),See=d.enum(["public","private"]),Lee=d.enum(["public","private"]),v$=d.object({platform:d.literal("slack"),teamId:I$,channelId:Fee}).strict(),x$=v$,Ree=d.object({platform:d.literal("local"),conversationId:_$}).strict(),Nee=d.discriminatedUnion("platform",[x$,Ree]),$ee=v$.extend({visibility:See,messageTs:Ae.optional(),threadTs:Ae.optional()}).strict(),Mee=d.object({platform:d.literal("local"),visibility:d.literal("private"),conversationId:_$}).strict(),D$=d.discriminatedUnion("platform",[$ee,Mee]),jee=d.discriminatedUnion("allowedWhen",[d.object({type:d.literal("user"),userId:Sh,allowedWhen:d.literal("private-direct-conversation")}).strict(),d.object({type:d.literal("user"),userId:Sh,allowedWhen:d.literal("scheduled-task"),taskId:CA}).strict()]),F$={email:Ae.optional(),fullName:Ae.optional(),userId:Sh,userName:Ae.optional()},Pee=d.object({...F$,platform:d.literal("slack"),teamId:I$}).strict(),Gee=d.object({...F$,platform:d.literal("local")}).strict(),Hee=d.object({platform:d.literal("system"),name:Sh}).strict(),Xx=d.discriminatedUnion("platform",[Pee,Gee,Hee]),Uee=d.object({displayName:Ae.optional(),handle:Ae.optional(),id:CA,provider:CA,providerSubjectId:CA,providerTenantId:CA.optional()}).strict(),EQe=d.object({displayName:Ae.optional(),email:Ae.max(320),id:CA,identities:d.array(Uee).max(100)}).strict(),Tee=d.record(d.string(),d.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),Oee=d.object({label:CA.pipe(d.string().max(48)).refine(e=>!/[\r\n]/.test(e)),detail:CA.pipe(d.string().max(128)).refine(e=>!/[\r\n]/.test(e)).optional()}).strict(),kQe=d.object({idempotencyKey:Ae.pipe(d.string().max(512)),credentialSubject:jee.optional(),destination:x$,destinationVisibility:Lee,input:Ae.pipe(d.string().max(32e3)),metadata:Tee.optional(),replyAttribution:Oee.optional(),source:D$}).strict();var qee=d.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),IQe=d.object({text:d.string().trim().min(1).max(8e3)}).strict(),_Qe=d.object({kind:qee,version:d.number().int().positive(),content:d.record(d.string(),d.unknown())}).strict();var zee=4e3,Yee=8e3,bp=d.string().regex(/^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/).describe("Canonical dotted event type, such as issue.closed or pull_request.review.changes_requested."),S$=d.string().regex(/^[a-z][a-z0-9_]*$/).describe("Canonical plugin-defined resource type, such as issue or pull_request."),Kee=d.object({type:S$,supportedEvents:d.array(bp).min(1),suggestedEvents:d.array(bp).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.supportedEvents.forEach((a,r)=>{n.has(a)&&t.addIssue({code:"custom",message:`Duplicate supported resource event type "${a}".`,path:["supportedEvents",r]}),n.add(a)});let o=new Set;e.suggestedEvents?.forEach((a,r)=>{o.has(a)&&t.addIssue({code:"custom",message:`Duplicate suggested resource event type "${a}".`,path:["suggestedEvents",r]}),n.has(a)||t.addIssue({code:"custom",message:`Suggested resource event type "${a}" is not supported.`,path:["suggestedEvents",r]}),o.add(a)})}),xQe=d.object({resourceTypes:d.array(Kee).min(1),isEnabled:d.function({input:[],output:d.boolean()}).optional(),normalizeIdentifier:d.function({input:[d.string()],output:d.string()}).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.resourceTypes.forEach((o,a)=>{n.has(o.type)&&t.addIssue({code:"custom",message:`Duplicate resource type "${o.type}".`,path:["resourceTypes",a,"type"]}),n.add(o.type)})});var DQe=d.object({identifier:d.string().min(1),label:d.string().min(1),namespace:d.string().min(1),suggestedEvents:d.array(bp).optional(),supportedEvents:d.array(bp),type:S$}).strict(),Jee=d.object({eventKey:d.string().min(1),eventType:bp,identifier:d.string().min(1),occurredAtMs:d.number().finite(),terminal:d.boolean().optional(),trustedSummary:d.string().min(1).transform(e=>e.slice(0,zee)),untrustedText:d.string().transform(e=>e.slice(0,Yee)).optional()}).strict(),FQe=Jee.extend({namespace:d.string().min(1)}),Wee=d.object({authority:d.enum(["instruction","context"]),actor:Xx.optional()}).strict(),Zee=d.discriminatedUnion("type",[d.object({type:d.literal("message"),role:d.enum(["user","assistant"]),text:d.string().min(1),provenance:Wee.optional(),isRunActor:d.boolean().optional()}).strict(),d.object({type:d.literal("toolResult"),toolName:d.string().min(1),isError:d.boolean(),text:d.string().min(1).optional()}).strict()]),LQe=d.object({completedAtMs:d.number().finite(),conversationId:d.string().min(1),destination:Nee,actors:d.array(Xx),actor:Xx.optional(),runId:d.string().min(1),source:D$,transcript:d.array(Zee)}).strict();var NQe=d.discriminatedUnion("type",[d.object({type:d.literal("text"),text:d.string()}).strict(),d.object({type:d.literal("image"),data:d.string(),mimeType:d.string()}).strict()]),Vee=d.object({arguments:d.record(d.string(),d.unknown()),reason:d.string().min(1).optional()}).strict(),$Qe=d.object({target:d.string().min(1).optional(),truncated:d.boolean().optional(),continuation:Vee.optional()}).passthrough(),MQe=d.enum(["auto","review","approve"]);var PQe=d.object({auth:d.object({user:d.object({email:d.string().nullable().optional(),emailVerified:d.boolean().optional(),name:d.string().nullable().optional()}).strict()}).strict(),pluginName:Ae}).strict(),Xee=d.string().regex(/^[a-z][a-z0-9-]*$/),ete=d.string().regex(/^[a-z][a-z0-9.-]*$/),tte=d.union([d.literal("read"),d.literal("write")]),L$=d.object({provider:Xee,scope:Ae.optional(),type:d.literal("oauth")}).strict(),R$=d.object({id:Ae,label:Ae.optional(),url:Ae.optional()}).strict(),HQe=d.object({account:R$.optional(),accessToken:Ae,expiresAt:d.number().finite().optional(),refreshToken:Ae,refreshTokenExpiresAt:d.number().finite().optional(),scope:Ae.optional()}).strict(),UQe=d.object({access:tte,leaseScope:Ae.optional(),name:ete,reason:Ae.optional(),requirements:d.array(Ae).min(1).optional()}).strict(),nte=d.object({domain:d.string().min(1),headers:d.record(d.string(),d.string()).refine(e=>Object.keys(e).length>0)}).strict(),ate=d.object({account:R$.optional(),authorization:L$.optional(),expiresAt:d.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:d.array(nte).min(1)}).strict(),TQe=d.discriminatedUnion("type",[d.object({lease:ate,type:d.literal("lease")}).strict(),d.object({authorization:L$.optional(),message:Ae,type:d.literal("needed")}).strict(),d.object({message:Ae,type:d.literal("unavailable")}).strict()]);var ote=Ae.max(64).regex(/^[a-z][a-z0-9-]*$/),rte=Ae.max(80),ite=Ae.max(500),Ate=d.enum(["primary","profile"]),ste=d.object({detail:Ae.max(500).optional(),label:Ae.max(80),tone:d.enum(["good","neutral","warning"]).optional(),value:Ae.max(120)}).strict(),cte=d.object({label:Ae.max(80),value:Ae.max(500)}).strict(),ute=d.object({confirmation:Ae.max(500).optional(),href:Ae.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:Ae.max(80),method:d.literal("DELETE"),tone:d.enum(["danger","neutral"]).optional()}).strict(),dte=d.object({actions:d.array(ute).max(4).optional(),description:Ae.max(1e3).optional(),id:Ae.max(128),metadata:d.array(cte).max(8).optional(),title:Ae.max(4e3)}).strict(),qQe=d.object({emptyText:Ae.max(500).optional(),metrics:d.array(ste).max(6).optional(),nextCursor:Ae.max(1e3).optional(),records:d.array(dte).max(100),searchPlaceholder:Ae.max(120).optional(),type:d.literal("list")}).strict(),lte=d.object({description:ite,id:ote,label:rte,navigation:Ate,pluginDisplayName:Ae.max(200),pluginName:Ae.max(100)}).strict(),zQe=d.array(lte),YQe=d.object({cursor:Ae.max(1e3).optional(),filter:Ae.max(64).optional(),limit:d.number().int().min(1).max(50),query:d.string().trim().max(200).optional()}).strict();var $$=d.object({active:d.number(),conversations:d.number(),date:d.string(),durationMs:d.number(),failed:d.number(),tokens:d.number().optional()}).strict();var pte=d.enum(["active","completed","failed"]),gte=d.enum(["api","internal","scheduler","slack"]),M$=EN,mte=d.object({conversationId:d.string().min(1)}).strict(),fte=d.object({limit:d.coerce.number().int().min(1).max(1e3).default(500)}).strict(),bte=d.object({before:d.string().min(1),limit:d.coerce.number().int().min(1).max(1e3).default(500)}).strict(),hte=d.object({actorEmail:d.string().trim().email().transform(e=>e.toLowerCase()).optional()}).strict(),Bte=d.object({archived:d.boolean(),lastSeenAt:d.string().datetime()}).strict(),eD=d.object({archived:d.boolean()}).strict(),Lh=d.object({email:d.string().optional(),fullName:d.string().optional(),slackUserId:d.string().optional(),slackUserName:d.string().optional()}).strict(),j$=d.object({costUsd:d.number().finite().nonnegative(),operations:d.array(d.object({costUsd:d.number().finite().nonnegative(),events:d.number().int().positive(),name:d.string().min(1),namespace:d.string().min(1)}).strict()).min(1)}).strict(),hp=d.object({displayTitle:d.string(),cumulativeDurationMs:d.number(),cumulativeUsage:M$.optional(),auxiliaryCosts:j$.optional(),conversationId:d.string(),isParticipant:d.boolean(),status:pte,startedAt:d.string(),lastSeenAt:d.string(),lastProgressAt:d.string(),surface:gte,actorIdentity:Lh.optional(),archivedAt:d.string().optional(),channel:d.string().optional(),channelName:d.string().optional(),channelNameRedacted:d.boolean().optional(),locationId:d.string().optional(),sentryTraceUrl:d.string().optional(),sourceUrl:d.string().url().optional(),traceId:d.string().optional()}).strict(),yte=d.object({type:d.literal("message"),messageId:d.string().min(1),role:d.enum(["assistant","system","user"]),actorIdentity:Lh.optional(),eventType:d.string().min(1).optional(),text:d.string().optional(),redacted:d.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"message content must be text or explicitly redacted"}),e.redacted&&e.actorIdentity&&t.addIssue({code:"custom",message:"redacted messages must not expose actor identity"})}),Cte=d.object({type:d.literal("message_handled"),messageId:d.string().min(1)}).strict(),wte=d.object({toolCallId:d.string().min(1),name:d.string().min(1),status:d.enum(["running","completed","error"]),startedAt:d.string().datetime().optional(),startedSeq:d.number().int().nonnegative().optional(),input:d.unknown().optional(),output:d.unknown().optional()}).strict().superRefine((e,t)=>{e.startedAt===void 0!=(e.startedSeq===void 0)&&t.addIssue({code:"custom",message:"tool start sequence and timestamp must be provided together"})}),P$=d.object({type:d.literal("reasoning"),text:d.string().min(1).optional(),redacted:d.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"reasoning content must be text or explicitly redacted"})}),Ete=d.object({type:d.literal("tool_call"),toolCallId:d.string().min(1)}).strict(),kte=d.object({parts:d.array(d.discriminatedUnion("type",[P$,Ete])).min(1)}).strict(),Qte=d.object({type:d.literal("tool_calls"),calls:d.array(wte).min(1),assistant:kte.optional()}).strict().superRefine((e,t)=>{if(!e.assistant)return;let n=new Map;for(let a of e.calls)n.set(a.toolCallId,(n.get(a.toolCallId)??0)+1);let o=new Map;for(let a of e.assistant.parts)a.type==="tool_call"&&o.set(a.toolCallId,(o.get(a.toolCallId)??0)+1);(n.size!==o.size||[...n].some(([a,r])=>o.get(a)!==r))&&t.addIssue({code:"custom",path:["assistant","parts"],message:"assistant tool parts must reference every call exactly once"})}),Ite=d.object({type:d.literal("assistant_message"),parts:d.array(P$).min(1)}).strict(),_te=d.discriminatedUnion("state",[d.object({type:d.literal("turn_lifecycle"),turnId:d.string().min(1),state:d.enum(["started","succeeded","no_reply"])}).strict(),d.object({type:d.literal("turn_lifecycle"),turnId:d.string().min(1),state:d.literal("failed"),failureKind:d.enum(["agent","delivery"])}).strict()]),vte=d.object({type:d.literal("turn_routed"),turnId:d.string().min(1),modelProfile:d.string().min(1),modelId:d.string().min(1),reasoningLevel:d.string().min(1),confidence:d.number().min(0).max(1).optional(),source:d.enum(["configured","inherited","router"])}).strict(),xte=d.object({type:d.literal("guardian_action_reviewed"),turnId:d.string().min(1),toolCallId:d.string().min(1),toolName:d.string().min(1),decision:d.enum(["allow","ask","deny"]),riskLevel:d.enum(["low","medium","high","critical"]),userAuthorization:d.enum(["high","medium","low","unknown"])}).strict(),Dte=d.object({type:d.literal("turn_context"),turnId:d.string().min(1),pluginName:d.string().min(1),kind:d.string().min(1),version:d.number().int().positive(),content:d.record(d.string(),d.unknown())}).strict(),Fte=d.object({type:d.literal("structured_event"),namespace:d.string().min(1),name:d.string().min(1),version:d.number().int().positive(),turnId:d.string().min(1).optional(),presentation:Q$}).strict(),Ste=d.object({type:d.literal("compaction"),modelProfile:d.string().min(1).optional(),modelId:d.string().min(1).optional(),summary:d.string().min(1).optional(),details:d.object({reason:d.literal("capacity"),estimatedInputTokens:d.number().int().nonnegative(),replacementInputTokens:d.number().int().nonnegative().optional(),triggerTokens:d.number().int().nonnegative(),inputLimitTokens:d.number().int().positive(),inputMessageCount:d.number().int().nonnegative(),retainedMessageCount:d.number().int().nonnegative(),summaryChars:d.number().int().nonnegative()}).strict().optional()}).strict(),Lte=d.object({type:d.literal("handoff"),modelProfile:d.string().min(1),modelId:d.string().min(1),reasoningLevel:d.string().min(1).optional(),triggeringToolCallId:d.string().min(1).optional(),summary:d.string().min(1).optional()}).strict(),Rte=d.object({type:d.literal("subagent"),startedSeq:d.number().int().nonnegative(),startedAt:d.string().datetime(),childConversationId:d.string().min(1),subagentKind:d.string().min(1),parentToolCallId:d.string().min(1).optional(),status:d.enum(["running","completed","error","aborted"])}).strict(),G$=d.discriminatedUnion("type",[yte,Cte,Ite,Qte,_te,Dte,Fte,vte,xte,Ste,Lte,Rte]),tD=d.object({seq:d.number().int().nonnegative(),createdAt:d.string().datetime(),data:G$}).strict(),nD=d.discriminatedUnion("status",[d.object({status:d.literal("available")}).strict(),d.object({status:d.literal("redacted"),reason:d.literal("non_public_conversation")}).strict(),d.object({status:d.literal("expired"),expiredAt:d.string().datetime()}).strict()]),Nte=d.object({modelId:d.string(),usage:M$}).strict();function H$(e,t){e.eventHistory.status==="expired"&&e.events.length>0&&t.addIssue({code:"custom",path:["events"],message:"expired event history must not contain events"});for(let n=1;n<e.events.length;n+=1)e.events[n].seq<=e.events[n-1].seq&&t.addIssue({code:"custom",path:["events",n,"seq"],message:"report event sequences must be strictly increasing"});for(let[n,o]of e.events.entries())o.data.type==="message"&&(e.eventHistory.status==="redacted"&&o.data.redacted!==!0&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact messages"}),e.eventHistory.status==="available"&&o.data.redacted===!0&&t.addIssue({code:"custom",path:["events",n,"data"],message:"available event history must expose messages"})),e.eventHistory.status==="redacted"&&o.data.type==="tool_calls"&&o.data.calls.some(a=>a.input!==void 0||a.output!==void 0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact tool payloads"}),e.eventHistory.status==="redacted"&&o.data.type==="assistant_message"&&o.data.parts.some(a=>a.text!==void 0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact assistant messages"}),e.eventHistory.status==="available"&&o.data.type==="assistant_message"&&o.data.parts.some(a=>a.redacted===!0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"available event history must expose reasoning"}),o.data.type==="tool_calls"&&(e.eventHistory.status==="redacted"&&o.data.assistant?.parts.some(a=>a.type==="reasoning"&&a.text!==void 0)||e.eventHistory.status==="available"&&o.data.assistant?.parts.some(a=>a.type==="reasoning"&&a.redacted===!0))&&t.addIssue({code:"custom",path:["events",n,"data","assistant"],message:"assistant reasoning must match event history visibility"})}var aD=hp.extend({annotations:d.array(k$.and(d.object({plugin:d.string().min(1),createdAt:d.string().datetime(),updatedAt:d.string().datetime()}))).optional(),modelUsage:d.array(Nte).optional(),events:d.array(tD),eventHistory:nD,previousCursor:d.string().min(1).optional(),generatedAt:d.string(),sentryConversationUrl:d.string().optional()}).strict().superRefine(H$),oD=d.object({events:d.array(tD),eventHistory:nD,previousCursor:d.string().min(1).optional(),generatedAt:d.string()}).strict().superRefine(H$),rD=d.object({conversations:d.array(hp),source:d.literal("conversation_index"),generatedAt:d.string()}).strict(),Ku=d.object({active:d.number(),conversations:d.number(),durationMs:d.number(),failed:d.number(),label:d.string(),costUsd:d.number().optional(),tokens:d.number().optional()}).strict(),$te=d.object({conversations:d.number(),costUsd:d.number().optional(),date:d.string(),durationMs:d.number(),tokens:d.number().optional()}).strict(),Mte=d.object({allow:d.number(),ask:d.number(),costUsd:d.number().optional(),date:d.string(),deny:d.number(),requests:d.number()}).strict(),jte=d.object({allow:d.number(),ask:d.number(),costUsd:d.number().optional(),deny:d.number(),metricDays:d.array(Mte),requests:d.number()}).strict(),iD=d.object({active:d.number(),conversations:d.number(),durationMs:d.number(),failed:d.number(),generatedAt:d.string(),guardian:jte,metricDays:d.array($te),locations:d.array(Ku),actors:d.array(Ku),source:d.literal("conversation_index"),costUsd:d.number().optional(),tokens:d.number().optional(),windowEnd:d.string(),windowStart:d.string()}).strict(),Pte=d.object({email:d.string().trim().min(1)}).strict(),N$=Ku.omit({costUsd:!0}),Gte=d.object({active:d.number(),conversations:d.number(),costUsd:d.number().optional(),date:d.string(),durationMs:d.number(),failed:d.number(),tokens:d.number().optional()}).strict(),Hte=d.object({activePeople:d.number(),conversations:d.number(),date:d.string()}).strict(),U$=d.object({active:d.number(),activeDays:d.number(),conversations:d.number(),durationMs:d.number(),failed:d.number(),tokens:d.number().optional()}).strict(),T$=Lh.extend({email:d.string().min(1)}).strict(),Ute=U$.extend({firstSeenAt:d.string(),lastSeenAt:d.string(),actor:T$}).strict(),AD=d.object({activityDays:d.array(Hte),generatedAt:d.string(),people:d.array(Ute),source:d.literal("conversation_index"),windowEnd:d.string(),windowStart:d.string()}).strict(),sD=d.object({activityDays:d.array(Gte),generatedAt:d.string(),locations:d.array(N$),recentConversations:d.array(hp),actor:T$,source:d.literal("conversation_index"),surfaces:d.array(N$),totals:U$,windowEnd:d.string(),windowStart:d.string()}).strict(),cD=d.object({generatedAt:d.string(),sevenDaysUsd:d.number().finite().nonnegative(),source:d.literal("conversation_index"),thirtyDaysUsd:d.number().finite().nonnegative(),windowEnd:d.string(),windowStart:d.string()}).strict(),Tte=d.object({locationId:d.string().min(1)}).strict(),O$=Ku.extend({id:d.string(),firstSeenAt:d.string(),kind:E$,lastSeenAt:d.string(),provider:d.string(),providerDestinationId:d.string(),visibility:d.literal("public")}).strict(),Ote=Ku.extend({actor:Lh}).strict(),q$=d.object({date:d.string(),privateConversations:d.number(),publicConversations:d.number()}).strict(),uD=d.object({activityDays:d.array(q$),generatedAt:d.string(),locations:d.array(O$),privateActivity:Ku,source:d.literal("conversation_index"),windowEnd:d.string(),windowStart:d.string()}).strict(),dD=O$.extend({activityDays:d.array($$),actors:d.array(Ote),generatedAt:d.string(),recentConversations:d.array(hp),source:d.literal("conversation_index"),windowEnd:d.string(),windowStart:d.string()}).strict(),qte=d.object({error:d.string().min(1)}).strict(),lD=d.object({id:d.string().uuid(),name:d.string(),tokenSuffix:d.string(),createdAt:d.string().datetime(),expiresAt:d.string().datetime(),lastUsedAt:d.string().datetime().nullable()}).strict(),pD=d.object({tokens:d.array(lD)}).strict(),zte=d.object({name:d.string().trim().min(1).max(80)}).strict(),gD=lD.extend({token:d.string().startsWith("jr_pat_")}).strict(),Yte=d.object({id:d.string().uuid()}).strict(),Kte=d.object({revoked:d.literal(!0)}).strict(),Jte=d.object({channelId:d.string().min(1),label:d.string().min(1),teamId:d.string().min(1),visibility:d.enum(["private","public"])}).strict(),z$=d.object({createdAt:d.string().datetime(),createdBy:d.string().min(1),createdByEmail:d.string().trim().email().optional(),destination:Jte,id:d.string().min(1),instruction:d.string().min(1),lastConversationId:d.string().min(1).optional(),lastRunAt:d.string().datetime().optional(),ownedByViewer:d.boolean(),runsLast7Days:d.number().int().nonnegative(),totalRuns:d.number().int().nonnegative()}),Y$=z$.extend({kind:d.literal("scheduled"),nextRunAt:d.string().datetime().optional(),schedule:d.string().min(1),status:d.enum(["active","blocked"])}).strict(),K$=z$.extend({events:d.array(d.string().min(1)).min(1),kind:d.literal("event"),resource:d.string().min(1),source:d.string().min(1),triggerAvailable:d.boolean()}).strict(),mD=d.discriminatedUnion("kind",[Y$,K$]),Wte=d.object({date:d.string().min(1),event:d.number().int().nonnegative(),scheduled:d.number().int().nonnegative()}).strict(),fD=d.object({executionDays:d.array(Wte),tasks:d.array(mD),truncated:d.boolean()}).strict(),Zte=d.object({id:d.string().min(1),kind:d.enum(["scheduled","event"])}).strict(),J$=d.enum(["blocked","completed","failed"]),W$=d.object({conversationId:d.string().min(1).optional(),executedAt:d.string().datetime(),executionId:d.string().min(1),status:J$,title:d.string().min(1).optional()}).strict(),Z$=d.object({blocked:d.number().int().nonnegative(),completed:d.number().int().nonnegative(),date:d.string().min(1),failed:d.number().int().nonnegative()}).strict(),bD=d.object({executionDays:d.array(Z$),executions:d.array(W$),task:mD,truncated:d.boolean()}).strict(),V$=d.object({count:d.number().int().nonnegative(),date:d.string(),metric:d.string().min(1),name:d.string().min(1),namespace:d.string().min(1)}).strict(),Vte=d.object({generatedAt:d.string().datetime(),stats:d.array(V$),windowEnd:d.string(),windowStart:d.string()}).strict();var Xte=d.object({status:d.literal("ok"),service:d.string(),timestamp:d.string()}).strict(),X$=d.object({configKeys:d.array(d.string()),description:d.string(),displayName:d.string(),name:d.string()}).strict(),hD=d.array(X$),BD=d.object({name:d.string(),pluginProvider:d.string().optional()}).strict(),yD=d.array(BD),eM=d.object({dir:d.string(),hasMigrationsDir:d.boolean(),hasSkillsDir:d.boolean(),packageName:d.string()}).strict(),tM=d.object({packageNames:d.array(d.string()),packages:d.array(eM),manifestRoots:d.array(d.string()),skillRoots:d.array(d.string()),tracingIncludes:d.array(d.string())}).strict(),ene=d.object({cwd:d.string(),homeDir:d.string(),descriptionText:d.string().optional(),providers:d.array(d.string()),skills:d.array(BD),packagedContent:tM}).strict(),CD=d.enum(["danger","good","neutral","warning"]),tne=d.object({label:d.string(),tone:CD.optional(),value:d.string()}).strict(),nne=d.object({key:d.string(),label:d.string()}).strict(),ane=d.object({id:d.string(),tone:CD.optional(),values:d.record(d.string(),d.string())}).strict(),one=d.object({fields:d.array(nne).optional(),emptyText:d.string().optional(),records:d.array(ane).optional(),title:d.string()}).strict(),rne=d.object({categories:d.array(d.object({id:d.string().min(1),label:d.string().min(1),values:d.record(d.string(),d.number().finite())}).strict()).max(100),description:d.string().optional(),emptyText:d.string().optional(),id:d.string().min(1),series:d.array(d.object({format:d.literal("usd").optional(),key:d.string().min(1),label:d.string().min(1),tone:CD.optional()}).strict()).min(1).max(8),timeRangeDays:d.array(d.union([d.literal(7),d.literal(30),d.literal(90)])).min(1).max(3).optional(),title:d.string().min(1),type:d.literal("bar_chart")}).strict(),nM=d.object({generatedAt:d.string().optional(),metrics:d.array(tne).optional(),recordSets:d.array(one).optional(),title:d.string().optional(),pluginName:d.string(),widgets:d.array(rne).max(12).optional()}).strict(),wD=d.object({generatedAt:d.string(),reports:d.array(nM),source:d.literal("plugins")}).strict();function ine(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var Ane=d.object({kind:d.literal("resource_link"),key:d.string().trim().min(1).max(256),label:d.string().trim().min(1).max(256),url:d.string().url().max(2048).refine(ine,"URL must use HTTP or HTTPS."),description:d.string().trim().min(1).max(512).optional(),status:d.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),bIe=d.discriminatedUnion("kind",[Ane]),BIe=d.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/),sne=d.enum(["activity","brain","calendar","check","database","info","key","link","sparkles","warning"]),cne=d.object({description:d.string().trim().min(1).max(2e3).optional(),metadata:d.array(d.string().trim().min(1).max(120)).max(8).optional(),title:d.string().trim().min(1).max(4e3)}).strict(),yIe=d.object({details:d.array(cne).max(100).optional(),icon:sne.optional(),preview:d.string().trim().min(1).max(500).optional(),title:d.string().trim().min(1).max(120)}).strict();var aM=d.string().regex(/^T[A-Z0-9]+$/),une=d.string().regex(/^(C|G|D)[A-Z0-9]+$/),oM=d.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),Rh=d.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),se=d.string().refine(e=>e.trim().length>0),wA=se.refine(e=>e===e.trim()),wIe=d.enum(["slack","local"]),dne=d.enum(["public","private"]),lne=d.enum(["public","private"]),rM=d.object({platform:d.literal("slack"),teamId:aM,channelId:une}).strict(),iM=rM,pne=d.object({platform:d.literal("local"),conversationId:oM}).strict(),gne=d.discriminatedUnion("platform",[iM,pne]),mne=rM.extend({visibility:dne,messageTs:se.optional(),threadTs:se.optional()}).strict(),fne=d.object({platform:d.literal("local"),visibility:d.literal("private"),conversationId:oM}).strict(),AM=d.discriminatedUnion("platform",[mne,fne]),bne=d.discriminatedUnion("allowedWhen",[d.object({type:d.literal("user"),userId:Rh,allowedWhen:d.literal("private-direct-conversation")}).strict(),d.object({type:d.literal("user"),userId:Rh,allowedWhen:d.literal("scheduled-task"),taskId:wA}).strict()]),sM={email:se.optional(),fullName:se.optional(),userId:Rh,userName:se.optional()},hne=d.object({...sM,platform:d.literal("slack"),teamId:aM}).strict(),Bne=d.object({...sM,platform:d.literal("local")}).strict(),yne=d.object({platform:d.literal("system"),name:Rh}).strict(),ED=d.discriminatedUnion("platform",[hne,Bne,yne]),Cne=d.object({displayName:se.optional(),handle:se.optional(),id:wA,provider:wA,providerSubjectId:wA,providerTenantId:wA.optional()}).strict(),EIe=d.object({displayName:se.optional(),email:se.max(320),id:wA,identities:d.array(Cne).max(100)}).strict(),wne=d.record(d.string(),d.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),Ene=d.object({label:wA.pipe(d.string().max(48)).refine(e=>!/[\r\n]/.test(e)),detail:wA.pipe(d.string().max(128)).refine(e=>!/[\r\n]/.test(e)).optional()}).strict(),kIe=d.object({idempotencyKey:se.pipe(d.string().max(512)),credentialSubject:bne.optional(),destination:iM,destinationVisibility:lne,input:se.pipe(d.string().max(32e3)),metadata:wne.optional(),replyAttribution:Ene.optional(),source:AM}).strict();var kne=d.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),IIe=d.object({text:d.string().trim().min(1).max(8e3)}).strict(),_Ie=d.object({kind:kne,version:d.number().int().positive(),content:d.record(d.string(),d.unknown())}).strict();var Qne=4e3,Ine=8e3,Bp=d.string().regex(/^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/).describe("Canonical dotted event type, such as issue.closed or pull_request.review.changes_requested."),cM=d.string().regex(/^[a-z][a-z0-9_]*$/).describe("Canonical plugin-defined resource type, such as issue or pull_request."),_ne=d.object({type:cM,supportedEvents:d.array(Bp).min(1),suggestedEvents:d.array(Bp).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.supportedEvents.forEach((a,r)=>{n.has(a)&&t.addIssue({code:"custom",message:`Duplicate supported resource event type "${a}".`,path:["supportedEvents",r]}),n.add(a)});let o=new Set;e.suggestedEvents?.forEach((a,r)=>{o.has(a)&&t.addIssue({code:"custom",message:`Duplicate suggested resource event type "${a}".`,path:["suggestedEvents",r]}),n.has(a)||t.addIssue({code:"custom",message:`Suggested resource event type "${a}" is not supported.`,path:["suggestedEvents",r]}),o.add(a)})}),xIe=d.object({resourceTypes:d.array(_ne).min(1),isEnabled:d.function({input:[],output:d.boolean()}).optional(),normalizeIdentifier:d.function({input:[d.string()],output:d.string()}).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.resourceTypes.forEach((o,a)=>{n.has(o.type)&&t.addIssue({code:"custom",message:`Duplicate resource type "${o.type}".`,path:["resourceTypes",a,"type"]}),n.add(o.type)})});var DIe=d.object({identifier:d.string().min(1),label:d.string().min(1),namespace:d.string().min(1),suggestedEvents:d.array(Bp).optional(),supportedEvents:d.array(Bp),type:cM}).strict(),vne=d.object({eventKey:d.string().min(1),eventType:Bp,identifier:d.string().min(1),occurredAtMs:d.number().finite(),terminal:d.boolean().optional(),trustedSummary:d.string().min(1).transform(e=>e.slice(0,Qne)),untrustedText:d.string().transform(e=>e.slice(0,Ine)).optional()}).strict(),FIe=vne.extend({namespace:d.string().min(1)}),xne=d.object({authority:d.enum(["instruction","context"]),actor:ED.optional()}).strict(),Dne=d.discriminatedUnion("type",[d.object({type:d.literal("message"),role:d.enum(["user","assistant"]),text:d.string().min(1),provenance:xne.optional(),isRunActor:d.boolean().optional()}).strict(),d.object({type:d.literal("toolResult"),toolName:d.string().min(1),isError:d.boolean(),text:d.string().min(1).optional()}).strict()]),LIe=d.object({completedAtMs:d.number().finite(),conversationId:d.string().min(1),destination:gne,actors:d.array(ED),actor:ED.optional(),runId:d.string().min(1),source:AM,transcript:d.array(Dne)}).strict();var NIe=d.discriminatedUnion("type",[d.object({type:d.literal("text"),text:d.string()}).strict(),d.object({type:d.literal("image"),data:d.string(),mimeType:d.string()}).strict()]),Fne=d.object({arguments:d.record(d.string(),d.unknown()),reason:d.string().min(1).optional()}).strict(),$Ie=d.object({target:d.string().min(1).optional(),truncated:d.boolean().optional(),continuation:Fne.optional()}).passthrough(),MIe=d.enum(["auto","review","approve"]);var PIe=d.object({auth:d.object({user:d.object({email:d.string().nullable().optional(),emailVerified:d.boolean().optional(),name:d.string().nullable().optional()}).strict()}).strict(),pluginName:se}).strict(),Sne=d.string().regex(/^[a-z][a-z0-9-]*$/),Lne=d.string().regex(/^[a-z][a-z0-9.-]*$/),Rne=d.union([d.literal("read"),d.literal("write")]),uM=d.object({provider:Sne,scope:se.optional(),type:d.literal("oauth")}).strict(),dM=d.object({id:se,label:se.optional(),url:se.optional()}).strict(),HIe=d.object({account:dM.optional(),accessToken:se,expiresAt:d.number().finite().optional(),refreshToken:se,refreshTokenExpiresAt:d.number().finite().optional(),scope:se.optional()}).strict(),UIe=d.object({access:Rne,leaseScope:se.optional(),name:Lne,reason:se.optional(),requirements:d.array(se).min(1).optional()}).strict(),Nne=d.object({domain:d.string().min(1),headers:d.record(d.string(),d.string()).refine(e=>Object.keys(e).length>0)}).strict(),$ne=d.object({account:dM.optional(),authorization:uM.optional(),expiresAt:d.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:d.array(Nne).min(1)}).strict(),TIe=d.discriminatedUnion("type",[d.object({lease:$ne,type:d.literal("lease")}).strict(),d.object({authorization:uM.optional(),message:se,type:d.literal("needed")}).strict(),d.object({message:se,type:d.literal("unavailable")}).strict()]);var Mne=se.max(64).regex(/^[a-z][a-z0-9-]*$/),jne=se.max(80),Pne=se.max(500),Gne=d.enum(["primary","profile"]),Hne=d.object({detail:se.max(500).optional(),label:se.max(80),tone:d.enum(["good","neutral","warning"]).optional(),value:se.max(120)}).strict(),Une=d.object({label:se.max(80),value:se.max(500)}).strict(),Tne=d.object({confirmation:se.max(500).optional(),href:se.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:se.max(80),method:d.literal("DELETE"),tone:d.enum(["danger","neutral"]).optional()}).strict(),One=d.object({actions:d.array(Tne).max(4).optional(),description:se.max(1e3).optional(),id:se.max(128),metadata:d.array(Une).max(8).optional(),title:se.max(4e3)}).strict(),lM=d.object({emptyText:se.max(500).optional(),metrics:d.array(Hne).max(6).optional(),nextCursor:se.max(1e3).optional(),records:d.array(One).max(100),searchPlaceholder:se.max(120).optional(),type:d.literal("list")}).strict(),qne=d.object({description:Pne,id:Mne,label:jne,navigation:Gne,pluginDisplayName:se.max(200),pluginName:se.max(100)}).strict(),pM=d.array(qne),qIe=d.object({cursor:se.max(1e3).optional(),filter:se.max(64).optional(),limit:d.number().int().min(1).max(50),query:d.string().trim().max(200).optional()}).strict();var gM=d.object({user:d.object({email:d.string().trim().email(),emailVerified:d.boolean().optional(),name:d.string().nullable().optional()}).strict()}).strict(),mM=d.object({allowedEmailCount:d.number(),allowedGoogleDomainCount:d.number(),authRequired:d.boolean(),authPath:d.string(),basePath:d.string(),componentGallery:d.boolean(),sentryConversationLinks:d.boolean(),timeZone:d.string()}).strict();var Ro=class extends Error{status;constructor(t,n){super(`${t} returned ${n}`),this.status=n}};function Nh(){if(typeof window>"u")return;let e=window.__JUNIOR_DASHBOARD_BASE_PATH__??"/",t=e==="/"?"/auth/login":`${e}/auth/login`;if(window.location.pathname!==t){let n=`${window.location.pathname}${window.location.search||""}`,o=new URLSearchParams;n!=="/"&&o.set("next",n);let a=o.toString();window.location.assign(a?`${t}?${a}`:t)}}async function fM(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"PATCH"});if(o.status===401&&Nh(),!o.ok)throw new Ro(t,o.status);return e.parse(await o.json())}async function bM(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"POST"});if(o.status===401&&Nh(),!o.ok)throw new Ro(t,o.status);return e.parse(await o.json())}async function Ju(e){let t=await fetch(e,{credentials:"same-origin",method:"DELETE"});if(t.status===401&&Nh(),!t.ok)throw new Ro(e,t.status)}async function rt(e,t,n){let o=await fetch(t,{credentials:"same-origin",...n?{signal:n}:{}});if(o.status===401)throw Nh(),new Ro(t,o.status);if(!o.ok)throw new Ro(t,o.status);return e.parse(await o.json())}var $h=5*6e4,kD=5*6e4,zne=1e3;function Yne(e,t=Date.now()){if(!e)return kD;let n=Date.parse(e);if(!Number.isFinite(n))return kD;let o=Math.max(0,t-n);return Math.max(zne,kD-o)}function hM(){return st({queryKey:["dashboard","core"],queryFn:async({signal:e})=>{let[t,n]=await Promise.all([rt(gM,"/api/me",e),rt(mM,"/api/config",e)]);return{config:n,me:t}},retry:!1,staleTime:$h})}function Kne(){return st({queryKey:["dashboard","plugins"],queryFn:({signal:e})=>rt(hD,"/api/plugins",e),retry:!1,staleTime:$h})}function BM(){return st({queryKey:["dashboard","plugin-user-pages"],queryFn:({signal:e})=>rt(pM,"/api/user-pages",e),retry:!1,staleTime:$h})}function yM(e){return st({queryKey:["dashboard","conversations",e??"all"],queryFn:({signal:t})=>{let n=new URLSearchParams;e&&n.set("actorEmail",e);let o=n.toString();return rt(rD,`/api/conversations${o?`?${o}`:""}`,t)},retry:!1})}function CM(e){return st({enabled:e,queryKey:["dashboard","tasks"],queryFn:({signal:t})=>rt(fD,"/api/tasks",t),retry:!1})}function wM(e,t,n){return st({enabled:e&&!!(t&&n),queryKey:["dashboard","tasks",t,n,"executions"],queryFn:({signal:o})=>rt(bD,`/api/tasks/${t}/${encodeURIComponent(n)}/executions`,o),retry:!1})}function EM(){return st({queryKey:["dashboard","people"],queryFn:({signal:e})=>rt(AD,"/api/people",e),retry:!1})}function kM(e){return st({enabled:!!e,queryKey:["dashboard","people",e],queryFn:async({signal:t})=>rt(sD,`/api/people/${encodeURIComponent(e)}`,t),retry:!1})}function QM(e){return st({enabled:e,queryKey:["dashboard","personal-spend"],queryFn:({signal:t})=>rt(cD,"/api/people/me/spend",t),refetchInterval:t=>Yne(t.state.data?.generatedAt),retry:!1,staleTime:0})}function IM(){return st({queryKey:["dashboard","locations"],queryFn:({signal:e})=>rt(uD,"/api/locations",e),retry:!1})}function _M(e){return st({enabled:!!e,queryKey:["dashboard","locations",e],queryFn:async({signal:t})=>rt(dD,`/api/locations/${encodeURIComponent(e)}`,t),retry:!1})}function Jne(){return st({queryKey:["dashboard","skills"],queryFn:({signal:e})=>rt(yD,"/api/skills",e),retry:!1,staleTime:$h})}function Wne(){return st({queryKey:["dashboard","plugin-reports"],queryFn:({signal:e})=>rt(wD,"/api/plugin-reports",e),retry:!1})}function vM(e){let t=Kne(),n=st({queryKey:["dashboard","conversation-stats"],queryFn:({signal:i})=>rt(iD,"/api/conversations/stats",i),retry:!1}),o=Jne(),a=Wne();return{data:t.data&&o.data?{...e,conversationStatsError:!!n.error,...n.data?{conversationStats:n.data}:{},conversationStatsLoading:n.isPending,pluginReportsError:!!a.error,...a.data?{pluginReports:a.data}:{},pluginReportsLoading:a.isPending,plugins:t.data,skills:o.data}:void 0,error:t.error??o.error,isPending:t.isPending||o.isPending}}var xM="Junior";function it(){return typeof window>"u"?xM:window.__JUNIOR_DASHBOARD_AGENT_NAME__?.trim()||xM}function DM(e=it()){return e.endsWith("s")?`${e}'`:`${e}'s`}var QD=w(Q(),1);function Mh(){return(0,QD.jsx)("div",{className:"relative grid size-10 shrink-0 select-none place-items-center overflow-visible",children:(0,QD.jsx)("img",{alt:"",className:"relative size-11 max-w-none -translate-y-0.5 object-contain opacity-90 drop-shadow-[0_0_7px_rgba(255,255,255,0.16)]",draggable:!1,src:"/_junior/dashboard/avatar.png"})})}var FM=["relative","overflow-hidden","bg-white/15","before:absolute","before:inset-0","before:content-['']","before:bg-[linear-gradient(90deg,#ff4d6d,#ffb703,#56f39a,#4cc9f0,#9b5de5,#ff4d6d)]","before:bg-[length:200%_100%]","before:animate-[junior-rainbow-flow_1.2s_linear_infinite]","motion-reduce:before:animate-none"].join(" ");function S(...e){return e.filter(Boolean).join(" ")}var xt="mx-auto w-full min-w-0 max-w-screen-xl",EA="text-dashboard-text-muted hover:text-dashboard-text";var kA=w(Q(),1);function Qe(e){return(0,kA.jsx)("div",{className:S(xt,"grid min-h-[calc(100vh-5rem)] place-items-center px-4 py-8 md:px-8"),children:(0,kA.jsxs)("section",{className:"grid w-full max-w-lg grid-cols-[auto_minmax(0,1fr)] items-center gap-3 rounded-lg border border-white/15 bg-dashboard-surface-raised p-4",children:[(0,kA.jsx)(Mh,{}),(0,kA.jsxs)("div",{children:[(0,kA.jsx)("div",{className:"font-bold",children:e.label}),(0,kA.jsx)("div",{"aria-label":e.label,className:`${FM} mt-3 h-1.5 w-full`,role:"progressbar"})]})]})})}var Gh=w(Y(),1);var jh=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();var SM=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var LM=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());var ID=e=>{let t=LM(e);return t.charAt(0).toUpperCase()+t.slice(1)};var yp=w(Y(),1);var Ph={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var RM=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Wu=w(Y(),1);var Zne=(0,Wu.createContext)({});var NM=()=>(0,Wu.useContext)(Zne);var $M=(0,yp.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:o,className:a="",children:r,iconNode:i,...A},s)=>{let{size:c=24,strokeWidth:u=2,absoluteStrokeWidth:l=!1,color:p="currentColor",className:g=""}=NM()??{},f=o??l?Number(n??u)*24/Number(t??c):n??u;return(0,yp.createElement)("svg",{ref:s,...Ph,width:t??c??Ph.width,height:t??c??Ph.height,stroke:e??p,strokeWidth:f,className:jh("lucide",g,a),...!r&&!RM(A)&&{"aria-hidden":"true"},...A},[...i.map(([B,y])=>(0,yp.createElement)(B,y)),...Array.isArray(r)?r:[r]])});var P=(e,t)=>{let n=(0,Gh.forwardRef)(({className:o,...a},r)=>(0,Gh.createElement)($M,{ref:r,iconNode:t,className:jh(`lucide-${SM(ID(e))}`,`lucide-${e}`,o),...a}));return n.displayName=ID(e),n};var Vne=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],No=P("activity",Vne);var Xne=[["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"}]],Cp=P("archive",Xne);var eae=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],wp=P("arrow-down-to-line",eae);var tae=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Br=P("arrow-left",tae);var nae=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ep=P("arrow-right",nae);var aae=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],kp=P("bookmark",aae);var oae=[["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"}]],yr=P("bot",oae);var rae=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],Ua=P("boxes",rae);var iae=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],Cr=P("braces",iae);var Aae=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],bi=P("brain-circuit",Aae);var sae=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],_s=P("brain",sae);var cae=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],Qp=P("calendar-clock",cae);var uae=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Ip=P("calendar",uae);var dae=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],vs=P("check",dae);var lae=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_p=P("chevron-down",lae);var pae=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],hi=P("chevron-right",pae);var gae=[["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"}]],$o=P("circle-alert",gae);var mae=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],vp=P("circle-dashed",mae);var fae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],xp=P("circle-dot",fae);var bae=[["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"}]],QA=P("circle-x",bae);var hae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],Mo=P("clock-3",hae);var Bae=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],xs=P("coins",Bae);var yae=[["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"}]],Ds=P("copy",yae);var Cae=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],IA=P("database",Cae);var wae=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],Dp=P("diff",wae);var Eae=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],uo=P("earth",Eae);var kae=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Fp=P("external-link",kae);var Qae=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Sp=P("git-merge",Qae);var Iae=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Lp=P("hash",Iae);var _ae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Rp=P("info",_ae);var vae=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],jo=P("key-round",vae);var xae=[["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"}]],Np=P("lightbulb",xae);var Dae=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],$p=P("link",Dae);var Fae=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],Bi=P("lock-keyhole",Fae);var Sae=[["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"}]],Mp=P("log-out",Sae);var Lae=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Fs=P("map-pin",Lae);var Rae=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],jp=P("map-pinned",Rae);var Nae=[["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"}]],Ta=P("message-square",Nae);var $ae=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Pp=P("minimize-2",$ae);var Mae=[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]],Gp=P("radio-tower",Mae);var jae=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yi=P("search",jae);var Pae=[["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"}]],Hp=P("send",Pae);var Gae=[["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"}]],zn=P("sparkles",Gae);var Hae=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],Up=P("timer",Hae);var Uae=[["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"}]],Po=P("trash-2",Uae);var Tae=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Qa=P("triangle-alert",Tae);var Oae=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Ia=P("user-round",Oae);var qae=[["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"}]],Ss=P("users",qae);var zae=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Go=P("x",zae);var Fr=w(Y(),1);var _D=Object.defineProperty,Yae=Object.getOwnPropertyDescriptor,Kae=Object.getOwnPropertyNames,Jae=Object.prototype.hasOwnProperty,jM=(e,t)=>{let n={};for(var o in e)_D(n,o,{get:e[o],enumerable:!0});return t||_D(n,Symbol.toStringTag,{value:"Module"}),n},MM=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Kae(t),r=0,i=a.length,A;r<i;r++)A=a[r],!Jae.call(e,A)&&A!==n&&_D(e,A,{get:(s=>t[s]).bind(null,A),enumerable:!(o=Yae(t,A))||o.enumerable});return e},PM=(e,t,n)=>(MM(e,t,"default"),n&&MM(n,t,"default"));var FD={};F(FD,{createOnigurumaEngine:()=>loe,getDefaultWasmLoader:()=>doe,loadWasm:()=>HM,setDefaultWasmLoader:()=>uoe});var DD=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Wae(){return 2147483648}function Zae(){return typeof performance<"u"?performance.now():Date.now()}var Vae=(e,t)=>e+(t-e%t)%t;async function Xae(e){let t,n,o={};function a(g){n=g,o.HEAPU8=new Uint8Array(g),o.HEAPU32=new Uint32Array(g)}function r(g,f,B){o.HEAPU8.copyWithin(g,f,f+B)}function i(g){try{return t.grow(g-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function A(g){let f=o.HEAPU8.length;g=g>>>0;let B=Wae();if(g>B)return!1;for(let y=1;y<=4;y*=2){let m=f*(1+.2/y);m=Math.min(m,g+100663296);let h=Math.min(B,Vae(Math.max(g,m),65536));if(i(h))return!0}return!1}let s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(g,f,B=1024){let y=f+B,m=f;for(;g[m]&&!(m>=y);)++m;if(m-f>16&&g.buffer&&s)return s.decode(g.subarray(f,m));let h="";for(;f<m;){let b=g[f++];if(!(b&128)){h+=String.fromCharCode(b);continue}let C=g[f++]&63;if((b&224)===192){h+=String.fromCharCode((b&31)<<6|C);continue}let E=g[f++]&63;if((b&240)===224?b=(b&15)<<12|C<<6|E:b=(b&7)<<18|C<<12|E<<6|g[f++]&63,b<65536)h+=String.fromCharCode(b);else{let x=b-65536;h+=String.fromCharCode(55296|x>>10,56320|x&1023)}}return h}function u(g,f){return g?c(o.HEAPU8,g,f):""}let l={emscripten_get_now:Zae,emscripten_memcpy_big:r,emscripten_resize_heap:A,fd_write:()=>0};async function p(){let f=await e({env:l,wasi_snapshot_preview1:l});t=f.memory,a(t.buffer),Object.assign(o,f),o.UTF8ToString=u}return await p(),o}var eoe=Object.defineProperty,toe=(e,t,n)=>t in e?eoe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fn=(e,t,n)=>toe(e,typeof t!="symbol"?t+"":t,n),kn=null;function noe(e){throw new DD(e.UTF8ToString(e.getLastOnigError()))}var Uh=class e{constructor(t){fn(this,"utf16Length"),fn(this,"utf8Length"),fn(this,"utf16Value"),fn(this,"utf8Value"),fn(this,"utf16OffsetToUtf8"),fn(this,"utf8OffsetToUtf16");let n=t.length,o=e._utf8ByteLength(t),a=o!==n,r=a?new Uint32Array(n+1):null;a&&(r[n]=o);let i=a?new Uint32Array(o+1):null;a&&(i[o]=n);let A=new Uint8Array(o),s=0;for(let c=0;c<n;c++){let u=t.charCodeAt(c),l=u,p=!1;if(u>=55296&&u<=56319&&c+1<n){let g=t.charCodeAt(c+1);g>=56320&&g<=57343&&(l=(u-55296<<10)+65536|g-56320,p=!0)}a&&(r[c]=s,p&&(r[c+1]=s),l<=127?i[s+0]=c:l<=2047?(i[s+0]=c,i[s+1]=c):l<=65535?(i[s+0]=c,i[s+1]=c,i[s+2]=c):(i[s+0]=c,i[s+1]=c,i[s+2]=c,i[s+3]=c)),l<=127?A[s++]=l:l<=2047?(A[s++]=192|(l&1984)>>>6,A[s++]=128|(l&63)>>>0):l<=65535?(A[s++]=224|(l&61440)>>>12,A[s++]=128|(l&4032)>>>6,A[s++]=128|(l&63)>>>0):(A[s++]=240|(l&1835008)>>>18,A[s++]=128|(l&258048)>>>12,A[s++]=128|(l&4032)>>>6,A[s++]=128|(l&63)>>>0),p&&c++}this.utf16Length=n,this.utf8Length=o,this.utf16Value=t,this.utf8Value=A,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=i}static _utf8ByteLength(t){let n=0;for(let o=0,a=t.length;o<a;o++){let r=t.charCodeAt(o),i=r,A=!1;if(r>=55296&&r<=56319&&o+1<a){let s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(r-55296<<10)+65536|s-56320,A=!0)}i<=127?n+=1:i<=2047?n+=2:i<=65535?n+=3:n+=4,A&&o++}return n}createString(t){let n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}},Th=class wr{constructor(t){if(fn(this,"id",++wr.LAST_ID),fn(this,"_onigBinding"),fn(this,"content"),fn(this,"utf16Length"),fn(this,"utf8Length"),fn(this,"utf16OffsetToUtf8"),fn(this,"utf8OffsetToUtf16"),fn(this,"ptr"),!kn)throw new DD("Must invoke loadWasm first.");this._onigBinding=kn,this.content=t;let n=new Uh(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!wr._sharedPtrInUse?(wr._sharedPtr||(wr._sharedPtr=kn.omalloc(1e4)),wr._sharedPtrInUse=!0,kn.HEAPU8.set(n.utf8Value,wr._sharedPtr),this.ptr=wr._sharedPtr):this.ptr=n.createString(kn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===wr._sharedPtr?wr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};fn(Th,"LAST_ID",0);fn(Th,"_sharedPtr",0);fn(Th,"_sharedPtrInUse",!1);var GM=Th,xD=class{constructor(t){if(fn(this,"_onigBinding"),fn(this,"_ptr"),!kn)throw new DD("Must invoke loadWasm first.");let n=[],o=[];for(let A=0,s=t.length;A<s;A++){let c=new Uh(t[A]);n[A]=c.createString(kn),o[A]=c.utf8Length}let a=kn.omalloc(4*t.length);kn.HEAPU32.set(n,a/4);let r=kn.omalloc(4*t.length);kn.HEAPU32.set(o,r/4);let i=kn.createOnigScanner(a,r,t.length);for(let A=0,s=t.length;A<s;A++)kn.ofree(n[A]);kn.ofree(r),kn.ofree(a),i===0&&noe(kn),this._onigBinding=kn,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,o){let a=0;if(typeof o=="number"&&(a=o),typeof t=="string"){t=new GM(t);let r=this._findNextMatchSync(t,n,!1,a);return t.dispose(),r}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,o,a){let r=this._onigBinding,i=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(i===0)return null;let A=r.HEAPU32,s=i/4,c=A[s++],u=A[s++],l=[];for(let p=0;p<u;p++){let g=t.convertUtf8OffsetToUtf16(A[s++]),f=t.convertUtf8OffsetToUtf16(A[s++]);l[p]={start:g,end:f,length:f-g}}return{index:c,captureIndices:l}}};function aoe(e){return typeof e.instantiator=="function"}function ooe(e){return typeof e.default=="function"}function roe(e){return typeof e.data<"u"}function ioe(e){return typeof Response<"u"&&e instanceof Response}function Aoe(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}var Hh;function HM(e){if(Hh)return Hh;async function t(){kn=await Xae(async n=>{let o=e;return o=await o,typeof o=="function"&&(o=await o(n)),typeof o=="function"&&(o=await o(n)),aoe(o)?o=await o.instantiator(n):ooe(o)?o=await o.default(n):(roe(o)&&(o=o.data),ioe(o)?typeof WebAssembly.instantiateStreaming=="function"?o=await soe(o)(n):o=await coe(o)(n):Aoe(o)?o=await vD(o)(n):o instanceof WebAssembly.Module?o=await vD(o)(n):"default"in o&&o.default instanceof WebAssembly.Module&&(o=await vD(o.default)(n))),"instance"in o&&(o=o.instance),"exports"in o&&(o=o.exports),o})}return Hh=t(),Hh}function vD(e){return t=>WebAssembly.instantiate(e,t)}function soe(e){return t=>WebAssembly.instantiateStreaming(e,t)}function coe(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var UM;function uoe(e){UM=e}function doe(){return UM}async function loe(e){return e&&await HM(e),{createScanner(t){return new xD(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new GM(t)}}}var SD=jM({});PM(SD,FD);var dP=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Promise.resolve().then(()=>(OM(),TM)))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Promise.resolve().then(()=>(zM(),qM)))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(KM(),YM)))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>Promise.resolve().then(()=>(WM(),JM)))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>Promise.resolve().then(()=>(VM(),ZM)))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:(()=>Promise.resolve().then(()=>(ej(),XM)))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Promise.resolve().then(()=>(nj(),tj)))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Promise.resolve().then(()=>(oj(),aj)))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Promise.resolve().then(()=>(ij(),rj)))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Promise.resolve().then(()=>(sj(),Aj)))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(uj(),cj)))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(lj(),dj)))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(gj(),pj)))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Promise.resolve().then(()=>(fj(),mj)))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(hj(),bj)))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Promise.resolve().then(()=>(yj(),Bj)))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Promise.resolve().then(()=>(wj(),Cj)))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Promise.resolve().then(()=>(kj(),Ej)))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Promise.resolve().then(()=>(Ij(),Qj)))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Promise.resolve().then(()=>(vj(),_j)))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Promise.resolve().then(()=>(Dj(),xj)))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Promise.resolve().then(()=>(Sj(),Fj)))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Promise.resolve().then(()=>(Rj(),Lj)))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Promise.resolve().then(()=>($j(),Nj)))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Promise.resolve().then(()=>(jj(),Mj)))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Promise.resolve().then(()=>(Gj(),Pj)))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Promise.resolve().then(()=>(Uj(),Hj)))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>Promise.resolve().then(()=>(Oj(),Tj)))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>Promise.resolve().then(()=>(zj(),qj)))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Promise.resolve().then(()=>(Kj(),Yj)))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Promise.resolve().then(()=>(Wj(),Jj)))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Promise.resolve().then(()=>(Vj(),Zj)))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Promise.resolve().then(()=>(e7(),Xj)))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Promise.resolve().then(()=>(n7(),t7)))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Promise.resolve().then(()=>(o7(),a7)))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(i7(),r7)))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Promise.resolve().then(()=>(s7(),A7)))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Promise.resolve().then(()=>(u7(),c7)))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Promise.resolve().then(()=>(l7(),d7)))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Promise.resolve().then(()=>(g7(),p7)))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(f7(),m7)))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Promise.resolve().then(()=>(h7(),b7)))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Promise.resolve().then(()=>(y7(),B7)))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Promise.resolve().then(()=>(w7(),C7)))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>Promise.resolve().then(()=>(k7(),E7)))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Promise.resolve().then(()=>(I7(),Q7)))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Promise.resolve().then(()=>(v7(),_7)))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Promise.resolve().then(()=>(D7(),x7)))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Promise.resolve().then(()=>(S7(),F7)))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Promise.resolve().then(()=>(R7(),L7)))},{id:"red",displayName:"Red",type:"dark",import:(()=>Promise.resolve().then(()=>($7(),N7)))},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:(()=>Promise.resolve().then(()=>(j7(),M7)))},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:(()=>Promise.resolve().then(()=>(G7(),P7)))},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:(()=>Promise.resolve().then(()=>(U7(),H7)))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(O7(),T7)))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Promise.resolve().then(()=>(z7(),q7)))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Promise.resolve().then(()=>(K7(),Y7)))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(W7(),J7)))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Promise.resolve().then(()=>(V7(),Z7)))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Promise.resolve().then(()=>(eP(),X7)))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Promise.resolve().then(()=>(nP(),tP)))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Promise.resolve().then(()=>(oP(),aP)))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Promise.resolve().then(()=>(iP(),rP)))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(sP(),AP)))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Promise.resolve().then(()=>(uP(),cP)))}],lP=Object.fromEntries(dP.map(e=>[e.id,e.import]));var qe=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function kre(e){return UD(e)}function UD(e){return Array.isArray(e)?Qre(e):e instanceof RegExp?e:typeof e=="object"?Ire(e):e}function Qre(e){let t=[];for(let n=0,o=e.length;n<o;n++)t[n]=UD(e[n]);return t}function Ire(e){let t={};for(let n in e)t[n]=UD(e[n]);return t}function CP(e,...t){return t.forEach(n=>{for(let o in n)e[o]=n[o]}),e}function wP(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?wP(e.substring(0,e.length-1)):e.substr(~t+1)}var LD=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Oh=class{static hasCaptures(e){return e===null?!1:(LD.lastIndex=0,LD.test(e))}static replaceCaptures(e,t,n){return e.replace(LD,(o,a,r,i)=>{let A=n[parseInt(a||r,10)];if(A){let s=t.substring(A.start,A.end);for(;s[0]===".";)s=s.substring(1);switch(i){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return o})}};function EP(e,t){return e<t?-1:e>t?1:0}function kP(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let a=0;a<n;a++){let r=EP(e[a],t[a]);if(r!==0)return r}return 0}return n-o}function pP(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function QP(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var IP=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},qp=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(xre(e),t)}static createFromParsedTheme(e,t){return Fre(e,t)}_cachedMatchRoot=new IP(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,o=this._cachedMatchRoot.get(t).find(a=>_re(e.parent,a.parentScopes));return o?new _P(o.fontStyle,o.foreground,o.background):null}},RD=class qh{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(let o of n)t=new qh(t,o);return t}static from(...t){let n=null;for(let o=0;o<t.length;o++)n=new qh(n,t[o]);return n}push(t){return new qh(this,t)}getSegments(){let t=this,n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let n=[],o=this;for(;o&&o!==t;)n.push(o.scopeName),o=o.parent;return o===t?n.reverse():void 0}};function _re(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let o=t[n],a=!1;if(o===">"){if(n===t.length-1)return!1;o=t[++n],a=!0}for(;e&&!vre(e.scopeName,o);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function vre(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var _P=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function xre(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],o=0;for(let a=0,r=t.length;a<r;a++){let i=t[a];if(!i.settings)continue;let A;if(typeof i.scope=="string"){let l=i.scope;l=l.replace(/^[,]+/,""),l=l.replace(/[,]+$/,""),A=l.split(",")}else Array.isArray(i.scope)?A=i.scope:A=[""];let s=-1;if(typeof i.settings.fontStyle=="string"){s=0;let l=i.settings.fontStyle.split(" ");for(let p=0,g=l.length;p<g;p++)switch(l[p]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let c=null;typeof i.settings.foreground=="string"&&pP(i.settings.foreground)&&(c=i.settings.foreground);let u=null;typeof i.settings.background=="string"&&pP(i.settings.background)&&(u=i.settings.background);for(let l=0,p=A.length;l<p;l++){let f=A[l].trim().split(" "),B=f[f.length-1],y=null;f.length>1&&(y=f.slice(0,f.length-1),y.reverse()),n[o++]=new Dre(B,y,a,s,c,u)}}return n}var Dre=class{constructor(e,t,n,o,a,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=o,this.foreground=a,this.background=r}},Nn=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Nn||{});function Fre(e,t){e.sort((s,c)=>{let u=EP(s.scope,c.scope);return u!==0||(u=kP(s.parentScopes,c.parentScopes),u!==0)?u:s.index-c.index});let n=0,o="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let s=e.shift();s.fontStyle!==-1&&(n=s.fontStyle),s.foreground!==null&&(o=s.foreground),s.background!==null&&(a=s.background)}let r=new Sre(t),i=new _P(n,r.getId(o),r.getId(a)),A=new Rre(new $D(0,null,-1,0,0),[]);for(let s=0,c=e.length;s<c;s++){let u=e[s];A.insert(0,u.scope,u.parentScopes,u.fontStyle,r.getId(u.foreground),r.getId(u.background))}return new qp(r,i,A)}var Sre=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Lre=Object.freeze([]),$D=class vP{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,o,a,r){this.scopeDepth=t,this.parentScopes=n||Lre,this.fontStyle=o,this.foreground=a,this.background=r}clone(){return new vP(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let o=0,a=t.length;o<a;o++)n[o]=t[o].clone();return n}acceptOverwrite(t,n,o,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),o!==0&&(this.foreground=o),a!==0&&(this.background=a)}},Rre=class MD{constructor(t,n=[],o={}){this._mainRule=t,this._children=o,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let o=0,a=0;for(;t.parentScopes[o]===">"&&o++,n.parentScopes[a]===">"&&a++,!(o>=t.parentScopes.length||a>=n.parentScopes.length);){let r=n.parentScopes[a].length-t.parentScopes[o].length;if(r!==0)return r;o++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),a,r;if(o===-1?(a=t,r=""):(a=t.substring(0,o),r=t.substring(o+1)),this._children.hasOwnProperty(a))return this._children[a].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(MD._cmpBySpecificity),n}insert(t,n,o,a,r,i){if(n===""){this._doInsertHere(t,o,a,r,i);return}let A=n.indexOf("."),s,c;A===-1?(s=n,c=""):(s=n.substring(0,A),c=n.substring(A+1));let u;this._children.hasOwnProperty(s)?u=this._children[s]:(u=new MD(this._mainRule.clone(),$D.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,c,o,a,r,i)}_doInsertHere(t,n,o,a,r){if(n===null){this._mainRule.acceptOverwrite(t,o,a,r);return}for(let i=0,A=this._rulesWithParentScopes.length;i<A;i++){let s=this._rulesWithParentScopes[i];if(kP(s.parentScopes,n)===0){s.acceptOverwrite(t,o,a,r);return}}o===-1&&(o=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),r===0&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new $D(t,n,o,a,r))}},Rs=class lo{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let n=lo.getLanguageId(t),o=lo.getTokenType(t),a=lo.getFontStyle(t),r=lo.getForeground(t),i=lo.getBackground(t);console.log({languageId:n,tokenType:o,fontStyle:a,foreground:r,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,o,a,r,i,A){let s=lo.getLanguageId(t),c=lo.getTokenType(t),u=lo.containsBalancedBrackets(t)?1:0,l=lo.getFontStyle(t),p=lo.getForeground(t),g=lo.getBackground(t);return n!==0&&(s=n),o!==8&&(c=o),a!==null&&(u=a?1:0),r!==-1&&(l=r),i!==0&&(p=i),A!==0&&(g=A),(s<<0|c<<8|u<<10|l<<11|p<<15|g<<24)>>>0}};function Yh(e,t){let n=[],o=Nre(e),a=o.next();for(;a!==null;){let s=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=o.next()}let c=i();if(n.push({matcher:c,priority:s}),a!==",")break;a=o.next()}return n;function r(){if(a==="-"){a=o.next();let s=r();return c=>!!s&&!s(c)}if(a==="("){a=o.next();let s=A();return a===")"&&(a=o.next()),s}if(gP(a)){let s=[];do s.push(a),a=o.next();while(gP(a));return c=>t(s,c)}return null}function i(){let s=[],c=r();for(;c;)s.push(c),c=r();return u=>s.every(l=>l(u))}function A(){let s=[],c=i();for(;c&&(s.push(c),a==="|"||a===",");){do a=o.next();while(a==="|"||a===",");c=i()}return u=>s.some(l=>l(u))}}function gP(e){return!!e&&!!e.match(/[\w\.:]+/)}function Nre(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let o=n[0];return n=t.exec(e),o}}}function xP(e){typeof e.dispose=="function"&&e.dispose()}var zp=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},$re=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Mre=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},jre=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new zp(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Mre;for(let n of e)Pre(n,this.initialScopeName,this.repo,t);for(let n of t.references)if(n instanceof zp){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Pre(e,t,n,o){let a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let r=n.lookup(t);e instanceof zp?zh({baseGrammar:r,selfGrammar:a},o):jD(e.ruleName,{baseGrammar:r,selfGrammar:a,repository:a.repository},o);let i=n.injections(e.scopeName);if(i)for(let A of i)o.add(new zp(A))}function jD(e,t,n){if(t.repository&&t.repository[e]){let o=t.repository[e];Kh([o],t,n)}}function zh(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Kh(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Kh(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Kh(e,t,n){for(let o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);let a=o.repository?CP({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&Kh(o.patterns,{...t,repository:a},n);let r=o.include;if(!r)continue;let i=DP(r);switch(i.kind){case 0:zh({...t,selfGrammar:t.baseGrammar},n);break;case 1:zh(t,n);break;case 2:jD(i.ruleName,{...t,repository:a},n);break;case 3:case 4:let A=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(A){let s={baseGrammar:t.baseGrammar,selfGrammar:A,repository:a};i.kind===4?jD(i.ruleName,s,n):zh(s,n)}else i.kind===4?n.add(new $re(i.scopeName,i.ruleName)):n.add(new zp(i.scopeName));break}}}var Gre=class{kind=0},Hre=class{kind=1},Ure=class{constructor(e){this.ruleName=e}kind=2},Tre=class{constructor(e){this.scopeName=e}kind=3},Ore=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function DP(e){if(e==="$base")return new Gre;if(e==="$self")return new Hre;let t=e.indexOf("#");if(t===-1)return new Tre(e);if(t===0)return new Ure(e.substring(1));{let n=e.substring(0,t),o=e.substring(t+1);return new Ore(n,o)}}var qre=/\\(\d+)/,mP=/\\(\d+)/g;var zre=-1,FP=-2;var Jp=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Oh.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=Oh.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${wP(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Oh.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Oh.replaceCaptures(this._contentName,e,t)}},Yre=class extends Jp{retokenizeCapturedWithRuleId;constructor(e,t,n,o,a){super(e,t,n,o),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,o){throw new Error("Not supported!")}},Kre=class extends Jp{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,null),this._match=new Yp(o,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Kp,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},fP=class extends Jp{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,o),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Kp,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},PD=class extends Jp{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a,r,i,A,s,c){super(e,t,n,o),this._begin=new Yp(a,this.id),this.beginCaptures=r,this._end=new Yp(i||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=A,this.applyEndPatternLast=s||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Kp;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Jh=class extends Jp{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,o,a,r,i,A,s){super(e,t,n,o),this._begin=new Yp(a,this.id),this.beginCaptures=r,this.whileCaptures=A,this._while=new Yp(i,FP),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Kp;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Kp,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},SP=class Yn{static createCaptureRule(t,n,o,a,r){return t.registerRule(i=>new Yre(n,i,o,a,r))}static getCompiledRuleId(t,n,o){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new Kre(t.$vscodeTextmateLocation,t.id,t.name,t.match,Yn._compileCaptures(t.captures,n,o));if(typeof t.begin>"u"){t.repository&&(o=CP({},o,t.repository));let r=t.patterns;return typeof r>"u"&&t.include&&(r=[{include:t.include}]),new fP(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Yn._compilePatterns(r,n,o))}return t.while?new Jh(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Yn._compileCaptures(t.beginCaptures||t.captures,n,o),t.while,Yn._compileCaptures(t.whileCaptures||t.captures,n,o),Yn._compilePatterns(t.patterns,n,o)):new PD(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Yn._compileCaptures(t.beginCaptures||t.captures,n,o),t.end,Yn._compileCaptures(t.endCaptures||t.captures,n,o),t.applyEndPatternLast,Yn._compilePatterns(t.patterns,n,o))}),t.id}static _compileCaptures(t,n,o){let a=[];if(t){let r=0;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let A=parseInt(i,10);A>r&&(r=A)}for(let i=0;i<=r;i++)a[i]=null;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let A=parseInt(i,10),s=0;t[i].patterns&&(s=Yn.getCompiledRuleId(t[i],n,o)),a[A]=Yn.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,s)}}return a}static _compilePatterns(t,n,o){let a=[];if(t)for(let r=0,i=t.length;r<i;r++){let A=t[r],s=-1;if(A.include){let c=DP(A.include);switch(c.kind){case 0:case 1:s=Yn.getCompiledRuleId(o[A.include],n,o);break;case 2:let u=o[c.ruleName];u&&(s=Yn.getCompiledRuleId(u,n,o));break;case 3:case 4:let l=c.scopeName,p=c.kind===4?c.ruleName:null,g=n.getExternalGrammar(l,o);if(g)if(p){let f=g.repository[p];f&&(s=Yn.getCompiledRuleId(f,n,g.repository))}else s=Yn.getCompiledRuleId(g.repository.$self,n,g.repository);break}}else s=Yn.getCompiledRuleId(A,n,o);if(s!==-1){let c=n.getRule(s),u=!1;if((c instanceof fP||c instanceof PD||c instanceof Jh)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;a.push(s)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Yp=class LP{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){let o=t.length,a=0,r=[],i=!1;for(let A=0;A<o;A++)if(t.charAt(A)==="\\"&&A+1<o){let c=t.charAt(A+1);c==="z"?(r.push(t.substring(a,A)),r.push("$(?!\\n)(?<!\\n)"),a=A+2):(c==="A"||c==="G")&&(i=!0),A++}this.hasAnchor=i,a===0?this.source=t:(r.push(t.substring(a,o)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=qre.test(this.source):this.hasBackReferences=!1}clone(){return new LP(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let o=n.map(a=>t.substring(a.start,a.end));return mP.lastIndex=0,this.source.replace(mP,(a,r)=>QP(o[parseInt(r,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],o=[],a=[],r,i,A,s;for(r=0,i=this.source.length;r<i;r++)A=this.source.charAt(r),t[r]=A,n[r]=A,o[r]=A,a[r]=A,A==="\\"&&r+1<i&&(s=this.source.charAt(r+1),s==="A"?(t[r+1]="\uFFFF",n[r+1]="\uFFFF",o[r+1]="A",a[r+1]="A"):s==="G"?(t[r+1]="\uFFFF",n[r+1]="G",o[r+1]="\uFFFF",a[r+1]="G"):(t[r+1]=s,n[r+1]=s,o[r+1]=s,a[r+1]=s),r++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:o.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Kp=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new bP(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let o=this._items.map(a=>a.resolveAnchors(t,n));return new bP(e,o,this._items.map(a=>a.ruleId))}},bP=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
75
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let A=i[1];if(t===i[0]){r(i);continue}if(e.external){let c=e.external.registry.get(i[0])?.id;if(t!==i[0]&&c){r(i);continue}}if(e.metadataRegistry.get(i[0])?.id){r(i);continue}if(A.cycle){r(i);continue}if(A.count>1&&e.reused==="ref"){r(i);continue}}}function yA(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=A=>{let s=e.seen.get(A);if(s.ref===null)return;let c=s.def??s.schema,u={...c},l=s.ref;if(s.ref=null,l){o(l);let g=e.seen.get(l),f=g.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(f)):Object.assign(c,f),Object.assign(c,u),A._zod.parent===l)for(let y in c)y==="$ref"||y==="allOf"||y in u||delete c[y];if(f.$ref&&g.def)for(let y in c)y==="$ref"||y==="allOf"||y in g.def&&JSON.stringify(c[y])===JSON.stringify(g.def[y])&&delete c[y]}let p=A._zod.parent;if(p&&p!==l){o(p);let g=e.seen.get(p);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let f in c)f==="$ref"||f==="allOf"||f in g.def&&JSON.stringify(c[f])===JSON.stringify(g.def[f])&&delete c[f]}e.override({zodSchema:A,jsonSchema:c,path:s.path??[]})};for(let A of[...e.seen.entries()].reverse())o(A[0]);let a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let A=e.external.registry.get(t)?.id;if(!A)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(A)}Object.assign(a,n.def??n.schema);let r=e.metadataRegistry.get(t)?.id;r!==void 0&&a.id===r&&delete a.id;let i=e.external?.defs??{};for(let A of e.seen.entries()){let s=A[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?a.$defs=i:a.definitions=i);try{let A=JSON.parse(JSON.stringify(a));return Object.defineProperty(A,"~standard",{value:{...t["~standard"],jsonSchema:{input:Nu(t,"input",e.processors),output:Nu(t,"output",e.processors)}},enumerable:!1,writable:!1}),A}catch{throw new Error("Error converting schema to JSON.")}}function ra(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return ra(o.element,n);if(o.type==="set")return ra(o.valueType,n);if(o.type==="lazy")return ra(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return ra(o.innerType,n);if(o.type==="intersection")return ra(o.left,n)||ra(o.right,n);if(o.type==="record"||o.type==="map")return ra(o.keyType,n)||ra(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ra(o.in,n)||ra(o.out,n);if(o.type==="object"){for(let a in o.shape)if(ra(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(let a of o.options)if(ra(a,n))return!0;return!1}if(o.type==="tuple"){for(let a of o.items)if(ra(a,n))return!0;return!!(o.rest&&ra(o.rest,n))}return!1}var lI=(e,t={})=>n=>{let o=hA({...n,processors:t});return Ue(e,o),BA(o,e),yA(o,e)},Nu=(e,t,n={})=>o=>{let{libraryOptions:a,target:r}=o??{},i=hA({...a??{},target:r,io:t,processors:n});return Ue(e,i),BA(i,e),yA(i,e)};var ree={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},pI=(e,t,n,o)=>{let a=n;a.type="string";let{minimum:r,maximum:i,format:A,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof i=="number"&&(a.maxLength=i),A&&(a.format=ree[A]??A,a.format===""&&delete a.format,A==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){let u=[...s];u.length===1?a.pattern=u[0].source:u.length>1&&(a.allOf=[...u.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},gI=(e,t,n,o)=>{let a=n,{minimum:r,maximum:i,format:A,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof A=="string"&&A.includes("int")?a.type="integer":a.type="number";let l=typeof u=="number"&&u>=(r??Number.NEGATIVE_INFINITY),p=typeof c=="number"&&c<=(i??Number.POSITIVE_INFINITY),g=t.target==="draft-04"||t.target==="openapi-3.0";l?g?(a.minimum=u,a.exclusiveMinimum=!0):a.exclusiveMinimum=u:typeof r=="number"&&(a.minimum=r),p?g?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof i=="number"&&(a.maximum=i),typeof s=="number"&&(a.multipleOf=s)},mI=(e,t,n,o)=>{n.type="boolean"},fI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},bI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},hI=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},BI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},yI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},CI=(e,t,n,o)=>{n.not={}},wI=(e,t,n,o)=>{},EI=(e,t,n,o)=>{},kI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},QI=(e,t,n,o)=>{let a=e._zod.def,r=Rl(a.entries);r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),n.enum=r},II=(e,t,n,o)=>{let a=e._zod.def,r=[];for(let i of a.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(i))}else r.push(i);if(r.length!==0)if(r.length===1){let i=r[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),r.every(i=>typeof i=="boolean")&&(n.type="boolean"),r.every(i=>i===null)&&(n.type="null"),n.enum=r},_I=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},vI=(e,t,n,o)=>{let a=n,r=e._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},xI=(e,t,n,o)=>{let a=n,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:A,mime:s}=e._zod.bag;i!==void 0&&(r.minLength=i),A!==void 0&&(r.maxLength=A),s?s.length===1?(r.contentMediaType=s[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(a,r)},DI=(e,t,n,o)=>{n.type="boolean"},FI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},SI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},LI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},RI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},NI=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},$I=(e,t,n,o)=>{let a=n,r=e._zod.def,{minimum:i,maximum:A}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof A=="number"&&(a.maxItems=A),a.type="array",a.items=Ue(r.element,t,{...o,path:[...o.path,"items"]})},MI=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object",a.properties={};let i=r.shape;for(let c in i)a.properties[c]=Ue(i[c],t,{...o,path:[...o.path,"properties",c]});let A=new Set(Object.keys(i)),s=new Set([...A].filter(c=>{let u=r.shape[c]._zod;return t.io==="input"?u.optin===void 0:u.optout===void 0}));s.size>0&&(a.required=Array.from(s)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=Ue(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},Ob=(e,t,n,o)=>{let a=e._zod.def,r=a.inclusive===!1,i=a.options.map((A,s)=>Ue(A,t,{...o,path:[...o.path,r?"oneOf":"anyOf",s]}));r?n.oneOf=i:n.anyOf=i},jI=(e,t,n,o)=>{let a=e._zod.def,r=Ue(a.left,t,{...o,path:[...o.path,"allOf",0]}),i=Ue(a.right,t,{...o,path:[...o.path,"allOf",1]}),A=c=>"allOf"in c&&Object.keys(c).length===1,s=[...A(r)?r.allOf:[r],...A(i)?i.allOf:[i]];n.allOf=s},PI=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",A=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=r.items.map((p,g)=>Ue(p,t,{...o,path:[...o.path,i,g]})),c=r.rest?Ue(r.rest,t,{...o,path:[...o.path,A,...t.target==="openapi-3.0"?[r.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=s,c&&(a.items=c)):t.target==="openapi-3.0"?(a.items={anyOf:s},c&&a.items.anyOf.push(c),a.minItems=s.length,c||(a.maxItems=s.length)):(a.items=s,c&&(a.additionalItems=c));let{minimum:u,maximum:l}=e._zod.bag;typeof u=="number"&&(a.minItems=u),typeof l=="number"&&(a.maxItems=l)},GI=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object";let i=r.keyType,s=i._zod.bag?.patterns;if(r.mode==="loose"&&s&&s.size>0){let u=Ue(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(let l of s)a.patternProperties[l.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=Ue(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=Ue(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=i._zod.values;if(c){let u=[...c].filter(l=>typeof l=="string"||typeof l=="number");u.length>0&&(a.required=u)}},HI=(e,t,n,o)=>{let a=e._zod.def,r=Ue(a.innerType,t,o),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},UI=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},TI=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},OI=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},qI=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},zI=(e,t,n,o)=>{let a=e._zod.def,r=a.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?r?a.out:a.in:a.out;Ue(i,t,o);let A=t.seen.get(e);A.ref=i},YI=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.readOnly=!0},KI=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},qb=(e,t,n,o)=>{let a=e._zod.def;Ue(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},JI=(e,t,n,o)=>{let a=e._zod.innerType;Ue(a,t,o);let r=t.seen.get(e);r.ref=a},Tb={string:pI,number:gI,boolean:mI,bigint:fI,symbol:bI,null:hI,undefined:BI,void:yI,never:CI,any:wI,unknown:EI,date:kI,enum:QI,literal:II,nan:_I,template_literal:vI,file:xI,success:DI,custom:FI,function:SI,transform:LI,map:RI,set:NI,array:$I,object:MI,union:Ob,intersection:jI,tuple:PI,record:GI,nullable:HI,nonoptional:UI,default:TI,prefault:OI,catch:qI,pipe:zI,readonly:YI,promise:KI,optional:qb,lazy:JI};function zb(e,t){if("_idmap"in e){let o=e,a=hA({...t,processors:Tb}),r={};for(let s of o._idmap.entries()){let[c,u]=s;Ue(u,a)}let i={},A={registry:o,uri:t?.uri,defs:r};a.external=A;for(let s of o._idmap.entries()){let[c,u]=s;BA(a,u),i[c]=yA(a,u)}if(Object.keys(r).length>0){let s=a.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[s]:r}}return{schemas:i}}let n=hA({...t,processors:Tb});return Ue(e,n),BA(n,e),yA(n,e)}var Yb=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=hA({processors:Tb,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return Ue(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),BA(this.ctx,t);let o=yA(this.ctx,t),{"~standard":a,...r}=o;return r}};var aR={};var Vl={};F(Vl,{ZodAny:()=>B_,ZodArray:()=>E_,ZodBase64:()=>gh,ZodBase64URL:()=>mh,ZodBigInt:()=>Tu,ZodBigIntFormat:()=>hh,ZodBoolean:()=>Uu,ZodCIDRv4:()=>lh,ZodCIDRv6:()=>ph,ZodCUID:()=>rh,ZodCUID2:()=>ih,ZodCatch:()=>q_,ZodCodec:()=>up,ZodCustom:()=>dp,ZodCustomStringFormat:()=>Gu,ZodDate:()=>rp,ZodDefault:()=>P_,ZodDiscriminatedUnion:()=>Q_,ZodE164:()=>fh,ZodEmail:()=>nh,ZodEmoji:()=>ah,ZodEnum:()=>ju,ZodExactOptional:()=>$_,ZodFile:()=>R_,ZodFunction:()=>tv,ZodGUID:()=>ep,ZodIPv4:()=>uh,ZodIPv6:()=>dh,ZodIntersection:()=>I_,ZodJWT:()=>bh,ZodKSUID:()=>ch,ZodLazy:()=>V_,ZodLiteral:()=>L_,ZodMAC:()=>l_,ZodMap:()=>F_,ZodNaN:()=>Y_,ZodNanoID:()=>oh,ZodNever:()=>C_,ZodNonOptional:()=>kh,ZodNull:()=>b_,ZodNullable:()=>j_,ZodNumber:()=>Hu,ZodNumberFormat:()=>Qs,ZodObject:()=>Ap,ZodOptional:()=>Eh,ZodPipe:()=>cp,ZodPrefault:()=>H_,ZodPreprocess:()=>K_,ZodPromise:()=>ev,ZodReadonly:()=>J_,ZodRecord:()=>Mu,ZodSet:()=>S_,ZodString:()=>Pu,ZodStringFormat:()=>Xe,ZodSuccess:()=>O_,ZodSymbol:()=>m_,ZodTemplateLiteral:()=>Z_,ZodTransform:()=>N_,ZodTuple:()=>v_,ZodType:()=>ge,ZodULID:()=>Ah,ZodURL:()=>op,ZodUUID:()=>br,ZodUndefined:()=>f_,ZodUnion:()=>sp,ZodUnknown:()=>y_,ZodVoid:()=>w_,ZodXID:()=>sh,ZodXor:()=>k_,_ZodString:()=>th,_default:()=>G_,_function:()=>lN,any:()=>TR,array:()=>ip,base64:()=>IR,base64url:()=>_R,bigint:()=>jR,boolean:()=>g_,catch:()=>z_,check:()=>pN,cidrv4:()=>kR,cidrv6:()=>QR,codec:()=>sN,cuid:()=>fR,cuid2:()=>bR,custom:()=>gN,date:()=>qR,describe:()=>mN,discriminatedUnion:()=>ZR,e164:()=>vR,email:()=>iR,emoji:()=>gR,enum:()=>Ch,exactOptional:()=>M_,file:()=>oN,float32:()=>RR,float64:()=>NR,function:()=>lN,guid:()=>AR,hash:()=>LR,hex:()=>SR,hostname:()=>FR,httpUrl:()=>pR,instanceof:()=>bN,int:()=>Xb,int32:()=>$R,int64:()=>PR,intersection:()=>__,invertCodec:()=>cN,ipv4:()=>CR,ipv6:()=>ER,json:()=>BN,jwt:()=>xR,keyof:()=>zR,ksuid:()=>yR,lazy:()=>X_,literal:()=>aN,looseObject:()=>JR,looseRecord:()=>XR,mac:()=>wR,map:()=>eN,meta:()=>fN,nan:()=>AN,nanoid:()=>mR,nativeEnum:()=>nN,never:()=>Bh,nonoptional:()=>T_,null:()=>h_,nullable:()=>np,nullish:()=>rN,number:()=>p_,object:()=>YR,optional:()=>tp,partialRecord:()=>VR,pipe:()=>eh,prefault:()=>U_,preprocess:()=>yN,promise:()=>dN,readonly:()=>W_,record:()=>D_,refine:()=>nv,set:()=>tN,strictObject:()=>KR,string:()=>Xl,stringFormat:()=>DR,stringbool:()=>hN,success:()=>iN,superRefine:()=>av,symbol:()=>HR,templateLiteral:()=>uN,transform:()=>wh,tuple:()=>x_,uint32:()=>MR,uint64:()=>GR,ulid:()=>hR,undefined:()=>UR,union:()=>yh,unknown:()=>ks,url:()=>lR,uuid:()=>sR,uuidv4:()=>cR,uuidv6:()=>uR,uuidv7:()=>dR,void:()=>OR,xid:()=>BR,xor:()=>WR});var Kb={};F(Kb,{endsWith:()=>_u,gt:()=>mr,gte:()=>oa,includes:()=>Qu,length:()=>Es,lowercase:()=>Eu,lt:()=>gr,lte:()=>Ga,maxLength:()=>ws,maxSize:()=>bA,mime:()=>vu,minLength:()=>pi,minSize:()=>fr,multipleOf:()=>fA,negative:()=>Pb,nonnegative:()=>Hb,nonpositive:()=>Gb,normalize:()=>xu,overwrite:()=>So,positive:()=>jb,property:()=>Ub,regex:()=>wu,size:()=>Cs,slugify:()=>Lu,startsWith:()=>Iu,toLowerCase:()=>Fu,toUpperCase:()=>Su,trim:()=>Du,uppercase:()=>ku});var $u={};F($u,{ZodISODate:()=>Wb,ZodISODateTime:()=>Jb,ZodISODuration:()=>Vb,ZodISOTime:()=>Zb,date:()=>ZI,datetime:()=>WI,duration:()=>XI,time:()=>VI});var Jb=I("ZodISODateTime",(e,t)=>{_0.init(e,t),Xe.init(e,t)});function WI(e){return FQ(Jb,e)}var Wb=I("ZodISODate",(e,t)=>{v0.init(e,t),Xe.init(e,t)});function ZI(e){return SQ(Wb,e)}var Zb=I("ZodISOTime",(e,t)=>{x0.init(e,t),Xe.init(e,t)});function VI(e){return LQ(Zb,e)}var Vb=I("ZodISODuration",(e,t)=>{D0.init(e,t),Xe.init(e,t)});function XI(e){return RQ(Vb,e)}var oR=(e,t)=>{Pl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Hl(e,n)},flatten:{value:n=>Gl(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,pu,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,pu,2)}},isEmpty:{get(){return e.issues.length===0}}})},Aee=I("ZodError",oR),ka=I("ZodError",oR,{Parent:Error});var e_=fu(ka),t_=bu(ka),n_=hu(ka),a_=Bu(ka),o_=zf(ka),r_=Yf(ka),i_=Kf(ka),A_=Jf(ka),s_=Wf(ka),c_=Zf(ka),u_=Vf(ka),d_=Xf(ka);var rR=new WeakMap;function ap(e,t,n){let o=Object.getPrototypeOf(e),a=rR.get(o);if(a||(a=new Set,rR.set(o,a)),!a.has(t)){a.add(t);for(let r in n){let i=n[r];Object.defineProperty(o,r,{configurable:!0,enumerable:!1,get(){let A=i.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:A}),A},set(A){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:A})}})}}}var ge=I("ZodType",(e,t)=>(ie.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Nu(e,"input"),output:Nu(e,"output")}}),e.toJSONSchema=lI(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>e_(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>n_(e,n,o),e.parseAsync=async(n,o)=>t_(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>a_(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>o_(e,n,o),e.decode=(n,o)=>r_(e,n,o),e.encodeAsync=async(n,o)=>i_(e,n,o),e.decodeAsync=async(n,o)=>A_(e,n,o),e.safeEncode=(n,o)=>s_(e,n,o),e.safeDecode=(n,o)=>c_(e,n,o),e.safeEncodeAsync=async(n,o)=>u_(e,n,o),e.safeDecodeAsync=async(n,o)=>d_(e,n,o),ap(e,"ZodType",{check(...n){let o=this.def;return this.clone(j.mergeDefs(o,{checks:[...o.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return na(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(nv(n,o))},superRefine(n,o){return this.check(av(n,o))},overwrite(n){return this.check(So(n))},optional(){return tp(this)},exactOptional(){return M_(this)},nullable(){return np(this)},nullish(){return tp(np(this))},nonoptional(n){return T_(this,n)},array(){return ip(this)},or(n){return yh([this,n])},and(n){return __(this,n)},transform(n){return eh(this,wh(n))},default(n){return G_(this,n)},prefault(n){return U_(this,n)},catch(n){return z_(this,n)},pipe(n){return eh(this,n)},readonly(){return W_(this)},describe(n){let o=this.clone();return Rn.add(o,{description:n}),o},meta(...n){if(n.length===0)return Rn.get(this);let o=this.clone();return Rn.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Rn.get(e)?.description},configurable:!0}),e)),th=I("_ZodString",(e,t)=>{ys.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,a,r)=>pI(e,o,a,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,ap(e,"_ZodString",{regex(...o){return this.check(wu(...o))},includes(...o){return this.check(Qu(...o))},startsWith(...o){return this.check(Iu(...o))},endsWith(...o){return this.check(_u(...o))},min(...o){return this.check(pi(...o))},max(...o){return this.check(ws(...o))},length(...o){return this.check(Es(...o))},nonempty(...o){return this.check(pi(1,...o))},lowercase(o){return this.check(Eu(o))},uppercase(o){return this.check(ku(o))},trim(){return this.check(Du())},normalize(...o){return this.check(xu(...o))},toLowerCase(){return this.check(Fu())},toUpperCase(){return this.check(Su())},slugify(){return this.check(Lu())}})}),Pu=I("ZodString",(e,t)=>{ys.init(e,t),th.init(e,t),e.email=n=>e.check(hb(nh,n)),e.url=n=>e.check(Zl(op,n)),e.jwt=n=>e.check(Mb(bh,n)),e.emoji=n=>e.check(Eb(ah,n)),e.guid=n=>e.check(Wl(ep,n)),e.uuid=n=>e.check(Bb(br,n)),e.uuidv4=n=>e.check(yb(br,n)),e.uuidv6=n=>e.check(Cb(br,n)),e.uuidv7=n=>e.check(wb(br,n)),e.nanoid=n=>e.check(kb(oh,n)),e.guid=n=>e.check(Wl(ep,n)),e.cuid=n=>e.check(Qb(rh,n)),e.cuid2=n=>e.check(Ib(ih,n)),e.ulid=n=>e.check(_b(Ah,n)),e.base64=n=>e.check(Rb(gh,n)),e.base64url=n=>e.check(Nb(mh,n)),e.xid=n=>e.check(vb(sh,n)),e.ksuid=n=>e.check(xb(ch,n)),e.ipv4=n=>e.check(Db(uh,n)),e.ipv6=n=>e.check(Fb(dh,n)),e.cidrv4=n=>e.check(Sb(lh,n)),e.cidrv6=n=>e.check(Lb(ph,n)),e.e164=n=>e.check($b(fh,n)),e.datetime=n=>e.check(WI(n)),e.date=n=>e.check(ZI(n)),e.time=n=>e.check(VI(n)),e.duration=n=>e.check(XI(n))});function Xl(e){return _Q(Pu,e)}var Xe=I("ZodStringFormat",(e,t)=>{Ve.init(e,t),th.init(e,t)}),nh=I("ZodEmail",(e,t)=>{h0.init(e,t),Xe.init(e,t)});function iR(e){return hb(nh,e)}var ep=I("ZodGUID",(e,t)=>{f0.init(e,t),Xe.init(e,t)});function AR(e){return Wl(ep,e)}var br=I("ZodUUID",(e,t)=>{b0.init(e,t),Xe.init(e,t)});function sR(e){return Bb(br,e)}function cR(e){return yb(br,e)}function uR(e){return Cb(br,e)}function dR(e){return wb(br,e)}var op=I("ZodURL",(e,t)=>{B0.init(e,t),Xe.init(e,t)});function lR(e){return Zl(op,e)}function pR(e){return Zl(op,{protocol:Pa.httpProtocol,hostname:Pa.domain,...j.normalizeParams(e)})}var ah=I("ZodEmoji",(e,t)=>{y0.init(e,t),Xe.init(e,t)});function gR(e){return Eb(ah,e)}var oh=I("ZodNanoID",(e,t)=>{C0.init(e,t),Xe.init(e,t)});function mR(e){return kb(oh,e)}var rh=I("ZodCUID",(e,t)=>{w0.init(e,t),Xe.init(e,t)});function fR(e){return Qb(rh,e)}var ih=I("ZodCUID2",(e,t)=>{E0.init(e,t),Xe.init(e,t)});function bR(e){return Ib(ih,e)}var Ah=I("ZodULID",(e,t)=>{k0.init(e,t),Xe.init(e,t)});function hR(e){return _b(Ah,e)}var sh=I("ZodXID",(e,t)=>{Q0.init(e,t),Xe.init(e,t)});function BR(e){return vb(sh,e)}var ch=I("ZodKSUID",(e,t)=>{I0.init(e,t),Xe.init(e,t)});function yR(e){return xb(ch,e)}var uh=I("ZodIPv4",(e,t)=>{F0.init(e,t),Xe.init(e,t)});function CR(e){return Db(uh,e)}var l_=I("ZodMAC",(e,t)=>{L0.init(e,t),Xe.init(e,t)});function wR(e){return xQ(l_,e)}var dh=I("ZodIPv6",(e,t)=>{S0.init(e,t),Xe.init(e,t)});function ER(e){return Fb(dh,e)}var lh=I("ZodCIDRv4",(e,t)=>{R0.init(e,t),Xe.init(e,t)});function kR(e){return Sb(lh,e)}var ph=I("ZodCIDRv6",(e,t)=>{N0.init(e,t),Xe.init(e,t)});function QR(e){return Lb(ph,e)}var gh=I("ZodBase64",(e,t)=>{M0.init(e,t),Xe.init(e,t)});function IR(e){return Rb(gh,e)}var mh=I("ZodBase64URL",(e,t)=>{j0.init(e,t),Xe.init(e,t)});function _R(e){return Nb(mh,e)}var fh=I("ZodE164",(e,t)=>{P0.init(e,t),Xe.init(e,t)});function vR(e){return $b(fh,e)}var bh=I("ZodJWT",(e,t)=>{G0.init(e,t),Xe.init(e,t)});function xR(e){return Mb(bh,e)}var Gu=I("ZodCustomStringFormat",(e,t)=>{H0.init(e,t),Xe.init(e,t)});function DR(e,t,n={}){return Ru(Gu,e,t,n)}function FR(e){return Ru(Gu,"hostname",Pa.hostname,e)}function SR(e){return Ru(Gu,"hex",Pa.hex,e)}function LR(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,a=Pa[o];if(!a)throw new Error(`Unrecognized hash format: ${o}`);return Ru(Gu,o,a,t)}var Hu=I("ZodNumber",(e,t)=>{sb.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,a,r)=>gI(e,o,a,r),ap(e,"ZodNumber",{gt(o,a){return this.check(mr(o,a))},gte(o,a){return this.check(oa(o,a))},min(o,a){return this.check(oa(o,a))},lt(o,a){return this.check(gr(o,a))},lte(o,a){return this.check(Ga(o,a))},max(o,a){return this.check(Ga(o,a))},int(o){return this.check(Xb(o))},safe(o){return this.check(Xb(o))},positive(o){return this.check(mr(0,o))},nonnegative(o){return this.check(oa(0,o))},negative(o){return this.check(gr(0,o))},nonpositive(o){return this.check(Ga(0,o))},multipleOf(o,a){return this.check(fA(o,a))},step(o,a){return this.check(fA(o,a))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function p_(e){return NQ(Hu,e)}var Qs=I("ZodNumberFormat",(e,t)=>{U0.init(e,t),Hu.init(e,t)});function Xb(e){return MQ(Qs,e)}function RR(e){return jQ(Qs,e)}function NR(e){return PQ(Qs,e)}function $R(e){return GQ(Qs,e)}function MR(e){return HQ(Qs,e)}var Uu=I("ZodBoolean",(e,t)=>{ql.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>mI(e,n,o,a)});function g_(e){return UQ(Uu,e)}var Tu=I("ZodBigInt",(e,t)=>{cb.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,a,r)=>fI(e,o,a,r),e.gte=(o,a)=>e.check(oa(o,a)),e.min=(o,a)=>e.check(oa(o,a)),e.gt=(o,a)=>e.check(mr(o,a)),e.gte=(o,a)=>e.check(oa(o,a)),e.min=(o,a)=>e.check(oa(o,a)),e.lt=(o,a)=>e.check(gr(o,a)),e.lte=(o,a)=>e.check(Ga(o,a)),e.max=(o,a)=>e.check(Ga(o,a)),e.positive=o=>e.check(mr(BigInt(0),o)),e.negative=o=>e.check(gr(BigInt(0),o)),e.nonpositive=o=>e.check(Ga(BigInt(0),o)),e.nonnegative=o=>e.check(oa(BigInt(0),o)),e.multipleOf=(o,a)=>e.check(fA(o,a));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function jR(e){return OQ(Tu,e)}var hh=I("ZodBigIntFormat",(e,t)=>{T0.init(e,t),Tu.init(e,t)});function PR(e){return zQ(hh,e)}function GR(e){return YQ(hh,e)}var m_=I("ZodSymbol",(e,t)=>{O0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>bI(e,n,o,a)});function HR(e){return KQ(m_,e)}var f_=I("ZodUndefined",(e,t)=>{q0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>BI(e,n,o,a)});function UR(e){return JQ(f_,e)}var b_=I("ZodNull",(e,t)=>{z0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>hI(e,n,o,a)});function h_(e){return WQ(b_,e)}var B_=I("ZodAny",(e,t)=>{Y0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>wI(e,n,o,a)});function TR(){return ZQ(B_)}var y_=I("ZodUnknown",(e,t)=>{K0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>EI(e,n,o,a)});function ks(){return VQ(y_)}var C_=I("ZodNever",(e,t)=>{J0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>CI(e,n,o,a)});function Bh(e){return XQ(C_,e)}var w_=I("ZodVoid",(e,t)=>{W0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>yI(e,n,o,a)});function OR(e){return eI(w_,e)}var rp=I("ZodDate",(e,t)=>{Z0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,a,r)=>kI(e,o,a,r),e.min=(o,a)=>e.check(oa(o,a)),e.max=(o,a)=>e.check(Ga(o,a));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function qR(e){return tI(rp,e)}var E_=I("ZodArray",(e,t)=>{V0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>$I(e,n,o,a),e.element=t.element,ap(e,"ZodArray",{min(n,o){return this.check(pi(n,o))},nonempty(n){return this.check(pi(1,n))},max(n,o){return this.check(ws(n,o))},length(n,o){return this.check(Es(n,o))},unwrap(){return this.element}})});function ip(e,t){return oI(E_,e,t)}function zR(e){let t=e._zod.def.shape;return Ch(Object.keys(t))}var Ap=I("ZodObject",(e,t)=>{X0.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>MI(e,n,o,a),j.defineLazy(e,"shape",()=>t.shape),ap(e,"ZodObject",{keyof(){return Ch(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:ks()})},loose(){return this.clone({...this._zod.def,catchall:ks()})},strict(){return this.clone({...this._zod.def,catchall:Bh()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return j.extend(this,n)},safeExtend(n){return j.safeExtend(this,n)},merge(n){return j.merge(this,n)},pick(n){return j.pick(this,n)},omit(n){return j.omit(this,n)},partial(...n){return j.partial(Eh,this,n[0])},required(...n){return j.required(kh,this,n[0])}})});function YR(e,t){let n={type:"object",shape:e??{},...j.normalizeParams(t)};return new Ap(n)}function KR(e,t){return new Ap({type:"object",shape:e,catchall:Bh(),...j.normalizeParams(t)})}function JR(e,t){return new Ap({type:"object",shape:e,catchall:ks(),...j.normalizeParams(t)})}var sp=I("ZodUnion",(e,t)=>{zl.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ob(e,n,o,a),e.options=t.options});function yh(e,t){return new sp({type:"union",options:e,...j.normalizeParams(t)})}var k_=I("ZodXor",(e,t)=>{sp.init(e,t),eQ.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ob(e,n,o,a),e.options=t.options});function WR(e,t){return new k_({type:"union",options:e,inclusive:!1,...j.normalizeParams(t)})}var Q_=I("ZodDiscriminatedUnion",(e,t)=>{sp.init(e,t),tQ.init(e,t)});function ZR(e,t,n){return new Q_({type:"union",options:t,discriminator:e,...j.normalizeParams(n)})}var I_=I("ZodIntersection",(e,t)=>{nQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>jI(e,n,o,a)});function __(e,t){return new I_({type:"intersection",left:e,right:t})}var v_=I("ZodTuple",(e,t)=>{ub.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>PI(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function x_(e,t,n){let o=t instanceof ie,a=o?n:t,r=o?t:null;return new v_({type:"tuple",items:e,rest:r,...j.normalizeParams(a)})}var Mu=I("ZodRecord",(e,t)=>{aQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>GI(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function D_(e,t,n){return!t||!t._zod?new Mu({type:"record",keyType:Xl(),valueType:e,...j.normalizeParams(t)}):new Mu({type:"record",keyType:e,valueType:t,...j.normalizeParams(n)})}function VR(e,t,n){let o=na(e);return o._zod.values=void 0,new Mu({type:"record",keyType:o,valueType:t,...j.normalizeParams(n)})}function XR(e,t,n){return new Mu({type:"record",keyType:e,valueType:t,mode:"loose",...j.normalizeParams(n)})}var F_=I("ZodMap",(e,t)=>{oQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>RI(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(fr(...n)),e.nonempty=n=>e.check(fr(1,n)),e.max=(...n)=>e.check(bA(...n)),e.size=(...n)=>e.check(Cs(...n))});function eN(e,t,n){return new F_({type:"map",keyType:e,valueType:t,...j.normalizeParams(n)})}var S_=I("ZodSet",(e,t)=>{rQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>NI(e,n,o,a),e.min=(...n)=>e.check(fr(...n)),e.nonempty=n=>e.check(fr(1,n)),e.max=(...n)=>e.check(bA(...n)),e.size=(...n)=>e.check(Cs(...n))});function tN(e,t){return new S_({type:"set",valueType:e,...j.normalizeParams(t)})}var ju=I("ZodEnum",(e,t)=>{iQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,a,r)=>QI(e,o,a,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,a)=>{let r={};for(let i of o)if(n.has(i))r[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new ju({...t,checks:[],...j.normalizeParams(a),entries:r})},e.exclude=(o,a)=>{let r={...t.entries};for(let i of o)if(n.has(i))delete r[i];else throw new Error(`Key ${i} not found in enum`);return new ju({...t,checks:[],...j.normalizeParams(a),entries:r})}});function Ch(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new ju({type:"enum",entries:n,...j.normalizeParams(t)})}function nN(e,t){return new ju({type:"enum",entries:e,...j.normalizeParams(t)})}var L_=I("ZodLiteral",(e,t)=>{AQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>II(e,n,o,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function aN(e,t){return new L_({type:"literal",values:Array.isArray(e)?e:[e],...j.normalizeParams(t)})}var R_=I("ZodFile",(e,t)=>{sQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>xI(e,n,o,a),e.min=(n,o)=>e.check(fr(n,o)),e.max=(n,o)=>e.check(bA(n,o)),e.mime=(n,o)=>e.check(vu(Array.isArray(n)?n:[n],o))});function oN(e){return rI(R_,e)}var N_=I("ZodTransform",(e,t)=>{cQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>LI(e,n,o,a),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new dA(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(j.issue(r,n.value,t));else{let i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(j.issue(i))}};let a=t.transform(n.value,n);return a instanceof Promise?a.then(r=>(n.value=r,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function wh(e){return new N_({type:"transform",transform:e})}var Eh=I("ZodOptional",(e,t)=>{db.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>qb(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function tp(e){return new Eh({type:"optional",innerType:e})}var $_=I("ZodExactOptional",(e,t)=>{uQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>qb(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function M_(e){return new $_({type:"optional",innerType:e})}var j_=I("ZodNullable",(e,t)=>{dQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>HI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function np(e){return new j_({type:"nullable",innerType:e})}function rN(e){return tp(np(e))}var P_=I("ZodDefault",(e,t)=>{lQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>TI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function G_(e,t){return new P_({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}var H_=I("ZodPrefault",(e,t)=>{pQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>OI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function U_(e,t){return new H_({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}var kh=I("ZodNonOptional",(e,t)=>{gQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>UI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function T_(e,t){return new kh({type:"nonoptional",innerType:e,...j.normalizeParams(t)})}var O_=I("ZodSuccess",(e,t)=>{mQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>DI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function iN(e){return new O_({type:"success",innerType:e})}var q_=I("ZodCatch",(e,t)=>{fQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>qI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function z_(e,t){return new q_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Y_=I("ZodNaN",(e,t)=>{bQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>_I(e,n,o,a)});function AN(e){return aI(Y_,e)}var cp=I("ZodPipe",(e,t)=>{lb.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>zI(e,n,o,a),e.in=t.in,e.out=t.out});function eh(e,t){return new cp({type:"pipe",in:e,out:t})}var up=I("ZodCodec",(e,t)=>{cp.init(e,t),Yl.init(e,t)});function sN(e,t,n){return new up({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function cN(e){let t=e._zod.def;return new up({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var K_=I("ZodPreprocess",(e,t)=>{cp.init(e,t),hQ.init(e,t)}),J_=I("ZodReadonly",(e,t)=>{BQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>YI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function W_(e){return new J_({type:"readonly",innerType:e})}var Z_=I("ZodTemplateLiteral",(e,t)=>{yQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>vI(e,n,o,a)});function uN(e,t){return new Z_({type:"template_literal",parts:e,...j.normalizeParams(t)})}var V_=I("ZodLazy",(e,t)=>{EQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>JI(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function X_(e){return new V_({type:"lazy",getter:e})}var ev=I("ZodPromise",(e,t)=>{wQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>KI(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function dN(e){return new ev({type:"promise",innerType:e})}var tv=I("ZodFunction",(e,t)=>{CQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>SI(e,n,o,a)});function lN(e){return new tv({type:"function",input:Array.isArray(e?.input)?x_(e?.input):e?.input??ip(ks()),output:e?.output??ks()})}var dp=I("ZodCustom",(e,t)=>{kQ.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,a)=>FI(e,n,o,a)});function pN(e){let t=new ot({check:"custom"});return t._zod.check=e,t}function gN(e,t){return iI(dp,e??(()=>!0),t)}function nv(e,t={}){return AI(dp,e,t)}function av(e,t){return sI(e,t)}var mN=cI,fN=uI;function bN(e,t={}){let n=new dp({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...j.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var hN=(...e)=>dI({Codec:up,Boolean:Uu,String:Pu},...e);function BN(e){let t=X_(()=>yh([Xl(e),p_(),g_(),h_(),ip(t),D_(Xl(),t)]));return t}function yN(e,t){return new K_({type:"pipe",in:wh(e),out:t})}var cee={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function uee(e){Pt({customError:e})}function dee(){return Pt().customError}var ov;ov||(ov={});var K={...Vl,...Kb,iso:$u},lee=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function pee(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function gee(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let a=n[1];if(!a||!t.defs[a])throw new Error(`Reference not found: ${e}`);return t.defs[a]}throw new Error(`Reference not found: ${e}`)}function CN(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return K.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let a=e.$ref;if(t.refs.has(a))return t.refs.get(a);if(t.processing.has(a))return K.lazy(()=>{if(!t.refs.has(a))throw new Error(`Circular reference not resolved: ${a}`);return t.refs.get(a)});t.processing.add(a);let r=gee(a,t),i=qn(r,t);return t.refs.set(a,i),t.processing.delete(a),i}if(e.enum!==void 0){let a=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&a.length===1&&a[0]===null)return K.null();if(a.length===0)return K.never();if(a.length===1)return K.literal(a[0]);if(a.every(i=>typeof i=="string"))return K.enum(a);let r=a.map(i=>K.literal(i));return r.length<2?r[0]:K.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return K.literal(e.const);let n=e.type;if(Array.isArray(n)){let a=n.map(r=>{let i={...e,type:r};return CN(i,t)});return a.length===0?K.never():a.length===1?a[0]:K.union(a)}if(!n)return K.any();let o;switch(n){case"string":{let a=K.string();if(e.format){let r=e.format;r==="email"?a=a.check(K.email()):r==="uri"||r==="uri-reference"?a=a.check(K.url()):r==="uuid"||r==="guid"?a=a.check(K.uuid()):r==="date-time"?a=a.check(K.iso.datetime()):r==="date"?a=a.check(K.iso.date()):r==="time"?a=a.check(K.iso.time()):r==="duration"?a=a.check(K.iso.duration()):r==="ipv4"?a=a.check(K.ipv4()):r==="ipv6"?a=a.check(K.ipv6()):r==="mac"?a=a.check(K.mac()):r==="cidr"?a=a.check(K.cidrv4()):r==="cidr-v6"?a=a.check(K.cidrv6()):r==="base64"?a=a.check(K.base64()):r==="base64url"?a=a.check(K.base64url()):r==="e164"?a=a.check(K.e164()):r==="jwt"?a=a.check(K.jwt()):r==="emoji"?a=a.check(K.emoji()):r==="nanoid"?a=a.check(K.nanoid()):r==="cuid"?a=a.check(K.cuid()):r==="cuid2"?a=a.check(K.cuid2()):r==="ulid"?a=a.check(K.ulid()):r==="xid"?a=a.check(K.xid()):r==="ksuid"&&(a=a.check(K.ksuid()))}typeof e.minLength=="number"&&(a=a.min(e.minLength)),typeof e.maxLength=="number"&&(a=a.max(e.maxLength)),e.pattern&&(a=a.regex(new RegExp(e.pattern))),o=a;break}case"number":case"integer":{let a=n==="integer"?K.number().int():K.number();typeof e.minimum=="number"&&(a=a.min(e.minimum)),typeof e.maximum=="number"&&(a=a.max(e.maximum)),typeof e.exclusiveMinimum=="number"?a=a.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(a=a.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?a=a.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(a=a.lt(e.maximum)),typeof e.multipleOf=="number"&&(a=a.multipleOf(e.multipleOf)),o=a;break}case"boolean":{o=K.boolean();break}case"null":{o=K.null();break}case"object":{let a={},r=e.properties||{},i=new Set(e.required||[]);for(let[s,c]of Object.entries(r)){let u=qn(c,t);a[s]=i.has(s)?u:u.optional()}if(e.propertyNames){let s=qn(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?qn(e.additionalProperties,t):K.any();if(Object.keys(a).length===0){o=K.record(s,c);break}let u=K.object(a).passthrough(),l=K.looseRecord(s,c);o=K.intersection(u,l);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),u=[];for(let p of c){let g=qn(s[p],t),f=K.string().regex(new RegExp(p));u.push(K.looseRecord(f,g))}let l=[];if(Object.keys(a).length>0&&l.push(K.object(a).passthrough()),l.push(...u),l.length===0)o=K.object({}).passthrough();else if(l.length===1)o=l[0];else{let p=K.intersection(l[0],l[1]);for(let g=2;g<l.length;g++)p=K.intersection(p,l[g]);o=p}break}let A=K.object(a);e.additionalProperties===!1?o=A.strict():typeof e.additionalProperties=="object"?o=A.catchall(qn(e.additionalProperties,t)):o=A.passthrough();break}case"array":{let a=e.prefixItems,r=e.items;if(a&&Array.isArray(a)){let i=a.map(s=>qn(s,t)),A=r&&typeof r=="object"&&!Array.isArray(r)?qn(r,t):void 0;A?o=K.tuple(i).rest(A):o=K.tuple(i),typeof e.minItems=="number"&&(o=o.check(K.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(K.maxLength(e.maxItems)))}else if(Array.isArray(r)){let i=r.map(s=>qn(s,t)),A=e.additionalItems&&typeof e.additionalItems=="object"?qn(e.additionalItems,t):void 0;A?o=K.tuple(i).rest(A):o=K.tuple(i),typeof e.minItems=="number"&&(o=o.check(K.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(K.maxLength(e.maxItems)))}else if(r!==void 0){let i=qn(r,t),A=K.array(i);typeof e.minItems=="number"&&(A=A.min(e.minItems)),typeof e.maxItems=="number"&&(A=A.max(e.maxItems)),o=A}else o=K.array(K.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function qn(e,t){if(typeof e=="boolean")return e?K.any():K.never();let n=CN(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let A=e.anyOf.map(c=>qn(c,t)),s=K.union(A);n=o?K.intersection(n,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let A=e.oneOf.map(c=>qn(c,t)),s=K.xor(A);n=o?K.intersection(n,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:K.any();else{let A=o?n:qn(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)A=K.intersection(A,qn(e.allOf[c],t));n=A}e.nullable===!0&&t.version==="openapi-3.0"&&(n=K.nullable(n)),e.readOnly===!0&&(n=K.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let a={},r=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let A of r)A in e&&(a[A]=e[A]);let i=["contentEncoding","contentMediaType","contentSchema"];for(let A of i)A in e&&(a[A]=e[A]);for(let A of Object.keys(e))lee.has(A)||(a[A]=e[A]);return Object.keys(a).length>0&&t.registry.add(n,a),e.description&&(n=n.describe(e.description)),n}function wN(e,t){if(typeof e=="boolean")return e?K.any():K.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=pee(n,t?.defaultTarget),a=n.$defs||n.definitions||{},r={version:o,defs:a,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Rn};return qn(n,r)}var rv={};F(rv,{bigint:()=>hee,boolean:()=>bee,date:()=>Bee,number:()=>fee,string:()=>mee});function mee(e){return vQ(Pu,e)}function fee(e){return $Q(Hu,e)}function bee(e){return TQ(Uu,e)}function hee(e){return qQ(Tu,e)}function Bee(e){return nI(rp,e)}Pt(pb());var yee=d.object({input:d.number().finite().nonnegative().optional(),output:d.number().finite().nonnegative().optional(),cacheRead:d.number().finite().nonnegative().optional(),cacheWrite:d.number().finite().nonnegative().optional(),total:d.number().finite().nonnegative().optional()}).strict(),EN=d.object({inputTokens:d.number().int().nonnegative().optional(),outputTokens:d.number().int().nonnegative().optional(),cachedInputTokens:d.number().int().nonnegative().optional(),cacheCreationTokens:d.number().int().nonnegative().optional(),reasoningTokens:d.number().int().nonnegative().optional(),totalTokens:d.number().int().nonnegative().optional(),cost:yee.optional()}).strict();var _=Symbol.for("drizzle:entityKind");function un(e,t){if(!e||typeof e!="object")return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,_))throw new Error(`Class "${t.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(e).constructor;if(n)for(;n;){if(_ in n&&n[_]===t[_])return!0;n=Object.getPrototypeOf(n)}return!1}var Is=class{constructor(t,n){this.table=t,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[_]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(t){return t}mapToDriverValue(t){return t}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}};var Qh=class{static[_]="ColumnBuilder";config;constructor(t,n,o){this.config={name:t,keyAsName:t==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:o,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(t){return this.config.default=t,this.config.hasDefault=!0,this}$defaultFn(t){return this.config.defaultFn=t,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(t){return this.config.onUpdateFn=t,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(t){this.config.name===""&&(this.config.name=t)}};var mi=Symbol.for("drizzle:Name");var Ih=class{static[_]="PgForeignKeyBuilder";reference;_onUpdate="no action";_onDelete="no action";constructor(t,n){this.reference=()=>{let{name:o,columns:a,foreignColumns:r}=t();return{name:o,columns:a,foreignTable:r[0].table,foreignColumns:r}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(t){return this._onUpdate=t===void 0?"no action":t,this}onDelete(t){return this._onDelete=t===void 0?"no action":t,this}build(t){return new iv(t,this)}},iv=class{constructor(t,n){this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[_]="PgForeignKey";reference;onUpdate;onDelete;getName(){let{name:t,columns:n,foreignColumns:o}=this.reference(),a=n.map(A=>A.name),r=o.map(A=>A.name),i=[this.table[mi],...a,o[0].table[mi],...r];return t??`${i.join("_")}_fk`}};function _h(e,...t){return e(...t)}function cv(e,t){return`${e[mi]}_${t.join("_")}_unique`}var Av=class{constructor(t,n){this.name=n,this.columns=t}static[_]="PgUniqueConstraintBuilder";columns;nullsNotDistinctConfig=!1;nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(t){return new sv(t,this.columns,this.nullsNotDistinctConfig,this.name)}},kN=class{static[_]="PgUniqueOnConstraintBuilder";name;constructor(t){this.name=t}on(...t){return new Av(t,this.name)}},sv=class{constructor(t,n,o,a){this.table=t,this.columns=n,this.name=a??cv(this.table,this.columns.map(r=>r.name)),this.nullsNotDistinct=o}static[_]="PgUniqueConstraint";columns;name;nullsNotDistinct=!1;getName(){return this.name}};function QN(e,t,n){for(let o=t;o<e.length;o++){let a=e[o];if(a==="\\"){o++;continue}if(a==='"')return[e.slice(t,o).replace(/\\/g,""),o+1];if(!n&&(a===","||a==="}"))return[e.slice(t,o).replace(/\\/g,""),o]}return[e.slice(t).replace(/\\/g,""),e.length]}function IN(e,t=0){let n=[],o=t,a=!1;for(;o<e.length;){let r=e[o];if(r===","){(a||o===t)&&n.push(""),a=!0,o++;continue}if(a=!1,r==="\\"){o+=2;continue}if(r==='"'){let[s,c]=QN(e,o+1,!0);n.push(s),o=c;continue}if(r==="}")return[n,o+1];if(r==="{"){let[s,c]=IN(e,o+1);n.push(s),o=c;continue}let[i,A]=QN(e,o,!1);n.push(i),o=A}return[n,o]}function _N(e){let[t]=IN(e,1);return t}function uv(e){return`{${e.map(t=>Array.isArray(t)?uv(t):typeof t=="string"?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}var Z=class extends Qh{foreignKeyConfigs=[];static[_]="PgColumnBuilder";array(t){return new lv(this.config.name,this,t)}references(t,n={}){return this.foreignKeyConfigs.push({ref:t,actions:n}),this}unique(t,n){return this.config.isUnique=!0,this.config.uniqueName=t,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(t){return this.config.generated={as:t,type:"always",mode:"stored"},this}buildForeignKeys(t,n){return this.foreignKeyConfigs.map(({ref:o,actions:a})=>_h((r,i)=>{let A=new Ih(()=>{let s=r();return{columns:[t],foreignColumns:[s]}});return i.onUpdate&&A.onUpdate(i.onUpdate),i.onDelete&&A.onDelete(i.onDelete),A.build(n)},o,a))}buildExtraConfigColumn(t){return new dv(t,this.config)}},z=class extends Is{constructor(t,n){n.uniqueName||(n.uniqueName=cv(t,[n.name])),super(t,n),this.table=t}static[_]="PgColumn"},dv=class extends z{static[_]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(t){return this.indexConfig.opClass=t,this}},Ou=class{static[_]="IndexedColumn";constructor(t,n,o,a){this.name=t,this.keyAsName=n,this.type=o,this.indexConfig=a}name;keyAsName;type;indexConfig},lv=class extends Z{static[_]="PgArrayBuilder";constructor(t,n,o){super(t,"array","PgArray"),this.config.baseBuilder=n,this.config.size=o}build(t){let n=this.config.baseBuilder.build(t);return new pv(t,this.config,n)}},pv=class e extends z{constructor(t,n,o,a){super(t,n),this.baseColumn=o,this.range=a,this.size=n.size}size;static[_]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(t){return typeof t=="string"&&(t=_N(t)),t.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(t,n=!1){let o=t.map(a=>a===null?null:un(this.baseColumn,e)?this.baseColumn.mapToDriverValue(a,!0):this.baseColumn.mapToDriverValue(a));return n?o:uv(o)}};var vN=class extends Z{static[_]="PgEnumObjectColumnBuilder";constructor(t,n){super(t,"string","PgEnumObjectColumn"),this.config.enum=n}build(t){return new gv(t,this.config)}},gv=class extends z{static[_]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}},xN=Symbol.for("drizzle:isPgEnum");function FN(e){return!!e&&typeof e=="function"&&xN in e&&e[xN]===!0}var DN=class extends Z{static[_]="PgEnumColumnBuilder";constructor(t,n){super(t,"string","PgEnumColumn"),this.config.enum=n}build(t){return new mv(t,this.config)}},mv=class extends z{static[_]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}};var qu=class{static[_]="Subquery";constructor(t,n,o,a=!1,r=[]){this._={brand:"Subquery",sql:t,selectedFields:n,alias:o,isWith:a,usedTables:r}}},SN=class extends qu{static[_]="WithSubquery"};var LN="0.45.2";var fv,bv,RN={startActiveSpan(e,t){return fv?(bv||(bv=fv.trace.getTracer("drizzle-orm",LN)),_h((n,o)=>o.startActiveSpan(e,a=>{try{return t(a)}catch(r){throw a.setStatus({code:n.SpanStatusCode.ERROR,message:r instanceof Error?r.message:"Unknown error"}),r}finally{a.end()}}),fv,bv)):t()}};var zu=Symbol.for("drizzle:ViewBaseConfig");var hv=Symbol.for("drizzle:Schema"),NN=Symbol.for("drizzle:Columns"),$N=Symbol.for("drizzle:ExtraConfigColumns"),Bv=Symbol.for("drizzle:OriginalName"),yv=Symbol.for("drizzle:BaseName"),lp=Symbol.for("drizzle:IsAlias"),MN=Symbol.for("drizzle:ExtraConfigBuilder"),Cee=Symbol.for("drizzle:IsDrizzleTable"),Kt=class{static[_]="Table";static Symbol={Name:mi,Schema:hv,OriginalName:Bv,Columns:NN,ExtraConfigColumns:$N,BaseName:yv,IsAlias:lp,ExtraConfigBuilder:MN};[mi];[Bv];[hv];[NN];[$N];[yv];[lp]=!1;[Cee]=!0;[MN]=void 0;constructor(t,n,o){this[mi]=this[Bv]=t,this[hv]=n,this[yv]=o}};var jN=class{static[_]="FakePrimitiveParam"};function wee(e){return e!=null&&typeof e.getSQL=="function"}function Eee(e){let t={sql:"",params:[]};for(let n of e)t.sql+=n.sql,t.params.push(...n.params),n.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...n.typings));return t}var Ha=class{static[_]="StringChunk";value;constructor(t){this.value=Array.isArray(t)?t:[t]}getSQL(){return new Jt([this])}},Jt=class e{constructor(t){this.queryChunks=t;for(let n of t)if(un(n,Kt)){let o=n[Kt.Symbol.Schema];this.usedTables.push(o===void 0?n[Kt.Symbol.Name]:o+"."+n[Kt.Symbol.Name])}}static[_]="SQL";decoder=PN;shouldInlineParams=!1;usedTables=[];append(t){return this.queryChunks.push(...t.queryChunks),this}toQuery(t){return RN.startActiveSpan("drizzle.buildSQL",n=>{let o=this.buildQueryFromSourceParams(this.queryChunks,t);return n?.setAttributes({"drizzle.query.text":o.sql,"drizzle.query.params":JSON.stringify(o.params)}),o})}buildQueryFromSourceParams(t,n){let o=Object.assign({},n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:a,escapeName:r,escapeParam:i,prepareTyping:A,inlineParams:s,paramStartIndex:c}=o;return Eee(t.map(u=>{if(un(u,Ha))return{sql:u.value.join(""),params:[]};if(un(u,pp))return{sql:r(u.value),params:[]};if(u===void 0)return{sql:"",params:[]};if(Array.isArray(u)){let l=[new Ha("(")];for(let[p,g]of u.entries())l.push(g),p<u.length-1&&l.push(new Ha(", "));return l.push(new Ha(")")),this.buildQueryFromSourceParams(l,o)}if(un(u,e))return this.buildQueryFromSourceParams(u.queryChunks,{...o,inlineParams:s||u.shouldInlineParams});if(un(u,Kt)){let l=u[Kt.Symbol.Schema],p=u[Kt.Symbol.Name];return{sql:l===void 0||u[lp]?r(p):r(l)+"."+r(p),params:[]}}if(un(u,Is)){let l=a.getColumnCasing(u);if(n.invokeSource==="indexes")return{sql:r(l),params:[]};let p=u.table[Kt.Symbol.Schema];return{sql:u.table[lp]||p===void 0?r(u.table[Kt.Symbol.Name])+"."+r(l):r(p)+"."+r(u.table[Kt.Symbol.Name])+"."+r(l),params:[]}}if(un(u,Cv)){let l=u[zu].schema,p=u[zu].name;return{sql:l===void 0||u[zu].isAlias?r(p):r(l)+"."+r(p),params:[]}}if(un(u,vh)){if(un(u.value,gp))return{sql:i(c.value++,u),params:[u],typings:["none"]};let l=u.value===null?null:u.encoder.mapToDriverValue(u.value);if(un(l,e))return this.buildQueryFromSourceParams([l],o);if(s)return{sql:this.mapInlineParam(l,o),params:[]};let p=["none"];return A&&(p=[A(u.encoder)]),{sql:i(c.value++,l),params:[l],typings:p}}return un(u,gp)?{sql:i(c.value++,u),params:[u],typings:["none"]}:un(u,e.Aliased)&&u.fieldAlias!==void 0?{sql:r(u.fieldAlias),params:[]}:un(u,qu)?u._.isWith?{sql:r(u._.alias),params:[]}:this.buildQueryFromSourceParams([new Ha("("),u._.sql,new Ha(") "),new pp(u._.alias)],o):FN(u)?u.schema?{sql:r(u.schema)+"."+r(u.enumName),params:[]}:{sql:r(u.enumName),params:[]}:wee(u)?u.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([u.getSQL()],o):this.buildQueryFromSourceParams([new Ha("("),u.getSQL(),new Ha(")")],o):s?{sql:this.mapInlineParam(u,o),params:[]}:{sql:i(c.value++,u),params:[u],typings:["none"]}}))}mapInlineParam(t,{escapeString:n}){if(t===null)return"null";if(typeof t=="number"||typeof t=="boolean")return t.toString();if(typeof t=="string")return n(t);if(typeof t=="object"){let o=t.toString();return n(o==="[object Object]"?JSON.stringify(t):o)}throw new Error("Unexpected param value: "+t)}getSQL(){return this}as(t){return t===void 0?this:new e.Aliased(this,t)}mapWith(t){return this.decoder=typeof t=="function"?{mapFromDriverValue:t}:t,this}inlineParams(){return this.shouldInlineParams=!0,this}if(t){return t?this:void 0}},pp=class{constructor(t){this.value=t}static[_]="Name";brand;getSQL(){return new Jt([this])}};var PN={mapFromDriverValue:e=>e},GN={mapToDriverValue:e=>e},eEe={...PN,...GN},vh=class{constructor(t,n=GN){this.value=t,this.encoder=n}static[_]="Param";brand;getSQL(){return new Jt([this])}};function Yu(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!=="")&&n.push(new Ha(e[0]));for(let[o,a]of t.entries())n.push(a,new Ha(e[o+1]));return new Jt(n)}(e=>{function t(){return new Jt([])}e.empty=t;function n(s){return new Jt(s)}e.fromList=n;function o(s){return new Jt([new Ha(s)])}e.raw=o;function a(s,c){let u=[];for(let[l,p]of s.entries())l>0&&c!==void 0&&u.push(c),u.push(p);return new Jt(u)}e.join=a;function r(s){return new pp(s)}e.identifier=r;function i(s){return new gp(s)}e.placeholder=i;function A(s,c){return new vh(s,c)}e.param=A})(Yu||(Yu={}));(e=>{class t{constructor(o,a){this.sql=o,this.fieldAlias=a}static[_]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(Jt||(Jt={}));var gp=class{constructor(t){this.name=t}static[_]="Placeholder";getSQL(){return new Jt([this])}};var kee=Symbol.for("drizzle:IsDrizzleView"),Cv=class{static[_]="View";[zu];[kee]=!0;constructor({name:t,schema:n,selectedFields:o,query:a}){this[zu]={name:t,originalName:t,schema:n,selectedFields:o,query:a,isExisting:!a,isAlias:!1}}getSQL(){return new Jt([this])}};Is.prototype.getSQL=function(){return new Jt([this])};Kt.prototype.getSQL=function(){return new Jt([this])};qu.prototype.getSQL=function(){return new Jt([this])};function ve(e,t){return{name:typeof e=="string"&&e.length>0?e:"",config:typeof e=="object"?e:t}}var nEe=typeof TextDecoder>"u"?null:new TextDecoder;var fi=class extends Z{static[_]="PgIntColumnBaseBuilder";generatedAlwaysAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"always",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"always"};return this.config.hasDefault=!0,this.config.notNull=!0,this}generatedByDefaultAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"byDefault",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"byDefault"};return this.config.hasDefault=!0,this.config.notNull=!0,this}};var wv=class extends fi{static[_]="PgBigInt53Builder";constructor(t){super(t,"number","PgBigInt53")}build(t){return new Ev(t,this.config)}},Ev=class extends z{static[_]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},kv=class extends fi{static[_]="PgBigInt64Builder";constructor(t){super(t,"bigint","PgBigInt64")}build(t){return new Qv(t,this.config)}},Qv=class extends z{static[_]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(t){return BigInt(t)}};function HN(e,t){let{name:n,config:o}=ve(e,t);return o.mode==="number"?new wv(n):new kv(n)}var Iv=class extends Z{static[_]="PgBigSerial53Builder";constructor(t){super(t,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new _v(t,this.config)}},_v=class extends z{static[_]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},vv=class extends Z{static[_]="PgBigSerial64Builder";constructor(t){super(t,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(t){return new xv(t,this.config)}},xv=class extends z{static[_]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(t){return BigInt(t)}};function UN(e,t){let{name:n,config:o}=ve(e,t);return o.mode==="number"?new Iv(n):new vv(n)}var Dv=class extends Z{static[_]="PgBooleanBuilder";constructor(t){super(t,"boolean","PgBoolean")}build(t){return new Fv(t,this.config)}},Fv=class extends z{static[_]="PgBoolean";getSQLType(){return"boolean"}};function TN(e){return new Dv(e??"")}var Sv=class extends Z{static[_]="PgCharBuilder";constructor(t,n){super(t,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new Lv(t,this.config)}},Lv=class extends z{static[_]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}};function ON(e,t={}){let{name:n,config:o}=ve(e,t);return new Sv(n,o)}var Rv=class extends Z{static[_]="PgCidrBuilder";constructor(t){super(t,"string","PgCidr")}build(t){return new Nv(t,this.config)}},Nv=class extends z{static[_]="PgCidr";getSQLType(){return"cidr"}};function qN(e){return new Rv(e??"")}var $v=class extends Z{static[_]="PgCustomColumnBuilder";constructor(t,n,o){super(t,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=o}build(t){return new Mv(t,this.config)}},Mv=class extends z{static[_]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(t,n){super(t,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(t){return typeof this.mapFrom=="function"?this.mapFrom(t):t}mapToDriverValue(t){return typeof this.mapTo=="function"?this.mapTo(t):t}};function zN(e){return(t,n)=>{let{name:o,config:a}=ve(t,n);return new $v(o,a,e)}}var hr=class extends Z{static[_]="PgDateColumnBaseBuilder";defaultNow(){return this.default(Yu`now()`)}};var jv=class extends hr{static[_]="PgDateBuilder";constructor(t){super(t,"date","PgDate")}build(t){return new Pv(t,this.config)}},Pv=class extends z{static[_]="PgDate";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?new Date(t):t}mapToDriverValue(t){return t.toISOString()}},Gv=class extends hr{static[_]="PgDateStringBuilder";constructor(t){super(t,"string","PgDateString")}build(t){return new Hv(t,this.config)}},Hv=class extends z{static[_]="PgDateString";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?t:t.toISOString().slice(0,-14)}};function YN(e,t){let{name:n,config:o}=ve(e,t);return o?.mode==="date"?new jv(n):new Gv(n)}var Uv=class extends Z{static[_]="PgDoublePrecisionBuilder";constructor(t){super(t,"number","PgDoublePrecision")}build(t){return new Tv(t,this.config)}},Tv=class extends z{static[_]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(t){return typeof t=="string"?Number.parseFloat(t):t}};function KN(e){return new Uv(e??"")}var Ov=class extends Z{static[_]="PgInetBuilder";constructor(t){super(t,"string","PgInet")}build(t){return new qv(t,this.config)}},qv=class extends z{static[_]="PgInet";getSQLType(){return"inet"}};function JN(e){return new Ov(e??"")}var zv=class extends fi{static[_]="PgIntegerBuilder";constructor(t){super(t,"number","PgInteger")}build(t){return new Yv(t,this.config)}},Yv=class extends z{static[_]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(t){return typeof t=="string"?Number.parseInt(t):t}};function WN(e){return new zv(e??"")}var Kv=class extends Z{static[_]="PgIntervalBuilder";constructor(t,n){super(t,"string","PgInterval"),this.config.intervalConfig=n}build(t){return new Jv(t,this.config)}},Jv=class extends z{static[_]="PgInterval";fields=this.config.intervalConfig.fields;precision=this.config.intervalConfig.precision;getSQLType(){let t=this.fields?` ${this.fields}`:"",n=this.precision?`(${this.precision})`:"";return`interval${t}${n}`}};function ZN(e,t={}){let{name:n,config:o}=ve(e,t);return new Kv(n,o)}var Wv=class extends Z{static[_]="PgJsonBuilder";constructor(t){super(t,"json","PgJson")}build(t){return new Zv(t,this.config)}},Zv=class extends z{static[_]="PgJson";constructor(t,n){super(t,n)}getSQLType(){return"json"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function VN(e){return new Wv(e??"")}var Vv=class extends Z{static[_]="PgJsonbBuilder";constructor(t){super(t,"json","PgJsonb")}build(t){return new Xv(t,this.config)}},Xv=class extends z{static[_]="PgJsonb";constructor(t,n){super(t,n)}getSQLType(){return"jsonb"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function xh(e){return new Vv(e??"")}var ex=class extends Z{static[_]="PgLineBuilder";constructor(t){super(t,"array","PgLine")}build(t){return new tx(t,this.config)}},tx=class extends z{static[_]="PgLine";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o),Number.parseFloat(a)]}mapToDriverValue(t){return`{${t[0]},${t[1]},${t[2]}}`}},nx=class extends Z{static[_]="PgLineABCBuilder";constructor(t){super(t,"json","PgLineABC")}build(t){return new ax(t,this.config)}},ax=class extends z{static[_]="PgLineABC";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return{a:Number.parseFloat(n),b:Number.parseFloat(o),c:Number.parseFloat(a)}}mapToDriverValue(t){return`{${t.a},${t.b},${t.c}}`}};function XN(e,t){let{name:n,config:o}=ve(e,t);return!o?.mode||o.mode==="tuple"?new ex(n):new nx(n)}var ox=class extends Z{static[_]="PgMacaddrBuilder";constructor(t){super(t,"string","PgMacaddr")}build(t){return new rx(t,this.config)}},rx=class extends z{static[_]="PgMacaddr";getSQLType(){return"macaddr"}};function e$(e){return new ox(e??"")}var ix=class extends Z{static[_]="PgMacaddr8Builder";constructor(t){super(t,"string","PgMacaddr8")}build(t){return new Ax(t,this.config)}},Ax=class extends z{static[_]="PgMacaddr8";getSQLType(){return"macaddr8"}};function t$(e){return new ix(e??"")}var sx=class extends Z{static[_]="PgNumericBuilder";constructor(t,n,o){super(t,"string","PgNumeric"),this.config.precision=n,this.config.scale=o}build(t){return new cx(t,this.config)}},cx=class extends z{static[_]="PgNumeric";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="string"?t:String(t)}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},ux=class extends Z{static[_]="PgNumericNumberBuilder";constructor(t,n,o){super(t,"number","PgNumericNumber"),this.config.precision=n,this.config.scale=o}build(t){return new dx(t,this.config)}},dx=class extends z{static[_]="PgNumericNumber";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},lx=class extends Z{static[_]="PgNumericBigIntBuilder";constructor(t,n,o){super(t,"bigint","PgNumericBigInt"),this.config.precision=n,this.config.scale=o}build(t){return new px(t,this.config)}},px=class extends z{static[_]="PgNumericBigInt";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}};function n$(e,t){let{name:n,config:o}=ve(e,t),a=o?.mode;return a==="number"?new ux(n,o?.precision,o?.scale):a==="bigint"?new lx(n,o?.precision,o?.scale):new sx(n,o?.precision,o?.scale)}var gx=class extends Z{static[_]="PgPointTupleBuilder";constructor(t){super(t,"array","PgPointTuple")}build(t){return new mx(t,this.config)}},mx=class extends z{static[_]="PgPointTuple";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o)]}return[t.x,t.y]}mapToDriverValue(t){return`(${t[0]},${t[1]})`}},fx=class extends Z{static[_]="PgPointObjectBuilder";constructor(t){super(t,"json","PgPointObject")}build(t){return new bx(t,this.config)}},bx=class extends z{static[_]="PgPointObject";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return{x:Number.parseFloat(n),y:Number.parseFloat(o)}}return t}mapToDriverValue(t){return`(${t.x},${t.y})`}};function a$(e,t){let{name:n,config:o}=ve(e,t);return!o?.mode||o.mode==="tuple"?new gx(n):new fx(n)}function Qee(e){let t=[];for(let n=0;n<e.length;n+=2)t.push(Number.parseInt(e.slice(n,n+2),16));return new Uint8Array(t)}function o$(e,t){let n=new ArrayBuffer(8),o=new DataView(n);for(let a=0;a<8;a++)o.setUint8(a,e[t+a]);return o.getFloat64(0,!0)}function hx(e){let t=Qee(e),n=0,o=t[n];n+=1;let a=new DataView(t.buffer),r=a.getUint32(n,o===1);n+=4;let i;if(r&536870912&&(i=a.getUint32(n,o===1),n+=4),(r&65535)===1){let A=o$(t,n);n+=8;let s=o$(t,n);return n+=8,[A,s]}throw new Error("Unsupported geometry type")}var Bx=class extends Z{static[_]="PgGeometryBuilder";constructor(t){super(t,"array","PgGeometry")}build(t){return new yx(t,this.config)}},yx=class extends z{static[_]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){return hx(t)}mapToDriverValue(t){return`point(${t[0]} ${t[1]})`}},Cx=class extends Z{static[_]="PgGeometryObjectBuilder";constructor(t){super(t,"json","PgGeometryObject")}build(t){return new wx(t,this.config)}},wx=class extends z{static[_]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){let n=hx(t);return{x:n[0],y:n[1]}}mapToDriverValue(t){return`point(${t.x} ${t.y})`}};function r$(e,t){let{name:n,config:o}=ve(e,t);return!o?.mode||o.mode==="tuple"?new Bx(n):new Cx(n)}var Ex=class extends Z{static[_]="PgRealBuilder";constructor(t,n){super(t,"number","PgReal"),this.config.length=n}build(t){return new kx(t,this.config)}},kx=class extends z{static[_]="PgReal";constructor(t,n){super(t,n)}getSQLType(){return"real"}mapFromDriverValue=t=>typeof t=="string"?Number.parseFloat(t):t};function i$(e){return new Ex(e??"")}var Qx=class extends Z{static[_]="PgSerialBuilder";constructor(t){super(t,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new Ix(t,this.config)}},Ix=class extends z{static[_]="PgSerial";getSQLType(){return"serial"}};function A$(e){return new Qx(e??"")}var _x=class extends fi{static[_]="PgSmallIntBuilder";constructor(t){super(t,"number","PgSmallInt")}build(t){return new vx(t,this.config)}},vx=class extends z{static[_]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=t=>typeof t=="string"?Number(t):t};function s$(e){return new _x(e??"")}var xx=class extends Z{static[_]="PgSmallSerialBuilder";constructor(t){super(t,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new Dx(t,this.config)}},Dx=class extends z{static[_]="PgSmallSerial";getSQLType(){return"smallserial"}};function c$(e){return new xx(e??"")}var Fx=class extends Z{static[_]="PgTextBuilder";constructor(t,n){super(t,"string","PgText"),this.config.enumValues=n.enum}build(t){return new Sx(t,this.config)}},Sx=class extends z{static[_]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}};function Lo(e,t={}){let{name:n,config:o}=ve(e,t);return new Fx(n,o)}var Lx=class extends hr{constructor(t,n,o){super(t,"string","PgTime"),this.withTimezone=n,this.precision=o,this.config.withTimezone=n,this.config.precision=o}static[_]="PgTimeBuilder";build(t){return new Rx(t,this.config)}},Rx=class extends z{static[_]="PgTime";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`time${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}};function u$(e,t={}){let{name:n,config:o}=ve(e,t);return new Lx(n,o.withTimezone??!1,o.precision)}var Nx=class extends hr{static[_]="PgTimestampBuilder";constructor(t,n,o){super(t,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=o}build(t){return new $x(t,this.config)}},$x=class extends z{static[_]="PgTimestamp";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":` (${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){return typeof t=="string"?new Date(this.withTimezone?t:t+"+0000"):t}mapToDriverValue=t=>t.toISOString()},Mx=class extends hr{static[_]="PgTimestampStringBuilder";constructor(t,n,o){super(t,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=o}build(t){return new jx(t,this.config)}},jx=class extends z{static[_]="PgTimestampString";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){if(typeof t=="string")return t;let n=t.toISOString().slice(0,-1).replace("T"," ");if(this.withTimezone){let o=t.getTimezoneOffset(),a=o<=0?"+":"-";return`${n}${a}${Math.floor(Math.abs(o)/60).toString().padStart(2,"0")}`}return n}};function Dh(e,t={}){let{name:n,config:o}=ve(e,t);return o?.mode==="string"?new Mx(n,o.withTimezone??!1,o.precision):new Nx(n,o?.withTimezone??!1,o?.precision)}var Px=class extends Z{static[_]="PgUUIDBuilder";constructor(t){super(t,"string","PgUUID")}defaultRandom(){return this.default(Yu`gen_random_uuid()`)}build(t){return new Gx(t,this.config)}},Gx=class extends z{static[_]="PgUUID";getSQLType(){return"uuid"}};function d$(e){return new Px(e??"")}var Hx=class extends Z{static[_]="PgVarcharBuilder";constructor(t,n){super(t,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new Ux(t,this.config)}},Ux=class extends z{static[_]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}};function l$(e,t={}){let{name:n,config:o}=ve(e,t);return new Hx(n,o)}var Tx=class extends Z{static[_]="PgBinaryVectorBuilder";constructor(t,n){super(t,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(t){return new Ox(t,this.config)}},Ox=class extends z{static[_]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}};function p$(e,t){let{name:n,config:o}=ve(e,t);return new Tx(n,o)}var qx=class extends Z{static[_]="PgHalfVectorBuilder";constructor(t,n){super(t,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(t){return new zx(t,this.config)}},zx=class extends z{static[_]="PgHalfVector";dimensions=this.config.dimensions;getSQLType(){return`halfvec(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function g$(e,t){let{name:n,config:o}=ve(e,t);return new qx(n,o)}var Yx=class extends Z{static[_]="PgSparseVectorBuilder";constructor(t,n){super(t,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(t){return new Kx(t,this.config)}},Kx=class extends z{static[_]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}};function m$(e,t){let{name:n,config:o}=ve(e,t);return new Yx(n,o)}var Jx=class extends Z{static[_]="PgVectorBuilder";constructor(t,n){super(t,"array","PgVector"),this.config.dimensions=n.dimensions}build(t){return new Wx(t,this.config)}},Wx=class extends z{static[_]="PgVector";dimensions=this.config.dimensions;getSQLType(){return`vector(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function f$(e,t){let{name:n,config:o}=ve(e,t);return new Jx(n,o)}function b$(){return{bigint:HN,bigserial:UN,boolean:TN,char:ON,cidr:qN,customType:zN,date:YN,doublePrecision:KN,inet:JN,integer:WN,interval:ZN,json:VN,jsonb:xh,line:XN,macaddr:e$,macaddr8:t$,numeric:n$,point:a$,geometry:r$,real:i$,serial:A$,smallint:s$,smallserial:c$,text:Lo,time:u$,timestamp:Dh,uuid:d$,varchar:l$,bit:p$,halfvec:g$,sparsevec:m$,vector:f$}}var Zx=Symbol.for("drizzle:PgInlineForeignKeys"),h$=Symbol.for("drizzle:EnableRLS"),mp=class extends Kt{static[_]="PgTable";static Symbol=Object.assign({},Kt.Symbol,{InlineForeignKeys:Zx,EnableRLS:h$});[Zx]=[];[h$]=!1;[Kt.Symbol.ExtraConfigBuilder]=void 0;[Kt.Symbol.ExtraConfigColumns]={}};function Iee(e,t,n,o,a=e){let r=new mp(e,o,a),i=typeof t=="function"?t(b$()):t,A=Object.fromEntries(Object.entries(i).map(([u,l])=>{let p=l;p.setName(u);let g=p.build(r);return r[Zx].push(...p.buildForeignKeys(g,r)),[u,g]})),s=Object.fromEntries(Object.entries(i).map(([u,l])=>{let p=l;p.setName(u);let g=p.buildExtraConfigColumn(r);return[u,g]})),c=Object.assign(r,A);return c[Kt.Symbol.Columns]=A,c[Kt.Symbol.ExtraConfigColumns]=s,n&&(c[mp.Symbol.ExtraConfigBuilder]=n),Object.assign(c,{enableRLS:()=>(c[mp.Symbol.EnableRLS]=!0,c)})}var B$=(e,t,n)=>Iee(e,t,n,void 0);var Fh=class{constructor(t,n){this.unique=t,this.name=n}static[_]="PgIndexBuilderOn";on(...t){return new fp(t.map(n=>{if(un(n,Jt))return n;n=n;let o=new Ou(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=JSON.parse(JSON.stringify(n.defaultConfig)),o}),this.unique,!1,this.name)}onOnly(...t){return new fp(t.map(n=>{if(un(n,Jt))return n;n=n;let o=new Ou(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=n.defaultConfig,o}),this.unique,!0,this.name)}using(t,...n){return new fp(n.map(o=>{if(un(o,Jt))return o;o=o;let a=new Ou(o.name,!!o.keyAsName,o.columnType,o.indexConfig);return o.indexConfig=JSON.parse(JSON.stringify(o.defaultConfig)),a}),this.unique,!0,this.name,t)}},fp=class{static[_]="PgIndexBuilder";config;constructor(t,n,o,a,r="btree"){this.config={name:a,columns:t,unique:n,only:o,method:r}}concurrently(){return this.config.concurrently=!0,this}with(t){return this.config.with=t,this}where(t){return this.config.where=t,this}build(t){return new Vx(this.config,t)}},Vx=class{static[_]="PgIndex";config;constructor(t,n){this.config={...t,table:n}}};function y$(e){return new Fh(!1,e)}function C$(e){return new Fh(!0,e)}var w$=e=>Dh(e,{withTimezone:!0}),E$=d.enum(["channel","dm","group","local_conversation","thread","web_session"]),fQe=B$("junior_destinations",{id:Lo("id").primaryKey(),provider:Lo("provider").notNull(),providerTenantId:Lo("provider_tenant_id").notNull().default(""),providerDestinationId:Lo("provider_destination_id").notNull(),kind:Lo("kind").$type().notNull(),parentDestinationId:Lo("parent_destination_id"),displayName:Lo("display_name"),visibility:Lo("visibility").$type().notNull().default("unknown"),metadata:xh("metadata_json"),createdAt:w$("created_at").notNull(),updatedAt:w$("updated_at").notNull()},e=>[C$("junior_destinations_provider_destination_uidx").on(e.provider,e.providerTenantId,e.providerDestinationId),y$("junior_destinations_provider_kind_idx").on(e.provider,e.kind)]);function _ee(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var vee=d.object({kind:d.literal("resource_link"),key:d.string().trim().min(1).max(256),label:d.string().trim().min(1).max(256),url:d.string().url().max(2048).refine(_ee,"URL must use HTTP or HTTPS."),description:d.string().trim().min(1).max(512).optional(),status:d.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),k$=d.discriminatedUnion("kind",[vee]),yQe=d.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/),xee=d.enum(["activity","brain","calendar","check","database","info","key","link","sparkles","warning"]),Dee=d.object({description:d.string().trim().min(1).max(2e3).optional(),metadata:d.array(d.string().trim().min(1).max(120)).max(8).optional(),title:d.string().trim().min(1).max(4e3)}).strict(),Q$=d.object({details:d.array(Dee).max(100).optional(),icon:xee.optional(),preview:d.string().trim().min(1).max(500).optional(),title:d.string().trim().min(1).max(120)}).strict();var I$=d.string().regex(/^T[A-Z0-9]+$/),Fee=d.string().regex(/^(C|G|D)[A-Z0-9]+$/),_$=d.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),Sh=d.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),Ae=d.string().refine(e=>e.trim().length>0),CA=Ae.refine(e=>e===e.trim()),wQe=d.enum(["slack","local"]),See=d.enum(["public","private"]),Lee=d.enum(["public","private"]),v$=d.object({platform:d.literal("slack"),teamId:I$,channelId:Fee}).strict(),x$=v$,Ree=d.object({platform:d.literal("local"),conversationId:_$}).strict(),Nee=d.discriminatedUnion("platform",[x$,Ree]),$ee=v$.extend({visibility:See,messageTs:Ae.optional(),threadTs:Ae.optional()}).strict(),Mee=d.object({platform:d.literal("local"),visibility:d.literal("private"),conversationId:_$}).strict(),D$=d.discriminatedUnion("platform",[$ee,Mee]),jee=d.discriminatedUnion("allowedWhen",[d.object({type:d.literal("user"),userId:Sh,allowedWhen:d.literal("private-direct-conversation")}).strict(),d.object({type:d.literal("user"),userId:Sh,allowedWhen:d.literal("scheduled-task"),taskId:CA}).strict()]),F$={email:Ae.optional(),fullName:Ae.optional(),userId:Sh,userName:Ae.optional()},Pee=d.object({...F$,platform:d.literal("slack"),teamId:I$}).strict(),Gee=d.object({...F$,platform:d.literal("local")}).strict(),Hee=d.object({platform:d.literal("system"),name:Sh}).strict(),Xx=d.discriminatedUnion("platform",[Pee,Gee,Hee]),Uee=d.object({displayName:Ae.optional(),handle:Ae.optional(),id:CA,provider:CA,providerSubjectId:CA,providerTenantId:CA.optional()}).strict(),EQe=d.object({displayName:Ae.optional(),email:Ae.max(320),id:CA,identities:d.array(Uee).max(100)}).strict(),Tee=d.record(d.string(),d.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),Oee=d.object({label:CA.pipe(d.string().max(48)).refine(e=>!/[\r\n]/.test(e)),detail:CA.pipe(d.string().max(128)).refine(e=>!/[\r\n]/.test(e)).optional()}).strict(),kQe=d.object({idempotencyKey:Ae.pipe(d.string().max(512)),credentialSubject:jee.optional(),destination:x$,destinationVisibility:Lee,input:Ae.pipe(d.string().max(32e3)),metadata:Tee.optional(),replyAttribution:Oee.optional(),source:D$}).strict();var qee=d.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),IQe=d.object({text:d.string().trim().min(1).max(8e3)}).strict(),_Qe=d.object({kind:qee,version:d.number().int().positive(),content:d.record(d.string(),d.unknown())}).strict();var zee=4e3,Yee=8e3,bp=d.string().regex(/^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/).describe("Canonical dotted event type, such as issue.closed or pull_request.review.changes_requested."),S$=d.string().regex(/^[a-z][a-z0-9_]*$/).describe("Canonical plugin-defined resource type, such as issue or pull_request."),Kee=d.object({type:S$,supportedEvents:d.array(bp).min(1),suggestedEvents:d.array(bp).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.supportedEvents.forEach((a,r)=>{n.has(a)&&t.addIssue({code:"custom",message:`Duplicate supported resource event type "${a}".`,path:["supportedEvents",r]}),n.add(a)});let o=new Set;e.suggestedEvents?.forEach((a,r)=>{o.has(a)&&t.addIssue({code:"custom",message:`Duplicate suggested resource event type "${a}".`,path:["suggestedEvents",r]}),n.has(a)||t.addIssue({code:"custom",message:`Suggested resource event type "${a}" is not supported.`,path:["suggestedEvents",r]}),o.add(a)})}),xQe=d.object({resourceTypes:d.array(Kee).min(1),isEnabled:d.function({input:[],output:d.boolean()}).optional(),normalizeIdentifier:d.function({input:[d.string()],output:d.string()}).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.resourceTypes.forEach((o,a)=>{n.has(o.type)&&t.addIssue({code:"custom",message:`Duplicate resource type "${o.type}".`,path:["resourceTypes",a,"type"]}),n.add(o.type)})});var DQe=d.object({identifier:d.string().min(1),label:d.string().min(1),namespace:d.string().min(1),suggestedEvents:d.array(bp).optional(),supportedEvents:d.array(bp),type:S$}).strict(),Jee=d.object({eventKey:d.string().min(1),eventType:bp,identifier:d.string().min(1),occurredAtMs:d.number().finite(),terminal:d.boolean().optional(),trustedSummary:d.string().min(1).transform(e=>e.slice(0,zee)),untrustedText:d.string().transform(e=>e.slice(0,Yee)).optional()}).strict(),FQe=Jee.extend({namespace:d.string().min(1)}),Wee=d.object({authority:d.enum(["instruction","context"]),actor:Xx.optional()}).strict(),Zee=d.discriminatedUnion("type",[d.object({type:d.literal("message"),role:d.enum(["user","assistant"]),text:d.string().min(1),provenance:Wee.optional(),isRunActor:d.boolean().optional()}).strict(),d.object({type:d.literal("toolResult"),toolName:d.string().min(1),isError:d.boolean(),text:d.string().min(1).optional()}).strict()]),LQe=d.object({completedAtMs:d.number().finite(),conversationId:d.string().min(1),destination:Nee,actors:d.array(Xx),actor:Xx.optional(),runId:d.string().min(1),source:D$,transcript:d.array(Zee)}).strict();var NQe=d.discriminatedUnion("type",[d.object({type:d.literal("text"),text:d.string()}).strict(),d.object({type:d.literal("image"),data:d.string(),mimeType:d.string()}).strict()]),Vee=d.object({arguments:d.record(d.string(),d.unknown()),reason:d.string().min(1).optional()}).strict(),$Qe=d.object({target:d.string().min(1).optional(),truncated:d.boolean().optional(),continuation:Vee.optional()}).passthrough(),MQe=d.enum(["auto","review","approve"]);var PQe=d.object({auth:d.object({user:d.object({email:d.string().nullable().optional(),emailVerified:d.boolean().optional(),name:d.string().nullable().optional()}).strict()}).strict(),pluginName:Ae}).strict(),Xee=d.string().regex(/^[a-z][a-z0-9-]*$/),ete=d.string().regex(/^[a-z][a-z0-9.-]*$/),tte=d.union([d.literal("read"),d.literal("write")]),L$=d.object({provider:Xee,scope:Ae.optional(),type:d.literal("oauth")}).strict(),R$=d.object({id:Ae,label:Ae.optional(),url:Ae.optional()}).strict(),HQe=d.object({account:R$.optional(),accessToken:Ae,expiresAt:d.number().finite().optional(),refreshToken:Ae,refreshTokenExpiresAt:d.number().finite().optional(),scope:Ae.optional()}).strict(),UQe=d.object({access:tte,leaseScope:Ae.optional(),name:ete,reason:Ae.optional(),requirements:d.array(Ae).min(1).optional()}).strict(),nte=d.object({domain:d.string().min(1),headers:d.record(d.string(),d.string()).refine(e=>Object.keys(e).length>0)}).strict(),ate=d.object({account:R$.optional(),authorization:L$.optional(),expiresAt:d.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:d.array(nte).min(1)}).strict(),TQe=d.discriminatedUnion("type",[d.object({lease:ate,type:d.literal("lease")}).strict(),d.object({authorization:L$.optional(),message:Ae,type:d.literal("needed")}).strict(),d.object({message:Ae,type:d.literal("unavailable")}).strict()]);var ote=Ae.max(64).regex(/^[a-z][a-z0-9-]*$/),rte=Ae.max(80),ite=Ae.max(500),Ate=d.enum(["primary","profile"]),ste=d.object({detail:Ae.max(500).optional(),label:Ae.max(80),tone:d.enum(["good","neutral","warning"]).optional(),value:Ae.max(120)}).strict(),cte=d.object({label:Ae.max(80),value:Ae.max(500)}).strict(),ute=d.object({confirmation:Ae.max(500).optional(),href:Ae.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:Ae.max(80),method:d.literal("DELETE"),tone:d.enum(["danger","neutral"]).optional()}).strict(),dte=d.object({actions:d.array(ute).max(4).optional(),description:Ae.max(1e3).optional(),id:Ae.max(128),metadata:d.array(cte).max(8).optional(),title:Ae.max(4e3)}).strict(),qQe=d.object({emptyText:Ae.max(500).optional(),metrics:d.array(ste).max(6).optional(),nextCursor:Ae.max(1e3).optional(),records:d.array(dte).max(100),searchPlaceholder:Ae.max(120).optional(),type:d.literal("list")}).strict(),lte=d.object({description:ite,id:ote,label:rte,navigation:Ate,pluginDisplayName:Ae.max(200),pluginName:Ae.max(100)}).strict(),zQe=d.array(lte),YQe=d.object({cursor:Ae.max(1e3).optional(),filter:Ae.max(64).optional(),limit:d.number().int().min(1).max(50),query:d.string().trim().max(200).optional()}).strict();var $$=d.object({active:d.number(),conversations:d.number(),date:d.string(),durationMs:d.number(),failed:d.number(),tokens:d.number().optional()}).strict();var pte=d.enum(["active","completed","failed"]),gte=d.enum(["api","internal","scheduler","slack"]),M$=EN,mte=d.object({conversationId:d.string().min(1)}).strict(),fte=d.object({limit:d.coerce.number().int().min(1).max(1e3).default(500)}).strict(),bte=d.object({before:d.string().min(1),limit:d.coerce.number().int().min(1).max(1e3).default(500)}).strict(),hte=d.object({actorEmail:d.string().trim().email().transform(e=>e.toLowerCase()).optional()}).strict(),Bte=d.object({archived:d.boolean(),lastSeenAt:d.string().datetime()}).strict(),eD=d.object({archived:d.boolean()}).strict(),Lh=d.object({email:d.string().optional(),fullName:d.string().optional(),slackUserId:d.string().optional(),slackUserName:d.string().optional()}).strict(),j$=d.object({costUsd:d.number().finite().nonnegative(),operations:d.array(d.object({costUsd:d.number().finite().nonnegative(),events:d.number().int().positive(),name:d.string().min(1),namespace:d.string().min(1)}).strict()).min(1)}).strict(),hp=d.object({displayTitle:d.string(),cumulativeDurationMs:d.number(),cumulativeUsage:M$.optional(),auxiliaryCosts:j$.optional(),conversationId:d.string(),isParticipant:d.boolean(),status:pte,startedAt:d.string(),lastSeenAt:d.string(),lastProgressAt:d.string(),surface:gte,actorIdentity:Lh.optional(),archivedAt:d.string().optional(),channel:d.string().optional(),channelName:d.string().optional(),channelNameRedacted:d.boolean().optional(),locationId:d.string().optional(),sentryTraceUrl:d.string().optional(),sourceUrl:d.string().url().optional(),traceId:d.string().optional()}).strict(),yte=d.object({type:d.literal("message"),messageId:d.string().min(1),role:d.enum(["assistant","system","user"]),actorIdentity:Lh.optional(),eventType:d.string().min(1).optional(),text:d.string().optional(),redacted:d.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"message content must be text or explicitly redacted"}),e.redacted&&e.actorIdentity&&t.addIssue({code:"custom",message:"redacted messages must not expose actor identity"})}),Cte=d.object({type:d.literal("message_handled"),messageId:d.string().min(1)}).strict(),wte=d.object({toolCallId:d.string().min(1),name:d.string().min(1),status:d.enum(["running","completed","error"]),startedAt:d.string().datetime().optional(),startedSeq:d.number().int().nonnegative().optional(),input:d.unknown().optional(),output:d.unknown().optional()}).strict().superRefine((e,t)=>{e.startedAt===void 0!=(e.startedSeq===void 0)&&t.addIssue({code:"custom",message:"tool start sequence and timestamp must be provided together"})}),P$=d.object({type:d.literal("reasoning"),text:d.string().min(1).optional(),redacted:d.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"reasoning content must be text or explicitly redacted"})}),Ete=d.object({type:d.literal("tool_call"),toolCallId:d.string().min(1)}).strict(),kte=d.object({parts:d.array(d.discriminatedUnion("type",[P$,Ete])).min(1)}).strict(),Qte=d.object({type:d.literal("tool_calls"),calls:d.array(wte).min(1),assistant:kte.optional()}).strict().superRefine((e,t)=>{if(!e.assistant)return;let n=new Map;for(let a of e.calls)n.set(a.toolCallId,(n.get(a.toolCallId)??0)+1);let o=new Map;for(let a of e.assistant.parts)a.type==="tool_call"&&o.set(a.toolCallId,(o.get(a.toolCallId)??0)+1);(n.size!==o.size||[...n].some(([a,r])=>o.get(a)!==r))&&t.addIssue({code:"custom",path:["assistant","parts"],message:"assistant tool parts must reference every call exactly once"})}),Ite=d.object({type:d.literal("assistant_message"),parts:d.array(P$).min(1)}).strict(),_te=d.discriminatedUnion("state",[d.object({type:d.literal("turn_lifecycle"),turnId:d.string().min(1),state:d.enum(["started","succeeded","no_reply"])}).strict(),d.object({type:d.literal("turn_lifecycle"),turnId:d.string().min(1),state:d.literal("failed"),failureKind:d.enum(["agent","delivery"])}).strict()]),vte=d.object({type:d.literal("turn_routed"),turnId:d.string().min(1),modelProfile:d.string().min(1),modelId:d.string().min(1),reasoningLevel:d.string().min(1),confidence:d.number().min(0).max(1).optional(),source:d.enum(["configured","inherited","router"])}).strict(),xte=d.object({type:d.literal("guardian_action_reviewed"),turnId:d.string().min(1),toolCallId:d.string().min(1),toolName:d.string().min(1),decision:d.enum(["allow","ask","deny"]),riskLevel:d.enum(["low","medium","high","critical"]),userAuthorization:d.enum(["high","medium","low","unknown"])}).strict(),Dte=d.object({type:d.literal("turn_context"),turnId:d.string().min(1),pluginName:d.string().min(1),kind:d.string().min(1),version:d.number().int().positive(),content:d.record(d.string(),d.unknown())}).strict(),Fte=d.object({type:d.literal("structured_event"),namespace:d.string().min(1),name:d.string().min(1),version:d.number().int().positive(),turnId:d.string().min(1).optional(),presentation:Q$}).strict(),Ste=d.object({type:d.literal("compaction"),modelProfile:d.string().min(1).optional(),modelId:d.string().min(1).optional(),summary:d.string().min(1).optional(),details:d.object({reason:d.literal("capacity"),estimatedInputTokens:d.number().int().nonnegative(),replacementInputTokens:d.number().int().nonnegative().optional(),triggerTokens:d.number().int().nonnegative(),inputLimitTokens:d.number().int().positive(),inputMessageCount:d.number().int().nonnegative(),retainedMessageCount:d.number().int().nonnegative(),summaryChars:d.number().int().nonnegative()}).strict().optional()}).strict(),Lte=d.object({type:d.literal("handoff"),modelProfile:d.string().min(1),modelId:d.string().min(1),reasoningLevel:d.string().min(1).optional(),triggeringToolCallId:d.string().min(1).optional(),summary:d.string().min(1).optional()}).strict(),Rte=d.object({type:d.literal("subagent"),startedSeq:d.number().int().nonnegative(),startedAt:d.string().datetime(),childConversationId:d.string().min(1),subagentKind:d.string().min(1),parentToolCallId:d.string().min(1).optional(),status:d.enum(["running","completed","error","aborted"])}).strict(),G$=d.discriminatedUnion("type",[yte,Cte,Ite,Qte,_te,Dte,Fte,vte,xte,Ste,Lte,Rte]),tD=d.object({seq:d.number().int().nonnegative(),createdAt:d.string().datetime(),data:G$}).strict(),nD=d.discriminatedUnion("status",[d.object({status:d.literal("available")}).strict(),d.object({status:d.literal("redacted"),reason:d.literal("non_public_conversation")}).strict(),d.object({status:d.literal("expired"),expiredAt:d.string().datetime()}).strict()]),Nte=d.object({modelId:d.string(),usage:M$}).strict();function H$(e,t){e.eventHistory.status==="expired"&&e.events.length>0&&t.addIssue({code:"custom",path:["events"],message:"expired event history must not contain events"});for(let n=1;n<e.events.length;n+=1)e.events[n].seq<=e.events[n-1].seq&&t.addIssue({code:"custom",path:["events",n,"seq"],message:"report event sequences must be strictly increasing"});for(let[n,o]of e.events.entries())o.data.type==="message"&&(e.eventHistory.status==="redacted"&&o.data.redacted!==!0&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact messages"}),e.eventHistory.status==="available"&&o.data.redacted===!0&&t.addIssue({code:"custom",path:["events",n,"data"],message:"available event history must expose messages"})),e.eventHistory.status==="redacted"&&o.data.type==="tool_calls"&&o.data.calls.some(a=>a.input!==void 0||a.output!==void 0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact tool payloads"}),e.eventHistory.status==="redacted"&&o.data.type==="assistant_message"&&o.data.parts.some(a=>a.text!==void 0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact assistant messages"}),e.eventHistory.status==="available"&&o.data.type==="assistant_message"&&o.data.parts.some(a=>a.redacted===!0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"available event history must expose reasoning"}),o.data.type==="tool_calls"&&(e.eventHistory.status==="redacted"&&o.data.assistant?.parts.some(a=>a.type==="reasoning"&&a.text!==void 0)||e.eventHistory.status==="available"&&o.data.assistant?.parts.some(a=>a.type==="reasoning"&&a.redacted===!0))&&t.addIssue({code:"custom",path:["events",n,"data","assistant"],message:"assistant reasoning must match event history visibility"})}var aD=hp.extend({annotations:d.array(k$.and(d.object({plugin:d.string().min(1),createdAt:d.string().datetime(),updatedAt:d.string().datetime()}))).optional(),modelUsage:d.array(Nte).optional(),events:d.array(tD),eventHistory:nD,previousCursor:d.string().min(1).optional(),generatedAt:d.string(),sentryConversationUrl:d.string().optional()}).strict().superRefine(H$),oD=d.object({events:d.array(tD),eventHistory:nD,previousCursor:d.string().min(1).optional(),generatedAt:d.string()}).strict().superRefine(H$),rD=d.object({conversations:d.array(hp),source:d.literal("conversation_index"),generatedAt:d.string()}).strict(),Ku=d.object({active:d.number(),conversations:d.number(),durationMs:d.number(),failed:d.number(),label:d.string(),costUsd:d.number().optional(),tokens:d.number().optional()}).strict(),$te=d.object({conversations:d.number(),costUsd:d.number().optional(),date:d.string(),durationMs:d.number(),tokens:d.number().optional()}).strict(),Mte=d.object({allow:d.number(),ask:d.number(),costUsd:d.number().optional(),date:d.string(),deny:d.number(),requests:d.number()}).strict(),jte=d.object({allow:d.number(),ask:d.number(),costUsd:d.number().optional(),deny:d.number(),metricDays:d.array(Mte),requests:d.number()}).strict(),iD=d.object({active:d.number(),conversations:d.number(),durationMs:d.number(),failed:d.number(),generatedAt:d.string(),guardian:jte,metricDays:d.array($te),locations:d.array(Ku),actors:d.array(Ku),source:d.literal("conversation_index"),costUsd:d.number().optional(),tokens:d.number().optional(),windowEnd:d.string(),windowStart:d.string()}).strict(),Pte=d.object({email:d.string().trim().min(1)}).strict(),N$=Ku.omit({costUsd:!0}),Gte=d.object({active:d.number(),conversations:d.number(),costUsd:d.number().optional(),date:d.string(),durationMs:d.number(),failed:d.number(),tokens:d.number().optional()}).strict(),Hte=d.object({activePeople:d.number(),conversations:d.number(),date:d.string()}).strict(),U$=d.object({active:d.number(),activeDays:d.number(),conversations:d.number(),durationMs:d.number(),failed:d.number(),tokens:d.number().optional()}).strict(),T$=Lh.extend({email:d.string().min(1)}).strict(),Ute=U$.extend({firstSeenAt:d.string(),lastSeenAt:d.string(),actor:T$}).strict(),AD=d.object({activityDays:d.array(Hte),generatedAt:d.string(),people:d.array(Ute),source:d.literal("conversation_index"),windowEnd:d.string(),windowStart:d.string()}).strict(),sD=d.object({activityDays:d.array(Gte),generatedAt:d.string(),locations:d.array(N$),recentConversations:d.array(hp),actor:T$,source:d.literal("conversation_index"),surfaces:d.array(N$),totals:U$,windowEnd:d.string(),windowStart:d.string()}).strict(),cD=d.object({generatedAt:d.string(),sevenDaysUsd:d.number().finite().nonnegative(),source:d.literal("conversation_index"),thirtyDaysUsd:d.number().finite().nonnegative(),windowEnd:d.string(),windowStart:d.string()}).strict(),Tte=d.object({locationId:d.string().min(1)}).strict(),O$=Ku.extend({id:d.string(),firstSeenAt:d.string(),kind:E$,lastSeenAt:d.string(),provider:d.string(),providerDestinationId:d.string(),visibility:d.literal("public")}).strict(),Ote=Ku.extend({actor:Lh}).strict(),q$=d.object({date:d.string(),privateConversations:d.number(),publicConversations:d.number()}).strict(),uD=d.object({activityDays:d.array(q$),generatedAt:d.string(),locations:d.array(O$),privateActivity:Ku,source:d.literal("conversation_index"),windowEnd:d.string(),windowStart:d.string()}).strict(),dD=O$.extend({activityDays:d.array($$),actors:d.array(Ote),generatedAt:d.string(),recentConversations:d.array(hp),source:d.literal("conversation_index"),windowEnd:d.string(),windowStart:d.string()}).strict(),qte=d.object({error:d.string().min(1)}).strict(),lD=d.object({id:d.string().uuid(),name:d.string(),tokenSuffix:d.string(),createdAt:d.string().datetime(),expiresAt:d.string().datetime(),lastUsedAt:d.string().datetime().nullable()}).strict(),pD=d.object({tokens:d.array(lD)}).strict(),zte=d.object({name:d.string().trim().min(1).max(80)}).strict(),gD=lD.extend({token:d.string().startsWith("jr_pat_")}).strict(),Yte=d.object({id:d.string().uuid()}).strict(),Kte=d.object({revoked:d.literal(!0)}).strict(),Jte=d.object({channelId:d.string().min(1),label:d.string().min(1),teamId:d.string().min(1),visibility:d.enum(["private","public"])}).strict(),z$=d.object({createdAt:d.string().datetime(),createdBy:d.string().min(1),createdByEmail:d.string().trim().email().optional(),destination:Jte,id:d.string().min(1),instruction:d.string().min(1),lastConversationId:d.string().min(1).optional(),lastRunAt:d.string().datetime().optional(),ownedByViewer:d.boolean(),runsLast7Days:d.number().int().nonnegative(),totalRuns:d.number().int().nonnegative()}),Y$=z$.extend({kind:d.literal("scheduled"),nextRunAt:d.string().datetime().optional(),schedule:d.string().min(1),status:d.enum(["active","blocked","completed"])}).strict(),K$=z$.extend({events:d.array(d.string().min(1)).min(1),kind:d.literal("event"),resource:d.string().min(1),source:d.string().min(1),triggerAvailable:d.boolean()}).strict(),mD=d.discriminatedUnion("kind",[Y$,K$]),Wte=d.object({date:d.string().min(1),event:d.number().int().nonnegative(),scheduled:d.number().int().nonnegative()}).strict(),fD=d.object({executionDays:d.array(Wte),tasks:d.array(mD),truncated:d.boolean()}).strict(),Zte=d.object({id:d.string().min(1),kind:d.enum(["scheduled","event"])}).strict(),J$=d.enum(["blocked","completed","failed"]),W$=d.object({conversationId:d.string().min(1).optional(),executedAt:d.string().datetime(),executionId:d.string().min(1),status:J$,title:d.string().min(1).optional()}).strict(),Z$=d.object({blocked:d.number().int().nonnegative(),completed:d.number().int().nonnegative(),date:d.string().min(1),failed:d.number().int().nonnegative()}).strict(),bD=d.object({executionDays:d.array(Z$),executions:d.array(W$),task:mD,truncated:d.boolean()}).strict(),V$=d.object({count:d.number().int().nonnegative(),date:d.string(),metric:d.string().min(1),name:d.string().min(1),namespace:d.string().min(1)}).strict(),Vte=d.object({generatedAt:d.string().datetime(),stats:d.array(V$),windowEnd:d.string(),windowStart:d.string()}).strict();var Xte=d.object({status:d.literal("ok"),service:d.string(),timestamp:d.string()}).strict(),X$=d.object({configKeys:d.array(d.string()),description:d.string(),displayName:d.string(),name:d.string()}).strict(),hD=d.array(X$),BD=d.object({name:d.string(),pluginProvider:d.string().optional()}).strict(),yD=d.array(BD),eM=d.object({dir:d.string(),hasMigrationsDir:d.boolean(),hasSkillsDir:d.boolean(),packageName:d.string()}).strict(),tM=d.object({packageNames:d.array(d.string()),packages:d.array(eM),manifestRoots:d.array(d.string()),skillRoots:d.array(d.string()),tracingIncludes:d.array(d.string())}).strict(),ene=d.object({cwd:d.string(),homeDir:d.string(),descriptionText:d.string().optional(),providers:d.array(d.string()),skills:d.array(BD),packagedContent:tM}).strict(),CD=d.enum(["danger","good","neutral","warning"]),tne=d.object({label:d.string(),tone:CD.optional(),value:d.string()}).strict(),nne=d.object({key:d.string(),label:d.string()}).strict(),ane=d.object({id:d.string(),tone:CD.optional(),values:d.record(d.string(),d.string())}).strict(),one=d.object({fields:d.array(nne).optional(),emptyText:d.string().optional(),records:d.array(ane).optional(),title:d.string()}).strict(),rne=d.object({categories:d.array(d.object({id:d.string().min(1),label:d.string().min(1),values:d.record(d.string(),d.number().finite())}).strict()).max(100),description:d.string().optional(),emptyText:d.string().optional(),id:d.string().min(1),series:d.array(d.object({format:d.literal("usd").optional(),key:d.string().min(1),label:d.string().min(1),tone:CD.optional()}).strict()).min(1).max(8),timeRangeDays:d.array(d.union([d.literal(7),d.literal(30),d.literal(90)])).min(1).max(3).optional(),title:d.string().min(1),type:d.literal("bar_chart")}).strict(),nM=d.object({generatedAt:d.string().optional(),metrics:d.array(tne).optional(),recordSets:d.array(one).optional(),title:d.string().optional(),pluginName:d.string(),widgets:d.array(rne).max(12).optional()}).strict(),wD=d.object({generatedAt:d.string(),reports:d.array(nM),source:d.literal("plugins")}).strict();function ine(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var Ane=d.object({kind:d.literal("resource_link"),key:d.string().trim().min(1).max(256),label:d.string().trim().min(1).max(256),url:d.string().url().max(2048).refine(ine,"URL must use HTTP or HTTPS."),description:d.string().trim().min(1).max(512).optional(),status:d.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),bIe=d.discriminatedUnion("kind",[Ane]),BIe=d.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/),sne=d.enum(["activity","brain","calendar","check","database","info","key","link","sparkles","warning"]),cne=d.object({description:d.string().trim().min(1).max(2e3).optional(),metadata:d.array(d.string().trim().min(1).max(120)).max(8).optional(),title:d.string().trim().min(1).max(4e3)}).strict(),yIe=d.object({details:d.array(cne).max(100).optional(),icon:sne.optional(),preview:d.string().trim().min(1).max(500).optional(),title:d.string().trim().min(1).max(120)}).strict();var aM=d.string().regex(/^T[A-Z0-9]+$/),une=d.string().regex(/^(C|G|D)[A-Z0-9]+$/),oM=d.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),Rh=d.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),se=d.string().refine(e=>e.trim().length>0),wA=se.refine(e=>e===e.trim()),wIe=d.enum(["slack","local"]),dne=d.enum(["public","private"]),lne=d.enum(["public","private"]),rM=d.object({platform:d.literal("slack"),teamId:aM,channelId:une}).strict(),iM=rM,pne=d.object({platform:d.literal("local"),conversationId:oM}).strict(),gne=d.discriminatedUnion("platform",[iM,pne]),mne=rM.extend({visibility:dne,messageTs:se.optional(),threadTs:se.optional()}).strict(),fne=d.object({platform:d.literal("local"),visibility:d.literal("private"),conversationId:oM}).strict(),AM=d.discriminatedUnion("platform",[mne,fne]),bne=d.discriminatedUnion("allowedWhen",[d.object({type:d.literal("user"),userId:Rh,allowedWhen:d.literal("private-direct-conversation")}).strict(),d.object({type:d.literal("user"),userId:Rh,allowedWhen:d.literal("scheduled-task"),taskId:wA}).strict()]),sM={email:se.optional(),fullName:se.optional(),userId:Rh,userName:se.optional()},hne=d.object({...sM,platform:d.literal("slack"),teamId:aM}).strict(),Bne=d.object({...sM,platform:d.literal("local")}).strict(),yne=d.object({platform:d.literal("system"),name:Rh}).strict(),ED=d.discriminatedUnion("platform",[hne,Bne,yne]),Cne=d.object({displayName:se.optional(),handle:se.optional(),id:wA,provider:wA,providerSubjectId:wA,providerTenantId:wA.optional()}).strict(),EIe=d.object({displayName:se.optional(),email:se.max(320),id:wA,identities:d.array(Cne).max(100)}).strict(),wne=d.record(d.string(),d.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),Ene=d.object({label:wA.pipe(d.string().max(48)).refine(e=>!/[\r\n]/.test(e)),detail:wA.pipe(d.string().max(128)).refine(e=>!/[\r\n]/.test(e)).optional()}).strict(),kIe=d.object({idempotencyKey:se.pipe(d.string().max(512)),credentialSubject:bne.optional(),destination:iM,destinationVisibility:lne,input:se.pipe(d.string().max(32e3)),metadata:wne.optional(),replyAttribution:Ene.optional(),source:AM}).strict();var kne=d.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),IIe=d.object({text:d.string().trim().min(1).max(8e3)}).strict(),_Ie=d.object({kind:kne,version:d.number().int().positive(),content:d.record(d.string(),d.unknown())}).strict();var Qne=4e3,Ine=8e3,Bp=d.string().regex(/^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/).describe("Canonical dotted event type, such as issue.closed or pull_request.review.changes_requested."),cM=d.string().regex(/^[a-z][a-z0-9_]*$/).describe("Canonical plugin-defined resource type, such as issue or pull_request."),_ne=d.object({type:cM,supportedEvents:d.array(Bp).min(1),suggestedEvents:d.array(Bp).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.supportedEvents.forEach((a,r)=>{n.has(a)&&t.addIssue({code:"custom",message:`Duplicate supported resource event type "${a}".`,path:["supportedEvents",r]}),n.add(a)});let o=new Set;e.suggestedEvents?.forEach((a,r)=>{o.has(a)&&t.addIssue({code:"custom",message:`Duplicate suggested resource event type "${a}".`,path:["suggestedEvents",r]}),n.has(a)||t.addIssue({code:"custom",message:`Suggested resource event type "${a}" is not supported.`,path:["suggestedEvents",r]}),o.add(a)})}),xIe=d.object({resourceTypes:d.array(_ne).min(1),isEnabled:d.function({input:[],output:d.boolean()}).optional(),normalizeIdentifier:d.function({input:[d.string()],output:d.string()}).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.resourceTypes.forEach((o,a)=>{n.has(o.type)&&t.addIssue({code:"custom",message:`Duplicate resource type "${o.type}".`,path:["resourceTypes",a,"type"]}),n.add(o.type)})});var DIe=d.object({identifier:d.string().min(1),label:d.string().min(1),namespace:d.string().min(1),suggestedEvents:d.array(Bp).optional(),supportedEvents:d.array(Bp),type:cM}).strict(),vne=d.object({eventKey:d.string().min(1),eventType:Bp,identifier:d.string().min(1),occurredAtMs:d.number().finite(),terminal:d.boolean().optional(),trustedSummary:d.string().min(1).transform(e=>e.slice(0,Qne)),untrustedText:d.string().transform(e=>e.slice(0,Ine)).optional()}).strict(),FIe=vne.extend({namespace:d.string().min(1)}),xne=d.object({authority:d.enum(["instruction","context"]),actor:ED.optional()}).strict(),Dne=d.discriminatedUnion("type",[d.object({type:d.literal("message"),role:d.enum(["user","assistant"]),text:d.string().min(1),provenance:xne.optional(),isRunActor:d.boolean().optional()}).strict(),d.object({type:d.literal("toolResult"),toolName:d.string().min(1),isError:d.boolean(),text:d.string().min(1).optional()}).strict()]),LIe=d.object({completedAtMs:d.number().finite(),conversationId:d.string().min(1),destination:gne,actors:d.array(ED),actor:ED.optional(),runId:d.string().min(1),source:AM,transcript:d.array(Dne)}).strict();var NIe=d.discriminatedUnion("type",[d.object({type:d.literal("text"),text:d.string()}).strict(),d.object({type:d.literal("image"),data:d.string(),mimeType:d.string()}).strict()]),Fne=d.object({arguments:d.record(d.string(),d.unknown()),reason:d.string().min(1).optional()}).strict(),$Ie=d.object({target:d.string().min(1).optional(),truncated:d.boolean().optional(),continuation:Fne.optional()}).passthrough(),MIe=d.enum(["auto","review","approve"]);var PIe=d.object({auth:d.object({user:d.object({email:d.string().nullable().optional(),emailVerified:d.boolean().optional(),name:d.string().nullable().optional()}).strict()}).strict(),pluginName:se}).strict(),Sne=d.string().regex(/^[a-z][a-z0-9-]*$/),Lne=d.string().regex(/^[a-z][a-z0-9.-]*$/),Rne=d.union([d.literal("read"),d.literal("write")]),uM=d.object({provider:Sne,scope:se.optional(),type:d.literal("oauth")}).strict(),dM=d.object({id:se,label:se.optional(),url:se.optional()}).strict(),HIe=d.object({account:dM.optional(),accessToken:se,expiresAt:d.number().finite().optional(),refreshToken:se,refreshTokenExpiresAt:d.number().finite().optional(),scope:se.optional()}).strict(),UIe=d.object({access:Rne,leaseScope:se.optional(),name:Lne,reason:se.optional(),requirements:d.array(se).min(1).optional()}).strict(),Nne=d.object({domain:d.string().min(1),headers:d.record(d.string(),d.string()).refine(e=>Object.keys(e).length>0)}).strict(),$ne=d.object({account:dM.optional(),authorization:uM.optional(),expiresAt:d.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:d.array(Nne).min(1)}).strict(),TIe=d.discriminatedUnion("type",[d.object({lease:$ne,type:d.literal("lease")}).strict(),d.object({authorization:uM.optional(),message:se,type:d.literal("needed")}).strict(),d.object({message:se,type:d.literal("unavailable")}).strict()]);var Mne=se.max(64).regex(/^[a-z][a-z0-9-]*$/),jne=se.max(80),Pne=se.max(500),Gne=d.enum(["primary","profile"]),Hne=d.object({detail:se.max(500).optional(),label:se.max(80),tone:d.enum(["good","neutral","warning"]).optional(),value:se.max(120)}).strict(),Une=d.object({label:se.max(80),value:se.max(500)}).strict(),Tne=d.object({confirmation:se.max(500).optional(),href:se.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:se.max(80),method:d.literal("DELETE"),tone:d.enum(["danger","neutral"]).optional()}).strict(),One=d.object({actions:d.array(Tne).max(4).optional(),description:se.max(1e3).optional(),id:se.max(128),metadata:d.array(Une).max(8).optional(),title:se.max(4e3)}).strict(),lM=d.object({emptyText:se.max(500).optional(),metrics:d.array(Hne).max(6).optional(),nextCursor:se.max(1e3).optional(),records:d.array(One).max(100),searchPlaceholder:se.max(120).optional(),type:d.literal("list")}).strict(),qne=d.object({description:Pne,id:Mne,label:jne,navigation:Gne,pluginDisplayName:se.max(200),pluginName:se.max(100)}).strict(),pM=d.array(qne),qIe=d.object({cursor:se.max(1e3).optional(),filter:se.max(64).optional(),limit:d.number().int().min(1).max(50),query:d.string().trim().max(200).optional()}).strict();var gM=d.object({user:d.object({email:d.string().trim().email(),emailVerified:d.boolean().optional(),name:d.string().nullable().optional()}).strict()}).strict(),mM=d.object({allowedEmailCount:d.number(),allowedGoogleDomainCount:d.number(),authRequired:d.boolean(),authPath:d.string(),basePath:d.string(),componentGallery:d.boolean(),sentryConversationLinks:d.boolean(),timeZone:d.string()}).strict();var Ro=class extends Error{status;constructor(t,n){super(`${t} returned ${n}`),this.status=n}};function Nh(){if(typeof window>"u")return;let e=window.__JUNIOR_DASHBOARD_BASE_PATH__??"/",t=e==="/"?"/auth/login":`${e}/auth/login`;if(window.location.pathname!==t){let n=`${window.location.pathname}${window.location.search||""}`,o=new URLSearchParams;n!=="/"&&o.set("next",n);let a=o.toString();window.location.assign(a?`${t}?${a}`:t)}}async function fM(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"PATCH"});if(o.status===401&&Nh(),!o.ok)throw new Ro(t,o.status);return e.parse(await o.json())}async function bM(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"POST"});if(o.status===401&&Nh(),!o.ok)throw new Ro(t,o.status);return e.parse(await o.json())}async function Ju(e){let t=await fetch(e,{credentials:"same-origin",method:"DELETE"});if(t.status===401&&Nh(),!t.ok)throw new Ro(e,t.status)}async function rt(e,t,n){let o=await fetch(t,{credentials:"same-origin",...n?{signal:n}:{}});if(o.status===401)throw Nh(),new Ro(t,o.status);if(!o.ok)throw new Ro(t,o.status);return e.parse(await o.json())}var $h=5*6e4,kD=5*6e4,zne=1e3;function Yne(e,t=Date.now()){if(!e)return kD;let n=Date.parse(e);if(!Number.isFinite(n))return kD;let o=Math.max(0,t-n);return Math.max(zne,kD-o)}function hM(){return st({queryKey:["dashboard","core"],queryFn:async({signal:e})=>{let[t,n]=await Promise.all([rt(gM,"/api/me",e),rt(mM,"/api/config",e)]);return{config:n,me:t}},retry:!1,staleTime:$h})}function Kne(){return st({queryKey:["dashboard","plugins"],queryFn:({signal:e})=>rt(hD,"/api/plugins",e),retry:!1,staleTime:$h})}function BM(){return st({queryKey:["dashboard","plugin-user-pages"],queryFn:({signal:e})=>rt(pM,"/api/user-pages",e),retry:!1,staleTime:$h})}function yM(e){return st({queryKey:["dashboard","conversations",e??"all"],queryFn:({signal:t})=>{let n=new URLSearchParams;e&&n.set("actorEmail",e);let o=n.toString();return rt(rD,`/api/conversations${o?`?${o}`:""}`,t)},retry:!1})}function CM(e){return st({enabled:e,queryKey:["dashboard","tasks"],queryFn:({signal:t})=>rt(fD,"/api/tasks",t),retry:!1})}function wM(e,t,n){return st({enabled:e&&!!(t&&n),queryKey:["dashboard","tasks",t,n,"executions"],queryFn:({signal:o})=>rt(bD,`/api/tasks/${t}/${encodeURIComponent(n)}/executions`,o),retry:!1})}function EM(){return st({queryKey:["dashboard","people"],queryFn:({signal:e})=>rt(AD,"/api/people",e),retry:!1})}function kM(e){return st({enabled:!!e,queryKey:["dashboard","people",e],queryFn:async({signal:t})=>rt(sD,`/api/people/${encodeURIComponent(e)}`,t),retry:!1})}function QM(e){return st({enabled:e,queryKey:["dashboard","personal-spend"],queryFn:({signal:t})=>rt(cD,"/api/people/me/spend",t),refetchInterval:t=>Yne(t.state.data?.generatedAt),retry:!1,staleTime:0})}function IM(){return st({queryKey:["dashboard","locations"],queryFn:({signal:e})=>rt(uD,"/api/locations",e),retry:!1})}function _M(e){return st({enabled:!!e,queryKey:["dashboard","locations",e],queryFn:async({signal:t})=>rt(dD,`/api/locations/${encodeURIComponent(e)}`,t),retry:!1})}function Jne(){return st({queryKey:["dashboard","skills"],queryFn:({signal:e})=>rt(yD,"/api/skills",e),retry:!1,staleTime:$h})}function Wne(){return st({queryKey:["dashboard","plugin-reports"],queryFn:({signal:e})=>rt(wD,"/api/plugin-reports",e),retry:!1})}function vM(e){let t=Kne(),n=st({queryKey:["dashboard","conversation-stats"],queryFn:({signal:i})=>rt(iD,"/api/conversations/stats",i),retry:!1}),o=Jne(),a=Wne();return{data:t.data&&o.data?{...e,conversationStatsError:!!n.error,...n.data?{conversationStats:n.data}:{},conversationStatsLoading:n.isPending,pluginReportsError:!!a.error,...a.data?{pluginReports:a.data}:{},pluginReportsLoading:a.isPending,plugins:t.data,skills:o.data}:void 0,error:t.error??o.error,isPending:t.isPending||o.isPending}}var xM="Junior";function it(){return typeof window>"u"?xM:window.__JUNIOR_DASHBOARD_AGENT_NAME__?.trim()||xM}function DM(e=it()){return e.endsWith("s")?`${e}'`:`${e}'s`}var QD=w(Q(),1);function Mh(){return(0,QD.jsx)("div",{className:"relative grid size-10 shrink-0 select-none place-items-center overflow-visible",children:(0,QD.jsx)("img",{alt:"",className:"relative size-11 max-w-none -translate-y-0.5 object-contain opacity-90 drop-shadow-[0_0_7px_rgba(255,255,255,0.16)]",draggable:!1,src:"/_junior/dashboard/avatar.png"})})}var FM=["relative","overflow-hidden","bg-white/15","before:absolute","before:inset-0","before:content-['']","before:bg-[linear-gradient(90deg,#ff4d6d,#ffb703,#56f39a,#4cc9f0,#9b5de5,#ff4d6d)]","before:bg-[length:200%_100%]","before:animate-[junior-rainbow-flow_1.2s_linear_infinite]","motion-reduce:before:animate-none"].join(" ");function S(...e){return e.filter(Boolean).join(" ")}var xt="mx-auto w-full min-w-0 max-w-screen-xl",EA="text-dashboard-text-muted hover:text-dashboard-text";var kA=w(Q(),1);function Qe(e){return(0,kA.jsx)("div",{className:S(xt,"grid min-h-[calc(100vh-5rem)] place-items-center px-4 py-8 md:px-8"),children:(0,kA.jsxs)("section",{className:"grid w-full max-w-lg grid-cols-[auto_minmax(0,1fr)] items-center gap-3 rounded-lg border border-white/15 bg-dashboard-surface-raised p-4",children:[(0,kA.jsx)(Mh,{}),(0,kA.jsxs)("div",{children:[(0,kA.jsx)("div",{className:"font-bold",children:e.label}),(0,kA.jsx)("div",{"aria-label":e.label,className:`${FM} mt-3 h-1.5 w-full`,role:"progressbar"})]})]})})}var Gh=w(Y(),1);var jh=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();var SM=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var LM=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());var ID=e=>{let t=LM(e);return t.charAt(0).toUpperCase()+t.slice(1)};var yp=w(Y(),1);var Ph={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var RM=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Wu=w(Y(),1);var Zne=(0,Wu.createContext)({});var NM=()=>(0,Wu.useContext)(Zne);var $M=(0,yp.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:o,className:a="",children:r,iconNode:i,...A},s)=>{let{size:c=24,strokeWidth:u=2,absoluteStrokeWidth:l=!1,color:p="currentColor",className:g=""}=NM()??{},f=o??l?Number(n??u)*24/Number(t??c):n??u;return(0,yp.createElement)("svg",{ref:s,...Ph,width:t??c??Ph.width,height:t??c??Ph.height,stroke:e??p,strokeWidth:f,className:jh("lucide",g,a),...!r&&!RM(A)&&{"aria-hidden":"true"},...A},[...i.map(([B,y])=>(0,yp.createElement)(B,y)),...Array.isArray(r)?r:[r]])});var P=(e,t)=>{let n=(0,Gh.forwardRef)(({className:o,...a},r)=>(0,Gh.createElement)($M,{ref:r,iconNode:t,className:jh(`lucide-${SM(ID(e))}`,`lucide-${e}`,o),...a}));return n.displayName=ID(e),n};var Vne=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],No=P("activity",Vne);var Xne=[["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"}]],Cp=P("archive",Xne);var eae=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],wp=P("arrow-down-to-line",eae);var tae=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Br=P("arrow-left",tae);var nae=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ep=P("arrow-right",nae);var aae=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],kp=P("bookmark",aae);var oae=[["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"}]],yr=P("bot",oae);var rae=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],Ua=P("boxes",rae);var iae=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],Cr=P("braces",iae);var Aae=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],bi=P("brain-circuit",Aae);var sae=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],_s=P("brain",sae);var cae=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],Qp=P("calendar-clock",cae);var uae=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Ip=P("calendar",uae);var dae=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],vs=P("check",dae);var lae=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_p=P("chevron-down",lae);var pae=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],hi=P("chevron-right",pae);var gae=[["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"}]],$o=P("circle-alert",gae);var mae=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],vp=P("circle-dashed",mae);var fae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],xp=P("circle-dot",fae);var bae=[["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"}]],QA=P("circle-x",bae);var hae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],Mo=P("clock-3",hae);var Bae=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],xs=P("coins",Bae);var yae=[["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"}]],Ds=P("copy",yae);var Cae=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],IA=P("database",Cae);var wae=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],Dp=P("diff",wae);var Eae=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],uo=P("earth",Eae);var kae=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Fp=P("external-link",kae);var Qae=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Sp=P("git-merge",Qae);var Iae=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Lp=P("hash",Iae);var _ae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Rp=P("info",_ae);var vae=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],jo=P("key-round",vae);var xae=[["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"}]],Np=P("lightbulb",xae);var Dae=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],$p=P("link",Dae);var Fae=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],Bi=P("lock-keyhole",Fae);var Sae=[["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"}]],Mp=P("log-out",Sae);var Lae=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Fs=P("map-pin",Lae);var Rae=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],jp=P("map-pinned",Rae);var Nae=[["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"}]],Ta=P("message-square",Nae);var $ae=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Pp=P("minimize-2",$ae);var Mae=[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]],Gp=P("radio-tower",Mae);var jae=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yi=P("search",jae);var Pae=[["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"}]],Hp=P("send",Pae);var Gae=[["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"}]],zn=P("sparkles",Gae);var Hae=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],Up=P("timer",Hae);var Uae=[["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"}]],Po=P("trash-2",Uae);var Tae=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Qa=P("triangle-alert",Tae);var Oae=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Ia=P("user-round",Oae);var qae=[["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"}]],Ss=P("users",qae);var zae=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Go=P("x",zae);var Fr=w(Y(),1);var _D=Object.defineProperty,Yae=Object.getOwnPropertyDescriptor,Kae=Object.getOwnPropertyNames,Jae=Object.prototype.hasOwnProperty,jM=(e,t)=>{let n={};for(var o in e)_D(n,o,{get:e[o],enumerable:!0});return t||_D(n,Symbol.toStringTag,{value:"Module"}),n},MM=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Kae(t),r=0,i=a.length,A;r<i;r++)A=a[r],!Jae.call(e,A)&&A!==n&&_D(e,A,{get:(s=>t[s]).bind(null,A),enumerable:!(o=Yae(t,A))||o.enumerable});return e},PM=(e,t,n)=>(MM(e,t,"default"),n&&MM(n,t,"default"));var FD={};F(FD,{createOnigurumaEngine:()=>loe,getDefaultWasmLoader:()=>doe,loadWasm:()=>HM,setDefaultWasmLoader:()=>uoe});var DD=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Wae(){return 2147483648}function Zae(){return typeof performance<"u"?performance.now():Date.now()}var Vae=(e,t)=>e+(t-e%t)%t;async function Xae(e){let t,n,o={};function a(g){n=g,o.HEAPU8=new Uint8Array(g),o.HEAPU32=new Uint32Array(g)}function r(g,f,B){o.HEAPU8.copyWithin(g,f,f+B)}function i(g){try{return t.grow(g-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function A(g){let f=o.HEAPU8.length;g=g>>>0;let B=Wae();if(g>B)return!1;for(let y=1;y<=4;y*=2){let m=f*(1+.2/y);m=Math.min(m,g+100663296);let h=Math.min(B,Vae(Math.max(g,m),65536));if(i(h))return!0}return!1}let s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(g,f,B=1024){let y=f+B,m=f;for(;g[m]&&!(m>=y);)++m;if(m-f>16&&g.buffer&&s)return s.decode(g.subarray(f,m));let h="";for(;f<m;){let b=g[f++];if(!(b&128)){h+=String.fromCharCode(b);continue}let C=g[f++]&63;if((b&224)===192){h+=String.fromCharCode((b&31)<<6|C);continue}let E=g[f++]&63;if((b&240)===224?b=(b&15)<<12|C<<6|E:b=(b&7)<<18|C<<12|E<<6|g[f++]&63,b<65536)h+=String.fromCharCode(b);else{let x=b-65536;h+=String.fromCharCode(55296|x>>10,56320|x&1023)}}return h}function u(g,f){return g?c(o.HEAPU8,g,f):""}let l={emscripten_get_now:Zae,emscripten_memcpy_big:r,emscripten_resize_heap:A,fd_write:()=>0};async function p(){let f=await e({env:l,wasi_snapshot_preview1:l});t=f.memory,a(t.buffer),Object.assign(o,f),o.UTF8ToString=u}return await p(),o}var eoe=Object.defineProperty,toe=(e,t,n)=>t in e?eoe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fn=(e,t,n)=>toe(e,typeof t!="symbol"?t+"":t,n),kn=null;function noe(e){throw new DD(e.UTF8ToString(e.getLastOnigError()))}var Uh=class e{constructor(t){fn(this,"utf16Length"),fn(this,"utf8Length"),fn(this,"utf16Value"),fn(this,"utf8Value"),fn(this,"utf16OffsetToUtf8"),fn(this,"utf8OffsetToUtf16");let n=t.length,o=e._utf8ByteLength(t),a=o!==n,r=a?new Uint32Array(n+1):null;a&&(r[n]=o);let i=a?new Uint32Array(o+1):null;a&&(i[o]=n);let A=new Uint8Array(o),s=0;for(let c=0;c<n;c++){let u=t.charCodeAt(c),l=u,p=!1;if(u>=55296&&u<=56319&&c+1<n){let g=t.charCodeAt(c+1);g>=56320&&g<=57343&&(l=(u-55296<<10)+65536|g-56320,p=!0)}a&&(r[c]=s,p&&(r[c+1]=s),l<=127?i[s+0]=c:l<=2047?(i[s+0]=c,i[s+1]=c):l<=65535?(i[s+0]=c,i[s+1]=c,i[s+2]=c):(i[s+0]=c,i[s+1]=c,i[s+2]=c,i[s+3]=c)),l<=127?A[s++]=l:l<=2047?(A[s++]=192|(l&1984)>>>6,A[s++]=128|(l&63)>>>0):l<=65535?(A[s++]=224|(l&61440)>>>12,A[s++]=128|(l&4032)>>>6,A[s++]=128|(l&63)>>>0):(A[s++]=240|(l&1835008)>>>18,A[s++]=128|(l&258048)>>>12,A[s++]=128|(l&4032)>>>6,A[s++]=128|(l&63)>>>0),p&&c++}this.utf16Length=n,this.utf8Length=o,this.utf16Value=t,this.utf8Value=A,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=i}static _utf8ByteLength(t){let n=0;for(let o=0,a=t.length;o<a;o++){let r=t.charCodeAt(o),i=r,A=!1;if(r>=55296&&r<=56319&&o+1<a){let s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(r-55296<<10)+65536|s-56320,A=!0)}i<=127?n+=1:i<=2047?n+=2:i<=65535?n+=3:n+=4,A&&o++}return n}createString(t){let n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}},Th=class wr{constructor(t){if(fn(this,"id",++wr.LAST_ID),fn(this,"_onigBinding"),fn(this,"content"),fn(this,"utf16Length"),fn(this,"utf8Length"),fn(this,"utf16OffsetToUtf8"),fn(this,"utf8OffsetToUtf16"),fn(this,"ptr"),!kn)throw new DD("Must invoke loadWasm first.");this._onigBinding=kn,this.content=t;let n=new Uh(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!wr._sharedPtrInUse?(wr._sharedPtr||(wr._sharedPtr=kn.omalloc(1e4)),wr._sharedPtrInUse=!0,kn.HEAPU8.set(n.utf8Value,wr._sharedPtr),this.ptr=wr._sharedPtr):this.ptr=n.createString(kn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===wr._sharedPtr?wr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};fn(Th,"LAST_ID",0);fn(Th,"_sharedPtr",0);fn(Th,"_sharedPtrInUse",!1);var GM=Th,xD=class{constructor(t){if(fn(this,"_onigBinding"),fn(this,"_ptr"),!kn)throw new DD("Must invoke loadWasm first.");let n=[],o=[];for(let A=0,s=t.length;A<s;A++){let c=new Uh(t[A]);n[A]=c.createString(kn),o[A]=c.utf8Length}let a=kn.omalloc(4*t.length);kn.HEAPU32.set(n,a/4);let r=kn.omalloc(4*t.length);kn.HEAPU32.set(o,r/4);let i=kn.createOnigScanner(a,r,t.length);for(let A=0,s=t.length;A<s;A++)kn.ofree(n[A]);kn.ofree(r),kn.ofree(a),i===0&&noe(kn),this._onigBinding=kn,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,o){let a=0;if(typeof o=="number"&&(a=o),typeof t=="string"){t=new GM(t);let r=this._findNextMatchSync(t,n,!1,a);return t.dispose(),r}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,o,a){let r=this._onigBinding,i=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(i===0)return null;let A=r.HEAPU32,s=i/4,c=A[s++],u=A[s++],l=[];for(let p=0;p<u;p++){let g=t.convertUtf8OffsetToUtf16(A[s++]),f=t.convertUtf8OffsetToUtf16(A[s++]);l[p]={start:g,end:f,length:f-g}}return{index:c,captureIndices:l}}};function aoe(e){return typeof e.instantiator=="function"}function ooe(e){return typeof e.default=="function"}function roe(e){return typeof e.data<"u"}function ioe(e){return typeof Response<"u"&&e instanceof Response}function Aoe(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}var Hh;function HM(e){if(Hh)return Hh;async function t(){kn=await Xae(async n=>{let o=e;return o=await o,typeof o=="function"&&(o=await o(n)),typeof o=="function"&&(o=await o(n)),aoe(o)?o=await o.instantiator(n):ooe(o)?o=await o.default(n):(roe(o)&&(o=o.data),ioe(o)?typeof WebAssembly.instantiateStreaming=="function"?o=await soe(o)(n):o=await coe(o)(n):Aoe(o)?o=await vD(o)(n):o instanceof WebAssembly.Module?o=await vD(o)(n):"default"in o&&o.default instanceof WebAssembly.Module&&(o=await vD(o.default)(n))),"instance"in o&&(o=o.instance),"exports"in o&&(o=o.exports),o})}return Hh=t(),Hh}function vD(e){return t=>WebAssembly.instantiate(e,t)}function soe(e){return t=>WebAssembly.instantiateStreaming(e,t)}function coe(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var UM;function uoe(e){UM=e}function doe(){return UM}async function loe(e){return e&&await HM(e),{createScanner(t){return new xD(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new GM(t)}}}var SD=jM({});PM(SD,FD);var dP=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Promise.resolve().then(()=>(OM(),TM)))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Promise.resolve().then(()=>(zM(),qM)))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(KM(),YM)))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>Promise.resolve().then(()=>(WM(),JM)))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>Promise.resolve().then(()=>(VM(),ZM)))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:(()=>Promise.resolve().then(()=>(ej(),XM)))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Promise.resolve().then(()=>(nj(),tj)))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Promise.resolve().then(()=>(oj(),aj)))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Promise.resolve().then(()=>(ij(),rj)))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Promise.resolve().then(()=>(sj(),Aj)))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(uj(),cj)))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(lj(),dj)))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(gj(),pj)))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Promise.resolve().then(()=>(fj(),mj)))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(hj(),bj)))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Promise.resolve().then(()=>(yj(),Bj)))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Promise.resolve().then(()=>(wj(),Cj)))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Promise.resolve().then(()=>(kj(),Ej)))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Promise.resolve().then(()=>(Ij(),Qj)))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Promise.resolve().then(()=>(vj(),_j)))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Promise.resolve().then(()=>(Dj(),xj)))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Promise.resolve().then(()=>(Sj(),Fj)))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Promise.resolve().then(()=>(Rj(),Lj)))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Promise.resolve().then(()=>($j(),Nj)))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Promise.resolve().then(()=>(jj(),Mj)))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Promise.resolve().then(()=>(Gj(),Pj)))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Promise.resolve().then(()=>(Uj(),Hj)))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>Promise.resolve().then(()=>(Oj(),Tj)))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>Promise.resolve().then(()=>(zj(),qj)))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Promise.resolve().then(()=>(Kj(),Yj)))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Promise.resolve().then(()=>(Wj(),Jj)))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Promise.resolve().then(()=>(Vj(),Zj)))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Promise.resolve().then(()=>(e7(),Xj)))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Promise.resolve().then(()=>(n7(),t7)))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Promise.resolve().then(()=>(o7(),a7)))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(i7(),r7)))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Promise.resolve().then(()=>(s7(),A7)))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Promise.resolve().then(()=>(u7(),c7)))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Promise.resolve().then(()=>(l7(),d7)))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Promise.resolve().then(()=>(g7(),p7)))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(f7(),m7)))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Promise.resolve().then(()=>(h7(),b7)))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Promise.resolve().then(()=>(y7(),B7)))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Promise.resolve().then(()=>(w7(),C7)))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>Promise.resolve().then(()=>(k7(),E7)))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Promise.resolve().then(()=>(I7(),Q7)))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Promise.resolve().then(()=>(v7(),_7)))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Promise.resolve().then(()=>(D7(),x7)))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Promise.resolve().then(()=>(S7(),F7)))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Promise.resolve().then(()=>(R7(),L7)))},{id:"red",displayName:"Red",type:"dark",import:(()=>Promise.resolve().then(()=>($7(),N7)))},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:(()=>Promise.resolve().then(()=>(j7(),M7)))},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:(()=>Promise.resolve().then(()=>(G7(),P7)))},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:(()=>Promise.resolve().then(()=>(U7(),H7)))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(O7(),T7)))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Promise.resolve().then(()=>(z7(),q7)))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Promise.resolve().then(()=>(K7(),Y7)))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(W7(),J7)))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Promise.resolve().then(()=>(V7(),Z7)))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Promise.resolve().then(()=>(eP(),X7)))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Promise.resolve().then(()=>(nP(),tP)))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Promise.resolve().then(()=>(oP(),aP)))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Promise.resolve().then(()=>(iP(),rP)))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(sP(),AP)))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Promise.resolve().then(()=>(uP(),cP)))}],lP=Object.fromEntries(dP.map(e=>[e.id,e.import]));var qe=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function kre(e){return UD(e)}function UD(e){return Array.isArray(e)?Qre(e):e instanceof RegExp?e:typeof e=="object"?Ire(e):e}function Qre(e){let t=[];for(let n=0,o=e.length;n<o;n++)t[n]=UD(e[n]);return t}function Ire(e){let t={};for(let n in e)t[n]=UD(e[n]);return t}function CP(e,...t){return t.forEach(n=>{for(let o in n)e[o]=n[o]}),e}function wP(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?wP(e.substring(0,e.length-1)):e.substr(~t+1)}var LD=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Oh=class{static hasCaptures(e){return e===null?!1:(LD.lastIndex=0,LD.test(e))}static replaceCaptures(e,t,n){return e.replace(LD,(o,a,r,i)=>{let A=n[parseInt(a||r,10)];if(A){let s=t.substring(A.start,A.end);for(;s[0]===".";)s=s.substring(1);switch(i){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return o})}};function EP(e,t){return e<t?-1:e>t?1:0}function kP(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let a=0;a<n;a++){let r=EP(e[a],t[a]);if(r!==0)return r}return 0}return n-o}function pP(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function QP(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var IP=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},qp=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(xre(e),t)}static createFromParsedTheme(e,t){return Fre(e,t)}_cachedMatchRoot=new IP(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,o=this._cachedMatchRoot.get(t).find(a=>_re(e.parent,a.parentScopes));return o?new _P(o.fontStyle,o.foreground,o.background):null}},RD=class qh{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(let o of n)t=new qh(t,o);return t}static from(...t){let n=null;for(let o=0;o<t.length;o++)n=new qh(n,t[o]);return n}push(t){return new qh(this,t)}getSegments(){let t=this,n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let n=[],o=this;for(;o&&o!==t;)n.push(o.scopeName),o=o.parent;return o===t?n.reverse():void 0}};function _re(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let o=t[n],a=!1;if(o===">"){if(n===t.length-1)return!1;o=t[++n],a=!0}for(;e&&!vre(e.scopeName,o);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function vre(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var _P=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function xre(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],o=0;for(let a=0,r=t.length;a<r;a++){let i=t[a];if(!i.settings)continue;let A;if(typeof i.scope=="string"){let l=i.scope;l=l.replace(/^[,]+/,""),l=l.replace(/[,]+$/,""),A=l.split(",")}else Array.isArray(i.scope)?A=i.scope:A=[""];let s=-1;if(typeof i.settings.fontStyle=="string"){s=0;let l=i.settings.fontStyle.split(" ");for(let p=0,g=l.length;p<g;p++)switch(l[p]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let c=null;typeof i.settings.foreground=="string"&&pP(i.settings.foreground)&&(c=i.settings.foreground);let u=null;typeof i.settings.background=="string"&&pP(i.settings.background)&&(u=i.settings.background);for(let l=0,p=A.length;l<p;l++){let f=A[l].trim().split(" "),B=f[f.length-1],y=null;f.length>1&&(y=f.slice(0,f.length-1),y.reverse()),n[o++]=new Dre(B,y,a,s,c,u)}}return n}var Dre=class{constructor(e,t,n,o,a,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=o,this.foreground=a,this.background=r}},Nn=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Nn||{});function Fre(e,t){e.sort((s,c)=>{let u=EP(s.scope,c.scope);return u!==0||(u=kP(s.parentScopes,c.parentScopes),u!==0)?u:s.index-c.index});let n=0,o="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let s=e.shift();s.fontStyle!==-1&&(n=s.fontStyle),s.foreground!==null&&(o=s.foreground),s.background!==null&&(a=s.background)}let r=new Sre(t),i=new _P(n,r.getId(o),r.getId(a)),A=new Rre(new $D(0,null,-1,0,0),[]);for(let s=0,c=e.length;s<c;s++){let u=e[s];A.insert(0,u.scope,u.parentScopes,u.fontStyle,r.getId(u.foreground),r.getId(u.background))}return new qp(r,i,A)}var Sre=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Lre=Object.freeze([]),$D=class vP{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,o,a,r){this.scopeDepth=t,this.parentScopes=n||Lre,this.fontStyle=o,this.foreground=a,this.background=r}clone(){return new vP(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let o=0,a=t.length;o<a;o++)n[o]=t[o].clone();return n}acceptOverwrite(t,n,o,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),o!==0&&(this.foreground=o),a!==0&&(this.background=a)}},Rre=class MD{constructor(t,n=[],o={}){this._mainRule=t,this._children=o,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let o=0,a=0;for(;t.parentScopes[o]===">"&&o++,n.parentScopes[a]===">"&&a++,!(o>=t.parentScopes.length||a>=n.parentScopes.length);){let r=n.parentScopes[a].length-t.parentScopes[o].length;if(r!==0)return r;o++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),a,r;if(o===-1?(a=t,r=""):(a=t.substring(0,o),r=t.substring(o+1)),this._children.hasOwnProperty(a))return this._children[a].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(MD._cmpBySpecificity),n}insert(t,n,o,a,r,i){if(n===""){this._doInsertHere(t,o,a,r,i);return}let A=n.indexOf("."),s,c;A===-1?(s=n,c=""):(s=n.substring(0,A),c=n.substring(A+1));let u;this._children.hasOwnProperty(s)?u=this._children[s]:(u=new MD(this._mainRule.clone(),$D.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,c,o,a,r,i)}_doInsertHere(t,n,o,a,r){if(n===null){this._mainRule.acceptOverwrite(t,o,a,r);return}for(let i=0,A=this._rulesWithParentScopes.length;i<A;i++){let s=this._rulesWithParentScopes[i];if(kP(s.parentScopes,n)===0){s.acceptOverwrite(t,o,a,r);return}}o===-1&&(o=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),r===0&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new $D(t,n,o,a,r))}},Rs=class lo{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let n=lo.getLanguageId(t),o=lo.getTokenType(t),a=lo.getFontStyle(t),r=lo.getForeground(t),i=lo.getBackground(t);console.log({languageId:n,tokenType:o,fontStyle:a,foreground:r,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,o,a,r,i,A){let s=lo.getLanguageId(t),c=lo.getTokenType(t),u=lo.containsBalancedBrackets(t)?1:0,l=lo.getFontStyle(t),p=lo.getForeground(t),g=lo.getBackground(t);return n!==0&&(s=n),o!==8&&(c=o),a!==null&&(u=a?1:0),r!==-1&&(l=r),i!==0&&(p=i),A!==0&&(g=A),(s<<0|c<<8|u<<10|l<<11|p<<15|g<<24)>>>0}};function Yh(e,t){let n=[],o=Nre(e),a=o.next();for(;a!==null;){let s=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=o.next()}let c=i();if(n.push({matcher:c,priority:s}),a!==",")break;a=o.next()}return n;function r(){if(a==="-"){a=o.next();let s=r();return c=>!!s&&!s(c)}if(a==="("){a=o.next();let s=A();return a===")"&&(a=o.next()),s}if(gP(a)){let s=[];do s.push(a),a=o.next();while(gP(a));return c=>t(s,c)}return null}function i(){let s=[],c=r();for(;c;)s.push(c),c=r();return u=>s.every(l=>l(u))}function A(){let s=[],c=i();for(;c&&(s.push(c),a==="|"||a===",");){do a=o.next();while(a==="|"||a===",");c=i()}return u=>s.some(l=>l(u))}}function gP(e){return!!e&&!!e.match(/[\w\.:]+/)}function Nre(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let o=n[0];return n=t.exec(e),o}}}function xP(e){typeof e.dispose=="function"&&e.dispose()}var zp=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},$re=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Mre=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},jre=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new zp(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Mre;for(let n of e)Pre(n,this.initialScopeName,this.repo,t);for(let n of t.references)if(n instanceof zp){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Pre(e,t,n,o){let a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let r=n.lookup(t);e instanceof zp?zh({baseGrammar:r,selfGrammar:a},o):jD(e.ruleName,{baseGrammar:r,selfGrammar:a,repository:a.repository},o);let i=n.injections(e.scopeName);if(i)for(let A of i)o.add(new zp(A))}function jD(e,t,n){if(t.repository&&t.repository[e]){let o=t.repository[e];Kh([o],t,n)}}function zh(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Kh(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Kh(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Kh(e,t,n){for(let o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);let a=o.repository?CP({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&Kh(o.patterns,{...t,repository:a},n);let r=o.include;if(!r)continue;let i=DP(r);switch(i.kind){case 0:zh({...t,selfGrammar:t.baseGrammar},n);break;case 1:zh(t,n);break;case 2:jD(i.ruleName,{...t,repository:a},n);break;case 3:case 4:let A=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(A){let s={baseGrammar:t.baseGrammar,selfGrammar:A,repository:a};i.kind===4?jD(i.ruleName,s,n):zh(s,n)}else i.kind===4?n.add(new $re(i.scopeName,i.ruleName)):n.add(new zp(i.scopeName));break}}}var Gre=class{kind=0},Hre=class{kind=1},Ure=class{constructor(e){this.ruleName=e}kind=2},Tre=class{constructor(e){this.scopeName=e}kind=3},Ore=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function DP(e){if(e==="$base")return new Gre;if(e==="$self")return new Hre;let t=e.indexOf("#");if(t===-1)return new Tre(e);if(t===0)return new Ure(e.substring(1));{let n=e.substring(0,t),o=e.substring(t+1);return new Ore(n,o)}}var qre=/\\(\d+)/,mP=/\\(\d+)/g;var zre=-1,FP=-2;var Jp=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Oh.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=Oh.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${wP(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Oh.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Oh.replaceCaptures(this._contentName,e,t)}},Yre=class extends Jp{retokenizeCapturedWithRuleId;constructor(e,t,n,o,a){super(e,t,n,o),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,o){throw new Error("Not supported!")}},Kre=class extends Jp{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,null),this._match=new Yp(o,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Kp,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},fP=class extends Jp{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,o),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Kp,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},PD=class extends Jp{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a,r,i,A,s,c){super(e,t,n,o),this._begin=new Yp(a,this.id),this.beginCaptures=r,this._end=new Yp(i||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=A,this.applyEndPatternLast=s||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Kp;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Jh=class extends Jp{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,o,a,r,i,A,s){super(e,t,n,o),this._begin=new Yp(a,this.id),this.beginCaptures=r,this.whileCaptures=A,this._while=new Yp(i,FP),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Kp;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Kp,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},SP=class Yn{static createCaptureRule(t,n,o,a,r){return t.registerRule(i=>new Yre(n,i,o,a,r))}static getCompiledRuleId(t,n,o){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new Kre(t.$vscodeTextmateLocation,t.id,t.name,t.match,Yn._compileCaptures(t.captures,n,o));if(typeof t.begin>"u"){t.repository&&(o=CP({},o,t.repository));let r=t.patterns;return typeof r>"u"&&t.include&&(r=[{include:t.include}]),new fP(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Yn._compilePatterns(r,n,o))}return t.while?new Jh(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Yn._compileCaptures(t.beginCaptures||t.captures,n,o),t.while,Yn._compileCaptures(t.whileCaptures||t.captures,n,o),Yn._compilePatterns(t.patterns,n,o)):new PD(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Yn._compileCaptures(t.beginCaptures||t.captures,n,o),t.end,Yn._compileCaptures(t.endCaptures||t.captures,n,o),t.applyEndPatternLast,Yn._compilePatterns(t.patterns,n,o))}),t.id}static _compileCaptures(t,n,o){let a=[];if(t){let r=0;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let A=parseInt(i,10);A>r&&(r=A)}for(let i=0;i<=r;i++)a[i]=null;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let A=parseInt(i,10),s=0;t[i].patterns&&(s=Yn.getCompiledRuleId(t[i],n,o)),a[A]=Yn.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,s)}}return a}static _compilePatterns(t,n,o){let a=[];if(t)for(let r=0,i=t.length;r<i;r++){let A=t[r],s=-1;if(A.include){let c=DP(A.include);switch(c.kind){case 0:case 1:s=Yn.getCompiledRuleId(o[A.include],n,o);break;case 2:let u=o[c.ruleName];u&&(s=Yn.getCompiledRuleId(u,n,o));break;case 3:case 4:let l=c.scopeName,p=c.kind===4?c.ruleName:null,g=n.getExternalGrammar(l,o);if(g)if(p){let f=g.repository[p];f&&(s=Yn.getCompiledRuleId(f,n,g.repository))}else s=Yn.getCompiledRuleId(g.repository.$self,n,g.repository);break}}else s=Yn.getCompiledRuleId(A,n,o);if(s!==-1){let c=n.getRule(s),u=!1;if((c instanceof fP||c instanceof PD||c instanceof Jh)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;a.push(s)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Yp=class LP{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){let o=t.length,a=0,r=[],i=!1;for(let A=0;A<o;A++)if(t.charAt(A)==="\\"&&A+1<o){let c=t.charAt(A+1);c==="z"?(r.push(t.substring(a,A)),r.push("$(?!\\n)(?<!\\n)"),a=A+2):(c==="A"||c==="G")&&(i=!0),A++}this.hasAnchor=i,a===0?this.source=t:(r.push(t.substring(a,o)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=qre.test(this.source):this.hasBackReferences=!1}clone(){return new LP(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let o=n.map(a=>t.substring(a.start,a.end));return mP.lastIndex=0,this.source.replace(mP,(a,r)=>QP(o[parseInt(r,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],o=[],a=[],r,i,A,s;for(r=0,i=this.source.length;r<i;r++)A=this.source.charAt(r),t[r]=A,n[r]=A,o[r]=A,a[r]=A,A==="\\"&&r+1<i&&(s=this.source.charAt(r+1),s==="A"?(t[r+1]="\uFFFF",n[r+1]="\uFFFF",o[r+1]="A",a[r+1]="A"):s==="G"?(t[r+1]="\uFFFF",n[r+1]="G",o[r+1]="\uFFFF",a[r+1]="G"):(t[r+1]=s,n[r+1]=s,o[r+1]=s,a[r+1]=s),r++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:o.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Kp=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new bP(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let o=this._items.map(a=>a.resolveAnchors(t,n));return new bP(e,o,this._items.map(a=>a.ruleId))}},bP=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
76
76
|
`)}findNextMatchSync(e,t,n){let o=this.scanner.findNextMatchSync(e,t,n);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},ND=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Jre=class GD{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new ND(t,8),this._embeddedLanguagesMatcher=new Wre(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?GD._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ND(0,0);_getBasicScopeAttributes=new IP(t=>{let n=this._scopeToLanguage(t),o=this._toStandardTokenType(t);return new ND(n,o)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let n=t.match(GD.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Wre=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([n,o])=>QP(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},kDe={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},RP=!1,hP=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function NP(e,t,n,o,a,r,i,A){let s=t.content.length,c=!1,u=-1;if(i){let g=Zre(e,t,n,o,a,r);a=g.stack,o=g.linePos,n=g.isFirstLine,u=g.anchorPosition}let l=Date.now();for(;!c;){if(A!==0&&Date.now()-l>A)return new hP(a,!0);p()}return new hP(a,!1);function p(){let g=Vre(e,t,n,o,a,u);if(!g){r.produce(a,s),c=!0;return}let f=g.captureIndices,B=g.matchedRuleId,y=f&&f.length>0?f[0].end>o:!1;if(B===zre){let m=a.getRule(e);r.produce(a,f[0].start),a=a.withContentNameScopesList(a.nameScopesList),Tp(e,t,n,a,r,m.endCaptures,f),r.produce(a,f[0].end);let h=a;if(a=a.parent,u=h.getAnchorPos(),!y&&h.getEnterPos()===o){a=h,r.produce(a,s),c=!0;return}}else{let m=e.getRule(B);r.produce(a,f[0].start);let h=a,b=m.getName(t.content,f),C=a.contentNameScopesList.pushAttributed(b,e);if(a=a.push(B,o,u,f[0].end===s,null,C,C),m instanceof PD){let E=m;Tp(e,t,n,a,r,E.beginCaptures,f),r.produce(a,f[0].end),u=f[0].end;let x=E.getContentName(t.content,f),k=C.pushAttributed(x,e);if(a=a.withContentNameScopesList(k),E.endHasBackReferences&&(a=a.withEndRule(E.getEndWithResolvedBackReferences(t.content,f))),!y&&h.hasSameRuleAs(a)){a=a.pop(),r.produce(a,s),c=!0;return}}else if(m instanceof Jh){let E=m;Tp(e,t,n,a,r,E.beginCaptures,f),r.produce(a,f[0].end),u=f[0].end;let x=E.getContentName(t.content,f),k=C.pushAttributed(x,e);if(a=a.withContentNameScopesList(k),E.whileHasBackReferences&&(a=a.withEndRule(E.getWhileWithResolvedBackReferences(t.content,f))),!y&&h.hasSameRuleAs(a)){a=a.pop(),r.produce(a,s),c=!0;return}}else if(Tp(e,t,n,a,r,m.captures,f),r.produce(a,f[0].end),a=a.pop(),!y){a=a.safePop(),r.produce(a,s),c=!0;return}}f[0].end>o&&(o=f[0].end,n=!1)}}function Zre(e,t,n,o,a,r){let i=a.beginRuleCapturedEOL?0:-1,A=[];for(let s=a;s;s=s.pop()){let c=s.getRule(e);c instanceof Jh&&A.push({rule:c,stack:s})}for(let s=A.pop();s;s=A.pop()){let{ruleScanner:c,findOptions:u}=tie(s.rule,e,s.stack.endRule,n,o===i),l=c.findNextMatchSync(t,o,u);if(l){if(l.ruleId!==FP){a=s.stack.pop();break}l.captureIndices&&l.captureIndices.length&&(r.produce(s.stack,l.captureIndices[0].start),Tp(e,t,n,s.stack,r,s.rule.whileCaptures,l.captureIndices),r.produce(s.stack,l.captureIndices[0].end),i=l.captureIndices[0].end,l.captureIndices[0].end>o&&(o=l.captureIndices[0].end,n=!1))}else{a=s.stack.pop();break}}return{stack:a,linePos:o,anchorPosition:i,isFirstLine:n}}function Vre(e,t,n,o,a,r){let i=Xre(e,t,n,o,a,r),A=e.getInjections();if(A.length===0)return i;let s=eie(A,e,t,n,o,a,r);if(!s)return i;if(!i)return s;let c=i.captureIndices[0].start,u=s.captureIndices[0].start;return u<c||s.priorityMatch&&u===c?s:i}function Xre(e,t,n,o,a,r){let i=a.getRule(e),{ruleScanner:A,findOptions:s}=$P(i,e,a.endRule,n,o===r),c=A.findNextMatchSync(t,o,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function eie(e,t,n,o,a,r,i){let A=Number.MAX_VALUE,s=null,c,u=0,l=r.contentNameScopesList.getScopeNames();for(let p=0,g=e.length;p<g;p++){let f=e[p];if(!f.matcher(l))continue;let B=t.getRule(f.ruleId),{ruleScanner:y,findOptions:m}=$P(B,t,null,o,a===i),h=y.findNextMatchSync(n,a,m);if(!h)continue;let b=h.captureIndices[0].start;if(!(b>=A)&&(A=b,s=h.captureIndices,c=h.ruleId,u=f.priority,A===a))break}return s?{priorityMatch:u===-1,captureIndices:s,matchedRuleId:c}:null}function $P(e,t,n,o,a){if(RP){let i=e.compile(t,n),A=MP(o,a);return{ruleScanner:i,findOptions:A}}return{ruleScanner:e.compileAG(t,n,o,a),findOptions:0}}function tie(e,t,n,o,a){if(RP){let i=e.compileWhile(t,n),A=MP(o,a);return{ruleScanner:i,findOptions:A}}return{ruleScanner:e.compileWhileAG(t,n,o,a),findOptions:0}}function MP(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function Tp(e,t,n,o,a,r,i){if(r.length===0)return;let A=t.content,s=Math.min(r.length,i.length),c=[],u=i[0].end;for(let l=0;l<s;l++){let p=r[l];if(p===null)continue;let g=i[l];if(g.length===0)continue;if(g.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=g.start;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?a.produceFromScopes(c[c.length-1].scopes,g.start):a.produce(o,g.start),p.retokenizeCapturedWithRuleId){let B=p.getName(A,i),y=o.contentNameScopesList.pushAttributed(B,e),m=p.getContentName(A,i),h=y.pushAttributed(m,e),b=o.push(p.retokenizeCapturedWithRuleId,g.start,-1,!1,null,y,h),C=e.createOnigString(A.substring(0,g.end));NP(e,C,n&&g.start===0,g.start,b,a,!1,0),xP(C);continue}let f=p.getName(A,i);if(f!==null){let y=(c.length>0?c[c.length-1].scopes:o.contentNameScopesList).pushAttributed(f,e);c.push(new nie(y,g.end))}}for(;c.length>0;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var nie=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function aie(e,t,n,o,a,r,i,A){return new rie(e,t,n,o,a,r,i,A)}function BP(e,t,n,o,a){let r=Yh(t,Wh),i=SP.getCompiledRuleId(n,o,a.repository);for(let A of r)e.push({debugSelector:t,matcher:A.matcher,ruleId:i,grammar:a,priority:A.priority})}function Wh(e,t){if(t.length<e.length)return!1;let n=0;return e.every(o=>{for(let a=n;a<t.length;a++)if(oie(t[a],o))return n=a+1,!0;return!1})}function oie(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var rie=class{constructor(e,t,n,o,a,r,i,A){if(this._rootScopeName=e,this.balancedBracketSelectors=r,this._onigLib=A,this._basicScopeAttributesProvider=new Jre(n,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=yP(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(let s of Object.keys(a)){let c=Yh(s,Wh);for(let u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:a[s]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,o=e.lookup(n);if(o){let a=o.injections;if(a)for(let i in a)BP(t,i,a[i],this,o);let r=this._grammarRepository.injections(n);r&&r.forEach(i=>{let A=this.getExternalGrammar(i);if(A){let s=A.injectionSelector;s&&BP(t,s,A,this,A)}})}return t.sort((a,r)=>a.priority-r.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=yP(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let o=this._tokenize(e,t,!1,n);return{tokens:o.lineTokens.getResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}tokenizeLine2(e,t,n=0){let o=this._tokenize(e,t,!0,n);return{tokens:o.lineTokens.getBinaryResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}_tokenize(e,t,n,o){this._rootId===-1&&(this._rootId=SP.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===HD.NULL){a=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),l=Rs.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),p=this.getRule(this._rootId).getName(null,null),g;p?g=Op.createRootAndLookUpScopeName(p,l,this):g=Op.createRoot("unknown",l),t=new HD(null,this._rootId,-1,-1,!1,null,g,g)}else a=!1,t.reset();e=e+`
|
|
77
77
|
`;let r=this.createOnigString(e),i=r.content.length,A=new Aie(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=NP(this,r,a,0,t,A,!0,o);return xP(r),{lineLength:i,lineTokens:A,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function yP(e,t){return e=kre(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Op=class Er{constructor(t,n,o){this.parent=t,this.scopePath=n,this.tokenAttributes=o}static fromExtension(t,n){let o=t,a=t?.scopePath??null;for(let r of n)a=RD.push(a,r.scopeNames),o=new Er(o,a,r.encodedTokenAttributes);return o}static createRoot(t,n){return new Er(null,new RD(null,t),n)}static createRootAndLookUpScopeName(t,n,o){let a=o.getMetadataForScope(t),r=new RD(null,t),i=o.themeProvider.themeMatch(r),A=Er.mergeAttributes(n,a,i);return new Er(null,r,A)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Er.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,o){let a=-1,r=0,i=0;return o!==null&&(a=o.fontStyle,r=o.foregroundId,i=o.backgroundId),Rs.set(t,n.languageId,n.tokenType,null,a,r,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Er._pushAttributed(this,t,n);let o=t.split(/ /g),a=this;for(let r of o)a=Er._pushAttributed(a,r,n);return a}static _pushAttributed(t,n,o){let a=o.getMetadataForScope(n),r=t.scopePath.push(n),i=o.themeProvider.themeMatch(r),A=Er.mergeAttributes(t.tokenAttributes,a,i);return new Er(t,r,A)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){let n=[],o=this;for(;o&&o!==t;)n.push({encodedTokenAttributes:o.tokenAttributes,scopeNames:o.scopePath.getExtensionIfDefined(o.parent?.scopePath??null)}),o=o.parent;return o===t?n.reverse():void 0}},HD=class Ls{constructor(t,n,o,a,r,i,A,s){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=r,this.endRule=i,this.nameScopesList=A,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=o,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new Ls(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Ls._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Op.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Ls._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,o,a,r,i,A){return new Ls(this,t,n,o,a,r,i,A)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){let t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Ls(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let o=Op.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Ls(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,o,Op.fromExtension(o,n.contentNameScopesList))}},iie=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Yh(n,Wh).map(o=>o.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Yh(n,Wh).map(o=>o.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Aie=class{constructor(e,t,n,o){this.balancedBracketSelectors=o,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let o=e?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let r=e?.getScopeNames()??[];for(let i of this._tokenTypeOverrides)i.matcher(r)&&(o=Rs.set(o,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(r))}if(a&&(o=Rs.set(o,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===o){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(o),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let o=0,a=this._binaryTokens.length;o<a;o++)n[o]=this._binaryTokens[o];return n}},sie=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,o,a){if(!this._grammars.has(e)){let r=this._rawGrammars.get(e);if(!r)return null;this._grammars.set(e,aie(e,r,t,n,o,a,this,this._onigLib))}return this._grammars.get(e)}},jP=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new sie(qp.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(qp.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new iie(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,o,a){let r=new jre(this._syncRegistry,e);for(;r.Q.length>0;)r.Q.map(i=>this._loadSingleGrammar(i.scopeName)),r.processQueue();return this._grammarForScopeName(e,t,n,o,a)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,o=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,o)}_grammarForScopeName(e,t=0,n=null,o=null,a=null){return this._syncRegistry.grammarForScopeName(e,t,n,o,a)}},Zh=HD.NULL;function Zp(e,t){let n=typeof e=="string"?{}:{...e.colorReplacements},o=typeof e=="string"?e:e.name;for(let[a,r]of Object.entries(t?.colorReplacements||{}))typeof r=="string"?n[a]=r:a===o&&Object.assign(n,r);return n}function Ci(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function TP(e){return Array.isArray(e)?e:[e]}async function TD(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Vp(e){return!e||["plaintext","txt","text","plain"].includes(e)}function OD(e){return e==="ansi"||Vp(e)}function Xp(e){return e==="none"}function qD(e){return Xp(e)}var cie=/(\r?\n)/g;function Zu(e,t=!1){if(e.length===0)return[["",0]];let n=e.split(cie),o=0,a=[];for(let r=0;r<n.length;r+=2){let i=t?n[r]+(n[r+1]||""):n[r];a.push([i,o]),o+=n[r].length,o+=n[r+1]?.length||0}return a}var PP={light:"#333333",dark:"#bbbbbb"},GP={light:"#fffffe",dark:"#1e1e1e"},HP="__shiki_resolved";function Vh(e){if(e?.[HP])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:o}=t;if(!n||!o){let A=t.settings?t.settings.find(s=>!s.name&&!s.scope):void 0;A?.settings?.foreground&&(o=A.settings.foreground),A?.settings?.background&&(n=A.settings.background),!o&&t?.colors?.["editor.foreground"]&&(o=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),o||(o=t.type==="light"?PP.light:PP.dark),n||(n=t.type==="light"?GP.light:GP.dark),t.fg=o,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0,r=new Map;function i(A){if(r.has(A))return r.get(A);a+=1;let s=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${s}`]?i(A):(r.set(A,s),s)}t.settings=t.settings.map(A=>{let s=A.settings?.foreground&&!A.settings.foreground.startsWith("#"),c=A.settings?.background&&!A.settings.background.startsWith("#");if(!s&&!c)return A;let u={...A,settings:{...A.settings}};if(s){let l=i(A.settings.foreground);t.colorReplacements[l]=A.settings.foreground,u.settings.foreground=l}if(c){let l=i(A.settings.background);t.colorReplacements[l]=A.settings.background,u.settings.background=l}return u});for(let A of Object.keys(t.colors||{}))if((A==="editor.foreground"||A==="editor.background"||A.startsWith("terminal.ansi"))&&!t.colors[A]?.startsWith("#")){let s=i(t.colors[A]);t.colorReplacements[s]=t.colors[A],t.colors[A]=s}return Object.defineProperty(t,HP,{enumerable:!1,writable:!1,value:!0}),t}async function OP(e){return[...new Set((await Promise.all(e.filter(t=>!OD(t)).map(async t=>await TD(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function qP(e){return(await Promise.all(e.map(async t=>qD(t)?null:Vh(await TD(t))))).filter(t=>!!t)}function zP(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new qe(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var uie=class extends jP{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,o={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=o,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Vh(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=qp.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=zP(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(a=>a.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let o=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(o.name=e.name,this._resolvedGrammars.set(e.name,o),e.aliases&&e.aliases.forEach(a=>{this._alias[a]=e.name}),this._loadedLanguagesCache=null,t.size)for(let a of t)this._resolvedGrammars.delete(a.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(a.scopeName),this._syncRegistry?._grammars?.delete(a.scopeName),this.loadLanguage(this._langMap.get(a.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let o of e)this.resolveEmbeddedLanguages(o);let t=[...this._langGraph.entries()],n=t.filter(([o,a])=>!a);if(n.length){let o=t.filter(([a,r])=>r?(r.embeddedLanguages||r.embeddedLangs)?.some(i=>n.map(([A])=>A).includes(i)):!1).filter(a=>!n.includes(a));throw new qe(`Missing languages ${n.map(([a])=>`\`${a}\``).join(", ")}, required by ${o.map(([a])=>`\`${a}\``).join(", ")}`)}for(let[o,a]of t)this._resolver.addLanguage(a);for(let[o,a]of t)this.loadLanguage(a)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let n of t)this._langGraph.set(n,this._langMap.get(n))}},die=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let o=1;o<=t.length;o++){let a=t.slice(0,o).join(".");n=[...n,...this._injections.get(a)||[]]}return n}},Wp=0;function zD(e){Wp+=1,e.warnings!==!1&&Wp>=10&&Wp%10===0&&console.warn(`[Shiki] ${Wp} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new qe("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),o=(e.themes||[]).flat(1).map(Vh),a=new uie(new die(e.engine,n),o,n,e.langAlias),r;function i(h){return zP(h,e.langAlias)}function A(h){y();let b=a.getGrammar(typeof h=="string"?h:h.name);if(!b)throw new qe(`Language \`${h}\` not found, you may need to load it first`);return b}function s(h){if(h==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();let b=a.getTheme(h);if(!b)throw new qe(`Theme \`${h}\` not found, you may need to load it first`);return b}function c(h){y();let b=s(h);return r!==h&&(a.setTheme(b),r=h),{theme:b,colorMap:a.getColorMap()}}function u(){return y(),a.getLoadedThemes()}function l(){return y(),a.getLoadedLanguages()}function p(...h){y(),a.loadLanguages(h.flat(1))}async function g(...h){return p(await OP(h))}function f(...h){y();for(let b of h.flat(1))a.loadTheme(b)}async function B(...h){return y(),f(await qP(h))}function y(){if(t)throw new qe("Shiki instance has been disposed")}function m(){t||(t=!0,a.dispose(),Wp-=1)}return{setTheme:c,getTheme:s,getLanguage:A,getLoadedThemes:u,getLoadedLanguages:l,resolveLangAlias:i,loadLanguage:g,loadLanguageSync:p,loadTheme:B,loadThemeSync:f,dispose:m,[Symbol.dispose]:m}}async function YD(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,o]=await Promise.all([qP(e.themes||[]),OP(e.langs||[]),e.engine]);return zD({...e,themes:t,langs:n,engine:o})}var YP=new WeakMap;function eg(e,t){YP.set(e,t)}function Vu(e){return YP.get(e)}var Xh=class KP{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new KP(Object.fromEntries(TP(n).map(o=>[o,Zh])),t)}constructor(...t){if(t.length===2){let[n,o]=t;this.lang=o,this._stacks=n}else{let[n,o,a]=t;this.lang=o,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return lie(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function lie(e){let t=[],n=new Set;function o(a){if(n.has(a))return;n.add(a);let r=a?.nameScopesList?.scopeName;r&&t.push(r),a.parent&&o(a.parent)}return o(e),t}function pie(e,t){if(!(e instanceof Xh))throw new qe("Invalid grammar state");return e.getInternalStack(t)}var gie=/,/,mie=/ /;function KD(e,t,n={}){let{theme:o=e.getLoadedThemes()[0]}=n;if(Vp(e.resolveLangAlias(n.lang||"text"))||Xp(o))return Zu(t).map(A=>[{content:A[0],offset:A[1]}]);let{theme:a,colorMap:r}=e.setTheme(o),i=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==i.name)throw new qe(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${i.name}"`);if(!n.grammarState.themes.includes(a.name))throw new qe(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return WP(t,i,a,r,n)}function JP(...e){if(e.length===2)return Vu(e[1]);let[t,n,o={}]=e,{lang:a="text",theme:r=t.getLoadedThemes()[0]}=o;if(Vp(a)||Xp(r))throw new qe("Plain language does not have grammar state");if(a==="ansi")throw new qe("ANSI language does not have grammar state");let{theme:i,colorMap:A}=t.setTheme(r),s=t.getLanguage(a);return new Xh(JD(n,s,i,A,o).stateStack,s.name,i.name)}function WP(e,t,n,o,a){let r=JD(e,t,n,o,a),i=new Xh(r.stateStack,t.name,n.name);return eg(r.tokens,i),r.tokens}function JD(e,t,n,o,a){let r=Zp(n,a),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:A=500}=a,s=Zu(e),c=a.grammarState?pie(a.grammarState,n.name)??Zh:a.grammarContextCode!=null?JD(a.grammarContextCode,t,n,o,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:Zh,u=[],l=[];for(let p=0,g=s.length;p<g;p++){let[f,B]=s[p];if(f===""){u=[],l.push([]);continue}if(i>0&&f.length>=i){u=[],l.push([{content:f,offset:B,color:"",fontStyle:0}]);continue}let y,m,h;a.includeExplanation&&(y=t.tokenizeLine(f,c,A),m=y.tokens,h=0);let b=t.tokenizeLine2(f,c,A),C=b.tokens.length/2;for(let E=0;E<C;E++){let x=b.tokens[2*E],k=E+1<C?b.tokens[2*E+2]:f.length;if(x===k)continue;let R=b.tokens[2*E+1],T=Ci(o[Rs.getForeground(R)],r),J=Rs.getFontStyle(R),Re={content:f.substring(x,k),offset:B+x,color:T,fontStyle:J};if(a.includeExplanation){let ue=[];if(a.includeExplanation!=="scopeName")for(let we of n.settings){let He;switch(typeof we.scope){case"string":He=we.scope.split(gie).map(Ct=>Ct.trim());break;case"object":He=we.scope;break;default:continue}ue.push({settings:we,selectors:He.map(Ct=>Ct.split(mie))})}Re.explanation=[];let Se=0;for(;x+Se<k;){let we=m[h],He=f.substring(we.startIndex,we.endIndex);Se+=He.length,Re.explanation.push({content:He,scopes:a.includeExplanation==="scopeName"?fie(we.scopes):bie(ue,we.scopes)}),h+=1}}u.push(Re)}l.push(u),u=[],c=b.ruleStack}return{tokens:l,stateStack:c}}function fie(e){return e.map(t=>({scopeName:t}))}function bie(e,t){let n=[];for(let o=0,a=t.length;o<a;o++){let r=t[o];n[o]={scopeName:r,themeMatches:Bie(e,r,t.slice(0,o))}}return n}function UP(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function hie(e,t,n){if(!UP(e.at(-1),t))return!1;let o=e.length-2,a=n.length-1;for(;o>=0&&a>=0;)UP(e[o],n[a])&&(o-=1),a-=1;return o===-1}function Bie(e,t,n){let o=[];for(let{selectors:a,settings:r}of e)for(let i of a)if(hie(i,t,n)){o.push(r);break}return o}function eB(e,t,n,o=KD){let a=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),r=a.map(c=>{let u=o(e,t,{...n,theme:c.theme});return{tokens:u,state:Vu(u),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),i=yie(...r.map(c=>c.tokens)),A=i[0].map((c,u)=>c.map((l,p)=>{let g={content:l.content,variants:{},offset:l.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=l.explanation),i.forEach((f,B)=>{let{content:y,explanation:m,offset:h,...b}=f[u][p];g.variants[a[B].color]=b}),g})),s=r[0].state?new Xh(Object.fromEntries(r.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),r[0].state.lang):void 0;return s&&eg(A,s),A}function yie(...e){let t=e.map(()=>[]),n=e.length;for(let o=0;o<e[0].length;o++){let a=e.map(s=>s[o]),r=t.map(()=>[]);t.forEach((s,c)=>s.push(r[c]));let i=a.map(()=>0),A=a.map(s=>s[0]);for(;A.every(s=>s);){let s=Math.min(...A.map(c=>c.content.length));for(let c=0;c<n;c++){let u=A[c];u.content.length===s?(r[c].push(u),i[c]+=1,A[c]=a[c][i[c]]):(r[c].push({...u,content:u.content.slice(0,s)}),A[c]={...u,content:u.content.slice(s),offset:u.offset+s})}}}return t}var ZP=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var wi=class{constructor(t,n,o){this.normal=n,this.property=t,o&&(this.space=o)}};wi.prototype.normal={};wi.prototype.property={};wi.prototype.space=void 0;function WD(e,t){let n={},o={};for(let a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new wi(n,o,t)}function tg(e){return e.toLowerCase()}var Qn=class{constructor(t,n){this.attribute=n,this.property=t}};Qn.prototype.attribute="";Qn.prototype.booleanish=!1;Qn.prototype.boolean=!1;Qn.prototype.commaOrSpaceSeparated=!1;Qn.prototype.commaSeparated=!1;Qn.prototype.defined=!1;Qn.prototype.mustUseProperty=!1;Qn.prototype.number=!1;Qn.prototype.overloadedBoolean=!1;Qn.prototype.property="";Qn.prototype.spaceSeparated=!1;Qn.prototype.space=void 0;var ng={};F(ng,{boolean:()=>le,booleanish:()=>Gt,commaOrSpaceSeparated:()=>_a,commaSeparated:()=>_A,number:()=>G,overloadedBoolean:()=>tB,spaceSeparated:()=>ze});var Cie=0,le=Ns(),Gt=Ns(),tB=Ns(),G=Ns(),ze=Ns(),_A=Ns(),_a=Ns();function Ns(){return 2**++Cie}var ZD=Object.keys(ng),$s=class extends Qn{constructor(t,n,o,a){let r=-1;if(super(t,n),VP(this,"space",a),typeof o=="number")for(;++r<ZD.length;){let i=ZD[r];VP(this,ZD[r],(o&ng[i])===ng[i])}}};$s.prototype.defined=!0;function VP(e,t,n){n&&(e[t]=n)}function po(e){let t={},n={};for(let[o,a]of Object.entries(e.properties)){let r=new $s(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(r.mustUseProperty=!0),t[o]=r,n[tg(o)]=o,n[tg(r.attribute)]=o}return new wi(t,n,e.space)}var VD=po({properties:{ariaActiveDescendant:null,ariaAtomic:Gt,ariaAutoComplete:null,ariaBusy:Gt,ariaChecked:Gt,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:ze,ariaCurrent:null,ariaDescribedBy:ze,ariaDetails:null,ariaDisabled:Gt,ariaDropEffect:ze,ariaErrorMessage:null,ariaExpanded:Gt,ariaFlowTo:ze,ariaGrabbed:Gt,ariaHasPopup:null,ariaHidden:Gt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ze,ariaLevel:G,ariaLive:null,ariaModal:Gt,ariaMultiLine:Gt,ariaMultiSelectable:Gt,ariaOrientation:null,ariaOwns:ze,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:Gt,ariaReadOnly:Gt,ariaRelevant:null,ariaRequired:Gt,ariaRoleDescription:ze,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:Gt,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function nB(e,t){return t in e?e[t]:t}function aB(e,t){return nB(e,t.toLowerCase())}var XP=po({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_A,acceptCharset:ze,accessKey:ze,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:ze,autoFocus:le,autoPlay:le,blocking:ze,capture:null,charSet:null,checked:le,cite:null,className:ze,cols:G,colSpan:null,content:null,contentEditable:Gt,controls:le,controlsList:ze,coords:G|_A,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:tB,draggable:Gt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:ze,height:G,hidden:tB,high:G,href:null,hrefLang:null,htmlFor:ze,httpEquiv:ze,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:ze,itemRef:ze,itemScope:le,itemType:ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,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:le,optimum:G,pattern:null,ping:ze,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:ze,required:le,reversed:le,rows:G,rowSpan:G,sandbox:ze,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:Gt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:Gt,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ze,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:Gt,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:G,security:null,unselectable:null},space:"html",transform:aB});var eG=po({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",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:_a,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:ze,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:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,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:_A,g2:_A,glyphName:_A,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:_a,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:G,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:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_a,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_a,rev:_a,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_a,requiredFeatures:_a,requiredFonts:_a,requiredFormats:_a,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:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:_a,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_a,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_a,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:nB});var XD=po({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()}});var e1=po({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:aB});var t1=po({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var wie=/[A-Z]/g,tG=/-[a-z]/g,Eie=/^data[-\w.:]+$/i;function n1(e,t){let n=tg(t),o=t,a=Qn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Eie.test(t)){if(t.charAt(4)==="-"){let r=t.slice(5).replace(tG,Qie);o="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{let r=t.slice(4);if(!tG.test(r)){let i=r.replace(wie,kie);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=$s}return new a(o,t)}function kie(e){return"-"+e.toLowerCase()}function Qie(e){return e.charAt(1).toUpperCase()}var nG=WD([VD,XP,XD,e1,t1],"html"),oB=WD([VD,eG,XD,e1,t1],"svg");var aG={}.hasOwnProperty;function oG(e,t){let n=t||{};function o(a,...r){let i=o.invalid,A=o.handlers;if(a&&aG.call(a,e)){let s=String(a[e]);i=aG.call(A,s)?A[s]:o.unknown}if(i)return i.call(this,a,...r)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}var Iie=/["&'<>`]/g,_ie=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vie=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,xie=/[|\\{}()[\]^$+*?.]/g,rG=new WeakMap;function iG(e,t){if(e=e.replace(t.subset?Die(t.subset):Iie,o),t.subset||t.escapeOnly)return e;return e.replace(_ie,n).replace(vie,o);function n(a,r,i){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,i.charCodeAt(r+2),t)}function o(a,r,i){return t.format(a.charCodeAt(0),i.charCodeAt(r+1),t)}}function Die(e){let t=rG.get(e);return t||(t=Fie(e),rG.set(e,t)),t}function Fie(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(xie,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var Sie=/[\dA-Fa-f]/;function AG(e,t,n){let o="&#x"+e.toString(16).toUpperCase();return n&&t&&!Sie.test(String.fromCharCode(t))?o:o+";"}var Lie=/\d/;function sG(e,t,n){let o="&#"+String(e);return n&&t&&!Lie.test(String.fromCharCode(t))?o:o+";"}var cG=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var rB={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var uG=["cent","copy","divide","gt","lt","not","para","times"];var dG={}.hasOwnProperty,a1={},iB;for(iB in rB)dG.call(rB,iB)&&(a1[rB[iB]]=iB);var Rie=/[^\dA-Za-z]/;function lG(e,t,n,o){let a=String.fromCharCode(e);if(dG.call(a1,a)){let r=a1[a],i="&"+r;return n&&cG.includes(r)&&!uG.includes(r)&&(!o||t&&t!==61&&Rie.test(String.fromCharCode(t)))?i:i+";"}return""}function pG(e,t,n){let o=AG(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=lG(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){let r=sG(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function Ei(e,t){return iG(e,Object.assign({format:pG},t))}var Nie=/^>|^->|<!--|-->|--!>|<!-$/g,$ie=[">"],Mie=["<",">"];function gG(e,t,n,o){return o.settings.bogusComments?"<?"+Ei(e.value,Object.assign({},o.settings.characterReferences,{subset:$ie}))+">":"<!--"+e.value.replace(Nie,a)+"-->";function a(r){return Ei(r,Object.assign({},o.settings.characterReferences,{subset:Mie}))}}function mG(e,t,n,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function o1(e,t){let n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(t);for(;a!==-1;)o++,a=n.indexOf(t,a+t.length);return o}function fG(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function bG(e){return e.join(" ").trim()}var jie=/[ \t\n\f\r]/g;function Ms(e){return typeof e=="object"?e.type==="text"?hG(e.value):!1:hG(e)}function hG(e){return e.replace(jie,"")===""}var Wt=BG(1),r1=BG(-1),Pie=[];function BG(e){return t;function t(n,o,a){let r=n?n.children:Pie,i=(o||0)+e,A=r[i];if(!a)for(;A&&Ms(A);)i+=e,A=r[i];return A}}var Gie={}.hasOwnProperty;function AB(e){return t;function t(n,o,a){return Gie.call(e,n.tagName)&&e[n.tagName](n,o,a)}}var ag=AB({body:Uie,caption:i1,colgroup:i1,dd:zie,dt:qie,head:i1,html:Hie,li:Oie,optgroup:Yie,option:Kie,p:Tie,rp:yG,rt:yG,tbody:Wie,td:CG,tfoot:Zie,th:CG,thead:Jie,tr:Vie});function i1(e,t,n){let o=Wt(n,t,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&Ms(o.value.charAt(0)))}function Hie(e,t,n){let o=Wt(n,t);return!o||o.type!=="comment"}function Uie(e,t,n){let o=Wt(n,t);return!o||o.type!=="comment"}function Tie(e,t,n){let o=Wt(n,t);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Oie(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&o.tagName==="li"}function qie(e,t,n){let o=Wt(n,t);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function zie(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function yG(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Yie(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&o.tagName==="optgroup"}function Kie(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function Jie(e,t,n){let o=Wt(n,t);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function Wie(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function Zie(e,t,n){return!Wt(n,t)}function Vie(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&o.tagName==="tr"}function CG(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}var wG=AB({body:tAe,colgroup:nAe,head:eAe,html:Xie,tbody:aAe});function Xie(e){let t=Wt(e,-1);return!t||t.type!=="comment"}function eAe(e){let t=new Set;for(let o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(t.has(o.tagName))return!1;t.add(o.tagName)}let n=e.children[0];return!n||n.type==="element"}function tAe(e){let t=Wt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ms(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function nAe(e,t,n){let o=r1(n,t),a=Wt(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&ag(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function aAe(e,t,n){let o=r1(n,t),a=Wt(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&ag(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}var sB={name:[[`
|
|
78
78
|
\f\r &/=>`.split(""),`
|
|
@@ -132,7 +132,7 @@ Findings:
|
|
|
132
132
|
- the notifier stores real newlines
|
|
133
133
|
- the dashboard preserves single breaks as \`<br>\`
|
|
134
134
|
|
|
135
|
-
See https://docs.sentry.io for product docs.`,Pq=hy(14).map((e,t)=>({conversations:4+t*5%17,costUsd:.7+t*7%11*.18,date:e,durationMs:9e4+t*41%13*24e3,tokens:18e3+t*17%19*2300})),mge=hy(30).map((e,t)=>({activePeople:4+t*7%13,conversations:18+t*11%31,date:e})),fge=hy(30).map((e,t)=>({date:e,privateConversations:3+t*5%12,publicConversations:12+t*9%28})),bge=hy(70).map((e,t)=>({conversations:t%9===0?0:1+t*7%18,date:e,durationMs:t%9===0?0:45e3+t*13%20*18e3})),ko=Date.UTC(2026,4,1,16),hge=[{description:"Default completed tool with normalized arguments",part:{id:"gallery-search",input:{query:"release regression",limit:25,options:{includeArchived:!1}},name:"searchIssues",output:{matches:3},resultTimestamp:ko+1842,status:"completed",type:"tool_call"},timestamp:ko},{description:"Running webSearch with name-only shimmer",part:{id:"gallery-running",input:{query:"service:checkout status:error",max_results:50},name:"webSearch",status:"running",type:"tool_call"},timestamp:ko+3e3},{description:"Failed tool with warning rail marker",part:{id:"gallery-error",input:{command:"jr-rpc config get github.repo",timeout_ms:1e4},name:"bash",output:{error:"configuration unavailable"},resultTimestamp:ko+6416,status:"error",type:"tool_call"},timestamp:ko+6e3},{description:"Known loadSkill signature",part:{id:"gallery-load-skill",input:{skill_name:"junior-qa"},name:"loadSkill",output:{skill_name:"junior-qa"},resultTimestamp:ko+8105,status:"completed",type:"tool_call"},timestamp:ko+8e3},{description:"Known executeTool signature with nested arguments",part:{id:"gallery-execute-tool",input:{tool_name:"github_search",arguments:{query:"is:pr is:open",limit:25}},name:"executeTool",output:{matches:3},resultTimestamp:ko+10723,status:"completed",type:"tool_call"},timestamp:ko+1e4},{description:"Long generic arguments exercise both truncation limits",part:{id:"gallery-long",input:{project:"payments-checkout-platform",query:"Find every regression associated with the most recent production deployment and include the complete evidence trail",environment:"production",includeResolved:!1,ignoredAfterFourEntries:"not shown in the collapsed preview"},name:"investigateDeploy",output:{channel_id:"C123"},resultTimestamp:ko+13250,status:"completed",type:"tool_call"},timestamp:ko+12e3},{description:"Completed tool without argument or result payloads",part:{id:"gallery-empty",name:"systemTime",status:"completed",type:"tool_call"},timestamp:ko+15e3}];function Gq(){let[e,t]=(0,WF.useState)(30),[n,o]=(0,WF.useState)(!0);return(0,ee.jsxs)("div",{className:S(xt,"grid min-w-0 gap-8 px-4 py-4 sm:px-8 sm:py-8"),children:[(0,ee.jsx)(Dt,{description:"Reusable dashboard fixtures for visual and interaction checks.",title:"Component gallery"}),(0,ee.jsxs)(JF,{description:"Shared actions, filters, metrics, and feedback surfaces.",title:"Foundations",children:[(0,ee.jsx)(cc,{title:"Buttons and controls",children:(0,ee.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,ee.jsxs)(lt,{children:[(0,ee.jsx)(Ds,{"aria-hidden":"true",size:14}),"Copy"]}),(0,ee.jsx)(lt,{disabled:!0,children:"Disabled"}),(0,ee.jsx)(lt,{"aria-label":"Bot action",size:"icon",children:(0,ee.jsx)(yr,{"aria-hidden":"true",size:16})}),(0,ee.jsx)(Ii,{pressed:n,variant:"pill",onClick:()=>o(a=>!a),children:"Toggle"}),(0,ee.jsx)(Ii,{pressed:!n,variant:"text",onClick:()=>o(a=>!a),children:"Alternate"}),(0,ee.jsx)(Xo,{onChange:t,value:e})]})}),(0,ee.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4",children:[(0,ee.jsx)(Qt,{detail:"Across the selected period",icon:Ta,label:"Conversations",value:"1,284"}),(0,ee.jsx)(Qt,{detail:"94% completed successfully",icon:No,label:"Completed",value:"1,207"}),(0,ee.jsx)(Qt,{detail:"Cumulative agent runtime",icon:Up,label:"Runtime",value:"18.4h"}),(0,ee.jsx)(Qt,{detail:"Model and tool workers",icon:yr,label:"Active agents",value:"7"})]}),(0,ee.jsx)(cc,{title:"Metadata and empty state",children:(0,ee.jsxs)("div",{className:"grid gap-4",children:[(0,ee.jsx)(oy,{items:[{content:(0,ee.jsx)(Pr,{tooltip:[{label:"input",value:"12.4k"},{label:"output",value:"3.1k"}],children:"15.5k tokens"}),key:"tokens"},{content:(0,ee.jsx)(Pr,{children:"$0.42"}),key:"cost"},{content:(0,ee.jsx)(Pr,{children:"38s"}),key:"duration"}]}),(0,ee.jsx)(en,{children:"No activity was recorded for this period."})]})})]}),(0,ee.jsxs)(JF,{description:"Production chart components rendered with deterministic fixtures.",title:"Charts",children:[(0,ee.jsx)(by,{days:Pq}),(0,ee.jsx)(fd,{days:Pq}),(0,ee.jsx)(fy,{days:mge}),(0,ee.jsx)(gy,{days:fge}),(0,ee.jsxs)(q,{children:[(0,ee.jsx)(wo,{description:"Daily conversation intensity over ten weeks.",title:"Contribution activity"}),(0,ee.jsx)(my,{days:bge})]})]}),(0,ee.jsxs)(JF,{description:"Markdown, event notifications, and transcript role treatments.",title:"Transcripts",children:[(0,ee.jsx)(cc,{title:"Event notification",children:(0,ee.jsx)(Cg,{compact:!0,text:jq})}),(0,ee.jsx)(cc,{title:"GFM sample",children:(0,ee.jsx)(Cg,{text:pge})}),(0,ee.jsx)(cc,{title:"TranscriptText assistant",children:(0,ee.jsx)(bo,{role:"assistant",text:gge})}),(0,ee.jsx)(cc,{title:"TranscriptText user",children:(0,ee.jsx)(bo,{role:"user",text:jq})}),(0,ee.jsx)(cc,{title:"Tool calls",children:(0,ee.jsx)(Bge,{})})]})]})}function Bge(){return(0,ee.jsxs)("div",{className:"grid min-w-0 grid-cols-[0.875rem_minmax(0,1fr)] gap-3",children:[(0,ee.jsx)("div",{"aria-hidden":"true",className:"flex justify-center",children:(0,ee.jsx)("span",{className:"w-px bg-cyan-300/15"})}),(0,ee.jsxs)("div",{className:"grid min-w-0 gap-3",children:[(0,ee.jsx)("p",{className:"m-0 text-xs leading-relaxed text-dashboard-text-muted",children:"Click any row to compare its collapsed signature with the full arguments and result."}),hge.map(e=>(0,ee.jsxs)("div",{className:"grid min-w-0 gap-1",children:[(0,ee.jsx)("div",{className:"font-mono text-xs uppercase tracking-[0.08em] text-dashboard-text-muted",children:e.description}),(0,ee.jsx)(Pg,{part:e.part,timestamp:e.timestamp})]},e.part.id))]})]})}function JF(e){return(0,ee.jsxs)("section",{className:"grid min-w-0 gap-4",children:[(0,ee.jsxs)("div",{children:[(0,ee.jsx)("h2",{className:"m-0 font-display text-xl font-medium text-dashboard-text",children:e.title}),(0,ee.jsx)("p",{className:"mt-1 mb-0 text-sm text-dashboard-text-muted",children:e.description})]}),e.children]})}function cc(e){return(0,ee.jsxs)(q,{className:"grid min-w-0 gap-3 p-4 sm:p-5",padding:"none",children:[(0,ee.jsx)("div",{className:"border-b border-white/[0.05] pb-3 font-mono text-xs font-medium uppercase tracking-[0.14em] text-dashboard-text-muted",children:e.title}),(0,ee.jsx)("div",{className:"min-w-0",children:e.children})]})}function hy(e){let t=Date.UTC(2026,4,1);return Array.from({length:e},(n,o)=>new Date(t+o*864e5).toISOString().slice(0,10))}var Hq=w(Q(),1);function By(e){return(0,Hq.jsx)("div",{className:S(xt,"grid min-w-0 content-start gap-4 px-4 py-4 sm:gap-6 sm:px-8 sm:py-8",e.className),children:e.children})}var uc="/system/plugins";function Uq(e){let t=new Map(e.plugins.map(n=>[n.name,{...n,reports:[],skills:[]}]));for(let n of e.skills){let o=n.pluginProvider?t.get(n.pluginProvider):void 0;o&&o.skills.push(n)}for(let n of e.reports)t.get(n.pluginName)?.reports.push(n);return[...t.values()].map(n=>({...n,reports:[...n.reports],skills:[...n.skills].sort((o,a)=>o.name.localeCompare(a.name))})).sort((n,o)=>n.displayName.localeCompare(o.displayName))}function yy(e){return`${uc}/${encodeURIComponent(e)}`}function Tq(e){return e.replace(/\/+$/,"")||"/"}var TA=w(Q(),1);function Oq(){let e=({isActive:t})=>S("relative flex h-12 shrink-0 items-center px-3 font-display text-xs font-medium no-underline transition-colors after:absolute after:inset-x-3 after:bottom-0 after:h-0.5 after:transition-colors sm:text-sm",t?"text-dashboard-text after:bg-cyan-300":S("after:bg-transparent hover:bg-white/[0.025]",EA));return(0,TA.jsx)("div",{className:"border-b border-white/[0.06] bg-white/[0.018]",children:(0,TA.jsxs)("nav",{"aria-label":"System navigation",className:S(xt,"flex min-w-0 gap-1 overflow-x-auto px-4 [scrollbar-width:none] md:px-8 [&::-webkit-scrollbar]:hidden"),children:[(0,TA.jsx)(Ca,{className:e,end:!0,to:"/system",children:"Overview"}),(0,TA.jsx)(Ca,{className:e,to:"/system/people",children:"People"}),(0,TA.jsx)(Ca,{className:e,to:"/system/locations",children:"Locations"}),(0,TA.jsx)(Ca,{className:e,to:uc,children:"Plugins"})]})})}var Gg=w(Q(),1);function OA(e){return(0,Gg.jsxs)("div",{className:"min-w-0",children:[(0,Gg.jsx)(Oq,{}),(0,Gg.jsx)(By,{children:e.children})]})}var Gn=w(Q(),1);function qq(e){let t=Hr(240),n=Math.max(1,...e.days.map(r=>r.conversations)),o=t.plotWidth/Math.max(1,e.days.length),a=Math.max(4,Math.min(20,o*.55));return(0,Gn.jsxs)(q,{children:[(0,Gn.jsx)(wo,{description:"Daily persisted conversations for this location.",title:"Conversation activity",trailing:(0,Gn.jsxs)("span",{className:"flex items-center gap-2",children:[(0,Gn.jsx)("span",{className:"size-2 rounded-full bg-cyan-400 shadow-[0_0_12px_rgba(34,211,238,0.5)]"}),"90 days"]})}),(0,Gn.jsx)("div",{className:"px-2 py-3 sm:px-4 sm:py-4",children:(0,Gn.jsxs)("svg",{"aria-label":"Daily conversations for this location",className:"block h-auto min-h-52 w-full overflow-visible",role:"img",viewBox:`0 0 ${t.width} ${t.height}`,children:[(0,Gn.jsx)("defs",{children:(0,Gn.jsxs)("linearGradient",{id:"location-bars",x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,Gn.jsx)("stop",{offset:"0%",stopColor:"#22d3ee"}),(0,Gn.jsx)("stop",{offset:"100%",stopColor:"#f59e0b",stopOpacity:"0.65"})]})}),(0,Gn.jsx)(Ur,{layout:t,maximum:n}),e.days.map((r,i)=>{let A=r.conversations/n*t.plotHeight,s=t.left+i*o+(o-a)/2,c=t.top+t.plotHeight-A;return(0,Gn.jsx)(Ut,{content:(0,Gn.jsx)(Eo,{rows:[["conversations",r.conversations],["active",r.active],["failed",r.failed]]}),label:Wn(r.date),children:(0,Gn.jsx)("rect",{"aria-label":`${Wn(r.date)}: ${r.conversations} conversations, ${r.active} active, ${r.failed} failed`,fill:"url(#location-bars)",height:Math.max(r.conversations?2:0,A),opacity:r.conversations?.9:.18,rx:"2",tabIndex:0,width:a,x:s,y:c})},r.date)}),(0,Gn.jsx)(Tr,{dates:e.days.map(r=>r.date),layout:t,xPosition:r=>t.left+r*o+o/2})]})})]})}var xe=w(Q(),1);function zq(){let e=On(),t=_M(e.locationId);return(0,xe.jsx)(yge,{data:t.data,error:t.error})}function yge(e){return!e.data&&!e.error?(0,xe.jsx)(Qe,{label:"Loading location"}):(0,xe.jsxs)(OA,{children:[e.error?(0,xe.jsx)(q,{padding:"sm",children:(0,xe.jsx)(en,{children:e.data?"Location telemetry refresh failed. Showing cached data.":"Location failed to load."})}):null,e.data?(0,xe.jsx)(Cge,{detail:e.data}):null]})}function Cge(e){let t=e.detail;return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Dt,{description:`${t.provider} public ${t.kind} / ${t.providerDestinationId} / last active ${ed(t.lastSeenAt)}`,title:t.label}),(0,xe.jsxs)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:[(0,xe.jsx)(Qt,{detail:"Persisted conversations",icon:Ta,label:"Conversations",value:ae(t.conversations)}),(0,xe.jsx)(Qt,{detail:"Verified people seen here",icon:Ss,label:"People",value:ae(t.actors.length)}),(0,xe.jsx)(Qt,{detail:"Persisted model usage",icon:xs,label:"Tokens",value:ae(t.tokens??0)}),(0,xe.jsx)(Qt,{detail:"Cumulative conversation runtime",icon:Mo,label:"Runtime",value:(0,xe.jsx)(Oo,{value:t.durationMs})})]}),(0,xe.jsx)(qq,{days:t.activityDays}),(0,xe.jsxs)(q,{children:[(0,xe.jsxs)("div",{className:"flex items-center gap-3 border-b border-white/[0.06] px-4 py-4",children:[(0,xe.jsx)("span",{className:"grid size-9 place-items-center rounded border border-cyan-400/15 bg-cyan-400/[0.06] text-cyan-300",children:(0,xe.jsx)(Fs,{"aria-hidden":"true",size:16})}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("h3",{className:"m-0 font-mono text-xs font-medium uppercase tracking-[0.14em] text-dashboard-text-muted",children:"People seen here"}),(0,xe.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs text-dashboard-text-muted",children:"Verified contributors across persisted conversations."})]})]}),t.actors.length?(0,xe.jsx)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3",children:t.actors.slice(0,9).map((n,o)=>{let a=[n.actor.email,n.actor.slackUserId,n.actor.slackUserName,n.actor.fullName,o].join(":"),r=(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)("div",{className:"truncate font-display text-base font-medium text-dashboard-text",children:n.label}),(0,xe.jsxs)("div",{className:"mt-1 font-mono text-xs text-dashboard-text-muted",children:[ae(n.conversations)," conversations /"," ",(0,xe.jsx)(Oo,{value:n.durationMs})]})]}),i="min-w-0 border-b border-r border-white/[0.055] px-4 py-3.5 transition-colors hover:bg-white/[0.03]";return n.actor.email?(0,xe.jsx)(Fe,{className:`${i} text-inherit no-underline`,to:_r(n.actor.email),children:r},a):(0,xe.jsx)("div",{className:i,children:r},a)})}):(0,xe.jsx)("div",{className:"p-4",children:(0,xe.jsx)(en,{children:"No verified people have been recorded here."})})]})]})}var Iy=w(Y(),1);var bd=w(Q(),1);function Cy(e){return(0,bd.jsxs)("label",{className:"grid h-9 min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center overflow-hidden rounded-lg border border-white/10 bg-white/[0.025] transition-colors hover:border-white/20 focus-within:border-amber-500/35 focus-within:ring-1 focus-within:ring-amber-500/15",children:[(0,bd.jsx)("span",{className:"flex h-full items-center border-r border-white/[0.07] px-2 font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted",children:"Sort"}),(0,bd.jsx)("select",{"aria-label":e.ariaLabel,className:"h-full min-w-0 bg-dashboard-control px-2 font-mono text-xs text-dashboard-text-muted outline-none [color-scheme:dark]",value:e.value,onChange:t=>e.onChange(t.currentTarget.value),children:e.options.map(t=>(0,bd.jsx)("option",{className:"bg-dashboard-control text-dashboard-text",value:t.value,children:t.label},t.value))})]})}var er=w(Q(),1);function Yq(e){let t=e.wideRuntime?"grid-cols-[minmax(14rem,1fr)_repeat(2,minmax(5rem,auto))_minmax(8rem,auto)] max-md:grid-cols-3":"grid-cols-[minmax(14rem,1fr)_repeat(3,minmax(5rem,auto))] max-md:grid-cols-3";return(0,er.jsxs)("div",{"aria-label":"Loading sorted results",className:"min-w-0 animate-pulse",role:"status",children:[Array.from({length:5},(n,o)=>(0,er.jsxs)("div",{"aria-hidden":"true",className:`grid min-w-0 ${t} items-center gap-4 border-b border-white/[0.055] px-4 py-3.5 last:border-b-0 max-md:gap-x-3 max-md:gap-y-4`,children:[(0,er.jsxs)("div",{className:"flex min-w-0 items-center gap-3 max-md:col-span-3",children:[(0,er.jsx)("span",{className:"size-9 shrink-0 rounded bg-white/[0.07]"}),(0,er.jsxs)("div",{className:"grid min-w-0 flex-1 gap-2",children:[(0,er.jsx)("span",{className:"h-3.5 w-2/5 rounded bg-white/[0.08]"}),(0,er.jsx)("span",{className:"h-2.5 w-3/5 rounded bg-white/[0.045]"})]})]}),[0,1,2].map(a=>(0,er.jsx)("span",{className:"h-4 w-10 justify-self-end rounded bg-white/[0.06]"},a))]},o)),(0,er.jsx)("span",{className:"sr-only",children:"Loading sorted results"})]})}var va=w(Q(),1),Kq="grid-cols-[minmax(14rem,1fr)_repeat(2,minmax(5rem,auto))_minmax(8rem,auto)]";function wy(e){return(0,va.jsx)("div",{className:S("grid min-w-0 gap-2 border-b border-white/[0.06] bg-black/15 p-3",e.columnsClassName),children:e.children})}function Ey(e){return e.loading?(0,va.jsx)(Yq,{wideRuntime:!0}):e.empty?(0,va.jsx)("div",{className:"p-4",children:e.empty}):(0,va.jsxs)("div",{"aria-label":e.ariaLabel,className:"min-w-0",children:[(0,va.jsx)("div",{"aria-hidden":"true",className:S("grid items-center gap-4 border-b border-white/[0.06] bg-black/20 px-4 py-2.5 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted max-md:hidden",Kq),children:e.headers.map((t,n)=>(0,va.jsx)("div",{className:n?"justify-self-end":void 0,children:t},t))}),e.children]})}function ky(e){return(0,va.jsx)(Fe,{className:S("group grid min-w-0 items-center gap-4 border-b border-white/[0.055] px-4 py-3.5 text-inherit no-underline transition-colors last:border-b-0 hover:bg-white/[0.035] max-md:grid-cols-3 max-md:gap-x-3 max-md:gap-y-4",Kq),to:e.to,children:e.children})}function Qy(e){return(0,va.jsxs)("div",{className:"flex min-w-0 items-center gap-3 max-md:col-span-3",children:[(0,va.jsx)("span",{className:S("grid size-9 shrink-0 place-items-center rounded border border-white/10 transition-colors",e.iconClassName),children:e.icon}),(0,va.jsxs)("div",{className:"min-w-0",children:[(0,va.jsx)("div",{className:"truncate font-display text-base font-medium leading-tight text-dashboard-text",children:e.title}),e.description?(0,va.jsx)("div",{className:"mt-1 truncate font-mono text-xs leading-tight text-dashboard-text-muted",children:e.description}):null]})]})}var hd=w(Q(),1);function qA(e){return(0,hd.jsxs)("div",{className:"justify-self-end text-right max-md:justify-self-stretch max-md:text-left",children:[(0,hd.jsx)("div",{"aria-hidden":"true",className:"mb-1 hidden font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted max-md:block",children:e.label}),(0,hd.jsxs)("div",{className:"font-display text-xl font-light leading-none text-dashboard-text md:font-mono md:text-xs md:text-dashboard-text-muted",children:[(0,hd.jsxs)("span",{className:"sr-only",children:[e.label,": "]}),e.value]})]})}var yn=w(Q(),1);function Jq(e){return(0,yn.jsxs)(q,{children:[(0,yn.jsx)(wo,{description:`${e.locations.length} of ${e.totalLocations} public locations`,title:"Public directory"}),(0,yn.jsxs)(wy,{columnsClassName:"md:grid-cols-[minmax(14rem,1fr)_minmax(11rem,15rem)]",children:[(0,yn.jsx)(Sr,{label:"Search locations",placeholder:"Search channel name...",value:e.query,onChange:e.onQueryChange}),(0,yn.jsx)(Cy,{ariaLabel:"Sort locations",onChange:t=>e.onSortChange(t),options:[{label:"Most conversations",value:"conversations"},{label:"Recently active",value:"recent"},{label:"Most tokens",value:"tokens"},{label:"Most runtime",value:"runtime"}],value:e.sort})]}),(0,yn.jsx)(Ey,{ariaLabel:"Public location directory results",empty:e.locations.length===0?(0,yn.jsx)(en,{children:"No public locations match this search."}):void 0,headers:["Location","Conversations","Tokens","Runtime"],loading:e.loading,children:e.locations.map(t=>(0,yn.jsxs)(ky,{to:nU(t.id),children:[(0,yn.jsx)(Qy,{description:(0,yn.jsxs)(yn.Fragment,{children:["Last active ",ed(t.lastSeenAt)]}),icon:(0,yn.jsx)(Lp,{"aria-hidden":"true",size:16,strokeWidth:1.8}),iconClassName:"bg-cyan-400/[0.06] text-cyan-300 group-hover:border-cyan-400/25",title:t.label}),(0,yn.jsx)(qA,{label:"Conversations",value:ae(t.conversations)}),(0,yn.jsx)(qA,{label:"Tokens",value:ae(t.tokens??0)}),(0,yn.jsx)(qA,{label:"Runtime",value:(0,yn.jsx)(Oo,{value:t.durationMs})})]},t.id))})]})}var Qo=w(Q(),1);function Wq(e){return(0,Qo.jsx)(q,{className:"opacity-80",padding:"sm",children:(0,Qo.jsxs)("div",{className:"grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3 max-sm:grid-cols-[auto_minmax(0,1fr)]",children:[(0,Qo.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded border border-white/[0.08] bg-white/[0.025] text-dashboard-text-muted",children:(0,Qo.jsx)(Bi,{"aria-hidden":"true",size:15})}),(0,Qo.jsxs)("div",{className:"min-w-0",children:[(0,Qo.jsx)("div",{className:"font-display text-base font-medium text-dashboard-text",children:"Private activity"}),(0,Qo.jsx)("div",{className:"mt-1 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:"DMs, private channels, and unknown visibility stay combined and unlinked."})]}),(0,Qo.jsxs)("div",{className:"text-right max-sm:col-start-2 max-sm:text-left",children:[(0,Qo.jsx)("div",{className:"font-display text-2xl font-light text-dashboard-text",children:ae(e.item.conversations)}),(0,Qo.jsx)("div",{className:"font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:"conversations"})]})]})})}var an=w(Q(),1),wge=["conversations","recent","runtime","tokens"];function Zq(){let e=IM();return(0,an.jsx)(Ege,{data:e.data,error:e.error})}function Ege(e){let[t,n]=(0,Iy.useState)(90),[o,a]=Zs("sort","conversations",wge),r=(0,Iy.useDeferredValue)(o),[i,A,s]=FA();if(!e.data&&!e.error)return(0,an.jsx)(Qe,{label:"Loading locations"});let c=kge(e.data?.locations??[],s,r),u=e.data?.activityDays.slice(-t)??[],l=e.data?.locations.reduce((g,f)=>g+f.conversations,0)??0,p=e.data?.locations.reduce((g,f)=>g+f.durationMs,0)??0;return(0,an.jsxs)(OA,{children:[(0,an.jsx)(Dt,{actions:(0,an.jsx)(Xo,{onChange:n,value:t}),description:e.error&&!e.data?"Locations failed to load.":`See the public channels where ${it()} has been working and how busy they've been.`,title:"Locations"}),e.error?(0,an.jsx)(q,{padding:"sm",children:(0,an.jsx)(en,{children:e.data?"Location telemetry refresh failed. Showing cached data.":"Location telemetry is unavailable. Try refreshing the dashboard."})}):null,e.data?(0,an.jsxs)(an.Fragment,{children:[(0,an.jsxs)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:[(0,an.jsx)(Qt,{detail:"Named public destinations",icon:jp,label:"Public locations",value:ae(e.data.locations.length)}),(0,an.jsx)(Qt,{detail:"Across public destinations",icon:Ta,label:"Conversations",value:ae(l)}),(0,an.jsx)(Qt,{detail:"Cumulative public runtime",icon:Mo,label:"Runtime",value:(0,an.jsx)(Oo,{value:p})}),(0,an.jsx)(Qt,{detail:"Combined to preserve privacy",icon:Bi,label:"Private conversations",value:ae(e.data.privateActivity.conversations)})]}),(0,an.jsx)(gy,{days:u}),(0,an.jsx)(Jq,{loading:o!==r,locations:c,onQueryChange:A,onSortChange:a,query:i,sort:o,totalLocations:e.data.locations.length}),e.data.privateActivity.conversations>0?(0,an.jsx)(Wq,{item:e.data.privateActivity}):null]}):null]})}function kge(e,t,n){let o=t.trim().toLowerCase();return[...o?e.filter(r=>r.label.toLowerCase().includes(o)):e].sort((r,i)=>n==="conversations"?i.conversations-r.conversations:n==="runtime"?i.durationMs-r.durationMs:n==="tokens"?(i.tokens??0)-(r.tokens??0):Date.parse(i.lastSeenAt)-Date.parse(r.lastSeenAt))}var _y=w(Y(),1);var pn=w(Q(),1);function Xq(e){return e.actor.fullName??e.actor.slackUserName??e.actor.email}function Qge(e){return Xq(e)===e.actor.email?void 0:e.actor.email}function Vq(e,t,n){if(e<=0&&t>0)return"unknown";let o=mo(e);return n?o.split(" ").slice(0,n).join(" "):o}function ez(e,t,n){let o=t.trim().toLowerCase();return[...o?e.filter(r=>[r.actor.email,r.actor.fullName,r.actor.slackUserName].some(i=>i?.toLowerCase().includes(o))):e].sort((r,i)=>n==="conversations"?i.conversations-r.conversations:n==="activeDays"?i.activeDays-r.activeDays:n==="runtime"?i.durationMs-r.durationMs:Date.parse(i.lastSeenAt)-Date.parse(r.lastSeenAt))}function tz(e){return(0,pn.jsxs)(q,{children:[(0,pn.jsx)(wo,{description:`${e.people.length} of ${e.totalPeople} verified actors`,title:"People directory"}),(0,pn.jsxs)(wy,{columnsClassName:"md:grid-cols-[minmax(14rem,1fr)_minmax(10rem,14rem)]",children:[(0,pn.jsx)(Sr,{label:"Search people",placeholder:"Search name, email, Slack handle...",value:e.query,onChange:e.onQueryChange}),(0,pn.jsx)(Cy,{ariaLabel:"Sort people",onChange:t=>e.onSortChange(t),options:[{label:"Most conversations",value:"conversations"},{label:"Recently active",value:"recent"},{label:"Most active days",value:"activeDays"},{label:"Most runtime",value:"runtime"}],value:e.sort})]}),(0,pn.jsx)(Ey,{ariaLabel:"People directory results",empty:e.people.length===0?(0,pn.jsx)(en,{children:"No people match this search."}):void 0,headers:["Person","Conversations","Active days","Runtime"],loading:e.loading,children:e.people.map(t=>(0,pn.jsxs)(ky,{to:_r(t.actor.email),children:[(0,pn.jsx)(Qy,{description:Qge(t),icon:(0,pn.jsx)(Ia,{"aria-hidden":"true",size:16,strokeWidth:1.8}),iconClassName:"bg-amber-500/[0.07] text-amber-300 group-hover:border-amber-500/25",title:Xq(t)}),(0,pn.jsx)(qA,{label:"Conversations",value:ae(t.conversations)}),(0,pn.jsx)(qA,{label:"Active days",value:ae(t.activeDays)}),(0,pn.jsx)(qA,{label:"Runtime",value:(0,pn.jsxs)(pn.Fragment,{children:[(0,pn.jsx)("span",{className:"whitespace-nowrap md:hidden",children:Vq(t.durationMs,t.conversations,2)}),(0,pn.jsx)("span",{className:"hidden whitespace-nowrap md:inline",children:Vq(t.durationMs,t.conversations)})]})})]},t.actor.email))})]})}var Ot=w(Q(),1),Ige=["activeDays","conversations","recent","runtime"];function nz(){let e=EM();return(0,Ot.jsx)(_ge,{data:e.data,error:e.error})}function _ge(e){let[t,n,o]=FA(),[a,r]=(0,_y.useState)(90),[i,A]=Zs("sort","conversations",Ige),s=(0,_y.useDeferredValue)(i);if(!e.data&&!e.error)return(0,Ot.jsx)(Qe,{label:"Loading people"});let c=e.data,u=c?.activityDays.slice(-a)??[],l=c?ez(c.people,o,s):[],p=c?.people.reduce((m,h)=>m+h.conversations,0)??0,g=c?.people.reduce((m,h)=>m+h.durationMs,0)??0,f=u[0]?.date,B=f?c?.people.filter(m=>m.lastSeenAt.slice(0,10)>=f).length??0:0,y=Math.max(0,...u.map(m=>m.activePeople));return(0,Ot.jsxs)(OA,{children:[(0,Ot.jsx)(Dt,{actions:(0,Ot.jsx)(Xo,{onChange:r,value:a}),description:e.error?"People failed to load.":`See who's been working with ${it()}, how often, and for how long.`,title:"People"}),e.error?(0,Ot.jsx)(q,{padding:"md",children:(0,Ot.jsx)(en,{children:"People telemetry is unavailable. Try refreshing the dashboard."})}):c?.people.length?(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsxs)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:[(0,Ot.jsx)(Qt,{detail:`Verified actors seen in the last ${a} days`,icon:Ss,label:"Active people",value:ae(B)}),(0,Ot.jsx)(Qt,{detail:"Across the complete conversation index",icon:Ta,label:"Conversations",value:ae(p)}),(0,Ot.jsx)(Qt,{detail:"Cumulative persisted conversation runtime",icon:Mo,label:"Total runtime",value:(0,Ot.jsx)(Oo,{value:g})}),(0,Ot.jsx)(Qt,{detail:`Highest distinct daily count in ${a} days`,icon:No,label:"Peak daily active",value:ae(y)})]}),(0,Ot.jsx)(fy,{days:u}),(0,Ot.jsx)(tz,{loading:i!==s,onQueryChange:n,onSortChange:A,people:l,query:t,sort:i,totalPeople:c.people.length})]}):(0,Ot.jsx)(q,{padding:"md",children:(0,Ot.jsx)(en,{children:"No actor telemetry with trusted email."})})]})}var xy=w(Y(),1);var yt=w(Q(),1),vy=["dashboard","personal-tokens"];function az(){let e=Hn(),t=(0,xy.useRef)(!1),[n,o]=(0,xy.useState)("Local agent"),a=()=>e.cancelQueries({exact:!0,queryKey:vy}),r=st({queryKey:vy,queryFn:({signal:g})=>rt(pD,"/api/personal-tokens",g),retry:!1}),i=rr({gcTime:0,mutationFn:g=>bM(gD,"/api/personal-tokens",{name:g}),onMutate:()=>a(),onSuccess:async g=>{let{token:f,...B}=g;await a(),e.setQueryData(vy,y=>({tokens:[B,...(y?.tokens??[]).filter(m=>m.id!==B.id)]}))},onSettled:()=>{t.current=!1}}),A=rr({mutationFn:g=>Ju(`/api/personal-tokens/${encodeURIComponent(g.id)}`),onMutate:()=>a(),onSuccess:async(g,f)=>{await a(),e.setQueryData(vy,B=>({tokens:(B?.tokens??[]).filter(y=>y.id!==f.id)})),i.data?.id===f.id&&i.reset()}}),s=i.data,c=r.data?.tokens??[],u=r.isPending,l=i.isPending||A.isPending,p=(i.isError?"Could not create the API token. Try again.":A.isError?"Could not revoke the API token. Try again.":void 0)??(!r.data&&r.isError?"Could not load API tokens. Try again.":void 0);return(0,yt.jsx)("div",{className:`${xt} px-4 py-8 md:px-8`,children:(0,yt.jsxs)("section",{className:"mx-auto w-full max-w-3xl",children:[(0,yt.jsx)("h1",{className:"m-0 text-2xl font-bold",children:"Personal API Tokens"}),(0,yt.jsxs)("p",{className:"mt-2 mb-0 max-w-2xl text-sm text-dashboard-text-muted",children:["Use a token to read ",it()," APIs from a local agent or script. Tokens expire after 90 days."]}),(0,yt.jsxs)("div",{className:"mt-6 rounded-lg border border-white/15 bg-dashboard-surface-raised p-5",children:[s?(0,yt.jsxs)("div",{className:"mt-5 rounded border border-emerald-400/40 bg-emerald-400/5 p-3",children:[(0,yt.jsx)("p",{className:"mt-0 mb-2 text-sm font-semibold",children:"Copy this token now. It won't be shown again."}),(0,yt.jsx)("code",{className:"block overflow-x-auto rounded bg-black p-2 text-xs text-emerald-300",children:s.token}),(0,yt.jsx)(lt,{className:"mt-3",onClick:()=>{i.reset(),o("Local agent")},children:"Create another token"})]}):(0,yt.jsxs)("div",{className:"mt-5 flex gap-2",children:[(0,yt.jsx)("input",{"aria-label":"Token name",className:"min-w-0 flex-1 rounded border border-white/15 bg-black px-3 py-2 text-sm text-dashboard-text",maxLength:80,onChange:g=>o(g.target.value),value:n}),(0,yt.jsx)(lt,{disabled:u||l||!n.trim(),onClick:()=>{t.current||(A.reset(),t.current=!0,i.mutate(n))},children:"Create token"})]}),p?(0,yt.jsx)("p",{className:"mb-0 text-sm text-rose-300",children:p}):null,(0,yt.jsx)("div",{className:"mt-5 space-y-2",children:u?(0,yt.jsx)("p",{className:"text-sm text-dashboard-text-muted",children:"Loading API tokens\u2026"}):c.length===0?(0,yt.jsx)("p",{className:"text-sm text-dashboard-text-muted",children:"No active API tokens."}):c.map(g=>(0,yt.jsxs)("div",{className:"flex items-center gap-3 rounded border border-white/10 p-3",children:[(0,yt.jsx)(jo,{className:"text-[#beaaff]",size:16}),(0,yt.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,yt.jsx)("p",{className:"m-0 truncate text-sm font-semibold",children:g.name}),(0,yt.jsxs)("p",{className:"mt-1 mb-0 text-xs text-dashboard-text-muted",children:["Ends in ",g.tokenSuffix," \xB7 Expires"," ",new Date(g.expiresAt).toLocaleDateString()]})]}),(0,yt.jsx)("button",{"aria-label":`Revoke ${g.name}`,className:"cursor-pointer border-0 bg-transparent p-1 text-dashboard-text-muted hover:text-rose-300",disabled:l,onClick:()=>{i.isError&&i.reset(),A.mutate(g)},type:"button",children:(0,yt.jsx)(Po,{size:16})})]},g.id))})]})]})})}var iz=w(Y(),1);var Hg=w(Q(),1);function ZF(e){return(0,Hg.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-white/[0.06] bg-black/15 px-4 py-3 max-md:flex-col max-md:items-stretch",children:[(0,Hg.jsx)("div",{className:"min-w-0",children:e.children}),e.actions?(0,Hg.jsx)("div",{className:"shrink-0 max-md:w-full",children:e.actions}):null]})}var Ug=w(Q(),1);function zA(e){return(0,Ug.jsxs)("div",{className:e.className,children:[(0,Ug.jsx)("h2",{className:"m-0 font-display text-xl font-medium tracking-[-0.02em] text-dashboard-text",id:e.id,children:e.title}),e.description?(0,Ug.jsx)("p",{className:"mt-1.5 mb-0 max-w-2xl font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.description}):null]})}var oz=w(Q(),1);function VF(e){return(0,oz.jsx)("div",{className:"min-w-0 break-words font-mono text-xs font-medium uppercase leading-tight tracking-[0.14em] text-dashboard-text-muted",children:e.children})}var ce=w(Q(),1);function vge(e,t){return e<=0&&t>0?"unknown":mo(e)}function Az(){let e=On(),t=e.email?decodeURIComponent(e.email):void 0,n=kM(t);return!n.data&&!n.error?(0,ce.jsx)(Qe,{label:"Loading profile"}):(0,ce.jsx)(By,{children:n.data?(0,ce.jsx)(xge,{profile:n.data}):(0,ce.jsx)(q,{padding:"md",children:(0,ce.jsx)(en,{children:"Profile failed to load."})})})}function xge(e){let[t,n]=(0,iz.useState)(30),o=e.profile,a=o.actor.fullName??o.actor.slackUserName??o.actor.email;return(0,ce.jsxs)("div",{className:"grid min-w-0 gap-5",children:[(0,ce.jsxs)(Fe,{className:"flex w-fit items-center gap-2 font-display text-sm font-medium text-dashboard-text-muted no-underline transition-colors hover:text-dashboard-text",to:"/system/people",children:[(0,ce.jsx)(Br,{"aria-hidden":"true",size:15,strokeWidth:1.8}),"Back to people"]}),(0,ce.jsx)(Dt,{actions:(0,ce.jsx)(Xo,{onChange:n,value:t}),description:(0,ce.jsxs)(ce.Fragment,{children:[o.actor.email,o.actor.slackUserName?` / @${o.actor.slackUserName}`:""]}),title:a}),(0,ce.jsxs)("section",{className:"grid gap-4","aria-labelledby":"profile-metrics-title",children:[(0,ce.jsx)(zA,{id:"profile-metrics-title",title:"Usage over time"}),(0,ce.jsx)(fd,{days:o.activityDays.slice(-t)})]}),(0,ce.jsxs)("div",{className:"grid min-w-0 gap-5 lg:grid-cols-[minmax(0,1fr)_19rem] lg:items-start",children:[(0,ce.jsx)("aside",{className:"grid min-w-0 gap-4 lg:order-2",children:(0,ce.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3 lg:grid-cols-1",children:[(0,ce.jsx)(Qt,{detail:"Across the complete conversation index",icon:Ta,label:"Conversations",value:ae(o.totals.conversations)}),(0,ce.jsx)(Qt,{detail:"Cumulative persisted conversation runtime",icon:Mo,label:"Runtime",value:(0,ce.jsx)(Oo,{value:o.totals.durationMs})}),(0,ce.jsx)(Qt,{detail:"Persisted model token usage",icon:xs,label:"Tokens",value:ae(o.totals.tokens??0)})]})}),(0,ce.jsxs)("div",{className:"grid min-w-0 gap-5 lg:order-1",children:[(0,ce.jsxs)(q,{as:"section",className:"mb-0",variant:"section",children:[(0,ce.jsx)(ZF,{actions:(0,ce.jsx)("div",{className:"font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted",children:"52 weeks"}),children:(0,ce.jsx)(VF,{children:"Activity"})}),(0,ce.jsx)(my,{days:o.activityDays})]}),(0,ce.jsxs)("div",{className:"grid min-w-0 gap-5 md:grid-cols-2",children:[(0,ce.jsx)(rz,{items:o.locations,title:"Places"}),(0,ce.jsx)(rz,{items:o.surfaces,title:"Surfaces"})]})]})]})]})}function rz(e){return e.items.length<=1?null:(0,ce.jsxs)(q,{as:"section",className:"mb-0",variant:"section",children:[(0,ce.jsx)(ZF,{children:(0,ce.jsx)(VF,{children:e.title})}),(0,ce.jsx)("ol",{className:"m-0 list-none p-0",children:e.items.slice(0,6).map((t,n)=>(0,ce.jsxs)("li",{className:"grid min-w-0 grid-cols-[2rem_minmax(0,1fr)_auto] items-center gap-3 border-b border-white/[0.06] px-4 py-3 last:border-b-0",children:[(0,ce.jsx)("div",{className:"font-mono text-xs leading-none text-dashboard-text-muted",children:n+1}),(0,ce.jsxs)("div",{className:"min-w-0",children:[(0,ce.jsx)("div",{className:"truncate font-display text-base font-medium leading-tight text-dashboard-text",children:t.label}),(0,ce.jsxs)("div",{className:"mt-1 truncate font-mono text-xs leading-tight text-dashboard-text-muted",children:[vge(t.durationMs,t.conversations),t.tokens?` / ${ae(t.tokens)} tokens`:"",t.failed?` / ${ae(t.failed)} errors`:""]})]}),(0,ce.jsx)("div",{className:"font-display text-xl font-light leading-none text-dashboard-text",children:ae(t.conversations)})]},t.label))})]})}var yz=w(Y(),1);var Rt=w(Q(),1);function cz(e){return(0,Rt.jsxs)("section",{"aria-labelledby":"plugin-details-heading",className:"grid gap-3",children:[(0,Rt.jsx)(zA,{className:"px-1",id:"plugin-details-heading",title:"Details"}),(0,Rt.jsxs)(q,{children:[(0,Rt.jsxs)("div",{className:"grid grid-cols-1 gap-px bg-white/[0.055] sm:grid-cols-3",children:[(0,Rt.jsx)(XF,{icon:Ua,label:"Identifier",value:e.plugin.name}),(0,Rt.jsx)(XF,{icon:zn,label:"Skills",value:String(e.plugin.skills.length)}),(0,Rt.jsx)(XF,{icon:jo,label:"Configuration",value:String(e.plugin.configKeys.length)})]}),(0,Rt.jsxs)("div",{className:"grid gap-5 border-t border-white/[0.06] p-4 sm:p-5 lg:grid-cols-2",children:[(0,Rt.jsx)(sz,{emptyText:"No plugin-provided skills were discovered.",items:e.plugin.skills.map(t=>t.name),title:"Skills"}),e.plugin.configKeys.length?(0,Rt.jsx)("div",{className:"lg:col-span-2",children:(0,Rt.jsx)(sz,{emptyText:"",items:e.plugin.configKeys,title:"Configuration keys"})}):null]})]})]})}function XF(e){let t=e.icon;return(0,Rt.jsxs)("div",{className:"flex items-center gap-3 bg-dashboard-surface-panel px-4 py-3.5",children:[(0,Rt.jsx)(t,{"aria-hidden":"true",className:"text-cyan-200/60",size:15}),(0,Rt.jsxs)("div",{className:"min-w-0",children:[(0,Rt.jsx)("div",{className:"truncate font-display text-base font-medium text-dashboard-text",children:e.value}),(0,Rt.jsx)("div",{className:"mt-0.5 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:e.label})]})]})}function sz(e){return(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("h3",{className:"m-0 font-mono text-xs font-medium uppercase tracking-[0.12em] text-dashboard-text-muted",children:e.title}),e.items.length?(0,Rt.jsx)("div",{className:"mt-2.5 flex flex-wrap gap-2",children:e.items.map(t=>(0,Rt.jsx)("span",{className:"rounded border border-white/[0.07] bg-black/20 px-2.5 py-1.5 font-mono text-xs text-dashboard-text-muted",children:t},t))}):(0,Rt.jsx)("p",{className:"mt-2 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.emptyText})]})}var It=w(Q(),1);function uz(e){return(0,It.jsx)("section",{"aria-label":"Plugins",className:"grid gap-3",children:e.plugins.length?(0,It.jsx)("div",{className:"grid gap-3",children:e.plugins.map(t=>(0,It.jsx)(Dge,{plugin:t},t.name))}):(0,It.jsx)(q,{padding:"md",children:(0,It.jsx)("div",{className:"font-mono text-xs text-dashboard-text-muted",children:"No plugin inventory has been reported yet."})})})}function Dge(e){let t=e.plugin.reports.flatMap(n=>n.metrics??[]);return(0,It.jsxs)(Fe,{className:"group grid min-w-0 gap-4 rounded-lg border border-white/[0.07] bg-dashboard-surface-panel/85 p-4 no-underline transition-colors hover:border-cyan-300/20 hover:bg-cyan-300/[0.025] sm:p-5",to:yy(e.plugin.name),children:[(0,It.jsxs)("div",{className:"flex min-w-0 items-start justify-between gap-4",children:[(0,It.jsxs)("div",{className:"flex min-w-0 items-start gap-3",children:[(0,It.jsx)("div",{className:"grid size-9 shrink-0 place-items-center rounded border border-cyan-300/15 bg-cyan-300/[0.075] text-cyan-200",children:(0,It.jsx)(Ua,{"aria-hidden":"true",size:16,strokeWidth:1.8})}),(0,It.jsxs)("div",{className:"min-w-0",children:[(0,It.jsx)("h3",{className:"m-0 truncate font-display text-lg font-medium text-dashboard-text",children:e.plugin.displayName}),(0,It.jsx)("p",{className:"mt-1 mb-0 line-clamp-2 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.plugin.description})]})]}),(0,It.jsx)(Ep,{"aria-hidden":"true",className:"mt-1 shrink-0 text-dashboard-text-muted transition-transform group-hover:translate-x-0.5 group-hover:text-cyan-200/70",size:16})]}),t.length?(0,It.jsx)("div",{className:`grid ${t.length===1?"grid-cols-1":"grid-cols-2"} gap-px overflow-hidden rounded border border-white/[0.06] bg-white/[0.055]`,children:t.slice(0,2).map(n=>(0,It.jsxs)("div",{className:"min-w-0 bg-dashboard-surface-panel px-3 py-2.5",children:[(0,It.jsx)("div",{className:"truncate font-display text-lg font-light text-dashboard-text",children:n.value}),(0,It.jsx)("div",{className:"mt-1 truncate font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:n.label})]},n.label))}):null,(0,It.jsx)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-2 border-t border-white/[0.055] pt-3",children:(0,It.jsx)(Fge,{icon:zn,label:`${e.plugin.skills.length} skills`})})]})}function Fge(e){let t=e.icon;return(0,It.jsxs)("span",{className:"inline-flex items-center gap-1.5 font-mono text-xs uppercase tracking-[0.08em] text-dashboard-text-muted",children:[(0,It.jsx)(t,{"aria-hidden":"true",size:11}),e.label]})}var vn=w(Q(),1),Dy=["#67e8f9","#6ee7b7","#fbbf24","#fb7185","#a78bfa"],dz={danger:"#fb7185",good:"#6ee7b7",neutral:"#67e8f9",warning:"#fbbf24"};function pz(e){let{widget:t}=e,n=t.timeRangeDays?t.categories.slice(-Sge(t,e.range)):t.categories,o=$ge(t),a=520,r=250,i=o==="usd"?72:56,A=16,c=r-A-36,u=(a-i-12)/n.length,l=Math.min(72,u*.72),p=l/t.series.length,g=n.flatMap(b=>t.series.map(C=>b.values[C.key]??0)),f=Math.min(0,...g),B=Math.max(0,...g),y=B===f?f+1:B,m=y-f,h=A+y/m*c;return(0,vn.jsxs)("div",{className:"overflow-hidden rounded border border-white/[0.07] bg-dashboard-surface-panel",children:[(0,vn.jsxs)("div",{className:"border-b border-white/[0.06] px-4 py-3",children:[(0,vn.jsx)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:(0,vn.jsx)("h4",{className:"m-0 font-mono text-xs font-medium uppercase tracking-[0.14em] text-dashboard-text-muted",children:t.title})}),t.description?(0,vn.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs text-dashboard-text-muted",children:t.description}):null,t.series.length>1?(0,vn.jsx)("div",{"aria-label":"Chart legend",className:"mt-3 flex flex-wrap gap-3",children:t.series.map((b,C)=>(0,vn.jsxs)("span",{className:"flex items-center gap-1.5 font-mono text-xs text-dashboard-text-muted",children:[(0,vn.jsx)("i",{className:"size-2 rounded-sm",style:{backgroundColor:b.tone?dz[b.tone]:Dy[C%Dy.length]}}),b.label]},b.key))}):null]}),n.length===0?(0,vn.jsx)("p",{className:"m-0 p-4 font-mono text-xs text-dashboard-text-muted",children:t.emptyText??"No chart data."}):(0,vn.jsxs)("svg",{"aria-label":t.title,className:"block h-auto min-h-48 w-full",role:"img",viewBox:`0 0 ${a} ${r}`,children:[[y,y-m/2,f].map((b,C)=>{let E=A+C*(c/2);return(0,vn.jsxs)("g",{children:[(0,vn.jsx)("line",{stroke:"rgba(255,255,255,0.07)",strokeDasharray:"3 5",x1:i,x2:a-12,y1:E,y2:E}),(0,vn.jsx)("text",{fill:"rgba(255,255,255,0.35)",fontFamily:"ui-monospace, monospace",fontSize:"12",textAnchor:"end",x:i-6,y:E+3,children:lz(b,o)})]},C)}),n.flatMap((b,C)=>t.series.map((E,x)=>{let k=b.values[E.key]??0,R=Math.max(k?2:0,Math.abs(k)/m*c),T=lz(k,E.format);return(0,vn.jsx)(Ut,{content:`${E.label}: ${T}`,label:b.label,children:(0,vn.jsx)("rect",{"aria-label":`${b.label}, ${E.label}: ${T}`,fill:E.tone?dz[E.tone]:Dy[x%Dy.length],height:R,opacity:k?.82:.1,rx:"1.5",tabIndex:k?0:-1,width:p*.75,x:i+C*u+(u-l)/2+x*p,y:k>=0?h-R:h})},`${b.id}:${E.key}`)})),Lge(n.length).map(b=>{let C=n[b];return(0,vn.jsx)("text",{fill:"rgba(255,255,255,0.4)",fontFamily:"ui-monospace, monospace",fontSize:"12",textAnchor:"middle",x:i+b*u+u/2,y:r-9,children:Rge(C.label)},C.id)})]})]})}function Sge(e,t){let n=e.timeRangeDays??[];return t&&n.includes(t)?t:n.includes(30)?30:n[0]??30}function Lge(e){return[0,Math.floor((e-1)/2),e-1].filter((t,n,o)=>t>=0&&o.indexOf(t)===n)}function Rge(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?new Date(`${e}T00:00:00.000Z`).toLocaleDateString(void 0,{day:"numeric",month:"short",timeZone:"UTC"}):e}function Nge(e){return String(Number(e.toPrecision(12)))}function $ge(e){return new Set(e.series.map(n=>n.format)).size===1?e.series[0]?.format:void 0}function lz(e,t){return t==="usd"?Xt({total:e}):Nge(e)}var re=w(Q(),1);function mz(e){return e.reports.length===0&&!e.emptyText?null:e.reports.length===0?(0,re.jsx)(q,{padding:"md",children:(0,re.jsxs)("div",{className:"flex items-center gap-4",children:[(0,re.jsx)("div",{className:"grid size-10 shrink-0 place-items-center rounded border border-white/[0.07] bg-white/[0.025] text-dashboard-text-muted",children:(0,re.jsx)(Gp,{"aria-hidden":"true",size:17})}),(0,re.jsxs)("div",{children:[(0,re.jsx)("h2",{className:"m-0 font-display text-base font-medium text-dashboard-text-muted",children:"Operational reports"}),(0,re.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.emptyText})]})]})}):(0,re.jsxs)("div",{className:"grid gap-3",children:[(0,re.jsx)(zA,{className:"px-1",title:"Operational reports"}),e.reports.map(t=>(0,re.jsx)(Mge,{fallbackTitle:e.fallbackTitle,range:e.range,report:t},t.pluginName))]})}function Mge(e){let n=(e.report.title===e.report.pluginName?void 0:e.report.title)??e.fallbackTitle??e.report.pluginName,o=e.report.metrics??[];return(0,re.jsxs)(q,{children:[(0,re.jsxs)("div",{className:"flex items-start justify-between gap-4 border-b border-white/[0.06] px-5 py-4",children:[(0,re.jsxs)("div",{className:"min-w-0",children:[(0,re.jsx)("h3",{className:"m-0 truncate font-display text-lg font-medium text-dashboard-text",children:n}),(0,re.jsx)("div",{className:"mt-1 hidden font-mono text-xs text-dashboard-text-muted sm:block",children:e.report.pluginName})]}),e.report.generatedAt?(0,re.jsxs)("div",{className:"hidden shrink-0 font-mono text-xs text-dashboard-text-muted sm:block",children:["updated ",Aa(e.report.generatedAt)]}):null]}),o.length?(0,re.jsx)("div",{className:S("grid gap-px bg-white/[0.055]",o.length===1?"grid-cols-1":"grid-cols-2",o.length===3?"lg:grid-cols-3":o.length===5?"lg:grid-cols-5":o.length>=4?"lg:grid-cols-4":void 0),children:o.map(a=>(0,re.jsxs)("div",{className:S("min-w-0 bg-dashboard-surface-panel px-4 py-4",o.length>1&&o.length%2===1&&"last:col-span-2 lg:last:col-span-1",Pge(a.tone)),children:[(0,re.jsx)("div",{className:"truncate font-display text-2xl font-light leading-none text-dashboard-text",children:a.value}),(0,re.jsx)("div",{className:"mt-2 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:a.label})]},a.label))}):null,e.report.widgets?.length?(0,re.jsx)("div",{className:"grid gap-3 border-t border-white/[0.06] bg-black/15 p-3 lg:grid-cols-2",children:e.report.widgets.map(a=>(0,re.jsx)(pz,{range:e.range,widget:a},a.id))}):null,e.report.recordSets?.map(a=>(0,re.jsx)(jge,{recordSet:a},`${e.report.pluginName}:${a.title}`))]})}function jge(e){let t=e.recordSet.fields??[],n=e.recordSet.records??[];return(0,re.jsxs)("div",{className:"border-t border-white/[0.06]",children:[(0,re.jsxs)("div",{className:"flex items-center justify-between gap-4 px-5 py-3",children:[(0,re.jsx)("div",{className:"font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted",children:e.recordSet.title}),(0,re.jsxs)("div",{className:"hidden font-mono text-xs text-dashboard-text-muted sm:block",children:[n.length," records"]})]}),n.length===0?(0,re.jsx)("div",{className:"px-5 pb-5 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.recordSet.emptyText??"No records."}):t.length===0?(0,re.jsx)("div",{className:"px-5 pb-5 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:"Report records are unavailable because no fields were declared."}):(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("div",{className:"grid gap-2 border-t border-white/[0.05] p-3 sm:hidden",children:n.map(o=>(0,re.jsx)("div",{className:S("grid gap-3 rounded-md border border-white/[0.06] bg-black/15 p-3",gz(o.tone)),children:t.map(a=>(0,re.jsxs)("div",{children:[(0,re.jsx)("div",{className:"font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:a.label}),(0,re.jsx)("div",{className:"mt-1 break-words font-mono text-xs leading-relaxed text-dashboard-text-muted",children:o.values[a.key]??""})]},a.key))},o.id))}),(0,re.jsx)("div",{className:"hidden overflow-x-auto border-t border-white/[0.05] sm:block",children:(0,re.jsxs)("table",{className:"w-full min-w-[36rem] border-collapse text-left",children:[(0,re.jsx)("thead",{className:"bg-black/15 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:(0,re.jsx)("tr",{children:t.map(o=>(0,re.jsx)("th",{className:"border-b border-white/[0.055] px-5 py-2.5 font-medium",scope:"col",children:o.label},o.key))})}),(0,re.jsx)("tbody",{children:n.map(o=>(0,re.jsx)("tr",{className:S("transition-colors hover:bg-white/[0.025]",gz(o.tone)),children:t.map(a=>(0,re.jsx)("td",{className:"max-w-72 truncate border-b border-white/[0.05] px-5 py-3 font-mono text-xs text-dashboard-text-muted",children:o.values[a.key]??""},a.key))},o.id))})]})})]})]})}function Pge(e){return e==="danger"?"shadow-[inset_0_2px_0_rgba(251,113,133,0.65)]":e==="warning"?"shadow-[inset_0_2px_0_rgba(251,191,36,0.65)]":e==="good"?"shadow-[inset_0_2px_0_rgba(110,231,183,0.55)]":""}function gz(e){return e==="danger"?"bg-rose-500/[0.07]":e==="warning"?"bg-amber-300/[0.045]":e==="good"?"bg-emerald-400/[0.055]":""}var Je=w(Q(),1);function bz(e){let t=Hge(e.skills),n=e.skills.filter(o=>o.pluginProvider).length;return(0,Je.jsxs)(q,{children:[(0,Je.jsxs)("div",{className:"flex items-start justify-between gap-4 border-b border-white/[0.06] px-5 py-4 max-sm:flex-col",children:[(0,Je.jsx)(zA,{description:(0,Je.jsxs)(Je.Fragment,{children:["The task-specific instructions ",it()," ","discovered, grouped by their plugin provider when one is registered."]}),title:"Skills"}),(0,Je.jsxs)("div",{className:"grid min-w-[12rem] grid-cols-2 overflow-hidden rounded-lg border border-white/[0.07] bg-black/15 max-sm:w-full max-sm:min-w-0",children:[(0,Je.jsx)(fz,{label:"discovered",value:e.skills.length}),(0,Je.jsx)(fz,{label:"from plugins",value:n})]})]}),(0,Je.jsx)("div",{className:"grid gap-3 p-3 sm:p-4",children:t.length?t.map(o=>(0,Je.jsx)(Gge,{group:o},o.pluginProvider??"standalone")):(0,Je.jsx)("div",{className:"rounded-lg border border-dashed border-white/[0.08] px-4 py-8 text-center font-mono text-xs text-dashboard-text-muted",children:"No skills have been discovered yet."})})]})}function Gge(e){let t=e.group.pluginProvider??"Standalone";return(0,Je.jsxs)("article",{className:"rounded-lg border border-white/[0.065] bg-white/[0.025] p-4",children:[(0,Je.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3",children:[(0,Je.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,Je.jsx)("div",{className:"grid size-8 shrink-0 place-items-center rounded border border-cyan-300/15 bg-cyan-300/[0.075] text-cyan-200",children:e.group.pluginProvider?(0,Je.jsx)(Ua,{"aria-hidden":"true",size:15,strokeWidth:1.8}):(0,Je.jsx)(zn,{"aria-hidden":"true",size:15,strokeWidth:1.8})}),(0,Je.jsxs)("div",{children:[(0,Je.jsx)("h3",{className:"m-0 truncate font-display text-base font-medium text-dashboard-text",children:t}),(0,Je.jsx)("div",{className:"mt-0.5 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:e.group.pluginProvider?"plugin provider":"core or local"})]})]}),(0,Je.jsxs)("span",{className:"font-mono text-xs text-dashboard-text-muted",children:[ae(e.group.skills.length)," skill",e.group.skills.length===1?"":"s"]})]}),(0,Je.jsx)("div",{className:"flex flex-wrap gap-2",children:e.group.skills.map(n=>(0,Je.jsx)("span",{className:"rounded border border-white/[0.07] bg-black/20 px-2.5 py-1.5 font-mono text-xs text-dashboard-text-muted",children:n.name},n.name))})]})}function fz(e){return(0,Je.jsxs)("div",{className:"border-r border-white/[0.06] px-3 py-2.5 text-center last:border-r-0",children:[(0,Je.jsx)("div",{className:"font-display text-xl font-light leading-none text-dashboard-text",children:ae(e.value)}),(0,Je.jsx)("div",{className:"mt-1.5 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:e.label})]})}function Hge(e){let t=new Map;for(let n of e){let o=t.get(n.pluginProvider)??[];o.push(n),t.set(n.pluginProvider,o)}return[...t.entries()].map(([n,o])=>({pluginProvider:n,skills:[...o].sort((a,r)=>a.name.localeCompare(r.name))})).sort((n,o)=>n.pluginProvider?o.pluginProvider?n.pluginProvider.localeCompare(o.pluginProvider):-1:1)}var be=w(Q(),1);function e8(e){return new Date(`${e}T00:00:00.000Z`).toLocaleDateString(void 0,{day:"numeric",month:"short",timeZone:"UTC"})}function Uge(e){return e.reduce((t,n)=>({allow:t.allow+n.allow,ask:t.ask+n.ask,costUsd:t.costUsd+(n.costUsd??0),deny:t.deny+n.deny,requests:t.requests+n.requests}),{allow:0,ask:0,costUsd:0,deny:0,requests:0})}function Tg(e){return(0,be.jsxs)("div",{className:"rounded-md border border-white/[0.05] bg-black/10 px-3 py-3",children:[(0,be.jsx)("div",{className:"font-display text-xl font-light text-dashboard-text",children:(0,be.jsx)("span",{className:e.valueClassName,children:e.value})}),(0,be.jsx)("div",{className:"mt-1 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.label})]})}function hz(e){let t=Uge(e.days),n=Math.max(1,...e.days.map(a=>a.requests)),o=[0,Math.floor((e.days.length-1)/2),e.days.length-1].filter((a,r,i)=>a>=0&&i.indexOf(a)===r);return(0,be.jsxs)(q,{children:[(0,be.jsxs)("div",{className:"border-b border-white/[0.06] px-4 py-4",children:[(0,be.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,be.jsxs)("div",{children:[(0,be.jsx)("h3",{className:"m-0 font-mono text-xs font-medium uppercase tracking-[0.14em] text-dashboard-text-muted",children:"Guardian reviews"}),(0,be.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:"Daily decisions before reviewed actions execute."})]}),(0,be.jsxs)("div",{className:"font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:[(0,be.jsx)("span",{className:"mr-3 text-emerald-200/75",children:"Allow"}),(0,be.jsx)("span",{className:"mr-3 text-amber-200/75",children:"Ask"}),(0,be.jsx)("span",{className:"text-rose-200/75",children:"Deny"})]})]}),(0,be.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-5",children:[(0,be.jsx)(Tg,{label:"Requests",value:ae(t.requests)}),(0,be.jsx)(Tg,{label:"Allowed",value:ae(t.allow),valueClassName:"text-emerald-100"}),(0,be.jsx)(Tg,{label:"Asked",value:ae(t.ask),valueClassName:"text-amber-100"}),(0,be.jsx)(Tg,{label:"Denied",value:ae(t.deny),valueClassName:"text-rose-100"}),(0,be.jsx)(Tg,{label:"Estimated cost",value:Xt({total:t.costUsd})})]})]}),(0,be.jsxs)("div",{className:"px-4 pt-5 pb-3",children:[(0,be.jsx)("div",{"aria-label":"Daily Guardian review results",className:"flex h-36 items-end gap-px",role:"img",children:e.days.map(a=>{let r=Math.max(2,a.requests/n*100);return(0,be.jsx)(Ut,{content:(0,be.jsxs)("div",{className:"grid grid-cols-[auto_auto] gap-x-4",children:[(0,be.jsx)("span",{children:"Allow"}),(0,be.jsx)("span",{className:"text-right",children:a.allow}),(0,be.jsx)("span",{children:"Ask"}),(0,be.jsx)("span",{className:"text-right",children:a.ask}),(0,be.jsx)("span",{children:"Deny"}),(0,be.jsx)("span",{className:"text-right",children:a.deny}),(0,be.jsx)("span",{children:"Cost"}),(0,be.jsx)("span",{className:"text-right",children:Xt({total:a.costUsd??0})})]}),label:e8(a.date),children:(0,be.jsxs)("button",{"aria-label":`${e8(a.date)}: ${a.allow} allowed, ${a.ask} asked, ${a.deny} denied, ${Xt({total:a.costUsd??0})}`,className:"flex min-w-0 flex-1 flex-col justify-end overflow-hidden rounded-t-sm bg-white/[0.035] focus-visible:outline-1 focus-visible:outline-cyan-300",style:{height:`${r}%`},type:"button",children:[a.deny?(0,be.jsx)("span",{className:"block w-full bg-rose-400/75",style:{flex:a.deny}}):null,a.ask?(0,be.jsx)("span",{className:"block w-full bg-amber-300/75",style:{flex:a.ask}}):null,a.allow?(0,be.jsx)("span",{className:"block w-full bg-emerald-300/70",style:{flex:a.allow}}):null]})},a.date)})}),(0,be.jsx)("div",{className:"relative mt-2 h-4 font-mono text-xs text-dashboard-text-muted",children:o.map(a=>{let r=e.days[a];return r?(0,be.jsx)("span",{className:"absolute -translate-x-1/2",style:{left:`${(a+.5)/e.days.length*100}%`},children:e8(r.date)},r.date):null})})]})]})}var Ri=w(Q(),1);function Bz(e){if(!e.stats)return(0,Ri.jsx)(q,{padding:"sm",children:(0,Ri.jsx)(en,{children:e.error?"Conversation metrics failed to load.":e.loading?"Loading conversation metrics.":"No conversation metrics have been reported yet."})});let t=e.stats.metricDays.slice(-e.range),n=e.stats.guardian.metricDays.slice(-e.range);return(0,Ri.jsxs)("section",{"aria-label":"Runtime telemetry",className:"grid gap-4",children:[e.error?(0,Ri.jsx)("p",{className:"m-0 font-mono text-xs text-rose-200/65",children:"Metrics refresh failed. Showing cached data."}):null,(0,Ri.jsx)(by,{days:t}),(0,Ri.jsx)(fd,{days:t}),(0,Ri.jsx)(hz,{days:n})]})}var Le=w(Q(),1);function Cz(e){let[t,n]=(0,yz.useState)(30),o=dt(),a=e.data.pluginReports?.reports??[],r=Uq({plugins:e.data.plugins,reports:a,skills:e.data.skills}),i=Tq(o.pathname),A=i===uc,s=r.find(u=>yy(u.name)===i);return i.startsWith(`${uc}/`)&&!s?(0,Le.jsx)(vt,{replace:!0,to:uc}):i!=="/system"&&!A&&!s?(0,Le.jsx)(vt,{replace:!0,to:"/system"}):(0,Le.jsx)(OA,{children:s?(0,Le.jsx)(qge,{data:e.data,onRangeChange:n,plugin:s,range:t}):A?(0,Le.jsx)(Oge,{data:e.data,plugins:r}):(0,Le.jsx)(Tge,{data:e.data,range:t,onRangeChange:n})})}function Tge(e){return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Dt,{actions:(0,Le.jsx)(Xo,{onChange:e.onRangeChange,value:e.range}),description:`A live read on ${DM()} runtime and model usage.`,title:"System"}),(0,Le.jsx)(Bz,{error:e.data.conversationStatsError,range:e.range,loading:e.data.conversationStatsLoading,stats:e.data.conversationStats})]})}function Oge(e){return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Dt,{description:`Loaded capabilities and operational reports for ${it()}.`,title:"Plugins"}),e.data.pluginReportsError?(0,Le.jsx)(wz,{showingReports:e.plugins.some(t=>t.reports.length)}):null,(0,Le.jsx)(uz,{plugins:e.plugins}),e.data.skills.length?(0,Le.jsx)(bz,{skills:e.data.skills}):null]})}function qge(e){let t=e.plugin.reports,n=t.some(o=>o.widgets?.some(a=>a.timeRangeDays?.length));return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Dt,{actions:n?(0,Le.jsx)(Xo,{onChange:e.onRangeChange,value:e.range}):void 0,description:e.plugin.description,title:e.plugin.displayName}),e.data.pluginReportsError?(0,Le.jsx)(wz,{showingReports:!!t.length}):null,(0,Le.jsx)(cz,{plugin:e.plugin}),(0,Le.jsx)(mz,{fallbackTitle:e.plugin.displayName,...!e.data.pluginReportsLoading&&!e.data.pluginReportsError?{emptyText:"This plugin does not expose operational activity yet."}:{},range:e.range,reports:t})]})}function wz(e){return(0,Le.jsx)(q,{className:"border-amber-300/10 bg-amber-300/[0.025]",padding:"sm",children:(0,Le.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Le.jsx)("div",{className:"grid size-9 shrink-0 place-items-center rounded border border-amber-300/15 bg-amber-300/[0.055] text-amber-200/70",children:(0,Le.jsx)(Qa,{"aria-hidden":"true",size:15})}),(0,Le.jsxs)("div",{children:[(0,Le.jsx)("div",{className:"font-display text-sm font-medium text-dashboard-text-muted",children:"Plugin stats failed to load."}),(0,Le.jsx)("div",{className:"mt-1 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.showingReports?`Showing the last operational reports ${it()} received.`:"Plugin details and capabilities are still available."})]})]})})}var Iz=w(Y(),1);var kz=w(Y(),1);var qt=w(Q(),1),Ez=[{color:"#6ee7b7",key:"completed",label:"Completed"},{color:"#fda4af",key:"failed",label:"Failed"},{color:"#fcd34d",key:"blocked",label:"Blocked"}];function Qz(e){let[t,n]=(0,kz.useState)(30),o=e.days.slice(-t),a=Hr(220),r=o.map(u=>u.completed+u.failed+u.blocked),i=Math.max(1,...r),A=o.length>0?a.plotWidth/o.length:a.plotWidth,s=Math.max(2,Math.min(13,A*.68)),c=r.some(u=>u>0);return(0,qt.jsxs)(q,{className:"min-h-[15rem] p-4 sm:p-5",children:[(0,qt.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,qt.jsxs)("div",{children:[(0,qt.jsx)("h2",{className:"m-0 font-display text-xl font-medium text-dashboard-text",children:"Executions over time"}),(0,qt.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:"Terminal runs for this task each day."})]}),(0,qt.jsx)("div",{"aria-label":"Task execution range",className:"inline-flex rounded border border-white/[0.08] bg-black/20 p-0.5",children:[7,30,90].map(u=>(0,qt.jsxs)("button",{"aria-pressed":t===u,className:S("cursor-pointer rounded-sm border-0 px-2.5 py-1.5 font-mono text-xs uppercase tracking-[0.1em] transition-colors",t===u?"bg-cyan-300/10 text-cyan-100":"bg-transparent text-dashboard-text-muted hover:text-dashboard-text"),onClick:()=>n(u),type:"button",children:[u,"d"]},u))})]}),(0,qt.jsx)("div",{"aria-label":"Task execution status legend",className:"mt-4 flex flex-wrap gap-4",children:Ez.map(u=>(0,qt.jsxs)("span",{className:"inline-flex items-center gap-1.5 font-mono text-xs text-dashboard-text-muted",children:[(0,qt.jsx)("i",{className:"size-2 rounded-sm",style:{backgroundColor:u.color}}),u.label]},u.key))}),(0,qt.jsxs)("div",{className:"relative mt-3 overflow-hidden",children:[(0,qt.jsxs)("svg",{"aria-label":`Task executions during the last ${t} days`,className:"block h-auto min-h-40 w-full",role:"img",viewBox:`0 0 ${a.width} ${a.height}`,children:[(0,qt.jsx)(Ur,{layout:a,maximum:i}),o.map((u,l)=>{let p=0,g=a.left+l*A+(A-s)/2,f=r[l]??0;return(0,qt.jsx)(Ut,{content:(0,qt.jsx)(Eo,{rows:[["completed",u.completed],["failed",u.failed],["blocked",u.blocked],["total",f]]}),label:Wn(u.date),children:(0,qt.jsxs)("g",{"aria-label":`${Wn(u.date)}: ${u.completed} completed, ${u.failed} failed, ${u.blocked} blocked, ${f} total`,tabIndex:0,children:[Ez.map(B=>{let m=u[B.key]/i*a.plotHeight;return p+=m,(0,qt.jsx)("rect",{fill:B.color,height:m,opacity:.82,rx:"1",width:s,x:g,y:a.top+a.plotHeight-p},B.key)}),(0,qt.jsx)("rect",{fill:"transparent",height:a.plotHeight,width:Math.max(s,8),x:g-(Math.max(s,8)-s)/2,y:a.top})]})},u.date)}),(0,qt.jsx)(Tr,{dates:o.map(u=>u.date),layout:a,xPosition:u=>a.left+u*A+A/2})]}),c?null:(0,qt.jsx)("div",{className:"pointer-events-none absolute inset-0 grid place-items-center pt-12 font-mono text-xs text-dashboard-text-muted",children:"No task executions in this period."})]})]})}var Ce=w(Q(),1);function _z(e){let{taskId:t,kind:n}=On(),[o]=uA(),a=n==="scheduled"||n==="event"?n:void 0,r=wM(e.enabled&&!!(t&&a),a,t),i=vr(t?`/tasks/${encodeURIComponent(t)}`:"/tasks",o);return!t||!a?(0,Ce.jsx)(vt,{replace:!0,to:"/tasks"}):!r.data&&!r.error?(0,Ce.jsx)(Qe,{label:"Loading task executions"}):r.error||!r.data?(0,Ce.jsx)("div",{className:`${xt} px-4 py-8 md:px-8`,children:(0,Ce.jsxs)("section",{className:"mx-auto grid w-full max-w-4xl gap-5",children:[(0,Ce.jsx)(Dt,{description:"Terminal runs for one scheduled or event task.",title:"Task executions"}),(0,Ce.jsxs)(q,{padding:"md",children:[(0,Ce.jsx)("p",{className:"m-0 text-sm text-rose-300",children:r.error instanceof Ro&&r.error.status===404?"This task was not found or is not visible to you.":"Task executions could not be loaded. Try again."}),(0,Ce.jsxs)(Fe,{className:"mt-3 inline-flex items-center gap-2 font-mono text-xs text-dashboard-text-muted no-underline hover:text-dashboard-text",to:"/tasks",children:[(0,Ce.jsx)(Br,{"aria-hidden":"true",size:14}),"Back to tasks"]})]})]})}):(0,Ce.jsx)(zge,{backTo:i,data:r.data})}function zge(e){let{data:t}=e,n=(0,Iz.useMemo)(()=>Jge(t.executions),[t.executions]),o=`${n.completed} completed \xB7 ${n.failed} failed \xB7 ${n.blocked} blocked`,a=t.truncated?`${t.task.totalRuns} total \xB7 loaded runs: ${o}`:`${t.task.totalRuns} total \xB7 ${o}`;return(0,Ce.jsx)("div",{className:`${xt} px-4 py-8 md:px-8`,children:(0,Ce.jsxs)("section",{className:"mx-auto grid w-full max-w-4xl gap-5",children:[(0,Ce.jsxs)("div",{children:[(0,Ce.jsxs)(Fe,{className:"mb-3 inline-flex items-center gap-2 font-mono text-xs text-dashboard-text-muted no-underline hover:text-dashboard-text",to:e.backTo,children:[(0,Ce.jsx)(Br,{"aria-hidden":"true",size:14}),"Back to task"]}),(0,Ce.jsx)(Dt,{description:`${t.task.kind} task \xB7 ${t.task.destination.label} \xB7 ${a}`,title:t.task.instruction})]}),t.executionDays.length>0?(0,Ce.jsx)(Qz,{days:t.executionDays}):null,(0,Ce.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-x-5 gap-y-1 border-b border-white/[0.07] pb-3",children:[(0,Ce.jsxs)("p",{className:"m-0 font-display text-lg text-dashboard-text",children:[t.executions.length," ",t.executions.length===1?"run":"runs"]}),(0,Ce.jsx)("p",{className:"m-0 text-xs text-dashboard-text-muted",children:"Newest first. Click a run to open its conversation."})]}),t.executions.length===0?(0,Ce.jsx)(q,{padding:"md",children:(0,Ce.jsx)("p",{className:"m-0 text-sm text-dashboard-text-muted",children:"This task has not produced any terminal executions yet."})}):(0,Ce.jsxs)(q,{children:[(0,Ce.jsxs)("div",{className:"sticky top-0 z-[1] hidden grid-cols-[minmax(13rem,1.7fr)_minmax(10rem,1fr)] items-center gap-3 border-b border-white/[0.06] bg-black/25 px-3 py-2.5 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted md:grid",role:"row",children:[(0,Ce.jsx)("div",{children:"Conversation"}),(0,Ce.jsx)("div",{className:"justify-self-end",children:"Status"})]}),(0,Ce.jsx)("div",{className:"min-w-0",role:"table",children:t.executions.map(r=>(0,Ce.jsx)(Yge,{execution:r,fallbackTitle:t.task.instruction},r.executionId))})]}),t.truncated?(0,Ce.jsx)("p",{className:"m-0 text-center text-xs text-dashboard-text-muted",children:"Showing the 100 most recent executions."}):null]})})}function Yge(e){let{execution:t,fallbackTitle:n}=e,o=so(),a=t.title?.trim()||(t.conversationId?n:"No conversation"),r=[Wge(t.executedAt),t.conversationId??"not linked"].join(" \xB7 "),i=()=>{t.conversationId&&o(Ir(t.conversationId))};return(0,Ce.jsxs)("div",{"aria-disabled":!t.conversationId,className:S("group grid min-w-0 grid-cols-[minmax(13rem,1.7fr)_minmax(10rem,1fr)] items-center gap-3 overflow-hidden border-b border-b-white/[0.055] px-3 py-3 text-left text-inherit transition-colors max-md:grid-cols-1 max-md:px-4 max-md:py-4",t.conversationId?"cursor-pointer hover:bg-white/[0.035]":"cursor-default opacity-80"),onClick:i,onKeyDown:A=>{t.conversationId&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),i())},role:t.conversationId?"link":"row",tabIndex:t.conversationId?0:void 0,children:[(0,Ce.jsxs)("div",{className:"min-w-0",children:[(0,Ce.jsx)("div",{className:"min-w-0 truncate text-base font-bold leading-tight text-dashboard-text",children:a}),(0,Ce.jsx)("div",{className:"mt-1 break-words text-sm leading-relaxed text-dashboard-text-muted md:truncate",children:r})]}),(0,Ce.jsx)("div",{className:"grid min-w-0 justify-items-end gap-1 text-right max-md:justify-items-start max-md:text-left",children:(0,Ce.jsx)(Kge,{status:t.status})})]})}function Kge(e){return(0,Ce.jsx)("span",{className:S("inline-flex items-center rounded border px-2 py-1 font-mono text-xs uppercase tracking-[0.1em]",e.status==="completed"&&"border-emerald-400/25 bg-emerald-400/10 text-emerald-200",e.status==="failed"&&"border-rose-400/25 bg-rose-400/10 text-rose-200",e.status==="blocked"&&"border-amber-400/25 bg-amber-400/10 text-amber-100"),children:e.status})}function Jge(e){return e.reduce((t,n)=>(t[n.status]+=1,t),{blocked:0,completed:0,failed:0})}function Wge(e){return Aa(e,{day:"numeric",hour:"numeric",minute:"2-digit",month:"short",timeZoneName:"short",year:"numeric"})}var Sy=w(Y(),1);var Bd=w(Y(),1);var me=w(Q(),1),Zge=["a[href]","button:not([disabled])","[tabindex]:not([tabindex='-1'])"].join(",");function xz(e){let t=(0,Bd.useRef)(null),n=(0,Bd.useRef)(e.onClose),o=(0,Bd.useRef)(void 0),a=e.task?`${e.task.kind}:${e.task.id}`:void 0;if(n.current=e.onClose,(0,Bd.useEffect)(()=>{if(!a)return;o.current=document.activeElement instanceof HTMLElement?document.activeElement:void 0;let u=document.body.style.overflow;document.body.style.overflow="hidden";let l=requestAnimationFrame(()=>{t.current?.querySelector("[data-task-drawer-close]")?.focus()}),p=g=>{if(g.key==="Escape"){g.preventDefault(),n.current();return}if(g.key!=="Tab")return;let f=t.current,B=Array.from(f?.querySelectorAll(Zge)??[]).filter(b=>b.tabIndex>=0&&b.getClientRects().length>0),y=B.at(0),m=B.at(-1);if(!f||!y||!m){g.preventDefault();return}let h=document.activeElement;g.shiftKey&&(h===y||!f.contains(h))?(g.preventDefault(),m.focus()):!g.shiftKey&&(h===m||!f.contains(h))&&(g.preventDefault(),y.focus())};return window.addEventListener("keydown",p),()=>{cancelAnimationFrame(l),window.removeEventListener("keydown",p),document.body.style.overflow=u;let g=o.current;o.current=void 0,g?.isConnected&&g.focus()}},[a]),!e.task)return null;let{task:r}=e,i=r.createdByEmail?(0,me.jsx)(Fe,{className:"font-semibold text-dashboard-text underline decoration-white/20 underline-offset-2 transition-colors hover:decoration-white/60",to:_r(r.createdByEmail),children:r.ownedByViewer?"you":r.createdBy}):r.ownedByViewer?"you":r.createdBy,A=r.kind==="scheduled"?[{label:"Schedule",value:r.schedule},{label:"Next run",value:r.nextRunAt?t8(r.nextRunAt):"None"}]:[{label:"Resource",value:r.resource},{label:"Events",value:r.events.join(", ")}],s=r.kind==="scheduled"?r.status:r.triggerAvailable?"ready":"unavailable",c="task-details-drawer-title";return(0,me.jsxs)("div",{"aria-labelledby":c,"aria-modal":"true",className:"fixed inset-0 z-50",ref:t,role:"dialog",children:[(0,me.jsx)("button",{"aria-label":"Dismiss task details",className:"absolute inset-0 cursor-default bg-black/55",onClick:e.onClose,tabIndex:-1,type:"button"}),(0,me.jsxs)("aside",{className:"absolute top-0 right-0 grid h-full w-full grid-rows-[auto_minmax(0,1fr)] bg-[#070707] shadow-[-20px_0_60px_rgba(0,0,0,0.45)] md:w-[min(560px,94vw)] md:border-l md:border-white/12",children:[(0,me.jsxs)("header",{className:"relative border-b border-white/10 bg-dashboard-surface-raised px-4 py-3 md:px-5",children:[(0,me.jsxs)("div",{className:"min-w-0 pr-12",children:[(0,me.jsxs)("h2",{className:"m-0 font-display text-lg font-medium tracking-normal text-dashboard-text capitalize",id:c,children:[r.kind," task"]}),(0,me.jsxs)("div",{className:"mt-1 break-words font-mono text-xs leading-snug text-dashboard-text-muted",children:[s," \xB7 ",vz(r.createdAt)]})]}),(0,me.jsx)("div",{className:"absolute top-3 right-4 md:right-5",children:(0,me.jsx)(lt,{"aria-label":"Close task details","data-task-drawer-close":!0,onClick:e.onClose,size:"icon",title:"Close",children:(0,me.jsx)(Go,{"aria-hidden":"true",size:15,strokeWidth:2.25})})})]}),(0,me.jsx)("div",{className:"min-h-0 overflow-auto px-4 py-4 md:px-5",children:(0,me.jsxs)("section",{className:"grid gap-5",children:[(0,me.jsxs)("div",{children:[(0,me.jsx)("div",{className:"mb-2 font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted",children:"Instruction"}),(0,me.jsx)(bo,{text:r.instruction})]}),(0,me.jsxs)("dl",{className:"grid gap-px overflow-hidden rounded border border-white/[0.06] bg-white/[0.055]",children:[A.map(u=>(0,me.jsx)(Fy,{label:u.label,children:u.value},u.label)),(0,me.jsx)(Fy,{label:"Destination",children:(0,me.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,me.jsx)(Fs,{"aria-hidden":"true",className:"text-cyan-300/70",size:13}),r.destination.label," \xB7 ",r.destination.visibility]})}),(0,me.jsxs)(Fy,{label:"Created",children:[i," \xB7 ",vz(r.createdAt)]}),(0,me.jsx)(Fy,{label:"Executions",children:(0,me.jsx)(Vge,{task:r})})]}),r.totalRuns>0?(0,me.jsx)("div",{className:"pt-1",children:(0,me.jsx)(Fe,{className:"inline-flex items-center justify-center rounded border border-white/12 bg-white/[0.03] px-3 py-2 font-mono text-xs font-medium text-dashboard-text no-underline transition-colors hover:border-white/25 hover:bg-white/[0.06]",to:`/tasks/${r.kind}/${encodeURIComponent(r.id)}/executions`,children:"View all executions"})}):null]})})]})]})}function Fy(e){return(0,me.jsxs)("div",{className:"min-w-0 bg-[#09090b] px-3 py-3",children:[(0,me.jsx)("dt",{className:"font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted",children:e.label}),(0,me.jsx)("dd",{className:"mt-1.5 ml-0 break-words text-sm leading-relaxed text-dashboard-text",children:e.children})]})}function Vge(e){let{task:t}=e,n=`/tasks/${t.kind}/${encodeURIComponent(t.id)}/executions`;return(0,me.jsxs)("div",{className:"text-sm text-dashboard-text-muted",children:[t.totalRuns>0?(0,me.jsxs)(Fe,{className:"text-dashboard-text underline decoration-white/20 underline-offset-2 hover:decoration-white/60",to:n,children:[t.runsLast7Days," runs / 7d"]}):(0,me.jsxs)("span",{className:"text-dashboard-text",children:[t.runsLast7Days," runs / 7d"]}),(0,me.jsx)("span",{className:"mx-2 opacity-45",children:"\xB7"}),(0,me.jsxs)("span",{children:[t.totalRuns>0?(0,me.jsxs)(Fe,{className:"text-dashboard-text underline decoration-white/20 underline-offset-2 hover:decoration-white/60",to:n,children:[t.totalRuns," total"]}):(0,me.jsxs)(me.Fragment,{children:[t.totalRuns," total"]}),t.lastRunAt?" \xB7 Last execution ":" \xB7 Never run",t.lastRunAt&&t.lastConversationId?(0,me.jsx)(Fe,{className:"text-dashboard-text underline decoration-white/20 underline-offset-2 hover:decoration-white/60",to:Ir(t.lastConversationId),children:t8(t.lastRunAt)}):t.lastRunAt?t8(t.lastRunAt):null]})]})}function vz(e){return Aa(e,{dateStyle:"medium",timeStyle:"short"})}function t8(e){return Aa(e,{day:"numeric",hour:"numeric",minute:"2-digit",month:"short",timeZoneName:"short",year:"numeric"})}var Fz=w(Y(),1);var _t=w(Q(),1),Dz=[{color:"#6ee7b7",key:"scheduled",label:"Scheduled"},{color:"#c4b5fd",key:"event",label:"Event"}];function Sz(e){let[t,n]=(0,Fz.useState)(30),o=e.days.slice(-t),a=720,r=200,i=56,A=12,s=14,u=r-s-34,l=a-i-A,p=o.length>0?l/o.length:l,g=Math.max(2,Math.min(13,p*.68)),f=o.map(m=>m.scheduled+m.event),B=Math.max(1,...f),y=f.some(m=>m>0);return(0,_t.jsxs)(q,{className:"min-h-[17rem] p-4 sm:p-5",children:[(0,_t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,_t.jsxs)("div",{children:[(0,_t.jsx)("h2",{className:"m-0 font-display text-xl font-medium text-dashboard-text",children:"Activity over time"}),(0,_t.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:"Completed scheduled and event task runs each day."})]}),(0,_t.jsx)("div",{"aria-label":"Task execution range",className:"inline-flex rounded border border-white/[0.08] bg-black/20 p-0.5",children:[7,30,90].map(m=>(0,_t.jsxs)("button",{"aria-pressed":t===m,className:S("cursor-pointer rounded-sm border-0 px-2.5 py-1.5 font-mono text-xs uppercase tracking-[0.1em] transition-colors",t===m?"bg-cyan-300/10 text-cyan-100":"bg-transparent text-dashboard-text-muted hover:text-dashboard-text"),onClick:()=>n(m),type:"button",children:[m,"d"]},m))})]}),(0,_t.jsx)("div",{"aria-label":"Task execution legend",className:"mt-4 flex flex-wrap gap-4",children:Dz.map(m=>(0,_t.jsxs)("span",{className:"inline-flex items-center gap-1.5 font-mono text-xs text-dashboard-text-muted",children:[(0,_t.jsx)("i",{className:"size-2 rounded-sm",style:{backgroundColor:m.color}}),m.label]},m.key))}),(0,_t.jsxs)("div",{className:"relative mt-3 overflow-hidden",children:[(0,_t.jsxs)("svg",{"aria-label":`Task executions during the last ${t} days`,className:"block h-auto min-h-40 w-full",role:"img",viewBox:`0 0 ${a} ${r}`,children:[[B,B/2,0].map((m,h)=>{let b=s+h*(u/2);return(0,_t.jsxs)("g",{children:[(0,_t.jsx)("line",{stroke:"rgba(255,255,255,0.07)",strokeDasharray:"3 5",x1:i,x2:a-A,y1:b,y2:b}),(0,_t.jsx)("text",{fill:"rgba(255,255,255,0.34)",fontFamily:"ui-monospace, monospace",fontSize:"12",textAnchor:"end",x:i-7,y:b+3,children:Math.round(m)})]},h)}),o.map((m,h)=>{let b=0,C=i+h*p+(p-g)/2,E=f[h]??0;return(0,_t.jsx)(Ut,{content:(0,_t.jsx)(Eo,{rows:[["scheduled",m.scheduled],["event",m.event],["total",E]]}),label:n8(m.date),children:(0,_t.jsxs)("g",{"aria-label":`${n8(m.date)}: ${m.scheduled} scheduled, ${m.event} event, ${E} total executions`,tabIndex:0,children:[Dz.map(x=>{let R=m[x.key]/B*u;return b+=R,(0,_t.jsx)("rect",{fill:x.color,height:R,opacity:.82,rx:"1",width:g,x:C,y:s+u-b},x.key)}),(0,_t.jsx)("rect",{fill:"transparent",height:u,width:Math.max(g,8),x:C-(Math.max(g,8)-g)/2,y:s})]})},m.date)}),[0,Math.floor((o.length-1)/2),o.length-1].map(m=>{let h=o[m];return h?(0,_t.jsx)("text",{fill:"rgba(255,255,255,0.34)",fontFamily:"ui-monospace, monospace",fontSize:"12",textAnchor:m===0?"start":m===o.length-1?"end":"middle",x:m===0?i:m===o.length-1?a-A:i+m*p+p/2,y:r-9,children:n8(h.date)},h.date):null})]}),y?null:(0,_t.jsx)("div",{className:"pointer-events-none absolute inset-0 grid place-items-center pt-12 font-mono text-xs text-dashboard-text-muted",children:"No task executions in this period."})]})]})}function n8(e){return new Intl.DateTimeFormat("en-US",{day:"numeric",month:"short",timeZone:"UTC"}).format(new Date(`${e}T00:00:00.000Z`))}var W=w(Q(),1),Xge=["all","scheduled","event"],eme=["mine","public"];function tme(e){return Aa(e,{dateStyle:"medium",timeStyle:"short"})}function nme(e){return Aa(e,{day:"numeric",hour:"numeric",minute:"2-digit",month:"short",timeZoneName:"short",year:"numeric"})}function ame(e,t){return[e.createdBy,e.destination.channelId,e.destination.label,e.destination.teamId,e.instruction,e.kind,e.kind==="scheduled"?e.schedule:e.resource,...e.kind==="event"?[e.source]:[],...e.kind==="event"?e.events:[]].join(" ").toLowerCase().includes(t)}function Lz(e){let t=CM(e.enabled),n=Hn(),o=so(),a=dt(),{taskId:r}=On(),[i,A]=Zs("type","all",Xge),[s,c]=Zs("scope","mine",eme),[u,l,p]=FA(),g=p.toLowerCase(),f=k=>vr(k,a.search),B=t.data?.tasks??[],y=B.filter(k=>k.ownedByViewer).length,m=B.filter(k=>k.destination.visibility==="public").length,h=(0,Sy.useMemo)(()=>B.filter(k=>s==="mine"?k.ownedByViewer:k.destination.visibility==="public"),[s,B]),b=(0,Sy.useMemo)(()=>h.filter(k=>(i==="all"||k.kind===i)&&(!g||ame(k,g))),[i,h,g]),C=b.length,E=(0,Sy.useMemo)(()=>B.find(k=>k.id===r),[r,B]),x=rr({mutationFn:async k=>{await Ju(`/api/tasks/${k.kind}/${encodeURIComponent(k.id)}`)},onSuccess:async()=>{await n.invalidateQueries({queryKey:["dashboard","tasks"]})}});return!t.data&&!t.error?(0,W.jsx)(Qe,{label:"Loading tasks"}):(0,W.jsxs)("div",{className:`${xt} px-4 py-8 md:px-8`,children:[(0,W.jsxs)("section",{className:"mx-auto grid w-full max-w-6xl gap-5",children:[(0,W.jsx)(Dt,{description:"Scheduled and event-driven work created by users.",title:"Tasks"}),t.data?.executionDays?.length?(0,W.jsx)(Sz,{days:t.data.executionDays}):null,(0,W.jsxs)(q,{className:"grid gap-4 p-4 lg:grid-cols-[auto_auto_minmax(16rem,1fr)] lg:items-end",children:[(0,W.jsxs)(a8,{label:"Scope",children:[(0,W.jsxs)(Ii,{className:"inline-flex items-center gap-1.5",onClick:()=>c("mine"),pressed:s==="mine",variant:"pill",children:[(0,W.jsx)(Ia,{"aria-hidden":"true",size:13}),"Mine ",(0,W.jsx)("span",{className:"opacity-65",children:y})]}),(0,W.jsxs)(Ii,{className:"inline-flex items-center gap-1.5",onClick:()=>c("public"),pressed:s==="public",variant:"pill",children:[(0,W.jsx)(uo,{"aria-hidden":"true",size:13}),"Public ",(0,W.jsx)("span",{className:"opacity-65",children:m})]})]}),(0,W.jsx)(a8,{label:"Type",children:["all","scheduled","event"].map(k=>(0,W.jsx)(Ii,{onClick:()=>A(k),pressed:i===k,variant:"pill",children:k},k))}),(0,W.jsx)(a8,{label:"Search",children:(0,W.jsx)(Sr,{className:"w-full lg:max-w-sm",label:"Search tasks",onChange:l,placeholder:"Instruction, location, or creator",value:u})})]}),(0,W.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-x-5 gap-y-1 border-b border-white/[0.07] pb-3",children:[(0,W.jsxs)("p",{className:"m-0 font-display text-lg text-dashboard-text",children:[C," ",C===1?"task":"tasks"]}),(0,W.jsx)("p",{className:"m-0 text-xs text-dashboard-text-muted",children:s==="mine"?"Tasks you created, including private destinations.":"All tasks assigned to public destinations in your linked workspaces."})]}),t.error?(0,W.jsx)(q,{padding:"md",children:(0,W.jsx)("p",{className:"m-0 text-sm text-rose-300",children:"Tasks could not be loaded. Try again."})}):C===0?(0,W.jsx)(q,{padding:"md",children:(0,W.jsx)("p",{className:"m-0 text-sm text-dashboard-text-muted",children:ome({filter:i,mineCount:y,publicCount:m,scope:s,search:g})})}):(0,W.jsxs)(q,{children:[(0,W.jsx)(rme,{}),(0,W.jsx)("div",{className:"divide-y divide-white/[0.07]",role:"list",children:b.map(k=>{let R=`${k.kind}:${k.id}`;return(0,W.jsx)(ime,{deleting:x.isPending&&x.variables?.id===k.id,onDelete:()=>{window.confirm(`Delete this ${k.kind} task?`)&&x.mutate(k)},onSelect:()=>o(f(r===k.id?"/tasks":`/tasks/${encodeURIComponent(k.id)}`)),selected:r===k.id,task:k},R)})})]}),t.data?.truncated?(0,W.jsx)("p",{className:"m-0 text-center text-xs text-dashboard-text-muted",children:"Showing up to 100 recent tasks in each scope."}):null,x.error?(0,W.jsx)("p",{className:"m-0 text-center text-sm text-rose-300",children:"The task could not be deleted. Try again."}):null]}),(0,W.jsx)(xz,{onClose:()=>o(f("/tasks")),task:E})]})}function ome(e){return e.search||e.filter!=="all"?"No tasks matched these filters.":e.scope==="mine"&&e.mineCount===0?"You have not created any tasks.":e.scope==="public"&&e.publicCount===0?"No tasks are assigned to public destinations in your linked workspaces.":"No tasks are available."}function a8(e){return(0,W.jsxs)("div",{children:[(0,W.jsx)("div",{className:"mb-2 font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted",children:e.label}),(0,W.jsx)("div",{className:"flex flex-wrap gap-2",role:"group","aria-label":e.label,children:e.children})]})}function rme(){return(0,W.jsxs)("div",{"aria-hidden":"true",className:"hidden grid-cols-[repeat(3,minmax(0,1fr))_auto_auto] items-center gap-3 border-b border-white/[0.07] px-4 py-2.5 text-left font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted lg:grid",children:[(0,W.jsx)("span",{children:"Task"}),(0,W.jsx)("span",{children:"Destination"}),(0,W.jsx)("span",{children:"Trigger"}),(0,W.jsx)("span",{"aria-hidden":"true",className:"size-8"}),(0,W.jsx)("span",{"aria-hidden":"true",className:"size-9"})]})}function ime(e){let{task:t}=e;return(0,W.jsx)("article",{role:"listitem",children:(0,W.jsxs)(vB,{className:"grid grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-3 px-4 py-3 md:grid-cols-[repeat(2,minmax(0,1fr))_auto_auto] lg:grid-cols-[repeat(3,minmax(0,1fr))_auto_auto]",onSelect:e.onSelect,selected:e.selected,children:[(0,W.jsxs)("button",{"aria-expanded":e.selected,className:"flex min-w-0 cursor-pointer items-center gap-3 border-0 bg-transparent p-0 text-left",onClick:e.onSelect,type:"button",children:[(0,W.jsx)(Ame,{task:t}),(0,W.jsxs)("span",{className:"min-w-0",children:[(0,W.jsx)("span",{className:"block truncate font-display text-base font-medium text-dashboard-text",children:t.instruction}),(0,W.jsxs)("span",{className:"mt-1 block truncate font-mono text-xs uppercase tracking-[0.08em] text-dashboard-text-muted",children:[(0,W.jsx)("span",{className:"md:hidden",children:t.destination.label}),(0,W.jsx)("span",{className:"hidden md:inline",children:tme(t.createdAt)})]})]})]}),(0,W.jsxs)("div",{className:"hidden min-w-0 md:block",children:[(0,W.jsx)("div",{className:"truncate text-sm font-medium text-dashboard-text",children:t.destination.label}),(0,W.jsx)("div",{className:"mt-1 font-mono text-xs uppercase tracking-[0.08em] text-dashboard-text-muted",children:t.destination.visibility})]}),(0,W.jsxs)("div",{className:"hidden min-w-0 lg:block",children:[(0,W.jsx)("div",{className:"truncate text-sm text-dashboard-text",children:t.kind==="scheduled"?t.schedule:t.resource}),(0,W.jsx)("div",{className:"mt-1 truncate font-mono text-xs text-dashboard-text-muted",children:t.kind==="scheduled"?t.nextRunAt?`Next ${nme(t.nextRunAt)}`:"No next run":t.events.join(", ")})]}),(0,W.jsx)("button",{"aria-expanded":e.selected,"aria-label":`View task details: ${t.instruction}`,className:"grid size-8 cursor-pointer place-items-center rounded border border-transparent bg-transparent text-dashboard-text-muted transition-colors hover:border-white/10 hover:bg-white/[0.04] hover:text-dashboard-text",onClick:e.onSelect,type:"button",children:(0,W.jsx)(hi,{"aria-hidden":"true",className:S("transition-transform",e.selected&&"translate-x-0.5 text-cyan-200"),size:16})}),t.ownedByViewer?(0,W.jsx)(lt,{"aria-label":`Delete: ${t.instruction}`,disabled:e.deleting,onClick:e.onDelete,size:"icon",title:"Delete task",children:(0,W.jsx)(Po,{"aria-hidden":"true",size:15})}):(0,W.jsx)("span",{"aria-hidden":"true",className:"size-8"})]})})}function Ame(e){let{task:t}=e;if(t.kind==="scheduled")return(0,W.jsx)("div",{"aria-label":"Scheduled task",className:"grid size-9 shrink-0 place-items-center rounded border border-white/[0.08] bg-white/[0.03] text-cyan-300/75",role:"img",title:"Scheduled task",children:(0,W.jsx)(Qp,{"aria-hidden":"true",size:16})});let n=t.source.trim(),o=n.toLowerCase(),a=o==="github",r=a?"GitHub":o==="pagerduty"?"PagerDuty":n,i=o==="pagerduty"?"PD":n.slice(0,2).toUpperCase();return(0,W.jsx)("div",{"aria-label":`${r} event task`,className:"grid size-9 shrink-0 place-items-center rounded border border-white/[0.08] bg-white/[0.03] text-cyan-300/75",role:"img",title:`${r} event task`,children:a?(0,W.jsx)(sme,{}):(0,W.jsx)("span",{className:"font-mono text-xs font-semibold uppercase tracking-[0.08em]",children:i})})}function sme(){return(0,W.jsx)("svg",{"aria-hidden":"true",className:"size-[18px]",fill:"currentColor",viewBox:"0 0 24 24",children:(0,W.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.418-1.305.762-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.793 1.23 1.1-.306 2.28-.459 3.45-.465 1.17.006 2.35.159 3.45.465 2.79-1.552 3.795-1.23 3.795-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.435.375.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})})}var O=w(Q(),1),cme={backgroundColor:"#050507",backgroundImage:"radial-gradient(ellipse at 50% 0%, transparent 0%, #050507 70%), linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px)",backgroundSize:"100% 100%, 40px 40px, 40px 40px"},ume={backgroundImage:`url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.7'/%3E%3C/svg%3E")`};function Rz(){let e=dt(),t=hM(),n=BM(),o=t.data,a=n.data??[];o&&z5(o.config.timeZone);let r=!o&&!t.error,i=!!(o?.config.authRequired&&o.me.user.email),A=QM(i),s=i?a.filter(g=>g.navigation==="primary"):[],c=e.pathname==="/"||e.pathname==="/conversations"||e.pathname.startsWith("/conversations/"),u=e.pathname.startsWith("/conversations/")&&e.pathname!=="/conversations/";async function l(){await fetch(`${o?.config.authPath??"/api/auth"}/sign-out`,{credentials:"same-origin",method:"POST"}),window.location.assign(o?.config.basePath??"/")}let p=({isActive:g})=>S("shrink-0 whitespace-nowrap rounded-md px-2.5 py-2 font-mono text-xs font-medium uppercase tracking-[0.08em] no-underline transition-colors sm:tracking-[0.12em]",g?"bg-cyan-300/[0.1] text-cyan-50":S("hover:bg-white/[0.035]",EA));return(0,O.jsxs)("main",{className:S("relative grid font-mono text-dashboard-text",c?S("h-dvh min-h-0 overflow-hidden",u?"grid-rows-[minmax(0,1fr)] md:grid-rows-[auto_minmax(0,1fr)]":"grid-rows-[auto_minmax(0,1fr)]"):"min-h-screen grid-rows-[auto_1fr]"),style:cme,children:[(0,O.jsx)("header",{className:S("sticky top-0 z-10 border-b border-white/[0.05] bg-[#050507]/95",u&&"max-md:hidden"),children:(0,O.jsxs)("div",{className:S(xt,"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-4 gap-y-2 px-4 py-3 md:gap-x-5 md:gap-y-3 md:py-4",i?"md:grid-cols-[auto_minmax(0,1fr)_auto]":"md:grid-cols-[auto_minmax(0,1fr)]",c?"md:px-4":"md:px-8"),children:[(0,O.jsx)(Fe,{"aria-label":`${it()} home`,className:"flex min-w-0 max-w-full items-center justify-self-start text-inherit no-underline",to:"/",children:(0,O.jsx)(Mh,{})}),(0,O.jsxs)("nav",{className:"col-span-2 row-start-2 flex min-w-0 items-center gap-1 overflow-x-auto [scrollbar-width:none] md:col-span-1 md:col-start-2 md:row-start-1 md:justify-self-start md:overflow-visible [&::-webkit-scrollbar]:hidden",children:[(0,O.jsx)(Fe,{"aria-current":c?"page":void 0,className:p({isActive:c}),to:"/",children:"Conversations"}),i?(0,O.jsx)(Ca,{className:p,to:"/tasks",children:"Tasks"}):null,s.map(g=>(0,O.jsx)(Ca,{className:p,to:NB(g.pluginName,g.id),children:g.label},`${g.pluginName}:${g.id}`)),(0,O.jsx)(Ca,{className:p,to:"/system",children:"System"})]}),i?(0,O.jsx)("div",{className:"col-start-2 row-start-1 justify-self-end md:col-start-3",children:(0,O.jsx)(NU,{identity:o.me,onSignOut:l,spend:A.data,userPages:a})}):null]})}),(0,O.jsxs)(ZE,{children:[(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading task executions"}):i?(0,O.jsx)(_z,{enabled:i}):(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/tasks/:kind/:taskId/executions"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading tasks"}):i?(0,O.jsx)(Lz,{enabled:i}):(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/tasks/:taskId?"}),(0,O.jsx)(jt,{element:(0,O.jsx)(o8,{section:"locations"}),path:"/locations"}),(0,O.jsx)(jt,{element:(0,O.jsx)(o8,{section:"locations"}),path:"/locations/:locationId"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading locations"}):(0,O.jsx)(Zq,{}),path:"/system/locations"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading location"}):(0,O.jsx)(zq,{}),path:"/system/locations/:locationId"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading your conversations"}):o?(0,O.jsx)(KF,{data:o}):(0,O.jsx)(Qe,{label:t.error?.message??"Dashboard unavailable"}),path:"/"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading your conversations"}):o?(0,O.jsx)(KF,{data:o}):(0,O.jsx)(Qe,{label:t.error?.message??"Dashboard unavailable"}),path:"/conversations/:conversationId"}),(0,O.jsx)(jt,{element:(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/conversations"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading components"}):o?o.config.componentGallery?(0,O.jsx)(Gq,{}):(0,O.jsx)(vt,{replace:!0,to:"/"}):(0,O.jsx)(Qe,{label:t.error?.message??"Dashboard unavailable"}),path:"/dev/*"}),(0,O.jsx)(jt,{element:(0,O.jsx)(o8,{section:"people"}),path:"/people"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading profile"}):(0,O.jsx)(Az,{}),path:"/people/:email"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading people"}):(0,O.jsx)(nz,{}),path:"/system/people"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading system"}):o?(0,O.jsx)(dme,{coreData:o}):(0,O.jsx)(Qe,{label:t.error?.message??"Dashboard unavailable"}),path:"/system/*"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading API tokens"}):i?(0,O.jsx)(az,{}):(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/settings/api-tokens"}),(0,O.jsx)(jt,{element:r||n.isPending?(0,O.jsx)(Qe,{label:"Loading memory"}):i&&n.data?(0,O.jsx)(tF,{pages:n.data}):(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/memories/:memoryId?"}),(0,O.jsx)(jt,{element:r||n.isPending?(0,O.jsx)(Qe,{label:"Loading memories"}):i&&n.data?(0,O.jsx)(tF,{pages:n.data}):(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/memories/library"}),(0,O.jsx)(jt,{element:r||n.isPending?(0,O.jsx)(Qe,{label:"Loading page"}):i&&n.data?(0,O.jsx)(RU,{pages:n.data}):(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/plugins/:pluginName/:pageId/*"}),(0,O.jsx)(jt,{element:(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"*"})]}),(0,O.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none fixed inset-0 z-50 block opacity-[0.018]",style:ume})]})}function o8(e){let t=dt(),n=`/${e.section}`,o=t.pathname.slice(n.length);return(0,O.jsx)(vt,{replace:!0,to:`/system/${e.section}${o}${t.search}${t.hash}`})}function dme(e){let t=vM(e.coreData);return!t.data&&!t.error?(0,O.jsx)(Qe,{label:"Loading system"}):t.data?(0,O.jsx)(Cz,{data:t.data}):(0,O.jsx)(Qe,{label:t.error?.message??"System unavailable"})}var Ya=w(Q(),1),r8=class extends Nz.Component{state={error:null};static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){let o=t.stack??n.componentStack;window.__JUNIOR_DASHBOARD_SHOW_ERROR__?.(o?new Error(o):t)}render(){return this.state.error?(0,Ya.jsx)(lme,{error:this.state.error}):this.props.children}};function lme(e){return(0,Ya.jsx)("main",{className:"grid min-h-screen place-items-center bg-black p-8 text-white",children:(0,Ya.jsxs)("section",{className:"w-full max-w-5xl border border-rose-400/50 bg-[#0b0b0b] p-5 font-sans",children:[(0,Ya.jsx)("div",{className:"font-mono text-xs uppercase leading-none text-[#888]",children:"Dashboard Error"}),(0,Ya.jsxs)("h1",{className:"mt-2 text-3xl font-bold leading-tight tracking-normal",children:[it()," failed to render"]}),(0,Ya.jsx)("p",{className:"my-4 max-w-3xl text-[#b8b8b8]",children:"The dashboard hit a client-side exception. The stack trace is shown here so the page does not fail blank."}),(0,Ya.jsx)("pre",{className:"max-h-[60vh] overflow-auto whitespace-pre-wrap break-words border border-white/10 bg-black p-4 font-mono text-sm leading-relaxed text-white",children:e.error.stack??e.error.message})]})})}var Mz=document.getElementById("dashboard-root");if(!Mz)throw new Error("Junior dashboard root element was not found");var pme=new qy({defaultOptions:{queries:{staleTime:3e4}}});(0,$z.createRoot)(Mz).render((0,Ya.jsx)(r8,{children:(0,Ya.jsx)(eC,{client:pme,children:(0,Ya.jsx)(nk,{basename:window.__JUNIOR_DASHBOARD_BASE_PATH__??"/",children:(0,Ya.jsx)(Rz,{})})})}));
|
|
135
|
+
See https://docs.sentry.io for product docs.`,Pq=hy(14).map((e,t)=>({conversations:4+t*5%17,costUsd:.7+t*7%11*.18,date:e,durationMs:9e4+t*41%13*24e3,tokens:18e3+t*17%19*2300})),mge=hy(30).map((e,t)=>({activePeople:4+t*7%13,conversations:18+t*11%31,date:e})),fge=hy(30).map((e,t)=>({date:e,privateConversations:3+t*5%12,publicConversations:12+t*9%28})),bge=hy(70).map((e,t)=>({conversations:t%9===0?0:1+t*7%18,date:e,durationMs:t%9===0?0:45e3+t*13%20*18e3})),ko=Date.UTC(2026,4,1,16),hge=[{description:"Default completed tool with normalized arguments",part:{id:"gallery-search",input:{query:"release regression",limit:25,options:{includeArchived:!1}},name:"searchIssues",output:{matches:3},resultTimestamp:ko+1842,status:"completed",type:"tool_call"},timestamp:ko},{description:"Running webSearch with name-only shimmer",part:{id:"gallery-running",input:{query:"service:checkout status:error",max_results:50},name:"webSearch",status:"running",type:"tool_call"},timestamp:ko+3e3},{description:"Failed tool with warning rail marker",part:{id:"gallery-error",input:{command:"jr-rpc config get github.repo",timeout_ms:1e4},name:"bash",output:{error:"configuration unavailable"},resultTimestamp:ko+6416,status:"error",type:"tool_call"},timestamp:ko+6e3},{description:"Known loadSkill signature",part:{id:"gallery-load-skill",input:{skill_name:"junior-qa"},name:"loadSkill",output:{skill_name:"junior-qa"},resultTimestamp:ko+8105,status:"completed",type:"tool_call"},timestamp:ko+8e3},{description:"Known executeTool signature with nested arguments",part:{id:"gallery-execute-tool",input:{tool_name:"github_search",arguments:{query:"is:pr is:open",limit:25}},name:"executeTool",output:{matches:3},resultTimestamp:ko+10723,status:"completed",type:"tool_call"},timestamp:ko+1e4},{description:"Long generic arguments exercise both truncation limits",part:{id:"gallery-long",input:{project:"payments-checkout-platform",query:"Find every regression associated with the most recent production deployment and include the complete evidence trail",environment:"production",includeResolved:!1,ignoredAfterFourEntries:"not shown in the collapsed preview"},name:"investigateDeploy",output:{channel_id:"C123"},resultTimestamp:ko+13250,status:"completed",type:"tool_call"},timestamp:ko+12e3},{description:"Completed tool without argument or result payloads",part:{id:"gallery-empty",name:"systemTime",status:"completed",type:"tool_call"},timestamp:ko+15e3}];function Gq(){let[e,t]=(0,WF.useState)(30),[n,o]=(0,WF.useState)(!0);return(0,ee.jsxs)("div",{className:S(xt,"grid min-w-0 gap-8 px-4 py-4 sm:px-8 sm:py-8"),children:[(0,ee.jsx)(Dt,{description:"Reusable dashboard fixtures for visual and interaction checks.",title:"Component gallery"}),(0,ee.jsxs)(JF,{description:"Shared actions, filters, metrics, and feedback surfaces.",title:"Foundations",children:[(0,ee.jsx)(cc,{title:"Buttons and controls",children:(0,ee.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,ee.jsxs)(lt,{children:[(0,ee.jsx)(Ds,{"aria-hidden":"true",size:14}),"Copy"]}),(0,ee.jsx)(lt,{disabled:!0,children:"Disabled"}),(0,ee.jsx)(lt,{"aria-label":"Bot action",size:"icon",children:(0,ee.jsx)(yr,{"aria-hidden":"true",size:16})}),(0,ee.jsx)(Ii,{pressed:n,variant:"pill",onClick:()=>o(a=>!a),children:"Toggle"}),(0,ee.jsx)(Ii,{pressed:!n,variant:"text",onClick:()=>o(a=>!a),children:"Alternate"}),(0,ee.jsx)(Xo,{onChange:t,value:e})]})}),(0,ee.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4",children:[(0,ee.jsx)(Qt,{detail:"Across the selected period",icon:Ta,label:"Conversations",value:"1,284"}),(0,ee.jsx)(Qt,{detail:"94% completed successfully",icon:No,label:"Completed",value:"1,207"}),(0,ee.jsx)(Qt,{detail:"Cumulative agent runtime",icon:Up,label:"Runtime",value:"18.4h"}),(0,ee.jsx)(Qt,{detail:"Model and tool workers",icon:yr,label:"Active agents",value:"7"})]}),(0,ee.jsx)(cc,{title:"Metadata and empty state",children:(0,ee.jsxs)("div",{className:"grid gap-4",children:[(0,ee.jsx)(oy,{items:[{content:(0,ee.jsx)(Pr,{tooltip:[{label:"input",value:"12.4k"},{label:"output",value:"3.1k"}],children:"15.5k tokens"}),key:"tokens"},{content:(0,ee.jsx)(Pr,{children:"$0.42"}),key:"cost"},{content:(0,ee.jsx)(Pr,{children:"38s"}),key:"duration"}]}),(0,ee.jsx)(en,{children:"No activity was recorded for this period."})]})})]}),(0,ee.jsxs)(JF,{description:"Production chart components rendered with deterministic fixtures.",title:"Charts",children:[(0,ee.jsx)(by,{days:Pq}),(0,ee.jsx)(fd,{days:Pq}),(0,ee.jsx)(fy,{days:mge}),(0,ee.jsx)(gy,{days:fge}),(0,ee.jsxs)(q,{children:[(0,ee.jsx)(wo,{description:"Daily conversation intensity over ten weeks.",title:"Contribution activity"}),(0,ee.jsx)(my,{days:bge})]})]}),(0,ee.jsxs)(JF,{description:"Markdown, event notifications, and transcript role treatments.",title:"Transcripts",children:[(0,ee.jsx)(cc,{title:"Event notification",children:(0,ee.jsx)(Cg,{compact:!0,text:jq})}),(0,ee.jsx)(cc,{title:"GFM sample",children:(0,ee.jsx)(Cg,{text:pge})}),(0,ee.jsx)(cc,{title:"TranscriptText assistant",children:(0,ee.jsx)(bo,{role:"assistant",text:gge})}),(0,ee.jsx)(cc,{title:"TranscriptText user",children:(0,ee.jsx)(bo,{role:"user",text:jq})}),(0,ee.jsx)(cc,{title:"Tool calls",children:(0,ee.jsx)(Bge,{})})]})]})}function Bge(){return(0,ee.jsxs)("div",{className:"grid min-w-0 grid-cols-[0.875rem_minmax(0,1fr)] gap-3",children:[(0,ee.jsx)("div",{"aria-hidden":"true",className:"flex justify-center",children:(0,ee.jsx)("span",{className:"w-px bg-cyan-300/15"})}),(0,ee.jsxs)("div",{className:"grid min-w-0 gap-3",children:[(0,ee.jsx)("p",{className:"m-0 text-xs leading-relaxed text-dashboard-text-muted",children:"Click any row to compare its collapsed signature with the full arguments and result."}),hge.map(e=>(0,ee.jsxs)("div",{className:"grid min-w-0 gap-1",children:[(0,ee.jsx)("div",{className:"font-mono text-xs uppercase tracking-[0.08em] text-dashboard-text-muted",children:e.description}),(0,ee.jsx)(Pg,{part:e.part,timestamp:e.timestamp})]},e.part.id))]})]})}function JF(e){return(0,ee.jsxs)("section",{className:"grid min-w-0 gap-4",children:[(0,ee.jsxs)("div",{children:[(0,ee.jsx)("h2",{className:"m-0 font-display text-xl font-medium text-dashboard-text",children:e.title}),(0,ee.jsx)("p",{className:"mt-1 mb-0 text-sm text-dashboard-text-muted",children:e.description})]}),e.children]})}function cc(e){return(0,ee.jsxs)(q,{className:"grid min-w-0 gap-3 p-4 sm:p-5",padding:"none",children:[(0,ee.jsx)("div",{className:"border-b border-white/[0.05] pb-3 font-mono text-xs font-medium uppercase tracking-[0.14em] text-dashboard-text-muted",children:e.title}),(0,ee.jsx)("div",{className:"min-w-0",children:e.children})]})}function hy(e){let t=Date.UTC(2026,4,1);return Array.from({length:e},(n,o)=>new Date(t+o*864e5).toISOString().slice(0,10))}var Hq=w(Q(),1);function By(e){return(0,Hq.jsx)("div",{className:S(xt,"grid min-w-0 content-start gap-4 px-4 py-4 sm:gap-6 sm:px-8 sm:py-8",e.className),children:e.children})}var uc="/system/plugins";function Uq(e){let t=new Map(e.plugins.map(n=>[n.name,{...n,reports:[],skills:[]}]));for(let n of e.skills){let o=n.pluginProvider?t.get(n.pluginProvider):void 0;o&&o.skills.push(n)}for(let n of e.reports)t.get(n.pluginName)?.reports.push(n);return[...t.values()].map(n=>({...n,reports:[...n.reports],skills:[...n.skills].sort((o,a)=>o.name.localeCompare(a.name))})).sort((n,o)=>n.displayName.localeCompare(o.displayName))}function yy(e){return`${uc}/${encodeURIComponent(e)}`}function Tq(e){return e.replace(/\/+$/,"")||"/"}var TA=w(Q(),1);function Oq(){let e=({isActive:t})=>S("relative flex h-12 shrink-0 items-center px-3 font-display text-xs font-medium no-underline transition-colors after:absolute after:inset-x-3 after:bottom-0 after:h-0.5 after:transition-colors sm:text-sm",t?"text-dashboard-text after:bg-cyan-300":S("after:bg-transparent hover:bg-white/[0.025]",EA));return(0,TA.jsx)("div",{className:"border-b border-white/[0.06] bg-white/[0.018]",children:(0,TA.jsxs)("nav",{"aria-label":"System navigation",className:S(xt,"flex min-w-0 gap-1 overflow-x-auto px-4 [scrollbar-width:none] md:px-8 [&::-webkit-scrollbar]:hidden"),children:[(0,TA.jsx)(Ca,{className:e,end:!0,to:"/system",children:"Overview"}),(0,TA.jsx)(Ca,{className:e,to:"/system/people",children:"People"}),(0,TA.jsx)(Ca,{className:e,to:"/system/locations",children:"Locations"}),(0,TA.jsx)(Ca,{className:e,to:uc,children:"Plugins"})]})})}var Gg=w(Q(),1);function OA(e){return(0,Gg.jsxs)("div",{className:"min-w-0",children:[(0,Gg.jsx)(Oq,{}),(0,Gg.jsx)(By,{children:e.children})]})}var Gn=w(Q(),1);function qq(e){let t=Hr(240),n=Math.max(1,...e.days.map(r=>r.conversations)),o=t.plotWidth/Math.max(1,e.days.length),a=Math.max(4,Math.min(20,o*.55));return(0,Gn.jsxs)(q,{children:[(0,Gn.jsx)(wo,{description:"Daily persisted conversations for this location.",title:"Conversation activity",trailing:(0,Gn.jsxs)("span",{className:"flex items-center gap-2",children:[(0,Gn.jsx)("span",{className:"size-2 rounded-full bg-cyan-400 shadow-[0_0_12px_rgba(34,211,238,0.5)]"}),"90 days"]})}),(0,Gn.jsx)("div",{className:"px-2 py-3 sm:px-4 sm:py-4",children:(0,Gn.jsxs)("svg",{"aria-label":"Daily conversations for this location",className:"block h-auto min-h-52 w-full overflow-visible",role:"img",viewBox:`0 0 ${t.width} ${t.height}`,children:[(0,Gn.jsx)("defs",{children:(0,Gn.jsxs)("linearGradient",{id:"location-bars",x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,Gn.jsx)("stop",{offset:"0%",stopColor:"#22d3ee"}),(0,Gn.jsx)("stop",{offset:"100%",stopColor:"#f59e0b",stopOpacity:"0.65"})]})}),(0,Gn.jsx)(Ur,{layout:t,maximum:n}),e.days.map((r,i)=>{let A=r.conversations/n*t.plotHeight,s=t.left+i*o+(o-a)/2,c=t.top+t.plotHeight-A;return(0,Gn.jsx)(Ut,{content:(0,Gn.jsx)(Eo,{rows:[["conversations",r.conversations],["active",r.active],["failed",r.failed]]}),label:Wn(r.date),children:(0,Gn.jsx)("rect",{"aria-label":`${Wn(r.date)}: ${r.conversations} conversations, ${r.active} active, ${r.failed} failed`,fill:"url(#location-bars)",height:Math.max(r.conversations?2:0,A),opacity:r.conversations?.9:.18,rx:"2",tabIndex:0,width:a,x:s,y:c})},r.date)}),(0,Gn.jsx)(Tr,{dates:e.days.map(r=>r.date),layout:t,xPosition:r=>t.left+r*o+o/2})]})})]})}var xe=w(Q(),1);function zq(){let e=On(),t=_M(e.locationId);return(0,xe.jsx)(yge,{data:t.data,error:t.error})}function yge(e){return!e.data&&!e.error?(0,xe.jsx)(Qe,{label:"Loading location"}):(0,xe.jsxs)(OA,{children:[e.error?(0,xe.jsx)(q,{padding:"sm",children:(0,xe.jsx)(en,{children:e.data?"Location telemetry refresh failed. Showing cached data.":"Location failed to load."})}):null,e.data?(0,xe.jsx)(Cge,{detail:e.data}):null]})}function Cge(e){let t=e.detail;return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Dt,{description:`${t.provider} public ${t.kind} / ${t.providerDestinationId} / last active ${ed(t.lastSeenAt)}`,title:t.label}),(0,xe.jsxs)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:[(0,xe.jsx)(Qt,{detail:"Persisted conversations",icon:Ta,label:"Conversations",value:ae(t.conversations)}),(0,xe.jsx)(Qt,{detail:"Verified people seen here",icon:Ss,label:"People",value:ae(t.actors.length)}),(0,xe.jsx)(Qt,{detail:"Persisted model usage",icon:xs,label:"Tokens",value:ae(t.tokens??0)}),(0,xe.jsx)(Qt,{detail:"Cumulative conversation runtime",icon:Mo,label:"Runtime",value:(0,xe.jsx)(Oo,{value:t.durationMs})})]}),(0,xe.jsx)(qq,{days:t.activityDays}),(0,xe.jsxs)(q,{children:[(0,xe.jsxs)("div",{className:"flex items-center gap-3 border-b border-white/[0.06] px-4 py-4",children:[(0,xe.jsx)("span",{className:"grid size-9 place-items-center rounded border border-cyan-400/15 bg-cyan-400/[0.06] text-cyan-300",children:(0,xe.jsx)(Fs,{"aria-hidden":"true",size:16})}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("h3",{className:"m-0 font-mono text-xs font-medium uppercase tracking-[0.14em] text-dashboard-text-muted",children:"People seen here"}),(0,xe.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs text-dashboard-text-muted",children:"Verified contributors across persisted conversations."})]})]}),t.actors.length?(0,xe.jsx)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3",children:t.actors.slice(0,9).map((n,o)=>{let a=[n.actor.email,n.actor.slackUserId,n.actor.slackUserName,n.actor.fullName,o].join(":"),r=(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)("div",{className:"truncate font-display text-base font-medium text-dashboard-text",children:n.label}),(0,xe.jsxs)("div",{className:"mt-1 font-mono text-xs text-dashboard-text-muted",children:[ae(n.conversations)," conversations /"," ",(0,xe.jsx)(Oo,{value:n.durationMs})]})]}),i="min-w-0 border-b border-r border-white/[0.055] px-4 py-3.5 transition-colors hover:bg-white/[0.03]";return n.actor.email?(0,xe.jsx)(Fe,{className:`${i} text-inherit no-underline`,to:_r(n.actor.email),children:r},a):(0,xe.jsx)("div",{className:i,children:r},a)})}):(0,xe.jsx)("div",{className:"p-4",children:(0,xe.jsx)(en,{children:"No verified people have been recorded here."})})]})]})}var Iy=w(Y(),1);var bd=w(Q(),1);function Cy(e){return(0,bd.jsxs)("label",{className:"grid h-9 min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center overflow-hidden rounded-lg border border-white/10 bg-white/[0.025] transition-colors hover:border-white/20 focus-within:border-amber-500/35 focus-within:ring-1 focus-within:ring-amber-500/15",children:[(0,bd.jsx)("span",{className:"flex h-full items-center border-r border-white/[0.07] px-2 font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted",children:"Sort"}),(0,bd.jsx)("select",{"aria-label":e.ariaLabel,className:"h-full min-w-0 bg-dashboard-control px-2 font-mono text-xs text-dashboard-text-muted outline-none [color-scheme:dark]",value:e.value,onChange:t=>e.onChange(t.currentTarget.value),children:e.options.map(t=>(0,bd.jsx)("option",{className:"bg-dashboard-control text-dashboard-text",value:t.value,children:t.label},t.value))})]})}var er=w(Q(),1);function Yq(e){let t=e.wideRuntime?"grid-cols-[minmax(14rem,1fr)_repeat(2,minmax(5rem,auto))_minmax(8rem,auto)] max-md:grid-cols-3":"grid-cols-[minmax(14rem,1fr)_repeat(3,minmax(5rem,auto))] max-md:grid-cols-3";return(0,er.jsxs)("div",{"aria-label":"Loading sorted results",className:"min-w-0 animate-pulse",role:"status",children:[Array.from({length:5},(n,o)=>(0,er.jsxs)("div",{"aria-hidden":"true",className:`grid min-w-0 ${t} items-center gap-4 border-b border-white/[0.055] px-4 py-3.5 last:border-b-0 max-md:gap-x-3 max-md:gap-y-4`,children:[(0,er.jsxs)("div",{className:"flex min-w-0 items-center gap-3 max-md:col-span-3",children:[(0,er.jsx)("span",{className:"size-9 shrink-0 rounded bg-white/[0.07]"}),(0,er.jsxs)("div",{className:"grid min-w-0 flex-1 gap-2",children:[(0,er.jsx)("span",{className:"h-3.5 w-2/5 rounded bg-white/[0.08]"}),(0,er.jsx)("span",{className:"h-2.5 w-3/5 rounded bg-white/[0.045]"})]})]}),[0,1,2].map(a=>(0,er.jsx)("span",{className:"h-4 w-10 justify-self-end rounded bg-white/[0.06]"},a))]},o)),(0,er.jsx)("span",{className:"sr-only",children:"Loading sorted results"})]})}var va=w(Q(),1),Kq="grid-cols-[minmax(14rem,1fr)_repeat(2,minmax(5rem,auto))_minmax(8rem,auto)]";function wy(e){return(0,va.jsx)("div",{className:S("grid min-w-0 gap-2 border-b border-white/[0.06] bg-black/15 p-3",e.columnsClassName),children:e.children})}function Ey(e){return e.loading?(0,va.jsx)(Yq,{wideRuntime:!0}):e.empty?(0,va.jsx)("div",{className:"p-4",children:e.empty}):(0,va.jsxs)("div",{"aria-label":e.ariaLabel,className:"min-w-0",children:[(0,va.jsx)("div",{"aria-hidden":"true",className:S("grid items-center gap-4 border-b border-white/[0.06] bg-black/20 px-4 py-2.5 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted max-md:hidden",Kq),children:e.headers.map((t,n)=>(0,va.jsx)("div",{className:n?"justify-self-end":void 0,children:t},t))}),e.children]})}function ky(e){return(0,va.jsx)(Fe,{className:S("group grid min-w-0 items-center gap-4 border-b border-white/[0.055] px-4 py-3.5 text-inherit no-underline transition-colors last:border-b-0 hover:bg-white/[0.035] max-md:grid-cols-3 max-md:gap-x-3 max-md:gap-y-4",Kq),to:e.to,children:e.children})}function Qy(e){return(0,va.jsxs)("div",{className:"flex min-w-0 items-center gap-3 max-md:col-span-3",children:[(0,va.jsx)("span",{className:S("grid size-9 shrink-0 place-items-center rounded border border-white/10 transition-colors",e.iconClassName),children:e.icon}),(0,va.jsxs)("div",{className:"min-w-0",children:[(0,va.jsx)("div",{className:"truncate font-display text-base font-medium leading-tight text-dashboard-text",children:e.title}),e.description?(0,va.jsx)("div",{className:"mt-1 truncate font-mono text-xs leading-tight text-dashboard-text-muted",children:e.description}):null]})]})}var hd=w(Q(),1);function qA(e){return(0,hd.jsxs)("div",{className:"justify-self-end text-right max-md:justify-self-stretch max-md:text-left",children:[(0,hd.jsx)("div",{"aria-hidden":"true",className:"mb-1 hidden font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted max-md:block",children:e.label}),(0,hd.jsxs)("div",{className:"font-display text-xl font-light leading-none text-dashboard-text md:font-mono md:text-xs md:text-dashboard-text-muted",children:[(0,hd.jsxs)("span",{className:"sr-only",children:[e.label,": "]}),e.value]})]})}var yn=w(Q(),1);function Jq(e){return(0,yn.jsxs)(q,{children:[(0,yn.jsx)(wo,{description:`${e.locations.length} of ${e.totalLocations} public locations`,title:"Public directory"}),(0,yn.jsxs)(wy,{columnsClassName:"md:grid-cols-[minmax(14rem,1fr)_minmax(11rem,15rem)]",children:[(0,yn.jsx)(Sr,{label:"Search locations",placeholder:"Search channel name...",value:e.query,onChange:e.onQueryChange}),(0,yn.jsx)(Cy,{ariaLabel:"Sort locations",onChange:t=>e.onSortChange(t),options:[{label:"Most conversations",value:"conversations"},{label:"Recently active",value:"recent"},{label:"Most tokens",value:"tokens"},{label:"Most runtime",value:"runtime"}],value:e.sort})]}),(0,yn.jsx)(Ey,{ariaLabel:"Public location directory results",empty:e.locations.length===0?(0,yn.jsx)(en,{children:"No public locations match this search."}):void 0,headers:["Location","Conversations","Tokens","Runtime"],loading:e.loading,children:e.locations.map(t=>(0,yn.jsxs)(ky,{to:nU(t.id),children:[(0,yn.jsx)(Qy,{description:(0,yn.jsxs)(yn.Fragment,{children:["Last active ",ed(t.lastSeenAt)]}),icon:(0,yn.jsx)(Lp,{"aria-hidden":"true",size:16,strokeWidth:1.8}),iconClassName:"bg-cyan-400/[0.06] text-cyan-300 group-hover:border-cyan-400/25",title:t.label}),(0,yn.jsx)(qA,{label:"Conversations",value:ae(t.conversations)}),(0,yn.jsx)(qA,{label:"Tokens",value:ae(t.tokens??0)}),(0,yn.jsx)(qA,{label:"Runtime",value:(0,yn.jsx)(Oo,{value:t.durationMs})})]},t.id))})]})}var Qo=w(Q(),1);function Wq(e){return(0,Qo.jsx)(q,{className:"opacity-80",padding:"sm",children:(0,Qo.jsxs)("div",{className:"grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3 max-sm:grid-cols-[auto_minmax(0,1fr)]",children:[(0,Qo.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded border border-white/[0.08] bg-white/[0.025] text-dashboard-text-muted",children:(0,Qo.jsx)(Bi,{"aria-hidden":"true",size:15})}),(0,Qo.jsxs)("div",{className:"min-w-0",children:[(0,Qo.jsx)("div",{className:"font-display text-base font-medium text-dashboard-text",children:"Private activity"}),(0,Qo.jsx)("div",{className:"mt-1 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:"DMs, private channels, and unknown visibility stay combined and unlinked."})]}),(0,Qo.jsxs)("div",{className:"text-right max-sm:col-start-2 max-sm:text-left",children:[(0,Qo.jsx)("div",{className:"font-display text-2xl font-light text-dashboard-text",children:ae(e.item.conversations)}),(0,Qo.jsx)("div",{className:"font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:"conversations"})]})]})})}var an=w(Q(),1),wge=["conversations","recent","runtime","tokens"];function Zq(){let e=IM();return(0,an.jsx)(Ege,{data:e.data,error:e.error})}function Ege(e){let[t,n]=(0,Iy.useState)(90),[o,a]=Zs("sort","conversations",wge),r=(0,Iy.useDeferredValue)(o),[i,A,s]=FA();if(!e.data&&!e.error)return(0,an.jsx)(Qe,{label:"Loading locations"});let c=kge(e.data?.locations??[],s,r),u=e.data?.activityDays.slice(-t)??[],l=e.data?.locations.reduce((g,f)=>g+f.conversations,0)??0,p=e.data?.locations.reduce((g,f)=>g+f.durationMs,0)??0;return(0,an.jsxs)(OA,{children:[(0,an.jsx)(Dt,{actions:(0,an.jsx)(Xo,{onChange:n,value:t}),description:e.error&&!e.data?"Locations failed to load.":`See the public channels where ${it()} has been working and how busy they've been.`,title:"Locations"}),e.error?(0,an.jsx)(q,{padding:"sm",children:(0,an.jsx)(en,{children:e.data?"Location telemetry refresh failed. Showing cached data.":"Location telemetry is unavailable. Try refreshing the dashboard."})}):null,e.data?(0,an.jsxs)(an.Fragment,{children:[(0,an.jsxs)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:[(0,an.jsx)(Qt,{detail:"Named public destinations",icon:jp,label:"Public locations",value:ae(e.data.locations.length)}),(0,an.jsx)(Qt,{detail:"Across public destinations",icon:Ta,label:"Conversations",value:ae(l)}),(0,an.jsx)(Qt,{detail:"Cumulative public runtime",icon:Mo,label:"Runtime",value:(0,an.jsx)(Oo,{value:p})}),(0,an.jsx)(Qt,{detail:"Combined to preserve privacy",icon:Bi,label:"Private conversations",value:ae(e.data.privateActivity.conversations)})]}),(0,an.jsx)(gy,{days:u}),(0,an.jsx)(Jq,{loading:o!==r,locations:c,onQueryChange:A,onSortChange:a,query:i,sort:o,totalLocations:e.data.locations.length}),e.data.privateActivity.conversations>0?(0,an.jsx)(Wq,{item:e.data.privateActivity}):null]}):null]})}function kge(e,t,n){let o=t.trim().toLowerCase();return[...o?e.filter(r=>r.label.toLowerCase().includes(o)):e].sort((r,i)=>n==="conversations"?i.conversations-r.conversations:n==="runtime"?i.durationMs-r.durationMs:n==="tokens"?(i.tokens??0)-(r.tokens??0):Date.parse(i.lastSeenAt)-Date.parse(r.lastSeenAt))}var _y=w(Y(),1);var pn=w(Q(),1);function Xq(e){return e.actor.fullName??e.actor.slackUserName??e.actor.email}function Qge(e){return Xq(e)===e.actor.email?void 0:e.actor.email}function Vq(e,t,n){if(e<=0&&t>0)return"unknown";let o=mo(e);return n?o.split(" ").slice(0,n).join(" "):o}function ez(e,t,n){let o=t.trim().toLowerCase();return[...o?e.filter(r=>[r.actor.email,r.actor.fullName,r.actor.slackUserName].some(i=>i?.toLowerCase().includes(o))):e].sort((r,i)=>n==="conversations"?i.conversations-r.conversations:n==="activeDays"?i.activeDays-r.activeDays:n==="runtime"?i.durationMs-r.durationMs:Date.parse(i.lastSeenAt)-Date.parse(r.lastSeenAt))}function tz(e){return(0,pn.jsxs)(q,{children:[(0,pn.jsx)(wo,{description:`${e.people.length} of ${e.totalPeople} verified actors`,title:"People directory"}),(0,pn.jsxs)(wy,{columnsClassName:"md:grid-cols-[minmax(14rem,1fr)_minmax(10rem,14rem)]",children:[(0,pn.jsx)(Sr,{label:"Search people",placeholder:"Search name, email, Slack handle...",value:e.query,onChange:e.onQueryChange}),(0,pn.jsx)(Cy,{ariaLabel:"Sort people",onChange:t=>e.onSortChange(t),options:[{label:"Most conversations",value:"conversations"},{label:"Recently active",value:"recent"},{label:"Most active days",value:"activeDays"},{label:"Most runtime",value:"runtime"}],value:e.sort})]}),(0,pn.jsx)(Ey,{ariaLabel:"People directory results",empty:e.people.length===0?(0,pn.jsx)(en,{children:"No people match this search."}):void 0,headers:["Person","Conversations","Active days","Runtime"],loading:e.loading,children:e.people.map(t=>(0,pn.jsxs)(ky,{to:_r(t.actor.email),children:[(0,pn.jsx)(Qy,{description:Qge(t),icon:(0,pn.jsx)(Ia,{"aria-hidden":"true",size:16,strokeWidth:1.8}),iconClassName:"bg-amber-500/[0.07] text-amber-300 group-hover:border-amber-500/25",title:Xq(t)}),(0,pn.jsx)(qA,{label:"Conversations",value:ae(t.conversations)}),(0,pn.jsx)(qA,{label:"Active days",value:ae(t.activeDays)}),(0,pn.jsx)(qA,{label:"Runtime",value:(0,pn.jsxs)(pn.Fragment,{children:[(0,pn.jsx)("span",{className:"whitespace-nowrap md:hidden",children:Vq(t.durationMs,t.conversations,2)}),(0,pn.jsx)("span",{className:"hidden whitespace-nowrap md:inline",children:Vq(t.durationMs,t.conversations)})]})})]},t.actor.email))})]})}var Ot=w(Q(),1),Ige=["activeDays","conversations","recent","runtime"];function nz(){let e=EM();return(0,Ot.jsx)(_ge,{data:e.data,error:e.error})}function _ge(e){let[t,n,o]=FA(),[a,r]=(0,_y.useState)(90),[i,A]=Zs("sort","conversations",Ige),s=(0,_y.useDeferredValue)(i);if(!e.data&&!e.error)return(0,Ot.jsx)(Qe,{label:"Loading people"});let c=e.data,u=c?.activityDays.slice(-a)??[],l=c?ez(c.people,o,s):[],p=c?.people.reduce((m,h)=>m+h.conversations,0)??0,g=c?.people.reduce((m,h)=>m+h.durationMs,0)??0,f=u[0]?.date,B=f?c?.people.filter(m=>m.lastSeenAt.slice(0,10)>=f).length??0:0,y=Math.max(0,...u.map(m=>m.activePeople));return(0,Ot.jsxs)(OA,{children:[(0,Ot.jsx)(Dt,{actions:(0,Ot.jsx)(Xo,{onChange:r,value:a}),description:e.error?"People failed to load.":`See who's been working with ${it()}, how often, and for how long.`,title:"People"}),e.error?(0,Ot.jsx)(q,{padding:"md",children:(0,Ot.jsx)(en,{children:"People telemetry is unavailable. Try refreshing the dashboard."})}):c?.people.length?(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsxs)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:[(0,Ot.jsx)(Qt,{detail:`Verified actors seen in the last ${a} days`,icon:Ss,label:"Active people",value:ae(B)}),(0,Ot.jsx)(Qt,{detail:"Across the complete conversation index",icon:Ta,label:"Conversations",value:ae(p)}),(0,Ot.jsx)(Qt,{detail:"Cumulative persisted conversation runtime",icon:Mo,label:"Total runtime",value:(0,Ot.jsx)(Oo,{value:g})}),(0,Ot.jsx)(Qt,{detail:`Highest distinct daily count in ${a} days`,icon:No,label:"Peak daily active",value:ae(y)})]}),(0,Ot.jsx)(fy,{days:u}),(0,Ot.jsx)(tz,{loading:i!==s,onQueryChange:n,onSortChange:A,people:l,query:t,sort:i,totalPeople:c.people.length})]}):(0,Ot.jsx)(q,{padding:"md",children:(0,Ot.jsx)(en,{children:"No actor telemetry with trusted email."})})]})}var xy=w(Y(),1);var yt=w(Q(),1),vy=["dashboard","personal-tokens"];function az(){let e=Hn(),t=(0,xy.useRef)(!1),[n,o]=(0,xy.useState)("Local agent"),a=()=>e.cancelQueries({exact:!0,queryKey:vy}),r=st({queryKey:vy,queryFn:({signal:g})=>rt(pD,"/api/personal-tokens",g),retry:!1}),i=rr({gcTime:0,mutationFn:g=>bM(gD,"/api/personal-tokens",{name:g}),onMutate:()=>a(),onSuccess:async g=>{let{token:f,...B}=g;await a(),e.setQueryData(vy,y=>({tokens:[B,...(y?.tokens??[]).filter(m=>m.id!==B.id)]}))},onSettled:()=>{t.current=!1}}),A=rr({mutationFn:g=>Ju(`/api/personal-tokens/${encodeURIComponent(g.id)}`),onMutate:()=>a(),onSuccess:async(g,f)=>{await a(),e.setQueryData(vy,B=>({tokens:(B?.tokens??[]).filter(y=>y.id!==f.id)})),i.data?.id===f.id&&i.reset()}}),s=i.data,c=r.data?.tokens??[],u=r.isPending,l=i.isPending||A.isPending,p=(i.isError?"Could not create the API token. Try again.":A.isError?"Could not revoke the API token. Try again.":void 0)??(!r.data&&r.isError?"Could not load API tokens. Try again.":void 0);return(0,yt.jsx)("div",{className:`${xt} px-4 py-8 md:px-8`,children:(0,yt.jsxs)("section",{className:"mx-auto w-full max-w-3xl",children:[(0,yt.jsx)("h1",{className:"m-0 text-2xl font-bold",children:"Personal API Tokens"}),(0,yt.jsxs)("p",{className:"mt-2 mb-0 max-w-2xl text-sm text-dashboard-text-muted",children:["Use a token to read ",it()," APIs from a local agent or script. Tokens expire after 90 days."]}),(0,yt.jsxs)("div",{className:"mt-6 rounded-lg border border-white/15 bg-dashboard-surface-raised p-5",children:[s?(0,yt.jsxs)("div",{className:"mt-5 rounded border border-emerald-400/40 bg-emerald-400/5 p-3",children:[(0,yt.jsx)("p",{className:"mt-0 mb-2 text-sm font-semibold",children:"Copy this token now. It won't be shown again."}),(0,yt.jsx)("code",{className:"block overflow-x-auto rounded bg-black p-2 text-xs text-emerald-300",children:s.token}),(0,yt.jsx)(lt,{className:"mt-3",onClick:()=>{i.reset(),o("Local agent")},children:"Create another token"})]}):(0,yt.jsxs)("div",{className:"mt-5 flex gap-2",children:[(0,yt.jsx)("input",{"aria-label":"Token name",className:"min-w-0 flex-1 rounded border border-white/15 bg-black px-3 py-2 text-sm text-dashboard-text",maxLength:80,onChange:g=>o(g.target.value),value:n}),(0,yt.jsx)(lt,{disabled:u||l||!n.trim(),onClick:()=>{t.current||(A.reset(),t.current=!0,i.mutate(n))},children:"Create token"})]}),p?(0,yt.jsx)("p",{className:"mb-0 text-sm text-rose-300",children:p}):null,(0,yt.jsx)("div",{className:"mt-5 space-y-2",children:u?(0,yt.jsx)("p",{className:"text-sm text-dashboard-text-muted",children:"Loading API tokens\u2026"}):c.length===0?(0,yt.jsx)("p",{className:"text-sm text-dashboard-text-muted",children:"No active API tokens."}):c.map(g=>(0,yt.jsxs)("div",{className:"flex items-center gap-3 rounded border border-white/10 p-3",children:[(0,yt.jsx)(jo,{className:"text-[#beaaff]",size:16}),(0,yt.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,yt.jsx)("p",{className:"m-0 truncate text-sm font-semibold",children:g.name}),(0,yt.jsxs)("p",{className:"mt-1 mb-0 text-xs text-dashboard-text-muted",children:["Ends in ",g.tokenSuffix," \xB7 Expires"," ",new Date(g.expiresAt).toLocaleDateString()]})]}),(0,yt.jsx)("button",{"aria-label":`Revoke ${g.name}`,className:"cursor-pointer border-0 bg-transparent p-1 text-dashboard-text-muted hover:text-rose-300",disabled:l,onClick:()=>{i.isError&&i.reset(),A.mutate(g)},type:"button",children:(0,yt.jsx)(Po,{size:16})})]},g.id))})]})]})})}var iz=w(Y(),1);var Hg=w(Q(),1);function ZF(e){return(0,Hg.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-white/[0.06] bg-black/15 px-4 py-3 max-md:flex-col max-md:items-stretch",children:[(0,Hg.jsx)("div",{className:"min-w-0",children:e.children}),e.actions?(0,Hg.jsx)("div",{className:"shrink-0 max-md:w-full",children:e.actions}):null]})}var Ug=w(Q(),1);function zA(e){return(0,Ug.jsxs)("div",{className:e.className,children:[(0,Ug.jsx)("h2",{className:"m-0 font-display text-xl font-medium tracking-[-0.02em] text-dashboard-text",id:e.id,children:e.title}),e.description?(0,Ug.jsx)("p",{className:"mt-1.5 mb-0 max-w-2xl font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.description}):null]})}var oz=w(Q(),1);function VF(e){return(0,oz.jsx)("div",{className:"min-w-0 break-words font-mono text-xs font-medium uppercase leading-tight tracking-[0.14em] text-dashboard-text-muted",children:e.children})}var ce=w(Q(),1);function vge(e,t){return e<=0&&t>0?"unknown":mo(e)}function Az(){let e=On(),t=e.email?decodeURIComponent(e.email):void 0,n=kM(t);return!n.data&&!n.error?(0,ce.jsx)(Qe,{label:"Loading profile"}):(0,ce.jsx)(By,{children:n.data?(0,ce.jsx)(xge,{profile:n.data}):(0,ce.jsx)(q,{padding:"md",children:(0,ce.jsx)(en,{children:"Profile failed to load."})})})}function xge(e){let[t,n]=(0,iz.useState)(30),o=e.profile,a=o.actor.fullName??o.actor.slackUserName??o.actor.email;return(0,ce.jsxs)("div",{className:"grid min-w-0 gap-5",children:[(0,ce.jsxs)(Fe,{className:"flex w-fit items-center gap-2 font-display text-sm font-medium text-dashboard-text-muted no-underline transition-colors hover:text-dashboard-text",to:"/system/people",children:[(0,ce.jsx)(Br,{"aria-hidden":"true",size:15,strokeWidth:1.8}),"Back to people"]}),(0,ce.jsx)(Dt,{actions:(0,ce.jsx)(Xo,{onChange:n,value:t}),description:(0,ce.jsxs)(ce.Fragment,{children:[o.actor.email,o.actor.slackUserName?` / @${o.actor.slackUserName}`:""]}),title:a}),(0,ce.jsxs)("section",{className:"grid gap-4","aria-labelledby":"profile-metrics-title",children:[(0,ce.jsx)(zA,{id:"profile-metrics-title",title:"Usage over time"}),(0,ce.jsx)(fd,{days:o.activityDays.slice(-t)})]}),(0,ce.jsxs)("div",{className:"grid min-w-0 gap-5 lg:grid-cols-[minmax(0,1fr)_19rem] lg:items-start",children:[(0,ce.jsx)("aside",{className:"grid min-w-0 gap-4 lg:order-2",children:(0,ce.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3 lg:grid-cols-1",children:[(0,ce.jsx)(Qt,{detail:"Across the complete conversation index",icon:Ta,label:"Conversations",value:ae(o.totals.conversations)}),(0,ce.jsx)(Qt,{detail:"Cumulative persisted conversation runtime",icon:Mo,label:"Runtime",value:(0,ce.jsx)(Oo,{value:o.totals.durationMs})}),(0,ce.jsx)(Qt,{detail:"Persisted model token usage",icon:xs,label:"Tokens",value:ae(o.totals.tokens??0)})]})}),(0,ce.jsxs)("div",{className:"grid min-w-0 gap-5 lg:order-1",children:[(0,ce.jsxs)(q,{as:"section",className:"mb-0",variant:"section",children:[(0,ce.jsx)(ZF,{actions:(0,ce.jsx)("div",{className:"font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted",children:"52 weeks"}),children:(0,ce.jsx)(VF,{children:"Activity"})}),(0,ce.jsx)(my,{days:o.activityDays})]}),(0,ce.jsxs)("div",{className:"grid min-w-0 gap-5 md:grid-cols-2",children:[(0,ce.jsx)(rz,{items:o.locations,title:"Places"}),(0,ce.jsx)(rz,{items:o.surfaces,title:"Surfaces"})]})]})]})]})}function rz(e){return e.items.length<=1?null:(0,ce.jsxs)(q,{as:"section",className:"mb-0",variant:"section",children:[(0,ce.jsx)(ZF,{children:(0,ce.jsx)(VF,{children:e.title})}),(0,ce.jsx)("ol",{className:"m-0 list-none p-0",children:e.items.slice(0,6).map((t,n)=>(0,ce.jsxs)("li",{className:"grid min-w-0 grid-cols-[2rem_minmax(0,1fr)_auto] items-center gap-3 border-b border-white/[0.06] px-4 py-3 last:border-b-0",children:[(0,ce.jsx)("div",{className:"font-mono text-xs leading-none text-dashboard-text-muted",children:n+1}),(0,ce.jsxs)("div",{className:"min-w-0",children:[(0,ce.jsx)("div",{className:"truncate font-display text-base font-medium leading-tight text-dashboard-text",children:t.label}),(0,ce.jsxs)("div",{className:"mt-1 truncate font-mono text-xs leading-tight text-dashboard-text-muted",children:[vge(t.durationMs,t.conversations),t.tokens?` / ${ae(t.tokens)} tokens`:"",t.failed?` / ${ae(t.failed)} errors`:""]})]}),(0,ce.jsx)("div",{className:"font-display text-xl font-light leading-none text-dashboard-text",children:ae(t.conversations)})]},t.label))})]})}var yz=w(Y(),1);var Rt=w(Q(),1);function cz(e){return(0,Rt.jsxs)("section",{"aria-labelledby":"plugin-details-heading",className:"grid gap-3",children:[(0,Rt.jsx)(zA,{className:"px-1",id:"plugin-details-heading",title:"Details"}),(0,Rt.jsxs)(q,{children:[(0,Rt.jsxs)("div",{className:"grid grid-cols-1 gap-px bg-white/[0.055] sm:grid-cols-3",children:[(0,Rt.jsx)(XF,{icon:Ua,label:"Identifier",value:e.plugin.name}),(0,Rt.jsx)(XF,{icon:zn,label:"Skills",value:String(e.plugin.skills.length)}),(0,Rt.jsx)(XF,{icon:jo,label:"Configuration",value:String(e.plugin.configKeys.length)})]}),(0,Rt.jsxs)("div",{className:"grid gap-5 border-t border-white/[0.06] p-4 sm:p-5 lg:grid-cols-2",children:[(0,Rt.jsx)(sz,{emptyText:"No plugin-provided skills were discovered.",items:e.plugin.skills.map(t=>t.name),title:"Skills"}),e.plugin.configKeys.length?(0,Rt.jsx)("div",{className:"lg:col-span-2",children:(0,Rt.jsx)(sz,{emptyText:"",items:e.plugin.configKeys,title:"Configuration keys"})}):null]})]})]})}function XF(e){let t=e.icon;return(0,Rt.jsxs)("div",{className:"flex items-center gap-3 bg-dashboard-surface-panel px-4 py-3.5",children:[(0,Rt.jsx)(t,{"aria-hidden":"true",className:"text-cyan-200/60",size:15}),(0,Rt.jsxs)("div",{className:"min-w-0",children:[(0,Rt.jsx)("div",{className:"truncate font-display text-base font-medium text-dashboard-text",children:e.value}),(0,Rt.jsx)("div",{className:"mt-0.5 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:e.label})]})]})}function sz(e){return(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("h3",{className:"m-0 font-mono text-xs font-medium uppercase tracking-[0.12em] text-dashboard-text-muted",children:e.title}),e.items.length?(0,Rt.jsx)("div",{className:"mt-2.5 flex flex-wrap gap-2",children:e.items.map(t=>(0,Rt.jsx)("span",{className:"rounded border border-white/[0.07] bg-black/20 px-2.5 py-1.5 font-mono text-xs text-dashboard-text-muted",children:t},t))}):(0,Rt.jsx)("p",{className:"mt-2 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.emptyText})]})}var It=w(Q(),1);function uz(e){return(0,It.jsx)("section",{"aria-label":"Plugins",className:"grid gap-3",children:e.plugins.length?(0,It.jsx)("div",{className:"grid gap-3",children:e.plugins.map(t=>(0,It.jsx)(Dge,{plugin:t},t.name))}):(0,It.jsx)(q,{padding:"md",children:(0,It.jsx)("div",{className:"font-mono text-xs text-dashboard-text-muted",children:"No plugin inventory has been reported yet."})})})}function Dge(e){let t=e.plugin.reports.flatMap(n=>n.metrics??[]);return(0,It.jsxs)(Fe,{className:"group grid min-w-0 gap-4 rounded-lg border border-white/[0.07] bg-dashboard-surface-panel/85 p-4 no-underline transition-colors hover:border-cyan-300/20 hover:bg-cyan-300/[0.025] sm:p-5",to:yy(e.plugin.name),children:[(0,It.jsxs)("div",{className:"flex min-w-0 items-start justify-between gap-4",children:[(0,It.jsxs)("div",{className:"flex min-w-0 items-start gap-3",children:[(0,It.jsx)("div",{className:"grid size-9 shrink-0 place-items-center rounded border border-cyan-300/15 bg-cyan-300/[0.075] text-cyan-200",children:(0,It.jsx)(Ua,{"aria-hidden":"true",size:16,strokeWidth:1.8})}),(0,It.jsxs)("div",{className:"min-w-0",children:[(0,It.jsx)("h3",{className:"m-0 truncate font-display text-lg font-medium text-dashboard-text",children:e.plugin.displayName}),(0,It.jsx)("p",{className:"mt-1 mb-0 line-clamp-2 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.plugin.description})]})]}),(0,It.jsx)(Ep,{"aria-hidden":"true",className:"mt-1 shrink-0 text-dashboard-text-muted transition-transform group-hover:translate-x-0.5 group-hover:text-cyan-200/70",size:16})]}),t.length?(0,It.jsx)("div",{className:`grid ${t.length===1?"grid-cols-1":"grid-cols-2"} gap-px overflow-hidden rounded border border-white/[0.06] bg-white/[0.055]`,children:t.slice(0,2).map(n=>(0,It.jsxs)("div",{className:"min-w-0 bg-dashboard-surface-panel px-3 py-2.5",children:[(0,It.jsx)("div",{className:"truncate font-display text-lg font-light text-dashboard-text",children:n.value}),(0,It.jsx)("div",{className:"mt-1 truncate font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:n.label})]},n.label))}):null,(0,It.jsx)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-2 border-t border-white/[0.055] pt-3",children:(0,It.jsx)(Fge,{icon:zn,label:`${e.plugin.skills.length} skills`})})]})}function Fge(e){let t=e.icon;return(0,It.jsxs)("span",{className:"inline-flex items-center gap-1.5 font-mono text-xs uppercase tracking-[0.08em] text-dashboard-text-muted",children:[(0,It.jsx)(t,{"aria-hidden":"true",size:11}),e.label]})}var vn=w(Q(),1),Dy=["#67e8f9","#6ee7b7","#fbbf24","#fb7185","#a78bfa"],dz={danger:"#fb7185",good:"#6ee7b7",neutral:"#67e8f9",warning:"#fbbf24"};function pz(e){let{widget:t}=e,n=t.timeRangeDays?t.categories.slice(-Sge(t,e.range)):t.categories,o=$ge(t),a=520,r=250,i=o==="usd"?72:56,A=16,c=r-A-36,u=(a-i-12)/n.length,l=Math.min(72,u*.72),p=l/t.series.length,g=n.flatMap(b=>t.series.map(C=>b.values[C.key]??0)),f=Math.min(0,...g),B=Math.max(0,...g),y=B===f?f+1:B,m=y-f,h=A+y/m*c;return(0,vn.jsxs)("div",{className:"overflow-hidden rounded border border-white/[0.07] bg-dashboard-surface-panel",children:[(0,vn.jsxs)("div",{className:"border-b border-white/[0.06] px-4 py-3",children:[(0,vn.jsx)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:(0,vn.jsx)("h4",{className:"m-0 font-mono text-xs font-medium uppercase tracking-[0.14em] text-dashboard-text-muted",children:t.title})}),t.description?(0,vn.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs text-dashboard-text-muted",children:t.description}):null,t.series.length>1?(0,vn.jsx)("div",{"aria-label":"Chart legend",className:"mt-3 flex flex-wrap gap-3",children:t.series.map((b,C)=>(0,vn.jsxs)("span",{className:"flex items-center gap-1.5 font-mono text-xs text-dashboard-text-muted",children:[(0,vn.jsx)("i",{className:"size-2 rounded-sm",style:{backgroundColor:b.tone?dz[b.tone]:Dy[C%Dy.length]}}),b.label]},b.key))}):null]}),n.length===0?(0,vn.jsx)("p",{className:"m-0 p-4 font-mono text-xs text-dashboard-text-muted",children:t.emptyText??"No chart data."}):(0,vn.jsxs)("svg",{"aria-label":t.title,className:"block h-auto min-h-48 w-full",role:"img",viewBox:`0 0 ${a} ${r}`,children:[[y,y-m/2,f].map((b,C)=>{let E=A+C*(c/2);return(0,vn.jsxs)("g",{children:[(0,vn.jsx)("line",{stroke:"rgba(255,255,255,0.07)",strokeDasharray:"3 5",x1:i,x2:a-12,y1:E,y2:E}),(0,vn.jsx)("text",{fill:"rgba(255,255,255,0.35)",fontFamily:"ui-monospace, monospace",fontSize:"12",textAnchor:"end",x:i-6,y:E+3,children:lz(b,o)})]},C)}),n.flatMap((b,C)=>t.series.map((E,x)=>{let k=b.values[E.key]??0,R=Math.max(k?2:0,Math.abs(k)/m*c),T=lz(k,E.format);return(0,vn.jsx)(Ut,{content:`${E.label}: ${T}`,label:b.label,children:(0,vn.jsx)("rect",{"aria-label":`${b.label}, ${E.label}: ${T}`,fill:E.tone?dz[E.tone]:Dy[x%Dy.length],height:R,opacity:k?.82:.1,rx:"1.5",tabIndex:k?0:-1,width:p*.75,x:i+C*u+(u-l)/2+x*p,y:k>=0?h-R:h})},`${b.id}:${E.key}`)})),Lge(n.length).map(b=>{let C=n[b];return(0,vn.jsx)("text",{fill:"rgba(255,255,255,0.4)",fontFamily:"ui-monospace, monospace",fontSize:"12",textAnchor:"middle",x:i+b*u+u/2,y:r-9,children:Rge(C.label)},C.id)})]})]})}function Sge(e,t){let n=e.timeRangeDays??[];return t&&n.includes(t)?t:n.includes(30)?30:n[0]??30}function Lge(e){return[0,Math.floor((e-1)/2),e-1].filter((t,n,o)=>t>=0&&o.indexOf(t)===n)}function Rge(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?new Date(`${e}T00:00:00.000Z`).toLocaleDateString(void 0,{day:"numeric",month:"short",timeZone:"UTC"}):e}function Nge(e){return String(Number(e.toPrecision(12)))}function $ge(e){return new Set(e.series.map(n=>n.format)).size===1?e.series[0]?.format:void 0}function lz(e,t){return t==="usd"?Xt({total:e}):Nge(e)}var re=w(Q(),1);function mz(e){return e.reports.length===0&&!e.emptyText?null:e.reports.length===0?(0,re.jsx)(q,{padding:"md",children:(0,re.jsxs)("div",{className:"flex items-center gap-4",children:[(0,re.jsx)("div",{className:"grid size-10 shrink-0 place-items-center rounded border border-white/[0.07] bg-white/[0.025] text-dashboard-text-muted",children:(0,re.jsx)(Gp,{"aria-hidden":"true",size:17})}),(0,re.jsxs)("div",{children:[(0,re.jsx)("h2",{className:"m-0 font-display text-base font-medium text-dashboard-text-muted",children:"Operational reports"}),(0,re.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.emptyText})]})]})}):(0,re.jsxs)("div",{className:"grid gap-3",children:[(0,re.jsx)(zA,{className:"px-1",title:"Operational reports"}),e.reports.map(t=>(0,re.jsx)(Mge,{fallbackTitle:e.fallbackTitle,range:e.range,report:t},t.pluginName))]})}function Mge(e){let n=(e.report.title===e.report.pluginName?void 0:e.report.title)??e.fallbackTitle??e.report.pluginName,o=e.report.metrics??[];return(0,re.jsxs)(q,{children:[(0,re.jsxs)("div",{className:"flex items-start justify-between gap-4 border-b border-white/[0.06] px-5 py-4",children:[(0,re.jsxs)("div",{className:"min-w-0",children:[(0,re.jsx)("h3",{className:"m-0 truncate font-display text-lg font-medium text-dashboard-text",children:n}),(0,re.jsx)("div",{className:"mt-1 hidden font-mono text-xs text-dashboard-text-muted sm:block",children:e.report.pluginName})]}),e.report.generatedAt?(0,re.jsxs)("div",{className:"hidden shrink-0 font-mono text-xs text-dashboard-text-muted sm:block",children:["updated ",Aa(e.report.generatedAt)]}):null]}),o.length?(0,re.jsx)("div",{className:S("grid gap-px bg-white/[0.055]",o.length===1?"grid-cols-1":"grid-cols-2",o.length===3?"lg:grid-cols-3":o.length===5?"lg:grid-cols-5":o.length>=4?"lg:grid-cols-4":void 0),children:o.map(a=>(0,re.jsxs)("div",{className:S("min-w-0 bg-dashboard-surface-panel px-4 py-4",o.length>1&&o.length%2===1&&"last:col-span-2 lg:last:col-span-1",Pge(a.tone)),children:[(0,re.jsx)("div",{className:"truncate font-display text-2xl font-light leading-none text-dashboard-text",children:a.value}),(0,re.jsx)("div",{className:"mt-2 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:a.label})]},a.label))}):null,e.report.widgets?.length?(0,re.jsx)("div",{className:"grid gap-3 border-t border-white/[0.06] bg-black/15 p-3 lg:grid-cols-2",children:e.report.widgets.map(a=>(0,re.jsx)(pz,{range:e.range,widget:a},a.id))}):null,e.report.recordSets?.map(a=>(0,re.jsx)(jge,{recordSet:a},`${e.report.pluginName}:${a.title}`))]})}function jge(e){let t=e.recordSet.fields??[],n=e.recordSet.records??[];return(0,re.jsxs)("div",{className:"border-t border-white/[0.06]",children:[(0,re.jsxs)("div",{className:"flex items-center justify-between gap-4 px-5 py-3",children:[(0,re.jsx)("div",{className:"font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted",children:e.recordSet.title}),(0,re.jsxs)("div",{className:"hidden font-mono text-xs text-dashboard-text-muted sm:block",children:[n.length," records"]})]}),n.length===0?(0,re.jsx)("div",{className:"px-5 pb-5 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.recordSet.emptyText??"No records."}):t.length===0?(0,re.jsx)("div",{className:"px-5 pb-5 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:"Report records are unavailable because no fields were declared."}):(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("div",{className:"grid gap-2 border-t border-white/[0.05] p-3 sm:hidden",children:n.map(o=>(0,re.jsx)("div",{className:S("grid gap-3 rounded-md border border-white/[0.06] bg-black/15 p-3",gz(o.tone)),children:t.map(a=>(0,re.jsxs)("div",{children:[(0,re.jsx)("div",{className:"font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:a.label}),(0,re.jsx)("div",{className:"mt-1 break-words font-mono text-xs leading-relaxed text-dashboard-text-muted",children:o.values[a.key]??""})]},a.key))},o.id))}),(0,re.jsx)("div",{className:"hidden overflow-x-auto border-t border-white/[0.05] sm:block",children:(0,re.jsxs)("table",{className:"w-full min-w-[36rem] border-collapse text-left",children:[(0,re.jsx)("thead",{className:"bg-black/15 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:(0,re.jsx)("tr",{children:t.map(o=>(0,re.jsx)("th",{className:"border-b border-white/[0.055] px-5 py-2.5 font-medium",scope:"col",children:o.label},o.key))})}),(0,re.jsx)("tbody",{children:n.map(o=>(0,re.jsx)("tr",{className:S("transition-colors hover:bg-white/[0.025]",gz(o.tone)),children:t.map(a=>(0,re.jsx)("td",{className:"max-w-72 truncate border-b border-white/[0.05] px-5 py-3 font-mono text-xs text-dashboard-text-muted",children:o.values[a.key]??""},a.key))},o.id))})]})})]})]})}function Pge(e){return e==="danger"?"shadow-[inset_0_2px_0_rgba(251,113,133,0.65)]":e==="warning"?"shadow-[inset_0_2px_0_rgba(251,191,36,0.65)]":e==="good"?"shadow-[inset_0_2px_0_rgba(110,231,183,0.55)]":""}function gz(e){return e==="danger"?"bg-rose-500/[0.07]":e==="warning"?"bg-amber-300/[0.045]":e==="good"?"bg-emerald-400/[0.055]":""}var Je=w(Q(),1);function bz(e){let t=Hge(e.skills),n=e.skills.filter(o=>o.pluginProvider).length;return(0,Je.jsxs)(q,{children:[(0,Je.jsxs)("div",{className:"flex items-start justify-between gap-4 border-b border-white/[0.06] px-5 py-4 max-sm:flex-col",children:[(0,Je.jsx)(zA,{description:(0,Je.jsxs)(Je.Fragment,{children:["The task-specific instructions ",it()," ","discovered, grouped by their plugin provider when one is registered."]}),title:"Skills"}),(0,Je.jsxs)("div",{className:"grid min-w-[12rem] grid-cols-2 overflow-hidden rounded-lg border border-white/[0.07] bg-black/15 max-sm:w-full max-sm:min-w-0",children:[(0,Je.jsx)(fz,{label:"discovered",value:e.skills.length}),(0,Je.jsx)(fz,{label:"from plugins",value:n})]})]}),(0,Je.jsx)("div",{className:"grid gap-3 p-3 sm:p-4",children:t.length?t.map(o=>(0,Je.jsx)(Gge,{group:o},o.pluginProvider??"standalone")):(0,Je.jsx)("div",{className:"rounded-lg border border-dashed border-white/[0.08] px-4 py-8 text-center font-mono text-xs text-dashboard-text-muted",children:"No skills have been discovered yet."})})]})}function Gge(e){let t=e.group.pluginProvider??"Standalone";return(0,Je.jsxs)("article",{className:"rounded-lg border border-white/[0.065] bg-white/[0.025] p-4",children:[(0,Je.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3",children:[(0,Je.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,Je.jsx)("div",{className:"grid size-8 shrink-0 place-items-center rounded border border-cyan-300/15 bg-cyan-300/[0.075] text-cyan-200",children:e.group.pluginProvider?(0,Je.jsx)(Ua,{"aria-hidden":"true",size:15,strokeWidth:1.8}):(0,Je.jsx)(zn,{"aria-hidden":"true",size:15,strokeWidth:1.8})}),(0,Je.jsxs)("div",{children:[(0,Je.jsx)("h3",{className:"m-0 truncate font-display text-base font-medium text-dashboard-text",children:t}),(0,Je.jsx)("div",{className:"mt-0.5 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:e.group.pluginProvider?"plugin provider":"core or local"})]})]}),(0,Je.jsxs)("span",{className:"font-mono text-xs text-dashboard-text-muted",children:[ae(e.group.skills.length)," skill",e.group.skills.length===1?"":"s"]})]}),(0,Je.jsx)("div",{className:"flex flex-wrap gap-2",children:e.group.skills.map(n=>(0,Je.jsx)("span",{className:"rounded border border-white/[0.07] bg-black/20 px-2.5 py-1.5 font-mono text-xs text-dashboard-text-muted",children:n.name},n.name))})]})}function fz(e){return(0,Je.jsxs)("div",{className:"border-r border-white/[0.06] px-3 py-2.5 text-center last:border-r-0",children:[(0,Je.jsx)("div",{className:"font-display text-xl font-light leading-none text-dashboard-text",children:ae(e.value)}),(0,Je.jsx)("div",{className:"mt-1.5 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:e.label})]})}function Hge(e){let t=new Map;for(let n of e){let o=t.get(n.pluginProvider)??[];o.push(n),t.set(n.pluginProvider,o)}return[...t.entries()].map(([n,o])=>({pluginProvider:n,skills:[...o].sort((a,r)=>a.name.localeCompare(r.name))})).sort((n,o)=>n.pluginProvider?o.pluginProvider?n.pluginProvider.localeCompare(o.pluginProvider):-1:1)}var be=w(Q(),1);function e8(e){return new Date(`${e}T00:00:00.000Z`).toLocaleDateString(void 0,{day:"numeric",month:"short",timeZone:"UTC"})}function Uge(e){return e.reduce((t,n)=>({allow:t.allow+n.allow,ask:t.ask+n.ask,costUsd:t.costUsd+(n.costUsd??0),deny:t.deny+n.deny,requests:t.requests+n.requests}),{allow:0,ask:0,costUsd:0,deny:0,requests:0})}function Tg(e){return(0,be.jsxs)("div",{className:"rounded-md border border-white/[0.05] bg-black/10 px-3 py-3",children:[(0,be.jsx)("div",{className:"font-display text-xl font-light text-dashboard-text",children:(0,be.jsx)("span",{className:e.valueClassName,children:e.value})}),(0,be.jsx)("div",{className:"mt-1 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.label})]})}function hz(e){let t=Uge(e.days),n=Math.max(1,...e.days.map(a=>a.requests)),o=[0,Math.floor((e.days.length-1)/2),e.days.length-1].filter((a,r,i)=>a>=0&&i.indexOf(a)===r);return(0,be.jsxs)(q,{children:[(0,be.jsxs)("div",{className:"border-b border-white/[0.06] px-4 py-4",children:[(0,be.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,be.jsxs)("div",{children:[(0,be.jsx)("h3",{className:"m-0 font-mono text-xs font-medium uppercase tracking-[0.14em] text-dashboard-text-muted",children:"Guardian reviews"}),(0,be.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:"Daily decisions before reviewed actions execute."})]}),(0,be.jsxs)("div",{className:"font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted",children:[(0,be.jsx)("span",{className:"mr-3 text-emerald-200/75",children:"Allow"}),(0,be.jsx)("span",{className:"mr-3 text-amber-200/75",children:"Ask"}),(0,be.jsx)("span",{className:"text-rose-200/75",children:"Deny"})]})]}),(0,be.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-5",children:[(0,be.jsx)(Tg,{label:"Requests",value:ae(t.requests)}),(0,be.jsx)(Tg,{label:"Allowed",value:ae(t.allow),valueClassName:"text-emerald-100"}),(0,be.jsx)(Tg,{label:"Asked",value:ae(t.ask),valueClassName:"text-amber-100"}),(0,be.jsx)(Tg,{label:"Denied",value:ae(t.deny),valueClassName:"text-rose-100"}),(0,be.jsx)(Tg,{label:"Estimated cost",value:Xt({total:t.costUsd})})]})]}),(0,be.jsxs)("div",{className:"px-4 pt-5 pb-3",children:[(0,be.jsx)("div",{"aria-label":"Daily Guardian review results",className:"flex h-36 items-end gap-px",role:"img",children:e.days.map(a=>{let r=Math.max(2,a.requests/n*100);return(0,be.jsx)(Ut,{content:(0,be.jsxs)("div",{className:"grid grid-cols-[auto_auto] gap-x-4",children:[(0,be.jsx)("span",{children:"Allow"}),(0,be.jsx)("span",{className:"text-right",children:a.allow}),(0,be.jsx)("span",{children:"Ask"}),(0,be.jsx)("span",{className:"text-right",children:a.ask}),(0,be.jsx)("span",{children:"Deny"}),(0,be.jsx)("span",{className:"text-right",children:a.deny}),(0,be.jsx)("span",{children:"Cost"}),(0,be.jsx)("span",{className:"text-right",children:Xt({total:a.costUsd??0})})]}),label:e8(a.date),children:(0,be.jsxs)("button",{"aria-label":`${e8(a.date)}: ${a.allow} allowed, ${a.ask} asked, ${a.deny} denied, ${Xt({total:a.costUsd??0})}`,className:"flex min-w-0 flex-1 flex-col justify-end overflow-hidden rounded-t-sm bg-white/[0.035] focus-visible:outline-1 focus-visible:outline-cyan-300",style:{height:`${r}%`},type:"button",children:[a.deny?(0,be.jsx)("span",{className:"block w-full bg-rose-400/75",style:{flex:a.deny}}):null,a.ask?(0,be.jsx)("span",{className:"block w-full bg-amber-300/75",style:{flex:a.ask}}):null,a.allow?(0,be.jsx)("span",{className:"block w-full bg-emerald-300/70",style:{flex:a.allow}}):null]})},a.date)})}),(0,be.jsx)("div",{className:"relative mt-2 h-4 font-mono text-xs text-dashboard-text-muted",children:o.map(a=>{let r=e.days[a];return r?(0,be.jsx)("span",{className:"absolute -translate-x-1/2",style:{left:`${(a+.5)/e.days.length*100}%`},children:e8(r.date)},r.date):null})})]})]})}var Ri=w(Q(),1);function Bz(e){if(!e.stats)return(0,Ri.jsx)(q,{padding:"sm",children:(0,Ri.jsx)(en,{children:e.error?"Conversation metrics failed to load.":e.loading?"Loading conversation metrics.":"No conversation metrics have been reported yet."})});let t=e.stats.metricDays.slice(-e.range),n=e.stats.guardian.metricDays.slice(-e.range);return(0,Ri.jsxs)("section",{"aria-label":"Runtime telemetry",className:"grid gap-4",children:[e.error?(0,Ri.jsx)("p",{className:"m-0 font-mono text-xs text-rose-200/65",children:"Metrics refresh failed. Showing cached data."}):null,(0,Ri.jsx)(by,{days:t}),(0,Ri.jsx)(fd,{days:t}),(0,Ri.jsx)(hz,{days:n})]})}var Le=w(Q(),1);function Cz(e){let[t,n]=(0,yz.useState)(30),o=dt(),a=e.data.pluginReports?.reports??[],r=Uq({plugins:e.data.plugins,reports:a,skills:e.data.skills}),i=Tq(o.pathname),A=i===uc,s=r.find(u=>yy(u.name)===i);return i.startsWith(`${uc}/`)&&!s?(0,Le.jsx)(vt,{replace:!0,to:uc}):i!=="/system"&&!A&&!s?(0,Le.jsx)(vt,{replace:!0,to:"/system"}):(0,Le.jsx)(OA,{children:s?(0,Le.jsx)(qge,{data:e.data,onRangeChange:n,plugin:s,range:t}):A?(0,Le.jsx)(Oge,{data:e.data,plugins:r}):(0,Le.jsx)(Tge,{data:e.data,range:t,onRangeChange:n})})}function Tge(e){return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Dt,{actions:(0,Le.jsx)(Xo,{onChange:e.onRangeChange,value:e.range}),description:`A live read on ${DM()} runtime and model usage.`,title:"System"}),(0,Le.jsx)(Bz,{error:e.data.conversationStatsError,range:e.range,loading:e.data.conversationStatsLoading,stats:e.data.conversationStats})]})}function Oge(e){return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Dt,{description:`Loaded capabilities and operational reports for ${it()}.`,title:"Plugins"}),e.data.pluginReportsError?(0,Le.jsx)(wz,{showingReports:e.plugins.some(t=>t.reports.length)}):null,(0,Le.jsx)(uz,{plugins:e.plugins}),e.data.skills.length?(0,Le.jsx)(bz,{skills:e.data.skills}):null]})}function qge(e){let t=e.plugin.reports,n=t.some(o=>o.widgets?.some(a=>a.timeRangeDays?.length));return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Dt,{actions:n?(0,Le.jsx)(Xo,{onChange:e.onRangeChange,value:e.range}):void 0,description:e.plugin.description,title:e.plugin.displayName}),e.data.pluginReportsError?(0,Le.jsx)(wz,{showingReports:!!t.length}):null,(0,Le.jsx)(cz,{plugin:e.plugin}),(0,Le.jsx)(mz,{fallbackTitle:e.plugin.displayName,...!e.data.pluginReportsLoading&&!e.data.pluginReportsError?{emptyText:"This plugin does not expose operational activity yet."}:{},range:e.range,reports:t})]})}function wz(e){return(0,Le.jsx)(q,{className:"border-amber-300/10 bg-amber-300/[0.025]",padding:"sm",children:(0,Le.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Le.jsx)("div",{className:"grid size-9 shrink-0 place-items-center rounded border border-amber-300/15 bg-amber-300/[0.055] text-amber-200/70",children:(0,Le.jsx)(Qa,{"aria-hidden":"true",size:15})}),(0,Le.jsxs)("div",{children:[(0,Le.jsx)("div",{className:"font-display text-sm font-medium text-dashboard-text-muted",children:"Plugin stats failed to load."}),(0,Le.jsx)("div",{className:"mt-1 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.showingReports?`Showing the last operational reports ${it()} received.`:"Plugin details and capabilities are still available."})]})]})})}var Iz=w(Y(),1);var kz=w(Y(),1);var qt=w(Q(),1),Ez=[{color:"#6ee7b7",key:"completed",label:"Completed"},{color:"#fda4af",key:"failed",label:"Failed"},{color:"#fcd34d",key:"blocked",label:"Blocked"}];function Qz(e){let[t,n]=(0,kz.useState)(30),o=e.days.slice(-t),a=Hr(220),r=o.map(u=>u.completed+u.failed+u.blocked),i=Math.max(1,...r),A=o.length>0?a.plotWidth/o.length:a.plotWidth,s=Math.max(2,Math.min(13,A*.68)),c=r.some(u=>u>0);return(0,qt.jsxs)(q,{className:"min-h-[15rem] p-4 sm:p-5",children:[(0,qt.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,qt.jsxs)("div",{children:[(0,qt.jsx)("h2",{className:"m-0 font-display text-xl font-medium text-dashboard-text",children:"Executions over time"}),(0,qt.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:"Terminal runs for this task each day."})]}),(0,qt.jsx)("div",{"aria-label":"Task execution range",className:"inline-flex rounded border border-white/[0.08] bg-black/20 p-0.5",children:[7,30,90].map(u=>(0,qt.jsxs)("button",{"aria-pressed":t===u,className:S("cursor-pointer rounded-sm border-0 px-2.5 py-1.5 font-mono text-xs uppercase tracking-[0.1em] transition-colors",t===u?"bg-cyan-300/10 text-cyan-100":"bg-transparent text-dashboard-text-muted hover:text-dashboard-text"),onClick:()=>n(u),type:"button",children:[u,"d"]},u))})]}),(0,qt.jsx)("div",{"aria-label":"Task execution status legend",className:"mt-4 flex flex-wrap gap-4",children:Ez.map(u=>(0,qt.jsxs)("span",{className:"inline-flex items-center gap-1.5 font-mono text-xs text-dashboard-text-muted",children:[(0,qt.jsx)("i",{className:"size-2 rounded-sm",style:{backgroundColor:u.color}}),u.label]},u.key))}),(0,qt.jsxs)("div",{className:"relative mt-3 overflow-hidden",children:[(0,qt.jsxs)("svg",{"aria-label":`Task executions during the last ${t} days`,className:"block h-auto min-h-40 w-full",role:"img",viewBox:`0 0 ${a.width} ${a.height}`,children:[(0,qt.jsx)(Ur,{layout:a,maximum:i}),o.map((u,l)=>{let p=0,g=a.left+l*A+(A-s)/2,f=r[l]??0;return(0,qt.jsx)(Ut,{content:(0,qt.jsx)(Eo,{rows:[["completed",u.completed],["failed",u.failed],["blocked",u.blocked],["total",f]]}),label:Wn(u.date),children:(0,qt.jsxs)("g",{"aria-label":`${Wn(u.date)}: ${u.completed} completed, ${u.failed} failed, ${u.blocked} blocked, ${f} total`,tabIndex:0,children:[Ez.map(B=>{let m=u[B.key]/i*a.plotHeight;return p+=m,(0,qt.jsx)("rect",{fill:B.color,height:m,opacity:.82,rx:"1",width:s,x:g,y:a.top+a.plotHeight-p},B.key)}),(0,qt.jsx)("rect",{fill:"transparent",height:a.plotHeight,width:Math.max(s,8),x:g-(Math.max(s,8)-s)/2,y:a.top})]})},u.date)}),(0,qt.jsx)(Tr,{dates:o.map(u=>u.date),layout:a,xPosition:u=>a.left+u*A+A/2})]}),c?null:(0,qt.jsx)("div",{className:"pointer-events-none absolute inset-0 grid place-items-center pt-12 font-mono text-xs text-dashboard-text-muted",children:"No task executions in this period."})]})]})}var Ce=w(Q(),1);function _z(e){let{taskId:t,kind:n}=On(),[o]=uA(),a=n==="scheduled"||n==="event"?n:void 0,r=wM(e.enabled&&!!(t&&a),a,t),i=vr(t?`/tasks/${encodeURIComponent(t)}`:"/tasks",o);return!t||!a?(0,Ce.jsx)(vt,{replace:!0,to:"/tasks"}):!r.data&&!r.error?(0,Ce.jsx)(Qe,{label:"Loading task executions"}):r.error||!r.data?(0,Ce.jsx)("div",{className:`${xt} px-4 py-8 md:px-8`,children:(0,Ce.jsxs)("section",{className:"mx-auto grid w-full max-w-4xl gap-5",children:[(0,Ce.jsx)(Dt,{description:"Terminal runs for one scheduled or event task.",title:"Task executions"}),(0,Ce.jsxs)(q,{padding:"md",children:[(0,Ce.jsx)("p",{className:"m-0 text-sm text-rose-300",children:r.error instanceof Ro&&r.error.status===404?"This task was not found or is not visible to you.":"Task executions could not be loaded. Try again."}),(0,Ce.jsxs)(Fe,{className:"mt-3 inline-flex items-center gap-2 font-mono text-xs text-dashboard-text-muted no-underline hover:text-dashboard-text",to:"/tasks",children:[(0,Ce.jsx)(Br,{"aria-hidden":"true",size:14}),"Back to tasks"]})]})]})}):(0,Ce.jsx)(zge,{backTo:i,data:r.data})}function zge(e){let{data:t}=e,n=(0,Iz.useMemo)(()=>Jge(t.executions),[t.executions]),o=`${n.completed} completed \xB7 ${n.failed} failed \xB7 ${n.blocked} blocked`,a=t.truncated?`${t.task.totalRuns} total \xB7 loaded runs: ${o}`:`${t.task.totalRuns} total \xB7 ${o}`;return(0,Ce.jsx)("div",{className:`${xt} px-4 py-8 md:px-8`,children:(0,Ce.jsxs)("section",{className:"mx-auto grid w-full max-w-4xl gap-5",children:[(0,Ce.jsxs)("div",{children:[(0,Ce.jsxs)(Fe,{className:"mb-3 inline-flex items-center gap-2 font-mono text-xs text-dashboard-text-muted no-underline hover:text-dashboard-text",to:e.backTo,children:[(0,Ce.jsx)(Br,{"aria-hidden":"true",size:14}),"Back to task"]}),(0,Ce.jsx)(Dt,{description:`${t.task.kind} task \xB7 ${t.task.destination.label} \xB7 ${a}`,title:t.task.instruction})]}),t.executionDays.length>0?(0,Ce.jsx)(Qz,{days:t.executionDays}):null,(0,Ce.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-x-5 gap-y-1 border-b border-white/[0.07] pb-3",children:[(0,Ce.jsxs)("p",{className:"m-0 font-display text-lg text-dashboard-text",children:[t.executions.length," ",t.executions.length===1?"run":"runs"]}),(0,Ce.jsx)("p",{className:"m-0 text-xs text-dashboard-text-muted",children:"Newest first. Click a run to open its conversation."})]}),t.executions.length===0?(0,Ce.jsx)(q,{padding:"md",children:(0,Ce.jsx)("p",{className:"m-0 text-sm text-dashboard-text-muted",children:"This task has not produced any terminal executions yet."})}):(0,Ce.jsxs)(q,{children:[(0,Ce.jsxs)("div",{className:"sticky top-0 z-[1] hidden grid-cols-[minmax(13rem,1.7fr)_minmax(10rem,1fr)] items-center gap-3 border-b border-white/[0.06] bg-black/25 px-3 py-2.5 font-mono text-xs uppercase tracking-[0.1em] text-dashboard-text-muted md:grid",role:"row",children:[(0,Ce.jsx)("div",{children:"Conversation"}),(0,Ce.jsx)("div",{className:"justify-self-end",children:"Status"})]}),(0,Ce.jsx)("div",{className:"min-w-0",role:"table",children:t.executions.map(r=>(0,Ce.jsx)(Yge,{execution:r,fallbackTitle:t.task.instruction},r.executionId))})]}),t.truncated?(0,Ce.jsx)("p",{className:"m-0 text-center text-xs text-dashboard-text-muted",children:"Showing the 100 most recent executions."}):null]})})}function Yge(e){let{execution:t,fallbackTitle:n}=e,o=so(),a=t.title?.trim()||(t.conversationId?n:"No conversation"),r=[Wge(t.executedAt),t.conversationId??"not linked"].join(" \xB7 "),i=()=>{t.conversationId&&o(Ir(t.conversationId))};return(0,Ce.jsxs)("div",{"aria-disabled":!t.conversationId,className:S("group grid min-w-0 grid-cols-[minmax(13rem,1.7fr)_minmax(10rem,1fr)] items-center gap-3 overflow-hidden border-b border-b-white/[0.055] px-3 py-3 text-left text-inherit transition-colors max-md:grid-cols-1 max-md:px-4 max-md:py-4",t.conversationId?"cursor-pointer hover:bg-white/[0.035]":"cursor-default opacity-80"),onClick:i,onKeyDown:A=>{t.conversationId&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),i())},role:t.conversationId?"link":"row",tabIndex:t.conversationId?0:void 0,children:[(0,Ce.jsxs)("div",{className:"min-w-0",children:[(0,Ce.jsx)("div",{className:"min-w-0 truncate text-base font-bold leading-tight text-dashboard-text",children:a}),(0,Ce.jsx)("div",{className:"mt-1 break-words text-sm leading-relaxed text-dashboard-text-muted md:truncate",children:r})]}),(0,Ce.jsx)("div",{className:"grid min-w-0 justify-items-end gap-1 text-right max-md:justify-items-start max-md:text-left",children:(0,Ce.jsx)(Kge,{status:t.status})})]})}function Kge(e){return(0,Ce.jsx)("span",{className:S("inline-flex items-center rounded border px-2 py-1 font-mono text-xs uppercase tracking-[0.1em]",e.status==="completed"&&"border-emerald-400/25 bg-emerald-400/10 text-emerald-200",e.status==="failed"&&"border-rose-400/25 bg-rose-400/10 text-rose-200",e.status==="blocked"&&"border-amber-400/25 bg-amber-400/10 text-amber-100"),children:e.status})}function Jge(e){return e.reduce((t,n)=>(t[n.status]+=1,t),{blocked:0,completed:0,failed:0})}function Wge(e){return Aa(e,{day:"numeric",hour:"numeric",minute:"2-digit",month:"short",timeZoneName:"short",year:"numeric"})}var Sy=w(Y(),1);var Bd=w(Y(),1);var me=w(Q(),1),Zge=["a[href]","button:not([disabled])","[tabindex]:not([tabindex='-1'])"].join(",");function xz(e){let t=(0,Bd.useRef)(null),n=(0,Bd.useRef)(e.onClose),o=(0,Bd.useRef)(void 0),a=e.task?`${e.task.kind}:${e.task.id}`:void 0;if(n.current=e.onClose,(0,Bd.useEffect)(()=>{if(!a)return;o.current=document.activeElement instanceof HTMLElement?document.activeElement:void 0;let u=document.body.style.overflow;document.body.style.overflow="hidden";let l=requestAnimationFrame(()=>{t.current?.querySelector("[data-task-drawer-close]")?.focus()}),p=g=>{if(g.key==="Escape"){g.preventDefault(),n.current();return}if(g.key!=="Tab")return;let f=t.current,B=Array.from(f?.querySelectorAll(Zge)??[]).filter(b=>b.tabIndex>=0&&b.getClientRects().length>0),y=B.at(0),m=B.at(-1);if(!f||!y||!m){g.preventDefault();return}let h=document.activeElement;g.shiftKey&&(h===y||!f.contains(h))?(g.preventDefault(),m.focus()):!g.shiftKey&&(h===m||!f.contains(h))&&(g.preventDefault(),y.focus())};return window.addEventListener("keydown",p),()=>{cancelAnimationFrame(l),window.removeEventListener("keydown",p),document.body.style.overflow=u;let g=o.current;o.current=void 0,g?.isConnected&&g.focus()}},[a]),!e.task)return null;let{task:r}=e,i=r.createdByEmail?(0,me.jsx)(Fe,{className:"font-semibold text-dashboard-text underline decoration-white/20 underline-offset-2 transition-colors hover:decoration-white/60",to:_r(r.createdByEmail),children:r.ownedByViewer?"you":r.createdBy}):r.ownedByViewer?"you":r.createdBy,A=r.kind==="scheduled"?[{label:"Schedule",value:r.schedule},{label:"Next run",value:r.nextRunAt?t8(r.nextRunAt):"None"}]:[{label:"Resource",value:r.resource},{label:"Events",value:r.events.join(", ")}],s=r.kind==="scheduled"?r.status:r.triggerAvailable?"ready":"unavailable",c="task-details-drawer-title";return(0,me.jsxs)("div",{"aria-labelledby":c,"aria-modal":"true",className:"fixed inset-0 z-50",ref:t,role:"dialog",children:[(0,me.jsx)("button",{"aria-label":"Dismiss task details",className:"absolute inset-0 cursor-default bg-black/55",onClick:e.onClose,tabIndex:-1,type:"button"}),(0,me.jsxs)("aside",{className:"absolute top-0 right-0 grid h-full w-full grid-rows-[auto_minmax(0,1fr)] bg-[#070707] shadow-[-20px_0_60px_rgba(0,0,0,0.45)] md:w-[min(560px,94vw)] md:border-l md:border-white/12",children:[(0,me.jsxs)("header",{className:"relative border-b border-white/10 bg-dashboard-surface-raised px-4 py-3 md:px-5",children:[(0,me.jsxs)("div",{className:"min-w-0 pr-12",children:[(0,me.jsxs)("h2",{className:"m-0 font-display text-lg font-medium tracking-normal text-dashboard-text capitalize",id:c,children:[r.kind," task"]}),(0,me.jsxs)("div",{className:"mt-1 break-words font-mono text-xs leading-snug text-dashboard-text-muted",children:[s," \xB7 ",vz(r.createdAt)]})]}),(0,me.jsx)("div",{className:"absolute top-3 right-4 md:right-5",children:(0,me.jsx)(lt,{"aria-label":"Close task details","data-task-drawer-close":!0,onClick:e.onClose,size:"icon",title:"Close",children:(0,me.jsx)(Go,{"aria-hidden":"true",size:15,strokeWidth:2.25})})})]}),(0,me.jsx)("div",{className:"min-h-0 overflow-auto px-4 py-4 md:px-5",children:(0,me.jsxs)("section",{className:"grid gap-5",children:[(0,me.jsxs)("div",{children:[(0,me.jsx)("div",{className:"mb-2 font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted",children:"Instruction"}),(0,me.jsx)(bo,{text:r.instruction})]}),(0,me.jsxs)("dl",{className:"grid gap-px overflow-hidden rounded border border-white/[0.06] bg-white/[0.055]",children:[A.map(u=>(0,me.jsx)(Fy,{label:u.label,children:u.value},u.label)),(0,me.jsx)(Fy,{label:"Destination",children:(0,me.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,me.jsx)(Fs,{"aria-hidden":"true",className:"text-cyan-300/70",size:13}),r.destination.label," \xB7 ",r.destination.visibility]})}),(0,me.jsxs)(Fy,{label:"Created",children:[i," \xB7 ",vz(r.createdAt)]}),(0,me.jsx)(Fy,{label:"Executions",children:(0,me.jsx)(Vge,{task:r})})]}),r.totalRuns>0?(0,me.jsx)("div",{className:"pt-1",children:(0,me.jsx)(Fe,{className:"inline-flex items-center justify-center rounded border border-white/12 bg-white/[0.03] px-3 py-2 font-mono text-xs font-medium text-dashboard-text no-underline transition-colors hover:border-white/25 hover:bg-white/[0.06]",to:`/tasks/${r.kind}/${encodeURIComponent(r.id)}/executions`,children:"View all executions"})}):null]})})]})]})}function Fy(e){return(0,me.jsxs)("div",{className:"min-w-0 bg-[#09090b] px-3 py-3",children:[(0,me.jsx)("dt",{className:"font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted",children:e.label}),(0,me.jsx)("dd",{className:"mt-1.5 ml-0 break-words text-sm leading-relaxed text-dashboard-text",children:e.children})]})}function Vge(e){let{task:t}=e,n=`/tasks/${t.kind}/${encodeURIComponent(t.id)}/executions`;return(0,me.jsxs)("div",{className:"text-sm text-dashboard-text-muted",children:[t.totalRuns>0?(0,me.jsxs)(Fe,{className:"text-dashboard-text underline decoration-white/20 underline-offset-2 hover:decoration-white/60",to:n,children:[t.runsLast7Days," runs / 7d"]}):(0,me.jsxs)("span",{className:"text-dashboard-text",children:[t.runsLast7Days," runs / 7d"]}),(0,me.jsx)("span",{className:"mx-2 opacity-45",children:"\xB7"}),(0,me.jsxs)("span",{children:[t.totalRuns>0?(0,me.jsxs)(Fe,{className:"text-dashboard-text underline decoration-white/20 underline-offset-2 hover:decoration-white/60",to:n,children:[t.totalRuns," total"]}):(0,me.jsxs)(me.Fragment,{children:[t.totalRuns," total"]}),t.lastRunAt?" \xB7 Last execution ":" \xB7 Never run",t.lastRunAt&&t.lastConversationId?(0,me.jsx)(Fe,{className:"text-dashboard-text underline decoration-white/20 underline-offset-2 hover:decoration-white/60",to:Ir(t.lastConversationId),children:t8(t.lastRunAt)}):t.lastRunAt?t8(t.lastRunAt):null]})]})}function vz(e){return Aa(e,{dateStyle:"medium",timeStyle:"short"})}function t8(e){return Aa(e,{day:"numeric",hour:"numeric",minute:"2-digit",month:"short",timeZoneName:"short",year:"numeric"})}var Fz=w(Y(),1);var _t=w(Q(),1),Dz=[{color:"#6ee7b7",key:"scheduled",label:"Scheduled"},{color:"#c4b5fd",key:"event",label:"Event"}];function Sz(e){let[t,n]=(0,Fz.useState)(30),o=e.days.slice(-t),a=720,r=200,i=56,A=12,s=14,u=r-s-34,l=a-i-A,p=o.length>0?l/o.length:l,g=Math.max(2,Math.min(13,p*.68)),f=o.map(m=>m.scheduled+m.event),B=Math.max(1,...f),y=f.some(m=>m>0);return(0,_t.jsxs)(q,{className:"min-h-[17rem] p-4 sm:p-5",children:[(0,_t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,_t.jsxs)("div",{children:[(0,_t.jsx)("h2",{className:"m-0 font-display text-xl font-medium text-dashboard-text",children:"Activity over time"}),(0,_t.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:"Completed scheduled and event task runs each day."})]}),(0,_t.jsx)("div",{"aria-label":"Task execution range",className:"inline-flex rounded border border-white/[0.08] bg-black/20 p-0.5",children:[7,30,90].map(m=>(0,_t.jsxs)("button",{"aria-pressed":t===m,className:S("cursor-pointer rounded-sm border-0 px-2.5 py-1.5 font-mono text-xs uppercase tracking-[0.1em] transition-colors",t===m?"bg-cyan-300/10 text-cyan-100":"bg-transparent text-dashboard-text-muted hover:text-dashboard-text"),onClick:()=>n(m),type:"button",children:[m,"d"]},m))})]}),(0,_t.jsx)("div",{"aria-label":"Task execution legend",className:"mt-4 flex flex-wrap gap-4",children:Dz.map(m=>(0,_t.jsxs)("span",{className:"inline-flex items-center gap-1.5 font-mono text-xs text-dashboard-text-muted",children:[(0,_t.jsx)("i",{className:"size-2 rounded-sm",style:{backgroundColor:m.color}}),m.label]},m.key))}),(0,_t.jsxs)("div",{className:"relative mt-3 overflow-hidden",children:[(0,_t.jsxs)("svg",{"aria-label":`Task executions during the last ${t} days`,className:"block h-auto min-h-40 w-full",role:"img",viewBox:`0 0 ${a} ${r}`,children:[[B,B/2,0].map((m,h)=>{let b=s+h*(u/2);return(0,_t.jsxs)("g",{children:[(0,_t.jsx)("line",{stroke:"rgba(255,255,255,0.07)",strokeDasharray:"3 5",x1:i,x2:a-A,y1:b,y2:b}),(0,_t.jsx)("text",{fill:"rgba(255,255,255,0.34)",fontFamily:"ui-monospace, monospace",fontSize:"12",textAnchor:"end",x:i-7,y:b+3,children:Math.round(m)})]},h)}),o.map((m,h)=>{let b=0,C=i+h*p+(p-g)/2,E=f[h]??0;return(0,_t.jsx)(Ut,{content:(0,_t.jsx)(Eo,{rows:[["scheduled",m.scheduled],["event",m.event],["total",E]]}),label:n8(m.date),children:(0,_t.jsxs)("g",{"aria-label":`${n8(m.date)}: ${m.scheduled} scheduled, ${m.event} event, ${E} total executions`,tabIndex:0,children:[Dz.map(x=>{let R=m[x.key]/B*u;return b+=R,(0,_t.jsx)("rect",{fill:x.color,height:R,opacity:.82,rx:"1",width:g,x:C,y:s+u-b},x.key)}),(0,_t.jsx)("rect",{fill:"transparent",height:u,width:Math.max(g,8),x:C-(Math.max(g,8)-g)/2,y:s})]})},m.date)}),[0,Math.floor((o.length-1)/2),o.length-1].map(m=>{let h=o[m];return h?(0,_t.jsx)("text",{fill:"rgba(255,255,255,0.34)",fontFamily:"ui-monospace, monospace",fontSize:"12",textAnchor:m===0?"start":m===o.length-1?"end":"middle",x:m===0?i:m===o.length-1?a-A:i+m*p+p/2,y:r-9,children:n8(h.date)},h.date):null})]}),y?null:(0,_t.jsx)("div",{className:"pointer-events-none absolute inset-0 grid place-items-center pt-12 font-mono text-xs text-dashboard-text-muted",children:"No task executions in this period."})]})]})}function n8(e){return new Intl.DateTimeFormat("en-US",{day:"numeric",month:"short",timeZone:"UTC"}).format(new Date(`${e}T00:00:00.000Z`))}var W=w(Q(),1),Xge=["all","scheduled","event"],eme=["mine","public"];function tme(e){return Aa(e,{dateStyle:"medium",timeStyle:"short"})}function nme(e){return Aa(e,{day:"numeric",hour:"numeric",minute:"2-digit",month:"short",timeZoneName:"short",year:"numeric"})}function ame(e,t){return[e.createdBy,e.destination.channelId,e.destination.label,e.destination.teamId,e.instruction,e.kind,e.kind==="scheduled"?e.schedule:e.resource,...e.kind==="event"?[e.source]:[],...e.kind==="event"?e.events:[]].join(" ").toLowerCase().includes(t)}function Lz(e){let t=CM(e.enabled),n=Hn(),o=so(),a=dt(),{taskId:r}=On(),[i,A]=Zs("type","all",Xge),[s,c]=Zs("scope","mine",eme),[u,l,p]=FA(),g=p.toLowerCase(),f=k=>vr(k,a.search),B=t.data?.tasks??[],y=B.filter(k=>k.ownedByViewer).length,m=B.filter(k=>k.destination.visibility==="public").length,h=(0,Sy.useMemo)(()=>B.filter(k=>s==="mine"?k.ownedByViewer:k.destination.visibility==="public"),[s,B]),b=(0,Sy.useMemo)(()=>h.filter(k=>(i==="all"||k.kind===i)&&(!g||ame(k,g))),[i,h,g]),C=b.length,E=(0,Sy.useMemo)(()=>B.find(k=>k.id===r),[r,B]),x=rr({mutationFn:async k=>{await Ju(`/api/tasks/${k.kind}/${encodeURIComponent(k.id)}`)},onSuccess:async()=>{await n.invalidateQueries({queryKey:["dashboard","tasks"]})}});return!t.data&&!t.error?(0,W.jsx)(Qe,{label:"Loading tasks"}):(0,W.jsxs)("div",{className:`${xt} px-4 py-8 md:px-8`,children:[(0,W.jsxs)("section",{className:"mx-auto grid w-full max-w-6xl gap-5",children:[(0,W.jsx)(Dt,{description:"Scheduled and event-driven work created by users.",title:"Tasks"}),t.data?.executionDays?.length?(0,W.jsx)(Sz,{days:t.data.executionDays}):null,(0,W.jsxs)(q,{className:"grid gap-4 p-4 lg:grid-cols-[auto_auto_minmax(16rem,1fr)] lg:items-end",children:[(0,W.jsxs)(a8,{label:"Scope",children:[(0,W.jsxs)(Ii,{className:"inline-flex items-center gap-1.5",onClick:()=>c("mine"),pressed:s==="mine",variant:"pill",children:[(0,W.jsx)(Ia,{"aria-hidden":"true",size:13}),"Mine ",(0,W.jsx)("span",{className:"opacity-65",children:y})]}),(0,W.jsxs)(Ii,{className:"inline-flex items-center gap-1.5",onClick:()=>c("public"),pressed:s==="public",variant:"pill",children:[(0,W.jsx)(uo,{"aria-hidden":"true",size:13}),"Public ",(0,W.jsx)("span",{className:"opacity-65",children:m})]})]}),(0,W.jsx)(a8,{label:"Type",children:["all","scheduled","event"].map(k=>(0,W.jsx)(Ii,{onClick:()=>A(k),pressed:i===k,variant:"pill",children:k},k))}),(0,W.jsx)(a8,{label:"Search",children:(0,W.jsx)(Sr,{className:"w-full lg:max-w-sm",label:"Search tasks",onChange:l,placeholder:"Instruction, location, or creator",value:u})})]}),(0,W.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-x-5 gap-y-1 border-b border-white/[0.07] pb-3",children:[(0,W.jsxs)("p",{className:"m-0 font-display text-lg text-dashboard-text",children:[C," ",C===1?"task":"tasks"]}),(0,W.jsx)("p",{className:"m-0 text-xs text-dashboard-text-muted",children:s==="mine"?"Tasks you created, including private destinations.":"All tasks assigned to public destinations in your linked workspaces."})]}),t.error?(0,W.jsx)(q,{padding:"md",children:(0,W.jsx)("p",{className:"m-0 text-sm text-rose-300",children:"Tasks could not be loaded. Try again."})}):C===0?(0,W.jsx)(q,{padding:"md",children:(0,W.jsx)("p",{className:"m-0 text-sm text-dashboard-text-muted",children:ome({filter:i,mineCount:y,publicCount:m,scope:s,search:g})})}):(0,W.jsxs)(q,{children:[(0,W.jsx)(rme,{}),(0,W.jsx)("div",{className:"divide-y divide-white/[0.07]",role:"list",children:b.map(k=>{let R=`${k.kind}:${k.id}`;return(0,W.jsx)(ime,{deleting:x.isPending&&x.variables?.id===k.id,onDelete:()=>{window.confirm(`Delete this ${k.kind} task?`)&&x.mutate(k)},onSelect:()=>o(f(r===k.id?"/tasks":`/tasks/${encodeURIComponent(k.id)}`)),selected:r===k.id,task:k},R)})})]}),t.data?.truncated?(0,W.jsx)("p",{className:"m-0 text-center text-xs text-dashboard-text-muted",children:"Showing up to 100 recent tasks in each scope."}):null,x.error?(0,W.jsx)("p",{className:"m-0 text-center text-sm text-rose-300",children:"The task could not be deleted. Try again."}):null]}),(0,W.jsx)(xz,{onClose:()=>o(f("/tasks")),task:E})]})}function ome(e){return e.search||e.filter!=="all"?"No tasks matched these filters.":e.scope==="mine"&&e.mineCount===0?"You have no active or completed tasks.":e.scope==="public"&&e.publicCount===0?"No tasks are assigned to public destinations in your linked workspaces.":"No tasks are available."}function a8(e){return(0,W.jsxs)("div",{children:[(0,W.jsx)("div",{className:"mb-2 font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted",children:e.label}),(0,W.jsx)("div",{className:"flex flex-wrap gap-2",role:"group","aria-label":e.label,children:e.children})]})}function rme(){return(0,W.jsxs)("div",{"aria-hidden":"true",className:"hidden grid-cols-[repeat(3,minmax(0,1fr))_auto_auto] items-center gap-3 border-b border-white/[0.07] px-4 py-2.5 text-left font-mono text-xs uppercase tracking-[0.12em] text-dashboard-text-muted lg:grid",children:[(0,W.jsx)("span",{children:"Task"}),(0,W.jsx)("span",{children:"Destination"}),(0,W.jsx)("span",{children:"Trigger"}),(0,W.jsx)("span",{"aria-hidden":"true",className:"size-8"}),(0,W.jsx)("span",{"aria-hidden":"true",className:"size-9"})]})}function ime(e){let{task:t}=e;return(0,W.jsx)("article",{role:"listitem",children:(0,W.jsxs)(vB,{className:"grid grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-3 px-4 py-3 md:grid-cols-[repeat(2,minmax(0,1fr))_auto_auto] lg:grid-cols-[repeat(3,minmax(0,1fr))_auto_auto]",onSelect:e.onSelect,selected:e.selected,children:[(0,W.jsxs)("button",{"aria-expanded":e.selected,className:"flex min-w-0 cursor-pointer items-center gap-3 border-0 bg-transparent p-0 text-left",onClick:e.onSelect,type:"button",children:[(0,W.jsx)(Ame,{task:t}),(0,W.jsxs)("span",{className:"min-w-0",children:[(0,W.jsx)("span",{className:"block truncate font-display text-base font-medium text-dashboard-text",children:t.instruction}),(0,W.jsxs)("span",{className:"mt-1 block truncate font-mono text-xs uppercase tracking-[0.08em] text-dashboard-text-muted",children:[(0,W.jsx)("span",{className:"md:hidden",children:t.destination.label}),(0,W.jsx)("span",{className:"hidden md:inline",children:tme(t.createdAt)})]})]})]}),(0,W.jsxs)("div",{className:"hidden min-w-0 md:block",children:[(0,W.jsx)("div",{className:"truncate text-sm font-medium text-dashboard-text",children:t.destination.label}),(0,W.jsx)("div",{className:"mt-1 font-mono text-xs uppercase tracking-[0.08em] text-dashboard-text-muted",children:t.destination.visibility})]}),(0,W.jsxs)("div",{className:"hidden min-w-0 lg:block",children:[(0,W.jsx)("div",{className:"truncate text-sm text-dashboard-text",children:t.kind==="scheduled"?t.schedule:t.resource}),(0,W.jsx)("div",{className:"mt-1 truncate font-mono text-xs text-dashboard-text-muted",children:t.kind==="scheduled"?t.nextRunAt?`Next ${nme(t.nextRunAt)}`:"No next run":t.events.join(", ")})]}),(0,W.jsx)("button",{"aria-expanded":e.selected,"aria-label":`View task details: ${t.instruction}`,className:"grid size-8 cursor-pointer place-items-center rounded border border-transparent bg-transparent text-dashboard-text-muted transition-colors hover:border-white/10 hover:bg-white/[0.04] hover:text-dashboard-text",onClick:e.onSelect,type:"button",children:(0,W.jsx)(hi,{"aria-hidden":"true",className:S("transition-transform",e.selected&&"translate-x-0.5 text-cyan-200"),size:16})}),t.ownedByViewer?(0,W.jsx)(lt,{"aria-label":`Delete: ${t.instruction}`,disabled:e.deleting,onClick:e.onDelete,size:"icon",title:"Delete task",children:(0,W.jsx)(Po,{"aria-hidden":"true",size:15})}):(0,W.jsx)("span",{"aria-hidden":"true",className:"size-8"})]})})}function Ame(e){let{task:t}=e;if(t.kind==="scheduled")return(0,W.jsx)("div",{"aria-label":"Scheduled task",className:"grid size-9 shrink-0 place-items-center rounded border border-white/[0.08] bg-white/[0.03] text-cyan-300/75",role:"img",title:"Scheduled task",children:(0,W.jsx)(Qp,{"aria-hidden":"true",size:16})});let n=t.source.trim(),o=n.toLowerCase(),a=o==="github",r=a?"GitHub":o==="pagerduty"?"PagerDuty":n,i=o==="pagerduty"?"PD":n.slice(0,2).toUpperCase();return(0,W.jsx)("div",{"aria-label":`${r} event task`,className:"grid size-9 shrink-0 place-items-center rounded border border-white/[0.08] bg-white/[0.03] text-cyan-300/75",role:"img",title:`${r} event task`,children:a?(0,W.jsx)(sme,{}):(0,W.jsx)("span",{className:"font-mono text-xs font-semibold uppercase tracking-[0.08em]",children:i})})}function sme(){return(0,W.jsx)("svg",{"aria-hidden":"true",className:"size-[18px]",fill:"currentColor",viewBox:"0 0 24 24",children:(0,W.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.418-1.305.762-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.793 1.23 1.1-.306 2.28-.459 3.45-.465 1.17.006 2.35.159 3.45.465 2.79-1.552 3.795-1.23 3.795-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.435.375.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})})}var O=w(Q(),1),cme={backgroundColor:"#050507",backgroundImage:"radial-gradient(ellipse at 50% 0%, transparent 0%, #050507 70%), linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px)",backgroundSize:"100% 100%, 40px 40px, 40px 40px"},ume={backgroundImage:`url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.7'/%3E%3C/svg%3E")`};function Rz(){let e=dt(),t=hM(),n=BM(),o=t.data,a=n.data??[];o&&z5(o.config.timeZone);let r=!o&&!t.error,i=!!(o?.config.authRequired&&o.me.user.email),A=QM(i),s=i?a.filter(g=>g.navigation==="primary"):[],c=e.pathname==="/"||e.pathname==="/conversations"||e.pathname.startsWith("/conversations/"),u=e.pathname.startsWith("/conversations/")&&e.pathname!=="/conversations/";async function l(){await fetch(`${o?.config.authPath??"/api/auth"}/sign-out`,{credentials:"same-origin",method:"POST"}),window.location.assign(o?.config.basePath??"/")}let p=({isActive:g})=>S("shrink-0 whitespace-nowrap rounded-md px-2.5 py-2 font-mono text-xs font-medium uppercase tracking-[0.08em] no-underline transition-colors sm:tracking-[0.12em]",g?"bg-cyan-300/[0.1] text-cyan-50":S("hover:bg-white/[0.035]",EA));return(0,O.jsxs)("main",{className:S("relative grid font-mono text-dashboard-text",c?S("h-dvh min-h-0 overflow-hidden",u?"grid-rows-[minmax(0,1fr)] md:grid-rows-[auto_minmax(0,1fr)]":"grid-rows-[auto_minmax(0,1fr)]"):"min-h-screen grid-rows-[auto_1fr]"),style:cme,children:[(0,O.jsx)("header",{className:S("sticky top-0 z-10 border-b border-white/[0.05] bg-[#050507]/95",u&&"max-md:hidden"),children:(0,O.jsxs)("div",{className:S(xt,"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-4 gap-y-2 px-4 py-3 md:gap-x-5 md:gap-y-3 md:py-4",i?"md:grid-cols-[auto_minmax(0,1fr)_auto]":"md:grid-cols-[auto_minmax(0,1fr)]",c?"md:px-4":"md:px-8"),children:[(0,O.jsx)(Fe,{"aria-label":`${it()} home`,className:"flex min-w-0 max-w-full items-center justify-self-start text-inherit no-underline",to:"/",children:(0,O.jsx)(Mh,{})}),(0,O.jsxs)("nav",{className:"col-span-2 row-start-2 flex min-w-0 items-center gap-1 overflow-x-auto [scrollbar-width:none] md:col-span-1 md:col-start-2 md:row-start-1 md:justify-self-start md:overflow-visible [&::-webkit-scrollbar]:hidden",children:[(0,O.jsx)(Fe,{"aria-current":c?"page":void 0,className:p({isActive:c}),to:"/",children:"Conversations"}),i?(0,O.jsx)(Ca,{className:p,to:"/tasks",children:"Tasks"}):null,s.map(g=>(0,O.jsx)(Ca,{className:p,to:NB(g.pluginName,g.id),children:g.label},`${g.pluginName}:${g.id}`)),(0,O.jsx)(Ca,{className:p,to:"/system",children:"System"})]}),i?(0,O.jsx)("div",{className:"col-start-2 row-start-1 justify-self-end md:col-start-3",children:(0,O.jsx)(NU,{identity:o.me,onSignOut:l,spend:A.data,userPages:a})}):null]})}),(0,O.jsxs)(ZE,{children:[(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading task executions"}):i?(0,O.jsx)(_z,{enabled:i}):(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/tasks/:kind/:taskId/executions"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading tasks"}):i?(0,O.jsx)(Lz,{enabled:i}):(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/tasks/:taskId?"}),(0,O.jsx)(jt,{element:(0,O.jsx)(o8,{section:"locations"}),path:"/locations"}),(0,O.jsx)(jt,{element:(0,O.jsx)(o8,{section:"locations"}),path:"/locations/:locationId"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading locations"}):(0,O.jsx)(Zq,{}),path:"/system/locations"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading location"}):(0,O.jsx)(zq,{}),path:"/system/locations/:locationId"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading your conversations"}):o?(0,O.jsx)(KF,{data:o}):(0,O.jsx)(Qe,{label:t.error?.message??"Dashboard unavailable"}),path:"/"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading your conversations"}):o?(0,O.jsx)(KF,{data:o}):(0,O.jsx)(Qe,{label:t.error?.message??"Dashboard unavailable"}),path:"/conversations/:conversationId"}),(0,O.jsx)(jt,{element:(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/conversations"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading components"}):o?o.config.componentGallery?(0,O.jsx)(Gq,{}):(0,O.jsx)(vt,{replace:!0,to:"/"}):(0,O.jsx)(Qe,{label:t.error?.message??"Dashboard unavailable"}),path:"/dev/*"}),(0,O.jsx)(jt,{element:(0,O.jsx)(o8,{section:"people"}),path:"/people"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading profile"}):(0,O.jsx)(Az,{}),path:"/people/:email"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading people"}):(0,O.jsx)(nz,{}),path:"/system/people"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading system"}):o?(0,O.jsx)(dme,{coreData:o}):(0,O.jsx)(Qe,{label:t.error?.message??"Dashboard unavailable"}),path:"/system/*"}),(0,O.jsx)(jt,{element:r?(0,O.jsx)(Qe,{label:"Loading API tokens"}):i?(0,O.jsx)(az,{}):(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/settings/api-tokens"}),(0,O.jsx)(jt,{element:r||n.isPending?(0,O.jsx)(Qe,{label:"Loading memory"}):i&&n.data?(0,O.jsx)(tF,{pages:n.data}):(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/memories/:memoryId?"}),(0,O.jsx)(jt,{element:r||n.isPending?(0,O.jsx)(Qe,{label:"Loading memories"}):i&&n.data?(0,O.jsx)(tF,{pages:n.data}):(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/memories/library"}),(0,O.jsx)(jt,{element:r||n.isPending?(0,O.jsx)(Qe,{label:"Loading page"}):i&&n.data?(0,O.jsx)(RU,{pages:n.data}):(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"/plugins/:pluginName/:pageId/*"}),(0,O.jsx)(jt,{element:(0,O.jsx)(vt,{replace:!0,to:"/"}),path:"*"})]}),(0,O.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none fixed inset-0 z-50 block opacity-[0.018]",style:ume})]})}function o8(e){let t=dt(),n=`/${e.section}`,o=t.pathname.slice(n.length);return(0,O.jsx)(vt,{replace:!0,to:`/system/${e.section}${o}${t.search}${t.hash}`})}function dme(e){let t=vM(e.coreData);return!t.data&&!t.error?(0,O.jsx)(Qe,{label:"Loading system"}):t.data?(0,O.jsx)(Cz,{data:t.data}):(0,O.jsx)(Qe,{label:t.error?.message??"System unavailable"})}var Ya=w(Q(),1),r8=class extends Nz.Component{state={error:null};static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){let o=t.stack??n.componentStack;window.__JUNIOR_DASHBOARD_SHOW_ERROR__?.(o?new Error(o):t)}render(){return this.state.error?(0,Ya.jsx)(lme,{error:this.state.error}):this.props.children}};function lme(e){return(0,Ya.jsx)("main",{className:"grid min-h-screen place-items-center bg-black p-8 text-white",children:(0,Ya.jsxs)("section",{className:"w-full max-w-5xl border border-rose-400/50 bg-[#0b0b0b] p-5 font-sans",children:[(0,Ya.jsx)("div",{className:"font-mono text-xs uppercase leading-none text-[#888]",children:"Dashboard Error"}),(0,Ya.jsxs)("h1",{className:"mt-2 text-3xl font-bold leading-tight tracking-normal",children:[it()," failed to render"]}),(0,Ya.jsx)("p",{className:"my-4 max-w-3xl text-[#b8b8b8]",children:"The dashboard hit a client-side exception. The stack trace is shown here so the page does not fail blank."}),(0,Ya.jsx)("pre",{className:"max-h-[60vh] overflow-auto whitespace-pre-wrap break-words border border-white/10 bg-black p-4 font-mono text-sm leading-relaxed text-white",children:e.error.stack??e.error.message})]})})}var Mz=document.getElementById("dashboard-root");if(!Mz)throw new Error("Junior dashboard root element was not found");var pme=new qy({defaultOptions:{queries:{staleTime:3e4}}});(0,$z.createRoot)(Mz).render((0,Ya.jsx)(r8,{children:(0,Ya.jsx)(eC,{client:pme,children:(0,Ya.jsx)(nk,{basename:window.__JUNIOR_DASHBOARD_BASE_PATH__??"/",children:(0,Ya.jsx)(Rz,{})})})}));
|
|
136
136
|
/*! Bundled license information:
|
|
137
137
|
|
|
138
138
|
react/cjs/react.production.js:
|