@yukino.js/yukino 0.0.21-dev → 0.0.21

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.
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __yukinoCreateRequire } from "node:module";
3
3
  const require = __yukinoCreateRequire(import.meta.url);
4
- import{$ as wS,A as HE,Aa as HS,B as KE,Ba as KS,C as VE,Ca as VS,D as YE,Da as YS,E as XE,Ea as XS,F as JE,Fa as JS,G as ZE,Ga as ZS,H as QE,Ha as QS,I as eS,Ia as eT,J as tS,Ja as tT,K as rS,Ka as rT,L as oS,La as oT,M as nS,Ma as jr,N as sS,O as iS,P as aS,Q as lS,R as cS,S as uS,T as dS,U as pS,V as hS,W as mS,X as fS,Y as gS,Z as yS,_ as _S,a as EE,aa as ES,b as pl,ba as SS,c as Wt,ca as TS,d as IE,da as bS,e as OE,ea as vS,f as ME,fa as RS,ga as kS,h as CE,ha as xS,i as hl,ia as AS,ja as PS,ka as IS,l as bn,la as OS,m as NE,ma as MS,n as $E,na as CS,o as LE,oa as NS,p as DE,pa as $S,q as UE,qa as LS,r as jE,ra as DS,s as ml,sa as US,t as fl,ta as jS,u as FE,ua as FS,v as zE,va as zS,w as WE,wa as WS,x as qE,xa as qS,y as BE,ya as BS,z as GE,za as GS}from"./chunk-57IGGFHK.js";import{C as fE,D as cl,E as gE,F as yE,G as _E,H as wE,J as SE,L as ul,M as TE,N as bE,O as Fs,Q as vE,R as RE,S as kE,T as zs,U as xE,V as dl,W as AE,X as PE,a as zt,b as Ba,c as Ga,d as _t,e as Fy,j as By,q as Gy,r as Hy}from"./chunk-5D3QKHYQ.js";import{A as lE,B as cE,C as uE,D as dE,F as pE,G as hE,J as mE,c as Vw,k as Yw,l as Xw,m as Jw,n as Zw,o as Zd,p as Qd,r as Qw,s as eE,t as tE,u as rE,v as oE,w as nE,x as sE,y as iE,z as aE}from"./chunk-WKTO7XPO.js";import{$ as f_,$a as ow,$b as Cw,A as Yy,Aa as F_,Ab as En,B as Dd,Ba as z_,Bb as js,Bc as R,C as Xy,Ca as W_,Cb as yw,Cc as ll,D as Jy,Da as q_,Db as Jd,Dc as mr,E as Zy,Ea as B_,Eb as _w,Ec as I,F as Qy,Fa as G_,Fb as ww,Fc as Tn,G as e_,Ga as H_,Gb as Ew,H as Ud,Ha as K_,Hb as Sw,I as t_,Ia as V_,J as jd,Ja as Y_,K as r_,Ka as X_,Kb as nl,L as o_,La as J_,Lb as sl,M as n_,Mb as rr,N as s_,Nb as Tw,O as Fd,Ob as fe,P as zd,Pa as A,Pb as Sn,Q as i_,Qa as Z_,Qb as bw,R as a_,Ra as Q_,Rb as vw,S as l_,Sa as _n,Sb as il,T as Wd,Ta as wn,Tb as Rw,U as c_,Ua as Xa,Ub as kw,V as u_,Va as Gd,Vb as xw,W as Ya,Wa as ew,Wb as Aw,X as d_,Xa as Hd,Xb as Pw,Y as p_,Ya as Ja,Yb as Iw,Z as h_,Za as tw,Zb as Ow,_ as m_,_a as rw,_b as Mw,aa as g_,ab as nw,ac as Nw,b as zy,ba as y_,bb as sw,bc as $w,c as Wy,ca as __,cb as iw,cc as al,d as Nr,da as w_,db as aw,dc as Lw,e as q,ea as E_,eb as lw,ec as Dw,f as Ls,fa as S_,fb as cw,fc as Uw,g as tr,ga as T_,gb as uw,gc as jw,h as X,ha as b_,hb as Za,hc as Fw,i as Ha,ia as v_,ib as Qa,ic as zw,j as te,ja as R_,jb as Kd,k as $r,ka as k_,kb as el,l as qy,la as x_,lb as tl,lc as Ww,m as ae,ma as A_,mb as rl,mc as qw,n as vt,na as P_,nb as ol,nc as Bw,o as Lr,oa as I_,oc as Gw,p as it,pa as O_,pb as Vd,q as Dr,qa as M_,qb as Yd,r as gn,ra as C_,rb as Xd,s as yn,sa as N_,sb as Ro,t as Ds,ta as $_,tb as dw,u as Ky,ua as L_,ub as pw,uc as Hw,v as vo,va as D_,vb as hw,vc as Rt,w as le,wa as qd,wb as mw,wc as Kw,x as Ka,xa as U_,xb as fw,xc as Ur,y as Vy,ya as j_,yb as gw,yc as at,z as Va,za as Bd,zb as Us,zc as lt}from"./chunk-5AOJ5ZSQ.js";import{t as ee,u as z,v as Cr}from"./chunk-WLJL66O5.js";import{a as jy}from"./chunk-EQABLL4S.js";import{A as Uy,B as m,a as Iy,c as Ye,d as bo,e as Oy,f as S,g as My,h as ne,i as de,j as Cy,k as Ny,l as Re,m as P,n as O,o as Pe,p as we,q as Nd,r as $d,s as me,t as yt,u as $,v as be,w as $y,x as Ld,y as Ly,z as Dy}from"./chunk-QSKJBSCI.js";import{a as Mr,c as x,e as $s}from"./chunk-7MKA3SHV.js";var Bi=x(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.regexpCode=ie.getEsmExportName=ie.getProperty=ie.safeStringify=ie.stringify=ie.strConcat=ie.addCodeArg=ie.str=ie._=ie.nil=ie._Code=ie.Name=ie.IDENTIFIER=ie._CodeOrName=void 0;var Wi=class{};ie._CodeOrName=Wi;ie.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Vo=class extends Wi{constructor(e){if(super(),!ie.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ie.Name=Vo;var Lt=class extends Wi{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,o)=>`${r}${o}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,o)=>(o instanceof Vo&&(r[o.str]=(r[o.str]||0)+1),r),{})}};ie._Code=Lt;ie.nil=new Lt("");function tO(t,...e){let r=[t[0]],o=0;for(;o<e.length;)Nm(r,e[o]),r.push(t[++o]);return new Lt(r)}ie._=tO;var Cm=new Lt("+");function rO(t,...e){let r=[qi(t[0])],o=0;for(;o<e.length;)r.push(Cm),Nm(r,e[o]),r.push(Cm,qi(t[++o]));return EH(r),new Lt(r)}ie.str=rO;function Nm(t,e){e instanceof Lt?t.push(...e._items):e instanceof Vo?t.push(e):t.push(bH(e))}ie.addCodeArg=Nm;function EH(t){let e=1;for(;e<t.length-1;){if(t[e]===Cm){let r=SH(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function SH(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Vo||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Vo))return`"${t}${e.slice(1)}`}function TH(t,e){return e.emptyStr()?t:t.emptyStr()?e:rO`${t}${e}`}ie.strConcat=TH;function bH(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:qi(Array.isArray(t)?t.join(","):t)}function vH(t){return new Lt(qi(t))}ie.stringify=vH;function qi(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ie.safeStringify=qi;function RH(t){return typeof t=="string"&&ie.IDENTIFIER.test(t)?new Lt(`.${t}`):tO`[${t}]`}ie.getProperty=RH;function kH(t){if(typeof t=="string"&&ie.IDENTIFIER.test(t))return new Lt(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}ie.getEsmExportName=kH;function xH(t){return new Lt(t.toString())}ie.regexpCode=xH});var Dm=x(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.ValueScope=pt.ValueScopeName=pt.Scope=pt.varKinds=pt.UsedValueState=void 0;var dt=Bi(),$m=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},gu;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(gu||(pt.UsedValueState=gu={}));pt.varKinds={const:new dt.Name("const"),let:new dt.Name("let"),var:new dt.Name("var")};var yu=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof dt.Name?e:this.name(e)}name(e){return new dt.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,o;if(!((o=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||o===void 0)&&o.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};pt.Scope=yu;var _u=class extends dt.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:o}){this.value=e,this.scopePath=(0,dt._)`.${new dt.Name(r)}[${o}]`}};pt.ValueScopeName=_u;var AH=(0,dt._)`\n`,Lm=class extends yu{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?AH:dt.nil}}get(){return this._scope}name(e){return new _u(e,this._newName(e))}value(e,r){var o;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:s}=n,i=(o=r.key)!==null&&o!==void 0?o:r.ref,a=this._values[s];if(a){let u=a.get(i);if(u)return u}else a=this._values[s]=new Map;a.set(i,n);let l=this._scope[s]||(this._scope[s]=[]),c=l.length;return l[c]=r.ref,n.setValue(r,{property:s,itemIndex:c}),n}getValue(e,r){let o=this._values[e];if(o)return o.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,o=>{if(o.scopePath===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return(0,dt._)`${e}${o.scopePath}`})}scopeCode(e=this._values,r,o){return this._reduceValues(e,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,o)}_reduceValues(e,r,o={},n){let s=dt.nil;for(let i in e){let a=e[i];if(!a)continue;let l=o[i]=o[i]||new Map;a.forEach(c=>{if(l.has(c))return;l.set(c,gu.Started);let u=r(c);if(u){let d=this.opts.es5?pt.varKinds.var:pt.varKinds.const;s=(0,dt._)`${s}${d} ${c} = ${u};${this.opts._n}`}else if(u=n?.(c))s=(0,dt._)`${s}${u}${this.opts._n}`;else throw new $m(c);l.set(c,gu.Completed)})}return s}};pt.ValueScope=Lm});var G=x(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.or=K.and=K.not=K.CodeGen=K.operators=K.varKinds=K.ValueScopeName=K.ValueScope=K.Scope=K.Name=K.regexpCode=K.stringify=K.getProperty=K.nil=K.strConcat=K.str=K._=void 0;var Z=Bi(),Vt=Dm(),co=Bi();Object.defineProperty(K,"_",{enumerable:!0,get:function(){return co._}});Object.defineProperty(K,"str",{enumerable:!0,get:function(){return co.str}});Object.defineProperty(K,"strConcat",{enumerable:!0,get:function(){return co.strConcat}});Object.defineProperty(K,"nil",{enumerable:!0,get:function(){return co.nil}});Object.defineProperty(K,"getProperty",{enumerable:!0,get:function(){return co.getProperty}});Object.defineProperty(K,"stringify",{enumerable:!0,get:function(){return co.stringify}});Object.defineProperty(K,"regexpCode",{enumerable:!0,get:function(){return co.regexpCode}});Object.defineProperty(K,"Name",{enumerable:!0,get:function(){return co.Name}});var Tu=Dm();Object.defineProperty(K,"Scope",{enumerable:!0,get:function(){return Tu.Scope}});Object.defineProperty(K,"ValueScope",{enumerable:!0,get:function(){return Tu.ValueScope}});Object.defineProperty(K,"ValueScopeName",{enumerable:!0,get:function(){return Tu.ValueScopeName}});Object.defineProperty(K,"varKinds",{enumerable:!0,get:function(){return Tu.varKinds}});K.operators={GT:new Z._Code(">"),GTE:new Z._Code(">="),LT:new Z._Code("<"),LTE:new Z._Code("<="),EQ:new Z._Code("==="),NEQ:new Z._Code("!=="),NOT:new Z._Code("!"),OR:new Z._Code("||"),AND:new Z._Code("&&"),ADD:new Z._Code("+")};var br=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},Um=class extends br{constructor(e,r,o){super(),this.varKind=e,this.name=r,this.rhs=o}render({es5:e,_n:r}){let o=e?Vt.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${o} ${this.name}${n};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=ts(this.rhs,e,r)),this}get names(){return this.rhs instanceof Z._CodeOrName?this.rhs.names:{}}},wu=class extends br{constructor(e,r,o){super(),this.lhs=e,this.rhs=r,this.sideEffects=o}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof Z.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=ts(this.rhs,e,r),this}get names(){let e=this.lhs instanceof Z.Name?{}:{...this.lhs.names};return Su(e,this.rhs)}},jm=class extends wu{constructor(e,r,o,n){super(e,o,n),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Fm=class extends br{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},zm=class extends br{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Wm=class extends br{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},qm=class extends br{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=ts(this.code,e,r),this}get names(){return this.code instanceof Z._CodeOrName?this.code.names:{}}},Gi=class extends br{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,o)=>r+o.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let o=e[r].optimizeNodes();Array.isArray(o)?e.splice(r,1,...o):o?e[r]=o:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:o}=this,n=o.length;for(;n--;){let s=o[n];s.optimizeNames(e,r)||(PH(e,s.names),o.splice(n,1))}return o.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>Jo(e,r.names),{})}},vr=class extends Gi{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Bm=class extends Gi{},es=class extends vr{};es.kind="else";var Yo=class t extends vr{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let o=r.optimizeNodes();r=this.else=Array.isArray(o)?new es(o):o}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(oO(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=ts(this.condition,e,r),this}get names(){let e=super.names;return Su(e,this.condition),this.else&&Jo(e,this.else.names),e}};Yo.kind="if";var Xo=class extends vr{};Xo.kind="for";var Gm=class extends Xo{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=ts(this.iteration,e,r),this}get names(){return Jo(super.names,this.iteration.names)}},Hm=class extends Xo{constructor(e,r,o,n){super(),this.varKind=e,this.name=r,this.from=o,this.to=n}render(e){let r=e.es5?Vt.varKinds.var:this.varKind,{name:o,from:n,to:s}=this;return`for(${r} ${o}=${n}; ${o}<${s}; ${o}++)`+super.render(e)}get names(){let e=Su(super.names,this.from);return Su(e,this.to)}},Eu=class extends Xo{constructor(e,r,o,n){super(),this.loop=e,this.varKind=r,this.name=o,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=ts(this.iterable,e,r),this}get names(){return Jo(super.names,this.iterable.names)}},Hi=class extends vr{constructor(e,r,o){super(),this.name=e,this.args=r,this.async=o}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Hi.kind="func";var Ki=class extends Gi{render(e){return"return "+super.render(e)}};Ki.kind="return";var Km=class extends vr{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var o,n;return super.optimizeNames(e,r),(o=this.catch)===null||o===void 0||o.optimizeNames(e,r),(n=this.finally)===null||n===void 0||n.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&Jo(e,this.catch.names),this.finally&&Jo(e,this.finally.names),e}},Vi=class extends vr{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};Vi.kind="catch";var Yi=class extends vr{render(e){return"finally"+super.render(e)}};Yi.kind="finally";var Vm=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
4
+ import{$ as wS,A as HE,Aa as HS,B as KE,Ba as KS,C as VE,Ca as VS,D as YE,Da as YS,E as XE,Ea as XS,F as JE,Fa as JS,G as ZE,Ga as ZS,H as QE,Ha as QS,I as eS,Ia as eT,J as tS,Ja as tT,K as rS,Ka as rT,L as oS,La as oT,M as nS,Ma as jr,N as sS,O as iS,P as aS,Q as lS,R as cS,S as uS,T as dS,U as pS,V as hS,W as mS,X as fS,Y as gS,Z as yS,_ as _S,a as EE,aa as ES,b as pl,ba as SS,c as Wt,ca as TS,d as IE,da as bS,e as OE,ea as vS,f as ME,fa as RS,ga as kS,h as CE,ha as xS,i as hl,ia as AS,ja as PS,ka as IS,l as bn,la as OS,m as NE,ma as MS,n as $E,na as CS,o as LE,oa as NS,p as DE,pa as $S,q as UE,qa as LS,r as jE,ra as DS,s as ml,sa as US,t as fl,ta as jS,u as FE,ua as FS,v as zE,va as zS,w as WE,wa as WS,x as qE,xa as qS,y as BE,ya as BS,z as GE,za as GS}from"./chunk-57IGGFHK.js";import{C as fE,D as cl,E as gE,F as yE,G as _E,H as wE,J as SE,L as ul,M as TE,N as bE,O as Fs,Q as vE,R as RE,S as kE,T as zs,U as xE,V as dl,W as AE,X as PE,a as zt,b as Ba,c as Ga,d as _t,e as Fy,j as By,q as Gy,r as Hy}from"./chunk-5D3QKHYQ.js";import{A as lE,B as cE,C as uE,D as dE,F as pE,G as hE,J as mE,c as Vw,k as Yw,l as Xw,m as Jw,n as Zw,o as Zd,p as Qd,r as Qw,s as eE,t as tE,u as rE,v as oE,w as nE,x as sE,y as iE,z as aE}from"./chunk-WKTO7XPO.js";import{$ as f_,$a as ow,$b as Cw,A as Yy,Aa as F_,Ab as En,B as Dd,Ba as z_,Bb as js,Bc as R,C as Xy,Ca as W_,Cb as yw,Cc as ll,D as Jy,Da as q_,Db as Jd,Dc as mr,E as Zy,Ea as B_,Eb as _w,Ec as I,F as Qy,Fa as G_,Fb as ww,Fc as Tn,G as e_,Ga as H_,Gb as Ew,H as Ud,Ha as K_,Hb as Sw,I as t_,Ia as V_,J as jd,Ja as Y_,K as r_,Ka as X_,Kb as nl,L as o_,La as J_,Lb as sl,M as n_,Mb as rr,N as s_,Nb as Tw,O as Fd,Ob as fe,P as zd,Pa as A,Pb as Sn,Q as i_,Qa as Z_,Qb as bw,R as a_,Ra as Q_,Rb as vw,S as l_,Sa as _n,Sb as il,T as Wd,Ta as wn,Tb as Rw,U as c_,Ua as Xa,Ub as kw,V as u_,Va as Gd,Vb as xw,W as Ya,Wa as ew,Wb as Aw,X as d_,Xa as Hd,Xb as Pw,Y as p_,Ya as Ja,Yb as Iw,Z as h_,Za as tw,Zb as Ow,_ as m_,_a as rw,_b as Mw,aa as g_,ab as nw,ac as Nw,b as zy,ba as y_,bb as sw,bc as $w,c as Wy,ca as __,cb as iw,cc as al,d as Nr,da as w_,db as aw,dc as Lw,e as q,ea as E_,eb as lw,ec as Dw,f as Ls,fa as S_,fb as cw,fc as Uw,g as tr,ga as T_,gb as uw,gc as jw,h as X,ha as b_,hb as Za,hc as Fw,i as Ha,ia as v_,ib as Qa,ic as zw,j as te,ja as R_,jb as Kd,k as $r,ka as k_,kb as el,l as qy,la as x_,lb as tl,lc as Ww,m as ae,ma as A_,mb as rl,mc as qw,n as vt,na as P_,nb as ol,nc as Bw,o as Lr,oa as I_,oc as Gw,p as it,pa as O_,pb as Vd,q as Dr,qa as M_,qb as Yd,r as gn,ra as C_,rb as Xd,s as yn,sa as N_,sb as Ro,t as Ds,ta as $_,tb as dw,u as Ky,ua as L_,ub as pw,uc as Hw,v as vo,va as D_,vb as hw,vc as Rt,w as le,wa as qd,wb as mw,wc as Kw,x as Ka,xa as U_,xb as fw,xc as Ur,y as Vy,ya as j_,yb as gw,yc as at,z as Va,za as Bd,zb as Us,zc as lt}from"./chunk-5AOJ5ZSQ.js";import{t as ee,u as z,v as Cr}from"./chunk-WLJL66O5.js";import{a as jy}from"./chunk-CEP5W4VW.js";import{A as Uy,B as m,a as Iy,c as Ye,d as bo,e as Oy,f as S,g as My,h as ne,i as de,j as Cy,k as Ny,l as Re,m as P,n as O,o as Pe,p as we,q as Nd,r as $d,s as me,t as yt,u as $,v as be,w as $y,x as Ld,y as Ly,z as Dy}from"./chunk-QSKJBSCI.js";import{a as Mr,c as x,e as $s}from"./chunk-7MKA3SHV.js";var Bi=x(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.regexpCode=ie.getEsmExportName=ie.getProperty=ie.safeStringify=ie.stringify=ie.strConcat=ie.addCodeArg=ie.str=ie._=ie.nil=ie._Code=ie.Name=ie.IDENTIFIER=ie._CodeOrName=void 0;var Wi=class{};ie._CodeOrName=Wi;ie.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Vo=class extends Wi{constructor(e){if(super(),!ie.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ie.Name=Vo;var Lt=class extends Wi{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,o)=>`${r}${o}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,o)=>(o instanceof Vo&&(r[o.str]=(r[o.str]||0)+1),r),{})}};ie._Code=Lt;ie.nil=new Lt("");function tO(t,...e){let r=[t[0]],o=0;for(;o<e.length;)Nm(r,e[o]),r.push(t[++o]);return new Lt(r)}ie._=tO;var Cm=new Lt("+");function rO(t,...e){let r=[qi(t[0])],o=0;for(;o<e.length;)r.push(Cm),Nm(r,e[o]),r.push(Cm,qi(t[++o]));return EH(r),new Lt(r)}ie.str=rO;function Nm(t,e){e instanceof Lt?t.push(...e._items):e instanceof Vo?t.push(e):t.push(bH(e))}ie.addCodeArg=Nm;function EH(t){let e=1;for(;e<t.length-1;){if(t[e]===Cm){let r=SH(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function SH(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Vo||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Vo))return`"${t}${e.slice(1)}`}function TH(t,e){return e.emptyStr()?t:t.emptyStr()?e:rO`${t}${e}`}ie.strConcat=TH;function bH(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:qi(Array.isArray(t)?t.join(","):t)}function vH(t){return new Lt(qi(t))}ie.stringify=vH;function qi(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ie.safeStringify=qi;function RH(t){return typeof t=="string"&&ie.IDENTIFIER.test(t)?new Lt(`.${t}`):tO`[${t}]`}ie.getProperty=RH;function kH(t){if(typeof t=="string"&&ie.IDENTIFIER.test(t))return new Lt(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}ie.getEsmExportName=kH;function xH(t){return new Lt(t.toString())}ie.regexpCode=xH});var Dm=x(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.ValueScope=pt.ValueScopeName=pt.Scope=pt.varKinds=pt.UsedValueState=void 0;var dt=Bi(),$m=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},gu;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(gu||(pt.UsedValueState=gu={}));pt.varKinds={const:new dt.Name("const"),let:new dt.Name("let"),var:new dt.Name("var")};var yu=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof dt.Name?e:this.name(e)}name(e){return new dt.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,o;if(!((o=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||o===void 0)&&o.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};pt.Scope=yu;var _u=class extends dt.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:o}){this.value=e,this.scopePath=(0,dt._)`.${new dt.Name(r)}[${o}]`}};pt.ValueScopeName=_u;var AH=(0,dt._)`\n`,Lm=class extends yu{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?AH:dt.nil}}get(){return this._scope}name(e){return new _u(e,this._newName(e))}value(e,r){var o;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:s}=n,i=(o=r.key)!==null&&o!==void 0?o:r.ref,a=this._values[s];if(a){let u=a.get(i);if(u)return u}else a=this._values[s]=new Map;a.set(i,n);let l=this._scope[s]||(this._scope[s]=[]),c=l.length;return l[c]=r.ref,n.setValue(r,{property:s,itemIndex:c}),n}getValue(e,r){let o=this._values[e];if(o)return o.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,o=>{if(o.scopePath===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return(0,dt._)`${e}${o.scopePath}`})}scopeCode(e=this._values,r,o){return this._reduceValues(e,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,o)}_reduceValues(e,r,o={},n){let s=dt.nil;for(let i in e){let a=e[i];if(!a)continue;let l=o[i]=o[i]||new Map;a.forEach(c=>{if(l.has(c))return;l.set(c,gu.Started);let u=r(c);if(u){let d=this.opts.es5?pt.varKinds.var:pt.varKinds.const;s=(0,dt._)`${s}${d} ${c} = ${u};${this.opts._n}`}else if(u=n?.(c))s=(0,dt._)`${s}${u}${this.opts._n}`;else throw new $m(c);l.set(c,gu.Completed)})}return s}};pt.ValueScope=Lm});var G=x(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.or=K.and=K.not=K.CodeGen=K.operators=K.varKinds=K.ValueScopeName=K.ValueScope=K.Scope=K.Name=K.regexpCode=K.stringify=K.getProperty=K.nil=K.strConcat=K.str=K._=void 0;var Z=Bi(),Vt=Dm(),co=Bi();Object.defineProperty(K,"_",{enumerable:!0,get:function(){return co._}});Object.defineProperty(K,"str",{enumerable:!0,get:function(){return co.str}});Object.defineProperty(K,"strConcat",{enumerable:!0,get:function(){return co.strConcat}});Object.defineProperty(K,"nil",{enumerable:!0,get:function(){return co.nil}});Object.defineProperty(K,"getProperty",{enumerable:!0,get:function(){return co.getProperty}});Object.defineProperty(K,"stringify",{enumerable:!0,get:function(){return co.stringify}});Object.defineProperty(K,"regexpCode",{enumerable:!0,get:function(){return co.regexpCode}});Object.defineProperty(K,"Name",{enumerable:!0,get:function(){return co.Name}});var Tu=Dm();Object.defineProperty(K,"Scope",{enumerable:!0,get:function(){return Tu.Scope}});Object.defineProperty(K,"ValueScope",{enumerable:!0,get:function(){return Tu.ValueScope}});Object.defineProperty(K,"ValueScopeName",{enumerable:!0,get:function(){return Tu.ValueScopeName}});Object.defineProperty(K,"varKinds",{enumerable:!0,get:function(){return Tu.varKinds}});K.operators={GT:new Z._Code(">"),GTE:new Z._Code(">="),LT:new Z._Code("<"),LTE:new Z._Code("<="),EQ:new Z._Code("==="),NEQ:new Z._Code("!=="),NOT:new Z._Code("!"),OR:new Z._Code("||"),AND:new Z._Code("&&"),ADD:new Z._Code("+")};var br=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},Um=class extends br{constructor(e,r,o){super(),this.varKind=e,this.name=r,this.rhs=o}render({es5:e,_n:r}){let o=e?Vt.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${o} ${this.name}${n};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=ts(this.rhs,e,r)),this}get names(){return this.rhs instanceof Z._CodeOrName?this.rhs.names:{}}},wu=class extends br{constructor(e,r,o){super(),this.lhs=e,this.rhs=r,this.sideEffects=o}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof Z.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=ts(this.rhs,e,r),this}get names(){let e=this.lhs instanceof Z.Name?{}:{...this.lhs.names};return Su(e,this.rhs)}},jm=class extends wu{constructor(e,r,o,n){super(e,o,n),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Fm=class extends br{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},zm=class extends br{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Wm=class extends br{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},qm=class extends br{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=ts(this.code,e,r),this}get names(){return this.code instanceof Z._CodeOrName?this.code.names:{}}},Gi=class extends br{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,o)=>r+o.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let o=e[r].optimizeNodes();Array.isArray(o)?e.splice(r,1,...o):o?e[r]=o:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:o}=this,n=o.length;for(;n--;){let s=o[n];s.optimizeNames(e,r)||(PH(e,s.names),o.splice(n,1))}return o.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>Jo(e,r.names),{})}},vr=class extends Gi{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Bm=class extends Gi{},es=class extends vr{};es.kind="else";var Yo=class t extends vr{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let o=r.optimizeNodes();r=this.else=Array.isArray(o)?new es(o):o}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(oO(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=ts(this.condition,e,r),this}get names(){let e=super.names;return Su(e,this.condition),this.else&&Jo(e,this.else.names),e}};Yo.kind="if";var Xo=class extends vr{};Xo.kind="for";var Gm=class extends Xo{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=ts(this.iteration,e,r),this}get names(){return Jo(super.names,this.iteration.names)}},Hm=class extends Xo{constructor(e,r,o,n){super(),this.varKind=e,this.name=r,this.from=o,this.to=n}render(e){let r=e.es5?Vt.varKinds.var:this.varKind,{name:o,from:n,to:s}=this;return`for(${r} ${o}=${n}; ${o}<${s}; ${o}++)`+super.render(e)}get names(){let e=Su(super.names,this.from);return Su(e,this.to)}},Eu=class extends Xo{constructor(e,r,o,n){super(),this.loop=e,this.varKind=r,this.name=o,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=ts(this.iterable,e,r),this}get names(){return Jo(super.names,this.iterable.names)}},Hi=class extends vr{constructor(e,r,o){super(),this.name=e,this.args=r,this.async=o}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Hi.kind="func";var Ki=class extends Gi{render(e){return"return "+super.render(e)}};Ki.kind="return";var Km=class extends vr{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var o,n;return super.optimizeNames(e,r),(o=this.catch)===null||o===void 0||o.optimizeNames(e,r),(n=this.finally)===null||n===void 0||n.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&Jo(e,this.catch.names),this.finally&&Jo(e,this.finally.names),e}},Vi=class extends vr{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};Vi.kind="catch";var Yi=class extends vr{render(e){return"finally"+super.render(e)}};Yi.kind="finally";var Vm=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
5
5
  `:""},this._extScope=e,this._scope=new Vt.Scope({parent:e}),this._nodes=[new Bm]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let o=this._extScope.value(e,r);return(this._values[o.prefix]||(this._values[o.prefix]=new Set)).add(o),o}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,o,n){let s=this._scope.toName(r);return o!==void 0&&n&&(this._constants[s.str]=o),this._leafNode(new Um(e,s,o)),s}const(e,r,o){return this._def(Vt.varKinds.const,e,r,o)}let(e,r,o){return this._def(Vt.varKinds.let,e,r,o)}var(e,r,o){return this._def(Vt.varKinds.var,e,r,o)}assign(e,r,o){return this._leafNode(new wu(e,r,o))}add(e,r){return this._leafNode(new jm(e,K.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==Z.nil&&this._leafNode(new qm(e)),this}object(...e){let r=["{"];for(let[o,n]of e)r.length>1&&r.push(","),r.push(o),(o!==n||this.opts.es5)&&(r.push(":"),(0,Z.addCodeArg)(r,n));return r.push("}"),new Z._Code(r)}if(e,r,o){if(this._blockNode(new Yo(e)),r&&o)this.code(r).else().code(o).endIf();else if(r)this.code(r).endIf();else if(o)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Yo(e))}else(){return this._elseNode(new es)}endIf(){return this._endBlockNode(Yo,es)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new Gm(e),r)}forRange(e,r,o,n,s=this.opts.es5?Vt.varKinds.var:Vt.varKinds.let){let i=this._scope.toName(e);return this._for(new Hm(s,i,r,o),()=>n(i))}forOf(e,r,o,n=Vt.varKinds.const){let s=this._scope.toName(e);if(this.opts.es5){let i=r instanceof Z.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Z._)`${i}.length`,a=>{this.var(s,(0,Z._)`${i}[${a}]`),o(s)})}return this._for(new Eu("of",n,s,r),()=>o(s))}forIn(e,r,o,n=this.opts.es5?Vt.varKinds.var:Vt.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Z._)`Object.keys(${r})`,o);let s=this._scope.toName(e);return this._for(new Eu("in",n,s,r),()=>o(s))}endFor(){return this._endBlockNode(Xo)}label(e){return this._leafNode(new Fm(e))}break(e){return this._leafNode(new zm(e))}return(e){let r=new Ki;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ki)}try(e,r,o){if(!r&&!o)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new Km;if(this._blockNode(n),this.code(e),r){let s=this.name("e");this._currNode=n.catch=new Vi(s),r(s)}return o&&(this._currNode=n.finally=new Yi,this.code(o)),this._endBlockNode(Vi,Yi)}throw(e){return this._leafNode(new Wm(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let o=this._nodes.length-r;if(o<0||e!==void 0&&o!==e)throw new Error(`CodeGen: wrong number of nodes: ${o} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=Z.nil,o,n){return this._blockNode(new Hi(e,r,o)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(Hi)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let o=this._currNode;if(o instanceof e||r&&o instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof Yo))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};K.CodeGen=Vm;function Jo(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function Su(t,e){return e instanceof Z._CodeOrName?Jo(t,e.names):t}function ts(t,e,r){if(t instanceof Z.Name)return o(t);if(!n(t))return t;return new Z._Code(t._items.reduce((s,i)=>(i instanceof Z.Name&&(i=o(i)),i instanceof Z._Code?s.push(...i._items):s.push(i),s),[]));function o(s){let i=r[s.str];return i===void 0||e[s.str]!==1?s:(delete e[s.str],i)}function n(s){return s instanceof Z._Code&&s._items.some(i=>i instanceof Z.Name&&e[i.str]===1&&r[i.str]!==void 0)}}function PH(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function oO(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Z._)`!${Ym(t)}`}K.not=oO;var IH=nO(K.operators.AND);function OH(...t){return t.reduce(IH)}K.and=OH;var MH=nO(K.operators.OR);function CH(...t){return t.reduce(MH)}K.or=CH;function nO(t){return(e,r)=>e===Z.nil?r:r===Z.nil?e:(0,Z._)`${Ym(e)} ${t} ${Ym(r)}`}function Ym(t){return t instanceof Z.Name?t:(0,Z._)`(${t})`}});var re=x(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.checkStrictMode=V.getErrorPath=V.Type=V.useFunc=V.setEvaluated=V.evaluatedPropsToName=V.mergeEvaluated=V.eachItem=V.unescapeJsonPointer=V.escapeJsonPointer=V.escapeFragment=V.unescapeFragment=V.schemaRefOrVal=V.schemaHasRulesButRef=V.schemaHasRules=V.checkUnknownRules=V.alwaysValidSchema=V.toHash=void 0;var pe=G(),NH=Bi();function $H(t){let e={};for(let r of t)e[r]=!0;return e}V.toHash=$H;function LH(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(aO(t,e),!lO(e,t.self.RULES.all))}V.alwaysValidSchema=LH;function aO(t,e=t.schema){let{opts:r,self:o}=t;if(!r.strictSchema||typeof e=="boolean")return;let n=o.RULES.keywords;for(let s in e)n[s]||dO(t,`unknown keyword: "${s}"`)}V.checkUnknownRules=aO;function lO(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}V.schemaHasRules=lO;function DH(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}V.schemaHasRulesButRef=DH;function UH({topSchemaRef:t,schemaPath:e},r,o,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,pe._)`${r}`}return(0,pe._)`${t}${e}${(0,pe.getProperty)(o)}`}V.schemaRefOrVal=UH;function jH(t){return cO(decodeURIComponent(t))}V.unescapeFragment=jH;function FH(t){return encodeURIComponent(Jm(t))}V.escapeFragment=FH;function Jm(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}V.escapeJsonPointer=Jm;function cO(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}V.unescapeJsonPointer=cO;function zH(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}V.eachItem=zH;function sO({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:o}){return(n,s,i,a)=>{let l=i===void 0?s:i instanceof pe.Name?(s instanceof pe.Name?t(n,s,i):e(n,s,i),i):s instanceof pe.Name?(e(n,i,s),s):r(s,i);return a===pe.Name&&!(l instanceof pe.Name)?o(n,l):l}}V.mergeEvaluated={props:sO({mergeNames:(t,e,r)=>t.if((0,pe._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,pe._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,pe._)`${r} || {}`).code((0,pe._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,pe._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,pe._)`${r} || {}`),Zm(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:uO}),items:sO({mergeNames:(t,e,r)=>t.if((0,pe._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,pe._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,pe._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,pe._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function uO(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,pe._)`{}`);return e!==void 0&&Zm(t,r,e),r}V.evaluatedPropsToName=uO;function Zm(t,e,r){Object.keys(r).forEach(o=>t.assign((0,pe._)`${e}${(0,pe.getProperty)(o)}`,!0))}V.setEvaluated=Zm;var iO={};function WH(t,e){return t.scopeValue("func",{ref:e,code:iO[e.code]||(iO[e.code]=new NH._Code(e.code))})}V.useFunc=WH;var Xm;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Xm||(V.Type=Xm={}));function qH(t,e,r){if(t instanceof pe.Name){let o=e===Xm.Num;return r?o?(0,pe._)`"[" + ${t} + "]"`:(0,pe._)`"['" + ${t} + "']"`:o?(0,pe._)`"/" + ${t}`:(0,pe._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,pe.getProperty)(t).toString():"/"+Jm(t)}V.getErrorPath=qH;function dO(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}V.checkStrictMode=dO});var Rr=x(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var Ge=G(),BH={data:new Ge.Name("data"),valCxt:new Ge.Name("valCxt"),instancePath:new Ge.Name("instancePath"),parentData:new Ge.Name("parentData"),parentDataProperty:new Ge.Name("parentDataProperty"),rootData:new Ge.Name("rootData"),dynamicAnchors:new Ge.Name("dynamicAnchors"),vErrors:new Ge.Name("vErrors"),errors:new Ge.Name("errors"),this:new Ge.Name("this"),self:new Ge.Name("self"),scope:new Ge.Name("scope"),json:new Ge.Name("json"),jsonPos:new Ge.Name("jsonPos"),jsonLen:new Ge.Name("jsonLen"),jsonPart:new Ge.Name("jsonPart")};Qm.default=BH});var Xi=x(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.extendErrors=He.resetErrorsCount=He.reportExtraError=He.reportError=He.keyword$DataError=He.keywordError=void 0;var oe=G(),bu=re(),ot=Rr();He.keywordError={message:({keyword:t})=>(0,oe.str)`must pass "${t}" keyword validation`};He.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,oe.str)`"${t}" keyword must be ${e} ($data)`:(0,oe.str)`"${t}" keyword is invalid ($data)`};function GH(t,e=He.keywordError,r,o){let{it:n}=t,{gen:s,compositeRule:i,allErrors:a}=n,l=mO(t,e,r);o??(i||a)?pO(s,l):hO(n,(0,oe._)`[${l}]`)}He.reportError=GH;function HH(t,e=He.keywordError,r){let{it:o}=t,{gen:n,compositeRule:s,allErrors:i}=o,a=mO(t,e,r);pO(n,a),s||i||hO(o,ot.default.vErrors)}He.reportExtraError=HH;function KH(t,e){t.assign(ot.default.errors,e),t.if((0,oe._)`${ot.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,oe._)`${ot.default.vErrors}.length`,e),()=>t.assign(ot.default.vErrors,null)))}He.resetErrorsCount=KH;function VH({gen:t,keyword:e,schemaValue:r,data:o,errsCount:n,it:s}){if(n===void 0)throw new Error("ajv implementation error");let i=t.name("err");t.forRange("i",n,ot.default.errors,a=>{t.const(i,(0,oe._)`${ot.default.vErrors}[${a}]`),t.if((0,oe._)`${i}.instancePath === undefined`,()=>t.assign((0,oe._)`${i}.instancePath`,(0,oe.strConcat)(ot.default.instancePath,s.errorPath))),t.assign((0,oe._)`${i}.schemaPath`,(0,oe.str)`${s.errSchemaPath}/${e}`),s.opts.verbose&&(t.assign((0,oe._)`${i}.schema`,r),t.assign((0,oe._)`${i}.data`,o))})}He.extendErrors=VH;function pO(t,e){let r=t.const("err",e);t.if((0,oe._)`${ot.default.vErrors} === null`,()=>t.assign(ot.default.vErrors,(0,oe._)`[${r}]`),(0,oe._)`${ot.default.vErrors}.push(${r})`),t.code((0,oe._)`${ot.default.errors}++`)}function hO(t,e){let{gen:r,validateName:o,schemaEnv:n}=t;n.$async?r.throw((0,oe._)`new ${t.ValidationError}(${e})`):(r.assign((0,oe._)`${o}.errors`,e),r.return(!1))}var Zo={keyword:new oe.Name("keyword"),schemaPath:new oe.Name("schemaPath"),params:new oe.Name("params"),propertyName:new oe.Name("propertyName"),message:new oe.Name("message"),schema:new oe.Name("schema"),parentSchema:new oe.Name("parentSchema")};function mO(t,e,r){let{createErrors:o}=t.it;return o===!1?(0,oe._)`{}`:YH(t,e,r)}function YH(t,e,r={}){let{gen:o,it:n}=t,s=[XH(n,r),JH(t,r)];return ZH(t,e,s),o.object(...s)}function XH({errorPath:t},{instancePath:e}){let r=e?(0,oe.str)`${t}${(0,bu.getErrorPath)(e,bu.Type.Str)}`:t;return[ot.default.instancePath,(0,oe.strConcat)(ot.default.instancePath,r)]}function JH({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:o}){let n=o?e:(0,oe.str)`${e}/${t}`;return r&&(n=(0,oe.str)`${n}${(0,bu.getErrorPath)(r,bu.Type.Str)}`),[Zo.schemaPath,n]}function ZH(t,{params:e,message:r},o){let{keyword:n,data:s,schemaValue:i,it:a}=t,{opts:l,propertyName:c,topSchemaRef:u,schemaPath:d}=a;o.push([Zo.keyword,n],[Zo.params,typeof e=="function"?e(t):e||(0,oe._)`{}`]),l.messages&&o.push([Zo.message,typeof r=="function"?r(t):r]),l.verbose&&o.push([Zo.schema,i],[Zo.parentSchema,(0,oe._)`${u}${d}`],[ot.default.data,s]),c&&o.push([Zo.propertyName,c])}});var gO=x(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.boolOrEmptySchema=rs.topBoolOrEmptySchema=void 0;var QH=Xi(),e2=G(),t2=Rr(),r2={message:"boolean schema is false"};function o2(t){let{gen:e,schema:r,validateName:o}=t;r===!1?fO(t,!1):typeof r=="object"&&r.$async===!0?e.return(t2.default.data):(e.assign((0,e2._)`${o}.errors`,null),e.return(!0))}rs.topBoolOrEmptySchema=o2;function n2(t,e){let{gen:r,schema:o}=t;o===!1?(r.var(e,!1),fO(t)):r.var(e,!0)}rs.boolOrEmptySchema=n2;function fO(t,e){let{gen:r,data:o}=t,n={gen:r,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,QH.reportError)(n,r2,void 0,e)}});var ef=x(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.getRules=os.isJSONType=void 0;var s2=["string","number","integer","boolean","null","object","array"],i2=new Set(s2);function a2(t){return typeof t=="string"&&i2.has(t)}os.isJSONType=a2;function l2(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}os.getRules=l2});var tf=x(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.shouldUseRule=uo.shouldUseGroup=uo.schemaHasRulesForType=void 0;function c2({schema:t,self:e},r){let o=e.RULES.types[r];return o&&o!==!0&&yO(t,o)}uo.schemaHasRulesForType=c2;function yO(t,e){return e.rules.some(r=>_O(t,r))}uo.shouldUseGroup=yO;function _O(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(o=>t[o]!==void 0))}uo.shouldUseRule=_O});var Ji=x(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.reportTypeError=Ke.checkDataTypes=Ke.checkDataType=Ke.coerceAndCheckDataType=Ke.getJSONTypes=Ke.getSchemaTypes=Ke.DataType=void 0;var u2=ef(),d2=tf(),p2=Xi(),B=G(),wO=re(),ns;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(ns||(Ke.DataType=ns={}));function h2(t){let e=EO(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Ke.getSchemaTypes=h2;function EO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(u2.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ke.getJSONTypes=EO;function m2(t,e){let{gen:r,data:o,opts:n}=t,s=f2(e,n.coerceTypes),i=e.length>0&&!(s.length===0&&e.length===1&&(0,d2.schemaHasRulesForType)(t,e[0]));if(i){let a=of(e,o,n.strictNumbers,ns.Wrong);r.if(a,()=>{s.length?g2(t,e,s):nf(t)})}return i}Ke.coerceAndCheckDataType=m2;var SO=new Set(["string","number","integer","boolean","null"]);function f2(t,e){return e?t.filter(r=>SO.has(r)||e==="array"&&r==="array"):[]}function g2(t,e,r){let{gen:o,data:n,opts:s}=t,i=o.let("dataType",(0,B._)`typeof ${n}`),a=o.let("coerced",(0,B._)`undefined`);s.coerceTypes==="array"&&o.if((0,B._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>o.assign(n,(0,B._)`${n}[0]`).assign(i,(0,B._)`typeof ${n}`).if(of(e,n,s.strictNumbers),()=>o.assign(a,n))),o.if((0,B._)`${a} !== undefined`);for(let c of r)(SO.has(c)||c==="array"&&s.coerceTypes==="array")&&l(c);o.else(),nf(t),o.endIf(),o.if((0,B._)`${a} !== undefined`,()=>{o.assign(n,a),y2(t,a)});function l(c){switch(c){case"string":o.elseIf((0,B._)`${i} == "number" || ${i} == "boolean"`).assign(a,(0,B._)`"" + ${n}`).elseIf((0,B._)`${n} === null`).assign(a,(0,B._)`""`);return;case"number":o.elseIf((0,B._)`${i} == "boolean" || ${n} === null
6
6
  || (${i} == "string" && ${n} && ${n} == +${n})`).assign(a,(0,B._)`+${n}`);return;case"integer":o.elseIf((0,B._)`${i} === "boolean" || ${n} === null
7
7
  || (${i} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(a,(0,B._)`+${n}`);return;case"boolean":o.elseIf((0,B._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(a,!1).elseIf((0,B._)`${n} === "true" || ${n} === 1`).assign(a,!0);return;case"null":o.elseIf((0,B._)`${n} === "" || ${n} === 0 || ${n} === false`),o.assign(a,null);return;case"array":o.elseIf((0,B._)`${i} === "string" || ${i} === "number"
8
8
  || ${i} === "boolean" || ${n} === null`).assign(a,(0,B._)`[${n}]`)}}}function y2({gen:t,parentData:e,parentDataProperty:r},o){t.if((0,B._)`${e} !== undefined`,()=>t.assign((0,B._)`${e}[${r}]`,o))}function rf(t,e,r,o=ns.Correct){let n=o===ns.Correct?B.operators.EQ:B.operators.NEQ,s;switch(t){case"null":return(0,B._)`${e} ${n} null`;case"array":s=(0,B._)`Array.isArray(${e})`;break;case"object":s=(0,B._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":s=i((0,B._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":s=i();break;default:return(0,B._)`typeof ${e} ${n} ${t}`}return o===ns.Correct?s:(0,B.not)(s);function i(a=B.nil){return(0,B.and)((0,B._)`typeof ${e} == "number"`,a,r?(0,B._)`isFinite(${e})`:B.nil)}}Ke.checkDataType=rf;function of(t,e,r,o){if(t.length===1)return rf(t[0],e,r,o);let n,s=(0,wO.toHash)(t);if(s.array&&s.object){let i=(0,B._)`typeof ${e} != "object"`;n=s.null?i:(0,B._)`!${e} || ${i}`,delete s.null,delete s.array,delete s.object}else n=B.nil;s.number&&delete s.integer;for(let i in s)n=(0,B.and)(n,rf(i,e,r,o));return n}Ke.checkDataTypes=of;var _2={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,B._)`{type: ${t}}`:(0,B._)`{type: ${e}}`};function nf(t){let e=w2(t);(0,p2.reportError)(e,_2)}Ke.reportTypeError=nf;function w2(t){let{gen:e,data:r,schema:o}=t,n=(0,wO.schemaRefOrVal)(t,o,"type");return{gen:e,keyword:"type",data:r,schema:o.type,schemaCode:n,schemaValue:n,parentSchema:o,params:{},it:t}}});var bO=x(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.assignDefaults=void 0;var ss=G(),E2=re();function S2(t,e){let{properties:r,items:o}=t.schema;if(e==="object"&&r)for(let n in r)TO(t,n,r[n].default);else e==="array"&&Array.isArray(o)&&o.forEach((n,s)=>TO(t,s,n.default))}vu.assignDefaults=S2;function TO(t,e,r){let{gen:o,compositeRule:n,data:s,opts:i}=t;if(r===void 0)return;let a=(0,ss._)`${s}${(0,ss.getProperty)(e)}`;if(n){(0,E2.checkStrictMode)(t,`default is ignored for: ${a}`);return}let l=(0,ss._)`${a} === undefined`;i.useDefaults==="empty"&&(l=(0,ss._)`${l} || ${a} === null || ${a} === ""`),o.if(l,(0,ss._)`${a} = ${(0,ss.stringify)(r)}`)}});var Dt=x(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.validateUnion=ce.validateArray=ce.usePattern=ce.callValidateCode=ce.schemaProperties=ce.allSchemaProperties=ce.noPropertyInData=ce.propertyInData=ce.isOwnProperty=ce.hasPropFunc=ce.reportMissingProp=ce.checkMissingProp=ce.checkReportMissingProp=void 0;var ye=G(),sf=re(),po=Rr(),T2=re();function b2(t,e){let{gen:r,data:o,it:n}=t;r.if(lf(r,o,e,n.opts.ownProperties),()=>{t.setParams({missingProperty:(0,ye._)`${e}`},!0),t.error()})}ce.checkReportMissingProp=b2;function v2({gen:t,data:e,it:{opts:r}},o,n){return(0,ye.or)(...o.map(s=>(0,ye.and)(lf(t,e,s,r.ownProperties),(0,ye._)`${n} = ${s}`)))}ce.checkMissingProp=v2;function R2(t,e){t.setParams({missingProperty:e},!0),t.error()}ce.reportMissingProp=R2;function vO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ye._)`Object.prototype.hasOwnProperty`})}ce.hasPropFunc=vO;function af(t,e,r){return(0,ye._)`${vO(t)}.call(${e}, ${r})`}ce.isOwnProperty=af;function k2(t,e,r,o){let n=(0,ye._)`${e}${(0,ye.getProperty)(r)} !== undefined`;return o?(0,ye._)`${n} && ${af(t,e,r)}`:n}ce.propertyInData=k2;function lf(t,e,r,o){let n=(0,ye._)`${e}${(0,ye.getProperty)(r)} === undefined`;return o?(0,ye.or)(n,(0,ye.not)(af(t,e,r))):n}ce.noPropertyInData=lf;function RO(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}ce.allSchemaProperties=RO;function x2(t,e){return RO(e).filter(r=>!(0,sf.alwaysValidSchema)(t,e[r]))}ce.schemaProperties=x2;function A2({schemaCode:t,data:e,it:{gen:r,topSchemaRef:o,schemaPath:n,errorPath:s},it:i},a,l,c){let u=c?(0,ye._)`${t}, ${e}, ${o}${n}`:e,d=[[po.default.instancePath,(0,ye.strConcat)(po.default.instancePath,s)],[po.default.parentData,i.parentData],[po.default.parentDataProperty,i.parentDataProperty],[po.default.rootData,po.default.rootData]];i.opts.dynamicRef&&d.push([po.default.dynamicAnchors,po.default.dynamicAnchors]);let h=(0,ye._)`${u}, ${r.object(...d)}`;return l!==ye.nil?(0,ye._)`${a}.call(${l}, ${h})`:(0,ye._)`${a}(${h})`}ce.callValidateCode=A2;var P2=(0,ye._)`new RegExp`;function I2({gen:t,it:{opts:e}},r){let o=e.unicodeRegExp?"u":"",{regExp:n}=e.code,s=n(r,o);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,ye._)`${n.code==="new RegExp"?P2:(0,T2.useFunc)(t,n)}(${r}, ${o})`})}ce.usePattern=I2;function O2(t){let{gen:e,data:r,keyword:o,it:n}=t,s=e.name("valid");if(n.allErrors){let a=e.let("valid",!0);return i(()=>e.assign(a,!1)),a}return e.var(s,!0),i(()=>e.break()),s;function i(a){let l=e.const("len",(0,ye._)`${r}.length`);e.forRange("i",0,l,c=>{t.subschema({keyword:o,dataProp:c,dataPropType:sf.Type.Num},s),e.if((0,ye.not)(s),a)})}}ce.validateArray=O2;function M2(t){let{gen:e,schema:r,keyword:o,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(l=>(0,sf.alwaysValidSchema)(n,l))&&!n.opts.unevaluated)return;let i=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((l,c)=>{let u=t.subschema({keyword:o,schemaProp:c,compositeRule:!0},a);e.assign(i,(0,ye._)`${i} || ${a}`),t.mergeValidEvaluated(u,a)||e.if((0,ye.not)(i))})),t.result(i,()=>t.reset(),()=>t.error(!0))}ce.validateUnion=M2});var AO=x(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.validateKeywordUsage=ir.validSchemaType=ir.funcKeywordCode=ir.macroKeywordCode=void 0;var nt=G(),Qo=Rr(),C2=Dt(),N2=Xi();function $2(t,e){let{gen:r,keyword:o,schema:n,parentSchema:s,it:i}=t,a=e.macro.call(i.self,n,s,i),l=xO(r,o,a);i.opts.validateSchema!==!1&&i.self.validateSchema(a,!0);let c=r.name("valid");t.subschema({schema:a,schemaPath:nt.nil,errSchemaPath:`${i.errSchemaPath}/${o}`,topSchemaRef:l,compositeRule:!0},c),t.pass(c,()=>t.error(!0))}ir.macroKeywordCode=$2;function L2(t,e){var r;let{gen:o,keyword:n,schema:s,parentSchema:i,$data:a,it:l}=t;U2(l,e);let c=!a&&e.compile?e.compile.call(l.self,s,i,l):e.validate,u=xO(o,n,c),d=o.let("valid");t.block$data(d,h),t.ok((r=e.valid)!==null&&r!==void 0?r:d);function h(){if(e.errors===!1)f(),e.modifying&&kO(t),y(()=>t.error());else{let _=e.async?p():g();e.modifying&&kO(t),y(()=>D2(t,_))}}function p(){let _=o.let("ruleErrs",null);return o.try(()=>f((0,nt._)`await `),w=>o.assign(d,!1).if((0,nt._)`${w} instanceof ${l.ValidationError}`,()=>o.assign(_,(0,nt._)`${w}.errors`),()=>o.throw(w))),_}function g(){let _=(0,nt._)`${u}.errors`;return o.assign(_,null),f(nt.nil),_}function f(_=e.async?(0,nt._)`await `:nt.nil){let w=l.opts.passContext?Qo.default.this:Qo.default.self,T=!("compile"in e&&!a||e.schema===!1);o.assign(d,(0,nt._)`${_}${(0,C2.callValidateCode)(t,u,w,T)}`,e.modifying)}function y(_){var w;o.if((0,nt.not)((w=e.valid)!==null&&w!==void 0?w:d),_)}}ir.funcKeywordCode=L2;function kO(t){let{gen:e,data:r,it:o}=t;e.if(o.parentData,()=>e.assign(r,(0,nt._)`${o.parentData}[${o.parentDataProperty}]`))}function D2(t,e){let{gen:r}=t;r.if((0,nt._)`Array.isArray(${e})`,()=>{r.assign(Qo.default.vErrors,(0,nt._)`${Qo.default.vErrors} === null ? ${e} : ${Qo.default.vErrors}.concat(${e})`).assign(Qo.default.errors,(0,nt._)`${Qo.default.vErrors}.length`),(0,N2.extendErrors)(t)},()=>t.error())}function U2({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function xO(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,nt.stringify)(r)})}function j2(t,e,r=!1){return!e.length||e.some(o=>o==="array"?Array.isArray(t):o==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==o||r&&typeof t>"u")}ir.validSchemaType=j2;function F2({schema:t,opts:e,self:r,errSchemaPath:o},n,s){if(Array.isArray(n.keyword)?!n.keyword.includes(s):n.keyword!==s)throw new Error("ajv implementation error");let i=n.dependencies;if(i?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(n.validateSchema&&!n.validateSchema(t[s])){let l=`keyword "${s}" value is invalid at path "${o}": `+r.errorsText(n.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(l);else throw new Error(l)}}ir.validateKeywordUsage=F2});var IO=x(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.extendSubschemaMode=ho.extendSubschemaData=ho.getSubschema=void 0;var ar=G(),PO=re();function z2(t,{keyword:e,schemaProp:r,schema:o,schemaPath:n,errSchemaPath:s,topSchemaRef:i}){if(e!==void 0&&o!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return r===void 0?{schema:a,schemaPath:(0,ar._)`${t.schemaPath}${(0,ar.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[r],schemaPath:(0,ar._)`${t.schemaPath}${(0,ar.getProperty)(e)}${(0,ar.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,PO.escapeFragment)(r)}`}}if(o!==void 0){if(n===void 0||s===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:n,topSchemaRef:i,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}ho.getSubschema=z2;function W2(t,e,{dataProp:r,dataPropType:o,data:n,dataTypes:s,propertyName:i}){if(n!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(r!==void 0){let{errorPath:c,dataPathArr:u,opts:d}=e,h=a.let("data",(0,ar._)`${e.data}${(0,ar.getProperty)(r)}`,!0);l(h),t.errorPath=(0,ar.str)`${c}${(0,PO.getErrorPath)(r,o,d.jsPropertySyntax)}`,t.parentDataProperty=(0,ar._)`${r}`,t.dataPathArr=[...u,t.parentDataProperty]}if(n!==void 0){let c=n instanceof ar.Name?n:a.let("data",n,!0);l(c),i!==void 0&&(t.propertyName=i)}s&&(t.dataTypes=s);function l(c){t.data=c,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,c]}}ho.extendSubschemaData=W2;function q2(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:o,createErrors:n,allErrors:s}){o!==void 0&&(t.compositeRule=o),n!==void 0&&(t.createErrors=n),s!==void 0&&(t.allErrors=s),t.jtdDiscriminator=e,t.jtdMetadata=r}ho.extendSubschemaMode=q2});var cf=x((mde,OO)=>{"use strict";OO.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,s;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!t(e[n],r[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),o=s.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[n]))return!1;for(n=o;n--!==0;){var i=s[n];if(!t(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}});var CO=x((fde,MO)=>{"use strict";var mo=MO.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var o=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};Ru(e,o,n,t,"",t)};mo.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};mo.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};mo.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};mo.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Ru(t,e,r,o,n,s,i,a,l,c){if(o&&typeof o=="object"&&!Array.isArray(o)){e(o,n,s,i,a,l,c);for(var u in o){var d=o[u];if(Array.isArray(d)){if(u in mo.arrayKeywords)for(var h=0;h<d.length;h++)Ru(t,e,r,d[h],n+"/"+u+"/"+h,s,n,u,o,h)}else if(u in mo.propsKeywords){if(d&&typeof d=="object")for(var p in d)Ru(t,e,r,d[p],n+"/"+u+"/"+B2(p),s,n,u,o,p)}else(u in mo.keywords||t.allKeys&&!(u in mo.skipKeywords))&&Ru(t,e,r,d,n+"/"+u,s,n,u,o)}r(o,n,s,i,a,l,c)}}function B2(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Zi=x(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.getSchemaRefs=ht.resolveUrl=ht.normalizeId=ht._getFullPath=ht.getFullPath=ht.inlineRef=void 0;var G2=re(),H2=cf(),K2=CO(),V2=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Y2(t,e=!0){return typeof t=="boolean"?!0:e===!0?!uf(t):e?NO(t)<=e:!1}ht.inlineRef=Y2;var X2=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function uf(t){for(let e in t){if(X2.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(uf)||typeof r=="object"&&uf(r))return!0}return!1}function NO(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!V2.has(r)&&(typeof t[r]=="object"&&(0,G2.eachItem)(t[r],o=>e+=NO(o)),e===1/0))return 1/0}return e}function $O(t,e="",r){r!==!1&&(e=is(e));let o=t.parse(e);return LO(t,o)}ht.getFullPath=$O;function LO(t,e){return t.serialize(e).split("#")[0]+"#"}ht._getFullPath=LO;var J2=/#\/?$/;function is(t){return t?t.replace(J2,""):""}ht.normalizeId=is;function Z2(t,e,r){return r=is(r),t.resolve(e,r)}ht.resolveUrl=Z2;var Q2=/^[a-z_][-a-z0-9._]*$/i;function eK(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:o}=this.opts,n=is(t[r]||e),s={"":n},i=$O(o,n,!1),a={},l=new Set;return K2(t,{allKeys:!0},(d,h,p,g)=>{if(g===void 0)return;let f=i+h,y=s[g];typeof d[r]=="string"&&(y=_.call(this,d[r])),w.call(this,d.$anchor),w.call(this,d.$dynamicAnchor),s[h]=y;function _(T){let b=this.opts.uriResolver.resolve;if(T=is(y?b(y,T):T),l.has(T))throw u(T);l.add(T);let E=this.refs[T];return typeof E=="string"&&(E=this.refs[E]),typeof E=="object"?c(d,E.schema,T):T!==is(f)&&(T[0]==="#"?(c(d,a[T],T),a[T]=d):this.refs[T]=f),T}function w(T){if(typeof T=="string"){if(!Q2.test(T))throw new Error(`invalid anchor "${T}"`);_.call(this,`#${T}`)}}}),a;function c(d,h,p){if(h!==void 0&&!H2(d,h))throw u(p)}function u(d){return new Error(`reference "${d}" resolves to more than one schema`)}}ht.getSchemaRefs=eK});var ta=x(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.getData=fo.KeywordCxt=fo.validateFunctionCode=void 0;var zO=gO(),DO=Ji(),pf=tf(),ku=Ji(),tK=bO(),ea=AO(),df=IO(),L=G(),W=Rr(),rK=Zi(),kr=re(),Qi=Xi();function oK(t){if(BO(t)&&(GO(t),qO(t))){iK(t);return}WO(t,()=>(0,zO.topBoolOrEmptySchema)(t))}fo.validateFunctionCode=oK;function WO({gen:t,validateName:e,schema:r,schemaEnv:o,opts:n},s){n.code.es5?t.func(e,(0,L._)`${W.default.data}, ${W.default.valCxt}`,o.$async,()=>{t.code((0,L._)`"use strict"; ${UO(r,n)}`),sK(t,n),t.code(s)}):t.func(e,(0,L._)`${W.default.data}, ${nK(n)}`,o.$async,()=>t.code(UO(r,n)).code(s))}function nK(t){return(0,L._)`{${W.default.instancePath}="", ${W.default.parentData}, ${W.default.parentDataProperty}, ${W.default.rootData}=${W.default.data}${t.dynamicRef?(0,L._)`, ${W.default.dynamicAnchors}={}`:L.nil}}={}`}function sK(t,e){t.if(W.default.valCxt,()=>{t.var(W.default.instancePath,(0,L._)`${W.default.valCxt}.${W.default.instancePath}`),t.var(W.default.parentData,(0,L._)`${W.default.valCxt}.${W.default.parentData}`),t.var(W.default.parentDataProperty,(0,L._)`${W.default.valCxt}.${W.default.parentDataProperty}`),t.var(W.default.rootData,(0,L._)`${W.default.valCxt}.${W.default.rootData}`),e.dynamicRef&&t.var(W.default.dynamicAnchors,(0,L._)`${W.default.valCxt}.${W.default.dynamicAnchors}`)},()=>{t.var(W.default.instancePath,(0,L._)`""`),t.var(W.default.parentData,(0,L._)`undefined`),t.var(W.default.parentDataProperty,(0,L._)`undefined`),t.var(W.default.rootData,W.default.data),e.dynamicRef&&t.var(W.default.dynamicAnchors,(0,L._)`{}`)})}function iK(t){let{schema:e,opts:r,gen:o}=t;WO(t,()=>{r.$comment&&e.$comment&&KO(t),dK(t),o.let(W.default.vErrors,null),o.let(W.default.errors,0),r.unevaluated&&aK(t),HO(t),mK(t)})}function aK(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,L._)`${r}.evaluated`),e.if((0,L._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,L._)`${t.evaluated}.props`,(0,L._)`undefined`)),e.if((0,L._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,L._)`${t.evaluated}.items`,(0,L._)`undefined`))}function UO(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,L._)`/*# sourceURL=${r} */`:L.nil}function lK(t,e){if(BO(t)&&(GO(t),qO(t))){cK(t,e);return}(0,zO.boolOrEmptySchema)(t,e)}function qO({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function BO(t){return typeof t.schema!="boolean"}function cK(t,e){let{schema:r,gen:o,opts:n}=t;n.$comment&&r.$comment&&KO(t),pK(t),hK(t);let s=o.const("_errs",W.default.errors);HO(t,s),o.var(e,(0,L._)`${s} === ${W.default.errors}`)}function GO(t){(0,kr.checkUnknownRules)(t),uK(t)}function HO(t,e){if(t.opts.jtd)return jO(t,[],!1,e);let r=(0,DO.getSchemaTypes)(t.schema),o=(0,DO.coerceAndCheckDataType)(t,r);jO(t,r,!o,e)}function uK(t){let{schema:e,errSchemaPath:r,opts:o,self:n}=t;e.$ref&&o.ignoreKeywordsWithRef&&(0,kr.schemaHasRulesButRef)(e,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function dK(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,kr.checkStrictMode)(t,"default is ignored in the schema root")}function pK(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,rK.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function hK(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function KO({gen:t,schemaEnv:e,schema:r,errSchemaPath:o,opts:n}){let s=r.$comment;if(n.$comment===!0)t.code((0,L._)`${W.default.self}.logger.log(${s})`);else if(typeof n.$comment=="function"){let i=(0,L.str)`${o}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,L._)`${W.default.self}.opts.$comment(${s}, ${i}, ${a}.schema)`)}}function mK(t){let{gen:e,schemaEnv:r,validateName:o,ValidationError:n,opts:s}=t;r.$async?e.if((0,L._)`${W.default.errors} === 0`,()=>e.return(W.default.data),()=>e.throw((0,L._)`new ${n}(${W.default.vErrors})`)):(e.assign((0,L._)`${o}.errors`,W.default.vErrors),s.unevaluated&&fK(t),e.return((0,L._)`${W.default.errors} === 0`))}function fK({gen:t,evaluated:e,props:r,items:o}){r instanceof L.Name&&t.assign((0,L._)`${e}.props`,r),o instanceof L.Name&&t.assign((0,L._)`${e}.items`,o)}function jO(t,e,r,o){let{gen:n,schema:s,data:i,allErrors:a,opts:l,self:c}=t,{RULES:u}=c;if(s.$ref&&(l.ignoreKeywordsWithRef||!(0,kr.schemaHasRulesButRef)(s,u))){n.block(()=>YO(t,"$ref",u.all.$ref.definition));return}l.jtd||gK(t,e),n.block(()=>{for(let h of u.rules)d(h);d(u.post)});function d(h){(0,pf.shouldUseGroup)(s,h)&&(h.type?(n.if((0,ku.checkDataType)(h.type,i,l.strictNumbers)),FO(t,h),e.length===1&&e[0]===h.type&&r&&(n.else(),(0,ku.reportTypeError)(t)),n.endIf()):FO(t,h),a||n.if((0,L._)`${W.default.errors} === ${o||0}`))}}function FO(t,e){let{gen:r,schema:o,opts:{useDefaults:n}}=t;n&&(0,tK.assignDefaults)(t,e.type),r.block(()=>{for(let s of e.rules)(0,pf.shouldUseRule)(o,s)&&YO(t,s.keyword,s.definition,e.type)})}function gK(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(yK(t,e),t.opts.allowUnionTypes||_K(t,e),wK(t,t.dataTypes))}function yK(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{VO(t.dataTypes,r)||hf(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),SK(t,e)}}function _K(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&hf(t,"use allowUnionTypes to allow union type keyword")}function wK(t,e){let r=t.self.RULES.all;for(let o in r){let n=r[o];if(typeof n=="object"&&(0,pf.shouldUseRule)(t.schema,n)){let{type:s}=n.definition;s.length&&!s.some(i=>EK(e,i))&&hf(t,`missing type "${s.join(",")}" for keyword "${o}"`)}}}function EK(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function VO(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function SK(t,e){let r=[];for(let o of t.dataTypes)VO(e,o)?r.push(o):e.includes("integer")&&o==="number"&&r.push("integer");t.dataTypes=r}function hf(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,kr.checkStrictMode)(t,e,t.opts.strictTypes)}var xu=class{constructor(e,r,o){if((0,ea.validateKeywordUsage)(e,r,o),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=o,this.data=e.data,this.schema=e.schema[o],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,kr.schemaRefOrVal)(e,this.schema,o,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",XO(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,ea.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${o} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",W.default.errors))}result(e,r,o){this.failResult((0,L.not)(e),r,o)}failResult(e,r,o){this.gen.if(e),o?o():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,L.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,L._)`${r} !== undefined && (${(0,L.or)(this.invalid$data(),e)})`)}error(e,r,o){if(r){this.setParams(r),this._error(e,o),this.setParams({});return}this._error(e,o)}_error(e,r){(e?Qi.reportExtraError:Qi.reportError)(this,this.def.error,r)}$dataError(){(0,Qi.reportError)(this,this.def.$dataError||Qi.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Qi.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,o=L.nil){this.gen.block(()=>{this.check$data(e,o),r()})}check$data(e=L.nil,r=L.nil){if(!this.$data)return;let{gen:o,schemaCode:n,schemaType:s,def:i}=this;o.if((0,L.or)((0,L._)`${n} === undefined`,r)),e!==L.nil&&o.assign(e,!0),(s.length||i.validateSchema)&&(o.elseIf(this.invalid$data()),this.$dataError(),e!==L.nil&&o.assign(e,!1)),o.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:o,def:n,it:s}=this;return(0,L.or)(i(),a());function i(){if(o.length){if(!(r instanceof L.Name))throw new Error("ajv implementation error");let l=Array.isArray(o)?o:[o];return(0,L._)`${(0,ku.checkDataTypes)(l,r,s.opts.strictNumbers,ku.DataType.Wrong)}`}return L.nil}function a(){if(n.validateSchema){let l=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,L._)`!${l}(${r})`}return L.nil}}subschema(e,r){let o=(0,df.getSubschema)(this.it,e);(0,df.extendSubschemaData)(o,this.it,e),(0,df.extendSubschemaMode)(o,e);let n={...this.it,...o,items:void 0,props:void 0};return lK(n,r),n}mergeEvaluated(e,r){let{it:o,gen:n}=this;o.opts.unevaluated&&(o.props!==!0&&e.props!==void 0&&(o.props=kr.mergeEvaluated.props(n,e.props,o.props,r)),o.items!==!0&&e.items!==void 0&&(o.items=kr.mergeEvaluated.items(n,e.items,o.items,r)))}mergeValidEvaluated(e,r){let{it:o,gen:n}=this;if(o.opts.unevaluated&&(o.props!==!0||o.items!==!0))return n.if(r,()=>this.mergeEvaluated(e,L.Name)),!0}};fo.KeywordCxt=xu;function YO(t,e,r,o){let n=new xu(t,r,e);"code"in r?r.code(n,o):n.$data&&r.validate?(0,ea.funcKeywordCode)(n,r):"macro"in r?(0,ea.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,ea.funcKeywordCode)(n,r)}var TK=/^\/(?:[^~]|~0|~1)*$/,bK=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function XO(t,{dataLevel:e,dataNames:r,dataPathArr:o}){let n,s;if(t==="")return W.default.rootData;if(t[0]==="/"){if(!TK.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);n=t,s=W.default.rootData}else{let c=bK.exec(t);if(!c)throw new Error(`Invalid JSON-pointer: ${t}`);let u=+c[1];if(n=c[2],n==="#"){if(u>=e)throw new Error(l("property/index",u));return o[e-u]}if(u>e)throw new Error(l("data",u));if(s=r[e-u],!n)return s}let i=s,a=n.split("/");for(let c of a)c&&(s=(0,L._)`${s}${(0,L.getProperty)((0,kr.unescapeJsonPointer)(c))}`,i=(0,L._)`${i} && ${s}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${e}`}}fo.getData=XO});var Au=x(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var mf=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};ff.default=mf});var ra=x(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});var gf=Zi(),yf=class extends Error{constructor(e,r,o,n){super(n||`can't resolve reference ${o} from id ${r}`),this.missingRef=(0,gf.resolveUrl)(e,r,o),this.missingSchema=(0,gf.normalizeId)((0,gf.getFullPath)(e,this.missingRef))}};_f.default=yf});var Iu=x(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.resolveSchema=Ut.getCompilingSchema=Ut.resolveRef=Ut.compileSchema=Ut.SchemaEnv=void 0;var Yt=G(),vK=Au(),en=Rr(),Xt=Zi(),JO=re(),RK=ta(),as=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let o;typeof e.schema=="object"&&(o=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,Xt.normalizeId)(o?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=o?.$async,this.refs={}}};Ut.SchemaEnv=as;function Ef(t){let e=ZO.call(this,t);if(e)return e;let r=(0,Xt.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:o,lines:n}=this.opts.code,{ownProperties:s}=this.opts,i=new Yt.CodeGen(this.scope,{es5:o,lines:n,ownProperties:s}),a;t.$async&&(a=i.scopeValue("Error",{ref:vK.default,code:(0,Yt._)`require("ajv/dist/runtime/validation_error").default`}));let l=i.scopeName("validate");t.validateName=l;let c={gen:i,allErrors:this.opts.allErrors,data:en.default.data,parentData:en.default.parentData,parentDataProperty:en.default.parentDataProperty,dataNames:[en.default.data],dataPathArr:[Yt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Yt.stringify)(t.schema)}:{ref:t.schema}),validateName:l,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:Yt.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Yt._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(t),(0,RK.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);let d=i.toString();u=`${i.scopeRefs(en.default.scope)}return ${d}`,this.opts.code.process&&(u=this.opts.code.process(u,t));let p=new Function(`${en.default.self}`,`${en.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:p}),p.errors=null,p.schema=t.schema,p.schemaEnv=t,t.$async&&(p.$async=!0),this.opts.code.source===!0&&(p.source={validateName:l,validateCode:d,scopeValues:i._values}),this.opts.unevaluated){let{props:g,items:f}=c;p.evaluated={props:g instanceof Yt.Name?void 0:g,items:f instanceof Yt.Name?void 0:f,dynamicProps:g instanceof Yt.Name,dynamicItems:f instanceof Yt.Name},p.source&&(p.source.evaluated=(0,Yt.stringify)(p.evaluated))}return t.validate=p,t}catch(d){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),d}finally{this._compilations.delete(t)}}Ut.compileSchema=Ef;function kK(t,e,r){var o;r=(0,Xt.resolveUrl)(this.opts.uriResolver,e,r);let n=t.refs[r];if(n)return n;let s=PK.call(this,t,r);if(s===void 0){let i=(o=t.localRefs)===null||o===void 0?void 0:o[r],{schemaId:a}=this.opts;i&&(s=new as({schema:i,schemaId:a,root:t,baseId:e}))}if(s!==void 0)return t.refs[r]=xK.call(this,s)}Ut.resolveRef=kK;function xK(t){return(0,Xt.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Ef.call(this,t)}function ZO(t){for(let e of this._compilations)if(AK(e,t))return e}Ut.getCompilingSchema=ZO;function AK(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function PK(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||Pu.call(this,t,e)}function Pu(t,e){let r=this.opts.uriResolver.parse(e),o=(0,Xt._getFullPath)(this.opts.uriResolver,r),n=(0,Xt.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&o===n)return wf.call(this,r,t);let s=(0,Xt.normalizeId)(o),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){let a=Pu.call(this,t,i);return typeof a?.schema!="object"?void 0:wf.call(this,r,a)}if(typeof i?.schema=="object"){if(i.validate||Ef.call(this,i),s===(0,Xt.normalizeId)(e)){let{schema:a}=i,{schemaId:l}=this.opts,c=a[l];return c&&(n=(0,Xt.resolveUrl)(this.opts.uriResolver,n,c)),new as({schema:a,schemaId:l,root:t,baseId:n})}return wf.call(this,r,i)}}Ut.resolveSchema=Pu;var IK=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function wf(t,{baseId:e,schema:r,root:o}){var n;if(((n=t.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let l=r[(0,JO.unescapeFragment)(a)];if(l===void 0)return;r=l;let c=typeof r=="object"&&r[this.opts.schemaId];!IK.has(a)&&c&&(e=(0,Xt.resolveUrl)(this.opts.uriResolver,e,c))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,JO.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Xt.resolveUrl)(this.opts.uriResolver,e,r.$ref);s=Pu.call(this,o,a)}let{schemaId:i}=this.opts;if(s=s||new as({schema:r,schemaId:i,root:o,baseId:e}),s.schema!==s.root.schema)return s}});var QO=x((Sde,OK)=>{OK.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var kf=x((Tde,aM)=>{"use strict";var MK=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Tf=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),CK=RegExp.prototype.test.bind(/^\d*$/u),tn=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),bf=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),tM=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),vf=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),NK=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),mt=new Array(256);{let t="0123456789ABCDEF";for(let e=0;e<256;e++)mt[e]="%"+t[e>>4]+t[e&15]}function Ve(t){return t<2048?mt[192|t>>6]+mt[128|t&63]:t<65536?mt[224|t>>12]+mt[128|t>>6&63]+mt[128|t&63]:mt[240|t>>18]+mt[128|t>>12&63]+mt[128|t>>6&63]+mt[128|t&63]}function $K(t){let e="",r=0,o=0;for(o=0;o<t.length;o++)if(r=t[o].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[o];break}for(o+=1;o<t.length;o++){if(r=t[o].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[o]}return e}var LK=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),DK=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),UK=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),jK=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function FK(t){if(t.length===0)return!1;for(let e=0;e<t.length;e++)if(!UK(t[e])){if(t[e]==="%"&&e+2<t.length&&tn(t.slice(e+1,e+3))){e+=2;continue}return!1}return!0}function eM(t){let e=-1,r=0,o=-1,n=0;for(let a=0;a<t.length;a++)t[a]==="0"?(o===-1&&(o=a),n++,n>r&&(r=n,e=o)):(o=-1,n=0);if(r<2)return t.join(":");let s=t.slice(0,e).join(":"),i=t.slice(e+r).join(":");return s+"::"+i}function zK(t){let e=t.indexOf("::");if(e!==-1&&t.indexOf("::",e+1)!==-1)return;let r=e===-1?t.split(":"):t.slice(0,e).split(":"),o=e===-1?[]:t.slice(e+2).split(":");e!==-1&&(r.length===1&&r[0]===""&&(r.length=0),o.length===1&&o[0]===""&&(o.length=0));let n=r.concat(o),s=0;for(let a=0;a<n.length;a++){let l=n[a];if(l==="")return;if(l.indexOf(".")!==-1){if(a!==n.length-1||e!==-1&&o.length===0||!Tf(l))return;s+=2;continue}if(!LK(l))return;n[a]=parseInt(l,16).toString(16),s++}if(e===-1)return s!==8?void 0:eM(n);if(s>=8)return;let i=n.slice(0,r.length);for(let a=s;a<8;a++)i.push("0");for(let a=r.length;a<n.length;a++)i.push(n[a]);return eM(i)}function Sf(t){let e=t[0]==="["&&t[t.length-1]==="]";if((t[0]==="["||t[t.length-1]==="]")&&!e)return{host:t,isIPV6:!1,error:!0};let o=e?t.slice(1,-1):t;if(e&&DK(o))return o=o.toLowerCase(),{host:`[${o}]`,escapedHost:o,isIPV6:!1,isIPVFuture:!0};if(WK(o,":")<2)return{host:t,isIPV6:!1,error:e};let n="",s=o.indexOf("%");if(s!==-1){let a=o.slice(s,s+3).toLowerCase()==="%25"?3:1;if(n=o.slice(s+a),!FK(n))return{host:t,isIPV6:!1,error:!0};o=o.slice(0,s)}let i=zK(o);return i===void 0?{host:t,isIPV6:!1,error:!0}:{host:i+(n?"%"+n:""),escapedHost:i+(n?"%25"+n:""),isIPV6:!0}}function WK(t,e){let r=0;for(let o=0;o<t.length;o++)t[o]===e&&r++;return r}function rM(t){let e=t,r=[],o=-1,n=0;for(;n=e.length;){if(n===1){if(e===".")break;if(e==="/"){r.push("/");break}else{r.push(e);break}}else if(n===2){if(e[0]==="."){if(e[1]===".")break;if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&(e[1]==="."||e[1]==="/")){r.push("/");break}}else if(n===3&&e==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(e[0]==="."){if(e[1]==="."){if(e[2]==="/"){e=e.slice(3);continue}}else if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&e[1]==="."){if(e[2]==="/"){e=e.slice(2);continue}else if(e[2]==="."&&e[3]==="/"){e=e.slice(3),r.length!==0&&r.pop();continue}}if((o=e.indexOf("/",1))===-1){r.push(e);break}else r.push(e.slice(0,o)),e=e.slice(o)}return r.join("")}function qK(t){if(t===""||t[0]==="/")return rM(t);let e=t.split("/"),r=e.length-1,o=[],n=!1;for(let s=0;s<=r;s++){let i=e[s];i==="."||i===".."?(i===".."&&(o.length!==0&&o[o.length-1]!==".."?o.pop():o.push("..")),n=s===r):o.push(i)}return n&&o[o.length-1]!==".."&&o.push(""),(o.length===0||o[0]===""||o[0].includes(":"))&&o.unshift("."),o.join("/")}var BK={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},GK=/[@/?#:]/g,HK=/[@/?#]/g;function oM(t,e){let r=e?HK:GK;return r.lastIndex=0,t.replace(r,o=>BK[o])}function nM(t,e=!1){if(t.indexOf("%")===-1)return t;let r="";for(let o=0;o<t.length;o++){if(t[o]==="%"&&o+2<t.length){let n=t.slice(o+1,o+3);if(tn(n)){let s=n.toUpperCase(),i=String.fromCharCode(parseInt(s,16));e&&bf(i)?r+=i:r+="%"+s,o+=2;continue}}r+=t[o]}return r}function KK(t){let e="";for(let r=0;r<t.length;r++){let o=t[r];if(o==="%"&&r+2<t.length){let n=t.slice(r+1,r+3);if(tn(n)){let s=n.toUpperCase(),i=String.fromCharCode(parseInt(s,16));i!=="."&&bf(i)?e+=i:e+="%"+s,r+=2;continue}}if(tM(o))e+=o;else{let n=t.charCodeAt(r);if(n<128)e+=iM(n)?o:mt[n];else if(n<55296||n>57343)e+=Ve(n);else if(n<=56319&&r+1<t.length){let s=t.charCodeAt(r+1);s>=56320&&s<=57343?(e+=Ve(65536+(n-55296<<10)+(s-56320)),r++):e+=Ve(65533)}else e+=Ve(65533)}}return e}function VK(t,e=!1){let r="",o=e&&t[0]!=="/";for(let n=0;n<t.length;n++){let s=t[n];if(s==="%"&&n+2<t.length){let i=t.slice(n+1,n+3);if(tn(i)){r+="%"+i.toUpperCase(),n+=2;continue}}if(s==="/"&&(o=!1),tM(s)&&(s!==":"||!o))r+=s;else{let i=t.charCodeAt(n);if(i<128)r+=mt[i];else if(i<55296||i>57343)r+=Ve(i);else if(i<=56319&&n+1<t.length){let a=t.charCodeAt(n+1);a>=56320&&a<=57343?(r+=Ve(65536+(i-55296<<10)+(a-56320)),n++):r+=Ve(65533)}else r+=Ve(65533)}}return r}function Rf(t,e){let r="";for(let o=0;o<t.length;o++){let n=t[o];if(n==="%"&&o+2<t.length){let s=t.slice(o+1,o+3);if(tn(s)){r+="%"+s.toUpperCase(),o+=2;continue}}if(e(n))r+=n;else{let s=t.charCodeAt(o);if(s<128)r+=mt[s];else if(s<55296||s>57343)r+=Ve(s);else if(s<=56319&&o+1<t.length){let i=t.charCodeAt(o+1);i>=56320&&i<=57343?(r+=Ve(65536+(s-55296<<10)+(i-56320)),o++):r+=Ve(65533)}else r+=Ve(65533)}}return r}function sM(t){return Rf(t,NK)}function YK(t){return Rf(t,vf)}function XK(t){return Rf(t,vf)}function iM(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===42||t===43||t===45||t===46||t===47||t===64||t===95}function JK(t){let e="";for(let r=0;r<t.length;r++){let o=t[r];if(o==="%"&&r+2<t.length){let n=t.slice(r+1,r+3);if(tn(n)){let s=n.toUpperCase(),i=String.fromCharCode(parseInt(s,16));bf(i)?e+=i:e+="%"+s,r+=2;continue}}if(vf(o))e+=o;else{let n=t.charCodeAt(r);if(n<128)e+=iM(n)?o:mt[n];else if(n<55296||n>57343)e+=Ve(n);else if(n<=56319&&r+1<t.length){let s=t.charCodeAt(r+1);s>=56320&&s<=57343?(e+=Ve(65536+(n-55296<<10)+(s-56320)),r++):e+=Ve(65533)}else e+=Ve(65533)}}return e}function ZK(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){let o=t.slice(r+1,r+3);if(tn(o)){e+="%"+o.toUpperCase(),r+=2;continue}}e+=escape(t[r])}return e}function QK(t){let e=[];if(t.userinfo!==void 0&&(e.push(sM(t.userinfo)),e.push("@")),t.host!==void 0){let r=t.host;if(!Tf(r)){let o=Sf(r);o.isIPV6!==!0&&o.isIPVFuture!==!0&&(r=nM(r,!0),o=Sf(r)),o.isIPV6===!0||o.isIPVFuture===!0?r=`[${o.escapedHost}]`:r=oM(r,!1)}e.push(r)}if(typeof t.port=="number"||typeof t.port=="string"){let r=String(t.port);if(!CK(r))throw new TypeError("URI port is malformed.");e.push(":"),e.push(r)}return e.length?e.join(""):void 0}aM.exports={nonSimpleDomain:jK,recomposeAuthority:QK,reescapeHostDelimiters:oM,normalizePercentEncoding:nM,normalizePathEncoding:KK,serializePathEncoding:VK,normalizeQueryFragmentEncoding:JK,encodeUserinfo:sM,encodeQuery:YK,encodeFragment:XK,escapePreservingEscapes:ZK,removeDotSegments:rM,removeDotSegmentsRelative:qK,isIPv4:Tf,isUUID:MK,normalizeIPv6:Sf,stringArrayToHexStripped:$K}});var pM=x((bde,dM)=>{"use strict";var{isUUID:eV}=kf(),tV=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,rV=["http","https","ws","wss","urn","urn:uuid"];function oV(t){return rV.indexOf(t)!==-1}function xf(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function lM(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function cM(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function nV(t){return t.secure=xf(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function sV(t){if((t.port===(xf(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let e=t.resourceName.indexOf("?"),r=e===-1?t.resourceName:t.resourceName.slice(0,e);t.path=r&&r!=="/"?r:void 0,t.query=e===-1?void 0:t.resourceName.slice(e+1),t.resourceName=void 0}return t.fragment=void 0,t}function iV(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(tV);if(r&&r[0]===t.path){let o=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let n=`${o}:${e.nid||t.nid}`,s=Af(n);t.path=void 0,s&&(t=s.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function aV(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",o=t.nid.toLowerCase(),n=`${r}:${e.nid||o}`,s=Af(n);s&&(t=s.serialize(t,e));let i=t,a=t.nss;return i.path=`${o||e.nid}:${a}`,e.skipEscape=!0,i}function lV(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!eV(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function cV(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var uM={scheme:"http",domainHost:!0,parse:lM,serialize:cM},uV={scheme:"https",domainHost:uM.domainHost,parse:lM,serialize:cM},Ou={scheme:"ws",domainHost:!0,parse:nV,serialize:sV},dV={scheme:"wss",domainHost:Ou.domainHost,parse:Ou.parse,serialize:Ou.serialize},pV={scheme:"urn",parse:iV,serialize:aV,skipNormalize:!0},hV={scheme:"urn:uuid",parse:lV,serialize:cV,skipNormalize:!0},Mu={http:uM,https:uV,ws:Ou,wss:dV,urn:pV,"urn:uuid":hV};Object.setPrototypeOf(Mu,null);function Af(t){return t&&(Mu[t]||Mu[t.toLowerCase()])||void 0}dM.exports={wsIsSecure:xf,SCHEMES:Mu,isValidSchemeName:oV,getSchemeHandler:Af}});var xM=x((vde,Du)=>{"use strict";var{normalizeIPv6:yM,removeDotSegments:na,removeDotSegmentsRelative:_M,recomposeAuthority:mV,normalizePercentEncoding:Pf,normalizePathEncoding:fV,serializePathEncoding:hM,normalizeQueryFragmentEncoding:mM,encodeQuery:gV,encodeFragment:yV,reescapeHostDelimiters:_V,isIPv4:wM,nonSimpleDomain:wV}=kf(),{SCHEMES:EM,getSchemeHandler:If}=pM(),SM=/^[A-Za-z][A-Za-z0-9+.-]*$/u,TM="URI scheme is malformed.",Cu="URI host is malformed.",EV=/[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;function fM(t){let e=String(t);if(!SM.test(e))throw new TypeError(TM);return e}function SV(t,e){return typeof t=="string"?t=IV(t,e):typeof t=="object"&&(t=$u(rn(t,e),e)),t}function TV(t,e,r){let o=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:n,malformedAuthorityOrPort:s,malformedPercentEncoding:i,malformedSchemeSpecific:a,malformedHost:l,malformedScheme:c}=Nu(t,o),{parsed:u,malformedAuthorityOrPort:d,malformedPercentEncoding:h,malformedSchemeSpecific:p,malformedHost:g,malformedScheme:f}=Nu(e,o);if(s||d||i||h||a||p||l||g||c||f)throw new Error(n.error||u.error||"URI is malformed.");let y=bM(n,u,o,!0),_=If(r&&r.scheme||y.scheme),w=y.host,T=w!==void 0&&w!==""&&(wM(w)||yM(w).isIPV6);if(RM(y,r||{},_,T))throw new Error(Cu);vM(y,r||{},_,T);let b=w&&w.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(w);if(y.error&&!b)throw new Error(y.error);return o.skipEscape=!0,rn(y,o)}function bM(t,e,r,o){let n={};if(o||(t=$u(rn(t,r),r),e=$u(rn(e,r),r)),r=r||{},!r.tolerant&&e.scheme)n.scheme=e.scheme,n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=na(e.path||""),n.query=e.query;else{if(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=na(e.path||""),n.query=e.query;else{if(!e.path)n.path=t.path,e.query!==void 0?n.query=e.query:n.query=t.query;else{if(e.path[0]==="/")n.path=na(e.path);else{let s=t.userinfo!==void 0||t.host!==void 0||t.port!==void 0;s&&!t.path?n.path="/"+e.path:t.path?n.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:n.path=e.path,n.path=t.scheme===void 0&&!s&&n.path[0]!=="/"?_M(n.path):na(n.path)}n.query=e.query}n.userinfo=t.userinfo,n.host=t.host,n.port=t.port}n.scheme=t.scheme}return n.fragment=e.fragment,n}function bV(t,e,r){let o=gM(t,r),n=gM(e,r);return o!==void 0&&n!==void 0&&o===n}function rn(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},o=Object.assign({},e),n=[];r.scheme&&(r.scheme=fM(r.scheme));let s=If(o.scheme||r.scheme);s&&s.serialize&&s.serialize(r,o);let i=r.userinfo!==void 0||r.host!==void 0||r.port!==void 0,a=(r.scheme===void 0||o.reference==="suffix")&&!i,l=!o.skipEscape&&a;r.path!==void 0&&(o.skipEscape?r.path=Pf(r.path):r.path=hM(r.path,l)),o.reference!=="suffix"&&r.scheme&&(r.scheme=fM(r.scheme),n.push(r.scheme,":"));let c=mV(r);if(c!==void 0&&(o.reference!=="suffix"&&n.push("//"),n.push(c),r.path&&r.path[0]!=="/"&&n.push("/")),r.path!==void 0){let u=r.path;!o.absolutePath&&(!s||!s.absolutePath)&&(u=a&&u[0]!=="/"?_M(u):na(u)),a&&(u=hM(u,!0)),c===void 0&&u[0]==="/"&&u[1]==="/"&&(u="/%2F"+u.slice(2)),n.push(u)}return r.query!==void 0&&n.push("?",gV(r.query)),r.fragment!==void 0&&n.push("#",yV(r.fragment)),n.join("")}var vV=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,RV=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,kV=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function xV(t,e){if(e[2]!==void 0&&t.path&&t.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof t.port=="number"&&(t.port<0||t.port>65535))return"URI port is malformed."}function oa(t){if(t===void 0)return!1;let e=t.indexOf("%");for(;e!==-1;){if(e+2>=t.length||!/^[\da-f]{2}$/iu.test(t.slice(e+1,e+3)))return!0;e=t.indexOf("%",e+3)}return!1}function Lu(t){return t[0]==="["&&t[t.length-1]==="]"}function AV(t){let e=t[4];return oa(t[3])||e!==void 0&&!Lu(e)&&oa(e)||oa(t[6])||oa(t[7])||oa(t[8])}function vM(t,e,r,o){if(RM(t,e,r,o))return t.error=t.error||Cu,!0;if(!e.unicodeSupport&&(!r||!r.unicodeSupport)&&t.host&&!Lu(t.host)&&(e.domainHost||r&&r.domainHost)&&o===!1&&wV(t.host)){let n;try{n=new URL("http://"+t.host)}catch(s){return t.error=t.error||"Host's domain name can not be converted to ASCII: "+s,!0}if(!PV(n))return t.error=t.error||Cu,!0;t.host=n.hostname}return!1}function RM(t,e,r,o){return!!(t.host&&o===!1&&!Lu(t.host)&&(e.domainHost||r&&r.domainHost)&&EV.test(t.host))}function PV(t){return t.username===""&&t.password===""&&t.port===""&&t.pathname==="/"&&t.search===""&&t.hash===""&&t.hostname!==""}function Nu(t,e){let r=Object.assign({},e),o={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=!1,s=!1,i=!1,a=!1,l=!1,c=!1,u=!1;r.reference==="suffix"&&(r.scheme?t=r.scheme+":"+t:t="//"+t);let d=t.match(RV);d!==null&&d[1].indexOf("\\")!==-1&&(o.error="URI authority must not contain a literal backslash.",n=!0);let h=t.match(kV);if(h!==null){let g=h[1],f=g.replace(/[\t\n\r]/g,"");f.length>=2&&(f.slice(0,2)!=="//"?(o.error=o.error||"URI authority must not contain a literal backslash.",n=!0):g.length!==f.length&&(o.error=o.error||"URI authority introducer must not contain whitespace.",n=!0))}let p=t.match(vV);if(p){o.scheme=p[1],o.userinfo=p[3],o.host=p[4],o.port=parseInt(p[5],10),o.path=p[6]||"",o.query=p[7],o.fragment=p[8],o.scheme!==void 0&&(SM.test(o.scheme)?o.scheme=o.scheme.toLowerCase():(o.error=o.error||TM,c=!0)),s=AV(p),s&&(o.error=o.error||"URI contains malformed percent-encoding."),isNaN(o.port)&&(o.port=p[5]);let g=xV(o,p);if(g!==void 0&&(o.error=o.error||g,n=!0),o.host)if(wM(o.host)===!1){let _=Lu(o.host),w=o.host.indexOf("[")!==-1||o.host.indexOf("]")!==-1,T=yM(o.host);u=T.isIPV6||T.isIPVFuture===!0,l=w&&(!_||T.error===!0),o.host=u?T.host:T.host.toLowerCase(),l&&(o.error=o.error||Cu,n=!0)}else u=!0;o.scheme===void 0&&o.userinfo===void 0&&o.host===void 0&&o.port===void 0&&o.query===void 0&&!o.path?o.reference="same-document":o.scheme===void 0?o.reference="relative":o.fragment===void 0?o.reference="absolute":o.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==o.reference&&(o.error=o.error||"URI is not a "+r.reference+" reference.");let f=If(r.scheme||o.scheme);if(l||(a=vM(o,r,f,u)),t.indexOf("%")!==-1&&o.host!==void 0&&!l){let y=u?o.host:Pf(o.host,!0);u||(y=Pf(y.toLowerCase())),o.host=u||r.scheme!=="null"?_V(y,u):y}(!f||f&&!f.skipNormalize)&&(o.path&&(o.path=fV(o.path)),o.query&&(o.query=mM(o.query)),o.fragment&&(o.fragment=mM(o.fragment))),f&&f.parse&&(f.parse(o,r),f===EM.urn&&o.nid===void 0&&(i=!0))}else o.error=o.error||"URI can not be parsed.";return{parsed:o,malformedAuthorityOrPort:n,malformedPercentEncoding:s,malformedSchemeSpecific:i,malformedHost:a,malformedScheme:c}}function $u(t,e){return Nu(t,e).parsed}function IV(t,e){return kM(t,e).normalized}function kM(t,e){let{parsed:r,malformedAuthorityOrPort:o,malformedPercentEncoding:n,malformedSchemeSpecific:s,malformedHost:i,malformedScheme:a}=Nu(t,e);return{normalized:o||n||s||i||a?t:rn(r,e),malformedAuthorityOrPort:o,malformedPercentEncoding:n,malformedSchemeSpecific:s,malformedHost:i,malformedScheme:a}}function gM(t,e){if(typeof t!="string"&&typeof t!="object")return;let r;try{r=typeof t=="string"?t:rn(t,e)}catch{return}let{normalized:o,malformedAuthorityOrPort:n,malformedPercentEncoding:s,malformedSchemeSpecific:i,malformedHost:a,malformedScheme:l}=kM(r,e);return n||s||i||a||l?void 0:o}var Of={SCHEMES:EM,normalize:SV,resolve:TV,resolveComponent:bM,equal:bV,serialize:rn,parse:$u};Du.exports=Of;Du.exports.default=Of;Du.exports.fastUri=Of});var PM=x(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var AM=xM();AM.code='require("ajv/dist/runtime/uri").default';Mf.default=AM});var DM=x(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.CodeGen=je.Name=je.nil=je.stringify=je.str=je._=je.KeywordCxt=void 0;var OV=ta();Object.defineProperty(je,"KeywordCxt",{enumerable:!0,get:function(){return OV.KeywordCxt}});var ls=G();Object.defineProperty(je,"_",{enumerable:!0,get:function(){return ls._}});Object.defineProperty(je,"str",{enumerable:!0,get:function(){return ls.str}});Object.defineProperty(je,"stringify",{enumerable:!0,get:function(){return ls.stringify}});Object.defineProperty(je,"nil",{enumerable:!0,get:function(){return ls.nil}});Object.defineProperty(je,"Name",{enumerable:!0,get:function(){return ls.Name}});Object.defineProperty(je,"CodeGen",{enumerable:!0,get:function(){return ls.CodeGen}});var MV=Au(),NM=ra(),CV=ef(),sa=Iu(),NV=G(),ia=Zi(),Uu=Ji(),Nf=re(),IM=QO(),$V=PM(),$M=(t,e)=>new RegExp(t,e);$M.code="new RegExp";var LV=["removeAdditional","useDefaults","coerceTypes"],DV=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),UV={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},jV={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},OM=200;function FV(t){var e,r,o,n,s,i,a,l,c,u,d,h,p,g,f,y,_,w,T,b,E,v,k,N,C;let U=t.strict,he=(e=t.code)===null||e===void 0?void 0:e.optimize,Y=he===!0||he===void 0?1:he||0,F=(o=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&o!==void 0?o:$M,M=(n=t.uriResolver)!==null&&n!==void 0?n:$V.default;return{strictSchema:(i=(s=t.strictSchema)!==null&&s!==void 0?s:U)!==null&&i!==void 0?i:!0,strictNumbers:(l=(a=t.strictNumbers)!==null&&a!==void 0?a:U)!==null&&l!==void 0?l:!0,strictTypes:(u=(c=t.strictTypes)!==null&&c!==void 0?c:U)!==null&&u!==void 0?u:"log",strictTuples:(h=(d=t.strictTuples)!==null&&d!==void 0?d:U)!==null&&h!==void 0?h:"log",strictRequired:(g=(p=t.strictRequired)!==null&&p!==void 0?p:U)!==null&&g!==void 0?g:!1,code:t.code?{...t.code,optimize:Y,regExp:F}:{optimize:Y,regExp:F},loopRequired:(f=t.loopRequired)!==null&&f!==void 0?f:OM,loopEnum:(y=t.loopEnum)!==null&&y!==void 0?y:OM,meta:(_=t.meta)!==null&&_!==void 0?_:!0,messages:(w=t.messages)!==null&&w!==void 0?w:!0,inlineRefs:(T=t.inlineRefs)!==null&&T!==void 0?T:!0,schemaId:(b=t.schemaId)!==null&&b!==void 0?b:"$id",addUsedSchema:(E=t.addUsedSchema)!==null&&E!==void 0?E:!0,validateSchema:(v=t.validateSchema)!==null&&v!==void 0?v:!0,validateFormats:(k=t.validateFormats)!==null&&k!==void 0?k:!0,unicodeRegExp:(N=t.unicodeRegExp)!==null&&N!==void 0?N:!0,int32range:(C=t.int32range)!==null&&C!==void 0?C:!0,uriResolver:M}}var aa=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...FV(e)};let{es5:r,lines:o}=this.opts.code;this.scope=new NV.ValueScope({scope:{},prefixes:DV,es5:r,lines:o}),this.logger=HV(e.logger);let n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,CV.getRules)(),MM.call(this,UV,e,"NOT SUPPORTED"),MM.call(this,jV,e,"DEPRECATED","warn"),this._metaOpts=BV.call(this),e.formats&&WV.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&qV.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),zV.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:o}=this.opts,n=IM;o==="id"&&(n={...IM},n.id=n.$id,delete n.$id),r&&e&&this.addMetaSchema(n,n[o],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let o;if(typeof e=="string"){if(o=this.getSchema(e),!o)throw new Error(`no schema with key or ref "${e}"`)}else o=this.compile(e);let n=o(r);return"$async"in o||(this.errors=o.errors),n}compile(e,r){let o=this._addSchema(e,r);return o.validate||this._compileSchemaEnv(o)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:o}=this.opts;return n.call(this,e,r);async function n(u,d){await s.call(this,u.$schema);let h=this._addSchema(u,d);return h.validate||i.call(this,h)}async function s(u){u&&!this.getSchema(u)&&await n.call(this,{$ref:u},!0)}async function i(u){try{return this._compileSchemaEnv(u)}catch(d){if(!(d instanceof NM.default))throw d;return a.call(this,d),await l.call(this,d.missingSchema),i.call(this,u)}}function a({missingSchema:u,missingRef:d}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${d} cannot be resolved`)}async function l(u){let d=await c.call(this,u);this.refs[u]||await s.call(this,d.$schema),this.refs[u]||this.addSchema(d,u,r)}async function c(u){let d=this._loading[u];if(d)return d;try{return await(this._loading[u]=o(u))}finally{delete this._loading[u]}}}addSchema(e,r,o,n=this.opts.validateSchema){if(Array.isArray(e)){for(let i of e)this.addSchema(i,void 0,o,n);return this}let s;if(typeof e=="object"){let{schemaId:i}=this.opts;if(s=e[i],s!==void 0&&typeof s!="string")throw new Error(`schema ${i} must be string`)}return r=(0,ia.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(e,o,r,n,!0),this}addMetaSchema(e,r,o=this.opts.validateSchema){return this.addSchema(e,r,!0,o),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let o;if(o=e.$schema,o!==void 0&&typeof o!="string")throw new Error("$schema must be a string");if(o=o||this.opts.defaultMeta||this.defaultMeta(),!o)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(o,e);if(!n&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return n}getSchema(e){let r;for(;typeof(r=CM.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:o}=this.opts,n=new sa.SchemaEnv({schema:{},schemaId:o});if(r=sa.resolveSchema.call(this,n,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=CM.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let o=e[this.opts.schemaId];return o&&(o=(0,ia.normalizeId)(o),delete this.schemas[o],delete this.refs[o]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let o;if(typeof e=="string")o=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=o);else if(typeof e=="object"&&r===void 0){if(r=e,o=r.keyword,Array.isArray(o)&&!o.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(VV.call(this,o,r),!r)return(0,Nf.eachItem)(o,s=>Cf.call(this,s)),this;XV.call(this,r);let n={...r,type:(0,Uu.getJSONTypes)(r.type),schemaType:(0,Uu.getJSONTypes)(r.schemaType)};return(0,Nf.eachItem)(o,n.type.length===0?s=>Cf.call(this,s,n):s=>n.type.forEach(i=>Cf.call(this,s,n,i))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let o of r.rules){let n=o.rules.findIndex(s=>s.keyword===e);n>=0&&o.rules.splice(n,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:o="data"}={}){return!e||e.length===0?"No errors":e.map(n=>`${o}${n.instancePath} ${n.message}`).reduce((n,s)=>n+r+s)}$dataMetaSchema(e,r){let o=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let n of r){let s=n.split("/").slice(1),i=e;for(let a of s)i=i[a];for(let a in o){let l=o[a];if(typeof l!="object")continue;let{$data:c}=l.definition,u=i[a];c&&u&&(i[a]=LM(u))}}return e}_removeAllSchemas(e,r){for(let o in e){let n=e[o];(!r||r.test(o))&&(typeof n=="string"?delete e[o]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[o]))}}_addSchema(e,r,o,n=this.opts.validateSchema,s=this.opts.addUsedSchema){let i,{schemaId:a}=this.opts;if(typeof e=="object")i=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let l=this._cache.get(e);if(l!==void 0)return l;o=(0,ia.normalizeId)(i||o);let c=ia.getSchemaRefs.call(this,e,o);return l=new sa.SchemaEnv({schema:e,schemaId:a,meta:r,baseId:o,localRefs:c}),this._cache.set(l.schema,l),s&&!o.startsWith("#")&&(o&&this._checkUnique(o),this.refs[o]=l),n&&this.validateSchema(e,!0),l}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):sa.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{sa.compileSchema.call(this,e)}finally{this.opts=r}}};aa.ValidationError=MV.default;aa.MissingRefError=NM.default;je.default=aa;function MM(t,e,r,o="error"){for(let n in t){let s=n;s in e&&this.logger[o](`${r}: option ${n}. ${t[s]}`)}}function CM(t){return t=(0,ia.normalizeId)(t),this.schemas[t]||this.refs[t]}function zV(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function WV(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function qV(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function BV(){let t={...this.opts};for(let e of LV)delete t[e];return t}var GV={log(){},warn(){},error(){}};function HV(t){if(t===!1)return GV;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var KV=/^[a-z_$][a-z0-9_$:-]*$/i;function VV(t,e){let{RULES:r}=this;if((0,Nf.eachItem)(t,o=>{if(r.keywords[o])throw new Error(`Keyword ${o} is already defined`);if(!KV.test(o))throw new Error(`Keyword ${o} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function Cf(t,e,r){var o;let n=e?.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,i=n?s.post:s.rules.find(({type:l})=>l===r);if(i||(i={type:r,rules:[]},s.rules.push(i)),s.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,Uu.getJSONTypes)(e.type),schemaType:(0,Uu.getJSONTypes)(e.schemaType)}};e.before?YV.call(this,i,a,e.before):i.rules.push(a),s.all[t]=a,(o=e.implements)===null||o===void 0||o.forEach(l=>this.addKeyword(l))}function YV(t,e,r){let o=t.rules.findIndex(n=>n.keyword===r);o>=0?t.rules.splice(o,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function XV(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=LM(e)),t.validateSchema=this.compile(e,!0))}var JV={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function LM(t){return{anyOf:[t,JV]}}});var UM=x($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var ZV={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};$f.default=ZV});var WM=x(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.callRef=on.getValidate=void 0;var QV=ra(),jM=Dt(),ft=G(),cs=Rr(),FM=Iu(),ju=re(),eY={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:o}=t,{baseId:n,schemaEnv:s,validateName:i,opts:a,self:l}=o,{root:c}=s;if((r==="#"||r==="#/")&&n===c.baseId)return d();let u=FM.resolveRef.call(l,c,n,r);if(u===void 0)throw new QV.default(o.opts.uriResolver,n,r);if(u instanceof FM.SchemaEnv)return h(u);return p(u);function d(){if(s===c)return Fu(t,i,s,s.$async);let g=e.scopeValue("root",{ref:c});return Fu(t,(0,ft._)`${g}.validate`,c,c.$async)}function h(g){let f=zM(t,g);Fu(t,f,g,g.$async)}function p(g){let f=e.scopeValue("schema",a.code.source===!0?{ref:g,code:(0,ft.stringify)(g)}:{ref:g}),y=e.name("valid"),_=t.subschema({schema:g,dataTypes:[],schemaPath:ft.nil,topSchemaRef:f,errSchemaPath:r},y);t.mergeEvaluated(_),t.ok(y)}}};function zM(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,ft._)`${r.scopeValue("wrapper",{ref:e})}.validate`}on.getValidate=zM;function Fu(t,e,r,o){let{gen:n,it:s}=t,{allErrors:i,schemaEnv:a,opts:l}=s,c=l.passContext?cs.default.this:ft.nil;o?u():d();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let g=n.let("valid");n.try(()=>{n.code((0,ft._)`await ${(0,jM.callValidateCode)(t,e,c)}`),p(e),i||n.assign(g,!0)},f=>{n.if((0,ft._)`!(${f} instanceof ${s.ValidationError})`,()=>n.throw(f)),h(f),i||n.assign(g,!1)}),t.ok(g)}function d(){t.result((0,jM.callValidateCode)(t,e,c),()=>p(e),()=>h(e))}function h(g){let f=(0,ft._)`${g}.errors`;n.assign(cs.default.vErrors,(0,ft._)`${cs.default.vErrors} === null ? ${f} : ${cs.default.vErrors}.concat(${f})`),n.assign(cs.default.errors,(0,ft._)`${cs.default.vErrors}.length`)}function p(g){var f;if(!s.opts.unevaluated)return;let y=(f=r?.validate)===null||f===void 0?void 0:f.evaluated;if(s.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(s.props=ju.mergeEvaluated.props(n,y.props,s.props));else{let _=n.var("props",(0,ft._)`${g}.evaluated.props`);s.props=ju.mergeEvaluated.props(n,_,s.props,ft.Name)}if(s.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(s.items=ju.mergeEvaluated.items(n,y.items,s.items));else{let _=n.var("items",(0,ft._)`${g}.evaluated.items`);s.items=ju.mergeEvaluated.items(n,_,s.items,ft.Name)}}}on.callRef=Fu;on.default=eY});var qM=x(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var tY=UM(),rY=WM(),oY=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",tY.default,rY.default];Lf.default=oY});var BM=x(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});var zu=G(),go=zu.operators,Wu={maximum:{okStr:"<=",ok:go.LTE,fail:go.GT},minimum:{okStr:">=",ok:go.GTE,fail:go.LT},exclusiveMaximum:{okStr:"<",ok:go.LT,fail:go.GTE},exclusiveMinimum:{okStr:">",ok:go.GT,fail:go.LTE}},nY={message:({keyword:t,schemaCode:e})=>(0,zu.str)`must be ${Wu[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,zu._)`{comparison: ${Wu[t].okStr}, limit: ${e}}`},sY={keyword:Object.keys(Wu),type:"number",schemaType:"number",$data:!0,error:nY,code(t){let{keyword:e,data:r,schemaCode:o}=t;t.fail$data((0,zu._)`${r} ${Wu[e].fail} ${o} || isNaN(${r})`)}};Df.default=sY});var GM=x(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var la=G(),iY={message:({schemaCode:t})=>(0,la.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,la._)`{multipleOf: ${t}}`},aY={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:iY,code(t){let{gen:e,data:r,schemaCode:o,it:n}=t,s=n.opts.multipleOfPrecision,i=e.let("res"),a=s?(0,la._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,la._)`${i} !== parseInt(${i})`;t.fail$data((0,la._)`(${o} === 0 || (${i} = ${r}/${o}, ${a}))`)}};Uf.default=aY});var KM=x(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});function HM(t){let e=t.length,r=0,o=0,n;for(;o<e;)r++,n=t.charCodeAt(o++),n>=55296&&n<=56319&&o<e&&(n=t.charCodeAt(o),(n&64512)===56320&&o++);return r}jf.default=HM;HM.code='require("ajv/dist/runtime/ucs2length").default'});var VM=x(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var nn=G(),lY=re(),cY=KM(),uY={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,nn.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,nn._)`{limit: ${t}}`},dY={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:uY,code(t){let{keyword:e,data:r,schemaCode:o,it:n}=t,s=e==="maxLength"?nn.operators.GT:nn.operators.LT,i=n.opts.unicode===!1?(0,nn._)`${r}.length`:(0,nn._)`${(0,lY.useFunc)(t.gen,cY.default)}(${r})`;t.fail$data((0,nn._)`${i} ${s} ${o}`)}};Ff.default=dY});var YM=x(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var pY=Dt(),hY=re(),us=G(),mY={message:({schemaCode:t})=>(0,us.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,us._)`{pattern: ${t}}`},fY={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:mY,code(t){let{gen:e,data:r,$data:o,schema:n,schemaCode:s,it:i}=t,a=i.opts.unicodeRegExp?"u":"";if(o){let{regExp:l}=i.opts.code,c=l.code==="new RegExp"?(0,us._)`new RegExp`:(0,hY.useFunc)(e,l),u=e.let("valid");e.try(()=>e.assign(u,(0,us._)`${c}(${s}, ${a}).test(${r})`),()=>e.assign(u,!1)),t.fail$data((0,us._)`!${u}`)}else{let l=(0,pY.usePattern)(t,n);t.fail$data((0,us._)`!${l}.test(${r})`)}}};zf.default=fY});var XM=x(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var ca=G(),gY={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,ca.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,ca._)`{limit: ${t}}`},yY={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:gY,code(t){let{keyword:e,data:r,schemaCode:o}=t,n=e==="maxProperties"?ca.operators.GT:ca.operators.LT;t.fail$data((0,ca._)`Object.keys(${r}).length ${n} ${o}`)}};Wf.default=yY});var JM=x(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var ua=Dt(),da=G(),_Y=re(),wY={message:({params:{missingProperty:t}})=>(0,da.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,da._)`{missingProperty: ${t}}`},EY={keyword:"required",type:"object",schemaType:"array",$data:!0,error:wY,code(t){let{gen:e,schema:r,schemaCode:o,data:n,$data:s,it:i}=t,{opts:a}=i;if(!s&&r.length===0)return;let l=r.length>=a.loopRequired;if(i.allErrors?c():u(),a.strictRequired){let p=t.parentSchema.properties,{definedProperties:g}=t.it;for(let f of r)if(p?.[f]===void 0&&!g.has(f)){let y=i.schemaEnv.baseId+i.errSchemaPath,_=`required property "${f}" is not defined at "${y}" (strictRequired)`;(0,_Y.checkStrictMode)(i,_,i.opts.strictRequired)}}function c(){if(l||s)t.block$data(da.nil,d);else for(let p of r)(0,ua.checkReportMissingProp)(t,p)}function u(){let p=e.let("missing");if(l||s){let g=e.let("valid",!0);t.block$data(g,()=>h(p,g)),t.ok(g)}else e.if((0,ua.checkMissingProp)(t,r,p)),(0,ua.reportMissingProp)(t,p),e.else()}function d(){e.forOf("prop",o,p=>{t.setParams({missingProperty:p}),e.if((0,ua.noPropertyInData)(e,n,p,a.ownProperties),()=>t.error())})}function h(p,g){t.setParams({missingProperty:p}),e.forOf(p,o,()=>{e.assign(g,(0,ua.propertyInData)(e,n,p,a.ownProperties)),e.if((0,da.not)(g),()=>{t.error(),e.break()})},da.nil)}}};qf.default=EY});var ZM=x(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var pa=G(),SY={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,pa.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,pa._)`{limit: ${t}}`},TY={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:SY,code(t){let{keyword:e,data:r,schemaCode:o}=t,n=e==="maxItems"?pa.operators.GT:pa.operators.LT;t.fail$data((0,pa._)`${r}.length ${n} ${o}`)}};Bf.default=TY});var qu=x(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var QM=cf();QM.code='require("ajv/dist/runtime/equal").default';Gf.default=QM});var eC=x(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var Hf=Ji(),Fe=G(),bY=re(),vY=qu(),RY={message:({params:{i:t,j:e}})=>(0,Fe.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Fe._)`{i: ${t}, j: ${e}}`},kY={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:RY,code(t){let{gen:e,data:r,$data:o,schema:n,parentSchema:s,schemaCode:i,it:a}=t;if(!o&&!n)return;let l=e.let("valid"),c=s.items?(0,Hf.getSchemaTypes)(s.items):[];t.block$data(l,u,(0,Fe._)`${i} === false`),t.ok(l);function u(){let g=e.let("i",(0,Fe._)`${r}.length`),f=e.let("j");t.setParams({i:g,j:f}),e.assign(l,!0),e.if((0,Fe._)`${g} > 1`,()=>(d()?h:p)(g,f))}function d(){return c.length>0&&!c.some(g=>g==="object"||g==="array")}function h(g,f){let y=e.name("item"),_=(0,Hf.checkDataTypes)(c,y,a.opts.strictNumbers,Hf.DataType.Wrong),w=e.const("indices",(0,Fe._)`{}`);e.for((0,Fe._)`;${g}--;`,()=>{e.let(y,(0,Fe._)`${r}[${g}]`),e.if(_,(0,Fe._)`continue`),c.length>1&&e.if((0,Fe._)`typeof ${y} == "string"`,(0,Fe._)`${y} += "_"`),e.if((0,Fe._)`typeof ${w}[${y}] == "number"`,()=>{e.assign(f,(0,Fe._)`${w}[${y}]`),t.error(),e.assign(l,!1).break()}).code((0,Fe._)`${w}[${y}] = ${g}`)})}function p(g,f){let y=(0,bY.useFunc)(e,vY.default),_=e.name("outer");e.label(_).for((0,Fe._)`;${g}--;`,()=>e.for((0,Fe._)`${f} = ${g}; ${f}--;`,()=>e.if((0,Fe._)`${y}(${r}[${g}], ${r}[${f}])`,()=>{t.error(),e.assign(l,!1).break(_)})))}}};Kf.default=kY});var tC=x(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var Vf=G(),xY=re(),AY=qu(),PY={message:"must be equal to constant",params:({schemaCode:t})=>(0,Vf._)`{allowedValue: ${t}}`},IY={keyword:"const",$data:!0,error:PY,code(t){let{gen:e,data:r,$data:o,schemaCode:n,schema:s}=t;o||s&&typeof s=="object"?t.fail$data((0,Vf._)`!${(0,xY.useFunc)(e,AY.default)}(${r}, ${n})`):t.fail((0,Vf._)`${s} !== ${r}`)}};Yf.default=IY});var rC=x(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var ha=G(),OY=re(),MY=qu(),CY={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,ha._)`{allowedValues: ${t}}`},NY={keyword:"enum",schemaType:"array",$data:!0,error:CY,code(t){let{gen:e,data:r,$data:o,schema:n,schemaCode:s,it:i}=t;if(!o&&n.length===0)throw new Error("enum must have non-empty array");let a=n.length>=i.opts.loopEnum,l,c=()=>l??(l=(0,OY.useFunc)(e,MY.default)),u;if(a||o)u=e.let("valid"),t.block$data(u,d);else{if(!Array.isArray(n))throw new Error("ajv implementation error");let p=e.const("vSchema",s);u=(0,ha.or)(...n.map((g,f)=>h(p,f)))}t.pass(u);function d(){e.assign(u,!1),e.forOf("v",s,p=>e.if((0,ha._)`${c()}(${r}, ${p})`,()=>e.assign(u,!0).break()))}function h(p,g){let f=n[g];return typeof f=="object"&&f!==null?(0,ha._)`${c()}(${r}, ${p}[${g}])`:(0,ha._)`${r} === ${f}`}}};Xf.default=NY});var oC=x(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var $Y=BM(),LY=GM(),DY=VM(),UY=YM(),jY=XM(),FY=JM(),zY=ZM(),WY=eC(),qY=tC(),BY=rC(),GY=[$Y.default,LY.default,DY.default,UY.default,jY.default,FY.default,zY.default,WY.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},qY.default,BY.default];Jf.default=GY});var Qf=x(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.validateAdditionalItems=void 0;var sn=G(),Zf=re(),HY={message:({params:{len:t}})=>(0,sn.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,sn._)`{limit: ${t}}`},KY={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:HY,code(t){let{parentSchema:e,it:r}=t,{items:o}=e;if(!Array.isArray(o)){(0,Zf.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}nC(t,o)}};function nC(t,e){let{gen:r,schema:o,data:n,keyword:s,it:i}=t;i.items=!0;let a=r.const("len",(0,sn._)`${n}.length`);if(o===!1)t.setParams({len:e.length}),t.pass((0,sn._)`${a} <= ${e.length}`);else if(typeof o=="object"&&!(0,Zf.alwaysValidSchema)(i,o)){let c=r.var("valid",(0,sn._)`${a} <= ${e.length}`);r.if((0,sn.not)(c),()=>l(c)),t.ok(c)}function l(c){r.forRange("i",e.length,a,u=>{t.subschema({keyword:s,dataProp:u,dataPropType:Zf.Type.Num},c),i.allErrors||r.if((0,sn.not)(c),()=>r.break())})}}ma.validateAdditionalItems=nC;ma.default=KY});var eg=x(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.validateTuple=void 0;var sC=G(),Bu=re(),VY=Dt(),YY={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return iC(t,"additionalItems",e);r.items=!0,!(0,Bu.alwaysValidSchema)(r,e)&&t.ok((0,VY.validateArray)(t))}};function iC(t,e,r=t.schema){let{gen:o,parentSchema:n,data:s,keyword:i,it:a}=t;u(n),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Bu.mergeEvaluated.items(o,r.length,a.items));let l=o.name("valid"),c=o.const("len",(0,sC._)`${s}.length`);r.forEach((d,h)=>{(0,Bu.alwaysValidSchema)(a,d)||(o.if((0,sC._)`${c} > ${h}`,()=>t.subschema({keyword:i,schemaProp:h,dataProp:h},l)),t.ok(l))});function u(d){let{opts:h,errSchemaPath:p}=a,g=r.length,f=g===d.minItems&&(g===d.maxItems||d[e]===!1);if(h.strictTuples&&!f){let y=`"${i}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${p}"`;(0,Bu.checkStrictMode)(a,y,h.strictTuples)}}}fa.validateTuple=iC;fa.default=YY});var aC=x(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});var XY=eg(),JY={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,XY.validateTuple)(t,"items")};tg.default=JY});var cC=x(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});var lC=G(),ZY=re(),QY=Dt(),e4=Qf(),t4={message:({params:{len:t}})=>(0,lC.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,lC._)`{limit: ${t}}`},r4={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:t4,code(t){let{schema:e,parentSchema:r,it:o}=t,{prefixItems:n}=r;o.items=!0,!(0,ZY.alwaysValidSchema)(o,e)&&(n?(0,e4.validateAdditionalItems)(t,n):t.ok((0,QY.validateArray)(t)))}};rg.default=r4});var uC=x(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var jt=G(),Gu=re(),o4={message:({params:{min:t,max:e}})=>e===void 0?(0,jt.str)`must contain at least ${t} valid item(s)`:(0,jt.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,jt._)`{minContains: ${t}}`:(0,jt._)`{minContains: ${t}, maxContains: ${e}}`},n4={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:o4,code(t){let{gen:e,schema:r,parentSchema:o,data:n,it:s}=t,i,a,{minContains:l,maxContains:c}=o;s.opts.next?(i=l===void 0?1:l,a=c):i=1;let u=e.const("len",(0,jt._)`${n}.length`);if(t.setParams({min:i,max:a}),a===void 0&&i===0){(0,Gu.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&i>a){(0,Gu.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Gu.alwaysValidSchema)(s,r)){let f=(0,jt._)`${u} >= ${i}`;a!==void 0&&(f=(0,jt._)`${f} && ${u} <= ${a}`),t.pass(f);return}s.items=!0;let d=e.name("valid");a===void 0&&i===1?p(d,()=>e.if(d,()=>e.break())):i===0?(e.let(d,!0),a!==void 0&&e.if((0,jt._)`${n}.length > 0`,h)):(e.let(d,!1),h()),t.result(d,()=>t.reset());function h(){let f=e.name("_valid"),y=e.let("count",0);p(f,()=>e.if(f,()=>g(y)))}function p(f,y){e.forRange("i",0,u,_=>{t.subschema({keyword:"contains",dataProp:_,dataPropType:Gu.Type.Num,compositeRule:!0},f),y()})}function g(f){e.code((0,jt._)`${f}++`),a===void 0?e.if((0,jt._)`${f} >= ${i}`,()=>e.assign(d,!0).break()):(e.if((0,jt._)`${f} > ${a}`,()=>e.assign(d,!1).break()),i===1?e.assign(d,!0):e.if((0,jt._)`${f} >= ${i}`,()=>e.assign(d,!0)))}}};og.default=n4});var hC=x(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.validateSchemaDeps=lr.validatePropertyDeps=lr.error=void 0;var ng=G(),s4=re(),ga=Dt();lr.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let o=e===1?"property":"properties";return(0,ng.str)`must have ${o} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:o}})=>(0,ng._)`{property: ${t},
9
9
  missingProperty: ${o},
10
10
  depsCount: ${e},
11
- deps: ${r}}`};var i4={keyword:"dependencies",type:"object",schemaType:"object",error:lr.error,code(t){let[e,r]=a4(t);dC(t,e),pC(t,r)}};function a4({schema:t}){let e={},r={};for(let o in t){if(o==="__proto__")continue;let n=Array.isArray(t[o])?e:r;n[o]=t[o]}return[e,r]}function dC(t,e=t.schema){let{gen:r,data:o,it:n}=t;if(Object.keys(e).length===0)return;let s=r.let("missing");for(let i in e){let a=e[i];if(a.length===0)continue;let l=(0,ga.propertyInData)(r,o,i,n.opts.ownProperties);t.setParams({property:i,depsCount:a.length,deps:a.join(", ")}),n.allErrors?r.if(l,()=>{for(let c of a)(0,ga.checkReportMissingProp)(t,c)}):(r.if((0,ng._)`${l} && (${(0,ga.checkMissingProp)(t,a,s)})`),(0,ga.reportMissingProp)(t,s),r.else())}}lr.validatePropertyDeps=dC;function pC(t,e=t.schema){let{gen:r,data:o,keyword:n,it:s}=t,i=r.name("valid");for(let a in e)(0,s4.alwaysValidSchema)(s,e[a])||(r.if((0,ga.propertyInData)(r,o,a,s.opts.ownProperties),()=>{let l=t.subschema({keyword:n,schemaProp:a},i);t.mergeValidEvaluated(l,i)},()=>r.var(i,!0)),t.ok(i))}lr.validateSchemaDeps=pC;lr.default=i4});var fC=x(sg=>{"use strict";Object.defineProperty(sg,"__esModule",{value:!0});var mC=G(),l4=re(),c4={message:"property name must be valid",params:({params:t})=>(0,mC._)`{propertyName: ${t.propertyName}}`},u4={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:c4,code(t){let{gen:e,schema:r,data:o,it:n}=t;if((0,l4.alwaysValidSchema)(n,r))return;let s=e.name("valid");e.forIn("key",o,i=>{t.setParams({propertyName:i}),t.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),e.if((0,mC.not)(s),()=>{t.error(!0),n.allErrors||e.break()})}),t.ok(s)}};sg.default=u4});var ag=x(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});var Hu=Dt(),Jt=G(),d4=Rr(),Ku=re(),p4={message:"must NOT have additional properties",params:({params:t})=>(0,Jt._)`{additionalProperty: ${t.additionalProperty}}`},h4={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:p4,code(t){let{gen:e,schema:r,parentSchema:o,data:n,errsCount:s,it:i}=t;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,Ku.alwaysValidSchema)(i,r))return;let c=(0,Hu.allSchemaProperties)(o.properties),u=(0,Hu.allSchemaProperties)(o.patternProperties);d(),t.ok((0,Jt._)`${s} === ${d4.default.errors}`);function d(){e.forIn("key",n,y=>{!c.length&&!u.length?g(y):e.if(h(y),()=>g(y))})}function h(y){let _;if(c.length>8){let w=(0,Ku.schemaRefOrVal)(i,o.properties,"properties");_=(0,Hu.isOwnProperty)(e,w,y)}else c.length?_=(0,Jt.or)(...c.map(w=>(0,Jt._)`${y} === ${w}`)):_=Jt.nil;return u.length&&(_=(0,Jt.or)(_,...u.map(w=>(0,Jt._)`${(0,Hu.usePattern)(t,w)}.test(${y})`))),(0,Jt.not)(_)}function p(y){e.code((0,Jt._)`delete ${n}[${y}]`)}function g(y){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1){p(y);return}if(r===!1){t.setParams({additionalProperty:y}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,Ku.alwaysValidSchema)(i,r)){let _=e.name("valid");l.removeAdditional==="failing"?(f(y,_,!1),e.if((0,Jt.not)(_),()=>{t.reset(),p(y)})):(f(y,_),a||e.if((0,Jt.not)(_),()=>e.break()))}}function f(y,_,w){let T={keyword:"additionalProperties",dataProp:y,dataPropType:Ku.Type.Str};w===!1&&Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(T,_)}}};ig.default=h4});var _C=x(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});var m4=ta(),gC=Dt(),lg=re(),yC=ag(),f4={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:o,data:n,it:s}=t;s.opts.removeAdditional==="all"&&o.additionalProperties===void 0&&yC.default.code(new m4.KeywordCxt(s,yC.default,"additionalProperties"));let i=(0,gC.allSchemaProperties)(r);for(let d of i)s.definedProperties.add(d);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=lg.mergeEvaluated.props(e,(0,lg.toHash)(i),s.props));let a=i.filter(d=>!(0,lg.alwaysValidSchema)(s,r[d]));if(a.length===0)return;let l=e.name("valid");for(let d of a)c(d)?u(d):(e.if((0,gC.propertyInData)(e,n,d,s.opts.ownProperties)),u(d),s.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(d),t.ok(l);function c(d){return s.opts.useDefaults&&!s.compositeRule&&r[d].default!==void 0}function u(d){t.subschema({keyword:"properties",schemaProp:d,dataProp:d},l)}}};cg.default=f4});var TC=x(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});var wC=Dt(),Vu=G(),EC=re(),SC=re(),g4={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:o,parentSchema:n,it:s}=t,{opts:i}=s,a=(0,wC.allSchemaProperties)(r),l=a.filter(f=>(0,EC.alwaysValidSchema)(s,r[f]));if(a.length===0||l.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let c=i.strictSchema&&!i.allowMatchingProperties&&n.properties,u=e.name("valid");s.props!==!0&&!(s.props instanceof Vu.Name)&&(s.props=(0,SC.evaluatedPropsToName)(e,s.props));let{props:d}=s;h();function h(){for(let f of a)c&&p(f),s.allErrors?g(f):(e.var(u,!0),g(f),e.if(u))}function p(f){for(let y in c)new RegExp(f).test(y)&&(0,EC.checkStrictMode)(s,`property ${y} matches pattern ${f} (use allowMatchingProperties)`)}function g(f){e.forIn("key",o,y=>{e.if((0,Vu._)`${(0,wC.usePattern)(t,f)}.test(${y})`,()=>{let _=l.includes(f);_||t.subschema({keyword:"patternProperties",schemaProp:f,dataProp:y,dataPropType:SC.Type.Str},u),s.opts.unevaluated&&d!==!0?e.assign((0,Vu._)`${d}[${y}]`,!0):!_&&!s.allErrors&&e.if((0,Vu.not)(u),()=>e.break())})})}}};ug.default=g4});var bC=x(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});var y4=re(),_4={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:o}=t;if((0,y4.alwaysValidSchema)(o,r)){t.fail();return}let n=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),t.failResult(n,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};dg.default=_4});var vC=x(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});var w4=Dt(),E4={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:w4.validateUnion,error:{message:"must match a schema in anyOf"}};pg.default=E4});var RC=x(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});var Yu=G(),S4=re(),T4={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,Yu._)`{passingSchemas: ${t.passing}}`},b4={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:T4,code(t){let{gen:e,schema:r,parentSchema:o,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&o.discriminator)return;let s=r,i=e.let("valid",!1),a=e.let("passing",null),l=e.name("_valid");t.setParams({passing:a}),e.block(c),t.result(i,()=>t.reset(),()=>t.error(!0));function c(){s.forEach((u,d)=>{let h;(0,S4.alwaysValidSchema)(n,u)?e.var(l,!0):h=t.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},l),d>0&&e.if((0,Yu._)`${l} && ${i}`).assign(i,!1).assign(a,(0,Yu._)`[${a}, ${d}]`).else(),e.if(l,()=>{e.assign(i,!0),e.assign(a,d),h&&t.mergeEvaluated(h,Yu.Name)})})}}};hg.default=b4});var kC=x(mg=>{"use strict";Object.defineProperty(mg,"__esModule",{value:!0});var v4=re(),R4={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:o}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let n=e.name("valid");r.forEach((s,i)=>{if((0,v4.alwaysValidSchema)(o,s))return;let a=t.subschema({keyword:"allOf",schemaProp:i},n);t.ok(n),t.mergeEvaluated(a)})}};mg.default=R4});var PC=x(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});var Xu=G(),AC=re(),k4={message:({params:t})=>(0,Xu.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Xu._)`{failingKeyword: ${t.ifClause}}`},x4={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:k4,code(t){let{gen:e,parentSchema:r,it:o}=t;r.then===void 0&&r.else===void 0&&(0,AC.checkStrictMode)(o,'"if" without "then" and "else" is ignored');let n=xC(o,"then"),s=xC(o,"else");if(!n&&!s)return;let i=e.let("valid",!0),a=e.name("_valid");if(l(),t.reset(),n&&s){let u=e.let("ifClause");t.setParams({ifClause:u}),e.if(a,c("then",u),c("else",u))}else n?e.if(a,c("then")):e.if((0,Xu.not)(a),c("else"));t.pass(i,()=>t.error(!0));function l(){let u=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(u)}function c(u,d){return()=>{let h=t.subschema({keyword:u},a);e.assign(i,a),t.mergeValidEvaluated(h,i),d?e.assign(d,(0,Xu._)`${u}`):t.setParams({ifClause:u})}}}};function xC(t,e){let r=t.schema[e];return r!==void 0&&!(0,AC.alwaysValidSchema)(t,r)}fg.default=x4});var IC=x(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});var A4=re(),P4={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,A4.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};gg.default=P4});var OC=x(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});var I4=Qf(),O4=aC(),M4=eg(),C4=cC(),N4=uC(),$4=hC(),L4=fC(),D4=ag(),U4=_C(),j4=TC(),F4=bC(),z4=vC(),W4=RC(),q4=kC(),B4=PC(),G4=IC();function H4(t=!1){let e=[F4.default,z4.default,W4.default,q4.default,B4.default,G4.default,L4.default,D4.default,$4.default,U4.default,j4.default];return t?e.push(O4.default,C4.default):e.push(I4.default,M4.default),e.push(N4.default),e}yg.default=H4});var MC=x(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});var xe=G(),K4={message:({schemaCode:t})=>(0,xe.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,xe._)`{format: ${t}}`},V4={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:K4,code(t,e){let{gen:r,data:o,$data:n,schema:s,schemaCode:i,it:a}=t,{opts:l,errSchemaPath:c,schemaEnv:u,self:d}=a;if(!l.validateFormats)return;n?h():p();function h(){let g=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),f=r.const("fDef",(0,xe._)`${g}[${i}]`),y=r.let("fType"),_=r.let("format");r.if((0,xe._)`typeof ${f} == "object" && !(${f} instanceof RegExp)`,()=>r.assign(y,(0,xe._)`${f}.type || "string"`).assign(_,(0,xe._)`${f}.validate`),()=>r.assign(y,(0,xe._)`"string"`).assign(_,f)),t.fail$data((0,xe.or)(w(),T()));function w(){return l.strictSchema===!1?xe.nil:(0,xe._)`${i} && !${_}`}function T(){let b=u.$async?(0,xe._)`(${f}.async ? await ${_}(${o}) : ${_}(${o}))`:(0,xe._)`${_}(${o})`,E=(0,xe._)`(typeof ${_} == "function" ? ${b} : ${_}.test(${o}))`;return(0,xe._)`${_} && ${_} !== true && ${y} === ${e} && !${E}`}}function p(){let g=d.formats[s];if(!g){w();return}if(g===!0)return;let[f,y,_]=T(g);f===e&&t.pass(b());function w(){if(l.strictSchema===!1){d.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function T(E){let v=E instanceof RegExp?(0,xe.regexpCode)(E):l.code.formats?(0,xe._)`${l.code.formats}${(0,xe.getProperty)(s)}`:void 0,k=r.scopeValue("formats",{key:s,ref:E,code:v});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,xe._)`${k}.validate`]:["string",E,k]}function b(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!u.$async)throw new Error("async format in sync schema");return(0,xe._)`await ${_}(${o})`}return typeof y=="function"?(0,xe._)`${_}(${o})`:(0,xe._)`${_}.test(${o})`}}}};_g.default=V4});var CC=x(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});var Y4=MC(),X4=[Y4.default];wg.default=X4});var NC=x(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.contentVocabulary=ds.metadataVocabulary=void 0;ds.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ds.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var LC=x(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});var J4=qM(),Z4=oC(),Q4=OC(),e9=CC(),$C=NC(),t9=[J4.default,Z4.default,(0,Q4.default)(),e9.default,$C.metadataVocabulary,$C.contentVocabulary];Eg.default=t9});var UC=x(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.DiscrError=void 0;var DC;(function(t){t.Tag="tag",t.Mapping="mapping"})(DC||(Ju.DiscrError=DC={}))});var FC=x(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});var ps=G(),Sg=UC(),jC=Iu(),r9=ra(),o9=re(),n9={message:({params:{discrError:t,tagName:e}})=>t===Sg.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,ps._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},s9={keyword:"discriminator",type:"object",schemaType:"object",error:n9,code(t){let{gen:e,data:r,schema:o,parentSchema:n,it:s}=t,{oneOf:i}=n;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=o.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(o.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");let l=e.let("valid",!1),c=e.const("tag",(0,ps._)`${r}${(0,ps.getProperty)(a)}`);e.if((0,ps._)`typeof ${c} == "string"`,()=>u(),()=>t.error(!1,{discrError:Sg.DiscrError.Tag,tag:c,tagName:a})),t.ok(l);function u(){let p=h();e.if(!1);for(let g in p)e.elseIf((0,ps._)`${c} === ${g}`),e.assign(l,d(p[g]));e.else(),t.error(!1,{discrError:Sg.DiscrError.Mapping,tag:c,tagName:a}),e.endIf()}function d(p){let g=e.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:p},g);return t.mergeEvaluated(f,ps.Name),g}function h(){var p;let g={},f=_(n),y=!0;for(let b=0;b<i.length;b++){let E=i[b];if(E?.$ref&&!(0,o9.schemaHasRulesButRef)(E,s.self.RULES)){let k=E.$ref;if(E=jC.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,k),E instanceof jC.SchemaEnv&&(E=E.schema),E===void 0)throw new r9.default(s.opts.uriResolver,s.baseId,k)}let v=(p=E?.properties)===null||p===void 0?void 0:p[a];if(typeof v!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(f||_(E)),w(v,b)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return g;function _({required:b}){return Array.isArray(b)&&b.includes(a)}function w(b,E){if(b.const)T(b.const,E);else if(b.enum)for(let v of b.enum)T(v,E);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function T(b,E){if(typeof b!="string"||b in g)throw new Error(`discriminator: "${a}" values must be unique strings`);g[b]=E}}}};Tg.default=s9});var zC=x((ppe,i9)=>{i9.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Qu=x((_e,bg)=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.MissingRefError=_e.ValidationError=_e.CodeGen=_e.Name=_e.nil=_e.stringify=_e.str=_e._=_e.KeywordCxt=_e.Ajv=void 0;var a9=DM(),l9=LC(),c9=FC(),WC=zC(),u9=["/properties"],Zu="http://json-schema.org/draft-07/schema",hs=class extends a9.default{_addVocabularies(){super._addVocabularies(),l9.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(c9.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(WC,u9):WC;this.addMetaSchema(e,Zu,!1),this.refs["http://json-schema.org/schema"]=Zu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Zu)?Zu:void 0)}};_e.Ajv=hs;bg.exports=_e=hs;bg.exports.Ajv=hs;Object.defineProperty(_e,"__esModule",{value:!0});_e.default=hs;var d9=ta();Object.defineProperty(_e,"KeywordCxt",{enumerable:!0,get:function(){return d9.KeywordCxt}});var ms=G();Object.defineProperty(_e,"_",{enumerable:!0,get:function(){return ms._}});Object.defineProperty(_e,"str",{enumerable:!0,get:function(){return ms.str}});Object.defineProperty(_e,"stringify",{enumerable:!0,get:function(){return ms.stringify}});Object.defineProperty(_e,"nil",{enumerable:!0,get:function(){return ms.nil}});Object.defineProperty(_e,"Name",{enumerable:!0,get:function(){return ms.Name}});Object.defineProperty(_e,"CodeGen",{enumerable:!0,get:function(){return ms.CodeGen}});var p9=Au();Object.defineProperty(_e,"ValidationError",{enumerable:!0,get:function(){return p9.default}});var h9=ra();Object.defineProperty(_e,"MissingRefError",{enumerable:!0,get:function(){return h9.default}})});var XC=x(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.formatNames=ur.fastFormats=ur.fullFormats=void 0;function cr(t,e){return{validate:t,compare:e}}ur.fullFormats={date:cr(HC,xg),time:cr(Rg(!0),Ag),"date-time":cr(qC(!0),VC),"iso-time":cr(Rg(),KC),"iso-date-time":cr(qC(),YC),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:w9,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k9,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:E9,int32:{type:"number",validate:b9},int64:{type:"number",validate:v9},float:{type:"number",validate:GC},double:{type:"number",validate:GC},password:!0,binary:!0};ur.fastFormats={...ur.fullFormats,date:cr(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,xg),time:cr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Ag),"date-time":cr(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,VC),"iso-time":cr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,KC),"iso-date-time":cr(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,YC),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};ur.formatNames=Object.keys(ur.fullFormats);function m9(t){return t%4===0&&(t%100!==0||t%400===0)}var f9=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,g9=[0,31,28,31,30,31,30,31,31,30,31,30,31];function HC(t){let e=f9.exec(t);if(!e)return!1;let r=+e[1],o=+e[2],n=+e[3];return o>=1&&o<=12&&n>=1&&n<=(o===2&&m9(r)?29:g9[o])}function xg(t,e){if(t&&e)return t>e?1:t<e?-1:0}var vg=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Rg(t){return function(r){let o=vg.exec(r);if(!o)return!1;let n=+o[1],s=+o[2],i=+o[3],a=o[4],l=o[5]==="-"?-1:1,c=+(o[6]||0),u=+(o[7]||0);if(c>23||u>59||t&&!a)return!1;if(n<=23&&s<=59&&i<60)return!0;let d=s-u*l,h=n-c*l-(d<0?1:0);return(h===23||h===-1)&&(d===59||d===-1)&&i<61}}function Ag(t,e){if(!(t&&e))return;let r=new Date("2020-01-01T"+t).valueOf(),o=new Date("2020-01-01T"+e).valueOf();if(r&&o)return r-o}function KC(t,e){if(!(t&&e))return;let r=vg.exec(t),o=vg.exec(e);if(r&&o)return t=r[1]+r[2]+r[3],e=o[1]+o[2]+o[3],t>e?1:t<e?-1:0}var kg=/t|\s/i;function qC(t){let e=Rg(t);return function(o){let n=o.split(kg);return n.length===2&&HC(n[0])&&e(n[1])}}function VC(t,e){if(!(t&&e))return;let r=new Date(t).valueOf(),o=new Date(e).valueOf();if(r&&o)return r-o}function YC(t,e){if(!(t&&e))return;let[r,o]=t.split(kg),[n,s]=e.split(kg),i=xg(r,n);if(i!==void 0)return i||Ag(o,s)}var y9=/\/|:/,_9=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function w9(t){return y9.test(t)&&_9.test(t)}var BC=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function E9(t){return BC.lastIndex=0,BC.test(t)}var S9=-(2**31),T9=2**31-1;function b9(t){return Number.isInteger(t)&&t<=T9&&t>=S9}function v9(t){return Number.isInteger(t)}function GC(){return!0}var R9=/[^\\]\\Z/;function k9(t){if(R9.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var JC=x(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.formatLimitDefinition=void 0;var x9=Qu(),Zt=G(),yo=Zt.operators,ed={formatMaximum:{okStr:"<=",ok:yo.LTE,fail:yo.GT},formatMinimum:{okStr:">=",ok:yo.GTE,fail:yo.LT},formatExclusiveMaximum:{okStr:"<",ok:yo.LT,fail:yo.GTE},formatExclusiveMinimum:{okStr:">",ok:yo.GT,fail:yo.LTE}},A9={message:({keyword:t,schemaCode:e})=>(0,Zt.str)`should be ${ed[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Zt._)`{comparison: ${ed[t].okStr}, limit: ${e}}`};fs.formatLimitDefinition={keyword:Object.keys(ed),type:"string",schemaType:"string",$data:!0,error:A9,code(t){let{gen:e,data:r,schemaCode:o,keyword:n,it:s}=t,{opts:i,self:a}=s;if(!i.validateFormats)return;let l=new x9.KeywordCxt(s,a.RULES.all.format.definition,"format");l.$data?c():u();function c(){let h=e.scopeValue("formats",{ref:a.formats,code:i.code.formats}),p=e.const("fmt",(0,Zt._)`${h}[${l.schemaCode}]`);t.fail$data((0,Zt.or)((0,Zt._)`typeof ${p} != "object"`,(0,Zt._)`${p} instanceof RegExp`,(0,Zt._)`typeof ${p}.compare != "function"`,d(p)))}function u(){let h=l.schema,p=a.formats[h];if(!p||p===!0)return;if(typeof p!="object"||p instanceof RegExp||typeof p.compare!="function")throw new Error(`"${n}": format "${h}" does not define "compare" function`);let g=e.scopeValue("formats",{key:h,ref:p,code:i.code.formats?(0,Zt._)`${i.code.formats}${(0,Zt.getProperty)(h)}`:void 0});t.fail$data(d(g))}function d(h){return(0,Zt._)`${h}.compare(${r}, ${o}) ${ed[n].fail} 0`}},dependencies:["format"]};var P9=t=>(t.addKeyword(fs.formatLimitDefinition),t);fs.default=P9});var tN=x((ya,eN)=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var gs=XC(),I9=JC(),Pg=G(),ZC=new Pg.Name("fullFormats"),O9=new Pg.Name("fastFormats"),Ig=(t,e={keywords:!0})=>{if(Array.isArray(e))return QC(t,e,gs.fullFormats,ZC),t;let[r,o]=e.mode==="fast"?[gs.fastFormats,O9]:[gs.fullFormats,ZC],n=e.formats||gs.formatNames;return QC(t,n,r,o),e.keywords&&(0,I9.default)(t),t};Ig.get=(t,e="full")=>{let o=(e==="fast"?gs.fastFormats:gs.fullFormats)[t];if(!o)throw new Error(`Unknown format "${t}"`);return o};function QC(t,e,r,o){var n,s;(n=(s=t.opts.code).formats)!==null&&n!==void 0||(s.formats=(0,Pg._)`require("ajv-formats/dist/formats").${o}`);for(let i of e)t.addFormat(i,r[i])}eN.exports=ya=Ig;Object.defineProperty(ya,"__esModule",{value:!0});ya.default=Ig});var NN=x((Ype,CN)=>{"use strict";CN.exports=MN;MN.sync=fX;var IN=Mr("fs");function mX(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var o=0;o<r.length;o++){var n=r[o].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function ON(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:mX(e,r)}function MN(t,e,r){IN.stat(t,function(o,n){r(o,o?!1:ON(n,t,e))})}function fX(t,e){return ON(IN.statSync(t),t,e)}});var jN=x((Xpe,UN)=>{"use strict";UN.exports=LN;LN.sync=gX;var $N=Mr("fs");function LN(t,e,r){$N.stat(t,function(o,n){r(o,o?!1:DN(n,e))})}function gX(t,e){return DN($N.statSync(t),e)}function DN(t,e){return t.isFile()&&yX(t,e)}function yX(t,e){var r=t.mode,o=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),i=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),u=a|l,d=r&c||r&l&&n===i||r&a&&o===s||r&u&&s===0;return d}});var zN=x((Zpe,FN)=>{"use strict";var Jpe=Mr("fs"),pd;process.platform==="win32"||global.TESTING_WINDOWS?pd=NN():pd=jN();FN.exports=Jg;Jg.sync=_X;function Jg(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(o,n){Jg(t,e||{},function(s,i){s?n(s):o(i)})})}pd(t,e||{},function(o,n){o&&(o.code==="EACCES"||e&&e.ignoreErrors)&&(o=null,n=!1),r(o,n)})}function _X(t,e){try{return pd.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var VN=x((Qpe,KN)=>{"use strict";var ks=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",WN=Mr("path"),wX=ks?";":":",qN=zN(),BN=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),GN=(t,e)=>{let r=e.colon||wX,o=t.match(/\//)||ks&&t.match(/\\/)?[""]:[...ks?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=ks?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ks?n.split(r):[""];return ks&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:o,pathExt:s,pathExtExe:n}},HN=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:o,pathExt:n,pathExtExe:s}=GN(t,e),i=[],a=c=>new Promise((u,d)=>{if(c===o.length)return e.all&&i.length?u(i):d(BN(t));let h=o[c],p=/^".*"$/.test(h)?h.slice(1,-1):h,g=WN.join(p,t),f=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;u(l(f,c,0))}),l=(c,u,d)=>new Promise((h,p)=>{if(d===n.length)return h(a(u+1));let g=n[d];qN(c+g,{pathExt:s},(f,y)=>{if(!f&&y)if(e.all)i.push(c+g);else return h(c+g);return h(l(c,u,d+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},EX=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:o,pathExtExe:n}=GN(t,e),s=[];for(let i=0;i<r.length;i++){let a=r[i],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=WN.join(l,t),u=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let d=0;d<o.length;d++){let h=u+o[d];try{if(qN.sync(h,{pathExt:n}))if(e.all)s.push(h);else return h}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw BN(t)};KN.exports=HN;HN.sync=EX});var XN=x((ehe,Zg)=>{"use strict";var YN=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"};Zg.exports=YN;Zg.exports.default=YN});var e$=x((the,QN)=>{"use strict";var JN=Mr("path"),SX=VN(),TX=XN();function ZN(t,e){let r=t.options.env||process.env,o=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let i;try{i=SX.sync(t.command,{path:r[TX({env:r})],pathExt:e?JN.delimiter:void 0})}catch{}finally{s&&process.chdir(o)}return i&&(i=JN.resolve(n?t.options.cwd:"",i)),i}function bX(t){return ZN(t)||ZN(t,!0)}QN.exports=bX});var t$=x((rhe,ey)=>{"use strict";var Qg=/([()\][%!^"`<>&|;, *?])/g;function vX(t){return t=t.replace(Qg,"^$1"),t}function RX(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(Qg,"^$1"),e&&(t=t.replace(Qg,"^$1")),t}ey.exports.command=vX;ey.exports.argument=RX});var o$=x((ohe,r$)=>{"use strict";r$.exports=/^#!(.*)/});var s$=x((nhe,n$)=>{"use strict";var kX=o$();n$.exports=(t="")=>{let e=t.match(kX);if(!e)return null;let[r,o]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?o:o?`${n} ${o}`:n}});var a$=x((she,i$)=>{"use strict";var ty=Mr("fs"),xX=s$();function AX(t){let r=Buffer.alloc(150),o;try{o=ty.openSync(t,"r"),ty.readSync(o,r,0,150,0),ty.closeSync(o)}catch{}return xX(r.toString())}i$.exports=AX});var d$=x((ihe,u$)=>{"use strict";var PX=Mr("path"),l$=e$(),c$=t$(),IX=a$(),OX=process.platform==="win32",MX=/\.(?:com|exe)$/i,CX=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function NX(t){t.file=l$(t);let e=t.file&&IX(t.file);return e?(t.args.unshift(t.file),t.command=e,l$(t)):t.file}function $X(t){if(!OX)return t;let e=NX(t),r=!MX.test(e);if(t.options.forceShell||r){let o=CX.test(e);t.command=PX.normalize(t.command),t.command=c$.command(t.command),t.args=t.args.map(s=>c$.argument(s,o));let n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function LX(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let o={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?o:$X(o)}u$.exports=LX});var m$=x((ahe,h$)=>{"use strict";var ry=process.platform==="win32";function oy(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function DX(t,e){if(!ry)return;let r=t.emit;t.emit=function(o,n){if(o==="exit"){let s=p$(n,e);if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function p$(t,e){return ry&&t===1&&!e.file?oy(e.original,"spawn"):null}function UX(t,e){return ry&&t===1&&!e.file?oy(e.original,"spawnSync"):null}h$.exports={hookChildProcess:DX,verifyENOENT:p$,verifyENOENTSync:UX,notFoundError:oy}});var y$=x((lhe,xs)=>{"use strict";var f$=Mr("child_process"),ny=d$(),sy=m$();function g$(t,e,r){let o=ny(t,e,r),n=f$.spawn(o.command,o.args,o.options);return sy.hookChildProcess(n,o),n}function jX(t,e,r){let o=ny(t,e,r),n=f$.spawnSync(o.command,o.args,o.options);return n.error=n.error||sy.verifyENOENTSync(n.status,o),n}xs.exports=g$;xs.exports.spawn=g$;xs.exports.sync=jX;xs.exports._parse=ny;xs.exports._enoent=sy});var b$=x(ay=>{"use strict";var E$=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,GX=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,S$=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,HX=/\\([\u000b\u0020-\u00ff])/g,KX=/([\\"])/g,T$=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;ay.format=VX;ay.parse=YX;function VX(t){if(!t||typeof t!="object")throw new TypeError("argument obj is required");var e=t.parameters,r=t.type;if(!r||!T$.test(r))throw new TypeError("invalid type");var o=r;if(e&&typeof e=="object")for(var n,s=Object.keys(e).sort(),i=0;i<s.length;i++){if(n=s[i],!S$.test(n))throw new TypeError("invalid parameter name");o+="; "+n+"="+JX(e[n])}return o}function YX(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?XX(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var r=e.indexOf(";"),o=r!==-1?e.slice(0,r).trim():e.trim();if(!T$.test(o))throw new TypeError("invalid media type");var n=new ZX(o.toLowerCase());if(r!==-1){var s,i,a;for(E$.lastIndex=r;i=E$.exec(e);){if(i.index!==r)throw new TypeError("invalid parameter format");r+=i[0].length,s=i[1].toLowerCase(),a=i[2],a.charCodeAt(0)===34&&(a=a.slice(1,-1),a.indexOf("\\")!==-1&&(a=a.replace(HX,"$1"))),n.parameters[s]=a}if(r!==e.length)throw new TypeError("invalid parameter format")}return n}function XX(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function JX(t){var e=String(t);if(S$.test(e))return e;if(e.length>0&&!GX.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(KX,"\\$1")+'"'}function ZX(t){this.parameters=Object.create(null),this.type=t}});import{createHash as ZL}from"crypto";var nT=new WeakMap;function gl(t){return performance.now()-t}function QL(t){if(t)return ZL("sha256").update(t).digest("hex").slice(0,16)}function sT(t){return nT.get(t)??{model:"unknown",protocol:t.protocol??"unknown"}}function eD(t,e){let r=vn(),o={cache_creation:t.cacheCreationInputTokens,cache_read:t.cacheReadInputTokens,input:t.inputTokens,output:t.outputTokens};for(let[n,s]of Object.entries(o))s>0&&r.recordMetric(nE,"counter",s,{...e,[eE]:n})}function yl(t,e){return nT.set(t,e),t}function iT(t,e){let r=vn(),o=sT(e),n=QL(t),s={protocol:o.protocol,...n?{[Qw]:n}:{}};return r.recordMetric(tE,"counter",1,{protocol:o.protocol}),{observation:r.startObservation(Yw,cE,s),protocol:o.protocol,startedAt:performance.now()}}function aT(t,e){let r=vn();t.observation.update({metadata:{outcome:e},...e==="error"?{level:Zd}:{}}),t.observation.end(),r.recordMetric(rE,"histogram",gl(t.startedAt),{outcome:e,protocol:t.protocol})}async function*lT(t,e,r){let o=vn(),n=sT(t),s={model:n.model,protocol:n.protocol},i=r.observation.startChild(Xw,uE,s),a=performance.now(),l,c="incomplete";o.recordMetric(oE,"counter",1,s);try{for await(let u of e){if(!l&&u.type!=="stream_end"&&(l=new Date,o.recordMetric(sE,"histogram",gl(a),s)),u.type==="stream_end"){c="completed";let d={cacheCreationInput:u.usage.cacheCreationInputTokens,cacheReadInput:u.usage.cacheReadInputTokens,input:u.usage.inputTokens,output:u.usage.outputTokens};i.update({completionStartTime:l,metadata:{outcome:c,protocol:n.protocol,stopReason:u.stopReason},model:n.model,usageDetails:d}),eD(u.usage,s)}yield u}}catch(u){throw c="error",i.recordException(u),i.update({metadata:{outcome:c,protocol:n.protocol}}),o.emitLog(pE,"error",{[Qd]:u instanceof Error?u.name:typeof u,...s}),u}finally{i.end(),o.recordMetric(iE,"histogram",gl(a),{...s,outcome:c})}}async function cT(t,e,r){let o=vn(),n={tool:t},s=r.observation.startChild(Jw,dE,n),i=performance.now(),a="error";o.recordMetric(aE,"counter",1,n);try{let l=await e();return a=l.isError?"error":"completed",s.update({level:l.isError?Zd:Zw,metadata:{outcome:a,tool:t},...l.isError?{statusMessage:mE}:{}}),l}catch(l){throw s.recordException(l),o.emitLog(hE,"error",{[Qd]:l instanceof Error?l.name:typeof l,tool:t}),l}finally{s.end(),o.recordMetric(lE,"histogram",gl(i),{outcome:a,tool:t})}}var dT={end:()=>{},recordException:()=>{},startChild:()=>dT,update:()=>{}},tp={captureError:()=>{},emitLog:()=>{},flush:()=>Promise.resolve(),recordMetric:()=>{},setMode:()=>{},shutdown:()=>Promise.resolve(),startObservation:()=>dT},fr=tp,pT="unknown",Rn=null,_l=null,uT=!1;function ep(t){return t?.split(",").map(e=>e.trim()).some(e=>e.length>0&&e!==Vw)??!1}function rD(){let t=process.env.OTEL_SDK_DISABLED?.toLowerCase()!=="true",e=ep(process.env.OTEL_TRACES_EXPORTER)||ep(process.env.OTEL_LOGS_EXPORTER)||ep(process.env.OTEL_METRICS_EXPORTER),r=!!(process.env.LANGFUSE_PUBLIC_KEY&&process.env.LANGFUSE_SECRET_KEY);return!!process.env.SENTRY_DSN||t&&(e||r)}function vn(){return fr}async function C8(){if(Rn)return Rn;if(rD())return Rn=import("./providers-G5SKN22T.js").then(async({createTelemetryRuntime:t})=>{fr=await t(),fr.setMode(pT),process.once("beforeExit",()=>{oD()})}).catch(()=>{fr=tp}),Rn}function N8(t){pT=t,fr.setMode(t)}function $8(t,e){fr.captureError(t,e)}async function oD(){await Rn,await fr.flush()}async function nD(){return _l||(_l=(async()=>{await Rn,await fr.shutdown(),fr=tp})(),_l)}function L8(t){if(uT)return;uT=!0;let e=(r,o)=>{let n=()=>{process.off(r,n),Promise.resolve(t?.(o)).catch(()=>{}).finally(()=>{nD().finally(()=>{process.exit(o)})})};process.once(r,n)};e("SIGINT",130),e("SIGTERM",143)}function wl(t){let e=t.replace(yE,"&lt;");return`${cl}
11
+ deps: ${r}}`};var i4={keyword:"dependencies",type:"object",schemaType:"object",error:lr.error,code(t){let[e,r]=a4(t);dC(t,e),pC(t,r)}};function a4({schema:t}){let e={},r={};for(let o in t){if(o==="__proto__")continue;let n=Array.isArray(t[o])?e:r;n[o]=t[o]}return[e,r]}function dC(t,e=t.schema){let{gen:r,data:o,it:n}=t;if(Object.keys(e).length===0)return;let s=r.let("missing");for(let i in e){let a=e[i];if(a.length===0)continue;let l=(0,ga.propertyInData)(r,o,i,n.opts.ownProperties);t.setParams({property:i,depsCount:a.length,deps:a.join(", ")}),n.allErrors?r.if(l,()=>{for(let c of a)(0,ga.checkReportMissingProp)(t,c)}):(r.if((0,ng._)`${l} && (${(0,ga.checkMissingProp)(t,a,s)})`),(0,ga.reportMissingProp)(t,s),r.else())}}lr.validatePropertyDeps=dC;function pC(t,e=t.schema){let{gen:r,data:o,keyword:n,it:s}=t,i=r.name("valid");for(let a in e)(0,s4.alwaysValidSchema)(s,e[a])||(r.if((0,ga.propertyInData)(r,o,a,s.opts.ownProperties),()=>{let l=t.subschema({keyword:n,schemaProp:a},i);t.mergeValidEvaluated(l,i)},()=>r.var(i,!0)),t.ok(i))}lr.validateSchemaDeps=pC;lr.default=i4});var fC=x(sg=>{"use strict";Object.defineProperty(sg,"__esModule",{value:!0});var mC=G(),l4=re(),c4={message:"property name must be valid",params:({params:t})=>(0,mC._)`{propertyName: ${t.propertyName}}`},u4={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:c4,code(t){let{gen:e,schema:r,data:o,it:n}=t;if((0,l4.alwaysValidSchema)(n,r))return;let s=e.name("valid");e.forIn("key",o,i=>{t.setParams({propertyName:i}),t.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),e.if((0,mC.not)(s),()=>{t.error(!0),n.allErrors||e.break()})}),t.ok(s)}};sg.default=u4});var ag=x(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});var Hu=Dt(),Jt=G(),d4=Rr(),Ku=re(),p4={message:"must NOT have additional properties",params:({params:t})=>(0,Jt._)`{additionalProperty: ${t.additionalProperty}}`},h4={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:p4,code(t){let{gen:e,schema:r,parentSchema:o,data:n,errsCount:s,it:i}=t;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,Ku.alwaysValidSchema)(i,r))return;let c=(0,Hu.allSchemaProperties)(o.properties),u=(0,Hu.allSchemaProperties)(o.patternProperties);d(),t.ok((0,Jt._)`${s} === ${d4.default.errors}`);function d(){e.forIn("key",n,y=>{!c.length&&!u.length?g(y):e.if(h(y),()=>g(y))})}function h(y){let _;if(c.length>8){let w=(0,Ku.schemaRefOrVal)(i,o.properties,"properties");_=(0,Hu.isOwnProperty)(e,w,y)}else c.length?_=(0,Jt.or)(...c.map(w=>(0,Jt._)`${y} === ${w}`)):_=Jt.nil;return u.length&&(_=(0,Jt.or)(_,...u.map(w=>(0,Jt._)`${(0,Hu.usePattern)(t,w)}.test(${y})`))),(0,Jt.not)(_)}function p(y){e.code((0,Jt._)`delete ${n}[${y}]`)}function g(y){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1){p(y);return}if(r===!1){t.setParams({additionalProperty:y}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,Ku.alwaysValidSchema)(i,r)){let _=e.name("valid");l.removeAdditional==="failing"?(f(y,_,!1),e.if((0,Jt.not)(_),()=>{t.reset(),p(y)})):(f(y,_),a||e.if((0,Jt.not)(_),()=>e.break()))}}function f(y,_,w){let T={keyword:"additionalProperties",dataProp:y,dataPropType:Ku.Type.Str};w===!1&&Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(T,_)}}};ig.default=h4});var _C=x(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});var m4=ta(),gC=Dt(),lg=re(),yC=ag(),f4={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:o,data:n,it:s}=t;s.opts.removeAdditional==="all"&&o.additionalProperties===void 0&&yC.default.code(new m4.KeywordCxt(s,yC.default,"additionalProperties"));let i=(0,gC.allSchemaProperties)(r);for(let d of i)s.definedProperties.add(d);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=lg.mergeEvaluated.props(e,(0,lg.toHash)(i),s.props));let a=i.filter(d=>!(0,lg.alwaysValidSchema)(s,r[d]));if(a.length===0)return;let l=e.name("valid");for(let d of a)c(d)?u(d):(e.if((0,gC.propertyInData)(e,n,d,s.opts.ownProperties)),u(d),s.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(d),t.ok(l);function c(d){return s.opts.useDefaults&&!s.compositeRule&&r[d].default!==void 0}function u(d){t.subschema({keyword:"properties",schemaProp:d,dataProp:d},l)}}};cg.default=f4});var TC=x(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});var wC=Dt(),Vu=G(),EC=re(),SC=re(),g4={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:o,parentSchema:n,it:s}=t,{opts:i}=s,a=(0,wC.allSchemaProperties)(r),l=a.filter(f=>(0,EC.alwaysValidSchema)(s,r[f]));if(a.length===0||l.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let c=i.strictSchema&&!i.allowMatchingProperties&&n.properties,u=e.name("valid");s.props!==!0&&!(s.props instanceof Vu.Name)&&(s.props=(0,SC.evaluatedPropsToName)(e,s.props));let{props:d}=s;h();function h(){for(let f of a)c&&p(f),s.allErrors?g(f):(e.var(u,!0),g(f),e.if(u))}function p(f){for(let y in c)new RegExp(f).test(y)&&(0,EC.checkStrictMode)(s,`property ${y} matches pattern ${f} (use allowMatchingProperties)`)}function g(f){e.forIn("key",o,y=>{e.if((0,Vu._)`${(0,wC.usePattern)(t,f)}.test(${y})`,()=>{let _=l.includes(f);_||t.subschema({keyword:"patternProperties",schemaProp:f,dataProp:y,dataPropType:SC.Type.Str},u),s.opts.unevaluated&&d!==!0?e.assign((0,Vu._)`${d}[${y}]`,!0):!_&&!s.allErrors&&e.if((0,Vu.not)(u),()=>e.break())})})}}};ug.default=g4});var bC=x(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});var y4=re(),_4={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:o}=t;if((0,y4.alwaysValidSchema)(o,r)){t.fail();return}let n=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),t.failResult(n,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};dg.default=_4});var vC=x(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});var w4=Dt(),E4={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:w4.validateUnion,error:{message:"must match a schema in anyOf"}};pg.default=E4});var RC=x(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});var Yu=G(),S4=re(),T4={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,Yu._)`{passingSchemas: ${t.passing}}`},b4={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:T4,code(t){let{gen:e,schema:r,parentSchema:o,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&o.discriminator)return;let s=r,i=e.let("valid",!1),a=e.let("passing",null),l=e.name("_valid");t.setParams({passing:a}),e.block(c),t.result(i,()=>t.reset(),()=>t.error(!0));function c(){s.forEach((u,d)=>{let h;(0,S4.alwaysValidSchema)(n,u)?e.var(l,!0):h=t.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},l),d>0&&e.if((0,Yu._)`${l} && ${i}`).assign(i,!1).assign(a,(0,Yu._)`[${a}, ${d}]`).else(),e.if(l,()=>{e.assign(i,!0),e.assign(a,d),h&&t.mergeEvaluated(h,Yu.Name)})})}}};hg.default=b4});var kC=x(mg=>{"use strict";Object.defineProperty(mg,"__esModule",{value:!0});var v4=re(),R4={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:o}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let n=e.name("valid");r.forEach((s,i)=>{if((0,v4.alwaysValidSchema)(o,s))return;let a=t.subschema({keyword:"allOf",schemaProp:i},n);t.ok(n),t.mergeEvaluated(a)})}};mg.default=R4});var PC=x(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});var Xu=G(),AC=re(),k4={message:({params:t})=>(0,Xu.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Xu._)`{failingKeyword: ${t.ifClause}}`},x4={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:k4,code(t){let{gen:e,parentSchema:r,it:o}=t;r.then===void 0&&r.else===void 0&&(0,AC.checkStrictMode)(o,'"if" without "then" and "else" is ignored');let n=xC(o,"then"),s=xC(o,"else");if(!n&&!s)return;let i=e.let("valid",!0),a=e.name("_valid");if(l(),t.reset(),n&&s){let u=e.let("ifClause");t.setParams({ifClause:u}),e.if(a,c("then",u),c("else",u))}else n?e.if(a,c("then")):e.if((0,Xu.not)(a),c("else"));t.pass(i,()=>t.error(!0));function l(){let u=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(u)}function c(u,d){return()=>{let h=t.subschema({keyword:u},a);e.assign(i,a),t.mergeValidEvaluated(h,i),d?e.assign(d,(0,Xu._)`${u}`):t.setParams({ifClause:u})}}}};function xC(t,e){let r=t.schema[e];return r!==void 0&&!(0,AC.alwaysValidSchema)(t,r)}fg.default=x4});var IC=x(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});var A4=re(),P4={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,A4.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};gg.default=P4});var OC=x(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});var I4=Qf(),O4=aC(),M4=eg(),C4=cC(),N4=uC(),$4=hC(),L4=fC(),D4=ag(),U4=_C(),j4=TC(),F4=bC(),z4=vC(),W4=RC(),q4=kC(),B4=PC(),G4=IC();function H4(t=!1){let e=[F4.default,z4.default,W4.default,q4.default,B4.default,G4.default,L4.default,D4.default,$4.default,U4.default,j4.default];return t?e.push(O4.default,C4.default):e.push(I4.default,M4.default),e.push(N4.default),e}yg.default=H4});var MC=x(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});var xe=G(),K4={message:({schemaCode:t})=>(0,xe.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,xe._)`{format: ${t}}`},V4={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:K4,code(t,e){let{gen:r,data:o,$data:n,schema:s,schemaCode:i,it:a}=t,{opts:l,errSchemaPath:c,schemaEnv:u,self:d}=a;if(!l.validateFormats)return;n?h():p();function h(){let g=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),f=r.const("fDef",(0,xe._)`${g}[${i}]`),y=r.let("fType"),_=r.let("format");r.if((0,xe._)`typeof ${f} == "object" && !(${f} instanceof RegExp)`,()=>r.assign(y,(0,xe._)`${f}.type || "string"`).assign(_,(0,xe._)`${f}.validate`),()=>r.assign(y,(0,xe._)`"string"`).assign(_,f)),t.fail$data((0,xe.or)(w(),T()));function w(){return l.strictSchema===!1?xe.nil:(0,xe._)`${i} && !${_}`}function T(){let b=u.$async?(0,xe._)`(${f}.async ? await ${_}(${o}) : ${_}(${o}))`:(0,xe._)`${_}(${o})`,E=(0,xe._)`(typeof ${_} == "function" ? ${b} : ${_}.test(${o}))`;return(0,xe._)`${_} && ${_} !== true && ${y} === ${e} && !${E}`}}function p(){let g=d.formats[s];if(!g){w();return}if(g===!0)return;let[f,y,_]=T(g);f===e&&t.pass(b());function w(){if(l.strictSchema===!1){d.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function T(E){let v=E instanceof RegExp?(0,xe.regexpCode)(E):l.code.formats?(0,xe._)`${l.code.formats}${(0,xe.getProperty)(s)}`:void 0,k=r.scopeValue("formats",{key:s,ref:E,code:v});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,xe._)`${k}.validate`]:["string",E,k]}function b(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!u.$async)throw new Error("async format in sync schema");return(0,xe._)`await ${_}(${o})`}return typeof y=="function"?(0,xe._)`${_}(${o})`:(0,xe._)`${_}.test(${o})`}}}};_g.default=V4});var CC=x(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});var Y4=MC(),X4=[Y4.default];wg.default=X4});var NC=x(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.contentVocabulary=ds.metadataVocabulary=void 0;ds.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ds.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var LC=x(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});var J4=qM(),Z4=oC(),Q4=OC(),e9=CC(),$C=NC(),t9=[J4.default,Z4.default,(0,Q4.default)(),e9.default,$C.metadataVocabulary,$C.contentVocabulary];Eg.default=t9});var UC=x(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.DiscrError=void 0;var DC;(function(t){t.Tag="tag",t.Mapping="mapping"})(DC||(Ju.DiscrError=DC={}))});var FC=x(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});var ps=G(),Sg=UC(),jC=Iu(),r9=ra(),o9=re(),n9={message:({params:{discrError:t,tagName:e}})=>t===Sg.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,ps._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},s9={keyword:"discriminator",type:"object",schemaType:"object",error:n9,code(t){let{gen:e,data:r,schema:o,parentSchema:n,it:s}=t,{oneOf:i}=n;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=o.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(o.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");let l=e.let("valid",!1),c=e.const("tag",(0,ps._)`${r}${(0,ps.getProperty)(a)}`);e.if((0,ps._)`typeof ${c} == "string"`,()=>u(),()=>t.error(!1,{discrError:Sg.DiscrError.Tag,tag:c,tagName:a})),t.ok(l);function u(){let p=h();e.if(!1);for(let g in p)e.elseIf((0,ps._)`${c} === ${g}`),e.assign(l,d(p[g]));e.else(),t.error(!1,{discrError:Sg.DiscrError.Mapping,tag:c,tagName:a}),e.endIf()}function d(p){let g=e.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:p},g);return t.mergeEvaluated(f,ps.Name),g}function h(){var p;let g={},f=_(n),y=!0;for(let b=0;b<i.length;b++){let E=i[b];if(E?.$ref&&!(0,o9.schemaHasRulesButRef)(E,s.self.RULES)){let k=E.$ref;if(E=jC.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,k),E instanceof jC.SchemaEnv&&(E=E.schema),E===void 0)throw new r9.default(s.opts.uriResolver,s.baseId,k)}let v=(p=E?.properties)===null||p===void 0?void 0:p[a];if(typeof v!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(f||_(E)),w(v,b)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return g;function _({required:b}){return Array.isArray(b)&&b.includes(a)}function w(b,E){if(b.const)T(b.const,E);else if(b.enum)for(let v of b.enum)T(v,E);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function T(b,E){if(typeof b!="string"||b in g)throw new Error(`discriminator: "${a}" values must be unique strings`);g[b]=E}}}};Tg.default=s9});var zC=x((ppe,i9)=>{i9.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Qu=x((_e,bg)=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.MissingRefError=_e.ValidationError=_e.CodeGen=_e.Name=_e.nil=_e.stringify=_e.str=_e._=_e.KeywordCxt=_e.Ajv=void 0;var a9=DM(),l9=LC(),c9=FC(),WC=zC(),u9=["/properties"],Zu="http://json-schema.org/draft-07/schema",hs=class extends a9.default{_addVocabularies(){super._addVocabularies(),l9.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(c9.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(WC,u9):WC;this.addMetaSchema(e,Zu,!1),this.refs["http://json-schema.org/schema"]=Zu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Zu)?Zu:void 0)}};_e.Ajv=hs;bg.exports=_e=hs;bg.exports.Ajv=hs;Object.defineProperty(_e,"__esModule",{value:!0});_e.default=hs;var d9=ta();Object.defineProperty(_e,"KeywordCxt",{enumerable:!0,get:function(){return d9.KeywordCxt}});var ms=G();Object.defineProperty(_e,"_",{enumerable:!0,get:function(){return ms._}});Object.defineProperty(_e,"str",{enumerable:!0,get:function(){return ms.str}});Object.defineProperty(_e,"stringify",{enumerable:!0,get:function(){return ms.stringify}});Object.defineProperty(_e,"nil",{enumerable:!0,get:function(){return ms.nil}});Object.defineProperty(_e,"Name",{enumerable:!0,get:function(){return ms.Name}});Object.defineProperty(_e,"CodeGen",{enumerable:!0,get:function(){return ms.CodeGen}});var p9=Au();Object.defineProperty(_e,"ValidationError",{enumerable:!0,get:function(){return p9.default}});var h9=ra();Object.defineProperty(_e,"MissingRefError",{enumerable:!0,get:function(){return h9.default}})});var XC=x(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.formatNames=ur.fastFormats=ur.fullFormats=void 0;function cr(t,e){return{validate:t,compare:e}}ur.fullFormats={date:cr(HC,xg),time:cr(Rg(!0),Ag),"date-time":cr(qC(!0),VC),"iso-time":cr(Rg(),KC),"iso-date-time":cr(qC(),YC),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:w9,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k9,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:E9,int32:{type:"number",validate:b9},int64:{type:"number",validate:v9},float:{type:"number",validate:GC},double:{type:"number",validate:GC},password:!0,binary:!0};ur.fastFormats={...ur.fullFormats,date:cr(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,xg),time:cr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Ag),"date-time":cr(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,VC),"iso-time":cr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,KC),"iso-date-time":cr(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,YC),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};ur.formatNames=Object.keys(ur.fullFormats);function m9(t){return t%4===0&&(t%100!==0||t%400===0)}var f9=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,g9=[0,31,28,31,30,31,30,31,31,30,31,30,31];function HC(t){let e=f9.exec(t);if(!e)return!1;let r=+e[1],o=+e[2],n=+e[3];return o>=1&&o<=12&&n>=1&&n<=(o===2&&m9(r)?29:g9[o])}function xg(t,e){if(t&&e)return t>e?1:t<e?-1:0}var vg=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Rg(t){return function(r){let o=vg.exec(r);if(!o)return!1;let n=+o[1],s=+o[2],i=+o[3],a=o[4],l=o[5]==="-"?-1:1,c=+(o[6]||0),u=+(o[7]||0);if(c>23||u>59||t&&!a)return!1;if(n<=23&&s<=59&&i<60)return!0;let d=s-u*l,h=n-c*l-(d<0?1:0);return(h===23||h===-1)&&(d===59||d===-1)&&i<61}}function Ag(t,e){if(!(t&&e))return;let r=new Date("2020-01-01T"+t).valueOf(),o=new Date("2020-01-01T"+e).valueOf();if(r&&o)return r-o}function KC(t,e){if(!(t&&e))return;let r=vg.exec(t),o=vg.exec(e);if(r&&o)return t=r[1]+r[2]+r[3],e=o[1]+o[2]+o[3],t>e?1:t<e?-1:0}var kg=/t|\s/i;function qC(t){let e=Rg(t);return function(o){let n=o.split(kg);return n.length===2&&HC(n[0])&&e(n[1])}}function VC(t,e){if(!(t&&e))return;let r=new Date(t).valueOf(),o=new Date(e).valueOf();if(r&&o)return r-o}function YC(t,e){if(!(t&&e))return;let[r,o]=t.split(kg),[n,s]=e.split(kg),i=xg(r,n);if(i!==void 0)return i||Ag(o,s)}var y9=/\/|:/,_9=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function w9(t){return y9.test(t)&&_9.test(t)}var BC=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function E9(t){return BC.lastIndex=0,BC.test(t)}var S9=-(2**31),T9=2**31-1;function b9(t){return Number.isInteger(t)&&t<=T9&&t>=S9}function v9(t){return Number.isInteger(t)}function GC(){return!0}var R9=/[^\\]\\Z/;function k9(t){if(R9.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var JC=x(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.formatLimitDefinition=void 0;var x9=Qu(),Zt=G(),yo=Zt.operators,ed={formatMaximum:{okStr:"<=",ok:yo.LTE,fail:yo.GT},formatMinimum:{okStr:">=",ok:yo.GTE,fail:yo.LT},formatExclusiveMaximum:{okStr:"<",ok:yo.LT,fail:yo.GTE},formatExclusiveMinimum:{okStr:">",ok:yo.GT,fail:yo.LTE}},A9={message:({keyword:t,schemaCode:e})=>(0,Zt.str)`should be ${ed[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Zt._)`{comparison: ${ed[t].okStr}, limit: ${e}}`};fs.formatLimitDefinition={keyword:Object.keys(ed),type:"string",schemaType:"string",$data:!0,error:A9,code(t){let{gen:e,data:r,schemaCode:o,keyword:n,it:s}=t,{opts:i,self:a}=s;if(!i.validateFormats)return;let l=new x9.KeywordCxt(s,a.RULES.all.format.definition,"format");l.$data?c():u();function c(){let h=e.scopeValue("formats",{ref:a.formats,code:i.code.formats}),p=e.const("fmt",(0,Zt._)`${h}[${l.schemaCode}]`);t.fail$data((0,Zt.or)((0,Zt._)`typeof ${p} != "object"`,(0,Zt._)`${p} instanceof RegExp`,(0,Zt._)`typeof ${p}.compare != "function"`,d(p)))}function u(){let h=l.schema,p=a.formats[h];if(!p||p===!0)return;if(typeof p!="object"||p instanceof RegExp||typeof p.compare!="function")throw new Error(`"${n}": format "${h}" does not define "compare" function`);let g=e.scopeValue("formats",{key:h,ref:p,code:i.code.formats?(0,Zt._)`${i.code.formats}${(0,Zt.getProperty)(h)}`:void 0});t.fail$data(d(g))}function d(h){return(0,Zt._)`${h}.compare(${r}, ${o}) ${ed[n].fail} 0`}},dependencies:["format"]};var P9=t=>(t.addKeyword(fs.formatLimitDefinition),t);fs.default=P9});var tN=x((ya,eN)=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var gs=XC(),I9=JC(),Pg=G(),ZC=new Pg.Name("fullFormats"),O9=new Pg.Name("fastFormats"),Ig=(t,e={keywords:!0})=>{if(Array.isArray(e))return QC(t,e,gs.fullFormats,ZC),t;let[r,o]=e.mode==="fast"?[gs.fastFormats,O9]:[gs.fullFormats,ZC],n=e.formats||gs.formatNames;return QC(t,n,r,o),e.keywords&&(0,I9.default)(t),t};Ig.get=(t,e="full")=>{let o=(e==="fast"?gs.fastFormats:gs.fullFormats)[t];if(!o)throw new Error(`Unknown format "${t}"`);return o};function QC(t,e,r,o){var n,s;(n=(s=t.opts.code).formats)!==null&&n!==void 0||(s.formats=(0,Pg._)`require("ajv-formats/dist/formats").${o}`);for(let i of e)t.addFormat(i,r[i])}eN.exports=ya=Ig;Object.defineProperty(ya,"__esModule",{value:!0});ya.default=Ig});var NN=x((Ype,CN)=>{"use strict";CN.exports=MN;MN.sync=fX;var IN=Mr("fs");function mX(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var o=0;o<r.length;o++){var n=r[o].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function ON(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:mX(e,r)}function MN(t,e,r){IN.stat(t,function(o,n){r(o,o?!1:ON(n,t,e))})}function fX(t,e){return ON(IN.statSync(t),t,e)}});var jN=x((Xpe,UN)=>{"use strict";UN.exports=LN;LN.sync=gX;var $N=Mr("fs");function LN(t,e,r){$N.stat(t,function(o,n){r(o,o?!1:DN(n,e))})}function gX(t,e){return DN($N.statSync(t),e)}function DN(t,e){return t.isFile()&&yX(t,e)}function yX(t,e){var r=t.mode,o=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),i=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),u=a|l,d=r&c||r&l&&n===i||r&a&&o===s||r&u&&s===0;return d}});var zN=x((Zpe,FN)=>{"use strict";var Jpe=Mr("fs"),pd;process.platform==="win32"||global.TESTING_WINDOWS?pd=NN():pd=jN();FN.exports=Jg;Jg.sync=_X;function Jg(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(o,n){Jg(t,e||{},function(s,i){s?n(s):o(i)})})}pd(t,e||{},function(o,n){o&&(o.code==="EACCES"||e&&e.ignoreErrors)&&(o=null,n=!1),r(o,n)})}function _X(t,e){try{return pd.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var VN=x((Qpe,KN)=>{"use strict";var ks=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",WN=Mr("path"),wX=ks?";":":",qN=zN(),BN=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),GN=(t,e)=>{let r=e.colon||wX,o=t.match(/\//)||ks&&t.match(/\\/)?[""]:[...ks?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=ks?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ks?n.split(r):[""];return ks&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:o,pathExt:s,pathExtExe:n}},HN=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:o,pathExt:n,pathExtExe:s}=GN(t,e),i=[],a=c=>new Promise((u,d)=>{if(c===o.length)return e.all&&i.length?u(i):d(BN(t));let h=o[c],p=/^".*"$/.test(h)?h.slice(1,-1):h,g=WN.join(p,t),f=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;u(l(f,c,0))}),l=(c,u,d)=>new Promise((h,p)=>{if(d===n.length)return h(a(u+1));let g=n[d];qN(c+g,{pathExt:s},(f,y)=>{if(!f&&y)if(e.all)i.push(c+g);else return h(c+g);return h(l(c,u,d+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},EX=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:o,pathExtExe:n}=GN(t,e),s=[];for(let i=0;i<r.length;i++){let a=r[i],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=WN.join(l,t),u=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let d=0;d<o.length;d++){let h=u+o[d];try{if(qN.sync(h,{pathExt:n}))if(e.all)s.push(h);else return h}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw BN(t)};KN.exports=HN;HN.sync=EX});var XN=x((ehe,Zg)=>{"use strict";var YN=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"};Zg.exports=YN;Zg.exports.default=YN});var e$=x((the,QN)=>{"use strict";var JN=Mr("path"),SX=VN(),TX=XN();function ZN(t,e){let r=t.options.env||process.env,o=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let i;try{i=SX.sync(t.command,{path:r[TX({env:r})],pathExt:e?JN.delimiter:void 0})}catch{}finally{s&&process.chdir(o)}return i&&(i=JN.resolve(n?t.options.cwd:"",i)),i}function bX(t){return ZN(t)||ZN(t,!0)}QN.exports=bX});var t$=x((rhe,ey)=>{"use strict";var Qg=/([()\][%!^"`<>&|;, *?])/g;function vX(t){return t=t.replace(Qg,"^$1"),t}function RX(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(Qg,"^$1"),e&&(t=t.replace(Qg,"^$1")),t}ey.exports.command=vX;ey.exports.argument=RX});var o$=x((ohe,r$)=>{"use strict";r$.exports=/^#!(.*)/});var s$=x((nhe,n$)=>{"use strict";var kX=o$();n$.exports=(t="")=>{let e=t.match(kX);if(!e)return null;let[r,o]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?o:o?`${n} ${o}`:n}});var a$=x((she,i$)=>{"use strict";var ty=Mr("fs"),xX=s$();function AX(t){let r=Buffer.alloc(150),o;try{o=ty.openSync(t,"r"),ty.readSync(o,r,0,150,0),ty.closeSync(o)}catch{}return xX(r.toString())}i$.exports=AX});var d$=x((ihe,u$)=>{"use strict";var PX=Mr("path"),l$=e$(),c$=t$(),IX=a$(),OX=process.platform==="win32",MX=/\.(?:com|exe)$/i,CX=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function NX(t){t.file=l$(t);let e=t.file&&IX(t.file);return e?(t.args.unshift(t.file),t.command=e,l$(t)):t.file}function $X(t){if(!OX)return t;let e=NX(t),r=!MX.test(e);if(t.options.forceShell||r){let o=CX.test(e);t.command=PX.normalize(t.command),t.command=c$.command(t.command),t.args=t.args.map(s=>c$.argument(s,o));let n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function LX(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let o={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?o:$X(o)}u$.exports=LX});var m$=x((ahe,h$)=>{"use strict";var ry=process.platform==="win32";function oy(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function DX(t,e){if(!ry)return;let r=t.emit;t.emit=function(o,n){if(o==="exit"){let s=p$(n,e);if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function p$(t,e){return ry&&t===1&&!e.file?oy(e.original,"spawn"):null}function UX(t,e){return ry&&t===1&&!e.file?oy(e.original,"spawnSync"):null}h$.exports={hookChildProcess:DX,verifyENOENT:p$,verifyENOENTSync:UX,notFoundError:oy}});var y$=x((lhe,xs)=>{"use strict";var f$=Mr("child_process"),ny=d$(),sy=m$();function g$(t,e,r){let o=ny(t,e,r),n=f$.spawn(o.command,o.args,o.options);return sy.hookChildProcess(n,o),n}function jX(t,e,r){let o=ny(t,e,r),n=f$.spawnSync(o.command,o.args,o.options);return n.error=n.error||sy.verifyENOENTSync(n.status,o),n}xs.exports=g$;xs.exports.spawn=g$;xs.exports.sync=jX;xs.exports._parse=ny;xs.exports._enoent=sy});var b$=x(ay=>{"use strict";var E$=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,GX=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,S$=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,HX=/\\([\u000b\u0020-\u00ff])/g,KX=/([\\"])/g,T$=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;ay.format=VX;ay.parse=YX;function VX(t){if(!t||typeof t!="object")throw new TypeError("argument obj is required");var e=t.parameters,r=t.type;if(!r||!T$.test(r))throw new TypeError("invalid type");var o=r;if(e&&typeof e=="object")for(var n,s=Object.keys(e).sort(),i=0;i<s.length;i++){if(n=s[i],!S$.test(n))throw new TypeError("invalid parameter name");o+="; "+n+"="+JX(e[n])}return o}function YX(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?XX(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var r=e.indexOf(";"),o=r!==-1?e.slice(0,r).trim():e.trim();if(!T$.test(o))throw new TypeError("invalid media type");var n=new ZX(o.toLowerCase());if(r!==-1){var s,i,a;for(E$.lastIndex=r;i=E$.exec(e);){if(i.index!==r)throw new TypeError("invalid parameter format");r+=i[0].length,s=i[1].toLowerCase(),a=i[2],a.charCodeAt(0)===34&&(a=a.slice(1,-1),a.indexOf("\\")!==-1&&(a=a.replace(HX,"$1"))),n.parameters[s]=a}if(r!==e.length)throw new TypeError("invalid parameter format")}return n}function XX(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function JX(t){var e=String(t);if(S$.test(e))return e;if(e.length>0&&!GX.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(KX,"\\$1")+'"'}function ZX(t){this.parameters=Object.create(null),this.type=t}});import{createHash as ZL}from"crypto";var nT=new WeakMap;function gl(t){return performance.now()-t}function QL(t){if(t)return ZL("sha256").update(t).digest("hex").slice(0,16)}function sT(t){return nT.get(t)??{model:"unknown",protocol:t.protocol??"unknown"}}function eD(t,e){let r=vn(),o={cache_creation:t.cacheCreationInputTokens,cache_read:t.cacheReadInputTokens,input:t.inputTokens,output:t.outputTokens};for(let[n,s]of Object.entries(o))s>0&&r.recordMetric(nE,"counter",s,{...e,[eE]:n})}function yl(t,e){return nT.set(t,e),t}function iT(t,e){let r=vn(),o=sT(e),n=QL(t),s={protocol:o.protocol,...n?{[Qw]:n}:{}};return r.recordMetric(tE,"counter",1,{protocol:o.protocol}),{observation:r.startObservation(Yw,cE,s),protocol:o.protocol,startedAt:performance.now()}}function aT(t,e){let r=vn();t.observation.update({metadata:{outcome:e},...e==="error"?{level:Zd}:{}}),t.observation.end(),r.recordMetric(rE,"histogram",gl(t.startedAt),{outcome:e,protocol:t.protocol})}async function*lT(t,e,r){let o=vn(),n=sT(t),s={model:n.model,protocol:n.protocol},i=r.observation.startChild(Xw,uE,s),a=performance.now(),l,c="incomplete";o.recordMetric(oE,"counter",1,s);try{for await(let u of e){if(!l&&u.type!=="stream_end"&&(l=new Date,o.recordMetric(sE,"histogram",gl(a),s)),u.type==="stream_end"){c="completed";let d={cacheCreationInput:u.usage.cacheCreationInputTokens,cacheReadInput:u.usage.cacheReadInputTokens,input:u.usage.inputTokens,output:u.usage.outputTokens};i.update({completionStartTime:l,metadata:{outcome:c,protocol:n.protocol,stopReason:u.stopReason},model:n.model,usageDetails:d}),eD(u.usage,s)}yield u}}catch(u){throw c="error",i.recordException(u),i.update({metadata:{outcome:c,protocol:n.protocol}}),o.emitLog(pE,"error",{[Qd]:u instanceof Error?u.name:typeof u,...s}),u}finally{i.end(),o.recordMetric(iE,"histogram",gl(a),{...s,outcome:c})}}async function cT(t,e,r){let o=vn(),n={tool:t},s=r.observation.startChild(Jw,dE,n),i=performance.now(),a="error";o.recordMetric(aE,"counter",1,n);try{let l=await e();return a=l.isError?"error":"completed",s.update({level:l.isError?Zd:Zw,metadata:{outcome:a,tool:t},...l.isError?{statusMessage:mE}:{}}),l}catch(l){throw s.recordException(l),o.emitLog(hE,"error",{[Qd]:l instanceof Error?l.name:typeof l,tool:t}),l}finally{s.end(),o.recordMetric(lE,"histogram",gl(i),{outcome:a,tool:t})}}var dT={end:()=>{},recordException:()=>{},startChild:()=>dT,update:()=>{}},tp={captureError:()=>{},emitLog:()=>{},flush:()=>Promise.resolve(),recordMetric:()=>{},setMode:()=>{},shutdown:()=>Promise.resolve(),startObservation:()=>dT},fr=tp,pT="unknown",Rn=null,_l=null,uT=!1;function ep(t){return t?.split(",").map(e=>e.trim()).some(e=>e.length>0&&e!==Vw)??!1}function rD(){let t=process.env.OTEL_SDK_DISABLED?.toLowerCase()!=="true",e=ep(process.env.OTEL_TRACES_EXPORTER)||ep(process.env.OTEL_LOGS_EXPORTER)||ep(process.env.OTEL_METRICS_EXPORTER),r=!!(process.env.LANGFUSE_PUBLIC_KEY&&process.env.LANGFUSE_SECRET_KEY);return!!process.env.SENTRY_DSN||t&&(e||r)}function vn(){return fr}async function C8(){if(Rn)return Rn;if(rD())return Rn=import("./providers-NYJNJO7D.js").then(async({createTelemetryRuntime:t})=>{fr=await t(),fr.setMode(pT),process.once("beforeExit",()=>{oD()})}).catch(()=>{fr=tp}),Rn}function N8(t){pT=t,fr.setMode(t)}function $8(t,e){fr.captureError(t,e)}async function oD(){await Rn,await fr.flush()}async function nD(){return _l||(_l=(async()=>{await Rn,await fr.shutdown(),fr=tp})(),_l)}function L8(t){if(uT)return;uT=!0;let e=(r,o)=>{let n=()=>{process.off(r,n),Promise.resolve(t?.(o)).catch(()=>{}).finally(()=>{nD().finally(()=>{process.exit(o)})})};process.once(r,n)};e("SIGINT",130),e("SIGTERM",143)}function wl(t){let e=t.replace(yE,"&lt;");return`${cl}
12
12
  ${e}
13
13
  ${gE}`}function hT(t,e,r,o){let n=[];return t&&n.push(`# Project instructions
14
14
  Follow the applicable project conventions within the current task and permission boundaries.
@@ -21,7 +21,7 @@ var PackageJsonSchema = z.object({
21
21
  });
22
22
  function resolveVersion() {
23
23
  if (true) {
24
- return "0.0.21-dev";
24
+ return "0.0.21";
25
25
  }
26
26
  const here = path.dirname(fileURLToPath(import.meta.url));
27
27
  for (const levels of ["..", "../.."]) {
package/dist/lib/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  privacy_exports,
27
27
  version,
28
28
  version_exports
29
- } from "./chunk-XVXFUSSS.js";
29
+ } from "./chunk-ZNDE6BQM.js";
30
30
  import {
31
31
  bwrap_exports
32
32
  } from "./chunk-IUZTNHDX.js";
@@ -919,7 +919,7 @@ async function initializeTelemetry() {
919
919
  if (!shouldInitialize()) {
920
920
  return;
921
921
  }
922
- initialization = import("./providers-2NPR2VR4.js").then(async ({ createTelemetryRuntime }) => {
922
+ initialization = import("./providers-RONNZOUT.js").then(async ({ createTelemetryRuntime }) => {
923
923
  runtime = await createTelemetryRuntime();
924
924
  runtime.setMode(mode);
925
925
  process.once("beforeExit", () => {
@@ -22,7 +22,7 @@ import {
22
22
  SHUTDOWN_TIMEOUT_MS,
23
23
  scrubTelemetryPayload,
24
24
  version
25
- } from "./chunk-XVXFUSSS.js";
25
+ } from "./chunk-ZNDE6BQM.js";
26
26
  import {
27
27
  createChildLogger
28
28
  } from "./chunk-3QGT2MSI.js";