@luna-park/plugin-motion 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -2
- package/dist/index.js +4017 -0
- package/dist/runtime-DRrnUtwZ.js +2003 -0
- package/dist/runtime.js +2 -0
- package/package.json +60 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,4017 @@
|
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.motion-buttons[data-v-af0f8a4b]{gap:var(--length-xxxxs);display:flex}.motion-buttons .button-wrapper.fill[data-v-af0f8a4b]{flex:1 1 0}.motion-buttons .button-wrapper.fill[data-v-af0f8a4b] .button{padding:0}.motion-buttons .button-wrapper:not(:first-child) .button[data-v-af0f8a4b]{border-top-left-radius:0;border-bottom-left-radius:0}.motion-buttons .button-wrapper:not(:last-child) .button[data-v-af0f8a4b]{border-top-right-radius:0;border-bottom-right-radius:0}.motion-card[data-v-0dfc3339]{gap:var(--length-xxs);background:var(--color-background-dark);padding:var(--length-xs);border-radius:var(--length-radius-s);flex-direction:column;display:flex}.motion-card .header[data-v-0dfc3339]{font-size:var(--font-size-xs);color:var(--color-content-lite);align-items:center;gap:var(--length-xxs);display:flex}.motion-card .header .title[data-v-0dfc3339]{align-items:center;gap:var(--length-xxs);flex:1;display:flex}.motion-card .header .title .icon[data-v-0dfc3339]{font-size:var(--font-icon-xxs);color:var(--color-content-liter)}.motion-card .header .title .hint[data-v-0dfc3339]{color:var(--color-content-litest)}.motion-panel[data-v-f1461af3]{flex-direction:column;display:flex}.motion-panel .cards[data-v-f1461af3]{margin:var(--length-xs);gap:var(--length-xs);flex-direction:column;display:flex}.motion-panel .curve[data-v-f1461af3]{width:16px;height:16px}.motion-panel .curve polyline[data-v-f1461af3]{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./runtime-DRrnUtwZ.js";
|
|
3
|
+
import { Fragment as ee, computed as te, createBlock as ne, createCommentVNode as re, createElementBlock as ie, createElementVNode as ae, createSlots as oe, createTextVNode as se, createVNode as ce, defineComponent as le, markRaw as ue, normalizeClass as de, openBlock as fe, ref as pe, renderList as me, renderSlot as he, toDisplayString as ge, unref as _e, watch as ve, withCtx as ye } from "vue";
|
|
4
|
+
import { LButton as be, LIcon as xe, LInspectorRow as Se, LTooltip as Ce } from "@luna-park/design";
|
|
5
|
+
//#region \0rolldown/runtime.js
|
|
6
|
+
var we = Object.defineProperty, Te = (e, t) => {
|
|
7
|
+
let n = {};
|
|
8
|
+
for (var r in e) we(n, r, {
|
|
9
|
+
get: e[r],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
return t || we(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
13
|
+
}, s = /* @__PURE__ */ function(e) {
|
|
14
|
+
return e.exec = "exec", e.number = "number", e.string = "string", e.boolean = "boolean", e.object = "object", e.record = "record", e.array = "array", e.interface = "interface", e.type = "type", e.function = "function", e.union = "union", e.unknown = "unknown", e.undefined = "undefined", e.void = "void", e;
|
|
15
|
+
}({}), c = {
|
|
16
|
+
array: (e, t = {}) => ({
|
|
17
|
+
...t,
|
|
18
|
+
items: e,
|
|
19
|
+
type: "array"
|
|
20
|
+
}),
|
|
21
|
+
boolean: (e = {}) => ({
|
|
22
|
+
...e,
|
|
23
|
+
type: "boolean"
|
|
24
|
+
}),
|
|
25
|
+
exec: (e = {}) => ({
|
|
26
|
+
...e,
|
|
27
|
+
type: "exec"
|
|
28
|
+
}),
|
|
29
|
+
function: Ee,
|
|
30
|
+
interface: (e, t = {}) => ({
|
|
31
|
+
...t,
|
|
32
|
+
className: typeof e == "string" ? e : e.name,
|
|
33
|
+
type: "interface"
|
|
34
|
+
}),
|
|
35
|
+
number: (e = {}) => ({
|
|
36
|
+
...e,
|
|
37
|
+
type: "number"
|
|
38
|
+
}),
|
|
39
|
+
object: (e = {}, t = {}) => ({
|
|
40
|
+
...t,
|
|
41
|
+
properties: e,
|
|
42
|
+
type: "object"
|
|
43
|
+
}),
|
|
44
|
+
record: (e, t, n = {}) => ({
|
|
45
|
+
...n,
|
|
46
|
+
key: e,
|
|
47
|
+
type: "record",
|
|
48
|
+
value: t
|
|
49
|
+
}),
|
|
50
|
+
string: (e = {}) => ({
|
|
51
|
+
...e,
|
|
52
|
+
type: "string"
|
|
53
|
+
}),
|
|
54
|
+
type: De,
|
|
55
|
+
undefined: (e = {}) => ({
|
|
56
|
+
...e,
|
|
57
|
+
type: "undefined"
|
|
58
|
+
}),
|
|
59
|
+
union: (e, t = {}) => ({
|
|
60
|
+
...t,
|
|
61
|
+
elements: e,
|
|
62
|
+
type: "union"
|
|
63
|
+
}),
|
|
64
|
+
unknown: (e = {}) => ({
|
|
65
|
+
...e,
|
|
66
|
+
type: "unknown"
|
|
67
|
+
}),
|
|
68
|
+
void: (e = {}) => ({
|
|
69
|
+
...e,
|
|
70
|
+
type: "void"
|
|
71
|
+
})
|
|
72
|
+
};
|
|
73
|
+
function Ee(e = [], t = c.void(), n = {}) {
|
|
74
|
+
return Array.isArray(e) ? Ee(c.object(Object.fromEntries(e)), t, n) : {
|
|
75
|
+
...n,
|
|
76
|
+
inputs: e,
|
|
77
|
+
output: t,
|
|
78
|
+
type: "function"
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function De(e, t = {}) {
|
|
82
|
+
return {
|
|
83
|
+
...t,
|
|
84
|
+
target: e,
|
|
85
|
+
type: "type"
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
|
|
90
|
+
function Oe(e) {
|
|
91
|
+
return u(e) && !l(e) && !Re(e) && Symbol.asyncIterator in e;
|
|
92
|
+
}
|
|
93
|
+
function l(e) {
|
|
94
|
+
return Array.isArray(e);
|
|
95
|
+
}
|
|
96
|
+
function ke(e) {
|
|
97
|
+
return typeof e == "bigint";
|
|
98
|
+
}
|
|
99
|
+
function Ae(e) {
|
|
100
|
+
return typeof e == "boolean";
|
|
101
|
+
}
|
|
102
|
+
function je(e) {
|
|
103
|
+
return e instanceof globalThis.Date;
|
|
104
|
+
}
|
|
105
|
+
function Me(e) {
|
|
106
|
+
return typeof e == "function";
|
|
107
|
+
}
|
|
108
|
+
function Ne(e) {
|
|
109
|
+
return u(e) && !l(e) && !Re(e) && Symbol.iterator in e;
|
|
110
|
+
}
|
|
111
|
+
function Pe(e) {
|
|
112
|
+
return e === null;
|
|
113
|
+
}
|
|
114
|
+
function Fe(e) {
|
|
115
|
+
return typeof e == "number";
|
|
116
|
+
}
|
|
117
|
+
function u(e) {
|
|
118
|
+
return typeof e == "object" && !!e;
|
|
119
|
+
}
|
|
120
|
+
function Ie(e) {
|
|
121
|
+
return e instanceof globalThis.RegExp;
|
|
122
|
+
}
|
|
123
|
+
function d(e) {
|
|
124
|
+
return typeof e == "string";
|
|
125
|
+
}
|
|
126
|
+
function Le(e) {
|
|
127
|
+
return typeof e == "symbol";
|
|
128
|
+
}
|
|
129
|
+
function Re(e) {
|
|
130
|
+
return e instanceof globalThis.Uint8Array;
|
|
131
|
+
}
|
|
132
|
+
function f(e) {
|
|
133
|
+
return e === void 0;
|
|
134
|
+
}
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs
|
|
137
|
+
function ze(e) {
|
|
138
|
+
return e.map((e) => We(e));
|
|
139
|
+
}
|
|
140
|
+
function Be(e) {
|
|
141
|
+
return new Date(e.getTime());
|
|
142
|
+
}
|
|
143
|
+
function Ve(e) {
|
|
144
|
+
return new Uint8Array(e);
|
|
145
|
+
}
|
|
146
|
+
function He(e) {
|
|
147
|
+
return new RegExp(e.source, e.flags);
|
|
148
|
+
}
|
|
149
|
+
function Ue(e) {
|
|
150
|
+
let t = {};
|
|
151
|
+
for (let n of Object.getOwnPropertyNames(e)) t[n] = We(e[n]);
|
|
152
|
+
for (let n of Object.getOwnPropertySymbols(e)) t[n] = We(e[n]);
|
|
153
|
+
return t;
|
|
154
|
+
}
|
|
155
|
+
function We(e) {
|
|
156
|
+
return l(e) ? ze(e) : je(e) ? Be(e) : Re(e) ? Ve(e) : Ie(e) ? He(e) : u(e) ? Ue(e) : e;
|
|
157
|
+
}
|
|
158
|
+
function p(e) {
|
|
159
|
+
return We(e);
|
|
160
|
+
}
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs
|
|
163
|
+
function Ge(e, t) {
|
|
164
|
+
return p(t === void 0 ? e : {
|
|
165
|
+
...t,
|
|
166
|
+
...e
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs
|
|
171
|
+
function Ke(e) {
|
|
172
|
+
return typeof e == "object" && !!e;
|
|
173
|
+
}
|
|
174
|
+
function qe(e) {
|
|
175
|
+
return globalThis.Array.isArray(e) && !globalThis.ArrayBuffer.isView(e);
|
|
176
|
+
}
|
|
177
|
+
function Je(e) {
|
|
178
|
+
return e === void 0;
|
|
179
|
+
}
|
|
180
|
+
function Ye(e) {
|
|
181
|
+
return typeof e == "number";
|
|
182
|
+
}
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/system/policy.mjs
|
|
185
|
+
var Xe;
|
|
186
|
+
(function(e) {
|
|
187
|
+
e.InstanceMode = "default", e.ExactOptionalPropertyTypes = !1, e.AllowArrayObject = !1, e.AllowNaN = !1, e.AllowNullVoid = !1;
|
|
188
|
+
function t(t, n) {
|
|
189
|
+
return e.ExactOptionalPropertyTypes ? n in t : t[n] !== void 0;
|
|
190
|
+
}
|
|
191
|
+
e.IsExactOptionalProperty = t;
|
|
192
|
+
function n(t) {
|
|
193
|
+
let n = Ke(t);
|
|
194
|
+
return e.AllowArrayObject ? n : n && !qe(t);
|
|
195
|
+
}
|
|
196
|
+
e.IsObjectLike = n;
|
|
197
|
+
function r(e) {
|
|
198
|
+
return n(e) && !(e instanceof Date) && !(e instanceof Uint8Array);
|
|
199
|
+
}
|
|
200
|
+
e.IsRecordLike = r;
|
|
201
|
+
function i(t) {
|
|
202
|
+
return e.AllowNaN ? Ye(t) : Number.isFinite(t);
|
|
203
|
+
}
|
|
204
|
+
e.IsNumberLike = i;
|
|
205
|
+
function a(t) {
|
|
206
|
+
let n = Je(t);
|
|
207
|
+
return e.AllowNullVoid ? n || t === null : n;
|
|
208
|
+
}
|
|
209
|
+
e.IsVoidLike = a;
|
|
210
|
+
})(Xe ||= {});
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs
|
|
213
|
+
function Ze(e) {
|
|
214
|
+
return globalThis.Object.freeze(e).map((e) => nt(e));
|
|
215
|
+
}
|
|
216
|
+
function Qe(e) {
|
|
217
|
+
return e;
|
|
218
|
+
}
|
|
219
|
+
function $e(e) {
|
|
220
|
+
return e;
|
|
221
|
+
}
|
|
222
|
+
function et(e) {
|
|
223
|
+
return e;
|
|
224
|
+
}
|
|
225
|
+
function tt(e) {
|
|
226
|
+
let t = {};
|
|
227
|
+
for (let n of Object.getOwnPropertyNames(e)) t[n] = nt(e[n]);
|
|
228
|
+
for (let n of Object.getOwnPropertySymbols(e)) t[n] = nt(e[n]);
|
|
229
|
+
return globalThis.Object.freeze(t);
|
|
230
|
+
}
|
|
231
|
+
function nt(e) {
|
|
232
|
+
return l(e) ? Ze(e) : je(e) ? Qe(e) : Re(e) ? $e(e) : Ie(e) ? et(e) : u(e) ? tt(e) : e;
|
|
233
|
+
}
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs
|
|
236
|
+
function m(e, t) {
|
|
237
|
+
let n = t === void 0 ? e : {
|
|
238
|
+
...t,
|
|
239
|
+
...e
|
|
240
|
+
};
|
|
241
|
+
switch (Xe.InstanceMode) {
|
|
242
|
+
case "freeze": return nt(n);
|
|
243
|
+
case "clone": return p(n);
|
|
244
|
+
default: return n;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs
|
|
249
|
+
var rt = class extends Error {
|
|
250
|
+
constructor(e) {
|
|
251
|
+
super(e);
|
|
252
|
+
}
|
|
253
|
+
}, h = Symbol.for("TypeBox.Transform"), it = Symbol.for("TypeBox.Readonly"), at = Symbol.for("TypeBox.Optional"), ot = Symbol.for("TypeBox.Hint"), g = Symbol.for("TypeBox.Kind");
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs
|
|
256
|
+
function st(e) {
|
|
257
|
+
return u(e) && e[it] === "Readonly";
|
|
258
|
+
}
|
|
259
|
+
function ct(e) {
|
|
260
|
+
return u(e) && e[at] === "Optional";
|
|
261
|
+
}
|
|
262
|
+
function lt(e) {
|
|
263
|
+
return v(e, "Any");
|
|
264
|
+
}
|
|
265
|
+
function ut(e) {
|
|
266
|
+
return v(e, "Argument");
|
|
267
|
+
}
|
|
268
|
+
function dt(e) {
|
|
269
|
+
return v(e, "Array");
|
|
270
|
+
}
|
|
271
|
+
function ft(e) {
|
|
272
|
+
return v(e, "AsyncIterator");
|
|
273
|
+
}
|
|
274
|
+
function pt(e) {
|
|
275
|
+
return v(e, "BigInt");
|
|
276
|
+
}
|
|
277
|
+
function mt(e) {
|
|
278
|
+
return v(e, "Boolean");
|
|
279
|
+
}
|
|
280
|
+
function ht(e) {
|
|
281
|
+
return v(e, "Computed");
|
|
282
|
+
}
|
|
283
|
+
function gt(e) {
|
|
284
|
+
return v(e, "Constructor");
|
|
285
|
+
}
|
|
286
|
+
function _t(e) {
|
|
287
|
+
return v(e, "Date");
|
|
288
|
+
}
|
|
289
|
+
function vt(e) {
|
|
290
|
+
return v(e, "Function");
|
|
291
|
+
}
|
|
292
|
+
function yt(e) {
|
|
293
|
+
return v(e, "Integer");
|
|
294
|
+
}
|
|
295
|
+
function _(e) {
|
|
296
|
+
return v(e, "Intersect");
|
|
297
|
+
}
|
|
298
|
+
function bt(e) {
|
|
299
|
+
return v(e, "Iterator");
|
|
300
|
+
}
|
|
301
|
+
function v(e, t) {
|
|
302
|
+
return u(e) && g in e && e[g] === t;
|
|
303
|
+
}
|
|
304
|
+
function xt(e) {
|
|
305
|
+
return Ae(e) || Fe(e) || d(e);
|
|
306
|
+
}
|
|
307
|
+
function St(e) {
|
|
308
|
+
return v(e, "Literal");
|
|
309
|
+
}
|
|
310
|
+
function Ct(e) {
|
|
311
|
+
return v(e, "MappedKey");
|
|
312
|
+
}
|
|
313
|
+
function y(e) {
|
|
314
|
+
return v(e, "MappedResult");
|
|
315
|
+
}
|
|
316
|
+
function wt(e) {
|
|
317
|
+
return v(e, "Never");
|
|
318
|
+
}
|
|
319
|
+
function Tt(e) {
|
|
320
|
+
return v(e, "Not");
|
|
321
|
+
}
|
|
322
|
+
function Et(e) {
|
|
323
|
+
return v(e, "Null");
|
|
324
|
+
}
|
|
325
|
+
function Dt(e) {
|
|
326
|
+
return v(e, "Number");
|
|
327
|
+
}
|
|
328
|
+
function b(e) {
|
|
329
|
+
return v(e, "Object");
|
|
330
|
+
}
|
|
331
|
+
function Ot(e) {
|
|
332
|
+
return v(e, "Promise");
|
|
333
|
+
}
|
|
334
|
+
function kt(e) {
|
|
335
|
+
return v(e, "Record");
|
|
336
|
+
}
|
|
337
|
+
function x(e) {
|
|
338
|
+
return v(e, "Ref");
|
|
339
|
+
}
|
|
340
|
+
function At(e) {
|
|
341
|
+
return v(e, "RegExp");
|
|
342
|
+
}
|
|
343
|
+
function jt(e) {
|
|
344
|
+
return v(e, "String");
|
|
345
|
+
}
|
|
346
|
+
function Mt(e) {
|
|
347
|
+
return v(e, "Symbol");
|
|
348
|
+
}
|
|
349
|
+
function Nt(e) {
|
|
350
|
+
return v(e, "TemplateLiteral");
|
|
351
|
+
}
|
|
352
|
+
function Pt(e) {
|
|
353
|
+
return v(e, "This");
|
|
354
|
+
}
|
|
355
|
+
function Ft(e) {
|
|
356
|
+
return u(e) && h in e;
|
|
357
|
+
}
|
|
358
|
+
function It(e) {
|
|
359
|
+
return v(e, "Tuple");
|
|
360
|
+
}
|
|
361
|
+
function Lt(e) {
|
|
362
|
+
return v(e, "Undefined");
|
|
363
|
+
}
|
|
364
|
+
function S(e) {
|
|
365
|
+
return v(e, "Union");
|
|
366
|
+
}
|
|
367
|
+
function Rt(e) {
|
|
368
|
+
return v(e, "Uint8Array");
|
|
369
|
+
}
|
|
370
|
+
function zt(e) {
|
|
371
|
+
return v(e, "Unknown");
|
|
372
|
+
}
|
|
373
|
+
function Bt(e) {
|
|
374
|
+
return v(e, "Unsafe");
|
|
375
|
+
}
|
|
376
|
+
function Vt(e) {
|
|
377
|
+
return v(e, "Void");
|
|
378
|
+
}
|
|
379
|
+
function Ht(e) {
|
|
380
|
+
return u(e) && g in e && d(e[g]);
|
|
381
|
+
}
|
|
382
|
+
function Ut(e) {
|
|
383
|
+
return lt(e) || ut(e) || dt(e) || mt(e) || pt(e) || ft(e) || ht(e) || gt(e) || _t(e) || vt(e) || yt(e) || _(e) || bt(e) || St(e) || Ct(e) || y(e) || wt(e) || Tt(e) || Et(e) || Dt(e) || b(e) || Ot(e) || kt(e) || x(e) || At(e) || jt(e) || Mt(e) || Nt(e) || Pt(e) || It(e) || Lt(e) || S(e) || Rt(e) || zt(e) || Bt(e) || Vt(e) || Ht(e);
|
|
384
|
+
}
|
|
385
|
+
//#endregion
|
|
386
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs
|
|
387
|
+
var Wt = /* @__PURE__ */ "Argument.Any.Array.AsyncIterator.BigInt.Boolean.Computed.Constructor.Date.Enum.Function.Integer.Intersect.Iterator.Literal.MappedKey.MappedResult.Not.Null.Number.Object.Promise.Record.Ref.RegExp.String.Symbol.TemplateLiteral.This.Tuple.Undefined.Union.Uint8Array.Unknown.Void".split(".");
|
|
388
|
+
function Gt(e) {
|
|
389
|
+
try {
|
|
390
|
+
return new RegExp(e), !0;
|
|
391
|
+
} catch {
|
|
392
|
+
return !1;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
function Kt(e) {
|
|
396
|
+
if (!d(e)) return !1;
|
|
397
|
+
for (let t = 0; t < e.length; t++) {
|
|
398
|
+
let n = e.charCodeAt(t);
|
|
399
|
+
if (n >= 7 && n <= 13 || n === 27 || n === 127) return !1;
|
|
400
|
+
}
|
|
401
|
+
return !0;
|
|
402
|
+
}
|
|
403
|
+
function qt(e) {
|
|
404
|
+
return Yt(e) || M(e);
|
|
405
|
+
}
|
|
406
|
+
function Jt(e) {
|
|
407
|
+
return f(e) || ke(e);
|
|
408
|
+
}
|
|
409
|
+
function C(e) {
|
|
410
|
+
return f(e) || Fe(e);
|
|
411
|
+
}
|
|
412
|
+
function Yt(e) {
|
|
413
|
+
return f(e) || Ae(e);
|
|
414
|
+
}
|
|
415
|
+
function w(e) {
|
|
416
|
+
return f(e) || d(e);
|
|
417
|
+
}
|
|
418
|
+
function Xt(e) {
|
|
419
|
+
return f(e) || d(e) && Kt(e) && Gt(e);
|
|
420
|
+
}
|
|
421
|
+
function Zt(e) {
|
|
422
|
+
return f(e) || d(e) && Kt(e);
|
|
423
|
+
}
|
|
424
|
+
function Qt(e) {
|
|
425
|
+
return f(e) || M(e);
|
|
426
|
+
}
|
|
427
|
+
function $t(e) {
|
|
428
|
+
return u(e) && e[at] === "Optional";
|
|
429
|
+
}
|
|
430
|
+
function T(e) {
|
|
431
|
+
return E(e, "Any") && w(e.$id);
|
|
432
|
+
}
|
|
433
|
+
function en(e) {
|
|
434
|
+
return E(e, "Argument") && Fe(e.index);
|
|
435
|
+
}
|
|
436
|
+
function tn(e) {
|
|
437
|
+
return E(e, "Array") && e.type === "array" && w(e.$id) && M(e.items) && C(e.minItems) && C(e.maxItems) && Yt(e.uniqueItems) && Qt(e.contains) && C(e.minContains) && C(e.maxContains);
|
|
438
|
+
}
|
|
439
|
+
function nn(e) {
|
|
440
|
+
return E(e, "AsyncIterator") && e.type === "AsyncIterator" && w(e.$id) && M(e.items);
|
|
441
|
+
}
|
|
442
|
+
function rn(e) {
|
|
443
|
+
return E(e, "BigInt") && e.type === "bigint" && w(e.$id) && Jt(e.exclusiveMaximum) && Jt(e.exclusiveMinimum) && Jt(e.maximum) && Jt(e.minimum) && Jt(e.multipleOf);
|
|
444
|
+
}
|
|
445
|
+
function an(e) {
|
|
446
|
+
return E(e, "Boolean") && e.type === "boolean" && w(e.$id);
|
|
447
|
+
}
|
|
448
|
+
function on(e) {
|
|
449
|
+
return E(e, "Computed") && d(e.target) && l(e.parameters) && e.parameters.every((e) => M(e));
|
|
450
|
+
}
|
|
451
|
+
function sn(e) {
|
|
452
|
+
return E(e, "Constructor") && e.type === "Constructor" && w(e.$id) && l(e.parameters) && e.parameters.every((e) => M(e)) && M(e.returns);
|
|
453
|
+
}
|
|
454
|
+
function cn(e) {
|
|
455
|
+
return E(e, "Date") && e.type === "Date" && w(e.$id) && C(e.exclusiveMaximumTimestamp) && C(e.exclusiveMinimumTimestamp) && C(e.maximumTimestamp) && C(e.minimumTimestamp) && C(e.multipleOfTimestamp);
|
|
456
|
+
}
|
|
457
|
+
function ln(e) {
|
|
458
|
+
return E(e, "Function") && e.type === "Function" && w(e.$id) && l(e.parameters) && e.parameters.every((e) => M(e)) && M(e.returns);
|
|
459
|
+
}
|
|
460
|
+
function un(e) {
|
|
461
|
+
return E(e, "Integer") && e.type === "integer" && w(e.$id) && C(e.exclusiveMaximum) && C(e.exclusiveMinimum) && C(e.maximum) && C(e.minimum) && C(e.multipleOf);
|
|
462
|
+
}
|
|
463
|
+
function dn(e) {
|
|
464
|
+
return u(e) && Object.entries(e).every(([e, t]) => Kt(e) && M(t));
|
|
465
|
+
}
|
|
466
|
+
function fn(e) {
|
|
467
|
+
return E(e, "Intersect") && !(d(e.type) && e.type !== "object") && l(e.allOf) && e.allOf.every((e) => M(e) && !An(e)) && w(e.type) && (Yt(e.unevaluatedProperties) || Qt(e.unevaluatedProperties)) && w(e.$id);
|
|
468
|
+
}
|
|
469
|
+
function pn(e) {
|
|
470
|
+
return E(e, "Iterator") && e.type === "Iterator" && w(e.$id) && M(e.items);
|
|
471
|
+
}
|
|
472
|
+
function E(e, t) {
|
|
473
|
+
return u(e) && g in e && e[g] === t;
|
|
474
|
+
}
|
|
475
|
+
function mn(e) {
|
|
476
|
+
return _n(e) && d(e.const);
|
|
477
|
+
}
|
|
478
|
+
function hn(e) {
|
|
479
|
+
return _n(e) && Fe(e.const);
|
|
480
|
+
}
|
|
481
|
+
function gn(e) {
|
|
482
|
+
return _n(e) && Ae(e.const);
|
|
483
|
+
}
|
|
484
|
+
function _n(e) {
|
|
485
|
+
return E(e, "Literal") && w(e.$id) && vn(e.const);
|
|
486
|
+
}
|
|
487
|
+
function vn(e) {
|
|
488
|
+
return Ae(e) || Fe(e) || d(e);
|
|
489
|
+
}
|
|
490
|
+
function yn(e) {
|
|
491
|
+
return E(e, "MappedKey") && l(e.keys) && e.keys.every((e) => Fe(e) || d(e));
|
|
492
|
+
}
|
|
493
|
+
function bn(e) {
|
|
494
|
+
return E(e, "MappedResult") && dn(e.properties);
|
|
495
|
+
}
|
|
496
|
+
function xn(e) {
|
|
497
|
+
return E(e, "Never") && u(e.not) && Object.getOwnPropertyNames(e.not).length === 0;
|
|
498
|
+
}
|
|
499
|
+
function Sn(e) {
|
|
500
|
+
return E(e, "Not") && M(e.not);
|
|
501
|
+
}
|
|
502
|
+
function Cn(e) {
|
|
503
|
+
return E(e, "Null") && e.type === "null" && w(e.$id);
|
|
504
|
+
}
|
|
505
|
+
function D(e) {
|
|
506
|
+
return E(e, "Number") && e.type === "number" && w(e.$id) && C(e.exclusiveMaximum) && C(e.exclusiveMinimum) && C(e.maximum) && C(e.minimum) && C(e.multipleOf);
|
|
507
|
+
}
|
|
508
|
+
function O(e) {
|
|
509
|
+
return E(e, "Object") && e.type === "object" && w(e.$id) && dn(e.properties) && qt(e.additionalProperties) && C(e.minProperties) && C(e.maxProperties);
|
|
510
|
+
}
|
|
511
|
+
function wn(e) {
|
|
512
|
+
return E(e, "Promise") && e.type === "Promise" && w(e.$id) && M(e.item);
|
|
513
|
+
}
|
|
514
|
+
function k(e) {
|
|
515
|
+
return E(e, "Record") && e.type === "object" && w(e.$id) && qt(e.additionalProperties) && u(e.patternProperties) && ((e) => {
|
|
516
|
+
let t = Object.getOwnPropertyNames(e.patternProperties);
|
|
517
|
+
return t.length === 1 && Gt(t[0]) && u(e.patternProperties) && M(e.patternProperties[t[0]]);
|
|
518
|
+
})(e);
|
|
519
|
+
}
|
|
520
|
+
function Tn(e) {
|
|
521
|
+
return E(e, "Ref") && w(e.$id) && d(e.$ref);
|
|
522
|
+
}
|
|
523
|
+
function En(e) {
|
|
524
|
+
return E(e, "RegExp") && w(e.$id) && d(e.source) && d(e.flags) && C(e.maxLength) && C(e.minLength);
|
|
525
|
+
}
|
|
526
|
+
function A(e) {
|
|
527
|
+
return E(e, "String") && e.type === "string" && w(e.$id) && C(e.minLength) && C(e.maxLength) && Xt(e.pattern) && Zt(e.format);
|
|
528
|
+
}
|
|
529
|
+
function Dn(e) {
|
|
530
|
+
return E(e, "Symbol") && e.type === "symbol" && w(e.$id);
|
|
531
|
+
}
|
|
532
|
+
function On(e) {
|
|
533
|
+
return E(e, "TemplateLiteral") && e.type === "string" && d(e.pattern) && e.pattern[0] === "^" && e.pattern[e.pattern.length - 1] === "$";
|
|
534
|
+
}
|
|
535
|
+
function kn(e) {
|
|
536
|
+
return E(e, "This") && w(e.$id) && d(e.$ref);
|
|
537
|
+
}
|
|
538
|
+
function An(e) {
|
|
539
|
+
return u(e) && h in e;
|
|
540
|
+
}
|
|
541
|
+
function jn(e) {
|
|
542
|
+
return E(e, "Tuple") && e.type === "array" && w(e.$id) && Fe(e.minItems) && Fe(e.maxItems) && e.minItems === e.maxItems && (f(e.items) && f(e.additionalItems) && e.minItems === 0 || l(e.items) && e.items.every((e) => M(e)));
|
|
543
|
+
}
|
|
544
|
+
function Mn(e) {
|
|
545
|
+
return E(e, "Undefined") && e.type === "undefined" && w(e.$id);
|
|
546
|
+
}
|
|
547
|
+
function Nn(e) {
|
|
548
|
+
return E(e, "Union") && w(e.$id) && u(e) && l(e.anyOf) && e.anyOf.every((e) => M(e));
|
|
549
|
+
}
|
|
550
|
+
function Pn(e) {
|
|
551
|
+
return E(e, "Uint8Array") && e.type === "Uint8Array" && w(e.$id) && C(e.minByteLength) && C(e.maxByteLength);
|
|
552
|
+
}
|
|
553
|
+
function j(e) {
|
|
554
|
+
return E(e, "Unknown") && w(e.$id);
|
|
555
|
+
}
|
|
556
|
+
function Fn(e) {
|
|
557
|
+
return E(e, "Unsafe");
|
|
558
|
+
}
|
|
559
|
+
function In(e) {
|
|
560
|
+
return E(e, "Void") && e.type === "void" && w(e.$id);
|
|
561
|
+
}
|
|
562
|
+
function Ln(e) {
|
|
563
|
+
return u(e) && g in e && d(e[g]) && !Wt.includes(e[g]);
|
|
564
|
+
}
|
|
565
|
+
function M(e) {
|
|
566
|
+
return u(e) && (T(e) || en(e) || tn(e) || an(e) || rn(e) || nn(e) || on(e) || sn(e) || cn(e) || ln(e) || un(e) || fn(e) || pn(e) || _n(e) || yn(e) || bn(e) || xn(e) || Sn(e) || Cn(e) || D(e) || O(e) || wn(e) || k(e) || Tn(e) || En(e) || A(e) || Dn(e) || On(e) || kn(e) || jn(e) || Mn(e) || Nn(e) || Pn(e) || j(e) || Fn(e) || In(e) || Ln(e));
|
|
567
|
+
}
|
|
568
|
+
//#endregion
|
|
569
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs
|
|
570
|
+
var Rn = "(true|false)", zn = "(0|[1-9][0-9]*)", Bn = "(.*)", Vn = "(?!.*)";
|
|
571
|
+
`${Rn}`;
|
|
572
|
+
var Hn = `^${zn}$`, Un = `^${Bn}$`, Wn = `^${Vn}$`;
|
|
573
|
+
//#endregion
|
|
574
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs
|
|
575
|
+
function Gn(e, t) {
|
|
576
|
+
return e.includes(t);
|
|
577
|
+
}
|
|
578
|
+
function Kn(e) {
|
|
579
|
+
return [...new Set(e)];
|
|
580
|
+
}
|
|
581
|
+
function qn(e, t) {
|
|
582
|
+
return e.filter((e) => t.includes(e));
|
|
583
|
+
}
|
|
584
|
+
function Jn(e, t) {
|
|
585
|
+
return e.reduce((e, t) => qn(e, t), t);
|
|
586
|
+
}
|
|
587
|
+
function Yn(e) {
|
|
588
|
+
return e.length === 1 ? e[0] : e.length > 1 ? Jn(e.slice(1), e[0]) : [];
|
|
589
|
+
}
|
|
590
|
+
function Xn(e) {
|
|
591
|
+
let t = [];
|
|
592
|
+
for (let n of e) t.push(...n);
|
|
593
|
+
return t;
|
|
594
|
+
}
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs
|
|
597
|
+
function Zn(e) {
|
|
598
|
+
return m({ [g]: "Any" }, e);
|
|
599
|
+
}
|
|
600
|
+
//#endregion
|
|
601
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs
|
|
602
|
+
function Qn(e, t) {
|
|
603
|
+
return m({
|
|
604
|
+
[g]: "Array",
|
|
605
|
+
type: "array",
|
|
606
|
+
items: e
|
|
607
|
+
}, t);
|
|
608
|
+
}
|
|
609
|
+
//#endregion
|
|
610
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs
|
|
611
|
+
function $n(e) {
|
|
612
|
+
return m({
|
|
613
|
+
[g]: "Argument",
|
|
614
|
+
index: e
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
//#endregion
|
|
618
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs
|
|
619
|
+
function er(e, t) {
|
|
620
|
+
return m({
|
|
621
|
+
[g]: "AsyncIterator",
|
|
622
|
+
type: "AsyncIterator",
|
|
623
|
+
items: e
|
|
624
|
+
}, t);
|
|
625
|
+
}
|
|
626
|
+
//#endregion
|
|
627
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs
|
|
628
|
+
function N(e, t, n) {
|
|
629
|
+
return m({
|
|
630
|
+
[g]: "Computed",
|
|
631
|
+
target: e,
|
|
632
|
+
parameters: t
|
|
633
|
+
}, n);
|
|
634
|
+
}
|
|
635
|
+
//#endregion
|
|
636
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs
|
|
637
|
+
function tr(e, t) {
|
|
638
|
+
let { [t]: n, ...r } = e;
|
|
639
|
+
return r;
|
|
640
|
+
}
|
|
641
|
+
function P(e, t) {
|
|
642
|
+
return t.reduce((e, t) => tr(e, t), e);
|
|
643
|
+
}
|
|
644
|
+
//#endregion
|
|
645
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs
|
|
646
|
+
function F(e) {
|
|
647
|
+
return m({
|
|
648
|
+
[g]: "Never",
|
|
649
|
+
not: {}
|
|
650
|
+
}, e);
|
|
651
|
+
}
|
|
652
|
+
//#endregion
|
|
653
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs
|
|
654
|
+
function I(e) {
|
|
655
|
+
return m({
|
|
656
|
+
[g]: "MappedResult",
|
|
657
|
+
properties: e
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
//#endregion
|
|
661
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs
|
|
662
|
+
function nr(e, t, n) {
|
|
663
|
+
return m({
|
|
664
|
+
[g]: "Constructor",
|
|
665
|
+
type: "Constructor",
|
|
666
|
+
parameters: e,
|
|
667
|
+
returns: t
|
|
668
|
+
}, n);
|
|
669
|
+
}
|
|
670
|
+
//#endregion
|
|
671
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs
|
|
672
|
+
function rr(e, t, n) {
|
|
673
|
+
return m({
|
|
674
|
+
[g]: "Function",
|
|
675
|
+
type: "Function",
|
|
676
|
+
parameters: e,
|
|
677
|
+
returns: t
|
|
678
|
+
}, n);
|
|
679
|
+
}
|
|
680
|
+
//#endregion
|
|
681
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs
|
|
682
|
+
function ir(e, t) {
|
|
683
|
+
return m({
|
|
684
|
+
[g]: "Union",
|
|
685
|
+
anyOf: e
|
|
686
|
+
}, t);
|
|
687
|
+
}
|
|
688
|
+
//#endregion
|
|
689
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs
|
|
690
|
+
function ar(e) {
|
|
691
|
+
return e.some((e) => ct(e));
|
|
692
|
+
}
|
|
693
|
+
function or(e) {
|
|
694
|
+
return e.map((e) => ct(e) ? sr(e) : e);
|
|
695
|
+
}
|
|
696
|
+
function sr(e) {
|
|
697
|
+
return P(e, [at]);
|
|
698
|
+
}
|
|
699
|
+
function cr(e, t) {
|
|
700
|
+
return ar(e) ? Wi(ir(or(e), t)) : ir(or(e), t);
|
|
701
|
+
}
|
|
702
|
+
function lr(e, t) {
|
|
703
|
+
return e.length === 1 ? m(e[0], t) : e.length === 0 ? F(t) : cr(e, t);
|
|
704
|
+
}
|
|
705
|
+
//#endregion
|
|
706
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs
|
|
707
|
+
function L(e, t) {
|
|
708
|
+
return e.length === 0 ? F(t) : e.length === 1 ? m(e[0], t) : ir(e, t);
|
|
709
|
+
}
|
|
710
|
+
//#endregion
|
|
711
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs
|
|
712
|
+
var ur = class extends rt {};
|
|
713
|
+
function dr(e) {
|
|
714
|
+
return e.replace(/\\\$/g, "$").replace(/\\\*/g, "*").replace(/\\\^/g, "^").replace(/\\\|/g, "|").replace(/\\\(/g, "(").replace(/\\\)/g, ")");
|
|
715
|
+
}
|
|
716
|
+
function fr(e, t, n) {
|
|
717
|
+
return e[t] === n && e.charCodeAt(t - 1) !== 92;
|
|
718
|
+
}
|
|
719
|
+
function pr(e, t) {
|
|
720
|
+
return fr(e, t, "(");
|
|
721
|
+
}
|
|
722
|
+
function mr(e, t) {
|
|
723
|
+
return fr(e, t, ")");
|
|
724
|
+
}
|
|
725
|
+
function hr(e, t) {
|
|
726
|
+
return fr(e, t, "|");
|
|
727
|
+
}
|
|
728
|
+
function gr(e) {
|
|
729
|
+
if (!(pr(e, 0) && mr(e, e.length - 1))) return !1;
|
|
730
|
+
let t = 0;
|
|
731
|
+
for (let n = 0; n < e.length; n++) if (pr(e, n) && (t += 1), mr(e, n) && --t, t === 0 && n !== e.length - 1) return !1;
|
|
732
|
+
return !0;
|
|
733
|
+
}
|
|
734
|
+
function _r(e) {
|
|
735
|
+
return e.slice(1, e.length - 1);
|
|
736
|
+
}
|
|
737
|
+
function vr(e) {
|
|
738
|
+
let t = 0;
|
|
739
|
+
for (let n = 0; n < e.length; n++) if (pr(e, n) && (t += 1), mr(e, n) && --t, hr(e, n) && t === 0) return !0;
|
|
740
|
+
return !1;
|
|
741
|
+
}
|
|
742
|
+
function yr(e) {
|
|
743
|
+
for (let t = 0; t < e.length; t++) if (pr(e, t)) return !0;
|
|
744
|
+
return !1;
|
|
745
|
+
}
|
|
746
|
+
function br(e) {
|
|
747
|
+
let [t, n] = [0, 0], r = [];
|
|
748
|
+
for (let i = 0; i < e.length; i++) if (pr(e, i) && (t += 1), mr(e, i) && --t, hr(e, i) && t === 0) {
|
|
749
|
+
let t = e.slice(n, i);
|
|
750
|
+
t.length > 0 && r.push(Sr(t)), n = i + 1;
|
|
751
|
+
}
|
|
752
|
+
let i = e.slice(n);
|
|
753
|
+
return i.length > 0 && r.push(Sr(i)), r.length === 0 ? {
|
|
754
|
+
type: "const",
|
|
755
|
+
const: ""
|
|
756
|
+
} : r.length === 1 ? r[0] : {
|
|
757
|
+
type: "or",
|
|
758
|
+
expr: r
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
function xr(e) {
|
|
762
|
+
function t(e, t) {
|
|
763
|
+
if (!pr(e, t)) throw new ur("TemplateLiteralParser: Index must point to open parens");
|
|
764
|
+
let n = 0;
|
|
765
|
+
for (let r = t; r < e.length; r++) if (pr(e, r) && (n += 1), mr(e, r) && --n, n === 0) return [t, r];
|
|
766
|
+
throw new ur("TemplateLiteralParser: Unclosed group parens in expression");
|
|
767
|
+
}
|
|
768
|
+
function n(e, t) {
|
|
769
|
+
for (let n = t; n < e.length; n++) if (pr(e, n)) return [t, n];
|
|
770
|
+
return [t, e.length];
|
|
771
|
+
}
|
|
772
|
+
let r = [];
|
|
773
|
+
for (let i = 0; i < e.length; i++) if (pr(e, i)) {
|
|
774
|
+
let [n, a] = t(e, i), o = e.slice(n, a + 1);
|
|
775
|
+
r.push(Sr(o)), i = a;
|
|
776
|
+
} else {
|
|
777
|
+
let [t, a] = n(e, i), o = e.slice(t, a);
|
|
778
|
+
o.length > 0 && r.push(Sr(o)), i = a - 1;
|
|
779
|
+
}
|
|
780
|
+
return r.length === 0 ? {
|
|
781
|
+
type: "const",
|
|
782
|
+
const: ""
|
|
783
|
+
} : r.length === 1 ? r[0] : {
|
|
784
|
+
type: "and",
|
|
785
|
+
expr: r
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
function Sr(e) {
|
|
789
|
+
return gr(e) ? Sr(_r(e)) : vr(e) ? br(e) : yr(e) ? xr(e) : {
|
|
790
|
+
type: "const",
|
|
791
|
+
const: dr(e)
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
function Cr(e) {
|
|
795
|
+
return Sr(e.slice(1, e.length - 1));
|
|
796
|
+
}
|
|
797
|
+
//#endregion
|
|
798
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs
|
|
799
|
+
var wr = class extends rt {};
|
|
800
|
+
function Tr(e) {
|
|
801
|
+
return e.type === "or" && e.expr.length === 2 && e.expr[0].type === "const" && e.expr[0].const === "0" && e.expr[1].type === "const" && e.expr[1].const === "[1-9][0-9]*";
|
|
802
|
+
}
|
|
803
|
+
function Er(e) {
|
|
804
|
+
return e.type === "or" && e.expr.length === 2 && e.expr[0].type === "const" && e.expr[0].const === "true" && e.expr[1].type === "const" && e.expr[1].const === "false";
|
|
805
|
+
}
|
|
806
|
+
function Dr(e) {
|
|
807
|
+
return e.type === "const" && e.const === ".*";
|
|
808
|
+
}
|
|
809
|
+
function Or(e) {
|
|
810
|
+
return Tr(e) || Dr(e) ? !1 : Er(e) ? !0 : e.type === "and" || e.type === "or" ? e.expr.every((e) => Or(e)) : e.type === "const" || (() => {
|
|
811
|
+
throw new wr("Unknown expression type");
|
|
812
|
+
})();
|
|
813
|
+
}
|
|
814
|
+
function kr(e) {
|
|
815
|
+
return Or(Cr(e.pattern));
|
|
816
|
+
}
|
|
817
|
+
//#endregion
|
|
818
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs
|
|
819
|
+
var Ar = class extends rt {};
|
|
820
|
+
function* jr(e) {
|
|
821
|
+
if (e.length === 1) return yield* e[0];
|
|
822
|
+
for (let t of e[0]) for (let n of jr(e.slice(1))) yield `${t}${n}`;
|
|
823
|
+
}
|
|
824
|
+
function* Mr(e) {
|
|
825
|
+
return yield* jr(e.expr.map((e) => [...Fr(e)]));
|
|
826
|
+
}
|
|
827
|
+
function* Nr(e) {
|
|
828
|
+
for (let t of e.expr) yield* Fr(t);
|
|
829
|
+
}
|
|
830
|
+
function* Pr(e) {
|
|
831
|
+
return yield e.const;
|
|
832
|
+
}
|
|
833
|
+
function* Fr(e) {
|
|
834
|
+
return e.type === "and" ? yield* Mr(e) : e.type === "or" ? yield* Nr(e) : e.type === "const" ? yield* Pr(e) : (() => {
|
|
835
|
+
throw new Ar("Unknown expression");
|
|
836
|
+
})();
|
|
837
|
+
}
|
|
838
|
+
function Ir(e) {
|
|
839
|
+
let t = Cr(e.pattern);
|
|
840
|
+
return Or(t) ? [...Fr(t)] : [];
|
|
841
|
+
}
|
|
842
|
+
//#endregion
|
|
843
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs
|
|
844
|
+
function R(e, t) {
|
|
845
|
+
return m({
|
|
846
|
+
[g]: "Literal",
|
|
847
|
+
const: e,
|
|
848
|
+
type: typeof e
|
|
849
|
+
}, t);
|
|
850
|
+
}
|
|
851
|
+
//#endregion
|
|
852
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs
|
|
853
|
+
function Lr(e) {
|
|
854
|
+
return m({
|
|
855
|
+
[g]: "Boolean",
|
|
856
|
+
type: "boolean"
|
|
857
|
+
}, e);
|
|
858
|
+
}
|
|
859
|
+
//#endregion
|
|
860
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs
|
|
861
|
+
function Rr(e) {
|
|
862
|
+
return m({
|
|
863
|
+
[g]: "BigInt",
|
|
864
|
+
type: "bigint"
|
|
865
|
+
}, e);
|
|
866
|
+
}
|
|
867
|
+
//#endregion
|
|
868
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs
|
|
869
|
+
function zr(e) {
|
|
870
|
+
return m({
|
|
871
|
+
[g]: "Number",
|
|
872
|
+
type: "number"
|
|
873
|
+
}, e);
|
|
874
|
+
}
|
|
875
|
+
//#endregion
|
|
876
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs
|
|
877
|
+
function Br(e) {
|
|
878
|
+
return m({
|
|
879
|
+
[g]: "String",
|
|
880
|
+
type: "string"
|
|
881
|
+
}, e);
|
|
882
|
+
}
|
|
883
|
+
//#endregion
|
|
884
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs
|
|
885
|
+
function* Vr(e) {
|
|
886
|
+
let t = e.trim().replace(/"|'/g, "");
|
|
887
|
+
return t === "boolean" ? yield Lr() : t === "number" ? yield zr() : t === "bigint" ? yield Rr() : t === "string" ? yield Br() : yield (() => {
|
|
888
|
+
let e = t.split("|").map((e) => R(e.trim()));
|
|
889
|
+
return e.length === 0 ? F() : e.length === 1 ? e[0] : lr(e);
|
|
890
|
+
})();
|
|
891
|
+
}
|
|
892
|
+
function* Hr(e) {
|
|
893
|
+
if (e[1] !== "{") return yield* [R("$"), ...Ur(e.slice(1))];
|
|
894
|
+
for (let t = 2; t < e.length; t++) if (e[t] === "}") {
|
|
895
|
+
let n = Vr(e.slice(2, t)), r = Ur(e.slice(t + 1));
|
|
896
|
+
return yield* [...n, ...r];
|
|
897
|
+
}
|
|
898
|
+
yield R(e);
|
|
899
|
+
}
|
|
900
|
+
function* Ur(e) {
|
|
901
|
+
for (let t = 0; t < e.length; t++) if (e[t] === "$") return yield* [R(e.slice(0, t)), ...Hr(e.slice(t))];
|
|
902
|
+
yield R(e);
|
|
903
|
+
}
|
|
904
|
+
function Wr(e) {
|
|
905
|
+
return [...Ur(e)];
|
|
906
|
+
}
|
|
907
|
+
//#endregion
|
|
908
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs
|
|
909
|
+
var Gr = class extends rt {};
|
|
910
|
+
function Kr(e) {
|
|
911
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
912
|
+
}
|
|
913
|
+
function qr(e, t) {
|
|
914
|
+
return Nt(e) ? e.pattern.slice(1, e.pattern.length - 1) : S(e) ? `(${e.anyOf.map((e) => qr(e, t)).join("|")})` : Dt(e) || yt(e) || pt(e) ? `${t}${zn}` : jt(e) ? `${t}${Bn}` : St(e) ? `${t}${Kr(e.const.toString())}` : mt(e) ? `${t}${Rn}` : (() => {
|
|
915
|
+
throw new Gr(`Unexpected Kind '${e[g]}'`);
|
|
916
|
+
})();
|
|
917
|
+
}
|
|
918
|
+
function Jr(e) {
|
|
919
|
+
return `^${e.map((e) => qr(e, "")).join("")}\$`;
|
|
920
|
+
}
|
|
921
|
+
//#endregion
|
|
922
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs
|
|
923
|
+
function Yr(e) {
|
|
924
|
+
return lr(Ir(e).map((e) => R(e)));
|
|
925
|
+
}
|
|
926
|
+
//#endregion
|
|
927
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs
|
|
928
|
+
function Xr(e, t) {
|
|
929
|
+
let n = d(e) ? Jr(Wr(e)) : Jr(e);
|
|
930
|
+
return m({
|
|
931
|
+
[g]: "TemplateLiteral",
|
|
932
|
+
type: "string",
|
|
933
|
+
pattern: n
|
|
934
|
+
}, t);
|
|
935
|
+
}
|
|
936
|
+
//#endregion
|
|
937
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs
|
|
938
|
+
function Zr(e) {
|
|
939
|
+
return Ir(e).map((e) => e.toString());
|
|
940
|
+
}
|
|
941
|
+
function Qr(e) {
|
|
942
|
+
let t = [];
|
|
943
|
+
for (let n of e) t.push(...ei(n));
|
|
944
|
+
return t;
|
|
945
|
+
}
|
|
946
|
+
function $r(e) {
|
|
947
|
+
return [e.toString()];
|
|
948
|
+
}
|
|
949
|
+
function ei(e) {
|
|
950
|
+
return [...new Set(Nt(e) ? Zr(e) : S(e) ? Qr(e.anyOf) : St(e) ? $r(e.const) : Dt(e) || yt(e) ? ["[number]"] : [])];
|
|
951
|
+
}
|
|
952
|
+
//#endregion
|
|
953
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs
|
|
954
|
+
function ti(e, t, n) {
|
|
955
|
+
let r = {};
|
|
956
|
+
for (let i of Object.getOwnPropertyNames(t)) r[i] = hi(e, ei(t[i]), n);
|
|
957
|
+
return r;
|
|
958
|
+
}
|
|
959
|
+
function ni(e, t, n) {
|
|
960
|
+
return ti(e, t.properties, n);
|
|
961
|
+
}
|
|
962
|
+
function ri(e, t, n) {
|
|
963
|
+
return I(ni(e, t, n));
|
|
964
|
+
}
|
|
965
|
+
//#endregion
|
|
966
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs
|
|
967
|
+
function ii(e, t) {
|
|
968
|
+
return e.map((e) => fi(e, t));
|
|
969
|
+
}
|
|
970
|
+
function ai(e) {
|
|
971
|
+
return e.filter((e) => !wt(e));
|
|
972
|
+
}
|
|
973
|
+
function oi(e, t) {
|
|
974
|
+
return $i(ai(ii(e, t)));
|
|
975
|
+
}
|
|
976
|
+
function si(e) {
|
|
977
|
+
return e.some((e) => wt(e)) ? [] : e;
|
|
978
|
+
}
|
|
979
|
+
function ci(e, t) {
|
|
980
|
+
return lr(si(ii(e, t)));
|
|
981
|
+
}
|
|
982
|
+
function li(e, t) {
|
|
983
|
+
return t in e ? e[t] : t === "[number]" ? lr(e) : F();
|
|
984
|
+
}
|
|
985
|
+
function ui(e, t) {
|
|
986
|
+
return t === "[number]" ? e : F();
|
|
987
|
+
}
|
|
988
|
+
function di(e, t) {
|
|
989
|
+
return t in e ? e[t] : F();
|
|
990
|
+
}
|
|
991
|
+
function fi(e, t) {
|
|
992
|
+
return _(e) ? oi(e.allOf, t) : S(e) ? ci(e.anyOf, t) : It(e) ? li(e.items ?? [], t) : dt(e) ? ui(e.items, t) : b(e) ? di(e.properties, t) : F();
|
|
993
|
+
}
|
|
994
|
+
function pi(e, t) {
|
|
995
|
+
return t.map((t) => fi(e, t));
|
|
996
|
+
}
|
|
997
|
+
function mi(e, t) {
|
|
998
|
+
return lr(pi(e, t));
|
|
999
|
+
}
|
|
1000
|
+
function hi(e, t, n) {
|
|
1001
|
+
if (x(e) || x(t)) {
|
|
1002
|
+
if (!Ut(e) || !Ut(t)) throw new rt("Index types using Ref parameters require both Type and Key to be of TSchema");
|
|
1003
|
+
return N("Index", [e, t]);
|
|
1004
|
+
}
|
|
1005
|
+
return y(t) ? ri(e, t, n) : Ct(t) ? yi(e, t, n) : m(Ut(t) ? mi(e, ei(t)) : mi(e, t), n);
|
|
1006
|
+
}
|
|
1007
|
+
//#endregion
|
|
1008
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs
|
|
1009
|
+
function gi(e, t, n) {
|
|
1010
|
+
return { [t]: hi(e, [t], p(n)) };
|
|
1011
|
+
}
|
|
1012
|
+
function _i(e, t, n) {
|
|
1013
|
+
return t.reduce((t, r) => ({
|
|
1014
|
+
...t,
|
|
1015
|
+
...gi(e, r, n)
|
|
1016
|
+
}), {});
|
|
1017
|
+
}
|
|
1018
|
+
function vi(e, t, n) {
|
|
1019
|
+
return _i(e, t.keys, n);
|
|
1020
|
+
}
|
|
1021
|
+
function yi(e, t, n) {
|
|
1022
|
+
return I(vi(e, t, n));
|
|
1023
|
+
}
|
|
1024
|
+
//#endregion
|
|
1025
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs
|
|
1026
|
+
function bi(e, t) {
|
|
1027
|
+
return m({
|
|
1028
|
+
[g]: "Iterator",
|
|
1029
|
+
type: "Iterator",
|
|
1030
|
+
items: e
|
|
1031
|
+
}, t);
|
|
1032
|
+
}
|
|
1033
|
+
//#endregion
|
|
1034
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs
|
|
1035
|
+
function xi(e) {
|
|
1036
|
+
return globalThis.Object.keys(e).filter((t) => !ct(e[t]));
|
|
1037
|
+
}
|
|
1038
|
+
function Si(e, t) {
|
|
1039
|
+
let n = xi(e);
|
|
1040
|
+
return m(n.length > 0 ? {
|
|
1041
|
+
[g]: "Object",
|
|
1042
|
+
type: "object",
|
|
1043
|
+
required: n,
|
|
1044
|
+
properties: e
|
|
1045
|
+
} : {
|
|
1046
|
+
[g]: "Object",
|
|
1047
|
+
type: "object",
|
|
1048
|
+
properties: e
|
|
1049
|
+
}, t);
|
|
1050
|
+
}
|
|
1051
|
+
var z = Si;
|
|
1052
|
+
//#endregion
|
|
1053
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs
|
|
1054
|
+
function Ci(e, t) {
|
|
1055
|
+
return m({
|
|
1056
|
+
[g]: "Promise",
|
|
1057
|
+
type: "Promise",
|
|
1058
|
+
item: e
|
|
1059
|
+
}, t);
|
|
1060
|
+
}
|
|
1061
|
+
//#endregion
|
|
1062
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs
|
|
1063
|
+
function wi(e) {
|
|
1064
|
+
return m(P(e, [it]));
|
|
1065
|
+
}
|
|
1066
|
+
function Ti(e) {
|
|
1067
|
+
return m({
|
|
1068
|
+
...e,
|
|
1069
|
+
[it]: "Readonly"
|
|
1070
|
+
});
|
|
1071
|
+
}
|
|
1072
|
+
function Ei(e, t) {
|
|
1073
|
+
return t === !1 ? wi(e) : Ti(e);
|
|
1074
|
+
}
|
|
1075
|
+
function Di(e, t) {
|
|
1076
|
+
let n = t ?? !0;
|
|
1077
|
+
return y(e) ? Ai(e, n) : Ei(e, n);
|
|
1078
|
+
}
|
|
1079
|
+
//#endregion
|
|
1080
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs
|
|
1081
|
+
function Oi(e, t) {
|
|
1082
|
+
let n = {};
|
|
1083
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = Di(e[r], t);
|
|
1084
|
+
return n;
|
|
1085
|
+
}
|
|
1086
|
+
function ki(e, t) {
|
|
1087
|
+
return Oi(e.properties, t);
|
|
1088
|
+
}
|
|
1089
|
+
function Ai(e, t) {
|
|
1090
|
+
return I(ki(e, t));
|
|
1091
|
+
}
|
|
1092
|
+
//#endregion
|
|
1093
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs
|
|
1094
|
+
function ji(e, t) {
|
|
1095
|
+
return m(e.length > 0 ? {
|
|
1096
|
+
[g]: "Tuple",
|
|
1097
|
+
type: "array",
|
|
1098
|
+
items: e,
|
|
1099
|
+
additionalItems: !1,
|
|
1100
|
+
minItems: e.length,
|
|
1101
|
+
maxItems: e.length
|
|
1102
|
+
} : {
|
|
1103
|
+
[g]: "Tuple",
|
|
1104
|
+
type: "array",
|
|
1105
|
+
minItems: e.length,
|
|
1106
|
+
maxItems: e.length
|
|
1107
|
+
}, t);
|
|
1108
|
+
}
|
|
1109
|
+
//#endregion
|
|
1110
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs
|
|
1111
|
+
function Mi(e, t) {
|
|
1112
|
+
return e in t ? B(e, t[e]) : I(t);
|
|
1113
|
+
}
|
|
1114
|
+
function Ni(e) {
|
|
1115
|
+
return { [e]: R(e) };
|
|
1116
|
+
}
|
|
1117
|
+
function Pi(e) {
|
|
1118
|
+
let t = {};
|
|
1119
|
+
for (let n of e) t[n] = R(n);
|
|
1120
|
+
return t;
|
|
1121
|
+
}
|
|
1122
|
+
function Fi(e, t) {
|
|
1123
|
+
return Gn(t, e) ? Ni(e) : Pi(t);
|
|
1124
|
+
}
|
|
1125
|
+
function Ii(e, t) {
|
|
1126
|
+
return Mi(e, Fi(e, t));
|
|
1127
|
+
}
|
|
1128
|
+
function Li(e, t) {
|
|
1129
|
+
return t.map((t) => B(e, t));
|
|
1130
|
+
}
|
|
1131
|
+
function Ri(e, t) {
|
|
1132
|
+
let n = {};
|
|
1133
|
+
for (let r of globalThis.Object.getOwnPropertyNames(t)) n[r] = B(e, t[r]);
|
|
1134
|
+
return n;
|
|
1135
|
+
}
|
|
1136
|
+
function B(e, t) {
|
|
1137
|
+
let n = { ...t };
|
|
1138
|
+
return ct(t) ? Wi(B(e, P(t, [at]))) : st(t) ? Di(B(e, P(t, [it]))) : y(t) ? Mi(e, t.properties) : Ct(t) ? Ii(e, t.keys) : gt(t) ? nr(Li(e, t.parameters), B(e, t.returns), n) : vt(t) ? rr(Li(e, t.parameters), B(e, t.returns), n) : ft(t) ? er(B(e, t.items), n) : bt(t) ? bi(B(e, t.items), n) : _(t) ? ea(Li(e, t.allOf), n) : S(t) ? L(Li(e, t.anyOf), n) : It(t) ? ji(Li(e, t.items ?? []), n) : b(t) ? z(Ri(e, t.properties), n) : dt(t) ? Qn(B(e, t.items), n) : Ot(t) ? Ci(B(e, t.item), n) : t;
|
|
1139
|
+
}
|
|
1140
|
+
function zi(e, t) {
|
|
1141
|
+
let n = {};
|
|
1142
|
+
for (let r of e) n[r] = B(r, t);
|
|
1143
|
+
return n;
|
|
1144
|
+
}
|
|
1145
|
+
function Bi(e, t, n) {
|
|
1146
|
+
let r = Ut(e) ? ei(e) : e;
|
|
1147
|
+
return z(zi(r, t({
|
|
1148
|
+
[g]: "MappedKey",
|
|
1149
|
+
keys: r
|
|
1150
|
+
})), n);
|
|
1151
|
+
}
|
|
1152
|
+
//#endregion
|
|
1153
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs
|
|
1154
|
+
function Vi(e) {
|
|
1155
|
+
return m(P(e, [at]));
|
|
1156
|
+
}
|
|
1157
|
+
function Hi(e) {
|
|
1158
|
+
return m({
|
|
1159
|
+
...e,
|
|
1160
|
+
[at]: "Optional"
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
function Ui(e, t) {
|
|
1164
|
+
return t === !1 ? Vi(e) : Hi(e);
|
|
1165
|
+
}
|
|
1166
|
+
function Wi(e, t) {
|
|
1167
|
+
let n = t ?? !0;
|
|
1168
|
+
return y(e) ? qi(e, n) : Ui(e, n);
|
|
1169
|
+
}
|
|
1170
|
+
//#endregion
|
|
1171
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs
|
|
1172
|
+
function Gi(e, t) {
|
|
1173
|
+
let n = {};
|
|
1174
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = Wi(e[r], t);
|
|
1175
|
+
return n;
|
|
1176
|
+
}
|
|
1177
|
+
function Ki(e, t) {
|
|
1178
|
+
return Gi(e.properties, t);
|
|
1179
|
+
}
|
|
1180
|
+
function qi(e, t) {
|
|
1181
|
+
return I(Ki(e, t));
|
|
1182
|
+
}
|
|
1183
|
+
//#endregion
|
|
1184
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs
|
|
1185
|
+
function Ji(e, t = {}) {
|
|
1186
|
+
let n = e.every((e) => b(e)), r = Ut(t.unevaluatedProperties) ? { unevaluatedProperties: t.unevaluatedProperties } : {};
|
|
1187
|
+
return m(t.unevaluatedProperties === !1 || Ut(t.unevaluatedProperties) || n ? {
|
|
1188
|
+
...r,
|
|
1189
|
+
[g]: "Intersect",
|
|
1190
|
+
type: "object",
|
|
1191
|
+
allOf: e
|
|
1192
|
+
} : {
|
|
1193
|
+
...r,
|
|
1194
|
+
[g]: "Intersect",
|
|
1195
|
+
allOf: e
|
|
1196
|
+
}, t);
|
|
1197
|
+
}
|
|
1198
|
+
//#endregion
|
|
1199
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs
|
|
1200
|
+
function Yi(e) {
|
|
1201
|
+
return e.every((e) => ct(e));
|
|
1202
|
+
}
|
|
1203
|
+
function Xi(e) {
|
|
1204
|
+
return P(e, [at]);
|
|
1205
|
+
}
|
|
1206
|
+
function Zi(e) {
|
|
1207
|
+
return e.map((e) => ct(e) ? Xi(e) : e);
|
|
1208
|
+
}
|
|
1209
|
+
function Qi(e, t) {
|
|
1210
|
+
return Yi(e) ? Wi(Ji(Zi(e), t)) : Ji(Zi(e), t);
|
|
1211
|
+
}
|
|
1212
|
+
function $i(e, t = {}) {
|
|
1213
|
+
if (e.length === 1) return m(e[0], t);
|
|
1214
|
+
if (e.length === 0) return F(t);
|
|
1215
|
+
if (e.some((e) => Ft(e))) throw Error("Cannot intersect transform types");
|
|
1216
|
+
return Qi(e, t);
|
|
1217
|
+
}
|
|
1218
|
+
//#endregion
|
|
1219
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs
|
|
1220
|
+
function ea(e, t) {
|
|
1221
|
+
if (e.length === 1) return m(e[0], t);
|
|
1222
|
+
if (e.length === 0) return F(t);
|
|
1223
|
+
if (e.some((e) => Ft(e))) throw Error("Cannot intersect transform types");
|
|
1224
|
+
return Ji(e, t);
|
|
1225
|
+
}
|
|
1226
|
+
//#endregion
|
|
1227
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs
|
|
1228
|
+
function ta(...e) {
|
|
1229
|
+
let [t, n] = typeof e[0] == "string" ? [e[0], e[1]] : [e[0].$id, e[1]];
|
|
1230
|
+
if (typeof t != "string") throw new rt("Ref: $ref must be a string");
|
|
1231
|
+
return m({
|
|
1232
|
+
[g]: "Ref",
|
|
1233
|
+
$ref: t
|
|
1234
|
+
}, n);
|
|
1235
|
+
}
|
|
1236
|
+
//#endregion
|
|
1237
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs
|
|
1238
|
+
function na(e, t) {
|
|
1239
|
+
return N("Awaited", [N(e, t)]);
|
|
1240
|
+
}
|
|
1241
|
+
function ra(e) {
|
|
1242
|
+
return N("Awaited", [ta(e)]);
|
|
1243
|
+
}
|
|
1244
|
+
function ia(e) {
|
|
1245
|
+
return ea(sa(e));
|
|
1246
|
+
}
|
|
1247
|
+
function aa(e) {
|
|
1248
|
+
return L(sa(e));
|
|
1249
|
+
}
|
|
1250
|
+
function oa(e) {
|
|
1251
|
+
return ca(e);
|
|
1252
|
+
}
|
|
1253
|
+
function sa(e) {
|
|
1254
|
+
return e.map((e) => ca(e));
|
|
1255
|
+
}
|
|
1256
|
+
function ca(e, t) {
|
|
1257
|
+
return m(ht(e) ? na(e.target, e.parameters) : _(e) ? ia(e.allOf) : S(e) ? aa(e.anyOf) : Ot(e) ? oa(e.item) : x(e) ? ra(e.$ref) : e, t);
|
|
1258
|
+
}
|
|
1259
|
+
//#endregion
|
|
1260
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs
|
|
1261
|
+
function la(e) {
|
|
1262
|
+
let t = [];
|
|
1263
|
+
for (let n of e) t.push(ga(n));
|
|
1264
|
+
return t;
|
|
1265
|
+
}
|
|
1266
|
+
function ua(e) {
|
|
1267
|
+
return Xn(la(e));
|
|
1268
|
+
}
|
|
1269
|
+
function da(e) {
|
|
1270
|
+
return Yn(la(e));
|
|
1271
|
+
}
|
|
1272
|
+
function fa(e) {
|
|
1273
|
+
return e.map((e, t) => t.toString());
|
|
1274
|
+
}
|
|
1275
|
+
function pa(e) {
|
|
1276
|
+
return ["[number]"];
|
|
1277
|
+
}
|
|
1278
|
+
function ma(e) {
|
|
1279
|
+
return globalThis.Object.getOwnPropertyNames(e);
|
|
1280
|
+
}
|
|
1281
|
+
function ha(e) {
|
|
1282
|
+
return _a ? globalThis.Object.getOwnPropertyNames(e).map((e) => e[0] === "^" && e[e.length - 1] === "$" ? e.slice(1, e.length - 1) : e) : [];
|
|
1283
|
+
}
|
|
1284
|
+
function ga(e) {
|
|
1285
|
+
return _(e) ? ua(e.allOf) : S(e) ? da(e.anyOf) : It(e) ? fa(e.items ?? []) : dt(e) ? pa(e.items) : b(e) ? ma(e.properties) : kt(e) ? ha(e.patternProperties) : [];
|
|
1286
|
+
}
|
|
1287
|
+
var _a = !1;
|
|
1288
|
+
//#endregion
|
|
1289
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs
|
|
1290
|
+
function va(e, t) {
|
|
1291
|
+
return N("KeyOf", [N(e, t)]);
|
|
1292
|
+
}
|
|
1293
|
+
function ya(e) {
|
|
1294
|
+
return N("KeyOf", [ta(e)]);
|
|
1295
|
+
}
|
|
1296
|
+
function ba(e, t) {
|
|
1297
|
+
return m(lr(xa(ga(e))), t);
|
|
1298
|
+
}
|
|
1299
|
+
function xa(e) {
|
|
1300
|
+
return e.map((e) => e === "[number]" ? zr() : R(e));
|
|
1301
|
+
}
|
|
1302
|
+
function Sa(e, t) {
|
|
1303
|
+
return ht(e) ? va(e.target, e.parameters) : x(e) ? ya(e.$ref) : y(e) ? Ta(e, t) : ba(e, t);
|
|
1304
|
+
}
|
|
1305
|
+
//#endregion
|
|
1306
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs
|
|
1307
|
+
function Ca(e, t) {
|
|
1308
|
+
let n = {};
|
|
1309
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = Sa(e[r], p(t));
|
|
1310
|
+
return n;
|
|
1311
|
+
}
|
|
1312
|
+
function wa(e, t) {
|
|
1313
|
+
return Ca(e.properties, t);
|
|
1314
|
+
}
|
|
1315
|
+
function Ta(e, t) {
|
|
1316
|
+
return I(wa(e, t));
|
|
1317
|
+
}
|
|
1318
|
+
//#endregion
|
|
1319
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs
|
|
1320
|
+
function Ea(e) {
|
|
1321
|
+
let t = [];
|
|
1322
|
+
for (let n of e) t.push(...ga(n));
|
|
1323
|
+
return Kn(t);
|
|
1324
|
+
}
|
|
1325
|
+
function Da(e) {
|
|
1326
|
+
return e.filter((e) => !wt(e));
|
|
1327
|
+
}
|
|
1328
|
+
function Oa(e, t) {
|
|
1329
|
+
let n = [];
|
|
1330
|
+
for (let r of e) n.push(...pi(r, [t]));
|
|
1331
|
+
return Da(n);
|
|
1332
|
+
}
|
|
1333
|
+
function ka(e, t) {
|
|
1334
|
+
let n = {};
|
|
1335
|
+
for (let r of t) n[r] = $i(Oa(e, r));
|
|
1336
|
+
return n;
|
|
1337
|
+
}
|
|
1338
|
+
function Aa(e, t) {
|
|
1339
|
+
return z(ka(e, Ea(e)), t);
|
|
1340
|
+
}
|
|
1341
|
+
//#endregion
|
|
1342
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs
|
|
1343
|
+
function ja(e) {
|
|
1344
|
+
return m({
|
|
1345
|
+
[g]: "Date",
|
|
1346
|
+
type: "Date"
|
|
1347
|
+
}, e);
|
|
1348
|
+
}
|
|
1349
|
+
//#endregion
|
|
1350
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs
|
|
1351
|
+
function Ma(e) {
|
|
1352
|
+
return m({
|
|
1353
|
+
[g]: "Null",
|
|
1354
|
+
type: "null"
|
|
1355
|
+
}, e);
|
|
1356
|
+
}
|
|
1357
|
+
//#endregion
|
|
1358
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs
|
|
1359
|
+
function Na(e) {
|
|
1360
|
+
return m({
|
|
1361
|
+
[g]: "Symbol",
|
|
1362
|
+
type: "symbol"
|
|
1363
|
+
}, e);
|
|
1364
|
+
}
|
|
1365
|
+
//#endregion
|
|
1366
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs
|
|
1367
|
+
function Pa(e) {
|
|
1368
|
+
return m({
|
|
1369
|
+
[g]: "Undefined",
|
|
1370
|
+
type: "undefined"
|
|
1371
|
+
}, e);
|
|
1372
|
+
}
|
|
1373
|
+
//#endregion
|
|
1374
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs
|
|
1375
|
+
function Fa(e) {
|
|
1376
|
+
return m({
|
|
1377
|
+
[g]: "Uint8Array",
|
|
1378
|
+
type: "Uint8Array"
|
|
1379
|
+
}, e);
|
|
1380
|
+
}
|
|
1381
|
+
//#endregion
|
|
1382
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs
|
|
1383
|
+
function Ia(e) {
|
|
1384
|
+
return m({ [g]: "Unknown" }, e);
|
|
1385
|
+
}
|
|
1386
|
+
//#endregion
|
|
1387
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs
|
|
1388
|
+
function La(e) {
|
|
1389
|
+
return e.map((e) => Ba(e, !1));
|
|
1390
|
+
}
|
|
1391
|
+
function Ra(e) {
|
|
1392
|
+
let t = {};
|
|
1393
|
+
for (let n of globalThis.Object.getOwnPropertyNames(e)) t[n] = Di(Ba(e[n], !1));
|
|
1394
|
+
return t;
|
|
1395
|
+
}
|
|
1396
|
+
function za(e, t) {
|
|
1397
|
+
return t === !0 ? e : Di(e);
|
|
1398
|
+
}
|
|
1399
|
+
function Ba(e, t) {
|
|
1400
|
+
return Oe(e) || Ne(e) ? za(Zn(), t) : l(e) ? Di(ji(La(e))) : Re(e) ? Fa() : je(e) ? ja() : u(e) ? za(z(Ra(e)), t) : Me(e) ? za(rr([], Ia()), t) : f(e) ? Pa() : Pe(e) ? Ma() : Le(e) ? Na() : ke(e) ? Rr() : Fe(e) || Ae(e) || d(e) ? R(e) : z({});
|
|
1401
|
+
}
|
|
1402
|
+
function Va(e, t) {
|
|
1403
|
+
return m(Ba(e, !0), t);
|
|
1404
|
+
}
|
|
1405
|
+
//#endregion
|
|
1406
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs
|
|
1407
|
+
function Ha(e, t) {
|
|
1408
|
+
return gt(e) ? ji(e.parameters, t) : F(t);
|
|
1409
|
+
}
|
|
1410
|
+
//#endregion
|
|
1411
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs
|
|
1412
|
+
function Ua(e, t) {
|
|
1413
|
+
if (f(e)) throw Error("Enum undefined or empty");
|
|
1414
|
+
let n = globalThis.Object.getOwnPropertyNames(e).filter((e) => isNaN(e)).map((t) => e[t]);
|
|
1415
|
+
return L([...new Set(n)].map((e) => R(e)), {
|
|
1416
|
+
...t,
|
|
1417
|
+
[ot]: "Enum"
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
//#endregion
|
|
1421
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs
|
|
1422
|
+
var Wa = class extends rt {}, V;
|
|
1423
|
+
(function(e) {
|
|
1424
|
+
e[e.Union = 0] = "Union", e[e.True = 1] = "True", e[e.False = 2] = "False";
|
|
1425
|
+
})(V ||= {});
|
|
1426
|
+
function H(e) {
|
|
1427
|
+
return e === V.False ? e : V.True;
|
|
1428
|
+
}
|
|
1429
|
+
function Ga(e) {
|
|
1430
|
+
throw new Wa(e);
|
|
1431
|
+
}
|
|
1432
|
+
function U(e) {
|
|
1433
|
+
return xn(e) || fn(e) || Nn(e) || j(e) || T(e);
|
|
1434
|
+
}
|
|
1435
|
+
function W(e, t) {
|
|
1436
|
+
return xn(t) ? lo(e, t) : fn(t) ? ao(e, t) : Nn(t) ? Wo(e, t) : j(t) ? Ko(e, t) : T(t) ? Ka(e, t) : Ga("StructuralRight");
|
|
1437
|
+
}
|
|
1438
|
+
function Ka(e, t) {
|
|
1439
|
+
return V.True;
|
|
1440
|
+
}
|
|
1441
|
+
function qa(e, t) {
|
|
1442
|
+
return fn(t) ? ao(e, t) : Nn(t) && t.anyOf.some((e) => T(e) || j(e)) ? V.True : Nn(t) ? V.Union : j(t) || T(t) ? V.True : V.Union;
|
|
1443
|
+
}
|
|
1444
|
+
function Ja(e, t) {
|
|
1445
|
+
return j(e) ? V.False : T(e) ? V.Union : xn(e) ? V.True : V.False;
|
|
1446
|
+
}
|
|
1447
|
+
function Ya(e, t) {
|
|
1448
|
+
return O(t) && Eo(t) ? V.True : U(t) ? W(e, t) : tn(t) ? H(J(e.items, t.items)) : V.False;
|
|
1449
|
+
}
|
|
1450
|
+
function Xa(e, t) {
|
|
1451
|
+
return U(t) ? W(e, t) : nn(t) ? H(J(e.items, t.items)) : V.False;
|
|
1452
|
+
}
|
|
1453
|
+
function Za(e, t) {
|
|
1454
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : rn(t) ? V.True : V.False;
|
|
1455
|
+
}
|
|
1456
|
+
function Qa(e, t) {
|
|
1457
|
+
return gn(e) || an(e) ? V.True : V.False;
|
|
1458
|
+
}
|
|
1459
|
+
function $a(e, t) {
|
|
1460
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : an(t) ? V.True : V.False;
|
|
1461
|
+
}
|
|
1462
|
+
function eo(e, t) {
|
|
1463
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : sn(t) ? e.parameters.length > t.parameters.length ? V.False : e.parameters.every((e, n) => H(J(t.parameters[n], e)) === V.True) ? H(J(e.returns, t.returns)) : V.False : V.False;
|
|
1464
|
+
}
|
|
1465
|
+
function to(e, t) {
|
|
1466
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : cn(t) ? V.True : V.False;
|
|
1467
|
+
}
|
|
1468
|
+
function no(e, t) {
|
|
1469
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : ln(t) ? e.parameters.length > t.parameters.length ? V.False : e.parameters.every((e, n) => H(J(t.parameters[n], e)) === V.True) ? H(J(e.returns, t.returns)) : V.False : V.False;
|
|
1470
|
+
}
|
|
1471
|
+
function ro(e, t) {
|
|
1472
|
+
return _n(e) && Fe(e.const) || D(e) || un(e) ? V.True : V.False;
|
|
1473
|
+
}
|
|
1474
|
+
function io(e, t) {
|
|
1475
|
+
return un(t) || D(t) ? V.True : U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : V.False;
|
|
1476
|
+
}
|
|
1477
|
+
function ao(e, t) {
|
|
1478
|
+
return t.allOf.every((t) => J(e, t) === V.True) ? V.True : V.False;
|
|
1479
|
+
}
|
|
1480
|
+
function oo(e, t) {
|
|
1481
|
+
return e.allOf.some((e) => J(e, t) === V.True) ? V.True : V.False;
|
|
1482
|
+
}
|
|
1483
|
+
function so(e, t) {
|
|
1484
|
+
return U(t) ? W(e, t) : pn(t) ? H(J(e.items, t.items)) : V.False;
|
|
1485
|
+
}
|
|
1486
|
+
function co(e, t) {
|
|
1487
|
+
return _n(t) && t.const === e.const ? V.True : U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : A(t) ? Fo(e, t) : D(t) ? ho(e, t) : un(t) ? ro(e, t) : an(t) ? Qa(e, t) : V.False;
|
|
1488
|
+
}
|
|
1489
|
+
function lo(e, t) {
|
|
1490
|
+
return V.False;
|
|
1491
|
+
}
|
|
1492
|
+
function uo(e, t) {
|
|
1493
|
+
return V.True;
|
|
1494
|
+
}
|
|
1495
|
+
function fo(e) {
|
|
1496
|
+
let [t, n] = [e, 0];
|
|
1497
|
+
for (; Sn(t);) t = t.not, n += 1;
|
|
1498
|
+
return n % 2 == 0 ? t : Ia();
|
|
1499
|
+
}
|
|
1500
|
+
function po(e, t) {
|
|
1501
|
+
return Sn(e) ? J(fo(e), t) : Sn(t) ? J(e, fo(t)) : Ga("Invalid fallthrough for Not");
|
|
1502
|
+
}
|
|
1503
|
+
function mo(e, t) {
|
|
1504
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : Cn(t) ? V.True : V.False;
|
|
1505
|
+
}
|
|
1506
|
+
function ho(e, t) {
|
|
1507
|
+
return hn(e) || D(e) || un(e) ? V.True : V.False;
|
|
1508
|
+
}
|
|
1509
|
+
function go(e, t) {
|
|
1510
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : un(t) || D(t) ? V.True : V.False;
|
|
1511
|
+
}
|
|
1512
|
+
function G(e, t) {
|
|
1513
|
+
return Object.getOwnPropertyNames(e.properties).length === t;
|
|
1514
|
+
}
|
|
1515
|
+
function _o(e) {
|
|
1516
|
+
return Eo(e);
|
|
1517
|
+
}
|
|
1518
|
+
function vo(e) {
|
|
1519
|
+
return G(e, 0) || G(e, 1) && "description" in e.properties && Nn(e.properties.description) && e.properties.description.anyOf.length === 2 && (A(e.properties.description.anyOf[0]) && Mn(e.properties.description.anyOf[1]) || A(e.properties.description.anyOf[1]) && Mn(e.properties.description.anyOf[0]));
|
|
1520
|
+
}
|
|
1521
|
+
function yo(e) {
|
|
1522
|
+
return G(e, 0);
|
|
1523
|
+
}
|
|
1524
|
+
function bo(e) {
|
|
1525
|
+
return G(e, 0);
|
|
1526
|
+
}
|
|
1527
|
+
function xo(e) {
|
|
1528
|
+
return G(e, 0);
|
|
1529
|
+
}
|
|
1530
|
+
function So(e) {
|
|
1531
|
+
return G(e, 0);
|
|
1532
|
+
}
|
|
1533
|
+
function Co(e) {
|
|
1534
|
+
return Eo(e);
|
|
1535
|
+
}
|
|
1536
|
+
function wo(e) {
|
|
1537
|
+
let t = zr();
|
|
1538
|
+
return G(e, 0) || G(e, 1) && "length" in e.properties && H(J(e.properties.length, t)) === V.True;
|
|
1539
|
+
}
|
|
1540
|
+
function To(e) {
|
|
1541
|
+
return G(e, 0);
|
|
1542
|
+
}
|
|
1543
|
+
function Eo(e) {
|
|
1544
|
+
let t = zr();
|
|
1545
|
+
return G(e, 0) || G(e, 1) && "length" in e.properties && H(J(e.properties.length, t)) === V.True;
|
|
1546
|
+
}
|
|
1547
|
+
function Do(e) {
|
|
1548
|
+
let t = rr([Zn()], Zn());
|
|
1549
|
+
return G(e, 0) || G(e, 1) && "then" in e.properties && H(J(e.properties.then, t)) === V.True;
|
|
1550
|
+
}
|
|
1551
|
+
function Oo(e, t) {
|
|
1552
|
+
return J(e, t) === V.False || $t(e) && !$t(t) ? V.False : V.True;
|
|
1553
|
+
}
|
|
1554
|
+
function K(e, t) {
|
|
1555
|
+
return j(e) ? V.False : T(e) ? V.Union : xn(e) || mn(e) && _o(t) || hn(e) && yo(t) || gn(e) && bo(t) || Dn(e) && vo(t) || rn(e) && xo(t) || A(e) && _o(t) || Dn(e) && vo(t) || D(e) && yo(t) || un(e) && yo(t) || an(e) && bo(t) || Pn(e) && Co(t) || cn(e) && So(t) || sn(e) && To(t) || ln(e) && wo(t) ? V.True : k(e) && A(jo(e)) ? t[ot] === "Record" ? V.True : V.False : k(e) && D(jo(e)) && G(t, 0) ? V.True : V.False;
|
|
1556
|
+
}
|
|
1557
|
+
function ko(e, t) {
|
|
1558
|
+
return U(t) ? W(e, t) : k(t) ? q(e, t) : O(t) ? (() => {
|
|
1559
|
+
for (let n of Object.getOwnPropertyNames(t.properties)) {
|
|
1560
|
+
if (!(n in e.properties) && !$t(t.properties[n])) return V.False;
|
|
1561
|
+
if ($t(t.properties[n])) return V.True;
|
|
1562
|
+
if (Oo(e.properties[n], t.properties[n]) === V.False) return V.False;
|
|
1563
|
+
}
|
|
1564
|
+
return V.True;
|
|
1565
|
+
})() : V.False;
|
|
1566
|
+
}
|
|
1567
|
+
function Ao(e, t) {
|
|
1568
|
+
return U(t) ? W(e, t) : O(t) && Do(t) ? V.True : wn(t) ? H(J(e.item, t.item)) : V.False;
|
|
1569
|
+
}
|
|
1570
|
+
function jo(e) {
|
|
1571
|
+
return Hn in e.patternProperties ? zr() : Un in e.patternProperties ? Br() : Ga("Unknown record key pattern");
|
|
1572
|
+
}
|
|
1573
|
+
function Mo(e) {
|
|
1574
|
+
return Hn in e.patternProperties ? e.patternProperties[Hn] : Un in e.patternProperties ? e.patternProperties[Un] : Ga("Unable to get record value schema");
|
|
1575
|
+
}
|
|
1576
|
+
function q(e, t) {
|
|
1577
|
+
let [n, r] = [jo(t), Mo(t)];
|
|
1578
|
+
return mn(e) && D(n) && H(J(e, r)) === V.True ? V.True : Pn(e) && D(n) || A(e) && D(n) || tn(e) && D(n) ? J(e, r) : O(e) ? (() => {
|
|
1579
|
+
for (let t of Object.getOwnPropertyNames(e.properties)) if (Oo(r, e.properties[t]) === V.False) return V.False;
|
|
1580
|
+
return V.True;
|
|
1581
|
+
})() : V.False;
|
|
1582
|
+
}
|
|
1583
|
+
function No(e, t) {
|
|
1584
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? J(Mo(e), Mo(t)) : V.False;
|
|
1585
|
+
}
|
|
1586
|
+
function Po(e, t) {
|
|
1587
|
+
return J(En(e) ? Br() : e, En(t) ? Br() : t);
|
|
1588
|
+
}
|
|
1589
|
+
function Fo(e, t) {
|
|
1590
|
+
return _n(e) && d(e.const) || A(e) ? V.True : V.False;
|
|
1591
|
+
}
|
|
1592
|
+
function Io(e, t) {
|
|
1593
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : A(t) ? V.True : V.False;
|
|
1594
|
+
}
|
|
1595
|
+
function Lo(e, t) {
|
|
1596
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : Dn(t) ? V.True : V.False;
|
|
1597
|
+
}
|
|
1598
|
+
function Ro(e, t) {
|
|
1599
|
+
return On(e) ? J(Yr(e), t) : On(t) ? J(e, Yr(t)) : Ga("Invalid fallthrough for TemplateLiteral");
|
|
1600
|
+
}
|
|
1601
|
+
function zo(e, t) {
|
|
1602
|
+
return tn(t) && e.items !== void 0 && e.items.every((e) => J(e, t.items) === V.True);
|
|
1603
|
+
}
|
|
1604
|
+
function Bo(e, t) {
|
|
1605
|
+
return xn(e) ? V.True : j(e) ? V.False : T(e) ? V.Union : V.False;
|
|
1606
|
+
}
|
|
1607
|
+
function Vo(e, t) {
|
|
1608
|
+
return U(t) ? W(e, t) : O(t) && Eo(t) || tn(t) && zo(e, t) ? V.True : jn(t) ? f(e.items) && !f(t.items) || !f(e.items) && f(t.items) ? V.False : f(e.items) && !f(t.items) || e.items.every((e, n) => J(e, t.items[n]) === V.True) ? V.True : V.False : V.False;
|
|
1609
|
+
}
|
|
1610
|
+
function Ho(e, t) {
|
|
1611
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : Pn(t) ? V.True : V.False;
|
|
1612
|
+
}
|
|
1613
|
+
function Uo(e, t) {
|
|
1614
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : In(t) ? Jo(e, t) : Mn(t) ? V.True : V.False;
|
|
1615
|
+
}
|
|
1616
|
+
function Wo(e, t) {
|
|
1617
|
+
return t.anyOf.some((t) => J(e, t) === V.True) ? V.True : V.False;
|
|
1618
|
+
}
|
|
1619
|
+
function Go(e, t) {
|
|
1620
|
+
return e.anyOf.every((e) => J(e, t) === V.True) ? V.True : V.False;
|
|
1621
|
+
}
|
|
1622
|
+
function Ko(e, t) {
|
|
1623
|
+
return V.True;
|
|
1624
|
+
}
|
|
1625
|
+
function qo(e, t) {
|
|
1626
|
+
return xn(t) ? lo(e, t) : fn(t) ? ao(e, t) : Nn(t) ? Wo(e, t) : T(t) ? Ka(e, t) : A(t) ? Fo(e, t) : D(t) ? ho(e, t) : un(t) ? ro(e, t) : an(t) ? Qa(e, t) : tn(t) ? Ja(e, t) : jn(t) ? Bo(e, t) : O(t) ? K(e, t) : j(t) ? V.True : V.False;
|
|
1627
|
+
}
|
|
1628
|
+
function Jo(e, t) {
|
|
1629
|
+
return Mn(e) || Mn(e) ? V.True : V.False;
|
|
1630
|
+
}
|
|
1631
|
+
function Yo(e, t) {
|
|
1632
|
+
return fn(t) ? ao(e, t) : Nn(t) ? Wo(e, t) : j(t) ? Ko(e, t) : T(t) ? Ka(e, t) : O(t) ? K(e, t) : In(t) ? V.True : V.False;
|
|
1633
|
+
}
|
|
1634
|
+
function J(e, t) {
|
|
1635
|
+
return On(e) || On(t) ? Ro(e, t) : En(e) || En(t) ? Po(e, t) : Sn(e) || Sn(t) ? po(e, t) : T(e) ? qa(e, t) : tn(e) ? Ya(e, t) : rn(e) ? Za(e, t) : an(e) ? $a(e, t) : nn(e) ? Xa(e, t) : sn(e) ? eo(e, t) : cn(e) ? to(e, t) : ln(e) ? no(e, t) : un(e) ? io(e, t) : fn(e) ? oo(e, t) : pn(e) ? so(e, t) : _n(e) ? co(e, t) : xn(e) ? uo(e, t) : Cn(e) ? mo(e, t) : D(e) ? go(e, t) : O(e) ? ko(e, t) : k(e) ? No(e, t) : A(e) ? Io(e, t) : Dn(e) ? Lo(e, t) : jn(e) ? Vo(e, t) : wn(e) ? Ao(e, t) : Pn(e) ? Ho(e, t) : Mn(e) ? Uo(e, t) : Nn(e) ? Go(e, t) : j(e) ? qo(e, t) : In(e) ? Yo(e, t) : Ga(`Unknown left type operand '${e[g]}'`);
|
|
1636
|
+
}
|
|
1637
|
+
function Xo(e, t) {
|
|
1638
|
+
return J(e, t);
|
|
1639
|
+
}
|
|
1640
|
+
//#endregion
|
|
1641
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs
|
|
1642
|
+
function Zo(e, t, n, r, i) {
|
|
1643
|
+
let a = {};
|
|
1644
|
+
for (let o of globalThis.Object.getOwnPropertyNames(e)) a[o] = ts(e[o], t, n, r, p(i));
|
|
1645
|
+
return a;
|
|
1646
|
+
}
|
|
1647
|
+
function Qo(e, t, n, r, i) {
|
|
1648
|
+
return Zo(e.properties, t, n, r, i);
|
|
1649
|
+
}
|
|
1650
|
+
function $o(e, t, n, r, i) {
|
|
1651
|
+
return I(Qo(e, t, n, r, i));
|
|
1652
|
+
}
|
|
1653
|
+
//#endregion
|
|
1654
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs
|
|
1655
|
+
function es(e, t, n, r) {
|
|
1656
|
+
let i = Xo(e, t);
|
|
1657
|
+
return i === V.Union ? L([n, r]) : i === V.True ? n : r;
|
|
1658
|
+
}
|
|
1659
|
+
function ts(e, t, n, r, i) {
|
|
1660
|
+
return y(e) ? $o(e, t, n, r, i) : Ct(e) ? m(as(e, t, n, r, i)) : m(es(e, t, n, r), i);
|
|
1661
|
+
}
|
|
1662
|
+
//#endregion
|
|
1663
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs
|
|
1664
|
+
function ns(e, t, n, r, i) {
|
|
1665
|
+
return { [e]: ts(R(e), t, n, r, p(i)) };
|
|
1666
|
+
}
|
|
1667
|
+
function rs(e, t, n, r, i) {
|
|
1668
|
+
return e.reduce((e, a) => ({
|
|
1669
|
+
...e,
|
|
1670
|
+
...ns(a, t, n, r, i)
|
|
1671
|
+
}), {});
|
|
1672
|
+
}
|
|
1673
|
+
function is(e, t, n, r, i) {
|
|
1674
|
+
return rs(e.keys, t, n, r, i);
|
|
1675
|
+
}
|
|
1676
|
+
function as(e, t, n, r, i) {
|
|
1677
|
+
return I(is(e, t, n, r, i));
|
|
1678
|
+
}
|
|
1679
|
+
//#endregion
|
|
1680
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs
|
|
1681
|
+
function os(e, t) {
|
|
1682
|
+
return cs(Yr(e), t);
|
|
1683
|
+
}
|
|
1684
|
+
//#endregion
|
|
1685
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs
|
|
1686
|
+
function ss(e, t) {
|
|
1687
|
+
let n = e.filter((e) => Xo(e, t) === V.False);
|
|
1688
|
+
return n.length === 1 ? n[0] : L(n);
|
|
1689
|
+
}
|
|
1690
|
+
function cs(e, t, n = {}) {
|
|
1691
|
+
return Nt(e) ? m(os(e, t), n) : y(e) ? m(ds(e, t), n) : m(S(e) ? ss(e.anyOf, t) : Xo(e, t) === V.False ? e : F(), n);
|
|
1692
|
+
}
|
|
1693
|
+
//#endregion
|
|
1694
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs
|
|
1695
|
+
function ls(e, t) {
|
|
1696
|
+
let n = {};
|
|
1697
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = cs(e[r], t);
|
|
1698
|
+
return n;
|
|
1699
|
+
}
|
|
1700
|
+
function us(e, t) {
|
|
1701
|
+
return ls(e.properties, t);
|
|
1702
|
+
}
|
|
1703
|
+
function ds(e, t) {
|
|
1704
|
+
return I(us(e, t));
|
|
1705
|
+
}
|
|
1706
|
+
//#endregion
|
|
1707
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs
|
|
1708
|
+
function fs(e, t) {
|
|
1709
|
+
return ms(Yr(e), t);
|
|
1710
|
+
}
|
|
1711
|
+
//#endregion
|
|
1712
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs
|
|
1713
|
+
function ps(e, t) {
|
|
1714
|
+
let n = e.filter((e) => Xo(e, t) !== V.False);
|
|
1715
|
+
return n.length === 1 ? n[0] : L(n);
|
|
1716
|
+
}
|
|
1717
|
+
function ms(e, t, n) {
|
|
1718
|
+
return Nt(e) ? m(fs(e, t), n) : y(e) ? m(_s(e, t), n) : m(S(e) ? ps(e.anyOf, t) : Xo(e, t) === V.False ? F() : e, n);
|
|
1719
|
+
}
|
|
1720
|
+
//#endregion
|
|
1721
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs
|
|
1722
|
+
function hs(e, t) {
|
|
1723
|
+
let n = {};
|
|
1724
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = ms(e[r], t);
|
|
1725
|
+
return n;
|
|
1726
|
+
}
|
|
1727
|
+
function gs(e, t) {
|
|
1728
|
+
return hs(e.properties, t);
|
|
1729
|
+
}
|
|
1730
|
+
function _s(e, t) {
|
|
1731
|
+
return I(gs(e, t));
|
|
1732
|
+
}
|
|
1733
|
+
//#endregion
|
|
1734
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs
|
|
1735
|
+
function vs(e, t) {
|
|
1736
|
+
return gt(e) ? m(e.returns, t) : F(t);
|
|
1737
|
+
}
|
|
1738
|
+
//#endregion
|
|
1739
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs
|
|
1740
|
+
function ys(e) {
|
|
1741
|
+
return Di(Wi(e));
|
|
1742
|
+
}
|
|
1743
|
+
//#endregion
|
|
1744
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs
|
|
1745
|
+
function bs(e, t, n) {
|
|
1746
|
+
return m({
|
|
1747
|
+
[g]: "Record",
|
|
1748
|
+
type: "object",
|
|
1749
|
+
patternProperties: { [e]: t }
|
|
1750
|
+
}, n);
|
|
1751
|
+
}
|
|
1752
|
+
function xs(e, t, n) {
|
|
1753
|
+
let r = {};
|
|
1754
|
+
for (let n of e) r[n] = t;
|
|
1755
|
+
return z(r, {
|
|
1756
|
+
...n,
|
|
1757
|
+
[ot]: "Record"
|
|
1758
|
+
});
|
|
1759
|
+
}
|
|
1760
|
+
function Ss(e, t, n) {
|
|
1761
|
+
return kr(e) ? xs(ei(e), t, n) : bs(e.pattern, t, n);
|
|
1762
|
+
}
|
|
1763
|
+
function Cs(e, t, n) {
|
|
1764
|
+
return xs(ei(L(e)), t, n);
|
|
1765
|
+
}
|
|
1766
|
+
function ws(e, t, n) {
|
|
1767
|
+
return xs([e.toString()], t, n);
|
|
1768
|
+
}
|
|
1769
|
+
function Ts(e, t, n) {
|
|
1770
|
+
return bs(e.source, t, n);
|
|
1771
|
+
}
|
|
1772
|
+
function Es(e, t, n) {
|
|
1773
|
+
return bs(f(e.pattern) ? Un : e.pattern, t, n);
|
|
1774
|
+
}
|
|
1775
|
+
function Ds(e, t, n) {
|
|
1776
|
+
return bs(Un, t, n);
|
|
1777
|
+
}
|
|
1778
|
+
function Os(e, t, n) {
|
|
1779
|
+
return bs(Wn, t, n);
|
|
1780
|
+
}
|
|
1781
|
+
function ks(e, t, n) {
|
|
1782
|
+
return z({
|
|
1783
|
+
true: t,
|
|
1784
|
+
false: t
|
|
1785
|
+
}, n);
|
|
1786
|
+
}
|
|
1787
|
+
function As(e, t, n) {
|
|
1788
|
+
return bs(Hn, t, n);
|
|
1789
|
+
}
|
|
1790
|
+
function js(e, t, n) {
|
|
1791
|
+
return bs(Hn, t, n);
|
|
1792
|
+
}
|
|
1793
|
+
function Ms(e, t, n = {}) {
|
|
1794
|
+
return S(e) ? Cs(e.anyOf, t, n) : Nt(e) ? Ss(e, t, n) : St(e) ? ws(e.const, t, n) : mt(e) ? ks(e, t, n) : yt(e) ? As(e, t, n) : Dt(e) ? js(e, t, n) : At(e) ? Ts(e, t, n) : jt(e) ? Es(e, t, n) : lt(e) ? Ds(e, t, n) : wt(e) ? Os(e, t, n) : F(n);
|
|
1795
|
+
}
|
|
1796
|
+
function Ns(e) {
|
|
1797
|
+
return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0];
|
|
1798
|
+
}
|
|
1799
|
+
function Ps(e) {
|
|
1800
|
+
let t = Ns(e);
|
|
1801
|
+
return t === Un ? Br() : t === Hn ? zr() : Br({ pattern: t });
|
|
1802
|
+
}
|
|
1803
|
+
function Fs(e) {
|
|
1804
|
+
return e.patternProperties[Ns(e)];
|
|
1805
|
+
}
|
|
1806
|
+
//#endregion
|
|
1807
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs
|
|
1808
|
+
function Is(e, t) {
|
|
1809
|
+
return t.parameters = Xs(e, t.parameters), t.returns = Y(e, t.returns), t;
|
|
1810
|
+
}
|
|
1811
|
+
function Ls(e, t) {
|
|
1812
|
+
return t.parameters = Xs(e, t.parameters), t.returns = Y(e, t.returns), t;
|
|
1813
|
+
}
|
|
1814
|
+
function Rs(e, t) {
|
|
1815
|
+
return t.allOf = Xs(e, t.allOf), t;
|
|
1816
|
+
}
|
|
1817
|
+
function zs(e, t) {
|
|
1818
|
+
return t.anyOf = Xs(e, t.anyOf), t;
|
|
1819
|
+
}
|
|
1820
|
+
function Bs(e, t) {
|
|
1821
|
+
return f(t.items) || (t.items = Xs(e, t.items)), t;
|
|
1822
|
+
}
|
|
1823
|
+
function Vs(e, t) {
|
|
1824
|
+
return t.items = Y(e, t.items), t;
|
|
1825
|
+
}
|
|
1826
|
+
function Hs(e, t) {
|
|
1827
|
+
return t.items = Y(e, t.items), t;
|
|
1828
|
+
}
|
|
1829
|
+
function Us(e, t) {
|
|
1830
|
+
return t.items = Y(e, t.items), t;
|
|
1831
|
+
}
|
|
1832
|
+
function Ws(e, t) {
|
|
1833
|
+
return t.item = Y(e, t.item), t;
|
|
1834
|
+
}
|
|
1835
|
+
function Gs(e, t) {
|
|
1836
|
+
let n = Ys(e, t.properties);
|
|
1837
|
+
return {
|
|
1838
|
+
...t,
|
|
1839
|
+
...z(n)
|
|
1840
|
+
};
|
|
1841
|
+
}
|
|
1842
|
+
function Ks(e, t) {
|
|
1843
|
+
let n = Ms(Y(e, Ps(t)), Y(e, Fs(t)));
|
|
1844
|
+
return {
|
|
1845
|
+
...t,
|
|
1846
|
+
...n
|
|
1847
|
+
};
|
|
1848
|
+
}
|
|
1849
|
+
function qs(e, t) {
|
|
1850
|
+
return t.index in e ? e[t.index] : Ia();
|
|
1851
|
+
}
|
|
1852
|
+
function Js(e, t) {
|
|
1853
|
+
let n = st(t), r = ct(t), i = Y(e, t);
|
|
1854
|
+
return n && r ? ys(i) : n && !r ? Di(i) : !n && r ? Wi(i) : i;
|
|
1855
|
+
}
|
|
1856
|
+
function Ys(e, t) {
|
|
1857
|
+
return globalThis.Object.getOwnPropertyNames(t).reduce((n, r) => ({
|
|
1858
|
+
...n,
|
|
1859
|
+
[r]: Js(e, t[r])
|
|
1860
|
+
}), {});
|
|
1861
|
+
}
|
|
1862
|
+
function Xs(e, t) {
|
|
1863
|
+
return t.map((t) => Y(e, t));
|
|
1864
|
+
}
|
|
1865
|
+
function Y(e, t) {
|
|
1866
|
+
return gt(t) ? Is(e, t) : vt(t) ? Ls(e, t) : _(t) ? Rs(e, t) : S(t) ? zs(e, t) : It(t) ? Bs(e, t) : dt(t) ? Vs(e, t) : ft(t) ? Hs(e, t) : bt(t) ? Us(e, t) : Ot(t) ? Ws(e, t) : b(t) ? Gs(e, t) : kt(t) ? Ks(e, t) : ut(t) ? qs(e, t) : t;
|
|
1867
|
+
}
|
|
1868
|
+
function Zs(e, t) {
|
|
1869
|
+
return Y(t, Ge(e));
|
|
1870
|
+
}
|
|
1871
|
+
//#endregion
|
|
1872
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs
|
|
1873
|
+
function Qs(e) {
|
|
1874
|
+
return m({
|
|
1875
|
+
[g]: "Integer",
|
|
1876
|
+
type: "integer"
|
|
1877
|
+
}, e);
|
|
1878
|
+
}
|
|
1879
|
+
//#endregion
|
|
1880
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs
|
|
1881
|
+
function $s(e, t, n) {
|
|
1882
|
+
return { [e]: uc(R(e), t, p(n)) };
|
|
1883
|
+
}
|
|
1884
|
+
function ec(e, t, n) {
|
|
1885
|
+
return e.reduce((e, r) => ({
|
|
1886
|
+
...e,
|
|
1887
|
+
...$s(r, t, n)
|
|
1888
|
+
}), {});
|
|
1889
|
+
}
|
|
1890
|
+
function tc(e, t, n) {
|
|
1891
|
+
return ec(e.keys, t, n);
|
|
1892
|
+
}
|
|
1893
|
+
function nc(e, t, n) {
|
|
1894
|
+
return I(tc(e, t, n));
|
|
1895
|
+
}
|
|
1896
|
+
//#endregion
|
|
1897
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs
|
|
1898
|
+
function rc(e) {
|
|
1899
|
+
let [t, n] = [e.slice(0, 1), e.slice(1)];
|
|
1900
|
+
return [t.toLowerCase(), n].join("");
|
|
1901
|
+
}
|
|
1902
|
+
function ic(e) {
|
|
1903
|
+
let [t, n] = [e.slice(0, 1), e.slice(1)];
|
|
1904
|
+
return [t.toUpperCase(), n].join("");
|
|
1905
|
+
}
|
|
1906
|
+
function ac(e) {
|
|
1907
|
+
return e.toUpperCase();
|
|
1908
|
+
}
|
|
1909
|
+
function oc(e) {
|
|
1910
|
+
return e.toLowerCase();
|
|
1911
|
+
}
|
|
1912
|
+
function sc(e, t, n) {
|
|
1913
|
+
let r = Cr(e.pattern);
|
|
1914
|
+
return Or(r) ? Xr([L(lc([...Fr(r)].map((e) => R(e)), t))], n) : {
|
|
1915
|
+
...e,
|
|
1916
|
+
pattern: cc(e.pattern, t)
|
|
1917
|
+
};
|
|
1918
|
+
}
|
|
1919
|
+
function cc(e, t) {
|
|
1920
|
+
return typeof e == "string" ? t === "Uncapitalize" ? rc(e) : t === "Capitalize" ? ic(e) : t === "Uppercase" ? ac(e) : t === "Lowercase" ? oc(e) : e : e.toString();
|
|
1921
|
+
}
|
|
1922
|
+
function lc(e, t) {
|
|
1923
|
+
return e.map((e) => uc(e, t));
|
|
1924
|
+
}
|
|
1925
|
+
function uc(e, t, n = {}) {
|
|
1926
|
+
return Ct(e) ? nc(e, t, n) : Nt(e) ? sc(e, t, n) : S(e) ? L(lc(e.anyOf, t), n) : St(e) ? R(cc(e.const, t), n) : m(e, n);
|
|
1927
|
+
}
|
|
1928
|
+
//#endregion
|
|
1929
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs
|
|
1930
|
+
function dc(e, t = {}) {
|
|
1931
|
+
return uc(e, "Capitalize", t);
|
|
1932
|
+
}
|
|
1933
|
+
//#endregion
|
|
1934
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs
|
|
1935
|
+
function fc(e, t = {}) {
|
|
1936
|
+
return uc(e, "Lowercase", t);
|
|
1937
|
+
}
|
|
1938
|
+
//#endregion
|
|
1939
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs
|
|
1940
|
+
function pc(e, t = {}) {
|
|
1941
|
+
return uc(e, "Uncapitalize", t);
|
|
1942
|
+
}
|
|
1943
|
+
//#endregion
|
|
1944
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs
|
|
1945
|
+
function mc(e, t = {}) {
|
|
1946
|
+
return uc(e, "Uppercase", t);
|
|
1947
|
+
}
|
|
1948
|
+
//#endregion
|
|
1949
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs
|
|
1950
|
+
function hc(e, t, n) {
|
|
1951
|
+
let r = {};
|
|
1952
|
+
for (let i of globalThis.Object.getOwnPropertyNames(e)) r[i] = Tc(e[i], t, p(n));
|
|
1953
|
+
return r;
|
|
1954
|
+
}
|
|
1955
|
+
function gc(e, t, n) {
|
|
1956
|
+
return hc(e.properties, t, n);
|
|
1957
|
+
}
|
|
1958
|
+
function _c(e, t, n) {
|
|
1959
|
+
return I(gc(e, t, n));
|
|
1960
|
+
}
|
|
1961
|
+
//#endregion
|
|
1962
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs
|
|
1963
|
+
function vc(e, t) {
|
|
1964
|
+
return e.map((e) => wc(e, t));
|
|
1965
|
+
}
|
|
1966
|
+
function yc(e, t) {
|
|
1967
|
+
return e.map((e) => wc(e, t));
|
|
1968
|
+
}
|
|
1969
|
+
function bc(e, t) {
|
|
1970
|
+
let { [t]: n, ...r } = e;
|
|
1971
|
+
return r;
|
|
1972
|
+
}
|
|
1973
|
+
function xc(e, t) {
|
|
1974
|
+
return t.reduce((e, t) => bc(e, t), e);
|
|
1975
|
+
}
|
|
1976
|
+
function Sc(e, t, n) {
|
|
1977
|
+
let r = P(e, [
|
|
1978
|
+
h,
|
|
1979
|
+
"$id",
|
|
1980
|
+
"required",
|
|
1981
|
+
"properties"
|
|
1982
|
+
]);
|
|
1983
|
+
return z(xc(n, t), r);
|
|
1984
|
+
}
|
|
1985
|
+
function Cc(e) {
|
|
1986
|
+
return L(e.reduce((e, t) => xt(t) ? [...e, R(t)] : e, []));
|
|
1987
|
+
}
|
|
1988
|
+
function wc(e, t) {
|
|
1989
|
+
return _(e) ? ea(vc(e.allOf, t)) : S(e) ? L(yc(e.anyOf, t)) : b(e) ? Sc(e, t, e.properties) : z({});
|
|
1990
|
+
}
|
|
1991
|
+
function Tc(e, t, n) {
|
|
1992
|
+
let r = l(t) ? Cc(t) : t, i = Ut(t) ? ei(t) : t, a = x(e), o = x(t);
|
|
1993
|
+
return y(e) ? _c(e, i, n) : Ct(t) ? kc(e, t, n) : a && o || !a && o || a && !o ? N("Omit", [e, r], n) : m({
|
|
1994
|
+
...wc(e, i),
|
|
1995
|
+
...n
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1998
|
+
//#endregion
|
|
1999
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs
|
|
2000
|
+
function Ec(e, t, n) {
|
|
2001
|
+
return { [t]: Tc(e, [t], p(n)) };
|
|
2002
|
+
}
|
|
2003
|
+
function Dc(e, t, n) {
|
|
2004
|
+
return t.reduce((t, r) => ({
|
|
2005
|
+
...t,
|
|
2006
|
+
...Ec(e, r, n)
|
|
2007
|
+
}), {});
|
|
2008
|
+
}
|
|
2009
|
+
function Oc(e, t, n) {
|
|
2010
|
+
return Dc(e, t.keys, n);
|
|
2011
|
+
}
|
|
2012
|
+
function kc(e, t, n) {
|
|
2013
|
+
return I(Oc(e, t, n));
|
|
2014
|
+
}
|
|
2015
|
+
//#endregion
|
|
2016
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs
|
|
2017
|
+
function Ac(e, t, n) {
|
|
2018
|
+
let r = {};
|
|
2019
|
+
for (let i of globalThis.Object.getOwnPropertyNames(e)) r[i] = zc(e[i], t, p(n));
|
|
2020
|
+
return r;
|
|
2021
|
+
}
|
|
2022
|
+
function jc(e, t, n) {
|
|
2023
|
+
return Ac(e.properties, t, n);
|
|
2024
|
+
}
|
|
2025
|
+
function Mc(e, t, n) {
|
|
2026
|
+
return I(jc(e, t, n));
|
|
2027
|
+
}
|
|
2028
|
+
//#endregion
|
|
2029
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs
|
|
2030
|
+
function Nc(e, t) {
|
|
2031
|
+
return e.map((e) => Rc(e, t));
|
|
2032
|
+
}
|
|
2033
|
+
function Pc(e, t) {
|
|
2034
|
+
return e.map((e) => Rc(e, t));
|
|
2035
|
+
}
|
|
2036
|
+
function Fc(e, t) {
|
|
2037
|
+
let n = {};
|
|
2038
|
+
for (let r of t) r in e && (n[r] = e[r]);
|
|
2039
|
+
return n;
|
|
2040
|
+
}
|
|
2041
|
+
function Ic(e, t, n) {
|
|
2042
|
+
let r = P(e, [
|
|
2043
|
+
h,
|
|
2044
|
+
"$id",
|
|
2045
|
+
"required",
|
|
2046
|
+
"properties"
|
|
2047
|
+
]);
|
|
2048
|
+
return z(Fc(n, t), r);
|
|
2049
|
+
}
|
|
2050
|
+
function Lc(e) {
|
|
2051
|
+
return L(e.reduce((e, t) => xt(t) ? [...e, R(t)] : e, []));
|
|
2052
|
+
}
|
|
2053
|
+
function Rc(e, t) {
|
|
2054
|
+
return _(e) ? ea(Nc(e.allOf, t)) : S(e) ? L(Pc(e.anyOf, t)) : b(e) ? Ic(e, t, e.properties) : z({});
|
|
2055
|
+
}
|
|
2056
|
+
function zc(e, t, n) {
|
|
2057
|
+
let r = l(t) ? Lc(t) : t, i = Ut(t) ? ei(t) : t, a = x(e), o = x(t);
|
|
2058
|
+
return y(e) ? Mc(e, i, n) : Ct(t) ? Uc(e, t, n) : a && o || !a && o || a && !o ? N("Pick", [e, r], n) : m({
|
|
2059
|
+
...Rc(e, i),
|
|
2060
|
+
...n
|
|
2061
|
+
});
|
|
2062
|
+
}
|
|
2063
|
+
//#endregion
|
|
2064
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs
|
|
2065
|
+
function Bc(e, t, n) {
|
|
2066
|
+
return { [t]: zc(e, [t], p(n)) };
|
|
2067
|
+
}
|
|
2068
|
+
function Vc(e, t, n) {
|
|
2069
|
+
return t.reduce((t, r) => ({
|
|
2070
|
+
...t,
|
|
2071
|
+
...Bc(e, r, n)
|
|
2072
|
+
}), {});
|
|
2073
|
+
}
|
|
2074
|
+
function Hc(e, t, n) {
|
|
2075
|
+
return Vc(e, t.keys, n);
|
|
2076
|
+
}
|
|
2077
|
+
function Uc(e, t, n) {
|
|
2078
|
+
return I(Hc(e, t, n));
|
|
2079
|
+
}
|
|
2080
|
+
//#endregion
|
|
2081
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs
|
|
2082
|
+
function Wc(e, t) {
|
|
2083
|
+
return N("Partial", [N(e, t)]);
|
|
2084
|
+
}
|
|
2085
|
+
function Gc(e) {
|
|
2086
|
+
return N("Partial", [ta(e)]);
|
|
2087
|
+
}
|
|
2088
|
+
function Kc(e) {
|
|
2089
|
+
let t = {};
|
|
2090
|
+
for (let n of globalThis.Object.getOwnPropertyNames(e)) t[n] = Wi(e[n]);
|
|
2091
|
+
return t;
|
|
2092
|
+
}
|
|
2093
|
+
function qc(e, t) {
|
|
2094
|
+
let n = P(e, [
|
|
2095
|
+
h,
|
|
2096
|
+
"$id",
|
|
2097
|
+
"required",
|
|
2098
|
+
"properties"
|
|
2099
|
+
]);
|
|
2100
|
+
return z(Kc(t), n);
|
|
2101
|
+
}
|
|
2102
|
+
function Jc(e) {
|
|
2103
|
+
return e.map((e) => Yc(e));
|
|
2104
|
+
}
|
|
2105
|
+
function Yc(e) {
|
|
2106
|
+
return ht(e) ? Wc(e.target, e.parameters) : x(e) ? Gc(e.$ref) : _(e) ? ea(Jc(e.allOf)) : S(e) ? L(Jc(e.anyOf)) : b(e) ? qc(e, e.properties) : pt(e) || mt(e) || yt(e) || St(e) || Et(e) || Dt(e) || jt(e) || Mt(e) || Lt(e) ? e : z({});
|
|
2107
|
+
}
|
|
2108
|
+
function Xc(e, t) {
|
|
2109
|
+
return y(e) ? $c(e, t) : m({
|
|
2110
|
+
...Yc(e),
|
|
2111
|
+
...t
|
|
2112
|
+
});
|
|
2113
|
+
}
|
|
2114
|
+
//#endregion
|
|
2115
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs
|
|
2116
|
+
function Zc(e, t) {
|
|
2117
|
+
let n = {};
|
|
2118
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = Xc(e[r], p(t));
|
|
2119
|
+
return n;
|
|
2120
|
+
}
|
|
2121
|
+
function Qc(e, t) {
|
|
2122
|
+
return Zc(e.properties, t);
|
|
2123
|
+
}
|
|
2124
|
+
function $c(e, t) {
|
|
2125
|
+
return I(Qc(e, t));
|
|
2126
|
+
}
|
|
2127
|
+
//#endregion
|
|
2128
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs
|
|
2129
|
+
function el(e, t) {
|
|
2130
|
+
return N("Required", [N(e, t)]);
|
|
2131
|
+
}
|
|
2132
|
+
function tl(e) {
|
|
2133
|
+
return N("Required", [ta(e)]);
|
|
2134
|
+
}
|
|
2135
|
+
function nl(e) {
|
|
2136
|
+
let t = {};
|
|
2137
|
+
for (let n of globalThis.Object.getOwnPropertyNames(e)) t[n] = P(e[n], [at]);
|
|
2138
|
+
return t;
|
|
2139
|
+
}
|
|
2140
|
+
function rl(e, t) {
|
|
2141
|
+
let n = P(e, [
|
|
2142
|
+
h,
|
|
2143
|
+
"$id",
|
|
2144
|
+
"required",
|
|
2145
|
+
"properties"
|
|
2146
|
+
]);
|
|
2147
|
+
return z(nl(t), n);
|
|
2148
|
+
}
|
|
2149
|
+
function il(e) {
|
|
2150
|
+
return e.map((e) => al(e));
|
|
2151
|
+
}
|
|
2152
|
+
function al(e) {
|
|
2153
|
+
return ht(e) ? el(e.target, e.parameters) : x(e) ? tl(e.$ref) : _(e) ? ea(il(e.allOf)) : S(e) ? L(il(e.anyOf)) : b(e) ? rl(e, e.properties) : pt(e) || mt(e) || yt(e) || St(e) || Et(e) || Dt(e) || jt(e) || Mt(e) || Lt(e) ? e : z({});
|
|
2154
|
+
}
|
|
2155
|
+
function ol(e, t) {
|
|
2156
|
+
return y(e) ? ll(e, t) : m({
|
|
2157
|
+
...al(e),
|
|
2158
|
+
...t
|
|
2159
|
+
});
|
|
2160
|
+
}
|
|
2161
|
+
//#endregion
|
|
2162
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs
|
|
2163
|
+
function sl(e, t) {
|
|
2164
|
+
let n = {};
|
|
2165
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = ol(e[r], t);
|
|
2166
|
+
return n;
|
|
2167
|
+
}
|
|
2168
|
+
function cl(e, t) {
|
|
2169
|
+
return sl(e.properties, t);
|
|
2170
|
+
}
|
|
2171
|
+
function ll(e, t) {
|
|
2172
|
+
return I(cl(e, t));
|
|
2173
|
+
}
|
|
2174
|
+
//#endregion
|
|
2175
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs
|
|
2176
|
+
function ul(e, t) {
|
|
2177
|
+
return t.map((t) => x(t) ? dl(e, t.$ref) : X(e, t));
|
|
2178
|
+
}
|
|
2179
|
+
function dl(e, t) {
|
|
2180
|
+
return t in e ? x(e[t]) ? dl(e, e[t].$ref) : X(e, e[t]) : F();
|
|
2181
|
+
}
|
|
2182
|
+
function fl(e) {
|
|
2183
|
+
return ca(e[0]);
|
|
2184
|
+
}
|
|
2185
|
+
function pl(e) {
|
|
2186
|
+
return hi(e[0], e[1]);
|
|
2187
|
+
}
|
|
2188
|
+
function ml(e) {
|
|
2189
|
+
return Sa(e[0]);
|
|
2190
|
+
}
|
|
2191
|
+
function hl(e) {
|
|
2192
|
+
return Xc(e[0]);
|
|
2193
|
+
}
|
|
2194
|
+
function gl(e) {
|
|
2195
|
+
return Tc(e[0], e[1]);
|
|
2196
|
+
}
|
|
2197
|
+
function _l(e) {
|
|
2198
|
+
return zc(e[0], e[1]);
|
|
2199
|
+
}
|
|
2200
|
+
function vl(e) {
|
|
2201
|
+
return ol(e[0]);
|
|
2202
|
+
}
|
|
2203
|
+
function yl(e, t, n) {
|
|
2204
|
+
let r = ul(e, n);
|
|
2205
|
+
return t === "Awaited" ? fl(r) : t === "Index" ? pl(r) : t === "KeyOf" ? ml(r) : t === "Partial" ? hl(r) : t === "Omit" ? gl(r) : t === "Pick" ? _l(r) : t === "Required" ? vl(r) : F();
|
|
2206
|
+
}
|
|
2207
|
+
function bl(e, t) {
|
|
2208
|
+
return Qn(X(e, t));
|
|
2209
|
+
}
|
|
2210
|
+
function xl(e, t) {
|
|
2211
|
+
return er(X(e, t));
|
|
2212
|
+
}
|
|
2213
|
+
function Sl(e, t, n) {
|
|
2214
|
+
return nr(jl(e, t), X(e, n));
|
|
2215
|
+
}
|
|
2216
|
+
function Cl(e, t, n) {
|
|
2217
|
+
return rr(jl(e, t), X(e, n));
|
|
2218
|
+
}
|
|
2219
|
+
function wl(e, t) {
|
|
2220
|
+
return ea(jl(e, t));
|
|
2221
|
+
}
|
|
2222
|
+
function Tl(e, t) {
|
|
2223
|
+
return bi(X(e, t));
|
|
2224
|
+
}
|
|
2225
|
+
function El(e, t) {
|
|
2226
|
+
return z(globalThis.Object.keys(t).reduce((n, r) => ({
|
|
2227
|
+
...n,
|
|
2228
|
+
[r]: X(e, t[r])
|
|
2229
|
+
}), {}));
|
|
2230
|
+
}
|
|
2231
|
+
function Dl(e, t) {
|
|
2232
|
+
let [n, r] = [X(e, Fs(t)), Ns(t)], i = Ge(t);
|
|
2233
|
+
return i.patternProperties[r] = n, i;
|
|
2234
|
+
}
|
|
2235
|
+
function Ol(e, t) {
|
|
2236
|
+
return x(t) ? {
|
|
2237
|
+
...dl(e, t.$ref),
|
|
2238
|
+
[h]: t[h]
|
|
2239
|
+
} : t;
|
|
2240
|
+
}
|
|
2241
|
+
function kl(e, t) {
|
|
2242
|
+
return ji(jl(e, t));
|
|
2243
|
+
}
|
|
2244
|
+
function Al(e, t) {
|
|
2245
|
+
return L(jl(e, t));
|
|
2246
|
+
}
|
|
2247
|
+
function jl(e, t) {
|
|
2248
|
+
return t.map((t) => X(e, t));
|
|
2249
|
+
}
|
|
2250
|
+
function X(e, t) {
|
|
2251
|
+
return ct(t) ? m(X(e, P(t, [at])), t) : st(t) ? m(X(e, P(t, [it])), t) : Ft(t) ? m(Ol(e, t), t) : dt(t) ? m(bl(e, t.items), t) : ft(t) ? m(xl(e, t.items), t) : ht(t) ? m(yl(e, t.target, t.parameters)) : gt(t) ? m(Sl(e, t.parameters, t.returns), t) : vt(t) ? m(Cl(e, t.parameters, t.returns), t) : _(t) ? m(wl(e, t.allOf), t) : bt(t) ? m(Tl(e, t.items), t) : b(t) ? m(El(e, t.properties), t) : kt(t) ? m(Dl(e, t)) : It(t) ? m(kl(e, t.items || []), t) : S(t) ? m(Al(e, t.anyOf), t) : t;
|
|
2252
|
+
}
|
|
2253
|
+
function Ml(e, t) {
|
|
2254
|
+
return t in e ? X(e, e[t]) : F();
|
|
2255
|
+
}
|
|
2256
|
+
function Nl(e) {
|
|
2257
|
+
return globalThis.Object.getOwnPropertyNames(e).reduce((t, n) => ({
|
|
2258
|
+
...t,
|
|
2259
|
+
[n]: Ml(e, n)
|
|
2260
|
+
}), {});
|
|
2261
|
+
}
|
|
2262
|
+
//#endregion
|
|
2263
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs
|
|
2264
|
+
var Pl = class {
|
|
2265
|
+
constructor(e) {
|
|
2266
|
+
let t = Nl(e), n = this.WithIdentifiers(t);
|
|
2267
|
+
this.$defs = n;
|
|
2268
|
+
}
|
|
2269
|
+
Import(e, t) {
|
|
2270
|
+
let n = {
|
|
2271
|
+
...this.$defs,
|
|
2272
|
+
[e]: m(this.$defs[e], t)
|
|
2273
|
+
};
|
|
2274
|
+
return m({
|
|
2275
|
+
[g]: "Import",
|
|
2276
|
+
$defs: n,
|
|
2277
|
+
$ref: e
|
|
2278
|
+
});
|
|
2279
|
+
}
|
|
2280
|
+
WithIdentifiers(e) {
|
|
2281
|
+
return globalThis.Object.getOwnPropertyNames(e).reduce((t, n) => ({
|
|
2282
|
+
...t,
|
|
2283
|
+
[n]: {
|
|
2284
|
+
...e[n],
|
|
2285
|
+
$id: n
|
|
2286
|
+
}
|
|
2287
|
+
}), {});
|
|
2288
|
+
}
|
|
2289
|
+
};
|
|
2290
|
+
function Fl(e) {
|
|
2291
|
+
return new Pl(e);
|
|
2292
|
+
}
|
|
2293
|
+
//#endregion
|
|
2294
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs
|
|
2295
|
+
function Il(e, t) {
|
|
2296
|
+
return m({
|
|
2297
|
+
[g]: "Not",
|
|
2298
|
+
not: e
|
|
2299
|
+
}, t);
|
|
2300
|
+
}
|
|
2301
|
+
//#endregion
|
|
2302
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs
|
|
2303
|
+
function Ll(e, t) {
|
|
2304
|
+
return vt(e) ? ji(e.parameters, t) : F();
|
|
2305
|
+
}
|
|
2306
|
+
//#endregion
|
|
2307
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs
|
|
2308
|
+
var Rl = 0;
|
|
2309
|
+
function zl(e, t = {}) {
|
|
2310
|
+
f(t.$id) && (t.$id = `T${Rl++}`);
|
|
2311
|
+
let n = Ge(e({
|
|
2312
|
+
[g]: "This",
|
|
2313
|
+
$ref: `${t.$id}`
|
|
2314
|
+
}));
|
|
2315
|
+
return n.$id = t.$id, m({
|
|
2316
|
+
[ot]: "Recursive",
|
|
2317
|
+
...n
|
|
2318
|
+
}, t);
|
|
2319
|
+
}
|
|
2320
|
+
//#endregion
|
|
2321
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs
|
|
2322
|
+
function Bl(e, t) {
|
|
2323
|
+
let n = d(e) ? new globalThis.RegExp(e) : e;
|
|
2324
|
+
return m({
|
|
2325
|
+
[g]: "RegExp",
|
|
2326
|
+
type: "RegExp",
|
|
2327
|
+
source: n.source,
|
|
2328
|
+
flags: n.flags
|
|
2329
|
+
}, t);
|
|
2330
|
+
}
|
|
2331
|
+
//#endregion
|
|
2332
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs
|
|
2333
|
+
function Vl(e) {
|
|
2334
|
+
return _(e) ? e.allOf : S(e) ? e.anyOf : It(e) ? e.items ?? [] : [];
|
|
2335
|
+
}
|
|
2336
|
+
function Hl(e) {
|
|
2337
|
+
return Vl(e);
|
|
2338
|
+
}
|
|
2339
|
+
//#endregion
|
|
2340
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs
|
|
2341
|
+
function Ul(e, t) {
|
|
2342
|
+
return vt(e) ? m(e.returns, t) : F(t);
|
|
2343
|
+
}
|
|
2344
|
+
//#endregion
|
|
2345
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs
|
|
2346
|
+
var Wl = class {
|
|
2347
|
+
constructor(e) {
|
|
2348
|
+
this.schema = e;
|
|
2349
|
+
}
|
|
2350
|
+
Decode(e) {
|
|
2351
|
+
return new Gl(this.schema, e);
|
|
2352
|
+
}
|
|
2353
|
+
}, Gl = class {
|
|
2354
|
+
constructor(e, t) {
|
|
2355
|
+
this.schema = e, this.decode = t;
|
|
2356
|
+
}
|
|
2357
|
+
EncodeTransform(e, t) {
|
|
2358
|
+
let n = {
|
|
2359
|
+
Encode: (n) => t[h].Encode(e(n)),
|
|
2360
|
+
Decode: (e) => this.decode(t[h].Decode(e))
|
|
2361
|
+
};
|
|
2362
|
+
return {
|
|
2363
|
+
...t,
|
|
2364
|
+
[h]: n
|
|
2365
|
+
};
|
|
2366
|
+
}
|
|
2367
|
+
EncodeSchema(e, t) {
|
|
2368
|
+
let n = {
|
|
2369
|
+
Decode: this.decode,
|
|
2370
|
+
Encode: e
|
|
2371
|
+
};
|
|
2372
|
+
return {
|
|
2373
|
+
...t,
|
|
2374
|
+
[h]: n
|
|
2375
|
+
};
|
|
2376
|
+
}
|
|
2377
|
+
Encode(e) {
|
|
2378
|
+
return Ft(this.schema) ? this.EncodeTransform(e, this.schema) : this.EncodeSchema(e, this.schema);
|
|
2379
|
+
}
|
|
2380
|
+
};
|
|
2381
|
+
function Kl(e) {
|
|
2382
|
+
return new Wl(e);
|
|
2383
|
+
}
|
|
2384
|
+
//#endregion
|
|
2385
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs
|
|
2386
|
+
function ql(e = {}) {
|
|
2387
|
+
return m({ [g]: e[g] ?? "Unsafe" }, e);
|
|
2388
|
+
}
|
|
2389
|
+
//#endregion
|
|
2390
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs
|
|
2391
|
+
function Jl(e) {
|
|
2392
|
+
return m({
|
|
2393
|
+
[g]: "Void",
|
|
2394
|
+
type: "void"
|
|
2395
|
+
}, e);
|
|
2396
|
+
}
|
|
2397
|
+
//#endregion
|
|
2398
|
+
//#region ../core/node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs
|
|
2399
|
+
var Z = /* @__PURE__ */ Te({
|
|
2400
|
+
Any: () => Zn,
|
|
2401
|
+
Argument: () => $n,
|
|
2402
|
+
Array: () => Qn,
|
|
2403
|
+
AsyncIterator: () => er,
|
|
2404
|
+
Awaited: () => ca,
|
|
2405
|
+
BigInt: () => Rr,
|
|
2406
|
+
Boolean: () => Lr,
|
|
2407
|
+
Capitalize: () => dc,
|
|
2408
|
+
Composite: () => Aa,
|
|
2409
|
+
Const: () => Va,
|
|
2410
|
+
Constructor: () => nr,
|
|
2411
|
+
ConstructorParameters: () => Ha,
|
|
2412
|
+
Date: () => ja,
|
|
2413
|
+
Enum: () => Ua,
|
|
2414
|
+
Exclude: () => cs,
|
|
2415
|
+
Extends: () => ts,
|
|
2416
|
+
Extract: () => ms,
|
|
2417
|
+
Function: () => rr,
|
|
2418
|
+
Index: () => hi,
|
|
2419
|
+
InstanceType: () => vs,
|
|
2420
|
+
Instantiate: () => Zs,
|
|
2421
|
+
Integer: () => Qs,
|
|
2422
|
+
Intersect: () => ea,
|
|
2423
|
+
Iterator: () => bi,
|
|
2424
|
+
KeyOf: () => Sa,
|
|
2425
|
+
Literal: () => R,
|
|
2426
|
+
Lowercase: () => fc,
|
|
2427
|
+
Mapped: () => Bi,
|
|
2428
|
+
Module: () => Fl,
|
|
2429
|
+
Never: () => F,
|
|
2430
|
+
Not: () => Il,
|
|
2431
|
+
Null: () => Ma,
|
|
2432
|
+
Number: () => zr,
|
|
2433
|
+
Object: () => z,
|
|
2434
|
+
Omit: () => Tc,
|
|
2435
|
+
Optional: () => Wi,
|
|
2436
|
+
Parameters: () => Ll,
|
|
2437
|
+
Partial: () => Xc,
|
|
2438
|
+
Pick: () => zc,
|
|
2439
|
+
Promise: () => Ci,
|
|
2440
|
+
Readonly: () => Di,
|
|
2441
|
+
ReadonlyOptional: () => ys,
|
|
2442
|
+
Record: () => Ms,
|
|
2443
|
+
Recursive: () => zl,
|
|
2444
|
+
Ref: () => ta,
|
|
2445
|
+
RegExp: () => Bl,
|
|
2446
|
+
Required: () => ol,
|
|
2447
|
+
Rest: () => Hl,
|
|
2448
|
+
ReturnType: () => Ul,
|
|
2449
|
+
String: () => Br,
|
|
2450
|
+
Symbol: () => Na,
|
|
2451
|
+
TemplateLiteral: () => Xr,
|
|
2452
|
+
Transform: () => Kl,
|
|
2453
|
+
Tuple: () => ji,
|
|
2454
|
+
Uint8Array: () => Fa,
|
|
2455
|
+
Uncapitalize: () => pc,
|
|
2456
|
+
Undefined: () => Pa,
|
|
2457
|
+
Union: () => L,
|
|
2458
|
+
Unknown: () => Ia,
|
|
2459
|
+
Unsafe: () => ql,
|
|
2460
|
+
Uppercase: () => mc,
|
|
2461
|
+
Void: () => Jl
|
|
2462
|
+
}), Yl = /* @__PURE__ */ function(e) {
|
|
2463
|
+
return e.ViteImport = "viteImport", e.VitePlugin = "vitePlugin", e.AppImport = "appImport", e.AppBody = "appBody", e.AppSetup = "appSetup", e.Style = "style", e.ServerImport = "serverImport", e.ServerBody = "serverBody", e;
|
|
2464
|
+
}({}), Xl = Object.defineProperty, Q = (e, t) => {
|
|
2465
|
+
let n = {};
|
|
2466
|
+
for (var r in e) Xl(n, r, {
|
|
2467
|
+
get: e[r],
|
|
2468
|
+
enumerable: !0
|
|
2469
|
+
});
|
|
2470
|
+
return t || Xl(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
2471
|
+
}, Zl = {
|
|
2472
|
+
backendUrl: "https://luna-park.app",
|
|
2473
|
+
hostUrl: "https://host.luna-park.app",
|
|
2474
|
+
webSocketUrl: "wss://luna-park.app"
|
|
2475
|
+
}, Ql = {
|
|
2476
|
+
credentials: "include",
|
|
2477
|
+
headers: {
|
|
2478
|
+
Accept: "application/json, text/plain",
|
|
2479
|
+
"Content-Type": "application/json"
|
|
2480
|
+
},
|
|
2481
|
+
mode: "cors"
|
|
2482
|
+
}, $l = {
|
|
2483
|
+
credentials: "include",
|
|
2484
|
+
headers: { Accept: "application/json, text/plain" },
|
|
2485
|
+
mode: "cors"
|
|
2486
|
+
}, eu = {
|
|
2487
|
+
async delete(e, t) {
|
|
2488
|
+
let n = {
|
|
2489
|
+
...Ql,
|
|
2490
|
+
method: "DELETE",
|
|
2491
|
+
...t
|
|
2492
|
+
};
|
|
2493
|
+
return n.body || (n.headers = { ...n.headers }, delete n.headers?.["Content-Type"]), fetch(e, n);
|
|
2494
|
+
},
|
|
2495
|
+
async get(e, t) {
|
|
2496
|
+
return await fetch(e, {
|
|
2497
|
+
...Ql,
|
|
2498
|
+
method: "GET",
|
|
2499
|
+
...t
|
|
2500
|
+
});
|
|
2501
|
+
},
|
|
2502
|
+
getBaseUrl({ dev: e } = { dev: !1 }) {
|
|
2503
|
+
return `${Zl.backendUrl}/${e ? "dev" : "api"}`;
|
|
2504
|
+
},
|
|
2505
|
+
async multipart(e, t, n) {
|
|
2506
|
+
return await fetch(e, {
|
|
2507
|
+
...$l,
|
|
2508
|
+
body: t,
|
|
2509
|
+
method: "POST",
|
|
2510
|
+
...n
|
|
2511
|
+
});
|
|
2512
|
+
},
|
|
2513
|
+
async post(e, t, n) {
|
|
2514
|
+
return await fetch(e, {
|
|
2515
|
+
...Ql,
|
|
2516
|
+
body: JSON.stringify(t) || "{}",
|
|
2517
|
+
method: "POST",
|
|
2518
|
+
...n
|
|
2519
|
+
});
|
|
2520
|
+
},
|
|
2521
|
+
async put(e, t, n) {
|
|
2522
|
+
return await fetch(e, {
|
|
2523
|
+
...Ql,
|
|
2524
|
+
body: JSON.stringify(t) || "{}",
|
|
2525
|
+
method: "PUT",
|
|
2526
|
+
...n
|
|
2527
|
+
});
|
|
2528
|
+
}
|
|
2529
|
+
}, tu = Z.String({ format: "date-time" }), nu = /* @__PURE__ */ Q({
|
|
2530
|
+
app: () => ru,
|
|
2531
|
+
appEdits: () => iu
|
|
2532
|
+
}), ru = Z.Object({
|
|
2533
|
+
name: Z.String(),
|
|
2534
|
+
config: Z.Record(Z.String(), Z.Unknown()),
|
|
2535
|
+
tree: Z.Unknown(),
|
|
2536
|
+
version: Z.Optional(Z.Number())
|
|
2537
|
+
}), iu = Z.Array(Z.Object({
|
|
2538
|
+
file: Z.Unknown(),
|
|
2539
|
+
path: Z.String()
|
|
2540
|
+
})), au = Z.Object({
|
|
2541
|
+
id: Z.Optional(Z.String()),
|
|
2542
|
+
domain: Z.String(),
|
|
2543
|
+
owner: Z.String(),
|
|
2544
|
+
private: Z.String(),
|
|
2545
|
+
public: Z.String()
|
|
2546
|
+
}), ou = Z.Object({
|
|
2547
|
+
id: Z.String(),
|
|
2548
|
+
app: Z.Object({
|
|
2549
|
+
name: Z.String(),
|
|
2550
|
+
config: Z.Unknown()
|
|
2551
|
+
}),
|
|
2552
|
+
createdAt: tu,
|
|
2553
|
+
icon: Z.String(),
|
|
2554
|
+
owner: Z.Unknown(),
|
|
2555
|
+
updatedAt: tu,
|
|
2556
|
+
visibility: Z.Object({
|
|
2557
|
+
liked: Z.Boolean(),
|
|
2558
|
+
public: Z.Boolean(),
|
|
2559
|
+
shareKey: Z.Optional(Z.String()),
|
|
2560
|
+
starsCount: Z.Number()
|
|
2561
|
+
})
|
|
2562
|
+
}), su = ou, cu = Z.Object({
|
|
2563
|
+
...ou.properties,
|
|
2564
|
+
app: Z.Unknown()
|
|
2565
|
+
}), lu = /* @__PURE__ */ function(e) {
|
|
2566
|
+
return e.Free = "free", e.Edu = "edu", e.Pro = "pro", e.Org = "org", e;
|
|
2567
|
+
}({}), uu = {
|
|
2568
|
+
free: {
|
|
2569
|
+
compilation: {
|
|
2570
|
+
export: !0,
|
|
2571
|
+
source: !1,
|
|
2572
|
+
web: !0
|
|
2573
|
+
},
|
|
2574
|
+
editor: {
|
|
2575
|
+
desktop: !1,
|
|
2576
|
+
web: !0
|
|
2577
|
+
},
|
|
2578
|
+
desktop: { compilation: {
|
|
2579
|
+
desktop: !1,
|
|
2580
|
+
mobile: !1
|
|
2581
|
+
} },
|
|
2582
|
+
watermark: !0
|
|
2583
|
+
},
|
|
2584
|
+
pro: {
|
|
2585
|
+
compilation: {
|
|
2586
|
+
export: !0,
|
|
2587
|
+
source: !0,
|
|
2588
|
+
web: !0
|
|
2589
|
+
},
|
|
2590
|
+
editor: {
|
|
2591
|
+
desktop: !0,
|
|
2592
|
+
web: !0
|
|
2593
|
+
},
|
|
2594
|
+
desktop: { compilation: {
|
|
2595
|
+
desktop: !0,
|
|
2596
|
+
mobile: !0
|
|
2597
|
+
} },
|
|
2598
|
+
watermark: !1
|
|
2599
|
+
}
|
|
2600
|
+
};
|
|
2601
|
+
uu.pro, uu.pro, uu.pro, uu.free;
|
|
2602
|
+
var du = Z.Object({
|
|
2603
|
+
id: Z.Optional(Z.String()),
|
|
2604
|
+
auth: Z.Optional(Z.Object({})),
|
|
2605
|
+
mail: Z.String(),
|
|
2606
|
+
terms: Z.Optional(Z.Object({
|
|
2607
|
+
version: Z.Union([Z.String(), Z.Null()]),
|
|
2608
|
+
acceptedAt: Z.Union([Z.String(), Z.Null()])
|
|
2609
|
+
})),
|
|
2610
|
+
plan: Z.Object({ name: Z.Enum(lu) }),
|
|
2611
|
+
profile: Z.Object({
|
|
2612
|
+
other: Z.Object({
|
|
2613
|
+
avatar: Z.String(),
|
|
2614
|
+
bio: Z.String(),
|
|
2615
|
+
referral: Z.String()
|
|
2616
|
+
}),
|
|
2617
|
+
public: Z.Object({
|
|
2618
|
+
company: Z.String(),
|
|
2619
|
+
location: Z.String(),
|
|
2620
|
+
url: Z.String(),
|
|
2621
|
+
username: Z.String()
|
|
2622
|
+
}),
|
|
2623
|
+
social: Z.Object({
|
|
2624
|
+
discord: Z.String(),
|
|
2625
|
+
github: Z.String(),
|
|
2626
|
+
linkedin: Z.String(),
|
|
2627
|
+
twitter: Z.String()
|
|
2628
|
+
})
|
|
2629
|
+
}),
|
|
2630
|
+
settings: Z.Object({
|
|
2631
|
+
newsletter: Z.Boolean(),
|
|
2632
|
+
onboarding: Z.Boolean()
|
|
2633
|
+
})
|
|
2634
|
+
}), $ = {
|
|
2635
|
+
...nu,
|
|
2636
|
+
keyConfig: au,
|
|
2637
|
+
privateProject: cu,
|
|
2638
|
+
project: ou,
|
|
2639
|
+
publicProject: su,
|
|
2640
|
+
user: du
|
|
2641
|
+
}, fu = /* @__PURE__ */ Q({
|
|
2642
|
+
edit: () => mu,
|
|
2643
|
+
get: () => pu
|
|
2644
|
+
}), pu = {
|
|
2645
|
+
type: "get",
|
|
2646
|
+
params: Z.Object({ id: Z.String() }),
|
|
2647
|
+
response: { 200: Z.Object({
|
|
2648
|
+
app: $.app,
|
|
2649
|
+
readOnly: Z.Boolean()
|
|
2650
|
+
}) },
|
|
2651
|
+
url: "/app/:id"
|
|
2652
|
+
}, mu = {
|
|
2653
|
+
type: "post",
|
|
2654
|
+
body: Z.Object({
|
|
2655
|
+
app: Z.Optional($.app),
|
|
2656
|
+
deletes: Z.Optional(Z.Array(Z.String())),
|
|
2657
|
+
edits: Z.Optional($.appEdits)
|
|
2658
|
+
}),
|
|
2659
|
+
params: Z.Object({ id: Z.String() }),
|
|
2660
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2661
|
+
url: "/app/:id"
|
|
2662
|
+
}, hu = /* @__PURE__ */ Q({
|
|
2663
|
+
authorize: () => gu,
|
|
2664
|
+
client: () => yu,
|
|
2665
|
+
me: () => vu,
|
|
2666
|
+
token: () => _u
|
|
2667
|
+
}), gu = {
|
|
2668
|
+
type: "post",
|
|
2669
|
+
body: Z.Object({
|
|
2670
|
+
client_id: Z.String(),
|
|
2671
|
+
redirect_uri: Z.String(),
|
|
2672
|
+
response_type: Z.Literal("code"),
|
|
2673
|
+
scope: Z.Optional(Z.String())
|
|
2674
|
+
}),
|
|
2675
|
+
response: { 200: Z.Object({ authorization_code: Z.String() }) },
|
|
2676
|
+
url: "/auth/authorize"
|
|
2677
|
+
}, _u = {
|
|
2678
|
+
type: "post",
|
|
2679
|
+
body: Z.Union([Z.Object({
|
|
2680
|
+
client_id: Z.String(),
|
|
2681
|
+
client_secret: Z.String(),
|
|
2682
|
+
code: Z.String(),
|
|
2683
|
+
grant_type: Z.Literal("authorization_code"),
|
|
2684
|
+
redirect_uri: Z.String()
|
|
2685
|
+
}), Z.Object({
|
|
2686
|
+
client_id: Z.String(),
|
|
2687
|
+
client_secret: Z.String(),
|
|
2688
|
+
grant_type: Z.Literal("refresh_token"),
|
|
2689
|
+
refresh_token: Z.String()
|
|
2690
|
+
})]),
|
|
2691
|
+
response: { 200: Z.Object({
|
|
2692
|
+
access_token: Z.String(),
|
|
2693
|
+
expires_in: Z.Number(),
|
|
2694
|
+
refresh_token: Z.String(),
|
|
2695
|
+
token_type: Z.Literal("Bearer")
|
|
2696
|
+
}) },
|
|
2697
|
+
url: "/auth/token"
|
|
2698
|
+
}, vu = {
|
|
2699
|
+
type: "get",
|
|
2700
|
+
headers: Z.Object({ authorization: Z.String() }),
|
|
2701
|
+
response: { 200: Z.Object({
|
|
2702
|
+
id: Z.String(),
|
|
2703
|
+
mail: Z.String()
|
|
2704
|
+
}) },
|
|
2705
|
+
url: "/auth/me"
|
|
2706
|
+
}, yu = {
|
|
2707
|
+
type: "get",
|
|
2708
|
+
querystring: Z.Object({
|
|
2709
|
+
client_id: Z.String(),
|
|
2710
|
+
redirect_uri: Z.String()
|
|
2711
|
+
}),
|
|
2712
|
+
response: { 200: Z.Object({ client_name: Z.String() }) },
|
|
2713
|
+
url: "/auth/client"
|
|
2714
|
+
}, bu = /* @__PURE__ */ Q({
|
|
2715
|
+
get: () => Su,
|
|
2716
|
+
update: () => Cu
|
|
2717
|
+
}), xu = Z.Object({ done: Z.Array(Z.String()) }), Su = {
|
|
2718
|
+
type: "get",
|
|
2719
|
+
response: { 200: xu },
|
|
2720
|
+
url: "/challenge"
|
|
2721
|
+
}, Cu = {
|
|
2722
|
+
type: "post",
|
|
2723
|
+
body: xu,
|
|
2724
|
+
response: { 200: xu },
|
|
2725
|
+
url: "/challenge"
|
|
2726
|
+
}, wu = /* @__PURE__ */ Q({
|
|
2727
|
+
build: () => Tu,
|
|
2728
|
+
compile: () => Eu,
|
|
2729
|
+
download: () => Du
|
|
2730
|
+
}), Tu = {
|
|
2731
|
+
type: "post",
|
|
2732
|
+
body: Z.Object({
|
|
2733
|
+
entry: Z.Optional(Z.String()),
|
|
2734
|
+
key: Z.String(),
|
|
2735
|
+
script: Z.Unknown()
|
|
2736
|
+
}),
|
|
2737
|
+
params: Z.Object({ type: Z.Union([Z.Literal("main"), Z.Literal("logic")]) }),
|
|
2738
|
+
response: { 200: Z.Object({
|
|
2739
|
+
code: Z.String(),
|
|
2740
|
+
message: Z.String()
|
|
2741
|
+
}) },
|
|
2742
|
+
url: "/compiler/build/:type"
|
|
2743
|
+
}, Eu = {
|
|
2744
|
+
type: "post",
|
|
2745
|
+
body: Z.Object({ target: Z.Union([
|
|
2746
|
+
Z.Literal("source"),
|
|
2747
|
+
Z.Literal("export"),
|
|
2748
|
+
Z.Literal("web")
|
|
2749
|
+
]) }),
|
|
2750
|
+
params: Z.Object({ id: Z.String() }),
|
|
2751
|
+
response: { 200: Z.Object({
|
|
2752
|
+
message: Z.String(),
|
|
2753
|
+
target: Z.String()
|
|
2754
|
+
}) },
|
|
2755
|
+
url: "/compiler/compile/:id"
|
|
2756
|
+
}, Du = {
|
|
2757
|
+
type: "get",
|
|
2758
|
+
params: Z.Object({
|
|
2759
|
+
id: Z.String(),
|
|
2760
|
+
target: Z.Union([Z.Literal("source"), Z.Literal("export")])
|
|
2761
|
+
}),
|
|
2762
|
+
response: { 200: Z.Unknown() },
|
|
2763
|
+
url: "/compiler/download/:id/:target"
|
|
2764
|
+
}, Ou = /* @__PURE__ */ Q({ latest: () => ku }), ku = {
|
|
2765
|
+
type: "get",
|
|
2766
|
+
dev: !0,
|
|
2767
|
+
querystring: Z.Object({
|
|
2768
|
+
arch: Z.Union([
|
|
2769
|
+
Z.Literal("x86_64"),
|
|
2770
|
+
Z.Literal("i686"),
|
|
2771
|
+
Z.Literal("aarch64"),
|
|
2772
|
+
Z.Literal("armv7")
|
|
2773
|
+
]),
|
|
2774
|
+
target: Z.Union([
|
|
2775
|
+
Z.Literal("windows"),
|
|
2776
|
+
Z.Literal("linux"),
|
|
2777
|
+
Z.Literal("darwin")
|
|
2778
|
+
]),
|
|
2779
|
+
version: Z.Optional(Z.String())
|
|
2780
|
+
}),
|
|
2781
|
+
response: { 200: Z.Object({
|
|
2782
|
+
notes: Z.String(),
|
|
2783
|
+
pub_date: Z.String(),
|
|
2784
|
+
signature: Z.String(),
|
|
2785
|
+
url: Z.String(),
|
|
2786
|
+
version: Z.String()
|
|
2787
|
+
}) },
|
|
2788
|
+
url: "/desktop/release/latest"
|
|
2789
|
+
}, Au = /* @__PURE__ */ Q({
|
|
2790
|
+
create: () => ju,
|
|
2791
|
+
listServers: () => Mu
|
|
2792
|
+
}), ju = {
|
|
2793
|
+
type: "post",
|
|
2794
|
+
body: Z.Object({ serverId: Z.String({ format: "uuid" }) }),
|
|
2795
|
+
params: Z.Object({
|
|
2796
|
+
appId: Z.String({ format: "uuid" }),
|
|
2797
|
+
environment: Z.Union([Z.Literal("staging"), Z.Literal("production")])
|
|
2798
|
+
}),
|
|
2799
|
+
response: { 200: Z.Object({ id: Z.String({ format: "uuid" }) }) },
|
|
2800
|
+
url: "/deploy/:appId/:environment"
|
|
2801
|
+
}, Mu = {
|
|
2802
|
+
type: "get",
|
|
2803
|
+
response: { 200: Z.Array(Z.Object({
|
|
2804
|
+
id: Z.String({ format: "uuid" }),
|
|
2805
|
+
name: Z.String()
|
|
2806
|
+
})) },
|
|
2807
|
+
url: "/deploy/servers"
|
|
2808
|
+
}, Nu = /* @__PURE__ */ Q({
|
|
2809
|
+
list: () => Iu,
|
|
2810
|
+
remove: () => Fu,
|
|
2811
|
+
status: () => Lu,
|
|
2812
|
+
upload: () => Pu
|
|
2813
|
+
}), Pu = {
|
|
2814
|
+
type: "post",
|
|
2815
|
+
body: Z.Object({
|
|
2816
|
+
file: Z.Object({
|
|
2817
|
+
filename: Z.String(),
|
|
2818
|
+
mimetype: Z.String()
|
|
2819
|
+
}),
|
|
2820
|
+
project: Z.Object({ value: Z.String() })
|
|
2821
|
+
}),
|
|
2822
|
+
multipart: !0,
|
|
2823
|
+
response: { 200: Z.Object({
|
|
2824
|
+
name: Z.String(),
|
|
2825
|
+
mimeType: Z.String(),
|
|
2826
|
+
target: Z.String()
|
|
2827
|
+
}) },
|
|
2828
|
+
url: "/file/upload"
|
|
2829
|
+
}, Fu = {
|
|
2830
|
+
type: "post",
|
|
2831
|
+
body: Z.Object({ target: Z.String() }),
|
|
2832
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2833
|
+
url: "/file/remove"
|
|
2834
|
+
}, Iu = {
|
|
2835
|
+
type: "get",
|
|
2836
|
+
querystring: Z.Object({
|
|
2837
|
+
limit: Z.Optional(Z.String()),
|
|
2838
|
+
search: Z.Optional(Z.String()),
|
|
2839
|
+
skip: Z.Optional(Z.String())
|
|
2840
|
+
}),
|
|
2841
|
+
response: { 200: Z.Object({
|
|
2842
|
+
result: Z.Array(Z.Object({
|
|
2843
|
+
id: Z.String(),
|
|
2844
|
+
name: Z.String(),
|
|
2845
|
+
mimeType: Z.String(),
|
|
2846
|
+
project: Z.Object({
|
|
2847
|
+
id: Z.String(),
|
|
2848
|
+
name: Z.String(),
|
|
2849
|
+
icon: Z.String()
|
|
2850
|
+
}),
|
|
2851
|
+
size: Z.Number(),
|
|
2852
|
+
target: Z.String()
|
|
2853
|
+
})),
|
|
2854
|
+
total: Z.Number()
|
|
2855
|
+
}) },
|
|
2856
|
+
url: "/file/list"
|
|
2857
|
+
}, Lu = {
|
|
2858
|
+
type: "get",
|
|
2859
|
+
response: { 200: Z.Object({
|
|
2860
|
+
limit: Z.Number(),
|
|
2861
|
+
total: Z.Number()
|
|
2862
|
+
}) },
|
|
2863
|
+
url: "/file/status"
|
|
2864
|
+
}, Ru = /* @__PURE__ */ Q({ googleAuth: () => zu }), zu = {
|
|
2865
|
+
type: "get",
|
|
2866
|
+
querystring: Z.Object({
|
|
2867
|
+
code: Z.Optional(Z.String()),
|
|
2868
|
+
scope: Z.Optional(Z.String()),
|
|
2869
|
+
state: Z.Optional(Z.String())
|
|
2870
|
+
}),
|
|
2871
|
+
response: { 200: Z.Object({ token: Z.Optional(Z.String()) }) },
|
|
2872
|
+
url: "/integrations/google/auth"
|
|
2873
|
+
}, Bu = /* @__PURE__ */ Q({
|
|
2874
|
+
check: () => Wu,
|
|
2875
|
+
create: () => Vu,
|
|
2876
|
+
list: () => Hu,
|
|
2877
|
+
remove: () => Uu
|
|
2878
|
+
}), Vu = {
|
|
2879
|
+
type: "post",
|
|
2880
|
+
body: Z.Object({ domain: Z.String() }),
|
|
2881
|
+
response: { 200: Z.Object({
|
|
2882
|
+
key: $.keyConfig,
|
|
2883
|
+
message: Z.String()
|
|
2884
|
+
}) },
|
|
2885
|
+
url: "/key-config"
|
|
2886
|
+
}, Hu = {
|
|
2887
|
+
type: "get",
|
|
2888
|
+
response: { 200: Z.Array($.keyConfig) },
|
|
2889
|
+
url: "/key-config"
|
|
2890
|
+
}, Uu = {
|
|
2891
|
+
type: "delete",
|
|
2892
|
+
params: Z.Object({ id: Z.String() }),
|
|
2893
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2894
|
+
url: "/key-config/:id"
|
|
2895
|
+
}, Wu = {
|
|
2896
|
+
type: "post",
|
|
2897
|
+
body: Z.Object({
|
|
2898
|
+
domain: Z.String(),
|
|
2899
|
+
key: Z.String()
|
|
2900
|
+
}),
|
|
2901
|
+
dev: !0,
|
|
2902
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2903
|
+
url: "/key-config/check"
|
|
2904
|
+
}, Gu = /* @__PURE__ */ Q({
|
|
2905
|
+
check: () => Yu,
|
|
2906
|
+
link: () => Ju,
|
|
2907
|
+
list: () => Xu,
|
|
2908
|
+
reset: () => qu
|
|
2909
|
+
}), Ku = Z.String({ pattern: "^v1:[0-9a-f]{64}$" }), qu = {
|
|
2910
|
+
type: "post",
|
|
2911
|
+
body: Z.Object({ id: Z.String() }),
|
|
2912
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2913
|
+
url: "/license/reset"
|
|
2914
|
+
}, Ju = {
|
|
2915
|
+
type: "post",
|
|
2916
|
+
body: Z.Object({
|
|
2917
|
+
name: Z.String(),
|
|
2918
|
+
fingerprint: Ku,
|
|
2919
|
+
key: Z.String()
|
|
2920
|
+
}),
|
|
2921
|
+
dev: !0,
|
|
2922
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2923
|
+
url: "/license/link"
|
|
2924
|
+
}, Yu = {
|
|
2925
|
+
type: "post",
|
|
2926
|
+
body: Z.Object({
|
|
2927
|
+
fingerprint: Ku,
|
|
2928
|
+
key: Z.String()
|
|
2929
|
+
}),
|
|
2930
|
+
dev: !0,
|
|
2931
|
+
response: { 200: Z.Object({
|
|
2932
|
+
mail: Z.Optional(Z.String()),
|
|
2933
|
+
valid: Z.Boolean(),
|
|
2934
|
+
version: Z.Optional(Z.String())
|
|
2935
|
+
}) },
|
|
2936
|
+
url: "/license/check"
|
|
2937
|
+
}, Xu = {
|
|
2938
|
+
type: "get",
|
|
2939
|
+
response: { 200: Z.Array(Z.Object({
|
|
2940
|
+
id: Z.String(),
|
|
2941
|
+
name: Z.String(),
|
|
2942
|
+
expirationDate: tu,
|
|
2943
|
+
key: Z.String(),
|
|
2944
|
+
lastUsed: tu,
|
|
2945
|
+
version: Z.String()
|
|
2946
|
+
})) },
|
|
2947
|
+
url: "/license/list"
|
|
2948
|
+
}, Zu = /* @__PURE__ */ Q({
|
|
2949
|
+
activate: () => Qu,
|
|
2950
|
+
create: () => $u,
|
|
2951
|
+
signup: () => ed
|
|
2952
|
+
}), Qu = {
|
|
2953
|
+
type: "get",
|
|
2954
|
+
params: Z.Object({
|
|
2955
|
+
id: Z.String(),
|
|
2956
|
+
token: Z.String()
|
|
2957
|
+
}),
|
|
2958
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2959
|
+
url: "/magiclink/activate/:id/:token"
|
|
2960
|
+
}, $u = {
|
|
2961
|
+
type: "post",
|
|
2962
|
+
body: Z.Object({ mail: Z.String({ format: "email" }) }),
|
|
2963
|
+
response: { 200: Z.Object({
|
|
2964
|
+
expirationDate: Z.String(),
|
|
2965
|
+
message: Z.String()
|
|
2966
|
+
}) },
|
|
2967
|
+
url: "/magiclink/create"
|
|
2968
|
+
}, ed = {
|
|
2969
|
+
type: "post",
|
|
2970
|
+
body: Z.Object({ mail: Z.String({ format: "email" }) }),
|
|
2971
|
+
response: { 200: Z.Object({
|
|
2972
|
+
expirationDate: Z.String(),
|
|
2973
|
+
message: Z.String()
|
|
2974
|
+
}) },
|
|
2975
|
+
url: "/magiclink/signup"
|
|
2976
|
+
}, td = /* @__PURE__ */ Q({
|
|
2977
|
+
checkout: () => nd,
|
|
2978
|
+
portal: () => rd
|
|
2979
|
+
}), nd = {
|
|
2980
|
+
type: "post",
|
|
2981
|
+
body: Z.Object({ plan: Z.Union([Z.Literal("pro"), Z.Literal("org")]) }),
|
|
2982
|
+
response: { 200: Z.Object({
|
|
2983
|
+
message: Z.String(),
|
|
2984
|
+
redirection: Z.String()
|
|
2985
|
+
}) },
|
|
2986
|
+
url: "/payment/checkout"
|
|
2987
|
+
}, rd = {
|
|
2988
|
+
type: "post",
|
|
2989
|
+
response: { 200: Z.Object({
|
|
2990
|
+
message: Z.String(),
|
|
2991
|
+
redirection: Z.String()
|
|
2992
|
+
}) },
|
|
2993
|
+
url: "/payment/portal"
|
|
2994
|
+
}, id = /* @__PURE__ */ Q({
|
|
2995
|
+
create: () => ad,
|
|
2996
|
+
edit: () => cd,
|
|
2997
|
+
list: () => od,
|
|
2998
|
+
proxy: () => ud,
|
|
2999
|
+
remove: () => sd,
|
|
3000
|
+
star: () => ld
|
|
3001
|
+
}), ad = {
|
|
3002
|
+
type: "post",
|
|
3003
|
+
body: Z.Object({
|
|
3004
|
+
icon: Z.String(),
|
|
3005
|
+
template: Z.Union([
|
|
3006
|
+
Z.Literal("default"),
|
|
3007
|
+
Z.Literal("ferris-wheel"),
|
|
3008
|
+
Z.Literal("frontend"),
|
|
3009
|
+
Z.Literal("nuxt"),
|
|
3010
|
+
Z.Literal("testing")
|
|
3011
|
+
]),
|
|
3012
|
+
title: Z.String()
|
|
3013
|
+
}),
|
|
3014
|
+
response: { 200: Z.Object({
|
|
3015
|
+
message: Z.String(),
|
|
3016
|
+
project: $.publicProject
|
|
3017
|
+
}) },
|
|
3018
|
+
url: "/project/create"
|
|
3019
|
+
}, od = {
|
|
3020
|
+
type: "get",
|
|
3021
|
+
params: Z.Object({ type: Z.Union([
|
|
3022
|
+
Z.Literal("mine"),
|
|
3023
|
+
Z.Literal("popular"),
|
|
3024
|
+
Z.Literal("newest"),
|
|
3025
|
+
Z.Literal("random"),
|
|
3026
|
+
Z.Literal("search")
|
|
3027
|
+
]) }),
|
|
3028
|
+
querystring: Z.Object({
|
|
3029
|
+
limit: Z.Optional(Z.Number()),
|
|
3030
|
+
search: Z.Optional(Z.String()),
|
|
3031
|
+
skip: Z.Optional(Z.Number())
|
|
3032
|
+
}),
|
|
3033
|
+
response: { 200: Z.Object({ projects: Z.Array($.publicProject) }) },
|
|
3034
|
+
url: "/project/list/:type"
|
|
3035
|
+
}, sd = {
|
|
3036
|
+
type: "delete",
|
|
3037
|
+
params: Z.Object({ id: Z.String() }),
|
|
3038
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3039
|
+
url: "/project/remove/:id"
|
|
3040
|
+
}, cd = {
|
|
3041
|
+
type: "post",
|
|
3042
|
+
body: $.privateProject,
|
|
3043
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3044
|
+
url: "/project/edit"
|
|
3045
|
+
}, ld = {
|
|
3046
|
+
type: "post",
|
|
3047
|
+
body: Z.Object({
|
|
3048
|
+
id: Z.String(),
|
|
3049
|
+
like: Z.Boolean()
|
|
3050
|
+
}),
|
|
3051
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3052
|
+
url: "/project/star"
|
|
3053
|
+
}, ud = {
|
|
3054
|
+
type: "post",
|
|
3055
|
+
body: Z.Object({
|
|
3056
|
+
body: Z.Optional(Z.Unknown()),
|
|
3057
|
+
headers: Z.Optional(Z.Record(Z.String(), Z.String())),
|
|
3058
|
+
method: Z.Optional(Z.Union([
|
|
3059
|
+
Z.Literal("GET"),
|
|
3060
|
+
Z.Literal("POST"),
|
|
3061
|
+
Z.Literal("PUT"),
|
|
3062
|
+
Z.Literal("DELETE")
|
|
3063
|
+
])),
|
|
3064
|
+
url: Z.String({ format: "uri" })
|
|
3065
|
+
}),
|
|
3066
|
+
response: { 200: Z.Unknown() },
|
|
3067
|
+
url: "/project/proxy"
|
|
3068
|
+
}, dd = /* @__PURE__ */ Q({
|
|
3069
|
+
compile: () => pd,
|
|
3070
|
+
get: () => fd,
|
|
3071
|
+
update: () => md
|
|
3072
|
+
}), fd = {
|
|
3073
|
+
type: "get",
|
|
3074
|
+
params: Z.Object({
|
|
3075
|
+
id: Z.String(),
|
|
3076
|
+
script: Z.String()
|
|
3077
|
+
}),
|
|
3078
|
+
response: { 200: Z.String() },
|
|
3079
|
+
url: "/script/:id/:script"
|
|
3080
|
+
}, pd = {
|
|
3081
|
+
type: "post",
|
|
3082
|
+
params: Z.Object({
|
|
3083
|
+
id: Z.String(),
|
|
3084
|
+
script: Z.String()
|
|
3085
|
+
}),
|
|
3086
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3087
|
+
url: "/script/:id/:script/compile"
|
|
3088
|
+
}, md = {
|
|
3089
|
+
type: "post",
|
|
3090
|
+
body: Z.Object({ autoReload: Z.Optional(Z.Boolean()) }),
|
|
3091
|
+
params: Z.Object({
|
|
3092
|
+
id: Z.String(),
|
|
3093
|
+
script: Z.String()
|
|
3094
|
+
}),
|
|
3095
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3096
|
+
url: "/script/:id/:script/update"
|
|
3097
|
+
}, hd = /* @__PURE__ */ Q({ tick: () => gd }), gd = {
|
|
3098
|
+
type: "post",
|
|
3099
|
+
body: Z.Object({
|
|
3100
|
+
data: Z.Optional(Z.Unknown()),
|
|
3101
|
+
scope: Z.String()
|
|
3102
|
+
}),
|
|
3103
|
+
response: { 200: Z.Object({}) },
|
|
3104
|
+
url: "/turnstile/tick"
|
|
3105
|
+
}, _d = /* @__PURE__ */ Q({
|
|
3106
|
+
acceptTerms: () => bd,
|
|
3107
|
+
confirmAccountDeletion: () => Cd,
|
|
3108
|
+
disconnect: () => wd,
|
|
3109
|
+
get: () => yd,
|
|
3110
|
+
ping: () => vd,
|
|
3111
|
+
requestAccountDeletion: () => Sd,
|
|
3112
|
+
unsubscribe: () => Ed,
|
|
3113
|
+
update: () => xd,
|
|
3114
|
+
waitlist: () => Td
|
|
3115
|
+
}), vd = {
|
|
3116
|
+
type: "get",
|
|
3117
|
+
response: { 200: Z.Object({
|
|
3118
|
+
message: Z.String(),
|
|
3119
|
+
user: Z.Optional($.user)
|
|
3120
|
+
}) },
|
|
3121
|
+
url: "/user/ping"
|
|
3122
|
+
}, yd = {
|
|
3123
|
+
type: "get",
|
|
3124
|
+
response: { 200: $.user },
|
|
3125
|
+
url: "/user"
|
|
3126
|
+
}, bd = {
|
|
3127
|
+
type: "post",
|
|
3128
|
+
body: Z.Object({ termsVersion: Z.String() }),
|
|
3129
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3130
|
+
url: "/user/terms/accept"
|
|
3131
|
+
}, xd = {
|
|
3132
|
+
type: "post",
|
|
3133
|
+
body: Z.Partial($.user),
|
|
3134
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3135
|
+
url: "/user"
|
|
3136
|
+
}, Sd = {
|
|
3137
|
+
type: "post",
|
|
3138
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3139
|
+
url: "/user/account-deletion/request"
|
|
3140
|
+
}, Cd = {
|
|
3141
|
+
type: "delete",
|
|
3142
|
+
params: Z.Object({ token: Z.String() }),
|
|
3143
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3144
|
+
url: "/user/account-deletion/:token"
|
|
3145
|
+
}, wd = {
|
|
3146
|
+
type: "get",
|
|
3147
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3148
|
+
url: "/user/disconnect"
|
|
3149
|
+
}, Td = {
|
|
3150
|
+
type: "post",
|
|
3151
|
+
body: Z.Object({ mail: Z.String({ format: "email" }) }),
|
|
3152
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3153
|
+
url: "/user/waitlist"
|
|
3154
|
+
}, Ed = {
|
|
3155
|
+
type: "post",
|
|
3156
|
+
body: Z.Object({ "List-Unsubscribe": Z.Union([Z.Literal("One-Click"), Z.Object({ value: Z.Literal("One-Click") })]) }),
|
|
3157
|
+
params: Z.Object({ token: Z.String() }),
|
|
3158
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3159
|
+
url: "/user/unsubscribe/:token"
|
|
3160
|
+
}, Dd = {
|
|
3161
|
+
app: fu,
|
|
3162
|
+
auth: hu,
|
|
3163
|
+
challenge: bu,
|
|
3164
|
+
compiler: wu,
|
|
3165
|
+
desktop: Ou,
|
|
3166
|
+
deploy: Au,
|
|
3167
|
+
file: Nu,
|
|
3168
|
+
integrations: Ru,
|
|
3169
|
+
keyConfig: Bu,
|
|
3170
|
+
license: Gu,
|
|
3171
|
+
magiclink: Zu,
|
|
3172
|
+
payment: td,
|
|
3173
|
+
project: id,
|
|
3174
|
+
script: dd,
|
|
3175
|
+
turnstile: hd,
|
|
3176
|
+
user: _d
|
|
3177
|
+
}, Od = {};
|
|
3178
|
+
for (let e of Object.keys(Dd)) {
|
|
3179
|
+
Od[e] = {};
|
|
3180
|
+
for (let t of Object.keys(Dd[e])) {
|
|
3181
|
+
let n = Dd[e][t];
|
|
3182
|
+
Od[e][t] = async (e = {}) => {
|
|
3183
|
+
let t = new URL(eu.getBaseUrl({ dev: n.dev }) + n.url);
|
|
3184
|
+
if (n.params && e.params) for (let r of Object.keys(n.params.properties)) t.href = t.href.replace(`:${r}`, e.params[r]);
|
|
3185
|
+
if (e.querystring) for (let n of Object.keys(e.querystring)) e.querystring[n] && t.searchParams.append(n, e.querystring[n].toString());
|
|
3186
|
+
let r = eu[n.type];
|
|
3187
|
+
n.multipart && (r = eu.multipart);
|
|
3188
|
+
let i = await r(t.href, e.body), a = await kd(i);
|
|
3189
|
+
if (i.status >= 400) throw Error(`Error ${i.status} (${i.statusText}): ${a.message || a}`);
|
|
3190
|
+
return a;
|
|
3191
|
+
};
|
|
3192
|
+
}
|
|
3193
|
+
}
|
|
3194
|
+
function kd(e) {
|
|
3195
|
+
return e.headers.get("Content-Type")?.startsWith("application/json") ? e.json() : e.text();
|
|
3196
|
+
}
|
|
3197
|
+
function Ad(e, ...t) {
|
|
3198
|
+
return e?.type === s.union ? e.elements.length > 0 && e.elements.every((e) => Ad(e, ...t)) : !!(e && t.includes(e.type));
|
|
3199
|
+
}
|
|
3200
|
+
function jd(e) {
|
|
3201
|
+
let t = { ...e };
|
|
3202
|
+
return delete t.default, delete t.name, delete t.optional, t;
|
|
3203
|
+
}
|
|
3204
|
+
function Md(e, t) {
|
|
3205
|
+
return {
|
|
3206
|
+
...jd(e),
|
|
3207
|
+
name: t
|
|
3208
|
+
};
|
|
3209
|
+
}
|
|
3210
|
+
function Nd(e, t, n, r, i) {
|
|
3211
|
+
return {
|
|
3212
|
+
accepts: (e) => Ad(e, ...n),
|
|
3213
|
+
argPrecedence: t + 1,
|
|
3214
|
+
args: (e) => [Md(e, "Value")],
|
|
3215
|
+
evaluate: r,
|
|
3216
|
+
inputPrecedence: t,
|
|
3217
|
+
output: i ?? ((e) => jd(e)),
|
|
3218
|
+
precedence: t,
|
|
3219
|
+
print: (t, [n]) => `${t} ${e} ${n}`
|
|
3220
|
+
};
|
|
3221
|
+
}
|
|
3222
|
+
function Pd(e, t, n, r) {
|
|
3223
|
+
return Nd(e, t, n, r, () => c.boolean());
|
|
3224
|
+
}
|
|
3225
|
+
var Fd = [
|
|
3226
|
+
s.boolean,
|
|
3227
|
+
s.number,
|
|
3228
|
+
s.string,
|
|
3229
|
+
s.unknown
|
|
3230
|
+
], Id = [s.number, s.string];
|
|
3231
|
+
Pd("===", 8, Fd, (e, [t]) => e === t), Pd("!==", 8, Fd, (e, [t]) => e !== t), Pd(">", 9, Id, (e, [t]) => e > t), Pd(">=", 9, Id, (e, [t]) => e >= t), Pd("<", 9, Id, (e, [t]) => e < t), Pd("<=", 9, Id, (e, [t]) => e <= t), Nd("&&", 4, [s.boolean], (e, [t]) => !!(e && t)), Nd("||", 3, Fd, (e, [t]) => e || t), Nd("+", 11, [s.number, s.string], (e, [t]) => e + t), Nd("-", 11, [s.number], (e, [t]) => e - t), Nd("*", 12, [s.number], (e, [t]) => e * t), Nd("/", 12, [s.number], (e, [t]) => e / t), Nd("%", 12, [s.number], (e, [t]) => e % t), s.boolean, s.number, s.unknown, c.string(), s.boolean, s.string, s.unknown, c.number(), s.number, s.string, s.unknown, c.boolean();
|
|
3232
|
+
function Ld(e) {
|
|
3233
|
+
return e;
|
|
3234
|
+
}
|
|
3235
|
+
//#endregion
|
|
3236
|
+
//#region src/logo.svg
|
|
3237
|
+
var Rd = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2027.5.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Calque_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20100%20100'%20style='enable-background:new%200%200%20100%20100;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{clip-path:url(%23SVGID_00000047022933307920725830000016124621795394122405_);fill:url(%23SVGID_00000173862278939040857730000006968173594089226137_);}%20%3c/style%3e%3cg%3e%3cdefs%3e%3cpath%20id='SVGID_1_'%20d='M90.2,51c0,1.8-0.2,3.7-0.5,5.5c-0.2,1.3-1.9,1.9-2.8,0.9L69,39.4C58.5,29,41.5,29,31.1,39.4L13.1,57.4%20c-1,1-2.6,0.4-2.8-0.9c-3.7-22,12.3-43.9,34.9-46.4C69.2,7,91,26.8,90.2,51z%20M55.7,44.4c-3.6-1.5-7.7-1.5-11.3,0%20c-0.6,0.3-1,0.9-1,1.6v42.2c0,0.8,0.6,1.6,1.5,1.7c3.5,0.5,7,0.5,10.5,0c0.8-0.1,1.5-0.8,1.5-1.7V46%20C56.7,45.3,56.3,44.7,55.7,44.4z%20M83.2,70.3c-3.2-3.2-8.2-8.2-11.9-11.9c-1.1-1.1-2.9-0.3-2.9,1.2v23.3c0,1.3,1.4,2.1,2.5,1.4%20c4.9-3,9.2-7.1,12.4-11.9C83.9,71.7,83.8,70.8,83.2,70.3z%20M28.7,58.4C25,62.1,20,67.1,16.8,70.3c-0.6,0.6-0.6,1.5-0.2,2.1%20c3.2,4.8,7.5,8.9,12.4,11.9c1.1,0.7,2.5-0.1,2.5-1.4V59.5C31.6,58,29.8,57.3,28.7,58.4z'/%3e%3c/defs%3e%3cclipPath%20id='SVGID_00000176734456353677071660000015084933141304141444_'%3e%3cuse%20xlink:href='%23SVGID_1_'%20style='overflow:visible;'/%3e%3c/clipPath%3e%3cradialGradient%20id='SVGID_00000019658959786127304010000007409785301083503023_'%20cx='-322.5985'%20cy='231.969'%20r='47.68'%20fx='-327.6757'%20fy='225.8638'%20gradientTransform='matrix(0.7606%200%200%200.7606%20295.3712%20-126.4447)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20style='stop-color:%23187BFF'/%3e%3cstop%20offset='1'%20style='stop-color:%230066F1'/%3e%3c/radialGradient%3e%3crect%20x='9.8'%20y='9.8'%20style='clip-path:url(%23SVGID_00000176734456353677071660000015084933141304141444_);fill:url(%23SVGID_00000019658959786127304010000007409785301083503023_);'%20width='80.4'%20height='80.4'/%3e%3c/g%3e%3c/svg%3e", zd = {
|
|
3238
|
+
prefix: "fas",
|
|
3239
|
+
iconName: "down-left-and-up-right-to-center",
|
|
3240
|
+
icon: [
|
|
3241
|
+
512,
|
|
3242
|
+
512,
|
|
3243
|
+
["compress-alt"],
|
|
3244
|
+
"f422",
|
|
3245
|
+
"M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"
|
|
3246
|
+
]
|
|
3247
|
+
}, Bd = {
|
|
3248
|
+
prefix: "fas",
|
|
3249
|
+
iconName: "wave-square",
|
|
3250
|
+
icon: [
|
|
3251
|
+
640,
|
|
3252
|
+
512,
|
|
3253
|
+
[],
|
|
3254
|
+
"f83e",
|
|
3255
|
+
"M128 64c0-17.7 14.3-32 32-32l160 0c17.7 0 32 14.3 32 32l0 352 96 0 0-160c0-17.7 14.3-32 32-32l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0 0 160c0 17.7-14.3 32-32 32l-160 0c-17.7 0-32-14.3-32-32l0-352-96 0 0 160c0 17.7-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0 0-160z"
|
|
3256
|
+
]
|
|
3257
|
+
}, Vd = {
|
|
3258
|
+
prefix: "fas",
|
|
3259
|
+
iconName: "lightbulb",
|
|
3260
|
+
icon: [
|
|
3261
|
+
384,
|
|
3262
|
+
512,
|
|
3263
|
+
[128161],
|
|
3264
|
+
"f0eb",
|
|
3265
|
+
"M272 384c9.6-31.9 29.5-59.1 49.2-86.2c0 0 0 0 0 0c5.2-7.1 10.4-14.2 15.4-21.4c19.8-28.5 31.4-63 31.4-100.3C368 78.8 289.2 0 192 0S16 78.8 16 176c0 37.3 11.6 71.9 31.4 100.3c5 7.2 10.2 14.3 15.4 21.4c0 0 0 0 0 0c19.8 27.1 39.7 54.4 49.2 86.2l160 0zM192 512c44.2 0 80-35.8 80-80l0-16-160 0 0 16c0 44.2 35.8 80 80 80zM112 176c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112c8.8 0 16 7.2 16 16s-7.2 16-16 16c-44.2 0-80 35.8-80 80z"
|
|
3266
|
+
]
|
|
3267
|
+
}, Hd = {
|
|
3268
|
+
prefix: "fas",
|
|
3269
|
+
iconName: "feather",
|
|
3270
|
+
icon: [
|
|
3271
|
+
512,
|
|
3272
|
+
512,
|
|
3273
|
+
[129718],
|
|
3274
|
+
"f52d",
|
|
3275
|
+
"M278.5 215.6L23 471c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l57-57 68 0c49.7 0 97.9-14.4 139-41c11.1-7.2 5.5-23-7.8-23c-5.1 0-9.2-4.1-9.2-9.2c0-4.1 2.7-7.6 6.5-8.8l81-24.3c2.5-.8 4.8-2.1 6.7-4l22.4-22.4c10.1-10.1 2.9-27.3-11.3-27.3l-32.2 0c-5.1 0-9.2-4.1-9.2-9.2c0-4.1 2.7-7.6 6.5-8.8l112-33.6c4-1.2 7.4-3.9 9.3-7.7C506.4 207.6 512 184.1 512 160c0-41-16.3-80.3-45.3-109.3l-5.5-5.5C432.3 16.3 393 0 352 0s-80.3 16.3-109.3 45.3L139 149C91 197 64 262.1 64 330l0 55.3L253.6 195.8c6.2-6.2 16.4-6.2 22.6 0c5.4 5.4 6.1 13.6 2.2 19.8z"
|
|
3276
|
+
]
|
|
3277
|
+
}, Ud = {
|
|
3278
|
+
prefix: "fas",
|
|
3279
|
+
iconName: "sparkles",
|
|
3280
|
+
icon: [
|
|
3281
|
+
512,
|
|
3282
|
+
512,
|
|
3283
|
+
[10024],
|
|
3284
|
+
"f890",
|
|
3285
|
+
"M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"
|
|
3286
|
+
]
|
|
3287
|
+
}, Wd = {
|
|
3288
|
+
prefix: "fas",
|
|
3289
|
+
iconName: "bullseye",
|
|
3290
|
+
icon: [
|
|
3291
|
+
512,
|
|
3292
|
+
512,
|
|
3293
|
+
[],
|
|
3294
|
+
"f140",
|
|
3295
|
+
"M448 256A192 192 0 1 0 64 256a192 192 0 1 0 384 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm256 80a80 80 0 1 0 0-160 80 80 0 1 0 0 160zm0-224a144 144 0 1 1 0 288 144 144 0 1 1 0-288zM224 256a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"
|
|
3296
|
+
]
|
|
3297
|
+
}, Gd = {
|
|
3298
|
+
prefix: "fas",
|
|
3299
|
+
iconName: "wand-magic-sparkles",
|
|
3300
|
+
icon: [
|
|
3301
|
+
576,
|
|
3302
|
+
512,
|
|
3303
|
+
["magic-wand-sparkles"],
|
|
3304
|
+
"e2ca",
|
|
3305
|
+
"M234.7 42.7L197 56.8c-3 1.1-5 4-5 7.2s2 6.1 5 7.2l37.7 14.1L248.8 123c1.1 3 4 5 7.2 5s6.1-2 7.2-5l14.1-37.7L315 71.2c3-1.1 5-4 5-7.2s-2-6.1-5-7.2L277.3 42.7 263.2 5c-1.1-3-4-5-7.2-5s-6.1 2-7.2 5L234.7 42.7zM46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0L529.9 116.5c18.7-18.7 18.7-49.1 0-67.9L495.3 14.1c-18.7-18.7-49.1-18.7-67.9 0L46.1 395.4zM484.6 82.6l-105 105-23.3-23.3 105-105 23.3 23.3zM7.5 117.2C3 118.9 0 123.2 0 128s3 9.1 7.5 10.8L64 160l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L128 160l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L128 96 106.8 39.5C105.1 35 100.8 32 96 32s-9.1 3-10.8 7.5L64 96 7.5 117.2zm352 256c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L416 416l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L480 416l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L480 352l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L416 352l-56.5 21.2z"
|
|
3306
|
+
]
|
|
3307
|
+
}, Kd = {
|
|
3308
|
+
prefix: "fas",
|
|
3309
|
+
iconName: "repeat",
|
|
3310
|
+
icon: [
|
|
3311
|
+
512,
|
|
3312
|
+
512,
|
|
3313
|
+
[128257],
|
|
3314
|
+
"f363",
|
|
3315
|
+
"M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96l160 0 0 32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32l0 32L160 64C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96l-160 0 0-32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-32 160 0c88.4 0 160-71.6 160-160z"
|
|
3316
|
+
]
|
|
3317
|
+
}, qd = {
|
|
3318
|
+
prefix: "fas",
|
|
3319
|
+
iconName: "arrow-pointer",
|
|
3320
|
+
icon: [
|
|
3321
|
+
320,
|
|
3322
|
+
512,
|
|
3323
|
+
["mouse-pointer"],
|
|
3324
|
+
"f245",
|
|
3325
|
+
"M0 55.2L0 426c0 12.2 9.9 22 22 22c6.3 0 12.4-2.7 16.6-7.5L121.2 346l58.1 116.3c7.9 15.8 27.1 22.2 42.9 14.3s22.2-27.1 14.3-42.9L179.8 320l118.1 0c12.2 0 22.1-9.9 22.1-22.1c0-6.3-2.7-12.3-7.4-16.5L38.6 37.9C34.3 34.1 28.9 32 23.2 32C10.4 32 0 42.4 0 55.2z"
|
|
3326
|
+
]
|
|
3327
|
+
}, Jd = {
|
|
3328
|
+
prefix: "fas",
|
|
3329
|
+
iconName: "right-to-bracket",
|
|
3330
|
+
icon: [
|
|
3331
|
+
512,
|
|
3332
|
+
512,
|
|
3333
|
+
["sign-in-alt"],
|
|
3334
|
+
"f2f6",
|
|
3335
|
+
"M217.9 105.9L340.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L217.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1L32 320c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM352 416l64 0c17.7 0 32-14.3 32-32l0-256c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c53 0 96 43 96 96l0 256c0 53-43 96-96 96l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"
|
|
3336
|
+
]
|
|
3337
|
+
}, Yd = {
|
|
3338
|
+
prefix: "fas",
|
|
3339
|
+
iconName: "heart-pulse",
|
|
3340
|
+
icon: [
|
|
3341
|
+
512,
|
|
3342
|
+
512,
|
|
3343
|
+
["heartbeat"],
|
|
3344
|
+
"f21e",
|
|
3345
|
+
"M228.3 469.1L47.6 300.4c-4.2-3.9-8.2-8.1-11.9-12.4l87 0c22.6 0 43-13.6 51.7-34.5l10.5-25.2 49.3 109.5c3.8 8.5 12.1 14 21.4 14.1s17.8-5 22-13.3L320 253.7l1.7 3.4c9.5 19 28.9 31 50.1 31l104.5 0c-3.7 4.3-7.7 8.5-11.9 12.4L283.7 469.1c-7.5 7-17.4 10.9-27.7 10.9s-20.2-3.9-27.7-10.9zM503.7 240l-132 0c-3 0-5.8-1.7-7.2-4.4l-23.2-46.3c-4.1-8.1-12.4-13.3-21.5-13.3s-17.4 5.1-21.5 13.3l-41.4 82.8L205.9 158.2c-3.9-8.7-12.7-14.3-22.2-14.1s-18.1 5.9-21.8 14.8l-31.8 76.3c-1.2 3-4.2 4.9-7.4 4.9L16 240c-2.6 0-5 .4-7.3 1.1C3 225.2 0 208.2 0 190.9l0-5.8c0-69.9 50.5-129.5 119.4-141C165 36.5 211.4 51.4 244 84l12 12 12-12c32.6-32.6 79-47.5 124.6-39.9C461.5 55.6 512 115.2 512 185.1l0 5.8c0 16.9-2.8 33.5-8.3 49.1z"
|
|
3346
|
+
]
|
|
3347
|
+
}, Xd = {
|
|
3348
|
+
prefix: "fas",
|
|
3349
|
+
iconName: "toggle-on",
|
|
3350
|
+
icon: [
|
|
3351
|
+
576,
|
|
3352
|
+
512,
|
|
3353
|
+
[],
|
|
3354
|
+
"f205",
|
|
3355
|
+
"M192 64C86 64 0 150 0 256S86 448 192 448l192 0c106 0 192-86 192-192s-86-192-192-192L192 64zm192 96a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"
|
|
3356
|
+
]
|
|
3357
|
+
}, Zd = {
|
|
3358
|
+
prefix: "fas",
|
|
3359
|
+
iconName: "rotate-left",
|
|
3360
|
+
icon: [
|
|
3361
|
+
512,
|
|
3362
|
+
512,
|
|
3363
|
+
[
|
|
3364
|
+
"rotate-back",
|
|
3365
|
+
"rotate-backward",
|
|
3366
|
+
"undo-alt"
|
|
3367
|
+
],
|
|
3368
|
+
"f2ea",
|
|
3369
|
+
"M48.5 224L40 224c-13.3 0-24-10.7-24-24L16 72c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2L98.6 96.6c87.6-86.5 228.7-86.2 315.8 1c87.5 87.5 87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3c-62.2-62.2-162.7-62.5-225.3-1L185 183c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8L48.5 224z"
|
|
3370
|
+
]
|
|
3371
|
+
}, Qd = {
|
|
3372
|
+
prefix: "fas",
|
|
3373
|
+
iconName: "scroll",
|
|
3374
|
+
icon: [
|
|
3375
|
+
576,
|
|
3376
|
+
512,
|
|
3377
|
+
[128220],
|
|
3378
|
+
"f70e",
|
|
3379
|
+
"M0 80l0 48c0 17.7 14.3 32 32 32l16 0 48 0 0-80c0-26.5-21.5-48-48-48S0 53.5 0 80zM112 32c10 13.4 16 30 16 48l0 304c0 35.3 28.7 64 64 64s64-28.7 64-64l0-5.3c0-32.4 26.3-58.7 58.7-58.7L480 320l0-192c0-53-43-96-96-96L112 32zM464 480c61.9 0 112-50.1 112-112c0-8.8-7.2-16-16-16l-245.3 0c-14.7 0-26.7 11.9-26.7 26.7l0 5.3c0 53-43 96-96 96l176 0 96 0z"
|
|
3380
|
+
]
|
|
3381
|
+
}, $d = {
|
|
3382
|
+
prefix: "fas",
|
|
3383
|
+
iconName: "arrows-left-right",
|
|
3384
|
+
icon: [
|
|
3385
|
+
512,
|
|
3386
|
+
512,
|
|
3387
|
+
["arrows-h"],
|
|
3388
|
+
"f07e",
|
|
3389
|
+
"M406.6 374.6l96-96c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224l-293.5 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288l293.5 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"
|
|
3390
|
+
]
|
|
3391
|
+
}, ef = {
|
|
3392
|
+
prefix: "fas",
|
|
3393
|
+
iconName: "arrows-rotate",
|
|
3394
|
+
icon: [
|
|
3395
|
+
512,
|
|
3396
|
+
512,
|
|
3397
|
+
[
|
|
3398
|
+
128472,
|
|
3399
|
+
"refresh",
|
|
3400
|
+
"sync"
|
|
3401
|
+
],
|
|
3402
|
+
"f021",
|
|
3403
|
+
"M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160 352 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l111.5 0c0 0 0 0 0 0l.4 0c17.7 0 32-14.3 32-32l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1L16 432c0 17.7 14.3 32 32 32s32-14.3 32-32l0-35.1 17.6 17.5c0 0 0 0 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.8c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352l34.4 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L48.4 288c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"
|
|
3404
|
+
]
|
|
3405
|
+
}, tf = {
|
|
3406
|
+
prefix: "fas",
|
|
3407
|
+
iconName: "chart-line",
|
|
3408
|
+
icon: [
|
|
3409
|
+
512,
|
|
3410
|
+
512,
|
|
3411
|
+
["line-chart"],
|
|
3412
|
+
"f201",
|
|
3413
|
+
"M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"
|
|
3414
|
+
]
|
|
3415
|
+
}, nf = {
|
|
3416
|
+
prefix: "fas",
|
|
3417
|
+
iconName: "arrow-right",
|
|
3418
|
+
icon: [
|
|
3419
|
+
448,
|
|
3420
|
+
512,
|
|
3421
|
+
[8594],
|
|
3422
|
+
"f061",
|
|
3423
|
+
"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"
|
|
3424
|
+
]
|
|
3425
|
+
}, rf = {
|
|
3426
|
+
prefix: "fas",
|
|
3427
|
+
iconName: "eye",
|
|
3428
|
+
icon: [
|
|
3429
|
+
576,
|
|
3430
|
+
512,
|
|
3431
|
+
[128065],
|
|
3432
|
+
"f06e",
|
|
3433
|
+
"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"
|
|
3434
|
+
]
|
|
3435
|
+
}, af = {
|
|
3436
|
+
prefix: "fas",
|
|
3437
|
+
iconName: "hand-pointer",
|
|
3438
|
+
icon: [
|
|
3439
|
+
448,
|
|
3440
|
+
512,
|
|
3441
|
+
[],
|
|
3442
|
+
"f25a",
|
|
3443
|
+
"M128 40c0-22.1 17.9-40 40-40s40 17.9 40 40l0 148.2c8.5-7.6 19.7-12.2 32-12.2c20.6 0 38.2 13 45 31.2c8.8-9.3 21.2-15.2 35-15.2c25.3 0 46 19.5 47.9 44.3c8.5-7.7 19.8-12.3 32.1-12.3c26.5 0 48 21.5 48 48l0 48 0 16 0 48c0 70.7-57.3 128-128 128l-16 0-64 0-.1 0-5.2 0c-5 0-9.9-.3-14.7-1c-55.3-5.6-106.2-34-140-79L8 336c-13.3-17.7-9.7-42.7 8-56s42.7-9.7 56 8l56 74.7L128 40zM240 304c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-96zm48-16c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-96c0-8.8-7.2-16-16-16zm80 16c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-96z"
|
|
3444
|
+
]
|
|
3445
|
+
}, of = {
|
|
3446
|
+
prefix: "fas",
|
|
3447
|
+
iconName: "arrow-left",
|
|
3448
|
+
icon: [
|
|
3449
|
+
448,
|
|
3450
|
+
512,
|
|
3451
|
+
[8592],
|
|
3452
|
+
"f060",
|
|
3453
|
+
"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"
|
|
3454
|
+
]
|
|
3455
|
+
}, sf = {
|
|
3456
|
+
prefix: "fas",
|
|
3457
|
+
iconName: "sliders",
|
|
3458
|
+
icon: [
|
|
3459
|
+
512,
|
|
3460
|
+
512,
|
|
3461
|
+
["sliders-h"],
|
|
3462
|
+
"f1de",
|
|
3463
|
+
"M0 416c0 17.7 14.3 32 32 32l54.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-246.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 384c-17.7 0-32 14.3-32 32zm128 0a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM320 256a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32-80c-32.8 0-61 19.7-73.3 48L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l246.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48l54.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-54.7 0c-12.3-28.3-40.5-48-73.3-48zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm73.3-64C253 35.7 224.8 16 192 16s-61 19.7-73.3 48L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l86.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 128c17.7 0 32-14.3 32-32s-14.3-32-32-32L265.3 64z"
|
|
3464
|
+
]
|
|
3465
|
+
}, cf = {
|
|
3466
|
+
prefix: "fas",
|
|
3467
|
+
iconName: "rotate-right",
|
|
3468
|
+
icon: [
|
|
3469
|
+
512,
|
|
3470
|
+
512,
|
|
3471
|
+
["redo-alt", "rotate-forward"],
|
|
3472
|
+
"f2f9",
|
|
3473
|
+
"M463.5 224l8.5 0c13.3 0 24-10.7 24-24l0-128c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8l119.5 0z"
|
|
3474
|
+
]
|
|
3475
|
+
}, lf = {
|
|
3476
|
+
prefix: "fas",
|
|
3477
|
+
iconName: "arrow-down",
|
|
3478
|
+
icon: [
|
|
3479
|
+
384,
|
|
3480
|
+
512,
|
|
3481
|
+
[8595],
|
|
3482
|
+
"f063",
|
|
3483
|
+
"M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"
|
|
3484
|
+
]
|
|
3485
|
+
}, uf = {
|
|
3486
|
+
prefix: "fas",
|
|
3487
|
+
iconName: "droplet",
|
|
3488
|
+
icon: [
|
|
3489
|
+
384,
|
|
3490
|
+
512,
|
|
3491
|
+
[128167, "tint"],
|
|
3492
|
+
"f043",
|
|
3493
|
+
"M192 512C86 512 0 426 0 320C0 228.8 130.2 57.7 166.6 11.7C172.6 4.2 181.5 0 191.1 0l1.8 0c9.6 0 18.5 4.2 24.5 11.7C253.8 57.7 384 228.8 384 320c0 106-86 192-192 192zM96 336c0-8.8-7.2-16-16-16s-16 7.2-16 16c0 61.9 50.1 112 112 112c8.8 0 16-7.2 16-16s-7.2-16-16-16c-44.2 0-80-35.8-80-80z"
|
|
3494
|
+
]
|
|
3495
|
+
}, df = {
|
|
3496
|
+
prefix: "fas",
|
|
3497
|
+
iconName: "play",
|
|
3498
|
+
icon: [
|
|
3499
|
+
384,
|
|
3500
|
+
512,
|
|
3501
|
+
[9654],
|
|
3502
|
+
"f04b",
|
|
3503
|
+
"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"
|
|
3504
|
+
]
|
|
3505
|
+
}, ff = {
|
|
3506
|
+
prefix: "fas",
|
|
3507
|
+
iconName: "arrow-up",
|
|
3508
|
+
icon: [
|
|
3509
|
+
384,
|
|
3510
|
+
512,
|
|
3511
|
+
[8593],
|
|
3512
|
+
"f062",
|
|
3513
|
+
"M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"
|
|
3514
|
+
]
|
|
3515
|
+
}, pf = {
|
|
3516
|
+
prefix: "fas",
|
|
3517
|
+
iconName: "circle-half-stroke",
|
|
3518
|
+
icon: [
|
|
3519
|
+
512,
|
|
3520
|
+
512,
|
|
3521
|
+
[9680, "adjust"],
|
|
3522
|
+
"f042",
|
|
3523
|
+
"M448 256c0-106-86-192-192-192l0 384c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"
|
|
3524
|
+
]
|
|
3525
|
+
}, mf = {
|
|
3526
|
+
prefix: "fas",
|
|
3527
|
+
iconName: "expand",
|
|
3528
|
+
icon: [
|
|
3529
|
+
448,
|
|
3530
|
+
512,
|
|
3531
|
+
[],
|
|
3532
|
+
"f065",
|
|
3533
|
+
"M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"
|
|
3534
|
+
]
|
|
3535
|
+
}, hf = {
|
|
3536
|
+
prefix: "fas",
|
|
3537
|
+
iconName: "arrow-up-from-line",
|
|
3538
|
+
icon: [
|
|
3539
|
+
384,
|
|
3540
|
+
512,
|
|
3541
|
+
[8613, "arrow-from-bottom"],
|
|
3542
|
+
"f342",
|
|
3543
|
+
"M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.3l0 66.7 0 112c0 17.7 14.3 32 32 32s32-14.3 32-32l0-112 0-66.7 73.4 73.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-128-128zM32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 416z"
|
|
3544
|
+
]
|
|
3545
|
+
}, gf = {
|
|
3546
|
+
prefix: "fas",
|
|
3547
|
+
iconName: "up-right-and-down-left-from-center",
|
|
3548
|
+
icon: [
|
|
3549
|
+
512,
|
|
3550
|
+
512,
|
|
3551
|
+
["expand-alt"],
|
|
3552
|
+
"f424",
|
|
3553
|
+
"M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"
|
|
3554
|
+
]
|
|
3555
|
+
}, _f = { class: "motion-buttons" }, vf = /*@__PURE__*/ le({
|
|
3556
|
+
__name: "LMotionButtons",
|
|
3557
|
+
props: {
|
|
3558
|
+
fill: { type: Boolean },
|
|
3559
|
+
modelValue: {},
|
|
3560
|
+
options: {}
|
|
3561
|
+
},
|
|
3562
|
+
emits: ["update:modelValue"],
|
|
3563
|
+
setup(e) {
|
|
3564
|
+
return (t, n) => (fe(), ie("div", _f, [(fe(!0), ie(ee, null, me(e.options, (n) => (fe(), ne(_e(Ce), {
|
|
3565
|
+
key: n.id,
|
|
3566
|
+
class: de(["button-wrapper", { fill: e.fill }]),
|
|
3567
|
+
title: n.title
|
|
3568
|
+
}, {
|
|
3569
|
+
default: ye(() => [ce(_e(be), {
|
|
3570
|
+
class: "button",
|
|
3571
|
+
icon: n.icon,
|
|
3572
|
+
primary: n.id === e.modelValue,
|
|
3573
|
+
small: "",
|
|
3574
|
+
square: !e.fill,
|
|
3575
|
+
wide: e.fill,
|
|
3576
|
+
onClick: (e) => t.$emit("update:modelValue", n.id)
|
|
3577
|
+
}, {
|
|
3578
|
+
default: ye(() => [he(t.$slots, n.id, {}, void 0, !0)]),
|
|
3579
|
+
_: 2
|
|
3580
|
+
}, 1032, [
|
|
3581
|
+
"icon",
|
|
3582
|
+
"primary",
|
|
3583
|
+
"square",
|
|
3584
|
+
"wide",
|
|
3585
|
+
"onClick"
|
|
3586
|
+
])]),
|
|
3587
|
+
_: 2
|
|
3588
|
+
}, 1032, ["class", "title"]))), 128))]));
|
|
3589
|
+
}
|
|
3590
|
+
}), yf = (e, t) => {
|
|
3591
|
+
let n = e.__vccOpts || e;
|
|
3592
|
+
for (let [e, r] of t) n[e] = r;
|
|
3593
|
+
return n;
|
|
3594
|
+
}, bf = /*#__PURE__*/ yf(vf, [["__scopeId", "data-v-af0f8a4b"]]), xf = { class: "motion-card" }, Sf = { class: "header" }, Cf = { class: "title" }, wf = {
|
|
3595
|
+
key: 0,
|
|
3596
|
+
class: "hint"
|
|
3597
|
+
}, Tf = /*#__PURE__*/ yf(/* @__PURE__ */ le({
|
|
3598
|
+
__name: "LMotionCard",
|
|
3599
|
+
props: {
|
|
3600
|
+
hint: {},
|
|
3601
|
+
icon: {},
|
|
3602
|
+
title: {}
|
|
3603
|
+
},
|
|
3604
|
+
setup(e) {
|
|
3605
|
+
return (t, n) => (fe(), ie("div", xf, [ae("div", Sf, [ae("div", Cf, [
|
|
3606
|
+
ce(_e(xe), {
|
|
3607
|
+
class: "icon",
|
|
3608
|
+
icon: e.icon
|
|
3609
|
+
}, null, 8, ["icon"]),
|
|
3610
|
+
se(" " + ge(e.title) + " ", 1),
|
|
3611
|
+
e.hint ? (fe(), ie("span", wf, ge(e.hint), 1)) : re("", !0)
|
|
3612
|
+
]), he(t.$slots, "header", {}, void 0, !0)]), he(t.$slots, "default", {}, void 0, !0)]));
|
|
3613
|
+
}
|
|
3614
|
+
}), [["__scopeId", "data-v-0dfc3339"]]), Ef = { class: "motion-panel" }, Df = { class: "cards" }, Of = {
|
|
3615
|
+
class: "curve",
|
|
3616
|
+
viewBox: "0 0 24 24"
|
|
3617
|
+
}, kf = ["points"], Af = /*#__PURE__*/ yf(/* @__PURE__ */ le({
|
|
3618
|
+
__name: "LMotionPanel",
|
|
3619
|
+
props: {
|
|
3620
|
+
getElements: { type: Function },
|
|
3621
|
+
modelValue: {},
|
|
3622
|
+
schema: {}
|
|
3623
|
+
},
|
|
3624
|
+
emits: ["update:modelValue"],
|
|
3625
|
+
setup(e, { emit: r }) {
|
|
3626
|
+
let o = e, ee = r, se = {
|
|
3627
|
+
blur: uf,
|
|
3628
|
+
fade: pf,
|
|
3629
|
+
grow: gf,
|
|
3630
|
+
"slide-down": lf,
|
|
3631
|
+
float: Hd,
|
|
3632
|
+
"slide-left": of,
|
|
3633
|
+
"slide-right": nf,
|
|
3634
|
+
blink: Vd,
|
|
3635
|
+
"slide-up": ff,
|
|
3636
|
+
lift: hf,
|
|
3637
|
+
pulse: Yd,
|
|
3638
|
+
shrink: zd,
|
|
3639
|
+
zoom: mf,
|
|
3640
|
+
shake: $d,
|
|
3641
|
+
spin: ef,
|
|
3642
|
+
tilt: cf,
|
|
3643
|
+
wiggle: Bd
|
|
3644
|
+
}, le = [
|
|
3645
|
+
{
|
|
3646
|
+
icon: df,
|
|
3647
|
+
id: "mount",
|
|
3648
|
+
title: "On mount"
|
|
3649
|
+
},
|
|
3650
|
+
{
|
|
3651
|
+
icon: rf,
|
|
3652
|
+
id: "visible",
|
|
3653
|
+
title: "When visible"
|
|
3654
|
+
},
|
|
3655
|
+
{
|
|
3656
|
+
icon: Qd,
|
|
3657
|
+
id: "scroll",
|
|
3658
|
+
title: "Synced with scroll"
|
|
3659
|
+
},
|
|
3660
|
+
{
|
|
3661
|
+
icon: qd,
|
|
3662
|
+
id: "hover",
|
|
3663
|
+
title: "On hover"
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
icon: af,
|
|
3667
|
+
id: "press",
|
|
3668
|
+
title: "On press"
|
|
3669
|
+
},
|
|
3670
|
+
{
|
|
3671
|
+
icon: Wd,
|
|
3672
|
+
id: "focus",
|
|
3673
|
+
title: "On focus"
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
icon: Xd,
|
|
3677
|
+
id: "state",
|
|
3678
|
+
title: "From a state"
|
|
3679
|
+
}
|
|
3680
|
+
], ue = [
|
|
3681
|
+
{
|
|
3682
|
+
icon: Jd,
|
|
3683
|
+
id: "enter",
|
|
3684
|
+
title: "Enter"
|
|
3685
|
+
},
|
|
3686
|
+
{
|
|
3687
|
+
icon: Ud,
|
|
3688
|
+
id: "emphasis",
|
|
3689
|
+
title: "Emphasis"
|
|
3690
|
+
},
|
|
3691
|
+
{
|
|
3692
|
+
icon: Kd,
|
|
3693
|
+
id: "ambient",
|
|
3694
|
+
title: "Ambient"
|
|
3695
|
+
},
|
|
3696
|
+
{
|
|
3697
|
+
icon: sf,
|
|
3698
|
+
id: "custom",
|
|
3699
|
+
title: "Custom from/to"
|
|
3700
|
+
}
|
|
3701
|
+
], de = n.map((e) => ({
|
|
3702
|
+
id: e,
|
|
3703
|
+
title: e
|
|
3704
|
+
})), he = pe(be(o.modelValue.preset));
|
|
3705
|
+
ve(() => o.modelValue.preset, (e) => {
|
|
3706
|
+
he.value = be(e);
|
|
3707
|
+
});
|
|
3708
|
+
let ge = te(() => Object.entries(t).filter(([, e]) => e.category === he.value).map(([e]) => ({
|
|
3709
|
+
icon: se[e],
|
|
3710
|
+
id: e,
|
|
3711
|
+
title: we(e)
|
|
3712
|
+
})));
|
|
3713
|
+
function be(e) {
|
|
3714
|
+
return e === "custom" ? "custom" : t[e]?.category ?? "enter";
|
|
3715
|
+
}
|
|
3716
|
+
function xe(e) {
|
|
3717
|
+
he.value = e;
|
|
3718
|
+
let n = e === "custom" ? "custom" : Object.keys(t).find((n) => t[n].category === e);
|
|
3719
|
+
n && be(o.modelValue.preset) !== e && Ce("preset", n);
|
|
3720
|
+
}
|
|
3721
|
+
function Ce(e, t) {
|
|
3722
|
+
ee("update:modelValue", {
|
|
3723
|
+
...o.modelValue,
|
|
3724
|
+
[e]: t
|
|
3725
|
+
});
|
|
3726
|
+
}
|
|
3727
|
+
function we(e) {
|
|
3728
|
+
return e.replaceAll("-", " ").replace(/^\w/, (e) => e.toUpperCase());
|
|
3729
|
+
}
|
|
3730
|
+
function Te(e) {
|
|
3731
|
+
let t = a[e], n = typeof t(.5) == "function" ? t() : t;
|
|
3732
|
+
return Array.from({ length: 33 }, (e, t) => {
|
|
3733
|
+
let r = t / 32;
|
|
3734
|
+
return `${3 + r * 18},${17 - n(r) * 10}`;
|
|
3735
|
+
}).join(" ");
|
|
3736
|
+
}
|
|
3737
|
+
return (t, r) => (fe(), ie("div", Ef, [ce(_e(Se), { title: "Trigger" }, {
|
|
3738
|
+
default: ye(() => [ce(bf, {
|
|
3739
|
+
fill: "",
|
|
3740
|
+
"model-value": e.modelValue.trigger,
|
|
3741
|
+
options: le,
|
|
3742
|
+
"onUpdate:modelValue": r[0] ||= (e) => Ce("trigger", e)
|
|
3743
|
+
}, null, 8, ["model-value"])]),
|
|
3744
|
+
_: 1
|
|
3745
|
+
}), ae("div", Df, [ce(Tf, {
|
|
3746
|
+
hint: we(e.modelValue.preset),
|
|
3747
|
+
icon: _e(Gd),
|
|
3748
|
+
title: "Animation"
|
|
3749
|
+
}, {
|
|
3750
|
+
header: ye(() => [ce(bf, {
|
|
3751
|
+
"model-value": he.value,
|
|
3752
|
+
options: ue,
|
|
3753
|
+
"onUpdate:modelValue": xe
|
|
3754
|
+
}, null, 8, ["model-value"])]),
|
|
3755
|
+
default: ye(() => [he.value === "custom" ? re("", !0) : (fe(), ne(bf, {
|
|
3756
|
+
key: 0,
|
|
3757
|
+
fill: "",
|
|
3758
|
+
"model-value": e.modelValue.preset,
|
|
3759
|
+
options: ge.value,
|
|
3760
|
+
"onUpdate:modelValue": r[1] ||= (e) => Ce("preset", e)
|
|
3761
|
+
}, null, 8, ["model-value", "options"]))]),
|
|
3762
|
+
_: 1
|
|
3763
|
+
}, 8, ["hint", "icon"]), ce(Tf, {
|
|
3764
|
+
hint: e.modelValue.ease ?? `${_e(i).ease} (default)`,
|
|
3765
|
+
icon: _e(tf),
|
|
3766
|
+
title: "Easing"
|
|
3767
|
+
}, {
|
|
3768
|
+
default: ye(() => [ce(bf, {
|
|
3769
|
+
fill: "",
|
|
3770
|
+
"model-value": e.modelValue.ease ?? _e(i).ease,
|
|
3771
|
+
options: _e(de),
|
|
3772
|
+
"onUpdate:modelValue": r[2] ||= (e) => Ce("ease", e)
|
|
3773
|
+
}, oe({ _: 2 }, [me(_e(n), (e) => ({
|
|
3774
|
+
name: e,
|
|
3775
|
+
fn: ye(() => [(fe(), ie("svg", Of, [ae("polyline", { points: Te(e) }, null, 8, kf)]))])
|
|
3776
|
+
}))]), 1032, ["model-value", "options"])]),
|
|
3777
|
+
_: 1
|
|
3778
|
+
}, 8, ["hint", "icon"])])]));
|
|
3779
|
+
}
|
|
3780
|
+
}), [["__scopeId", "data-v-f1461af3"]]), jf = {
|
|
3781
|
+
name: "@luna-park/plugin-motion",
|
|
3782
|
+
version: "1.0.1",
|
|
3783
|
+
private: !1,
|
|
3784
|
+
description: "Motion plugin for Luna Park.",
|
|
3785
|
+
keywords: [
|
|
3786
|
+
"luna-park",
|
|
3787
|
+
"plugin",
|
|
3788
|
+
"motion",
|
|
3789
|
+
"animation"
|
|
3790
|
+
],
|
|
3791
|
+
homepage: "https://luna-park.app",
|
|
3792
|
+
repository: {
|
|
3793
|
+
type: "git",
|
|
3794
|
+
url: "https://github.com/lunapark/plugin-motion"
|
|
3795
|
+
},
|
|
3796
|
+
author: {
|
|
3797
|
+
name: "Luna Park",
|
|
3798
|
+
url: "https://luna-park.app"
|
|
3799
|
+
},
|
|
3800
|
+
type: "module",
|
|
3801
|
+
exports: {
|
|
3802
|
+
".": { import: "./dist/index.js" },
|
|
3803
|
+
"./runtime": { import: "./dist/runtime.js" }
|
|
3804
|
+
},
|
|
3805
|
+
module: "./dist/index.js",
|
|
3806
|
+
files: ["dist/**"],
|
|
3807
|
+
scripts: {
|
|
3808
|
+
build: "vite build",
|
|
3809
|
+
dev: "vite build --watch",
|
|
3810
|
+
preview: "luna-preview"
|
|
3811
|
+
},
|
|
3812
|
+
dependencies: {
|
|
3813
|
+
"@luna-park/design": "link:..\\core\\packages\\design",
|
|
3814
|
+
animejs: "^4.5.0",
|
|
3815
|
+
vue: "^3.5.43"
|
|
3816
|
+
},
|
|
3817
|
+
devDependencies: {
|
|
3818
|
+
"@fortawesome/pro-solid-svg-icons": "link:..\\..\\@fortawesome\\pro-solid-svg-icons",
|
|
3819
|
+
"@luna-park/eslint-config": "^1.3.0",
|
|
3820
|
+
"@luna-park/plugin": "link:..\\core\\packages\\plugin",
|
|
3821
|
+
"@types/node": "^26.6.3",
|
|
3822
|
+
"@vitejs/plugin-vue": "^6.0.9",
|
|
3823
|
+
"@vue/tsconfig": "^0.9.1",
|
|
3824
|
+
eslint: "^10.11.0",
|
|
3825
|
+
globals: "^17.12.0",
|
|
3826
|
+
typescript: "^6.0.3",
|
|
3827
|
+
"typescript-eslint": "^8.71.0",
|
|
3828
|
+
vite: "^8.3.1",
|
|
3829
|
+
"vite-plugin-css-injected-by-js": "^5.0.2",
|
|
3830
|
+
"vue-tsc": "^3.3.11"
|
|
3831
|
+
},
|
|
3832
|
+
peerDependencies: {
|
|
3833
|
+
"@luna-park/design": "^1.3.0",
|
|
3834
|
+
vue: "^3.5.24"
|
|
3835
|
+
}
|
|
3836
|
+
}, Mf = [
|
|
3837
|
+
"mount",
|
|
3838
|
+
"visible",
|
|
3839
|
+
"scroll",
|
|
3840
|
+
"hover",
|
|
3841
|
+
"press",
|
|
3842
|
+
"focus",
|
|
3843
|
+
"state"
|
|
3844
|
+
];
|
|
3845
|
+
function Nf(e) {
|
|
3846
|
+
return c.object({
|
|
3847
|
+
blur: c.number({
|
|
3848
|
+
default: 0,
|
|
3849
|
+
name: "Blur",
|
|
3850
|
+
options: { suffix: "px" }
|
|
3851
|
+
}),
|
|
3852
|
+
opacity: c.number({
|
|
3853
|
+
default: 1,
|
|
3854
|
+
name: "Opacity"
|
|
3855
|
+
}),
|
|
3856
|
+
rotate: c.number({
|
|
3857
|
+
default: 0,
|
|
3858
|
+
name: "Rotate (deg)"
|
|
3859
|
+
}),
|
|
3860
|
+
scale: c.number({
|
|
3861
|
+
default: 1,
|
|
3862
|
+
name: "Scale"
|
|
3863
|
+
}),
|
|
3864
|
+
x: c.number({
|
|
3865
|
+
default: 0,
|
|
3866
|
+
name: "X",
|
|
3867
|
+
options: { suffix: "px" }
|
|
3868
|
+
}),
|
|
3869
|
+
y: c.number({
|
|
3870
|
+
default: 0,
|
|
3871
|
+
name: "Y",
|
|
3872
|
+
options: { suffix: "px" }
|
|
3873
|
+
})
|
|
3874
|
+
}, {
|
|
3875
|
+
name: e,
|
|
3876
|
+
options: { hidden: (e) => e.preset !== "custom" }
|
|
3877
|
+
});
|
|
3878
|
+
}
|
|
3879
|
+
var Pf = {
|
|
3880
|
+
component: ue(Af),
|
|
3881
|
+
directive: {
|
|
3882
|
+
build: {
|
|
3883
|
+
from: `${jf.name}/runtime`,
|
|
3884
|
+
name: "vMotion"
|
|
3885
|
+
},
|
|
3886
|
+
value: r
|
|
3887
|
+
},
|
|
3888
|
+
icon: Gd,
|
|
3889
|
+
id: "motion",
|
|
3890
|
+
label: "Motion",
|
|
3891
|
+
actions: [{
|
|
3892
|
+
icon: Zd,
|
|
3893
|
+
onClick: ({ getElements: t }) => e(t()),
|
|
3894
|
+
title: "Replay"
|
|
3895
|
+
}],
|
|
3896
|
+
properties: {
|
|
3897
|
+
alternate: c.boolean({
|
|
3898
|
+
default: !0,
|
|
3899
|
+
name: "Alternate",
|
|
3900
|
+
optional: !0
|
|
3901
|
+
}),
|
|
3902
|
+
delay: c.number({
|
|
3903
|
+
default: 0,
|
|
3904
|
+
name: "Delay",
|
|
3905
|
+
optional: !0,
|
|
3906
|
+
options: { suffix: "ms" }
|
|
3907
|
+
}),
|
|
3908
|
+
duration: c.number({
|
|
3909
|
+
default: 600,
|
|
3910
|
+
name: "Duration",
|
|
3911
|
+
optional: !0,
|
|
3912
|
+
options: { suffix: "ms" }
|
|
3913
|
+
}),
|
|
3914
|
+
ease: c.string({
|
|
3915
|
+
default: "outExpo",
|
|
3916
|
+
enum: n,
|
|
3917
|
+
name: "Easing",
|
|
3918
|
+
optional: !0,
|
|
3919
|
+
options: { hidden: !0 }
|
|
3920
|
+
}),
|
|
3921
|
+
from: Nf("From"),
|
|
3922
|
+
loop: c.number({
|
|
3923
|
+
default: -1,
|
|
3924
|
+
description: "-1 = infinite",
|
|
3925
|
+
name: "Loops",
|
|
3926
|
+
optional: !0
|
|
3927
|
+
}),
|
|
3928
|
+
preset: c.string({
|
|
3929
|
+
default: "fade",
|
|
3930
|
+
enum: [...Object.keys(t), "custom"],
|
|
3931
|
+
name: "Preset",
|
|
3932
|
+
options: { hidden: !0 }
|
|
3933
|
+
}),
|
|
3934
|
+
split: c.string({
|
|
3935
|
+
default: "chars",
|
|
3936
|
+
enum: [
|
|
3937
|
+
"chars",
|
|
3938
|
+
"words",
|
|
3939
|
+
"lines"
|
|
3940
|
+
],
|
|
3941
|
+
name: "Split text",
|
|
3942
|
+
optional: !0
|
|
3943
|
+
}),
|
|
3944
|
+
stagger: c.number({
|
|
3945
|
+
default: 60,
|
|
3946
|
+
name: "Stagger",
|
|
3947
|
+
optional: !0,
|
|
3948
|
+
options: { suffix: "ms" }
|
|
3949
|
+
}),
|
|
3950
|
+
staggerFrom: c.string({
|
|
3951
|
+
default: "first",
|
|
3952
|
+
enum: [
|
|
3953
|
+
"first",
|
|
3954
|
+
"center",
|
|
3955
|
+
"last",
|
|
3956
|
+
"random"
|
|
3957
|
+
],
|
|
3958
|
+
name: "Stagger from",
|
|
3959
|
+
optional: !0,
|
|
3960
|
+
options: { hidden: (e) => e.stagger === void 0 && !e.split }
|
|
3961
|
+
}),
|
|
3962
|
+
state: c.boolean({
|
|
3963
|
+
default: !1,
|
|
3964
|
+
name: "State",
|
|
3965
|
+
options: { hidden: (e) => e.trigger !== "state" }
|
|
3966
|
+
}),
|
|
3967
|
+
to: Nf("To"),
|
|
3968
|
+
trigger: c.string({
|
|
3969
|
+
default: "mount",
|
|
3970
|
+
enum: Mf,
|
|
3971
|
+
name: "Trigger",
|
|
3972
|
+
options: { hidden: !0 }
|
|
3973
|
+
})
|
|
3974
|
+
}
|
|
3975
|
+
}, Ff = c.object({
|
|
3976
|
+
duration: c.number({
|
|
3977
|
+
name: "Default duration (ms)",
|
|
3978
|
+
default: 600
|
|
3979
|
+
}),
|
|
3980
|
+
ease: c.string({
|
|
3981
|
+
name: "Default easing",
|
|
3982
|
+
default: "outExpo",
|
|
3983
|
+
enum: n
|
|
3984
|
+
}),
|
|
3985
|
+
reducedMotion: c.string({
|
|
3986
|
+
name: "Reduced motion",
|
|
3987
|
+
default: "reduce",
|
|
3988
|
+
enum: ["reduce", "ignore"]
|
|
3989
|
+
})
|
|
3990
|
+
});
|
|
3991
|
+
function If({ config: e }) {
|
|
3992
|
+
o(e);
|
|
3993
|
+
}
|
|
3994
|
+
var Lf = Ld({
|
|
3995
|
+
id: "motion",
|
|
3996
|
+
name: "Motion",
|
|
3997
|
+
description: "Animate elements with anime.js.",
|
|
3998
|
+
build: {
|
|
3999
|
+
frontImports: [{
|
|
4000
|
+
name: jf.name,
|
|
4001
|
+
version: jf.version
|
|
4002
|
+
}],
|
|
4003
|
+
injections: ({ config: e }) => ({ [Yl.AppSetup]: `
|
|
4004
|
+
import { configureMotion } from "${jf.name}/runtime";
|
|
4005
|
+
configureMotion(${JSON.stringify(e)});
|
|
4006
|
+
` })
|
|
4007
|
+
},
|
|
4008
|
+
config: Ff,
|
|
4009
|
+
editor: { panel: { element: [Pf] } },
|
|
4010
|
+
icon: Rd,
|
|
4011
|
+
lifecycle: {
|
|
4012
|
+
mount: If,
|
|
4013
|
+
update: If
|
|
4014
|
+
}
|
|
4015
|
+
});
|
|
4016
|
+
//#endregion
|
|
4017
|
+
export { Lf as default };
|