free-pi-cli 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/index.js +581 -423
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -14467,6 +14467,8 @@ function assertExhaustiveErrorCode(code) {
|
|
|
14467
14467
|
// ../shared/src/config.ts
|
|
14468
14468
|
var ConfigSchema = exports_external.object({
|
|
14469
14469
|
perUserDailyCapUsd: exports_external.number().default(5),
|
|
14470
|
+
perUserRollingCapUsd: exports_external.number().default(0),
|
|
14471
|
+
rollingCapWindowHours: exports_external.number().int().default(5),
|
|
14470
14472
|
globalDailyCapUsd: exports_external.number().default(50),
|
|
14471
14473
|
contextCharBudget: exports_external.number().int().default(800000),
|
|
14472
14474
|
accountsPerDayCeiling: exports_external.number().int().default(500),
|
|
@@ -14477,12 +14479,13 @@ var ConfigSchema = exports_external.object({
|
|
|
14477
14479
|
modelId: exports_external.string().default("deepseek/deepseek-v4-flash"),
|
|
14478
14480
|
providerDataCollection: exports_external.enum(["allow", "deny"]).optional(),
|
|
14479
14481
|
promptCacheEnabled: exports_external.boolean().default(false),
|
|
14482
|
+
emailCaptureEnabled: exports_external.boolean().default(false),
|
|
14480
14483
|
providerOrder: exports_external.array(exports_external.string()).optional(),
|
|
14481
14484
|
tierNewMaxDays: exports_external.number().int().default(30),
|
|
14482
14485
|
tierYoungMaxDays: exports_external.number().int().default(365),
|
|
14483
14486
|
tierCapNewUsd: exports_external.number().default(0.5),
|
|
14484
14487
|
tierCapYoungUsd: exports_external.number().default(2),
|
|
14485
|
-
sessionLeaseTtlMinutes: exports_external.number().int().default(
|
|
14488
|
+
sessionLeaseTtlMinutes: exports_external.number().int().default(30),
|
|
14486
14489
|
minCliVersion: exports_external.string().default("0.0.0"),
|
|
14487
14490
|
latestCliVersion: exports_external.string().default("0.2.0"),
|
|
14488
14491
|
abuseWindowMinutes: exports_external.number().int().default(30),
|
|
@@ -14498,7 +14501,10 @@ var ConfigSchema = exports_external.object({
|
|
|
14498
14501
|
abuseRestrictedCapUsd: exports_external.number().default(0.5),
|
|
14499
14502
|
abuseRestrictedHourlyCap: exports_external.number().int().default(5),
|
|
14500
14503
|
abuseNormalHourlyCap: exports_external.number().int().default(30),
|
|
14501
|
-
abuseFlipAlertThreshold: exports_external.number().int().default(10)
|
|
14504
|
+
abuseFlipAlertThreshold: exports_external.number().int().default(10),
|
|
14505
|
+
abuseAdBypassMinRequests: exports_external.number().int().default(20),
|
|
14506
|
+
abuseAdBypassRatio: exports_external.number().int().default(10),
|
|
14507
|
+
traceMaxInflightWrites: exports_external.number().int().default(32)
|
|
14502
14508
|
});
|
|
14503
14509
|
function envNumber(value) {
|
|
14504
14510
|
if (value === undefined || value === "")
|
|
@@ -14520,6 +14526,8 @@ function envList(value) {
|
|
|
14520
14526
|
function loadConfig(env = process.env) {
|
|
14521
14527
|
return ConfigSchema.parse({
|
|
14522
14528
|
perUserDailyCapUsd: envNumber(env.PER_USER_DAILY_CAP_USD),
|
|
14529
|
+
perUserRollingCapUsd: envNumber(env.PER_USER_ROLLING_CAP_USD),
|
|
14530
|
+
rollingCapWindowHours: envNumber(env.ROLLING_CAP_WINDOW_HOURS),
|
|
14523
14531
|
globalDailyCapUsd: envNumber(env.GLOBAL_DAILY_CAP_USD),
|
|
14524
14532
|
contextCharBudget: envNumber(env.CONTEXT_CHAR_BUDGET),
|
|
14525
14533
|
accountsPerDayCeiling: envNumber(env.ACCOUNTS_PER_DAY_CEILING),
|
|
@@ -14530,6 +14538,7 @@ function loadConfig(env = process.env) {
|
|
|
14530
14538
|
modelId: env.MODEL_ID || undefined,
|
|
14531
14539
|
providerDataCollection: env.PROVIDER_DATA_COLLECTION || undefined,
|
|
14532
14540
|
promptCacheEnabled: envBoolean(env.PROMPT_CACHE_ENABLED),
|
|
14541
|
+
emailCaptureEnabled: envBoolean(env.EMAIL_CAPTURE_ENABLED),
|
|
14533
14542
|
providerOrder: envList(env.PROVIDER_ORDER),
|
|
14534
14543
|
tierNewMaxDays: envNumber(env.TIER_NEW_MAX_DAYS),
|
|
14535
14544
|
tierYoungMaxDays: envNumber(env.TIER_YOUNG_MAX_DAYS),
|
|
@@ -14551,7 +14560,10 @@ function loadConfig(env = process.env) {
|
|
|
14551
14560
|
abuseRestrictedCapUsd: envNumber(env.ABUSE_RESTRICTED_CAP_USD),
|
|
14552
14561
|
abuseRestrictedHourlyCap: envNumber(env.ABUSE_RESTRICTED_HOURLY_CAP),
|
|
14553
14562
|
abuseNormalHourlyCap: envNumber(env.ABUSE_NORMAL_HOURLY_CAP),
|
|
14554
|
-
abuseFlipAlertThreshold: envNumber(env.ABUSE_FLIP_ALERT_THRESHOLD)
|
|
14563
|
+
abuseFlipAlertThreshold: envNumber(env.ABUSE_FLIP_ALERT_THRESHOLD),
|
|
14564
|
+
abuseAdBypassMinRequests: envNumber(env.ABUSE_AD_BYPASS_MIN_REQUESTS),
|
|
14565
|
+
abuseAdBypassRatio: envNumber(env.ABUSE_AD_BYPASS_RATIO),
|
|
14566
|
+
traceMaxInflightWrites: envNumber(env.TRACE_MAX_INFLIGHT_WRITES)
|
|
14555
14567
|
});
|
|
14556
14568
|
}
|
|
14557
14569
|
// ../shared/src/version.ts
|
|
@@ -14582,7 +14594,8 @@ async function authedFetch(deps, path, init) {
|
|
|
14582
14594
|
headers: {
|
|
14583
14595
|
...init?.headers ?? {},
|
|
14584
14596
|
Authorization: `Bearer ${token}`,
|
|
14585
|
-
"Content-Type": "application/json"
|
|
14597
|
+
"Content-Type": "application/json",
|
|
14598
|
+
...deps.sessionId && (path.startsWith("/ads/next") || path === "/ads/impression") ? { "x-session-id": deps.sessionId } : {}
|
|
14586
14599
|
}
|
|
14587
14600
|
});
|
|
14588
14601
|
}
|
|
@@ -14659,7 +14672,7 @@ function renderAdCard(creative, clickUrl, theme, columns) {
|
|
|
14659
14672
|
theme.fg("borderAccent", top),
|
|
14660
14673
|
row(headline, { bold: true }),
|
|
14661
14674
|
row(body),
|
|
14662
|
-
row(`▸ ${cta}
|
|
14675
|
+
row(`▸ ${cta}`, { linkUrl: url2 }),
|
|
14663
14676
|
theme.fg("borderAccent", bottom)
|
|
14664
14677
|
];
|
|
14665
14678
|
}
|
|
@@ -14667,7 +14680,7 @@ function renderPlainAdLine(creative, clickUrl, theme, columns) {
|
|
|
14667
14680
|
const headline = sanitizeText(creative.headline);
|
|
14668
14681
|
const cta = sanitizeText(creative.cta);
|
|
14669
14682
|
const url2 = sanitizeText(clickUrl);
|
|
14670
|
-
const plain = truncate(`AD ▚ ${headline} — ${cta}
|
|
14683
|
+
const plain = truncate(`AD ▚ ${headline} — ${cta}`, Math.max(10, columns - 2));
|
|
14671
14684
|
return theme.fg("dim", osc8(plain, url2));
|
|
14672
14685
|
}
|
|
14673
14686
|
function renderErrorLine(message, theme) {
|
|
@@ -14739,6 +14752,8 @@ function mapErrorCode(code) {
|
|
|
14739
14752
|
switch (code) {
|
|
14740
14753
|
case "daily_cap":
|
|
14741
14754
|
return "out of free tokens today, resets at 00:00 UTC";
|
|
14755
|
+
case "rolling_cap":
|
|
14756
|
+
return "over the rolling spend cap on the free tier — wait for the Retry-After window";
|
|
14742
14757
|
case "concurrent":
|
|
14743
14758
|
return "only one request at a time on the free tier — wait for the current one to finish";
|
|
14744
14759
|
case "concurrent_session":
|
|
@@ -14785,7 +14800,12 @@ async function renderMeter(deps, ctx) {
|
|
|
14785
14800
|
// ../pi-ads/src/index.ts
|
|
14786
14801
|
var BANNER_REFRESH_MS = 10 * 60 * 1000;
|
|
14787
14802
|
function createAdsExtension(opts) {
|
|
14788
|
-
const deps = {
|
|
14803
|
+
const deps = {
|
|
14804
|
+
baseUrl: opts.baseUrl,
|
|
14805
|
+
getToken: opts.getToken,
|
|
14806
|
+
sessionId: opts.sessionId,
|
|
14807
|
+
fetchImpl: opts.fetchImpl
|
|
14808
|
+
};
|
|
14789
14809
|
const config3 = loadConfig();
|
|
14790
14810
|
return {
|
|
14791
14811
|
name: "free-pi-ads",
|
|
@@ -14815,15 +14835,18 @@ function createAdsExtension(opts) {
|
|
|
14815
14835
|
}
|
|
14816
14836
|
};
|
|
14817
14837
|
}
|
|
14838
|
+
|
|
14839
|
+
// src/pi-launch.ts
|
|
14840
|
+
import { join as join2, resolve } from "node:path";
|
|
14818
14841
|
// package.json
|
|
14819
14842
|
var package_default = {
|
|
14820
14843
|
name: "free-pi-cli",
|
|
14821
|
-
version: "0.2.
|
|
14844
|
+
version: "0.2.3",
|
|
14822
14845
|
description: "Free, ad-supported distribution of the pi coding agent. Inference paid for by ads.",
|
|
14823
14846
|
license: "MIT",
|
|
14824
14847
|
type: "module",
|
|
14825
14848
|
bin: {
|
|
14826
|
-
"free-pi-cli": "
|
|
14849
|
+
"free-pi-cli": "dist/index.js"
|
|
14827
14850
|
},
|
|
14828
14851
|
files: [
|
|
14829
14852
|
"dist",
|
|
@@ -14878,7 +14901,7 @@ function buildProviderConfig(baseUrl, jwt2, sessionId) {
|
|
|
14878
14901
|
};
|
|
14879
14902
|
}
|
|
14880
14903
|
|
|
14881
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
14904
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/memory.mjs
|
|
14882
14905
|
var exports_memory = {};
|
|
14883
14906
|
__export(exports_memory, {
|
|
14884
14907
|
Update: () => Update,
|
|
@@ -14889,7 +14912,7 @@ __export(exports_memory, {
|
|
|
14889
14912
|
Assign: () => Assign
|
|
14890
14913
|
});
|
|
14891
14914
|
|
|
14892
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
14915
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/metrics.mjs
|
|
14893
14916
|
var Metrics = {
|
|
14894
14917
|
assign: 0,
|
|
14895
14918
|
create: 0,
|
|
@@ -14898,16 +14921,18 @@ var Metrics = {
|
|
|
14898
14921
|
update: 0
|
|
14899
14922
|
};
|
|
14900
14923
|
|
|
14901
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
14924
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/assign.mjs
|
|
14902
14925
|
function Assign(left, right) {
|
|
14903
14926
|
Metrics.assign += 1;
|
|
14904
14927
|
return { ...left, ...right };
|
|
14905
14928
|
}
|
|
14906
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
14929
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/guard/guard.mjs
|
|
14907
14930
|
var exports_guard = {};
|
|
14908
14931
|
__export(exports_guard, {
|
|
14909
14932
|
Values: () => Values,
|
|
14910
14933
|
Symbols: () => Symbols,
|
|
14934
|
+
SomeAll: () => SomeAll,
|
|
14935
|
+
Some: () => Some,
|
|
14911
14936
|
ShiftLeft: () => ShiftLeft,
|
|
14912
14937
|
Keys: () => Keys,
|
|
14913
14938
|
IsValueLike: () => IsValueLike,
|
|
@@ -14940,10 +14965,11 @@ __export(exports_guard, {
|
|
|
14940
14965
|
EveryAll: () => EveryAll,
|
|
14941
14966
|
Every: () => Every,
|
|
14942
14967
|
EntriesRegExp: () => EntriesRegExp,
|
|
14943
|
-
Entries: () => Entries
|
|
14968
|
+
Entries: () => Entries,
|
|
14969
|
+
Counted: () => Counted
|
|
14944
14970
|
});
|
|
14945
14971
|
|
|
14946
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
14972
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/guard/string.mjs
|
|
14947
14973
|
function IsBetween(value, min, max) {
|
|
14948
14974
|
return value >= min && value <= max;
|
|
14949
14975
|
}
|
|
@@ -14980,7 +15006,7 @@ function NextGraphemeClusterIndex(value, clusterStart) {
|
|
|
14980
15006
|
const startCP = value.codePointAt(clusterStart);
|
|
14981
15007
|
let clusterEnd = clusterStart + CodePointLength(startCP);
|
|
14982
15008
|
clusterEnd = ConsumeModifiers(value, clusterEnd);
|
|
14983
|
-
while (clusterEnd < value.length - 1 && value
|
|
15009
|
+
while (clusterEnd < value.length - 1 && IsZeroWidthJoiner(value.codePointAt(clusterEnd))) {
|
|
14984
15010
|
const nextCP = value.codePointAt(clusterEnd + 1);
|
|
14985
15011
|
clusterEnd += 1 + CodePointLength(nextCP);
|
|
14986
15012
|
clusterEnd = ConsumeModifiers(value, clusterEnd);
|
|
@@ -15002,7 +15028,7 @@ function GraphemeCount(value) {
|
|
|
15002
15028
|
}
|
|
15003
15029
|
return count;
|
|
15004
15030
|
}
|
|
15005
|
-
function
|
|
15031
|
+
function IsMinLengthSegmented(value, minLength) {
|
|
15006
15032
|
if (minLength === 0)
|
|
15007
15033
|
return true;
|
|
15008
15034
|
let count = 0;
|
|
@@ -15015,7 +15041,7 @@ function IsMinLength(value, minLength) {
|
|
|
15015
15041
|
}
|
|
15016
15042
|
return false;
|
|
15017
15043
|
}
|
|
15018
|
-
function
|
|
15044
|
+
function IsMaxLengthSegmented(value, maxLength) {
|
|
15019
15045
|
let count = 0;
|
|
15020
15046
|
let index = 0;
|
|
15021
15047
|
while (index < value.length) {
|
|
@@ -15026,13 +15052,13 @@ function IsMaxLength(value, maxLength) {
|
|
|
15026
15052
|
}
|
|
15027
15053
|
return true;
|
|
15028
15054
|
}
|
|
15029
|
-
function
|
|
15055
|
+
function IsMinLength(value, minLength) {
|
|
15030
15056
|
if (minLength === 0)
|
|
15031
15057
|
return true;
|
|
15032
15058
|
let index = 0;
|
|
15033
15059
|
while (index < value.length) {
|
|
15034
15060
|
if (IsGraphemeCodePoint(value.charCodeAt(index))) {
|
|
15035
|
-
return
|
|
15061
|
+
return IsMinLengthSegmented(value, minLength);
|
|
15036
15062
|
}
|
|
15037
15063
|
index++;
|
|
15038
15064
|
if (index >= minLength)
|
|
@@ -15040,11 +15066,11 @@ function IsMinLengthFast(value, minLength) {
|
|
|
15040
15066
|
}
|
|
15041
15067
|
return false;
|
|
15042
15068
|
}
|
|
15043
|
-
function
|
|
15069
|
+
function IsMaxLength(value, maxLength) {
|
|
15044
15070
|
let index = 0;
|
|
15045
15071
|
while (index < value.length) {
|
|
15046
15072
|
if (IsGraphemeCodePoint(value.charCodeAt(index))) {
|
|
15047
|
-
return
|
|
15073
|
+
return IsMaxLengthSegmented(value, maxLength);
|
|
15048
15074
|
}
|
|
15049
15075
|
index++;
|
|
15050
15076
|
if (index > maxLength)
|
|
@@ -15053,7 +15079,7 @@ function IsMaxLengthFast(value, maxLength) {
|
|
|
15053
15079
|
return true;
|
|
15054
15080
|
}
|
|
15055
15081
|
|
|
15056
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15082
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/guard/guard.mjs
|
|
15057
15083
|
function IsArray(value) {
|
|
15058
15084
|
return Array.isArray(value);
|
|
15059
15085
|
}
|
|
@@ -15142,10 +15168,10 @@ function GraphemeCount2(value) {
|
|
|
15142
15168
|
return GraphemeCount(value);
|
|
15143
15169
|
}
|
|
15144
15170
|
function IsMaxLength2(value, length) {
|
|
15145
|
-
return
|
|
15171
|
+
return IsMaxLength(value, length);
|
|
15146
15172
|
}
|
|
15147
15173
|
function IsMinLength2(value, length) {
|
|
15148
|
-
return
|
|
15174
|
+
return IsMinLength(value, length);
|
|
15149
15175
|
}
|
|
15150
15176
|
function Every(value, offset, callback) {
|
|
15151
15177
|
for (let index = offset;index < value.length; index++) {
|
|
@@ -15162,6 +15188,24 @@ function EveryAll(value, offset, callback) {
|
|
|
15162
15188
|
}
|
|
15163
15189
|
return result;
|
|
15164
15190
|
}
|
|
15191
|
+
function Some(value, callback) {
|
|
15192
|
+
for (let index = 0;index < value.length; index++) {
|
|
15193
|
+
if (callback(value[index], index))
|
|
15194
|
+
return true;
|
|
15195
|
+
}
|
|
15196
|
+
return false;
|
|
15197
|
+
}
|
|
15198
|
+
function SomeAll(value, callback) {
|
|
15199
|
+
let result = false;
|
|
15200
|
+
for (let index = 0;index < value.length; index++) {
|
|
15201
|
+
if (callback(value[index], index))
|
|
15202
|
+
result = true;
|
|
15203
|
+
}
|
|
15204
|
+
return result;
|
|
15205
|
+
}
|
|
15206
|
+
function Counted(value, callback) {
|
|
15207
|
+
return value.reduce((result, value2, index) => callback(value2, index) ? ++result : result, 0);
|
|
15208
|
+
}
|
|
15165
15209
|
function ShiftLeft(array2, true_, false_) {
|
|
15166
15210
|
return IsEqual(array2.length, 0) ? false_() : true_(array2[0], array2.slice(1));
|
|
15167
15211
|
}
|
|
@@ -15198,7 +15242,7 @@ function DeepEqualArray(left, right) {
|
|
|
15198
15242
|
function IsDeepEqual(left, right) {
|
|
15199
15243
|
return IsArray(left) ? DeepEqualArray(left, right) : IsObject(left) ? DeepEqualObject(left, right) : IsEqual(left, right);
|
|
15200
15244
|
}
|
|
15201
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15245
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/guard/globals.mjs
|
|
15202
15246
|
var exports_globals = {};
|
|
15203
15247
|
__export(exports_globals, {
|
|
15204
15248
|
IsUint8ClampedArray: () => IsUint8ClampedArray,
|
|
@@ -15278,22 +15322,24 @@ function IsSet(value) {
|
|
|
15278
15322
|
function IsMap(value) {
|
|
15279
15323
|
return value instanceof globalThis.Map;
|
|
15280
15324
|
}
|
|
15281
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15325
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/clone.mjs
|
|
15282
15326
|
function FromClassInstance(value) {
|
|
15283
15327
|
return value;
|
|
15284
15328
|
}
|
|
15285
|
-
function
|
|
15329
|
+
function IsSchemaObject(value) {
|
|
15286
15330
|
return exports_guard.HasPropertyKey(value, "~kind") || exports_guard.HasPropertyKey(value, "~unsafe");
|
|
15287
15331
|
}
|
|
15288
|
-
function
|
|
15332
|
+
function FromSchemaObject(value) {
|
|
15289
15333
|
const result = {};
|
|
15290
|
-
const
|
|
15291
|
-
for (const key of Object.keys(descriptors)) {
|
|
15334
|
+
for (const key of exports_guard.Keys(value)) {
|
|
15292
15335
|
if (exports_guard.IsUnsafePropertyKey(key))
|
|
15293
15336
|
continue;
|
|
15294
|
-
const descriptor =
|
|
15295
|
-
|
|
15296
|
-
|
|
15337
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
15338
|
+
descriptor.value = FromValue(descriptor.value);
|
|
15339
|
+
if (exports_guard.IsEqual(descriptor.enumerable, true)) {
|
|
15340
|
+
result[key] = descriptor.value;
|
|
15341
|
+
} else {
|
|
15342
|
+
Object.defineProperty(result, key, descriptor);
|
|
15297
15343
|
}
|
|
15298
15344
|
}
|
|
15299
15345
|
return result;
|
|
@@ -15311,7 +15357,7 @@ function FromPlainObject(value) {
|
|
|
15311
15357
|
return result;
|
|
15312
15358
|
}
|
|
15313
15359
|
function FromObject(value) {
|
|
15314
|
-
return exports_guard.IsClassInstance(value) ? FromClassInstance(value) :
|
|
15360
|
+
return exports_guard.IsClassInstance(value) ? FromClassInstance(value) : IsSchemaObject(value) ? FromSchemaObject(value) : FromPlainObject(value);
|
|
15315
15361
|
}
|
|
15316
15362
|
function FromArray(value) {
|
|
15317
15363
|
return value.map((element) => FromValue(element));
|
|
@@ -15335,7 +15381,7 @@ function Clone(value) {
|
|
|
15335
15381
|
Metrics.clone += 1;
|
|
15336
15382
|
return FromValue(value);
|
|
15337
15383
|
}
|
|
15338
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15384
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/settings/settings.mjs
|
|
15339
15385
|
var exports_settings = {};
|
|
15340
15386
|
__export(exports_settings, {
|
|
15341
15387
|
Set: () => Set2,
|
|
@@ -15345,6 +15391,7 @@ __export(exports_settings, {
|
|
|
15345
15391
|
var settings = {
|
|
15346
15392
|
immutableTypes: false,
|
|
15347
15393
|
maxErrors: 8,
|
|
15394
|
+
maxInstantiationCount: 128,
|
|
15348
15395
|
useAcceleration: true,
|
|
15349
15396
|
exactOptionalPropertyTypes: false,
|
|
15350
15397
|
enumerableKind: false,
|
|
@@ -15354,6 +15401,7 @@ var settings = {
|
|
|
15354
15401
|
function Reset() {
|
|
15355
15402
|
settings.immutableTypes = false;
|
|
15356
15403
|
settings.maxErrors = 8;
|
|
15404
|
+
settings.maxInstantiationCount = 128;
|
|
15357
15405
|
settings.useAcceleration = true;
|
|
15358
15406
|
settings.exactOptionalPropertyTypes = false;
|
|
15359
15407
|
settings.enumerableKind = false;
|
|
@@ -15371,7 +15419,7 @@ function Set2(options) {
|
|
|
15371
15419
|
function Get() {
|
|
15372
15420
|
return settings;
|
|
15373
15421
|
}
|
|
15374
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15422
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/create.mjs
|
|
15375
15423
|
function MergeHidden(left, right) {
|
|
15376
15424
|
for (const key of Object.keys(right)) {
|
|
15377
15425
|
Object.defineProperty(left, key, {
|
|
@@ -15393,20 +15441,20 @@ function Create(hidden, enumerable, options = {}) {
|
|
|
15393
15441
|
const withHidden = settings2.enumerableKind ? Merge(withOptions, hidden) : MergeHidden(withOptions, hidden);
|
|
15394
15442
|
return settings2.immutableTypes ? Object.freeze(withHidden) : withHidden;
|
|
15395
15443
|
}
|
|
15396
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15444
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/discard.mjs
|
|
15397
15445
|
function Discard(value, propertyKeys) {
|
|
15398
15446
|
Metrics.discard += 1;
|
|
15399
15447
|
const result = {};
|
|
15400
|
-
const
|
|
15401
|
-
|
|
15402
|
-
for (const key of Object.keys(descriptors)) {
|
|
15403
|
-
if (keysToDiscard.has(key))
|
|
15448
|
+
for (const key of exports_guard.Keys(value)) {
|
|
15449
|
+
if (propertyKeys.includes(key))
|
|
15404
15450
|
continue;
|
|
15405
|
-
Object.
|
|
15451
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
15452
|
+
descriptor.value = Clone(descriptor.value);
|
|
15453
|
+
Object.defineProperty(result, key, descriptor);
|
|
15406
15454
|
}
|
|
15407
15455
|
return result;
|
|
15408
15456
|
}
|
|
15409
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15457
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/update.mjs
|
|
15410
15458
|
function Update(current, hidden, enumerable) {
|
|
15411
15459
|
Metrics.update += 1;
|
|
15412
15460
|
const settings2 = exports_settings.Get();
|
|
@@ -15429,7 +15477,7 @@ function Update(current, hidden, enumerable) {
|
|
|
15429
15477
|
}
|
|
15430
15478
|
return result;
|
|
15431
15479
|
}
|
|
15432
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15480
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/schema.mjs
|
|
15433
15481
|
function IsKind(value, kind) {
|
|
15434
15482
|
return exports_guard.IsObject(value) && exports_guard.HasPropertyKey(value, "~kind") && exports_guard.IsEqual(value["~kind"], kind);
|
|
15435
15483
|
}
|
|
@@ -15437,7 +15485,7 @@ function IsSchema(value) {
|
|
|
15437
15485
|
return exports_guard.IsObject(value);
|
|
15438
15486
|
}
|
|
15439
15487
|
|
|
15440
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15488
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/deferred.mjs
|
|
15441
15489
|
function Deferred(action, parameters, options) {
|
|
15442
15490
|
return exports_memory.Create({ "~kind": "Deferred" }, { type: "deferred", action, parameters, options }, {});
|
|
15443
15491
|
}
|
|
@@ -15445,7 +15493,7 @@ function IsDeferred(value) {
|
|
|
15445
15493
|
return IsKind(value, "Deferred");
|
|
15446
15494
|
}
|
|
15447
15495
|
|
|
15448
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15496
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs
|
|
15449
15497
|
function AddReadonlyOperation(type) {
|
|
15450
15498
|
return exports_memory.Update(type, { "~readonly": true }, {});
|
|
15451
15499
|
}
|
|
@@ -15458,7 +15506,7 @@ function AddReadonlyInstantiate(context, state, type, options) {
|
|
|
15458
15506
|
return AddReadonlyAction(instantiatedType, options);
|
|
15459
15507
|
}
|
|
15460
15508
|
|
|
15461
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15509
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs
|
|
15462
15510
|
function AddOptionalOperation(type) {
|
|
15463
15511
|
return exports_memory.Update(type, { "~optional": true }, {});
|
|
15464
15512
|
}
|
|
@@ -15471,7 +15519,7 @@ function AddOptionalInstantiate(context, state, type, options) {
|
|
|
15471
15519
|
return AddOptionalAction(instantiatedType, options);
|
|
15472
15520
|
}
|
|
15473
15521
|
|
|
15474
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15522
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/array.mjs
|
|
15475
15523
|
function _Array_(items, options) {
|
|
15476
15524
|
return exports_memory.Create({ "~kind": "Array" }, { type: "array", items }, options);
|
|
15477
15525
|
}
|
|
@@ -15482,7 +15530,7 @@ function ArrayOptions(type) {
|
|
|
15482
15530
|
return exports_memory.Discard(type, ["~kind", "type", "items"]);
|
|
15483
15531
|
}
|
|
15484
15532
|
|
|
15485
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15533
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/constructor.mjs
|
|
15486
15534
|
function Constructor(parameters, instanceType, options = {}) {
|
|
15487
15535
|
return exports_memory.Create({ "~kind": "Constructor" }, { type: "constructor", parameters, instanceType }, options);
|
|
15488
15536
|
}
|
|
@@ -15493,7 +15541,7 @@ function ConstructorOptions(type) {
|
|
|
15493
15541
|
return exports_memory.Discard(type, ["~kind", "type", "parameters", "instanceType"]);
|
|
15494
15542
|
}
|
|
15495
15543
|
|
|
15496
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15544
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/function.mjs
|
|
15497
15545
|
function _Function_(parameters, returnType, options = {}) {
|
|
15498
15546
|
return exports_memory.Create({ ["~kind"]: "Function" }, { type: "function", parameters, returnType }, options);
|
|
15499
15547
|
}
|
|
@@ -15504,7 +15552,7 @@ function FunctionOptions(type) {
|
|
|
15504
15552
|
return exports_memory.Discard(type, ["~kind", "type", "parameters", "returnType"]);
|
|
15505
15553
|
}
|
|
15506
15554
|
|
|
15507
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15555
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/ref.mjs
|
|
15508
15556
|
function Ref(ref, options) {
|
|
15509
15557
|
return exports_memory.Create({ ["~kind"]: "Ref" }, { $ref: ref }, options);
|
|
15510
15558
|
}
|
|
@@ -15512,7 +15560,7 @@ function IsRef(value) {
|
|
|
15512
15560
|
return IsKind(value, "Ref");
|
|
15513
15561
|
}
|
|
15514
15562
|
|
|
15515
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15563
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/generic.mjs
|
|
15516
15564
|
function Generic(parameters, expression) {
|
|
15517
15565
|
return exports_memory.Create({ "~kind": "Generic" }, { type: "generic", parameters, expression });
|
|
15518
15566
|
}
|
|
@@ -15520,7 +15568,7 @@ function IsGeneric(value) {
|
|
|
15520
15568
|
return IsKind(value, "Generic");
|
|
15521
15569
|
}
|
|
15522
15570
|
|
|
15523
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15571
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/any.mjs
|
|
15524
15572
|
function Any(options) {
|
|
15525
15573
|
return exports_memory.Create({ ["~kind"]: "Any" }, {}, options);
|
|
15526
15574
|
}
|
|
@@ -15528,7 +15576,7 @@ function IsAny(value) {
|
|
|
15528
15576
|
return IsKind(value, "Any");
|
|
15529
15577
|
}
|
|
15530
15578
|
|
|
15531
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15579
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/never.mjs
|
|
15532
15580
|
var NeverPattern = "(?!)";
|
|
15533
15581
|
function Never(options) {
|
|
15534
15582
|
return exports_memory.Create({ "~kind": "Never" }, { not: {} }, options);
|
|
@@ -15537,7 +15585,7 @@ function IsNever(value) {
|
|
|
15537
15585
|
return IsKind(value, "Never");
|
|
15538
15586
|
}
|
|
15539
15587
|
|
|
15540
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15588
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/_add_optional.mjs
|
|
15541
15589
|
function AddOptionalDeferred(type, options = {}) {
|
|
15542
15590
|
return Deferred("AddOptional", [type], options);
|
|
15543
15591
|
}
|
|
@@ -15545,7 +15593,7 @@ function AddOptional(type, options = {}) {
|
|
|
15545
15593
|
return AddOptionalAction(type, options);
|
|
15546
15594
|
}
|
|
15547
15595
|
|
|
15548
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15596
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/_optional.mjs
|
|
15549
15597
|
function Optional(type) {
|
|
15550
15598
|
return AddOptional(type);
|
|
15551
15599
|
}
|
|
@@ -15553,7 +15601,7 @@ function IsOptional(value) {
|
|
|
15553
15601
|
return IsSchema(value) && exports_guard.HasPropertyKey(value, "~optional");
|
|
15554
15602
|
}
|
|
15555
15603
|
|
|
15556
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15604
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/properties.mjs
|
|
15557
15605
|
function RequiredArray(properties) {
|
|
15558
15606
|
return exports_guard.Keys(properties).filter((key) => !IsOptional(properties[key]));
|
|
15559
15607
|
}
|
|
@@ -15564,7 +15612,7 @@ function PropertyValues(properties) {
|
|
|
15564
15612
|
return exports_guard.Values(properties);
|
|
15565
15613
|
}
|
|
15566
15614
|
|
|
15567
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15615
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/object.mjs
|
|
15568
15616
|
function _Object_(properties, options = {}) {
|
|
15569
15617
|
const requiredKeys = RequiredArray(properties);
|
|
15570
15618
|
const required2 = requiredKeys.length > 0 ? { required: requiredKeys } : {};
|
|
@@ -15577,7 +15625,7 @@ function ObjectOptions(type) {
|
|
|
15577
15625
|
return exports_memory.Discard(type, ["~kind", "type", "properties", "required"]);
|
|
15578
15626
|
}
|
|
15579
15627
|
|
|
15580
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15628
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/unknown.mjs
|
|
15581
15629
|
function Unknown(options) {
|
|
15582
15630
|
return exports_memory.Create({ ["~kind"]: "Unknown" }, {}, options);
|
|
15583
15631
|
}
|
|
@@ -15585,7 +15633,7 @@ function IsUnknown(value) {
|
|
|
15585
15633
|
return IsKind(value, "Unknown");
|
|
15586
15634
|
}
|
|
15587
15635
|
|
|
15588
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15636
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/cyclic.mjs
|
|
15589
15637
|
function Cyclic($defs, $ref, options) {
|
|
15590
15638
|
const defs = exports_guard.Keys($defs).reduce((result, key) => {
|
|
15591
15639
|
return { ...result, [key]: exports_memory.Update($defs[key], {}, { $id: key }) };
|
|
@@ -15596,7 +15644,7 @@ function IsCyclic(value) {
|
|
|
15596
15644
|
return IsKind(value, "Cyclic");
|
|
15597
15645
|
}
|
|
15598
15646
|
|
|
15599
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15647
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/unsafe.mjs
|
|
15600
15648
|
function Unsafe(schema) {
|
|
15601
15649
|
return exports_memory.Update(schema, { ["~unsafe"]: null }, {});
|
|
15602
15650
|
}
|
|
@@ -15604,7 +15652,7 @@ function IsUnsafe(value) {
|
|
|
15604
15652
|
return exports_guard.IsObjectNotArray(value) && exports_guard.HasPropertyKey(value, "~unsafe") && exports_guard.IsNull(value["~unsafe"]);
|
|
15605
15653
|
}
|
|
15606
15654
|
|
|
15607
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15655
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/arguments/arguments.mjs
|
|
15608
15656
|
var exports_arguments = {};
|
|
15609
15657
|
__export(exports_arguments, {
|
|
15610
15658
|
Match: () => Match
|
|
@@ -15614,7 +15662,7 @@ function Match(args, match) {
|
|
|
15614
15662
|
throw Error("Invalid Arguments");
|
|
15615
15663
|
})();
|
|
15616
15664
|
}
|
|
15617
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15665
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/infer.mjs
|
|
15618
15666
|
function Infer(...args) {
|
|
15619
15667
|
const [name, extends_] = exports_arguments.Match(args, {
|
|
15620
15668
|
2: (name2, extends_2) => [name2, extends_2, extends_2],
|
|
@@ -15626,7 +15674,7 @@ function IsInfer(value) {
|
|
|
15626
15674
|
return IsKind(value, "Infer");
|
|
15627
15675
|
}
|
|
15628
15676
|
|
|
15629
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15677
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/dependent.mjs
|
|
15630
15678
|
function Dependent(if_, then_, else_, options = {}) {
|
|
15631
15679
|
return exports_memory.Create({ "~kind": "Dependent" }, { if: if_, then: then_, else: else_ }, options);
|
|
15632
15680
|
}
|
|
@@ -15637,7 +15685,7 @@ function DependentOptions(type) {
|
|
|
15637
15685
|
return exports_memory.Discard(type, ["~kind", "if", "then", "else"]);
|
|
15638
15686
|
}
|
|
15639
15687
|
|
|
15640
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15688
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs
|
|
15641
15689
|
function IsTypeScriptEnumLike(value) {
|
|
15642
15690
|
return exports_guard.IsObjectNotArray(value);
|
|
15643
15691
|
}
|
|
@@ -15646,7 +15694,7 @@ function TypeScriptEnumToEnumValues(type) {
|
|
|
15646
15694
|
return keys.reduce((result, key) => [...result, type[key]], []);
|
|
15647
15695
|
}
|
|
15648
15696
|
|
|
15649
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15697
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/enum.mjs
|
|
15650
15698
|
function IsEnumValue(value) {
|
|
15651
15699
|
return exports_guard.IsString(value) || exports_guard.IsNumber(value);
|
|
15652
15700
|
}
|
|
@@ -15658,7 +15706,7 @@ function IsEnum(value) {
|
|
|
15658
15706
|
return IsKind(value, "Enum");
|
|
15659
15707
|
}
|
|
15660
15708
|
|
|
15661
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15709
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/intersect.mjs
|
|
15662
15710
|
function Intersect(types, options = {}) {
|
|
15663
15711
|
return exports_memory.Create({ "~kind": "Intersect" }, { allOf: types }, options);
|
|
15664
15712
|
}
|
|
@@ -15668,11 +15716,11 @@ function IsIntersect(value) {
|
|
|
15668
15716
|
function IntersectOptions(type) {
|
|
15669
15717
|
return exports_memory.Discard(type, ["~kind", "allOf"]);
|
|
15670
15718
|
}
|
|
15671
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15719
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/unreachable/unreachable.mjs
|
|
15672
15720
|
function Unreachable() {
|
|
15673
15721
|
throw new Error("Unreachable");
|
|
15674
15722
|
}
|
|
15675
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15723
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/hashing/hash.mjs
|
|
15676
15724
|
var ByteMarker;
|
|
15677
15725
|
(function(ByteMarker2) {
|
|
15678
15726
|
ByteMarker2[ByteMarker2["Array"] = 0] = "Array";
|
|
@@ -15697,7 +15745,7 @@ var F64 = new Float64Array(1);
|
|
|
15697
15745
|
var F64In = new DataView(F64.buffer);
|
|
15698
15746
|
var F64Out = new Uint8Array(F64.buffer);
|
|
15699
15747
|
var encoder = new TextEncoder;
|
|
15700
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15748
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/_codec.mjs
|
|
15701
15749
|
class EncodeBuilder {
|
|
15702
15750
|
constructor(type, decode3) {
|
|
15703
15751
|
this.type = type;
|
|
@@ -15736,14 +15784,14 @@ function Encode(type, callback) {
|
|
|
15736
15784
|
function IsCodec(value) {
|
|
15737
15785
|
return IsSchema(value) && exports_guard.HasPropertyKey(value, "~codec") && exports_guard.IsObject(value["~codec"]) && exports_guard.HasPropertyKey(value["~codec"], "encode") && exports_guard.HasPropertyKey(value["~codec"], "decode");
|
|
15738
15786
|
}
|
|
15739
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15787
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/_immutable.mjs
|
|
15740
15788
|
function Immutable(type) {
|
|
15741
15789
|
return AddImmutable(type);
|
|
15742
15790
|
}
|
|
15743
15791
|
function IsImmutable(value) {
|
|
15744
15792
|
return IsSchema(value) && exports_guard.HasPropertyKey(value, "~immutable");
|
|
15745
15793
|
}
|
|
15746
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15794
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/_add_readonly.mjs
|
|
15747
15795
|
function AddReadonlyDeferred(type, options = {}) {
|
|
15748
15796
|
return Deferred("AddReadonly", [type], options);
|
|
15749
15797
|
}
|
|
@@ -15751,14 +15799,14 @@ function AddReadonly(type, options = {}) {
|
|
|
15751
15799
|
return AddReadonlyAction(type, options);
|
|
15752
15800
|
}
|
|
15753
15801
|
|
|
15754
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15802
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/_readonly.mjs
|
|
15755
15803
|
function Readonly(type) {
|
|
15756
15804
|
return AddReadonly(type);
|
|
15757
15805
|
}
|
|
15758
15806
|
function IsReadonly(value) {
|
|
15759
15807
|
return IsSchema(value) && exports_guard.HasPropertyKey(value, "~readonly");
|
|
15760
15808
|
}
|
|
15761
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15809
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/_refine.mjs
|
|
15762
15810
|
function RefineAdd(type, refinement) {
|
|
15763
15811
|
const refinements = IsRefine(type) ? [...type["~refine"], refinement] : [refinement];
|
|
15764
15812
|
return exports_memory.Update(type, { "~refine": refinements }, {});
|
|
@@ -15776,7 +15824,7 @@ function IsRefinement(value) {
|
|
|
15776
15824
|
function IsRefine(value) {
|
|
15777
15825
|
return IsSchema(value) && exports_guard.HasPropertyKey(value, "~refine") && exports_guard.IsArray(value["~refine"]) && exports_guard.Every(value["~refine"], 0, (value2) => IsRefinement(value2));
|
|
15778
15826
|
}
|
|
15779
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15827
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/bigint.mjs
|
|
15780
15828
|
var BigIntPattern = "-?(?:0|[1-9][0-9]*)n";
|
|
15781
15829
|
function BigInt2(options) {
|
|
15782
15830
|
return exports_memory.Create({ "~kind": "BigInt" }, { type: "bigint" }, options);
|
|
@@ -15784,21 +15832,21 @@ function BigInt2(options) {
|
|
|
15784
15832
|
function IsBigInt2(value) {
|
|
15785
15833
|
return IsKind(value, "BigInt");
|
|
15786
15834
|
}
|
|
15787
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15835
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/boolean.mjs
|
|
15788
15836
|
function Boolean2(options) {
|
|
15789
15837
|
return exports_memory.Create({ "~kind": "Boolean" }, { type: "boolean" }, options);
|
|
15790
15838
|
}
|
|
15791
15839
|
function IsBoolean3(value) {
|
|
15792
15840
|
return IsKind(value, "Boolean");
|
|
15793
15841
|
}
|
|
15794
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15842
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/identifier.mjs
|
|
15795
15843
|
function Identifier(name) {
|
|
15796
15844
|
return exports_memory.Create({ "~kind": "Identifier" }, { name });
|
|
15797
15845
|
}
|
|
15798
15846
|
function IsIdentifier(value) {
|
|
15799
15847
|
return IsKind(value, "Identifier");
|
|
15800
15848
|
}
|
|
15801
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15849
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/integer.mjs
|
|
15802
15850
|
var IntegerPattern = "-?(?:0|[1-9][0-9]*)";
|
|
15803
15851
|
function Integer(options) {
|
|
15804
15852
|
return exports_memory.Create({ "~kind": "Integer" }, { type: "integer" }, options);
|
|
@@ -15806,7 +15854,7 @@ function Integer(options) {
|
|
|
15806
15854
|
function IsInteger2(value) {
|
|
15807
15855
|
return IsKind(value, "Integer");
|
|
15808
15856
|
}
|
|
15809
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15857
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/literal.mjs
|
|
15810
15858
|
class InvalidLiteralValue extends Error {
|
|
15811
15859
|
constructor(value) {
|
|
15812
15860
|
super(`Invalid Literal value`);
|
|
@@ -15838,14 +15886,14 @@ function IsLiteralString(value) {
|
|
|
15838
15886
|
function IsLiteral(value) {
|
|
15839
15887
|
return IsKind(value, "Literal");
|
|
15840
15888
|
}
|
|
15841
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15889
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/null.mjs
|
|
15842
15890
|
function Null(options) {
|
|
15843
15891
|
return exports_memory.Create({ "~kind": "Null" }, { type: "null" }, options);
|
|
15844
15892
|
}
|
|
15845
15893
|
function IsNull2(value) {
|
|
15846
15894
|
return IsKind(value, "Null");
|
|
15847
15895
|
}
|
|
15848
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15896
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/number.mjs
|
|
15849
15897
|
var NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?";
|
|
15850
15898
|
function Number2(options) {
|
|
15851
15899
|
return exports_memory.Create({ "~kind": "Number" }, { type: "number" }, options);
|
|
@@ -15853,14 +15901,14 @@ function Number2(options) {
|
|
|
15853
15901
|
function IsNumber3(value) {
|
|
15854
15902
|
return IsKind(value, "Number");
|
|
15855
15903
|
}
|
|
15856
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15904
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/symbol.mjs
|
|
15857
15905
|
function Symbol2(options) {
|
|
15858
15906
|
return exports_memory.Create({ "~kind": "Symbol" }, { type: "symbol" }, options);
|
|
15859
15907
|
}
|
|
15860
15908
|
function IsSymbol2(value) {
|
|
15861
15909
|
return IsKind(value, "Symbol");
|
|
15862
15910
|
}
|
|
15863
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15911
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/parameter.mjs
|
|
15864
15912
|
function Parameter(...args) {
|
|
15865
15913
|
const [name, extends_, equals] = exports_arguments.Match(args, {
|
|
15866
15914
|
3: (name2, extends_2, equals2) => [name2, extends_2, equals2],
|
|
@@ -15872,7 +15920,7 @@ function Parameter(...args) {
|
|
|
15872
15920
|
function IsParameter(value) {
|
|
15873
15921
|
return IsKind(value, "Parameter");
|
|
15874
15922
|
}
|
|
15875
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15923
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/string.mjs
|
|
15876
15924
|
var StringPattern = ".*";
|
|
15877
15925
|
function String2(options) {
|
|
15878
15926
|
return exports_memory.Create({ "~kind": "String" }, { type: "string" }, options);
|
|
@@ -15881,7 +15929,7 @@ function IsString3(value) {
|
|
|
15881
15929
|
return IsKind(value, "String");
|
|
15882
15930
|
}
|
|
15883
15931
|
|
|
15884
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15932
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/union.mjs
|
|
15885
15933
|
function Union(anyOf, options = {}) {
|
|
15886
15934
|
return exports_memory.Create({ "~kind": "Union" }, { anyOf }, options);
|
|
15887
15935
|
}
|
|
@@ -15892,14 +15940,14 @@ function UnionOptions(type) {
|
|
|
15892
15940
|
return exports_memory.Discard(type, ["~kind", "anyOf"]);
|
|
15893
15941
|
}
|
|
15894
15942
|
|
|
15895
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15943
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/patterns/pattern.mjs
|
|
15896
15944
|
function ParsePatternIntoTypes(pattern) {
|
|
15897
15945
|
const parsed = Pattern(pattern);
|
|
15898
15946
|
const result = exports_guard.IsEqual(parsed.length, 2) ? parsed[0] : [];
|
|
15899
15947
|
return result;
|
|
15900
15948
|
}
|
|
15901
15949
|
|
|
15902
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15950
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs
|
|
15903
15951
|
function FromLiteral(_value) {
|
|
15904
15952
|
return true;
|
|
15905
15953
|
}
|
|
@@ -15918,12 +15966,12 @@ function IsTemplateLiteralFinite(types) {
|
|
|
15918
15966
|
return result;
|
|
15919
15967
|
}
|
|
15920
15968
|
|
|
15921
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15969
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/template_literal/create.mjs
|
|
15922
15970
|
function TemplateLiteralCreate(pattern) {
|
|
15923
15971
|
return exports_memory.Create({ ["~kind"]: "TemplateLiteral" }, { type: "string", pattern }, {});
|
|
15924
15972
|
}
|
|
15925
15973
|
|
|
15926
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
15974
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/template_literal/decode.mjs
|
|
15927
15975
|
function FromLiteralPush(variants, value, result = []) {
|
|
15928
15976
|
return exports_guard.ShiftLeft(variants, (left, right) => FromLiteralPush(right, value, [...result, `${left}${value}`]), () => result);
|
|
15929
15977
|
}
|
|
@@ -15963,24 +16011,24 @@ function TemplateLiteralDecode(pattern) {
|
|
|
15963
16011
|
return result;
|
|
15964
16012
|
}
|
|
15965
16013
|
|
|
15966
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16014
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/record_create.mjs
|
|
15967
16015
|
function CreateRecord(key, value) {
|
|
15968
16016
|
const type = "object";
|
|
15969
16017
|
const patternProperties = { [key]: value };
|
|
15970
16018
|
return exports_memory.Create({ ["~kind"]: "Record" }, { type, patternProperties });
|
|
15971
16019
|
}
|
|
15972
16020
|
|
|
15973
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16021
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_any.mjs
|
|
15974
16022
|
function FromAnyKey(value) {
|
|
15975
16023
|
return CreateRecord(StringKey, value);
|
|
15976
16024
|
}
|
|
15977
16025
|
|
|
15978
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16026
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs
|
|
15979
16027
|
function FromBooleanKey(value) {
|
|
15980
16028
|
return _Object_({ true: value, false: value });
|
|
15981
16029
|
}
|
|
15982
16030
|
|
|
15983
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16031
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/tuple.mjs
|
|
15984
16032
|
function Tuple(types, options = {}) {
|
|
15985
16033
|
const [items, minItems, additionalItems] = [types, types.length, false];
|
|
15986
16034
|
return exports_memory.Create({ ["~kind"]: "Tuple" }, { type: "array", additionalItems, items, minItems }, options);
|
|
@@ -15992,7 +16040,7 @@ function TupleOptions(type) {
|
|
|
15992
16040
|
return exports_memory.Discard(type, ["~kind", "type", "items", "minItems", "additionalItems"]);
|
|
15993
16041
|
}
|
|
15994
16042
|
|
|
15995
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16043
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs
|
|
15996
16044
|
function RemoveReadonlyOperation(type) {
|
|
15997
16045
|
return exports_memory.Discard(type, ["~readonly"]);
|
|
15998
16046
|
}
|
|
@@ -16005,7 +16053,7 @@ function RemoveReadonlyInstantiate(context, state, type, options) {
|
|
|
16005
16053
|
return RemoveReadonlyAction(instantiatedType, options);
|
|
16006
16054
|
}
|
|
16007
16055
|
|
|
16008
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16056
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/_remove_readonly.mjs
|
|
16009
16057
|
function RemoveReadonlyDeferred(type, options = {}) {
|
|
16010
16058
|
return Deferred("RemoveReadonly", [type], options);
|
|
16011
16059
|
}
|
|
@@ -16013,7 +16061,7 @@ function RemoveReadonly(type, options = {}) {
|
|
|
16013
16061
|
return RemoveReadonlyAction(type, options);
|
|
16014
16062
|
}
|
|
16015
16063
|
|
|
16016
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16064
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs
|
|
16017
16065
|
function RemoveOptionalOperation(type) {
|
|
16018
16066
|
return exports_memory.Discard(type, ["~optional"]);
|
|
16019
16067
|
}
|
|
@@ -16026,7 +16074,7 @@ function RemoveOptionalInstantiate(context, state, type, options) {
|
|
|
16026
16074
|
return RemoveOptionalAction(instantiatedType, options);
|
|
16027
16075
|
}
|
|
16028
16076
|
|
|
16029
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16077
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/_remove_optional.mjs
|
|
16030
16078
|
function RemoveOptionalDeferred(type, options = {}) {
|
|
16031
16079
|
return Deferred("RemoveOptional", [type], options);
|
|
16032
16080
|
}
|
|
@@ -16034,7 +16082,7 @@ function RemoveOptional(type, options = {}) {
|
|
|
16034
16082
|
return RemoveOptionalAction(type, options);
|
|
16035
16083
|
}
|
|
16036
16084
|
|
|
16037
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16085
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/tuple/to_object.mjs
|
|
16038
16086
|
function TupleElementsToProperties(types) {
|
|
16039
16087
|
const result = types.reduceRight((result2, right, index) => {
|
|
16040
16088
|
return { [index]: right, ...result2 };
|
|
@@ -16047,7 +16095,10 @@ function TupleToObject(type) {
|
|
|
16047
16095
|
return result;
|
|
16048
16096
|
}
|
|
16049
16097
|
|
|
16050
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16098
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/composite.mjs
|
|
16099
|
+
function CanComposite(type) {
|
|
16100
|
+
return IsObject2(type) || IsTuple(type);
|
|
16101
|
+
}
|
|
16051
16102
|
function IsReadonlyProperty(left, right) {
|
|
16052
16103
|
return IsReadonly(left) ? IsReadonly(right) ? true : false : false;
|
|
16053
16104
|
}
|
|
@@ -16065,49 +16116,52 @@ function CompositePropertyKey(left, right, key) {
|
|
|
16065
16116
|
return key in left ? key in right ? CompositeProperty(left[key], right[key]) : left[key] : (key in right) ? right[key] : Never();
|
|
16066
16117
|
}
|
|
16067
16118
|
function CompositeProperties(left, right) {
|
|
16068
|
-
const keys = new Set([...exports_guard.Keys(
|
|
16069
|
-
|
|
16070
|
-
return { ...
|
|
16119
|
+
const keys = new Set([...exports_guard.Keys(left), ...exports_guard.Keys(right)]);
|
|
16120
|
+
const result = [...keys].reduce((result2, key) => {
|
|
16121
|
+
return { ...result2, [key]: CompositePropertyKey(left, right, key) };
|
|
16071
16122
|
}, {});
|
|
16123
|
+
return result;
|
|
16072
16124
|
}
|
|
16073
16125
|
function GetProperties(type) {
|
|
16074
|
-
const result = IsObject2(type) ? type.properties : IsTuple(type) ? TupleElementsToProperties(type.items) :
|
|
16126
|
+
const result = IsObject2(type) ? type.properties : IsTuple(type) ? TupleElementsToProperties(type.items) : {};
|
|
16075
16127
|
return result;
|
|
16076
16128
|
}
|
|
16077
16129
|
function Composite(left, right) {
|
|
16078
16130
|
const leftProperties = GetProperties(left);
|
|
16079
16131
|
const rightProperties = GetProperties(right);
|
|
16080
16132
|
const properties = CompositeProperties(leftProperties, rightProperties);
|
|
16081
|
-
|
|
16133
|
+
const result = _Object_(properties);
|
|
16134
|
+
return result;
|
|
16082
16135
|
}
|
|
16083
16136
|
|
|
16084
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16085
|
-
function
|
|
16137
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/narrow.mjs
|
|
16138
|
+
function NarrowCompareRule(left, right) {
|
|
16086
16139
|
const result = Compare(left, right);
|
|
16087
|
-
return exports_guard.IsEqual(result,
|
|
16140
|
+
return exports_guard.IsEqual(result, CompareResultLeftInside) ? left : exports_guard.IsEqual(result, CompareResultRightInside) ? right : exports_guard.IsEqual(result, CompareResultEqual) ? right : Never();
|
|
16088
16141
|
}
|
|
16089
|
-
|
|
16090
|
-
|
|
16091
|
-
|
|
16092
|
-
return
|
|
16142
|
+
function NarrowCompositeRule(left, right) {
|
|
16143
|
+
const canCompositeLeft = CanComposite(left);
|
|
16144
|
+
const canCompositeRight = CanComposite(right);
|
|
16145
|
+
return canCompositeLeft && canCompositeRight ? Composite(left, right) : canCompositeLeft && !canCompositeRight ? left : !canCompositeLeft && canCompositeRight ? right : NarrowCompareRule(left, right);
|
|
16093
16146
|
}
|
|
16094
|
-
function
|
|
16095
|
-
|
|
16096
|
-
|
|
16097
|
-
|
|
16147
|
+
function Narrow(left, right) {
|
|
16148
|
+
return IsNever(left) ? left : IsAny(left) ? left : IsUnknown(left) ? right : IsNever(right) ? right : IsAny(right) ? right : IsUnknown(right) ? left : NarrowCompositeRule(left, right);
|
|
16149
|
+
}
|
|
16150
|
+
|
|
16151
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/distribute.mjs
|
|
16152
|
+
function ShouldEvaluate(left, right) {
|
|
16153
|
+
const result = IsUnion(left) || IsUnion(right);
|
|
16098
16154
|
return result;
|
|
16099
16155
|
}
|
|
16100
16156
|
function DistributeOperation(left, right) {
|
|
16101
16157
|
const evaluatedLeft = EvaluateType(left);
|
|
16102
16158
|
const evaluatedRight = EvaluateType(right);
|
|
16103
|
-
const
|
|
16104
|
-
const
|
|
16105
|
-
const IsObjectRight = IsObjectLike(evaluatedRight);
|
|
16106
|
-
const result = isUnionOperand ? EvaluateIntersect([evaluatedLeft, evaluatedRight]) : isObjectLeft && IsObjectRight ? Composite(evaluatedLeft, evaluatedRight) : isObjectLeft && !IsObjectRight ? evaluatedLeft : !isObjectLeft && IsObjectRight ? evaluatedRight : Narrow(evaluatedLeft, evaluatedRight);
|
|
16159
|
+
const shouldEvaluate = ShouldEvaluate(evaluatedLeft, evaluatedRight);
|
|
16160
|
+
const result = shouldEvaluate ? EvaluateIntersect([evaluatedLeft, evaluatedRight]) : Narrow(evaluatedLeft, evaluatedRight);
|
|
16107
16161
|
return result;
|
|
16108
16162
|
}
|
|
16109
16163
|
function DistributeType(type, types, result = []) {
|
|
16110
|
-
return exports_guard.ShiftLeft(types, (left, right) => DistributeType(type, right, [...result, DistributeOperation(
|
|
16164
|
+
return exports_guard.ShiftLeft(types, (left, right) => DistributeType(type, right, [...result, DistributeOperation(left, type)]), () => exports_guard.IsEqual(result.length, 0) ? [type] : result);
|
|
16111
16165
|
}
|
|
16112
16166
|
function DistributeUnion(types, distribution, result = []) {
|
|
16113
16167
|
return exports_guard.ShiftLeft(types, (left, right) => DistributeUnion(right, distribution, [...result, ...Distribute([left], distribution)]), () => result);
|
|
@@ -16116,16 +16170,14 @@ function Distribute(types, result = []) {
|
|
|
16116
16170
|
return exports_guard.ShiftLeft(types, (left, right) => IsUnion(left) ? Distribute(right, DistributeUnion(left.anyOf, result)) : Distribute(right, DistributeType(left, result)), () => result);
|
|
16117
16171
|
}
|
|
16118
16172
|
|
|
16119
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16173
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/exclude/operation.mjs
|
|
16120
16174
|
function ExcludeType(left, right) {
|
|
16121
16175
|
const check2 = Extends({}, left, right);
|
|
16122
16176
|
const result = exports_result.IsExtendsTrueLike(check2) ? [] : [left];
|
|
16123
16177
|
return result;
|
|
16124
16178
|
}
|
|
16125
|
-
function ExcludeUnion(
|
|
16126
|
-
return
|
|
16127
|
-
return [...result, ...ExcludeType(head, right)];
|
|
16128
|
-
}, []);
|
|
16179
|
+
function ExcludeUnion(left, right, result = []) {
|
|
16180
|
+
return exports_guard.ShiftLeft(left, (head, tail) => ExcludeUnion(tail, right, [...result, ...ExcludeType(head, right)]), () => result);
|
|
16129
16181
|
}
|
|
16130
16182
|
function ExcludeOperation(left, right) {
|
|
16131
16183
|
const evaluated = EvaluateType(left);
|
|
@@ -16135,21 +16187,20 @@ function ExcludeOperation(left, right) {
|
|
|
16135
16187
|
return result;
|
|
16136
16188
|
}
|
|
16137
16189
|
|
|
16138
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16190
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs
|
|
16139
16191
|
function EvaluateDependent(if_, then_, else_) {
|
|
16140
|
-
const
|
|
16192
|
+
const intersected = EvaluateIntersect([if_, then_]);
|
|
16141
16193
|
const excluded = ExcludeOperation(else_, if_);
|
|
16142
|
-
const result = EvaluateUnion([
|
|
16194
|
+
const result = EvaluateUnion([intersected, excluded]);
|
|
16143
16195
|
return result;
|
|
16144
16196
|
}
|
|
16145
|
-
function EvaluateEnum(values) {
|
|
16146
|
-
|
|
16147
|
-
return EvaluateUnion(result);
|
|
16197
|
+
function EvaluateEnum(values, result = []) {
|
|
16198
|
+
return exports_guard.ShiftLeft(values, (left, right) => EvaluateEnum(right, [...result, Literal(left)]), () => EvaluateUnion(result));
|
|
16148
16199
|
}
|
|
16149
16200
|
function EvaluateIntersect(types) {
|
|
16150
16201
|
const distribution = Distribute(types);
|
|
16151
16202
|
const broadend = Broaden(distribution);
|
|
16152
|
-
const result =
|
|
16203
|
+
const result = EvaluateUnion(broadend);
|
|
16153
16204
|
return result;
|
|
16154
16205
|
}
|
|
16155
16206
|
function EvaluateTemplateLiteral(pattern) {
|
|
@@ -16163,50 +16214,51 @@ function EvaluateUnion(types) {
|
|
|
16163
16214
|
return result;
|
|
16164
16215
|
}
|
|
16165
16216
|
function EvaluateType(type) {
|
|
16166
|
-
|
|
16217
|
+
const result = IsDependent(type) ? EvaluateDependent(type.if, type.then, type.else) : IsEnum(type) ? EvaluateEnum(type.enum) : IsIntersect(type) ? EvaluateIntersect(type.allOf) : IsTemplateLiteral(type) ? EvaluateTemplateLiteral(type.pattern) : IsUnion(type) ? EvaluateUnion(type.anyOf) : type;
|
|
16218
|
+
return result;
|
|
16167
16219
|
}
|
|
16168
16220
|
function EvaluateUnionFast(types) {
|
|
16169
16221
|
const result = exports_guard.IsEqual(types.length, 1) ? types[0] : exports_guard.IsEqual(types.length, 0) ? Never() : Union(types);
|
|
16170
16222
|
return result;
|
|
16171
16223
|
}
|
|
16172
16224
|
|
|
16173
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16225
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_enum.mjs
|
|
16174
16226
|
function FromEnumKey(values, value) {
|
|
16175
16227
|
const unionKey = EvaluateEnum(values);
|
|
16176
16228
|
const result = FromKey(unionKey, value);
|
|
16177
16229
|
return result;
|
|
16178
16230
|
}
|
|
16179
16231
|
|
|
16180
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16232
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_integer.mjs
|
|
16181
16233
|
function FromIntegerKey(_key, value) {
|
|
16182
16234
|
const result = CreateRecord(IntegerKey, value);
|
|
16183
16235
|
return result;
|
|
16184
16236
|
}
|
|
16185
16237
|
|
|
16186
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16238
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs
|
|
16187
16239
|
function FromIntersectKey(types, value) {
|
|
16188
16240
|
const evaluatedKey = EvaluateIntersect(types);
|
|
16189
16241
|
const result = FromKey(evaluatedKey, value);
|
|
16190
16242
|
return result;
|
|
16191
16243
|
}
|
|
16192
16244
|
|
|
16193
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16245
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_literal.mjs
|
|
16194
16246
|
function FromLiteralKey(key, value) {
|
|
16195
16247
|
return exports_guard.IsString(key) || exports_guard.IsNumber(key) ? _Object_({ [key]: value }) : exports_guard.IsEqual(key, false) ? _Object_({ false: value }) : exports_guard.IsEqual(key, true) ? _Object_({ true: value }) : _Object_({});
|
|
16196
16248
|
}
|
|
16197
16249
|
|
|
16198
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16250
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_number.mjs
|
|
16199
16251
|
function FromNumberKey(_key, value) {
|
|
16200
16252
|
const result = CreateRecord(NumberKey, value);
|
|
16201
16253
|
return result;
|
|
16202
16254
|
}
|
|
16203
16255
|
|
|
16204
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16256
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_string.mjs
|
|
16205
16257
|
function FromStringKey(key, value) {
|
|
16206
16258
|
return exports_guard.HasPropertyKey(key, "pattern") && (exports_guard.IsString(key.pattern) || key.pattern instanceof RegExp) ? CreateRecord(key.pattern.toString(), value) : CreateRecord(StringKey, value);
|
|
16207
16259
|
}
|
|
16208
16260
|
|
|
16209
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16261
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs
|
|
16210
16262
|
function FromTemplateKey(pattern, value) {
|
|
16211
16263
|
const types = ParsePatternIntoTypes(pattern);
|
|
16212
16264
|
const finite = IsTemplateLiteralFinite(types);
|
|
@@ -16214,18 +16266,16 @@ function FromTemplateKey(pattern, value) {
|
|
|
16214
16266
|
return result;
|
|
16215
16267
|
}
|
|
16216
16268
|
|
|
16217
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16269
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/flatten.mjs
|
|
16218
16270
|
function FlattenType(type) {
|
|
16219
16271
|
const result = IsUnion(type) ? Flatten(type.anyOf) : [type];
|
|
16220
16272
|
return result;
|
|
16221
16273
|
}
|
|
16222
|
-
function Flatten(types) {
|
|
16223
|
-
return
|
|
16224
|
-
return [...result, ...FlattenType(type)];
|
|
16225
|
-
}, []);
|
|
16274
|
+
function Flatten(types, result = []) {
|
|
16275
|
+
return exports_guard.ShiftLeft(types, (left, right) => Flatten(right, [...result, ...FlattenType(left)]), () => result);
|
|
16226
16276
|
}
|
|
16227
16277
|
|
|
16228
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16278
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_union.mjs
|
|
16229
16279
|
function StringOrNumberCheck(types) {
|
|
16230
16280
|
return types.some((type) => IsString3(type) || IsNumber3(type) || IsInteger2(type));
|
|
16231
16281
|
}
|
|
@@ -16248,13 +16298,13 @@ function FromUnionKey(types, value) {
|
|
|
16248
16298
|
return IsSchema(record2) ? record2 : CreateObject(flattened, value);
|
|
16249
16299
|
}
|
|
16250
16300
|
|
|
16251
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16301
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key.mjs
|
|
16252
16302
|
function FromKey(key, value) {
|
|
16253
16303
|
const result = IsAny(key) ? FromAnyKey(value) : IsBoolean3(key) ? FromBooleanKey(value) : IsEnum(key) ? FromEnumKey(key.enum, value) : IsInteger2(key) ? FromIntegerKey(key, value) : IsIntersect(key) ? FromIntersectKey(key.allOf, value) : IsLiteral(key) ? FromLiteralKey(key.const, value) : IsNumber3(key) ? FromNumberKey(key, value) : IsUnion(key) ? FromUnionKey(key.anyOf, value) : IsString3(key) ? FromStringKey(key, value) : IsTemplateLiteral(key) ? FromTemplateKey(key.pattern, value) : _Object_({});
|
|
16254
16304
|
return result;
|
|
16255
16305
|
}
|
|
16256
16306
|
|
|
16257
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16307
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/instantiate.mjs
|
|
16258
16308
|
function RecordAction(key, value, options) {
|
|
16259
16309
|
const result = CanInstantiate([key]) ? exports_memory.Update(FromKey(key, value), {}, options) : RecordDeferred(key, value, options);
|
|
16260
16310
|
return result;
|
|
@@ -16265,7 +16315,7 @@ function RecordInstantiate(context, state, key, value, options) {
|
|
|
16265
16315
|
return RecordAction(instantiatedKey, instantiatedValue, options);
|
|
16266
16316
|
}
|
|
16267
16317
|
|
|
16268
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16318
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/record.mjs
|
|
16269
16319
|
var IntegerKey = `^${IntegerPattern}$`;
|
|
16270
16320
|
var NumberKey = `^${NumberPattern}$`;
|
|
16271
16321
|
var StringKey = `^${StringPattern}$`;
|
|
@@ -16296,50 +16346,47 @@ function RecordValue(type) {
|
|
|
16296
16346
|
function IsRecord(value) {
|
|
16297
16347
|
return IsKind(value, "Record");
|
|
16298
16348
|
}
|
|
16299
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16349
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/rest.mjs
|
|
16300
16350
|
function Rest(type) {
|
|
16301
16351
|
return exports_memory.Create({ "~kind": "Rest" }, { type: "rest", items: type }, {});
|
|
16302
16352
|
}
|
|
16303
16353
|
function IsRest(value) {
|
|
16304
16354
|
return IsKind(value, "Rest");
|
|
16305
16355
|
}
|
|
16306
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16356
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/this.mjs
|
|
16307
16357
|
function This(options) {
|
|
16308
16358
|
return exports_memory.Create({ ["~kind"]: "This" }, { $ref: "#" }, options);
|
|
16309
16359
|
}
|
|
16310
16360
|
function IsThis(value) {
|
|
16311
16361
|
return IsKind(value, "This");
|
|
16312
16362
|
}
|
|
16313
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16363
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/undefined.mjs
|
|
16314
16364
|
function Undefined(options) {
|
|
16315
16365
|
return exports_memory.Create({ "~kind": "Undefined" }, { type: "undefined" }, options);
|
|
16316
16366
|
}
|
|
16317
16367
|
function IsUndefined2(value) {
|
|
16318
16368
|
return IsKind(value, "Undefined");
|
|
16319
16369
|
}
|
|
16320
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16370
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/void.mjs
|
|
16321
16371
|
function Void(options) {
|
|
16322
16372
|
return exports_memory.Create({ "~kind": "Void" }, { type: "void" }, options);
|
|
16323
16373
|
}
|
|
16324
16374
|
function IsVoid(value) {
|
|
16325
16375
|
return IsKind(value, "Void");
|
|
16326
16376
|
}
|
|
16327
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16377
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/mapping.mjs
|
|
16328
16378
|
function IntrinsicOrCall(ref2, parameters) {
|
|
16329
16379
|
return exports_guard.IsEqual(ref2, "Array") ? _Array_(parameters[0]) : exports_guard.IsEqual(ref2, "Capitalize") ? CapitalizeDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "ConstructorParameters") ? ConstructorParametersDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Evaluate") ? EvaluateDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Exclude") ? ExcludeDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Extract") ? ExtractDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Index") ? IndexDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "InstanceType") ? InstanceTypeDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Lowercase") ? LowercaseDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "NonNullable") ? NonNullableDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Omit") ? OmitDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Parameters") ? ParametersDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Partial") ? PartialDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Pick") ? PickDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Readonly") ? ReadonlyObjectDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "KeyOf") ? KeyOfDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Record") ? RecordDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Required") ? RequiredDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "ReturnType") ? ReturnTypeDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Uncapitalize") ? UncapitalizeDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Uppercase") ? UppercaseDeferred(parameters[0]) : CallConstruct(Ref(ref2), parameters);
|
|
16330
16380
|
}
|
|
16331
16381
|
function Unreachable2() {
|
|
16332
16382
|
throw Error("Unreachable");
|
|
16333
16383
|
}
|
|
16334
|
-
|
|
16335
|
-
return
|
|
16336
|
-
|
|
16337
|
-
|
|
16338
|
-
|
|
16339
|
-
|
|
16340
|
-
const [left, right] = input;
|
|
16341
|
-
return DelimitedDecode([...left, ...right]);
|
|
16342
|
-
};
|
|
16384
|
+
function DelimitedDecode(input, result = []) {
|
|
16385
|
+
return exports_guard.ShiftLeft(input, (left, right) => DelimitedDecode(right, [...result, left[1]]), () => result);
|
|
16386
|
+
}
|
|
16387
|
+
function Delimited(input) {
|
|
16388
|
+
return exports_guard.IsEqual(input.length, 3) ? [input[0], ...DelimitedDecode(input[1])] : [];
|
|
16389
|
+
}
|
|
16343
16390
|
function GenericParameterExtendsEqualsMapping(input) {
|
|
16344
16391
|
return Parameter(input[0], input[2], input[4]);
|
|
16345
16392
|
}
|
|
@@ -16570,17 +16617,11 @@ function _Object_Mapping(input) {
|
|
|
16570
16617
|
function ElementNamedMapping(input) {
|
|
16571
16618
|
return exports_guard.IsEqual(input.length, 5) ? AddReadonlyDeferred(AddOptionalDeferred(input[4])) : exports_guard.IsEqual(input.length, 3) ? input[2] : exports_guard.IsEqual(input.length, 4) ? exports_guard.IsEqual(input[2], "readonly") ? AddReadonlyDeferred(input[3]) : AddOptionalDeferred(input[3]) : Unreachable2();
|
|
16572
16619
|
}
|
|
16573
|
-
function ElementReadonlyOptionalMapping(input) {
|
|
16574
|
-
return AddReadonlyDeferred(AddOptionalDeferred(input[1]));
|
|
16575
|
-
}
|
|
16576
|
-
function ElementReadonlyMapping(input) {
|
|
16577
|
-
return AddReadonlyDeferred(input[1]);
|
|
16578
|
-
}
|
|
16579
|
-
function ElementOptionalMapping(input) {
|
|
16580
|
-
return AddOptionalDeferred(input[0]);
|
|
16581
|
-
}
|
|
16582
16620
|
function ElementBaseMapping(input) {
|
|
16583
|
-
|
|
16621
|
+
if (!exports_guard.IsArray(input) || !exports_guard.IsEqual(input.length, 3))
|
|
16622
|
+
return input;
|
|
16623
|
+
const [isReadonly, type, isOptional] = input;
|
|
16624
|
+
return isReadonly && isOptional ? AddReadonlyDeferred(AddOptionalDeferred(type)) : isReadonly && !isOptional ? AddReadonlyDeferred(type) : !isReadonly && isOptional ? AddOptionalDeferred(type) : type;
|
|
16584
16625
|
}
|
|
16585
16626
|
function ElementMapping(input) {
|
|
16586
16627
|
return exports_guard.IsEqual(input.length, 2) ? Rest(input[1]) : exports_guard.IsEqual(input.length, 1) ? input[0] : Unreachable2();
|
|
@@ -16748,20 +16789,19 @@ function ModuleDeclarationDelimiterMapping(input) {
|
|
|
16748
16789
|
return input;
|
|
16749
16790
|
}
|
|
16750
16791
|
function ModuleDeclarationListMapping(input) {
|
|
16751
|
-
return
|
|
16792
|
+
return Delimited(input);
|
|
16752
16793
|
}
|
|
16753
16794
|
function ModuleDeclarationMapping(input) {
|
|
16754
16795
|
return input[1];
|
|
16755
16796
|
}
|
|
16756
16797
|
function ModuleMapping(input) {
|
|
16757
|
-
const moduleDeclaration = input[0];
|
|
16758
|
-
|
|
16759
|
-
return ModuleDeferred(exports_memory.Assign(moduleDeclaration, moduleDeclarationList[0]));
|
|
16798
|
+
const [moduleDeclaration, moduleDeclarationList] = [input[0], input[1]];
|
|
16799
|
+
return ModuleDeferred(exports_memory.Assign(moduleDeclaration, PropertiesReduce(moduleDeclarationList)[0]));
|
|
16760
16800
|
}
|
|
16761
16801
|
function ScriptMapping(input) {
|
|
16762
16802
|
return input;
|
|
16763
16803
|
}
|
|
16764
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16804
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/internal/match.mjs
|
|
16765
16805
|
function IsMatch(value) {
|
|
16766
16806
|
return IsEqual(value.length, 2);
|
|
16767
16807
|
}
|
|
@@ -16769,7 +16809,7 @@ function Match2(input, ok, fail) {
|
|
|
16769
16809
|
return IsMatch(input) ? ok(input[0], input[1]) : fail();
|
|
16770
16810
|
}
|
|
16771
16811
|
|
|
16772
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16812
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/internal/take.mjs
|
|
16773
16813
|
function TakeVariant(variant, input) {
|
|
16774
16814
|
return IsEqual(input.indexOf(variant), 0) ? [variant, input.slice(variant.length)] : [];
|
|
16775
16815
|
}
|
|
@@ -16782,7 +16822,7 @@ function Take(variants, input) {
|
|
|
16782
16822
|
return [];
|
|
16783
16823
|
}
|
|
16784
16824
|
|
|
16785
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16825
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/internal/char.mjs
|
|
16786
16826
|
function Range(start, end) {
|
|
16787
16827
|
return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i));
|
|
16788
16828
|
}
|
|
@@ -16801,7 +16841,7 @@ var Dot = ".";
|
|
|
16801
16841
|
var DollarSign = "$";
|
|
16802
16842
|
var Hyphen = "-";
|
|
16803
16843
|
|
|
16804
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16844
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/internal/trim.mjs
|
|
16805
16845
|
var LineComment = "//";
|
|
16806
16846
|
var OpenComment = "/*";
|
|
16807
16847
|
var CloseComment = "*/";
|
|
@@ -16827,12 +16867,12 @@ function Trim(input) {
|
|
|
16827
16867
|
return trimmed.startsWith(OpenComment) ? Trim(DiscardMultilineComment(trimmed.slice(2))) : trimmed.startsWith(LineComment) ? Trim(DiscardLineComment(trimmed.slice(2))) : trimmed;
|
|
16828
16868
|
}
|
|
16829
16869
|
|
|
16830
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16870
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/internal/optional.mjs
|
|
16831
16871
|
function Optional2(value, input) {
|
|
16832
16872
|
return Match2(Take([value], input), (Optional3, Rest2) => [Optional3, Rest2], () => ["", input]);
|
|
16833
16873
|
}
|
|
16834
16874
|
|
|
16835
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16875
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/internal/many.mjs
|
|
16836
16876
|
function IsDiscard(discard2, input) {
|
|
16837
16877
|
return discard2.includes(input);
|
|
16838
16878
|
}
|
|
@@ -16840,7 +16880,7 @@ function Many(allowed, discard2, input, result = "") {
|
|
|
16840
16880
|
return Match2(Take(allowed, input), (Char, Rest2) => IsDiscard(discard2, Char) ? Many(allowed, discard2, Rest2, result) : Many(allowed, discard2, Rest2, `${result}${Char}`), () => [result, input]);
|
|
16841
16881
|
}
|
|
16842
16882
|
|
|
16843
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16883
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/unsigned_integer.mjs
|
|
16844
16884
|
function TakeNonZero(input) {
|
|
16845
16885
|
return Take(NonZero, input);
|
|
16846
16886
|
}
|
|
@@ -16855,7 +16895,7 @@ function UnsignedInteger(input) {
|
|
|
16855
16895
|
return TakeUnsignedInteger(Trim(input));
|
|
16856
16896
|
}
|
|
16857
16897
|
|
|
16858
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16898
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/integer.mjs
|
|
16859
16899
|
function TakeSign(input) {
|
|
16860
16900
|
return Optional2(Hyphen, input);
|
|
16861
16901
|
}
|
|
@@ -16866,21 +16906,21 @@ function Integer2(input) {
|
|
|
16866
16906
|
return TakeSignedInteger(Trim(input));
|
|
16867
16907
|
}
|
|
16868
16908
|
|
|
16869
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16909
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/bigint.mjs
|
|
16870
16910
|
function TakeBigInt(input) {
|
|
16871
16911
|
return Match2(Integer2(input), (Integer3, IntegerRest) => Match2(Take(["n"], IntegerRest), (_N, NRest) => [`${Integer3}`, NRest], () => []), () => []);
|
|
16872
16912
|
}
|
|
16873
16913
|
function BigInt3(input) {
|
|
16874
16914
|
return TakeBigInt(input);
|
|
16875
16915
|
}
|
|
16876
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16916
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/const.mjs
|
|
16877
16917
|
function TakeConst(const_, input) {
|
|
16878
16918
|
return Take([const_], input);
|
|
16879
16919
|
}
|
|
16880
16920
|
function Const(const_, input) {
|
|
16881
16921
|
return IsEqual(const_, "") ? ["", input] : const_.startsWith(NewLine) ? TakeConst(const_, TrimWhitespace(input)) : const_.startsWith(WhiteSpace) ? TakeConst(const_, input) : TakeConst(const_, Trim(input));
|
|
16882
16922
|
}
|
|
16883
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16923
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/ident.mjs
|
|
16884
16924
|
var Initial = [...Alpha, UnderScore, DollarSign];
|
|
16885
16925
|
function TakeInitial(input) {
|
|
16886
16926
|
return Take(Initial, input);
|
|
@@ -16895,7 +16935,7 @@ function TakeIdent(input) {
|
|
|
16895
16935
|
function Ident(input) {
|
|
16896
16936
|
return TakeIdent(Trim(input));
|
|
16897
16937
|
}
|
|
16898
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16938
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/unsigned_number.mjs
|
|
16899
16939
|
var AllowedDigits2 = [...Digit, UnderScore];
|
|
16900
16940
|
function IsLeadingDot(input) {
|
|
16901
16941
|
return IsMatch(Take([Dot], input));
|
|
@@ -16916,7 +16956,7 @@ function UnsignedNumber(input) {
|
|
|
16916
16956
|
return TakeUnsignedNumber(Trim(input));
|
|
16917
16957
|
}
|
|
16918
16958
|
|
|
16919
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16959
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/number.mjs
|
|
16920
16960
|
function TakeSign2(input) {
|
|
16921
16961
|
return Optional2(Hyphen, input);
|
|
16922
16962
|
}
|
|
@@ -16926,7 +16966,7 @@ function TakeSignedNumber(input) {
|
|
|
16926
16966
|
function Number3(input) {
|
|
16927
16967
|
return TakeSignedNumber(Trim(input));
|
|
16928
16968
|
}
|
|
16929
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16969
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/until.mjs
|
|
16930
16970
|
function TakeOne(input) {
|
|
16931
16971
|
const result = IsEqual(input, "") ? [] : [input.slice(0, 1), input.slice(1)];
|
|
16932
16972
|
return result;
|
|
@@ -16938,7 +16978,7 @@ function Until(end, input, result = "") {
|
|
|
16938
16978
|
return Match2(TakeOne(input), (One, Rest2) => IsInputMatchSentinal(end, input) ? [result, input] : Until(end, Rest2, `${result}${One}`), () => []);
|
|
16939
16979
|
}
|
|
16940
16980
|
|
|
16941
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16981
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/span.mjs
|
|
16942
16982
|
function MultiLine(start, end, input) {
|
|
16943
16983
|
return Match2(Take([start], input), (_, Rest2) => Match2(Until([end], Rest2), (Until2, UntilRest) => Match2(Take([end], UntilRest), (_2, Rest3) => [`${Until2}`, Rest3], () => []), () => []), () => []);
|
|
16944
16984
|
}
|
|
@@ -16948,7 +16988,7 @@ function SingleLine(start, end, input) {
|
|
|
16948
16988
|
function Span(start, end, multiLine, input) {
|
|
16949
16989
|
return multiLine ? MultiLine(start, end, Trim(input)) : SingleLine(start, end, Trim(input));
|
|
16950
16990
|
}
|
|
16951
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
16991
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/string.mjs
|
|
16952
16992
|
function TakeInitial2(quotes, input) {
|
|
16953
16993
|
return Take(quotes, input);
|
|
16954
16994
|
}
|
|
@@ -16961,22 +17001,22 @@ function TakeString(quotes, input) {
|
|
|
16961
17001
|
function String3(quotes, input) {
|
|
16962
17002
|
return TakeString(quotes, Trim(input));
|
|
16963
17003
|
}
|
|
16964
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17004
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/until_1.mjs
|
|
16965
17005
|
function Until_1(end, input) {
|
|
16966
17006
|
return Match2(Until(end, input), (Until2, UntilRest) => IsEqual(Until2, "") ? [] : [Until2, UntilRest], () => []);
|
|
16967
17007
|
}
|
|
16968
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17008
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/parser.mjs
|
|
16969
17009
|
var If = (result, left, right = () => []) => result.length === 2 ? left(result) : right();
|
|
16970
17010
|
var GenericParameterExtendsEquals = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("extends", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => If(Const("=", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [GenericParameterExtendsEqualsMapping(_0), input2]);
|
|
16971
17011
|
var GenericParameterExtends = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("extends", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [GenericParameterExtendsMapping(_0), input2]);
|
|
16972
17012
|
var GenericParameterEquals = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("=", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [GenericParameterEqualsMapping(_0), input2]);
|
|
16973
17013
|
var GenericParameterIdentifier = (input) => If(Ident(input), ([_0, input2]) => [GenericParameterIdentifierMapping(_0), input2]);
|
|
16974
17014
|
var GenericParameter = (input) => If(If(GenericParameterExtendsEquals(input), ([_0, input2]) => [_0, input2], () => If(GenericParameterExtends(input), ([_0, input2]) => [_0, input2], () => If(GenericParameterEquals(input), ([_0, input2]) => [_0, input2], () => If(GenericParameterIdentifier(input), ([_0, input2]) => [_0, input2], () => [])))), ([_0, input2]) => [GenericParameterMapping(_0), input2]);
|
|
16975
|
-
var GenericParameterList_0 = (input, result = []) => If(If(
|
|
16976
|
-
var GenericParameterList = (input) => If(If(
|
|
17015
|
+
var GenericParameterList_0 = (input, result = []) => If(If(Const(",", input), ([_0, input2]) => If(GenericParameter(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => GenericParameterList_0(input2, [...result, _0]), () => [result, input]);
|
|
17016
|
+
var GenericParameterList = (input) => If(If(If(GenericParameter(input), ([_0, input2]) => If(GenericParameterList_0(input2), ([_1, input3]) => If(If(Const(",", input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [GenericParameterListMapping(_0), input2]);
|
|
16977
17017
|
var GenericParameters = (input) => If(If(Const("<", input), ([_0, input2]) => If(GenericParameterList(input2), ([_1, input3]) => If(Const(">", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [GenericParametersMapping(_0), input2]);
|
|
16978
|
-
var GenericCallArgumentList_0 = (input, result = []) => If(If(
|
|
16979
|
-
var GenericCallArgumentList = (input) => If(If(
|
|
17018
|
+
var GenericCallArgumentList_0 = (input, result = []) => If(If(Const(",", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => GenericCallArgumentList_0(input2, [...result, _0]), () => [result, input]);
|
|
17019
|
+
var GenericCallArgumentList = (input) => If(If(If(Type(input), ([_0, input2]) => If(GenericCallArgumentList_0(input2), ([_1, input3]) => If(If(Const(",", input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [GenericCallArgumentListMapping(_0), input2]);
|
|
16980
17020
|
var GenericCallArguments = (input) => If(If(Const("<", input), ([_0, input2]) => If(GenericCallArgumentList(input2), ([_1, input3]) => If(Const(">", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [GenericCallArgumentsMapping(_0), input2]);
|
|
16981
17021
|
var GenericCall = (input) => If(If(Ident(input), ([_0, input2]) => If(GenericCallArguments(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [GenericCallMapping(_0), input2]);
|
|
16982
17022
|
var OptionalSemiColon = (input) => If(If(If(Const(";", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [OptionalSemiColonMapping(_0), input2]);
|
|
@@ -17032,18 +17072,15 @@ var PropertyDelimiter = (input) => If(If(If(Const(",", input), ([_0, input2]) =>
|
|
|
17032
17072
|
`, input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const(";", input), ([_0, input2]) => If(Const(`
|
|
17033
17073
|
`, input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const(",", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If(If(Const(";", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If(If(Const(`
|
|
17034
17074
|
`, input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => []))))), ([_0, input2]) => [PropertyDelimiterMapping(_0), input2]);
|
|
17035
|
-
var PropertyList_0 = (input, result = []) => If(If(
|
|
17036
|
-
var PropertyList = (input) => If(If(
|
|
17075
|
+
var PropertyList_0 = (input, result = []) => If(If(PropertyDelimiter(input), ([_0, input2]) => If(Property(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => PropertyList_0(input2, [...result, _0]), () => [result, input]);
|
|
17076
|
+
var PropertyList = (input) => If(If(If(Property(input), ([_0, input2]) => If(PropertyList_0(input2), ([_1, input3]) => If(If(PropertyDelimiter(input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [PropertyListMapping(_0), input2]);
|
|
17037
17077
|
var Properties = (input) => If(If(Const("{", input), ([_0, input2]) => If(PropertyList(input2), ([_1, input3]) => If(Const("}", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [PropertiesMapping(_0), input2]);
|
|
17038
17078
|
var _Object_2 = (input) => If(Properties(input), ([_0, input2]) => [_Object_Mapping(_0), input2]);
|
|
17039
17079
|
var ElementNamed = (input) => If(If(If(Ident(input), ([_0, input2]) => If(Const("?", input2), ([_1, input3]) => If(Const(":", input3), ([_2, input4]) => If(Const("readonly", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [_0, input2], () => If(If(Ident(input), ([_0, input2]) => If(Const(":", input2), ([_1, input3]) => If(Const("readonly", input3), ([_2, input4]) => If(Type(input4), ([_3, input5]) => [[_0, _1, _2, _3], input5])))), ([_0, input2]) => [_0, input2], () => If(If(Ident(input), ([_0, input2]) => If(Const("?", input2), ([_1, input3]) => If(Const(":", input3), ([_2, input4]) => If(Type(input4), ([_3, input5]) => [[_0, _1, _2, _3], input5])))), ([_0, input2]) => [_0, input2], () => If(If(Ident(input), ([_0, input2]) => If(Const(":", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => [])))), ([_0, input2]) => [ElementNamedMapping(_0), input2]);
|
|
17040
|
-
var
|
|
17041
|
-
var ElementReadonly = (input) => If(If(Const("readonly", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ElementReadonlyMapping(_0), input2]);
|
|
17042
|
-
var ElementOptional = (input) => If(If(Type(input), ([_0, input2]) => If(Const("?", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ElementOptionalMapping(_0), input2]);
|
|
17043
|
-
var ElementBase = (input) => If(If(ElementNamed(input), ([_0, input2]) => [_0, input2], () => If(ElementReadonlyOptional(input), ([_0, input2]) => [_0, input2], () => If(ElementReadonly(input), ([_0, input2]) => [_0, input2], () => If(ElementOptional(input), ([_0, input2]) => [_0, input2], () => If(Type(input), ([_0, input2]) => [_0, input2], () => []))))), ([_0, input2]) => [ElementBaseMapping(_0), input2]);
|
|
17080
|
+
var ElementBase = (input) => If(If(ElementNamed(input), ([_0, input2]) => [_0, input2], () => If(If(Readonly2(input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => If(Optional3(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ElementBaseMapping(_0), input2]);
|
|
17044
17081
|
var Element = (input) => If(If(If(Const("...", input), ([_0, input2]) => If(ElementBase(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(ElementBase(input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ElementMapping(_0), input2]);
|
|
17045
|
-
var ElementList_0 = (input, result = []) => If(If(
|
|
17046
|
-
var ElementList = (input) => If(If(
|
|
17082
|
+
var ElementList_0 = (input, result = []) => If(If(Const(",", input), ([_0, input2]) => If(Element(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => ElementList_0(input2, [...result, _0]), () => [result, input]);
|
|
17083
|
+
var ElementList = (input) => If(If(If(Element(input), ([_0, input2]) => If(ElementList_0(input2), ([_1, input3]) => If(If(Const(",", input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ElementListMapping(_0), input2]);
|
|
17047
17084
|
var _Tuple_ = (input) => If(If(Const("[", input), ([_0, input2]) => If(ElementList(input2), ([_1, input3]) => If(Const("]", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_Tuple_Mapping(_0), input2]);
|
|
17048
17085
|
var ParameterReadonlyOptional = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("?", input2), ([_1, input3]) => If(Const(":", input3), ([_2, input4]) => If(Const("readonly", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [ParameterReadonlyOptionalMapping(_0), input2]);
|
|
17049
17086
|
var ParameterReadonly = (input) => If(If(Ident(input), ([_0, input2]) => If(Const(":", input2), ([_1, input3]) => If(Const("readonly", input3), ([_2, input4]) => If(Type(input4), ([_3, input5]) => [[_0, _1, _2, _3], input5])))), ([_0, input2]) => [ParameterReadonlyMapping(_0), input2]);
|
|
@@ -17051,8 +17088,8 @@ var ParameterOptional = (input) => If(If(Ident(input), ([_0, input2]) => If(Cons
|
|
|
17051
17088
|
var ParameterType = (input) => If(If(Ident(input), ([_0, input2]) => If(Const(":", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [ParameterTypeMapping(_0), input2]);
|
|
17052
17089
|
var ParameterBase = (input) => If(If(ParameterReadonlyOptional(input), ([_0, input2]) => [_0, input2], () => If(ParameterReadonly(input), ([_0, input2]) => [_0, input2], () => If(ParameterOptional(input), ([_0, input2]) => [_0, input2], () => If(ParameterType(input), ([_0, input2]) => [_0, input2], () => [])))), ([_0, input2]) => [ParameterBaseMapping(_0), input2]);
|
|
17053
17090
|
var Parameter2 = (input) => If(If(If(Const("...", input), ([_0, input2]) => If(ParameterBase(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(ParameterBase(input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ParameterMapping(_0), input2]);
|
|
17054
|
-
var ParameterList_0 = (input, result = []) => If(If(
|
|
17055
|
-
var ParameterList = (input) => If(If(
|
|
17091
|
+
var ParameterList_0 = (input, result = []) => If(If(Const(",", input), ([_0, input2]) => If(Parameter2(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => ParameterList_0(input2, [...result, _0]), () => [result, input]);
|
|
17092
|
+
var ParameterList = (input) => If(If(If(Parameter2(input), ([_0, input2]) => If(ParameterList_0(input2), ([_1, input3]) => If(If(Const(",", input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ParameterListMapping(_0), input2]);
|
|
17056
17093
|
var _Function_2 = (input) => If(If(Const("(", input), ([_0, input2]) => If(ParameterList(input2), ([_1, input3]) => If(Const(")", input3), ([_2, input4]) => If(Const("=>", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [_Function_Mapping(_0), input2]);
|
|
17057
17094
|
var _Constructor_ = (input) => If(If(Const("new", input), ([_0, input2]) => If(Const("(", input2), ([_1, input3]) => If(ParameterList(input3), ([_2, input4]) => If(Const(")", input4), ([_3, input5]) => If(Const("=>", input5), ([_4, input6]) => If(Type(input6), ([_5, input7]) => [[_0, _1, _2, _3, _4, _5], input7])))))), ([_0, input2]) => [_Constructor_Mapping(_0), input2]);
|
|
17058
17095
|
var MappedReadonly = (input) => If(If(If(Const("+", input), ([_0, input2]) => If(Const("readonly", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const("-", input), ([_0, input2]) => If(Const("readonly", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const("readonly", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])))), ([_0, input2]) => [MappedReadonlyMapping(_0), input2]);
|
|
@@ -17067,11 +17104,11 @@ var WithString = (input) => If(String3(['"', "'"], input), ([_0, input2]) => [Wi
|
|
|
17067
17104
|
var WithNull = (input) => If(Const("null", input), ([_0, input2]) => [WithNullMapping(_0), input2]);
|
|
17068
17105
|
var WithUndefined = (input) => If(Const("undefined", input), ([_0, input2]) => [WithUndefinedMapping(_0), input2]);
|
|
17069
17106
|
var WithProperty = (input) => If(If(PropertyKey(input), ([_0, input2]) => If(Const(":", input2), ([_1, input3]) => If(WithValue(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [WithPropertyMapping(_0), input2]);
|
|
17070
|
-
var WithPropertyList_0 = (input, result = []) => If(If(
|
|
17071
|
-
var WithPropertyList = (input) => If(If(
|
|
17107
|
+
var WithPropertyList_0 = (input, result = []) => If(If(PropertyDelimiter(input), ([_0, input2]) => If(WithProperty(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => WithPropertyList_0(input2, [...result, _0]), () => [result, input]);
|
|
17108
|
+
var WithPropertyList = (input) => If(If(If(WithProperty(input), ([_0, input2]) => If(WithPropertyList_0(input2), ([_1, input3]) => If(If(PropertyDelimiter(input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [WithPropertyListMapping(_0), input2]);
|
|
17072
17109
|
var WithObject = (input) => If(If(Const("{", input), ([_0, input2]) => If(WithPropertyList(input2), ([_1, input3]) => If(Const("}", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [WithObjectMapping(_0), input2]);
|
|
17073
|
-
var WithElementList_0 = (input, result = []) => If(If(
|
|
17074
|
-
var WithElementList = (input) => If(If(
|
|
17110
|
+
var WithElementList_0 = (input, result = []) => If(If(Const(",", input), ([_0, input2]) => If(WithValue(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => WithElementList_0(input2, [...result, _0]), () => [result, input]);
|
|
17111
|
+
var WithElementList = (input) => If(If(If(WithValue(input), ([_0, input2]) => If(WithElementList_0(input2), ([_1, input3]) => If(If(Const(",", input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [WithElementListMapping(_0), input2]);
|
|
17075
17112
|
var WithArray = (input) => If(If(Const("[", input), ([_0, input2]) => If(WithElementList(input2), ([_1, input3]) => If(Const("]", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [WithArrayMapping(_0), input2]);
|
|
17076
17113
|
var WithValue = (input) => If(If(WithBigInt(input), ([_0, input2]) => [_0, input2], () => If(WithNumber(input), ([_0, input2]) => [_0, input2], () => If(WithBoolean(input), ([_0, input2]) => [_0, input2], () => If(WithString(input), ([_0, input2]) => [_0, input2], () => If(WithNull(input), ([_0, input2]) => [_0, input2], () => If(WithUndefined(input), ([_0, input2]) => [_0, input2], () => If(WithObject(input), ([_0, input2]) => [_0, input2], () => If(WithArray(input), ([_0, input2]) => [_0, input2], () => [])))))))), ([_0, input2]) => [WithValueMapping(_0), input2]);
|
|
17077
17114
|
var PatternBigInt = (input) => If(Const("-?(?:0|[1-9][0-9]*)n", input), ([_0, input2]) => [PatternBigIntMapping(_0), input2]);
|
|
@@ -17086,8 +17123,8 @@ var PatternUnion = (input) => If(If(If(PatternTerm(input), ([_0, input2]) => If(
|
|
|
17086
17123
|
var PatternTerm = (input) => If(If(PatternBase(input), ([_0, input2]) => If(PatternBody(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [PatternTermMapping(_0), input2]);
|
|
17087
17124
|
var PatternBody = (input) => If(If(PatternUnion(input), ([_0, input2]) => [_0, input2], () => If(PatternTerm(input), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [PatternBodyMapping(_0), input2]);
|
|
17088
17125
|
var Pattern = (input) => If(If(Const("^", input), ([_0, input2]) => If(PatternBody(input2), ([_1, input3]) => If(Const("$", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [PatternMapping(_0), input2]);
|
|
17089
|
-
var InterfaceDeclarationHeritageList_0 = (input, result = []) => If(If(
|
|
17090
|
-
var InterfaceDeclarationHeritageList = (input) => If(If(
|
|
17126
|
+
var InterfaceDeclarationHeritageList_0 = (input, result = []) => If(If(Const(",", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => InterfaceDeclarationHeritageList_0(input2, [...result, _0]), () => [result, input]);
|
|
17127
|
+
var InterfaceDeclarationHeritageList = (input) => If(If(If(Type(input), ([_0, input2]) => If(InterfaceDeclarationHeritageList_0(input2), ([_1, input3]) => If(If(Const(",", input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [InterfaceDeclarationHeritageListMapping(_0), input2]);
|
|
17091
17128
|
var InterfaceDeclarationHeritage = (input) => If(If(If(Const("extends", input), ([_0, input2]) => If(InterfaceDeclarationHeritageList(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [InterfaceDeclarationHeritageMapping(_0), input2]);
|
|
17092
17129
|
var InterfaceDeclarationGeneric = (input) => If(If(Const("interface", input), ([_0, input2]) => If(Ident(input2), ([_1, input3]) => If(GenericParameters(input3), ([_2, input4]) => If(InterfaceDeclarationHeritage(input4), ([_3, input5]) => If(Properties(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [InterfaceDeclarationGenericMapping(_0), input2]);
|
|
17093
17130
|
var InterfaceDeclaration = (input) => If(If(Const("interface", input), ([_0, input2]) => If(Ident(input2), ([_1, input3]) => If(InterfaceDeclarationHeritage(input3), ([_2, input4]) => If(Properties(input4), ([_3, input5]) => [[_0, _1, _2, _3], input5])))), ([_0, input2]) => [InterfaceDeclarationMapping(_0), input2]);
|
|
@@ -17097,20 +17134,20 @@ var ExportKeyword = (input) => If(If(If(Const("export", input), ([_0, input2]) =
|
|
|
17097
17134
|
var ModuleDeclarationDelimiter = (input) => If(If(If(Const(";", input), ([_0, input2]) => If(Const(`
|
|
17098
17135
|
`, input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const(";", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If(If(Const(`
|
|
17099
17136
|
`, input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => []))), ([_0, input2]) => [ModuleDeclarationDelimiterMapping(_0), input2]);
|
|
17100
|
-
var ModuleDeclarationList_0 = (input, result = []) => If(If(
|
|
17101
|
-
var ModuleDeclarationList = (input) => If(If(
|
|
17137
|
+
var ModuleDeclarationList_0 = (input, result = []) => If(If(ModuleDeclarationDelimiter(input), ([_0, input2]) => If(ModuleDeclaration(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => ModuleDeclarationList_0(input2, [...result, _0]), () => [result, input]);
|
|
17138
|
+
var ModuleDeclarationList = (input) => If(If(If(ModuleDeclaration(input), ([_0, input2]) => If(ModuleDeclarationList_0(input2), ([_1, input3]) => If(If(ModuleDeclarationDelimiter(input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ModuleDeclarationListMapping(_0), input2]);
|
|
17102
17139
|
var ModuleDeclaration = (input) => If(If(ExportKeyword(input), ([_0, input2]) => If(If(InterfaceDeclarationGeneric(input2), ([_02, input3]) => [_02, input3], () => If(InterfaceDeclaration(input2), ([_02, input3]) => [_02, input3], () => If(TypeAliasDeclarationGeneric(input2), ([_02, input3]) => [_02, input3], () => If(TypeAliasDeclaration(input2), ([_02, input3]) => [_02, input3], () => [])))), ([_1, input3]) => If(OptionalSemiColon(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [ModuleDeclarationMapping(_0), input2]);
|
|
17103
17140
|
var Module = (input) => If(If(ModuleDeclaration(input), ([_0, input2]) => If(ModuleDeclarationList(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ModuleMapping(_0), input2]);
|
|
17104
17141
|
var Script = (input) => If(If(Module(input), ([_0, input2]) => [_0, input2], () => If(GenericType(input), ([_0, input2]) => [_0, input2], () => If(Type(input), ([_0, input2]) => [_0, input2], () => []))), ([_0, input2]) => [ScriptMapping(_0), input2]);
|
|
17105
17142
|
|
|
17106
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17143
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/patterns/template.mjs
|
|
17107
17144
|
function ParseTemplateIntoTypes(template) {
|
|
17108
17145
|
const parsed = TemplateLiteralTypes(`\`${template}\``);
|
|
17109
17146
|
const result = exports_guard.IsEqual(parsed.length, 2) ? parsed[0] : Unreachable();
|
|
17110
17147
|
return result;
|
|
17111
17148
|
}
|
|
17112
17149
|
|
|
17113
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17150
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/template_literal/encode.mjs
|
|
17114
17151
|
function JoinString(input) {
|
|
17115
17152
|
return input.join("|");
|
|
17116
17153
|
}
|
|
@@ -17167,7 +17204,7 @@ function TemplateLiteralEncode(types) {
|
|
|
17167
17204
|
return result;
|
|
17168
17205
|
}
|
|
17169
17206
|
|
|
17170
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17207
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs
|
|
17171
17208
|
function TemplateLiteralAction(types, options) {
|
|
17172
17209
|
const result = CanInstantiate(types) ? exports_memory.Update(TemplateLiteralEncode(types), {}, options) : TemplateLiteralDeferred(types, options);
|
|
17173
17210
|
return result;
|
|
@@ -17177,7 +17214,7 @@ function TemplateLiteralInstantiate(context, state, types, options) {
|
|
|
17177
17214
|
return TemplateLiteralAction(instantiatedTypes, options);
|
|
17178
17215
|
}
|
|
17179
17216
|
|
|
17180
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17217
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/template_literal.mjs
|
|
17181
17218
|
function TemplateLiteralDeferred(types, options = {}) {
|
|
17182
17219
|
return Deferred("TemplateLiteral", [types], options);
|
|
17183
17220
|
}
|
|
@@ -17199,7 +17236,7 @@ function IsTemplateLiteral(value) {
|
|
|
17199
17236
|
return IsKind(value, "TemplateLiteral");
|
|
17200
17237
|
}
|
|
17201
17238
|
|
|
17202
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17239
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/result.mjs
|
|
17203
17240
|
var exports_result = {};
|
|
17204
17241
|
__export(exports_result, {
|
|
17205
17242
|
Match: () => Match3,
|
|
@@ -17236,7 +17273,7 @@ function Match3(result, true_, false_) {
|
|
|
17236
17273
|
return IsExtendsTrueLike(result) ? true_(result.inferred) : false_();
|
|
17237
17274
|
}
|
|
17238
17275
|
|
|
17239
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17276
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/extends_right.mjs
|
|
17240
17277
|
function ExtendsRightInfer(inferred, name, left, right) {
|
|
17241
17278
|
return Match3(ExtendsLeft(inferred, left, right), (checkInferred) => ExtendsTrue(exports_memory.Assign(exports_memory.Assign(inferred, checkInferred), { [name]: left })), () => ExtendsFalse());
|
|
17242
17279
|
}
|
|
@@ -17264,12 +17301,12 @@ function ExtendsRight(inferred, left, right) {
|
|
|
17264
17301
|
return IsAny(right) ? ExtendsRightAny(inferred, left) : IsDependent(right) ? ExtendsRightDependent(inferred, left, right.if, right.then, right.else) : IsEnum(right) ? ExtendsRightEnum(inferred, left, right.enum) : IsInfer(right) ? ExtendsRightInfer(inferred, right.name, left, right.extends) : IsIntersect(right) ? ExtendsRightIntersect(inferred, left, right.allOf) : IsTemplateLiteral(right) ? ExtendsRightTemplateLiteral(inferred, left, right.pattern) : IsUnion(right) ? ExtendsRightUnion(inferred, left, right.anyOf) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
17265
17302
|
}
|
|
17266
17303
|
|
|
17267
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17304
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/any.mjs
|
|
17268
17305
|
function ExtendsAny(inferred, left, right) {
|
|
17269
17306
|
return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsUnion(inferred);
|
|
17270
17307
|
}
|
|
17271
17308
|
|
|
17272
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17309
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/array.mjs
|
|
17273
17310
|
function ExtendsImmutable(left, right) {
|
|
17274
17311
|
const isImmutableLeft = IsImmutable(left);
|
|
17275
17312
|
const isImmutableRight = IsImmutable(right);
|
|
@@ -17279,17 +17316,17 @@ function ExtendsArray(inferred, arrayLeft, left, right) {
|
|
|
17279
17316
|
return IsArray2(right) ? ExtendsImmutable(arrayLeft, right) ? ExtendsLeft(inferred, left, right.items) : ExtendsFalse() : ExtendsRight(inferred, arrayLeft, right);
|
|
17280
17317
|
}
|
|
17281
17318
|
|
|
17282
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17319
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/bigint.mjs
|
|
17283
17320
|
function ExtendsBigInt(inferred, left, right) {
|
|
17284
17321
|
return IsBigInt2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17285
17322
|
}
|
|
17286
17323
|
|
|
17287
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17324
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/boolean.mjs
|
|
17288
17325
|
function ExtendsBoolean(inferred, left, right) {
|
|
17289
17326
|
return IsBoolean3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17290
17327
|
}
|
|
17291
17328
|
|
|
17292
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17329
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/parameters.mjs
|
|
17293
17330
|
function ParameterCompare(inferred, left, leftRest, right, rightRest) {
|
|
17294
17331
|
const checkLeft = IsInfer(right) ? left : right;
|
|
17295
17332
|
const checkRight = IsInfer(right) ? right : left;
|
|
@@ -17307,44 +17344,44 @@ function ExtendsParameters(inferred, left, right) {
|
|
|
17307
17344
|
return ParametersLeft(inferred, left, right);
|
|
17308
17345
|
}
|
|
17309
17346
|
|
|
17310
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17347
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/return_type.mjs
|
|
17311
17348
|
function ExtendsReturnType(inferred, left, right) {
|
|
17312
17349
|
return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsLeft(inferred, left, right);
|
|
17313
17350
|
}
|
|
17314
17351
|
|
|
17315
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17352
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/constructor.mjs
|
|
17316
17353
|
function ExtendsConstructor(inferred, parameters, returnType, right) {
|
|
17317
17354
|
return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsConstructor2(right) ? Match3(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred2) => ExtendsReturnType(inferred2, returnType, right["instanceType"]), () => ExtendsFalse()) : ExtendsFalse();
|
|
17318
17355
|
}
|
|
17319
17356
|
|
|
17320
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17357
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/dependent.mjs
|
|
17321
17358
|
function ExtendsDependent(inferred, if_, then_, else_, right) {
|
|
17322
17359
|
return Match3(ExtendsLeft(inferred, if_, right), () => ExtendsLeft(inferred, then_, right), () => ExtendsLeft(inferred, else_, right));
|
|
17323
17360
|
}
|
|
17324
17361
|
|
|
17325
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17362
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/enum.mjs
|
|
17326
17363
|
function ExtendsEnum(inferred, left, right) {
|
|
17327
17364
|
const evaluated = EvaluateEnum(left);
|
|
17328
17365
|
return ExtendsLeft(inferred, evaluated, right);
|
|
17329
17366
|
}
|
|
17330
17367
|
|
|
17331
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17368
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/function.mjs
|
|
17332
17369
|
function ExtendsFunction(inferred, parameters, returnType, right) {
|
|
17333
17370
|
return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsFunction2(right) ? Match3(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred2) => ExtendsReturnType(inferred2, returnType, right["returnType"]), () => ExtendsFalse()) : ExtendsFalse();
|
|
17334
17371
|
}
|
|
17335
17372
|
|
|
17336
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17373
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/integer.mjs
|
|
17337
17374
|
function ExtendsInteger(inferred, left, right) {
|
|
17338
17375
|
return IsInteger2(right) ? ExtendsTrue(inferred) : IsNumber3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17339
17376
|
}
|
|
17340
17377
|
|
|
17341
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17378
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/intersect.mjs
|
|
17342
17379
|
function ExtendsIntersect(inferred, left, right) {
|
|
17343
17380
|
const evaluated = EvaluateIntersect(left);
|
|
17344
17381
|
return ExtendsLeft(inferred, evaluated, right);
|
|
17345
17382
|
}
|
|
17346
17383
|
|
|
17347
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17384
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/literal.mjs
|
|
17348
17385
|
function ExtendsLiteralValue(inferred, left, right) {
|
|
17349
17386
|
return left === right ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
17350
17387
|
}
|
|
@@ -17364,22 +17401,22 @@ function ExtendsLiteral(inferred, left, right) {
|
|
|
17364
17401
|
return exports_guard.IsBigInt(left.const) ? ExtendsLiteralBigInt(inferred, left.const, right) : exports_guard.IsBoolean(left.const) ? ExtendsLiteralBoolean(inferred, left.const, right) : exports_guard.IsNumber(left.const) ? ExtendsLiteralNumber(inferred, left.const, right) : exports_guard.IsString(left.const) ? ExtendsLiteralString(inferred, left.const, right) : Unreachable();
|
|
17365
17402
|
}
|
|
17366
17403
|
|
|
17367
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17404
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/never.mjs
|
|
17368
17405
|
function ExtendsNever(inferred, left, right) {
|
|
17369
17406
|
return IsInfer(right) ? ExtendsRight(inferred, left, right) : ExtendsTrue(inferred);
|
|
17370
17407
|
}
|
|
17371
17408
|
|
|
17372
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17409
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/null.mjs
|
|
17373
17410
|
function ExtendsNull(inferred, left, right) {
|
|
17374
17411
|
return IsNull2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17375
17412
|
}
|
|
17376
17413
|
|
|
17377
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17414
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/number.mjs
|
|
17378
17415
|
function ExtendsNumber(inferred, left, right) {
|
|
17379
17416
|
return IsNumber3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17380
17417
|
}
|
|
17381
17418
|
|
|
17382
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17419
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/object.mjs
|
|
17383
17420
|
function ExtendsPropertyOptional(inferred, left, right) {
|
|
17384
17421
|
return IsOptional(left) ? IsOptional(right) ? ExtendsTrue(inferred) : ExtendsFalse() : ExtendsTrue(inferred);
|
|
17385
17422
|
}
|
|
@@ -17427,7 +17464,7 @@ function ExtendsObject(inferred, left, right) {
|
|
|
17427
17464
|
return IsRecord(right) ? ExtendsObjectToRecord(inferred, left, RecordPattern(right), RecordValue(right)) : IsObject2(right) ? ExtendsObjectToObject(inferred, left, right.properties) : ExtendsRight(inferred, _Object_(left), right);
|
|
17428
17465
|
}
|
|
17429
17466
|
|
|
17430
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17467
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/record.mjs
|
|
17431
17468
|
function FromObject2(inferred, properties2) {
|
|
17432
17469
|
return exports_guard.IsEqual(exports_guard.Keys(properties2).length, 0) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
17433
17470
|
}
|
|
@@ -17438,23 +17475,23 @@ function ExtendsRecord(inferred, leftPattern, leftValue, right) {
|
|
|
17438
17475
|
return IsRecord(right) ? FromRecord(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject2(right) ? FromObject2(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
17439
17476
|
}
|
|
17440
17477
|
|
|
17441
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17478
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/string.mjs
|
|
17442
17479
|
function ExtendsString(inferred, left, right) {
|
|
17443
17480
|
return IsString3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17444
17481
|
}
|
|
17445
17482
|
|
|
17446
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17483
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/symbol.mjs
|
|
17447
17484
|
function ExtendsSymbol(inferred, left, right) {
|
|
17448
17485
|
return IsSymbol2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17449
17486
|
}
|
|
17450
17487
|
|
|
17451
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17488
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/template_literal.mjs
|
|
17452
17489
|
function ExtendsTemplateLiteral(inferred, left, right) {
|
|
17453
17490
|
const evaluated = EvaluateTemplateLiteral(left);
|
|
17454
17491
|
return ExtendsLeft(inferred, evaluated, right);
|
|
17455
17492
|
}
|
|
17456
17493
|
|
|
17457
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17494
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/inference.mjs
|
|
17458
17495
|
function Inferrable(name, type) {
|
|
17459
17496
|
return exports_memory.Create({ "~kind": "Inferrable" }, { name, type }, {});
|
|
17460
17497
|
}
|
|
@@ -17481,7 +17518,7 @@ function InferUnionResult(inferred, name, left, right) {
|
|
|
17481
17518
|
return exports_guard.IsArray(results) ? ExtendsTrue(exports_memory.Assign(inferred, { [name]: Union(results) })) : ExtendsFalse();
|
|
17482
17519
|
}
|
|
17483
17520
|
|
|
17484
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17521
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/tuple.mjs
|
|
17485
17522
|
function Reverse(types) {
|
|
17486
17523
|
return [...types].reverse();
|
|
17487
17524
|
}
|
|
@@ -17520,12 +17557,12 @@ function ExtendsTuple(inferred, left, right) {
|
|
|
17520
17557
|
return IsTuple(right) ? ExtendsTupleToTuple(inferred, instantiatedLeft, right.items) : IsArray2(right) ? ExtendsTupleToArray(inferred, instantiatedLeft, right.items) : ExtendsRight(inferred, Tuple(instantiatedLeft), right);
|
|
17521
17558
|
}
|
|
17522
17559
|
|
|
17523
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17560
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/undefined.mjs
|
|
17524
17561
|
function ExtendsUndefined(inferred, left, right) {
|
|
17525
17562
|
return IsVoid(right) ? ExtendsTrue(inferred) : IsUndefined2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17526
17563
|
}
|
|
17527
17564
|
|
|
17528
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17565
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/union.mjs
|
|
17529
17566
|
function ExtendsUnionSome(inferred, type, unionTypes) {
|
|
17530
17567
|
return exports_guard.ShiftLeft(unionTypes, (head, tail) => Match3(ExtendsLeft(inferred, type, head), (inferred2) => ExtendsTrue(inferred2), () => ExtendsUnionSome(inferred, type, tail)), () => ExtendsFalse());
|
|
17531
17568
|
}
|
|
@@ -17537,22 +17574,22 @@ function ExtendsUnion2(inferred, left, right) {
|
|
|
17537
17574
|
return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable.name, left, inferrable.type) : IsUnion(right) ? ExtendsUnionLeft(inferred, left, right.anyOf) : ExtendsUnionLeft(inferred, left, [right]);
|
|
17538
17575
|
}
|
|
17539
17576
|
|
|
17540
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17577
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/unknown.mjs
|
|
17541
17578
|
function ExtendsUnknown(inferred, left, right) {
|
|
17542
17579
|
return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
17543
17580
|
}
|
|
17544
17581
|
|
|
17545
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17582
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/void.mjs
|
|
17546
17583
|
function ExtendsVoid(inferred, left, right) {
|
|
17547
17584
|
return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17548
17585
|
}
|
|
17549
17586
|
|
|
17550
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17587
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/extends_left.mjs
|
|
17551
17588
|
function ExtendsLeft(inferred, left, right) {
|
|
17552
17589
|
return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray2(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt2(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean3(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor2(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction2(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger2(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull2(left) ? ExtendsNull(inferred, left, right) : IsNumber3(left) ? ExtendsNumber(inferred, left, right) : IsObject2(left) ? ExtendsObject(inferred, left.properties, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString3(left) ? ExtendsString(inferred, left, right) : IsSymbol2(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined2(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion2(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse();
|
|
17553
17590
|
}
|
|
17554
17591
|
|
|
17555
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17592
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/interface/instantiate.mjs
|
|
17556
17593
|
function InterfaceOperation(heritage, properties2) {
|
|
17557
17594
|
const result = EvaluateIntersect([...heritage, _Object_(properties2)]);
|
|
17558
17595
|
return result;
|
|
@@ -17567,7 +17604,7 @@ function InterfaceInstantiate(context, state, heritage, properties2, options) {
|
|
|
17567
17604
|
return InterfaceAction(instantiatedHeritage, instantiatedProperties, options);
|
|
17568
17605
|
}
|
|
17569
17606
|
|
|
17570
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17607
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/interface.mjs
|
|
17571
17608
|
function InterfaceDeferred(heritage, properties2, options = {}) {
|
|
17572
17609
|
return Deferred("Interface", [heritage, properties2], options);
|
|
17573
17610
|
}
|
|
@@ -17578,7 +17615,7 @@ function Interface(heritage, properties2, options = {}) {
|
|
|
17578
17615
|
return InterfaceAction(heritage, properties2, options);
|
|
17579
17616
|
}
|
|
17580
17617
|
|
|
17581
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17618
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/cyclic/check.mjs
|
|
17582
17619
|
function FromRef(stack, context, ref2) {
|
|
17583
17620
|
return stack.includes(ref2) ? true : FromType3([...stack, ref2], context, context[ref2]);
|
|
17584
17621
|
}
|
|
@@ -17597,7 +17634,7 @@ function CyclicCheck(stack, context, type) {
|
|
|
17597
17634
|
return result;
|
|
17598
17635
|
}
|
|
17599
17636
|
|
|
17600
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17637
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/cyclic/candidates.mjs
|
|
17601
17638
|
function ResolveCandidateKeys(context, keys) {
|
|
17602
17639
|
return keys.reduce((result, left) => {
|
|
17603
17640
|
return CyclicCheck([left], context, context[left]) ? [...result, left] : result;
|
|
@@ -17608,7 +17645,7 @@ function CyclicCandidates(context) {
|
|
|
17608
17645
|
const result = ResolveCandidateKeys(context, keys);
|
|
17609
17646
|
return result;
|
|
17610
17647
|
}
|
|
17611
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17648
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs
|
|
17612
17649
|
function FromRef2(context, ref2, result) {
|
|
17613
17650
|
return result.includes(ref2) ? result : (ref2 in context) ? FromType4(context, context[ref2], [...result, ref2]) : Unreachable();
|
|
17614
17651
|
}
|
|
@@ -17628,7 +17665,7 @@ function CyclicDependencies(context, key, type) {
|
|
|
17628
17665
|
const result = FromType4(context, type, [key]);
|
|
17629
17666
|
return result;
|
|
17630
17667
|
}
|
|
17631
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17668
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/cyclic/extends.mjs
|
|
17632
17669
|
function FromRef3(_ref) {
|
|
17633
17670
|
return Any();
|
|
17634
17671
|
}
|
|
@@ -17651,7 +17688,7 @@ function CyclicAnyFromParameters(defs, ref2) {
|
|
|
17651
17688
|
function CyclicExtends(type) {
|
|
17652
17689
|
return CyclicAnyFromParameters(type.$defs, type.$ref);
|
|
17653
17690
|
}
|
|
17654
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17691
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs
|
|
17655
17692
|
function CyclicInterface(context, heritage, properties2) {
|
|
17656
17693
|
const instantiatedHeritage = InstantiateTypes(context, State([], []), heritage);
|
|
17657
17694
|
const instantiatedProperties = InstantiateProperties({}, State([], []), properties2);
|
|
@@ -17672,7 +17709,7 @@ function InstantiateCyclic(context, ref2, type) {
|
|
|
17672
17709
|
const result = Cyclic(definitions, ref2);
|
|
17673
17710
|
return result;
|
|
17674
17711
|
}
|
|
17675
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17712
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/cyclic/target.mjs
|
|
17676
17713
|
function Resolve(defs, ref2) {
|
|
17677
17714
|
return ref2 in defs ? IsRef(defs[ref2]) ? Resolve(defs, defs[ref2].$ref) : defs[ref2] : Never();
|
|
17678
17715
|
}
|
|
@@ -17680,7 +17717,7 @@ function CyclicTarget(defs, ref2) {
|
|
|
17680
17717
|
const result = Resolve(defs, ref2);
|
|
17681
17718
|
return result;
|
|
17682
17719
|
}
|
|
17683
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17720
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/extends.mjs
|
|
17684
17721
|
function Canonical(type) {
|
|
17685
17722
|
return IsCyclic(type) ? CyclicExtends(type) : IsUnsafe(type) ? Unknown() : type;
|
|
17686
17723
|
}
|
|
@@ -17689,47 +17726,36 @@ function Extends(inferred, left, right) {
|
|
|
17689
17726
|
const canonicalRight = Canonical(right);
|
|
17690
17727
|
return ExtendsLeft(inferred, canonicalLeft, canonicalRight);
|
|
17691
17728
|
}
|
|
17692
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17693
|
-
var
|
|
17694
|
-
var
|
|
17695
|
-
var
|
|
17696
|
-
var
|
|
17729
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/compare.mjs
|
|
17730
|
+
var CompareResultEqual = 0;
|
|
17731
|
+
var CompareResultDisjoint = 1;
|
|
17732
|
+
var CompareResultLeftInside = 2;
|
|
17733
|
+
var CompareResultRightInside = 3;
|
|
17697
17734
|
function Compare(left, right) {
|
|
17698
|
-
const extendsCheck = [
|
|
17699
|
-
|
|
17700
|
-
IsUnknown(left) ? exports_result.ExtendsTrue({}) : Extends({}, right, left)
|
|
17701
|
-
];
|
|
17702
|
-
return exports_result.IsExtendsTrueLike(extendsCheck[0]) && exports_result.IsExtendsTrueLike(extendsCheck[1]) ? ResultEqual : exports_result.IsExtendsTrueLike(extendsCheck[0]) && exports_result.IsExtendsFalse(extendsCheck[1]) ? ResultLeftInside : exports_result.IsExtendsFalse(extendsCheck[0]) && exports_result.IsExtendsTrueLike(extendsCheck[1]) ? ResultRightInside : ResultDisjoint;
|
|
17735
|
+
const extendsCheck = [Extends({}, left, right), Extends({}, right, left)];
|
|
17736
|
+
return exports_result.IsExtendsTrueLike(extendsCheck[0]) && exports_result.IsExtendsTrueLike(extendsCheck[1]) ? CompareResultEqual : exports_result.IsExtendsTrueLike(extendsCheck[0]) && exports_result.IsExtendsFalse(extendsCheck[1]) ? CompareResultLeftInside : exports_result.IsExtendsFalse(extendsCheck[0]) && exports_result.IsExtendsTrueLike(extendsCheck[1]) ? CompareResultRightInside : CompareResultDisjoint;
|
|
17703
17737
|
}
|
|
17704
17738
|
|
|
17705
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17706
|
-
function
|
|
17707
|
-
return
|
|
17708
|
-
|
|
17709
|
-
|
|
17739
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/broaden.mjs
|
|
17740
|
+
function BroadenFilter(type, types, result = [], all = types) {
|
|
17741
|
+
return exports_guard.ShiftLeft(types, (left, right) => {
|
|
17742
|
+
const compare = Compare(type, left);
|
|
17743
|
+
return exports_guard.IsEqual(compare, CompareResultLeftInside) || exports_guard.IsEqual(compare, CompareResultEqual) ? all : exports_guard.IsEqual(compare, CompareResultDisjoint) ? BroadenFilter(type, right, [...result, left], all) : BroadenFilter(type, right, result, all);
|
|
17744
|
+
}, () => [...result, type]);
|
|
17710
17745
|
}
|
|
17711
|
-
function
|
|
17712
|
-
const result = types.some((left) => {
|
|
17713
|
-
const result2 = Compare(type, left);
|
|
17714
|
-
return exports_guard.IsEqual(result2, ResultLeftInside) || exports_guard.IsEqual(result2, ResultEqual);
|
|
17715
|
-
});
|
|
17716
|
-
return exports_guard.IsEqual(result, false);
|
|
17717
|
-
}
|
|
17718
|
-
function BroadenType(type, types) {
|
|
17746
|
+
function BroadenType(type, types, result) {
|
|
17719
17747
|
const evaluated = EvaluateType(type);
|
|
17720
|
-
return IsAny(evaluated) ? [evaluated] :
|
|
17748
|
+
return IsAny(evaluated) ? [evaluated] : IsUnknown(evaluated) ? [evaluated] : IsNever(evaluated) ? BroadenTypes(types, result) : IsObject2(evaluated) ? BroadenTypes(types, [...result, evaluated]) : BroadenTypes(types, BroadenFilter(evaluated, result));
|
|
17721
17749
|
}
|
|
17722
|
-
function BroadenTypes(types) {
|
|
17723
|
-
return
|
|
17724
|
-
return IsObject2(left) ? [...result, left] : IsNever(left) ? result : BroadenType(left, result);
|
|
17725
|
-
}, []);
|
|
17750
|
+
function BroadenTypes(types, result = []) {
|
|
17751
|
+
return exports_guard.ShiftLeft(types, (left, right) => BroadenType(left, right, result), () => result);
|
|
17726
17752
|
}
|
|
17727
17753
|
function Broaden(types) {
|
|
17728
17754
|
const broadened = BroadenTypes(types);
|
|
17729
17755
|
const flattened = Flatten(broadened);
|
|
17730
17756
|
return flattened;
|
|
17731
17757
|
}
|
|
17732
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17758
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs
|
|
17733
17759
|
function EvaluateAction(type, options) {
|
|
17734
17760
|
const result = exports_memory.Update(EvaluateType(type), {}, options);
|
|
17735
17761
|
return result;
|
|
@@ -17738,7 +17764,7 @@ function EvaluateInstantiate(context, state, type, options) {
|
|
|
17738
17764
|
const instantiatedType = InstantiateType(context, state, type);
|
|
17739
17765
|
return EvaluateAction(instantiatedType, options);
|
|
17740
17766
|
}
|
|
17741
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17767
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs
|
|
17742
17768
|
function CollectDistributionNames(expression, result = []) {
|
|
17743
17769
|
return IsDeferred(expression) && exports_guard.IsEqual(expression.action, "Conditional") ? IsRef(expression.parameters[0]) ? CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], [...result, expression.parameters[0]["$ref"]])) : CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], result)) : IsDeferred(expression) && exports_guard.IsEqual(expression.action, "Mapped") ? IsDeferred(expression.parameters[1]) && exports_guard.IsEqual(expression.parameters[1].action, "KeyOf") && IsRef(expression.parameters[1].parameters[0]) ? [...result, expression.parameters[1].parameters[0]["$ref"]] : result : result;
|
|
17744
17770
|
}
|
|
@@ -17748,8 +17774,12 @@ function BuildDistributionArray(parameters, names) {
|
|
|
17748
17774
|
function ZipDistributionArray(arguments_, distributionArray, result = []) {
|
|
17749
17775
|
return exports_guard.ShiftLeft(arguments_, (argumentLeft, argumentRight) => exports_guard.ShiftLeft(distributionArray, (booleanLeft, booleanRight) => ZipDistributionArray(argumentRight, booleanRight, [...result, [booleanLeft, argumentLeft]]), () => result), () => result);
|
|
17750
17776
|
}
|
|
17777
|
+
function CanonicalArgument(type) {
|
|
17778
|
+
return IsTemplateLiteral(type) ? EvaluateTemplateLiteral(type.pattern) : IsEnum(type) ? EvaluateEnum(type.enum) : type;
|
|
17779
|
+
}
|
|
17751
17780
|
function Expand(type) {
|
|
17752
|
-
|
|
17781
|
+
const canonicalArgument = CanonicalArgument(type);
|
|
17782
|
+
return IsUnion(canonicalArgument) ? [...canonicalArgument.anyOf] : [canonicalArgument];
|
|
17753
17783
|
}
|
|
17754
17784
|
function Append(current, type) {
|
|
17755
17785
|
return current.reduce((result, left) => [...result, [...left, type]], []);
|
|
@@ -17771,7 +17801,7 @@ function DistributeArguments(parameters, arguments_, expression) {
|
|
|
17771
17801
|
return IsDeferred(expression) && exports_guard.IsEqual(expression.action, "Conditional") ? Distribute2(zippedArguments) : IsDeferred(expression) && exports_guard.IsEqual(expression.action, "Mapped") ? Distribute2(zippedArguments) : [arguments_];
|
|
17772
17802
|
}
|
|
17773
17803
|
|
|
17774
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17804
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/call/resolve_target.mjs
|
|
17775
17805
|
function FromNotResolvable() {
|
|
17776
17806
|
return ["(not-resolvable)", Never()];
|
|
17777
17807
|
}
|
|
@@ -17791,7 +17821,7 @@ function ResolveTarget(context, target2, arguments_) {
|
|
|
17791
17821
|
return FromType6(context, "(anonymous)", target2, arguments_);
|
|
17792
17822
|
}
|
|
17793
17823
|
|
|
17794
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17824
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs
|
|
17795
17825
|
function AssertArgumentExtends(name, type, extends_) {
|
|
17796
17826
|
if (IsInfer(type) || IsCall(type) || exports_result.IsExtendsTrueLike(Extends({}, type, extends_)))
|
|
17797
17827
|
return;
|
|
@@ -17815,7 +17845,24 @@ function ResolveArgumentsContext(context, state, parameters, arguments_) {
|
|
|
17815
17845
|
return BindParameters(context, state, parameters, arguments_);
|
|
17816
17846
|
}
|
|
17817
17847
|
|
|
17818
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17848
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/call/instantiate.mjs
|
|
17849
|
+
var instantiationDepth = 0;
|
|
17850
|
+
var instantiationCount = 0;
|
|
17851
|
+
function InstantiationAssert() {
|
|
17852
|
+
if (exports_guard.IsLessThan(instantiationCount, exports_settings.Get().maxInstantiationCount))
|
|
17853
|
+
return;
|
|
17854
|
+
throw Error("Type instantiation is excessively deep and possibly infinite");
|
|
17855
|
+
}
|
|
17856
|
+
function InstantiationIncrement() {
|
|
17857
|
+
InstantiationAssert();
|
|
17858
|
+
instantiationCount++;
|
|
17859
|
+
instantiationDepth++;
|
|
17860
|
+
}
|
|
17861
|
+
function InstantiationDecrement() {
|
|
17862
|
+
instantiationDepth--;
|
|
17863
|
+
if (exports_guard.IsEqual(instantiationDepth, 0))
|
|
17864
|
+
instantiationCount = 0;
|
|
17865
|
+
}
|
|
17819
17866
|
function Peek(state) {
|
|
17820
17867
|
const result = exports_guard.IsGreaterThan(state.callstack.length, 0) ? state.callstack[state.callstack.length - 1] : "";
|
|
17821
17868
|
return result;
|
|
@@ -17825,12 +17872,20 @@ function IsTailCall(state, name) {
|
|
|
17825
17872
|
return result;
|
|
17826
17873
|
}
|
|
17827
17874
|
function CallDispatch(context, state, target2, parameters, expression, arguments_) {
|
|
17828
|
-
|
|
17829
|
-
|
|
17830
|
-
|
|
17875
|
+
InstantiationIncrement();
|
|
17876
|
+
try {
|
|
17877
|
+
const argumentsContext = ResolveArgumentsContext(context, state, parameters, arguments_);
|
|
17878
|
+
const returnType = InstantiateType(argumentsContext, State([...state["callstack"], target2["$ref"]], state["visited"]), expression);
|
|
17879
|
+
return InstantiateType(argumentsContext, State([], []), returnType);
|
|
17880
|
+
} finally {
|
|
17881
|
+
InstantiationDecrement();
|
|
17882
|
+
}
|
|
17831
17883
|
}
|
|
17832
17884
|
function CallDistributed(context, state, target2, parameters, expression, distributedArguments) {
|
|
17833
|
-
return distributedArguments.reduce((result, arguments_) =>
|
|
17885
|
+
return distributedArguments.reduce((result, arguments_) => {
|
|
17886
|
+
const returnType = CallDispatch(context, state, target2, parameters, expression, arguments_);
|
|
17887
|
+
return [...result, returnType];
|
|
17888
|
+
}, []);
|
|
17834
17889
|
}
|
|
17835
17890
|
function CallImmediate(context, state, target2, parameters, expression, arguments_) {
|
|
17836
17891
|
const distributedArguments = DistributeArguments(parameters, arguments_, expression);
|
|
@@ -17847,7 +17902,7 @@ function CallInstantiate(context, state, target2, arguments_) {
|
|
|
17847
17902
|
return result;
|
|
17848
17903
|
}
|
|
17849
17904
|
|
|
17850
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17905
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/call.mjs
|
|
17851
17906
|
function CallConstruct(target2, arguments_) {
|
|
17852
17907
|
return exports_memory.Create({ ["~kind"]: "Call" }, { type: "call", target: target2, arguments: arguments_ }, {});
|
|
17853
17908
|
}
|
|
@@ -17858,7 +17913,7 @@ function IsCall(value) {
|
|
|
17858
17913
|
return IsKind(value, "Call");
|
|
17859
17914
|
}
|
|
17860
17915
|
|
|
17861
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17916
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs
|
|
17862
17917
|
function RemoveImmutableOperation(type) {
|
|
17863
17918
|
return exports_memory.Discard(type, ["~immutable"]);
|
|
17864
17919
|
}
|
|
@@ -17871,35 +17926,35 @@ function RemoveImmutableInstantiate(context, state, type, options) {
|
|
|
17871
17926
|
return RemoveImmutableAction(instantiatedType, options);
|
|
17872
17927
|
}
|
|
17873
17928
|
|
|
17874
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17929
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs
|
|
17875
17930
|
function ApplyMapping(mapping, value) {
|
|
17876
17931
|
return mapping(value);
|
|
17877
17932
|
}
|
|
17878
17933
|
|
|
17879
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17934
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs
|
|
17880
17935
|
function FromLiteral3(mapping, value) {
|
|
17881
17936
|
return exports_guard.IsString(value) ? Literal(ApplyMapping(mapping, value)) : Literal(value);
|
|
17882
17937
|
}
|
|
17883
17938
|
|
|
17884
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17939
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs
|
|
17885
17940
|
function FromTemplateLiteral(mapping, pattern) {
|
|
17886
17941
|
const evaluated = EvaluateTemplateLiteral(pattern);
|
|
17887
17942
|
const result = FromType7(mapping, evaluated);
|
|
17888
17943
|
return result;
|
|
17889
17944
|
}
|
|
17890
17945
|
|
|
17891
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17946
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs
|
|
17892
17947
|
function FromUnion2(mapping, types) {
|
|
17893
17948
|
const result = types.map((type) => FromType7(mapping, type));
|
|
17894
17949
|
return Union(result);
|
|
17895
17950
|
}
|
|
17896
17951
|
|
|
17897
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17952
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs
|
|
17898
17953
|
function FromType7(mapping, type) {
|
|
17899
17954
|
return IsLiteral(type) ? FromLiteral3(mapping, type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral(mapping, type.pattern) : IsUnion(type) ? FromUnion2(mapping, type.anyOf) : type;
|
|
17900
17955
|
}
|
|
17901
17956
|
|
|
17902
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17957
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/capitalize.mjs
|
|
17903
17958
|
function CapitalizeDeferred(type, options = {}) {
|
|
17904
17959
|
return Deferred("Capitalize", [type], options);
|
|
17905
17960
|
}
|
|
@@ -17907,7 +17962,7 @@ function Capitalize(type, options = {}) {
|
|
|
17907
17962
|
return CapitalizeAction(type, options);
|
|
17908
17963
|
}
|
|
17909
17964
|
|
|
17910
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17965
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/lowercase.mjs
|
|
17911
17966
|
function LowercaseDeferred(type, options = {}) {
|
|
17912
17967
|
return Deferred("Lowercase", [type], options);
|
|
17913
17968
|
}
|
|
@@ -17915,7 +17970,7 @@ function Lowercase(type, options = {}) {
|
|
|
17915
17970
|
return LowercaseAction(type, options);
|
|
17916
17971
|
}
|
|
17917
17972
|
|
|
17918
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17973
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/uncapitalize.mjs
|
|
17919
17974
|
function UncapitalizeDeferred(type, options = {}) {
|
|
17920
17975
|
return Deferred("Uncapitalize", [type], options);
|
|
17921
17976
|
}
|
|
@@ -17923,7 +17978,7 @@ function Uncapitalize(type, options = {}) {
|
|
|
17923
17978
|
return UncapitalizeAction(type, options);
|
|
17924
17979
|
}
|
|
17925
17980
|
|
|
17926
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17981
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/uppercase.mjs
|
|
17927
17982
|
function UppercaseDeferred(type, options = {}) {
|
|
17928
17983
|
return Deferred("Uppercase", [type], options);
|
|
17929
17984
|
}
|
|
@@ -17931,7 +17986,7 @@ function Uppercase(type, options = {}) {
|
|
|
17931
17986
|
return UppercaseAction(type, options);
|
|
17932
17987
|
}
|
|
17933
17988
|
|
|
17934
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
17989
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs
|
|
17935
17990
|
var CapitalizeMapping = (input) => input[0].toUpperCase() + input.slice(1);
|
|
17936
17991
|
var LowercaseMapping = (input) => input.toLowerCase();
|
|
17937
17992
|
var UncapitalizeMapping = (input) => input[0].toLowerCase() + input.slice(1);
|
|
@@ -17969,7 +18024,7 @@ function UppercaseInstantiate(context, state, type, options) {
|
|
|
17969
18024
|
return UppercaseAction(instantiatedType, options);
|
|
17970
18025
|
}
|
|
17971
18026
|
|
|
17972
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18027
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/conditional.mjs
|
|
17973
18028
|
function ConditionalDeferred(left, right, true_, false_, options = {}) {
|
|
17974
18029
|
return Deferred("Conditional", [left, right, true_, false_], options);
|
|
17975
18030
|
}
|
|
@@ -17977,7 +18032,7 @@ function Conditional(left, right, true_, false_, options = {}) {
|
|
|
17977
18032
|
return ConditionalAction({}, State([], []), left, right, true_, false_, options);
|
|
17978
18033
|
}
|
|
17979
18034
|
|
|
17980
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18035
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/conditional/instantiate.mjs
|
|
17981
18036
|
function ConditionalOperation(context, state, left, right, true_, false_) {
|
|
17982
18037
|
const extendsResult = Extends(context, left, right);
|
|
17983
18038
|
return exports_result.IsExtendsUnion(extendsResult) ? Union([InstantiateType(extendsResult.inferred, state, true_), InstantiateType(context, state, false_)]) : exports_result.IsExtendsTrue(extendsResult) ? InstantiateType(extendsResult.inferred, state, true_) : InstantiateType(context, state, false_);
|
|
@@ -17991,7 +18046,7 @@ function ConditionalInstantiate(context, state, left, right, true_, false_, opti
|
|
|
17991
18046
|
const instantiatedRight = InstantiateType(context, state, right);
|
|
17992
18047
|
return ConditionalAction(context, state, instantiatedLeft, instantiatedRight, true_, false_, options);
|
|
17993
18048
|
}
|
|
17994
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18049
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/constructor_parameters.mjs
|
|
17995
18050
|
function ConstructorParametersDeferred(type, options = {}) {
|
|
17996
18051
|
return Deferred("ConstructorParameters", [type], options);
|
|
17997
18052
|
}
|
|
@@ -17999,7 +18054,7 @@ function ConstructorParameters(type, options = {}) {
|
|
|
17999
18054
|
return ConstructorParametersAction(type, options);
|
|
18000
18055
|
}
|
|
18001
18056
|
|
|
18002
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18057
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs
|
|
18003
18058
|
function ConstructorParametersOperation(type) {
|
|
18004
18059
|
const parameters = IsConstructor2(type) ? type["parameters"] : [];
|
|
18005
18060
|
const instantiatedParameters = InstantiateElements({}, State([], []), parameters);
|
|
@@ -18015,7 +18070,7 @@ function ConstructorParametersInstantiate(context, state, type, options) {
|
|
|
18015
18070
|
return ConstructorParametersAction(instantiatedType, options);
|
|
18016
18071
|
}
|
|
18017
18072
|
|
|
18018
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18073
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/exclude.mjs
|
|
18019
18074
|
function ExcludeDeferred(left, right, options = {}) {
|
|
18020
18075
|
return Deferred("Exclude", [left, right], options);
|
|
18021
18076
|
}
|
|
@@ -18023,7 +18078,7 @@ function Exclude(left, right, options = {}) {
|
|
|
18023
18078
|
return ExcludeAction(left, right, options);
|
|
18024
18079
|
}
|
|
18025
18080
|
|
|
18026
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18081
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/exclude/instantiate.mjs
|
|
18027
18082
|
function ExcludeAction(left, right, options) {
|
|
18028
18083
|
const result = CanInstantiate([left, right]) ? exports_memory.Update(ExcludeOperation(left, right), {}, options) : ExcludeDeferred(left, right, options);
|
|
18029
18084
|
return result;
|
|
@@ -18034,7 +18089,7 @@ function ExcludeInstantiate(context, state, left, right, options) {
|
|
|
18034
18089
|
return ExcludeAction(instantiatedLeft, instantiatedRight, options);
|
|
18035
18090
|
}
|
|
18036
18091
|
|
|
18037
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18092
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/extract.mjs
|
|
18038
18093
|
function ExtractDeferred(left, right, options = {}) {
|
|
18039
18094
|
return Deferred("Extract", [left, right], options);
|
|
18040
18095
|
}
|
|
@@ -18042,16 +18097,14 @@ function Extract(left, right, options = {}) {
|
|
|
18042
18097
|
return ExtractAction(left, right, options);
|
|
18043
18098
|
}
|
|
18044
18099
|
|
|
18045
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18100
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/extract/operation.mjs
|
|
18046
18101
|
function ExtractType(left, right) {
|
|
18047
18102
|
const check3 = Extends({}, left, right);
|
|
18048
18103
|
const result = exports_result.IsExtendsTrueLike(check3) ? [left] : [];
|
|
18049
18104
|
return result;
|
|
18050
18105
|
}
|
|
18051
|
-
function ExtractUnion(
|
|
18052
|
-
return
|
|
18053
|
-
return [...result, ...ExtractType(head, right)];
|
|
18054
|
-
}, []);
|
|
18106
|
+
function ExtractUnion(left, right, result = []) {
|
|
18107
|
+
return exports_guard.ShiftLeft(left, (head, tail) => ExtractUnion(tail, right, [...result, ...ExtractType(head, right)]), () => result);
|
|
18055
18108
|
}
|
|
18056
18109
|
function ExtractOperation(left, right) {
|
|
18057
18110
|
const evaluated = EvaluateType(left);
|
|
@@ -18061,7 +18114,7 @@ function ExtractOperation(left, right) {
|
|
|
18061
18114
|
return result;
|
|
18062
18115
|
}
|
|
18063
18116
|
|
|
18064
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18117
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/extract/instantiate.mjs
|
|
18065
18118
|
function ExtractAction(left, right, options) {
|
|
18066
18119
|
const result = CanInstantiate([left, right]) ? exports_memory.Update(ExtractOperation(left, right), {}, options) : ExtractDeferred(left, right, options);
|
|
18067
18120
|
return result;
|
|
@@ -18072,7 +18125,7 @@ function ExtractInstantiate(context, state, left, right, options) {
|
|
|
18072
18125
|
return ExtractAction(instantiatedLeft, instantiatedRight, options);
|
|
18073
18126
|
}
|
|
18074
18127
|
|
|
18075
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18128
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs
|
|
18076
18129
|
function KeysToLiterals(keys) {
|
|
18077
18130
|
return keys.reduce((result, left) => {
|
|
18078
18131
|
return IsLiteralValue(left) ? [...result, Literal(left)] : result;
|
|
@@ -18084,7 +18137,7 @@ function KeysToIndexer(keys) {
|
|
|
18084
18137
|
return result;
|
|
18085
18138
|
}
|
|
18086
18139
|
|
|
18087
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18140
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/indexed.mjs
|
|
18088
18141
|
function IndexDeferred(type, indexer, options = {}) {
|
|
18089
18142
|
return Deferred("Index", [type, indexer], options);
|
|
18090
18143
|
}
|
|
@@ -18093,21 +18146,21 @@ function Index(type, indexer_or_keys, options = {}) {
|
|
|
18093
18146
|
return IndexAction(type, indexer, options);
|
|
18094
18147
|
}
|
|
18095
18148
|
|
|
18096
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18149
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_cyclic.mjs
|
|
18097
18150
|
function FromCyclic(defs, ref2) {
|
|
18098
18151
|
const target2 = CyclicTarget(defs, ref2);
|
|
18099
18152
|
const result = FromType8(target2);
|
|
18100
18153
|
return result;
|
|
18101
18154
|
}
|
|
18102
18155
|
|
|
18103
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18156
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_dependent.mjs
|
|
18104
18157
|
function FromDependent(if_, then_, else_) {
|
|
18105
18158
|
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
18106
18159
|
const result = FromType8(evaluated);
|
|
18107
18160
|
return result;
|
|
18108
18161
|
}
|
|
18109
18162
|
|
|
18110
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18163
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_intersect.mjs
|
|
18111
18164
|
function CollapseIntersectProperties(left, right) {
|
|
18112
18165
|
const leftKeys = exports_guard.Keys(left).filter((key) => !exports_guard.HasPropertyKey(right, key));
|
|
18113
18166
|
const rightKeys = exports_guard.Keys(right).filter((key) => !exports_guard.HasPropertyKey(left, key));
|
|
@@ -18125,19 +18178,19 @@ function FromIntersect(types) {
|
|
|
18125
18178
|
}, {});
|
|
18126
18179
|
}
|
|
18127
18180
|
|
|
18128
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18181
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_object.mjs
|
|
18129
18182
|
function FromObject3(properties2) {
|
|
18130
18183
|
return properties2;
|
|
18131
18184
|
}
|
|
18132
18185
|
|
|
18133
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18186
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_tuple.mjs
|
|
18134
18187
|
function FromTuple(types) {
|
|
18135
18188
|
const object3 = TupleToObject(Tuple(types));
|
|
18136
18189
|
const result = FromType8(object3);
|
|
18137
18190
|
return result;
|
|
18138
18191
|
}
|
|
18139
18192
|
|
|
18140
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18193
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_union.mjs
|
|
18141
18194
|
function CollapseUnionProperties(left, right) {
|
|
18142
18195
|
const sharedKeys = exports_guard.Keys(left).filter((key) => (key in right));
|
|
18143
18196
|
const result = sharedKeys.reduce((result2, key) => {
|
|
@@ -18152,25 +18205,25 @@ function FromUnion3(types) {
|
|
|
18152
18205
|
return exports_guard.ShiftLeft(types, (left, right) => ReduceVariants(right, FromType8(left)), () => Unreachable());
|
|
18153
18206
|
}
|
|
18154
18207
|
|
|
18155
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18208
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_type.mjs
|
|
18156
18209
|
function FromType8(type) {
|
|
18157
18210
|
return IsCyclic(type) ? FromCyclic(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect(type.allOf) : IsUnion(type) ? FromUnion3(type.anyOf) : IsTuple(type) ? FromTuple(type.items) : IsObject2(type) ? FromObject3(type.properties) : {};
|
|
18158
18211
|
}
|
|
18159
18212
|
|
|
18160
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18213
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/collapse.mjs
|
|
18161
18214
|
function CollapseToObject(type) {
|
|
18162
18215
|
const properties2 = FromType8(type);
|
|
18163
18216
|
const result = _Object_(properties2);
|
|
18164
18217
|
return result;
|
|
18165
18218
|
}
|
|
18166
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18219
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/helpers/keys.mjs
|
|
18167
18220
|
var integerKeyPattern = new RegExp("^(?:0|[1-9][0-9]*)$");
|
|
18168
18221
|
function ConvertToIntegerKey(value) {
|
|
18169
18222
|
const normal = `${value}`;
|
|
18170
18223
|
return integerKeyPattern.test(normal) ? parseInt(normal) : value;
|
|
18171
18224
|
}
|
|
18172
18225
|
|
|
18173
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18226
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexed/from_array.mjs
|
|
18174
18227
|
function NormalizeLiteral(value) {
|
|
18175
18228
|
return Literal(ConvertToIntegerKey(value));
|
|
18176
18229
|
}
|
|
@@ -18187,66 +18240,66 @@ function FromArray2(type, indexer) {
|
|
|
18187
18240
|
return result;
|
|
18188
18241
|
}
|
|
18189
18242
|
|
|
18190
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18243
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs
|
|
18191
18244
|
function FromCyclic2(defs, ref2) {
|
|
18192
18245
|
const target2 = CyclicTarget(defs, ref2);
|
|
18193
18246
|
const result = FromType9(target2);
|
|
18194
18247
|
return result;
|
|
18195
18248
|
}
|
|
18196
18249
|
|
|
18197
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18250
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs
|
|
18198
18251
|
function FromDependent2(if_, then_, else_) {
|
|
18199
18252
|
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
18200
18253
|
const result = FromType9(evaluated);
|
|
18201
18254
|
return result;
|
|
18202
18255
|
}
|
|
18203
18256
|
|
|
18204
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18257
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_enum.mjs
|
|
18205
18258
|
function FromEnum(values) {
|
|
18206
18259
|
const evaluated = EvaluateEnum(values);
|
|
18207
18260
|
const result = FromType9(evaluated);
|
|
18208
18261
|
return result;
|
|
18209
18262
|
}
|
|
18210
18263
|
|
|
18211
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18264
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs
|
|
18212
18265
|
function FromIntersect2(types) {
|
|
18213
18266
|
const evaluated = EvaluateIntersect(types);
|
|
18214
18267
|
const result = FromType9(evaluated);
|
|
18215
18268
|
return result;
|
|
18216
18269
|
}
|
|
18217
18270
|
|
|
18218
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18271
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_literal.mjs
|
|
18219
18272
|
function FromLiteral4(value) {
|
|
18220
18273
|
const result = [`${value}`];
|
|
18221
18274
|
return result;
|
|
18222
18275
|
}
|
|
18223
18276
|
|
|
18224
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18277
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs
|
|
18225
18278
|
function FromTemplateLiteral2(pattern) {
|
|
18226
18279
|
const evaluated = EvaluateTemplateLiteral(pattern);
|
|
18227
18280
|
const result = FromType9(evaluated);
|
|
18228
18281
|
return result;
|
|
18229
18282
|
}
|
|
18230
18283
|
|
|
18231
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18284
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_union.mjs
|
|
18232
18285
|
function FromUnion4(types) {
|
|
18233
18286
|
return types.reduce((result, left) => {
|
|
18234
18287
|
return [...result, ...FromType9(left)];
|
|
18235
18288
|
}, []);
|
|
18236
18289
|
}
|
|
18237
18290
|
|
|
18238
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18291
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_type.mjs
|
|
18239
18292
|
function FromType9(type) {
|
|
18240
18293
|
return IsCyclic(type) ? FromCyclic2(type.$defs, type.$ref) : IsDependent(type) ? FromDependent2(type.if, type.then, type.else) : IsEnum(type) ? FromEnum(type.enum) : IsIntersect(type) ? FromIntersect2(type.allOf) : IsLiteral(type) ? FromLiteral4(type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral2(type.pattern) : IsUnion(type) ? FromUnion4(type.anyOf) : [];
|
|
18241
18294
|
}
|
|
18242
18295
|
|
|
18243
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18296
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs
|
|
18244
18297
|
function ToIndexableKeys(type) {
|
|
18245
18298
|
const result = FromType9(type);
|
|
18246
18299
|
return result;
|
|
18247
18300
|
}
|
|
18248
18301
|
|
|
18249
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18302
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/this/expand_this.mjs
|
|
18250
18303
|
function FromTypes5(properties2, types) {
|
|
18251
18304
|
return types.map((type) => FromType10(properties2, type));
|
|
18252
18305
|
}
|
|
@@ -18258,7 +18311,7 @@ function ExpandThis(properties2, type) {
|
|
|
18258
18311
|
return result;
|
|
18259
18312
|
}
|
|
18260
18313
|
|
|
18261
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18314
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexed/from_object.mjs
|
|
18262
18315
|
function IndexProperty(properties2, key) {
|
|
18263
18316
|
const selectedType = key in properties2 ? properties2[key] : Never();
|
|
18264
18317
|
const result = ExpandThis(properties2, selectedType);
|
|
@@ -18292,7 +18345,7 @@ function FromObject4(properties2, indexer) {
|
|
|
18292
18345
|
return result;
|
|
18293
18346
|
}
|
|
18294
18347
|
|
|
18295
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18348
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs
|
|
18296
18349
|
function ConvertLiteral(value) {
|
|
18297
18350
|
return Literal(ConvertToIntegerKey(value));
|
|
18298
18351
|
}
|
|
@@ -18303,7 +18356,7 @@ function FormatArrayIndexer(type) {
|
|
|
18303
18356
|
return IsIntersect(type) ? Intersect(ArrayIndexerTypes(type.allOf)) : IsUnion(type) ? Union(ArrayIndexerTypes(type.anyOf)) : IsLiteral(type) ? ConvertLiteral(type.const) : type;
|
|
18304
18357
|
}
|
|
18305
18358
|
|
|
18306
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18359
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs
|
|
18307
18360
|
function IndexElementsWithIndexer(types, indexer) {
|
|
18308
18361
|
return types.reduceRight((result, right, index) => {
|
|
18309
18362
|
const check3 = Extends({}, Literal(index), indexer);
|
|
@@ -18322,12 +18375,12 @@ function FromTuple2(types, indexer) {
|
|
|
18322
18375
|
return IsLiteral(indexer) && exports_guard.IsEqual(indexer.const, "length") ? Literal(types.length) : IsNumber3(indexer) || IsInteger2(indexer) ? FromTupleWithoutIndexer(types) : FromTupleWithIndexer(types, indexer);
|
|
18323
18376
|
}
|
|
18324
18377
|
|
|
18325
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18378
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexed/from_type.mjs
|
|
18326
18379
|
function FromType11(type, indexer) {
|
|
18327
18380
|
return IsArray2(type) ? FromArray2(type.items, indexer) : IsObject2(type) ? FromObject4(type.properties, indexer) : IsTuple(type) ? FromTuple2(type.items, indexer) : Never();
|
|
18328
18381
|
}
|
|
18329
18382
|
|
|
18330
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18383
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexed/instantiate.mjs
|
|
18331
18384
|
function NormalizeType(type) {
|
|
18332
18385
|
const result = IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type;
|
|
18333
18386
|
return result;
|
|
@@ -18342,7 +18395,7 @@ function IndexInstantiate(context, state, type, indexer, options) {
|
|
|
18342
18395
|
return IndexAction(instantiatedType, instantiatedIndexer, options);
|
|
18343
18396
|
}
|
|
18344
18397
|
|
|
18345
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18398
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/instance_type.mjs
|
|
18346
18399
|
function InstanceTypeDeferred(type, options = {}) {
|
|
18347
18400
|
return Deferred("InstanceType", [type], options);
|
|
18348
18401
|
}
|
|
@@ -18350,7 +18403,7 @@ function InstanceType(type, options = {}) {
|
|
|
18350
18403
|
return InstanceTypeAction(type, options);
|
|
18351
18404
|
}
|
|
18352
18405
|
|
|
18353
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18406
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs
|
|
18354
18407
|
function InstanceTypeOperation(type) {
|
|
18355
18408
|
return IsConstructor2(type) ? type["instanceType"] : Never();
|
|
18356
18409
|
}
|
|
@@ -18363,7 +18416,7 @@ function InstanceTypeInstantiate(context, state, type, options = {}) {
|
|
|
18363
18416
|
return InstanceTypeAction(instantiatedType, options);
|
|
18364
18417
|
}
|
|
18365
18418
|
|
|
18366
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18419
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/keyof.mjs
|
|
18367
18420
|
function KeyOfDeferred(type, options = {}) {
|
|
18368
18421
|
return Deferred("KeyOf", [type], options);
|
|
18369
18422
|
}
|
|
@@ -18371,17 +18424,17 @@ function KeyOf2(type, options = {}) {
|
|
|
18371
18424
|
return KeyOfAction(type, options);
|
|
18372
18425
|
}
|
|
18373
18426
|
|
|
18374
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18427
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/from_any.mjs
|
|
18375
18428
|
function FromAny() {
|
|
18376
18429
|
return Union([Number2(), String2(), Symbol2()]);
|
|
18377
18430
|
}
|
|
18378
18431
|
|
|
18379
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18432
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/from_array.mjs
|
|
18380
18433
|
function FromArray3(_type) {
|
|
18381
18434
|
return Number2();
|
|
18382
18435
|
}
|
|
18383
18436
|
|
|
18384
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18437
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/from_object.mjs
|
|
18385
18438
|
function FromPropertyKeys(keys) {
|
|
18386
18439
|
const result = keys.reduce((result2, left) => {
|
|
18387
18440
|
return IsLiteralValue(left) ? [...result2, Literal(ConvertToIntegerKey(left))] : Unreachable();
|
|
@@ -18395,23 +18448,23 @@ function FromObject5(properties2) {
|
|
|
18395
18448
|
return result;
|
|
18396
18449
|
}
|
|
18397
18450
|
|
|
18398
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18451
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/from_record.mjs
|
|
18399
18452
|
function FromRecord2(type) {
|
|
18400
18453
|
return RecordKey(type);
|
|
18401
18454
|
}
|
|
18402
18455
|
|
|
18403
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18456
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs
|
|
18404
18457
|
function FromTuple3(types) {
|
|
18405
18458
|
const result = types.map((_, index) => Literal(index));
|
|
18406
18459
|
return EvaluateUnionFast(result);
|
|
18407
18460
|
}
|
|
18408
18461
|
|
|
18409
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18462
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/from_type.mjs
|
|
18410
18463
|
function FromType12(type) {
|
|
18411
18464
|
return IsAny(type) ? FromAny() : IsArray2(type) ? FromArray3(type.items) : IsObject2(type) ? FromObject5(type.properties) : IsRecord(type) ? FromRecord2(type) : IsTuple(type) ? FromTuple3(type.items) : Never();
|
|
18412
18465
|
}
|
|
18413
18466
|
|
|
18414
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18467
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/instantiate.mjs
|
|
18415
18468
|
function NormalizeType2(type) {
|
|
18416
18469
|
const result = IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type;
|
|
18417
18470
|
return result;
|
|
@@ -18424,7 +18477,7 @@ function KeyOfInstantiate(context, state, type, options) {
|
|
|
18424
18477
|
return KeyOfAction(instantiatedType, options);
|
|
18425
18478
|
}
|
|
18426
18479
|
|
|
18427
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18480
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/mapped.mjs
|
|
18428
18481
|
function MappedDeferred(identifier2, type, as, property, options = {}) {
|
|
18429
18482
|
return Deferred("Mapped", [identifier2, type, as, property], options);
|
|
18430
18483
|
}
|
|
@@ -18432,7 +18485,7 @@ function Mapped(identifier2, type, as, property, options = {}) {
|
|
|
18432
18485
|
return MappedAction({}, State([], []), identifier2, type, as, property, options);
|
|
18433
18486
|
}
|
|
18434
18487
|
|
|
18435
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18488
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs
|
|
18436
18489
|
function FromTemplateLiteral3(pattern) {
|
|
18437
18490
|
const evaluated = EvaluateTemplateLiteral(pattern);
|
|
18438
18491
|
const result = FromType13(evaluated);
|
|
@@ -18461,7 +18514,7 @@ function MappedVariants(type) {
|
|
|
18461
18514
|
return result;
|
|
18462
18515
|
}
|
|
18463
18516
|
|
|
18464
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18517
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs
|
|
18465
18518
|
function CanonicalAs(instantiatedAs) {
|
|
18466
18519
|
const result = IsTemplateLiteral(instantiatedAs) ? EvaluateTemplateLiteral(instantiatedAs.pattern) : instantiatedAs;
|
|
18467
18520
|
return result;
|
|
@@ -18491,7 +18544,7 @@ function MappedOperation(context, state, identifier2, type, as, property) {
|
|
|
18491
18544
|
return result;
|
|
18492
18545
|
}
|
|
18493
18546
|
|
|
18494
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18547
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/mapped/instantiate.mjs
|
|
18495
18548
|
function MappedAction(context, state, identifier2, type, as, property, options) {
|
|
18496
18549
|
const result = CanInstantiate([type]) ? exports_memory.Update(MappedOperation(context, state, identifier2, type, as, property), {}, options) : MappedDeferred(identifier2, type, as, property, options);
|
|
18497
18550
|
return result;
|
|
@@ -18501,7 +18554,7 @@ function MappedInstantiate(context, state, identifier2, type, as, property, opti
|
|
|
18501
18554
|
return MappedAction(context, state, identifier2, instantiatedType, as, property, options);
|
|
18502
18555
|
}
|
|
18503
18556
|
|
|
18504
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18557
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/module/instantiate.mjs
|
|
18505
18558
|
function InstantiateCyclics(context, declarations, cyclicKeys) {
|
|
18506
18559
|
const declarationContext = exports_memory.Assign(context, declarations);
|
|
18507
18560
|
const declarationKeys = exports_guard.Keys(declarations).filter((key) => cyclicKeys.includes(key));
|
|
@@ -18528,7 +18581,7 @@ function ModuleInstantiate(context, _state, declarations, options) {
|
|
|
18528
18581
|
return instantiatedModule;
|
|
18529
18582
|
}
|
|
18530
18583
|
|
|
18531
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18584
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/non_nullable.mjs
|
|
18532
18585
|
function NonNullableDeferred(type, options = {}) {
|
|
18533
18586
|
return Deferred("NonNullable", [type], options);
|
|
18534
18587
|
}
|
|
@@ -18536,7 +18589,7 @@ function NonNullable(type, options = {}) {
|
|
|
18536
18589
|
return NonNullableAction(type, options);
|
|
18537
18590
|
}
|
|
18538
18591
|
|
|
18539
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18592
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs
|
|
18540
18593
|
function NonNullableOperation(type) {
|
|
18541
18594
|
const excluded = Union([Null(), Undefined()]);
|
|
18542
18595
|
return ExcludeAction(type, excluded, {});
|
|
@@ -18550,7 +18603,7 @@ function NonNullableInstantiate(context, state, type, options) {
|
|
|
18550
18603
|
return NonNullableAction(instantiatedType, options);
|
|
18551
18604
|
}
|
|
18552
18605
|
|
|
18553
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18606
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/omit.mjs
|
|
18554
18607
|
function OmitDeferred(type, indexer, options = {}) {
|
|
18555
18608
|
return Deferred("Omit", [type, indexer], options);
|
|
18556
18609
|
}
|
|
@@ -18559,14 +18612,14 @@ function Omit(type, indexer_or_keys, options = {}) {
|
|
|
18559
18612
|
return OmitAction(type, indexer, options);
|
|
18560
18613
|
}
|
|
18561
18614
|
|
|
18562
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18615
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs
|
|
18563
18616
|
function ToIndexable(type) {
|
|
18564
18617
|
const collapsed = CollapseToObject(type);
|
|
18565
18618
|
const result = IsObject2(collapsed) ? collapsed.properties : Unreachable();
|
|
18566
18619
|
return result;
|
|
18567
18620
|
}
|
|
18568
18621
|
|
|
18569
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18622
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/omit/from_type.mjs
|
|
18570
18623
|
function FromKeys(properties2, keys) {
|
|
18571
18624
|
const result = exports_guard.Keys(properties2).reduce((result2, key) => {
|
|
18572
18625
|
return keys.includes(key) ? result2 : { ...result2, [key]: properties2[key] };
|
|
@@ -18581,7 +18634,7 @@ function FromType14(type, indexer) {
|
|
|
18581
18634
|
return result;
|
|
18582
18635
|
}
|
|
18583
18636
|
|
|
18584
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18637
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/omit/instantiate.mjs
|
|
18585
18638
|
function OmitAction(type, indexer, options) {
|
|
18586
18639
|
const result = CanInstantiate([type, indexer]) ? exports_memory.Update(FromType14(type, indexer), {}, options) : OmitDeferred(type, indexer, options);
|
|
18587
18640
|
return result;
|
|
@@ -18592,7 +18645,7 @@ function OmitInstantiate(context, state, type, indexer, options) {
|
|
|
18592
18645
|
return OmitAction(instantiatedType, instantiatedIndexer, options);
|
|
18593
18646
|
}
|
|
18594
18647
|
|
|
18595
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18648
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/parameters.mjs
|
|
18596
18649
|
function ParametersDeferred(type, options = {}) {
|
|
18597
18650
|
return Deferred("Parameters", [type], options);
|
|
18598
18651
|
}
|
|
@@ -18600,7 +18653,7 @@ function Parameters(type, options = {}) {
|
|
|
18600
18653
|
return ParametersAction(type, options);
|
|
18601
18654
|
}
|
|
18602
18655
|
|
|
18603
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18656
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/parameters/instantiate.mjs
|
|
18604
18657
|
function ParametersOperation(type) {
|
|
18605
18658
|
const parameters = IsFunction2(type) ? type["parameters"] : [];
|
|
18606
18659
|
const instantiatedParameters = InstantiateElements({}, State([], []), parameters);
|
|
@@ -18616,7 +18669,7 @@ function ParametersInstantiate(context, state, type, options) {
|
|
|
18616
18669
|
return ParametersAction(instantiatedType, options);
|
|
18617
18670
|
}
|
|
18618
18671
|
|
|
18619
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18672
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/partial.mjs
|
|
18620
18673
|
function PartialDeferred(type, options = {}) {
|
|
18621
18674
|
return Deferred("Partial", [type], options);
|
|
18622
18675
|
}
|
|
@@ -18624,7 +18677,7 @@ function Partial(type, options = {}) {
|
|
|
18624
18677
|
return PartialAction(type, options);
|
|
18625
18678
|
}
|
|
18626
18679
|
|
|
18627
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18680
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs
|
|
18628
18681
|
function FromCyclic3(defs, ref2) {
|
|
18629
18682
|
const target2 = CyclicTarget(defs, ref2);
|
|
18630
18683
|
const partial2 = FromType15(target2);
|
|
@@ -18632,27 +18685,27 @@ function FromCyclic3(defs, ref2) {
|
|
|
18632
18685
|
return result;
|
|
18633
18686
|
}
|
|
18634
18687
|
|
|
18635
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18688
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/from_dependent.mjs
|
|
18636
18689
|
function FromDependent3(if_, then_, else_) {
|
|
18637
18690
|
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
18638
18691
|
const result = FromType15(evaluated);
|
|
18639
18692
|
return result;
|
|
18640
18693
|
}
|
|
18641
18694
|
|
|
18642
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18695
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/from_intersect.mjs
|
|
18643
18696
|
function FromIntersect3(types) {
|
|
18644
18697
|
const evaluated = EvaluateIntersect(types);
|
|
18645
18698
|
const result = FromType15(evaluated);
|
|
18646
18699
|
return result;
|
|
18647
18700
|
}
|
|
18648
18701
|
|
|
18649
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18702
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/from_union.mjs
|
|
18650
18703
|
function FromUnion6(types) {
|
|
18651
18704
|
const result = types.map((type) => FromType15(type));
|
|
18652
18705
|
return Union(result);
|
|
18653
18706
|
}
|
|
18654
18707
|
|
|
18655
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18708
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/from_object.mjs
|
|
18656
18709
|
function FromObject6(properties2) {
|
|
18657
18710
|
const mapped = exports_guard.Keys(properties2).reduce((result2, left) => {
|
|
18658
18711
|
return { ...result2, [left]: AddOptional(properties2[left]) };
|
|
@@ -18661,12 +18714,12 @@ function FromObject6(properties2) {
|
|
|
18661
18714
|
return result;
|
|
18662
18715
|
}
|
|
18663
18716
|
|
|
18664
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18717
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/from_type.mjs
|
|
18665
18718
|
function FromType15(type) {
|
|
18666
18719
|
return IsCyclic(type) ? FromCyclic3(type.$defs, type.$ref) : IsDependent(type) ? FromDependent3(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect3(type.allOf) : IsUnion(type) ? FromUnion6(type.anyOf) : IsObject2(type) ? FromObject6(type.properties) : _Object_({});
|
|
18667
18720
|
}
|
|
18668
18721
|
|
|
18669
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18722
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/instantiate.mjs
|
|
18670
18723
|
function PartialAction(type, options) {
|
|
18671
18724
|
const result = CanInstantiate([type]) ? exports_memory.Update(FromType15(type), {}, options) : PartialDeferred(type, options);
|
|
18672
18725
|
return result;
|
|
@@ -18676,7 +18729,7 @@ function PartialInstantiate(context, state, type, options) {
|
|
|
18676
18729
|
return PartialAction(instantiatedType, options);
|
|
18677
18730
|
}
|
|
18678
18731
|
|
|
18679
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18732
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/pick.mjs
|
|
18680
18733
|
function PickDeferred(type, indexer, options = {}) {
|
|
18681
18734
|
return Deferred("Pick", [type, indexer], options);
|
|
18682
18735
|
}
|
|
@@ -18685,7 +18738,7 @@ function Pick(type, indexer_or_keys, options = {}) {
|
|
|
18685
18738
|
return PickAction(type, indexer, options);
|
|
18686
18739
|
}
|
|
18687
18740
|
|
|
18688
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18741
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/pick/from_type.mjs
|
|
18689
18742
|
function FromKeys2(properties2, keys) {
|
|
18690
18743
|
const result = exports_guard.Keys(properties2).reduce((result2, key) => {
|
|
18691
18744
|
return keys.includes(key) ? exports_memory.Assign(result2, { [key]: properties2[key] }) : result2;
|
|
@@ -18700,7 +18753,7 @@ function FromType16(type, indexer) {
|
|
|
18700
18753
|
return result;
|
|
18701
18754
|
}
|
|
18702
18755
|
|
|
18703
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18756
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/pick/instantiate.mjs
|
|
18704
18757
|
function PickAction(type, indexer, options) {
|
|
18705
18758
|
const result = CanInstantiate([type, indexer]) ? exports_memory.Update(FromType16(type, indexer), {}, options) : PickDeferred(type, indexer, options);
|
|
18706
18759
|
return result;
|
|
@@ -18711,7 +18764,7 @@ function PickInstantiate(context, state, type, indexer, options) {
|
|
|
18711
18764
|
return PickAction(instantiatedType, instantiatedIndexer, options);
|
|
18712
18765
|
}
|
|
18713
18766
|
|
|
18714
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18767
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/readonly_object.mjs
|
|
18715
18768
|
function ReadonlyObjectDeferred(type, options = {}) {
|
|
18716
18769
|
return Deferred("ReadonlyObject", [type], options);
|
|
18717
18770
|
}
|
|
@@ -18720,13 +18773,13 @@ function ReadonlyObject(type, options = {}) {
|
|
|
18720
18773
|
}
|
|
18721
18774
|
var ReadonlyType = ReadonlyObject;
|
|
18722
18775
|
|
|
18723
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18776
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs
|
|
18724
18777
|
function FromArray4(type) {
|
|
18725
18778
|
const result = AddImmutable(_Array_(type));
|
|
18726
18779
|
return result;
|
|
18727
18780
|
}
|
|
18728
18781
|
|
|
18729
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18782
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs
|
|
18730
18783
|
function FromCyclic4(defs, ref2) {
|
|
18731
18784
|
const target2 = CyclicTarget(defs, ref2);
|
|
18732
18785
|
const partial2 = FromType17(target2);
|
|
@@ -18734,21 +18787,21 @@ function FromCyclic4(defs, ref2) {
|
|
|
18734
18787
|
return result;
|
|
18735
18788
|
}
|
|
18736
18789
|
|
|
18737
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18790
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs
|
|
18738
18791
|
function FromDependent4(if_, then_, else_) {
|
|
18739
18792
|
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
18740
18793
|
const result = FromType17(evaluated);
|
|
18741
18794
|
return result;
|
|
18742
18795
|
}
|
|
18743
18796
|
|
|
18744
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18797
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs
|
|
18745
18798
|
function FromIntersect4(types) {
|
|
18746
18799
|
const evaluated = EvaluateIntersect(types);
|
|
18747
18800
|
const result = FromType17(evaluated);
|
|
18748
18801
|
return result;
|
|
18749
18802
|
}
|
|
18750
18803
|
|
|
18751
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18804
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs
|
|
18752
18805
|
function FromObject7(properties2) {
|
|
18753
18806
|
const mapped = exports_guard.Keys(properties2).reduce((result2, left) => {
|
|
18754
18807
|
return { ...result2, [left]: AddReadonly(properties2[left]) };
|
|
@@ -18757,24 +18810,24 @@ function FromObject7(properties2) {
|
|
|
18757
18810
|
return result;
|
|
18758
18811
|
}
|
|
18759
18812
|
|
|
18760
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18813
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs
|
|
18761
18814
|
function FromTuple4(types) {
|
|
18762
18815
|
const result = AddImmutable(Tuple(types));
|
|
18763
18816
|
return result;
|
|
18764
18817
|
}
|
|
18765
18818
|
|
|
18766
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18819
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs
|
|
18767
18820
|
function FromUnion7(types) {
|
|
18768
18821
|
const result = types.map((type) => FromType17(type));
|
|
18769
18822
|
return Union(result);
|
|
18770
18823
|
}
|
|
18771
18824
|
|
|
18772
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18825
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs
|
|
18773
18826
|
function FromType17(type) {
|
|
18774
18827
|
return IsArray2(type) ? FromArray4(type.items) : IsCyclic(type) ? FromCyclic4(type.$defs, type.$ref) : IsDependent(type) ? FromDependent4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect4(type.allOf) : IsObject2(type) ? FromObject7(type.properties) : IsTuple(type) ? FromTuple4(type.items) : IsUnion(type) ? FromUnion7(type.anyOf) : type;
|
|
18775
18828
|
}
|
|
18776
18829
|
|
|
18777
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18830
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs
|
|
18778
18831
|
function ReadonlyObjectAction(type, options) {
|
|
18779
18832
|
const result = CanInstantiate([type]) ? exports_memory.Update(FromType17(type), {}, options) : ReadonlyObjectDeferred(type);
|
|
18780
18833
|
return result;
|
|
@@ -18784,12 +18837,12 @@ function ReadonlyObjectInstantiate(context, state, type, options) {
|
|
|
18784
18837
|
return ReadonlyObjectAction(instantiatedType, options);
|
|
18785
18838
|
}
|
|
18786
18839
|
|
|
18787
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18840
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/ref/instantiate.mjs
|
|
18788
18841
|
function RefInstantiate(context, state, type, ref2) {
|
|
18789
18842
|
return state.visited.includes(ref2) ? type : (ref2 in context) ? InstantiateType(context, State(state["callstack"], [...state["visited"], ref2]), context[ref2]) : type;
|
|
18790
18843
|
}
|
|
18791
18844
|
|
|
18792
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18845
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/from_cyclic.mjs
|
|
18793
18846
|
function FromCyclic5(defs, ref2) {
|
|
18794
18847
|
const target2 = CyclicTarget(defs, ref2);
|
|
18795
18848
|
const partial2 = FromType18(target2);
|
|
@@ -18797,27 +18850,27 @@ function FromCyclic5(defs, ref2) {
|
|
|
18797
18850
|
return result;
|
|
18798
18851
|
}
|
|
18799
18852
|
|
|
18800
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18853
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/from_dependent.mjs
|
|
18801
18854
|
function FromDependent5(if_, then_, else_) {
|
|
18802
18855
|
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
18803
18856
|
const result = FromType18(evaluated);
|
|
18804
18857
|
return result;
|
|
18805
18858
|
}
|
|
18806
18859
|
|
|
18807
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18860
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/from_intersect.mjs
|
|
18808
18861
|
function FromIntersect5(types) {
|
|
18809
18862
|
const evaluated = EvaluateIntersect(types);
|
|
18810
18863
|
const result = FromType18(evaluated);
|
|
18811
18864
|
return result;
|
|
18812
18865
|
}
|
|
18813
18866
|
|
|
18814
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18867
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/from_union.mjs
|
|
18815
18868
|
function FromUnion8(types) {
|
|
18816
18869
|
const result = types.map((type) => FromType18(type));
|
|
18817
18870
|
return Union(result);
|
|
18818
18871
|
}
|
|
18819
18872
|
|
|
18820
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18873
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/from_object.mjs
|
|
18821
18874
|
function FromObject8(properties2) {
|
|
18822
18875
|
const mapped = exports_guard.Keys(properties2).reduce((result2, left) => {
|
|
18823
18876
|
return { ...result2, [left]: RemoveOptional(properties2[left]) };
|
|
@@ -18826,12 +18879,12 @@ function FromObject8(properties2) {
|
|
|
18826
18879
|
return result;
|
|
18827
18880
|
}
|
|
18828
18881
|
|
|
18829
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18882
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/from_type.mjs
|
|
18830
18883
|
function FromType18(type) {
|
|
18831
18884
|
return IsCyclic(type) ? FromCyclic5(type.$defs, type.$ref) : IsDependent(type) ? FromDependent5(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect5(type.allOf) : IsUnion(type) ? FromUnion8(type.anyOf) : IsObject2(type) ? FromObject8(type.properties) : _Object_({});
|
|
18832
18885
|
}
|
|
18833
18886
|
|
|
18834
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18887
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/required.mjs
|
|
18835
18888
|
function RequiredDeferred(type, options = {}) {
|
|
18836
18889
|
return Deferred("Required", [type], options);
|
|
18837
18890
|
}
|
|
@@ -18839,7 +18892,7 @@ function Required(type, options = {}) {
|
|
|
18839
18892
|
return RequiredAction(type, options);
|
|
18840
18893
|
}
|
|
18841
18894
|
|
|
18842
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18895
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/instantiate.mjs
|
|
18843
18896
|
function RequiredAction(type, options) {
|
|
18844
18897
|
const result = CanInstantiate([type]) ? exports_memory.Update(FromType18(type), {}, options) : RequiredDeferred(type, options);
|
|
18845
18898
|
return result;
|
|
@@ -18849,7 +18902,7 @@ function RequiredInstantiate(context, state, type, options) {
|
|
|
18849
18902
|
return RequiredAction(instaniatedType, options);
|
|
18850
18903
|
}
|
|
18851
18904
|
|
|
18852
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18905
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/return_type.mjs
|
|
18853
18906
|
function ReturnTypeDeferred(type, options = {}) {
|
|
18854
18907
|
return Deferred("ReturnType", [type], options);
|
|
18855
18908
|
}
|
|
@@ -18857,7 +18910,7 @@ function ReturnType(type, options = {}) {
|
|
|
18857
18910
|
return ReturnTypeAction(type, options);
|
|
18858
18911
|
}
|
|
18859
18912
|
|
|
18860
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18913
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/return_type/instantiate.mjs
|
|
18861
18914
|
function ReturnTypeOperation(type) {
|
|
18862
18915
|
return IsFunction2(type) ? type["returnType"] : Never();
|
|
18863
18916
|
}
|
|
@@ -18870,7 +18923,7 @@ function ReturnTypeInstantiate(context, state, type, options = {}) {
|
|
|
18870
18923
|
return ReturnTypeAction(instantiatedType, options);
|
|
18871
18924
|
}
|
|
18872
18925
|
|
|
18873
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18926
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/with.mjs
|
|
18874
18927
|
function WithDeferred(type, options) {
|
|
18875
18928
|
return Deferred("With", [type, options], {});
|
|
18876
18929
|
}
|
|
@@ -18878,7 +18931,7 @@ function With2(type, options) {
|
|
|
18878
18931
|
return WithAction(type, options);
|
|
18879
18932
|
}
|
|
18880
18933
|
|
|
18881
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18934
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/with/instantiate.mjs
|
|
18882
18935
|
function WithAction(type, options) {
|
|
18883
18936
|
const result = CanInstantiate([type]) ? exports_memory.Update(type, {}, options) : WithDeferred(type, options);
|
|
18884
18937
|
return result;
|
|
@@ -18888,7 +18941,7 @@ function WithInstantiate(context, state, type, options) {
|
|
|
18888
18941
|
return WithAction(instaniatedType, options);
|
|
18889
18942
|
}
|
|
18890
18943
|
|
|
18891
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18944
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/rest/spread.mjs
|
|
18892
18945
|
function SpreadElement(type) {
|
|
18893
18946
|
const result = IsRest(type) ? IsTuple(type.items) ? RestSpread(type.items.items) : IsInfer(type.items) ? [type] : IsRef(type.items) ? [type] : [Never()] : [type];
|
|
18894
18947
|
return result;
|
|
@@ -18899,7 +18952,7 @@ function RestSpread(types) {
|
|
|
18899
18952
|
}, []);
|
|
18900
18953
|
return result;
|
|
18901
18954
|
}
|
|
18902
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18955
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/instantiate.mjs
|
|
18903
18956
|
function State(callstack, visited) {
|
|
18904
18957
|
return { callstack, visited };
|
|
18905
18958
|
}
|
|
@@ -18941,7 +18994,7 @@ function Instantiate(context, type) {
|
|
|
18941
18994
|
return InstantiateType(context, State([], []), type);
|
|
18942
18995
|
}
|
|
18943
18996
|
|
|
18944
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
18997
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs
|
|
18945
18998
|
function AddImmutableOperation(type) {
|
|
18946
18999
|
return exports_memory.Update(type, { "~immutable": true }, {});
|
|
18947
19000
|
}
|
|
@@ -18954,28 +19007,28 @@ function AddImmutableInstantiate(context, state, type, options) {
|
|
|
18954
19007
|
return AddImmutableAction(instantiatedType, options);
|
|
18955
19008
|
}
|
|
18956
19009
|
|
|
18957
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
19010
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/_add_immutable.mjs
|
|
18958
19011
|
function AddImmutableDeferred(type, options = {}) {
|
|
18959
19012
|
return Deferred("AddImmutable", [type], options);
|
|
18960
19013
|
}
|
|
18961
19014
|
function AddImmutable(type, options = {}) {
|
|
18962
19015
|
return AddImmutableAction(type, options);
|
|
18963
19016
|
}
|
|
18964
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
19017
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/evaluate.mjs
|
|
18965
19018
|
function EvaluateDeferred(type, options = {}) {
|
|
18966
19019
|
return Deferred("Evaluate", [type], options);
|
|
18967
19020
|
}
|
|
18968
19021
|
function Evaluate(type, options = {}) {
|
|
18969
19022
|
return EvaluateAction(type, options);
|
|
18970
19023
|
}
|
|
18971
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
19024
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/module.mjs
|
|
18972
19025
|
function ModuleDeferred(declarations, options = {}) {
|
|
18973
19026
|
return Deferred("Module", [declarations], options);
|
|
18974
19027
|
}
|
|
18975
19028
|
function Module2(declarations, options = {}) {
|
|
18976
19029
|
return ModuleInstantiate({}, State([], []), declarations, options);
|
|
18977
19030
|
}
|
|
18978
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
19031
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/script.mjs
|
|
18979
19032
|
function Script2(...args) {
|
|
18980
19033
|
const [context, input, options] = exports_arguments.Match(args, {
|
|
18981
19034
|
2: (script, options2) => exports_guard.IsString(script) ? [{}, script, options2] : [script, options2, {}],
|
|
@@ -18986,7 +19039,7 @@ function Script2(...args) {
|
|
|
18986
19039
|
const parsed = exports_guard.IsArray(result) && exports_guard.IsEqual(result.length, 2) ? InstantiateType(context, State([], []), result[0]) : Never();
|
|
18987
19040
|
return exports_memory.Update(parsed, {}, options);
|
|
18988
19041
|
}
|
|
18989
|
-
// ../../node_modules/.bun/typebox@1.3.
|
|
19042
|
+
// ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/typebox.mjs
|
|
18990
19043
|
var exports_typebox = {};
|
|
18991
19044
|
__export(exports_typebox, {
|
|
18992
19045
|
With: () => With2,
|
|
@@ -19198,7 +19251,8 @@ function buildRuntimeOptions(opts, sessionId) {
|
|
|
19198
19251
|
};
|
|
19199
19252
|
const adsExtension = createAdsExtension({
|
|
19200
19253
|
baseUrl: opts.baseUrl,
|
|
19201
|
-
getToken: () => opts.jwt
|
|
19254
|
+
getToken: () => opts.jwt,
|
|
19255
|
+
sessionId
|
|
19202
19256
|
});
|
|
19203
19257
|
const usageToolExtension = createUsageToolExtension({
|
|
19204
19258
|
baseUrl: opts.baseUrl,
|
|
@@ -19223,10 +19277,28 @@ function buildRuntimeOptions(opts, sessionId) {
|
|
|
19223
19277
|
tools: ALLOWED_TOOL_NAMES
|
|
19224
19278
|
};
|
|
19225
19279
|
}
|
|
19280
|
+
function getSessionDir(cwd, agentDir) {
|
|
19281
|
+
const resolvedCwd = resolve(cwd);
|
|
19282
|
+
const safePath = `--${resolvedCwd.replace(/^[/\\]/, "").replace(/[/\\:]/g, "-")}--`;
|
|
19283
|
+
return join2(resolve(agentDir), "sessions", safePath);
|
|
19284
|
+
}
|
|
19285
|
+
async function createSessionManager(cwd, sessionDir, sessionId, api3 = SessionManager) {
|
|
19286
|
+
if (sessionId) {
|
|
19287
|
+
const infos = await api3.list(cwd, sessionDir);
|
|
19288
|
+
const info = infos.find((session) => session.id === sessionId);
|
|
19289
|
+
if (!info) {
|
|
19290
|
+
throw new Error(`No session found matching '${sessionId}' in this directory`);
|
|
19291
|
+
}
|
|
19292
|
+
return api3.open(info.path, sessionDir);
|
|
19293
|
+
}
|
|
19294
|
+
return api3.create(cwd, sessionDir);
|
|
19295
|
+
}
|
|
19226
19296
|
async function launchPi(opts) {
|
|
19227
|
-
const sessionId = crypto.randomUUID();
|
|
19228
|
-
const { settingsManager, resourceLoaderOptions, tools } = buildRuntimeOptions(opts, sessionId);
|
|
19229
19297
|
const cwd = process.cwd();
|
|
19298
|
+
const sessionDir = getSessionDir(cwd, opts.agentDir);
|
|
19299
|
+
const sm = await createSessionManager(cwd, sessionDir, opts.session);
|
|
19300
|
+
const sessionId = sm.getSessionId();
|
|
19301
|
+
const { settingsManager, resourceLoaderOptions, tools } = buildRuntimeOptions(opts, sessionId);
|
|
19230
19302
|
const createRuntime = async ({
|
|
19231
19303
|
cwd: rtCwd,
|
|
19232
19304
|
sessionManager,
|
|
@@ -19252,13 +19324,14 @@ async function launchPi(opts) {
|
|
|
19252
19324
|
const runtime = await createAgentSessionRuntime(createRuntime, {
|
|
19253
19325
|
cwd,
|
|
19254
19326
|
agentDir: opts.agentDir,
|
|
19255
|
-
sessionManager:
|
|
19327
|
+
sessionManager: sm
|
|
19256
19328
|
});
|
|
19257
19329
|
const mode = new InteractiveMode(runtime, {
|
|
19258
19330
|
initialImages: [],
|
|
19259
19331
|
initialMessages: []
|
|
19260
19332
|
});
|
|
19261
19333
|
await mode.run();
|
|
19334
|
+
return sm.getSessionId();
|
|
19262
19335
|
}
|
|
19263
19336
|
|
|
19264
19337
|
// src/prompt.ts
|
|
@@ -19272,6 +19345,8 @@ free-pi — before you start
|
|
|
19272
19345
|
* A persistent ad banner and occasional inline ad cards render in the
|
|
19273
19346
|
terminal UI. Ad content never enters the model's context.
|
|
19274
19347
|
* Your coding sessions may be used to train models.
|
|
19348
|
+
* If GitHub email capture is enabled, we collect your GitHub email and may
|
|
19349
|
+
use it to contact you about the service or product.
|
|
19275
19350
|
* free-pi-cli auto-updates itself when a new version is available. Disable
|
|
19276
19351
|
with FREEPI_NO_AUTO_UPDATE or {"autoUpdate":false} in ~/.free-pi/config.json.
|
|
19277
19352
|
|
|
@@ -19377,6 +19452,9 @@ async function checkToken(baseUrl, jwt2) {
|
|
|
19377
19452
|
throw new UnauthorizedError;
|
|
19378
19453
|
}
|
|
19379
19454
|
|
|
19455
|
+
// src/run.ts
|
|
19456
|
+
import { SessionManager as SessionManager2 } from "@earendil-works/pi-coding-agent";
|
|
19457
|
+
|
|
19380
19458
|
// src/credentials.ts
|
|
19381
19459
|
import { mkdir, readFile, rm, writeFile, chmod } from "node:fs/promises";
|
|
19382
19460
|
import { dirname } from "node:path";
|
|
@@ -19400,6 +19478,32 @@ async function clearJwt(credentialsPath) {
|
|
|
19400
19478
|
await rm(credentialsPath, { force: true });
|
|
19401
19479
|
}
|
|
19402
19480
|
|
|
19481
|
+
// src/onboarding.ts
|
|
19482
|
+
var INTRO_ENV_SKIP = "FREEPI_NO_INTRO";
|
|
19483
|
+
var INTRO_TEXT = `
|
|
19484
|
+
Welcome to free-pi — a free coding agent in your terminal.
|
|
19485
|
+
|
|
19486
|
+
• It's the pi coding agent, free to use. Ads in the terminal pay for the
|
|
19487
|
+
inference — ad content never reaches the model.
|
|
19488
|
+
• Tell it what to build, fix, or explain, like any coding assistant.
|
|
19489
|
+
• One session per account at a time. If you close the terminal, relaunch
|
|
19490
|
+
with "npx free-pi-cli" — or resume where you left off with
|
|
19491
|
+
"npx free-pi-cli --session <id>" (the id prints when you exit).
|
|
19492
|
+
|
|
19493
|
+
Set ${INTRO_ENV_SKIP}=1 to skip this next time.
|
|
19494
|
+
`.trim();
|
|
19495
|
+
function introSkipped(env = process.env) {
|
|
19496
|
+
const v = env[INTRO_ENV_SKIP];
|
|
19497
|
+
return v === "1" || v === "true";
|
|
19498
|
+
}
|
|
19499
|
+
function showIntro(log, env = process.env) {
|
|
19500
|
+
if (introSkipped(env))
|
|
19501
|
+
return;
|
|
19502
|
+
log(`
|
|
19503
|
+
${INTRO_TEXT}
|
|
19504
|
+
`);
|
|
19505
|
+
}
|
|
19506
|
+
|
|
19403
19507
|
// src/run.ts
|
|
19404
19508
|
async function loginFlow(deps) {
|
|
19405
19509
|
const device = await startDeviceFlow(deps.baseUrl);
|
|
@@ -19412,7 +19516,27 @@ Open ${device.verification_uri} and enter code: ${device.user_code}
|
|
|
19412
19516
|
await saveJwt(deps.credentialsPath, token);
|
|
19413
19517
|
return token;
|
|
19414
19518
|
}
|
|
19415
|
-
|
|
19519
|
+
function parseSessionArg(argv) {
|
|
19520
|
+
const flagIndex = argv.indexOf("--session");
|
|
19521
|
+
if (flagIndex === -1)
|
|
19522
|
+
return {};
|
|
19523
|
+
const value = argv[flagIndex + 1];
|
|
19524
|
+
if (!value || value.startsWith("--")) {
|
|
19525
|
+
return { error: "Missing value for --session" };
|
|
19526
|
+
}
|
|
19527
|
+
try {
|
|
19528
|
+
SessionManager2.inMemory(process.cwd(), { id: value });
|
|
19529
|
+
} catch (err) {
|
|
19530
|
+
return { error: `Invalid --session value: ${err instanceof Error ? err.message : String(err)}` };
|
|
19531
|
+
}
|
|
19532
|
+
return { session: value };
|
|
19533
|
+
}
|
|
19534
|
+
async function run(deps, argv = process.argv) {
|
|
19535
|
+
const sessionArg = parseSessionArg(argv);
|
|
19536
|
+
if (sessionArg.error) {
|
|
19537
|
+
deps.log(sessionArg.error);
|
|
19538
|
+
return 1;
|
|
19539
|
+
}
|
|
19416
19540
|
let jwt2 = await loadJwt(deps.credentialsPath);
|
|
19417
19541
|
if (jwt2) {
|
|
19418
19542
|
try {
|
|
@@ -19430,6 +19554,7 @@ async function run(deps) {
|
|
|
19430
19554
|
deps.log("Declined. Exiting without contacting the free-pi server.");
|
|
19431
19555
|
return 1;
|
|
19432
19556
|
}
|
|
19557
|
+
showIntro(deps.log);
|
|
19433
19558
|
jwt2 = await loginFlow(deps);
|
|
19434
19559
|
}
|
|
19435
19560
|
const versionCheck = await deps.checkClientVersion(deps.baseUrl, CLI_VERSION);
|
|
@@ -19445,7 +19570,17 @@ async function run(deps) {
|
|
|
19445
19570
|
deps.log(`update available: ${versionCheck.latest}, you have ${CLI_VERSION}; run \`npx free-pi-cli@latest\``);
|
|
19446
19571
|
}
|
|
19447
19572
|
}
|
|
19448
|
-
await deps.launchPi({
|
|
19573
|
+
const finalSessionId = await deps.launchPi({
|
|
19574
|
+
baseUrl: deps.baseUrl,
|
|
19575
|
+
jwt: jwt2,
|
|
19576
|
+
agentDir: deps.agentDir,
|
|
19577
|
+
session: sessionArg.session
|
|
19578
|
+
});
|
|
19579
|
+
deps.log(finalSessionId ? `
|
|
19580
|
+
free-pi session ended. Start it again anytime: npx free-pi-cli --session ${finalSessionId}` : `
|
|
19581
|
+
free-pi session ended. Start it again anytime: npx free-pi-cli`);
|
|
19582
|
+
deps.log(`(or install once for a shorter command: npm i -g free-pi-cli → free-pi-cli)
|
|
19583
|
+
`);
|
|
19449
19584
|
return 0;
|
|
19450
19585
|
}
|
|
19451
19586
|
|
|
@@ -19505,6 +19640,24 @@ async function checkClientVersion(baseUrl, cliVersion, fetchImpl = fetch) {
|
|
|
19505
19640
|
}
|
|
19506
19641
|
}
|
|
19507
19642
|
|
|
19643
|
+
// src/node-check.ts
|
|
19644
|
+
import * as zlib from "node:zlib";
|
|
19645
|
+
function zstdSupportError(zlibModule = zlib, nodeVersion = process.versions.node) {
|
|
19646
|
+
if (typeof zlibModule.createZstdDecompress === "function")
|
|
19647
|
+
return null;
|
|
19648
|
+
return [
|
|
19649
|
+
`free-pi-cli can't run on Node ${nodeVersion}.`,
|
|
19650
|
+
``,
|
|
19651
|
+
`The pi agent needs Node with zstd support (Node >= 22.15, or >= 23.8 on the`,
|
|
19652
|
+
`Current line) — older Node crashes mid-request inside the agent. Upgrade Node:`,
|
|
19653
|
+
``,
|
|
19654
|
+
` nvm install 22 # then re-run: npx free-pi-cli`,
|
|
19655
|
+
``,
|
|
19656
|
+
`(or update your system Node to the latest LTS.)`
|
|
19657
|
+
].join(`
|
|
19658
|
+
`);
|
|
19659
|
+
}
|
|
19660
|
+
|
|
19508
19661
|
// src/index.ts
|
|
19509
19662
|
function realSpawn(cmd, args, opts) {
|
|
19510
19663
|
const result = spawnSync(cmd, args, { timeout: opts.timeout, encoding: "utf8" });
|
|
@@ -19518,6 +19671,11 @@ function resolveCliRealpath() {
|
|
|
19518
19671
|
}
|
|
19519
19672
|
}
|
|
19520
19673
|
async function main() {
|
|
19674
|
+
const zstdErr = zstdSupportError();
|
|
19675
|
+
if (zstdErr) {
|
|
19676
|
+
console.error(zstdErr);
|
|
19677
|
+
process.exit(1);
|
|
19678
|
+
}
|
|
19521
19679
|
const agentDir = getFreePiAgentDir();
|
|
19522
19680
|
const code = await run({
|
|
19523
19681
|
baseUrl: resolveBaseUrl(),
|
|
@@ -19525,7 +19683,7 @@ async function main() {
|
|
|
19525
19683
|
credentialsPath: getCredentialsPath(agentDir),
|
|
19526
19684
|
promptConsent: promptConsentInteractive,
|
|
19527
19685
|
openBrowser,
|
|
19528
|
-
sleep: (ms) => new Promise((
|
|
19686
|
+
sleep: (ms) => new Promise((resolve2) => setTimeout(resolve2, ms)),
|
|
19529
19687
|
launchPi,
|
|
19530
19688
|
log: (message) => console.log(message),
|
|
19531
19689
|
checkClientVersion,
|