diff --git a/javascript/sdppp-comfy2.js b/javascript/sdppp-comfy2.js index 339d588..a4bac47 100644 --- a/javascript/sdppp-comfy2.js +++ b/javascript/sdppp-comfy2.js @@ -1,2176 +1,2176 @@ -var Dn = Object.defineProperty; -var jn = (o, x, t) => x in o ? Dn(o, x, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[x] = t; -var m0 = (o, x, t) => jn(o, typeof x != "symbol" ? x + "" : x, t); +var Ln = Object.defineProperty; +var $n = (o, x, t) => x in o ? Ln(o, x, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[x] = t; +var me = (o, x, t) => $n(o, typeof x != "symbol" ? x + "" : x, t); const a = K; (function(o, x) { const t = K, r = o(); for (; ; ) try { - if (parseInt(t(2028)) / 1 * (-parseInt(t(1827)) / 2) + -parseInt(t(2642)) / 3 + -parseInt(t(2471)) / 4 + -parseInt(t(2474)) / 5 + -parseInt(t(1099)) / 6 * (-parseInt(t(2682)) / 7) + -parseInt(t(813)) / 8 + parseInt(t(1641)) / 9 === x) break; + if (-parseInt(t(1849)) / 1 * (-parseInt(t(166)) / 2) + -parseInt(t(781)) / 3 * (-parseInt(t(210)) / 4) + parseInt(t(1163)) / 5 * (parseInt(t(1260)) / 6) + parseInt(t(827)) / 7 * (parseInt(t(2123)) / 8) + -parseInt(t(2510)) / 9 * (-parseInt(t(1081)) / 10) + -parseInt(t(2831)) / 11 * (-parseInt(t(230)) / 12) + -parseInt(t(2238)) / 13 * (parseInt(t(270)) / 14) === x) break; r.push(r.shift()); } catch { r.push(r.shift()); } -})(Nx, 305767); -const N0 = window[a(930)].app[a(400)]; -window.comfyAPI.ui[a(180)]; -const Re = window.comfyAPI[a(724)].api; -class Mn { +})(qx, 588497); +const Ne = window[a(1688)][a(1388)][a(1388)]; +window[a(1688)].ui[a(1887)]; +const C0 = window[a(1688)].api[a(699)]; +var ts; +class Un { constructor(x) { - m0(this, "definition"); + me(this, ts); const t = a; - this[t(2814)] = x; - const r = this[t(2621)](); - if (!r.valid) throw new Error(t(963) + r[t(1672)].join(", ")); + this.definition = x; + const r = this[t(1348)](); + if (!r[t(295)]) throw new Error(t(1592) + r[t(638)].join(", ")); } - [a(2621)]() { + validate() { const x = a, t = []; - (!this.definition[x(1102)] || Object[x(750)](this[x(2814)][x(1102)])[x(692)] === 0) && t.push("Graph must have at least one node"); - for (const [e, s] of this[x(2814)][x(1992)]) - !this[x(2814)][x(1102)][e] && t[x(452)](x(1427) + e), !this[x(2814)][x(1102)][s] && t[x(452)](x(915) + s); - const r = this[x(2710)](); - return !r[x(614)] && t[x(452)](...r.errors), { valid: t[x(692)] === 0, errors: t }; + (!this[x(1259)][x(1064)] || Object[x(1806)](this[x(1259)][x(1064)])[x(1332)] === 0) && t[x(902)](x(2248)); + for (const [e, s] of this[x(1259)].edges) + !this[x(1259)][x(1064)][e] && t.push(x(2649) + e), !this[x(1259)][x(1064)][s] && t[x(902)]("Edge references unknown target node: " + s); + const r = this[x(2143)](); + return !r[x(295)] && t[x(902)](...r.errors), { valid: t[x(1332)] === 0, errors: t }; } - [a(2112)]() { + buildDirectedAdjacencyList() { const x = a, t = /* @__PURE__ */ new Map(); - for (const r of Object.keys(this[x(2814)][x(1102)])) - t[x(758)](r, []); - for (const [r, e] of this[x(2814)].edges) { - const s = t[x(1075)](r) || []; - s[x(452)](e), t[x(758)](r, s); + for (const r of Object[x(1806)](this[x(1259)][x(1064)])) + t[x(1750)](r, []); + for (const [r, e] of this[x(1259)][x(2194)]) { + const s = t[x(1094)](r) || []; + s[x(902)](e), t.set(r, s); } return t; } - [a(2710)]() { - const x = a, t = [], r = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set(), s = this[x(2112)](), n = (i, c) => { + [(ts = a(1259), a(2143))]() { + const x = a, t = [], r = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set(), s = this[x(710)](), n = (i, c) => { const u = x; - if (e[u(2075)](i)) { - const f = c.indexOf(i), l = c[u(2088)](f)[u(2044)](i); - return t.push(u(1676) + l[u(2137)](u(2718))), !0; + if (e[u(441)](i)) { + const l = c[u(1104)](i), f = c[u(2103)](l)[u(1545)](i); + return t[u(902)](u(369) + f[u(2252)](u(2321))), !0; } - if (r.has(i)) return !1; - r[u(2655)](i), e[u(2655)](i); - const d = s[u(1075)](i) || []; - for (const f of d) - if (n(f, [...c, i])) return !0; - return e[u(2215)](i), !1; + if (r[u(441)](i)) return !1; + r[u(479)](i), e[u(479)](i); + const d = s[u(1094)](i) || []; + for (const l of d) + if (n(l, [...c, i])) return !0; + return e[u(882)](i), !1; }; - for (const i of Object[x(750)](this[x(2814)][x(1102)])) - !r[x(2075)](i) && n(i, []); - return { valid: t[x(692)] === 0, errors: t }; + for (const i of Object[x(1806)](this[x(1259)][x(1064)])) + !r[x(441)](i) && n(i, []); + return { valid: t.length === 0, errors: t }; } - [a(1740)]() { + [a(584)]() { const x = a, t = /* @__PURE__ */ new Map(); - for (const r of Object[x(750)](this[x(2814)][x(1102)])) - t.set(r, []); - for (const [r, e] of this[x(2814)].edges) { - const s = t[x(1075)](r) || []; - s.push(e), t[x(758)](r, s); + for (const r of Object.keys(this[x(1259)].nodes)) + t[x(1750)](r, []); + for (const [r, e] of this[x(1259)][x(2194)]) { + const s = t.get(r) || []; + s.push(e), t.set(r, s); const n = t.get(e) || []; - n.push(r), t[x(758)](e, n); + n.push(r), t[x(1750)](e, n); } return t; } - [a(1683)](x) { + [a(1084)](x) { const t = a; - return this.buildAdjacencyList()[t(1075)](x) || []; + return this.buildAdjacencyList()[t(1094)](x) || []; } - [a(1366)](x) { - const t = a; - return this[t(2814)][t(1102)][x]; + [a(1234)](x) { + return this[a(1259)].nodes[x]; } - [a(2484)]() { + [a(2025)]() { const x = a; - return Object[x(750)](this.definition[x(1102)]); + return Object[x(1806)](this[x(1259)][x(1064)]); } - [a(2360)](x, t) { + [a(1520)](x, t) { const r = a; - return this.definition[r(1992)].some(([e, s]) => e === x && s === t || e === t && s === x); + return this[r(1259)][r(2194)][r(284)](([e, s]) => e === x && s === t || e === t && s === x); } - [a(2545)](x, t) { + [a(896)](x, t) { const r = a; if (x === t) return [x]; - const e = this[r(1740)](), s = [{ nodeId: x, path: [x] }], n = /* @__PURE__ */ new Set(); - for (; s.length > 0; ) { - const { nodeId: i, path: c } = s[r(252)](); - if (n[r(2075)](i)) continue; - if (n[r(2655)](i), i === t) return c; - const u = e[r(1075)](i) || []; + const e = this[r(584)](), s = [{ nodeId: x, path: [x] }], n = /* @__PURE__ */ new Set(); + for (; s[r(1332)] > 0; ) { + const { nodeId: i, path: c } = s[r(2281)](); + if (n[r(441)](i)) continue; + if (n[r(479)](i), i === t) return c; + const u = e[r(1094)](i) || []; for (const d of u) - !n.has(d) && s.push({ nodeId: d, path: [...c, d] }); + !n[r(441)](d) && s[r(902)]({ nodeId: d, path: [...c, d] }); } return null; } - [a(1489)](x, t) { - return this[a(2545)](x, t) !== null; + hasPath(x, t) { + return this[a(896)](x, t) !== null; } - [a(1655)]() { - return { ...this[a(2814)] }; + getDefinition() { + return { ...this[a(1259)] }; } } -const Ra = (o) => { +const Ca = (o) => { let x; const t = /* @__PURE__ */ new Set(), r = (u, d) => { - const f = K, l = typeof u === f(1622) ? u(x) : u; - if (!Object.is(l, x)) { + const l = K, f = typeof u == "function" ? u(x) : u; + if (!Object.is(f, x)) { const b = x; - x = d ?? (typeof l != "object" || l === null) ? l : Object[f(1191)]({}, x, l), t[f(1471)]((h) => h(x, b)); + x = d ?? (typeof f !== l(2844) || f === null) ? f : Object[l(2873)]({}, x, f), t[l(1953)]((h) => h(x, b)); } }, e = () => x, s = () => c, n = (u) => { const d = K; - return t.add(u), () => t[d(2215)](u); + return t[d(479)](u), () => t[d(882)](u); }, i = { setState: r, getState: e, getInitialState: s, subscribe: n }, c = x = o(r, e, i); return i; -}, Ln = (o) => o ? Ra(o) : Ra; -var T0; +}, Hn = (o) => o ? Ca(o) : Ca; +var Te; (function(o) { const x = a; - o[x(2151)] = (s) => { + o[x(1410)] = (s) => { }; function t(s) { } - o[x(2570)] = t; + o[x(1626)] = t; function r(s) { throw new Error(); } - o[x(2266)] = r, o[x(1692)] = (s) => { + o[x(907)] = r, o.arrayToEnum = (s) => { const n = {}; for (const i of s) n[i] = i; return n; }, o.getValidEnumValues = (s) => { - const n = x, i = o[n(1339)](s)[n(2145)]((u) => typeof s[s[u]] !== n(2153)), c = {}; + const n = x, i = o[n(1408)](s)[n(1706)]((u) => typeof s[s[u]] !== n(1206)), c = {}; for (const u of i) c[u] = s[u]; - return o[n(925)](c); - }, o[x(925)] = (s) => { + return o[n(2900)](c); + }, o[x(2900)] = (s) => { const n = x; - return o[n(1339)](s)[n(1649)](function(i) { + return o.objectKeys(s)[n(2742)](function(i) { return s[i]; }); - }, o.objectKeys = typeof Object[x(750)] === x(1622) ? (s) => Object[x(750)](s) : (s) => { + }, o[x(1408)] = typeof Object.keys == "function" ? (s) => Object[x(1806)](s) : (s) => { const n = x, i = []; for (const c in s) - Object[n(2249)][n(873)].call(s, c) && i[n(452)](c); + Object[n(1700)][n(1428)].call(s, c) && i[n(902)](c); return i; - }, o.find = (s, n) => { + }, o[x(1036)] = (s, n) => { for (const i of s) if (n(i)) return i; - }, o.isInteger = typeof Number[x(2844)] === x(1622) ? (s) => Number[x(2844)](s) : (s) => typeof s === x(2153) && Number[x(1812)](s) && Math[x(635)](s) === s; - function e(s, n = x(949)) { + }, o[x(2893)] = typeof Number.isInteger === x(1235) ? (s) => Number.isInteger(s) : (s) => typeof s === x(1206) && Number[x(1272)](s) && Math[x(1412)](s) === s; + function e(s, n = x(2511)) { const i = x; - return s[i(1649)]((c) => typeof c === i(2161) ? "'" + c + "'" : c)[i(2137)](n); + return s[i(2742)]((c) => typeof c == "string" ? "'" + c + "'" : c)[i(2252)](n); } - o.joinValues = e, o[x(2392)] = (s, n) => { - const i = x; - return typeof n === i(1033) ? n[i(766)]() : n; - }; -})(T0 || (T0 = {})); -var Ca; + o[x(1654)] = e, o[x(708)] = (s, n) => typeof n === x(2611) ? n.toString() : n; +})(Te || (Te = {})); +var Ra; (function(o) { const x = a; - o[x(2462)] = (t, r) => ({ ...t, ...r }); -})(Ca || (Ca = {})); -const a0 = T0[a(1692)](["string", a(281), a(2153), "integer", a(2543), a(1146), "date", a(1033), "symbol", "function", a(420), a(845), a(973), a(544), "unknown", a(2447), a(2445), "never", a(1649), "set"]), Ee = (o) => { + o[x(1933)] = (t, r) => ({ ...t, ...r }); +})(Ra || (Ra = {})); +const ae = Te[a(1371)]([a(1653), "nan", a(1206), a(1605), a(1521), a(1001), "date", a(2611), "symbol", a(1235), a(2694), a(1589), a(2173), "object", a(1979), a(1114), a(698), a(1574), a(2742), a(1750)]), I0 = (o) => { const x = a; switch (typeof o) { - case "undefined": - return a0[x(420)]; - case x(2161): - return a0[x(2161)]; - case x(2153): - return Number.isNaN(o) ? a0.nan : a0[x(2153)]; - case x(1146): - return a0[x(1146)]; - case x(1622): - return a0[x(1622)]; - case x(1033): - return a0[x(1033)]; - case x(1100): - return a0[x(1100)]; - case x(544): - return Array.isArray(o) ? a0[x(973)] : o === null ? a0[x(845)] : o.then && typeof o[x(2403)] == "function" && o[x(1995)] && typeof o[x(1995)] === x(1622) ? a0[x(2447)] : typeof Map !== x(420) && o instanceof Map ? a0.map : typeof Set !== x(420) && o instanceof Set ? a0[x(758)] : typeof Date !== x(420) && o instanceof Date ? a0[x(959)] : a0.object; + case x(2694): + return ae[x(2694)]; + case x(1653): + return ae[x(1653)]; + case x(1206): + return Number[x(2232)](o) ? ae[x(930)] : ae[x(1206)]; + case x(1001): + return ae[x(1001)]; + case "function": + return ae[x(1235)]; + case x(2611): + return ae.bigint; + case "symbol": + return ae[x(2169)]; + case x(2844): + return Array.isArray(o) ? ae.array : o === null ? ae.null : o[x(723)] && typeof o.then == "function" && o[x(1539)] && typeof o[x(1539)] === x(1235) ? ae.promise : typeof Map !== x(2694) && o instanceof Map ? ae[x(2742)] : typeof Set !== x(2694) && o instanceof Set ? ae[x(1750)] : typeof Date !== x(2694) && o instanceof Date ? ae[x(2714)] : ae[x(2844)]; default: - return a0[x(247)]; + return ae[x(1979)]; } -}, Z = T0[a(1692)]([a(1801), a(2051), a(806), a(2771), a(1509), a(353), a(354), a(2383), "invalid_return_type", a(2839), a(2233), a(1057), a(175), "invalid_intersection_types", a(1875), a(1650)]); -class ke extends Error { - get [a(1672)]() { - return this[a(1157)]; +}, W = Te[a(1371)](["invalid_type", a(419), "custom", "invalid_union", a(807), "invalid_enum_value", a(1913), "invalid_arguments", a(1325), a(2728), a(2835), a(1487), a(2479), a(1645), a(1540), "not_finite"]); +class k0 extends Error { + get [a(638)]() { + return this[a(2196)]; } constructor(x) { const t = a; - super(), this[t(1157)] = [], this[t(2847)] = (e) => { + super(), this[t(2196)] = [], this.addIssue = (e) => { const s = t; - this[s(1157)] = [...this[s(1157)], e]; - }, this[t(351)] = (e = []) => { + this[s(2196)] = [...this[s(2196)], e]; + }, this[t(786)] = (e = []) => { const s = t; - this[s(1157)] = [...this[s(1157)], ...e]; + this[s(2196)] = [...this[s(2196)], ...e]; }; const r = new.target.prototype; - Object[t(188)] ? Object[t(188)](this, r) : this[t(1549)] = r, this.name = t(1708), this[t(1157)] = x; + Object[t(2580)] ? Object[t(2580)](this, r) : this[t(2527)] = r, this[t(2481)] = t(526), this.issues = x; } - [a(2197)](x) { + format(x) { const t = x || function(s) { return s.message; }, r = { _errors: [] }, e = (s) => { const n = K; - for (const i of s[n(1157)]) - if (i.code === "invalid_union") i[n(2117)][n(1649)](e); - else if (i[n(1172)] === n(2097)) e(i.returnTypeError); - else if (i[n(1172)] === n(2383)) e(i.argumentsError); - else if (i.path[n(692)] === 0) r[n(1507)][n(452)](t(i)); + for (const i of s[n(2196)]) + if (i[n(586)] === "invalid_union") i.unionErrors[n(2742)](e); + else if (i.code === n(1325)) e(i[n(2607)]); + else if (i[n(586)] === n(909)) e(i.argumentsError); + else if (i[n(2475)][n(1332)] === 0) r[n(1875)].push(t(i)); else { let c = r, u = 0; - for (; u < i[n(2619)][n(692)]; ) { - const d = i.path[u]; - u === i.path[n(692)] - 1 ? (c[d] = c[d] || { _errors: [] }, c[d]._errors[n(452)](t(i))) : c[d] = c[d] || { _errors: [] }, c = c[d], u++; + for (; u < i[n(2475)][n(1332)]; ) { + const d = i[n(2475)][u]; + u === i.path[n(1332)] - 1 ? (c[d] = c[d] || { _errors: [] }, c[d][n(1875)][n(902)](t(i))) : c[d] = c[d] || { _errors: [] }, c = c[d], u++; } } }; return e(this), r; } - static [a(1930)](x) { - const t = a; - if (!(x instanceof ke)) throw new Error(t(227) + x); + static assert(x) { + if (!(x instanceof k0)) throw new Error("Not a ZodError: " + x); } - [a(766)]() { - return this[a(225)]; + [a(2032)]() { + return this[a(615)]; } get message() { const x = a; - return JSON[x(2625)](this[x(1157)], T0[x(2392)], 2); + return JSON[x(306)](this[x(2196)], Te[x(708)], 2); } - get [a(401)]() { + get [a(269)]() { const x = a; - return this[x(1157)][x(692)] === 0; + return this[x(2196)][x(1332)] === 0; } - [a(849)](x = (t) => t.message) { + flatten(x = (t) => t.message) { const t = a, r = {}, e = []; - for (const s of this.issues) - if (s.path[t(692)] > 0) { - const n = s[t(2619)][0]; - r[n] = r[n] || [], r[n].push(x(s)); - } else e[t(452)](x(s)); + for (const s of this[t(2196)]) + if (s.path[t(1332)] > 0) { + const n = s.path[0]; + r[n] = r[n] || [], r[n][t(902)](x(s)); + } else e[t(902)](x(s)); return { formErrors: e, fieldErrors: r }; } - get [a(1165)]() { - return this[a(849)](); + get formErrors() { + return this.flatten(); } } -ke.create = (o) => new ke(o); +k0[a(2469)] = (o) => new k0(o); const Ut = (o, x) => { const t = a; let r; - switch (o.code) { - case Z[t(1801)]: - o[t(2848)] === a0.undefined ? r = t(231) : r = t(970) + o[t(1085)] + t(1785) + o[t(2848)]; + switch (o[t(586)]) { + case W[t(2127)]: + o[t(1192)] === ae[t(2694)] ? r = t(1443) : r = t(2874) + o[t(1815)] + t(260) + o[t(1192)]; break; - case Z[t(2051)]: - r = t(821) + JSON[t(2625)](o[t(1085)], T0[t(2392)]); + case W[t(419)]: + r = "Invalid literal value, expected " + JSON[t(306)](o.expected, Te[t(708)]); break; - case Z[t(354)]: - r = t(1175) + T0[t(1162)](o[t(750)], ", "); + case W[t(1913)]: + r = t(1073) + Te[t(1654)](o[t(1806)], ", "); break; - case Z.invalid_union: - r = "Invalid input"; + case W[t(1243)]: + r = t(2888); break; - case Z.invalid_union_discriminator: - r = t(1959) + T0[t(1162)](o[t(1005)]); + case W[t(807)]: + r = t(2488) + Te[t(1654)](o[t(961)]); break; - case Z[t(353)]: - r = t(2076) + T0[t(1162)](o.options) + t(1493) + o[t(2848)] + "'"; + case W[t(1593)]: + r = t(1819) + Te[t(1654)](o[t(961)]) + t(1673) + o.received + "'"; break; - case Z[t(2383)]: - r = t(1348); + case W[t(909)]: + r = "Invalid function arguments"; break; - case Z.invalid_return_type: - r = t(1083); + case W[t(1325)]: + r = t(314); break; - case Z.invalid_date: - r = "Invalid date"; + case W.invalid_date: + r = t(2400); break; - case Z[t(2233)]: - typeof o[t(1711)] === t(544) ? "includes" in o[t(1711)] ? (r = t(1097) + o[t(1711)][t(1150)] + '"', typeof o[t(1711)][t(467)] === t(2153) && (r = r + t(568) + o.validation[t(467)])) : t(1955) in o[t(1711)] ? r = 'Invalid input: must start with "' + o[t(1711)][t(1955)] + '"' : t(1451) in o[t(1711)] ? r = t(1869) + o[t(1711)][t(1451)] + '"' : T0[t(2266)](o.validation) : o[t(1711)] !== t(2764) ? r = t(831) + o.validation : r = t(171); + case W[t(2835)]: + typeof o.validation == "object" ? t(2798) in o[t(519)] ? (r = t(1312) + o[t(519)][t(2798)] + '"', typeof o[t(519)][t(534)] == "number" && (r = r + " at one or more positions greater than or equal to " + o.validation[t(534)])) : "startsWith" in o.validation ? r = t(642) + o[t(519)].startsWith + '"' : t(2891) in o[t(519)] ? r = t(751) + o[t(519)][t(2891)] + '"' : Te[t(907)](o[t(519)]) : o.validation !== t(2830) ? r = t(1017) + o[t(519)] : r = "Invalid"; break; - case Z[t(1057)]: - o[t(612)] === t(973) ? r = t(1591) + (o[t(1084)] ? t(1195) : o[t(1362)] ? t(267) : t(1948)) + " " + o[t(546)] + t(2045) : o[t(612)] === t(2161) ? r = "String must contain " + (o[t(1084)] ? t(1195) : o[t(1362)] ? t(267) : t(498)) + " " + o.minimum + t(1728) : o[t(612)] === t(2153) ? r = "Number must be " + (o[t(1084)] ? t(2144) : o[t(1362)] ? t(578) : "greater than ") + o[t(546)] : o[t(612)] === "bigint" ? r = t(1770) + (o[t(1084)] ? t(2144) : o[t(1362)] ? t(578) : "greater than ") + o[t(546)] : o.type === t(959) ? r = t(668) + (o[t(1084)] ? t(2144) : o[t(1362)] ? "greater than or equal to " : t(874)) + new Date(Number(o[t(546)])) : r = t(2657); + case W[t(1487)]: + o[t(190)] === t(2173) ? r = t(457) + (o[t(300)] ? "exactly" : o[t(360)] ? t(1742) : t(191)) + " " + o[t(962)] + t(1478) : o[t(190)] === t(1653) ? r = t(2753) + (o[t(300)] ? t(855) : o[t(360)] ? t(1742) : t(1068)) + " " + o.minimum + t(1864) : o[t(190)] === "number" ? r = "Number must be " + (o[t(300)] ? t(2166) : o[t(360)] ? t(2575) : t(1477)) + o[t(962)] : o.type === t(2611) ? r = t(1267) + (o[t(300)] ? "exactly equal to " : o[t(360)] ? t(2575) : t(1477)) + o.minimum : o.type === "date" ? r = t(1187) + (o[t(300)] ? t(2166) : o.inclusive ? "greater than or equal to " : "greater than ") + new Date(Number(o[t(962)])) : r = t(2888); break; - case Z.too_big: - o.type === "array" ? r = t(1591) + (o[t(1084)] ? t(1195) : o[t(1362)] ? t(1093) : t(1636)) + " " + o[t(2536)] + " element(s)" : o.type === t(2161) ? r = t(557) + (o[t(1084)] ? t(1195) : o.inclusive ? "at most" : t(1177)) + " " + o.maximum + t(1728) : o[t(612)] === t(2153) ? r = t(1770) + (o[t(1084)] ? "exactly" : o[t(1362)] ? t(1161) : t(1636)) + " " + o[t(2536)] : o[t(612)] === t(1033) ? r = t(726) + (o[t(1084)] ? t(1195) : o[t(1362)] ? t(1161) : "less than") + " " + o[t(2536)] : o[t(612)] === t(959) ? r = t(668) + (o[t(1084)] ? t(1195) : o.inclusive ? t(304) : t(1159)) + " " + new Date(Number(o[t(2536)])) : r = t(2657); + case W[t(2479)]: + o[t(190)] === t(2173) ? r = "Array must contain " + (o[t(300)] ? t(855) : o[t(360)] ? t(602) : "less than") + " " + o[t(248)] + t(1478) : o[t(190)] === t(1653) ? r = t(2753) + (o[t(300)] ? "exactly" : o[t(360)] ? t(602) : t(2739)) + " " + o[t(248)] + t(1864) : o.type === t(1206) ? r = t(1267) + (o[t(300)] ? t(855) : o[t(360)] ? t(539) : t(1678)) + " " + o[t(248)] : o.type === t(2611) ? r = t(490) + (o[t(300)] ? t(855) : o[t(360)] ? t(539) : "less than") + " " + o[t(248)] : o[t(190)] === t(2714) ? r = t(1187) + (o.exact ? "exactly" : o[t(360)] ? "smaller than or equal to" : t(2e3)) + " " + new Date(Number(o.maximum)) : r = t(2888); break; - case Z[t(806)]: - r = t(2657); + case W[t(1893)]: + r = t(2888); break; - case Z[t(2121)]: - r = t(2773); + case W.invalid_intersection_types: + r = t(1752); break; - case Z[t(1875)]: - r = "Number must be a multiple of " + o[t(888)]; + case W.not_multiple_of: + r = t(1727) + o[t(749)]; break; - case Z[t(1650)]: - r = t(1997); + case W.not_finite: + r = t(731); break; default: - r = x[t(2641)], T0[t(2266)](o); + r = x.defaultError, Te[t(907)](o); } return { message: r }; }; -let $n = Ut; -function Un() { - return $n; +let zn = Ut; +function Vn() { + return zn; } -const Hn = (o) => { - const x = a, { data: t, path: r, errorMaps: e, issueData: s } = o, n = [...r, ...s[x(2619)] || []], i = { ...s, path: n }; - if (s[x(225)] !== void 0) return { ...s, path: n, message: s[x(225)] }; +const Bn = (o) => { + const x = a, { data: t, path: r, errorMaps: e, issueData: s } = o, n = [...r, ...s[x(2475)] || []], i = { ...s, path: n }; + if (s[x(615)] !== void 0) return { ...s, path: n, message: s[x(615)] }; let c = ""; - const u = e[x(2145)]((d) => !!d)[x(2088)]().reverse(); + const u = e.filter((d) => !!d)[x(2103)]()[x(177)](); for (const d of u) - c = d(i, { data: t, defaultError: c })[x(225)]; + c = d(i, { data: t, defaultError: c })[x(615)]; return { ...s, path: n, message: c }; }; function Y(o, x) { - const t = a, r = Un(), e = Hn({ issueData: x, data: o[t(909)], path: o.path, errorMaps: [o[t(2421)][t(2362)], o[t(590)], r, r === Ut ? void 0 : Ut][t(2145)]((s) => !!s) }); - o[t(2421)].issues.push(e); + const t = a, r = Vn(), e = Bn({ issueData: x, data: o[t(2887)], path: o[t(2475)], errorMaps: [o.common[t(305)], o[t(1078)], r, r === Ut ? void 0 : Ut][t(1706)]((s) => !!s) }); + o.common.issues[t(902)](e); } -class ee { +class e0 { constructor() { const x = a; - this[x(1732)] = x(614); + this[x(998)] = "valid"; } - [a(1357)]() { + [a(973)]() { const x = a; - this[x(1732)] === "valid" && (this[x(1732)] = x(1357)); + this[x(998)] === x(295) && (this[x(998)] = x(973)); } - [a(1284)]() { + [a(2693)]() { const x = a; - this.value !== x(532) && (this[x(1732)] = x(532)); + this[x(998)] !== x(2234) && (this.value = x(2234)); } static mergeArray(x, t) { const r = a, e = []; for (const s of t) { - if (s[r(2861)] === r(532)) return h0; - s[r(2861)] === "dirty" && x[r(1357)](), e[r(452)](s[r(1732)]); + if (s.status === r(2234)) return he; + s[r(2745)] === "dirty" && x.dirty(), e[r(902)](s[r(998)]); } - return { status: x[r(1732)], value: e }; + return { status: x[r(998)], value: e }; } - static async [a(1917)](x, t) { + static async [a(1070)](x, t) { const r = a, e = []; for (const s of t) { - const n = await s.key, i = await s[r(1732)]; - e[r(452)]({ key: n, value: i }); + const n = await s.key, i = await s.value; + e[r(902)]({ key: n, value: i }); } - return ee[r(565)](x, e); + return e0[r(439)](x, e); } - static [a(565)](x, t) { + static [a(439)](x, t) { const r = a, e = {}; for (const s of t) { const { key: n, value: i } = s; - if (n.status === r(532) || i.status === "aborted") return h0; - n[r(2861)] === r(1357) && x[r(1357)](), i[r(2861)] === "dirty" && x[r(1357)](), n[r(1732)] !== r(1549) && (typeof i[r(1732)] !== r(420) || s[r(2884)]) && (e[n[r(1732)]] = i[r(1732)]); + if (n[r(2745)] === r(2234) || i[r(2745)] === r(2234)) return he; + n[r(2745)] === r(973) && x[r(973)](), i.status === r(973) && x[r(973)](), n[r(998)] !== "__proto__" && (typeof i[r(998)] < "u" || s[r(967)]) && (e[n[r(998)]] = i.value); } - return { status: x[r(1732)], value: e }; + return { status: x.value, value: e }; } } -const h0 = Object.freeze({ status: "aborted" }), Qe = (o) => ({ status: "dirty", value: o }), ae = (o) => ({ status: a(614), value: o }), Fa = (o) => o[a(2861)] === a(532), Na = (o) => o[a(2861)] === a(1357), Ve = (o) => o.status === a(614), bx = (o) => typeof Promise !== a(420) && o instanceof Promise; -var r0; +const he = Object[a(1230)]({ status: a(2234) }), Q0 = (o) => ({ status: a(973), value: o }), a0 = (o) => ({ status: a(295), value: o }), Fa = (o) => o[a(2745)] === "aborted", Na = (o) => o[a(2745)] === a(973), V0 = (o) => o[a(2745)] === a(295), bx = (o) => typeof Promise !== a(2694) && o instanceof Promise; +var re; (function(o) { const x = a; - o[x(1053)] = (t) => typeof t == "string" ? { message: t } : t || {}, o[x(766)] = (t) => typeof t == "string" ? t : t == null ? void 0 : t[x(225)]; -})(r0 || (r0 = {})); -class he { + o[x(692)] = (t) => typeof t == "string" ? { message: t } : t || {}, o.toString = (t) => typeof t == "string" ? t : t == null ? void 0 : t[x(615)]; +})(re || (re = {})); +class p0 { constructor(x, t, r, e) { const s = a; - this[s(216)] = [], this[s(1207)] = x, this.data = t, this[s(2156)] = r, this[s(2868)] = e; + this[s(1718)] = [], this[s(1361)] = x, this.data = t, this[s(1087)] = r, this[s(2890)] = e; } - get [a(2619)]() { + get [a(2475)]() { const x = a; - return !this[x(216)][x(692)] && (Array.isArray(this[x(2868)]) ? this[x(216)].push(...this._path, ...this._key) : this[x(216)].push(...this[x(2156)], this[x(2868)])), this._cachedPath; + return !this[x(1718)][x(1332)] && (Array.isArray(this[x(2890)]) ? this[x(1718)][x(902)](...this[x(1087)], ...this._key) : this[x(1718)][x(902)](...this[x(1087)], this[x(2890)])), this[x(1718)]; } } const Ta = (o, x) => { const t = a; - if (Ve(x)) return { success: !0, data: x[t(1732)] }; - if (!o[t(2421)][t(1157)][t(692)]) throw new Error(t(1454)); + if (V0(x)) return { success: !0, data: x[t(998)] }; + if (!o[t(1249)][t(2196)][t(1332)]) throw new Error(t(1046)); return { success: !1, get error() { const r = t; - if (this[r(1934)]) return this[r(1934)]; - const e = new ke(o[r(2421)][r(1157)]); - return this._error = e, this[r(1934)]; + if (this[r(2862)]) return this[r(2862)]; + const e = new k0(o[r(1249)].issues); + return this[r(2862)] = e, this._error; } }; }; -function y0(o) { - const x = a; +function ve(o) { if (!o) return {}; - const { errorMap: t, invalid_type_error: r, required_error: e, description: s } = o; - if (t && (r || e)) throw new Error(x(295)); - return t ? { errorMap: t, description: s } : { errorMap: (i, c) => { - const u = x, { message: d } = o; - return i[u(1172)] === "invalid_enum_value" ? { message: d ?? c[u(2641)] } : typeof c[u(909)] === u(420) ? { message: d ?? e ?? c[u(2641)] } : i[u(1172)] !== u(1801) ? { message: c[u(2641)] } : { message: d ?? r ?? c[u(2641)] }; - }, description: s }; + const { errorMap: x, invalid_type_error: t, required_error: r, description: e } = o; + if (x && (t || r)) throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`); + return x ? { errorMap: x, description: e } : { errorMap: (n, i) => { + const c = K, { message: u } = o; + return n.code === c(1593) ? { message: u ?? i[c(2660)] } : typeof i[c(2887)] > "u" ? { message: u ?? r ?? i[c(2660)] } : n[c(586)] !== c(2127) ? { message: i[c(2660)] } : { message: u ?? t ?? i.defaultError }; + }, description: e }; } -class C0 { - get description() { - return this._def.description; +class Fe { + get [a(1120)]() { + const x = a; + return this[x(880)][x(1120)]; } - [a(1640)](x) { - return Ee(x.data); + [a(2571)](x) { + return I0(x[a(2887)]); } - _getOrReturnCtx(x, t) { + [a(2407)](x, t) { const r = a; - return t || { common: x[r(1207)][r(2421)], data: x[r(909)], parsedType: Ee(x[r(909)]), schemaErrorMap: this[r(775)].errorMap, path: x[r(2619)], parent: x.parent }; + return t || { common: x[r(1361)][r(1249)], data: x.data, parsedType: I0(x.data), schemaErrorMap: this[r(880)][r(837)], path: x[r(2475)], parent: x[r(1361)] }; } - [a(1020)](x) { + [a(1050)](x) { const t = a; - return { status: new ee(), ctx: { common: x.parent[t(2421)], data: x[t(909)], parsedType: Ee(x[t(909)]), schemaErrorMap: this[t(775)][t(1653)], path: x[t(2619)], parent: x[t(1207)] } }; + return { status: new e0(), ctx: { common: x[t(1361)][t(1249)], data: x[t(2887)], parsedType: I0(x[t(2887)]), schemaErrorMap: this._def[t(837)], path: x[t(2475)], parent: x[t(1361)] } }; } - _parseSync(x) { - const t = a, r = this[t(1594)](x); - if (bx(r)) throw new Error(t(917)); + [a(447)](x) { + const t = a, r = this[t(1908)](x); + if (bx(r)) throw new Error(t(473)); return r; } - [a(1098)](x) { - const t = a, r = this[t(1594)](x); - return Promise.resolve(r); + _parseAsync(x) { + const t = a, r = this[t(1908)](x); + return Promise[t(1635)](r); } - [a(706)](x, t) { - const r = a, e = this[r(2373)](x, t); - if (e[r(377)]) return e[r(909)]; - throw e[r(948)]; - } - [a(2373)](x, t) { - const r = a, e = { common: { issues: [], async: (t == null ? void 0 : t[r(1973)]) ?? !1, contextualErrorMap: t == null ? void 0 : t.errorMap }, path: (t == null ? void 0 : t.path) || [], schemaErrorMap: this[r(775)][r(1653)], parent: null, data: x, parsedType: Ee(x) }, s = this[r(2802)]({ data: x, path: e[r(2619)], parent: e }); - return Ta(e, s); - } - [a(1792)](x) { - var e, s; - const t = a, r = { common: { issues: [], async: !!this[t(372)][t(1973)] }, path: [], schemaErrorMap: this[t(775)][t(1653)], parent: null, data: x, parsedType: Ee(x) }; - if (!this[t(372)][t(1973)]) try { - const n = this[t(2802)]({ data: x, path: [], parent: r }); - return Ve(n) ? { value: n[t(1732)] } : { issues: r[t(2421)][t(1157)] }; - } catch (n) { - (s = (e = n == null ? void 0 : n[t(225)]) == null ? void 0 : e.toLowerCase()) != null && s[t(1150)](t(447)) && (this[t(372)][t(1973)] = !0), r.common = { issues: [], async: !0 }; - } - return this[t(1098)]({ data: x, path: [], parent: r })[t(2403)]((n) => Ve(n) ? { value: n[t(1732)] } : { issues: r[t(2421)][t(1157)] }); - } - async parseAsync(x, t) { - const r = a, e = await this[r(1741)](x, t); - if (e[r(377)]) return e[r(909)]; + [a(429)](x, t) { + const r = a, e = this[r(2695)](x, t); + if (e[r(2072)]) return e[r(2887)]; throw e.error; } - async [a(1741)](x, t) { - const r = a, e = { common: { issues: [], contextualErrorMap: t == null ? void 0 : t.errorMap, async: !0 }, path: (t == null ? void 0 : t[r(2619)]) || [], schemaErrorMap: this[r(775)].errorMap, parent: null, data: x, parsedType: Ee(x) }, s = this[r(1594)]({ data: x, path: e[r(2619)], parent: e }), n = await (bx(s) ? s : Promise[r(1571)](s)); + [a(2695)](x, t) { + const r = a, e = { common: { issues: [], async: (t == null ? void 0 : t[r(418)]) ?? !1, contextualErrorMap: t == null ? void 0 : t[r(837)] }, path: (t == null ? void 0 : t.path) || [], schemaErrorMap: this[r(880)].errorMap, parent: null, data: x, parsedType: I0(x) }, s = this[r(447)]({ data: x, path: e[r(2475)], parent: e }); + return Ta(e, s); + } + [a(2253)](x) { + var e, s; + const t = a, r = { common: { issues: [], async: !!this["~standard"][t(418)] }, path: [], schemaErrorMap: this[t(880)].errorMap, parent: null, data: x, parsedType: I0(x) }; + if (!this[t(741)].async) try { + const n = this[t(447)]({ data: x, path: [], parent: r }); + return V0(n) ? { value: n.value } : { issues: r.common[t(2196)] }; + } catch (n) { + (s = (e = n == null ? void 0 : n[t(615)]) == null ? void 0 : e[t(2522)]()) != null && s[t(2798)](t(2074)) && (this[t(741)][t(418)] = !0), r[t(1249)] = { issues: [], async: !0 }; + } + return this[t(1810)]({ data: x, path: [], parent: r })[t(723)]((n) => V0(n) ? { value: n[t(998)] } : { issues: r[t(1249)].issues }); + } + async [a(2572)](x, t) { + const r = a, e = await this[r(1638)](x, t); + if (e.success) return e.data; + throw e[r(2265)]; + } + async [a(1638)](x, t) { + const r = a, e = { common: { issues: [], contextualErrorMap: t == null ? void 0 : t.errorMap, async: !0 }, path: (t == null ? void 0 : t[r(2475)]) || [], schemaErrorMap: this._def[r(837)], parent: null, data: x, parsedType: I0(x) }, s = this._parse({ data: x, path: e[r(2475)], parent: e }), n = await (bx(s) ? s : Promise[r(1635)](s)); return Ta(e, n); } - [a(1703)](x, t) { - const r = a, e = (s) => { - const n = K; - return typeof t === n(2161) || typeof t > "u" ? { message: t } : typeof t === n(1622) ? t(s) : t; + refine(x, t) { + const r = (e) => { + const s = K; + return typeof t == "string" || typeof t === s(2694) ? { message: t } : typeof t === s(1235) ? t(e) : t; }; - return this[r(2737)]((s, n) => { - const i = r, c = x(s), u = () => n[i(2847)]({ code: Z[i(806)], ...e(s) }); - return typeof Promise !== i(420) && c instanceof Promise ? c[i(2403)]((d) => d ? !0 : (u(), !1)) : c ? !0 : (u(), !1); + return this._refinement((e, s) => { + const n = K, i = x(e), c = () => s[n(704)]({ code: W[n(1893)], ...r(e) }); + return typeof Promise < "u" && i instanceof Promise ? i[n(723)]((u) => u ? !0 : (c(), !1)) : i ? !0 : (c(), !1); }); } - [a(414)](x, t) { + refinement(x, t) { const r = a; - return this[r(2737)]((e, s) => { + return this[r(2255)]((e, s) => { const n = r; - return x(e) ? !0 : (s[n(2847)](typeof t === n(1622) ? t(e, s) : t), !1); + return x(e) ? !0 : (s.addIssue(typeof t === n(1235) ? t(e, s) : t), !1); }); } - [a(2737)](x) { + [a(2255)](x) { const t = a; - return new qe({ schema: this, typeName: p0[t(2720)], effect: { type: t(414), refinement: x } }); + return new A0({ schema: this, typeName: pe.ZodEffects, effect: { type: t(1310), refinement: x } }); } - [a(1874)](x) { - return this[a(2737)](x); + [a(2387)](x) { + return this._refinement(x); } constructor(x) { const t = a; - this[t(1921)] = this[t(1741)], this[t(775)] = x, this.parse = this[t(706)].bind(this), this[t(2373)] = this.safeParse.bind(this), this[t(183)] = this.parseAsync[t(2488)](this), this[t(1741)] = this[t(1741)].bind(this), this.spa = this[t(1921)][t(2488)](this), this[t(1703)] = this[t(1703)][t(2488)](this), this[t(414)] = this[t(414)].bind(this), this[t(1874)] = this[t(1874)][t(2488)](this), this[t(1027)] = this[t(1027)][t(2488)](this), this[t(1864)] = this[t(1864)].bind(this), this[t(2227)] = this[t(2227)][t(2488)](this), this[t(973)] = this.array.bind(this), this[t(2447)] = this[t(2447)][t(2488)](this), this.or = this.or[t(2488)](this), this[t(1898)] = this.and[t(2488)](this), this.transform = this[t(538)][t(2488)](this), this[t(2418)] = this[t(2418)][t(2488)](this), this.default = this[t(1944)].bind(this), this.catch = this[t(1995)][t(2488)](this), this[t(190)] = this[t(190)][t(2488)](this), this.pipe = this.pipe[t(2488)](this), this.readonly = this[t(2388)][t(2488)](this), this[t(1123)] = this[t(1123)][t(2488)](this), this[t(2608)] = this[t(2608)][t(2488)](this), this[t(372)] = { version: 1, vendor: t(1782), validate: (r) => this["~validate"](r) }; + this[t(1475)] = this[t(1638)], this[t(880)] = x, this[t(429)] = this[t(429)].bind(this), this[t(2695)] = this[t(2695)][t(591)](this), this[t(2572)] = this[t(2572)][t(591)](this), this[t(1638)] = this[t(1638)][t(591)](this), this[t(1475)] = this.spa[t(591)](this), this.refine = this[t(716)].bind(this), this[t(1310)] = this[t(1310)][t(591)](this), this.superRefine = this[t(2387)][t(591)](this), this[t(2033)] = this[t(2033)][t(591)](this), this[t(2101)] = this[t(2101)][t(591)](this), this[t(1853)] = this[t(1853)][t(591)](this), this.array = this.array.bind(this), this.promise = this.promise[t(591)](this), this.or = this.or[t(591)](this), this[t(1165)] = this[t(1165)].bind(this), this[t(770)] = this[t(770)][t(591)](this), this[t(1413)] = this[t(1413)][t(591)](this), this[t(2222)] = this[t(2222)][t(591)](this), this.catch = this[t(1539)][t(591)](this), this[t(1657)] = this[t(1657)].bind(this), this[t(626)] = this[t(626)][t(591)](this), this.readonly = this[t(2155)][t(591)](this), this.isNullable = this[t(2818)].bind(this), this[t(2809)] = this[t(2809)].bind(this), this[t(741)] = { version: 1, vendor: "zod", validate: (r) => this[t(2253)](r) }; } - [a(1027)]() { + [a(2033)]() { + return w0[a(2469)](this, this._def); + } + [a(2101)]() { const x = a; - return we.create(this, this[x(775)]); + return j0.create(this, this[x(880)]); } - nullable() { + [a(1853)]() { + return this[a(2101)]().optional(); + } + [a(2173)]() { + return h0[a(2469)](this); + } + [a(1114)]() { const x = a; - return De[x(665)](this, this[x(775)]); - } - [a(2227)]() { - const x = a; - return this[x(1864)]()[x(1027)](); - } - [a(973)]() { - return le[a(665)](this); - } - promise() { - const x = a; - return kx[x(665)](this, this[x(775)]); + return kx.create(this, this[x(880)]); } or(x) { + return yx[a(2469)]([this, x], this._def); + } + [a(1165)](x) { const t = a; - return yx.create([this, x], this[t(775)]); + return vx.create(this, x, this[t(880)]); } - [a(1898)](x) { + [a(770)](x) { const t = a; - return vx[t(665)](this, x, this[t(775)]); + return new A0({ ...ve(this[t(880)]), schema: this, typeName: pe[t(2787)], effect: { type: t(770), transform: x } }); } - transform(x) { - const t = a; - return new qe({ ...y0(this[t(775)]), schema: this, typeName: p0[t(2720)], effect: { type: t(538), transform: x } }); + [a(2222)](x) { + const t = a, r = typeof x === t(1235) ? x : () => x; + return new Px({ ...ve(this._def), innerType: this, defaultValue: r, typeName: pe[t(2109)] }); } - [a(1944)](x) { - const t = a, r = typeof x === t(1622) ? x : () => x; - return new Px({ ...y0(this[t(775)]), innerType: this, defaultValue: r, typeName: p0.ZodDefault }); - } - [a(2418)]() { + brand() { const x = a; - return new Ls({ typeName: p0[x(882)], type: this, ...y0(this[x(775)]) }); + return new Hs({ typeName: pe[x(720)], type: this, ...ve(this[x(880)]) }); } - [a(1995)](x) { - const t = a, r = typeof x === t(1622) ? x : () => x; - return new Ix({ ...y0(this._def), innerType: this, catchValue: r, typeName: p0.ZodCatch }); + catch(x) { + const t = a, r = typeof x === t(1235) ? x : () => x; + return new Ex({ ...ve(this._def), innerType: this, catchValue: r, typeName: pe[t(722)] }); } - [a(190)](x) { - const t = a, r = this[t(599)]; - return new r({ ...this[t(775)], description: x }); + [a(1657)](x) { + const t = a, r = this.constructor; + return new r({ ...this[t(880)], description: x }); } - [a(385)](x) { - return oa[a(665)](this, x); + [a(626)](x) { + return oa[a(2469)](this, x); } - [a(2388)]() { - return Ex.create(this); + readonly() { + return Ix[a(2469)](this); } - [a(2608)]() { + [a(2809)]() { const x = a; - return this[x(2373)](void 0)[x(377)]; + return this.safeParse(void 0)[x(2072)]; } - [a(1123)]() { + isNullable() { const x = a; - return this.safeParse(null)[x(377)]; + return this[x(2695)](null)[x(2072)]; } } -const zn = /^c[^\s-]{8,}$/i, Vn = /^[0-9a-z]+$/, Bn = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Zn = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Wn = /^[a-z0-9_-]{21}$/i, Kn = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Gn = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Jn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Qn = a(644); +const Wn = /^c[^\s-]{8,}$/i, Zn = /^[0-9a-z]+$/, Kn = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Gn = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Jn = /^[a-z0-9_-]{21}$/i, Qn = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Xn = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Yn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, eo = a(543); let $x; -const Xn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Yn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, eo = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, xo = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, to = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, ao = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Ds = a(2280), ro = new RegExp("^" + Ds + "$"); -function js(o) { +const xo = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, to = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, ao = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, ro = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, so = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, no = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Ls = a(2836), oo = new RegExp("^" + Ls + "$"); +function $s(o) { const x = a; - let t = x(404); - o[x(1466)] ? t = t + "\\.\\d{" + o[x(1466)] + "}" : o[x(1466)] == null && (t = t + x(333)); - const r = o[x(1466)] ? "+" : "?"; + let t = "[0-5]\\d"; + o[x(1931)] ? t = t + "\\.\\d{" + o.precision + "}" : o[x(1931)] == null && (t = t + x(206)); + const r = o.precision ? "+" : "?"; return "([01]\\d|2[0-3]):[0-5]\\d(:" + t + ")" + r; } -function so(o) { - return new RegExp("^" + js(o) + "$"); +function io(o) { + return new RegExp("^" + $s(o) + "$"); } -function no(o) { +function co(o) { const x = a; - let t = Ds + "T" + js(o); + let t = Ls + "T" + $s(o); const r = []; - return r[x(452)](o[x(253)] ? "Z?" : "Z"), o[x(1142)] && r[x(452)](x(1765)), t = t + "(" + r[x(2137)]("|") + ")", new RegExp("^" + t + "$"); + return r[x(902)](o[x(1488)] ? "Z?" : "Z"), o[x(1229)] && r[x(902)]("([+-]\\d{2}:?\\d{2})"), t = t + "(" + r[x(2252)]("|") + ")", new RegExp("^" + t + "$"); } -function oo(o, x) { +function uo(o, x) { const t = a; - return !!((x === "v4" || !x) && Xn[t(1904)](o) || (x === "v6" || !x) && eo[t(1904)](o)); + return !!((x === "v4" || !x) && xo[t(1055)](o) || (x === "v6" || !x) && ao[t(1055)](o)); } -function io(o, x) { +function lo(o, x) { const t = a; - if (!Kn[t(1904)](o)) return !1; + if (!Qn.test(o)) return !1; try { - const [r] = o[t(628)]("."); + const [r] = o[t(585)]("."); if (!r) return !1; - const e = r[t(575)](/-/g, "+")[t(575)](/_/g, "/")[t(952)](r[t(692)] + (4 - r[t(692)] % 4) % 4, "="), s = JSON.parse(atob(e)); - return !(typeof s !== t(544) || s === null || t(1117) in s && (s == null ? void 0 : s.typ) !== t(510) || !s.alg || x && s.alg !== x); + const e = r[t(784)](/-/g, "+").replace(/_/g, "/")[t(1149)](r.length + (4 - r[t(1332)] % 4) % 4, "="), s = JSON[t(429)](atob(e)); + return !(typeof s != "object" || s === null || t(2092) in s && (s == null ? void 0 : s[t(2092)]) !== "JWT" || !s.alg || x && s[t(2159)] !== x); } catch { return !1; } } -function co(o, x) { +function fo(o, x) { const t = a; - return !!((x === "v4" || !x) && Yn[t(1904)](o) || (x === "v6" || !x) && xo[t(1904)](o)); + return !!((x === "v4" || !x) && to[t(1055)](o) || (x === "v6" || !x) && ro[t(1055)](o)); } -class ve extends C0 { +class v0 extends Fe { _parse(x) { const t = a; - if (this[t(775)].coerce && (x[t(909)] = String(x[t(909)])), this[t(1640)](x) !== a0[t(2161)]) { - const n = this[t(1350)](x); - return Y(n, { code: Z[t(1801)], expected: a0[t(2161)], received: n[t(2573)] }), h0; + if (this[t(880)][t(2791)] && (x.data = String(x[t(2887)])), this._getType(x) !== ae[t(1653)]) { + const n = this[t(2407)](x); + return Y(n, { code: W[t(2127)], expected: ae[t(1653)], received: n[t(2217)] }), he; } - const e = new ee(); + const e = new e0(); let s; - for (const n of this[t(775)].checks) - if (n.kind === t(1279)) x.data[t(692)] < n[t(1732)] && (s = this[t(1350)](x, s), Y(s, { code: Z[t(1057)], minimum: n.value, type: t(2161), inclusive: !0, exact: !1, message: n[t(225)] }), e[t(1357)]()); - else if (n.kind === "max") x[t(909)].length > n[t(1732)] && (s = this._getOrReturnCtx(x, s), Y(s, { code: Z.too_big, maximum: n[t(1732)], type: "string", inclusive: !0, exact: !1, message: n[t(225)] }), e[t(1357)]()); - else if (n[t(1214)] === t(692)) { - const i = x[t(909)][t(692)] > n.value, c = x[t(909)].length < n[t(1732)]; - (i || c) && (s = this[t(1350)](x, s), i ? Y(s, { code: Z[t(175)], maximum: n[t(1732)], type: t(2161), inclusive: !0, exact: !0, message: n[t(225)] }) : c && Y(s, { code: Z[t(1057)], minimum: n.value, type: t(2161), inclusive: !0, exact: !0, message: n[t(225)] }), e[t(1357)]()); - } else if (n.kind === t(2146)) !Jn[t(1904)](x[t(909)]) && (s = this._getOrReturnCtx(x, s), Y(s, { validation: "email", code: Z[t(2233)], message: n.message }), e[t(1357)]()); - else if (n[t(1214)] === t(1301)) !$x && ($x = new RegExp(Qn, "u")), !$x[t(1904)](x[t(909)]) && (s = this._getOrReturnCtx(x, s), Y(s, { validation: t(1301), code: Z[t(2233)], message: n.message }), e[t(1357)]()); - else if (n.kind === t(431)) !Zn[t(1904)](x[t(909)]) && (s = this[t(1350)](x, s), Y(s, { validation: t(431), code: Z[t(2233)], message: n[t(225)] }), e.dirty()); - else if (n.kind === t(1046)) !Wn[t(1904)](x.data) && (s = this[t(1350)](x, s), Y(s, { validation: t(1046), code: Z[t(2233)], message: n[t(225)] }), e[t(1357)]()); - else if (n[t(1214)] === "cuid") !zn[t(1904)](x.data) && (s = this[t(1350)](x, s), Y(s, { validation: t(1488), code: Z.invalid_string, message: n.message }), e[t(1357)]()); - else if (n[t(1214)] === t(2762)) !Vn[t(1904)](x[t(909)]) && (s = this[t(1350)](x, s), Y(s, { validation: "cuid2", code: Z[t(2233)], message: n.message }), e.dirty()); - else if (n[t(1214)] === t(2104)) !Bn.test(x[t(909)]) && (s = this[t(1350)](x, s), Y(s, { validation: "ulid", code: Z[t(2233)], message: n.message }), e[t(1357)]()); - else if (n[t(1214)] === t(2638)) try { - new URL(x.data); + for (const n of this[t(880)][t(1043)]) + if (n[t(1960)] === t(1414)) x[t(2887)][t(1332)] < n.value && (s = this[t(2407)](x, s), Y(s, { code: W[t(1487)], minimum: n[t(998)], type: t(1653), inclusive: !0, exact: !1, message: n[t(615)] }), e[t(973)]()); + else if (n[t(1960)] === "max") x[t(2887)][t(1332)] > n[t(998)] && (s = this[t(2407)](x, s), Y(s, { code: W[t(2479)], maximum: n[t(998)], type: t(1653), inclusive: !0, exact: !1, message: n[t(615)] }), e[t(973)]()); + else if (n[t(1960)] === t(1332)) { + const i = x[t(2887)][t(1332)] > n[t(998)], c = x[t(2887)].length < n[t(998)]; + (i || c) && (s = this[t(2407)](x, s), i ? Y(s, { code: W[t(2479)], maximum: n[t(998)], type: t(1653), inclusive: !0, exact: !0, message: n.message }) : c && Y(s, { code: W[t(1487)], minimum: n[t(998)], type: t(1653), inclusive: !0, exact: !0, message: n[t(615)] }), e.dirty()); + } else if (n[t(1960)] === t(712)) !Yn[t(1055)](x[t(2887)]) && (s = this[t(2407)](x, s), Y(s, { validation: t(712), code: W[t(2835)], message: n[t(615)] }), e.dirty()); + else if (n[t(1960)] === "emoji") !$x && ($x = new RegExp(eo, "u")), !$x.test(x[t(2887)]) && (s = this[t(2407)](x, s), Y(s, { validation: "emoji", code: W[t(2835)], message: n.message }), e[t(973)]()); + else if (n.kind === t(2491)) !Gn.test(x[t(2887)]) && (s = this[t(2407)](x, s), Y(s, { validation: t(2491), code: W[t(2835)], message: n.message }), e[t(973)]()); + else if (n[t(1960)] === t(2439)) !Jn.test(x.data) && (s = this[t(2407)](x, s), Y(s, { validation: t(2439), code: W[t(2835)], message: n[t(615)] }), e.dirty()); + else if (n[t(1960)] === "cuid") !Wn[t(1055)](x[t(2887)]) && (s = this[t(2407)](x, s), Y(s, { validation: "cuid", code: W[t(2835)], message: n[t(615)] }), e[t(973)]()); + else if (n[t(1960)] === "cuid2") !Zn.test(x[t(2887)]) && (s = this[t(2407)](x, s), Y(s, { validation: t(184), code: W[t(2835)], message: n[t(615)] }), e[t(973)]()); + else if (n[t(1960)] === "ulid") !Kn.test(x[t(2887)]) && (s = this._getOrReturnCtx(x, s), Y(s, { validation: t(1152), code: W[t(2835)], message: n[t(615)] }), e[t(973)]()); + else if (n.kind === t(1158)) try { + new URL(x[t(2887)]); } catch { - s = this[t(1350)](x, s), Y(s, { validation: "url", code: Z.invalid_string, message: n[t(225)] }), e[t(1357)](); + s = this[t(2407)](x, s), Y(s, { validation: t(1158), code: W.invalid_string, message: n[t(615)] }), e[t(973)](); } else - n[t(1214)] === t(2764) ? (n[t(2764)].lastIndex = 0, !n.regex[t(1904)](x[t(909)]) && (s = this._getOrReturnCtx(x, s), Y(s, { validation: t(2764), code: Z[t(2233)], message: n.message }), e[t(1357)]())) : n[t(1214)] === t(2444) ? x[t(909)] = x[t(909)][t(2444)]() : n[t(1214)] === t(1150) ? !x.data.includes(n[t(1732)], n[t(467)]) && (s = this[t(1350)](x, s), Y(s, { code: Z.invalid_string, validation: { includes: n[t(1732)], position: n[t(467)] }, message: n[t(225)] }), e[t(1357)]()) : n[t(1214)] === t(556) ? x[t(909)] = x[t(909)].toLowerCase() : n[t(1214)] === t(2520) ? x[t(909)] = x[t(909)][t(2520)]() : n[t(1214)] === t(1955) ? !x[t(909)][t(1955)](n[t(1732)]) && (s = this[t(1350)](x, s), Y(s, { code: Z[t(2233)], validation: { startsWith: n.value }, message: n.message }), e[t(1357)]()) : n[t(1214)] === t(1451) ? !x[t(909)][t(1451)](n[t(1732)]) && (s = this._getOrReturnCtx(x, s), Y(s, { code: Z[t(2233)], validation: { endsWith: n[t(1732)] }, message: n.message }), e[t(1357)]()) : n[t(1214)] === "datetime" ? !no(n).test(x[t(909)]) && (s = this._getOrReturnCtx(x, s), Y(s, { code: Z[t(2233)], validation: t(2455), message: n.message }), e.dirty()) : n[t(1214)] === t(959) ? !ro.test(x[t(909)]) && (s = this._getOrReturnCtx(x, s), Y(s, { code: Z[t(2233)], validation: "date", message: n[t(225)] }), e[t(1357)]()) : n[t(1214)] === t(289) ? !so(n)[t(1904)](x[t(909)]) && (s = this[t(1350)](x, s), Y(s, { code: Z[t(2233)], validation: t(289), message: n.message }), e[t(1357)]()) : n[t(1214)] === t(1568) ? !Gn[t(1904)](x[t(909)]) && (s = this._getOrReturnCtx(x, s), Y(s, { validation: t(1568), code: Z[t(2233)], message: n[t(225)] }), e[t(1357)]()) : n[t(1214)] === "ip" ? !oo(x[t(909)], n[t(685)]) && (s = this[t(1350)](x, s), Y(s, { validation: "ip", code: Z[t(2233)], message: n[t(225)] }), e[t(1357)]()) : n[t(1214)] === "jwt" ? !io(x.data, n.alg) && (s = this[t(1350)](x, s), Y(s, { validation: "jwt", code: Z[t(2233)], message: n.message }), e[t(1357)]()) : n.kind === "cidr" ? !co(x[t(909)], n[t(685)]) && (s = this[t(1350)](x, s), Y(s, { validation: t(2438), code: Z[t(2233)], message: n[t(225)] }), e[t(1357)]()) : n.kind === t(1129) ? !to[t(1904)](x[t(909)]) && (s = this[t(1350)](x, s), Y(s, { validation: "base64", code: Z[t(2233)], message: n[t(225)] }), e[t(1357)]()) : n[t(1214)] === t(2316) ? !ao[t(1904)](x[t(909)]) && (s = this[t(1350)](x, s), Y(s, { validation: t(2316), code: Z[t(2233)], message: n[t(225)] }), e[t(1357)]()) : T0.assertNever(n); - return { status: e[t(1732)], value: x[t(909)] }; + n.kind === t(2830) ? (n[t(2830)][t(2719)] = 0, !n[t(2830)][t(1055)](x[t(2887)]) && (s = this[t(2407)](x, s), Y(s, { validation: t(2830), code: W[t(2835)], message: n.message }), e[t(973)]())) : n[t(1960)] === t(436) ? x[t(2887)] = x[t(2887)][t(436)]() : n[t(1960)] === t(2798) ? !x[t(2887)][t(2798)](n[t(998)], n[t(534)]) && (s = this._getOrReturnCtx(x, s), Y(s, { code: W[t(2835)], validation: { includes: n[t(998)], position: n[t(534)] }, message: n[t(615)] }), e[t(973)]()) : n[t(1960)] === t(2522) ? x[t(2887)] = x[t(2887)][t(2522)]() : n[t(1960)] === t(2132) ? x[t(2887)] = x[t(2887)][t(2132)]() : n[t(1960)] === "startsWith" ? !x[t(2887)][t(533)](n[t(998)]) && (s = this[t(2407)](x, s), Y(s, { code: W[t(2835)], validation: { startsWith: n[t(998)] }, message: n[t(615)] }), e[t(973)]()) : n[t(1960)] === t(2891) ? !x[t(2887)][t(2891)](n[t(998)]) && (s = this[t(2407)](x, s), Y(s, { code: W[t(2835)], validation: { endsWith: n[t(998)] }, message: n[t(615)] }), e[t(973)]()) : n[t(1960)] === t(2094) ? !co(n)[t(1055)](x[t(2887)]) && (s = this._getOrReturnCtx(x, s), Y(s, { code: W[t(2835)], validation: "datetime", message: n[t(615)] }), e.dirty()) : n[t(1960)] === t(2714) ? !oo[t(1055)](x[t(2887)]) && (s = this[t(2407)](x, s), Y(s, { code: W[t(2835)], validation: t(2714), message: n[t(615)] }), e[t(973)]()) : n[t(1960)] === "time" ? !io(n).test(x[t(2887)]) && (s = this._getOrReturnCtx(x, s), Y(s, { code: W[t(2835)], validation: t(706), message: n[t(615)] }), e[t(973)]()) : n[t(1960)] === "duration" ? !Xn[t(1055)](x[t(2887)]) && (s = this[t(2407)](x, s), Y(s, { validation: t(2351), code: W[t(2835)], message: n[t(615)] }), e[t(973)]()) : n[t(1960)] === "ip" ? !uo(x[t(2887)], n.version) && (s = this[t(2407)](x, s), Y(s, { validation: "ip", code: W[t(2835)], message: n.message }), e[t(973)]()) : n.kind === t(1447) ? !lo(x[t(2887)], n.alg) && (s = this[t(2407)](x, s), Y(s, { validation: t(1447), code: W[t(2835)], message: n[t(615)] }), e[t(973)]()) : n[t(1960)] === "cidr" ? !fo(x[t(2887)], n.version) && (s = this[t(2407)](x, s), Y(s, { validation: "cidr", code: W[t(2835)], message: n.message }), e.dirty()) : n[t(1960)] === t(1667) ? !so.test(x[t(2887)]) && (s = this[t(2407)](x, s), Y(s, { validation: t(1667), code: W[t(2835)], message: n[t(615)] }), e.dirty()) : n[t(1960)] === "base64url" ? !no.test(x[t(2887)]) && (s = this[t(2407)](x, s), Y(s, { validation: t(199), code: W[t(2835)], message: n[t(615)] }), e[t(973)]()) : Te[t(907)](n); + return { status: e[t(998)], value: x[t(2887)] }; } - [a(2087)](x, t, r) { + [a(2210)](x, t, r) { const e = a; - return this[e(414)]((s) => x.test(s), { validation: t, code: Z[e(2233)], ...r0.errToObj(r) }); + return this.refinement((s) => x[e(1055)](s), { validation: t, code: W[e(2835)], ...re[e(692)](r) }); } - [a(1675)](x) { + [a(571)](x) { const t = a; - return new ve({ ...this[t(775)], checks: [...this._def[t(1359)], x] }); + return new v0({ ...this._def, checks: [...this[t(880)][t(1043)], x] }); } - [a(2146)](x) { + email(x) { const t = a; - return this[t(1675)]({ kind: t(2146), ...r0[t(1053)](x) }); + return this._addCheck({ kind: t(712), ...re[t(692)](x) }); } - [a(2638)](x) { + [a(1158)](x) { const t = a; - return this[t(1675)]({ kind: t(2638), ...r0[t(1053)](x) }); + return this._addCheck({ kind: t(1158), ...re.errToObj(x) }); } - [a(1301)](x) { + emoji(x) { const t = a; - return this[t(1675)]({ kind: t(1301), ...r0.errToObj(x) }); + return this[t(571)]({ kind: t(162), ...re[t(692)](x) }); } - [a(431)](x) { + [a(2491)](x) { const t = a; - return this[t(1675)]({ kind: t(431), ...r0[t(1053)](x) }); + return this[t(571)]({ kind: t(2491), ...re[t(692)](x) }); } - nanoid(x) { + [a(2439)](x) { const t = a; - return this._addCheck({ kind: "nanoid", ...r0[t(1053)](x) }); + return this[t(571)]({ kind: t(2439), ...re[t(692)](x) }); } - [a(1488)](x) { + [a(747)](x) { const t = a; - return this[t(1675)]({ kind: t(1488), ...r0[t(1053)](x) }); + return this[t(571)]({ kind: t(747), ...re[t(692)](x) }); } - [a(2762)](x) { + [a(184)](x) { const t = a; - return this[t(1675)]({ kind: t(2762), ...r0.errToObj(x) }); + return this[t(571)]({ kind: t(184), ...re[t(692)](x) }); } - [a(2104)](x) { + [a(1152)](x) { const t = a; - return this._addCheck({ kind: t(2104), ...r0[t(1053)](x) }); + return this[t(571)]({ kind: t(1152), ...re[t(692)](x) }); } - [a(1129)](x) { + base64(x) { const t = a; - return this[t(1675)]({ kind: "base64", ...r0[t(1053)](x) }); + return this[t(571)]({ kind: t(1667), ...re[t(692)](x) }); } - [a(2316)](x) { + [a(199)](x) { const t = a; - return this[t(1675)]({ kind: t(2316), ...r0.errToObj(x) }); + return this[t(571)]({ kind: t(199), ...re.errToObj(x) }); } - jwt(x) { - return this[a(1675)]({ kind: "jwt", ...r0.errToObj(x) }); + [a(1447)](x) { + const t = a; + return this._addCheck({ kind: t(1447), ...re[t(692)](x) }); } ip(x) { const t = a; - return this[t(1675)]({ kind: "ip", ...r0[t(1053)](x) }); + return this[t(571)]({ kind: "ip", ...re[t(692)](x) }); } - cidr(x) { + [a(2470)](x) { const t = a; - return this._addCheck({ kind: t(2438), ...r0[t(1053)](x) }); + return this[t(571)]({ kind: t(2470), ...re[t(692)](x) }); } - [a(2455)](x) { + datetime(x) { const t = a; - return typeof x == "string" ? this[t(1675)]({ kind: t(2455), precision: null, offset: !1, local: !1, message: x }) : this[t(1675)]({ kind: "datetime", precision: typeof (x == null ? void 0 : x[t(1466)]) === t(420) ? null : x == null ? void 0 : x.precision, offset: (x == null ? void 0 : x.offset) ?? !1, local: (x == null ? void 0 : x[t(253)]) ?? !1, ...r0[t(1053)](x == null ? void 0 : x[t(225)]) }); + return typeof x === t(1653) ? this._addCheck({ kind: t(2094), precision: null, offset: !1, local: !1, message: x }) : this[t(571)]({ kind: "datetime", precision: typeof (x == null ? void 0 : x[t(1931)]) === t(2694) ? null : x == null ? void 0 : x[t(1931)], offset: (x == null ? void 0 : x[t(1229)]) ?? !1, local: (x == null ? void 0 : x.local) ?? !1, ...re[t(692)](x == null ? void 0 : x[t(615)]) }); } - [a(959)](x) { + [a(2714)](x) { const t = a; - return this[t(1675)]({ kind: t(959), message: x }); + return this[t(571)]({ kind: t(2714), message: x }); } - time(x) { + [a(706)](x) { const t = a; - return typeof x === t(2161) ? this[t(1675)]({ kind: t(289), precision: null, message: x }) : this[t(1675)]({ kind: t(289), precision: typeof (x == null ? void 0 : x[t(1466)]) > "u" ? null : x == null ? void 0 : x.precision, ...r0[t(1053)](x == null ? void 0 : x.message) }); + return typeof x === t(1653) ? this[t(571)]({ kind: t(706), precision: null, message: x }) : this[t(571)]({ kind: t(706), precision: typeof (x == null ? void 0 : x.precision) > "u" ? null : x == null ? void 0 : x[t(1931)], ...re[t(692)](x == null ? void 0 : x[t(615)]) }); } - [a(1568)](x) { - return this[a(1675)]({ kind: "duration", ...r0.errToObj(x) }); - } - [a(2764)](x, t) { - const r = a; - return this[r(1675)]({ kind: r(2764), regex: x, ...r0[r(1053)](t) }); - } - [a(1150)](x, t) { - const r = a; - return this[r(1675)]({ kind: r(1150), value: x, position: t == null ? void 0 : t[r(467)], ...r0[r(1053)](t == null ? void 0 : t[r(225)]) }); - } - [a(1955)](x, t) { - const r = a; - return this[r(1675)]({ kind: r(1955), value: x, ...r0[r(1053)](t) }); - } - [a(1451)](x, t) { - const r = a; - return this._addCheck({ kind: r(1451), value: x, ...r0.errToObj(t) }); - } - [a(1279)](x, t) { - const r = a; - return this[r(1675)]({ kind: r(1279), value: x, ...r0[r(1053)](t) }); - } - [a(1393)](x, t) { - const r = a; - return this[r(1675)]({ kind: "max", value: x, ...r0[r(1053)](t) }); - } - [a(692)](x, t) { - const r = a; - return this[r(1675)]({ kind: r(692), value: x, ...r0.errToObj(t) }); - } - nonempty(x) { + [a(2351)](x) { const t = a; - return this[t(1279)](1, r0[t(1053)](x)); + return this[t(571)]({ kind: "duration", ...re[t(692)](x) }); } - [a(2444)]() { + [a(2830)](x, t) { + const r = a; + return this[r(571)]({ kind: r(2830), regex: x, ...re[r(692)](t) }); + } + includes(x, t) { + const r = a; + return this[r(571)]({ kind: "includes", value: x, position: t == null ? void 0 : t[r(534)], ...re[r(692)](t == null ? void 0 : t[r(615)]) }); + } + [a(533)](x, t) { + return this._addCheck({ kind: "startsWith", value: x, ...re.errToObj(t) }); + } + [a(2891)](x, t) { + const r = a; + return this[r(571)]({ kind: r(2891), value: x, ...re[r(692)](t) }); + } + [a(1414)](x, t) { + const r = a; + return this[r(571)]({ kind: r(1414), value: x, ...re[r(692)](t) }); + } + [a(718)](x, t) { + const r = a; + return this[r(571)]({ kind: r(718), value: x, ...re.errToObj(t) }); + } + [a(1332)](x, t) { + const r = a; + return this._addCheck({ kind: r(1332), value: x, ...re[r(692)](t) }); + } + [a(1453)](x) { + const t = a; + return this[t(1414)](1, re[t(692)](x)); + } + trim() { const x = a; - return new ve({ ...this[x(775)], checks: [...this[x(775)][x(1359)], { kind: "trim" }] }); + return new v0({ ...this._def, checks: [...this[x(880)][x(1043)], { kind: x(436) }] }); } - [a(556)]() { + [a(2522)]() { const x = a; - return new ve({ ...this[x(775)], checks: [...this[x(775)][x(1359)], { kind: x(556) }] }); + return new v0({ ...this[x(880)], checks: [...this[x(880)][x(1043)], { kind: x(2522) }] }); } - toUpperCase() { + [a(2132)]() { const x = a; - return new ve({ ...this._def, checks: [...this[x(775)].checks, { kind: x(2520) }] }); + return new v0({ ...this[x(880)], checks: [...this[x(880)][x(1043)], { kind: x(2132) }] }); } - get [a(593)]() { + get [a(942)]() { const x = a; - return !!this._def[x(1359)][x(1341)]((t) => t[x(1214)] === x(2455)); + return !!this[x(880)][x(1043)][x(1036)]((t) => t[x(1960)] === x(2094)); } - get [a(653)]() { + get [a(1027)]() { const x = a; - return !!this._def[x(1359)][x(1341)]((t) => t.kind === x(959)); + return !!this[x(880)][x(1043)][x(1036)]((t) => t.kind === "date"); } - get [a(1532)]() { + get isTime() { const x = a; - return !!this[x(775)][x(1359)][x(1341)]((t) => t.kind === x(289)); + return !!this[x(880)][x(1043)].find((t) => t.kind === x(706)); } - get isDuration() { + get [a(1322)]() { const x = a; - return !!this._def[x(1359)][x(1341)]((t) => t[x(1214)] === x(1568)); + return !!this[x(880)][x(1043)][x(1036)]((t) => t[x(1960)] === x(2351)); } - get isEmail() { + get [a(1188)]() { const x = a; - return !!this._def[x(1359)].find((t) => t[x(1214)] === "email"); + return !!this[x(880)][x(1043)][x(1036)]((t) => t.kind === "email"); } - get [a(380)]() { + get [a(183)]() { const x = a; - return !!this._def[x(1359)].find((t) => t[x(1214)] === x(2638)); + return !!this[x(880)].checks[x(1036)]((t) => t[x(1960)] === "url"); } - get [a(2150)]() { + get [a(2310)]() { const x = a; - return !!this[x(775)][x(1359)][x(1341)]((t) => t.kind === x(1301)); + return !!this[x(880)][x(1043)][x(1036)]((t) => t[x(1960)] === x(162)); } - get [a(307)]() { + get [a(1513)]() { const x = a; - return !!this[x(775)].checks[x(1341)]((t) => t[x(1214)] === "uuid"); + return !!this[x(880)][x(1043)][x(1036)]((t) => t.kind === x(2491)); } - get [a(2729)]() { + get [a(891)]() { const x = a; - return !!this[x(775)].checks.find((t) => t.kind === x(1046)); + return !!this[x(880)][x(1043)][x(1036)]((t) => t[x(1960)] === x(2439)); } - get isCUID() { + get [a(1417)]() { const x = a; - return !!this[x(775)][x(1359)].find((t) => t.kind === x(1488)); + return !!this[x(880)][x(1043)][x(1036)]((t) => t[x(1960)] === x(747)); } - get [a(1320)]() { + get [a(2117)]() { const x = a; - return !!this[x(775)][x(1359)][x(1341)]((t) => t.kind === x(2762)); + return !!this[x(880)][x(1043)].find((t) => t.kind === x(184)); } - get [a(1590)]() { + get [a(2236)]() { const x = a; - return !!this[x(775)][x(1359)].find((t) => t[x(1214)] === x(2104)); + return !!this._def[x(1043)][x(1036)]((t) => t[x(1960)] === "ulid"); } - get [a(2135)]() { + get [a(509)]() { const x = a; - return !!this[x(775)][x(1359)].find((t) => t[x(1214)] === "ip"); + return !!this._def[x(1043)].find((t) => t.kind === "ip"); } - get isCIDR() { + get [a(2355)]() { const x = a; - return !!this[x(775)].checks.find((t) => t[x(1214)] === "cidr"); + return !!this[x(880)][x(1043)][x(1036)]((t) => t[x(1960)] === x(2470)); } - get [a(2308)]() { + get [a(228)]() { const x = a; - return !!this[x(775)][x(1359)][x(1341)]((t) => t[x(1214)] === x(1129)); + return !!this[x(880)][x(1043)][x(1036)]((t) => t.kind === x(1667)); } - get [a(2060)]() { + get [a(2306)]() { const x = a; - return !!this[x(775)].checks.find((t) => t[x(1214)] === x(2316)); + return !!this[x(880)].checks[x(1036)]((t) => t[x(1960)] === "base64url"); } - get [a(2877)]() { + get [a(1610)]() { const x = a; let t = null; - for (const r of this._def.checks) - r.kind === "min" && (t === null || r[x(1732)] > t) && (t = r.value); + for (const r of this[x(880)][x(1043)]) + r[x(1960)] === x(1414) && (t === null || r[x(998)] > t) && (t = r[x(998)]); return t; } - get maxLength() { + get [a(2213)]() { const x = a; let t = null; - for (const r of this[x(775)].checks) - r[x(1214)] === x(1393) && (t === null || r[x(1732)] < t) && (t = r.value); + for (const r of this._def[x(1043)]) + r[x(1960)] === x(718) && (t === null || r.value < t) && (t = r[x(998)]); return t; } } -ve[a(665)] = (o) => { +v0.create = (o) => { const x = a; - return new ve({ checks: [], typeName: p0[x(439)], coerce: (o == null ? void 0 : o[x(783)]) ?? !1, ...y0(o) }); + return new v0({ checks: [], typeName: pe[x(1054)], coerce: (o == null ? void 0 : o[x(2791)]) ?? !1, ...ve(o) }); }; -function uo(o, x) { - const t = a, r = (o[t(766)]()[t(628)](".")[1] || "")[t(692)], e = (x[t(766)]().split(".")[1] || "")[t(692)], s = r > e ? r : e, n = Number[t(2374)](o[t(1789)](s).replace(".", "")), i = Number[t(2374)](x[t(1789)](s)[t(575)](".", "")); +function ho(o, x) { + const t = a, r = (o[t(2032)]()[t(585)](".")[1] || "").length, e = (x[t(2032)]()[t(585)](".")[1] || "").length, s = r > e ? r : e, n = Number[t(505)](o[t(627)](s)[t(784)](".", "")), i = Number[t(505)](x[t(627)](s)[t(784)](".", "")); return n % i / 10 ** s; } -class Be extends C0 { +class B0 extends Fe { constructor() { const x = a; - super(...arguments), this.min = this[x(2769)], this[x(1393)] = this.lte, this[x(2578)] = this.multipleOf; + super(...arguments), this.min = this[x(2838)], this[x(718)] = this.lte, this.step = this[x(749)]; } - [a(1594)](x) { + [a(1908)](x) { const t = a; - if (this[t(775)][t(783)] && (x.data = Number(x[t(909)])), this[t(1640)](x) !== a0.number) { - const n = this._getOrReturnCtx(x); - return Y(n, { code: Z[t(1801)], expected: a0[t(2153)], received: n.parsedType }), h0; + if (this[t(880)][t(2791)] && (x[t(2887)] = Number(x[t(2887)])), this[t(2571)](x) !== ae[t(1206)]) { + const n = this[t(2407)](x); + return Y(n, { code: W.invalid_type, expected: ae.number, received: n.parsedType }), he; } let e; - const s = new ee(); - for (const n of this[t(775)].checks) - n[t(1214)] === t(1691) ? !T0.isInteger(x.data) && (e = this[t(1350)](x, e), Y(e, { code: Z.invalid_type, expected: t(1449), received: t(2543), message: n[t(225)] }), s[t(1357)]()) : n[t(1214)] === t(1279) ? (n[t(1362)] ? x.data < n.value : x[t(909)] <= n[t(1732)]) && (e = this[t(1350)](x, e), Y(e, { code: Z[t(1057)], minimum: n.value, type: t(2153), inclusive: n[t(1362)], exact: !1, message: n[t(225)] }), s[t(1357)]()) : n.kind === t(1393) ? (n[t(1362)] ? x[t(909)] > n[t(1732)] : x[t(909)] >= n.value) && (e = this[t(1350)](x, e), Y(e, { code: Z[t(175)], maximum: n[t(1732)], type: "number", inclusive: n[t(1362)], exact: !1, message: n[t(225)] }), s.dirty()) : n[t(1214)] === t(888) ? uo(x[t(909)], n.value) !== 0 && (e = this[t(1350)](x, e), Y(e, { code: Z[t(1875)], multipleOf: n[t(1732)], message: n.message }), s[t(1357)]()) : n[t(1214)] === t(2454) ? !Number.isFinite(x[t(909)]) && (e = this[t(1350)](x, e), Y(e, { code: Z[t(1650)], message: n[t(225)] }), s.dirty()) : T0[t(2266)](n); - return { status: s[t(1732)], value: x[t(909)] }; + const s = new e0(); + for (const n of this._def[t(1043)]) + n[t(1960)] === t(761) ? !Te[t(2893)](x[t(2887)]) && (e = this[t(2407)](x, e), Y(e, { code: W.invalid_type, expected: t(1605), received: t(1521), message: n[t(615)] }), s.dirty()) : n.kind === t(1414) ? (n.inclusive ? x[t(2887)] < n.value : x[t(2887)] <= n[t(998)]) && (e = this[t(2407)](x, e), Y(e, { code: W[t(1487)], minimum: n[t(998)], type: t(1206), inclusive: n[t(360)], exact: !1, message: n[t(615)] }), s[t(973)]()) : n.kind === "max" ? (n[t(360)] ? x.data > n[t(998)] : x.data >= n.value) && (e = this[t(2407)](x, e), Y(e, { code: W[t(2479)], maximum: n[t(998)], type: t(1206), inclusive: n[t(360)], exact: !1, message: n[t(615)] }), s.dirty()) : n.kind === "multipleOf" ? ho(x[t(2887)], n[t(998)]) !== 0 && (e = this[t(2407)](x, e), Y(e, { code: W[t(1540)], multipleOf: n.value, message: n[t(615)] }), s[t(973)]()) : n.kind === t(1685) ? !Number.isFinite(x[t(2887)]) && (e = this[t(2407)](x, e), Y(e, { code: W[t(2088)], message: n[t(615)] }), s.dirty()) : Te[t(907)](n); + return { status: s[t(998)], value: x[t(2887)] }; } - [a(2769)](x, t) { + gte(x, t) { const r = a; - return this[r(1548)](r(1279), x, !0, r0[r(766)](t)); + return this.setLimit(r(1414), x, !0, re[r(2032)](t)); } gt(x, t) { const r = a; - return this[r(1548)](r(1279), x, !1, r0[r(766)](t)); + return this[r(2318)]("min", x, !1, re[r(2032)](t)); } - [a(859)](x, t) { + [a(2269)](x, t) { const r = a; - return this[r(1548)](r(1393), x, !0, r0[r(766)](t)); + return this[r(2318)](r(718), x, !0, re.toString(t)); } lt(x, t) { const r = a; - return this.setLimit(r(1393), x, !1, r0[r(766)](t)); + return this[r(2318)](r(718), x, !1, re[r(2032)](t)); } - [a(1548)](x, t, r, e) { + [a(2318)](x, t, r, e) { const s = a; - return new Be({ ...this._def, checks: [...this[s(775)][s(1359)], { kind: x, value: t, inclusive: r, message: r0[s(766)](e) }] }); + return new B0({ ...this[s(880)], checks: [...this[s(880)].checks, { kind: x, value: t, inclusive: r, message: re[s(2032)](e) }] }); } - [a(1675)](x) { + [a(571)](x) { const t = a; - return new Be({ ...this._def, checks: [...this._def[t(1359)], x] }); + return new B0({ ...this[t(880)], checks: [...this[t(880)][t(1043)], x] }); } - int(x) { - return this[a(1675)]({ kind: "int", message: r0.toString(x) }); - } - [a(786)](x) { + [a(761)](x) { const t = a; - return this._addCheck({ kind: t(1279), value: 0, inclusive: !1, message: r0[t(766)](x) }); + return this[t(571)]({ kind: t(761), message: re[t(2032)](x) }); } - [a(1661)](x) { + [a(194)](x) { const t = a; - return this[t(1675)]({ kind: t(1393), value: 0, inclusive: !1, message: r0[t(766)](x) }); + return this[t(571)]({ kind: t(1414), value: 0, inclusive: !1, message: re[t(2032)](x) }); } - [a(266)](x) { + [a(1757)](x) { const t = a; - return this[t(1675)]({ kind: t(1393), value: 0, inclusive: !0, message: r0[t(766)](x) }); + return this[t(571)]({ kind: t(718), value: 0, inclusive: !1, message: re[t(2032)](x) }); } - [a(2105)](x) { + [a(1664)](x) { const t = a; - return this[t(1675)]({ kind: t(1279), value: 0, inclusive: !0, message: r0[t(766)](x) }); + return this._addCheck({ kind: t(718), value: 0, inclusive: !0, message: re[t(2032)](x) }); } - [a(888)](x, t) { + [a(2586)](x) { + const t = a; + return this[t(571)]({ kind: t(1414), value: 0, inclusive: !0, message: re.toString(x) }); + } + [a(749)](x, t) { const r = a; - return this._addCheck({ kind: "multipleOf", value: x, message: r0[r(766)](t) }); + return this[r(571)]({ kind: r(749), value: x, message: re.toString(t) }); } - [a(2454)](x) { + [a(1685)](x) { const t = a; - return this[t(1675)]({ kind: t(2454), message: r0[t(766)](x) }); + return this[t(571)]({ kind: t(1685), message: re[t(2032)](x) }); } - [a(1024)](x) { + [a(1195)](x) { const t = a; - return this[t(1675)]({ kind: t(1279), inclusive: !0, value: Number[t(1929)], message: r0.toString(x) })[t(1675)]({ kind: t(1393), inclusive: !0, value: Number[t(2478)], message: r0[t(766)](x) }); + return this._addCheck({ kind: t(1414), inclusive: !0, value: Number[t(625)], message: re[t(2032)](x) })[t(571)]({ kind: t(718), inclusive: !0, value: Number[t(1031)], message: re[t(2032)](x) }); } - get [a(1071)]() { + get minValue() { const x = a; let t = null; - for (const r of this[x(775)][x(1359)]) - r[x(1214)] === x(1279) && (t === null || r[x(1732)] > t) && (t = r[x(1732)]); + for (const r of this._def[x(1043)]) + r[x(1960)] === x(1414) && (t === null || r[x(998)] > t) && (t = r[x(998)]); return t; } - get [a(241)]() { + get maxValue() { const x = a; let t = null; - for (const r of this[x(775)][x(1359)]) - r[x(1214)] === x(1393) && (t === null || r[x(1732)] < t) && (t = r[x(1732)]); + for (const r of this[x(880)].checks) + r[x(1960)] === x(718) && (t === null || r[x(998)] < t) && (t = r[x(998)]); return t; } - get [a(2841)]() { + get isInt() { const x = a; - return !!this[x(775)][x(1359)][x(1341)]((t) => t[x(1214)] === "int" || t[x(1214)] === "multipleOf" && T0[x(2844)](t[x(1732)])); + return !!this[x(880)].checks[x(1036)]((t) => t.kind === x(761) || t.kind === "multipleOf" && Te[x(2893)](t[x(998)])); } get isFinite() { const x = a; let t = null, r = null; - for (const e of this[x(775)][x(1359)]) { - if (e[x(1214)] === x(2454) || e[x(1214)] === "int" || e[x(1214)] === x(888)) return !0; - e[x(1214)] === x(1279) ? (r === null || e[x(1732)] > r) && (r = e[x(1732)]) : e.kind === x(1393) && (t === null || e[x(1732)] < t) && (t = e[x(1732)]); + for (const e of this[x(880)][x(1043)]) { + if (e[x(1960)] === x(1685) || e[x(1960)] === x(761) || e[x(1960)] === x(749)) return !0; + e[x(1960)] === x(1414) ? (r === null || e[x(998)] > r) && (r = e[x(998)]) : e.kind === x(718) && (t === null || e.value < t) && (t = e[x(998)]); } - return Number[x(1812)](r) && Number[x(1812)](t); + return Number.isFinite(r) && Number[x(1272)](t); } } -Be[a(665)] = (o) => { +B0.create = (o) => { const x = a; - return new Be({ checks: [], typeName: p0[x(2334)], coerce: (o == null ? void 0 : o.coerce) || !1, ...y0(o) }); + return new B0({ checks: [], typeName: pe[x(1008)], coerce: (o == null ? void 0 : o.coerce) || !1, ...ve(o) }); }; -class tx extends C0 { +class tx extends Fe { constructor() { const x = a; - super(...arguments), this[x(1279)] = this[x(2769)], this[x(1393)] = this[x(859)]; + super(...arguments), this[x(1414)] = this[x(2838)], this[x(718)] = this[x(2269)]; } - [a(1594)](x) { + _parse(x) { const t = a; - if (this[t(775)].coerce) try { - x[t(909)] = BigInt(x[t(909)]); + if (this[t(880)][t(2791)]) try { + x[t(2887)] = BigInt(x[t(2887)]); } catch { - return this[t(1725)](x); + return this._getInvalidInput(x); } - if (this[t(1640)](x) !== a0.bigint) return this._getInvalidInput(x); + if (this._getType(x) !== ae[t(2611)]) return this[t(934)](x); let e; - const s = new ee(); - for (const n of this[t(775)].checks) - n[t(1214)] === "min" ? (n[t(1362)] ? x[t(909)] < n[t(1732)] : x[t(909)] <= n.value) && (e = this[t(1350)](x, e), Y(e, { code: Z[t(1057)], type: t(1033), minimum: n[t(1732)], inclusive: n[t(1362)], message: n.message }), s.dirty()) : n[t(1214)] === t(1393) ? (n[t(1362)] ? x[t(909)] > n[t(1732)] : x.data >= n.value) && (e = this[t(1350)](x, e), Y(e, { code: Z[t(175)], type: t(1033), maximum: n[t(1732)], inclusive: n.inclusive, message: n.message }), s[t(1357)]()) : n[t(1214)] === "multipleOf" ? x.data % n[t(1732)] !== BigInt(0) && (e = this[t(1350)](x, e), Y(e, { code: Z[t(1875)], multipleOf: n[t(1732)], message: n[t(225)] }), s[t(1357)]()) : T0[t(2266)](n); - return { status: s[t(1732)], value: x[t(909)] }; + const s = new e0(); + for (const n of this._def.checks) + n.kind === t(1414) ? (n[t(360)] ? x[t(2887)] < n.value : x[t(2887)] <= n[t(998)]) && (e = this[t(2407)](x, e), Y(e, { code: W.too_small, type: "bigint", minimum: n[t(998)], inclusive: n[t(360)], message: n[t(615)] }), s[t(973)]()) : n[t(1960)] === t(718) ? (n.inclusive ? x[t(2887)] > n[t(998)] : x[t(2887)] >= n[t(998)]) && (e = this[t(2407)](x, e), Y(e, { code: W[t(2479)], type: t(2611), maximum: n[t(998)], inclusive: n.inclusive, message: n.message }), s[t(973)]()) : n[t(1960)] === t(749) ? x[t(2887)] % n.value !== BigInt(0) && (e = this[t(2407)](x, e), Y(e, { code: W[t(1540)], multipleOf: n[t(998)], message: n[t(615)] }), s[t(973)]()) : Te[t(907)](n); + return { status: s[t(998)], value: x[t(2887)] }; } - [a(1725)](x) { - const t = a, r = this[t(1350)](x); - return Y(r, { code: Z.invalid_type, expected: a0[t(1033)], received: r[t(2573)] }), h0; + [a(934)](x) { + const t = a, r = this[t(2407)](x); + return Y(r, { code: W.invalid_type, expected: ae[t(2611)], received: r[t(2217)] }), he; } - [a(2769)](x, t) { + gte(x, t) { const r = a; - return this.setLimit("min", x, !0, r0[r(766)](t)); + return this[r(2318)](r(1414), x, !0, re[r(2032)](t)); } gt(x, t) { const r = a; - return this[r(1548)](r(1279), x, !1, r0.toString(t)); + return this.setLimit("min", x, !1, re[r(2032)](t)); } - [a(859)](x, t) { + [a(2269)](x, t) { const r = a; - return this.setLimit(r(1393), x, !0, r0[r(766)](t)); + return this[r(2318)](r(718), x, !0, re[r(2032)](t)); } lt(x, t) { const r = a; - return this[r(1548)](r(1393), x, !1, r0[r(766)](t)); + return this[r(2318)](r(718), x, !1, re[r(2032)](t)); } - setLimit(x, t, r, e) { + [a(2318)](x, t, r, e) { const s = a; - return new tx({ ...this[s(775)], checks: [...this[s(775)].checks, { kind: x, value: t, inclusive: r, message: r0[s(766)](e) }] }); + return new tx({ ...this._def, checks: [...this[s(880)][s(1043)], { kind: x, value: t, inclusive: r, message: re[s(2032)](e) }] }); } - [a(1675)](x) { + [a(571)](x) { const t = a; - return new tx({ ...this[t(775)], checks: [...this[t(775)].checks, x] }); + return new tx({ ...this[t(880)], checks: [...this._def[t(1043)], x] }); } - positive(x) { + [a(194)](x) { const t = a; - return this[t(1675)]({ kind: t(1279), value: BigInt(0), inclusive: !1, message: r0.toString(x) }); + return this[t(571)]({ kind: t(1414), value: BigInt(0), inclusive: !1, message: re[t(2032)](x) }); } - [a(1661)](x) { + negative(x) { const t = a; - return this[t(1675)]({ kind: "max", value: BigInt(0), inclusive: !1, message: r0[t(766)](x) }); + return this[t(571)]({ kind: t(718), value: BigInt(0), inclusive: !1, message: re.toString(x) }); } - [a(266)](x) { + nonpositive(x) { const t = a; - return this[t(1675)]({ kind: t(1393), value: BigInt(0), inclusive: !0, message: r0[t(766)](x) }); + return this[t(571)]({ kind: t(718), value: BigInt(0), inclusive: !0, message: re[t(2032)](x) }); } - [a(2105)](x) { - const t = a; - return this._addCheck({ kind: t(1279), value: BigInt(0), inclusive: !0, message: r0[t(766)](x) }); + [a(2586)](x) { + return this._addCheck({ kind: "min", value: BigInt(0), inclusive: !0, message: re.toString(x) }); } - [a(888)](x, t) { + [a(749)](x, t) { const r = a; - return this[r(1675)]({ kind: r(888), value: x, message: r0[r(766)](t) }); + return this[r(571)]({ kind: r(749), value: x, message: re[r(2032)](t) }); } - get [a(1071)]() { + get minValue() { const x = a; let t = null; - for (const r of this[x(775)][x(1359)]) - r[x(1214)] === x(1279) && (t === null || r.value > t) && (t = r[x(1732)]); + for (const r of this[x(880)][x(1043)]) + r[x(1960)] === x(1414) && (t === null || r[x(998)] > t) && (t = r.value); return t; } - get [a(241)]() { + get maxValue() { const x = a; let t = null; - for (const r of this[x(775)][x(1359)]) - r[x(1214)] === x(1393) && (t === null || r.value < t) && (t = r[x(1732)]); + for (const r of this[x(880)].checks) + r[x(1960)] === "max" && (t === null || r[x(998)] < t) && (t = r[x(998)]); return t; } } -tx[a(665)] = (o) => { +tx[a(2469)] = (o) => { const x = a; - return new tx({ checks: [], typeName: p0[x(303)], coerce: (o == null ? void 0 : o[x(783)]) ?? !1, ...y0(o) }); + return new tx({ checks: [], typeName: pe[x(1143)], coerce: (o == null ? void 0 : o.coerce) ?? !1, ...ve(o) }); }; -class Ht extends C0 { - [a(1594)](x) { +class Ht extends Fe { + [a(1908)](x) { const t = a; - if (this[t(775)][t(783)] && (x[t(909)] = !!x.data), this[t(1640)](x) !== a0[t(1146)]) { - const e = this[t(1350)](x); - return Y(e, { code: Z.invalid_type, expected: a0[t(1146)], received: e[t(2573)] }), h0; - } - return ae(x[t(909)]); - } -} -Ht[a(665)] = (o) => { - const x = a; - return new Ht({ typeName: p0[x(2626)], coerce: (o == null ? void 0 : o[x(783)]) || !1, ...y0(o) }); -}; -class gx extends C0 { - [a(1594)](x) { - const t = a; - if (this[t(775)][t(783)] && (x.data = new Date(x[t(909)])), this._getType(x) !== a0[t(959)]) { - const n = this[t(1350)](x); - return Y(n, { code: Z[t(1801)], expected: a0[t(959)], received: n[t(2573)] }), h0; - } - if (Number[t(2712)](x[t(909)][t(835)]())) { - const n = this[t(1350)](x); - return Y(n, { code: Z.invalid_date }), h0; - } - const e = new ee(); - let s; - for (const n of this[t(775)].checks) - n[t(1214)] === "min" ? x[t(909)][t(835)]() < n[t(1732)] && (s = this._getOrReturnCtx(x, s), Y(s, { code: Z[t(1057)], message: n[t(225)], inclusive: !0, exact: !1, minimum: n[t(1732)], type: "date" }), e[t(1357)]()) : n.kind === t(1393) ? x[t(909)][t(835)]() > n[t(1732)] && (s = this._getOrReturnCtx(x, s), Y(s, { code: Z[t(175)], message: n[t(225)], inclusive: !0, exact: !1, maximum: n[t(1732)], type: t(959) }), e[t(1357)]()) : T0.assertNever(n); - return { status: e[t(1732)], value: new Date(x[t(909)][t(835)]()) }; - } - [a(1675)](x) { - const t = a; - return new gx({ ...this[t(775)], checks: [...this[t(775)][t(1359)], x] }); - } - [a(1279)](x, t) { - const r = a; - return this._addCheck({ kind: r(1279), value: x[r(835)](), message: r0[r(766)](t) }); - } - [a(1393)](x, t) { - const r = a; - return this._addCheck({ kind: r(1393), value: x[r(835)](), message: r0[r(766)](t) }); - } - get minDate() { - const x = a; - let t = null; - for (const r of this[x(775)][x(1359)]) - r[x(1214)] === "min" && (t === null || r[x(1732)] > t) && (t = r[x(1732)]); - return t != null ? new Date(t) : null; - } - get [a(1611)]() { - const x = a; - let t = null; - for (const r of this._def.checks) - r[x(1214)] === x(1393) && (t === null || r[x(1732)] < t) && (t = r[x(1732)]); - return t != null ? new Date(t) : null; - } -} -gx[a(665)] = (o) => { - const x = a; - return new gx({ checks: [], coerce: (o == null ? void 0 : o[x(783)]) || !1, typeName: p0[x(2259)], ...y0(o) }); -}; -class qa extends C0 { - _parse(x) { - const t = a; - if (this[t(1640)](x) !== a0[t(1100)]) { + if (this._def[t(2791)] && (x[t(2887)] = !!x[t(2887)]), this[t(2571)](x) !== ae.boolean) { const e = this._getOrReturnCtx(x); - return Y(e, { code: Z[t(1801)], expected: a0.symbol, received: e[t(2573)] }), h0; + return Y(e, { code: W[t(2127)], expected: ae[t(1001)], received: e.parsedType }), he; } - return ae(x.data); + return a0(x[t(2887)]); } } -qa[a(665)] = (o) => { +Ht.create = (o) => { const x = a; - return new qa({ typeName: p0[x(1415)], ...y0(o) }); + return new Ht({ typeName: pe[x(2767)], coerce: (o == null ? void 0 : o[x(2791)]) || !1, ...ve(o) }); }; -class zt extends C0 { - [a(1594)](x) { +class gx extends Fe { + [a(1908)](x) { const t = a; - if (this._getType(x) !== a0[t(420)]) { - const e = this[t(1350)](x); - return Y(e, { code: Z[t(1801)], expected: a0[t(420)], received: e.parsedType }), h0; + if (this._def[t(2791)] && (x[t(2887)] = new Date(x.data)), this[t(2571)](x) !== ae[t(2714)]) { + const n = this[t(2407)](x); + return Y(n, { code: W[t(2127)], expected: ae[t(2714)], received: n.parsedType }), he; } - return ae(x.data); + if (Number[t(2232)](x.data[t(1795)]())) { + const n = this._getOrReturnCtx(x); + return Y(n, { code: W[t(2728)] }), he; + } + const e = new e0(); + let s; + for (const n of this[t(880)][t(1043)]) + n.kind === t(1414) ? x[t(2887)][t(1795)]() < n[t(998)] && (s = this[t(2407)](x, s), Y(s, { code: W[t(1487)], message: n[t(615)], inclusive: !0, exact: !1, minimum: n[t(998)], type: "date" }), e.dirty()) : n.kind === t(718) ? x.data[t(1795)]() > n.value && (s = this[t(2407)](x, s), Y(s, { code: W.too_big, message: n[t(615)], inclusive: !0, exact: !1, maximum: n[t(998)], type: t(2714) }), e[t(973)]()) : Te[t(907)](n); + return { status: e.value, value: new Date(x.data[t(1795)]()) }; + } + _addCheck(x) { + const t = a; + return new gx({ ...this[t(880)], checks: [...this[t(880)].checks, x] }); + } + min(x, t) { + const r = a; + return this[r(571)]({ kind: "min", value: x[r(1795)](), message: re.toString(t) }); + } + [a(718)](x, t) { + const r = a; + return this._addCheck({ kind: r(718), value: x[r(1795)](), message: re.toString(t) }); + } + get [a(2373)]() { + const x = a; + let t = null; + for (const r of this[x(880)][x(1043)]) + r[x(1960)] === x(1414) && (t === null || r.value > t) && (t = r[x(998)]); + return t != null ? new Date(t) : null; + } + get [a(1318)]() { + const x = a; + let t = null; + for (const r of this._def[x(1043)]) + r[x(1960)] === x(718) && (t === null || r.value < t) && (t = r[x(998)]); + return t != null ? new Date(t) : null; } } -zt[a(665)] = (o) => new zt({ typeName: p0.ZodUndefined, ...y0(o) }); -class Vt extends C0 { - [a(1594)](x) { - const t = a; - if (this[t(1640)](x) !== a0[t(845)]) { - const e = this[t(1350)](x); - return Y(e, { code: Z[t(1801)], expected: a0[t(845)], received: e[t(2573)] }), h0; - } - return ae(x[t(909)]); - } -} -Vt[a(665)] = (o) => { +gx[a(2469)] = (o) => { const x = a; - return new Vt({ typeName: p0[x(1273)], ...y0(o) }); + return new gx({ checks: [], coerce: (o == null ? void 0 : o[x(2791)]) || !1, typeName: pe[x(1065)], ...ve(o) }); }; -class ax extends C0 { +class qa extends Fe { + [a(1908)](x) { + const t = a; + if (this[t(2571)](x) !== ae[t(2169)]) { + const e = this[t(2407)](x); + return Y(e, { code: W[t(2127)], expected: ae[t(2169)], received: e[t(2217)] }), he; + } + return a0(x[t(2887)]); + } +} +qa.create = (o) => new qa({ typeName: pe.ZodSymbol, ...ve(o) }); +class zt extends Fe { + [a(1908)](x) { + const t = a; + if (this[t(2571)](x) !== ae.undefined) { + const e = this._getOrReturnCtx(x); + return Y(e, { code: W[t(2127)], expected: ae.undefined, received: e[t(2217)] }), he; + } + return a0(x.data); + } +} +zt[a(2469)] = (o) => { + const x = a; + return new zt({ typeName: pe[x(1032)], ...ve(o) }); +}; +class Vt extends Fe { + [a(1908)](x) { + const t = a; + if (this[t(2571)](x) !== ae.null) { + const e = this[t(2407)](x); + return Y(e, { code: W[t(2127)], expected: ae[t(1589)], received: e.parsedType }), he; + } + return a0(x[t(2887)]); + } +} +Vt[a(2469)] = (o) => { + const x = a; + return new Vt({ typeName: pe[x(2593)], ...ve(o) }); +}; +class ax extends Fe { + constructor() { + super(...arguments), this._any = !0; + } + [a(1908)](x) { + return a0(x[a(2887)]); + } +} +ax.create = (o) => { + const x = a; + return new ax({ typeName: pe[x(1256)], ...ve(o) }); +}; +class Bt extends Fe { constructor() { const x = a; - super(...arguments), this[x(2079)] = !0; + super(...arguments), this[x(2303)] = !0; + } + [a(1908)](x) { + return a0(x.data); + } +} +Bt[a(2469)] = (o) => { + const x = a; + return new Bt({ typeName: pe[x(1089)], ...ve(o) }); +}; +class R0 extends Fe { + [a(1908)](x) { + const t = a, r = this._getOrReturnCtx(x); + return Y(r, { code: W[t(2127)], expected: ae.never, received: r[t(2217)] }), he; + } +} +R0.create = (o) => new R0({ typeName: pe.ZodNever, ...ve(o) }); +class Wt extends Fe { + [a(1908)](x) { + const t = a; + if (this[t(2571)](x) !== ae.undefined) { + const e = this[t(2407)](x); + return Y(e, { code: W[t(2127)], expected: ae[t(698)], received: e[t(2217)] }), he; + } + return a0(x[t(2887)]); + } +} +Wt[a(2469)] = (o) => { + const x = a; + return new Wt({ typeName: pe[x(406)], ...ve(o) }); +}; +class h0 extends Fe { + [a(1908)](x) { + const t = a, { ctx: r, status: e } = this[t(1050)](x), s = this[t(880)]; + if (r[t(2217)] !== ae.array) return Y(r, { code: W[t(2127)], expected: ae[t(2173)], received: r[t(2217)] }), he; + if (s[t(1512)] !== null) { + const i = r[t(2887)][t(1332)] > s.exactLength[t(998)], c = r[t(2887)][t(1332)] < s[t(1512)].value; + (i || c) && (Y(r, { code: i ? W[t(2479)] : W.too_small, minimum: c ? s[t(1512)][t(998)] : void 0, maximum: i ? s[t(1512)][t(998)] : void 0, type: t(2173), inclusive: !0, exact: !0, message: s[t(1512)][t(615)] }), e[t(973)]()); + } + if (s[t(1610)] !== null && r.data[t(1332)] < s[t(1610)][t(998)] && (Y(r, { code: W.too_small, minimum: s[t(1610)].value, type: t(2173), inclusive: !0, exact: !1, message: s[t(1610)].message }), e[t(973)]()), s[t(2213)] !== null && r[t(2887)][t(1332)] > s[t(2213)][t(998)] && (Y(r, { code: W[t(2479)], maximum: s[t(2213)][t(998)], type: t(2173), inclusive: !0, exact: !1, message: s[t(2213)][t(615)] }), e[t(973)]()), r[t(1249)][t(418)]) return Promise[t(1288)]([...r[t(2887)]].map((i, c) => { + const u = t; + return s[u(190)][u(1810)](new p0(r, i, r[u(2475)], c)); + }))[t(723)]((i) => e0[t(352)](e, i)); + const n = [...r[t(2887)]][t(2742)]((i, c) => { + const u = t; + return s[u(190)][u(447)](new p0(r, i, r[u(2475)], c)); + }); + return e0[t(352)](e, n); + } + get [a(2672)]() { + const x = a; + return this[x(880)][x(190)]; + } + [a(1414)](x, t) { + return new h0({ ...this._def, minLength: { value: x, message: re.toString(t) } }); + } + [a(718)](x, t) { + const r = a; + return new h0({ ...this[r(880)], maxLength: { value: x, message: re[r(2032)](t) } }); + } + [a(1332)](x, t) { + const r = a; + return new h0({ ...this[r(880)], exactLength: { value: x, message: re[r(2032)](t) } }); + } + nonempty(x) { + return this[a(1414)](1, x); + } +} +h0[a(2469)] = (o, x) => { + const t = a; + return new h0({ type: o, minLength: null, maxLength: null, exactLength: null, typeName: pe[t(213)], ...ve(x) }); +}; +function H0(o) { + const x = a; + if (o instanceof Ze) { + const t = {}; + for (const r in o[x(876)]) { + const e = o[x(876)][r]; + t[r] = w0[x(2469)](H0(e)); + } + return new Ze({ ...o._def, shape: () => t }); + } else + return o instanceof h0 ? new h0({ ...o[x(880)], type: H0(o[x(2672)]) }) : o instanceof w0 ? w0[x(2469)](H0(o[x(2486)]())) : o instanceof j0 ? j0[x(2469)](H0(o[x(2486)]())) : o instanceof O0 ? O0[x(2469)](o[x(1613)].map((t) => H0(t))) : o; +} +class Ze extends Fe { + constructor() { + const x = a; + super(...arguments), this[x(530)] = null, this[x(1935)] = this.passthrough, this[x(873)] = this[x(2636)]; + } + [a(660)]() { + const x = a; + if (this[x(530)] !== null) return this[x(530)]; + const t = this[x(880)][x(876)](), r = Te[x(1408)](t); + return this[x(530)] = { shape: t, keys: r }, this[x(530)]; } _parse(x) { - return ae(x.data); - } -} -ax[a(665)] = (o) => { - const x = a; - return new ax({ typeName: p0[x(1022)], ...y0(o) }); -}; -class Bt extends C0 { - constructor() { - super(...arguments), this._unknown = !0; - } - [a(1594)](x) { - return ae(x[a(909)]); - } -} -Bt[a(665)] = (o) => { - const x = a; - return new Bt({ typeName: p0[x(1602)], ...y0(o) }); -}; -class Ce extends C0 { - [a(1594)](x) { - const t = a, r = this[t(1350)](x); - return Y(r, { code: Z[t(1801)], expected: a0[t(1396)], received: r.parsedType }), h0; - } -} -Ce[a(665)] = (o) => { - const x = a; - return new Ce({ typeName: p0[x(2322)], ...y0(o) }); -}; -class Zt extends C0 { - [a(1594)](x) { const t = a; - if (this[t(1640)](x) !== a0[t(420)]) { - const e = this[t(1350)](x); - return Y(e, { code: Z.invalid_type, expected: a0[t(2445)], received: e.parsedType }), h0; + if (this[t(2571)](x) !== ae.object) { + const d = this[t(2407)](x); + return Y(d, { code: W[t(2127)], expected: ae[t(2844)], received: d.parsedType }), he; } - return ae(x[t(909)]); - } -} -Zt[a(665)] = (o) => { - const x = a; - return new Zt({ typeName: p0[x(944)], ...y0(o) }); -}; -class le extends C0 { - [a(1594)](x) { - const t = a, { ctx: r, status: e } = this[t(1020)](x), s = this[t(775)]; - if (r[t(2573)] !== a0[t(973)]) return Y(r, { code: Z[t(1801)], expected: a0[t(973)], received: r[t(2573)] }), h0; - if (s[t(1958)] !== null) { - const i = r[t(909)][t(692)] > s.exactLength.value, c = r[t(909)][t(692)] < s[t(1958)][t(1732)]; - (i || c) && (Y(r, { code: i ? Z[t(175)] : Z[t(1057)], minimum: c ? s[t(1958)][t(1732)] : void 0, maximum: i ? s[t(1958)][t(1732)] : void 0, type: t(973), inclusive: !0, exact: !0, message: s.exactLength[t(225)] }), e.dirty()); - } - if (s[t(2877)] !== null && r[t(909)][t(692)] < s.minLength.value && (Y(r, { code: Z[t(1057)], minimum: s[t(2877)][t(1732)], type: "array", inclusive: !0, exact: !1, message: s.minLength[t(225)] }), e[t(1357)]()), s[t(558)] !== null && r[t(909)][t(692)] > s[t(558)][t(1732)] && (Y(r, { code: Z[t(175)], maximum: s[t(558)].value, type: t(973), inclusive: !0, exact: !1, message: s[t(558)][t(225)] }), e[t(1357)]()), r[t(2421)][t(1973)]) return Promise[t(403)]([...r[t(909)]][t(1649)]((i, c) => { - const u = t; - return s.type[u(1098)](new he(r, i, r[u(2619)], c)); - })).then((i) => ee[t(2395)](e, i)); - const n = [...r.data][t(1649)]((i, c) => { - const u = t; - return s[u(612)][u(2802)](new he(r, i, r.path, c)); - }); - return ee[t(2395)](e, n); - } - get [a(1294)]() { - return this[a(775)].type; - } - [a(1279)](x, t) { - const r = a; - return new le({ ...this[r(775)], minLength: { value: x, message: r0[r(766)](t) } }); - } - max(x, t) { - const r = a; - return new le({ ...this[r(775)], maxLength: { value: x, message: r0.toString(t) } }); - } - [a(692)](x, t) { - const r = a; - return new le({ ...this[r(775)], exactLength: { value: x, message: r0[r(766)](t) } }); - } - [a(1890)](x) { - return this[a(1279)](1, x); - } -} -le.create = (o, x) => { - const t = a; - return new le({ type: o, minLength: null, maxLength: null, exactLength: null, typeName: p0[t(2420)], ...y0(x) }); -}; -function He(o) { - const x = a; - if (o instanceof W0) { - const t = {}; - for (const r in o[x(2068)]) { - const e = o[x(2068)][r]; - t[r] = we[x(665)](He(e)); - } - return new W0({ ...o._def, shape: () => t }); - } else - return o instanceof le ? new le({ ...o[x(775)], type: He(o[x(1294)]) }) : o instanceof we ? we[x(665)](He(o[x(264)]())) : o instanceof De ? De[x(665)](He(o[x(264)]())) : o instanceof Oe ? Oe[x(665)](o[x(715)][x(1649)]((t) => He(t))) : o; -} -class W0 extends C0 { - constructor() { - const x = a; - super(...arguments), this[x(2361)] = null, this[x(1232)] = this[x(2303)], this[x(2165)] = this[x(243)]; - } - [a(740)]() { - const x = a; - if (this[x(2361)] !== null) return this[x(2361)]; - const t = this[x(775)].shape(), r = T0[x(1339)](t); - return this._cached = { shape: t, keys: r }, this[x(2361)]; - } - [a(1594)](x) { - const t = a; - if (this[t(1640)](x) !== a0[t(544)]) { - const d = this[t(1350)](x); - return Y(d, { code: Z.invalid_type, expected: a0.object, received: d.parsedType }), h0; - } - const { status: e, ctx: s } = this[t(1020)](x), { shape: n, keys: i } = this[t(740)](), c = []; - if (!(this[t(775)].catchall instanceof Ce && this[t(775)][t(2223)] === t(2095))) for (const d in s[t(909)]) - !i.includes(d) && c[t(452)](d); + const { status: e, ctx: s } = this[t(1050)](x), { shape: n, keys: i } = this[t(660)](), c = []; + if (!(this[t(880)].catchall instanceof R0 && this[t(880)][t(467)] === t(1596))) for (const d in s.data) + !i[t(2798)](d) && c[t(902)](d); const u = []; for (const d of i) { - const f = n[d], l = s.data[d]; - u[t(452)]({ key: { status: t(614), value: d }, value: f[t(1594)](new he(s, l, s[t(2619)], d)), alwaysSet: d in s[t(909)] }); + const l = n[d], f = s[t(2887)][d]; + u[t(902)]({ key: { status: t(295), value: d }, value: l[t(1908)](new p0(s, f, s[t(2475)], d)), alwaysSet: d in s[t(2887)] }); } - if (this._def[t(1390)] instanceof Ce) { - const d = this[t(775)][t(2223)]; - if (d === t(2303)) for (const f of c) - u[t(452)]({ key: { status: t(614), value: f }, value: { status: t(614), value: s.data[f] } }); - else if (d === "strict") c[t(692)] > 0 && (Y(s, { code: Z[t(354)], keys: c }), e[t(1357)]()); - else if (d !== t(2095)) throw new Error(t(1225)); + if (this._def[t(1861)] instanceof R0) { + const d = this[t(880)][t(467)]; + if (d === t(2690)) for (const l of c) + u[t(902)]({ key: { status: t(295), value: l }, value: { status: "valid", value: s[t(2887)][l] } }); + else if (d === t(414)) c[t(1332)] > 0 && (Y(s, { code: W[t(1913)], keys: c }), e[t(973)]()); + else if (d !== t(1596)) throw new Error("Internal ZodObject error: invalid unknownKeys value."); } else { - const d = this[t(775)].catchall; - for (const f of c) { - const l = s[t(909)][f]; - u[t(452)]({ key: { status: t(614), value: f }, value: d[t(1594)](new he(s, l, s[t(2619)], f)), alwaysSet: f in s[t(909)] }); + const d = this[t(880)][t(1861)]; + for (const l of c) { + const f = s[t(2887)][l]; + u[t(902)]({ key: { status: "valid", value: l }, value: d[t(1908)](new p0(s, f, s[t(2475)], l)), alwaysSet: l in s[t(2887)] }); } } - return s[t(2421)][t(1973)] ? Promise[t(1571)]()[t(2403)](async () => { - const d = t, f = []; - for (const l of u) { - const b = await l.key, h = await l[d(1732)]; - f.push({ key: b, value: h, alwaysSet: l.alwaysSet }); + return s.common[t(418)] ? Promise[t(1635)]().then(async () => { + const d = t, l = []; + for (const f of u) { + const b = await f.key, h = await f.value; + l[d(902)]({ key: b, value: h, alwaysSet: f.alwaysSet }); } - return f; - }).then((d) => ee.mergeObjectSync(e, d)) : ee[t(565)](e, u); + return l; + }).then((d) => e0.mergeObjectSync(e, d)) : e0[t(439)](e, u); } - get [a(2068)]() { - return this[a(775)].shape(); + get [a(876)]() { + const x = a; + return this._def[x(876)](); } - [a(1450)](x) { + [a(414)](x) { const t = a; - return r0[t(1053)], new W0({ ...this._def, unknownKeys: t(1450), ...x !== void 0 ? { errorMap: (r, e) => { + return re.errToObj, new Ze({ ...this[t(880)], unknownKeys: t(414), ...x !== void 0 ? { errorMap: (r, e) => { var i, c; - const s = t, n = ((c = (i = this[s(775)])[s(1653)]) == null ? void 0 : c.call(i, r, e)[s(225)]) ?? e[s(2641)]; - return r[s(1172)] === s(354) ? { message: r0[s(1053)](x)[s(225)] ?? n } : { message: n }; + const s = t, n = ((c = (i = this._def).errorMap) == null ? void 0 : c.call(i, r, e).message) ?? e[s(2660)]; + return r[s(586)] === s(1913) ? { message: re[s(692)](x).message ?? n } : { message: n }; } } : {} }); } - [a(2095)]() { + strip() { const x = a; - return new W0({ ...this[x(775)], unknownKeys: x(2095) }); + return new Ze({ ...this[x(880)], unknownKeys: "strip" }); } - passthrough() { + [a(2690)]() { const x = a; - return new W0({ ...this[x(775)], unknownKeys: "passthrough" }); + return new Ze({ ...this[x(880)], unknownKeys: x(2690) }); } - [a(243)](x) { + [a(2636)](x) { + return new Ze({ ...this._def, shape: () => ({ ...this._def.shape(), ...x }) }); + } + [a(1722)](x) { const t = a; - return new W0({ ...this[t(775)], shape: () => ({ ...this._def[t(2068)](), ...x }) }); + return new Ze({ unknownKeys: x[t(880)][t(467)], catchall: x[t(880)][t(1861)], shape: () => ({ ...this[t(880)][t(876)](), ...x[t(880)][t(876)]() }), typeName: pe[t(1183)] }); } - merge(x) { - const t = a; - return new W0({ unknownKeys: x._def[t(2223)], catchall: x[t(775)][t(1390)], shape: () => ({ ...this[t(775)].shape(), ...x[t(775)][t(2068)]() }), typeName: p0[t(1739)] }); + [a(1938)](x, t) { + return this[a(873)]({ [x]: t }); } - [a(1810)](x, t) { - return this[a(2165)]({ [x]: t }); + [a(1861)](x) { + return new Ze({ ...this._def, catchall: x }); } - [a(1390)](x) { - const t = a; - return new W0({ ...this[t(775)], catchall: x }); - } - pick(x) { + [a(264)](x) { const t = a, r = {}; - for (const e of T0[t(1339)](x)) - x[e] && this[t(2068)][e] && (r[e] = this[t(2068)][e]); - return new W0({ ...this[t(775)], shape: () => r }); + for (const e of Te[t(1408)](x)) + x[e] && this.shape[e] && (r[e] = this[t(876)][e]); + return new Ze({ ...this[t(880)], shape: () => r }); } - [a(1952)](x) { + [a(1333)](x) { const t = a, r = {}; - for (const e of T0[t(1339)](this[t(2068)])) - !x[e] && (r[e] = this[t(2068)][e]); - return new W0({ ...this[t(775)], shape: () => r }); + for (const e of Te[t(1408)](this[t(876)])) + !x[e] && (r[e] = this[t(876)][e]); + return new Ze({ ...this[t(880)], shape: () => r }); } - [a(2689)]() { - return He(this); + deepPartial() { + return H0(this); } - [a(2495)](x) { + partial(x) { const t = a, r = {}; - for (const e of T0[t(1339)](this[t(2068)])) { - const s = this[t(2068)][e]; - x && !x[e] ? r[e] = s : r[e] = s[t(1027)](); + for (const e of Te[t(1408)](this[t(876)])) { + const s = this[t(876)][e]; + x && !x[e] ? r[e] = s : r[e] = s[t(2033)](); } - return new W0({ ...this._def, shape: () => r }); + return new Ze({ ...this[t(880)], shape: () => r }); } - [a(310)](x) { + [a(1025)](x) { const t = a, r = {}; - for (const e of T0[t(1339)](this[t(2068)])) - if (x && !x[e]) r[e] = this.shape[e]; + for (const e of Te.objectKeys(this[t(876)])) + if (x && !x[e]) r[e] = this[t(876)][e]; else { - let n = this.shape[e]; - for (; n instanceof we; ) - n = n[t(775)].innerType; + let n = this[t(876)][e]; + for (; n instanceof w0; ) + n = n[t(880)].innerType; r[e] = n; } - return new W0({ ...this[t(775)], shape: () => r }); + return new Ze({ ...this._def, shape: () => r }); } - [a(757)]() { - return Ms(T0.objectKeys(this.shape)); + [a(2663)]() { + const x = a; + return Us(Te[x(1408)](this[x(876)])); } } -W0[a(665)] = (o, x) => new W0({ shape: () => o, unknownKeys: "strip", catchall: Ce.create(), typeName: p0.ZodObject, ...y0(x) }), W0.strictCreate = (o, x) => { +Ze[a(2469)] = (o, x) => { const t = a; - return new W0({ shape: () => o, unknownKeys: t(1450), catchall: Ce[t(665)](), typeName: p0[t(1739)], ...y0(x) }); -}, W0[a(1422)] = (o, x) => { + return new Ze({ shape: () => o, unknownKeys: t(1596), catchall: R0[t(2469)](), typeName: pe[t(1183)], ...ve(x) }); +}, Ze[a(2655)] = (o, x) => { const t = a; - return new W0({ shape: o, unknownKeys: t(2095), catchall: Ce[t(665)](), typeName: p0.ZodObject, ...y0(x) }); + return new Ze({ shape: () => o, unknownKeys: t(414), catchall: R0.create(), typeName: pe.ZodObject, ...ve(x) }); +}, Ze[a(1919)] = (o, x) => { + const t = a; + return new Ze({ shape: o, unknownKeys: t(1596), catchall: R0[t(2469)](), typeName: pe.ZodObject, ...ve(x) }); }; -class yx extends C0 { - [a(1594)](x) { - const t = a, { ctx: r } = this._processInputParams(x), e = this._def.options; +class yx extends Fe { + [a(1908)](x) { + const t = a, { ctx: r } = this[t(1050)](x), e = this._def[t(961)]; function s(n) { - const i = K; + const i = t; for (const u of n) - if (u[i(2671)][i(2861)] === i(614)) return u[i(2671)]; + if (u[i(1792)][i(2745)] === i(295)) return u[i(1792)]; for (const u of n) - if (u.result.status === i(1357)) return r[i(2421)][i(1157)][i(452)](...u.ctx[i(2421)][i(1157)]), u[i(2671)]; - const c = n[i(1649)]((u) => new ke(u.ctx[i(2421)][i(1157)])); - return Y(r, { code: Z[i(2771)], unionErrors: c }), h0; + if (u[i(1792)][i(2745)] === "dirty") return r[i(1249)][i(2196)][i(902)](...u[i(1155)][i(1249)][i(2196)]), u.result; + const c = n[i(2742)]((u) => new k0(u[i(1155)][i(1249)][i(2196)])); + return Y(r, { code: W[i(1243)], unionErrors: c }), he; } - if (r[t(2421)].async) return Promise[t(403)](e[t(1649)](async (n) => { - const i = t, c = { ...r, common: { ...r[i(2421)], issues: [] }, parent: null }; - return { result: await n[i(1098)]({ data: r[i(909)], path: r[i(2619)], parent: c }), ctx: c }; - }))[t(2403)](s); + if (r[t(1249)][t(418)]) return Promise[t(1288)](e[t(2742)](async (n) => { + const i = t, c = { ...r, common: { ...r[i(1249)], issues: [] }, parent: null }; + return { result: await n._parseAsync({ data: r[i(2887)], path: r[i(2475)], parent: c }), ctx: c }; + }))[t(723)](s); { let n; const i = []; for (const u of e) { - const d = { ...r, common: { ...r[t(2421)], issues: [] }, parent: null }, f = u._parseSync({ data: r[t(909)], path: r[t(2619)], parent: d }); - if (f.status === t(614)) return f; - f[t(2861)] === t(1357) && !n && (n = { result: f, ctx: d }), d.common.issues[t(692)] && i[t(452)](d[t(2421)][t(1157)]); + const d = { ...r, common: { ...r.common, issues: [] }, parent: null }, l = u._parseSync({ data: r[t(2887)], path: r[t(2475)], parent: d }); + if (l[t(2745)] === t(295)) return l; + l.status === t(973) && !n && (n = { result: l, ctx: d }), d[t(1249)][t(2196)][t(1332)] && i[t(902)](d[t(1249)][t(2196)]); } - if (n) return r[t(2421)][t(1157)][t(452)](...n.ctx[t(2421)].issues), n.result; - const c = i[t(1649)]((u) => new ke(u)); - return Y(r, { code: Z[t(2771)], unionErrors: c }), h0; + if (n) return r.common[t(2196)][t(902)](...n[t(1155)][t(1249)][t(2196)]), n[t(1792)]; + const c = i[t(2742)]((u) => new k0(u)); + return Y(r, { code: W.invalid_union, unionErrors: c }), he; } } - get options() { - const x = a; - return this[x(775)][x(1005)]; + get [a(961)]() { + return this[a(880)].options; } } -yx[a(665)] = (o, x) => { - const t = a; - return new yx({ options: o, typeName: p0[t(1597)], ...y0(x) }); -}; -const ge = (o) => { +yx.create = (o, x) => new yx({ options: o, typeName: pe.ZodUnion, ...ve(x) }); +const g0 = (o) => { const x = a; - return o instanceof Kt ? ge(o.schema) : o instanceof qe ? ge(o[x(257)]()) : o instanceof Sx ? [o.value] : o instanceof _e ? o[x(1005)] : o instanceof Gt ? T0.objectValues(o[x(1419)]) : o instanceof Px ? ge(o[x(775)][x(257)]) : o instanceof zt ? [void 0] : o instanceof Vt ? [null] : o instanceof we ? [void 0, ...ge(o[x(264)]())] : o instanceof De ? [null, ...ge(o.unwrap())] : o instanceof Ls ? ge(o.unwrap()) : o instanceof Ex ? ge(o[x(264)]()) : o instanceof Ix ? ge(o._def[x(257)]) : []; + return o instanceof Kt ? g0(o[x(224)]) : o instanceof A0 ? g0(o.innerType()) : o instanceof Sx ? [o[x(998)]] : o instanceof D0 ? o[x(961)] : o instanceof Gt ? Te[x(2900)](o.enum) : o instanceof Px ? g0(o[x(880)][x(2817)]) : o instanceof zt ? [void 0] : o instanceof Vt ? [null] : o instanceof w0 ? [void 0, ...g0(o.unwrap())] : o instanceof j0 ? [null, ...g0(o[x(2486)]())] : o instanceof Hs || o instanceof Ix ? g0(o[x(2486)]()) : o instanceof Ex ? g0(o[x(880)].innerType) : []; }; -class na extends C0 { - [a(1594)](x) { - const t = a, { ctx: r } = this._processInputParams(x); - if (r[t(2573)] !== a0[t(544)]) return Y(r, { code: Z[t(1801)], expected: a0.object, received: r.parsedType }), h0; - const e = this[t(536)], s = r[t(909)][e], n = this[t(2343)].get(s); - return n ? r.common[t(1973)] ? n._parseAsync({ data: r[t(909)], path: r[t(2619)], parent: r }) : n[t(2802)]({ data: r[t(909)], path: r[t(2619)], parent: r }) : (Y(r, { code: Z[t(1509)], options: Array[t(2781)](this[t(2343)][t(750)]()), path: [e] }), h0); +class na extends Fe { + [a(1908)](x) { + const t = a, { ctx: r } = this[t(1050)](x); + if (r[t(2217)] !== ae[t(2844)]) return Y(r, { code: W[t(2127)], expected: ae[t(2844)], received: r[t(2217)] }), he; + const e = this[t(2569)], s = r.data[e], n = this.optionsMap[t(1094)](s); + return n ? r[t(1249)][t(418)] ? n[t(1810)]({ data: r[t(2887)], path: r.path, parent: r }) : n[t(447)]({ data: r[t(2887)], path: r[t(2475)], parent: r }) : (Y(r, { code: W[t(807)], options: Array[t(2280)](this[t(432)][t(1806)]()), path: [e] }), he); } get discriminator() { const x = a; - return this[x(775)][x(536)]; + return this[x(880)][x(2569)]; } - get [a(1005)]() { + get [a(961)]() { const x = a; - return this[x(775)][x(1005)]; + return this[x(880)][x(961)]; } - get [a(2343)]() { + get [a(432)]() { const x = a; - return this[x(775)][x(2343)]; - } - static [a(665)](x, t, r) { - const e = a, s = /* @__PURE__ */ new Map(); - for (const n of t) { - const i = ge(n[e(2068)][x]); - if (!i[e(692)]) throw new Error("A discriminator value for key `" + x + e(2191)); - for (const c of i) { - if (s[e(2075)](c)) throw new Error(e(1384) + String(x) + e(1791) + String(c)); - s[e(758)](c, n); - } - } - return new na({ typeName: p0.ZodDiscriminatedUnion, discriminator: x, options: t, optionsMap: s, ...y0(r) }); - } -} -function Wt(o, x) { - const t = a, r = Ee(o), e = Ee(x); - if (o === x) return { valid: !0, data: o }; - if (r === a0.object && e === a0.object) { - const s = T0[t(1339)](x), n = T0.objectKeys(o)[t(2145)]((c) => s[t(311)](c) !== -1), i = { ...o, ...x }; - for (const c of n) { - const u = Wt(o[c], x[c]); - if (!u[t(614)]) return { valid: !1 }; - i[c] = u[t(909)]; - } - return { valid: !0, data: i }; - } else if (r === a0.array && e === a0.array) { - if (o[t(692)] !== x.length) return { valid: !1 }; - const s = []; - for (let n = 0; n < o[t(692)]; n++) { - const i = o[n], c = x[n], u = Wt(i, c); - if (!u.valid) return { valid: !1 }; - s[t(452)](u[t(909)]); - } - return { valid: !0, data: s }; - } else return r === a0[t(959)] && e === a0.date && +o == +x ? { valid: !0, data: o } : { valid: !1 }; -} -class vx extends C0 { - [a(1594)](x) { - const t = a, { status: r, ctx: e } = this[t(1020)](x), s = (n, i) => { - const c = t; - if (Fa(n) || Fa(i)) return h0; - const u = Wt(n[c(1732)], i[c(1732)]); - return u.valid ? ((Na(n) || Na(i)) && r[c(1357)](), { status: r[c(1732)], value: u[c(909)] }) : (Y(e, { code: Z[c(2121)] }), h0); - }; - return e[t(2421)][t(1973)] ? Promise[t(403)]([this[t(775)].left[t(1098)]({ data: e[t(909)], path: e[t(2619)], parent: e }), this[t(775)][t(2823)][t(1098)]({ data: e[t(909)], path: e.path, parent: e })])[t(2403)](([n, i]) => s(n, i)) : s(this._def[t(1410)][t(2802)]({ data: e[t(909)], path: e[t(2619)], parent: e }), this[t(775)].right[t(2802)]({ data: e[t(909)], path: e[t(2619)], parent: e })); - } -} -vx[a(665)] = (o, x, t) => { - const r = a; - return new vx({ left: o, right: x, typeName: p0[r(1432)], ...y0(t) }); -}; -class Oe extends C0 { - [a(1594)](x) { - const t = a, { status: r, ctx: e } = this[t(1020)](x); - if (e.parsedType !== a0.array) return Y(e, { code: Z.invalid_type, expected: a0[t(973)], received: e[t(2573)] }), h0; - if (e.data.length < this[t(775)][t(715)].length) return Y(e, { code: Z[t(1057)], minimum: this[t(775)][t(715)][t(692)], inclusive: !0, exact: !1, type: t(973) }), h0; - !this[t(775)][t(2743)] && e.data[t(692)] > this[t(775)].items[t(692)] && (Y(e, { code: Z.too_big, maximum: this[t(775)].items[t(692)], inclusive: !0, exact: !1, type: t(973) }), r.dirty()); - const n = [...e[t(909)]].map((i, c) => { - const u = t, d = this[u(775)][u(715)][c] || this._def[u(2743)]; - return d ? d[u(1594)](new he(e, i, e.path, c)) : null; - })[t(2145)]((i) => !!i); - return e[t(2421)][t(1973)] ? Promise[t(403)](n).then((i) => ee[t(2395)](r, i)) : ee[t(2395)](r, n); - } - get [a(715)]() { - const x = a; - return this._def[x(715)]; - } - [a(2743)](x) { - const t = a; - return new Oe({ ...this[t(775)], rest: x }); - } -} -Oe[a(665)] = (o, x) => { - const t = a; - if (!Array[t(1783)](o)) throw new Error("You must pass an array of schemas to z.tuple([ ... ])"); - return new Oe({ items: o, typeName: p0[t(1222)], rest: null, ...y0(x) }); -}; -class wx extends C0 { - get [a(1420)]() { - const x = a; - return this[x(775)][x(1386)]; - } - get valueSchema() { - return this._def.valueType; - } - [a(1594)](x) { - const t = a, { status: r, ctx: e } = this[t(1020)](x); - if (e.parsedType !== a0.object) return Y(e, { code: Z.invalid_type, expected: a0[t(544)], received: e[t(2573)] }), h0; - const s = [], n = this[t(775)].keyType, i = this[t(775)].valueType; - for (const c in e[t(909)]) - s[t(452)]({ key: n[t(1594)](new he(e, c, e[t(2619)], c)), value: i._parse(new he(e, e[t(909)][c], e.path, c)), alwaysSet: c in e[t(909)] }); - return e.common.async ? ee[t(1917)](r, s) : ee[t(565)](r, s); - } - get [a(1294)]() { - const x = a; - return this._def[x(1916)]; + return this[x(880)][x(432)]; } static create(x, t, r) { - const e = a; - return t instanceof C0 ? new wx({ keyType: x, valueType: t, typeName: p0.ZodRecord, ...y0(r) }) : new wx({ keyType: ve[e(665)](), valueType: x, typeName: p0[e(2849)], ...y0(t) }); + const e = a, s = /* @__PURE__ */ new Map(); + for (const n of t) { + const i = g0(n.shape[x]); + if (!i[e(1332)]) throw new Error(e(1154) + x + e(2558)); + for (const c of i) { + if (s[e(441)](c)) throw new Error(e(889) + String(x) + " has duplicate value " + String(c)); + s[e(1750)](c, n); + } + } + return new na({ typeName: pe[e(1365)], discriminator: x, options: t, optionsMap: s, ...ve(r) }); } } -class Aa extends C0 { - get [a(1420)]() { - const x = a; - return this[x(775)][x(1386)]; +function Zt(o, x) { + const t = a, r = I0(o), e = I0(x); + if (o === x) return { valid: !0, data: o }; + if (r === ae[t(2844)] && e === ae.object) { + const s = Te[t(1408)](x), n = Te[t(1408)](o).filter((c) => s[t(1104)](c) !== -1), i = { ...o, ...x }; + for (const c of n) { + const u = Zt(o[c], x[c]); + if (!u[t(295)]) return { valid: !1 }; + i[c] = u[t(2887)]; + } + return { valid: !0, data: i }; + } else if (r === ae[t(2173)] && e === ae.array) { + if (o[t(1332)] !== x.length) return { valid: !1 }; + const s = []; + for (let n = 0; n < o[t(1332)]; n++) { + const i = o[n], c = x[n], u = Zt(i, c); + if (!u[t(295)]) return { valid: !1 }; + s.push(u[t(2887)]); + } + return { valid: !0, data: s }; + } else return r === ae[t(2714)] && e === ae[t(2714)] && +o == +x ? { valid: !0, data: o } : { valid: !1 }; +} +class vx extends Fe { + [a(1908)](x) { + const t = a, { status: r, ctx: e } = this._processInputParams(x), s = (n, i) => { + const c = K; + if (Fa(n) || Fa(i)) return he; + const u = Zt(n[c(998)], i[c(998)]); + return u[c(295)] ? ((Na(n) || Na(i)) && r[c(973)](), { status: r[c(998)], value: u[c(2887)] }) : (Y(e, { code: W[c(1645)] }), he); + }; + return e[t(1249)][t(418)] ? Promise[t(1288)]([this[t(880)][t(1026)][t(1810)]({ data: e[t(2887)], path: e[t(2475)], parent: e }), this._def[t(2102)]._parseAsync({ data: e[t(2887)], path: e.path, parent: e })]).then(([n, i]) => s(n, i)) : s(this[t(880)].left[t(447)]({ data: e[t(2887)], path: e.path, parent: e }), this[t(880)][t(2102)][t(447)]({ data: e[t(2887)], path: e[t(2475)], parent: e })); } - get [a(469)]() { - const x = a; - return this[x(775)][x(1916)]; +} +vx[a(2469)] = (o, x, t) => { + const r = a; + return new vx({ left: o, right: x, typeName: pe[r(1551)], ...ve(t) }); +}; +class O0 extends Fe { + [a(1908)](x) { + const t = a, { status: r, ctx: e } = this[t(1050)](x); + if (e[t(2217)] !== ae[t(2173)]) return Y(e, { code: W[t(2127)], expected: ae[t(2173)], received: e[t(2217)] }), he; + if (e.data.length < this[t(880)][t(1613)][t(1332)]) return Y(e, { code: W.too_small, minimum: this._def[t(1613)][t(1332)], inclusive: !0, exact: !1, type: t(2173) }), he; + !this[t(880)][t(2061)] && e[t(2887)].length > this[t(880)].items.length && (Y(e, { code: W[t(2479)], maximum: this[t(880)][t(1613)][t(1332)], inclusive: !0, exact: !1, type: t(2173) }), r[t(973)]()); + const n = [...e.data][t(2742)]((i, c) => { + const u = t, d = this[u(880)].items[c] || this[u(880)].rest; + return d ? d[u(1908)](new p0(e, i, e[u(2475)], c)) : null; + })[t(1706)]((i) => !!i); + return e[t(1249)][t(418)] ? Promise[t(1288)](n)[t(723)]((i) => e0[t(352)](r, i)) : e0[t(352)](r, n); } - [a(1594)](x) { - const t = a, { status: r, ctx: e } = this[t(1020)](x); - if (e.parsedType !== a0[t(1649)]) return Y(e, { code: Z[t(1801)], expected: a0[t(1649)], received: e[t(2573)] }), h0; - const s = this[t(775)][t(1386)], n = this[t(775)][t(1916)], i = [...e[t(909)][t(1587)]()].map(([c, u], d) => { - const f = t; - return { key: s[f(1594)](new he(e, c, e[f(2619)], [d, "key"])), value: n[f(1594)](new he(e, u, e[f(2619)], [d, f(1732)])) }; + get [a(1613)]() { + const x = a; + return this._def[x(1613)]; + } + rest(x) { + const t = a; + return new O0({ ...this[t(880)], rest: x }); + } +} +O0[a(2469)] = (o, x) => { + const t = a; + if (!Array[t(977)](o)) throw new Error(t(508)); + return new O0({ items: o, typeName: pe[t(2800)], rest: null, ...ve(x) }); +}; +class wx extends Fe { + get [a(1253)]() { + const x = a; + return this[x(880)][x(938)]; + } + get [a(1904)]() { + const x = a; + return this._def[x(1788)]; + } + [a(1908)](x) { + const t = a, { status: r, ctx: e } = this[t(1050)](x); + if (e[t(2217)] !== ae[t(2844)]) return Y(e, { code: W.invalid_type, expected: ae[t(2844)], received: e[t(2217)] }), he; + const s = [], n = this[t(880)][t(938)], i = this._def[t(1788)]; + for (const c in e[t(2887)]) + s[t(902)]({ key: n._parse(new p0(e, c, e.path, c)), value: i._parse(new p0(e, e[t(2887)][c], e[t(2475)], c)), alwaysSet: c in e[t(2887)] }); + return e.common[t(418)] ? e0[t(1070)](r, s) : e0[t(439)](r, s); + } + get element() { + return this[a(880)].valueType; + } + static [a(2469)](x, t, r) { + const e = a; + return t instanceof Fe ? new wx({ keyType: x, valueType: t, typeName: pe[e(2284)], ...ve(r) }) : new wx({ keyType: v0[e(2469)](), valueType: x, typeName: pe.ZodRecord, ...ve(t) }); + } +} +class Aa extends Fe { + get keySchema() { + const x = a; + return this[x(880)][x(938)]; + } + get [a(1904)]() { + const x = a; + return this[x(880)][x(1788)]; + } + [a(1908)](x) { + const t = a, { status: r, ctx: e } = this[t(1050)](x); + if (e[t(2217)] !== ae.map) return Y(e, { code: W[t(2127)], expected: ae[t(2742)], received: e[t(2217)] }), he; + const s = this._def[t(938)], n = this[t(880)].valueType, i = [...e[t(2887)][t(2700)]()].map(([c, u], d) => { + const l = t; + return { key: s._parse(new p0(e, c, e[l(2475)], [d, l(1175)])), value: n[l(1908)](new p0(e, u, e.path, [d, "value"])) }; }); - if (e[t(2421)][t(1973)]) { + if (e[t(1249)][t(418)]) { const c = /* @__PURE__ */ new Map(); - return Promise.resolve()[t(2403)](async () => { + return Promise[t(1635)]()[t(723)](async () => { const u = t; for (const d of i) { - const f = await d[u(1867)], l = await d[u(1732)]; - if (f[u(2861)] === "aborted" || l[u(2861)] === u(532)) return h0; - (f.status === "dirty" || l[u(2861)] === u(1357)) && r.dirty(), c.set(f[u(1732)], l.value); + const l = await d[u(1175)], f = await d.value; + if (l[u(2745)] === u(2234) || f.status === "aborted") return he; + (l[u(2745)] === u(973) || f[u(2745)] === u(973)) && r[u(973)](), c[u(1750)](l[u(998)], f[u(998)]); } - return { status: r[u(1732)], value: c }; + return { status: r.value, value: c }; }); } else { const c = /* @__PURE__ */ new Map(); for (const u of i) { - const d = u[t(1867)], f = u[t(1732)]; - if (d.status === t(532) || f[t(2861)] === "aborted") return h0; - (d.status === t(1357) || f[t(2861)] === "dirty") && r[t(1357)](), c[t(758)](d.value, f[t(1732)]); + const d = u.key, l = u.value; + if (d.status === t(2234) || l.status === t(2234)) return he; + (d[t(2745)] === t(973) || l[t(2745)] === "dirty") && r.dirty(), c[t(1750)](d.value, l.value); } - return { status: r[t(1732)], value: c }; + return { status: r[t(998)], value: c }; } } } -Aa[a(665)] = (o, x, t) => { +Aa[a(2469)] = (o, x, t) => { const r = a; - return new Aa({ valueType: x, keyType: o, typeName: p0[r(1285)], ...y0(t) }); + return new Aa({ valueType: x, keyType: o, typeName: pe[r(656)], ...ve(t) }); }; -class rx extends C0 { - [a(1594)](x) { - const t = a, { status: r, ctx: e } = this[t(1020)](x); - if (e.parsedType !== a0[t(758)]) return Y(e, { code: Z[t(1801)], expected: a0[t(758)], received: e[t(2573)] }), h0; - const s = this._def; - s[t(1872)] !== null && e[t(909)][t(2715)] < s.minSize[t(1732)] && (Y(e, { code: Z.too_small, minimum: s[t(1872)][t(1732)], type: t(758), inclusive: !0, exact: !1, message: s[t(1872)][t(225)] }), r.dirty()), s[t(1127)] !== null && e.data.size > s[t(1127)][t(1732)] && (Y(e, { code: Z.too_big, maximum: s.maxSize[t(1732)], type: "set", inclusive: !0, exact: !1, message: s[t(1127)][t(225)] }), r[t(1357)]()); - const n = this[t(775)][t(1916)]; +class rx extends Fe { + _parse(x) { + const t = a, { status: r, ctx: e } = this._processInputParams(x); + if (e[t(2217)] !== ae[t(1750)]) return Y(e, { code: W[t(2127)], expected: ae[t(1750)], received: e[t(2217)] }), he; + const s = this[t(880)]; + s.minSize !== null && e[t(2887)][t(2187)] < s[t(2622)].value && (Y(e, { code: W[t(1487)], minimum: s[t(2622)].value, type: t(1750), inclusive: !0, exact: !1, message: s.minSize.message }), r.dirty()), s[t(1583)] !== null && e[t(2887)][t(2187)] > s[t(1583)][t(998)] && (Y(e, { code: W[t(2479)], maximum: s[t(1583)][t(998)], type: "set", inclusive: !0, exact: !1, message: s[t(1583)][t(615)] }), r[t(973)]()); + const n = this[t(880)].valueType; function i(u) { - const d = t, f = /* @__PURE__ */ new Set(); - for (const l of u) { - if (l[d(2861)] === d(532)) return h0; - l[d(2861)] === d(1357) && r.dirty(), f[d(2655)](l.value); + const d = t, l = /* @__PURE__ */ new Set(); + for (const f of u) { + if (f[d(2745)] === d(2234)) return he; + f.status === d(973) && r[d(973)](), l[d(479)](f.value); } - return { status: r[d(1732)], value: f }; + return { status: r[d(998)], value: l }; } - const c = [...e[t(909)][t(1382)]()][t(1649)]((u, d) => n[t(1594)](new he(e, u, e.path, d))); - return e[t(2421)].async ? Promise.all(c)[t(2403)]((u) => i(u)) : i(c); + const c = [...e[t(2887)][t(1573)]()][t(2742)]((u, d) => n._parse(new p0(e, u, e[t(2475)], d))); + return e.common.async ? Promise[t(1288)](c)[t(723)]((u) => i(u)) : i(c); } - [a(1279)](x, t) { + [a(1414)](x, t) { const r = a; - return new rx({ ...this._def, minSize: { value: x, message: r0[r(766)](t) } }); + return new rx({ ...this[r(880)], minSize: { value: x, message: re[r(2032)](t) } }); } - [a(1393)](x, t) { + [a(718)](x, t) { const r = a; - return new rx({ ...this[r(775)], maxSize: { value: x, message: r0[r(766)](t) } }); + return new rx({ ...this._def, maxSize: { value: x, message: re[r(2032)](t) } }); } - [a(2715)](x, t) { - return this[a(1279)](x, t).max(x, t); + [a(2187)](x, t) { + const r = a; + return this[r(1414)](x, t)[r(718)](x, t); } - [a(1890)](x) { - return this[a(1279)](1, x); + [a(1453)](x) { + return this.min(1, x); } } rx.create = (o, x) => { const t = a; - return new rx({ valueType: o, minSize: null, maxSize: null, typeName: p0[t(2505)], ...y0(x) }); + return new rx({ valueType: o, minSize: null, maxSize: null, typeName: pe[t(1958)], ...ve(x) }); }; -class Kt extends C0 { - get [a(2555)]() { +class Kt extends Fe { + get [a(224)]() { const x = a; - return this[x(775)][x(923)](); + return this[x(880)][x(1617)](); } - [a(1594)](x) { + [a(1908)](x) { const t = a, { ctx: r } = this._processInputParams(x); - return this[t(775)].getter()[t(1594)]({ data: r[t(909)], path: r.path, parent: r }); + return this._def.getter()[t(1908)]({ data: r[t(2887)], path: r[t(2475)], parent: r }); } } -Kt[a(665)] = (o, x) => { +Kt.create = (o, x) => { const t = a; - return new Kt({ getter: o, typeName: p0[t(2398)], ...y0(x) }); + return new Kt({ getter: o, typeName: pe[t(1252)], ...ve(x) }); }; -class Sx extends C0 { - [a(1594)](x) { +class Sx extends Fe { + _parse(x) { const t = a; - if (x[t(909)] !== this[t(775)][t(1732)]) { - const r = this[t(1350)](x); - return Y(r, { received: r[t(909)], code: Z.invalid_literal, expected: this[t(775)][t(1732)] }), h0; + if (x[t(2887)] !== this[t(880)][t(998)]) { + const r = this._getOrReturnCtx(x); + return Y(r, { received: r[t(2887)], code: W[t(419)], expected: this[t(880)][t(998)] }), he; } - return { status: "valid", value: x[t(909)] }; + return { status: "valid", value: x[t(2887)] }; } - get [a(1732)]() { + get [a(998)]() { const x = a; - return this[x(775)][x(1732)]; + return this[x(880)][x(998)]; } } -Sx[a(665)] = (o, x) => new Sx({ value: o, typeName: p0.ZodLiteral, ...y0(x) }); -function Ms(o, x) { - return new _e({ values: o, typeName: p0.ZodEnum, ...y0(x) }); +Sx[a(2469)] = (o, x) => { + const t = a; + return new Sx({ value: o, typeName: pe[t(2677)], ...ve(x) }); +}; +function Us(o, x) { + const t = a; + return new D0({ values: o, typeName: pe[t(795)], ...ve(x) }); } -class _e extends C0 { - [a(1594)](x) { +class D0 extends Fe { + [a(1908)](x) { const t = a; - if (typeof x[t(909)] !== t(2161)) { - const r = this[t(1350)](x), e = this[t(775)].values; - return Y(r, { expected: T0[t(1162)](e), received: r.parsedType, code: Z[t(1801)] }), h0; + if (typeof x[t(2887)] !== t(1653)) { + const r = this[t(2407)](x), e = this[t(880)][t(1573)]; + return Y(r, { expected: Te[t(1654)](e), received: r[t(2217)], code: W[t(2127)] }), he; } - if (!this[t(2851)] && (this[t(2851)] = new Set(this[t(775)][t(1382)])), !this._cache[t(2075)](x[t(909)])) { - const r = this[t(1350)](x), e = this[t(775)][t(1382)]; - return Y(r, { received: r[t(909)], code: Z[t(353)], options: e }), h0; + if (!this[t(2852)] && (this[t(2852)] = new Set(this[t(880)][t(1573)])), !this._cache[t(441)](x[t(2887)])) { + const r = this[t(2407)](x), e = this[t(880)].values; + return Y(r, { received: r[t(2887)], code: W[t(1593)], options: e }), he; } - return ae(x[t(909)]); + return a0(x[t(2887)]); } - get [a(1005)]() { - return this[a(775)].values; + get options() { + return this[a(880)].values; } - get [a(1419)]() { + get enum() { const x = a, t = {}; - for (const r of this[x(775)][x(1382)]) + for (const r of this[x(880)][x(1573)]) t[r] = r; return t; } - get Values() { + get [a(2858)]() { + const x = {}; + for (const t of this._def.values) + x[t] = t; + return x; + } + get [a(2114)]() { const x = a, t = {}; - for (const r of this._def[x(1382)]) + for (const r of this._def[x(1573)]) t[r] = r; return t; } - get [a(2688)]() { - const x = a, t = {}; - for (const r of this[x(775)][x(1382)]) - t[r] = r; - return t; - } - extract(x, t = this[a(775)]) { + [a(1986)](x, t = this[a(880)]) { const r = a; - return _e.create(x, { ...this[r(775)], ...t }); + return D0[r(2469)](x, { ...this[r(880)], ...t }); } - exclude(x, t = this[a(775)]) { + [a(2257)](x, t = this._def) { const r = a; - return _e[r(665)](this[r(1005)][r(2145)]((e) => !x[r(1150)](e)), { ...this[r(775)], ...t }); + return D0[r(2469)](this[r(961)][r(1706)]((e) => !x.includes(e)), { ...this[r(880)], ...t }); } } -_e[a(665)] = Ms; -class Gt extends C0 { - [a(1594)](x) { - const t = a, r = T0[t(1631)](this._def.values), e = this[t(1350)](x); - if (e[t(2573)] !== a0[t(2161)] && e[t(2573)] !== a0[t(2153)]) { - const s = T0[t(925)](r); - return Y(e, { expected: T0.joinValues(s), received: e.parsedType, code: Z.invalid_type }), h0; +D0[a(2469)] = Us; +class Gt extends Fe { + _parse(x) { + const t = a, r = Te.getValidEnumValues(this._def[t(1573)]), e = this._getOrReturnCtx(x); + if (e[t(2217)] !== ae.string && e.parsedType !== ae[t(1206)]) { + const s = Te[t(2900)](r); + return Y(e, { expected: Te[t(1654)](s), received: e.parsedType, code: W[t(2127)] }), he; } - if (!this[t(2851)] && (this[t(2851)] = new Set(T0[t(1631)](this[t(775)].values))), !this[t(2851)][t(2075)](x.data)) { - const s = T0[t(925)](r); - return Y(e, { received: e[t(909)], code: Z[t(353)], options: s }), h0; + if (!this._cache && (this[t(2852)] = new Set(Te[t(579)](this._def[t(1573)]))), !this[t(2852)].has(x[t(2887)])) { + const s = Te[t(2900)](r); + return Y(e, { received: e[t(2887)], code: W[t(1593)], options: s }), he; } - return ae(x[t(909)]); + return a0(x.data); } - get [a(1419)]() { + get enum() { const x = a; - return this._def[x(1382)]; + return this[x(880)][x(1573)]; } } Gt.create = (o, x) => { const t = a; - return new Gt({ values: o, typeName: p0[t(2294)], ...y0(x) }); + return new Gt({ values: o, typeName: pe[t(847)], ...ve(x) }); }; -class kx extends C0 { - [a(264)]() { +class kx extends Fe { + [a(2486)]() { const x = a; - return this[x(775)][x(612)]; + return this._def[x(190)]; } - [a(1594)](x) { + [a(1908)](x) { const t = a, { ctx: r } = this._processInputParams(x); - if (r[t(2573)] !== a0[t(2447)] && r.common.async === !1) return Y(r, { code: Z.invalid_type, expected: a0.promise, received: r[t(2573)] }), h0; - const e = r.parsedType === a0[t(2447)] ? r[t(909)] : Promise[t(1571)](r[t(909)]); - return ae(e[t(2403)]((s) => { + if (r[t(2217)] !== ae[t(1114)] && r.common.async === !1) return Y(r, { code: W[t(2127)], expected: ae[t(1114)], received: r[t(2217)] }), he; + const e = r.parsedType === ae[t(1114)] ? r[t(2887)] : Promise.resolve(r[t(2887)]); + return a0(e.then((s) => { const n = t; - return this[n(775)][n(612)].parseAsync(s, { path: r.path, errorMap: r[n(2421)][n(2362)] }); + return this[n(880)][n(190)][n(2572)](s, { path: r[n(2475)], errorMap: r[n(1249)].contextualErrorMap }); })); } } -kx[a(665)] = (o, x) => { +kx[a(2469)] = (o, x) => { const t = a; - return new kx({ type: o, typeName: p0[t(1135)], ...y0(x) }); + return new kx({ type: o, typeName: pe[t(2012)], ...ve(x) }); }; -class qe extends C0 { - [a(257)]() { - const x = a; - return this[x(775)][x(2555)]; +class A0 extends Fe { + innerType() { + return this[a(880)].schema; } - [a(1951)]() { + [a(1022)]() { const x = a; - return this[x(775)][x(2555)][x(775)].typeName === p0.ZodEffects ? this[x(775)][x(2555)].sourceType() : this._def[x(2555)]; + return this._def[x(224)]._def[x(327)] === pe[x(2787)] ? this[x(880)].schema[x(1022)]() : this._def[x(224)]; } - [a(1594)](x) { - const t = a, { status: r, ctx: e } = this[t(1020)](x), s = this[t(775)][t(2860)] || null, n = { addIssue: (i) => { + [a(1908)](x) { + const t = a, { status: r, ctx: e } = this._processInputParams(x), s = this[t(880)][t(2286)] || null, n = { addIssue: (i) => { const c = t; - Y(e, i), i[c(822)] ? r[c(1284)]() : r.dirty(); + Y(e, i), i.fatal ? r[c(2693)]() : r.dirty(); }, get path() { - return e[t(2619)]; + return e[t(2475)]; } }; - if (n[t(2847)] = n[t(2847)][t(2488)](n), s[t(612)] === t(931)) { - const i = s[t(538)](e.data, n); - if (e[t(2421)][t(1973)]) return Promise[t(1571)](i)[t(2403)](async (c) => { + if (n[t(704)] = n[t(704)].bind(n), s[t(190)] === t(353)) { + const i = s.transform(e.data, n); + if (e[t(1249)][t(418)]) return Promise.resolve(i)[t(723)](async (c) => { const u = t; - if (r[u(1732)] === u(532)) return h0; - const d = await this._def[u(2555)][u(1098)]({ data: c, path: e[u(2619)], parent: e }); - return d.status === u(532) ? h0 : d.status === u(1357) ? Qe(d[u(1732)]) : r[u(1732)] === u(1357) ? Qe(d.value) : d; + if (r[u(998)] === "aborted") return he; + const d = await this[u(880)].schema[u(1810)]({ data: c, path: e[u(2475)], parent: e }); + return d[u(2745)] === u(2234) ? he : d.status === "dirty" || r[u(998)] === u(973) ? Q0(d[u(998)]) : d; }); { - if (r.value === t(532)) return h0; - const c = this._def.schema._parseSync({ data: i, path: e.path, parent: e }); - return c.status === "aborted" ? h0 : c.status === t(1357) || r[t(1732)] === "dirty" ? Qe(c[t(1732)]) : c; + if (r[t(998)] === t(2234)) return he; + const c = this[t(880)][t(224)]._parseSync({ data: i, path: e[t(2475)], parent: e }); + return c[t(2745)] === t(2234) ? he : c[t(2745)] === t(973) || r[t(998)] === t(973) ? Q0(c[t(998)]) : c; } } - if (s.type === t(414)) { + if (s[t(190)] === "refinement") { const i = (c) => { - const u = t, d = s[u(414)](c, n); - if (e[u(2421)][u(1973)]) return Promise[u(1571)](d); + const u = t, d = s[u(1310)](c, n); + if (e[u(1249)][u(418)]) return Promise[u(1635)](d); if (d instanceof Promise) throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead."); return c; }; - if (e.common[t(1973)] === !1) { - const c = this._def.schema._parseSync({ data: e[t(909)], path: e[t(2619)], parent: e }); - return c[t(2861)] === t(532) ? h0 : (c.status === "dirty" && r[t(1357)](), i(c[t(1732)]), { status: r.value, value: c[t(1732)] }); - } else return this._def.schema[t(1098)]({ data: e[t(909)], path: e[t(2619)], parent: e })[t(2403)]((c) => { + if (e[t(1249)][t(418)] === !1) { + const c = this._def[t(224)][t(447)]({ data: e[t(2887)], path: e[t(2475)], parent: e }); + return c[t(2745)] === t(2234) ? he : (c[t(2745)] === t(973) && r.dirty(), i(c[t(998)]), { status: r[t(998)], value: c[t(998)] }); + } else return this[t(880)][t(224)][t(1810)]({ data: e.data, path: e.path, parent: e })[t(723)]((c) => { const u = t; - return c[u(2861)] === u(532) ? h0 : (c[u(2861)] === "dirty" && r.dirty(), i(c.value)[u(2403)](() => { + return c[u(2745)] === u(2234) ? he : (c[u(2745)] === "dirty" && r[u(973)](), i(c[u(998)])[u(723)](() => { const d = u; - return { status: r.value, value: c[d(1732)] }; + return { status: r.value, value: c[d(998)] }; })); }); } - if (s[t(612)] === "transform") - if (e[t(2421)][t(1973)] === !1) { - const i = this[t(775)].schema[t(2802)]({ data: e.data, path: e[t(2619)], parent: e }); - if (!Ve(i)) return h0; - const c = s.transform(i[t(1732)], n); - if (c instanceof Promise) throw new Error(t(2017)); - return { status: r[t(1732)], value: c }; - } else return this[t(775)][t(2555)][t(1098)]({ data: e.data, path: e[t(2619)], parent: e }).then((i) => { + if (s[t(190)] === t(770)) + if (e.common[t(418)] === !1) { + const i = this[t(880)].schema[t(447)]({ data: e[t(2887)], path: e.path, parent: e }); + if (!V0(i)) return he; + const c = s[t(770)](i[t(998)], n); + if (c instanceof Promise) throw new Error(t(2023)); + return { status: r[t(998)], value: c }; + } else return this[t(880)].schema._parseAsync({ data: e[t(2887)], path: e[t(2475)], parent: e })[t(723)]((i) => { const c = t; - return Ve(i) ? Promise[c(1571)](s[c(538)](i[c(1732)], n)).then((u) => ({ status: r[c(1732)], value: u })) : h0; + return V0(i) ? Promise[c(1635)](s[c(770)](i[c(998)], n))[c(723)]((u) => ({ status: r[c(998)], value: u })) : he; }); - T0[t(2266)](s); + Te[t(907)](s); } } -qe[a(665)] = (o, x, t) => new qe({ schema: o, typeName: p0.ZodEffects, effect: x, ...y0(t) }), qe[a(2646)] = (o, x, t) => new qe({ schema: x, effect: { type: "preprocess", transform: o }, typeName: p0.ZodEffects, ...y0(t) }); -class we extends C0 { - [a(1594)](x) { - const t = a; - return this[t(1640)](x) === a0[t(420)] ? ae(void 0) : this[t(775)][t(257)][t(1594)](x); - } - [a(264)]() { - const x = a; - return this[x(775)][x(257)]; - } -} -we.create = (o, x) => { - const t = a; - return new we({ innerType: o, typeName: p0[t(1168)], ...y0(x) }); +A0[a(2469)] = (o, x, t) => new A0({ schema: o, typeName: pe.ZodEffects, effect: x, ...ve(t) }), A0[a(2279)] = (o, x, t) => { + const r = a; + return new A0({ schema: x, effect: { type: r(353), transform: o }, typeName: pe[r(2787)], ...ve(t) }); }; -class De extends C0 { - _parse(x) { +class w0 extends Fe { + [a(1908)](x) { const t = a; - return this[t(1640)](x) === a0.null ? ae(null) : this[t(775)].innerType._parse(x); + return this[t(2571)](x) === ae[t(2694)] ? a0(void 0) : this[t(880)].innerType[t(1908)](x); } unwrap() { const x = a; - return this[x(775)][x(257)]; + return this[x(880)][x(2817)]; } } -De[a(665)] = (o, x) => new De({ innerType: o, typeName: p0.ZodNullable, ...y0(x) }); -class Px extends C0 { - [a(1594)](x) { - const t = a, { ctx: r } = this[t(1020)](x); +w0.create = (o, x) => new w0({ innerType: o, typeName: pe.ZodOptional, ...ve(x) }); +class j0 extends Fe { + [a(1908)](x) { + const t = a; + return this._getType(x) === ae[t(1589)] ? a0(null) : this._def[t(2817)][t(1908)](x); + } + [a(2486)]() { + const x = a; + return this[x(880)][x(2817)]; + } +} +j0[a(2469)] = (o, x) => { + const t = a; + return new j0({ innerType: o, typeName: pe[t(488)], ...ve(x) }); +}; +class Px extends Fe { + [a(1908)](x) { + const t = a, { ctx: r } = this[t(1050)](x); let e = r.data; - return r[t(2573)] === a0[t(420)] && (e = this[t(775)][t(244)]()), this[t(775)][t(257)]._parse({ data: e, path: r[t(2619)], parent: r }); + return r[t(2217)] === ae[t(2694)] && (e = this[t(880)][t(397)]()), this[t(880)][t(2817)]._parse({ data: e, path: r[t(2475)], parent: r }); } - [a(1772)]() { + [a(2442)]() { const x = a; - return this[x(775)][x(257)]; + return this._def[x(2817)]; } } -Px[a(665)] = (o, x) => { +Px[a(2469)] = (o, x) => { const t = a; - return new Px({ innerType: o, typeName: p0[t(841)], defaultValue: typeof x.default == "function" ? x[t(1944)] : () => x[t(1944)], ...y0(x) }); + return new Px({ innerType: o, typeName: pe[t(2109)], defaultValue: typeof x[t(2222)] == "function" ? x[t(2222)] : () => x[t(2222)], ...ve(x) }); }; -class Ix extends C0 { - [a(1594)](x) { - const t = a, { ctx: r } = this._processInputParams(x), e = { ...r, common: { ...r[t(2421)], issues: [] } }, s = this[t(775)][t(257)][t(1594)]({ data: e.data, path: e[t(2619)], parent: { ...e } }); - return bx(s) ? s[t(2403)]((n) => { +class Ex extends Fe { + [a(1908)](x) { + const t = a, { ctx: r } = this._processInputParams(x), e = { ...r, common: { ...r.common, issues: [] } }, s = this._def[t(2817)][t(1908)]({ data: e.data, path: e.path, parent: { ...e } }); + return bx(s) ? s.then((n) => { const i = t; - return { status: i(614), value: n.status === i(614) ? n[i(1732)] : this._def[i(1423)]({ get error() { + return { status: "valid", value: n.status === "valid" ? n[i(998)] : this[i(880)][i(2773)]({ get error() { const c = i; - return new ke(e.common[c(1157)]); - }, input: e[i(909)] }) }; - }) : { status: "valid", value: s[t(2861)] === t(614) ? s.value : this[t(775)][t(1423)]({ get error() { + return new k0(e.common[c(2196)]); + }, input: e[i(2887)] }) }; + }) : { status: t(295), value: s[t(2745)] === t(295) ? s.value : this[t(880)].catchValue({ get error() { const n = t; - return new ke(e[n(2421)][n(1157)]); - }, input: e[t(909)] }) }; + return new k0(e.common[n(2196)]); + }, input: e[t(2887)] }) }; } - removeCatch() { + [a(2068)]() { const x = a; - return this[x(775)][x(257)]; + return this._def[x(2817)]; } } -Ix.create = (o, x) => { +Ex[a(2469)] = (o, x) => { const t = a; - return new Ix({ innerType: o, typeName: p0[t(1822)], catchValue: typeof x[t(1995)] === t(1622) ? x[t(1995)] : () => x.catch, ...y0(x) }); + return new Ex({ innerType: o, typeName: pe[t(722)], catchValue: typeof x[t(1539)] == "function" ? x[t(1539)] : () => x[t(1539)], ...ve(x) }); }; -class Oa extends C0 { - [a(1594)](x) { +class _a extends Fe { + [a(1908)](x) { const t = a; - if (this._getType(x) !== a0[t(281)]) { - const e = this[t(1350)](x); - return Y(e, { code: Z.invalid_type, expected: a0.nan, received: e.parsedType }), h0; + if (this[t(2571)](x) !== ae[t(930)]) { + const e = this[t(2407)](x); + return Y(e, { code: W.invalid_type, expected: ae[t(930)], received: e[t(2217)] }), he; } - return { status: t(614), value: x[t(909)] }; + return { status: t(295), value: x.data }; } } -Oa.create = (o) => { +_a[a(2469)] = (o) => { const x = a; - return new Oa({ typeName: p0[x(2377)], ...y0(o) }); + return new _a({ typeName: pe[x(251)], ...ve(o) }); }; -class Ls extends C0 { - [a(1594)](x) { - const t = a, { ctx: r } = this[t(1020)](x), e = r[t(909)]; - return this[t(775)][t(612)][t(1594)]({ data: e, path: r.path, parent: r }); +class Hs extends Fe { + [a(1908)](x) { + const t = a, { ctx: r } = this[t(1050)](x), e = r[t(2887)]; + return this[t(880)][t(190)][t(1908)]({ data: e, path: r.path, parent: r }); } - unwrap() { - return this[a(775)].type; + [a(2486)]() { + const x = a; + return this._def[x(190)]; } } -class oa extends C0 { - _parse(x) { - const t = a, { status: r, ctx: e } = this[t(1020)](x); - if (e[t(2421)][t(1973)]) +class oa extends Fe { + [a(1908)](x) { + const t = a, { status: r, ctx: e } = this[t(1050)](x); + if (e[t(1249)][t(418)]) return (async () => { - const n = t, i = await this[n(775)].in[n(1098)]({ data: e[n(909)], path: e[n(2619)], parent: e }); - return i[n(2861)] === n(532) ? h0 : i.status === n(1357) ? (r[n(1357)](), Qe(i[n(1732)])) : this[n(775)][n(2805)]._parseAsync({ data: i[n(1732)], path: e.path, parent: e }); + const n = t, i = await this[n(880)].in[n(1810)]({ data: e.data, path: e.path, parent: e }); + return i[n(2745)] === "aborted" ? he : i[n(2745)] === n(973) ? (r.dirty(), Q0(i[n(998)])) : this[n(880)][n(446)][n(1810)]({ data: i[n(998)], path: e[n(2475)], parent: e }); })(); { - const s = this._def.in[t(2802)]({ data: e[t(909)], path: e[t(2619)], parent: e }); - return s.status === t(532) ? h0 : s[t(2861)] === t(1357) ? (r[t(1357)](), { status: "dirty", value: s[t(1732)] }) : this[t(775)].out[t(2802)]({ data: s[t(1732)], path: e[t(2619)], parent: e }); + const s = this[t(880)].in._parseSync({ data: e.data, path: e[t(2475)], parent: e }); + return s[t(2745)] === "aborted" ? he : s[t(2745)] === t(973) ? (r[t(973)](), { status: t(973), value: s[t(998)] }) : this[t(880)][t(446)][t(447)]({ data: s.value, path: e[t(2475)], parent: e }); } } - static create(x, t) { - return new oa({ in: x, out: t, typeName: p0.ZodPipeline }); + static [a(2469)](x, t) { + return new oa({ in: x, out: t, typeName: pe.ZodPipeline }); } } -class Ex extends C0 { - [a(1594)](x) { - const t = a, r = this[t(775)][t(257)][t(1594)](x), e = (s) => { +class Ix extends Fe { + [a(1908)](x) { + const t = a, r = this[t(880)][t(2817)]._parse(x), e = (s) => { const n = t; - return Ve(s) && (s[n(1732)] = Object[n(1221)](s[n(1732)])), s; + return V0(s) && (s[n(998)] = Object[n(1230)](s[n(998)])), s; }; - return bx(r) ? r[t(2403)]((s) => e(s)) : e(r); + return bx(r) ? r[t(723)]((s) => e(s)) : e(r); } - [a(264)]() { + unwrap() { const x = a; - return this._def[x(257)]; + return this[x(880)][x(2817)]; } } -Ex[a(665)] = (o, x) => new Ex({ innerType: o, typeName: p0.ZodReadonly, ...y0(x) }); -function _a(o, x) { - const t = a, r = typeof o === t(1622) ? o(x) : typeof o === t(2161) ? { message: o } : o; - return typeof r === t(2161) ? { message: r } : r; +Ix[a(2469)] = (o, x) => { + const t = a; + return new Ix({ innerType: o, typeName: pe[t(255)], ...ve(x) }); +}; +function Oa(o, x) { + const t = a, r = typeof o === t(1235) ? o(x) : typeof o === t(1653) ? { message: o } : o; + return typeof r == "string" ? { message: r } : r; } -function fo(o, x = {}, t) { +function po(o, x = {}, t) { const r = a; - return o ? ax[r(665)]().superRefine((e, s) => { + return o ? ax[r(2469)]()[r(2387)]((e, s) => { const n = r, i = o(e); - if (i instanceof Promise) return i[n(2403)]((c) => { + if (i instanceof Promise) return i[n(723)]((c) => { const u = n; if (!c) { - const d = _a(x, e), f = d[u(822)] ?? t ?? !0; - s[u(2847)]({ code: u(806), ...d, fatal: f }); + const d = Oa(x, e), l = d[u(1004)] ?? t ?? !0; + s.addIssue({ code: "custom", ...d, fatal: l }); } }); if (!i) { - const c = _a(x, e), u = c[n(822)] ?? t ?? !0; - s.addIssue({ code: n(806), ...c, fatal: u }); + const c = Oa(x, e), u = c[n(1004)] ?? t ?? !0; + s[n(704)]({ code: n(1893), ...c, fatal: u }); } - }) : ax[r(665)](); + }) : ax[r(2469)](); } -var p0; +var pe; (function(o) { const x = a; - o[x(439)] = x(439), o[x(2334)] = x(2334), o[x(2377)] = x(2377), o[x(303)] = "ZodBigInt", o[x(2626)] = "ZodBoolean", o[x(2259)] = x(2259), o[x(1415)] = x(1415), o.ZodUndefined = "ZodUndefined", o[x(1273)] = x(1273), o.ZodAny = x(1022), o[x(1602)] = "ZodUnknown", o[x(2322)] = "ZodNever", o.ZodVoid = "ZodVoid", o[x(2420)] = x(2420), o[x(1739)] = x(1739), o[x(1597)] = x(1597), o.ZodDiscriminatedUnion = x(2837), o[x(1432)] = x(1432), o.ZodTuple = x(1222), o[x(2849)] = "ZodRecord", o[x(1285)] = x(1285), o.ZodSet = "ZodSet", o[x(1576)] = x(1576), o[x(2398)] = x(2398), o[x(2479)] = x(2479), o.ZodEnum = x(2059), o[x(2720)] = x(2720), o[x(2294)] = x(2294), o.ZodOptional = x(1168), o[x(2307)] = x(2307), o[x(841)] = x(841), o[x(1822)] = "ZodCatch", o[x(1135)] = x(1135), o[x(882)] = x(882), o.ZodPipeline = x(630), o[x(1076)] = x(1076); -})(p0 || (p0 = {})); -const Ux = (o, x = { message: a(2651) + o[a(1055)] }) => fo((t) => t instanceof o, x), g = ve.create, W = Be[a(665)], e0 = Ht[a(665)], q0 = ax[a(665)], Se = Bt.create; -Ce[a(665)]; -const Hx = Zt[a(665)], v0 = le[a(665)], S = W0.create, K0 = yx[a(665)], $s = na.create; -vx[a(665)], Oe.create; -const D0 = wx[a(665)], t0 = Sx[a(665)], R0 = _e.create; -kx[a(665)]; -const B = we[a(665)]; -De[a(665)]; -var ts; -class lo { + o[x(1054)] = "ZodString", o[x(1008)] = x(1008), o.ZodNaN = "ZodNaN", o[x(1143)] = x(1143), o[x(2767)] = x(2767), o[x(1065)] = x(1065), o[x(2651)] = x(2651), o[x(1032)] = x(1032), o[x(2593)] = x(2593), o[x(1256)] = x(1256), o[x(1089)] = x(1089), o[x(2419)] = "ZodNever", o.ZodVoid = x(406), o[x(213)] = x(213), o[x(1183)] = "ZodObject", o[x(1707)] = x(1707), o[x(1365)] = x(1365), o[x(1551)] = x(1551), o[x(2800)] = x(2800), o[x(2284)] = x(2284), o.ZodMap = x(656), o[x(1958)] = "ZodSet", o[x(1538)] = "ZodFunction", o[x(1252)] = x(1252), o[x(2677)] = x(2677), o.ZodEnum = "ZodEnum", o[x(2787)] = x(2787), o[x(847)] = x(847), o[x(1480)] = x(1480), o[x(488)] = "ZodNullable", o[x(2109)] = x(2109), o[x(722)] = x(722), o[x(2012)] = x(2012), o[x(720)] = "ZodBranded", o.ZodPipeline = x(1837), o.ZodReadonly = x(255); +})(pe || (pe = {})); +const Ux = (o, x = { message: a(1730) + o[a(2481)] }) => po((t) => t instanceof o, x), g = v0[a(2469)], Z = B0[a(2469)], ee = Ht[a(2469)], qe = ax[a(2469)], S0 = Bt[a(2469)]; +R0[a(2469)]; +const Hx = Wt[a(2469)], we = h0[a(2469)], S = Ze.create, Ke = yx[a(2469)], zs = na[a(2469)]; +vx.create, O0.create; +const De = wx[a(2469)], te = Sx[a(2469)], Re = D0.create; +kx.create; +const B = w0[a(2469)]; +j0[a(2469)]; +var as, rs; +class mo { constructor(x, t) { - m0(this, "graphInstance"); - m0(this, ts); + me(this, rs); + me(this, as); const r = a; - this[r(1768)] = x, this[r(1719)] = t; + this[r(2261)] = x, this[r(2205)] = t; } - get [(ts = a(1719), a(2585))]() { - const x = a, t = this[x(1768)].getNodeStore(this.nodeId); - if (!t) throw new Error(x(1966) + this[x(1719)]); + get store() { + const x = a, t = this.graphInstance[x(1499)](this[x(2205)]); + if (!t) throw new Error(x(2272) + this[x(2205)]); return t; } - get [a(2482)]() { - const x = a, t = this[x(1768)][x(1655)]().getNode(this[x(1719)]); - if (!t) throw new Error(x(916) + this[x(1719)]); + get [(rs = a(2261), as = a(2205), a(2584))]() { + const x = a, t = this[x(2261)][x(2228)]()[x(1234)](this[x(2205)]); + if (!t) throw new Error(x(1211) + this[x(2205)]); return new Proxy({}, { get: (e, s) => { const n = x; - if (typeof s != "string") return; - const i = t[n(2482)][s], c = s[n(1955)]("__internal_"); - if (!i && !c) throw new Error(n(2592) + s + " not found for node " + this[n(1719)]); + if (typeof s !== n(1653)) return; + const i = t[n(2584)][s], c = s[n(533)]("__internal_"); + if (!i && !c) throw new Error("Action " + s + " not found for node " + this[n(2205)]); return async (u, d) => { - const f = n, l = this[f(2273)](); - if (!l) throw new Error(f(2690) + this[f(1719)]); - const { transport: b, path: h } = l, m = this[f(1768)][f(815)](); - if (!(i != null && i[f(1943)])) { - const k = q0(); - let I; - if (h[f(692)] === 2) I = await b[f(563)]({ method: "sdppp/directRequest", params: { action: s, data: u, sourceNodeId: m } }, k); + const l = n, f = this[l(336)](); + if (!f) throw new Error(l(2590) + this[l(2205)]); + const { transport: b, path: h } = f, m = this[l(2261)][l(1384)](); + if (!(i != null && i[l(1708)])) { + const k = qe(); + let E; + if (h[l(1332)] === 2) E = await b[l(2752)]({ method: l(1690), params: { action: s, data: u, sourceNodeId: m } }, k); else try { - I = await b[f(563)]({ method: f(2203), params: { action: f(345), data: { targetNodeId: this.nodeId, targetAction: s, targetData: u, forwardPath: h[f(2088)](1) }, sourceNodeId: m } }, k); - } catch (A) { - throw console[f(948)](f(2089) + s + ":", A), console[f(948)]({ targetNodeId: this[f(1719)], targetAction: s, targetData: u, forwardPath: h.slice(1) }), A; + E = await b[l(2752)]({ method: l(1690), params: { action: l(1334), data: { targetNodeId: this.nodeId, targetAction: s, targetData: u, forwardPath: h[l(2103)](1) }, sourceNodeId: m } }, k); + } catch (q) { + throw console[l(2265)]("Error in direct request " + s + ":", q), console.error({ targetNodeId: this[l(2205)], targetAction: s, targetData: u, forwardPath: h[l(2103)](1) }), q; } - return I; + return E; } let v; - return h[f(692)] === 2 ? v = b[f(278)]({ action: s, data: u, sourceNodeId: m }, i[f(206)], d) : v = b.streamRequest({ action: f(345), data: { targetNodeId: this.nodeId, targetAction: s, targetData: u, forwardPath: h[f(2088)](1) }, sourceNodeId: m }, i.responseSchema, d), v; + return h[l(1332)] === 2 ? v = b[l(2870)]({ action: s, data: u, sourceNodeId: m }, i[l(1603)], d) : v = b.streamRequest({ action: l(1334), data: { targetNodeId: this[l(2205)], targetAction: s, targetData: u, forwardPath: h[l(2103)](1) }, sourceNodeId: m }, i[l(1603)], d), v; }; } }); } - [a(2273)]() { + [a(336)]() { const x = a; - return this.graphInstance[x(928)](this[x(1719)]); + return this[x(2261)][x(797)](this.nodeId); } } -var as, rs; -class Us { +var ss; +class Vs { constructor(x) { - m0(this, rs); - m0(this, "actionManager"); - m0(this, as); + me(this, ss); + me(this, "actionManager"); + me(this, "broadcastManager"); const t = a; - this[t(1768)] = x, this[t(2206)] = x[t(2206)], this.broadcastManager = x[t(2758)]; + this.graphInstance = x, this.actionManager = x[t(2111)], this[t(1697)] = x[t(1697)]; } - initializeConsumer({ store: x, storeName: t, onStateUpdate: r, requestInitialState: e }) { + [(ss = a(2261), a(645))]({ store: x, storeName: t, onStateUpdate: r, requestInitialState: e }) { const s = a; - this[s(2758)][s(1327)]("store:update:" + t, (n) => { + this.broadcastManager[s(2465)]("store:update:" + t, (n) => { const i = s; try { - n.sourceNodeId !== this[i(1768)][i(815)]() && r(n[i(543)]); + n[i(1768)] !== this[i(2261)].getCurrentNodeId() && r(n[i(1991)]); } catch (c) { - console[i(948)]("[GraphStoreSynchronizer] Error processing store update for " + t + ":", c); + console[i(2265)](i(2105) + t + ":", c); } }); } - [(rs = a(1768), as = a(2758), a(457))]({ store: x, storeName: t, sendStateUpdate: r, onInitialStateRequested: e }) { - const s = a, n = this[s(1768)][s(815)](), i = async (d, f = !1) => { - const l = s; - if (this[l(268)]()) try { - await this[l(2758)][l(2354)](l(2829) + t, { storeName: t, sourceNodeId: n, stateUpdate: d, isInitialState: f }); + [a(717)]({ store: x, storeName: t, sendStateUpdate: r, onInitialStateRequested: e }) { + const s = a, n = this.graphInstance[s(1384)](), i = async (d, l = !1) => { + const f = s; + if (this[f(2090)]()) try { + await this.broadcastManager[f(2198)](f(304) + t, { storeName: t, sourceNodeId: n, stateUpdate: d, isInitialState: l }); } catch (h) { - console[l(948)](l(1331) + t + ":", h); + console.error(f(1336) + t + ":", h); } - }, c = x[s(2683)]((d) => { + }, c = x.subscribe((d) => { i(d, !1); }); e(() => { - i(x[s(2716)](), !0); + i(x[s(1357)](), !0); }); - const u = s(800) + t; - return this[s(2206)][s(618)](u, async () => { - const d = s, f = x[d(2716)](); - return await i(f, !0), { success: !0 }; - }), this.broadcastManager[s(1327)](s(2738), async (d) => { - const f = s; + const u = "__internal_requestInitialState_" + t; + return this[s(2111)][s(2785)](u, async () => { + const d = s, l = x[d(1357)](); + return await i(l, !0), { success: !0 }; + }), this[s(1697)][s(2465)](s(2501), async (d) => { + const l = s; try { - (d[f(373)] === n || d[f(473)] === n) && await i(x[f(2716)](), !0); + (d.toNode === n || d.fromNode === n) && await i(x[l(1357)](), !0); } catch { } }), () => { - var f; + var l; const d = s; - c(), (f = this[d(2206)].actionHandlers) == null || f.delete(u); + c(), (l = this.actionManager[d(1987)]) == null || l.delete(u); }; } - [a(268)]() { + [a(2090)]() { var t; const x = a; try { - const r = this[x(1768)][x(1397)], e = r && r[x(1824)]() > 0, s = ((t = this.broadcastManager[x(2237)]) == null ? void 0 : t.size) > 0; + const r = this[x(2261)][x(1541)], e = r && r[x(1224)]() > 0, s = ((t = this[x(1697)][x(2413)]) == null ? void 0 : t[x(2187)]) > 0; return e || s; } catch { - return !!this[x(2758)]; + return !!this.broadcastManager; } } - async [a(2544)](x, t) { - const r = a, e = this.graphInstance[r(815)](); - if (this[r(268)]()) try { - await this[r(2758)].broadcast("store:update:" + t, { storeName: t, sourceNodeId: e, stateUpdate: x[r(2716)](), isInitialState: !0 }); + async broadcastCurrentState(x, t) { + const r = a, e = this[r(2261)][r(1384)](); + if (this[r(2090)]()) try { + await this.broadcastManager[r(2198)](r(304) + t, { storeName: t, sourceNodeId: e, stateUpdate: x[r(1357)](), isInitialState: !0 }); } catch { } } } -function ho({ graphInstance: o, store: x, name: t }) { - const r = a, e = new Us(o), s = (i) => { - const c = x.getState(), u = { ...c, ...i }; - x.setState(u); +function bo({ graphInstance: o, store: x, name: t }) { + const r = a, e = new Vs(o), s = (i) => { + const c = K, u = x[c(1357)](), d = { ...u, ...i }; + x[c(2276)](d); }, n = async () => { - const i = K, c = "__internal_requestInitialState_" + t; + const i = K, c = i(187) + t; try { - const u = o[i(1366)](t); - u && u[i(2482)] && u[i(2482)][c] && await u[i(2482)][c](); + const u = o[i(1234)](t); + u && u[i(2584)] && u[i(2584)][c] && await u[i(2584)][c](); } catch (u) { - console[i(343)](i(1037) + t + ":", u); + console[i(196)]("Failed to request initial state for " + t + ":", u); } }; - e[r(416)]({ store: x, storeName: t, onStateUpdate: s, requestInitialState: n }); + e[r(645)]({ store: x, storeName: t, onStateUpdate: s, requestInitialState: n }); } -function po({ graphInstance: o, store: x, name: t }) { - const r = a, e = new Us(o), s = async (i) => { +function go({ graphInstance: o, store: x, name: t }) { + const r = a, e = new Vs(o), s = async (i) => { }, n = (i) => { }; - return e[r(457)]({ store: x, storeName: t, sendStateUpdate: s, onInitialStateRequested: n }); + return e[r(717)]({ store: x, storeName: t, sendStateUpdate: s, onInitialStateRequested: n }); } -var ss, ns; -class mo { +var ns, os; +class yo { constructor(x) { - m0(this, ns, /* @__PURE__ */ new Map()); - m0(this, ss, /* @__PURE__ */ new Map()); - m0(this, "mountedTransports", /* @__PURE__ */ new Set()); - m0(this, "currentNodeId"); - const t = a; - this[t(2723)] = x; + me(this, os, /* @__PURE__ */ new Map()); + me(this, ns, /* @__PURE__ */ new Map()); + me(this, "mountedTransports", /* @__PURE__ */ new Set()); + me(this, "currentNodeId"); + this.currentNodeId = x; } - [(ns = a(1132), ss = a(2269), a(1967))](x) { + createGlobalDispatcherForType(x) { return (t) => { const r = K; - if (t && t[r(1534)] === this[r(2723)]) return; - const e = this[r(1132)].get(x); + if (t && t[r(1985)] === this[r(1066)]) return; + const e = this[r(1492)][r(1094)](x); if (e) { const { __origin: s, forwarded: n, ...i } = t || {}; for (const c of e) try { c(i); } catch (u) { - console[r(948)]("Error in broadcast handler for " + x + ":", u); + console[r(2265)](r(2503) + x + ":", u); } } - !t[r(695)] && this[r(1920)](x, t); + !t[r(281)] && this[r(1082)](x, t); }; } - async [a(1920)](x, t) { + async [(os = a(1492), ns = a(2131), a(1082))](x, t) { const r = a; try { - const e = { ...t, forwarded: !0 }, s = [...Array.from(this[r(2269)][r(1382)]()), ...Array[r(2781)](this.mountedTransports)], n = s[r(1649)]((i) => { + const e = { ...t, forwarded: !0 }, s = [...Array[r(2280)](this[r(2131)][r(1573)]()), ...Array[r(2280)](this[r(276)])], n = s[r(2742)]((i) => { const c = r; - return i.notification({ method: c(1416), params: { messageType: x, message: e } })[c(1995)]((u) => { + return i.notification({ method: c(279), params: { messageType: x, message: e } })[c(1539)]((u) => { const d = c; - console[d(948)](d(2014) + x + ":", u); + console[d(2265)](d(1975) + x + ":", u); }); }); - await Promise.all(n); + await Promise[r(1288)](n); } catch (e) { - console[r(948)](r(1184), e); + console[r(2265)](r(312), e); } } - [a(1327)](x, t) { + [a(2465)](x, t) { const r = a; - !this[r(1132)][r(2075)](x) && this[r(1132)][r(758)](x, /* @__PURE__ */ new Set()), this[r(1132)][r(1075)](x)[r(2655)](t); + !this[r(1492)][r(441)](x) && this[r(1492)][r(1750)](x, /* @__PURE__ */ new Set()), this[r(1492)][r(1094)](x).add(t); } setupTransportHandlers(x) { - this[a(2790)](x); + this[a(2325)](x); } - [a(2790)](x) { - const t = a, r = S({ method: t0("sdppp/broadcast"), params: S({ messageType: g(), message: q0() }) }); - x[t(1472)](r, async (e) => { - const s = t, n = e.params.messageType; - this[s(1967)](n)(e[s(1181)][s(225)]); + [a(2325)](x) { + const t = a, r = S({ method: te(t(279)), params: S({ messageType: g(), message: qe() }) }); + x[t(259)](r, async (e) => { + const s = t, n = e[s(1133)][s(823)]; + this.createGlobalDispatcherForType(n)(e[s(1133)].message); }); } - [a(2069)](x, t) { + addMiddleware(x, t) { const r = a; - this[r(2269)][r(758)](x, t), this.setupTransportHandlers(t); + this[r(2131)][r(1750)](x, t), this.setupTransportHandlers(t); } - removeMiddleware(x) { + [a(1363)](x) { const t = a; - this[t(2269)][t(2215)](x); + this[t(2131)][t(882)](x); } - async [a(2354)](x, t) { - const r = a, e = [...Array[r(2781)](this[r(2269)][r(1382)]()), ...Array[r(2781)](this[r(297)])], s = e[r(1649)]((n) => { + async broadcast(x, t) { + const r = a, e = [...Array.from(this[r(2131)][r(1573)]()), ...Array[r(2280)](this[r(276)])], s = e[r(2742)]((n) => { const i = r; - return n[i(1750)]({ method: i(1416), params: { messageType: x, message: t } }); + return n[i(2071)]({ method: i(279), params: { messageType: x, message: t } }); }); - await Promise[r(403)](s); + await Promise.all(s); } - mountTo(x) { + [a(1921)](x) { const t = a; - this[t(297)][t(2655)](x), this[t(2686)](x); + this[t(276)][t(479)](x), this[t(319)](x); } - [a(1140)]() { + [a(2434)]() { const x = a; - return Array.from(this.broadcastHandlers[x(750)]()); + return Array[x(2280)](this[x(1492)][x(1806)]()); } - [a(899)]() { + clear() { const x = a; - this.broadcastHandlers[x(899)](), this[x(2269)][x(899)](), this[x(297)].clear(); + this[x(1492)][x(2254)](), this[x(2131)][x(2254)](), this[x(276)][x(2254)](); } } -var os, is, cs; -class bo { +var is, cs, us, ds; +class vo { constructor(x, t, r) { - m0(this, cs, /* @__PURE__ */ new Map()); - m0(this, is); - m0(this, os); - m0(this, "getTransport"); + me(this, ds, /* @__PURE__ */ new Map()); + me(this, us); + me(this, cs); + me(this, is); const e = a; - this[e(2814)] = x, this[e(2723)] = t, this[e(2299)] = r; + this[e(1259)] = x, this.currentNodeId = t, this[e(1131)] = r; } - [(cs = a(356), is = a(2814), os = a(2723), a(230))](x, t) { - const r = a, e = this[r(2814)].getNode(this[r(2723)]); - if (!e) throw new Error("Node definition not found for " + this[r(2723)]); - const s = e[r(2482)][x]; - if (!s) throw new Error(r(2592) + String(x) + r(442) + this.currentNodeId); - this[r(1e3)](x, t, s), this[r(356)].set(x, t); + [(ds = a(1987), us = a(1259), cs = a(1066), is = a(1131), a(2847))](x, t) { + const r = a, e = this[r(1259)][r(1234)](this[r(1066)]); + if (!e) throw new Error("Node definition not found for " + this[r(1066)]); + const s = e[r(2584)][x]; + if (!s) throw new Error("Action " + String(x) + " not found for node " + this[r(1066)]); + this[r(581)](x, t, s), this[r(1987)][r(1750)](x, t); } - validateHandlerType(x, t, r) { - r[a(1943)]; + [a(581)](x, t, r) { + r[a(1708)]; } - [a(618)](x, t) { + [a(2785)](x, t) { const r = a; - this.actionHandlers[r(758)](x, t); + this[r(1987)][r(1750)](x, t); } - [a(621)](x) { + [a(1921)](x) { const t = a; - for (const [r, e] of this.actionHandlers) { - const s = this[t(2814)][t(1366)](this[t(2723)]), n = s == null ? void 0 : s[t(2482)][r]; - if (r.startsWith("__internal_") ? !1 : (n == null ? void 0 : n[t(1943)]) === !0) { - const u = S({ action: t0(r) }); - x.registerStreamRequestorHandler(u, async function* (d, f, l) { - const b = t, h = d.data || d, m = e(h, f, l); - if (m && typeof m === b(544) && Symbol[b(772)] in m) for await (const v of m) + for (const [r, e] of this[t(1987)]) { + const s = this[t(1259)][t(1234)](this[t(1066)]), n = s == null ? void 0 : s[t(2584)][r]; + if (r.startsWith("__internal_") ? !1 : (n == null ? void 0 : n.stream) === !0) { + const u = S({ action: te(r) }); + x[t(2052)](u, async function* (d, l, f) { + const b = t, h = d[b(2887)] || d, m = e(h, l, f); + if (m && typeof m === b(2844) && Symbol[b(2028)] in m) for await (const v of m) yield v === void 0 ? {} : v; else { const v = await m; @@ -2179,198 +2179,197 @@ class bo { }); } } - this[t(2842)](x), this.registerDirectRequestHandlerGeneric(x); + this[t(1338)](x), this[t(851)](x); } - registerProxyForwardHandler(x) { - const t = a, r = S({ action: t0(t(345)) }), e = this; - x[t(438)](r, async function* (s, n, i) { - const c = t, u = s[c(909)] || s, { targetNodeId: d, targetAction: f, targetData: l, forwardPath: b } = u; - if (!b || b[c(692)] === 0) throw new Error(c(826)); - const h = b[0], m = b[c(2088)](1); - if (m[c(692)] === 0 && h === e[c(2723)]) { - const v = e[c(356)][c(1075)](f); - if (!v) throw new Error("Action " + f + c(2551) + e[c(2723)]); - const k = v(l, n, i); - if (k && typeof k === c(544) && Symbol[c(772)] in k) for await (const I of k) - yield I === void 0 ? {} : I; + [a(1338)](x) { + const t = a, r = S({ action: te(t(1334)) }), e = this; + x.registerStreamRequestorHandler(r, async function* (s, n, i) { + const c = t, u = s[c(2887)] || s, { targetNodeId: d, targetAction: l, targetData: f, forwardPath: b } = u; + if (!b || b[c(1332)] === 0) throw new Error(c(1650)); + const h = b[0], m = b[c(2103)](1); + if (m[c(1332)] === 0 && h === e[c(1066)]) { + const v = e.actionHandlers[c(1094)](l); + if (!v) throw new Error(c(959) + l + c(185) + e[c(1066)]); + const k = v(f, n, i); + if (k && typeof k === c(2844) && Symbol[c(2028)] in k) for await (const E of k) + yield E === void 0 ? {} : E; else { - const I = await k; - yield I === void 0 ? {} : I; + const E = await k; + yield E === void 0 ? {} : E; } return; } - if (h === e[c(2723)] && m[c(692)] > 0) { - const v = m[0], k = e[c(2299)](v); + if (h === e[c(1066)] && m[c(1332)] > 0) { + const v = m[0], k = e[c(1131)](v); if (k) { - const I = await k[c(278)]({ action: c(345), data: { targetNodeId: d, targetAction: f, targetData: l, forwardPath: m } }, S({}), i); - for await (const A of I) - yield A === void 0 ? {} : A; + const E = await k[c(2870)]({ action: c(1334), data: { targetNodeId: d, targetAction: l, targetData: f, forwardPath: m } }, S({}), i); + for await (const q of E) + yield q === void 0 ? {} : q; return; } - throw new Error("Cannot forward to node " + v + c(1089)); + throw new Error("Cannot forward to node " + v + c(1407)); } - throw new Error(c(330) + e[c(2723)] + c(1436) + b); + throw new Error(c(2313) + e[c(1066)] + c(1038) + b); }); } - [a(1133)]() { + getRegisteredActions() { const x = a; - return Array[x(2781)](this[x(356)][x(750)]()); + return Array[x(2280)](this[x(1987)][x(1806)]()); } - [a(2394)](x) { - return this[a(356)].has(x); - } - [a(2417)](x) { + [a(2725)](x) { const t = a; - return this.actionHandlers[t(1075)](x); + return this[t(1987)][t(441)](x); } - [a(899)]() { + getHandler(x) { + const t = a; + return this[t(1987)][t(1094)](x); + } + [a(2254)]() { const x = a; - this[x(356)][x(899)](); + this[x(1987)][x(2254)](); } - [a(1104)](x, t, r) { + [a(470)](x, t, r) { } - [a(2817)](x) { - const t = a, r = S({ method: t0("sdppp/directRequest"), params: S({ action: g(), data: q0()[t(1027)]() }) }), e = this; - x[t(437)](r, async (s, n) => { - const i = t, { action: c, data: u } = s[i(1181)]; - if (c === "__proxy_forward") return await e.handleDirectProxyForward(u, n); - const d = e[i(356)][i(1075)](c); - if (!d) throw new Error(i(2592) + c + i(2551) + e[i(2723)]); - const f = d(u, n), l = await f; - return l === void 0 ? {} : l; + [a(851)](x) { + const t = a, r = S({ method: te(t(1690)), params: S({ action: g(), data: qe()[t(2033)]() }) }), e = this; + x[t(1741)](r, async (s, n) => { + const i = t, { action: c, data: u } = s.params; + if (c === i(1334)) return await e.handleDirectProxyForward(u, n); + const d = e[i(1987)][i(1094)](c); + if (!d) throw new Error(i(959) + c + i(185) + e.currentNodeId); + const l = d(u, n), f = await l; + return f === void 0 ? {} : f; }); } - async [a(456)](x, t) { + async [a(1902)](x, t) { const r = a, { targetNodeId: e, targetAction: s, targetData: n, forwardPath: i } = x; - if (!i || i[r(692)] === 0) throw new Error(r(826)); - const c = i[0], u = i.slice(1); - if (u[r(692)] === 0 && c === this[r(2723)]) { - const d = this[r(356)][r(1075)](s); - if (!d) throw new Error(r(2592) + s + r(2551) + this[r(2723)]); - const f = d(n, t), l = await f; - return l === void 0 ? {} : l; + if (!i || i.length === 0) throw new Error(r(1650)); + const c = i[0], u = i[r(2103)](1); + if (u[r(1332)] === 0 && c === this.currentNodeId) { + const d = this[r(1987)][r(1094)](s); + if (!d) throw new Error(r(959) + s + r(185) + this[r(1066)]); + const l = d(n, t), f = await l; + return f === void 0 ? {} : f; } - if (c === this[r(2723)] && u[r(692)] > 0) { - const d = u[0], f = this.getTransport(d); - if (f) return await f[r(563)]({ method: r(2203), params: { action: r(345), data: { targetNodeId: e, targetAction: s, targetData: n, forwardPath: u } } }, q0()); - throw new Error(r(856) + d + " - no connection available"); + if (c === this.currentNodeId && u.length > 0) { + const d = u[0], l = this[r(1131)](d); + if (l) return await l[r(2752)]({ method: r(1690), params: { action: r(1334), data: { targetNodeId: e, targetAction: s, targetData: n, forwardPath: u } } }, qe()); + throw new Error(r(1321) + d + r(1407)); } - throw new Error(r(330) + this[r(2723)] + r(1436) + i); + throw new Error(r(2313) + this.currentNodeId + r(1038) + i); } } -var us; -class go { +var ls, fs, hs; +class wo { constructor(x, t) { - m0(this, "definition"); - m0(this, "currentNodeId"); - m0(this, us, /* @__PURE__ */ new Set()); + me(this, hs); + me(this, fs); + me(this, ls, /* @__PURE__ */ new Set()); const r = a; - this.definition = x, this[r(2723)] = t; + this[r(1259)] = x, this[r(1066)] = t; } markConnected(x) { - this[a(542)].add(x); + this[a(921)].add(x); } - [(us = a(542), a(1176))](x) { - this[a(542)].delete(x); - } - [a(1245)](x) { + [(hs = a(1259), fs = a(1066), ls = a(921), a(771))](x) { const t = a; - return this[t(542)][t(2075)](x); + this[t(921)][t(882)](x); } - findPath(x, t) { + [a(1675)](x) { + return this[a(921)].has(x); + } + [a(896)](x, t) { const r = a; if (x === t) return [x]; const e = /* @__PURE__ */ new Set(), s = [{ nodeId: x, path: [x] }]; - for (; s.length > 0; ) { - const { nodeId: n, path: i } = s[r(252)](); - if (e[r(2075)](n)) continue; - e[r(2655)](n); - const c = this[r(2814)].getNeighbors(n); + for (; s[r(1332)] > 0; ) { + const { nodeId: n, path: i } = s.shift(); + if (e[r(441)](n)) continue; + e[r(479)](n); + const c = this.definition.getNeighbors(n); for (const u of c) { if (u === t) return [...i, u]; - !e[r(2075)](u) && s[r(452)]({ nodeId: u, path: [...i, u] }); + !e[r(441)](u) && s[r(902)]({ nodeId: u, path: [...i, u] }); } } } - getConnectedNodeIds() { - const x = a; - return Array[x(2781)](this[x(542)]); + [a(588)]() { + return Array.from(this[a(921)]); } - [a(1824)]() { + [a(1224)]() { const x = a; - return this[x(542)][x(2715)]; + return this[x(921)][x(2187)]; } - getAllReachableNodes() { - const x = a, t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), e = [this.currentNodeId]; - for (r[x(2655)](this[x(2723)]); e[x(692)] > 0; ) { - const s = e[x(252)](), n = this[x(2814)][x(1683)](s); + [a(1867)]() { + const x = a, t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), e = [this[x(1066)]]; + for (r[x(479)](this[x(1066)]); e.length > 0; ) { + const s = e.shift(), n = this[x(1259)][x(1084)](s); for (const i of n) - !r[x(2075)](i) && (r[x(2655)](i), (this[x(542)][x(2075)](i) || this.canReachThroughConnectedNodes(i, r)) && (t.add(i), e[x(452)](i))); + !r[x(441)](i) && (r.add(i), (this[x(921)][x(441)](i) || this[x(1547)](i, r)) && (t.add(i), e[x(902)](i))); } - return Array[x(2781)](t); + return Array[x(2280)](t); } - canReachThroughConnectedNodes(x, t) { - const r = a, e = this.findPath(this.currentNodeId, x); - if (!e || e[r(692)] <= 1) return !1; + [a(1547)](x, t) { + const r = a, e = this[r(896)](this[r(1066)], x); + if (!e || e[r(1332)] <= 1) return !1; for (let s = 1; s < e.length - 1; s++) - if (!this[r(542)][r(2075)](e[s])) return !1; + if (!this[r(921)][r(441)](e[s])) return !1; return !0; } - [a(899)]() { - const x = a; - this[x(542)][x(899)](); + clear() { + this[a(921)].clear(); } } -var ds, fs, ls, hs, ps, ms, bs; -class yo { +var ps, ms, bs, gs, ys, vs, ws; +class So { constructor(x, t) { - m0(this, bs); - m0(this, ms); - m0(this, ps, /* @__PURE__ */ new Map()); - m0(this, "nodeProxies", /* @__PURE__ */ new Map()); - m0(this, hs); - m0(this, ls); - m0(this, fs); - m0(this, ds, /* @__PURE__ */ new Map()); + me(this, ws); + me(this, vs); + me(this, ys, /* @__PURE__ */ new Map()); + me(this, gs, /* @__PURE__ */ new Map()); + me(this, bs); + me(this, ms); + me(this, ps); + me(this, "nodeTransports", /* @__PURE__ */ new Map()); const r = a; - this[r(2814)] = x, this[r(2723)] = t, this[r(2247)](), this[r(2758)] = new mo(t), this.actionManager = new bo(x, t, (e) => this[r(1385)](e)), this[r(1397)] = new go(x, t), this.setupGraphStoreSync(); + this[r(1259)] = x, this[r(1066)] = t, this[r(2652)](), this[r(1697)] = new yo(t), this[r(2111)] = new vo(x, t, (e) => this[r(1670)](e)), this[r(1541)] = new wo(x, t), this.setupGraphStoreSync(); } - [(bs = a(2814), ms = a(2723), ps = a(1258), hs = a(2758), ls = a(2206), fs = a(1397), ds = a(1964), a(2247))]() { + [(ws = a(1259), vs = a(1066), ys = a(1476), gs = a(1161), bs = a(1697), ms = a(2111), ps = a(1541), a(2652))]() { const x = a; - for (const t of this.definition[x(2484)]()) { - const r = this.definition[x(1366)](t); - if (r && r[x(2585)]) { - const e = this[x(2295)](r[x(2585)]), s = Ln(() => e); - this[x(1258)].set(t, s); + for (const t of this[x(1259)][x(2025)]()) { + const r = this[x(1259)].getNode(t); + if (r && r[x(2277)]) { + const e = this[x(927)](r[x(2277)]), s = Hn(() => e); + this[x(1476)][x(1750)](t, s); } } } - [a(2295)](x) { + [a(927)](x) { const t = a; if (!x) return {}; try { - return x[t(706)]({}); + return x[t(429)]({}); } catch { - return this[t(2284)](x); + return this.manuallyExtractDefaults(x); } } - [a(2284)](x) { + manuallyExtractDefaults(x) { const t = a; if (!x || !x.def) return {}; - if (x[t(1250)][t(612)] === t(1944)) { - const r = x.def[t(244)]; - return typeof r === t(1622) ? r() : r; + if (x[t(1116)][t(190)] === t(2222)) { + const r = x[t(1116)][t(397)]; + return typeof r === t(1235) ? r() : r; } - if (x[t(1250)].type === t(544)) { + if (x[t(1116)].type === t(2844)) { const r = {}; let e; try { - e = x.def[t(2068)]; + e = x[t(1116)].shape; } catch { return {}; } - if (e) for (const [s, n] of Object[t(1587)](e)) { - const i = this[t(996)](n); + if (e) for (const [s, n] of Object[t(2700)](e)) { + const i = this[t(1666)](n); i !== void 0 && (r[s] = i); } return r; @@ -2381,113 +2380,113 @@ class yo { const t = a; if (x) try { - return x.parse(void 0); + return x[t(429)](void 0); } catch { - return this[t(2284)](x); + return this[t(231)](x); } } - async [a(2251)](x, t) { + async [a(1651)](x, t) { const r = a; - if (!this[r(2814)][r(2360)](this.currentNodeId, x)) throw new Error(r(2452) + this[r(2723)] + " to " + x); - if (this.nodeTransports[r(2075)](x)) throw new Error(r(2879) + x); + if (!this[r(1259)][r(1520)](this[r(1066)], x)) throw new Error("No edge defined from " + this[r(1066)] + " to " + x); + if (this[r(321)][r(441)](x)) throw new Error("Already connected to node " + x); try { - this.nodeTransports[r(758)](x, t), this.connectionManager[r(2413)](x), this.setupNodeBindings(x, t), await this[r(2190)](x), await this[r(315)](x); + this[r(321)][r(1750)](x, t), this.connectionManager[r(1531)](x), this[r(2370)](x, t), await this[r(387)](x), await this[r(931)](x); } catch (e) { - throw this[r(1614)](x), e; + throw this[r(1808)](x), e; } } disconnect(x) { - this[a(1614)](x); + this[a(1808)](x); } - async [a(2190)](x) { + async syncStoresToNewConnection(x) { const t = a; await new Promise((r) => setTimeout(r, 100)); - for (const [r, e] of this[t(1258)]) - if (r === this[t(2723)]) try { - await this[t(2758)].broadcast(t(2829) + r, { storeName: r, sourceNodeId: this.currentNodeId, stateUpdate: e.getState(), isInitialState: !0 }); + for (const [r, e] of this.nodeStores) + if (r === this[t(1066)]) try { + await this[t(1697)].broadcast(t(304) + r, { storeName: r, sourceNodeId: this[t(1066)], stateUpdate: e[t(1357)](), isInitialState: !0 }); } catch { } try { - await this.broadcastManager[t(2354)](t(2738), { fromNode: this[t(2723)], toNode: x }); + await this.broadcastManager[t(2198)](t(2501), { fromNode: this[t(1066)], toNode: x }); } catch { } } - async [a(315)](x) { + async [a(931)](x) { const t = a; try { - const r = this.connectionManager.getAllReachableNodes(); + const r = this[t(1541)][t(1867)](); for (const e of r) try { - const s = t(800) + e, n = this[t(1366)](e); - if (n && n[t(2482)] && n[t(2482)][s]) { - const i = n.actions[s]({}); - await Promise[t(2806)]([i, new Promise((c) => setTimeout(c, 300))]); + const s = t(187) + e, n = this[t(1234)](e); + if (n && n.actions && n[t(2584)][s]) { + const i = n[t(2584)][s]({}); + await Promise[t(685)]([i, new Promise((c) => setTimeout(c, 300))]); } } catch (s) { - console[t(2818)](t(1037) + e + ":", s); + console[t(1872)](t(2748) + e + ":", s); } } catch (r) { - console[t(2818)](t(1064) + x + ":", r); + console[t(1872)]("Failed to request initial states after connecting to " + x + ":", r); } } cleanupConnection(x) { - const t = a, r = this.nodeTransports[t(1075)](x); - this[t(1964)][t(2215)](x), this[t(1397)][t(1176)](x), this[t(2758)].removeMiddleware(x), r && r.cleanup(); + const t = a, r = this[t(321)].get(x); + this[t(321)][t(882)](x), this.connectionManager[t(771)](x), this[t(1697)][t(1363)](x), r && r[t(2050)](); } - [a(633)](x, t) { + setupNodeBindings(x, t) { const r = a; - if (!this[r(1258)][r(1075)](this[r(2723)])) throw new Error(r(2430) + this.currentNodeId); - this[r(2206)][r(621)](t), this[r(2758)].addMiddleware(x, t); + if (!this[r(1476)].get(this[r(1066)])) throw new Error(r(1929) + this[r(1066)]); + this.actionManager[r(1921)](t), this[r(1697)][r(2867)](x, t); } - [a(2752)]() { + [a(870)]() { const x = a; - for (const [t, r] of this[x(1258)]) - t === this[x(2723)] ? po({ graphInstance: this, store: r, name: t }) : ho({ graphInstance: this, store: r, name: t }); + for (const [t, r] of this[x(1476)]) + t === this.currentNodeId ? go({ graphInstance: this, store: r, name: t }) : bo({ graphInstance: this, store: r, name: t }); } - [a(1366)](x) { + [a(1234)](x) { const t = a; - if (!this.nodeProxies[t(2075)](x)) { - const r = new lo(this, x); - this[t(1595)][t(758)](x, r); + if (!this[t(1161)].has(x)) { + const r = new mo(this, x); + this[t(1161)][t(1750)](x, r); } - return this[t(1595)][t(1075)](x); + return this[t(1161)][t(1094)](x); } - [a(1385)](x) { + [a(1670)](x) { const t = a; - return this[t(1964)][t(1075)](x); + return this.nodeTransports[t(1094)](x); } - [a(928)](x) { - const t = a, r = this[t(1964)][t(1075)](x); - if (r) return { transport: r, path: [this[t(2723)], x] }; - const e = this[t(869)](this[t(2723)], x); - if (e && e[t(692)] > 1) { - const s = e[1], n = this.nodeTransports[t(1075)](s); + [a(797)](x) { + const t = a, r = this[t(321)][t(1094)](x); + if (r) return { transport: r, path: [this[t(1066)], x] }; + const e = this[t(2212)](this[t(1066)], x); + if (e && e[t(1332)] > 1) { + const s = e[1], n = this.nodeTransports[t(1094)](s); if (n) return { transport: n, path: e }; } } - [a(731)](x) { - return this[a(1258)].get(x); + [a(1499)](x) { + return this[a(1476)].get(x); } - get [a(2585)]() { - const x = a, t = this[x(1258)][x(1075)](this[x(2723)]); - if (!t) throw new Error(x(906) + this.currentNodeId); + get store() { + const x = a, t = this[x(1476)][x(1094)](this[x(1066)]); + if (!t) throw new Error("Store not found for current node " + this[x(1066)]); return t; } - get [a(2482)]() { - const x = a, t = this[x(2814)].getNode(this.currentNodeId); - if (!t) throw new Error(x(540) + this[x(2723)]); + get [a(2584)]() { + const x = a, t = this.definition[x(1234)](this[x(1066)]); + if (!t) throw new Error(x(682) + this.currentNodeId); return new Proxy({}, { get: (e, s) => { const n = x; - if (typeof s != "string") return; + if (typeof s !== n(1653)) return; const i = t.actions[s]; - if (!i) throw new Error(n(2592) + s + n(2254) + this[n(2723)]); + if (!i) throw new Error(n(959) + s + n(1144) + this[n(1066)]); return (c, u) => { - const d = n, f = this.actionManager[d(2417)](s); - if (!f) throw new Error(d(2160) + s + d(1892) + this[d(2723)]); - const l = { nodeId: this[d(2723)] }; - if (i.stream === !0) { - const b = f(c, l, u); - return b && typeof b == "object" && Symbol[d(772)] in b ? (async function* () { + const d = n, l = this[d(2111)][d(435)](s); + if (!l) throw new Error(d(545) + s + d(862) + this[d(1066)]); + const f = { nodeId: this.currentNodeId }; + if (i[d(1708)] === !0) { + const b = l(c, f, u); + return b && typeof b === d(2844) && Symbol[d(2028)] in b ? (async function* () { for await (const h of b) yield h === void 0 ? {} : h; })() : (async function* () { @@ -2495,10 +2494,10 @@ class yo { yield h === void 0 ? {} : h; })(); } else return (async () => { - const b = d, h = f(c, l, u); - if (h && typeof h == "object" && Symbol[b(772)] in h) { - const m = h[Symbol[b(772)]](), v = await m[b(2596)](); - return v[b(1732)] === void 0 ? {} : v.value; + const b = d, h = l(c, f, u); + if (h && typeof h === b(2844) && Symbol[b(2028)] in h) { + const m = h[Symbol[b(2028)]](), v = await m[b(204)](); + return v.value === void 0 ? {} : v[b(998)]; } else { const m = await h; return m === void 0 ? {} : m; @@ -2507,500 +2506,501 @@ class yo { }; } }); } - [a(1655)]() { - return this[a(2814)]; + [a(2228)]() { + return this[a(1259)]; } - [a(815)]() { - return this[a(2723)]; + [a(1384)]() { + return this[a(1066)]; } - [a(2001)](x) { - return this.getTransportToNode(x); + [a(2711)](x) { + return this[a(797)](x); } - [a(230)](x, t) { - const r = a; - this[r(2206)][r(230)](x, t); + [a(2847)](x, t) { + this.actionManager.implementAction(x, t); } destroy() { - const x = a, t = Array[x(2781)](this.nodeTransports[x(750)]()); + const x = a, t = Array[x(2280)](this[x(321)].keys()); for (const r of t) - this[x(1614)](r); - this.broadcastManager[x(899)](), this.actionManager[x(899)](), this.connectionManager[x(899)](); + this.cleanupConnection(r); + this[x(1697)][x(2254)](), this[x(2111)][x(2254)](), this[x(1541)].clear(); } - [a(869)](x, t) { - return this.connectionManager.findPath(x, t); - } - [a(2545)](x, t) { - return this[a(869)](x, t); - } - async broadcast(x, t) { - const r = a, e = { ...t, __origin: this.currentNodeId }; - return this[r(2758)][r(2354)](x, e); - } - [a(2102)](x, t) { + [a(2212)](x, t) { const r = a; - this[r(2758)][r(1327)](x, t); + return this.connectionManager[r(896)](x, t); + } + findPath(x, t) { + return this[a(2212)](x, t); + } + async [a(2198)](x, t) { + const r = a, e = { ...t, __origin: this.currentNodeId }; + return this[r(1697)].broadcast(x, e); + } + [a(1879)](x, t) { + this[a(1697)].registerHandler(x, t); } } -function vo(o) { - const x = new Mn(o); +function ko(o) { + const x = new Un(o); return { joinAs(t) { const r = K; - if (!x[r(1366)](t)) throw new Error(r(1054) + String(t) + r(561)); - return new yo(x, t); + if (!x[r(1234)](t)) throw new Error("Node " + String(t) + r(1719)); + return new So(x, t); }, getDefinition() { return o; }, getNodeIds() { - return x[K(2484)](); + return x[K(2025)](); }, getNeighbors(t) { - return x[K(1683)](t); + return x[K(1084)](t); }, hasEdge(t, r) { - return x[K(2360)](t, r); + return x[K(1520)](t, r); }, hasPath(t, r) { return x.hasPath(t, r); }, findPath(t, r) { return x.findPath(t, r); } }; } -const Da = { INTERCEPTOR_ERROR: a(739) }; -var gs, ys, vs, ws; -class ja extends (ws = Error, vs = a(612), ys = a(819), gs = a(496), ws) { +const Da = { INTERCEPTOR_ERROR: a(1304) }; +var Ss, ks, Ps; +class ja extends (Ps = Error, ks = a(190), Ss = a(2687), Ps) { constructor(t, r, e, s) { const n = a; super(e); - m0(this, vs); - m0(this, ys); - m0(this, gs); - this[n(1055)] = n(2276), this[n(612)] = t, this[n(819)] = r, this.originalError = s; + me(this, ks); + me(this, "method"); + me(this, Ss); + this[n(2481)] = n(2680), this[n(190)] = t, this.method = r, this.originalError = s; } } -var Ss, ks, Ps, Is, Es, Rs, Cs, Fs, Ns; -class wo { +var Es, Is, Cs, Rs, Fs, Ns, Ts, qs; +class Po { constructor(x, t = {}) { - m0(this, Ns); - m0(this, "realTransport", null); - m0(this, Fs); - m0(this, Cs, /* @__PURE__ */ new Map()); - m0(this, Rs, /* @__PURE__ */ new Map()); - m0(this, Es, /* @__PURE__ */ new Map()); - m0(this, Is, /* @__PURE__ */ new Map()); - m0(this, Ps, []); - m0(this, ks, []); - m0(this, Ss, []); - m0(this, "stats", { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }); + me(this, qs); + me(this, "realTransport", null); + me(this, Ts); + me(this, "requestHandlers", /* @__PURE__ */ new Map()); + me(this, "notificationHandlers", /* @__PURE__ */ new Map()); + me(this, Ns, /* @__PURE__ */ new Map()); + me(this, Fs, /* @__PURE__ */ new Map()); + me(this, Rs, []); + me(this, Cs, []); + me(this, Is, []); + me(this, Es, { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }); const r = a; - this[r(604)] = x, this[r(1005)] = { debug: !1, interceptorTimeout: 5e3, continueOnInterceptorError: !0, ...t }; + this[r(1873)] = x, this[r(961)] = { debug: !1, interceptorTimeout: 5e3, continueOnInterceptorError: !0, ...t }; } - async connect(x) { + async [(qs = a(1873), Ts = a(961), Ns = a(2035), Fs = a(1856), Rs = a(1696), Cs = a(159), Is = a(798), Es = a(2395), a(1651))](x) { const t = a; - this[t(579)] = x, x[t(555)] = (r) => { - this.handleIncomingMessage(r); - }, x[t(1292)] = () => { + this[t(1684)] = x, x[t(1770)] = (r) => { + this[t(179)](r); + }, x[t(2427)] = () => { const r = t; - this[r(2091)][r(1471)]((e) => e()); - }, x[t(656)] = (r) => { + this[r(159)][r(1953)]((e) => e()); + }, x.onerror = (r) => { const e = t; - this[e(2761)][e(1471)]((s) => s(r)); - }, await this[t(604)][t(2251)](this); + this.errorHandlers[e(1953)]((s) => s(r)); + }, await this.protocol[t(1651)](this); } - async [(Ns = a(604), Fs = a(1005), Cs = a(1911), Rs = a(2556), Es = a(1556), Is = a(518), Ps = a(1550), ks = a(2091), Ss = a(2761), a(1832))](x) { + async [a(179)](x) { const t = a; - this[t(2818)](t(2297), t(2171), x); + this[t(1872)](t(2264), t(2293), x); try { - if (this[t(893)](x) && await this[t(1866)](x) || this[t(501)](x) && await this[t(2148)](x)) + if (this[t(1205)](x) && await this[t(2897)](x) || this[t(1694)](x) && await this.handleIncomingNotification(x)) return; - this[t(1550)][t(1471)]((r) => r(x)); + this.messageHandlers[t(1953)]((r) => r(x)); } catch (r) { - this[t(2130)][t(1672)]++, this[t(2818)](t(948), t(737), r), this[t(1550)][t(1471)]((e) => e(x)); + this[t(2395)][t(638)]++, this[t(1872)](t(2265), t(2436), r), this.messageHandlers[t(1953)]((e) => e(x)); } } - async [a(1866)](x) { - const t = a, r = this.requestHandlers.get(x.method); + async [a(2897)](x) { + const t = a, r = this[t(1699)][t(1094)](x.method); if (!r) return !1; try { - this[t(2130)][t(2677)]++; + this[t(2395)][t(2202)]++; const e = await r(x, {}); - return this[t(579)] && "id" in x && await this.realTransport[t(405)]({ jsonrpc: t(2082), id: x.id, result: e }), !0; + return this[t(1684)] && "id" in x && await this.realTransport[t(1779)]({ jsonrpc: t(2581), id: x.id, result: e }), !0; } catch (e) { - return this[t(2130)][t(1672)]++, this[t(579)] && "id" in x && await this[t(579)][t(405)]({ jsonrpc: t(2082), id: x.id, error: { code: -32603, message: t(2475) + JSON[t(2625)](x.params) + " " + e.message } }), !0; + return this[t(2395)][t(638)]++, this[t(1684)] && "id" in x && await this[t(1684)].send({ jsonrpc: "2.0", id: x.id, error: { code: -32603, message: t(1941) + JSON[t(306)](x[t(1133)]) + " " + e[t(615)] } }), !0; } } - async [a(2148)](x) { - const t = a, r = this[t(2556)].get(x[t(819)]); + async handleIncomingNotification(x) { + const t = a, r = this[t(1040)][t(1094)](x[t(849)]); if (!r) return !1; try { - return this.stats[t(1668)]++, await r(x), !0; + return this[t(2395)][t(390)]++, await r(x), !0; } catch (e) { - return this[t(2130)][t(1672)]++, this.log("error", t(1628) + x[t(819)] + ":", e), !0; + return this[t(2395)][t(638)]++, this[t(1872)](t(2265), t(1216) + x[t(849)] + ":", e), !0; } } async send(x) { const t = a; - this[t(2818)](t(2297), t(936), x); + this[t(1872)](t(2264), "Outgoing message:", x); try { - if (this[t(893)](x)) { - const r = await this[t(597)](x); - if (r[t(377)]) { - if (r[t(2671)] === null) return; - r.result && (x = { ...r.result, jsonrpc: "2.0" }, this[t(2130)][t(1805)]++); - } else if (this[t(1005)][t(2389)]) this[t(2818)]("warn", t(1323) + x[t(819)] + ":", r.error); - else throw r[t(948)]; + if (this[t(1205)](x)) { + const r = await this[t(2537)](x); + if (r.success) { + if (r.result === null) return; + r[t(1792)] && (x = { ...r[t(1792)], jsonrpc: "2.0" }, this[t(2395)][t(1166)]++); + } else if (this.options[t(2712)]) this[t(1872)](t(196), t(1945) + x[t(849)] + ":", r[t(2265)]); + else throw r[t(2265)]; } if (this.isNotification(x)) { - const r = await this[t(896)](x); - if (r.success) { - if (r[t(2671)] === null) return; - r.result && (x = { ...r[t(2671)], jsonrpc: "2.0" }, this.stats[t(1298)]++); - } else if (this[t(1005)].continueOnInterceptorError) this[t(2818)](t(343), t(666) + x[t(819)] + ":", r[t(948)]); - else throw r[t(948)]; + const r = await this[t(1994)](x); + if (r[t(2072)]) { + if (r.result === null) return; + r[t(1792)] && (x = { ...r[t(1792)], jsonrpc: t(2581) }, this.stats[t(1118)]++); + } else if (this.options[t(2712)]) this[t(1872)](t(196), t(236) + x[t(849)] + ":", r[t(2265)]); + else throw r[t(2265)]; } - this[t(579)] && await this[t(579)][t(405)](x); + this[t(1684)] && await this[t(1684)][t(1779)](x); } catch (r) { - throw this.stats[t(1672)]++, r; + throw this.stats[t(638)]++, r; } } - async [a(2604)]() { + async [a(2540)]() { const x = a; - this[x(579)] && await this[x(579)][x(2604)](); + this.realTransport && await this[x(1684)][x(2540)](); } - async [a(1278)]() { + async [a(639)]() { const x = a; - this[x(579)] && await this[x(579)][x(1278)](); + this[x(1684)] && await this[x(1684)].close(); } - set [a(555)](x) { + set [a(1770)](x) { const t = a; - this[t(1550)] = [x]; + this[t(1696)] = [x]; } - set [a(1292)](x) { - const t = a; - this[t(2091)] = [x]; + set [a(2427)](x) { + this.closeHandlers = [x]; } - set [a(656)](x) { + set [a(860)](x) { const t = a; - this[t(2761)] = [x]; + this[t(798)] = [x]; } async executeOutgoingRequestInterceptor(x) { - const t = a, r = this[t(1556)][t(1075)](x.method); + const t = a, r = this[t(2035)].get(x[t(849)]); if (!r) return { success: !0, result: x }; try { - return { success: !0, result: await this.withTimeout(r(x), this.options.interceptorTimeout) }; + return { success: !0, result: await this[t(1083)](r(x), this[t(961)][t(301)]) }; } catch (e) { - return this.stats.errors++, { success: !1, error: new ja(Da[t(2874)], x[t(819)], t(1069) + e[t(225)], e) }; + return this[t(2395)][t(638)]++, { success: !1, error: new ja(Da[t(1341)], x.method, t(434) + e[t(615)], e) }; } } - async [a(896)](x) { - const t = a, r = this.outgoingNotificationInterceptors[t(1075)](x[t(819)]); + async [a(1994)](x) { + const t = a, r = this[t(1856)][t(1094)](x[t(849)]); if (!r) return { success: !0, result: x }; try { - return { success: !0, result: await this[t(1111)](r(x), this[t(1005)][t(576)]) }; + return { success: !0, result: await this.withTimeout(r(x), this.options[t(301)]) }; } catch (e) { - return this[t(2130)][t(1672)]++, { success: !1, error: new ja(Da[t(2874)], x.method, t(192) + e[t(225)], e) }; + return this[t(2395)][t(638)]++, { success: !1, error: new ja(Da[t(1341)], x.method, "Outgoing notification interceptor failed: " + e.message, e) }; } } - async [a(563)](x, t) { + async request(x, t) { const r = a; - return await this.protocol[r(563)](x, t, { timeout: 36e5 }); + return await this[r(1873)][r(2752)](x, t, { timeout: 36e5 }); } - async [a(1750)](x) { + async notification(x) { const t = a; - return await this[t(604)][t(1750)](x); + return await this[t(1873)][t(2071)](x); } setRequestHandler(x, t) { - const r = a, e = x[r(2068)][r(819)][r(1732)]; - this[r(1911)].set(e, t); + const r = a, e = x[r(876)][r(849)][r(998)]; + this[r(1699)][r(1750)](e, t); } - [a(1472)](x, t) { - const r = a, e = x[r(2068)][r(819)][r(1732)]; - this.notificationHandlers[r(758)](e, t); + setNotificationHandler(x, t) { + const r = a, e = x[r(876)][r(849)].value; + this[r(1040)][r(1750)](e, t); } - [a(2499)](x, t) { - const r = a, e = x[r(2068)].method[r(1732)]; - this[r(1556)][r(758)](e, t); + setOutgoingRequestInterceptor(x, t) { + const r = a, e = x[r(876)][r(849)][r(998)]; + this[r(2035)].set(e, t); } - [a(1523)](x, t) { - const r = a, e = x.shape[r(819)].value; - this[r(518)].set(e, t); + [a(561)](x, t) { + const r = a, e = x.shape[r(849)].value; + this[r(1856)][r(1750)](e, t); } - [a(2041)](x) { - this[a(1911)].delete(x); + [a(1300)](x) { + const t = a; + this.requestHandlers[t(882)](x); } - unsetNotificationHandler(x) { - this.notificationHandlers.delete(x); + [a(878)](x) { + const t = a; + this.notificationHandlers[t(882)](x); } unsetOutgoingRequestInterceptor(x) { - this[a(1556)].delete(x); - } - [a(697)](x) { const t = a; - this[t(518)][t(2215)](x); + this.outgoingRequestInterceptors[t(882)](x); } - hasRequestHandler(x) { + unsetOutgoingNotificationInterceptor(x) { + this[a(1856)].delete(x); + } + [a(2130)](x) { const t = a; - return this[t(1911)][t(2075)](x); + return this.requestHandlers[t(441)](x); } - [a(1857)](x) { + hasNotificationHandler(x) { const t = a; - return this[t(2556)][t(2075)](x); + return this[t(1040)][t(441)](x); } - [a(1491)](x) { + [a(2297)](x) { const t = a; - return this[t(1556)][t(2075)](x); + return this.outgoingRequestInterceptors[t(441)](x); } - [a(2644)](x) { - return this[a(518)].has(x); + [a(1215)](x) { + return this[a(1856)].has(x); } - [a(2093)]() { - return { ...this[a(2130)] }; + [a(1753)]() { + return { ...this[a(2395)] }; } - resetStats() { + [a(1637)]() { const x = a; - this[x(2130)] = { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }; + this[x(2395)] = { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }; } - [a(2742)]() { - return this[a(604)]; + [a(812)]() { + return this[a(1873)]; } - [a(2652)]() { + [a(2050)]() { const x = a; - this[x(1911)].clear(), this[x(2556)][x(899)](), this[x(1556)].clear(), this.outgoingNotificationInterceptors[x(899)](); + this[x(1699)][x(2254)](), this.notificationHandlers[x(2254)](), this[x(2035)].clear(), this[x(1856)].clear(); } isRequest(x) { - return x.jsonrpc === "2.0" && "method" in x && "id" in x; + const t = a; + return x[t(1846)] === t(2581) && "method" in x && "id" in x; } - isNotification(x) { - return x[a(585)] === "2.0" && "method" in x && !("id" in x); + [a(1694)](x) { + const t = a; + return x[t(1846)] === t(2581) && t(849) in x && !("id" in x); } - async [a(1111)](x, t) { - const r = new Promise((e, s) => { - const n = K; - setTimeout(() => s(new Error(n(374))), t); + async [a(1083)](x, t) { + const r = a, e = new Promise((s, n) => { + const i = K; + setTimeout(() => n(new Error(i(844))), t); }); - return await Promise.race([x, r]); + return await Promise[r(685)]([x, e]); } - [a(2818)](x, t, ...r) { + [a(1872)](x, t, ...r) { const e = a; - if (!this.options.debug && x === e(2297)) return; - const s = e(1645); + if (!this[e(961)][e(2264)] && x === e(2264)) return; + const s = e(2260); switch (x) { - case e(2297): - console[e(2297)](s, t, ...r); + case "debug": + console.debug(s, t, ...r); break; - case e(2381): - console[e(2381)](s, t, ...r); + case e(713): + console[e(713)](s, t, ...r); break; - case e(343): - console[e(343)](s, t, ...r); + case "warn": + console[e(196)](s, t, ...r); break; - case "error": - console[e(948)](s, t, ...r); + case e(2265): + console[e(2265)](s, t, ...r); break; } } } -S({ method: t0(a(1553)), params: S({ requestId: g(), data: q0(), error: g()[a(1864)](), finished: e0() }) }), S({ method: t0(a(2275)), params: S({ action: g(), data: q0() }) }), S({ method: t0(a(1458)), params: S({ requestId: g() }) }); -const So = S({ method: t0(a(1553)), params: S({ requestId: g(), data: q0(), error: g()[a(1864)](), finished: e0() }) }), ko = S({ method: t0("sdppp/streamRequest"), params: S({ action: g(), data: q0() }) }), Po = S({ method: t0(a(1458)), params: S({ requestId: g() }) }); -var Ts, qs; -class Io { +S({ method: te("sdppp/streamResponse"), params: S({ requestId: g(), data: qe(), error: g().nullable(), finished: ee() }) }), S({ method: te("sdppp/streamRequest"), params: S({ action: g(), data: qe() }) }), S({ method: te(a(1019)), params: S({ requestId: g() }) }); +const Eo = S({ method: te(a(1745)), params: S({ requestId: g(), data: qe(), error: g().nullable(), finished: ee() }) }), Io = S({ method: te(a(1374)), params: S({ action: g(), data: qe() }) }), Co = S({ method: te("sdppp/abort"), params: S({ requestId: g() }) }); +var As, _s; +class Ro { constructor() { - m0(this, qs, /* @__PURE__ */ new Map()); - m0(this, Ts, /* @__PURE__ */ new Map()); + me(this, _s, /* @__PURE__ */ new Map()); + me(this, As, /* @__PURE__ */ new Map()); } - [(qs = a(1713), Ts = a(1654), a(452))](x) { - const t = a, { requestId: r } = x[t(1181)], e = this.queues[t(1075)](r) || [], s = this[t(1654)].get(r) || []; - s[t(692)] > 0 ? s[t(252)]()(x[t(1181)]) : (e.push(x[t(1181)]), this[t(1713)][t(758)](r, e)); + [(_s = a(2051), As = a(2775), a(902))](x) { + const t = a, { requestId: r } = x.params, e = this[t(2051)][t(1094)](r) || [], s = this[t(2775)][t(1094)](r) || []; + s.length > 0 ? s[t(2281)]()(x[t(1133)]) : (e[t(902)](x[t(1133)]), this[t(2051)][t(1750)](r, e)); } - async [a(2231)](x) { - const t = a, r = this[t(1713)][t(1075)](x) || []; - return r[t(692)] > 0 ? r[t(252)]() : new Promise((e) => { - const s = t, n = this[s(1654)][s(1075)](x) || []; - n[s(452)](e), this[s(1654)].set(x, n); + async pop(x) { + const t = a, r = this.queues[t(1094)](x) || []; + return r[t(1332)] > 0 ? r[t(2281)]() : new Promise((e) => { + const s = t, n = this[s(2775)].get(x) || []; + n[s(902)](e), this.waiters[s(1750)](x, n); }); } - [a(2652)](x) { + [a(2050)](x) { const t = a; - this[t(1713)][t(2215)](x), this[t(1654)][t(2215)](x); + this[t(2051)].delete(x), this[t(2775)].delete(x); } } -var As, Os, _s; -class Eo extends wo { +var Os, Ds, js, Ms; +class Fo extends Po { constructor(t, r = {}) { const e = a; super(t, r); - m0(this, "streamRequestorHandlers", /* @__PURE__ */ new Map()); - m0(this, _s, 1); - m0(this, Os, /* @__PURE__ */ new Map()); - m0(this, As, new Io()); - this[e(2352)](); + me(this, Ms, /* @__PURE__ */ new Map()); + me(this, js, 1); + me(this, Ds, /* @__PURE__ */ new Map()); + me(this, Os, new Ro()); + this[e(2685)](); } - [(_s = a(2054), Os = a(1908), As = a(2804), a(2352))]() { + [(Ms = a(2364), js = a(2895), Ds = a(2604), Os = a(1397), a(2685))]() { const t = a; - this.setupStreamResponseHandler(), this.setupAbortHandler(), this[t(2422)](); + this[t(2676)](), this[t(1890)](), this[t(2650)](); } - [a(1469)]() { - const t = a; - this[t(1472)](So, async (r) => { - const e = t; - this[e(2804)][e(452)](r); + [a(2676)]() { + this.setNotificationHandler(Eo, async (t) => { + this.notificationQueue.push(t); }); } - setupAbortHandler() { + [a(1890)]() { const t = a; - this[t(437)](Po, async (r, e) => { - const s = t, { requestId: n } = r[s(1181)], i = this[s(1908)][s(1075)](n); - return i && (i[s(1284)](), this[s(1908)][s(2215)](n)), { success: !0 }; + this[t(1741)](Co, async (r, e) => { + const s = t, { requestId: n } = r.params, i = this.runningRequests[s(1094)](n); + return i && (i[s(2693)](), this[s(2604)][s(882)](n)), { success: !0 }; }); } - setupStreamRequestHandler() { + [a(2650)]() { const t = a; - this[t(437)](ko, async (r, e) => { - const s = t, n = s(2518) + this[s(2054)]++, i = this[s(1861)][s(1075)](r.params[s(2077)]); - if (!i) throw new Error(s(344) + r.params.action); + this[t(1741)](Io, async (r, e) => { + const s = t, n = s(2006) + this[s(2895)]++, i = this[s(2364)][s(1094)](r.params.action); + if (!i) throw new Error(s(1679) + r[s(1133)][s(1151)]); const c = new AbortController(); - return this[s(1908)][s(758)](n, c), this.executeHandlerAsync(n, i, r[s(1181)], e, c), { requestId: n }; + return this[s(2604)][s(1750)](n, c), this[s(475)](n, i, r[s(1133)], e, c), { requestId: n }; }); } - async [a(448)](t, r, e, s, n) { + async [a(475)](t, r, e, s, n) { const i = a; try { - const c = r(e, s, n[i(1562)]); + const c = r(e, s, n.signal); for await (const u of c) { - if (n[i(1562)][i(532)]) break; - await this.notification({ method: i(1553), params: { requestId: t, data: u, error: null, finished: !1 } }); + if (n[i(2634)].aborted) break; + await this[i(2071)]({ method: i(1745), params: { requestId: t, data: u, error: null, finished: !1 } }); } - !n.signal[i(532)] && await this[i(1750)]({ method: i(1553), params: { requestId: t, data: null, error: null, finished: !0 } }); + !n[i(2634)][i(2234)] && await this[i(2071)]({ method: i(1745), params: { requestId: t, data: null, error: null, finished: !0 } }); } catch (c) { - !n[i(1562)][i(532)] && await this[i(1750)]({ method: "sdppp/streamResponse", params: { requestId: t, data: null, error: c[i(225)], finished: !0 } }); + !n.signal[i(2234)] && await this[i(2071)]({ method: i(1745), params: { requestId: t, data: null, error: c[i(615)], finished: !0 } }); } finally { - this.runningRequests.delete(t); + this[i(2604)][i(882)](t); } } - [a(438)](t, r) { + [a(2052)](t, r) { const e = a; - this.streamRequestorHandlers.set(t[e(2068)][e(2077)][e(1732)], r); + this.streamRequestorHandlers[e(1750)](t.shape.action[e(998)], r); } - async [a(278)](t, r, e) { + async streamRequest(t, r, e) { const s = a; - this[s(1976)](e); - const n = await this.sendStreamRequestorRequest(t), i = this[s(2719)](n), c = this[s(2241)](); - return this[s(913)](i, c, n, e); + this[s(2227)](e); + const n = await this[s(2401)](t), i = this[s(2654)](n), c = this.createStreamState(); + return this[s(2188)](i, c, n, e); } - [a(1976)](t) { - if (t && t.aborted) throw new Error("AbortSignal is already aborted"); - } - async [a(1991)](t) { + validateStreamRequestorRequest(t) { const r = a; - return (await this[r(563)]({ method: r(2275), params: { action: t[r(2077)], data: t[r(909)] } }, S({ requestId: g() })))[r(1241)]; + if (t && t[r(2234)]) throw new Error(r(249)); } - [a(2719)](t) { - return this[a(2804)]; + async [a(2401)](t) { + const r = a; + return (await this.request({ method: r(1374), params: { action: t[r(1151)], data: t[r(2887)] } }, S({ requestId: g() })))[r(567)]; } - createStreamState() { + [a(2654)](t) { + return this.notificationQueue; + } + [a(1286)]() { return { finished: !1, error: null }; } - createAsyncIterator(t, r, e, s) { - const n = a, i = this; - return { async *[Symbol[n(772)]]() { - const c = n; + [a(2188)](t, r, e, s) { + const n = this; + return { async *[Symbol.asyncIterator]() { + const i = K; try { - for (; !r.finished && !r[c(948)]; ) { - if (s && s[c(532)]) - throw await i[c(563)]({ method: c(1458), params: { requestId: e } }, S({ success: e0() })), new Error(c(2885)); - const u = await t.pop(e); - if (u[c(948)]) - throw r[c(948)] = u[c(948)], new Error(u[c(948)]); - if (u[c(792)]) { - r.finished = !0; + for (; !r[i(1912)] && !r[i(2265)]; ) { + if (s && s[i(2234)]) + throw await n[i(2752)]({ method: "sdppp/abort", params: { requestId: e } }, S({ success: ee() })), new Error(i(1612)); + const c = await t[i(469)](e); + if (c.error) + throw r[i(2265)] = c[i(2265)], new Error(c[i(2265)]); + if (c[i(1912)]) { + r[i(1912)] = !0; break; } - u.data !== null && (yield u[c(909)]); + c[i(2887)] !== null && (yield c.data); } } finally { - t[c(2652)](e); + t.cleanup(e); } } }; } - [a(2525)]() { + [a(1572)]() { const t = a; - return this[t(1908)][t(2715)]; + return this[t(2604)][t(2187)]; } - async [a(365)](t) { - const r = a, e = this[r(1908)][r(1075)](t); - return e ? (e.abort(), this[r(1908)][r(2215)](t), !0) : !1; + async abortRequest(t) { + const r = a, e = this.runningRequests[r(1094)](t); + return e ? (e[r(2693)](), this[r(2604)][r(882)](t), !0) : !1; } - abortAllRequests() { + [a(1599)]() { const t = a; - for (const [r, e] of this.runningRequests) - e.abort(); - this[t(1908)].clear(); + for (const [r, e] of this[t(2604)]) + e[t(2693)](); + this.runningRequests.clear(); } - [a(2652)]() { + [a(2050)]() { const t = a; - super.cleanup(), this.abortAllRequests(), this[t(1861)][t(899)](); + super.cleanup(), this[t(1599)](), this[t(2364)].clear(); } } -S({ id: g(), method: g(), params: q0()[a(1027)](), traceId: g().optional() }), S({ id: g(), result: q0()[a(1027)](), error: S({ code: W(), message: g(), data: q0()[a(1027)]() })[a(1027)]() }), S({ method: g(), params: q0()[a(1027)]() }), S({ method: t0("sdppp/streamRequest"), params: S({ action: g(), data: q0() }) }), S({ method: t0("sdppp/streamResponse"), params: S({ requestId: g(), data: q0()[a(1027)](), error: g()[a(1864)]()[a(1027)](), finished: e0()[a(1944)](!1) }) }), S({ method: t0("sdppp/abort"), params: S({ requestId: g() }) }), S({ method: t0(a(1416)), params: S({ messageType: g(), message: q0() }) }); -function Hs(o) { +S({ id: g(), method: g(), params: qe()[a(2033)](), traceId: g()[a(2033)]() }), S({ id: g(), result: qe().optional(), error: S({ code: Z(), message: g(), data: qe().optional() })[a(2033)]() }), S({ method: g(), params: qe()[a(2033)]() }), S({ method: te("sdppp/streamRequest"), params: S({ action: g(), data: qe() }) }), S({ method: te(a(1745)), params: S({ requestId: g(), data: qe()[a(2033)](), error: g()[a(2101)]()[a(2033)](), finished: ee()[a(2222)](!1) }) }), S({ method: te(a(1019)), params: S({ requestId: g() }) }), S({ method: te(a(279)), params: S({ messageType: g(), message: qe() }) }); +function Bs(o) { const x = a; - return o && o.__esModule && Object.prototype[x(873)][x(1994)](o, x(1944)) ? o[x(1944)] : o; + return o && o[x(1058)] && Object[x(1700)][x(1428)].call(o, x(2222)) ? o[x(2222)] : o; } -const ze = S({ leftDistance: W(), topDistance: W(), rightDistance: W(), bottomDistance: W(), width: W(), height: W() }), Ne = { name: g(), uiWeight: W() }, Ro = S({ ...Ne, outputType: t0("images"), options: S({ required: e0(), maxCount: W()[a(1027)](), maskMode: e0()[a(1027)]() }) }), Co = S({ ...Ne, outputType: t0(a(2271)), options: S({ required: e0() }) }), Fo = S({ ...Ne, outputType: t0(a(2161)), options: S({ required: e0() }) }), No = S({ ...Ne, outputType: t0(a(1146)), options: S({ required: e0() }) }), To = S({ ...Ne, outputType: t0(a(2153)), options: S({ required: e0(), min: W().optional(), max: W()[a(1027)](), step: W().optional(), random: e0()[a(1027)](), slider: e0()[a(1027)]() }) }), qo = S({ ...Ne, outputType: t0(a(2702)), options: S({ required: e0(), values: v0(g()), labels: v0(g())[a(1027)]() }) }), Ao = S({ ...Ne, outputType: t0(a(1280)), options: S({ required: e0(), values: v0(g()) }) }), Oo = S({ ...Ne, outputType: t0(a(1889)), options: S({ required: e0() }) }), _o = $s("outputType", [Ro, Co, Fo, No, To, qo, Ao, Oo]), Do = S({ id: g(), title: g(), widgets: v0(_o), uiWeightSum: W() }), jo = S({ widgetableID: g(), widgetablePath: g(), nodes: D0(g(), Do), nodeIndexes: v0(g()), note: g()[a(1027)](), options: D0(g(), q0()) }), Mo = S({ widgetableStructure: jo[a(1944)]({ widgetableID: "", widgetablePath: "", nodes: {}, note: "", options: {}, nodeIndexes: [] }), widgetableValues: D0(g(), v0(q0()))[a(1944)]({}), widgetableErrors: D0(g(), g())[a(1944)]({}), queueSize: W()[a(1944)](0), lastError: g()[a(1944)](""), progress: W().default(0), executingNodeTitle: g().default(""), executingNodeID: g()[a(1944)](""), graphProgress: W()[a(1944)](0), comfyUserToken: g()[a(1944)](""), comfyOrgLoggedIn: e0()[a(1944)](!1), comfyOrgAPIKey: g().default(""), comfyWSState: R0(["connected", a(1255)])[a(1944)](a(187)), lastRunTime: W().default(0) }), Lo = S({ bannerData: q0()[a(1027)](), refreshable: e0()[a(1944)](!1), backwardable: e0()[a(1944)](!1), loginable: e0()[a(1944)](!1), runnable: e0()[a(1944)](!1), workBoundaries: D0(W(), ze).default({}), workBoundaryMaxSizes: D0(W(), W())[a(1944)]({}) }), $o = S({ uname: g()[a(1944)](""), activeDocumentID: W()[a(1944)](0), layers: v0(S({ id: W(), name: g(), identify: g() }))[a(1944)]([]), actions: v0(g()).default([]), theme: g()[a(1944)]("kPanelBrightnessMediumGray"), sdpppX: D0(g(), q0())[a(1944)]({}), locale: R0([a(2367), "en-US"])[a(1944)](a(1282)), comfyWebviewConnectStatus: R0([a(637), a(187), "disconnected"])[a(1944)](a(1859)), comfyWebviewLoadError: g()[a(1944)](""), comfyWebviewLoading: e0()[a(1944)](!1), comfyWebviewVersion: g()[a(1944)](""), comfyHTTPCode: W().default(200), comfyURL: g().default(""), sdkWebviewFocusing: e0()[a(1944)](!1), sdkWebviewConnectStatus: R0(["connecting", "connected", "disconnected"])[a(1944)](a(1859)), isLogin: e0().default(!1), isGuest: e0()[a(1944)](!1), requestingLogin: e0()[a(1944)](!1), loginMessage: g()[a(1944)](""), token: g()[a(1944)](""), userInfo: D0(g(), q0())[a(1944)]({}), taskLastRun: W()[a(1944)](0), canvasStateID: W()[a(1027)](), selectionStateID: g().optional(), selectionBoundary: ze[a(1864)]()[a(1027)]() }), Uo = { setNodeTitle: { requestSchema: S({ node_id: g(), title: g() }), responseSchema: S({ success: e0() }) }, reboot: { requestSchema: S({}), responseSchema: S({ success: e0(), error: g()[a(1027)]() }) }, setComfyOrgAPIKey: { requestSchema: S({ api_key: g() }), responseSchema: S({ success: e0() }) }, logout: { requestSchema: S({}), responseSchema: S({ success: e0() }) }, uploadComfyImageFromUXP: { requestSchema: S({ fileName: g(), overwrite: e0()[a(1027)](), mimeType: g()[a(1027)](), dataBase64: g() }), responseSchema: S({ name: g() }) }, sdpppHandshake: { requestSchema: S({ hostVersion: g()[a(1027)]() }), responseSchema: S({ comfyVersion: g(), hostVersion: g().optional() }) } }, Ho = S({ workflows: v0(g()), error: g()[a(1027)]() }), zo = S({ success: e0(), nodeErrors: D0(g()).optional(), prompt_ids: v0(g()).optional(), images: v0(S({ url: g(), thumbnail: g() }))[a(1027)]() }), Vo = { setWidgetValue: { requestSchema: S({ values: v0(S({ nodeID: g(), widgetIndex: W(), value: D0(g(), q0()).or(g()).or(W()).or(e0()).or(v0(q0())) })) }), responseSchema: S({ success: e0() }) }, openWorkflow: { requestSchema: S({ workflow_path: g(), reset: e0()[a(1944)](!1) }), responseSchema: S({ success: e0() }) }, openWorkflowJSON: { requestSchema: S({ workflow_content: D0(q0()), workflow_path: g() }), responseSchema: S({ success: e0() }) }, listWorkflows: { requestSchema: S({ listMode: g()[a(1027)](), sdpppID: g().optional(), sdpppToken: g().optional() }), responseSchema: Ho }, saveWorkflow: { requestSchema: S({ workflow_path: g(), from_sid: g()[a(1027)]() }), responseSchema: S({ success: e0() }) }, run: { requestSchema: S({ size: W(), mode: R0([a(400), a(724)])[a(1944)](a(400))[a(1027)]() }), responseSchema: zo, stream: !0 }, stopAll: { requestSchema: S({}), responseSchema: S({ success: e0() }) } }, Bo = { backward: { requestSchema: Hx(), responseSchema: S({ success: e0() }) }, refresh: { requestSchema: Hx(), responseSchema: S({ success: e0() }) }, run: { requestSchema: Hx(), responseSchema: S({ success: e0() }) } }, Zo = S({ passwordPayload: S({ username: g(), password: g() }).or(S({ email: g(), password: g() })).or(S({ phone: g(), password: g() })).or(S({ identifier: g(), password: g() })) }).or(S({ passcodePayload: S({ phone: g(), code: g() }).or(S({ email: g(), code: g() })) })), Wo = S({ passwordPayload: S({ username: g(), password: g() }).or(S({ email: g(), password: g() })).or(S({ phone: g(), password: g() })).or(S({ identifier: g(), password: g() })) }).or(S({ passcodePayload: S({ phone: g(), code: g() }).or(S({ email: g(), code: g() })) })), Ko = { register: { requestSchema: Zo, responseSchema: S({}) }, login: { requestSchema: Wo, responseSchema: S({}) }, sendPassCode: { requestSchema: S({ phone: g().optional(), email: g()[a(1027)]() }), responseSchema: S({}) }, logout: { requestSchema: S({}), responseSchema: S({}) }, guestLogin: { requestSchema: S({}), responseSchema: S({}) } }; -S({ resource: g()[a(1027)](), thumbnail: g()[a(1027)](), width: W()[a(1027)](), height: W().optional(), mimeType: g()[a(1027)](), source: g()[a(1027)](), error: g()[a(1027)]() }), S({ boundary: R0([a(367), "curlayer", a(210)]), content: R0([a(367), "curlayer", a(210)]).or(g()), imageSize: W(), imageQuality: W(), cropBySelection: R0(["no", a(786), a(1661)]), layer_identify: g().nullable()[a(1027)]() }), S({ content: R0([a(367), a(1082), a(210)]), reverse: e0(), imageSize: W(), layer_identify: g()[a(1864)]()[a(1027)]() }), S({ selection: R0(["newdoc_canvas", a(2620), a(762), a(664), a(2210), a(526), a(1687), a(866)]), url: g(), source: g(), cropBySelection: R0(["no", a(786), a(1661)]) }); -const Go = { downloadImage: { requestSchema: S({ url: g() }), responseSchema: S({ thumbnail: g()[a(1027)](), resource: g()[a(1027)](), width: W()[a(1027)](), height: W()[a(1027)](), error: g()[a(1027)]() }) }, getThumbnail: { requestSchema: S({ resource: g(), maxSize: W().optional() }), responseSchema: S({ thumbnail: g().optional(), width: W()[a(1027)](), height: W()[a(1027)](), error: g()[a(1027)]() }) } }, Jo = { manageGuides: { requestSchema: S({ action: R0([a(665), a(899)]), rect: ze[a(1027)]() }), responseSchema: S({ success: e0() }) }, getBoundary: { requestSchema: S({ type: R0([a(1082), "selection"]) }), responseSchema: ze }, getImage: { requestSchema: S({ boundary: K0([R0([a(367), a(1082), a(210)]), ze]), content: K0([R0(["canvas", "curlayer"]), g()]), imageSize: W(), imageQuality: W(), cropBySelection: R0(["no", a(786), a(1661)]), SkipNonNormalLayer: e0(), layer_identify: g()[a(1864)]().optional() }), responseSchema: S({ resource: g()[a(1027)](), thumbnail: g()[a(1027)](), width: W().optional(), height: W().optional(), mimeType: g()[a(1027)](), source: g()[a(1027)](), error: g()[a(1027)]() }) }, getMask: { requestSchema: S({ boundary: K0([R0([a(367), "curlayer", a(210)]), ze]), content: R0(["canvas", "curlayer", a(210)]), reverse: e0(), imageSize: W(), layer_identify: g()[a(1864)]()[a(1027)]() }), responseSchema: S({ resource: g().optional(), thumbnail: g()[a(1027)](), width: W()[a(1027)](), height: W()[a(1027)](), mimeType: g()[a(1027)](), source: g()[a(1027)](), error: g()[a(1027)]() }) }, getCurrentLayerIdentify: { requestSchema: S({}), responseSchema: S({ layer_identify: g()[a(1864)]() }) }, importImage: { requestSchema: S({ resource: g(), boundaryUri: g()[a(1864)]()[a(1027)](), type: R0([a(367), a(1082), a(2441), a(1247)]), sourceWidth: W().optional(), sourceHeight: W()[a(1027)](), maskUri: g()[a(1864)]()[a(1027)]() }), responseSchema: S({ success: e0(), layers: v0(S({ identify: g() }))[a(1027)](), message: g().optional(), error: g()[a(1027)]() }) }, applyMaskToImage: { requestSchema: S({ imageResource: g(), maskResource: g(), invertMask: e0()[a(1027)]() }), responseSchema: S({ resource: g(), thumbnail: g()[a(1027)](), width: W(), height: W(), mimeType: g() }) }, showBoundarySelectionDialog: { requestSchema: S({ additionalData: D0(q0())[a(1027)]() }), responseSchema: S({ boundary: R0([a(367), a(1082), a(210)])[a(1027)](), cancelled: e0()[a(1027)]() }) }, selectImageSource: { requestSchema: S({ additionalData: D0(q0())[a(1027)]() }), responseSchema: S({ action: R0([a(2350), "pickLocalFile"])[a(1027)](), params: q0()[a(1027)](), cancelled: e0()[a(1027)]() }) }, selectContentSource: { requestSchema: S({ additionalData: D0(q0()).optional() })[a(1027)](), responseSchema: S({ resource: g()[a(1027)](), fileName: g()[a(1027)](), mimeType: g()[a(1027)](), size: W().optional(), layerIdentify: g()[a(1027)](), cancelled: e0().optional() }) } }, zx = S({ taskId: g(), taskName: g(), status: R0(["running", a(552), a(1608), "cancelled"]), currentStep: W()[a(1027)](), totalSteps: W()[a(1027)](), stepDescription: g()[a(1027)](), progressPercentage: W()[a(1279)](0).max(100)[a(1027)](), startTime: g(), endTime: g()[a(1027)](), error: g()[a(1027)](), errorCode: g()[a(1027)](), result: q0().optional(), metadata: D0(q0())[a(1027)]() }), Vx = S({ success: e0(), error: g().optional() }), Qo = { taskAdd: { requestSchema: zx, responseSchema: Vx }, taskUpdate: { requestSchema: zx[a(2495)]().required({ taskId: !0 }), responseSchema: Vx }, taskRemove: { requestSchema: zx[a(203)]({ taskId: !0 }), responseSchema: Vx } }, Xo = { log: { requestSchema: S({ level: R0(["log", a(2381), a(343), a(948)]), messages: v0(g()) }), responseSchema: S({}) }, openExternalLink: { requestSchema: S({ url: g() }), responseSchema: S({ error: g()[a(1027)]() }) }, getStorage: { requestSchema: S({ key: g() }), responseSchema: S({ value: g(), error: g().optional() }) }, setStorage: { requestSchema: S({ key: g(), value: g() }), responseSchema: S({ error: g()[a(1027)]() }) }, removeStorage: { requestSchema: S({ key: g() }), responseSchema: S({ error: g()[a(1027)]() }) }, keyboardAction: { requestSchema: S({ keycode: g() }), responseSchema: S({}) }, setComfyWebviewURL: { requestSchema: S({ url: g() }), responseSchema: S({}) }, getImageBase64: { requestSchema: S({ token: g() }), responseSchema: S({ base64: g().optional(), mimeType: g()[a(1027)](), error: g().optional() }) }, uploadComfyImage: { requestSchema: S({ uploadInput: S({ type: K0([t0(a(2279)), t0(a(1851)), t0(a(2424))]), resource: q0(), fileName: g(), mimeType: g().optional(), resourceId: g()[a(1027)]() }), overwrite: e0()[a(1027)]().default(!0) }), responseSchema: S({ name: g() }) }, pickLocalFile: { requestSchema: S({ acceptExtensions: v0(g())[a(1027)](), kind: R0(["image", a(1183)])[a(1027)]() })[a(1027)](), responseSchema: S({ cancelled: e0().optional(), resource: g()[a(1027)](), fileName: g()[a(1027)](), mimeType: g()[a(1027)](), size: W()[a(1027)](), error: g()[a(1027)]() }) }, proxiedFetch: { requestSchema: S({ url: g(), method: g()[a(1027)](), headers: D0(g())[a(1027)](), body: q0().optional(), bodyType: R0([a(506), a(1122), a(817)])[a(1027)]() }), responseSchema: S({ success: e0(), status: W()[a(1027)](), statusText: g()[a(1027)](), headers: D0(g())[a(1027)](), data: q0()[a(1027)](), error: g()[a(1027)]() }) }, openaiImageEdit: { requestSchema: S({ apiKey: g(), baseURL: g(), imageToken: g(), prompt: g(), model: g() }), responseSchema: S({ success: e0(), imageUrl: g()[a(1027)](), apiTime: W()[a(1027)](), error: g().optional() }) }, geminiImageGenerate: { requestSchema: S({ apiKey: g(), baseURL: g().optional(), imageInputs: v0(g())[a(1027)](), imageInput: g()[a(1027)](), imageInputType: R0([a(1851), a(1129)]), prompt: g() }), responseSchema: S({ success: e0(), imageUrl: g()[a(1027)](), apiTime: W().optional(), error: g()[a(1027)]() }) } }, Yo = K0([g(), Ux(Uint8Array), Ux(ArrayBuffer), Ux(DataView)]), ei = S({ buffer: Yo, name: g().nullable().optional(), mime: g()[a(1864)]()[a(1027)](), width: W().nullable()[a(1027)](), height: W()[a(1864)]()[a(1027)](), thumbnail: g().nullable()[a(1027)](), meta: D0(Se())[a(1027)]() }), xi = { "fileResource.createFromExternal": { requestSchema: S({ url: g(), fileName: g().optional() }), responseSchema: S({ resource: g()[a(1027)](), thumbnail: g()[a(1027)](), width: W()[a(1027)](), height: W()[a(1027)](), mime: g().optional(), mimeType: g().optional(), error: g()[a(1027)]() }) }, "fileResource.createFromLocal": { requestSchema: S({ types: v0(S({ description: g().optional(), extensions: v0(g())[a(1027)]() }))[a(1027)]() }), responseSchema: S({ resource: g()[a(1027)](), thumbnail: g().optional(), width: W().optional(), height: W()[a(1027)](), mime: g()[a(1027)](), error: g()[a(1027)]() }) }, "fileResource.createFromBuffer": { requestSchema: S({ files: v0(ei)[a(1279)](1) }), responseSchema: S({ resource: g()[a(1027)](), thumbnail: g()[a(1027)](), width: W()[a(1027)](), height: W()[a(1027)](), mime: g()[a(1027)](), error: g()[a(1027)]() }) }, "fileResource.createByContent": { requestSchema: S({ contentUri: g(), boundaryUri: g()[a(1027)](), options: D0(Se())[a(1027)]() }), responseSchema: S({ resource: g()[a(1027)](), thumbnail: g()[a(1027)](), width: W()[a(1027)](), height: W()[a(1027)](), mime: g()[a(1027)](), error: g()[a(1027)]() }) }, "fileResource.createByMask": { requestSchema: S({ maskUri: g(), boundaryUri: g().optional(), options: D0(Se())[a(1027)]() }), responseSchema: S({ resource: g()[a(1027)](), thumbnail: g()[a(1027)](), width: W().optional(), height: W()[a(1027)](), mime: g()[a(1027)](), error: g()[a(1027)]() }) }, "fileResource.combineByCBM": { requestSchema: S({ contentUri: g(), boundaryUri: g(), maskUri: g()[a(1864)]().optional(), options: D0(Se()).optional(), thumbnail: e0()[a(1027)]() }), responseSchema: S({ resource: g().optional(), thumbnail: g()[a(1027)](), width: W().optional(), height: W()[a(1027)](), mime: g()[a(1027)](), error: g().optional() }) }, "fileResource.delete": { requestSchema: S({ resources: v0(g()) }), responseSchema: S({ error: g().optional() }) }, "fileResource.thumbnail": { requestSchema: S({ resource: g(), maxSize: W()[a(1027)]() }), responseSchema: S({ thumbnail: g()[a(1027)](), width: W().optional(), height: W()[a(1027)](), error: g().optional() }) }, "fileResource.saveAs": { requestSchema: S({ resources: v0(g()) }), responseSchema: S({ error: g()[a(1027)]() }) }, "boundary.normalize": { requestSchema: S({ boundary: g() }), responseSchema: S({ boundary: g().optional(), error: g().optional() }) }, "layer.resolve": { requestSchema: S({ uri: g(), type: R0([a(1213), a(474)]) }), responseSchema: S({ uri: g()[a(1027)](), error: g()[a(1027)]() }) } }, ti = vo({ nodes: { sdk: { store: Lo, actions: { ...Bo } }, uxp: { store: $o, actions: { ...Go, ...xi, ...Xo, ...Ko, ...Qo, ...Jo } }, comfy: { store: Mo, actions: { ...Vo, ...Uo } } }, edges: [["sdk", "uxp"], [a(2195), a(359)]] }), P0 = ti[a(1883)](a(2195)); -globalThis[a(921)] = P0; -var lx = { exports: {} }, Bx, Ma; -function ai() { +const z0 = S({ leftDistance: Z(), topDistance: Z(), rightDistance: Z(), bottomDistance: Z(), width: Z(), height: Z() }), N0 = { name: g(), uiWeight: Z() }, No = S({ ...N0, outputType: te("images"), options: S({ required: ee(), maxCount: Z()[a(2033)](), maskMode: ee()[a(2033)]() }) }), To = S({ ...N0, outputType: te(a(2019)), options: S({ required: ee() }) }), qo = S({ ...N0, outputType: te("string"), options: S({ required: ee() }) }), Ao = S({ ...N0, outputType: te(a(1001)), options: S({ required: ee() }) }), _o = S({ ...N0, outputType: te(a(1206)), options: S({ required: ee(), min: Z().optional(), max: Z()[a(2033)](), step: Z()[a(2033)](), random: ee()[a(2033)](), slider: ee()[a(2033)]() }) }), Oo = S({ ...N0, outputType: te("combo"), options: S({ required: ee(), values: we(g()), labels: we(g())[a(2033)]() }) }), Do = S({ ...N0, outputType: te("segment"), options: S({ required: ee(), values: we(g()) }) }), jo = S({ ...N0, outputType: te("video"), options: S({ required: ee() }) }), Mo = zs("outputType", [No, To, qo, Ao, _o, Oo, Do, jo]), Lo = S({ id: g(), title: g(), widgets: we(Mo), uiWeightSum: Z() }), $o = S({ widgetableID: g(), widgetablePath: g(), nodes: De(g(), Lo), nodeIndexes: we(g()), note: g()[a(2033)](), options: De(g(), qe()) }), Uo = S({ widgetableStructure: $o[a(2222)]({ widgetableID: "", widgetablePath: "", nodes: {}, note: "", options: {}, nodeIndexes: [] }), widgetableValues: De(g(), we(qe()))[a(2222)]({}), widgetableErrors: De(g(), g())[a(2222)]({}), queueSize: Z()[a(2222)](0), lastError: g()[a(2222)](""), progress: Z()[a(2222)](0), executingNodeTitle: g().default(""), executingNodeID: g().default(""), graphProgress: Z()[a(2222)](0), comfyUserToken: g()[a(2222)](""), comfyOrgLoggedIn: ee()[a(2222)](!1), comfyOrgAPIKey: g()[a(2222)](""), comfyWSState: Re([a(1951), a(2100)]).default(a(1951)), lastRunTime: Z()[a(2222)](0) }), Ho = S({ bannerData: qe()[a(2033)](), refreshable: ee()[a(2222)](!1), backwardable: ee().default(!1), loginable: ee()[a(2222)](!1), runnable: ee()[a(2222)](!1), workBoundaries: De(Z(), z0).default({}), workBoundaryMaxSizes: De(Z(), Z()).default({}) }), zo = S({ uname: g()[a(2222)](""), activeDocumentID: Z()[a(2222)](0), layers: we(S({ id: Z(), name: g(), identify: g() })).default([]), actions: we(g())[a(2222)]([]), theme: g().default(a(1888)), sdpppX: De(g(), qe()).default({}), locale: Re([a(359), "en-US"])[a(2222)](a(536)), comfyWebviewConnectStatus: Re([a(1627), "connected", a(482)])[a(2222)](a(482)), comfyWebviewLoadError: g()[a(2222)](""), comfyWebviewLoading: ee()[a(2222)](!1), comfyWebviewVersion: g().default(""), comfyHTTPCode: Z()[a(2222)](200), comfyURL: g()[a(2222)](""), sdkWebviewFocusing: ee()[a(2222)](!1), sdkWebviewConnectStatus: Re([a(1627), a(1951), a(482)]).default("disconnected"), isLogin: ee()[a(2222)](!1), isGuest: ee()[a(2222)](!1), requestingLogin: ee()[a(2222)](!1), loginMessage: g()[a(2222)](""), token: g()[a(2222)](""), userInfo: De(g(), qe())[a(2222)]({}), taskLastRun: Z().default(0), canvasStateID: Z()[a(2033)](), selectionStateID: g()[a(2033)](), selectionBoundary: z0[a(2101)]()[a(2033)]() }), Vo = { setNodeTitle: { requestSchema: S({ node_id: g(), title: g() }), responseSchema: S({ success: ee() }) }, reboot: { requestSchema: S({}), responseSchema: S({ success: ee(), error: g()[a(2033)]() }) }, setComfyOrgAPIKey: { requestSchema: S({ api_key: g() }), responseSchema: S({ success: ee() }) }, logout: { requestSchema: S({}), responseSchema: S({ success: ee() }) }, uploadComfyImageFromUXP: { requestSchema: S({ fileName: g(), overwrite: ee().optional(), mimeType: g()[a(2033)](), dataBase64: g() }), responseSchema: S({ name: g() }) }, sdpppHandshake: { requestSchema: S({ hostVersion: g()[a(2033)]() }), responseSchema: S({ comfyVersion: g(), hostVersion: g()[a(2033)]() }) } }, Bo = S({ workflows: we(g()), error: g()[a(2033)]() }), Wo = S({ success: ee(), nodeErrors: De(g())[a(2033)](), prompt_ids: we(g())[a(2033)](), images: we(S({ url: g(), thumbnail: g() }))[a(2033)]() }), Zo = { setWidgetValue: { requestSchema: S({ values: we(S({ nodeID: g(), widgetIndex: Z(), value: De(g(), qe()).or(g()).or(Z()).or(ee()).or(we(qe())) })) }), responseSchema: S({ success: ee() }) }, openWorkflow: { requestSchema: S({ workflow_path: g(), reset: ee()[a(2222)](!1) }), responseSchema: S({ success: ee() }) }, openWorkflowJSON: { requestSchema: S({ workflow_content: De(qe()), workflow_path: g() }), responseSchema: S({ success: ee() }) }, listWorkflows: { requestSchema: S({ listMode: g().optional(), sdpppID: g()[a(2033)](), sdpppToken: g()[a(2033)]() }), responseSchema: Bo }, saveWorkflow: { requestSchema: S({ workflow_path: g(), from_sid: g()[a(2033)]() }), responseSchema: S({ success: ee() }) }, run: { requestSchema: S({ size: Z(), mode: Re([a(1388), a(699)]).default("app")[a(2033)]() }), responseSchema: Wo, stream: !0 }, stopAll: { requestSchema: S({}), responseSchema: S({ success: ee() }) } }, Ko = { backward: { requestSchema: Hx(), responseSchema: S({ success: ee() }) }, refresh: { requestSchema: Hx(), responseSchema: S({ success: ee() }) }, run: { requestSchema: Hx(), responseSchema: S({ success: ee() }) } }, Go = S({ passwordPayload: S({ username: g(), password: g() }).or(S({ email: g(), password: g() })).or(S({ phone: g(), password: g() })).or(S({ identifier: g(), password: g() })) }).or(S({ passcodePayload: S({ phone: g(), code: g() }).or(S({ email: g(), code: g() })) })), Jo = S({ passwordPayload: S({ username: g(), password: g() }).or(S({ email: g(), password: g() })).or(S({ phone: g(), password: g() })).or(S({ identifier: g(), password: g() })) }).or(S({ passcodePayload: S({ phone: g(), code: g() }).or(S({ email: g(), code: g() })) })), Qo = { register: { requestSchema: Go, responseSchema: S({}) }, login: { requestSchema: Jo, responseSchema: S({}) }, sendPassCode: { requestSchema: S({ phone: g()[a(2033)](), email: g()[a(2033)]() }), responseSchema: S({}) }, logout: { requestSchema: S({}), responseSchema: S({}) }, guestLogin: { requestSchema: S({}), responseSchema: S({}) }, openAuthingLoginDialog: { requestSchema: S({}), responseSchema: S({}) } }; +S({ resource: g()[a(2033)](), thumbnail: g()[a(2033)](), width: Z().optional(), height: Z()[a(2033)](), mimeType: g()[a(2033)](), source: g()[a(2033)](), error: g().optional() }), S({ boundary: Re([a(976), "curlayer", a(2623)]), content: Re(["canvas", a(2382), "selection"]).or(g()), imageSize: Z(), imageQuality: Z(), cropBySelection: Re(["no", a(194), a(1757)]), layer_identify: g()[a(2101)]().optional() }), S({ content: Re([a(976), a(2382), a(2623)]), reverse: ee(), imageSize: Z(), layer_identify: g().nullable().optional() }), S({ selection: Re([a(1436), a(2624), a(1110), a(1914), "curlayer_canvas", "curlayer_curlayer", a(1463), a(1436)]), url: g(), source: g(), cropBySelection: Re(["no", a(194), "negative"]) }); +const Xo = { downloadImage: { requestSchema: S({ url: g() }), responseSchema: S({ thumbnail: g()[a(2033)](), resource: g()[a(2033)](), width: Z()[a(2033)](), height: Z()[a(2033)](), error: g()[a(2033)]() }) }, getThumbnail: { requestSchema: S({ resource: g(), maxSize: Z().optional() }), responseSchema: S({ thumbnail: g()[a(2033)](), width: Z().optional(), height: Z()[a(2033)](), error: g()[a(2033)]() }) } }, Yo = { manageGuides: { requestSchema: S({ action: Re(["create", a(2254)]), rect: z0.optional() }), responseSchema: S({ success: ee() }) }, getBoundary: { requestSchema: S({ type: Re(["curlayer", a(2623)]) }), responseSchema: z0 }, getImage: { requestSchema: S({ boundary: Ke([Re(["canvas", a(2382), a(2623)]), z0]), content: Ke([Re([a(976), a(2382)]), g()]), imageSize: Z(), imageQuality: Z(), cropBySelection: Re(["no", a(194), a(1757)]), SkipNonNormalLayer: ee(), layer_identify: g()[a(2101)]()[a(2033)]() }), responseSchema: S({ resource: g()[a(2033)](), thumbnail: g()[a(2033)](), width: Z()[a(2033)](), height: Z().optional(), mimeType: g()[a(2033)](), source: g().optional(), error: g()[a(2033)]() }) }, getMask: { requestSchema: S({ boundary: Ke([Re(["canvas", "curlayer", "selection"]), z0]), content: Re([a(976), a(2382), "selection"]), reverse: ee(), imageSize: Z(), layer_identify: g().nullable()[a(2033)]() }), responseSchema: S({ resource: g()[a(2033)](), thumbnail: g()[a(2033)](), width: Z()[a(2033)](), height: Z()[a(2033)](), mimeType: g()[a(2033)](), source: g()[a(2033)](), error: g()[a(2033)]() }) }, getCurrentLayerIdentify: { requestSchema: S({}), responseSchema: S({ layer_identify: g()[a(2101)]() }) }, importImage: { requestSchema: S({ resource: g(), boundaryUri: g().nullable()[a(2033)](), type: Re([a(976), "curlayer", a(969), a(220)]), sourceWidth: Z()[a(2033)](), sourceHeight: Z()[a(2033)](), maskUri: g()[a(2101)]()[a(2033)]() }), responseSchema: S({ success: ee(), layers: we(S({ identify: g() }))[a(2033)](), message: g()[a(2033)](), error: g()[a(2033)]() }) }, applyMaskToImage: { requestSchema: S({ imageResource: g(), maskResource: g(), invertMask: ee()[a(2033)]() }), responseSchema: S({ resource: g(), thumbnail: g()[a(2033)](), width: Z(), height: Z(), mimeType: g() }) }, showBoundarySelectionDialog: { requestSchema: S({ additionalData: De(qe())[a(2033)]() }), responseSchema: S({ boundary: Re([a(976), "curlayer", a(2623)]).optional(), cancelled: ee().optional() }) }, selectImageSource: { requestSchema: S({ additionalData: De(qe()).optional() }), responseSchema: S({ action: Re([a(430), a(2354)])[a(2033)](), params: qe()[a(2033)](), cancelled: ee().optional() }) }, selectContentSource: { requestSchema: S({ additionalData: De(qe())[a(2033)]() })[a(2033)](), responseSchema: S({ resource: g().optional(), fileName: g().optional(), mimeType: g()[a(2033)](), size: Z().optional(), layerIdentify: g()[a(2033)](), cancelled: ee()[a(2033)]() }) } }, zx = S({ taskId: g(), taskName: g(), status: Re(["running", a(283), a(2616), a(2457)]), currentStep: Z()[a(2033)](), totalSteps: Z()[a(2033)](), stepDescription: g()[a(2033)](), progressPercentage: Z()[a(1414)](0)[a(718)](100)[a(2033)](), startTime: g(), endTime: g()[a(2033)](), error: g()[a(2033)](), errorCode: g().optional(), result: qe()[a(2033)](), metadata: De(qe()).optional() }), Vx = S({ success: ee(), error: g().optional() }), ei = { taskAdd: { requestSchema: zx, responseSchema: Vx }, taskUpdate: { requestSchema: zx[a(2573)]()[a(1025)]({ taskId: !0 }), responseSchema: Vx }, taskRemove: { requestSchema: zx[a(264)]({ taskId: !0 }), responseSchema: Vx } }, xi = { log: { requestSchema: S({ level: Re([a(1872), "info", a(196), a(2265)]), messages: we(g()) }), responseSchema: S({}) }, openExternalLink: { requestSchema: S({ url: g() }), responseSchema: S({ error: g()[a(2033)]() }) }, getStorage: { requestSchema: S({ key: g() }), responseSchema: S({ value: g(), error: g().optional() }) }, setStorage: { requestSchema: S({ key: g(), value: g() }), responseSchema: S({ error: g()[a(2033)]() }) }, removeStorage: { requestSchema: S({ key: g() }), responseSchema: S({ error: g()[a(2033)]() }) }, keyboardAction: { requestSchema: S({ keycode: g() }), responseSchema: S({}) }, setComfyWebviewURL: { requestSchema: S({ url: g() }), responseSchema: S({}) }, getImageBase64: { requestSchema: S({ token: g() }), responseSchema: S({ base64: g()[a(2033)](), mimeType: g()[a(2033)](), error: g().optional() }) }, uploadComfyImage: { requestSchema: S({ uploadInput: S({ type: Ke([te("buffer"), te(a(2555)), te("resource")]), resource: qe(), fileName: g(), mimeType: g()[a(2033)](), resourceId: g()[a(2033)]() }), overwrite: ee()[a(2033)]().default(!0) }), responseSchema: S({ name: g() }) }, pickLocalFile: { requestSchema: S({ acceptExtensions: we(g())[a(2033)](), kind: Re([a(1108), a(2869)])[a(2033)]() })[a(2033)](), responseSchema: S({ cancelled: ee()[a(2033)](), resource: g()[a(2033)](), fileName: g()[a(2033)](), mimeType: g().optional(), size: Z().optional(), error: g()[a(2033)]() }) }, proxiedFetch: { requestSchema: S({ url: g(), method: g().optional(), headers: De(g()).optional(), body: qe().optional(), bodyType: Re([a(2348), a(547), "text"])[a(2033)]() }), responseSchema: S({ success: ee(), status: Z().optional(), statusText: g().optional(), headers: De(g())[a(2033)](), data: qe()[a(2033)](), error: g()[a(2033)]() }) }, openaiImageEdit: { requestSchema: S({ apiKey: g(), baseURL: g(), imageToken: g(), prompt: g(), model: g() }), responseSchema: S({ success: ee(), imageUrl: g()[a(2033)](), apiTime: Z()[a(2033)](), error: g()[a(2033)]() }) }, geminiImageGenerate: { requestSchema: S({ apiKey: g(), baseURL: g()[a(2033)](), imageInputs: we(g())[a(2033)](), imageInput: g().optional(), imageInputType: Re([a(2555), a(1667)]), prompt: g() }), responseSchema: S({ success: ee(), imageUrl: g()[a(2033)](), apiTime: Z()[a(2033)](), error: g().optional() }) } }, ti = Ke([g(), Ux(Uint8Array), Ux(ArrayBuffer), Ux(DataView)]), ai = S({ buffer: ti, name: g()[a(2101)]()[a(2033)](), mime: g().nullable()[a(2033)](), width: Z()[a(2101)]()[a(2033)](), height: Z()[a(2101)]()[a(2033)](), thumbnail: g().nullable()[a(2033)](), meta: De(S0())[a(2033)]() }), ri = { "fileResource.createFromExternal": { requestSchema: S({ url: g(), fileName: g().optional() }), responseSchema: S({ resource: g().optional(), thumbnail: g()[a(2033)](), width: Z()[a(2033)](), height: Z().optional(), mime: g()[a(2033)](), mimeType: g().optional(), error: g()[a(2033)]() }) }, "fileResource.createFromLocal": { requestSchema: S({ types: we(S({ description: g()[a(2033)](), extensions: we(g()).optional() }))[a(2033)]() }), responseSchema: S({ resource: g().optional(), thumbnail: g()[a(2033)](), width: Z()[a(2033)](), height: Z()[a(2033)](), mime: g()[a(2033)](), error: g().optional() }) }, "fileResource.createFromBuffer": { requestSchema: S({ files: we(ai)[a(1414)](1) }), responseSchema: S({ resource: g()[a(2033)](), thumbnail: g()[a(2033)](), width: Z()[a(2033)](), height: Z()[a(2033)](), mime: g()[a(2033)](), error: g()[a(2033)]() }) }, "fileResource.createByContent": { requestSchema: S({ contentUri: g(), boundaryUri: g()[a(2033)](), options: De(S0()).optional() }), responseSchema: S({ resource: g()[a(2033)](), thumbnail: g().optional(), width: Z()[a(2033)](), height: Z()[a(2033)](), mime: g()[a(2033)](), error: g()[a(2033)]() }) }, "fileResource.createByMask": { requestSchema: S({ maskUri: g(), boundaryUri: g()[a(2033)](), options: De(S0())[a(2033)]() }), responseSchema: S({ resource: g()[a(2033)](), thumbnail: g()[a(2033)](), width: Z()[a(2033)](), height: Z().optional(), mime: g()[a(2033)](), error: g()[a(2033)]() }) }, "fileResource.combineByCBM": { requestSchema: S({ contentUri: g(), boundaryUri: g(), maskUri: g()[a(2101)]()[a(2033)](), options: De(S0()).optional(), thumbnail: ee()[a(2033)]() }), responseSchema: S({ resource: g().optional(), thumbnail: g().optional(), width: Z()[a(2033)](), height: Z()[a(2033)](), mime: g().optional(), error: g().optional() }) }, "fileResource.delete": { requestSchema: S({ resources: we(g()) }), responseSchema: S({ error: g()[a(2033)]() }) }, "fileResource.thumbnail": { requestSchema: S({ resource: g(), maxSize: Z()[a(2033)]() }), responseSchema: S({ thumbnail: g()[a(2033)](), width: Z()[a(2033)](), height: Z()[a(2033)](), error: g()[a(2033)]() }) }, "fileResource.saveAs": { requestSchema: S({ resources: we(g()) }), responseSchema: S({ error: g()[a(2033)]() }) }, "boundary.normalize": { requestSchema: S({ boundary: g() }), responseSchema: S({ boundary: g()[a(2033)](), error: g()[a(2033)]() }) }, "layer.resolve": { requestSchema: S({ uri: g(), type: Re([a(1306), "mask"]) }), responseSchema: S({ uri: g()[a(2033)](), error: g()[a(2033)]() }) } }, si = ko({ nodes: { sdk: { store: Ho, actions: { ...Ko } }, uxp: { store: zo, actions: { ...Xo, ...ri, ...xi, ...Qo, ...ei, ...Yo } }, comfy: { store: Uo, actions: { ...Zo, ...Vo } } }, edges: [["sdk", a(999)], [a(696), "uxp"]] }), Pe = si[a(1359)](a(696)); +globalThis[a(621)] = Pe; +var fx = { exports: {} }, Bx, Ma; +function ni() { if (Ma) return Bx; Ma = 1; var o = 1e3, x = o * 60, t = x * 60, r = t * 24, e = r * 7, s = r * 365.25; - Bx = function(d, f) { - const l = K; - f = f || {}; + Bx = function(d, l) { + const f = K; + l = l || {}; var b = typeof d; - if (b === "string" && d[l(692)] > 0) return n(d); - if (b === l(2153) && isFinite(d)) return f[l(271)] ? c(d) : i(d); - throw new Error(l(1091) + JSON[l(2625)](d)); + if (b === f(1653) && d[f(1332)] > 0) return n(d); + if (b === f(1206) && isFinite(d)) return l[f(1602)] ? c(d) : i(d); + throw new Error(f(794) + JSON[f(306)](d)); }; function n(d) { - const f = K; - if (d = String(d), !(d[f(692)] > 100)) { - var l = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i[f(537)](d); - if (l) { - var b = parseFloat(l[1]), h = (l[2] || "ms")[f(556)](); + const l = K; + if (d = String(d), !(d[l(1332)] > 100)) { + var f = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d); + if (f) { + var b = parseFloat(f[1]), h = (f[2] || "ms").toLowerCase(); switch (h) { - case "years": - case f(1833): - case "yrs": + case l(355): + case "year": + case l(2003): case "yr": case "y": return b * s; - case f(2027): - case "week": + case l(773): + case l(178): case "w": return b * e; - case "days": - case f(262): + case l(1578): + case l(2323): case "d": return b * r; - case f(1387): - case f(2631): - case f(2310): + case l(1435): + case l(2508): + case l(1242): case "hr": case "h": return b * t; - case f(1541): - case f(2598): - case f(699): + case l(452): + case l(1565): + case l(1279): case "min": case "m": return b * x; - case f(613): - case f(2414): - case "secs": - case f(2049): + case "seconds": + case l(1238): + case l(2393): + case l(502): case "s": return b * o; - case f(1364): - case f(193): - case f(2456): - case "msec": + case l(2772): + case "millisecond": + case "msecs": + case l(2029): case "ms": return b; default: @@ -3010,158 +3010,156 @@ function ai() { } } function i(d) { - const f = K; - var l = Math[f(1843)](d); - return l >= r ? Math[f(481)](d / r) + "d" : l >= t ? Math.round(d / t) + "h" : l >= x ? Math[f(481)](d / x) + "m" : l >= o ? Math.round(d / o) + "s" : d + "ms"; + const l = K; + var f = Math[l(2625)](d); + return f >= r ? Math[l(2223)](d / r) + "d" : f >= t ? Math[l(2223)](d / t) + "h" : f >= x ? Math[l(2223)](d / x) + "m" : f >= o ? Math[l(2223)](d / o) + "s" : d + "ms"; } function c(d) { - const f = K; - var l = Math[f(1843)](d); - return l >= r ? u(d, l, r, "day") : l >= t ? u(d, l, t, f(2631)) : l >= x ? u(d, l, x, "minute") : l >= o ? u(d, l, o, f(2414)) : d + " ms"; + const l = K; + var f = Math[l(2625)](d); + return f >= r ? u(d, f, r, l(2323)) : f >= t ? u(d, f, t, l(2508)) : f >= x ? u(d, f, x, l(1565)) : f >= o ? u(d, f, o, "second") : d + l(845); } - function u(d, f, l, b) { - const h = K; - var m = f >= l * 1.5; - return Math[h(481)](d / l) + " " + b + (m ? "s" : ""); + function u(d, l, f, b) { + var h = l >= f * 1.5; + return Math.round(d / f) + " " + b + (h ? "s" : ""); } return Bx; } -var Zx, La; -function ri() { - if (La) return Zx; +var Wx, La; +function oi() { + if (La) return Wx; La = 1; function o(x) { const t = K; - e[t(2297)] = e, e[t(1944)] = e, e.coerce = d, e.disable = c, e[t(2157)] = n, e[t(1220)] = u, e.humanize = ai(), e[t(2141)] = f, Object.keys(x)[t(1471)]((l) => { - e[l] = x[l]; - }), e[t(1185)] = [], e[t(2483)] = [], e[t(2593)] = {}; - function r(l) { + e[t(2264)] = e, e[t(2222)] = e, e.coerce = d, e[t(1218)] = c, e[t(1936)] = n, e.enabled = u, e[t(2886)] = ni(), e[t(525)] = l, Object[t(1806)](x)[t(1953)]((f) => { + e[f] = x[f]; + }), e[t(1587)] = [], e[t(1508)] = [], e[t(1734)] = {}; + function r(f) { const b = t; let h = 0; - for (let m = 0; m < l[b(692)]; m++) - h = (h << 5) - h + l[b(2170)](m), h |= 0; - return e[b(189)][Math[b(1843)](h) % e.colors[b(692)]]; + for (let m = 0; m < f[b(1332)]; m++) + h = (h << 5) - h + f.charCodeAt(m), h |= 0; + return e[b(1445)][Math[b(2625)](h) % e[b(1445)][b(1332)]]; } - e[t(2199)] = r; - function e(l) { + e[t(2179)] = r; + function e(f) { const b = t; let h, m = null, v, k; - function I(...A) { + function E(...q) { const T = K; - if (!I[T(1220)]) return; - const R = I, P = Number(/* @__PURE__ */ new Date()), N = P - (h || P); - R[T(1371)] = N, R[T(337)] = h, R[T(260)] = P, h = P, A[0] = e[T(783)](A[0]), typeof A[0] !== T(2161) && A[T(1475)]("%O"); - let _ = 0; - A[0] = A[0][T(575)](/%([a-zA-Z%])/g, (j, F) => { - const C = T; - if (j === "%%") return "%"; - _++; - const H = e[C(2593)][F]; - if (typeof H == "function") { - const U = A[_]; - j = H[C(1994)](R, U), A[C(2605)](_, 1), _--; + if (!E.enabled) return; + const C = E, P = Number(/* @__PURE__ */ new Date()), F = P - (h || P); + C.diff = F, C.prev = h, C[T(687)] = P, h = P, q[0] = e[T(2791)](q[0]), typeof q[0] !== T(1653) && q.unshift("%O"); + let D = 0; + q[0] = q[0].replace(/%([a-zA-Z%])/g, (O, N) => { + const R = T; + if (O === "%%") return "%"; + D++; + const L = e[R(1734)][N]; + if (typeof L === R(1235)) { + const $ = q[D]; + O = L.call(C, $), q[R(2301)](D, 1), D--; } - return j; - }), e[T(760)][T(1994)](R, A), (R[T(2818)] || e[T(2818)])[T(2242)](R, A); + return O; + }), e[T(1446)].call(C, q), (C[T(1872)] || e[T(1872)]).apply(C, q); } - return I[b(2846)] = l, I[b(960)] = e.useColors(), I.color = e[b(2199)](l), I[b(243)] = s, I[b(2141)] = e[b(2141)], Object[b(1337)](I, b(1220), { enumerable: !0, configurable: !1, get: () => { - const A = b; - return m !== null ? m : (v !== e[A(2766)] && (v = e[A(2766)], k = e.enabled(l)), k); - }, set: (A) => { - m = A; - } }), typeof e[b(2636)] == "function" && e[b(2636)](I), I; + return E.namespace = f, E.useColors = e[b(375)](), E[b(354)] = e.selectColor(f), E[b(2636)] = s, E[b(525)] = e[b(525)], Object.defineProperty(E, b(975), { enumerable: !0, configurable: !1, get: () => { + const q = b; + return m !== null ? m : (v !== e.namespaces && (v = e[q(736)], k = e[q(975)](f)), k); + }, set: (q) => { + m = q; + } }), typeof e.init == "function" && e[b(943)](E), E; } - function s(l, b) { - const h = t, m = e(this[h(2846)] + (typeof b === h(420) ? ":" : b) + l); - return m.log = this[h(2818)], m; + function s(f, b) { + const h = t, m = e(this[h(2774)] + (typeof b > "u" ? ":" : b) + f); + return m[h(1872)] = this[h(1872)], m; } - function n(l) { + function n(f) { const b = t; - e[b(2852)](l), e[b(2766)] = l, e[b(1185)] = [], e.skips = []; - const h = (typeof l == "string" ? l : "").trim()[b(575)](/\s+/g, ",").split(",")[b(2145)](Boolean); + e[b(1616)](f), e[b(736)] = f, e[b(1587)] = [], e[b(1508)] = []; + const h = (typeof f === b(1653) ? f : "")[b(436)]()[b(784)](/\s+/g, ",")[b(585)](",")[b(1706)](Boolean); for (const m of h) - m[0] === "-" ? e[b(2483)].push(m.slice(1)) : e.names.push(m); + m[0] === "-" ? e[b(1508)][b(902)](m[b(2103)](1)) : e[b(1587)][b(902)](m); } - function i(l, b) { + function i(f, b) { const h = t; - let m = 0, v = 0, k = -1, I = 0; - for (; m < l.length; ) - if (v < b.length && (b[v] === l[m] || b[v] === "*")) b[v] === "*" ? (k = v, I = m, v++) : (m++, v++); - else if (k !== -1) v = k + 1, I++, m = I; + let m = 0, v = 0, k = -1, E = 0; + for (; m < f[h(1332)]; ) + if (v < b[h(1332)] && (b[v] === f[m] || b[v] === "*")) b[v] === "*" ? (k = v, E = m, v++) : (m++, v++); + else if (k !== -1) v = k + 1, E++, m = E; else return !1; - for (; v < b[h(692)] && b[v] === "*"; ) + for (; v < b[h(1332)] && b[v] === "*"; ) v++; - return v === b[h(692)]; + return v === b[h(1332)]; } function c() { - const l = t, b = [...e.names, ...e[l(2483)][l(1649)]((h) => "-" + h)][l(2137)](","); - return e[l(2157)](""), b; + const f = t, b = [...e[f(1587)], ...e[f(1508)].map((h) => "-" + h)][f(2252)](","); + return e[f(1936)](""), b; } - function u(l) { + function u(f) { const b = t; - for (const h of e[b(2483)]) - if (i(l, h)) return !1; - for (const h of e[b(1185)]) - if (i(l, h)) return !0; + for (const h of e[b(1508)]) + if (i(f, h)) return !1; + for (const h of e[b(1587)]) + if (i(f, h)) return !0; return !1; } - function d(l) { + function d(f) { const b = t; - return l instanceof Error ? l[b(837)] || l.message : l; + return f instanceof Error ? f[b(494)] || f.message : f; } - function f() { - console[t(343)]("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."); + function l() { + console.warn(t(2551)); } - return e[t(2157)](e.load()), e; + return e[t(1936)](e[t(499)]()), e; } - return Zx = o, Zx; + return Wx = o, Wx; } var $a; -function si() { +function ii() { const o = a; return $a || ($a = 1, (function(x, t) { const r = o; - t[r(760)] = s, t.save = n, t.load = i, t[r(960)] = e, t[r(2305)] = c(), t[r(2141)] = /* @__PURE__ */ (() => { + t.formatArgs = s, t[r(1616)] = n, t[r(499)] = i, t.useColors = e, t[r(2394)] = c(), t.destroy = /* @__PURE__ */ (() => { let d = !1; return () => { - const f = K; - !d && (d = !0, console[f(343)](f(682))); + !d && (d = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")); }; - })(), t[r(189)] = [r(1113), r(1188), "#0033CC", r(429), "#0066CC", r(828), r(2111), r(2243), r(809), r(918), r(1352), r(1555), r(2792), r(972), r(2229), r(358), "#3333CC", r(1444), r(2022), r(392), r(2775), r(522), r(191), r(2218), r(1681), r(2099), "#33CCCC", r(2393), r(847), r(1107), r(1206), "#6633FF", r(838), "#66CC33", r(2618), r(323), r(2546), "#9933FF", r(2236), r(1050), "#CC0000", "#CC0033", r(1970), "#CC0099", "#CC00CC", r(2672), r(2568), "#CC3333", r(962), r(2673), r(505), r(1192), "#CC6600", r(2548), "#CC9900", r(214), r(876), r(2668), r(2046), r(2235), r(1051), r(470), r(1720), r(539), r(1040), r(434), "#FF3366", r(1844), r(2853), r(790), "#FF6600", "#FF6633", r(1178), "#FF9933", r(1151), r(1840)]; + })(), t[r(1445)] = [r(2204), r(691), r(829), r(1903), r(1825), r(381), r(915), "#0099FF", r(1852), r(676), r(227), "#00CC99", r(365), r(1309), r(462), r(1874), r(424), r(2564), "#3366CC", r(1586), "#3399CC", "#3399FF", r(2146), r(1577), r(2365), r(1843), r(2376), "#33CCFF", r(2298), r(1518), "#6633CC", r(556), r(1401), r(1622), "#9900CC", "#9900FF", r(222), "#9933FF", r(1758), r(180), r(1892), r(2296), "#CC0066", r(2073), r(477), r(404), r(2085), r(1486), r(1370), r(1711), "#CC33CC", r(2889), "#CC6600", r(257), r(2007), r(290), r(1934), r(1039), r(655), r(793), "#FF0066", "#FF0099", r(2855), "#FF00FF", "#FF3300", r(578), r(2602), r(440), r(2356), "#FF33FF", r(1817), r(560), r(1184), "#FF9933", r(650), r(361)]; function e() { const d = r; - if (typeof window !== d(420) && window[d(391)] && (window[d(391)][d(612)] === d(1837) || window[d(391)][d(2288)])) return !0; - if (typeof navigator !== d(420) && navigator[d(1769)] && navigator[d(1769)][d(556)]()[d(430)](/(edge|trident)\/(\d+)/)) return !1; - let f; - return typeof document !== d(420) && document[d(1536)] && document[d(1536)].style && document[d(1536)][d(720)].WebkitAppearance || typeof window !== d(420) && window[d(1531)] && (window[d(1531)][d(1121)] || window[d(1531)][d(2840)] && window[d(1531)][d(1985)]) || typeof navigator !== d(420) && navigator[d(1769)] && (f = navigator[d(1769)][d(556)]()[d(430)](/firefox\/(\d+)/)) && parseInt(f[1], 10) >= 31 || typeof navigator !== d(420) && navigator[d(1769)] && navigator[d(1769)][d(556)]()[d(430)](/applewebkit\/(\d+)/); + if (typeof window !== d(2694) && window[d(768)] && (window[d(768)].type === "renderer" || window[d(768)][d(331)])) return !0; + if (typeof navigator < "u" && navigator[d(2069)] && navigator[d(2069)][d(2522)]()[d(2716)](/(edge|trident)\/(\d+)/)) return !1; + let l; + return typeof document < "u" && document[d(2295)] && document[d(2295)][d(2056)] && document[d(2295)].style[d(1952)] || typeof window < "u" && window[d(2455)] && (window.console[d(1634)] || window.console[d(2183)] && window[d(2455)][d(946)]) || typeof navigator !== d(2694) && navigator[d(2069)] && (l = navigator[d(2069)][d(2522)]()[d(2716)](/firefox\/(\d+)/)) && parseInt(l[1], 10) >= 31 || typeof navigator < "u" && navigator[d(2069)] && navigator.userAgent[d(2522)]()[d(2716)](/applewebkit\/(\d+)/); } function s(d) { - const f = r; - if (d[0] = (this[f(960)] ? "%c" : "") + this.namespace + (this[f(960)] ? f(1635) : " ") + d[0] + (this[f(960)] ? f(1581) : " ") + "+" + x[f(2519)][f(1617)](this[f(1371)]), !this[f(960)]) return; - const l = f(2272) + this[f(2793)]; - d[f(2605)](1, 0, l, f(2666)); + const l = r; + if (d[0] = (this[l(375)] ? "%c" : "") + this[l(2774)] + (this[l(375)] ? " %c" : " ") + d[0] + (this[l(375)] ? l(2443) : " ") + "+" + x[l(1469)][l(2886)](this[l(1189)]), !this[l(375)]) return; + const f = "color: " + this.color; + d[l(2301)](1, 0, f, "color: inherit"); let b = 0, h = 0; - d[0][f(575)](/%[a-zA-Z%]/g, (m) => { + d[0][l(784)](/%[a-zA-Z%]/g, (m) => { m !== "%%" && (b++, m === "%c" && (h = b)); - }), d.splice(h, 0, l); + }), d[l(2301)](h, 0, f); } - t[r(2818)] = console[r(2297)] || console[r(2818)] || (() => { + t[r(1872)] = console[r(2264)] || console[r(1872)] || (() => { }); function n(d) { - const f = r; + const l = r; try { - d ? t.storage[f(1598)](f(2297), d) : t[f(2305)][f(676)](f(2297)); + d ? t[l(2394)][l(1968)](l(2264), d) : t[l(2394)].removeItem(l(2264)); } catch { } } function i() { const d = r; - let f; + let l; try { - f = t[d(2305)][d(1630)](d(2297)) || t.storage[d(1630)]("DEBUG"); + l = t[d(2394)][d(647)](d(2264)) || t[d(2394)][d(647)](d(2203)); } catch { } - return !f && typeof process < "u" && d(1709) in process && (f = process[d(1709)][d(393)]), f; + return !l && typeof process !== d(2694) && d(2134) in process && (l = process[d(2134)].DEBUG), l; } function c() { try { @@ -3169,706 +3167,708 @@ function si() { } catch { } } - x[r(2519)] = ri()(t); - const { formatters: u } = x[r(2519)]; + x.exports = oi()(t); + const { formatters: u } = x.exports; u.j = function(d) { - const f = r; + const l = r; try { - return JSON[f(2625)](d); - } catch (l) { - return f(1478) + l.message; + return JSON[l(306)](d); + } catch (f) { + return l(2487) + f.message; } }; - })(lx, lx[o(2519)])), lx[o(2519)]; + })(fx, fx[o(1469)])), fx[o(1469)]; } -var ni = si(); -const zs = Hs(ni); -zs[a(2157)]("*"); -function oi(o, x) { - const t = a, r = zs(o), e = (s, n) => async function(...i) { +var ci = ii(); +const Ws = Bs(ci); +Ws[a(1936)]("*"); +function ui(o, x) { + const t = a, r = Ws(o), e = (s, n) => async function(...i) { try { await x({ level: s, messages: i }); } catch { } }; - return r[t(2818)] = e(t(2818)), r; + return r[t(1872)] = e(t(1872)), r; } -const ox = oi(a(2293), async ({ level: o, messages: x }) => { - const t = a, { mcpMesh: r } = await Promise[t(1571)]()[t(2403)](() => xu); - await r[t(1366)](t(359)).actions[t(2818)]({ level: o, messages: x }); -}); -globalThis[a(1939)] = globalThis.sdpppX2 || {}; -const Ye = globalThis[a(1939)], ii = { "preview.show": a(1034), "gateway.select_ai_service": a(600), "provider.select.title": a(2057), "provider.comfyui.description": a(2336), "provider.replicate.description": "海量模型,稳定服务", "provider.runninghub.description": a(1533), "provider.google.description": a(2584), "task.waiting_upload": a(2674), "task.creating_task": "正在创建任务...", "task.running_duration": "运行了 {{duration}} 秒,{{message}}", "task.cancelled": a(1001), "task.cancel_failed": a(820), "task.default_name": a(1326), "comfy.connect": "连接", "comfy.load_failed": a(1989), "comfy.loading": a(895), "comfy.channel_connecting": a(2701), "comfy.server_reconnecting": a(1558), "comfy.version_mismatch": a(2114), "comfy.cloud_recommend": a(1490), "comfy.your_workflows": "你的工作流", "comfy.refresh_workflows": a(553), "comfy.queue_progress": a(2691), "comfy.save": "保存", "comfy.refresh": "刷新", "comfy.stop_cancel_all": a(1896), "comfy.stop_auto_run": a(541), "comfy.start_auto_run": a(2050), "comfy.auto_run_status": a(1993), "comfy.run": "运行", "comfy.back": "返回", "comfy.uploading": a(2760), "comfy_simple.refreshing_preview": a(2788), "comfy.select_workflow": a(2699), "comfy.task.name": a(2732), "comfy.error.task_cancelled": a(1001), "comfy.task.processing_progress": a(2858), "comfy.help_tooltip": a(1613), "comfy.no_workflow_selected": a(1134), "comfy_simple.missing_url": a(250), "comfy_simple.loading_webview": a(812), "comfy_simple.http_error": a(755), "comfy_simple.wait_connect": a(2238), "comfy_simple.loading": a(877), "comfy_simple.connection_required": a(435), "comfy_simple.preview_empty": a(426), "comfy_simple.progress.idle": "空闲", "comfy_simple.auto_run": "自动", "comfy_simple.workflow_quick": "快捷", "comfy_simple.multiplier.X1": "X1", "comfy_simple.multiplier.X2": "X2", "comfy_simple.multiplier.X4": "X4", "comfy_simple.multiplier.X10": a(2863), "comfy_simple.prompt_templates.manage_tooltip": a(1128), "comfy_simple.prompt_templates.button": a(2476), "comfy_simple.prompt_templates.save_error": a(1900), "comfy_simple.prompt_templates.missing_key": a(1474), "comfy_simple.prompt_templates.missing_value": a(1928), "comfy_simple.prompt_templates.duplicate_key": a(1888), "comfy_simple.prompt_templates.save_success": a(765), "comfy_simple.prompt_templates.delete_confirm_title": a(1431), "comfy_simple.prompt_templates.delete_confirm_content": "确定要删除此模板吗?", "comfy_simple.prompt_templates.delete_success": a(2757), "comfy_simple.prompt_templates.add_title": a(603), "comfy_simple.prompt_templates.edit_title": a(237), "comfy_simple.prompt_templates.modal_title": a(1767), "comfy_simple.prompt_templates.description": a(1406), "comfy_simple.prompt_templates.add_button": a(1659), "comfy_simple.prompt_templates.name_placeholder": a(1982), "comfy_simple.prompt_templates.value_placeholder": "提示词内容", "comfy_simple.fallback.title": a(1999), "comfy_simple.fallback.button": a(1999), "comfy_simple.prompt_templates.positive_label": a(2416), "comfy_simple.prompt_templates.negative_label": "负面提示词", "comfy_simple.prompt_templates.negative_placeholder": "负面提示词内容", "comfy_simple.prompt_templates.negative_empty": a(2026), "comfy_simple.prompt_templates.default_section": a(937), "comfy_simple.prompt_templates.default_empty": a(1575), "comfy_simple.prompt_templates.default_tag": "默认", "comfy_simple.prompt_templates.custom_section": a(2613), "comfy_simple.prompt_templates.custom_empty": "还没有自定义模板。", "comfy_simple.prompt_templates.applied_success": "模板已应用。", "comfy_simple.prompt_templates.applied_failed": a(1981), "comfy_simple.prompt_templates.apply_unavailable": a(2300), "comfy_simple.prompt_templates.apply_failed_missing_binding": "无法写入{{part}}提示词:未找到对应控件。", "comfy_simple.prompt_templates.apply_failed_caller_unavailable": a(1729), "comfy_simple.prompt_templates.apply_failed_set_error": "无法写入{{part}}提示词,请稍后重试。", "common.delete": "删除", "comfy_simple.preview_click_to_send": a(2550), "comfy_simple.workflow_select.empty": a(198), "comfy_simple.workflow_select.select": "选择", "comfy_simple.workflow_select.selected": a(1317), "comfy_simple.workflow_select.current": "当前", "comfy_simple.workflow_select.load_failed": a(1947), "comfy_simple.workflow_select.members_only": "(会员专属)", "boundary.title": "输入设置", "boundary.tooltip": a(1239), "boundary.current_canvas": a(1651), "boundary.current_layer": "当前图层", "boundary.current_selection": "当前选区", "boundary.set_as_canvas": a(1721), "boundary.set_as_layer": a(464), "boundary.set_as_selection": a(2803), "http.404": a(1114), "http.401": a(570), "http.403": "禁止访问 (403)", "http.408": a(471), "http.500": a(1773), "http.501": a(2695), "http.502": a(890), "http.503": a(1510), "http.504": a(255), "http.unknown": "未知错误({{code}})", "runninghub.get_apikey": a(1291), "runninghub.apikey_placeholder": a(194), "runninghub.app_id": a(200), "runninghub.webapp_id_placeholder": a(1012), "runninghub.open_app": a(2287), "runninghub.execute": "执行", "runninghub.running": "运行中...", "runninghub.rh_coins": a(2869), "runninghub.current_tasks": a(2733), "runninghub.help_tooltip": a(1613), "runninghub.stop_all": "停止全部", "runninghub.status.waiting": a(2528), "runninghub.status.running": a(2134), "runninghub.status.failed": a(1029), "runninghub.status.success": a(2557), "image.auto_refetch": "自动从PS重新获取", "local_resource.selection.images": "图片", "runninghub.error.get_result_failed": a(879), "runninghub.error.task_failed": a(1155), "runninghub.error.task_incomplete": a(218), "runninghub.error.account_status_http": a(701), "runninghub.error.account_status_reason_unknown": a(2292), "runninghub.error.account_status_failed": a(1421), "runninghub.error.form_data_http": a(2876), "runninghub.error.form_data_reason_unknown": a(1428), "runninghub.error.form_data_failed": a(1625), "runninghub.error.node_info_missing": a(2209), "runninghub.error.run_http": a(2533), "runninghub.error.run_reason_default": a(235), "runninghub.error.run_failed": a(1551), "runninghub.error.status_http": a(2400), "runninghub.error.status_reason_unknown": "获取任务状态失败", "runninghub.error.status_failed": "status API 调用失败 - {{reason}}", "runninghub.error.outputs_http": "outputs API 调用失败 - HTTP 错误,状态: {{status}}", "runninghub.error.outputs_failed": a(362), "runninghub.task.title": a(2681), "runninghub.error.upload_http": "uploadImage API 调用失败 - HTTP 错误,状态: {{status}}", "runninghub.error.upload_reason_unknown": a(2315), "runninghub.error.upload_failed": "uploadImage API 调用失败 - {{reason}}", "customapi.error.no_image_returned": "未返回图片", "customapi.error.openai_api": a(1949), "customapi.error.input_required": a(1656), "customapi.error.generation_failed": a(2654), "customapi.task.name.google": a(2333), "customapi.task.name.openai": a(1322), "customapi.error.unsupported_image_input": "不支持的图像输入类型", "replicate.get_apikey": a(749), "replicate.apikey_placeholder": "请输入您的Replicate API Key", "replicate.execute": "执行", "replicate.model_placeholder": a(1500), "replicate.help_tooltip": "使用教程", "replicate.loading": a(383), "replicate.running": a(2515), "replicate.stop": "停止", "liblib.get_apikey": "如何获取APIKey和API Secret", "liblib.execute": "执行", "common.close": "关闭", "common.save": "保存", "common.save_and_run": a(2603), "common.loading": a(383), "common.error": "错误", "common.error.unknown": a(2741), "common.error.task_creation_aborted": a(535), "common.error.status_check_aborted": "状态检查已中止", "common.error.result_fetch_aborted": a(1378), "common.error.upload_aborted": a(1465), "common.success": "成功", "common.failed": "失败", "common.generating": a(2304), "common.cancel": "取消", "common.confirm": "确认", "common.options": "选项", "common.options_separator": a(1200), "upload_pass.error.unsupported_type": a(1234), "upload_pass.error.uploader_missing": a(830), webviewInForeground: a(1544), webviewInForeground2: a(2337), "auth.login_success": "登录成功", "auth.username_label": a(780), "auth.email_label": a(480), "auth.logout": a(1081), "auth.login_required": a(2875), "image.send.select_position": a(2731), "image.send.sending": a(1854), "image.layer.new": a(622), "image.layer.current": a(939), "image.layer.fit_to_current": a(1460), "image.layer.fit_to_selection": "适配至选区", "image.layer.fit_to_canvas": "适配至画布", "image.shortcut_auth_required": "快捷键选图功能仅登陆后可用", "image.shortcut_focus_required": a(2607), "image.get.select_image": a(2214), "image.get.entire_canvas": a(1651), "image.get.canvas": "画布", "image.get.current_layer": a(939), "image.get.current_layer_bounds": "仅当前图层范围", "image.get.selection_bounds": a(1963), "image.get.canvas_bounds": a(1094), "image.crop_by_selection": a(2245), "image.limit_size": a(1137), "image.crop.none": a(512), "image.crop.inpaint": a(406), "image.crop.outpaint": a(529), "image.send_all": a(1880), "image.save_all": "保存所有", "image.save_current": a(833), "image.delete_current": a(1795), "image.more_actions": a(2402), "image.jump_to_last": a(407), "image.clear_all": "清空所有", "image.send_to_ps": a(519), "image.download": "下载", "image.copy": "复制", "image.sending": a(816), "image.sending_all": a(1975), "mask.get.select_mask": a(2331), "mask.selection": "选区", "mask.current_layer_bounds": "当前图层范围", "mask.all": "全部", "mask.selection_exclude": a(1118), "mask.current_layer_exclude": a(2826), "mask.empty": "空", "widgetable.photoshop.deprecated_node": a(1663), "work_boundary.error.empty_selection_mask": a(355), "work_boundary.error.primary_resource_missing": a(2807), "work_boundary.error.mask_resource_missing": "缺少遮罩资源", "work_boundary.error.mask_apply_empty": a(894), "document {{0}} not found": a(2341), "create document for preview": a(549), "resize document for preview": "调整预览文档尺寸", "create document for sent images": a(1518), "show sent images": "显示发送的图片", "create layer failed": a(1727), "layer not found {{0}}": a(1583), "layer not found: {{0}}": a(1583), "layer {{0}} is not a group": a(577), "no linked layer for {{0}}": a(998), "no first related layer in {{0}}": "组 {{0}} 中没有第一个相关图层", "merge group failed": a(1295), "get content of layer {{0}}": a(1101), "get layer info": a(2653), "get_layer_info: layer_identify required": a(2086), "get pixel of {{0}} failed": a(1189), "get selection failed": a(2583), "invalid name: {{0}}": a(1276), "desire bounds is null": a(1700), "intersect or scaledDesire is null": "交集或缩放目标为空", 'only layer kind "TEXT" is supported, invalid layer: {{0}}': a(425), "select layer": a(2301), "run Photoshop Action": a(321), "Action {{0}} not found": a(298), "Action set {{0}} not found": a(805), "set text to layer": "设置图层的文本", "ComfyManager not found, cannot reboot": a(703), "Failed to reboot ComfyUI": a(2311), "image.upload.from_canvas": "画布", "image.upload.from_curlayer": a(939), "image.upload.from_selection": "选区", "image.upload.from_harddisk": "磁盘", "image.upload.clear": "清空", "image.upload.uploading": "上传中,如果图片过大,可能会卡顿...", "image.upload.syncing": a(1375), "image.upload.no_images": a(2796), "image.upload.error": a(461), "image.upload.tooltip.more_options_hint": a(1409), "image.upload.tooltip.alt.crop": a(2224), "image.upload.tooltip.alt.reverse": a(1564), "image.upload.tooltip.image.canvas": a(2436), "image.upload.tooltip.image.curlayer": a(911), "image.upload.tooltip.mask.curlayer": a(2261), "image.upload.tooltip.mask.selection": a(1106), "image.upload.tooltip.mask.canvas": "从 画布 获取遮罩", "image.upload.tooltip.cut_action": a(1032), "image.upload.tooltip.scan_action": a(1342), "image.upload.tooltip.autosync.on": a(1358), "image.upload.tooltip.autosync.off": a(2594), "image.upload.tooltip.sync_action": a(2309), "image.upload.autosync.fetching": "自动获取中…", "image.upload.autosync.status.enabled": "自动同步中…", "image.upload.autosync.status.disabled": "自动同步未打开", "image.upload.tooltip.current.canvas": "当前选项:画布", "image.upload.tooltip.current.layer": a(329), "image.upload.tooltip.current.layer_named": a(980), "image.upload.tooltip.current.file": a(441), "image.upload.retry": "重试", "image.pack.local.button": a(591), "image.pack.local.empty": a(2796), "image.auto_send_enabled": a(559), "image.auto_send_disabled": a(1938), "image.upload.primary.auto": a(202), "image.upload.primary.manual": a(2635), "image.upload.primary.hint": "该节点默认继承当前图层与遮罩", "image.upload.primary.cut": "裁剪", "image.upload.primary.scan": "扫描", "image.upload.primary.hint.line1": a(460), "image.upload.primary.hint.line2": "主图", "workflow.output.destination.title": a(1913), "workflow.output.destination.canvas": "全图", "image.upload.primary.advanced": a(1535), "image.upload.primary.advanced.modify": "修改", "image.upload.primary.advanced.reset": "重置", "image.upload.primary.advanced.local_file": a(1324), "image.upload.primary.advanced.content.canvas": "画布", "image.upload.primary.advanced.content.curlayer": a(939), "image.upload.primary.advanced.content.selection": "选区", "image.upload.primary.advanced.boundary.canvas": a(934), "image.upload.primary.advanced.boundary.curlayer": "当前图层边界", "image.upload.primary.advanced.boundary.selection": a(2821), "image.upload.primary.advanced.boundary.primary": "主图边界", "image.upload.source.file.tooltip": "从磁盘上传", "image.upload.mode.file.label": "文件", "image.upload.mode.layer.label": "图层", "image.upload.mode.canvas.label": "画布", "image.upload.source.layer.tooltip": a(1287), "image.upload.source.canvas.tooltip": a(1664), "image.upload.dropHint": a(1543), "image.upload.tooltip.clear_action": a(1380), "image.upload.status.layer.short_named": a(1860), "image.upload.status.layer.short": "图层", "image.upload.status.file.short": a(1794), "image.upload.status.canvas.short": "画布", "image.upload.status.file.active": a(341), "image.upload.status.file.resetHint": a(601), "image.upload.status.mask.resetHint": "点击恢复默认遮罩", "image.upload.status.mask.modified": a(2353), "image.upload.status.boundary.resetHint": a(2882), "image.upload.status.boundary.modified": a(2136), "image.upload.status.boundary.docMismatch": a(1747), "image.upload.mask.button": a(2616), "image.upload.mask.selection": a(2616), "image.upload.mask.layer": "图层遮罩", "image.upload.remove_slot": a(2572), "image.upload.add_slot": a(1624), "video.local.button": "本地视频", "video.local.empty": a(1274), "video.local.remove": a(798), "source.source": "来源", "source.content": "内容", "source.boundary": "范围", "source.mask": "遮罩", "source.disk": "磁盘", "source.remote": "远端", "source.unknown": "未知", "source.ps_image": a(364), "source.ps_mask": a(300), "source.canvas": "整个画布", "source.current_layer": a(939), "source.selection": "选区", "source.quality_percent": a(1313), "source.crop.positive": "正向裁剪", "source.crop.negative": "反向裁剪", "source.reverse": "反转", "send_images.create_document": "创建文档", "send_images.create_document_failed": a(1448), "photoshop.no_active_document": "没有活动文档", "photoshop.rectangle_coordinates_required": a(2232), "photoshop.create_guide_frame": "创建参考线框架", "photoshop.clear_guide_frame": a(1865), "photoshop.invalid_action": a(382), "photoshop.file_not_found": "文件未找到: {{path}}", "photoshop.failed_to_open_file_as_document": a(654), "photoshop.invalid_boundary": a(892), "photoshop.failed_to_open_image_file": a(1749), "photoshop.open_images_from_file": "从文件打开图像", "photoshop.failed_to_create_document_from_file": "无法从文件创建文档", "google.field.image_input": a(2832), "google.field.prompt": a(2476), "google.field.batch_count": a(2202), "google.field.images_per_batch": a(475), "google.status.success": "成功", "google.status.failed": "失败", "google.status.generating": a(1473), "google.apikey_placeholder": a(1425), "google.baseurl_placeholder": a(997), "google.get_apikey": a(1694), "google.help_tooltip": "Google Gemini 图像生成器", "google.model_name": a(1586), "google.model_label": "模型", "google.model_placeholder": a(258), "google.stop": "停止", "google.loading": a(383), "google.generating": a(2304), "google.generate": "生成", "image.auto_toggle": "自动", "image.import_as_smartobject": "作为智能对象导入", "image.import_as_newdoc": "作为新文档导入", "image.boundary": "边界", "image.import_tip": "按住 Shift 键以新文档方式导入", "auth.guest_login_success": "访客登录成功", "boundary.canvas": "画布", "boundary.select_boundary": "选择边界", "boundary.selection": "选区", "boundary.max_size": "尺寸限制 (px)", "boundary.max_size_error": a(2423), "boundary.max_size_hint": a(2119), "boundary.max_size_placeholder": a(2119), "boundary.no_limit": "不限", "boundary.image_quality": "图像质量 (%)", "boundary.image_quality_required": a(2508), "boundary.image_quality_range": a(976), "boundary.preview_main_image": a(1272), "boundary.preview_select": a(2338), "boundary.preview_alt": a(977), "boundary.preview_placeholder": "点击使用当前选区", "boundary.settings": a(2379), "convert widget {0} failed:": "控件 {0} 转换失败:", "document {0} not found": a(2617), "image.document.new": "新建文档", "image.layer.smart_object": a(2122), "layer not found {0}": a(2193), "photoshop.invalid_boundary_type": a(477), "photoshop.no_active_layer": a(650), "dialog.image_source.title": "选择图像来源", "dialog.image_source.primary_canvas": a(184), "dialog.image_source.primary_curlayer": a(2154), "dialog.image_source.canvas_canvas": a(2576), "dialog.image_source.canvas_curlayer": "以画布边界获取当前图层", "dialog.image_source.curlayer_canvas": "以当前图层边界获取画布", "dialog.image_source.curlayer_curlayer": a(1710), "dialog.image_source.local_file": a(1324), "dialog.simple_source.title": a(2867), "dialog.simple_source.canvas": "画布", "dialog.simple_source.current_layer": a(939), "dialog.simple_source.local_file": "选择文件", "dialog.simple_source.no_active_layer": a(1738), "dialog.simple_source.pick_error": a(1910) }, ci = { "preview.show": "Show Preview ({{count}} images)", "gateway.select_ai_service": a(1847), "provider.select.title": "Select AI Service Provider", "provider.comfyui.description": a(2512), "provider.replicate.description": "Cloud-based model service platform", "provider.runninghub.description": a(331), "provider.google.description": a(514), "task.waiting_upload": a(256), "task.creating_task": a(313), "task.running_duration": a(1193), "task.cancelled": a(2489), "task.cancel_failed": "Task cancel failed: {{error}}", "task.default_name": "AI Generation Task", "comfy.connect": a(211), "comfy.load_failed": a(2283), "comfy.loading": a(2523), "comfy.channel_connecting": a(1519), "comfy.server_reconnecting": a(534), "comfy.version_mismatch": a(2207), "comfy.cloud_recommend": a(1701), "comfy.your_workflows": "Your Workflows", "comfy.refresh_workflows": a(2601), "comfy.queue_progress": a(1665), "comfy.save": a(1370), "comfy.refresh": a(472), "comfy.stop_cancel_all": "Stop and cancel all", "comfy.stop_auto_run": "Stop auto run", "comfy.start_auto_run": a(1125), "comfy.auto_run_status": "Auto-run workflow after changes...", "comfy.run": "Run", "comfy.back": "Back", "comfy.uploading": a(846), "comfy_simple.refreshing_preview": a(1309), "comfy.select_workflow": a(2522), "comfy.task.name": a(2732), "comfy.error.task_cancelled": a(2489), "comfy.task.processing_progress": a(2855), "comfy.help_tooltip": a(767), "comfy.no_workflow_selected": "No workflow selected", "comfy_simple.missing_url": "ComfyUI connection not configured yet. Please set the address first.", "comfy_simple.loading_webview": a(1696), "comfy_simple.http_error": a(2058), "comfy_simple.wait_connect": a(1477), "comfy_simple.loading": a(1479), "comfy_simple.connection_required": a(2278), "comfy_simple.preview_empty": "No preview content yet", "comfy_simple.progress.idle": a(955), "comfy_simple.auto_run": a(2408), "comfy_simple.workflow_quick": a(1685), "comfy_simple.multiplier.X1": "X1", "comfy_simple.multiplier.X2": "X2", "comfy_simple.multiplier.X4": "X4", "comfy_simple.multiplier.X10": a(2863), "comfy_simple.prompt_templates.manage_tooltip": a(1669), "comfy_simple.prompt_templates.button": a(2401), "comfy_simple.prompt_templates.save_error": a(1882), "comfy_simple.prompt_templates.missing_key": a(1998), "comfy_simple.prompt_templates.missing_value": a(2397), "comfy_simple.prompt_templates.duplicate_key": "Template name already exists.", "comfy_simple.prompt_templates.save_success": "Template saved.", "comfy_simple.prompt_templates.delete_confirm_title": a(2176), "comfy_simple.prompt_templates.delete_confirm_content": "Are you sure you want to delete this template?", "comfy_simple.prompt_templates.delete_success": a(1634), "comfy_simple.prompt_templates.add_title": a(1310), "comfy_simple.prompt_templates.edit_title": "Edit Template", "comfy_simple.prompt_templates.modal_title": a(2472), "comfy_simple.prompt_templates.description": a(2643), "comfy_simple.prompt_templates.add_button": a(1818), "comfy_simple.prompt_templates.name_placeholder": "Template name", "comfy_simple.prompt_templates.value_placeholder": a(445), "comfy_simple.fallback.title": a(2084), "comfy_simple.fallback.button": a(2084), "comfy_simple.prompt_templates.positive_label": a(523), "comfy_simple.prompt_templates.negative_label": a(868), "comfy_simple.prompt_templates.negative_placeholder": a(1596), "comfy_simple.prompt_templates.negative_empty": a(2317), "comfy_simple.prompt_templates.default_section": "Default Templates", "comfy_simple.prompt_templates.default_empty": "No default templates available.", "comfy_simple.prompt_templates.default_tag": a(1513), "comfy_simple.prompt_templates.custom_section": a(2382), "comfy_simple.prompt_templates.custom_empty": "No custom templates yet.", "comfy_simple.prompt_templates.applied_success": a(1714), "comfy_simple.prompt_templates.applied_failed": "Failed to apply template.", "comfy_simple.prompt_templates.apply_unavailable": "Applying templates is unavailable right now.", "comfy_simple.prompt_templates.apply_failed_missing_binding": a(2765), "comfy_simple.prompt_templates.apply_failed_caller_unavailable": a(1674), "comfy_simple.prompt_templates.apply_failed_set_error": a(606), "common.delete": a(700), "comfy_simple.preview_click_to_send": "Click to send (Shift-click creates new document)", "comfy_simple.workflow_select.empty": a(1174), "comfy_simple.workflow_select.select": a(1774), "comfy_simple.workflow_select.selected": a(858), "comfy_simple.workflow_select.current": a(1487), "comfy_simple.workflow_select.load_failed": a(2009), "comfy_simple.workflow_select.members_only": " (Members only)", "boundary.title": a(2018), "boundary.tooltip": "Area AI reads from; controls max image size", "boundary.current_canvas": a(1330), "boundary.current_layer": "Current Layer", "boundary.current_selection": "Current Selection", "boundary.set_as_canvas": "Set as Canvas", "boundary.set_as_layer": a(560), "boundary.set_as_selection": "Set as Current Selection", "http.404": "SDPPP may not be installed or version mismatch (404)", "http.401": a(2669), "http.403": a(387), "http.408": "Request timeout (408)", "http.500": a(2025), "http.501": a(2225), "http.502": a(1942), "http.503": a(2428), "http.504": a(631), "http.unknown": a(228), "runninghub.get_apikey": "Click to get RunningHub APIKey", "runninghub.apikey_placeholder": a(2078), "runninghub.app_id": "App ID:", "runninghub.webapp_id_placeholder": a(2325), "runninghub.open_app": a(500), "runninghub.execute": a(1988), "runninghub.running": a(691), "runninghub.rh_coins": a(2772), "runninghub.current_tasks": a(2517), "runninghub.help_tooltip": a(767), "runninghub.stop_all": "Stop all", "runninghub.status.waiting": a(1399), "runninghub.status.running": a(1367), "runninghub.status.failed": a(2083), "runninghub.status.success": a(1850), "image.auto_refetch": "Auto repick from PS", "local_resource.selection.images": "Images", "runninghub.error.get_result_failed": a(2265), "runninghub.error.task_failed": "Task execution failed: {{error}}", "runninghub.error.task_incomplete": "Task incomplete, current status: {{status}}", "runninghub.error.account_status_http": a(1639), "runninghub.error.account_status_reason_unknown": a(1813), "runninghub.error.account_status_failed": a(987), "runninghub.error.form_data_http": "getNodes API failed - HTTP error! status: {{status}}", "runninghub.error.form_data_reason_unknown": "Failed to fetch form data", "runninghub.error.form_data_failed": a(2415), "runninghub.error.node_info_missing": a(1603), "runninghub.error.run_http": "run API failed - HTTP error! status: {{status}}", "runninghub.error.run_reason_default": "Task execution failed", "runninghub.error.run_failed": a(463), "runninghub.error.status_http": a(2426), "runninghub.error.status_reason_unknown": a(626), "runninghub.error.status_failed": a(2116), "runninghub.error.outputs_http": a(573), "runninghub.error.outputs_failed": a(759), "runninghub.task.title": a(2681), "runninghub.error.upload_http": a(1755), "runninghub.error.upload_reason_unknown": a(1734), "runninghub.error.upload_failed": a(785), "customapi.error.no_image_returned": a(1828), "customapi.error.openai_api": "OpenAI API error", "customapi.error.input_required": a(1105), "customapi.error.generation_failed": "Generation failed", "customapi.task.name.google": a(784), "customapi.task.name.openai": "OpenAI - Image Edit", "customapi.error.unsupported_image_input": "Unsupported image input type", "replicate.get_apikey": a(1316), "replicate.apikey_placeholder": a(2220), "replicate.execute": a(1988), "replicate.model_placeholder": a(935), "replicate.help_tooltip": a(767), "replicate.loading": a(1950), "replicate.running": "Running...", "replicate.stop": "Stop", "liblib.get_apikey": a(418), "liblib.execute": a(1988), "common.close": a(2810), "common.save": a(1370), "common.save_and_run": a(465), "common.loading": a(1950), "common.error": a(677), "common.error.unknown": a(486), "common.error.task_creation_aborted": a(1893), "common.error.status_check_aborted": a(2834), "common.error.result_fetch_aborted": "Result fetch aborted", "common.error.upload_aborted": "Upload aborted", "common.success": a(1850), "common.failed": "Failed", "common.generating": a(824), "common.cancel": a(1862), "common.confirm": a(517), "common.options": a(1540), "common.options_separator": a(390), "upload_pass.error.unsupported_type": a(1580), "upload_pass.error.uploader_missing": a(1825), webviewInForeground: a(2541), webviewInForeground2: a(810), "auth.login_success": a(818), "auth.username_label": a(2090), "auth.email_label": "Email: {{email}}", "auth.logout": a(1468), "auth.login_required": a(1599), "image.send.select_position": a(1376), "image.send.sending": "Sending image...", "image.layer.new": a(1806), "image.layer.current": "Current Layer", "image.layer.fit_to_current": a(2262), "image.layer.fit_to_selection": a(862), "image.layer.fit_to_canvas": "Fit to canvas", "image.shortcut_auth_required": "Shortcut selection feature requires login", "image.shortcut_focus_required": a(1226), "image.get.select_image": a(2629), "image.get.entire_canvas": a(1330), "image.get.canvas": "Canvas", "image.get.current_layer": "Current Layer", "image.get.current_layer_bounds": a(2037), "image.get.selection_bounds": a(1644), "image.get.canvas_bounds": "Canvas bounds", "image.crop_by_selection": a(2501), "image.limit_size": a(1297), "image.crop.none": a(2185), "image.crop.inpaint": a(1166), "image.crop.outpaint": a(1179), "image.send_all": a(272), "image.save_all": a(2612), "image.save_current": "Save current", "image.delete_current": a(195), "image.more_actions": a(1615), "image.jump_to_last": a(394), "image.clear_all": a(1277), "image.send_to_ps": a(1722), "image.download": a(693), "image.copy": "Copy", "image.sending": a(1616), "image.sending_all": a(273), "mask.get.select_mask": "Please select the mask to get", "mask.selection": a(2175), "mask.current_layer_bounds": "Current layer bounds", "mask.all": a(719), "mask.selection_exclude": a(1340), "mask.current_layer_exclude": a(386), "mask.empty": a(2317), "widgetable.photoshop.deprecated_node": a(2581), "work_boundary.error.empty_selection_mask": a(1379), "work_boundary.error.primary_resource_missing": a(2457), "work_boundary.error.mask_resource_missing": a(2768), "work_boundary.error.mask_apply_empty": "Mask apply returned empty resource", "document {{0}} not found": a(802), "create document for preview": a(2289), "resize document for preview": a(483), "create document for sent images": a(1158), "show sent images": a(1233), "create layer failed": a(497), "layer not found {{0}}": a(2411), "layer not found: {{0}}": "Layer not found: {{0}}", "layer {{0}} is not a group": a(958), "no linked layer for {{0}}": "No linked layer for {{0}}", "no first related layer in {{0}}": a(634), "merge group failed": a(567), "get content of layer {{0}}": a(1252), "get layer info": "Get layer info", "get_layer_info: layer_identify required": "get_layer_info requires layer_identify", "get pixel of {{0}} failed": a(624), "get selection failed": "Get selection failed", "invalid name: {{0}}": "Invalid name: {{0}}", "desire bounds is null": "Desire bounds is null", "intersect or scaledDesire is null": "Intersect or scaledDesire is null", 'only layer kind "TEXT" is supported, invalid layer: {{0}}': 'Only layer kind "TEXT" is supported, invalid layer: {{0}}', "select layer": a(2532), "run Photoshop Action": a(2029), "Action {{0}} not found": "Action {{0}} was not found", "Action set {{0}} not found": a(801), "set text to layer": a(689), "ComfyManager not found, cannot reboot": a(2504), "Failed to reboot ComfyUI": a(641), "image.upload.from_canvas": a(2004), "image.upload.from_curlayer": "Current Layer", "image.upload.from_selection": a(2175), "image.upload.from_harddisk": a(1678), "image.upload.clear": a(636), "image.upload.uploading": a(1814), "image.upload.syncing": a(2567), "image.upload.no_images": "No images", "image.upload.error": a(2872), "image.upload.tooltip.alt.crop": a(1047), "image.upload.tooltip.alt.reverse": a(929), "image.upload.tooltip.image.canvas": "Get image from Canvas", "image.upload.tooltip.image.curlayer": a(320), "image.upload.tooltip.mask.canvas": a(1807), "image.upload.tooltip.mask.curlayer": a(276), "image.upload.tooltip.mask.selection": a(683), "image.upload.tooltip.cut_action": a(1680), "image.upload.tooltip.scan_action": a(219), "image.upload.tooltip.autosync.on": a(1731), "image.upload.tooltip.autosync.off": a(793), "image.upload.tooltip.sync_action": a(2463), "image.upload.tooltip.more_options_hint": a(1074), "image.upload.tooltip.current.canvas": a(2100), "image.upload.tooltip.current.layer": a(2399), "image.upload.tooltip.current.layer_named": a(533), "image.upload.tooltip.current.file": a(2270), "image.upload.autosync.fetching": "Auto fetching…", "image.upload.autosync.status.enabled": "Auto sync in progress…", "image.upload.autosync.status.disabled": "Auto sync is off", "image.upload.retry": a(2521), "image.pack.local.button": a(1190), "image.pack.local.empty": "No images yet", "image.auto_send_enabled": a(503), "image.auto_send_disabled": "Auto send disabled", "image.upload.primary.auto": a(352), "image.upload.primary.manual": a(1660), "image.upload.primary.cut": a(2267), "image.upload.primary.scan": a(794), "image.upload.primary.hint": "This node defaults to current layer + mask", "image.upload.primary.hint.line1": a(207), "image.upload.primary.hint.line2": a(2815), "workflow.output.destination.title": a(1044), "workflow.output.destination.canvas": a(1831), "image.upload.primary.advanced": a(1546), "image.upload.primary.advanced.modify": a(1974), "image.upload.primary.advanced.reset": "Reset", "image.upload.primary.advanced.local_file": a(602), "image.upload.primary.advanced.content.canvas": a(2004), "image.upload.primary.advanced.content.curlayer": a(1891), "image.upload.primary.advanced.content.selection": a(2175), "image.upload.primary.advanced.boundary.canvas": a(415), "image.upload.primary.advanced.boundary.curlayer": "Current layer boundary", "image.upload.primary.advanced.boundary.selection": a(741), "image.upload.primary.advanced.boundary.primary": a(507), "image.upload.mode.file.label": "File", "image.upload.mode.layer.label": a(530), "image.upload.mode.canvas.label": a(2004), "image.upload.source.file.tooltip": "Upload from disk", "image.upload.source.layer.tooltip": a(647), "image.upload.source.canvas.tooltip": "Use entire canvas", "image.upload.dropHint": a(2627), "image.upload.tooltip.clear_action": a(2714), "image.upload.status.layer.short_named": a(2178), "image.upload.status.layer.short": a(530), "image.upload.status.file.short": "Local file", "image.upload.status.canvas.short": a(2004), "image.upload.status.file.active": a(2850), "image.upload.status.file.resetHint": a(825), "image.upload.status.mask.resetHint": "Click to restore default mask", "image.upload.status.mask.modified": a(933), "image.upload.status.boundary.resetHint": a(1706), "image.upload.status.boundary.modified": a(1167), "image.upload.status.boundary.docMismatch": "Not current document", "image.upload.mask.button": a(232), "image.upload.mask.selection": a(232), "image.upload.mask.layer": a(1746), "image.upload.remove_slot": a(1877), "image.upload.add_slot": a(2658), "video.local.button": "Local video", "video.local.empty": a(173), "video.local.remove": "Remove video", "source.source": a(411), "source.content": a(1048), "source.boundary": "Bounds", "source.mask": "Mask", "source.disk": "Disk", "source.remote": a(409), "source.unknown": a(1502), "source.ps_image": "PS", "source.ps_mask": "PS", "source.canvas": a(2004), "source.current_layer": a(2192), "source.selection": a(2175), "source.quality_percent": a(1208), "source.crop.positive": a(2198), "source.crop.negative": a(2774), "source.reverse": a(2845), "send_images.create_document": a(2034), "send_images.create_document_failed": "Create document failed", "photoshop.no_active_document": a(1116), "photoshop.rectangle_coordinates_required": "Rectangle coordinates required for create action", "photoshop.create_guide_frame": a(317), "photoshop.clear_guide_frame": a(941), "photoshop.invalid_action": "Invalid action: {{action}}", "photoshop.file_not_found": a(1652), "photoshop.failed_to_open_file_as_document": a(222), "photoshop.invalid_boundary": "Invalid boundary: left must be less than right, top must be less than bottom", "photoshop.failed_to_open_image_file": a(2486), "photoshop.open_images_from_file": a(1042), "photoshop.failed_to_create_document_from_file": a(829), "google.field.image_input": a(1829), "google.field.prompt": "Prompt", "google.field.batch_count": a(2856), "google.field.images_per_batch": "Images Per Batch", "google.status.success": "Success", "google.status.failed": a(2083), "google.status.generating": a(2274), "google.apikey_placeholder": a(2431), "google.get_apikey": "Get API Key", "google.baseurl_placeholder": a(1646), "google.help_tooltip": "Google Gemini Image Generator", "google.model_name": "Gemini 2.5 Flash Image", "google.model_label": a(1820), "google.model_placeholder": a(1014), "google.stop": a(912), "google.loading": "Loading...", "google.generating": "Generating...", "google.generate": "Generate", "image.auto_toggle": a(249), "image.import_as_smartobject": "Import as Smart Object", "image.import_as_newdoc": a(314), "image.boundary": a(797), "image.import_tip": a(1363), "auth.guest_login_success": a(789), "boundary.canvas": a(2004), "boundary.select_boundary": a(2809), "boundary.selection": a(2175), "boundary.max_size": a(1173), "boundary.max_size_error": a(1328), "boundary.max_size_hint": a(1516), "boundary.max_size_placeholder": a(1516), "boundary.no_limit": a(852), "boundary.image_quality": "Image quality (%)", "boundary.image_quality_required": "Enter a quality percentage", "boundary.image_quality_range": a(1788), "boundary.preview_main_image": a(2857), "boundary.preview_select": a(1426), "boundary.preview_alt": a(1080), "boundary.preview_placeholder": a(2552), "boundary.settings": "Adjust input settings", "convert widget {0} failed:": "Failed to convert widget {0}:", "document {0} not found": a(335), "image.document.new": a(340), "image.layer.smart_object": a(492), "layer not found {0}": a(1418), "photoshop.invalid_boundary_type": a(2439), "photoshop.no_active_layer": a(1398), "dialog.image_source.title": a(989), "dialog.image_source.primary_canvas": "Fetch canvas with primary boundary", "dialog.image_source.primary_curlayer": a(2070), "dialog.image_source.canvas_canvas": a(587), "dialog.image_source.canvas_curlayer": a(504), "dialog.image_source.curlayer_canvas": "Fetch canvas with current-layer boundary", "dialog.image_source.curlayer_curlayer": a(2346), "dialog.image_source.local_file": a(1438), "dialog.simple_source.title": "Select Source", "dialog.simple_source.canvas": a(2004), "dialog.simple_source.current_layer": "Current Layer", "dialog.simple_source.local_file": "Choose File", "dialog.simple_source.no_active_layer": a(2721), "dialog.simple_source.pick_error": a(1677) }, b0 = (o) => typeof o === a(2161), Je = () => { +const ox = ui(a(2058), async ({ level: o, messages: x }) => { + const t = a, { mcpMesh: r } = await Promise[t(1635)]()[t(723)](() => ru); + await r[t(1234)](t(999)).actions[t(1872)]({ level: o, messages: x }); +}), di = { "preview.show": a(865), "gateway.select_ai_service": a(922), "provider.select.title": a(363), "provider.comfyui.description": a(343), "provider.replicate.description": a(908), "provider.runninghub.description": "模型物美价廉,海量社区应用", "provider.google.description": a(1125), "task.waiting_upload": a(2326), "task.creating_task": a(697), "task.running_duration": "运行了 {{duration}} 秒,{{message}}", "task.cancelled": a(2271), "task.cancel_failed": a(1270), "task.default_name": a(1916), "comfy.connect": "连接", "comfy.load_failed": a(2266), "comfy.loading": a(859), "comfy.channel_connecting": a(1103), "comfy.server_reconnecting": "ComfyUI服务器重连中", "comfy.version_mismatch": a(929), "comfy.cloud_recommend": a(1693), "comfy.your_workflows": a(1494), "comfy.refresh_workflows": a(2367), "comfy.queue_progress": a(1932), "comfy.save": "保存", "comfy.refresh": "刷新", "comfy.stop_cancel_all": a(458), "comfy.stop_auto_run": a(2294), "comfy.start_auto_run": a(2504), "comfy.auto_run_status": a(1686), "comfy.run": "运行", "comfy.back": "返回", "comfy.uploading": a(2097), "comfy_simple.refreshing_preview": a(1373), "comfy.select_workflow": a(2331), "comfy.task.name": "ComfyUI - {{workflowName}}", "comfy.error.task_cancelled": "任务已取消", "comfy.task.processing_progress": a(207), "comfy.help_tooltip": a(373), "comfy.no_workflow_selected": a(1222), "comfy_simple.missing_url": a(2022), "comfy_simple.loading_webview": a(2142), "comfy_simple.http_error": a(726), "comfy_simple.wait_connect": a(1062), "comfy_simple.loading": a(246), "comfy_simple.connection_required": a(497), "comfy_simple.preview_empty": "暂无预览内容", "comfy_simple.progress.idle": "空闲", "comfy_simple.auto_run": "自动", "comfy_simple.workflow_quick": "快捷", "comfy_simple.multiplier.X1": "X1", "comfy_simple.multiplier.X2": "X2", "comfy_simple.multiplier.X4": "X4", "comfy_simple.multiplier.X10": "X10", "comfy_simple.prompt_templates.manage_tooltip": "管理可复用的提示词模板", "comfy_simple.prompt_templates.button": a(1532), "comfy_simple.prompt_templates.save_error": a(318), "comfy_simple.prompt_templates.missing_key": a(2820), "comfy_simple.prompt_templates.missing_value": a(1786), "comfy_simple.prompt_templates.duplicate_key": a(1993), "comfy_simple.prompt_templates.save_success": "模板已保存。", "comfy_simple.prompt_templates.delete_confirm_title": a(1386), "comfy_simple.prompt_templates.delete_confirm_content": a(2877), "comfy_simple.prompt_templates.delete_success": a(2566), "comfy_simple.prompt_templates.add_title": "新增模板", "comfy_simple.prompt_templates.edit_title": a(2224), "comfy_simple.prompt_templates.modal_title": a(2579), "comfy_simple.prompt_templates.description": a(2741), "comfy_simple.prompt_templates.add_button": a(240), "comfy_simple.prompt_templates.name_placeholder": a(1724), "comfy_simple.prompt_templates.value_placeholder": a(1113), "comfy_simple.fallback.title": a(2868), "comfy_simple.fallback.button": "更多设置", "comfy_simple.prompt_templates.positive_label": a(1899), "comfy_simple.prompt_templates.negative_label": a(2036), "comfy_simple.prompt_templates.negative_placeholder": "负面提示词内容", "comfy_simple.prompt_templates.negative_empty": "(为空)", "comfy_simple.prompt_templates.default_section": a(742), "comfy_simple.prompt_templates.default_empty": a(1219), "comfy_simple.prompt_templates.default_tag": "默认", "comfy_simple.prompt_templates.custom_section": "我的模板", "comfy_simple.prompt_templates.custom_empty": "还没有自定义模板。", "comfy_simple.prompt_templates.applied_success": a(2338), "comfy_simple.prompt_templates.applied_failed": a(1909), "comfy_simple.prompt_templates.apply_unavailable": a(2438), "comfy_simple.prompt_templates.apply_failed_missing_binding": a(2317), "comfy_simple.prompt_templates.apply_failed_caller_unavailable": a(903), "comfy_simple.prompt_templates.apply_failed_set_error": "无法写入{{part}}提示词,请稍后重试。", "common.delete": "删除", "comfy_simple.preview_click_to_send": "点击发送(Shift-点击新建文档)", "comfy_simple.workflow_select.empty": a(941), "comfy_simple.workflow_select.select": "选择", "comfy_simple.workflow_select.selected": a(652), "comfy_simple.workflow_select.current": "当前", "comfy_simple.workflow_select.load_failed": "获取工作流列表失败。", "comfy_simple.workflow_select.members_only": a(323), "boundary.title": a(893), "boundary.tooltip": a(631), "boundary.current_canvas": a(216), "boundary.current_layer": "当前图层", "boundary.current_selection": a(486), "boundary.set_as_canvas": a(2065), "boundary.set_as_layer": a(523), "boundary.set_as_selection": a(396), "http.404": "SDPPP可能未安装或和插件版本不匹配 (404)", "http.401": a(577), "http.403": a(1150), "http.408": a(1672), "http.500": a(379), "http.501": a(2656), "http.502": a(2882), "http.503": a(2055), "http.504": a(1303), "http.unknown": a(575), "runninghub.get_apikey": a(2837), "runninghub.apikey_placeholder": a(1584), "runninghub.app_id": "应用ID:", "runninghub.webapp_id_placeholder": a(1525), "runninghub.open_app": "按回车打开应用: {{appName}}", "runninghub.execute": "执行", "runninghub.running": a(1393), "runninghub.rh_coins": a(1423), "runninghub.current_tasks": a(2153), "runninghub.help_tooltip": a(373), "runninghub.stop_all": "停止全部", "runninghub.status.waiting": a(1364), "runninghub.status.running": "正在运行", "runninghub.status.failed": a(2627), "runninghub.status.success": a(2471), "image.auto_refetch": "自动从PS重新获取", "local_resource.selection.images": "图片", "runninghub.error.get_result_failed": a(2743), "runninghub.error.task_failed": a(2538), "runninghub.error.task_incomplete": "任务未完成,当前状态: {{status}}", "runninghub.error.account_status_http": a(2220), "runninghub.error.account_status_reason_unknown": "获取账户信息失败", "runninghub.error.account_status_failed": a(1347), "runninghub.error.form_data_http": a(2024), "runninghub.error.form_data_reason_unknown": a(759), "runninghub.error.form_data_failed": a(2839), "runninghub.error.node_info_missing": a(2135), "runninghub.error.run_http": a(2556), "runninghub.error.run_reason_default": a(986), "runninghub.error.run_failed": a(1015), "runninghub.error.status_http": "status API 调用失败 - HTTP 错误,状态: {{status}}", "runninghub.error.status_reason_unknown": a(1437), "runninghub.error.status_failed": "status API 调用失败 - {{reason}}", "runninghub.error.outputs_http": "outputs API 调用失败 - HTTP 错误,状态: {{status}}", "runninghub.error.outputs_failed": "outputs API 调用失败 - {{reason}}", "runninghub.task.title": a(376), "runninghub.error.upload_http": a(388), "runninghub.error.upload_reason_unknown": "文件上传失败", "runninghub.error.upload_failed": a(2054), "customapi.error.no_image_returned": a(2377), "customapi.error.openai_api": a(1716), "customapi.error.input_required": a(1930), "customapi.error.generation_failed": a(2784), "customapi.task.name.google": a(2865), "customapi.task.name.openai": a(1733), "customapi.error.unsupported_image_input": a(958), "replicate.get_apikey": a(646), "replicate.apikey_placeholder": "请输入您的Replicate API Key", "replicate.execute": "执行", "replicate.model_placeholder": a(1395), "replicate.help_tooltip": "使用教程", "replicate.loading": "加载中...", "replicate.running": a(1393), "replicate.stop": "停止", "liblib.get_apikey": a(1464), "liblib.execute": "执行", "common.close": "关闭", "common.save": "保存", "common.save_and_run": a(2214), "common.loading": a(1883), "common.error": "错误", "common.error.unknown": a(1763), "common.error.task_creation_aborted": a(1554), "common.error.status_check_aborted": a(1782), "common.error.result_fetch_aborted": a(549), "common.error.upload_aborted": a(342), "common.success": "成功", "common.failed": "失败", "common.generating": "生成中...", "common.cancel": "取消", "common.confirm": "确认", "common.options": "选项", "common.options_separator": "=== 选项 ===", "upload_pass.error.unsupported_type": a(2152), "upload_pass.error.uploader_missing": a(2529), webviewInForeground: a(215), webviewInForeground2: a(535), "auth.login_success": "登录成功", "auth.username_label": a(1515), "auth.email_label": a(1296), "auth.logout": a(739), "auth.login_required": a(2796), "image.send.select_position": a(1180), "image.send.sending": a(951), "image.layer.new": a(2519), "image.layer.current": a(1839), "image.layer.fit_to_current": a(1984), "image.layer.fit_to_selection": "适配至选区", "image.layer.fit_to_canvas": a(1383), "image.shortcut_auth_required": "快捷键选图功能仅登陆后可用", "image.shortcut_focus_required": a(244), "image.get.select_image": a(1367), "image.get.entire_canvas": a(216), "image.get.canvas": "画布", "image.get.current_layer": a(1839), "image.get.current_layer_bounds": a(1743), "image.get.selection_bounds": a(370), "image.get.canvas_bounds": a(2349), "image.crop_by_selection": a(1776), "image.limit_size": "限制图片尺寸", "image.crop.none": "不裁剪", "image.crop.inpaint": a(463), "image.crop.outpaint": a(2548), "image.send_all": "发送所有", "image.save_all": a(2533), "image.save_current": "保存当前", "image.delete_current": a(2250), "image.more_actions": a(2509), "image.jump_to_last": a(1943), "image.clear_all": a(2884), "image.send_to_ps": "发送到PS", "image.download": "下载", "image.copy": "复制", "image.sending": a(974), "image.sending_all": a(877), "mask.get.select_mask": a(1344), "mask.selection": "选区", "mask.current_layer_bounds": a(1649), "mask.all": "全部", "mask.selection_exclude": a(1380), "mask.current_layer_exclude": a(1424), "mask.empty": "空", "widgetable.photoshop.deprecated_node": a(732), "work_boundary.error.empty_selection_mask": a(2848), "work_boundary.error.primary_resource_missing": a(2424), "work_boundary.error.mask_resource_missing": a(693), "work_boundary.error.mask_apply_empty": a(1037), "document {{0}} not found": a(2871), "create document for preview": a(303), "resize document for preview": a(582), "create document for sent images": a(1326), "show sent images": a(339), "create layer failed": a(1320), "layer not found {{0}}": a(861), "layer not found: {{0}}": "找不到图层: {{0}}", "layer {{0}} is not a group": a(2843), "no linked layer for {{0}}": "没有链接图层: {{0}}", "no first related layer in {{0}}": a(1780), "merge group failed": "合并组失败", "get content of layer {{0}}": "获取图层 {{0}} 的内容", "get layer info": "获取图层信息", "get_layer_info: layer_identify required": a(612), "get pixel of {{0}} failed": a(2145), "get selection failed": "获取选区失败", "invalid name: {{0}}": a(2043), "desire bounds is null": "目标边界为空", "intersect or scaledDesire is null": a(1766), 'only layer kind "TEXT" is supported, invalid layer: {{0}}': a(644), "select layer": a(1665), "run Photoshop Action": a(785), "Action {{0}} not found": a(1822), "Action set {{0}} not found": a(1732), "set text to layer": a(1473), "ComfyManager not found, cannot reboot": a(160), "Failed to reboot ComfyUI": a(1194), "image.upload.from_canvas": "画布", "image.upload.from_curlayer": a(1839), "image.upload.from_selection": "选区", "image.upload.from_harddisk": "磁盘", "image.upload.clear": "清空", "image.upload.uploading": "上传中,如果图片过大,可能会卡顿...", "image.upload.syncing": a(2639), "image.upload.no_images": a(2162), "image.upload.error": a(853), "image.upload.tooltip.more_options_hint": "+Shift 调整更多选项;Ctrl 单次获取。", "image.upload.tooltip.alt.crop": a(1502), "image.upload.tooltip.alt.reverse": "+Alt 反转遮罩", "image.upload.tooltip.image.canvas": "从 画布 获取图像", "image.upload.tooltip.image.curlayer": a(1796), "image.upload.tooltip.mask.curlayer": a(1470), "image.upload.tooltip.mask.selection": "从 选区 获取遮罩", "image.upload.tooltip.mask.canvas": "从 画布 获取遮罩", "image.upload.tooltip.cut_action": a(333), "image.upload.tooltip.scan_action": `获取图像 & +限制图像范围`, "image.upload.tooltip.autosync.on": a(2431), "image.upload.tooltip.autosync.off": a(1452), "image.upload.tooltip.sync_action": a(1265), "image.upload.autosync.fetching": a(2399), "image.upload.autosync.status.enabled": a(600), "image.upload.autosync.status.disabled": a(2174), "image.upload.tooltip.current.canvas": a(574), "image.upload.tooltip.current.layer": a(1847), "image.upload.tooltip.current.layer_named": "当前选项:图层 {{layerName}}", "image.upload.tooltip.current.file": "当前选项:文件", "image.upload.retry": "重试", "image.pack.local.button": a(322), "image.pack.local.empty": a(2162), "image.auto_send_enabled": a(310), "image.auto_send_disabled": a(209), "image.upload.primary.auto": a(2208), "image.upload.primary.manual": a(2612), "image.upload.primary.hint": a(195), "image.upload.primary.cut": "裁剪", "image.upload.primary.scan": "扫描", "image.upload.primary.hint.line1": a(496), "image.upload.primary.hint.line2": "主图", "workflow.output.destination.title": a(2546), "workflow.output.destination.canvas": "全图", "image.upload.primary.advanced": "高级选图", "image.upload.primary.advanced.modify": "修改", "image.upload.primary.advanced.reset": "重置", "image.upload.primary.advanced.local_file": a(1898), "image.upload.primary.advanced.content.canvas": "画布", "image.upload.primary.advanced.content.curlayer": a(1839), "image.upload.primary.advanced.content.selection": "选区", "image.upload.primary.advanced.boundary.canvas": "画布边界", "image.upload.primary.advanced.boundary.curlayer": "当前图层边界", "image.upload.primary.advanced.boundary.selection": "选区边界", "image.upload.primary.advanced.boundary.primary": a(932), "image.upload.source.file.tooltip": a(2751), "image.upload.mode.file.label": "文件", "image.upload.mode.layer.label": "图层", "image.upload.mode.canvas.label": "画布", "image.upload.source.layer.tooltip": "使用当前图层", "image.upload.source.canvas.tooltip": a(2129), "image.upload.dropHint": a(1314), "image.upload.tooltip.clear_action": a(1926), "image.upload.status.layer.short_named": a(1689), "image.upload.status.layer.short": "图层", "image.upload.status.file.short": a(2237), "image.upload.status.canvas.short": "画布", "image.upload.status.file.active": "正在使用本地文件", "image.upload.status.file.resetHint": a(2380), "image.upload.status.mask.resetHint": a(1607), "image.upload.status.mask.modified": a(1546), "image.upload.status.boundary.resetHint": a(393), "image.upload.status.boundary.modified": a(1775), "image.upload.status.boundary.docMismatch": a(378), "image.upload.mask.button": a(576), "image.upload.mask.selection": a(576), "image.upload.mask.layer": "图层遮罩", "image.upload.remove_slot": a(2675), "image.upload.add_slot": a(955), "video.local.button": a(2779), "video.local.empty": a(2226), "video.local.remove": a(2020), "source.source": "来源", "source.content": "内容", "source.boundary": "范围", "source.mask": "遮罩", "source.disk": "磁盘", "source.remote": "远端", "source.unknown": "未知", "source.ps_image": a(1377), "source.ps_mask": a(933), "source.canvas": a(216), "source.current_layer": a(1839), "source.selection": "选区", "source.quality_percent": a(1069), "source.crop.positive": "正向裁剪", "source.crop.negative": "反向裁剪", "source.reverse": "反转", "send_images.create_document": "创建文档", "send_images.create_document_failed": a(2722), "photoshop.no_active_document": a(1906), "photoshop.rectangle_coordinates_required": "创建操作需要矩形坐标", "photoshop.create_guide_frame": a(1781), "photoshop.clear_guide_frame": a(1491), "photoshop.invalid_action": "无效操作: {{action}}", "photoshop.file_not_found": a(485), "photoshop.failed_to_open_file_as_document": a(1895), "photoshop.invalid_boundary": "无效边界: 左边必须小于右边,上边必须小于下边", "photoshop.failed_to_open_image_file": a(362), "photoshop.open_images_from_file": "从文件打开图像", "photoshop.failed_to_create_document_from_file": a(745), "google.field.image_input": a(1507), "google.field.prompt": a(1532), "google.field.batch_count": a(2441), "google.field.images_per_batch": a(2211), "google.status.success": "成功", "google.status.failed": "失败", "google.status.generating": a(2699), "google.apikey_placeholder": a(273), "google.baseurl_placeholder": a(2108), "google.get_apikey": "获取 API Key", "google.help_tooltip": "Google Gemini 图像生成器", "google.model_name": a(2489), "google.model_label": "模型", "google.model_placeholder": a(1190), "google.stop": "停止", "google.loading": a(1883), "google.generating": a(2451), "google.generate": "生成", "image.auto_toggle": "自动", "image.import_as_smartobject": a(1553), "image.import_as_newdoc": "作为新文档导入", "image.boundary": "边界", "image.import_tip": a(2034), "image.import_selection_button": a(2797), "image.import_auto_hint": a(1868), "image.import_selection_hint": a(2560), "auth.guest_login_success": a(1387), "boundary.canvas": "画布", "boundary.select_boundary": a(2467), "boundary.selection": "选区", "boundary.max_size": a(1007), "boundary.max_size_error": "请输入大于 0 的像素值", "boundary.max_size_hint": "留空表示不限", "boundary.max_size_placeholder": a(1751), "boundary.no_limit": "不限", "boundary.image_quality": a(890), "boundary.image_quality_required": a(960), "boundary.image_quality_range": a(1880), "boundary.preview_main_image": "输出区域", "boundary.preview_select": a(842), "boundary.preview_alt": a(601), "boundary.preview_placeholder": a(658), "boundary.settings": "调整输入设置", "convert widget {0} failed:": a(2638), "document {0} not found": a(2749), "image.document.new": a(2829), "image.layer.smart_object": a(819), "layer not found {0}": a(1621), "photoshop.invalid_boundary_type": a(2658), "photoshop.no_active_layer": a(1870), "dialog.image_source.title": a(2614), "dialog.image_source.primary_canvas": a(2016), "dialog.image_source.primary_curlayer": "以主图边界获取当前图层", "dialog.image_source.canvas_canvas": a(1290), "dialog.image_source.canvas_curlayer": a(2512), "dialog.image_source.curlayer_canvas": a(1691), "dialog.image_source.curlayer_curlayer": "以当前图层边界获取当前图层", "dialog.image_source.local_file": a(1898), "dialog.simple_source.title": a(630), "dialog.simple_source.canvas": "画布", "dialog.simple_source.current_layer": a(1839), "dialog.simple_source.local_file": a(1220), "dialog.simple_source.no_active_layer": a(2045), "dialog.simple_source.pick_error": a(2063) }, li = { "preview.show": a(1740), "gateway.select_ai_service": a(1698), "provider.select.title": a(2398), "provider.comfyui.description": "Your powerful node-based workflow engine", "provider.replicate.description": a(730), "provider.runninghub.description": a(1172), "provider.google.description": a(1628), "task.waiting_upload": "Waiting for image upload...", "task.creating_task": a(1754), "task.running_duration": a(979), "task.cancelled": a(1869), "task.cancel_failed": a(2707), "task.default_name": a(2665), "comfy.connect": a(2359), "comfy.load_failed": a(2692), "comfy.loading": "ComfyUI loading...", "comfy.channel_connecting": a(1269), "comfy.server_reconnecting": a(1e3), "comfy.version_mismatch": "Comfy SDPPP version ({{comfyVersion}}) does not match plugin ({{pluginVersion}}), may cause issues", "comfy.cloud_recommend": "Cloud:", "comfy.your_workflows": a(1041), "comfy.refresh_workflows": a(1999), "comfy.queue_progress": "(Queue:{{queueSize}}) {{progress}}% {{executingNodeTitle}}...", "comfy.save": a(872), "comfy.refresh": a(2118), "comfy.stop_cancel_all": "Stop and cancel all", "comfy.stop_auto_run": a(1399), "comfy.start_auto_run": a(919), "comfy.auto_run_status": a(2274), "comfy.run": a(2411), "comfy.back": a(558), "comfy.uploading": a(1053), "comfy_simple.refreshing_preview": a(2201), "comfy.select_workflow": "Select Workflow", "comfy.task.name": a(2842), "comfy.error.task_cancelled": a(1869), "comfy.task.processing_progress": "Processing {{processed}}/{{total}}", "comfy.help_tooltip": "Tutorial", "comfy.no_workflow_selected": a(2186), "comfy_simple.missing_url": "ComfyUI connection not configured yet. Please set the address first.", "comfy_simple.loading_webview": a(2112), "comfy_simple.http_error": a(528), "comfy_simple.wait_connect": "Waiting for ComfyUI to finish connecting…", "comfy_simple.loading": a(2319), "comfy_simple.connection_required": a(1416), "comfy_simple.preview_empty": a(599), "comfy_simple.progress.idle": a(815), "comfy_simple.auto_run": a(2768), "comfy_simple.workflow_quick": a(901), "comfy_simple.multiplier.X1": "X1", "comfy_simple.multiplier.X2": "X2", "comfy_simple.multiplier.X4": "X4", "comfy_simple.multiplier.X10": a(2761), "comfy_simple.prompt_templates.manage_tooltip": a(1523), "comfy_simple.prompt_templates.button": a(2136), "comfy_simple.prompt_templates.save_error": a(2275), "comfy_simple.prompt_templates.missing_key": a(503), "comfy_simple.prompt_templates.missing_value": a(2316), "comfy_simple.prompt_templates.duplicate_key": a(174), "comfy_simple.prompt_templates.save_success": "Template saved.", "comfy_simple.prompt_templates.delete_confirm_title": "Delete Template", "comfy_simple.prompt_templates.delete_confirm_content": a(2418), "comfy_simple.prompt_templates.delete_success": a(2345), "comfy_simple.prompt_templates.add_title": a(444), "comfy_simple.prompt_templates.edit_title": a(788), "comfy_simple.prompt_templates.modal_title": a(937), "comfy_simple.prompt_templates.description": a(592), "comfy_simple.prompt_templates.add_button": a(501), "comfy_simple.prompt_templates.name_placeholder": a(836), "comfy_simple.prompt_templates.value_placeholder": "Prompt content", "comfy_simple.fallback.title": a(993), "comfy_simple.fallback.button": "More Settings", "comfy_simple.prompt_templates.positive_label": a(1566), "comfy_simple.prompt_templates.negative_label": a(2681), "comfy_simple.prompt_templates.negative_placeholder": a(1011), "comfy_simple.prompt_templates.negative_empty": "Empty", "comfy_simple.prompt_templates.default_section": a(1761), "comfy_simple.prompt_templates.default_empty": a(765), "comfy_simple.prompt_templates.default_tag": "Default", "comfy_simple.prompt_templates.custom_section": a(1588), "comfy_simple.prompt_templates.custom_empty": a(833), "comfy_simple.prompt_templates.applied_success": a(1969), "comfy_simple.prompt_templates.applied_failed": a(1005), "comfy_simple.prompt_templates.apply_unavailable": a(1095), "comfy_simple.prompt_templates.apply_failed_missing_binding": a(997), "comfy_simple.prompt_templates.apply_failed_caller_unavailable": a(2824), "comfy_simple.prompt_templates.apply_failed_set_error": a(1264), "common.delete": a(2507), "comfy_simple.preview_click_to_send": "Click to send (Shift-click creates new document)", "comfy_simple.workflow_select.empty": a(1824), "comfy_simple.workflow_select.select": a(2724), "comfy_simple.workflow_select.selected": a(2734), "comfy_simple.workflow_select.current": a(2273), "comfy_simple.workflow_select.load_failed": a(2064), "comfy_simple.workflow_select.members_only": " (Members only)", "boundary.title": a(235), "boundary.tooltip": "Area AI reads from; controls max image size", "boundary.current_canvas": a(2107), "boundary.current_layer": "Current Layer", "boundary.current_selection": a(2445), "boundary.set_as_canvas": "Set as Canvas", "boundary.set_as_layer": a(1014), "boundary.set_as_selection": a(250), "http.404": "SDPPP may not be installed or version mismatch (404)", "http.401": "Unauthorized (401)", "http.403": "Forbidden (403)", "http.408": a(2648), "http.500": "Server error (500)", "http.501": a(748), "http.502": "Gateway error (502)", "http.503": "Service unavailable (503)", "http.504": "Gateway timeout (504)", "http.unknown": a(1562), "runninghub.get_apikey": a(2014), "runninghub.apikey_placeholder": a(1018), "runninghub.app_id": a(1625), "runninghub.webapp_id_placeholder": a(2562), "runninghub.open_app": a(1159), "runninghub.execute": a(1248), "runninghub.running": a(2057), "runninghub.rh_coins": a(1254), "runninghub.current_tasks": a(2737), "runninghub.help_tooltip": a(1966), "runninghub.stop_all": a(917), "runninghub.status.waiting": a(1851), "runninghub.status.running": a(1392), "runninghub.status.failed": "Failed", "runninghub.status.success": a(617), "image.auto_refetch": a(1729), "local_resource.selection.images": a(1355), "runninghub.error.get_result_failed": a(2070), "runninghub.error.task_failed": a(978), "runninghub.error.task_incomplete": a(395), "runninghub.error.account_status_http": a(1695), "runninghub.error.account_status_reason_unknown": a(349), "runninghub.error.account_status_failed": a(1415), "runninghub.error.form_data_http": a(1677), "runninghub.error.form_data_reason_unknown": a(2881), "runninghub.error.form_data_failed": a(2498), "runninghub.error.node_info_missing": a(654), "runninghub.error.run_http": a(412), "runninghub.error.run_reason_default": a(2515), "runninghub.error.run_failed": a(791), "runninghub.error.status_http": a(2609), "runninghub.error.status_reason_unknown": a(2613), "runninghub.error.status_failed": a(2597), "runninghub.error.outputs_http": a(2341), "runninghub.error.outputs_failed": a(1794), "runninghub.task.title": a(376), "runninghub.error.upload_http": "uploadImage API failed - HTTP error! status: {{status}}", "runninghub.error.upload_reason_unknown": a(1503), "runninghub.error.upload_failed": a(1200), "customapi.error.no_image_returned": a(1281), "customapi.error.openai_api": a(728), "customapi.error.input_required": a(484), "customapi.error.generation_failed": "Generation failed", "customapi.task.name.google": a(700), "customapi.task.name.openai": a(2322), "customapi.error.unsupported_image_input": a(1495), "replicate.get_apikey": a(1147), "replicate.apikey_placeholder": "Enter your Replicate API Key", "replicate.execute": a(1248), "replicate.model_placeholder": a(2302), "replicate.help_tooltip": a(1966), "replicate.loading": a(703), "replicate.running": a(2057), "replicate.stop": a(2492), "liblib.get_apikey": a(1368), "liblib.execute": a(1248), "common.close": a(883), "common.save": a(872), "common.save_and_run": a(782), "common.loading": "Loading...", "common.error": a(1353), "common.error.unknown": a(1275), "common.error.task_creation_aborted": a(2402), "common.error.status_check_aborted": a(437), "common.error.result_fetch_aborted": "Result fetch aborted", "common.error.upload_aborted": a(2004), "common.success": "Success", "common.failed": "Failed", "common.generating": a(2122), "common.cancel": a(2157), "common.confirm": a(1712), "common.options": "Options", "common.options_separator": a(2258), "upload_pass.error.unsupported_type": a(2287), "upload_pass.error.uploader_missing": a(2778), webviewInForeground: "PS shortcuts may be blocked by plugin...", webviewInForeground2: a(2091), "auth.login_success": a(351), "auth.username_label": a(1783), "auth.email_label": "Email: {{email}}", "auth.logout": a(1156), "auth.login_required": "Please login to use the plugin", "image.send.select_position": a(2406), "image.send.sending": a(2458), "image.layer.new": "New Layer", "image.layer.current": a(1313), "image.layer.fit_to_current": a(743), "image.layer.fit_to_selection": a(2215), "image.layer.fit_to_canvas": a(541), "image.shortcut_auth_required": a(2369), "image.shortcut_focus_required": a(338), "image.get.select_image": a(2662), "image.get.entire_canvas": a(2107), "image.get.canvas": a(651), "image.get.current_layer": "Current Layer", "image.get.current_layer_bounds": a(2617), "image.get.selection_bounds": a(719), "image.get.canvas_bounds": a(1784), "image.crop_by_selection": a(202), "image.limit_size": "Limit image size", "image.crop.none": a(1956), "image.crop.inpaint": a(1193), "image.crop.outpaint": a(1404), "image.send_all": a(2175), "image.save_all": "Save all", "image.save_current": a(391), "image.delete_current": "Delete current", "image.more_actions": a(292), "image.jump_to_last": "Jump to last", "image.clear_all": a(1647), "image.send_to_ps": a(2243), "image.download": a(548), "image.copy": a(2416), "image.sending": a(714), "image.sending_all": a(871), "mask.get.select_mask": a(2040), "mask.selection": a(2433), "mask.current_layer_bounds": a(852), "mask.all": a(2645), "mask.selection_exclude": "Exclude selection", "mask.current_layer_exclude": "Exclude current layer", "mask.empty": a(1731), "widgetable.photoshop.deprecated_node": "SDPPP 2.0 no longer needs this node", "work_boundary.error.empty_selection_mask": a(307), "work_boundary.error.primary_resource_missing": a(1185), "work_boundary.error.mask_resource_missing": a(1735), "work_boundary.error.mask_apply_empty": a(2626), "document {{0}} not found": a(371), "create document for preview": a(755), "resize document for preview": a(2450), "create document for sent images": a(965), "show sent images": a(583), "create layer failed": "Create layer failed", "layer not found {{0}}": a(1241), "layer not found: {{0}}": a(2619), "layer {{0}} is not a group": a(1210), "no linked layer for {{0}}": a(1209), "no first related layer in {{0}}": a(2670), "merge group failed": a(1228), "get content of layer {{0}}": "Get content of layer {{0}}", "get layer info": "Get layer info", "get_layer_info: layer_identify required": a(1844), "get pixel of {{0}} failed": a(796), "get selection failed": "Get selection failed", "invalid name: {{0}}": a(2128), "desire bounds is null": a(981), "intersect or scaledDesire is null": a(1223), 'only layer kind "TEXT" is supported, invalid layer: {{0}}': 'Only layer kind "TEXT" is supported, invalid layer: {{0}}', "select layer": a(1648), "run Photoshop Action": a(1121), "Action {{0}} not found": a(721), "Action set {{0}} not found": a(2484), "set text to layer": "Set text to layer", "ComfyManager not found, cannot reboot": a(1198), "Failed to reboot ComfyUI": a(2098), "image.upload.from_canvas": a(651), "image.upload.from_curlayer": a(1313), "image.upload.from_selection": a(2433), "image.upload.from_harddisk": "Disk", "image.upload.clear": a(2750), "image.upload.uploading": a(2493), "image.upload.syncing": a(2404), "image.upload.no_images": a(288), "image.upload.error": a(1020), "image.upload.tooltip.alt.crop": a(2596), "image.upload.tooltip.alt.reverse": a(1840), "image.upload.tooltip.image.canvas": a(2002), "image.upload.tooltip.image.curlayer": a(1927), "image.upload.tooltip.mask.canvas": "Get mask from Canvas", "image.upload.tooltip.mask.curlayer": a(2599), "image.upload.tooltip.mask.selection": "Get mask from Selection", "image.upload.tooltip.cut_action": a(1343), "image.upload.tooltip.scan_action": a(887), "image.upload.tooltip.autosync.on": a(816), "image.upload.tooltip.autosync.off": a(1439), "image.upload.tooltip.sync_action": a(659), "image.upload.tooltip.more_options_hint": a(869), "image.upload.tooltip.current.canvas": a(808), "image.upload.tooltip.current.layer": a(2543), "image.upload.tooltip.current.layer_named": "Current selection: Layer {{layerName}}", "image.upload.tooltip.current.file": a(810), "image.upload.autosync.fetching": a(2640), "image.upload.autosync.status.enabled": a(1422), "image.upload.autosync.status.disabled": a(2854), "image.upload.retry": a(944), "image.pack.local.button": a(787), "image.pack.local.empty": a(1467), "image.auto_send_enabled": a(1615), "image.auto_send_disabled": a(164), "image.upload.primary.auto": a(2640), "image.upload.primary.manual": "Get Image", "image.upload.primary.cut": a(2391), "image.upload.primary.scan": a(1097), "image.upload.primary.hint": a(2777), "image.upload.primary.hint.line1": a(2172), "image.upload.primary.hint.line2": a(2013), "workflow.output.destination.title": "Output to:", "workflow.output.destination.canvas": a(1324), "image.upload.primary.advanced": "Advanced selection", "image.upload.primary.advanced.modify": a(2075), "image.upload.primary.advanced.reset": a(802), "image.upload.primary.advanced.local_file": a(2042), "image.upload.primary.advanced.content.canvas": a(651), "image.upload.primary.advanced.content.curlayer": a(2810), "image.upload.primary.advanced.content.selection": a(2433), "image.upload.primary.advanced.boundary.canvas": a(1317), "image.upload.primary.advanced.boundary.curlayer": "Current layer boundary", "image.upload.primary.advanced.boundary.selection": "Selection boundary", "image.upload.primary.advanced.boundary.primary": a(841), "image.upload.mode.file.label": a(1221), "image.upload.mode.layer.label": a(2397), "image.upload.mode.canvas.label": a(651), "image.upload.source.file.tooltip": a(487), "image.upload.source.layer.tooltip": a(2518), "image.upload.source.canvas.tooltip": "Use entire canvas", "image.upload.dropHint": "Drag images here and release to upload", "image.upload.tooltip.clear_action": a(2536), "image.upload.status.layer.short_named": a(1284), "image.upload.status.layer.short": "Layer", "image.upload.status.file.short": a(2042), "image.upload.status.canvas.short": a(651), "image.upload.status.file.active": a(611), "image.upload.status.file.resetHint": a(168), "image.upload.status.mask.resetHint": a(679), "image.upload.status.mask.modified": "Masked", "image.upload.status.boundary.resetHint": "Click to restore default boundary", "image.upload.status.boundary.modified": a(1749), "image.upload.status.boundary.docMismatch": "Not current document", "image.upload.mask.button": a(2565), "image.upload.mask.selection": a(2565), "image.upload.mask.layer": a(1860), "image.upload.remove_slot": "Remove slot", "image.upload.add_slot": a(846), "video.local.button": a(1820), "video.local.empty": a(1841), "video.local.remove": a(636), "source.source": a(2093), "source.content": a(1863), "source.boundary": a(280), "source.mask": a(1497), "source.disk": a(1669), "source.remote": a(1643), "source.unknown": a(705), "source.ps_image": "PS", "source.ps_mask": "PS", "source.canvas": a(651), "source.current_layer": a(2701), "source.selection": a(2433), "source.quality_percent": a(1282), "source.crop.positive": a(2534), "source.crop.negative": a(1484), "source.reverse": a(803), "send_images.create_document": a(2892), "send_images.create_document_failed": a(649), "photoshop.no_active_document": a(831), "photoshop.rectangle_coordinates_required": "Rectangle coordinates required for create action", "photoshop.create_guide_frame": a(176), "photoshop.clear_guide_frame": a(1164), "photoshop.invalid_action": a(278), "photoshop.file_not_found": a(1762), "photoshop.failed_to_open_file_as_document": a(2084), "photoshop.invalid_boundary": a(1255), "photoshop.failed_to_open_image_file": a(2278), "photoshop.open_images_from_file": a(2496), "photoshop.failed_to_create_document_from_file": "Failed to create document from file", "google.field.image_input": a(1642), "google.field.prompt": a(1833), "google.field.batch_count": a(1598), "google.field.images_per_batch": a(783), "google.status.success": a(617), "google.status.failed": a(818), "google.status.generating": a(2647), "google.apikey_placeholder": a(1728), "google.get_apikey": a(1483), "google.baseurl_placeholder": a(2328), "google.help_tooltip": a(471), "google.model_name": a(2388), "google.model_label": a(1459), "google.model_placeholder": a(2199), "google.stop": a(2492), "google.loading": a(703), "google.generating": a(2122), "google.generate": a(620), "image.auto_toggle": a(408), "image.import_as_smartobject": a(2899), "image.import_as_newdoc": a(2289), "image.boundary": a(2732), "image.import_tip": "Hold Shift key to import as new document", "image.import_selection_button": a(789), "image.import_auto_hint": a(2691), "image.import_selection_hint": a(1354), "auth.guest_login_success": a(1581), "boundary.canvas": a(651), "boundary.select_boundary": "Select boundary", "boundary.selection": a(2433), "boundary.max_size": "Max size (px)", "boundary.max_size_error": "Enter a pixel value greater than 0", "boundary.max_size_hint": a(1804), "boundary.max_size_placeholder": "Leave empty for no limit", "boundary.no_limit": a(769), "boundary.image_quality": a(282), "boundary.image_quality_required": "Enter a quality percentage", "boundary.image_quality_range": a(2819), "boundary.preview_main_image": a(1369), "boundary.preview_select": a(1962), "boundary.preview_alt": a(193), "boundary.preview_placeholder": a(563), "boundary.settings": a(1213), "convert widget {0} failed:": a(1506), "document {0} not found": a(1619), "image.document.new": a(1812), "image.layer.smart_object": "Smart Object Layer", "layer not found {0}": "Layer {0} not found", "photoshop.invalid_boundary_type": a(325), "photoshop.no_active_layer": "No active layer", "dialog.image_source.title": a(1630), "dialog.image_source.primary_canvas": a(1858), "dialog.image_source.primary_curlayer": a(223), "dialog.image_source.canvas_canvas": "Fetch canvas with canvas boundary", "dialog.image_source.canvas_curlayer": a(2500), "dialog.image_source.curlayer_canvas": a(226), "dialog.image_source.curlayer_curlayer": a(383), "dialog.image_source.local_file": a(1989), "dialog.simple_source.title": a(2629), "dialog.simple_source.canvas": a(651), "dialog.simple_source.current_layer": "Current Layer", "dialog.simple_source.local_file": a(299), "dialog.simple_source.no_active_layer": "No active layer available", "dialog.simple_source.pick_error": a(1576) }, be = (o) => typeof o === a(1653), J0 = () => { const o = a; let x, t; const r = new Promise((e, s) => { x = e, t = s; }); - return r.resolve = x, r[o(729)] = t, r; -}, Ua = (o) => o == null ? "" : "" + o, ui = (o, x, t) => { - o[a(1471)]((e) => { + return r[o(1635)] = x, r.reject = t, r; +}, Ua = (o) => o == null ? "" : "" + o, fi = (o, x, t) => { + o[a(1953)]((e) => { x[e] && (t[e] = x[e]); }); -}, di = /###/g, Ha = (o) => o && o[a(311)](a(296)) > -1 ? o[a(575)](di, ".") : o, za = (o) => !o || b0(o), ex = (o, x, t) => { - const r = a, e = b0(x) ? x[r(628)](".") : x; +}, hi = /###/g, Ha = (o) => o && o[a(1104)](a(2595)) > -1 ? o[a(784)](hi, ".") : o, za = (o) => !o || be(o), Y0 = (o, x, t) => { + const r = a, e = be(x) ? x[r(585)](".") : x; let s = 0; - for (; s < e[r(692)] - 1; ) { + for (; s < e.length - 1; ) { if (za(o)) return {}; const n = Ha(e[s]); - !o[n] && t && (o[n] = new t()), Object[r(2249)][r(873)].call(o, n) ? o = o[n] : o = {}, ++s; + !o[n] && t && (o[n] = new t()), Object[r(1700)][r(1428)][r(377)](o, n) ? o = o[n] : o = {}, ++s; } return za(o) ? {} : { obj: o, k: Ha(e[s]) }; }, Va = (o, x, t) => { - const r = a, { obj: e, k: s } = ex(o, x, Object); - if (e !== void 0 || x[r(692)] === 1) { + const r = a, { obj: e, k: s } = Y0(o, x, Object); + if (e !== void 0 || x[r(1332)] === 1) { e[s] = t; return; } - let n = x[x.length - 1], i = x[r(2088)](0, x[r(692)] - 1), c = ex(o, i, Object); + let n = x[x[r(1332)] - 1], i = x[r(2103)](0, x[r(1332)] - 1), c = Y0(o, i, Object); for (; c.obj === void 0 && i.length; ) - n = i[i[r(692)] - 1] + "." + n, i = i[r(2088)](0, i[r(692)] - 1), c = ex(o, i, Object), c != null && c.obj && typeof c[r(2442)][c.k + "." + n] !== r(420) && (c[r(2442)] = void 0); - c[r(2442)][c.k + "." + n] = t; -}, fi = (o, x, t, r) => { - const e = a, { obj: s, k: n } = ex(o, x, Object); - s[n] = s[n] || [], s[n][e(452)](t); -}, Rx = (o, x) => { - const t = a, { obj: r, k: e } = ex(o, x); - if (r && Object[t(2249)][t(873)][t(1994)](r, e)) + n = i[i[r(1332)] - 1] + "." + n, i = i[r(2103)](0, i[r(1332)] - 1), c = Y0(o, i, Object), c != null && c[r(1862)] && typeof c[r(1862)][c.k + "." + n] !== r(2694) && (c.obj = void 0); + c[r(1862)][c.k + "." + n] = t; +}, pi = (o, x, t, r) => { + const e = a, { obj: s, k: n } = Y0(o, x, Object); + s[n] = s[n] || [], s[n][e(902)](t); +}, Cx = (o, x) => { + const t = a, { obj: r, k: e } = Y0(o, x); + if (r && Object[t(1700)][t(1428)][t(377)](r, e)) return r[e]; -}, li = (o, x, t) => { - const r = Rx(o, t); - return r !== void 0 ? r : Rx(x, t); -}, Vs = (o, x, t) => { +}, mi = (o, x, t) => { + const r = Cx(o, t); + return r !== void 0 ? r : Cx(x, t); +}, Zs = (o, x, t) => { const r = a; for (const e in x) - e !== r(1549) && e !== "constructor" && (e in o ? b0(o[e]) || o[e] instanceof String || b0(x[e]) || x[e] instanceof String ? t && (o[e] = x[e]) : Vs(o[e], x[e], t) : o[e] = x[e]); + e !== r(2527) && e !== "constructor" && (e in o ? be(o[e]) || o[e] instanceof String || be(x[e]) || x[e] instanceof String ? t && (o[e] = x[e]) : Zs(o[e], x[e], t) : o[e] = x[e]); return o; -}, Ue = (o) => o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, a(605)); -var hi = { "&": a(1626), "<": a(1690), ">": a(942), '"': a(2035), "'": a(1638), "/": a(946) }; -const pi = (o) => b0(o) ? o.replace(/[&<>"'\/]/g, (x) => hi[x]) : o; -class mi { +}, U0 = (o) => o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, a(2674)); +var bi = { "&": "&", "<": "<", ">": a(2545), '"': a(268), "'": "'", "/": a(1162) }; +const gi = (o) => { + const x = a; + return be(o) ? o[x(784)](/[&<>"'\/]/g, (t) => bi[t]) : o; +}; +class yi { constructor(x) { const t = a; - this[t(1778)] = x, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = []; + this[t(2021)] = x, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = []; } - [a(898)](x) { + [a(1100)](x) { const t = a, r = this.regExpMap.get(x); if (r !== void 0) return r; const e = new RegExp(x); - return this[t(1149)].length === this[t(1778)] && this.regExpMap[t(2215)](this[t(1149)][t(252)]()), this.regExpMap[t(758)](x, e), this[t(1149)][t(452)](x), e; + return this[t(984)][t(1332)] === this[t(2021)] && this.regExpMap[t(882)](this[t(984)][t(2281)]()), this[t(2389)][t(1750)](x, e), this.regExpQueue.push(x), e; } } -const bi = [" ", ",", "?", "!", ";"], gi = new mi(20), yi = (o, x, t) => { +const vi = [" ", ",", "?", "!", ";"], wi = new yi(20), Si = (o, x, t) => { const r = a; x = x || "", t = t || ""; - const e = bi[r(2145)]((i) => x.indexOf(i) < 0 && t[r(311)](i) < 0); - if (e.length === 0) return !0; - const s = gi[r(898)]("(" + e[r(1649)]((i) => i === "?" ? "\\?" : i)[r(2137)]("|") + ")"); - let n = !s[r(1904)](o); + const e = vi[r(1706)]((i) => x[r(1104)](i) < 0 && t[r(1104)](i) < 0); + if (e[r(1332)] === 0) return !0; + const s = wi[r(1100)]("(" + e.map((i) => i === "?" ? "\\?" : i)[r(2252)]("|") + ")"); + let n = !s[r(1055)](o); if (!n) { - const i = o.indexOf(t); - i > 0 && !s[r(1904)](o[r(1163)](0, i)) && (n = !0); + const i = o[r(1104)](t); + i > 0 && !s[r(1055)](o.substring(0, i)) && (n = !0); } return n; }, Jt = (o, x, t = ".") => { const r = a; if (!o) return; if (o[x]) - return Object[r(2249)].hasOwnProperty[r(1994)](o, x) ? o[x] : void 0; - const e = x[r(628)](t); + return Object[r(1700)][r(1428)][r(377)](o, x) ? o[x] : void 0; + const e = x[r(585)](t); let s = o; - for (let n = 0; n < e[r(692)]; ) { - if (!s || typeof s !== r(544)) return; + for (let n = 0; n < e[r(1332)]; ) { + if (!s || typeof s != "object") return; let i, c = ""; - for (let u = n; u < e[r(692)]; ++u) + for (let u = n; u < e[r(1332)]; ++u) if (u !== n && (c += t), c += e[u], i = s[c], i !== void 0) { - if ([r(2161), "number", r(1146)][r(311)](typeof i) > -1 && u < e[r(692)] - 1) continue; + if ([r(1653), "number", "boolean"][r(1104)](typeof i) > -1 && u < e[r(1332)] - 1) continue; n += u - n + 1; break; } s = i; } return s; -}, sx = (o) => o == null ? void 0 : o[a(575)]("_", "-"), vi = { type: a(1610), log(o) { +}, sx = (o) => o == null ? void 0 : o.replace("_", "-"), ki = { type: "logger", log(o) { const x = a; - this[x(1499)](x(2818), o); + this[x(681)](x(1872), o); }, warn(o) { - const x = a; - this[x(1499)](x(343), o); + this[a(681)]("warn", o); }, error(o) { const x = a; - this.output(x(948), o); + this.output(x(2265), o); }, output(o, x) { var r, e; const t = a; - (e = (r = console == null ? void 0 : console[o]) == null ? void 0 : r[t(2242)]) == null || e.call(r, console, x); + (e = (r = console == null ? void 0 : console[o]) == null ? void 0 : r[t(1964)]) == null || e.call(r, console, x); } }; -class Cx { +class Rx { constructor(x, t = {}) { - this[a(2636)](x, t); + this.init(x, t); } - [a(2636)](x, t = {}) { + [a(943)](x, t = {}) { const r = a; - this[r(338)] = t.prefix || "i18next:", this.logger = x || vi, this.options = t, this[r(2297)] = t[r(2297)]; + this[r(2688)] = t[r(2688)] || "i18next:", this[r(665)] = x || ki, this.options = t, this[r(2264)] = t.debug; } - [a(2818)](...x) { - return this[a(1205)](x, "log", "", !0); + [a(1872)](...x) { + return this[a(2371)](x, "log", "", !0); } - [a(343)](...x) { + warn(...x) { const t = a; - return this[t(1205)](x, t(343), "", !0); + return this[t(2371)](x, t(196), "", !0); } - [a(948)](...x) { + [a(2265)](...x) { const t = a; - return this[t(1205)](x, t(948), ""); + return this[t(2371)](x, t(2265), ""); } - [a(1717)](...x) { + deprecate(...x) { const t = a; - return this[t(1205)](x, t(343), t(2019), !0); + return this.forward(x, t(196), t(2461), !0); } - forward(x, t, r, e) { + [a(2371)](x, t, r, e) { const s = a; - return e && !this[s(2297)] ? null : (b0(x[0]) && (x[0] = "" + r + this.prefix + " " + x[0]), this[s(1610)][t](x)); + return e && !this[s(2264)] ? null : (be(x[0]) && (x[0] = "" + r + this[s(2688)] + " " + x[0]), this[s(665)][t](x)); } - create(x) { + [a(2469)](x) { const t = a; - return new Cx(this[t(1610)], { prefix: this[t(338)] + ":" + x + ":", ...this[t(1005)] }); + return new Rx(this.logger, { prefix: this[t(2688)] + ":" + x + ":", ...this[t(961)] }); } - [a(2327)](x) { + [a(820)](x) { const t = a; - return x = x || this[t(1005)], x[t(338)] = x[t(338)] || this[t(338)], new Cx(this[t(1610)], x); + return x = x || this[t(961)], x[t(2688)] = x[t(2688)] || this[t(2688)], new Rx(this[t(665)], x); } } -var fe = new Cx(); +var f0 = new Rx(); class Ax { constructor() { const x = a; - this[x(2319)] = {}; + this[x(1629)] = {}; } on(x, t) { const r = a; - return x[r(628)](" ")[r(1471)]((e) => { + return x[r(585)](" ").forEach((e) => { const s = r; - this[s(2319)][e] || (this[s(2319)][e] = /* @__PURE__ */ new Map()); - const n = this.observers[e][s(1075)](t) || 0; - this[s(2319)][e][s(758)](t, n + 1); + this.observers[e] || (this[s(1629)][e] = /* @__PURE__ */ new Map()); + const n = this[s(1629)][e].get(t) || 0; + this[s(1629)][e][s(1750)](t, n + 1); }), this; } - [a(2094)](x, t) { + [a(1567)](x, t) { const r = a; - if (this[r(2319)][x]) { + if (this[r(1629)][x]) { if (!t) { - delete this[r(2319)][x]; + delete this[r(1629)][x]; return; } - this[r(2319)][x][r(2215)](t); + this[r(1629)][x][r(882)](t); } } - [a(1066)](x, ...t) { + [a(990)](x, ...t) { const r = a; - this[r(2319)][x] && Array[r(2781)](this[r(2319)][x].entries())[r(1471)](([s, n]) => { + this[r(1629)][x] && Array.from(this[r(1629)][x].entries())[r(1953)](([s, n]) => { for (let i = 0; i < n; i++) s(...t); - }), this[r(2319)]["*"] && Array[r(2781)](this[r(2319)]["*"][r(1587)]()).forEach(([s, n]) => { + }), this.observers["*"] && Array.from(this[r(1629)]["*"][r(2700)]()).forEach(([s, n]) => { const i = r; for (let c = 0; c < n; c++) - s[i(2242)](s, [x, ...t]); + s[i(1964)](s, [x, ...t]); }); } } class Ba extends Ax { - constructor(x, t = { ns: [a(1196)], defaultNS: a(1196) }) { + constructor(x, t = { ns: [a(1799)], defaultNS: "translation" }) { const r = a; - super(), this[r(909)] = x || {}, this.options = t, this[r(1005)].keySeparator === void 0 && (this[r(1005)][r(774)] = "."), this[r(1005)][r(1395)] === void 0 && (this[r(1005)][r(1395)] = !0); + super(), this[r(2887)] = x || {}, this[r(961)] = t, this[r(961)][r(2720)] === void 0 && (this[r(961)][r(2720)] = "."), this[r(961)][r(1178)] === void 0 && (this[r(961)][r(1178)] = !0); } - [a(1754)](x) { + [a(2781)](x) { const t = a; - this[t(1005)].ns[t(311)](x) < 0 && this[t(1005)].ns[t(452)](x); + this[t(961)].ns[t(1104)](x) < 0 && this.options.ns.push(x); } - [a(2432)](x) { - const t = a, r = this[t(1005)].ns[t(311)](x); - r > -1 && this[t(1005)].ns.splice(r, 1); + [a(2067)](x) { + const t = a, r = this.options.ns[t(1104)](x); + r > -1 && this[t(961)].ns.splice(r, 1); } - [a(1424)](x, t, r, e = {}) { - var d, f; - const s = a, n = e[s(774)] !== void 0 ? e[s(774)] : this[s(1005)][s(774)], i = e[s(1395)] !== void 0 ? e.ignoreJSONStructure : this[s(1005)].ignoreJSONStructure; + getResource(x, t, r, e = {}) { + var d, l; + const s = a, n = e[s(2720)] !== void 0 ? e[s(2720)] : this[s(961)].keySeparator, i = e.ignoreJSONStructure !== void 0 ? e[s(1178)] : this[s(961)][s(1178)]; let c; - x[s(311)](".") > -1 ? c = x[s(628)](".") : (c = [x, t], r && (Array[s(1783)](r) ? c[s(452)](...r) : b0(r) && n ? c[s(452)](...r[s(628)](n)) : c.push(r))); - const u = Rx(this[s(909)], c); - return !u && !t && !r && x[s(311)](".") > -1 && (x = c[0], t = c[1], r = c[s(2088)](2).join(".")), u || !i || !b0(r) ? u : Jt((f = (d = this[s(909)]) == null ? void 0 : d[x]) == null ? void 0 : f[t], r, n); + x[s(1104)](".") > -1 ? c = x[s(585)](".") : (c = [x, t], r && (Array[s(977)](r) ? c[s(902)](...r) : be(r) && n ? c.push(...r[s(585)](n)) : c.push(r))); + const u = Cx(this[s(2887)], c); + return !u && !t && !r && x[s(1104)](".") > -1 && (x = c[0], t = c[1], r = c.slice(2).join(".")), u || !i || !be(r) ? u : Jt((l = (d = this[s(2887)]) == null ? void 0 : d[x]) == null ? void 0 : l[t], r, n); } - [a(1088)](x, t, r, e, s = { silent: !1 }) { - const n = a, i = s[n(774)] !== void 0 ? s[n(774)] : this[n(1005)][n(774)]; + addResource(x, t, r, e, s = { silent: !1 }) { + const n = a, i = s[n(2720)] !== void 0 ? s.keySeparator : this[n(961)][n(2720)]; let c = [x, t]; - r && (c = c[n(2044)](i ? r[n(628)](i) : r)), x[n(311)](".") > -1 && (c = x[n(628)]("."), e = t, t = c[1]), this[n(1754)](t), Va(this[n(909)], c, e), s[n(2067)] || this[n(1066)](n(1299), x, t, r, e); + r && (c = c.concat(i ? r.split(i) : r)), x[n(1104)](".") > -1 && (c = x.split("."), e = t, t = c[1]), this[n(2781)](t), Va(this[n(2887)], c, e), s.silent || this.emit(n(1390), x, t, r, e); } - [a(1878)](x, t, r, e = { silent: !1 }) { + [a(511)](x, t, r, e = { silent: !1 }) { const s = a; for (const n in r) - (b0(r[n]) || Array[s(1783)](r[n])) && this.addResource(x, t, n, r[n], { silent: !0 }); - e[s(2067)] || this.emit(s(1299), x, t, r); + (be(r[n]) || Array[s(977)](r[n])) && this[s(1440)](x, t, n, r[n], { silent: !0 }); + e.silent || this[s(990)](s(1390), x, t, r); } - [a(2167)](x, t, r, e, s, n = { silent: !1, skipCopy: !1 }) { + [a(2736)](x, t, r, e, s, n = { silent: !1, skipCopy: !1 }) { const i = a; let c = [x, t]; - x[i(311)](".") > -1 && (c = x.split("."), e = r, r = t, t = c[1]), this[i(1754)](t); - let u = Rx(this[i(909)], c) || {}; - n[i(2516)] || (r = JSON[i(706)](JSON[i(2625)](r))), e ? Vs(u, r, s) : u = { ...u, ...r }, Va(this.data, c, u), n[i(2067)] || this[i(1066)](i(1299), x, t, r); + x[i(1104)](".") > -1 && (c = x.split("."), e = r, r = t, t = c[1]), this.addNamespaces(t); + let u = Cx(this[i(2887)], c) || {}; + n[i(1949)] || (r = JSON.parse(JSON[i(306)](r))), e ? Zs(u, r, s) : u = { ...u, ...r }, Va(this[i(2887)], c, u), n.silent || this[i(990)](i(1390), x, t, r); } - removeResourceBundle(x, t) { + [a(1760)](x, t) { const r = a; - this[r(1457)](x, t) && delete this[r(909)][x][t], this[r(2432)](t), this[r(1066)](r(2696), x, t); + this[r(2449)](x, t) && delete this[r(2887)][x][t], this[r(2067)](t), this[r(990)](r(1897), x, t); } - [a(1457)](x, t) { - return this.getResource(x, t) !== void 0; + [a(2449)](x, t) { + return this[a(2610)](x, t) !== void 0; } - getResourceBundle(x, t) { + [a(628)](x, t) { const r = a; - return t || (t = this[r(1005)][r(2412)]), this.getResource(x, t); + return t || (t = this.options[r(1838)]), this[r(2610)](x, t); } - [a(1699)](x) { - return this.data[x]; + [a(1033)](x) { + return this[a(2887)][x]; } - [a(1870)](x) { - const t = a, r = this[t(1699)](x); - return !!(r && Object.keys(r) || []).find((s) => r[s] && Object[t(750)](r[s])[t(692)] > 0); + [a(1075)](x) { + const t = a, r = this[t(1033)](x); + return !!(r && Object.keys(r) || []).find((s) => r[s] && Object.keys(r[s])[t(1332)] > 0); } - [a(1538)]() { - return this[a(909)]; + toJSON() { + return this[a(2887)]; } } -var Bs = { processors: {}, addPostProcessor(o) { +var Ks = { processors: {}, addPostProcessor(o) { const x = a; - this[x(1501)][o[x(1055)]] = o; + this[x(1021)][o[x(2481)]] = o; }, handle(o, x, t, r, e) { const s = a; - return o[s(1471)]((n) => { + return o[s(1953)]((n) => { var c; - const i = s; - x = ((c = this[i(1501)][n]) == null ? void 0 : c[i(391)](x, t, r, e)) ?? x; + x = ((c = this[s(1021)][n]) == null ? void 0 : c.process(x, t, r, e)) ?? x; }), x; } }; -const Zs = Symbol("i18next/PATH_KEY"); -function wi() { - const o = a, x = [], t = Object[o(665)](null); +const Gs = Symbol(a(597)); +function Pi() { + const o = a, x = [], t = Object[o(2469)](null); let r; - return t[o(1075)] = (e, s) => { + return t[o(1094)] = (e, s) => { var i; const n = o; - return (i = r == null ? void 0 : r[n(2529)]) == null || i.call(r), s === Zs ? x : (x[n(452)](s), r = Proxy.revocable(e, t), r.proxy); - }, Proxy[o(2558)](/* @__PURE__ */ Object.create(null), t)[o(1839)]; + return (i = r == null ? void 0 : r.revoke) == null || i.call(r), s === Gs ? x : (x[n(902)](s), r = Proxy.revocable(e, t), r[n(1818)]); + }, Proxy[o(2239)](Object[o(2469)](null), t)[o(1818)]; } function Qt(o, x) { - const t = a, { [Zs]: r } = o(wi()); - return r.join((x == null ? void 0 : x[t(774)]) ?? "."); + const t = a, { [Gs]: r } = o(Pi()); + return r[t(2252)]((x == null ? void 0 : x[t(2720)]) ?? "."); } -const Za = {}, Wx = (o) => !b0(o) && typeof o !== a(1146) && typeof o !== a(2153); +const Wa = {}, Zx = (o) => !be(o) && typeof o !== a(1001) && typeof o != "number"; class Fx extends Ax { constructor(x, t = {}) { const r = a; - super(), ui([r(2709), r(2469), r(322), "interpolator", r(2296), r(1752), r(1781)], x, this), this[r(1005)] = t, this[r(1005)][r(774)] === void 0 && (this.options[r(774)] = "."), this[r(1610)] = fe.create(r(853)); + super(), fi([r(1472), r(2420), r(546), "interpolator", "backendConnector", r(1044), r(1995)], x, this), this[r(961)] = t, this[r(961)].keySeparator === void 0 && (this[r(961)][r(2720)] = "."), this[r(665)] = f0[r(2469)]("translator"); } - changeLanguage(x) { - x && (this.language = x); + [a(2802)](x) { + const t = a; + x && (this[t(1411)] = x); } - [a(280)](x, t = { interpolation: {} }) { + [a(1901)](x, t = { interpolation: {} }) { const r = a, e = { ...t }; if (x == null) return !1; - const s = this[r(1571)](x, e); - if ((s == null ? void 0 : s[r(1574)]) === void 0) return !1; - const n = Wx(s.res); - return !(e[r(1853)] === !1 && n); + const s = this.resolve(x, e); + if ((s == null ? void 0 : s[r(277)]) === void 0) return !1; + const n = Zx(s.res); + return !(e[r(2576)] === !1 && n); } - extractFromKey(x, t) { + [a(517)](x, t) { const r = a; - let e = t[r(1559)] !== void 0 ? t[r(1559)] : this.options[r(1559)]; + let e = t[r(879)] !== void 0 ? t[r(879)] : this[r(961)][r(879)]; e === void 0 && (e = ":"); - const s = t[r(774)] !== void 0 ? t[r(774)] : this[r(1005)][r(774)]; - let n = t.ns || this.options[r(2412)] || []; - const i = e && x[r(311)](e) > -1, c = !this[r(1005)].userDefinedKeySeparator && !t[r(774)] && !this[r(1005)][r(1073)] && !t[r(1559)] && !yi(x, e, s); + const s = t[r(2720)] !== void 0 ? t[r(2720)] : this.options[r(2720)]; + let n = t.ns || this[r(961)][r(1838)] || []; + const i = e && x[r(1104)](e) > -1, c = !this[r(961)][r(407)] && !t[r(2720)] && !this[r(961)][r(374)] && !t[r(879)] && !Si(x, e, s); if (i && !c) { - const u = x[r(430)](this.interpolator[r(1268)]); - if (u && u[r(692)] > 0) return { key: x, namespaces: b0(n) ? [n] : n }; - const d = x[r(628)](e); - (e !== s || e === s && this[r(1005)].ns[r(311)](d[0]) > -1) && (n = d[r(252)]()), x = d[r(2137)](s); + const u = x[r(2716)](this[r(2863)][r(296)]); + if (u && u[r(1332)] > 0) return { key: x, namespaces: be(n) ? [n] : n }; + const d = x[r(585)](e); + (e !== s || e === s && this[r(961)].ns.indexOf(d[0]) > -1) && (n = d[r(2281)]()), x = d[r(2252)](s); } - return { key: x, namespaces: b0(n) ? [n] : n }; + return { key: x, namespaces: be(n) ? [n] : n }; } - [a(242)](x, t, r) { + translate(x, t, r) { const e = a; - let s = typeof t === e(544) ? { ...t } : t; - if (typeof s !== e(544) && this[e(1005)].overloadTranslationOptionHandler && (s = this[e(1005)].overloadTranslationOptionHandler(arguments)), typeof s === e(544) && (s = { ...s }), s || (s = {}), x == null) return ""; - typeof x === e(1622) && (x = Qt(x, { ...this.options, ...s })), Array[e(1783)](x) || (x = [String(x)]); - const n = s.returnDetails !== void 0 ? s[e(2645)] : this[e(1005)][e(2645)], i = s[e(774)] !== void 0 ? s[e(774)] : this[e(1005)][e(774)], { key: c, namespaces: u } = this.extractFromKey(x[x[e(692)] - 1], s), d = u[u[e(692)] - 1]; - let f = s[e(1559)] !== void 0 ? s[e(1559)] : this[e(1005)][e(1559)]; - f === void 0 && (f = ":"); - const l = s[e(524)] || this[e(2756)], b = s[e(661)] || this[e(1005)][e(661)]; - if ((l == null ? void 0 : l.toLowerCase()) === e(2639)) - return b ? n ? { res: "" + d + f + c, usedKey: c, exactUsedKey: c, usedLng: l, usedNS: d, usedParams: this[e(1120)](s) } : "" + d + f + c : n ? { res: c, usedKey: c, exactUsedKey: c, usedLng: l, usedNS: d, usedParams: this[e(1120)](s) } : c; - const h = this.resolve(x, s); - let m = h == null ? void 0 : h[e(1574)]; - const v = (h == null ? void 0 : h.usedKey) || c, k = (h == null ? void 0 : h.exactUsedKey) || c, I = [e(1169), "[object Function]", e(287)], A = s.joinArrays !== void 0 ? s[e(1716)] : this[e(1005)][e(1716)], T = !this[e(1752)] || this.i18nFormat[e(836)], R = s[e(2200)] !== void 0 && !b0(s[e(2200)]), P = Fx[e(1210)](s), N = R ? this[e(322)][e(891)](l, s.count, s) : "", _ = s[e(2597)] && R ? this[e(322)][e(891)](l, s[e(2200)], { ordinal: !1 }) : "", D = R && !s[e(2597)] && s.count === 0, j = D && s[e(244) + this[e(1005)].pluralSeparator + e(744)] || s[e(244) + N] || s["defaultValue" + _] || s[e(244)]; - let F = m; - T && !m && P && (F = j); - const C = Wx(F), H = Object[e(2249)][e(766)][e(2242)](F); - if (T && F && C && I[e(311)](H) < 0 && !(b0(A) && Array[e(1783)](F))) { - if (!s[e(1853)] && !this[e(1005)][e(1853)]) { - !this[e(1005)][e(282)] && this.logger[e(343)](e(2800)); - const U = this[e(1005)].returnedObjectHandler ? this[e(1005)][e(282)](v, F, { ...s, ns: u }) : e(1021) + c + " (" + this[e(2756)] + ")' returned an object instead of string."; - return n ? (h[e(1574)] = U, h[e(2260)] = this[e(1120)](s), h) : U; + let s = typeof t == "object" ? { ...t } : t; + if (typeof s != "object" && this[e(961)][e(1246)] && (s = this[e(961)][e(1246)](arguments)), typeof s === e(2844) && (s = { ...s }), s || (s = {}), x == null) return ""; + typeof x === e(1235) && (x = Qt(x, { ...this.options, ...s })), Array[e(977)](x) || (x = [String(x)]); + const n = s[e(744)] !== void 0 ? s.returnDetails : this.options.returnDetails, i = s[e(2720)] !== void 0 ? s[e(2720)] : this[e(961)].keySeparator, { key: c, namespaces: u } = this[e(517)](x[x.length - 1], s), d = u[u[e(1332)] - 1]; + let l = s[e(879)] !== void 0 ? s.nsSeparator : this[e(961)][e(879)]; + l === void 0 && (l = ":"); + const f = s.lng || this[e(1411)], b = s.appendNamespaceToCIMode || this[e(961)].appendNamespaceToCIMode; + if ((f == null ? void 0 : f[e(2522)]()) === e(1590)) + return b ? n ? { res: "" + d + l + c, usedKey: c, exactUsedKey: c, usedLng: f, usedNS: d, usedParams: this[e(2567)](s) } : "" + d + l + c : n ? { res: c, usedKey: c, exactUsedKey: c, usedLng: f, usedNS: d, usedParams: this.getUsedParamsDetails(s) } : c; + const h = this[e(1635)](x, s); + let m = h == null ? void 0 : h[e(277)]; + const v = (h == null ? void 0 : h[e(610)]) || c, k = (h == null ? void 0 : h[e(1543)]) || c, E = [e(2554), e(1468), e(757)], q = s[e(2782)] !== void 0 ? s.joinArrays : this.options[e(2782)], T = !this[e(1044)] || this[e(1044)][e(616)], C = s[e(848)] !== void 0 && !be(s.count), P = Fx.hasDefaultValue(s), F = C ? this[e(546)][e(2221)](f, s[e(848)], s) : "", D = s[e(2396)] && C ? this.pluralResolver[e(2221)](f, s.count, { ordinal: !1 }) : "", j = C && !s[e(2396)] && s.count === 0, O = j && s["defaultValue" + this[e(961)][e(881)] + e(341)] || s["defaultValue" + F] || s[e(397) + D] || s[e(397)]; + let N = m; + T && !m && P && (N = O); + const R = Zx(N), L = Object[e(1700)][e(2032)][e(1964)](N); + if (T && N && R && E[e(1104)](L) < 0 && !(be(q) && Array[e(977)](N))) { + if (!s[e(2576)] && !this[e(961)].returnObjects) { + !this[e(961)].returnedObjectHandler && this.logger[e(196)](e(402)); + const $ = this[e(961)][e(589)] ? this[e(961)][e(589)](v, N, { ...s, ns: u }) : e(507) + c + " (" + this.language + e(1093); + return n ? (h[e(277)] = $, h.usedParams = this[e(2567)](s), h) : $; } if (i) { - const U = Array[e(1783)](F), z = U ? [] : {}, G = U ? k : v; - for (const i0 in F) - if (Object[e(2249)].hasOwnProperty[e(1994)](F, i0)) { - const u0 = "" + G + i + i0; - P && !m ? z[i0] = this[e(242)](u0, { ...s, defaultValue: Wx(j) ? j[i0] : void 0, joinArrays: !1, ns: u }) : z[i0] = this.translate(u0, { ...s, joinArrays: !1, ns: u }), z[i0] === u0 && (z[i0] = F[i0]); + const $ = Array[e(977)](N), z = $ ? [] : {}, G = $ ? k : v; + for (const ce in N) + if (Object.prototype[e(1428)][e(377)](N, ce)) { + const ue = "" + G + i + ce; + P && !m ? z[ce] = this[e(2375)](ue, { ...s, defaultValue: Zx(O) ? O[ce] : void 0, joinArrays: !1, ns: u }) : z[ce] = this.translate(ue, { ...s, joinArrays: !1, ns: u }), z[ce] === ue && (z[ce] = N[ce]); } m = z; } - } else if (T && b0(A) && Array[e(1783)](m)) - m = m.join(A), m && (m = this.extendTranslation(m, x, s, r)); + } else if (T && be(q) && Array[e(977)](m)) + m = m[e(2252)](q), m && (m = this[e(813)](m, x, s, r)); else { - let U = !1, z = !1; - !this[e(339)](m) && P && (U = !0, m = j), !this[e(339)](m) && (z = !0, m = c); - const G = s.missingKeyNoValueFallbackToKey || this[e(1005)].missingKeyNoValueFallbackToKey, i0 = G && z ? void 0 : m, u0 = P && j !== m && this[e(1005)][e(2056)]; - if (z || U || u0) { - if (this[e(1610)][e(2818)](e(u0 ? 1539 : 1434), l, d, c, u0 ? j : m), i) { - const k0 = this.resolve(c, { ...s, keySeparator: !1 }); - k0 && k0[e(1574)] && this.logger.warn(e(1217)); + let $ = !1, z = !1; + !this[e(2689)](m) && P && ($ = !0, m = O), !this[e(2689)](m) && (z = !0, m = c); + const G = s.missingKeyNoValueFallbackToKey || this[e(961)][e(1072)], ce = G && z ? void 0 : m, ue = P && O !== m && this[e(961)][e(2740)]; + if (z || $ || ue) { + if (this[e(665)].log(ue ? e(2362) : "missingKey", f, d, c, ue ? O : m), i) { + const ke = this.resolve(c, { ...s, keySeparator: !1 }); + ke && ke[e(277)] && this[e(665)][e(196)]("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format."); } - let l0 = []; - const o0 = this[e(2469)].getFallbackCodes(this.options[e(1524)], s.lng || this[e(2756)]); - if (this[e(1005)][e(478)] === e(292) && o0 && o0[0]) for (let k0 = 0; k0 < o0[e(692)]; k0++) - l0[e(452)](o0[k0]); - else this.options[e(478)] === e(403) ? l0 = this.languageUtils[e(1808)](s.lng || this[e(2756)]) : l0[e(452)](s[e(524)] || this.language); - const f0 = (k0, S0, M0) => { - var O; - const F0 = e, J0 = P && M0 !== m ? M0 : i0; - this[F0(1005)][F0(2724)] ? this.options.missingKeyHandler(k0, d, S0, J0, u0, s) : (O = this[F0(2296)]) != null && O[F0(2085)] && this[F0(2296)][F0(2085)](k0, d, S0, J0, u0, s), this[F0(1066)](F0(1434), k0, d, S0, m); + let fe = []; + const oe = this[e(2420)][e(668)](this[e(961)][e(2218)], s.lng || this.language); + if (this[e(961)].saveMissingTo === e(884) && oe && oe[0]) for (let ke = 0; ke < oe[e(1332)]; ke++) + fe.push(oe[ke]); + else this[e(961)][e(1702)] === e(1288) ? fe = this[e(2420)].toResolveHierarchy(s[e(892)] || this.language) : fe[e(902)](s[e(892)] || this.language); + const le = (ke, ye, Me) => { + var _; + const Ee = e, Je = P && Me !== m ? Me : ce; + this[Ee(961)].missingKeyHandler ? this[Ee(961)][Ee(1981)](ke, d, ye, Je, ue, s) : (_ = this[Ee(1135)]) != null && _[Ee(453)] && this[Ee(1135)][Ee(453)](ke, d, ye, Je, ue, s), this[Ee(990)](Ee(2833), ke, d, ye, m); }; - this[e(1005)].saveMissing && (this.options[e(988)] && R ? l0.forEach((k0) => { - const S0 = e, M0 = this.pluralResolver[S0(1374)](k0, s); - D && s["defaultValue" + this[S0(1005)].pluralSeparator + S0(744)] && M0[S0(311)](this[S0(1005)].pluralSeparator + "zero") < 0 && M0[S0(452)](this.options.pluralSeparator + S0(744)), M0.forEach((F0) => { - const J0 = S0; - f0([k0], c + F0, s[J0(244) + F0] || j); + this.options[e(453)] && (this[e(961)].saveMissingPlurals && C ? fe[e(1953)]((ke) => { + const ye = e, Me = this[ye(546)][ye(2177)](ke, s); + j && s["defaultValue" + this.options.pluralSeparator + ye(341)] && Me[ye(1104)](this[ye(961)][ye(881)] + "zero") < 0 && Me[ye(902)](this[ye(961)][ye(881)] + ye(341)), Me[ye(1953)]((Ee) => { + const Je = ye; + le([ke], c + Ee, s[Je(397) + Ee] || O); }); - }) : f0(l0, c, j)); + }) : le(fe, c, O)); } - m = this[e(451)](m, x, s, h, r), z && m === c && this.options.appendNamespaceToMissingKey && (m = "" + d + f + c), (z || U) && this[e(1005)][e(712)] && (m = this[e(1005)][e(712)](this.options[e(623)] ? "" + d + f + c : c, U ? m : void 0, s)); + m = this[e(813)](m, x, s, h, r), z && m === c && this[e(961)][e(1119)] && (m = "" + d + l + c), (z || $) && this.options[e(212)] && (m = this.options[e(212)](this[e(961)][e(1119)] ? "" + d + l + c : c, $ ? m : void 0, s)); } - return n ? (h[e(1574)] = m, h.usedParams = this[e(1120)](s), h) : m; + return n ? (h.res = m, h[e(2628)] = this.getUsedParamsDetails(s), h) : m; } - [a(451)](x, t, r, e, s) { + [a(813)](x, t, r, e, s) { var u, d; const n = a; - if ((u = this[n(1752)]) != null && u[n(706)]) x = this.i18nFormat.parse(x, { ...this[n(1005)][n(2660)].defaultVariables, ...r }, r[n(524)] || this[n(2756)] || e[n(562)], e.usedNS, e[n(363)], { resolved: e }); - else if (!r[n(2181)]) { - r[n(2660)] && this[n(951)].init({ ...r, interpolation: { ...this.options[n(2660)], ...r[n(2660)] } }); - const f = b0(x) && (((d = r == null ? void 0 : r[n(2660)]) == null ? void 0 : d.skipOnVariables) !== void 0 ? r[n(2660)][n(1092)] : this[n(1005)][n(2660)][n(1092)]); - let l; - if (f) { - const h = x[n(430)](this[n(951)][n(1268)]); - l = h && h[n(692)]; + if ((u = this[n(1044)]) != null && u[n(429)]) x = this[n(1044)].parse(x, { ...this.options[n(1146)][n(1274)], ...r }, r[n(892)] || this[n(1411)] || e.usedLng, e[n(294)], e.usedKey, { resolved: e }); + else if (!r.skipInterpolation) { + r[n(1146)] && this[n(2863)][n(943)]({ ...r, interpolation: { ...this[n(961)][n(1146)], ...r[n(1146)] } }); + const l = be(x) && (((d = r == null ? void 0 : r[n(1146)]) == null ? void 0 : d[n(2705)]) !== void 0 ? r.interpolation.skipOnVariables : this[n(961)][n(1146)][n(2705)]); + let f; + if (l) { + const h = x[n(2716)](this[n(2863)][n(296)]); + f = h && h[n(1332)]; } - let b = r[n(575)] && !b0(r.replace) ? r[n(575)] : r; - if (this.options[n(2660)][n(491)] && (b = { ...this[n(1005)][n(2660)][n(491)], ...b }), x = this[n(951)][n(2678)](x, b, r[n(524)] || this[n(2756)] || e[n(562)], r), f) { - const h = x[n(430)](this[n(951)][n(1268)]), m = h && h[n(692)]; - l < m && (r[n(1742)] = !1); + let b = r[n(784)] && !be(r[n(784)]) ? r[n(784)] : r; + if (this[n(961)][n(1146)].defaultVariables && (b = { ...this[n(961)][n(1146)][n(1274)], ...b }), x = this.interpolator[n(2368)](x, b, r[n(892)] || this[n(1411)] || e[n(1441)], r), l) { + const h = x.match(this.interpolator[n(296)]), m = h && h.length; + f < m && (r[n(758)] = !1); } - !r[n(524)] && e && e[n(1574)] && (r[n(524)] = this[n(2756)] || e[n(562)]), r[n(1742)] !== !1 && (x = this[n(951)][n(1742)](x, (...h) => { + !r[n(892)] && e && e[n(277)] && (r.lng = this.language || e[n(1441)]), r[n(758)] !== !1 && (x = this[n(2863)].nest(x, (...h) => { const m = n; - return (s == null ? void 0 : s[0]) === h[0] && !r.context ? (this[m(1610)][m(343)](m(1372) + h[0] + " in key: " + t[0]), null) : this[m(242)](...h, t); - }, r)), r[n(2660)] && this[n(951)][n(2865)](); + return (s == null ? void 0 : s[0]) === h[0] && !r.context ? (this[m(665)][m(196)](m(241) + h[0] + m(2161) + t[0]), null) : this.translate(...h, t); + }, r)), r.interpolation && this[n(2863)][n(1660)](); } - const i = r[n(181)] || this[n(1005)][n(181)], c = b0(i) ? [i] : i; - return x != null && (c != null && c[n(692)]) && r[n(1990)] !== !1 && (x = Bs[n(1505)](c, x, t, this.options && this[n(1005)][n(1643)] ? { i18nResolved: { ...e, usedParams: this[n(1120)](r) }, ...r } : r, this)), x; + const i = r[n(1381)] || this[n(961)].postProcess, c = be(i) ? [i] : i; + return x != null && (c != null && c[n(1332)]) && r[n(2381)] !== !1 && (x = Ks[n(2342)](c, x, t, this.options && this[n(961)][n(619)] ? { i18nResolved: { ...e, usedParams: this.getUsedParamsDetails(r) }, ...r } : r, this)), x; } - [a(1571)](x, t = {}) { + resolve(x, t = {}) { let r, e, s, n, i; - return b0(x) && (x = [x]), x.forEach((c) => { + return be(x) && (x = [x]), x.forEach((c) => { const u = K; - if (this[u(339)](r)) return; - const d = this[u(640)](c, t), f = d[u(1867)]; - e = f; - let l = d.namespaces; - this[u(1005)][u(1530)] && (l = l[u(2044)](this[u(1005)].fallbackNS)); - const b = t[u(2200)] !== void 0 && !b0(t[u(2200)]), h = b && !t[u(2597)] && t.count === 0, m = t[u(2320)] !== void 0 && (b0(t[u(2320)]) || typeof t[u(2320)] === u(2153)) && t[u(2320)] !== "", v = t[u(308)] ? t[u(308)] : this[u(2469)].toResolveHierarchy(t.lng || this[u(2756)], t[u(1524)]); - l[u(1471)]((k) => { - var A, T; - const I = u; - this.isValidLookup(r) || (i = k, !Za[v[0] + "-" + k] && ((A = this[I(1781)]) != null && A.hasLoadedNamespace) && !((T = this[I(1781)]) != null && T[I(286)](i)) && (Za[v[0] + "-" + k] = !0, this[I(1610)][I(343)](I(2177) + e + '" for languages "' + v[I(2137)](", ") + I(607) + i + '" was not yet loaded', I(2363))), v[I(1471)]((R) => { - var D; - const P = I; - if (this[P(339)](r)) return; - n = R; - const N = [f]; - if ((D = this.i18nFormat) != null && D.addLookupKeys) this[P(1752)][P(205)](N, f, R, k, t); + if (this.isValidLookup(r)) return; + const d = this.extractFromKey(c, t), l = d[u(1175)]; + e = l; + let f = d[u(736)]; + this[u(961)][u(1461)] && (f = f[u(1545)](this[u(961)].fallbackNS)); + const b = t.count !== void 0 && !be(t[u(848)]), h = b && !t[u(2396)] && t.count === 0, m = t[u(1405)] !== void 0 && (be(t[u(1405)]) || typeof t[u(1405)] === u(1206)) && t[u(1405)] !== "", v = t[u(265)] ? t.lngs : this[u(2420)][u(1227)](t.lng || this[u(1411)], t[u(2218)]); + f.forEach((k) => { + var q, T; + const E = u; + this[E(2689)](r) || (i = k, !Wa[v[0] + "-" + k] && ((q = this[E(1995)]) != null && q.hasLoadedNamespace) && !((T = this.utils) != null && T[E(328)](i)) && (Wa[v[0] + "-" + k] = !0, this[E(665)].warn(E(197) + e + '" for languages "' + v[E(2252)](", ") + E(2163) + i + '" was not yet loaded', E(1376))), v.forEach((C) => { + var j; + const P = E; + if (this[P(2689)](r)) return; + n = C; + const F = [l]; + if ((j = this[P(1044)]) != null && j[P(1076)]) this[P(1044)][P(1076)](F, l, C, k, t); else { - let j; - b && (j = this[P(322)].getSuffix(R, t[P(2200)], t)); - const F = this[P(1005)][P(2139)] + P(744), C = this[P(1005)][P(2139)] + P(2597) + this[P(1005)][P(2139)]; - if (b && (t[P(2597)] && j[P(311)](C) === 0 && N[P(452)](f + j[P(575)](C, this.options[P(2139)])), N[P(452)](f + j), h && N[P(452)](f + F)), m) { - const H = "" + f + (this[P(1005)][P(1987)] || "_") + t[P(2320)]; - N[P(452)](H), b && (t[P(2597)] && j[P(311)](C) === 0 && N[P(452)](H + j.replace(C, this[P(1005)][P(2139)])), N[P(452)](H + j), h && N.push(H + F)); + let O; + b && (O = this[P(546)].getSuffix(C, t.count, t)); + const N = this[P(961)][P(881)] + P(341), R = this.options[P(881)] + P(2396) + this[P(961)].pluralSeparator; + if (b && (t.ordinal && O[P(1104)](R) === 0 && F[P(902)](l + O[P(784)](R, this.options[P(881)])), F[P(902)](l + O), h && F.push(l + N)), m) { + const L = "" + l + (this[P(961)][P(2001)] || "_") + t[P(1405)]; + F[P(902)](L), b && (t[P(2396)] && O[P(1104)](R) === 0 && F[P(902)](L + O.replace(R, this[P(961)].pluralSeparator)), F[P(902)](L + O), h && F.push(L + N)); } } - let _; - for (; _ = N[P(2231)](); ) - !this[P(339)](r) && (s = _, r = this[P(1424)](R, k, _, t)); + let D; + for (; D = F[P(469)](); ) + !this[P(2689)](r) && (s = D, r = this.getResource(C, k, D, t)); })); }); }), { res: r, usedKey: e, exactUsedKey: s, usedLng: n, usedNS: i }; } - [a(339)](x) { + [a(2689)](x) { const t = a; - return x !== void 0 && !(!this[t(1005)].returnNull && x === null) && !(!this[t(1005)][t(2859)] && x === ""); + return x !== void 0 && !(!this[t(961)].returnNull && x === null) && !(!this[t(961)][t(1049)] && x === ""); } - [a(1424)](x, t, r, e = {}) { + getResource(x, t, r, e = {}) { var n; const s = a; - return (n = this.i18nFormat) != null && n[s(1424)] ? this.i18nFormat[s(1424)](x, t, r, e) : this[s(2709)][s(1424)](x, t, r, e); + return (n = this[s(1044)]) != null && n[s(2610)] ? this.i18nFormat[s(2610)](x, t, r, e) : this.resourceStore[s(2610)](x, t, r, e); } - [a(1120)](x = {}) { - const t = a, r = [t(244), "ordinal", t(2320), t(575), t(524), t(308), t(1524), "ns", "keySeparator", t(1559), t(1853), t(2645), t(1716), t(181), t(2660)], e = x[t(575)] && !b0(x.replace); - let s = e ? x[t(575)] : x; - if (e && typeof x[t(2200)] !== t(420) && (s.count = x[t(2200)]), this[t(1005)].interpolation[t(491)] && (s = { ...this[t(1005)][t(2660)][t(491)], ...s }), !e) { + [a(2567)](x = {}) { + const t = a, r = [t(397), t(2396), t(1405), t(784), "lng", t(265), "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", t(1381), t(1146)], e = x[t(784)] && !be(x[t(784)]); + let s = e ? x[t(784)] : x; + if (e && typeof x[t(848)] < "u" && (s[t(848)] = x.count), this[t(961)][t(1146)][t(1274)] && (s = { ...this[t(961)][t(1146)][t(1274)], ...s }), !e) { s = { ...s }; for (const n of r) delete s[n]; } return s; } - static [a(1210)](x) { - const t = a, r = "defaultValue"; + static [a(857)](x) { + const t = a, r = t(397); for (const e in x) - if (Object.prototype[t(873)][t(1994)](x, e) && r === e.substring(0, r[t(692)]) && x[e] !== void 0) return !0; + if (Object.prototype[t(1428)][t(377)](x, e) && r === e[t(2453)](0, r[t(1332)]) && x[e] !== void 0) return !0; return !1; } } -class Wa { +class Za { constructor(x) { const t = a; - this[t(1005)] = x, this.supportedLngs = this[t(1005)].supportedLngs || !1, this[t(1610)] = fe[t(665)]("languageUtils"); + this[t(961)] = x, this[t(2605)] = this[t(961)][t(2605)] || !1, this[t(665)] = f0[t(2469)](t(2420)); } - getScriptPartFromCode(x) { + [a(1882)](x) { const t = a; - if (x = sx(x), !x || x[t(311)]("-") < 0) return null; - const r = x[t(628)]("-"); - return r[t(692)] === 2 || (r[t(2231)](), r[r[t(692)] - 1][t(556)]() === "x") ? null : this[t(1953)](r.join("-")); + if (x = sx(x), !x || x.indexOf("-") < 0) return null; + const r = x[t(585)]("-"); + return r[t(1332)] === 2 || (r[t(469)](), r[r[t(1332)] - 1][t(2522)]() === "x") ? null : this[t(2312)](r[t(2252)]("-")); } - [a(1786)](x) { + [a(2463)](x) { const t = a; - if (x = sx(x), !x || x.indexOf("-") < 0) return x; - const r = x[t(628)]("-"); - return this[t(1953)](r[0]); + if (x = sx(x), !x || x[t(1104)]("-") < 0) return x; + const r = x.split("-"); + return this[t(2312)](r[0]); } - [a(1953)](x) { + formatLanguageCode(x) { const t = a; - if (b0(x) && x[t(311)]("-") > -1) { + if (be(x) && x[t(1104)]("-") > -1) { let r; try { r = Intl.getCanonicalLocales(x)[0]; } catch { } - return r && this[t(1005)][t(336)] && (r = r[t(556)]()), r || (this[t(1005)][t(336)] ? x.toLowerCase() : x); + return r && this[t(961)][t(2346)] && (r = r.toLowerCase()), r || (this[t(961)][t(2346)] ? x.toLowerCase() : x); } - return this[t(1005)][t(2707)] || this.options[t(336)] ? x[t(556)]() : x; + return this[t(961)][t(573)] || this[t(961)][t(2346)] ? x.toLowerCase() : x; } - isSupportedCode(x) { + [a(384)](x) { const t = a; - return (this[t(1005)][t(2622)] === t(312) || this[t(1005)].nonExplicitSupportedLngs) && (x = this[t(1786)](x)), !this.supportedLngs || !this[t(1775)][t(692)] || this[t(1775)][t(311)](x) > -1; + return (this[t(961)][t(499)] === t(2137) || this[t(961)][t(1997)]) && (x = this[t(2463)](x)), !this[t(2605)] || !this[t(2605)][t(1332)] || this[t(2605)][t(1104)](x) > -1; } getBestMatchFromCodes(x) { const t = a; if (!x) return null; let r; - return x[t(1471)]((e) => { + return x[t(1953)]((e) => { const s = t; if (r) return; - const n = this[s(1953)](e); - (!this[s(1005)][s(1775)] || this[s(863)](n)) && (r = n); - }), !r && this[t(1005)][t(1775)] && x[t(1471)]((e) => { + const n = this.formatLanguageCode(e); + (!this[s(961)][s(2605)] || this[s(384)](n)) && (r = n); + }), !r && this[t(961)].supportedLngs && x[t(1953)]((e) => { const s = t; if (r) return; - const n = this[s(791)](e); - if (this[s(863)](n)) return r = n; - const i = this[s(1786)](e); - if (this[s(863)](i)) return r = i; - r = this[s(1005)][s(1775)][s(1341)]((c) => { + const n = this.getScriptPartFromCode(e); + if (this[s(384)](n)) return r = n; + const i = this[s(2463)](e); + if (this[s(384)](i)) return r = i; + r = this[s(961)].supportedLngs[s(1036)]((c) => { const u = s; if (c === i) return c; - if (!(c[u(311)]("-") < 0 && i[u(311)]("-") < 0) && (c[u(311)]("-") > 0 && i[u(311)]("-") < 0 && c[u(1163)](0, c[u(311)]("-")) === i || c[u(311)](i) === 0 && i[u(692)] > 1)) + if (!(c[u(1104)]("-") < 0 && i[u(1104)]("-") < 0) && (c.indexOf("-") > 0 && i[u(1104)]("-") < 0 && c[u(2453)](0, c[u(1104)]("-")) === i || c[u(1104)](i) === 0 && i.length > 1)) return c; }); - }), r || (r = this[t(1391)](this[t(1005)][t(1524)])[0]), r; + }), r || (r = this[t(668)](this[t(961)][t(2218)])[0]), r; } - [a(1391)](x, t) { + [a(668)](x, t) { const r = a; if (!x) return []; - if (typeof x === r(1622) && (x = x(t)), b0(x) && (x = [x]), Array[r(1783)](x)) return x; - if (!t) return x[r(1944)] || []; + if (typeof x === r(1235) && (x = x(t)), be(x) && (x = [x]), Array[r(977)](x)) return x; + if (!t) return x.default || []; let e = x[t]; - return e || (e = x[this[r(791)](t)]), e || (e = x[this[r(1953)](t)]), e || (e = x[this[r(1786)](t)]), e || (e = x.default), e || []; + return e || (e = x[this[r(1882)](t)]), e || (e = x[this[r(2312)](t)]), e || (e = x[this[r(2463)](t)]), e || (e = x[r(2222)]), e || []; } - toResolveHierarchy(x, t) { - const r = a, e = this[r(1391)]((t === !1 ? [] : t) || this.options[r(1524)] || [], x), s = [], n = (i) => { + [a(1227)](x, t) { + const r = a, e = this[r(668)]((t === !1 ? [] : t) || this.options[r(2218)] || [], x), s = [], n = (i) => { const c = r; - i && (this[c(863)](i) ? s[c(452)](i) : this[c(1610)][c(343)](c(1903) + i)); + i && (this.isSupportedCode(i) ? s.push(i) : this.logger[c(196)](c(382) + i)); }; - return b0(x) && (x[r(311)]("-") > -1 || x[r(311)]("_") > -1) ? (this[r(1005)][r(2622)] !== r(312) && n(this[r(1953)](x)), this[r(1005)][r(2622)] !== r(312) && this[r(1005)][r(2622)] !== r(2127) && n(this[r(791)](x)), this[r(1005)].load !== r(2127) && n(this[r(1786)](x))) : b0(x) && n(this[r(1953)](x)), e[r(1471)]((i) => { + return be(x) && (x[r(1104)]("-") > -1 || x[r(1104)]("_") > -1) ? (this[r(961)].load !== r(2137) && n(this[r(2312)](x)), this[r(961)][r(499)] !== r(2137) && this.options[r(499)] !== "currentOnly" && n(this.getScriptPartFromCode(x)), this[r(961)][r(499)] !== r(2468) && n(this[r(2463)](x))) : be(x) && n(this[r(2312)](x)), e[r(1953)]((i) => { const c = r; - s.indexOf(i) < 0 && n(this[c(1953)](i)); + s[c(1104)](i) < 0 && n(this[c(2312)](i)); }), s; } } -const Ka = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }, Ga = { select: (o) => o === 1 ? "one" : a(1584), resolvedOptions: () => ({ pluralCategories: [a(2693), a(1584)] }) }; -class Si { +const Ka = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }, Ga = { select: (o) => a(o === 1 ? 542 : 1102), resolvedOptions: () => ({ pluralCategories: [a(542), a(1102)] }) }; +class Ei { constructor(x, t = {}) { const r = a; - this[r(2469)] = x, this[r(1005)] = t, this.logger = fe.create("pluralResolver"), this.pluralRulesCache = {}; + this.languageUtils = x, this[r(961)] = t, this[r(665)] = f0[r(2469)](r(546)), this.pluralRulesCache = {}; } - [a(446)](x, t) { + addRule(x, t) { this.rules[x] = t; } - clearCache() { - this.pluralRulesCache = {}; + [a(1526)]() { + const x = a; + this[x(1713)] = {}; } - [a(551)](x, t = {}) { - const r = a, e = sx(x === r(1527) ? "en" : x), s = t[r(2597)] ? r(2597) : r(1314), n = JSON[r(2625)]({ cleanedCode: e, type: s }); - if (n in this[r(1470)]) return this[r(1470)][n]; + [a(253)](x, t = {}) { + const r = a, e = sx(x === "dev" ? "en" : x), s = t[r(2396)] ? r(2396) : "cardinal", n = JSON[r(306)]({ cleanedCode: e, type: s }); + if (n in this.pluralRulesCache) return this[r(1713)][n]; let i; try { - i = new Intl.PluralRules(e, { type: s }); + i = new Intl[r(1845)](e, { type: s }); } catch { - if (!Intl) return this[r(1610)][r(948)]("No Intl support, please use an Intl polyfill!"), Ga; - if (!x[r(430)](/-|_/)) return Ga; - const u = this.languageUtils.getLanguagePartFromCode(x); - i = this[r(551)](u, t); + if (!Intl) return this[r(665)][r(2265)]("No Intl support, please use an Intl polyfill!"), Ga; + if (!x[r(2716)](/-|_/)) return Ga; + const u = this.languageUtils[r(2463)](x); + i = this.getRule(u, t); } - return this.pluralRulesCache[n] = i, i; + return this[r(1713)][n] = i, i; } - [a(1483)](x, t = {}) { + [a(1349)](x, t = {}) { const r = a; - let e = this.getRule(x, t); - return e || (e = this.getRule("dev", t)), (e == null ? void 0 : e[r(396)]()[r(2133)][r(692)]) > 1; + let e = this[r(253)](x, t); + return e || (e = this[r(253)]("dev", t)), (e == null ? void 0 : e[r(1663)]()[r(1618)].length) > 1; } - [a(2061)](x, t, r = {}) { + [a(1644)](x, t, r = {}) { const e = a; - return this.getSuffixes(x, r)[e(1649)]((s) => "" + t + s); + return this.getSuffixes(x, r)[e(2742)]((s) => "" + t + s); } - [a(1374)](x, t = {}) { + [a(2177)](x, t = {}) { const r = a; - let e = this[r(551)](x, t); - return e || (e = this[r(551)](r(1527), t)), e ? e.resolvedOptions()[r(2133)].sort((s, n) => Ka[s] - Ka[n])[r(1649)]((s) => "" + this[r(1005)][r(397)] + (t[r(2597)] ? r(2597) + this[r(1005)][r(397)] : "") + s) : []; + let e = this[r(253)](x, t); + return e || (e = this[r(253)](r(1236), t)), e ? e[r(1663)]()[r(1618)].sort((s, n) => Ka[s] - Ka[n])[r(2742)]((s) => "" + this[r(961)][r(1764)] + (t[r(2396)] ? r(2396) + this[r(961)][r(1764)] : "") + s) : []; } - getSuffix(x, t, r = {}) { - const e = a, s = this[e(551)](x, r); - return s ? "" + this[e(1005)].prepend + (r[e(2597)] ? e(2597) + this[e(1005)][e(397)] : "") + s[e(1306)](t) : (this[e(1610)][e(343)]("no plural rule found for: " + x), this[e(891)](e(1527), t, r)); + [a(2221)](x, t, r = {}) { + const e = a, s = this[e(253)](x, r); + return s ? "" + this.options[e(1764)] + (r[e(2396)] ? e(2396) + this[e(961)][e(1764)] : "") + s[e(1225)](t) : (this[e(665)].warn(e(949) + x), this[e(2221)](e(1236), t, r)); } } const Ja = (o, x, t, r = ".", e = !0) => { - let s = li(o, x, t); - return !s && e && b0(t) && (s = Jt(o, t, r), s === void 0 && (s = Jt(x, t, r))), s; -}, Kx = (o) => o[a(575)](/\$/g, a(1244)); + let s = mi(o, x, t); + return !s && e && be(t) && (s = Jt(o, t, r), s === void 0 && (s = Jt(x, t, r))), s; +}, Kx = (o) => o.replace(/\$/g, a(1420)); class Qa { constructor(x = {}) { var r; const t = a; - this[t(1610)] = fe.create("interpolator"), this[t(1005)] = x, this.format = ((r = x == null ? void 0 : x[t(2660)]) == null ? void 0 : r.format) || ((e) => e), this.init(x); + this[t(665)] = f0[t(2469)](t(2863)), this[t(961)] = x, this[t(2039)] = ((r = x == null ? void 0 : x[t(1146)]) == null ? void 0 : r.format) || ((e) => e), this.init(x); } - [a(2636)](x = {}) { + [a(943)](x = {}) { const t = a; - x[t(2660)] || (x[t(2660)] = { escapeValue: !0 }); - const { escape: r, escapeValue: e, useRawValueToEscape: s, prefix: n, prefixEscaped: i, suffix: c, suffixEscaped: u, formatSeparator: d, unescapeSuffix: f, unescapePrefix: l, nestingPrefix: b, nestingPrefixEscaped: h, nestingSuffix: m, nestingSuffixEscaped: v, nestingOptionsSeparator: k, maxReplaces: I, alwaysFormat: A } = x[t(2660)]; - this[t(342)] = r !== void 0 ? r : pi, this[t(1216)] = e !== void 0 ? e : !0, this[t(1940)] = s !== void 0 ? s : !1, this[t(338)] = n ? Ue(n) : i || "{{", this[t(649)] = c ? Ue(c) : u || "}}", this[t(684)] = d || ",", this[t(1494)] = f ? "" : l || "-", this[t(864)] = this[t(1494)] ? "" : f || "", this[t(2538)] = b ? Ue(b) : h || Ue("$t("), this[t(1343)] = m ? Ue(m) : v || Ue(")"), this[t(2466)] = k || ",", this[t(2064)] = I || 1e3, this[t(1849)] = A !== void 0 ? A : !1, this[t(2120)](); + x.interpolation || (x.interpolation = { escapeValue: !0 }); + const { escape: r, escapeValue: e, useRawValueToEscape: s, prefix: n, prefixEscaped: i, suffix: c, suffixEscaped: u, formatSeparator: d, unescapeSuffix: l, unescapePrefix: f, nestingPrefix: b, nestingPrefixEscaped: h, nestingSuffix: m, nestingSuffixEscaped: v, nestingOptionsSeparator: k, maxReplaces: E, alwaysFormat: q } = x[t(1146)]; + this[t(2329)] = r !== void 0 ? r : gi, this.escapeValue = e !== void 0 ? e : !0, this[t(817)] = s !== void 0 ? s : !1, this[t(2688)] = n ? U0(n) : i || "{{", this[t(1907)] = c ? U0(c) : u || "}}", this[t(2190)] = d || ",", this.unescapePrefix = l ? "" : f || "-", this[t(2585)] = this.unescapePrefix ? "" : l || "", this[t(606)] = b ? U0(b) : h || U0("$t("), this[t(1652)] = m ? U0(m) : v || U0(")"), this[t(2300)] = k || ",", this.maxReplaces = E || 1e3, this[t(2403)] = q !== void 0 ? q : !1, this[t(1922)](); } - [a(2865)]() { + reset() { const x = a; - this[x(1005)] && this.init(this[x(1005)]); + this[x(961)] && this[x(943)](this[x(961)]); } - [a(2120)]() { + [a(1922)]() { const x = a, t = (r, e) => { const s = K; - return (r == null ? void 0 : r[s(901)]) === e ? (r[s(947)] = 0, r) : new RegExp(e, "g"); + return (r == null ? void 0 : r[s(2635)]) === e ? (r.lastIndex = 0, r) : new RegExp(e, "g"); }; - this[x(652)] = t(this[x(652)], this[x(338)] + "(.+?)" + this[x(649)]), this.regexpUnescape = t(this[x(1790)], "" + this.prefix + this[x(1494)] + x(1351) + this[x(864)] + this[x(649)]), this[x(1268)] = t(this[x(1268)], this.nestingPrefix + x(2526) + this[x(1343)]); + this[x(1778)] = t(this[x(1778)], this[x(2688)] + x(334) + this.suffix), this[x(461)] = t(this.regexpUnescape, "" + this[x(2688)] + this[x(1671)] + x(334) + this[x(2585)] + this[x(1907)]), this[x(296)] = t(this[x(296)], this[x(606)] + x(2170) + this.nestingSuffix); } - [a(2678)](x, t, r, e) { + [a(2368)](x, t, r, e) { var h; const s = a; let n, i, c; - const u = this[s(1005)] && this.options.interpolation && this.options[s(2660)][s(491)] || {}, d = (m) => { + const u = this[s(961)] && this.options[s(1146)] && this[s(961)].interpolation[s(1274)] || {}, d = (m) => { const v = s; - if (m[v(311)](this[v(684)]) < 0) { - const T = Ja(t, u, m, this[v(1005)][v(774)], this[v(1005)][v(1395)]); - return this[v(1849)] ? this.format(T, void 0, r, { ...e, ...t, interpolationkey: m }) : T; + if (m.indexOf(this[v(2190)]) < 0) { + const T = Ja(t, u, m, this[v(961)][v(2720)], this.options[v(1178)]); + return this[v(2403)] ? this[v(2039)](T, void 0, r, { ...e, ...t, interpolationkey: m }) : T; } - const k = m[v(628)](this[v(684)]), I = k.shift().trim(), A = k[v(2137)](this[v(684)]).trim(); - return this[v(2197)](Ja(t, u, I, this.options[v(774)], this[v(1005)][v(1395)]), A, r, { ...e, ...t, interpolationkey: I }); + const k = m[v(585)](this.formatSeparator), E = k[v(2281)]()[v(436)](), q = k.join(this.formatSeparator).trim(); + return this[v(2039)](Ja(t, u, E, this[v(961)][v(2720)], this[v(961)][v(1178)]), q, r, { ...e, ...t, interpolationkey: E }); }; - this[s(2120)](); - const f = (e == null ? void 0 : e[s(2357)]) || this[s(1005)][s(2357)], l = ((h = e == null ? void 0 : e[s(2660)]) == null ? void 0 : h[s(1092)]) !== void 0 ? e[s(2660)][s(1092)] : this[s(1005)][s(2660)][s(1092)]; - return [{ regex: this.regexpUnescape, safeValue: (m) => Kx(m) }, { regex: this[s(652)], safeValue: (m) => this.escapeValue ? Kx(this[s(342)](m)) : Kx(m) }][s(1471)]((m) => { + this.resetRegExp(); + const l = (e == null ? void 0 : e[s(1511)]) || this.options[s(1511)], f = ((h = e == null ? void 0 : e[s(1146)]) == null ? void 0 : h[s(2705)]) !== void 0 ? e[s(1146)].skipOnVariables : this[s(961)].interpolation[s(2705)]; + return [{ regex: this[s(461)], safeValue: (m) => Kx(m) }, { regex: this[s(1778)], safeValue: (m) => this[s(835)] ? Kx(this[s(2329)](m)) : Kx(m) }][s(1953)]((m) => { const v = s; - for (c = 0; n = m[v(2764)][v(537)](x); ) { + for (c = 0; n = m[v(2830)][v(1661)](x); ) { const k = n[1].trim(); if (i = d(k), i === void 0) - if (typeof f === v(1622)) { - const A = f(x, n, e); - i = b0(A) ? A : ""; - } else if (e && Object[v(2249)].hasOwnProperty.call(e, k)) i = ""; - else if (l) { + if (typeof l === v(1235)) { + const q = l(x, n, e); + i = be(q) ? q : ""; + } else if (e && Object[v(1700)].hasOwnProperty[v(377)](e, k)) i = ""; + else if (f) { i = n[0]; continue; - } else this[v(1610)][v(343)]("missed to pass in variable " + k + v(1498) + x), i = ""; - else !b0(i) && !this[v(1940)] && (i = Ua(i)); - const I = m.safeValue(i); - if (x = x[v(575)](n[0], I), l ? (m[v(2764)][v(947)] += i[v(692)], m[v(2764)][v(947)] -= n[0][v(692)]) : m[v(2764)].lastIndex = 0, c++, c >= this[v(2064)]) break; + } else this[v(665)][v(196)]("missed to pass in variable " + k + v(1438) + x), i = ""; + else !be(i) && !this.useRawValueToEscape && (i = Ua(i)); + const E = m[v(2219)](i); + if (x = x.replace(n[0], E), f ? (m[v(2830)][v(2719)] += i.length, m[v(2830)].lastIndex -= n[0][v(1332)]) : m[v(2830)].lastIndex = 0, c++, c >= this[v(799)]) break; } }), x; } - [a(1742)](x, t, r = {}) { + [a(758)](x, t, r = {}) { const e = a; let s, n, i; const c = (u, d) => { - const f = K, l = this[f(2466)]; - if (u[f(311)](l) < 0) return u; - const b = u[f(628)](new RegExp(l + "[ ]*{")); + const l = K, f = this[l(2300)]; + if (u[l(1104)](f) < 0) return u; + const b = u[l(585)](new RegExp(f + l(1479))); let h = "{" + b[1]; - u = b[0], h = this[f(2678)](h, i); - const m = h.match(/'/g), v = h[f(430)](/"/g); - (((m == null ? void 0 : m[f(692)]) ?? 0) % 2 === 0 && !v || v[f(692)] % 2 !== 0) && (h = h.replace(/'/g, '"')); + u = b[0], h = this[l(2368)](h, i); + const m = h[l(2716)](/'/g), v = h[l(2716)](/"/g); + (((m == null ? void 0 : m[l(1332)]) ?? 0) % 2 === 0 && !v || v[l(1332)] % 2 !== 0) && (h = h[l(784)](/'/g, '"')); try { - i = JSON[f(706)](h), d && (i = { ...d, ...i }); + i = JSON[l(429)](h), d && (i = { ...d, ...i }); } catch (k) { - return this[f(1610)][f(343)](f(2587) + u, k), "" + u + l + h; + return this[l(665)][l(196)](l(2447) + u, k), "" + u + f + h; } - return i[f(244)] && i[f(244)][f(311)](this[f(338)]) > -1 && delete i[f(244)], u; + return i[l(397)] && i[l(397)][l(1104)](this[l(2688)]) > -1 && delete i.defaultValue, u; }; - for (; s = this.nestingRegexp[e(537)](x); ) { + for (; s = this.nestingRegexp.exec(x); ) { let u = []; - i = { ...r }, i = i[e(575)] && !b0(i[e(575)]) ? i[e(575)] : i, i[e(1990)] = !1, delete i[e(244)]; - const d = /{.*}/[e(1904)](s[1]) ? s[1][e(1923)]("}") + 1 : s[1][e(311)](this[e(684)]); - if (d !== -1 && (u = s[1][e(2088)](d)[e(628)](this[e(684)]).map((f) => f.trim())[e(2145)](Boolean), s[1] = s[1][e(2088)](0, d)), n = t(c[e(1994)](this, s[1].trim(), i), i), n && s[0] === x && !b0(n)) return n; - b0(n) || (n = Ua(n)), !n && (this.logger[e(343)](e(1059) + s[1] + e(1689) + x), n = ""), u.length && (n = u[e(172)]((f, l) => this.format(f, l, r[e(524)], { ...r, interpolationkey: s[1][e(2444)]() }), n[e(2444)]())), x = x.replace(s[0], n), this[e(652)][e(947)] = 0; + i = { ...r }, i = i[e(784)] && !be(i[e(784)]) ? i.replace : i, i[e(2381)] = !1, delete i[e(397)]; + const d = /{.*}/[e(1055)](s[1]) ? s[1][e(498)]("}") + 1 : s[1][e(1104)](this[e(2190)]); + if (d !== -1 && (u = s[1][e(2103)](d)[e(585)](this[e(2190)])[e(2742)]((l) => l[e(436)]())[e(1706)](Boolean), s[1] = s[1][e(2103)](0, d)), n = t(c[e(377)](this, s[1][e(436)](), i), i), n && s[0] === x && !be(n)) return n; + be(n) || (n = Ua(n)), !n && (this[e(665)][e(196)](e(1739) + s[1] + e(1199) + x), n = ""), u.length && (n = u.reduce((l, f) => this[e(2039)](l, f, r[e(892)], { ...r, interpolationkey: s[1].trim() }), n.trim())), x = x[e(784)](s[0], n), this.regexp[e(2719)] = 0; } return x; } } -const ki = (o) => { +const Ii = (o) => { const x = a; - let t = o[x(556)]().trim(); + let t = o[x(2522)]()[x(436)](); const r = {}; - if (o[x(311)]("(") > -1) { - const e = o[x(628)]("("); - t = e[0][x(556)]()[x(2444)](); - const s = e[1][x(1163)](0, e[1][x(692)] - 1); - t === "currency" && s.indexOf(":") < 0 ? r.currency || (r[x(199)] = s[x(2444)]()) : t === x(983) && s.indexOf(":") < 0 ? r[x(743)] || (r.range = s.trim()) : s[x(628)](";")[x(1471)]((i) => { + if (o[x(1104)]("(") > -1) { + const e = o[x(585)]("("); + t = e[0][x(2522)]()[x(436)](); + const s = e[1][x(2453)](0, e[1][x(1332)] - 1); + t === x(1978) && s[x(1104)](":") < 0 ? r[x(1978)] || (r[x(1978)] = s[x(436)]()) : t === "relativetime" && s[x(1104)](":") < 0 ? r[x(1293)] || (r.range = s.trim()) : s.split(";")[x(1953)]((i) => { const c = x; if (i) { - const [u, ...d] = i.split(":"), f = d[c(2137)](":")[c(2444)]()[c(575)](/^'+|'+$/g, ""), l = u[c(2444)](); - r[l] || (r[l] = f), f === c(2205) && (r[l] = !1), f === c(2704) && (r[l] = !0), isNaN(f) || (r[l] = parseInt(f, 10)); + const [u, ...d] = i[c(585)](":"), l = d.join(":")[c(436)]()[c(784)](/^'+|'+$/g, ""), f = u[c(436)](); + r[f] || (r[f] = l), l === c(512) && (r[f] = !1), l === c(1458) && (r[f] = !0), isNaN(l) || (r[f] = parseInt(l, 10)); } }); } @@ -3878,133 +3878,132 @@ const ki = (o) => { return (t, r, e) => { const s = K; let n = e; - e && e[s(1577)] && e[s(2074)] && e.formatParams[e[s(1577)]] && e[e[s(1577)]] && (n = { ...n, [e[s(1577)]]: void 0 }); - const i = r + JSON[s(2625)](n); + e && e[s(760)] && e.formatParams && e.formatParams[e[s(760)]] && e[e.interpolationkey] && (n = { ...n, [e.interpolationkey]: void 0 }); + const i = r + JSON[s(306)](n); let c = x[i]; return !c && (c = o(sx(r), e), x[i] = c), c(t); }; -}, Pi = (o) => (x, t, r) => o(sx(t), r)(x); -class Ii { +}, Ci = (o) => (x, t, r) => o(sx(t), r)(x); +class Ri { constructor(x = {}) { const t = a; - this.logger = fe[t(665)](t(839)), this.options = x, this[t(2636)](x); + this[t(665)] = f0[t(2469)](t(1611)), this[t(961)] = x, this[t(943)](x); } - [a(2636)](x, t = { interpolation: {} }) { + [a(943)](x, t = { interpolation: {} }) { const r = a; - this.formatSeparator = t[r(2660)][r(684)] || ","; - const e = t.cacheInBuiltFormats ? Xa : Pi; - this[r(823)] = { number: e((s, n) => { - const i = r, c = new Intl[i(643)](s, { ...n }); - return (u) => c[i(2197)](u); + this[r(2190)] = t[r(1146)][r(2190)] || ","; + const e = t[r(514)] ? Xa : Ci; + this[r(2726)] = { number: e((s, n) => { + const i = r, c = new Intl.NumberFormat(s, { ...n }); + return (u) => c[i(2039)](u); }), currency: e((s, n) => { - const i = r, c = new Intl.NumberFormat(s, { ...n, style: "currency" }); - return (u) => c[i(2197)](u); + const i = r, c = new Intl[i(522)](s, { ...n, style: i(1978) }); + return (u) => c[i(2039)](u); }), datetime: e((s, n) => { - const i = r, c = new Intl[i(648)](s, { ...n }); - return (u) => c[i(2197)](u); + const i = r, c = new Intl.DateTimeFormat(s, { ...n }); + return (u) => c[i(2039)](u); }), relativetime: e((s, n) => { - const i = r, c = new Intl.RelativeTimeFormat(s, { ...n }); - return (u) => c.format(u, n[i(743)] || i(262)); + const i = r, c = new Intl[i(801)](s, { ...n }); + return (u) => c[i(2039)](u, n[i(1293)] || i(2323)); }), list: e((s, n) => { - const i = r, c = new Intl[i(675)](s, { ...n }); - return (u) => c[i(2197)](u); + const i = r, c = new Intl.ListFormat(s, { ...n }); + return (u) => c[i(2039)](u); }) }; } - [a(2655)](x, t) { + [a(479)](x, t) { const r = a; - this[r(823)][x.toLowerCase()[r(2444)]()] = t; + this[r(2726)][x[r(2522)]()[r(436)]()] = t; } - [a(381)](x, t) { + addCached(x, t) { const r = a; - this[r(823)][x[r(556)]()[r(2444)]()] = Xa(t); + this[r(2726)][x.toLowerCase()[r(436)]()] = Xa(t); } - [a(2197)](x, t, r, e = {}) { - const s = a, n = t[s(628)](this.formatSeparator); - if (n[s(692)] > 1 && n[0][s(311)]("(") > 1 && n[0][s(311)](")") < 0 && n[s(1341)]((c) => c.indexOf(")") > -1)) { - const c = n[s(2503)]((u) => u[s(311)](")") > -1); - n[0] = [n[0], ...n[s(2605)](1, c)].join(this[s(684)]); + [a(2039)](x, t, r, e = {}) { + const s = a, n = t[s(585)](this[s(2190)]); + if (n.length > 1 && n[0][s(1104)]("(") > 1 && n[0][s(1104)](")") < 0 && n[s(1036)]((c) => c[s(1104)](")") > -1)) { + const c = n.findIndex((u) => u[s(1104)](")") > -1); + n[0] = [n[0], ...n[s(2301)](1, c)][s(2252)](this.formatSeparator); } - return n.reduce((c, u) => { + return n[s(1774)]((c, u) => { var b; - const d = s, { formatName: f, formatOptions: l } = ki(u); - if (this[d(823)][f]) { + const d = s, { formatName: l, formatOptions: f } = Ii(u); + if (this.formats[l]) { let h = c; try { - const m = ((b = e == null ? void 0 : e[d(2074)]) == null ? void 0 : b[e.interpolationkey]) || {}, v = m[d(580)] || m[d(524)] || e[d(580)] || e.lng || r; - h = this[d(823)][f](c, v, { ...l, ...e, ...m }); + const m = ((b = e == null ? void 0 : e[d(727)]) == null ? void 0 : b[e[d(760)]]) || {}, v = m[d(885)] || m[d(892)] || e[d(885)] || e[d(892)] || r; + h = this[d(2726)][l](c, v, { ...f, ...e, ...m }); } catch (m) { - this[d(1610)][d(343)](m); + this[d(665)][d(196)](m); } return h; - } else this[d(1610)][d(343)](d(694) + f); + } else this[d(665)][d(196)](d(2682) + l); return c; }, x); } } -const Ei = (o, x) => { +const Fi = (o, x) => { const t = a; - o[t(1028)][x] !== void 0 && (delete o.pending[x], o[t(742)]--); + o[t(2285)][x] !== void 0 && (delete o[t(2285)][x], o[t(711)]--); }; -class Ri extends Ax { +class Ni extends Ax { constructor(x, t, r, e = {}) { var n, i; const s = a; - super(), this[s(1259)] = x, this[s(2585)] = t, this.services = r, this[s(2469)] = r[s(2469)], this[s(1005)] = e, this[s(1610)] = fe[s(665)](s(2296)), this.waitingReads = [], this[s(932)] = e[s(932)] || 10, this[s(410)] = 0, this.maxRetries = e[s(220)] >= 0 ? e[s(220)] : 5, this.retryTimeout = e[s(2676)] >= 1 ? e[s(2676)] : 350, this.state = {}, this[s(1153)] = [], (i = (n = this.backend) == null ? void 0 : n[s(2636)]) == null || i.call(n, r, e[s(1259)], e); + super(), this.backend = x, this[s(2277)] = t, this[s(686)] = r, this.languageUtils = r[s(2420)], this[s(961)] = e, this.logger = f0.create(s(1135)), this[s(1024)] = [], this[s(2334)] = e[s(2334)] || 10, this[s(1233)] = 0, this[s(443)] = e[s(443)] >= 0 ? e[s(443)] : 5, this.retryTimeout = e[s(2106)] >= 1 ? e.retryTimeout : 350, this[s(2633)] = {}, this[s(1834)] = [], (i = (n = this.backend) == null ? void 0 : n[s(943)]) == null || i.call(n, r, e[s(694)], e); } - [a(645)](x, t, r, e) { + [a(709)](x, t, r, e) { const s = a, n = {}, i = {}, c = {}, u = {}; - return x[s(1471)]((d) => { - const f = s; - let l = !0; - t[f(1471)]((b) => { - const h = f, m = d + "|" + b; - !r[h(1067)] && this[h(2585)][h(1457)](d, b) ? this[h(521)][m] = 2 : this[h(521)][m] < 0 || (this.state[m] === 1 ? i[m] === void 0 && (i[m] = !0) : (this.state[m] = 1, l = !1, i[m] === void 0 && (i[m] = !0), n[m] === void 0 && (n[m] = !0), u[b] === void 0 && (u[b] = !0))); - }), l || (c[d] = !0); - }), (Object[s(750)](n)[s(692)] || Object[s(750)](i).length) && this.queue[s(452)]({ pending: i, pendingCount: Object[s(750)](i)[s(692)], loaded: {}, errors: [], callback: e }), { toLoad: Object[s(750)](n), pending: Object[s(750)](i), toLoadLanguages: Object[s(750)](c), toLoadNamespaces: Object[s(750)](u) }; + return x[s(1953)]((d) => { + const l = s; + let f = !0; + t[l(1953)]((b) => { + const h = l, m = d + "|" + b; + !r[h(2263)] && this[h(2277)][h(2449)](d, b) ? this[h(2633)][m] = 2 : this[h(2633)][m] < 0 || (this.state[m] === 1 ? i[m] === void 0 && (i[m] = !0) : (this[h(2633)][m] = 1, f = !1, i[m] === void 0 && (i[m] = !0), n[m] === void 0 && (n[m] = !0), u[b] === void 0 && (u[b] = !0))); + }), f || (c[d] = !0); + }), (Object[s(1806)](n)[s(1332)] || Object[s(1806)](i)[s(1332)]) && this[s(1834)][s(902)]({ pending: i, pendingCount: Object.keys(i)[s(1332)], loaded: {}, errors: [], callback: e }), { toLoad: Object[s(1806)](n), pending: Object[s(1806)](i), toLoadLanguages: Object[s(1806)](c), toLoadNamespaces: Object[s(1806)](u) }; } - [a(566)](x, t, r) { - const e = a, s = x[e(628)]("|"), n = s[0], i = s[1]; - t && this.emit(e(2751), n, i, t), !t && r && this[e(2585)][e(2167)](n, i, r, void 0, void 0, { skipCopy: !0 }), this[e(521)][x] = t ? -1 : 2, t && r && (this[e(521)][x] = 0); + [a(2423)](x, t, r) { + const e = a, s = x[e(585)]("|"), n = s[0], i = s[1]; + t && this[e(990)](e(1456), n, i, t), !t && r && this[e(2277)][e(2736)](n, i, r, void 0, void 0, { skipCopy: !0 }), this[e(2633)][x] = t ? -1 : 2, t && r && (this.state[x] = 0); const c = {}; - this[e(1153)][e(1471)]((u) => { + this.queue.forEach((u) => { const d = e; - fi(u[d(566)], [n], i), Ei(u, x), t && u[d(1672)].push(t), u[d(742)] === 0 && !u[d(1815)] && (Object[d(750)](u.loaded)[d(1471)]((f) => { - const l = d; - c[f] || (c[f] = {}); - const b = u[l(566)][f]; - b[l(692)] && b[l(1471)]((h) => { - c[f][h] === void 0 && (c[f][h] = !0); + pi(u[d(2423)], [n], i), Fi(u, x), t && u[d(638)][d(902)](t), u.pendingCount === 0 && !u[d(1398)] && (Object.keys(u[d(2423)]).forEach((l) => { + const f = d; + c[l] || (c[l] = {}); + const b = u[f(2423)][l]; + b[f(1332)] && b[f(1953)]((h) => { + c[l][h] === void 0 && (c[l][h] = !0); }); - }), u.done = !0, u[d(1672)].length ? u[d(554)](u[d(1672)]) : u[d(554)]()); - }), this[e(1066)](e(566), c), this.queue = this[e(1153)][e(2145)]((u) => !u.done); + }), u.done = !0, u.errors[d(1332)] ? u.callback(u[d(638)]) : u.callback()); + }), this[e(990)](e(2423), c), this.queue = this[e(1834)][e(1706)]((u) => !u[e(1398)]); } - [a(346)](x, t, r, e = 0, s = this[a(2676)], n) { + read(x, t, r, e = 0, s = this[a(2106)], n) { const i = a; - if (!x[i(692)]) return n(null, {}); - if (this[i(410)] >= this[i(932)]) { - this[i(1658)][i(452)]({ lng: x, ns: t, fcName: r, tried: e, wait: s, callback: n }); + if (!x[i(1332)]) return n(null, {}); + if (this[i(1233)] >= this[i(2334)]) { + this.waitingReads[i(902)]({ lng: x, ns: t, fcName: r, tried: e, wait: s, callback: n }); return; } - this[i(410)]++; - const c = (d, f) => { - const l = i; - if (this[l(410)]--, this[l(1658)][l(692)] > 0) { - const b = this[l(1658)][l(252)](); - this[l(346)](b[l(524)], b.ns, b[l(2329)], b[l(2005)], b[l(2812)], b[l(554)]); + this.readingCalls++; + const c = (d, l) => { + const f = i; + if (this[f(1233)]--, this.waitingReads.length > 0) { + const b = this.waitingReads.shift(); + this.read(b[f(892)], b.ns, b[f(2422)], b[f(1918)], b[f(2133)], b[f(1352)]); } - if (d && f && e < this[l(220)]) { + if (d && l && e < this[f(443)]) { setTimeout(() => { - const b = l; - this[b(346)][b(1994)](this, x, t, r, e + 1, s * 2, n); + this[f(1289)].call(this, x, t, r, e + 1, s * 2, n); }, s); return; } - n(d, f); - }, u = this[i(1259)][r][i(2488)](this[i(1259)]); - if (u[i(692)] === 2) { + n(d, l); + }, u = this[i(694)][r][i(591)](this[i(694)]); + if (u.length === 2) { try { const d = u(x, t); - d && typeof d.then === i(1622) ? d.then((f) => c(null, f))[i(1995)](c) : c(null, d); + d && typeof d[i(723)] == "function" ? d[i(723)]((l) => c(null, l)).catch(c) : c(null, d); } catch (d) { c(d); } @@ -4012,364 +4011,358 @@ class Ri extends Ax { } return u(x, t, c); } - [a(711)](x, t, r = {}, e) { + prepareLoading(x, t, r = {}, e) { const s = a; - if (!this.backend) return this[s(1610)][s(343)](s(2820)), e && e(); - b0(x) && (x = this[s(2469)].toResolveHierarchy(x)), b0(t) && (t = [t]); - const n = this[s(645)](x, t, r, e); - if (!n[s(1070)][s(692)]) - return n[s(1028)][s(692)] || e(), null; - n.toLoad[s(1471)]((i) => { - this[s(2880)](i); + if (!this[s(694)]) return this.logger[s(196)](s(2816)), e && e(); + be(x) && (x = this[s(2420)][s(1227)](x)), be(t) && (t = [t]); + const n = this[s(709)](x, t, r, e); + if (!n.toLoad[s(1332)]) + return n[s(2285)][s(1332)] || e(), null; + n[s(904)][s(1953)]((i) => { + this[s(2053)](i); }); } - [a(2622)](x, t, r) { - this.prepareLoading(x, t, {}, r); + load(x, t, r) { + this[a(1606)](x, t, {}, r); } - [a(1067)](x, t, r) { - this[a(711)](x, t, { reload: !0 }, r); + [a(2263)](x, t, r) { + this.prepareLoading(x, t, { reload: !0 }, r); } - [a(2880)](x, t = "") { - const r = a, e = x[r(628)]("|"), s = e[0], n = e[1]; - this[r(346)](s, n, r(346), void 0, void 0, (i, c) => { + [a(2053)](x, t = "") { + const r = a, e = x.split("|"), s = e[0], n = e[1]; + this[r(1289)](s, n, r(1289), void 0, void 0, (i, c) => { const u = r; - i && this[u(1610)].warn(t + u(2314) + n + u(1606) + s + u(1881), i), !i && c && this.logger[u(2818)](t + u(673) + n + u(1606) + s, c), this.loaded(x, i, c); + i && this[u(665)][u(196)](t + u(1302) + n + " for language " + s + u(345), i), !i && c && this.logger[u(1872)](t + u(163) + n + u(945) + s, c), this.loaded(x, i, c); }); } - [a(2085)](x, t, r, e, s, n = {}, i = () => { + [a(453)](x, t, r, e, s, n = {}, i = () => { }) { - var u, d, f, l, b; + var u, d, l, f, b; const c = a; - if ((d = (u = this[c(1748)]) == null ? void 0 : u[c(1781)]) != null && d[c(286)] && !((l = (f = this[c(1748)]) == null ? void 0 : f[c(1781)]) != null && l[c(286)](t))) { - this[c(1610)][c(343)](c(370) + r + '" as the namespace "' + t + c(1526), c(2363)); + if ((d = (u = this[c(686)]) == null ? void 0 : u.utils) != null && d.hasLoadedNamespace && !((f = (l = this[c(686)]) == null ? void 0 : l.utils) != null && f[c(328)](t))) { + this.logger[c(196)](c(2822) + r + '" as the namespace "' + t + c(2832), c(1376)); return; } if (!(r == null || r === "")) { - if ((b = this[c(1259)]) != null && b[c(665)]) { - const h = { ...n, isUpdate: s }, m = this[c(1259)][c(665)].bind(this.backend); - if (m.length < 6) try { + if ((b = this[c(694)]) != null && b.create) { + const h = { ...n, isUpdate: s }, m = this[c(694)].create[c(591)](this[c(694)]); + if (m[c(1332)] < 6) try { let v; - m[c(692)] === 5 ? v = m(x, t, r, e, h) : v = m(x, t, r, e), v && typeof v[c(2403)] === c(1622) ? v.then((k) => i(null, k))[c(1995)](i) : i(null, v); + m.length === 5 ? v = m(x, t, r, e, h) : v = m(x, t, r, e), v && typeof v[c(723)] == "function" ? v[c(723)]((k) => i(null, k))[c(1539)](i) : i(null, v); } catch (v) { i(v); } else m(x, t, r, e, i, h); } - !x || !x[0] || this[c(2585)][c(1088)](x[0], t, r, e); + !x || !x[0] || this[c(2277)][c(1440)](x[0], t, r, e); } } } -const Ya = () => ({ debug: !1, initAsync: !0, ns: [a(1196)], defaultNS: ["translation"], fallbackLng: [a(1527)], fallbackNS: !1, supportedLngs: !1, nonExplicitSupportedLngs: !1, load: "all", preload: !1, simplifyPluralSuffix: !0, keySeparator: ".", nsSeparator: ":", pluralSeparator: "_", contextSeparator: "_", partialBundledLanguages: !1, saveMissing: !1, updateMissing: !1, saveMissingTo: a(292), saveMissingPlurals: !0, missingKeyHandler: !1, missingInterpolationHandler: !1, postProcess: !1, postProcessPassResolved: !1, returnNull: !1, returnEmptyString: !0, returnObjects: !1, joinArrays: !1, returnedObjectHandler: !1, parseMissingKeyHandler: !1, appendNamespaceToMissingKey: !1, appendNamespaceToCIMode: !1, overloadTranslationOptionHandler: (o) => { +const Ya = () => ({ debug: !1, initAsync: !0, ns: [a(1799)], defaultNS: [a(1799)], fallbackLng: [a(1236)], fallbackNS: !1, supportedLngs: !1, nonExplicitSupportedLngs: !1, load: "all", preload: !1, simplifyPluralSuffix: !0, keySeparator: ".", nsSeparator: ":", pluralSeparator: "_", contextSeparator: "_", partialBundledLanguages: !1, saveMissing: !1, updateMissing: !1, saveMissingTo: a(884), saveMissingPlurals: !0, missingKeyHandler: !1, missingInterpolationHandler: !1, postProcess: !1, postProcessPassResolved: !1, returnNull: !1, returnEmptyString: !0, returnObjects: !1, joinArrays: !1, returnedObjectHandler: !1, parseMissingKeyHandler: !1, appendNamespaceToMissingKey: !1, appendNamespaceToCIMode: !1, overloadTranslationOptionHandler: (o) => { const x = a; let t = {}; - if (typeof o[1] === x(544) && (t = o[1]), b0(o[1]) && (t[x(244)] = o[1]), b0(o[2]) && (t[x(698)] = o[2]), typeof o[2] === x(544) || typeof o[3] === x(544)) { + if (typeof o[1] == "object" && (t = o[1]), be(o[1]) && (t[x(397)] = o[1]), be(o[2]) && (t[x(1496)] = o[2]), typeof o[2] === x(2844) || typeof o[3] == "object") { const r = o[3] || o[2]; - Object[x(750)](r).forEach((e) => { + Object[x(1806)](r)[x(1953)]((e) => { t[e] = r[e]; }); } return t; -}, interpolation: { escapeValue: !0, format: (o) => o, prefix: "{{", suffix: "}}", formatSeparator: ",", unescapePrefix: "-", nestingPrefix: a(1941), nestingSuffix: ")", nestingOptionsSeparator: ",", maxReplaces: 1e3, skipOnVariables: !0 }, cacheInBuiltFormats: !0 }), er = (o) => { +}, interpolation: { escapeValue: !0, format: (o) => o, prefix: "{{", suffix: "}}", formatSeparator: ",", unescapePrefix: "-", nestingPrefix: a(1434), nestingSuffix: ")", nestingOptionsSeparator: ",", maxReplaces: 1e3, skipOnVariables: !0 }, cacheInBuiltFormats: !0 }), er = (o) => { var t, r; const x = a; - return b0(o.ns) && (o.ns = [o.ns]), b0(o[x(1524)]) && (o.fallbackLng = [o[x(1524)]]), b0(o[x(1530)]) && (o[x(1530)] = [o[x(1530)]]), ((r = (t = o[x(1775)]) == null ? void 0 : t[x(311)]) == null ? void 0 : r.call(t, x(2639))) < 0 && (o[x(1775)] = o[x(1775)][x(2044)]([x(2639)])), typeof o.initImmediate === x(1146) && (o[x(1730)] = o[x(1308)]), o; + return be(o.ns) && (o.ns = [o.ns]), be(o[x(2218)]) && (o.fallbackLng = [o.fallbackLng]), be(o[x(1461)]) && (o[x(1461)] = [o[x(1461)]]), ((r = (t = o[x(2605)]) == null ? void 0 : t.indexOf) == null ? void 0 : r.call(t, x(1590))) < 0 && (o[x(2605)] = o[x(2605)][x(1545)]([x(1590)])), typeof o[x(308)] === x(1001) && (o[x(680)] = o[x(308)]), o; }, hx = () => { -}, Ci = (o) => { +}, Ti = (o) => { const x = a; - Object[x(2020)](Object.getPrototypeOf(o)).forEach((r) => { + Object.getOwnPropertyNames(Object[x(2386)](o)).forEach((r) => { const e = x; - typeof o[r] === e(1622) && (o[r] = o[r][e(2488)](o)); + typeof o[r] === e(1235) && (o[r] = o[r].bind(o)); }); }; -class xx extends Ax { +class ex extends Ax { constructor(x = {}, t) { const r = a; - if (super(), this[r(1005)] = er(x), this[r(1748)] = {}, this.logger = fe, this[r(681)] = { external: [] }, Ci(this), t && !this[r(182)] && !x[r(2345)]) { - if (!this[r(1005)][r(1730)]) return this[r(2636)](x, t), this; + if (super(), this.options = er(x), this[r(686)] = {}, this[r(665)] = f0, this[r(669)] = { external: [] }, Ti(this), t && !this.isInitialized && !x[r(1245)]) { + if (!this[r(961)].initAsync) return this[r(943)](x, t), this; setTimeout(() => { - this[r(2636)](x, t); + this.init(x, t); }, 0); } } - [a(2636)](x = {}, t) { + [a(943)](x = {}, t) { const r = a; - this[r(670)] = !0, typeof x == "function" && (t = x, x = {}), x[r(2412)] == null && x.ns && (b0(x.ns) ? x[r(2412)] = x.ns : x.ns[r(311)](r(1196)) < 0 && (x[r(2412)] = x.ns[0])); + this[r(1389)] = !0, typeof x === r(1235) && (t = x, x = {}), x[r(1838)] == null && x.ns && (be(x.ns) ? x.defaultNS = x.ns : x.ns[r(1104)]("translation") < 0 && (x[r(1838)] = x.ns[0])); const e = Ya(); - this[r(1005)] = { ...e, ...this[r(1005)], ...er(x) }, this[r(1005)].interpolation = { ...e[r(2660)], ...this[r(1005)].interpolation }, x[r(774)] !== void 0 && (this[r(1005)][r(1329)] = x[r(774)]), x[r(1559)] !== void 0 && (this[r(1005)][r(1073)] = x[r(1559)]); - const s = (d) => d ? typeof d == "function" ? new d() : d : null; - if (!this[r(1005)].isClone) { - this[r(681)][r(1610)] ? fe[r(2636)](s(this[r(681)][r(1610)]), this[r(1005)]) : fe[r(2636)](null, this[r(1005)]); + this[r(961)] = { ...e, ...this[r(961)], ...er(x) }, this[r(961)][r(1146)] = { ...e[r(1146)], ...this[r(961)][r(1146)] }, x[r(2720)] !== void 0 && (this.options[r(407)] = x[r(2720)]), x[r(879)] !== void 0 && (this[r(961)].userDefinedNsSeparator = x.nsSeparator); + const s = (d) => { + const l = r; + return d ? typeof d === l(1235) ? new d() : d : null; + }; + if (!this[r(961)].isClone) { + this[r(669)][r(665)] ? f0[r(943)](s(this.modules.logger), this[r(961)]) : f0[r(943)](null, this[r(961)]); let d; - this.modules[r(839)] ? d = this[r(681)][r(839)] : d = Ii; - const f = new Wa(this[r(1005)]); - this[r(2585)] = new Ba(this.options[r(2498)], this[r(1005)]); - const l = this[r(1748)]; - l[r(1610)] = fe, l[r(2709)] = this[r(2585)], l[r(2469)] = f, l[r(322)] = new Si(f, { prepend: this.options[r(2139)], simplifyPluralSuffix: this[r(1005)][r(1007)] }), this[r(1005)][r(2660)][r(2197)] && this[r(1005)].interpolation[r(2197)] !== e[r(2660)][r(2197)] && this[r(1610)][r(1717)]("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), d && (!this.options[r(2660)][r(2197)] || this[r(1005)][r(2660)].format === e.interpolation[r(2197)]) && (l[r(839)] = s(d), l[r(839)].init && l[r(839)][r(2636)](l, this[r(1005)]), this[r(1005)][r(2660)][r(2197)] = l[r(839)][r(2197)][r(2488)](l[r(839)])), l[r(951)] = new Qa(this[r(1005)]), l[r(1781)] = { hasLoadedNamespace: this.hasLoadedNamespace[r(2488)](this) }, l.backendConnector = new Ri(s(this[r(681)][r(1259)]), l[r(2709)], l, this[r(1005)]), l[r(2296)].on("*", (h, ...m) => { - this[r(1066)](h, ...m); - }), this[r(681)][r(1743)] && (l[r(1743)] = s(this[r(681)].languageDetector), l[r(1743)][r(2636)] && l[r(1743)][r(2636)](l, this[r(1005)][r(1925)], this.options)), this[r(681)][r(1752)] && (l[r(1752)] = s(this[r(681)].i18nFormat), l[r(1752)][r(2636)] && l[r(1752)][r(2636)](this)), this.translator = new Fx(this.services, this.options), this[r(853)].on("*", (h, ...m) => { - this[r(1066)](h, ...m); - }), this[r(681)][r(1143)][r(1471)]((h) => { - const m = r; - h[m(2636)] && h[m(2636)](this); + this[r(669)][r(1611)] ? d = this[r(669)].formatter : d = Ri; + const l = new Za(this[r(961)]); + this[r(2277)] = new Ba(this[r(961)][r(554)], this[r(961)]); + const f = this[r(686)]; + f.logger = f0, f[r(1472)] = this[r(2277)], f[r(2420)] = l, f.pluralResolver = new Ei(l, { prepend: this.options[r(881)], simplifyPluralSuffix: this.options[r(766)] }), this[r(961)][r(1146)][r(2039)] && this[r(961)].interpolation[r(2039)] !== e.interpolation[r(2039)] && this[r(665)][r(1701)](r(211)), d && (!this[r(961)].interpolation[r(2039)] || this.options[r(1146)][r(2039)] === e[r(1146)][r(2039)]) && (f[r(1611)] = s(d), f[r(1611)][r(943)] && f[r(1611)][r(943)](f, this[r(961)]), this.options.interpolation[r(2039)] = f[r(1611)][r(2039)].bind(f[r(1611)])), f.interpolator = new Qa(this.options), f[r(1995)] = { hasLoadedNamespace: this.hasLoadedNamespace[r(591)](this) }, f[r(1135)] = new Ni(s(this[r(669)][r(694)]), f.resourceStore, f, this[r(961)]), f[r(1135)].on("*", (h, ...m) => { + this[r(990)](h, ...m); + }), this[r(669)][r(2756)] && (f[r(2756)] = s(this.modules[r(2756)]), f.languageDetector.init && f[r(2756)][r(943)](f, this[r(961)][r(1682)], this.options)), this[r(669)][r(1044)] && (f[r(1044)] = s(this[r(669)][r(1044)]), f[r(1044)][r(943)] && f.i18nFormat[r(943)](this)), this[r(489)] = new Fx(this.services, this[r(961)]), this[r(489)].on("*", (h, ...m) => { + this[r(990)](h, ...m); + }), this[r(669)][r(2568)][r(1953)]((h) => { + h[r(943)] && h.init(this); }); } - if (this.format = this[r(1005)][r(2660)].format, t || (t = hx), this[r(1005)][r(1524)] && !this[r(1748)][r(1743)] && !this[r(1005)][r(524)]) { - const d = this[r(1748)].languageUtils[r(1391)](this.options.fallbackLng); - d[r(692)] > 0 && d[0] !== r(1527) && (this[r(1005)][r(524)] = d[0]); + if (this[r(2039)] = this[r(961)][r(1146)][r(2039)], t || (t = hx), this.options.fallbackLng && !this[r(686)][r(2756)] && !this[r(961)][r(892)]) { + const d = this[r(686)].languageUtils[r(668)](this.options.fallbackLng); + d[r(1332)] > 0 && d[0] !== r(1236) && (this.options[r(892)] = d[0]); } - !this.services[r(1743)] && !this[r(1005)][r(524)] && this[r(1610)][r(343)](r(992)), [r(1424), r(1457), r(1804), "getDataByLanguage"][r(1471)]((d) => { - this[d] = (...f) => this.store[d](...f); - }), [r(1088), r(1878), r(2167), r(2332)][r(1471)]((d) => { - this[d] = (...f) => (this[K(2585)][d](...f), this); + !this[r(686)][r(2756)] && !this.options[r(892)] && this[r(665)].warn(r(506)), [r(2610), r(2449), "getResourceBundle", r(1033)][r(1953)]((d) => { + const l = r; + this[d] = (...f) => this[l(2277)][d](...f); + }), ["addResource", r(511), r(2736), "removeResourceBundle"].forEach((d) => { + this[d] = (...l) => (this[K(2277)][d](...l), this); }); - const c = Je(), u = () => { - const d = r, f = (l, b) => { + const c = J0(), u = () => { + const d = r, l = (f, b) => { const h = K; - this[h(670)] = !1, this[h(182)] && !this.initializedStoreOnce && this[h(1610)].warn(h(2825)), this[h(182)] = !0, this[h(1005)][h(2345)] || this[h(1610)].log(h(728), this[h(1005)]), this[h(1066)](h(728), this[h(1005)]), c[h(1571)](b), t(l, b); + this[h(1389)] = !1, this.isInitialized && !this[h(1769)] && this[h(665)][h(196)](h(2184)), this[h(707)] = !0, this[h(961)][h(1245)] || this[h(665)][h(1872)](h(385), this.options), this[h(990)](h(385), this[h(961)]), c[h(1635)](b), t(f, b); }; - if (this[d(1041)] && !this[d(182)]) return f(null, this.t.bind(this)); - this[d(1918)](this[d(1005)][d(524)], f); + if (this[d(2353)] && !this[d(707)]) return l(null, this.t[d(591)](this)); + this[d(2802)](this.options[d(892)], l); }; - return this[r(1005)].resources || !this[r(1005)][r(1730)] ? u() : setTimeout(u, 0), c; + return this[r(961)].resources || !this[r(961)].initAsync ? u() : setTimeout(u, 0), c; } - [a(2535)](x, t = hx) { + [a(1129)](x, t = hx) { var n, i; const r = a; let e = t; - const s = b0(x) ? x : this[r(2756)]; - if (typeof x === r(1622) && (e = x), !this[r(1005)][r(2498)] || this[r(1005)].partialBundledLanguages) { - if ((s == null ? void 0 : s[r(556)]()) === r(2639) && (!this[r(1005)][r(2324)] || this[r(1005)].preload.length === 0)) return e(); + const s = be(x) ? x : this.language; + if (typeof x === r(1235) && (e = x), !this[r(961)].resources || this[r(961)].partialBundledLanguages) { + if ((s == null ? void 0 : s[r(2522)]()) === r(1590) && (!this[r(961)].preload || this[r(961)][r(2340)][r(1332)] === 0)) return e(); const c = [], u = (d) => { - const f = r; - if (!d || d === f(2639)) return; - this[f(1748)][f(2469)][f(1808)](d)[f(1471)]((b) => { - const h = f; - b !== "cimode" && c[h(311)](b) < 0 && c.push(b); + const l = r; + if (!d || d === l(1590)) return; + this[l(686)][l(2420)][l(1227)](d)[l(1953)]((b) => { + const h = l; + b !== h(1590) && c.indexOf(b) < 0 && c[h(902)](b); }); }; - s ? u(s) : this[r(1748)].languageUtils[r(1391)](this[r(1005)][r(1524)]).forEach((f) => u(f)), (i = (n = this[r(1005)].preload) == null ? void 0 : n.forEach) == null || i.call(n, (d) => u(d)), this[r(1748)][r(2296)][r(2622)](c, this.options.ns, (d) => { - const f = r; - !d && !this[f(427)] && this[f(2756)] && this.setResolvedLanguage(this[f(2756)]), e(d); + s ? u(s) : this.services[r(2420)].getFallbackCodes(this.options.fallbackLng)[r(1953)]((l) => u(l)), (i = (n = this[r(961)][r(2340)]) == null ? void 0 : n.forEach) == null || i.call(n, (d) => u(d)), this[r(686)][r(1135)].load(c, this[r(961)].ns, (d) => { + const l = r; + !d && !this[l(1351)] && this[l(1411)] && this.setResolvedLanguage(this[l(1411)]), e(d); }); } else e(null); } reloadResources(x, t, r) { - const e = a, s = Je(); - return typeof x == "function" && (r = x, x = void 0), typeof t === e(1622) && (r = t, t = void 0), x || (x = this[e(1041)]), t || (t = this[e(1005)].ns), r || (r = hx), this[e(1748)][e(2296)][e(1067)](x, t, (n) => { - s[e(1571)](), r(n); + const e = a, s = J0(); + return typeof x == "function" && (r = x, x = void 0), typeof t === e(1235) && (r = t, t = void 0), x || (x = this[e(2353)]), t || (t = this[e(961)].ns), r || (r = hx), this[e(686)][e(1135)][e(2263)](x, t, (n) => { + s[e(1635)](), r(n); }), s; } - [a(733)](x) { + use(x) { const t = a; - if (!x) throw new Error(t(2277)); - if (!x[t(612)]) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()"); - return x.type === t(1259) && (this[t(681)].backend = x), (x[t(612)] === t(1610) || x[t(2818)] && x[t(343)] && x[t(948)]) && (this[t(681)][t(1610)] = x), x[t(612)] === t(1743) && (this[t(681)][t(1743)] = x), x[t(612)] === t(1752) && (this[t(681)][t(1752)] = x), x[t(612)] === t(855) && Bs[t(2372)](x), x.type === t(839) && (this[t(681)][t(839)] = x), x[t(612)] === "3rdParty" && this[t(681)][t(1143)][t(452)](x), this; + if (!x) throw new Error(t(777)); + if (!x[t(190)]) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()"); + return x.type === t(694) && (this.modules.backend = x), (x[t(190)] === t(665) || x[t(1872)] && x[t(196)] && x[t(2265)]) && (this[t(669)][t(665)] = x), x[t(190)] === t(2756) && (this.modules[t(2756)] = x), x.type === t(1044) && (this[t(669)][t(1044)] = x), x[t(190)] === t(2578) && Ks[t(1552)](x), x[t(190)] === t(1611) && (this[t(669)][t(1611)] = x), x.type === t(1710) && this[t(669)].external[t(902)](x), this; } - setResolvedLanguage(x) { + [a(2754)](x) { const t = a; - if (!(!x || !this[t(1041)]) && !(["cimode", t(1527)].indexOf(x) > -1)) { - for (let r = 0; r < this[t(1041)][t(692)]; r++) { - const e = this[t(1041)][r]; - if (!([t(2639), t(1527)][t(311)](e) > -1) && this[t(2585)][t(1870)](e)) { - this[t(427)] = e; + if (!(!x || !this[t(2353)]) && !(["cimode", t(1236)][t(1104)](x) > -1)) { + for (let r = 0; r < this.languages[t(1332)]; r++) { + const e = this[t(2353)][r]; + if (!(["cimode", t(1236)].indexOf(e) > -1) && this.store[t(1075)](e)) { + this.resolvedLanguage = e; break; } } - !this[t(427)] && this[t(1041)][t(311)](x) < 0 && this.store[t(1870)](x) && (this[t(427)] = x, this.languages[t(1475)](x)); + !this[t(1351)] && this[t(2353)][t(1104)](x) < 0 && this[t(2277)][t(1075)](x) && (this[t(1351)] = x, this.languages.unshift(x)); } } - [a(1918)](x, t) { + changeLanguage(x, t) { const r = a; - this[r(1915)] = x; - const e = Je(); - this[r(1066)](r(1821), x); + this[r(1747)] = x; + const e = J0(); + this[r(990)](r(2771), x); const s = (c) => { const u = r; - this.language = c, this[u(1041)] = this.services[u(2469)].toResolveHierarchy(c), this[u(427)] = void 0, this.setResolvedLanguage(c); + this.language = c, this.languages = this[u(686)].languageUtils[u(1227)](c), this.resolvedLanguage = void 0, this[u(2754)](c); }, n = (c, u) => { const d = r; - u ? this[d(1915)] === x && (s(u), this[d(853)][d(1918)](u), this.isLanguageChangingTo = void 0, this[d(1066)]("languageChanged", u), this[d(1610)][d(2818)](d(1560), u)) : this[d(1915)] = void 0, e[d(1571)]((...f) => this.t(...f)), t && t(c, (...f) => this.t(...f)); + u ? this.isLanguageChangingTo === x && (s(u), this[d(489)][d(2802)](u), this[d(1747)] = void 0, this.emit(d(2343), u), this[d(665)].log("languageChanged", u)) : this[d(1747)] = void 0, e[d(1635)]((...l) => this.t(...l)), t && t(c, (...l) => this.t(...l)); }, i = (c) => { - var l, b; + var f, b; const u = r; - !x && !c && this.services[u(1743)] && (c = []); - const d = b0(c) ? c : c && c[0], f = this.store[u(1870)](d) ? d : this.services.languageUtils[u(1269)](b0(c) ? [c] : c); - f && (!this.language && s(f), this[u(853)][u(2756)] || this[u(853)].changeLanguage(f), (b = (l = this[u(1748)][u(1743)]) == null ? void 0 : l.cacheUserLanguage) == null || b.call(l, f)), this[u(2535)](f, (h) => { - n(h, f); + !x && !c && this[u(686)][u(2756)] && (c = []); + const d = be(c) ? c : c && c[0], l = this.store[u(1075)](d) ? d : this[u(686)][u(2420)][u(2630)](be(c) ? [c] : c); + l && (!this.language && s(l), this[u(489)][u(1411)] || this.translator.changeLanguage(l), (b = (f = this.services[u(2756)]) == null ? void 0 : f.cacheUserLanguage) == null || b.call(f, l)), this[u(1129)](l, (h) => { + n(h, l); }); }; - return !x && this[r(1748)].languageDetector && !this[r(1748)][r(1743)][r(1973)] ? i(this.services.languageDetector[r(850)]()) : !x && this[r(1748)][r(1743)] && this[r(1748)][r(1743)][r(1973)] ? this[r(1748)][r(1743)].detect[r(692)] === 0 ? this[r(1748)][r(1743)][r(850)]()[r(2403)](i) : this[r(1748)].languageDetector[r(850)](i) : i(x), e; + return !x && this[r(686)][r(2756)] && !this.services[r(2756)][r(418)] ? i(this[r(686)][r(2756)][r(415)]()) : !x && this[r(686)][r(2756)] && this.services[r(2756)].async ? this[r(686)][r(2756)][r(415)][r(1332)] === 0 ? this[r(686)][r(2756)][r(415)]()[r(723)](i) : this[r(686)][r(2756)][r(415)](i) : i(x), e; } - [a(1504)](x, t, r) { + [a(2195)](x, t, r) { const e = a, s = (n, i, ...c) => { const u = K; let d; - typeof i !== u(544) ? d = this[u(1005)][u(1517)]([n, i][u(2044)](c)) : d = { ...i }, d[u(524)] = d[u(524)] || s[u(524)], d[u(308)] = d[u(308)] || s[u(308)], d.ns = d.ns || s.ns, d[u(2843)] !== "" && (d[u(2843)] = d[u(2843)] || r || s[u(2843)]); - const f = this[u(1005)].keySeparator || "."; - let l; - return d[u(2843)] && Array[u(1783)](n) ? l = n.map((b) => { + typeof i !== u(2844) ? d = this[u(961)][u(1246)]([n, i][u(1545)](c)) : d = { ...i }, d.lng = d.lng || s[u(892)], d.lngs = d[u(265)] || s.lngs, d.ns = d.ns || s.ns, d[u(1308)] !== "" && (d.keyPrefix = d[u(1308)] || r || s[u(1308)]); + const l = this[u(961)][u(2720)] || "."; + let f; + return d.keyPrefix && Array[u(977)](n) ? f = n[u(2742)]((b) => { const h = u; - return typeof b == "function" && (b = Qt(b, { ...this[h(1005)], ...i })), "" + d[h(2843)] + f + b; - }) : (typeof n == "function" && (n = Qt(n, { ...this[u(1005)], ...i })), l = d[u(2843)] ? "" + d[u(2843)] + f + n : n), this.t(l, d); + return typeof b == "function" && (b = Qt(b, { ...this[h(961)], ...i })), "" + d[h(1308)] + l + b; + }) : (typeof n === u(1235) && (n = Qt(n, { ...this[u(961)], ...i })), f = d[u(1308)] ? "" + d[u(1308)] + l + n : n), this.t(f, d); }; - return b0(x) ? s[e(524)] = x : s[e(308)] = x, s.ns = t, s[e(2843)] = r, s; + return be(x) ? s[e(892)] = x : s[e(265)] = x, s.ns = t, s[e(1308)] = r, s; } t(...x) { var r; - return (r = this[a(853)]) == null ? void 0 : r.translate(...x); - } - exists(...x) { - var r; - return (r = this[a(853)]) == null ? void 0 : r.exists(...x); - } - [a(2833)](x) { const t = a; - this[t(1005)][t(2412)] = x; + return (r = this[t(489)]) == null ? void 0 : r[t(2375)](...x); } - [a(286)](x, t = {}) { + [a(1901)](...x) { + var r; + const t = a; + return (r = this[t(489)]) == null ? void 0 : r[t(1901)](...x); + } + [a(2706)](x) { + const t = a; + this.options[t(1838)] = x; + } + hasLoadedNamespace(x, t = {}) { const r = a; - if (!this[r(182)]) return this.logger[r(343)](r(2490), this.languages), !1; - if (!this[r(1041)] || !this[r(1041)][r(692)]) return this[r(1610)][r(343)]("hasLoadedNamespace: i18n.languages were undefined or empty", this[r(1041)]), !1; - const e = t[r(524)] || this.resolvedLanguage || this[r(1041)][0], s = this[r(1005)] ? this[r(1005)][r(1524)] : !1, n = this[r(1041)][this[r(1041)][r(692)] - 1]; - if (e.toLowerCase() === r(2639)) return !0; + if (!this[r(707)]) return this[r(665)].warn(r(753), this[r(2353)]), !1; + if (!this.languages || !this[r(2353)][r(1332)]) return this[r(665)].warn("hasLoadedNamespace: i18n.languages were undefined or empty", this[r(2353)]), !1; + const e = t[r(892)] || this[r(1351)] || this[r(2353)][0], s = this[r(961)] ? this[r(961)][r(2218)] : !1, n = this[r(2353)][this[r(2353)][r(1332)] - 1]; + if (e[r(2522)]() === r(1590)) return !0; const i = (c, u) => { - const d = r, f = this[d(1748)][d(2296)][d(521)][c + "|" + u]; - return f === -1 || f === 0 || f === 2; + const d = r, l = this[d(686)][d(1135)][d(2633)][c + "|" + u]; + return l === -1 || l === 0 || l === 2; }; - if (t.precheck) { - const c = t[r(2606)](this, i); + if (t[r(838)]) { + const c = t[r(838)](this, i); if (c !== void 0) return c; } - return !!(this.hasResourceBundle(e, x) || !this.services[r(2296)][r(1259)] || this[r(1005)][r(2498)] && !this[r(1005)].partialBundledLanguages || i(e, x) && (!s || i(n, x))); + return !!(this.hasResourceBundle(e, x) || !this[r(686)].backendConnector[r(694)] || this[r(961)][r(554)] && !this[r(961)][r(1963)] || i(e, x) && (!s || i(n, x))); } - [a(1961)](x, t) { - const r = a, e = Je(); - return this[r(1005)].ns ? (b0(x) && (x = [x]), x.forEach((s) => { + [a(754)](x, t) { + const r = a, e = J0(); + return this.options.ns ? (be(x) && (x = [x]), x.forEach((s) => { const n = r; - this[n(1005)].ns[n(311)](s) < 0 && this[n(1005)].ns[n(452)](s); - }), this[r(2535)]((s) => { - e[r(1571)](), t && t(s); - }), e) : (t && t(), Promise[r(1571)]()); + this[n(961)].ns[n(1104)](s) < 0 && this.options.ns.push(s); + }), this[r(1129)]((s) => { + e[r(1635)](), t && t(s); + }), e) : (t && t(), Promise[r(1635)]()); } - [a(1442)](x, t) { - const r = a, e = Je(); - b0(x) && (x = [x]); - const s = this[r(1005)][r(2324)] || [], n = x.filter((i) => s[r(311)](i) < 0 && this[r(1748)].languageUtils[r(863)](i)); - return n[r(692)] ? (this.options[r(2324)] = s[r(2044)](n), this.loadResources((i) => { - e[r(1571)](), t && t(i); + [a(1703)](x, t) { + const r = a, e = J0(); + be(x) && (x = [x]); + const s = this[r(961)][r(2340)] || [], n = x.filter((i) => s.indexOf(i) < 0 && this.services.languageUtils[r(384)](i)); + return n[r(1332)] ? (this[r(961)][r(2340)] = s.concat(n), this.loadResources((i) => { + e.resolve(), t && t(i); }), e) : (t && t(), Promise.resolve()); } - [a(1482)](x) { + [a(690)](x) { var s, n; const t = a; - if (x || (x = this[t(427)] || (((s = this[t(1041)]) == null ? void 0 : s[t(692)]) > 0 ? this[t(1041)][0] : this[t(2756)])), !x) return "rtl"; + if (x || (x = this[t(1351)] || (((s = this[t(2353)]) == null ? void 0 : s.length) > 0 ? this[t(2353)][0] : this[t(1411)])), !x) return t(1181); try { - const i = new Intl[t(2103)](x); - if (i && i[t(1894)]) { - const c = i[t(1894)](); - if (c && c[t(834)]) return c[t(834)]; + const i = new Intl[t(939)](x); + if (i && i[t(2490)]) { + const c = i.getTextInfo(); + if (c && c[t(1954)]) return c[t(1954)]; } } catch { } - const r = ["ar", t(513), "sqr", t(746), t(1078), t(2553), "yud", t(1112), t(2369), "abv", t(2282), t(2866), t(186), t(1753), t(2680), t(1353), t(857), t(1148), t(2216), t(1275), t(1079), t(2791), t(176), t(1585), t(2080), t(686), "ary", t(1627), t(2390), t(1907), t(735), "ayl", t(659), t(265), "bbz", t(1016), "he", "iw", "ps", "pbt", t(1263), t(1003), "prp", t(2386), "ug", "ur", t(1115), t(2048), "yih", "ji", "yi", t(674), t(1289), "xmn", "fa", t(2799), "peo", t(1381), t(1766), "dv", t(348), t(1508)], e = ((n = this[t(1748)]) == null ? void 0 : n[t(2469)]) || new Wa(Ya()); - return x[t(556)]()[t(311)](t(642)) > 1 ? "ltr" : r.indexOf(e[t(1786)](x)) > -1 || x.toLowerCase()[t(311)]("-arab") > 1 ? t(2468) : t(251); + const r = ["ar", t(593), t(1085), t(906), t(623), t(1176), t(1811), t(330), t(386), t(1772), "acm", t(1787), t(2417), t(459), t(2241), "adf", "ads", "aeb", t(1911), t(2764), "ajp", t(2311), t(2766), t(702), t(590), t(804), t(2429), t(1203), "auz", "avl", t(1830), t(1855), t(1088), t(1866), t(982), "pga", "he", "iw", "ps", "pbt", t(538), t(1990), t(1850), "prd", "ug", "ur", "ydd", t(1759), "yih", "ji", "yi", t(1680), t(1177), t(254), "fa", t(609), t(1247), "pes", "prs", "dv", t(729), t(562)], e = ((n = this[t(686)]) == null ? void 0 : n[t(2420)]) || new Za(Ya()); + return x[t(2522)]().indexOf(t(1814)) > 1 ? t(2857) : r.indexOf(e[t(2463)](x)) > -1 || x.toLowerCase().indexOf("-arab") > 1 ? t(1181) : t(2857); } - static [a(1984)](x = {}, t) { - const r = a, e = new xx(x, t); - return e[r(1984)] = xx[r(1984)], e; + static createInstance(x = {}, t) { + const r = a, e = new ex(x, t); + return e[r(1646)] = ex[r(1646)], e; } - [a(1038)](x = {}, t = hx) { - const r = a, e = x[r(1307)]; - e && delete x[r(1307)]; - const s = { ...this[r(1005)], ...x, isClone: !0 }, n = new xx(s); - if ((x.debug !== void 0 || x[r(338)] !== void 0) && (n.logger = n[r(1610)][r(2327)](x)), [r(2585), r(1748), "language"][r(1471)]((c) => { + [a(1433)](x = {}, t = hx) { + const r = a, e = x[r(980)]; + e && delete x[r(980)]; + const s = { ...this.options, ...x, isClone: !0 }, n = new ex(s); + if ((x[r(2264)] !== void 0 || x.prefix !== void 0) && (n[r(665)] = n[r(665)][r(820)](x)), ["store", r(686), r(1411)].forEach((c) => { n[c] = this[c]; - }), n[r(1748)] = { ...this.services }, n.services[r(1781)] = { hasLoadedNamespace: n.hasLoadedNamespace[r(2488)](n) }, e) { - const c = Object[r(750)](this.store[r(909)])[r(172)]((u, d) => { - const f = r; - return u[d] = { ...this[f(2585)][f(909)][d] }, u[d] = Object.keys(u[d]).reduce((l, b) => (l[b] = { ...u[d][b] }, l), u[d]), u; + }), n[r(686)] = { ...this[r(686)] }, n.services.utils = { hasLoadedNamespace: n[r(328)][r(591)](n) }, e) { + const c = Object[r(1806)](this[r(2277)].data)[r(1774)]((u, d) => { + const l = r; + return u[d] = { ...this[l(2277)][l(2887)][d] }, u[d] = Object[l(1806)](u[d]).reduce((f, b) => (f[b] = { ...u[d][b] }, f), u[d]), u; }, {}); - n[r(2585)] = new Ba(c, s), n[r(1748)][r(2709)] = n[r(2585)]; + n.store = new Ba(c, s), n[r(686)][r(1472)] = n[r(2277)]; } - return x[r(2660)] && (n[r(1748)][r(951)] = new Qa(s)), n[r(853)] = new Fx(n[r(1748)], s), n[r(853)].on("*", (c, ...u) => { - n.emit(c, ...u); - }), n[r(2636)](s, t), n[r(853)][r(1005)] = s, n[r(853)].backendConnector[r(1748)][r(1781)] = { hasLoadedNamespace: n[r(286)].bind(n) }, n; + return x[r(1146)] && (n[r(686)][r(2863)] = new Qa(s)), n[r(489)] = new Fx(n[r(686)], s), n.translator.on("*", (c, ...u) => { + n[r(990)](c, ...u); + }), n[r(943)](s, t), n.translator[r(961)] = s, n.translator[r(1135)][r(686)].utils = { hasLoadedNamespace: n[r(328)][r(591)](n) }, n; } - [a(1538)]() { + toJSON() { const x = a; - return { options: this.options, store: this.store, language: this.language, languages: this[x(1041)], resolvedLanguage: this[x(427)] }; + return { options: this.options, store: this.store, language: this[x(1411)], languages: this[x(2353)], resolvedLanguage: this[x(1351)] }; } } -const X0 = xx[a(1984)](); -X0[a(1984)], X0.dir, X0[a(2636)], X0[a(2535)], X0[a(748)], X0[a(733)], X0[a(1918)], X0[a(1504)], X0.t, X0[a(280)], X0[a(2833)], X0[a(286)], X0.loadNamespaces, X0[a(1442)]; -function Fi() { +const Xe = ex.createInstance(); +Xe[a(1646)], Xe[a(690)], Xe[a(943)], Xe[a(1129)], Xe[a(1057)], Xe[a(2792)], Xe[a(2802)], Xe[a(2195)], Xe.t, Xe.exists, Xe[a(2706)], Xe[a(328)], Xe.loadNamespaces, Xe[a(1703)]; +function qi() { const o = a; - if (typeof navigator !== o(420) && navigator[o(2756)]) return navigator[o(2756)] === o(2367) ? o(2367) : "en-US"; + if (typeof navigator !== o(2694) && navigator[o(1411)]) return navigator[o(1411)] === o(359) ? "zh-CN" : o(536); try { - const x = typeof require < "u" ? require : void 0; + const x = typeof require !== o(2694) ? require : void 0; if (x) - return x("uxp")[o(957)][o(736)][o(1955)]("zh") ? "zh-CN" : o(1282); + return x("uxp")[o(172)][o(1406)][o(533)]("zh") ? o(359) : "en-US"; } catch { } - return o(1282); + return o(536); } -function Nx() { - const o = ["skips", "getNodeIds", "resolveComponents", "Failed to open image file: {{error}}", "isTop", "bind", "Task cancelled", "hasLoadedNamespace: i18next was not initialized", " , message: 'should match exactly one schema in oneOf' ", "]; ", "Invalid JSON-pointer: ", "{5}", "partial", "var division", " levels up, current level is ", "resources", "setOutgoingRequestInterceptor", "isHeartbeatEnabled", "Crop by selection", "resource_link", "findIndex", "Cannot reboot because ComfyManager is missing", "ZodSet", "saveWorkflow", "Upload failed: ", "请输入质量百分比", "localeCompare", "else", " ", "Your powerful node-based workflow engine", " && ( ", " , message: 'should have ", "运行中...", "skipCopy", "Current Tasks:", "req_", "exports", "toUpperCase", "Retry", "Select Workflow", "ComfyUI loading...", "ignore", "getRunningRequestsCount", `((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)`, "inline", "排队等待", "revoke", "Error compiling schema, function code:", " === '' ", "Select layer", "run API 调用失败 - HTTP 错误,状态: {{status}}", " = true; break; }", "loadResources", "maximum", " , params: { allowedValues: schema", "nestingPrefix", "item", " , message: 'can\\'t resolve reference ", "PS shortcuts may be blocked by plugin...", "reset=false but needsReset: ", "float", "broadcastCurrentState", "findPath", "#9933CC", "dataLevel", "#CC6633", "warning", "点击发送(Shift-点击新建文档)", " not found on node ", "Click to use current selection", "yhd", " (async", "schema", "notificationHandlers", "执行成功", "revocable", "getData", "postMessage", "ConnectionClosed", "transport", "var pattern", "domainHost", "user", " else throw new ValidationError(vErrors); ", "Syncing assets", "#CC3300", "2.1.0", "assertIs", "&filename=", "移除槽位", "parsedType", "Uncaught error in notification handler: ", "maxItems", "以画布边界获取画布", " if (Array.isArray(", "step", ", (dataPath || '')", "typeof ", "SDPPP 2.0 no longer needs this node", "schemaHasRulesExcept", "获取选区失败", "OpenAI/Google 格式API", "store", "sendPromptListChanged", "failed parsing options string in nesting for key ", "mode", ").length ", "examples", "hasError", "Action ", "formatters", "自动同步: 关闭", "normalizeId", "next", "ordinal", "minute", " if (rootData === undefined) rootData = data; ", "coerceTypes", "Refresh workflow list", ") { if (vErrors === null) vErrors = ", "保存并立即执行", "start", "splice", "precheck", "快捷键选图功能仅在插件窗口聚焦时可用", "isOptional", "$async", "baseId", ")) ", "Save all", "我的模板", "skipKeywords", "/required", "选区遮罩", "未找到文档 {0}", "#9900CC", "path", "newlayer_canvas", "validate", "load", "_requestHandlers", "errSchemaPath", "stringify", "ZodBoolean", "Drag images here and release to upload", "urn", "Please select the image to get", "fail", "hour", " = false; ", "unescapeFragment", "return", "获取图片", "init", " } if (errors === ", "url", "cimode", " = true; if ( ", "defaultError", "221469drOvVs", "Manage reusable prompt snippets for Comfy Simple workflows.", "hasOutgoingNotificationInterceptor", "returnDetails", "createWithPreprocess", "onprogress", ", limit: ", " , params: { property: '", " == '", "Input not instance of ", "cleanup", "获取图层信息", "生成失败", "add", "exception_message", "Invalid input", "Add slot", "additionalProperties", "interpolation", " % 1)", "executed", " else if (", "Failed to send response: ", "uri-reference", "color: inherit", "cycles", "#CCCC33", "Unauthorized (401)", "equal", "result", "#CC00FF", "#CC3399", "正在等待图片上传...", "uniqueItems", "retryTimeout", "requestsHandled", "interpolate", " } else { errors = ", "acy", "RunningHub - {{webappId}}", "7ozVkBj", "subscribe", "comfy-uxp", "Cannot access property/index ", "setupTransportHandlers", "getClientVersion", "Enum", "deepPartial", "No connection available for node ", "(队列:{{queueSize}}) {{progress}}% {{executingNodeTitle}}...", "_oninitialize", "one", "Error validating elicitation response: ", "未实现 (501)", "removed", "$id", "notifications/initialized", "选择工作流", "nss", "通道连接中...", "combo", "assertCanSetRequestHandler", "true", "not", '"; } ', "cleanCode", "tools/list", "resourceStore", "detectCycles", "Invalid attempt to destructure non-iterable instance", "isNaN", "=0; ", "Clear selection", "size", "getState", " !== ", " -> ", "initializeResponseQueue", "ZodEffects", "No active layer available", "valueOf", "currentNodeId", "missingKeyHandler", " var isAdditional", " === undefined ", "PCT_ENCODED", "/then", "isNANOID", "var missing", "请选择要发送图像的位置", "ComfyUI - {{workflowName}}", "当前任务数:", "oneOf", "NOT_FRAGMENT", "flags", "_refinement", "__connection_established", "_errorDataPathProperty", "options.loadSchema should be a function", "未知错误", "getProtocol", "rest", " var errs_", " != 'string') || ", "strictKeywords", "wss", "missingRef", "Node not found", "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", "failedLoading", "setupGraphStoreSync", "]; return false; ", "2025-03-26", "exclusive", "language", "模板已删除。", "broadcastManager", ") && (missing", "正在上传...", "errorHandlers", "cuid2", "widgetable", "regex", "Failed to update the {{part}} prompt: no matching widget binding.", "namespaces", "' , dataPath: (dataPath || '') + ", "Mask resource is missing", "gte", "mailto", "invalid_union", "RH Coins:", "Intersection results could not be merged", "Negative Crop", "#3399CC", "anyOf", "] = ", "MCP error ", ".validate", " Math.abs(Math.round(division", "from", "port", "IPV6ADDRESS", "registerCapabilities", " for (var ", "failing", " , params: {} ", "刷新图片中", " = refVal[", "setupGeneralBroadcastHandler", "apc", "#00CCCC", "color", ") == -1 ", " !== undefined) { ", "暂无图片", "]; if (", "'].definition; var ", "jpr", "accessing an object - but returnObjects options is not enabled!", "prevValid", "_parseSync", "设为当前选区", "notificationQueue", "out", "race", "缺少主图资源", "; } var err = ", "Select boundary", "Close", "ESCAPE", "wait", "_refs", "definition", "Main Image", '[\\"\\\\]', "registerDirectRequestHandlerGeneric", "log", "keywords", "No backend was added via i18next.use. Will not load resources.", "选区边界", "definitions", "right", "); if (", "init: i18next is already initialized. You should call init just once!", "当前图层除外", "useDefault", ".replace(/~/g, '~0').replace(/\\//g, '~1')", "store:update:", "ifClause", ", deps: '", "输入图像", "setDefaultNamespace", "Status check aborted", " , params: { missingProperty: '", ") { var err = ", "ZodDiscriminatedUnion", "_meta", "invalid_date", "exception", "isInt", "registerProxyForwardHandler", "keyPrefix", "isInteger", "Reverse", "namespace", "addIssue", "received", "ZodRecord", "Using local file", "_cache", "save", "#FF33CC", "executing", "Processing {{processed}}/{{total}}", "Batch Count", "Output to", "处理进度 {{processed}}/{{total}}", "returnEmptyString", "effect", "status", "' } ", "X10", "logger must implement log, warn and error methods", "reset", "acq", "选择素材来源", "_key", "RH币:", "getClientCapabilities", "clientInfo", "Upload failed, please try again", "Failed to send an error response: ", "INTERCEPTOR_ERROR", "请登陆后使用插件", "getNodes API 调用失败 - HTTP 错误,状态: {{status}}", "minLength", "heartbeatTimeout", "Already connected to node ", "loadOne", " ); if (isAdditional", "点击恢复默认边界", ") && ", "alwaysSet", "Aborted", "errorPath", "Invalid", "reduce", "No videos yet", "]] === undefined ", "too_big", "apd", "'then'", " === 0 || ", "sourceCode", "$el", "postProcess", "isInitialized", "parseAsync", "以主图边界获取画布", ") { ", "acw", "connected", "setPrototypeOf", "colors", "describe", "#33CC00", "Outgoing notification interceptor failed: ", "millisecond", "请输入您的RunningHub API Key", "Delete current", "nodeIndexes", "maxProperties", "暂无可用工作流。", "currency", "应用ID:", "Failed to check workflow state changes:", "自动取图中…", "pick", "cacheKey", "addLookupKeys", "responseSchema", "Defaults using", "missingSchema", "[\\.]", "selection", "Connect", "++) { if (", "sendLoggingMessage", "#CC9933", '" is used in schema at path "', "_cachedPath", "loadGraphData", "任务未完成,当前状态: {{status}}", `Get image & -Limit image boundary`, "maxRetries", "elicitation/create", "Failed to open file as document: {{path}}", "unknownFormats", "{3}", "message", "allErrors", "Not a ZodError: ", "Unknown error ({{code}})", "addSchema", "implementAction", "Required", "Selection mask", ".errors", "widgets", "任务执行失败", "=startErrs", "编辑模板", "Workflow not found", "getPathExpr", "++) { vErrors[", "maxValue", "translate", "extend", "defaultValue", "[^\\%]", "minProperties", "unknown", "Unicode", "AUTO", "尚未配置 ComfyUI 连接,请先设置地址。", "ltr", "shift", "local", "missing", "网关超时 (504)", "Waiting for image upload...", "innerType", "选择模型", "_onerror", "curr", "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ", "day", " var err = ", "unwrap", "ayp", "nonpositive", "at least", "isTransportReady", "toUnicode", " var schema", "long", "Send all", "Sending all images...", " is present' ", " break; ", "Get mask from Current Layer", "listenMessageCallback", "streamRequest", ".hasOwnProperty(", "exists", "nan", "returnedObjectHandler", "refs", ".additionalProperties", " == 'number' ? ( (", "hasLoadedNamespace", "[object RegExp]", "schema is invalid: ", "time", " = '' + ", "properties ", "fallback", " properties' ", ") ? ", `Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`, "###", "mountedTransports", "Action {{0}} 未找到", "assertNotificationCapability", "PS遮罩", "])) { ", " == 'function' ? ", "ZodBigInt", "smaller than or equal to", "; if (!", "cache", "isUUID", "lngs", " delete ", "required", "indexOf", "languageOnly", "Creating task...", "Import as New Document", "requestInitialStateForNode", '$ref: keywords ignored in schema at path "', "Create guide frame", "/properties", "strictDefaults", "Get image from Current Layer", "sdppp 运行 Photoshop Action", "pluralResolver", "#9900FF", "prompts/get", "; }", "function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ", "\\:\\:", "should NOT have additional properties", "当前选项:图层", "Invalid proxy forwarding: current node ", "Model with affordable price, abundant community applications", "SCHEMES", "(\\.\\d+)?", " && Object.prototype.hasOwnProperty.call(", "Document {0} not found", "lowerCaseLng", "prev", "prefix", "isValidLookup", "New Document", "正在使用本地文件", "escape", "warn", "No handler for streamRequestor: ", "__proxy_forward", "read", " , params: { type: '", "sam", " is already defined", " , params: { multipleOf: ", "addIssues", "Auto fetching…", "invalid_enum_value", "unrecognized_keys", "选区遮罩为空", "actionHandlers", "progress", "#3300FF", "uxp", "/additionalItems", "changeTracker", "outputs API 调用失败 - {{reason}}", "usedKey", "PS图片", "abortRequest", " , ", "canvas", "Converting circular structure to JSON", "emergency", 'did not save key "', "[\\:\\@\\/\\?]", "~standard", "toNode", "Timeout", "defaultMeta", "sendToolListChanged", "success", "throwIfAborted", " , validate.schema", "isURL", "addCached", "无效操作: {{action}}", "加载中...", "origin", "pipe", "Exclude current layer", "Forbidden (403)", " = await ", "; else vErrors = null; }", "=== Options ===", "process", "#3366FF", "DEBUG", "Jump to last", "Server does not support logging (required for ", "resolvedOptions", "prepend", "ajv", "$data", "app", "isEmpty", "'else'", "all", "[0-5]\\d", "send", "反向裁剪(Inpaint)", "跳转到最后一个", "removeAdditional", "Remote", "readingCalls", "Source", "promptIds", " = errors; ", "refinement", "Canvas boundary", "initializeConsumer", "api/view?type=", "How to get APIKey and API Secret", "sdppp_workflow_alias", "undefined", "./sdppp-custom.js", "prompts", "; else vErrors = null; } ", "; else if (", "不支持非文本图层: {{0}}", "暂无预览内容", "resolvedLanguage", "setProperty", "#0033FF", "match", "uuid", "); for (var ", "_cleanupTimeout", "#FF3333", "ComfyUI 未就绪", " } ", "setRequestHandler", "registerStreamRequestorHandler", "ZodString", "propertyNames", "当前选项:文件", " not found for node ", "heartbeatInterval", ".validate;", "Prompt content", "addRule", "encountered", "executeHandlerAsync", "?\\]?$", "fullFilename", "extendTranslation", "push", " = true; } else { ", "_metaOpts", "missingRefs", "handleDirectProxyForward", "initializeProducer", " == ", ")) { ", "本节点默认继承:", "上传失败,请重试", "useCustomRule", "run API failed - {{reason}}", "设为当前图层", "Save and run immediately", " === undefined || ", "position", "Server does not support notifying of prompt list changes (required for ", "valueSchema", "#FF0099", "请求超时 (408)", "Refresh", "fromNode", "mask", "每批图像数", ", '", "无效的边界类型: {{type}}", "saveMissingTo", " throw new ValidationError(vErrors); ", "邮箱: {{email}}", "round", "parentData", "Resize document for preview", "customRules", "NOT_SCHEME", "Unknown error", "ASCII", " / ", "resources/read", '"object"', "defaultVariables", "Smart Object Layer", "Server does not support resources (required for ", " } else { for (var ", " if (true) { ", "originalError", "Create layer failed", "over", "/additionalProperties", "Press Enter to open app: {{appName}}", "isNotification", "originalQueuePrompt", "Auto send enabled", "Fetch current layer with canvas boundary", "#CC33CC", "json", "Primary boundary", "]) ", " ucs2length(", "JWT", " == 'string' || ", "不裁剪", "shu", "OpenAI/Google format API", " ", "interceptor_error", "_getCached", "Selection boundary", "pendingCount", "range", "zero", "toHash", "ssh", "scheme", "reloadResources", "如何获取APIKey", "keys", "' + ", "rules", "normalizeDuration", " = undefined; ", "连接 ComfyUI 失败(HTTP {{code}})", "implements", "keyof", "set", "outputs API failed - {{reason}}", "formatArgs", "metaSchema", "newlayer_curlayer", "validateSchema", " || Object.keys(", "模板已保存。", "toString", "Tutorial", "Failed to send cancellation: ", ".then", "schemaExcl", "_getId", "asyncIterator", "getSchema", "keySeparator", "_def", "shared", "errorsText", " === null || ", "self", "用户名: {{username}}", "execution_success", "sdpppHandshake", "coerce", "Google Gemini - Image Generation", "uploadImage API failed - {{reason}}", "positive", "resetTimeoutOnProgress", "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", "Guest login successful", "#FF33FF", "getScriptPartFromCode", "finished", "Auto Sync: off", "Scan", " == errors) {", "posterIdentifier", "Boundary", "清除视频", "onTimeout", "__internal_requestInitialState_", "Action set {{0}} was not found", "Document {{0}} not found", "decline", " } } ", "ActionSet {{0}} 未找到", "custom", "RULES", "inlineRefs", "#00CC00", "click to restore", "$dataMetaSchema", "正在连接 ComfyUI...", "4148800rxwstl", " = !(false ", "getCurrentNodeId", "正在发送...", "text", "Login Successful", "method", "任务取消失败: {{error}}", "Invalid literal value, expected ", "fatal", "formats", "Generating...", "Click to remove local file", "Invalid forward path for proxy action", "loopRequired", "#0066FF", "Failed to create document from file", "未配置上传器", "Invalid ", "workflow", "保存当前", "direction", "getTime", "handleAsObject", "stack", "#66CC00", "formatter", " < ", "ZodDefault", ")) { var err = ", "resources/list", "stopSequence", "null", "Uploading...", "#6600CC", ") { var err = ", "flatten", "detect", " if (", "No limit", "translator", " = true; ", "postProcessor", "Cannot forward to node ", "ads", "Selected", "lte", "ownProperties", " items' ", "Fit to selection", "isSupportedCode", "unescapeSuffix", "separator", "newdoc_canvas", "cancel", "Negative Prompt", "findPathInternal", "_limitProperties", "NOT_USERINFO", "keywordValidate", "hasOwnProperty", "greater than ", " , schema: ", "#CCCC00", "工作流打开中", "audio", "获取结果失败: {{error}}", "Connection closed", "getNodeTitle", "ZodBranded", "++) { ", "addKeyword", "maxTotalTimeout", "patternProperties", " , params: { failingKeyword: ", "multipleOf", "sampling/createMessage", "网关错误 (502)", "getSuffix", "无效边界: 左边必须小于右边,上边必须小于下边", "isRequest", "遮罩应用后未得到资源", "ComfyUI加载中...", "executeOutgoingNotificationInterceptor", "can't resolve reference ", "getRegExp", "clear", "_instructions", "source", ".data = ", "MissingRefError", "nid", "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF", "Store not found for current node ", "coerceToTypes", '"failed to compile', "data", "schemaId", "从 当前图层 获取图像", "Stop", "createAsyncIterator", "isObject", "Edge references unknown target node: ", "Node definition not found for ", "Synchronous parse encountered promise.", "#00CC33", "notifications/cancelled", "ParseError", "mcpMesh", " , parentSchema: validate.schema", "getter", "put", "objectValues", "prompt_id", " && ", "getTransportToNode", "+Alt reversed mask", "comfyAPI", "preprocess", "maxParallelReads", "Masked", "画布边界", "Paste your model name", "Outgoing message:", "默认模板", "removeDotSegments", "当前图层", "now", "Clear guide frame", ">", "http://json-schema.org/draft-07/schema#", "ZodVoid", "properties", "/", "lastIndex", "error", " | ", "_compilations", "interpolator", "padEnd", "_serverInfo", "run", "Idle", "]); ", "host", "Layer {{0}} is not a group", "date", "useColors", "subfolder", "#CC3366", "Invalid graph definition: ", "_notificationHandlers", "allServers", "rootData", "isOpen", "_requestHandlerAbortControllers", "extensionManager", "Expected ", "__DEFAULT__", "#00CCFF", "array", "_limitItems", ") { ", "范围 1-100", "边界预览", " = validate.schema", "click", "当前选项:图层 {{layerName}}", "getProperty", "_resetTimeout", "relativetime", "dataPath", "getCapabilities", "activeState", "getAccountStatus API failed - {{reason}}", "saveMissingPlurals", "Select Image Source", "%25", " = false;for (var ", "init: no languageDetector is used and no lng is defined", "logging", "performWorkflowReset: ", "simpleTypes", "getDefaultValueFromField", "基础 URL", "没有链接图层: {{0}}", "additionalItems", "validateHandlerType", "任务已取消", ".call(this, ", "pst", "urn:uuid", "options", "schemaUnknownRules", "simplifyPluralSuffix", " already exists, which would be overridden", "25[0-5]", '[\\"]', "util", "此处粘贴 WebApp ID", "_onprogress", "Select a model", "async format in sync schema", "pga", "const", ")) { if (vErrors === null) vErrors = ", " if (!(await ", "_processInputParams", "key '", "ZodAny", " !== undefined) { ", "safe", "sort", "varReplace", "optional", "pending", "执行失败", " === ", "mcp-mesh-router", `获取图像 & -裁剪选区遮罩`, "bigint", "显示预览框 ({{count}}张图片)", "_opts", "&subfolder=", "Failed to request initial state for ", "cloneInstance", "resolveRunImages", "#FF3300", "languages", "Open images from file", "sd-ppp-static/sdppp_images/", "Output to:", " , message: 'should NOT be ", "nanoid", "+Alt crop by selection", "Content", "userinfo", "#99CC33", "#FF0066", ".else", "errToObj", "Node ", "name", ".additionalItems", "too_small", "notifications/progress", "missed to resolve ", " Object.keys(", "label", "510", "Server does not support notifying of tool list changes (required for ", "Failed to request initial states after connecting to ", "_loadingSchemas", "emit", "reload", "subject", "Outgoing request interceptor failed: ", "toLoad", "minValue", "_schemas", "userDefinedNsSeparator", "Hold Shift for more options; Ctrl for single fetch", "get", "ZodReadonly", " } ", "xaa", "ajp", "Boundary preview", "退出登录", "curlayer", "Invalid function return type", "exact", "expected", " throw new ValidationError([", "_fragments", "addResource", " - no connection available", " || ", "val is not a non-empty string or a valid number. val=", "skipOnVariables", "at most", "画布范围", "after app.queuePrompt errors: ", "parentDataProperty", 'Invalid input: must include "', "_parseAsync", "1217622CDlXnS", "symbol", "获取图层 {{0}} 的内容", "nodes", "graph", "registerDirectRequestHandler", "Image input and prompt are required", "从 选区 获取遮罩", "#6600FF", "Cannot access data ", "' : '", "sendResourceListChanged", "withTimeout", "aao", "#0000CC", "SDPPP可能未安装或和插件版本不匹配 (404)", "ydd", "No active document", "typ", "选区除外", "removeMessageEventListener", "getUsedParamsDetails", "firebug", "formData", "isNullable", " must be number", "Auto run after canvas change", ") {", "maxSize", "管理可复用的提示词模板", "base64", " var validate = ", " } ", "broadcastHandlers", "getRegisteredActions", "未选择工作流", "ZodPromise", "capabilities", "限制图片尺寸", "_timeoutInfo", "fewer", "getHandlerTypes", "requestInfo", "offset", "external", "instructions", " , message: 'should be ", "boolean", "[^0-9]", "aeb", "regExpQueue", "includes", "#FFCC00", "queue_remaining", "queue", " = vErrors[", "任务执行失败: {{error}}", "; } ", "issues", "Create document for sent images", "smaller than", " = true; else if (!Array.isArray(schema", "less than or equal to", "joinValues", "substring", " validate.errors = null; return true; ", "formErrors", "Inpaint (reverse crop)", "Rescoped", "ZodOptional", "[object Number]", " = [", ") continue; ", "code", "Max size (px)", "No workflows available.", "Unrecognized key(s) in object: ", "markDisconnected", "under", "#FF9900", "Outpaint (positive crop)", "#/definitions/nonNegativeIntegerDefault0", "params", "unknown keyword: ", "file", "[BroadcastManager] Error forwarding broadcast:", "names", "var ", "compositeRule", "#0000FF", "获取像素失败: {{0}}", "Local image pack", "assign", "#CC33FF", "Running for {{duration}} secs, {{message}}", "{4}", "exactly", "translation", "[^\\%\\/\\@]", "reboot", "node", "=== 选项 ===", "varOccurences", " = formats[", "reference", "Host's domain name can not be converted to ASCII via punycode: ", "forward", "#6633CC", "parent", "Quality {{percent}}%", " + '", "hasDefaultValue", "].propertyName = ", "_limitLength", "content", "kind", "uxpHost", "escapeValue", "Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.", "overflow", "verbose", "enabled", "freeze", "ZodTuple", "sendResourceUpdated", "validateKeyword", "Internal ZodObject error: invalid unknownKeys value.", "Plugin window focused required to use keyboard shortcut", " , data: ", "defaults", "false schema", " {} ", 'unknown format "', "nonstrict", "Show sent images", "不支持的上传类型:{{type}}", "keyword", " var async", " else { ", "++) { var ", "AI使用的区域与最大尺寸控制", "Overflow: input needs wider integers to process", "requestId", "timeout", "Elicitation response content does not match requested schema: ", "$$$$", "isConnected", "querySelector", "smartobject", " ) { ", "accept", "def", "[A-Za-z]", "Get content of layer {{0}}", "IPV4ADDRESS", "\\%25|\\%(?!", "reconnecting", "Method not found", "_transport", "nodeStores", "backend", "roots", " if ( ", "3rdParty", "pbu", "reason", "{6}", "title", "pattern", "nestingRegexp", "getBestMatchFromCodes", " !== undefined && typeof ", "notifications/resources/updated", "输出区域", "ZodNull", "暂无视频", "afb", "非法的名称: {{0}}", "Clear all", "close", "min", "segment", " = +", "en-US", "isSafeInteger", "abort", "ZodMap", "InvalidRequest", "使用当前图层", " , params: { limit: ", "men", "ref/prompt", "点此获取RunningHub APIKey", "onclose", "^\\[?(", "element", "合并组失败", "[\\:\\/\\?\\#\\[\\]\\@]", "Limit image size", "notificationsIntercepted", "added", "maxTokens", "emoji", "initialState", ", exclusive: ", "hostVersion", "ucs2length", "select", "forkResourceStore", "initImmediate", "Refreshing preview...", "Add Template", "strictNumbers", " = 0; ", "质量{{percent}}%", "cardinal", "relatedRequestId", "How to get APIKey", "已选择", "react", " , schema: validate.schema", "isCUID2", " && self._opts.unknownFormats.indexOf(", "OpenAI - 图片编辑", "Request interceptor failed for ", "从磁盘获取", "empty", "AI 生成任务", "registerHandler", "Enter a pixel value greater than 0", "userDefinedKeySeparator", "Entire Canvas", "[GraphStoreSynchronizer] Error broadcasting state update for ", ") vErrors.length = ", "assistant", " } ", "resolveImage", ".errors); errors = vErrors.length; } ", "defineProperty", " + '\\']'", "objectKeys", "Exclude selection", "find", `获取图像 & -限制图像范围`, "nestingSuffix", "') ", ` , message: 'should match format "`, "notifications/roots/list_changed", " , schemaPath: ", "Invalid function arguments", "detail", "_getOrReturnCtx", "(.+?)", "#00CC66", "adf", "Meta-schema for $data reference (JSON Schema extension proposal)", " , schema: false , parentSchema: validate.schema", "dependencies", "dirty", "自动同步: 开启", "checks", "/*# sourceURL=", " !== undefined) ; ", "inclusive", "Hold Shift key to import as new document", "milliseconds", "='; ", "getNode", "Running", ") || ", "fast", "Save", "diff", "It seems you are nesting recursively key: ", "{0,2}", "getSuffixes", "素材同步中", "Please select the position to send image", " if (! ", "结果获取已中止", "Empty selection mask", "清空选择", "pes", "values", "getPath", "Discriminator property ", "getTransportInternal", "keyType", "hours", "_onrequest", "https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js", "catchall", "getFallbackCodes", "schemaHasRules", "max", 'id "', "ignoreJSONStructure", "never", "connectionManager", "No active layer", "Waiting in queue", "response", " && Object.prototype.hasOwnProperty.call(", " = 'then'; ", "addMetaSchema", "assertCapabilityForMethod", "append", "管理 Comfy Simple 工作流的提示词片段。", " = false , ", "unicode", "+Shift 调整更多选项;Ctrl 单次获取。", "left", "types", "openWorkflowJSON", " ( ( ", "NOT_PATH", "ZodSymbol", "sdppp/broadcast", "serialize", "Layer {0} not found", "enum", "keySchema", "getAccountStatus API 调用失败 - {{reason}}", "lazycreate", "catchValue", "getResource", "请输入您的 Google API Key", "Get selection", "Edge references unknown source node: ", "获取表单数据失败", "setState", "execution_start", "删除模板", "ZodIntersection", "uiWeight", "missingKey", "propsKeywords", " not in path ", " == null) ", "Import from disk", "fromCodePoint", "notifications/message", "var customRule", "loadLanguages", "this", "#3333FF", "strong", "app.queuePrompt caught", "sdppp_widgetable_title", "创建文档失败", "integer", "strict", "endsWith", " , parentSchema: validate.schema", "shorter", "Validation failed but no issues detected.", "secure", " , message: 'should match some schema in anyOf' ", "hasResourceBundle", "sdppp/abort", "heartbeatTimer", "适配至当前图层", " console.log(", " } } ", " = defaults[", "iri", "上传已中止", "precision", "jsonPointers", "Logout", "setupStreamResponseHandler", "pluralRulesCache", "forEach", "setNotificationHandler", "生成中", "请填写模板名称。", "unshift", ".call( ", "Waiting for ComfyUI to finish connecting…", "[UnexpectedJSONParseError]: ", "Opening workflow", " } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ", " = null; ", "dir", "needsPlural", "_formats", " if (true) {", "messagePoster", "Current", "cuid", "hasPath", "云端推荐:", "hasOutgoingRequestInterceptor", "|0?0?", ", received '", "unescapePrefix", "#/definitions/simpleTypes", " , message: 'boolean schema is false' ", "schema should be object or boolean", " for interpolating ", "output", "粘贴你的模型名称", "processors", "Unknown", "statusText", "getFixedT", "handle", "$comment", "_errors", "ckb", "invalid_union_discriminator", "服务不可用 (503)", "query", "statements", "Default", "coerced", "schema $id ignored", "Leave empty for no limit", "overloadTranslationOptionHandler", "给发送的图片创建文档", "Channel connecting...", ") break; ", "roots/list", "UNRESERVED", "setOutgoingNotificationInterceptor", "fallbackLng", "escapeComponent", '" was not yet loaded', "dev", "toASCII", " else ", "fallbackNS", "console", "isTime", "模型物美价廉,海量社区应用", "__origin", "高级选图", "documentElement", "2024-10-07", "toJSON", "updateKey", "Options", "minutes", "1.0.0", "拖拽图片到此处松开完成上传", "插件可能正在拦截 PS 快捷键... ", "_validateKeyword", "Advanced selection", "widgetableStructure", "setLimit", "__proto__", "messageHandlers", "run API 调用失败 - {{reason}}", "level", "sdppp/streamResponse", "pong", "#00CC99", "outgoingRequestInterceptors", "; if (vErrors !== null) { if (", "ComfyUI服务器重连中", "nsSeparator", "languageChanged", "checkState", "signal", "URI is not a ", "+Alt 反转遮罩", " = true; ", "headers", " = ''; ", "duration", " == 'object' && Array.isArray(", "_compile", "resolve", "#/definitions/schemaArray", " cannot be resolved", "res", "暂无默认模板。", "ZodFunction", "interpolationkey", " if (errors === ", " , message: 'should be equal to one of the allowed values' ", "Unsupported upload type: {{type}}", "%c ", "graphToPrompt", "找不到图层: {{0}}", "other", "arb", "Gemini 2.5 Flash 图像", "entries", " { keyword: '", " ? ", "isULID", "Array must contain ", ".dataPath === undefined) ", "Email address's domain name can not be converted to ASCII via punycode: ", "_parse", "nodeProxies", "Negative prompt content", "ZodUnion", "setItem", "Please login to use the plugin", "Received host version from UXP:", ".test(", "ZodUnknown", "run API failed - nodeInfoList unavailable. Please call getNodes() first.", "passingSchemas", "stopAll", " for language ", "./api/userdata/workflows%2F.index.json", "failed", " than ", "logger", "maxDate", " , message: 'should NOT be valid' ", "使用教程", "cleanupConnection", "More actions", "Sending...", "humanize", " , params: { propertyName: '", "ValidationError", ".dataPath = (dataPath || '') + ", "'/' + ", "function", "comfy-user", "新增槽位", "getNodes API 调用失败 - {{reason}}", "&", "arz", "Notification handler failed for ", " === 'true' || ", "getItem", "getValidEnumValues", '" resolves to more than one schema', " = false; ", "Template removed.", " %c", "less than", "longer", "'", "getAccountStatus API failed - HTTP error! status: {{status}}", "_getType", "11520081QRymeY", " , params: { keyword: '", "postProcessPassResolved", "Selection bounds only", "[MCPMiddleware]", "Base URL", "resources/subscribe", " ? await ", "map", "not_finite", "整个画布", "File not found: {{path}}", "errorMap", "waiters", "getDefinition", "需要提供图像和提示词", ") { ", "waitingReads", "新建模板", "Get Image", "negative", ".validateSchema(", "SDPPP 2.0 不再需要此节点", "使用整个画布", "(Queue:{{queueSize}}) {{progress}}% {{executingNodeTitle}}...", " = RULES.custom['", "isFinite(", "notificationsHandled", "Manage reusable prompt templates", "startTime", "[A-Fa-f]", "errors", "activeWorkflow", "Failed to update the {{part}} prompt: ComfyUI connection is not ready.", "_addCheck", "Cycle detected: ", "Failed to pick file. Please try again.", "Disk", "[vV]", `Get image & -Crop selection mask`, "#33CC66", " , rootData ) ", "getNeighbors", "{1,4}", "Quick", "rootId", "curlayer_selection", "removeSchema", " for nesting ", "<", "int", "arrayToEnum", "index", "获取 API Key", "not-basic", "Connecting to ComfyUI...", " var vErrors = null; ", ` , message: 'should match "' + `, "getDataByLanguage", "目标边界为空", "Cloud:", " && !Array.isArray(", "refine", ") break; } ", ")) { ", "Click to restore default boundary", "_responseHandlers", "ZodError", "env", "以当前图层边界获取当前图层", "validation", "Workflow stopped by user", "queues", "Template applied.", "createErrors", "joinArrays", "deprecate", "InvalidParams", "nodeId", "#FF00CC", "设为画布", "Send to PS", ".length; ", "McpError", "_getInvalidInput", "http://json-schema.org/schema", "创建图层失败", " character(s)", "无法写入{{part}}提示词:ComfyUI 尚未就绪。", "initAsync", "Auto Sync: on", "value", " , message: 'should be equal to constant' ", "File upload failed", " if (false) { ", "RequestTimeout", " == 'object' && !(", "当前没有可用图层", "ZodObject", "buildAdjacencyList", "safeParseAsync", "nest", "languageDetector", "messageQueue", "0?[1-9]", "Layer mask", "非当前文档", "services", "无法打开图像文件: {{error}}", "notification", "cmp", "i18nFormat", "acx", "addNamespaces", "uploadImage API failed - HTTP error! status: {{status}}", ") { for (var ", "lastPongReceived", " + ']'", "compile", "order", "every", "Upload aborted", "sdppp_assets", " != 'undefined' && ", "([+-]\\d{2}:?\\d{2})", "prs", "提示词模板", "graphInstance", "userAgent", "Number must be ", "#/definitions/nonNegativeInteger", "removeDefault", "服务器错误 (500)", "Select", "supportedLngs", "sdppp", "callValidate", "capacity", " if (!", "isPersisted", "utils", "zod", "isArray", "default is ignored in the schema root", ", received ", "getLanguagePartFromCode", "openWorkflows", "Range 1-100", "toFixed", "regexpUnescape", " has duplicate value ", "~validate", "messages", "本地文件", "删除当前", "resources/unsubscribe", "removeKeyword", "none", "macro", "[0]; ", "invalid_type", "exec_info", "workflowManager", "getResourceBundle", "requestsIntercepted", "New Layer", "Get mask from Canvas", "toResolveHierarchy", 'custom keyword "', "setKey", ".patternProperties", "isFinite", "Failed to fetch account status", "Uploading, if the image too large, may be lag...", "done", "errs_", "_options", "New Template", "; ", "Model", "languageChanging", "ZodCatch", "async schema in sync schema", "getConnectionCount", "Uploader not set", "{0,4}", "902iKxqfg", "No image returned", "Input Image", "[0-9]", "Full Canvas", "handleIncomingMessage", "year", "Server does not support tools (required for ", "opts", "addEventListener", "renderer", "async keyword in sync schema", "proxy", "#FFCC33", ".schema = ", "isRoot", "abs", "#FF3399", "Internal error", "pctEncChar", "Please select AI service", "escapeQuotes", "alwaysFormat", "Success", "token", " try { await ", "returnObjects", "正在发送图像...", "/type", "clearHeartbeatTimers", "hasNotificationHandler", " } else { ", "disconnected", "图层 {{layerName}}", "streamRequestorHandlers", "Cancel", "getKeyword", "nullable", "清除参考线框架", "handleIncomingRequest", "key", " via punycode: ", 'Invalid input: must end with "', "hasLanguageSomeTranslations", " = false; else if (", "minSize", "externalListenMessageCallback", "superRefine", "not_multiple_of", "is an invalid additional property", "Remove slot", "addResources", "POST", "发送所有", " failed", "Failed to save prompt templates.", "joinAs", "dataProperties", "dataPathArr", "absolute", "substr", "模板名称已存在。", "video", "nonempty", "Current layer", " not implemented for node ", "Task creation aborted", "getTextInfo", "exclusiveMaximum", "停止并取消全部", "[^]", "and", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", "保存提示词模板失败。", "toQuotedString", " = true; else if (typeof ", "rejecting language code not found in supportedLngs: ", "test", " !== undefined ", ".length , ", "avl", "runningRequests", "(?:", "选择文件失败,请重试", "requestHandlers", "./sdppp_upload2", "输出至:", "images", "isLanguageChangingTo", "valueType", "mergeObjectAsync", "changeLanguage", "schemas", "forwardBroadcast", "spa", "; var ", "lastIndexOf", "meta-schema not available", "detection", "notifications/prompts/list_changed", "./api/manager/reboot", "请填写提示词内容。", "MIN_SAFE_INTEGER", "assert", ".length <= ", "', depsCount: ", "Unknown message type: ", "_error", " , params: { ref: '", "removeEventListener", " , params: { i: i, j: j } ", "自动填入画布关闭", "sdpppX2", "useRawValueToEscape", "$t(", "Gateway error (502)", "stream", "default", " || validate.schema", "allKeys", "获取工作流列表失败。", "more than", "OpenAI API 错误", "Loading...", "sourceType", "omit", "formatLanguageCode", "listWorkflows", "startsWith", "{0,1}", "Server does not support sampling (required for ", "exactLength", "Invalid discriminator value. Expected ", "should have required property \\'", "loadNamespaces", " = errors; var ", "仅选区范围", "nodeTransports", "copy", "No store found for node ", "createGlobalDispatcherForType", ` + '" schema' `, '.schemaPath = "', "#CC0066", "sessionId", "; } catch (e) { ", "async", "Modify", "正在发送所有图片...", "validateStreamRequestorRequest", "minItems", "); errors = vErrors.length; for (var ", "setter", "exclIsNumber", "应用模板失败。", "模板名称", "} else { errors = ", "createInstance", "table", ".pi-sign-out", "contextSeparator", "Execute", "ComfyUI加载失败,HTTP状态码:{{code}}", "applyPostProcessor", "sendStreamRequestorRequest", "edges", "画布变更后自动运行工作流", "call", "catch", "xn--", "Number must be finite", "Please provide a template name.", "更多设置", "mesh", "getConnectionToNodeInternal", "tools", "HTTP URIs must have a host.", "Canvas", "tried", "[\\:\\@]", " var ", "$schema", "Failed to load workflows.", " ) ", " === '' || ", "auto", "addFormat", "[BroadcastManager] Error forwarding ", "prompts/list", "NOT_HOST", "Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.", "Input Setting", "WARNING DEPRECATED: ", "getOwnPropertyNames", "2024-11-05", "#3366CC", " = errors;var ", " , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' ", "Server error (500)", "(为空)", "weeks", "591hssNzt", "Run Photoshop Action", "compiling", "workflow-run", "tolerant", " != 'boolean') ", "Create document", """, "[\\-\\.\\_\\~]", "Current layer bounds only", " var startErrs", "authInfo", "pctDecChars", "unsetRequestHandler", "Server does not support notifying about resources (required for ", "clearItems", "concat", " element(s)", "#FF0000", "notifications/tools/list_changed", "yds", "sec", "画布变动后自动运行", "invalid_literal", "startHeartbeat", "Keyword ", "requestIdSeq", " = undefined;", "updateMissing", "选择 AI 服务提供商", "Failed to connect to ComfyUI (HTTP {{code}})", "ZodEnum", "isBase64url", "getPluralFormsOfKey", '" (see option extendRefs)', ") break; } ", "maxReplaces", '" already exists', "pre", "silent", "shape", "addMiddleware", "Fetch current layer with primary boundary", " = typeof ", "tools/call", "filename", "formatParams", "has", "Invalid enum value. Expected ", "action", "Enter your RunningHub API Key", "_any", "arq", "__cycle__", "2.0", "Failed", "More Settings", "saveMissing", "get_layer_info: 需要 layer_identify", "_regex", "slice", "Error in direct request ", "Username: {{username}}", "closeHandlers", "MissingRef", "getStats", "off", "strip", " return data; ", "invalid_return_type", "[\\+\\-\\.]", "#33CC99", "Current selection: Canvas", " when property ", "broadcastReceived", "Locale", "ulid", "nonnegative", " === false || ", "merge", "URI can not be parsed.", "nodeErrors", "/else", "#0099CC", "buildDirectedAdjacencyList", " != 'number') || ", "Comfy侧SDPPP版本({{comfyVersion}})与插件({{pluginVersion}})不匹配,运行可能有问题", "_clientVersion", "status API failed - {{reason}}", "unionErrors", '"number"', "留空表示不限", "resetRegExp", "invalid_intersection_types", "智能对象图层", "debugDisableHeartbeatResponse", "fullPath", "unicodeSupport", "addMessageEventListener", "currentOnly", " === undefined) ", ") ) { ", "stats", " if (errors === 0) return data; ", "useDefaults", "pluralCategories", "正在运行", "isIP", "已限定范围", "join", "_onclose", "pluralSeparator", "NOT_PATH_NOSCHEME", "destroy", " , params: { additionalProperty: '", "prompt_ids: ", "exactly equal to ", "filter", "email", "ping", "handleIncomingNotification", "[^\\%\\[\\]\\:]", "isEmoji", "assertEqual", " != 'number') { ", "number", "以主图边界获取当前图层", "; else vErrors = null; } ", "_path", "enable", "charAt", "Comfy.userId", "Action handler ", "string", " validate.errors = vErrors; return false; ", " = errors;", " = null; try { ", "augment", "{0,5}", "addResourceBundle", "async schema referenced by sync schema", "requestedSchema", "charCodeAt", "Incoming message:", "invalid-input", " reference.", " === 'false' || ", "Selection", "Delete Template", 'key "', "Layer {{layerName}}", "timeoutId", " from id ", "skipInterpolation", " = errors; ", ", schema", "dataVar", "No crop", ".length ", "validation failed", "notifications/resources/list_changed", "Not connected", "syncStoresToNewConnection", "` could not be extracted from all schema options", "CurLayer", "未找到图层 {0}", "[^\\%\\/\\:\\@]", "comfy", " + ", "format", "Positive Crop", "selectColor", "count", "_addSchema", "批次数量", "sdppp/directRequest", "assertRequestHandlerCapability", "false", "actionManager", "Comfy SDPPP version ({{comfyVersion}}) does not match plugin ({{pluginVersion}}), may cause issues", "execution_error", "运行失败 - 未获取到 nodeInfoList,请先执行 getNodes()。", "curlayer_canvas", "fragment", " == +", "exclusiveMinimum", "请选择要获取的图像", "delete", "aec", "_clientCapabilities", "#33CC33", " = equal(", "Enter your Replicate API Key", "$ref", "contentMediaType", "unknownKeys", "+Alt 按选区裁剪", "Not implemented (501)", " var itemIndices = {}, item; for (;i--;) { var item = ", "nullish", "Validation", "#3300CC", "mesh:workflow", "pop", "创建操作需要矩形坐标", "invalid_string", "default is ignored for: ", "#FF0033", "#99CC00", "mountedEndpoints", "等待 ComfyUI 连接完成…", ") > 1e-", "more", "createStreamState", "apply", "#0099FF", "[i]; ", "按选区裁剪", " should be boolean' ", "initializeNodeStores", "iterator", "prototype", " , message: '", "connect", "node_id", "remove", " not found for current node ", "?\\:\\:", "ref/resource", "multipleOfPrecision", "]; } ", "ZodDate", "usedParams", "从 当前图层 获取遮罩", "Fit to current layer", " validate.errors = vErrors; ", "passContext", "Failed to get result: {{error}}", "assertNever", "Crop", "openWorkflow", "transports", "Current option: File", "masks", "color: ", "getConnectionInfo", "Generating", "sdppp/streamRequest", "MiddlewareError", "You are passing an undefined module! Please check the object you are passing to i18next.use()", "ComfyUI not ready", "buffer", "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", 'no schema with key or ref "', "acm", "ComfyUI failed to load, HTTP status code: {{code}}", "manuallyExtractDefaults", 'schema with key or id "', "extendRefs", "按回车打开应用: {{appName}}", "__nwjs", "Create document for preview", " , message: 'should contain a valid item' ", "setComfyOrgAPIKey", "获取账户信息失败", "mesh:comfy", "ZodNativeEnum", "getDefaultValuesFromSchema", "backendConnector", "debug", "%[89A-Fa-f]", "getTransport", "当前无法应用模板。", "sdppp 选中图层", " ) ", "passthrough", "生成中...", "storage", " !== undefined)", "ZodNullable", "isBase64", "同步当前内容", "hrs", "重启ComfyUI失败", " = false; break outer; } } } ", "validate.schema", "loading namespace ", "文件上传失败", "base64url", "Empty", "root", "observers", "context", " ) || ", "ZodNever", "http://json-schema.org/draft-07/schema", "preload", "Paste WebApp ID here", "readOnly", "clone", " , message: 'should NOT have ", "fcName", "[\\uE000-\\uF8FF]", "请选择要获取的遮罩", "removeResourceBundle", "Google Gemini - 图片生成", "ZodNumber", "workflows/", "自定义AI工作流引擎", "点我恢复", "设为选区", " , params: { pattern: ", "body", "找不到文档: {{0}}", "workflows", "optionsMap", " in ", "isClone", "Fetch current layer with current-layer boundary", "timestamp", "Schema ", "Request timed out", "getImage", " if (!", "setupStreamProtocolHandlers", "已添加遮罩", "broadcast", "{0,6}", "enforceStrictCapabilities", "missingInterpolationHandler", "escapeFragment", " , params: { passingSchemas: ", "hasEdge", "_cached", "contextualErrorMap", "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!", '"; ', "+\\.", "checkDataType", "zh-CN", "graph update cost ", "abh", " var missing", "_setupTimeout", "addPostProcessor", "safeParse", "parseInt", "usePattern", " ( ", "ZodNaN", "node_errors", "调整输入设置", ".type", "info", "My Templates", "invalid_arguments", "resolved promise for", "{2}", "prd", "post", "readonly", "continueOnInterceptorError", "auz", "full", "jsonStringifyReplacer", "#33CCFF", "hasAction", "mergeArray", "uri", "Please provide prompt content.", "ZodLazy", "Current selection: Layer", "status API 调用失败 - HTTP 错误,状态: {{status}}", "Prompts", "更多操作", "then", "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", "allOf", " ) : ( (", ", rootData) ", "Auto", "ids", " = true;", "Layer not found {{0}}", "defaultNS", "markConnected", "second", "getNodes API failed - {{reason}}", "正面提示词", "getHandler", "brand", "comfy_api_key", "ZodArray", "common", "setupStreamRequestHandler", "请输入大于 0 的像素值", "resource", `" keyword validation' `, "status API failed - HTTP error! status: {{status}}", "loadSchema", "Service unavailable (503)", " == 'boolean') ", "Store not found for ", "Enter Google API Key", "removeNamespaces", "resourceName", " = false; else {", "/patternProperties/", "从 画布 获取图像", " var errors = 0; ", "cidr", "Invalid boundary type: {{type}}", "contains", "newdoc", "obj", "schemaPath", "trim", "void", "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", "promise", "meta", " for (var ", " == errors) { ", "errs__", "No edge defined from ", "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", "finite", "datetime", "msecs", "Primary image resource is missing", "resources/templates/list", "$schema must be a string", "property ", "schema id must be string", "mergeShapes", "Sync current content", "_onresponse", "file://", "nestingOptionsSeparator", " var err = ", "rtl", "languageUtils", " || ! Object.prototype.hasOwnProperty.call(", "866996juqZNF", "Prompt Templates", " = ", "507330gFwBKe", "Request handler failed: ", "提示词", "http", "MAX_SAFE_INTEGER", "ZodLiteral", "Client does not support listing roots (required for ", "same-document", "actions"]; - return Nx = function() { - return o; - }, Nx(); -} -let Ws = Fi(); -const Ni = { "zh-CN": {}, "en-US": {} }; +let Js = qi(); +const Ai = { "zh-CN": {}, "en-US": {} }; function Xt(o) { - const x = o === "zh-CN" ? ii : ci, t = Ni[o]; + const x = o === "zh-CN" ? di : li, t = Ai[o]; return { ...x, ...t }; } -function Ti() { - return Ws; +function _i() { + return Js; } function Yt(o, x = {}) { const t = a; - let e = Xt(Ws)[o]; - return e ? typeof e === t(2161) ? e[t(575)](/\{\{(\w+)\}\}/g, (s, n) => x[n] !== void 0 ? String(x[n]) : s) : e : o; + let e = Xt(Js)[o]; + return e ? typeof e === t(1653) ? e[t(784)](/\{\{(\w+)\}\}/g, (s, n) => x[n] !== void 0 ? String(x[n]) : s) : e : o; } -const qi = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ai = { "&": "&", "&": "&", "<": "<", "<": "<", ">": ">", ">": ">", "'": "'", "'": "'", """: '"', """: '"', " ": " ", " ": " ", "©": "©", "©": "©", "®": "®", "®": "®", "…": "…", "…": "…", "/": "/", "/": "/" }, Oi = (o) => Ai[o], _i = (o) => o.replace(qi, Oi); -let xr = { bindI18n: a(1560), bindI18nStore: "", transEmptyNodeValue: "", transSupportBasicHtmlNodes: !0, transWrapTextNodes: "", transKeepBasicHtmlNodesFor: ["br", a(1445), "i", "p"], useSuspense: !0, unescape: _i }; -const Di = (o = {}) => { +const Oi = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Di = { "&": "&", "&": "&", "<": "<", "<": "<", ">": ">", ">": ">", "'": "'", "'": "'", """: '"', """: '"', " ": " ", " ": " ", "©": "©", "©": "©", "®": "®", "®": "®", "…": "…", "…": "…", "/": "/", "/": "/" }, ji = (o) => Di[o], Mi = (o) => o[a(784)](Oi, ji); +let xr = { bindI18n: a(2343), bindI18nStore: "", transEmptyNodeValue: "", transSupportBasicHtmlNodes: !0, transWrapTextNodes: "", transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"], useSuspense: !0, unescape: Mi }; +const Li = (o = {}) => { xr = { ...xr, ...o }; -}, ji = { type: a(1262), init(o) { - const x = a; - Di(o[x(1005)][x(1318)]); +}, $i = { type: "3rdParty", init(o) { + Li(o.options.react); } }; -!X0[a(182)] && X0.use(ji)[a(2636)]({ resources: { "zh-CN": { translation: Xt(a(2367)) }, "en-US": { translation: Xt("en-US") } }, lng: Ti(), fallbackLng: a(1282), interpolation: { escapeValue: !1 } }); -const Fe = []; -Ye[a(2763)] = Ye[a(2763)] || {}, Ye[a(2763)][a(2655)] = function(o, x) { - const t = a; - typeof x === t(1622) ? Fe[t(452)]([o, { formatter: x, setter: null }]) : Fe.push([o, x]); +!Xe[a(707)] && Xe[a(2792)]($i)[a(943)]({ resources: { "zh-CN": { translation: Xt(a(359)) }, "en-US": { translation: Xt("en-US") } }, lng: _i(), fallbackLng: "en-US", interpolation: { escapeValue: !1 } }); +globalThis[a(1330)] = globalThis[a(1330)] || {}; +const xx = globalThis[a(1330)], F0 = []; +xx[a(2385)] = xx.widgetable || {}, xx[a(2385)][a(479)] = function(o, x) { + typeof x == "function" ? F0.push([o, { formatter: x, setter: null }]) : F0[a(902)]([o, x]); }; -function Mi(o, x, t) { - var c, u, d; - const r = a, e = Fe[r(1341)](([f]) => f == "__DEFAULT__"), s = Fe[r(1341)](([f]) => ia(f, o[r(612)])) || e; +function Ui(o, x, t) { + var c; + const r = a, e = F0[r(1036)](([u]) => u == r(2308)), s = F0.find(([u]) => ia(u, o.type)) || e; let n = !1; if (s) { - const f = s[1][r(1979)]; - f && (n = !!f(o, x, t)); + const u = s[1].setter; + u && (n = !!u(o, x, t)); } - !n && (o[r(234)][x].value = t, (u = (c = o[r(234)][x]).callback) == null || u.call(c, t)), (d = (N0[r(1803)] || N0[r(969)][r(832)])[r(1673)]) == null || d[r(361)][r(1561)](); + !n && (o[r(805)][x][r(998)] = t), (c = (Ne[r(1153)] || Ne[r(1631)][r(2425)])[r(1568)]) == null || c[r(1079)][r(2017)](); } -function Tx(o) { - const x = a, t = {}, r = Fe[x(1341)](([e]) => e == x(971)); - return o[x(1102)][x(1471)]((e) => { +function Nx(o) { + const x = a, t = {}, r = F0[x(1036)](([e]) => e == "__DEFAULT__"); + return o[x(1064)].forEach((e) => { const s = x; - if (!e.widgets || e.widgets[s(692)] == 0) return; - const n = Fe.find(([i]) => ia(i, e[s(612)])) || r; + if (!e[s(805)] || e[s(805)][s(1332)] == 0) return; + const n = F0[s(1036)](([i]) => ia(i, e.type)) || r; if (n) try { - const i = n[1][s(839)](e); - i && (t[e.id] = i.widgets[s(1649)]((c) => c[s(1732)])); + const i = n[1][s(1611)](e); + i && (t[e.id] = i.widgets[s(2742)]((c) => c[s(998)])); } catch { t[e.id] = []; } @@ -4379,59 +4372,59 @@ function ea(o, x) { var s, n, i; const t = a; if (!o) return { widgetableID: "", widgetablePath: "", nodes: {}, nodeIndexes: [], options: {}, note: "" }; - const r = o[t(1102)][t(1649)]((c) => { + const r = o.nodes[t(2742)]((c) => { const u = t; - if (c[u(2588)] != 0) return; + if (c.mode != 0) return; const d = mx(c); - if (!d || d[u(1955)](".") || !c[u(234)] || c[u(234)][u(692)] == 0) return; - let f = Fe[u(1341)](([m]) => ia(m, c[u(612)])); - if (f) try { - const m = f[1].formatter(c); - if (m) return m.id = c.id, m.uiWeightSum = m[u(234)][u(172)]((v, k) => v + (k[u(1433)] || 12), 0), m; + if (!d || d[u(533)](".") || !c.widgets || c.widgets[u(1332)] == 0) return; + let l = F0[u(1036)](([m]) => ia(m, c[u(190)])); + if (l) try { + const m = l[1].formatter(c); + if (m) return m.id = c.id, m.uiWeightSum = m.widgets.reduce((v, k) => v + (k[u(2735)] || 12), 0), m; } catch (m) { - return { id: c.id, title: d, uiWeightSum: 12, widgets: [{ outputType: u(948), value: Yt("convert widget {0} failed:", f[0]) + (m.message || m || ""), name: "", options: {} }] }; + return { id: c.id, title: d, uiWeightSum: 12, widgets: [{ outputType: u(2265), value: Yt(u(550), l[0]) + (m[u(615)] || m || ""), name: "", options: {} }] }; } if (!d.startsWith("#")) return null; - let l = c[u(234)]; - const b = Fe[u(1341)](([m]) => m == u(971)); + let f = c.widgets; + const b = F0[u(1036)](([m]) => m == "__DEFAULT__"); if (b) { - const m = b[1][u(839)](c); - if (m) return Object[u(1191)](m, { uiWeightSum: m[u(234)][u(172)]((v, k) => v + (k[u(1433)] || 12), 0) }); + const m = b[1][u(1611)](c); + if (m) return Object[u(2873)](m, { uiWeightSum: m.widgets.reduce((v, k) => v + (k[u(2735)] || 12), 0) }); } - const h = { id: c.id, title: d, widgets: l[u(1649)]((m) => ({ name: m[u(1061)] || m.name, outputType: m[u(612)] || u(2161), value: m[u(1732)], options: m[u(1005)] })) }; - return Object[u(1191)](h, { uiWeightSum: h[u(234)][u(172)]((m, v) => m + (v[u(1433)] || 12), 0) }); - })[t(2145)](Boolean)[t(1025)]((c, u) => { + const h = { id: c.id, title: d, widgets: f[u(2742)]((m) => ({ name: m.label || m[u(2481)], outputType: m[u(190)] || u(1653), value: m[u(998)], options: m[u(961)] })) }; + return Object[u(2873)](h, { uiWeightSum: h[u(805)][u(1774)]((m, v) => m + (v[u(2735)] || 12), 0) }); + })[t(1706)](Boolean)[t(1086)]((c, u) => { const d = t; - let f = mx(c), l = mx(u); - return f = f[d(1955)]("#") ? f.slice(1)[d(2444)]() : f.trim(), l = l[d(1955)]("#") ? l[d(2088)](1)[d(2444)]() : l[d(2444)](), f.localeCompare(l); - }), e = ((n = (s = o[t(1102)][t(1341)]((c) => c[t(612)] == "Note" && c[t(1266)].match(/SD-?PPP/i))) == null ? void 0 : s.widgets[0]) == null ? void 0 : n[t(1732)]) || ""; - return { widgetablePath: ((i = x.activeState[t(638)]) == null ? void 0 : i[t(419)]) || x[t(2619)], widgetableID: x[t(986)].id, nodes: r.reduce((c, u) => (c[u.id] = u, c), {}), note: e, nodeIndexes: r[t(1649)]((c) => c.id), options: {} }; + let l = mx(c), f = mx(u); + return l = l[d(533)]("#") ? l[d(2103)](1).trim() : l.trim(), f = f[d(533)]("#") ? f[d(2103)](1)[d(436)]() : f[d(436)](), l[d(1529)](f); + }), e = ((n = (s = o.nodes.find((c) => c[t(190)] == "Note" && c[t(2499)][t(2716)](/SD-?PPP/i))) == null ? void 0 : s[t(805)][0]) == null ? void 0 : n[t(998)]) || ""; + return { widgetablePath: ((i = x.activeState[t(924)]) == null ? void 0 : i.sdppp_workflow_alias) || x[t(2475)], widgetableID: x[t(735)].id, nodes: r.reduce((c, u) => (c[u.id] = u, c), {}), note: e, nodeIndexes: r[t(2742)]((c) => c.id), options: {} }; } function ia(o, x) { - const t = a, r = o[t(575)](/[.+^${}()|[\]\\]/g, t(605)).replace(/\*/g, ".*")[t(575)](/\?/g, "."); - return new RegExp("^" + r + "$")[t(1904)](x); + const t = a, r = o[t(784)](/[.+^${}()|[\]\\]/g, t(2674))[t(784)](/\*/g, ".*")[t(784)](/\?/g, "."); + return new RegExp("^" + r + "$").test(x); } function mx(o, x = "") { var e; const t = a; - let r = x || o[t(1266)] || ""; - return o[t(428)] && (r.startsWith("#") || r[t(1955)](".")) ? o[t(428)](t(1447), r) : r = ((e = o.properties) == null ? void 0 : e[t(1447)]) || r, r; + let r = x || o.title || ""; + return o.setProperty && (r.startsWith("#") || r[t(533)](".")) ? o.setProperty(t(1167), r) : r = ((e = o[t(657)]) == null ? void 0 : e[t(1167)]) || r, r; } -Ye[a(881)] = mx; -const xa = ox[a(243)](a(2230)), tr = /* @__PURE__ */ new Set(); -P0[a(230)]("setWidgetValue", async (o) => { +xx.getNodeTitle = mx; +const xa = ox[a(2636)](a(205)), tr = /* @__PURE__ */ new Set(); +Pe[a(2847)](a(1563), async (o) => { const x = a; - return requestAnimationFrame(vn), o[x(1382)][x(1471)](({ nodeID: t, widgetIndex: r, value: e }) => { - const s = x, n = N0.graph[s(1102)][s(1341)]((i) => i.id == t); - Mi(n, r, e); + return requestAnimationFrame(kn), o[x(1573)][x(1953)](({ nodeID: t, widgetIndex: r, value: e }) => { + const s = x, n = Ne.graph[s(1064)][s(1036)]((i) => i.id == t); + Ui(n, r, e); }), { success: !0 }; -}), P0[a(230)](a(2268), async (o) => { - const x = a, { workflow_path: t } = o, r = !tr.has(t), e = o.reset || r; - tr[x(2655)](t); - const s = N0[x(969)][x(832)] || N0[x(1803)], n = s[x(2342)][x(1341)]((c) => c[x(450)] === t || c[x(2619)] === t || c[x(2619)] === x(2335) + t); +}), Pe[a(2847)]("openWorkflow", async (o) => { + const x = a, { workflow_path: t } = o, r = !tr.has(t), e = o[x(1660)] || r; + tr[x(479)](t); + const s = Ne.extensionManager[x(2425)] || Ne[x(1153)], n = s[x(1705)][x(1036)]((c) => c[x(988)] === t || c.path === t || c[x(2475)] === x(1291) + t); if (!e) { - const c = await Li(s, n); - if (xa(x(2542) + c), c) await Gx(s, n); + const c = await Hi(s, n); + if (xa(x(1500) + c), c) await Gx(s, n); else try { await i(s, n); } catch { @@ -4442,926 +4435,927 @@ P0[a(230)]("setWidgetValue", async (o) => { return await Gx(s, n), { success: !0 }; async function i(c, u) { const d = x; - xa(d(592) + u[d(2619)], u[d(1302)]), N0[d(1803)] == c ? await u[d(2622)]() : (await c.openWorkflow(u), await N0[d(217)](JSON.parse(JSON[d(2625)](u[d(1302)])), !0, !0, u, {})); + xa("openWorkflow: " + u[d(2475)], u.initialState), Ne[d(1153)] == c ? await u[d(499)]() : (await c[d(165)](u), await Ne[d(2428)](JSON[d(429)](JSON[d(306)](u[d(1976)])), !0, !0, u, {})); } -}), P0[a(230)](a(1412), async function(o) { +}), Pe[a(2847)](a(2235), async function(o) { const x = a; let { workflow_content: t, workflow_path: r } = o; - return t[x(638)] = { ...t[x(638)] || {}, sdppp_workflow_alias: r }, await N0.loadGraphData(t), { success: !0 }; -}), P0.implementAction(a(1954), async (o) => { + return t[x(924)] = { ...t[x(924)] || {}, sdppp_workflow_alias: r }, await Ne[x(2428)](t), { success: !0 }; +}), Pe.implementAction(a(2631), async (o) => { var s; - const x = a, t = N0[x(1803)] || N0[x(969)][x(832)]; - (s = t.syncWorkflows) == null || s.call(t), await new Promise((n) => requestAnimationFrame(n)); - let e = t[x(2342)][x(1649)]((n) => n[x(2619)][x(575)](x(2335), "")); + const x = a, t = Ne[x(1153)] || Ne[x(1631)].workflow; + (s = t[x(2786)]) == null || s.call(t), await new Promise((n) => requestAnimationFrame(n)); + let e = t[x(1705)][x(2742)]((n) => n[x(2475)].replace(x(1291), "")); try { - const n = new Headers(), i = localStorage[x(1630)](x(2159)); - i && n[x(758)](x(1623), i); - const c = await fetch(x(1607), { headers: n }); + const n = new Headers(), i = localStorage[x(647)](x(1298)); + i && n[x(1750)](x(1285), i); + const c = await fetch(x(2876), { headers: n }); let u = []; - c.ok && (u = (await c[x(506)]()).favorites[x(1649)]((f) => f.replace("workflows/", ""))), e[x(1025)]((d, f) => { - const l = x, b = u[l(1150)](d), h = u.includes(f); - return b && !h ? -1 : !b && h ? 1 : d[l(2509)](f); + c.ok && (u = (await c[x(2348)]())[x(252)][x(2742)]((l) => l[x(784)](x(1291), ""))), e[x(1086)]((d, l) => { + const f = x, b = u[f(2798)](d), h = u.includes(l); + return b && !h ? -1 : !b && h ? 1 : d.localeCompare(l); }); } catch { } return { workflows: e, error: "" }; -}), P0[a(230)](a(2506), async (o) => { +}), Pe.implementAction(a(524), async (o) => { var n; - const x = a, { workflow_path: t, from_sid: r } = o, e = N0.workflowManager || N0[x(969)][x(832)], s = e[x(2342)].find((i) => i[x(450)] === t || i[x(2619)] === t || i[x(2619)] === x(2335) + t); - if (!s) throw new Error(x(238)); - return ((n = e.activeWorkflow) == null ? void 0 : n.id) != s.id && await N0[x(2268)](t, r, !1), s.changeTracker.checkState(), await e[x(2506)](s), { success: !0 }; + const x = a, { workflow_path: t, from_sid: r } = o, e = Ne.workflowManager || Ne[x(1631)].workflow, s = e[x(1705)][x(1036)]((i) => i[x(988)] === t || i[x(2475)] === t || i[x(2475)] === x(1291) + t); + if (!s) throw new Error(x(2794)); + return ((n = e.activeWorkflow) == null ? void 0 : n.id) != s.id && await Ne.openWorkflow(t, r, !1), s[x(1079)][x(2017)](), await e.saveWorkflow(s), { success: !0 }; }); -async function Li(o, x) { +async function Hi(o, x) { var e, s, n; const t = a; - if (!x || !(((e = o[t(1673)]) == null ? void 0 : e.id) === x.id)) return !1; - if ((s = x.changeTracker) != null && s[t(1561)]) try { - x[t(361)][t(1561)](); + if (!x || !(((e = o.activeWorkflow) == null ? void 0 : e.id) === x.id)) return !1; + if ((s = x[t(1079)]) != null && s[t(2017)]) try { + x[t(1079)].checkState(); } catch (i) { - console.warn(t(722), i); + console[t(196)](t(1910), i); } try { - const i = (n = N0[t(1103)]) == null ? void 0 : n.serialize(), c = x[t(986)]; + const i = (n = Ne.graph) == null ? void 0 : n[t(1045)](), c = x[t(735)]; if (!i || !c) return !1; - const u = JSON[t(2625)](i), d = JSON[t(2625)](c); + const u = JSON[t(306)](i), d = JSON[t(306)](c); return u !== d; } catch (i) { - return console[t(343)](t(201), i), !1; + return console.warn(t(1090), i), !1; } } async function Gx(o, x) { var e; const t = a; - xa(t(994) + x[t(2619)]); + xa("performWorkflowReset: " + x[t(2475)]); async function r(s, n) { const i = t; - N0[i(1803)] == s ? await n[i(2622)]() : (await s.openWorkflow(n), await N0.loadGraphData(JSON[i(706)](JSON[i(2625)](n[i(986)])), !0, !0, n, {})); + Ne[i(1153)] == s ? await n[i(499)]() : (await s[i(165)](n), await Ne[i(2428)](JSON[i(429)](JSON[i(306)](n[i(735)])), !0, !0, n, {})); } - if ((x.isOpen || (e = o[t(967)]) != null && e.call(o, x)) && o[t(1787)][t(692)] === 1) { - const s = o.createTemporary(); - o[t(2268)](s); - } else await r(o, o[t(1787)][0] == x ? o.openWorkflows[1] : o[t(1787)][0]); - await o.closeWorkflow(x, !1), await new Promise((s) => requestAnimationFrame(s)), await r(o, x); + if ((x.isOpen || (e = o[t(181)]) != null && e.call(o, x)) && o[t(1535)][t(1332)] === 1) { + const s = o[t(2412)](); + o[t(165)](s); + } else await r(o, o[t(1535)][0] == x ? o[t(1535)][1] : o.openWorkflows[0]); + await o[t(790)](x, !1), await new Promise((s) => requestAnimationFrame(s)), await r(o, x); } -const nx = ox[a(243)](a(2031)), je = /* @__PURE__ */ new Map(); -let qx = []; +const nx = ox[a(2636)]("workflow-run"), M0 = /* @__PURE__ */ new Map(); +let Tx = []; const Jx = { hijacked: !1, originalQueuePrompt: null }; -function $i(o, x) { - const t = a, r = je.get(o); - nx(t(1039), o, x, r, je), r && r[t(1335)](x); +function zi(o, x) { + const t = a, r = M0[t(1094)](o); + nx(t(663), o, x, r, M0), r && r.resolveImage(x); } -P0.implementAction(a(1605), async () => { +Pe[a(2847)](a(2478), async () => { const o = a; - await N0.api[o(2043)](o(1153)), await N0[o(724)].interrupt(); - const x = Array.from(je[o(1382)]()); - je[o(899)](); + await Ne[o(699)][o(2885)]("queue"), await Ne[o(699)][o(2080)](); + const x = Array.from(M0[o(1573)]()); + M0[o(2254)](); for (const t of x) try { - t[o(574)](new Error(o(1712))); + t[o(1372)](new Error(o(2119))); } catch { } return { success: !0 }; -}), P0[a(230)](a(954), async function* (o) { +}), Pe[a(2847)](a(410), async function* (o) { const x = a; - Ui(), qx = []; - const t = o[x(2715)]; - P0[x(2585)][x(1429)]({ lastError: "", widgetableErrors: {} }); - const r = await Vi(t, o[x(2588)]); - nx(x(1095), r[x(2591)], r.nodeErrors, x(2143), r.promptIds), Zi(r), yield* Wi(r[x(412)]); + Vi(), Tx = []; + const t = o[x(2187)]; + Pe[x(2277)][x(2276)]({ lastError: "", widgetableErrors: {} }); + const r = await Zi(t, o.mode); + nx(x(394), r[x(438)], r[x(1550)], x(2525), r[x(2608)]), Gi(r), yield* Ji(r.promptIds); }); -function Ui() { +function Vi() { const o = a; - if (Jx.hijacked) return; - const x = Re.queuePrompt; - Jx[o(502)] = x, Re[o(545)] = async (...t) => { + if (Jx[o(356)]) return; + const x = C0[o(364)]; + Jx[o(661)] = x, C0[o(364)] = async (...t) => { const r = o; try { - const e = await x.call(Re, ...t); - return qx.push({ error: null, result: e, prompt_id: e[r(926)] }), e; + const e = await x[r(377)](C0, ...t); + return Tx[r(902)]({ error: null, result: e, prompt_id: e[r(532)] }), e; } catch (e) { - throw qx[r(452)]({ error: e, result: null, prompt_id: "" }), e; + throw Tx[r(902)]({ error: e, result: null, prompt_id: "" }), e; } - }, Jx[o(646)] = !0; + }, Jx[o(356)] = !0; } -async function Hi(o) { - await N0[a(545)](1, o); +async function Bi(o) { + await Ne[a(364)](1, o); } -async function zi(o) { - const x = a, t = await N0[x(1582)](N0[x(1103)]); +async function Wi(o) { + const x = a, t = await Ne.graphToPrompt(Ne[x(167)]); for (let r = 0; r < o; r++) - await Re[x(545)](1, t); + await C0[x(364)](1, t); } -async function Vi(o, x = a(400)) { +async function Zi(o, x = "app") { var e, s; const t = a, r = { promptIds: [], hasError: !1, generalError: "", nodeErrors: {} }; try { - x === t(724) ? await zi(o) : await Hi(o); - for (const n of qx) - if (n[t(948)]) r[t(2591)] = !0, r[t(2109)] = n[t(948)].response ? Ki(n.error[t(1400)][t(2378)]) : {}, Object[t(1191)](r[t(2109)], { "-1": ((s = (e = n.error[t(1400)]) == null ? void 0 : e[t(948)]) == null ? void 0 : s[t(225)]) || n[t(948)][t(225)] }); + x === t(699) ? await Wi(o) : await Bi(o); + for (const n of Tx) + if (n.error) r[t(438)] = !0, r[t(1550)] = n[t(2265)][t(1128)] ? Qi(n[t(2265)][t(1128)][t(2813)]) : {}, Object[t(2873)](r[t(1550)], { "-1": ((s = (e = n[t(2265)].response) == null ? void 0 : e[t(2265)]) == null ? void 0 : s[t(615)]) || n.error[t(615)] }); else { - const i = n[t(2671)][t(926)]; - r.promptIds[t(452)](i), Bi(i); + const i = n[t(1792)][t(532)]; + r.promptIds.push(i), Ki(i); } } catch (n) { - nx(t(1446), n[t(837)]), r[t(2591)] = !0, r[t(2109)] = { "-1": n[t(225)] || n[t(766)]() }; + nx("app.queuePrompt caught", n[t(494)]), r[t(438)] = !0, r[t(1550)] = { "-1": n.message || n[t(2032)]() }; } return r; } -function Bi(o) { - let x, t; - const r = new Promise((e, s) => { - x = e, t = s; +function Ki(o) { + const x = a; + let t, r; + const e = new Promise((s, n) => { + t = s, r = n; }); - je.set(o, { promise: r, resolveImage: x, rejectImage: t }); + M0[x(1750)](o, { promise: e, resolveImage: t, rejectImage: r }); } -function Zi({ hasError: o, generalError: x, nodeErrors: t }) { +function Gi({ hasError: o, generalError: x, nodeErrors: t }) { const r = a; - o && (x ? P0.store.setState({ lastError: x }) : P0[r(2585)].setState({ widgetableErrors: t })); + o && (x ? Pe[r(2277)].setState({ lastError: x }) : Pe[r(2277)][r(2276)]({ widgetableErrors: t })); } -async function* Wi(o) { +async function* Ji(o) { const x = a, t = /* @__PURE__ */ new Map(); for (const r of o) { - const e = je[x(1075)](r); - e && t[x(758)](r, e[x(2447)]); + const e = M0.get(r); + e && t[x(1750)](r, e[x(1114)]); } - if (t[x(2715)] !== 0) - for (nx("waiting for queue prompt"); t.size > 0; ) { - const r = Array.from(t[x(1587)]()), e = r[x(1649)](([i, c]) => c[x(2403)]((u) => ({ prompt_id: i, images: u }))), { prompt_id: s, images: n } = await Promise[x(2806)](e); - nx(x(2384), s), t[x(2215)](s), je[x(2215)](s), yield { success: !0, prompt_ids: [s], images: n }; + if (t[x(2187)] !== 0) + for (nx(x(1510)); t.size > 0; ) { + const r = Array[x(2280)](t[x(2700)]()), e = r.map(([i, c]) => c[x(723)]((u) => ({ prompt_id: i, images: u }))), { prompt_id: s, images: n } = await Promise[x(685)](e); + nx(x(1060), s), t.delete(s), M0.delete(s), yield { success: !0, prompt_ids: [s], images: n }; } } -function Ki(o) { +function Qi(o) { const x = a, t = {}; - return Object[x(750)](o).forEach((r) => { - const e = x, s = r[e(628)](":")[0], n = N0.graph[e(1102)].find((i) => i.id == s); - t[s] = "[" + ((n == null ? void 0 : n[e(1266)]) || s) + "]" + o[r][e(1672)][e(1649)](JSON.stringify).join(` + return Object[x(1806)](o)[x(1953)]((r) => { + const e = x, s = r[e(585)](":")[0], n = Ne[e(167)].nodes[e(1036)]((i) => i.id == s); + t[s] = "[" + ((n == null ? void 0 : n.title) || s) + "]" + o[r].errors.map(JSON[e(306)])[e(2252)](` `); }), t; } -const Gi = ox[a(243)]("actions:util"); -P0.implementAction(a(782), async (o) => { +const Xi = ox.extend(a(637)); +Pe.implementAction("sdpppHandshake", async (o) => { const x = a; - return o != null && o.hostVersion && Gi(x(1600), o[x(1304)]), { comfyVersion: "510", hostVersion: (o == null ? void 0 : o[x(1304)]) ?? "" }; -}), P0.implementAction(a(658), async (o) => { - const x = a, { node_id: t, title: r } = o, e = N0[x(1103)][x(1102)].find((s) => s.id == t); - if (!e) throw new Error(x(2749)); - return e[x(1266)] = r, e.setProperty("sdppp_widgetable_title", r), { success: !0 }; -}), P0[a(230)](a(1198), async () => { - const o = a, x = await fetch(o(1927)); - return x[o(2861)] == 404 ? { error: Yt("ComfyManager not found, cannot reboot"), success: !1 } : x[o(2861)] == 200 ? { success: !0 } : { error: Yt("Failed to reboot ComfyUI") + x.statusText, success: !1 }; -}), P0[a(230)](a(2291), async (o) => { + return o != null && o[x(2246)] && Xi(x(2262), o[x(2246)]), { comfyVersion: x(2464), hostVersion: (o == null ? void 0 : o[x(2246)]) ?? "" }; +}), Pe[a(2847)](a(792), async (o) => { + const x = a, { node_id: t, title: r } = o, e = Ne[x(167)][x(1064)].find((s) => s.id == t); + if (!e) throw new Error(x(405)); + return e[x(2499)] = r, e[x(1509)]("sdppp_widgetable_title", r), { success: !0 }; +}), Pe.implementAction(a(1402), async () => { + const o = a, x = await fetch(o(1232)); + return x[o(2745)] == 404 ? { error: Yt(o(2096)), success: !1 } : x[o(2745)] == 200 ? { success: !0 } : { error: Yt("Failed to reboot ComfyUI") + x[o(1449)], success: !1 }; +}), Pe[a(2847)](a(1687), async (o) => { const x = a, { api_key: t } = o; - return localStorage[x(1598)](x(2419), t), location[x(1067)](), { success: !0 }; -}), P0[a(230)]("logout", async () => { + return localStorage[x(1968)](x(1725), t), location[x(2263)](), { success: !0 }; +}), Pe.implementAction(a(1003), async () => { const o = a; - return document[o(1246)](o(1986)).parentElement[o(979)](), { success: !0 }; + return document.querySelector(".pi-sign-out")[o(2156)].click(), { success: !0 }; }); -function Ji(o) { - const x = a, t = atob(o), r = t[x(692)], e = new Uint8Array(r); +function Yi(o) { + const x = a, t = atob(o), r = t[x(1332)], e = new Uint8Array(r); for (let s = 0; s < r; s++) - e[s] = t[x(2170)](s); + e[s] = t[x(425)](s); return e; } -P0[a(230)](a(531), async (o, x, t) => { - const r = a, { fileName: e, overwrite: s = !0, mimeType: n = "image/png", dataBase64: i } = o; - if (t != null && t[r(532)]) throw new DOMException(r(1762), "AbortError"); - const c = Ji(i), u = new Blob([c], { type: n }), d = new FormData(); - d.append("image", u), d.append(r(2073), e), d[r(1405)]("overwrite", r(s ? 2704 : 2205)); - const f = await fetch(r(1912), { method: r(1879), body: d, signal: t }); - if (!f.ok) throw new Error(r(2507) + f[r(1503)]); - const l = await f.json(); - return { name: l[r(961)] + "/" + l[r(1055)] }; +Pe[a(2847)](a(552), async (o, x, t) => { + const r = a, { fileName: e, overwrite: s = !0, mimeType: n = r(598), dataBase64: i } = o; + if (t != null && t.aborted) throw new DOMException(r(2004), "AbortError"); + const c = Yi(i), u = new Blob([c], { type: n }), d = new FormData(); + d[r(1923)](r(1108), u), d[r(1923)](r(2140), e), d[r(1923)]("overwrite", r(s ? 1458 : 512)); + const l = await fetch(r(2526), { method: "POST", body: d, signal: t }); + if (!l.ok) throw new Error(r(1462) + l[r(1449)]); + const f = await l[r(2348)](); + return { name: f[r(346)] + "/" + f.name }; }); -const Ks = "2025-06-18", Qi = [Ks, a(2754), a(2021), a(1537)], Ox = a(2082), Gs = K0([g(), W().int()]), Js = g(), Xi = S({ progressToken: B(Gs) })[a(2303)](), re = S({ _meta: B(Xi) }).passthrough(), xe = S({ method: g(), params: B(re) }), ix = S({ _meta: B(S({}).passthrough()) })[a(2303)](), pe = S({ method: g(), params: B(ix) }), se = S({ _meta: B(S({})[a(2303)]()) })[a(2303)](), _x = K0([g(), W().int()]), Qs = S({ jsonrpc: t0(Ox), id: _x })[a(2107)](xe)[a(1450)](), Yi = (o) => Qs[a(2373)](o).success, Xs = S({ jsonrpc: t0(Ox) })[a(2107)](pe)[a(1450)](), e2 = (o) => Xs.safeParse(o)[a(377)], Ys = S({ jsonrpc: t0(Ox), id: _x, result: se })[a(1450)](), ar = (o) => Ys[a(2373)](o).success; -var ye; +const Qs = a(2415), ec = [Qs, "2025-03-26", a(474), "2024-10-07"], _x = a(2581), Xs = Ke([g(), Z().int()]), Ys = g(), xc = S({ progressToken: B(Xs) })[a(2690)](), r0 = S({ _meta: B(xc) })[a(2690)](), x0 = S({ method: g(), params: B(r0) }), ix = S({ _meta: B(S({})[a(2690)]()) })[a(2690)](), m0 = S({ method: g(), params: B(ix) }), s0 = S({ _meta: B(S({})[a(2690)]()) })[a(2690)](), Ox = Ke([g(), Z()[a(761)]()]), en = S({ jsonrpc: te(_x), id: Ox })[a(1722)](x0)[a(414)](), tc = (o) => en[a(2695)](o)[a(2072)], xn = S({ jsonrpc: te(_x) })[a(1722)](m0).strict(), ac = (o) => xn[a(2695)](o).success, tn = S({ jsonrpc: te(_x), id: Ox, result: s0 }).strict(), ar = (o) => tn.safeParse(o)[a(2072)]; +var y0; (function(o) { const x = a; - o[o[x(2561)] = -32e3] = x(2561), o[o[x(1736)] = -32001] = x(1736), o[o[x(920)] = -32700] = "ParseError", o[o[x(1286)] = -32600] = x(1286), o[o.MethodNotFound = -32601] = x(714), o[o[x(1718)] = -32602] = "InvalidParams", o[o[x(688)] = -32603] = x(688); -})(ye || (ye = {})); -const en = S({ jsonrpc: t0(Ox), id: _x, error: S({ code: W()[a(1691)](), message: g(), data: B(Se()) }) })[a(1450)](), x2 = (o) => en[a(2373)](o)[a(377)]; -K0([Qs, Xs, Ys, en]); -const ta = se[a(1450)](), aa = pe.extend({ method: t0(a(919)), params: ix[a(243)]({ requestId: _x, reason: g()[a(1027)]() }) }), cx = S({ name: g(), title: B(g()) }).passthrough(), xn = cx[a(243)]({ version: g() }), t2 = S({ experimental: B(S({})[a(2303)]()), sampling: B(S({})[a(2303)]()), elicitation: B(S({}).passthrough()), roots: B(S({ listChanged: B(e0()) })[a(2303)]()) })[a(2303)](), tn = xe.extend({ method: t0("initialize"), params: re[a(243)]({ protocolVersion: g(), capabilities: t2, clientInfo: xn }) }), a2 = S({ experimental: B(S({})[a(2303)]()), logging: B(S({})[a(2303)]()), completions: B(S({})[a(2303)]()), prompts: B(S({ listChanged: B(e0()) })[a(2303)]()), resources: B(S({ subscribe: B(e0()), listChanged: B(e0()) }).passthrough()), tools: B(S({ listChanged: B(e0()) }).passthrough()) })[a(2303)](), r2 = se.extend({ protocolVersion: g(), capabilities: a2, serverInfo: xn, instructions: B(g()) }), an = pe[a(243)]({ method: t0(a(2698)) }), ra = xe[a(243)]({ method: t0(a(2147)) }), s2 = S({ progress: W(), total: B(W()), message: B(g()) }).passthrough(), sa = pe[a(243)]({ method: t0(a(1058)), params: ix[a(2107)](s2).extend({ progressToken: Gs }) }), Dx = xe[a(243)]({ params: re[a(243)]({ cursor: B(Js) })[a(1027)]() }), jx = se[a(243)]({ nextCursor: B(Js) }), rn = S({ uri: g(), mimeType: B(g()), _meta: B(S({})[a(2303)]()) }).passthrough(), sn = rn[a(243)]({ text: g() }), nn = rn[a(243)]({ blob: g()[a(1129)]() }), on = cx[a(243)]({ uri: g(), description: B(g()), mimeType: B(g()), _meta: B(S({})[a(2303)]()) }), n2 = cx[a(243)]({ uriTemplate: g(), description: B(g()), mimeType: B(g()), _meta: B(S({}).passthrough()) }), o2 = Dx[a(243)]({ method: t0(a(843)) }), i2 = jx[a(243)]({ resources: v0(on) }), c2 = Dx[a(243)]({ method: t0("resources/templates/list") }), u2 = jx[a(243)]({ resourceTemplates: v0(n2) }), d2 = xe.extend({ method: t0(a(489)), params: re.extend({ uri: g() }) }), f2 = se.extend({ contents: v0(K0([sn, nn])) }), l2 = pe[a(243)]({ method: t0(a(2188)) }), h2 = xe.extend({ method: t0(a(1647)), params: re[a(243)]({ uri: g() }) }), p2 = xe[a(243)]({ method: t0(a(1796)), params: re[a(243)]({ uri: g() }) }), m2 = pe[a(243)]({ method: t0(a(1271)), params: ix.extend({ uri: g() }) }), b2 = S({ name: g(), description: B(g()), required: B(e0()) }).passthrough(), g2 = cx[a(243)]({ description: B(g()), arguments: B(v0(b2)), _meta: B(S({}).passthrough()) }), y2 = Dx.extend({ method: t0(a(2015)) }), v2 = jx[a(243)]({ prompts: v0(g2) }), w2 = xe[a(243)]({ method: t0(a(324)), params: re[a(243)]({ name: g(), arguments: B(D0(g())) }) }), ca = S({ type: t0("text"), text: g(), _meta: B(S({})[a(2303)]()) })[a(2303)](), ua = S({ type: t0("image"), data: g().base64(), mimeType: g(), _meta: B(S({})[a(2303)]()) })[a(2303)](), da = S({ type: t0(a(878)), data: g()[a(1129)](), mimeType: g(), _meta: B(S({})[a(2303)]()) })[a(2303)](), S2 = S({ type: t0("resource"), resource: K0([sn, nn]), _meta: B(S({})[a(2303)]()) })[a(2303)](), k2 = on.extend({ type: t0(a(2502)) }), cn = K0([ca, ua, da, k2, S2]), P2 = S({ role: R0([a(2565), a(1333)]), content: cn }).passthrough(), I2 = se[a(243)]({ description: B(g()), messages: v0(P2) }), E2 = pe[a(243)]({ method: t0(a(1926)) }), R2 = S({ title: B(g()), readOnlyHint: B(e0()), destructiveHint: B(e0()), idempotentHint: B(e0()), openWorldHint: B(e0()) }).passthrough(), C2 = cx.extend({ description: B(g()), inputSchema: S({ type: t0(a(544)), properties: B(S({})[a(2303)]()), required: B(v0(g())) })[a(2303)](), outputSchema: B(S({ type: t0(a(544)), properties: B(S({})[a(2303)]()), required: B(v0(g())) })[a(2303)]()), annotations: B(R2), _meta: B(S({})[a(2303)]()) }), F2 = Dx.extend({ method: t0("tools/list") }), N2 = jx.extend({ tools: v0(C2) }), un = se[a(243)]({ content: v0(cn).default([]), structuredContent: S({})[a(2303)]().optional(), isError: B(e0()) }); -un.or(se[a(243)]({ toolResult: Se() })); -const T2 = xe[a(243)]({ method: t0(a(2072)), params: re[a(243)]({ name: g(), arguments: B(D0(Se())) }) }), q2 = pe[a(243)]({ method: t0("notifications/tools/list_changed") }), dn = R0([a(2297), a(2381), "notice", a(2549), a(948), "critical", "alert", a(369)]), A2 = xe[a(243)]({ method: t0("logging/setLevel"), params: re[a(243)]({ level: dn }) }), O2 = pe[a(243)]({ method: t0(a(1440)), params: ix[a(243)]({ level: dn, logger: B(g()), data: Se() }) }), _2 = S({ name: g()[a(1027)]() })[a(2303)](), D2 = S({ hints: B(v0(_2)), costPriority: B(W()[a(1279)](0)[a(1393)](1)), speedPriority: B(W().min(0)[a(1393)](1)), intelligencePriority: B(W()[a(1279)](0)[a(1393)](1)) })[a(2303)](), j2 = S({ role: R0(["user", a(1333)]), content: K0([ca, ua, da]) })[a(2303)](), M2 = xe[a(243)]({ method: t0(a(889)), params: re.extend({ messages: v0(j2), systemPrompt: B(g()), includeContext: B(R0([a(1798), "thisServer", a(965)])), temperature: B(W()), maxTokens: W()[a(1691)](), stopSequences: B(v0(g())), metadata: B(S({})[a(2303)]()), modelPreferences: B(D2) }) }), fn = se[a(243)]({ model: g(), stopReason: B(R0(["endTurn", a(844), a(1300)]).or(g())), role: R0([a(2565), a(1333)]), content: $s("type", [ca, ua, da]) }), L2 = S({ type: t0(a(1146)), title: B(g()), description: B(g()), default: B(e0()) })[a(2303)](), $2 = S({ type: t0(a(2161)), title: B(g()), description: B(g()), minLength: B(W()), maxLength: B(W()), format: B(R0([a(2146), a(2396), a(959), "date-time"])) })[a(2303)](), U2 = S({ type: R0([a(2153), a(1449)]), title: B(g()), description: B(g()), minimum: B(W()), maximum: B(W()) })[a(2303)](), H2 = S({ type: t0(a(2161)), title: B(g()), description: B(g()), enum: v0(g()), enumNames: B(v0(g())) }).passthrough(), z2 = K0([L2, $2, U2, H2]), V2 = xe.extend({ method: t0(a(221)), params: re[a(243)]({ message: g(), requestedSchema: S({ type: t0("object"), properties: D0(g(), z2), required: B(v0(g())) })[a(2303)]() }) }), ln = se.extend({ action: R0([a(1249), a(803), a(867)]), content: B(D0(g(), Se())) }), B2 = S({ type: t0(a(2256)), uri: g() })[a(2303)](), Z2 = S({ type: t0(a(1290)), name: g() })[a(2303)](), W2 = xe[a(243)]({ method: t0("completion/complete"), params: re[a(243)]({ ref: K0([Z2, B2]), argument: S({ name: g(), value: g() })[a(2303)](), context: B(S({ arguments: B(D0(g(), g())) })) }) }), K2 = se[a(243)]({ completion: S({ values: v0(g())[a(1393)](100), total: B(W()[a(1691)]()), hasMore: B(e0()) })[a(2303)]() }), G2 = S({ uri: g()[a(1955)](a(2465)), name: B(g()), _meta: B(S({}).passthrough()) })[a(2303)](), J2 = xe[a(243)]({ method: t0("roots/list") }), hn = se[a(243)]({ roots: v0(G2) }), Q2 = pe[a(243)]({ method: t0(a(1346)) }); -K0([ra, tn, W2, A2, w2, y2, o2, c2, d2, h2, p2, T2, F2]), K0([aa, sa, an, Q2]), K0([ta, fn, ln, hn]), K0([ra, M2, V2, J2]), K0([aa, sa, O2, m2, l2, q2, E2]), K0([ta, r2, K2, I2, v2, i2, u2, f2, un, N2]); -class Ae extends Error { + o[o.ConnectionClosed = -32e3] = "ConnectionClosed", o[o[x(2290)] = -32001] = x(2290), o[o[x(2372)] = -32700] = x(2372), o[o[x(516)] = -32600] = x(516), o[o[x(399)] = -32601] = x(399), o[o[x(1346)] = -32602] = "InvalidParams", o[o[x(1894)] = -32603] = x(1894); +})(y0 || (y0 = {})); +const an = S({ jsonrpc: te(_x), id: Ox, error: S({ code: Z()[a(761)](), message: g(), data: B(S0()) }) })[a(414)](), rc = (o) => an[a(2695)](o)[a(2072)]; +Ke([en, xn, tn, an]); +const ta = s0[a(414)](), aa = m0[a(2636)]({ method: te("notifications/cancelled"), params: ix.extend({ requestId: Ox, reason: g()[a(2033)]() }) }), cx = S({ name: g(), title: B(g()) })[a(2690)](), rn = cx.extend({ version: g() }), sc = S({ experimental: B(S({})[a(2690)]()), sampling: B(S({})[a(2690)]()), elicitation: B(S({})[a(2690)]()), roots: B(S({ listChanged: B(ee()) }).passthrough()) })[a(2690)](), sn = x0[a(2636)]({ method: te(a(1451)), params: r0[a(2636)]({ protocolVersion: g(), capabilities: sc, clientInfo: rn }) }), nc = S({ experimental: B(S({})[a(2690)]()), logging: B(S({})[a(2690)]()), completions: B(S({})[a(2690)]()), prompts: B(S({ listChanged: B(ee()) })[a(2690)]()), resources: B(S({ subscribe: B(ee()), listChanged: B(ee()) })[a(2690)]()), tools: B(S({ listChanged: B(ee()) })[a(2690)]()) })[a(2690)](), oc = s0[a(2636)]({ protocolVersion: g(), capabilities: nc, serverInfo: rn, instructions: B(g()) }), nn = m0.extend({ method: te(a(2880)) }), ra = x0[a(2636)]({ method: te("ping") }), ic = S({ progress: Z(), total: B(Z()), message: B(g()) })[a(2690)](), sa = m0[a(2636)]({ method: te(a(1157)), params: ix[a(1722)](ic)[a(2636)]({ progressToken: Xs }) }), Dx = x0[a(2636)]({ params: r0.extend({ cursor: B(Ys) })[a(2033)]() }), jx = s0.extend({ nextCursor: B(Ys) }), on = S({ uri: g(), mimeType: B(g()), _meta: B(S({}).passthrough()) })[a(2690)](), cn = on.extend({ text: g() }), un = on[a(2636)]({ blob: g()[a(1667)]() }), dn = cx[a(2636)]({ uri: g(), description: B(g()), mimeType: B(g()), _meta: B(S({})[a(2690)]()) }), cc = cx.extend({ uriTemplate: g(), description: B(g()), mimeType: B(g()), _meta: B(S({})[a(2690)]()) }), uc = Dx.extend({ method: te(a(2901)) }), dc = jx[a(2636)]({ resources: we(dn) }), lc = Dx.extend({ method: te(a(1316)) }), fc = jx.extend({ resourceTemplates: we(cc) }), hc = x0[a(2636)]({ method: te("resources/read"), params: r0.extend({ uri: g() }) }), pc = s0[a(2636)]({ contents: we(Ke([cn, un])) }), mc = m0.extend({ method: te(a(2216)) }), bc = x0.extend({ method: te(a(1857)), params: r0.extend({ uri: g() }) }), gc = x0[a(2636)]({ method: te("resources/unsubscribe"), params: r0[a(2636)]({ uri: g() }) }), yc = m0.extend({ method: te("notifications/resources/updated"), params: ix[a(2636)]({ uri: g() }) }), vc = S({ name: g(), description: B(g()), required: B(ee()) })[a(2690)](), wc = cx[a(2636)]({ description: B(g()), arguments: B(we(vc)), _meta: B(S({})[a(2690)]()) }), Sc = Dx[a(2636)]({ method: te(a(417)) }), kc = jx[a(2636)]({ prompts: we(wc) }), Pc = x0[a(2636)]({ method: te(a(2683)), params: r0[a(2636)]({ name: g(), arguments: B(De(g())) }) }), ca = S({ type: te(a(740)), text: g(), _meta: B(S({})[a(2690)]()) }).passthrough(), ua = S({ type: te(a(1108)), data: g().base64(), mimeType: g(), _meta: B(S({})[a(2690)]()) })[a(2690)](), da = S({ type: te(a(1362)), data: g()[a(1667)](), mimeType: g(), _meta: B(S({}).passthrough()) })[a(2690)](), Ec = S({ type: te(a(1884)), resource: Ke([cn, un]), _meta: B(S({})[a(2690)]()) })[a(2690)](), Ic = dn[a(2636)]({ type: te(a(1632)) }), ln = Ke([ca, ua, da, Ic, Ec]), Cc = S({ role: Re([a(2268), a(898)]), content: ln })[a(2690)](), Rc = s0[a(2636)]({ description: B(g()), messages: we(Cc) }), Fc = m0[a(2636)]({ method: te(a(2466)) }), Nc = S({ title: B(g()), readOnlyHint: B(ee()), destructiveHint: B(ee()), idempotentHint: B(ee()), openWorldHint: B(ee()) }).passthrough(), Tc = cx.extend({ description: B(g()), inputSchema: S({ type: te("object"), properties: B(S({})[a(2690)]()), required: B(we(g())) })[a(2690)](), outputSchema: B(S({ type: te("object"), properties: B(S({})[a(2690)]()), required: B(we(g())) })[a(2690)]()), annotations: B(Nc), _meta: B(S({})[a(2690)]()) }), qc = Dx[a(2636)]({ method: te(a(1714)) }), Ac = jx[a(2636)]({ tools: we(Tc) }), fn = s0[a(2636)]({ content: we(ln).default([]), structuredContent: S({})[a(2690)]().optional(), isError: B(ee()) }); +fn.or(s0[a(2636)]({ toolResult: S0() })); +const _c = x0[a(2636)]({ method: te(a(595)), params: r0[a(2636)]({ name: g(), arguments: B(De(S0())) }) }), Oc = m0.extend({ method: te(a(358)) }), hn = Re(["debug", a(713), a(1561), "warning", "error", "critical", a(1337), a(2552)]), Dc = x0[a(2636)]({ method: te("logging/setLevel"), params: r0[a(2636)]({ level: hn }) }), jc = m0[a(2636)]({ method: te(a(858)), params: ix.extend({ level: hn, logger: B(g()), data: S0() }) }), Mc = S({ name: g().optional() })[a(2690)](), Lc = S({ hints: B(we(Mc)), costPriority: B(Z()[a(1414)](0)[a(718)](1)), speedPriority: B(Z()[a(1414)](0).max(1)), intelligencePriority: B(Z()[a(1414)](0).max(1)) })[a(2690)](), $c = S({ role: Re([a(2268), a(898)]), content: Ke([ca, ua, da]) })[a(2690)](), Uc = x0[a(2636)]({ method: te("sampling/createMessage"), params: r0.extend({ messages: we($c), systemPrompt: B(g()), includeContext: B(Re(["none", a(2618), a(1668)])), temperature: B(Z()), maxTokens: Z()[a(761)](), stopSequences: B(we(g())), metadata: B(S({})[a(2690)]()), modelPreferences: B(Lc) }) }), pn = s0[a(2636)]({ model: g(), stopReason: B(Re([a(867), a(2898), a(2259)]).or(g())), role: Re(["user", a(898)]), content: zs("type", [ca, ua, da]) }), Hc = S({ type: te(a(1001)), title: B(g()), description: B(g()), default: B(ee()) })[a(2690)](), zc = S({ type: te(a(1653)), title: B(g()), description: B(g()), minLength: B(Z()), maxLength: B(Z()), format: B(Re(["email", a(622), a(2714), a(2307)])) })[a(2690)](), Vc = S({ type: Re([a(1206), "integer"]), title: B(g()), description: B(g()), minimum: B(Z()), maximum: B(Z()) })[a(2690)](), Bc = S({ type: te(a(1653)), title: B(g()), description: B(g()), enum: we(g()), enumNames: B(we(g())) })[a(2690)](), Wc = Ke([Hc, zc, Vc, Bc]), Zc = x0.extend({ method: te(a(2060)), params: r0[a(2636)]({ message: g(), requestedSchema: S({ type: te(a(2844)), properties: De(g(), Wc), required: B(we(g())) }).passthrough() }) }), mn = s0[a(2636)]({ action: Re([a(2727), a(1214), "cancel"]), content: B(De(g(), S0())) }), Kc = S({ type: te("ref/resource"), uri: g() })[a(2690)](), Gc = S({ type: te(a(2762)), name: g() }).passthrough(), Jc = x0[a(2636)]({ method: te(a(256)), params: r0.extend({ ref: Ke([Gc, Kc]), argument: S({ name: g(), value: g() }).passthrough(), context: B(S({ arguments: B(De(g(), g())) })) }) }), Qc = s0.extend({ completion: S({ values: we(g())[a(718)](100), total: B(Z().int()), hasMore: B(ee()) })[a(2690)]() }), Xc = S({ uri: g()[a(533)]("file://"), name: B(g()), _meta: B(S({})[a(2690)]()) }).passthrough(), Yc = x0[a(2636)]({ method: te(a(2823)) }), bn = s0[a(2636)]({ roots: we(Xc) }), e2 = m0.extend({ method: te(a(1099)) }); +Ke([ra, sn, Jc, Dc, Pc, Sc, uc, lc, hc, bc, gc, _c, qc]), Ke([aa, sa, nn, e2]), Ke([ta, pn, mn, bn]), Ke([ra, Uc, Zc, Yc]), Ke([aa, sa, jc, yc, mc, Oc, Fc]), Ke([ta, oc, Qc, Rc, kc, dc, fc, pc, fn, Ac]); +class _0 extends Error { constructor(x, t, r) { const e = a; - super(e(2778) + x + ": " + t), this[e(1172)] = x, this.data = r, this[e(1055)] = e(1724); + super("MCP error " + x + ": " + t), this[e(586)] = x, this[e(2887)] = r, this[e(2481)] = "McpError"; } } -const X2 = 6e4; -class Y2 { +const x2 = 6e4; +class t2 { constructor(x) { const t = a; - this[t(1817)] = x, this[t(617)] = 0, this[t(2623)] = /* @__PURE__ */ new Map(), this[t(968)] = /* @__PURE__ */ new Map(), this._notificationHandlers = /* @__PURE__ */ new Map(), this._responseHandlers = /* @__PURE__ */ new Map(), this[t(704)] = /* @__PURE__ */ new Map(), this[t(1138)] = /* @__PURE__ */ new Map(), this[t(620)] = /* @__PURE__ */ new Set(), this[t(1472)](aa, (r) => { - const e = t, s = this._requestHandlerAbortControllers.get(r[e(1181)][e(1241)]); - s == null || s[e(1284)](r[e(1181)].reason); - }), this[t(1472)](sa, (r) => { - this[t(1013)](r); - }), this[t(437)](ra, (r) => ({})); + this[t(911)] = x, this[t(1771)] = 0, this[t(1659)] = /* @__PURE__ */ new Map(), this[t(1527)] = /* @__PURE__ */ new Map(), this[t(2150)] = /* @__PURE__ */ new Map(), this[t(662)] = /* @__PURE__ */ new Map(), this._progressHandlers = /* @__PURE__ */ new Map(), this[t(1418)] = /* @__PURE__ */ new Map(), this[t(1948)] = /* @__PURE__ */ new Set(), this[t(259)](aa, (r) => { + const e = t, s = this[e(1527)][e(1094)](r[e(1133)][e(567)]); + s == null || s.abort(r.params[e(1828)]); + }), this[t(259)](sa, (r) => { + this[t(1375)](r); + }), this[t(1741)](ra, (r) => ({})); } - [a(2371)](x, t, r, e, s = !1) { + [a(677)](x, t, r, e, s = !1) { const n = a; - this[n(1138)][n(758)](x, { timeoutId: setTimeout(e, t), startTime: Date[n(940)](), timeout: t, maxTotalTimeout: r, resetTimeoutOnProgress: s, onTimeout: e }); + this[n(1418)].set(x, { timeoutId: setTimeout(e, t), startTime: Date[n(315)](), timeout: t, maxTotalTimeout: r, resetTimeoutOnProgress: s, onTimeout: e }); } - [a(982)](x) { - const t = a, r = this[t(1138)][t(1075)](x); + [a(1329)](x) { + const t = a, r = this._timeoutInfo[t(1094)](x); if (!r) return !1; - const e = Date[t(940)]() - r[t(1670)]; - if (r[t(885)] && e >= r[t(885)]) - throw this[t(1138)][t(2215)](x), new Ae(ye[t(1736)], "Maximum total timeout exceeded", { maxTotalTimeout: r[t(885)], totalElapsed: e }); - return clearTimeout(r.timeoutId), r.timeoutId = setTimeout(r[t(799)], r[t(1242)]), !0; + const e = Date.now() - r[t(1258)]; + if (r.maxTotalTimeout && e >= r[t(2225)]) + throw this[t(1418)][t(882)](x), new _0(y0[t(2290)], "Maximum total timeout exceeded", { maxTotalTimeout: r[t(2225)], totalElapsed: e }); + return clearTimeout(r.timeoutId), r[t(1421)] = setTimeout(r[t(1580)], r[t(1816)]), !0; } - [a(433)](x) { - const t = a, r = this[t(1138)][t(1075)](x); - r && (clearTimeout(r[t(2179)]), this[t(1138)].delete(x)); + [a(2788)](x) { + const t = a, r = this[t(1418)][t(1094)](x); + r && (clearTimeout(r[t(1421)]), this._timeoutInfo[t(882)](x)); } - async [a(2251)](x) { + async connect(x) { const t = a; var r, e, s; - this[t(1257)] = x; - const n = (r = this[t(2562)]) === null || r === void 0 ? void 0 : r[t(1292)]; - this._transport.onclose = () => { + this[t(2178)] = x; + const n = (r = this[t(2149)]) === null || r === void 0 ? void 0 : r.onclose; + this[t(2178)].onclose = () => { const u = t; - n == null || n(), this[u(2138)](); + n == null || n(), this[u(1092)](); }; - const i = (e = this.transport) === null || e === void 0 ? void 0 : e.onerror; - this[t(1257)][t(656)] = (u) => { + const i = (e = this[t(2149)]) === null || e === void 0 ? void 0 : e[t(860)]; + this[t(2178)][t(860)] = (u) => { const d = t; - i == null || i(u), this[d(259)](u); + i == null || i(u), this[d(2795)](u); }; - const c = (s = this[t(1257)]) === null || s === void 0 ? void 0 : s.onmessage; - this[t(1257)][t(555)] = (u, d) => { - const f = t; - c == null || c(u, d), ar(u) || x2(u) ? this._onresponse(u) : Yi(u) ? this[f(1388)](u, d) : e2(u) ? this._onnotification(u) : this[f(259)](new Error(f(1933) + JSON[f(2625)](u))); - }, await this[t(1257)][t(2604)](); + const c = (s = this[t(2178)]) === null || s === void 0 ? void 0 : s[t(1770)]; + this._transport[t(1770)] = (u, d) => { + const l = t; + c == null || c(u, d), ar(u) || rc(u) ? this[l(1522)](u) : tc(u) ? this[l(1327)](u, d) : ac(u) ? this[l(1358)](u) : this._onerror(new Error(l(2902) + JSON[l(306)](u))); + }, await this[t(2178)].start(); } - [a(2138)]() { + [a(1092)]() { const x = a; var t; const r = this._responseHandlers; - this._responseHandlers = /* @__PURE__ */ new Map(), this[x(704)][x(899)](), this[x(620)][x(899)](), this[x(1257)] = void 0, (t = this[x(1292)]) === null || t === void 0 || t[x(1994)](this); - const e = new Ae(ye[x(2561)], x(880)); + this[x(662)] = /* @__PURE__ */ new Map(), this._progressHandlers.clear(), this[x(1948)][x(2254)](), this[x(2178)] = void 0, (t = this[x(2427)]) === null || t === void 0 || t[x(377)](this); + const e = new _0(y0.ConnectionClosed, "Connection closed"); for (const s of r.values()) s(e); } _onerror(x) { const t = a; var r; - (r = this[t(656)]) === null || r === void 0 || r[t(1994)](this, x); + (r = this[t(860)]) === null || r === void 0 || r.call(this, x); } - _onnotification(x) { + [a(1358)](x) { const t = a; var r; - const e = (r = this._notificationHandlers.get(x[t(819)])) !== null && r !== void 0 ? r : this.fallbackNotificationHandler; - e !== void 0 && Promise[t(1571)]()[t(2403)](() => e(x))[t(1995)]((s) => this[t(259)](new Error(t(2574) + s))); + const e = (r = this[t(2150)].get(x[t(849)])) !== null && r !== void 0 ? r : this.fallbackNotificationHandler; + e !== void 0 && Promise[t(1635)]()[t(723)](() => e(x))[t(1539)]((s) => this._onerror(new Error(t(1878) + s))); } - [a(1388)](x, t) { + [a(1327)](x, t) { const r = a; var e, s, n, i; - const c = (e = this._requestHandlers[r(1075)](x[r(819)])) !== null && e !== void 0 ? e : this.fallbackRequestHandler; + const c = (e = this[r(1659)][r(1094)](x[r(849)])) !== null && e !== void 0 ? e : this.fallbackRequestHandler; if (c === void 0) { - (s = this[r(1257)]) === null || s === void 0 || s[r(405)]({ jsonrpc: "2.0", id: x.id, error: { code: ye[r(714)], message: r(1256) } })[r(1995)]((f) => this[r(259)](new Error(r(2873) + f))); + (s = this[r(2178)]) === null || s === void 0 || s.send({ jsonrpc: r(2581), id: x.id, error: { code: y0.MethodNotFound, message: r(2653) } })[r(1539)]((l) => this[r(2795)](new Error(r(478) + l))); return; } const u = new AbortController(); - this[r(968)][r(758)](x.id, u); - const d = { signal: u[r(1562)], sessionId: (n = this[r(1257)]) === null || n === void 0 ? void 0 : n[r(1971)], _meta: (i = x[r(1181)]) === null || i === void 0 ? void 0 : i[r(2838)], sendNotification: (f) => this[r(1750)](f, { relatedRequestId: x.id }), sendRequest: (f, l, b) => this.request(f, l, { ...b, relatedRequestId: x.id }), authInfo: t == null ? void 0 : t[r(2039)], requestId: x.id, requestInfo: t == null ? void 0 : t[r(1141)] }; - Promise.resolve()[r(2403)](() => c(x, d)).then((f) => { - const l = r; + this._requestHandlerAbortControllers[r(1750)](x.id, u); + const d = { signal: u[r(2634)], sessionId: (n = this[r(2178)]) === null || n === void 0 ? void 0 : n[r(566)], _meta: (i = x.params) === null || i === void 0 ? void 0 : i[r(1662)], sendNotification: (l) => this[r(2071)](l, { relatedRequestId: x.id }), sendRequest: (l, f, b) => this[r(2752)](l, f, { ...b, relatedRequestId: x.id }), authInfo: t == null ? void 0 : t.authInfo, requestId: x.id, requestInfo: t == null ? void 0 : t.requestInfo }; + Promise[r(1635)]().then(() => c(x, d))[r(723)]((l) => { + const f = r; var b; - if (!u[l(1562)][l(532)]) - return (b = this[l(1257)]) === null || b === void 0 ? void 0 : b[l(405)]({ result: f, jsonrpc: l(2082), id: x.id }); - }, (f) => { - const l = r; + if (!u[f(2634)][f(2234)]) + return (b = this[f(2178)]) === null || b === void 0 ? void 0 : b[f(1779)]({ result: l, jsonrpc: f(2581), id: x.id }); + }, (l) => { + const f = r; var b, h; - if (!u.signal[l(532)]) - return (b = this[l(1257)]) === null || b === void 0 ? void 0 : b.send({ jsonrpc: l(2082), id: x.id, error: { code: Number[l(1283)](f.code) ? f[l(1172)] : ye[l(688)], message: (h = f.message) !== null && h !== void 0 ? h : l(1845) } }); - }).catch((f) => this[r(259)](new Error(r(2664) + f))).finally(() => { - this[r(968)].delete(x.id); + if (!u.signal[f(2234)]) + return (b = this._transport) === null || b === void 0 ? void 0 : b[f(1779)]({ jsonrpc: f(2581), id: x.id, error: { code: Number[f(1071)](l[f(586)]) ? l[f(586)] : y0[f(1894)], message: (h = l.message) !== null && h !== void 0 ? h : f(2335) } }); + }).catch((l) => this[r(2795)](new Error(r(1501) + l)))[r(2603)](() => { + this[r(1527)].delete(x.id); }); } - _onprogress(x) { - const t = a, { progressToken: r, ...e } = x[t(1181)], s = Number(r), n = this[t(704)][t(1075)](s); + [a(1375)](x) { + const t = a, { progressToken: r, ...e } = x.params, s = Number(r), n = this[t(271)].get(s); if (!n) { - this._onerror(new Error("Received a progress notification for an unknown token: " + JSON[t(2625)](x))); + this[t(2795)](new Error(t(1813) + JSON.stringify(x))); return; } - const i = this._responseHandlers[t(1075)](s), c = this[t(1138)].get(s); - if (c && i && c.resetTimeoutOnProgress) try { - this[t(982)](s); + const i = this[t(662)][t(1094)](s), c = this[t(1418)].get(s); + if (c && i && c[t(2480)]) try { + this._resetTimeout(s); } catch (u) { i(u); return; } n(e); } - [a(2464)](x) { - const t = a, r = Number(x.id), e = this[t(1707)][t(1075)](r); + _onresponse(x) { + const t = a, r = Number(x.id), e = this[t(662)].get(r); if (e === void 0) { - this._onerror(new Error("Received a response for an unknown message ID: " + JSON[t(2625)](x))); + this[t(2795)](new Error("Received a response for an unknown message ID: " + JSON[t(306)](x))); return; } - if (this[t(1707)].delete(r), this[t(704)].delete(r), this[t(433)](r), ar(x)) e(x); + if (this._responseHandlers[t(882)](r), this[t(271)][t(882)](r), this._cleanupTimeout(r), ar(x)) e(x); else { - const s = new Ae(x[t(948)].code, x[t(948)][t(225)], x[t(948)][t(909)]); + const s = new _0(x[t(2265)][t(586)], x[t(2265)][t(615)], x[t(2265)][t(2887)]); e(s); } } get transport() { - return this._transport; + return this[a(2178)]; } - async [a(1278)]() { + async [a(639)]() { const x = a; var t; - await ((t = this[x(1257)]) === null || t === void 0 ? void 0 : t[x(1278)]()); + await ((t = this._transport) === null || t === void 0 ? void 0 : t[x(639)]()); } - [a(563)](x, t, r) { + [a(2752)](x, t, r) { const { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n } = r ?? {}; return new Promise((i, c) => { const u = K; - var d, f, l, b, h, m; + var d, l, f, b, h, m; if (!this._transport) { - c(new Error(u(2189))); + c(new Error(u(367))); return; } - ((d = this._options) === null || d === void 0 ? void 0 : d[u(2356)]) === !0 && this[u(1404)](x[u(819)]), (f = r == null ? void 0 : r[u(1562)]) === null || f === void 0 || f[u(378)](); - const v = this[u(617)]++, k = { ...x, jsonrpc: "2.0", id: v }; - r != null && r[u(2647)] && (this[u(704)][u(758)](v, r[u(2647)]), k.params = { ...x[u(1181)], _meta: { ...((l = x[u(1181)]) === null || l === void 0 ? void 0 : l[u(2838)]) || {}, progressToken: v } }); - const I = (R) => { + ((d = this[u(911)]) === null || d === void 0 ? void 0 : d.enforceStrictCapabilities) === !0 && this[u(1974)](x.method), (l = r == null ? void 0 : r[u(2634)]) === null || l === void 0 || l[u(1961)](); + const v = this[u(1771)]++, k = { ...x, jsonrpc: u(2581), id: v }; + r != null && r[u(1179)] && (this[u(271)].set(v, r[u(1179)]), k[u(1133)] = { ...x.params, _meta: { ...((f = x[u(1133)]) === null || f === void 0 ? void 0 : f[u(1662)]) || {}, progressToken: v } }); + const E = (C) => { const P = u; - var N; - this._responseHandlers[P(2215)](v), this[P(704)][P(2215)](v), this[P(433)](v), (N = this[P(1257)]) === null || N === void 0 || N[P(405)]({ jsonrpc: P(2082), method: P(919), params: { requestId: v, reason: String(R) } }, { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n })[P(1995)]((_) => this._onerror(new Error(P(768) + _))), c(R); + var F; + this._responseHandlers[P(882)](v), this[P(271)].delete(v), this[P(2788)](v), (F = this[P(2178)]) === null || F === void 0 || F[P(1779)]({ jsonrpc: "2.0", method: P(1950), params: { requestId: v, reason: String(C) } }, { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n })[P(1539)]((D) => this[P(2795)](new Error("Failed to send cancellation: " + D))), c(C); }; - this[u(1707)].set(v, (R) => { + this[u(662)][u(1750)](v, (C) => { const P = u; - var N; - if (!(!((N = r == null ? void 0 : r.signal) === null || N === void 0) && N[P(532)])) { - if (R instanceof Error) return c(R); + var F; + if (!(!((F = r == null ? void 0 : r[P(2634)]) === null || F === void 0) && F[P(2234)])) { + if (C instanceof Error) return c(C); try { - const _ = t.parse(R.result); - i(_); - } catch (_) { - c(_); + const D = t[P(429)](C.result); + i(D); + } catch (D) { + c(D); } } - }), (b = r == null ? void 0 : r[u(1562)]) === null || b === void 0 || b[u(1836)](u(1284), () => { - const R = u; + }), (b = r == null ? void 0 : r.signal) === null || b === void 0 || b[u(1877)](u(2693), () => { + const C = u; var P; - I((P = r == null ? void 0 : r[R(1562)]) === null || P === void 0 ? void 0 : P[R(1264)]); + E((P = r == null ? void 0 : r.signal) === null || P === void 0 ? void 0 : P[C(1828)]); }); - const A = (h = r == null ? void 0 : r.timeout) !== null && h !== void 0 ? h : X2, T = () => I(new Ae(ye[u(1736)], u(2349), { timeout: A })); - this[u(2371)](v, A, r == null ? void 0 : r[u(885)], T, (m = r == null ? void 0 : r[u(787)]) !== null && m !== void 0 ? m : !1), this._transport[u(405)](k, { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n }).catch((R) => { - this[u(433)](v), c(R); + const q = (h = r == null ? void 0 : r[u(1816)]) !== null && h !== void 0 ? h : x2, T = () => E(new _0(y0[u(2290)], u(2531), { timeout: q })); + this[u(677)](v, q, r == null ? void 0 : r[u(2225)], T, (m = r == null ? void 0 : r[u(2480)]) !== null && m !== void 0 ? m : !1), this._transport[u(1779)](k, { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n })[u(1539)]((C) => { + this[u(2788)](v), c(C); }); }); } - async [a(1750)](x, t) { + async notification(x, t) { const r = a; var e, s; - if (!this._transport) throw new Error("Not connected"); - if (this[r(299)](x[r(819)]), ((s = (e = this[r(1817)]) === null || e === void 0 ? void 0 : e[r(571)]) !== null && s !== void 0 ? s : []).includes(x[r(819)]) && !x[r(1181)] && !(t != null && t[r(1315)])) { - if (this._pendingDebouncedNotifications[r(2075)](x[r(819)])) return; - this._pendingDebouncedNotifications[r(2655)](x.method), Promise[r(1571)]()[r(2403)](() => { + if (!this[r(2178)]) throw new Error(r(367)); + if (this[r(2244)](x[r(849)]), ((s = (e = this[r(911)]) === null || e === void 0 ? void 0 : e[r(2339)]) !== null && s !== void 0 ? s : [])[r(2798)](x[r(849)]) && !x[r(1133)] && !(t != null && t.relatedRequestId)) { + if (this._pendingDebouncedNotifications[r(441)](x.method)) return; + this[r(1948)].add(x.method), Promise[r(1635)]()[r(723)](() => { const u = r; var d; - if (this[u(620)][u(2215)](x[u(819)]), !this[u(1257)]) return; - const f = { ...x, jsonrpc: u(2082) }; - (d = this[u(1257)]) === null || d === void 0 || d[u(405)](f, t)[u(1995)]((l) => this[u(259)](l)); + if (this[u(1948)].delete(x[u(849)]), !this._transport) return; + const l = { ...x, jsonrpc: u(2581) }; + (d = this[u(2178)]) === null || d === void 0 || d[u(1779)](l, t)[u(1539)]((f) => this[u(2795)](f)); }); return; } - const c = { ...x, jsonrpc: r(2082) }; - await this[r(1257)][r(405)](c, t); + const c = { ...x, jsonrpc: "2.0" }; + await this[r(2178)][r(1779)](c, t); } - [a(437)](x, t) { - const r = a, e = x[r(2068)][r(819)].value; - this[r(2204)](e), this[r(2623)][r(758)](e, (s, n) => { + [a(1741)](x, t) { + const r = a, e = x.shape[r(849)][r(998)]; + this.assertRequestHandlerCapability(e), this[r(1659)][r(1750)](e, (s, n) => { const i = r; - return Promise.resolve(t(x[i(706)](s), n)); + return Promise.resolve(t(x[i(429)](s), n)); }); } - removeRequestHandler(x) { - this[a(2623)].delete(x); - } - [a(2703)](x) { + [a(1548)](x) { const t = a; - if (this[t(2623)][t(2075)](x)) throw new Error("A request handler for " + x + t(1008)); + this._requestHandlers[t(882)](x); } - [a(1472)](x, t) { + [a(1639)](x) { + const t = a; + if (this[t(1659)][t(441)](x)) throw new Error(t(1947) + x + t(320)); + } + setNotificationHandler(x, t) { const r = a; - this[r(964)][r(758)](x[r(2068)][r(819)].value, (e) => Promise.resolve(t(x[r(706)](e)))); + this[r(2150)][r(1750)](x[r(876)].method[r(998)], (e) => Promise[r(1635)](t(x[r(429)](e)))); } - removeNotificationHandler(x) { + [a(1251)](x) { const t = a; - this[t(964)][t(2215)](x); + this._notificationHandlers[t(882)](x); } } -function ec(o, x) { +function a2(o, x) { const t = a; - return Object[t(1587)](x)[t(172)]((r, [e, s]) => (s && typeof s === t(544) ? r[e] = r[e] ? { ...r[e], ...s } : s : r[e] = s, r), { ...o }); + return Object[t(2700)](x)[t(1774)]((r, [e, s]) => (s && typeof s === t(2844) ? r[e] = r[e] ? { ...r[e], ...s } : s : r[e] = s, r), { ...o }); } -var Xe = { exports: {} }, xc = Xe[a(2519)], rr; -function tc() { +var X0 = { exports: {} }, r2 = X0[a(1469)], rr; +function s2() { const o = a; return rr || (rr = 1, (function(x, t) { (function(r, e) { e(t); - })(xc, function(r) { + })(r2, function(r) { const e = K; function s() { - const E = K; - for (var p = arguments[E(692)], y = Array(p), w = 0; w < p; w++) + const I = K; + for (var p = arguments[I(1332)], y = Array(p), w = 0; w < p; w++) y[w] = arguments[w]; - if (y[E(692)] > 1) { - y[0] = y[0][E(2088)](0, -1); - for (var L = y[E(692)] - 1, $ = 1; $ < L; ++$) - y[$] = y[$][E(2088)](1, -1); - return y[L] = y[L].slice(1), y[E(2137)](""); + if (y[I(1332)] > 1) { + y[0] = y[0].slice(0, -1); + for (var U = y[I(1332)] - 1, M = 1; M < U; ++M) + y[M] = y[M][I(2103)](1, -1); + return y[U] = y[U][I(2103)](1), y.join(""); } else return y[0]; } - function n(E) { - return K(1909) + E + ")"; + function n(I) { + return "(?:" + I + ")"; } - function i(E) { + function i(I) { const p = K; - return E === void 0 ? p(420) : E === null ? p(845) : Object[p(2249)][p(766)].call(E)[p(628)](" ")[p(2231)]()[p(628)]("]")[p(252)]()[p(556)](); + return I === void 0 ? "undefined" : I === null ? p(1589) : Object.prototype.toString[p(377)](I)[p(585)](" ")[p(469)]()[p(585)]("]")[p(2281)]().toLowerCase(); } - function c(E) { - return E[K(2520)](); + function c(I) { + return I[K(2132)](); } - function u(E) { + function u(I) { const p = K; - return E != null ? E instanceof Array ? E : typeof E.length !== p(2153) || E[p(628)] || E[p(678)] || E[p(1994)] ? [E] : Array[p(2249)][p(2088)][p(1994)](E) : []; + return I != null ? I instanceof Array ? I : typeof I.length !== p(1206) || I[p(585)] || I[p(1466)] || I[p(377)] ? [I] : Array[p(1700)][p(2103)].call(I) : []; } - function d(E, p) { - var y = E; + function d(I, p) { + var y = I; if (p) for (var w in p) y[w] = p[w]; return y; } - function f(E) { + function l(I) { const p = K; - var y = p(1251), w = p(1830), L = s(w, p(1671)), $ = n(n(p(611) + L + "%" + L + L + "%" + L + L) + "|" + n("%[89A-Fa-f]" + L + "%" + L + L) + "|" + n("%" + L + L)), n0 = p(1296), d0 = p(2750), I0 = s(n0, d0), j0 = E ? p(2404) : "[]", V0 = E ? p(2330) : "[]", E0 = s(y, w, p(2036), j0); - n(y + s(y, w, p(2098)) + "*"), n(n($ + "|" + s(E0, d0, "[\\:]")) + "*"); - var _0 = n(n(p(1009)) + "|" + n(p(657) + w) + "|" + n("1" + w + w) + "|" + n(p(1745) + w) + p(1492) + w), B0 = n(_0 + "\\." + _0 + "\\." + _0 + "\\." + _0), g0 = n(L + p(1684)), $0 = n(n(g0 + "\\:" + g0) + "|" + B0), Z0 = n(n(g0 + "\\:") + p(1265) + $0), U0 = n(p(327) + n(g0 + "\\:") + p(2494) + $0), Pe = n(n(g0) + p(2255) + n(g0 + "\\:") + p(1194) + $0), ie = n(n(n(g0 + "\\:") + p(1956) + g0) + "?\\:\\:" + n(g0 + "\\:") + p(224) + $0), ce = n(n(n(g0 + "\\:") + p(1373) + g0) + p(2255) + n(g0 + "\\:") + p(2385) + $0), $e = n(n(n(g0 + "\\:") + "{0,3}" + g0) + p(2255) + g0 + "\\:" + $0), Te = n(n(n(g0 + "\\:") + p(1826) + g0) + "?\\:\\:" + $0), te = n(n(n(g0 + "\\:") + p(2166) + g0) + p(2255) + g0), ue = n(n(n(g0 + "\\:") + p(2355) + g0) + "?\\:\\:"), Ie = n([Z0, U0, Pe, ie, ce, $e, Te, te, ue][p(2137)]("|")), be = n(n(E0 + "|" + $) + "+"); - n(p(1679) + L + p(2365) + s(E0, d0, "[\\:]") + "+"), n(n($ + "|" + s(E0, d0)) + "*"); - var de = n($ + "|" + s(E0, d0, p(2006))); - return n(n($ + "|" + s(E0, d0, "[\\@]")) + "+"), n(n(de + "|" + s("[\\/\\?]", V0)) + "*"), { NOT_SCHEME: new RegExp(s(p(1897), y, w, p(2098)), "g"), NOT_USERINFO: new RegExp(s(p(717), E0, d0), "g"), NOT_HOST: new RegExp(s(p(2149), E0, d0), "g"), NOT_PATH: new RegExp(s(p(2194), E0, d0), "g"), NOT_PATH_NOSCHEME: new RegExp(s(p(1197), E0, d0), "g"), NOT_QUERY: new RegExp(s(p(245), E0, d0, p(371), V0), "g"), NOT_FRAGMENT: new RegExp(s("[^\\%]", E0, d0, "[\\:\\@\\/\\?]"), "g"), ESCAPE: new RegExp(s("[^]", E0, d0), "g"), UNRESERVED: new RegExp(E0, "g"), OTHER_CHARS: new RegExp(s(p(245), E0, I0), "g"), PCT_ENCODED: new RegExp($, "g"), IPV4ADDRESS: new RegExp("^(" + B0 + ")$"), IPV6ADDRESS: new RegExp(p(1293) + Ie + ")" + n(n(p(1254) + L + p(734)) + "(" + be + ")") + p(449)) }; + var y = p(329), w = "[0-9]", U = s(w, p(1594)), M = n(n(p(2121) + U + "%" + U + U + "%" + U + U) + "|" + n(p(247) + U + "%" + U + U) + "|" + n("%" + U + U)), ne = p(2606), de = p(2758), Ie = s(ne, de), je = I ? p(2079) : "[]", Ve = I ? "[\\uE000-\\uF8FF]" : "[]", Ce = s(y, w, p(866), je); + n(y + s(y, w, p(2505)) + "*"), n(n(M + "|" + s(Ce, de, "[\\:]")) + "*"); + var Oe = n(n("25[0-5]") + "|" + n(p(670) + w) + "|" + n("1" + w + w) + "|" + n(p(311) + w) + "|0?0?" + w), Be = n(Oe + "\\." + Oe + "\\." + Oe + "\\." + Oe), ge = n(U + "{1,4}"), $e = n(n(ge + "\\:" + ge) + "|" + Be), We = n(n(ge + "\\:") + p(2147) + $e), Ue = n(p(2044) + n(ge + "\\:") + p(653) + $e), P0 = n(n(ge) + "?\\:\\:" + n(ge + "\\:") + "{4}" + $e), i0 = n(n(n(ge + "\\:") + p(1140) + ge) + p(449) + n(ge + "\\:") + p(632) + $e), c0 = n(n(n(ge + "\\:") + p(1173) + ge) + p(449) + n(ge + "\\:") + p(182) + $e), $0 = n(n(n(ge + "\\:") + p(683) + ge) + "?\\:\\:" + ge + "\\:" + $e), q0 = n(n(n(ge + "\\:") + p(1342) + ge) + "?\\:\\:" + $e), t0 = n(n(n(ge + "\\:") + p(221) + ge) + p(449) + ge), u0 = n(n(n(ge + "\\:") + "{0,6}" + ge) + p(449)), d0 = n([We, Ue, P0, i0, c0, $0, q0, t0, u0][p(2252)]("|")), E0 = n(n(Ce + "|" + M) + "+"); + n(p(763) + U + "+\\." + s(Ce, de, "[\\:]") + "+"), n(n(M + "|" + s(Ce, de)) + "*"); + var l0 = n(M + "|" + s(Ce, de, p(2181))); + return n(n(M + "|" + s(Ce, de, "[\\@]")) + "+"), n(n(l0 + "|" + s(p(1624), Ve)) + "*"), { NOT_SCHEME: new RegExp(s(p(1826), y, w, p(2505)), "g"), NOT_USERINFO: new RegExp(s(p(1601), Ce, de), "g"), NOT_HOST: new RegExp(s(p(1481), Ce, de), "g"), NOT_PATH: new RegExp(s(p(242), Ce, de), "g"), NOT_PATH_NOSCHEME: new RegExp(s(p(169), Ce, de), "g"), NOT_QUERY: new RegExp(s(p(420), Ce, de, p(1885), Ve), "g"), NOT_FRAGMENT: new RegExp(s(p(420), Ce, de, "[\\:\\@\\/\\?]"), "g"), ESCAPE: new RegExp(s("[^]", Ce, de), "g"), UNRESERVED: new RegExp(Ce, "g"), OTHER_CHARS: new RegExp(s("[^\\%]", Ce, Ie), "g"), PCT_ENCODED: new RegExp(M, "g"), IPV4ADDRESS: new RegExp("^(" + Be + ")$"), IPV6ADDRESS: new RegExp(p(1101) + d0 + ")" + n(n(p(1600) + U + p(2594)) + "(" + E0 + ")") + p(335)) }; } - var l = f(!1), b = f(!0), h = /* @__PURE__ */ (function() { - function E(p, y) { + var f = l(!1), b = l(!0), h = /* @__PURE__ */ (function() { + function I(p, y) { const w = K; - var L = [], $ = !0, n0 = !1, d0 = void 0; + var U = [], M = !0, ne = !1, de = void 0; try { - for (var I0 = p[Symbol[w(2248)]](), j0; !($ = (j0 = I0[w(2596)]())[w(1815)]) && (L[w(452)](j0[w(1732)]), !(y && L[w(692)] === y)); $ = !0) + for (var Ie = p[Symbol[w(340)]](), je; !(M = (je = Ie[w(204)]())[w(1398)]) && (U.push(je[w(998)]), !(y && U[w(1332)] === y)); M = !0) ; - } catch (V0) { - n0 = !0, d0 = V0; + } catch (Ve) { + ne = !0, de = Ve; } finally { try { - !$ && I0.return && I0[w(2634)](); + !M && Ie.return && Ie[w(1692)](); } finally { - if (n0) throw d0; + if (ne) throw de; } } - return L; + return U; } return function(p, y) { - const w = K; - if (Array[w(1783)](p)) return p; - if (Symbol[w(2248)] in Object(p)) return E(p, y); - throw new TypeError(w(2711)); + if (Array.isArray(p)) return p; + if (Symbol.iterator in Object(p)) return I(p, y); + throw new TypeError("Invalid attempt to destructure non-iterable instance"); }; - })(), m = function(E) { + })(), m = function(I) { const p = K; - if (Array.isArray(E)) { - for (var y = 0, w = Array(E[p(692)]); y < E.length; y++) w[y] = E[y]; + if (Array[p(977)](I)) { + for (var y = 0, w = Array(I[p(1332)]); y < I[p(1332)]; y++) w[y] = I[y]; return w; - } else return Array[p(2781)](E); - }, v = 2147483647, k = 36, I = 1, A = 26, T = 38, R = 700, P = 72, N = 128, _ = "-", D = /^xn--/, j = /[^\0-\x7E]/, F = /[\x2E\u3002\uFF0E\uFF61]/g, C = { overflow: e(1240), "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, H = k - I, U = Math[e(635)], z = String[e(660)]; - function G(E) { - throw new RangeError(C[E]); + } else return Array.from(I); + }, v = 2147483647, k = 36, E = 1, q = 26, T = 38, C = 700, P = 72, F = 128, D = "-", j = /^xn--/, O = /[^\0-\x7E]/, N = /[\x2E\u3002\uFF0E\uFF61]/g, R = { overflow: e(2856), "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": e(2888) }, L = k - E, $ = Math.floor, z = String[e(2171)]; + function G(I) { + throw new RangeError(R[I]); } - function i0(E, p) { + function ce(I, p) { + for (var y = [], w = I.length; w--; ) + y[w] = p(I[w]); + return y; + } + function ue(I, p) { const y = e; - for (var w = [], L = E[y(692)]; L--; ) - w[L] = p(E[L]); - return w; + var w = I[y(585)]("@"), U = ""; + w.length > 1 && (U = w[0] + "@", I = w[1]), I = I.replace(N, "."); + var M = I[y(585)]("."), ne = ce(M, p).join("."); + return U + ne; } - function u0(E, p) { - const y = e; - var w = E[y(628)]("@"), L = ""; - w[y(692)] > 1 && (L = w[0] + "@", E = w[1]), E = E[y(575)](F, "."); - var $ = E[y(628)]("."), n0 = i0($, p).join("."); - return L + n0; - } - function l0(E) { + function fe(I) { const p = e; - for (var y = [], w = 0, L = E[p(692)]; w < L; ) { - var $ = E[p(2170)](w++); - if ($ >= 55296 && $ <= 56319 && w < L) { - var n0 = E[p(2170)](w++); - (n0 & 64512) == 56320 ? y.push((($ & 1023) << 10) + (n0 & 1023) + 65536) : (y.push($), w--); - } else y[p(452)]($); + for (var y = [], w = 0, U = I[p(1332)]; w < U; ) { + var M = I.charCodeAt(w++); + if (M >= 55296 && M <= 56319 && w < U) { + var ne = I[p(425)](w++); + (ne & 64512) == 56320 ? y.push(((M & 1023) << 10) + (ne & 1023) + 65536) : (y.push(M), w--); + } else y[p(902)](M); } return y; } - var o0 = function(p) { + var oe = function(p) { const y = e; - return String[y(1439)][y(2242)](String, m(p)); - }, f0 = function(p) { + return String[y(1609)][y(1964)](String, m(p)); + }, le = function(p) { return p - 48 < 10 ? p - 22 : p - 65 < 26 ? p - 65 : p - 97 < 26 ? p - 97 : k; - }, k0 = function(p, y) { + }, ke = function(p, y) { return p + 22 + 75 * (p < 26) - ((y != 0) << 5); - }, S0 = function(p, y, w) { - var L = 0; - for (p = w ? U(p / R) : p >> 1, p += U(p / y); p > H * A >> 1; L += k) - p = U(p / H); - return U(L + (H + 1) * p / (p + T)); - }, M0 = function(p) { + }, ye = function(p, y, w) { + var U = 0; + for (p = w ? $(p / C) : p >> 1, p += $(p / y); p > L * q >> 1; U += k) + p = $(p / L); + return $(U + (L + 1) * p / (p + T)); + }, Me = function(p) { const y = e; - var w = [], L = p[y(692)], $ = 0, n0 = N, d0 = P, I0 = p[y(1923)](_); - I0 < 0 && (I0 = 0); - for (var j0 = 0; j0 < I0; ++j0) - p[y(2170)](j0) >= 128 && G(y(1695)), w[y(452)](p[y(2170)](j0)); - for (var V0 = I0 > 0 ? I0 + 1 : 0; V0 < L; ) { - for (var E0 = $, _0 = 1, B0 = k; ; B0 += k) { - V0 >= L && G(y(2172)); - var g0 = f0(p[y(2170)](V0++)); - (g0 >= k || g0 > U((v - $) / _0)) && G(y(1218)), $ += g0 * _0; - var $0 = B0 <= d0 ? I : B0 >= d0 + A ? A : B0 - d0; - if (g0 < $0) break; - var Z0 = k - $0; - _0 > U(v / Z0) && G(y(1218)), _0 *= Z0; + var w = [], U = p[y(1332)], M = 0, ne = F, de = P, Ie = p[y(498)](D); + Ie < 0 && (Ie = 0); + for (var je = 0; je < Ie; ++je) + p[y(425)](je) >= 128 && G(y(1848)), w[y(902)](p.charCodeAt(je)); + for (var Ve = Ie > 0 ? Ie + 1 : 0; Ve < U; ) { + for (var Ce = M, Oe = 1, Be = k; ; Be += k) { + Ve >= U && G(y(1080)); + var ge = le(p[y(425)](Ve++)); + (ge >= k || ge > $((v - M) / Oe)) && G("overflow"), M += ge * Oe; + var $e = Be <= de ? E : Be >= de + q ? q : Be - de; + if (ge < $e) break; + var We = k - $e; + Oe > $(v / We) && G(y(2089)), Oe *= We; } - var U0 = w.length + 1; - d0 = S0($ - E0, U0, E0 == 0), U($ / U0) > v - n0 && G(y(1218)), n0 += U($ / U0), $ %= U0, w[y(2605)]($++, 0, n0); + var Ue = w[y(1332)] + 1; + de = ye(M - Ce, Ue, Ce == 0), $(M / Ue) > v - ne && G(y(2089)), ne += $(M / Ue), M %= Ue, w[y(2301)](M++, 0, ne); } - return String.fromCodePoint[y(2242)](String, w); - }, F0 = function(p) { + return String.fromCodePoint.apply(String, w); + }, Ee = function(p) { const y = e; var w = []; - p = l0(p); - var L = p.length, $ = N, n0 = 0, d0 = P, I0 = !0, j0 = !1, V0 = void 0; + p = fe(p); + var U = p[y(1332)], M = F, ne = 0, de = P, Ie = !0, je = !1, Ve = void 0; try { - for (var E0 = p[Symbol[y(2248)]](), _0; !(I0 = (_0 = E0.next())[y(1815)]); I0 = !0) { - var B0 = _0[y(1732)]; - B0 < 128 && w[y(452)](z(B0)); + for (var Ce = p[Symbol[y(340)]](), Oe; !(Ie = (Oe = Ce[y(204)]()).done); Ie = !0) { + var Be = Oe[y(998)]; + Be < 128 && w[y(902)](z(Be)); } - } catch (Ge) { - j0 = !0, V0 = Ge; + } catch (G0) { + je = !0, Ve = G0; } finally { try { - !I0 && E0.return && E0[y(2634)](); + !Ie && Ce.return && Ce.return(); } finally { - if (j0) throw V0; + if (je) throw Ve; } } - var g0 = w[y(692)], $0 = g0; - for (g0 && w[y(452)](_); $0 < L; ) { - var Z0 = v, U0 = !0, Pe = !1, ie = void 0; + var ge = w[y(1332)], $e = ge; + for (ge && w[y(902)](D); $e < U; ) { + var We = v, Ue = !0, P0 = !1, i0 = void 0; try { - for (var ce = p[Symbol[y(2248)]](), $e; !(U0 = ($e = ce[y(2596)]())[y(1815)]); U0 = !0) { - var Te = $e[y(1732)]; - Te >= $ && Te < Z0 && (Z0 = Te); + for (var c0 = p[Symbol[y(340)]](), $0; !(Ue = ($0 = c0[y(204)]()).done); Ue = !0) { + var q0 = $0[y(998)]; + q0 >= M && q0 < We && (We = q0); } - } catch (Ge) { - Pe = !0, ie = Ge; + } catch (G0) { + P0 = !0, i0 = G0; } finally { try { - !U0 && ce.return && ce.return(); + !Ue && c0[y(1692)] && c0.return(); } finally { - if (Pe) throw ie; + if (P0) throw i0; } } - var te = $0 + 1; - Z0 - $ > U((v - n0) / te) && G(y(1218)), n0 += (Z0 - $) * te, $ = Z0; - var ue = !0, Ie = !1, be = void 0; + var t0 = $e + 1; + We - M > $((v - ne) / t0) && G("overflow"), ne += (We - M) * t0, M = We; + var u0 = !0, d0 = !1, E0 = void 0; try { - for (var de = p[Symbol[y(2248)]](), ka; !(ue = (ka = de.next()).done); ue = !0) { - var Pa = ka[y(1732)]; - if (Pa < $ && ++n0 > v && G(y(1218)), Pa == $) { - for (var ux = n0, dx = k; ; dx += k) { - var fx = dx <= d0 ? I : dx >= d0 + A ? A : dx - d0; - if (ux < fx) break; - var Ia = ux - fx, Ea = k - fx; - w[y(452)](z(k0(fx + Ia % Ea, 0))), ux = U(Ia / Ea); + for (var l0 = p[Symbol[y(340)]](), ka; !(u0 = (ka = l0[y(204)]())[y(1398)]); u0 = !0) { + var Pa = ka[y(998)]; + if (Pa < M && ++ne > v && G(y(2089)), Pa == M) { + for (var ux = ne, dx = k; ; dx += k) { + var lx = dx <= de ? E : dx >= de + q ? q : dx - de; + if (ux < lx) break; + var Ea = ux - lx, Ia = k - lx; + w[y(902)](z(ke(lx + Ea % Ia, 0))), ux = $(Ea / Ia); } - w[y(452)](z(k0(ux, 0))), d0 = S0(n0, te, $0 == g0), n0 = 0, ++$0; + w[y(902)](z(ke(ux, 0))), de = ye(ne, t0, $e == ge), ne = 0, ++$e; } } - } catch (Ge) { - Ie = !0, be = Ge; + } catch (G0) { + d0 = !0, E0 = G0; } finally { try { - !ue && de.return && de[y(2634)](); + !u0 && l0.return && l0[y(1692)](); } finally { - if (Ie) throw be; + if (d0) throw E0; } } - ++n0, ++$; + ++ne, ++M; } - return w[y(2137)](""); - }, J0 = function(p) { - return u0(p, function(y) { + return w[y(2252)](""); + }, Je = function(p) { + return ue(p, function(y) { const w = K; - return D[w(1904)](y) ? M0(y.slice(4)[w(556)]()) : y; + return j.test(y) ? Me(y[w(2103)](4)[w(2522)]()) : y; }); - }, O = function(p) { - return u0(p, function(y) { + }, _ = function(p) { + return ue(p, function(y) { const w = K; - return j[w(1904)](y) ? w(1996) + F0(y) : y; + return O.test(y) ? w(828) + Ee(y) : y; }); - }, q = { version: e(2569), ucs2: { decode: l0, encode: o0 }, decode: M0, encode: F0, toASCII: O, toUnicode: J0 }, M = {}; - function Q(E) { + }, A = { version: e(1145), ucs2: { decode: fe, encode: oe }, decode: Me, encode: Ee, toASCII: _, toUnicode: Je }, H = {}; + function J(I) { const p = e; - var y = E[p(2170)](0), w = void 0; - return y < 16 ? w = "%0" + y[p(766)](16)[p(2520)]() : y < 128 ? w = "%" + y[p(766)](16)[p(2520)]() : y < 2048 ? w = "%" + (y >> 6 | 192)[p(766)](16).toUpperCase() + "%" + (y & 63 | 128)[p(766)](16)[p(2520)]() : w = "%" + (y >> 12 | 224)[p(766)](16)[p(2520)]() + "%" + (y >> 6 & 63 | 128).toString(16)[p(2520)]() + "%" + (y & 63 | 128)[p(766)](16)[p(2520)](), w; + var y = I[p(425)](0), w = void 0; + return y < 16 ? w = "%0" + y[p(2032)](16)[p(2132)]() : y < 128 ? w = "%" + y[p(2032)](16).toUpperCase() : y < 2048 ? w = "%" + (y >> 6 | 192)[p(2032)](16)[p(2132)]() + "%" + (y & 63 | 128).toString(16)[p(2132)]() : w = "%" + (y >> 12 | 224)[p(2032)](16)[p(2132)]() + "%" + (y >> 6 & 63 | 128)[p(2032)](16)[p(2132)]() + "%" + (y & 63 | 128)[p(2032)](16).toUpperCase(), w; } - function J(E) { + function Q(I) { const p = e; - for (var y = "", w = 0, L = E[p(692)]; w < L; ) { - var $ = parseInt(E[p(1887)](w + 1, 2), 16); - if ($ < 128) y += String[p(660)]($), w += 3; - else if ($ >= 194 && $ < 224) { - if (L - w >= 6) { - var n0 = parseInt(E[p(1887)](w + 4, 2), 16); - y += String[p(660)](($ & 31) << 6 | n0 & 63); - } else y += E[p(1887)](w, 6); + for (var y = "", w = 0, U = I[p(1332)]; w < U; ) { + var M = parseInt(I.substr(w + 1, 2), 16); + if (M < 128) y += String[p(2171)](M), w += 3; + else if (M >= 194 && M < 224) { + if (U - w >= 6) { + var ne = parseInt(I[p(1973)](w + 4, 2), 16); + y += String[p(2171)]((M & 31) << 6 | ne & 63); + } else y += I[p(1973)](w, 6); w += 6; - } else if ($ >= 224) { - if (L - w >= 9) { - var d0 = parseInt(E[p(1887)](w + 4, 2), 16), I0 = parseInt(E[p(1887)](w + 7, 2), 16); - y += String.fromCharCode(($ & 15) << 12 | (d0 & 63) << 6 | I0 & 63); - } else y += E[p(1887)](w, 9); + } else if (M >= 224) { + if (U - w >= 9) { + var de = parseInt(I.substr(w + 4, 2), 16), Ie = parseInt(I[p(1973)](w + 7, 2), 16); + y += String[p(2171)]((M & 15) << 12 | (de & 63) << 6 | Ie & 63); + } else y += I.substr(w, 9); w += 9; - } else y += E.substr(w, 3), w += 3; + } else y += I[p(1973)](w, 3), w += 3; } return y; } - function V(E, p) { + function V(I, p) { const y = e; - function w(L) { - const $ = K; - var n0 = J(L); - return n0.match(p[$(1522)]) ? n0 : L; + function w(U) { + const M = K; + var ne = Q(U); + return ne[M(2716)](p.UNRESERVED) ? ne : U; } - return E[y(747)] && (E.scheme = String(E[y(747)])[y(575)](p.PCT_ENCODED, w)[y(556)]()[y(575)](p[y(485)], "")), E[y(1049)] !== void 0 && (E.userinfo = String(E[y(1049)])[y(575)](p[y(2727)], w).replace(p[y(871)], Q)[y(575)](p[y(2727)], c)), E[y(957)] !== void 0 && (E[y(957)] = String(E.host)[y(575)](p[y(2727)], w)[y(556)]()[y(575)](p[y(2016)], Q)[y(575)](p[y(2727)], c)), E[y(2619)] !== void 0 && (E.path = String(E[y(2619)])[y(575)](p.PCT_ENCODED, w).replace(E[y(747)] ? p[y(1414)] : p[y(2140)], Q)[y(575)](p[y(2727)], c)), E[y(1511)] !== void 0 && (E[y(1511)] = String(E.query)[y(575)](p.PCT_ENCODED, w).replace(p.NOT_QUERY, Q)[y(575)](p[y(2727)], c)), E[y(2211)] !== void 0 && (E[y(2211)] = String(E[y(2211)])[y(575)](p[y(2727)], w)[y(575)](p[y(2735)], Q)[y(575)](p[y(2727)], c)), E; + return I[y(2535)] && (I.scheme = String(I[y(2535)])[y(784)](p.PCT_ENCODED, w)[y(2522)]()[y(784)](p[y(2452)], "")), I.userinfo !== void 0 && (I.userinfo = String(I[y(762)])[y(784)](p[y(175)], w).replace(p[y(476)], J)[y(784)](p[y(175)], c)), I[y(172)] !== void 0 && (I[y(172)] = String(I[y(172)])[y(784)](p[y(175)], w)[y(2522)]()[y(784)](p[y(864)], J)[y(784)](p[y(175)], c)), I[y(2475)] !== void 0 && (I[y(2475)] = String(I.path)[y(784)](p[y(175)], w)[y(784)](I.scheme ? p[y(780)] : p[y(1802)], J)[y(784)](p[y(175)], c)), I[y(1096)] !== void 0 && (I[y(1096)] = String(I[y(1096)]).replace(p[y(175)], w)[y(784)](p[y(413)], J).replace(p.PCT_ENCODED, c)), I[y(1471)] !== void 0 && (I[y(1471)] = String(I.fragment)[y(784)](p.PCT_ENCODED, w)[y(784)](p[y(824)], J)[y(784)](p.PCT_ENCODED, c)), I; } - function X(E) { - return E[e(575)](/^0*(.*)/, "$1") || "0"; + function X(I) { + return I.replace(/^0*(.*)/, "$1") || "0"; } - function s0(E, p) { + function ie(I, p) { const y = e; - var w = E[y(430)](p[y(1253)]) || [], L = h(w, 2), $ = L[1]; - return $ ? $[y(628)](".")[y(1649)](X)[y(2137)](".") : E; + var w = I[y(2716)](p[y(746)]) || [], U = h(w, 2), M = U[1]; + return M ? M[y(585)](".")[y(2742)](X)[y(2252)](".") : I; } - function c0(E, p) { + function se(I, p) { const y = e; - var w = E[y(430)](p[y(2783)]) || [], L = h(w, 3), $ = L[1], n0 = L[2]; - if ($) { - for (var d0 = $.toLowerCase()[y(628)]("::").reverse(), I0 = h(d0, 2), j0 = I0[0], V0 = I0[1], E0 = V0 ? V0[y(628)](":")[y(1649)](X) : [], _0 = j0[y(628)](":")[y(1649)](X), B0 = p[y(1253)].test(_0[_0[y(692)] - 1]), g0 = B0 ? 7 : 8, $0 = _0[y(692)] - g0, Z0 = Array(g0), U0 = 0; U0 < g0; ++U0) - Z0[U0] = E0[U0] || _0[$0 + U0] || ""; - B0 && (Z0[g0 - 1] = s0(Z0[g0 - 1], p)); - var Pe = Z0.reduce(function(te, ue, Ie) { - const be = y; - if (!ue || ue === "0") { - var de = te[te[be(692)] - 1]; - de && de[be(1693)] + de.length === Ie ? de[be(692)]++ : te[be(452)]({ index: Ie, length: 1 }); + var w = I[y(2716)](p[y(267)]) || [], U = h(w, 3), M = U[1], ne = U[2]; + if (M) { + for (var de = M[y(2522)]()[y(585)]("::")[y(177)](), Ie = h(de, 2), je = Ie[0], Ve = Ie[1], Ce = Ve ? Ve[y(585)](":").map(X) : [], Oe = je.split(":")[y(2742)](X), Be = p.IPV4ADDRESS[y(1055)](Oe[Oe[y(1332)] - 1]), ge = Be ? 7 : 8, $e = Oe[y(1332)] - ge, We = Array(ge), Ue = 0; Ue < ge; ++Ue) + We[Ue] = Ce[Ue] || Oe[$e + Ue] || ""; + Be && (We[ge - 1] = ie(We[ge - 1], p)); + var P0 = We.reduce(function(t0, u0, d0) { + const E0 = y; + if (!u0 || u0 === "0") { + var l0 = t0[t0[E0(1332)] - 1]; + l0 && l0.index + l0.length === d0 ? l0[E0(1332)]++ : t0[E0(902)]({ index: d0, length: 1 }); } - return te; - }, []), ie = Pe[y(1025)](function(te, ue) { - return ue[y(692)] - te.length; - })[0], ce = void 0; - if (ie && ie[y(692)] > 1) { - var $e = Z0[y(2088)](0, ie.index), Te = Z0[y(2088)](ie[y(1693)] + ie[y(692)]); - ce = $e[y(2137)](":") + "::" + Te[y(2137)](":"); - } else ce = Z0[y(2137)](":"); - return n0 && (ce += "%" + n0), ce; - } else return E; + return t0; + }, []), i0 = P0[y(1086)](function(t0, u0) { + const d0 = y; + return u0[d0(1332)] - t0[d0(1332)]; + })[0], c0 = void 0; + if (i0 && i0[y(1332)] > 1) { + var $0 = We.slice(0, i0[y(2291)]), q0 = We[y(2103)](i0[y(2291)] + i0[y(1332)]); + c0 = $0[y(2252)](":") + "::" + q0[y(2252)](":"); + } else c0 = We[y(2252)](":"); + return ne && (c0 += "%" + ne), c0; + } else return I; } - var x0 = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, L0 = ""[e(430)](/(){0}/)[1] === void 0; - function A0(E) { + var xe = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, Le = ""[e(2716)](/(){0}/)[1] === void 0; + function Ae(I) { const p = e; - var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = {}, L = y[p(1464)] !== !1 ? b : l; - y[p(1203)] === p(649) && (E = (y[p(747)] ? y[p(747)] + ":" : "") + "//" + E); - var $ = E[p(430)](x0); - if ($) { - L0 ? (w[p(747)] = $[1], w[p(1049)] = $[3], w[p(957)] = $[4], w[p(2782)] = parseInt($[5], 10), w[p(2619)] = $[6] || "", w[p(1511)] = $[7], w[p(2211)] = $[8], isNaN(w.port) && (w.port = $[5])) : (w.scheme = $[1] || void 0, w[p(1049)] = E[p(311)]("@") !== -1 ? $[3] : void 0, w[p(957)] = E[p(311)]("//") !== -1 ? $[4] : void 0, w[p(2782)] = parseInt($[5], 10), w[p(2619)] = $[6] || "", w[p(1511)] = E[p(311)]("?") !== -1 ? $[7] : void 0, w[p(2211)] = E.indexOf("#") !== -1 ? $[8] : void 0, isNaN(w[p(2782)]) && (w[p(2782)] = E[p(430)](/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? $[4] : void 0)), w[p(957)] && (w[p(957)] = c0(s0(w.host, L), L)), w[p(747)] === void 0 && w[p(1049)] === void 0 && w.host === void 0 && w.port === void 0 && !w[p(2619)] && w[p(1511)] === void 0 ? w[p(1203)] = p(2481) : w[p(747)] === void 0 ? w[p(1203)] = "relative" : w[p(2211)] === void 0 ? w[p(1203)] = p(1886) : w.reference = p(2396), y[p(1203)] && y[p(1203)] !== p(649) && y.reference !== w[p(1203)] && (w[p(948)] = w[p(948)] || p(1563) + y[p(1203)] + p(2173)); - var n0 = M[(y[p(747)] || w[p(747)] || "")[p(556)]()]; - if (!y.unicodeSupport && (!n0 || !n0[p(2125)])) { - if (w[p(957)] && (y[p(2564)] || n0 && n0[p(2564)])) try { - w.host = q[p(1528)](w.host.replace(L[p(2727)], J)[p(556)]()); - } catch (d0) { - w[p(948)] = w[p(948)] || p(1204) + d0; + var y = arguments[p(1332)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = {}, U = y.iri !== !1 ? b : f; + y.reference === p(1907) && (I = (y[p(2535)] ? y[p(2535)] + ":" : "") + "//" + I); + var M = I[p(2716)](xe); + if (M) { + Le ? (w[p(2535)] = M[1], w.userinfo = M[3], w[p(172)] = M[4], w[p(2591)] = parseInt(M[5], 10), w[p(2475)] = M[6] || "", w.query = M[7], w[p(1471)] = M[8], isNaN(w[p(2591)]) && (w[p(2591)] = M[5])) : (w.scheme = M[1] || void 0, w.userinfo = I[p(1104)]("@") !== -1 ? M[3] : void 0, w[p(172)] = I[p(1104)]("//") !== -1 ? M[4] : void 0, w[p(2591)] = parseInt(M[5], 10), w[p(2475)] = M[6] || "", w[p(1096)] = I[p(1104)]("?") !== -1 ? M[7] : void 0, w.fragment = I[p(1104)]("#") !== -1 ? M[8] : void 0, isNaN(w[p(2591)]) && (w[p(2591)] = I[p(2716)](/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? M[4] : void 0)), w[p(172)] && (w[p(172)] = se(ie(w[p(172)], U), U)), w.scheme === void 0 && w[p(762)] === void 0 && w[p(172)] === void 0 && w.port === void 0 && !w.path && w[p(1096)] === void 0 ? w.reference = p(2896) : w[p(2535)] === void 0 ? w[p(2776)] = p(1168) : w[p(1471)] === void 0 ? w[p(2776)] = p(2513) : w[p(2776)] = "uri", y[p(2776)] && y.reference !== p(1907) && y[p(2776)] !== w.reference && (w[p(2265)] = w[p(2265)] || p(2314) + y[p(2776)] + p(1141)); + var ne = H[(y[p(2535)] || w[p(2535)] || "").toLowerCase()]; + if (!y[p(2684)] && (!ne || !ne[p(2684)])) { + if (w[p(172)] && (y[p(2514)] || ne && ne[p(2514)])) try { + w[p(172)] = A[p(2894)](w[p(172)][p(784)](U.PCT_ENCODED, Q)[p(2522)]()); + } catch (de) { + w[p(2265)] = w.error || "Host's domain name can not be converted to ASCII via punycode: " + de; } - V(w, l); - } else V(w, L); - n0 && n0[p(706)] && n0[p(706)](w, y); - } else w[p(948)] = w[p(948)] || p(2108); + V(w, f); + } else V(w, U); + ne && ne[p(429)] && ne[p(429)](w, y); + } else w[p(2265)] = w.error || "URI can not be parsed."; return w; } - function H0(E, p) { + function He(I, p) { const y = e; - var w = p.iri !== !1 ? b : l, L = []; - return E[y(1049)] !== void 0 && (L[y(452)](E.userinfo), L.push("@")), E.host !== void 0 && L.push(c0(s0(String(E.host), w), w)[y(575)](w[y(2783)], function($, n0, d0) { - const I0 = y; - return "[" + n0 + (d0 ? I0(990) + d0 : "") + "]"; - })), (typeof E.port === y(2153) || typeof E[y(2782)] === y(2161)) && (L.push(":"), L[y(452)](String(E.port))), L[y(692)] ? L[y(2137)]("") : void 0; + var w = p.iri !== !1 ? b : f, U = []; + return I[y(762)] !== void 0 && (U.push(I[y(762)]), U[y(902)]("@")), I[y(172)] !== void 0 && U.push(se(ie(String(I[y(172)]), w), w).replace(w[y(267)], function(M, ne, de) { + const Ie = y; + return "[" + ne + (de ? Ie(2390) + de : "") + "]"; + })), (typeof I[y(2591)] == "number" || typeof I[y(2591)] === y(1653)) && (U.push(":"), U.push(String(I[y(2591)]))), U.length ? U[y(2252)]("") : void 0; } - var w0 = /^\.\.?\//, G0 = /^\/\.(\/|$)/, ne = /^\/\.\.(\/|$)/, Q0 = /^\/?(?:.|\n)*?(?=\/|$)/; - function O0(E) { + var Se = /^\.\.?\//, Ge = /^\/\.(\/|$)/, n0 = /^\/\.\.(\/|$)/, Qe = /^\/?(?:.|\n)*?(?=\/|$)/; + function _e(I) { const p = e; - for (var y = []; E.length; ) - if (E[p(430)](w0)) E = E[p(575)](w0, ""); - else if (E[p(430)](G0)) E = E[p(575)](G0, "/"); - else if (E[p(430)](ne)) E = E.replace(ne, "/"), y[p(2231)](); - else if (E === "." || E === "..") E = ""; + for (var y = []; I.length; ) + if (I.match(Se)) I = I.replace(Se, ""); + else if (I[p(2716)](Ge)) I = I.replace(Ge, "/"); + else if (I[p(2716)](n0)) I = I[p(784)](n0, "/"), y[p(469)](); + else if (I === "." || I === "..") I = ""; else { - var w = E[p(430)](Q0); + var w = I[p(2716)](Qe); if (w) { - var L = w[0]; - E = E[p(2088)](L.length), y[p(452)](L); - } else throw new Error(p(550)); + var U = w[0]; + I = I[p(2103)](U[p(1332)]), y[p(902)](U); + } else throw new Error(p(854)); } - return y.join(""); + return y[p(2252)](""); } - function z0(E) { + function ze(I) { const p = e; - var y = arguments[p(692)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = y[p(1464)] ? b : l, L = [], $ = M[(y[p(747)] || E[p(747)] || "")[p(556)]()]; - if ($ && $[p(1417)] && $.serialize(E, y), E[p(957)] && !w[p(2783)][p(1904)](E[p(957)])) { - if (y.domainHost || $ && $[p(2564)]) try { - E.host = y[p(1464)] ? q[p(269)](E[p(957)]) : q[p(1528)](E[p(957)].replace(w[p(2727)], J)[p(556)]()); - } catch (I0) { - E.error = E[p(948)] || "Host's domain name can not be converted to " + (y[p(1464)] ? "Unicode" : p(487)) + p(1868) + I0; + var y = arguments[p(1332)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = y[p(1823)] ? b : f, U = [], M = H[(y[p(2535)] || I[p(2535)] || "")[p(2522)]()]; + if (M && M[p(1045)] && M[p(1045)](I, y), I[p(172)] && !w[p(267)][p(1055)](I[p(172)])) { + if (y[p(2514)] || M && M[p(2514)]) try { + I[p(172)] = y.iri ? A[p(2383)](I[p(172)]) : A[p(2894)](I[p(172)][p(784)](w[p(175)], Q)[p(2522)]()); + } catch (Ie) { + I.error = I.error || p(1505) + (y[p(1823)] ? p(1835) : p(1925)) + p(2435) + Ie; } } - V(E, w), y[p(1203)] !== p(649) && E[p(747)] && (L[p(452)](E[p(747)]), L[p(452)](":")); - var n0 = H0(E, y); - if (n0 !== void 0 && (y[p(1203)] !== "suffix" && L[p(452)]("//"), L.push(n0), E[p(2619)] && E.path[p(2158)](0) !== "/" && L.push("/")), E.path !== void 0) { - var d0 = E[p(2619)]; - !y.absolutePath && (!$ || !$.absolutePath) && (d0 = O0(d0)), n0 === void 0 && (d0 = d0.replace(/^\/\//, "/%2F")), L.push(d0); + V(I, w), y[p(2776)] !== "suffix" && I.scheme && (U.push(I[p(2535)]), U[p(902)](":")); + var ne = He(I, y); + if (ne !== void 0 && (y.reference !== p(1907) && U[p(902)]("//"), U.push(ne), I.path && I.path.charAt(0) !== "/" && U[p(902)]("/")), I[p(2475)] !== void 0) { + var de = I[p(2475)]; + !y[p(2708)] && (!M || !M[p(2708)]) && (de = _e(de)), ne === void 0 && (de = de[p(784)](/^\/\//, p(454))), U[p(902)](de); } - return E[p(1511)] !== void 0 && (L[p(452)]("?"), L[p(452)](E[p(1511)])), E[p(2211)] !== void 0 && (L.push("#"), L.push(E[p(2211)])), L.join(""); + return I[p(1096)] !== void 0 && (U.push("?"), U[p(902)](I[p(1096)])), I[p(1471)] !== void 0 && (U[p(902)]("#"), U[p(902)](I[p(1471)])), U[p(2252)](""); } - function Y0(E, p) { + function Ye(I, p) { const y = e; - var w = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, L = arguments[3], $ = {}; - return !L && (E = A0(z0(E, w), w), p = A0(z0(p, w), w)), w = w || {}, !w[y(2032)] && p[y(747)] ? ($.scheme = p[y(747)], $.userinfo = p.userinfo, $[y(957)] = p[y(957)], $[y(2782)] = p[y(2782)], $[y(2619)] = O0(p[y(2619)] || ""), $[y(1511)] = p[y(1511)]) : (p[y(1049)] !== void 0 || p.host !== void 0 || p[y(2782)] !== void 0 ? ($[y(1049)] = p[y(1049)], $[y(957)] = p.host, $[y(2782)] = p[y(2782)], $.path = O0(p[y(2619)] || ""), $.query = p[y(1511)]) : (p[y(2619)] ? (p.path[y(2158)](0) === "/" ? $[y(2619)] = O0(p[y(2619)]) : ((E[y(1049)] !== void 0 || E.host !== void 0 || E[y(2782)] !== void 0) && !E.path ? $[y(2619)] = "/" + p[y(2619)] : E[y(2619)] ? $[y(2619)] = E[y(2619)][y(2088)](0, E[y(2619)][y(1923)]("/") + 1) + p[y(2619)] : $[y(2619)] = p[y(2619)], $[y(2619)] = O0($.path)), $[y(1511)] = p[y(1511)]) : ($[y(2619)] = E.path, p.query !== void 0 ? $.query = p[y(1511)] : $[y(1511)] = E[y(1511)]), $.userinfo = E[y(1049)], $[y(957)] = E.host, $[y(2782)] = E[y(2782)]), $[y(747)] = E[y(747)]), $[y(2211)] = p[y(2211)], $; + var w = arguments[y(1332)] > 2 && arguments[2] !== void 0 ? arguments[2] : {}, U = arguments[3], M = {}; + return !U && (I = Ae(ze(I, w), w), p = Ae(ze(p, w), w)), w = w || {}, !w[y(2686)] && p.scheme ? (M.scheme = p[y(2535)], M[y(762)] = p[y(762)], M[y(172)] = p.host, M[y(2591)] = p[y(2591)], M[y(2475)] = _e(p.path || ""), M[y(1096)] = p[y(1096)]) : (p[y(762)] !== void 0 || p[y(172)] !== void 0 || p.port !== void 0 ? (M.userinfo = p[y(762)], M.host = p[y(172)], M.port = p[y(2591)], M[y(2475)] = _e(p[y(2475)] || ""), M.query = p[y(1096)]) : (p[y(2475)] ? (p[y(2475)][y(1028)](0) === "/" ? M[y(2475)] = _e(p[y(2475)]) : ((I[y(762)] !== void 0 || I[y(172)] !== void 0 || I[y(2591)] !== void 0) && !I.path ? M[y(2475)] = "/" + p.path : I[y(2475)] ? M.path = I[y(2475)][y(2103)](0, I[y(2475)][y(498)]("/") + 1) + p[y(2475)] : M[y(2475)] = p[y(2475)], M[y(2475)] = _e(M.path)), M[y(1096)] = p[y(1096)]) : (M[y(2475)] = I[y(2475)], p.query !== void 0 ? M[y(1096)] = p.query : M[y(1096)] = I[y(1096)]), M.userinfo = I[y(762)], M.host = I.host, M.port = I[y(2591)]), M[y(2535)] = I[y(2535)]), M.fragment = p[y(1471)], M; } - function Me(E, p, y) { - var L = d({ scheme: e(845) }, y); - return z0(Y0(A0(E, L), A0(p, L), L, !0), L); + function T0(I, p, y) { + var U = d({ scheme: e(1589) }, y); + return ze(Ye(Ae(I, U), Ae(p, U), U, !0), U); } - function Mx(E, p) { + function Mx(I, p) { const y = e; - return typeof E === y(2161) ? E = z0(A0(E, p), p) : i(E) === y(544) && (E = A0(z0(E, p), p)), E; + return typeof I === y(1653) ? I = ze(Ae(I, p), p) : i(I) === y(2844) && (I = Ae(ze(I, p), p)), I; } - function kn(E, p, y) { + function In(I, p, y) { const w = e; - return typeof E === w(2161) ? E = z0(A0(E, y), y) : i(E) === w(544) && (E = z0(E, y)), typeof p === w(2161) ? p = z0(A0(p, y), y) : i(p) === w(544) && (p = z0(p, y)), E === p; + return typeof I === w(1653) ? I = ze(Ae(I, y), y) : i(I) === w(2844) && (I = ze(I, y)), typeof p === w(1653) ? p = ze(Ae(p, y), y) : i(p) === w(2844) && (p = ze(p, y)), I === p; } - function Pn(E, p) { + function Cn(I, p) { const y = e; - return E && E[y(766)]()[y(575)](!p || !p[y(1464)] ? l[y(2811)] : b.ESCAPE, Q); + return I && I[y(2032)]()[y(784)](!p || !p[y(1823)] ? f[y(2814)] : b[y(2814)], J); } - function me(E, p) { + function b0(I, p) { const y = e; - return E && E[y(766)]().replace(!p || !p[y(1464)] ? l[y(2727)] : b.PCT_ENCODED, J); + return I && I[y(2032)]()[y(784)](!p || !p[y(1823)] ? f[y(175)] : b.PCT_ENCODED, Q); } - var We = { scheme: e(2477), domainHost: !0, parse: function(p, y) { + var Z0 = { scheme: e(1009), domainHost: !0, parse: function(p, y) { const w = e; - return !p[w(957)] && (p.error = p[w(948)] || w(2003)), p; + return !p.host && (p[w(2265)] = p.error || "HTTP URIs must have a host."), p; }, serialize: function(p, y) { const w = e; - var L = String(p[w(747)])[w(556)]() === w(520); - return (p[w(2782)] === (L ? 443 : 80) || p.port === "") && (p[w(2782)] = void 0), !p[w(2619)] && (p[w(2619)] = "/"), p; - } }, pa = { scheme: e(520), domainHost: We[e(2564)], parse: We[e(706)], serialize: We[e(1417)] }; - function ma(E) { + var U = String(p[w(2535)])[w(2522)]() === w(2116); + return (p[w(2591)] === (U ? 443 : 80) || p[w(2591)] === "") && (p[w(2591)] = void 0), !p[w(2475)] && (p.path = "/"), p; + } }, pa = { scheme: "https", domainHost: Z0[e(2514)], parse: Z0[e(429)], serialize: Z0[e(1045)] }; + function ma(I) { const p = e; - return typeof E[p(1455)] == "boolean" ? E.secure : String(E[p(747)]).toLowerCase() === p(2747); + return typeof I.secure === p(1001) ? I.secure : String(I[p(2535)])[p(2522)]() === p(989); } - var Ke = { scheme: "ws", domainHost: !0, parse: function(p, y) { + var K0 = { scheme: "ws", domainHost: !0, parse: function(p, y) { const w = e; - var L = p; - return L[w(1455)] = ma(L), L[w(2433)] = (L[w(2619)] || "/") + (L[w(1511)] ? "?" + L[w(1511)] : ""), L.path = void 0, L[w(1511)] = void 0, L; + var U = p; + return U[w(1536)] = ma(U), U[w(2637)] = (U[w(2475)] || "/") + (U.query ? "?" + U.query : ""), U.path = void 0, U.query = void 0, U; }, serialize: function(p, y) { const w = e; - if ((p[w(2782)] === (ma(p) ? 443 : 80) || p[w(2782)] === "") && (p.port = void 0), typeof p[w(1455)] === w(1146) && (p.scheme = p[w(1455)] ? "wss" : "ws", p[w(1455)] = void 0), p[w(2433)]) { - var L = p[w(2433)][w(628)]("?"), $ = h(L, 2), n0 = $[0], d0 = $[1]; - p.path = n0 && n0 !== "/" ? n0 : void 0, p.query = d0, p.resourceName = void 0; + if ((p.port === (ma(p) ? 443 : 80) || p[w(2591)] === "") && (p[w(2591)] = void 0), typeof p[w(1536)] === w(1001) && (p[w(2535)] = p[w(1536)] ? w(989) : "ws", p.secure = void 0), p[w(2637)]) { + var U = p[w(2637)].split("?"), M = h(U, 2), ne = M[0], de = M[1]; + p[w(2475)] = ne && ne !== "/" ? ne : void 0, p[w(1096)] = de, p.resourceName = void 0; } - return p.fragment = void 0, p; - } }, ba = { scheme: e(2747), domainHost: Ke[e(2564)], parse: Ke[e(706)], serialize: Ke[e(1417)] }, In = {}, ga = "[A-Za-z0-9\\-\\.\\_\\~" + e(905) + "]", oe = "[0-9A-Fa-f]", En = n(n("%[EFef]" + oe + "%" + oe + oe + "%" + oe + oe) + "|" + n(e(2298) + oe + "%" + oe + oe) + "|" + n("%" + oe + oe)), Rn = e(725), Cn = e(788), Fn = s(Cn, e(2816)), Nn = e(2453), Tn = new RegExp(ga, "g"), Le = new RegExp(En, "g"), qn = new RegExp(s(e(1897), Rn, e(209), e(1010), Fn), "g"), ya = new RegExp(s(e(1897), ga, Nn), "g"), An = ya; - function Lx(E) { + return p[w(1471)] = void 0, p; + } }, ba = { scheme: e(989), domainHost: K0[e(2514)], parse: K0[e(429)], serialize: K0[e(1045)] }, Rn = {}, ga = "[A-Za-z0-9\\-\\.\\_\\~" + e(2448) + "]", o0 = "[0-9A-Fa-f]", Fn = n(n(e(2121) + o0 + "%" + o0 + o0 + "%" + o0 + o0) + "|" + n("%[89A-Fa-f]" + o0 + "%" + o0 + o0) + "|" + n("%" + o0 + o0)), Nn = e(416), Tn = e(201), qn = s(Tn, '[\\"\\\\]'), An = e(1767), _n = new RegExp(ga, "g"), L0 = new RegExp(Fn, "g"), On = new RegExp(s(e(1826), Nn, "[\\.]", e(564), qn), "g"), ya = new RegExp(s(e(1826), ga, An), "g"), Dn = ya; + function Lx(I) { const p = e; - var y = J(E); - return y[p(430)](Tn) ? y : E; + var y = Q(I); + return y[p(2716)](_n) ? y : I; } - var va = { scheme: e(2770), parse: function(p, y) { + var va = { scheme: e(2497), parse: function(p, y) { const w = e; - var L = p, $ = L.to = L.path ? L[w(2619)][w(628)](",") : []; - if (L[w(2619)] = void 0, L[w(1511)]) { - for (var n0 = !1, d0 = {}, I0 = L[w(1511)].split("&"), j0 = 0, V0 = I0[w(692)]; j0 < V0; ++j0) { - var E0 = I0[j0][w(628)]("="); - switch (E0[0]) { + var U = p, M = U.to = U[w(2475)] ? U.path[w(585)](",") : []; + if (U[w(2475)] = void 0, U[w(1096)]) { + for (var ne = !1, de = {}, Ie = U[w(1096)][w(585)]("&"), je = 0, Ve = Ie[w(1332)]; je < Ve; ++je) { + var Ce = Ie[je].split("="); + switch (Ce[0]) { case "to": - for (var _0 = E0[1].split(","), B0 = 0, g0 = _0[w(692)]; B0 < g0; ++B0) - $[w(452)](_0[B0]); + for (var Oe = Ce[1].split(","), Be = 0, ge = Oe[w(1332)]; Be < ge; ++Be) + M.push(Oe[Be]); break; - case w(1068): - L[w(1068)] = me(E0[1], y); + case w(1266): + U[w(1266)] = b0(Ce[1], y); break; - case w(2340): - L[w(2340)] = me(E0[1], y); + case w(604): + U[w(604)] = b0(Ce[1], y); break; default: - n0 = !0, d0[me(E0[0], y)] = me(E0[1], y); + ne = !0, de[b0(Ce[0], y)] = b0(Ce[1], y); break; } } - n0 && (L[w(1566)] = d0); + ne && (U[w(772)] = de); } - L[w(1511)] = void 0; - for (var $0 = 0, Z0 = $.length; $0 < Z0; ++$0) { - var U0 = $[$0][w(628)]("@"); - if (U0[0] = me(U0[0]), y[w(2125)]) U0[1] = me(U0[1], y)[w(556)](); + U[w(1096)] = void 0; + for (var $e = 0, We = M[w(1332)]; $e < We; ++$e) { + var Ue = M[$e].split("@"); + if (Ue[0] = b0(Ue[0]), y[w(2684)]) Ue[1] = b0(Ue[1], y).toLowerCase(); else try { - U0[1] = q[w(1528)](me(U0[1], y).toLowerCase()); - } catch (Pe) { - L[w(948)] = L.error || w(1593) + Pe; + Ue[1] = A.toASCII(b0(Ue[1], y).toLowerCase()); + } catch (P0) { + U[w(2265)] = U.error || w(1012) + P0; } - $[$0] = U0[w(2137)]("@"); + M[$e] = Ue[w(2252)]("@"); } - return L; + return U; }, serialize: function(p, y) { const w = e; - var L = p, $ = u(p.to); - if ($) { - for (var n0 = 0, d0 = $[w(692)]; n0 < d0; ++n0) { - var I0 = String($[n0]), j0 = I0[w(1923)]("@"), V0 = I0[w(2088)](0, j0)[w(575)](Le, Lx)[w(575)](Le, c).replace(qn, Q), E0 = I0[w(2088)](j0 + 1); + var U = p, M = u(p.to); + if (M) { + for (var ne = 0, de = M[w(1332)]; ne < de; ++ne) { + var Ie = String(M[ne]), je = Ie[w(498)]("@"), Ve = Ie.slice(0, je)[w(784)](L0, Lx)[w(784)](L0, c)[w(784)](On, J), Ce = Ie[w(2103)](je + 1); try { - E0 = y[w(1464)] ? q[w(269)](E0) : q[w(1528)](me(E0, y)[w(556)]()); - } catch ($0) { - L[w(948)] = L.error || "Email address's domain name can not be converted to " + (y[w(1464)] ? w(248) : w(487)) + w(1868) + $0; + Ce = y[w(1823)] ? A[w(2383)](Ce) : A[w(2894)](b0(Ce, y)[w(2522)]()); + } catch ($e) { + U[w(2265)] = U.error || w(2031) + (y[w(1823)] ? w(1835) : w(1925)) + w(2435) + $e; } - $[n0] = V0 + "@" + E0; + M[ne] = Ve + "@" + Ce; } - L[w(2619)] = $[w(2137)](","); + U[w(2475)] = M[w(2252)](","); } - var _0 = p[w(1566)] = p.headers || {}; - p[w(1068)] && (_0.subject = p[w(1068)]), p[w(2340)] && (_0.body = p[w(2340)]); - var B0 = []; - for (var g0 in _0) - _0[g0] !== In[g0] && B0.push(g0[w(575)](Le, Lx)[w(575)](Le, c).replace(ya, Q) + "=" + _0[g0][w(575)](Le, Lx)[w(575)](Le, c).replace(An, Q)); - return B0[w(692)] && (L[w(1511)] = B0[w(2137)]("&")), L; - } }, On = /^([^\:]+)\:(.*)/, wa = { scheme: e(2628), parse: function(p, y) { + var Oe = p.headers = p[w(772)] || {}; + p[w(1266)] && (Oe.subject = p.subject), p[w(604)] && (Oe[w(604)] = p[w(604)]); + var Be = []; + for (var ge in Oe) + Oe[ge] !== Rn[ge] && Be.push(ge[w(784)](L0, Lx)[w(784)](L0, c)[w(784)](ya, J) + "=" + Oe[ge].replace(L0, Lx)[w(784)](L0, c).replace(Dn, J)); + return Be.length && (U.query = Be.join("&")), U; + } }, jn = /^([^\:]+)\:(.*)/, wa = { scheme: e(1597), parse: function(p, y) { const w = e; - var L = p[w(2619)] && p[w(2619)][w(430)](On), $ = p; - if (L) { - var n0 = y[w(747)] || $[w(747)] || w(2628), d0 = L[1].toLowerCase(), I0 = L[2], j0 = n0 + ":" + (y.nid || d0), V0 = M[j0]; - $[w(904)] = d0, $.nss = I0, $[w(2619)] = void 0, V0 && ($ = V0[w(706)]($, y)); - } else $[w(948)] = $[w(948)] || "URN can not be parsed."; - return $; + var U = p[w(2475)] && p[w(2475)].match(jn), M = p; + if (U) { + var ne = y.scheme || M[w(2535)] || w(1597), de = U[1][w(2522)](), Ie = U[2], je = ne + ":" + (y[w(2104)] || de), Ve = H[je]; + M[w(2104)] = de, M[w(2233)] = Ie, M.path = void 0, Ve && (M = Ve.parse(M, y)); + } else M.error = M[w(2265)] || w(2330); + return M; }, serialize: function(p, y) { const w = e; - var L = y.scheme || p[w(747)] || w(2628), $ = p[w(904)], n0 = L + ":" + (y[w(904)] || $), d0 = M[n0]; - d0 && (p = d0[w(1417)](p, y)); - var I0 = p, j0 = p[w(2700)]; - return I0[w(2619)] = ($ || y[w(904)]) + ":" + j0, I0; - } }, _n = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, Sa = { scheme: e(1004), parse: function(p, y) { + var U = y[w(2535)] || p[w(2535)] || w(1597), M = p[w(2104)], ne = U + ":" + (y[w(2104)] || M), de = H[ne]; + de && (p = de[w(1045)](p, y)); + var Ie = p, je = p[w(2233)]; + return Ie[w(2475)] = (M || y[w(2104)]) + ":" + je, Ie; + } }, Mn = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, Sa = { scheme: "urn:uuid", parse: function(p, y) { const w = e; - var L = p; - return L[w(431)] = L.nss, L[w(2700)] = void 0, !y[w(2032)] && (!L.uuid || !L.uuid.match(_n)) && (L[w(948)] = L[w(948)] || "UUID is not valid."), L; + var U = p; + return U.uuid = U[w(2233)], U[w(2233)] = void 0, !y[w(2686)] && (!U[w(2491)] || !U[w(2491)][w(2716)](Mn)) && (U[w(2265)] = U.error || w(2240)), U; }, serialize: function(p, y) { const w = e; - var L = p; - return L[w(2700)] = (p[w(431)] || "")[w(556)](), L; + var U = p; + return U[w(2233)] = (p[w(2491)] || "")[w(2522)](), U; } }; - M[We[e(747)]] = We, M[pa[e(747)]] = pa, M[Ke[e(747)]] = Ke, M[ba[e(747)]] = ba, M[va[e(747)]] = va, M[wa[e(747)]] = wa, M[Sa.scheme] = Sa, r[e(332)] = M, r[e(1846)] = Q, r[e(2040)] = J, r.parse = A0, r[e(938)] = O0, r[e(1417)] = z0, r[e(2485)] = Y0, r[e(1571)] = Me, r.normalize = Mx, r.equal = kn, r[e(1525)] = Pn, r.unescapeComponent = me, Object[e(1337)](r, e(627), { value: !0 }); + H[Z0[e(2535)]] = Z0, H[pa[e(2535)]] = pa, H[K0[e(2535)]] = K0, H[ba[e(2535)]] = ba, H[va[e(2535)]] = va, H[wa[e(2535)]] = wa, H[Sa[e(2535)]] = Sa, r[e(2010)] = H, r[e(608)] = J, r[e(603)] = Q, r[e(429)] = Ae, r[e(1182)] = _e, r[e(1045)] = ze, r[e(527)] = Ye, r[e(1635)] = T0, r.normalize = Mx, r[e(2366)] = In, r[e(1915)] = Cn, r.unescapeComponent = b0, Object[e(2592)](r, "__esModule", { value: !0 }); }); - })(Xe, Xe.exports)), Xe[o(2519)]; + })(X0, X0[o(1469)])), X0[o(1469)]; } var Qx, sr; -function fa() { +function la() { return sr || (sr = 1, Qx = function o(x, t) { const r = K; if (x === t) return !0; - if (x && t && typeof x == "object" && typeof t == "object") { - if (x.constructor !== t[r(599)]) return !1; + if (x && t && typeof x == r(2844) && typeof t == "object") { + if (x[r(344)] !== t[r(344)]) return !1; var e, s, n; - if (Array[r(1783)](x)) { - if (e = x[r(692)], e != t[r(692)]) return !1; + if (Array[r(977)](x)) { + if (e = x[r(1332)], e != t[r(1332)]) return !1; for (s = e; s-- !== 0; ) if (!o(x[s], t[s])) return !1; return !0; } - if (x[r(599)] === RegExp) return x[r(901)] === t[r(901)] && x[r(2736)] === t.flags; - if (x[r(2722)] !== Object[r(2249)].valueOf) return x[r(2722)]() === t[r(2722)](); - if (x[r(766)] !== Object[r(2249)][r(766)]) return x[r(766)]() === t[r(766)](); - if (n = Object[r(750)](x), e = n[r(692)], e !== Object[r(750)](t)[r(692)]) return !1; - for (s = e; s-- !== 0; ) if (!Object[r(2249)].hasOwnProperty.call(t, n[s])) return !1; + if (x.constructor === RegExp) return x[r(2635)] === t[r(2635)] && x[r(1790)] === t[r(1790)]; + if (x[r(1063)] !== Object.prototype[r(1063)]) return x[r(1063)]() === t.valueOf(); + if (x[r(2032)] !== Object[r(1700)].toString) return x[r(2032)]() === t[r(2032)](); + if (n = Object[r(1806)](x), e = n[r(1332)], e !== Object[r(1806)](t)[r(1332)]) return !1; + for (s = e; s-- !== 0; ) if (!Object.prototype[r(1428)][r(377)](t, n[s])) return !1; for (s = e; s-- !== 0; ) { var i = n[s]; if (!o(x[i], t[i])) return !1; @@ -5372,164 +5366,165 @@ function fa() { }), Qx; } var Xx, nr; -function ac() { +function n2() { return nr || (nr = 1, Xx = function(x) { const t = K; - for (var r = 0, e = x.length, s = 0, n; s < e; ) - r++, n = x.charCodeAt(s++), n >= 55296 && n <= 56319 && s < e && (n = x[t(2170)](s), (n & 64512) == 56320 && s++); + for (var r = 0, e = x[t(1332)], s = 0, n; s < e; ) + r++, n = x.charCodeAt(s++), n >= 55296 && n <= 56319 && s < e && (n = x[t(425)](s), (n & 64512) == 56320 && s++); return r; }), Xx; } var Yx, or; -function Ze() { +function W0() { const o = a; if (or) return Yx; - or = 1, Yx = { copy: x, checkDataType: t, checkDataTypes: r, coerceToTypes: s, toHash: n, getProperty: u, escapeQuotes: d, equal: fa(), ucs2length: ac(), varOccurences: f, varReplace: l, schemaHasRules: b, schemaHasRulesExcept: h, schemaUnknownRules: m, toQuotedString: v, getPathExpr: k, getPath: I, getData: R, unescapeFragment: N, unescapeJsonPointer: j, escapeFragment: _, escapeJsonPointer: D }; - function x(F, C) { - C = C || {}; - for (var H in F) C[H] = F[H]; - return C; + or = 1, Yx = { copy: x, checkDataType: t, checkDataTypes: r, coerceToTypes: s, toHash: n, getProperty: u, escapeQuotes: d, equal: la(), ucs2length: n2(), varOccurences: l, varReplace: f, schemaHasRules: b, schemaHasRulesExcept: h, schemaUnknownRules: m, toQuotedString: v, getPathExpr: k, getPath: E, getData: C, unescapeFragment: F, unescapeJsonPointer: O, escapeFragment: D, escapeJsonPointer: j }; + function x(N, R) { + R = R || {}; + for (var L in N) R[L] = N[L]; + return R; } - function t(F, C, H, U) { + function t(N, R, L, $) { const z = K; - var G = z(U ? 2717 : 1030), i0 = z(U ? 1090 : 927), u0 = U ? "!" : "", l0 = U ? "" : "!"; - switch (F) { + var G = z($ ? 2755 : 2733), ce = z($ ? 2320 : 2446), ue = $ ? "!" : "", fe = $ ? "" : "!"; + switch (N) { case "null": - return C + G + z(845); - case z(973): - return u0 + z(680) + C + ")"; - case z(544): - return "(" + u0 + C + i0 + z(2580) + C + G + z(490) + i0 + l0 + "Array.isArray(" + C + "))"; - case z(1449): - return z(629) + C + G + z(2118) + i0 + l0 + "(" + C + z(2661) + i0 + C + G + C + (H ? i0 + u0 + z(1667) + C + ")" : "") + ")"; - case "number": - return "(typeof " + C + G + '"' + F + '"' + (H ? i0 + u0 + "isFinite(" + C + ")" : "") + ")"; + return R + G + "null"; + case z(2173): + return ue + z(1640) + R + ")"; + case "object": + return "(" + ue + R + ce + z(1311) + R + G + '"object"' + ce + fe + "Array.isArray(" + R + "))"; + case z(1605): + return z(2270) + R + G + z(695) + ce + fe + "(" + R + z(1360) + ce + R + G + R + (L ? ce + ue + "isFinite(" + R + ")" : "") + ")"; + case z(1206): + return z(2270) + R + G + '"' + N + '"' + (L ? ce + ue + z(671) + R + ")" : "") + ")"; default: - return z(2580) + C + G + '"' + F + '"'; + return z(1311) + R + G + '"' + N + '"'; } } - function r(F, C, H) { - const U = K; - switch (F[U(692)]) { + function r(N, R, L) { + const $ = K; + switch (N[$(1332)]) { case 1: - return t(F[0], C, H, !0); + return t(N[0], R, L, !0); default: - var z = "", G = n(F); - G[U(973)] && G.object && (z = G[U(845)] ? "(" : "(!" + C + " || ", z += U(2580) + C + U(516), delete G[U(845)], delete G[U(973)], delete G.object), G[U(2153)] && delete G[U(1449)]; - for (var i0 in G) z += (z ? U(927) : "") + t(i0, C, H, !0); + var z = "", G = n(N); + G.array && G[$(2844)] && (z = G[$(1589)] ? "(" : "(!" + R + $(2320), z += $(1311) + R + $(634), delete G[$(1589)], delete G.array, delete G[$(2844)]), G[$(1206)] && delete G[$(1605)]; + for (var ce in G) z += (z ? $(2446) : "") + t(ce, R, L, !0); return z; } } - var e = n([o(2161), o(2153), o(1449), o(1146), "null"]); - function s(F, C) { - const H = o; - if (Array.isArray(C)) { - for (var U = [], z = 0; z < C[H(692)]; z++) { - var G = C[z]; - e[G] ? U[U.length] = G : F === H(973) && G === "array" && (U[U[H(692)]] = G); + var e = n([o(1653), "number", o(1605), "boolean", o(1589)]); + function s(N, R) { + const L = o; + if (Array[L(977)](R)) { + for (var $ = [], z = 0; z < R.length; z++) { + var G = R[z]; + (e[G] || N === L(2173) && G === L(2173)) && ($[$[L(1332)]] = G); } - if (U[H(692)]) return U; + if ($[L(1332)]) return $; } else { - if (e[C]) return [C]; - if (F === "array" && C === H(973)) return [H(973)]; + if (e[R]) return [R]; + if (N === L(2173) && R === L(2173)) return ["array"]; } } - function n(F) { - const C = o; - for (var H = {}, U = 0; U < F[C(692)]; U++) H[F[U]] = !0; - return H; + function n(N) { + const R = o; + for (var L = {}, $ = 0; $ < N[R(1332)]; $++) L[N[$]] = !0; + return L; } var i = /^[a-z$_][a-z$_0-9]*$/i, c = /'|\\/g; - function u(F) { - return typeof F == o(2153) ? "[" + F + "]" : i.test(F) ? "." + F : "['" + d(F) + "']"; + function u(N) { + const R = o; + return typeof N == R(1206) ? "[" + N + "]" : i[R(1055)](N) ? "." + N : "['" + d(N) + "']"; } - function d(F) { - const C = o; - return F[C(575)](c, C(605))[C(575)](/\n/g, "\\n")[C(575)](/\r/g, "\\r").replace(/\f/g, "\\f")[C(575)](/\t/g, "\\t"); + function d(N) { + const R = o; + return N[R(784)](c, R(2674))[R(784)](/\n/g, "\\n").replace(/\r/g, "\\r")[R(784)](/\f/g, "\\f")[R(784)](/\t/g, "\\t"); } - function f(F, C) { - const H = o; - C += H(1147); - var U = F.match(new RegExp(C, "g")); - return U ? U[H(692)] : 0; + function l(N, R) { + const L = o; + R += L(297); + var $ = N[L(2716)](new RegExp(R, "g")); + return $ ? $[L(1332)] : 0; } - function l(F, C, H) { - const U = o; - return C += "([^0-9])", H = H[U(575)](/\$/g, U(1244)), F[U(575)](new RegExp(C, "g"), H + "$1"); + function f(N, R, L) { + const $ = o; + return R += "([^0-9])", L = L[$(784)](/\$/g, $(1420)), N[$(784)](new RegExp(R, "g"), L + "$1"); } - function b(F, C) { - if (typeof F == o(1146)) return !F; - for (var U in F) if (C[U]) return !0; + function b(N, R) { + if (typeof N == o(1001)) return !N; + for (var $ in N) if (R[$]) return !0; } - function h(F, C, H) { - const U = o; - if (typeof F == U(1146)) return !F && H != U(2705); - for (var z in F) if (z != H && C[z]) return !0; + function h(N, R, L) { + const $ = o; + if (typeof N == $(1001)) return !N && L != $(2158); + for (var z in N) if (z != L && R[z]) return !0; } - function m(F, C) { - if (typeof F != o(1146)) { - for (var U in F) if (!C[U]) return U; + function m(N, R) { + if (typeof N != o(1001)) { + for (var $ in N) if (!R[$]) return $; } } - function v(F) { - return "'" + d(F) + "'"; + function v(N) { + return "'" + d(N) + "'"; } - function k(F, C, H, U) { + function k(N, R, L, $) { const z = o; - var G = H ? z(1621) + C + (U ? "" : z(2828)) : U ? "'[' + " + C + z(1758) : z(696) + C + z(1338); - return P(F, G); + var G = L ? "'/' + " + R + ($ ? "" : z(2759)) : $ ? z(2361) + R + z(483) : z(2666) + R + z(2078); + return P(N, G); } - function I(F, C, H) { - var U = v(H ? "/" + D(C) : u(C)); - return P(F, U); + function E(N, R, L) { + var $ = v(L ? "/" + j(R) : u(R)); + return P(N, $); } - var A = /^\/(?:[^~]|~0|~1)*$/, T = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; - function R(F, C, H) { - const U = o; - var z, G, i0, u0; - if (F === "") return U(966); - if (F[0] == "/") { - if (!A[U(1904)](F)) throw new Error("Invalid JSON-pointer: " + F); - G = F, i0 = U(966); + var q = /^\/(?:[^~]|~0|~1)*$/, T = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; + function C(N, R, L) { + const $ = o; + var z, G, ce, ue; + if (N === "") return $(935); + if (N[0] == "/") { + if (!q[$(1055)](N)) throw new Error($(1271) + N); + G = N, ce = $(935); } else { - if (u0 = F[U(430)](T), !u0) throw new Error(U(2493) + F); - if (z = +u0[1], G = u0[2], G == "#") { - if (z >= C) throw new Error(U(2685) + z + U(2497) + C); - return H[C - z]; + if (ue = N[$(2716)](T), !ue) throw new Error($(1271) + N); + if (z = +ue[1], G = ue[2], G == "#") { + if (z >= R) throw new Error("Cannot access property/index " + z + " levels up, current level is " + R); + return L[R - z]; } - if (z > C) throw new Error(U(1108) + z + " levels up, current level is " + C); - if (i0 = U(909) + (C - z || ""), !G) return i0; + if (z > R) throw new Error($(2421) + z + " levels up, current level is " + R); + if (ce = $(2887) + (R - z || ""), !G) return ce; } - for (var l0 = i0, o0 = G.split("/"), f0 = 0; f0 < o0[U(692)]; f0++) { - var k0 = o0[f0]; - k0 && (i0 += u(j(k0)), l0 += " && " + i0); + for (var fe = ce, oe = G[$(585)]("/"), le = 0; le < oe[$(1332)]; le++) { + var ke = oe[le]; + ke && (ce += u(O(ke)), fe += $(2446) + ce); } - return l0; + return fe; } - function P(F, C) { - return F == '""' ? C : (F + " + " + C).replace(/([^\\])' \+ '/g, "$1"); + function P(N, R) { + const L = o; + return N == '""' ? R : (N + L(2721) + R)[L(784)](/([^\\])' \+ '/g, "$1"); } - function N(F) { - return j(decodeURIComponent(F)); + function F(N) { + return O(decodeURIComponent(N)); } - function _(F) { - return encodeURIComponent(D(F)); + function D(N) { + return encodeURIComponent(j(N)); } - function D(F) { - const C = o; - return F[C(575)](/~/g, "~0")[C(575)](/\//g, "~1"); + function j(N) { + return N[o(784)](/~/g, "~0").replace(/\//g, "~1"); } - function j(F) { - const C = o; - return F[C(575)](/~1/g, "/")[C(575)](/~0/g, "~"); + function O(N) { + const R = o; + return N[R(784)](/~1/g, "/")[R(784)](/~0/g, "~"); } return Yx; } var et, ir; -function pn() { +function gn() { if (ir) return et; ir = 1; - var o = Ze(); + var o = W0(); et = x; function x(t) { o.copy(t, this); @@ -5537,617 +5532,609 @@ function pn() { return et; } var xt = { exports: {} }, cr; -function rc() { +function o2() { const o = a; - if (cr) return xt[o(2519)]; + if (cr) return xt[o(1469)]; cr = 1; - var x = xt[o(2519)] = function(e, s, n) { + var x = xt[o(1469)] = function(e, s, n) { const i = o; - typeof s == i(1622) && (n = s, s = {}), n = s.cb || n; - var c = typeof n == i(1622) ? n : n[i(2066)] || function() { - }, u = n[i(2387)] || function() { + typeof s == i(1235) && (n = s, s = {}), n = s.cb || n; + var c = typeof n == i(1235) ? n : n[i(1091)] || function() { + }, u = n[i(411)] || function() { }; t(s, c, u, e, "", e); }; - x[o(2819)] = { additionalItems: !0, items: !0, contains: !0, additionalProperties: !0, propertyNames: !0, not: !0 }, x.arrayKeywords = { items: !0, allOf: !0, anyOf: !0, oneOf: !0 }, x[o(1435)] = { definitions: !0, properties: !0, patternProperties: !0, dependencies: !0 }, x[o(2614)] = { 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 t(e, s, n, i, c, u, d, f, l, b) { + x[o(2379)] = { additionalItems: !0, items: !0, contains: !0, additionalProperties: !0, propertyNames: !0, not: !0 }, x.arrayKeywords = { items: !0, allOf: !0, anyOf: !0, oneOf: !0 }, x[o(233)] = { definitions: !0, properties: !0, patternProperties: !0, dependencies: !0 }, x[o(1715)] = { 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 t(e, s, n, i, c, u, d, l, f, b) { const h = o; - if (i && typeof i == h(544) && !Array[h(1783)](i)) { - s(i, c, u, d, f, l, b); + if (i && typeof i == h(2844) && !Array.isArray(i)) { + s(i, c, u, d, l, f, b); for (var m in i) { var v = i[m]; - if (Array[h(1783)](v)) { + if (Array.isArray(v)) { if (m in x.arrayKeywords) - for (var k = 0; k < v.length; k++) t(e, s, n, v[k], c + "/" + m + "/" + k, u, c, m, i, k); - } else if (m in x[h(1435)]) { - if (v && typeof v == h(544)) - for (var I in v) t(e, s, n, v[I], c + "/" + m + "/" + r(I), u, c, m, i, I); - } else (m in x[h(2819)] || e[h(1946)] && !(m in x[h(2614)])) && t(e, s, n, v, c + "/" + m, u, c, m, i); + for (var k = 0; k < v[h(1332)]; k++) t(e, s, n, v[k], c + "/" + m + "/" + k, u, c, m, i, k); + } else if (m in x[h(233)]) { + if (v && typeof v == h(2844)) + for (var E in v) t(e, s, n, v[E], c + "/" + m + "/" + r(E), u, c, m, i, E); + } else (m in x[h(2379)] || e.allKeys && !(m in x[h(1715)])) && t(e, s, n, v, c + "/" + m, u, c, m, i); } - n(i, c, u, d, f, l, b); + n(i, c, u, d, l, f, b); } } function r(e) { - const s = o; - return e[s(575)](/~/g, "~0")[s(575)](/\//g, "~1"); + return e.replace(/~/g, "~0").replace(/\//g, "~1"); } - return xt[o(2519)]; + return xt[o(1469)]; } var tt, ur; -function la() { +function fa() { const o = a; if (ur) return tt; ur = 1; - var x = tc(), t = fa(), r = Ze(), e = pn(), s = rc(); - tt = n, n[o(2595)] = I, n[o(2124)] = m, n[o(2638)] = A, n[o(2409)] = T, n.inlineRef = l, n.schema = i; - function n(R, P, N) { - const _ = o; - var D = this[_(2813)][N]; - if (typeof D == _(2161)) - if (this._refs[D]) D = this._refs[D]; - else return n[_(1994)](this, R, P, D); - if (D = D || this[_(1072)][N], D instanceof e) return l(D[_(2555)], this._opts[_(808)]) ? D[_(2555)] : D[_(2621)] || this._compile(D); - var j = i[_(1994)](this, P, N), F, C, H; - return j && (F = j.schema, P = j.root, H = j[_(2610)]), F instanceof e ? C = F[_(2621)] || R[_(1994)](this, F[_(2555)], P, void 0, H) : F !== void 0 && (C = l(F, this[_(1035)][_(808)]) ? F : R[_(1994)](this, F, P, void 0, H)), C; - } - function i(R, P) { - const N = o; - var _ = x.parse(P), D = v(_), j = m(this[N(771)](R[N(2555)])); - if (Object[N(750)](R[N(2555)])[N(692)] === 0 || D !== j) { - var F = I(D), C = this[N(2813)][F]; - if (typeof C == N(2161)) return c[N(1994)](this, R, C, _); - if (C instanceof e) - C.validate || this[N(1570)](C), R = C; - else if (C = this._schemas[F], C instanceof e) { - if (C[N(2621)] || this._compile(C), F == I(P)) return { schema: C, root: R, baseId: j }; - R = C; - } else return; - if (!R[N(2555)]) return; - j = m(this._getId(R[N(2555)])); - } - return d[N(1994)](this, _, j, R.schema, R); - } - function c(R, P, N) { - const _ = o; - var D = i[_(1994)](this, R, P); - if (D) { - var j = D[_(2555)], F = D[_(2610)]; - R = D[_(2318)]; - var C = this[_(771)](j); - return C && (F = A(F, C)), d[_(1994)](this, N, F, j, R); - } - } - var u = r[o(745)]([o(945), o(886), o(1419), o(1356), "definitions"]); - function d(R, P, N, _) { + var x = s2(), t = la(), r = W0(), e = gn(), s = o2(); + tt = n, n[o(2304)] = E, n[o(923)] = m, n[o(1158)] = q, n[o(2621)] = T, n[o(510)] = f, n[o(224)] = i; + function n(C, P, F) { const D = o; - if (R[D(2211)] = R[D(2211)] || "", R[D(2211)][D(2088)](0, 1) == "/") { - for (var j = R.fragment.split("/"), F = 1; F < j[D(692)]; F++) { - var C = j[F]; - if (C) { - if (C = r[D(2633)](C), N = N[C], N === void 0) break; - var H; - if (!u[C] && (H = this[D(771)](N), H && (P = A(P, H)), N.$ref)) { - var U = A(P, N.$ref), z = i[D(1994)](this, _, U); - z && (N = z.schema, _ = z[D(2318)], P = z[D(2610)]); + var j = this[D(605)][F]; + if (typeof j == D(1653)) + if (this._refs[j]) j = this[D(605)][j]; + else return n.call(this, C, P, j); + if (j = j || this._schemas[F], j instanceof e) return f(j[D(224)], this[D(2801)].inlineRefs) ? j[D(224)] : j[D(1348)] || this[D(774)](j); + var O = i.call(this, P, F), N, R, L; + return O && (N = O[D(224)], P = O[D(1988)], L = O.baseId), N instanceof e ? R = N[D(1348)] || C[D(377)](this, N[D(224)], P, void 0, L) : N !== void 0 && (R = f(N, this[D(2801)][D(648)]) ? N : C[D(377)](this, N, P, void 0, L)), R; + } + function i(C, P) { + const F = o; + var D = x[F(429)](P), j = v(D), O = m(this[F(317)](C[F(224)])); + if (Object[F(1806)](C[F(224)])[F(1332)] === 0 || j !== O) { + var N = E(j), R = this[F(605)][N]; + if (typeof R == "string") return c[F(377)](this, C, R, D); + if (R instanceof e) + R[F(1348)] || this[F(774)](R), C = R; + else if (R = this[F(840)][N], R instanceof e) { + if (R[F(1348)] || this[F(774)](R), N == E(P)) return { schema: R, root: C, baseId: O }; + C = R; + } else return; + if (!C.schema) return; + O = m(this[F(317)](C[F(224)])); + } + return d[F(377)](this, D, O, C[F(224)], C); + } + function c(C, P, F) { + const D = o; + var j = i[D(377)](this, C, P); + if (j) { + var O = j[D(224)], N = j[D(2456)]; + C = j[D(1988)]; + var R = this._getId(O); + return R && (N = q(N, R)), d[D(377)](this, F, N, O, C); + } + } + var u = r.toHash([o(657), o(1160), o(2583), o(2378), o(1891)]); + function d(C, P, F, D) { + const j = o; + if (C[j(1471)] = C[j(1471)] || "", C[j(1471)].slice(0, 1) == "/") { + for (var O = C.fragment[j(585)]("/"), N = 1; N < O[j(1332)]; N++) { + var R = O[N]; + if (R) { + if (R = r[j(500)](R), F = F[R], F === void 0) break; + var L; + if (!u[R] && (L = this._getId(F), L && (P = q(P, L)), F[j(316)])) { + var $ = q(P, F.$ref), z = i[j(377)](this, D, $); + z && (F = z[j(224)], D = z[j(1988)], P = z[j(2456)]); } } } - if (N !== void 0 && N !== _[D(2555)]) return { schema: N, root: _, baseId: P }; + if (F !== void 0 && F !== D[j(224)]) return { schema: F, root: D, baseId: P }; } } - var f = r[o(745)]([o(612), o(2197), o(1267), o(558), "minLength", o(197), o(246), o(2575), o(1977), o(2536), o(546), o(2675), "multipleOf", o(310), o(1419)]); - function l(R, P) { + var l = r[o(2589)]([o(190), o(2039), o(1777), o(2213), o(1610), o(991), "minProperties", o(2520), "minItems", "maximum", o(962), o(1431), "multipleOf", o(1025), "enum"]); + function f(C, P) { if (P === !1) return !1; - if (P === void 0 || P === !0) return b(R); - if (P) return h(R) <= P; + if (P === void 0 || P === !0) return b(C); + if (P) return h(C) <= P; } - function b(R) { + function b(C) { const P = o; - var N; - if (Array.isArray(R)) { - for (var _ = 0; _ < R.length; _++) - if (N = R[_], typeof N == P(544) && !b(N)) return !1; - } else for (var D in R) - if (D == P(2221) || (N = R[D], typeof N == "object" && !b(N))) return !1; + var F; + if (Array[P(977)](C)) { + for (var D = 0; D < C[P(1332)]; D++) + if (F = C[D], typeof F == "object" && !b(F)) return !1; + } else for (var j in C) + if (j == P(316) || (F = C[j], typeof F == P(2844) && !b(F))) return !1; return !0; } - function h(R) { + function h(C) { const P = o; - var N = 0, _; - if (Array[P(1783)](R)) { - for (var D = 0; D < R[P(692)]; D++) - if (_ = R[D], typeof _ == P(544) && (N += h(_)), N == 1 / 0) return 1 / 0; - } else for (var j in R) { - if (j == P(2221)) return 1 / 0; - if (f[j]) N++; - else if (_ = R[j], typeof _ == P(544) && (N += h(_) + 1), N == 1 / 0) return 1 / 0; + var F = 0, D; + if (Array[P(977)](C)) { + for (var j = 0; j < C[P(1332)]; j++) + if (D = C[j], typeof D == P(2844) && (F += h(D)), F == 1 / 0) return 1 / 0; + } else for (var O in C) { + if (O == P(316)) return 1 / 0; + if (l[O]) F++; + else if (D = C[O], typeof D == "object" && (F += h(D) + 1), F == 1 / 0) return 1 / 0; } - return N; + return F; } - function m(R, P) { - const N = o; - P !== !1 && (R = I(R)); - var _ = x[N(706)](R); - return v(_); + function m(C, P) { + P !== !1 && (C = E(C)); + var F = x.parse(C); + return v(F); } - function v(R) { + function v(C) { const P = o; - return x.serialize(R)[P(628)]("#")[0] + "#"; + return x.serialize(C)[P(585)]("#")[0] + "#"; } var k = /#\/?$/; - function I(R) { - return R ? R.replace(k, "") : ""; + function E(C) { + return C ? C[o(784)](k, "") : ""; } - function A(R, P) { - const N = o; - return P = I(P), x[N(1571)](R, P); + function q(C, P) { + const F = o; + return P = E(P), x[F(1635)](C, P); } - function T(R) { + function T(C) { const P = o; - var N = I(this[P(771)](R)), _ = { "": N }, D = { "": m(N, !1) }, j = {}, F = this; - return s(R, { allKeys: !0 }, function(C, H, U, z, G, i0, u0) { - const l0 = P; - if (H !== "") { - var o0 = F[l0(771)](C), f0 = _[z], k0 = D[z] + "/" + G; - if (u0 !== void 0 && (k0 += "/" + (typeof u0 == l0(2153) ? u0 : r[l0(2358)](u0))), typeof o0 == "string") { - o0 = f0 = I(f0 ? x[l0(1571)](f0, o0) : o0); - var S0 = F[l0(2813)][o0]; - if (typeof S0 == "string" && (S0 = F[l0(2813)][S0]), S0 && S0.schema) { - if (!t(C, S0[l0(2555)])) throw new Error(l0(1394) + o0 + l0(1632)); - } else if (o0 != I(k0)) - if (o0[0] == "#") { - if (j[o0] && !t(C, j[o0])) throw new Error('id "' + o0 + l0(1632)); - j[o0] = C; - } else F[l0(2813)][o0] = k0; + var F = E(this[P(317)](C)), D = { "": F }, j = { "": m(F, !1) }, O = {}, N = this; + return s(C, { allKeys: !0 }, function(R, L, $, z, G, ce, ue) { + const fe = P; + if (L !== "") { + var oe = N._getId(R), le = D[z], ke = j[z] + "/" + G; + if (ue !== void 0 && (ke += "/" + (typeof ue == "number" ? ue : r.escapeFragment(ue))), typeof oe == fe(1653)) { + oe = le = E(le ? x[fe(1635)](le, oe) : oe); + var ye = N[fe(605)][oe]; + if (typeof ye == fe(1653) && (ye = N[fe(605)][ye]), ye && ye.schema) { + if (!t(R, ye[fe(224)])) throw new Error(fe(1132) + oe + '" resolves to more than one schema'); + } else if (oe != E(ke)) + if (oe[0] == "#") { + if (O[oe] && !t(R, O[oe])) throw new Error('id "' + oe + fe(2414)); + O[oe] = R; + } else N[fe(605)][oe] = ke; } - _[H] = f0, D[H] = k0; + D[L] = le, j[L] = ke; } - }), j; + }), O; } return tt; } var at, dr; function ha() { - const o = a; if (dr) return at; dr = 1; - var x = la(); - at = { Validation: e(t), MissingRef: e(r) }; - function t(s) { + var o = fa(); + at = { Validation: r(x), MissingRef: r(t) }; + function x(e) { + const s = K; + this[s(615)] = s(423), this[s(638)] = e, this[s(2523)] = this.validation = !0; + } + t.message = function(e, s) { const n = K; - this[n(225)] = n(2187), this[n(1672)] = s, this[n(398)] = this[n(1711)] = !0; - } - r[o(225)] = function(s, n) { - const i = o; - return i(897) + n + i(2180) + s; + return "can't resolve reference " + s + n(1262) + e; }; - function r(s, n, i) { - const c = o; - this.message = i || r[c(225)](s, n), this[c(2748)] = x[c(2638)](s, n), this[c(208)] = x[c(2595)](x[c(2124)](this[c(2748)])); + function t(e, s, n) { + const i = K; + this[i(615)] = n || t[i(615)](e, s), this[i(1319)] = o[i(1158)](e, s), this.missingSchema = o[i(2304)](o[i(923)](this.missingRef)); } - function e(s) { - const n = o; - return s.prototype = Object[n(665)](Error.prototype), s[n(2249)].constructor = s, s; + function r(e) { + const s = K; + return e[s(1700)] = Object[s(2469)](Error[s(1700)]), e.prototype[s(344)] = e, e; } return at; } -var rt, fr; -function mn() { - return fr || (fr = 1, rt = function(o, x) { +var rt, lr; +function yn() { + return lr || (lr = 1, rt = function(o, x) { const t = K; - x || (x = {}), typeof x === t(1622) && (x = { cmp: x }); - var r = typeof x[t(2667)] === t(1146) ? x.cycles : !1, e = x[t(1751)] && /* @__PURE__ */ (function(n) { + x || (x = {}), typeof x === t(1235) && (x = { cmp: x }); + var r = typeof x.cycles === t(1001) ? x[t(2305)] : !1, e = x[t(1542)] && /* @__PURE__ */ (function(n) { return function(i) { return function(c, u) { - var d = { key: c, value: i[c] }, f = { key: u, value: i[u] }; - return n(d, f); + var d = { key: c, value: i[c] }, l = { key: u, value: i[u] }; + return n(d, l); }; }; - })(x[t(1751)]), s = []; + })(x[t(1542)]), s = []; return (function n(i) { const c = t; - if (i && i[c(1538)] && typeof i[c(1538)] == "function" && (i = i[c(1538)]()), i !== void 0) { - if (typeof i == "number") return isFinite(i) ? "" + i : c(845); - if (typeof i !== c(544)) return JSON[c(2625)](i); + if (i && i[c(357)] && typeof i.toJSON === c(1235) && (i = i[c(357)]()), i !== void 0) { + if (typeof i == "number") return isFinite(i) ? "" + i : c(1589); + if (typeof i !== c(2844)) return JSON[c(306)](i); var u, d; - if (Array[c(1783)](i)) { - for (d = "[", u = 0; u < i[c(692)]; u++) - u && (d += ","), d += n(i[u]) || c(845); + if (Array.isArray(i)) { + for (d = "[", u = 0; u < i.length; u++) + u && (d += ","), d += n(i[u]) || "null"; return d + "]"; } - if (i === null) return c(845); - if (s[c(311)](i) !== -1) { - if (r) return JSON[c(2625)](c(2081)); - throw new TypeError(c(368)); + if (i === null) return "null"; + if (s[c(1104)](i) !== -1) { + if (r) return JSON[c(306)](c(2160)); + throw new TypeError(c(1148)); } - var f = s[c(452)](i) - 1, l = Object[c(750)](i)[c(1025)](e && e(i)); - for (d = "", u = 0; u < l[c(692)]; u++) { - var b = l[u], h = n(i[b]); - h && (d && (d += ","), d += JSON[c(2625)](b) + ":" + h); + var l = s[c(902)](i) - 1, f = Object[c(1806)](i).sort(e && e(i)); + for (d = "", u = 0; u < f[c(1332)]; u++) { + var b = f[u], h = n(i[b]); + h && (d && (d += ","), d += JSON[c(306)](b) + ":" + h); } - return s[c(2605)](f, 1), "{" + d + "}"; + return s[c(2301)](l, 1), "{" + d + "}"; } })(o); }), rt; } -var st, lr; -function bn() { - return lr || (lr = 1, st = function(x, t, r) { +var st, fr; +function vn() { + return fr || (fr = 1, st = function(x, t, r) { const e = K; - var s = "", n = x.schema[e(2609)] === !0, i = x[e(1011)][e(2582)](x[e(2555)], x[e(807)][e(403)], "$ref"), c = x[e(779)][e(771)](x[e(2555)]); - if (x[e(1835)][e(2746)]) { - var u = x[e(1011)][e(1006)](x[e(2555)], x[e(807)].keywords); + var s = "", n = x[e(224)].$async === !0, i = x[e(910)].schemaHasRulesExcept(x[e(224)], x[e(2363)][e(1288)], e(316)), c = x[e(2288)][e(317)](x[e(224)]); + if (x[e(2167)].strictKeywords) { + var u = x[e(910)][e(1126)](x[e(224)], x.RULES.keywords); if (u) { - var d = e(1182) + u; - if (x.opts.strictKeywords === e(2818)) x[e(1610)][e(343)](d); + var d = e(2834) + u; + if (x[e(2167)][e(2347)] === "log") x.logger[e(196)](d); else throw new Error(d); } } - if (x.isTop && (s += e(1130), n && (x[e(1973)] = !0, s += "async "), s += e(326), c && (x[e(1835)][e(179)] || x[e(1835)].processCode) && (s += " " + (e(1360) + c + " */") + " ")), typeof x[e(2555)] == e(1146) || !(i || x.schema.$ref)) { - var t = e(1229), f = x[e(1552)], l = x[e(2547)], b = x.schema[t], h = x[e(2443)] + x[e(1011)][e(981)](t), m = x[e(2624)] + "/" + t, P = !x[e(1835)][e(226)], D, v = e(909) + (l || ""), R = e(614) + f; - if (x[e(2555)] === !1) { - x[e(2487)] ? P = !0 : s += e(2007) + R + e(1633); + if (x[e(2539)] && (s += " var validate = ", n && (x[e(418)] = !0, s += e(701)), s += "function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ", c && (x[e(2167)][e(2026)] || x.opts[e(914)]) && (s += " " + (e(2282) + c + e(225)) + " ")), typeof x.schema == e(1001) || !(i || x[e(224)][e(316)])) { + var t = e(2875), l = x[e(2454)], f = x.dataLevel, b = x[e(224)][t], h = x[e(442)] + x[e(910)][e(1295)](t), m = x[e(1056)] + "/" + t, P = !x[e(2167)].allErrors, j, v = e(2887) + (f || ""), C = "valid" + l; + if (x[e(224)] === !1) { + x[e(2539)] ? P = !0 : s += " var " + C + " = false; "; var k = k || []; - k[e(452)](s), s = "", x.createErrors !== !1 ? (s += e(1588) + (D || e(1229)) + e(2767) + x[e(2886)] + e(1347) + x[e(1011)].toQuotedString(m) + " , params: {} ", x[e(1835)].messages !== !1 && (s += e(1496)), x[e(1835)][e(1219)] && (s += e(1355) + x[e(2443)] + e(1227) + v + " "), s += e(1334)) : s += " {} "; - var I = s; - s = k[e(2231)](), !x[e(1187)] && P ? x.async ? s += e(1086) + I + e(956) : s += e(651) + I + e(2753) : s += e(2467) + I + e(1899); - } else x[e(2487)] ? n ? s += e(2096) : s += e(1164) : s += e(2007) + R + e(854); - return x.isTop && (s += e(584)), s; + k[e(902)](s), s = "", x[e(1560)] !== !1 ? (s += " { keyword: '" + (j || e(2875)) + e(1016) + x[e(2247)] + " , schemaPath: " + x[e(910)].toQuotedString(m) + e(2673), x[e(2167)][e(389)] !== !1 && (s += e(1595)), x[e(2167)][e(2200)] && (s += e(1130) + x[e(442)] + e(1798) + v + " "), s += " } ") : s += e(1136); + var E = s; + s = k.pop(), !x[e(2807)] && P ? x[e(418)] ? s += " throw new ValidationError([" + E + "]); " : s += e(553) + E + e(2357) : s += e(2804) + E + e(1109); + } else x[e(2539)] ? n ? s += e(1579) : s += e(715) : s += e(551) + C + e(409); + return x[e(2539)] && (s += e(372)), s; } - if (x[e(2487)]) { - var A = x.isTop, f = x.level = 0, l = x.dataLevel = 0, v = e(909); - if (x[e(1686)] = x.resolve.fullPath(x[e(779)][e(771)](x[e(2318)].schema)), x[e(2610)] = x.baseId || x.rootId, delete x[e(2487)], x[e(1885)] = [""], x[e(2555)][e(1944)] !== void 0 && x[e(1835)].useDefaults && x[e(1835)][e(319)]) { - var T = e(1784); - if (x[e(1835)].strictDefaults === e(2818)) x[e(1610)].warn(T); + if (x[e(2539)]) { + var q = x[e(2539)], l = x[e(2454)] = 0, f = x[e(1356)] = 0, v = e(2887); + if (x[e(1379)] = x.resolve[e(923)](x[e(2288)][e(317)](x[e(1988)][e(224)])), x.baseId = x[e(2456)] || x[e(1379)], delete x[e(2539)], x[e(2392)] = [""], x[e(224)].default !== void 0 && x[e(2167)][e(2030)] && x.opts.strictDefaults) { + var T = "default is ignored in the schema root"; + if (x[e(2167)][e(1474)] === e(1872)) x[e(665)].warn(T); else throw new Error(T); } - s += e(1697), s += e(2437), s += e(2599); + s += e(964), s += e(920), s += e(918); } else { - var f = x.level, l = x[e(2547)], v = e(909) + (l || ""); - if (c && (x[e(2610)] = x.resolve[e(2638)](x[e(2610)], c)), n && !x[e(1973)]) throw new Error(e(1823)); - s += e(2744) + f + e(2163); + var l = x[e(2454)], f = x[e(1356)], v = e(2887) + (f || ""); + if (c && (x[e(2456)] = x[e(1635)].url(x[e(2456)], c)), n && !x.async) throw new Error("async schema in sync schema"); + s += e(332) + l + " = errors;"; } - var R = e(614) + f, P = !x[e(1835)].allErrors, N = "", _ = "", D, j = x[e(2555)][e(612)], F = Array[e(1783)](j); - if (j && x[e(1835)][e(1864)] && x[e(2555)][e(1864)] === !0 && (F ? j.indexOf(e(845)) == -1 && (j = j.concat("null")) : j != e(845) && (j = [j, "null"], F = !0)), F && j[e(692)] == 1 && (j = j[0], F = !1), x[e(2555)][e(2221)] && i) { - if (x[e(1835)][e(2286)] == e(2630)) throw new Error('$ref: validation keywords used in schema at path "' + x[e(2624)] + e(2062)); - x[e(1835)][e(2286)] !== !0 && (i = !1, x[e(1610)].warn(e(316) + x[e(2624)] + '"')); + var C = e(295) + l, P = !x[e(2167)][e(1842)], F = "", D = "", j, O = x[e(224)][e(190)], N = Array[e(977)](O); + if (O && x[e(2167)].nullable && x[e(224)][e(2101)] === !0 && (N ? O[e(1104)](e(1589)) == -1 && (O = O[e(1545)](e(1589))) : O != e(1589) && (O = [O, e(1589)], N = !0)), N && O[e(1332)] == 1 && (O = O[0], N = !1), x[e(224)][e(316)] && i) { + if (x[e(2167)][e(1946)] == e(1791)) throw new Error(e(2678) + x[e(1056)] + '" (see option extendRefs)'); + x[e(2167)].extendRefs !== !0 && (i = !1, x[e(665)][e(196)](e(750) + x.errSchemaPath + '"')); } - if (x.schema.$comment && x[e(1835)][e(1506)] && (s += " " + x[e(807)][e(403)].$comment[e(1172)](x, e(1506))), j) { - if (x[e(1835)].coerceTypes) var C = x[e(1011)][e(907)](x[e(1835)][e(2600)], j); - var H = x[e(807)][e(1411)][j]; - if (C || F || H === !0 || H && !w0(H)) { - var h = x.schemaPath + e(2380), m = x[e(2624)] + e(1855), h = x[e(2443)] + e(2380), m = x[e(2624)] + e(1855), U = F ? "checkDataTypes" : e(2366); - if (s += e(851) + x[e(1011)][U](j, v, x[e(1835)][e(1311)], !0) + ") { ", C) { - var z = "dataType" + f, G = e(1514) + f; - s += " var " + z + " = typeof " + v + e(1922) + G + e(754), x[e(1835)][e(2600)] == "array" && (s += e(851) + z + e(1569) + v + e(2883) + v + e(721) + v + e(2473) + v + e(1800) + z + " = typeof " + v + e(663) + x[e(1011)][e(2366)](x[e(2555)].type, v, x[e(1835)][e(1311)]) + ") " + G + e(2473) + v + e(1156)), s += " if (" + G + e(1361); - var i0 = C; - if (i0) - for (var u0, l0 = -1, o0 = i0[e(692)] - 1; l0 < o0; ) - u0 = i0[l0 += 1], u0 == e(2161) ? s += e(2663) + z + " == 'number' || " + z + e(2429) + G + e(290) + v + e(424) + v + " === null) " + G + e(1567) : u0 == "number" || u0 == e(1449) ? (s += " else if (" + z + e(655) + v + " === null || (" + z + " == 'string' && " + v + e(927) + v + e(2212) + v + " ", u0 == "integer" && (s += e(709) + v + e(2661)), s += e(2611) + G + e(1281) + v + "; ") : u0 == e(1146) ? s += e(2663) + v + e(2174) + v + " === 0 || " + v + e(662) + G + e(1871) + v + e(1629) + v + " === 1) " + G + e(854) : u0 == e(845) ? s += e(2663) + v + e(2011) + v + e(178) + v + " === false) " + G + " = null; " : x.opts[e(2600)] == e(973) && u0 == "array" && (s += e(2663) + z + e(511) + z + " == 'number' || " + z + e(655) + v + e(1437) + G + e(1170) + v + e(2492)); - s += e(547); + if (x[e(224)].$comment && x.opts[e(1514)] && (s += " " + x[e(2363)][e(1288)][e(1514)].code(x, e(1514))), O) { + if (x[e(2167)].coerceTypes) var R = x[e(910)].coerceToTypes(x[e(2167)][e(1681)], O); + var L = x.RULES.types[O]; + if (R || N || L === !0 || L && !Se(L)) { + var h = x.schemaPath + e(1137), m = x.errSchemaPath + e(217), h = x.schemaPath + e(1137), m = x[e(1056)] + e(217), $ = e(N ? 2729 : 531); + if (s += e(537) + x.util[$](O, v, x[e(2167)][e(1490)], !0) + e(1432), R) { + var z = e(640) + l, G = e(468) + l; + s += e(551) + z + e(398) + v + e(2437) + G + e(2189), x[e(2167)][e(1681)] == e(2173) && (s += e(537) + z + " == 'object' && Array.isArray(" + v + e(2185) + v + ".length == 1) { " + v + e(2821) + v + e(2806) + z + e(398) + v + e(1676) + x[e(910)].checkDataType(x[e(224)].type, v, x[e(2167)][e(1490)]) + ") " + G + e(2821) + v + e(1111)), s += e(537) + G + e(460); + var ce = R; + if (ce) + for (var ue, fe = -1, oe = ce[e(1332)] - 1; fe < oe; ) + ue = ce[fe += 1], ue == e(1653) ? s += e(347) + z + " == 'number' || " + z + " == 'boolean') " + G + e(2657) + v + e(834) + v + e(200) + G + e(1636) : ue == e(1206) || ue == "integer" ? (s += e(347) + z + e(568) + v + e(2082) + z + e(1106) + v + e(2446) + v + e(1965) + v + " ", ue == e(1605) && (s += e(1117) + v + e(1360)), s += e(1276) + G + e(229) + v + "; ") : ue == e(1001) ? s += e(347) + v + " === 'false' || " + v + e(2018) + v + e(200) + G + e(1394) + v + " === 'true' || " + v + e(953) + G + e(409) : ue == e(1589) ? s += e(347) + v + e(800) + v + e(2018) + v + " === false) " + G + " = null; " : x.opts.coerceTypes == "array" && ue == e(2173) && (s += e(347) + z + e(2506) + z + e(2600) + z + e(568) + v + e(764) + G + e(2723) + v + e(2432)); + s += e(1105); var k = k || []; - k[e(452)](s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + (D || "type") + e(2767) + x[e(2886)] + " , schemaPath: " + x[e(1011)][e(1901)](m) + e(347), F ? s += "" + j[e(2137)](",") : s += "" + j, s += e(2862), x[e(1835)].messages !== !1 && (s += e(1145), F ? s += "" + j.join(",") : s += "" + j, s += "' "), x.opts[e(1219)] && (s += e(1319) + h + e(1452) + x[e(2443)] + e(1227) + v + " "), s += e(1334)) : s += e(1230); - var I = s; - s = k[e(2231)](), !x[e(1187)] && P ? x[e(1973)] ? s += " throw new ValidationError([" + I + "]); " : s += e(651) + I + e(2753) : s += e(2467) + I + e(1899), s += " } if (" + G + e(2795); - var f0 = l ? e(909) + (l - 1 || "") : "parentData", k0 = l ? x[e(1885)][l] : e(1096); - s += " " + v + " = " + G + "; ", !l && (s += "if (" + f0 + e(2306)), s += " " + f0 + "[" + k0 + e(2777) + G + "; } "; + k.push(s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + (j || e(190)) + "' , dataPath: (dataPath || '') + " + x.errorPath + " , schemaPath: " + x[e(910)].toQuotedString(m) + e(1455), N ? s += "" + O[e(2252)](",") : s += "" + O, s += e(2482), x[e(2167)][e(389)] !== !1 && (s += " , message: 'should be ", N ? s += "" + O[e(2252)](",") : s += "" + O, s += "' "), x[e(2167)][e(2200)] && (s += e(624) + h + " , parentSchema: validate.schema" + x[e(442)] + e(1798) + v + " "), s += e(1134)) : s += " {} "; + var E = s; + s = k[e(469)](), !x[e(2807)] && P ? x[e(418)] ? s += e(1323) + E + e(1278) : s += e(553) + E + e(2357) : s += e(2804) + E + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += e(1917) + G + e(2717); + var le = f ? e(2887) + (f - 1 || "") : e(1391), ke = f ? x[e(2392)][f] : e(1263); + s += " " + v + e(2821) + G + "; ", !f && (s += e(1744) + le + e(809)), s += " " + le + "[" + ke + "] = " + G + e(1111); } else { var k = k || []; - k[e(452)](s), s = "", x.createErrors !== !1 ? (s += e(1588) + (D || e(612)) + e(2767) + x[e(2886)] + " , schemaPath: " + x[e(1011)][e(1901)](m) + e(347), F ? s += "" + j[e(2137)](",") : s += "" + j, s += e(2862), x[e(1835)].messages !== !1 && (s += " , message: 'should be ", F ? s += "" + j[e(2137)](",") : s += "" + j, s += "' "), x[e(1835)][e(1219)] && (s += e(1319) + h + e(1452) + x[e(2443)] + " , data: " + v + " "), s += " } ") : s += e(1230); - var I = s; - s = k[e(2231)](), !x[e(1187)] && P ? x[e(1973)] ? s += e(1086) + I + e(956) : s += e(651) + I + "]; return false; " : s += " var err = " + I + e(1899); + k.push(s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + (j || e(190)) + "' , dataPath: (dataPath || '') + " + x[e(2247)] + e(192) + x[e(910)][e(1250)](m) + e(1455), N ? s += "" + O.join(",") : s += "" + O, s += "' } ", x[e(2167)][e(389)] !== !1 && (s += e(1191), N ? s += "" + O[e(2252)](",") : s += "" + O, s += "' "), x[e(2167)][e(2200)] && (s += e(624) + h + e(2799) + x[e(442)] + e(1798) + v + " "), s += e(1134)) : s += " {} "; + var E = s; + s = k.pop(), !x.compositeRule && P ? x.async ? s += " throw new ValidationError([" + E + "]); " : s += " validate.errors = [" + E + e(2357) : s += " var err = " + E + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "; } - s += e(1334); + s += e(1134); } } - if (x.schema[e(2221)] && !i) s += " " + x.RULES.all.$ref[e(1172)](x, "$ref") + " ", P && (s += e(2637), A ? s += "0" : s += e(1816) + f, s += e(185), _ += "}"); + if (x[e(224)][e(316)] && !i) s += " " + x[e(2363)][e(1288)][e(316)][e(586)](x, e(316)) + " ", P && (s += e(2164), q ? s += "0" : s += e(886) + l, s += e(1432), D += "}"); else { - var S0 = x[e(807)]; - if (S0) { - for (var H, M0 = -1, F0 = S0.length - 1; M0 < F0; ) - if (H = S0[M0 += 1], w0(H)) { - if (H.type && (s += e(851) + x.util[e(2366)](H.type, v, x[e(1835)][e(1311)]) + ") { "), x[e(1835)][e(2132)]) { - if (H[e(612)] == e(544) && x.schema.properties) { - var b = x[e(2555)].properties, J0 = Object[e(750)](b), O = J0; - if (O) - for (var q, M = -1, Q = O[e(692)] - 1; M < Q; ) { - q = O[M += 1]; - var J = b[q]; - if (J[e(1944)] !== void 0) { - var V = v + x[e(1011)][e(981)](q); - if (x[e(1187)]) { - if (x[e(1835)][e(319)]) { - var T = e(2234) + V; - if (x.opts[e(319)] === e(2818)) x[e(1610)][e(343)](T); + var ye = x.RULES; + if (ye) { + for (var L, Me = -1, Ee = ye.length - 1; Me < Ee; ) + if (L = ye[Me += 1], Se(L)) { + if (L.type && (s += " if (" + x[e(910)].checkDataType(L.type, v, x.opts[e(1490)]) + e(1432)), x[e(2167)][e(2030)]) { + if (L.type == "object" && x[e(224)][e(657)]) { + var b = x[e(224)][e(657)], Je = Object.keys(b), _ = Je; + if (_) + for (var A, H = -1, J = _[e(1332)] - 1; H < J; ) { + A = _[H += 1]; + var Q = b[A]; + if (Q[e(2222)] !== void 0) { + var V = v + x[e(910)][e(1295)](A); + if (x[e(2807)]) { + if (x[e(2167)].strictDefaults) { + var T = e(2598) + V; + if (x.opts[e(1474)] === e(1872)) x[e(665)][e(196)](T); else throw new Error(T); } - } else s += e(851) + V + e(2726), x[e(1835)][e(2132)] == e(1325) && (s += e(1090) + V + e(778) + V + " === '' "), s += " ) " + V + " = ", x[e(1835)][e(2132)] == e(776) ? s += " " + x[e(2827)](J[e(1944)]) + " " : s += " " + JSON[e(2625)](J[e(1944)]) + " ", s += "; "; + } else s += e(537) + V + " === undefined ", x.opts[e(2030)] == e(1489) && (s += e(2320) + V + e(1528) + V + e(1074)), s += e(664) + V + " = ", x[e(2167)][e(2030)] == e(1307) ? s += " " + x[e(1683)](Q[e(2222)]) + " " : s += " " + JSON.stringify(Q[e(2222)]) + " ", s += "; "; } } - } else if (H[e(612)] == e(973) && Array.isArray(x[e(2555)][e(715)])) { - var X = x[e(2555)][e(715)]; + } else if (L.type == e(2173) && Array.isArray(x[e(224)][e(1613)])) { + var X = x[e(224)][e(1613)]; if (X) { - for (var J, l0 = -1, s0 = X[e(692)] - 1; l0 < s0; ) - if (J = X[l0 += 1], J[e(1944)] !== void 0) { - var V = v + "[" + l0 + "]"; - if (x[e(1187)]) { - if (x.opts[e(319)]) { - var T = e(2234) + V; - if (x[e(1835)][e(319)] === "log") x[e(1610)][e(343)](T); + for (var Q, fe = -1, ie = X[e(1332)] - 1; fe < ie; ) + if (Q = X[fe += 1], Q.default !== void 0) { + var V = v + "[" + fe + "]"; + if (x.compositeRule) { + if (x.opts[e(1474)]) { + var T = "default is ignored for: " + V; + if (x[e(2167)][e(1474)] === e(1872)) x.logger.warn(T); else throw new Error(T); } - } else s += e(851) + V + e(2726), x.opts[e(2132)] == "empty" && (s += " || " + V + e(778) + V + e(2531)), s += e(2010) + V + e(2473), x.opts[e(2132)] == e(776) ? s += " " + x[e(2827)](J[e(1944)]) + " " : s += " " + JSON[e(2625)](J[e(1944)]) + " ", s += "; "; + } else s += e(537) + V + e(675), x[e(2167)].useDefaults == e(1489) && (s += " || " + V + e(1528) + V + e(1074)), s += e(664) + V + " = ", x[e(2167)][e(2030)] == e(1307) ? s += " " + x[e(1683)](Q[e(2222)]) + " " : s += " " + JSON[e(306)](Q[e(2222)]) + " ", s += "; "; } } } } - var c0 = H[e(752)]; - if (c0) { - for (var x0, L0 = -1, A0 = c0[e(692)] - 1; L0 < A0; ) - if (x0 = c0[L0 += 1], G0(x0)) { - var H0 = x0.code(x, x0.keyword, H[e(612)]); - H0 && (s += " " + H0 + " ", P && (N += "}")); + var se = L[e(2516)]; + if (se) { + for (var xe, Le = -1, Ae = se[e(1332)] - 1; Le < Ae; ) + if (xe = se[Le += 1], Ge(xe)) { + var He = xe[e(586)](x, xe[e(1174)], L[e(190)]); + He && (s += " " + He + " ", P && (F += "}")); } } - if (P && (s += " " + N + " ", N = ""), H[e(612)] && (s += e(1334), j && j === H[e(612)] && !C)) { - s += e(1237); - var h = x[e(2443)] + e(2380), m = x.errSchemaPath + e(1855), k = k || []; - k[e(452)](s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + (D || e(612)) + e(2767) + x.errorPath + e(1347) + x.util[e(1901)](m) + e(347), F ? s += "" + j[e(2137)](",") : s += "" + j, s += e(2862), x[e(1835)].messages !== !1 && (s += e(1145), F ? s += "" + j.join(",") : s += "" + j, s += "' "), x[e(1835)][e(1219)] && (s += e(1319) + h + e(1452) + x.schemaPath + e(1227) + v + " "), s += " } ") : s += e(1230); - var I = s; - s = k[e(2231)](), !x[e(1187)] && P ? x[e(1973)] ? s += e(1086) + I + e(956) : s += e(651) + I + e(2753) : s += e(2467) + I + e(1899), s += e(1334); + if (P && (s += " " + F + " ", F = ""), L.type && (s += e(1134), O && O === L[e(190)] && !R)) { + s += " else { "; + var h = x.schemaPath + e(1137), m = x[e(1056)] + e(217), k = k || []; + k.push(s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + (j || "type") + e(1016) + x.errorPath + e(192) + x.util[e(1250)](m) + e(1455), N ? s += "" + O[e(2252)](",") : s += "" + O, s += e(2482), x[e(2167)][e(389)] !== !1 && (s += " , message: 'should be ", N ? s += "" + O[e(2252)](",") : s += "" + O, s += "' "), x.opts[e(2200)] && (s += " , schema: validate.schema" + h + e(2799) + x.schemaPath + e(1798) + v + " "), s += " } ") : s += " {} "; + var E = s; + s = k[e(469)](), !x[e(2807)] && P ? x[e(418)] ? s += e(1323) + E + e(1278) : s += " validate.errors = [" + E + e(2357) : s += e(2804) + E + e(1109), s += e(1134); } - P && (s += e(1578), A ? s += "0" : s += e(1816) + f, s += e(185), _ += "}"); + P && (s += e(2861), q ? s += "0" : s += e(886) + l, s += e(1432), D += "}"); } } } - P && (s += " " + _ + " "), A ? (n ? (s += e(2131), s += e(2566)) : (s += e(2263), s += " return errors === 0; "), s += " }; return validate;") : s += e(2007) + R + " = errors === errs_" + f + ";"; - function w0(Q0) { - const O0 = e; - for (var z0 = Q0[O0(752)], Y0 = 0; Y0 < z0[O0(692)]; Y0++) if (G0(z0[Y0])) return !0; + P && (s += " " + D + " "), q ? (n ? (s += e(1122), s += e(324)) : (s += e(2541), s += e(2642)), s += e(2309)) : s += e(551) + C + e(293) + l + ";"; + function Se(Qe) { + const _e = e; + for (var ze = Qe[_e(2516)], Ye = 0; Ye < ze[_e(1332)]; Ye++) if (Ge(ze[Ye])) return !0; } - function G0(Q0) { - const O0 = e; - return x[O0(2555)][Q0[O0(1235)]] !== void 0 || Q0[O0(756)] && ne(Q0); + function Ge(Qe) { + const _e = e; + return x[_e(224)][Qe[_e(1174)]] !== void 0 || Qe[_e(2789)] && n0(Qe); } - function ne(Q0) { - const O0 = e; - for (var z0 = Q0[O0(756)], Y0 = 0; Y0 < z0[O0(692)]; Y0++) if (x.schema[z0[Y0]] !== void 0) return !0; + function n0(Qe) { + const _e = e; + for (var ze = Qe.implements, Ye = 0; Ye < ze[_e(1332)]; Ye++) if (x[_e(224)][ze[Ye]] !== void 0) return !0; } return s; }), st; } var nt, hr; -function sc() { +function i2() { const o = a; if (hr) return nt; hr = 1; - var x = la(), t = Ze(), r = ha(), e = mn(), s = bn(), n = t.ucs2length, i = fa(), c = r[o(2228)]; + var x = fa(), t = W0(), r = ha(), e = yn(), s = vn(), n = t[o(1013)], i = la(), c = r[o(756)]; nt = u; - function u(I, A, T, R) { + function u(E, q, T, C) { const P = o; - var N = this, _ = this[P(1035)], D = [void 0], j = {}, F = [], C = {}, H = [], U = {}, z = []; - A = A || { schema: I, refVal: D, refs: j }; - var G = d[P(1994)](this, I, A, R), i0 = this[P(950)][G[P(1693)]]; - if (G[P(2030)]) return i0[P(1777)] = k0; - var u0 = this[P(1484)], l0 = this.RULES; + var F = this, D = this._opts, j = [void 0], O = {}, N = [], R = {}, L = [], $ = {}, z = []; + q = q || { schema: E, refVal: j, refs: O }; + var G = d[P(377)](this, E, q, C), ce = this[P(1339)][G[P(2291)]]; + if (G[P(1765)]) return ce[P(1996)] = ke; + var ue = this[P(272)], fe = this[P(2363)]; try { - var o0 = S0(I, A, T, R); - i0[P(2621)] = o0; - var f0 = i0[P(1777)]; - return f0 && (f0.schema = o0.schema, f0[P(1672)] = null, f0[P(283)] = o0.refs, f0.refVal = o0[P(583)], f0.root = o0[P(2318)], f0[P(2609)] = o0.$async, _[P(179)] && (f0[P(901)] = o0[P(901)])), o0; + var oe = ye(E, q, T, C); + ce[P(1348)] = oe; + var le = ce[P(1996)]; + return le && (le[P(224)] = oe[P(224)], le[P(638)] = null, le.refs = oe[P(985)], le[P(874)] = oe[P(874)], le.root = oe.root, le[P(2532)] = oe[P(2532)], D[P(2026)] && (le[P(2635)] = oe[P(2635)])), oe; } finally { - f[P(1994)](this, I, A, R); + l.call(this, E, q, C); } - function k0() { + function ke() { const V = P; - var X = i0[V(2621)], s0 = X.apply(this, arguments); - return k0[V(1672)] = X[V(1672)], s0; + var X = ce[V(1348)], ie = X[V(1964)](this, arguments); + return ke.errors = X[V(638)], ie; } - function S0(V, X, s0, c0) { - const x0 = P; - var L0 = !X || X && X[x0(2555)] == V; - if (X[x0(2555)] != A[x0(2555)]) return u[x0(1994)](N, V, X, s0, c0); - var A0 = V[x0(2609)] === !0, H0 = s({ isTop: !0, schema: V, isRoot: L0, baseId: c0, root: X, schemaPath: "", errSchemaPath: "#", errorPath: '""', MissingRefError: r.MissingRef, RULES: l0, validate: s, util: t, resolve: x, resolveRef: M0, usePattern: M, useDefault: Q, useCustomRule: J, opts: _, formats: u0, logger: N.logger, self: N }); - H0 = k(D, m) + k(F, b) + k(H, h) + k(z, v) + H0, _[x0(639)] && (H0 = _.processCode(H0, V)); - var w0; + function ye(V, X, ie, se) { + const xe = P; + var Le = !X || X && X[xe(224)] == V; + if (X[xe(224)] != q[xe(224)]) return u[xe(377)](F, V, X, ie, se); + var Ae = V[xe(2532)] === !0, He = s({ isTop: !0, schema: V, isRoot: Le, baseId: se, root: X, schemaPath: "", errSchemaPath: "#", errorPath: '""', MissingRefError: r[xe(2646)], RULES: fe, validate: s, util: t, resolve: x, resolveRef: Me, usePattern: H, useDefault: J, useCustomRule: Q, opts: D, formats: ue, logger: F[xe(665)], self: F }); + He = k(j, m) + k(N, b) + k(L, h) + k(z, v) + He, D[xe(914)] && (He = D[xe(914)](He, V)); + var Se; try { - var G0 = new Function("self", x0(807), x0(823), x0(2318), x0(583), x0(1228), x0(484), x0(2670), x0(1305), x0(1619), H0); - w0 = G0(N, l0, u0, A, D, H, z, i, n, c), D[0] = w0; - } catch (ne) { - throw N[x0(1610)][x0(948)](x0(2530), H0), ne; + var Ge = new Function(xe(2288), xe(2363), xe(2726), xe(1988), xe(874), xe(263), xe(203), "equal", xe(1013), "ValidationError", He); + Se = Ge(F, fe, ue, q, j, L, z, i, n, c), j[0] = Se; + } catch (n0) { + throw F.logger[xe(2265)](xe(2120), He), n0; } - return w0[x0(2555)] = V, w0[x0(1672)] = null, w0.refs = j, w0[x0(583)] = D, w0[x0(2318)] = L0 ? w0 : X, A0 && (w0[x0(2609)] = !0), _[x0(179)] === !0 && (w0[x0(901)] = { code: H0, patterns: F, defaults: H }), w0; + return Se[xe(224)] = V, Se[xe(638)] = null, Se.refs = O, Se[xe(874)] = j, Se[xe(1988)] = Le ? Se : X, Ae && (Se[xe(2532)] = !0), D.sourceCode === !0 && (Se[xe(2635)] = { code: He, patterns: N, defaults: L }), Se; } - function M0(V, X, s0) { - const c0 = P; - X = x.url(V, X); - var x0 = j[X], L0, A0; - if (x0 !== void 0) return L0 = D[x0], A0 = "refVal[" + x0 + "]", q(L0, A0); - if (!s0 && A.refs) { - var H0 = A.refs[X]; - if (H0 !== void 0) return L0 = A[c0(583)][H0], A0 = F0(X, L0), q(L0, A0); + function Me(V, X, ie) { + const se = P; + X = x[se(1158)](V, X); + var xe = O[X], Le, Ae; + if (xe !== void 0) return Le = j[xe], Ae = se(515) + xe + "]", A(Le, Ae); + if (!ie && q[se(985)]) { + var He = q[se(985)][X]; + if (He !== void 0) return Le = q[se(874)][He], Ae = Ee(X, Le), A(Le, Ae); } - A0 = F0(X); - var w0 = x[c0(1994)](N, S0, A, X); - if (w0 === void 0) { - var G0 = T && T[X]; - G0 && (w0 = x.inlineRef(G0, _[c0(808)]) ? G0 : u[c0(1994)](N, G0, A, T, V)); + Ae = Ee(X); + var Se = x[se(377)](F, ye, q, X); + if (Se === void 0) { + var Ge = T && T[X]; + Ge && (Se = x[se(510)](Ge, D.inlineRefs) ? Ge : u[se(377)](F, Ge, q, T, V)); } - if (w0 === void 0) J0(X); - else return O(X, w0), q(w0, A0); + if (Se === void 0) Je(X); + else return _(X, Se), A(Se, Ae); } - function F0(V, X) { - const s0 = P; - var c0 = D[s0(692)]; - return D[c0] = X, j[V] = c0, s0(583) + c0; + function Ee(V, X) { + const ie = P; + var se = j.length; + return j[se] = X, O[V] = se, ie(874) + se; } - function J0(V) { - delete j[V]; + function Je(V) { + delete O[V]; } - function O(V, X) { - var s0 = j[V]; - D[s0] = X; + function _(V, X) { + var ie = O[V]; + j[ie] = X; } - function q(V, X) { - const s0 = P; - return typeof V == s0(544) || typeof V == s0(1146) ? { code: X, schema: V, inline: !0 } : { code: X, $async: V && !!V[s0(2609)] }; + function A(V, X) { + const ie = P; + return typeof V == "object" || typeof V == ie(1001) ? { code: X, schema: V, inline: !0 } : { code: X, $async: V && !!V[ie(2532)] }; } - function M(V) { + function H(V) { const X = P; - var s0 = C[V]; - return s0 === void 0 && (s0 = C[V] = F.length, F[s0] = V), X(1267) + s0; + var ie = R[V]; + return ie === void 0 && (ie = R[V] = N[X(1332)], N[ie] = V), X(1777) + ie; } - function Q(V) { + function J(V) { const X = P; switch (typeof V) { - case X(1146): - case X(2153): + case "boolean": + case X(1206): return "" + V; - case X(2161): - return t[X(1901)](V); - case X(544): - if (V === null) return "null"; - var s0 = e(V), c0 = U[s0]; - return c0 === void 0 && (c0 = U[s0] = H[X(692)], H[c0] = V), X(1944) + c0; + case X(1653): + return t[X(1250)](V); + case X(2844): + if (V === null) return X(1589); + var ie = e(V), se = $[ie]; + return se === void 0 && (se = $[ie] = L[X(1332)], L[se] = V), X(2222) + se; } } - function J(V, X, s0, c0) { - const x0 = P; - if (N[x0(1035)][x0(763)] !== !1) { - var L0 = V.definition[x0(1356)]; - if (L0 && !L0[x0(1761)](function(Y0) { - const Me = x0; - return Object.prototype[Me(873)][Me(1994)](s0, Y0); - })) throw new Error("parent schema must have all required keywords: " + L0[x0(2137)](",")); - var A0 = V[x0(2814)][x0(763)]; - if (A0) { - var H0 = A0(X); - if (!H0) { - var w0 = "keyword schema is invalid: " + N.errorsText(A0.errors); - if (N[x0(1035)][x0(763)] == x0(2818)) N.logger.error(w0); - else throw new Error(w0); + function Q(V, X, ie, se) { + const xe = P; + if (F[xe(2801)][xe(2139)] !== !1) { + var Le = V[xe(1259)][xe(2378)]; + if (Le && !Le.every(function(Ye) { + const T0 = xe; + return Object[T0(1700)][T0(1428)][T0(377)](ie, Ye); + })) throw new Error(xe(1614) + Le[xe(2252)](",")); + var Ae = V[xe(1259)].validateSchema; + if (Ae) { + var He = Ae(X); + if (!He) { + var Se = xe(2062) + F[xe(1425)](Ae[xe(638)]); + if (F[xe(2801)][xe(2139)] == xe(1872)) F[xe(665)][xe(2265)](Se); + else throw new Error(Se); } } } - var G0 = V[x0(2814)][x0(1759)], ne = V.definition[x0(2527)], Q0 = V[x0(2814)].macro, O0; - if (G0) O0 = G0[x0(1994)](N, X, s0, c0); - else if (Q0) - O0 = Q0.call(N, X, s0, c0), _[x0(763)] !== !1 && N[x0(763)](O0, !0); - else if (ne) O0 = ne.call(N, c0, V[x0(1235)], X, s0); - else if (O0 = V[x0(2814)][x0(2621)], !O0) return; - if (O0 === void 0) throw new Error(x0(1809) + V[x0(1235)] + x0(908)); - var z0 = z[x0(692)]; - return z[z0] = O0, { code: x0(679) + z0, validate: O0 }; + var Ge = V[xe(1259)][xe(1544)], n0 = V.definition[xe(2730)], Qe = V.definition[xe(2405)], _e; + if (Ge) _e = Ge.call(F, X, ie, se); + else if (Qe) + _e = Qe[xe(377)](F, X, ie, se), D[xe(2139)] !== !1 && F[xe(2139)](_e, !0); + else if (n0) _e = n0.call(F, se, V[xe(1174)], X, ie); + else if (_e = V.definition.validate, !_e) return; + if (_e === void 0) throw new Error('custom keyword "' + V[xe(1174)] + xe(1517)); + var ze = z.length; + return z[ze] = _e, { code: xe(2180) + ze, validate: _e }; } } - function d(I, A, T) { - const R = o; - var P = l[R(1994)](this, I, A, T); - return P >= 0 ? { index: P, compiling: !0 } : (P = this[R(950)][R(692)], this[R(950)][P] = { schema: I, root: A, baseId: T }, { index: P, compiling: !1 }); + function d(E, q, T) { + const C = o; + var P = f[C(377)](this, E, q, T); + return P >= 0 ? { index: P, compiling: !0 } : (P = this._compilations[C(1332)], this[C(1339)][P] = { schema: E, root: q, baseId: T }, { index: P, compiling: !1 }); } - function f(I, A, T) { - const R = o; - var P = l.call(this, I, A, T); - P >= 0 && this._compilations[R(2605)](P, 1); + function l(E, q, T) { + const C = o; + var P = f.call(this, E, q, T); + P >= 0 && this[C(1339)][C(2301)](P, 1); } - function l(I, A, T) { - const R = o; - for (var P = 0; P < this._compilations[R(692)]; P++) { - var N = this[R(950)][P]; - if (N[R(2555)] == I && N[R(2318)] == A && N[R(2610)] == T) return P; + function f(E, q, T) { + const C = o; + for (var P = 0; P < this._compilations.length; P++) { + var F = this[C(1339)][P]; + if (F.schema == E && F[C(1988)] == q && F.baseId == T) return P; } return -1; } - function b(I, A) { + function b(E, q) { const T = o; - return T(2563) + I + " = new RegExp(" + t[T(1901)](A[I]) + ");"; + return T(2703) + E + T(258) + t[T(1250)](q[E]) + ");"; } - function h(I) { - const A = o; - return "var default" + I + A(1463) + I + "];"; + function h(E) { + return o(455) + E + " = defaults[" + E + "];"; } - function m(I, A) { + function m(E, q) { const T = o; - return A[I] === void 0 ? "" : "var refVal" + I + T(2789) + I + "];"; + return q[E] === void 0 ? "" : T(580) + E + T(2559) + E + "];"; } - function v(I) { - return o(1441) + I + " = customRules[" + I + "];"; + function v(E) { + return o(1939) + E + " = customRules[" + E + "];"; } - function k(I, A) { - const T = o; - if (!I[T(692)]) return ""; - for (var R = "", P = 0; P < I[T(692)]; P++) R += A(P, I); - return R; + function k(E, q) { + if (!E[o(1332)]) return ""; + for (var C = "", P = 0; P < E.length; P++) C += q(P, E); + return C; } return nt; } var ot = { exports: {} }, pr; -function nc() { +function c2() { const o = a; - if (pr) return ot[o(2519)]; + if (pr) return ot[o(1469)]; pr = 1; - var x = ot[o(2519)] = function() { + var x = ot[o(1469)] = function() { const r = o; - this[r(2851)] = {}; + this[r(2852)] = {}; }; - return x[o(2249)][o(924)] = function(r, e) { + return x[o(1700)][o(422)] = function(r, e) { const s = o; - this[s(2851)][r] = e; - }, x[o(2249)][o(1075)] = function(r) { - return this[o(2851)][r]; - }, x[o(2249)][o(619)] = function(r) { + this[s(2852)][r] = e; + }, x[o(1700)].get = function(r) { + return this[o(2852)][r]; + }, x[o(1700)][o(1301)] = function(r) { const e = o; - delete this[e(2851)][r]; - }, x[o(2249)][o(899)] = function() { - this._cache = {}; - }, ot.exports; -} -function K(o, x) { - return o = o - 171, Nx()[o]; + delete this[e(2852)][r]; + }, x[o(1700)][o(2254)] = function() { + const r = o; + this[r(2852)] = {}; + }, ot[o(1469)]; } var it, mr; -function oc() { +function u2() { const o = a; if (mr) return it; mr = 1; - var x = Ze(), t = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, r = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], e = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i, s = /^(?=.{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, n = /^(?:[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, i = /^(?:[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, c = /^(?:(?:[^\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, u = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i, d = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i, f = /^(?:\/(?:[^~/]|~0|~1)*)*$/, l = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i, b = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; + var x = W0(), t = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, r = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], e = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i, s = /^(?=.{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, n = /^(?:[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, i = /^(?:[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, c = /^(?:(?:[^\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, u = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i, d = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i, l = /^(?:\/(?:[^~/]|~0|~1)*)*$/, f = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i, b = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; it = h; - function h(_) { - const D = K; - return _ = _ == D(2391) ? D(2391) : D(1369), x[D(1965)](h[_]); + function h(D) { + const j = K; + return D = D == "full" ? j(2344) : j(492), x[j(1196)](h[D]); } - h[o(1369)] = { date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, "date-time": /^\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, uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, "uri-template": c, url: u, 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, hostname: s, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[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}))|:)))(?:%.+)?\s*$/i, regex: N, uuid: d, "json-pointer": f, "json-pointer-uri-fragment": l, "relative-json-pointer": b }, h[o(2391)] = { date: v, time: k, "date-time": A, uri: R, "uri-reference": i, "uri-template": c, url: u, 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: s, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[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}))|:)))(?:%.+)?\s*$/i, regex: N, uuid: d, "json-pointer": f, "json-pointer-uri-fragment": l, "relative-json-pointer": b }; - function m(_) { - return _ % 4 === 0 && (_ % 100 !== 0 || _ % 400 === 0); + h[o(492)] = { date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, "date-time": /^\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, uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, "uri-template": c, url: u, 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, hostname: s, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[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}))|:)))(?:%.+)?\s*$/i, regex: F, uuid: d, "json-pointer": l, "json-pointer-uri-fragment": f, "relative-json-pointer": b }, h[o(2344)] = { date: v, time: k, "date-time": q, uri: C, "uri-reference": i, "uri-template": c, url: u, 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: s, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[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}))|:)))(?:%.+)?\s*$/i, regex: F, uuid: d, "json-pointer": l, "json-pointer-uri-fragment": f, "relative-json-pointer": b }; + function m(D) { + return D % 4 === 0 && (D % 100 !== 0 || D % 400 === 0); } - function v(_) { - var j = _[o(430)](t); - if (!j) return !1; - var F = +j[1], C = +j[2], H = +j[3]; - return C >= 1 && C <= 12 && H >= 1 && H <= (C == 2 && m(F) ? 29 : r[C]); + function v(D) { + var O = D[o(2716)](t); + if (!O) return !1; + var N = +O[1], R = +O[2], L = +O[3]; + return R >= 1 && R <= 12 && L >= 1 && L <= (R == 2 && m(N) ? 29 : r[R]); } - function k(_, D) { - var F = _[o(430)](e); - if (!F) return !1; - var C = F[1], H = F[2], U = F[3], z = F[5]; - return (C <= 23 && H <= 59 && U <= 59 || C == 23 && H == 59 && U == 60) && (!D || z); + function k(D, j) { + var O = D.match(e); + if (!O) return !1; + var N = O[1], R = O[2], L = O[3], $ = O[5]; + return (N <= 23 && R <= 59 && L <= 59 || N == 23 && R == 59 && L == 60) && (!j || $); } - var I = /t|\s/i; - function A(_) { - const D = o; - var j = _[D(628)](I); - return j[D(692)] == 2 && v(j[0]) && k(j[1], !0); + var E = /t|\s/i; + function q(D) { + const j = o; + var O = D[j(585)](E); + return O[j(1332)] == 2 && v(O[0]) && k(O[1], !0); } var T = /\/|:/; - function R(_) { - const D = o; - return T[D(1904)](_) && n[D(1904)](_); + function C(D) { + return T[o(1055)](D) && n.test(D); } var P = /[^\\]\\Z/; - function N(_) { - if (P[o(1904)](_)) return !1; + function F(D) { + if (P[o(1055)](D)) return !1; try { - return new RegExp(_), !0; + return new RegExp(D), !0; } catch { return !1; } @@ -6155,1465 +6142,1476 @@ function oc() { return it; } var ct, br; -function ic() { +function d2() { return br || (br = 1, ct = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x[e(2547)], c = x[e(2555)][t], u = x.errSchemaPath + "/" + t, d = !x[e(1835)].allErrors, f = e(909) + (i || ""), l = e(614) + n, b, h; - if (c == "#" || c == "#/") x[e(1842)] ? (b = x[e(1973)], h = e(2621)) : (b = x[e(2318)].schema[e(2609)] === !0, h = "root.refVal[0]"); + var s = " ", n = x[e(2454)], i = x[e(1356)], c = x.schema[t], u = x.errSchemaPath + "/" + t, d = !x[e(2167)][e(1842)], l = e(2887) + (i || ""), f = e(295) + n, b, h; + if (c == "#" || c == "#/") x[e(2718)] ? (b = x[e(418)], h = e(1348)) : (b = x[e(1988)][e(224)][e(2532)] === !0, h = e(2037)); else { - var m = x[e(596)](x[e(2610)], c, x[e(1842)]); + var m = x[e(1821)](x.baseId, c, x.isRoot); if (m === void 0) { - var v = x.MissingRefError[e(225)](x.baseId, c); - if (x[e(1835)][e(455)] == "fail") { - x[e(1610)][e(948)](v); + var v = x[e(673)][e(615)](x[e(2456)], c); + if (x[e(2167)][e(1485)] == "fail") { + x.logger[e(2265)](v); var k = k || []; - k[e(452)](s), s = "", x.createErrors !== !1 ? (s += e(1588) + e(2221) + "' , dataPath: (dataPath || '') + " + x[e(2886)] + " , schemaPath: " + x[e(1011)][e(1901)](u) + e(1935) + x[e(1011)][e(1848)](c) + "' } ", x[e(1835)][e(1793)] !== !1 && (s += e(2540) + x[e(1011)][e(1848)](c) + "' "), x[e(1835)].verbose && (s += " , schema: " + x[e(1011)][e(1901)](c) + " , parentSchema: validate.schema" + x[e(2443)] + e(1227) + f + " "), s += e(1334)) : s += e(1230); - var I = s; - s = k[e(2231)](), !x[e(1187)] && d ? x[e(1973)] ? s += e(1086) + I + e(956) : s += e(651) + I + e(2753) : s += e(2467) + I + e(1899), d && (s += e(1735)); - } else if (x[e(1835)].missingRefs == "ignore") x[e(1610)][e(343)](v), d && (s += " if (true) { "); - else throw new x[e(903)](x.baseId, c, v); - } else if (m[e(2527)]) { - var A = x[e(1011)][e(1965)](x); - A[e(1552)]++; - var T = "valid" + A[e(1552)]; - A[e(2555)] = m[e(2555)], A.schemaPath = "", A[e(2624)] = c; - var R = x.validate(A).replace(/validate\.schema/g, m[e(1172)]); - s += " " + R + " ", d && (s += e(851) + T + ") { "); - } else b = m[e(2609)] === !0 || x.async && m[e(2609)] !== !1, h = m[e(1172)]; + k.push(s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + e(316) + e(1016) + x[e(2247)] + e(192) + x.util[e(1250)](u) + " , params: { ref: '" + x[e(910)][e(2805)](c) + "' } ", x[e(2167)][e(389)] !== !1 && (s += e(161) + x[e(910)][e(2805)](c) + "' "), x[e(2167)][e(2200)] && (s += " , schema: " + x.util[e(1250)](c) + e(2799) + x[e(442)] + e(1798) + l + " "), s += " } ") : s += " {} "; + var E = s; + s = k[e(469)](), !x.compositeRule && d ? x.async ? s += e(1323) + E + e(1278) : s += e(553) + E + e(2357) : s += e(2804) + E + e(1109), d && (s += e(2582)); + } else if (x.opts[e(1485)] == "ignore") x[e(665)][e(196)](v), d && (s += " if (true) { "); + else throw new x.MissingRefError(x[e(2456)], c, v); + } else if (m[e(2730)]) { + var q = x[e(910)].copy(x); + q[e(2454)]++; + var T = e(295) + q.level; + q.schema = m[e(224)], q.schemaPath = "", q.errSchemaPath = c; + var C = x.validate(q)[e(784)](/validate\.schema/g, m[e(586)]); + s += " " + C + " ", d && (s += e(537) + T + e(1432)); + } else b = m.$async === !0 || x[e(418)] && m[e(2532)] !== !1, h = m[e(586)]; } if (h) { var k = k || []; - k[e(452)](s), s = "", x[e(1835)].passContext ? s += " " + h + e(1002) : s += " " + h + "( ", s += " " + f + e(2579), x[e(2886)] != '""' && (s += e(2196) + x[e(2886)]); - var P = i ? e(909) + (i - 1 || "") : e(482), N = i ? x[e(1885)][i] : e(1096); - s += " , " + P + e(366) + N + e(2407); - var _ = s; - if (s = k[e(2231)](), b) { - if (!x[e(1973)]) throw new Error(e(2168)); - d && (s += e(2007) + l + "; "), s += e(1852) + _ + "; ", d && (s += " " + l + e(854)), s += e(1480), d && (s += " " + l + " = false; "), s += e(1334), d && (s += e(851) + l + ") { "); - } else s += e(2351) + _ + e(2602) + h + ".errors; else vErrors = vErrors.concat(" + h + e(1336), d && (s += e(1237)); + k[e(902)](s), s = "", x[e(2167)][e(2110)] ? s += " " + h + e(1564) : s += " " + h + "( ", s += " " + l + e(1385), x[e(2247)] != '""' && (s += e(2721) + x[e(2247)]); + var P = i ? "data" + (i - 1 || "") : e(1391), F = i ? x[e(2392)][i] : e(1263); + s += e(1983) + P + e(1983) + F + e(540); + var D = s; + if (s = k[e(469)](), b) { + if (!x[e(418)]) throw new Error(e(1940)); + d && (s += e(551) + f + "; "), s += e(520) + D + "; ", d && (s += " " + f + e(409)), s += e(1061), d && (s += " " + f + e(895)), s += e(1134), d && (s += e(537) + f + e(1432)); + } else s += " if (!" + D + e(2495) + h + ".errors; else vErrors = vErrors.concat(" + h + ".errors); errors = vErrors.length; } ", d && (s += e(2138)); } return s; }), ct; } var ut, gr; -function cc() { +function l2() { return gr || (gr = 1, ut = function(x, t, r) { const e = K; - var s = " ", n = x[e(2555)][t], i = x[e(2443)] + x[e(1011)][e(981)](t), c = x.errSchemaPath + "/" + t, u = !x[e(1835)].allErrors, d = x[e(1011)].copy(x), f = ""; - d[e(1552)]++; - var l = e(614) + d.level, b = d.baseId, h = !0, m = n; + var s = " ", n = x[e(224)][t], i = x[e(442)] + x[e(910)].getProperty(t), c = x.errSchemaPath + "/" + t, u = !x[e(2167)].allErrors, d = x.util[e(1196)](x), l = ""; + d[e(2454)]++; + var f = e(295) + d.level, b = d[e(2456)], h = !0, m = n; if (m) - for (var v, k = -1, I = m.length - 1; k < I; ) - v = m[k += 1], (x[e(1835)][e(2746)] ? typeof v == e(544) && Object.keys(v)[e(692)] > 0 || v === !1 : x[e(1011)][e(1392)](v, x[e(807)].all)) && (h = !1, d[e(2555)] = v, d.schemaPath = i + "[" + k + "]", d.errSchemaPath = c + "/" + k, s += " " + x.validate(d) + " ", d[e(2610)] = b, u && (s += " if (" + l + e(185), f += "}")); - return u && (h ? s += e(495) : s += " " + f[e(2088)](0, -1) + " "), s; + for (var v, k = -1, E = m.length - 1; k < E; ) + v = m[k += 1], (x[e(2167)][e(2347)] ? typeof v == e(2844) && Object[e(1806)](v)[e(1332)] > 0 || v === !1 : x[e(910)][e(2124)](v, x.RULES[e(1288)])) && (h = !1, d[e(224)] = v, d.schemaPath = i + "[" + k + "]", d[e(1056)] = c + "/" + k, s += " " + x[e(1348)](d) + " ", d[e(2456)] = b, u && (s += e(537) + f + e(1432), l += "}")); + return u && (h ? s += e(495) : s += " " + l.slice(0, -1) + " "), s; }), ut; } var dt, yr; -function uc() { +function f2() { return yr || (yr = 1, dt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x[e(2547)], c = x[e(2555)][t], u = x.schemaPath + x[e(1011)][e(981)](t), d = x.errSchemaPath + "/" + t, f = !x[e(1835)][e(226)], l = e(909) + (i || ""), b = e(614) + n, h = "errs__" + n, m = x[e(1011)][e(1965)](x), v = ""; - m[e(1552)]++; - var k = e(614) + m.level, I = c[e(1761)](function(D) { - const j = e; - return x.opts[j(2746)] ? typeof D == j(544) && Object[j(750)](D).length > 0 || D === !1 : x[j(1011)].schemaHasRules(D, x.RULES[j(403)]); + var s = " ", n = x.level, i = x[e(1356)], c = x.schema[t], u = x[e(442)] + x[e(910)][e(1295)](t), d = x[e(1056)] + "/" + t, l = !x.opts[e(1842)], f = e(2887) + (i || ""), b = "valid" + n, h = "errs__" + n, m = x[e(910)][e(1196)](x), v = ""; + m.level++; + var k = e(295) + m[e(2454)], E = c[e(1889)](function(j) { + const O = e; + return x[O(2167)].strictKeywords ? typeof j == O(2844) && Object[O(1806)](j)[O(1332)] > 0 || j === !1 : x[O(910)][O(2124)](j, x.RULES[O(1288)]); }); - if (I) { - var A = m[e(2610)]; - s += e(2007) + h + e(1962) + b + e(2632); - var T = x[e(1187)]; - x.compositeRule = m[e(1187)] = !0; - var R = c; - if (R) - for (var P, N = -1, _ = R.length - 1; N < _; ) - P = R[N += 1], m[e(2555)] = P, m[e(2443)] = u + "[" + N + "]", m[e(2624)] = d + "/" + N, s += " " + x[e(2621)](m) + " ", m[e(2610)] = A, s += " " + b + e(2473) + b + e(1090) + k + e(305) + b + e(185), v += "}"; - x.compositeRule = m[e(1187)] = T, s += " " + v + e(2351) + b + e(2836), x[e(1715)] !== !1 ? (s += " { keyword: '" + e(2776) + e(2767) + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + e(2787), x[e(1835)].messages !== !1 && (s += e(1456)), x.opts[e(1219)] && (s += e(1319) + u + e(1452) + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += " {} ", s += e(1899), !x.compositeRule && f && (x[e(1973)] ? s += e(479) : s += e(2162)), s += e(2679) + h + "; if (vErrors !== null) { if (" + h + e(1332) + h + e(423), x[e(1835)][e(226)] && (s += e(1334)); - } else f && (s += " if (true) { "); + if (E) { + var q = m[e(2456)]; + s += " var " + h + e(587) + b + e(2193); + var T = x[e(2807)]; + x[e(2807)] = m[e(2807)] = !0; + var C = c; + if (C) + for (var P, F = -1, D = C[e(1332)] - 1; F < D; ) + P = C[F += 1], m[e(224)] = P, m[e(442)] = u + "[" + F + "]", m[e(1056)] = d + "/" + F, s += " " + x[e(1348)](m) + " ", m.baseId = q, s += " " + b + e(2821) + b + e(2320) + k + e(2715) + b + ") { ", v += "}"; + x.compositeRule = m.compositeRule = T, s += " " + v + e(2825) + b + e(2763), x[e(1560)] !== !1 ? (s += " { keyword: '" + e(1723) + e(1016) + x[e(2247)] + " , schemaPath: " + x[e(910)][e(1250)](d) + e(2673), x[e(2167)][e(389)] !== !1 && (s += e(950)), x[e(2167)][e(2200)] && (s += e(624) + u + e(2799) + x.schemaPath + e(1798) + f + " "), s += " } ") : s += " {} ", s += e(1109), !x[e(2807)] && l && (x[e(418)] ? s += e(1726) : s += e(900)), s += e(614) + h + e(734) + h + e(888) + h + "; else vErrors = null; } ", x[e(2167)][e(1842)] && (s += e(1134)); + } else l && (s += " if (true) { "); return s; }), dt; } -var ft, vr; -function dc() { - return vr || (vr = 1, ft = function(x, t, r) { +var lt, vr; +function h2() { + return vr || (vr = 1, lt = function(x, t, r) { const e = K; - var s = " ", n = x[e(2555)][t], i = x[e(2624)] + "/" + t; - x[e(1835)][e(226)]; - var c = x.util[e(1901)](n); - return x[e(1835)][e(1506)] === !0 ? s += e(1461) + c + ");" : typeof x[e(1835)][e(1506)] == e(1622) && (s += " self._opts.$comment(" + c + ", " + x[e(1011)][e(1901)](i) + ", validate.root.schema);"), s; - }), ft; -} -var lt, wr; -function fc() { - return wr || (wr = 1, lt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1552)], i = x.dataLevel, c = x.schema[t], u = x.schemaPath + x.util[e(981)](t), d = x.errSchemaPath + "/" + t, f = !x.opts.allErrors, l = e(909) + (i || ""), b = e(614) + n, h = x[e(1835)][e(399)] && c && c[e(399)]; - h && (s += e(270) + n + e(2473) + x[e(1011)].getData(c[e(399)], i, x.dataPathArr) + "; "), !h && (s += " var schema" + n + " = validate.schema" + u + ";"), s += e(1186) + b + e(2219) + l + e(2183) + n + "); if (!" + b + e(975); - var m = m || []; - m[e(452)](s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + "const" + e(2767) + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + " , params: { allowedValue: schema" + n + e(1334), x[e(1835)].messages !== !1 && (s += e(1733)), x[e(1835)][e(1219)] && (s += e(1319) + u + e(1452) + x[e(2443)] + " , data: " + l + " "), s += e(1334)) : s += e(1230); - var v = s; - return s = m.pop(), !x[e(1187)] && f ? x.async ? s += e(1086) + v + "]); " : s += e(651) + v + e(2753) : s += e(2467) + v + e(1899), s += " }", f && (s += e(1237)), s; + var s = " ", n = x.schema[t], i = x[e(1056)] + "/" + t; + x.opts[e(1842)]; + var c = x[e(910)][e(1250)](n); + return x[e(2167)][e(1514)] === !0 ? s += " console.log(" + c + ");" : typeof x[e(2167)][e(1514)] == e(1235) && (s += e(928) + c + ", " + x[e(910)][e(1250)](i) + e(1524)), s; }), lt; } +var ft, wr; +function p2() { + return wr || (wr = 1, ft = function(x, t, r) { + const e = K; + var s = " ", n = x[e(2454)], i = x.dataLevel, c = x[e(224)][t], u = x[e(442)] + x[e(910)].getProperty(t), d = x[e(1056)] + "/" + t, l = !x[e(2167)].allErrors, f = "data" + (i || ""), b = e(295) + n, h = x[e(2167)][e(218)] && c && c[e(218)]; + h && (s += e(992) + n + e(2821) + x.util[e(1207)](c[e(218)], i, x[e(2392)]) + "; "), !h && (s += e(992) + n + e(2113) + u + ";"), s += e(2337) + b + e(1836) + f + e(1555) + n + e(2374) + b + e(1457); + var m = m || []; + m[e(902)](s), s = "", x[e(1560)] !== !1 ? (s += " { keyword: 'const" + e(1016) + x[e(2247)] + e(192) + x[e(910)][e(1250)](d) + e(464) + n + e(1134), x.opts[e(389)] !== !1 && (s += e(2826)), x[e(2167)][e(2200)] && (s += e(624) + u + " , parentSchema: validate.schema" + x[e(442)] + " , data: " + f + " "), s += " } ") : s += e(1136); + var v = s; + return s = m[e(469)](), !x[e(2807)] && l ? x[e(418)] ? s += " throw new ValidationError([" + v + e(1278) : s += e(553) + v + e(2357) : s += e(2804) + v + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += " }", l && (s += " else { "), s; + }), ft; +} var ht, Sr; -function lc() { +function m2() { return Sr || (Sr = 1, ht = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x[e(2547)], c = x[e(2555)][t], u = x[e(2443)] + x[e(1011)].getProperty(t), d = x[e(2624)] + "/" + t, f = !x.opts[e(226)], l = e(909) + (i || ""), b = e(614) + n, h = e(2451) + n, m = x[e(1011)][e(1965)](x), v = ""; - m.level++; - var k = e(614) + m[e(1552)], I = "i" + n, A = m[e(2547)] = x[e(2547)] + 1, T = e(909) + A, R = x[e(2610)], P = x[e(1835)][e(2746)] ? typeof c == e(544) && Object[e(750)](c).length > 0 || c === !1 : x[e(1011)].schemaHasRules(c, x[e(807)][e(403)]); - if (s += e(1186) + h + e(2023) + b + ";", P) { - var N = x.compositeRule; - x[e(1187)] = m[e(1187)] = !0, m[e(2555)] = c, m[e(2443)] = u, m[e(2624)] = d, s += e(2007) + k + e(713) + I + e(1312) + I + e(840) + l + e(1723) + I + e(883), m[e(2886)] = x.util[e(239)](x[e(2886)], I, x[e(1835)][e(1467)], !0); - var _ = l + "[" + I + "]"; - m[e(1885)][A] = I; - var D = x.validate(m); - m[e(2610)] = R, x.util.varOccurences(D, T) < 2 ? s += " " + x.util[e(1026)](D, T, _) + " " : s += e(2007) + T + e(2473) + _ + "; " + D + " ", s += e(851) + k + e(2063), x.compositeRule = m[e(1187)] = N, s += " " + v + e(2351) + k + e(1126); - } else s += e(851) + l + ".length == 0) {"; - var j = j || []; - j[e(452)](s), s = "", x[e(1715)] !== !1 ? (s += " { keyword: '" + e(2440) + e(2767) + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + e(2787), x[e(1835)][e(1793)] !== !1 && (s += e(2290)), x[e(1835)][e(1219)] && (s += " , schema: validate.schema" + u + e(1452) + x.schemaPath + e(1227) + l + " "), s += e(1334)) : s += e(1230); - var F = s; - return s = j[e(2231)](), !x.compositeRule && f ? x.async ? s += e(1086) + F + e(956) : s += e(651) + F + e(2753) : s += e(2467) + F + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += e(1858), P && (s += e(582) + h + "; if (vErrors !== null) { if (" + h + e(1332) + h + e(423)), x[e(1835)].allErrors && (s += e(1334)), s; + var s = " ", n = x.level, i = x[e(1356)], c = x[e(224)][t], u = x[e(442)] + x[e(910)].getProperty(t), d = x.errSchemaPath + "/" + t, l = !x.opts.allErrors, f = e(2887) + (i || ""), b = e(295) + n, h = e(1721) + n, m = x[e(910)][e(1196)](x), v = ""; + m[e(2454)]++; + var k = e(295) + m[e(2454)], E = "i" + n, q = m[e(1356)] = x[e(1356)] + 1, T = e(2887) + q, C = x[e(2456)], P = x[e(2167)].strictKeywords ? typeof c == e(2844) && Object[e(1806)](c)[e(1332)] > 0 || c === !1 : x[e(910)][e(2124)](c, x.RULES[e(1288)]); + if (s += e(2337) + h + e(2872) + b + ";", P) { + var F = x.compositeRule; + x.compositeRule = m.compositeRule = !0, m[e(224)] = c, m[e(442)] = u, m.errSchemaPath = d, s += e(551) + k + e(1556) + E + " = 0; " + E + " < " + f + e(1859) + E + e(899), m[e(2247)] = x[e(910)][e(1519)](x.errorPath, E, x[e(2167)].jsonPointers, !0); + var D = f + "[" + E + "]"; + m.dataPathArr[q] = E; + var j = x[e(1348)](m); + m[e(2456)] = C, x[e(910)].varOccurences(j, T) < 2 ? s += " " + x.util[e(2770)](j, T, D) + " " : s += e(551) + T + e(2821) + D + "; " + j + " ", s += e(537) + k + e(2426), x.compositeRule = m[e(2807)] = F, s += " " + v + e(2825) + k + e(1010); + } else s += e(537) + f + ".length == 0) {"; + var O = O || []; + O.push(s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + e(2476) + e(1016) + x[e(2247)] + e(192) + x[e(910)][e(1250)](d) + e(2673), x.opts[e(389)] !== !1 && (s += e(2615)), x[e(2167)][e(2200)] && (s += e(624) + u + e(2799) + x[e(442)] + " , data: " + f + " "), s += e(1134)) : s += e(1136); + var N = s; + return s = O[e(469)](), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + N + e(1278) : s += e(553) + N + e(2357) : s += " var err = " + N + e(1109), s += e(2643), P && (s += e(403) + h + "; if (vErrors !== null) { if (" + h + e(888) + h + e(1585)), x[e(2167)].allErrors && (s += " } "), s; }), ht; } var pt, kr; -function hc() { +function b2() { return kr || (kr = 1, pt = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x[e(2547)], c = x[e(2555)][t], u = x[e(2443)] + x[e(1011)][e(981)](t), d = x.errSchemaPath + "/" + t, f = !x[e(1835)][e(226)], l = e(909) + (i || ""), b = e(2451) + n, h = x.util[e(1965)](x), m = ""; - h[e(1552)]++; - var v = e(614) + h.level, k = {}, I = {}, A = x[e(1835)][e(860)]; - for (N in c) - if (N != "__proto__") { - var T = c[N], R = Array.isArray(T) ? I : k; - R[N] = T; + var s = " ", n = x[e(2454)], i = x[e(1356)], c = x[e(224)][t], u = x[e(442)] + x.util[e(1295)](t), d = x.errSchemaPath + "/" + t, l = !x[e(2167)][e(1842)], f = e(2887) + (i || ""), b = e(1721) + n, h = x[e(910)][e(1196)](x), m = ""; + h[e(2454)]++; + var v = e(295) + h[e(2454)], k = {}, E = {}, q = x[e(2167)][e(1789)]; + for (F in c) + if (F != e(2527)) { + var T = c[F], C = Array[e(977)](T) ? E : k; + C[F] = T; } - s += e(1186) + b + e(2163); - var P = x[e(2886)]; - s += e(2730) + n + ";"; - for (var N in I) - if (R = I[N], R[e(692)]) { - if (s += e(1261) + l + x[e(1011)].getProperty(N) + e(1905), A && (s += e(1401) + l + e(476) + x[e(1011)][e(1848)](N) + e(1344)), f) { - s += e(2513); - var _ = R; - if (_) - for (var D, j = -1, F = _[e(692)] - 1; j < F; ) { - D = _[j += 1], j && (s += e(1090)); - var C = x[e(1011)][e(981)](D), H = l + C; - s += " ( ( " + H + e(2726), A && (s += e(2470) + l + ", '" + x[e(1011)][e(1848)](D) + e(1344)), s += ") && (missing" + n + e(2473) + x[e(1011)].toQuotedString(x.opts[e(1467)] ? D : C) + e(527); + s += e(2337) + b + e(1006); + var P = x[e(2247)]; + s += "var missing" + n + ";"; + for (var F in E) + if (C = E[F], C[e(1332)]) { + if (s += " if ( " + f + x[e(910)][e(1295)](F) + e(431), q && (s += e(779) + f + ", '" + x[e(910)][e(2805)](F) + e(2148)), l) { + s += e(289); + var D = C; + if (D) + for (var j, O = -1, N = D.length - 1; O < N; ) { + j = D[O += 1], O && (s += " || "); + var R = x[e(910)][e(1295)](j), L = f + R; + s += e(2790) + L + e(675), q && (s += e(814) + f + e(635) + x[e(910)][e(2805)](j) + e(2148)), s += e(1396) + n + e(2821) + x[e(910)].toQuotedString(x[e(2167)].jsonPointers ? j : R) + ") ) "; } - s += e(1705); - var U = e(254) + n, z = e(751) + U + e(1209); - x[e(1835)][e(2739)] && (x[e(2886)] = x[e(1835)][e(1467)] ? x.util.getPathExpr(P, U, !0) : P + " + " + U); + s += e(2561); + var $ = e(1052) + n, z = e(825) + $ + e(1138); + x[e(2167)][e(2803)] && (x[e(2247)] = x[e(2167)][e(839)] ? x[e(910)][e(1519)](P, $, !0) : P + e(2721) + $); var G = G || []; - G[e(452)](s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + e(1356) + e(2767) + x[e(2886)] + e(1347) + x[e(1011)].toQuotedString(d) + e(2649) + x[e(1011)][e(1848)](N) + e(718) + z + e(1932) + R[e(692)] + ", deps: '" + x.util[e(1848)](R[e(692)] == 1 ? R[0] : R[e(2137)](", ")) + e(2862), x[e(1835)].messages !== !1 && (s += " , message: 'should have ", R[e(692)] == 1 ? s += e(2460) + x.util[e(1848)](R[0]) : s += e(291) + x.util[e(1848)](R.join(", ")), s += e(2101) + x[e(1011)].escapeQuotes(N) + e(274)), x[e(1835)][e(1219)] && (s += e(1319) + u + e(1452) + x[e(2443)] + " , data: " + l + " "), s += " } ") : s += " {} "; - var i0 = s; - s = G[e(2231)](), !x[e(1187)] && f ? x[e(1973)] ? s += e(1086) + i0 + "]); " : s += e(651) + i0 + "]; return false; " : s += " var err = " + i0 + e(1899); + G[e(902)](s), s = "", x.createErrors !== !1 ? (s += e(2151) + "dependencies" + e(1016) + x[e(2247)] + " , schemaPath: " + x[e(910)].toQuotedString(d) + " , params: { property: '" + x.util[e(2805)](F) + "', missingProperty: '" + z + e(2165) + C[e(1332)] + e(2793) + x.util.escapeQuotes(C.length == 1 ? C[0] : C.join(", ")) + "' } ", x[e(2167)][e(389)] !== !1 && (s += " , message: 'should have ", C.length == 1 ? s += e(1704) + x.util[e(2805)](C[0]) : s += e(1658) + x[e(910)].escapeQuotes(C[e(2252)](", ")), s += " when property " + x[e(910)][e(2805)](F) + e(966)), x[e(2167)][e(2200)] && (s += e(624) + u + e(2799) + x.schemaPath + e(1798) + f + " "), s += e(1134)) : s += e(1136); + var ce = s; + s = G[e(469)](), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + ce + e(1278) : s += e(553) + ce + e(2357) : s += e(2804) + ce + e(1109); } else { - s += e(1248); - var u0 = R; - if (u0) - for (var D, l0 = -1, o0 = u0[e(692)] - 1; l0 < o0; ) { - D = u0[l0 += 1]; - var C = x[e(1011)].getProperty(D), z = x[e(1011)].escapeQuotes(D), H = l + C; - x.opts._errorDataPathProperty && (x[e(2886)] = x[e(1011)][e(1383)](P, D, x[e(1835)][e(1467)])), s += e(1261) + H + " === undefined ", A && (s += e(2470) + l + e(476) + x[e(1011)][e(1848)](D) + "') "), s += e(848), x[e(1715)] !== !1 ? (s += e(1588) + e(1356) + e(2767) + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + e(2649) + x[e(1011)][e(1848)](N) + e(718) + z + e(1932) + R[e(692)] + e(2831) + x.util.escapeQuotes(R[e(692)] == 1 ? R[0] : R[e(2137)](", ")) + e(2862), x[e(1835)][e(1793)] !== !1 && (s += e(2514), R[e(692)] == 1 ? s += e(2460) + x[e(1011)][e(1848)](R[0]) : s += e(291) + x.util[e(1848)](R.join(", ")), s += e(2101) + x.util[e(1848)](N) + e(274)), x.opts[e(1219)] && (s += e(1319) + u + e(1452) + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += " {} ", s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "; + s += e(2845); + var ue = C; + if (ue) + for (var j, fe = -1, oe = ue[e(1332)] - 1; fe < oe; ) { + j = ue[fe += 1]; + var R = x.util[e(1295)](j), z = x[e(910)][e(2805)](j), L = f + R; + x.opts._errorDataPathProperty && (x[e(2247)] = x[e(910)].getPath(P, j, x[e(2167)][e(839)])), s += e(173) + L + e(675), q && (s += e(814) + f + ", '" + x[e(910)][e(2805)](j) + e(2148)), s += e(2588), x.createErrors !== !1 ? (s += e(2151) + "dependencies" + e(1016) + x.errorPath + e(192) + x.util.toQuotedString(d) + e(529) + x[e(910)][e(2805)](F) + e(2530) + z + e(2165) + C[e(1332)] + e(2793) + x[e(910)][e(2805)](C[e(1332)] == 1 ? C[0] : C[e(2252)](", ")) + e(2482), x.opts[e(389)] !== !1 && (s += e(905), C[e(1332)] == 1 ? s += e(1704) + x[e(910)][e(2805)](C[0]) : s += e(1658) + x[e(910)][e(2805)](C[e(2252)](", ")), s += e(555) + x[e(910)][e(2805)](F) + e(966)), x.opts[e(2200)] && (s += e(624) + u + e(2799) + x[e(442)] + " , data: " + f + " "), s += " } ") : s += e(1136), s += e(2350); } } - s += e(1131), f && (m += "}", s += e(1237)); + s += " } ", l && (m += "}", s += e(2138)); } x.errorPath = P; - var f0 = h[e(2610)]; - for (var N in k) { - var T = k[N]; - (x.opts.strictKeywords ? typeof T == e(544) && Object[e(750)](T)[e(692)] > 0 || T === !1 : x[e(1011)][e(1392)](T, x.RULES.all)) && (s += " " + v + e(2640) + l + x[e(1011)][e(981)](N) + " !== undefined ", A && (s += e(1401) + l + e(476) + x[e(1011)].escapeQuotes(N) + e(1344)), s += e(185), h.schema = T, h.schemaPath = u + x.util[e(981)](N), h[e(2624)] = d + "/" + x[e(1011)][e(2358)](N), s += " " + x[e(2621)](h) + " ", h[e(2610)] = f0, s += e(436), f && (s += " if (" + v + e(185), m += "}")); + var le = h[e(2456)]; + for (var F in k) { + var T = k[F]; + (x[e(2167)][e(2347)] ? typeof T == "object" && Object.keys(T)[e(1332)] > 0 || T === !1 : x.util[e(2124)](T, x.RULES[e(1288)])) && (s += " " + v + e(2076) + f + x[e(910)].getProperty(F) + e(431), q && (s += e(779) + f + ", '" + x[e(910)][e(2805)](F) + e(2148)), s += e(1432), h.schema = T, h[e(442)] = u + x[e(910)].getProperty(F), h.errSchemaPath = d + "/" + x[e(910)][e(2324)](F), s += " " + x[e(1348)](h) + " ", h[e(2456)] = le, s += " } ", l && (s += e(537) + v + e(1432), m += "}")); } - return f && (s += e(2511) + m + e(851) + b + e(795)), s; + return l && (s += e(2864) + m + e(537) + b + e(1023)), s; }), pt; } var mt, Pr; -function pc() { +function g2() { return Pr || (Pr = 1, mt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x[e(2547)], c = x[e(2555)][t], u = x[e(2443)] + x[e(1011)][e(981)](t), d = x[e(2624)] + "/" + t, f = !x[e(1835)].allErrors, l = e(909) + (i || ""), b = e(614) + n, h = x[e(1835)].$data && c && c.$data; - h && (s += e(270) + n + e(2473) + x[e(1011)][e(2559)](c[e(399)], i, x[e(1885)]) + "; "); - var m = "i" + n, v = e(2555) + n; - !h && (s += e(2007) + v + e(978) + u + ";"), s += "var " + b + ";", h && (s += " if (schema" + n + e(2128) + b + e(1160) + n + e(2611) + b + e(2434)), s += "" + b + e(991) + m + "=0; " + m + "<" + v + e(1723) + m + "++) if (equal(" + l + ", " + v + "[" + m + e(301) + b + e(2534), h && (s += e(1077)), s += e(2351) + b + ") { "; + var s = " ", n = x[e(2454)], i = x.dataLevel, c = x.schema[t], u = x[e(442)] + x.util[e(1295)](t), d = x[e(1056)] + "/" + t, l = !x[e(2167)][e(1842)], f = e(2887) + (i || ""), b = "valid" + n, h = x[e(2167)][e(218)] && c && c[e(218)]; + h && (s += e(992) + n + e(2821) + x.util[e(1207)](c.$data, i, x.dataPathArr) + "; "); + var m = "i" + n, v = e(224) + n; + !h && (s += e(551) + v + " = validate.schema" + u + ";"), s += e(2337) + b + ";", h && (s += e(2047) + n + e(481) + b + e(1257) + n + e(1276) + b + e(2009)), s += "" + b + e(2191) + m + e(1169) + m + "<" + v + e(1859) + m + e(2081) + f + ", " + v + "[" + m + e(672) + b + e(2474), h && (s += e(2866)), s += e(2825) + b + ") { "; var k = k || []; - k[e(452)](s), s = "", x.createErrors !== !1 ? (s += e(1588) + e(1419) + e(2767) + x[e(2886)] + e(1347) + x.util[e(1901)](d) + e(2537) + n + " } ", x.opts[e(1793)] !== !1 && (s += e(1579)), x.opts.verbose && (s += " , schema: validate.schema" + u + e(1452) + x[e(2443)] + e(1227) + l + " "), s += " } ") : s += e(1230); - var I = s; - return s = k[e(2231)](), !x.compositeRule && f ? x[e(1973)] ? s += " throw new ValidationError([" + I + e(956) : s += " validate.errors = [" + I + "]; return false; " : s += e(2467) + I + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += " }", f && (s += e(1237)), s; + k[e(902)](s), s = "", x.createErrors !== !1 ? (s += e(2151) + e(2583) + e(1016) + x[e(2247)] + e(192) + x[e(910)][e(1250)](d) + e(1430) + n + e(1134), x[e(2167)][e(389)] !== !1 && (s += e(1831)), x[e(2167)][e(2200)] && (s += e(624) + u + " , parentSchema: validate.schema" + x.schemaPath + " , data: " + f + " "), s += e(1134)) : s += e(1136); + var E = s; + return s = k[e(469)](), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + E + e(1278) : s += e(553) + E + e(2357) : s += e(2804) + E + e(1109), s += " }", l && (s += e(2138)), s; }), mt; } -var bt, Ir; -function mc() { - return Ir || (Ir = 1, bt = function(x, t, r) { +var bt, Er; +function y2() { + return Er || (Er = 1, bt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x[e(2547)], c = x[e(2555)][t], u = x[e(2443)] + x[e(1011)][e(981)](t), d = x[e(2624)] + "/" + t, f = !x[e(1835)][e(226)], l = "data" + (i || ""); - if (x[e(1835)].format === !1) return f && (s += " if (true) { "), s; - var b = x[e(1835)][e(399)] && c && c.$data, h; - b ? (s += e(270) + n + e(2473) + x[e(1011)][e(2559)](c.$data, i, x[e(1885)]) + "; ", h = "schema" + n) : h = c; - var m = x[e(1835)][e(223)], v = Array.isArray(m); + var s = " ", n = x.level, i = x[e(1356)], c = x[e(224)][t], u = x[e(442)] + x[e(910)][e(1295)](t), d = x[e(1056)] + "/" + t, l = !x[e(2167)][e(1842)], f = e(2887) + (i || ""); + if (x[e(2167)][e(2039)] === !1) return l && (s += e(495)), s; + var b = x[e(2167)][e(218)] && c && c.$data, h; + b ? (s += e(992) + n + " = " + x[e(910)][e(1207)](c[e(218)], i, x[e(2392)]) + "; ", h = e(224) + n) : h = c; + var m = x[e(2167)][e(1030)], v = Array[e(977)](m); if (b) { - var k = e(2197) + n, I = e(914) + n, A = "formatType" + n; - s += " var " + k + e(1202) + h + "]; var " + I + e(2071) + k + e(1737) + k + e(528) + k + ".validate; var " + A + e(2473) + I + e(927) + k + ".type || 'string'; if (" + I + e(185), x[e(1973)] && (s += e(1236) + n + e(2473) + k + ".async; "), s += " " + k + e(2473) + k + ".validate; } if ( ", b && (s += " (" + h + " !== undefined && typeof " + h + e(2745)), s += " (", m != e(2524) && (s += " (" + h + " && !" + k + " ", v && (s += e(1321) + h + e(2794)), s += e(1368)), s += " (" + k + e(927) + A + e(2650) + r + e(671) + k + e(302), x[e(1973)] ? s += e(2554) + n + e(1648) + k + "(" + l + ") : " + k + "(" + l + e(2611) : s += " " + k + "(" + l + ") ", s += e(615) + k + e(1601) + l + "))))) {"; + var k = "format" + n, E = e(2472) + n, q = e(1419) + n; + s += " var " + k + e(2115) + h + e(1971) + E + " = typeof " + k + e(970) + k + e(868) + k + e(186) + q + e(2821) + E + e(2446) + k + e(1335) + E + e(1432), x[e(418)] && (s += e(1426) + n + e(2821) + k + e(1803)), s += " " + k + e(2821) + k + ".validate; } if ( ", b && (s += " (" + h + e(232) + h + e(2231)), s += " (", m != e(1924) && (s += " (" + h + e(2206) + k + " ", v && (s += e(1366) + h + e(2099)), s += e(1709)), s += " (" + k + e(2446) + q + e(2315) + r + "' && !(typeof " + k + e(426), x[e(418)] ? s += e(1305) + n + e(1533) + k + "(" + f + e(1920) + k + "(" + f + e(1276) : s += " " + k + "(" + f + ") ", s += e(2242) + k + ".test(" + f + "))))) {"; } else { - var k = x[e(823)][c]; + var k = x.formats[c]; if (!k) { - if (m == e(2524)) return x.logger[e(343)]('unknown format "' + c + '" ignored in schema at path "' + x[e(2624)] + '"'), f && (s += e(495)), s; - if (v && m.indexOf(c) >= 0) return f && (s += " if (true) { "), s; - throw new Error(e(1231) + c + e(215) + x[e(2624)] + '"'); + if (m == e(1924)) return x[e(665)][e(196)](e(2644) + c + '" ignored in schema at path "' + x.errSchemaPath + '"'), l && (s += e(495)), s; + if (v && m[e(1104)](c) >= 0) return l && (s += " if (true) { "), s; + throw new Error(e(2644) + c + e(2267) + x[e(1056)] + '"'); } - var I = typeof k == e(544) && !(k instanceof RegExp) && k.validate, A = I && k[e(612)] || "string"; - if (I) { - var T = k[e(1973)] === !0; - k = k[e(2621)]; + var E = typeof k == e(2844) && !(k instanceof RegExp) && k[e(1348)], q = E && k[e(190)] || e(1653); + if (E) { + var T = k[e(418)] === !0; + k = k[e(1348)]; } - if (A != r) return f && (s += " if (true) { "), s; + if (q != r) return l && (s += " if (true) { "), s; if (T) { - if (!x[e(1973)]) throw new Error(e(1015)); - var R = e(823) + x[e(1011)][e(981)](c) + e(2779); - s += e(1019) + R + "(" + l + "))) { "; + if (!x[e(418)]) throw new Error(e(1992)); + var C = e(2726) + x[e(910)][e(1295)](c) + e(262); + s += e(2765) + C + "(" + f + e(897); } else { - s += e(1377); - var R = e(823) + x[e(1011)][e(981)](c); - I && (R += e(2779)), typeof k == e(1622) ? s += " " + R + "(" + l + ") " : s += " " + R + e(1601) + l + ") ", s += ") { "; + s += e(2713); + var C = e(2726) + x[e(910)][e(1295)](c); + E && (C += ".validate"), typeof k == "function" ? s += " " + C + "(" + f + ") " : s += " " + C + e(569) + f + ") ", s += e(1432); } } var P = P || []; - P.push(s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + e(2197) + "' , dataPath: (dataPath || '') + " + x[e(2886)] + e(1347) + x.util.toQuotedString(d) + e(672), b ? s += "" + h : s += "" + x[e(1011)][e(1901)](c), s += e(594), x.opts[e(1793)] !== !1 && (s += e(1345), b ? s += e(751) + h + " + '" : s += "" + x[e(1011)][e(1848)](c), s += `"' `), x.opts[e(1219)] && (s += e(875), b ? s += "validate.schema" + u : s += "" + x.util[e(1901)](c), s += " , parentSchema: validate.schema" + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += " {} "; - var N = s; - return s = P.pop(), !x[e(1187)] && f ? x[e(1973)] ? s += e(1086) + N + e(956) : s += e(651) + N + "]; return false; " : s += e(2467) + N + e(1899), s += e(1334), f && (s += e(1237)), s; + P[e(902)](s), s = "", x.createErrors !== !1 ? (s += e(2151) + e(2039) + e(1016) + x[e(2247)] + e(192) + x[e(910)][e(1250)](d) + " , params: { format: ", b ? s += "" + h : s += "" + x[e(910)].toQuotedString(c), s += " } ", x.opts[e(389)] !== !1 && (s += ` , message: 'should match format "`, b ? s += e(825) + h + e(1138) : s += "" + x[e(910)][e(2805)](c), s += e(2027)), x[e(2167)][e(2200)] && (s += e(1800), b ? s += e(2197) + u : s += "" + x[e(910)][e(1250)](c), s += e(2859) + x[e(442)] + e(1798) + f + " "), s += e(1134)) : s += e(1136); + var F = s; + return s = P[e(469)](), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + F + e(1278) : s += " validate.errors = [" + F + e(2357) : s += " var err = " + F + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += " } ", l && (s += e(2138)), s; }), bt; } -var gt, Er; -function bc() { - return Er || (Er = 1, gt = function(x, t, r) { +var gt, Ir; +function K(o, x) { + return o = o - 157, qx()[o]; +} +function v2() { + return Ir || (Ir = 1, gt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x[e(2547)], c = x[e(2555)][t], u = x[e(2443)] + x[e(1011)][e(981)](t), d = x[e(2624)] + "/" + t, f = !x.opts[e(226)], l = e(909) + (i || ""), b = "valid" + n, h = e(2451) + n, m = x.util[e(1965)](x); - m.level++; - var v = "valid" + m[e(1552)], k = x[e(2555)][e(2403)], I = x[e(2555)][e(2510)], A = k !== void 0 && (x[e(1835)][e(2746)] ? typeof k == "object" && Object[e(750)](k)[e(692)] > 0 || k === !1 : x[e(1011)].schemaHasRules(k, x[e(807)].all)), T = I !== void 0 && (x.opts[e(2746)] ? typeof I == e(544) && Object[e(750)](I)[e(692)] > 0 || I === !1 : x[e(1011)][e(1392)](I, x[e(807)][e(403)])), R = m.baseId; - if (A || T) { + var s = " ", n = x.level, i = x.dataLevel, c = x.schema[t], u = x[e(442)] + x.util.getProperty(t), d = x.errSchemaPath + "/" + t, l = !x[e(2167)][e(1842)], f = "data" + (i || ""), b = e(295) + n, h = e(1721) + n, m = x[e(910)].copy(x); + m[e(2454)]++; + var v = e(295) + m.level, k = x.schema[e(723)], E = x[e(224)][e(2299)], q = k !== void 0 && (x[e(2167)].strictKeywords ? typeof k == e(2844) && Object[e(1806)](k)[e(1332)] > 0 || k === !1 : x[e(910)][e(2124)](k, x[e(2363)][e(1288)])), T = E !== void 0 && (x[e(2167)][e(2347)] ? typeof E == e(2844) && Object[e(1806)](E)[e(1332)] > 0 || E === !1 : x.util.schemaHasRules(E, x[e(2363)][e(1288)])), C = m[e(2456)]; + if (q || T) { var P; - m[e(1715)] = !1, m.schema = c, m[e(2443)] = u, m[e(2624)] = d, s += e(2007) + h + e(1962) + b + e(1565); - var N = x[e(1187)]; - x[e(1187)] = m[e(1187)] = !0, s += " " + x.validate(m) + " ", m.baseId = R, m[e(1715)] = !0, s += e(582) + h + "; if (vErrors !== null) { if (" + h + e(1332) + h + e(2155), x.compositeRule = m[e(1187)] = N, A ? (s += " if (" + v + e(1657), m.schema = x[e(2555)][e(2403)], m[e(2443)] = x[e(2443)] + e(769), m.errSchemaPath = x[e(2624)] + e(2728), s += " " + x.validate(m) + " ", m[e(2610)] = R, s += " " + b + e(2473) + v + "; ", A && T ? (P = e(2830) + n, s += e(2007) + P + e(1402)) : P = e(177), s += e(1334), T && (s += " else { ")) : s += e(2351) + v + e(185), T && (m[e(2555)] = x[e(2555)][e(2510)], m.schemaPath = x[e(2443)] + e(1052), m.errSchemaPath = x[e(2624)] + e(2110), s += " " + x.validate(m) + " ", m[e(2610)] = R, s += " " + b + e(2473) + v + "; ", A && T ? (P = e(2830) + n, s += e(2007) + P + " = 'else'; ") : P = e(402), s += e(1334)), s += e(2351) + b + e(2836), x[e(1715)] !== !1 ? (s += e(1588) + "if" + e(2767) + x.errorPath + " , schemaPath: " + x[e(1011)][e(1901)](d) + e(887) + P + e(1334), x[e(1835)][e(1793)] !== !1 && (s += e(1698) + P + e(1968)), x[e(1835)].verbose && (s += e(1319) + u + " , parentSchema: validate.schema" + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += e(1230), s += e(1899), !x[e(1187)] && f && (x[e(1973)] ? s += e(479) : s += e(2162)), s += e(1131), f && (s += e(1237)); - } else f && (s += e(495)); + m[e(1560)] = !1, m.schema = c, m[e(442)] = u, m[e(1056)] = d, s += " var " + h + e(587) + b + e(2292); + var F = x[e(2807)]; + x[e(2807)] = m[e(2807)] = !0, s += " " + x.validate(m) + " ", m.baseId = C, m[e(1560)] = !0, s += e(403) + h + "; if (vErrors !== null) { if (" + h + ") vErrors.length = " + h + "; else vErrors = null; } ", x[e(2807)] = m[e(2807)] = F, q ? (s += " if (" + v + ") { ", m[e(224)] = x.schema[e(723)], m[e(442)] = x.schemaPath + e(1537), m[e(1056)] = x.errSchemaPath + "/then", s += " " + x.validate(m) + " ", m[e(2456)] = C, s += " " + b + " = " + v + "; ", q && T ? (P = e(1460) + n, s += e(551) + P + " = 'then'; ") : P = "'then'", s += " } ", T && (s += e(2138))) : s += e(2825) + v + e(1432), T && (m[e(224)] = x[e(224)][e(2299)], m[e(442)] = x[e(442)] + e(1350), m.errSchemaPath = x[e(1056)] + "/else", s += " " + x.validate(m) + " ", m[e(2456)] = C, s += " " + b + e(2821) + v + "; ", q && T ? (P = "ifClause" + n, s += e(551) + P + e(2709)) : P = e(1142), s += e(1134)), s += e(2825) + b + e(2763), x[e(1560)] !== !1 ? (s += e(2151) + "if" + e(1016) + x[e(2247)] + e(192) + x[e(910)][e(1250)](d) + e(1896) + P + e(1134), x[e(2167)].messages !== !1 && (s += e(1977) + P + ` + '" schema' `), x[e(2167)][e(2200)] && (s += " , schema: validate.schema" + u + e(2799) + x[e(442)] + e(1798) + f + " "), s += e(1134)) : s += e(1136), s += e(1109), !x[e(2807)] && l && (x[e(418)] ? s += e(1726) : s += " validate.errors = vErrors; return false; "), s += e(2840), l && (s += e(2138)); + } else l && (s += e(495)); return s; }), gt; } -var yt, Rr; -function gc() { - return Rr || (Rr = 1, yt = function(x, t, r) { +var yt, Cr; +function w2() { + return Cr || (Cr = 1, yt = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x.dataLevel, c = x[e(2555)][t], u = x[e(2443)] + x.util.getProperty(t), d = x.errSchemaPath + "/" + t, f = !x[e(1835)].allErrors, l = "data" + (i || ""), b = "valid" + n, h = "errs__" + n, m = x.util[e(1965)](x), v = ""; - m[e(1552)]++; - var k = "valid" + m[e(1552)], I = "i" + n, A = m[e(2547)] = x[e(2547)] + 1, T = e(909) + A, R = x.baseId; - if (s += e(1186) + h + e(2023) + b + ";", Array[e(1783)](c)) { - var P = x[e(2555)].additionalItems; + var s = " ", n = x.level, i = x[e(1356)], c = x[e(224)][t], u = x.schemaPath + x[e(910)].getProperty(t), d = x.errSchemaPath + "/" + t, l = !x.opts.allErrors, f = e(2887) + (i || ""), b = "valid" + n, h = e(1721) + n, m = x[e(910)][e(1196)](x), v = ""; + m.level++; + var k = "valid" + m[e(2454)], E = "i" + n, q = m[e(1356)] = x[e(1356)] + 1, T = e(2887) + q, C = x[e(2456)]; + if (s += e(2337) + h + " = errors;var " + b + ";", Array[e(977)](c)) { + var P = x[e(224)][e(1283)]; if (P === !1) { - s += " " + b + e(2473) + l + e(1931) + c[e(692)] + "; "; - var N = d; - d = x[e(2624)] + e(360), s += e(1779) + b + e(975); - var _ = _ || []; - _.push(s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + e(999) + e(2767) + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + " , params: { limit: " + c[e(692)] + e(1334), x[e(1835)][e(1793)] !== !1 && (s += " , message: 'should NOT have more than " + c.length + e(861)), x.opts[e(1219)] && (s += e(1355) + x[e(2443)] + e(1227) + l + " "), s += " } ") : s += " {} "; - var D = s; - s = _[e(2231)](), !x[e(1187)] && f ? x.async ? s += " throw new ValidationError([" + D + e(956) : s += " validate.errors = [" + D + e(2753) : s += e(2467) + D + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += " } ", d = N, f && (v += "}", s += " else { "); + s += " " + b + " = " + f + e(428) + c[e(1332)] + "; "; + var F = d; + d = x[e(1056)] + e(1059), s += " if (!" + b + ") { "; + var D = D || []; + D.push(s), s = "", x.createErrors !== !1 ? (s += e(2151) + e(1283) + e(1016) + x[e(2247)] + e(192) + x[e(910)].toQuotedString(d) + e(1970) + c[e(1332)] + e(1134), x.opts[e(389)] !== !1 && (s += e(2358) + c[e(1332)] + e(1773)), x[e(2167)].verbose && (s += e(1130) + x[e(442)] + e(1798) + f + " "), s += e(1134)) : s += " {} "; + var j = s; + s = D[e(469)](), !x[e(2807)] && l ? x[e(418)] ? s += " throw new ValidationError([" + j + e(1278) : s += e(553) + j + e(2357) : s += " var err = " + j + e(1109), s += e(1134), d = F, l && (v += "}", s += e(2138)); } - var j = c; - if (j) { - for (var F, C = -1, H = j[e(692)] - 1; C < H; ) - if (F = j[C += 1], x[e(1835)].strictKeywords ? typeof F == e(544) && Object[e(750)](F)[e(692)] > 0 || F === !1 : x[e(1011)][e(1392)](F, x[e(807)].all)) { - s += " " + k + " = true; if (" + l + ".length > " + C + ") { "; - var U = l + "[" + C + "]"; - m[e(2555)] = F, m[e(2443)] = u + "[" + C + "]", m[e(2624)] = d + "/" + C, m[e(2886)] = x.util[e(239)](x[e(2886)], C, x[e(1835)][e(1467)], !0), m[e(1885)][A] = C; - var z = x[e(2621)](m); - m[e(2610)] = R, x[e(1011)].varOccurences(z, T) < 2 ? s += " " + x[e(1011)][e(1026)](z, T, U) + " " : s += e(2007) + T + e(2473) + U + "; " + z + " ", s += e(436), f && (s += e(851) + k + e(185), v += "}"); + var O = c; + if (O) { + for (var N, R = -1, L = O[e(1332)] - 1; R < L; ) + if (N = O[R += 1], x[e(2167)][e(2347)] ? typeof N == e(2844) && Object[e(1806)](N)[e(1332)] > 0 || N === !1 : x[e(910)][e(2124)](N, x[e(2363)][e(1288)])) { + s += " " + k + e(2747) + f + e(2757) + R + ") { "; + var $ = f + "[" + R + "]"; + m.schema = N, m[e(442)] = u + "[" + R + "]", m[e(1056)] = d + "/" + R, m[e(2247)] = x[e(910)][e(1519)](x[e(2247)], R, x.opts[e(839)], !0), m[e(2392)][q] = R; + var z = x[e(1348)](m); + m[e(2456)] = C, x[e(910)][e(2087)](z, T) < 2 ? s += " " + x[e(910)][e(2770)](z, T, $) + " " : s += e(551) + T + e(2821) + $ + "; " + z + " ", s += " } ", l && (s += e(537) + k + ") { ", v += "}"); } } - if (typeof P == e(544) && (x[e(1835)].strictKeywords ? typeof P == e(544) && Object[e(750)](P)[e(692)] > 0 || P === !1 : x[e(1011)].schemaHasRules(P, x.RULES[e(403)]))) { - m[e(2555)] = P, m.schemaPath = x[e(2443)] + e(1056), m[e(2624)] = x[e(2624)] + e(360), s += " " + k + e(732) + l + e(738) + c.length + e(1756) + I + e(2473) + c[e(692)] + "; " + I + " < " + l + e(1723) + I + e(883), m[e(2886)] = x[e(1011)][e(239)](x[e(2886)], I, x[e(1835)].jsonPointers, !0); - var U = l + "[" + I + "]"; - m.dataPathArr[A] = I; - var z = x[e(2621)](m); - m[e(2610)] = R, x[e(1011)][e(1201)](z, T) < 2 ? s += " " + x[e(1011)][e(1026)](z, T, U) + " " : s += e(2007) + T + e(2473) + U + "; " + z + " ", f && (s += e(2351) + k + ") break; "), s += e(804), f && (s += e(851) + k + ") { ", v += "}"); + if (typeof P == e(2844) && (x.opts.strictKeywords ? typeof P == e(2844) && Object[e(1806)](P)[e(1332)] > 0 || P === !1 : x[e(910)][e(2124)](P, x.RULES[e(1288)]))) { + m[e(224)] = P, m[e(442)] = x.schemaPath + e(1208), m[e(1056)] = x[e(1056)] + "/additionalItems", s += " " + k + e(2747) + f + e(2757) + c[e(1332)] + e(1231) + E + e(2821) + c[e(1332)] + "; " + E + e(2641) + f + e(1859) + E + "++) { ", m[e(2247)] = x[e(910)][e(1519)](x[e(2247)], E, x[e(2167)].jsonPointers, !0); + var $ = f + "[" + E + "]"; + m[e(2392)][q] = E; + var z = x[e(1348)](m); + m[e(2456)] = C, x[e(910)].varOccurences(z, T) < 2 ? s += " " + x[e(910)][e(2770)](z, T, $) + " " : s += " var " + T + " = " + $ + "; " + z + " ", l && (s += e(2825) + k + e(1239)), s += e(987), l && (s += " if (" + k + e(1432), v += "}"); } - } else if (x.opts[e(2746)] ? typeof c == e(544) && Object[e(750)](c).length > 0 || c === !1 : x[e(1011)][e(1392)](c, x[e(807)][e(403)])) { - m[e(2555)] = c, m[e(2443)] = u, m[e(2624)] = d, s += " for (var " + I + e(2473) + 0 + "; " + I + " < " + l + e(1723) + I + e(883), m[e(2886)] = x[e(1011)].getPathExpr(x[e(2886)], I, x.opts.jsonPointers, !0); - var U = l + "[" + I + "]"; - m[e(1885)][A] = I; - var z = x[e(2621)](m); - m[e(2610)] = R, x.util[e(1201)](z, T) < 2 ? s += " " + x[e(1011)][e(1026)](z, T, U) + " " : s += e(2007) + T + " = " + U + "; " + z + " ", f && (s += " if (!" + k + e(1520)), s += " }"; + } else if (x[e(2167)][e(2347)] ? typeof c == e(2844) && Object[e(1806)](c).length > 0 || c === !1 : x[e(910)][e(2124)](c, x[e(2363)][e(1288)])) { + m[e(224)] = c, m[e(442)] = u, m[e(1056)] = d, s += e(1571) + E + e(2821) + 0 + "; " + E + e(2641) + f + e(1859) + E + e(899), m[e(2247)] = x[e(910)][e(1519)](x.errorPath, E, x[e(2167)].jsonPointers, !0); + var $ = f + "[" + E + "]"; + m[e(2392)][q] = E; + var z = x[e(1348)](m); + m.baseId = C, x.util.varOccurences(z, T) < 2 ? s += " " + x[e(910)][e(2770)](z, T, $) + " " : s += " var " + T + e(2821) + $ + "; " + z + " ", l && (s += e(2825) + k + e(1239)), s += " }"; } - return f && (s += " " + v + e(851) + h + " == errors) {"), s; + return l && (s += " " + v + " if (" + h + e(1023)), s; }), yt; } -var vt, Cr; +var vt, Rr; function Fr() { - return Cr || (Cr = 1, vt = function(x, t, r) { + return Rr || (Rr = 1, vt = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x.dataLevel, c = x[e(2555)][t], u = x.schemaPath + x[e(1011)][e(981)](t), d = x.errSchemaPath + "/" + t, f = !x[e(1835)].allErrors, R, l = e(909) + (i || ""), b = x.opts.$data && c && c[e(399)], h; - b ? (s += e(270) + n + " = " + x[e(1011)][e(2559)](c[e(399)], i, x[e(1885)]) + "; ", h = e(2555) + n) : h = c; - var m = t == e(2536), v = m ? "exclusiveMaximum" : e(2213), k = x[e(2555)][v], I = x[e(1835)][e(399)] && k && k[e(399)], A = m ? "<" : ">", T = m ? ">" : "<", R = void 0; - if (!(b || typeof c == "number" || c === void 0)) throw new Error(t + " must be number"); - if (!(I || k === void 0 || typeof k == e(2153) || typeof k == "boolean")) throw new Error(v + " must be number or boolean"); - if (I) { - var P = x[e(1011)][e(2559)](k.$data, i, x.dataPathArr), N = e(2755) + n, _ = "exclType" + n, D = e(1980) + n, j = "op" + n, F = e(751) + j + e(1209); - s += " var schemaExcl" + n + e(2473) + P + "; ", P = e(770) + n, s += e(2007) + N + e(1922) + _ + e(2071) + P + e(663) + _ + " != 'boolean' && " + _ + e(1764) + _ + e(2152); - var R = v, C = C || []; - C[e(452)](s), s = "", x.createErrors !== !1 ? (s += " { keyword: '" + (R || "_exclusiveLimit") + e(2767) + x[e(2886)] + e(1347) + x.util.toQuotedString(d) + e(2787), x.opts[e(1793)] !== !1 && (s += e(2250) + v + e(2246)), x[e(1835)][e(1219)] && (s += e(1319) + u + e(1452) + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += e(1230); - var H = s; - s = C.pop(), !x[e(1187)] && f ? x.async ? s += e(1086) + H + "]); " : s += e(651) + H + e(2753) : s += e(2467) + H + e(1899), s += " } else if ( ", b && (s += " (" + h + " !== undefined && typeof " + h + " != 'number') || "), s += " " + _ + e(285) + N + " = " + h + " === undefined || " + P + " " + A + "= " + h + e(294) + l + " " + T + "= " + P + e(615) + l + " " + T + " " + h + e(2406) + N + " = " + P + " === true) ? " + l + " " + T + "= " + h + e(615) + l + " " + T + " " + h + e(2321) + l + e(2717) + l + e(595) + n + e(2473) + N + " ? '" + A + e(1109) + A + e(1365), c === void 0 && (R = v, d = x[e(2624)] + "/" + v, h = P, b = I); + var s = " ", n = x[e(2454)], i = x[e(1356)], c = x[e(224)][t], u = x[e(442)] + x[e(910)][e(1295)](t), d = x.errSchemaPath + "/" + t, l = !x.opts[e(1842)], C, f = "data" + (i || ""), b = x[e(2167)][e(218)] && c && c[e(218)], h; + b ? (s += e(992) + n + e(2821) + x[e(910)].getData(c[e(218)], i, x[e(2392)]) + "; ", h = "schema" + n) : h = c; + var m = t == e(248), v = e(m ? 2005 : 1608), k = x[e(224)][v], E = x[e(2167)].$data && k && k[e(218)], q = m ? "<" : ">", T = m ? ">" : "<", C = void 0; + if (!(b || typeof c == e(1206) || c === void 0)) throw new Error(t + e(936)); + if (!(E || k === void 0 || typeof k == e(1206) || typeof k == "boolean")) throw new Error(v + " must be number or boolean"); + if (E) { + var P = x[e(910)].getData(k[e(218)], i, x[e(2392)]), F = e(421) + n, D = e(954) + n, j = e(2667) + n, O = "op" + n, N = "' + " + O + e(1138); + s += " var schemaExcl" + n + e(2821) + P + "; ", P = e(2601) + n, s += e(551) + F + e(2437) + D + e(398) + P + e(1676) + D + e(1123) + D + e(1280) + D + e(1202); + var C = v, R = R || []; + R.push(s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + (C || "_exclusiveLimit") + e(1016) + x[e(2247)] + " , schemaPath: " + x[e(910)][e(1250)](d) + e(2673), x[e(2167)][e(389)] !== !1 && (s += " , message: '" + v + e(633)), x[e(2167)][e(2200)] && (s += e(624) + u + e(2799) + x[e(442)] + " , data: " + f + " "), s += e(1134)) : s += e(1136); + var L = s; + s = R[e(469)](), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + L + e(1278) : s += e(553) + L + e(2357) : s += " var err = " + L + e(1109), s += e(1746), b && (s += " (" + h + e(232) + h + e(752)), s += " " + D + e(1448) + F + e(2821) + h + e(243) + P + " " + q + "= " + h + e(1034) + f + " " + T + "= " + P + e(2242) + f + " " + T + " " + h + " ) : ( (" + F + e(2821) + P + e(1273) + f + " " + T + "= " + h + " : " + f + " " + T + " " + h + e(2780) + f + " !== " + f + e(286) + n + " = " + F + e(465) + q + e(2524) + q + e(1557), c === void 0 && (C = v, d = x[e(1056)] + "/" + v, h = P, b = E); } else { - var D = typeof k == e(2153), F = A; - if (D && b) { - var j = "'" + F + "'"; - s += e(1261), b && (s += " (" + h + e(1270) + h + e(2113)), s += e(2376) + h + e(466) + k + " " + A + "= " + h + e(1589) + l + " " + T + "= " + k + e(615) + l + " " + T + " " + h + e(2321) + l + e(2717) + l + e(185); + var j = typeof k == e(1206), N = q; + if (j && b) { + var O = "'" + N + "'"; + s += e(173), b && (s += " (" + h + " !== undefined && typeof " + h + e(752)), s += e(214) + h + e(243) + k + " " + q + "= " + h + e(1042) + f + " " + T + "= " + k + " : " + f + " " + T + " " + h + e(2780) + f + e(2755) + f + e(1432); } else { - D && c === void 0 ? (N = !0, R = v, d = x.errSchemaPath + "/" + v, h = k, T += "=") : (D && (h = Math[e(m ? 1279 : 1393)](k, c)), k === (D ? h : !0) ? (N = !0, R = v, d = x.errSchemaPath + "/" + v, T += "=") : (N = !1, F += "=")); - var j = "'" + F + "'"; - s += e(1261), b && (s += " (" + h + e(1270) + h + e(2113)), s += " " + l + " " + T + " " + h + e(1090) + l + e(2717) + l + e(185); + j && c === void 0 ? (F = !0, C = v, d = x.errSchemaPath + "/" + v, h = k, T += "=") : (j && (h = Math[e(m ? 1414 : 718)](k, c)), k === (j ? h : !0) ? (F = !0, C = v, d = x[e(1056)] + "/" + v, T += "=") : (F = !1, N += "=")); + var O = "'" + N + "'"; + s += e(173), b && (s += " (" + h + " !== undefined && typeof " + h + e(752)), s += " " + f + " " + T + " " + h + e(2320) + f + " !== " + f + e(1432); } } - R = R || t; - var C = C || []; - C.push(s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + (R || "_limit") + e(2767) + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + e(669) + j + e(2648) + h + e(1303) + N + e(1334), x[e(1835)][e(1793)] !== !1 && (s += e(1145) + F + " ", b ? s += e(751) + h : s += "" + h + "'"), x[e(1835)][e(1219)] && (s += e(875), b ? s += "validate.schema" + u : s += "" + c, s += " , parentSchema: validate.schema" + x[e(2443)] + " , data: " + l + " "), s += e(1334)) : s += " {} "; - var H = s; - return s = C.pop(), !x.compositeRule && f ? x[e(1973)] ? s += " throw new ValidationError([" + H + e(956) : s += e(651) + H + e(2753) : s += e(2467) + H + e(1899), s += e(1334), f && (s += e(1237)), s; + C = C || t; + var R = R || []; + R[e(902)](s), s = "", x[e(1560)] !== !1 ? (s += " { keyword: '" + (C || e(822)) + e(1016) + x.errorPath + " , schemaPath: " + x.util[e(1250)](d) + e(1801) + O + e(2542) + h + e(972) + F + e(1134), x[e(2167)][e(389)] !== !1 && (s += e(1191) + N + " ", b ? s += e(825) + h : s += "" + h + "'"), x[e(2167)][e(2200)] && (s += e(1800), b ? s += "validate.schema" + u : s += "" + c, s += e(2859) + x[e(442)] + e(1798) + f + " "), s += e(1134)) : s += e(1136); + var L = s; + return s = R.pop(), !x.compositeRule && l ? x[e(418)] ? s += e(1323) + L + "]); " : s += e(553) + L + e(2357) : s += " var err = " + L + e(1109), s += e(1134), l && (s += e(2138)), s; }), vt; } var wt, Nr; function Tr() { return Nr || (Nr = 1, wt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x[e(2547)], c = x[e(2555)][t], u = x[e(2443)] + x.util[e(981)](t), d = x.errSchemaPath + "/" + t, f = !x[e(1835)][e(226)], v, l = e(909) + (i || ""), b = x[e(1835)].$data && c && c[e(399)], h; - if (b ? (s += e(270) + n + e(2473) + x[e(1011)][e(2559)](c[e(399)], i, x[e(1885)]) + "; ", h = e(2555) + n) : h = c, !(b || typeof c == "number")) throw new Error(t + " must be number"); - var m = t == e(2575) ? ">" : "<"; - s += e(723), b && (s += " (" + h + e(1270) + h + e(2113)), s += " " + l + e(2186) + m + " " + h + e(185); + var s = " ", n = x[e(2454)], i = x[e(1356)], c = x[e(224)][t], u = x[e(442)] + x.util[e(1295)](t), d = x[e(1056)] + "/" + t, l = !x[e(2167)][e(1842)], v, f = e(2887) + (i || ""), b = x[e(2167)].$data && c && c[e(218)], h; + if (b ? (s += e(992) + n + e(2821) + x[e(910)][e(1207)](c[e(218)], i, x[e(2392)]) + "; ", h = "schema" + n) : h = c, !(b || typeof c == e(1206))) throw new Error(t + e(936)); + var m = t == e(2520) ? ">" : "<"; + s += e(2883), b && (s += " (" + h + " !== undefined && typeof " + h + " != 'number') || "), s += " " + f + e(2251) + m + " " + h + e(1432); var v = t, k = k || []; - k.push(s), s = "", x.createErrors !== !1 ? (s += e(1588) + (v || e(974)) + e(2767) + x[e(2886)] + " , schemaPath: " + x[e(1011)][e(1901)](d) + " , params: { limit: " + h + e(1334), x[e(1835)][e(1793)] !== !1 && (s += " , message: 'should NOT have ", t == "maxItems" ? s += e(2240) : s += e(1139), s += e(1609), b ? s += e(751) + h + e(1209) : s += "" + c, s += e(861)), x.opts[e(1219)] && (s += " , schema: ", b ? s += e(2313) + u : s += "" + c, s += " , parentSchema: validate.schema" + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += e(1230); - var I = s; - return s = k[e(2231)](), !x[e(1187)] && f ? x[e(1973)] ? s += e(1086) + I + e(956) : s += " validate.errors = [" + I + e(2753) : s += e(2467) + I + e(1899), s += "} ", f && (s += e(1237)), s; + k[e(902)](s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + (v || e(925)) + e(1016) + x[e(2247)] + e(192) + x[e(910)][e(1250)](d) + " , params: { limit: " + h + " } ", x.opts[e(389)] !== !1 && (s += e(326), t == e(2520) ? s += e(2528) : s += e(2860), s += e(2620), b ? s += e(825) + h + " + '" : s += "" + c, s += e(1773)), x[e(2167)].verbose && (s += e(1800), b ? s += e(2197) + u : s += "" + c, s += " , parentSchema: validate.schema" + x[e(442)] + " , data: " + f + " "), s += e(1134)) : s += " {} "; + var E = s; + return s = k.pop(), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + E + e(1278) : s += e(553) + E + e(2357) : s += e(2804) + E + e(1109), s += "} ", l && (s += " else { "), s; }), wt; } var St, qr; function Ar() { return qr || (qr = 1, St = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x.dataLevel, c = x[e(2555)][t], u = x[e(2443)] + x[e(1011)][e(981)](t), d = x[e(2624)] + "/" + t, f = !x[e(1835)].allErrors, v, l = "data" + (i || ""), b = x[e(1835)][e(399)] && c && c[e(399)], h; - if (b ? (s += e(270) + n + e(2473) + x[e(1011)].getData(c.$data, i, x[e(1885)]) + "; ", h = "schema" + n) : h = c, !(b || typeof c == e(2153))) throw new Error(t + e(1124)); - var m = t == e(558) ? ">" : "<"; - s += e(723), b && (s += " (" + h + e(1270) + h + e(2113)), x[e(1835)][e(1408)] === !1 ? s += " " + l + ".length " : s += e(509) + l + ") ", s += " " + m + " " + h + ") { "; + var s = " ", n = x.level, i = x[e(1356)], c = x[e(224)][t], u = x[e(442)] + x[e(910)].getProperty(t), d = x[e(1056)] + "/" + t, l = !x[e(2167)][e(1842)], v, f = e(2887) + (i || ""), b = x.opts[e(218)] && c && c[e(218)], h; + if (b ? (s += e(992) + n + " = " + x[e(910)].getData(c.$data, i, x.dataPathArr) + "; ", h = e(224) + n) : h = c, !(b || typeof c == e(1206))) throw new Error(t + " must be number"); + var m = t == e(2213) ? ">" : "<"; + s += e(2883), b && (s += " (" + h + e(232) + h + e(752)), x[e(2167)][e(2731)] === !1 ? s += " " + f + ".length " : s += e(2332) + f + ") ", s += " " + m + " " + h + e(1432); var v = t, k = k || []; - k.push(s), s = "", x[e(1715)] !== !1 ? (s += " { keyword: '" + (v || e(1212)) + "' , dataPath: (dataPath || '') + " + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + e(1288) + h + e(1334), x[e(1835)][e(1793)] !== !1 && (s += e(1045), t == e(558) ? s += e(1637) : s += e(1453), s += e(1609), b ? s += e(751) + h + e(1209) : s += "" + c, s += e(730)), x[e(1835)][e(1219)] && (s += e(875), b ? s += "validate.schema" + u : s += "" + c, s += e(922) + x.schemaPath + e(1227) + l + " "), s += e(1334)) : s += " {} "; - var I = s; - return s = k.pop(), !x[e(1187)] && f ? x[e(1973)] ? s += e(1086) + I + "]); " : s += e(651) + I + "]; return false; " : s += e(2467) + I + e(1899), s += "} ", f && (s += e(1237)), s; + k[e(902)](s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + (v || e(1604)) + "' , dataPath: (dataPath || '') + " + x[e(2247)] + e(192) + x[e(910)][e(1250)](d) + " , params: { limit: " + h + e(1134), x[e(2167)][e(389)] !== !1 && (s += e(1212), t == e(2213) ? s += e(261) : s += e(1534), s += " than ", b ? s += e(825) + h + e(1138) : s += "" + c, s += e(2702)), x[e(2167)][e(2200)] && (s += " , schema: ", b ? s += e(2197) + u : s += "" + c, s += " , parentSchema: validate.schema" + x.schemaPath + e(1798) + f + " "), s += e(1134)) : s += e(1136); + var E = s; + return s = k.pop(), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + E + e(1278) : s += e(553) + E + e(2357) : s += e(2804) + E + e(1109), s += "} ", l && (s += e(2138)), s; }), St; } -var kt, Or; -function _r() { - return Or || (Or = 1, kt = function(x, t, r) { +var kt, _r; +function Or() { + return _r || (_r = 1, kt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x.dataLevel, c = x[e(2555)][t], u = x[e(2443)] + x[e(1011)][e(981)](t), d = x[e(2624)] + "/" + t, f = !x[e(1835)][e(226)], v, l = e(909) + (i || ""), b = x.opts[e(399)] && c && c[e(399)], h; - if (b ? (s += e(270) + n + e(2473) + x[e(1011)].getData(c.$data, i, x[e(1885)]) + "; ", h = e(2555) + n) : h = c, !(b || typeof c == e(2153))) throw new Error(t + e(1124)); + var s = " ", n = x[e(2454)], i = x[e(1356)], c = x[e(224)][t], u = x[e(442)] + x[e(910)][e(1295)](t), d = x.errSchemaPath + "/" + t, l = !x[e(2167)][e(1842)], v, f = e(2887) + (i || ""), b = x[e(2167)].$data && c && c[e(218)], h; + if (b ? (s += e(992) + n + " = " + x[e(910)][e(1207)](c[e(218)], i, x[e(2392)]) + "; ", h = e(224) + n) : h = c, !(b || typeof c == e(1206))) throw new Error(t + e(936)); var m = t == "maxProperties" ? ">" : "<"; - s += e(723), b && (s += " (" + h + e(1270) + h + e(2113)), s += e(1060) + l + e(2589) + m + " " + h + e(185); + s += e(2883), b && (s += " (" + h + " !== undefined && typeof " + h + " != 'number') || "), s += " Object.keys(" + f + ").length " + m + " " + h + e(1432); var v = t, k = k || []; - k[e(452)](s), s = "", x.createErrors !== !1 ? (s += " { keyword: '" + (v || e(870)) + "' , dataPath: (dataPath || '') + " + x[e(2886)] + e(1347) + x[e(1011)].toQuotedString(d) + e(1288) + h + e(1334), x[e(1835)][e(1793)] !== !1 && (s += e(2328), t == e(197) ? s += "more" : s += e(1139), s += " than ", b ? s += e(751) + h + e(1209) : s += "" + c, s += e(293)), x[e(1835)][e(1219)] && (s += e(875), b ? s += e(2313) + u : s += "" + c, s += e(922) + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += e(1230); - var I = s; - return s = k[e(2231)](), !x[e(1187)] && f ? x[e(1973)] ? s += e(1086) + I + "]); " : s += " validate.errors = [" + I + e(2753) : s += e(2467) + I + e(1899), s += "} ", f && (s += " else { "), s; + k[e(902)](s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + (v || e(856)) + e(1016) + x[e(2247)] + e(192) + x.util[e(1250)](d) + " , params: { limit: " + h + e(1134), x[e(2167)].messages !== !1 && (s += " , message: 'should NOT have ", t == "maxProperties" ? s += e(2528) : s += e(2860), s += e(2620), b ? s += e(825) + h + e(1138) : s += "" + c, s += e(1403)), x[e(2167)][e(2200)] && (s += " , schema: ", b ? s += e(2197) + u : s += "" + c, s += e(2859) + x[e(442)] + " , data: " + f + " "), s += " } ") : s += e(1136); + var E = s; + return s = k.pop(), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + E + e(1278) : s += e(553) + E + "]; return false; " : s += " var err = " + E + e(1109), s += "} ", l && (s += " else { "), s; }), kt; } var Pt, Dr; -function yc() { +function S2() { return Dr || (Dr = 1, Pt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x[e(2547)], c = x.schema[t], u = x[e(2443)] + x[e(1011)][e(981)](t), d = x[e(2624)] + "/" + t, f = !x.opts[e(226)], l = e(909) + (i || ""), b = x[e(1835)].$data && c && c.$data, h; - if (b ? (s += e(270) + n + e(2473) + x.util[e(2559)](c[e(399)], i, x[e(1885)]) + "; ", h = "schema" + n) : h = c, !(b || typeof c == e(2153))) throw new Error(t + e(1124)); - s += e(2496) + n + ";if (", b && (s += " " + h + " !== undefined && ( typeof " + h + " != 'number' || "), s += " (division" + n + e(2473) + l + e(488) + h + ", ", x[e(1835)][e(2257)] ? s += e(2780) + n + ") - division" + n + e(2239) + x[e(1835)][e(2257)] + " " : s += " division" + n + " !== parseInt(division" + n + ") ", s += e(2010), b && (s += e(2302)), s += " ) { "; + var s = " ", n = x[e(2454)], i = x[e(1356)], c = x.schema[t], u = x[e(442)] + x[e(910)][e(1295)](t), d = x[e(1056)] + "/" + t, l = !x[e(2167)][e(1842)], f = "data" + (i || ""), b = x[e(2167)][e(218)] && c && c.$data, h; + if (b ? (s += e(992) + n + e(2821) + x[e(910)][e(1207)](c[e(218)], i, x[e(2392)]) + "; ", h = e(224) + n) : h = c, !(b || typeof c == e(1206))) throw new Error(t + e(936)); + s += "var division" + n + e(1957), b && (s += " " + h + " !== undefined && ( typeof " + h + " != 'number' || "), s += e(1115) + n + e(2821) + f + e(1928) + h + ", ", x.opts.multipleOfPrecision ? s += e(1340) + n + e(2083) + n + ") > 1e-" + x[e(2167)][e(1900)] + " " : s += e(2544) + n + e(832) + n + ") ", s += " ) ", b && (s += e(433)), s += e(1197); var m = m || []; - m.push(s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + e(888) + "' , dataPath: (dataPath || '') + " + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + e(350) + h + " } ", x.opts[e(1793)] !== !1 && (s += " , message: 'should be multiple of ", b ? s += "' + " + h : s += "" + h + "'"), x.opts[e(1219)] && (s += " , schema: ", b ? s += e(2313) + u : s += "" + c, s += e(922) + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += e(1230); + m[e(902)](s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + e(749) + e(1016) + x.errorPath + e(192) + x[e(910)][e(1250)](d) + " , params: { multipleOf: " + h + e(1134), x[e(2167)][e(389)] !== !1 && (s += e(2459), b ? s += "' + " + h : s += "" + h + "'"), x[e(2167)][e(2200)] && (s += e(1800), b ? s += e(2197) + u : s += "" + c, s += " , parentSchema: validate.schema" + x[e(442)] + e(1798) + f + " "), s += " } ") : s += e(1136); var v = s; - return s = m.pop(), !x[e(1187)] && f ? x[e(1973)] ? s += " throw new ValidationError([" + v + e(956) : s += e(651) + v + e(2753) : s += e(2467) + v + e(1899), s += "} ", f && (s += e(1237)), s; + return s = m.pop(), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + v + "]); " : s += e(553) + v + e(2357) : s += " var err = " + v + e(1109), s += "} ", l && (s += " else { "), s; }), Pt; } -var It, jr; -function vc() { - return jr || (jr = 1, It = function(x, t, r) { +var Et, jr; +function k2() { + return jr || (jr = 1, Et = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x[e(2547)], c = x.schema[t], u = x[e(2443)] + x[e(1011)].getProperty(t), d = x.errSchemaPath + "/" + t, f = !x[e(1835)][e(226)], l = e(909) + (i || ""), b = e(2451) + n, h = x[e(1011)][e(1965)](x); - h[e(1552)]++; - var m = e(614) + h.level; - if (x.opts[e(2746)] ? typeof c == e(544) && Object[e(750)](c)[e(692)] > 0 || c === !1 : x.util[e(1392)](c, x[e(807)][e(403)])) { - h[e(2555)] = c, h[e(2443)] = u, h[e(2624)] = d, s += " var " + b + e(2182); - var v = x.compositeRule; - x.compositeRule = h[e(1187)] = !0, h[e(1715)] = !1; + var s = " ", n = x[e(2454)], i = x.dataLevel, c = x[e(224)][t], u = x[e(442)] + x.util.getProperty(t), d = x.errSchemaPath + "/" + t, l = !x.opts[e(1842)], f = e(2887) + (i || ""), b = e(1721) + n, h = x.util[e(1196)](x); + h.level++; + var m = e(295) + h[e(2454)]; + if (x.opts[e(2347)] ? typeof c == e(2844) && Object[e(1806)](c)[e(1332)] > 0 || c === !1 : x.util[e(2124)](c, x[e(2363)][e(1288)])) { + h[e(224)] = c, h[e(442)] = u, h.errSchemaPath = d, s += e(551) + b + e(366); + var v = x[e(2807)]; + x[e(2807)] = h.compositeRule = !0, h[e(1560)] = !1; var k; - h.opts[e(226)] && (k = h[e(1835)].allErrors, h[e(1835)][e(226)] = !1), s += " " + x[e(2621)](h) + " ", h[e(1715)] = !0, k && (h[e(1835)][e(226)] = k), x[e(1187)] = h[e(1187)] = v, s += e(851) + m + ") { "; - var I = I || []; - I[e(452)](s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + "not' , dataPath: (dataPath || '') + " + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + e(2787), x[e(1835)].messages !== !1 && (s += e(1612)), x.opts[e(1219)] && (s += " , schema: validate.schema" + u + e(1452) + x.schemaPath + " , data: " + l + " "), s += e(1334)) : s += " {} "; - var A = s; - s = I[e(2231)](), !x[e(1187)] && f ? x.async ? s += " throw new ValidationError([" + A + e(956) : s += e(651) + A + e(2753) : s += " var err = " + A + e(1899), s += e(2679) + b + e(1557) + b + e(1332) + b + "; else vErrors = null; } ", x[e(1835)].allErrors && (s += e(1334)); - } else s += e(589), x[e(1715)] !== !1 ? (s += e(1588) + e(2705) + "' , dataPath: (dataPath || '') + " + x.errorPath + e(1347) + x[e(1011)][e(1901)](d) + e(2787), x[e(1835)][e(1793)] !== !1 && (s += e(1612)), x[e(1835)][e(1219)] && (s += e(1319) + u + e(1452) + x.schemaPath + e(1227) + l + " "), s += e(1334)) : s += e(1230), s += e(1899), f && (s += " if (false) { "); + h[e(2167)][e(1842)] && (k = h.opts[e(1842)], h[e(2167)].allErrors = !1), s += " " + x[e(1348)](h) + " ", h[e(1560)] = !0, k && (h[e(2167)][e(1842)] = k), x[e(2807)] = h[e(2807)] = v, s += " if (" + m + e(1457); + var E = E || []; + E[e(902)](s), s = "", x[e(1560)] !== !1 ? (s += " { keyword: '" + e(2158) + e(1016) + x[e(2247)] + " , schemaPath: " + x[e(910)][e(1250)](d) + e(2673), x[e(2167)][e(389)] !== !1 && (s += e(1112)), x.opts.verbose && (s += " , schema: validate.schema" + u + e(2799) + x.schemaPath + e(1798) + f + " "), s += e(1134)) : s += e(1136); + var q = s; + s = E[e(469)](), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + q + e(1278) : s += " validate.errors = [" + q + e(2357) : s += e(2804) + q + e(1109), s += e(614) + b + e(734) + b + e(888) + b + e(1585), x[e(2167)][e(1842)] && (s += e(1134)); + } else s += e(875), x[e(1560)] !== !1 ? (s += e(2151) + e(2158) + e(1016) + x[e(2247)] + e(192) + x[e(910)].toQuotedString(d) + e(2673), x[e(2167)][e(389)] !== !1 && (s += " , message: 'should NOT be valid' "), x[e(2167)][e(2200)] && (s += " , schema: validate.schema" + u + e(2799) + x[e(442)] + e(1798) + f + " "), s += e(1134)) : s += e(1136), s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", l && (s += e(2582)); return s; - }), It; -} -var Et, Mr; -function wc() { - return Mr || (Mr = 1, Et = function(x, t, r) { - const e = K; - var s = " ", n = x.level, i = x[e(2547)], c = x[e(2555)][t], u = x.schemaPath + x[e(1011)][e(981)](t), d = x[e(2624)] + "/" + t, f = !x[e(1835)][e(226)], l = e(909) + (i || ""), b = e(614) + n, h = e(2451) + n, m = x[e(1011)].copy(x), v = ""; - m[e(1552)]++; - var k = e(614) + m[e(1552)], I = m[e(2610)], A = e(2801) + n, T = e(1604) + n; - s += e(1186) + h + e(598) + A + e(1407) + b + e(1407) + T + e(1481); - var R = x[e(1187)]; - x.compositeRule = m[e(1187)] = !0; - var P = c; - if (P) - for (var N, _ = -1, D = P[e(692)] - 1; _ < D; ) - N = P[_ += 1], (x[e(1835)][e(2746)] ? typeof N == e(544) && Object[e(750)](N)[e(692)] > 0 || N === !1 : x[e(1011)][e(1392)](N, x[e(807)][e(403)])) ? (m[e(2555)] = N, m[e(2443)] = u + "[" + _ + "]", m.errSchemaPath = d + "/" + _, s += " " + x[e(2621)](m) + " ", m[e(2610)] = I) : s += e(2007) + k + e(854), _ && (s += e(851) + k + e(927) + A + e(185) + b + e(1633) + T + e(1170) + T + ", " + _ + "]; } else { ", v += "}"), s += e(851) + k + e(185) + b + " = " + A + " = true; " + T + e(2473) + _ + e(325); - return x[e(1187)] = m[e(1187)] = R, s += "" + v + "if (!" + b + e(2836), x[e(1715)] !== !1 ? (s += e(1588) + "oneOf" + e(2767) + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + e(2359) + T + " } ", x[e(1835)].messages !== !1 && (s += e(2491)), x[e(1835)][e(1219)] && (s += e(1319) + u + " , parentSchema: validate.schema" + x.schemaPath + e(1227) + l + " "), s += e(1334)) : s += e(1230), s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", !x[e(1187)] && f && (x[e(1973)] ? s += e(479) : s += " validate.errors = vErrors; return false; "), s += e(1983) + h + e(1557) + h + ") vErrors.length = " + h + e(389), x.opts[e(226)] && (s += e(1334)), s; }), Et; } -var Rt, Lr; -function Sc() { - return Lr || (Lr = 1, Rt = function(x, t, r) { +var It, Mr; +function P2() { + return Mr || (Mr = 1, It = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x[e(2547)], c = x[e(2555)][t], u = x[e(2443)] + x.util.getProperty(t), d = x.errSchemaPath + "/" + t, f = !x.opts[e(226)], l = e(909) + (i || ""), b = x[e(1835)].$data && c && c[e(399)], h; - b ? (s += " var schema" + n + " = " + x[e(1011)][e(2559)](c[e(399)], i, x.dataPathArr) + "; ", h = e(2555) + n) : h = c; - var m = b ? "(new RegExp(" + h + "))" : x.usePattern(c); - s += e(723), b && (s += " (" + h + e(1270) + h + e(2745)), s += " !" + m + e(1601) + l + e(2129); - var v = v || []; - v[e(452)](s), s = "", x.createErrors !== !1 ? (s += e(1588) + e(1267) + e(2767) + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + e(2339), b ? s += "" + h : s += "" + x[e(1011)][e(1901)](c), s += e(594), x.opts[e(1793)] !== !1 && (s += ` , message: 'should match pattern "`, b ? s += e(751) + h + e(1209) : s += "" + x[e(1011)][e(1848)](c), s += `"' `), x[e(1835)].verbose && (s += e(875), b ? s += e(2313) + u : s += "" + x[e(1011)][e(1901)](c), s += e(922) + x[e(2443)] + " , data: " + l + " "), s += e(1334)) : s += e(1230); - var k = s; - return s = v[e(2231)](), !x[e(1187)] && f ? x[e(1973)] ? s += " throw new ValidationError([" + k + e(956) : s += " validate.errors = [" + k + e(2753) : s += e(2467) + k + e(1899), s += "} ", f && (s += " else { "), s; - }), Rt; + var s = " ", n = x[e(2454)], i = x[e(1356)], c = x.schema[t], u = x[e(442)] + x[e(910)][e(1295)](t), d = x[e(1056)] + "/" + t, l = !x.opts[e(1842)], f = e(2887) + (i || ""), b = e(295) + n, h = e(1721) + n, m = x.util.copy(x), v = ""; + m.level++; + var k = e(295) + m.level, E = m[e(2456)], q = e(2384) + n, T = "passingSchemas" + n; + s += e(2337) + h + " = errors , " + q + " = false , " + b + e(1048) + T + e(1171); + var C = x.compositeRule; + x[e(2807)] = m.compositeRule = !0; + var P = c; + if (P) + for (var F, D = -1, j = P[e(1332)] - 1; D < j; ) + F = P[D += 1], (x[e(2167)][e(2347)] ? typeof F == e(2844) && Object[e(1806)](F)[e(1332)] > 0 || F === !1 : x[e(910)].schemaHasRules(F, x[e(2363)][e(1288)])) ? (m.schema = F, m[e(442)] = u + "[" + D + "]", m[e(1056)] = d + "/" + D, s += " " + x[e(1348)](m) + " ", m[e(2456)] = E) : s += e(551) + k + e(409), D && (s += e(537) + k + " && " + q + e(1432) + b + e(895) + T + e(2723) + T + ", " + D + e(392), v += "}"), s += e(537) + k + e(1432) + b + e(2821) + q + " = true; " + T + e(2821) + D + "; }"; + return x.compositeRule = m.compositeRule = C, s += "" + v + e(1268) + b + e(2763), x.createErrors !== !1 ? (s += e(2151) + "oneOf" + e(1016) + x[e(2247)] + e(192) + x[e(910)][e(1250)](d) + e(1717) + T + e(1134), x[e(2167)][e(389)] !== !1 && (s += e(1558)), x[e(2167)][e(2200)] && (s += e(624) + u + " , parentSchema: validate.schema" + x.schemaPath + e(1798) + f + " "), s += e(1134)) : s += e(1136), s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", !x[e(2807)] && l && (x[e(418)] ? s += e(1726) : s += " validate.errors = vErrors; return false; "), s += "} else { errors = " + h + e(734) + h + e(888) + h + e(913), x[e(2167)][e(1842)] && (s += e(1134)), s; + }), It; } -var Ct, $r; -function kc() { - return $r || ($r = 1, Ct = function(x, t, r) { +var Ct, Lr; +function E2() { + return Lr || (Lr = 1, Ct = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x[e(2547)], c = x.schema[t], u = x[e(2443)] + x[e(1011)][e(981)](t), d = x[e(2624)] + "/" + t, f = !x[e(1835)].allErrors, l = e(909) + (i || ""), b = e(2451) + n, h = x[e(1011)][e(1965)](x), m = ""; - h[e(1552)]++; - var v = e(614) + h[e(1552)], k = e(1867) + n, I = "idx" + n, A = h.dataLevel = x[e(2547)] + 1, T = e(909) + A, R = e(1884) + n, P = Object.keys(c || {})[e(2145)](l0), N = x.schema[e(886)] || {}, _ = Object.keys(N)[e(2145)](l0), D = x[e(2555)][e(2659)], j = P[e(692)] || _.length, F = D === !1, C = typeof D == e(544) && Object[e(750)](D)[e(692)], H = x[e(1835)][e(408)], U = F || C || H, z = x.opts.ownProperties, G = x[e(2610)], i0 = x[e(2555)][e(310)]; - if (i0 && !(x[e(1835)][e(399)] && i0[e(399)]) && i0.length < x[e(1835)].loopRequired) var u0 = x[e(1011)].toHash(i0); - function l0(Mx) { - return Mx !== "__proto__"; - } - if (s += e(1186) + b + e(2023) + v + e(2410), z && (s += e(2007) + R + e(2055)), U) { - if (z ? s += " " + R + e(2473) + R + e(764) + l + "); for (var " + I + e(2713) + I + "<" + R + e(1723) + I + e(1238) + k + e(2473) + R + "[" + I + e(2492) : s += e(2785) + k + " in " + l + e(185), j) { - if (s += e(2725) + n + e(814), P.length) - if (P.length > 8) s += e(1945) + u + e(279) + k + ") "; - else { - var o0 = P; - if (o0) - for (var f0, k0 = -1, S0 = o0.length - 1; k0 < S0; ) - f0 = o0[k0 += 1], s += e(1090) + k + e(458) + x.util[e(1901)](f0) + " "; - } - if (_[e(692)]) { - var M0 = _; - if (M0) - for (var F0, J0 = -1, O = M0[e(692)] - 1; J0 < O; ) - F0 = M0[J0 += 1], s += e(1090) + x[e(2375)](F0) + e(1601) + k + ") "; - } - s += e(2881) + n + e(185); - } - if (H == e(403)) s += " delete " + l + "[" + k + e(2492); - else { - var q = x[e(2886)], M = e(751) + k + e(1209); - if (x[e(1835)]._errorDataPathProperty && (x.errorPath = x[e(1011)][e(239)](x.errorPath, k, x[e(1835)].jsonPointers)), F) - if (H) s += e(309) + l + "[" + k + e(2492); - else { - s += " " + v + e(1633); - var Q = d; - d = x.errSchemaPath + e(499); - var J = J || []; - J[e(452)](s), s = "", x[e(1715)] !== !1 ? (s += " { keyword: 'additionalProperties" + e(2767) + x[e(2886)] + e(1347) + x.util[e(1901)](d) + e(2142) + M + "' } ", x[e(1835)].messages !== !1 && (s += e(2250), x[e(1835)]._errorDataPathProperty ? s += e(1876) : s += e(328), s += "' "), x[e(1835)].verbose && (s += " , schema: false , parentSchema: validate.schema" + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += e(1230); - var V = s; - s = J[e(2231)](), !x[e(1187)] && f ? x[e(1973)] ? s += e(1086) + V + e(956) : s += e(651) + V + e(2753) : s += e(2467) + V + e(1899), d = Q, f && (s += e(275)); - } - else if (C) - if (H == e(2786)) { - s += e(2007) + b + e(2182); - var X = x.compositeRule; - x[e(1187)] = h[e(1187)] = !0, h[e(2555)] = D, h[e(2443)] = x[e(2443)] + e(284), h[e(2624)] = x[e(2624)] + e(499), h[e(2886)] = x[e(1835)][e(2739)] ? x[e(2886)] : x[e(1011)][e(239)](x[e(2886)], k, x.opts[e(1467)]); - var s0 = l + "[" + k + "]"; - h[e(1885)][A] = k; - var c0 = x.validate(h); - h[e(2610)] = G, x.util[e(1201)](c0, T) < 2 ? s += " " + x[e(1011)][e(1026)](c0, T, s0) + " " : s += e(2007) + T + e(2473) + s0 + "; " + c0 + " ", s += e(2351) + v + ") { errors = " + b + e(261) + l + "[" + k + e(2258), x[e(1187)] = h[e(1187)] = X; - } else { - h[e(2555)] = D, h.schemaPath = x[e(2443)] + e(284), h[e(2624)] = x[e(2624)] + e(499), h[e(2886)] = x.opts._errorDataPathProperty ? x[e(2886)] : x.util[e(239)](x[e(2886)], k, x[e(1835)][e(1467)]); - var s0 = l + "[" + k + "]"; - h[e(1885)][A] = k; - var c0 = x[e(2621)](h); - h.baseId = G, x[e(1011)][e(1201)](c0, T) < 2 ? s += " " + x[e(1011)].varReplace(c0, T, s0) + " " : s += e(2007) + T + e(2473) + s0 + "; " + c0 + " ", f && (s += " if (!" + v + ") break; "); - } - x[e(2886)] = q; - } - j && (s += " } "), s += e(436), f && (s += e(851) + v + ") { ", m += "}"); - } - var x0 = x.opts[e(2132)] && !x.compositeRule; - if (P[e(692)]) { - var L0 = P; - if (L0) - for (var f0, A0 = -1, H0 = L0[e(692)] - 1; A0 < H0; ) { - f0 = L0[A0 += 1]; - var w0 = c[f0]; - if (x[e(1835)][e(2746)] ? typeof w0 == e(544) && Object[e(750)](w0)[e(692)] > 0 || w0 === !1 : x[e(1011)][e(1392)](w0, x[e(807)][e(403)])) { - var G0 = x[e(1011)][e(981)](f0), s0 = l + G0, ne = x0 && w0[e(1944)] !== void 0; - h[e(2555)] = w0, h.schemaPath = u + G0, h[e(2624)] = d + "/" + x[e(1011)][e(2358)](f0), h[e(2886)] = x[e(1011)][e(1383)](x[e(2886)], f0, x[e(1835)][e(1467)]), h[e(1885)][A] = x.util.toQuotedString(f0); - var c0 = x[e(2621)](h); - if (h[e(2610)] = G, x[e(1011)][e(1201)](c0, T) < 2) { - c0 = x.util[e(1026)](c0, T, s0); - var Q0 = s0; - } else { - var Q0 = T; - s += e(2007) + T + " = " + s0 + "; "; - } - if (ne) s += " " + c0 + " "; - else { - if (u0 && u0[f0]) { - s += " if ( " + Q0 + e(2726), z && (s += e(2470) + l + e(476) + x[e(1011)][e(1848)](f0) + e(1344)), s += e(185) + v + e(1633); - var q = x[e(2886)], Q = d, O0 = x[e(1011)].escapeQuotes(f0); - x[e(1835)][e(2739)] && (x[e(2886)] = x.util.getPath(q, f0, x[e(1835)][e(1467)])), d = x.errSchemaPath + e(2615); - var J = J || []; - J.push(s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + e(310) + e(2767) + x[e(2886)] + " , schemaPath: " + x[e(1011)][e(1901)](d) + e(2835) + O0 + e(2862), x.opts[e(1793)] !== !1 && (s += e(2250), x[e(1835)]._errorDataPathProperty ? s += e(616) : s += "should have required property \\'" + O0 + "\\'", s += "' "), x[e(1835)].verbose && (s += e(1319) + u + " , parentSchema: validate.schema" + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += e(1230); - var V = s; - s = J.pop(), !x.compositeRule && f ? x[e(1973)] ? s += " throw new ValidationError([" + V + "]); " : s += e(651) + V + e(2753) : s += e(2467) + V + e(1899), d = Q, x[e(2886)] = q, s += " } else { "; - } else f ? (s += e(1261) + Q0 + e(2726), z && (s += " || ! Object.prototype.hasOwnProperty.call(" + l + e(476) + x[e(1011)].escapeQuotes(f0) + "') "), s += ") { " + v + e(453)) : (s += e(851) + Q0 + e(1905), z && (s += e(334) + l + e(476) + x[e(1011)][e(1848)](f0) + e(1344)), s += e(1248)); - s += " " + c0 + e(1334); - } - } - f && (s += e(851) + v + ") { ", m += "}"); - } - } - if (_.length) { - var z0 = _; - if (z0) - for (var F0, Y0 = -1, Me = z0.length - 1; Y0 < Me; ) { - F0 = z0[Y0 += 1]; - var w0 = N[F0]; - if (x[e(1835)][e(2746)] ? typeof w0 == e(544) && Object[e(750)](w0).length > 0 || w0 === !1 : x[e(1011)][e(1392)](w0, x.RULES.all)) { - h[e(2555)] = w0, h.schemaPath = x[e(2443)] + e(1811) + x[e(1011)][e(981)](F0), h[e(2624)] = x[e(2624)] + e(2435) + x.util[e(2358)](F0), z ? s += " " + R + e(2473) + R + e(764) + l + e(432) + I + e(2713) + I + "<" + R + ".length; " + I + e(1238) + k + e(2473) + R + "[" + I + e(2492) : s += e(2785) + k + e(2344) + l + ") { ", s += e(851) + x[e(2375)](F0) + e(1601) + k + e(459), h[e(2886)] = x[e(1011)][e(239)](x[e(2886)], k, x[e(1835)][e(1467)]); - var s0 = l + "[" + k + "]"; - h[e(1885)][A] = k; - var c0 = x.validate(h); - h[e(2610)] = G, x.util.varOccurences(c0, T) < 2 ? s += " " + x.util[e(1026)](c0, T, s0) + " " : s += e(2007) + T + " = " + s0 + "; " + c0 + " ", f && (s += e(2351) + v + e(1520)), s += " } ", f && (s += e(1529) + v + " = true; "), s += " } ", f && (s += e(851) + v + e(185), m += "}"); - } - } - } - return f && (s += " " + m + e(851) + b + " == errors) {"), s; + var s = " ", n = x[e(2454)], i = x.dataLevel, c = x[e(224)][t], u = x[e(442)] + x[e(910)][e(1295)](t), d = x.errSchemaPath + "/" + t, l = !x[e(2167)][e(1842)], f = e(2887) + (i || ""), b = x.opts[e(218)] && c && c.$data, h; + b ? (s += e(992) + n + e(2821) + x.util.getData(c.$data, i, x[e(2392)]) + "; ", h = "schema" + n) : h = c; + var m = b ? "(new RegExp(" + h + "))" : x.usePattern(c); + s += e(2883), b && (s += " (" + h + e(232) + h + e(2231)), s += " !" + m + ".test(" + f + e(1482); + var v = v || []; + v[e(902)](s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + e(1777) + "' , dataPath: (dataPath || '') + " + x[e(2247)] + e(192) + x[e(910)][e(1250)](d) + e(2521), b ? s += "" + h : s += "" + x.util[e(1250)](c), s += e(2851), x[e(2167)][e(389)] !== !1 && (s += e(2327), b ? s += e(825) + h + e(1138) : s += "" + x.util[e(2805)](c), s += e(2027)), x[e(2167)][e(2200)] && (s += e(1800), b ? s += e(2197) + u : s += "" + x[e(910)][e(1250)](c), s += e(2859) + x[e(442)] + e(1798) + f + " "), s += e(1134)) : s += " {} "; + var k = s; + return s = v[e(469)](), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + k + e(1278) : s += e(553) + k + e(2357) : s += e(2804) + k + e(1109), s += "} ", l && (s += e(2138)), s; }), Ct; } +var Rt, $r; +function I2() { + return $r || ($r = 1, Rt = function(x, t, r) { + const e = K; + var s = " ", n = x.level, i = x[e(1356)], c = x[e(224)][t], u = x[e(442)] + x[e(910)][e(1295)](t), d = x[e(1056)] + "/" + t, l = !x[e(2167)][e(1842)], f = e(2887) + (i || ""), b = "errs__" + n, h = x[e(910)][e(1196)](x), m = ""; + h[e(2454)]++; + var v = "valid" + h[e(2454)], k = e(1175) + n, E = e(1237) + n, q = h[e(1356)] = x[e(1356)] + 1, T = e(2887) + q, C = e(2095) + n, P = Object[e(1806)](c || {})[e(1706)](fe), F = x[e(224)][e(1160)] || {}, D = Object[e(1806)](F)[e(1706)](fe), j = x[e(224)][e(2409)], O = P[e(1332)] || D[e(1332)], N = j === !1, R = typeof j == e(2844) && Object[e(1806)](j)[e(1332)], L = x[e(2167)][e(2696)], $ = N || R || L, z = x.opts[e(1789)], G = x[e(2456)], ce = x[e(224)][e(1025)]; + if (ce && !(x.opts.$data && ce[e(218)]) && ce[e(1332)] < x[e(2167)][e(472)]) var ue = x[e(910)][e(2589)](ce); + function fe(Mx) { + return Mx !== "__proto__"; + } + if (s += e(2337) + b + e(2872) + v + " = true;", z && (s += e(551) + C + e(466)), $) { + if (z ? s += " " + C + e(2821) + C + e(170) + f + e(1655) + E + e(1169) + E + "<" + C + e(1859) + E + e(2485) + k + " = " + C + "[" + E + e(2432) : s += e(678) + k + e(302) + f + ") { ", O) { + if (s += e(557) + n + e(451), P[e(1332)]) + if (P[e(1332)] > 8) s += e(1575) + u + e(2783) + k + ") "; + else { + var oe = P; + if (oe) + for (var le, ke = -1, ye = oe[e(1332)] - 1; ke < ye; ) + le = oe[ke += 1], s += e(2320) + k + " == " + x.util[e(1250)](le) + " "; + } + if (D[e(1332)]) { + var Me = D; + if (Me) + for (var Ee, Je = -1, _ = Me[e(1332)] - 1; Je < _; ) + Ee = Me[Je += 1], s += " || " + x[e(450)](Ee) + e(569) + k + ") "; + } + s += e(2126) + n + e(1432); + } + if (L == e(1288)) s += " delete " + f + "[" + k + e(2432); + else { + var A = x.errorPath, H = e(825) + k + e(1138); + if (x[e(2167)]._errorDataPathProperty && (x.errorPath = x.util[e(1519)](x[e(2247)], k, x[e(2167)][e(839)])), N) + if (L) s += e(1854) + f + "[" + k + e(2432); + else { + s += " " + v + " = false; "; + var J = d; + d = x.errSchemaPath + e(480); + var Q = Q || []; + Q.push(s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + e(2409) + "' , dataPath: (dataPath || '') + " + x[e(2247)] + e(192) + x[e(910)][e(1250)](d) + e(948) + H + e(2482), x[e(2167)][e(389)] !== !1 && (s += e(2815), x[e(2167)][e(2803)] ? s += "is an invalid additional property" : s += e(1297), s += "' "), x[e(2167)][e(2200)] && (s += e(1130) + x[e(442)] + " , data: " + f + " "), s += " } ") : s += " {} "; + var V = s; + s = Q[e(469)](), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + V + e(1278) : s += " validate.errors = [" + V + e(2357) : s += e(2804) + V + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", d = J, l && (s += " break; "); + } + else if (R) + if (L == e(971)) { + s += e(551) + b + e(366); + var X = x[e(2807)]; + x[e(2807)] = h.compositeRule = !0, h[e(224)] = j, h[e(442)] = x.schemaPath + e(1029), h[e(1056)] = x[e(1056)] + e(480), h[e(2247)] = x[e(2167)][e(2803)] ? x.errorPath : x[e(910)][e(1519)](x[e(2247)], k, x[e(2167)][e(839)]); + var ie = f + "[" + k + "]"; + h.dataPathArr[q] = k; + var se = x[e(1348)](h); + h[e(2456)] = G, x[e(910)].varOccurences(se, T) < 2 ? s += " " + x[e(910)][e(2770)](se, T, ie) + " " : s += e(551) + T + e(2821) + ie + "; " + se + " ", s += " if (!" + v + e(821) + b + e(2664) + f + "[" + k + e(198), x[e(2807)] = h.compositeRule = X; + } else { + h[e(224)] = j, h[e(442)] = x[e(442)] + ".additionalProperties", h[e(1056)] = x[e(1056)] + e(480), h[e(2247)] = x[e(2167)][e(2803)] ? x[e(2247)] : x[e(910)][e(1519)](x[e(2247)], k, x[e(2167)][e(839)]); + var ie = f + "[" + k + "]"; + h[e(2392)][q] = k; + var se = x[e(1348)](h); + h[e(2456)] = G, x[e(910)][e(2087)](se, T) < 2 ? s += " " + x.util[e(2770)](se, T, ie) + " " : s += e(551) + T + e(2821) + ie + "; " + se + " ", l && (s += " if (!" + v + e(1239)); + } + x[e(2247)] = A; + } + O && (s += e(1134)), s += e(1530), l && (s += e(537) + v + ") { ", m += "}"); + } + var xe = x.opts[e(2030)] && !x.compositeRule; + if (P[e(1332)]) { + var Le = P; + if (Le) + for (var le, Ae = -1, He = Le[e(1332)] - 1; Ae < He; ) { + le = Le[Ae += 1]; + var Se = c[le]; + if (x[e(2167)][e(2347)] ? typeof Se == e(2844) && Object.keys(Se)[e(1332)] > 0 || Se === !1 : x[e(910)].schemaHasRules(Se, x[e(2363)][e(1288)])) { + var Ge = x[e(910)][e(1295)](le), ie = f + Ge, n0 = xe && Se[e(2222)] !== void 0; + h.schema = Se, h[e(442)] = u + Ge, h[e(1056)] = d + "/" + x[e(910)][e(2324)](le), h.errorPath = x[e(910)][e(1315)](x[e(2247)], le, x[e(2167)][e(839)]), h.dataPathArr[q] = x[e(910)][e(1250)](le); + var se = x[e(1348)](h); + if (h[e(2456)] = G, x[e(910)].varOccurences(se, T) < 2) { + se = x[e(910)][e(2770)](se, T, ie); + var Qe = ie; + } else { + var Qe = T; + s += " var " + T + e(2821) + ie + "; "; + } + if (n0) s += " " + se + " "; + else { + if (ue && ue[le]) { + s += " if ( " + Qe + e(675), z && (s += e(814) + f + ", '" + x[e(910)][e(2805)](le) + e(2148)), s += e(1432) + v + e(895); + var A = x[e(2247)], J = d, _e = x[e(910)][e(2805)](le); + x[e(2167)][e(2803)] && (x[e(2247)] = x.util[e(1315)](A, le, x[e(2167)].jsonPointers)), d = x[e(1056)] + e(2207); + var Q = Q || []; + Q[e(902)](s), s = "", x.createErrors !== !1 ? (s += e(2151) + e(1025) + e(1016) + x[e(2247)] + e(192) + x[e(910)][e(1250)](d) + " , params: { missingProperty: '" + _e + e(2482), x.opts[e(389)] !== !1 && (s += " , message: '", x[e(2167)][e(2803)] ? s += e(995) : s += e(1002) + _e + "\\'", s += "' "), x.opts[e(2200)] && (s += e(624) + u + " , parentSchema: validate.schema" + x[e(442)] + e(1798) + f + " "), s += e(1134)) : s += e(1136); + var V = s; + s = Q[e(469)](), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + V + e(1278) : s += e(553) + V + e(2357) : s += " var err = " + V + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", d = J, x.errorPath = A, s += e(2643); + } else l ? (s += e(173) + Qe + e(675), z && (s += e(814) + f + e(635) + x[e(910)][e(2805)](le) + e(2148)), s += e(1432) + v + e(2659)) : (s += " if (" + Qe + e(431), z && (s += e(245) + f + e(635) + x[e(910)][e(2805)](le) + e(2148)), s += e(2845)); + s += " " + se + e(1134); + } + } + l && (s += e(537) + v + ") { ", m += "}"); + } + } + if (D[e(1332)]) { + var ze = D; + if (ze) + for (var Ee, Ye = -1, T0 = ze.length - 1; Ye < T0; ) { + Ee = ze[Ye += 1]; + var Se = F[Ee]; + if (x[e(2167)][e(2347)] ? typeof Se == "object" && Object[e(1806)](Se)[e(1332)] > 0 || Se === !1 : x[e(910)][e(2124)](Se, x[e(2363)][e(1288)])) { + h.schema = Se, h[e(442)] = x[e(442)] + e(947) + x[e(910)].getProperty(Ee), h[e(1056)] = x[e(1056)] + e(1378) + x.util.escapeFragment(Ee), z ? s += " " + C + e(2821) + C + e(170) + f + "); for (var " + E + e(1169) + E + "<" + C + e(1859) + E + e(2485) + k + e(2821) + C + "[" + E + e(2432) : s += e(678) + k + e(302) + f + e(1432), s += e(537) + x[e(450)](Ee) + e(569) + k + e(1998), h[e(2247)] = x[e(910)][e(1519)](x[e(2247)], k, x[e(2167)].jsonPointers); + var ie = f + "[" + k + "]"; + h[e(2392)][q] = k; + var se = x.validate(h); + h[e(2456)] = G, x[e(910)].varOccurences(se, T) < 2 ? s += " " + x[e(910)].varReplace(se, T, ie) + " " : s += e(551) + T + e(2821) + ie + "; " + se + " ", l && (s += " if (!" + v + e(1239)), s += e(1134), l && (s += e(2352) + v + e(409)), s += e(1530), l && (s += e(537) + v + e(1432), m += "}"); + } + } + } + return l && (s += " " + m + e(537) + b + e(1023)), s; + }), Rt; +} var Ft, Ur; -function Pc() { +function C2() { return Ur || (Ur = 1, Ft = function(x, t, r) { const e = K; - var s = " ", n = x.level, i = x[e(2547)], c = x[e(2555)][t], u = x[e(2443)] + x[e(1011)][e(981)](t), d = x[e(2624)] + "/" + t, f = !x.opts[e(226)], l = "data" + (i || ""), b = e(2451) + n, h = x[e(1011)][e(1965)](x), m = ""; - h[e(1552)]++; - var v = e(614) + h[e(1552)]; - if (s += e(1186) + b + e(2163), x[e(1835)][e(2746)] ? typeof c == e(544) && Object[e(750)](c).length > 0 || c === !1 : x[e(1011)][e(1392)](c, x[e(807)][e(403)])) { - h[e(2555)] = c, h[e(2443)] = u, h.errSchemaPath = d; - var k = e(1867) + n, I = "idx" + n, A = "i" + n, T = "' + " + k + e(1209), R = h[e(2547)] = x[e(2547)] + 1, P = e(909) + R, N = e(1884) + n, _ = x[e(1835)][e(860)], D = x[e(2610)]; - _ && (s += e(2007) + N + e(754)), _ ? s += " " + N + " = " + N + e(764) + l + e(432) + I + "=0; " + I + "<" + N + e(1723) + I + "++) { var " + k + " = " + N + "[" + I + e(2492) : s += e(2785) + k + " in " + l + e(185), s += e(2038) + n + e(413); - var j = k, F = x.compositeRule; - x[e(1187)] = h[e(1187)] = !0; - var C = x.validate(h); - h[e(2610)] = D, x[e(1011)].varOccurences(C, P) < 2 ? s += " " + x.util[e(1026)](C, P, j) + " " : s += e(2007) + P + e(2473) + j + "; " + C + " ", x[e(1187)] = h[e(1187)] = F, s += e(2351) + v + ") { for (var " + A + e(236) + n + "; " + A + e(515) + A + e(240) + A + e(1211) + k + e(2808), x.createErrors !== !1 ? (s += e(1588) + e(440) + e(2767) + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + e(1618) + T + "' } ", x[e(1835)][e(1793)] !== !1 && (s += " , message: 'property name \\'" + T + e(707)), x[e(1835)][e(1219)] && (s += e(1319) + u + e(1452) + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += e(1230), s += e(1899), !x[e(1187)] && f && (x.async ? s += e(479) : s += " validate.errors = vErrors; return false; "), f && (s += e(275)), s += " } }"; + var s = " ", n = x.level, i = x[e(1356)], c = x.schema[t], u = x.schemaPath + x[e(910)][e(1295)](t), d = x[e(1056)] + "/" + t, l = !x[e(2167)][e(1842)], f = e(2887) + (i || ""), b = e(1721) + n, h = x[e(910)][e(1196)](x), m = ""; + h.level++; + var v = e(295) + h[e(2454)]; + if (s += e(2337) + b + e(1006), x.opts[e(2347)] ? typeof c == "object" && Object.keys(c)[e(1332)] > 0 || c === !1 : x[e(910)].schemaHasRules(c, x[e(2363)][e(1288)])) { + h[e(224)] = c, h[e(442)] = u, h[e(1056)] = d; + var k = e(1175) + n, E = "idx" + n, q = "i" + n, T = e(825) + k + e(1138), C = h[e(1356)] = x.dataLevel + 1, P = "data" + C, F = e(2095) + n, D = x.opts[e(1789)], j = x[e(2456)]; + D && (s += e(551) + F + " = undefined; "), D ? s += " " + F + e(2821) + F + e(170) + f + e(1655) + E + "=0; " + E + "<" + F + e(1859) + E + e(2485) + k + e(2821) + F + "[" + E + e(2432) : s += e(678) + k + e(302) + f + e(1432), s += e(826) + n + e(513); + var O = k, N = x[e(2807)]; + x[e(2807)] = h[e(2807)] = !0; + var R = x[e(1348)](h); + h[e(2456)] = j, x[e(910)][e(2087)](R, P) < 2 ? s += " " + x[e(910)][e(2770)](R, P, O) + " " : s += e(551) + P + e(2821) + O + "; " + R + " ", x.compositeRule = h.compositeRule = N, s += e(2825) + v + e(724) + q + "=startErrs" + n + "; " + q + e(2704) + q + e(2360) + q + "].propertyName = " + k + e(1170), x[e(1560)] !== !1 ? (s += e(2151) + e(806) + "' , dataPath: (dataPath || '') + " + x.errorPath + e(192) + x[e(910)][e(1250)](d) + e(266) + T + "' } ", x[e(2167)][e(389)] !== !1 && (s += e(1549) + T + e(613)), x[e(2167)].verbose && (s += e(624) + u + e(2799) + x[e(442)] + e(1798) + f + " "), s += e(1134)) : s += e(1136), s += e(1109), !x.compositeRule && l && (x.async ? s += e(1726) : s += e(900)), l && (s += e(1620)), s += e(518); } - return f && (s += " " + m + e(851) + b + e(795)), s; + return l && (s += " " + m + e(537) + b + e(1023)), s; }), Ft; } var Nt, Hr; -function Ic() { +function R2() { return Hr || (Hr = 1, Nt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x[e(2547)], c = x[e(2555)][t], u = x.schemaPath + x[e(1011)][e(981)](t), d = x[e(2624)] + "/" + t, f = !x[e(1835)][e(226)], l = "data" + (i || ""), b = "valid" + n, h = x[e(1835)][e(399)] && c && c[e(399)]; - h && (s += e(270) + n + e(2473) + x.util[e(2559)](c.$data, i, x.dataPathArr) + "; "); - var m = e(2555) + n; + var s = " ", n = x[e(2454)], i = x.dataLevel, c = x[e(224)][t], u = x.schemaPath + x[e(910)][e(1295)](t), d = x[e(1056)] + "/" + t, l = !x[e(2167)][e(1842)], f = e(2887) + (i || ""), b = e(295) + n, h = x.opts[e(218)] && c && c[e(218)]; + h && (s += e(992) + n + e(2821) + x[e(910)][e(1207)](c.$data, i, x[e(2392)]) + "; "); + var m = "schema" + n; if (!h) - if (c.length < x[e(1835)].loopRequired && x[e(2555)].properties && Object.keys(x[e(2555)][e(945)]).length) { - var R = [], v = c; + if (c[e(1332)] < x.opts[e(472)] && x.schema[e(657)] && Object[e(1806)](x[e(224)][e(657)])[e(1332)]) { + var C = [], v = c; if (v) - for (var k, I = -1, A = v[e(692)] - 1; I < A; ) { - k = v[I += 1]; - var T = x[e(2555)][e(945)][k]; - !(T && (x[e(1835)][e(2746)] ? typeof T == e(544) && Object.keys(T)[e(692)] > 0 || T === !1 : x[e(1011)][e(1392)](T, x[e(807)].all))) && (R[R[e(692)]] = k); + for (var k, E = -1, q = v[e(1332)] - 1; E < q; ) { + k = v[E += 1]; + var T = x[e(224)][e(657)][k]; + !(T && (x.opts[e(2347)] ? typeof T == "object" && Object.keys(T)[e(1332)] > 0 || T === !1 : x[e(910)][e(2124)](T, x[e(2363)].all))) && (C[C[e(1332)]] = k); } - } else var R = c; - if (h || R.length) { - var P = x[e(2886)], N = h || R[e(692)] >= x[e(1835)].loopRequired, _ = x[e(1835)][e(860)]; - if (f) - if (s += e(2370) + n + "; ", N) { - !h && (s += e(2007) + m + e(978) + u + "; "); - var D = "i" + n, j = e(2555) + n + "[" + D + "]", F = e(751) + j + e(1209); - x[e(1835)][e(2739)] && (x.errorPath = x[e(1011)].getPathExpr(P, j, x[e(1835)][e(1467)])), s += e(2007) + b + e(854), h && (s += " if (schema" + n + e(2128) + b + e(1160) + n + ")) " + b + e(2434)), s += " for (var " + D + e(1312) + D + " < " + m + e(1723) + D + e(883) + b + e(2473) + l + "[" + m + "[" + D + "]] !== undefined ", _ && (s += e(334) + l + ", " + m + "[" + D + "]) "), s += e(305) + b + e(1704), h && (s += e(1077)), s += e(1779) + b + e(975); - var C = C || []; - C[e(452)](s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + "required" + e(2767) + x[e(2886)] + " , schemaPath: " + x[e(1011)][e(1901)](d) + e(2835) + F + e(2862), x.opts.messages !== !1 && (s += e(2250), x[e(1835)][e(2739)] ? s += e(616) : s += e(1960) + F + "\\'", s += "' "), x.opts[e(1219)] && (s += e(1319) + u + " , parentSchema: validate.schema" + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += e(1230); - var H = s; - s = C.pop(), !x[e(1187)] && f ? x[e(1973)] ? s += e(1086) + H + e(956) : s += e(651) + H + e(2753) : s += e(2467) + H + e(1899), s += e(1858); + } else var C = c; + if (h || C[e(1332)]) { + var P = x[e(2247)], F = h || C.length >= x[e(2167)][e(472)], D = x[e(2167)][e(1789)]; + if (l) + if (s += e(2669) + n + "; ", F) { + !h && (s += e(551) + m + e(2113) + u + "; "); + var j = "i" + n, O = e(224) + n + "[" + j + "]", N = e(825) + O + " + '"; + x[e(2167)][e(2803)] && (x[e(2247)] = x[e(910)][e(1519)](P, O, x[e(2167)][e(839)])), s += e(551) + b + e(409), h && (s += e(2047) + n + e(481) + b + e(1257) + n + e(1276) + b + e(2009)), s += " for (var " + j + e(2738) + j + e(2641) + m + e(1859) + j + e(899) + b + e(2821) + f + "[" + m + "[" + j + e(504), D && (s += e(245) + f + ", " + m + "[" + j + e(1569)), s += e(2715) + b + e(994), h && (s += e(2866)), s += e(2141) + b + e(1457); + var R = R || []; + R[e(902)](s), s = "", x.createErrors !== !1 ? (s += e(2151) + "required" + e(1016) + x[e(2247)] + e(192) + x[e(910)][e(1250)](d) + " , params: { missingProperty: '" + N + e(2482), x[e(2167)].messages !== !1 && (s += e(2815), x[e(2167)]._errorDataPathProperty ? s += "is a required property" : s += e(1002) + N + "\\'", s += "' "), x[e(2167)][e(2200)] && (s += e(624) + u + e(2799) + x[e(442)] + e(1798) + f + " "), s += " } ") : s += e(1136); + var L = s; + s = R.pop(), !x[e(2807)] && l ? x[e(418)] ? s += e(1323) + L + e(1278) : s += e(553) + L + e(2357) : s += " var err = " + L + e(1109), s += e(2643); } else { - s += e(1261); - var U = R; - if (U) - for (var z, D = -1, G = U.length - 1; D < G; ) { - z = U[D += 1], D && (s += " || "); - var i0 = x[e(1011)][e(981)](z), u0 = l + i0; - s += e(1413) + u0 + e(2726), _ && (s += " || ! Object.prototype.hasOwnProperty.call(" + l + e(476) + x[e(1011)][e(1848)](z) + e(1344)), s += e(2759) + n + e(2473) + x[e(1011)][e(1901)](x[e(1835)][e(1467)] ? z : i0) + e(527); + s += e(173); + var $ = C; + if ($) + for (var z, j = -1, G = $[e(1332)] - 1; j < G; ) { + z = $[j += 1], j && (s += e(2320)); + var ce = x.util[e(1295)](z), ue = f + ce; + s += e(2790) + ue + " === undefined ", D && (s += e(814) + f + e(635) + x[e(910)][e(2805)](z) + e(2148)), s += e(1396) + n + e(2821) + x.util[e(1250)](x[e(2167)].jsonPointers ? z : ce) + e(618); } - s += e(1657); - var j = e(254) + n, F = e(751) + j + e(1209); - x.opts[e(2739)] && (x[e(2886)] = x[e(1835)][e(1467)] ? x.util[e(239)](P, j, !0) : P + e(2196) + j); - var C = C || []; - C.push(s), s = "", x.createErrors !== !1 ? (s += e(1588) + e(310) + "' , dataPath: (dataPath || '') + " + x[e(2886)] + e(1347) + x[e(1011)][e(1901)](d) + " , params: { missingProperty: '" + F + "' } ", x.opts[e(1793)] !== !1 && (s += e(2250), x[e(1835)]._errorDataPathProperty ? s += e(616) : s += e(1960) + F + "\\'", s += "' "), x[e(1835)][e(1219)] && (s += e(1319) + u + e(1452) + x[e(2443)] + e(1227) + l + " "), s += e(1334)) : s += e(1230); - var H = s; - s = C[e(2231)](), !x[e(1187)] && f ? x[e(1973)] ? s += " throw new ValidationError([" + H + "]); " : s += e(651) + H + e(2753) : s += e(2467) + H + e(1899), s += e(1858); + s += e(368); + var O = e(1052) + n, N = "' + " + O + e(1138); + x[e(2167)][e(2803)] && (x[e(2247)] = x[e(2167)].jsonPointers ? x[e(910)][e(1519)](P, O, !0) : P + e(2721) + O); + var R = R || []; + R[e(902)](s), s = "", x[e(1560)] !== !1 ? (s += e(2151) + "required' , dataPath: (dataPath || '') + " + x[e(2247)] + e(192) + x[e(910)].toQuotedString(d) + " , params: { missingProperty: '" + N + e(2482), x[e(2167)].messages !== !1 && (s += e(2815), x[e(2167)]._errorDataPathProperty ? s += e(995) : s += e(1002) + N + "\\'", s += "' "), x[e(2167)][e(2200)] && (s += " , schema: validate.schema" + u + e(2799) + x[e(442)] + e(1798) + f + " "), s += e(1134)) : s += e(1136); + var L = s; + s = R[e(469)](), !x[e(2807)] && l ? x.async ? s += e(1323) + L + "]); " : s += e(553) + L + "]; return false; " : s += " var err = " + L + e(1109), s += e(2643); } - else if (N) { - !h && (s += " var " + m + e(978) + u + "; "); - var D = "i" + n, j = e(2555) + n + "[" + D + "]", F = "' + " + j + e(1209); - x[e(1835)][e(2739)] && (x[e(2886)] = x[e(1011)][e(239)](P, j, x[e(1835)][e(1467)])), h && (s += e(851) + m + e(1702) + m + e(842), x[e(1715)] !== !1 ? (s += e(1588) + "required" + e(2767) + x[e(2886)] + e(1347) + x.util.toQuotedString(d) + e(2835) + F + e(2862), x.opts.messages !== !1 && (s += " , message: '", x[e(1835)][e(2739)] ? s += e(616) : s += e(1960) + F + "\\'", s += "' "), x[e(1835)].verbose && (s += e(1319) + u + " , parentSchema: validate.schema" + x.schemaPath + e(1227) + l + " "), s += e(1334)) : s += e(1230), s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (" + m + e(1023)), s += " for (var " + D + e(1312) + D + e(840) + m + e(1723) + D + e(212) + l + "[" + m + "[" + D + e(174), _ && (s += e(2470) + l + ", " + m + "[" + D + e(508)), s += e(848), x[e(1715)] !== !1 ? (s += e(1588) + "required" + e(2767) + x[e(2886)] + e(1347) + x[e(1011)].toQuotedString(d) + e(2835) + F + e(2862), x[e(1835)][e(1793)] !== !1 && (s += e(2250), x[e(1835)][e(2739)] ? s += e(616) : s += "should have required property \\'" + F + "\\'", s += "' "), x[e(1835)][e(1219)] && (s += " , schema: validate.schema" + u + e(1452) + x[e(2443)] + " , data: " + l + " "), s += e(1334)) : s += e(1230), s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ", h && (s += " } "); + else if (F) { + !h && (s += e(551) + m + e(2113) + u + "; "); + var j = "i" + n, O = "schema" + n + "[" + j + "]", N = e(825) + O + e(1138); + x[e(2167)]._errorDataPathProperty && (x.errorPath = x[e(910)][e(1519)](P, O, x[e(2167)][e(839)])), h && (s += e(537) + m + e(2553) + m + e(2828), x[e(1560)] !== !1 ? (s += " { keyword: '" + e(1025) + e(1016) + x[e(2247)] + " , schemaPath: " + x[e(910)][e(1250)](d) + e(956) + N + e(2482), x[e(2167)][e(389)] !== !1 && (s += e(2815), x[e(2167)]._errorDataPathProperty ? s += e(995) : s += e(1002) + N + "\\'", s += "' "), x[e(2167)][e(2200)] && (s += " , schema: validate.schema" + u + e(2799) + x[e(442)] + e(1798) + f + " "), s += e(1134)) : s += " {} ", s += e(952) + m + e(674)), s += " for (var " + j + " = 0; " + j + e(2641) + m + e(1859) + j + e(1944) + f + "[" + m + "[" + j + e(559), D && (s += e(814) + f + ", " + m + "[" + j + e(1569)), s += ") { var err = ", x[e(1560)] !== !1 ? (s += e(2151) + "required" + e(1016) + x[e(2247)] + e(192) + x[e(910)].toQuotedString(d) + e(956) + N + e(2482), x[e(2167)].messages !== !1 && (s += " , message: '", x[e(2167)]._errorDataPathProperty ? s += e(995) : s += e(1002) + N + "\\'", s += "' "), x.opts[e(2200)] && (s += e(624) + u + e(2799) + x[e(442)] + " , data: " + f + " "), s += " } ") : s += e(1136), s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ", h && (s += e(2866)); } else { - var l0 = R; - if (l0) - for (var z, o0 = -1, f0 = l0[e(692)] - 1; o0 < f0; ) { - z = l0[o0 += 1]; - var i0 = x[e(1011)][e(981)](z), F = x.util[e(1848)](z), u0 = l + i0; - x[e(1835)][e(2739)] && (x[e(2886)] = x.util.getPath(P, z, x[e(1835)][e(1467)])), s += e(1261) + u0 + e(2726), _ && (s += " || ! Object.prototype.hasOwnProperty.call(" + l + ", '" + x[e(1011)][e(1848)](z) + e(1344)), s += e(848), x[e(1715)] !== !1 ? (s += e(1588) + e(310) + e(2767) + x[e(2886)] + e(1347) + x[e(1011)].toQuotedString(d) + " , params: { missingProperty: '" + F + "' } ", x[e(1835)].messages !== !1 && (s += e(2250), x[e(1835)][e(2739)] ? s += e(616) : s += e(1960) + F + "\\'", s += "' "), x[e(1835)][e(1219)] && (s += e(1319) + u + e(1452) + x.schemaPath + " , data: " + l + " "), s += e(1334)) : s += e(1230), s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "; + var fe = C; + if (fe) + for (var z, oe = -1, le = fe[e(1332)] - 1; oe < le; ) { + z = fe[oe += 1]; + var ce = x[e(910)][e(1295)](z), N = x[e(910)][e(2805)](z), ue = f + ce; + x[e(2167)][e(2803)] && (x[e(2247)] = x[e(910)][e(1315)](P, z, x.opts.jsonPointers)), s += " if ( " + ue + e(675), D && (s += e(814) + f + e(635) + x[e(910)][e(2805)](z) + e(2148)), s += ") { var err = ", x[e(1560)] !== !1 ? (s += e(2151) + e(1025) + e(1016) + x.errorPath + e(192) + x.util[e(1250)](d) + " , params: { missingProperty: '" + N + e(2482), x[e(2167)].messages !== !1 && (s += e(2815), x[e(2167)]._errorDataPathProperty ? s += e(995) : s += e(1002) + N + "\\'", s += "' "), x[e(2167)][e(2200)] && (s += e(624) + u + " , parentSchema: validate.schema" + x.schemaPath + e(1798) + f + " "), s += e(1134)) : s += e(1136), s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "; } } - x[e(2886)] = P; - } else f && (s += e(1485)); + x.errorPath = P; + } else l && (s += e(1077)); return s; }), Nt; } var Tt, zr; -function Ec() { +function F2() { return zr || (zr = 1, Tt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x.dataLevel, c = x[e(2555)][t], u = x[e(2443)] + x.util[e(981)](t), d = x[e(2624)] + "/" + t, f = !x[e(1835)][e(226)], l = "data" + (i || ""), b = e(614) + n, h = x[e(1835)][e(399)] && c && c[e(399)], m; - if (h ? (s += " var schema" + n + " = " + x[e(1011)][e(2559)](c[e(399)], i, x[e(1885)]) + "; ", m = e(2555) + n) : m = c, (c || h) && x[e(1835)][e(2675)] !== !1) { - h && (s += e(2007) + b + e(663) + m + e(2106) + m + e(2128) + b + e(1902) + m + e(2033) + b + " = false; else { "), s += e(586) + l + e(1906) + b + " = true , j; if (i > 1) { "; - var v = x[e(2555)][e(715)] && x[e(2555)][e(715)][e(612)], k = Array[e(1783)](v); - if (!v || v == e(544) || v == e(973) || k && (v.indexOf("object") >= 0 || v[e(311)](e(973)) >= 0)) s += " outer: for (;i--;) { for (j = i; j--;) { if (equal(" + l + e(667) + l + e(608) + b + e(2312); + var s = " ", n = x[e(2454)], i = x[e(1356)], c = x[e(224)][t], u = x[e(442)] + x[e(910)][e(1295)](t), d = x.errSchemaPath + "/" + t, l = !x[e(2167)][e(1842)], f = e(2887) + (i || ""), b = e(295) + n, h = x[e(2167)][e(218)] && c && c.$data, m; + if (h ? (s += e(992) + n + e(2821) + x[e(910)][e(1207)](c[e(218)], i, x[e(2392)]) + "; ", m = e(224) + n) : m = c, (c || h) && x[e(2167)][e(1431)] !== !1) { + h && (s += " var " + b + e(1676) + m + e(2494) + m + " === undefined) " + b + " = true; else if (typeof " + m + " != 'boolean') " + b + e(1427)), s += " var i = " + f + ".length , " + b + e(313); + var v = x.schema.items && x[e(224)][e(1613)][e(190)], k = Array[e(977)](v); + if (!v || v == e(2844) || v == "array" || k && (v.indexOf(e(2844)) >= 0 || v.indexOf(e(2173)) >= 0)) s += e(1450) + f + e(2849) + f + e(926) + b + e(158); else { - s += e(2226) + l + e(2244); - var I = "checkDataType" + (k ? "s" : ""); - s += e(851) + x[e(1011)][I](v, e(2539), x[e(1835)][e(1311)], !0) + e(1171), k && (s += ` if (typeof item == 'string') item = '"' + item; `), s += e(569) + b + " = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "; + s += e(1805) + f + e(1226); + var E = e(531) + (k ? "s" : ""); + s += " if (" + x.util[E](v, e(1442), x[e(2167)].strictNumbers, !0) + e(2154), k && (s += e(2430)), s += e(1429) + b + e(1748); } - s += e(1334), h && (s += e(1077)), s += e(2351) + b + ") { "; - var A = A || []; - A[e(452)](s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + e(2675) + e(2767) + x.errorPath + e(1347) + x[e(1011)].toQuotedString(d) + e(1937), x[e(1835)].messages !== !1 && (s += e(2024)), x[e(1835)][e(1219)] && (s += e(875), h ? s += "validate.schema" + u : s += "" + c, s += e(922) + x.schemaPath + e(1227) + l + " "), s += e(1334)) : s += " {} "; + s += e(1134), h && (s += " } "), s += e(2825) + b + e(1457); + var q = q || []; + q[e(902)](s), s = "", x.createErrors !== !1 ? (s += " { keyword: '" + e(1431) + "' , dataPath: (dataPath || '') + " + x[e(2247)] + " , schemaPath: " + x[e(910)][e(1250)](d) + " , params: { i: i, j: j } ", x[e(2167)][e(389)] !== !1 && (s += " , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "), x[e(2167)][e(2200)] && (s += e(1800), h ? s += "validate.schema" + u : s += "" + c, s += " , parentSchema: validate.schema" + x[e(442)] + e(1798) + f + " "), s += e(1134)) : s += e(1136); var T = s; - s = A.pop(), !x[e(1187)] && f ? x[e(1973)] ? s += " throw new ValidationError([" + T + e(956) : s += e(651) + T + e(2753) : s += e(2467) + T + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += e(1334), f && (s += " else { "); - } else f && (s += e(495)); + s = q[e(469)](), !x[e(2807)] && l ? x[e(418)] ? s += " throw new ValidationError([" + T + e(1278) : s += e(553) + T + e(2357) : s += e(2804) + T + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += e(1134), l && (s += e(2138)); + } else l && (s += e(495)); return s; }), Tt; } var qt, Vr; -function Rc() { - return Vr || (Vr = 1, qt = { $ref: ic(), allOf: cc(), anyOf: uc(), $comment: dc(), const: fc(), contains: lc(), dependencies: hc(), enum: pc(), format: mc(), if: bc(), items: gc(), maximum: Fr(), minimum: Fr(), maxItems: Tr(), minItems: Tr(), maxLength: Ar(), minLength: Ar(), maxProperties: _r(), minProperties: _r(), multipleOf: yc(), not: vc(), oneOf: wc(), pattern: Sc(), properties: kc(), propertyNames: Pc(), required: Ic(), uniqueItems: Ec(), validate: bn() }), qt; +function N2() { + return Vr || (Vr = 1, qt = { $ref: d2(), allOf: l2(), anyOf: f2(), $comment: h2(), const: p2(), contains: m2(), dependencies: b2(), enum: g2(), format: y2(), if: v2(), items: w2(), maximum: Fr(), minimum: Fr(), maxItems: Tr(), minItems: Tr(), maxLength: Ar(), minLength: Ar(), maxProperties: Or(), minProperties: Or(), multipleOf: S2(), not: k2(), oneOf: P2(), pattern: E2(), properties: I2(), propertyNames: C2(), required: R2(), uniqueItems: F2(), validate: vn() }), qt; } var At, Br; -function Cc() { +function T2() { + const o = a; if (Br) return At; Br = 1; - var o = Rc(), x = Ze().toHash; + var x = N2(), t = W0()[o(2589)]; return At = function() { - const r = K; - var e = [{ type: r(2153), rules: [{ maximum: [r(1895)] }, { minimum: [r(2213)] }, "multipleOf", "format"] }, { type: r(2161), rules: [r(558), r(2877), r(1267), r(2197)] }, { type: r(973), rules: ["maxItems", "minItems", r(715), r(2440), "uniqueItems"] }, { type: r(544), rules: [r(197), "minProperties", r(310), r(1356), r(440), { properties: [r(2659), r(886)] }] }, { rules: [r(2221), r(1017), "enum", r(2705), r(2776), r(2734), r(2405), "if"] }], s = ["type", r(1506)], n = [r(2008), r(2697), "id", r(399), r(2609), r(1266), r(625), "default", r(2822), r(2590), r(2326), "writeOnly", r(2222), "contentEncoding", "additionalItems", r(2403), r(2510)], i = [r(2153), r(1449), r(2161), "array", r(544), "boolean", r(845)]; - return e[r(403)] = x(s), e[r(1411)] = x(i), e[r(1471)](function(c) { - const u = r; - c.rules = c[u(752)][u(1649)](function(d) { - const f = u; - var l; - if (typeof d == f(544)) { - var b = Object[f(750)](d)[0]; - l = d[b], d = b, l[f(1471)](function(m) { - const v = f; - s[v(452)](m), e[v(403)][m] = !0; + const e = o; + var s = [{ type: "number", rules: [{ maximum: [e(2005)] }, { minimum: ["exclusiveMinimum"] }, "multipleOf", e(2039)] }, { type: "string", rules: ["maxLength", e(1610), e(1777), "format"] }, { type: "array", rules: [e(2520), e(2903), e(1613), e(2476), e(1431)] }, { type: "object", rules: ["maxProperties", "minProperties", e(1025), "dependencies", e(806), { properties: [e(2409), "patternProperties"] }] }, { rules: [e(316), "const", e(2583), e(2158), "anyOf", e(1756), "allOf", "if"] }], n = [e(190), "$comment"], i = [e(684), "$id", "id", e(218), "$async", e(2499), "description", "default", "definitions", e(456), e(2846), e(448), "contentMediaType", e(594), e(1283), e(723), "else"], c = [e(1206), e(1605), e(1653), e(2173), e(2844), e(1001), e(1589)]; + return s.all = t(n), s[e(2550)] = t(c), s[e(1953)](function(u) { + const d = e; + u.rules = u[d(2516)][d(2742)](function(l) { + const f = d; + var b; + if (typeof l == f(2844)) { + var h = Object[f(1806)](l)[0]; + b = l[h], l = h, b.forEach(function(v) { + const k = f; + n.push(v), s[k(1288)][v] = !0; }); } - s[f(452)](d); - var h = e.all[d] = { keyword: d, code: o[d], implements: l }; - return h; - }), e[u(403)][u(1506)] = { keyword: u(1506), code: o[u(1506)] }, c.type && (e.types[c[u(612)]] = c); - }), e[r(2819)] = x(s[r(2044)](n)), e.custom = {}, e; + n[f(902)](l); + var m = s[f(1288)][l] = { keyword: l, code: x[l], implements: b }; + return m; + }), s[d(1288)][d(1514)] = { keyword: d(1514), code: x[d(1514)] }, u[d(190)] && (s[d(2550)][u[d(190)]] = u); + }), s[e(2379)] = t(n[e(1545)](i)), s[e(1893)] = {}, s; }, At; } -var Ot, Zr; -function Fc() { - const o = a; - if (Zr) return Ot; - Zr = 1; - var x = [o(888), o(2536), o(1895), o(546), o(2213), o(558), "minLength", o(1267), "additionalItems", o(2575), "minItems", o(2675), o(197), o(246), o(310), o(2659), o(1419), "format", o(1017)]; - return Ot = function(t, r) { - const e = o; - for (var s = 0; s < r[e(692)]; s++) { - t = JSON[e(706)](JSON[e(2625)](t)); - var n = r[s][e(628)]("/"), i = t, c; - for (c = 1; c < n.length; c++) i = i[n[c]]; - for (c = 0; c < x.length; c++) { - var u = x[c], d = i[u]; - d && (i[u] = { anyOf: [d, { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" }] }); - } - } - return t; - }, Ot; -} var _t, Wr; -function Nc() { +function q2() { const o = a; if (Wr) return _t; Wr = 1; - var x = ha()[o(2092)]; - _t = t; + var x = ["multipleOf", "maximum", "exclusiveMaximum", o(962), o(1608), o(2213), o(1610), o(1777), o(1283), o(2520), o(2903), o(1431), o(991), "minProperties", "required", o(2409), o(2583), "format", o(298)]; + return _t = function(t, r) { + const e = o; + for (var s = 0; s < r[e(1332)]; s++) { + t = JSON[e(429)](JSON[e(306)](t)); + var n = r[s].split("/"), i = t, c; + for (c = 1; c < n.length; c++) i = i[n[c]]; + for (c = 0; c < x[e(1332)]; c++) { + var u = x[c], d = i[u]; + d && (i[u] = { anyOf: [d, { $ref: e(968) }] }); + } + } + return t; + }, _t; +} +var Ot, Zr; +function A2() { + const o = a; + if (Zr) return Ot; + Zr = 1; + var x = ha()[o(2646)]; + Ot = t; function t(r, e, s) { const n = o; var i = this; - if (typeof this[n(1035)][n(2427)] != n(1622)) throw new Error(n(2740)); - typeof e == n(1622) && (s = e, e = void 0); - var c = u(r)[n(2403)](function() { - const f = n; - var l = i[f(2201)](r, void 0, e); - return l[f(2621)] || d(l); + if (typeof this._opts[n(2086)] != n(1235)) throw new Error(n(667)); + typeof e == n(1235) && (s = e, e = void 0); + var c = u(r).then(function() { + var l = i._addSchema(r, void 0, e); + return l.validate || d(l); }); - return s && c[n(2403)](function(f) { - s(null, f); + return s && c[n(723)](function(l) { + s(null, l); }, s), c; - function u(f) { - const l = n; - var b = f[l(2008)]; - return b && !i[l(773)](b) ? t[l(1994)](i, { $ref: b }, !0) : Promise[l(1571)](); + function u(l) { + const f = n; + var b = l[f(684)]; + return b && !i[f(1454)](b) ? t[f(377)](i, { $ref: b }, !0) : Promise[f(1635)](); } - function d(f) { + function d(l) { + const f = n; try { - return i._compile(f); - } catch (b) { - if (b instanceof x) return l(b); - throw b; + return i[f(774)](l); + } catch (h) { + if (h instanceof x) return b(h); + throw h; } - function l(b) { - const h = K; - var m = b[h(208)]; - if (I(m)) throw new Error(h(2348) + m + " is loaded but " + b[h(2748)] + h(1573)); - var v = i[h(1065)][m]; - return !v && (v = i[h(1065)][m] = i[h(1035)].loadSchema(m), v[h(2403)](k, k)), v[h(2403)](function(A) { - if (!I(m)) return u(A).then(function() { - const T = K; - I(m) || i[T(229)](A, m, void 0, e); + function b(h) { + const m = f; + var v = h[m(572)]; + if (q(v)) throw new Error(m(2557) + v + m(2048) + h[m(1319)] + m(401)); + var k = i._loadingSchemas[v]; + return !k && (k = i[m(2059)][v] = i._opts[m(2086)](v), k[m(723)](E, E)), k[m(723)](function(T) { + const C = m; + if (!q(v)) return u(T)[C(723)](function() { + const P = C; + q(v) || i[P(2015)](T, v, void 0, e); }); - })[h(2403)](function() { - return d(f); + })[m(723)](function() { + return d(l); }); - function k() { - const A = h; - delete i[A(1065)][m]; + function E() { + const T = m; + delete i[T(2059)][v]; } - function I(A) { - const T = h; - return i[T(2813)][A] || i[T(1072)][A]; + function q(T) { + const C = m; + return i._refs[T] || i[C(840)][T]; } } } } - return _t; + return Ot; +} +function qx() { + const o = ["', missingProperty: '", "Request timed out", "$async", "保存所有", "Positive Crop", "scheme", "Clear selection", "executeOutgoingRequestInterceptor", "任务执行失败: {{error}}", "isTop", "start", " validate.errors = vErrors; ", ", limit: ", "Current selection: Layer", " division", ">", "输出至:", "postMessage", "正向裁剪(Outpaint)", "payload", "types", "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.", "emergency", " && !Array.isArray(", "[object Number]", "token", "run API 调用失败 - HTTP 错误,状态: {{status}}", "Schema ", "` could not be extracted from all schema options", " = refVal[", "使用当前选区边界", ")) { ", "Paste WebApp ID here", "sampling/createMessage", "#3333FF", "Selection mask", "模板已删除。", "getUsedParamsDetails", "external", "discriminator", '"; } ', "_getType", "parseAsync", "partial", " = vErrors[", "greater than or equal to ", "returnObjects", "; else vErrors = vErrors.concat(", "postProcessor", "提示词模板", "setPrototypeOf", "2.0", " if (false) { ", "enum", "actions", "unescapeSuffix", "nonnegative", "detail", ") { var err = ", "toHash", "No connection available for node ", "port", "defineProperty", "ZodNull", "{2})", "###", "+Alt crop by selection", "status API failed - {{reason}}", "default is ignored for: ", "Get mask from Current Layer", " == 'number' || ", "schemaExcl", "#FF3366", "finally", "runningRequests", "supportedLngs", "[\\:\\/\\?\\#\\[\\]\\@]", "returnTypeError", "promptIds", "status API failed - HTTP error! status: {{status}}", "getResource", "bigint", "获取图片", "Failed to get task status", "选择图像来源", " , message: 'should contain a valid item' ", "failed", "Current layer bounds only", "thisServer", "Layer not found: {{0}}", " than ", "ids", "minSize", "selection", "newlayer_canvas", "abs", "Mask apply returned empty resource", "执行失败", "usedParams", "Select Source", "getBestMatchFromCodes", "listWorkflows", "schema id ignored", "state", "signal", "source", "extend", "resourceName", "控件 {0} 转换失败:", "素材同步中", "Auto fetching…", " < ", " return errors === 0; ", " } else { ", 'unknown format "', "All", "MissingRef", "Generating", "Request timeout (408)", "Edge references unknown source node: ", "setupStreamRequestHandler", "ZodSymbol", "initializeNodeStores", "Method not found", "initializeResponseQueue", "strictCreate", "未实现 (501)", " = '' + ", "无效的边界类型: {{type}}", " = true; } else { ", "defaultError", " is not a valid identifier", "Please select the image to get", "keyof", "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ", "AI Generation Task", "'[\\'' + ", "exclIsNumber", "simpleTypes", " var missing", "No first related layer in {{0}}", "api/view?type=", "element", " , params: {} ", "\\$&", "移除槽位", "setupStreamResponseHandler", "ZodLiteral", '$ref: validation keywords used in schema at path "', "comfy side transport.onerror", "MiddlewareError", "Negative Prompt", "there was no format function for ", "prompts/get", "unicodeSupport", "setupStreamProtocolHandlers", "tolerant", "originalError", "prefix", "isValidLookup", "passthrough", "Shift-click or right-click to toggle auto send", "ComfyUI failed to load, HTTP status code: {{code}}", "abort", "undefined", "safeParse", "removeAdditional", "heartbeatTimeout", "/properties", "生成中", "entries", "CurLayer", " characters' ", "var pattern", " ", "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", ".replace(/~/g, '~0').replace(/\\//g, '~1')", "notifications/resources/updated", "X10", "ref/prompt", ") { var err = ", "afb", " if (!(await ", "apd", "ZodBoolean", "Auto", "schema id must be string", "varReplace", "languageChanging", "milliseconds", "catchValue", "namespace", "waiters", "reference", "This node defaults to current layer + mask", "Uploader not set", "本地视频", " ) || ", "addNamespaces", "joinArrays", ".hasOwnProperty(", "生成失败", "implementInternalAction", "syncWorkflows", "ZodEffects", "_cleanupTimeout", "implements", " ( ( ", "coerce", "use", ", deps: '", "Workflow not found", "_onerror", "请登陆后使用插件", "发送至选区", "includes", " , parentSchema: validate.schema", "ZodTuple", "_opts", "changeLanguage", "_errorDataPathProperty", " var err = ", "escapeQuotes", "[0]; ", "compositeRule", "sendResourceUpdated", "isOptional", "Current layer", "comfy-entry", "exec_info", "node_errors", "ESCAPE", " , message: '", "No backend was added via i18next.use. Will not load resources.", "innerType", "isNullable", "Range 1-100", "请填写模板名称。", " = ", 'did not save key "', "roots/list", "Failed to update the {{part}} prompt: ComfyUI connection is not ready.", " if (!", " , message: 'should be equal to constant' ", "localRefs", ")) { var err = ", "新建文档", "regex", "11973236gTtBmx", '" was not yet loaded', "missingKey", "unknown keyword: ", "invalid_string", "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", "点此获取RunningHub APIKey", "gte", "getNodes API 调用失败 - {{reason}}", " } ", "validateKeyword", "ComfyUI - {{workflowName}}", "图层 {{0}} 不是一个组", "object", " ) { ", "readOnly", "implementAction", "选区遮罩为空", "[i], ", "await ", " } ", "_cache", "schemas", "Auto sync is off", "#FF00CC", "Overflow: input needs wider integers to process", "ltr", "Values", " , parentSchema: validate.schema", "fewer", " if (errors === ", "_error", "interpolator", " ", "Google Gemini - 图片生成", " } ", "addMiddleware", "更多设置", "file", "streamRequest", "找不到文档: {{0}}", " = errors;var ", "assign", "Expected ", "false schema", "./api/userdata/workflows%2F.index.json", "确定要删除此模板吗?", "_oninitialize", "Server does not support prompts (required for ", "notifications/initialized", "Failed to fetch form data", "网关错误 (502)", "if ( ", "清空所有", "clearItems", "humanize", "data", "Invalid input", "#CC33FF", "_key", "endsWith", "Create document", "isInteger", "toASCII", "requestIdSeq", "same-document", "handleIncomingRequest", "stopSequence", "Import as Smart Object", "objectValues", "resources/list", "Unknown message type: ", "minItems", "sd-ppp-static/sdppp_images/", " = false; break outer; } } } ", "closeHandlers", "Comfy Manager未安装,无法重启", " , message: 'can\\'t resolve reference ", "emoji", "loaded namespace ", "Auto send disabled", "openWorkflow", "2QmpWEO", "graph", "Click to remove local file", "[^\\%\\/\\@]", " || Object.keys(", "startHeartbeat", "host", " if ( ", "Template name already exists.", "PCT_ENCODED", "Create guide frame", "reverse", "week", "handleIncomingMessage", "#99CC33", "isOpen", "{2}", "isURL", "cuid2", " not found on node ", ".validate; var ", "__internal_requestInitialState_", ".dataPath = (dataPath || '') + ", "sendResourceListChanged", "type", "more than", " , schemaPath: ", "Boundary preview", "positive", "该节点默认继承当前图层与遮罩", "warn", 'key "', "]; } ", "base64url", " === null) ", "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", "Crop by selection", "customRules", "next", "mesh:workflow", "(\\.\\d+)?", "处理进度 {{processed}}/{{total}}", " var err = ", "自动填入画布关闭", "4mCXhQZ", "init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting", "parseMissingKeyHandler", "ZodArray", " ( ", "插件可能正在拦截 PS 快捷键... ", "整个画布", "/type", "$data", "sendLoggingMessage", "smartobject", "{0,5}", "#9933CC", "Fetch current layer with primary boundary", "schema", " */", "Fetch canvas with current-layer boundary", "#00CC66", "isBase64", " = +", "12BierTQ", "manuallyExtractDefaults", " !== undefined && typeof ", "propsKeywords", "tools", "Input Setting", "Notification interceptor failed for ", "logging/setLevel", ".data = ", "#/definitions/nonNegativeInteger", "新建模板", "It seems you are nesting recursively key: ", "[^\\%\\/\\:\\@]", " === undefined || ", "快捷键选图功能仅在插件窗口聚焦时可用", " && Object.prototype.hasOwnProperty.call(", "工作流打开中", "%[89A-Fa-f]", "maximum", "AbortSignal is already aborted", "Set as Current Selection", "ZodNaN", "favorites", "getRule", "xmn", "ZodReadonly", "completion/complete", "#CC6633", " = new RegExp(", "setNotificationHandler", ", received ", "longer", ".validate", "defaults", "pick", "lngs", " , params: { propertyName: '", "IPV6ADDRESS", """, "isEmpty", "4036550PWSvBD", "_progressHandlers", "_formats", "请输入您的 Google API Key", "&subfolder=", "keywordValidate", "mountedTransports", "res", "Invalid action: {{action}}", "sdppp/broadcast", "Bounds", "forwarded", "Image quality (%)", "completed", "some", "useCustomRule", ") { var op", "getClientVersion", "No images", " && ( ", "#CC9933", "heartbeatTimer", "More actions", " = errors === errs_", "usedNS", "valid", "nestingRegexp", "[^0-9]", "const", "Choose File", "exact", "interceptorTimeout", " in ", "创建预览文档", "store:update:", "contextualErrorMap", "stringify", "Empty selection mask", "initImmediate", "modifying", "自动填入画布开启", "0?[1-9]", "[BroadcastManager] Error forwarding broadcast:", " = true , j; if (i > 1) { ", "Invalid function return type", "now", "$ref", "_getId", "保存提示词模板失败。", "setupTransportHandlers", " already exists, which would be overridden", "nodeTransports", "本地图片包", "(会员专属)", " else throw new ValidationError(vErrors); ", "Invalid boundary type: {{type}}", " , message: 'should NOT have ", "typeName", "hasLoadedNamespace", "[A-Za-z]", "aao", "__nwjs", " var errs_", `获取图像 & +裁剪选区遮罩`, "(.+?)", "?\\]?$", "getConnectionInfo", "getCapabilities", "Plugin window focused required to use keyboard shortcut", "显示发送的图片", "iterator", "zero", "上传已中止", "自定义AI工作流引擎", "constructor", " failed", "subfolder", " else if (", 'no schema with key or ref "', "Failed to fetch account status", "]; if (", "Login Successful", "mergeArray", "preprocess", "color", "years", "hijacked", "toJSON", "notifications/tools/list_changed", "zh-CN", "inclusive", "#FFCC33", "无法打开图像文件: {{error}}", "选择 AI 服务提供商", "queuePrompt", "#00CCCC", " = errors; ", "Not connected", ") { ", "Cycle detected: ", "仅选区范围", "Document {{0}} not found", " }; return validate; ", "使用教程", "userDefinedNsSeparator", "useColors", "RunningHub - {{webappId}}", "call", "非当前文档", "服务器错误 (500)", "listenMessageCallback", "#0066FF", "rejecting language code not found in supportedLngs: ", "Fetch current layer with current-layer boundary", "isSupportedCode", "initialized", "abh", "syncStoresToNewConnection", "uploadImage API 调用失败 - HTTP 错误,状态: {{status}}", "messages", "notificationsHandled", "Save current", "]; } else { ", "点击恢复默认边界", "after app.queuePrompt errors: ", "Task incomplete, current status: {{status}}", "设为当前选区", "defaultValue", " = typeof ", "MethodNotFound", "schemaId", " cannot be resolved", "accessing an object - but returnObjects options is not enabled!", " errors = ", "#CC00FF", "Node not found", "ZodVoid", "userDefinedKeySeparator", "AUTO", " = true; ", "run", "post", "run API failed - HTTP error! status: {{status}}", "NOT_QUERY", "strict", "detect", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "prompts/list", "async", "invalid_literal", "[^\\%]", "exclusive", "put", "validation failed", "#3333CC", "charCodeAt", " == 'function' ? ", "http://json-schema.org/draft-07/schema", ".length <= ", "parse", "getImage", " !== undefined ", "optionsMap", " ) ", "Outgoing request interceptor failed: ", "getHandler", "trim", "Status check aborted", "hasError", "mergeObjectSync", "#FF3399", "has", "schemaPath", "maxRetries", "Add Template", "exception_message", "out", "_parseSync", "writeOnly", "?\\:\\:", "usePattern", " = !(false ", "minutes", "saveMissing", "/%2F", "var default", "examples", "Array must contain ", "停止并取消全部", "acx", " !== undefined) ; ", "regexpUnescape", "#3300CC", "反向裁剪(Inpaint)", " , params: { allowedValue: schema", " ? '", " = undefined;", "unknownKeys", "coerced", "pop", "registerDirectRequestHandler", "Google Gemini Image Generator", "loopRequired", "Synchronous parse encountered promise.", "2024-11-05", "executeHandlerAsync", "NOT_USERINFO", "#CC00CC", "Failed to send an error response: ", "add", "/additionalProperties", " === undefined) ", "disconnected", " + ']'", "Image input and prompt are required", "文件未找到: {{path}}", "当前选区", "Upload from disk", "ZodNullable", "translator", "BigInt must be ", ".schema = ", "fast", "logging", "stack", " if (true) { ", "本节点默认继承:", "ComfyUI 未就绪", "lastIndexOf", "load", "unescapeFragment", "New Template", "sec", "Please provide a template name.", "]] !== undefined ", "parseInt", "init: no languageDetector is used and no lng is defined", "key '", "You must pass an array of schemas to z.tuple([ ... ])", "isIP", "inlineRef", "addResources", "false", " = errors; ", "cacheInBuiltFormats", "refVal[", "InvalidRequest", "extractFromKey", " } }", "validation", " try { await ", "node_id", "NumberFormat", "设为当前图层", "saveWorkflow", "destroy", "ZodError", "resolveComponents", "Failed to connect to ComfyUI (HTTP {{code}})", " , params: { property: '", "_cached", "checkDataType", "prompt_id", "startsWith", "position", "点我恢复", "en-US", " if (", "pbu", "less than or equal to", ", rootData) ", "Fit to canvas", "one", "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "getKeyword", "Action handler ", "pluralResolver", "formData", "Download", "结果获取已中止", "convert widget {0} failed:", " var ", "uploadComfyImageFromUXP", " validate.errors = [", "resources", " when property ", "#6633FF", " var isAdditional", "Back", "]] === undefined ", "#FF6633", "setOutgoingNotificationInterceptor", "ckb", "Click to use current selection", '[\\"]', "execution_start", "sessionId", "requestId", " == 'boolean' || ", ".test(", "elicitation", "_addCheck", "missingSchema", "cleanCode", "当前选项:画布", "未知错误({{code}})", "选区遮罩", "未授权 (401)", "#FF3333", "getValidEnumValues", "var refVal", "validateHandlerType", "调整预览文档尺寸", "Show sent images", "buildAdjacencyList", "split", "code", " = errors; var ", "getConnectedNodeIds", "returnedObjectHandler", "arq", "bind", "Manage reusable prompt snippets for Comfy Simple workflows.", "shu", "contentEncoding", "tools/call", "widgetableStructure", "i18next/PATH_KEY", "image/png", "No preview content yet", "自动同步中…", "边界预览", "at most", "pctDecChars", "body", "_refs", "nestingPrefix", "removeEventListener", "pctEncChar", "jpr", "usedKey", "Using local file", "get_layer_info: 需要 layer_identify", "\\' is invalid' ", " } else { errors = ", "message", "handleAsObject", "Success", ") ) ", "postProcessPassResolved", "Generate", "mcpMesh", "uri", "xaa", " , schema: validate.schema", "MIN_SAFE_INTEGER", "pipe", "toFixed", "getResourceBundle", "Keyword ", "选择素材来源", "AI使用的区域与最大尺寸控制", "{3}", " should be boolean' ", ' !== "object")', ", '", "Remove video", "actions:util", "errors", "close", "dataType", "No errors", 'Invalid input: must start with "', ".dataPath === undefined) ", "不支持非文本图层: {{0}}", "initializeConsumer", "如何获取APIKey", "getItem", "inlineRefs", "Create document failed", "#FFCC00", "Canvas", "已选择", "{5}", "run API failed - nodeInfoList unavailable. Please call getNodes() first.", "#FF0000", "ZodMap", "properties", "点击使用当前选区", "Sync current content", "_getCached", "originalQueuePrompt", "_responseHandlers", "resolveRunImages", " ) ", "logger", "comfy-uxp", "options.loadSchema should be a function", "getFallbackCodes", "modules", "2[0-4]", "isFinite(", "])) { ", "MissingRefError", " !== undefined) { ", " === undefined ", "#00CC33", "_setupTimeout", " for (var ", "Click to restore default mask", "initAsync", "output", "Node definition not found for current node ", "{0,3}", "$schema", "race", "services", "curr", "Meta-schema for $data reference (JSON Schema extension proposal)", "json-pointer", "dir", "#0000FF", "errToObj", "缺少遮罩资源", "backend", '"number"', "comfy", "正在创建任务...", "void", "api", "Google Gemini - Image Generation", "async ", "arb", "Loading...", "addIssue", "Unknown", "time", "isInitialized", "jsonStringifyReplacer", "queueLoad", "buildDirectedAdjacencyList", "pendingCount", "email", "info", "Sending...", " validate.errors = null; return true; ", "refine", "initializeProducer", "max", "Selection bounds only", "ZodBranded", "Action {{0}} was not found", "ZodCatch", "then", ") { for (var ", "pong", "连接 ComfyUI 失败(HTTP {{code}})", "formatParams", "OpenAI API error", "sam", "Cloud-based model service platform", "Number must be finite", "SDPPP 2.0 不再需要此节点", "custom keyword definition is invalid: ", "; if (vErrors !== null) { if (", "activeState", "namespaces", "schema should be object or boolean", "1.0.0", "退出登录", "text", "~standard", "默认模板", "Fit to current layer", "returnDetails", "无法从文件创建文档", "IPV4ADDRESS", "cuid", "Not implemented (501)", "multipleOf", '$ref: keywords ignored in schema at path "', 'Invalid input: must end with "', " != 'number') || ", "hasLoadedNamespace: i18next was not initialized", "loadNamespaces", "Create document for preview", "Validation", "[object RegExp]", "nest", "获取表单数据失败", "interpolationkey", "int", "userinfo", "[vV]", " == null) ", "No default templates available.", "simplifyPluralSuffix", ")) { if (vErrors === null) vErrors = ", "process", "No limit", "transform", "markDisconnected", "headers", "weeks", "_compile", "_metaOpts", "./sdppp-custom.js", "You are passing an undefined module! Please check the object you are passing to i18next.use()", " = null; try { ", " && Object.prototype.hasOwnProperty.call(", "NOT_PATH", "3120132dSnBaN", "Save and run immediately", "Images Per Batch", "replace", "sdppp 运行 Photoshop Action", "addIssues", "Local image pack", "Edit Template", "Send to Selection", "closeWorkflow", "run API failed - {{reason}}", "setNodeTitle", "#FF0033", "val is not a non-empty string or a valid number. val=", "ZodEnum", "Get pixel of {{0}} failed", "getTransportToNode", "errorHandlers", "maxReplaces", " === '' || ", "RelativeTimeFormat", "Reset", "Reverse", "ars", "widgets", "propertyNames", "invalid_union_discriminator", "Current selection: Canvas", " !== undefined)", "Current option: File", "Heartbeat timeout for poster ", "getProtocol", "extendTranslation", " || ! Object.prototype.hasOwnProperty.call(", "Idle", "Auto Sync: on", "useRawValueToEscape", "Failed", "智能对象图层", "clone", ") { errors = ", "_limit", "messageType", "NOT_FRAGMENT", "' + ", " var startErrs", "14203VlqVGP", "xn--", "#0033CC", "dataPath", "No active document", " !== parseInt(division", "No custom templates yet.", "; else if (", "escapeValue", "Template name", "errorMap", "precheck", "jsonPointers", "_schemas", "Primary boundary", "设为选区", "Server does not support tools (required for ", "Timeout", " ms", "Add slot", "ZodNativeEnum", "count", "method", "sampling", "registerDirectRequestHandlerGeneric", "Current layer bounds", "上传失败,请重试", "Unexpected dot segment condition", "exactly", "_limitProperties", "hasDefaultValue", "notifications/message", "ComfyUI加载中...", "onerror", "找不到图层: {{0}}", " not implemented for node ", "posterIdentifier", "NOT_HOST", "显示预览框 ({{count}}张图片)", "[\\-\\.\\_\\~]", "endTurn", " instanceof RegExp) && ", "Hold Shift for more options; Ctrl for single fetch", "setupGraphStoreSync", "Sending all images...", "Save", "augment", "refVal", " var err = ", "shape", "正在发送所有图片...", "unsetNotificationHandler", "nsSeparator", "_def", "pluralSeparator", "delete", "Close", "fallback", "locale", "errs_", `Get image & +Limit image boundary`, ") vErrors.length = ", "Discriminator property ", "图像质量 (%)", "isNANOID", "lng", "输入设置", "capabilities", " = false; ", "findPath", "))) { ", "assistant", "++) { ", " validate.errors = vErrors; return false; ", "Quick", "push", "无法写入{{part}}提示词:ComfyUI 尚未就绪。", "toLoad", " , message: 'should have ", "ssh", "assertNever", "海量模型,稳定服务", "invalid_arguments", "util", "_options", "isHeartbeatEnabled", "; else vErrors = null; }", "processCode", "#0099CC", "#/definitions/stringArray", "Stop all", " if (rootData === undefined) rootData = data; ", "Auto run after canvas change", " var errors = 0; ", "connectedNodes", "请选择AI服务", "fullPath", "extra", "_limitItems", "[j])) { ", "getDefaultValuesFromSchema", " self._opts.$comment(", "Comfy侧SDPPP版本({{comfyVersion}})与插件({{pluginVersion}})不匹配,运行可能有问题", "nan", "requestInitialStateForNode", "主图边界", "PS遮罩", "_getInvalidInput", "rootData", " must be number", "Prompt Templates", "keyType", "Locale", "remove", "暂无可用工作流。", "isDatetime", "init", "Retry", " for language ", "table", ".patternProperties", " , params: { additionalProperty: '", "no plural rule found for: ", " , message: 'should match some schema in anyOf' ", "正在发送图像...", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (", " === 1) ", "exclType", "新增槽位", " , params: { missingProperty: '", "$schema must be a string", "不支持的图像输入类型", "Action ", "请输入质量百分比", "options", "minimum", "#/definitions/schemaArray", " var vErrors = null; ", "Create document for sent images", " is present' ", "alwaysSet", "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", "newdoc", " == 'object' && !(", "failing", ", exclusive: ", "dirty", "正在发送...", "enabled", "canvas", "isArray", "Task execution failed: {{error}}", "Running for {{duration}} secs, {{message}}", "forkResourceStore", "Desire bounds is null", "bbz", "http://json-schema.org/draft-07/schema#", "regExpQueue", "refs", "任务执行失败", " } } ", "fullFilename", "wss", "emit", "maxProperties", " var schema", "More Settings", ") break; } ", "is a required property", "uxpHost", "Failed to update the {{part}} prompt: no matching widget binding.", "value", "uxp", "ComfyUI server reconnecting", "boolean", "should have required property \\'", "logout", "fatal", "Failed to apply template.", " = errors;", "尺寸限制 (px)", "ZodNumber", "http", ") {", "Negative prompt content", "Email address's domain name can not be converted to ASCII via punycode: ", "ucs2length", "Set as Current Layer", "run API 调用失败 - {{reason}}", "' , dataPath: (dataPath || '') + ", "Invalid ", "Enter your RunningHub API Key", "sdppp/abort", "Upload failed, please try again", "processors", "sourceType", " == errors) {", "waitingReads", "required", "left", "isDate", "charAt", ".additionalProperties", "unknownFormats", "MAX_SAFE_INTEGER", "ZodUndefined", "getDataByLanguage", ") ? ", "addMetaSchema", "find", "遮罩应用后未得到资源", " not in path ", "#CCCC33", "notificationHandlers", "Your Workflows", " ? ", "checks", "i18nFormat", "serialize", "Validation failed but no issues detected.", "#/definitions/nonNegativeIntegerDefault0", " = false , ", "returnEmptyString", "_processInputParams", "Client does not support sampling (required for ", "missing", "Uploading...", "ZodString", "test", "errSchemaPath", "reloadResources", "__esModule", "/additionalItems", "resolved promise for", " } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ", "等待 ComfyUI 连接完成…", "valueOf", "nodes", "ZodDate", "currentNodeId", "_capabilities", "over", "质量{{percent}}%", "mergeObjectAsync", "isSafeInteger", "missingKeyNoValueFallbackToKey", "Unrecognized key(s) in object: ", " === '' ", "hasLanguageSomeTranslations", "addLookupKeys", " if (true) {", "schemaErrorMap", "changeTracker", "invalid-input", "10120310wNZKVY", "forwardBroadcast", "withTimeout", "getNeighbors", "sqr", "sort", "_path", "ayn", "ZodUnknown", "Failed to check workflow state changes:", "pre", "_onclose", ")' returned an object instead of string.", "get", "Applying templates is unavailable right now.", "query", "Scan", "_clientVersion", "notifications/roots/list_changed", "getRegExp", "^\\[?(", "other", "通道连接中...", "indexOf", " else { ", " == 'string' && ", ".validateSchema(", "image", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", "newlayer_curlayer", "; } ", " , message: 'should NOT be valid' ", "提示词内容", "promise", " (division", "def", " && !(", "notificationsIntercepted", "appendNamespaceToMissingKey", "description", "Run Photoshop Action", " if (errors === 0) return data; ", " != 'boolean' && ", "_addSchema", "OpenAI/Google 格式API", "schemaUnknownRules", "normalizeDuration", "response", "loadResources", " , schema: false , parentSchema: validate.schema", "getTransport", 'id "', "params", " } ", "backendConnector", " {} ", ".type", " + '", "Core schema meta-schema", "{0,1}", " reference.", "'else'", "ZodBigInt", " not found for current node ", "2.1.0", "interpolation", "How to get APIKey", "Converting circular structure to JSON", "padEnd", "禁止访问 (403)", "action", "ulid", "workflowManager", "A discriminator value for key `", "ctx", "Logout", "notifications/progress", "url", "Press Enter to open app: {{appName}}", "patternProperties", "nodeProxies", "/", "151545MsCbLW", "Clear guide frame", "and", "requestsIntercepted", "sdppp_widgetable_title", "relative", "=0; ", "; } var err = ", " = null; ", "Model with affordable price, abundant community applications", "{0,2}", "keyword", "key", "yhd", "men", "ignoreJSONStructure", "onprogress", "请选择要发送图像的位置", "rtl", "removeDotSegments", "ZodObject", "#FF9900", "Primary image resource is missing", " after ", "Date must be ", "isEmail", "diff", "选择模型", " , message: 'should be ", "received", "Inpaint (reverse crop)", "重启ComfyUI失败", "safe", "copy", " ) { ", "Cannot reboot because ComfyManager is missing", " for nesting ", "uploadImage API failed - {{reason}}", "separator", " != 'number') { ", "arz", "origin", "isRequest", "number", "getData", ".additionalItems", "No linked layer for {{0}}", "Layer {{0}} is not a group", "Node definition not found for ", " , message: 'should NOT be ", "Adjust input settings", "decline", "hasOutgoingNotificationInterceptor", "Notification handler failed for ", "protocolVersion", "disable", "暂无默认模板。", "选择文件", "File", "未选择工作流", "Intersect or scaledDesire is null", "getConnectionCount", "select", "[i]; ", "toResolveHierarchy", "Merge group failed", "offset", "freeze", ") { for (var ", "./api/manager/reboot", "readingCalls", "getNode", "function", "dev", "idx", "second", ") break; ", " == errors) { ", "Layer not found {{0}}", "hrs", "invalid_union", "addMessageEventListener", "isClone", "overloadTranslationOptionHandler", "peo", "Execute", "common", "toQuotedString", "removeNotificationHandler", "ZodLazy", "keySchema", "RH Coins:", "Invalid boundary: left must be less than right, top must be less than bottom", "ZodAny", " = true; else if (!Array.isArray(schema", "startTime", "definition", "114CGkDDi", "timestamp", " from id ", "parentDataProperty", "Failed to update the {{part}} prompt. Please try again.", "同步当前内容", "subject", "Number must be ", "if (!", "Channel connecting...", "任务取消失败: {{error}}", "Invalid JSON-pointer: ", "isFinite", " === true) ? ", "defaultVariables", "Unknown error", ")) ", "Client does not support elicitation (required for ", "]); ", "mins", " != 'undefined' && ", "No image returned", "Quality {{percent}}%", "additionalItems", "Layer {{layerName}}", "comfy-user", "createStreamState", "#/definitions/simpleTypes", "all", "read", "以画布边界获取画布", "workflows/", "async keyword in sync schema", "range", "ValidationError", "getProperty", "邮箱: {{email}}", "should NOT have additional properties", "Comfy.userId", "prompts", "unsetRequestHandler", "del", "loading namespace ", "网关超时 (504)", "interceptor_error", " (async", "content", "shared", "keyPrefix", "#00CCFF", "refinement", "typeof ", 'Invalid input: must include "', "Current Layer", "拖拽图片到此处松开完成上传", "getPath", "resources/templates/list", "Canvas boundary", "maxDate", "missingRef", "创建图层失败", "Cannot forward to node ", "isDuration", " throw new ValidationError([", "Full Canvas", "invalid_return_type", "给发送的图片创建文档", "_onrequest", "_clientCapabilities", "_resetTimeout", "sdpppX2", "sendToolListChanged", "length", "omit", "__proxy_forward", ".type || 'string'; if (", "[GraphStoreSynchronizer] Error broadcasting state update for ", "alert", "registerProxyForwardHandler", "_compilations", " Math.abs(Math.round(division", "INTERCEPTOR_ERROR", "{0,4}", `Get image & +Crop selection mask`, "请选择要获取的遮罩", ".validate;", "InvalidParams", "getAccountStatus API 调用失败 - {{reason}}", "validate", "needsPlural", ".else", "resolvedLanguage", "callback", "Error", "Use current selection boundary", "Images", "dataLevel", "getState", "_onnotification", "joinAs", " % 1)", "parent", "audio", "removeMiddleware", "排队等待", "ZodDiscriminatedUnion", " && self._opts.unknownFormats.indexOf(", "请选择要获取的图像", "How to get APIKey and API Secret", "Output to", "#CC3366", "arrayToEnum", "rejectImage", "刷新图片中", "sdppp/streamRequest", "_onprogress", "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!", "PS图片", "/patternProperties/", "rootId", "选区除外", "postProcess", "heartbeatInterval", "适配至画布", "getCurrentNodeId", ", (dataPath || '')", "删除模板", "访客登录成功", "app", "isInitializing", "added", "parentData", "Running", "运行中...", " = false; else if (", "粘贴你的模型名称", ") && (missing", "notificationQueue", "done", "Stop auto run", "dataVar", "#66CC00", "reboot", " properties' ", "Outpaint (positive crop)", "context", "uiLocale", " - no connection available", "objectKeys", "clientInfo", "assertEqual", "language", "floor", "brand", "min", "getAccountStatus API failed - {{reason}}", "ComfyUI not ready", "isCUID", "_timeoutInfo", "formatType", "$$$$", "timeoutId", "Auto sync in progress…", "RH币:", "当前图层除外", "errorsText", " var async", " = false; else { ", "hasOwnProperty", " if (typeof itemIndices[item] == 'number') { ", " , params: { allowedValues: schema", "uniqueItems", ") { ", "cloneInstance", "$t(", "hours", "newdoc_canvas", "获取任务状态失败", " for interpolating ", "Auto Sync: off", "addResource", "usedLng", "item", "Required", "heartbeatTimeoutTimer", "colors", "formatArgs", "jwt", " == 'number' ? ( (", "statusText", " outer: for (;i--;) { for (j = i; j--;) { if (equal(", "initialize", "自动同步: 关闭", "nonempty", "getSchema", " , params: { type: '", "failedLoading", ") { ", "true", "Model", "ifClause", "fallbackNS", "Upload failed: ", "curlayer_selection", "如何获取APIKey和API Secret", "sdppp", "setInterval", "No images yet", "[object Function]", "exports", "从 当前图层 获取遮罩", "fragment", "resourceStore", "设置图层的文本", "strictDefaults", "spa", "nodeStores", "greater than ", " element(s)", "[ ]*{", "ZodOptional", "[^\\%\\[\\]\\:]", ") ) { ", "Get API Key", "Negative Crop", "missingRefs", "#CC3333", "too_small", "local", "empty", "strictNumbers", "清除参考线框架", "broadcastHandlers", "Elicitation response content does not match requested schema: ", "你的工作流", "Unsupported image input type", "tDescription", "Mask", '" already exists', "getNodeStore", "reset=false but needsReset: ", "Failed to send response: ", "+Alt 按选区裁剪", "File upload failed", "schema $id is different from id", "Host's domain name can not be converted to ", "Failed to convert widget {0}:", "输入图像", "skips", "setProperty", "waiting for queue prompt", "missingInterpolationHandler", "exactLength", "isUUID", "$comment", "用户名: {{username}}", ".errors", '"failed to compile', "#6600FF", "getPathExpr", "hasEdge", "float", "_onresponse", "Manage reusable prompt templates", ", validate.root.schema);", "此处粘贴 WebApp ID", "clearCache", "_requestHandlerAbortControllers", " === null || ", "localeCompare", " } ", "markConnected", "提示词", " ? await ", "shorter", "openWorkflows", "secure", ".then", "ZodFunction", "catch", "not_multiple_of", "connectionManager", "cmp", "exactUsedKey", "compile", "concat", "已添加遮罩", "canReachThroughConnectedNodes", "removeRequestHandler", " , message: 'property name \\'", "nodeErrors", "ZodIntersection", "addPostProcessor", "作为智能对象导入", "任务创建已中止", ", schema", " = false; for (var ", "='; ", " , message: 'should match exactly one schema in oneOf' ", "externalListenMessageCallback", "createErrors", "notice", "Unknown error ({{code}})", "setWidgetValue", ".call(this, ", "minute", "Positive Prompt", "off", "activeWorkflow", "]) ", " = false; if (e instanceof ValidationError) ", " for (var ", "getRunningRequestsCount", "values", "never", " || validate.schema", "Failed to pick file. Please try again.", "#33CC33", "days", " return data; ", "onTimeout", "Guest login successful", "Server does not support sampling (required for ", "maxSize", "请输入您的RunningHub API Key", "; else vErrors = null; } ", "#3366FF", "names", "My Templates", "null", "cimode", ".schemaPath === undefined) { ", "Invalid graph definition: ", "invalid_enum_value", "[A-Fa-f]", " , message: 'boolean schema is false' ", "strip", "urn", "Batch Count", "abortAllRequests", "\\%25|\\%(?!", "[^\\%\\:]", "long", "responseSchema", "_limitLength", "integer", "prepareLoading", "点击恢复默认遮罩", "exclusiveMinimum", "fromCodePoint", "minLength", "formatter", "Aborted", "items", "parent schema must have all required keywords: ", "Auto send enabled", "save", "getter", "pluralCategories", "Document {0} not found", " break; ", "未找到图层 {0}", "#66CC33", "removeKeyword", "[\\/\\?]", "App ID:", "assertIs", "connecting", "OpenAI/Google format API", "observers", "Select Image Source", "extensionManager", "resource_link", "createMessage", "firebug", "resolve", " = ''; ", "resetStats", "safeParseAsync", "assertCanSetRequestHandler", "Array.isArray(", "Server does not support notifying of tool list changes (required for ", "Input Image", "Remote", "getPluralFormsOfKey", "invalid_intersection_types", "createInstance", "Clear all", "Select layer", "当前图层范围", "Invalid forward path for proxy action", "connect", "nestingSuffix", "string", "joinValues", "); for (var ", "lastPongReceived", "describe", "properties ", "_requestHandlers", "reset", "exec", "_meta", "resolvedOptions", "nonpositive", "sdppp 选中图层", "getDefaultValueFromField", "base64", "allServers", "Disk", "getTransportInternal", "unescapePrefix", "请求超时 (408)", ", received '", `" keyword validation' `, "isConnected", "; if (", "getNodes API failed - HTTP error! status: {{status}}", "less than", "No handler for streamRequestor: ", "hbo", "coerceTypes", "detection", "useDefault", "realTransport", "finite", "画布变更后自动运行工作流", "setComfyOrgAPIKey", "comfyAPI", "图层 {{layerName}}", "sdppp/directRequest", "以当前图层边界获取画布", "return", "云端推荐:", "isNotification", "getAccountStatus API failed - HTTP error! status: {{status}}", "messageHandlers", "broadcastManager", "Please select AI service", "requestHandlers", "prototype", "deprecate", "saveMissingTo", "loadLanguages", "property ", "workflows", "filter", "ZodUnion", "stream", ") || ", "3rdParty", "#CC3399", "Confirm", "pluralRulesCache", "tools/list", "skipKeywords", "OpenAI API 错误", " , params: { passingSchemas: ", "_cachedPath", " not found in graph definition", "meta", "errs__", "merge", "anyOf", "模板名称", "comfy_api_key", " throw new ValidationError(vErrors); ", "Number must be a multiple of ", "Enter Google API Key", "Auto repick from PS", "Input not instance of ", "Empty", "ActionSet {{0}} 未找到", "OpenAI - 图片编辑", "formatters", "Mask resource is missing", "mesh", "meta-schema not available", "relative-json-pointer", "missed to resolve ", "Show Preview ({{count}} images)", "setRequestHandler", "at least", "仅当前图层范围", "if (", "sdppp/streamResponse", " } else if ( ", "isLanguageChangingTo", " = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ", "Rescoped", "set", "留空表示不限", "Intersection results could not be merged", "getStats", "Creating task...", " , validate.schema", "oneOf", "negative", "#99CC00", "yds", "removeResourceBundle", "Default Templates", "File not found: {{path}}", "未知错误", "prepend", "compiling", "交集或缩放目标为空", "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", "sourceNodeId", "initializedStoreOnce", "onmessage", "_requestMessageId", "abv", " items' ", "reduce", "已限定范围", "按选区裁剪", "pattern", "regexp", "send", "组 {{0}} 中没有第一个相关图层", "创建参考线框架", "状态检查已中止", "Username: {{username}}", "Canvas bounds", "messagePoster", "请填写提示词内容。", "acq", "valueType", "ownProperties", "flags", "fail", "result", "compileAsync", "outputs API failed - {{reason}}", "getTime", "从 当前图层 获取图像", "elicitInput", " , data: ", "translation", " , schema: ", " , params: { comparison: ", "NOT_PATH_NOSCHEME", ".async; ", "Leave empty for no limit", " var itemIndices = {}, item; for (;i--;) { var item = ", "keys", "$dataMetaSchema", "cleanupConnection", "debugDisableHeartbeatResponse", "_parseAsync", "yud", "New Document", "Received a progress notification for an unknown token: ", "-latn", "expected", "timeout", "#FF6600", "proxy", "Invalid enum value. Expected ", "Local video", "resolveRef", "Action {{0}} 未找到", "iri", "No workflows available.", "#0066CC", "[^]", "Server does not support logging (required for ", "reason", "Server does not support notifying about resources (required for ", "ayh", " , message: 'should be equal to one of the allowed values' ", " if (Array.isArray(", "Prompt", "queue", "Unicode", " = equal(", "ZodPipeline", "defaultNS", "当前图层", "+Alt reversed mask", "No videos yet", "allErrors", "#33CC99", "get_layer_info requires layer_identify", "PluralRules", "jsonrpc", "当前选项:图层", "not-basic", "684027NNVwpe", "prp", "Waiting in queue", "#00CC00", "nullish", " delete ", "ayl", "outgoingNotificationInterceptors", "resources/subscribe", "Fetch canvas with primary boundary", ".length; ", "Layer mask", "catchall", "obj", "Content", " character(s)", "execution_interrupted", "ayp", "getAllReachableNodes", "Shift 点击或右键可切换自动发送", "Task cancelled", "当前没有活动图层", "addUsedSchema", "log", "protocol", "#3300FF", "_errors", "$id", "addEventListener", "Uncaught error in notification handler: ", "broadcastReceived", "范围 1-100", "schema is invalid: ", "getScriptPartFromCode", "加载中...", "resource", "[\\:\\@\\/\\?]", ".call( ", "$el", "kPanelBrightnessMediumGray", "every", "setupAbortHandler", "definitions", "#CC0000", "custom", "InternalError", "无法将文件作为文档打开: {{path}}", " , params: { failingKeyword: ", "removed", "从磁盘获取", "正面提示词", "multipleOfPrecision", "exists", "handleDirectProxyForward", "#0033FF", "valueSchema", "execution_success", "没有活动文档", "suffix", "_parse", "应用模板失败。", "Failed to check workflow changeTracker state:", "aec", "finished", "unrecognized_keys", "newlayer_selection", "escapeComponent", "AI 生成任务", " } if (", "tried", "lazycreate", ") : ", "mountTo", "resetRegExp", "append", "ignore", "ASCII", "清空选择", "Get image from Current Layer", " / ", "Store not found for ", "需要提供图像和提示词", "precision", "(队列:{{queueSize}}) {{progress}}% {{executingNodeTitle}}...", "mergeShapes", "#CCCC00", "nonstrict", "enable", "ping", "setKey", "var customRule", "async schema referenced by sync schema", "Request handler failed: ", "metaSchema", "跳转到最后一个", "++) { if (", "Request interceptor failed for ", "extendRefs", "A request handler for ", "_pendingDebouncedNotifications", "skipCopy", "notifications/cancelled", "connected", "WebkitAppearance", "forEach", "direction", "&filename=", "No crop", ";if (", "ZodSet", "ruleErr", "kind", "throwIfAborted", "Get selection", "partialBundledLanguages", "apply", " == +", "Tutorial", "images", "setItem", "Template applied.", " , params: { limit: ", "]; var ", "order", "substr", "assertCapabilityForMethod", "[BroadcastManager] Error forwarding ", "initialState", ` , message: 'should match "' + `, "currency", "unknown", " , params: { keyword: '", "missingKeyHandler", "defaultMeta", " , ", "适配至当前图层", "__origin", "extract", "actionHandlers", "root", "Import from disk", "pst", "stateUpdate", "async format in sync schema", "模板名称已存在。", "executeOutgoingNotificationInterceptor", "utils", "callValidate", "nonExplicitSupportedLngs", ")) { ", "Refresh workflow list", "smaller than", "contextSeparator", "Get image from Canvas", "yrs", "Upload aborted", "exclusiveMaximum", "req_", "#CC9900", "nodeIndexes", " = false; else {", "SCHEMES", "property", "ZodPromise", "Main Image", "Click to get RunningHub APIKey", "addSchema", "以主图边界获取画布", "checkState", " === 0 || ", "masks", "清除视频", "capacity", "尚未配置 ComfyUI 连接,请先设置地址。", "Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.", "getNodes API 调用失败 - HTTP 错误,状态: {{status}}", "getNodeIds", "sourceCode", `"' `, "asyncIterator", "msec", "useDefaults", "Email address's domain name can not be converted to ", "toString", "optional", "按住 Shift 键以新文档方式导入", "outgoingRequestInterceptors", "负面提示词", "root.refVal[0]", "resources/read", "format", "Please select the mask to get", "sdppp-heartbeat", "Local file", "非法的名称: {{0}}", "\\:\\:", "当前没有可用图层", "toStringTag", " if (schema", " is loaded but ", "; ", "cleanup", "queues", "registerStreamRequestorHandler", "loadOne", "uploadImage API 调用失败 - {{reason}}", "服务不可用 (503)", "style", "Running...", "mesh:comfy", "_loadingSchemas", "elicitation/create", "rest", "keyword schema is invalid: ", "选择文件失败,请重试", "Failed to load workflows.", "设为画布", ` , message: 'should pass "`, "removeNamespaces", "removeCatch", "userAgent", "Failed to get result: {{error}}", "notification", "success", "#CC0099", "encountered", "Modify", " = true; if ( ", "Cannot register capabilities after connecting to transport", " + '\\']'", "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", "interrupt", "++) if (equal(", " === null || (", ") - division", "Failed to open file as document: {{path}}", "#CC3300", "loadSchema", "varOccurences", "not_finite", "overflow", "isTransportReady", "click to restore", "typ", "Source", "datetime", "dataProperties", "ComfyManager not found, cannot reboot", "正在上传...", "Unable to reboot ComfyUI", ") == -1 ", "reconnecting", "nullable", "right", "slice", "nid", "[GraphStoreSynchronizer] Error processing store update for ", "retryTimeout", "Entire Canvas", "基础 URL", "ZodDefault", "passContext", "actionManager", "Connecting to ComfyUI...", " = validate.schema", "Enum", " = formats[", "https", "isCUID2", "Refresh", "Workflow stopped by user", "Error compiling schema, function code:", "%[EFef]", "Generating...", "4296EdXUBt", "schemaHasRules", "_fragments", " ); if (isAdditional", "invalid_type", "Invalid name: {{0}}", "使用整个画布", "hasRequestHandler", "transports", "toUpperCase", "wait", "env", "运行失败 - 未获取到 nodeInfoList,请先执行 getNodes()。", "Prompts", "languageOnly", " else { ", "validateSchema", "filename", " if (!", "正在连接 ComfyUI...", "detectCycles", "removeMessageEventListener", "获取像素失败: {{0}}", "#33CC00", "{6}", "') ", "transport", "_notificationHandlers", " { keyword: '", "不支持的上传类型:{{type}}", "当前任务数:", ") continue; ", "readonly", "parentElement", "Cancel", "not", "alg", "__cycle__", " in key: ", "暂无图片", `" won't get resolved as namespace "`, " } if (errors === ", "', depsCount: ", "exactly equal to ", "opts", "'].definition; var ", "symbol", `((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)`, "fromCharCode", "Defaults using", "array", "自动同步未打开", "Send all", " === undefined) { ", "getSuffixes", "_transport", "selectColor", "customRule", "[\\:\\@]", "auto", "exception", "init: i18next is already initialized. You should call init just once!", ") && ", "No workflow selected", "size", "createAsyncIterator", " = undefined; ", "formatSeparator", " = false;for (var ", "_instructions", " = false; ", "edges", "getFixedT", "issues", "validate.schema", "broadcast", "Select a model", "verbose", "Refreshing preview...", "requestsHandled", "DEBUG", "#0000CC", "nodeId", " && !", "/required", "自动取图中…", "mcp-mesh-router", "_regex", "每批图像数", "findPathInternal", "maxLength", "保存并立即执行", "Fit to selection", "notifications/resources/list_changed", "parsedType", "fallbackLng", "safeValue", "getAccountStatus API 调用失败 - HTTP 错误,状态: {{status}}", "getSuffix", "default", "round", "编辑模板", "maxTotalTimeout", "暂无视频", "validateStreamRequestorRequest", "getDefinition", "_serverInfo", "execution_error", " != 'string') || ", "isNaN", "nss", "aborted", "openWorkflowJSON", "isULID", "本地文件", "221lYQoTA", "revocable", "UUID is not valid.", "acy", " : ", "Send to PS", "assertNotificationCapability", "pathname", "hostVersion", "errorPath", "Graph must have at least one node", "removeSchema", "删除当前", ".length ", "join", "~validate", "clear", "_refinement", "addFormat", "exclude", "=== Options ===", "maxTokens", "[MCPMiddleware]", "graphInstance", "Received host version from UXP:", "reload", "debug", "error", "ComfyUI加载失败,HTTP状态码:{{code}}", '" is used in schema at path "', "user", "lte", "(typeof ", "任务已取消", "No store found for node ", "Current", "Auto-run workflow after changes...", "Failed to save prompt templates.", "setState", "store", "Failed to open image file: {{error}}", "createWithPreprocess", "from", "shift", "/*# sourceURL=", "sdppp_assets", "ZodRecord", "pending", "effect", "Unsupported upload type: {{type}}", "self", "Import as New Document", "RequestTimeout", "index", " = true; ", "Incoming message:", "停止自动运行", "documentElement", "#CC0033", "hasOutgoingRequestInterceptor", "#6600CC", "else", "nestingOptionsSeparator", "splice", "Paste your model name", "_unknown", "normalizeId", "cycles", "isBase64url", "date-time", "__DEFAULT__", " }; return validate;", "isEmoji", "apc", "formatLanguageCode", "Invalid proxy forwarding: current node ", "URI is not a ", " == '", "Please provide prompt content.", "无法写入{{part}}提示词:未找到对应控件。", "setLimit", "Opening workflow", " || ", " -> ", "OpenAI - Image Edit", "day", "escapeFragment", "setupGeneralBroadcastHandler", "正在等待图片上传...", ` , message: 'should match pattern "`, "Base URL", "escape", "URN can not be parsed.", "选择工作流", " ucs2length(", " , rootData ) ", "maxParallelReads", "Internal error", "clearHeartbeatTimers", "var ", "模板已应用。", "debouncedNotificationMethods", "preload", "outputs API failed - HTTP error! status: {{status}}", "handle", "languageChanged", "full", "Template removed.", "lowerCaseLng", "strictKeywords", "json", "画布范围", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ", "duration", " else ", "languages", "pickLocalFile", "isCIDR", "#FF33CC", "]; return false; ", " , message: 'should NOT have more than ", "Connect", "++) { vErrors[", "'[' + ", "updateKey", "RULES", "streamRequestorHandlers", "#33CC66", "equal", "刷新工作流列表", "interpolate", "Shortcut selection feature requires login", "setupNodeBindings", "forward", "ParseError", "minDate", "); if (!", "translate", "#33CCCC", "未返回图片", "dependencies", "keywords", "点击移除本地文件", "applyPostProcessor", "curlayer", "toUnicode", "prevValid", "widgetable", "getPrototypeOf", "superRefine", "Gemini 2.5 Flash Image", "regExpMap", "%25", "Crop", "dataPathArr", "secs", "storage", "stats", "ordinal", "Layer", "Select AI Service Provider", "自动获取中…", "Invalid date", "sendStreamRequestorRequest", "Task creation aborted", "alwaysFormat", "Syncing assets", "macro", "Please select the position to send image", "_getOrReturnCtx", "uri-reference", "additionalProperties", " } } ", "Run", "createTemporary", "mountedEndpoints", '" resolves to more than one schema', "2025-06-18", "Copy", "acw", "Are you sure you want to delete this template?", "ZodNever", "languageUtils", "Cannot access data ", "fcName", "loaded", "缺少主图资源", "workflow", ") break; } ", "onclose", "loadGraphData", "ary", ` if (typeof item == 'string') item = '"' + item; `, "自动同步: 开启", "]; ", "Selection", "getHandlerTypes", " via punycode: ", "Error handling incoming message:", "; var ", "当前无法应用模板。", "nanoid", "messageQueue", "批次数量", "removeDefault", "%c ", "progress", "Current Selection", " && ", "failed parsing options string in nesting for key ", "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF", "hasResourceBundle", "Resize document for preview", "生成中...", "NOT_SCHEME", "substring", "level", "console", "baseId", "cancelled", "Sending image...", " , message: 'should be multiple of ", "https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js", "WARNING DEPRECATED: ", " , (dataPath || '')", "getLanguagePartFromCode", "510", "registerHandler", "notifications/prompts/list_changed", "选择边界", "currentOnly", "create", "cidr", "执行成功", "isObject", '.schemaPath = "', " = true; break; }", "path", "contains", "oninitialized", "stopAll", "too_big", "resetTimeoutOnProgress", "name", "' } ", "comfyAPI is not initialized, maybe comfyUI is too old", "Action set {{0}} was not found", "++) { var ", "unwrap", "[UnexpectedJSONParseError]: ", "Invalid discriminator value. Expected ", "Gemini 2.5 Flash 图像", "getTextInfo", "uuid", "Stop", "Uploading, if the image too large, may be lag...", " === false || ", ") { if (vErrors === null) vErrors = ", "Open images from file", "mailto", "getNodes API failed - {{reason}}", "title", "Fetch current layer with canvas boundary", "__connection_established", "Module", "Error in broadcast handler for ", "画布变动后自动运行", "[\\+\\-\\.]", " == 'string' || ", "Delete", "hour", "更多操作", "9RTTMLL", " | ", "以画布边界获取当前图层", "absolute", "domainHost", "Task execution failed", "rules", "executed", "Use current layer", "新图层", "maxItems", " , params: { pattern: ", "toLowerCase", "ajv", "' : '", "prompt_ids: ", "./sdppp_upload2", "__proto__", "more", "未配置上传器"]; + return qx = function() { + return o; + }, qx(); } var Dt, Kr; -function Tc() { +function _2() { return Kr || (Kr = 1, Dt = function(x, t, r) { const e = K; - var s = " ", n = x[e(1552)], i = x[e(2547)], c = x[e(2555)][t], u = x[e(2443)] + x[e(1011)][e(981)](t), d = x[e(2624)] + "/" + t, f = !x.opts.allErrors, l, b = "data" + (i || ""), h = "valid" + n, m = e(2451) + n, v = x[e(1835)][e(399)] && c && c[e(399)], k; - v ? (s += " var schema" + n + " = " + x[e(1011)].getData(c[e(399)], i, x[e(1885)]) + "; ", k = e(2555) + n) : k = c; - var I = this, A = e(2814) + n, T = I[e(2814)], R = "", P, N, _, D, j; - if (v && T[e(399)]) { - j = e(872) + n; - var F = T.validateSchema; - s += e(2007) + A + e(1666) + t + e(2798) + j + e(2473) + A + e(444); + var s = " ", n = x[e(2454)], i = x.dataLevel, c = x[e(224)][t], u = x[e(442)] + x[e(910)][e(1295)](t), d = x[e(1056)] + "/" + t, l = !x[e(2167)].allErrors, f, b = e(2887) + (i || ""), h = e(295) + n, m = e(1721) + n, v = x[e(2167)][e(218)] && c && c[e(218)], k; + v ? (s += e(992) + n + " = " + x[e(910)][e(1207)](c[e(218)], i, x[e(2392)]) + "; ", k = "schema" + n) : k = c; + var E = this, q = "definition" + n, T = E[e(1259)], C = "", P, F, D, j, O; + if (v && T[e(218)]) { + O = e(275) + n; + var N = T.validateSchema; + s += e(551) + q + " = RULES.custom['" + t + e(2168) + O + e(2821) + q + e(1345); } else { - if (D = x[e(462)](I, c, x[e(2555)], x), !D) return; - k = "validate.schema" + u, j = D[e(1172)], P = T[e(1759)], N = T.inline, _ = T[e(1799)]; + if (j = x[e(285)](E, c, x[e(224)], x), !j) return; + k = e(2197) + u, O = j.code, P = T[e(1544)], F = T[e(2730)], D = T[e(2405)]; } - var C = j + e(233), H = "i" + n, U = "ruleErr" + n, z = T[e(1973)]; - if (z && !x[e(1973)]) throw new Error(e(1838)); - if (!(N || _) && (s += "" + C + " = null;"), s += e(1186) + m + e(2023) + h + ";", v && T[e(399)] && (R += "}", s += e(851) + k + " === undefined) { " + h + " = true; } else { ", F && (R += "}", s += " " + h + e(2473) + A + e(1662) + k + e(2824) + h + e(185))), N) T[e(1512)] ? s += " " + D.validate + " " : s += " " + h + e(2473) + D[e(2621)] + "; "; - else if (_) { - var G = x.util[e(1965)](x), R = ""; - G[e(1552)]++; - var i0 = e(614) + G.level; - G[e(2555)] = D.validate, G[e(2443)] = ""; - var u0 = x[e(1187)]; - x.compositeRule = G[e(1187)] = !0; - var l0 = x[e(2621)](G)[e(575)](/validate\.schema/g, j); - x.compositeRule = G[e(1187)] = u0, s += " " + l0; + var R = O + e(1516), L = "i" + n, $ = e(1959) + n, z = T[e(418)]; + if (z && !x.async) throw new Error(e(1292)); + if (!(F || D) && (s += "" + R + " = null;"), s += e(2337) + m + e(2872) + h + ";", v && T[e(218)] && (C += "}", s += " if (" + k + e(2176) + h + e(2659), N && (C += "}", s += " " + h + e(2821) + q + e(1107) + k + e(2746) + h + e(1432))), F) T.statements ? s += " " + j[e(1348)] + " " : s += " " + h + " = " + j.validate + "; "; + else if (D) { + var G = x[e(910)][e(1196)](x), C = ""; + G[e(2454)]++; + var ce = e(295) + G[e(2454)]; + G.schema = j[e(1348)], G.schemaPath = ""; + var ue = x[e(2807)]; + x[e(2807)] = G.compositeRule = !0; + var fe = x.validate(G)[e(784)](/validate\.schema/g, O); + x[e(2807)] = G[e(2807)] = ue, s += " " + fe; } else { - var o0 = o0 || []; - o0.push(s), s = "", s += " " + j + e(1476), x[e(1835)][e(2264)] ? s += e(1443) : s += "self", P || T[e(2555)] === !1 ? s += e(366) + b + " " : s += e(366) + k + " , " + b + e(379) + x.schemaPath + " ", s += e(708), x[e(2886)] != '""' && (s += " + " + x[e(2886)]); - var f0 = i ? e(909) + (i - 1 || "") : "parentData", k0 = i ? x[e(1885)][i] : "parentDataProperty"; - s += e(366) + f0 + e(366) + k0 + e(1682); - var S0 = s; - s = o0.pop(), T[e(1672)] === !1 ? (s += " " + h + " = ", z && (s += "await "), s += "" + S0 + "; ") : z ? (C = "customErrors" + n, s += e(2007) + C + e(2164) + h + e(388) + S0 + e(1972) + h + " = false; if (e instanceof ValidationError) " + C + " = e.errors; else throw e; } ") : s += " " + C + e(1481) + h + " = " + S0 + "; "; + var oe = oe || []; + oe[e(902)](s), s = "", s += " " + O + e(1886), x[e(2167)][e(2110)] ? s += "this" : s += "self", P || T[e(224)] === !1 ? s += " , " + b + " " : s += e(1983) + k + e(1983) + b + e(1755) + x[e(442)] + " ", s += e(2462), x[e(2247)] != '""' && (s += e(2721) + x[e(2247)]); + var le = i ? e(2887) + (i - 1 || "") : e(1391), ke = i ? x[e(2392)][i] : e(1263); + s += e(1983) + le + e(1983) + ke + e(2333); + var ye = s; + s = oe[e(469)](), T[e(638)] === !1 ? (s += " " + h + e(2821), z && (s += e(2850)), s += "" + ye + "; ") : z ? (R = "customErrors" + n, s += e(551) + R + e(778) + h + " = await " + ye + "; } catch (e) { " + h + e(1570) + R + " = e.errors; else throw e; } ") : s += " " + R + e(1171) + h + " = " + ye + "; "; } - if (T.modifying && (s += e(851) + f0 + ") " + b + e(2473) + f0 + "[" + k0 + "];"), s += "" + R, T[e(614)]) f && (s += e(495)); + if (T[e(309)] && (s += e(537) + le + ") " + b + e(2821) + le + "[" + ke + "];"), s += "" + C, T[e(295)]) l && (s += " if (true) { "); else { - s += e(1261), T.valid === void 0 ? (s += " !", _ ? s += "" + i0 : s += "" + h) : s += " " + !T[e(614)] + " ", s += e(185), l = I[e(1235)]; - var o0 = o0 || []; - o0.push(s), s = ""; - var o0 = o0 || []; - o0[e(452)](s), s = "", x[e(1715)] !== !1 ? (s += e(1588) + (l || "custom") + e(2767) + x[e(2886)] + e(1347) + x[e(1011)].toQuotedString(d) + e(1642) + I[e(1235)] + e(2862), x[e(1835)][e(1793)] !== !1 && (s += e(632) + I[e(1235)] + e(2425)), x[e(1835)][e(1219)] && (s += e(1319) + u + e(1452) + x[e(2443)] + e(1227) + b + " "), s += e(1334)) : s += e(1230); - var M0 = s; - s = o0.pop(), !x.compositeRule && f ? x.async ? s += e(1086) + M0 + e(956) : s += e(651) + M0 + e(2753) : s += e(2467) + M0 + e(1899); - var F0 = s; - s = o0.pop(), N ? T.errors ? T.errors != e(2391) && (s += e(2449) + H + "=" + m + "; " + H + " this[r(2692)](s)), this[r(1472)](an, () => { + super(t), this[r(2229)] = x, this._capabilities = (e = t == null ? void 0 : t[r(894)]) !== null && e !== void 0 ? e : {}, this[r(2192)] = t == null ? void 0 : t.instructions, this[r(1741)](sn, (s) => this[r(2878)](s)), this[r(259)](nn, () => { const s = r; var n; - return (n = this.oninitialized) === null || n === void 0 ? void 0 : n[s(1994)](this); + return (n = this[s(2477)]) === null || n === void 0 ? void 0 : n[s(377)](this); }); } - [a(2784)](x) { + registerCapabilities(x) { const t = a; - if (this[t(2562)]) throw new Error("Cannot register capabilities after connecting to transport"); - this[t(690)] = ec(this[t(690)], x); + if (this[t(2149)]) throw new Error(t(2077)); + this._capabilities = a2(this[t(1067)], x); } - [a(1404)](x) { + [a(1974)](x) { const t = a; var r, e, s; switch (x) { - case t(889): - if (!(!((r = this[t(2217)]) === null || r === void 0) && r.sampling)) throw new Error("Client does not support sampling (required for " + x + ")"); + case "sampling/createMessage": + if (!(!((r = this[t(1328)]) === null || r === void 0) && r[t(850)])) throw new Error(t(1051) + x + ")"); break; - case t(221): - if (!(!((e = this[t(2217)]) === null || e === void 0) && e.elicitation)) throw new Error(t(610) + x + ")"); + case "elicitation/create": + if (!(!((e = this._clientCapabilities) === null || e === void 0) && e[t(570)])) throw new Error(t(1277) + x + ")"); break; - case t(1521): - if (!(!((s = this[t(2217)]) === null || s === void 0) && s[t(1260)])) throw new Error(t(2480) + x + ")"); + case t(2823): + if (!(!((s = this[t(1328)]) === null || s === void 0) && s.roots)) throw new Error("Client does not support listing roots (required for " + x + ")"); break; } } - assertNotificationCapability(x) { + [a(2244)](x) { const t = a; switch (x) { - case t(1440): - if (!this[t(690)].logging) throw new Error(t(395) + x + ")"); + case "notifications/message": + if (!this[t(1067)][t(493)]) throw new Error(t(1827) + x + ")"); break; - case "notifications/resources/updated": - case t(2188): - if (!this[t(690)][t(2498)]) throw new Error(t(2042) + x + ")"); + case t(2760): + case t(2216): + if (!this[t(1067)].resources) throw new Error(t(1829) + x + ")"); break; case "notifications/tools/list_changed": - if (!this[t(690)][t(2002)]) throw new Error(t(1063) + x + ")"); + if (!this[t(1067)][t(234)]) throw new Error(t(1641) + x + ")"); break; - case t(1926): - if (!this[t(690)][t(422)]) throw new Error(t(468) + x + ")"); + case t(2466): + if (!this._capabilities.prompts) throw new Error("Server does not support notifying of prompt list changes (required for " + x + ")"); break; } } - [a(2204)](x) { + assertRequestHandlerCapability(x) { const t = a; switch (x) { - case t(889): - if (!this[t(690)].sampling) throw new Error(t(1957) + x + ")"); + case t(2563): + if (!this[t(1067)][t(850)]) throw new Error(t(1582) + x + ")"); break; - case "logging/setLevel": - if (!this[t(690)][t(993)]) throw new Error("Server does not support logging (required for " + x + ")"); + case t(237): + if (!this._capabilities[t(493)]) throw new Error(t(1827) + x + ")"); break; - case t(324): - case t(2015): - if (!this[t(690)].prompts) throw new Error(t(710) + x + ")"); + case t(2683): + case t(417): + if (!this[t(1067)][t(1299)]) throw new Error(t(2879) + x + ")"); break; - case "resources/list": - case t(2458): - case t(489): - if (!this[t(690)][t(2498)]) throw new Error(t(493) + x + ")"); + case t(2901): + case t(1316): + case t(2038): + if (!this[t(1067)][t(554)]) throw new Error(t(2710) + x + ")"); break; - case t(2072): - case t(2708): - if (!this[t(690)][t(2002)]) throw new Error(t(1834) + x + ")"); + case "tools/call": + case t(1714): + if (!this[t(1067)][t(234)]) throw new Error(t(843) + x + ")"); break; } } - async [a(2692)](x) { - const t = a, r = x.params.protocolVersion; - return this[t(2217)] = x[t(1181)][t(1136)], this[t(2115)] = x.params[t(2871)], { protocolVersion: Qi[t(1150)](r) ? r : Ks, capabilities: this[t(985)](), serverInfo: this[t(953)], ...this[t(900)] && { instructions: this[t(900)] } }; + async [a(2878)](x) { + const t = a, r = x.params[t(1217)]; + return this._clientCapabilities = x.params.capabilities, this[t(1098)] = x[t(1133)][t(1409)], { protocolVersion: ec[t(2798)](r) ? r : Qs, capabilities: this[t(337)](), serverInfo: this[t(2229)], ...this[t(2192)] && { instructions: this[t(2192)] } }; } - [a(2870)]() { - return this[a(2217)]; + getClientCapabilities() { + return this[a(1328)]; } - [a(2687)]() { - return this[a(2115)]; + [a(287)]() { + return this[a(1098)]; } - [a(985)]() { - return this[a(690)]; + [a(337)]() { + return this[a(1067)]; } - async [a(2147)]() { - return this[a(563)]({ method: "ping" }, ta); + async ping() { + const x = a; + return this[x(2752)]({ method: x(1937) }, ta); } - async createMessage(x, t) { - return this[a(563)]({ method: "sampling/createMessage", params: x }, fn, t); + async [a(1633)](x, t) { + return this[a(2752)]({ method: "sampling/createMessage", params: x }, pn, t); } - async elicitInput(x, t) { - const r = a, e = await this[r(563)]({ method: r(221), params: x }, ln, t); - if (e[r(2077)] === r(1249) && e[r(1213)]) try { - const s = new Jc(), n = s.compile(x[r(2169)]); - if (!n(e[r(1213)])) throw new Ae(ye.InvalidParams, r(1243) + s[r(777)](n.errors)); + async [a(1797)](x, t) { + const r = a, e = await this[r(2752)]({ method: r(2060), params: x }, mn, t); + if (e.action === r(2727) && e[r(1306)]) try { + const s = new Y2(), n = s[r(1544)](x.requestedSchema); + if (!n(e.content)) throw new _0(y0[r(1346)], r(1493) + s[r(1425)](n[r(638)])); } catch (s) { - throw s instanceof Ae ? s : new Ae(ye[r(688)], r(2694) + s); + throw s instanceof _0 ? s : new _0(y0[r(1894)], "Error validating elicitation response: " + s); } return e; } async listRoots(x, t) { const r = a; - return this[r(563)]({ method: r(1521), params: x }, hn, t); + return this[r(2752)]({ method: r(2823), params: x }, bn, t); } - async [a(213)](x) { + async [a(219)](x) { + return this.notification({ method: "notifications/message", params: x }); + } + async [a(2808)](x) { const t = a; - return this[t(1750)]({ method: t(1440), params: x }); + return this[t(2071)]({ method: t(2760), params: x }); } - async [a(1223)](x) { - const t = a; - return this[t(1750)]({ method: t(1271), params: x }); - } - async [a(1110)]() { + async [a(189)]() { const x = a; - return this[x(1750)]({ method: x(2188) }); + return this[x(2071)]({ method: x(2216) }); } - async [a(376)]() { + async [a(1331)]() { const x = a; - return this[x(1750)]({ method: x(2047) }); + return this.notification({ method: x(358) }); } - async [a(2586)]() { + async sendPromptListChanged() { const x = a; - return this[x(1750)]({ method: x(1926) }); + return this[x(2071)]({ method: x(2466) }); } } -class Xc extends Error { +class xu extends Error { constructor(x, t) { const r = a; - super("Heartbeat timeout for poster " + x + " after " + t + "ms"), this[r(1055)] = "HeartbeatTimeoutError"; + super(r(811) + x + r(1186) + t + "ms"), this.name = "HeartbeatTimeoutError"; } } const px = /* @__PURE__ */ new Map(); -class Yc { +class tu { constructor(x) { const t = a; - if (this[t(1744)] = [], this[t(1757)] = Date[t(940)](), px[t(2075)](x[t(796)])) { - const i = px.get(x[t(796)]); - i && i[t(1278)](); + if (this[t(2440)] = [], this[t(1656)] = Date[t(315)](), px.has(x.posterIdentifier)) { + const i = px[t(1094)](x[t(863)]); + i && i[t(639)](); } - this[t(796)] = x[t(796)], this.messagePoster = x[t(1486)], this[t(2126)] = x[t(2126)], this[t(1119)] = x.removeMessageEventListener; - const r = x[t(443)] ?? x[t(2878)], e = x[t(2878)] ?? x.heartbeatInterval, s = this[t(753)](r), n = this[t(753)](e); - s && n && (this[t(443)] = s, this.heartbeatTimeout = n), this.debugDisableHeartbeatResponse = x[t(2123)] ?? !1, px[t(758)](this[t(796)], this), this.listenMessageCallback = this[t(277)][t(2488)](this), this[t(1873)] = this[t(2126)](this[t(277)]); + this[t(863)] = x[t(863)], this[t(1785)] = x.messagePoster, this[t(1244)] = x[t(1244)], this[t(2144)] = x[t(2144)]; + const r = x.heartbeatInterval ?? x[t(2697)], e = x[t(2697)] ?? x.heartbeatInterval, s = this[t(1127)](r), n = this[t(1127)](e); + s && n && (this[t(1382)] = s, this[t(2697)] = n), this[t(1809)] = x[t(1809)] ?? !1, px[t(1750)](this.posterIdentifier, this), this[t(380)] = this[t(380)][t(591)](this), this.externalListenMessageCallback = this[t(1244)](this[t(380)]); } - [a(753)](x) { - const t = a; - if (typeof x == "number" && !(!Number[t(1812)](x) || x <= 0)) + [a(1127)](x) { + if (typeof x === a(1206) && !(!Number.isFinite(x) || x <= 0)) return x; } - isHeartbeatEnabled() { + [a(912)]() { const x = a; - return typeof this[x(443)] === x(2153) && typeof this[x(2878)] === x(2153); + return typeof this[x(1382)] == "number" && typeof this.heartbeatTimeout === x(1206); } - listenMessageCallback(x) { + [a(380)](x) { const t = a; - if (x.posterIdentifier === this[t(796)]) { - if (x[t(548)] === t(702)) { - x[t(612)] === "ping" && !this[t(2123)] ? this.messagePoster({ channel: t(702), posterIdentifier: this[t(796)], type: "pong", timestamp: x[t(2347)] }) : x[t(612)] === t(1554) && (this[t(1757)] = Date[t(940)](), this.heartbeatTimeoutTimer && (clearTimeout(this[t(609)]), this[t(609)] = void 0)); + if (x[t(863)] === this[t(863)]) { + if (x.channel === t(2041)) { + x[t(190)] === t(1937) && !this[t(1809)] ? this.messagePoster({ channel: t(2041), posterIdentifier: this.posterIdentifier, type: t(725), timestamp: x[t(1261)] }) : x.type === t(725) && (this[t(1656)] = Date[t(315)](), this[t(1444)] && (clearTimeout(this.heartbeatTimeoutTimer), this[t(1444)] = void 0)); return; } - x[t(548)] === t(1776) && (this[t(555)] && t(687) in x ? this[t(555)](x[t(687)]) : t(687) in x && this[t(1744)].push(x.payload)); + x.channel === t(1465) && (this[t(1770)] && "payload" in x ? this.onmessage(x[t(2549)]) : t(2549) in x && this[t(2440)][t(902)](x[t(2549)])); } } - async [a(2604)]() { + async [a(2540)]() { const x = a; - for (; this.messageQueue[x(692)] > 0; ) { - const t = this[x(1744)][x(252)](); - t && this[x(555)] && this.onmessage(t); + for (; this.messageQueue[x(1332)] > 0; ) { + const t = this.messageQueue[x(2281)](); + t && this[x(1770)] && this.onmessage(t); } - this[x(2500)]() && this.startHeartbeat(); + this.isHeartbeatEnabled() && this[x(171)](); } - [a(2052)]() { + [a(171)]() { const x = a; - if (!this[x(2500)]()) return; - const t = this[x(443)], r = this[x(2878)]; - this[x(1856)](), this[x(1459)] = setInterval(() => { - const e = x, s = Date[e(940)](); - this[e(1486)]({ channel: e(702), posterIdentifier: this[e(796)], type: e(2147), timestamp: s }), this[e(609)] = setTimeout(() => { - const n = e, i = new Xc(this[n(796)], r); - this[n(656)] && this[n(656)](i); + if (!this[x(912)]()) return; + const t = this[x(1382)], r = this[x(2697)]; + this[x(2336)](), this[x(291)] = setInterval(() => { + const e = x, s = Date[e(315)](); + this[e(1785)]({ channel: "sdppp-heartbeat", posterIdentifier: this[e(863)], type: e(1937), timestamp: s }), this[e(1444)] = setTimeout(() => { + const n = e, i = new xu(this[n(863)], r); + this.onerror && this.onerror(i); }, r); }, t); } - [a(1856)]() { + [a(2336)]() { const x = a; - this[x(1459)] && (clearInterval(this[x(1459)]), this[x(1459)] = void 0), this[x(609)] && (clearTimeout(this.heartbeatTimeoutTimer), this[x(609)] = void 0); + this[x(291)] && (clearInterval(this.heartbeatTimer), this[x(291)] = void 0), this[x(1444)] && (clearTimeout(this[x(1444)]), this.heartbeatTimeoutTimer = void 0); } - async [a(405)](x, t) { + async [a(1779)](x, t) { const r = a; - this.messagePoster({ channel: r(1776), posterIdentifier: this[r(796)], payload: x }); + this[r(1785)]({ channel: r(1465), posterIdentifier: this[r(863)], payload: x }); } - async [a(1278)]() { + async close() { const x = a; - this[x(1856)](), px[x(2215)](this[x(796)]), this[x(1119)](this.externalListenMessageCallback); + this[x(2336)](), px.delete(this.posterIdentifier), this.removeMessageEventListener(this[x(1559)]); } } -const eu = ox.extend(a(2e3)); -async function yn() { +const au = ox[a(2636)](a(1736)); +async function Sn() { const o = a; - if (!window[o(1215)]) return; - const x = new Yc({ posterIdentifier: "comfy-uxp", messagePoster: (e) => { + if (!window.uxpHost) return; + const x = new tu({ posterIdentifier: o(666), messagePoster: (e) => { const s = o; - window[s(1215)][s(2560)](e, "*"); + window[s(996)][s(2547)](e, "*"); }, addMessageEventListener: (e) => { const s = o, n = (i) => { - e(i[K(909)]); + e(i.data); }; - return window[s(1836)](s(225), n), n; + return window.addEventListener(s(615), n), n; }, removeMessageEventListener: (e) => { const s = o; - window[s(1936)](s(225), e); + window[s(607)](s(615), e); } }); - x[o(656)] = (e) => { - eu("comfy side transport.onerror", e); + x[o(860)] = (e) => { + au(o(2679), e); }; - const t = new Qc({ name: o(2684), version: o(1542) }, {}), r = new Eo(t); - return await r[o(2251)](x), window[o(1215)][o(2560)]({ channel: o(1031), meshName: o(2195), action: "connect", version: o(1062) }, "*"), await P0.connect(o(359), r); + const t = new eu({ name: o(666), version: o(738) }, {}), r = new Fo(t); + return await r[o(1651)](x), window.uxpHost[o(2547)]({ channel: o(2209), meshName: "comfy", action: o(1651), version: o(2464) }, "*"), await Pe.connect(o(999), r); } -const xu = Object[a(1221)](Object[a(1337)]({ __proto__: null, connectUXP: yn, mcpMesh: P0 }, Symbol.toStringTag, { value: "Module" })); -function vn(o) { - const x = a, t = N0[x(1803)] || N0[x(969)][x(832)], r = t[x(1673)]; - if (o && o[x(1349)] && o[x(1349)].id !== r[x(986)].id) return; - const e = P0[x(2585)].getState()[x(1547)], s = ea(N0[x(1103)], r); - Sn(s, e) && P0.store.setState({ widgetableStructure: s }), P0[x(2585)].setState({ widgetableValues: Tx(N0.graph) }); +const ru = Object.freeze(Object[a(2592)]({ __proto__: null, connectUXP: Sn, mcpMesh: Pe }, Symbol[a(2046)], { value: a(2502) })); +function kn(o) { + const x = a, t = Ne[x(1153)] || Ne.extensionManager[x(2425)], r = t[x(1568)]; + if (o && o[x(2587)] && o.detail.id !== r[x(735)].id) return; + const e = Pe.store[x(1357)]()[x(596)], s = ea(Ne[x(167)], r); + En(s, e) && Pe[x(2277)].setState({ widgetableStructure: s }), Pe[x(2277)].setState({ widgetableValues: Nx(Ne[x(167)]) }); } -Re[a(1836)]("graphChanged", vn), Re.addEventListener(a(2662), () => { +C0[a(1877)]("graphChanged", kn), C0.addEventListener(a(2517), () => { const o = a; - P0.store[o(1429)]({ widgetableValues: Tx(N0[o(1103)]) }); + Pe[o(2277)].setState({ widgetableValues: Nx(Ne[o(167)]) }); }); let Xr = 0, Yr = !0, es = ""; -function wn() { +function Pn() { const o = a; - requestAnimationFrame(wn); - const x = N0[o(1803)] || N0[o(969)][o(832)], t = x[o(1673)], r = (t == null ? void 0 : t.id) || 0, e = (t == null ? void 0 : t[o(2619)]) || "", s = (t == null ? void 0 : t[o(1780)]) || !0; + requestAnimationFrame(Pn); + const x = Ne[o(1153)] || Ne.extensionManager.workflow, t = x[o(1568)], r = (t == null ? void 0 : t.id) || 0, e = (t == null ? void 0 : t[o(2475)]) || "", s = (t == null ? void 0 : t.isPersisted) || !0; if (r === Xr && e === es && s === Yr) return; - const n = Date[o(940)](); + const n = Date[o(315)](); Xr = r, es = e, Yr = s; - const i = ea(N0[o(1103)], t), c = Tx(N0[o(1103)]); - P0[o(2585)][o(1429)]({ widgetableStructure: i, widgetableValues: c }), console.log(o(2368) + (Date[o(940)]() - n) + "ms"), setTimeout(() => { + const i = ea(Ne.graph, t), c = Nx(Ne[o(167)]); + Pe[o(2277)][o(2276)]({ widgetableStructure: i, widgetableValues: c }), console[o(1872)]("graph update cost " + (Date.now() - n) + "ms"), setTimeout(() => { const u = o; - if (t !== x[u(1673)]) return; - const d = ea(N0.graph, t), f = Tx(N0.graph); - Sn(d, i) && P0.store[u(1429)]({ widgetableStructure: d }), P0[u(2585)][u(1429)]({ widgetableValues: f }); + if (t !== x[u(1568)]) return; + const d = ea(Ne[u(167)], t), l = Nx(Ne[u(167)]); + En(d, i) && Pe[u(2277)][u(2276)]({ widgetableStructure: d }), Pe[u(2277)].setState({ widgetableValues: l }); }, 800); } -requestAnimationFrame(wn); -function Sn(o, x) { +requestAnimationFrame(Pn); +function En(o, x) { const t = a; - return o[t(196)][t(692)] !== x[t(196)][t(692)] || JSON.stringify(o[t(196)]) !== JSON[t(2625)](x[t(196)]) || JSON[t(2625)](o[t(1102)]) !== JSON[t(2625)](x[t(1102)]); + return o[t(2008)].length !== x[t(2008)][t(1332)] || JSON[t(306)](o.nodeIndexes) !== JSON[t(306)](x[t(2008)]) || JSON.stringify(o.nodes) !== JSON.stringify(x[t(1064)]); } let xs = !1; -async function tu() { +async function su() { const o = a; - if (xs) return Promise[o(1571)](); - Re[o(2565)] && P0[o(2585)][o(1429)]({ comfyUserToken: Re[o(2565)] }), xs = !0; + if (xs) return Promise[o(1635)](); + C0[o(2268)] && Pe.store[o(2276)]({ comfyUserToken: C0[o(2268)] }), xs = !0; } -ox[a(243)]("comfy-entry"); -async function au(o, x, t) { +ox[a(2636)](a(2811)); +async function nu(o, x, t) { const r = a; - x[r(1836)](r(357), ({ detail: n }) => { + x[r(1877)](r(2444), ({ detail: n }) => { const i = r; if (!n) return; let c = 0, u = 0; - !isNaN(n[i(1732)] / n[i(1393)]) && (c = Math[i(481)](n.value / n[i(1393)] * 100)); - const d = n[i(1199)], f = graph[i(1102)].find((l) => l.id == d); - if (f && f[i(1760)]) { - const l = 100 / graph.nodes[i(692)]; - u = Math[i(481)](f.order * l) + (c ? c / 100 * l : 0); + !isNaN(n[i(998)] / n[i(718)]) && (c = Math.round(n[i(998)] / n[i(718)] * 100)); + const d = n.node, l = graph[i(1064)][i(1036)]((f) => f.id == d); + if (l && l[i(1972)]) { + const f = 100 / graph.nodes.length; + u = Math.round(l[i(1972)] * f) + (c ? c / 100 * f : 0); } - P0.store[i(1429)]({ progress: c, graphProgress: u }); - }), x.addEventListener(r(2861), (n) => { + Pe.store[i(2276)]({ progress: c, graphProgress: u }); + }), x[r(1877)](r(2745), (n) => { var c; const i = r; - (c = n[i(1349)]) != null && c.exec_info && P0[i(2585)][i(1429)]({ queueSize: n[i(1349)][i(1802)][i(1152)] }); - }), x[r(1836)](r(2208), ({ detail: n }) => { + (c = n[i(2587)]) != null && c[i(2812)] && Pe[i(2277)].setState({ queueSize: n[i(2587)][i(2812)].queue_remaining }); + }), x.addEventListener(r(2230), ({ detail: n }) => { const i = r; - if (P0[i(2585)].setState({ executingNodeTitle: "", executingNodeID: "", lastError: n.exception_message }), n.node_id) { - const c = o.graph[i(1102)][i(1341)]((u) => u.id == n[i(2252)]); - P0[i(2585)][i(1429)]({ widgetableErrors: { [n[i(2252)]]: "[" + ((c == null ? void 0 : c[i(1266)]) || n[i(2252)]) + "]" + n[i(2656)] } }); + if (Pe[i(2277)][i(2276)]({ executingNodeTitle: "", executingNodeID: "", lastError: n[i(445)] }), n[i(521)]) { + const c = o[i(167)][i(1064)][i(1036)]((u) => u.id == n.node_id); + Pe[i(2277)].setState({ widgetableErrors: { [n[i(521)]]: "[" + ((c == null ? void 0 : c[i(2499)]) || n[i(521)]) + "]" + n.exception_message } }); } - }), x[r(1836)](r(2854), (n) => { - const i = r, c = n.detail, u = graph[i(1102)][i(1341)]((d) => d.id == c); + }), x.addEventListener("executing", (n) => { + const i = r, c = n.detail, u = graph[i(1064)][i(1036)]((d) => d.id == c); if (u) { - const d = 100 / graph[i(1102)][i(692)]; - P0.store.setState({ executingNodeTitle: u[i(1266)], executingNodeID: u.id, graphProgress: Math[i(481)](u.order * d) }); + const d = 100 / graph[i(1064)][i(1332)]; + Pe[i(2277)].setState({ executingNodeTitle: u[i(2499)], executingNodeID: u.id, graphProgress: Math[i(2223)](u[i(1972)] * d) }); } - }), x.addEventListener("execution_interrupted", () => { + }), x[r(1877)](r(1865), () => { const n = r; - P0[n(2585)][n(1429)]({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); - }), x[r(1836)](r(1430), ({ detail: n }) => { + Pe[n(2277)][n(2276)]({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); + }), x[r(1877)](r(565), ({ detail: n }) => { const i = r; - P0[i(2585)][i(1429)]({ lastError: "", widgetableErrors: {}, progress: 0, executingNodeTitle: "", executingNodeID: "", lastRunTime: Date[i(940)]() }); + Pe.store[i(2276)]({ lastError: "", widgetableErrors: {}, progress: 0, executingNodeTitle: "", executingNodeID: "", lastRunTime: Date.now() }); }); const e = /* @__PURE__ */ new Map(); - x.addEventListener(r(781), (n) => { + x[r(1877)](r(1905), (n) => { const i = r; - P0[i(2585)][i(1429)]({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); - const c = (e[i(1075)](n.detail.prompt_id) || [])[i(1649)]((u) => ({ url: u, thumbnail: u })); - $i(n.detail[i(926)], c), e[i(2215)](n[i(1349)][i(926)]); - }), x[r(1836)]("executed", (n) => { - const i = r, c = e[i(1075)](n.detail[i(926)]) || []; - n[i(1349)][i(1499)] && Array[i(1783)](n[i(1349)][i(1499)][i(1914)]) && n.detail.output[i(1914)][i(692)] > 0 && c.push(...n.detail[i(1499)][i(1914)][i(2145)]((u) => u[i(612)] == i(1499)).map((u) => { + Pe.store[i(2276)]({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); + const c = (e[i(1094)](n[i(2587)][i(532)]) || [])[i(2742)]((u) => ({ url: u, thumbnail: u })); + zi(n[i(2587)].prompt_id, c), e[i(882)](n.detail[i(532)]); + }), x[r(1877)](r(2517), (n) => { + const i = r, c = e.get(n[i(2587)].prompt_id) || []; + n.detail[i(681)] && Array[i(977)](n.detail[i(681)][i(1967)]) && n[i(2587)][i(681)].images[i(1332)] > 0 && c.push(...n[i(2587)][i(681)][i(1967)][i(1706)]((u) => u[i(190)] == i(681))[i(2742)]((u) => { const d = i; - return location[d(384)] + location[d(525)] + d(417) + u.type + d(2571) + encodeURIComponent(u.filename) + (u[d(961)] ? d(1036) + encodeURIComponent(u[d(961)]) : ""); - })), n[i(1349)].output && Array[i(1783)](n[i(1349)].output.sdppp_assets) && n[i(1349)][i(1499)][i(1763)].length > 0 && c[i(452)](...n[i(1349)][i(1499)][i(1763)].map((u) => { + return location[d(1204)] + location.pathname + d(2671) + u[d(190)] + d(1955) + encodeURIComponent(u.filename) + (u[d(346)] ? d(274) + encodeURIComponent(u.subfolder) : ""); + })), n[i(2587)][i(681)] && Array[i(977)](n[i(2587)][i(681)][i(2283)]) && n[i(2587)][i(681)][i(2283)][i(1332)] > 0 && c[i(902)](...n[i(2587)][i(681)][i(2283)].map((u) => { const d = i; - return location[d(384)] + location[d(525)] + d(1043) + encodeURIComponent(u); - })), e[i(758)](n.detail.prompt_id, c); + return location[d(1204)] + location[d(2245)] + d(157) + encodeURIComponent(u); + })), e.set(n[i(2587)].prompt_id, c); }); let s = null; - x[r(1836)](r(1255), (n) => { + x[r(1877)](r(2100), (n) => { s = setTimeout(() => { const i = K; - P0.store[i(1429)]({ comfyWSState: i(1255) }); + Pe[i(2277)][i(2276)]({ comfyWSState: i(2100) }); }, 1e3); - }), x.addEventListener(r(564), (n) => { + }), x.addEventListener("reconnected", (n) => { const i = r; - P0[i(2585)][i(1429)]({ comfyWSState: "connected" }), clearTimeout(s); + Pe[i(2277)].setState({ comfyWSState: i(1951) }), clearTimeout(s); }); } let $t = []; (async function() { var x, t, r, e, s, n; const o = a; - if (!(typeof gradioApp < "u")) { + if (typeof gradioApp == o(2694)) { try { - const i = (t = (x = window[o(930)]) == null ? void 0 : x.app) == null ? void 0 : t[o(400)], c = (e = (r = window[o(930)]) == null ? void 0 : r.ui) == null ? void 0 : e.$el, u = (n = (s = window.comfyAPI) == null ? void 0 : s[o(724)]) == null ? void 0 : n.api; - if (!i || !u || !c) throw new Error("comfyAPI is not initialized, maybe comfyUI is too old"); - await tu(), await yn(), await au(i, u, c), import(o(421))[o(2403)]((d) => { - d.default(Ye, 2); + const i = (t = (x = window[o(1688)]) == null ? void 0 : x[o(1388)]) == null ? void 0 : t[o(1388)], c = (e = (r = window[o(1688)]) == null ? void 0 : r.ui) == null ? void 0 : e[o(1887)], u = (n = (s = window[o(1688)]) == null ? void 0 : s.api) == null ? void 0 : n[o(699)]; + if (!i || !u || !c) throw new Error(o(2483)); + await su(), await Sn(), await nu(i, u, c), import(o(776))[o(723)]((d) => { + d[o(2222)](xx, 2); }); } catch (i) { - $t.push(i[o(837)] || i.message || i); + $t[o(902)](i.stack || i.message || i); } - await new Promise((i) => setTimeout(i, 2e3)), $t[o(692)] && console.error($t[0]); + await new Promise((i) => setTimeout(i, 2e3)), $t[o(1332)] && console[o(2265)]($t[0]); } })(); diff --git a/javascript/sdppp-custom.js b/javascript/sdppp-custom.js index b970be1..196b0ae 100644 --- a/javascript/sdppp-custom.js +++ b/javascript/sdppp-custom.js @@ -219,6 +219,9 @@ export default function (sdppp, version = 1) { node.widgets[widgetIndex].doModeChange(); } return true + } else { + node.widgets[widgetIndex].value = value; + node.widgets[widgetIndex].callback?.(value) } return false; function fixRGthreeWidgetValue(type, value) { @@ -511,6 +514,11 @@ export default function (sdppp, version = 1) { uiWeight: 12 // 独占整行 }] } + }, + setter: (node, widgetIndex, value) => { + // it should be implemented. + // otherwise the roll button will be trigger and make a queuePrompt. + return widgetIndex == 2; } }) diff --git a/static/sd-ppp2_PS.ccx b/static/sd-ppp2_PS.ccx index 24e4508..62b53d3 100644 Binary files a/static/sd-ppp2_PS.ccx and b/static/sd-ppp2_PS.ccx differ diff --git a/static/sd-ppp2_PS.zip b/static/sd-ppp2_PS.zip index 24e4508..62b53d3 100644 Binary files a/static/sd-ppp2_PS.zip and b/static/sd-ppp2_PS.zip differ diff --git a/static/sd-ppp_PS.ccx b/static/sd-ppp_PS.ccx index 3b5e58a..e6fbf65 100644 Binary files a/static/sd-ppp_PS.ccx and b/static/sd-ppp_PS.ccx differ