@ht-rnd/json-schema-editor 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/main.es.js +120 -114
- package/dist/lib/main.umd.js +8 -8
- package/package.json +1 -1
package/dist/lib/main.es.js
CHANGED
|
@@ -3388,8 +3388,8 @@ var vt = (e) => ke(e) && !Br(e) ? e : {
|
|
|
3388
3388
|
const me = a.valueAsNumber || l && +l;
|
|
3389
3389
|
De(K.value) || (F = me > K.value), De(te.value) || (U = me < te.value);
|
|
3390
3390
|
} else {
|
|
3391
|
-
const me = a.valueAsDate || new Date(l), he = (D) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + D),
|
|
3392
|
-
Ue(K.value) && l && (F =
|
|
3391
|
+
const me = a.valueAsDate || new Date(l), he = (D) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + D), ce = a.type == "time", Pe = a.type == "week";
|
|
3392
|
+
Ue(K.value) && l && (F = ce ? he(l) > he(K.value) : Pe ? l > K.value : me > new Date(K.value)), Ue(te.value) && l && (U = ce ? he(l) < he(te.value) : Pe ? l < te.value : me < new Date(te.value));
|
|
3393
3393
|
}
|
|
3394
3394
|
if ((F || U) && (q(!!F, K.message, te.message, Qe.max, Qe.min), !n))
|
|
3395
3395
|
return _(d[S].message), d;
|
|
@@ -3650,7 +3650,7 @@ function Wf(e = {}) {
|
|
|
3650
3650
|
name: a.mount ? k : void 0,
|
|
3651
3651
|
values: ge(o)
|
|
3652
3652
|
});
|
|
3653
|
-
},
|
|
3653
|
+
}, ce = async (k) => {
|
|
3654
3654
|
a.mount = !0;
|
|
3655
3655
|
const R = k.target;
|
|
3656
3656
|
let T = R.name, B = !0;
|
|
@@ -3781,8 +3781,8 @@ function Wf(e = {}) {
|
|
|
3781
3781
|
pattern: At(R.pattern)
|
|
3782
3782
|
} : {},
|
|
3783
3783
|
name: k,
|
|
3784
|
-
onChange:
|
|
3785
|
-
onBlur:
|
|
3784
|
+
onChange: ce,
|
|
3785
|
+
onBlur: ce,
|
|
3786
3786
|
ref: (J) => {
|
|
3787
3787
|
if (J) {
|
|
3788
3788
|
ae(k, R), T = W(n, k);
|
|
@@ -4446,7 +4446,7 @@ var Nn = {}, Qs;
|
|
|
4446
4446
|
function eo() {
|
|
4447
4447
|
return Qs || (Qs = 1, (function(e) {
|
|
4448
4448
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
4449
|
-
const t = Wr();
|
|
4449
|
+
const t = /* @__PURE__ */ Wr();
|
|
4450
4450
|
class r extends Error {
|
|
4451
4451
|
constructor(u) {
|
|
4452
4452
|
super(`CodeGen: "code" for ${u} not defined`), this.value = u.value;
|
|
@@ -4569,8 +4569,8 @@ var to;
|
|
|
4569
4569
|
function re() {
|
|
4570
4570
|
return to || (to = 1, (function(e) {
|
|
4571
4571
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
|
|
4572
|
-
const t = Wr(), r = eo();
|
|
4573
|
-
var n = Wr();
|
|
4572
|
+
const t = /* @__PURE__ */ Wr(), r = /* @__PURE__ */ eo();
|
|
4573
|
+
var n = /* @__PURE__ */ Wr();
|
|
4574
4574
|
Object.defineProperty(e, "_", { enumerable: !0, get: function() {
|
|
4575
4575
|
return n._;
|
|
4576
4576
|
} }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
|
|
@@ -4588,7 +4588,7 @@ function re() {
|
|
|
4588
4588
|
} }), Object.defineProperty(e, "Name", { enumerable: !0, get: function() {
|
|
4589
4589
|
return n.Name;
|
|
4590
4590
|
} });
|
|
4591
|
-
var s = eo();
|
|
4591
|
+
var s = /* @__PURE__ */ eo();
|
|
4592
4592
|
Object.defineProperty(e, "Scope", { enumerable: !0, get: function() {
|
|
4593
4593
|
return s.Scope;
|
|
4594
4594
|
} }), Object.defineProperty(e, "ValueScope", { enumerable: !0, get: function() {
|
|
@@ -5110,10 +5110,10 @@ function re() {
|
|
|
5110
5110
|
}
|
|
5111
5111
|
e.not = me;
|
|
5112
5112
|
const he = O(e.operators.AND);
|
|
5113
|
-
function
|
|
5113
|
+
function ce(...j) {
|
|
5114
5114
|
return j.reduce(he);
|
|
5115
5115
|
}
|
|
5116
|
-
e.and =
|
|
5116
|
+
e.and = ce;
|
|
5117
5117
|
const Pe = O(e.operators.OR);
|
|
5118
5118
|
function D(...j) {
|
|
5119
5119
|
return j.reduce(Pe);
|
|
@@ -5128,10 +5128,10 @@ function re() {
|
|
|
5128
5128
|
})(Rn)), Rn;
|
|
5129
5129
|
}
|
|
5130
5130
|
var se = {}, ro;
|
|
5131
|
-
function
|
|
5131
|
+
function ie() {
|
|
5132
5132
|
if (ro) return se;
|
|
5133
5133
|
ro = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.checkStrictMode = se.getErrorPath = se.Type = se.useFunc = se.setEvaluated = se.evaluatedPropsToName = se.mergeEvaluated = se.eachItem = se.unescapeJsonPointer = se.escapeJsonPointer = se.escapeFragment = se.unescapeFragment = se.schemaRefOrVal = se.schemaHasRulesButRef = se.schemaHasRules = se.checkUnknownRules = se.alwaysValidSchema = se.toHash = void 0;
|
|
5134
|
-
const e = re(), t = Wr();
|
|
5134
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ Wr();
|
|
5135
5135
|
function r(d) {
|
|
5136
5136
|
const $ = {};
|
|
5137
5137
|
for (const E of d)
|
|
@@ -5272,7 +5272,7 @@ var Kt = {}, no;
|
|
|
5272
5272
|
function Be() {
|
|
5273
5273
|
if (no) return Kt;
|
|
5274
5274
|
no = 1, Object.defineProperty(Kt, "__esModule", { value: !0 });
|
|
5275
|
-
const e = re(), t = {
|
|
5275
|
+
const e = /* @__PURE__ */ re(), t = {
|
|
5276
5276
|
// validation function arguments
|
|
5277
5277
|
data: new e.Name("data"),
|
|
5278
5278
|
// data passed to validation function
|
|
@@ -5307,7 +5307,7 @@ var so;
|
|
|
5307
5307
|
function cn() {
|
|
5308
5308
|
return so || (so = 1, (function(e) {
|
|
5309
5309
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
5310
|
-
const t = re(), r =
|
|
5310
|
+
const t = /* @__PURE__ */ re(), r = /* @__PURE__ */ ie(), n = /* @__PURE__ */ Be();
|
|
5311
5311
|
e.keywordError = {
|
|
5312
5312
|
message: ({ keyword: p }) => (0, t.str)`must pass "${p}" keyword validation`
|
|
5313
5313
|
}, e.keyword$DataError = {
|
|
@@ -5383,7 +5383,7 @@ var oo;
|
|
|
5383
5383
|
function nh() {
|
|
5384
5384
|
if (oo) return mt;
|
|
5385
5385
|
oo = 1, Object.defineProperty(mt, "__esModule", { value: !0 }), mt.boolOrEmptySchema = mt.topBoolOrEmptySchema = void 0;
|
|
5386
|
-
const e = cn(), t = re(), r = Be(), n = {
|
|
5386
|
+
const e = /* @__PURE__ */ cn(), t = /* @__PURE__ */ re(), r = /* @__PURE__ */ Be(), n = {
|
|
5387
5387
|
message: "boolean schema is false"
|
|
5388
5388
|
};
|
|
5389
5389
|
function s(i) {
|
|
@@ -5460,7 +5460,7 @@ var co;
|
|
|
5460
5460
|
function Yr() {
|
|
5461
5461
|
if (co) return je;
|
|
5462
5462
|
co = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.reportTypeError = je.checkDataTypes = je.checkDataType = je.coerceAndCheckDataType = je.getJSONTypes = je.getSchemaTypes = je.DataType = void 0;
|
|
5463
|
-
const e = _i(), t = gi(), r = cn(), n = re(), s =
|
|
5463
|
+
const e = /* @__PURE__ */ _i(), t = /* @__PURE__ */ gi(), r = /* @__PURE__ */ cn(), n = /* @__PURE__ */ re(), s = /* @__PURE__ */ ie();
|
|
5464
5464
|
var o;
|
|
5465
5465
|
(function(l) {
|
|
5466
5466
|
l[l.Correct = 0] = "Correct", l[l.Wrong = 1] = "Wrong";
|
|
@@ -5608,7 +5608,7 @@ var Tt = {}, uo;
|
|
|
5608
5608
|
function sh() {
|
|
5609
5609
|
if (uo) return Tt;
|
|
5610
5610
|
uo = 1, Object.defineProperty(Tt, "__esModule", { value: !0 }), Tt.assignDefaults = void 0;
|
|
5611
|
-
const e = re(), t =
|
|
5611
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie();
|
|
5612
5612
|
function r(s, o) {
|
|
5613
5613
|
const { properties: a, items: i } = s.schema;
|
|
5614
5614
|
if (o === "object" && a)
|
|
@@ -5635,7 +5635,7 @@ var He = {}, pe = {}, lo;
|
|
|
5635
5635
|
function We() {
|
|
5636
5636
|
if (lo) return pe;
|
|
5637
5637
|
lo = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.validateUnion = pe.validateArray = pe.usePattern = pe.callValidateCode = pe.schemaProperties = pe.allSchemaProperties = pe.noPropertyInData = pe.propertyInData = pe.isOwnProperty = pe.hasPropFunc = pe.reportMissingProp = pe.checkMissingProp = pe.checkReportMissingProp = void 0;
|
|
5638
|
-
const e = re(), t =
|
|
5638
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ Be(), n = /* @__PURE__ */ ie();
|
|
5639
5639
|
function s(l, y) {
|
|
5640
5640
|
const { gen: _, data: d, it: $ } = l;
|
|
5641
5641
|
_.if(f(_, d, y, $.opts.ownProperties), () => {
|
|
@@ -5744,7 +5744,7 @@ var fo;
|
|
|
5744
5744
|
function oh() {
|
|
5745
5745
|
if (fo) return He;
|
|
5746
5746
|
fo = 1, Object.defineProperty(He, "__esModule", { value: !0 }), He.validateKeywordUsage = He.validSchemaType = He.funcKeywordCode = He.macroKeywordCode = void 0;
|
|
5747
|
-
const e = re(), t = Be(), r = We(), n = cn();
|
|
5747
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ Be(), r = /* @__PURE__ */ We(), n = /* @__PURE__ */ cn();
|
|
5748
5748
|
function s(m, h) {
|
|
5749
5749
|
const { gen: w, keyword: S, schema: p, parentSchema: v, it: l } = m, y = h.macro.call(l.self, p, v, l), _ = u(w, S, y);
|
|
5750
5750
|
l.opts.validateSchema !== !1 && l.self.validateSchema(y, !0);
|
|
@@ -5833,7 +5833,7 @@ var rt = {}, ho;
|
|
|
5833
5833
|
function ah() {
|
|
5834
5834
|
if (ho) return rt;
|
|
5835
5835
|
ho = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.extendSubschemaMode = rt.extendSubschemaData = rt.getSubschema = void 0;
|
|
5836
|
-
const e = re(), t =
|
|
5836
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie();
|
|
5837
5837
|
function r(o, { keyword: a, schemaProp: i, schema: c, schemaPath: u, errSchemaPath: f, topSchemaRef: g }) {
|
|
5838
5838
|
if (a !== void 0 && c !== void 0)
|
|
5839
5839
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
@@ -5992,7 +5992,7 @@ var yo;
|
|
|
5992
5992
|
function un() {
|
|
5993
5993
|
if (yo) return Te;
|
|
5994
5994
|
yo = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.getSchemaRefs = Te.resolveUrl = Te.normalizeId = Te._getFullPath = Te.getFullPath = Te.inlineRef = void 0;
|
|
5995
|
-
const e =
|
|
5995
|
+
const e = /* @__PURE__ */ ie(), t = vi(), r = ih(), n = /* @__PURE__ */ new Set([
|
|
5996
5996
|
"type",
|
|
5997
5997
|
"format",
|
|
5998
5998
|
"pattern",
|
|
@@ -6071,19 +6071,19 @@ function un() {
|
|
|
6071
6071
|
const K = d + q;
|
|
6072
6072
|
let te = _[U];
|
|
6073
6073
|
typeof x[v] == "string" && (te = me.call(this, x[v])), he.call(this, x.$anchor), he.call(this, x.$dynamicAnchor), _[q] = te;
|
|
6074
|
-
function me(
|
|
6074
|
+
function me(ce) {
|
|
6075
6075
|
const Pe = this.opts.uriResolver.resolve;
|
|
6076
|
-
if (
|
|
6077
|
-
throw Z(
|
|
6078
|
-
E.add(
|
|
6079
|
-
let D = this.refs[
|
|
6080
|
-
return typeof D == "string" && (D = this.refs[D]), typeof D == "object" ? A(x, D.schema,
|
|
6081
|
-
}
|
|
6082
|
-
function he(
|
|
6083
|
-
if (typeof
|
|
6084
|
-
if (!h.test(
|
|
6085
|
-
throw new Error(`invalid anchor "${
|
|
6086
|
-
me.call(this, `#${
|
|
6076
|
+
if (ce = g(te ? Pe(te, ce) : ce), E.has(ce))
|
|
6077
|
+
throw Z(ce);
|
|
6078
|
+
E.add(ce);
|
|
6079
|
+
let D = this.refs[ce];
|
|
6080
|
+
return typeof D == "string" && (D = this.refs[D]), typeof D == "object" ? A(x, D.schema, ce) : ce !== g(K) && (ce[0] === "#" ? (A(x, $[ce], ce), $[ce] = x) : this.refs[ce] = K), ce;
|
|
6081
|
+
}
|
|
6082
|
+
function he(ce) {
|
|
6083
|
+
if (typeof ce == "string") {
|
|
6084
|
+
if (!h.test(ce))
|
|
6085
|
+
throw new Error(`invalid anchor "${ce}"`);
|
|
6086
|
+
me.call(this, `#${ce}`);
|
|
6087
6087
|
}
|
|
6088
6088
|
}
|
|
6089
6089
|
}), $;
|
|
@@ -6101,7 +6101,7 @@ var _o;
|
|
|
6101
6101
|
function qt() {
|
|
6102
6102
|
if (_o) return et;
|
|
6103
6103
|
_o = 1, Object.defineProperty(et, "__esModule", { value: !0 }), et.getData = et.KeywordCxt = et.validateFunctionCode = void 0;
|
|
6104
|
-
const e = nh(), t = Yr(), r = gi(), n = Yr(), s = sh(), o = oh(), a = ah(), i = re(), c = Be(), u = un(), f =
|
|
6104
|
+
const e = /* @__PURE__ */ nh(), t = /* @__PURE__ */ Yr(), r = /* @__PURE__ */ gi(), n = /* @__PURE__ */ Yr(), s = /* @__PURE__ */ sh(), o = /* @__PURE__ */ oh(), a = /* @__PURE__ */ ah(), i = /* @__PURE__ */ re(), c = /* @__PURE__ */ Be(), u = /* @__PURE__ */ un(), f = /* @__PURE__ */ ie(), g = /* @__PURE__ */ cn();
|
|
6105
6105
|
function m(z) {
|
|
6106
6106
|
if (d(z) && (E(z), _(z))) {
|
|
6107
6107
|
p(z);
|
|
@@ -6210,7 +6210,7 @@ function qt() {
|
|
|
6210
6210
|
X.block(() => G(z, "$ref", k.all.$ref.definition));
|
|
6211
6211
|
return;
|
|
6212
6212
|
}
|
|
6213
|
-
Ae.jtd ||
|
|
6213
|
+
Ae.jtd || ce(z, N), X.block(() => {
|
|
6214
6214
|
for (const T of k.rules)
|
|
6215
6215
|
R(T);
|
|
6216
6216
|
R(k.post);
|
|
@@ -6226,7 +6226,7 @@ function qt() {
|
|
|
6226
6226
|
(0, r.shouldUseRule)(H, ne) && G(z, ne.keyword, ne.definition, N.type);
|
|
6227
6227
|
});
|
|
6228
6228
|
}
|
|
6229
|
-
function
|
|
6229
|
+
function ce(z, N) {
|
|
6230
6230
|
z.schemaEnv.meta || !z.opts.strictTypes || (Pe(z, N), z.opts.allowUnionTypes || D(z, N), O(z, z.dataTypes));
|
|
6231
6231
|
}
|
|
6232
6232
|
function Pe(z, N) {
|
|
@@ -6425,7 +6425,7 @@ var Ht = {}, vo;
|
|
|
6425
6425
|
function Mt() {
|
|
6426
6426
|
if (vo) return Ht;
|
|
6427
6427
|
vo = 1, Object.defineProperty(Ht, "__esModule", { value: !0 });
|
|
6428
|
-
const e = un();
|
|
6428
|
+
const e = /* @__PURE__ */ un();
|
|
6429
6429
|
class t extends Error {
|
|
6430
6430
|
constructor(n, s, o, a) {
|
|
6431
6431
|
super(a || `can't resolve reference ${o} from id ${s}`), this.missingRef = (0, e.resolveUrl)(n, s, o), this.missingSchema = (0, e.normalizeId)((0, e.getFullPath)(n, this.missingRef));
|
|
@@ -6437,7 +6437,7 @@ var Ze = {}, $o;
|
|
|
6437
6437
|
function ln() {
|
|
6438
6438
|
if ($o) return Ze;
|
|
6439
6439
|
$o = 1, Object.defineProperty(Ze, "__esModule", { value: !0 }), Ze.resolveSchema = Ze.getCompilingSchema = Ze.resolveRef = Ze.compileSchema = Ze.SchemaEnv = void 0;
|
|
6440
|
-
const e = re(), t = dn(), r = Be(), n = un(), s =
|
|
6440
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ dn(), r = /* @__PURE__ */ Be(), n = /* @__PURE__ */ un(), s = /* @__PURE__ */ ie(), o = /* @__PURE__ */ qt();
|
|
6441
6441
|
class a {
|
|
6442
6442
|
constructor(v) {
|
|
6443
6443
|
var l;
|
|
@@ -7012,11 +7012,11 @@ var ko;
|
|
|
7012
7012
|
function bi() {
|
|
7013
7013
|
return ko || (ko = 1, (function(e) {
|
|
7014
7014
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
7015
|
-
var t = qt();
|
|
7015
|
+
var t = /* @__PURE__ */ qt();
|
|
7016
7016
|
Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
|
|
7017
7017
|
return t.KeywordCxt;
|
|
7018
7018
|
} });
|
|
7019
|
-
var r = re();
|
|
7019
|
+
var r = /* @__PURE__ */ re();
|
|
7020
7020
|
Object.defineProperty(e, "_", { enumerable: !0, get: function() {
|
|
7021
7021
|
return r._;
|
|
7022
7022
|
} }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
|
|
@@ -7030,7 +7030,7 @@ function bi() {
|
|
|
7030
7030
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
7031
7031
|
return r.CodeGen;
|
|
7032
7032
|
} });
|
|
7033
|
-
const n = dn(), s = Mt(), o = _i(), a = ln(), i = re(), c = un(), u = Yr(), f =
|
|
7033
|
+
const n = /* @__PURE__ */ dn(), s = /* @__PURE__ */ Mt(), o = /* @__PURE__ */ _i(), a = /* @__PURE__ */ ln(), i = /* @__PURE__ */ re(), c = /* @__PURE__ */ un(), u = /* @__PURE__ */ Yr(), f = /* @__PURE__ */ ie(), g = mh, m = /* @__PURE__ */ _h(), h = (D, O) => new RegExp(D, O);
|
|
7034
7034
|
h.code = "new RegExp";
|
|
7035
7035
|
const w = ["removeAdditional", "useDefaults", "coerceTypes"], S = /* @__PURE__ */ new Set([
|
|
7036
7036
|
"validate",
|
|
@@ -7443,11 +7443,11 @@ function bi() {
|
|
|
7443
7443
|
let { metaSchema: O } = D;
|
|
7444
7444
|
O !== void 0 && (D.$data && this.opts.$data && (O = Pe(O)), D.validateSchema = this.compile(O, !0));
|
|
7445
7445
|
}
|
|
7446
|
-
const
|
|
7446
|
+
const ce = {
|
|
7447
7447
|
$ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
|
|
7448
7448
|
};
|
|
7449
7449
|
function Pe(D) {
|
|
7450
|
-
return { anyOf: [D,
|
|
7450
|
+
return { anyOf: [D, ce] };
|
|
7451
7451
|
}
|
|
7452
7452
|
})(On)), On;
|
|
7453
7453
|
}
|
|
@@ -7467,7 +7467,7 @@ var it = {}, Oo;
|
|
|
7467
7467
|
function as() {
|
|
7468
7468
|
if (Oo) return it;
|
|
7469
7469
|
Oo = 1, Object.defineProperty(it, "__esModule", { value: !0 }), it.callRef = it.getValidate = void 0;
|
|
7470
|
-
const e = Mt(), t = We(), r = re(), n = Be(), s = ln(), o =
|
|
7470
|
+
const e = /* @__PURE__ */ Mt(), t = /* @__PURE__ */ We(), r = /* @__PURE__ */ re(), n = /* @__PURE__ */ Be(), s = /* @__PURE__ */ ln(), o = /* @__PURE__ */ ie(), a = {
|
|
7471
7471
|
keyword: "$ref",
|
|
7472
7472
|
schemaType: "string",
|
|
7473
7473
|
code(u) {
|
|
@@ -7554,7 +7554,7 @@ var zo;
|
|
|
7554
7554
|
function wi() {
|
|
7555
7555
|
if (zo) return Wt;
|
|
7556
7556
|
zo = 1, Object.defineProperty(Wt, "__esModule", { value: !0 });
|
|
7557
|
-
const e = gh(), t = as(), r = [
|
|
7557
|
+
const e = /* @__PURE__ */ gh(), t = /* @__PURE__ */ as(), r = [
|
|
7558
7558
|
"$schema",
|
|
7559
7559
|
"$id",
|
|
7560
7560
|
"$defs",
|
|
@@ -7570,7 +7570,7 @@ var Xt = {}, Qt = {}, Ro;
|
|
|
7570
7570
|
function vh() {
|
|
7571
7571
|
if (Ro) return Qt;
|
|
7572
7572
|
Ro = 1, Object.defineProperty(Qt, "__esModule", { value: !0 });
|
|
7573
|
-
const e = re(), t = e.operators, r = {
|
|
7573
|
+
const e = /* @__PURE__ */ re(), t = e.operators, r = {
|
|
7574
7574
|
maximum: { okStr: "<=", ok: t.LTE, fail: t.GT },
|
|
7575
7575
|
minimum: { okStr: ">=", ok: t.GTE, fail: t.LT },
|
|
7576
7576
|
exclusiveMaximum: { okStr: "<", ok: t.LT, fail: t.GTE },
|
|
@@ -7595,7 +7595,7 @@ var er = {}, jo;
|
|
|
7595
7595
|
function $h() {
|
|
7596
7596
|
if (jo) return er;
|
|
7597
7597
|
jo = 1, Object.defineProperty(er, "__esModule", { value: !0 });
|
|
7598
|
-
const e = re(), r = {
|
|
7598
|
+
const e = /* @__PURE__ */ re(), r = {
|
|
7599
7599
|
keyword: "multipleOf",
|
|
7600
7600
|
type: "number",
|
|
7601
7601
|
schemaType: "number",
|
|
@@ -7628,7 +7628,7 @@ var Ao;
|
|
|
7628
7628
|
function wh() {
|
|
7629
7629
|
if (Ao) return tr;
|
|
7630
7630
|
Ao = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
|
|
7631
|
-
const e = re(), t =
|
|
7631
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ bh(), s = {
|
|
7632
7632
|
keyword: ["maxLength", "minLength"],
|
|
7633
7633
|
type: "string",
|
|
7634
7634
|
schemaType: "number",
|
|
@@ -7651,27 +7651,33 @@ var nr = {}, To;
|
|
|
7651
7651
|
function Sh() {
|
|
7652
7652
|
if (To) return nr;
|
|
7653
7653
|
To = 1, Object.defineProperty(nr, "__esModule", { value: !0 });
|
|
7654
|
-
const e = We(), t = re(),
|
|
7654
|
+
const e = /* @__PURE__ */ We(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ re(), s = {
|
|
7655
7655
|
keyword: "pattern",
|
|
7656
7656
|
type: "string",
|
|
7657
7657
|
schemaType: "string",
|
|
7658
7658
|
$data: !0,
|
|
7659
7659
|
error: {
|
|
7660
|
-
message: ({ schemaCode:
|
|
7661
|
-
params: ({ schemaCode:
|
|
7660
|
+
message: ({ schemaCode: o }) => (0, r.str)`must match pattern "${o}"`,
|
|
7661
|
+
params: ({ schemaCode: o }) => (0, r._)`{pattern: ${o}}`
|
|
7662
7662
|
},
|
|
7663
|
-
code(
|
|
7664
|
-
const { data:
|
|
7665
|
-
|
|
7663
|
+
code(o) {
|
|
7664
|
+
const { gen: a, data: i, $data: c, schema: u, schemaCode: f, it: g } = o, m = g.opts.unicodeRegExp ? "u" : "";
|
|
7665
|
+
if (c) {
|
|
7666
|
+
const { regExp: h } = g.opts.code, w = h.code === "new RegExp" ? (0, r._)`new RegExp` : (0, t.useFunc)(a, h), S = a.let("valid");
|
|
7667
|
+
a.try(() => a.assign(S, (0, r._)`${w}(${f}, ${m}).test(${i})`), () => a.assign(S, !1)), o.fail$data((0, r._)`!${S}`);
|
|
7668
|
+
} else {
|
|
7669
|
+
const h = (0, e.usePattern)(o, u);
|
|
7670
|
+
o.fail$data((0, r._)`!${h}.test(${i})`);
|
|
7671
|
+
}
|
|
7666
7672
|
}
|
|
7667
7673
|
};
|
|
7668
|
-
return nr.default =
|
|
7674
|
+
return nr.default = s, nr;
|
|
7669
7675
|
}
|
|
7670
7676
|
var sr = {}, Io;
|
|
7671
7677
|
function Eh() {
|
|
7672
7678
|
if (Io) return sr;
|
|
7673
7679
|
Io = 1, Object.defineProperty(sr, "__esModule", { value: !0 });
|
|
7674
|
-
const e = re(), r = {
|
|
7680
|
+
const e = /* @__PURE__ */ re(), r = {
|
|
7675
7681
|
keyword: ["maxProperties", "minProperties"],
|
|
7676
7682
|
type: "object",
|
|
7677
7683
|
schemaType: "number",
|
|
@@ -7694,7 +7700,7 @@ var or = {}, Co;
|
|
|
7694
7700
|
function kh() {
|
|
7695
7701
|
if (Co) return or;
|
|
7696
7702
|
Co = 1, Object.defineProperty(or, "__esModule", { value: !0 });
|
|
7697
|
-
const e = We(), t = re(), r =
|
|
7703
|
+
const e = /* @__PURE__ */ We(), t = /* @__PURE__ */ re(), r = /* @__PURE__ */ ie(), s = {
|
|
7698
7704
|
keyword: "required",
|
|
7699
7705
|
type: "object",
|
|
7700
7706
|
schemaType: "array",
|
|
@@ -7751,7 +7757,7 @@ var ar = {}, Do;
|
|
|
7751
7757
|
function Ph() {
|
|
7752
7758
|
if (Do) return ar;
|
|
7753
7759
|
Do = 1, Object.defineProperty(ar, "__esModule", { value: !0 });
|
|
7754
|
-
const e = re(), r = {
|
|
7760
|
+
const e = /* @__PURE__ */ re(), r = {
|
|
7755
7761
|
keyword: ["maxItems", "minItems"],
|
|
7756
7762
|
type: "array",
|
|
7757
7763
|
schemaType: "number",
|
|
@@ -7781,7 +7787,7 @@ var Fo;
|
|
|
7781
7787
|
function Oh() {
|
|
7782
7788
|
if (Fo) return ir;
|
|
7783
7789
|
Fo = 1, Object.defineProperty(ir, "__esModule", { value: !0 });
|
|
7784
|
-
const e = Yr(), t = re(), r =
|
|
7790
|
+
const e = /* @__PURE__ */ Yr(), t = /* @__PURE__ */ re(), r = /* @__PURE__ */ ie(), n = /* @__PURE__ */ is(), o = {
|
|
7785
7791
|
keyword: "uniqueItems",
|
|
7786
7792
|
type: "array",
|
|
7787
7793
|
schemaType: "boolean",
|
|
@@ -7825,7 +7831,7 @@ var ur = {}, qo;
|
|
|
7825
7831
|
function zh() {
|
|
7826
7832
|
if (qo) return ur;
|
|
7827
7833
|
qo = 1, Object.defineProperty(ur, "__esModule", { value: !0 });
|
|
7828
|
-
const e = re(), t =
|
|
7834
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ is(), s = {
|
|
7829
7835
|
keyword: "const",
|
|
7830
7836
|
$data: !0,
|
|
7831
7837
|
error: {
|
|
@@ -7843,7 +7849,7 @@ var dr = {}, Mo;
|
|
|
7843
7849
|
function Rh() {
|
|
7844
7850
|
if (Mo) return dr;
|
|
7845
7851
|
Mo = 1, Object.defineProperty(dr, "__esModule", { value: !0 });
|
|
7846
|
-
const e = re(), t =
|
|
7852
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ is(), s = {
|
|
7847
7853
|
keyword: "enum",
|
|
7848
7854
|
schemaType: "array",
|
|
7849
7855
|
$data: !0,
|
|
@@ -7883,7 +7889,7 @@ var Zo;
|
|
|
7883
7889
|
function Si() {
|
|
7884
7890
|
if (Zo) return Xt;
|
|
7885
7891
|
Zo = 1, Object.defineProperty(Xt, "__esModule", { value: !0 });
|
|
7886
|
-
const e = vh(), t = $h(), r = wh(), n = Sh(), s = Eh(), o = kh(), a = Ph(), i = Oh(), c = zh(), u = Rh(), f = [
|
|
7892
|
+
const e = /* @__PURE__ */ vh(), t = /* @__PURE__ */ $h(), r = /* @__PURE__ */ wh(), n = /* @__PURE__ */ Sh(), s = /* @__PURE__ */ Eh(), o = /* @__PURE__ */ kh(), a = /* @__PURE__ */ Ph(), i = /* @__PURE__ */ Oh(), c = /* @__PURE__ */ zh(), u = /* @__PURE__ */ Rh(), f = [
|
|
7887
7893
|
// number
|
|
7888
7894
|
e.default,
|
|
7889
7895
|
t.default,
|
|
@@ -7908,7 +7914,7 @@ var lr = {}, $t = {}, Uo;
|
|
|
7908
7914
|
function Ei() {
|
|
7909
7915
|
if (Uo) return $t;
|
|
7910
7916
|
Uo = 1, Object.defineProperty($t, "__esModule", { value: !0 }), $t.validateAdditionalItems = void 0;
|
|
7911
|
-
const e = re(), t =
|
|
7917
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), n = {
|
|
7912
7918
|
keyword: "additionalItems",
|
|
7913
7919
|
type: "array",
|
|
7914
7920
|
schemaType: ["boolean", "object"],
|
|
@@ -7948,7 +7954,7 @@ var fr = {}, bt = {}, Lo;
|
|
|
7948
7954
|
function ki() {
|
|
7949
7955
|
if (Lo) return bt;
|
|
7950
7956
|
Lo = 1, Object.defineProperty(bt, "__esModule", { value: !0 }), bt.validateTuple = void 0;
|
|
7951
|
-
const e = re(), t =
|
|
7957
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ We(), n = {
|
|
7952
7958
|
keyword: "items",
|
|
7953
7959
|
type: "array",
|
|
7954
7960
|
schemaType: ["object", "array", "boolean"],
|
|
@@ -7985,7 +7991,7 @@ var xo;
|
|
|
7985
7991
|
function jh() {
|
|
7986
7992
|
if (xo) return fr;
|
|
7987
7993
|
xo = 1, Object.defineProperty(fr, "__esModule", { value: !0 });
|
|
7988
|
-
const e = ki(), t = {
|
|
7994
|
+
const e = /* @__PURE__ */ ki(), t = {
|
|
7989
7995
|
keyword: "prefixItems",
|
|
7990
7996
|
type: "array",
|
|
7991
7997
|
schemaType: ["array"],
|
|
@@ -7998,7 +8004,7 @@ var hr = {}, Ko;
|
|
|
7998
8004
|
function Nh() {
|
|
7999
8005
|
if (Ko) return hr;
|
|
8000
8006
|
Ko = 1, Object.defineProperty(hr, "__esModule", { value: !0 });
|
|
8001
|
-
const e = re(), t =
|
|
8007
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ We(), n = /* @__PURE__ */ Ei(), o = {
|
|
8002
8008
|
keyword: "items",
|
|
8003
8009
|
type: "array",
|
|
8004
8010
|
schemaType: ["object", "boolean"],
|
|
@@ -8018,7 +8024,7 @@ var mr = {}, Jo;
|
|
|
8018
8024
|
function Ah() {
|
|
8019
8025
|
if (Jo) return mr;
|
|
8020
8026
|
Jo = 1, Object.defineProperty(mr, "__esModule", { value: !0 });
|
|
8021
|
-
const e = re(), t =
|
|
8027
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), n = {
|
|
8022
8028
|
keyword: "contains",
|
|
8023
8029
|
type: "array",
|
|
8024
8030
|
schemaType: ["object", "boolean"],
|
|
@@ -8075,7 +8081,7 @@ var Dn = {}, Ho;
|
|
|
8075
8081
|
function cs() {
|
|
8076
8082
|
return Ho || (Ho = 1, (function(e) {
|
|
8077
8083
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
8078
|
-
const t = re(), r =
|
|
8084
|
+
const t = /* @__PURE__ */ re(), r = /* @__PURE__ */ ie(), n = /* @__PURE__ */ We();
|
|
8079
8085
|
e.error = {
|
|
8080
8086
|
message: ({ params: { property: c, depsCount: u, deps: f } }) => {
|
|
8081
8087
|
const g = u === 1 ? "property" : "properties";
|
|
@@ -8148,7 +8154,7 @@ var pr = {}, Go;
|
|
|
8148
8154
|
function Th() {
|
|
8149
8155
|
if (Go) return pr;
|
|
8150
8156
|
Go = 1, Object.defineProperty(pr, "__esModule", { value: !0 });
|
|
8151
|
-
const e = re(), t =
|
|
8157
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), n = {
|
|
8152
8158
|
keyword: "propertyNames",
|
|
8153
8159
|
type: "object",
|
|
8154
8160
|
schemaType: ["object", "boolean"],
|
|
@@ -8180,7 +8186,7 @@ var yr = {}, Bo;
|
|
|
8180
8186
|
function Pi() {
|
|
8181
8187
|
if (Bo) return yr;
|
|
8182
8188
|
Bo = 1, Object.defineProperty(yr, "__esModule", { value: !0 });
|
|
8183
|
-
const e = We(), t = re(), r = Be(), n =
|
|
8189
|
+
const e = /* @__PURE__ */ We(), t = /* @__PURE__ */ re(), r = /* @__PURE__ */ Be(), n = /* @__PURE__ */ ie(), o = {
|
|
8184
8190
|
keyword: "additionalProperties",
|
|
8185
8191
|
type: ["object"],
|
|
8186
8192
|
schemaType: ["boolean", "object"],
|
|
@@ -8251,7 +8257,7 @@ var _r = {}, Wo;
|
|
|
8251
8257
|
function Ih() {
|
|
8252
8258
|
if (Wo) return _r;
|
|
8253
8259
|
Wo = 1, Object.defineProperty(_r, "__esModule", { value: !0 });
|
|
8254
|
-
const e = qt(), t = We(), r =
|
|
8260
|
+
const e = /* @__PURE__ */ qt(), t = /* @__PURE__ */ We(), r = /* @__PURE__ */ ie(), n = /* @__PURE__ */ Pi(), s = {
|
|
8255
8261
|
keyword: "properties",
|
|
8256
8262
|
type: "object",
|
|
8257
8263
|
schemaType: "object",
|
|
@@ -8286,7 +8292,7 @@ var gr = {}, Yo;
|
|
|
8286
8292
|
function Ch() {
|
|
8287
8293
|
if (Yo) return gr;
|
|
8288
8294
|
Yo = 1, Object.defineProperty(gr, "__esModule", { value: !0 });
|
|
8289
|
-
const e = We(), t = re(), r =
|
|
8295
|
+
const e = /* @__PURE__ */ We(), t = /* @__PURE__ */ re(), r = /* @__PURE__ */ ie(), n = /* @__PURE__ */ ie(), s = {
|
|
8290
8296
|
keyword: "patternProperties",
|
|
8291
8297
|
type: "object",
|
|
8292
8298
|
schemaType: "object",
|
|
@@ -8327,7 +8333,7 @@ var vr = {}, Xo;
|
|
|
8327
8333
|
function Dh() {
|
|
8328
8334
|
if (Xo) return vr;
|
|
8329
8335
|
Xo = 1, Object.defineProperty(vr, "__esModule", { value: !0 });
|
|
8330
|
-
const e =
|
|
8336
|
+
const e = /* @__PURE__ */ ie(), t = {
|
|
8331
8337
|
keyword: "not",
|
|
8332
8338
|
schemaType: ["object", "boolean"],
|
|
8333
8339
|
trackErrors: !0,
|
|
@@ -8357,7 +8363,7 @@ function Vh() {
|
|
|
8357
8363
|
keyword: "anyOf",
|
|
8358
8364
|
schemaType: "array",
|
|
8359
8365
|
trackErrors: !0,
|
|
8360
|
-
code: We().validateUnion,
|
|
8366
|
+
code: (/* @__PURE__ */ We()).validateUnion,
|
|
8361
8367
|
error: { message: "must match a schema in anyOf" }
|
|
8362
8368
|
};
|
|
8363
8369
|
return $r.default = t, $r;
|
|
@@ -8366,7 +8372,7 @@ var br = {}, ea;
|
|
|
8366
8372
|
function Fh() {
|
|
8367
8373
|
if (ea) return br;
|
|
8368
8374
|
ea = 1, Object.defineProperty(br, "__esModule", { value: !0 });
|
|
8369
|
-
const e = re(), t =
|
|
8375
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), n = {
|
|
8370
8376
|
keyword: "oneOf",
|
|
8371
8377
|
schemaType: "array",
|
|
8372
8378
|
trackErrors: !0,
|
|
@@ -8402,7 +8408,7 @@ var wr = {}, ta;
|
|
|
8402
8408
|
function qh() {
|
|
8403
8409
|
if (ta) return wr;
|
|
8404
8410
|
ta = 1, Object.defineProperty(wr, "__esModule", { value: !0 });
|
|
8405
|
-
const e =
|
|
8411
|
+
const e = /* @__PURE__ */ ie(), t = {
|
|
8406
8412
|
keyword: "allOf",
|
|
8407
8413
|
schemaType: "array",
|
|
8408
8414
|
code(r) {
|
|
@@ -8424,7 +8430,7 @@ var Sr = {}, ra;
|
|
|
8424
8430
|
function Mh() {
|
|
8425
8431
|
if (ra) return Sr;
|
|
8426
8432
|
ra = 1, Object.defineProperty(Sr, "__esModule", { value: !0 });
|
|
8427
|
-
const e = re(), t =
|
|
8433
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), n = {
|
|
8428
8434
|
keyword: "if",
|
|
8429
8435
|
schemaType: ["object", "boolean"],
|
|
8430
8436
|
trackErrors: !0,
|
|
@@ -8471,7 +8477,7 @@ var Er = {}, na;
|
|
|
8471
8477
|
function Zh() {
|
|
8472
8478
|
if (na) return Er;
|
|
8473
8479
|
na = 1, Object.defineProperty(Er, "__esModule", { value: !0 });
|
|
8474
|
-
const e =
|
|
8480
|
+
const e = /* @__PURE__ */ ie(), t = {
|
|
8475
8481
|
keyword: ["then", "else"],
|
|
8476
8482
|
schemaType: ["object", "boolean"],
|
|
8477
8483
|
code({ keyword: r, parentSchema: n, it: s }) {
|
|
@@ -8484,7 +8490,7 @@ var sa;
|
|
|
8484
8490
|
function Oi() {
|
|
8485
8491
|
if (sa) return lr;
|
|
8486
8492
|
sa = 1, Object.defineProperty(lr, "__esModule", { value: !0 });
|
|
8487
|
-
const e = Ei(), t = jh(), r = ki(), n = Nh(), s = Ah(), o = cs(), a = Th(), i = Pi(), c = Ih(), u = Ch(), f = Dh(), g = Vh(), m = Fh(), h = qh(), w = Mh(), S = Zh();
|
|
8493
|
+
const e = /* @__PURE__ */ Ei(), t = /* @__PURE__ */ jh(), r = /* @__PURE__ */ ki(), n = /* @__PURE__ */ Nh(), s = /* @__PURE__ */ Ah(), o = /* @__PURE__ */ cs(), a = /* @__PURE__ */ Th(), i = /* @__PURE__ */ Pi(), c = /* @__PURE__ */ Ih(), u = /* @__PURE__ */ Ch(), f = /* @__PURE__ */ Dh(), g = /* @__PURE__ */ Vh(), m = /* @__PURE__ */ Fh(), h = /* @__PURE__ */ qh(), w = /* @__PURE__ */ Mh(), S = /* @__PURE__ */ Zh();
|
|
8488
8494
|
function p(v = !1) {
|
|
8489
8495
|
const l = [
|
|
8490
8496
|
// any
|
|
@@ -8509,7 +8515,7 @@ var kr = {}, wt = {}, oa;
|
|
|
8509
8515
|
function zi() {
|
|
8510
8516
|
if (oa) return wt;
|
|
8511
8517
|
oa = 1, Object.defineProperty(wt, "__esModule", { value: !0 }), wt.dynamicAnchor = void 0;
|
|
8512
|
-
const e = re(), t = Be(), r = ln(), n = as(), s = {
|
|
8518
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ Be(), r = /* @__PURE__ */ ln(), n = /* @__PURE__ */ as(), s = {
|
|
8513
8519
|
keyword: "$dynamicAnchor",
|
|
8514
8520
|
schemaType: "string",
|
|
8515
8521
|
code: (i) => o(i, i.schema)
|
|
@@ -8531,7 +8537,7 @@ var St = {}, aa;
|
|
|
8531
8537
|
function Ri() {
|
|
8532
8538
|
if (aa) return St;
|
|
8533
8539
|
aa = 1, Object.defineProperty(St, "__esModule", { value: !0 }), St.dynamicRef = void 0;
|
|
8534
|
-
const e = re(), t = Be(), r = as(), n = {
|
|
8540
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ Be(), r = /* @__PURE__ */ as(), n = {
|
|
8535
8541
|
keyword: "$dynamicRef",
|
|
8536
8542
|
schemaType: "string",
|
|
8537
8543
|
code: (o) => s(o, o.schema)
|
|
@@ -8566,7 +8572,7 @@ var Pr = {}, ia;
|
|
|
8566
8572
|
function Uh() {
|
|
8567
8573
|
if (ia) return Pr;
|
|
8568
8574
|
ia = 1, Object.defineProperty(Pr, "__esModule", { value: !0 });
|
|
8569
|
-
const e = zi(), t =
|
|
8575
|
+
const e = /* @__PURE__ */ zi(), t = /* @__PURE__ */ ie(), r = {
|
|
8570
8576
|
keyword: "$recursiveAnchor",
|
|
8571
8577
|
schemaType: "boolean",
|
|
8572
8578
|
code(n) {
|
|
@@ -8579,7 +8585,7 @@ var Or = {}, ca;
|
|
|
8579
8585
|
function Lh() {
|
|
8580
8586
|
if (ca) return Or;
|
|
8581
8587
|
ca = 1, Object.defineProperty(Or, "__esModule", { value: !0 });
|
|
8582
|
-
const e = Ri(), t = {
|
|
8588
|
+
const e = /* @__PURE__ */ Ri(), t = {
|
|
8583
8589
|
keyword: "$recursiveRef",
|
|
8584
8590
|
schemaType: "string",
|
|
8585
8591
|
code: (r) => (0, e.dynamicRef)(r, r.schema)
|
|
@@ -8590,14 +8596,14 @@ var ua;
|
|
|
8590
8596
|
function xh() {
|
|
8591
8597
|
if (ua) return kr;
|
|
8592
8598
|
ua = 1, Object.defineProperty(kr, "__esModule", { value: !0 });
|
|
8593
|
-
const e = zi(), t = Ri(), r = Uh(), n = Lh(), s = [e.default, t.default, r.default, n.default];
|
|
8599
|
+
const e = /* @__PURE__ */ zi(), t = /* @__PURE__ */ Ri(), r = /* @__PURE__ */ Uh(), n = /* @__PURE__ */ Lh(), s = [e.default, t.default, r.default, n.default];
|
|
8594
8600
|
return kr.default = s, kr;
|
|
8595
8601
|
}
|
|
8596
8602
|
var zr = {}, Rr = {}, da;
|
|
8597
8603
|
function Kh() {
|
|
8598
8604
|
if (da) return Rr;
|
|
8599
8605
|
da = 1, Object.defineProperty(Rr, "__esModule", { value: !0 });
|
|
8600
|
-
const e = cs(), t = {
|
|
8606
|
+
const e = /* @__PURE__ */ cs(), t = {
|
|
8601
8607
|
keyword: "dependentRequired",
|
|
8602
8608
|
type: "object",
|
|
8603
8609
|
schemaType: "object",
|
|
@@ -8610,7 +8616,7 @@ var jr = {}, la;
|
|
|
8610
8616
|
function Jh() {
|
|
8611
8617
|
if (la) return jr;
|
|
8612
8618
|
la = 1, Object.defineProperty(jr, "__esModule", { value: !0 });
|
|
8613
|
-
const e = cs(), t = {
|
|
8619
|
+
const e = /* @__PURE__ */ cs(), t = {
|
|
8614
8620
|
keyword: "dependentSchemas",
|
|
8615
8621
|
type: "object",
|
|
8616
8622
|
schemaType: "object",
|
|
@@ -8622,7 +8628,7 @@ var Nr = {}, fa;
|
|
|
8622
8628
|
function Hh() {
|
|
8623
8629
|
if (fa) return Nr;
|
|
8624
8630
|
fa = 1, Object.defineProperty(Nr, "__esModule", { value: !0 });
|
|
8625
|
-
const e =
|
|
8631
|
+
const e = /* @__PURE__ */ ie(), t = {
|
|
8626
8632
|
keyword: ["maxContains", "minContains"],
|
|
8627
8633
|
type: "array",
|
|
8628
8634
|
schemaType: "number",
|
|
@@ -8636,14 +8642,14 @@ var ha;
|
|
|
8636
8642
|
function Gh() {
|
|
8637
8643
|
if (ha) return zr;
|
|
8638
8644
|
ha = 1, Object.defineProperty(zr, "__esModule", { value: !0 });
|
|
8639
|
-
const e = Kh(), t = Jh(), r = Hh(), n = [e.default, t.default, r.default];
|
|
8645
|
+
const e = /* @__PURE__ */ Kh(), t = /* @__PURE__ */ Jh(), r = /* @__PURE__ */ Hh(), n = [e.default, t.default, r.default];
|
|
8640
8646
|
return zr.default = n, zr;
|
|
8641
8647
|
}
|
|
8642
8648
|
var Ar = {}, Tr = {}, ma;
|
|
8643
8649
|
function Bh() {
|
|
8644
8650
|
if (ma) return Tr;
|
|
8645
8651
|
ma = 1, Object.defineProperty(Tr, "__esModule", { value: !0 });
|
|
8646
|
-
const e = re(), t =
|
|
8652
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ Be(), s = {
|
|
8647
8653
|
keyword: "unevaluatedProperties",
|
|
8648
8654
|
type: "object",
|
|
8649
8655
|
schemaType: ["boolean", "object"],
|
|
@@ -8689,7 +8695,7 @@ var Ir = {}, pa;
|
|
|
8689
8695
|
function Wh() {
|
|
8690
8696
|
if (pa) return Ir;
|
|
8691
8697
|
pa = 1, Object.defineProperty(Ir, "__esModule", { value: !0 });
|
|
8692
|
-
const e = re(), t =
|
|
8698
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), n = {
|
|
8693
8699
|
keyword: "unevaluatedItems",
|
|
8694
8700
|
type: "array",
|
|
8695
8701
|
schemaType: ["boolean", "object"],
|
|
@@ -8722,14 +8728,14 @@ var ya;
|
|
|
8722
8728
|
function Yh() {
|
|
8723
8729
|
if (ya) return Ar;
|
|
8724
8730
|
ya = 1, Object.defineProperty(Ar, "__esModule", { value: !0 });
|
|
8725
|
-
const e = Bh(), t = Wh(), r = [e.default, t.default];
|
|
8731
|
+
const e = /* @__PURE__ */ Bh(), t = /* @__PURE__ */ Wh(), r = [e.default, t.default];
|
|
8726
8732
|
return Ar.default = r, Ar;
|
|
8727
8733
|
}
|
|
8728
8734
|
var Cr = {}, Dr = {}, _a;
|
|
8729
8735
|
function Xh() {
|
|
8730
8736
|
if (_a) return Dr;
|
|
8731
8737
|
_a = 1, Object.defineProperty(Dr, "__esModule", { value: !0 });
|
|
8732
|
-
const e = re(), r = {
|
|
8738
|
+
const e = /* @__PURE__ */ re(), r = {
|
|
8733
8739
|
keyword: "format",
|
|
8734
8740
|
type: ["number", "string"],
|
|
8735
8741
|
schemaType: "string",
|
|
@@ -8798,7 +8804,7 @@ var ga;
|
|
|
8798
8804
|
function ji() {
|
|
8799
8805
|
if (ga) return Cr;
|
|
8800
8806
|
ga = 1, Object.defineProperty(Cr, "__esModule", { value: !0 });
|
|
8801
|
-
const t = [Xh().default];
|
|
8807
|
+
const t = [(/* @__PURE__ */ Xh()).default];
|
|
8802
8808
|
return Cr.default = t, Cr;
|
|
8803
8809
|
}
|
|
8804
8810
|
var yt = {}, va;
|
|
@@ -8821,7 +8827,7 @@ var $a;
|
|
|
8821
8827
|
function Qh() {
|
|
8822
8828
|
if ($a) return Bt;
|
|
8823
8829
|
$a = 1, Object.defineProperty(Bt, "__esModule", { value: !0 });
|
|
8824
|
-
const e = wi(), t = Si(), r = Oi(), n = xh(), s = Gh(), o = Yh(), a = ji(), i = Ni(), c = [
|
|
8830
|
+
const e = /* @__PURE__ */ wi(), t = /* @__PURE__ */ Si(), r = /* @__PURE__ */ Oi(), n = /* @__PURE__ */ xh(), s = /* @__PURE__ */ Gh(), o = /* @__PURE__ */ Yh(), a = /* @__PURE__ */ ji(), i = /* @__PURE__ */ Ni(), c = [
|
|
8825
8831
|
n.default,
|
|
8826
8832
|
e.default,
|
|
8827
8833
|
t.default,
|
|
@@ -8847,7 +8853,7 @@ var wa;
|
|
|
8847
8853
|
function Ai() {
|
|
8848
8854
|
if (wa) return Vr;
|
|
8849
8855
|
wa = 1, Object.defineProperty(Vr, "__esModule", { value: !0 });
|
|
8850
|
-
const e = re(), t = em(), r = ln(), n = Mt(), s =
|
|
8856
|
+
const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ em(), r = /* @__PURE__ */ ln(), n = /* @__PURE__ */ Mt(), s = /* @__PURE__ */ ie(), a = {
|
|
8851
8857
|
keyword: "discriminator",
|
|
8852
8858
|
type: "object",
|
|
8853
8859
|
schemaType: "object",
|
|
@@ -9017,7 +9023,7 @@ var Ea;
|
|
|
9017
9023
|
function _p() {
|
|
9018
9024
|
return Ea || (Ea = 1, (function(e, t) {
|
|
9019
9025
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv2020 = void 0;
|
|
9020
|
-
const r = bi(), n = Qh(), s = Ai(), o = yp(), a = "https://json-schema.org/draft/2020-12/schema";
|
|
9026
|
+
const r = /* @__PURE__ */ bi(), n = /* @__PURE__ */ Qh(), s = /* @__PURE__ */ Ai(), o = /* @__PURE__ */ yp(), a = "https://json-schema.org/draft/2020-12/schema";
|
|
9021
9027
|
class i extends r.default {
|
|
9022
9028
|
constructor(h = {}) {
|
|
9023
9029
|
super({
|
|
@@ -9040,11 +9046,11 @@ function _p() {
|
|
|
9040
9046
|
}
|
|
9041
9047
|
}
|
|
9042
9048
|
t.Ajv2020 = i, e.exports = t = i, e.exports.Ajv2020 = i, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = i;
|
|
9043
|
-
var c = qt();
|
|
9049
|
+
var c = /* @__PURE__ */ qt();
|
|
9044
9050
|
Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
|
|
9045
9051
|
return c.KeywordCxt;
|
|
9046
9052
|
} });
|
|
9047
|
-
var u = re();
|
|
9053
|
+
var u = /* @__PURE__ */ re();
|
|
9048
9054
|
Object.defineProperty(t, "_", { enumerable: !0, get: function() {
|
|
9049
9055
|
return u._;
|
|
9050
9056
|
} }), Object.defineProperty(t, "str", { enumerable: !0, get: function() {
|
|
@@ -9058,17 +9064,17 @@ function _p() {
|
|
|
9058
9064
|
} }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
|
|
9059
9065
|
return u.CodeGen;
|
|
9060
9066
|
} });
|
|
9061
|
-
var f = dn();
|
|
9067
|
+
var f = /* @__PURE__ */ dn();
|
|
9062
9068
|
Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
|
|
9063
9069
|
return f.default;
|
|
9064
9070
|
} });
|
|
9065
|
-
var g = Mt();
|
|
9071
|
+
var g = /* @__PURE__ */ Mt();
|
|
9066
9072
|
Object.defineProperty(t, "MissingRefError", { enumerable: !0, get: function() {
|
|
9067
9073
|
return g.default;
|
|
9068
9074
|
} });
|
|
9069
9075
|
})(xt, xt.exports)), xt.exports;
|
|
9070
9076
|
}
|
|
9071
|
-
var gp = _p();
|
|
9077
|
+
var gp = /* @__PURE__ */ _p();
|
|
9072
9078
|
const vp = /* @__PURE__ */ yi(gp);
|
|
9073
9079
|
var qr = { exports: {} }, Vn = {}, ka;
|
|
9074
9080
|
function $p() {
|
|
@@ -9159,8 +9165,8 @@ function $p() {
|
|
|
9159
9165
|
const K = i.exec(U);
|
|
9160
9166
|
if (!K)
|
|
9161
9167
|
return !1;
|
|
9162
|
-
const te = +K[1], me = +K[2], he = +K[3],
|
|
9163
|
-
if (D > 23 || O > 59 || q && !
|
|
9168
|
+
const te = +K[1], me = +K[2], he = +K[3], ce = K[4], Pe = K[5] === "-" ? -1 : 1, D = +(K[6] || 0), O = +(K[7] || 0);
|
|
9169
|
+
if (D > 23 || O > 59 || q && !ce)
|
|
9164
9170
|
return !1;
|
|
9165
9171
|
if (te <= 23 && me <= 59 && he < 60)
|
|
9166
9172
|
return !0;
|
|
@@ -9238,7 +9244,7 @@ var Fn = {}, Mr = { exports: {} }, Zr = {}, Pa;
|
|
|
9238
9244
|
function bp() {
|
|
9239
9245
|
if (Pa) return Zr;
|
|
9240
9246
|
Pa = 1, Object.defineProperty(Zr, "__esModule", { value: !0 });
|
|
9241
|
-
const e = wi(), t = Si(), r = Oi(), n = ji(), s = Ni(), o = [
|
|
9247
|
+
const e = /* @__PURE__ */ wi(), t = /* @__PURE__ */ Si(), r = /* @__PURE__ */ Oi(), n = /* @__PURE__ */ ji(), s = /* @__PURE__ */ Ni(), o = [
|
|
9242
9248
|
e.default,
|
|
9243
9249
|
t.default,
|
|
9244
9250
|
(0, r.default)(),
|
|
@@ -9261,7 +9267,7 @@ var Oa;
|
|
|
9261
9267
|
function Rp() {
|
|
9262
9268
|
return Oa || (Oa = 1, (function(e, t) {
|
|
9263
9269
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
|
|
9264
|
-
const r = bi(), n = bp(), s = Ai(), o = zp, a = ["/properties"], i = "http://json-schema.org/draft-07/schema";
|
|
9270
|
+
const r = /* @__PURE__ */ bi(), n = /* @__PURE__ */ bp(), s = /* @__PURE__ */ Ai(), o = zp, a = ["/properties"], i = "http://json-schema.org/draft-07/schema";
|
|
9265
9271
|
class c extends r.default {
|
|
9266
9272
|
_addVocabularies() {
|
|
9267
9273
|
super._addVocabularies(), n.default.forEach((w) => this.addVocabulary(w)), this.opts.discriminator && this.addKeyword(s.default);
|
|
@@ -9277,11 +9283,11 @@ function Rp() {
|
|
|
9277
9283
|
}
|
|
9278
9284
|
}
|
|
9279
9285
|
t.Ajv = c, e.exports = t = c, e.exports.Ajv = c, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = c;
|
|
9280
|
-
var u = qt();
|
|
9286
|
+
var u = /* @__PURE__ */ qt();
|
|
9281
9287
|
Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
|
|
9282
9288
|
return u.KeywordCxt;
|
|
9283
9289
|
} });
|
|
9284
|
-
var f = re();
|
|
9290
|
+
var f = /* @__PURE__ */ re();
|
|
9285
9291
|
Object.defineProperty(t, "_", { enumerable: !0, get: function() {
|
|
9286
9292
|
return f._;
|
|
9287
9293
|
} }), Object.defineProperty(t, "str", { enumerable: !0, get: function() {
|
|
@@ -9295,11 +9301,11 @@ function Rp() {
|
|
|
9295
9301
|
} }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
|
|
9296
9302
|
return f.CodeGen;
|
|
9297
9303
|
} });
|
|
9298
|
-
var g = dn();
|
|
9304
|
+
var g = /* @__PURE__ */ dn();
|
|
9299
9305
|
Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
|
|
9300
9306
|
return g.default;
|
|
9301
9307
|
} });
|
|
9302
|
-
var m = Mt();
|
|
9308
|
+
var m = /* @__PURE__ */ Mt();
|
|
9303
9309
|
Object.defineProperty(t, "MissingRefError", { enumerable: !0, get: function() {
|
|
9304
9310
|
return m.default;
|
|
9305
9311
|
} });
|
|
@@ -9309,7 +9315,7 @@ var za;
|
|
|
9309
9315
|
function jp() {
|
|
9310
9316
|
return za || (za = 1, (function(e) {
|
|
9311
9317
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
9312
|
-
const t = Rp(), r = re(), n = r.operators, s = {
|
|
9318
|
+
const t = /* @__PURE__ */ Rp(), r = /* @__PURE__ */ re(), n = r.operators, s = {
|
|
9313
9319
|
formatMaximum: { okStr: "<=", ok: n.LTE, fail: n.GT },
|
|
9314
9320
|
formatMinimum: { okStr: ">=", ok: n.GTE, fail: n.LT },
|
|
9315
9321
|
formatExclusiveMaximum: { okStr: "<", ok: n.LT, fail: n.GTE },
|
|
@@ -9364,7 +9370,7 @@ var Ra;
|
|
|
9364
9370
|
function Np() {
|
|
9365
9371
|
return Ra || (Ra = 1, (function(e, t) {
|
|
9366
9372
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
9367
|
-
const r = $p(), n = jp(), s = re(), o = new s.Name("fullFormats"), a = new s.Name("fastFormats"), i = (u, f = { keywords: !0 }) => {
|
|
9373
|
+
const r = $p(), n = jp(), s = /* @__PURE__ */ re(), o = new s.Name("fullFormats"), a = new s.Name("fastFormats"), i = (u, f = { keywords: !0 }) => {
|
|
9368
9374
|
if (Array.isArray(f))
|
|
9369
9375
|
return c(u, f, r.fullFormats, o), u;
|
|
9370
9376
|
const [g, m] = f.mode === "fast" ? [r.fastFormats, a] : [r.fullFormats, o], h = f.formats || r.formatNames;
|
|
@@ -9521,7 +9527,7 @@ function xp(e = {}) {
|
|
|
9521
9527
|
} : O === "array" ? C = { type: "array" } : O === "ref" ? C = { type: "ref", $ref: "" } : C = { type: O }, f(`${D}.schema`, C);
|
|
9522
9528
|
},
|
|
9523
9529
|
[f]
|
|
9524
|
-
),
|
|
9530
|
+
), ce = Je(
|
|
9525
9531
|
(D) => {
|
|
9526
9532
|
const O = nt(6), C = m(`${D}.schema.properties`) || [];
|
|
9527
9533
|
f(`${D}.schema.properties`, [
|
|
@@ -9554,7 +9560,7 @@ function xp(e = {}) {
|
|
|
9554
9560
|
openSettings: te,
|
|
9555
9561
|
closeSettings: me,
|
|
9556
9562
|
handleTypeChange: he,
|
|
9557
|
-
addNestedField:
|
|
9563
|
+
addNestedField: ce,
|
|
9558
9564
|
reset: Pe
|
|
9559
9565
|
};
|
|
9560
9566
|
}
|