tempest.games 0.2.73 → 0.2.75
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/CHANGELOG.md +15 -0
- package/app/assets/index-II0hvKAD.js +66 -0
- package/app/index.html +1 -1
- package/bin/backend.bun.js +233 -857
- package/bin/backend.worker.game.bun.js +14 -638
- package/bin/backend.worker.tribunal.bun.js +364 -973
- package/bin/frontend.bun.js +229 -853
- package/bin/setup-db.bun.js +178 -178
- package/package.json +15 -15
- package/app/assets/index-BQfBw87O.js +0 -66
package/bin/frontend.bun.js
CHANGED
|
@@ -32,7 +32,7 @@ var __require = import.meta.require;
|
|
|
32
32
|
// src/frontend.bun.ts
|
|
33
33
|
import path3, { join as join2, normalize as normalize2, resolve as resolve2 } from "path";
|
|
34
34
|
|
|
35
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
35
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/arrays.js
|
|
36
36
|
var liftArray = (data) => Array.isArray(data) ? data : [data];
|
|
37
37
|
var spliterate = (arr, predicate) => {
|
|
38
38
|
const result = [[], []];
|
|
@@ -87,7 +87,7 @@ var groupBy = (array, discriminant) => array.reduce((result, item) => {
|
|
|
87
87
|
return result;
|
|
88
88
|
}, {});
|
|
89
89
|
var arrayEquals = (l, r, opts) => l.length === r.length && l.every(opts?.isEqual ? (lItem, i) => opts.isEqual(lItem, r[i]) : (lItem, i) => lItem === r[i]);
|
|
90
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
90
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/domain.js
|
|
91
91
|
var hasDomain = (data, kind) => domainOf(data) === kind;
|
|
92
92
|
var domainOf = (data) => {
|
|
93
93
|
const builtinType = typeof data;
|
|
@@ -108,7 +108,7 @@ var jsTypeOfDescriptions = {
|
|
|
108
108
|
function: "a function"
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
111
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/errors.js
|
|
112
112
|
class InternalArktypeError extends Error {
|
|
113
113
|
}
|
|
114
114
|
var throwInternalError = (message) => throwError(message, InternalArktypeError);
|
|
@@ -123,7 +123,7 @@ var throwParseError = (message) => throwError(message, ParseError);
|
|
|
123
123
|
var noSuggest = (s) => ` ${s}`;
|
|
124
124
|
var ZeroWidthSpace = "\u200B";
|
|
125
125
|
|
|
126
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
126
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/flatMorph.js
|
|
127
127
|
var flatMorph = (o, flatMapEntry) => {
|
|
128
128
|
const result = {};
|
|
129
129
|
const inputIsArray = Array.isArray(o);
|
|
@@ -142,7 +142,7 @@ var flatMorph = (o, flatMapEntry) => {
|
|
|
142
142
|
return outputShouldBeArray ? Object.values(result) : result;
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
145
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/records.js
|
|
146
146
|
var entriesOf = Object.entries;
|
|
147
147
|
var isKeyOf = (k, o) => (k in o);
|
|
148
148
|
var hasKey = (o, k) => (k in o);
|
|
@@ -189,7 +189,7 @@ var enumValues = (tsEnum) => Object.values(tsEnum).filter((v) => {
|
|
|
189
189
|
return typeof tsEnum[v] !== "number";
|
|
190
190
|
});
|
|
191
191
|
|
|
192
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
192
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/objectKinds.js
|
|
193
193
|
var ecmascriptConstructors = {
|
|
194
194
|
Array,
|
|
195
195
|
Boolean,
|
|
@@ -305,7 +305,7 @@ var constructorExtends = (ctor, base) => {
|
|
|
305
305
|
return false;
|
|
306
306
|
};
|
|
307
307
|
|
|
308
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
308
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/clone.js
|
|
309
309
|
var deepClone = (input) => _clone(input, new Map);
|
|
310
310
|
var _clone = (input, seen) => {
|
|
311
311
|
if (typeof input !== "object" || input === null)
|
|
@@ -331,7 +331,7 @@ var _clone = (input, seen) => {
|
|
|
331
331
|
Object.defineProperties(cloned, propertyDescriptors);
|
|
332
332
|
return cloned;
|
|
333
333
|
};
|
|
334
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
334
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/functions.js
|
|
335
335
|
var cached = (thunk) => {
|
|
336
336
|
let result = unset;
|
|
337
337
|
return () => result === unset ? result = thunk() : result;
|
|
@@ -340,14 +340,14 @@ var isThunk = (value) => typeof value === "function" && value.length === 0;
|
|
|
340
340
|
var DynamicFunction = class extends Function {
|
|
341
341
|
constructor(...args) {
|
|
342
342
|
const params = args.slice(0, -1);
|
|
343
|
-
const body = args.
|
|
343
|
+
const body = args[args.length - 1];
|
|
344
344
|
try {
|
|
345
345
|
super(...params, body);
|
|
346
346
|
} catch (e) {
|
|
347
347
|
return throwInternalError(`Encountered an unexpected error while compiling your definition:
|
|
348
348
|
Message: ${e}
|
|
349
349
|
Source: (${args.slice(0, -1)}) => {
|
|
350
|
-
${args.
|
|
350
|
+
${args[args.length - 1]}
|
|
351
351
|
}`);
|
|
352
352
|
}
|
|
353
353
|
}
|
|
@@ -365,16 +365,16 @@ var envHasCsp = cached(() => {
|
|
|
365
365
|
return true;
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
368
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/generics.js
|
|
369
369
|
var brand = noSuggest("brand");
|
|
370
370
|
var inferred = noSuggest("arkInferred");
|
|
371
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
371
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/hkt.js
|
|
372
372
|
var args = noSuggest("args");
|
|
373
373
|
|
|
374
374
|
class Hkt {
|
|
375
375
|
constructor() {}
|
|
376
376
|
}
|
|
377
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
377
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/isomorphic.js
|
|
378
378
|
var fileName = () => {
|
|
379
379
|
try {
|
|
380
380
|
const error = new Error;
|
|
@@ -391,7 +391,7 @@ var isomorphic = {
|
|
|
391
391
|
fileName,
|
|
392
392
|
env
|
|
393
393
|
};
|
|
394
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
394
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/strings.js
|
|
395
395
|
var capitalize = (s) => s[0].toUpperCase() + s.slice(1);
|
|
396
396
|
var anchoredRegex = (regex) => new RegExp(anchoredSource(regex), typeof regex === "string" ? "" : regex.flags);
|
|
397
397
|
var anchoredSource = (regex) => {
|
|
@@ -409,7 +409,7 @@ var whitespaceChars = {
|
|
|
409
409
|
"\t": 1
|
|
410
410
|
};
|
|
411
411
|
|
|
412
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
412
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/numbers.js
|
|
413
413
|
var anchoredNegativeZeroPattern = /^-0\.?0*$/.source;
|
|
414
414
|
var positiveIntegerPattern = /[1-9]\d*/.source;
|
|
415
415
|
var looseDecimalPattern = /\.\d+/.source;
|
|
@@ -471,8 +471,8 @@ var tryParseWellFormedBigint = (def) => {
|
|
|
471
471
|
return throwParseError(writeMalformedNumericLiteralMessage(def, "bigint"));
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
475
|
-
var arkUtilVersion = "0.
|
|
474
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/registry.js
|
|
475
|
+
var arkUtilVersion = "0.54.0";
|
|
476
476
|
var initialRegistryContents = {
|
|
477
477
|
version: arkUtilVersion,
|
|
478
478
|
filename: isomorphic.fileName(),
|
|
@@ -511,10 +511,10 @@ var baseNameFor = (value) => {
|
|
|
511
511
|
return throwInternalError(`Unexpected attempt to register serializable value of type ${domainOf(value)}`);
|
|
512
512
|
};
|
|
513
513
|
|
|
514
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
514
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/primitive.js
|
|
515
515
|
var serializePrimitive = (value) => typeof value === "string" ? JSON.stringify(value) : typeof value === "bigint" ? `${value}n` : `${value}`;
|
|
516
516
|
|
|
517
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
517
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/serialize.js
|
|
518
518
|
var snapshot = (data, opts = {}) => _serialize(data, {
|
|
519
519
|
onUndefined: `$ark.undefined`,
|
|
520
520
|
onBigInt: (n) => `$ark.bigint-${n}`,
|
|
@@ -602,7 +602,7 @@ var _serialize = (data, opts, seen) => {
|
|
|
602
602
|
case "undefined":
|
|
603
603
|
return opts.onUndefined ?? "undefined";
|
|
604
604
|
case "string":
|
|
605
|
-
return data.
|
|
605
|
+
return data.replace(/\\/g, "\\\\");
|
|
606
606
|
default:
|
|
607
607
|
return data;
|
|
608
608
|
}
|
|
@@ -647,7 +647,7 @@ var months = [
|
|
|
647
647
|
var timeWithUnnecessarySeconds = /:\d\d:00$/;
|
|
648
648
|
var pad = (value, length) => String(value).padStart(length, "0");
|
|
649
649
|
|
|
650
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
650
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/path.js
|
|
651
651
|
var appendStringifiedKey = (path, prop, ...[opts]) => {
|
|
652
652
|
const stringifySymbol = opts?.stringifySymbol ?? printable;
|
|
653
653
|
let propAccessChain = path;
|
|
@@ -704,7 +704,7 @@ class ReadonlyPath extends ReadonlyArray {
|
|
|
704
704
|
return this.cache.stringifyAncestors = result;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
707
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/scanner.js
|
|
708
708
|
class Scanner {
|
|
709
709
|
chars;
|
|
710
710
|
i;
|
|
@@ -787,9 +787,9 @@ class Scanner {
|
|
|
787
787
|
}
|
|
788
788
|
var writeUnmatchedGroupCloseMessage = (char, unscanned) => `Unmatched ${char}${unscanned === "" ? "" : ` before ${unscanned}`}`;
|
|
789
789
|
var writeUnclosedGroupMessage = (missingChar) => `Missing ${missingChar}`;
|
|
790
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
790
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/traits.js
|
|
791
791
|
var implementedTraits = noSuggest("implementedTraits");
|
|
792
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
792
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/registry.js
|
|
793
793
|
var _registryName = "$ark";
|
|
794
794
|
var suffix = 2;
|
|
795
795
|
while (_registryName in globalThis)
|
|
@@ -800,7 +800,7 @@ var $ark = registry;
|
|
|
800
800
|
var reference = (name) => `${registryName}.${name}`;
|
|
801
801
|
var registeredReference = (value) => reference(register(value));
|
|
802
802
|
|
|
803
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
803
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/compile.js
|
|
804
804
|
class CompiledFunction extends CastableBase {
|
|
805
805
|
argNames;
|
|
806
806
|
body = "";
|
|
@@ -936,13 +936,13 @@ class NodeCompiler extends CompiledFunction {
|
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
938
|
|
|
939
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
939
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/utils.js
|
|
940
940
|
var makeRootAndArrayPropertiesMutable = (o) => flatMorph(o, (k, v) => [k, isArray(v) ? [...v] : v]);
|
|
941
941
|
var arkKind = noSuggest("arkKind");
|
|
942
942
|
var hasArkKind = (value, kind) => value?.[arkKind] === kind;
|
|
943
943
|
var isNode = (value) => hasArkKind(value, "root") || hasArkKind(value, "constraint");
|
|
944
944
|
|
|
945
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
945
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/implement.js
|
|
946
946
|
var basisKinds = ["unit", "proto", "domain"];
|
|
947
947
|
var structuralKinds = [
|
|
948
948
|
"required",
|
|
@@ -1030,7 +1030,7 @@ var implementNode = (_) => {
|
|
|
1030
1030
|
return implementation;
|
|
1031
1031
|
};
|
|
1032
1032
|
|
|
1033
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
1033
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/toJsonSchema.js
|
|
1034
1034
|
class ToJsonSchemaError extends Error {
|
|
1035
1035
|
name = "ToJsonSchemaError";
|
|
1036
1036
|
code;
|
|
@@ -1070,7 +1070,7 @@ var ToJsonSchema = {
|
|
|
1070
1070
|
defaultConfig
|
|
1071
1071
|
};
|
|
1072
1072
|
|
|
1073
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
1073
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/config.js
|
|
1074
1074
|
$ark.config ??= {};
|
|
1075
1075
|
var mergeConfigs = (base, merged) => {
|
|
1076
1076
|
if (!merged)
|
|
@@ -1125,7 +1125,7 @@ var mergeFallbacks = (base, merged) => {
|
|
|
1125
1125
|
return result;
|
|
1126
1126
|
};
|
|
1127
1127
|
var normalizeFallback = (fallback) => typeof fallback === "function" ? { default: fallback } : fallback ?? {};
|
|
1128
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
1128
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/errors.js
|
|
1129
1129
|
class ArkError extends CastableBase {
|
|
1130
1130
|
[arkKind] = "error";
|
|
1131
1131
|
path;
|
|
@@ -1318,7 +1318,7 @@ var indent = (error) => error.toString().split(`
|
|
|
1318
1318
|
`).join(`
|
|
1319
1319
|
`);
|
|
1320
1320
|
|
|
1321
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
1321
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/traversal.js
|
|
1322
1322
|
class Traversal {
|
|
1323
1323
|
path = [];
|
|
1324
1324
|
errors = new ArkErrors(this);
|
|
@@ -1356,7 +1356,7 @@ class Traversal {
|
|
|
1356
1356
|
return this.currentErrorCount !== 0;
|
|
1357
1357
|
}
|
|
1358
1358
|
get currentBranch() {
|
|
1359
|
-
return this.branches.
|
|
1359
|
+
return this.branches[this.branches.length - 1];
|
|
1360
1360
|
}
|
|
1361
1361
|
queueMorphs(morphs) {
|
|
1362
1362
|
const input = {
|
|
@@ -1419,7 +1419,7 @@ class Traversal {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
1421
|
applyMorphsAtPath(path2, morphs) {
|
|
1422
|
-
const key = path2.
|
|
1422
|
+
const key = path2[path2.length - 1];
|
|
1423
1423
|
let parent;
|
|
1424
1424
|
if (key !== undefined) {
|
|
1425
1425
|
parent = this.root;
|
|
@@ -1458,7 +1458,7 @@ var traverseKey = (key, fn, ctx) => {
|
|
|
1458
1458
|
return result;
|
|
1459
1459
|
};
|
|
1460
1460
|
|
|
1461
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
1461
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/node.js
|
|
1462
1462
|
class BaseNode extends Callable {
|
|
1463
1463
|
attachments;
|
|
1464
1464
|
$;
|
|
@@ -1793,7 +1793,7 @@ var typePathToPropString = (path2) => stringifyPath(path2, {
|
|
|
1793
1793
|
stringifyNonKey: (node) => node.expression
|
|
1794
1794
|
});
|
|
1795
1795
|
var referenceMatcher = /"(\$ark\.[^"]+)"/g;
|
|
1796
|
-
var compileMeta = (metaJson) => JSON.stringify(metaJson).
|
|
1796
|
+
var compileMeta = (metaJson) => JSON.stringify(metaJson).replace(referenceMatcher, "$1");
|
|
1797
1797
|
var flatRef = (path2, node) => ({
|
|
1798
1798
|
path: path2,
|
|
1799
1799
|
node,
|
|
@@ -1807,7 +1807,7 @@ var appendUniqueNodes = (existing, refs) => appendUnique(existing, refs, {
|
|
|
1807
1807
|
isEqual: (l, r) => l.equals(r)
|
|
1808
1808
|
});
|
|
1809
1809
|
|
|
1810
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
1810
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/disjoint.js
|
|
1811
1811
|
class Disjoint extends Array {
|
|
1812
1812
|
static init(kind, l, r, ctx) {
|
|
1813
1813
|
return new Disjoint({
|
|
@@ -1869,7 +1869,7 @@ var describeReasons = (l, r) => `${describeReason(l)} and ${describeReason(r)}`;
|
|
|
1869
1869
|
var describeReason = (value) => isNode(value) ? value.expression : isArray(value) ? value.map(describeReason).join(" | ") || "never" : String(value);
|
|
1870
1870
|
var writeUnsatisfiableExpressionError = (expression) => `${expression} results in an unsatisfiable type`;
|
|
1871
1871
|
|
|
1872
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
1872
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/intersections.js
|
|
1873
1873
|
var intersectionCache = {};
|
|
1874
1874
|
var intersectNodesRoot = (l, r, $) => intersectOrPipeNodes(l, r, {
|
|
1875
1875
|
$,
|
|
@@ -1977,7 +1977,7 @@ var _pipeMorphed = (from, to, ctx) => {
|
|
|
1977
1977
|
});
|
|
1978
1978
|
};
|
|
1979
1979
|
|
|
1980
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
1980
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/constraint.js
|
|
1981
1981
|
class BaseConstraint extends BaseNode {
|
|
1982
1982
|
constructor(attachments, $) {
|
|
1983
1983
|
super(attachments, $);
|
|
@@ -2091,7 +2091,7 @@ var writeInvalidOperandMessage = (kind, expected, actual) => {
|
|
|
2091
2091
|
const actualDescription = actual.hasKind("morph") ? "a morph" : actual.isUnknown() ? "unknown" : actual.exclude(expected).defaultShortDescription;
|
|
2092
2092
|
return `${capitalize(kind)} operand must be ${expected.description} (was ${actualDescription})`;
|
|
2093
2093
|
};
|
|
2094
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2094
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/generic.js
|
|
2095
2095
|
var parseGeneric = (paramDefs, bodyDef, $) => new GenericRoot(paramDefs, bodyDef, $, $, null);
|
|
2096
2096
|
|
|
2097
2097
|
class LazyGenericBody extends Callable {
|
|
@@ -2162,7 +2162,7 @@ class GenericRoot extends Callable {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
}
|
|
2164
2164
|
var writeUnsatisfiedParameterConstraintMessage = (name, constraint, arg) => `${name} must be assignable to ${constraint} (was ${arg})`;
|
|
2165
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2165
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/predicate.js
|
|
2166
2166
|
var implementation = implementNode({
|
|
2167
2167
|
kind: "predicate",
|
|
2168
2168
|
hasAssociatedError: true,
|
|
@@ -2217,7 +2217,7 @@ var Predicate = {
|
|
|
2217
2217
|
Node: PredicateNode
|
|
2218
2218
|
};
|
|
2219
2219
|
|
|
2220
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2220
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/divisor.js
|
|
2221
2221
|
var implementation2 = implementNode({
|
|
2222
2222
|
kind: "divisor",
|
|
2223
2223
|
collapsibleKey: "rule",
|
|
@@ -2270,7 +2270,7 @@ var greatestCommonDivisor = (l, r) => {
|
|
|
2270
2270
|
return greatestCommonDivisor2;
|
|
2271
2271
|
};
|
|
2272
2272
|
|
|
2273
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2273
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/range.js
|
|
2274
2274
|
class BaseRange extends InternalPrimitiveConstraint {
|
|
2275
2275
|
boundOperandKind = operandKindsByBoundKind[this.kind];
|
|
2276
2276
|
compiledActual = this.boundOperandKind === "value" ? `data` : this.boundOperandKind === "length" ? `data.length` : `data.valueOf()`;
|
|
@@ -2350,7 +2350,7 @@ var compileComparator = (kind, exclusive) => `${isKeyOf(kind, boundKindPairsByLo
|
|
|
2350
2350
|
var dateLimitToString = (limit) => typeof limit === "string" ? limit : new Date(limit).toLocaleString();
|
|
2351
2351
|
var writeUnboundableMessage = (root) => `Bounded expression ${root} must be exactly one of number, string, Array, or Date`;
|
|
2352
2352
|
|
|
2353
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2353
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/after.js
|
|
2354
2354
|
var implementation3 = implementNode({
|
|
2355
2355
|
kind: "after",
|
|
2356
2356
|
collapsibleKey: "rule",
|
|
@@ -2384,7 +2384,7 @@ var After = {
|
|
|
2384
2384
|
Node: AfterNode
|
|
2385
2385
|
};
|
|
2386
2386
|
|
|
2387
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2387
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/before.js
|
|
2388
2388
|
var implementation4 = implementNode({
|
|
2389
2389
|
kind: "before",
|
|
2390
2390
|
collapsibleKey: "rule",
|
|
@@ -2419,7 +2419,7 @@ var Before = {
|
|
|
2419
2419
|
Node: BeforeNode
|
|
2420
2420
|
};
|
|
2421
2421
|
|
|
2422
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2422
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/exactLength.js
|
|
2423
2423
|
var implementation5 = implementNode({
|
|
2424
2424
|
kind: "exactLength",
|
|
2425
2425
|
collapsibleKey: "rule",
|
|
@@ -2467,7 +2467,7 @@ var ExactLength = {
|
|
|
2467
2467
|
Node: ExactLengthNode
|
|
2468
2468
|
};
|
|
2469
2469
|
|
|
2470
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2470
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/max.js
|
|
2471
2471
|
var implementation6 = implementNode({
|
|
2472
2472
|
kind: "max",
|
|
2473
2473
|
collapsibleKey: "rule",
|
|
@@ -2507,7 +2507,7 @@ var Max = {
|
|
|
2507
2507
|
Node: MaxNode
|
|
2508
2508
|
};
|
|
2509
2509
|
|
|
2510
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2510
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/maxLength.js
|
|
2511
2511
|
var implementation7 = implementNode({
|
|
2512
2512
|
kind: "maxLength",
|
|
2513
2513
|
collapsibleKey: "rule",
|
|
@@ -2550,7 +2550,7 @@ var MaxLength = {
|
|
|
2550
2550
|
Node: MaxLengthNode
|
|
2551
2551
|
};
|
|
2552
2552
|
|
|
2553
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2553
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/min.js
|
|
2554
2554
|
var implementation8 = implementNode({
|
|
2555
2555
|
kind: "min",
|
|
2556
2556
|
collapsibleKey: "rule",
|
|
@@ -2589,7 +2589,7 @@ var Min = {
|
|
|
2589
2589
|
Node: MinNode
|
|
2590
2590
|
};
|
|
2591
2591
|
|
|
2592
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2592
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/minLength.js
|
|
2593
2593
|
var implementation9 = implementNode({
|
|
2594
2594
|
kind: "minLength",
|
|
2595
2595
|
collapsibleKey: "rule",
|
|
@@ -2631,7 +2631,7 @@ var MinLength = {
|
|
|
2631
2631
|
Node: MinLengthNode
|
|
2632
2632
|
};
|
|
2633
2633
|
|
|
2634
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2634
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/kinds.js
|
|
2635
2635
|
var boundImplementationsByKind = {
|
|
2636
2636
|
min: Min.implementation,
|
|
2637
2637
|
max: Max.implementation,
|
|
@@ -2651,7 +2651,7 @@ var boundClassesByKind = {
|
|
|
2651
2651
|
before: Before.Node
|
|
2652
2652
|
};
|
|
2653
2653
|
|
|
2654
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2654
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/pattern.js
|
|
2655
2655
|
var implementation10 = implementNode({
|
|
2656
2656
|
kind: "pattern",
|
|
2657
2657
|
collapsibleKey: "rule",
|
|
@@ -2696,7 +2696,7 @@ var Pattern = {
|
|
|
2696
2696
|
Node: PatternNode
|
|
2697
2697
|
};
|
|
2698
2698
|
|
|
2699
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2699
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/parse.js
|
|
2700
2700
|
var schemaKindOf = (schema, allowedKinds) => {
|
|
2701
2701
|
const kind = discriminateRootKind(schema);
|
|
2702
2702
|
if (allowedKinds && !allowedKinds.includes(kind)) {
|
|
@@ -2877,7 +2877,7 @@ var possiblyCollapse = (json, toKey, allowPrimitive) => {
|
|
|
2877
2877
|
return json;
|
|
2878
2878
|
};
|
|
2879
2879
|
|
|
2880
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2880
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/prop.js
|
|
2881
2881
|
var intersectProps = (l, r, ctx) => {
|
|
2882
2882
|
if (l.key !== r.key)
|
|
2883
2883
|
return null;
|
|
@@ -2944,7 +2944,7 @@ class BaseProp extends BaseConstraint {
|
|
|
2944
2944
|
}
|
|
2945
2945
|
var writeDefaultIntersectionMessage = (lValue, rValue) => `Invalid intersection of default values ${printable(lValue)} & ${printable(rValue)}`;
|
|
2946
2946
|
|
|
2947
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
2947
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/optional.js
|
|
2948
2948
|
var implementation11 = implementNode({
|
|
2949
2949
|
kind: "optional",
|
|
2950
2950
|
hasAssociatedError: false,
|
|
@@ -3048,7 +3048,7 @@ var writeNonPrimitiveNonFunctionDefaultValueMessage = (key) => {
|
|
|
3048
3048
|
return `Non-primitive default ${keyDescription}must be specified as a function like () => ({my: 'object'})`;
|
|
3049
3049
|
};
|
|
3050
3050
|
|
|
3051
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
3051
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/root.js
|
|
3052
3052
|
class BaseRoot extends BaseNode {
|
|
3053
3053
|
constructor(attachments, $) {
|
|
3054
3054
|
super(attachments, $);
|
|
@@ -3422,13 +3422,13 @@ var writeLiteralUnionEntriesMessage = (expression) => `Props cannot be extracted
|
|
|
3422
3422
|
${expression}`;
|
|
3423
3423
|
var writeNonStructuralOperandMessage = (operation, operand) => `${operation} operand must be an object (was ${operand})`;
|
|
3424
3424
|
|
|
3425
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
3425
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/utils.js
|
|
3426
3426
|
var defineRightwardIntersections = (kind, implementation12) => flatMorph(schemaKindsRightOf(kind), (i, kind2) => [
|
|
3427
3427
|
kind2,
|
|
3428
3428
|
implementation12
|
|
3429
3429
|
]);
|
|
3430
3430
|
|
|
3431
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
3431
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/alias.js
|
|
3432
3432
|
var normalizeAliasSchema = (schema) => typeof schema === "string" ? { reference: schema } : schema;
|
|
3433
3433
|
var neverIfDisjoint = (result) => result instanceof Disjoint ? $ark.intrinsic.never.internal : result;
|
|
3434
3434
|
var implementation12 = implementNode({
|
|
@@ -3536,7 +3536,7 @@ var Alias = {
|
|
|
3536
3536
|
Node: AliasNode
|
|
3537
3537
|
};
|
|
3538
3538
|
|
|
3539
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
3539
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/basis.js
|
|
3540
3540
|
class InternalBasis extends BaseRoot {
|
|
3541
3541
|
traverseApply = (data, ctx) => {
|
|
3542
3542
|
if (!this.traverseAllows(data, ctx))
|
|
@@ -3562,7 +3562,7 @@ class InternalBasis extends BaseRoot {
|
|
|
3562
3562
|
}
|
|
3563
3563
|
}
|
|
3564
3564
|
|
|
3565
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
3565
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/domain.js
|
|
3566
3566
|
var implementation13 = implementNode({
|
|
3567
3567
|
kind: "domain",
|
|
3568
3568
|
hasAssociatedError: true,
|
|
@@ -3613,7 +3613,7 @@ var Domain = {
|
|
|
3613
3613
|
writeBadAllowNanMessage: (actual) => `numberAllowsNaN may only be specified with domain "number" (was ${actual})`
|
|
3614
3614
|
};
|
|
3615
3615
|
|
|
3616
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
3616
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/intersection.js
|
|
3617
3617
|
var implementation14 = implementNode({
|
|
3618
3618
|
kind: "intersection",
|
|
3619
3619
|
hasAssociatedError: true,
|
|
@@ -3715,7 +3715,7 @@ var implementation14 = implementNode({
|
|
|
3715
3715
|
if (node.basis && !node.prestructurals.some((r) => r.impl.obviatesBasisDescription))
|
|
3716
3716
|
childDescriptions.push(node.basis.description);
|
|
3717
3717
|
if (node.prestructurals.length) {
|
|
3718
|
-
const sortedRefinementDescriptions = node.prestructurals.
|
|
3718
|
+
const sortedRefinementDescriptions = node.prestructurals.slice().sort((l, r) => l.kind === "min" && r.kind === "max" ? -1 : 0).map((r) => r.description);
|
|
3719
3719
|
childDescriptions.push(...sortedRefinementDescriptions);
|
|
3720
3720
|
}
|
|
3721
3721
|
if (node.inner.predicate) {
|
|
@@ -3776,7 +3776,7 @@ class IntersectionNode extends BaseRoot {
|
|
|
3776
3776
|
if (ctx.failFast && ctx.currentErrorCount > errorCount)
|
|
3777
3777
|
return;
|
|
3778
3778
|
}
|
|
3779
|
-
this.prestructurals.
|
|
3779
|
+
this.prestructurals[this.prestructurals.length - 1].traverseApply(data, ctx);
|
|
3780
3780
|
if (ctx.currentErrorCount > errorCount)
|
|
3781
3781
|
return;
|
|
3782
3782
|
}
|
|
@@ -3791,7 +3791,7 @@ class IntersectionNode extends BaseRoot {
|
|
|
3791
3791
|
if (ctx.failFast && ctx.currentErrorCount > errorCount)
|
|
3792
3792
|
return;
|
|
3793
3793
|
}
|
|
3794
|
-
this.inner.predicate.
|
|
3794
|
+
this.inner.predicate[this.inner.predicate.length - 1].traverseApply(data, ctx);
|
|
3795
3795
|
}
|
|
3796
3796
|
};
|
|
3797
3797
|
compile(js) {
|
|
@@ -3812,7 +3812,7 @@ class IntersectionNode extends BaseRoot {
|
|
|
3812
3812
|
js.check(this.prestructurals[i]);
|
|
3813
3813
|
js.returnIfFailFast();
|
|
3814
3814
|
}
|
|
3815
|
-
js.check(this.prestructurals.
|
|
3815
|
+
js.check(this.prestructurals[this.prestructurals.length - 1]);
|
|
3816
3816
|
if (this.structure || this.inner.predicate)
|
|
3817
3817
|
js.returnIfFail();
|
|
3818
3818
|
}
|
|
@@ -3826,7 +3826,7 @@ class IntersectionNode extends BaseRoot {
|
|
|
3826
3826
|
js.check(this.inner.predicate[i]);
|
|
3827
3827
|
js.returnIfFail();
|
|
3828
3828
|
}
|
|
3829
|
-
js.check(this.inner.predicate.
|
|
3829
|
+
js.check(this.inner.predicate[this.inner.predicate.length - 1]);
|
|
3830
3830
|
}
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
@@ -3863,7 +3863,7 @@ var intersectIntersections = (l, r, ctx) => {
|
|
|
3863
3863
|
});
|
|
3864
3864
|
};
|
|
3865
3865
|
|
|
3866
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
3866
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/morph.js
|
|
3867
3867
|
var implementation15 = implementNode({
|
|
3868
3868
|
kind: "morph",
|
|
3869
3869
|
hasAssociatedError: false,
|
|
@@ -3932,7 +3932,7 @@ var implementation15 = implementNode({
|
|
|
3932
3932
|
class MorphNode extends BaseRoot {
|
|
3933
3933
|
serializedMorphs = this.morphs.map(registeredReference);
|
|
3934
3934
|
compiledMorphs = `[${this.serializedMorphs}]`;
|
|
3935
|
-
lastMorph = this.inner.morphs.
|
|
3935
|
+
lastMorph = this.inner.morphs[this.inner.morphs.length - 1];
|
|
3936
3936
|
lastMorphIfNode = hasArkKind(this.lastMorph, "root") ? this.lastMorph : undefined;
|
|
3937
3937
|
introspectableIn = this.inner.in;
|
|
3938
3938
|
introspectableOut = this.lastMorphIfNode ? Object.assign(this.referencesById, this.lastMorphIfNode.referencesById) && this.lastMorphIfNode.rawOut : undefined;
|
|
@@ -3999,7 +3999,7 @@ var writeMorphIntersectionMessage = (lDescription, rDescription) => `The interse
|
|
|
3999
3999
|
Left: ${lDescription}
|
|
4000
4000
|
Right: ${rDescription}`;
|
|
4001
4001
|
|
|
4002
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
4002
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/proto.js
|
|
4003
4003
|
var implementation16 = implementNode({
|
|
4004
4004
|
kind: "proto",
|
|
4005
4005
|
hasAssociatedError: true,
|
|
@@ -4072,7 +4072,7 @@ var Proto = {
|
|
|
4072
4072
|
writeInvalidSchemaMessage: (actual) => `instanceOf operand must be a function (was ${domainOf(actual)})`
|
|
4073
4073
|
};
|
|
4074
4074
|
|
|
4075
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
4075
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/union.js
|
|
4076
4076
|
var implementation17 = implementNode({
|
|
4077
4077
|
kind: "union",
|
|
4078
4078
|
hasAssociatedError: true,
|
|
@@ -4642,7 +4642,7 @@ var writeOrderedIntersectionMessage = (lDescription, rDescription) => `The inter
|
|
|
4642
4642
|
Left: ${lDescription}
|
|
4643
4643
|
Right: ${rDescription}`;
|
|
4644
4644
|
|
|
4645
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
4645
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/unit.js
|
|
4646
4646
|
var implementation18 = implementNode({
|
|
4647
4647
|
kind: "unit",
|
|
4648
4648
|
hasAssociatedError: true,
|
|
@@ -4704,7 +4704,7 @@ var compileEqualityCheck = (unit, serializedValue, negated) => {
|
|
|
4704
4704
|
return `data ${negated ? "!" : "="}== ${serializedValue}`;
|
|
4705
4705
|
};
|
|
4706
4706
|
|
|
4707
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
4707
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/index.js
|
|
4708
4708
|
var implementation19 = implementNode({
|
|
4709
4709
|
kind: "index",
|
|
4710
4710
|
hasAssociatedError: false,
|
|
@@ -4781,7 +4781,7 @@ var Index = {
|
|
|
4781
4781
|
var writeEnumerableIndexBranches = (keys2) => `Index keys ${keys2.join(", ")} should be specified as named props.`;
|
|
4782
4782
|
var writeInvalidPropertyKeyMessage = (indexSchema) => `Indexed key definition '${indexSchema}' must be a string or symbol`;
|
|
4783
4783
|
|
|
4784
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
4784
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/required.js
|
|
4785
4785
|
var implementation20 = implementNode({
|
|
4786
4786
|
kind: "required",
|
|
4787
4787
|
hasAssociatedError: true,
|
|
@@ -4820,7 +4820,7 @@ var Required = {
|
|
|
4820
4820
|
Node: RequiredNode
|
|
4821
4821
|
};
|
|
4822
4822
|
|
|
4823
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
4823
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/sequence.js
|
|
4824
4824
|
var implementation21 = implementNode({
|
|
4825
4825
|
kind: "sequence",
|
|
4826
4826
|
hasAssociatedError: false,
|
|
@@ -4906,10 +4906,10 @@ var implementation21 = implementNode({
|
|
|
4906
4906
|
const optionals = raw.optionals?.slice() ?? [];
|
|
4907
4907
|
const postfix = raw.postfix?.slice() ?? [];
|
|
4908
4908
|
if (raw.variadic) {
|
|
4909
|
-
while (optionals.
|
|
4909
|
+
while (optionals[optionals.length - 1]?.equals(raw.variadic))
|
|
4910
4910
|
optionals.pop();
|
|
4911
4911
|
if (optionals.length === 0 && defaultables.length === 0) {
|
|
4912
|
-
while (prefix.
|
|
4912
|
+
while (prefix[prefix.length - 1]?.equals(raw.variadic)) {
|
|
4913
4913
|
prefix.pop();
|
|
4914
4914
|
minVariadicLength++;
|
|
4915
4915
|
}
|
|
@@ -5143,8 +5143,8 @@ var _intersectSequences = (s) => {
|
|
|
5143
5143
|
const [rHead, ...rTail] = s.r;
|
|
5144
5144
|
if (!lHead || !rHead)
|
|
5145
5145
|
return s;
|
|
5146
|
-
const lHasPostfix = lTail.
|
|
5147
|
-
const rHasPostfix = rTail.
|
|
5146
|
+
const lHasPostfix = lTail[lTail.length - 1]?.kind === "postfix";
|
|
5147
|
+
const rHasPostfix = rTail[rTail.length - 1]?.kind === "postfix";
|
|
5148
5148
|
const kind = lHead.kind === "prefix" || rHead.kind === "prefix" ? "prefix" : lHead.kind === "postfix" || rHead.kind === "postfix" ? "postfix" : lHead.kind === "variadic" && rHead.kind === "variadic" ? "variadic" : lHasPostfix || rHasPostfix ? "prefix" : lHead.kind === "defaultables" || rHead.kind === "defaultables" ? "defaultables" : "optionals";
|
|
5149
5149
|
if (lHead.kind === "prefix" && rHead.kind === "variadic" && rHasPostfix) {
|
|
5150
5150
|
const postfixBranchResult = _intersectSequences({
|
|
@@ -5202,7 +5202,7 @@ var _intersectSequences = (s) => {
|
|
|
5202
5202
|
};
|
|
5203
5203
|
var elementIsRequired = (el) => el.kind === "prefix" || el.kind === "postfix";
|
|
5204
5204
|
|
|
5205
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
5205
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/structure.js
|
|
5206
5206
|
var createStructuralWriter = (childStringProp) => (node) => {
|
|
5207
5207
|
if (node.props.length || node.index) {
|
|
5208
5208
|
const parts = node.index?.map((index) => index[childStringProp]) ?? [];
|
|
@@ -5885,7 +5885,7 @@ var typeKeyToString = (k) => hasArkKind(k, "root") ? k.expression : printable(k)
|
|
|
5885
5885
|
var writeInvalidKeysMessage = (o, keys2) => `Key${keys2.length === 1 ? "" : "s"} ${keys2.map(typeKeyToString).join(", ")} ${keys2.length === 1 ? "does" : "do"} not exist on ${o}`;
|
|
5886
5886
|
var writeDuplicateKeyMessage = (key) => `Duplicate key ${compileSerializedValue(key)}`;
|
|
5887
5887
|
|
|
5888
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
5888
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/kinds.js
|
|
5889
5889
|
var nodeImplementationsByKind = {
|
|
5890
5890
|
...boundImplementationsByKind,
|
|
5891
5891
|
alias: Alias.implementation,
|
|
@@ -5938,7 +5938,7 @@ var nodeClassesByKind = {
|
|
|
5938
5938
|
structure: Structure.Node
|
|
5939
5939
|
};
|
|
5940
5940
|
|
|
5941
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
5941
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/module.js
|
|
5942
5942
|
class RootModule extends DynamicBase {
|
|
5943
5943
|
get [arkKind]() {
|
|
5944
5944
|
return "module";
|
|
@@ -5949,7 +5949,7 @@ var bindModule = (module, $) => new RootModule(flatMorph(module, (alias, value)
|
|
|
5949
5949
|
hasArkKind(value, "module") ? bindModule(value, $) : $.bindReference(value)
|
|
5950
5950
|
]));
|
|
5951
5951
|
|
|
5952
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
5952
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/scope.js
|
|
5953
5953
|
var schemaBranchesOf = (schema) => isArray(schema) ? schema : ("branches" in schema) && isArray(schema.branches) ? schema.branches : undefined;
|
|
5954
5954
|
var throwMismatchedNodeRootError = (expected, actual) => throwParseError(`Node of kind ${actual} is not valid as a ${expected} definition`);
|
|
5955
5955
|
var writeDuplicateAliasError = (alias) => `#${alias} duplicates public alias ${alias}`;
|
|
@@ -6356,12 +6356,12 @@ var node = rootSchemaScope.node;
|
|
|
6356
6356
|
var defineSchema = rootSchemaScope.defineSchema;
|
|
6357
6357
|
var genericNode = rootSchemaScope.generic;
|
|
6358
6358
|
|
|
6359
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
6359
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/shared.js
|
|
6360
6360
|
var arrayIndexSource = `^(?:0|[1-9]\\d*)$`;
|
|
6361
6361
|
var arrayIndexMatcher = new RegExp(arrayIndexSource);
|
|
6362
6362
|
var arrayIndexMatcherReference = registeredReference(arrayIndexMatcher);
|
|
6363
6363
|
|
|
6364
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
6364
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/intrinsic.js
|
|
6365
6365
|
var intrinsicBases = schemaScope({
|
|
6366
6366
|
bigint: "bigint",
|
|
6367
6367
|
boolean: [{ unit: false }, { unit: true }],
|
|
@@ -6416,8 +6416,8 @@ $ark.intrinsic = { ...intrinsic };
|
|
|
6416
6416
|
// ../../node_modules/.pnpm/arkregex@0.0.2/node_modules/arkregex/out/regex.js
|
|
6417
6417
|
var regex = (src, flags) => new RegExp(src, flags);
|
|
6418
6418
|
Object.assign(regex, { as: regex });
|
|
6419
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6420
|
-
var isDateLiteral = (value) => typeof value === "string" && value[0] === "d" && (value[1] === "'" || value[1] === '"') && value.
|
|
6419
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/date.js
|
|
6420
|
+
var isDateLiteral = (value) => typeof value === "string" && value[0] === "d" && (value[1] === "'" || value[1] === '"') && value[value.length - 1] === value[1];
|
|
6421
6421
|
var isValidDate = (d) => d.toString() !== "Invalid Date";
|
|
6422
6422
|
var extractDateLiteralSource = (literal) => literal.slice(2, -1);
|
|
6423
6423
|
var writeInvalidDateMessage = (source) => `'${source}' could not be parsed by the Date constructor`;
|
|
@@ -6435,7 +6435,7 @@ var maybeParseDate = (source, errorOnFail) => {
|
|
|
6435
6435
|
return errorOnFail ? throwParseError(errorOnFail === true ? writeInvalidDateMessage(source) : errorOnFail) : undefined;
|
|
6436
6436
|
};
|
|
6437
6437
|
|
|
6438
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6438
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/enclosed.js
|
|
6439
6439
|
var parseEnclosed = (s, enclosing) => {
|
|
6440
6440
|
const enclosed = s.scanner.shiftUntilEscapable(untilLookaheadIsClosing[enclosingTokens[enclosing]]);
|
|
6441
6441
|
if (s.scanner.lookahead === "")
|
|
@@ -6489,12 +6489,12 @@ var enclosingCharDescriptions = {
|
|
|
6489
6489
|
};
|
|
6490
6490
|
var writeUnterminatedEnclosedMessage = (fragment, enclosingStart) => `${enclosingStart}${fragment} requires a closing ${enclosingCharDescriptions[enclosingTokens[enclosingStart]]}`;
|
|
6491
6491
|
|
|
6492
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6492
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/ast/validate.js
|
|
6493
6493
|
var writePrefixedPrivateReferenceMessage = (name) => `Private type references should not include '#'. Use '${name}' instead.`;
|
|
6494
6494
|
var shallowOptionalMessage = "Optional definitions like 'string?' are only valid as properties in an object or tuple";
|
|
6495
6495
|
var shallowDefaultableMessage = "Defaultable definitions like 'number = 0' are only valid as properties in an object or tuple";
|
|
6496
6496
|
|
|
6497
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6497
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/tokens.js
|
|
6498
6498
|
var terminatingChars = {
|
|
6499
6499
|
"<": 1,
|
|
6500
6500
|
">": 1,
|
|
@@ -6512,7 +6512,7 @@ var terminatingChars = {
|
|
|
6512
6512
|
};
|
|
6513
6513
|
var lookaheadIsFinalizing = (lookahead, unscanned) => lookahead === ">" ? unscanned[0] === "=" ? unscanned[1] === "=" : unscanned.trimStart() === "" || isKeyOf(unscanned.trimStart()[0], terminatingChars) : lookahead === "=" ? unscanned[0] !== "=" : lookahead === "," || lookahead === "?";
|
|
6514
6514
|
|
|
6515
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6515
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/genericArgs.js
|
|
6516
6516
|
var parseGenericArgs = (name, g, s) => _parseGenericArgs(name, g, s, []);
|
|
6517
6517
|
var _parseGenericArgs = (name, g, s, argNodes) => {
|
|
6518
6518
|
const argState = s.parseUntilFinalizer();
|
|
@@ -6529,7 +6529,7 @@ var _parseGenericArgs = (name, g, s, argNodes) => {
|
|
|
6529
6529
|
};
|
|
6530
6530
|
var writeInvalidGenericArgCountMessage = (name, params, argDefs) => `${name}<${params.join(", ")}> requires exactly ${params.length} args (got ${argDefs.length}${argDefs.length === 0 ? "" : `: ${argDefs.join(", ")}`})`;
|
|
6531
6531
|
|
|
6532
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6532
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/unenclosed.js
|
|
6533
6533
|
var parseUnenclosed = (s) => {
|
|
6534
6534
|
const token = s.scanner.shiftUntilLookahead(terminatingChars);
|
|
6535
6535
|
if (token === "keyof")
|
|
@@ -6577,10 +6577,10 @@ var writeMissingOperandMessage = (s) => {
|
|
|
6577
6577
|
var writeMissingRightOperandMessage = (token, unscanned = "") => `Token '${token}' requires a right operand${unscanned ? ` before '${unscanned}'` : ""}`;
|
|
6578
6578
|
var writeExpressionExpectedMessage = (unscanned) => `Expected an expression${unscanned ? ` before '${unscanned}'` : ""}`;
|
|
6579
6579
|
|
|
6580
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6580
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/operand.js
|
|
6581
6581
|
var parseOperand = (s) => s.scanner.lookahead === "" ? s.error(writeMissingOperandMessage(s)) : s.scanner.lookahead === "(" ? s.shiftedByOne().reduceGroupOpen() : s.scanner.lookaheadIsIn(enclosingChar) ? parseEnclosed(s, s.scanner.shift()) : s.scanner.lookaheadIsIn(whitespaceChars) ? parseOperand(s.shiftedByOne()) : s.scanner.lookahead === "d" ? s.scanner.nextLookahead in enclosingQuote ? parseEnclosed(s, `${s.scanner.shift()}${s.scanner.shift()}`) : parseUnenclosed(s) : parseUnenclosed(s);
|
|
6582
6582
|
|
|
6583
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6583
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/reduce/shared.js
|
|
6584
6584
|
var minComparators = {
|
|
6585
6585
|
">": true,
|
|
6586
6586
|
">=": true
|
|
@@ -6600,7 +6600,7 @@ var writeOpenRangeMessage = (min2, comparator) => `Left bounds are only valid wh
|
|
|
6600
6600
|
var writeUnpairableComparatorMessage = (comparator) => `Left-bounded expressions must specify their limits using < or <= (was ${comparator})`;
|
|
6601
6601
|
var writeMultipleLeftBoundsMessage = (openLimit, openComparator, limit, comparator) => `An expression may have at most one left bound (parsed ${openLimit}${invertedComparators[openComparator]}, ${limit}${invertedComparators[comparator]})`;
|
|
6602
6602
|
|
|
6603
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6603
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/bounds.js
|
|
6604
6604
|
var parseBound = (s, start) => {
|
|
6605
6605
|
const comparator = shiftComparator(s, start);
|
|
6606
6606
|
if (s.root.hasKind("unit")) {
|
|
@@ -6671,14 +6671,14 @@ var parseRightBound = (s, comparator) => {
|
|
|
6671
6671
|
};
|
|
6672
6672
|
var writeInvalidLimitMessage = (comparator, limit, boundKind) => `Comparator ${boundKind === "left" ? invertedComparators[comparator] : comparator} must be ${boundKind === "left" ? "preceded" : "followed"} by a corresponding literal (was ${limit})`;
|
|
6673
6673
|
|
|
6674
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6674
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/brand.js
|
|
6675
6675
|
var parseBrand = (s) => {
|
|
6676
6676
|
s.scanner.shiftUntilNonWhitespace();
|
|
6677
6677
|
const brandName = s.scanner.shiftUntilLookahead(terminatingChars);
|
|
6678
6678
|
s.root = s.root.brand(brandName);
|
|
6679
6679
|
};
|
|
6680
6680
|
|
|
6681
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6681
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/divisor.js
|
|
6682
6682
|
var parseDivisor = (s) => {
|
|
6683
6683
|
s.scanner.shiftUntilNonWhitespace();
|
|
6684
6684
|
const divisorToken = s.scanner.shiftUntilLookahead(terminatingChars);
|
|
@@ -6691,7 +6691,7 @@ var parseDivisor = (s) => {
|
|
|
6691
6691
|
};
|
|
6692
6692
|
var writeInvalidDivisorMessage = (divisor2) => `% operator must be followed by a non-zero integer literal (was ${divisor2})`;
|
|
6693
6693
|
|
|
6694
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6694
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/operator.js
|
|
6695
6695
|
var parseOperator = (s) => {
|
|
6696
6696
|
const lookahead = s.scanner.shift();
|
|
6697
6697
|
return lookahead === "" ? s.finalize("") : lookahead === "[" ? s.scanner.shift() === "]" ? s.setRoot(s.root.array()) : s.error(incompleteArrayTokenMessage) : lookahead === "|" ? s.scanner.lookahead === ">" ? s.shiftedByOne().pushRootToBranch("|>") : s.pushRootToBranch(lookahead) : lookahead === "&" ? s.pushRootToBranch(lookahead) : lookahead === ")" ? s.finalizeGroup() : lookaheadIsFinalizing(lookahead, s.scanner.unscanned) ? s.finalize(lookahead) : isKeyOf(lookahead, comparatorStartChars) ? parseBound(s, lookahead) : lookahead === "%" ? parseDivisor(s) : lookahead === "#" ? parseBrand(s) : (lookahead in whitespaceChars) ? parseOperator(s) : s.error(writeUnexpectedCharacterMessage(lookahead));
|
|
@@ -6699,7 +6699,7 @@ var parseOperator = (s) => {
|
|
|
6699
6699
|
var writeUnexpectedCharacterMessage = (char, shouldBe = "") => `'${char}' is not allowed here${shouldBe && ` (should be ${shouldBe})`}`;
|
|
6700
6700
|
var incompleteArrayTokenMessage = `Missing expected ']'`;
|
|
6701
6701
|
|
|
6702
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6702
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/default.js
|
|
6703
6703
|
var parseDefault = (s) => {
|
|
6704
6704
|
const baseNode = s.unsetRoot();
|
|
6705
6705
|
s.parseOperand();
|
|
@@ -6711,7 +6711,7 @@ var parseDefault = (s) => {
|
|
|
6711
6711
|
};
|
|
6712
6712
|
var writeNonLiteralDefaultMessage = (defaultDef) => `Default value '${defaultDef}' must be a literal value`;
|
|
6713
6713
|
|
|
6714
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6714
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/string.js
|
|
6715
6715
|
var parseString = (def, ctx) => {
|
|
6716
6716
|
const aliasResolution = ctx.$.maybeResolveRoot(def);
|
|
6717
6717
|
if (aliasResolution)
|
|
@@ -6750,7 +6750,7 @@ var parseUntilFinalizer = (s) => {
|
|
|
6750
6750
|
};
|
|
6751
6751
|
var next = (s) => s.hasRoot() ? s.parseOperator() : s.parseOperand();
|
|
6752
6752
|
|
|
6753
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6753
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/reduce/dynamic.js
|
|
6754
6754
|
class RuntimeState {
|
|
6755
6755
|
root;
|
|
6756
6756
|
branches = {
|
|
@@ -6879,7 +6879,7 @@ class RuntimeState {
|
|
|
6879
6879
|
};
|
|
6880
6880
|
}
|
|
6881
6881
|
previousOperator() {
|
|
6882
|
-
return this.branches.leftBound?.comparator ?? this.branches.prefixes.
|
|
6882
|
+
return this.branches.leftBound?.comparator ?? this.branches.prefixes[this.branches.prefixes.length - 1] ?? (this.branches.intersection ? "&" : this.branches.union ? "|" : this.branches.pipe ? "|>" : undefined);
|
|
6883
6883
|
}
|
|
6884
6884
|
shiftedByOne() {
|
|
6885
6885
|
this.scanner.shift();
|
|
@@ -6887,7 +6887,7 @@ class RuntimeState {
|
|
|
6887
6887
|
}
|
|
6888
6888
|
}
|
|
6889
6889
|
|
|
6890
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6890
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/generic.js
|
|
6891
6891
|
var emptyGenericParameterMessage = "An empty string is not a valid generic parameter name";
|
|
6892
6892
|
var parseGenericParamName = (scanner2, result, ctx) => {
|
|
6893
6893
|
scanner2.shiftUntilNonWhitespace();
|
|
@@ -6915,7 +6915,7 @@ var _parseOptionalConstraint = (scanner2, name, result, ctx) => {
|
|
|
6915
6915
|
result.push([name, s.root]);
|
|
6916
6916
|
return parseGenericParamName(scanner2, result, ctx);
|
|
6917
6917
|
};
|
|
6918
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6918
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/fn.js
|
|
6919
6919
|
class InternalFnParser extends Callable {
|
|
6920
6920
|
constructor($) {
|
|
6921
6921
|
const attach = {
|
|
@@ -6957,7 +6957,7 @@ class InternalTypedFn extends Callable {
|
|
|
6957
6957
|
this.params = params;
|
|
6958
6958
|
this.returns = returns;
|
|
6959
6959
|
let argsExpression = params.expression;
|
|
6960
|
-
if (argsExpression[0] === "[" && argsExpression.
|
|
6960
|
+
if (argsExpression[0] === "[" && argsExpression[argsExpression.length - 1] === "]")
|
|
6961
6961
|
argsExpression = argsExpression.slice(1, -1);
|
|
6962
6962
|
else if (argsExpression.endsWith("[]"))
|
|
6963
6963
|
argsExpression = `...${argsExpression}`;
|
|
@@ -6967,7 +6967,7 @@ class InternalTypedFn extends Callable {
|
|
|
6967
6967
|
var badFnReturnTypeMessage = `":" must be followed by exactly one return type e.g:
|
|
6968
6968
|
fn("string", ":", "number")(s => s.length)`;
|
|
6969
6969
|
|
|
6970
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
6970
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/match.js
|
|
6971
6971
|
class InternalMatchParser extends Callable {
|
|
6972
6972
|
$;
|
|
6973
6973
|
constructor($) {
|
|
@@ -7061,7 +7061,7 @@ var throwOnDefault = (errors3) => errors3.throw();
|
|
|
7061
7061
|
var chainedAtMessage = `A key matcher must be specified before the first case i.e. match.at('foo') or match.in<object>().at('bar')`;
|
|
7062
7062
|
var doubleAtMessage = `At most one key matcher may be specified per expression`;
|
|
7063
7063
|
|
|
7064
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7064
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/property.js
|
|
7065
7065
|
var parseProperty = (def, ctx) => {
|
|
7066
7066
|
if (isArray(def)) {
|
|
7067
7067
|
if (def[1] === "=")
|
|
@@ -7074,7 +7074,7 @@ var parseProperty = (def, ctx) => {
|
|
|
7074
7074
|
var invalidOptionalKeyKindMessage = `Only required keys may make their values optional, e.g. { [mySymbol]: ['number', '?'] }`;
|
|
7075
7075
|
var invalidDefaultableKeyKindMessage = `Only required keys may specify default values, e.g. { value: 'number = 0' }`;
|
|
7076
7076
|
|
|
7077
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7077
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/objectLiteral.js
|
|
7078
7078
|
var parseObjectLiteral = (def, ctx) => {
|
|
7079
7079
|
let spread;
|
|
7080
7080
|
const structure3 = {};
|
|
@@ -7150,16 +7150,16 @@ var appendNamedProp = (structure3, kind, inner, ctx) => {
|
|
|
7150
7150
|
};
|
|
7151
7151
|
var writeInvalidUndeclaredBehaviorMessage = (actual) => `Value of '+' key must be 'reject', 'delete', or 'ignore' (was ${printable(actual)})`;
|
|
7152
7152
|
var nonLeadingSpreadError = "Spread operator may only be used as the first key in an object";
|
|
7153
|
-
var preparseKey = (key) => typeof key === "symbol" ? { kind: "required", normalized: key } : key.
|
|
7153
|
+
var preparseKey = (key) => typeof key === "symbol" ? { kind: "required", normalized: key } : key[key.length - 1] === "?" ? key[key.length - 2] === Backslash ? { kind: "required", normalized: `${key.slice(0, -2)}?` } : {
|
|
7154
7154
|
kind: "optional",
|
|
7155
7155
|
normalized: key.slice(0, -1)
|
|
7156
|
-
} : key[0] === "[" && key.
|
|
7156
|
+
} : key[0] === "[" && key[key.length - 1] === "]" ? { kind: "index", normalized: key.slice(1, -1) } : key[0] === Backslash && key[1] === "[" && key[key.length - 1] === "]" ? { kind: "required", normalized: key.slice(1) } : key === "..." ? { kind: "spread" } : key === "+" ? { kind: "undeclared" } : {
|
|
7157
7157
|
kind: "required",
|
|
7158
7158
|
normalized: key === "\\..." ? "..." : key === "\\+" ? "+" : key
|
|
7159
7159
|
};
|
|
7160
7160
|
var writeInvalidSpreadTypeMessage = (def) => `Spread operand must resolve to an object literal type (was ${def})`;
|
|
7161
7161
|
|
|
7162
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7162
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/tupleExpressions.js
|
|
7163
7163
|
var maybeParseTupleExpression = (def, ctx) => isIndexZeroExpression(def) ? indexZeroParsers[def[0]](def, ctx) : isIndexOneExpression(def) ? indexOneParsers[def[1]](def, ctx) : null;
|
|
7164
7164
|
var parseKeyOfTuple = (def, ctx) => ctx.$.parseOwnDefinitionFormat(def[1], ctx).keyof();
|
|
7165
7165
|
var parseBranchTuple = (def, ctx) => {
|
|
@@ -7220,7 +7220,7 @@ var indexZeroParsers = defineIndexZeroParsers({
|
|
|
7220
7220
|
var isIndexZeroExpression = (def) => indexZeroParsers[def[0]] !== undefined;
|
|
7221
7221
|
var writeInvalidConstructorMessage = (actual) => `Expected a constructor following 'instanceof' operator (was ${actual})`;
|
|
7222
7222
|
|
|
7223
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7223
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/tupleLiteral.js
|
|
7224
7224
|
var parseTupleLiteral = (def, ctx) => {
|
|
7225
7225
|
let sequences = [{}];
|
|
7226
7226
|
let i = 0;
|
|
@@ -7316,7 +7316,7 @@ var requiredPostOptionalMessage = "A required element may not follow an optional
|
|
|
7316
7316
|
var optionalOrDefaultableAfterVariadicMessage = "An optional element may not follow a variadic element";
|
|
7317
7317
|
var defaultablePostOptionalMessage = "A defaultable element may not follow an optional element without a default";
|
|
7318
7318
|
|
|
7319
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7319
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/definition.js
|
|
7320
7320
|
var parseCache = {};
|
|
7321
7321
|
var parseInnerDefinition = (def, ctx) => {
|
|
7322
7322
|
if (typeof def === "string") {
|
|
@@ -7355,7 +7355,7 @@ var parseObject = (def, ctx) => {
|
|
|
7355
7355
|
var parseTuple = (def, ctx) => maybeParseTupleExpression(def, ctx) ?? parseTupleLiteral(def, ctx);
|
|
7356
7356
|
var writeBadDefinitionTypeMessage = (actual) => `Type definitions must be strings or objects (was ${actual})`;
|
|
7357
7357
|
|
|
7358
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7358
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/type.js
|
|
7359
7359
|
class InternalTypeParser extends Callable {
|
|
7360
7360
|
constructor($) {
|
|
7361
7361
|
const attach = Object.assign({
|
|
@@ -7385,7 +7385,7 @@ class InternalTypeParser extends Callable {
|
|
|
7385
7385
|
if (args2.length === 1) {
|
|
7386
7386
|
return $.parse(args2[0]);
|
|
7387
7387
|
}
|
|
7388
|
-
if (args2.length === 2 && typeof args2[0] === "string" && args2[0][0] === "<" && args2[0].
|
|
7388
|
+
if (args2.length === 2 && typeof args2[0] === "string" && args2[0][0] === "<" && args2[0][args2[0].length - 1] === ">") {
|
|
7389
7389
|
const paramString = args2[0].slice(1, -1);
|
|
7390
7390
|
const params = $.parseGenericParams(paramString, {});
|
|
7391
7391
|
return new GenericRoot(params, args2[1], $, $, null);
|
|
@@ -7397,7 +7397,7 @@ class InternalTypeParser extends Callable {
|
|
|
7397
7397
|
}
|
|
7398
7398
|
}
|
|
7399
7399
|
|
|
7400
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7400
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/scope.js
|
|
7401
7401
|
var $arkTypeRegistry = $ark;
|
|
7402
7402
|
|
|
7403
7403
|
class InternalScope extends BaseScope {
|
|
@@ -7420,7 +7420,7 @@ class InternalScope extends BaseScope {
|
|
|
7420
7420
|
def = [def, "@", config2];
|
|
7421
7421
|
return [alias, def];
|
|
7422
7422
|
}
|
|
7423
|
-
if (alias.
|
|
7423
|
+
if (alias[alias.length - 1] !== ">") {
|
|
7424
7424
|
throwParseError(`'>' must be the last character of a generic declaration in a scope`);
|
|
7425
7425
|
}
|
|
7426
7426
|
const name = alias.slice(0, firstParamIndex);
|
|
@@ -7491,7 +7491,7 @@ var scope2 = Object.assign(InternalScope.scope, {
|
|
|
7491
7491
|
});
|
|
7492
7492
|
var Scope = InternalScope;
|
|
7493
7493
|
|
|
7494
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7494
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/builtins.js
|
|
7495
7495
|
class MergeHkt extends Hkt {
|
|
7496
7496
|
description = 'merge an object\'s properties onto another like `Merge(User, { isAdmin: "true" })`';
|
|
7497
7497
|
}
|
|
@@ -7501,7 +7501,7 @@ var arkBuiltins = Scope.module({
|
|
|
7501
7501
|
Merge
|
|
7502
7502
|
});
|
|
7503
7503
|
|
|
7504
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7504
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/Array.js
|
|
7505
7505
|
class liftFromHkt extends Hkt {
|
|
7506
7506
|
}
|
|
7507
7507
|
var liftFrom = genericNode("element")((args2) => {
|
|
@@ -7518,7 +7518,7 @@ var arkArray = Scope.module({
|
|
|
7518
7518
|
name: "Array"
|
|
7519
7519
|
});
|
|
7520
7520
|
|
|
7521
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7521
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/FormData.js
|
|
7522
7522
|
var value = rootSchema(["string", registry.FileConstructor]);
|
|
7523
7523
|
var parsedFormDataValue = value.rawOr(value.array());
|
|
7524
7524
|
var parsed = rootSchema({
|
|
@@ -7555,7 +7555,7 @@ var arkFormData = Scope.module({
|
|
|
7555
7555
|
name: "FormData"
|
|
7556
7556
|
});
|
|
7557
7557
|
|
|
7558
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7558
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/TypedArray.js
|
|
7559
7559
|
var TypedArray = Scope.module({
|
|
7560
7560
|
Int8: ["instanceof", Int8Array],
|
|
7561
7561
|
Uint8: ["instanceof", Uint8Array],
|
|
@@ -7572,7 +7572,7 @@ var TypedArray = Scope.module({
|
|
|
7572
7572
|
name: "TypedArray"
|
|
7573
7573
|
});
|
|
7574
7574
|
|
|
7575
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7575
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/constructors.js
|
|
7576
7576
|
var omittedPrototypes = {
|
|
7577
7577
|
Boolean: 1,
|
|
7578
7578
|
Number: 1,
|
|
@@ -7585,7 +7585,7 @@ var arkPrototypes = Scope.module({
|
|
|
7585
7585
|
FormData: arkFormData
|
|
7586
7586
|
});
|
|
7587
7587
|
|
|
7588
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7588
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/number.js
|
|
7589
7589
|
var epoch = rootSchema({
|
|
7590
7590
|
domain: {
|
|
7591
7591
|
domain: "number",
|
|
@@ -7628,7 +7628,7 @@ var number = Scope.module({
|
|
|
7628
7628
|
name: "number"
|
|
7629
7629
|
});
|
|
7630
7630
|
|
|
7631
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
7631
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/string.js
|
|
7632
7632
|
var regexStringNode = (regex2, description, jsonSchemaFormat) => {
|
|
7633
7633
|
const schema = {
|
|
7634
7634
|
domain: "string",
|
|
@@ -7675,7 +7675,7 @@ var capitalize2 = Scope.module({
|
|
|
7675
7675
|
name: "string.capitalize"
|
|
7676
7676
|
});
|
|
7677
7677
|
var isLuhnValid = (creditCardInput) => {
|
|
7678
|
-
const sanitized = creditCardInput.
|
|
7678
|
+
const sanitized = creditCardInput.replace(/[ -]+/g, "");
|
|
7679
7679
|
let sum = 0;
|
|
7680
7680
|
let digit;
|
|
7681
7681
|
let tmpNum;
|
|
@@ -8019,7 +8019,7 @@ var string = Scope.module({
|
|
|
8019
8019
|
name: "string"
|
|
8020
8020
|
});
|
|
8021
8021
|
|
|
8022
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
8022
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/ts.js
|
|
8023
8023
|
var arkTsKeywords = Scope.module({
|
|
8024
8024
|
bigint: intrinsic.bigint,
|
|
8025
8025
|
boolean: intrinsic.boolean,
|
|
@@ -8107,7 +8107,7 @@ var arkTsGenerics = Scope.module({
|
|
|
8107
8107
|
Required: Required2
|
|
8108
8108
|
});
|
|
8109
8109
|
|
|
8110
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
8110
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/keywords.js
|
|
8111
8111
|
var ark = scope2({
|
|
8112
8112
|
...arkTsKeywords,
|
|
8113
8113
|
...arkTsGenerics,
|
|
@@ -8231,28 +8231,9 @@ var $validatedKey = Symbol.for(`claim`);
|
|
|
8231
8231
|
function simpleCompound(a, b) {
|
|
8232
8232
|
return [a, b].sort().join(`\x1F`);
|
|
8233
8233
|
}
|
|
8234
|
-
function decomposeCompound(compound) {
|
|
8235
|
-
if (typeof compound === `string` === false)
|
|
8236
|
-
return null;
|
|
8237
|
-
const [typeTag, components] = compound.split(`==`);
|
|
8238
|
-
if (!components)
|
|
8239
|
-
return null;
|
|
8240
|
-
const type2 = typeTag.slice(4);
|
|
8241
|
-
const [a, b] = components.split(`++`);
|
|
8242
|
-
if (type2 && a && b)
|
|
8243
|
-
return [
|
|
8244
|
-
type2,
|
|
8245
|
-
a,
|
|
8246
|
-
b
|
|
8247
|
-
];
|
|
8248
|
-
return null;
|
|
8249
|
-
}
|
|
8250
8234
|
function selectorFamily(options) {
|
|
8251
8235
|
return createSelectorFamily(IMPLICIT.STORE, options);
|
|
8252
8236
|
}
|
|
8253
|
-
function transaction(options) {
|
|
8254
|
-
return createTransaction(IMPLICIT.STORE, options);
|
|
8255
|
-
}
|
|
8256
8237
|
|
|
8257
8238
|
// ../../packages/atom.io/dist/json/index.js
|
|
8258
8239
|
function parseJson2(str) {
|
|
@@ -8417,9 +8398,6 @@ var UList = class UList2 extends Set {
|
|
|
8417
8398
|
};
|
|
8418
8399
|
|
|
8419
8400
|
// ../../packages/atom.io/dist/internal/index.js
|
|
8420
|
-
function arbitrary(random = Math.random) {
|
|
8421
|
-
return random().toString(36).slice(2);
|
|
8422
|
-
}
|
|
8423
8401
|
function newest(scion) {
|
|
8424
8402
|
while (scion.child !== null)
|
|
8425
8403
|
scion = scion.child;
|
|
@@ -9011,426 +8989,12 @@ var Junction = class Junction2 {
|
|
|
9011
8989
|
function isReservedIntrospectionKey(value2) {
|
|
9012
8990
|
return value2.startsWith(`\uD83D\uDD0D `);
|
|
9013
8991
|
}
|
|
9014
|
-
var abortTransaction = (target) => {
|
|
9015
|
-
target.logger.info(`\uD83E\uDE82`, `transaction`, target.transactionMeta.update.token.key, `Aborting transaction`);
|
|
9016
|
-
target.parent.child = null;
|
|
9017
|
-
};
|
|
9018
|
-
function actUponStore(store, token, id) {
|
|
9019
|
-
return (...parameters) => {
|
|
9020
|
-
return withdraw(store, token).run(parameters, id);
|
|
9021
|
-
};
|
|
9022
|
-
}
|
|
9023
|
-
function ingestAtomUpdateEvent(store, event, applying) {
|
|
9024
|
-
const { token, update: { newValue, oldValue } } = event;
|
|
9025
|
-
setIntoStore(store, token, applying === `newValue` ? newValue : oldValue);
|
|
9026
|
-
}
|
|
9027
|
-
function getTrace(error) {
|
|
9028
|
-
const { stack } = error;
|
|
9029
|
-
if (stack)
|
|
9030
|
-
return `
|
|
9031
|
-
` + stack.split(`
|
|
9032
|
-
`)?.slice(1)?.join(`
|
|
9033
|
-
`);
|
|
9034
|
-
return ``;
|
|
9035
|
-
}
|
|
9036
|
-
function allocateIntoStore(store, provenance, key, dependsOn = `any`) {
|
|
9037
|
-
const origin = provenance;
|
|
9038
|
-
const stringKey = stringifyJson(key);
|
|
9039
|
-
const invalidKeys = [];
|
|
9040
|
-
const target = newest(store);
|
|
9041
|
-
if (Array.isArray(origin))
|
|
9042
|
-
for (const formerClaim of origin) {
|
|
9043
|
-
const claimString = stringifyJson(formerClaim);
|
|
9044
|
-
if (target.molecules.get(claimString))
|
|
9045
|
-
store.moleculeGraph.set(claimString, stringKey, { source: claimString });
|
|
9046
|
-
else
|
|
9047
|
-
invalidKeys.push(claimString);
|
|
9048
|
-
}
|
|
9049
|
-
else {
|
|
9050
|
-
const claimString = stringifyJson(origin);
|
|
9051
|
-
if (target.molecules.get(claimString))
|
|
9052
|
-
store.moleculeGraph.set(claimString, stringKey, { source: claimString });
|
|
9053
|
-
else
|
|
9054
|
-
invalidKeys.push(claimString);
|
|
9055
|
-
}
|
|
9056
|
-
const subject = new Subject;
|
|
9057
|
-
if (invalidKeys.length === 0)
|
|
9058
|
-
target.molecules.set(stringKey, {
|
|
9059
|
-
key,
|
|
9060
|
-
stringKey,
|
|
9061
|
-
dependsOn,
|
|
9062
|
-
subject
|
|
9063
|
-
});
|
|
9064
|
-
const creationEvent = {
|
|
9065
|
-
type: `molecule_creation`,
|
|
9066
|
-
key,
|
|
9067
|
-
provenance: origin,
|
|
9068
|
-
timestamp: Date.now()
|
|
9069
|
-
};
|
|
9070
|
-
if (isChildStore(target) && target.transactionMeta.phase === `building`)
|
|
9071
|
-
target.transactionMeta.update.subEvents.push(creationEvent);
|
|
9072
|
-
else
|
|
9073
|
-
target.on.moleculeCreation.next(creationEvent);
|
|
9074
|
-
for (const claim of invalidKeys) {
|
|
9075
|
-
const disposal = store.disposalTraces.buffer.find((item) => item?.key === claim);
|
|
9076
|
-
store.logger.error(`\u274C`, `key`, key, `allocation failed:`, `Could not allocate to ${claim} in store "${store.config.name}".`, disposal ? `
|
|
9077
|
-
${claim} was most recently disposed
|
|
9078
|
-
${disposal.trace}` : `No previous disposal trace for ${claim} was found.`);
|
|
9079
|
-
}
|
|
9080
|
-
return key;
|
|
9081
|
-
}
|
|
9082
|
-
function deallocateFromStore(target, claim) {
|
|
9083
|
-
const stringKey = stringifyJson(claim);
|
|
9084
|
-
const molecule = target.molecules.get(stringKey);
|
|
9085
|
-
if (!molecule) {
|
|
9086
|
-
const disposal = target.disposalTraces.buffer.find((item) => item?.key === stringKey);
|
|
9087
|
-
target.logger.error(`\u274C`, `key`, claim, `deallocation failed:`, `Could not find allocation for ${stringKey} in store "${target.config.name}".`, disposal ? `
|
|
9088
|
-
This state was most recently deallocated
|
|
9089
|
-
${disposal.trace}` : `No previous disposal trace for ${stringKey} was found.`);
|
|
9090
|
-
return;
|
|
9091
|
-
}
|
|
9092
|
-
molecule.subject.next();
|
|
9093
|
-
const joinKeys = target.keyRefsInJoins.getRelatedKeys(stringKey);
|
|
9094
|
-
if (joinKeys)
|
|
9095
|
-
for (const joinKey of joinKeys) {
|
|
9096
|
-
const join$1 = target.joins.get(joinKey);
|
|
9097
|
-
if (join$1)
|
|
9098
|
-
join$1.relations.delete(claim);
|
|
9099
|
-
}
|
|
9100
|
-
else {
|
|
9101
|
-
const compound = decomposeCompound(claim);
|
|
9102
|
-
if (compound) {
|
|
9103
|
-
const [, a, b] = compound;
|
|
9104
|
-
const joinKey = target.keyRefsInJoins.getRelatedKey(simpleCompound(a, b));
|
|
9105
|
-
if (joinKey) {
|
|
9106
|
-
const join$1 = target.joins.get(joinKey);
|
|
9107
|
-
if (join$1)
|
|
9108
|
-
join$1.relations.delete(a, b);
|
|
9109
|
-
}
|
|
9110
|
-
}
|
|
9111
|
-
}
|
|
9112
|
-
target.keyRefsInJoins.delete(stringKey);
|
|
9113
|
-
const provenance = [];
|
|
9114
|
-
const values = [];
|
|
9115
|
-
const relatedMolecules = target.moleculeGraph.getRelationEntries({ downstreamMoleculeKey: stringKey });
|
|
9116
|
-
if (relatedMolecules)
|
|
9117
|
-
for (const [relatedStringKey, { source }] of relatedMolecules)
|
|
9118
|
-
if (source === stringKey)
|
|
9119
|
-
deallocateFromStore(target, parseJson2(relatedStringKey));
|
|
9120
|
-
else
|
|
9121
|
-
provenance.push(source);
|
|
9122
|
-
const familyKeys = target.moleculeData.getRelatedKeys(molecule.stringKey);
|
|
9123
|
-
if (familyKeys)
|
|
9124
|
-
for (const familyKey of familyKeys) {
|
|
9125
|
-
const family = target.families.get(familyKey);
|
|
9126
|
-
const value2 = getFromStore(target, family, claim);
|
|
9127
|
-
values.push([family.key, value2]);
|
|
9128
|
-
disposeFromStore(target, family, claim);
|
|
9129
|
-
}
|
|
9130
|
-
const disposalEvent = {
|
|
9131
|
-
type: `molecule_disposal`,
|
|
9132
|
-
key: molecule.key,
|
|
9133
|
-
values,
|
|
9134
|
-
provenance,
|
|
9135
|
-
timestamp: Date.now()
|
|
9136
|
-
};
|
|
9137
|
-
target.molecules.delete(stringKey);
|
|
9138
|
-
const isTransaction = isChildStore(target) && target.transactionMeta.phase === `building`;
|
|
9139
|
-
if (isTransaction)
|
|
9140
|
-
target.transactionMeta.update.subEvents.push(disposalEvent);
|
|
9141
|
-
target.moleculeGraph.delete(molecule.stringKey);
|
|
9142
|
-
target.keyRefsInJoins.delete(molecule.stringKey);
|
|
9143
|
-
target.moleculeData.delete(molecule.stringKey);
|
|
9144
|
-
if (!isTransaction)
|
|
9145
|
-
target.on.moleculeDisposal.next(disposalEvent);
|
|
9146
|
-
target.molecules.delete(molecule.stringKey);
|
|
9147
|
-
const trace = getTrace(/* @__PURE__ */ new Error);
|
|
9148
|
-
target.disposalTraces.add({
|
|
9149
|
-
key: stringKey,
|
|
9150
|
-
trace
|
|
9151
|
-
});
|
|
9152
|
-
}
|
|
9153
|
-
function claimWithinStore(store, newProvenance, claim, exclusive) {
|
|
9154
|
-
const stringKey = stringifyJson(claim);
|
|
9155
|
-
const target = newest(store);
|
|
9156
|
-
const molecule = target.molecules.get(stringKey);
|
|
9157
|
-
if (!molecule) {
|
|
9158
|
-
const disposal = store.disposalTraces.buffer.find((item) => item?.key === stringKey);
|
|
9159
|
-
store.logger.error(`\u274C`, `key`, stringKey, `claim failed:`, `Could not allocate to ${stringKey} in store "${store.config.name}".`, disposal ? `
|
|
9160
|
-
${stringKey} was most recently disposed
|
|
9161
|
-
${disposal.trace}` : `No previous disposal trace for ${stringKey} was found.`);
|
|
9162
|
-
return claim;
|
|
9163
|
-
}
|
|
9164
|
-
const newProvenanceKey = stringifyJson(newProvenance);
|
|
9165
|
-
const newProvenanceMolecule = target.molecules.get(newProvenanceKey);
|
|
9166
|
-
if (!newProvenanceMolecule) {
|
|
9167
|
-
const disposal = store.disposalTraces.buffer.find((item) => item?.key === newProvenanceKey);
|
|
9168
|
-
store.logger.error(`\u274C`, `key`, claim, `claim failed:`, `Could not allocate to ${newProvenanceKey} in store "${store.config.name}".`, disposal ? `
|
|
9169
|
-
${newProvenanceKey} was most recently disposed
|
|
9170
|
-
${disposal.trace}` : `No previous disposal trace for ${newProvenanceKey} was found.`);
|
|
9171
|
-
return claim;
|
|
9172
|
-
}
|
|
9173
|
-
const priorProvenance = store.moleculeGraph.getRelationEntries({ downstreamMoleculeKey: molecule.stringKey }).filter(([, { source }]) => source !== stringKey).map(([key]) => parseJson2(key));
|
|
9174
|
-
if (exclusive)
|
|
9175
|
-
target.moleculeGraph.delete(stringKey);
|
|
9176
|
-
target.moleculeGraph.set({
|
|
9177
|
-
upstreamMoleculeKey: newProvenanceMolecule.stringKey,
|
|
9178
|
-
downstreamMoleculeKey: molecule.stringKey
|
|
9179
|
-
}, { source: newProvenanceMolecule.stringKey });
|
|
9180
|
-
const transferEvent = {
|
|
9181
|
-
type: `molecule_transfer`,
|
|
9182
|
-
key: molecule.key,
|
|
9183
|
-
exclusive: Boolean(exclusive),
|
|
9184
|
-
from: priorProvenance,
|
|
9185
|
-
to: [newProvenanceMolecule.key],
|
|
9186
|
-
timestamp: Date.now()
|
|
9187
|
-
};
|
|
9188
|
-
if (isChildStore(target) && target.transactionMeta.phase === `building`)
|
|
9189
|
-
target.transactionMeta.update.subEvents.push(transferEvent);
|
|
9190
|
-
return claim;
|
|
9191
|
-
}
|
|
9192
|
-
function ingestCreationEvent(store, event, applying) {
|
|
9193
|
-
switch (applying) {
|
|
9194
|
-
case `newValue`:
|
|
9195
|
-
createInStore(store, event);
|
|
9196
|
-
break;
|
|
9197
|
-
case `oldValue`:
|
|
9198
|
-
disposeFromStore(store, event.token);
|
|
9199
|
-
break;
|
|
9200
|
-
}
|
|
9201
|
-
}
|
|
9202
|
-
function ingestDisposalEvent(store, event, applying) {
|
|
9203
|
-
switch (applying) {
|
|
9204
|
-
case `newValue`:
|
|
9205
|
-
disposeFromStore(store, event.token);
|
|
9206
|
-
break;
|
|
9207
|
-
case `oldValue`:
|
|
9208
|
-
createInStore(store, event);
|
|
9209
|
-
if (event.subType === `atom`)
|
|
9210
|
-
store.valueMap.set(event.token.key, event.value);
|
|
9211
|
-
break;
|
|
9212
|
-
}
|
|
9213
|
-
}
|
|
9214
|
-
function createInStore(store, event) {
|
|
9215
|
-
const { token } = event;
|
|
9216
|
-
if (event.subType === `writable` && event.value)
|
|
9217
|
-
setIntoStore(store, token, event.value);
|
|
9218
|
-
else
|
|
9219
|
-
getFromStore(store, token);
|
|
9220
|
-
}
|
|
9221
|
-
function ingestMoleculeCreationEvent(store, event, applying) {
|
|
9222
|
-
switch (applying) {
|
|
9223
|
-
case `newValue`:
|
|
9224
|
-
allocateIntoStore(store, event.provenance, event.key);
|
|
9225
|
-
break;
|
|
9226
|
-
case `oldValue`:
|
|
9227
|
-
deallocateFromStore(store, event.key);
|
|
9228
|
-
break;
|
|
9229
|
-
}
|
|
9230
|
-
}
|
|
9231
|
-
function ingestMoleculeDisposalEvent(store, event, applying) {
|
|
9232
|
-
switch (applying) {
|
|
9233
|
-
case `newValue`:
|
|
9234
|
-
deallocateFromStore(store, event.key);
|
|
9235
|
-
break;
|
|
9236
|
-
case `oldValue`:
|
|
9237
|
-
allocateIntoStore(store, event.provenance.map(parseJson2), event.key);
|
|
9238
|
-
for (const [familyKey, value2] of event.values) {
|
|
9239
|
-
const family = store.families.get(familyKey);
|
|
9240
|
-
if (family) {
|
|
9241
|
-
getFromStore(store, family, event.key);
|
|
9242
|
-
const memberKey = `${familyKey}(${stringifyJson(event.key)})`;
|
|
9243
|
-
store.valueMap.set(memberKey, value2);
|
|
9244
|
-
}
|
|
9245
|
-
}
|
|
9246
|
-
break;
|
|
9247
|
-
}
|
|
9248
|
-
}
|
|
9249
|
-
function ingestMoleculeTransferEvent(store, event, applying) {
|
|
9250
|
-
switch (applying) {
|
|
9251
|
-
case `newValue`:
|
|
9252
|
-
for (const newOwner of event.to)
|
|
9253
|
-
claimWithinStore(store, newOwner, event.key, event.exclusive ? `exclusive` : undefined);
|
|
9254
|
-
break;
|
|
9255
|
-
case `oldValue`:
|
|
9256
|
-
{
|
|
9257
|
-
let exclusivity = `exclusive`;
|
|
9258
|
-
for (const previousOwner of event.from) {
|
|
9259
|
-
claimWithinStore(store, previousOwner, event.key, exclusivity);
|
|
9260
|
-
exclusivity = undefined;
|
|
9261
|
-
}
|
|
9262
|
-
}
|
|
9263
|
-
break;
|
|
9264
|
-
}
|
|
9265
|
-
}
|
|
9266
|
-
function ingestTransactionOutcomeEvent(store, event, applying) {
|
|
9267
|
-
const subEvents = applying === `newValue` ? event.subEvents : [...event.subEvents].reverse();
|
|
9268
|
-
for (const subEvent of subEvents)
|
|
9269
|
-
switch (subEvent.type) {
|
|
9270
|
-
case `atom_update`:
|
|
9271
|
-
ingestAtomUpdateEvent(store, subEvent, applying);
|
|
9272
|
-
break;
|
|
9273
|
-
case `state_creation`:
|
|
9274
|
-
ingestCreationEvent(store, subEvent, applying);
|
|
9275
|
-
break;
|
|
9276
|
-
case `state_disposal`:
|
|
9277
|
-
ingestDisposalEvent(store, subEvent, applying);
|
|
9278
|
-
break;
|
|
9279
|
-
case `molecule_creation`:
|
|
9280
|
-
ingestMoleculeCreationEvent(store, subEvent, applying);
|
|
9281
|
-
break;
|
|
9282
|
-
case `molecule_disposal`:
|
|
9283
|
-
ingestMoleculeDisposalEvent(store, subEvent, applying);
|
|
9284
|
-
break;
|
|
9285
|
-
case `molecule_transfer`:
|
|
9286
|
-
ingestMoleculeTransferEvent(store, subEvent, applying);
|
|
9287
|
-
break;
|
|
9288
|
-
case `transaction_outcome`:
|
|
9289
|
-
ingestTransactionOutcomeEvent(store, subEvent, applying);
|
|
9290
|
-
break;
|
|
9291
|
-
}
|
|
9292
|
-
}
|
|
9293
8992
|
function isRootStore(store) {
|
|
9294
8993
|
return `epoch` in store.transactionMeta;
|
|
9295
8994
|
}
|
|
9296
8995
|
function isChildStore(store) {
|
|
9297
8996
|
return `phase` in store.transactionMeta;
|
|
9298
8997
|
}
|
|
9299
|
-
function getContinuityKey(store, transactionKey) {
|
|
9300
|
-
return store.transactionMeta.actionContinuities.getRelatedKey(transactionKey);
|
|
9301
|
-
}
|
|
9302
|
-
function getEpochNumberOfContinuity(store, continuityKey) {
|
|
9303
|
-
return store.transactionMeta.epoch.get(continuityKey);
|
|
9304
|
-
}
|
|
9305
|
-
function getEpochNumberOfAction(store, transactionKey) {
|
|
9306
|
-
const continuityKey = getContinuityKey(store, transactionKey);
|
|
9307
|
-
if (continuityKey === undefined)
|
|
9308
|
-
return;
|
|
9309
|
-
return getEpochNumberOfContinuity(store, continuityKey);
|
|
9310
|
-
}
|
|
9311
|
-
function setEpochNumberOfAction(store, transactionKey, newEpoch) {
|
|
9312
|
-
const continuityKey = getContinuityKey(store, transactionKey);
|
|
9313
|
-
if (continuityKey !== undefined)
|
|
9314
|
-
store.transactionMeta.epoch.set(continuityKey, newEpoch);
|
|
9315
|
-
}
|
|
9316
|
-
function applyTransaction(store, output) {
|
|
9317
|
-
const child = newest(store);
|
|
9318
|
-
const { parent } = child;
|
|
9319
|
-
child.transactionMeta.phase = `applying`;
|
|
9320
|
-
child.transactionMeta.update.output = output;
|
|
9321
|
-
parent.child = null;
|
|
9322
|
-
parent.on.transactionApplying.next(child.transactionMeta);
|
|
9323
|
-
const { subEvents: updates } = child.transactionMeta.update;
|
|
9324
|
-
store.logger.info(`\uD83D\uDEC4`, `transaction`, child.transactionMeta.update.token.key, `applying ${updates.length} subEvents:`, updates);
|
|
9325
|
-
ingestTransactionOutcomeEvent(parent, child.transactionMeta.update, `newValue`);
|
|
9326
|
-
if (isRootStore(parent)) {
|
|
9327
|
-
setEpochNumberOfAction(parent, child.transactionMeta.update.token.key, child.transactionMeta.update.epoch);
|
|
9328
|
-
withdraw(store, {
|
|
9329
|
-
key: child.transactionMeta.update.token.key,
|
|
9330
|
-
type: `transaction`
|
|
9331
|
-
})?.subject.next(child.transactionMeta.update);
|
|
9332
|
-
store.logger.info(`\uD83D\uDEEC`, `transaction`, child.transactionMeta.update.token.key, `applied`);
|
|
9333
|
-
} else if (isChildStore(parent))
|
|
9334
|
-
parent.transactionMeta.update.subEvents.push(child.transactionMeta.update);
|
|
9335
|
-
parent.on.transactionApplying.next(null);
|
|
9336
|
-
}
|
|
9337
|
-
function getEnvironmentData(store) {
|
|
9338
|
-
return { store };
|
|
9339
|
-
}
|
|
9340
|
-
var buildTransaction = (store, token, params, id) => {
|
|
9341
|
-
const parent = newest(store);
|
|
9342
|
-
const childBase = {
|
|
9343
|
-
parent,
|
|
9344
|
-
child: null,
|
|
9345
|
-
on: parent.on,
|
|
9346
|
-
loggers: parent.loggers,
|
|
9347
|
-
logger: parent.logger,
|
|
9348
|
-
config: parent.config,
|
|
9349
|
-
atoms: new MapOverlay(parent.atoms),
|
|
9350
|
-
atomsThatAreDefault: new Set(parent.atomsThatAreDefault),
|
|
9351
|
-
families: new MapOverlay(parent.families),
|
|
9352
|
-
joins: new MapOverlay(parent.joins),
|
|
9353
|
-
operation: { open: false },
|
|
9354
|
-
readonlySelectors: new MapOverlay(parent.readonlySelectors),
|
|
9355
|
-
timelines: new MapOverlay(parent.timelines),
|
|
9356
|
-
timelineTopics: parent.timelineTopics.overlay(),
|
|
9357
|
-
trackers: /* @__PURE__ */ new Map,
|
|
9358
|
-
transactions: new MapOverlay(parent.transactions),
|
|
9359
|
-
selectorAtoms: parent.selectorAtoms.overlay(),
|
|
9360
|
-
selectorGraph: parent.selectorGraph.overlay(),
|
|
9361
|
-
writableSelectors: new MapOverlay(parent.writableSelectors),
|
|
9362
|
-
valueMap: new MapOverlay(parent.valueMap),
|
|
9363
|
-
defaults: parent.defaults,
|
|
9364
|
-
disposalTraces: store.disposalTraces.copy(),
|
|
9365
|
-
molecules: new MapOverlay(parent.molecules),
|
|
9366
|
-
moleculeGraph: parent.moleculeGraph.overlay(),
|
|
9367
|
-
moleculeData: parent.moleculeData.overlay(),
|
|
9368
|
-
keyRefsInJoins: parent.keyRefsInJoins.overlay(),
|
|
9369
|
-
miscResources: new MapOverlay(parent.miscResources)
|
|
9370
|
-
};
|
|
9371
|
-
const epoch3 = getEpochNumberOfAction(store, token.key);
|
|
9372
|
-
const transactionMeta = {
|
|
9373
|
-
phase: `building`,
|
|
9374
|
-
update: {
|
|
9375
|
-
type: `transaction_outcome`,
|
|
9376
|
-
token,
|
|
9377
|
-
id,
|
|
9378
|
-
epoch: epoch3 === undefined ? NaN : epoch3 + 1,
|
|
9379
|
-
timestamp: Date.now(),
|
|
9380
|
-
subEvents: [],
|
|
9381
|
-
params,
|
|
9382
|
-
output: undefined
|
|
9383
|
-
},
|
|
9384
|
-
toolkit: {
|
|
9385
|
-
get: (...ps) => getFromStore(child, ...ps),
|
|
9386
|
-
set: (...ps) => {
|
|
9387
|
-
setIntoStore(child, ...ps);
|
|
9388
|
-
},
|
|
9389
|
-
reset: (...ps) => {
|
|
9390
|
-
resetInStore(child, ...ps);
|
|
9391
|
-
},
|
|
9392
|
-
run: (t, identifier = arbitrary()) => actUponStore(child, t, identifier),
|
|
9393
|
-
find: (...ps) => findInStore(store, ...ps),
|
|
9394
|
-
json: (t) => getJsonToken(child, t),
|
|
9395
|
-
dispose: (...ps) => {
|
|
9396
|
-
disposeFromStore(child, ...ps);
|
|
9397
|
-
},
|
|
9398
|
-
env: () => getEnvironmentData(child)
|
|
9399
|
-
}
|
|
9400
|
-
};
|
|
9401
|
-
const child = Object.assign(childBase, { transactionMeta });
|
|
9402
|
-
parent.child = child;
|
|
9403
|
-
store.logger.info(`\uD83D\uDEEB`, `transaction`, token.key, `building with params:`, params);
|
|
9404
|
-
return child;
|
|
9405
|
-
};
|
|
9406
|
-
function createTransaction(store, options) {
|
|
9407
|
-
const { key } = options;
|
|
9408
|
-
const transactionAlreadyExists = store.transactions.has(key);
|
|
9409
|
-
const newTransaction = {
|
|
9410
|
-
key,
|
|
9411
|
-
type: `transaction`,
|
|
9412
|
-
run: (params, id) => {
|
|
9413
|
-
const target = buildTransaction(store, deposit(newTransaction), params, id);
|
|
9414
|
-
try {
|
|
9415
|
-
const { toolkit } = target.transactionMeta;
|
|
9416
|
-
const output = options.do(toolkit, ...params);
|
|
9417
|
-
applyTransaction(target, output);
|
|
9418
|
-
return output;
|
|
9419
|
-
} catch (thrown) {
|
|
9420
|
-
abortTransaction(target);
|
|
9421
|
-
store.logger.warn(`\uD83D\uDCA5`, `transaction`, key, `caught:`, thrown);
|
|
9422
|
-
throw thrown;
|
|
9423
|
-
}
|
|
9424
|
-
},
|
|
9425
|
-
install: (s) => createTransaction(s, options),
|
|
9426
|
-
subject: new Subject
|
|
9427
|
-
};
|
|
9428
|
-
newest(store).transactions.set(key, newTransaction);
|
|
9429
|
-
const token = deposit(newTransaction);
|
|
9430
|
-
if (!transactionAlreadyExists)
|
|
9431
|
-
store.on.transactionCreation.next(token);
|
|
9432
|
-
return token;
|
|
9433
|
-
}
|
|
9434
8998
|
var Store = class {
|
|
9435
8999
|
parent = null;
|
|
9436
9000
|
child = null;
|
|
@@ -10108,34 +9672,6 @@ function createSelectorFamily(store, options) {
|
|
|
10108
9672
|
return createWritablePureSelectorFamily(store, options);
|
|
10109
9673
|
return createReadonlyPureSelectorFamily(store, options);
|
|
10110
9674
|
}
|
|
10111
|
-
function disposeFromStore(store, ...params) {
|
|
10112
|
-
let token;
|
|
10113
|
-
if (params.length === 1)
|
|
10114
|
-
token = params[0];
|
|
10115
|
-
else {
|
|
10116
|
-
const family = params[0];
|
|
10117
|
-
const key = params[1];
|
|
10118
|
-
token = findInStore(store, family, key);
|
|
10119
|
-
}
|
|
10120
|
-
try {
|
|
10121
|
-
withdraw(store, token);
|
|
10122
|
-
} catch (_) {
|
|
10123
|
-
store.logger.error(`\u274C`, token.type, token.key, `could not be disposed because it was not found in the store "${store.config.name}".`);
|
|
10124
|
-
return;
|
|
10125
|
-
}
|
|
10126
|
-
switch (token.type) {
|
|
10127
|
-
case `atom`:
|
|
10128
|
-
case `mutable_atom`:
|
|
10129
|
-
disposeAtom(store, token);
|
|
10130
|
-
break;
|
|
10131
|
-
case `writable_pure_selector`:
|
|
10132
|
-
case `readonly_pure_selector`:
|
|
10133
|
-
case `writable_held_selector`:
|
|
10134
|
-
case `readonly_held_selector`:
|
|
10135
|
-
disposeSelector(store, token);
|
|
10136
|
-
break;
|
|
10137
|
-
}
|
|
10138
|
-
}
|
|
10139
9675
|
function openOperation(store, token) {
|
|
10140
9676
|
if (store.operation.open) {
|
|
10141
9677
|
const rejectionTime = performance.now();
|
|
@@ -10705,85 +10241,6 @@ function createStandaloneSelector(store, options) {
|
|
|
10705
10241
|
store.on.selectorCreation.next(state);
|
|
10706
10242
|
return state;
|
|
10707
10243
|
}
|
|
10708
|
-
function disposeSelector(store, selectorToken) {
|
|
10709
|
-
const target = newest(store);
|
|
10710
|
-
const { key, type: type2, family: familyMeta } = selectorToken;
|
|
10711
|
-
if (!familyMeta)
|
|
10712
|
-
store.logger.error(`\u274C`, type2, key, `Standalone selectors cannot be disposed.`);
|
|
10713
|
-
else {
|
|
10714
|
-
if (target.molecules.get(familyMeta.subKey))
|
|
10715
|
-
target.moleculeData.delete(familyMeta.subKey, familyMeta.key);
|
|
10716
|
-
let familyToken;
|
|
10717
|
-
switch (selectorToken.type) {
|
|
10718
|
-
case `writable_held_selector`:
|
|
10719
|
-
target.writableSelectors.delete(key);
|
|
10720
|
-
familyToken = {
|
|
10721
|
-
key: familyMeta.key,
|
|
10722
|
-
type: `writable_held_selector_family`
|
|
10723
|
-
};
|
|
10724
|
-
withdraw(store, familyToken).subject.next({
|
|
10725
|
-
type: `state_disposal`,
|
|
10726
|
-
subType: `selector`,
|
|
10727
|
-
token: selectorToken,
|
|
10728
|
-
timestamp: Date.now()
|
|
10729
|
-
});
|
|
10730
|
-
break;
|
|
10731
|
-
case `writable_pure_selector`:
|
|
10732
|
-
target.writableSelectors.delete(key);
|
|
10733
|
-
familyToken = {
|
|
10734
|
-
key: familyMeta.key,
|
|
10735
|
-
type: `writable_pure_selector_family`
|
|
10736
|
-
};
|
|
10737
|
-
withdraw(store, familyToken).subject.next({
|
|
10738
|
-
type: `state_disposal`,
|
|
10739
|
-
subType: `selector`,
|
|
10740
|
-
token: selectorToken,
|
|
10741
|
-
timestamp: Date.now()
|
|
10742
|
-
});
|
|
10743
|
-
break;
|
|
10744
|
-
case `readonly_held_selector`:
|
|
10745
|
-
target.readonlySelectors.delete(key);
|
|
10746
|
-
familyToken = {
|
|
10747
|
-
key: familyMeta.key,
|
|
10748
|
-
type: `readonly_held_selector_family`
|
|
10749
|
-
};
|
|
10750
|
-
withdraw(store, familyToken).subject.next({
|
|
10751
|
-
type: `state_disposal`,
|
|
10752
|
-
subType: `selector`,
|
|
10753
|
-
token: selectorToken,
|
|
10754
|
-
timestamp: Date.now()
|
|
10755
|
-
});
|
|
10756
|
-
break;
|
|
10757
|
-
case `readonly_pure_selector`:
|
|
10758
|
-
target.readonlySelectors.delete(key);
|
|
10759
|
-
familyToken = {
|
|
10760
|
-
key: familyMeta.key,
|
|
10761
|
-
type: `readonly_pure_selector_family`
|
|
10762
|
-
};
|
|
10763
|
-
withdraw(store, familyToken).subject.next({
|
|
10764
|
-
type: `state_disposal`,
|
|
10765
|
-
subType: `selector`,
|
|
10766
|
-
token: selectorToken,
|
|
10767
|
-
timestamp: Date.now()
|
|
10768
|
-
});
|
|
10769
|
-
break;
|
|
10770
|
-
}
|
|
10771
|
-
target.valueMap.delete(key);
|
|
10772
|
-
target.selectorAtoms.delete(key);
|
|
10773
|
-
target.selectorGraph.delete(key);
|
|
10774
|
-
target.moleculeData.delete(familyMeta.key, familyMeta.subKey);
|
|
10775
|
-
store.logger.info(`\uD83D\uDD25`, selectorToken.type, key, `deleted`);
|
|
10776
|
-
if (isChildStore(target) && target.transactionMeta.phase === `building`)
|
|
10777
|
-
target.transactionMeta.update.subEvents.push({
|
|
10778
|
-
type: `state_disposal`,
|
|
10779
|
-
subType: `selector`,
|
|
10780
|
-
token: selectorToken,
|
|
10781
|
-
timestamp: Date.now()
|
|
10782
|
-
});
|
|
10783
|
-
else
|
|
10784
|
-
store.on.selectorDisposal.next(selectorToken);
|
|
10785
|
-
}
|
|
10786
|
-
}
|
|
10787
10244
|
var recallState = (store, state) => {
|
|
10788
10245
|
const target = newest(store);
|
|
10789
10246
|
if (target.operation.open)
|
|
@@ -11258,46 +10715,6 @@ function hasRole(atom, role) {
|
|
|
11258
10715
|
return false;
|
|
11259
10716
|
return atom.internalRoles.includes(role);
|
|
11260
10717
|
}
|
|
11261
|
-
function disposeAtom(store, atomToken) {
|
|
11262
|
-
const target = newest(store);
|
|
11263
|
-
const { key, family } = atomToken;
|
|
11264
|
-
const atom = withdraw(target, atomToken);
|
|
11265
|
-
if (!family)
|
|
11266
|
-
store.logger.error(`\u274C`, `atom`, key, `Standalone atoms cannot be disposed.`);
|
|
11267
|
-
else {
|
|
11268
|
-
atom.cleanup?.();
|
|
11269
|
-
const lastValue = store.valueMap.get(atom.key);
|
|
11270
|
-
const subject = withdraw(store, getFamilyOfToken(store, atomToken)).subject;
|
|
11271
|
-
const disposalEvent = {
|
|
11272
|
-
type: `state_disposal`,
|
|
11273
|
-
subType: `atom`,
|
|
11274
|
-
token: atomToken,
|
|
11275
|
-
value: lastValue,
|
|
11276
|
-
timestamp: Date.now()
|
|
11277
|
-
};
|
|
11278
|
-
subject.next(disposalEvent);
|
|
11279
|
-
const isChild = isChildStore(target);
|
|
11280
|
-
target.atoms.delete(key);
|
|
11281
|
-
target.valueMap.delete(key);
|
|
11282
|
-
target.selectorAtoms.delete(key);
|
|
11283
|
-
target.atomsThatAreDefault.delete(key);
|
|
11284
|
-
target.moleculeData.delete(family.key, family.subKey);
|
|
11285
|
-
store.timelineTopics.delete(key);
|
|
11286
|
-
if (atomToken.type === `mutable_atom`) {
|
|
11287
|
-
disposeAtom(store, getUpdateToken(atomToken));
|
|
11288
|
-
store.trackers.delete(key);
|
|
11289
|
-
}
|
|
11290
|
-
store.logger.info(`\uD83D\uDD25`, `atom`, key, `deleted`);
|
|
11291
|
-
if (isChild && target.transactionMeta.phase === `building`) {
|
|
11292
|
-
const mostRecentUpdate = target.transactionMeta.update.subEvents.at(-1);
|
|
11293
|
-
const updateAlreadyCaptured = mostRecentUpdate?.type === `molecule_disposal` && mostRecentUpdate.values.some(([k]) => k === atom.family?.key);
|
|
11294
|
-
const isTracker = hasRole(atom, `tracker:signal`);
|
|
11295
|
-
if (!updateAlreadyCaptured && !isTracker)
|
|
11296
|
-
target.transactionMeta.update.subEvents.push(disposalEvent);
|
|
11297
|
-
} else
|
|
11298
|
-
store.on.atomDisposal.next(atomToken);
|
|
11299
|
-
}
|
|
11300
|
-
}
|
|
11301
10718
|
function capitalize3(string2) {
|
|
11302
10719
|
return string2[0].toUpperCase() + string2.slice(1);
|
|
11303
10720
|
}
|
|
@@ -11999,11 +11416,10 @@ var SyncGroup = class SyncGroup2 {
|
|
|
11999
11416
|
return this;
|
|
12000
11417
|
}
|
|
12001
11418
|
};
|
|
12002
|
-
var
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
var roomIndex = mutableAtom({
|
|
11419
|
+
var isSocketKey = (key) => key.startsWith(`socket::`);
|
|
11420
|
+
var isUserKey = (key) => key.startsWith(`user::`);
|
|
11421
|
+
var isRoomKey = (key) => key.startsWith(`room::`);
|
|
11422
|
+
var roomKeysAtom = mutableAtom({
|
|
12007
11423
|
key: `roomIndex`,
|
|
12008
11424
|
class: UList
|
|
12009
11425
|
});
|
|
@@ -12011,8 +11427,8 @@ var usersInRooms = join({
|
|
|
12011
11427
|
key: `usersInRooms`,
|
|
12012
11428
|
between: [`room`, `user`],
|
|
12013
11429
|
cardinality: `1:n`,
|
|
12014
|
-
isAType:
|
|
12015
|
-
isBType:
|
|
11430
|
+
isAType: isRoomKey,
|
|
11431
|
+
isBType: isUserKey
|
|
12016
11432
|
});
|
|
12017
11433
|
var usersInMyRoomView = selectorFamily({
|
|
12018
11434
|
key: `usersInMyRoomView`,
|
|
@@ -12363,54 +11779,15 @@ var ParentSocket = class extends CustomSocket {
|
|
|
12363
11779
|
this.relayServices.push(attachServices);
|
|
12364
11780
|
}
|
|
12365
11781
|
};
|
|
12366
|
-
var ROOMS = /* @__PURE__ */ new Map;
|
|
12367
|
-
var joinRoomTX = transaction({
|
|
12368
|
-
key: `joinRoom`,
|
|
12369
|
-
do: (tools, roomId, userId, enteredAtEpoch) => {
|
|
12370
|
-
const meta = { enteredAtEpoch };
|
|
12371
|
-
editRelationsInStore(usersInRooms, (relations) => {
|
|
12372
|
-
relations.set({
|
|
12373
|
-
room: roomId,
|
|
12374
|
-
user: userId
|
|
12375
|
-
});
|
|
12376
|
-
}, tools.env().store);
|
|
12377
|
-
return meta;
|
|
12378
|
-
}
|
|
12379
|
-
});
|
|
12380
|
-
var leaveRoomTX = transaction({
|
|
12381
|
-
key: `leaveRoom`,
|
|
12382
|
-
do: ({ env: env2 }, roomId, userId) => {
|
|
12383
|
-
editRelationsInStore(usersInRooms, (relations) => {
|
|
12384
|
-
relations.delete({
|
|
12385
|
-
room: roomId,
|
|
12386
|
-
user: userId
|
|
12387
|
-
});
|
|
12388
|
-
}, env2().store);
|
|
12389
|
-
}
|
|
12390
|
-
});
|
|
12391
|
-
var destroyRoomTX = transaction({
|
|
12392
|
-
key: `destroyRoom`,
|
|
12393
|
-
do: ({ set, env: env2 }, roomId) => {
|
|
12394
|
-
editRelationsInStore(usersInRooms, (relations) => {
|
|
12395
|
-
relations.delete({ room: roomId });
|
|
12396
|
-
}, env2().store);
|
|
12397
|
-
set(roomIndex, (s) => (s.delete(roomId), s));
|
|
12398
|
-
const room = ROOMS.get(roomId);
|
|
12399
|
-
if (room) {
|
|
12400
|
-
room.emit(`exit`);
|
|
12401
|
-
ROOMS.delete(roomId);
|
|
12402
|
-
}
|
|
12403
|
-
}
|
|
12404
|
-
});
|
|
12405
11782
|
var socketAtoms = atomFamily({
|
|
12406
11783
|
key: `sockets`,
|
|
12407
11784
|
default: null
|
|
12408
11785
|
});
|
|
12409
|
-
var
|
|
11786
|
+
var socketKeysAtom = mutableAtom({
|
|
12410
11787
|
key: `socketsIndex`,
|
|
12411
11788
|
class: UList
|
|
12412
11789
|
});
|
|
12413
|
-
var
|
|
11790
|
+
var userKeysAtom = mutableAtom({
|
|
12414
11791
|
key: `usersIndex`,
|
|
12415
11792
|
class: UList
|
|
12416
11793
|
});
|
|
@@ -12418,15 +11795,14 @@ var usersOfSockets = join({
|
|
|
12418
11795
|
key: `usersOfSockets`,
|
|
12419
11796
|
between: [`user`, `socket`],
|
|
12420
11797
|
cardinality: `1:1`,
|
|
12421
|
-
isAType:
|
|
12422
|
-
isBType:
|
|
11798
|
+
isAType: isUserKey,
|
|
11799
|
+
isBType: isSocketKey
|
|
12423
11800
|
});
|
|
12424
|
-
var
|
|
12425
|
-
key: `
|
|
12426
|
-
get: (userId) => () =>
|
|
12427
|
-
return [userId];
|
|
12428
|
-
}
|
|
11801
|
+
var selfListSelectors = selectorFamily({
|
|
11802
|
+
key: `selfList`,
|
|
11803
|
+
get: (userId) => () => [userId]
|
|
12429
11804
|
});
|
|
11805
|
+
var ROOMS = globalThis.ATOM_IO_REALTIME_SERVER_ROOMS ?? (globalThis.ATOM_IO_REALTIME_SERVER_ROOMS = /* @__PURE__ */ new Map);
|
|
12430
11806
|
|
|
12431
11807
|
// src/frontend.bun.ts
|
|
12432
11808
|
var {file, serve } = globalThis.Bun;
|
|
@@ -12437,7 +11813,7 @@ import { createServer as createHttpServer } from "http";
|
|
|
12437
11813
|
import { createServer as createSecureServer } from "https";
|
|
12438
11814
|
import { resolve } from "path";
|
|
12439
11815
|
|
|
12440
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.
|
|
11816
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.26_typescript@5.9.3_zod@4.1.12/node_modules/@t3-oss/env-core/dist/src-Bb3GbGAa.js
|
|
12441
11817
|
function ensureSynchronous(value2, message) {
|
|
12442
11818
|
if (value2 instanceof Promise)
|
|
12443
11819
|
throw new Error(message);
|
|
@@ -12571,7 +11947,7 @@ function createServer(listener) {
|
|
|
12571
11947
|
// src/database/tempest-db-manager.ts
|
|
12572
11948
|
import path2 from "path";
|
|
12573
11949
|
|
|
12574
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
11950
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/entity.js
|
|
12575
11951
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
12576
11952
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
12577
11953
|
function is(value2, type2) {
|
|
@@ -12596,7 +11972,7 @@ function is(value2, type2) {
|
|
|
12596
11972
|
return false;
|
|
12597
11973
|
}
|
|
12598
11974
|
|
|
12599
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
11975
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/column.js
|
|
12600
11976
|
class Column {
|
|
12601
11977
|
constructor(table, config3) {
|
|
12602
11978
|
this.table = table;
|
|
@@ -12646,7 +12022,7 @@ class Column {
|
|
|
12646
12022
|
}
|
|
12647
12023
|
}
|
|
12648
12024
|
|
|
12649
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12025
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/column-builder.js
|
|
12650
12026
|
class ColumnBuilder {
|
|
12651
12027
|
static [entityKind] = "ColumnBuilder";
|
|
12652
12028
|
config;
|
|
@@ -12702,10 +12078,10 @@ class ColumnBuilder {
|
|
|
12702
12078
|
}
|
|
12703
12079
|
}
|
|
12704
12080
|
|
|
12705
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12081
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/table.utils.js
|
|
12706
12082
|
var TableName = Symbol.for("drizzle:Name");
|
|
12707
12083
|
|
|
12708
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12084
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/foreign-keys.js
|
|
12709
12085
|
class ForeignKeyBuilder {
|
|
12710
12086
|
static [entityKind] = "PgForeignKeyBuilder";
|
|
12711
12087
|
reference;
|
|
@@ -12759,17 +12135,17 @@ class ForeignKey {
|
|
|
12759
12135
|
}
|
|
12760
12136
|
}
|
|
12761
12137
|
|
|
12762
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12138
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/tracing-utils.js
|
|
12763
12139
|
function iife(fn2, ...args2) {
|
|
12764
12140
|
return fn2(...args2);
|
|
12765
12141
|
}
|
|
12766
12142
|
|
|
12767
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12143
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
12768
12144
|
function uniqueKeyName(table, columns) {
|
|
12769
12145
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
12770
12146
|
}
|
|
12771
12147
|
|
|
12772
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12148
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/utils/array.js
|
|
12773
12149
|
function parsePgArrayValue(arrayString, startFrom, inQuotes) {
|
|
12774
12150
|
for (let i = startFrom;i < arrayString.length; i++) {
|
|
12775
12151
|
const char = arrayString[i];
|
|
@@ -12845,7 +12221,7 @@ function makePgArray(array) {
|
|
|
12845
12221
|
}).join(",")}}`;
|
|
12846
12222
|
}
|
|
12847
12223
|
|
|
12848
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12224
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
12849
12225
|
class PgColumnBuilder extends ColumnBuilder {
|
|
12850
12226
|
foreignKeyConfigs = [];
|
|
12851
12227
|
static [entityKind] = "PgColumnBuilder";
|
|
@@ -12993,7 +12369,7 @@ class PgArray extends PgColumn {
|
|
|
12993
12369
|
}
|
|
12994
12370
|
}
|
|
12995
12371
|
|
|
12996
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12372
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
12997
12373
|
class PgEnumObjectColumnBuilder extends PgColumnBuilder {
|
|
12998
12374
|
static [entityKind] = "PgEnumObjectColumnBuilder";
|
|
12999
12375
|
constructor(name, enumInstance) {
|
|
@@ -13067,7 +12443,7 @@ function pgEnumObjectWithSchema(enumName, values, schema2) {
|
|
|
13067
12443
|
return enumInstance;
|
|
13068
12444
|
}
|
|
13069
12445
|
|
|
13070
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12446
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/subquery.js
|
|
13071
12447
|
class Subquery {
|
|
13072
12448
|
static [entityKind] = "Subquery";
|
|
13073
12449
|
constructor(sql, fields, alias, isWith = false, usedTables = []) {
|
|
@@ -13086,10 +12462,10 @@ class WithSubquery extends Subquery {
|
|
|
13086
12462
|
static [entityKind] = "WithSubquery";
|
|
13087
12463
|
}
|
|
13088
12464
|
|
|
13089
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12465
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/version.js
|
|
13090
12466
|
var version = "0.44.7";
|
|
13091
12467
|
|
|
13092
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12468
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/tracing.js
|
|
13093
12469
|
var otel;
|
|
13094
12470
|
var rawTracer;
|
|
13095
12471
|
var tracer = {
|
|
@@ -13116,10 +12492,10 @@ var tracer = {
|
|
|
13116
12492
|
}
|
|
13117
12493
|
};
|
|
13118
12494
|
|
|
13119
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12495
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/view-common.js
|
|
13120
12496
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
13121
12497
|
|
|
13122
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12498
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/table.js
|
|
13123
12499
|
var Schema = Symbol.for("drizzle:Schema");
|
|
13124
12500
|
var Columns = Symbol.for("drizzle:Columns");
|
|
13125
12501
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -13163,7 +12539,7 @@ function getTableUniqueName(table) {
|
|
|
13163
12539
|
return `${table[Schema] ?? "public"}.${table[TableName]}`;
|
|
13164
12540
|
}
|
|
13165
12541
|
|
|
13166
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12542
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/sql/sql.js
|
|
13167
12543
|
function isSQLWrapper(value2) {
|
|
13168
12544
|
return value2 !== null && value2 !== undefined && typeof value2.getSQL === "function";
|
|
13169
12545
|
}
|
|
@@ -13543,7 +12919,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
13543
12919
|
return new SQL([this]);
|
|
13544
12920
|
};
|
|
13545
12921
|
|
|
13546
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
12922
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/alias.js
|
|
13547
12923
|
class ColumnAliasProxyHandler {
|
|
13548
12924
|
constructor(table) {
|
|
13549
12925
|
this.table = table;
|
|
@@ -13622,7 +12998,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
13622
12998
|
}));
|
|
13623
12999
|
}
|
|
13624
13000
|
|
|
13625
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13001
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/errors.js
|
|
13626
13002
|
class DrizzleError extends Error {
|
|
13627
13003
|
static [entityKind] = "DrizzleError";
|
|
13628
13004
|
constructor({ message, cause }) {
|
|
@@ -13652,7 +13028,7 @@ class TransactionRollbackError extends DrizzleError {
|
|
|
13652
13028
|
}
|
|
13653
13029
|
}
|
|
13654
13030
|
|
|
13655
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13031
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/logger.js
|
|
13656
13032
|
class ConsoleLogWriter {
|
|
13657
13033
|
static [entityKind] = "ConsoleLogWriter";
|
|
13658
13034
|
write(message) {
|
|
@@ -13684,7 +13060,7 @@ class NoopLogger {
|
|
|
13684
13060
|
logQuery() {}
|
|
13685
13061
|
}
|
|
13686
13062
|
|
|
13687
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13063
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/query-promise.js
|
|
13688
13064
|
class QueryPromise {
|
|
13689
13065
|
static [entityKind] = "QueryPromise";
|
|
13690
13066
|
[Symbol.toStringTag] = "QueryPromise";
|
|
@@ -13705,7 +13081,7 @@ class QueryPromise {
|
|
|
13705
13081
|
}
|
|
13706
13082
|
}
|
|
13707
13083
|
|
|
13708
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13084
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/utils.js
|
|
13709
13085
|
function mapResultRow(columns, row, joinsNotNullableMap) {
|
|
13710
13086
|
const nullifyMap = {};
|
|
13711
13087
|
const result = columns.reduce((result2, { path: path2, field }, columnIndex) => {
|
|
@@ -13857,7 +13233,7 @@ function isConfig(data) {
|
|
|
13857
13233
|
}
|
|
13858
13234
|
var textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder;
|
|
13859
13235
|
|
|
13860
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13236
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/int.common.js
|
|
13861
13237
|
class PgIntColumnBaseBuilder extends PgColumnBuilder {
|
|
13862
13238
|
static [entityKind] = "PgIntColumnBaseBuilder";
|
|
13863
13239
|
generatedAlwaysAsIdentity(sequence2) {
|
|
@@ -13896,7 +13272,7 @@ class PgIntColumnBaseBuilder extends PgColumnBuilder {
|
|
|
13896
13272
|
}
|
|
13897
13273
|
}
|
|
13898
13274
|
|
|
13899
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13275
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/bigint.js
|
|
13900
13276
|
class PgBigInt53Builder extends PgIntColumnBaseBuilder {
|
|
13901
13277
|
static [entityKind] = "PgBigInt53Builder";
|
|
13902
13278
|
constructor(name) {
|
|
@@ -13947,7 +13323,7 @@ function bigint(a, b) {
|
|
|
13947
13323
|
return new PgBigInt64Builder(name);
|
|
13948
13324
|
}
|
|
13949
13325
|
|
|
13950
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13326
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/bigserial.js
|
|
13951
13327
|
class PgBigSerial53Builder extends PgColumnBuilder {
|
|
13952
13328
|
static [entityKind] = "PgBigSerial53Builder";
|
|
13953
13329
|
constructor(name) {
|
|
@@ -14001,7 +13377,7 @@ function bigserial(a, b) {
|
|
|
14001
13377
|
return new PgBigSerial64Builder(name);
|
|
14002
13378
|
}
|
|
14003
13379
|
|
|
14004
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13380
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/boolean.js
|
|
14005
13381
|
class PgBooleanBuilder extends PgColumnBuilder {
|
|
14006
13382
|
static [entityKind] = "PgBooleanBuilder";
|
|
14007
13383
|
constructor(name) {
|
|
@@ -14022,7 +13398,7 @@ function boolean(name) {
|
|
|
14022
13398
|
return new PgBooleanBuilder(name ?? "");
|
|
14023
13399
|
}
|
|
14024
13400
|
|
|
14025
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13401
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/char.js
|
|
14026
13402
|
class PgCharBuilder extends PgColumnBuilder {
|
|
14027
13403
|
static [entityKind] = "PgCharBuilder";
|
|
14028
13404
|
constructor(name, config3) {
|
|
@@ -14048,7 +13424,7 @@ function char(a, b = {}) {
|
|
|
14048
13424
|
return new PgCharBuilder(name, config3);
|
|
14049
13425
|
}
|
|
14050
13426
|
|
|
14051
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13427
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/cidr.js
|
|
14052
13428
|
class PgCidrBuilder extends PgColumnBuilder {
|
|
14053
13429
|
static [entityKind] = "PgCidrBuilder";
|
|
14054
13430
|
constructor(name) {
|
|
@@ -14069,7 +13445,7 @@ function cidr(name) {
|
|
|
14069
13445
|
return new PgCidrBuilder(name ?? "");
|
|
14070
13446
|
}
|
|
14071
13447
|
|
|
14072
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13448
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/custom.js
|
|
14073
13449
|
class PgCustomColumnBuilder extends PgColumnBuilder {
|
|
14074
13450
|
static [entityKind] = "PgCustomColumnBuilder";
|
|
14075
13451
|
constructor(name, fieldConfig, customTypeParams) {
|
|
@@ -14110,7 +13486,7 @@ function customType(customTypeParams) {
|
|
|
14110
13486
|
};
|
|
14111
13487
|
}
|
|
14112
13488
|
|
|
14113
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13489
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/date.common.js
|
|
14114
13490
|
class PgDateColumnBaseBuilder extends PgColumnBuilder {
|
|
14115
13491
|
static [entityKind] = "PgDateColumnBaseBuilder";
|
|
14116
13492
|
defaultNow() {
|
|
@@ -14118,7 +13494,7 @@ class PgDateColumnBaseBuilder extends PgColumnBuilder {
|
|
|
14118
13494
|
}
|
|
14119
13495
|
}
|
|
14120
13496
|
|
|
14121
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13497
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/date.js
|
|
14122
13498
|
class PgDateBuilder extends PgDateColumnBaseBuilder {
|
|
14123
13499
|
static [entityKind] = "PgDateBuilder";
|
|
14124
13500
|
constructor(name) {
|
|
@@ -14166,7 +13542,7 @@ function date(a, b) {
|
|
|
14166
13542
|
return new PgDateStringBuilder(name);
|
|
14167
13543
|
}
|
|
14168
13544
|
|
|
14169
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13545
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/double-precision.js
|
|
14170
13546
|
class PgDoublePrecisionBuilder extends PgColumnBuilder {
|
|
14171
13547
|
static [entityKind] = "PgDoublePrecisionBuilder";
|
|
14172
13548
|
constructor(name) {
|
|
@@ -14193,7 +13569,7 @@ function doublePrecision(name) {
|
|
|
14193
13569
|
return new PgDoublePrecisionBuilder(name ?? "");
|
|
14194
13570
|
}
|
|
14195
13571
|
|
|
14196
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13572
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/inet.js
|
|
14197
13573
|
class PgInetBuilder extends PgColumnBuilder {
|
|
14198
13574
|
static [entityKind] = "PgInetBuilder";
|
|
14199
13575
|
constructor(name) {
|
|
@@ -14214,7 +13590,7 @@ function inet(name) {
|
|
|
14214
13590
|
return new PgInetBuilder(name ?? "");
|
|
14215
13591
|
}
|
|
14216
13592
|
|
|
14217
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13593
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/integer.js
|
|
14218
13594
|
class PgIntegerBuilder extends PgIntColumnBaseBuilder {
|
|
14219
13595
|
static [entityKind] = "PgIntegerBuilder";
|
|
14220
13596
|
constructor(name) {
|
|
@@ -14241,7 +13617,7 @@ function integer2(name) {
|
|
|
14241
13617
|
return new PgIntegerBuilder(name ?? "");
|
|
14242
13618
|
}
|
|
14243
13619
|
|
|
14244
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13620
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/interval.js
|
|
14245
13621
|
class PgIntervalBuilder extends PgColumnBuilder {
|
|
14246
13622
|
static [entityKind] = "PgIntervalBuilder";
|
|
14247
13623
|
constructor(name, intervalConfig) {
|
|
@@ -14268,7 +13644,7 @@ function interval(a, b = {}) {
|
|
|
14268
13644
|
return new PgIntervalBuilder(name, config3);
|
|
14269
13645
|
}
|
|
14270
13646
|
|
|
14271
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13647
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/json.js
|
|
14272
13648
|
class PgJsonBuilder extends PgColumnBuilder {
|
|
14273
13649
|
static [entityKind] = "PgJsonBuilder";
|
|
14274
13650
|
constructor(name) {
|
|
@@ -14305,7 +13681,7 @@ function json3(name) {
|
|
|
14305
13681
|
return new PgJsonBuilder(name ?? "");
|
|
14306
13682
|
}
|
|
14307
13683
|
|
|
14308
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13684
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/jsonb.js
|
|
14309
13685
|
class PgJsonbBuilder extends PgColumnBuilder {
|
|
14310
13686
|
static [entityKind] = "PgJsonbBuilder";
|
|
14311
13687
|
constructor(name) {
|
|
@@ -14342,7 +13718,7 @@ function jsonb(name) {
|
|
|
14342
13718
|
return new PgJsonbBuilder(name ?? "");
|
|
14343
13719
|
}
|
|
14344
13720
|
|
|
14345
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13721
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/line.js
|
|
14346
13722
|
class PgLineBuilder extends PgColumnBuilder {
|
|
14347
13723
|
static [entityKind] = "PgLineBuilder";
|
|
14348
13724
|
constructor(name) {
|
|
@@ -14398,7 +13774,7 @@ function line(a, b) {
|
|
|
14398
13774
|
return new PgLineABCBuilder(name);
|
|
14399
13775
|
}
|
|
14400
13776
|
|
|
14401
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13777
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/macaddr.js
|
|
14402
13778
|
class PgMacaddrBuilder extends PgColumnBuilder {
|
|
14403
13779
|
static [entityKind] = "PgMacaddrBuilder";
|
|
14404
13780
|
constructor(name) {
|
|
@@ -14419,7 +13795,7 @@ function macaddr(name) {
|
|
|
14419
13795
|
return new PgMacaddrBuilder(name ?? "");
|
|
14420
13796
|
}
|
|
14421
13797
|
|
|
14422
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13798
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/macaddr8.js
|
|
14423
13799
|
class PgMacaddr8Builder extends PgColumnBuilder {
|
|
14424
13800
|
static [entityKind] = "PgMacaddr8Builder";
|
|
14425
13801
|
constructor(name) {
|
|
@@ -14440,7 +13816,7 @@ function macaddr8(name) {
|
|
|
14440
13816
|
return new PgMacaddr8Builder(name ?? "");
|
|
14441
13817
|
}
|
|
14442
13818
|
|
|
14443
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13819
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/numeric.js
|
|
14444
13820
|
class PgNumericBuilder extends PgColumnBuilder {
|
|
14445
13821
|
static [entityKind] = "PgNumericBuilder";
|
|
14446
13822
|
constructor(name, precision, scale) {
|
|
@@ -14555,7 +13931,7 @@ function numeric(a, b) {
|
|
|
14555
13931
|
return mode === "number" ? new PgNumericNumberBuilder(name, config3?.precision, config3?.scale) : mode === "bigint" ? new PgNumericBigIntBuilder(name, config3?.precision, config3?.scale) : new PgNumericBuilder(name, config3?.precision, config3?.scale);
|
|
14556
13932
|
}
|
|
14557
13933
|
|
|
14558
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13934
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/point.js
|
|
14559
13935
|
class PgPointTupleBuilder extends PgColumnBuilder {
|
|
14560
13936
|
static [entityKind] = "PgPointTupleBuilder";
|
|
14561
13937
|
constructor(name) {
|
|
@@ -14617,7 +13993,7 @@ function point(a, b) {
|
|
|
14617
13993
|
return new PgPointObjectBuilder(name);
|
|
14618
13994
|
}
|
|
14619
13995
|
|
|
14620
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
13996
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/postgis_extension/utils.js
|
|
14621
13997
|
function hexToBytes(hex2) {
|
|
14622
13998
|
const bytes = [];
|
|
14623
13999
|
for (let c = 0;c < hex2.length; c += 2) {
|
|
@@ -14656,7 +14032,7 @@ function parseEWKB(hex2) {
|
|
|
14656
14032
|
throw new Error("Unsupported geometry type");
|
|
14657
14033
|
}
|
|
14658
14034
|
|
|
14659
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14035
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/postgis_extension/geometry.js
|
|
14660
14036
|
class PgGeometryBuilder extends PgColumnBuilder {
|
|
14661
14037
|
static [entityKind] = "PgGeometryBuilder";
|
|
14662
14038
|
constructor(name) {
|
|
@@ -14711,7 +14087,7 @@ function geometry(a, b) {
|
|
|
14711
14087
|
return new PgGeometryObjectBuilder(name);
|
|
14712
14088
|
}
|
|
14713
14089
|
|
|
14714
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14090
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/real.js
|
|
14715
14091
|
class PgRealBuilder extends PgColumnBuilder {
|
|
14716
14092
|
static [entityKind] = "PgRealBuilder";
|
|
14717
14093
|
constructor(name, length) {
|
|
@@ -14742,7 +14118,7 @@ function real(name) {
|
|
|
14742
14118
|
return new PgRealBuilder(name ?? "");
|
|
14743
14119
|
}
|
|
14744
14120
|
|
|
14745
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14121
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/serial.js
|
|
14746
14122
|
class PgSerialBuilder extends PgColumnBuilder {
|
|
14747
14123
|
static [entityKind] = "PgSerialBuilder";
|
|
14748
14124
|
constructor(name) {
|
|
@@ -14765,7 +14141,7 @@ function serial(name) {
|
|
|
14765
14141
|
return new PgSerialBuilder(name ?? "");
|
|
14766
14142
|
}
|
|
14767
14143
|
|
|
14768
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14144
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/smallint.js
|
|
14769
14145
|
class PgSmallIntBuilder extends PgIntColumnBaseBuilder {
|
|
14770
14146
|
static [entityKind] = "PgSmallIntBuilder";
|
|
14771
14147
|
constructor(name) {
|
|
@@ -14792,7 +14168,7 @@ function smallint(name) {
|
|
|
14792
14168
|
return new PgSmallIntBuilder(name ?? "");
|
|
14793
14169
|
}
|
|
14794
14170
|
|
|
14795
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14171
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/smallserial.js
|
|
14796
14172
|
class PgSmallSerialBuilder extends PgColumnBuilder {
|
|
14797
14173
|
static [entityKind] = "PgSmallSerialBuilder";
|
|
14798
14174
|
constructor(name) {
|
|
@@ -14815,7 +14191,7 @@ function smallserial(name) {
|
|
|
14815
14191
|
return new PgSmallSerialBuilder(name ?? "");
|
|
14816
14192
|
}
|
|
14817
14193
|
|
|
14818
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14194
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/text.js
|
|
14819
14195
|
class PgTextBuilder extends PgColumnBuilder {
|
|
14820
14196
|
static [entityKind] = "PgTextBuilder";
|
|
14821
14197
|
constructor(name, config3) {
|
|
@@ -14839,7 +14215,7 @@ function text(a, b = {}) {
|
|
|
14839
14215
|
return new PgTextBuilder(name, config3);
|
|
14840
14216
|
}
|
|
14841
14217
|
|
|
14842
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14218
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/time.js
|
|
14843
14219
|
class PgTimeBuilder extends PgDateColumnBaseBuilder {
|
|
14844
14220
|
constructor(name, withTimezone, precision) {
|
|
14845
14221
|
super(name, "string", "PgTime");
|
|
@@ -14873,7 +14249,7 @@ function time(a, b = {}) {
|
|
|
14873
14249
|
return new PgTimeBuilder(name, config3.withTimezone ?? false, config3.precision);
|
|
14874
14250
|
}
|
|
14875
14251
|
|
|
14876
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14252
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/timestamp.js
|
|
14877
14253
|
class PgTimestampBuilder extends PgDateColumnBaseBuilder {
|
|
14878
14254
|
static [entityKind] = "PgTimestampBuilder";
|
|
14879
14255
|
constructor(name, withTimezone, precision) {
|
|
@@ -14941,7 +14317,7 @@ function timestamp(a, b = {}) {
|
|
|
14941
14317
|
return new PgTimestampBuilder(name, config3?.withTimezone ?? false, config3?.precision);
|
|
14942
14318
|
}
|
|
14943
14319
|
|
|
14944
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14320
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/uuid.js
|
|
14945
14321
|
class PgUUIDBuilder extends PgColumnBuilder {
|
|
14946
14322
|
static [entityKind] = "PgUUIDBuilder";
|
|
14947
14323
|
constructor(name) {
|
|
@@ -14965,7 +14341,7 @@ function uuid2(name) {
|
|
|
14965
14341
|
return new PgUUIDBuilder(name ?? "");
|
|
14966
14342
|
}
|
|
14967
14343
|
|
|
14968
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14344
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/varchar.js
|
|
14969
14345
|
class PgVarcharBuilder extends PgColumnBuilder {
|
|
14970
14346
|
static [entityKind] = "PgVarcharBuilder";
|
|
14971
14347
|
constructor(name, config3) {
|
|
@@ -14991,7 +14367,7 @@ function varchar(a, b = {}) {
|
|
|
14991
14367
|
return new PgVarcharBuilder(name, config3);
|
|
14992
14368
|
}
|
|
14993
14369
|
|
|
14994
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14370
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/bit.js
|
|
14995
14371
|
class PgBinaryVectorBuilder extends PgColumnBuilder {
|
|
14996
14372
|
static [entityKind] = "PgBinaryVectorBuilder";
|
|
14997
14373
|
constructor(name, config3) {
|
|
@@ -15015,7 +14391,7 @@ function bit(a, b) {
|
|
|
15015
14391
|
return new PgBinaryVectorBuilder(name, config3);
|
|
15016
14392
|
}
|
|
15017
14393
|
|
|
15018
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14394
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/halfvec.js
|
|
15019
14395
|
class PgHalfVectorBuilder extends PgColumnBuilder {
|
|
15020
14396
|
static [entityKind] = "PgHalfVectorBuilder";
|
|
15021
14397
|
constructor(name, config3) {
|
|
@@ -15045,7 +14421,7 @@ function halfvec(a, b) {
|
|
|
15045
14421
|
return new PgHalfVectorBuilder(name, config3);
|
|
15046
14422
|
}
|
|
15047
14423
|
|
|
15048
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14424
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/sparsevec.js
|
|
15049
14425
|
class PgSparseVectorBuilder extends PgColumnBuilder {
|
|
15050
14426
|
static [entityKind] = "PgSparseVectorBuilder";
|
|
15051
14427
|
constructor(name, config3) {
|
|
@@ -15069,7 +14445,7 @@ function sparsevec(a, b) {
|
|
|
15069
14445
|
return new PgSparseVectorBuilder(name, config3);
|
|
15070
14446
|
}
|
|
15071
14447
|
|
|
15072
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14448
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/vector.js
|
|
15073
14449
|
class PgVectorBuilder extends PgColumnBuilder {
|
|
15074
14450
|
static [entityKind] = "PgVectorBuilder";
|
|
15075
14451
|
constructor(name, config3) {
|
|
@@ -15099,7 +14475,7 @@ function vector(a, b) {
|
|
|
15099
14475
|
return new PgVectorBuilder(name, config3);
|
|
15100
14476
|
}
|
|
15101
14477
|
|
|
15102
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14478
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/all.js
|
|
15103
14479
|
function getPgColumnBuilders() {
|
|
15104
14480
|
return {
|
|
15105
14481
|
bigint,
|
|
@@ -15137,7 +14513,7 @@ function getPgColumnBuilders() {
|
|
|
15137
14513
|
};
|
|
15138
14514
|
}
|
|
15139
14515
|
|
|
15140
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14516
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/table.js
|
|
15141
14517
|
var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
|
|
15142
14518
|
var EnableRLS = Symbol.for("drizzle:EnableRLS");
|
|
15143
14519
|
|
|
@@ -15185,7 +14561,7 @@ var pgTable = (name, columns, extraConfig) => {
|
|
|
15185
14561
|
return pgTableWithSchema(name, columns, extraConfig, undefined);
|
|
15186
14562
|
};
|
|
15187
14563
|
|
|
15188
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14564
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
15189
14565
|
function primaryKey(...config3) {
|
|
15190
14566
|
if (config3[0].columns) {
|
|
15191
14567
|
return new PrimaryKeyBuilder(config3[0].columns, config3[0].name);
|
|
@@ -15220,7 +14596,7 @@ class PrimaryKey {
|
|
|
15220
14596
|
}
|
|
15221
14597
|
}
|
|
15222
14598
|
|
|
15223
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14599
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
15224
14600
|
function bindIfParam(value2, column) {
|
|
15225
14601
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value2) && !is(value2, Param) && !is(value2, Placeholder) && !is(value2, Column) && !is(value2, Table) && !is(value2, View)) {
|
|
15226
14602
|
return new Param(value2, column);
|
|
@@ -15325,7 +14701,7 @@ function notIlike(column, value2) {
|
|
|
15325
14701
|
return sql`${column} not ilike ${value2}`;
|
|
15326
14702
|
}
|
|
15327
14703
|
|
|
15328
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14704
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/sql/expressions/select.js
|
|
15329
14705
|
function asc(column) {
|
|
15330
14706
|
return sql`${column} asc`;
|
|
15331
14707
|
}
|
|
@@ -15333,7 +14709,7 @@ function desc(column) {
|
|
|
15333
14709
|
return sql`${column} desc`;
|
|
15334
14710
|
}
|
|
15335
14711
|
|
|
15336
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
14712
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/relations.js
|
|
15337
14713
|
class Relation {
|
|
15338
14714
|
constructor(sourceTable, referencedTable, relationName) {
|
|
15339
14715
|
this.sourceTable = sourceTable;
|
|
@@ -17500,7 +16876,7 @@ function osUsername() {
|
|
|
17500
16876
|
}
|
|
17501
16877
|
}
|
|
17502
16878
|
|
|
17503
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
16879
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/selection-proxy.js
|
|
17504
16880
|
class SelectionProxyHandler {
|
|
17505
16881
|
static [entityKind] = "SelectionProxyHandler";
|
|
17506
16882
|
config;
|
|
@@ -17552,7 +16928,7 @@ class SelectionProxyHandler {
|
|
|
17552
16928
|
}
|
|
17553
16929
|
}
|
|
17554
16930
|
|
|
17555
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
16931
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/indexes.js
|
|
17556
16932
|
class IndexBuilderOn {
|
|
17557
16933
|
constructor(unique, name) {
|
|
17558
16934
|
this.unique = unique;
|
|
@@ -17634,7 +17010,7 @@ function uniqueIndex(name) {
|
|
|
17634
17010
|
return new IndexBuilderOn(true, name);
|
|
17635
17011
|
}
|
|
17636
17012
|
|
|
17637
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
17013
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/casing.js
|
|
17638
17014
|
function toSnakeCase(input) {
|
|
17639
17015
|
const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
|
|
17640
17016
|
return words.map((word) => word.toLowerCase()).join("_");
|
|
@@ -17687,12 +17063,12 @@ class CasingCache {
|
|
|
17687
17063
|
}
|
|
17688
17064
|
}
|
|
17689
17065
|
|
|
17690
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
17066
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/view-base.js
|
|
17691
17067
|
class PgViewBase extends View {
|
|
17692
17068
|
static [entityKind] = "PgViewBase";
|
|
17693
17069
|
}
|
|
17694
17070
|
|
|
17695
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
17071
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/dialect.js
|
|
17696
17072
|
class PgDialect {
|
|
17697
17073
|
static [entityKind] = "PgDialect";
|
|
17698
17074
|
casing;
|
|
@@ -18250,7 +17626,7 @@ class PgDialect {
|
|
|
18250
17626
|
}
|
|
18251
17627
|
}
|
|
18252
17628
|
|
|
18253
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
17629
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/query-builders/query-builder.js
|
|
18254
17630
|
class TypedQueryBuilder {
|
|
18255
17631
|
static [entityKind] = "TypedQueryBuilder";
|
|
18256
17632
|
getSelectedFields() {
|
|
@@ -18258,7 +17634,7 @@ class TypedQueryBuilder {
|
|
|
18258
17634
|
}
|
|
18259
17635
|
}
|
|
18260
17636
|
|
|
18261
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
17637
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/select.js
|
|
18262
17638
|
class PgSelectBuilder {
|
|
18263
17639
|
static [entityKind] = "PgSelectBuilder";
|
|
18264
17640
|
fields;
|
|
@@ -18576,7 +17952,7 @@ var intersectAll = createSetOperator("intersect", true);
|
|
|
18576
17952
|
var except = createSetOperator("except", false);
|
|
18577
17953
|
var exceptAll = createSetOperator("except", true);
|
|
18578
17954
|
|
|
18579
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
17955
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
|
|
18580
17956
|
class QueryBuilder {
|
|
18581
17957
|
static [entityKind] = "PgQueryBuilder";
|
|
18582
17958
|
dialect;
|
|
@@ -18654,7 +18030,7 @@ class QueryBuilder {
|
|
|
18654
18030
|
}
|
|
18655
18031
|
}
|
|
18656
18032
|
|
|
18657
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18033
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/utils.js
|
|
18658
18034
|
function extractUsedTable(table) {
|
|
18659
18035
|
if (is(table, PgTable)) {
|
|
18660
18036
|
return [table[Schema] ? `${table[Schema]}.${table[Table.Symbol.BaseName]}` : table[Table.Symbol.BaseName]];
|
|
@@ -18668,7 +18044,7 @@ function extractUsedTable(table) {
|
|
|
18668
18044
|
return [];
|
|
18669
18045
|
}
|
|
18670
18046
|
|
|
18671
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18047
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/delete.js
|
|
18672
18048
|
class PgDeleteBase extends QueryPromise {
|
|
18673
18049
|
constructor(table, session, dialect, withList) {
|
|
18674
18050
|
super();
|
|
@@ -18728,7 +18104,7 @@ class PgDeleteBase extends QueryPromise {
|
|
|
18728
18104
|
}
|
|
18729
18105
|
}
|
|
18730
18106
|
|
|
18731
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18107
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/insert.js
|
|
18732
18108
|
class PgInsertBuilder {
|
|
18733
18109
|
constructor(table, session, dialect, withList, overridingSystemValue_) {
|
|
18734
18110
|
this.table = table;
|
|
@@ -18851,7 +18227,7 @@ class PgInsertBase extends QueryPromise {
|
|
|
18851
18227
|
}
|
|
18852
18228
|
}
|
|
18853
18229
|
|
|
18854
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18230
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
|
|
18855
18231
|
class PgRefreshMaterializedView extends QueryPromise {
|
|
18856
18232
|
constructor(view, session, dialect) {
|
|
18857
18233
|
super();
|
|
@@ -18902,7 +18278,7 @@ class PgRefreshMaterializedView extends QueryPromise {
|
|
|
18902
18278
|
};
|
|
18903
18279
|
}
|
|
18904
18280
|
|
|
18905
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18281
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/update.js
|
|
18906
18282
|
class PgUpdateBuilder {
|
|
18907
18283
|
constructor(table, session, dialect, withList) {
|
|
18908
18284
|
this.table = table;
|
|
@@ -19056,7 +18432,7 @@ class PgUpdateBase extends QueryPromise {
|
|
|
19056
18432
|
}
|
|
19057
18433
|
}
|
|
19058
18434
|
|
|
19059
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18435
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/count.js
|
|
19060
18436
|
class PgCountBuilder extends SQL {
|
|
19061
18437
|
constructor(params) {
|
|
19062
18438
|
super(PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
|
@@ -19097,7 +18473,7 @@ class PgCountBuilder extends SQL {
|
|
|
19097
18473
|
}
|
|
19098
18474
|
}
|
|
19099
18475
|
|
|
19100
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18476
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/query.js
|
|
19101
18477
|
class RelationalQueryBuilder {
|
|
19102
18478
|
constructor(fullSchema, schema2, tableNamesMap, table, tableConfig, dialect, session) {
|
|
19103
18479
|
this.fullSchema = fullSchema;
|
|
@@ -19180,7 +18556,7 @@ class PgRelationalQuery extends QueryPromise {
|
|
|
19180
18556
|
}
|
|
19181
18557
|
}
|
|
19182
18558
|
|
|
19183
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18559
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/raw.js
|
|
19184
18560
|
class PgRaw extends QueryPromise {
|
|
19185
18561
|
constructor(execute, sql2, query, mapBatchResult) {
|
|
19186
18562
|
super();
|
|
@@ -19207,7 +18583,7 @@ class PgRaw extends QueryPromise {
|
|
|
19207
18583
|
}
|
|
19208
18584
|
}
|
|
19209
18585
|
|
|
19210
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18586
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/db.js
|
|
19211
18587
|
class PgDatabase {
|
|
19212
18588
|
constructor(dialect, session, schema2) {
|
|
19213
18589
|
this.dialect = dialect;
|
|
@@ -19328,12 +18704,12 @@ class PgDatabase {
|
|
|
19328
18704
|
const prepared = this.session.prepareQuery(builtQuery, undefined, undefined, false);
|
|
19329
18705
|
return new PgRaw(() => prepared.execute(undefined, this.authToken), sequel, builtQuery, (result) => prepared.mapResult(result, true));
|
|
19330
18706
|
}
|
|
19331
|
-
transaction(
|
|
19332
|
-
return this.session.transaction(
|
|
18707
|
+
transaction(transaction, config3) {
|
|
18708
|
+
return this.session.transaction(transaction, config3);
|
|
19333
18709
|
}
|
|
19334
18710
|
}
|
|
19335
18711
|
|
|
19336
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18712
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/cache/core/cache.js
|
|
19337
18713
|
class Cache {
|
|
19338
18714
|
static [entityKind] = "Cache";
|
|
19339
18715
|
}
|
|
@@ -19359,7 +18735,7 @@ async function hashQuery(sql2, params) {
|
|
|
19359
18735
|
return hashHex;
|
|
19360
18736
|
}
|
|
19361
18737
|
|
|
19362
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18738
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/session.js
|
|
19363
18739
|
class PgPreparedQuery {
|
|
19364
18740
|
constructor(query, cache, queryMetadata, cacheConfig) {
|
|
19365
18741
|
this.query = query;
|
|
@@ -19491,7 +18867,7 @@ class PgTransaction extends PgDatabase {
|
|
|
19491
18867
|
}
|
|
19492
18868
|
}
|
|
19493
18869
|
|
|
19494
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18870
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/postgres-js/session.js
|
|
19495
18871
|
class PostgresJsPreparedQuery extends PgPreparedQuery {
|
|
19496
18872
|
constructor(client, queryString, params, logger, cache, queryMetadata, cacheConfig, fields, _isResponseInArrayMode, customResultMapper) {
|
|
19497
18873
|
super({ sql: queryString, params }, cache, queryMetadata, cacheConfig);
|
|
@@ -19580,14 +18956,14 @@ class PostgresJsSession extends PgSession {
|
|
|
19580
18956
|
queryObjects(query, params) {
|
|
19581
18957
|
return this.client.unsafe(query, params);
|
|
19582
18958
|
}
|
|
19583
|
-
transaction(
|
|
18959
|
+
transaction(transaction, config3) {
|
|
19584
18960
|
return this.client.begin(async (client) => {
|
|
19585
18961
|
const session = new PostgresJsSession(client, this.dialect, this.schema, this.options);
|
|
19586
18962
|
const tx = new PostgresJsTransaction(this.dialect, session, this.schema);
|
|
19587
18963
|
if (config3) {
|
|
19588
18964
|
await tx.setTransaction(config3);
|
|
19589
18965
|
}
|
|
19590
|
-
return
|
|
18966
|
+
return transaction(tx);
|
|
19591
18967
|
});
|
|
19592
18968
|
}
|
|
19593
18969
|
}
|
|
@@ -19598,16 +18974,16 @@ class PostgresJsTransaction extends PgTransaction {
|
|
|
19598
18974
|
this.session = session;
|
|
19599
18975
|
}
|
|
19600
18976
|
static [entityKind] = "PostgresJsTransaction";
|
|
19601
|
-
transaction(
|
|
18977
|
+
transaction(transaction) {
|
|
19602
18978
|
return this.session.client.savepoint((client) => {
|
|
19603
18979
|
const session = new PostgresJsSession(client, this.dialect, this.schema, this.session.options);
|
|
19604
18980
|
const tx = new PostgresJsTransaction(this.dialect, session, this.schema);
|
|
19605
|
-
return
|
|
18981
|
+
return transaction(tx);
|
|
19606
18982
|
});
|
|
19607
18983
|
}
|
|
19608
18984
|
}
|
|
19609
18985
|
|
|
19610
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
18986
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/postgres-js/driver.js
|
|
19611
18987
|
class PostgresJsDatabase extends PgDatabase {
|
|
19612
18988
|
static [entityKind] = "PostgresJsDatabase";
|
|
19613
18989
|
}
|